@bagelink/vue 1.10.27 → 1.10.31
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/dist/composables/index.d.ts.map +1 -1
- package/dist/composables/useResizeObserver.d.ts +6 -0
- package/dist/composables/useResizeObserver.d.ts.map +1 -0
- package/dist/index.cjs +12 -12
- package/dist/index.mjs +169 -153
- package/package.json +2 -2
- package/src/composables/index.ts +1 -0
- package/src/composables/useResizeObserver.ts +34 -0
package/dist/index.cjs
CHANGED
|
@@ -155,7 +155,7 @@ ${t.preList[r]}
|
|
|
155
155
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...o){const r=new this(t);return o.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[uf]=this[uf]={accessors:{}}).accessors,a=this.prototype;function l(i){const s=ra(i);r[s]||(iS(a,i),r[s]=!0)}return se.isArray(t)?t.forEach(l):l(t),this}};nn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);se.reduceDescriptors(nn.prototype,({value:e},t)=>{let o=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[o]=r}}});se.freezeMethods(nn);function Ts(e,t){const o=this||rl,r=t||o,a=nn.from(r.headers);let l=r.data;return se.forEach(e,function(s){l=s.call(o,l,a.normalize(),t?t.status:void 0)}),a.normalize(),l}function gg(e){return!!(e&&e.__CANCEL__)}function Yr(e,t,o){Ye.call(this,e??"canceled",Ye.ERR_CANCELED,t,o),this.name="CanceledError"}se.inherits(Yr,Ye,{__CANCEL__:!0});function vg(e,t,o){const r=o.config.validateStatus;!o.status||!r||r(o.status)?e(o):t(new Ye("Request failed with status code "+o.status,[Ye.ERR_BAD_REQUEST,Ye.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function sS(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function cS(e,t){e=e||10;const o=new Array(e),r=new Array(e);let a=0,l=0,i;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=r[l];i||(i=u),o[a]=c,r[a]=u;let f=l,h=0;for(;f!==a;)h+=o[f++],f=f%e;if(a=(a+1)%e,a===l&&(l=(l+1)%e),u-i<t)return;const m=d&&u-d;return m?Math.round(h*1e3/m):void 0}}function uS(e,t){let o=0,r=1e3/t,a,l;const i=(u,d=Date.now())=>{o=d,a=null,l&&(clearTimeout(l),l=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),f=d-o;f>=r?i(u,d):(a=u,l||(l=setTimeout(()=>{l=null,i(a)},r-f)))},()=>a&&i(a)]}const Ql=(e,t,o=3)=>{let r=0;const a=cS(50,250);return uS(l=>{const i=l.loaded,s=l.lengthComputable?l.total:void 0,c=i-r,u=a(c),d=i<=s;r=i;const f={loaded:i,total:s,progress:s?i/s:void 0,bytes:c,rate:u||void 0,estimated:u&&s&&d?(s-i)/u:void 0,event:l,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},o)},df=(e,t)=>{const o=e!=null;return[r=>t[0]({lengthComputable:o,total:e,loaded:r}),t[1]]},ff=e=>(...t)=>se.asap(()=>e(...t)),dS=jt.hasStandardBrowserEnv?((e,t)=>o=>(o=new URL(o,jt.origin),e.protocol===o.protocol&&e.host===o.host&&(t||e.port===o.port)))(new URL(jt.origin),jt.navigator&&/(msie|trident)/i.test(jt.navigator.userAgent)):()=>!0,fS=jt.hasStandardBrowserEnv?{write(e,t,o,r,a,l){const i=[e+"="+encodeURIComponent(t)];se.isNumber(o)&&i.push("expires="+new Date(o).toGMTString()),se.isString(r)&&i.push("path="+r),se.isString(a)&&i.push("domain="+a),l===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function pS(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function mS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function yg(e,t,o){let r=!pS(t);return e&&(r||o==!1)?mS(e,t):t}const pf=e=>e instanceof nn?{...e}:e;function rr(e,t){t=t||{};const o={};function r(u,d,f,h){return se.isPlainObject(u)&&se.isPlainObject(d)?se.merge.call({caseless:h},u,d):se.isPlainObject(d)?se.merge({},d):se.isArray(d)?d.slice():d}function a(u,d,f,h){if(se.isUndefined(d)){if(!se.isUndefined(u))return r(void 0,u,f,h)}else return r(u,d,f,h)}function l(u,d){if(!se.isUndefined(d))return r(void 0,d)}function i(u,d){if(se.isUndefined(d)){if(!se.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function s(u,d,f){if(f in t)return r(u,d);if(f in e)return r(void 0,u)}const c={url:l,method:l,data:l,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(u,d,f)=>a(pf(u),pf(d),f,!0)};return se.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=c[d]||a,h=f(e[d],t[d],d);se.isUndefined(h)&&f!==s||(o[d]=h)}),o}const _g=e=>{const t=rr({},e);let{data:o,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:l,headers:i,auth:s}=t;t.headers=i=nn.from(i),t.url=pg(yg(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let c;if(se.isFormData(o)){if(jt.hasStandardBrowserEnv||jt.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[u,...d]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...d].join("; "))}}if(jt.hasStandardBrowserEnv&&(r&&se.isFunction(r)&&(r=r(t)),r||r!==!1&&dS(t.url))){const u=a&&l&&fS.read(l);u&&i.set(a,u)}return t},hS=typeof XMLHttpRequest<"u",gS=hS&&function(e){return new Promise(function(o,r){const a=_g(e);let l=a.data;const i=nn.from(a.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:u}=a,d,f,h,m,p;function g(){m&&m(),p&&p(),a.cancelToken&&a.cancelToken.unsubscribe(d),a.signal&&a.signal.removeEventListener("abort",d)}let _=new XMLHttpRequest;_.open(a.method.toUpperCase(),a.url,!0),_.timeout=a.timeout;function v(){if(!_)return;const b=nn.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),w={data:!s||s==="text"||s==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:b,config:e,request:_};vg(function(S){o(S),g()},function(S){r(S),g()},w),_=null}"onloadend"in _?_.onloadend=v:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(v)},_.onabort=function(){_&&(r(new Ye("Request aborted",Ye.ECONNABORTED,e,_)),_=null)},_.onerror=function(){r(new Ye("Network Error",Ye.ERR_NETWORK,e,_)),_=null},_.ontimeout=function(){let $=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const w=a.transitional||mg;a.timeoutErrorMessage&&($=a.timeoutErrorMessage),r(new Ye($,w.clarifyTimeoutError?Ye.ETIMEDOUT:Ye.ECONNABORTED,e,_)),_=null},l===void 0&&i.setContentType(null),"setRequestHeader"in _&&se.forEach(i.toJSON(),function($,w){_.setRequestHeader(w,$)}),se.isUndefined(a.withCredentials)||(_.withCredentials=!!a.withCredentials),s&&s!=="json"&&(_.responseType=a.responseType),u&&([h,p]=Ql(u,!0),_.addEventListener("progress",h)),c&&_.upload&&([f,m]=Ql(c),_.upload.addEventListener("progress",f),_.upload.addEventListener("loadend",m)),(a.cancelToken||a.signal)&&(d=b=>{_&&(r(!b||b.type?new Yr(null,e,_):b),_.abort(),_=null)},a.cancelToken&&a.cancelToken.subscribe(d),a.signal&&(a.signal.aborted?d():a.signal.addEventListener("abort",d)));const y=sS(a.url);if(y&&jt.protocols.indexOf(y)===-1){r(new Ye("Unsupported protocol "+y+":",Ye.ERR_BAD_REQUEST,e));return}_.send(l||null)})},vS=(e,t)=>{const{length:o}=e=e?e.filter(Boolean):[];if(t||o){let r=new AbortController,a;const l=function(u){if(!a){a=!0,s();const d=u instanceof Error?u:this.reason;r.abort(d instanceof Ye?d:new Yr(d instanceof Error?d.message:d))}};let i=t&&setTimeout(()=>{i=null,l(new Ye(`timeout ${t} of ms exceeded`,Ye.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(l):u.removeEventListener("abort",l)}),e=null)};e.forEach(u=>u.addEventListener("abort",l));const{signal:c}=r;return c.unsubscribe=()=>se.asap(s),c}},yS=function*(e,t){let o=e.byteLength;if(o<t){yield e;return}let r=0,a;for(;r<o;)a=r+t,yield e.slice(r,a),r=a},_S=async function*(e,t){for await(const o of bS(e))yield*yS(o,t)},bS=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:o,value:r}=await t.read();if(o)break;yield r}}finally{await t.cancel()}},mf=(e,t,o,r)=>{const a=_S(e,t);let l=0,i,s=c=>{i||(i=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await a.next();if(u){s(),c.close();return}let f=d.byteLength;if(o){let h=l+=f;o(h)}c.enqueue(new Uint8Array(d))}catch(u){throw s(u),u}},cancel(c){return s(c),a.return()}},{highWaterMark:2})},Xi=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",bg=Xi&&typeof ReadableStream=="function",wS=Xi&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),wg=(e,...t)=>{try{return!!e(...t)}catch{return!1}},$S=bg&&wg(()=>{let e=!1;const t=new Request(jt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),hf=64*1024,xc=bg&&wg(()=>se.isReadableStream(new Response("").body)),ei={stream:xc&&(e=>e.body)};Xi&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ei[t]&&(ei[t]=se.isFunction(e[t])?o=>o[t]():(o,r)=>{throw new Ye(`Response type '${t}' is not supported`,Ye.ERR_NOT_SUPPORT,r)})})})(new Response);const kS=async e=>{if(e==null)return 0;if(se.isBlob(e))return e.size;if(se.isSpecCompliantForm(e))return(await new Request(jt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(se.isArrayBufferView(e)||se.isArrayBuffer(e))return e.byteLength;if(se.isURLSearchParams(e)&&(e=e+""),se.isString(e))return(await wS(e)).byteLength},ES=async(e,t)=>{const o=se.toFiniteNumber(e.getContentLength());return o??kS(t)},CS=Xi&&(async e=>{let{url:t,method:o,data:r,signal:a,cancelToken:l,timeout:i,onDownloadProgress:s,onUploadProgress:c,responseType:u,headers:d,withCredentials:f="same-origin",fetchOptions:h}=_g(e);u=u?(u+"").toLowerCase():"text";let m=vS([a,l&&l.toAbortSignal()],i),p;const g=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let _;try{if(c&&$S&&o!=="get"&&o!=="head"&&(_=await ES(d,r))!==0){let w=new Request(t,{method:"POST",body:r,duplex:"half"}),E;if(se.isFormData(r)&&(E=w.headers.get("content-type"))&&d.setContentType(E),w.body){const[S,x]=df(_,Ql(ff(c)));r=mf(w.body,hf,S,x)}}se.isString(f)||(f=f?"include":"omit");const v="credentials"in Request.prototype;p=new Request(t,{...h,signal:m,method:o.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:v?f:void 0});let y=await fetch(p);const b=xc&&(u==="stream"||u==="response");if(xc&&(s||b&&g)){const w={};["status","statusText","headers"].forEach(N=>{w[N]=y[N]});const E=se.toFiniteNumber(y.headers.get("content-length")),[S,x]=s&&df(E,Ql(ff(s),!0))||[];y=new Response(mf(y.body,hf,S,()=>{x&&x(),g&&g()}),w)}u=u||"text";let $=await ei[se.findKey(ei,u)||"text"](y,e);return!b&&g&&g(),await new Promise((w,E)=>{vg(w,E,{data:$,headers:nn.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:p})})}catch(v){throw g&&g(),v&&v.name==="TypeError"&&/Load failed|fetch/i.test(v.message)?Object.assign(new Ye("Network Error",Ye.ERR_NETWORK,e,p),{cause:v.cause||v}):Ye.from(v,v&&v.code,e,p)}}),Bc={http:FC,xhr:gS,fetch:CS};se.forEach(Bc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const gf=e=>`- ${e}`,SS=e=>se.isFunction(e)||e===null||e===!1,$g={getAdapter:e=>{e=se.isArray(e)?e:[e];const{length:t}=e;let o,r;const a={};for(let l=0;l<t;l++){o=e[l];let i;if(r=o,!SS(o)&&(r=Bc[(i=String(o)).toLowerCase()],r===void 0))throw new Ye(`Unknown adapter '${i}'`);if(r)break;a[i||"#"+l]=r}if(!r){const l=Object.entries(a).map(([s,c])=>`adapter ${s} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=t?l.length>1?`since :
|
|
156
156
|
`+l.map(gf).join(`
|
|
157
157
|
`):" "+gf(l[0]):"as no adapter specified";throw new Ye("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Bc};function Ns(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Yr(null,e)}function vf(e){return Ns(e),e.headers=nn.from(e.headers),e.data=Ts.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),$g.getAdapter(e.adapter||rl.adapter)(e).then(function(r){return Ns(e),r.data=Ts.call(e,e.transformResponse,r),r.headers=nn.from(r.headers),r},function(r){return gg(r)||(Ns(e),r&&r.response&&(r.response.data=Ts.call(e,e.transformResponse,r.response),r.response.headers=nn.from(r.response.headers))),Promise.reject(r)})}const kg="1.9.0",Ki={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ki[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const yf={};Ki.transitional=function(t,o,r){function a(l,i){return"[Axios v"+kg+"] Transitional option '"+l+"'"+i+(r?". "+r:"")}return(l,i,s)=>{if(t===!1)throw new Ye(a(i," has been removed"+(o?" in "+o:"")),Ye.ERR_DEPRECATED);return o&&!yf[i]&&(yf[i]=!0,console.warn(a(i," has been deprecated since v"+o+" and will be removed in the near future"))),t?t(l,i,s):!0}};Ki.spelling=function(t){return(o,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function TS(e,t,o){if(typeof e!="object")throw new Ye("options must be an object",Ye.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const l=r[a],i=t[l];if(i){const s=e[l],c=s===void 0||i(s,l,e);if(c!==!0)throw new Ye("option "+l+" must be "+c,Ye.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new Ye("Unknown option "+l,Ye.ERR_BAD_OPTION)}}const Vl={assertOptions:TS,validators:Ki},Un=Vl.validators;let Zo=class{constructor(t){this.defaults=t||{},this.interceptors={request:new cf,response:new cf}}async request(t,o){try{return await this._request(t,o)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const l=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?l&&!String(r.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
158
|
-
`+l):r.stack=l}catch{}}throw r}}_request(t,o){typeof t=="string"?(o=o||{},o.url=t):o=t||{},o=rr(this.defaults,o);const{transitional:r,paramsSerializer:a,headers:l}=o;r!==void 0&&Vl.assertOptions(r,{silentJSONParsing:Un.transitional(Un.boolean),forcedJSONParsing:Un.transitional(Un.boolean),clarifyTimeoutError:Un.transitional(Un.boolean)},!1),a!=null&&(se.isFunction(a)?o.paramsSerializer={serialize:a}:Vl.assertOptions(a,{encode:Un.function,serialize:Un.function},!0)),o.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?o.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:o.allowAbsoluteUrls=!0),Vl.assertOptions(o,{baseUrl:Un.spelling("baseURL"),withXsrfToken:Un.spelling("withXSRFToken")},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let i=l&&se.merge(l.common,l[o.method]);l&&se.forEach(["delete","get","head","post","put","patch","common"],p=>{delete l[p]}),o.headers=nn.concat(i,l);const s=[];let c=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(o)===!1||(c=c&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let d,f=0,h;if(!c){const p=[vf.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,u),h=p.length,d=Promise.resolve(o);f<h;)d=d.then(p[f++],p[f++]);return d}h=s.length;let m=o;for(f=0;f<h;){const p=s[f++],g=s[f++];try{m=p(m)}catch(_){g.call(this,_);break}}try{d=vf.call(this,m)}catch(p){return Promise.reject(p)}for(f=0,h=u.length;f<h;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=rr(this.defaults,t);const o=yg(t.baseURL,t.url,t.allowAbsoluteUrls);return pg(o,t.params,t.paramsSerializer)}};se.forEach(["delete","get","head","options"],function(t){Zo.prototype[t]=function(o,r){return this.request(rr(r||{},{method:t,url:o,data:(r||{}).data}))}});se.forEach(["post","put","patch"],function(t){function o(r){return function(l,i,s){return this.request(rr(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:l,data:i}))}}Zo.prototype[t]=o(),Zo.prototype[t+"Form"]=o(!0)});let NS=class Eg{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(l){o=l});const r=this;this.promise.then(a=>{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](a);r._listeners=null}),this.promise.then=a=>{let l;const i=new Promise(s=>{r.subscribe(s),l=s}).then(a);return i.cancel=function(){r.unsubscribe(l)},i},t(function(l,i,s){r.reason||(r.reason=new Yr(l,i,s),o(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const o=this._listeners.indexOf(t);o!==-1&&this._listeners.splice(o,1)}toAbortSignal(){const t=new AbortController,o=r=>{t.abort(r)};return this.subscribe(o),t.signal.unsubscribe=()=>this.unsubscribe(o),t.signal}static source(){let t;return{token:new Eg(function(a){t=a}),cancel:t}}};function DS(e){return function(o){return e.apply(null,o)}}function xS(e){return se.isObject(e)&&e.isAxiosError===!0}const Ac={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ac).forEach(([e,t])=>{Ac[t]=e});function Cg(e){const t=new Zo(e),o=tg(Zo.prototype.request,t);return se.extend(o,Zo.prototype,t,{allOwnKeys:!0}),se.extend(o,t,null,{allOwnKeys:!0}),o.create=function(a){return Cg(rr(e,a))},o}const _t=Cg(rl);_t.Axios=Zo;_t.CanceledError=Yr;_t.CancelToken=NS;_t.isCancel=gg;_t.VERSION=kg;_t.toFormData=Yi;_t.AxiosError=Ye;_t.Cancel=_t.CanceledError;_t.all=function(t){return Promise.all(t)};_t.spread=DS;_t.isAxiosError=xS;_t.mergeConfig=rr;_t.AxiosHeaders=nn;_t.formToJSON=e=>hg(se.isHTMLForm(e)?new FormData(e):e);_t.getAdapter=$g.getAdapter;_t.HttpStatusCode=Ac;_t.default=_t;const{Axios:wO,AxiosError:$O,CanceledError:kO,isCancel:EO,CancelToken:CO,VERSION:SO,all:TO,Cancel:NO,isAxiosError:DO,spread:xO,toFormData:BO,AxiosHeaders:AO,HttpStatusCode:MO,formToJSON:VO,getAdapter:LO,mergeConfig:PO}=_t;let yr=_t;function BS(e={}){e.baseURL!==void 0&&(yr=_t.create({baseURL:e.baseURL}))}const Ds={get:async e=>yr.get("/files",{params:{path_key:e}}),put:async(e,t)=>yr.put("/files",e,{params:{path_key:t}}),delete:async e=>yr.delete(`/files/${e}`,{params:{path_key:e}}),upload:async(e,t)=>{const o=new FormData;return o.append("file",e),o.append("upload",e),yr.post("/files/upload",o,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:t==null?void 0:t.onUploadProgress,params:{dir_path:t==null?void 0:t.dirPath,tags:t==null?void 0:t.tags}})},list:async e=>yr.get("/files/list",{params:{dir_path:e}})};function Sg(e={}){const t=e.namespace||"default",o=n.ref([]),r=n.ref([]),a=n.ref([]),l=n.computed(()=>{const f=r.value.map(h=>h.path_key);return[...a.value,...f]}),i=f=>URL.createObjectURL(f);function s(f){if(!f)return;let h=[];f instanceof File?h=[f]:f instanceof FileList?h=Array.from(f):Array.isArray(f)&&(h=f);const m=h.map(p=>({url:i(p),name:p.name,file:p,progress:0,namespace:t}));e.multiple?o.value.push(...m):o.value=m,e.onFileQueued&&m.length>0&&e.onFileQueued(m)}async function c(f){var h;if(typeof f=="string"){r.value=r.value.filter(p=>p.path_key!==f);const m=a.value.indexOf(f);m!==-1&&a.value.splice(m,1);try{await Ds.delete(f)}catch(p){console.error("Error deleting file:",p)}}else if(f){const m=f instanceof File?{name:f.name}:f,p=o.value.findIndex(g=>g.file.name===m.name&&g.namespace===t);p!==-1&&o.value.splice(p,1)}(h=e.onChange)==null||h.call(e)}async function u(){const f=o.value.filter(h=>h.namespace===t);for(const h of f){h.uploading=!0,e.multiple||a.value.splice(0,1);try{const{data:m}=await Ds.upload(h.file,{onUploadProgress:p=>{h.progress=p.loaded/p.total*100-1},dirPath:n.toValue(e.dirPath)});a.value.push(m.path_key)}catch(m){console.error("Error uploading file:",m)}}o.value=o.value.filter(h=>h.namespace!==t)}function d(f=!1){if(e.disabled)return;const h=document.createElement("input");h.type="file",h.multiple=!!e.multiple,h.accept=e.accept||"",e.capture!==void 0&&e.capture!==!1&&(h.capture=e.capture===!0?"environment":e.capture),h.onchange=m=>{s(m.target.files),f&&u()},h.click()}return n.onMounted(()=>{const f=n.toValue(e.dirPath);f&&Ds.list(f).then(h=>{const m=Array.isArray(h.data)?h.data:[h.data];r.value.push(...m)}).catch(h=>{console.error("Error loading files:",h)})}),{fileQueue:o,storageFiles:r,pk:a,pathKeys:l,fileToUrl:i,removeFile:c,flushQueue:u,addFile:s,browse:d,namespace:t}}const AS={class:"bagel-input"},MS={key:0},VS={key:1,placeholder:"required",type:"text",required:"",class:"pixel"},LS={key:1,class:"flex align-items-center gap-1 p-05"},PS={class:"txt-gray txt-12"},IS={class:"m-05 flex opacity-8 z-99 gap-025"},OS={class:"flex gap-025 rounded pe-1 ps-05 py-025 -my-1"},RS={class:"ellipsis-1 word-break-all h-20 m-0 color-black txt16"},FS={key:2,class:"txt-gray txt-12"},zS={key:0,class:"bgl-multi-preview"},US={class:"m-0"},HS=["src"],jS={class:"no-margin multi-preview-txt"},WS={key:0,class:"progress"},qS={key:1,class:"bgl-single-preview"},GS={key:0,class:"h-100"},YS=["src"],XS={class:"p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05"},KS={class:"pretty balance user-select-none"},JS=n.defineComponent({__name:"UploadInput",props:{id:{},label:{},multiple:{type:Boolean},modelValue:{},width:{},height:{default:"215px"},dirPath:{},fill:{type:Boolean},oval:{type:Boolean},theme:{default:"dropzone"},accept:{default:"*"},capture:{type:[Boolean,String]},required:{type:Boolean},disabled:{type:Boolean},baseURL:{},placeholder:{},noFilePlaceholder:{},btnPlaceholder:{},showIcon:{type:Boolean,default:!0},icon:{default:"upload_2"}},emits:["update:modelValue","addFileStart"],setup(e,{emit:t}){const o=e,r=t,{$t:a}=Tt(),{fileQueue:l,pathKeys:i,removeFile:s,flushQueue:c,addFile:u,browse:d,pk:f}=Sg({disabled:o.disabled,dirPath:o.dirPath,multiple:o.multiple,accept:o.accept,capture:o.capture,namespace:o.id||"upload",onFileQueued:async()=>{await c(),g()},onChange:g});n.watch(()=>o.modelValue,y=>f.value=y?[y].flat().filter(Boolean):[],{immediate:!0});const h=y=>Jl.test(y),m=n.ref(!1);function p(y,b=!1){y.preventDefault(),y.stopPropagation(),o.disabled||(m.value=b)}function g(){o.multiple?r("update:modelValue",i.value):r("update:modelValue",i.value[0]||void 0)}async function _(y){var b;o.disabled||(y.preventDefault(),y.stopPropagation(),r("addFileStart"),u((b=y.dataTransfer)==null?void 0:b.files),m.value=!1)}function v(y){return!y||typeof y!="string"?"file":y.split("/").pop()||"file"}return(y,b)=>{const $=n.resolveDirective("tooltip"),w=n.resolveDirective("lightbox");return n.openBlock(),n.createElementBlock("div",AS,[y.label?(n.openBlock(),n.createElementBlock("label",MS,n.toDisplayString(y.label),1)):n.createCommentVNode("",!0),y.required&&!n.unref(i).length?(n.openBlock(),n.createElementBlock("input",VS)):n.createCommentVNode("",!0),y.theme==="basic"?(n.openBlock(),n.createBlock(n.unref(en),{key:2,outline:"",class:"flex p-05 gap-1",onDragover:b[2]||(b[2]=E=>p(E,!0)),onDrop:_},{default:n.withCtx(()=>[!n.unref(i).length&&!n.unref(l).length?(n.openBlock(),n.createBlock(n.unref(ee),{key:0,class:"px-1-5",icon:"upload",outline:"",value:y.btnPlaceholder||n.unref(a)("upload.upload"),onClick:b[0]||(b[0]=E=>n.unref(d)())},null,8,["value"])):n.createCommentVNode("",!0),n.unref(l).length>0?(n.openBlock(),n.createElementBlock("div",LS,[n.createVNode(n.unref(Po),{size:"20"}),n.createElementVNode("span",PS,n.toDisplayString(n.unref(a)("upload.uploading",{count:n.unref(l).length,plural:n.unref(l).length>1?"s":""})),1)])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(i),E=>(n.openBlock(),n.createElementBlock("div",{key:E,class:"txt-gray txt-12 flex"},[n.createElementVNode("div",IS,[n.withDirectives(n.createVNode(n.unref(ee),{color:"gray",thin:"",icon:"delete",onClick:S=>n.unref(s)(E)},null,8,["onClick"]),[[$,"Delete"]]),n.withDirectives(n.createVNode(n.unref(ee),{color:"gray",thin:"",icon:"autorenew",onClick:b[1]||(b[1]=S=>n.unref(d)())},null,512),[[$,"Replace"]]),n.createVNode(n.unref(ee),{icon:"download",color:"gray",thin:"",href:n.unref(Gn)(E),download:v(E)},null,8,["href","download"]),n.createElementVNode("div",OS,[n.createVNode(n.unref(Te),{icon:"draft",size:1.5}),n.withDirectives((n.openBlock(),n.createElementBlock("p",RS,[n.createTextVNode(n.toDisplayString(v(E)),1)])),[[w,{src:n.unref(Gn)(E),download:!0}]])])])]))),128)),!n.unref(i).length&&!n.unref(l).length?(n.openBlock(),n.createElementBlock("span",FS,n.toDisplayString(y.noFilePlaceholder||n.unref(a)("upload.noFile")),1)):n.createCommentVNode("",!0)]),_:1})):(n.openBlock(),n.createElementBlock("div",{key:3,class:n.normalizeClass(["fileUploadWrap",{fileDropZone:!n.unref(i).length&&!n.unref(l).length,dragover:m.value,"bgl_oval-upload":y.oval}]),style:n.normalizeStyle({width:y.width,height:y.height}),onClick:b[4]||(b[4]=E=>n.unref(d)()),onDragover:b[5]||(b[5]=E=>p(E,!0)),onDrop:_,onDragleave:b[6]||(b[6]=E=>p(E))},[n.renderSlot(y.$slots,"files",{files:n.unref(i),fileQueue:n.unref(l)},()=>[y.multiple?(n.openBlock(),n.createElementBlock("div",zS,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(i),E=>n.withDirectives((n.openBlock(),n.createElementBlock("div",{key:E,class:n.normalizeClass(["multi-image-item-preview",{"bgl_fill-image":y.fill}])},[h(E)?(n.openBlock(),n.createBlock(n.unref(Mr),{key:0,pathKey:E,class:"multi-preview"},null,8,["pathKey"])):(n.openBlock(),n.createBlock(n.unref(Te),{key:1,icon:"description",class:"multi-preview"})),n.createElementVNode("p",US,n.toDisplayString(v(E)),1),n.createVNode(n.unref(ee),{thin:"",flat:"",icon:"delete",color:"red",onClick:S=>n.unref(s)(E)},null,8,["onClick"])],2)),[[w,{src:n.unref(Gn)(E),download:!0}]])),128)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(l),E=>(n.openBlock(),n.createElementBlock("div",{key:E.name,class:n.normalizeClass(["multi-image-item-preview",{"bgl_fill-image":y.fill}])},[h(E.file.type)?(n.openBlock(),n.createElementBlock("img",{key:0,class:"multi-preview",src:E.url,alt:""},null,8,HS)):(n.openBlock(),n.createBlock(n.unref(Te),{key:1,icon:"description",class:"multi-preview"})),n.createElementVNode("p",jS,n.toDisplayString(E.name),1),n.createElementVNode("div",{class:n.normalizeClass(["pie",{complete:E.progress===100}]),style:n.normalizeStyle([{"--p":E.progress},{"--b":"2px"}])},[E.progress<100?(n.openBlock(),n.createElementBlock("span",WS,n.toDisplayString(E.progress.toFixed(0)),1)):n.createCommentVNode("",!0),n.createVNode(n.unref(Te),{class:"success",icon:"check_circle"})],6)],2))),128))])):n.unref(i).length>0||n.unref(l).length>0?(n.openBlock(),n.createElementBlock("div",qS,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(i),E=>(n.openBlock(),n.createElementBlock("div",{key:E,class:n.normalizeClass(["single-image-item-preview",{"bgl_fill-image":y.fill}])},[n.createElementVNode("div",{class:n.normalizeClass(["flex opacity-8 z-99 gap-025 absolute top-0 start-0",{"mx-auto end-0 mt-1 justify-content-center":y.oval,"m-05":!y.oval}])},[n.withDirectives(n.createVNode(n.unref(ee),{color:"white",frame:"",thin:"",icon:"delete",onClick:S=>n.unref(s)(E)},null,8,["onClick"]),[[$,"Delete"]]),n.withDirectives(n.createVNode(n.unref(ee),{color:"white",frame:"",thin:"",icon:"autorenew",onClick:b[3]||(b[3]=S=>n.unref(d)())},null,512),[[$,"Replace"]]),n.withDirectives(n.createVNode(n.unref(ee),{color:"white",frame:"",thin:"",icon:"download",href:n.unref(Gn)(E),download:v(E)},null,8,["href","download"]),[[$,"Download"]])],2),h(E)?(n.openBlock(),n.createElementBlock("div",GS,[n.withDirectives(n.createVNode(n.unref(Mr),{class:"single-preview",pathKey:E,alt:""},null,8,["pathKey"]),[[w,{src:n.unref(Gn)(E),download:!0}]])])):n.withDirectives((n.openBlock(),n.createBlock(n.unref(Te),{key:1,size:4,weight:"2",icon:"description",class:"color-primary w-100"},null,512)),[[w,{src:n.unref(Gn)(E),download:!0}]])],2))),128)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(l),E=>(n.openBlock(),n.createElementBlock("div",{key:E.name,class:n.normalizeClass(["single-image-item-preview",{"bgl_fill-image":y.fill}])},[n.createVNode(n.unref(Po),{type:"bar",progress:E.progress,class:"absolute bottom-05 end start w-100px mx-auto rounded overflow-hidden"},null,8,["progress"]),h(E.file.type)?(n.openBlock(),n.createElementBlock("img",{key:0,class:"single-preview opacity-5",src:E.url,alt:""},null,8,YS)):n.createCommentVNode("",!0)],2))),128))])):n.createCommentVNode("",!0)],!0),!n.unref(i).length&&!n.unref(l).length||y.multiple?n.renderSlot(y.$slots,"placeholder",{key:0,files:n.unref(i),fileQueue:n.unref(l),browse:n.unref(d)},()=>[n.createElementVNode("p",XS,[y.showIcon?(n.openBlock(),n.createBlock(n.unref(Te),{key:0,name:y.icon,size:"2.5",class:"user-select-none"},null,8,["name"])):n.createCommentVNode("",!0),n.createElementVNode("span",KS,n.toDisplayString(n.unref(je)(y.placeholder)||n.unref(a)("upload.dropPlaceholder")),1)])],!0):n.createCommentVNode("",!0)],38))])}}}),Aa=Me(JS,[["__scopeId","data-v-f4bb6c01"]]),ZS=["h1","h2","h3","h4","h5","h6","separator","p","blockquote","orderedList","unorderedList","separator","bold","italic","underline","separator","alignMenu","ltrDirection","rtlDirection","separator","insertTable","separator","link","image","video","embed","clear","separator","undo","redo","separator","splitView","fullScreen"],QS=[{name:"headingsMenu",label:"Headings",icon:"title"},{name:"mediaMenu",label:"Media",icon:"perm_media"},{name:"alignMenu",label:"Alignment",icon:"format_align_left"},{name:"h1",label:"Heading 1",icon:"format_h1"},{name:"h2",label:"Heading 2",icon:"format_h2"},{name:"h3",label:"Heading 3",icon:"format_h3"},{name:"h4",label:"Heading 4",icon:"format_h4"},{name:"h5",label:"Heading 5",icon:"format_h5"},{name:"h6",label:"Heading 6",icon:"format_h6"},{name:"p",label:"Paragraph",icon:"format_paragraph"},{name:"blockquote",label:"Blockquote",icon:"format_quote"},{name:"bold",label:"Bold",icon:"format_bold"},{name:"italic",label:"Italic",icon:"format_italic"},{name:"underline",label:"Underline",icon:"format_underlined"},{name:"orderedList",label:"Ordered List",icon:"format_list_numbered"},{name:"unorderedList",label:"Unordered List",icon:"format_list_bulleted"},{name:"link",label:"Link",icon:"add_link"},{name:"image",label:"Image",icon:"add_photo_alternate"},{name:"video",label:"Video",icon:"play_circle"},{name:"embed",label:"Embed",icon:"media_link"},{name:"splitView",label:"Split View",icon:"code"},{name:"clear",label:"Clear Formatting",icon:"format_clear"},{name:"alignLeft",label:"Align Left",icon:"format_align_left"},{name:"alignCenter",label:"Align Center",icon:"format_align_center"},{name:"alignRight",label:"Align Right",icon:"format_align_right"},{name:"alignJustify",label:"Align Justify",icon:"format_align_justify"},{name:"tableAlignLeft",label:"Table Align Left",icon:"format_align_left"},{name:"tableAlignCenter",label:"Table Align Center",icon:"format_align_center"},{name:"tableAlignRight",label:"Table Align Right",icon:"format_align_right"},{name:"tableAlignJustify",label:"Table Align Justify",icon:"format_align_justify"},{name:"indent",label:"Indent",icon:"format_indent_increase"},{name:"outdent",label:"Outdent",icon:"format_indent_decrease"},{name:"fontColor",label:"Font Color",icon:"format_color_text"},{name:"bgColor",label:"Background Color",icon:"format_color_fill"},{name:"insertTable",label:"Insert Table",icon:"table"},{name:"deleteTable",label:"Delete Table",icon:"delete_sweep"},{name:"mergeCells",label:"Merge Cells",icon:"table_chart"},{name:"splitCells",label:"Split Cells",icon:"dashboard"},{name:"addRowBefore",label:"Insert Row Above",icon:"add_box"},{name:"addRowAfter",label:"Insert Row Below",icon:"vertical_align_bottom"},{name:"deleteRow",label:"Delete Row",icon:"remove"},{name:"insertColumnLeft",label:"Insert Column Left",icon:"format_indent_decrease"},{name:"insertColumnRight",label:"Insert Column Right",icon:"format_indent_increase"},{name:"deleteColumn",label:"Delete Column",icon:"view_week"},{name:"separator"},{name:"undo",label:"Undo",icon:"undo"},{name:"redo",label:"Redo",icon:"redo"},{name:"separator"},{name:"fullScreen",label:"Full Screen",icon:"fullscreen",class:"ms-auto"},{name:"textDirection",label:"Text Direction (RTL/LTR)",icon:"format_textdirection_r_to_l"},{name:"ltrDirection",label:"Left to Right",icon:"format_textdirection_l_to_r"},{name:"rtlDirection",label:"Right to Left",icon:"format_textdirection_r_to_l"}],e3={class:"table-grid-selector p-075"},t3={class:"txt-center mb-075"},n3={style:{"font-size":"14px","font-weight":"500",color:"#333","margin-bottom":"4px"}},o3=["onFocus","onMouseenter","onClick"],r3={class:"border-top pt-075"},a3=10,l3=10,i3=n.defineComponent({__name:"TableGridSelector",emits:["insert","openAdvanced"],setup(e,{emit:t}){const o=t,r=n.ref(0),a=n.ref(0),l=n.computed(()=>{const f=[];for(let h=1;h<=a3;h++)for(let m=1;m<=l3;m++)f.push({row:h,col:m,isActive:h<=r.value&&m<=a.value});return f}),i=n.computed(()=>r.value===0||a.value===0?"Select table size":`${r.value} × ${a.value}`);function s(f,h){r.value=f,a.value=h}function c(f,h,m){o("insert",f,h),m()}function u(f){o("openAdvanced"),f()}function d(){r.value=0,a.value=0}return(f,h)=>(n.openBlock(),n.createBlock(n.unref(on),{placement:"bottom-start",thin:"",flat:"",icon:"table"},{default:n.withCtx(({hide:m})=>[n.createElementVNode("div",e3,[n.createElementVNode("div",t3,[n.createElementVNode("div",n3,n.toDisplayString(i.value),1),h[0]||(h[0]=n.createElementVNode("div",{style:{"font-size":"12px",color:"#666"}}," Hover to select size ",-1))]),n.createElementVNode("div",{style:{display:"grid","grid-template-columns":"repeat(10, 20px)","grid-template-rows":"repeat(10, 20px)",gap:"2px","margin-bottom":"12px",direction:"ltr"},onMouseleave:d,onBlur:d},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(l.value,p=>(n.openBlock(),n.createElementBlock("div",{key:`${p.row}-${p.col}`,tabindex:"0",style:n.normalizeStyle({width:"20px",height:"20px",border:"1px solid #ddd",backgroundColor:p.isActive?"var(--bgl-primary)":"#fff",cursor:"pointer",borderRadius:"2px",transition:"background-color 0.1s ease"}),onFocus:g=>s(p),onMouseenter:g=>s(p.row,p.col),onClick:g=>c(p.row,p.col,m)},null,44,o3))),128))],32),n.createElementVNode("div",r3,[n.createVNode(n.unref(ee),{value:"Advanced Settings",icon:"settings",class:"bg-gray-30 color-black",onClick:p=>u(m)},null,8,["onClick"])])])]),_:1}))}}),s3={class:"toolbar flex gap-025 pb-05 flex-wrap",role:"toolbar",style:{position:"relative"}},c3={class:"flex flex-column p-025"},u3=n.defineComponent({__name:"EditorToolbar",props:{config:{default:()=>ZS},selectedStyles:{},hideImages:{type:Boolean,default:!1},hideVideos:{type:Boolean,default:!1},hideEmbeds:{type:Boolean,default:!1},hideTables:{type:Boolean,default:!1},hideAlignment:{type:Boolean,default:!1},hideDirections:{type:Boolean,default:!1},hideH5H6:{type:Boolean,default:!1},hide:{default:()=>[]}},emits:["action"],setup(e,{emit:t}){const o=t;function r(){return e.selectedStyles.has("alignLeft")?"format_align_left":e.selectedStyles.has("alignCenter")?"format_align_center":e.selectedStyles.has("alignRight")?"format_align_right":e.selectedStyles.has("alignJustify")?"format_align_justify":"format_align_left"}function a(){return e.selectedStyles.has("alignLeft")||e.selectedStyles.has("alignCenter")||e.selectedStyles.has("alignRight")||e.selectedStyles.has("alignJustify")}function l(f){if(e.hide.includes(f))return!0;const h={image:["insertImage","image"],video:["insertVideo","video"],embed:["insertEmbed","embed"],table:["insertTable"],direction:["textDirection"],fullScreen:["fullScreen"],ul:["unorderedList"],ol:["orderedList"],splitView:["splitView"],p:["p"],align:["alignMenu"],alignment:["alignMenu"]};for(const[p,g]of Object.entries(h))if(e.hide.includes(p)&&g.includes(f))return!0;return{insertImage:e.hideImages,insertVideo:e.hideVideos,insertEmbed:e.hideEmbeds,insertTable:e.hideTables,alignMenu:e.hideAlignment,textDirection:e.hideDirections,h5:e.hideH5H6,h6:e.hideH5H6}[f]||!1}const i=f=>QS.find(h=>h.name===f);function s(f){const h=e.config.map(i).filter(Boolean);let m=-1;for(let g=f-1;g>=0;g--){const _=h[g];if(_&&_.name!=="separator"&&!l(_.name)){m=g;break}}let p=-1;for(let g=f+1;g<h.length;g++){const _=h[g];if(_&&_.name!=="separator"&&!l(_.name)){p=g;break}}if(m===-1||p===-1)return!1;for(let g=m+1;g<f;g++){const _=h[g];if(_&&_.name==="separator")return!1}return!0}function c(f,h){console.log("EditorToolbar: runAction called",{name:f,value:h}),o("action",f,h)}function u(f,h){const m=document.createElement("table");m.style.width="100%",m.style.borderCollapse="collapse",m.style.marginBottom="1rem";const p=document.createElement("thead"),g=p.insertRow();for(let v=0;v<h;v++){const y=document.createElement("th");y.innerHTML=`Header ${v+1}`,y.style.padding="8px",y.style.border="1px solid #ddd",y.style.backgroundColor="#f4f4f4",g.appendChild(y)}m.appendChild(p);const _=document.createElement("tbody");for(let v=0;v<f;v++){const y=_.insertRow();for(let b=0;b<h;b++){const $=y.insertCell();$.innerHTML=" ",$.style.padding="8px",$.style.border="1px solid #ddd"}}m.appendChild(_),o("action","insertTable",m.outerHTML)}function d(){o("action","insertTable")}return(f,h)=>{const m=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("div",s3,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(f.config.map(i).filter(Boolean),(p,g)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:g},[p.name==="insertTable"&&!l("insertTable")?(n.openBlock(),n.createBlock(i3,{key:0,onInsert:u,onOpenAdvanced:d})):p.name==="insertImage"&&!l("insertImage")?n.withDirectives((n.openBlock(),n.createBlock(n.unref(ee),{key:1,icon:p.icon,thin:"",flat:"","aria-label":p.name,class:n.normalizeClass([[p.class,{active:f.selectedStyles.has(p.name)}],""]),tabindex:"-1",onClick:_=>c(p.name)},null,8,["icon","aria-label","class","onClick"])),[[m,p.label]]):p.name==="insertVideo"&&!l("insertVideo")?n.withDirectives((n.openBlock(),n.createBlock(n.unref(ee),{key:2,icon:p.icon,thin:"",flat:"","aria-label":p.name,class:n.normalizeClass([[p.class,{active:f.selectedStyles.has(p.name)}],""]),tabindex:"-1",onClick:_=>c(p.name)},null,8,["icon","aria-label","class","onClick"])),[[m,p.label]]):p.name==="insertEmbed"&&!l("insertEmbed")?n.withDirectives((n.openBlock(),n.createBlock(n.unref(ee),{key:3,icon:p.icon,thin:"",flat:"","aria-label":p.name,class:n.normalizeClass([[p.class,{active:f.selectedStyles.has(p.name)}],""]),tabindex:"-1",onClick:_=>c(p.name)},null,8,["icon","aria-label","class","onClick"])),[[m,p.label]]):p.name==="alignMenu"&&!l("alignMenu")?(n.openBlock(),n.createBlock(n.unref(on),{key:4,placement:"bottom-start",thin:"",flat:"",icon:r(),class:n.normalizeClass({"alignment-active":a()})},{default:n.withCtx(({hide:_})=>[n.createElementVNode("div",c3,[n.createVNode(n.unref(ee),{thin:"",flat:"",icon:"format_align_left",class:n.normalizeClass({active:f.selectedStyles.has("alignLeft")}),onClick:v=>{c("alignLeft"),_()}},null,8,["class","onClick"]),n.createVNode(n.unref(ee),{thin:"",flat:"",icon:"format_align_center",class:n.normalizeClass({active:f.selectedStyles.has("alignCenter")}),onClick:v=>{c("alignCenter"),_()}},null,8,["class","onClick"]),n.createVNode(n.unref(ee),{thin:"",flat:"",icon:"format_align_right",class:n.normalizeClass({active:f.selectedStyles.has("alignRight")}),onClick:v=>{c("alignRight"),_()}},null,8,["class","onClick"]),n.createVNode(n.unref(ee),{thin:"",flat:"",icon:"format_align_justify",class:n.normalizeClass({active:f.selectedStyles.has("alignJustify")}),onClick:v=>{c("alignJustify"),_()}},null,8,["class","onClick"])])]),_:1},8,["icon","class"])):p.name==="textDirection"&&!l("textDirection")?n.withDirectives((n.openBlock(),n.createBlock(n.unref(ee),{key:5,icon:f.selectedStyles.has("textDirection")?"format_textdirection_l_to_r":"format_textdirection_r_to_l",thin:"",flat:"","aria-label":p.name,class:n.normalizeClass([[p.class,{active:f.selectedStyles.has("textDirection")}],""]),tabindex:"-1",onClick:_=>c(p.name)},null,8,["icon","aria-label","class","onClick"])),[[m,p.label]]):(p.name==="h5"||p.name==="h6")&&!l(p.name)?n.withDirectives((n.openBlock(),n.createBlock(n.unref(ee),{key:6,icon:p.icon,thin:"",flat:"","aria-label":p.name,class:n.normalizeClass([[p.class,{active:f.selectedStyles.has(p.name)}],""]),tabindex:"-1",onClick:_=>c(p.name)},null,8,["icon","aria-label","class","onClick"])),[[m,p.label]]):p.name!=="separator"&&p.name!=="insertTable"&&p.name!=="insertImage"&&p.name!=="insertVideo"&&p.name!=="insertEmbed"&&p.name!=="alignMenu"&&p.name!=="textDirection"&&p.name!=="h5"&&p.name!=="h6"&&!l(p.name)?n.withDirectives((n.openBlock(),n.createBlock(n.unref(ee),{key:7,icon:p.icon,thin:"",flat:"","aria-label":p.name,class:n.normalizeClass([[p.class,{active:f.selectedStyles.has(p.name)}],""]),tabindex:"-1",onClick:_=>c(p.name)},null,8,["icon","aria-label","class","onClick"])),[[m,p.label]]):p.name==="separator"&&s(g)?(n.openBlock(),n.createElementBlock("span",{key:`separator-${g}`,class:"opacity-2 mb-025"},"|")):n.createCommentVNode("",!0)],64))),128))])}}}),d3=Me(u3,[["__scopeId","data-v-a3d072e5"]]);function f3(e,t){const{doc:o}=t;if(!o){console.log("No doc found");return}const r=o.getSelection();if(!r||!r.rangeCount){console.log("No selection found");return}let a=r.getRangeAt(0);if(a.collapsed){if(!p3(o,a)){console.log("Failed to select word at cursor");const{showTooltipMessage:u}=t;u?u("To add a link, please select text first or place cursor within a word"):alert("To add a link, please select text first or place the cursor within a word you want to turn into a link.");return}a=r.getRangeAt(0)}const l=a.commonAncestorContainer,i=l.nodeType===Node.TEXT_NODE?l.parentElement:l,s=i==null?void 0:i.closest("a");if(t.openLinkModal){t.openLinkModal(r,a,s);return}console.warn("Link modal not available - openLinkModal function not found"),alert("Link functionality requires proper modal setup")}function p3(e,t){if(!t.collapsed)return!0;let o=t.startContainer,r=t.startOffset;if(o.nodeType!==Node.TEXT_NODE){const c=o;if(c.childNodes.length>0&&r<c.childNodes.length){const u=c.childNodes[r];if(u.nodeType===Node.TEXT_NODE)o=u,r=0;else return!1}else return!1}const a=o.textContent||"";if(!a)return!1;let l=r,i=r;const s=/[\u0590-\u05FF\u0600-\u06FF\w]/;for(;l>0&&s.test(a[l-1]);)l--;for(;i<a.length&&s.test(a[i]);)i++;if(l<i){t.setStart(o,l),t.setEnd(o,i);const c=e.getSelection();return c&&(c.removeAllRanges(),c.addRange(t)),!0}return!1}function _f(e,t,o){if(!o.doc)return;const r=o.doc.createElement("table");r.style.width="100%",r.style.borderCollapse="collapse",r.style.marginBottom="1rem";const a=o.doc.createElement("thead"),l=a.insertRow();for(let c=0;c<t;c++){const u=o.doc.createElement("th");u.innerHTML=`Header ${c+1}`,u.style.padding="8px",u.style.border="1px solid var(--border-color, #ddd)",u.style.backgroundColor="var(--bgl-gray-light, #f4f4f4)",l.appendChild(u)}r.appendChild(a);const i=o.doc.createElement("tbody");for(let c=0;c<e;c++){const u=i.insertRow();for(let d=0;d<t;d++){const f=u.insertCell();f.innerHTML=" ",f.style.padding="8px",f.style.border="1px solid var(--border-color, #ddd)"}}r.appendChild(i);const{range:s}=o;if(s){if(s.insertNode(r),o.doc.getSelection()){const c=r.querySelector("td");if(c){s.selectNodeContents(c),s.collapse(!0);const u=o.doc.getSelection();u&&(u.removeAllRanges(),u.addRange(s))}}}else o.doc.body.appendChild(r);o.content=o.doc.body.innerHTML}function m3(e,t){var l;const o=Array.from(e.cloneContents().querySelectorAll("td"));if(o.length<2)return;const r=(l=e.startContainer.parentElement)==null?void 0:l.closest("td");if(!r)return;r.colSpan=o.length,r.innerHTML=o.map(i=>i.innerHTML).join(" "),o.slice(1).forEach(i=>{const s=t.getElementById(i.id);s==null||s.remove()});const a=t.editorState;a&&(a.content=t.body.innerHTML)}function h3(e,t){var l;const o=(l=e.startContainer.parentElement)==null?void 0:l.closest("td");if(!o||!o.colSpan||o.colSpan===1)return;const r=new Array(o.colSpan-1).fill(0).map(()=>{const i=t.createElement("td");return i.style.border="1px solid var(--border-color)",i.style.padding="8px",i.innerHTML=" ",i});o.colSpan=1,o.insertAdjacentElement("afterend",r[0]),r.slice(1).forEach(i=>{r[0].insertAdjacentElement("afterend",i)});const a=t.editorState;a&&(a.content=t.body.innerHTML)}function bf(e,t,o){var c;const r=(c=t.startContainer.parentElement)==null?void 0:c.closest("td");if(!r)return;const a=r.parentElement,l=a==null?void 0:a.parentElement;if(!a||!l)return;const i=a.cloneNode(!0);Array.from(i.cells).forEach(u=>u.innerHTML=" "),a.insertAdjacentElement(e==="before"?"beforebegin":"afterend",i);const s=o.editorState;s&&(s.content=o.body.innerHTML)}function g3(e){var l;const t=(l=e.startContainer.parentElement)==null?void 0:l.closest("td");if(!t)return;const o=t.parentElement;if(!o)return;const r=o.ownerDocument;o.remove();const a=r.editorState;a&&(a.content=r.body.innerHTML)}function v3(e){var l;const t=(l=e.startContainer.parentElement)==null?void 0:l.closest("td");if(!t)return;const o=t.closest("table");if(!o)return;const r=o.ownerDocument;o.remove();const a=r.editorState;a&&(a.content=r.body.innerHTML)}function wf(e,t){var s;const o=(s=t.startContainer.parentElement)==null?void 0:s.closest("td");if(!o)return;const r=o.closest("table");if(!r)return;const a=o.cellIndex,{rows:l}=r;for(let c=0;c<l.length;c++){const u=l[c].insertCell(e==="after"?a+1:a);u.innerHTML=" ",u.style.border="1px solid var(--border-color)",u.style.padding="8px"}const i=r.ownerDocument.editorState;i&&(i.content=r.ownerDocument.body.innerHTML)}function y3(e){var s;const t=(s=e.startContainer.parentElement)==null?void 0:s.closest("td");if(!t)return;const o=t.closest("table");if(!o)return;const r=t.cellIndex,{rows:a}=o,l=o.ownerDocument;for(let c=0;c<a.length;c++)a[c].deleteCell(r);a[0].cells.length===0&&o.remove();const i=l.editorState;i&&(i.content=l.body.innerHTML)}function _3(e,t){var s;const o=(s=e.startContainer.parentElement)==null?void 0:s.closest("td");if(!o)return;const r=o.closest("table");if(!r)return;const a=o.cellIndex,{rows:l}=r;for(let c=0;c<l.length;c++){const u=l[c].cells[a];u&&(u.style.textAlign=t)}const i=r.ownerDocument.editorState;i&&(i.content=r.ownerDocument.body.innerHTML)}function it(e){if(!e.doc)return null;const t=e.doc.getSelection();if(!t||!t.rangeCount)return null;const o=t.getRangeAt(0);return{selection:t,range:o}}function xs(e,t,o){if(!t.collapsed)return!1;let r=t.startContainer,a=t.startOffset;if(r.nodeType!==Node.TEXT_NODE){const f=r;if(f.childNodes.length>0&&a<f.childNodes.length){const h=f.childNodes[a];if(h.nodeType===Node.TEXT_NODE)r=h,a=0;else return!1}else return!1}const{parentElement:l}=r,i=l==null?void 0:l.closest(o.toLowerCase());if(i)try{const f=i.parentNode;if(f){for(;i.firstChild;)f.insertBefore(i.firstChild,i);f.removeChild(i);const h=e.createRange();h.setStart(r,a),h.collapse(!0);const m=e.getSelection();return m&&(m.removeAllRanges(),m.addRange(h)),!0}}catch(f){return console.error("Error removing formatting from word:",f),!1}const s=r.textContent||"";if(!s)return!1;let c=a,u=a;const d=/[\u0590-\u05FF\u0600-\u06FF\w]/;for(a>0&&d.test(s[a-1])&&(a>=s.length||!d.test(s[a]))&&(c=a-1,u=a-1);c>0&&d.test(s[c-1]);)c--;for(;u<s.length&&d.test(s[u]);)u++;if(c<u&&u>c)try{const f=s.substring(0,c),h=s.substring(c,u),m=s.substring(u),p=e.createElement(o);p.textContent=h;const g=r.parentNode;if(g){if(f){const y=e.createTextNode(f);g.insertBefore(y,r)}if(g.insertBefore(p,r),m){const y=e.createTextNode(m);g.insertBefore(y,r)}g.removeChild(r);const _=e.createRange();_.setStartAfter(p),_.collapse(!0);const v=e.getSelection();return v&&(v.removeAllRanges(),v.addRange(_)),!0}}catch(f){console.error("Error applying formatting to word:",f)}return!1}function b3(e){if(!e.doc)return;e.content=e.doc.body.innerHTML;const t=e.doc.getSelection();t&&t.rangeCount>0&&(e.selection=t,e.range=t.getRangeAt(0).cloneRange(),e.rangeCount=t.rangeCount)}function aa(e){let t=e.nodeType===Node.TEXT_NODE?e.parentElement:e;for(;t;){if(t.matches&&t.matches("p,h1,h2,h3,h4,h5,h6,blockquote,li,div"))return t;t=t.parentElement}return null}function Je(e,t,o){return{name:e,execute:(r,a)=>{r.doc&&(t(r,a),b3(r))},isActive:o}}function w3(e){const t={undo:Je("Undo",()=>{if(e.undoStack.length>0&&e.doc){const h=e.undoStack.pop();h!==void 0&&(e.redoStack.push(e.content),e.content=h,e.doc.body.innerHTML=h)}}),redo:Je("Redo",()=>{if(e.redoStack.length>0&&e.doc){const h=e.redoStack.pop();h!==void 0&&(e.undoStack.push(e.content),e.content=h,e.doc.body.innerHTML=h)}})},o={bold:Je("Bold",h=>{const m=it(h);if(!m)return;let{range:p,selection:g}=m;if(p.collapsed)return xs(h.doc,p,"b"),void 0;const _=p.commonAncestorContainer,v=_.nodeType===Node.TEXT_NODE?_.parentElement:_,y=v==null?void 0:v.closest("b, strong");if(y)try{const b=y.parentNode;for(;y.firstChild;)b==null||b.insertBefore(y.firstChild,y);b==null||b.removeChild(y),g.removeAllRanges(),g.addRange(p)}catch(b){console.error("Error removing bold:",b)}else try{const b=h.doc.createElement("b");try{p.surroundContents(b)}catch{const $=p.extractContents();b.appendChild($),p.insertNode(b)}p.selectNodeContents(b),g.removeAllRanges(),g.addRange(p)}catch(b){console.error("Error applying bold:",b)}},h=>{const m=it(h);if(!m)return!1;const p=m.range.commonAncestorContainer,g=p.nodeType===Node.TEXT_NODE?p.parentElement:p;return!!(g!=null&&g.closest("b, strong"))}),italic:Je("Italic",h=>{const m=it(h);if(!m)return;let{range:p,selection:g}=m;if(p.collapsed)return xs(h.doc,p,"i"),void 0;const _=p.commonAncestorContainer,v=_.nodeType===Node.TEXT_NODE?_.parentElement:_,y=v==null?void 0:v.closest("i, em");if(y)try{const b=y.parentNode;for(;y.firstChild;)b==null||b.insertBefore(y.firstChild,y);b==null||b.removeChild(y),g.removeAllRanges(),g.addRange(p)}catch(b){console.error("Error removing italic:",b)}else try{const b=h.doc.createElement("i");try{p.surroundContents(b)}catch{const $=p.extractContents();b.appendChild($),p.insertNode(b)}p.selectNodeContents(b),g.removeAllRanges(),g.addRange(p)}catch(b){console.error("Error applying italic:",b)}},h=>{const m=it(h);if(!m)return!1;const p=m.range.commonAncestorContainer,g=p.nodeType===Node.TEXT_NODE?p.parentElement:p;return!!(g!=null&&g.closest("i, em"))}),underline:Je("Underline",h=>{const m=it(h);if(!m)return;let{range:p,selection:g}=m;if(p.collapsed)return xs(h.doc,p,"u"),void 0;const _=p.commonAncestorContainer,v=_.nodeType===Node.TEXT_NODE?_.parentElement:_,y=v==null?void 0:v.closest("u");if(y)try{const b=y.parentNode;for(;y.firstChild;)b==null||b.insertBefore(y.firstChild,y);b==null||b.removeChild(y),g.removeAllRanges(),g.addRange(p)}catch(b){console.error("Error removing underline:",b)}else try{const b=h.doc.createElement("u");try{p.surroundContents(b)}catch{const $=p.extractContents();b.appendChild($),p.insertNode(b)}p.selectNodeContents(b),g.removeAllRanges(),g.addRange(p)}catch(b){console.error("Error applying underline:",b)}},h=>{const m=it(h);if(!m)return!1;const p=m.range.commonAncestorContainer,g=p.nodeType===Node.TEXT_NODE?p.parentElement:p;return!!(g!=null&&g.closest("u"))}),link:Je("Link",h=>{const{openLinkModal:m}=h;m&&f3(m,h)},h=>{const m=it(h);if(!m)return!1;const p=m.range.commonAncestorContainer,g=p.nodeType===Node.TEXT_NODE?p.parentElement:p;return!!(g!=null&&g.closest("a"))})},r=["h1","h2","h3","h4","h5","h6"].reduce((h,m)=>({...h,[m]:Je(`Heading ${m}`,p=>{var M,V,k,C;const g=it(p);if(!g)return;const{range:_,selection:v}=g,y=aa(_.commonAncestorContainer);if(!y)return;const{startContainer:b}=_,{endContainer:$}=_,{startOffset:w}=_,{endOffset:E}=_,S=_.collapsed,x=y.tagName.toLowerCase()===m.toLowerCase(),N=x?"p":m;try{const B=p.doc.createElement(N);for(;y.firstChild;)B.appendChild(y.firstChild);(M=y.parentNode)==null||M.replaceChild(B,y);try{const A=p.doc.createRange(),L=(oe,Z,U)=>{if(oe===Z)return U;if(oe.nodeType===Node.TEXT_NODE){const R=p.doc.createTreeWalker(U,NodeFilter.SHOW_TEXT,null);let H=0;const J=p.doc.createTreeWalker(Z,NodeFilter.SHOW_TEXT,null);let ae=J.nextNode();for(;ae&&ae!==oe;)H++,ae=J.nextNode();let fe=R.nextNode(),pe=0;for(;fe&&pe<H;)pe++,fe=R.nextNode();return fe}return U.firstChild},I=L(b,y,B),P=L($,y,B);if(I&&P){if(I.nodeType===Node.TEXT_NODE){const oe=Math.min(w,((V=I.textContent)==null?void 0:V.length)||0);A.setStart(I,oe)}else A.setStart(I,0);if(S)A.collapse(!0);else if(P.nodeType===Node.TEXT_NODE){const oe=Math.min(E,((k=P.textContent)==null?void 0:k.length)||0);A.setEnd(P,oe)}else A.setEnd(P,0);v.removeAllRanges(),v.addRange(A)}else A.selectNodeContents(B),S&&A.collapse(!0),v.removeAllRanges(),v.addRange(A)}catch(A){console.warn("Error restoring selection after heading change:",A);const L=p.doc.createRange();L.selectNodeContents(B),L.collapse(!0),v.removeAllRanges(),v.addRange(L)}if(!x&&!B.nextElementSibling){const L=p.doc.createElement("p");L.dir=B.dir||p.doc.body.dir,(C=B.parentNode)==null||C.insertBefore(L,B.nextSibling)}}catch(B){console.error(`Error applying ${m} heading:`,B)}})}),{}),a={p:Je("Paragraph",h=>{var _;const m=it(h);if(!m)return;const{range:p}=m,g=aa(p.commonAncestorContainer);if(g&&g.tagName.toLowerCase()!=="p")try{const v=h.doc.createElement("p");for(;g.firstChild;)v.appendChild(g.firstChild);(_=g.parentNode)==null||_.replaceChild(v,g),p.selectNodeContents(v),p.collapse(!1),m.selection.removeAllRanges(),m.selection.addRange(p)}catch(v){console.error("Error applying paragraph:",v)}}),blockquote:Je("Blockquote",h=>{var y;const m=it(h);if(!m)return;const{range:p}=m,g=aa(p.commonAncestorContainer);if(!g)return;const v=g.tagName.toLowerCase()==="blockquote"?"p":"blockquote";try{const b=h.doc.createElement(v);for(;g.firstChild;)b.appendChild(g.firstChild);(y=g.parentNode)==null||y.replaceChild(b,g),p.selectNodeContents(b),p.collapse(!1),m.selection.removeAllRanges(),m.selection.addRange(p)}catch(b){console.error("Error applying blockquote:",b)}})},l={orderedList:Je("Ordered List",h=>{var v,y,b;const m=it(h);if(!m)return;const{range:p}=m,g=aa(p.commonAncestorContainer);if(!g)return;const _=g.closest("li");if(_){const $=_.parentElement;if(!$)return;if($.tagName.toLowerCase()==="ol"){const w=h.doc.createElement("p");for(;_.firstChild;)w.appendChild(_.firstChild);(v=$.parentNode)==null||v.insertBefore(w,$),_.remove(),$.querySelector("li")||$.remove(),p.selectNodeContents(w),p.collapse(!1),m.selection.removeAllRanges(),m.selection.addRange(p);return}if($.tagName.toLowerCase()==="ul"){const w=h.doc.createElement("ol"),E=p.startOffset,S=p.startContainer;for(;$.firstChild;)w.appendChild($.firstChild);(y=$.parentNode)==null||y.replaceChild(w,$);try{const x=h.doc.createRange();x.setStart(S,E),x.collapse(!0),m.selection.removeAllRanges(),m.selection.addRange(x)}catch{const x=w.querySelector("li");if(x){const N=h.doc.createRange();N.selectNodeContents(x),N.collapse(!0),m.selection.removeAllRanges(),m.selection.addRange(N)}}return}}try{const $=h.doc.createElement("ol"),w=h.doc.createElement("li");for(;g.firstChild;)w.appendChild(g.firstChild);$.appendChild(w),(b=g.parentNode)==null||b.replaceChild($,g),p.selectNodeContents(w),p.collapse(!1),m.selection.removeAllRanges(),m.selection.addRange(p)}catch($){console.error("Error creating ordered list:",$)}}),unorderedList:Je("Unordered List",h=>{var v,y,b;const m=it(h);if(!m)return;const{range:p}=m,g=aa(p.commonAncestorContainer);if(!g)return;const _=g.closest("li");if(_){const $=_.parentElement;if(!$)return;if($.tagName.toLowerCase()==="ul"){const w=h.doc.createElement("p");for(;_.firstChild;)w.appendChild(_.firstChild);(v=$.parentNode)==null||v.insertBefore(w,$),_.remove(),$.querySelector("li")||$.remove(),p.selectNodeContents(w),p.collapse(!1),m.selection.removeAllRanges(),m.selection.addRange(p);return}if($.tagName.toLowerCase()==="ol"){const w=h.doc.createElement("ul"),E=p.startOffset,S=p.startContainer;for(;$.firstChild;)w.appendChild($.firstChild);(y=$.parentNode)==null||y.replaceChild(w,$);try{const x=h.doc.createRange();x.setStart(S,E),x.collapse(!0),m.selection.removeAllRanges(),m.selection.addRange(x)}catch(x){console.warn("Could not restore cursor position:",x);const N=w.querySelector("li");if(N){const M=h.doc.createRange();M.selectNodeContents(N),M.collapse(!0),m.selection.removeAllRanges(),m.selection.addRange(M)}}return}}try{const $=h.doc.createElement("ul"),w=h.doc.createElement("li");for(;g.firstChild;)w.appendChild(g.firstChild);$.appendChild(w),(b=g.parentNode)==null||b.replaceChild($,g),p.selectNodeContents(w),p.collapse(!1),m.selection.removeAllRanges(),m.selection.addRange(p)}catch($){console.error("Error creating unordered list:",$)}})},i={clear:Je("Clear Formatting",h=>{const m=it(h);if(!m)return;const{range:p,selection:g}=m;try{let _=function(y){return y.replace(/[\u200B-\u200D\uFEFF]/g,"").replace(/\s+/g," ").replace(/\u00A0/g," ").trim()},v=function(y){if(y.nodeType===Node.TEXT_NODE){const b=_(y.textContent||"");return h.doc.createTextNode(b)}if(y.nodeType===Node.ELEMENT_NODE){const b=y,$=b.tagName.toLowerCase(),w=["p","h1","h2","h3","h4","h5","h6","ul","ol","li","blockquote","div","table","tr","td","th","thead","tbody","b","i","u","a","img","iframe","video","audio","figure","figcaption"];if(["strong","em","span","font","strike","sub","sup","mark","del","ins","small","big"].includes($)){const S=_(b.textContent||"");return h.doc.createTextNode(S)}if(w.includes($)){const S=h.doc.createElement($);return $==="a"&&b.hasAttribute("href")?(S.setAttribute("href",b.getAttribute("href")||""),b.hasAttribute("target")&&S.setAttribute("target",b.getAttribute("target")||""),b.hasAttribute("rel")&&S.setAttribute("rel",b.getAttribute("rel")||"")):$==="img"?(b.hasAttribute("src")&&S.setAttribute("src",b.getAttribute("src")||""),b.hasAttribute("alt")&&S.setAttribute("alt",b.getAttribute("alt")||""),b.hasAttribute("width")&&S.setAttribute("width",b.getAttribute("width")||""),b.hasAttribute("height")&&S.setAttribute("height",b.getAttribute("height")||"")):$==="iframe"?(b.hasAttribute("src")&&S.setAttribute("src",b.getAttribute("src")||""),b.hasAttribute("width")&&S.setAttribute("width",b.getAttribute("width")||""),b.hasAttribute("height")&&S.setAttribute("height",b.getAttribute("height")||""),b.hasAttribute("frameborder")&&S.setAttribute("frameborder",b.getAttribute("frameborder")||""),b.hasAttribute("allowfullscreen")&&S.setAttribute("allowfullscreen",b.getAttribute("allowfullscreen")||"")):($==="video"||$==="audio")&&(b.hasAttribute("src")&&S.setAttribute("src",b.getAttribute("src")||""),b.hasAttribute("controls")&&S.setAttribute("controls",b.getAttribute("controls")||""),b.hasAttribute("width")&&S.setAttribute("width",b.getAttribute("width")||""),b.hasAttribute("height")&&S.setAttribute("height",b.getAttribute("height")||"")),Array.from(b.childNodes).forEach(x=>{var M;const N=v(x);((M=N.textContent)!=null&&M.trim()||N.nodeType===Node.ELEMENT_NODE)&&S.appendChild(N)}),S}}return h.doc.createTextNode("")};if(p.collapsed){const{body:y}=h.doc,b=h.doc.createDocumentFragment();if(Array.from(y.childNodes).forEach($=>{var E;const w=v($);((E=w.textContent)!=null&&E.trim()||w.nodeType===Node.ELEMENT_NODE)&&b.appendChild(w)}),y.innerHTML="",y.appendChild(b),!y.firstElementChild){const $=h.doc.createElement("p");y.appendChild($);const w=h.doc.createRange();w.selectNodeContents($),w.collapse(!0),g.removeAllRanges(),g.addRange(w)}}else{const y=p.cloneContents(),b=h.doc.createElement("div");b.appendChild(y);const $=h.doc.createDocumentFragment();Array.from(b.childNodes).forEach(w=>{var S;const E=v(w);((S=E.textContent)!=null&&S.trim()||E.nodeType===Node.ELEMENT_NODE)&&$.appendChild(E)}),p.deleteContents(),p.insertNode($),p.collapse(!1),g.removeAllRanges(),g.addRange(p)}}catch(_){console.error("Error clearing formatting:",_)}})},s={insertTable:Je("Insert Table",(h,m)=>{if(console.log("insertTable command called with value:",m),h.openTableEditor&&!m){console.log("Opening table editor modal for new table"),h.openTableEditor(null);return}if(!m){const[p,g]=[3,3];_f(p,g,h);return}if(m.includes("<table")){console.log("Inserting HTML table");const p=it(h);if(!p||!h.doc){console.error("No selection info or document");return}const{range:g}=p;try{const _=h.doc.createElement("div");_.innerHTML=m;const v=_.querySelector("table");if(v){console.log("Table parsed successfully, inserting...");const y=v.cloneNode(!0);g.insertNode(y),g.setStartAfter(y),g.collapse(!0);const b=h.doc.getSelection();b&&(b.removeAllRanges(),b.addRange(g)),console.log("Table inserted successfully")}else console.error("Could not parse table from HTML")}catch(_){console.error("Error inserting HTML table:",_)}}else{const[p,g]=m.split("x").map(Number)||[3,3];_f(p,g,h)}}),deleteTable:Je("Delete Table",h=>h.range&&v3(h.range)),mergeCells:Je("Merge Cells",h=>h.range&&h.doc&&m3(h.range,h.doc)),splitCells:Je("Split Cells",h=>h.range&&h.doc&&h3(h.range,h.doc)),addRowBefore:Je("Add Row Before",h=>h.range&&h.doc&&bf("before",h.range,h.doc)),addRowAfter:Je("Add Row After",h=>h.range&&h.doc&&bf("after",h.range,h.doc)),deleteRow:Je("Delete Row",h=>h.range&&g3(h.range)),insertColumnLeft:Je("Insert Column Left",h=>h.range&&wf("before",h.range)),insertColumnRight:Je("Insert Column Right",h=>h.range&&wf("after",h.range)),deleteColumn:Je("Delete Column",h=>h.range&&y3(h.range))},c=["Left","Center","Right","Justify"].reduce((h,m)=>({...h,[`tableAlign${m}`]:Je(`Table Align ${m}`,p=>{if(p.range){const g=m==="Left"?"start":m==="Right"?"end":m.toLowerCase();_3(p.range,g)}})}),{}),u={alignLeft:Je("Align Left",h=>{var _;const m=it(h);if(!m)return;const{range:p}=m,g=p.startContainer.nodeType===Node.TEXT_NODE?(_=p.startContainer.parentElement)==null?void 0:_.closest("p, h1, h2, h3, h4, h5, h6"):p.startContainer.closest("p, h1, h2, h3, h4, h5, h6");g&&(g.style.textAlign="left")},h=>{var _;const m=it(h);if(!m)return!1;const{range:p}=m,g=p.startContainer.nodeType===Node.TEXT_NODE?(_=p.startContainer.parentElement)==null?void 0:_.closest("p, h1, h2, h3, h4, h5, h6"):p.startContainer.closest("p, h1, h2, h3, h4, h5, h6");return(g==null?void 0:g.style.textAlign)==="left"}),alignCenter:Je("Align Center",h=>{var _;const m=it(h);if(!m)return;const{range:p}=m,g=p.startContainer.nodeType===Node.TEXT_NODE?(_=p.startContainer.parentElement)==null?void 0:_.closest("p, h1, h2, h3, h4, h5, h6"):p.startContainer.closest("p, h1, h2, h3, h4, h5, h6");g&&(g.style.textAlign="center")},h=>{var _;const m=it(h);if(!m)return!1;const{range:p}=m,g=p.startContainer.nodeType===Node.TEXT_NODE?(_=p.startContainer.parentElement)==null?void 0:_.closest("p, h1, h2, h3, h4, h5, h6"):p.startContainer.closest("p, h1, h2, h3, h4, h5, h6");return(g==null?void 0:g.style.textAlign)==="center"}),alignRight:Je("Align Right",h=>{var _;const m=it(h);if(!m)return;const{range:p}=m,g=p.startContainer.nodeType===Node.TEXT_NODE?(_=p.startContainer.parentElement)==null?void 0:_.closest("p, h1, h2, h3, h4, h5, h6"):p.startContainer.closest("p, h1, h2, h3, h4, h5, h6");g&&(g.style.textAlign="right")},h=>{var _;const m=it(h);if(!m)return!1;const{range:p}=m,g=p.startContainer.nodeType===Node.TEXT_NODE?(_=p.startContainer.parentElement)==null?void 0:_.closest("p, h1, h2, h3, h4, h5, h6"):p.startContainer.closest("p, h1, h2, h3, h4, h5, h6");return(g==null?void 0:g.style.textAlign)==="right"}),alignJustify:Je("Align Justify",h=>{var _;const m=it(h);if(!m)return;const{range:p}=m,g=p.startContainer.nodeType===Node.TEXT_NODE?(_=p.startContainer.parentElement)==null?void 0:_.closest("p, h1, h2, h3, h4, h5, h6"):p.startContainer.closest("p, h1, h2, h3, h4, h5, h6");g&&(g.style.textAlign="justify")},h=>{var _;const m=it(h);if(!m)return!1;const{range:p}=m,g=p.startContainer.nodeType===Node.TEXT_NODE?(_=p.startContainer.parentElement)==null?void 0:_.closest("p, h1, h2, h3, h4, h5, h6"):p.startContainer.closest("p, h1, h2, h3, h4, h5, h6");return(g==null?void 0:g.style.textAlign)==="justify"}),textDirection:Je("Toggle Text Direction",h=>{var _;const m=it(h);if(!m)return;const{range:p}=m,g=p.startContainer.nodeType===Node.TEXT_NODE?(_=p.startContainer.parentElement)==null?void 0:_.closest("p, h1, h2, h3, h4, h5, h6"):p.startContainer.closest("p, h1, h2, h3, h4, h5, h6");if(g){const v=g.dir||"ltr";g.dir=v==="ltr"?"rtl":"ltr"}},h=>{var _;const m=it(h);if(!m)return!1;const{range:p}=m,g=p.startContainer.nodeType===Node.TEXT_NODE?(_=p.startContainer.parentElement)==null?void 0:_.closest("p, h1, h2, h3, h4, h5, h6"):p.startContainer.closest("p, h1, h2, h3, h4, h5, h6");return(g==null?void 0:g.dir)==="rtl"}),ltrDirection:Je("Set Left to Right Direction",h=>{var _;const m=it(h);if(!m)return;const{range:p}=m,g=p.startContainer.nodeType===Node.TEXT_NODE?(_=p.startContainer.parentElement)==null?void 0:_.closest("p, h1, h2, h3, h4, h5, h6"):p.startContainer.closest("p, h1, h2, h3, h4, h5, h6");g&&(g.dir="ltr")},h=>{var _;const m=it(h);if(!m)return!1;const{range:p}=m,g=p.startContainer.nodeType===Node.TEXT_NODE?(_=p.startContainer.parentElement)==null?void 0:_.closest("p, h1, h2, h3, h4, h5, h6"):p.startContainer.closest("p, h1, h2, h3, h4, h5, h6");return(g==null?void 0:g.dir)==="ltr"}),rtlDirection:Je("Set Right to Left Direction",h=>{var _;const m=it(h);if(!m)return;const{range:p}=m,g=p.startContainer.nodeType===Node.TEXT_NODE?(_=p.startContainer.parentElement)==null?void 0:_.closest("p, h1, h2, h3, h4, h5, h6"):p.startContainer.closest("p, h1, h2, h3, h4, h5, h6");g&&(g.dir="rtl")},h=>{var _;const m=it(h);if(!m)return!1;const{range:p}=m,g=p.startContainer.nodeType===Node.TEXT_NODE?(_=p.startContainer.parentElement)==null?void 0:_.closest("p, h1, h2, h3, h4, h5, h6"):p.startContainer.closest("p, h1, h2, h3, h4, h5, h6");return(g==null?void 0:g.dir)==="rtl"})},d={fullScreen:Je("Full Screen",h=>{h.isFullscreen=!h.isFullscreen},h=>h.isFullscreen),splitView:Je("Split View",h=>{h.isSplitView=!h.isSplitView},h=>h.isSplitView),codeView:Je("Code View",h=>{h.isCodeView=!h.isCodeView},h=>h.isCodeView)},f={image:Je("Insert Image",h=>{const{openImageModal:m}=h;m?m():console.warn("Image insertion requires modal implementation")}),video:Je("Insert Video",h=>{const{openVideoModal:m}=h;m?m():console.warn("Video insertion requires modal implementation")}),embed:Je("Insert Embed",h=>{const{openEmbedModal:m}=h;m?m():console.warn("Embed insertion requires modal implementation")})};return{...t,...o,...r,...a,...l,...i,...s,...c,...u,...d,...f}}function $3(e,t){return{execute(o,r){const a=t[o];a&&a.execute(e,r)},isActive(o){var a;const r=t[o];return((a=r.isActive)==null?void 0:a.call(r,e))||!1},getValue(o){var a;const r=t[o];return((a=r.getValue)==null?void 0:a.call(r,e))||null}}}function Tg(e,t){const o=t.getSelection();if(!o||!o.rangeCount)return!1;const a=o.getRangeAt(0).commonAncestorContainer,l=a.nodeType===Node.TEXT_NODE?a.parentElement:a;if(!l)return!1;const i=(u,d)=>u?d(u)?!0:i(u.parentElement,d):!1,s={bold:u=>{var f;const d=(f=u.tagName)==null?void 0:f.toLowerCase();return d==="strong"||d==="b"},italic:u=>{var f;const d=(f=u.tagName)==null?void 0:f.toLowerCase();return d==="em"||d==="i"},underline:u=>{var f;return((f=u.tagName)==null?void 0:f.toLowerCase())==="u"},h1:u=>{var d;return((d=u.tagName)==null?void 0:d.toLowerCase())==="h1"},h2:u=>{var d;return((d=u.tagName)==null?void 0:d.toLowerCase())==="h2"},h3:u=>{var d;return((d=u.tagName)==null?void 0:d.toLowerCase())==="h3"},h4:u=>{var d;return((d=u.tagName)==null?void 0:d.toLowerCase())==="h4"},h5:u=>{var d;return((d=u.tagName)==null?void 0:d.toLowerCase())==="h5"},h6:u=>{var d;return((d=u.tagName)==null?void 0:d.toLowerCase())==="h6"},p:u=>{var d;return((d=u.tagName)==null?void 0:d.toLowerCase())==="p"},blockquote:u=>{var d;return((d=u.tagName)==null?void 0:d.toLowerCase())==="blockquote"},orderedList:u=>!!u.closest("ol"),unorderedList:u=>!!u.closest("ul"),alignLeft:u=>{const d=u.closest("p, h1, h2, h3, h4, h5, h6");return(d==null?void 0:d.style.textAlign)==="start"},alignCenter:u=>{const d=u.closest("p, h1, h2, h3, h4, h5, h6");return(d==null?void 0:d.style.textAlign)==="center"},alignRight:u=>{const d=u.closest("p, h1, h2, h3, h4, h5, h6");return(d==null?void 0:d.style.textAlign)==="end"},alignJustify:u=>{const d=u.closest("p, h1, h2, h3, h4, h5, h6");return(d==null?void 0:d.style.textAlign)==="justify"},textDirection:u=>{const d=u.closest("p, h1, h2, h3, h4, h5, h6");return(d==null?void 0:d.dir)==="rtl"},ltrDirection:u=>{const d=u.closest("p, h1, h2, h3, h4, h5, h6");return(d==null?void 0:d.dir)==="ltr"},rtlDirection:u=>{const d=u.closest("p, h1, h2, h3, h4, h5, h6");return(d==null?void 0:d.dir)==="rtl"}};if(["splitView","codeView","fullScreen"].includes(e))return!1;const c=s[e];return c?i(l,c):i(l,u=>{var d;return((d=u.tagName)==null?void 0:d.toLowerCase())===e.toLowerCase()})}function k3(e,t){const o=w3(e),r=$3(e,o),a=()=>{if(!e.doc)return;const l=new Set;["bold","italic","underline","link","h1","h2","h3","h4","h5","h6","blockquote","p","orderedList","unorderedList","alignLeft","alignCenter","alignRight","alignJustify","textDirection","ltrDirection","rtlDirection"].forEach(s=>{Tg(s,e.doc)&&l.add(s)}),e.selectedStyles=l};return{execute:(l,i)=>{if(!e.doc){console.log("[useCommands] No document available, skipping command");return}if(t==null||t.logCommand(l,i),["splitView","codeView","fullScreen"].includes(l))switch(l){case"splitView":e.isSplitView=!e.isSplitView;return;case"codeView":e.isCodeView=!e.isCodeView;return;case"fullScreen":e.isFullscreen=!e.isFullscreen;return}try{e.doc.body.focus()}catch(c){console.error("[useCommands] Error focusing editor:",c)}const s=e.doc.getSelection();s!=null&&s.rangeCount&&(e.selection=s,e.range=s.getRangeAt(0).cloneRange(),e.rangeCount=s.rangeCount);try{r.execute(l,i),["splitView","codeView","fullScreen"].includes(l)||a()}catch(c){console.error("[useCommands] Error during command execution:",c)}},isActive:r.isActive,getValue:r.getValue}}class E3{constructor(t=1e3){qe(this,"session");qe(this,"maxActions");qe(this,"isDevelopment");this.maxActions=t,this.session=this.createNewSession(),this.isDevelopment=!1}createNewSession(){return{id:`session_${Date.now()}`,startTime:Date.now(),actions:[]}}getNodeDescription(t){var r;if(t.nodeType===Node.TEXT_NODE)return`Text("${(r=t.textContent)==null?void 0:r.slice(0,20)}${t.textContent&&t.textContent.length>20?"...":""}")`;const o=t;return`${o.tagName.toLowerCase()}${o.id?`#${o.id}`:""}`}captureState(t){if(!t.doc||!t.selection)return{content:"",selection:null,activeStyles:[],caretPosition:null};const{selection:o}=t,r=o.rangeCount?o.getRangeAt(0):null;return{content:t.doc.body.innerHTML,selection:r?{start:r.startOffset,end:r.endOffset,collapsed:r.collapsed,text:r.toString()}:null,activeStyles:Array.from(t.selectedStyles),caretPosition:r?{node:this.getNodeDescription(r.startContainer),offset:r.startOffset}:null}}logCommand(t,o,r){this.addAction({type:"command",name:t,timestamp:Date.now(),details:{value:o},state:this.captureState(r)})}logPaste(t,o){this.addAction({type:"paste",name:"paste",timestamp:Date.now(),details:{html:t.getData("text/html"),text:t.getData("text/plain"),types:Array.from(t.types)},state:this.captureState(o)})}logKeyboard(t,o){this.addAction({type:"keyboard",name:"keypress",timestamp:Date.now(),details:{key:t.key,code:t.code,ctrl:t.ctrlKey,alt:t.altKey,shift:t.shiftKey,meta:t.metaKey},state:this.captureState(o)})}logSelection(t){this.addAction({type:"selection",name:"selection_change",timestamp:Date.now(),details:{},state:this.captureState(t)})}logInput(t,o,r){this.addAction({type:"input",name:t,timestamp:Date.now(),details:{data:o},state:this.captureState(r)})}addAction(t){this.session.actions.push(t),this.session.actions.length>this.maxActions&&this.session.actions.shift(),this.isDevelopment&&console.log("Editor Action:",t)}getSession(){return this.session}clearSession(){this.session=this.createNewSession()}exportSession(){return JSON.stringify(this.session,null,2)}downloadSession(){const t=new Blob([this.exportSession()],{type:"application/json"}),o=URL.createObjectURL(t),r=document.createElement("a");r.href=o,r.download=`editor_session_${this.session.id}.json`,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(o)}exportSessionWithPrompt(t){const o={message:t||"here is a debug log, can you analyze and fix accordingly?",session:this.session};return JSON.stringify(o,null,2)}}function $f(e){const t=document.createElement("div");t.innerHTML=e;const o=[];return t.querySelectorAll("iframe").forEach((r,a)=>{const l=`<!--iframe-${a}-->`;o.push(r.cloneNode(!0)),r.replaceWith(l)}),{html:t.innerHTML,iframes:o}}function kf(e,t,o){const r=/<!--iframe-(\d+)-->/g;e.body.innerHTML=t.replace(r,(a,l)=>{const i=o[Number(l)];return i?i.outerHTML:""})}function C3(){let e=null;const t=n.reactive({content:"",doc:void 0,selection:null,selectedStyles:new Set,isFullscreen:!1,isSplitView:!1,isCodeView:!1,hasInit:!1,undoStack:[],redoStack:[],rangeCount:0,range:null,debug:void 0}),o={styles:()=>{if(!t.doc)return;const c=new Set;["bold","italic","underline","h1","h2","h3","h4","h5","h6","blockquote","p","orderedList","unorderedList","alignLeft","alignCenter","alignRight","alignJustify","textDirection","ltrDirection","rtlDirection"].forEach(d=>{t.doc&&Tg(d,t.doc)&&c.add(d)}),t.selectedStyles=c},content:c=>{if(!t.doc)return;t.doc.body.innerHTML!==t.content&&(t.undoStack.push(t.content),t.redoStack=[]);const d=t.doc.getSelection(),f=d!=null&&d.rangeCount?d.getRangeAt(0).cloneRange():null;if(c==="html"){const h=$f(t.content);t.doc.body.innerHTML=h.html,setTimeout(()=>{if(t.doc&&(kf(t.doc,t.content,h.iframes),f&&d))try{d.removeAllRanges(),d.addRange(f)}catch{}},0)}else t.doc.body.textContent=t.content},selection:()=>{if(!t.doc)return;const c=t.doc.getSelection();if(c)try{if(!t.doc.body.contains(c.anchorNode)){t.doc.body.focus();return}(!t.selection||t.selection!==c||t.rangeCount!==c.rangeCount||c.rangeCount>0&&t.range&&(t.range.startContainer!==c.getRangeAt(0).startContainer||t.range.startOffset!==c.getRangeAt(0).startOffset||t.range.endContainer!==c.getRangeAt(0).endContainer||t.range.endOffset!==c.getRangeAt(0).endOffset))&&(t.selection=c,t.rangeCount=c.rangeCount,c.rangeCount>0&&(t.range=c.getRangeAt(0).cloneRange()),o.styles())}catch{t.selection=null,t.range=null,t.rangeCount=0,t.selectedStyles=new Set}}},r={undo:()=>{if(t.undoStack.length===0)return;t.redoStack.push(t.content);const c=t.undoStack.pop();c!==void 0&&(t.content=c,o.content("html"))},redo:()=>{if(t.redoStack.length===0)return;t.undoStack.push(t.content);const c=t.redoStack.pop();c!==void 0&&(t.content=c,o.content("html"))}},a={emptyTags:c=>{var h;const u=c.createTreeWalker(c.body,NodeFilter.SHOW_ELEMENT,null),d=[];let f=u.nextNode();for(;f;){if(["br","img","hr","input"].includes(f.tagName.toLowerCase())){f=u.nextNode();continue}const m=((h=f.textContent)==null?void 0:h.trim())||"",p=f.innerHTML.trim(),g=p==="<br>"||p==="<br/>",_=p===" "||m===" ",v=!m&&!p,y=f.parentElement===c.body;(v||_||g&&!y)&&d.push(f),f=u.nextNode()}d.forEach(m=>{m.remove()})},normalizeContent:c=>{var h;const u=c.createTreeWalker(c.body,NodeFilter.SHOW_TEXT),d=[];let f;for(;f=u.nextNode();)f.parentElement===c.body&&((h=f.textContent)!=null&&h.trim())&&d.push(f);d.forEach(m=>{const p=c.createElement("p");p.dir=c.body.dir,p.appendChild(m.cloneNode()),c.body.replaceChild(p,m)})}};function l(c){e&&(e(),e=null);let u=!1;const d={input:()=>{if(u)return;u=!0;const f=c.body.innerHTML;f!==t.content&&(t.content=f),u=!1},selectionchange:()=>{u||o.selection()},mouseup:()=>{u||o.selection()},keyup:f=>{u||["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(f.key)&&o.selection()}};return Object.entries(d).forEach(([f,h])=>{c.addEventListener(f,h)}),e=()=>{Object.entries(d).forEach(([f,h])=>{c.removeEventListener(f,h)})},e}function i(c){if(t.hasInit&&e&&(e(),e=null),t.doc=c,t.hasInit=!0,c.editorState=t,t.content&&t.content.trim()&&!t.content.match(/^<p(?:\s[^>]*)?>(?:<br\s*\/?>)?\s*<\/p>$/i)){const u=$f(t.content);c.body.innerHTML=u.html,setTimeout(()=>{t.doc&&kf(c,t.content,u.iframes)},0)}if(a.normalizeContent(c),c.body.firstElementChild){const u=c.createRange(),d=c.getSelection();d&&(u.selectNodeContents(c.body),u.collapse(!1),d.removeAllRanges(),d.addRange(u),t.range=u.cloneRange(),t.selection=d,t.rangeCount=d.rangeCount)}else{const u=c.getSelection();if(u){const d=c.createRange();d.setStart(c.body,0),d.setEnd(c.body,0),u.removeAllRanges(),u.addRange(d),t.range=d.cloneRange(),t.selection=u,t.rangeCount=u.rangeCount}}e=l(c)}function s(){if(!t.debug){const c=new E3,u={debugger:c,logCommand:(d,f)=>{c.logCommand(d,f,t)},getSession:()=>c.getSession(),clearSession:()=>{c.clearSession()},downloadSession:()=>{c.downloadSession()},exportDebugWithPrompt:d=>c.exportSessionWithPrompt(d)};t.debug=u}}return typeof window<"u"&&window.addEventListener("beforeunload",()=>{e&&e()}),{state:t,init:i,updateState:o,history:r,initDebugger:s,cleanup:()=>{e&&(e(),e=null)}}}const S3=[{key:"b",command:"bold"},{key:"i",command:"italic"},{key:"u",command:"underline"},{key:"k",command:"link"},{key:"z",command:"undo"},{key:"z",modifiers:{shift:!0},command:"redo"},{key:"y",command:"redo"},{key:".",modifiers:{shift:!0},command:"orderedList"},{key:"/",modifiers:{shift:!0},command:"unorderedList"},{key:"]",command:"indent"},{key:"[",command:"outdent"},...Array.from({length:6},(e,t)=>({key:String(t+1),modifiers:{alt:!0},command:`h${t+1}`}))];function T3(e,t){e.addEventListener("keydown",o=>{if(!o.ctrlKey&&!o.metaKey)return;const r=S3.find(a=>{const l=a.key===o.key,i=!a.modifiers||(!a.modifiers.ctrl||o.ctrlKey||o.metaKey)&&(!a.modifiers.alt||o.altKey)&&(!a.modifiers.shift||o.shiftKey);return l&&i});r&&(o.preventDefault(),t.execute(r.command))})}const N3={key:0},D3={key:1,class:"flex pt-05"},x3={class:"inline-toolbar-content"},B3={class:"menu-header"},A3={class:"px-025"},M3={key:3,class:"context-menu-separator"},V3={class:"flex gap-05 align-items-end"},L3={class:"flex gap-1"},P3={class:"flex gap-05 w-100"},I3={class:"flex gap-1"},O3={class:"flex gap-05 w-100"},R3={class:"grid gap-0"},F3={key:0,class:"flex gap-025 opacity-5 -mt-05"},z3={key:1,class:"grid grid-wrap-2 gap-05"},U3={class:"grid grid-wrap-2 gap-05 py-1"},H3={class:"overflow-hidden flex justify-content-center"},j3={class:"flex gap-05 w-100"},W3={class:"grid grid-wrap-4 m_grid-wrap-2 gap-col-1 table-editor testMe1"},q3={class:"grid-span-1"},G3={class:"flex gap-025 mt-025 radius-1 p-05 w-fit",style:{height:"var(--input-height)",background:"var(--input-bg)"}},Y3={class:"grid-span-1"},X3={class:"flex gap-025 mt-025 radius-1 p-025 w-fit",style:{height:"var(--input-height)",background:"var(--input-bg)"}},K3={key:0,class:"grid-span-4 m_grid-span-2 grid-wrap-4 m_grid-wrap-2 grid gap-col-1 border-bottom pb-05 mb-05"},J3={key:1,class:"grid grid-wrap-4 m_grid-wrap-2 gap-col-1 grid-span-4 m_grid-span-2 border-bottom pb-05 mb-05"},Z3=["innerHTML"],Q3=n.defineComponent({inheritAttrs:!1,__name:"index",props:{modelValue:{},toolbarConfig:{},debug:{type:Boolean},label:{},height:{},basic:{type:Boolean},simple:{type:Boolean},placeholder:{},hideToolbar:{type:Boolean},hideInlineToolbar:{type:Boolean},hideImages:{type:Boolean},hideVideos:{type:Boolean},hideEmbed:{type:Boolean},hideTables:{type:Boolean},hideAlignment:{type:Boolean},hideDirections:{type:Boolean},hideH5H6:{type:Boolean},hide:{},autofocus:{type:Boolean},textColor:{},fontSize:{}},emits:["update:modelValue"],setup(e,{expose:t,emit:o}){const r=e,a=o,l=n.useAttrs(),i=n.ref(),s=C3(),c=n.ref(!1),u=n.ref(!1),d=k3(s.state,s.state.debug),f=n.ref(0),h=n.computed(()=>(f.value,typeof document<"u"&&getComputedStyle(document.documentElement).getPropertyValue("--input-color").trim()||"#000")),m=n.computed(()=>{const T=h.value;return r.textColor||(T&&T.length>0&&T!=="#000"?T:"inherit")});let p=null;n.onMounted(()=>{typeof document<"u"&&(p=new MutationObserver(T=>{let D=!1;T.forEach(j=>{if(j.type==="attributes"){const{attributeName:ne}=j;(ne==="data-theme"||ne==="class"||ne==="style")&&(D=!0)}}),D&&(f.value++,u.value&&setTimeout(()=>{te()},50))}),p.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme","class","style"]}),document.body&&p.observe(document.body,{attributes:!0,attributeFilter:["class","data-theme"]}))}),n.onBeforeUnmount(()=>{p==null||p.disconnect()}),r.debug&&typeof window<"u"&&(window.forceRichTextUpdate=()=>{f.value++},window.debugRichText=$e);const g=n.computed(()=>!(r.hideToolbar||r.basic)),_=n.computed(()=>!r.hideInlineToolbar),v=n.computed(()=>r.toolbarConfig),y=n.computed(()=>{const T=[...r.hide||[]];return r.simple&&["h1","h2","h3","h4","h5","h6","image","video","embed","ul","ol","blockquote","direction","table","alignment"].forEach(j=>{T.includes(j)||T.push(j)}),T}),b=n.ref(!1),$=n.ref({url:"",openInNewTab:!0}),w=n.ref(!1),E=n.ref({message:"",x:0,y:0});let S=null;const x=n.ref(!1),N=n.ref({src:"",alt:"",width:"",height:"",credit:"",figcaption:!1});let M=null;const V=n.ref(!1),k=n.ref({src:"",width:"560",height:"315",alt:""});let C=null;const B=n.ref(!1),A=n.ref({top:0,left:0}),L=n.ref(null),I=n.ref(!1),P=n.ref({src:"",width:"",autoplay:!1,mute:!1,controls:!0,loop:!1,aspectRatio:"16:9",customWidth:"",customHeight:"",caption:"",showCaption:!1});let oe=null;const Z=n.ref(!1),U=n.ref({rows:3,cols:3,width:100,borderWidth:1,borderColor:"#dddddd",cellPadding:8,showHeaders:!0,headerBgColor:"#f4f4f4",headerTextColor:"#333333",cellBgColor:"#ffffff",cellTextColor:"#333333",alternateRows:!1,alternateRowBgColor:"#f9f9f9",alternateRowTextColor:"#333333",fixedLayout:!0,alignment:"left",direction:"ltr"}),R=n.ref(!1),H=n.ref({x:0,y:0}),J=n.ref(null);let ae=null;const fe=n.computed(()=>{const T=U.value;let j=`<table style="${`
|
|
158
|
+
`+l):r.stack=l}catch{}}throw r}}_request(t,o){typeof t=="string"?(o=o||{},o.url=t):o=t||{},o=rr(this.defaults,o);const{transitional:r,paramsSerializer:a,headers:l}=o;r!==void 0&&Vl.assertOptions(r,{silentJSONParsing:Un.transitional(Un.boolean),forcedJSONParsing:Un.transitional(Un.boolean),clarifyTimeoutError:Un.transitional(Un.boolean)},!1),a!=null&&(se.isFunction(a)?o.paramsSerializer={serialize:a}:Vl.assertOptions(a,{encode:Un.function,serialize:Un.function},!0)),o.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?o.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:o.allowAbsoluteUrls=!0),Vl.assertOptions(o,{baseUrl:Un.spelling("baseURL"),withXsrfToken:Un.spelling("withXSRFToken")},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let i=l&&se.merge(l.common,l[o.method]);l&&se.forEach(["delete","get","head","post","put","patch","common"],p=>{delete l[p]}),o.headers=nn.concat(i,l);const s=[];let c=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(o)===!1||(c=c&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let d,f=0,h;if(!c){const p=[vf.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,u),h=p.length,d=Promise.resolve(o);f<h;)d=d.then(p[f++],p[f++]);return d}h=s.length;let m=o;for(f=0;f<h;){const p=s[f++],g=s[f++];try{m=p(m)}catch(_){g.call(this,_);break}}try{d=vf.call(this,m)}catch(p){return Promise.reject(p)}for(f=0,h=u.length;f<h;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=rr(this.defaults,t);const o=yg(t.baseURL,t.url,t.allowAbsoluteUrls);return pg(o,t.params,t.paramsSerializer)}};se.forEach(["delete","get","head","options"],function(t){Zo.prototype[t]=function(o,r){return this.request(rr(r||{},{method:t,url:o,data:(r||{}).data}))}});se.forEach(["post","put","patch"],function(t){function o(r){return function(l,i,s){return this.request(rr(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:l,data:i}))}}Zo.prototype[t]=o(),Zo.prototype[t+"Form"]=o(!0)});let NS=class Eg{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(l){o=l});const r=this;this.promise.then(a=>{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](a);r._listeners=null}),this.promise.then=a=>{let l;const i=new Promise(s=>{r.subscribe(s),l=s}).then(a);return i.cancel=function(){r.unsubscribe(l)},i},t(function(l,i,s){r.reason||(r.reason=new Yr(l,i,s),o(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const o=this._listeners.indexOf(t);o!==-1&&this._listeners.splice(o,1)}toAbortSignal(){const t=new AbortController,o=r=>{t.abort(r)};return this.subscribe(o),t.signal.unsubscribe=()=>this.unsubscribe(o),t.signal}static source(){let t;return{token:new Eg(function(a){t=a}),cancel:t}}};function DS(e){return function(o){return e.apply(null,o)}}function xS(e){return se.isObject(e)&&e.isAxiosError===!0}const Ac={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ac).forEach(([e,t])=>{Ac[t]=e});function Cg(e){const t=new Zo(e),o=tg(Zo.prototype.request,t);return se.extend(o,Zo.prototype,t,{allOwnKeys:!0}),se.extend(o,t,null,{allOwnKeys:!0}),o.create=function(a){return Cg(rr(e,a))},o}const _t=Cg(rl);_t.Axios=Zo;_t.CanceledError=Yr;_t.CancelToken=NS;_t.isCancel=gg;_t.VERSION=kg;_t.toFormData=Yi;_t.AxiosError=Ye;_t.Cancel=_t.CanceledError;_t.all=function(t){return Promise.all(t)};_t.spread=DS;_t.isAxiosError=xS;_t.mergeConfig=rr;_t.AxiosHeaders=nn;_t.formToJSON=e=>hg(se.isHTMLForm(e)?new FormData(e):e);_t.getAdapter=$g.getAdapter;_t.HttpStatusCode=Ac;_t.default=_t;const{Axios:$O,AxiosError:kO,CanceledError:EO,isCancel:CO,CancelToken:SO,VERSION:TO,all:NO,Cancel:DO,isAxiosError:xO,spread:BO,toFormData:AO,AxiosHeaders:MO,HttpStatusCode:VO,formToJSON:LO,getAdapter:PO,mergeConfig:IO}=_t;let yr=_t;function BS(e={}){e.baseURL!==void 0&&(yr=_t.create({baseURL:e.baseURL}))}const Ds={get:async e=>yr.get("/files",{params:{path_key:e}}),put:async(e,t)=>yr.put("/files",e,{params:{path_key:t}}),delete:async e=>yr.delete(`/files/${e}`,{params:{path_key:e}}),upload:async(e,t)=>{const o=new FormData;return o.append("file",e),o.append("upload",e),yr.post("/files/upload",o,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:t==null?void 0:t.onUploadProgress,params:{dir_path:t==null?void 0:t.dirPath,tags:t==null?void 0:t.tags}})},list:async e=>yr.get("/files/list",{params:{dir_path:e}})};function Sg(e={}){const t=e.namespace||"default",o=n.ref([]),r=n.ref([]),a=n.ref([]),l=n.computed(()=>{const f=r.value.map(h=>h.path_key);return[...a.value,...f]}),i=f=>URL.createObjectURL(f);function s(f){if(!f)return;let h=[];f instanceof File?h=[f]:f instanceof FileList?h=Array.from(f):Array.isArray(f)&&(h=f);const m=h.map(p=>({url:i(p),name:p.name,file:p,progress:0,namespace:t}));e.multiple?o.value.push(...m):o.value=m,e.onFileQueued&&m.length>0&&e.onFileQueued(m)}async function c(f){var h;if(typeof f=="string"){r.value=r.value.filter(p=>p.path_key!==f);const m=a.value.indexOf(f);m!==-1&&a.value.splice(m,1);try{await Ds.delete(f)}catch(p){console.error("Error deleting file:",p)}}else if(f){const m=f instanceof File?{name:f.name}:f,p=o.value.findIndex(g=>g.file.name===m.name&&g.namespace===t);p!==-1&&o.value.splice(p,1)}(h=e.onChange)==null||h.call(e)}async function u(){const f=o.value.filter(h=>h.namespace===t);for(const h of f){h.uploading=!0,e.multiple||a.value.splice(0,1);try{const{data:m}=await Ds.upload(h.file,{onUploadProgress:p=>{h.progress=p.loaded/p.total*100-1},dirPath:n.toValue(e.dirPath)});a.value.push(m.path_key)}catch(m){console.error("Error uploading file:",m)}}o.value=o.value.filter(h=>h.namespace!==t)}function d(f=!1){if(e.disabled)return;const h=document.createElement("input");h.type="file",h.multiple=!!e.multiple,h.accept=e.accept||"",e.capture!==void 0&&e.capture!==!1&&(h.capture=e.capture===!0?"environment":e.capture),h.onchange=m=>{s(m.target.files),f&&u()},h.click()}return n.onMounted(()=>{const f=n.toValue(e.dirPath);f&&Ds.list(f).then(h=>{const m=Array.isArray(h.data)?h.data:[h.data];r.value.push(...m)}).catch(h=>{console.error("Error loading files:",h)})}),{fileQueue:o,storageFiles:r,pk:a,pathKeys:l,fileToUrl:i,removeFile:c,flushQueue:u,addFile:s,browse:d,namespace:t}}const AS={class:"bagel-input"},MS={key:0},VS={key:1,placeholder:"required",type:"text",required:"",class:"pixel"},LS={key:1,class:"flex align-items-center gap-1 p-05"},PS={class:"txt-gray txt-12"},IS={class:"m-05 flex opacity-8 z-99 gap-025"},OS={class:"flex gap-025 rounded pe-1 ps-05 py-025 -my-1"},RS={class:"ellipsis-1 word-break-all h-20 m-0 color-black txt16"},FS={key:2,class:"txt-gray txt-12"},zS={key:0,class:"bgl-multi-preview"},US={class:"m-0"},HS=["src"],jS={class:"no-margin multi-preview-txt"},WS={key:0,class:"progress"},qS={key:1,class:"bgl-single-preview"},GS={key:0,class:"h-100"},YS=["src"],XS={class:"p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05"},KS={class:"pretty balance user-select-none"},JS=n.defineComponent({__name:"UploadInput",props:{id:{},label:{},multiple:{type:Boolean},modelValue:{},width:{},height:{default:"215px"},dirPath:{},fill:{type:Boolean},oval:{type:Boolean},theme:{default:"dropzone"},accept:{default:"*"},capture:{type:[Boolean,String]},required:{type:Boolean},disabled:{type:Boolean},baseURL:{},placeholder:{},noFilePlaceholder:{},btnPlaceholder:{},showIcon:{type:Boolean,default:!0},icon:{default:"upload_2"}},emits:["update:modelValue","addFileStart"],setup(e,{emit:t}){const o=e,r=t,{$t:a}=Tt(),{fileQueue:l,pathKeys:i,removeFile:s,flushQueue:c,addFile:u,browse:d,pk:f}=Sg({disabled:o.disabled,dirPath:o.dirPath,multiple:o.multiple,accept:o.accept,capture:o.capture,namespace:o.id||"upload",onFileQueued:async()=>{await c(),g()},onChange:g});n.watch(()=>o.modelValue,y=>f.value=y?[y].flat().filter(Boolean):[],{immediate:!0});const h=y=>Jl.test(y),m=n.ref(!1);function p(y,b=!1){y.preventDefault(),y.stopPropagation(),o.disabled||(m.value=b)}function g(){o.multiple?r("update:modelValue",i.value):r("update:modelValue",i.value[0]||void 0)}async function _(y){var b;o.disabled||(y.preventDefault(),y.stopPropagation(),r("addFileStart"),u((b=y.dataTransfer)==null?void 0:b.files),m.value=!1)}function v(y){return!y||typeof y!="string"?"file":y.split("/").pop()||"file"}return(y,b)=>{const $=n.resolveDirective("tooltip"),w=n.resolveDirective("lightbox");return n.openBlock(),n.createElementBlock("div",AS,[y.label?(n.openBlock(),n.createElementBlock("label",MS,n.toDisplayString(y.label),1)):n.createCommentVNode("",!0),y.required&&!n.unref(i).length?(n.openBlock(),n.createElementBlock("input",VS)):n.createCommentVNode("",!0),y.theme==="basic"?(n.openBlock(),n.createBlock(n.unref(en),{key:2,outline:"",class:"flex p-05 gap-1",onDragover:b[2]||(b[2]=E=>p(E,!0)),onDrop:_},{default:n.withCtx(()=>[!n.unref(i).length&&!n.unref(l).length?(n.openBlock(),n.createBlock(n.unref(ee),{key:0,class:"px-1-5",icon:"upload",outline:"",value:y.btnPlaceholder||n.unref(a)("upload.upload"),onClick:b[0]||(b[0]=E=>n.unref(d)())},null,8,["value"])):n.createCommentVNode("",!0),n.unref(l).length>0?(n.openBlock(),n.createElementBlock("div",LS,[n.createVNode(n.unref(Po),{size:"20"}),n.createElementVNode("span",PS,n.toDisplayString(n.unref(a)("upload.uploading",{count:n.unref(l).length,plural:n.unref(l).length>1?"s":""})),1)])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(i),E=>(n.openBlock(),n.createElementBlock("div",{key:E,class:"txt-gray txt-12 flex"},[n.createElementVNode("div",IS,[n.withDirectives(n.createVNode(n.unref(ee),{color:"gray",thin:"",icon:"delete",onClick:S=>n.unref(s)(E)},null,8,["onClick"]),[[$,"Delete"]]),n.withDirectives(n.createVNode(n.unref(ee),{color:"gray",thin:"",icon:"autorenew",onClick:b[1]||(b[1]=S=>n.unref(d)())},null,512),[[$,"Replace"]]),n.createVNode(n.unref(ee),{icon:"download",color:"gray",thin:"",href:n.unref(Gn)(E),download:v(E)},null,8,["href","download"]),n.createElementVNode("div",OS,[n.createVNode(n.unref(Te),{icon:"draft",size:1.5}),n.withDirectives((n.openBlock(),n.createElementBlock("p",RS,[n.createTextVNode(n.toDisplayString(v(E)),1)])),[[w,{src:n.unref(Gn)(E),download:!0}]])])])]))),128)),!n.unref(i).length&&!n.unref(l).length?(n.openBlock(),n.createElementBlock("span",FS,n.toDisplayString(y.noFilePlaceholder||n.unref(a)("upload.noFile")),1)):n.createCommentVNode("",!0)]),_:1})):(n.openBlock(),n.createElementBlock("div",{key:3,class:n.normalizeClass(["fileUploadWrap",{fileDropZone:!n.unref(i).length&&!n.unref(l).length,dragover:m.value,"bgl_oval-upload":y.oval}]),style:n.normalizeStyle({width:y.width,height:y.height}),onClick:b[4]||(b[4]=E=>n.unref(d)()),onDragover:b[5]||(b[5]=E=>p(E,!0)),onDrop:_,onDragleave:b[6]||(b[6]=E=>p(E))},[n.renderSlot(y.$slots,"files",{files:n.unref(i),fileQueue:n.unref(l)},()=>[y.multiple?(n.openBlock(),n.createElementBlock("div",zS,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(i),E=>n.withDirectives((n.openBlock(),n.createElementBlock("div",{key:E,class:n.normalizeClass(["multi-image-item-preview",{"bgl_fill-image":y.fill}])},[h(E)?(n.openBlock(),n.createBlock(n.unref(Mr),{key:0,pathKey:E,class:"multi-preview"},null,8,["pathKey"])):(n.openBlock(),n.createBlock(n.unref(Te),{key:1,icon:"description",class:"multi-preview"})),n.createElementVNode("p",US,n.toDisplayString(v(E)),1),n.createVNode(n.unref(ee),{thin:"",flat:"",icon:"delete",color:"red",onClick:S=>n.unref(s)(E)},null,8,["onClick"])],2)),[[w,{src:n.unref(Gn)(E),download:!0}]])),128)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(l),E=>(n.openBlock(),n.createElementBlock("div",{key:E.name,class:n.normalizeClass(["multi-image-item-preview",{"bgl_fill-image":y.fill}])},[h(E.file.type)?(n.openBlock(),n.createElementBlock("img",{key:0,class:"multi-preview",src:E.url,alt:""},null,8,HS)):(n.openBlock(),n.createBlock(n.unref(Te),{key:1,icon:"description",class:"multi-preview"})),n.createElementVNode("p",jS,n.toDisplayString(E.name),1),n.createElementVNode("div",{class:n.normalizeClass(["pie",{complete:E.progress===100}]),style:n.normalizeStyle([{"--p":E.progress},{"--b":"2px"}])},[E.progress<100?(n.openBlock(),n.createElementBlock("span",WS,n.toDisplayString(E.progress.toFixed(0)),1)):n.createCommentVNode("",!0),n.createVNode(n.unref(Te),{class:"success",icon:"check_circle"})],6)],2))),128))])):n.unref(i).length>0||n.unref(l).length>0?(n.openBlock(),n.createElementBlock("div",qS,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(i),E=>(n.openBlock(),n.createElementBlock("div",{key:E,class:n.normalizeClass(["single-image-item-preview",{"bgl_fill-image":y.fill}])},[n.createElementVNode("div",{class:n.normalizeClass(["flex opacity-8 z-99 gap-025 absolute top-0 start-0",{"mx-auto end-0 mt-1 justify-content-center":y.oval,"m-05":!y.oval}])},[n.withDirectives(n.createVNode(n.unref(ee),{color:"white",frame:"",thin:"",icon:"delete",onClick:S=>n.unref(s)(E)},null,8,["onClick"]),[[$,"Delete"]]),n.withDirectives(n.createVNode(n.unref(ee),{color:"white",frame:"",thin:"",icon:"autorenew",onClick:b[3]||(b[3]=S=>n.unref(d)())},null,512),[[$,"Replace"]]),n.withDirectives(n.createVNode(n.unref(ee),{color:"white",frame:"",thin:"",icon:"download",href:n.unref(Gn)(E),download:v(E)},null,8,["href","download"]),[[$,"Download"]])],2),h(E)?(n.openBlock(),n.createElementBlock("div",GS,[n.withDirectives(n.createVNode(n.unref(Mr),{class:"single-preview",pathKey:E,alt:""},null,8,["pathKey"]),[[w,{src:n.unref(Gn)(E),download:!0}]])])):n.withDirectives((n.openBlock(),n.createBlock(n.unref(Te),{key:1,size:4,weight:"2",icon:"description",class:"color-primary w-100"},null,512)),[[w,{src:n.unref(Gn)(E),download:!0}]])],2))),128)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(l),E=>(n.openBlock(),n.createElementBlock("div",{key:E.name,class:n.normalizeClass(["single-image-item-preview",{"bgl_fill-image":y.fill}])},[n.createVNode(n.unref(Po),{type:"bar",progress:E.progress,class:"absolute bottom-05 end start w-100px mx-auto rounded overflow-hidden"},null,8,["progress"]),h(E.file.type)?(n.openBlock(),n.createElementBlock("img",{key:0,class:"single-preview opacity-5",src:E.url,alt:""},null,8,YS)):n.createCommentVNode("",!0)],2))),128))])):n.createCommentVNode("",!0)],!0),!n.unref(i).length&&!n.unref(l).length||y.multiple?n.renderSlot(y.$slots,"placeholder",{key:0,files:n.unref(i),fileQueue:n.unref(l),browse:n.unref(d)},()=>[n.createElementVNode("p",XS,[y.showIcon?(n.openBlock(),n.createBlock(n.unref(Te),{key:0,name:y.icon,size:"2.5",class:"user-select-none"},null,8,["name"])):n.createCommentVNode("",!0),n.createElementVNode("span",KS,n.toDisplayString(n.unref(je)(y.placeholder)||n.unref(a)("upload.dropPlaceholder")),1)])],!0):n.createCommentVNode("",!0)],38))])}}}),Aa=Me(JS,[["__scopeId","data-v-f4bb6c01"]]),ZS=["h1","h2","h3","h4","h5","h6","separator","p","blockquote","orderedList","unorderedList","separator","bold","italic","underline","separator","alignMenu","ltrDirection","rtlDirection","separator","insertTable","separator","link","image","video","embed","clear","separator","undo","redo","separator","splitView","fullScreen"],QS=[{name:"headingsMenu",label:"Headings",icon:"title"},{name:"mediaMenu",label:"Media",icon:"perm_media"},{name:"alignMenu",label:"Alignment",icon:"format_align_left"},{name:"h1",label:"Heading 1",icon:"format_h1"},{name:"h2",label:"Heading 2",icon:"format_h2"},{name:"h3",label:"Heading 3",icon:"format_h3"},{name:"h4",label:"Heading 4",icon:"format_h4"},{name:"h5",label:"Heading 5",icon:"format_h5"},{name:"h6",label:"Heading 6",icon:"format_h6"},{name:"p",label:"Paragraph",icon:"format_paragraph"},{name:"blockquote",label:"Blockquote",icon:"format_quote"},{name:"bold",label:"Bold",icon:"format_bold"},{name:"italic",label:"Italic",icon:"format_italic"},{name:"underline",label:"Underline",icon:"format_underlined"},{name:"orderedList",label:"Ordered List",icon:"format_list_numbered"},{name:"unorderedList",label:"Unordered List",icon:"format_list_bulleted"},{name:"link",label:"Link",icon:"add_link"},{name:"image",label:"Image",icon:"add_photo_alternate"},{name:"video",label:"Video",icon:"play_circle"},{name:"embed",label:"Embed",icon:"media_link"},{name:"splitView",label:"Split View",icon:"code"},{name:"clear",label:"Clear Formatting",icon:"format_clear"},{name:"alignLeft",label:"Align Left",icon:"format_align_left"},{name:"alignCenter",label:"Align Center",icon:"format_align_center"},{name:"alignRight",label:"Align Right",icon:"format_align_right"},{name:"alignJustify",label:"Align Justify",icon:"format_align_justify"},{name:"tableAlignLeft",label:"Table Align Left",icon:"format_align_left"},{name:"tableAlignCenter",label:"Table Align Center",icon:"format_align_center"},{name:"tableAlignRight",label:"Table Align Right",icon:"format_align_right"},{name:"tableAlignJustify",label:"Table Align Justify",icon:"format_align_justify"},{name:"indent",label:"Indent",icon:"format_indent_increase"},{name:"outdent",label:"Outdent",icon:"format_indent_decrease"},{name:"fontColor",label:"Font Color",icon:"format_color_text"},{name:"bgColor",label:"Background Color",icon:"format_color_fill"},{name:"insertTable",label:"Insert Table",icon:"table"},{name:"deleteTable",label:"Delete Table",icon:"delete_sweep"},{name:"mergeCells",label:"Merge Cells",icon:"table_chart"},{name:"splitCells",label:"Split Cells",icon:"dashboard"},{name:"addRowBefore",label:"Insert Row Above",icon:"add_box"},{name:"addRowAfter",label:"Insert Row Below",icon:"vertical_align_bottom"},{name:"deleteRow",label:"Delete Row",icon:"remove"},{name:"insertColumnLeft",label:"Insert Column Left",icon:"format_indent_decrease"},{name:"insertColumnRight",label:"Insert Column Right",icon:"format_indent_increase"},{name:"deleteColumn",label:"Delete Column",icon:"view_week"},{name:"separator"},{name:"undo",label:"Undo",icon:"undo"},{name:"redo",label:"Redo",icon:"redo"},{name:"separator"},{name:"fullScreen",label:"Full Screen",icon:"fullscreen",class:"ms-auto"},{name:"textDirection",label:"Text Direction (RTL/LTR)",icon:"format_textdirection_r_to_l"},{name:"ltrDirection",label:"Left to Right",icon:"format_textdirection_l_to_r"},{name:"rtlDirection",label:"Right to Left",icon:"format_textdirection_r_to_l"}],e3={class:"table-grid-selector p-075"},t3={class:"txt-center mb-075"},n3={style:{"font-size":"14px","font-weight":"500",color:"#333","margin-bottom":"4px"}},o3=["onFocus","onMouseenter","onClick"],r3={class:"border-top pt-075"},a3=10,l3=10,i3=n.defineComponent({__name:"TableGridSelector",emits:["insert","openAdvanced"],setup(e,{emit:t}){const o=t,r=n.ref(0),a=n.ref(0),l=n.computed(()=>{const f=[];for(let h=1;h<=a3;h++)for(let m=1;m<=l3;m++)f.push({row:h,col:m,isActive:h<=r.value&&m<=a.value});return f}),i=n.computed(()=>r.value===0||a.value===0?"Select table size":`${r.value} × ${a.value}`);function s(f,h){r.value=f,a.value=h}function c(f,h,m){o("insert",f,h),m()}function u(f){o("openAdvanced"),f()}function d(){r.value=0,a.value=0}return(f,h)=>(n.openBlock(),n.createBlock(n.unref(on),{placement:"bottom-start",thin:"",flat:"",icon:"table"},{default:n.withCtx(({hide:m})=>[n.createElementVNode("div",e3,[n.createElementVNode("div",t3,[n.createElementVNode("div",n3,n.toDisplayString(i.value),1),h[0]||(h[0]=n.createElementVNode("div",{style:{"font-size":"12px",color:"#666"}}," Hover to select size ",-1))]),n.createElementVNode("div",{style:{display:"grid","grid-template-columns":"repeat(10, 20px)","grid-template-rows":"repeat(10, 20px)",gap:"2px","margin-bottom":"12px",direction:"ltr"},onMouseleave:d,onBlur:d},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(l.value,p=>(n.openBlock(),n.createElementBlock("div",{key:`${p.row}-${p.col}`,tabindex:"0",style:n.normalizeStyle({width:"20px",height:"20px",border:"1px solid #ddd",backgroundColor:p.isActive?"var(--bgl-primary)":"#fff",cursor:"pointer",borderRadius:"2px",transition:"background-color 0.1s ease"}),onFocus:g=>s(p),onMouseenter:g=>s(p.row,p.col),onClick:g=>c(p.row,p.col,m)},null,44,o3))),128))],32),n.createElementVNode("div",r3,[n.createVNode(n.unref(ee),{value:"Advanced Settings",icon:"settings",class:"bg-gray-30 color-black",onClick:p=>u(m)},null,8,["onClick"])])])]),_:1}))}}),s3={class:"toolbar flex gap-025 pb-05 flex-wrap",role:"toolbar",style:{position:"relative"}},c3={class:"flex flex-column p-025"},u3=n.defineComponent({__name:"EditorToolbar",props:{config:{default:()=>ZS},selectedStyles:{},hideImages:{type:Boolean,default:!1},hideVideos:{type:Boolean,default:!1},hideEmbeds:{type:Boolean,default:!1},hideTables:{type:Boolean,default:!1},hideAlignment:{type:Boolean,default:!1},hideDirections:{type:Boolean,default:!1},hideH5H6:{type:Boolean,default:!1},hide:{default:()=>[]}},emits:["action"],setup(e,{emit:t}){const o=t;function r(){return e.selectedStyles.has("alignLeft")?"format_align_left":e.selectedStyles.has("alignCenter")?"format_align_center":e.selectedStyles.has("alignRight")?"format_align_right":e.selectedStyles.has("alignJustify")?"format_align_justify":"format_align_left"}function a(){return e.selectedStyles.has("alignLeft")||e.selectedStyles.has("alignCenter")||e.selectedStyles.has("alignRight")||e.selectedStyles.has("alignJustify")}function l(f){if(e.hide.includes(f))return!0;const h={image:["insertImage","image"],video:["insertVideo","video"],embed:["insertEmbed","embed"],table:["insertTable"],direction:["textDirection"],fullScreen:["fullScreen"],ul:["unorderedList"],ol:["orderedList"],splitView:["splitView"],p:["p"],align:["alignMenu"],alignment:["alignMenu"]};for(const[p,g]of Object.entries(h))if(e.hide.includes(p)&&g.includes(f))return!0;return{insertImage:e.hideImages,insertVideo:e.hideVideos,insertEmbed:e.hideEmbeds,insertTable:e.hideTables,alignMenu:e.hideAlignment,textDirection:e.hideDirections,h5:e.hideH5H6,h6:e.hideH5H6}[f]||!1}const i=f=>QS.find(h=>h.name===f);function s(f){const h=e.config.map(i).filter(Boolean);let m=-1;for(let g=f-1;g>=0;g--){const _=h[g];if(_&&_.name!=="separator"&&!l(_.name)){m=g;break}}let p=-1;for(let g=f+1;g<h.length;g++){const _=h[g];if(_&&_.name!=="separator"&&!l(_.name)){p=g;break}}if(m===-1||p===-1)return!1;for(let g=m+1;g<f;g++){const _=h[g];if(_&&_.name==="separator")return!1}return!0}function c(f,h){console.log("EditorToolbar: runAction called",{name:f,value:h}),o("action",f,h)}function u(f,h){const m=document.createElement("table");m.style.width="100%",m.style.borderCollapse="collapse",m.style.marginBottom="1rem";const p=document.createElement("thead"),g=p.insertRow();for(let v=0;v<h;v++){const y=document.createElement("th");y.innerHTML=`Header ${v+1}`,y.style.padding="8px",y.style.border="1px solid #ddd",y.style.backgroundColor="#f4f4f4",g.appendChild(y)}m.appendChild(p);const _=document.createElement("tbody");for(let v=0;v<f;v++){const y=_.insertRow();for(let b=0;b<h;b++){const $=y.insertCell();$.innerHTML=" ",$.style.padding="8px",$.style.border="1px solid #ddd"}}m.appendChild(_),o("action","insertTable",m.outerHTML)}function d(){o("action","insertTable")}return(f,h)=>{const m=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("div",s3,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(f.config.map(i).filter(Boolean),(p,g)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:g},[p.name==="insertTable"&&!l("insertTable")?(n.openBlock(),n.createBlock(i3,{key:0,onInsert:u,onOpenAdvanced:d})):p.name==="insertImage"&&!l("insertImage")?n.withDirectives((n.openBlock(),n.createBlock(n.unref(ee),{key:1,icon:p.icon,thin:"",flat:"","aria-label":p.name,class:n.normalizeClass([[p.class,{active:f.selectedStyles.has(p.name)}],""]),tabindex:"-1",onClick:_=>c(p.name)},null,8,["icon","aria-label","class","onClick"])),[[m,p.label]]):p.name==="insertVideo"&&!l("insertVideo")?n.withDirectives((n.openBlock(),n.createBlock(n.unref(ee),{key:2,icon:p.icon,thin:"",flat:"","aria-label":p.name,class:n.normalizeClass([[p.class,{active:f.selectedStyles.has(p.name)}],""]),tabindex:"-1",onClick:_=>c(p.name)},null,8,["icon","aria-label","class","onClick"])),[[m,p.label]]):p.name==="insertEmbed"&&!l("insertEmbed")?n.withDirectives((n.openBlock(),n.createBlock(n.unref(ee),{key:3,icon:p.icon,thin:"",flat:"","aria-label":p.name,class:n.normalizeClass([[p.class,{active:f.selectedStyles.has(p.name)}],""]),tabindex:"-1",onClick:_=>c(p.name)},null,8,["icon","aria-label","class","onClick"])),[[m,p.label]]):p.name==="alignMenu"&&!l("alignMenu")?(n.openBlock(),n.createBlock(n.unref(on),{key:4,placement:"bottom-start",thin:"",flat:"",icon:r(),class:n.normalizeClass({"alignment-active":a()})},{default:n.withCtx(({hide:_})=>[n.createElementVNode("div",c3,[n.createVNode(n.unref(ee),{thin:"",flat:"",icon:"format_align_left",class:n.normalizeClass({active:f.selectedStyles.has("alignLeft")}),onClick:v=>{c("alignLeft"),_()}},null,8,["class","onClick"]),n.createVNode(n.unref(ee),{thin:"",flat:"",icon:"format_align_center",class:n.normalizeClass({active:f.selectedStyles.has("alignCenter")}),onClick:v=>{c("alignCenter"),_()}},null,8,["class","onClick"]),n.createVNode(n.unref(ee),{thin:"",flat:"",icon:"format_align_right",class:n.normalizeClass({active:f.selectedStyles.has("alignRight")}),onClick:v=>{c("alignRight"),_()}},null,8,["class","onClick"]),n.createVNode(n.unref(ee),{thin:"",flat:"",icon:"format_align_justify",class:n.normalizeClass({active:f.selectedStyles.has("alignJustify")}),onClick:v=>{c("alignJustify"),_()}},null,8,["class","onClick"])])]),_:1},8,["icon","class"])):p.name==="textDirection"&&!l("textDirection")?n.withDirectives((n.openBlock(),n.createBlock(n.unref(ee),{key:5,icon:f.selectedStyles.has("textDirection")?"format_textdirection_l_to_r":"format_textdirection_r_to_l",thin:"",flat:"","aria-label":p.name,class:n.normalizeClass([[p.class,{active:f.selectedStyles.has("textDirection")}],""]),tabindex:"-1",onClick:_=>c(p.name)},null,8,["icon","aria-label","class","onClick"])),[[m,p.label]]):(p.name==="h5"||p.name==="h6")&&!l(p.name)?n.withDirectives((n.openBlock(),n.createBlock(n.unref(ee),{key:6,icon:p.icon,thin:"",flat:"","aria-label":p.name,class:n.normalizeClass([[p.class,{active:f.selectedStyles.has(p.name)}],""]),tabindex:"-1",onClick:_=>c(p.name)},null,8,["icon","aria-label","class","onClick"])),[[m,p.label]]):p.name!=="separator"&&p.name!=="insertTable"&&p.name!=="insertImage"&&p.name!=="insertVideo"&&p.name!=="insertEmbed"&&p.name!=="alignMenu"&&p.name!=="textDirection"&&p.name!=="h5"&&p.name!=="h6"&&!l(p.name)?n.withDirectives((n.openBlock(),n.createBlock(n.unref(ee),{key:7,icon:p.icon,thin:"",flat:"","aria-label":p.name,class:n.normalizeClass([[p.class,{active:f.selectedStyles.has(p.name)}],""]),tabindex:"-1",onClick:_=>c(p.name)},null,8,["icon","aria-label","class","onClick"])),[[m,p.label]]):p.name==="separator"&&s(g)?(n.openBlock(),n.createElementBlock("span",{key:`separator-${g}`,class:"opacity-2 mb-025"},"|")):n.createCommentVNode("",!0)],64))),128))])}}}),d3=Me(u3,[["__scopeId","data-v-a3d072e5"]]);function f3(e,t){const{doc:o}=t;if(!o){console.log("No doc found");return}const r=o.getSelection();if(!r||!r.rangeCount){console.log("No selection found");return}let a=r.getRangeAt(0);if(a.collapsed){if(!p3(o,a)){console.log("Failed to select word at cursor");const{showTooltipMessage:u}=t;u?u("To add a link, please select text first or place cursor within a word"):alert("To add a link, please select text first or place the cursor within a word you want to turn into a link.");return}a=r.getRangeAt(0)}const l=a.commonAncestorContainer,i=l.nodeType===Node.TEXT_NODE?l.parentElement:l,s=i==null?void 0:i.closest("a");if(t.openLinkModal){t.openLinkModal(r,a,s);return}console.warn("Link modal not available - openLinkModal function not found"),alert("Link functionality requires proper modal setup")}function p3(e,t){if(!t.collapsed)return!0;let o=t.startContainer,r=t.startOffset;if(o.nodeType!==Node.TEXT_NODE){const c=o;if(c.childNodes.length>0&&r<c.childNodes.length){const u=c.childNodes[r];if(u.nodeType===Node.TEXT_NODE)o=u,r=0;else return!1}else return!1}const a=o.textContent||"";if(!a)return!1;let l=r,i=r;const s=/[\u0590-\u05FF\u0600-\u06FF\w]/;for(;l>0&&s.test(a[l-1]);)l--;for(;i<a.length&&s.test(a[i]);)i++;if(l<i){t.setStart(o,l),t.setEnd(o,i);const c=e.getSelection();return c&&(c.removeAllRanges(),c.addRange(t)),!0}return!1}function _f(e,t,o){if(!o.doc)return;const r=o.doc.createElement("table");r.style.width="100%",r.style.borderCollapse="collapse",r.style.marginBottom="1rem";const a=o.doc.createElement("thead"),l=a.insertRow();for(let c=0;c<t;c++){const u=o.doc.createElement("th");u.innerHTML=`Header ${c+1}`,u.style.padding="8px",u.style.border="1px solid var(--border-color, #ddd)",u.style.backgroundColor="var(--bgl-gray-light, #f4f4f4)",l.appendChild(u)}r.appendChild(a);const i=o.doc.createElement("tbody");for(let c=0;c<e;c++){const u=i.insertRow();for(let d=0;d<t;d++){const f=u.insertCell();f.innerHTML=" ",f.style.padding="8px",f.style.border="1px solid var(--border-color, #ddd)"}}r.appendChild(i);const{range:s}=o;if(s){if(s.insertNode(r),o.doc.getSelection()){const c=r.querySelector("td");if(c){s.selectNodeContents(c),s.collapse(!0);const u=o.doc.getSelection();u&&(u.removeAllRanges(),u.addRange(s))}}}else o.doc.body.appendChild(r);o.content=o.doc.body.innerHTML}function m3(e,t){var l;const o=Array.from(e.cloneContents().querySelectorAll("td"));if(o.length<2)return;const r=(l=e.startContainer.parentElement)==null?void 0:l.closest("td");if(!r)return;r.colSpan=o.length,r.innerHTML=o.map(i=>i.innerHTML).join(" "),o.slice(1).forEach(i=>{const s=t.getElementById(i.id);s==null||s.remove()});const a=t.editorState;a&&(a.content=t.body.innerHTML)}function h3(e,t){var l;const o=(l=e.startContainer.parentElement)==null?void 0:l.closest("td");if(!o||!o.colSpan||o.colSpan===1)return;const r=new Array(o.colSpan-1).fill(0).map(()=>{const i=t.createElement("td");return i.style.border="1px solid var(--border-color)",i.style.padding="8px",i.innerHTML=" ",i});o.colSpan=1,o.insertAdjacentElement("afterend",r[0]),r.slice(1).forEach(i=>{r[0].insertAdjacentElement("afterend",i)});const a=t.editorState;a&&(a.content=t.body.innerHTML)}function bf(e,t,o){var c;const r=(c=t.startContainer.parentElement)==null?void 0:c.closest("td");if(!r)return;const a=r.parentElement,l=a==null?void 0:a.parentElement;if(!a||!l)return;const i=a.cloneNode(!0);Array.from(i.cells).forEach(u=>u.innerHTML=" "),a.insertAdjacentElement(e==="before"?"beforebegin":"afterend",i);const s=o.editorState;s&&(s.content=o.body.innerHTML)}function g3(e){var l;const t=(l=e.startContainer.parentElement)==null?void 0:l.closest("td");if(!t)return;const o=t.parentElement;if(!o)return;const r=o.ownerDocument;o.remove();const a=r.editorState;a&&(a.content=r.body.innerHTML)}function v3(e){var l;const t=(l=e.startContainer.parentElement)==null?void 0:l.closest("td");if(!t)return;const o=t.closest("table");if(!o)return;const r=o.ownerDocument;o.remove();const a=r.editorState;a&&(a.content=r.body.innerHTML)}function wf(e,t){var s;const o=(s=t.startContainer.parentElement)==null?void 0:s.closest("td");if(!o)return;const r=o.closest("table");if(!r)return;const a=o.cellIndex,{rows:l}=r;for(let c=0;c<l.length;c++){const u=l[c].insertCell(e==="after"?a+1:a);u.innerHTML=" ",u.style.border="1px solid var(--border-color)",u.style.padding="8px"}const i=r.ownerDocument.editorState;i&&(i.content=r.ownerDocument.body.innerHTML)}function y3(e){var s;const t=(s=e.startContainer.parentElement)==null?void 0:s.closest("td");if(!t)return;const o=t.closest("table");if(!o)return;const r=t.cellIndex,{rows:a}=o,l=o.ownerDocument;for(let c=0;c<a.length;c++)a[c].deleteCell(r);a[0].cells.length===0&&o.remove();const i=l.editorState;i&&(i.content=l.body.innerHTML)}function _3(e,t){var s;const o=(s=e.startContainer.parentElement)==null?void 0:s.closest("td");if(!o)return;const r=o.closest("table");if(!r)return;const a=o.cellIndex,{rows:l}=r;for(let c=0;c<l.length;c++){const u=l[c].cells[a];u&&(u.style.textAlign=t)}const i=r.ownerDocument.editorState;i&&(i.content=r.ownerDocument.body.innerHTML)}function it(e){if(!e.doc)return null;const t=e.doc.getSelection();if(!t||!t.rangeCount)return null;const o=t.getRangeAt(0);return{selection:t,range:o}}function xs(e,t,o){if(!t.collapsed)return!1;let r=t.startContainer,a=t.startOffset;if(r.nodeType!==Node.TEXT_NODE){const f=r;if(f.childNodes.length>0&&a<f.childNodes.length){const h=f.childNodes[a];if(h.nodeType===Node.TEXT_NODE)r=h,a=0;else return!1}else return!1}const{parentElement:l}=r,i=l==null?void 0:l.closest(o.toLowerCase());if(i)try{const f=i.parentNode;if(f){for(;i.firstChild;)f.insertBefore(i.firstChild,i);f.removeChild(i);const h=e.createRange();h.setStart(r,a),h.collapse(!0);const m=e.getSelection();return m&&(m.removeAllRanges(),m.addRange(h)),!0}}catch(f){return console.error("Error removing formatting from word:",f),!1}const s=r.textContent||"";if(!s)return!1;let c=a,u=a;const d=/[\u0590-\u05FF\u0600-\u06FF\w]/;for(a>0&&d.test(s[a-1])&&(a>=s.length||!d.test(s[a]))&&(c=a-1,u=a-1);c>0&&d.test(s[c-1]);)c--;for(;u<s.length&&d.test(s[u]);)u++;if(c<u&&u>c)try{const f=s.substring(0,c),h=s.substring(c,u),m=s.substring(u),p=e.createElement(o);p.textContent=h;const g=r.parentNode;if(g){if(f){const y=e.createTextNode(f);g.insertBefore(y,r)}if(g.insertBefore(p,r),m){const y=e.createTextNode(m);g.insertBefore(y,r)}g.removeChild(r);const _=e.createRange();_.setStartAfter(p),_.collapse(!0);const v=e.getSelection();return v&&(v.removeAllRanges(),v.addRange(_)),!0}}catch(f){console.error("Error applying formatting to word:",f)}return!1}function b3(e){if(!e.doc)return;e.content=e.doc.body.innerHTML;const t=e.doc.getSelection();t&&t.rangeCount>0&&(e.selection=t,e.range=t.getRangeAt(0).cloneRange(),e.rangeCount=t.rangeCount)}function aa(e){let t=e.nodeType===Node.TEXT_NODE?e.parentElement:e;for(;t;){if(t.matches&&t.matches("p,h1,h2,h3,h4,h5,h6,blockquote,li,div"))return t;t=t.parentElement}return null}function Je(e,t,o){return{name:e,execute:(r,a)=>{r.doc&&(t(r,a),b3(r))},isActive:o}}function w3(e){const t={undo:Je("Undo",()=>{if(e.undoStack.length>0&&e.doc){const h=e.undoStack.pop();h!==void 0&&(e.redoStack.push(e.content),e.content=h,e.doc.body.innerHTML=h)}}),redo:Je("Redo",()=>{if(e.redoStack.length>0&&e.doc){const h=e.redoStack.pop();h!==void 0&&(e.undoStack.push(e.content),e.content=h,e.doc.body.innerHTML=h)}})},o={bold:Je("Bold",h=>{const m=it(h);if(!m)return;let{range:p,selection:g}=m;if(p.collapsed)return xs(h.doc,p,"b"),void 0;const _=p.commonAncestorContainer,v=_.nodeType===Node.TEXT_NODE?_.parentElement:_,y=v==null?void 0:v.closest("b, strong");if(y)try{const b=y.parentNode;for(;y.firstChild;)b==null||b.insertBefore(y.firstChild,y);b==null||b.removeChild(y),g.removeAllRanges(),g.addRange(p)}catch(b){console.error("Error removing bold:",b)}else try{const b=h.doc.createElement("b");try{p.surroundContents(b)}catch{const $=p.extractContents();b.appendChild($),p.insertNode(b)}p.selectNodeContents(b),g.removeAllRanges(),g.addRange(p)}catch(b){console.error("Error applying bold:",b)}},h=>{const m=it(h);if(!m)return!1;const p=m.range.commonAncestorContainer,g=p.nodeType===Node.TEXT_NODE?p.parentElement:p;return!!(g!=null&&g.closest("b, strong"))}),italic:Je("Italic",h=>{const m=it(h);if(!m)return;let{range:p,selection:g}=m;if(p.collapsed)return xs(h.doc,p,"i"),void 0;const _=p.commonAncestorContainer,v=_.nodeType===Node.TEXT_NODE?_.parentElement:_,y=v==null?void 0:v.closest("i, em");if(y)try{const b=y.parentNode;for(;y.firstChild;)b==null||b.insertBefore(y.firstChild,y);b==null||b.removeChild(y),g.removeAllRanges(),g.addRange(p)}catch(b){console.error("Error removing italic:",b)}else try{const b=h.doc.createElement("i");try{p.surroundContents(b)}catch{const $=p.extractContents();b.appendChild($),p.insertNode(b)}p.selectNodeContents(b),g.removeAllRanges(),g.addRange(p)}catch(b){console.error("Error applying italic:",b)}},h=>{const m=it(h);if(!m)return!1;const p=m.range.commonAncestorContainer,g=p.nodeType===Node.TEXT_NODE?p.parentElement:p;return!!(g!=null&&g.closest("i, em"))}),underline:Je("Underline",h=>{const m=it(h);if(!m)return;let{range:p,selection:g}=m;if(p.collapsed)return xs(h.doc,p,"u"),void 0;const _=p.commonAncestorContainer,v=_.nodeType===Node.TEXT_NODE?_.parentElement:_,y=v==null?void 0:v.closest("u");if(y)try{const b=y.parentNode;for(;y.firstChild;)b==null||b.insertBefore(y.firstChild,y);b==null||b.removeChild(y),g.removeAllRanges(),g.addRange(p)}catch(b){console.error("Error removing underline:",b)}else try{const b=h.doc.createElement("u");try{p.surroundContents(b)}catch{const $=p.extractContents();b.appendChild($),p.insertNode(b)}p.selectNodeContents(b),g.removeAllRanges(),g.addRange(p)}catch(b){console.error("Error applying underline:",b)}},h=>{const m=it(h);if(!m)return!1;const p=m.range.commonAncestorContainer,g=p.nodeType===Node.TEXT_NODE?p.parentElement:p;return!!(g!=null&&g.closest("u"))}),link:Je("Link",h=>{const{openLinkModal:m}=h;m&&f3(m,h)},h=>{const m=it(h);if(!m)return!1;const p=m.range.commonAncestorContainer,g=p.nodeType===Node.TEXT_NODE?p.parentElement:p;return!!(g!=null&&g.closest("a"))})},r=["h1","h2","h3","h4","h5","h6"].reduce((h,m)=>({...h,[m]:Je(`Heading ${m}`,p=>{var M,V,k,C;const g=it(p);if(!g)return;const{range:_,selection:v}=g,y=aa(_.commonAncestorContainer);if(!y)return;const{startContainer:b}=_,{endContainer:$}=_,{startOffset:w}=_,{endOffset:E}=_,S=_.collapsed,x=y.tagName.toLowerCase()===m.toLowerCase(),N=x?"p":m;try{const B=p.doc.createElement(N);for(;y.firstChild;)B.appendChild(y.firstChild);(M=y.parentNode)==null||M.replaceChild(B,y);try{const A=p.doc.createRange(),L=(oe,Z,U)=>{if(oe===Z)return U;if(oe.nodeType===Node.TEXT_NODE){const R=p.doc.createTreeWalker(U,NodeFilter.SHOW_TEXT,null);let H=0;const J=p.doc.createTreeWalker(Z,NodeFilter.SHOW_TEXT,null);let ae=J.nextNode();for(;ae&&ae!==oe;)H++,ae=J.nextNode();let fe=R.nextNode(),pe=0;for(;fe&&pe<H;)pe++,fe=R.nextNode();return fe}return U.firstChild},I=L(b,y,B),P=L($,y,B);if(I&&P){if(I.nodeType===Node.TEXT_NODE){const oe=Math.min(w,((V=I.textContent)==null?void 0:V.length)||0);A.setStart(I,oe)}else A.setStart(I,0);if(S)A.collapse(!0);else if(P.nodeType===Node.TEXT_NODE){const oe=Math.min(E,((k=P.textContent)==null?void 0:k.length)||0);A.setEnd(P,oe)}else A.setEnd(P,0);v.removeAllRanges(),v.addRange(A)}else A.selectNodeContents(B),S&&A.collapse(!0),v.removeAllRanges(),v.addRange(A)}catch(A){console.warn("Error restoring selection after heading change:",A);const L=p.doc.createRange();L.selectNodeContents(B),L.collapse(!0),v.removeAllRanges(),v.addRange(L)}if(!x&&!B.nextElementSibling){const L=p.doc.createElement("p");L.dir=B.dir||p.doc.body.dir,(C=B.parentNode)==null||C.insertBefore(L,B.nextSibling)}}catch(B){console.error(`Error applying ${m} heading:`,B)}})}),{}),a={p:Je("Paragraph",h=>{var _;const m=it(h);if(!m)return;const{range:p}=m,g=aa(p.commonAncestorContainer);if(g&&g.tagName.toLowerCase()!=="p")try{const v=h.doc.createElement("p");for(;g.firstChild;)v.appendChild(g.firstChild);(_=g.parentNode)==null||_.replaceChild(v,g),p.selectNodeContents(v),p.collapse(!1),m.selection.removeAllRanges(),m.selection.addRange(p)}catch(v){console.error("Error applying paragraph:",v)}}),blockquote:Je("Blockquote",h=>{var y;const m=it(h);if(!m)return;const{range:p}=m,g=aa(p.commonAncestorContainer);if(!g)return;const v=g.tagName.toLowerCase()==="blockquote"?"p":"blockquote";try{const b=h.doc.createElement(v);for(;g.firstChild;)b.appendChild(g.firstChild);(y=g.parentNode)==null||y.replaceChild(b,g),p.selectNodeContents(b),p.collapse(!1),m.selection.removeAllRanges(),m.selection.addRange(p)}catch(b){console.error("Error applying blockquote:",b)}})},l={orderedList:Je("Ordered List",h=>{var v,y,b;const m=it(h);if(!m)return;const{range:p}=m,g=aa(p.commonAncestorContainer);if(!g)return;const _=g.closest("li");if(_){const $=_.parentElement;if(!$)return;if($.tagName.toLowerCase()==="ol"){const w=h.doc.createElement("p");for(;_.firstChild;)w.appendChild(_.firstChild);(v=$.parentNode)==null||v.insertBefore(w,$),_.remove(),$.querySelector("li")||$.remove(),p.selectNodeContents(w),p.collapse(!1),m.selection.removeAllRanges(),m.selection.addRange(p);return}if($.tagName.toLowerCase()==="ul"){const w=h.doc.createElement("ol"),E=p.startOffset,S=p.startContainer;for(;$.firstChild;)w.appendChild($.firstChild);(y=$.parentNode)==null||y.replaceChild(w,$);try{const x=h.doc.createRange();x.setStart(S,E),x.collapse(!0),m.selection.removeAllRanges(),m.selection.addRange(x)}catch{const x=w.querySelector("li");if(x){const N=h.doc.createRange();N.selectNodeContents(x),N.collapse(!0),m.selection.removeAllRanges(),m.selection.addRange(N)}}return}}try{const $=h.doc.createElement("ol"),w=h.doc.createElement("li");for(;g.firstChild;)w.appendChild(g.firstChild);$.appendChild(w),(b=g.parentNode)==null||b.replaceChild($,g),p.selectNodeContents(w),p.collapse(!1),m.selection.removeAllRanges(),m.selection.addRange(p)}catch($){console.error("Error creating ordered list:",$)}}),unorderedList:Je("Unordered List",h=>{var v,y,b;const m=it(h);if(!m)return;const{range:p}=m,g=aa(p.commonAncestorContainer);if(!g)return;const _=g.closest("li");if(_){const $=_.parentElement;if(!$)return;if($.tagName.toLowerCase()==="ul"){const w=h.doc.createElement("p");for(;_.firstChild;)w.appendChild(_.firstChild);(v=$.parentNode)==null||v.insertBefore(w,$),_.remove(),$.querySelector("li")||$.remove(),p.selectNodeContents(w),p.collapse(!1),m.selection.removeAllRanges(),m.selection.addRange(p);return}if($.tagName.toLowerCase()==="ol"){const w=h.doc.createElement("ul"),E=p.startOffset,S=p.startContainer;for(;$.firstChild;)w.appendChild($.firstChild);(y=$.parentNode)==null||y.replaceChild(w,$);try{const x=h.doc.createRange();x.setStart(S,E),x.collapse(!0),m.selection.removeAllRanges(),m.selection.addRange(x)}catch(x){console.warn("Could not restore cursor position:",x);const N=w.querySelector("li");if(N){const M=h.doc.createRange();M.selectNodeContents(N),M.collapse(!0),m.selection.removeAllRanges(),m.selection.addRange(M)}}return}}try{const $=h.doc.createElement("ul"),w=h.doc.createElement("li");for(;g.firstChild;)w.appendChild(g.firstChild);$.appendChild(w),(b=g.parentNode)==null||b.replaceChild($,g),p.selectNodeContents(w),p.collapse(!1),m.selection.removeAllRanges(),m.selection.addRange(p)}catch($){console.error("Error creating unordered list:",$)}})},i={clear:Je("Clear Formatting",h=>{const m=it(h);if(!m)return;const{range:p,selection:g}=m;try{let _=function(y){return y.replace(/[\u200B-\u200D\uFEFF]/g,"").replace(/\s+/g," ").replace(/\u00A0/g," ").trim()},v=function(y){if(y.nodeType===Node.TEXT_NODE){const b=_(y.textContent||"");return h.doc.createTextNode(b)}if(y.nodeType===Node.ELEMENT_NODE){const b=y,$=b.tagName.toLowerCase(),w=["p","h1","h2","h3","h4","h5","h6","ul","ol","li","blockquote","div","table","tr","td","th","thead","tbody","b","i","u","a","img","iframe","video","audio","figure","figcaption"];if(["strong","em","span","font","strike","sub","sup","mark","del","ins","small","big"].includes($)){const S=_(b.textContent||"");return h.doc.createTextNode(S)}if(w.includes($)){const S=h.doc.createElement($);return $==="a"&&b.hasAttribute("href")?(S.setAttribute("href",b.getAttribute("href")||""),b.hasAttribute("target")&&S.setAttribute("target",b.getAttribute("target")||""),b.hasAttribute("rel")&&S.setAttribute("rel",b.getAttribute("rel")||"")):$==="img"?(b.hasAttribute("src")&&S.setAttribute("src",b.getAttribute("src")||""),b.hasAttribute("alt")&&S.setAttribute("alt",b.getAttribute("alt")||""),b.hasAttribute("width")&&S.setAttribute("width",b.getAttribute("width")||""),b.hasAttribute("height")&&S.setAttribute("height",b.getAttribute("height")||"")):$==="iframe"?(b.hasAttribute("src")&&S.setAttribute("src",b.getAttribute("src")||""),b.hasAttribute("width")&&S.setAttribute("width",b.getAttribute("width")||""),b.hasAttribute("height")&&S.setAttribute("height",b.getAttribute("height")||""),b.hasAttribute("frameborder")&&S.setAttribute("frameborder",b.getAttribute("frameborder")||""),b.hasAttribute("allowfullscreen")&&S.setAttribute("allowfullscreen",b.getAttribute("allowfullscreen")||"")):($==="video"||$==="audio")&&(b.hasAttribute("src")&&S.setAttribute("src",b.getAttribute("src")||""),b.hasAttribute("controls")&&S.setAttribute("controls",b.getAttribute("controls")||""),b.hasAttribute("width")&&S.setAttribute("width",b.getAttribute("width")||""),b.hasAttribute("height")&&S.setAttribute("height",b.getAttribute("height")||"")),Array.from(b.childNodes).forEach(x=>{var M;const N=v(x);((M=N.textContent)!=null&&M.trim()||N.nodeType===Node.ELEMENT_NODE)&&S.appendChild(N)}),S}}return h.doc.createTextNode("")};if(p.collapsed){const{body:y}=h.doc,b=h.doc.createDocumentFragment();if(Array.from(y.childNodes).forEach($=>{var E;const w=v($);((E=w.textContent)!=null&&E.trim()||w.nodeType===Node.ELEMENT_NODE)&&b.appendChild(w)}),y.innerHTML="",y.appendChild(b),!y.firstElementChild){const $=h.doc.createElement("p");y.appendChild($);const w=h.doc.createRange();w.selectNodeContents($),w.collapse(!0),g.removeAllRanges(),g.addRange(w)}}else{const y=p.cloneContents(),b=h.doc.createElement("div");b.appendChild(y);const $=h.doc.createDocumentFragment();Array.from(b.childNodes).forEach(w=>{var S;const E=v(w);((S=E.textContent)!=null&&S.trim()||E.nodeType===Node.ELEMENT_NODE)&&$.appendChild(E)}),p.deleteContents(),p.insertNode($),p.collapse(!1),g.removeAllRanges(),g.addRange(p)}}catch(_){console.error("Error clearing formatting:",_)}})},s={insertTable:Je("Insert Table",(h,m)=>{if(console.log("insertTable command called with value:",m),h.openTableEditor&&!m){console.log("Opening table editor modal for new table"),h.openTableEditor(null);return}if(!m){const[p,g]=[3,3];_f(p,g,h);return}if(m.includes("<table")){console.log("Inserting HTML table");const p=it(h);if(!p||!h.doc){console.error("No selection info or document");return}const{range:g}=p;try{const _=h.doc.createElement("div");_.innerHTML=m;const v=_.querySelector("table");if(v){console.log("Table parsed successfully, inserting...");const y=v.cloneNode(!0);g.insertNode(y),g.setStartAfter(y),g.collapse(!0);const b=h.doc.getSelection();b&&(b.removeAllRanges(),b.addRange(g)),console.log("Table inserted successfully")}else console.error("Could not parse table from HTML")}catch(_){console.error("Error inserting HTML table:",_)}}else{const[p,g]=m.split("x").map(Number)||[3,3];_f(p,g,h)}}),deleteTable:Je("Delete Table",h=>h.range&&v3(h.range)),mergeCells:Je("Merge Cells",h=>h.range&&h.doc&&m3(h.range,h.doc)),splitCells:Je("Split Cells",h=>h.range&&h.doc&&h3(h.range,h.doc)),addRowBefore:Je("Add Row Before",h=>h.range&&h.doc&&bf("before",h.range,h.doc)),addRowAfter:Je("Add Row After",h=>h.range&&h.doc&&bf("after",h.range,h.doc)),deleteRow:Je("Delete Row",h=>h.range&&g3(h.range)),insertColumnLeft:Je("Insert Column Left",h=>h.range&&wf("before",h.range)),insertColumnRight:Je("Insert Column Right",h=>h.range&&wf("after",h.range)),deleteColumn:Je("Delete Column",h=>h.range&&y3(h.range))},c=["Left","Center","Right","Justify"].reduce((h,m)=>({...h,[`tableAlign${m}`]:Je(`Table Align ${m}`,p=>{if(p.range){const g=m==="Left"?"start":m==="Right"?"end":m.toLowerCase();_3(p.range,g)}})}),{}),u={alignLeft:Je("Align Left",h=>{var _;const m=it(h);if(!m)return;const{range:p}=m,g=p.startContainer.nodeType===Node.TEXT_NODE?(_=p.startContainer.parentElement)==null?void 0:_.closest("p, h1, h2, h3, h4, h5, h6"):p.startContainer.closest("p, h1, h2, h3, h4, h5, h6");g&&(g.style.textAlign="left")},h=>{var _;const m=it(h);if(!m)return!1;const{range:p}=m,g=p.startContainer.nodeType===Node.TEXT_NODE?(_=p.startContainer.parentElement)==null?void 0:_.closest("p, h1, h2, h3, h4, h5, h6"):p.startContainer.closest("p, h1, h2, h3, h4, h5, h6");return(g==null?void 0:g.style.textAlign)==="left"}),alignCenter:Je("Align Center",h=>{var _;const m=it(h);if(!m)return;const{range:p}=m,g=p.startContainer.nodeType===Node.TEXT_NODE?(_=p.startContainer.parentElement)==null?void 0:_.closest("p, h1, h2, h3, h4, h5, h6"):p.startContainer.closest("p, h1, h2, h3, h4, h5, h6");g&&(g.style.textAlign="center")},h=>{var _;const m=it(h);if(!m)return!1;const{range:p}=m,g=p.startContainer.nodeType===Node.TEXT_NODE?(_=p.startContainer.parentElement)==null?void 0:_.closest("p, h1, h2, h3, h4, h5, h6"):p.startContainer.closest("p, h1, h2, h3, h4, h5, h6");return(g==null?void 0:g.style.textAlign)==="center"}),alignRight:Je("Align Right",h=>{var _;const m=it(h);if(!m)return;const{range:p}=m,g=p.startContainer.nodeType===Node.TEXT_NODE?(_=p.startContainer.parentElement)==null?void 0:_.closest("p, h1, h2, h3, h4, h5, h6"):p.startContainer.closest("p, h1, h2, h3, h4, h5, h6");g&&(g.style.textAlign="right")},h=>{var _;const m=it(h);if(!m)return!1;const{range:p}=m,g=p.startContainer.nodeType===Node.TEXT_NODE?(_=p.startContainer.parentElement)==null?void 0:_.closest("p, h1, h2, h3, h4, h5, h6"):p.startContainer.closest("p, h1, h2, h3, h4, h5, h6");return(g==null?void 0:g.style.textAlign)==="right"}),alignJustify:Je("Align Justify",h=>{var _;const m=it(h);if(!m)return;const{range:p}=m,g=p.startContainer.nodeType===Node.TEXT_NODE?(_=p.startContainer.parentElement)==null?void 0:_.closest("p, h1, h2, h3, h4, h5, h6"):p.startContainer.closest("p, h1, h2, h3, h4, h5, h6");g&&(g.style.textAlign="justify")},h=>{var _;const m=it(h);if(!m)return!1;const{range:p}=m,g=p.startContainer.nodeType===Node.TEXT_NODE?(_=p.startContainer.parentElement)==null?void 0:_.closest("p, h1, h2, h3, h4, h5, h6"):p.startContainer.closest("p, h1, h2, h3, h4, h5, h6");return(g==null?void 0:g.style.textAlign)==="justify"}),textDirection:Je("Toggle Text Direction",h=>{var _;const m=it(h);if(!m)return;const{range:p}=m,g=p.startContainer.nodeType===Node.TEXT_NODE?(_=p.startContainer.parentElement)==null?void 0:_.closest("p, h1, h2, h3, h4, h5, h6"):p.startContainer.closest("p, h1, h2, h3, h4, h5, h6");if(g){const v=g.dir||"ltr";g.dir=v==="ltr"?"rtl":"ltr"}},h=>{var _;const m=it(h);if(!m)return!1;const{range:p}=m,g=p.startContainer.nodeType===Node.TEXT_NODE?(_=p.startContainer.parentElement)==null?void 0:_.closest("p, h1, h2, h3, h4, h5, h6"):p.startContainer.closest("p, h1, h2, h3, h4, h5, h6");return(g==null?void 0:g.dir)==="rtl"}),ltrDirection:Je("Set Left to Right Direction",h=>{var _;const m=it(h);if(!m)return;const{range:p}=m,g=p.startContainer.nodeType===Node.TEXT_NODE?(_=p.startContainer.parentElement)==null?void 0:_.closest("p, h1, h2, h3, h4, h5, h6"):p.startContainer.closest("p, h1, h2, h3, h4, h5, h6");g&&(g.dir="ltr")},h=>{var _;const m=it(h);if(!m)return!1;const{range:p}=m,g=p.startContainer.nodeType===Node.TEXT_NODE?(_=p.startContainer.parentElement)==null?void 0:_.closest("p, h1, h2, h3, h4, h5, h6"):p.startContainer.closest("p, h1, h2, h3, h4, h5, h6");return(g==null?void 0:g.dir)==="ltr"}),rtlDirection:Je("Set Right to Left Direction",h=>{var _;const m=it(h);if(!m)return;const{range:p}=m,g=p.startContainer.nodeType===Node.TEXT_NODE?(_=p.startContainer.parentElement)==null?void 0:_.closest("p, h1, h2, h3, h4, h5, h6"):p.startContainer.closest("p, h1, h2, h3, h4, h5, h6");g&&(g.dir="rtl")},h=>{var _;const m=it(h);if(!m)return!1;const{range:p}=m,g=p.startContainer.nodeType===Node.TEXT_NODE?(_=p.startContainer.parentElement)==null?void 0:_.closest("p, h1, h2, h3, h4, h5, h6"):p.startContainer.closest("p, h1, h2, h3, h4, h5, h6");return(g==null?void 0:g.dir)==="rtl"})},d={fullScreen:Je("Full Screen",h=>{h.isFullscreen=!h.isFullscreen},h=>h.isFullscreen),splitView:Je("Split View",h=>{h.isSplitView=!h.isSplitView},h=>h.isSplitView),codeView:Je("Code View",h=>{h.isCodeView=!h.isCodeView},h=>h.isCodeView)},f={image:Je("Insert Image",h=>{const{openImageModal:m}=h;m?m():console.warn("Image insertion requires modal implementation")}),video:Je("Insert Video",h=>{const{openVideoModal:m}=h;m?m():console.warn("Video insertion requires modal implementation")}),embed:Je("Insert Embed",h=>{const{openEmbedModal:m}=h;m?m():console.warn("Embed insertion requires modal implementation")})};return{...t,...o,...r,...a,...l,...i,...s,...c,...u,...d,...f}}function $3(e,t){return{execute(o,r){const a=t[o];a&&a.execute(e,r)},isActive(o){var a;const r=t[o];return((a=r.isActive)==null?void 0:a.call(r,e))||!1},getValue(o){var a;const r=t[o];return((a=r.getValue)==null?void 0:a.call(r,e))||null}}}function Tg(e,t){const o=t.getSelection();if(!o||!o.rangeCount)return!1;const a=o.getRangeAt(0).commonAncestorContainer,l=a.nodeType===Node.TEXT_NODE?a.parentElement:a;if(!l)return!1;const i=(u,d)=>u?d(u)?!0:i(u.parentElement,d):!1,s={bold:u=>{var f;const d=(f=u.tagName)==null?void 0:f.toLowerCase();return d==="strong"||d==="b"},italic:u=>{var f;const d=(f=u.tagName)==null?void 0:f.toLowerCase();return d==="em"||d==="i"},underline:u=>{var f;return((f=u.tagName)==null?void 0:f.toLowerCase())==="u"},h1:u=>{var d;return((d=u.tagName)==null?void 0:d.toLowerCase())==="h1"},h2:u=>{var d;return((d=u.tagName)==null?void 0:d.toLowerCase())==="h2"},h3:u=>{var d;return((d=u.tagName)==null?void 0:d.toLowerCase())==="h3"},h4:u=>{var d;return((d=u.tagName)==null?void 0:d.toLowerCase())==="h4"},h5:u=>{var d;return((d=u.tagName)==null?void 0:d.toLowerCase())==="h5"},h6:u=>{var d;return((d=u.tagName)==null?void 0:d.toLowerCase())==="h6"},p:u=>{var d;return((d=u.tagName)==null?void 0:d.toLowerCase())==="p"},blockquote:u=>{var d;return((d=u.tagName)==null?void 0:d.toLowerCase())==="blockquote"},orderedList:u=>!!u.closest("ol"),unorderedList:u=>!!u.closest("ul"),alignLeft:u=>{const d=u.closest("p, h1, h2, h3, h4, h5, h6");return(d==null?void 0:d.style.textAlign)==="start"},alignCenter:u=>{const d=u.closest("p, h1, h2, h3, h4, h5, h6");return(d==null?void 0:d.style.textAlign)==="center"},alignRight:u=>{const d=u.closest("p, h1, h2, h3, h4, h5, h6");return(d==null?void 0:d.style.textAlign)==="end"},alignJustify:u=>{const d=u.closest("p, h1, h2, h3, h4, h5, h6");return(d==null?void 0:d.style.textAlign)==="justify"},textDirection:u=>{const d=u.closest("p, h1, h2, h3, h4, h5, h6");return(d==null?void 0:d.dir)==="rtl"},ltrDirection:u=>{const d=u.closest("p, h1, h2, h3, h4, h5, h6");return(d==null?void 0:d.dir)==="ltr"},rtlDirection:u=>{const d=u.closest("p, h1, h2, h3, h4, h5, h6");return(d==null?void 0:d.dir)==="rtl"}};if(["splitView","codeView","fullScreen"].includes(e))return!1;const c=s[e];return c?i(l,c):i(l,u=>{var d;return((d=u.tagName)==null?void 0:d.toLowerCase())===e.toLowerCase()})}function k3(e,t){const o=w3(e),r=$3(e,o),a=()=>{if(!e.doc)return;const l=new Set;["bold","italic","underline","link","h1","h2","h3","h4","h5","h6","blockquote","p","orderedList","unorderedList","alignLeft","alignCenter","alignRight","alignJustify","textDirection","ltrDirection","rtlDirection"].forEach(s=>{Tg(s,e.doc)&&l.add(s)}),e.selectedStyles=l};return{execute:(l,i)=>{if(!e.doc){console.log("[useCommands] No document available, skipping command");return}if(t==null||t.logCommand(l,i),["splitView","codeView","fullScreen"].includes(l))switch(l){case"splitView":e.isSplitView=!e.isSplitView;return;case"codeView":e.isCodeView=!e.isCodeView;return;case"fullScreen":e.isFullscreen=!e.isFullscreen;return}try{e.doc.body.focus()}catch(c){console.error("[useCommands] Error focusing editor:",c)}const s=e.doc.getSelection();s!=null&&s.rangeCount&&(e.selection=s,e.range=s.getRangeAt(0).cloneRange(),e.rangeCount=s.rangeCount);try{r.execute(l,i),["splitView","codeView","fullScreen"].includes(l)||a()}catch(c){console.error("[useCommands] Error during command execution:",c)}},isActive:r.isActive,getValue:r.getValue}}class E3{constructor(t=1e3){qe(this,"session");qe(this,"maxActions");qe(this,"isDevelopment");this.maxActions=t,this.session=this.createNewSession(),this.isDevelopment=!1}createNewSession(){return{id:`session_${Date.now()}`,startTime:Date.now(),actions:[]}}getNodeDescription(t){var r;if(t.nodeType===Node.TEXT_NODE)return`Text("${(r=t.textContent)==null?void 0:r.slice(0,20)}${t.textContent&&t.textContent.length>20?"...":""}")`;const o=t;return`${o.tagName.toLowerCase()}${o.id?`#${o.id}`:""}`}captureState(t){if(!t.doc||!t.selection)return{content:"",selection:null,activeStyles:[],caretPosition:null};const{selection:o}=t,r=o.rangeCount?o.getRangeAt(0):null;return{content:t.doc.body.innerHTML,selection:r?{start:r.startOffset,end:r.endOffset,collapsed:r.collapsed,text:r.toString()}:null,activeStyles:Array.from(t.selectedStyles),caretPosition:r?{node:this.getNodeDescription(r.startContainer),offset:r.startOffset}:null}}logCommand(t,o,r){this.addAction({type:"command",name:t,timestamp:Date.now(),details:{value:o},state:this.captureState(r)})}logPaste(t,o){this.addAction({type:"paste",name:"paste",timestamp:Date.now(),details:{html:t.getData("text/html"),text:t.getData("text/plain"),types:Array.from(t.types)},state:this.captureState(o)})}logKeyboard(t,o){this.addAction({type:"keyboard",name:"keypress",timestamp:Date.now(),details:{key:t.key,code:t.code,ctrl:t.ctrlKey,alt:t.altKey,shift:t.shiftKey,meta:t.metaKey},state:this.captureState(o)})}logSelection(t){this.addAction({type:"selection",name:"selection_change",timestamp:Date.now(),details:{},state:this.captureState(t)})}logInput(t,o,r){this.addAction({type:"input",name:t,timestamp:Date.now(),details:{data:o},state:this.captureState(r)})}addAction(t){this.session.actions.push(t),this.session.actions.length>this.maxActions&&this.session.actions.shift(),this.isDevelopment&&console.log("Editor Action:",t)}getSession(){return this.session}clearSession(){this.session=this.createNewSession()}exportSession(){return JSON.stringify(this.session,null,2)}downloadSession(){const t=new Blob([this.exportSession()],{type:"application/json"}),o=URL.createObjectURL(t),r=document.createElement("a");r.href=o,r.download=`editor_session_${this.session.id}.json`,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(o)}exportSessionWithPrompt(t){const o={message:t||"here is a debug log, can you analyze and fix accordingly?",session:this.session};return JSON.stringify(o,null,2)}}function $f(e){const t=document.createElement("div");t.innerHTML=e;const o=[];return t.querySelectorAll("iframe").forEach((r,a)=>{const l=`<!--iframe-${a}-->`;o.push(r.cloneNode(!0)),r.replaceWith(l)}),{html:t.innerHTML,iframes:o}}function kf(e,t,o){const r=/<!--iframe-(\d+)-->/g;e.body.innerHTML=t.replace(r,(a,l)=>{const i=o[Number(l)];return i?i.outerHTML:""})}function C3(){let e=null;const t=n.reactive({content:"",doc:void 0,selection:null,selectedStyles:new Set,isFullscreen:!1,isSplitView:!1,isCodeView:!1,hasInit:!1,undoStack:[],redoStack:[],rangeCount:0,range:null,debug:void 0}),o={styles:()=>{if(!t.doc)return;const c=new Set;["bold","italic","underline","h1","h2","h3","h4","h5","h6","blockquote","p","orderedList","unorderedList","alignLeft","alignCenter","alignRight","alignJustify","textDirection","ltrDirection","rtlDirection"].forEach(d=>{t.doc&&Tg(d,t.doc)&&c.add(d)}),t.selectedStyles=c},content:c=>{if(!t.doc)return;t.doc.body.innerHTML!==t.content&&(t.undoStack.push(t.content),t.redoStack=[]);const d=t.doc.getSelection(),f=d!=null&&d.rangeCount?d.getRangeAt(0).cloneRange():null;if(c==="html"){const h=$f(t.content);t.doc.body.innerHTML=h.html,setTimeout(()=>{if(t.doc&&(kf(t.doc,t.content,h.iframes),f&&d))try{d.removeAllRanges(),d.addRange(f)}catch{}},0)}else t.doc.body.textContent=t.content},selection:()=>{if(!t.doc)return;const c=t.doc.getSelection();if(c)try{if(!t.doc.body.contains(c.anchorNode)){t.doc.body.focus();return}(!t.selection||t.selection!==c||t.rangeCount!==c.rangeCount||c.rangeCount>0&&t.range&&(t.range.startContainer!==c.getRangeAt(0).startContainer||t.range.startOffset!==c.getRangeAt(0).startOffset||t.range.endContainer!==c.getRangeAt(0).endContainer||t.range.endOffset!==c.getRangeAt(0).endOffset))&&(t.selection=c,t.rangeCount=c.rangeCount,c.rangeCount>0&&(t.range=c.getRangeAt(0).cloneRange()),o.styles())}catch{t.selection=null,t.range=null,t.rangeCount=0,t.selectedStyles=new Set}}},r={undo:()=>{if(t.undoStack.length===0)return;t.redoStack.push(t.content);const c=t.undoStack.pop();c!==void 0&&(t.content=c,o.content("html"))},redo:()=>{if(t.redoStack.length===0)return;t.undoStack.push(t.content);const c=t.redoStack.pop();c!==void 0&&(t.content=c,o.content("html"))}},a={emptyTags:c=>{var h;const u=c.createTreeWalker(c.body,NodeFilter.SHOW_ELEMENT,null),d=[];let f=u.nextNode();for(;f;){if(["br","img","hr","input"].includes(f.tagName.toLowerCase())){f=u.nextNode();continue}const m=((h=f.textContent)==null?void 0:h.trim())||"",p=f.innerHTML.trim(),g=p==="<br>"||p==="<br/>",_=p===" "||m===" ",v=!m&&!p,y=f.parentElement===c.body;(v||_||g&&!y)&&d.push(f),f=u.nextNode()}d.forEach(m=>{m.remove()})},normalizeContent:c=>{var h;const u=c.createTreeWalker(c.body,NodeFilter.SHOW_TEXT),d=[];let f;for(;f=u.nextNode();)f.parentElement===c.body&&((h=f.textContent)!=null&&h.trim())&&d.push(f);d.forEach(m=>{const p=c.createElement("p");p.dir=c.body.dir,p.appendChild(m.cloneNode()),c.body.replaceChild(p,m)})}};function l(c){e&&(e(),e=null);let u=!1;const d={input:()=>{if(u)return;u=!0;const f=c.body.innerHTML;f!==t.content&&(t.content=f),u=!1},selectionchange:()=>{u||o.selection()},mouseup:()=>{u||o.selection()},keyup:f=>{u||["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(f.key)&&o.selection()}};return Object.entries(d).forEach(([f,h])=>{c.addEventListener(f,h)}),e=()=>{Object.entries(d).forEach(([f,h])=>{c.removeEventListener(f,h)})},e}function i(c){if(t.hasInit&&e&&(e(),e=null),t.doc=c,t.hasInit=!0,c.editorState=t,t.content&&t.content.trim()&&!t.content.match(/^<p(?:\s[^>]*)?>(?:<br\s*\/?>)?\s*<\/p>$/i)){const u=$f(t.content);c.body.innerHTML=u.html,setTimeout(()=>{t.doc&&kf(c,t.content,u.iframes)},0)}if(a.normalizeContent(c),c.body.firstElementChild){const u=c.createRange(),d=c.getSelection();d&&(u.selectNodeContents(c.body),u.collapse(!1),d.removeAllRanges(),d.addRange(u),t.range=u.cloneRange(),t.selection=d,t.rangeCount=d.rangeCount)}else{const u=c.getSelection();if(u){const d=c.createRange();d.setStart(c.body,0),d.setEnd(c.body,0),u.removeAllRanges(),u.addRange(d),t.range=d.cloneRange(),t.selection=u,t.rangeCount=u.rangeCount}}e=l(c)}function s(){if(!t.debug){const c=new E3,u={debugger:c,logCommand:(d,f)=>{c.logCommand(d,f,t)},getSession:()=>c.getSession(),clearSession:()=>{c.clearSession()},downloadSession:()=>{c.downloadSession()},exportDebugWithPrompt:d=>c.exportSessionWithPrompt(d)};t.debug=u}}return typeof window<"u"&&window.addEventListener("beforeunload",()=>{e&&e()}),{state:t,init:i,updateState:o,history:r,initDebugger:s,cleanup:()=>{e&&(e(),e=null)}}}const S3=[{key:"b",command:"bold"},{key:"i",command:"italic"},{key:"u",command:"underline"},{key:"k",command:"link"},{key:"z",command:"undo"},{key:"z",modifiers:{shift:!0},command:"redo"},{key:"y",command:"redo"},{key:".",modifiers:{shift:!0},command:"orderedList"},{key:"/",modifiers:{shift:!0},command:"unorderedList"},{key:"]",command:"indent"},{key:"[",command:"outdent"},...Array.from({length:6},(e,t)=>({key:String(t+1),modifiers:{alt:!0},command:`h${t+1}`}))];function T3(e,t){e.addEventListener("keydown",o=>{if(!o.ctrlKey&&!o.metaKey)return;const r=S3.find(a=>{const l=a.key===o.key,i=!a.modifiers||(!a.modifiers.ctrl||o.ctrlKey||o.metaKey)&&(!a.modifiers.alt||o.altKey)&&(!a.modifiers.shift||o.shiftKey);return l&&i});r&&(o.preventDefault(),t.execute(r.command))})}const N3={key:0},D3={key:1,class:"flex pt-05"},x3={class:"inline-toolbar-content"},B3={class:"menu-header"},A3={class:"px-025"},M3={key:3,class:"context-menu-separator"},V3={class:"flex gap-05 align-items-end"},L3={class:"flex gap-1"},P3={class:"flex gap-05 w-100"},I3={class:"flex gap-1"},O3={class:"flex gap-05 w-100"},R3={class:"grid gap-0"},F3={key:0,class:"flex gap-025 opacity-5 -mt-05"},z3={key:1,class:"grid grid-wrap-2 gap-05"},U3={class:"grid grid-wrap-2 gap-05 py-1"},H3={class:"overflow-hidden flex justify-content-center"},j3={class:"flex gap-05 w-100"},W3={class:"grid grid-wrap-4 m_grid-wrap-2 gap-col-1 table-editor testMe1"},q3={class:"grid-span-1"},G3={class:"flex gap-025 mt-025 radius-1 p-05 w-fit",style:{height:"var(--input-height)",background:"var(--input-bg)"}},Y3={class:"grid-span-1"},X3={class:"flex gap-025 mt-025 radius-1 p-025 w-fit",style:{height:"var(--input-height)",background:"var(--input-bg)"}},K3={key:0,class:"grid-span-4 m_grid-span-2 grid-wrap-4 m_grid-wrap-2 grid gap-col-1 border-bottom pb-05 mb-05"},J3={key:1,class:"grid grid-wrap-4 m_grid-wrap-2 gap-col-1 grid-span-4 m_grid-span-2 border-bottom pb-05 mb-05"},Z3=["innerHTML"],Q3=n.defineComponent({inheritAttrs:!1,__name:"index",props:{modelValue:{},toolbarConfig:{},debug:{type:Boolean},label:{},height:{},basic:{type:Boolean},simple:{type:Boolean},placeholder:{},hideToolbar:{type:Boolean},hideInlineToolbar:{type:Boolean},hideImages:{type:Boolean},hideVideos:{type:Boolean},hideEmbed:{type:Boolean},hideTables:{type:Boolean},hideAlignment:{type:Boolean},hideDirections:{type:Boolean},hideH5H6:{type:Boolean},hide:{},autofocus:{type:Boolean},textColor:{},fontSize:{}},emits:["update:modelValue"],setup(e,{expose:t,emit:o}){const r=e,a=o,l=n.useAttrs(),i=n.ref(),s=C3(),c=n.ref(!1),u=n.ref(!1),d=k3(s.state,s.state.debug),f=n.ref(0),h=n.computed(()=>(f.value,typeof document<"u"&&getComputedStyle(document.documentElement).getPropertyValue("--input-color").trim()||"#000")),m=n.computed(()=>{const T=h.value;return r.textColor||(T&&T.length>0&&T!=="#000"?T:"inherit")});let p=null;n.onMounted(()=>{typeof document<"u"&&(p=new MutationObserver(T=>{let D=!1;T.forEach(j=>{if(j.type==="attributes"){const{attributeName:ne}=j;(ne==="data-theme"||ne==="class"||ne==="style")&&(D=!0)}}),D&&(f.value++,u.value&&setTimeout(()=>{te()},50))}),p.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme","class","style"]}),document.body&&p.observe(document.body,{attributes:!0,attributeFilter:["class","data-theme"]}))}),n.onBeforeUnmount(()=>{p==null||p.disconnect()}),r.debug&&typeof window<"u"&&(window.forceRichTextUpdate=()=>{f.value++},window.debugRichText=$e);const g=n.computed(()=>!(r.hideToolbar||r.basic)),_=n.computed(()=>!r.hideInlineToolbar),v=n.computed(()=>r.toolbarConfig),y=n.computed(()=>{const T=[...r.hide||[]];return r.simple&&["h1","h2","h3","h4","h5","h6","image","video","embed","ul","ol","blockquote","direction","table","alignment"].forEach(j=>{T.includes(j)||T.push(j)}),T}),b=n.ref(!1),$=n.ref({url:"",openInNewTab:!0}),w=n.ref(!1),E=n.ref({message:"",x:0,y:0});let S=null;const x=n.ref(!1),N=n.ref({src:"",alt:"",width:"",height:"",credit:"",figcaption:!1});let M=null;const V=n.ref(!1),k=n.ref({src:"",width:"560",height:"315",alt:""});let C=null;const B=n.ref(!1),A=n.ref({top:0,left:0}),L=n.ref(null),I=n.ref(!1),P=n.ref({src:"",width:"",autoplay:!1,mute:!1,controls:!0,loop:!1,aspectRatio:"16:9",customWidth:"",customHeight:"",caption:"",showCaption:!1});let oe=null;const Z=n.ref(!1),U=n.ref({rows:3,cols:3,width:100,borderWidth:1,borderColor:"#dddddd",cellPadding:8,showHeaders:!0,headerBgColor:"#f4f4f4",headerTextColor:"#333333",cellBgColor:"#ffffff",cellTextColor:"#333333",alternateRows:!1,alternateRowBgColor:"#f9f9f9",alternateRowTextColor:"#333333",fixedLayout:!0,alignment:"left",direction:"ltr"}),R=n.ref(!1),H=n.ref({x:0,y:0}),J=n.ref(null);let ae=null;const fe=n.computed(()=>{const T=U.value;let j=`<table style="${`
|
|
159
159
|
width: ${T.width}%;
|
|
160
160
|
border-collapse: collapse;
|
|
161
161
|
margin-bottom: 1rem;
|
|
@@ -403,28 +403,28 @@ ${D.length} values could not be automatically matched.`)}catch(te){console.error
|
|
|
403
403
|
scale(${M})
|
|
404
404
|
`;if(c.slideShadows){let C=m.querySelector(".swiper-slide-shadow");C||(C=Pa("cards",m)),C&&(C.style.opacity=Math.min(Math.max((Math.abs(g)-.5)/.5,0),1))}m.style.zIndex=-Math.abs(Math.round(p))+l.length;const k=ts(c,m);k.style.transform=V}},setTransition:l=>{const i=e.slides.map(s=>Xr(s));i.forEach(s=>{s.style.transitionDuration=`${l}ms`,s.querySelectorAll(".swiper-slide-shadow").forEach(c=>{c.style.transitionDuration=`${l}ms`})}),nd({swiper:e,duration:l,transformElements:i})},perspective:()=>!0,overwriteParams:()=>({_loopSwapReset:!1,watchSlidesProgress:!0,loopAdditionalSlides:e.params.cardsEffect.rotate?3:2,centeredSlides:!0,virtualTranslate:!e.params.cssMode})})}let qs;function Xx(){const e=Yt(),t=Qn();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function lv(){return qs||(qs=Xx()),qs}let Gs;function Kx({userAgent:e}={}){const t=lv(),o=Yt(),r=o.navigator.platform,a=e||o.navigator.userAgent,l={ios:!1,android:!1},i=o.screen.width,s=o.screen.height,c=a.match(/(Android);?[\s\/]+([\d.]+)?/);let u=a.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const d=a.match(/(iPod)(.*OS\s([\d_]+))?/),f=!u&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h=r==="Win32";let m=r==="MacIntel";const p=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!u&&m&&t.touch&&p.indexOf(`${i}x${s}`)>=0&&(u=a.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),m=!1),c&&!h&&(l.os="android",l.android=!0),(u||f||d)&&(l.os="ios",l.ios=!0),l}function iv(e={}){return Gs||(Gs=Kx(e)),Gs}let Ys;function Jx(){const e=Yt(),t=iv();let o=!1;function r(){const s=e.navigator.userAgent.toLowerCase();return s.indexOf("safari")>=0&&s.indexOf("chrome")<0&&s.indexOf("android")<0}if(r()){const s=String(e.navigator.userAgent);if(s.includes("Version/")){const[c,u]=s.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));o=c<16||c===16&&u<2}}const a=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),l=r(),i=l||a&&t.ios;return{isSafari:o||l,needPerspectiveFix:o,need3dFix:i,isWebView:a}}function sv(){return Ys||(Ys=Jx()),Ys}function Zx({swiper:e,on:t,emit:o}){const r=Yt();let a=null,l=null;const i=()=>{!e||e.destroyed||!e.initialized||(o("beforeResize"),o("resize"))},s=()=>{!e||e.destroyed||!e.initialized||(a=new ResizeObserver(d=>{l=r.requestAnimationFrame(()=>{const{width:f,height:h}=e;let m=f,p=h;d.forEach(({contentBoxSize:g,contentRect:_,target:v})=>{v&&v!==e.el||(m=_?_.width:(g[0]||g).inlineSize,p=_?_.height:(g[0]||g).blockSize)}),(m!==f||p!==h)&&i()})}),a.observe(e.el))},c=()=>{l&&r.cancelAnimationFrame(l),a&&a.unobserve&&e.el&&(a.unobserve(e.el),a=null)},u=()=>{!e||e.destroyed||!e.initialized||o("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){s();return}r.addEventListener("resize",i),r.addEventListener("orientationchange",u)}),t("destroy",()=>{c(),r.removeEventListener("resize",i),r.removeEventListener("orientationchange",u)})}function Qx({swiper:e,extendParams:t,on:o,emit:r}){const a=[],l=Yt(),i=(u,d={})=>{const f=l.MutationObserver||l.WebkitMutationObserver,h=new f(m=>{if(e.__preventObserver__)return;if(m.length===1){r("observerUpdate",m[0]);return}const p=function(){r("observerUpdate",m[0])};l.requestAnimationFrame?l.requestAnimationFrame(p):l.setTimeout(p,0)});h.observe(u,{attributes:typeof d.attributes>"u"?!0:d.attributes,childList:e.isElement||(typeof d.childList>"u"?!0:d).childList,characterData:typeof d.characterData>"u"?!0:d.characterData}),a.push(h)},s=()=>{if(e.params.observer){if(e.params.observeParents){const u=rv(e.hostEl);for(let d=0;d<u.length;d+=1)i(u[d])}i(e.hostEl,{childList:e.params.observeSlideChildren}),i(e.wrapperEl,{attributes:!1})}},c=()=>{a.forEach(u=>{u.disconnect()}),a.splice(0,a.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),o("init",s),o("destroy",c)}var e9={on(e,t,o){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const a=o?"unshift":"push";return e.split(" ").forEach(l=>{r.eventsListeners[l]||(r.eventsListeners[l]=[]),r.eventsListeners[l][a](t)}),r},once(e,t,o){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function a(...l){r.off(e,a),a.__emitterProxy&&delete a.__emitterProxy,t.apply(r,l)}return a.__emitterProxy=t,r.on(e,a,o)},onAny(e,t){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;const r=t?"unshift":"push";return o.eventsAnyListeners.indexOf(e)<0&&o.eventsAnyListeners[r](e),o},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const o=t.eventsAnyListeners.indexOf(e);return o>=0&&t.eventsAnyListeners.splice(o,1),t},off(e,t){const o=this;return!o.eventsListeners||o.destroyed||!o.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?o.eventsListeners[r]=[]:o.eventsListeners[r]&&o.eventsListeners[r].forEach((a,l)=>{(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&o.eventsListeners[r].splice(l,1)})}),o},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let o,r,a;return typeof e[0]=="string"||Array.isArray(e[0])?(o=e[0],r=e.slice(1,e.length),a=t):(o=e[0].events,r=e[0].data,a=e[0].context||t),r.unshift(a),(Array.isArray(o)?o:o.split(" ")).forEach(i=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(s=>{s.apply(a,[i,...r])}),t.eventsListeners&&t.eventsListeners[i]&&t.eventsListeners[i].forEach(s=>{s.apply(a,r)})}),t}};function t9(){const e=this;let t,o;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?o=e.params.height:o=r.clientHeight,!(t===0&&e.isHorizontal()||o===0&&e.isVertical())&&(t=t-parseInt(Ao(r,"padding-left")||0,10)-parseInt(Ao(r,"padding-right")||0,10),o=o-parseInt(Ao(r,"padding-top")||0,10)-parseInt(Ao(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(o)&&(o=0),Object.assign(e,{width:t,height:o,size:e.isHorizontal()?t:o}))}function n9(){const e=this;function t(M,V){return parseFloat(M.getPropertyValue(e.getDirectionLabel(V))||0)}const o=e.params,{wrapperEl:r,slidesEl:a,rtlTranslate:l,wrongRTL:i}=e,s=e.virtual&&o.virtual.enabled,c=s?e.virtual.slides.length:e.slides.length,u=Kn(a,`.${e.params.slideClass}, swiper-slide`),d=s?e.virtual.slides.length:u.length;let f=[];const h=[],m=[];let p=o.slidesOffsetBefore;typeof p=="function"&&(p=o.slidesOffsetBefore.call(e));let g=o.slidesOffsetAfter;typeof g=="function"&&(g=o.slidesOffsetAfter.call(e));const _=e.snapGrid.length,v=e.slidesGrid.length,y=e.size-p-g;let b=o.spaceBetween,$=-p,w=0,E=0;if(typeof y>"u")return;typeof b=="string"&&b.indexOf("%")>=0?b=parseFloat(b.replace("%",""))/100*y:typeof b=="string"&&(b=parseFloat(b)),e.virtualSize=-b-p-g,u.forEach(M=>{l?M.style.marginLeft="":M.style.marginRight="",M.style.marginBottom="",M.style.marginTop=""}),o.centeredSlides&&o.cssMode&&($l(r,"--swiper-centered-offset-before",""),$l(r,"--swiper-centered-offset-after",""));const S=o.grid&&o.grid.rows>1&&e.grid;S?e.grid.initSlides(u):e.grid&&e.grid.unsetSlides();let x;const N=o.slidesPerView==="auto"&&o.breakpoints&&Object.keys(o.breakpoints).filter(M=>typeof o.breakpoints[M].slidesPerView<"u").length>0;for(let M=0;M<d;M+=1){x=0;const V=u[M];if(!(V&&(S&&e.grid.updateSlide(M,V,u),Ao(V,"display")==="none"))){if(s&&o.slidesPerView==="auto")o.virtual.slidesPerViewAutoSlideSize&&(x=o.virtual.slidesPerViewAutoSlideSize),x&&V&&(o.roundLengths&&(x=Math.floor(x)),V.style[e.getDirectionLabel("width")]=`${x}px`);else if(o.slidesPerView==="auto"){N&&(V.style[e.getDirectionLabel("width")]="");const k=getComputedStyle(V),C=V.style.transform,B=V.style.webkitTransform;if(C&&(V.style.transform="none"),B&&(V.style.webkitTransform="none"),o.roundLengths)x=e.isHorizontal()?Yc(V,"width"):Yc(V,"height");else{const A=t(k,"width"),L=t(k,"padding-left"),I=t(k,"padding-right"),P=t(k,"margin-left"),oe=t(k,"margin-right"),Z=k.getPropertyValue("box-sizing");if(Z&&Z==="border-box")x=A+P+oe;else{const{clientWidth:U,offsetWidth:R}=V;x=A+L+I+P+oe+(R-U)}}C&&(V.style.transform=C),B&&(V.style.webkitTransform=B),o.roundLengths&&(x=Math.floor(x))}else x=(y-(o.slidesPerView-1)*b)/o.slidesPerView,o.roundLengths&&(x=Math.floor(x)),V&&(V.style[e.getDirectionLabel("width")]=`${x}px`);V&&(V.swiperSlideSize=x),m.push(x),o.centeredSlides?($=$+x/2+w/2+b,w===0&&M!==0&&($=$-y/2-b),M===0&&($=$-y/2-b),Math.abs($)<1/1e3&&($=0),o.roundLengths&&($=Math.floor($)),E%o.slidesPerGroup===0&&f.push($),h.push($)):(o.roundLengths&&($=Math.floor($)),(E-Math.min(e.params.slidesPerGroupSkip,E))%e.params.slidesPerGroup===0&&f.push($),h.push($),$=$+x+b),e.virtualSize+=x+b,w=x,E+=1}}if(e.virtualSize=Math.max(e.virtualSize,y)+g,l&&i&&(o.effect==="slide"||o.effect==="coverflow")&&(r.style.width=`${e.virtualSize+b}px`),o.setWrapperSize&&(r.style[e.getDirectionLabel("width")]=`${e.virtualSize+b}px`),S&&e.grid.updateWrapperSize(x,f),!o.centeredSlides){const M=[];for(let V=0;V<f.length;V+=1){let k=f[V];o.roundLengths&&(k=Math.floor(k)),f[V]<=e.virtualSize-y&&M.push(k)}f=M,Math.floor(e.virtualSize-y)-Math.floor(f[f.length-1])>1&&f.push(e.virtualSize-y)}if(s&&o.loop){const M=m[0]+b;if(o.slidesPerGroup>1){const V=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/o.slidesPerGroup),k=M*o.slidesPerGroup;for(let C=0;C<V;C+=1)f.push(f[f.length-1]+k)}for(let V=0;V<e.virtual.slidesBefore+e.virtual.slidesAfter;V+=1)o.slidesPerGroup===1&&f.push(f[f.length-1]+M),h.push(h[h.length-1]+M),e.virtualSize+=M}if(f.length===0&&(f=[0]),b!==0){const M=e.isHorizontal()&&l?"marginLeft":e.getDirectionLabel("marginRight");u.filter((V,k)=>!o.cssMode||o.loop?!0:k!==u.length-1).forEach(V=>{V.style[M]=`${b}px`})}if(o.centeredSlides&&o.centeredSlidesBounds){let M=0;m.forEach(k=>{M+=k+(b||0)}),M-=b;const V=M>y?M-y:0;f=f.map(k=>k<=0?-p:k>V?V+g:k)}if(o.centerInsufficientSlides){let M=0;m.forEach(k=>{M+=k+(b||0)}),M-=b;const V=(p||0)+(g||0);if(M+V<y){const k=(y-M-V)/2;f.forEach((C,B)=>{f[B]=C-k}),h.forEach((C,B)=>{h[B]=C+k})}}if(Object.assign(e,{slides:u,snapGrid:f,slidesGrid:h,slidesSizesGrid:m}),o.centeredSlides&&o.cssMode&&!o.centeredSlidesBounds){$l(r,"--swiper-centered-offset-before",`${-f[0]}px`),$l(r,"--swiper-centered-offset-after",`${e.size/2-m[m.length-1]/2}px`);const M=-e.snapGrid[0],V=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(k=>k+M),e.slidesGrid=e.slidesGrid.map(k=>k+V)}if(d!==c&&e.emit("slidesLengthChange"),f.length!==_&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==v&&e.emit("slidesGridLengthChange"),o.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!s&&!o.cssMode&&(o.effect==="slide"||o.effect==="fade")){const M=`${o.containerModifierClass}backface-hidden`,V=e.el.classList.contains(M);d<=o.maxBackfaceHiddenSlides?V||e.el.classList.add(M):V&&e.el.classList.remove(M)}}function o9(e){const t=this,o=[],r=t.virtual&&t.params.virtual.enabled;let a=0,l;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const i=s=>r?t.slides[t.getSlideIndexByData(s)]:t.slides[s];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(s=>{o.push(s)});else for(l=0;l<Math.ceil(t.params.slidesPerView);l+=1){const s=t.activeIndex+l;if(s>t.slides.length&&!r)break;o.push(i(s))}else o.push(i(t.activeIndex));for(l=0;l<o.length;l+=1)if(typeof o[l]<"u"){const s=o[l].offsetHeight;a=s>a?s:a}(a||a===0)&&(t.wrapperEl.style.height=`${a}px`)}function r9(){const e=this,t=e.slides,o=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-o-e.cssOverflowAdjustment()}const dp=(e,t,o)=>{t&&!e.classList.contains(o)?e.classList.add(o):!t&&e.classList.contains(o)&&e.classList.remove(o)};function a9(e=this&&this.translate||0){const t=this,o=t.params,{slides:r,rtlTranslate:a,snapGrid:l}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let i=-e;a&&(i=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let s=o.spaceBetween;typeof s=="string"&&s.indexOf("%")>=0?s=parseFloat(s.replace("%",""))/100*t.size:typeof s=="string"&&(s=parseFloat(s));for(let c=0;c<r.length;c+=1){const u=r[c];let d=u.swiperSlideOffset;o.cssMode&&o.centeredSlides&&(d-=r[0].swiperSlideOffset);const f=(i+(o.centeredSlides?t.minTranslate():0)-d)/(u.swiperSlideSize+s),h=(i-l[0]+(o.centeredSlides?t.minTranslate():0)-d)/(u.swiperSlideSize+s),m=-(i-d),p=m+t.slidesSizesGrid[c],g=m>=0&&m<=t.size-t.slidesSizesGrid[c],_=m>=0&&m<t.size-1||p>1&&p<=t.size||m<=0&&p>=t.size;_&&(t.visibleSlides.push(u),t.visibleSlidesIndexes.push(c)),dp(u,_,o.slideVisibleClass),dp(u,g,o.slideFullyVisibleClass),u.progress=a?-f:f,u.originalProgress=a?-h:h}}function l9(e){const t=this;if(typeof e>"u"){const d=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*d||0}const o=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:a,isBeginning:l,isEnd:i,progressLoop:s}=t;const c=l,u=i;if(r===0)a=0,l=!0,i=!0;else{a=(e-t.minTranslate())/r;const d=Math.abs(e-t.minTranslate())<1,f=Math.abs(e-t.maxTranslate())<1;l=d||a<=0,i=f||a>=1,d&&(a=0),f&&(a=1)}if(o.loop){const d=t.getSlideIndexByData(0),f=t.getSlideIndexByData(t.slides.length-1),h=t.slidesGrid[d],m=t.slidesGrid[f],p=t.slidesGrid[t.slidesGrid.length-1],g=Math.abs(e);g>=h?s=(g-h)/p:s=(g+p-m)/p,s>1&&(s-=1)}Object.assign(t,{progress:a,progressLoop:s,isBeginning:l,isEnd:i}),(o.watchSlidesProgress||o.centeredSlides&&o.autoHeight)&&t.updateSlidesProgress(e),l&&!c&&t.emit("reachBeginning toEdge"),i&&!u&&t.emit("reachEnd toEdge"),(c&&!l||u&&!i)&&t.emit("fromEdge"),t.emit("progress",a)}const Xs=(e,t,o)=>{t&&!e.classList.contains(o)?e.classList.add(o):!t&&e.classList.contains(o)&&e.classList.remove(o)};function i9(){const e=this,{slides:t,params:o,slidesEl:r,activeIndex:a}=e,l=e.virtual&&o.virtual.enabled,i=e.grid&&o.grid&&o.grid.rows>1,s=f=>Kn(r,`.${o.slideClass}${f}, swiper-slide${f}`)[0];let c,u,d;if(l)if(o.loop){let f=a-e.virtual.slidesBefore;f<0&&(f=e.virtual.slides.length+f),f>=e.virtual.slides.length&&(f-=e.virtual.slides.length),c=s(`[data-swiper-slide-index="${f}"]`)}else c=s(`[data-swiper-slide-index="${a}"]`);else i?(c=t.find(f=>f.column===a),d=t.find(f=>f.column===a+1),u=t.find(f=>f.column===a-1)):c=t[a];c&&(i||(d=Rx(c,`.${o.slideClass}, swiper-slide`)[0],o.loop&&!d&&(d=t[0]),u=Ox(c,`.${o.slideClass}, swiper-slide`)[0],o.loop&&!u===0&&(u=t[t.length-1]))),t.forEach(f=>{Xs(f,f===c,o.slideActiveClass),Xs(f,f===d,o.slideNextClass),Xs(f,f===u,o.slidePrevClass)}),e.emitSlidesClasses()}const zl=(e,t)=>{if(!e||e.destroyed||!e.params)return;const o=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(o());if(r){let a=r.querySelector(`.${e.params.lazyPreloaderClass}`);!a&&e.isElement&&(r.shadowRoot?a=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{r.shadowRoot&&(a=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),a&&a.remove())})),a&&a.remove()}},Ks=(e,t)=>{if(!e.slides[t])return;const o=e.slides[t].querySelector('[loading="lazy"]');o&&o.removeAttribute("loading")},Xc=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const o=e.slides.length;if(!o||!t||t<0)return;t=Math.min(t,o);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),a=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const i=a,s=[i-t];s.push(...Array.from({length:t}).map((c,u)=>i+r+u)),e.slides.forEach((c,u)=>{s.includes(c.column)&&Ks(e,u)});return}const l=a+r-1;if(e.params.rewind||e.params.loop)for(let i=a-t;i<=l+t;i+=1){const s=(i%o+o)%o;(s<a||s>l)&&Ks(e,s)}else for(let i=Math.max(a-t,0);i<=Math.min(l+t,o-1);i+=1)i!==a&&(i>l||i<a)&&Ks(e,i)};function s9(e){const{slidesGrid:t,params:o}=e,r=e.rtlTranslate?e.translate:-e.translate;let a;for(let l=0;l<t.length;l+=1)typeof t[l+1]<"u"?r>=t[l]&&r<t[l+1]-(t[l+1]-t[l])/2?a=l:r>=t[l]&&r<t[l+1]&&(a=l+1):r>=t[l]&&(a=l);return o.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function c9(e){const t=this,o=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:a,activeIndex:l,realIndex:i,snapIndex:s}=t;let c=e,u;const d=m=>{let p=m-t.virtual.slidesBefore;return p<0&&(p=t.virtual.slides.length+p),p>=t.virtual.slides.length&&(p-=t.virtual.slides.length),p};if(typeof c>"u"&&(c=s9(t)),r.indexOf(o)>=0)u=r.indexOf(o);else{const m=Math.min(a.slidesPerGroupSkip,c);u=m+Math.floor((c-m)/a.slidesPerGroup)}if(u>=r.length&&(u=r.length-1),c===l&&!t.params.loop){u!==s&&(t.snapIndex=u,t.emit("snapIndexChange"));return}if(c===l&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=d(c);return}const f=t.grid&&a.grid&&a.grid.rows>1;let h;if(t.virtual&&a.virtual.enabled&&a.loop)h=d(c);else if(f){const m=t.slides.find(g=>g.column===c);let p=parseInt(m.getAttribute("data-swiper-slide-index"),10);Number.isNaN(p)&&(p=Math.max(t.slides.indexOf(m),0)),h=Math.floor(p/a.grid.rows)}else if(t.slides[c]){const m=t.slides[c].getAttribute("data-swiper-slide-index");m?h=parseInt(m,10):h=c}else h=c;Object.assign(t,{previousSnapIndex:s,snapIndex:u,previousRealIndex:i,realIndex:h,previousIndex:l,activeIndex:c}),t.initialized&&Xc(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(i!==h&&t.emit("realIndexChange"),t.emit("slideChange"))}function u9(e,t){const o=this,r=o.params;let a=e.closest(`.${r.slideClass}, swiper-slide`);!a&&o.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(s=>{!a&&s.matches&&s.matches(`.${r.slideClass}, swiper-slide`)&&(a=s)});let l=!1,i;if(a){for(let s=0;s<o.slides.length;s+=1)if(o.slides[s]===a){l=!0,i=s;break}}if(a&&l)o.clickedSlide=a,o.virtual&&o.params.virtual.enabled?o.clickedIndex=parseInt(a.getAttribute("data-swiper-slide-index"),10):o.clickedIndex=i;else{o.clickedSlide=void 0,o.clickedIndex=void 0;return}r.slideToClickedSlide&&o.clickedIndex!==void 0&&o.clickedIndex!==o.activeIndex&&o.slideToClickedSlide()}var d9={updateSize:t9,updateSlides:n9,updateAutoHeight:o9,updateSlidesOffset:r9,updateSlidesProgress:a9,updateProgress:l9,updateSlidesClasses:i9,updateActiveIndex:c9,updateClickedSlide:u9};function f9(e=this.isHorizontal()?"x":"y"){const t=this,{params:o,rtlTranslate:r,translate:a,wrapperEl:l}=t;if(o.virtualTranslate)return r?-a:a;if(o.cssMode)return a;let i=Vx(l,e);return i+=t.cssOverflowAdjustment(),r&&(i=-i),i||0}function p9(e,t){const o=this,{rtlTranslate:r,params:a,wrapperEl:l,progress:i}=o;let s=0,c=0;const u=0;o.isHorizontal()?s=r?-e:e:c=e,a.roundLengths&&(s=Math.floor(s),c=Math.floor(c)),o.previousTranslate=o.translate,o.translate=o.isHorizontal()?s:c,a.cssMode?l[o.isHorizontal()?"scrollLeft":"scrollTop"]=o.isHorizontal()?-s:-c:a.virtualTranslate||(o.isHorizontal()?s-=o.cssOverflowAdjustment():c-=o.cssOverflowAdjustment(),l.style.transform=`translate3d(${s}px, ${c}px, ${u}px)`);let d;const f=o.maxTranslate()-o.minTranslate();f===0?d=0:d=(e-o.minTranslate())/f,d!==i&&o.updateProgress(e),o.emit("setTranslate",o.translate,t)}function m9(){return-this.snapGrid[0]}function h9(){return-this.snapGrid[this.snapGrid.length-1]}function g9(e=0,t=this.params.speed,o=!0,r=!0,a){const l=this,{params:i,wrapperEl:s}=l;if(l.animating&&i.preventInteractionOnTransition)return!1;const c=l.minTranslate(),u=l.maxTranslate();let d;if(r&&e>c?d=c:r&&e<u?d=u:d=e,l.updateProgress(d),i.cssMode){const f=l.isHorizontal();if(t===0)s[f?"scrollLeft":"scrollTop"]=-d;else{if(!l.support.smoothScroll)return ov({swiper:l,targetPosition:-d,side:f?"left":"top"}),!0;s.scrollTo({[f?"left":"top"]:-d,behavior:"smooth"})}return!0}return t===0?(l.setTransition(0),l.setTranslate(d),o&&(l.emit("beforeTransitionStart",t,a),l.emit("transitionEnd"))):(l.setTransition(t),l.setTranslate(d),o&&(l.emit("beforeTransitionStart",t,a),l.emit("transitionStart")),l.animating||(l.animating=!0,l.onTranslateToWrapperTransitionEnd||(l.onTranslateToWrapperTransitionEnd=function(h){!l||l.destroyed||h.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onTranslateToWrapperTransitionEnd),l.onTranslateToWrapperTransitionEnd=null,delete l.onTranslateToWrapperTransitionEnd,l.animating=!1,o&&l.emit("transitionEnd"))}),l.wrapperEl.addEventListener("transitionend",l.onTranslateToWrapperTransitionEnd))),!0}var v9={getTranslate:f9,setTranslate:p9,minTranslate:m9,maxTranslate:h9,translateTo:g9};function y9(e,t){const o=this;o.params.cssMode||(o.wrapperEl.style.transitionDuration=`${e}ms`,o.wrapperEl.style.transitionDelay=e===0?"0ms":""),o.emit("setTransition",e,t)}function cv({swiper:e,runCallbacks:t,direction:o,step:r}){const{activeIndex:a,previousIndex:l}=e;let i=o;i||(a>l?i="next":a<l?i="prev":i="reset"),e.emit(`transition${r}`),t&&i==="reset"?e.emit(`slideResetTransition${r}`):t&&a!==l&&(e.emit(`slideChangeTransition${r}`),i==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`))}function _9(e=!0,t){const o=this,{params:r}=o;r.cssMode||(r.autoHeight&&o.updateAutoHeight(),cv({swiper:o,runCallbacks:e,direction:t,step:"Start"}))}function b9(e=!0,t){const o=this,{params:r}=o;o.animating=!1,!r.cssMode&&(o.setTransition(0),cv({swiper:o,runCallbacks:e,direction:t,step:"End"}))}var w9={setTransition:y9,transitionStart:_9,transitionEnd:b9};function $9(e=0,t,o=!0,r,a){typeof e=="string"&&(e=parseInt(e,10));const l=this;let i=e;i<0&&(i=0);const{params:s,snapGrid:c,slidesGrid:u,previousIndex:d,activeIndex:f,rtlTranslate:h,wrapperEl:m,enabled:p}=l;if(!p&&!r&&!a||l.destroyed||l.animating&&s.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=l.params.speed);const g=Math.min(l.params.slidesPerGroupSkip,i);let _=g+Math.floor((i-g)/l.params.slidesPerGroup);_>=c.length&&(_=c.length-1);const v=-c[_];if(s.normalizeSlideIndex)for(let S=0;S<u.length;S+=1){const x=-Math.floor(v*100),N=Math.floor(u[S]*100),M=Math.floor(u[S+1]*100);typeof u[S+1]<"u"?x>=N&&x<M-(M-N)/2?i=S:x>=N&&x<M&&(i=S+1):x>=N&&(i=S)}if(l.initialized&&i!==f&&(!l.allowSlideNext&&(h?v>l.translate&&v>l.minTranslate():v<l.translate&&v<l.minTranslate())||!l.allowSlidePrev&&v>l.translate&&v>l.maxTranslate()&&(f||0)!==i))return!1;i!==(d||0)&&o&&l.emit("beforeSlideChangeStart"),l.updateProgress(v);let y;i>f?y="next":i<f?y="prev":y="reset";const b=l.virtual&&l.params.virtual.enabled;if(!(b&&a)&&(h&&-v===l.translate||!h&&v===l.translate))return l.updateActiveIndex(i),s.autoHeight&&l.updateAutoHeight(),l.updateSlidesClasses(),s.effect!=="slide"&&l.setTranslate(v),y!=="reset"&&(l.transitionStart(o,y),l.transitionEnd(o,y)),!1;if(s.cssMode){const S=l.isHorizontal(),x=h?v:-v;if(t===0)b&&(l.wrapperEl.style.scrollSnapType="none",l._immediateVirtual=!0),b&&!l._cssModeVirtualInitialSet&&l.params.initialSlide>0?(l._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[S?"scrollLeft":"scrollTop"]=x})):m[S?"scrollLeft":"scrollTop"]=x,b&&requestAnimationFrame(()=>{l.wrapperEl.style.scrollSnapType="",l._immediateVirtual=!1});else{if(!l.support.smoothScroll)return ov({swiper:l,targetPosition:x,side:S?"left":"top"}),!0;m.scrollTo({[S?"left":"top"]:x,behavior:"smooth"})}return!0}const E=sv().isSafari;return b&&!a&&E&&l.isElement&&l.virtual.update(!1,!1,i),l.setTransition(t),l.setTranslate(v),l.updateActiveIndex(i),l.updateSlidesClasses(),l.emit("beforeTransitionStart",t,r),l.transitionStart(o,y),t===0?l.transitionEnd(o,y):l.animating||(l.animating=!0,l.onSlideToWrapperTransitionEnd||(l.onSlideToWrapperTransitionEnd=function(x){!l||l.destroyed||x.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onSlideToWrapperTransitionEnd),l.onSlideToWrapperTransitionEnd=null,delete l.onSlideToWrapperTransitionEnd,l.transitionEnd(o,y))}),l.wrapperEl.addEventListener("transitionend",l.onSlideToWrapperTransitionEnd)),!0}function k9(e=0,t,o=!0,r){typeof e=="string"&&(e=parseInt(e,10));const a=this;if(a.destroyed)return;typeof t>"u"&&(t=a.params.speed);const l=a.grid&&a.params.grid&&a.params.grid.rows>1;let i=e;if(a.params.loop)if(a.virtual&&a.params.virtual.enabled)i=i+a.virtual.slidesBefore;else{let s;if(l){const g=i*a.params.grid.rows;s=a.slides.find(_=>_.getAttribute("data-swiper-slide-index")*1===g).column}else s=a.getSlideIndexByData(i);const c=l?Math.ceil(a.slides.length/a.params.grid.rows):a.slides.length,{centeredSlides:u,slidesOffsetBefore:d,slidesOffsetAfter:f}=a.params,h=u||!!d||!!f;let m=a.params.slidesPerView;m==="auto"?m=a.slidesPerViewDynamic():(m=Math.ceil(parseFloat(a.params.slidesPerView,10)),h&&m%2===0&&(m=m+1));let p=c-s<m;if(h&&(p=p||s<Math.ceil(m/2)),r&&h&&a.params.slidesPerView!=="auto"&&!l&&(p=!1),p){const g=h?s<a.activeIndex?"prev":"next":s-a.activeIndex-1<a.params.slidesPerView?"next":"prev";a.loopFix({direction:g,slideTo:!0,activeSlideIndex:g==="next"?s+1:s-c+1,slideRealIndex:g==="next"?a.realIndex:void 0})}if(l){const g=i*a.params.grid.rows;i=a.slides.find(_=>_.getAttribute("data-swiper-slide-index")*1===g).column}else i=a.getSlideIndexByData(i)}return requestAnimationFrame(()=>{a.slideTo(i,t,o,r)}),a}function E9(e,t=!0,o){const r=this,{enabled:a,params:l,animating:i}=r;if(!a||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);let s=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(s=Math.max(r.slidesPerViewDynamic("current",!0),1));const c=r.activeIndex<l.slidesPerGroupSkip?1:s,u=r.virtual&&l.virtual.enabled;if(l.loop){if(i&&!u&&l.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&l.cssMode)return requestAnimationFrame(()=>{r.slideTo(r.activeIndex+c,e,t,o)}),!0}return l.rewind&&r.isEnd?r.slideTo(0,e,t,o):r.slideTo(r.activeIndex+c,e,t,o)}function C9(e,t=!0,o){const r=this,{params:a,snapGrid:l,slidesGrid:i,rtlTranslate:s,enabled:c,animating:u}=r;if(!c||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);const d=r.virtual&&a.virtual.enabled;if(a.loop){if(u&&!d&&a.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const f=s?r.translate:-r.translate;function h(y){return y<0?-Math.floor(Math.abs(y)):Math.floor(y)}const m=h(f),p=l.map(y=>h(y)),g=a.freeMode&&a.freeMode.enabled;let _=l[p.indexOf(m)-1];if(typeof _>"u"&&(a.cssMode||g)){let y;l.forEach((b,$)=>{m>=b&&(y=$)}),typeof y<"u"&&(_=g?l[y]:l[y>0?y-1:y])}let v=0;if(typeof _<"u"&&(v=i.indexOf(_),v<0&&(v=r.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(v=v-r.slidesPerViewDynamic("previous",!0)+1,v=Math.max(v,0))),a.rewind&&r.isBeginning){const y=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(y,e,t,o)}else if(a.loop&&r.activeIndex===0&&a.cssMode)return requestAnimationFrame(()=>{r.slideTo(v,e,t,o)}),!0;return r.slideTo(v,e,t,o)}function S9(e,t=!0,o){const r=this;if(!r.destroyed)return typeof e>"u"&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,o)}function T9(e,t=!0,o,r=.5){const a=this;if(a.destroyed)return;typeof e>"u"&&(e=a.params.speed);let l=a.activeIndex;const i=Math.min(a.params.slidesPerGroupSkip,l),s=i+Math.floor((l-i)/a.params.slidesPerGroup),c=a.rtlTranslate?a.translate:-a.translate;if(c>=a.snapGrid[s]){const u=a.snapGrid[s],d=a.snapGrid[s+1];c-u>(d-u)*r&&(l+=a.params.slidesPerGroup)}else{const u=a.snapGrid[s-1],d=a.snapGrid[s];c-u<=(d-u)*r&&(l-=a.params.slidesPerGroup)}return l=Math.max(l,0),l=Math.min(l,a.slidesGrid.length-1),a.slideTo(l,e,t,o)}function N9(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:o}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let a=e.getSlideIndexWhenGrid(e.clickedIndex),l;const i=e.isElement?"swiper-slide":`.${t.slideClass}`,s=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;l=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(l):a>(s?(e.slides.length-r)/2-(e.params.grid.rows-1):e.slides.length-r)?(e.loopFix(),a=e.getSlideIndex(Kn(o,`${i}[data-swiper-slide-index="${l}"]`)[0]),nv(()=>{e.slideTo(a)})):e.slideTo(a)}else e.slideTo(a)}var D9={slideTo:$9,slideToLoop:k9,slideNext:E9,slidePrev:C9,slideReset:S9,slideToClosest:T9,slideToClickedSlide:N9};function x9(e,t){const o=this,{params:r,slidesEl:a}=o;if(!r.loop||o.virtual&&o.params.virtual.enabled)return;const l=()=>{Kn(a,`.${r.slideClass}, swiper-slide`).forEach((p,g)=>{p.setAttribute("data-swiper-slide-index",g)})},i=()=>{const m=Kn(a,`.${r.slideBlankClass}`);m.forEach(p=>{p.remove()}),m.length>0&&(o.recalcSlides(),o.updateSlides())},s=o.grid&&r.grid&&r.grid.rows>1;r.loopAddBlankSlides&&(r.slidesPerGroup>1||s)&&i();const c=r.slidesPerGroup*(s?r.grid.rows:1),u=o.slides.length%c!==0,d=s&&o.slides.length%r.grid.rows!==0,f=m=>{for(let p=0;p<m;p+=1){const g=o.isElement?ho("swiper-slide",[r.slideBlankClass]):ho("div",[r.slideClass,r.slideBlankClass]);o.slidesEl.append(g)}};if(u){if(r.loopAddBlankSlides){const m=c-o.slides.length%c;f(m),o.recalcSlides(),o.updateSlides()}else fi("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");l()}else if(d){if(r.loopAddBlankSlides){const m=r.grid.rows-o.slides.length%r.grid.rows;f(m),o.recalcSlides(),o.updateSlides()}else fi("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");l()}else l();const h=r.centeredSlides||!!r.slidesOffsetBefore||!!r.slidesOffsetAfter;o.loopFix({slideRealIndex:e,direction:h?void 0:"next",initial:t})}function B9({slideRealIndex:e,slideTo:t=!0,direction:o,setTranslate:r,activeSlideIndex:a,initial:l,byController:i,byMousewheel:s}={}){const c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");const{slides:u,allowSlidePrev:d,allowSlideNext:f,slidesEl:h,params:m}=c,{centeredSlides:p,slidesOffsetBefore:g,slidesOffsetAfter:_,initialSlide:v}=m,y=p||!!g||!!_;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&m.virtual.enabled){t&&(!y&&c.snapIndex===0?c.slideTo(c.virtual.slides.length,0,!1,!0):y&&c.snapIndex<m.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0)),c.allowSlidePrev=d,c.allowSlideNext=f,c.emit("loopFix");return}let b=m.slidesPerView;b==="auto"?b=c.slidesPerViewDynamic():(b=Math.ceil(parseFloat(m.slidesPerView,10)),y&&b%2===0&&(b=b+1));const $=m.slidesPerGroupAuto?b:m.slidesPerGroup;let w=y?Math.max($,Math.ceil(b/2)):$;w%$!==0&&(w+=$-w%$),w+=m.loopAdditionalSlides,c.loopedSlides=w;const E=c.grid&&m.grid&&m.grid.rows>1;u.length<b+w||c.params.effect==="cards"&&u.length<b+w*2?fi("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):E&&m.grid.fill==="row"&&fi("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const S=[],x=[],N=E?Math.ceil(u.length/m.grid.rows):u.length,M=l&&N-v<b&&!y;let V=M?v:c.activeIndex;typeof a>"u"?a=c.getSlideIndex(u.find(P=>P.classList.contains(m.slideActiveClass))):V=a;const k=o==="next"||!o,C=o==="prev"||!o;let B=0,A=0;const I=(E?u[a].column:a)+(y&&typeof r>"u"?-b/2+.5:0);if(I<w){B=Math.max(w-I,$);for(let P=0;P<w-I;P+=1){const oe=P-Math.floor(P/N)*N;if(E){const Z=N-oe-1;for(let U=u.length-1;U>=0;U-=1)u[U].column===Z&&S.push(U)}else S.push(N-oe-1)}}else if(I+b>N-w){A=Math.max(I-(N-w*2),$),M&&(A=Math.max(A,b-N+v+1));for(let P=0;P<A;P+=1){const oe=P-Math.floor(P/N)*N;E?u.forEach((Z,U)=>{Z.column===oe&&x.push(U)}):x.push(oe)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),c.params.effect==="cards"&&u.length<b+w*2&&(x.includes(a)&&x.splice(x.indexOf(a),1),S.includes(a)&&S.splice(S.indexOf(a),1)),C&&S.forEach(P=>{u[P].swiperLoopMoveDOM=!0,h.prepend(u[P]),u[P].swiperLoopMoveDOM=!1}),k&&x.forEach(P=>{u[P].swiperLoopMoveDOM=!0,h.append(u[P]),u[P].swiperLoopMoveDOM=!1}),c.recalcSlides(),m.slidesPerView==="auto"?c.updateSlides():E&&(S.length>0&&C||x.length>0&&k)&&c.slides.forEach((P,oe)=>{c.grid.updateSlide(oe,P,c.slides)}),m.watchSlidesProgress&&c.updateSlidesOffset(),t){if(S.length>0&&C){if(typeof e>"u"){const P=c.slidesGrid[V],Z=c.slidesGrid[V+B]-P;s?c.setTranslate(c.translate-Z):(c.slideTo(V+Math.ceil(B),0,!1,!0),r&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-Z,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-Z))}else if(r){const P=E?S.length/m.grid.rows:S.length;c.slideTo(c.activeIndex+P,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(x.length>0&&k)if(typeof e>"u"){const P=c.slidesGrid[V],Z=c.slidesGrid[V-A]-P;s?c.setTranslate(c.translate-Z):(c.slideTo(V-A,0,!1,!0),r&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-Z,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-Z))}else{const P=E?x.length/m.grid.rows:x.length;c.slideTo(c.activeIndex-P,0,!1,!0)}}if(c.allowSlidePrev=d,c.allowSlideNext=f,c.controller&&c.controller.control&&!i){const P={slideRealIndex:e,direction:o,setTranslate:r,activeSlideIndex:a,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(oe=>{!oe.destroyed&&oe.params.loop&&oe.loopFix({...P,slideTo:oe.params.slidesPerView===m.slidesPerView?t:!1})}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...P,slideTo:c.controller.control.params.slidesPerView===m.slidesPerView?t:!1})}c.emit("loopFix")}function A9(){const e=this,{params:t,slidesEl:o}=e;if(!t.loop||!o||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(a=>{const l=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;r[l]=a}),e.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),r.forEach(a=>{o.append(a)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var M9={loopCreate:x9,loopFix:B9,loopDestroy:A9};function V9(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const o=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),o.style.cursor="move",o.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function L9(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var P9={setGrabCursor:V9,unsetGrabCursor:L9};function I9(e,t=this){function o(r){if(!r||r===Qn()||r===Yt())return null;r.assignedSlot&&(r=r.assignedSlot);const a=r.closest(e);return!a&&!r.getRootNode?null:a||o(r.getRootNode().host)}return o(t)}function fp(e,t,o){const r=Yt(),{params:a}=e,l=a.edgeSwipeDetection,i=a.edgeSwipeThreshold;return l&&(o<=i||o>=r.innerWidth-i)?l==="prevent"?(t.preventDefault(),!0):!1:!0}function O9(e){const t=this,o=Qn();let r=e;r.originalEvent&&(r=r.originalEvent);const a=t.touchEventsData;if(r.type==="pointerdown"){if(a.pointerId!==null&&a.pointerId!==r.pointerId)return;a.pointerId=r.pointerId}else r.type==="touchstart"&&r.targetTouches.length===1&&(a.touchId=r.targetTouches[0].identifier);if(r.type==="touchstart"){fp(t,r,r.targetTouches[0].pageX);return}const{params:l,touches:i,enabled:s}=t;if(!s||!l.simulateTouch&&r.pointerType==="mouse"||t.animating&&l.preventInteractionOnTransition)return;!t.animating&&l.cssMode&&l.loop&&t.loopFix();let c=r.target;if(l.touchEventsTarget==="wrapper"&&!Ix(c,t.wrapperEl)||"which"in r&&r.which===3||"button"in r&&r.button>0||a.isTouched&&a.isMoved)return;const u=!!l.noSwipingClass&&l.noSwipingClass!=="",d=r.composedPath?r.composedPath():r.path;u&&r.target&&r.target.shadowRoot&&d&&(c=d[0]);const f=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,h=!!(r.target&&r.target.shadowRoot);if(l.noSwiping&&(h?I9(f,c):c.closest(f))){t.allowClick=!0;return}if(l.swipeHandler&&!c.closest(l.swipeHandler))return;i.currentX=r.pageX,i.currentY=r.pageY;const m=i.currentX,p=i.currentY;if(!fp(t,r,m))return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=m,i.startY=p,a.touchStartTime=di(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,l.threshold>0&&(a.allowThresholdMove=!1);let g=!0;c.matches(a.focusableElements)&&(g=!1,c.nodeName==="SELECT"&&(a.isTouched=!1)),o.activeElement&&o.activeElement.matches(a.focusableElements)&&o.activeElement!==c&&(r.pointerType==="mouse"||r.pointerType!=="mouse"&&!c.matches(a.focusableElements))&&o.activeElement.blur();const _=g&&t.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||_)&&!c.isContentEditable&&r.preventDefault(),l.freeMode&&l.freeMode.enabled&&t.freeMode&&t.animating&&!l.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function R9(e){const t=Qn(),o=this,r=o.touchEventsData,{params:a,touches:l,rtlTranslate:i,enabled:s}=o;if(!s||!a.simulateTouch&&e.pointerType==="mouse")return;let c=e;if(c.originalEvent&&(c=c.originalEvent),c.type==="pointermove"&&(r.touchId!==null||c.pointerId!==r.pointerId))return;let u;if(c.type==="touchmove"){if(u=[...c.changedTouches].find(w=>w.identifier===r.touchId),!u||u.identifier!==r.touchId)return}else u=c;if(!r.isTouched){r.startMoving&&r.isScrolling&&o.emit("touchMoveOpposite",c);return}const d=u.pageX,f=u.pageY;if(c.preventedByNestedSwiper){l.startX=d,l.startY=f;return}if(!o.allowTouchMove){c.target.matches(r.focusableElements)||(o.allowClick=!1),r.isTouched&&(Object.assign(l,{startX:d,startY:f,currentX:d,currentY:f}),r.touchStartTime=di());return}if(a.touchReleaseOnEdges&&!a.loop)if(o.isVertical()){if(f<l.startY&&o.translate<=o.maxTranslate()||f>l.startY&&o.translate>=o.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else{if(i&&(d>l.startX&&-o.translate<=o.maxTranslate()||d<l.startX&&-o.translate>=o.minTranslate()))return;if(!i&&(d<l.startX&&o.translate<=o.maxTranslate()||d>l.startX&&o.translate>=o.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==c.target&&c.pointerType!=="mouse"&&t.activeElement.blur(),t.activeElement&&c.target===t.activeElement&&c.target.matches(r.focusableElements)){r.isMoved=!0,o.allowClick=!1;return}r.allowTouchCallbacks&&o.emit("touchMove",c),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=d,l.currentY=f;const h=l.currentX-l.startX,m=l.currentY-l.startY;if(o.params.threshold&&Math.sqrt(h**2+m**2)<o.params.threshold)return;if(typeof r.isScrolling>"u"){let w;o.isHorizontal()&&l.currentY===l.startY||o.isVertical()&&l.currentX===l.startX?r.isScrolling=!1:h*h+m*m>=25&&(w=Math.atan2(Math.abs(m),Math.abs(h))*180/Math.PI,r.isScrolling=o.isHorizontal()?w>a.touchAngle:90-w>a.touchAngle)}if(r.isScrolling&&o.emit("touchMoveOpposite",c),typeof r.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.startY)&&(r.startMoving=!0),r.isScrolling||c.type==="touchmove"&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;o.allowClick=!1,!a.cssMode&&c.cancelable&&c.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&c.stopPropagation();let p=o.isHorizontal()?h:m,g=o.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;a.oneWayMovement&&(p=Math.abs(p)*(i?1:-1),g=Math.abs(g)*(i?1:-1)),l.diff=p,p*=a.touchRatio,i&&(p=-p,g=-g);const _=o.touchesDirection;o.swipeDirection=p>0?"prev":"next",o.touchesDirection=g>0?"prev":"next";const v=o.params.loop&&!a.cssMode,y=o.touchesDirection==="next"&&o.allowSlideNext||o.touchesDirection==="prev"&&o.allowSlidePrev;if(!r.isMoved){if(v&&y&&o.loopFix({direction:o.swipeDirection}),r.startTranslate=o.getTranslate(),o.setTransition(0),o.animating){const w=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});o.wrapperEl.dispatchEvent(w)}r.allowMomentumBounce=!1,a.grabCursor&&(o.allowSlideNext===!0||o.allowSlidePrev===!0)&&o.setGrabCursor(!0),o.emit("sliderFirstMove",c)}if(new Date().getTime(),a._loopSwapReset!==!1&&r.isMoved&&r.allowThresholdMove&&_!==o.touchesDirection&&v&&y&&Math.abs(p)>=1){Object.assign(l,{startX:d,startY:f,currentX:d,currentY:f,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}o.emit("sliderMove",c),r.isMoved=!0,r.currentTranslate=p+r.startTranslate;let b=!0,$=a.resistanceRatio;if(a.touchReleaseOnEdges&&($=0),p>0?(v&&y&&r.allowThresholdMove&&r.currentTranslate>(a.centeredSlides?o.minTranslate()-o.slidesSizesGrid[o.activeIndex+1]-(a.slidesPerView!=="auto"&&o.slides.length-a.slidesPerView>=2?o.slidesSizesGrid[o.activeIndex+1]+o.params.spaceBetween:0)-o.params.spaceBetween:o.minTranslate())&&o.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>o.minTranslate()&&(b=!1,a.resistance&&(r.currentTranslate=o.minTranslate()-1+(-o.minTranslate()+r.startTranslate+p)**$))):p<0&&(v&&y&&r.allowThresholdMove&&r.currentTranslate<(a.centeredSlides?o.maxTranslate()+o.slidesSizesGrid[o.slidesSizesGrid.length-1]+o.params.spaceBetween+(a.slidesPerView!=="auto"&&o.slides.length-a.slidesPerView>=2?o.slidesSizesGrid[o.slidesSizesGrid.length-1]+o.params.spaceBetween:0):o.maxTranslate())&&o.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:o.slides.length-(a.slidesPerView==="auto"?o.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),r.currentTranslate<o.maxTranslate()&&(b=!1,a.resistance&&(r.currentTranslate=o.maxTranslate()+1-(o.maxTranslate()-r.startTranslate-p)**$))),b&&(c.preventedByNestedSwiper=!0),!o.allowSlideNext&&o.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!o.allowSlidePrev&&o.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!o.allowSlidePrev&&!o.allowSlideNext&&(r.currentTranslate=r.startTranslate),a.threshold>0)if(Math.abs(p)>a.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,l.startX=l.currentX,l.startY=l.currentY,r.currentTranslate=r.startTranslate,l.diff=o.isHorizontal()?l.currentX-l.startX:l.currentY-l.startY;return}}else{r.currentTranslate=r.startTranslate;return}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&o.freeMode||a.watchSlidesProgress)&&(o.updateActiveIndex(),o.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&o.freeMode&&o.freeMode.onTouchMove(),o.updateProgress(r.currentTranslate),o.setTranslate(r.currentTranslate))}function F9(e){const t=this,o=t.touchEventsData;let r=e;r.originalEvent&&(r=r.originalEvent);let a;if(r.type==="touchend"||r.type==="touchcancel"){if(a=[...r.changedTouches].find(w=>w.identifier===o.touchId),!a||a.identifier!==o.touchId)return}else{if(o.touchId!==null||r.pointerId!==o.pointerId)return;a=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&!(["pointercancel","contextmenu"].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return;o.pointerId=null,o.touchId=null;const{params:i,touches:s,rtlTranslate:c,slidesGrid:u,enabled:d}=t;if(!d||!i.simulateTouch&&r.pointerType==="mouse")return;if(o.allowTouchCallbacks&&t.emit("touchEnd",r),o.allowTouchCallbacks=!1,!o.isTouched){o.isMoved&&i.grabCursor&&t.setGrabCursor(!1),o.isMoved=!1,o.startMoving=!1;return}i.grabCursor&&o.isMoved&&o.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const f=di(),h=f-o.touchStartTime;if(t.allowClick){const w=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(w&&w[0]||r.target,w),t.emit("tap click",r),h<300&&f-o.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(o.lastClickTime=di(),nv(()=>{t.destroyed||(t.allowClick=!0)}),!o.isTouched||!o.isMoved||!t.swipeDirection||s.diff===0&&!o.loopSwapReset||o.currentTranslate===o.startTranslate&&!o.loopSwapReset){o.isTouched=!1,o.isMoved=!1,o.startMoving=!1;return}o.isTouched=!1,o.isMoved=!1,o.startMoving=!1;let m;if(i.followFinger?m=c?t.translate:-t.translate:m=-o.currentTranslate,i.cssMode)return;if(i.freeMode&&i.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:m});return}const p=m>=-t.maxTranslate()&&!t.params.loop;let g=0,_=t.slidesSizesGrid[0];for(let w=0;w<u.length;w+=w<i.slidesPerGroupSkip?1:i.slidesPerGroup){const E=w<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;typeof u[w+E]<"u"?(p||m>=u[w]&&m<u[w+E])&&(g=w,_=u[w+E]-u[w]):(p||m>=u[w])&&(g=w,_=u[u.length-1]-u[u.length-2])}let v=null,y=null;i.rewind&&(t.isBeginning?y=i.virtual&&i.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(v=0));const b=(m-u[g])/_,$=g<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(h>i.longSwipesMs){if(!i.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(b>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?v:g+$):t.slideTo(g)),t.swipeDirection==="prev"&&(b>1-i.longSwipesRatio?t.slideTo(g+$):y!==null&&b<0&&Math.abs(b)>i.longSwipesRatio?t.slideTo(y):t.slideTo(g))}else{if(!i.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(g+$):t.slideTo(g):(t.swipeDirection==="next"&&t.slideTo(v!==null?v:g+$),t.swipeDirection==="prev"&&t.slideTo(y!==null?y:g))}}function pp(){const e=this,{params:t,el:o}=e;if(o&&o.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:a,snapGrid:l}=e,i=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const s=i&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!s?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!i?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=a,e.allowSlideNext=r,e.params.watchOverflow&&l!==e.snapGrid&&e.checkOverflow()}function z9(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function U9(){const e=this,{wrapperEl:t,rtlTranslate:o,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let a;const l=e.maxTranslate()-e.minTranslate();l===0?a=0:a=(e.translate-e.minTranslate())/l,a!==e.progress&&e.updateProgress(o?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function H9(e){const t=this;zl(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function j9(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const uv=(e,t)=>{const o=Qn(),{params:r,el:a,wrapperEl:l,device:i}=e,s=!!r.nested,c=t==="on"?"addEventListener":"removeEventListener",u=t;!a||typeof a=="string"||(o[c]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:s}),a[c]("touchstart",e.onTouchStart,{passive:!1}),a[c]("pointerdown",e.onTouchStart,{passive:!1}),o[c]("touchmove",e.onTouchMove,{passive:!1,capture:s}),o[c]("pointermove",e.onTouchMove,{passive:!1,capture:s}),o[c]("touchend",e.onTouchEnd,{passive:!0}),o[c]("pointerup",e.onTouchEnd,{passive:!0}),o[c]("pointercancel",e.onTouchEnd,{passive:!0}),o[c]("touchcancel",e.onTouchEnd,{passive:!0}),o[c]("pointerout",e.onTouchEnd,{passive:!0}),o[c]("pointerleave",e.onTouchEnd,{passive:!0}),o[c]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&a[c]("click",e.onClick,!0),r.cssMode&&l[c]("scroll",e.onScroll),r.updateOnWindowResize?e[u](i.ios||i.android?"resize orientationchange observerUpdate":"resize observerUpdate",pp,!0):e[u]("observerUpdate",pp,!0),a[c]("load",e.onLoad,{capture:!0}))};function W9(){const e=this,{params:t}=e;e.onTouchStart=O9.bind(e),e.onTouchMove=R9.bind(e),e.onTouchEnd=F9.bind(e),e.onDocumentTouchStart=j9.bind(e),t.cssMode&&(e.onScroll=U9.bind(e)),e.onClick=z9.bind(e),e.onLoad=H9.bind(e),uv(e,"on")}function q9(){uv(this,"off")}var G9={attachEvents:W9,detachEvents:q9};const mp=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function Y9(){const e=this,{realIndex:t,initialized:o,params:r,el:a}=e,l=r.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const i=Qn(),s=r.breakpointsBase==="window"||!r.breakpointsBase?r.breakpointsBase:"container",c=["window","container"].includes(r.breakpointsBase)||!r.breakpointsBase?e.el:i.querySelector(r.breakpointsBase),u=e.getBreakpoint(l,s,c);if(!u||e.currentBreakpoint===u)return;const f=(u in l?l[u]:void 0)||e.originalParams,h=mp(e,r),m=mp(e,f),p=e.params.grabCursor,g=f.grabCursor,_=r.enabled;h&&!m?(a.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!h&&m&&(a.classList.add(`${r.containerModifierClass}grid`),(f.grid.fill&&f.grid.fill==="column"||!f.grid.fill&&r.grid.fill==="column")&&a.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),p&&!g?e.unsetGrabCursor():!p&&g&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(E=>{if(typeof f[E]>"u")return;const S=r[E]&&r[E].enabled,x=f[E]&&f[E].enabled;S&&!x&&e[E].disable(),!S&&x&&e[E].enable()});const v=f.direction&&f.direction!==r.direction,y=r.loop&&(f.slidesPerView!==r.slidesPerView||v),b=r.loop;v&&o&&e.changeDirection(),dn(e.params,f);const $=e.params.enabled,w=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),_&&!$?e.disable():!_&&$&&e.enable(),e.currentBreakpoint=u,e.emit("_beforeBreakpoint",f),o&&(y?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!b&&w?(e.loopCreate(t),e.updateSlides()):b&&!w&&e.loopDestroy()),e.emit("breakpoint",f)}function X9(e,t="window",o){if(!e||t==="container"&&!o)return;let r=!1;const a=Yt(),l=t==="window"?a.innerHeight:o.clientHeight,i=Object.keys(e).map(s=>{if(typeof s=="string"&&s.indexOf("@")===0){const c=parseFloat(s.substr(1));return{value:l*c,point:s}}return{value:s,point:s}});i.sort((s,c)=>parseInt(s.value,10)-parseInt(c.value,10));for(let s=0;s<i.length;s+=1){const{point:c,value:u}=i[s];t==="window"?a.matchMedia(`(min-width: ${u}px)`).matches&&(r=c):u<=o.clientWidth&&(r=c)}return r||"max"}var K9={setBreakpoint:Y9,getBreakpoint:X9};function J9(e,t){const o=[];return e.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(a=>{r[a]&&o.push(t+a)}):typeof r=="string"&&o.push(t+r)}),o}function Z9(){const e=this,{classNames:t,params:o,rtl:r,el:a,device:l}=e,i=J9(["initialized",o.direction,{"free-mode":e.params.freeMode&&o.freeMode.enabled},{autoheight:o.autoHeight},{rtl:r},{grid:o.grid&&o.grid.rows>1},{"grid-column":o.grid&&o.grid.rows>1&&o.grid.fill==="column"},{android:l.android},{ios:l.ios},{"css-mode":o.cssMode},{centered:o.cssMode&&o.centeredSlides},{"watch-progress":o.watchSlidesProgress}],o.containerModifierClass);t.push(...i),a.classList.add(...t),e.emitContainerClasses()}function Q9(){const e=this,{el:t,classNames:o}=e;!t||typeof t=="string"||(t.classList.remove(...o),e.emitContainerClasses())}var e6={addClasses:Z9,removeClasses:Q9};function t6(){const e=this,{isLocked:t,params:o}=e,{slidesOffsetBefore:r}=o;if(r){const a=e.slides.length-1,l=e.slidesGrid[a]+e.slidesSizesGrid[a]+r*2;e.isLocked=e.size>l}else e.isLocked=e.snapGrid.length===1;o.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),o.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var n6={checkOverflow:t6},Kc={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function o6(e,t){return function(r={}){const a=Object.keys(r)[0],l=r[a];if(typeof l!="object"||l===null){dn(t,r);return}if(e[a]===!0&&(e[a]={enabled:!0}),a==="navigation"&&e[a]&&e[a].enabled&&!e[a].prevEl&&!e[a].nextEl&&(e[a].auto=!0),["pagination","scrollbar"].indexOf(a)>=0&&e[a]&&e[a].enabled&&!e[a].el&&(e[a].auto=!0),!(a in e&&"enabled"in l)){dn(t,r);return}typeof e[a]=="object"&&!("enabled"in e[a])&&(e[a].enabled=!0),e[a]||(e[a]={enabled:!1}),dn(t,r)}}const Js={eventsEmitter:e9,update:d9,translate:v9,transition:w9,slide:D9,loop:M9,grabCursor:P9,events:G9,breakpoints:K9,checkOverflow:n6,classes:e6},Zs={};let od=class co{constructor(...t){let o,r;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?r=t[0]:[o,r]=t,r||(r={}),r=dn({},r),o&&!r.el&&(r.el=o);const a=Qn();if(r.el&&typeof r.el=="string"&&a.querySelectorAll(r.el).length>1){const c=[];return a.querySelectorAll(r.el).forEach(u=>{const d=dn({},r,{el:u});c.push(new co(d))}),c}const l=this;l.__swiper__=!0,l.support=lv(),l.device=iv({userAgent:r.userAgent}),l.browser=sv(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],r.modules&&Array.isArray(r.modules)&&l.modules.push(...r.modules);const i={};l.modules.forEach(c=>{c({params:r,swiper:l,extendParams:o6(r,i),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})});const s=dn({},Kc,i);return l.params=dn({},s,Zs,r),l.originalParams=dn({},l.params),l.passedParams=dn({},r),l.params&&l.params.on&&Object.keys(l.params.on).forEach(c=>{l.on(c,l.params.on[c])}),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:o,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return l.params.direction==="horizontal"},isVertical(){return l.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:o,params:r}=this,a=Kn(o,`.${r.slideClass}, swiper-slide`),l=pi(a[0]);return pi(t)-l}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(o=>o.getAttribute("data-swiper-slide-index")*1===t))}getSlideIndexWhenGrid(t){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?t=Math.floor(t/this.params.grid.rows):this.params.grid.fill==="row"&&(t=t%Math.ceil(this.slides.length/this.params.grid.rows))),t}recalcSlides(){const t=this,{slidesEl:o,params:r}=t;t.slides=Kn(o,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,o){const r=this;t=Math.min(Math.max(t,0),1);const a=r.minTranslate(),i=(r.maxTranslate()-a)*t+a;r.translateTo(i,typeof o>"u"?0:o),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const o=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",o.join(" "))}getSlideClasses(t){const o=this;return o.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(o.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const o=[];t.slides.forEach(r=>{const a=t.getSlideClasses(r);o.push({slideEl:r,classNames:a}),t.emit("_slideClass",r,a)}),t.emit("_slideClasses",o)}slidesPerViewDynamic(t="current",o=!1){const r=this,{params:a,slides:l,slidesGrid:i,slidesSizesGrid:s,size:c,activeIndex:u}=r;let d=1;if(typeof a.slidesPerView=="number")return a.slidesPerView;if(a.centeredSlides){let f=l[u]?Math.ceil(l[u].swiperSlideSize):0,h;for(let m=u+1;m<l.length;m+=1)l[m]&&!h&&(f+=Math.ceil(l[m].swiperSlideSize),d+=1,f>c&&(h=!0));for(let m=u-1;m>=0;m-=1)l[m]&&!h&&(f+=l[m].swiperSlideSize,d+=1,f>c&&(h=!0))}else if(t==="current")for(let f=u+1;f<l.length;f+=1)(o?i[f]+s[f]-i[u]<c:i[f]-i[u]<c)&&(d+=1);else for(let f=u-1;f>=0;f-=1)i[u]-i[f]<c&&(d+=1);return d}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:o,params:r}=t;r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(i=>{i.complete&&zl(t,i)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function a(){const i=t.rtlTranslate?t.translate*-1:t.translate,s=Math.min(Math.max(i,t.maxTranslate()),t.minTranslate());t.setTranslate(s),t.updateActiveIndex(),t.updateSlidesClasses()}let l;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)a(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const i=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;l=t.slideTo(i.length-1,0,!1,!0)}else l=t.slideTo(t.activeIndex,0,!1,!0);l||a()}r.watchOverflow&&o!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,o=!0){const r=this,a=r.params.direction;return t||(t=a==="horizontal"?"vertical":"horizontal"),t===a||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${a}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(l=>{t==="vertical"?l.style.width="":l.style.height=""}),r.emit("changeDirection"),o&&r.update()),r}changeLanguageDirection(t){const o=this;o.rtl&&t==="rtl"||!o.rtl&&t==="ltr"||(o.rtl=t==="rtl",o.rtlTranslate=o.params.direction==="horizontal"&&o.rtl,o.rtl?(o.el.classList.add(`${o.params.containerModifierClass}rtl`),o.el.dir="rtl"):(o.el.classList.remove(`${o.params.containerModifierClass}rtl`),o.el.dir="ltr"),o.update())}mount(t){const o=this;if(o.mounted)return!0;let r=t||o.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=o,r.parentNode&&r.parentNode.host&&r.parentNode.host.nodeName===o.params.swiperElementNodeName.toUpperCase()&&(o.isElement=!0);const a=()=>`.${(o.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(a()):Kn(r,a())[0];return!i&&o.params.createElements&&(i=ho("div",o.params.wrapperClass),r.append(i),Kn(r,`.${o.params.slideClass}`).forEach(s=>{i.append(s)})),Object.assign(o,{el:r,wrapperEl:i,slidesEl:o.isElement&&!r.parentNode.host.slideSlots?r.parentNode.host:i,hostEl:o.isElement?r.parentNode.host:r,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||Ao(r,"direction")==="rtl",rtlTranslate:o.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||Ao(r,"direction")==="rtl"),wrongRTL:Ao(i,"display")==="-webkit-box"}),!0}init(t){const o=this;if(o.initialized||o.mount(t)===!1)return o;o.emit("beforeInit"),o.params.breakpoints&&o.setBreakpoint(),o.addClasses(),o.updateSize(),o.updateSlides(),o.params.watchOverflow&&o.checkOverflow(),o.params.grabCursor&&o.enabled&&o.setGrabCursor(),o.params.loop&&o.virtual&&o.params.virtual.enabled?o.slideTo(o.params.initialSlide+o.virtual.slidesBefore,0,o.params.runCallbacksOnInit,!1,!0):o.slideTo(o.params.initialSlide,0,o.params.runCallbacksOnInit,!1,!0),o.params.loop&&o.loopCreate(void 0,!0),o.attachEvents();const a=[...o.el.querySelectorAll('[loading="lazy"]')];return o.isElement&&a.push(...o.hostEl.querySelectorAll('[loading="lazy"]')),a.forEach(l=>{l.complete?zl(o,l):l.addEventListener("load",i=>{zl(o,i.target)})}),Xc(o),o.initialized=!0,Xc(o),o.emit("init"),o.emit("afterInit"),o}destroy(t=!0,o=!0){const r=this,{params:a,el:l,wrapperEl:i,slides:s}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),a.loop&&r.loopDestroy(),o&&(r.removeClasses(),l&&typeof l!="string"&&l.removeAttribute("style"),i&&i.removeAttribute("style"),s&&s.length&&s.forEach(c=>{c.classList.remove(a.slideVisibleClass,a.slideFullyVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),c.removeAttribute("style"),c.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(c=>{r.off(c)}),t!==!1&&(r.el&&typeof r.el!="string"&&(r.el.swiper=null),Ax(r)),r.destroyed=!0),null}static extendDefaults(t){dn(Zs,t)}static get extendedDefaults(){return Zs}static get defaults(){return Kc}static installModule(t){co.prototype.__modules__||(co.prototype.__modules__=[]);const o=co.prototype.__modules__;typeof t=="function"&&o.indexOf(t)<0&&o.push(t)}static use(t){return Array.isArray(t)?(t.forEach(o=>co.installModule(o)),co):(co.installModule(t),co)}};Object.keys(Js).forEach(e=>{Object.keys(Js[e]).forEach(t=>{od.prototype[t]=Js[e][t]})});od.use([Zx,Qx]);const dv=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function ar(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function xr(e,t){const o=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>o.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:ar(t[r])&&ar(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:xr(e[r],t[r]):e[r]=t[r]})}function fv(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function pv(e={}){return e.pagination&&typeof e.pagination.el>"u"}function mv(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function hv(e=""){const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),o=[];return t.forEach(r=>{o.indexOf(r)<0&&o.push(r)}),o.join(" ")}function r6(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function a6({swiper:e,slides:t,passedParams:o,changedParams:r,nextEl:a,prevEl:l,scrollbarEl:i,paginationEl:s}){const c=r.filter(x=>x!=="children"&&x!=="direction"&&x!=="wrapperClass"),{params:u,pagination:d,navigation:f,scrollbar:h,virtual:m,thumbs:p}=e;let g,_,v,y,b,$,w,E;r.includes("thumbs")&&o.thumbs&&o.thumbs.swiper&&!o.thumbs.swiper.destroyed&&u.thumbs&&(!u.thumbs.swiper||u.thumbs.swiper.destroyed)&&(g=!0),r.includes("controller")&&o.controller&&o.controller.control&&u.controller&&!u.controller.control&&(_=!0),r.includes("pagination")&&o.pagination&&(o.pagination.el||s)&&(u.pagination||u.pagination===!1)&&d&&!d.el&&(v=!0),r.includes("scrollbar")&&o.scrollbar&&(o.scrollbar.el||i)&&(u.scrollbar||u.scrollbar===!1)&&h&&!h.el&&(y=!0),r.includes("navigation")&&o.navigation&&(o.navigation.prevEl||l)&&(o.navigation.nextEl||a)&&(u.navigation||u.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(b=!0);const S=x=>{e[x]&&(e[x].destroy(),x==="navigation"?(e.isElement&&(e[x].prevEl.remove(),e[x].nextEl.remove()),u[x].prevEl=void 0,u[x].nextEl=void 0,e[x].prevEl=void 0,e[x].nextEl=void 0):(e.isElement&&e[x].el.remove(),u[x].el=void 0,e[x].el=void 0))};r.includes("loop")&&e.isElement&&(u.loop&&!o.loop?$=!0:!u.loop&&o.loop?w=!0:E=!0),c.forEach(x=>{if(ar(u[x])&&ar(o[x]))Object.assign(u[x],o[x]),(x==="navigation"||x==="pagination"||x==="scrollbar")&&"enabled"in o[x]&&!o[x].enabled&&S(x);else{const N=o[x];(N===!0||N===!1)&&(x==="navigation"||x==="pagination"||x==="scrollbar")?N===!1&&S(x):u[x]=o[x]}}),c.includes("controller")&&!_&&e.controller&&e.controller.control&&u.controller&&u.controller.control&&(e.controller.control=u.controller.control),r.includes("children")&&t&&m&&u.virtual.enabled?(m.slides=t,m.update(!0)):r.includes("virtual")&&m&&u.virtual.enabled&&(t&&(m.slides=t),m.update(!0)),r.includes("children")&&t&&u.loop&&(E=!0),g&&p.init()&&p.update(!0),_&&(e.controller.control=u.controller.control),v&&(e.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-pagination"),s.part.add("pagination"),e.el.appendChild(s)),s&&(u.pagination.el=s),d.init(),d.render(),d.update()),y&&(e.isElement&&(!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-scrollbar"),i.part.add("scrollbar"),e.el.appendChild(i)),i&&(u.scrollbar.el=i),h.init(),h.updateSize(),h.setTranslate()),b&&(e.isElement&&((!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-next"),La(a,e.navigation.arrowSvg),a.part.add("button-next"),e.el.appendChild(a)),(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-button-prev"),La(l,e.navigation.arrowSvg),l.part.add("button-prev"),e.el.appendChild(l))),a&&(u.navigation.nextEl=a),l&&(u.navigation.prevEl=l),f.init(),f.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=o.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=o.allowSlidePrev),r.includes("direction")&&e.changeDirection(o.direction,!1),($||E)&&e.loopDestroy(),(w||E)&&e.loopCreate(),e.update()}function hp(e={},t=!0){const o={on:{}},r={},a={};xr(o,Kc),o._emitClasses=!0,o.init=!1;const l={},i=dv.map(c=>c.replace(/_/,"")),s=Object.assign({},e);return Object.keys(s).forEach(c=>{typeof e[c]>"u"||(i.indexOf(c)>=0?ar(e[c])?(o[c]={},a[c]={},xr(o[c],e[c]),xr(a[c],e[c])):(o[c]=e[c],a[c]=e[c]):c.search(/on[A-Z]/)===0&&typeof e[c]=="function"?t?r[`${c[2].toLowerCase()}${c.substr(3)}`]=e[c]:o.on[`${c[2].toLowerCase()}${c.substr(3)}`]=e[c]:l[c]=e[c])}),["navigation","pagination","scrollbar"].forEach(c=>{o[c]===!0&&(o[c]={}),o[c]===!1&&delete o[c]}),{params:o,passedParams:a,rest:l,events:r}}function l6({el:e,nextEl:t,prevEl:o,paginationEl:r,scrollbarEl:a,swiper:l},i){fv(i)&&t&&o&&(l.params.navigation.nextEl=t,l.originalParams.navigation.nextEl=t,l.params.navigation.prevEl=o,l.originalParams.navigation.prevEl=o),pv(i)&&r&&(l.params.pagination.el=r,l.originalParams.pagination.el=r),mv(i)&&a&&(l.params.scrollbar.el=a,l.originalParams.scrollbar.el=a),l.init(e)}function i6(e,t,o,r,a){const l=[];if(!t)return l;const i=c=>{l.indexOf(c)<0&&l.push(c)};if(o&&r){const c=r.map(a),u=o.map(a);c.join("")!==u.join("")&&i("children"),r.length!==o.length&&i("children")}return dv.filter(c=>c[0]==="_").map(c=>c.replace(/_/,"")).forEach(c=>{if(c in e&&c in t)if(ar(e[c])&&ar(t[c])){const u=Object.keys(e[c]),d=Object.keys(t[c]);u.length!==d.length?i(c):(u.forEach(f=>{e[c][f]!==t[c][f]&&i(c)}),d.forEach(f=>{e[c][f]!==t[c][f]&&i(c)}))}else e[c]!==t[c]&&i(c)}),l}const s6=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit("_virtualUpdated"),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function Qs(e={},t,o){const r=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},l=(i,s)=>{Array.isArray(i)&&i.forEach(c=>{const u=typeof c.type=="symbol";s==="default"&&(s="container-end"),u&&c.children?l(c.children,s):c.type&&(c.type.name==="SwiperSlide"||c.type.name==="AsyncComponentWrapper")||c.componentOptions&&c.componentOptions.tag==="SwiperSlide"?r.push(c):a[s]&&a[s].push(c)})};return Object.keys(e).forEach(i=>{if(typeof e[i]!="function")return;const s=e[i]();l(s,i)}),o.value=t.value,t.value=r,{slides:r,slots:a}}function c6(e,t,o){if(!o)return null;const r=d=>{let f=d;return d<0?f=t.length+d:f>=t.length&&(f=f-t.length),f},a=e.value.isHorizontal()?{[e.value.rtlTranslate?"right":"left"]:`${o.offset}px`}:{top:`${o.offset}px`},{from:l,to:i}=o,s=e.value.params.loop?-t.length:0,c=e.value.params.loop?t.length*2:t.length,u=[];for(let d=s;d<c;d+=1)d>=l&&d<=i&&u.length<t.length&&u.push(t[r(d)]);return u.map(d=>{if(d.props||(d.props={}),d.props.style||(d.props.style={}),d.props.swiperRef=e,d.props.style=a,d.type)return n.h(d.type,{...d.props},d.children);if(d.componentOptions)return n.h(d.componentOptions.Ctor,{...d.props},d.componentOptions.children)})}const u6={name:"Swiper",props:{tag:{type:String,default:"div"},wrapperTag:{type:String,default:"div"},modules:{type:Array,default:void 0},init:{type:Boolean,default:void 0},direction:{type:String,default:void 0},oneWayMovement:{type:Boolean,default:void 0},swiperElementNodeName:{type:String,default:"SWIPER-CONTAINER"},touchEventsTarget:{type:String,default:void 0},initialSlide:{type:Number,default:void 0},speed:{type:Number,default:void 0},cssMode:{type:Boolean,default:void 0},updateOnWindowResize:{type:Boolean,default:void 0},resizeObserver:{type:Boolean,default:void 0},nested:{type:Boolean,default:void 0},focusableElements:{type:String,default:void 0},width:{type:Number,default:void 0},height:{type:Number,default:void 0},preventInteractionOnTransition:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},edgeSwipeDetection:{type:[Boolean,String],default:void 0},edgeSwipeThreshold:{type:Number,default:void 0},autoHeight:{type:Boolean,default:void 0},setWrapperSize:{type:Boolean,default:void 0},virtualTranslate:{type:Boolean,default:void 0},effect:{type:String,default:void 0},breakpoints:{type:Object,default:void 0},breakpointsBase:{type:String,default:void 0},spaceBetween:{type:[Number,String],default:void 0},slidesPerView:{type:[Number,String],default:void 0},maxBackfaceHiddenSlides:{type:Number,default:void 0},slidesPerGroup:{type:Number,default:void 0},slidesPerGroupSkip:{type:Number,default:void 0},slidesPerGroupAuto:{type:Boolean,default:void 0},centeredSlides:{type:Boolean,default:void 0},centeredSlidesBounds:{type:Boolean,default:void 0},slidesOffsetBefore:{type:Number,default:void 0},slidesOffsetAfter:{type:Number,default:void 0},normalizeSlideIndex:{type:Boolean,default:void 0},centerInsufficientSlides:{type:Boolean,default:void 0},watchOverflow:{type:Boolean,default:void 0},roundLengths:{type:Boolean,default:void 0},touchRatio:{type:Number,default:void 0},touchAngle:{type:Number,default:void 0},simulateTouch:{type:Boolean,default:void 0},shortSwipes:{type:Boolean,default:void 0},longSwipes:{type:Boolean,default:void 0},longSwipesRatio:{type:Number,default:void 0},longSwipesMs:{type:Number,default:void 0},followFinger:{type:Boolean,default:void 0},allowTouchMove:{type:Boolean,default:void 0},threshold:{type:Number,default:void 0},touchMoveStopPropagation:{type:Boolean,default:void 0},touchStartPreventDefault:{type:Boolean,default:void 0},touchStartForcePreventDefault:{type:Boolean,default:void 0},touchReleaseOnEdges:{type:Boolean,default:void 0},uniqueNavElements:{type:Boolean,default:void 0},resistance:{type:Boolean,default:void 0},resistanceRatio:{type:Number,default:void 0},watchSlidesProgress:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:void 0},preventClicks:{type:Boolean,default:void 0},preventClicksPropagation:{type:Boolean,default:void 0},slideToClickedSlide:{type:Boolean,default:void 0},loop:{type:Boolean,default:void 0},loopedSlides:{type:Number,default:void 0},loopPreventsSliding:{type:Boolean,default:void 0},loopAdditionalSlides:{type:Number,default:void 0},loopAddBlankSlides:{type:Boolean,default:void 0},rewind:{type:Boolean,default:void 0},allowSlidePrev:{type:Boolean,default:void 0},allowSlideNext:{type:Boolean,default:void 0},swipeHandler:{type:Boolean,default:void 0},noSwiping:{type:Boolean,default:void 0},noSwipingClass:{type:String,default:void 0},noSwipingSelector:{type:String,default:void 0},passiveListeners:{type:Boolean,default:void 0},containerModifierClass:{type:String,default:void 0},slideClass:{type:String,default:void 0},slideActiveClass:{type:String,default:void 0},slideVisibleClass:{type:String,default:void 0},slideFullyVisibleClass:{type:String,default:void 0},slideBlankClass:{type:String,default:void 0},slideNextClass:{type:String,default:void 0},slidePrevClass:{type:String,default:void 0},wrapperClass:{type:String,default:void 0},lazyPreloaderClass:{type:String,default:void 0},lazyPreloadPrevNext:{type:Number,default:void 0},runCallbacksOnInit:{type:Boolean,default:void 0},observer:{type:Boolean,default:void 0},observeParents:{type:Boolean,default:void 0},observeSlideChildren:{type:Boolean,default:void 0},a11y:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},controller:{type:Object,default:void 0},coverflowEffect:{type:Object,default:void 0},cubeEffect:{type:Object,default:void 0},fadeEffect:{type:Object,default:void 0},flipEffect:{type:Object,default:void 0},creativeEffect:{type:Object,default:void 0},cardsEffect:{type:Object,default:void 0},hashNavigation:{type:[Boolean,Object],default:void 0},history:{type:[Boolean,Object],default:void 0},keyboard:{type:[Boolean,Object],default:void 0},mousewheel:{type:[Boolean,Object],default:void 0},navigation:{type:[Boolean,Object],default:void 0},pagination:{type:[Boolean,Object],default:void 0},parallax:{type:[Boolean,Object],default:void 0},scrollbar:{type:[Boolean,Object],default:void 0},thumbs:{type:Object,default:void 0},virtual:{type:[Boolean,Object],default:void 0},zoom:{type:[Boolean,Object],default:void 0},grid:{type:[Object],default:void 0},freeMode:{type:[Boolean,Object],default:void 0},enabled:{type:Boolean,default:void 0}},emits:["_beforeBreakpoint","_containerClasses","_slideClass","_slideClasses","_swiper","_freeModeNoMomentumRelease","_virtualUpdated","activeIndexChange","afterInit","autoplay","autoplayStart","autoplayStop","autoplayPause","autoplayResume","autoplayTimeLeft","beforeDestroy","beforeInit","beforeLoopFix","beforeResize","beforeSlideChangeStart","beforeTransitionStart","breakpoint","changeDirection","click","disable","doubleTap","doubleClick","destroy","enable","fromEdge","hashChange","hashSet","init","keyPress","lock","loopFix","momentumBounce","navigationHide","navigationShow","navigationPrev","navigationNext","observerUpdate","orientationchange","paginationHide","paginationRender","paginationShow","paginationUpdate","progress","reachBeginning","reachEnd","realIndexChange","resize","scroll","scrollbarDragEnd","scrollbarDragMove","scrollbarDragStart","setTransition","setTranslate","slidesUpdated","slideChange","slideChangeTransitionEnd","slideChangeTransitionStart","slideNextTransitionEnd","slideNextTransitionStart","slidePrevTransitionEnd","slidePrevTransitionStart","slideResetTransitionStart","slideResetTransitionEnd","sliderMove","sliderFirstMove","slidesLengthChange","slidesGridLengthChange","snapGridLengthChange","snapIndexChange","swiper","tap","toEdge","touchEnd","touchMove","touchMoveOpposite","touchStart","transitionEnd","transitionStart","unlock","update","virtualUpdate","zoomChange"],setup(e,{slots:t,emit:o}){const{tag:r,wrapperTag:a}=e,l=n.ref("swiper"),i=n.ref(null),s=n.ref(!1),c=n.ref(!1),u=n.ref(null),d=n.ref(null),f=n.ref(null),h={value:[]},m={value:[]},p=n.ref(null),g=n.ref(null),_=n.ref(null),v=n.ref(null),{params:y,passedParams:b}=hp(e,!1);Qs(t,h,m),f.value=b,m.value=h.value;const $=()=>{Qs(t,h,m),s.value=!0};y.onAny=(S,...x)=>{o(S,...x)},Object.assign(y.on,{_beforeBreakpoint:$,_containerClasses(S,x){l.value=x}});const w={...y};if(delete w.wrapperClass,d.value=new od(w),d.value.virtual&&d.value.params.virtual.enabled){d.value.virtual.slides=h.value;const S={cache:!1,slides:h.value,renderExternal:x=>{i.value=x},renderExternalUpdate:!1};xr(d.value.params.virtual,S),xr(d.value.originalParams.virtual,S)}n.onUpdated(()=>{!c.value&&d.value&&(d.value.emitSlidesClasses(),c.value=!0);const{passedParams:S}=hp(e,!1),x=i6(S,f.value,h.value,m.value,N=>N.props&&N.props.key);f.value=S,(x.length||s.value)&&d.value&&!d.value.destroyed&&a6({swiper:d.value,slides:h.value,passedParams:S,changedParams:x,nextEl:p.value,prevEl:g.value,scrollbarEl:v.value,paginationEl:_.value}),s.value=!1}),n.provide("swiper",d),n.watch(i,()=>{n.nextTick(()=>{s6(d.value)})}),n.onMounted(()=>{u.value&&(l6({el:u.value,nextEl:p.value,prevEl:g.value,paginationEl:_.value,scrollbarEl:v.value,swiper:d.value},y),o("swiper",d.value))}),n.onBeforeUnmount(()=>{d.value&&!d.value.destroyed&&d.value.destroy(!0,!1)});function E(S){return y.virtual?c6(d,S,i.value):(S.forEach((x,N)=>{x.props||(x.props={}),x.props.swiperRef=d,x.props.swiperSlideIndex=N}),S)}return()=>{const{slides:S,slots:x}=Qs(t,h,m);return n.h(r,{ref:u,class:hv(l.value)},[x["container-start"],n.h(a,{class:r6(y.wrapperClass)},[x["wrapper-start"],E(S),x["wrapper-end"]]),fv(e)&&[n.h("div",{ref:g,class:"swiper-button-prev"}),n.h("div",{ref:p,class:"swiper-button-next"})],mv(e)&&n.h("div",{ref:v,class:"swiper-scrollbar"}),pv(e)&&n.h("div",{ref:_,class:"swiper-pagination"}),x["container-end"]])}}},d6={name:"SwiperSlide",props:{tag:{type:String,default:"div"},swiperRef:{type:Object,required:!1},swiperSlideIndex:{type:Number,default:void 0,required:!1},zoom:{type:Boolean,default:void 0,required:!1},lazy:{type:Boolean,default:!1,required:!1},virtualIndex:{type:[String,Number],default:void 0}},setup(e,{slots:t}){let o=!1;const{swiperRef:r}=e,a=n.ref(null),l=n.ref("swiper-slide"),i=n.ref(!1);function s(d,f,h){f===a.value&&(l.value=h)}n.onMounted(()=>{!r||!r.value||(r.value.on("_slideClass",s),o=!0)}),n.onBeforeUpdate(()=>{o||!r||!r.value||(r.value.on("_slideClass",s),o=!0)}),n.onUpdated(()=>{!a.value||!r||!r.value||(typeof e.swiperSlideIndex<"u"&&(a.value.swiperSlideIndex=e.swiperSlideIndex),r.value.destroyed&&l.value!=="swiper-slide"&&(l.value="swiper-slide"))}),n.onBeforeUnmount(()=>{!r||!r.value||r.value.off("_slideClass",s)});const c=n.computed(()=>({isActive:l.value.indexOf("swiper-slide-active")>=0,isVisible:l.value.indexOf("swiper-slide-visible")>=0,isPrev:l.value.indexOf("swiper-slide-prev")>=0,isNext:l.value.indexOf("swiper-slide-next")>=0}));n.provide("swiperSlide",c);const u=()=>{i.value=!0};return()=>n.h(e.tag,{class:hv(`${l.value}`),ref:a,"data-swiper-slide-index":typeof e.virtualIndex>"u"&&r&&r.value&&r.value.params.loop?e.swiperSlideIndex:e.virtualIndex,onLoadCapture:u},e.zoom?n.h("div",{class:"swiper-zoom-container","data-swiper-zoom":typeof e.zoom=="number"?e.zoom:void 0},[t.default&&t.default(c.value),e.lazy&&!i.value&&n.h("div",{class:"swiper-lazy-preloader"})]):[t.default&&t.default(c.value),e.lazy&&!i.value&&n.h("div",{class:"swiper-lazy-preloader"})])}},f6={class:"swi-wrap"},p6={key:0,class:"swi-ctrl"},gv=n.defineComponent({__name:"Swiper",props:{items:{default:void 0},index:{default:void 0},variant:{default:"default"},slideWidth:{default:void 0},effect:{default:void 0},direction:{default:"horizontal"},speed:{default:void 0},loop:{type:Boolean,default:void 0},initialSlide:{default:0},slidesPerView:{default:void 0},spaceBetween:{default:void 0},centeredSlides:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},mousewheel:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},navigation:{type:Boolean,default:void 0},pagination:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},coverflowEffect:{default:void 0},breakpoints:{default:void 0},advancedOptions:{default:void 0}},emits:["update:index"],setup(e,{expose:t,emit:o}){const r=e,a=o,l={default:{},testimonial:{slidesPerView:1,autoplay:{delay:5e3,disableOnInteraction:!1},pagination:{clickable:!0},loop:!0,speed:600},gallery:{slidesPerView:1,spaceBetween:0,navigation:!0,loop:!0},cards:{slidesPerView:3,spaceBetween:20,navigation:!0,breakpoints:{320:{slidesPerView:1,spaceBetween:10},768:{slidesPerView:2,spaceBetween:15},1024:{slidesPerView:3,spaceBetween:20}}},coverflow:{effect:"coverflow",slidesPerView:"auto",centeredSlides:!0,loop:!0,navigation:!0,coverflowEffect:{rotate:-2,stretch:0,depth:100,slideShadows:!0,modifier:1,scale:.98}},hero:{slidesPerView:1,autoplay:{delay:4e3},pagination:{clickable:!0},loop:!0,speed:800,effect:"fade"}},i=n.ref(null),s=n.ref(!0),c=n.ref(!1),u=n.ref(r.index??r.initialSlide??0);let d=!1;const f=n.computed(()=>{const w={};return r.slideWidth!==void 0&&(w.width=typeof r.slideWidth=="number"?`${r.slideWidth}px`:r.slideWidth),w}),h=n.computed(()=>l[r.variant]),m=n.computed(()=>r.slidesPerView!==void 0?r.slidesPerView:h.value.slidesPerView!==void 0?h.value.slidesPerView:r.slideWidth!==void 0?"auto":1),p=n.computed(()=>{const w=(V,k,C)=>V!==void 0?V:h.value[k]!==void 0?h.value[k]:C,E={modules:[zx,Ux,Hx,jx,Gx,Wx,qx,Yx],effect:w(r.effect,"effect","slide"),direction:r.direction??"horizontal",speed:w(r.speed,"speed",300),loop:w(r.loop,"loop",!1),initialSlide:r.index??r.initialSlide,slidesPerView:m.value,spaceBetween:w(r.spaceBetween,"spaceBetween",0),centeredSlides:w(r.centeredSlides,"centeredSlides",!1),grabCursor:r.grabCursor,keyboard:r.keyboard,mousewheel:r.mousewheel,autoHeight:r.autoHeight},S=w(r.pagination,"pagination",!1);E.pagination=S?typeof S=="boolean"?{clickable:!0}:S:!1;const x=w(r.autoplay,"autoplay",!1);if(E.autoplay=x?typeof x=="boolean"?{delay:3e3}:x:!1,(E.effect||"slide")==="coverflow"){const V={rotate:0,stretch:0,depth:100,modifier:1,slideShadows:!0};E.coverflowEffect={...V,...h.value.coverflowEffect,...r.coverflowEffect}}const M=w(r.breakpoints,"breakpoints",void 0);return M&&(E.breakpoints=M),r.advancedOptions?{...E,...r.advancedOptions}:E}),g=n.computed(()=>({modules:p.value.modules,effect:p.value.effect,direction:p.value.direction,speed:p.value.speed,loop:p.value.loop,initialSlide:p.value.initialSlide,slidesPerView:p.value.slidesPerView,spaceBetween:p.value.spaceBetween,centeredSlides:p.value.centeredSlides,grabCursor:p.value.grabCursor,keyboard:p.value.keyboard,mousewheel:p.value.mousewheel,autoHeight:p.value.autoHeight,navigation:p.value.navigation,pagination:p.value.pagination,autoplay:p.value.autoplay,coverflowEffect:p.value.coverflowEffect,breakpoints:p.value.breakpoints})),_=n.computed(()=>i.value);function v(){if(i.value&&!d){s.value=i.value.isBeginning,c.value=i.value.isEnd;const w=r.loop?i.value.realIndex:i.value.activeIndex;u.value=w,a("update:index",w)}}function y(w){i.value&&i.value.slideTo(w)}function b(w){i.value&&(w==="next"?i.value.slideNext():i.value.slidePrev())}function $(w){i.value=w,v()}return n.watch(()=>r.initialSlide,w=>{w!==void 0&&i.value&&setTimeout(()=>{i.value&&i.value.slideTo(w)},1)},{immediate:!0}),n.watch(()=>r.index,w=>{if(w!==void 0&&(u.value=w,i.value)){const E=r.loop?i.value.realIndex:i.value.activeIndex;w!==E&&(d=!0,i.value.slideTo(w),setTimeout(()=>{d=!1},50))}}),n.watch(p,w=>{i.value&&(Object.assign(i.value.params,w),i.value.update())},{deep:!0}),t({swiper:_,slideNext:()=>{b("next")},slidePrev:()=>{b("prev")},slideTo:y,update:()=>{var w;return(w=i.value)==null?void 0:w.update()},isFirst:s,isLast:c,currentIndex:u}),(w,E)=>(n.openBlock(),n.createElementBlock("div",f6,[n.createVNode(n.unref(u6),n.mergeProps(g.value,{class:"swiper",onSwiper:$,onSlideChange:v,onReachBeginning:v,onReachEnd:v,onFromEdge:v}),{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(w.items,(S,x)=>(n.openBlock(),n.createBlock(n.unref(d6),{key:x,style:n.normalizeStyle(f.value)},{default:n.withCtx(()=>[n.renderSlot(w.$slots,"default",{item:S,index:x,currentIndex:u.value})]),_:2},1032,["style"]))),128))]),_:3},16),n.renderSlot(w.$slots,"navigation",{items:w.items||[],currentIndex:u.value,slideTo:y,prev:()=>b("prev"),next:()=>b("next"),isFirst:s.value,isLast:c.value},()=>[w.navigation?(n.openBlock(),n.createElementBlock("div",p6,[n.createElementVNode("div",{class:"swi-prev hover",onClick:E[0]||(E[0]=S=>b("prev"))},[n.renderSlot(w.$slots,"prev-button",{prev:()=>b("prev")},()=>[n.createVNode(n.unref(Te),{name:"chevron_left",class:"user-select-none hover z-99 color-primary",size:2})])]),n.createElementVNode("div",{class:"swi-next hover",onClick:E[1]||(E[1]=S=>b("next"))},[n.renderSlot(w.$slots,"next-button",{next:()=>b("next")},()=>[n.createVNode(n.unref(Te),{name:"chevron_right",class:"user-select-none hover z-99 color-primary",size:2})])])])):n.createCommentVNode("",!0)]),w.pagination?n.renderSlot(w.$slots,"pagination",{key:0}):n.createCommentVNode("",!0)]))}}),vv=n.defineComponent({__name:"Title",props:{value:{type:String,default:""},label:{type:String,default:""},tag:{type:String,default:"h1"}},setup(e){return(t,o)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.tag),null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.label||e.value)+" ",1),n.renderSlot(t.$slots,"default")]),_:3}))}}),m6={},h6={class:"bg-red"};function g6(e,t){return n.openBlock(),n.createElementBlock("div",h6," 123 ")}const v6=Me(m6,[["render",g6]]),y6={},_6={class:"flex space-between"};function b6(e,t){return n.openBlock(),n.createElementBlock("div",_6,[n.renderSlot(e.$slots,"default")])}const w6=Me(y6,[["render",b6]]);class $6{constructor(){qe(this,"singleTapCallbacks",[]);qe(this,"doubleTapCallbacks",[]);qe(this,"isTouchMode",!1);qe(this,"lastTapTimestamp",0);qe(this,"tappedCount",0);qe(this,"touchMovedLength",0);qe(this,"lastPointerX",0);qe(this,"lastPointerY",0);qe(this,"onTouchStart",t=>{this.isTouchMode=!0,t.touches.length===1&&this.onPointerDown(t.touches[0].clientX,t.touches[0].clientY)});qe(this,"onTouchMove",t=>{t.touches.length===1&&this.onPointerMove(t.touches[0].clientX,t.touches[0].clientY)});qe(this,"onTouchEnd",()=>{this.isTouchMode&&this.onPointerUp()});qe(this,"onMouseDown",t=>{this.isTouchMode||this.onPointerDown(t.clientX,t.clientY)});qe(this,"onMouseMove",t=>{!this.isTouchMode&&t.button===0&&this.onPointerMove(t.clientX,t.clientY)});qe(this,"onMouseUp",()=>{this.isTouchMode||this.onPointerUp()})}attach(t){if(!(t instanceof Element)){console.error("TapDetector.attach: arg must be an Element");return}t.addEventListener("touchstart",this.onTouchStart),t.addEventListener("touchmove",this.onTouchMove),t.addEventListener("touchend",this.onTouchEnd),t.addEventListener("mousedown",this.onMouseDown),t.addEventListener("mouseup",this.onMouseUp),t.addEventListener("mousemove",this.onMouseMove)}detach(t){t.removeEventListener("touchstart",this.onTouchStart),t.removeEventListener("touchmove",this.onTouchMove),t.removeEventListener("touchend",this.onTouchEnd),t.removeEventListener("mousedown",this.onMouseDown),t.removeEventListener("mouseup",this.onMouseUp),t.removeEventListener("mousemove",this.onMouseMove)}onSingleTap(t){typeof t=="function"&&!this.singleTapCallbacks.includes(t)&&this.singleTapCallbacks.push(t)}onDoubleTap(t){typeof t=="function"&&!this.doubleTapCallbacks.includes(t)&&this.doubleTapCallbacks.push(t)}triggerCallbacks(t,o){(t==="single"?this.singleTapCallbacks:this.doubleTapCallbacks).forEach(a=>{a(o)})}onPointerDown(t,o){this.lastPointerX=t,this.lastPointerY=o,this.touchMovedLength=0}onPointerUp(){const t=Date.now();this.touchMovedLength<10&&(t-this.lastTapTimestamp<300?this.tappedCount++:this.tappedCount=1,this.lastTapTimestamp=t,this.triggerCallbacks("single",{clientX:this.lastPointerX,clientY:this.lastPointerY}),this.tappedCount===2&&(this.triggerCallbacks("double",{clientX:this.lastPointerX,clientY:this.lastPointerY}),this.tappedCount=0)),this.touchMovedLength=0}onPointerMove(t,o){const r=this.lastPointerX-t,a=this.lastPointerY-o;this.touchMovedLength+=Math.sqrt(r*r+a*a),this.lastPointerX=t,this.lastPointerY=o}}const k6=n.defineComponent({__name:"Zoomer",props:{minScale:{default:1},maxScale:{default:5},zoom:{},resetTrigger:{},backgroundColor:{default:"transparent"},pivot:{default:"cursor"},zoomingElastic:{type:Boolean,default:!0},limitTranslation:{type:Boolean,default:!0},doubleClickToZoom:{type:Boolean,default:!0},mouseWheelToZoom:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},emits:["update:zoom"],setup(e,{expose:t,emit:o}){const r=o,a=n.ref(),l=n.ref(1),i=n.ref(1),s=n.ref(0),c=n.ref(0),u=n.ref(0),d=n.ref(0),f=n.ref(0),h=n.ref(0),m=n.ref(e.zoom??1),p=n.computed({get:()=>e.zoom??m.value,set:Q=>{m.value=Q,r("update:zoom",m.value)}}),g=n.ref(1),_=n.ref(0),v=n.ref(0),y=n.ref("y"),b=n.ref(!1),$=n.ref(-1),w=n.ref(-1),E=n.ref(0),S=n.ref(!0),x=n.ref(),N=n.ref(),M=n.ref(0),V=n.ref(0),k=n.ref(0),C=n.ref(),B=n.computed(()=>{const Q=l.value*d.value,we=i.value*h.value;return{transform:[`translate(${Q}px, ${we}px)`,`scale(${g.value})`].join(" "),transformOrigin:"50% 50%"}});n.watch(()=>p.value,Q=>{const{x:we,y:O}=R();u.value=Math.max(-we,Math.min(we,u.value)),f.value=Math.max(-O,Math.min(O,f.value)),Q!==1&&(S.value=!1)});function A(){p.value=1,S.value=!0,u.value=0,f.value=0}t({reset:A});function L(Q){if(e.disabled)return;let we=p.value*Q;if(e.zoomingElastic){if(we<e.minScale||we>e.maxScale){let O=Math.log2(Q);O*=.2,Q=2**O,we=p.value*Q}}else we<e.minScale?we=e.minScale:we>e.maxScale&&(we=e.maxScale);if(Q=we/p.value,p.value=we,e.pivot!=="image-center"){const O=($.value-s.value)/l.value,G=(w.value-c.value)/i.value;u.value=(.5+u.value-O)*Q+O-.5,f.value=(.5+f.value-G)*Q+G-.5}}function I(){$.value=s.value+l.value/2,w.value=c.value+i.value/2}function P(Q,we){if(b.value){const O=Date.now(),G=Q-$.value,ue=we-w.value;if(!S.value){const _e=O-k.value;_e>0&&(M.value=G/_e,V.value=ue/_e);const Ie=R(),Xe=Ie.x,Pe=Ie.y,le=u.value+G/l.value,me=f.value+ue/i.value;u.value=Math.max(-Xe,Math.min(Xe,le)),f.value=Math.max(-Pe,Math.min(Pe,me)),k.value=O}}$.value=Q,w.value=we}function oe(){if(Math.abs(M.value)<.01&&Math.abs(V.value)<.01){M.value=0,V.value=0,C.value&&(cancelAnimationFrame(C.value),C.value=void 0);return}const Q=R(),we=u.value+M.value*16/l.value,O=f.value+V.value*16/i.value;u.value=Math.max(-Q.x,Math.min(Q.x,we)),f.value=Math.max(-Q.y,Math.min(Q.y,O)),M.value*=.95,V.value*=.95,C.value=requestAnimationFrame(oe)}const Z=tr(()=>{U(),S.value=p.value===1,!S.value&&(Math.abs(M.value)>.1||Math.abs(V.value)>.1)?(C.value&&cancelAnimationFrame(C.value),oe()):(M.value=0,V.value=0)},50);function U(){if(p.value<e.minScale?p.value=e.minScale:p.value>e.maxScale&&L(e.maxScale/p.value),e.limitTranslation){const Q=R();Math.abs(u.value)>Q.x&&(u.value*=Q.x/Math.abs(u.value)),Math.abs(f.value)>Q.y&&(f.value*=Q.y/Math.abs(f.value))}}function R(){const Q=Math.max(0,(p.value-1)/2);return{x:Q,y:Q}}function H(Q){if(!e.mouseWheelToZoom)return;Q.preventDefault();const we=Date.now();Math.abs(Q.deltaY)===120?we-_.value>50&&(J(Q.deltaY),_.value=we):(we-v.value>50&&(y.value=Q.deltaX>Q.deltaY?"x":"y",y.value==="y"&&J(Q.deltaY)),v.value=we)}function J(Q){const we=1.15**(Q/120);L(we),Z()}function ae(Q){$e(),b.value=!0,$.value=Q.clientX,w.value=Q.clientY,k.value=Date.now(),M.value=0,V.value=0,C.value&&(cancelAnimationFrame(C.value),C.value=void 0),document.addEventListener("mousemove",pe),document.addEventListener("mouseup",fe)}function fe(){b.value=!1,Z(),document.removeEventListener("mouseup",fe),document.removeEventListener("mousemove",pe)}function pe(Q){!S.value&&p.value>1&&Q.stopPropagation(),P(Q.clientX,Q.clientY)}function Ce(Q){if(Q.touches.length===1)$e(),$.value=Q.touches[0].clientX,w.value=Q.touches[0].clientY,k.value=Date.now(),M.value=0,V.value=0,C.value&&(cancelAnimationFrame(C.value),C.value=void 0),b.value=!0;else if(Q.touches.length===2){C.value&&(cancelAnimationFrame(C.value),C.value=void 0),M.value=0,V.value=0,b.value=!0,$.value=(Q.touches[0].clientX+Q.touches[1].clientX)/2,w.value=(Q.touches[0].clientY+Q.touches[1].clientY)/2;const we=Q.touches[0].clientX-Q.touches[1].clientX,O=Q.touches[0].clientY-Q.touches[1].clientY;E.value=Math.sqrt(we*we+O*O)}document.addEventListener("touchend",xe)}function xe(Q){Q.touches.length===0?(b.value=!1,Math.abs(p.value-1)<.1&&(p.value=1),Z()):Q.touches.length===1&&($.value=Q.touches[0].clientX,w.value=Q.touches[0].clientY),document.removeEventListener("touchend",xe)}function Ee(Q){if(Q.touches.length===1)!S.value&&p.value>1&&Q.stopPropagation(),P(Q.touches[0].clientX,Q.touches[0].clientY);else if(Q.touches.length===2){Q.stopPropagation();const we=Q.touches[0].clientX-Q.touches[1].clientX,O=Q.touches[0].clientY-Q.touches[1].clientY,G=Math.sqrt(we*we+O*O);L(G/E.value),E.value=G}}function $e(){if(a.value){const Q=a.value.getBoundingClientRect();s.value=Q.left,c.value=Q.top}}function Be(){g.value=re(g.value,p.value),d.value=re(d.value,u.value),h.value=re(h.value,f.value),x.value=window.requestAnimationFrame(Be)}function re(Q,we){const O=(we-Q)*.4;return Math.abs(O)>1e-5?Q+O:we}n.onMounted(()=>{N.value=new $6,a.value&&N.value.attach(a.value),e.doubleClickToZoom&&(N.value.onDoubleTap(ge),a.value&&a.value.addEventListener("dblclick",ge)),window.addEventListener("resize",be),be(),$e(),Be()}),n.onUnmounted(()=>{var Q;a.value&&((Q=N.value)==null||Q.detach(a.value),e.doubleClickToZoom&&a.value.removeEventListener("dblclick",ge)),window.removeEventListener("resize",be),x.value&&window.cancelAnimationFrame(x.value),C.value&&window.cancelAnimationFrame(C.value)});function ge(Q){Q.clientX>0&&($.value=Q.clientX,w.value=Q.clientY);const we=Math.min(2.5,e.maxScale/2+.5),O=e.maxScale;p.value===1?L(we):p.value<O-.1?L(O/p.value):A()}function be(){if(a.value){const Q=window.getComputedStyle(a.value);l.value=Number.parseFloat(Q.width),i.value=Number.parseFloat(Q.height),I(),U()}}return(Q,we)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"zoomElement",ref:a,class:"vue-zoomer",style:n.normalizeStyle({backgroundColor:Q.backgroundColor}),onMousewheel:H,"on:DOMMouseScroll":H,onMousedown:ae,onMouseout:I,onFocusout:I,onTouchstart:Ce,onTouchmove:Ee},[n.createElementVNode("div",{class:"zoomer",style:n.normalizeStyle(B.value)},[n.renderSlot(Q.$slots,"default",{},void 0,!0)],4)],36))}}),yv=Me(k6,[["__scopeId","data-v-f6a534bc"]]),rd=Symbol("bagelFormState");function E6(e){if(e===null||typeof e!="object")return e;const t=new WeakSet;return JSON.parse(JSON.stringify(e,(o,r)=>{if(typeof r=="object"&&r!==null){if(t.has(r))return;t.add(r)}return r}))}function C6(e){const t=n.ref(e),o=n.ref(!1),l={data:t,getFieldData:i=>Jo(t.value,i,""),updateField:(i,s)=>{const c=i.split(/[.[]/);(typeof t.value!="object"||t.value===null)&&(t.value={});let u=t.value;for(let f=0;f<c.length-1;f++){const h=c[f];(!(h in u)||typeof u[h]!="object"||u[h]===null)&&(u[h]={}),u=u[h]}const d=E6(s);u[c[c.length-1]]=d,o.value=!0},isDirty:o};return n.provide(rd,l),l}function S6(e=rd){const t=n.inject(e);if(!t)throw new Error("BagelFormState must be provided");return t}function T6(e){const t=v=>typeof v=="string"?new Date(v):v,o=t(e.startDate),a=(()=>{if(e.endDate!==void 0)return t(e.endDate);const v=new Date(o);return v.setMinutes(v.getMinutes()+45),v})(),i=(v=>!v||v.length===0?!1:/^https?:\/\/.+/.test(v.trim()))(e.location),s=v=>{const y=v.getFullYear(),b=String(v.getMonth()+1).padStart(2,"0"),$=String(v.getDate()).padStart(2,"0"),w=String(v.getHours()).padStart(2,"0"),E=String(v.getMinutes()).padStart(2,"0"),S=String(v.getSeconds()).padStart(2,"0");return`${y}${b}${$}T${w}${E}${S}`},c=v=>`${v.toISOString().replace(/[-:]/g,"").split(".")[0]}Z`,u=()=>{const v=s(o),y=s(a),b=s(new Date),$=["BEGIN:VCALENDAR","VERSION:2.0","PRODID:-//Add to Calendar//EN","CALSCALE:GREGORIAN","METHOD:PUBLISH","BEGIN:VEVENT",`UID:${b}@addtocalendar`,`DTSTAMP:${b}`,`DTSTART:${v}`,`DTEND:${y}`,`SUMMARY:${e.title}`];if(e.description&&e.description.length>0){const w=e.description.replace(/\n/g,"\\n");$.push(`DESCRIPTION:${w}`)}return e.location&&e.location.length>0&&($.push(`LOCATION:${e.location}`),i&&$.push(`URL:${e.location}`)),$.push("STATUS:CONFIRMED","SEQUENCE:0","END:VEVENT","END:VCALENDAR"),$.join(`\r
|
|
405
405
|
`)},d=n.computed(()=>{const v=new URLSearchParams({action:"TEMPLATE",text:e.title,dates:`${c(o)}/${c(a)}`});return e.description&&e.description.length>0&&v.append("details",e.description),e.location&&e.location.length>0&&v.append("location",e.location),`https://calendar.google.com/calendar/render?${v.toString()}`}),f=n.computed(()=>{const v=new URLSearchParams({path:"/calendar/action/compose",rru:"addevent",subject:e.title,startdt:o.toISOString(),enddt:a.toISOString()});return e.description&&e.description.length>0&&v.append("body",e.description),e.location&&e.location.length>0&&v.append("location",e.location),`https://outlook.live.com/calendar/0/deeplink/compose?${v.toString()}`}),h=n.computed(()=>{const v=new URLSearchParams({path:"/calendar/action/compose",rru:"addevent",subject:e.title,startdt:o.toISOString(),enddt:a.toISOString()});return e.description&&e.description.length>0&&v.append("body",e.description),e.location&&e.location.length>0&&v.append("location",e.location),`https://outlook.office.com/calendar/0/deeplink/compose?${v.toString()}`}),m=n.computed(()=>{const v=Math.floor((a.getTime()-o.getTime())/1e3/60),y=new URLSearchParams({v:"60",title:e.title,st:c(o),dur:v.toString()});return e.description&&e.description.length>0&&y.append("desc",e.description),e.location&&e.location.length>0&&y.append("in_loc",e.location),`https://calendar.yahoo.com/?${y.toString()}`}),p=v=>{switch(v){case"google":return d.value;case"apple":case"ics":return"";case"outlook":return h.value;case"outlookcom":return f.value;case"yahoo":return m.value;default:return""}},g=(v="event.ics")=>{const y=u(),b=new Blob([y],{type:"text/calendar;charset=utf-8"}),$=document.createElement("a");$.href=URL.createObjectURL(b),$.download=v,document.body.appendChild($),$.click(),document.body.removeChild($),URL.revokeObjectURL($.href)};return{googleUrl:d,outlookUrl:h,outlookWebUrl:f,yahooUrl:m,generateICS:u,downloadICS:g,getCalendarUrl:p,addToCalendar:v=>{if(v==="apple"||v==="ics")g();else{const y=p(v);y&&window.open(y,"_blank","noopener,noreferrer")}}}}function sl(){const e=n.ref(0),t=n.ref(!1),o=n.ref(0),r=n.ref(0),a=n.ref(0),l=n.ref(null),i=n.ref(null),s=n.ref(0),c=n.ref(0);function u(){s.value=o.value,c.value=r.value,e.value=window.innerWidth,t.value=window.innerWidth<768,o.value=window.scrollY,r.value=window.scrollX,a.value=window.innerHeight;const d=10;o.value>s.value+d?l.value="down":o.value<s.value-d&&(l.value="up"),r.value>c.value+d?i.value="right":r.value<c.value-d&&(i.value="left")}return n.onMounted(()=>{window.addEventListener("resize",u),window.addEventListener("scroll",u),u()}),n.onUnmounted(()=>{window.removeEventListener("resize",u),window.removeEventListener("scroll",u)}),{innerWidth:e,isMobile:t,scrollY:o,scrollX:r,innerHeight:a,dirY:l,dirX:i}}const N6=e=>Object.keys(e),gp=e=>e==null?void 0:e.split(" ").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");function vp(e,t){return t?e.map(o=>{const r={};return t.forEach(a=>{const{id:l,transform:i,label:s}=a;if(l){const c=Jo(o,l),u=s||l;r[u]=(i==null?void 0:i(c,o))||c||""}}),r}):e}function D6(e){const t=new Set;return e.forEach(a=>{Object.keys(a).forEach(l=>t.add(l))}),Array.from(t).map(a=>({id:a,label:a}))}function _v(){const e=n.ref(!1);async function t(){return e.value||(await nl("https://cdn.jsdelivr.net/npm/xlsx/dist/xlsx.full.min.js"),e.value=!0),window.XLSX}async function o(f,h="data",m){const p=n.toValue(m)||D6(f),g=await t(),_=vp(f,p),v=p.length>0?p.map($=>{const{id:w,label:E}=$;return{v:E||w,t:"s"}}):[],y=g.utils.json_to_sheet(_);v.length>0&&g.utils.sheet_add_aoa(y,[v.map($=>$.v)],{origin:"A1"});const b=g.utils.book_new();g.utils.book_append_sheet(b,y,"Sheet1"),h=h.endsWith(".xlsx")?h:`${h}.xlsx`,g.writeFile(b,h)}async function r(f,h="data",m){const p=m?m.map(b=>b.id).filter(Boolean):[...new Set(f.flatMap(N6))],g=m?m.map(b=>{const{label:$,id:w}=b;return $||gp(w)}):p.map(gp),_=vp(f,m),v=[g.join(","),..._.map(b=>p.map($=>{const w=b[$]!==void 0?b[$]:"";return`"${String(w).replace(/"/g,'""')}"`}).join(","))].join(`
|
|
406
|
-
`);h=h.endsWith(".csv")?h:`${h}.csv`;const y=new Blob([v],{type:"text/csv;charset=utf-8"});Vu(y,h)}async function a(f){const h=await t(),m=await f.arrayBuffer();return h.read(m)}async function l(f){return(await a(f)).SheetNames}async function i(f,h,m=!0){const p=await t(),_=(await a(f)).Sheets[h],v=p.utils.sheet_to_json(_,{header:1});if(v.length===0)return{headers:[],data:[]};let y=[],b=0;m?(y=v[0].map(w=>String(w||"").trim()),b=1):y=v[0].map((E,S)=>String.fromCharCode(65+S));const $=[];for(let w=b;w<v.length;w++){const E=v[w],S={};for(let x=0;x<y.length;x++)x<E.length?S[y[x]]=E[x]:S[y[x]]="";$.push(S)}return{headers:y,data:$}}async function s(f){const h=await t();return new Promise((m,p)=>{const g=new FileReader;g.onload=_=>{var v;try{const y=new Uint8Array((v=_.target)==null?void 0:v.result),b=h.read(y,{type:"array"}),$=b.SheetNames[0],w=b.Sheets[$],E=h.utils.sheet_to_json(w);m(E)}catch(y){p(y)}},g.onerror=()=>{p(new Error("Failed to read file"))},g.readAsArrayBuffer(f)})}function c(f){return typeof f=="number"&&Number.isInteger(f)&&f>=2e4&&f<=5e4}function u(f){const h=new Date(Date.UTC(1899,11,30)),m=24*60*60*1e3;return new Date(h.getTime()+f*m)}function d(f,h=!1){if(!(f instanceof Date)||Number.isNaN(f.getTime()))return"";const m=f.getFullYear(),p=String(f.getMonth()+1).padStart(2,"0"),g=String(f.getDate()).padStart(2,"0");if(!h)return`${m}-${p}-${g}`;const _=String(f.getHours()).padStart(2,"0"),v=String(f.getMinutes()).padStart(2,"0"),y=String(f.getSeconds()).padStart(2,"0");return`${m}-${p}-${g}T${_}:${v}:${y}`}return{downloadExcel:o,downloadCSV:r,readExcelFile:s,ensureXLSXLoaded:t,getSheetNames:l,readSheetData:i,getWorkbook:a,isExcelSerialDate:c,excelSerialDateToJSDate:u,formatDate:d}}const Er={};let yp=!1;const Jc=typeof window<"u";function x6(){!Jc||yp||(yp=!0,window.addEventListener("storage",e=>{e.key!==null&&e.key in Er&&(Er[e.key].value=e.newValue!==null?JSON.parse(e.newValue):null)}))}function B6(e,t=null){if(!(e in Er)){const o=Jc?localStorage.getItem(e):null;Er[e]=n.ref(o!==null?JSON.parse(o):t),n.watch(Er[e],r=>{Jc&&localStorage.setItem(e,JSON.stringify(r))})}return Er[e]}function bv(e){return x6(),new Proxy({},{get(t,o){return B6(o,(e==null?void 0:e[o])??null)}})}const wv=1e3,A6=60*wv;function M6(e,t={}){const{interval:o=30*wv,inactivityThreshold:r=5*A6,pauseInBackground:a=!0}=t,{idle:l}=p_(r),i=n.ref(!0),s=n.ref(null),c=()=>!a||document.visibilityState==="visible",u=()=>{i.value=!1,s.value!==null&&(clearTimeout(s.value),s.value=null)},d=()=>{s.value!==null&&(clearTimeout(s.value),s.value=null)},f=()=>{s.value!==null&&(clearTimeout(s.value),s.value=null);const p=async()=>{if(i.value&&c()&&!l.value)try{await e()}catch(g){console.error("Polling error:",g)}i.value&&(s.value=window.setTimeout(p,o))};p()},h=()=>{i.value?f():console.warn("Cannot resume polling that was stopped")};function m(){document.visibilityState==="visible"?i.value&&f():a&&d()}return n.onMounted(()=>{document.addEventListener("visibilitychange",m),f()}),n.onUnmounted(()=>{document.removeEventListener("visibilitychange",m),u()}),{isPolling:i,pausePolling:d,resumePolling:h,startPolling:f,stopPolling:u}}const An=n.ref([{value:"dark",class:"bgl-dark-mode",icon:"cloudy_night",label:"Dark Mode",isDark:!0},{value:"light",class:"bgl-light-mode",icon:"brightness_7",label:"Light Mode",isDark:!1},{value:"system",class:"system",icon:"settings_input_component",label:"System Default"}]),_p="color-mode",Do=n.ref("system"),Zc=n.ref(!1),ad=typeof window<"u";function V6(){return ad&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}function L6(e){return An.value.find(t=>t.value===e)}function ec(e){if(!ad)return;const t=document.documentElement;if(An.value.forEach(o=>{o.class!=="system"&&t.classList.remove(o.class)}),e==="system"){const o=V6();Zc.value=o;const r=An.value.find(i=>i.value==="dark"),a=An.value.find(i=>i.value==="light"),l=o?r:a;l&&t.classList.add(l.class)}else{const o=L6(e);o&&(t.classList.add(o.class),Zc.value=o.isDark??!1)}}function P6(){const e=An.value.filter(r=>r.value!=="system");if(e.length===0)return;const o=(e.findIndex(r=>r.value===Do.value)+1)%e.length;Do.value=e[o].value}function I6(e){if(!An.value.some(o=>o.value===e.value)){const o=An.value.findIndex(r=>r.value==="system");o>-1?An.value.splice(o,0,e):An.value.push(e)}}function O6(){n.onMounted(()=>{const t=window.localStorage.getItem(_p);An.value.find(l=>l.value===t)&&(Do.value=t),ec(Do.value);const r=window.matchMedia("(prefers-color-scheme: dark)"),a=l=>{Do.value==="system"&&ec("system")};r.addEventListener("change",a)}),n.watch(Do,t=>{ad&&localStorage.setItem(_p,t),ec(t)});const e=n.computed(()=>Do.value);return{isDark:Zc,theme:e,themeOptions:An,toggleTheme:P6,addTheme:I6,setTheme:t=>{Do.value=t}}}function $v(e,t,o,r){l_(e,(a,l)=>{var s,c;if((s=t==null?void 0:t())==null||s.setCustomValidity(""),!o||a===l||!a)return;const i=o(a,r==null?void 0:r());typeof i=="string"&&((c=t==null?void 0:t())==null||c.setCustomValidity(i))},{debounce:500})}function ld({schema:e,columns:t,data:o}={}){const r=n.computed(()=>n.toValue(e)),a=n.computed(()=>n.toValue(t));return r.value?a.value&&a.value.length>0?r.value.filter(l=>{var i;return(i=a.value)==null?void 0:i.includes(l.id)}):r.value:Mh(o,a.value)}const R6={s:"400px",m:"540px",l:"720px",xl:"960px",full:"100%"},F6={key:2,class:"flex-grow-1"},z6=n.defineComponent({__name:"Dialog",props:{open:{type:Boolean},title:{},width:{default:"m"},position:{default:"center"},dismissable:{type:Boolean,default:!0},flat:{type:Boolean,default:!0},thin:{type:Boolean,default:!1},centerTitle:{type:Boolean,default:!1},closePlacement:{default:"header-end"}},emits:["update:open","close"],setup(e,{expose:t,emit:o}){const r=e,a=o,l=n.ref(null),i=n.ref(!1),s=n.ref(!0),c=n.computed(()=>R6[r.width]),u=n.computed(()=>r.position==="left"?"dialog-left ms-1 me-auto mt-1 mb-1 height-100-2 m_m-0 m_h-100vh m_max-h-100vh m_radius-0":r.position==="right"?"dialog-right me-1 ms-auto mt-1 mb-1 height-100-2 m_m-0 m_h-100vh m_max-h-100vh m_radius-0":r.position==="top"?"dialog-top mx-auto mt-1 mb-auto":r.position==="bottom"?"dialog-bottom mx-auto mb-1 mt-auto":"dialog-center mx-auto");n.watch(()=>r.open,g=>{var _;g?((_=l.value)==null||_.showModal(),i.value=!1,s.value=!1,setTimeout(()=>{s.value=!0},250)):d()}),n.onMounted(()=>{var g;r.open&&((g=l.value)==null||g.showModal())});function d(){i.value||(i.value=!0)}function f(){var g;i.value&&((g=l.value)==null||g.close(),i.value=!1,a("close"))}function h(g){g.target===l.value&&r.dismissable&&a("update:open",!1)}function m(g){if(!r.dismissable){g.preventDefault();return}a("update:open",!1)}function p(){s.value=!1,a("update:open",!1)}return t({close:p}),(g,_)=>(n.openBlock(),n.createElementBlock("dialog",{ref_key:"dialogRef",ref:l,class:n.normalizeClass([[u.value,{"is-closing":i.value}],"border-none shadow-30 p-0 testMe1"]),style:n.normalizeStyle({"--dialog-width":c.value}),onClick:h,onCancel:m,onAnimationend:f},[n.createElementVNode("div",{class:"grid grid-dialog max-height-100-2",onClick:_[0]||(_[0]=n.withModifiers(()=>{},["stop"]))},[g.title||g.dismissable?(n.openBlock(),n.createElementBlock("header",{key:0,class:n.normalizeClass(["flex space-between flex-shrink-0 align-items-start gap-05",{"border-bottom":!g.flat,"border-none":!g.title,"m_ps-1":g.title,"p-05 m_p-05":!g.title,"ps-1-5 pe-1 py-1 ":!g.thin&&g.title,"ps-1 pe-05 py-05":g.thin&&g.title}])},[g.dismissable&&g.closePlacement==="header-start"?(n.openBlock(),n.createBlock(n.unref(ee),{key:0,flat:"",icon:"close","aria-label":"Close",class:"dialog-close",thin:"",onClick:p})):n.createCommentVNode("",!0),g.title?(n.openBlock(),n.createElementBlock("h3",{key:1,class:n.normalizeClass(["dialog-title m-0 txt20 semi w-100p word-break-all",{"txt-center":g.centerTitle}])},n.toDisplayString(g.title),3)):n.createCommentVNode("",!0),g.title?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",F6)),g.dismissable&&g.closePlacement==="header-end"?(n.openBlock(),n.createBlock(n.unref(ee),{key:3,flat:"",icon:"close","aria-label":"Close",class:"dialog-close",thin:"",onClick:p})):n.createCommentVNode("",!0)],2)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(["overflow-y flex-grow-1 m_p-1",{"px-1 py-05":g.thin,"px-1-5 py-1":!g.thin}])},[n.renderSlot(g.$slots,"default",{},void 0,!0)],2),g.$slots.footer?(n.openBlock(),n.createElementBlock("footer",{key:1,class:n.normalizeClass(["flex flex-shrink-0 gap-05 m_px-05 m_py-05 justify-content-end",{"border-top":!g.flat,"px-05 py-05":g.thin,"px-1-5 py-1":!g.thin}])},[n.renderSlot(g.$slots,"footer",{},void 0,!0)],2)):n.createCommentVNode("",!0)]),g.dismissable&&g.closePlacement==="overlay-start"&&s.value?(n.openBlock(),n.createBlock(n.unref(ee),{key:0,icon:"close","aria-label":"Close",class:"fixed top-1 start-1 z-999 overlay-btn",onClick:p})):n.createCommentVNode("",!0),g.dismissable&&g.closePlacement==="overlay-end"&&s.value?(n.openBlock(),n.createBlock(n.unref(ee),{key:1,icon:"close","aria-label":"Close",class:"fixed top-1 end-1 z-999 overlay-btn",onClick:p})):n.createCommentVNode("",!0)],38))}}),ns=Me(z6,[["__scopeId","data-v-00b79714"]]),kv=n.defineComponent({__name:"DialogConfirm",props:{open:{type:Boolean},title:{},message:{},width:{default:"s"},position:{default:"center"},dismissable:{type:Boolean,default:!0},confirmText:{},cancelText:{},confirmColor:{default:"primary"}},emits:["update:open","resolve"],setup(e,{emit:t}){const o=e,r=t,{$t:a}=Tt(),l=n.computed(()=>o.title||a("modalConfirm.title")),i=n.computed(()=>o.confirmText||a("modalConfirm.confirm")),s=n.computed(()=>o.cancelText||a("modalConfirm.cancel"));function c(){r("resolve",!0),r("update:open",!1)}function u(){r("resolve",!1),r("update:open",!1)}function d(){r("resolve",!1)}return(f,h)=>(n.openBlock(),n.createBlock(ns,{open:f.open,title:l.value,width:f.width,position:f.position,dismissable:f.dismissable,"onUpdate:open":h[0]||(h[0]=m=>f.$emit("update:open",m)),onClose:d},{footer:n.withCtx(()=>[n.createVNode(ee,{flat:"",onClick:u},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(s.value),1)]),_:1}),n.createVNode(ee,{color:f.confirmColor,onClick:c},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(i.value),1)]),_:1},8,["color"])]),default:n.withCtx(()=>[n.createElementVNode("p",null,n.toDisplayString(f.message),1)]),_:1},8,["open","title","width","position","dismissable"]))}});/*!
|
|
406
|
+
`);h=h.endsWith(".csv")?h:`${h}.csv`;const y=new Blob([v],{type:"text/csv;charset=utf-8"});Vu(y,h)}async function a(f){const h=await t(),m=await f.arrayBuffer();return h.read(m)}async function l(f){return(await a(f)).SheetNames}async function i(f,h,m=!0){const p=await t(),_=(await a(f)).Sheets[h],v=p.utils.sheet_to_json(_,{header:1});if(v.length===0)return{headers:[],data:[]};let y=[],b=0;m?(y=v[0].map(w=>String(w||"").trim()),b=1):y=v[0].map((E,S)=>String.fromCharCode(65+S));const $=[];for(let w=b;w<v.length;w++){const E=v[w],S={};for(let x=0;x<y.length;x++)x<E.length?S[y[x]]=E[x]:S[y[x]]="";$.push(S)}return{headers:y,data:$}}async function s(f){const h=await t();return new Promise((m,p)=>{const g=new FileReader;g.onload=_=>{var v;try{const y=new Uint8Array((v=_.target)==null?void 0:v.result),b=h.read(y,{type:"array"}),$=b.SheetNames[0],w=b.Sheets[$],E=h.utils.sheet_to_json(w);m(E)}catch(y){p(y)}},g.onerror=()=>{p(new Error("Failed to read file"))},g.readAsArrayBuffer(f)})}function c(f){return typeof f=="number"&&Number.isInteger(f)&&f>=2e4&&f<=5e4}function u(f){const h=new Date(Date.UTC(1899,11,30)),m=24*60*60*1e3;return new Date(h.getTime()+f*m)}function d(f,h=!1){if(!(f instanceof Date)||Number.isNaN(f.getTime()))return"";const m=f.getFullYear(),p=String(f.getMonth()+1).padStart(2,"0"),g=String(f.getDate()).padStart(2,"0");if(!h)return`${m}-${p}-${g}`;const _=String(f.getHours()).padStart(2,"0"),v=String(f.getMinutes()).padStart(2,"0"),y=String(f.getSeconds()).padStart(2,"0");return`${m}-${p}-${g}T${_}:${v}:${y}`}return{downloadExcel:o,downloadCSV:r,readExcelFile:s,ensureXLSXLoaded:t,getSheetNames:l,readSheetData:i,getWorkbook:a,isExcelSerialDate:c,excelSerialDateToJSDate:u,formatDate:d}}const Er={};let yp=!1;const Jc=typeof window<"u";function x6(){!Jc||yp||(yp=!0,window.addEventListener("storage",e=>{e.key!==null&&e.key in Er&&(Er[e.key].value=e.newValue!==null?JSON.parse(e.newValue):null)}))}function B6(e,t=null){if(!(e in Er)){const o=Jc?localStorage.getItem(e):null;Er[e]=n.ref(o!==null?JSON.parse(o):t),n.watch(Er[e],r=>{Jc&&localStorage.setItem(e,JSON.stringify(r))})}return Er[e]}function bv(e){return x6(),new Proxy({},{get(t,o){return B6(o,(e==null?void 0:e[o])??null)}})}const wv=1e3,A6=60*wv;function M6(e,t={}){const{interval:o=30*wv,inactivityThreshold:r=5*A6,pauseInBackground:a=!0}=t,{idle:l}=p_(r),i=n.ref(!0),s=n.ref(null),c=()=>!a||document.visibilityState==="visible",u=()=>{i.value=!1,s.value!==null&&(clearTimeout(s.value),s.value=null)},d=()=>{s.value!==null&&(clearTimeout(s.value),s.value=null)},f=()=>{s.value!==null&&(clearTimeout(s.value),s.value=null);const p=async()=>{if(i.value&&c()&&!l.value)try{await e()}catch(g){console.error("Polling error:",g)}i.value&&(s.value=window.setTimeout(p,o))};p()},h=()=>{i.value?f():console.warn("Cannot resume polling that was stopped")};function m(){document.visibilityState==="visible"?i.value&&f():a&&d()}return n.onMounted(()=>{document.addEventListener("visibilitychange",m),f()}),n.onUnmounted(()=>{document.removeEventListener("visibilitychange",m),u()}),{isPolling:i,pausePolling:d,resumePolling:h,startPolling:f,stopPolling:u}}function V6(e){const t=n.ref(0),o=n.ref(0);let r=null;return n.onMounted(()=>{e.value&&(r=new ResizeObserver(a=>{for(const l of a)t.value=l.contentRect.width,o.value=l.contentRect.height}),r.observe(e.value),t.value=e.value.clientWidth,o.value=e.value.clientHeight)}),n.onUnmounted(()=>{r&&(r.disconnect(),r=null)}),{width:t,height:o}}const An=n.ref([{value:"dark",class:"bgl-dark-mode",icon:"cloudy_night",label:"Dark Mode",isDark:!0},{value:"light",class:"bgl-light-mode",icon:"brightness_7",label:"Light Mode",isDark:!1},{value:"system",class:"system",icon:"settings_input_component",label:"System Default"}]),_p="color-mode",Do=n.ref("system"),Zc=n.ref(!1),ad=typeof window<"u";function L6(){return ad&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}function P6(e){return An.value.find(t=>t.value===e)}function ec(e){if(!ad)return;const t=document.documentElement;if(An.value.forEach(o=>{o.class!=="system"&&t.classList.remove(o.class)}),e==="system"){const o=L6();Zc.value=o;const r=An.value.find(i=>i.value==="dark"),a=An.value.find(i=>i.value==="light"),l=o?r:a;l&&t.classList.add(l.class)}else{const o=P6(e);o&&(t.classList.add(o.class),Zc.value=o.isDark??!1)}}function I6(){const e=An.value.filter(r=>r.value!=="system");if(e.length===0)return;const o=(e.findIndex(r=>r.value===Do.value)+1)%e.length;Do.value=e[o].value}function O6(e){if(!An.value.some(o=>o.value===e.value)){const o=An.value.findIndex(r=>r.value==="system");o>-1?An.value.splice(o,0,e):An.value.push(e)}}function R6(){n.onMounted(()=>{const t=window.localStorage.getItem(_p);An.value.find(l=>l.value===t)&&(Do.value=t),ec(Do.value);const r=window.matchMedia("(prefers-color-scheme: dark)"),a=l=>{Do.value==="system"&&ec("system")};r.addEventListener("change",a)}),n.watch(Do,t=>{ad&&localStorage.setItem(_p,t),ec(t)});const e=n.computed(()=>Do.value);return{isDark:Zc,theme:e,themeOptions:An,toggleTheme:I6,addTheme:O6,setTheme:t=>{Do.value=t}}}function $v(e,t,o,r){l_(e,(a,l)=>{var s,c;if((s=t==null?void 0:t())==null||s.setCustomValidity(""),!o||a===l||!a)return;const i=o(a,r==null?void 0:r());typeof i=="string"&&((c=t==null?void 0:t())==null||c.setCustomValidity(i))},{debounce:500})}function ld({schema:e,columns:t,data:o}={}){const r=n.computed(()=>n.toValue(e)),a=n.computed(()=>n.toValue(t));return r.value?a.value&&a.value.length>0?r.value.filter(l=>{var i;return(i=a.value)==null?void 0:i.includes(l.id)}):r.value:Mh(o,a.value)}const F6={s:"400px",m:"540px",l:"720px",xl:"960px",full:"100%"},z6={key:2,class:"flex-grow-1"},U6=n.defineComponent({__name:"Dialog",props:{open:{type:Boolean},title:{},width:{default:"m"},position:{default:"center"},dismissable:{type:Boolean,default:!0},flat:{type:Boolean,default:!0},thin:{type:Boolean,default:!1},centerTitle:{type:Boolean,default:!1},closePlacement:{default:"header-end"}},emits:["update:open","close"],setup(e,{expose:t,emit:o}){const r=e,a=o,l=n.ref(null),i=n.ref(!1),s=n.ref(!0),c=n.computed(()=>F6[r.width]),u=n.computed(()=>r.position==="left"?"dialog-left ms-1 me-auto mt-1 mb-1 height-100-2 m_m-0 m_h-100vh m_max-h-100vh m_radius-0":r.position==="right"?"dialog-right me-1 ms-auto mt-1 mb-1 height-100-2 m_m-0 m_h-100vh m_max-h-100vh m_radius-0":r.position==="top"?"dialog-top mx-auto mt-1 mb-auto":r.position==="bottom"?"dialog-bottom mx-auto mb-1 mt-auto":"dialog-center mx-auto");n.watch(()=>r.open,g=>{var _;g?((_=l.value)==null||_.showModal(),i.value=!1,s.value=!1,setTimeout(()=>{s.value=!0},250)):d()}),n.onMounted(()=>{var g;r.open&&((g=l.value)==null||g.showModal())});function d(){i.value||(i.value=!0)}function f(){var g;i.value&&((g=l.value)==null||g.close(),i.value=!1,a("close"))}function h(g){g.target===l.value&&r.dismissable&&a("update:open",!1)}function m(g){if(!r.dismissable){g.preventDefault();return}a("update:open",!1)}function p(){s.value=!1,a("update:open",!1)}return t({close:p}),(g,_)=>(n.openBlock(),n.createElementBlock("dialog",{ref_key:"dialogRef",ref:l,class:n.normalizeClass([[u.value,{"is-closing":i.value}],"border-none shadow-30 p-0 testMe1"]),style:n.normalizeStyle({"--dialog-width":c.value}),onClick:h,onCancel:m,onAnimationend:f},[n.createElementVNode("div",{class:"grid grid-dialog max-height-100-2",onClick:_[0]||(_[0]=n.withModifiers(()=>{},["stop"]))},[g.title||g.dismissable?(n.openBlock(),n.createElementBlock("header",{key:0,class:n.normalizeClass(["flex space-between flex-shrink-0 align-items-start gap-05",{"border-bottom":!g.flat,"border-none":!g.title,"m_ps-1":g.title,"p-05 m_p-05":!g.title,"ps-1-5 pe-1 py-1 ":!g.thin&&g.title,"ps-1 pe-05 py-05":g.thin&&g.title}])},[g.dismissable&&g.closePlacement==="header-start"?(n.openBlock(),n.createBlock(n.unref(ee),{key:0,flat:"",icon:"close","aria-label":"Close",class:"dialog-close",thin:"",onClick:p})):n.createCommentVNode("",!0),g.title?(n.openBlock(),n.createElementBlock("h3",{key:1,class:n.normalizeClass(["dialog-title m-0 txt20 semi w-100p word-break-all",{"txt-center":g.centerTitle}])},n.toDisplayString(g.title),3)):n.createCommentVNode("",!0),g.title?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",z6)),g.dismissable&&g.closePlacement==="header-end"?(n.openBlock(),n.createBlock(n.unref(ee),{key:3,flat:"",icon:"close","aria-label":"Close",class:"dialog-close",thin:"",onClick:p})):n.createCommentVNode("",!0)],2)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(["overflow-y flex-grow-1 m_p-1",{"px-1 py-05":g.thin,"px-1-5 py-1":!g.thin}])},[n.renderSlot(g.$slots,"default",{},void 0,!0)],2),g.$slots.footer?(n.openBlock(),n.createElementBlock("footer",{key:1,class:n.normalizeClass(["flex flex-shrink-0 gap-05 m_px-05 m_py-05 justify-content-end",{"border-top":!g.flat,"px-05 py-05":g.thin,"px-1-5 py-1":!g.thin}])},[n.renderSlot(g.$slots,"footer",{},void 0,!0)],2)):n.createCommentVNode("",!0)]),g.dismissable&&g.closePlacement==="overlay-start"&&s.value?(n.openBlock(),n.createBlock(n.unref(ee),{key:0,icon:"close","aria-label":"Close",class:"fixed top-1 start-1 z-999 overlay-btn",onClick:p})):n.createCommentVNode("",!0),g.dismissable&&g.closePlacement==="overlay-end"&&s.value?(n.openBlock(),n.createBlock(n.unref(ee),{key:1,icon:"close","aria-label":"Close",class:"fixed top-1 end-1 z-999 overlay-btn",onClick:p})):n.createCommentVNode("",!0)],38))}}),ns=Me(U6,[["__scopeId","data-v-00b79714"]]),kv=n.defineComponent({__name:"DialogConfirm",props:{open:{type:Boolean},title:{},message:{},width:{default:"s"},position:{default:"center"},dismissable:{type:Boolean,default:!0},confirmText:{},cancelText:{},confirmColor:{default:"primary"}},emits:["update:open","resolve"],setup(e,{emit:t}){const o=e,r=t,{$t:a}=Tt(),l=n.computed(()=>o.title||a("modalConfirm.title")),i=n.computed(()=>o.confirmText||a("modalConfirm.confirm")),s=n.computed(()=>o.cancelText||a("modalConfirm.cancel"));function c(){r("resolve",!0),r("update:open",!1)}function u(){r("resolve",!1),r("update:open",!1)}function d(){r("resolve",!1)}return(f,h)=>(n.openBlock(),n.createBlock(ns,{open:f.open,title:l.value,width:f.width,position:f.position,dismissable:f.dismissable,"onUpdate:open":h[0]||(h[0]=m=>f.$emit("update:open",m)),onClose:d},{footer:n.withCtx(()=>[n.createVNode(ee,{flat:"",onClick:u},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(s.value),1)]),_:1}),n.createVNode(ee,{color:f.confirmColor,onClick:c},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(i.value),1)]),_:1},8,["color"])]),default:n.withCtx(()=>[n.createElementVNode("p",null,n.toDisplayString(f.message),1)]),_:1},8,["open","title","width","position","dismissable"]))}});/*!
|
|
407
407
|
* shared v11.2.8
|
|
408
408
|
* (c) 2025 kazuya kawaguchi
|
|
409
409
|
* Released under the MIT License.
|
|
410
|
-
*/function lo(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const bp={};function id(e){bp[e]||(bp[e]=!0,lo(e))}const Fn=typeof window<"u";let gn,lr;if(process.env.NODE_ENV!=="production"){const e=Fn&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(gn=t=>{e.mark(t)},lr=(t,o,r)=>{e.measure(t,o,r),e.clearMarks(o),e.clearMarks(r)})}const
|
|
410
|
+
*/function lo(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const bp={};function id(e){bp[e]||(bp[e]=!0,lo(e))}const Fn=typeof window<"u";let gn,lr;if(process.env.NODE_ENV!=="production"){const e=Fn&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(gn=t=>{e.mark(t)},lr=(t,o,r)=>{e.measure(t,o,r),e.clearMarks(o),e.clearMarks(r)})}const H6=/\{([0-9a-zA-Z]+)\}/g;function os(e,...t){return t.length===1&&tt(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(H6,(o,r)=>t.hasOwnProperty(r)?t[r]:"")}const io=(e,t=!1)=>t?Symbol.for(e):Symbol(e),j6=(e,t,o)=>W6({l:e,k:t,s:o}),W6=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Bt=e=>typeof e=="number"&&isFinite(e),q6=e=>sd(e)==="[object Date]",Ir=e=>sd(e)==="[object RegExp]",rs=e=>Ke(e)&&Object.keys(e).length===0,Vt=Object.assign,G6=Object.create,st=(e=null)=>G6(e);let wp;const Yo=()=>wp||(wp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:st());function $p(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function kp(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Y6(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,a,l)=>`${a}="${kp(l)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,a,l)=>`${a}='${kp(l)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!=="production"&&lo("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."),e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{e=e.replace(r,"$1javascript:")}),e}const X6=Object.prototype.hasOwnProperty;function Mn(e,t){return X6.call(e,t)}const yt=Array.isArray,ut=e=>typeof e=="function",De=e=>typeof e=="string",ot=e=>typeof e=="boolean",tt=e=>e!==null&&typeof e=="object",K6=e=>tt(e)&&ut(e.then)&&ut(e.catch),Ev=Object.prototype.toString,sd=e=>Ev.call(e),Ke=e=>sd(e)==="[object Object]",J6=e=>e==null?"":yt(e)||Ke(e)&&e.toString===Ev?JSON.stringify(e,null,2):String(e);function cd(e,t=""){return e.reduce((o,r,a)=>a===0?o+r:o+t+r,"")}const Ep=2;function Z6(e,t=0,o=e.length){const r=e.split(/\r?\n/);let a=0;const l=[];for(let i=0;i<r.length;i++)if(a+=r[i].length+1,a>=t){for(let s=i-Ep;s<=i+Ep||o>a;s++){if(s<0||s>=r.length)continue;const c=s+1;l.push(`${c}${" ".repeat(3-String(c).length)}| ${r[s]}`);const u=r[s].length;if(s===i){const d=t-(a-u)+1,f=Math.max(1,o>a?u-d:o-t);l.push(" | "+" ".repeat(d)+"^".repeat(f))}else if(s>i){if(o>a){const d=Math.max(Math.min(o-a,u),1);l.push(" | "+"^".repeat(d))}a+=u+1}}break}return l.join(`
|
|
411
411
|
`)}function ud(){const e=new Map;return{events:e,on(o,r){const a=e.get(o);a&&a.push(r)||e.set(o,[r])},off(o,r){const a=e.get(o);a&&a.splice(a.indexOf(r)>>>0,1)},emit(o,r){(e.get(o)||[]).slice().map(a=>a(r)),(e.get("*")||[]).slice().map(a=>a(o,r))}}}const kl=e=>!tt(e)||yt(e);function Ul(e,t){if(kl(e)||kl(t))throw new Error("Invalid value");const o=[{src:e,des:t}];for(;o.length;){const{src:r,des:a}=o.pop();Object.keys(r).forEach(l=>{l!=="__proto__"&&(tt(r[l])&&!tt(a[l])&&(a[l]=Array.isArray(r[l])?[]:st()),kl(a[l])||kl(r[l])?a[l]=r[l]:o.push({src:r[l],des:a[l]}))})}}/*!
|
|
412
412
|
* message-compiler v11.2.8
|
|
413
413
|
* (c) 2025 kazuya kawaguchi
|
|
414
414
|
* Released under the MIT License.
|
|
415
|
-
*/function
|
|
416
|
-
`,aB="\u2028",lB="\u2029";function iB(e){const t=e;let o=0,r=1,a=1,l=0;const i=S=>t[S]===rB&&t[S+1]===zt,s=S=>t[S]===zt,c=S=>t[S]===lB,u=S=>t[S]===aB,d=S=>i(S)||s(S)||c(S)||u(S),f=()=>o,h=()=>r,m=()=>a,p=()=>l,g=S=>i(S)||c(S)||u(S)?zt:t[S],_=()=>g(o),v=()=>g(o+l);function y(){return l=0,d(o)&&(r++,a=0),i(o)&&o++,o++,a++,t[o]}function b(){return i(o+l)&&l++,l++,t[o+l]}function $(){o=0,r=1,a=1,l=0}function w(S=0){l=S}function E(){const S=o+l;for(;S!==o;)y();l=0}return{index:f,line:h,column:m,peekOffset:p,charAt:g,currentChar:_,currentPeek:v,next:y,peek:b,reset:$,resetPeek:w,skipToPeek:E}}const so=void 0,sB=".",Cp="'",cB="tokenizer";function uB(e,t={}){const o=t.location!==!1,r=iB(e),a=()=>r.index(),l=()=>Z6(r.line(),r.column(),r.index()),i=l(),s=a(),c={currentType:13,offset:s,startLoc:i,endLoc:i,lastType:13,lastOffset:s,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:d}=t;function f(O,G,ue,..._e){const Ie=u();if(G.column+=ue,G.offset+=ue,d){const Xe=o?Qc(Ie.startLoc,G):null,Pe=Kr(O,Xe,{domain:cB,args:_e});d(Pe)}}function h(O,G,ue){O.endLoc=l(),O.currentType=G;const _e={type:G};return o&&(_e.loc=Qc(O.startLoc,O.endLoc)),ue!=null&&(_e.value=ue),_e}const m=O=>h(O,13);function p(O,G){return O.currentChar()===G?(O.next(),G):(f(Ue.EXPECTED_TOKEN,l(),0,G),"")}function g(O){let G="";for(;O.currentPeek()===Hn||O.currentPeek()===zt;)G+=O.currentPeek(),O.peek();return G}function _(O){const G=g(O);return O.skipToPeek(),G}function v(O){if(O===so)return!1;const G=O.charCodeAt(0);return G>=97&&G<=122||G>=65&&G<=90||G===95}function y(O){if(O===so)return!1;const G=O.charCodeAt(0);return G>=48&&G<=57}function b(O,G){const{currentType:ue}=G;if(ue!==2)return!1;g(O);const _e=v(O.currentPeek());return O.resetPeek(),_e}function $(O,G){const{currentType:ue}=G;if(ue!==2)return!1;g(O);const _e=O.currentPeek()==="-"?O.peek():O.currentPeek(),Ie=y(_e);return O.resetPeek(),Ie}function w(O,G){const{currentType:ue}=G;if(ue!==2)return!1;g(O);const _e=O.currentPeek()===Cp;return O.resetPeek(),_e}function E(O,G){const{currentType:ue}=G;if(ue!==7)return!1;g(O);const _e=O.currentPeek()===".";return O.resetPeek(),_e}function S(O,G){const{currentType:ue}=G;if(ue!==8)return!1;g(O);const _e=v(O.currentPeek());return O.resetPeek(),_e}function x(O,G){const{currentType:ue}=G;if(!(ue===7||ue===11))return!1;g(O);const _e=O.currentPeek()===":";return O.resetPeek(),_e}function N(O,G){const{currentType:ue}=G;if(ue!==9)return!1;const _e=()=>{const Xe=O.currentPeek();return Xe==="{"?v(O.peek()):Xe==="@"||Xe==="|"||Xe===":"||Xe==="."||Xe===Hn||!Xe?!1:Xe===zt?(O.peek(),_e()):V(O,!1)},Ie=_e();return O.resetPeek(),Ie}function M(O){g(O);const G=O.currentPeek()==="|";return O.resetPeek(),G}function V(O,G=!0){const ue=(Ie=!1,Xe="")=>{const Pe=O.currentPeek();return Pe==="{"||Pe==="@"||!Pe?Ie:Pe==="|"?!(Xe===Hn||Xe===zt):Pe===Hn?(O.peek(),ue(!0,Hn)):Pe===zt?(O.peek(),ue(!0,zt)):!0},_e=ue();return G&&O.resetPeek(),_e}function k(O,G){const ue=O.currentChar();return ue===so?so:G(ue)?(O.next(),ue):null}function C(O){const G=O.charCodeAt(0);return G>=97&&G<=122||G>=65&&G<=90||G>=48&&G<=57||G===95||G===36}function B(O){return k(O,C)}function A(O){const G=O.charCodeAt(0);return G>=97&&G<=122||G>=65&&G<=90||G>=48&&G<=57||G===95||G===36||G===45}function L(O){return k(O,A)}function I(O){const G=O.charCodeAt(0);return G>=48&&G<=57}function P(O){return k(O,I)}function oe(O){const G=O.charCodeAt(0);return G>=48&&G<=57||G>=65&&G<=70||G>=97&&G<=102}function Z(O){return k(O,oe)}function U(O){let G="",ue="";for(;G=P(O);)ue+=G;return ue}function R(O){let G="";for(;;){const ue=O.currentChar();if(ue==="{"||ue==="}"||ue==="@"||ue==="|"||!ue)break;if(ue===Hn||ue===zt)if(V(O))G+=ue,O.next();else{if(M(O))break;G+=ue,O.next()}else G+=ue,O.next()}return G}function H(O){_(O);let G="",ue="";for(;G=L(O);)ue+=G;const _e=O.currentChar();if(_e&&_e!=="}"&&_e!==so&&_e!==Hn&&_e!==zt&&_e!==" "){const Ie=Ee(O);return f(Ue.INVALID_TOKEN_IN_PLACEHOLDER,l(),0,ue+Ie),ue+Ie}return O.currentChar()===so&&f(Ue.UNTERMINATED_CLOSING_BRACE,l(),0),ue}function J(O){_(O);let G="";return O.currentChar()==="-"?(O.next(),G+=`-${U(O)}`):G+=U(O),O.currentChar()===so&&f(Ue.UNTERMINATED_CLOSING_BRACE,l(),0),G}function ae(O){return O!==Cp&&O!==zt}function fe(O){_(O),p(O,"'");let G="",ue="";for(;G=k(O,ae);)G==="\\"?ue+=pe(O):ue+=G;const _e=O.currentChar();return _e===zt||_e===so?(f(Ue.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,l(),0),_e===zt&&(O.next(),p(O,"'")),ue):(p(O,"'"),ue)}function pe(O){const G=O.currentChar();switch(G){case"\\":case"'":return O.next(),`\\${G}`;case"u":return Ce(O,G,4);case"U":return Ce(O,G,6);default:return f(Ue.UNKNOWN_ESCAPE_SEQUENCE,l(),0,G),""}}function Ce(O,G,ue){p(O,G);let _e="";for(let Ie=0;Ie<ue;Ie++){const Xe=Z(O);if(!Xe){f(Ue.INVALID_UNICODE_ESCAPE_SEQUENCE,l(),0,`\\${G}${_e}${O.currentChar()}`);break}_e+=Xe}return`\\${G}${_e}`}function xe(O){return O!=="{"&&O!=="}"&&O!==Hn&&O!==zt}function Ee(O){_(O);let G="",ue="";for(;G=k(O,xe);)ue+=G;return ue}function $e(O){let G="",ue="";for(;G=B(O);)ue+=G;return ue}function Be(O){const G=ue=>{const _e=O.currentChar();return _e==="{"||_e==="@"||_e==="|"||_e==="("||_e===")"||!_e||_e===Hn?ue:(ue+=_e,O.next(),G(ue))};return G("")}function re(O){_(O);const G=p(O,"|");return _(O),G}function ge(O,G){let ue=null;switch(O.currentChar()){case"{":return G.braceNest>=1&&f(Ue.NOT_ALLOW_NEST_PLACEHOLDER,l(),0),O.next(),ue=h(G,2,"{"),_(O),G.braceNest++,ue;case"}":return G.braceNest>0&&G.currentType===2&&f(Ue.EMPTY_PLACEHOLDER,l(),0),O.next(),ue=h(G,3,"}"),G.braceNest--,G.braceNest>0&&_(O),G.inLinked&&G.braceNest===0&&(G.inLinked=!1),ue;case"@":return G.braceNest>0&&f(Ue.UNTERMINATED_CLOSING_BRACE,l(),0),ue=be(O,G)||m(G),G.braceNest=0,ue;default:{let Ie=!0,Xe=!0,Pe=!0;if(M(O))return G.braceNest>0&&f(Ue.UNTERMINATED_CLOSING_BRACE,l(),0),ue=h(G,1,re(O)),G.braceNest=0,G.inLinked=!1,ue;if(G.braceNest>0&&(G.currentType===4||G.currentType===5||G.currentType===6))return f(Ue.UNTERMINATED_CLOSING_BRACE,l(),0),G.braceNest=0,Q(O,G);if(Ie=b(O,G))return ue=h(G,4,H(O)),_(O),ue;if(Xe=$(O,G))return ue=h(G,5,J(O)),_(O),ue;if(Pe=w(O,G))return ue=h(G,6,fe(O)),_(O),ue;if(!Ie&&!Xe&&!Pe)return ue=h(G,12,Ee(O)),f(Ue.INVALID_TOKEN_IN_PLACEHOLDER,l(),0,ue.value),_(O),ue;break}}return ue}function be(O,G){const{currentType:ue}=G;let _e=null;const Ie=O.currentChar();switch((ue===7||ue===8||ue===11||ue===9)&&(Ie===zt||Ie===Hn)&&f(Ue.INVALID_LINKED_FORMAT,l(),0),Ie){case"@":return O.next(),_e=h(G,7,"@"),G.inLinked=!0,_e;case".":return _(O),O.next(),h(G,8,".");case":":return _(O),O.next(),h(G,9,":");default:return M(O)?(_e=h(G,1,re(O)),G.braceNest=0,G.inLinked=!1,_e):E(O,G)||x(O,G)?(_(O),be(O,G)):S(O,G)?(_(O),h(G,11,$e(O))):N(O,G)?(_(O),Ie==="{"?ge(O,G)||_e:h(G,10,Be(O))):(ue===7&&f(Ue.INVALID_LINKED_FORMAT,l(),0),G.braceNest=0,G.inLinked=!1,Q(O,G))}}function Q(O,G){let ue={type:13};if(G.braceNest>0)return ge(O,G)||m(G);if(G.inLinked)return be(O,G)||m(G);switch(O.currentChar()){case"{":return ge(O,G)||m(G);case"}":return f(Ue.UNBALANCED_CLOSING_BRACE,l(),0),O.next(),h(G,3,"}");case"@":return be(O,G)||m(G);default:{if(M(O))return ue=h(G,1,re(O)),G.braceNest=0,G.inLinked=!1,ue;if(V(O))return h(G,0,R(O));break}}return ue}function we(){const{currentType:O,offset:G,startLoc:ue,endLoc:_e}=c;return c.lastType=O,c.lastOffset=G,c.lastStartLoc=ue,c.lastEndLoc=_e,c.offset=a(),c.startLoc=l(),r.currentChar()===so?h(c,13):Q(r,c)}return{nextToken:we,currentOffset:a,currentPosition:l,context:u}}const dB="parser",fB=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function pB(e,t,o){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||o,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function mB(e={}){const t=e.location!==!1,{onError:o}=e;function r(v,y,b,$,...w){const E=v.currentPosition();if(E.offset+=$,E.column+=$,o){const S=t?Qc(b,E):null,x=Kr(y,S,{domain:dB,args:w});o(x)}}function a(v,y,b){const $={type:v};return t&&($.start=y,$.end=y,$.loc={start:b,end:b}),$}function l(v,y,b,$){t&&(v.end=y,v.loc&&(v.loc.end=b))}function i(v,y){const b=v.context(),$=a(3,b.offset,b.startLoc);return $.value=y,l($,v.currentOffset(),v.currentPosition()),$}function s(v,y){const b=v.context(),{lastOffset:$,lastStartLoc:w}=b,E=a(5,$,w);return E.index=parseInt(y,10),v.nextToken(),l(E,v.currentOffset(),v.currentPosition()),E}function c(v,y){const b=v.context(),{lastOffset:$,lastStartLoc:w}=b,E=a(4,$,w);return E.key=y,v.nextToken(),l(E,v.currentOffset(),v.currentPosition()),E}function u(v,y){const b=v.context(),{lastOffset:$,lastStartLoc:w}=b,E=a(9,$,w);return E.value=y.replace(fB,pB),v.nextToken(),l(E,v.currentOffset(),v.currentPosition()),E}function d(v){const y=v.nextToken(),b=v.context(),{lastOffset:$,lastStartLoc:w}=b,E=a(8,$,w);return y.type!==11?(r(v,Ue.UNEXPECTED_EMPTY_LINKED_MODIFIER,b.lastStartLoc,0),E.value="",l(E,$,w),{nextConsumeToken:y,node:E}):(y.value==null&&r(v,Ue.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,jn(y)),E.value=y.value||"",l(E,v.currentOffset(),v.currentPosition()),{node:E})}function f(v,y){const b=v.context(),$=a(7,b.offset,b.startLoc);return $.value=y,l($,v.currentOffset(),v.currentPosition()),$}function h(v){const y=v.context(),b=a(6,y.offset,y.startLoc);let $=v.nextToken();if($.type===8){const w=d(v);b.modifier=w.node,$=w.nextConsumeToken||v.nextToken()}switch($.type!==9&&r(v,Ue.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,jn($)),$=v.nextToken(),$.type===2&&($=v.nextToken()),$.type){case 10:$.value==null&&r(v,Ue.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,jn($)),b.key=f(v,$.value||"");break;case 4:$.value==null&&r(v,Ue.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,jn($)),b.key=c(v,$.value||"");break;case 5:$.value==null&&r(v,Ue.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,jn($)),b.key=s(v,$.value||"");break;case 6:$.value==null&&r(v,Ue.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,jn($)),b.key=u(v,$.value||"");break;default:{r(v,Ue.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const w=v.context(),E=a(7,w.offset,w.startLoc);return E.value="",l(E,w.offset,w.startLoc),b.key=E,l(b,w.offset,w.startLoc),{nextConsumeToken:$,node:b}}}return l(b,v.currentOffset(),v.currentPosition()),{node:b}}function m(v){const y=v.context(),b=y.currentType===1?v.currentOffset():y.offset,$=y.currentType===1?y.endLoc:y.startLoc,w=a(2,b,$);w.items=[];let E=null;do{const N=E||v.nextToken();switch(E=null,N.type){case 0:N.value==null&&r(v,Ue.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,jn(N)),w.items.push(i(v,N.value||""));break;case 5:N.value==null&&r(v,Ue.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,jn(N)),w.items.push(s(v,N.value||""));break;case 4:N.value==null&&r(v,Ue.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,jn(N)),w.items.push(c(v,N.value||""));break;case 6:N.value==null&&r(v,Ue.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,jn(N)),w.items.push(u(v,N.value||""));break;case 7:{const M=h(v);w.items.push(M.node),E=M.nextConsumeToken||null;break}}}while(y.currentType!==13&&y.currentType!==1);const S=y.currentType===1?y.lastOffset:v.currentOffset(),x=y.currentType===1?y.lastEndLoc:v.currentPosition();return l(w,S,x),w}function p(v,y,b,$){const w=v.context();let E=$.items.length===0;const S=a(1,y,b);S.cases=[],S.cases.push($);do{const x=m(v);E||(E=x.items.length===0),S.cases.push(x)}while(w.currentType!==13);return E&&r(v,Ue.MUST_HAVE_MESSAGES_IN_PLURAL,b,0),l(S,v.currentOffset(),v.currentPosition()),S}function g(v){const y=v.context(),{offset:b,startLoc:$}=y,w=m(v);return y.currentType===13?w:p(v,b,$,w)}function _(v){const y=uB(v,Vt({},e)),b=y.context(),$=a(0,b.offset,b.startLoc);return t&&$.loc&&($.loc.source=v),$.body=g(y),e.onCacheKey&&($.cacheKey=e.onCacheKey(v)),b.currentType!==13&&r(y,Ue.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,v[b.offset]||""),l($,y.currentOffset(),y.currentPosition()),$}return{parse:_}}function jn(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function hB(e,t={}){const o={ast:e,helpers:new Set};return{context:()=>o,helper:l=>(o.helpers.add(l),l)}}function Sp(e,t){for(let o=0;o<e.length;o++)dd(e[o],t)}function dd(e,t){switch(e.type){case 1:Sp(e.cases,t),t.helper("plural");break;case 2:Sp(e.items,t);break;case 6:{dd(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function gB(e,t={}){const o=hB(e);o.helper("normalize"),e.body&&dd(e.body,o);const r=o.context();e.helpers=Array.from(r.helpers)}function vB(e){const t=e.body;return t.type===2?Tp(t):t.cases.forEach(o=>Tp(o)),e}function Tp(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let o=0;o<e.items.length;o++){const r=e.items[o];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=cd(t);for(let o=0;o<e.items.length;o++){const r=e.items[o];(r.type===3||r.type===9)&&delete r.value}}}}const yB="minifier";function br(e){switch(e.t=e.type,e.type){case 0:{const t=e;br(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,o=t.cases;for(let r=0;r<o.length;r++)br(o[r]);t.c=o,delete t.cases;break}case 2:{const t=e,o=t.items;for(let r=0;r<o.length;r++)br(o[r]);t.i=o,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;br(t.key),t.k=t.key,delete t.key,t.modifier&&(br(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!=="production")throw Kr(Ue.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:yB,args:[e.type]})}delete e.type}const _B="parser";function bB(e,t){const{filename:o,breakLineCode:r,needIndent:a}=t,l=t.location!==!1,i={filename:o,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:a,indentLevel:0};l&&e.loc&&(i.source=e.loc.source);const s=()=>i;function c(g,_){i.code+=g}function u(g,_=!0){const v=_?r:"";c(a?v+" ".repeat(g):v)}function d(g=!0){const _=++i.indentLevel;g&&u(_)}function f(g=!0){const _=--i.indentLevel;g&&u(_)}function h(){u(i.indentLevel)}return{context:s,push:c,indent:d,deindent:f,newline:h,helper:g=>`_${g}`,needIndent:()=>i.needIndent}}function wB(e,t){const{helper:o}=e;e.push(`${o("linked")}(`),Or(e,t.key),t.modifier?(e.push(", "),Or(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function $B(e,t){const{helper:o,needIndent:r}=e;e.push(`${o("normalize")}([`),e.indent(r());const a=t.items.length;for(let l=0;l<a&&(Or(e,t.items[l]),l!==a-1);l++)e.push(", ");e.deindent(r()),e.push("])")}function kB(e,t){const{helper:o,needIndent:r}=e;if(t.cases.length>1){e.push(`${o("plural")}([`),e.indent(r());const a=t.cases.length;for(let l=0;l<a&&(Or(e,t.cases[l]),l!==a-1);l++)e.push(", ");e.deindent(r()),e.push("])")}}function EB(e,t){t.body?Or(e,t.body):e.push("null")}function Or(e,t){const{helper:o}=e;switch(t.type){case 0:EB(e,t);break;case 1:kB(e,t);break;case 2:$B(e,t);break;case 6:wB(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${o("interpolate")}(${o("list")}(${t.index}))`,t);break;case 4:e.push(`${o("interpolate")}(${o("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:if(process.env.NODE_ENV!=="production")throw Kr(Ue.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:_B,args:[t.type]})}}const CB=(e,t={})=>{const o=De(t.mode)?t.mode:"normal",r=De(t.filename)?t.filename:"message.intl";t.sourceMap;const a=t.breakLineCode!=null?t.breakLineCode:o==="arrow"?";":`
|
|
417
|
-
`,l=t.needIndent?t.needIndent:o!=="arrow",i=e.helpers||[],s=
|
|
415
|
+
*/function Q6(e,t,o){return{line:e,column:t,offset:o}}function Qc(e,t,o){return{start:e,end:t}}const Ue={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},eB=17,tB={[Ue.EXPECTED_TOKEN]:"Expected token: '{0}'",[Ue.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[Ue.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[Ue.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[Ue.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[Ue.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[Ue.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[Ue.EMPTY_PLACEHOLDER]:"Empty placeholder",[Ue.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[Ue.INVALID_LINKED_FORMAT]:"Invalid linked format",[Ue.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[Ue.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[Ue.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[Ue.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[Ue.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[Ue.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Kr(e,t,o={}){const{domain:r,messages:a,args:l}=o,i=process.env.NODE_ENV!=="production"?os((a||tB)[e]||"",...l||[]):e,s=new SyntaxError(String(i));return s.code=e,t&&(s.location=t),s.domain=r,s}function nB(e){throw e}const oB=/<\/?[\w\s="/.':;#-\/]+>/,rB=e=>oB.test(e),Hn=" ",aB="\r",zt=`
|
|
416
|
+
`,lB="\u2028",iB="\u2029";function sB(e){const t=e;let o=0,r=1,a=1,l=0;const i=S=>t[S]===aB&&t[S+1]===zt,s=S=>t[S]===zt,c=S=>t[S]===iB,u=S=>t[S]===lB,d=S=>i(S)||s(S)||c(S)||u(S),f=()=>o,h=()=>r,m=()=>a,p=()=>l,g=S=>i(S)||c(S)||u(S)?zt:t[S],_=()=>g(o),v=()=>g(o+l);function y(){return l=0,d(o)&&(r++,a=0),i(o)&&o++,o++,a++,t[o]}function b(){return i(o+l)&&l++,l++,t[o+l]}function $(){o=0,r=1,a=1,l=0}function w(S=0){l=S}function E(){const S=o+l;for(;S!==o;)y();l=0}return{index:f,line:h,column:m,peekOffset:p,charAt:g,currentChar:_,currentPeek:v,next:y,peek:b,reset:$,resetPeek:w,skipToPeek:E}}const so=void 0,cB=".",Cp="'",uB="tokenizer";function dB(e,t={}){const o=t.location!==!1,r=sB(e),a=()=>r.index(),l=()=>Q6(r.line(),r.column(),r.index()),i=l(),s=a(),c={currentType:13,offset:s,startLoc:i,endLoc:i,lastType:13,lastOffset:s,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:d}=t;function f(O,G,ue,..._e){const Ie=u();if(G.column+=ue,G.offset+=ue,d){const Xe=o?Qc(Ie.startLoc,G):null,Pe=Kr(O,Xe,{domain:uB,args:_e});d(Pe)}}function h(O,G,ue){O.endLoc=l(),O.currentType=G;const _e={type:G};return o&&(_e.loc=Qc(O.startLoc,O.endLoc)),ue!=null&&(_e.value=ue),_e}const m=O=>h(O,13);function p(O,G){return O.currentChar()===G?(O.next(),G):(f(Ue.EXPECTED_TOKEN,l(),0,G),"")}function g(O){let G="";for(;O.currentPeek()===Hn||O.currentPeek()===zt;)G+=O.currentPeek(),O.peek();return G}function _(O){const G=g(O);return O.skipToPeek(),G}function v(O){if(O===so)return!1;const G=O.charCodeAt(0);return G>=97&&G<=122||G>=65&&G<=90||G===95}function y(O){if(O===so)return!1;const G=O.charCodeAt(0);return G>=48&&G<=57}function b(O,G){const{currentType:ue}=G;if(ue!==2)return!1;g(O);const _e=v(O.currentPeek());return O.resetPeek(),_e}function $(O,G){const{currentType:ue}=G;if(ue!==2)return!1;g(O);const _e=O.currentPeek()==="-"?O.peek():O.currentPeek(),Ie=y(_e);return O.resetPeek(),Ie}function w(O,G){const{currentType:ue}=G;if(ue!==2)return!1;g(O);const _e=O.currentPeek()===Cp;return O.resetPeek(),_e}function E(O,G){const{currentType:ue}=G;if(ue!==7)return!1;g(O);const _e=O.currentPeek()===".";return O.resetPeek(),_e}function S(O,G){const{currentType:ue}=G;if(ue!==8)return!1;g(O);const _e=v(O.currentPeek());return O.resetPeek(),_e}function x(O,G){const{currentType:ue}=G;if(!(ue===7||ue===11))return!1;g(O);const _e=O.currentPeek()===":";return O.resetPeek(),_e}function N(O,G){const{currentType:ue}=G;if(ue!==9)return!1;const _e=()=>{const Xe=O.currentPeek();return Xe==="{"?v(O.peek()):Xe==="@"||Xe==="|"||Xe===":"||Xe==="."||Xe===Hn||!Xe?!1:Xe===zt?(O.peek(),_e()):V(O,!1)},Ie=_e();return O.resetPeek(),Ie}function M(O){g(O);const G=O.currentPeek()==="|";return O.resetPeek(),G}function V(O,G=!0){const ue=(Ie=!1,Xe="")=>{const Pe=O.currentPeek();return Pe==="{"||Pe==="@"||!Pe?Ie:Pe==="|"?!(Xe===Hn||Xe===zt):Pe===Hn?(O.peek(),ue(!0,Hn)):Pe===zt?(O.peek(),ue(!0,zt)):!0},_e=ue();return G&&O.resetPeek(),_e}function k(O,G){const ue=O.currentChar();return ue===so?so:G(ue)?(O.next(),ue):null}function C(O){const G=O.charCodeAt(0);return G>=97&&G<=122||G>=65&&G<=90||G>=48&&G<=57||G===95||G===36}function B(O){return k(O,C)}function A(O){const G=O.charCodeAt(0);return G>=97&&G<=122||G>=65&&G<=90||G>=48&&G<=57||G===95||G===36||G===45}function L(O){return k(O,A)}function I(O){const G=O.charCodeAt(0);return G>=48&&G<=57}function P(O){return k(O,I)}function oe(O){const G=O.charCodeAt(0);return G>=48&&G<=57||G>=65&&G<=70||G>=97&&G<=102}function Z(O){return k(O,oe)}function U(O){let G="",ue="";for(;G=P(O);)ue+=G;return ue}function R(O){let G="";for(;;){const ue=O.currentChar();if(ue==="{"||ue==="}"||ue==="@"||ue==="|"||!ue)break;if(ue===Hn||ue===zt)if(V(O))G+=ue,O.next();else{if(M(O))break;G+=ue,O.next()}else G+=ue,O.next()}return G}function H(O){_(O);let G="",ue="";for(;G=L(O);)ue+=G;const _e=O.currentChar();if(_e&&_e!=="}"&&_e!==so&&_e!==Hn&&_e!==zt&&_e!==" "){const Ie=Ee(O);return f(Ue.INVALID_TOKEN_IN_PLACEHOLDER,l(),0,ue+Ie),ue+Ie}return O.currentChar()===so&&f(Ue.UNTERMINATED_CLOSING_BRACE,l(),0),ue}function J(O){_(O);let G="";return O.currentChar()==="-"?(O.next(),G+=`-${U(O)}`):G+=U(O),O.currentChar()===so&&f(Ue.UNTERMINATED_CLOSING_BRACE,l(),0),G}function ae(O){return O!==Cp&&O!==zt}function fe(O){_(O),p(O,"'");let G="",ue="";for(;G=k(O,ae);)G==="\\"?ue+=pe(O):ue+=G;const _e=O.currentChar();return _e===zt||_e===so?(f(Ue.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,l(),0),_e===zt&&(O.next(),p(O,"'")),ue):(p(O,"'"),ue)}function pe(O){const G=O.currentChar();switch(G){case"\\":case"'":return O.next(),`\\${G}`;case"u":return Ce(O,G,4);case"U":return Ce(O,G,6);default:return f(Ue.UNKNOWN_ESCAPE_SEQUENCE,l(),0,G),""}}function Ce(O,G,ue){p(O,G);let _e="";for(let Ie=0;Ie<ue;Ie++){const Xe=Z(O);if(!Xe){f(Ue.INVALID_UNICODE_ESCAPE_SEQUENCE,l(),0,`\\${G}${_e}${O.currentChar()}`);break}_e+=Xe}return`\\${G}${_e}`}function xe(O){return O!=="{"&&O!=="}"&&O!==Hn&&O!==zt}function Ee(O){_(O);let G="",ue="";for(;G=k(O,xe);)ue+=G;return ue}function $e(O){let G="",ue="";for(;G=B(O);)ue+=G;return ue}function Be(O){const G=ue=>{const _e=O.currentChar();return _e==="{"||_e==="@"||_e==="|"||_e==="("||_e===")"||!_e||_e===Hn?ue:(ue+=_e,O.next(),G(ue))};return G("")}function re(O){_(O);const G=p(O,"|");return _(O),G}function ge(O,G){let ue=null;switch(O.currentChar()){case"{":return G.braceNest>=1&&f(Ue.NOT_ALLOW_NEST_PLACEHOLDER,l(),0),O.next(),ue=h(G,2,"{"),_(O),G.braceNest++,ue;case"}":return G.braceNest>0&&G.currentType===2&&f(Ue.EMPTY_PLACEHOLDER,l(),0),O.next(),ue=h(G,3,"}"),G.braceNest--,G.braceNest>0&&_(O),G.inLinked&&G.braceNest===0&&(G.inLinked=!1),ue;case"@":return G.braceNest>0&&f(Ue.UNTERMINATED_CLOSING_BRACE,l(),0),ue=be(O,G)||m(G),G.braceNest=0,ue;default:{let Ie=!0,Xe=!0,Pe=!0;if(M(O))return G.braceNest>0&&f(Ue.UNTERMINATED_CLOSING_BRACE,l(),0),ue=h(G,1,re(O)),G.braceNest=0,G.inLinked=!1,ue;if(G.braceNest>0&&(G.currentType===4||G.currentType===5||G.currentType===6))return f(Ue.UNTERMINATED_CLOSING_BRACE,l(),0),G.braceNest=0,Q(O,G);if(Ie=b(O,G))return ue=h(G,4,H(O)),_(O),ue;if(Xe=$(O,G))return ue=h(G,5,J(O)),_(O),ue;if(Pe=w(O,G))return ue=h(G,6,fe(O)),_(O),ue;if(!Ie&&!Xe&&!Pe)return ue=h(G,12,Ee(O)),f(Ue.INVALID_TOKEN_IN_PLACEHOLDER,l(),0,ue.value),_(O),ue;break}}return ue}function be(O,G){const{currentType:ue}=G;let _e=null;const Ie=O.currentChar();switch((ue===7||ue===8||ue===11||ue===9)&&(Ie===zt||Ie===Hn)&&f(Ue.INVALID_LINKED_FORMAT,l(),0),Ie){case"@":return O.next(),_e=h(G,7,"@"),G.inLinked=!0,_e;case".":return _(O),O.next(),h(G,8,".");case":":return _(O),O.next(),h(G,9,":");default:return M(O)?(_e=h(G,1,re(O)),G.braceNest=0,G.inLinked=!1,_e):E(O,G)||x(O,G)?(_(O),be(O,G)):S(O,G)?(_(O),h(G,11,$e(O))):N(O,G)?(_(O),Ie==="{"?ge(O,G)||_e:h(G,10,Be(O))):(ue===7&&f(Ue.INVALID_LINKED_FORMAT,l(),0),G.braceNest=0,G.inLinked=!1,Q(O,G))}}function Q(O,G){let ue={type:13};if(G.braceNest>0)return ge(O,G)||m(G);if(G.inLinked)return be(O,G)||m(G);switch(O.currentChar()){case"{":return ge(O,G)||m(G);case"}":return f(Ue.UNBALANCED_CLOSING_BRACE,l(),0),O.next(),h(G,3,"}");case"@":return be(O,G)||m(G);default:{if(M(O))return ue=h(G,1,re(O)),G.braceNest=0,G.inLinked=!1,ue;if(V(O))return h(G,0,R(O));break}}return ue}function we(){const{currentType:O,offset:G,startLoc:ue,endLoc:_e}=c;return c.lastType=O,c.lastOffset=G,c.lastStartLoc=ue,c.lastEndLoc=_e,c.offset=a(),c.startLoc=l(),r.currentChar()===so?h(c,13):Q(r,c)}return{nextToken:we,currentOffset:a,currentPosition:l,context:u}}const fB="parser",pB=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function mB(e,t,o){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||o,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function hB(e={}){const t=e.location!==!1,{onError:o}=e;function r(v,y,b,$,...w){const E=v.currentPosition();if(E.offset+=$,E.column+=$,o){const S=t?Qc(b,E):null,x=Kr(y,S,{domain:fB,args:w});o(x)}}function a(v,y,b){const $={type:v};return t&&($.start=y,$.end=y,$.loc={start:b,end:b}),$}function l(v,y,b,$){t&&(v.end=y,v.loc&&(v.loc.end=b))}function i(v,y){const b=v.context(),$=a(3,b.offset,b.startLoc);return $.value=y,l($,v.currentOffset(),v.currentPosition()),$}function s(v,y){const b=v.context(),{lastOffset:$,lastStartLoc:w}=b,E=a(5,$,w);return E.index=parseInt(y,10),v.nextToken(),l(E,v.currentOffset(),v.currentPosition()),E}function c(v,y){const b=v.context(),{lastOffset:$,lastStartLoc:w}=b,E=a(4,$,w);return E.key=y,v.nextToken(),l(E,v.currentOffset(),v.currentPosition()),E}function u(v,y){const b=v.context(),{lastOffset:$,lastStartLoc:w}=b,E=a(9,$,w);return E.value=y.replace(pB,mB),v.nextToken(),l(E,v.currentOffset(),v.currentPosition()),E}function d(v){const y=v.nextToken(),b=v.context(),{lastOffset:$,lastStartLoc:w}=b,E=a(8,$,w);return y.type!==11?(r(v,Ue.UNEXPECTED_EMPTY_LINKED_MODIFIER,b.lastStartLoc,0),E.value="",l(E,$,w),{nextConsumeToken:y,node:E}):(y.value==null&&r(v,Ue.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,jn(y)),E.value=y.value||"",l(E,v.currentOffset(),v.currentPosition()),{node:E})}function f(v,y){const b=v.context(),$=a(7,b.offset,b.startLoc);return $.value=y,l($,v.currentOffset(),v.currentPosition()),$}function h(v){const y=v.context(),b=a(6,y.offset,y.startLoc);let $=v.nextToken();if($.type===8){const w=d(v);b.modifier=w.node,$=w.nextConsumeToken||v.nextToken()}switch($.type!==9&&r(v,Ue.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,jn($)),$=v.nextToken(),$.type===2&&($=v.nextToken()),$.type){case 10:$.value==null&&r(v,Ue.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,jn($)),b.key=f(v,$.value||"");break;case 4:$.value==null&&r(v,Ue.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,jn($)),b.key=c(v,$.value||"");break;case 5:$.value==null&&r(v,Ue.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,jn($)),b.key=s(v,$.value||"");break;case 6:$.value==null&&r(v,Ue.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,jn($)),b.key=u(v,$.value||"");break;default:{r(v,Ue.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const w=v.context(),E=a(7,w.offset,w.startLoc);return E.value="",l(E,w.offset,w.startLoc),b.key=E,l(b,w.offset,w.startLoc),{nextConsumeToken:$,node:b}}}return l(b,v.currentOffset(),v.currentPosition()),{node:b}}function m(v){const y=v.context(),b=y.currentType===1?v.currentOffset():y.offset,$=y.currentType===1?y.endLoc:y.startLoc,w=a(2,b,$);w.items=[];let E=null;do{const N=E||v.nextToken();switch(E=null,N.type){case 0:N.value==null&&r(v,Ue.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,jn(N)),w.items.push(i(v,N.value||""));break;case 5:N.value==null&&r(v,Ue.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,jn(N)),w.items.push(s(v,N.value||""));break;case 4:N.value==null&&r(v,Ue.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,jn(N)),w.items.push(c(v,N.value||""));break;case 6:N.value==null&&r(v,Ue.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,jn(N)),w.items.push(u(v,N.value||""));break;case 7:{const M=h(v);w.items.push(M.node),E=M.nextConsumeToken||null;break}}}while(y.currentType!==13&&y.currentType!==1);const S=y.currentType===1?y.lastOffset:v.currentOffset(),x=y.currentType===1?y.lastEndLoc:v.currentPosition();return l(w,S,x),w}function p(v,y,b,$){const w=v.context();let E=$.items.length===0;const S=a(1,y,b);S.cases=[],S.cases.push($);do{const x=m(v);E||(E=x.items.length===0),S.cases.push(x)}while(w.currentType!==13);return E&&r(v,Ue.MUST_HAVE_MESSAGES_IN_PLURAL,b,0),l(S,v.currentOffset(),v.currentPosition()),S}function g(v){const y=v.context(),{offset:b,startLoc:$}=y,w=m(v);return y.currentType===13?w:p(v,b,$,w)}function _(v){const y=dB(v,Vt({},e)),b=y.context(),$=a(0,b.offset,b.startLoc);return t&&$.loc&&($.loc.source=v),$.body=g(y),e.onCacheKey&&($.cacheKey=e.onCacheKey(v)),b.currentType!==13&&r(y,Ue.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,v[b.offset]||""),l($,y.currentOffset(),y.currentPosition()),$}return{parse:_}}function jn(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function gB(e,t={}){const o={ast:e,helpers:new Set};return{context:()=>o,helper:l=>(o.helpers.add(l),l)}}function Sp(e,t){for(let o=0;o<e.length;o++)dd(e[o],t)}function dd(e,t){switch(e.type){case 1:Sp(e.cases,t),t.helper("plural");break;case 2:Sp(e.items,t);break;case 6:{dd(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function vB(e,t={}){const o=gB(e);o.helper("normalize"),e.body&&dd(e.body,o);const r=o.context();e.helpers=Array.from(r.helpers)}function yB(e){const t=e.body;return t.type===2?Tp(t):t.cases.forEach(o=>Tp(o)),e}function Tp(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let o=0;o<e.items.length;o++){const r=e.items[o];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=cd(t);for(let o=0;o<e.items.length;o++){const r=e.items[o];(r.type===3||r.type===9)&&delete r.value}}}}const _B="minifier";function br(e){switch(e.t=e.type,e.type){case 0:{const t=e;br(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,o=t.cases;for(let r=0;r<o.length;r++)br(o[r]);t.c=o,delete t.cases;break}case 2:{const t=e,o=t.items;for(let r=0;r<o.length;r++)br(o[r]);t.i=o,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;br(t.key),t.k=t.key,delete t.key,t.modifier&&(br(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!=="production")throw Kr(Ue.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:_B,args:[e.type]})}delete e.type}const bB="parser";function wB(e,t){const{filename:o,breakLineCode:r,needIndent:a}=t,l=t.location!==!1,i={filename:o,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:a,indentLevel:0};l&&e.loc&&(i.source=e.loc.source);const s=()=>i;function c(g,_){i.code+=g}function u(g,_=!0){const v=_?r:"";c(a?v+" ".repeat(g):v)}function d(g=!0){const _=++i.indentLevel;g&&u(_)}function f(g=!0){const _=--i.indentLevel;g&&u(_)}function h(){u(i.indentLevel)}return{context:s,push:c,indent:d,deindent:f,newline:h,helper:g=>`_${g}`,needIndent:()=>i.needIndent}}function $B(e,t){const{helper:o}=e;e.push(`${o("linked")}(`),Or(e,t.key),t.modifier?(e.push(", "),Or(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function kB(e,t){const{helper:o,needIndent:r}=e;e.push(`${o("normalize")}([`),e.indent(r());const a=t.items.length;for(let l=0;l<a&&(Or(e,t.items[l]),l!==a-1);l++)e.push(", ");e.deindent(r()),e.push("])")}function EB(e,t){const{helper:o,needIndent:r}=e;if(t.cases.length>1){e.push(`${o("plural")}([`),e.indent(r());const a=t.cases.length;for(let l=0;l<a&&(Or(e,t.cases[l]),l!==a-1);l++)e.push(", ");e.deindent(r()),e.push("])")}}function CB(e,t){t.body?Or(e,t.body):e.push("null")}function Or(e,t){const{helper:o}=e;switch(t.type){case 0:CB(e,t);break;case 1:EB(e,t);break;case 2:kB(e,t);break;case 6:$B(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${o("interpolate")}(${o("list")}(${t.index}))`,t);break;case 4:e.push(`${o("interpolate")}(${o("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:if(process.env.NODE_ENV!=="production")throw Kr(Ue.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:bB,args:[t.type]})}}const SB=(e,t={})=>{const o=De(t.mode)?t.mode:"normal",r=De(t.filename)?t.filename:"message.intl";t.sourceMap;const a=t.breakLineCode!=null?t.breakLineCode:o==="arrow"?";":`
|
|
417
|
+
`,l=t.needIndent?t.needIndent:o!=="arrow",i=e.helpers||[],s=wB(e,{filename:r,breakLineCode:a,needIndent:l});s.push(o==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(l),i.length>0&&(s.push(`const { ${cd(i.map(d=>`${d}: _${d}`),", ")} } = ctx`),s.newline()),s.push("return "),Or(s,e),s.deindent(l),s.push("}"),delete e.helpers;const{code:c,map:u}=s.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function TB(e,t={}){const o=Vt({},t),r=!!o.jit,a=!!o.minify,l=o.optimize==null?!0:o.optimize,s=hB(o).parse(e);return r?(l&&yB(s),a&&br(s),{ast:s,code:""}):(vB(s,o),SB(s,o))}/*!
|
|
418
418
|
* core-base v11.2.8
|
|
419
419
|
* (c) 2025 kazuya kawaguchi
|
|
420
420
|
* Released under the MIT License.
|
|
421
|
-
*/function TB(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Yo().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Yo().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Sn(e){return tt(e)&&fd(e)===0&&(Mn(e,"b")||Mn(e,"body"))}const Cv=["b","body"];function NB(e){return Oo(e,Cv)}const Sv=["c","cases"];function DB(e){return Oo(e,Sv,[])}const Tv=["s","static"];function xB(e){return Oo(e,Tv)}const Nv=["i","items"];function BB(e){return Oo(e,Nv,[])}const Dv=["t","type"];function fd(e){return Oo(e,Dv)}const xv=["v","value"];function El(e,t){const o=Oo(e,xv);if(o!=null)return o;throw Ia(t)}const Bv=["m","modifier"];function AB(e){return Oo(e,Bv)}const Av=["k","key"];function MB(e){const t=Oo(e,Av);if(t)return t;throw Ia(6)}function Oo(e,t,o){for(let r=0;r<t.length;r++){const a=t[r];if(Mn(e,a)&&e[a]!=null)return e[a]}return o}const Mv=[...Cv,...Sv,...Tv,...Nv,...Av,...Bv,...xv,...Dv];function Ia(e){return new Error(`unhandled node type: ${e}`)}function tc(e){return o=>VB(o,e)}function VB(e,t){const o=NB(t);if(o==null)throw Ia(0);if(fd(o)===1){const l=DB(o);return e.plural(l.reduce((i,s)=>[...i,Np(e,s)],[]))}else return Np(e,o)}function Np(e,t){const o=xB(t);if(o!=null)return e.type==="text"?o:e.normalize([o]);{const r=BB(t).reduce((a,l)=>[...a,eu(e,l)],[]);return e.normalize(r)}}function eu(e,t){const o=fd(t);switch(o){case 3:return El(t,o);case 9:return El(t,o);case 4:{const r=t;if(Mn(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(Mn(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Ia(o)}case 5:{const r=t;if(Mn(r,"i")&&Bt(r.i))return e.interpolate(e.list(r.i));if(Mn(r,"index")&&Bt(r.index))return e.interpolate(e.list(r.index));throw Ia(o)}case 6:{const r=t,a=AB(r),l=MB(r);return e.linked(eu(e,l),a?eu(e,a):void 0,e.type)}case 7:return El(t,o);case 8:return El(t,o);default:throw new Error(`unhandled node on format message part: ${o}`)}}const LB="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function PB(e,t){t&&oB(e)&&lo(os(LB,{source:e}))}const IB=e=>e;let Cl=st();function OB(e,t={}){let o=!1;const r=t.onError||tB;return t.onError=a=>{o=!0,r(a)},{...SB(e,t),detectError:o}}function RB(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&De(e)){const o=ot(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&PB(e,o);const a=(t.onCacheKey||IB)(e),l=Cl[a];if(l)return l;const{ast:i,detectError:s}=OB(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),c=tc(i);return s?c:Cl[a]=c}else{if(process.env.NODE_ENV!=="production"&&!Sn(e))return lo(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const o=e.cacheKey;if(o){const r=Cl[o];return r||(Cl[o]=tc(e))}else return tc(e)}}let Oa=null;function FB(e){Oa=e}function zB(e,t,o){Oa&&Oa.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:o})}const UB=HB("function:translate");function HB(e){return t=>Oa&&Oa.emit(e,t)}const Ht={INVALID_ARGUMENT:Q6,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},jB=24;function go(e){return Kr(e,null,process.env.NODE_ENV!=="production"?{messages:WB}:void 0)}const WB={[Ht.INVALID_ARGUMENT]:"Invalid arguments",[Ht.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[Ht.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[Ht.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[Ht.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[Ht.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[Ht.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function pd(e,t){return t.locale!=null?Dp(t.locale):Dp(e.locale)}let nc;function Dp(e){if(De(e))return e;if(ut(e)){if(e.resolvedOnce&&nc!=null)return nc;if(e.constructor.name==="Function"){const t=e();if(X6(t))throw go(Ht.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return nc=t}else throw go(Ht.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw go(Ht.NOT_SUPPORT_LOCALE_TYPE)}function qB(e,t,o){return[...new Set([o,...yt(t)?t:tt(t)?Object.keys(t):De(t)?[t]:[o]])]}function Vv(e,t,o){const r=De(o)?o:Ra,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let l=a.__localeChainCache.get(r);if(!l){l=[];let i=[o];for(;yt(i);)i=xp(l,i,t);const s=yt(t)||!Ke(t)?t:t.default?t.default:null;i=De(s)?[s]:s,yt(i)&&xp(l,i,!1),a.__localeChainCache.set(r,l)}return l}function xp(e,t,o){let r=!0;for(let a=0;a<t.length&&ot(r);a++){const l=t[a];De(l)&&(r=GB(e,t[a],o))}return r}function GB(e,t,o){let r;const a=t.split("-");do{const l=a.join("-");r=YB(e,l,o),a.splice(-1,1)}while(a.length&&r===!0);return r}function YB(e,t,o){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const a=t.replace(/!/g,"");e.push(a),(yt(o)||Ke(o))&&o[a]&&(r=o[a])}return r}const Ro=[];Ro[0]={w:[0],i:[3,0],"[":[4],o:[7]};Ro[1]={w:[1],".":[2],"[":[4],o:[7]};Ro[2]={w:[2],i:[3,0],0:[3,0]};Ro[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Ro[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Ro[5]={"'":[4,0],o:8,l:[5,0]};Ro[6]={'"':[4,0],o:8,l:[6,0]};const XB=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function KB(e){return XB.test(e)}function JB(e){const t=e.charCodeAt(0),o=e.charCodeAt(e.length-1);return t===o&&(t===34||t===39)?e.slice(1,-1):e}function ZB(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function QB(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:KB(t)?JB(t):"*"+t}function eA(e){const t=[];let o=-1,r=0,a=0,l,i,s,c,u,d,f;const h=[];h[0]=()=>{i===void 0?i=s:i+=s},h[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},h[2]=()=>{h[0](),a++},h[3]=()=>{if(a>0)a--,r=4,h[0]();else{if(a=0,i===void 0||(i=QB(i),i===!1))return!1;h[1]()}};function m(){const p=e[o+1];if(r===5&&p==="'"||r===6&&p==='"')return o++,s="\\"+p,h[0](),!0}for(;r!==null;)if(o++,l=e[o],!(l==="\\"&&m())){if(c=ZB(l),f=Ro[r],u=f[c]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(d=h[u[1]],d&&(s=l,d()===!1))))return;if(r===7)return t}}const Bp=new Map;function tA(e,t){return tt(e)?e[t]:null}function nA(e,t){if(!tt(e))return null;let o=Bp.get(t);if(o||(o=eA(t),o&&Bp.set(t,o)),!o)return null;const r=o.length;let a=e,l=0;for(;l<r;){const i=o[l];if(Mv.includes(i)&&Sn(a))return null;const s=a[i];if(s===void 0||ut(a))return null;a=s,l++}return a}const Jt={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},oA=8,rA={[Jt.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[Jt.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[Jt.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[Jt.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[Jt.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[Jt.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[Jt.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function ir(e,...t){return os(rA[e],...t)}const aA="11.2.8",as=-1,Ra="en-US",mi="",Ap=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function lA(){return{upper:(e,t)=>t==="text"&&De(e)?e.toUpperCase():t==="vnode"&&tt(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&De(e)?e.toLowerCase():t==="vnode"&&tt(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&De(e)?Ap(e):t==="vnode"&&tt(e)&&"__v_isVNode"in e?Ap(e.children):e}}let Lv;function iA(e){Lv=e}let Pv;function sA(e){Pv=e}let Iv;function cA(e){Iv=e}let Ov=null;const uA=e=>{Ov=e},dA=()=>Ov;let Rv=null;const Mp=e=>{Rv=e},fA=()=>Rv;let Vp=0;function pA(e={}){const t=ut(e.onWarn)?e.onWarn:lo,o=De(e.version)?e.version:aA,r=De(e.locale)||ut(e.locale)?e.locale:Ra,a=ut(r)?Ra:r,l=yt(e.fallbackLocale)||Ke(e.fallbackLocale)||De(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,i=Ke(e.messages)?e.messages:oc(a),s=Ke(e.datetimeFormats)?e.datetimeFormats:oc(a),c=Ke(e.numberFormats)?e.numberFormats:oc(a),u=Vt(st(),e.modifiers,lA()),d=e.pluralRules||st(),f=ut(e.missing)?e.missing:null,h=ot(e.missingWarn)||Ir(e.missingWarn)?e.missingWarn:!0,m=ot(e.fallbackWarn)||Ir(e.fallbackWarn)?e.fallbackWarn:!0,p=!!e.fallbackFormat,g=!!e.unresolving,_=ut(e.postTranslation)?e.postTranslation:null,v=Ke(e.processor)?e.processor:null,y=ot(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter,$=ut(e.messageCompiler)?e.messageCompiler:Lv;process.env.NODE_ENV!=="production"&&ut(e.messageCompiler)&&id(ir(Jt.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const w=ut(e.messageResolver)?e.messageResolver:Pv||tA,E=ut(e.localeFallbacker)?e.localeFallbacker:Iv||qB,S=tt(e.fallbackContext)?e.fallbackContext:void 0,x=e,N=tt(x.__datetimeFormatters)?x.__datetimeFormatters:new Map,M=tt(x.__numberFormatters)?x.__numberFormatters:new Map,V=tt(x.__meta)?x.__meta:{};Vp++;const k={version:o,cid:Vp,locale:r,fallbackLocale:l,messages:i,modifiers:u,pluralRules:d,missing:f,missingWarn:h,fallbackWarn:m,fallbackFormat:p,unresolving:g,postTranslation:_,processor:v,warnHtmlMessage:y,escapeParameter:b,messageCompiler:$,messageResolver:w,localeFallbacker:E,fallbackContext:S,onWarn:t,__meta:V};return k.datetimeFormats=s,k.numberFormats=c,k.__datetimeFormatters=N,k.__numberFormatters=M,process.env.NODE_ENV!=="production"&&(k.__v_emitter=x.__v_emitter!=null?x.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&zB(k,o,V),k}const oc=e=>({[e]:st()});function ls(e,t){return e instanceof RegExp?e.test(t):e}function Fv(e,t){return e instanceof RegExp?e.test(t):e}function md(e,t,o,r,a){const{missing:l,onWarn:i}=e;if(process.env.NODE_ENV!=="production"){const s=e.__v_emitter;s&&s.emit("missing",{locale:o,key:t,type:a,groupId:`${a}:${t}`})}if(l!==null){const s=l(e,o,t,a);return De(s)?s:t}else return process.env.NODE_ENV!=="production"&&Fv(r,t)&&i(ir(Jt.NOT_FOUND_KEY,{key:t,locale:o})),t}function ia(e,t,o){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,o,t)}function zv(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function mA(e,t){const o=t.indexOf(e);if(o===-1)return!1;for(let r=o+1;r<t.length;r++)if(zv(e,t[r]))return!0;return!1}const Lp=typeof Intl<"u",Uv={dateTimeFormat:Lp&&typeof Intl.DateTimeFormat<"u",numberFormat:Lp&&typeof Intl.NumberFormat<"u"};function Pp(e,...t){const{datetimeFormats:o,unresolving:r,fallbackLocale:a,onWarn:l,localeFallbacker:i}=e,{__datetimeFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!Uv.dateTimeFormat)return l(ir(Jt.CANNOT_FORMAT_DATE)),mi;const[c,u,d,f]=tu(...t),h=ot(d.missingWarn)?d.missingWarn:e.missingWarn,m=ot(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,p=!!d.part,g=pd(e,d),_=i(e,a,g);if(!De(c)||c==="")return new Intl.DateTimeFormat(g,f).format(u);let v={},y,b=null,$=g,w=null;const E="datetime format";for(let N=0;N<_.length;N++){if(y=w=_[N],process.env.NODE_ENV!=="production"&&g!==y&&ls(m,c)&&l(ir(Jt.FALLBACK_TO_DATE_FORMAT,{key:c,target:y})),process.env.NODE_ENV!=="production"&&g!==y){const M=e.__v_emitter;M&&M.emit("fallback",{type:E,key:c,from:$,to:w,groupId:`${E}:${c}`})}if(v=o[y]||{},b=v[c],Ke(b))break;md(e,c,y,h,E),$=w}if(!Ke(b)||!De(y))return r?as:c;let S=`${y}__${c}`;rs(f)||(S=`${S}__${JSON.stringify(f)}`);let x=s.get(S);return x||(x=new Intl.DateTimeFormat(y,Vt({},b,f)),s.set(S,x)),p?x.formatToParts(u):x.format(u)}const Hv=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function tu(...e){const[t,o,r,a]=e,l=st();let i=st(),s;if(De(t)){const c=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw go(Ht.INVALID_ISO_DATE_ARGUMENT);const u=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();s=new Date(u);try{s.toISOString()}catch{throw go(Ht.INVALID_ISO_DATE_ARGUMENT)}}else if(W6(t)){if(isNaN(t.getTime()))throw go(Ht.INVALID_DATE_ARGUMENT);s=t}else if(Bt(t))s=t;else throw go(Ht.INVALID_ARGUMENT);return De(o)?l.key=o:Ke(o)&&Object.keys(o).forEach(c=>{Hv.includes(c)?i[c]=o[c]:l[c]=o[c]}),De(r)?l.locale=r:Ke(r)&&(i=r),Ke(a)&&(i=a),[l.key||"",s,l,i]}function Ip(e,t,o){const r=e;for(const a in o){const l=`${t}__${a}`;r.__datetimeFormatters.has(l)&&r.__datetimeFormatters.delete(l)}}function Op(e,...t){const{numberFormats:o,unresolving:r,fallbackLocale:a,onWarn:l,localeFallbacker:i}=e,{__numberFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!Uv.numberFormat)return l(ir(Jt.CANNOT_FORMAT_NUMBER)),mi;const[c,u,d,f]=nu(...t),h=ot(d.missingWarn)?d.missingWarn:e.missingWarn,m=ot(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,p=!!d.part,g=pd(e,d),_=i(e,a,g);if(!De(c)||c==="")return new Intl.NumberFormat(g,f).format(u);let v={},y,b=null,$=g,w=null;const E="number format";for(let N=0;N<_.length;N++){if(y=w=_[N],process.env.NODE_ENV!=="production"&&g!==y&&ls(m,c)&&l(ir(Jt.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:y})),process.env.NODE_ENV!=="production"&&g!==y){const M=e.__v_emitter;M&&M.emit("fallback",{type:E,key:c,from:$,to:w,groupId:`${E}:${c}`})}if(v=o[y]||{},b=v[c],Ke(b))break;md(e,c,y,h,E),$=w}if(!Ke(b)||!De(y))return r?as:c;let S=`${y}__${c}`;rs(f)||(S=`${S}__${JSON.stringify(f)}`);let x=s.get(S);return x||(x=new Intl.NumberFormat(y,Vt({},b,f)),s.set(S,x)),p?x.formatToParts(u):x.format(u)}const jv=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function nu(...e){const[t,o,r,a]=e,l=st();let i=st();if(!Bt(t))throw go(Ht.INVALID_ARGUMENT);const s=t;return De(o)?l.key=o:Ke(o)&&Object.keys(o).forEach(c=>{jv.includes(c)?i[c]=o[c]:l[c]=o[c]}),De(r)?l.locale=r:Ke(r)&&(i=r),Ke(a)&&(i=a),[l.key||"",s,l,i]}function Rp(e,t,o){const r=e;for(const a in o){const l=`${t}__${a}`;r.__numberFormatters.has(l)&&r.__numberFormatters.delete(l)}}const hA=e=>e,gA=e=>"",vA="text",yA=e=>e.length===0?"":cd(e),_A=K6;function Fp(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function bA(e){const t=Bt(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Bt(e.named.count)||Bt(e.named.n))?Bt(e.named.count)?e.named.count:Bt(e.named.n)?e.named.n:t:t}function wA(e,t){t.count||(t.count=e),t.n||(t.n=e)}function $A(e={}){const t=e.locale,o=bA(e),r=tt(e.pluralRules)&&De(t)&&ut(e.pluralRules[t])?e.pluralRules[t]:Fp,a=tt(e.pluralRules)&&De(t)&&ut(e.pluralRules[t])?Fp:void 0,l=v=>v[r(o,v.length,a)],i=e.list||[],s=v=>i[v],c=e.named||st();Bt(e.pluralIndex)&&wA(o,c);const u=v=>c[v];function d(v,y){const b=ut(e.messages)?e.messages(v,!!y):tt(e.messages)?e.messages[v]:!1;return b||(e.parent?e.parent.message(v):gA)}const f=v=>e.modifiers?e.modifiers[v]:hA,h=Ke(e.processor)&&ut(e.processor.normalize)?e.processor.normalize:yA,m=Ke(e.processor)&&ut(e.processor.interpolate)?e.processor.interpolate:_A,p=Ke(e.processor)&&De(e.processor.type)?e.processor.type:vA,_={list:s,named:u,plural:l,linked:(v,...y)=>{const[b,$]=y;let w="text",E="";y.length===1?tt(b)?(E=b.modifier||E,w=b.type||w):De(b)&&(E=b||E):y.length===2&&(De(b)&&(E=b||E),De($)&&(w=$||w));const S=d(v,!0)(_),x=w==="vnode"&&yt(S)&&E?S[0]:S;return E?f(E)(x,w):x},message:d,type:p,interpolate:m,normalize:h,values:Vt(st(),i,c)};return _}const zp=()=>"",$n=e=>ut(e);function Up(e,...t){const{fallbackFormat:o,postTranslation:r,unresolving:a,messageCompiler:l,fallbackLocale:i,messages:s}=e,[c,u]=ou(...t),d=ot(u.missingWarn)?u.missingWarn:e.missingWarn,f=ot(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,h=ot(u.escapeParameter)?u.escapeParameter:e.escapeParameter,m=!!u.resolvedMessage,p=De(u.default)||ot(u.default)?ot(u.default)?l?c:()=>c:u.default:o?l?c:()=>c:null,g=o||p!=null&&(De(p)||ut(p)),_=pd(e,u);h&&kA(u);let[v,y,b]=m?[c,_,s[_]||st()]:Wv(e,c,_,i,f,d),$=v,w=c;if(!m&&!(De($)||Sn($)||$n($))&&g&&($=p,w=$),!m&&(!(De($)||Sn($)||$n($))||!De(y)))return a?as:c;if(process.env.NODE_ENV!=="production"&&De($)&&e.messageCompiler==null)return lo(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`),c;let E=!1;const S=()=>{E=!0},x=$n($)?$:qv(e,c,y,$,w,S);if(E)return $;const N=TA(e,y,b,u),M=$A(N),V=EA(e,x,M);let k=r?r(V,c):V;if(h&&De(k)&&(k=G6(k)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const C={timestamp:Date.now(),key:De(c)?c:$n($)?$.key:"",locale:y||($n($)?$.locale:""),format:De($)?$:$n($)?$.source:"",message:k};C.meta=Vt({},e.__meta,dA()||{}),UB(C)}return k}function kA(e){yt(e.list)?e.list=e.list.map(t=>De(t)?$p(t):t):tt(e.named)&&Object.keys(e.named).forEach(t=>{De(e.named[t])&&(e.named[t]=$p(e.named[t]))})}function Wv(e,t,o,r,a,l){const{messages:i,onWarn:s,messageResolver:c,localeFallbacker:u}=e,d=u(e,r,o);let f=st(),h,m=null,p=o,g=null;const _="translate";for(let v=0;v<d.length;v++){if(h=g=d[v],process.env.NODE_ENV!=="production"&&o!==h&&!zv(o,h)&&ls(a,t)&&s(ir(Jt.FALLBACK_TO_TRANSLATE,{key:t,target:h})),process.env.NODE_ENV!=="production"&&o!==h){const w=e.__v_emitter;w&&w.emit("fallback",{type:_,key:t,from:p,to:g,groupId:`${_}:${t}`})}f=i[h]||st();let y=null,b,$;if(process.env.NODE_ENV!=="production"&&Fn&&(y=window.performance.now(),b="intlify-message-resolve-start",$="intlify-message-resolve-end",gn&&gn(b)),(m=c(f,t))===null&&(m=f[t]),process.env.NODE_ENV!=="production"&&Fn){const w=window.performance.now(),E=e.__v_emitter;E&&y&&m&&E.emit("message-resolve",{type:"message-resolve",key:t,message:m,time:w-y,groupId:`${_}:${t}`}),b&&$&&gn&&lr&&(gn($),lr("intlify message resolve",b,$))}if(De(m)||Sn(m)||$n(m))break;if(!mA(h,d)){const w=md(e,t,h,l,_);w!==t&&(m=w)}p=g}return[m,h,f]}function qv(e,t,o,r,a,l){const{messageCompiler:i,warnHtmlMessage:s}=e;if($n(r)){const h=r;return h.locale=h.locale||o,h.key=h.key||t,h}if(i==null){const h=()=>r;return h.locale=o,h.key=t,h}let c=null,u,d;process.env.NODE_ENV!=="production"&&Fn&&(c=window.performance.now(),u="intlify-message-compilation-start",d="intlify-message-compilation-end",gn&&gn(u));const f=i(r,CA(e,o,a,r,s,l));if(process.env.NODE_ENV!=="production"&&Fn){const h=window.performance.now(),m=e.__v_emitter;m&&c&&m.emit("message-compilation",{type:"message-compilation",message:r,time:h-c,groupId:`translate:${t}`}),u&&d&&gn&&lr&&(gn(d),lr("intlify message compilation",u,d))}return f.locale=o,f.key=t,f.source=r,f}function EA(e,t,o){let r=null,a,l;process.env.NODE_ENV!=="production"&&Fn&&(r=window.performance.now(),a="intlify-message-evaluation-start",l="intlify-message-evaluation-end",gn&&gn(a));const i=t(o);if(process.env.NODE_ENV!=="production"&&Fn){const s=window.performance.now(),c=e.__v_emitter;c&&r&&c.emit("message-evaluation",{type:"message-evaluation",value:i,time:s-r,groupId:`translate:${t.key}`}),a&&l&&gn&&lr&&(gn(l),lr("intlify message evaluation",a,l))}return i}function ou(...e){const[t,o,r]=e,a=st();if(!De(t)&&!Bt(t)&&!$n(t)&&!Sn(t))throw go(Ht.INVALID_ARGUMENT);const l=Bt(t)?String(t):($n(t),t);return Bt(o)?a.plural=o:De(o)?a.default=o:Ke(o)&&!rs(o)?a.named=o:yt(o)&&(a.list=o),Bt(r)?a.plural=r:De(r)?a.default=r:Ke(r)&&Vt(a,r),[l,a]}function CA(e,t,o,r,a,l){return{locale:t,key:o,warnHtmlMessage:a,onError:i=>{if(l&&l(i),process.env.NODE_ENV!=="production"){const s=SA(r),c=`Message compilation error: ${i.message}`,u=i.location&&s&&J6(s,i.location.start.offset,i.location.end.offset),d=e.__v_emitter;d&&s&&d.emit("compile-error",{message:s,error:i.message,start:i.location&&i.location.start.offset,end:i.location&&i.location.end.offset,groupId:`translate:${o}`}),console.error(u?`${c}
|
|
422
|
-
${u}`:c)}else throw i},onCacheKey:i=>
|
|
421
|
+
*/function NB(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Yo().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Yo().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Sn(e){return tt(e)&&fd(e)===0&&(Mn(e,"b")||Mn(e,"body"))}const Cv=["b","body"];function DB(e){return Oo(e,Cv)}const Sv=["c","cases"];function xB(e){return Oo(e,Sv,[])}const Tv=["s","static"];function BB(e){return Oo(e,Tv)}const Nv=["i","items"];function AB(e){return Oo(e,Nv,[])}const Dv=["t","type"];function fd(e){return Oo(e,Dv)}const xv=["v","value"];function El(e,t){const o=Oo(e,xv);if(o!=null)return o;throw Ia(t)}const Bv=["m","modifier"];function MB(e){return Oo(e,Bv)}const Av=["k","key"];function VB(e){const t=Oo(e,Av);if(t)return t;throw Ia(6)}function Oo(e,t,o){for(let r=0;r<t.length;r++){const a=t[r];if(Mn(e,a)&&e[a]!=null)return e[a]}return o}const Mv=[...Cv,...Sv,...Tv,...Nv,...Av,...Bv,...xv,...Dv];function Ia(e){return new Error(`unhandled node type: ${e}`)}function tc(e){return o=>LB(o,e)}function LB(e,t){const o=DB(t);if(o==null)throw Ia(0);if(fd(o)===1){const l=xB(o);return e.plural(l.reduce((i,s)=>[...i,Np(e,s)],[]))}else return Np(e,o)}function Np(e,t){const o=BB(t);if(o!=null)return e.type==="text"?o:e.normalize([o]);{const r=AB(t).reduce((a,l)=>[...a,eu(e,l)],[]);return e.normalize(r)}}function eu(e,t){const o=fd(t);switch(o){case 3:return El(t,o);case 9:return El(t,o);case 4:{const r=t;if(Mn(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(Mn(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Ia(o)}case 5:{const r=t;if(Mn(r,"i")&&Bt(r.i))return e.interpolate(e.list(r.i));if(Mn(r,"index")&&Bt(r.index))return e.interpolate(e.list(r.index));throw Ia(o)}case 6:{const r=t,a=MB(r),l=VB(r);return e.linked(eu(e,l),a?eu(e,a):void 0,e.type)}case 7:return El(t,o);case 8:return El(t,o);default:throw new Error(`unhandled node on format message part: ${o}`)}}const PB="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function IB(e,t){t&&rB(e)&&lo(os(PB,{source:e}))}const OB=e=>e;let Cl=st();function RB(e,t={}){let o=!1;const r=t.onError||nB;return t.onError=a=>{o=!0,r(a)},{...TB(e,t),detectError:o}}function FB(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&De(e)){const o=ot(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&IB(e,o);const a=(t.onCacheKey||OB)(e),l=Cl[a];if(l)return l;const{ast:i,detectError:s}=RB(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),c=tc(i);return s?c:Cl[a]=c}else{if(process.env.NODE_ENV!=="production"&&!Sn(e))return lo(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const o=e.cacheKey;if(o){const r=Cl[o];return r||(Cl[o]=tc(e))}else return tc(e)}}let Oa=null;function zB(e){Oa=e}function UB(e,t,o){Oa&&Oa.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:o})}const HB=jB("function:translate");function jB(e){return t=>Oa&&Oa.emit(e,t)}const Ht={INVALID_ARGUMENT:eB,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},WB=24;function go(e){return Kr(e,null,process.env.NODE_ENV!=="production"?{messages:qB}:void 0)}const qB={[Ht.INVALID_ARGUMENT]:"Invalid arguments",[Ht.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[Ht.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[Ht.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[Ht.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[Ht.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[Ht.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function pd(e,t){return t.locale!=null?Dp(t.locale):Dp(e.locale)}let nc;function Dp(e){if(De(e))return e;if(ut(e)){if(e.resolvedOnce&&nc!=null)return nc;if(e.constructor.name==="Function"){const t=e();if(K6(t))throw go(Ht.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return nc=t}else throw go(Ht.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw go(Ht.NOT_SUPPORT_LOCALE_TYPE)}function GB(e,t,o){return[...new Set([o,...yt(t)?t:tt(t)?Object.keys(t):De(t)?[t]:[o]])]}function Vv(e,t,o){const r=De(o)?o:Ra,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let l=a.__localeChainCache.get(r);if(!l){l=[];let i=[o];for(;yt(i);)i=xp(l,i,t);const s=yt(t)||!Ke(t)?t:t.default?t.default:null;i=De(s)?[s]:s,yt(i)&&xp(l,i,!1),a.__localeChainCache.set(r,l)}return l}function xp(e,t,o){let r=!0;for(let a=0;a<t.length&&ot(r);a++){const l=t[a];De(l)&&(r=YB(e,t[a],o))}return r}function YB(e,t,o){let r;const a=t.split("-");do{const l=a.join("-");r=XB(e,l,o),a.splice(-1,1)}while(a.length&&r===!0);return r}function XB(e,t,o){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const a=t.replace(/!/g,"");e.push(a),(yt(o)||Ke(o))&&o[a]&&(r=o[a])}return r}const Ro=[];Ro[0]={w:[0],i:[3,0],"[":[4],o:[7]};Ro[1]={w:[1],".":[2],"[":[4],o:[7]};Ro[2]={w:[2],i:[3,0],0:[3,0]};Ro[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Ro[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Ro[5]={"'":[4,0],o:8,l:[5,0]};Ro[6]={'"':[4,0],o:8,l:[6,0]};const KB=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function JB(e){return KB.test(e)}function ZB(e){const t=e.charCodeAt(0),o=e.charCodeAt(e.length-1);return t===o&&(t===34||t===39)?e.slice(1,-1):e}function QB(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function eA(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:JB(t)?ZB(t):"*"+t}function tA(e){const t=[];let o=-1,r=0,a=0,l,i,s,c,u,d,f;const h=[];h[0]=()=>{i===void 0?i=s:i+=s},h[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},h[2]=()=>{h[0](),a++},h[3]=()=>{if(a>0)a--,r=4,h[0]();else{if(a=0,i===void 0||(i=eA(i),i===!1))return!1;h[1]()}};function m(){const p=e[o+1];if(r===5&&p==="'"||r===6&&p==='"')return o++,s="\\"+p,h[0](),!0}for(;r!==null;)if(o++,l=e[o],!(l==="\\"&&m())){if(c=QB(l),f=Ro[r],u=f[c]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(d=h[u[1]],d&&(s=l,d()===!1))))return;if(r===7)return t}}const Bp=new Map;function nA(e,t){return tt(e)?e[t]:null}function oA(e,t){if(!tt(e))return null;let o=Bp.get(t);if(o||(o=tA(t),o&&Bp.set(t,o)),!o)return null;const r=o.length;let a=e,l=0;for(;l<r;){const i=o[l];if(Mv.includes(i)&&Sn(a))return null;const s=a[i];if(s===void 0||ut(a))return null;a=s,l++}return a}const Jt={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},rA=8,aA={[Jt.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[Jt.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[Jt.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[Jt.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[Jt.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[Jt.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[Jt.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function ir(e,...t){return os(aA[e],...t)}const lA="11.2.8",as=-1,Ra="en-US",mi="",Ap=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function iA(){return{upper:(e,t)=>t==="text"&&De(e)?e.toUpperCase():t==="vnode"&&tt(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&De(e)?e.toLowerCase():t==="vnode"&&tt(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&De(e)?Ap(e):t==="vnode"&&tt(e)&&"__v_isVNode"in e?Ap(e.children):e}}let Lv;function sA(e){Lv=e}let Pv;function cA(e){Pv=e}let Iv;function uA(e){Iv=e}let Ov=null;const dA=e=>{Ov=e},fA=()=>Ov;let Rv=null;const Mp=e=>{Rv=e},pA=()=>Rv;let Vp=0;function mA(e={}){const t=ut(e.onWarn)?e.onWarn:lo,o=De(e.version)?e.version:lA,r=De(e.locale)||ut(e.locale)?e.locale:Ra,a=ut(r)?Ra:r,l=yt(e.fallbackLocale)||Ke(e.fallbackLocale)||De(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,i=Ke(e.messages)?e.messages:oc(a),s=Ke(e.datetimeFormats)?e.datetimeFormats:oc(a),c=Ke(e.numberFormats)?e.numberFormats:oc(a),u=Vt(st(),e.modifiers,iA()),d=e.pluralRules||st(),f=ut(e.missing)?e.missing:null,h=ot(e.missingWarn)||Ir(e.missingWarn)?e.missingWarn:!0,m=ot(e.fallbackWarn)||Ir(e.fallbackWarn)?e.fallbackWarn:!0,p=!!e.fallbackFormat,g=!!e.unresolving,_=ut(e.postTranslation)?e.postTranslation:null,v=Ke(e.processor)?e.processor:null,y=ot(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter,$=ut(e.messageCompiler)?e.messageCompiler:Lv;process.env.NODE_ENV!=="production"&&ut(e.messageCompiler)&&id(ir(Jt.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const w=ut(e.messageResolver)?e.messageResolver:Pv||nA,E=ut(e.localeFallbacker)?e.localeFallbacker:Iv||GB,S=tt(e.fallbackContext)?e.fallbackContext:void 0,x=e,N=tt(x.__datetimeFormatters)?x.__datetimeFormatters:new Map,M=tt(x.__numberFormatters)?x.__numberFormatters:new Map,V=tt(x.__meta)?x.__meta:{};Vp++;const k={version:o,cid:Vp,locale:r,fallbackLocale:l,messages:i,modifiers:u,pluralRules:d,missing:f,missingWarn:h,fallbackWarn:m,fallbackFormat:p,unresolving:g,postTranslation:_,processor:v,warnHtmlMessage:y,escapeParameter:b,messageCompiler:$,messageResolver:w,localeFallbacker:E,fallbackContext:S,onWarn:t,__meta:V};return k.datetimeFormats=s,k.numberFormats=c,k.__datetimeFormatters=N,k.__numberFormatters=M,process.env.NODE_ENV!=="production"&&(k.__v_emitter=x.__v_emitter!=null?x.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&UB(k,o,V),k}const oc=e=>({[e]:st()});function ls(e,t){return e instanceof RegExp?e.test(t):e}function Fv(e,t){return e instanceof RegExp?e.test(t):e}function md(e,t,o,r,a){const{missing:l,onWarn:i}=e;if(process.env.NODE_ENV!=="production"){const s=e.__v_emitter;s&&s.emit("missing",{locale:o,key:t,type:a,groupId:`${a}:${t}`})}if(l!==null){const s=l(e,o,t,a);return De(s)?s:t}else return process.env.NODE_ENV!=="production"&&Fv(r,t)&&i(ir(Jt.NOT_FOUND_KEY,{key:t,locale:o})),t}function ia(e,t,o){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,o,t)}function zv(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function hA(e,t){const o=t.indexOf(e);if(o===-1)return!1;for(let r=o+1;r<t.length;r++)if(zv(e,t[r]))return!0;return!1}const Lp=typeof Intl<"u",Uv={dateTimeFormat:Lp&&typeof Intl.DateTimeFormat<"u",numberFormat:Lp&&typeof Intl.NumberFormat<"u"};function Pp(e,...t){const{datetimeFormats:o,unresolving:r,fallbackLocale:a,onWarn:l,localeFallbacker:i}=e,{__datetimeFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!Uv.dateTimeFormat)return l(ir(Jt.CANNOT_FORMAT_DATE)),mi;const[c,u,d,f]=tu(...t),h=ot(d.missingWarn)?d.missingWarn:e.missingWarn,m=ot(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,p=!!d.part,g=pd(e,d),_=i(e,a,g);if(!De(c)||c==="")return new Intl.DateTimeFormat(g,f).format(u);let v={},y,b=null,$=g,w=null;const E="datetime format";for(let N=0;N<_.length;N++){if(y=w=_[N],process.env.NODE_ENV!=="production"&&g!==y&&ls(m,c)&&l(ir(Jt.FALLBACK_TO_DATE_FORMAT,{key:c,target:y})),process.env.NODE_ENV!=="production"&&g!==y){const M=e.__v_emitter;M&&M.emit("fallback",{type:E,key:c,from:$,to:w,groupId:`${E}:${c}`})}if(v=o[y]||{},b=v[c],Ke(b))break;md(e,c,y,h,E),$=w}if(!Ke(b)||!De(y))return r?as:c;let S=`${y}__${c}`;rs(f)||(S=`${S}__${JSON.stringify(f)}`);let x=s.get(S);return x||(x=new Intl.DateTimeFormat(y,Vt({},b,f)),s.set(S,x)),p?x.formatToParts(u):x.format(u)}const Hv=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function tu(...e){const[t,o,r,a]=e,l=st();let i=st(),s;if(De(t)){const c=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw go(Ht.INVALID_ISO_DATE_ARGUMENT);const u=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();s=new Date(u);try{s.toISOString()}catch{throw go(Ht.INVALID_ISO_DATE_ARGUMENT)}}else if(q6(t)){if(isNaN(t.getTime()))throw go(Ht.INVALID_DATE_ARGUMENT);s=t}else if(Bt(t))s=t;else throw go(Ht.INVALID_ARGUMENT);return De(o)?l.key=o:Ke(o)&&Object.keys(o).forEach(c=>{Hv.includes(c)?i[c]=o[c]:l[c]=o[c]}),De(r)?l.locale=r:Ke(r)&&(i=r),Ke(a)&&(i=a),[l.key||"",s,l,i]}function Ip(e,t,o){const r=e;for(const a in o){const l=`${t}__${a}`;r.__datetimeFormatters.has(l)&&r.__datetimeFormatters.delete(l)}}function Op(e,...t){const{numberFormats:o,unresolving:r,fallbackLocale:a,onWarn:l,localeFallbacker:i}=e,{__numberFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!Uv.numberFormat)return l(ir(Jt.CANNOT_FORMAT_NUMBER)),mi;const[c,u,d,f]=nu(...t),h=ot(d.missingWarn)?d.missingWarn:e.missingWarn,m=ot(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,p=!!d.part,g=pd(e,d),_=i(e,a,g);if(!De(c)||c==="")return new Intl.NumberFormat(g,f).format(u);let v={},y,b=null,$=g,w=null;const E="number format";for(let N=0;N<_.length;N++){if(y=w=_[N],process.env.NODE_ENV!=="production"&&g!==y&&ls(m,c)&&l(ir(Jt.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:y})),process.env.NODE_ENV!=="production"&&g!==y){const M=e.__v_emitter;M&&M.emit("fallback",{type:E,key:c,from:$,to:w,groupId:`${E}:${c}`})}if(v=o[y]||{},b=v[c],Ke(b))break;md(e,c,y,h,E),$=w}if(!Ke(b)||!De(y))return r?as:c;let S=`${y}__${c}`;rs(f)||(S=`${S}__${JSON.stringify(f)}`);let x=s.get(S);return x||(x=new Intl.NumberFormat(y,Vt({},b,f)),s.set(S,x)),p?x.formatToParts(u):x.format(u)}const jv=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function nu(...e){const[t,o,r,a]=e,l=st();let i=st();if(!Bt(t))throw go(Ht.INVALID_ARGUMENT);const s=t;return De(o)?l.key=o:Ke(o)&&Object.keys(o).forEach(c=>{jv.includes(c)?i[c]=o[c]:l[c]=o[c]}),De(r)?l.locale=r:Ke(r)&&(i=r),Ke(a)&&(i=a),[l.key||"",s,l,i]}function Rp(e,t,o){const r=e;for(const a in o){const l=`${t}__${a}`;r.__numberFormatters.has(l)&&r.__numberFormatters.delete(l)}}const gA=e=>e,vA=e=>"",yA="text",_A=e=>e.length===0?"":cd(e),bA=J6;function Fp(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function wA(e){const t=Bt(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Bt(e.named.count)||Bt(e.named.n))?Bt(e.named.count)?e.named.count:Bt(e.named.n)?e.named.n:t:t}function $A(e,t){t.count||(t.count=e),t.n||(t.n=e)}function kA(e={}){const t=e.locale,o=wA(e),r=tt(e.pluralRules)&&De(t)&&ut(e.pluralRules[t])?e.pluralRules[t]:Fp,a=tt(e.pluralRules)&&De(t)&&ut(e.pluralRules[t])?Fp:void 0,l=v=>v[r(o,v.length,a)],i=e.list||[],s=v=>i[v],c=e.named||st();Bt(e.pluralIndex)&&$A(o,c);const u=v=>c[v];function d(v,y){const b=ut(e.messages)?e.messages(v,!!y):tt(e.messages)?e.messages[v]:!1;return b||(e.parent?e.parent.message(v):vA)}const f=v=>e.modifiers?e.modifiers[v]:gA,h=Ke(e.processor)&&ut(e.processor.normalize)?e.processor.normalize:_A,m=Ke(e.processor)&&ut(e.processor.interpolate)?e.processor.interpolate:bA,p=Ke(e.processor)&&De(e.processor.type)?e.processor.type:yA,_={list:s,named:u,plural:l,linked:(v,...y)=>{const[b,$]=y;let w="text",E="";y.length===1?tt(b)?(E=b.modifier||E,w=b.type||w):De(b)&&(E=b||E):y.length===2&&(De(b)&&(E=b||E),De($)&&(w=$||w));const S=d(v,!0)(_),x=w==="vnode"&&yt(S)&&E?S[0]:S;return E?f(E)(x,w):x},message:d,type:p,interpolate:m,normalize:h,values:Vt(st(),i,c)};return _}const zp=()=>"",$n=e=>ut(e);function Up(e,...t){const{fallbackFormat:o,postTranslation:r,unresolving:a,messageCompiler:l,fallbackLocale:i,messages:s}=e,[c,u]=ou(...t),d=ot(u.missingWarn)?u.missingWarn:e.missingWarn,f=ot(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,h=ot(u.escapeParameter)?u.escapeParameter:e.escapeParameter,m=!!u.resolvedMessage,p=De(u.default)||ot(u.default)?ot(u.default)?l?c:()=>c:u.default:o?l?c:()=>c:null,g=o||p!=null&&(De(p)||ut(p)),_=pd(e,u);h&&EA(u);let[v,y,b]=m?[c,_,s[_]||st()]:Wv(e,c,_,i,f,d),$=v,w=c;if(!m&&!(De($)||Sn($)||$n($))&&g&&($=p,w=$),!m&&(!(De($)||Sn($)||$n($))||!De(y)))return a?as:c;if(process.env.NODE_ENV!=="production"&&De($)&&e.messageCompiler==null)return lo(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`),c;let E=!1;const S=()=>{E=!0},x=$n($)?$:qv(e,c,y,$,w,S);if(E)return $;const N=NA(e,y,b,u),M=kA(N),V=CA(e,x,M);let k=r?r(V,c):V;if(h&&De(k)&&(k=Y6(k)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const C={timestamp:Date.now(),key:De(c)?c:$n($)?$.key:"",locale:y||($n($)?$.locale:""),format:De($)?$:$n($)?$.source:"",message:k};C.meta=Vt({},e.__meta,fA()||{}),HB(C)}return k}function EA(e){yt(e.list)?e.list=e.list.map(t=>De(t)?$p(t):t):tt(e.named)&&Object.keys(e.named).forEach(t=>{De(e.named[t])&&(e.named[t]=$p(e.named[t]))})}function Wv(e,t,o,r,a,l){const{messages:i,onWarn:s,messageResolver:c,localeFallbacker:u}=e,d=u(e,r,o);let f=st(),h,m=null,p=o,g=null;const _="translate";for(let v=0;v<d.length;v++){if(h=g=d[v],process.env.NODE_ENV!=="production"&&o!==h&&!zv(o,h)&&ls(a,t)&&s(ir(Jt.FALLBACK_TO_TRANSLATE,{key:t,target:h})),process.env.NODE_ENV!=="production"&&o!==h){const w=e.__v_emitter;w&&w.emit("fallback",{type:_,key:t,from:p,to:g,groupId:`${_}:${t}`})}f=i[h]||st();let y=null,b,$;if(process.env.NODE_ENV!=="production"&&Fn&&(y=window.performance.now(),b="intlify-message-resolve-start",$="intlify-message-resolve-end",gn&&gn(b)),(m=c(f,t))===null&&(m=f[t]),process.env.NODE_ENV!=="production"&&Fn){const w=window.performance.now(),E=e.__v_emitter;E&&y&&m&&E.emit("message-resolve",{type:"message-resolve",key:t,message:m,time:w-y,groupId:`${_}:${t}`}),b&&$&&gn&&lr&&(gn($),lr("intlify message resolve",b,$))}if(De(m)||Sn(m)||$n(m))break;if(!hA(h,d)){const w=md(e,t,h,l,_);w!==t&&(m=w)}p=g}return[m,h,f]}function qv(e,t,o,r,a,l){const{messageCompiler:i,warnHtmlMessage:s}=e;if($n(r)){const h=r;return h.locale=h.locale||o,h.key=h.key||t,h}if(i==null){const h=()=>r;return h.locale=o,h.key=t,h}let c=null,u,d;process.env.NODE_ENV!=="production"&&Fn&&(c=window.performance.now(),u="intlify-message-compilation-start",d="intlify-message-compilation-end",gn&&gn(u));const f=i(r,SA(e,o,a,r,s,l));if(process.env.NODE_ENV!=="production"&&Fn){const h=window.performance.now(),m=e.__v_emitter;m&&c&&m.emit("message-compilation",{type:"message-compilation",message:r,time:h-c,groupId:`translate:${t}`}),u&&d&&gn&&lr&&(gn(d),lr("intlify message compilation",u,d))}return f.locale=o,f.key=t,f.source=r,f}function CA(e,t,o){let r=null,a,l;process.env.NODE_ENV!=="production"&&Fn&&(r=window.performance.now(),a="intlify-message-evaluation-start",l="intlify-message-evaluation-end",gn&&gn(a));const i=t(o);if(process.env.NODE_ENV!=="production"&&Fn){const s=window.performance.now(),c=e.__v_emitter;c&&r&&c.emit("message-evaluation",{type:"message-evaluation",value:i,time:s-r,groupId:`translate:${t.key}`}),a&&l&&gn&&lr&&(gn(l),lr("intlify message evaluation",a,l))}return i}function ou(...e){const[t,o,r]=e,a=st();if(!De(t)&&!Bt(t)&&!$n(t)&&!Sn(t))throw go(Ht.INVALID_ARGUMENT);const l=Bt(t)?String(t):($n(t),t);return Bt(o)?a.plural=o:De(o)?a.default=o:Ke(o)&&!rs(o)?a.named=o:yt(o)&&(a.list=o),Bt(r)?a.plural=r:De(r)?a.default=r:Ke(r)&&Vt(a,r),[l,a]}function SA(e,t,o,r,a,l){return{locale:t,key:o,warnHtmlMessage:a,onError:i=>{if(l&&l(i),process.env.NODE_ENV!=="production"){const s=TA(r),c=`Message compilation error: ${i.message}`,u=i.location&&s&&Z6(s,i.location.start.offset,i.location.end.offset),d=e.__v_emitter;d&&s&&d.emit("compile-error",{message:s,error:i.message,start:i.location&&i.location.start.offset,end:i.location&&i.location.end.offset,groupId:`translate:${o}`}),console.error(u?`${c}
|
|
422
|
+
${u}`:c)}else throw i},onCacheKey:i=>j6(t,o,i)}}function TA(e){if(De(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function NA(e,t,o,r){const{modifiers:a,pluralRules:l,messageResolver:i,fallbackLocale:s,fallbackWarn:c,missingWarn:u,fallbackContext:d}=e,h={locale:t,modifiers:a,pluralRules:l,messages:(m,p)=>{let g=i(o,m);if(g==null&&(d||p)){const[,,_]=Wv(d||e,m,t,s,c,u);g=i(_,m)}if(De(g)||Sn(g)){let _=!1;const y=qv(e,m,t,g,m,()=>{_=!0});return _?zp:y}else return $n(g)?g:zp}};return e.processor&&(h.processor=e.processor),r.list&&(h.list=r.list),r.named&&(h.named=r.named),Bt(r.plural)&&(h.pluralIndex=r.plural),h}NB();function DA(){return Gv().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Gv(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const xA=typeof Proxy=="function",BA="devtools-plugin:setup",AA="plugin:settings:set";let mr,ru;function MA(){var e;return mr!==void 0||(typeof window<"u"&&window.performance?(mr=!0,ru=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(mr=!0,ru=globalThis.perf_hooks.performance):mr=!1),mr}function VA(){return MA()?ru.now():Date.now()}class LA{constructor(t,o){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=o;const r={};if(t.settings)for(const i in t.settings){const s=t.settings[i];r[i]=s.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let l=Object.assign({},r);try{const i=localStorage.getItem(a),s=JSON.parse(i);Object.assign(l,s)}catch{}this.fallbacks={getSettings(){return l},setSettings(i){try{localStorage.setItem(a,JSON.stringify(i))}catch{}l=i},now(){return VA()}},o&&o.on(AA,(i,s)=>{i===this.plugin.id&&this.fallbacks.setSettings(s)}),this.proxiedOn=new Proxy({},{get:(i,s)=>this.target?this.target.on[s]:(...c)=>{this.onQueue.push({method:s,args:c})}}),this.proxiedTarget=new Proxy({},{get:(i,s)=>this.target?this.target[s]:s==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(s)?(...c)=>(this.targetQueue.push({method:s,args:c,resolve:()=>{}}),this.fallbacks[s](...c)):(...c)=>new Promise(u=>{this.targetQueue.push({method:s,args:c,resolve:u})})})}async setRealTarget(t){this.target=t;for(const o of this.onQueue)this.target.on[o.method](...o.args);for(const o of this.targetQueue)o.resolve(await this.target[o.method](...o.args))}}function PA(e,t){const o=e,r=Gv(),a=DA(),l=xA&&o.enableEarlyProxy;if(a&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!l))a.emit(BA,e,t);else{const i=l?new LA(o,a):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:o,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}/*!
|
|
423
423
|
* vue-i18n v11.2.8
|
|
424
424
|
* (c) 2025 kazuya kawaguchi
|
|
425
425
|
* Released under the MIT License.
|
|
426
|
-
*/const
|
|
427
|
-
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[kn.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[kn.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function Rr(e,...t){return os(RA[e],...t)}function za(e){if(!tt(e)||Sn(e))return e;for(const t in e)if(Mn(e,t))if(!t.includes("."))tt(e[t])&&za(e[t]);else{const o=t.split("."),r=o.length-1;let a=e,l=!1;for(let i=0;i<r;i++){if(o[i]==="__proto__")throw new Error(`unsafe key: ${o[i]}`);if(o[i]in a||(a[o[i]]=st()),!tt(a[o[i]])){process.env.NODE_ENV!=="production"&&lo(Rr(kn.IGNORE_OBJ_FLATTEN,{key:o[i]})),l=!0;break}a=a[o[i]]}if(l||(Sn(a)?Mv.includes(o[r])||delete e[t]:(a[o[r]]=e[t],delete e[t])),!Sn(a)){const i=a[o[r]];tt(i)&&za(i)}}return e}function hd(e,t){const{messages:o,__i18n:r,messageResolver:a,flatJson:l}=t,i=Ke(o)?o:yt(r)?st():{[e]:st()};if(yt(r)&&r.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:c,resource:u}=s;c?(i[c]=i[c]||st(),Ul(u,i[c])):Ul(u,i)}else De(s)&&Ul(JSON.parse(s),i)}),a==null&&l)for(const s in i)Mn(i,s)&&za(i[s]);return i}function Kv(e){return e.type}function Jv(e,t,o){let r=tt(t.messages)?t.messages:st();"__i18nGlobal"in o&&(r=hd(e.locale.value,{messages:r,__i18n:o.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(l=>{e.mergeLocaleMessage(l,r[l])});{if(tt(t.datetimeFormats)){const l=Object.keys(t.datetimeFormats);l.length&&l.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(tt(t.numberFormats)){const l=Object.keys(t.numberFormats);l.length&&l.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function Hp(e){return n.createVNode(n.Text,null,e,0)}function Br(){const e="currentInstance";return e in ws?ws[e]:ws.getCurrentInstance()}const jp="__INTLIFY_META__",Wp=()=>[],FA=()=>!1;let qp=0;function Gp(e){return(t,o,r,a)=>e(o,r,Br()||void 0,a)}const zA=()=>{const e=Br();let t=null;return e&&(t=Kv(e)[jp])?{[jp]:t}:null};function gd(e={}){const{__root:t,__injectWithOption:o}=e,r=t===void 0,a=e.flatJson,l=Fn?n.ref:n.shallowRef;let i=ot(e.inheritLocale)?e.inheritLocale:!0;const s=l(t&&i?t.locale.value:De(e.locale)?e.locale:Ra),c=l(t&&i?t.fallbackLocale.value:De(e.fallbackLocale)||yt(e.fallbackLocale)||Ke(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=l(hd(s.value,e)),d=l(Ke(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),f=l(Ke(e.numberFormats)?e.numberFormats:{[s.value]:{}});let h=t?t.missingWarn:ot(e.missingWarn)||Ir(e.missingWarn)?e.missingWarn:!0,m=t?t.fallbackWarn:ot(e.fallbackWarn)||Ir(e.fallbackWarn)?e.fallbackWarn:!0,p=t?t.fallbackRoot:ot(e.fallbackRoot)?e.fallbackRoot:!0,g=!!e.fallbackFormat,_=ut(e.missing)?e.missing:null,v=ut(e.missing)?Gp(e.missing):null,y=ut(e.postTranslation)?e.postTranslation:null,b=t?t.warnHtmlMessage:ot(e.warnHtmlMessage)?e.warnHtmlMessage:!0,$=!!e.escapeParameter;const w=t?t.modifiers:Ke(e.modifiers)?e.modifiers:{};let E=e.pluralRules||t&&t.pluralRules,S;S=(()=>{r&&Mp(null);const le={version:PA,locale:s.value,fallbackLocale:c.value,messages:u.value,modifiers:w,pluralRules:E,missing:v===null?void 0:v,missingWarn:h,fallbackWarn:m,fallbackFormat:g,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:b,escapeParameter:$,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};le.datetimeFormats=d.value,le.numberFormats=f.value,le.__datetimeFormatters=Ke(S)?S.__datetimeFormatters:void 0,le.__numberFormatters=Ke(S)?S.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(le.__v_emitter=Ke(S)?S.__v_emitter:void 0);const me=pA(le);return r&&Mp(me),me})(),ia(S,s.value,c.value);function N(){return[s.value,c.value,u.value,d.value,f.value]}const M=n.computed({get:()=>s.value,set:le=>{S.locale=le,s.value=le}}),V=n.computed({get:()=>c.value,set:le=>{S.fallbackLocale=le,c.value=le,ia(S,s.value,le)}}),k=n.computed(()=>u.value),C=n.computed(()=>d.value),B=n.computed(()=>f.value);function A(){return ut(y)?y:null}function L(le){y=le,S.postTranslation=le}function I(){return _}function P(le){le!==null&&(v=Gp(le)),_=le,S.missing=v}function oe(le,me){return le!=="translate"||!me.resolvedMessage}const Z=(le,me,We,at,Lt,an)=>{N();let ie;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(S.fallbackContext=t?fA():void 0),ie=le(S)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(S.fallbackContext=void 0)}if(We!=="translate exists"&&Bt(ie)&&ie===as||We==="translate exists"&&!ie){const[ye,Ve]=me();if(process.env.NODE_ENV!=="production"&&t&&De(ye)&&oe(We,Ve)&&(p&&(ls(m,ye)||Fv(h,ye))&&lo(Rr(kn.FALLBACK_TO_ROOT,{key:ye,type:We})),process.env.NODE_ENV!=="production")){const{__v_emitter:Oe}=S;Oe&&p&&Oe.emit("fallback",{type:We,key:ye,to:"global",groupId:`${We}:${ye}`})}return t&&p?at(t):Lt(ye)}else{if(an(ie))return ie;throw rn(pt.UNEXPECTED_RETURN_TYPE)}};function U(...le){return Z(me=>Reflect.apply(Up,null,[me,...le]),()=>ou(...le),"translate",me=>Reflect.apply(me.t,me,[...le]),me=>me,me=>De(me))}function R(...le){const[me,We,at]=le;if(at&&!tt(at))throw rn(pt.INVALID_ARGUMENT);return U(me,We,Vt({resolvedMessage:!0},at||{}))}function H(...le){return Z(me=>Reflect.apply(Pp,null,[me,...le]),()=>tu(...le),"datetime format",me=>Reflect.apply(me.d,me,[...le]),()=>mi,me=>De(me)||yt(me))}function J(...le){return Z(me=>Reflect.apply(Op,null,[me,...le]),()=>nu(...le),"number format",me=>Reflect.apply(me.n,me,[...le]),()=>mi,me=>De(me)||yt(me))}function ae(le){return le.map(me=>De(me)||Bt(me)||ot(me)?Hp(String(me)):me)}const pe={normalize:ae,interpolate:le=>le,type:"vnode"};function Ce(...le){return Z(me=>{let We;const at=me;try{at.processor=pe,We=Reflect.apply(Up,null,[at,...le])}finally{at.processor=null}return We},()=>ou(...le),"translate",me=>me[au](...le),me=>[Hp(me)],me=>yt(me))}function xe(...le){return Z(me=>Reflect.apply(Op,null,[me,...le]),()=>nu(...le),"number format",me=>me[iu](...le),Wp,me=>De(me)||yt(me))}function Ee(...le){return Z(me=>Reflect.apply(Pp,null,[me,...le]),()=>tu(...le),"datetime format",me=>me[lu](...le),Wp,me=>De(me)||yt(me))}function $e(le){E=le,S.pluralRules=E}function Be(le,me){return Z(()=>{if(!le)return!1;const We=De(me)?me:s.value,at=be(We),Lt=S.messageResolver(at,le);return Sn(Lt)||$n(Lt)||De(Lt)},()=>[le],"translate exists",We=>Reflect.apply(We.te,We,[le,me]),FA,We=>ot(We))}function re(le){let me=null;const We=Vv(S,c.value,s.value);for(let at=0;at<We.length;at++){const Lt=u.value[We[at]]||{},an=S.messageResolver(Lt,le);if(an!=null){me=an;break}}return me}function ge(le){const me=re(le);return me??(t?t.tm(le)||{}:{})}function be(le){return u.value[le]||{}}function Q(le,me){if(a){const We={[le]:me};for(const at in We)Mn(We,at)&&za(We[at]);me=We[le]}u.value[le]=me,S.messages=u.value}function we(le,me){u.value[le]=u.value[le]||{};const We={[le]:me};if(a)for(const at in We)Mn(We,at)&&za(We[at]);me=We[le],Ul(me,u.value[le]),S.messages=u.value}function O(le){return d.value[le]||{}}function G(le,me){d.value[le]=me,S.datetimeFormats=d.value,Ip(S,le,me)}function ue(le,me){d.value[le]=Vt(d.value[le]||{},me),S.datetimeFormats=d.value,Ip(S,le,me)}function _e(le){return f.value[le]||{}}function Ie(le,me){f.value[le]=me,S.numberFormats=f.value,Rp(S,le,me)}function Xe(le,me){f.value[le]=Vt(f.value[le]||{},me),S.numberFormats=f.value,Rp(S,le,me)}qp++,t&&Fn&&(n.watch(t.locale,le=>{i&&(s.value=le,S.locale=le,ia(S,s.value,c.value))}),n.watch(t.fallbackLocale,le=>{i&&(c.value=le,S.fallbackLocale=le,ia(S,s.value,c.value))}));const Pe={id:qp,locale:M,fallbackLocale:V,get inheritLocale(){return i},set inheritLocale(le){i=le,le&&t&&(s.value=t.locale.value,c.value=t.fallbackLocale.value,ia(S,s.value,c.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:k,get modifiers(){return w},get pluralRules(){return E||{}},get isGlobal(){return r},get missingWarn(){return h},set missingWarn(le){h=le,S.missingWarn=h},get fallbackWarn(){return m},set fallbackWarn(le){m=le,S.fallbackWarn=m},get fallbackRoot(){return p},set fallbackRoot(le){p=le},get fallbackFormat(){return g},set fallbackFormat(le){g=le,S.fallbackFormat=g},get warnHtmlMessage(){return b},set warnHtmlMessage(le){b=le,S.warnHtmlMessage=le},get escapeParameter(){return $},set escapeParameter(le){$=le,S.escapeParameter=le},t:U,getLocaleMessage:be,setLocaleMessage:Q,mergeLocaleMessage:we,getPostTranslationHandler:A,setPostTranslationHandler:L,getMissingHandler:I,setMissingHandler:P,[Yv]:$e};return Pe.datetimeFormats=C,Pe.numberFormats=B,Pe.rt=R,Pe.te=Be,Pe.tm=ge,Pe.d=H,Pe.n=J,Pe.getDateTimeFormat=O,Pe.setDateTimeFormat=G,Pe.mergeDateTimeFormat=ue,Pe.getNumberFormat=_e,Pe.setNumberFormat=Ie,Pe.mergeNumberFormat=Xe,Pe[Xv]=o,Pe[au]=Ce,Pe[lu]=Ee,Pe[iu]=xe,process.env.NODE_ENV!=="production"&&(Pe[sr]=le=>{S.__v_emitter=le},Pe[Fa]=()=>{S.__v_emitter=void 0}),Pe}const Zv="vue-i18n: composer properties",rc={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},UA={"vue-i18n-resource-inspector":"Search for scopes ..."},HA={"vue-i18n-timeline":16764185};let cu;async function jA(e,t){return new Promise((o,r)=>{try{LA({id:"vue-devtools-plugin-vue-i18n",label:rc["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[Zv],app:e},a=>{cu=a,a.on.visitComponentTree(({componentInstance:i,treeNode:s})=>{WA(i,s,t)}),a.on.inspectComponent(({componentInstance:i,instanceData:s})=>{i.__VUE_I18N__&&s&&(t.mode==="legacy"?i.__VUE_I18N__!==t.global.__composer&&Yp(s,i.__VUE_I18N__):Yp(s,i.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:rc["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:UA["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&KA(i,t)});const l=new Map;a.on.getInspectorState(async i=>{if(i.app===e&&i.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),ZA(i,t),i.nodeId==="global"){if(!l.has(i.app)){const[s]=await a.getComponentInstances(i.app);l.set(i.app,s)}a.highlightElement(l.get(i.app))}else{const s=JA(i.nodeId,t);s&&a.highlightElement(s)}}),a.on.editInspectorState(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&eM(i,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:rc["vue-i18n-timeline"],color:HA["vue-i18n-timeline"]}),o(!0)})}catch(a){console.error(a),r(!1)}})}function Qv(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function WA(e,t,o){const r=o.mode==="composition"?o.global:o.global.__composer;if(e&&e.__VUE_I18N__&&e.__VUE_I18N__!==r){const a={label:`i18n (${Qv(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function Yp(e,t){const o=Zv;e.state.push({type:o,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:o,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:o,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:o,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:o,key:"messages",editable:!1,value:vd(t.messages.value)}),e.state.push({type:o,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:o,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function vd(e){const t={};return Object.keys(e).forEach(o=>{const r=e[o];ut(r)&&"source"in r?t[o]=XA(r):Sn(r)&&r.loc&&r.loc.source?t[o]=r.loc.source:tt(r)?t[o]=vd(r):t[o]=r}),t}const qA={"<":"<",">":">",'"':""","&":"&"};function GA(e){return e.replace(/[<>"&]/g,YA)}function YA(e){return qA[e]||e}function XA(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${GA(e.source)}")`:"(?)"}`}}}function KA(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const o=t.mode==="composition"?t.global:t.global.__composer;for(const[r,a]of t.__instances){const l=t.mode==="composition"?a:a.__composer;o!==l&&e.rootNodes.push({id:l.id.toString(),label:`${Qv(r)} Scope`})}}function JA(e,t){let o=null;if(e!=="global"){for(const[r,a]of t.__instances.entries())if(a.id.toString()===e){o=r;break}}return o}function e0(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const o=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return o?t.mode==="composition"?o:o.__composer:null}}function ZA(e,t){const o=e0(e.nodeId,t);return o&&(e.state=QA(o)),null}function QA(e){const t={},o="Locale related info",r=[{type:o,key:"locale",editable:!0,value:e.locale.value},{type:o,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:o,key:"availableLocales",editable:!1,value:e.availableLocales},{type:o,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[o]=r;const a="Locale messages info",l=[{type:a,key:"messages",editable:!1,value:vd(e.messages.value)}];t[a]=l;{const i="Datetime formats info",s=[{type:i,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[i]=s;const c="Datetime formats info",u=[{type:c,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[c]=u}return t}function Ua(e,t){if(cu){let o;t&&"groupId"in t&&(o=t.groupId,delete t.groupId),cu.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:o,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function eM(e,t){const o=e0(e.nodeId,t);if(o){const[r]=e.path;r==="locale"&&De(e.state.value)?o.locale.value=e.state.value:r==="fallbackLocale"&&(De(e.state.value)||yt(e.state.value)||tt(e.state.value))?o.fallbackLocale.value=e.state.value:r==="inheritLocale"&&ot(e.state.value)&&(o.inheritLocale=e.state.value)}}function tM(e){const t=De(e.locale)?e.locale:Ra,o=De(e.fallbackLocale)||yt(e.fallbackLocale)||Ke(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=ut(e.missing)?e.missing:void 0,a=ot(e.silentTranslationWarn)||Ir(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,l=ot(e.silentFallbackWarn)||Ir(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=ot(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,c=Ke(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,d=ut(e.postTranslation)?e.postTranslation:void 0,f=De(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,m=ot(e.sync)?e.sync:!0;let p=e.messages;if(Ke(e.sharedMessages)){const w=e.sharedMessages;p=Object.keys(w).reduce((S,x)=>{const N=S[x]||(S[x]={});return Vt(N,w[x]),S},p||{})}const{__i18n:g,__root:_,__injectWithOption:v}=e,y=e.datetimeFormats,b=e.numberFormats,$=e.flatJson;return{locale:t,fallbackLocale:o,messages:p,flatJson:$,datetimeFormats:y,numberFormats:b,missing:r,missingWarn:a,fallbackWarn:l,fallbackRoot:i,fallbackFormat:s,modifiers:c,pluralRules:u,postTranslation:d,warnHtmlMessage:f,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:m,__i18n:g,__root:_,__injectWithOption:v}}function uu(e={}){const t=gd(tM(e)),{__extender:o}=e,r={id:t.id,get locale(){return t.locale.value},set locale(a){t.locale.value=a},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(a){t.fallbackLocale.value=a},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(a){t.setMissingHandler(a)},get silentTranslationWarn(){return ot(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(a){t.missingWarn=ot(a)?!a:a},get silentFallbackWarn(){return ot(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(a){t.fallbackWarn=ot(a)?!a:a},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(a){t.fallbackFormat=a},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(a){t.setPostTranslationHandler(a)},get sync(){return t.inheritLocale},set sync(a){t.inheritLocale=a},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){t.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(a){t.escapeParameter=a},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...a){return Reflect.apply(t.t,t,[...a])},rt(...a){return Reflect.apply(t.rt,t,[...a])},te(a,l){return t.te(a,l)},tm(a){return t.tm(a)},getLocaleMessage(a){return t.getLocaleMessage(a)},setLocaleMessage(a,l){t.setLocaleMessage(a,l)},mergeLocaleMessage(a,l){t.mergeLocaleMessage(a,l)},d(...a){return Reflect.apply(t.d,t,[...a])},getDateTimeFormat(a){return t.getDateTimeFormat(a)},setDateTimeFormat(a,l){t.setDateTimeFormat(a,l)},mergeDateTimeFormat(a,l){t.mergeDateTimeFormat(a,l)},n(...a){return Reflect.apply(t.n,t,[...a])},getNumberFormat(a){return t.getNumberFormat(a)},setNumberFormat(a,l){t.setNumberFormat(a,l)},mergeNumberFormat(a,l){t.mergeNumberFormat(a,l)}};return r.__extender=o,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=a=>{const l=t;l[sr]&&l[sr](a)},r.__disableEmitter=()=>{const a=t;a[Fa]&&a[Fa]()}),r}function nM(e,t,o){return{beforeCreate(){const r=Br();if(!r)throw rn(pt.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const l=a.i18n;if(a.__i18n&&(l.__i18n=a.__i18n),l.__root=t,this===this.$root)this.$i18n=Xp(e,l);else{l.__injectWithOption=!0,l.__extender=o.__vueI18nExtend,this.$i18n=uu(l);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=Xp(e,a);else{this.$i18n=uu({__i18n:a.__i18n,__injectWithOption:!0,__extender:o.__vueI18nExtend,__root:t});const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&Jv(t,a,a),this.$t=(...l)=>this.$i18n.t(...l),this.$rt=(...l)=>this.$i18n.rt(...l),this.$te=(l,i)=>this.$i18n.te(l,i),this.$d=(...l)=>this.$i18n.d(...l),this.$n=(...l)=>this.$i18n.n(...l),this.$tm=l=>this.$i18n.tm(l),o.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$i18n){const r=Br();if(!r)return;const a=this.$i18n;r.__VUE_I18N__=a.__composer;const l=this.__v_emitter=ud();a.__enableEmitter&&a.__enableEmitter(l),l.on("*",Ua)}},unmounted(){const r=Br();if(!r)throw rn(pt.UNEXPECTED_ERROR);const a=this.$i18n;process.env.NODE_ENV!=="production"&&r.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",Ua),delete this.__v_emitter),this.$i18n&&(a.__disableEmitter&&a.__disableEmitter(),delete r.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__disposer&&(a.__disposer(),delete a.__disposer,delete a.__extender),o.__deleteInstance(r),delete this.$i18n}}}function Xp(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Yv](t.pluralizationRules||e.pluralizationRules);const o=hd(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(o).forEach(r=>e.mergeLocaleMessage(r,o[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const yd={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function oM({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,a)=>[...r,...a.type===n.Fragment?a.children:[a]],[]):t.reduce((o,r)=>{const a=e[r];return a&&(o[r]=a()),o},st())}function t0(){return n.Fragment}const rM=n.defineComponent({name:"i18n-t",props:Vt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Bt(e)||!isNaN(e)}},yd),setup(e,t){const{slots:o,attrs:r}=t,a=e.i18n||_d({useScope:e.scope,__useComponent:!0});return()=>{const l=Object.keys(o).filter(f=>f[0]!=="_"),i=st();e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=De(e.plural)?+e.plural:e.plural);const s=oM(t,l),c=a[au](e.keypath,s,i),u=Vt(st(),r),d=De(e.tag)||tt(e.tag)?e.tag:t0();return n.h(d,u,c)}}}),Kp=rM;function aM(e){return yt(e)&&!De(e[0])}function n0(e,t,o,r){const{slots:a,attrs:l}=t;return()=>{const i={part:!0};let s=st();e.locale&&(i.locale=e.locale),De(e.format)?i.key=e.format:tt(e.format)&&(De(e.format.key)&&(i.key=e.format.key),s=Object.keys(e.format).reduce((h,m)=>o.includes(m)?Vt(st(),h,{[m]:e.format[m]}):h,st()));const c=r(e.value,i,s);let u=[i.key];yt(c)?u=c.map((h,m)=>{const p=a[h.type],g=p?p({[h.type]:h.value,index:m,parts:c}):[h.value];return aM(g)&&(g[0].key=`${h.type}-${m}`),g}):De(c)&&(u=[c]);const d=Vt(st(),l),f=De(e.tag)||tt(e.tag)?e.tag:t0();return n.h(f,d,u)}}const lM=n.defineComponent({name:"i18n-n",props:Vt({value:{type:Number,required:!0},format:{type:[String,Object]}},yd),setup(e,t){const o=e.i18n||_d({useScope:e.scope,__useComponent:!0});return n0(e,t,jv,(...r)=>o[iu](...r))}}),Jp=lM;function iM(e,t){const o=e;if(e.mode==="composition")return o.__getInstance(t)||e.global;{const r=o.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function sM(e){const t=i=>{process.env.NODE_ENV!=="production"&&id(Rr(kn.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:s,value:c}=i;if(!s||!s.$)throw rn(pt.UNEXPECTED_ERROR);const u=iM(e,s.$),d=Zp(c);return[Reflect.apply(u.t,u,[...Qp(d)]),u]};return{created:(i,s)=>{const[c,u]=t(s);Fn&&e.global===u&&(i.__i18nWatcher=n.watch(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),i.__composer=u,i.textContent=c},unmounted:i=>{Fn&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:s})=>{if(i.__composer){const c=i.__composer,u=Zp(s);i.textContent=Reflect.apply(c.t,c,[...Qp(u)])}},getSSRProps:i=>{const[s]=t(i);return{textContent:s}}}}function Zp(e){if(De(e))return{path:e};if(Ke(e)){if(!("path"in e))throw rn(pt.REQUIRED_VALUE,"path");return e}else throw rn(pt.INVALID_VALUE)}function Qp(e){const{path:t,locale:o,args:r,choice:a,plural:l}=e,i={},s=r||{};return De(o)&&(i.locale=o),Bt(a)&&(i.plural=a),Bt(l)&&(i.plural=l),[t,s,i]}function cM(e,t,...o){const r=Ke(o[0])?o[0]:{};(ot(r.globalInstall)?r.globalInstall:!0)&&([Kp.name,"I18nT"].forEach(l=>e.component(l,Kp)),[Jp.name,"I18nN"].forEach(l=>e.component(l,Jp)),[tm.name,"I18nD"].forEach(l=>e.component(l,tm))),e.directive("t",sM(t))}const uM=io("global-vue-i18n");function dM(e={}){const t=__VUE_I18N_LEGACY_API__&&ot(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&id(Rr(kn.DEPRECATE_LEGACY_MODE));const o=ot(e.globalInjection)?e.globalInjection:!0,r=new Map,[a,l]=fM(e,t),i=io(process.env.NODE_ENV!=="production"?"vue-i18n":"");function s(f){return r.get(f)||null}function c(f,h){r.set(f,h)}function u(f){r.delete(f)}const d={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...h){if(process.env.NODE_ENV!=="production"&&(f.__VUE_I18N__=d),f.__VUE_I18N_SYMBOL__=i,f.provide(f.__VUE_I18N_SYMBOL__,d),Ke(h[0])){const g=h[0];d.__composerExtend=g.__composerExtend,d.__vueI18nExtend=g.__vueI18nExtend}let m=null;!t&&o&&(m=bM(f,d.global)),__VUE_I18N_FULL_INSTALL__&&cM(f,d,...h),__VUE_I18N_LEGACY_API__&&t&&f.mixin(nM(l,l.__composer,d));const p=f.unmount;if(f.unmount=()=>{m&&m(),d.dispose(),p()},process.env.NODE_ENV!=="production"){if(!await jA(f,d))throw rn(pt.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const _=ud();if(t){const v=l;v.__enableEmitter&&v.__enableEmitter(_)}else{const v=l;v[sr]&&v[sr](_)}_.on("*",Ua)}},get global(){return l},dispose(){a.stop()},__instances:r,__getInstance:s,__setInstance:c,__deleteInstance:u};return d}function _d(e={}){const t=Br();if(t==null)throw rn(pt.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw rn(pt.NOT_INSTALLED);const o=pM(t),r=hM(o),a=Kv(t),l=mM(e,a);if(l==="global")return Jv(r,e,a),r;if(l==="parent"){let c=gM(o,t,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&lo(Rr(kn.NOT_FOUND_PARENT_SCOPE)),c=r),c}const i=o;let s=i.__getInstance(t);if(s==null){const c=Vt({},e);"__i18n"in a&&(c.__i18n=a.__i18n),r&&(c.__root=r),s=gd(c),i.__composerExtend&&(s[su]=i.__composerExtend(s)),yM(i,t,s),i.__setInstance(t,s)}else process.env.NODE_ENV!=="production"&&l==="local"&&lo(Rr(kn.DUPLICATE_USE_I18N_CALLING));return s}function fM(e,t){const o=n.effectScope(),r=__VUE_I18N_LEGACY_API__&&t?o.run(()=>uu(e)):o.run(()=>gd(e));if(r==null)throw rn(pt.UNEXPECTED_ERROR);return[o,r]}function pM(e){const t=n.inject(e.isCE?uM:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw rn(e.isCE?pt.NOT_INSTALLED_WITH_PROVIDE:pt.UNEXPECTED_ERROR);return t}function mM(e,t){return rs(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function hM(e){return e.mode==="composition"?e.global:e.global.__composer}function gM(e,t,o=!1){let r=null;const a=t.root;let l=vM(t,o);for(;l!=null;){const i=e;if(e.mode==="composition")r=i.__getInstance(l);else if(__VUE_I18N_LEGACY_API__){const s=i.__getInstance(l);s!=null&&(r=s.__composer,o&&r&&!r[Xv]&&(r=null))}if(r!=null||a===l)break;l=l.parent}return r}function vM(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function yM(e,t,o){let r=null;n.onMounted(()=>{if(process.env.NODE_ENV!=="production"){t.__VUE_I18N__=o,r=ud();const a=o;a[sr]&&a[sr](r),r.on("*",Ua)}},t),n.onUnmounted(()=>{const a=o;process.env.NODE_ENV!=="production"&&(r&&r.off("*",Ua),a[Fa]&&a[Fa](),delete t.__VUE_I18N__),e.__deleteInstance(t);const l=a[su];l&&(l(),delete a[su])},t)}const _M=["locale","fallbackLocale","availableLocales"],em=["t","rt","d","n","tm","te"];function bM(e,t){const o=Object.create(null);return _M.forEach(a=>{const l=Object.getOwnPropertyDescriptor(t,a);if(!l)throw rn(pt.UNEXPECTED_ERROR);const i=n.isRef(l.value)?{get(){return l.value.value},set(s){l.value.value=s}}:{get(){return l.get&&l.get()}};Object.defineProperty(o,a,i)}),e.config.globalProperties.$i18n=o,em.forEach(a=>{const l=Object.getOwnPropertyDescriptor(t,a);if(!l||!l.value)throw rn(pt.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,l)}),()=>{delete e.config.globalProperties.$i18n,em.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}const wM=n.defineComponent({name:"i18n-d",props:Vt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},yd),setup(e,t){const o=e.i18n||_d({useScope:e.scope,__useComponent:!0});return n0(e,t,Hv,(...r)=>o[lu](...r))}}),tm=wM;IA();iA(RB);sA(nA);cA(Vv);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Yo();e.__INTLIFY__=!0,FB(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const $M={title:"Confirm",message:"Are you sure you want to continue?",confirm:"Confirm",cancel:"Cancel"},kM={upload:"Upload",uploading:"Uploading {count} file{plural}...",noFile:"No file selected",dropPlaceholder:"Drag and Drop files here or click to upload",delete:"Delete",replace:"Replace",download:"Download"},EM={of:"of",prev:"Previous",next:"Next"},CM={required:"This field is required",invalidEmail:"Please enter a valid email address",invalidUrl:"Please enter a valid URL",minLength:"Must be at least {min} characters",maxLength:"Must be no more than {max} characters",minValue:"Must be at least {min}",maxValue:"Must be no more than {max}",pattern:"Invalid format",passwordStrength:"Password strength"},SM={veryWeak:"Very Weak",weak:"Weak",fair:"Fair",good:"Good",strong:"Strong"},TM={placeholder:"Select",search:"Search",yes:"Yes",no:"No"},NM={loadDefault:"Load Default {label}"},DM={item:"Item"},xM={loading:"Loading..."},BM={success:"Success",error:"Error",warning:"Warning",info:"Information"},AM={filter:"Filter",noActiveFilters:"No active filters",connectors:{and:"And",or:"Or"},operators:{eq:"Equals",ne:"Not equals",gt:"Greater than",ge:"Greater or equal",lt:"Less than",le:"Less or equal",co:"Contains",sw:"Starts with",ew:"Ends with",pr:"Present",in:"In list",nin:"Not in list"},placeholders:{selectField:"Select field",selectOption:"Select option",selectDate:"Select date",enterValue:"Value"},buttons:{addCondition:"Add condition",clearAll:"Clear all",save:"Save"}},MM={previous:"Previous",next:"Next",complete:"Complete",step:"Step {current} of {total}"},VM={placeholder:"Enter address"},LM={close:"Close",cancel:"Cancel",importData:"Import Data",changeFile:"Change File",selectSheet:"Select Sheet",hasHeaders:"Mark this if file has a header row",sourceKeyField:"Source Key Field (from this file)",relatedKeyField:"Related Key Field (from related file)",selectSourceValue:"Select source value",sourceValue:"Source value",selectTargetValue:"Select target value",targetValue:"Target value",selectColumn:"Select column..."},PM={year:"year",month:"month",week:"week",day:"day",hour:"hour",minute:"minute",second:"second",ago:"ago",in:"in",justNow:"Just now"},IM={save:"Save",cancel:"Cancel",delete:"Delete",validationError:"Please fix the validation errors before submitting",errorOccurred:"An error occurred"},OM={phoneNumber:"Phone Number",invalidPhone:"Please enter a valid phone number"},RM={invalidEmail:"Please enter a valid email address",invalidDomain:"This email domain appears to be invalid"},FM={invalidFormat:"Invalid date format"},zM={wrapText:"Wrap Text",selectAll:"Select All",clearAll:"Clear All"},UM={openFile:"Open File"},HM={placeholder:"Enter color"},jM={modalConfirm:$M,upload:kM,pagination:EM,form:CM,password:SM,select:TM,fieldArray:NM,arrayInput:DM,btn:xM,toast:BM,filter:AM,multiStep:MM,addressSearch:VM,importData:LM,timeAgo:PM,dialogForm:IM,tel:OM,email:RM,date:FM,spreadsheet:zM,lightbox:UM,color:HM},WM={title:"Confirmar",message:"¿Estás seguro de que quieres continuar?",confirm:"Confirmar",cancel:"Cancelar"},qM={upload:"Subir",uploading:"Subiendo {count} archivo{plural}...",noFile:"Ningún archivo seleccionado",dropPlaceholder:"Arrastra y suelta archivos aquí o haz clic para subir",delete:"Eliminar",replace:"Reemplazar",download:"Descargar"},GM={of:"de",prev:"Anterior",next:"Siguiente"},YM={required:"Este campo es obligatorio",invalidEmail:"Introduce un correo electrónico válido",invalidUrl:"Introduce una URL válida",minLength:"Debe tener al menos {min} caracteres",maxLength:"Debe tener como máximo {max} caracteres",minValue:"Debe ser al menos {min}",maxValue:"Debe ser como máximo {max}",pattern:"Formato inválido",passwordStrength:"Fortaleza de la contraseña"},XM={veryWeak:"Muy débil",weak:"Débil",fair:"Regular",good:"Buena",strong:"Fuerte"},KM={placeholder:"Seleccionar",search:"Buscar",yes:"Sí",no:"No"},JM={loadDefault:"Cargar {label} predeterminado"},ZM={item:"Elemento"},QM={loading:"Cargando..."},eV={success:"Éxito",error:"Error",warning:"Advertencia",info:"Información"},tV={filter:"Filtro",noActiveFilters:"Sin filtros activos",connectors:{and:"Y",or:"O"},operators:{eq:"Igual a",ne:"No igual a",gt:"Mayor que",ge:"Mayor o igual",lt:"Menor que",le:"Menor o igual",co:"Contiene",sw:"Empieza con",ew:"Termina con",pr:"Presente",in:"En lista",nin:"No en lista"},placeholders:{selectField:"Seleccionar campo",selectOption:"Seleccionar opción",selectDate:"Seleccionar fecha",enterValue:"Valor"},buttons:{addCondition:"Añadir condición",clearAll:"Limpiar todo",save:"Guardar"}},nV={previous:"Anterior",next:"Siguiente",complete:"Completar",step:"Paso {current} de {total}"},oV={placeholder:"Introduce una dirección"},rV={close:"Cerrar",cancel:"Cancelar",importData:"Importar datos",changeFile:"Cambiar archivo",selectSheet:"Seleccionar hoja",hasHeaders:"Marcar si el archivo tiene fila de encabezado",sourceKeyField:"Campo clave de origen (de este archivo)",relatedKeyField:"Campo clave relacionado (del archivo relacionado)",selectSourceValue:"Seleccionar valor de origen",sourceValue:"Valor de origen",selectTargetValue:"Seleccionar valor de destino",targetValue:"Valor de destino",selectColumn:"Seleccionar columna..."},aV={year:"año",month:"mes",week:"semana",day:"día",hour:"hora",minute:"minuto",second:"segundo",ago:"hace",in:"en",justNow:"Justo ahora"},lV={save:"Guardar",cancel:"Cancelar",delete:"Eliminar",validationError:"Por favor corrija los errores de validación antes de enviar",errorOccurred:"Ocurrió un error"},iV={phoneNumber:"Número de teléfono",invalidPhone:"Por favor introduce un número de teléfono válido"},sV={invalidEmail:"Introduce un correo electrónico válido",invalidDomain:"El dominio de este correo electrónico parece no ser válido"},cV={invalidFormat:"Formato de fecha inválido"},uV={wrapText:"Ajuste de texto",selectAll:"Seleccionar todo",clearAll:"Limpiar todo"},dV={openFile:"Abrir archivo"},fV={placeholder:"Introduce un color"},pV={modalConfirm:WM,upload:qM,pagination:GM,form:YM,password:XM,select:KM,fieldArray:JM,arrayInput:ZM,btn:QM,toast:eV,filter:tV,multiStep:nV,addressSearch:oV,importData:rV,timeAgo:aV,dialogForm:lV,tel:iV,email:sV,date:cV,spreadsheet:uV,lightbox:dV,color:fV},mV={title:"Confirmer",message:"Êtes-vous sûr de vouloir continuer ?",confirm:"Confirmer",cancel:"Annuler"},hV={upload:"Télécharger",uploading:"Téléchargement de {count} fichier{plural} en cours...",noFile:"Aucun fichier sélectionné",dropPlaceholder:"Glissez-déposez des fichiers ici ou cliquez pour télécharger",delete:"Supprimer",replace:"Remplacer",download:"Télécharger"},gV={of:"de",prev:"Précédent",next:"Suivant"},vV={required:"Ce champ est obligatoire",invalidEmail:"Veuillez entrer une adresse email valide",invalidUrl:"Veuillez entrer une URL valide",minLength:"Doit contenir au moins {min} caractères",maxLength:"Doit contenir au maximum {max} caractères",minValue:"Doit être au moins {min}",maxValue:"Doit être au maximum {max}",pattern:"Format invalide",passwordStrength:"Force du mot de passe"},yV={veryWeak:"Très faible",weak:"Faible",fair:"Passable",good:"Bonne",strong:"Forte"},_V={placeholder:"Sélectionner",search:"Rechercher",yes:"Oui",no:"Non"},bV={loadDefault:"Charger {label} par défaut"},wV={item:"Élément"},$V={loading:"Chargement..."},kV={success:"Succès",error:"Erreur",warning:"Avertissement",info:"Information"},EV={filter:"Filtre",noActiveFilters:"Aucun filtre actif",connectors:{and:"Et",or:"Ou"},operators:{eq:"Égal à",ne:"Différent de",gt:"Supérieur à",ge:"Supérieur ou égal",lt:"Inférieur à",le:"Inférieur ou égal",co:"Contient",sw:"Commence par",ew:"Se termine par",pr:"Présent",in:"Dans la liste",nin:"Pas dans la liste"},placeholders:{selectField:"Sélectionner un champ",selectOption:"Sélectionner une option",selectDate:"Sélectionner une date",enterValue:"Valeur"},buttons:{addCondition:"Ajouter une condition",clearAll:"Tout effacer",save:"Enregistrer"}},CV={previous:"Précédent",next:"Suivant",complete:"Terminer",step:"Étape {current} sur {total}"},SV={placeholder:"Entrez une adresse"},TV={close:"Fermer",cancel:"Annuler",importData:"Importer les données",changeFile:"Changer de fichier",selectSheet:"Sélectionner la feuille",hasHeaders:"Cochez si le fichier a une ligne d'en-tête",sourceKeyField:"Champ clé source (de ce fichier)",relatedKeyField:"Champ clé lié (du fichier lié)",selectSourceValue:"Sélectionner la valeur source",sourceValue:"Valeur source",selectTargetValue:"Sélectionner la valeur cible",targetValue:"Valeur cible",selectColumn:"Sélectionner une colonne..."},NV={year:"an",month:"mois",week:"semaine",day:"jour",hour:"heure",minute:"minute",second:"seconde",ago:"il y a",in:"dans",justNow:"À l'instant"},DV={save:"Enregistrer",cancel:"Annuler",delete:"Supprimer",validationError:"Veuillez corriger les erreurs de validation avant de soumettre",errorOccurred:"Une erreur est survenue"},xV={phoneNumber:"Numéro de téléphone",invalidPhone:"Veuillez entrer un numéro de téléphone valide"},BV={invalidEmail:"Veuillez entrer une adresse email valide",invalidDomain:"Le domaine de cet email semble invalide"},AV={invalidFormat:"Format de date invalide"},MV={wrapText:"Renvoyer à la ligne",selectAll:"Tout sélectionner",clearAll:"Tout effacer"},VV={openFile:"Ouvrir le fichier"},LV={placeholder:"Entrez une couleur"},PV={modalConfirm:mV,upload:hV,pagination:gV,form:vV,password:yV,select:_V,fieldArray:bV,arrayInput:wV,btn:$V,toast:kV,filter:EV,multiStep:CV,addressSearch:SV,importData:TV,timeAgo:NV,dialogForm:DV,tel:xV,email:BV,date:AV,spreadsheet:MV,lightbox:VV,color:LV},IV={title:"אישור",message:"האם אתה בטוח שברצונך להמשיך?",confirm:"אישור",cancel:"ביטול"},OV={upload:"העלה",uploading:"מעלה {count} קבצים...",noFile:"לא נבחר קובץ",dropPlaceholder:"גרור ושחרר קבצים כאן או לחץ להעלאה",delete:"מחק",replace:"החלף",download:"הורד"},RV={of:"מתוך",prev:"הקודם",next:"הבא"},FV={required:"שדה זה נדרש",invalidEmail:"הזן כתובת אימייל חוקית",invalidUrl:"הזן כתובת URL חוקית",minLength:"חייב להכיל לפחות {min} תווים",maxLength:"חייב להכיל לכל היותר {max} תווים",minValue:"חייב להיות לפחות {min}",maxValue:"חייב להיות לכל היותר {max}",pattern:"פורמט לא חוקי",passwordStrength:"חוזק סיסמה"},zV={veryWeak:"חלשה מאוד",weak:"חלשה",fair:"סבירה",good:"טובה",strong:"חזקה"},UV={placeholder:"בחר",search:"חיפוש",yes:"כן",no:"לא"},HV={loadDefault:"טען {label} ברירת מחדל"},jV={item:"פריט"},WV={loading:"טוען..."},qV={success:"הצלחה",error:"שגיאה",warning:"אזהרה",info:"מידע"},GV={filter:"פילטר",noActiveFilters:"אין פילטרים פעילים",connectors:{and:"וגם",or:"או"},operators:{eq:"שווה ל",ne:"לא שווה ל",gt:"גדול מ",ge:"גדול או שווה ל",lt:"קטן מ",le:"קטן או שווה ל",co:"מכיל",sw:"מתחיל ב",ew:"מסתיים ב",pr:"קיים",in:"ברשימה",nin:"לא ברשימה"},placeholders:{selectField:"בחר שדה",selectOption:"בחירה",selectDate:"בחירת תאריך",enterValue:"ערך"},buttons:{addCondition:"הוספת תנאי",clearAll:"נקה הכל",save:"שמירה"}},YV={previous:"הקודם",next:"הבא",complete:"סיים",step:"שלב {current} מתוך {total}"},XV={placeholder:"הזן כתובת"},KV={close:"סגור",cancel:"ביטול",importData:"ייבא נתונים",changeFile:"החלף קובץ",selectSheet:"בחר גיליון",hasHeaders:"סמן אם לקובץ יש שורת כותרת",sourceKeyField:"שדה מפתח מקור (מהקובץ הזה)",relatedKeyField:"שדה מפתח קשור (מהקובץ הקשור)",selectSourceValue:"בחר ערך מקור",sourceValue:"ערך מקור",selectTargetValue:"בחר ערך יעד",targetValue:"ערך יעד",selectColumn:"בחר עמודה..."},JV={year:{singular:"שנה",plural:"שנים"},month:{singular:"חודש",plural:"חודשים"},week:{singular:"שבוע",plural:"שבועות"},day:{singular:"יום",plural:"ימים"},hour:{singular:"שעה",plural:"שעות"},minute:{singular:"דקה",plural:"דקות"},second:{singular:"שנייה",plural:"שניות"},ago:"לפני",in:"בעוד",justNow:"זה עתה"},ZV={save:"שמור",cancel:"ביטול",delete:"מחק",validationError:"אנא תקן את שגיאות האימות לפני השליחה",errorOccurred:"אירעה שגיאה"},QV={phoneNumber:"מספר טלפון",invalidPhone:"אנא הזן מספר טלפון תקין"},eL={invalidEmail:"הזן כתובת אימייל חוקית",invalidDomain:"נראה שדומיין האימייל אינו חוקי"},tL={invalidFormat:"פורמט תאריך לא חוקי"},nL={wrapText:"גלישת טקסט",selectAll:"בחר הכל",clearAll:"נקה הכל"},oL={openFile:"פתח קובץ"},rL={placeholder:"הזן צבע"},aL={modalConfirm:IV,upload:OV,pagination:RV,form:FV,password:zV,select:UV,fieldArray:HV,arrayInput:jV,btn:WV,toast:qV,filter:GV,multiStep:YV,addressSearch:XV,importData:KV,timeAgo:JV,dialogForm:ZV,tel:QV,email:eL,date:tL,spreadsheet:nL,lightbox:oL,color:rL},lL={title:"Conferma",message:"Sei sicuro di voler continuare?",confirm:"Conferma",cancel:"Annulla"},iL={upload:"Carica",uploading:"Caricamento di {count} file{plural} in corso...",noFile:"Nessun file selezionato",dropPlaceholder:"Trascina e rilascia i file qui o clicca per caricare",delete:"Elimina",replace:"Sostituisci",download:"Scarica"},sL={of:"di",prev:"Precedente",next:"Successivo"},cL={required:"Questo campo è obbligatorio",invalidEmail:"Inserisci un indirizzo email valido",invalidUrl:"Inserisci un URL valido",minLength:"Deve contenere almeno {min} caratteri",maxLength:"Deve contenere al massimo {max} caratteri",minValue:"Deve essere almeno {min}",maxValue:"Deve essere al massimo {max}",pattern:"Formato non valido",passwordStrength:"Forza della password"},uL={veryWeak:"Molto debole",weak:"Debole",fair:"Discreta",good:"Buona",strong:"Forte"},dL={placeholder:"Seleziona",search:"Cerca",yes:"Sì",no:"No"},fL={loadDefault:"Carica {label} predefinito"},pL={item:"Elemento"},mL={loading:"Caricamento..."},hL={success:"Successo",error:"Errore",warning:"Avviso",info:"Informazione"},gL={filter:"Filtro",noActiveFilters:"Nessun filtro attivo",connectors:{and:"E",or:"O"},operators:{eq:"Uguale a",ne:"Diverso da",gt:"Maggiore di",ge:"Maggiore o uguale",lt:"Minore di",le:"Minore o uguale",co:"Contiene",sw:"Inizia con",ew:"Finisce con",pr:"Presente",in:"Nella lista",nin:"Non nella lista"},placeholders:{selectField:"Seleziona campo",selectOption:"Seleziona opzione",selectDate:"Seleziona data",enterValue:"Valore"},buttons:{addCondition:"Aggiungi condizione",clearAll:"Cancella tutto",save:"Salva"}},vL={previous:"Precedente",next:"Successivo",complete:"Completa",step:"Passo {current} di {total}"},yL={placeholder:"Inserisci un indirizzo"},_L={close:"Chiudi",cancel:"Annulla",importData:"Importa dati",changeFile:"Cambia file",selectSheet:"Seleziona foglio",hasHeaders:"Seleziona se il file ha una riga di intestazione",sourceKeyField:"Campo chiave sorgente (da questo file)",relatedKeyField:"Campo chiave correlato (dal file correlato)",selectSourceValue:"Seleziona valore sorgente",sourceValue:"Valore sorgente",selectTargetValue:"Seleziona valore di destinazione",targetValue:"Valore di destinazione",selectColumn:"Seleziona colonna..."},bL={year:"anno",month:"mese",week:"settimana",day:"giorno",hour:"ora",minute:"minuto",second:"secondo",ago:"fa",in:"tra",justNow:"Poco fa"},wL={save:"Salva",cancel:"Annulla",delete:"Elimina",validationError:"Correggi gli errori di validazione prima di inviare",errorOccurred:"Si è verificato un errore"},$L={phoneNumber:"Numero di telefono",invalidPhone:"Inserisci un numero di telefono valido"},kL={invalidEmail:"Inserisci un indirizzo email valido",invalidDomain:"Il dominio di questa email sembra non essere valido"},EL={invalidFormat:"Formato data non valido"},CL={wrapText:"A capo automatico",selectAll:"Seleziona tutto",clearAll:"Cancella tutto"},SL={openFile:"Apri file"},TL={placeholder:"Inserisci un colore"},NL={modalConfirm:lL,upload:iL,pagination:sL,form:cL,password:uL,select:dL,fieldArray:fL,arrayInput:pL,btn:mL,toast:hL,filter:gL,multiStep:vL,addressSearch:yL,importData:_L,timeAgo:bL,dialogForm:wL,tel:$L,email:kL,date:EL,spreadsheet:CL,lightbox:SL,color:TL},DL={title:"Подтвердить",message:"Вы уверены, что хотите продолжить?",confirm:"Подтвердить",cancel:"Отмена"},xL={upload:"Загрузить",uploading:"Загрузка {count} файл{plural}...",noFile:"Файл не выбран",dropPlaceholder:"Перетащите файлы сюда или нажмите для загрузки",delete:"Удалить",replace:"Заменить",download:"Скачать"},BL={of:"из",prev:"Предыдущая",next:"Следующая"},AL={required:"Это поле обязательно для заполнения",invalidEmail:"Введите действительный адрес электронной почты",invalidUrl:"Введите действительный URL",minLength:"Должно содержать не менее {min} символов",maxLength:"Должно содержать не более {max} символов",minValue:"Должно быть не менее {min}",maxValue:"Должно быть не более {max}",pattern:"Неверный формат",passwordStrength:"Надежность пароля"},ML={veryWeak:"Очень слабый",weak:"Слабый",fair:"Средний",good:"Хороший",strong:"Надёжный"},VL={placeholder:"Выбрать",search:"Поиск",yes:"Да",no:"Нет"},LL={loadDefault:"Загрузить {label} по умолчанию"},PL={item:"Элемент"},IL={loading:"Загрузка..."},OL={success:"Успешно",error:"Ошибка",warning:"Предупреждение",info:"Информация"},RL={filter:"Фильтр",noActiveFilters:"Нет активных фильтров",connectors:{and:"И",or:"Или"},operators:{eq:"Равно",ne:"Не равно",gt:"Больше чем",ge:"Больше или равно",lt:"Меньше чем",le:"Меньше или равно",co:"Содержит",sw:"Начинается с",ew:"Заканчивается на",pr:"Присутствует",in:"В списке",nin:"Не в списке"},placeholders:{selectField:"Выберите поле",selectOption:"Выберите вариант",selectDate:"Выберите дату",enterValue:"Значение"},buttons:{addCondition:"Добавить условие",clearAll:"Очистить всё",save:"Сохранить"}},FL={previous:"Назад",next:"Далее",complete:"Завершить",step:"Шаг {current} из {total}"},zL={placeholder:"Введите адрес"},UL={close:"Закрыть",cancel:"Отмена",importData:"Импорт данных",changeFile:"Изменить файл",selectSheet:"Выбрать лист",hasHeaders:"Отметьте, если файл содержит строку заголовка",sourceKeyField:"Ключевое поле источника (из этого файла)",relatedKeyField:"Ключевое поле связанного (из связанного файла)",selectSourceValue:"Выберите исходное значение",sourceValue:"Исходное значение",selectTargetValue:"Выберите целевое значение",targetValue:"Целевое значение",selectColumn:"Выберите столбец..."},HL={year:"год",month:"месяц",week:"неделя",day:"день",hour:"час",minute:"минута",second:"секунда",ago:"назад",in:"через",justNow:"Только что"},jL={save:"Сохранить",cancel:"Отмена",delete:"Удалить",validationError:"Пожалуйста, исправьте ошибки валидации перед отправкой",errorOccurred:"Произошла ошибка"},WL={phoneNumber:"Номер телефона",invalidPhone:"Пожалуйста, введите действительный номер телефона"},qL={invalidEmail:"Введите действительный адрес электронной почты",invalidDomain:"Домен этого адреса электронной почты, похоже, недействителен"},GL={invalidFormat:"Неверный формат даты"},YL={wrapText:"Перенос текста",selectAll:"Выбрать всё",clearAll:"Очистить всё"},XL={openFile:"Открыть файл"},KL={placeholder:"Введите цвет"},JL={modalConfirm:DL,upload:xL,pagination:BL,form:AL,password:ML,select:VL,fieldArray:LL,arrayInput:PL,btn:IL,toast:OL,filter:RL,multiStep:FL,addressSearch:zL,importData:UL,timeAgo:HL,dialogForm:jL,tel:WL,email:qL,date:GL,spreadsheet:YL,lightbox:XL,color:KL},du={en:jM,he:aL,it:NL,es:pV,fr:PV,ru:JL};let hi=null;function o0(e={}){const{locale:t="en",fallbackLocale:o="en",messages:r={}}=e,a=Object.keys(du),l={};for(const i of a)l[i]={...du[i]||{},...r[i]||{}};for(const i of Object.keys(r))l[i]||(l[i]=r[i]);return hi=dM({locale:t,fallbackLocale:o,messages:l,legacy:!1,globalInjection:!0}),hi}function Jr(){if(!hi)throw new Error("i18n not initialized. Call createI18n() first.");return hi}function Tt(){const e=Jr().global;return{$t:e.t,t:e.t,locale:e.locale,availableLocales:e.availableLocales,fallbackLocale:e.fallbackLocale,n:e.n,d:e.d}}function je(e){if(e!=null)return e.startsWith("$t:")?Jr().global.t(e.slice(3)):e}const bd=n.defineComponent({__name:"FormFlow",props:{schema:{},modelValue:{},components:{},errors:{},onSubmit:{type:Function}},emits:["update:modelValue"],setup(e,{expose:t,emit:o}){const r=e,a=o,{$t:l}=Tt();function i(C,B){const A=B.split(".");let L=C;for(const I of A)L=L==null?void 0:L[I];return L}function s(C,B,A){const L=B.split(".");let I=C;for(let P=0;P<L.length-1;P++){const oe=L[P];(I[oe]==null||typeof I[oe]!="object")&&(I[oe]={}),I=I[oe]}I[L[L.length-1]]=A}function c(C){const B={...C??{}};for(const[A,L]of Object.entries(r.schema._fields)){const I=L._config.default;I!==void 0&&i(B,A)===void 0&&s(B,A,I)}return B}const u=n.ref(c(r.modelValue)),d=n.ref({}),f=n.ref(!1),h=n.ref("idle"),m=n.ref();let p=!1;n.watch(()=>r.modelValue,C=>{p||(u.value=c(C))},{deep:!0}),n.watch(u,C=>{p=!0,a("update:modelValue",C),n.nextTick(()=>{p=!1})},{deep:!0});function g(C){return C._condition==null?!0:o2(C._condition,u.value)}const _=n.computed(()=>{const C=[];for(const[B,A]of Object.entries(r.schema._fields))g(A)&&C.push({key:B,field:A});return C});function v(C,B,A){s(u.value,C,B),(h.value==="success"||h.value==="error")&&(h.value="idle"),f.value&&b(C,A)}function y(C,B){return C==null||C===""||Array.isArray(C)&&C.length===0||B._type==="tel"&&typeof C=="string"&&/^\+\d+$/.test(C)}function b(C,B){const A=$(C);if(B._config.required===!0&&y(A,B))return d.value={...d.value,[C]:B._config.requiredMessage??l("form.required")},!1;if(B._validations!=null)for(const L of B._validations){const I=L(A);if(I!==!0)return d.value={...d.value,[C]:I},!1}return d.value=Object.fromEntries(Object.entries(d.value).filter(([L])=>L!==C)),!0}function $(C){return i(u.value,C)}function w(C,B){return B._config.label!=null?B._config.label:C.split(/[._-]/).map(A=>A.charAt(0).toUpperCase()+A.slice(1)).join(" ")}function E(C){return{text:et,email:Pu,password:Zh,number:Yn,tel:Ju,url:et,date:Da,time:et,datetime:Da,textarea:et,richtext:zu,json:Lu,checkbox:Ut,toggle:es,radio:Qh,select:vt,multiselect:vt,array:ua,upload:Aa,color:Wn}[C]??et}const S=n.computed(()=>{const C={...d.value,...r.errors||{}},B={};for(const[A,L]of Object.entries(C))B[A]=je(L)??L;return B});function x(C,B){const L={label:w(B,C),modelValue:$(B),"onUpdate:modelValue":I=>{v(B,I,C)},error:S.value[B],...C._config};if(C._type==="textarea"&&(L.multiline=!0),C._type==="multiselect"&&(L.multiple=!0),C._type==="json"&&(L.language=L.language??"json"),C._type==="array"){const I=Object.fromEntries(Object.entries(C._config).filter(([P])=>P!=="schema"&&P!=="itemType"));Object.assign(L,I),L.allowAdd=L.allowAdd??!0,L.allowDelete=L.allowDelete??!0}return L}function N(C){var B;return typeof C=="string"&&((B=r.components)==null?void 0:B[C])!=null?r.components[C]:C}function M(C){return C._component!=null}function V(){let C=!0;const B={};for(const{key:A,field:L}of _.value){const I=$(A);if(L._config.required===!0&&y(I,L)){B[A]=L._config.requiredMessage??l("form.required"),C=!1;continue}if(L._validations!=null)for(const P of L._validations){const oe=P(I);if(oe!==!0){B[A]=oe,C=!1;break}}}return d.value=B,C}async function k(C){var A;C&&C.preventDefault(),f.value=!0;const B=V();if(B){if(r.onSubmit){h.value="submitting";try{await r.onSubmit(u.value),h.value="success"}catch{h.value="error"}}}else{C==null||C.stopPropagation();const L=(A=_.value.find(({key:I})=>d.value[I]))==null?void 0:A.key;if(L!=null&&m.value){const I=m.value.querySelector(`[name="${L}"]`)||m.value.querySelector(`[id="${L}"]`)||m.value.querySelector("input, select, textarea");I&&(I.scrollIntoView({behavior:"smooth",block:"center"}),setTimeout(()=>{I instanceof HTMLElement&&I.focus()},300))}}return B}return t({validate:V,submit:k,formState:h}),(C,B)=>{const A=n.resolveComponent("FormFlow",!0);return n.openBlock(),n.createElementBlock("form",{ref_key:"formElement",ref:m,class:n.normalizeClass(C.schema._class),onSubmit:k},[h.value==="success"?n.renderSlot(C.$slots,"success",{key:0,formData:u.value}):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(_.value,({key:L,field:I})=>(n.openBlock(),n.createElementBlock("div",{key:L,class:n.normalizeClass([I._class,I._config.class])},[n.renderSlot(C.$slots,`field:${L}`,{value:$(L),field:I,formData:u.value,error:d.value[L],onChange:P=>{v(L,P,I)}},()=>{var P;return[I._type==="array"&&((P=I._config.schema)!=null&&P._isSchema)?(n.openBlock(),n.createBlock(ua,n.mergeProps({key:0,ref_for:!0},x(I,L)),{default:n.withCtx(({item:oe})=>[n.createVNode(A,{modelValue:oe.value,"onUpdate:modelValue":Z=>oe.value=Z,schema:I._config.schema,components:C.components},null,8,["modelValue","onUpdate:modelValue","schema","components"])]),_:2},1040)):I._type==="array"&&I._config.schema?(n.openBlock(),n.createBlock(ua,n.mergeProps({key:1,ref_for:!0},x(I,L)),{default:n.withCtx(({item:oe})=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(N(I._config.schema)),{modelValue:oe.value,"onUpdate:modelValue":Z=>oe.value=Z},null,8,["modelValue","onUpdate:modelValue"]))]),_:2},1040)):I._type==="array"&&I._config.itemType?(n.openBlock(),n.createBlock(ua,n.mergeProps({key:2,ref_for:!0},x(I,L)),{default:n.withCtx(({item:oe})=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(E(I._config.itemType)),{"model-value":oe.value,"onUpdate:modelValue":Z=>{oe.value=Z}},null,8,["model-value","onUpdate:modelValue"]))]),_:2},1040)):M(I)?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(N(I._component.component)),n.mergeProps({key:3,"model-value":$(L)},{ref_for:!0},I._component.props,{"onUpdate:modelValue":oe=>v(L,oe,I)}),null,16,["model-value","onUpdate:modelValue"])):(n.openBlock(),n.createBlock(n.resolveDynamicComponent(E(I._type)),n.mergeProps({key:4,ref_for:!0},x(I,L)),null,16))]})],2))),128)),n.renderSlot(C.$slots,"errors",{errors:S.value,errorCount:Object.keys(S.value).filter(L=>S.value[L]).length,visibleFields:_.value}),h.value==="error"?n.renderSlot(C.$slots,"error",{key:0,formData:u.value}):n.createCommentVNode("",!0),n.renderSlot(C.$slots,"submit",{submit:k,validate:V,formData:u.value,errors:S.value,formState:h.value})],64))],34)}}}),ZL={key:0,class:"dialog-form-error bg-red-30 color-red radius-1 mb-1 txt14 px-1 py-075"},r0=n.defineComponent({__name:"DialogForm",props:{open:{type:Boolean},title:{},width:{default:"m"},position:{default:"center"},dismissable:{type:Boolean,default:!0},schema:{},modelValue:{},onSubmit:{},onDelete:{},submitText:{},cancelText:{},deleteText:{}},emits:["update:open","resolve"],setup(e,{emit:t}){const o=e,r=t,{$t:a}=Tt(),l=n.ref({...o.modelValue||{}}),i=n.ref(!1),s=n.ref(!1),c=n.ref(null),u=n.ref(),d=n.computed(()=>typeof o.onDelete=="function");async function f(){var g;if(!i.value){if(!((g=u.value)!=null&&g.validate())){c.value=a("dialogForm.validationError");return}c.value=null,i.value=!0;try{o.onSubmit&&await o.onSubmit(l.value),r("resolve",{action:"submit",data:l.value}),r("update:open",!1)}catch(_){c.value=_ instanceof Error?_.message:a("dialogForm.errorOccurred")}finally{i.value=!1}}}async function h(){if(!(s.value||!o.onDelete)){c.value=null,s.value=!0;try{await o.onDelete(l.value),r("resolve",{action:"delete",data:l.value}),r("update:open",!1)}catch(g){c.value=g instanceof Error?g.message:a("dialogForm.errorOccurred")}finally{s.value=!1}}}function m(){r("resolve",{action:"cancel",data:l.value}),r("update:open",!1)}function p(){r("resolve",{action:"cancel",data:l.value})}return(g,_)=>(n.openBlock(),n.createBlock(ns,{open:g.open,title:g.title,width:g.width,position:g.position,dismissable:g.dismissable,"onUpdate:open":_[1]||(_[1]=v=>g.$emit("update:open",v)),onClose:p},{footer:n.withCtx(()=>[d.value?(n.openBlock(),n.createBlock(ee,{key:0,color:"red",flat:"",loading:s.value,disabled:i.value,class:"me-auto",onClick:h},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(g.deleteText||n.unref(a)("dialogForm.delete")),1)]),_:1},8,["loading","disabled"])):n.createCommentVNode("",!0),_[2]||(_[2]=n.createElementVNode("div",{class:"flex-grow-1"},null,-1)),n.createVNode(ee,{flat:"",disabled:i.value||s.value,onClick:m},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(g.cancelText||n.unref(a)("dialogForm.cancel")),1)]),_:1},8,["disabled"]),n.createVNode(ee,{color:"primary",loading:i.value,disabled:s.value,onClick:f},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(g.submitText||n.unref(a)("dialogForm.save")),1)]),_:1},8,["loading","disabled"])]),default:n.withCtx(()=>[n.createElementVNode("form",{onSubmit:n.withModifiers(f,["prevent"])},[c.value?(n.openBlock(),n.createElementBlock("div",ZL,n.toDisplayString(c.value),1)):n.createCommentVNode("",!0),n.createVNode(bd,{ref_key:"formFlowRef",ref:u,modelValue:l.value,"onUpdate:modelValue":_[0]||(_[0]=v=>l.value=v),schema:g.schema},null,8,["modelValue","schema"])],32)]),_:1},8,["open","title","width","position","dismissable"]))}}),wd=Symbol("dialog");let gi=null;function QL(){const e=n.inject(wd,null);if(!e){if(gi)return gi;throw new Error("Dialog API not provided. Make sure DialogPlugin is installed via app.use(DialogPlugin)")}return e}const eP={install:e=>{let t=0;const o=n.reactive([]),r={form:l=>new Promise(i=>{const s=++t;o.push({id:s,type:"form",options:l,resolve:i,open:!0})}),confirm:l=>new Promise(i=>{const s=++t,c=typeof l=="string"?{message:l}:l;o.push({id:s,type:"confirm",options:c,resolve:i,open:!0})}),open:l=>{const i=++t,s={id:i,type:"open",options:l,resolve:()=>{},open:!0};return o.push(s),{close:()=>{const c=o.findIndex(u=>u.id===i);c!==-1&&(o[c].open=!1,setTimeout(()=>{const u=o.findIndex(d=>d.id===i);u!==-1&&o.splice(u,1)},200))}}}};gi||(gi=r),e.provide(wd,r);const a=n.defineComponent({name:"DialogContainer",setup(){function l(c,u){c.resolve(u),c.open=!1,setTimeout(()=>{const d=o.findIndex(f=>f.id===c.id);d!==-1&&o.splice(d,1)},200)}function i(c,u){c.resolve(u),c.open=!1,setTimeout(()=>{const d=o.findIndex(f=>f.id===c.id);d!==-1&&o.splice(d,1)},200)}function s(c,u){u||(c.open=!1,setTimeout(()=>{const d=o.findIndex(f=>f.id===c.id);d!==-1&&o.splice(d,1)},200))}return{dialogStack:o,handleFormResolve:l,handleConfirmResolve:i,handleOpenUpdate:s}},render(){return this.dialogStack.map(l=>{if(l.type==="form")return n.h(r0,{key:l.id,open:l.open,...l.options,"onUpdate:open":i=>{i||this.handleFormResolve(l,{action:"cancel",data:l.options.modelValue||{}})},onResolve:i=>{this.handleFormResolve(l,i)}});if(l.type==="confirm")return n.h(kv,{key:l.id,open:l.open,...l.options,"onUpdate:open":i=>{i||this.handleConfirmResolve(l,!1)},onResolve:i=>{this.handleConfirmResolve(l,i)}});if(l.type==="open"){const i=l.options;return n.h(ns,{key:l.id,open:l.open,title:i.title,width:i.width,position:i.position,dismissable:i.dismissable,class:i.class,"onUpdate:open":s=>{this.handleOpenUpdate(l,s)}},{default:()=>n.h((typeof i.component=="string",i.component),i.props||{})})}return null})}});if(e.component("DialogContainer",a),typeof document<"u"&&typeof window<"u"){const l=()=>{if(!document.getElementById("bagelink-dialog-root")){const s=document.createElement("div");s.id="bagelink-dialog-root",document.body.appendChild(s);const c=n.createApp(a);c._context=e._context,c.mount(s)}};document.body&&l(),e.mixin({mounted(){this.$root===this&&l()}})}}},$d={pint:{pattern:/\d/},int:{pattern:/[\d-]/},pnum:{pattern:/[\d.]/},tel:{pattern:/[\d.\-()\s+]/},money:{pattern:/[\d.\s,]/},number:{pattern:/[\d\-.]/},num:{pattern:/[\d\-.]/},hex:{pattern:/[0-9a-f]/i},email:{pattern:/[\w.\-@]/},alpha:{pattern:/[a-z_]/i},alphanum:{pattern:/\w/},lower:{pattern:/[a-z]/i,transform:e=>e.toLowerCase()},upper:{pattern:/[A-Z]/i,transform:e=>e.toUpperCase()},slug:{pattern:/[a-z0-9-]/i,transform:e=>e.toLowerCase().replace(/\s/g,"-")},snake:{pattern:/[a-z_]/,transform:e=>e.toLowerCase().replace(/\s/g,"_")}},Sl=new WeakMap;function ac(e){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)return e;const t=e.querySelector("input, textarea");return t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?t:null}function nm(e){const t=Object.keys(e.modifiers);return t.length>0?t[t.length-1]:""}function a0(e){var t;return e.pattern!=null?e.pattern:e.modifier!=null&&e.modifier!==""?((t=$d[e.modifier])==null?void 0:t.pattern)??/./:/./}function om(e,t,o){o.keydownEvent=r=>{nP(r,t,o)},o.inputEvent=r=>{l0(r,t,o)},o.compositionStartEvent=()=>{oP(o)},o.compositionEndEvent=r=>{rP(r,t,o)},t.addEventListener("keydown",o.keydownEvent),t.addEventListener("input",o.inputEvent,{capture:!0}),t.addEventListener("compositionstart",o.compositionStartEvent),t.addEventListener("compositionend",o.compositionEndEvent)}function rm(e,t){t.keydownEvent&&e.removeEventListener("keydown",t.keydownEvent),t.inputEvent&&e.removeEventListener("input",t.inputEvent,{capture:!0}),t.compositionStartEvent&&e.removeEventListener("compositionstart",t.compositionStartEvent),t.compositionEndEvent&&e.removeEventListener("compositionend",t.compositionEndEvent),t.keydownEvent=void 0,t.inputEvent=void 0,t.compositionStartEvent=void 0,t.compositionEndEvent=void 0}function tP(e){const t=["Tab","Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"];return e.ctrlKey||e.altKey||e.metaKey?!0:t.includes(e.key)}function nP(e,t,o){var l;if(o.composing===!0||tP(e)||o.modifier!=null&&o.modifier!==""&&typeof((l=$d[o.modifier])==null?void 0:l.transform)=="function")return;const r=a0(o),a=e.key;r.test(a)||e.preventDefault()}function oP(e){e.composing=!0}function rP(e,t,o){o.composing=!1,l0(e,t,o)}function am(e,t){var l;const o=a0(t);let r;if(t.modifier!=null&&t.modifier!==""){const i=(l=$d[t.modifier])==null?void 0:l.transform;r=i?i(e):e}else r=e;let a="";for(let i=0;i<r.length;i++){const s=r[i];o.test(s)&&(a+=s)}return a}function l0(e,t,o){if(o.reformatting===!0||o.composing===!0)return;const r=t.value,a=t.selectionEnd??r.length,l=r.slice(0,a),i=am(r,o);if(i===r)return;const c=am(l,o).length;o.reformatting=!0,t.value=i,t.setSelectionRange(c,c),o.reformatting=!1}const i0={beforeMount(e,t){const o=ac(e);if(o===null)return;const r={modifier:nm(t)};typeof t.value=="object"&&t.value!==null&&(r.pattern=t.value.pattern??/./,r.validateOnly=t.value.validateOnly===!0),Sl.set(e,r),om(e,o,r)},updated(e,t){const o=ac(e);if(o===null)return;const r=Sl.get(e);r!==void 0&&(rm(o,r),r.modifier=nm(t),typeof t.value=="object"&&t.value!==null&&(r.pattern=t.value.pattern??/./,r.validateOnly=t.value.validateOnly===!0),om(e,o,r))},unmounted(e){const t=ac(e),o=Sl.get(e);t!==null&&o!==void 0&&rm(t,o),Sl.delete(e)},getSSRProps(){return{}}},s0={mounted(e,t){const o=r=>{const a=e.getBoundingClientRect(),l=Math.max(a.width,a.height),i=document.createElement("span");i.className="ripple",Object.assign(i.style,{width:`${l}px`,height:`${l}px`,left:`${r.clientX-a.left-l/2}px`,top:`${r.clientY-a.top-l/2}px`,position:"absolute",borderRadius:"50%",transform:"scale(0)",background:"rgba(0, 0, 0, 0.3)",pointerEvents:"none",animation:"rippleEffect 0.6s ease-out"}),e.appendChild(i),setTimeout(()=>{i.remove()},600)};e.__rippleClickHandler=o,t.value!==!1&&(getComputedStyle(e).position==="static"&&(e.style.position="relative"),e.style.overflow="hidden",e.addEventListener("mousedown",o))},updated(e,t){const o=e.__rippleClickHandler;t.value===!1?e.removeEventListener("mousedown",o):(getComputedStyle(e).position==="static"&&(e.style.position="relative"),e.style.overflow="hidden",e.addEventListener("mousedown",o))},unmounted(e){const t=e.__rippleClickHandler;t&&(e.removeEventListener("mousedown",t),delete e.__rippleClickHandler)},getSSRProps(){return{}}},ma=Symbol("resize");function lm(e,t){const o=t.value||{};let r=!1,a=0,l=0,i=null;o.handle?(i=e.querySelector(o.handle),i||(i=document.createElement("div"),i.className=o.handle.replace(".","")+(o.handleClass?` ${o.handleClass}`:""),i.style.cssText=`
|
|
426
|
+
*/const IA="11.2.8";function OA(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Yo().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Yo().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Yo().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Yo().__INTLIFY_PROD_DEVTOOLS__=!1)}const pt={UNEXPECTED_RETURN_TYPE:WB,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function rn(e,...t){return Kr(e,null,process.env.NODE_ENV!=="production"?{messages:RA,args:t}:void 0)}const RA={[pt.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[pt.INVALID_ARGUMENT]:"Invalid argument",[pt.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[pt.NOT_INSTALLED]:"Need to install with `app.use` function",[pt.UNEXPECTED_ERROR]:"Unexpected error",[pt.REQUIRED_VALUE]:"Required in value: {0}",[pt.INVALID_VALUE]:"Invalid value",[pt.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[pt.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[pt.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[pt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},au=io("__translateVNode"),lu=io("__datetimeParts"),iu=io("__numberParts"),sr=io("__enableEmitter"),Fa=io("__disableEmitter"),Yv=io("__setPluralRules"),Xv=io("__injectWithOption"),su=io("__dispose"),kn={FALLBACK_TO_ROOT:rA,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12,DUPLICATE_USE_I18N_CALLING:13},FA={[kn.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[kn.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[kn.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[kn.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
|
|
427
|
+
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[kn.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[kn.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function Rr(e,...t){return os(FA[e],...t)}function za(e){if(!tt(e)||Sn(e))return e;for(const t in e)if(Mn(e,t))if(!t.includes("."))tt(e[t])&&za(e[t]);else{const o=t.split("."),r=o.length-1;let a=e,l=!1;for(let i=0;i<r;i++){if(o[i]==="__proto__")throw new Error(`unsafe key: ${o[i]}`);if(o[i]in a||(a[o[i]]=st()),!tt(a[o[i]])){process.env.NODE_ENV!=="production"&&lo(Rr(kn.IGNORE_OBJ_FLATTEN,{key:o[i]})),l=!0;break}a=a[o[i]]}if(l||(Sn(a)?Mv.includes(o[r])||delete e[t]:(a[o[r]]=e[t],delete e[t])),!Sn(a)){const i=a[o[r]];tt(i)&&za(i)}}return e}function hd(e,t){const{messages:o,__i18n:r,messageResolver:a,flatJson:l}=t,i=Ke(o)?o:yt(r)?st():{[e]:st()};if(yt(r)&&r.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:c,resource:u}=s;c?(i[c]=i[c]||st(),Ul(u,i[c])):Ul(u,i)}else De(s)&&Ul(JSON.parse(s),i)}),a==null&&l)for(const s in i)Mn(i,s)&&za(i[s]);return i}function Kv(e){return e.type}function Jv(e,t,o){let r=tt(t.messages)?t.messages:st();"__i18nGlobal"in o&&(r=hd(e.locale.value,{messages:r,__i18n:o.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(l=>{e.mergeLocaleMessage(l,r[l])});{if(tt(t.datetimeFormats)){const l=Object.keys(t.datetimeFormats);l.length&&l.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(tt(t.numberFormats)){const l=Object.keys(t.numberFormats);l.length&&l.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function Hp(e){return n.createVNode(n.Text,null,e,0)}function Br(){const e="currentInstance";return e in ws?ws[e]:ws.getCurrentInstance()}const jp="__INTLIFY_META__",Wp=()=>[],zA=()=>!1;let qp=0;function Gp(e){return(t,o,r,a)=>e(o,r,Br()||void 0,a)}const UA=()=>{const e=Br();let t=null;return e&&(t=Kv(e)[jp])?{[jp]:t}:null};function gd(e={}){const{__root:t,__injectWithOption:o}=e,r=t===void 0,a=e.flatJson,l=Fn?n.ref:n.shallowRef;let i=ot(e.inheritLocale)?e.inheritLocale:!0;const s=l(t&&i?t.locale.value:De(e.locale)?e.locale:Ra),c=l(t&&i?t.fallbackLocale.value:De(e.fallbackLocale)||yt(e.fallbackLocale)||Ke(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=l(hd(s.value,e)),d=l(Ke(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),f=l(Ke(e.numberFormats)?e.numberFormats:{[s.value]:{}});let h=t?t.missingWarn:ot(e.missingWarn)||Ir(e.missingWarn)?e.missingWarn:!0,m=t?t.fallbackWarn:ot(e.fallbackWarn)||Ir(e.fallbackWarn)?e.fallbackWarn:!0,p=t?t.fallbackRoot:ot(e.fallbackRoot)?e.fallbackRoot:!0,g=!!e.fallbackFormat,_=ut(e.missing)?e.missing:null,v=ut(e.missing)?Gp(e.missing):null,y=ut(e.postTranslation)?e.postTranslation:null,b=t?t.warnHtmlMessage:ot(e.warnHtmlMessage)?e.warnHtmlMessage:!0,$=!!e.escapeParameter;const w=t?t.modifiers:Ke(e.modifiers)?e.modifiers:{};let E=e.pluralRules||t&&t.pluralRules,S;S=(()=>{r&&Mp(null);const le={version:IA,locale:s.value,fallbackLocale:c.value,messages:u.value,modifiers:w,pluralRules:E,missing:v===null?void 0:v,missingWarn:h,fallbackWarn:m,fallbackFormat:g,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:b,escapeParameter:$,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};le.datetimeFormats=d.value,le.numberFormats=f.value,le.__datetimeFormatters=Ke(S)?S.__datetimeFormatters:void 0,le.__numberFormatters=Ke(S)?S.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(le.__v_emitter=Ke(S)?S.__v_emitter:void 0);const me=mA(le);return r&&Mp(me),me})(),ia(S,s.value,c.value);function N(){return[s.value,c.value,u.value,d.value,f.value]}const M=n.computed({get:()=>s.value,set:le=>{S.locale=le,s.value=le}}),V=n.computed({get:()=>c.value,set:le=>{S.fallbackLocale=le,c.value=le,ia(S,s.value,le)}}),k=n.computed(()=>u.value),C=n.computed(()=>d.value),B=n.computed(()=>f.value);function A(){return ut(y)?y:null}function L(le){y=le,S.postTranslation=le}function I(){return _}function P(le){le!==null&&(v=Gp(le)),_=le,S.missing=v}function oe(le,me){return le!=="translate"||!me.resolvedMessage}const Z=(le,me,We,at,Lt,an)=>{N();let ie;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(S.fallbackContext=t?pA():void 0),ie=le(S)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(S.fallbackContext=void 0)}if(We!=="translate exists"&&Bt(ie)&&ie===as||We==="translate exists"&&!ie){const[ye,Ve]=me();if(process.env.NODE_ENV!=="production"&&t&&De(ye)&&oe(We,Ve)&&(p&&(ls(m,ye)||Fv(h,ye))&&lo(Rr(kn.FALLBACK_TO_ROOT,{key:ye,type:We})),process.env.NODE_ENV!=="production")){const{__v_emitter:Oe}=S;Oe&&p&&Oe.emit("fallback",{type:We,key:ye,to:"global",groupId:`${We}:${ye}`})}return t&&p?at(t):Lt(ye)}else{if(an(ie))return ie;throw rn(pt.UNEXPECTED_RETURN_TYPE)}};function U(...le){return Z(me=>Reflect.apply(Up,null,[me,...le]),()=>ou(...le),"translate",me=>Reflect.apply(me.t,me,[...le]),me=>me,me=>De(me))}function R(...le){const[me,We,at]=le;if(at&&!tt(at))throw rn(pt.INVALID_ARGUMENT);return U(me,We,Vt({resolvedMessage:!0},at||{}))}function H(...le){return Z(me=>Reflect.apply(Pp,null,[me,...le]),()=>tu(...le),"datetime format",me=>Reflect.apply(me.d,me,[...le]),()=>mi,me=>De(me)||yt(me))}function J(...le){return Z(me=>Reflect.apply(Op,null,[me,...le]),()=>nu(...le),"number format",me=>Reflect.apply(me.n,me,[...le]),()=>mi,me=>De(me)||yt(me))}function ae(le){return le.map(me=>De(me)||Bt(me)||ot(me)?Hp(String(me)):me)}const pe={normalize:ae,interpolate:le=>le,type:"vnode"};function Ce(...le){return Z(me=>{let We;const at=me;try{at.processor=pe,We=Reflect.apply(Up,null,[at,...le])}finally{at.processor=null}return We},()=>ou(...le),"translate",me=>me[au](...le),me=>[Hp(me)],me=>yt(me))}function xe(...le){return Z(me=>Reflect.apply(Op,null,[me,...le]),()=>nu(...le),"number format",me=>me[iu](...le),Wp,me=>De(me)||yt(me))}function Ee(...le){return Z(me=>Reflect.apply(Pp,null,[me,...le]),()=>tu(...le),"datetime format",me=>me[lu](...le),Wp,me=>De(me)||yt(me))}function $e(le){E=le,S.pluralRules=E}function Be(le,me){return Z(()=>{if(!le)return!1;const We=De(me)?me:s.value,at=be(We),Lt=S.messageResolver(at,le);return Sn(Lt)||$n(Lt)||De(Lt)},()=>[le],"translate exists",We=>Reflect.apply(We.te,We,[le,me]),zA,We=>ot(We))}function re(le){let me=null;const We=Vv(S,c.value,s.value);for(let at=0;at<We.length;at++){const Lt=u.value[We[at]]||{},an=S.messageResolver(Lt,le);if(an!=null){me=an;break}}return me}function ge(le){const me=re(le);return me??(t?t.tm(le)||{}:{})}function be(le){return u.value[le]||{}}function Q(le,me){if(a){const We={[le]:me};for(const at in We)Mn(We,at)&&za(We[at]);me=We[le]}u.value[le]=me,S.messages=u.value}function we(le,me){u.value[le]=u.value[le]||{};const We={[le]:me};if(a)for(const at in We)Mn(We,at)&&za(We[at]);me=We[le],Ul(me,u.value[le]),S.messages=u.value}function O(le){return d.value[le]||{}}function G(le,me){d.value[le]=me,S.datetimeFormats=d.value,Ip(S,le,me)}function ue(le,me){d.value[le]=Vt(d.value[le]||{},me),S.datetimeFormats=d.value,Ip(S,le,me)}function _e(le){return f.value[le]||{}}function Ie(le,me){f.value[le]=me,S.numberFormats=f.value,Rp(S,le,me)}function Xe(le,me){f.value[le]=Vt(f.value[le]||{},me),S.numberFormats=f.value,Rp(S,le,me)}qp++,t&&Fn&&(n.watch(t.locale,le=>{i&&(s.value=le,S.locale=le,ia(S,s.value,c.value))}),n.watch(t.fallbackLocale,le=>{i&&(c.value=le,S.fallbackLocale=le,ia(S,s.value,c.value))}));const Pe={id:qp,locale:M,fallbackLocale:V,get inheritLocale(){return i},set inheritLocale(le){i=le,le&&t&&(s.value=t.locale.value,c.value=t.fallbackLocale.value,ia(S,s.value,c.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:k,get modifiers(){return w},get pluralRules(){return E||{}},get isGlobal(){return r},get missingWarn(){return h},set missingWarn(le){h=le,S.missingWarn=h},get fallbackWarn(){return m},set fallbackWarn(le){m=le,S.fallbackWarn=m},get fallbackRoot(){return p},set fallbackRoot(le){p=le},get fallbackFormat(){return g},set fallbackFormat(le){g=le,S.fallbackFormat=g},get warnHtmlMessage(){return b},set warnHtmlMessage(le){b=le,S.warnHtmlMessage=le},get escapeParameter(){return $},set escapeParameter(le){$=le,S.escapeParameter=le},t:U,getLocaleMessage:be,setLocaleMessage:Q,mergeLocaleMessage:we,getPostTranslationHandler:A,setPostTranslationHandler:L,getMissingHandler:I,setMissingHandler:P,[Yv]:$e};return Pe.datetimeFormats=C,Pe.numberFormats=B,Pe.rt=R,Pe.te=Be,Pe.tm=ge,Pe.d=H,Pe.n=J,Pe.getDateTimeFormat=O,Pe.setDateTimeFormat=G,Pe.mergeDateTimeFormat=ue,Pe.getNumberFormat=_e,Pe.setNumberFormat=Ie,Pe.mergeNumberFormat=Xe,Pe[Xv]=o,Pe[au]=Ce,Pe[lu]=Ee,Pe[iu]=xe,process.env.NODE_ENV!=="production"&&(Pe[sr]=le=>{S.__v_emitter=le},Pe[Fa]=()=>{S.__v_emitter=void 0}),Pe}const Zv="vue-i18n: composer properties",rc={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},HA={"vue-i18n-resource-inspector":"Search for scopes ..."},jA={"vue-i18n-timeline":16764185};let cu;async function WA(e,t){return new Promise((o,r)=>{try{PA({id:"vue-devtools-plugin-vue-i18n",label:rc["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[Zv],app:e},a=>{cu=a,a.on.visitComponentTree(({componentInstance:i,treeNode:s})=>{qA(i,s,t)}),a.on.inspectComponent(({componentInstance:i,instanceData:s})=>{i.__VUE_I18N__&&s&&(t.mode==="legacy"?i.__VUE_I18N__!==t.global.__composer&&Yp(s,i.__VUE_I18N__):Yp(s,i.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:rc["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:HA["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&JA(i,t)});const l=new Map;a.on.getInspectorState(async i=>{if(i.app===e&&i.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),QA(i,t),i.nodeId==="global"){if(!l.has(i.app)){const[s]=await a.getComponentInstances(i.app);l.set(i.app,s)}a.highlightElement(l.get(i.app))}else{const s=ZA(i.nodeId,t);s&&a.highlightElement(s)}}),a.on.editInspectorState(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&tM(i,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:rc["vue-i18n-timeline"],color:jA["vue-i18n-timeline"]}),o(!0)})}catch(a){console.error(a),r(!1)}})}function Qv(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function qA(e,t,o){const r=o.mode==="composition"?o.global:o.global.__composer;if(e&&e.__VUE_I18N__&&e.__VUE_I18N__!==r){const a={label:`i18n (${Qv(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function Yp(e,t){const o=Zv;e.state.push({type:o,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:o,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:o,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:o,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:o,key:"messages",editable:!1,value:vd(t.messages.value)}),e.state.push({type:o,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:o,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function vd(e){const t={};return Object.keys(e).forEach(o=>{const r=e[o];ut(r)&&"source"in r?t[o]=KA(r):Sn(r)&&r.loc&&r.loc.source?t[o]=r.loc.source:tt(r)?t[o]=vd(r):t[o]=r}),t}const GA={"<":"<",">":">",'"':""","&":"&"};function YA(e){return e.replace(/[<>"&]/g,XA)}function XA(e){return GA[e]||e}function KA(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${YA(e.source)}")`:"(?)"}`}}}function JA(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const o=t.mode==="composition"?t.global:t.global.__composer;for(const[r,a]of t.__instances){const l=t.mode==="composition"?a:a.__composer;o!==l&&e.rootNodes.push({id:l.id.toString(),label:`${Qv(r)} Scope`})}}function ZA(e,t){let o=null;if(e!=="global"){for(const[r,a]of t.__instances.entries())if(a.id.toString()===e){o=r;break}}return o}function e0(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const o=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return o?t.mode==="composition"?o:o.__composer:null}}function QA(e,t){const o=e0(e.nodeId,t);return o&&(e.state=eM(o)),null}function eM(e){const t={},o="Locale related info",r=[{type:o,key:"locale",editable:!0,value:e.locale.value},{type:o,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:o,key:"availableLocales",editable:!1,value:e.availableLocales},{type:o,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[o]=r;const a="Locale messages info",l=[{type:a,key:"messages",editable:!1,value:vd(e.messages.value)}];t[a]=l;{const i="Datetime formats info",s=[{type:i,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[i]=s;const c="Datetime formats info",u=[{type:c,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[c]=u}return t}function Ua(e,t){if(cu){let o;t&&"groupId"in t&&(o=t.groupId,delete t.groupId),cu.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:o,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function tM(e,t){const o=e0(e.nodeId,t);if(o){const[r]=e.path;r==="locale"&&De(e.state.value)?o.locale.value=e.state.value:r==="fallbackLocale"&&(De(e.state.value)||yt(e.state.value)||tt(e.state.value))?o.fallbackLocale.value=e.state.value:r==="inheritLocale"&&ot(e.state.value)&&(o.inheritLocale=e.state.value)}}function nM(e){const t=De(e.locale)?e.locale:Ra,o=De(e.fallbackLocale)||yt(e.fallbackLocale)||Ke(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=ut(e.missing)?e.missing:void 0,a=ot(e.silentTranslationWarn)||Ir(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,l=ot(e.silentFallbackWarn)||Ir(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=ot(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,c=Ke(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,d=ut(e.postTranslation)?e.postTranslation:void 0,f=De(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,m=ot(e.sync)?e.sync:!0;let p=e.messages;if(Ke(e.sharedMessages)){const w=e.sharedMessages;p=Object.keys(w).reduce((S,x)=>{const N=S[x]||(S[x]={});return Vt(N,w[x]),S},p||{})}const{__i18n:g,__root:_,__injectWithOption:v}=e,y=e.datetimeFormats,b=e.numberFormats,$=e.flatJson;return{locale:t,fallbackLocale:o,messages:p,flatJson:$,datetimeFormats:y,numberFormats:b,missing:r,missingWarn:a,fallbackWarn:l,fallbackRoot:i,fallbackFormat:s,modifiers:c,pluralRules:u,postTranslation:d,warnHtmlMessage:f,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:m,__i18n:g,__root:_,__injectWithOption:v}}function uu(e={}){const t=gd(nM(e)),{__extender:o}=e,r={id:t.id,get locale(){return t.locale.value},set locale(a){t.locale.value=a},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(a){t.fallbackLocale.value=a},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(a){t.setMissingHandler(a)},get silentTranslationWarn(){return ot(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(a){t.missingWarn=ot(a)?!a:a},get silentFallbackWarn(){return ot(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(a){t.fallbackWarn=ot(a)?!a:a},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(a){t.fallbackFormat=a},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(a){t.setPostTranslationHandler(a)},get sync(){return t.inheritLocale},set sync(a){t.inheritLocale=a},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){t.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(a){t.escapeParameter=a},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...a){return Reflect.apply(t.t,t,[...a])},rt(...a){return Reflect.apply(t.rt,t,[...a])},te(a,l){return t.te(a,l)},tm(a){return t.tm(a)},getLocaleMessage(a){return t.getLocaleMessage(a)},setLocaleMessage(a,l){t.setLocaleMessage(a,l)},mergeLocaleMessage(a,l){t.mergeLocaleMessage(a,l)},d(...a){return Reflect.apply(t.d,t,[...a])},getDateTimeFormat(a){return t.getDateTimeFormat(a)},setDateTimeFormat(a,l){t.setDateTimeFormat(a,l)},mergeDateTimeFormat(a,l){t.mergeDateTimeFormat(a,l)},n(...a){return Reflect.apply(t.n,t,[...a])},getNumberFormat(a){return t.getNumberFormat(a)},setNumberFormat(a,l){t.setNumberFormat(a,l)},mergeNumberFormat(a,l){t.mergeNumberFormat(a,l)}};return r.__extender=o,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=a=>{const l=t;l[sr]&&l[sr](a)},r.__disableEmitter=()=>{const a=t;a[Fa]&&a[Fa]()}),r}function oM(e,t,o){return{beforeCreate(){const r=Br();if(!r)throw rn(pt.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const l=a.i18n;if(a.__i18n&&(l.__i18n=a.__i18n),l.__root=t,this===this.$root)this.$i18n=Xp(e,l);else{l.__injectWithOption=!0,l.__extender=o.__vueI18nExtend,this.$i18n=uu(l);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=Xp(e,a);else{this.$i18n=uu({__i18n:a.__i18n,__injectWithOption:!0,__extender:o.__vueI18nExtend,__root:t});const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&Jv(t,a,a),this.$t=(...l)=>this.$i18n.t(...l),this.$rt=(...l)=>this.$i18n.rt(...l),this.$te=(l,i)=>this.$i18n.te(l,i),this.$d=(...l)=>this.$i18n.d(...l),this.$n=(...l)=>this.$i18n.n(...l),this.$tm=l=>this.$i18n.tm(l),o.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$i18n){const r=Br();if(!r)return;const a=this.$i18n;r.__VUE_I18N__=a.__composer;const l=this.__v_emitter=ud();a.__enableEmitter&&a.__enableEmitter(l),l.on("*",Ua)}},unmounted(){const r=Br();if(!r)throw rn(pt.UNEXPECTED_ERROR);const a=this.$i18n;process.env.NODE_ENV!=="production"&&r.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",Ua),delete this.__v_emitter),this.$i18n&&(a.__disableEmitter&&a.__disableEmitter(),delete r.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__disposer&&(a.__disposer(),delete a.__disposer,delete a.__extender),o.__deleteInstance(r),delete this.$i18n}}}function Xp(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Yv](t.pluralizationRules||e.pluralizationRules);const o=hd(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(o).forEach(r=>e.mergeLocaleMessage(r,o[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const yd={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function rM({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,a)=>[...r,...a.type===n.Fragment?a.children:[a]],[]):t.reduce((o,r)=>{const a=e[r];return a&&(o[r]=a()),o},st())}function t0(){return n.Fragment}const aM=n.defineComponent({name:"i18n-t",props:Vt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Bt(e)||!isNaN(e)}},yd),setup(e,t){const{slots:o,attrs:r}=t,a=e.i18n||_d({useScope:e.scope,__useComponent:!0});return()=>{const l=Object.keys(o).filter(f=>f[0]!=="_"),i=st();e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=De(e.plural)?+e.plural:e.plural);const s=rM(t,l),c=a[au](e.keypath,s,i),u=Vt(st(),r),d=De(e.tag)||tt(e.tag)?e.tag:t0();return n.h(d,u,c)}}}),Kp=aM;function lM(e){return yt(e)&&!De(e[0])}function n0(e,t,o,r){const{slots:a,attrs:l}=t;return()=>{const i={part:!0};let s=st();e.locale&&(i.locale=e.locale),De(e.format)?i.key=e.format:tt(e.format)&&(De(e.format.key)&&(i.key=e.format.key),s=Object.keys(e.format).reduce((h,m)=>o.includes(m)?Vt(st(),h,{[m]:e.format[m]}):h,st()));const c=r(e.value,i,s);let u=[i.key];yt(c)?u=c.map((h,m)=>{const p=a[h.type],g=p?p({[h.type]:h.value,index:m,parts:c}):[h.value];return lM(g)&&(g[0].key=`${h.type}-${m}`),g}):De(c)&&(u=[c]);const d=Vt(st(),l),f=De(e.tag)||tt(e.tag)?e.tag:t0();return n.h(f,d,u)}}const iM=n.defineComponent({name:"i18n-n",props:Vt({value:{type:Number,required:!0},format:{type:[String,Object]}},yd),setup(e,t){const o=e.i18n||_d({useScope:e.scope,__useComponent:!0});return n0(e,t,jv,(...r)=>o[iu](...r))}}),Jp=iM;function sM(e,t){const o=e;if(e.mode==="composition")return o.__getInstance(t)||e.global;{const r=o.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function cM(e){const t=i=>{process.env.NODE_ENV!=="production"&&id(Rr(kn.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:s,value:c}=i;if(!s||!s.$)throw rn(pt.UNEXPECTED_ERROR);const u=sM(e,s.$),d=Zp(c);return[Reflect.apply(u.t,u,[...Qp(d)]),u]};return{created:(i,s)=>{const[c,u]=t(s);Fn&&e.global===u&&(i.__i18nWatcher=n.watch(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),i.__composer=u,i.textContent=c},unmounted:i=>{Fn&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:s})=>{if(i.__composer){const c=i.__composer,u=Zp(s);i.textContent=Reflect.apply(c.t,c,[...Qp(u)])}},getSSRProps:i=>{const[s]=t(i);return{textContent:s}}}}function Zp(e){if(De(e))return{path:e};if(Ke(e)){if(!("path"in e))throw rn(pt.REQUIRED_VALUE,"path");return e}else throw rn(pt.INVALID_VALUE)}function Qp(e){const{path:t,locale:o,args:r,choice:a,plural:l}=e,i={},s=r||{};return De(o)&&(i.locale=o),Bt(a)&&(i.plural=a),Bt(l)&&(i.plural=l),[t,s,i]}function uM(e,t,...o){const r=Ke(o[0])?o[0]:{};(ot(r.globalInstall)?r.globalInstall:!0)&&([Kp.name,"I18nT"].forEach(l=>e.component(l,Kp)),[Jp.name,"I18nN"].forEach(l=>e.component(l,Jp)),[tm.name,"I18nD"].forEach(l=>e.component(l,tm))),e.directive("t",cM(t))}const dM=io("global-vue-i18n");function fM(e={}){const t=__VUE_I18N_LEGACY_API__&&ot(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&id(Rr(kn.DEPRECATE_LEGACY_MODE));const o=ot(e.globalInjection)?e.globalInjection:!0,r=new Map,[a,l]=pM(e,t),i=io(process.env.NODE_ENV!=="production"?"vue-i18n":"");function s(f){return r.get(f)||null}function c(f,h){r.set(f,h)}function u(f){r.delete(f)}const d={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...h){if(process.env.NODE_ENV!=="production"&&(f.__VUE_I18N__=d),f.__VUE_I18N_SYMBOL__=i,f.provide(f.__VUE_I18N_SYMBOL__,d),Ke(h[0])){const g=h[0];d.__composerExtend=g.__composerExtend,d.__vueI18nExtend=g.__vueI18nExtend}let m=null;!t&&o&&(m=wM(f,d.global)),__VUE_I18N_FULL_INSTALL__&&uM(f,d,...h),__VUE_I18N_LEGACY_API__&&t&&f.mixin(oM(l,l.__composer,d));const p=f.unmount;if(f.unmount=()=>{m&&m(),d.dispose(),p()},process.env.NODE_ENV!=="production"){if(!await WA(f,d))throw rn(pt.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const _=ud();if(t){const v=l;v.__enableEmitter&&v.__enableEmitter(_)}else{const v=l;v[sr]&&v[sr](_)}_.on("*",Ua)}},get global(){return l},dispose(){a.stop()},__instances:r,__getInstance:s,__setInstance:c,__deleteInstance:u};return d}function _d(e={}){const t=Br();if(t==null)throw rn(pt.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw rn(pt.NOT_INSTALLED);const o=mM(t),r=gM(o),a=Kv(t),l=hM(e,a);if(l==="global")return Jv(r,e,a),r;if(l==="parent"){let c=vM(o,t,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&lo(Rr(kn.NOT_FOUND_PARENT_SCOPE)),c=r),c}const i=o;let s=i.__getInstance(t);if(s==null){const c=Vt({},e);"__i18n"in a&&(c.__i18n=a.__i18n),r&&(c.__root=r),s=gd(c),i.__composerExtend&&(s[su]=i.__composerExtend(s)),_M(i,t,s),i.__setInstance(t,s)}else process.env.NODE_ENV!=="production"&&l==="local"&&lo(Rr(kn.DUPLICATE_USE_I18N_CALLING));return s}function pM(e,t){const o=n.effectScope(),r=__VUE_I18N_LEGACY_API__&&t?o.run(()=>uu(e)):o.run(()=>gd(e));if(r==null)throw rn(pt.UNEXPECTED_ERROR);return[o,r]}function mM(e){const t=n.inject(e.isCE?dM:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw rn(e.isCE?pt.NOT_INSTALLED_WITH_PROVIDE:pt.UNEXPECTED_ERROR);return t}function hM(e,t){return rs(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function gM(e){return e.mode==="composition"?e.global:e.global.__composer}function vM(e,t,o=!1){let r=null;const a=t.root;let l=yM(t,o);for(;l!=null;){const i=e;if(e.mode==="composition")r=i.__getInstance(l);else if(__VUE_I18N_LEGACY_API__){const s=i.__getInstance(l);s!=null&&(r=s.__composer,o&&r&&!r[Xv]&&(r=null))}if(r!=null||a===l)break;l=l.parent}return r}function yM(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function _M(e,t,o){let r=null;n.onMounted(()=>{if(process.env.NODE_ENV!=="production"){t.__VUE_I18N__=o,r=ud();const a=o;a[sr]&&a[sr](r),r.on("*",Ua)}},t),n.onUnmounted(()=>{const a=o;process.env.NODE_ENV!=="production"&&(r&&r.off("*",Ua),a[Fa]&&a[Fa](),delete t.__VUE_I18N__),e.__deleteInstance(t);const l=a[su];l&&(l(),delete a[su])},t)}const bM=["locale","fallbackLocale","availableLocales"],em=["t","rt","d","n","tm","te"];function wM(e,t){const o=Object.create(null);return bM.forEach(a=>{const l=Object.getOwnPropertyDescriptor(t,a);if(!l)throw rn(pt.UNEXPECTED_ERROR);const i=n.isRef(l.value)?{get(){return l.value.value},set(s){l.value.value=s}}:{get(){return l.get&&l.get()}};Object.defineProperty(o,a,i)}),e.config.globalProperties.$i18n=o,em.forEach(a=>{const l=Object.getOwnPropertyDescriptor(t,a);if(!l||!l.value)throw rn(pt.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,l)}),()=>{delete e.config.globalProperties.$i18n,em.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}const $M=n.defineComponent({name:"i18n-d",props:Vt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},yd),setup(e,t){const o=e.i18n||_d({useScope:e.scope,__useComponent:!0});return n0(e,t,Hv,(...r)=>o[lu](...r))}}),tm=$M;OA();sA(FB);cA(oA);uA(Vv);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Yo();e.__INTLIFY__=!0,zB(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const kM={title:"Confirm",message:"Are you sure you want to continue?",confirm:"Confirm",cancel:"Cancel"},EM={upload:"Upload",uploading:"Uploading {count} file{plural}...",noFile:"No file selected",dropPlaceholder:"Drag and Drop files here or click to upload",delete:"Delete",replace:"Replace",download:"Download"},CM={of:"of",prev:"Previous",next:"Next"},SM={required:"This field is required",invalidEmail:"Please enter a valid email address",invalidUrl:"Please enter a valid URL",minLength:"Must be at least {min} characters",maxLength:"Must be no more than {max} characters",minValue:"Must be at least {min}",maxValue:"Must be no more than {max}",pattern:"Invalid format",passwordStrength:"Password strength"},TM={veryWeak:"Very Weak",weak:"Weak",fair:"Fair",good:"Good",strong:"Strong"},NM={placeholder:"Select",search:"Search",yes:"Yes",no:"No"},DM={loadDefault:"Load Default {label}"},xM={item:"Item"},BM={loading:"Loading..."},AM={success:"Success",error:"Error",warning:"Warning",info:"Information"},MM={filter:"Filter",noActiveFilters:"No active filters",connectors:{and:"And",or:"Or"},operators:{eq:"Equals",ne:"Not equals",gt:"Greater than",ge:"Greater or equal",lt:"Less than",le:"Less or equal",co:"Contains",sw:"Starts with",ew:"Ends with",pr:"Present",in:"In list",nin:"Not in list"},placeholders:{selectField:"Select field",selectOption:"Select option",selectDate:"Select date",enterValue:"Value"},buttons:{addCondition:"Add condition",clearAll:"Clear all",save:"Save"}},VM={previous:"Previous",next:"Next",complete:"Complete",step:"Step {current} of {total}"},LM={placeholder:"Enter address"},PM={close:"Close",cancel:"Cancel",importData:"Import Data",changeFile:"Change File",selectSheet:"Select Sheet",hasHeaders:"Mark this if file has a header row",sourceKeyField:"Source Key Field (from this file)",relatedKeyField:"Related Key Field (from related file)",selectSourceValue:"Select source value",sourceValue:"Source value",selectTargetValue:"Select target value",targetValue:"Target value",selectColumn:"Select column..."},IM={year:"year",month:"month",week:"week",day:"day",hour:"hour",minute:"minute",second:"second",ago:"ago",in:"in",justNow:"Just now"},OM={save:"Save",cancel:"Cancel",delete:"Delete",validationError:"Please fix the validation errors before submitting",errorOccurred:"An error occurred"},RM={phoneNumber:"Phone Number",invalidPhone:"Please enter a valid phone number"},FM={invalidEmail:"Please enter a valid email address",invalidDomain:"This email domain appears to be invalid"},zM={invalidFormat:"Invalid date format"},UM={wrapText:"Wrap Text",selectAll:"Select All",clearAll:"Clear All"},HM={openFile:"Open File"},jM={placeholder:"Enter color"},WM={modalConfirm:kM,upload:EM,pagination:CM,form:SM,password:TM,select:NM,fieldArray:DM,arrayInput:xM,btn:BM,toast:AM,filter:MM,multiStep:VM,addressSearch:LM,importData:PM,timeAgo:IM,dialogForm:OM,tel:RM,email:FM,date:zM,spreadsheet:UM,lightbox:HM,color:jM},qM={title:"Confirmar",message:"¿Estás seguro de que quieres continuar?",confirm:"Confirmar",cancel:"Cancelar"},GM={upload:"Subir",uploading:"Subiendo {count} archivo{plural}...",noFile:"Ningún archivo seleccionado",dropPlaceholder:"Arrastra y suelta archivos aquí o haz clic para subir",delete:"Eliminar",replace:"Reemplazar",download:"Descargar"},YM={of:"de",prev:"Anterior",next:"Siguiente"},XM={required:"Este campo es obligatorio",invalidEmail:"Introduce un correo electrónico válido",invalidUrl:"Introduce una URL válida",minLength:"Debe tener al menos {min} caracteres",maxLength:"Debe tener como máximo {max} caracteres",minValue:"Debe ser al menos {min}",maxValue:"Debe ser como máximo {max}",pattern:"Formato inválido",passwordStrength:"Fortaleza de la contraseña"},KM={veryWeak:"Muy débil",weak:"Débil",fair:"Regular",good:"Buena",strong:"Fuerte"},JM={placeholder:"Seleccionar",search:"Buscar",yes:"Sí",no:"No"},ZM={loadDefault:"Cargar {label} predeterminado"},QM={item:"Elemento"},eV={loading:"Cargando..."},tV={success:"Éxito",error:"Error",warning:"Advertencia",info:"Información"},nV={filter:"Filtro",noActiveFilters:"Sin filtros activos",connectors:{and:"Y",or:"O"},operators:{eq:"Igual a",ne:"No igual a",gt:"Mayor que",ge:"Mayor o igual",lt:"Menor que",le:"Menor o igual",co:"Contiene",sw:"Empieza con",ew:"Termina con",pr:"Presente",in:"En lista",nin:"No en lista"},placeholders:{selectField:"Seleccionar campo",selectOption:"Seleccionar opción",selectDate:"Seleccionar fecha",enterValue:"Valor"},buttons:{addCondition:"Añadir condición",clearAll:"Limpiar todo",save:"Guardar"}},oV={previous:"Anterior",next:"Siguiente",complete:"Completar",step:"Paso {current} de {total}"},rV={placeholder:"Introduce una dirección"},aV={close:"Cerrar",cancel:"Cancelar",importData:"Importar datos",changeFile:"Cambiar archivo",selectSheet:"Seleccionar hoja",hasHeaders:"Marcar si el archivo tiene fila de encabezado",sourceKeyField:"Campo clave de origen (de este archivo)",relatedKeyField:"Campo clave relacionado (del archivo relacionado)",selectSourceValue:"Seleccionar valor de origen",sourceValue:"Valor de origen",selectTargetValue:"Seleccionar valor de destino",targetValue:"Valor de destino",selectColumn:"Seleccionar columna..."},lV={year:"año",month:"mes",week:"semana",day:"día",hour:"hora",minute:"minuto",second:"segundo",ago:"hace",in:"en",justNow:"Justo ahora"},iV={save:"Guardar",cancel:"Cancelar",delete:"Eliminar",validationError:"Por favor corrija los errores de validación antes de enviar",errorOccurred:"Ocurrió un error"},sV={phoneNumber:"Número de teléfono",invalidPhone:"Por favor introduce un número de teléfono válido"},cV={invalidEmail:"Introduce un correo electrónico válido",invalidDomain:"El dominio de este correo electrónico parece no ser válido"},uV={invalidFormat:"Formato de fecha inválido"},dV={wrapText:"Ajuste de texto",selectAll:"Seleccionar todo",clearAll:"Limpiar todo"},fV={openFile:"Abrir archivo"},pV={placeholder:"Introduce un color"},mV={modalConfirm:qM,upload:GM,pagination:YM,form:XM,password:KM,select:JM,fieldArray:ZM,arrayInput:QM,btn:eV,toast:tV,filter:nV,multiStep:oV,addressSearch:rV,importData:aV,timeAgo:lV,dialogForm:iV,tel:sV,email:cV,date:uV,spreadsheet:dV,lightbox:fV,color:pV},hV={title:"Confirmer",message:"Êtes-vous sûr de vouloir continuer ?",confirm:"Confirmer",cancel:"Annuler"},gV={upload:"Télécharger",uploading:"Téléchargement de {count} fichier{plural} en cours...",noFile:"Aucun fichier sélectionné",dropPlaceholder:"Glissez-déposez des fichiers ici ou cliquez pour télécharger",delete:"Supprimer",replace:"Remplacer",download:"Télécharger"},vV={of:"de",prev:"Précédent",next:"Suivant"},yV={required:"Ce champ est obligatoire",invalidEmail:"Veuillez entrer une adresse email valide",invalidUrl:"Veuillez entrer une URL valide",minLength:"Doit contenir au moins {min} caractères",maxLength:"Doit contenir au maximum {max} caractères",minValue:"Doit être au moins {min}",maxValue:"Doit être au maximum {max}",pattern:"Format invalide",passwordStrength:"Force du mot de passe"},_V={veryWeak:"Très faible",weak:"Faible",fair:"Passable",good:"Bonne",strong:"Forte"},bV={placeholder:"Sélectionner",search:"Rechercher",yes:"Oui",no:"Non"},wV={loadDefault:"Charger {label} par défaut"},$V={item:"Élément"},kV={loading:"Chargement..."},EV={success:"Succès",error:"Erreur",warning:"Avertissement",info:"Information"},CV={filter:"Filtre",noActiveFilters:"Aucun filtre actif",connectors:{and:"Et",or:"Ou"},operators:{eq:"Égal à",ne:"Différent de",gt:"Supérieur à",ge:"Supérieur ou égal",lt:"Inférieur à",le:"Inférieur ou égal",co:"Contient",sw:"Commence par",ew:"Se termine par",pr:"Présent",in:"Dans la liste",nin:"Pas dans la liste"},placeholders:{selectField:"Sélectionner un champ",selectOption:"Sélectionner une option",selectDate:"Sélectionner une date",enterValue:"Valeur"},buttons:{addCondition:"Ajouter une condition",clearAll:"Tout effacer",save:"Enregistrer"}},SV={previous:"Précédent",next:"Suivant",complete:"Terminer",step:"Étape {current} sur {total}"},TV={placeholder:"Entrez une adresse"},NV={close:"Fermer",cancel:"Annuler",importData:"Importer les données",changeFile:"Changer de fichier",selectSheet:"Sélectionner la feuille",hasHeaders:"Cochez si le fichier a une ligne d'en-tête",sourceKeyField:"Champ clé source (de ce fichier)",relatedKeyField:"Champ clé lié (du fichier lié)",selectSourceValue:"Sélectionner la valeur source",sourceValue:"Valeur source",selectTargetValue:"Sélectionner la valeur cible",targetValue:"Valeur cible",selectColumn:"Sélectionner une colonne..."},DV={year:"an",month:"mois",week:"semaine",day:"jour",hour:"heure",minute:"minute",second:"seconde",ago:"il y a",in:"dans",justNow:"À l'instant"},xV={save:"Enregistrer",cancel:"Annuler",delete:"Supprimer",validationError:"Veuillez corriger les erreurs de validation avant de soumettre",errorOccurred:"Une erreur est survenue"},BV={phoneNumber:"Numéro de téléphone",invalidPhone:"Veuillez entrer un numéro de téléphone valide"},AV={invalidEmail:"Veuillez entrer une adresse email valide",invalidDomain:"Le domaine de cet email semble invalide"},MV={invalidFormat:"Format de date invalide"},VV={wrapText:"Renvoyer à la ligne",selectAll:"Tout sélectionner",clearAll:"Tout effacer"},LV={openFile:"Ouvrir le fichier"},PV={placeholder:"Entrez une couleur"},IV={modalConfirm:hV,upload:gV,pagination:vV,form:yV,password:_V,select:bV,fieldArray:wV,arrayInput:$V,btn:kV,toast:EV,filter:CV,multiStep:SV,addressSearch:TV,importData:NV,timeAgo:DV,dialogForm:xV,tel:BV,email:AV,date:MV,spreadsheet:VV,lightbox:LV,color:PV},OV={title:"אישור",message:"האם אתה בטוח שברצונך להמשיך?",confirm:"אישור",cancel:"ביטול"},RV={upload:"העלה",uploading:"מעלה {count} קבצים...",noFile:"לא נבחר קובץ",dropPlaceholder:"גרור ושחרר קבצים כאן או לחץ להעלאה",delete:"מחק",replace:"החלף",download:"הורד"},FV={of:"מתוך",prev:"הקודם",next:"הבא"},zV={required:"שדה זה נדרש",invalidEmail:"הזן כתובת אימייל חוקית",invalidUrl:"הזן כתובת URL חוקית",minLength:"חייב להכיל לפחות {min} תווים",maxLength:"חייב להכיל לכל היותר {max} תווים",minValue:"חייב להיות לפחות {min}",maxValue:"חייב להיות לכל היותר {max}",pattern:"פורמט לא חוקי",passwordStrength:"חוזק סיסמה"},UV={veryWeak:"חלשה מאוד",weak:"חלשה",fair:"סבירה",good:"טובה",strong:"חזקה"},HV={placeholder:"בחר",search:"חיפוש",yes:"כן",no:"לא"},jV={loadDefault:"טען {label} ברירת מחדל"},WV={item:"פריט"},qV={loading:"טוען..."},GV={success:"הצלחה",error:"שגיאה",warning:"אזהרה",info:"מידע"},YV={filter:"פילטר",noActiveFilters:"אין פילטרים פעילים",connectors:{and:"וגם",or:"או"},operators:{eq:"שווה ל",ne:"לא שווה ל",gt:"גדול מ",ge:"גדול או שווה ל",lt:"קטן מ",le:"קטן או שווה ל",co:"מכיל",sw:"מתחיל ב",ew:"מסתיים ב",pr:"קיים",in:"ברשימה",nin:"לא ברשימה"},placeholders:{selectField:"בחר שדה",selectOption:"בחירה",selectDate:"בחירת תאריך",enterValue:"ערך"},buttons:{addCondition:"הוספת תנאי",clearAll:"נקה הכל",save:"שמירה"}},XV={previous:"הקודם",next:"הבא",complete:"סיים",step:"שלב {current} מתוך {total}"},KV={placeholder:"הזן כתובת"},JV={close:"סגור",cancel:"ביטול",importData:"ייבא נתונים",changeFile:"החלף קובץ",selectSheet:"בחר גיליון",hasHeaders:"סמן אם לקובץ יש שורת כותרת",sourceKeyField:"שדה מפתח מקור (מהקובץ הזה)",relatedKeyField:"שדה מפתח קשור (מהקובץ הקשור)",selectSourceValue:"בחר ערך מקור",sourceValue:"ערך מקור",selectTargetValue:"בחר ערך יעד",targetValue:"ערך יעד",selectColumn:"בחר עמודה..."},ZV={year:{singular:"שנה",plural:"שנים"},month:{singular:"חודש",plural:"חודשים"},week:{singular:"שבוע",plural:"שבועות"},day:{singular:"יום",plural:"ימים"},hour:{singular:"שעה",plural:"שעות"},minute:{singular:"דקה",plural:"דקות"},second:{singular:"שנייה",plural:"שניות"},ago:"לפני",in:"בעוד",justNow:"זה עתה"},QV={save:"שמור",cancel:"ביטול",delete:"מחק",validationError:"אנא תקן את שגיאות האימות לפני השליחה",errorOccurred:"אירעה שגיאה"},eL={phoneNumber:"מספר טלפון",invalidPhone:"אנא הזן מספר טלפון תקין"},tL={invalidEmail:"הזן כתובת אימייל חוקית",invalidDomain:"נראה שדומיין האימייל אינו חוקי"},nL={invalidFormat:"פורמט תאריך לא חוקי"},oL={wrapText:"גלישת טקסט",selectAll:"בחר הכל",clearAll:"נקה הכל"},rL={openFile:"פתח קובץ"},aL={placeholder:"הזן צבע"},lL={modalConfirm:OV,upload:RV,pagination:FV,form:zV,password:UV,select:HV,fieldArray:jV,arrayInput:WV,btn:qV,toast:GV,filter:YV,multiStep:XV,addressSearch:KV,importData:JV,timeAgo:ZV,dialogForm:QV,tel:eL,email:tL,date:nL,spreadsheet:oL,lightbox:rL,color:aL},iL={title:"Conferma",message:"Sei sicuro di voler continuare?",confirm:"Conferma",cancel:"Annulla"},sL={upload:"Carica",uploading:"Caricamento di {count} file{plural} in corso...",noFile:"Nessun file selezionato",dropPlaceholder:"Trascina e rilascia i file qui o clicca per caricare",delete:"Elimina",replace:"Sostituisci",download:"Scarica"},cL={of:"di",prev:"Precedente",next:"Successivo"},uL={required:"Questo campo è obbligatorio",invalidEmail:"Inserisci un indirizzo email valido",invalidUrl:"Inserisci un URL valido",minLength:"Deve contenere almeno {min} caratteri",maxLength:"Deve contenere al massimo {max} caratteri",minValue:"Deve essere almeno {min}",maxValue:"Deve essere al massimo {max}",pattern:"Formato non valido",passwordStrength:"Forza della password"},dL={veryWeak:"Molto debole",weak:"Debole",fair:"Discreta",good:"Buona",strong:"Forte"},fL={placeholder:"Seleziona",search:"Cerca",yes:"Sì",no:"No"},pL={loadDefault:"Carica {label} predefinito"},mL={item:"Elemento"},hL={loading:"Caricamento..."},gL={success:"Successo",error:"Errore",warning:"Avviso",info:"Informazione"},vL={filter:"Filtro",noActiveFilters:"Nessun filtro attivo",connectors:{and:"E",or:"O"},operators:{eq:"Uguale a",ne:"Diverso da",gt:"Maggiore di",ge:"Maggiore o uguale",lt:"Minore di",le:"Minore o uguale",co:"Contiene",sw:"Inizia con",ew:"Finisce con",pr:"Presente",in:"Nella lista",nin:"Non nella lista"},placeholders:{selectField:"Seleziona campo",selectOption:"Seleziona opzione",selectDate:"Seleziona data",enterValue:"Valore"},buttons:{addCondition:"Aggiungi condizione",clearAll:"Cancella tutto",save:"Salva"}},yL={previous:"Precedente",next:"Successivo",complete:"Completa",step:"Passo {current} di {total}"},_L={placeholder:"Inserisci un indirizzo"},bL={close:"Chiudi",cancel:"Annulla",importData:"Importa dati",changeFile:"Cambia file",selectSheet:"Seleziona foglio",hasHeaders:"Seleziona se il file ha una riga di intestazione",sourceKeyField:"Campo chiave sorgente (da questo file)",relatedKeyField:"Campo chiave correlato (dal file correlato)",selectSourceValue:"Seleziona valore sorgente",sourceValue:"Valore sorgente",selectTargetValue:"Seleziona valore di destinazione",targetValue:"Valore di destinazione",selectColumn:"Seleziona colonna..."},wL={year:"anno",month:"mese",week:"settimana",day:"giorno",hour:"ora",minute:"minuto",second:"secondo",ago:"fa",in:"tra",justNow:"Poco fa"},$L={save:"Salva",cancel:"Annulla",delete:"Elimina",validationError:"Correggi gli errori di validazione prima di inviare",errorOccurred:"Si è verificato un errore"},kL={phoneNumber:"Numero di telefono",invalidPhone:"Inserisci un numero di telefono valido"},EL={invalidEmail:"Inserisci un indirizzo email valido",invalidDomain:"Il dominio di questa email sembra non essere valido"},CL={invalidFormat:"Formato data non valido"},SL={wrapText:"A capo automatico",selectAll:"Seleziona tutto",clearAll:"Cancella tutto"},TL={openFile:"Apri file"},NL={placeholder:"Inserisci un colore"},DL={modalConfirm:iL,upload:sL,pagination:cL,form:uL,password:dL,select:fL,fieldArray:pL,arrayInput:mL,btn:hL,toast:gL,filter:vL,multiStep:yL,addressSearch:_L,importData:bL,timeAgo:wL,dialogForm:$L,tel:kL,email:EL,date:CL,spreadsheet:SL,lightbox:TL,color:NL},xL={title:"Подтвердить",message:"Вы уверены, что хотите продолжить?",confirm:"Подтвердить",cancel:"Отмена"},BL={upload:"Загрузить",uploading:"Загрузка {count} файл{plural}...",noFile:"Файл не выбран",dropPlaceholder:"Перетащите файлы сюда или нажмите для загрузки",delete:"Удалить",replace:"Заменить",download:"Скачать"},AL={of:"из",prev:"Предыдущая",next:"Следующая"},ML={required:"Это поле обязательно для заполнения",invalidEmail:"Введите действительный адрес электронной почты",invalidUrl:"Введите действительный URL",minLength:"Должно содержать не менее {min} символов",maxLength:"Должно содержать не более {max} символов",minValue:"Должно быть не менее {min}",maxValue:"Должно быть не более {max}",pattern:"Неверный формат",passwordStrength:"Надежность пароля"},VL={veryWeak:"Очень слабый",weak:"Слабый",fair:"Средний",good:"Хороший",strong:"Надёжный"},LL={placeholder:"Выбрать",search:"Поиск",yes:"Да",no:"Нет"},PL={loadDefault:"Загрузить {label} по умолчанию"},IL={item:"Элемент"},OL={loading:"Загрузка..."},RL={success:"Успешно",error:"Ошибка",warning:"Предупреждение",info:"Информация"},FL={filter:"Фильтр",noActiveFilters:"Нет активных фильтров",connectors:{and:"И",or:"Или"},operators:{eq:"Равно",ne:"Не равно",gt:"Больше чем",ge:"Больше или равно",lt:"Меньше чем",le:"Меньше или равно",co:"Содержит",sw:"Начинается с",ew:"Заканчивается на",pr:"Присутствует",in:"В списке",nin:"Не в списке"},placeholders:{selectField:"Выберите поле",selectOption:"Выберите вариант",selectDate:"Выберите дату",enterValue:"Значение"},buttons:{addCondition:"Добавить условие",clearAll:"Очистить всё",save:"Сохранить"}},zL={previous:"Назад",next:"Далее",complete:"Завершить",step:"Шаг {current} из {total}"},UL={placeholder:"Введите адрес"},HL={close:"Закрыть",cancel:"Отмена",importData:"Импорт данных",changeFile:"Изменить файл",selectSheet:"Выбрать лист",hasHeaders:"Отметьте, если файл содержит строку заголовка",sourceKeyField:"Ключевое поле источника (из этого файла)",relatedKeyField:"Ключевое поле связанного (из связанного файла)",selectSourceValue:"Выберите исходное значение",sourceValue:"Исходное значение",selectTargetValue:"Выберите целевое значение",targetValue:"Целевое значение",selectColumn:"Выберите столбец..."},jL={year:"год",month:"месяц",week:"неделя",day:"день",hour:"час",minute:"минута",second:"секунда",ago:"назад",in:"через",justNow:"Только что"},WL={save:"Сохранить",cancel:"Отмена",delete:"Удалить",validationError:"Пожалуйста, исправьте ошибки валидации перед отправкой",errorOccurred:"Произошла ошибка"},qL={phoneNumber:"Номер телефона",invalidPhone:"Пожалуйста, введите действительный номер телефона"},GL={invalidEmail:"Введите действительный адрес электронной почты",invalidDomain:"Домен этого адреса электронной почты, похоже, недействителен"},YL={invalidFormat:"Неверный формат даты"},XL={wrapText:"Перенос текста",selectAll:"Выбрать всё",clearAll:"Очистить всё"},KL={openFile:"Открыть файл"},JL={placeholder:"Введите цвет"},ZL={modalConfirm:xL,upload:BL,pagination:AL,form:ML,password:VL,select:LL,fieldArray:PL,arrayInput:IL,btn:OL,toast:RL,filter:FL,multiStep:zL,addressSearch:UL,importData:HL,timeAgo:jL,dialogForm:WL,tel:qL,email:GL,date:YL,spreadsheet:XL,lightbox:KL,color:JL},du={en:WM,he:lL,it:DL,es:mV,fr:IV,ru:ZL};let hi=null;function o0(e={}){const{locale:t="en",fallbackLocale:o="en",messages:r={}}=e,a=Object.keys(du),l={};for(const i of a)l[i]={...du[i]||{},...r[i]||{}};for(const i of Object.keys(r))l[i]||(l[i]=r[i]);return hi=fM({locale:t,fallbackLocale:o,messages:l,legacy:!1,globalInjection:!0}),hi}function Jr(){if(!hi)throw new Error("i18n not initialized. Call createI18n() first.");return hi}function Tt(){const e=Jr().global;return{$t:e.t,t:e.t,locale:e.locale,availableLocales:e.availableLocales,fallbackLocale:e.fallbackLocale,n:e.n,d:e.d}}function je(e){if(e!=null)return e.startsWith("$t:")?Jr().global.t(e.slice(3)):e}const bd=n.defineComponent({__name:"FormFlow",props:{schema:{},modelValue:{},components:{},errors:{},onSubmit:{type:Function}},emits:["update:modelValue"],setup(e,{expose:t,emit:o}){const r=e,a=o,{$t:l}=Tt();function i(C,B){const A=B.split(".");let L=C;for(const I of A)L=L==null?void 0:L[I];return L}function s(C,B,A){const L=B.split(".");let I=C;for(let P=0;P<L.length-1;P++){const oe=L[P];(I[oe]==null||typeof I[oe]!="object")&&(I[oe]={}),I=I[oe]}I[L[L.length-1]]=A}function c(C){const B={...C??{}};for(const[A,L]of Object.entries(r.schema._fields)){const I=L._config.default;I!==void 0&&i(B,A)===void 0&&s(B,A,I)}return B}const u=n.ref(c(r.modelValue)),d=n.ref({}),f=n.ref(!1),h=n.ref("idle"),m=n.ref();let p=!1;n.watch(()=>r.modelValue,C=>{p||(u.value=c(C))},{deep:!0}),n.watch(u,C=>{p=!0,a("update:modelValue",C),n.nextTick(()=>{p=!1})},{deep:!0});function g(C){return C._condition==null?!0:o2(C._condition,u.value)}const _=n.computed(()=>{const C=[];for(const[B,A]of Object.entries(r.schema._fields))g(A)&&C.push({key:B,field:A});return C});function v(C,B,A){s(u.value,C,B),(h.value==="success"||h.value==="error")&&(h.value="idle"),f.value&&b(C,A)}function y(C,B){return C==null||C===""||Array.isArray(C)&&C.length===0||B._type==="tel"&&typeof C=="string"&&/^\+\d+$/.test(C)}function b(C,B){const A=$(C);if(B._config.required===!0&&y(A,B))return d.value={...d.value,[C]:B._config.requiredMessage??l("form.required")},!1;if(B._validations!=null)for(const L of B._validations){const I=L(A);if(I!==!0)return d.value={...d.value,[C]:I},!1}return d.value=Object.fromEntries(Object.entries(d.value).filter(([L])=>L!==C)),!0}function $(C){return i(u.value,C)}function w(C,B){return B._config.label!=null?B._config.label:C.split(/[._-]/).map(A=>A.charAt(0).toUpperCase()+A.slice(1)).join(" ")}function E(C){return{text:et,email:Pu,password:Zh,number:Yn,tel:Ju,url:et,date:Da,time:et,datetime:Da,textarea:et,richtext:zu,json:Lu,checkbox:Ut,toggle:es,radio:Qh,select:vt,multiselect:vt,array:ua,upload:Aa,color:Wn}[C]??et}const S=n.computed(()=>{const C={...d.value,...r.errors||{}},B={};for(const[A,L]of Object.entries(C))B[A]=je(L)??L;return B});function x(C,B){const L={label:w(B,C),modelValue:$(B),"onUpdate:modelValue":I=>{v(B,I,C)},error:S.value[B],...C._config};if(C._type==="textarea"&&(L.multiline=!0),C._type==="multiselect"&&(L.multiple=!0),C._type==="json"&&(L.language=L.language??"json"),C._type==="array"){const I=Object.fromEntries(Object.entries(C._config).filter(([P])=>P!=="schema"&&P!=="itemType"));Object.assign(L,I),L.allowAdd=L.allowAdd??!0,L.allowDelete=L.allowDelete??!0}return L}function N(C){var B;return typeof C=="string"&&((B=r.components)==null?void 0:B[C])!=null?r.components[C]:C}function M(C){return C._component!=null}function V(){let C=!0;const B={};for(const{key:A,field:L}of _.value){const I=$(A);if(L._config.required===!0&&y(I,L)){B[A]=L._config.requiredMessage??l("form.required"),C=!1;continue}if(L._validations!=null)for(const P of L._validations){const oe=P(I);if(oe!==!0){B[A]=oe,C=!1;break}}}return d.value=B,C}async function k(C){var A;C&&C.preventDefault(),f.value=!0;const B=V();if(B){if(r.onSubmit){h.value="submitting";try{await r.onSubmit(u.value),h.value="success"}catch{h.value="error"}}}else{C==null||C.stopPropagation();const L=(A=_.value.find(({key:I})=>d.value[I]))==null?void 0:A.key;if(L!=null&&m.value){const I=m.value.querySelector(`[name="${L}"]`)||m.value.querySelector(`[id="${L}"]`)||m.value.querySelector("input, select, textarea");I&&(I.scrollIntoView({behavior:"smooth",block:"center"}),setTimeout(()=>{I instanceof HTMLElement&&I.focus()},300))}}return B}return t({validate:V,submit:k,formState:h}),(C,B)=>{const A=n.resolveComponent("FormFlow",!0);return n.openBlock(),n.createElementBlock("form",{ref_key:"formElement",ref:m,class:n.normalizeClass(C.schema._class),onSubmit:k},[h.value==="success"?n.renderSlot(C.$slots,"success",{key:0,formData:u.value}):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(_.value,({key:L,field:I})=>(n.openBlock(),n.createElementBlock("div",{key:L,class:n.normalizeClass([I._class,I._config.class])},[n.renderSlot(C.$slots,`field:${L}`,{value:$(L),field:I,formData:u.value,error:d.value[L],onChange:P=>{v(L,P,I)}},()=>{var P;return[I._type==="array"&&((P=I._config.schema)!=null&&P._isSchema)?(n.openBlock(),n.createBlock(ua,n.mergeProps({key:0,ref_for:!0},x(I,L)),{default:n.withCtx(({item:oe})=>[n.createVNode(A,{modelValue:oe.value,"onUpdate:modelValue":Z=>oe.value=Z,schema:I._config.schema,components:C.components},null,8,["modelValue","onUpdate:modelValue","schema","components"])]),_:2},1040)):I._type==="array"&&I._config.schema?(n.openBlock(),n.createBlock(ua,n.mergeProps({key:1,ref_for:!0},x(I,L)),{default:n.withCtx(({item:oe})=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(N(I._config.schema)),{modelValue:oe.value,"onUpdate:modelValue":Z=>oe.value=Z},null,8,["modelValue","onUpdate:modelValue"]))]),_:2},1040)):I._type==="array"&&I._config.itemType?(n.openBlock(),n.createBlock(ua,n.mergeProps({key:2,ref_for:!0},x(I,L)),{default:n.withCtx(({item:oe})=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(E(I._config.itemType)),{"model-value":oe.value,"onUpdate:modelValue":Z=>{oe.value=Z}},null,8,["model-value","onUpdate:modelValue"]))]),_:2},1040)):M(I)?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(N(I._component.component)),n.mergeProps({key:3,"model-value":$(L)},{ref_for:!0},I._component.props,{"onUpdate:modelValue":oe=>v(L,oe,I)}),null,16,["model-value","onUpdate:modelValue"])):(n.openBlock(),n.createBlock(n.resolveDynamicComponent(E(I._type)),n.mergeProps({key:4,ref_for:!0},x(I,L)),null,16))]})],2))),128)),n.renderSlot(C.$slots,"errors",{errors:S.value,errorCount:Object.keys(S.value).filter(L=>S.value[L]).length,visibleFields:_.value}),h.value==="error"?n.renderSlot(C.$slots,"error",{key:0,formData:u.value}):n.createCommentVNode("",!0),n.renderSlot(C.$slots,"submit",{submit:k,validate:V,formData:u.value,errors:S.value,formState:h.value})],64))],34)}}}),QL={key:0,class:"dialog-form-error bg-red-30 color-red radius-1 mb-1 txt14 px-1 py-075"},r0=n.defineComponent({__name:"DialogForm",props:{open:{type:Boolean},title:{},width:{default:"m"},position:{default:"center"},dismissable:{type:Boolean,default:!0},schema:{},modelValue:{},onSubmit:{},onDelete:{},submitText:{},cancelText:{},deleteText:{}},emits:["update:open","resolve"],setup(e,{emit:t}){const o=e,r=t,{$t:a}=Tt(),l=n.ref({...o.modelValue||{}}),i=n.ref(!1),s=n.ref(!1),c=n.ref(null),u=n.ref(),d=n.computed(()=>typeof o.onDelete=="function");async function f(){var g;if(!i.value){if(!((g=u.value)!=null&&g.validate())){c.value=a("dialogForm.validationError");return}c.value=null,i.value=!0;try{o.onSubmit&&await o.onSubmit(l.value),r("resolve",{action:"submit",data:l.value}),r("update:open",!1)}catch(_){c.value=_ instanceof Error?_.message:a("dialogForm.errorOccurred")}finally{i.value=!1}}}async function h(){if(!(s.value||!o.onDelete)){c.value=null,s.value=!0;try{await o.onDelete(l.value),r("resolve",{action:"delete",data:l.value}),r("update:open",!1)}catch(g){c.value=g instanceof Error?g.message:a("dialogForm.errorOccurred")}finally{s.value=!1}}}function m(){r("resolve",{action:"cancel",data:l.value}),r("update:open",!1)}function p(){r("resolve",{action:"cancel",data:l.value})}return(g,_)=>(n.openBlock(),n.createBlock(ns,{open:g.open,title:g.title,width:g.width,position:g.position,dismissable:g.dismissable,"onUpdate:open":_[1]||(_[1]=v=>g.$emit("update:open",v)),onClose:p},{footer:n.withCtx(()=>[d.value?(n.openBlock(),n.createBlock(ee,{key:0,color:"red",flat:"",loading:s.value,disabled:i.value,class:"me-auto",onClick:h},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(g.deleteText||n.unref(a)("dialogForm.delete")),1)]),_:1},8,["loading","disabled"])):n.createCommentVNode("",!0),_[2]||(_[2]=n.createElementVNode("div",{class:"flex-grow-1"},null,-1)),n.createVNode(ee,{flat:"",disabled:i.value||s.value,onClick:m},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(g.cancelText||n.unref(a)("dialogForm.cancel")),1)]),_:1},8,["disabled"]),n.createVNode(ee,{color:"primary",loading:i.value,disabled:s.value,onClick:f},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(g.submitText||n.unref(a)("dialogForm.save")),1)]),_:1},8,["loading","disabled"])]),default:n.withCtx(()=>[n.createElementVNode("form",{onSubmit:n.withModifiers(f,["prevent"])},[c.value?(n.openBlock(),n.createElementBlock("div",QL,n.toDisplayString(c.value),1)):n.createCommentVNode("",!0),n.createVNode(bd,{ref_key:"formFlowRef",ref:u,modelValue:l.value,"onUpdate:modelValue":_[0]||(_[0]=v=>l.value=v),schema:g.schema},null,8,["modelValue","schema"])],32)]),_:1},8,["open","title","width","position","dismissable"]))}}),wd=Symbol("dialog");let gi=null;function eP(){const e=n.inject(wd,null);if(!e){if(gi)return gi;throw new Error("Dialog API not provided. Make sure DialogPlugin is installed via app.use(DialogPlugin)")}return e}const tP={install:e=>{let t=0;const o=n.reactive([]),r={form:l=>new Promise(i=>{const s=++t;o.push({id:s,type:"form",options:l,resolve:i,open:!0})}),confirm:l=>new Promise(i=>{const s=++t,c=typeof l=="string"?{message:l}:l;o.push({id:s,type:"confirm",options:c,resolve:i,open:!0})}),open:l=>{const i=++t,s={id:i,type:"open",options:l,resolve:()=>{},open:!0};return o.push(s),{close:()=>{const c=o.findIndex(u=>u.id===i);c!==-1&&(o[c].open=!1,setTimeout(()=>{const u=o.findIndex(d=>d.id===i);u!==-1&&o.splice(u,1)},200))}}}};gi||(gi=r),e.provide(wd,r);const a=n.defineComponent({name:"DialogContainer",setup(){function l(c,u){c.resolve(u),c.open=!1,setTimeout(()=>{const d=o.findIndex(f=>f.id===c.id);d!==-1&&o.splice(d,1)},200)}function i(c,u){c.resolve(u),c.open=!1,setTimeout(()=>{const d=o.findIndex(f=>f.id===c.id);d!==-1&&o.splice(d,1)},200)}function s(c,u){u||(c.open=!1,setTimeout(()=>{const d=o.findIndex(f=>f.id===c.id);d!==-1&&o.splice(d,1)},200))}return{dialogStack:o,handleFormResolve:l,handleConfirmResolve:i,handleOpenUpdate:s}},render(){return this.dialogStack.map(l=>{if(l.type==="form")return n.h(r0,{key:l.id,open:l.open,...l.options,"onUpdate:open":i=>{i||this.handleFormResolve(l,{action:"cancel",data:l.options.modelValue||{}})},onResolve:i=>{this.handleFormResolve(l,i)}});if(l.type==="confirm")return n.h(kv,{key:l.id,open:l.open,...l.options,"onUpdate:open":i=>{i||this.handleConfirmResolve(l,!1)},onResolve:i=>{this.handleConfirmResolve(l,i)}});if(l.type==="open"){const i=l.options;return n.h(ns,{key:l.id,open:l.open,title:i.title,width:i.width,position:i.position,dismissable:i.dismissable,class:i.class,"onUpdate:open":s=>{this.handleOpenUpdate(l,s)}},{default:()=>n.h((typeof i.component=="string",i.component),i.props||{})})}return null})}});if(e.component("DialogContainer",a),typeof document<"u"&&typeof window<"u"){const l=()=>{if(!document.getElementById("bagelink-dialog-root")){const s=document.createElement("div");s.id="bagelink-dialog-root",document.body.appendChild(s);const c=n.createApp(a);c._context=e._context,c.mount(s)}};document.body&&l(),e.mixin({mounted(){this.$root===this&&l()}})}}},$d={pint:{pattern:/\d/},int:{pattern:/[\d-]/},pnum:{pattern:/[\d.]/},tel:{pattern:/[\d.\-()\s+]/},money:{pattern:/[\d.\s,]/},number:{pattern:/[\d\-.]/},num:{pattern:/[\d\-.]/},hex:{pattern:/[0-9a-f]/i},email:{pattern:/[\w.\-@]/},alpha:{pattern:/[a-z_]/i},alphanum:{pattern:/\w/},lower:{pattern:/[a-z]/i,transform:e=>e.toLowerCase()},upper:{pattern:/[A-Z]/i,transform:e=>e.toUpperCase()},slug:{pattern:/[a-z0-9-]/i,transform:e=>e.toLowerCase().replace(/\s/g,"-")},snake:{pattern:/[a-z_]/,transform:e=>e.toLowerCase().replace(/\s/g,"_")}},Sl=new WeakMap;function ac(e){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)return e;const t=e.querySelector("input, textarea");return t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?t:null}function nm(e){const t=Object.keys(e.modifiers);return t.length>0?t[t.length-1]:""}function a0(e){var t;return e.pattern!=null?e.pattern:e.modifier!=null&&e.modifier!==""?((t=$d[e.modifier])==null?void 0:t.pattern)??/./:/./}function om(e,t,o){o.keydownEvent=r=>{oP(r,t,o)},o.inputEvent=r=>{l0(r,t,o)},o.compositionStartEvent=()=>{rP(o)},o.compositionEndEvent=r=>{aP(r,t,o)},t.addEventListener("keydown",o.keydownEvent),t.addEventListener("input",o.inputEvent,{capture:!0}),t.addEventListener("compositionstart",o.compositionStartEvent),t.addEventListener("compositionend",o.compositionEndEvent)}function rm(e,t){t.keydownEvent&&e.removeEventListener("keydown",t.keydownEvent),t.inputEvent&&e.removeEventListener("input",t.inputEvent,{capture:!0}),t.compositionStartEvent&&e.removeEventListener("compositionstart",t.compositionStartEvent),t.compositionEndEvent&&e.removeEventListener("compositionend",t.compositionEndEvent),t.keydownEvent=void 0,t.inputEvent=void 0,t.compositionStartEvent=void 0,t.compositionEndEvent=void 0}function nP(e){const t=["Tab","Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"];return e.ctrlKey||e.altKey||e.metaKey?!0:t.includes(e.key)}function oP(e,t,o){var l;if(o.composing===!0||nP(e)||o.modifier!=null&&o.modifier!==""&&typeof((l=$d[o.modifier])==null?void 0:l.transform)=="function")return;const r=a0(o),a=e.key;r.test(a)||e.preventDefault()}function rP(e){e.composing=!0}function aP(e,t,o){o.composing=!1,l0(e,t,o)}function am(e,t){var l;const o=a0(t);let r;if(t.modifier!=null&&t.modifier!==""){const i=(l=$d[t.modifier])==null?void 0:l.transform;r=i?i(e):e}else r=e;let a="";for(let i=0;i<r.length;i++){const s=r[i];o.test(s)&&(a+=s)}return a}function l0(e,t,o){if(o.reformatting===!0||o.composing===!0)return;const r=t.value,a=t.selectionEnd??r.length,l=r.slice(0,a),i=am(r,o);if(i===r)return;const c=am(l,o).length;o.reformatting=!0,t.value=i,t.setSelectionRange(c,c),o.reformatting=!1}const i0={beforeMount(e,t){const o=ac(e);if(o===null)return;const r={modifier:nm(t)};typeof t.value=="object"&&t.value!==null&&(r.pattern=t.value.pattern??/./,r.validateOnly=t.value.validateOnly===!0),Sl.set(e,r),om(e,o,r)},updated(e,t){const o=ac(e);if(o===null)return;const r=Sl.get(e);r!==void 0&&(rm(o,r),r.modifier=nm(t),typeof t.value=="object"&&t.value!==null&&(r.pattern=t.value.pattern??/./,r.validateOnly=t.value.validateOnly===!0),om(e,o,r))},unmounted(e){const t=ac(e),o=Sl.get(e);t!==null&&o!==void 0&&rm(t,o),Sl.delete(e)},getSSRProps(){return{}}},s0={mounted(e,t){const o=r=>{const a=e.getBoundingClientRect(),l=Math.max(a.width,a.height),i=document.createElement("span");i.className="ripple",Object.assign(i.style,{width:`${l}px`,height:`${l}px`,left:`${r.clientX-a.left-l/2}px`,top:`${r.clientY-a.top-l/2}px`,position:"absolute",borderRadius:"50%",transform:"scale(0)",background:"rgba(0, 0, 0, 0.3)",pointerEvents:"none",animation:"rippleEffect 0.6s ease-out"}),e.appendChild(i),setTimeout(()=>{i.remove()},600)};e.__rippleClickHandler=o,t.value!==!1&&(getComputedStyle(e).position==="static"&&(e.style.position="relative"),e.style.overflow="hidden",e.addEventListener("mousedown",o))},updated(e,t){const o=e.__rippleClickHandler;t.value===!1?e.removeEventListener("mousedown",o):(getComputedStyle(e).position==="static"&&(e.style.position="relative"),e.style.overflow="hidden",e.addEventListener("mousedown",o))},unmounted(e){const t=e.__rippleClickHandler;t&&(e.removeEventListener("mousedown",t),delete e.__rippleClickHandler)},getSSRProps(){return{}}},ma=Symbol("resize");function lm(e,t){const o=t.value||{};let r=!1,a=0,l=0,i=null;o.handle?(i=e.querySelector(o.handle),i||(i=document.createElement("div"),i.className=o.handle.replace(".","")+(o.handleClass?` ${o.handleClass}`:""),i.style.cssText=`
|
|
428
428
|
position: absolute;
|
|
429
429
|
bottom: 0;
|
|
430
430
|
left: 0;
|
|
@@ -433,7 +433,7 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
433
433
|
background: rgba(0, 0, 0, 0.1);
|
|
434
434
|
cursor: ns-resize;
|
|
435
435
|
transition: background 0.2s;
|
|
436
|
-
`,e.appendChild(i))):i=e,i.addEventListener("mouseenter",()=>{i!==e&&(i.style.background="rgba(0, 0, 0, 0.2)")}),i.addEventListener("mouseleave",()=>{i!==e&&!r&&(i.style.background="rgba(0, 0, 0, 0.1)")}),i.style.cursor="ns-resize",i.style.userSelect="none";function s(h){return{clientY:h,deltaY:h-a,initialHeight:l}}function c(h){return o.gridSize?Math.round(h/o.gridSize)*o.gridSize:h}function u(h){if(!r)return;h.preventDefault();const m="touches"in h?h.touches[0].clientY:h.clientY,p=s(m);let g=l+p.deltaY;o.minHeight!==void 0&&(g=Math.max(g,o.minHeight)),o.maxHeight!==void 0&&(g=Math.min(g,o.maxHeight)),g=c(g),e.style.height=`${g}px`,o.onResize&&o.onResize(p),i!==e&&(i.style.background="rgba(0, 0, 0, 0.3)")}function d(h){if(!r)return;const m="touches"in h?h.changedTouches[0].clientY:h.clientY,p=s(m);r=!1,document.body.style.cursor="",document.body.style.userSelect="",i!==e&&(i.style.background="rgba(0, 0, 0, 0.1)"),o.onEnd&&o.onEnd(p),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",d),document.removeEventListener("touchmove",u),document.removeEventListener("touchend",d),document.removeEventListener("touchcancel",d)}function f(h){h instanceof MouseEvent&&h.button!==0||(h.preventDefault(),r=!0,a="touches"in h?h.touches[0].clientY:h.clientY,l=e.offsetHeight,o.onStart&&o.onStart(h),document.body.style.cursor="ns-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",u,{passive:!1}),document.addEventListener("mouseup",d),document.addEventListener("touchmove",u,{passive:!1}),document.addEventListener("touchend",d),document.addEventListener("touchcancel",d))}i.addEventListener("mousedown",f),i.addEventListener("touchstart",f,{passive:!1}),e[ma]=()=>{i!==e&&e.removeChild(i),i.removeEventListener("mousedown",f),i.removeEventListener("touchstart",f),i.removeEventListener("mouseenter",f),i.removeEventListener("mouseleave",f),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",d),document.removeEventListener("touchmove",u),document.removeEventListener("touchend",d),document.removeEventListener("touchcancel",d)}}const aP={mounted(e,t){lm(e,t)},unmounted(e){const t=e[ma];typeof t=="function"&&(t(),delete e[ma])},updated(e,t){if(t.value!==t.oldValue){const o=e[ma];typeof o=="function"&&(o(),delete e[ma]),lm(e,t)}},getSSRProps(){return{}}},lP=!0;class ft{constructor(t,o={}){qe(this,"_type");qe(this,"_config");qe(this,"_condition");qe(this,"_validations");qe(this,"_onUpdate");qe(this,"_class");qe(this,"_slots");qe(this,"_component");this._type=t,this._config=o}if(t){return this._condition=t,this}validate(t){return this._validations||(this._validations=[]),this._validations.push(t),this}onUpdate(t){return this._onUpdate=t,this}class(t){return this._class=this._class?`${this._class} ${t}`:t,this}required(t){return this._config.required=!0,t&&(this._config.requiredMessage=t),this}slot(t,o,r){return this._slots||(this._slots=[]),typeof t!="string"||o!==void 0&&typeof o!="string"?this._slots.push({component:t,props:o}):this._slots.push({name:t,component:o,props:r}),this}}function Dt(e,t){return typeof e=="string"?{...t,label:e}:e??{}}const Ct={text(e,t){return new ft("text",Dt(e,t))},email(e,t){return new ft("email",Dt(e,t))},password(e,t){return new ft("password",Dt(e,t))},number(e,t){return new ft("number",Dt(e,t))},tel(e,t){return new ft("tel",Dt(e,t))},url(e,t){return new ft("url",Dt(e,t))},date(e,t){return new ft("date",Dt(e,t))},time(e,t){return new ft("time",Dt(e,t))},datetime(e,t){return new ft("datetime",Dt(e,t))},textarea(e,t){return new ft("textarea",Dt(e,t))},richtext(e,t){return new ft("richtext",Dt(e,t))},json(e,t){const o=Dt(e,t);return o.language||(o.language="json"),new ft("json",o)},checkbox(e,t){return new ft("checkbox",Dt(e,t))},toggle(e,t){return new ft("toggle",Dt(e,t))},radio(e,t,o){if(typeof e=="string"){const r=e,a=t;return new ft("radio",{...o,label:r,options:a})}return new ft("radio",{...Dt(t,o),options:e})},select(e,t,o){if(typeof e=="string"){const r=e,a=t;return new ft("select",{...o,label:r,options:a})}return new ft("select",{...Dt(t,o),options:e})},multiselect(e,t,o){if(typeof e=="string"){const r=e,a=t;return new ft("multiselect",{...o,label:r,options:a,multiple:!0})}return new ft("multiselect",{...Dt(t,o),options:e})},color(e,t){return new ft("color",Dt(e,t))},upload(e,t){return new ft("upload",Dt(e,t))},array(e,t,o){if(typeof e=="string"){const l=e,i=t,s=o??{};return new ft("array",{...s,label:l,schema:i})}const r=e,a=Dt(t,o);return new ft("array",{...a,schema:r})},component(e,t={}){const o=new ft("component",t);return o._component={component:e,props:t},o},display(e,t={}){const o=new ft("display",t);return o._component={component:e,props:t},o}};class Ha{constructor(t,o){qe(this,"_isSchema",!0);qe(this,"_label");qe(this,"_fields");qe(this,"_condition");qe(this,"_class");this._fields=t,this._label=o}if(t){return this._condition=t,this}class(t){return this._class=this._class?`${this._class} ${t}`:t,this}toJSONSchema(){const t={},o=[];for(const[l,i]of Object.entries(this._fields)){const s=i._config,c=Ha.getJSONSchemaType(i._type),u={type:c};if(s.label&&(u.title=s.label),s.helpText&&(u.description=s.helpText),s.default!==void 0&&(u.default=s.default),s.options){const f=s.options.map(h=>Tr(h)??h);i._type==="multiselect"?u.items={type:"string",enum:f}:u.enum=f}s.min!==void 0&&(u[c==="string"?"minLength":"minimum"]=s.min),s.max!==void 0&&(u[c==="string"?"maxLength":"maximum"]=s.max),i._type==="email"&&(u.format="email"),i._type==="url"&&(u.format="uri"),i._type==="date"&&(u.format="date"),i._type==="time"&&(u.format="time"),i._type==="datetime"&&(u.format="date-time");const d={};i._type!=="text"&&(d.fieldType=i._type),s.placeholder&&(d.placeholder=s.placeholder),s.disabled&&(d.disabled=s.disabled),s.readonly&&(d.readonly=s.readonly),s.autoheight&&(d.autoheight=s.autoheight),s.rows&&(d.rows=s.rows),s.cols&&(d.cols=s.cols),i._class&&(d.class=i._class),i._condition&&(d.condition=i._condition),i._type==="array"&&(s.allowAdd!==void 0&&(d.allowAdd=s.allowAdd),s.allowDelete!==void 0&&(d.allowDelete=s.allowDelete)),i._component&&(d.component=typeof i._component.component=="string"?i._component.component:i._component.component.name||"CustomComponent",i._component.props&&(d.componentProps=i._component.props)),Object.keys(d).length>0&&(u["x-ui"]=d),t[l]=u,s.required===!0&&o.push(l)}const r={type:"object",properties:t};o.length>0&&(r.required=o),this._label&&(r.title=this._label);const a={};return this._condition&&(a.condition=this._condition),this._class&&(a.class=this._class),Object.keys(a).length>0&&(r["x-ui"]=a),r}static getJSONSchemaType(t){return{text:"string",email:"string",password:"string",number:"number",tel:"string",url:"string",date:"string",time:"string",datetime:"string",textarea:"string",richtext:"string",json:"object",checkbox:"boolean",toggle:"boolean",radio:"string",select:"string",multiselect:"array",array:"array"}[t]||"string"}}function iP(e,t){if(typeof e=="string"){if(!t)throw new Error("Fields are required when providing a label");return new Ha(t,e)}return new Ha(e)}function sP(e){return e}function cP(e){var a,l;const t={},o=new Set(e.required||[]);if(e.properties)for(const[i,s]of Object.entries(e.properties))t[i]=fP(i,s,o.has(i),e);const r=new Ha(t,e.title);return(a=e["x-ui"])!=null&&a.condition&&r.if(e["x-ui"].condition),(l=e["x-ui"])!=null&&l.class&&r.class(e["x-ui"].class),r}function uP(e,t){const o=e.match(/^#\/(\$defs|definitions)\/(.+)$/);if(!o)return;const[,r,a]=o,l=r==="$defs"?t.$defs:t.definitions;return a?l==null?void 0:l[a]:void 0}function dP(e,t){const o=e.anyOf||e.oneOf;if(!o||o.length===0)return e;const r=o.filter(s=>s.type!=="null");if(r.length===1){const s=r[0];return{...s,title:e.title||s.title,description:e.description||s.description,default:e.default!==void 0?e.default:s.default,"x-ui":{...s["x-ui"],...e["x-ui"]}}}const a=["object","array","string","number","integer","boolean"],i=r.sort((s,c)=>{const u=a.indexOf(s.type||"string"),d=a.indexOf(c.type||"string");return u-d})[0];return{...i,title:e.title||i.title,description:e.description||i.description,default:e.default!==void 0?e.default:i.default,"x-ui":{...i["x-ui"],...e["x-ui"]}}}function fP(e,t,o,r){var u;let a=t;if(t.$ref){const d=uP(t.$ref,r);d&&(a={...d,type:t.type??d.type,enum:t.enum??d.enum,title:t.title??d.title,description:t.description??d.description,default:t.default!==void 0?t.default:d.default,"x-ui":{...d["x-ui"],...t["x-ui"]}})}(a.anyOf||a.oneOf)&&(a=dP(a));const l=a["x-ui"]||{},i=l.fieldType||im(a),s={};a.title&&(s.label=a.title),a.description&&(s.helpText=a.description),a.default!==void 0&&(s.default=a.default),o&&(s.required=!0),l.placeholder&&(s.placeholder=l.placeholder),l.disabled&&(s.disabled=l.disabled),l.readonly&&(s.readonly=l.readonly),l.autoheight&&(s.autoheight=l.autoheight),l.rows&&(s.rows=l.rows),l.cols&&(s.cols=l.cols),a.minimum!==void 0&&(s.min=a.minimum),a.maximum!==void 0&&(s.max=a.maximum),a.minLength!==void 0&&(s.min=a.minLength),a.maxLength!==void 0&&(s.max=a.maxLength);let c;switch(i){case"email":c=Ct.email(s);break;case"password":c=Ct.password(s);break;case"number":c=Ct.number(s);break;case"tel":c=Ct.tel(s);break;case"url":c=Ct.url(s);break;case"date":c=Ct.date(s);break;case"time":c=Ct.time(s);break;case"datetime":c=Ct.datetime(s);break;case"textarea":c=Ct.textarea(s);break;case"richtext":c=Ct.richtext(s);break;case"json":c=Ct.json(s);break;case"checkbox":c=Ct.checkbox(s);break;case"toggle":c=Ct.toggle(s);break;case"radio":c=Ct.radio(a.enum||[],s);break;case"select":c=Ct.select(a.enum||[],s);break;case"multiselect":c=Ct.multiselect(a.enum||[],s);break;case"array":{const d={...s};l.allowAdd!==void 0&&(d.allowAdd=l.allowAdd),l.allowDelete!==void 0&&(d.allowDelete=l.allowDelete),(u=a.items)!=null&&u.type&&(d.itemType=im(a.items)),c=Ct.array(a.title||e,void 0,d);break}case"display":c=Ct.display(l.component||"div",l.componentProps||{});break;case"component":c=Ct.component(l.component||"div",l.componentProps||{});break;default:c=Ct.text(s)}return l.class&&c.class(l.class),l.condition&&c.if(l.condition),c}function im(e){if(e.format)switch(e.format){case"email":return"email";case"uri":return"url";case"date":return"date";case"time":return"time";case"date-time":return"datetime"}if(e.enum)return"select";switch(e.type){case"boolean":return"checkbox";case"number":case"integer":return"number";case"array":return"array";case"object":return"json";default:return"text"}}const pP={class:"multi-step-form"},mP={class:"step-progress"},hP=["onClick"],gP={class:"step-number"},vP={class:"step-label"},yP={key:0},_P={key:0,class:"step-title"},bP={key:1,class:"validation-errors"},wP={class:"step-navigation"},$P=["disabled"],kP={class:"step-counter"},EP=n.defineComponent({__name:"MultiStepForm",props:{schema:{},modelValue:{},currentStep:{},components:{},validateOnNext:{type:Boolean,default:!0}},emits:["update:modelValue","update:currentStep","stepChange","complete","validationError"],setup(e,{expose:t,emit:o}){const r=e,a=o,{$t:l}=Tt(),i=n.ref({...r.modelValue||{}}),s=n.ref(r.currentStep!=null&&r.currentStep!==""?r.currentStep:Object.keys(r.schema)[0]);let c=!1;n.watch(()=>r.modelValue,M=>{c||(i.value={...M||{}})},{deep:!0}),n.watch(i,M=>{c=!0,a("update:modelValue",M),setTimeout(()=>{c=!1},0)},{deep:!0}),n.watch(()=>r.currentStep,M=>{M!=null&&(s.value=M)}),n.watch(s,M=>{a("update:currentStep",M),a("stepChange",M)});function u(M,V){const k=V.split(".");let C=M;for(const B of k)C=C==null?void 0:C[B];return C}function d(M,V){if(!M)return!0;try{const k=Au(M);if(k.length===0)return!0;let C=!0,B=null;for(let A=0;A<k.length;A++){const L=k[A],I=u(V,L.field),{op:P,value:oe,connector:Z}=L;let U=!1;switch(P){case"eq":U=I===oe;break;case"ne":U=I!==oe;break;case"gt":U=oe!=null&&I>oe;break;case"ge":U=oe!=null&&I>=oe;break;case"lt":U=oe!=null&&I<oe;break;case"le":U=oe!=null&&I<=oe;break;case"co":U=oe!=null&&String(I).includes(String(oe));break;case"sw":U=oe!=null&&String(I).startsWith(String(oe));break;case"ew":U=oe!=null&&String(I).endsWith(String(oe));break;case"pr":U=I!=null;break;default:U=!1}A===0?(C=U,B=U):(Z==="or"?C=(B??!1)||U:Z==="and"&&(C=(B??!1)&&U),B=C)}return C}catch(k){return console.warn("Failed to evaluate condition:",M,k),!0}}function f(M){return M._condition==null?!0:d(M._condition,i.value)}const h=n.computed(()=>Object.entries(r.schema).filter(([,M])=>f(M)).map(([M,V])=>({key:M,schema:V}))),m=n.computed(()=>h.value.findIndex(M=>M.key===s.value)),p=n.computed(()=>m.value===0),g=n.computed(()=>m.value===h.value.length-1),_=n.computed(()=>{const M=h.value[m.value];return M==null?void 0:M.schema}),v=n.ref({});function y(M){return M._condition==null?!0:d(M._condition,i.value)}function b(M){const V=M.replace(/\[(\d+)\]/g,".$1");return u(i.value,V)}function $(M){return!!(M==null||typeof M=="string"&&M.trim()===""||Array.isArray(M)&&M.length===0)}function w(){if(!r.validateOnNext||_.value==null)return!0;const M={},V=_.value._fields;for(const[k,C]of Object.entries(V)){if(C._type==="display"||!y(C))continue;const B=b(k),A=C._config;if(A.required===!0&&$(B)){const L=typeof A.label=="string"?A.label:k;M[k]=`${L} is required`;continue}if(C._validations&&!$(B))for(const L of C._validations){const I=L(B);if(I!==!0){M[k]=I;break}}}return v.value=M,Object.keys(M).length>0?(a("validationError",M),!1):!0}function E(M,V){return V._label!=null?V._label:M.split(/[._-]/).map(k=>k.charAt(0).toUpperCase()+k.slice(1)).join(" ")}function S(M){const V=h.value.findIndex(k=>k.key===M);if(V!==-1){if(V<m.value){s.value=M,v.value={};return}V>m.value&&!w()||(s.value=M)}}function x(){if(w())if(g.value)a("complete");else{const M=m.value+1;s.value=h.value[M].key,v.value={}}}function N(){if(!p.value){const M=m.value-1;s.value=h.value[M].key,v.value={}}}return t({validateCurrentStep:w,stepErrors:v}),(M,V)=>(n.openBlock(),n.createElementBlock("div",pP,[n.createElementVNode("div",mP,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(h.value,(k,C)=>(n.openBlock(),n.createElementBlock("div",{key:k.key,class:n.normalizeClass(["step-indicator",{active:k.key===s.value,completed:C<m.value}]),onClick:B=>S(k.key)},[n.createElementVNode("div",gP,n.toDisplayString(C+1),1),n.createElementVNode("div",vP,n.toDisplayString(E(k.key,k.schema)),1)],10,hP))),128))]),_.value!=null?(n.openBlock(),n.createElementBlock("div",yP,[_.value._label?(n.openBlock(),n.createElementBlock("h2",_P,n.toDisplayString(_.value._label),1)):n.createCommentVNode("",!0),Object.keys(v.value).length>0?(n.openBlock(),n.createElementBlock("div",bP,[n.createElementVNode("ul",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(v.value,(k,C)=>(n.openBlock(),n.createElementBlock("li",{key:C},n.toDisplayString(k),1))),128))])])):n.createCommentVNode("",!0),n.renderSlot(M.$slots,`step:${s.value}`,{schema:_.value,formData:i.value,stepKey:s.value,errors:v.value},()=>[n.createVNode(bd,{modelValue:i.value,"onUpdate:modelValue":V[0]||(V[0]=k=>i.value=k),schema:_.value,components:M.components,errors:v.value},n.createSlots({_:2},[n.renderList(M.$slots,(k,C)=>({name:C,fn:n.withCtx(B=>[n.renderSlot(M.$slots,C,n.normalizeProps(n.guardReactiveProps(B)),void 0,!0)])}))]),1032,["modelValue","schema","components","errors"])],!0)])):n.createCommentVNode("",!0),n.createElementVNode("div",wP,[n.createElementVNode("button",{type:"button",class:"btn-secondary",disabled:p.value,onClick:N},n.toDisplayString(n.unref(l)("multiStep.previous")),9,$P),n.createElementVNode("div",kP,n.toDisplayString(n.unref(l)("multiStep.step",{current:m.value+1,total:h.value.length})),1),n.createElementVNode("button",{type:"button",class:"btn-primary",onClick:x},n.toDisplayString(g.value?n.unref(l)("multiStep.complete"):n.unref(l)("multiStep.next")),1)])]))}}),CP=Me(EP,[["__scopeId","data-v-9f81a0df"]]);let $a={};function SP(e){$a={...$a,...e}}function TP(){return typeof navigator>"u"?"en-US":navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language}function NP(){var e;return((e=$a.locale)==null?void 0:e.call($a))??TP()}function Dn(e,t){const o=new Date(e);return t.days&&o.setDate(o.getDate()+t.days),t.hours&&o.setHours(o.getHours()+t.hours),t.minutes&&o.setMinutes(o.getMinutes()+t.minutes),t.seconds&&o.setSeconds(o.getSeconds()+t.seconds),t.weeks&&o.setDate(o.getDate()+t.weeks*7),t.months&&o.setMonth(o.getMonth()+t.months),t.years&&o.setFullYear(o.getFullYear()+t.years),o}const DP={seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:0};function c0(e,t,o="days"){const r=new Date(e),a=new Date(t);return o==="months"?(a.getFullYear()-r.getFullYear())*12+(a.getMonth()-r.getMonth()):Math.floor((a.getTime()-r.getTime())/DP[o])}class At{constructor(t){qe(this,"_date");this._date=new Date(t)}add(t,o="days"){return new At(Dn(this._date,{[o]:t}))}subtract(t,o="days"){return new At(Dn(this._date,{[o]:-t}))}diff(t,o="days"){return c0(this._date,t,o)}isBefore(t){return this._date.getTime()<new Date(t).getTime()}isAfter(t){return this._date.getTime()>new Date(t).getTime()}isSameDay(t){const o=new Date(t);return this._date.getFullYear()===o.getFullYear()&&this._date.getMonth()===o.getMonth()&&this._date.getDate()===o.getDate()}toDate(){return new Date(this._date)}valueOf(){return this._date.getTime()}toString(){return this._date.toISOString()}}function xP(e){return new At(e!==void 0?e:new Date)}Object.assign(xP,{get now(){return new At(new Date)},get today(){const e=new Date;return e.setHours(0,0,0,0),new At(e)},get tomorrow(){return new At(Dn(new Date,{days:1}))},get yesterday(){return new At(Dn(new Date,{days:-1}))},get nextWeek(){return new At(Dn(new Date,{weeks:1}))},get lastWeek(){return new At(Dn(new Date,{weeks:-1}))},get firstOfMonth(){const e=new Date;return new At(new Date(e.getFullYear(),e.getMonth(),1))},get lastOfMonth(){const e=new Date;return new At(new Date(e.getFullYear(),e.getMonth()+1,0))},get firstOfWeek(){const e=new Date;return new At(new Date(e.setDate(e.getDate()-e.getDay())))},get lastOfWeek(){const e=new Date;return new At(new Date(e.setDate(e.getDate()+(6-e.getDay()))))},get firstOfNextMonth(){const e=new Date;return new At(new Date(e.getFullYear(),e.getMonth()+1,1))},get lastOfNextMonth(){const e=new Date;return new At(new Date(e.getFullYear(),e.getMonth()+2,0))},get firstOfNextYear(){return new At(new Date(new Date().getFullYear()+1,0,1))},in:(e,t="days")=>new At(Dn(new Date,{[t]:e})),ago:(e,t="days")=>new At(Dn(new Date,{[t]:-e})),diff:(e,t,o="days")=>c0(e,t,o),isBefore:(e,t)=>new Date(e).getTime()<new Date(t).getTime(),isAfter:(e,t)=>new Date(e).getTime()>new Date(t).getTime(),isSameDay:(e,t)=>{const o=new Date(e),r=new Date(t);return o.getFullYear()===r.getFullYear()&&o.getMonth()===r.getMonth()&&o.getDate()===r.getDate()}});function u0(e,t){if(t.timeZone==="UTC"){const o=new Date(e.getTime());return o.setMinutes(o.getMinutes()+e.getTimezoneOffset()),o}try{const r=new Intl.DateTimeFormat("en-US",{...t,month:"numeric"}).formatToParts(e),a={};for(const l of r)l.type!=="literal"&&l.type!=="timeZoneName"&&(a[l.type]=Number.parseInt(l.value,10));return new Date(a.year,(a.month||1)-1,a.day,a.hour||0,a.minute||0,a.second||0)}catch(o){return console.warn(`Error handling timezone ${t.timeZone}:`,o),e}}function kd(e,t,o){const r=o!=null&&o.timeZone?u0(e,o):e,a=r.getFullYear().toString();return{AmPm:r.toLocaleString(t,{hour:"numeric",hour12:!0,minute:"numeric"}).split(" ")[1],DD:String(r.getDate()).padStart(2,"0"),DDD:r.toLocaleString(t,{weekday:"short"}),DDDD:r.toLocaleString(t,{weekday:"long"}),HH:String(r.getHours()).padStart(2,"0"),mm:String(r.getMinutes()).padStart(2,"0"),MM:String(r.getMonth()+1).padStart(2,"0"),MMM:r.toLocaleString(t,{month:"short"}),MMMM:r.toLocaleString(t,{month:"long"}),ss:String(r.getSeconds()).padStart(2,"0"),sss:String(r.getMilliseconds()).padStart(3,"0"),YY:a.slice(-2),YYYY:a}}const BP=kd(new Date,"en-US"),AP=Object.keys(BP).sort((e,t)=>t.length-e.length),MP=new RegExp(AP.join("|"),"g");function St(e,t){if(!e)return"";let o,r,a,l={};if(typeof t=="string"?o=t:t&&typeof t=="object"&&(o=t.format,r=t.locale,a=t.tz,l=t),o==="ISO"||o==="ISO8601"){const i=new Date(e);return Number.isNaN(i.getTime())?"":i.toISOString()}o=o||"DD.MM.YY",r=r||NP();try{const i=new Date(e);if(Number.isNaN(i.getTime()))return console.warn("Invalid date provided to formatDate:",e),"";const s={day:"numeric",hour:"2-digit",hour12:l.hour12===void 0?!0:l.hour12,minute:"2-digit",month:"long",second:"2-digit",timeZone:a,weekday:"long",year:"numeric"},c=kd(i,r,s),u=new Intl.DateTimeFormat(r,s).formatToParts(i),d={};for(const f of u)f.type!=="literal"&&(d[f.type]=f.value);return d.month&&(c.MMM=d.month.substring(0,3),c.MMMM=d.month),d.weekday&&(c.DDD=d.weekday.substring(0,3),c.DDDD=d.weekday),d.dayPeriod&&(c.AmPm=d.dayPeriod),o.replace(MP,f=>c[f])}catch(i){return console.warn(`Error formatting date: ${e} with format: ${o}`,i),""}}const VP=St;function Cn(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function eo(e){return Cn(e).getComputedStyle(e)}const sm=Math.min,ka=Math.max,vi=Math.round;function d0(e){const t=eo(e);let o=parseFloat(t.width),r=parseFloat(t.height);const a=e.offsetWidth,l=e.offsetHeight,i=vi(o)!==a||vi(r)!==l;return i&&(o=a,r=l),{width:o,height:r,fallback:i}}function Io(e){return p0(e)?(e.nodeName||"").toLowerCase():""}let Tl;function f0(){if(Tl)return Tl;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Tl=e.brands.map(t=>t.brand+"/"+t.version).join(" "),Tl):navigator.userAgent}function to(e){return e instanceof Cn(e).HTMLElement}function Mo(e){return e instanceof Cn(e).Element}function p0(e){return e instanceof Cn(e).Node}function cm(e){return typeof ShadowRoot>"u"?!1:e instanceof Cn(e).ShadowRoot||e instanceof ShadowRoot}function is(e){const{overflow:t,overflowX:o,overflowY:r,display:a}=eo(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&!["inline","contents"].includes(a)}function LP(e){return["table","td","th"].includes(Io(e))}function fu(e){const t=/firefox/i.test(f0()),o=eo(e),r=o.backdropFilter||o.WebkitBackdropFilter;return o.transform!=="none"||o.perspective!=="none"||!!r&&r!=="none"||t&&o.willChange==="filter"||t&&!!o.filter&&o.filter!=="none"||["transform","perspective"].some(a=>o.willChange.includes(a))||["paint","layout","strict","content"].some(a=>{const l=o.contain;return l!=null&&l.includes(a)})}function m0(){return!/^((?!chrome|android).)*safari/i.test(f0())}function Ed(e){return["html","body","#document"].includes(Io(e))}function h0(e){return Mo(e)?e:e.contextElement}const g0={x:1,y:1};function Ar(e){const t=h0(e);if(!to(t))return g0;const o=t.getBoundingClientRect(),{width:r,height:a,fallback:l}=d0(t);let i=(l?vi(o.width):o.width)/r,s=(l?vi(o.height):o.height)/a;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}function ja(e,t,o,r){var a,l;t===void 0&&(t=!1),o===void 0&&(o=!1);const i=e.getBoundingClientRect(),s=h0(e);let c=g0;t&&(r?Mo(r)&&(c=Ar(r)):c=Ar(e));const u=s?Cn(s):window,d=!m0()&&o;let f=(i.left+(d&&((a=u.visualViewport)==null?void 0:a.offsetLeft)||0))/c.x,h=(i.top+(d&&((l=u.visualViewport)==null?void 0:l.offsetTop)||0))/c.y,m=i.width/c.x,p=i.height/c.y;if(s){const g=Cn(s),_=r&&Mo(r)?Cn(r):r;let v=g.frameElement;for(;v&&r&&_!==g;){const y=Ar(v),b=v.getBoundingClientRect(),$=getComputedStyle(v);b.x+=(v.clientLeft+parseFloat($.paddingLeft))*y.x,b.y+=(v.clientTop+parseFloat($.paddingTop))*y.y,f*=y.x,h*=y.y,m*=y.x,p*=y.y,f+=b.x,h+=b.y,v=Cn(v).frameElement}}return{width:m,height:p,top:h,right:f+m,bottom:h+p,left:f,x:f,y:h}}function Vo(e){return((p0(e)?e.ownerDocument:e.document)||window.document).documentElement}function ss(e){return Mo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function v0(e){return ja(Vo(e)).left+ss(e).scrollLeft}function Wa(e){if(Io(e)==="html")return e;const t=e.assignedSlot||e.parentNode||cm(e)&&e.host||Vo(e);return cm(t)?t.host:t}function y0(e){const t=Wa(e);return Ed(t)?t.ownerDocument.body:to(t)&&is(t)?t:y0(t)}function yi(e,t){var o;t===void 0&&(t=[]);const r=y0(e),a=r===((o=e.ownerDocument)==null?void 0:o.body),l=Cn(r);return a?t.concat(l,l.visualViewport||[],is(r)?r:[]):t.concat(r,yi(r))}function um(e,t,o){return t==="viewport"?Ko(function(r,a){const l=Cn(r),i=Vo(r),s=l.visualViewport;let c=i.clientWidth,u=i.clientHeight,d=0,f=0;if(s){c=s.width,u=s.height;const h=m0();(h||!h&&a==="fixed")&&(d=s.offsetLeft,f=s.offsetTop)}return{width:c,height:u,x:d,y:f}}(e,o)):Mo(t)?Ko(function(r,a){const l=ja(r,!0,a==="fixed"),i=l.top+r.clientTop,s=l.left+r.clientLeft,c=to(r)?Ar(r):{x:1,y:1};return{width:r.clientWidth*c.x,height:r.clientHeight*c.y,x:s*c.x,y:i*c.y}}(t,o)):Ko(function(r){const a=Vo(r),l=ss(r),i=r.ownerDocument.body,s=ka(a.scrollWidth,a.clientWidth,i.scrollWidth,i.clientWidth),c=ka(a.scrollHeight,a.clientHeight,i.scrollHeight,i.clientHeight);let u=-l.scrollLeft+v0(r);const d=-l.scrollTop;return eo(i).direction==="rtl"&&(u+=ka(a.clientWidth,i.clientWidth)-s),{width:s,height:c,x:u,y:d}}(Vo(e)))}function dm(e){return to(e)&&eo(e).position!=="fixed"?e.offsetParent:null}function fm(e){const t=Cn(e);let o=dm(e);for(;o&&LP(o)&&eo(o).position==="static";)o=dm(o);return o&&(Io(o)==="html"||Io(o)==="body"&&eo(o).position==="static"&&!fu(o))?t:o||function(r){let a=Wa(r);for(;to(a)&&!Ed(a);){if(fu(a))return a;a=Wa(a)}return null}(e)||t}function PP(e,t,o){const r=to(t),a=Vo(t),l=ja(e,!0,o==="fixed",t);let i={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&o!=="fixed")if((Io(t)!=="body"||is(a))&&(i=ss(t)),to(t)){const c=ja(t,!0);s.x=c.x+t.clientLeft,s.y=c.y+t.clientTop}else a&&(s.x=v0(a));return{x:l.left+i.scrollLeft-s.x,y:l.top+i.scrollTop-s.y,width:l.width,height:l.height}}const IP={getClippingRect:function(e){let{element:t,boundary:o,rootBoundary:r,strategy:a}=e;const l=o==="clippingAncestors"?function(u,d){const f=d.get(u);if(f)return f;let h=yi(u).filter(_=>Mo(_)&&Io(_)!=="body"),m=null;const p=eo(u).position==="fixed";let g=p?Wa(u):u;for(;Mo(g)&&!Ed(g);){const _=eo(g),v=fu(g);(p?v||m:v||_.position!=="static"||!m||!["absolute","fixed"].includes(m.position))?m=_:h=h.filter(y=>y!==g),g=Wa(g)}return d.set(u,h),h}(t,this._c):[].concat(o),i=[...l,r],s=i[0],c=i.reduce((u,d)=>{const f=um(t,d,a);return u.top=ka(f.top,u.top),u.right=sm(f.right,u.right),u.bottom=sm(f.bottom,u.bottom),u.left=ka(f.left,u.left),u},um(t,s,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:o,strategy:r}=e;const a=to(o),l=Vo(o);if(o===l)return t;let i={scrollLeft:0,scrollTop:0},s={x:1,y:1};const c={x:0,y:0};if((a||!a&&r!=="fixed")&&((Io(o)!=="body"||is(l))&&(i=ss(o)),to(o))){const u=ja(o);s=Ar(o),c.x=u.x+o.clientLeft,c.y=u.y+o.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-i.scrollLeft*s.x+c.x,y:t.y*s.y-i.scrollTop*s.y+c.y}},isElement:Mo,getDimensions:function(e){return to(e)?d0(e):e.getBoundingClientRect()},getOffsetParent:fm,getDocumentElement:Vo,getScale:Ar,async getElementRects(e){let{reference:t,floating:o,strategy:r}=e;const a=this.getOffsetParent||fm,l=this.getDimensions;return{reference:PP(t,await a(o),r),floating:{x:0,y:0,...await l(o)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>eo(e).direction==="rtl"},OP=(e,t,o)=>{const r=new Map,a={platform:IP,...o},l={...a.platform,_c:r};return sh(e,t,{...a,platform:l})};function _0(e,t){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(typeof t[o]=="object"&&e[o]?_0(e[o],t[o]):e[o]=t[o])}const Pn={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function qa(e,t){let o=Pn.themes[e]||{},r;do r=o[t],typeof r>"u"?o.$extend?o=Pn.themes[o.$extend]||{}:(o=null,r=Pn[t]):o=null;while(o);return r}function RP(e){const t=[e];let o=Pn.themes[e]||{};do o.$extend&&!o.$resetCss?(t.push(o.$extend),o=Pn.themes[o.$extend]||{}):o=null;while(o);return t.map(r=>`v-popper--theme-${r}`)}function pm(e){const t=[e];let o=Pn.themes[e]||{};do o.$extend?(t.push(o.$extend),o=Pn.themes[o.$extend]||{}):o=null;while(o);return t}let Fr=!1;if(typeof window<"u"){Fr=!1;try{const e=Object.defineProperty({},"passive",{get(){Fr=!0}});window.addEventListener("test",null,e)}catch{}}let b0=!1;typeof window<"u"&&typeof navigator<"u"&&(b0=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const w0=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),mm={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},hm={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function gm(e,t){const o=e.indexOf(t);o!==-1&&e.splice(o,1)}function lc(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Bn=[];let jo=null;const vm={};function ym(e){let t=vm[e];return t||(t=vm[e]=[]),t}let pu=function(){};typeof window<"u"&&(pu=window.Element);function Qe(e){return function(t){return qa(t.theme,e)}}const ic="__floating-vue__popper",$0=()=>n.defineComponent({name:"VPopper",provide(){return{[ic]:{parentPopper:this}}},inject:{[ic]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:Qe("disabled")},positioningDisabled:{type:Boolean,default:Qe("positioningDisabled")},placement:{type:String,default:Qe("placement"),validator:e=>w0.includes(e)},delay:{type:[String,Number,Object],default:Qe("delay")},distance:{type:[Number,String],default:Qe("distance")},skidding:{type:[Number,String],default:Qe("skidding")},triggers:{type:Array,default:Qe("triggers")},showTriggers:{type:[Array,Function],default:Qe("showTriggers")},hideTriggers:{type:[Array,Function],default:Qe("hideTriggers")},popperTriggers:{type:Array,default:Qe("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Qe("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Qe("popperHideTriggers")},container:{type:[String,Object,pu,Boolean],default:Qe("container")},boundary:{type:[String,pu],default:Qe("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:Qe("strategy")},autoHide:{type:[Boolean,Function],default:Qe("autoHide")},handleResize:{type:Boolean,default:Qe("handleResize")},instantMove:{type:Boolean,default:Qe("instantMove")},eagerMount:{type:Boolean,default:Qe("eagerMount")},popperClass:{type:[String,Array,Object],default:Qe("popperClass")},computeTransformOrigin:{type:Boolean,default:Qe("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Qe("autoMinSize")},autoSize:{type:[Boolean,String],default:Qe("autoSize")},autoMaxSize:{type:Boolean,default:Qe("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Qe("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Qe("preventOverflow")},overflowPadding:{type:[Number,String],default:Qe("overflowPadding")},arrowPadding:{type:[Number,String],default:Qe("arrowPadding")},arrowOverflow:{type:Boolean,default:Qe("arrowOverflow")},flip:{type:Boolean,default:Qe("flip")},shift:{type:Boolean,default:Qe("shift")},shiftCrossAxis:{type:Boolean,default:Qe("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Qe("noAutoFocus")},disposeTimeout:{type:Number,default:Qe("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[ic])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:o=!1}={}){var r,a;(r=this.parentPopper)!=null&&r.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(o||!this.disabled)&&(((a=this.parentPopper)==null?void 0:a.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var o;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((o=this.parentPopper)==null?void 0:o.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(dh({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(ch({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(fh({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(uh({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(ow({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:r,rects:a,middlewareData:l})=>{let i;const{centerOffset:s}=l.arrow;return r.startsWith("top")||r.startsWith("bottom")?i=Math.abs(s)>a.reference.width/2:i=Math.abs(s)>a.reference.height/2,{data:{overflow:i}}}}),this.autoMinSize||this.autoSize){const r=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:a,placement:l,middlewareData:i})=>{var s;if((s=i.autoSize)!=null&&s.skip)return{};let c,u;return l.startsWith("top")||l.startsWith("bottom")?c=a.reference.width:u=a.reference.height,this.$_innerNode.style[r==="min"?"minWidth":r==="max"?"maxWidth":"width"]=c!=null?`${c}px`:null,this.$_innerNode.style[r==="min"?"minHeight":r==="max"?"maxHeight":"height"]=u!=null?`${u}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(iw({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:r,availableHeight:a})=>{this.$_innerNode.style.maxWidth=r!=null?`${r}px`:null,this.$_innerNode.style.maxHeight=a!=null?`${a}px`:null}})));const o=await OP(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:o.x,y:o.y,placement:o.placement,strategy:o.strategy,arrow:{...o.middlewareData.arrow,...o.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),jo&&this.instantMove&&jo.instantMove&&jo!==this.parentPopper){jo.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(jo=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await lc(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...yi(this.$_referenceNode),...yi(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),o=this.$_popperNode.querySelector(".v-popper__wrapper"),r=o.parentNode.getBoundingClientRect(),a=t.x+t.width/2-(r.left+o.offsetLeft),l=t.y+t.height/2-(r.top+o.offsetTop);this.result.transformOrigin=`${a}px ${l}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let o=0;o<Bn.length;o++)t=Bn[o],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Bn.push(this),document.body.classList.add("v-popper--some-open");for(const t of pm(this.theme))ym(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await lc(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,gm(Bn,this),Bn.length===0&&document.body.classList.remove("v-popper--some-open");for(const o of pm(this.theme)){const r=ym(o);gm(r,this),r.length===0&&document.body.classList.remove(`v-popper--some-open--${o}`)}jo===this&&(jo=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await lc(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=o=>{this.isShown&&!this.$_hideInProgress||(o.usedByTooltip=!0,!this.$_preventShow&&this.show({event:o}))};this.$_registerTriggerListeners(this.$_targetNodes,mm,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],mm,this.popperTriggers,this.popperShowTriggers,e);const t=o=>{o.usedByTooltip||this.hide({event:o})};this.$_registerTriggerListeners(this.$_targetNodes,hm,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],hm,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,o){this.$_events.push({targetNodes:e,eventType:t,handler:o}),e.forEach(r=>r.addEventListener(t,o,Fr?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,o,r,a){let l=o;r!=null&&(l=typeof r=="function"?r(l):r),l.forEach(i=>{const s=t[i];s&&this.$_registerEventListeners(e,s,a)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(o=>{const{targetNodes:r,eventType:a,handler:l}=o;!e||e===a?r.forEach(i=>i.removeEventListener(a,l)):t.push(o)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const o of this.$_targetNodes){const r=o.getAttribute(e);r&&(o.removeAttribute(e),o.setAttribute(t,r))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const o in e){const r=e[o];r==null?t.removeAttribute(o):t.setAttribute(o,r)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Ea>=e.left&&Ea<=e.right&&Ca>=e.top&&Ca<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),o=Ea-So,r=Ca-To,a=t.left+t.width/2-So+(t.top+t.height/2)-To+t.width+t.height,l=So+o*a,i=To+r*a;return Nl(So,To,l,i,t.left,t.top,t.left,t.bottom)||Nl(So,To,l,i,t.left,t.top,t.right,t.top)||Nl(So,To,l,i,t.right,t.top,t.right,t.bottom)||Nl(So,To,l,i,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(b0){const e=Fr?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>_m(t,!0),e),document.addEventListener("touchend",t=>bm(t,!0),e)}else window.addEventListener("mousedown",e=>_m(e,!1),!0),window.addEventListener("click",e=>bm(e,!1),!0);window.addEventListener("resize",zP)}function _m(e,t){if(Pn.autoHideOnMousedown)k0(e,t);else for(let o=0;o<Bn.length;o++){const r=Bn[o];try{r.mouseDownContains=r.popperNode().contains(e.target)}catch{}}}function bm(e,t){Pn.autoHideOnMousedown||k0(e,t)}function k0(e,t){const o={};for(let r=Bn.length-1;r>=0;r--){const a=Bn[r];try{const l=a.containsGlobalTarget=a.mouseDownContains||a.popperNode().contains(e.target);a.pendingHide=!1,requestAnimationFrame(()=>{if(a.pendingHide=!1,!o[a.randomId]&&wm(a,l,e)){if(a.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&l){let s=a.parentPopper;for(;s;)o[s.randomId]=!0,s=s.parentPopper;return}let i=a.parentPopper;for(;i&&wm(i,i.containsGlobalTarget,e);)i.$_handleGlobalClose(e,t),i=i.parentPopper}})}catch{}}}function wm(e,t,o){return o.closeAllPopover||o.closePopover&&t||FP(e,o)&&!t}function FP(e,t){if(typeof e.autoHide=="function"){const o=e.autoHide(t);return e.lastAutoHide=o,o}return e.autoHide}function zP(){for(let e=0;e<Bn.length;e++)Bn[e].$_computePosition()}let So=0,To=0,Ea=0,Ca=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{So=Ea,To=Ca,Ea=e.clientX,Ca=e.clientY},Fr?{passive:!0}:void 0);function Nl(e,t,o,r,a,l,i,s){const c=((i-a)*(t-l)-(s-l)*(e-a))/((s-l)*(o-e)-(i-a)*(r-t)),u=((o-e)*(t-l)-(r-t)*(e-a))/((s-l)*(o-e)-(i-a)*(r-t));return c>=0&&c<=1&&u>=0&&u<=1}const UP={extends:$0()},cs=(e,t)=>{const o=e.__vccOpts||e;for(const[r,a]of t)o[r]=a;return o};function HP(e,t,o,r,a,l){return n.openBlock(),n.createElementBlock("div",{ref:"reference",class:n.normalizeClass(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[n.renderSlot(e.$slots,"default",n.normalizeProps(n.guardReactiveProps(e.slotData)))],2)}const jP=cs(UP,[["render",HP]]);function WP(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var o=e.indexOf("Trident/");if(o>0){var r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}var a=e.indexOf("Edge/");return a>0?parseInt(e.substring(a+5,e.indexOf(".",a)),10):-1}let Hl;function mu(){mu.init||(mu.init=!0,Hl=WP()!==-1)}var us={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){mu(),n.nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Hl&&this.$el.appendChild(e),e.data="about:blank",Hl||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Hl&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const qP=n.withScopeId("data-v-b329ee4c");n.pushScopeId("data-v-b329ee4c");const GP={class:"resize-observer",tabindex:"-1"};n.popScopeId();const YP=qP((e,t,o,r,a,l)=>(n.openBlock(),n.createBlock("div",GP)));us.render=YP;us.__scopeId="data-v-b329ee4c";us.__file="src/components/ResizeObserver.vue";const E0=(e="theme")=>({computed:{themeClass(){return RP(this[e])}}}),XP=n.defineComponent({name:"VPopperContent",components:{ResizeObserver:us},mixins:[E0()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),KP=["id","aria-hidden","tabindex","data-popper-placement"],JP={ref:"inner",class:"v-popper__inner"},ZP=n.createElementVNode("div",{class:"v-popper__arrow-outer"},null,-1),QP=n.createElementVNode("div",{class:"v-popper__arrow-inner"},null,-1),e7=[ZP,QP];function t7(e,t,o,r,a,l){const i=n.resolveComponent("ResizeObserver");return n.openBlock(),n.createElementBlock("div",{id:e.popperId,ref:"popover",class:n.normalizeClass(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:n.normalizeStyle(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=n.withKeys(s=>e.autoHide&&e.$emit("hide"),["esc"]))},[n.createElementVNode("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=s=>e.autoHide&&e.$emit("hide"))}),n.createElementVNode("div",{class:"v-popper__wrapper",style:n.normalizeStyle(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[n.createElementVNode("div",JP,[e.mounted?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("div",null,[n.renderSlot(e.$slots,"default")]),e.handleResize?(n.openBlock(),n.createBlock(i,{key:0,onNotify:t[1]||(t[1]=s=>e.$emit("resize",s))})):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)],512),n.createElementVNode("div",{ref:"arrow",class:"v-popper__arrow-container",style:n.normalizeStyle(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},e7,4)],4)],46,KP)}const C0=cs(XP,[["render",t7]]),S0={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let hu=function(){};typeof window<"u"&&(hu=window.Element);const n7=n.defineComponent({name:"VPopperWrapper",components:{Popper:jP,PopperContent:C0},mixins:[S0,E0("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,hu,Boolean],default:void 0},boundary:{type:[String,hu],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function o7(e,t,o,r,a,l){const i=n.resolveComponent("PopperContent"),s=n.resolveComponent("Popper");return n.openBlock(),n.createBlock(s,n.mergeProps({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=c=>e.$emit("update:shown",c)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:n.withCtx(({popperId:c,isShown:u,shouldMountContent:d,skipTransition:f,autoHide:h,show:m,hide:p,handleResize:g,onResize:_,classes:v,result:y})=>[n.renderSlot(e.$slots,"default",{shown:u,show:m,hide:p}),n.createVNode(i,{ref:"popperContent","popper-id":c,theme:e.finalTheme,shown:u,mounted:d,"skip-transition":f,"auto-hide":h,"handle-resize":g,classes:v,result:y,onHide:p,onResize:_},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"popper",{shown:u,hide:p})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Cd=cs(n7,[["render",o7]]),r7={...Cd,name:"VDropdown",vPopperTheme:"dropdown"},a7={...Cd,name:"VMenu",vPopperTheme:"menu"},l7={...Cd,name:"VTooltip",vPopperTheme:"tooltip"},i7=n.defineComponent({name:"VTooltipDirective",components:{Popper:$0(),PopperContent:C0},mixins:[S0],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>qa(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>qa(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,o=this.content(this);o.then?o.then(r=>this.onResult(t,r)):this.onResult(t,o)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),s7=["innerHTML"],c7=["textContent"];function u7(e,t,o,r,a,l){const i=n.resolveComponent("PopperContent"),s=n.resolveComponent("Popper");return n.openBlock(),n.createBlock(s,n.mergeProps({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:n.withCtx(({popperId:c,isShown:u,shouldMountContent:d,skipTransition:f,autoHide:h,hide:m,handleResize:p,onResize:g,classes:_,result:v})=>[n.createVNode(i,{ref:"popperContent",class:n.normalizeClass({"v-popper--tooltip-loading":e.loading}),"popper-id":c,theme:e.theme,shown:u,mounted:d,"skip-transition":f,"auto-hide":h,"handle-resize":p,classes:_,result:v,onHide:m,onResize:g},{default:n.withCtx(()=>[e.html?(n.openBlock(),n.createElementBlock("div",{key:0,innerHTML:e.finalContent},null,8,s7)):(n.openBlock(),n.createElementBlock("div",{key:1,textContent:n.toDisplayString(e.finalContent)},null,8,c7))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const d7=cs(i7,[["render",u7]]),T0="v-popper--has-tooltip";function f7(e,t){let o=e.placement;if(!o&&t)for(const r of w0)t[r]&&(o=r);return o||(o=qa(e.theme||"tooltip","placement")),o}function N0(e,t,o){let r;const a=typeof t;return a==="string"?r={content:t}:t&&a==="object"?r=t:r={content:!1},r.placement=f7(r,o),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}let sc,Ga,p7=0;function m7(){if(sc)return;Ga=n.ref([]),sc=n.createApp({name:"VTooltipDirectiveApp",setup(){return{directives:Ga}},render(){return this.directives.map(t=>n.h(d7,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),sc.mount(e)}function h7(e,t,o){m7();const r=n.ref(N0(e,t,o)),a=n.ref(!1),l={id:p7++,options:r,shown:a};return Ga.value.push(l),e.classList&&e.classList.add(T0),e.$_popper={options:r,item:l,show(){a.value=!0},hide(){a.value=!1}}}function D0(e){if(e.$_popper){const t=Ga.value.indexOf(e.$_popper.item);t!==-1&&Ga.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(T0)}function $m(e,{value:t,modifiers:o}){const r=N0(e,t,o);if(!r.content||qa(r.theme||"tooltip","disabled"))D0(e);else{let a;e.$_popper?(a=e.$_popper,a.options.value=r):a=h7(e,t,o),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?a.show():a.hide())}}const g7={beforeMount:$m,updated:$m,beforeUnmount(e){D0(e)}};function km(e){e.addEventListener("mousedown",_i),e.addEventListener("click",_i),e.addEventListener("touchstart",x0,Fr?{passive:!0}:!1)}function Em(e){e.removeEventListener("mousedown",_i),e.removeEventListener("click",_i),e.removeEventListener("touchstart",x0),e.removeEventListener("touchend",B0),e.removeEventListener("touchcancel",A0)}function _i(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function x0(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const o=e.changedTouches[0];t.$_vclosepopover_touchPoint=o,t.addEventListener("touchend",B0),t.addEventListener("touchcancel",A0)}}function B0(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const o=e.changedTouches[0],r=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(o.screenY-r.screenY)<20&&Math.abs(o.screenX-r.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function A0(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const v7={beforeMount(e,{value:t,modifiers:o}){e.$_closePopoverModifiers=o,(typeof t>"u"||t)&&km(e)},updated(e,{value:t,oldValue:o,modifiers:r}){e.$_closePopoverModifiers=r,t!==o&&(typeof t>"u"||t?km(e):Em(e))},beforeUnmount(e){Em(e)}};function y7(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,_0(Pn,t),e.directive("tooltip",g7),e.directive("close-popper",v7),e.component("VTooltip",l7),e.component("VDropdown",r7),e.component("VMenu",a7))}const _7={version:"5.2.2",install:y7,options:Pn},b7={key:0,class:"center"},w7={key:3},$7={class:"bgl-lightbox-item"},k7={key:2,class:"lightbox-pdf"},E7=["src","title"],C7={key:3,class:"lightbox-file"},S7={class:"file-info txt-white flex m_block align-items-start gap-025"},T7={class:"txt-start"},N7={class:"mx-0 light"},D7={class:"semi word-break-all"},x7={class:"mx-0"},B7={class:"semi"},A7=n.defineComponent({__name:"Lightbox",setup(e,{expose:t}){const{$t:o}=Tt(),r=n.ref(!1),a=n.ref([]),l=n.ref(0),i=n.computed(()=>a.value[l.value]),s=n.ref(1),c=n.computed(()=>s.value===1),u=n.computed(()=>({allowTouchMove:s.value===1,touchRatio:s.value===1?1:0,simulateTouch:s.value===1}));function d(p,g){r.value=!0,a.value=g||[p],l.value=a.value.findIndex(_=>{const v=p.src!==void 0&&p.src!==null&&p.src!==""&&_.src===p.src,y=p.pathKey!==void 0&&p.pathKey!==null&&p.pathKey!==""&&_.pathKey===p.pathKey;return v||y}),l.value===-1&&(l.value=0),s.value=1,document.addEventListener("keydown",m)}function f(){r.value=!1,document.removeEventListener("keydown",m)}function h(p){l.value=p,s.value=1}n.watch(()=>r.value,p=>{p?document.body.style.overflow="hidden":document.body.style.overflow=""}),n.watch(()=>l.value,()=>{s.value=1});function m(p){p.key==="Escape"&&f()}return t({open:d,close:f}),(p,g)=>(n.openBlock(),n.createBlock(n.Transition,{name:"fade"},{default:n.withCtx(()=>{var _,v,y,b,$,w,E,S,x;return[r.value?(n.openBlock(),n.createElementBlock("div",{key:0,class:"bgl-lightbox-overlay",onKeydown:n.withKeys(f,["esc"])},[n.createElementVNode("div",{class:"flex start w-100 space-between p-025 z-9",onClick:f},[n.createVNode(n.unref(ee),{flat:"",class:"color-white",icon:"close",onClick:f}),(_=i.value)!=null&&_.enableZoom&&((v=i.value)==null?void 0:v.type)==="image"?(n.openBlock(),n.createElementBlock("div",b7,[n.createVNode(n.unref(ee),{flat:"",class:"color-white",icon:"remove",disabled:s.value===1,onClick:g[0]||(g[0]=N=>s.value--)},null,8,["disabled"]),n.createVNode(n.unref(ee),{flat:"",class:"color-white",icon:"zoom_in",disabled:s.value===1,onClick:g[1]||(g[1]=N=>s.value=1)},null,8,["disabled"]),n.createVNode(n.unref(ee),{flat:"",class:"color-white",icon:"add",disabled:s.value===3,onClick:g[2]||(g[2]=N=>s.value++)},null,8,["disabled"])])):n.createCommentVNode("",!0),(y=i.value)!=null&&y.openFile&&((b=i.value)!=null&&b.src)?(n.openBlock(),n.createBlock(n.unref(ee),{key:1,class:"color-white",round:"",thin:"",flat:"",iconEnd:"arrow_outward",value:"$t:lightbox.openFile",href:($=i.value)==null?void 0:$.src,target:"_blank"},null,8,["href"])):n.createCommentVNode("",!0),(w=i.value)!=null&&w.download&&((E=i.value)!=null&&E.src)?(n.openBlock(),n.createBlock(n.unref(ee),{key:2,class:"color-white",round:"",thin:"",flat:"",icon:"download",value:"Download File",onClick:g[3]||(g[3]=N=>{var M;return n.unref(Vu)((M=i.value)==null?void 0:M.src)})})):n.createCommentVNode("",!0),!((S=i.value)!=null&&S.openFile)&&!((x=i.value)!=null&&x.download)?(n.openBlock(),n.createElementBlock("div",w7)):n.createCommentVNode("",!0)]),a.value&&a.value.length>0?(n.openBlock(),n.createBlock(n.unref(gv),{key:0,index:l.value,"onUpdate:index":g[6]||(g[6]=N=>l.value=N),items:a.value,"initial-slide":l.value,class:n.normalizeClass(["bgl-lightbox-swiper",{zoomed:s.value>1}]),navigation:a.value.length>1,"grab-cursor":c.value,keyboard:!0,loop:!1,speed:400,"slides-per-view":1,"space-between":0,effect:"slide","advanced-options":u.value,onClick:g[7]||(g[7]=n.withModifiers(()=>{},["stop"]))},{default:n.withCtx(({item:N})=>[n.createElementVNode("div",$7,[N.type==="image"?(n.openBlock(),n.createBlock(n.unref(yv),{key:0,zoom:s.value,"onUpdate:zoom":g[4]||(g[4]=M=>s.value=M),disabled:!(N!=null&&N.enableZoom),"mouse-wheel-to-zoom":!1,"double-click-to-zoom":!0,"max-scale":5,"min-scale":1,"aspect-ratio":0,"limit-translation":!0,onClick:g[5]||(g[5]=n.withModifiers(()=>{},["stop"]))},{default:n.withCtx(()=>[n.createVNode(n.unref(Mr),{draggable:!1,src:N==null?void 0:N.src,alt:"Preview",class:"lightbox-image"},null,8,["src"])]),_:2},1032,["zoom","disabled"])):(N==null?void 0:N.type)==="video"&&(N!=null&&N.src)?(n.openBlock(),n.createBlock(n.unref($u),{key:1,src:N==null?void 0:N.src,autoplay:"",controls:"",class:"lightbox-video"},null,8,["src"])):(N==null?void 0:N.type)==="pdf"&&(N!=null&&N.src)?(n.openBlock(),n.createElementBlock("div",k7,[n.createElementVNode("embed",{src:n.unref(Mu)(N==null?void 0:N.src),type:"application/pdf",width:"100%",height:"1080",title:N==null?void 0:N.name},null,8,E7)])):(n.openBlock(),n.createElementBlock("div",C7,[n.createElementVNode("div",S7,[n.createVNode(n.unref(Te),{class:"m-0 m_none",icon:"draft",size:10,weight:"12"}),n.createVNode(n.unref(Te),{class:"m-0 none m_block m_-mb-1",icon:"draft",size:4,weight:"2"}),n.createElementVNode("div",T7,[n.createElementVNode("p",N7,[g[9]||(g[9]=n.createTextVNode(" File: ")),n.createElementVNode("span",D7,n.toDisplayString(N==null?void 0:N.name),1)]),n.createElementVNode("p",x7,[g[10]||(g[10]=n.createTextVNode(" Type: ")),n.createElementVNode("span",B7,n.toDisplayString(N==null?void 0:N.type),1)]),n.createVNode(n.unref(ee),{href:N==null?void 0:N.src,target:"_blank",round:"",thin:"",class:"mt-1",value:"Open file"},null,8,["href"])])])]))])]),"prev-button":n.withCtx(({prev:N})=>[n.createVNode(n.unref(ee),{icon:"arrow_back",color:"black",onClick:N},null,8,["onClick"])]),"next-button":n.withCtx(({next:N})=>[n.createVNode(n.unref(ee),{icon:"arrow_forward",color:"black",onClick:N},null,8,["onClick"])]),_:1},8,["index","items","initial-slide","class","navigation","grab-cursor","advanced-options"])):n.createCommentVNode("",!0),a.value&&a.value.length>1?(n.openBlock(),n.createElementBlock("div",{key:1,class:"lightbox-thumbnails",onClick:g[8]||(g[8]=n.withModifiers(()=>{},["stop"]))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(a.value,(N,M)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:M},[N.type==="image"?(n.openBlock(),n.createBlock(n.unref(Mr),{key:0,class:n.normalizeClass(["thumbnail",{active:l.value===M}]),src:N.src,alt:"",onClick:n.withModifiers(V=>h(M),["stop"])},null,8,["src","class","onClick"])):(n.openBlock(),n.createBlock(n.unref(Te),{key:1,class:n.normalizeClass(["thumbnail thumbnail-icon",{active:l.value===M}]),icon:"description",onClick:n.withModifiers(V=>h(M),["stop"])},null,8,["class","onClick"]))],64))),128))])):n.createCommentVNode("",!0)],32)):n.createCommentVNode("",!0)]}),_:1}))}}),ha={};let hr=e=>{};const M7={mounted(e,t){const o=gu(t,e);Cm(o),hr=r=>{Sm(r,e,t)},e.addEventListener("click",hr)},updated(e,t){const o=gu(t,e);Cm(o),e.removeEventListener("click",hr),hr=r=>{Sm(r,e,t)},e.addEventListener("click",hr)},unmounted(e){e.removeEventListener("click",hr)},getSSRProps(){return{}}};function Cm(e){e.group&&(ha[e.group]||(ha[e.group]=[]),ha[e.group].findIndex(o=>o.src===e.src)===-1&&ha[e.group].push(e))}function Sm(e,t,o){e.stopPropagation();const r=gu(o,t),a=O7();if(!a||!a.open)return;const l=a.open,i=r&&r.group?ha[r.group]:void 0;l(r,i)}function gu(e,t){let{group:o,src:r,type:a,name:l,thumbnail:i,enableZoom:s,openFile:c,download:u,pathKey:d}=e.value||{};return r=Gn(r||d)||e.value||t.getAttribute("src")||"",a=a||I7(r),l=l||P7(r)||t.getAttribute("alt")||"",{src:r,type:a,name:l,thumbnail:i,group:o,enableZoom:s,openFile:c,download:u}}const V7=/youtube\.com|youtu\.be/,L7=/vimeo\.com/;function P7(e){return!e||typeof e!="string"?"":(e.split("/").pop()||"").replace(/\.[^/.]+$/,"")}function I7(e){var r;if(typeof e!="string"||!e)return"unknown";const t=(e.split(".").pop()||"").toLowerCase(),o=((r=e.split("?")[0].split(".").pop())==null?void 0:r.toLowerCase())||"";return Jl.test(t)||Jl.test(o)?"image":Oh.test(t)||V7.test(e)||L7.test(e)?"video":["pdf"].includes(t)?"pdf":t??"unknown"}let cc;function O7(){if(!(typeof document>"u")){if(!cc){const e=document.createElement("div");document.body.prepend(e),cc=n.createApp(A7).mount(e)}return cc}}const R7={install(e){e.directive("lightbox",M7)}},F7={beforeMount(e,t){e.clickOutsideEvent=o=>{e===o.target||e.contains(o.target)||t.value(o)},document.addEventListener("click",e.clickOutsideEvent)},unmounted(e){document.removeEventListener("click",e.clickOutsideEvent)}},M0=Symbol("modal");let bi=null;function V0(){const e=n.inject(M0,null);if(!e){if(bi)return bi;throw new Error("Modal API not provided. Make sure ModalPlugin is installed via app.use(ModalPlugin)")}return e}const L0={install:e=>{const o=n.reactive([]),r=u=>{u===void 0||u>=o.length-1?o.splice(o.length-1,1):o.splice(u,1)},a=()=>{o.splice(0,o.length)},l=u=>new Promise(d=>{const f=typeof u=="string"?{title:"",message:u}:u;o.push({modalOptions:n.reactive({...f,resolve:d}),modalType:"confirmModal",componentSlots:{}})}),i=(u,d,f={})=>{const h=n.reactive(d);"visible"in h||(h.visible=!0);const m={modalOptions:h,modalType:u,componentSlots:f};return o.push(m),m},s={showModal:(u,d)=>i("modal",u,d),showModalForm:(u,d)=>i("modalForm",u,d),confirmModal:u=>l(u),hideModal:r,hideAllModals:a};bi||(bi=s),e.provide(M0,s);const c=n.defineComponent({name:"ModalContainer",setup(){return{modalStack:o,handleEscape:d=>{d.key==="Escape"&&o.length>0&&o[o.length-1].modalOptions.dismissable!==!1&&r()}}},mounted(){document.addEventListener("keydown",this.handleEscape)},unmounted(){document.removeEventListener("keydown",this.handleEscape)},render(){return this.modalStack.map((u,d)=>{const f=1e3+d*10;if(!u||!u.modalOptions)return console.error("[BageLink Modal] Invalid modal in stack:",u),null;const h={...u.modalOptions,visible:!0,zIndex:f,"onUpdate:visible":()=>{r(d)}};switch(u.modalType){case"modalForm":return u.modalOptions.schema?n.h(Jg,h,u.componentSlots):(console.error("[BageLink Modal] ModalForm requires a schema",u.modalOptions),null);case"confirmModal":return n.h(Kg,h,{});default:return n.h(mn,h,u.componentSlots)}})}});if(e.component("ModalContainer",c),typeof document<"u"&&typeof window<"u"){const u=()=>{if(!document.getElementById("bagelink-modal-root")){const f=document.createElement("div");f.id="bagelink-modal-root",document.body.appendChild(f);const h=n.createApp(c);h._context=e._context,h.mount(f)}};document.body&&u(),e.mixin({mounted(){this.$root===this&&u()}})}}};var z7=Object.defineProperty,Tm=Object.getOwnPropertySymbols,U7=Object.prototype.hasOwnProperty,H7=Object.prototype.propertyIsEnumerable,Nm=(e,t,o)=>t in e?z7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,P0=(e,t)=>{for(var o in t||(t={}))U7.call(t,o)&&Nm(e,o,t[o]);if(Tm)for(var o of Tm(t))H7.call(t,o)&&Nm(e,o,t[o]);return e},ds=e=>typeof e=="function",fs=e=>typeof e=="string",I0=e=>fs(e)&&e.trim().length>0,j7=e=>typeof e=="number",Xo=e=>typeof e>"u",Ya=e=>typeof e=="object"&&e!==null,W7=e=>no(e,"tag")&&I0(e.tag),O0=e=>window.TouchEvent&&e instanceof TouchEvent,R0=e=>no(e,"component")&&F0(e.component),q7=e=>ds(e)||Ya(e),F0=e=>!Xo(e)&&(fs(e)||q7(e)||R0(e)),Dm=e=>Ya(e)&&["height","width","right","left","top","bottom"].every(t=>j7(e[t])),no=(e,t)=>(Ya(e)||ds(e))&&t in e,G7=(e=>()=>e++)(0);function uc(e){return O0(e)?e.targetTouches[0].clientX:e.clientX}function xm(e){return O0(e)?e.targetTouches[0].clientY:e.clientY}var Y7=e=>{Xo(e.remove)?e.parentNode&&e.parentNode.removeChild(e):e.remove()},cl=e=>R0(e)?cl(e.component):W7(e)?n.defineComponent({render(){return e}}):typeof e=="string"?e:n.toRaw(n.unref(e)),X7=e=>{if(typeof e=="string")return e;const t=no(e,"props")&&Ya(e.props)?e.props:{},o=no(e,"listeners")&&Ya(e.listeners)?e.listeners:{};return{component:cl(e),props:t,listeners:o}},K7=()=>typeof window<"u",ps=class{constructor(){this.allHandlers={}}getHandlers(e){return this.allHandlers[e]||[]}on(e,t){const o=this.getHandlers(e);o.push(t),this.allHandlers[e]=o}off(e,t){const o=this.getHandlers(e);o.splice(o.indexOf(t)>>>0,1)}emit(e,t){this.getHandlers(e).forEach(r=>r(t))}},J7=e=>["on","off","emit"].every(t=>no(e,t)&&ds(e[t])),Zt;(function(e){e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.INFO="info",e.DEFAULT="default"})(Zt||(Zt={}));var Xa;(function(e){e.TOP_LEFT="top-left",e.TOP_CENTER="top-center",e.TOP_RIGHT="top-right",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_CENTER="bottom-center",e.BOTTOM_RIGHT="bottom-right"})(Xa||(Xa={}));var hn;(function(e){e.ADD="add",e.DISMISS="dismiss",e.UPDATE="update",e.CLEAR="clear",e.UPDATE_DEFAULTS="update_defaults"})(hn||(hn={}));var Vn="Vue-Toastification",xn={type:{type:String,default:Zt.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},z0={type:xn.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},jl={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:xn.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},vu={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},U0={transition:{type:[Object,String],default:`${Vn}__bounce`}},Z7={position:{type:String,default:Xa.TOP_RIGHT},draggable:xn.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:xn.trueBoolean,pauseOnHover:xn.trueBoolean,closeOnClick:xn.trueBoolean,timeout:vu.timeout,hideProgressBar:vu.hideProgressBar,toastClassName:xn.classNames,bodyClassName:xn.classNames,icon:z0.customIcon,closeButton:jl.component,closeButtonClassName:jl.classNames,showCloseButtonOnHover:jl.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new ps}},Q7={id:{type:[String,Number],required:!0,default:0},type:xn.type,content:{type:[String,Object,Function],required:!0,default:""},onClick:{type:Function,default:void 0},onClose:{type:Function,default:void 0}},eI={container:{type:[Object,Function],default:()=>document.body},newestOnTop:xn.trueBoolean,maxToasts:{type:Number,default:20},transition:U0.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:e=>e},filterToasts:{type:Function,default:e=>e},containerClassName:xn.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},_o={CORE_TOAST:Z7,TOAST:Q7,CONTAINER:eI,PROGRESS_BAR:vu,ICON:z0,TRANSITION:U0,CLOSE_BUTTON:jl},H0=n.defineComponent({name:"VtProgressBar",props:_o.PROGRESS_BAR,data(){return{hasClass:!0}},computed:{style(){return{animationDuration:`${this.timeout}ms`,animationPlayState:this.isRunning?"running":"paused",opacity:this.hideProgressBar?0:1}},cpClass(){return this.hasClass?`${Vn}__progress-bar`:""}},watch:{timeout(){this.hasClass=!1,this.$nextTick(()=>this.hasClass=!0)}},mounted(){this.$el.addEventListener("animationend",this.animationEnded)},beforeUnmount(){this.$el.removeEventListener("animationend",this.animationEnded)},methods:{animationEnded(){this.$emit("close-toast")}}});function tI(e,t){return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style),class:n.normalizeClass(e.cpClass)},null,6)}H0.render=tI;var nI=H0,j0=n.defineComponent({name:"VtCloseButton",props:_o.CLOSE_BUTTON,computed:{buttonComponent(){return this.component!==!1?cl(this.component):"button"},classes(){const e=[`${Vn}__close-button`];return this.showOnHover&&e.push("show-on-hover"),e.concat(this.classNames)}}}),oI=n.createTextVNode(" × ");function rI(e,t){return n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.buttonComponent),n.mergeProps({"aria-label":e.ariaLabel,class:e.classes},e.$attrs),{default:n.withCtx(()=>[oI]),_:1},16,["aria-label","class"])}j0.render=rI;var aI=j0,W0={},lI={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"check-circle",class:"svg-inline--fa fa-check-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},iI=n.createElementVNode("path",{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},null,-1),sI=[iI];function cI(e,t){return n.openBlock(),n.createElementBlock("svg",lI,sI)}W0.render=cI;var uI=W0,q0={},dI={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"info-circle",class:"svg-inline--fa fa-info-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},fI=n.createElementVNode("path",{fill:"currentColor",d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},null,-1),pI=[fI];function mI(e,t){return n.openBlock(),n.createElementBlock("svg",dI,pI)}q0.render=mI;var Bm=q0,G0={},hI={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-circle",class:"svg-inline--fa fa-exclamation-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},gI=n.createElementVNode("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),vI=[gI];function yI(e,t){return n.openBlock(),n.createElementBlock("svg",hI,vI)}G0.render=yI;var _I=G0,Y0={},bI={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-triangle",class:"svg-inline--fa fa-exclamation-triangle fa-w-18",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},wI=n.createElementVNode("path",{fill:"currentColor",d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),$I=[wI];function kI(e,t){return n.openBlock(),n.createElementBlock("svg",bI,$I)}Y0.render=kI;var EI=Y0,X0=n.defineComponent({name:"VtIcon",props:_o.ICON,computed:{customIconChildren(){return no(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return fs(this.customIcon)?this.trimValue(this.customIcon):no(this.customIcon,"iconClass")?this.trimValue(this.customIcon.iconClass):""},customIconTag(){return no(this.customIcon,"iconTag")?this.trimValue(this.customIcon.iconTag,"i"):"i"},hasCustomIcon(){return this.customIconClass.length>0},component(){return this.hasCustomIcon?this.customIconTag:F0(this.customIcon)?cl(this.customIcon):this.iconTypeComponent},iconTypeComponent(){return{[Zt.DEFAULT]:Bm,[Zt.INFO]:Bm,[Zt.SUCCESS]:uI,[Zt.ERROR]:EI,[Zt.WARNING]:_I}[this.type]},iconClasses(){const e=[`${Vn}__icon`];return this.hasCustomIcon?e.concat(this.customIconClass):e}},methods:{trimValue(e,t=""){return I0(e)?e.trim():t}}});function CI(e,t){return n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.component),{class:n.normalizeClass(e.iconClasses)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.customIconChildren),1)]),_:1},8,["class"])}X0.render=CI;var SI=X0,K0=n.defineComponent({name:"VtToast",components:{ProgressBar:nI,CloseButton:aI,Icon:SI},inheritAttrs:!1,props:Object.assign({},_o.CORE_TOAST,_o.TOAST),data(){return{isRunning:!0,disableTransitions:!1,beingDragged:!1,dragStart:0,dragPos:{x:0,y:0},dragRect:{}}},computed:{classes(){const e=[`${Vn}__toast`,`${Vn}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&e.push("disable-transition"),this.rtl&&e.push(`${Vn}__toast--rtl`),e},bodyClasses(){return[`${Vn}__toast-${fs(this.content)?"body":"component-body"}`].concat(this.bodyClassName)},draggableStyle(){return this.dragStart===this.dragPos.x?{}:this.beingDragged?{transform:`translateX(${this.dragDelta}px)`,opacity:1-Math.abs(this.dragDelta/this.removalDistance)}:{transition:"transform 0.2s, opacity 0.2s",transform:"translateX(0)",opacity:1}},dragDelta(){return this.beingDragged?this.dragPos.x-this.dragStart:0},removalDistance(){return Dm(this.dragRect)?(this.dragRect.right-this.dragRect.left)*this.draggablePercent:0}},mounted(){this.draggable&&this.draggableSetup(),this.pauseOnFocusLoss&&this.focusSetup()},beforeUnmount(){this.draggable&&this.draggableCleanup(),this.pauseOnFocusLoss&&this.focusCleanup()},methods:{hasProp:no,getVueComponentFromObj:cl,closeToast(){this.eventBus.emit(hn.DISMISS,this.id)},clickHandler(){this.onClick&&this.onClick(this.closeToast),this.closeOnClick&&(!this.beingDragged||this.dragStart===this.dragPos.x)&&this.closeToast()},timeoutHandler(){this.closeToast()},hoverPause(){this.pauseOnHover&&(this.isRunning=!1)},hoverPlay(){this.pauseOnHover&&(this.isRunning=!0)},focusPause(){this.isRunning=!1},focusPlay(){this.isRunning=!0},focusSetup(){addEventListener("blur",this.focusPause),addEventListener("focus",this.focusPlay)},focusCleanup(){removeEventListener("blur",this.focusPause),removeEventListener("focus",this.focusPlay)},draggableSetup(){const e=this.$el;e.addEventListener("touchstart",this.onDragStart,{passive:!0}),e.addEventListener("mousedown",this.onDragStart),addEventListener("touchmove",this.onDragMove,{passive:!1}),addEventListener("mousemove",this.onDragMove),addEventListener("touchend",this.onDragEnd),addEventListener("mouseup",this.onDragEnd)},draggableCleanup(){const e=this.$el;e.removeEventListener("touchstart",this.onDragStart),e.removeEventListener("mousedown",this.onDragStart),removeEventListener("touchmove",this.onDragMove),removeEventListener("mousemove",this.onDragMove),removeEventListener("touchend",this.onDragEnd),removeEventListener("mouseup",this.onDragEnd)},onDragStart(e){this.beingDragged=!0,this.dragPos={x:uc(e),y:xm(e)},this.dragStart=uc(e),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(e){this.beingDragged&&(e.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:uc(e),y:xm(e)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick(()=>this.closeToast())):setTimeout(()=>{this.beingDragged=!1,Dm(this.dragRect)&&this.pauseOnHover&&this.dragRect.bottom>=this.dragPos.y&&this.dragPos.y>=this.dragRect.top&&this.dragRect.left<=this.dragPos.x&&this.dragPos.x<=this.dragRect.right?this.isRunning=!1:this.isRunning=!0}))}}}),TI=["role"];function NI(e,t){const o=n.resolveComponent("Icon"),r=n.resolveComponent("CloseButton"),a=n.resolveComponent("ProgressBar");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.draggableStyle),onClick:t[0]||(t[0]=(...l)=>e.clickHandler&&e.clickHandler(...l)),onMouseenter:t[1]||(t[1]=(...l)=>e.hoverPause&&e.hoverPause(...l)),onMouseleave:t[2]||(t[2]=(...l)=>e.hoverPlay&&e.hoverPlay(...l))},[e.icon?(n.openBlock(),n.createBlock(o,{key:0,"custom-icon":e.icon,type:e.type},null,8,["custom-icon","type"])):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{role:e.accessibility.toastRole||"alert",class:n.normalizeClass(e.bodyClasses)},[typeof e.content=="string"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.content),1)],2112)):(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.getVueComponentFromObj(e.content)),n.mergeProps({key:1,"toast-id":e.id},e.hasProp(e.content,"props")?e.content.props:{},n.toHandlers(e.hasProp(e.content,"listeners")?e.content.listeners:{}),{onCloseToast:e.closeToast}),null,16,["toast-id","onCloseToast"]))],10,TI),e.closeButton?(n.openBlock(),n.createBlock(r,{key:1,component:e.closeButton,"class-names":e.closeButtonClassName,"show-on-hover":e.showCloseButtonOnHover,"aria-label":e.accessibility.closeButtonLabel,onClick:n.withModifiers(e.closeToast,["stop"])},null,8,["component","class-names","show-on-hover","aria-label","onClick"])):n.createCommentVNode("v-if",!0),e.timeout?(n.openBlock(),n.createBlock(a,{key:2,"is-running":e.isRunning,"hide-progress-bar":e.hideProgressBar,timeout:e.timeout,onCloseToast:e.timeoutHandler},null,8,["is-running","hide-progress-bar","timeout","onCloseToast"])):n.createCommentVNode("v-if",!0)],38)}K0.render=NI;var DI=K0,J0=n.defineComponent({name:"VtTransition",props:_o.TRANSITION,emits:["leave"],methods:{hasProp:no,leave(e){e instanceof HTMLElement&&(e.style.left=e.offsetLeft+"px",e.style.top=e.offsetTop+"px",e.style.width=getComputedStyle(e).width,e.style.position="absolute")}}});function xI(e,t){return n.openBlock(),n.createBlock(n.TransitionGroup,{tag:"div","enter-active-class":e.transition.enter?e.transition.enter:`${e.transition}-enter-active`,"move-class":e.transition.move?e.transition.move:`${e.transition}-move`,"leave-active-class":e.transition.leave?e.transition.leave:`${e.transition}-leave-active`,onLeave:e.leave},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},8,["enter-active-class","move-class","leave-active-class","onLeave"])}J0.render=xI;var BI=J0,Z0=n.defineComponent({name:"VueToastification",devtools:{hide:!0},components:{Toast:DI,VtTransition:BI},props:Object.assign({},_o.CORE_TOAST,_o.CONTAINER,_o.TRANSITION),data(){return{count:0,positions:Object.values(Xa),toasts:{},defaults:{}}},computed:{toastArray(){return Object.values(this.toasts)},filteredToasts(){return this.defaults.filterToasts(this.toastArray)}},beforeMount(){const e=this.eventBus;e.on(hn.ADD,this.addToast),e.on(hn.CLEAR,this.clearToasts),e.on(hn.DISMISS,this.dismissToast),e.on(hn.UPDATE,this.updateToast),e.on(hn.UPDATE_DEFAULTS,this.updateDefaults),this.defaults=this.$props},mounted(){this.setup(this.container)},methods:{async setup(e){ds(e)&&(e=await e()),Y7(this.$el),e.appendChild(this.$el)},setToast(e){Xo(e.id)||(this.toasts[e.id]=e)},addToast(e){e.content=X7(e.content);const t=Object.assign({},this.defaults,e.type&&this.defaults.toastDefaults&&this.defaults.toastDefaults[e.type],e),o=this.defaults.filterBeforeCreate(t,this.toastArray);o&&this.setToast(o)},dismissToast(e){const t=this.toasts[e];!Xo(t)&&!Xo(t.onClose)&&t.onClose(),delete this.toasts[e]},clearToasts(){Object.keys(this.toasts).forEach(e=>{this.dismissToast(e)})},getPositionToasts(e){const t=this.filteredToasts.filter(o=>o.position===e).slice(0,this.defaults.maxToasts);return this.defaults.newestOnTop?t.reverse():t},updateDefaults(e){Xo(e.container)||this.setup(e.container),this.defaults=Object.assign({},this.defaults,e)},updateToast({id:e,options:t,create:o}){this.toasts[e]?(t.timeout&&t.timeout===this.toasts[e].timeout&&t.timeout++,this.setToast(Object.assign({},this.toasts[e],t))):o&&this.addToast(Object.assign({},{id:e},t))},getClasses(e){return[`${Vn}__container`,e].concat(this.defaults.containerClassName)}}});function AI(e,t){const o=n.resolveComponent("Toast"),r=n.resolveComponent("VtTransition");return n.openBlock(),n.createElementBlock("div",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.positions,a=>(n.openBlock(),n.createElementBlock("div",{key:a},[n.createVNode(r,{transition:e.defaults.transition,class:n.normalizeClass(e.getClasses(a))},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.getPositionToasts(a),l=>(n.openBlock(),n.createBlock(o,n.mergeProps({key:l.id},l),null,16))),128))]),_:2},1032,["transition","class"])]))),128))])}Z0.render=AI;var MI=Z0,Am=(e={},t=!0)=>{const o=e.eventBus=e.eventBus||new ps;t&&n.nextTick(()=>{const l=n.createApp(MI,P0({},e)),i=l.mount(document.createElement("div")),s=e.onMounted;if(Xo(s)||s(i,l),e.shareAppContext){const c=e.shareAppContext;c===!0?console.warn(`[${Vn}] App to share context with was not provided.`):(l._context.components=c._context.components,l._context.directives=c._context.directives,l._context.mixins=c._context.mixins,l._context.provides=c._context.provides,l.config.globalProperties=c.config.globalProperties)}});const r=(l,i)=>{const s=Object.assign({},{id:G7(),type:Zt.DEFAULT},i,{content:l});return o.emit(hn.ADD,s),s.id};r.clear=()=>o.emit(hn.CLEAR,void 0),r.updateDefaults=l=>{o.emit(hn.UPDATE_DEFAULTS,l)},r.dismiss=l=>{o.emit(hn.DISMISS,l)};function a(l,{content:i,options:s},c=!1){const u=Object.assign({},s,{content:i});o.emit(hn.UPDATE,{id:l,options:u,create:c})}return r.update=a,r.success=(l,i)=>r(l,Object.assign({},i,{type:Zt.SUCCESS})),r.info=(l,i)=>r(l,Object.assign({},i,{type:Zt.INFO})),r.error=(l,i)=>r(l,Object.assign({},i,{type:Zt.ERROR})),r.warning=(l,i)=>r(l,Object.assign({},i,{type:Zt.WARNING})),r},VI=()=>{const e=()=>console.warn(`[${Vn}] This plugin does not support SSR!`);return new Proxy(e,{get(){return e}})};function Ka(e){return K7()?J7(e)?Am({eventBus:e},!1):Am(e,!0):VI()}var ms=Symbol("VueToastification"),Sd=new ps,LI=(e,t)=>{(t==null?void 0:t.shareAppContext)===!0&&(t.shareAppContext=e);const o=Ka(P0({eventBus:Sd},t));e.provide(ms,o)},PI=e=>{const t=Ka(e);n.getCurrentInstance()&&n.provide(ms,t)},Q0=e=>{if(e)return Ka(e);const t=n.getCurrentInstance()?n.inject(ms,void 0):void 0;return t||Ka(Sd)},ey=LI;const ty=Object.freeze(Object.defineProperty({__proto__:null,EventBus:ps,get POSITION(){return Xa},get TYPE(){return Zt},createToastInterface:Ka,default:ey,globalEventBus:Sd,provideToast:PI,toastInjectionKey:ms,useToast:Q0},Symbol.toStringTag,{value:"Module"})),II={key:0,class:"custom-toast__icon"},OI={class:"custom-toast__content"},sa=n.defineComponent({__name:"Toast",props:{message:{},type:{default:"info"},showIcon:{type:Boolean,default:!0},showCloseButton:{type:Boolean,default:!0},closeToast:{}},setup(e){return(t,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["custom-toast",`custom-toast--${t.type}`])},[t.showIcon?(n.openBlock(),n.createElementBlock("div",II,[t.type==="success"?(n.openBlock(),n.createBlock(n.unref(Te),{key:0,icon:"check_circle"})):n.createCommentVNode("",!0),t.type==="error"?(n.openBlock(),n.createBlock(n.unref(Te),{key:1,icon:"dangerous"})):n.createCommentVNode("",!0),t.type==="warning"?(n.openBlock(),n.createBlock(n.unref(Te),{key:2,icon:"report"})):n.createCommentVNode("",!0),t.type==="info"?(n.openBlock(),n.createBlock(n.unref(Te),{key:3,icon:"info"})):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),n.createElementVNode("div",OI,n.toDisplayString(t.message),1),t.showCloseButton?(n.openBlock(),n.createElementBlock("button",{key:1,class:"custom-toast__close",onClick:o[0]||(o[0]=(...r)=>t.closeToast&&t.closeToast(...r))},[n.createVNode(n.unref(Te),{icon:"close"})])):n.createCommentVNode("",!0)],2))}}),RI=ey||ty,{POSITION:FI}=ty,gr=Q0,ny=Symbol("toast");let wi=null;function zI(){const e=n.inject(ny,null);if(!e){if(wi)return wi;throw new Error("Toast API not provided. Make sure ToastPlugin is installed via app.use(ToastPlugin)")}return e}function UI(){if(typeof document>"u")return;let e=document.getElementById("bgl-toast-container");e||(e=document.createElement("div"),e.setAttribute("popover","manual"),e.setAttribute("id","bgl-toast-container"),document.body.appendChild(e));try{e.hidePopover()}catch{}try{e.showPopover()}catch{}return e}const oy={install:(e,t={})=>{const o=UI(),r={position:FI.TOP_RIGHT,timeout:5e3,closeOnClick:!0,pauseOnFocusLoss:!0,pauseOnHover:!0,draggable:!0,draggablePercent:.6,showCloseButtonOnHover:!1,hideProgressBar:!0,closeButton:!1,icon:!1,rtl:!1,transition:"Vue-Toastification__fade",maxToasts:5,newestOnTop:!0,toastClassName:"custom-toast-wrapper",bodyClassName:"custom-toast-body",...o?{container:o}:{},...t};e.use(RI,r);function a(){const i=typeof document<"u"?document.getElementById("bgl-toast-container"):null;if(i){try{i.hidePopover()}catch{}try{i.showPopover()}catch{}}}const l={success:(i,s)=>(a(),gr()({component:sa,props:{message:i,type:"success"}},s)),error:(i,s)=>(a(),gr()({component:sa,props:{message:i,type:"error"}},s)),info:(i,s)=>(a(),gr()({component:sa,props:{message:i,type:"info"}},s)),warning:(i,s)=>(a(),gr()({component:sa,props:{message:i,type:"warning"}},s)),show:(i,s)=>(a(),gr()({component:sa,props:{message:i,type:"info"}},s)),clear:()=>{gr().clear()}};wi||(wi=l),e.provide(ny,l)}};var hs=class extends Event{constructor(t,{oldState:o="",newState:r="",...a}={}){super(t,a);qe(this,"oldState");qe(this,"newState");this.oldState=String(o||""),this.newState=String(r||"")}},Mm=new WeakMap;function ry(e,t,o){Mm.set(e,setTimeout(()=>{Mm.has(e)&&e.dispatchEvent(new hs("toggle",{cancelable:!1,oldState:t,newState:o}))},0))}var Td=globalThis.ShadowRoot||function(){},HI=globalThis.HTMLDialogElement||function(){},Wl=new WeakMap,vo=new WeakMap,En=new WeakMap,zr=new WeakMap;function $i(e){return zr.get(e)||"hidden"}var ki=new WeakMap;function Ja(e){return[...e].pop()}function jI(e){const t=e.popoverTargetElement;if(!(t instanceof HTMLElement))return;const o=$i(t);e.popoverTargetAction==="show"&&o==="showing"||e.popoverTargetAction==="hide"&&o==="hidden"||(o==="showing"?Hr(t,!0,!0):Qo(t,!1)&&(ki.set(t,e),yu(t)))}function Qo(e,t){return!(e.popover!=="auto"&&e.popover!=="manual"&&e.popover!=="hint"||!e.isConnected||t&&$i(e)!=="showing"||!t&&$i(e)!=="hidden"||e instanceof HI&&e.hasAttribute("open")||document.fullscreenElement===e)}function Vm(e){if(!e)return 0;const t=vo.get(document)||new Set,o=En.get(document)||new Set;return o.has(e)?[...o].indexOf(e)+t.size+1:t.has(e)?[...t].indexOf(e)+1:0}function WI(e){const t=ay(e),o=qI(e);return Vm(t)>Vm(o)?t:o}function Za(e){let t;const o=En.get(e)||new Set,r=vo.get(e)||new Set,a=o.size>0?o:r.size>0?r:null;return a?(t=Ja(a),t.isConnected?t:(a.delete(t),Za(e))):null}function Lm(e){for(const t of e||[])if(!t.isConnected)e.delete(t);else return t;return null}function Ur(e){return typeof e.getRootNode=="function"?e.getRootNode():e.parentNode?Ur(e.parentNode):e}function ay(e){for(;e;){if(e instanceof HTMLElement&&e.popover==="auto"&&zr.get(e)==="showing")return e;if(e=e instanceof Element&&e.assignedSlot||e.parentElement||Ur(e),e instanceof Td&&(e=e.host),e instanceof Document)return}}function qI(e){for(;e;){const t=e.popoverTargetElement;if(t instanceof HTMLElement)return t;if(e=e.parentElement||Ur(e),e instanceof Td&&(e=e.host),e instanceof Document)return}}function Pm(e,t){const o=new Map;let r=0;for(const i of t||[])o.set(i,r),r+=1;o.set(e,r),r+=1;let a=null;function l(i){if(!i)return;let s=!1,c=null,u=null;for(;!s;){if(c=ay(i)||null,c===null||!o.has(c))return;(e.popover==="hint"||c.popover==="auto")&&(s=!0),s||(i=c.parentElement)}u=o.get(c),(a===null||o.get(a)<u)&&(a=c)}return l(e.parentElement||Ur(e)),a}function GI(e){return e.hidden||e instanceof Td||(e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLOptGroupElement||e instanceof HTMLOptionElement||e instanceof HTMLFieldSetElement)&&e.disabled||e instanceof HTMLInputElement&&e.type==="hidden"||e instanceof HTMLAnchorElement&&e.href===""?!1:typeof e.tabIndex=="number"&&e.tabIndex!==-1}function YI(e){if(e.shadowRoot&&e.shadowRoot.delegatesFocus!==!0)return null;let t=e;t.shadowRoot&&(t=t.shadowRoot);let o=t.querySelector("[autofocus]");if(o)return o;{const l=t.querySelectorAll("slot");for(const i of l){const s=i.assignedElements({flatten:!0});for(const c of s){if(c.hasAttribute("autofocus"))return c;if(o=c.querySelector("[autofocus]"),o)return o}}}const r=e.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);let a=r.currentNode;for(;a;){if(GI(a))return a;a=r.nextNode()}}function XI(e){var t;(t=YI(e))==null||t.focus()}var Ei=new WeakMap;function yu(e){if(!Qo(e,!1))return;const t=e.ownerDocument;if(!e.dispatchEvent(new hs("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!Qo(e,!1))return;let o=!1;const r=e.popover;let a=null;const l=Pm(e,vo.get(t)||new Set),i=Pm(e,En.get(t)||new Set);if(r==="auto"&&(_u(En.get(t)||new Set,o,!0),er(l||t,o,!0),a="auto"),r==="hint"&&(i?(er(i,o,!0),a="hint"):(_u(En.get(t)||new Set,o,!0),l?(er(l,o,!0),a="auto"):a="hint")),r==="auto"||r==="hint"){if(r!==e.popover||!Qo(e,!1))return;Za(t)||(o=!0),a==="auto"?(vo.has(t)||vo.set(t,new Set),vo.get(t).add(e)):a==="hint"&&(En.has(t)||En.set(t,new Set),En.get(t).add(e))}Ei.delete(e);const s=t.activeElement;e.classList.add(":popover-open"),zr.set(e,"showing"),Wl.has(t)||Wl.set(t,new Set),Wl.get(t).add(e),ly(ki.get(e),!0),XI(e),o&&s&&e.popover==="auto"&&Ei.set(e,s),ry(e,"closed","open")}function Hr(e,t=!1,o=!1){var r,a;if(!Qo(e,!0))return;const l=e.ownerDocument;if(["auto","hint"].includes(e.popover)&&(er(e,t,o),!Qo(e,!0)))return;const i=vo.get(l)||new Set,s=i.has(e)&&Ja(i)===e;if(ly(ki.get(e),!1),ki.delete(e),o&&(e.dispatchEvent(new hs("beforetoggle",{oldState:"open",newState:"closed"})),s&&Ja(i)!==e&&er(e,t,o),!Qo(e,!0)))return;(r=Wl.get(l))==null||r.delete(e),i.delete(e),(a=En.get(l))==null||a.delete(e),e.classList.remove(":popover-open"),zr.set(e,"hidden"),o&&ry(e,"open","closed");const c=Ei.get(e);c&&(Ei.delete(e),t&&c.focus())}function KI(e,t=!1,o=!1){let r=Za(e);for(;r;)Hr(r,t,o),r=Za(e)}function _u(e,t=!1,o=!1){let r=Lm(e);for(;r;)Hr(r,t,o),r=Lm(e)}function Im(e,t,o,r){let a=!1,l=!1;for(;a||!l;){l=!0;let i=null,s=!1;for(const c of t)if(c===e)s=!0;else if(s){i=c;break}if(!i)return;for(;$i(i)==="showing"&&t.size;)Hr(Ja(t),o,r);t.has(e)&&Ja(t)!==e&&(a=!0),a&&(r=!1)}}function er(e,t,o){var r,a;const l=e.ownerDocument||e;if(e instanceof Document)return KI(l,t,o);if((r=En.get(l))!=null&&r.has(e)){Im(e,En.get(l),t,o);return}_u(En.get(l)||new Set,t,o),(a=vo.get(l))!=null&&a.has(e)&&Im(e,vo.get(l),t,o)}var dc=new WeakMap;function Om(e){if(!e.isTrusted)return;const t=e.composedPath()[0];if(!t)return;const o=t.ownerDocument;if(!Za(o))return;const a=WI(t);if(a&&e.type==="pointerdown")dc.set(o,a);else if(e.type==="pointerup"){const l=dc.get(o)===a;dc.delete(o),l&&er(a||o,!1,!0)}}var fc=new WeakMap;function ly(e,t=!1){if(!e)return;fc.has(e)||fc.set(e,e.getAttribute("aria-expanded"));const o=e.popoverTargetElement;if(o instanceof HTMLElement&&o.popover==="auto")e.setAttribute("aria-expanded",String(t));else{const r=fc.get(e);r?e.setAttribute("aria-expanded",r):e.removeAttribute("aria-expanded")}}var Rm=globalThis.ShadowRoot||function(){};function JI(){return typeof HTMLElement<"u"&&typeof HTMLElement.prototype=="object"&&"popover"in HTMLElement.prototype}function Wo(e,t,o){const r=e[t];Object.defineProperty(e,t,{value(a){return r.call(this,o(a))}})}var ZI=/(^|[^\\]):popover-open\b/g;function QI(){return typeof globalThis.CSSLayerBlockRule=="function"}function eO(){const e=QI();return`
|
|
436
|
+
`,e.appendChild(i))):i=e,i.addEventListener("mouseenter",()=>{i!==e&&(i.style.background="rgba(0, 0, 0, 0.2)")}),i.addEventListener("mouseleave",()=>{i!==e&&!r&&(i.style.background="rgba(0, 0, 0, 0.1)")}),i.style.cursor="ns-resize",i.style.userSelect="none";function s(h){return{clientY:h,deltaY:h-a,initialHeight:l}}function c(h){return o.gridSize?Math.round(h/o.gridSize)*o.gridSize:h}function u(h){if(!r)return;h.preventDefault();const m="touches"in h?h.touches[0].clientY:h.clientY,p=s(m);let g=l+p.deltaY;o.minHeight!==void 0&&(g=Math.max(g,o.minHeight)),o.maxHeight!==void 0&&(g=Math.min(g,o.maxHeight)),g=c(g),e.style.height=`${g}px`,o.onResize&&o.onResize(p),i!==e&&(i.style.background="rgba(0, 0, 0, 0.3)")}function d(h){if(!r)return;const m="touches"in h?h.changedTouches[0].clientY:h.clientY,p=s(m);r=!1,document.body.style.cursor="",document.body.style.userSelect="",i!==e&&(i.style.background="rgba(0, 0, 0, 0.1)"),o.onEnd&&o.onEnd(p),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",d),document.removeEventListener("touchmove",u),document.removeEventListener("touchend",d),document.removeEventListener("touchcancel",d)}function f(h){h instanceof MouseEvent&&h.button!==0||(h.preventDefault(),r=!0,a="touches"in h?h.touches[0].clientY:h.clientY,l=e.offsetHeight,o.onStart&&o.onStart(h),document.body.style.cursor="ns-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",u,{passive:!1}),document.addEventListener("mouseup",d),document.addEventListener("touchmove",u,{passive:!1}),document.addEventListener("touchend",d),document.addEventListener("touchcancel",d))}i.addEventListener("mousedown",f),i.addEventListener("touchstart",f,{passive:!1}),e[ma]=()=>{i!==e&&e.removeChild(i),i.removeEventListener("mousedown",f),i.removeEventListener("touchstart",f),i.removeEventListener("mouseenter",f),i.removeEventListener("mouseleave",f),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",d),document.removeEventListener("touchmove",u),document.removeEventListener("touchend",d),document.removeEventListener("touchcancel",d)}}const lP={mounted(e,t){lm(e,t)},unmounted(e){const t=e[ma];typeof t=="function"&&(t(),delete e[ma])},updated(e,t){if(t.value!==t.oldValue){const o=e[ma];typeof o=="function"&&(o(),delete e[ma]),lm(e,t)}},getSSRProps(){return{}}},iP=!0;class ft{constructor(t,o={}){qe(this,"_type");qe(this,"_config");qe(this,"_condition");qe(this,"_validations");qe(this,"_onUpdate");qe(this,"_class");qe(this,"_slots");qe(this,"_component");this._type=t,this._config=o}if(t){return this._condition=t,this}validate(t){return this._validations||(this._validations=[]),this._validations.push(t),this}onUpdate(t){return this._onUpdate=t,this}class(t){return this._class=this._class?`${this._class} ${t}`:t,this}required(t){return this._config.required=!0,t&&(this._config.requiredMessage=t),this}slot(t,o,r){return this._slots||(this._slots=[]),typeof t!="string"||o!==void 0&&typeof o!="string"?this._slots.push({component:t,props:o}):this._slots.push({name:t,component:o,props:r}),this}}function Dt(e,t){return typeof e=="string"?{...t,label:e}:e??{}}const Ct={text(e,t){return new ft("text",Dt(e,t))},email(e,t){return new ft("email",Dt(e,t))},password(e,t){return new ft("password",Dt(e,t))},number(e,t){return new ft("number",Dt(e,t))},tel(e,t){return new ft("tel",Dt(e,t))},url(e,t){return new ft("url",Dt(e,t))},date(e,t){return new ft("date",Dt(e,t))},time(e,t){return new ft("time",Dt(e,t))},datetime(e,t){return new ft("datetime",Dt(e,t))},textarea(e,t){return new ft("textarea",Dt(e,t))},richtext(e,t){return new ft("richtext",Dt(e,t))},json(e,t){const o=Dt(e,t);return o.language||(o.language="json"),new ft("json",o)},checkbox(e,t){return new ft("checkbox",Dt(e,t))},toggle(e,t){return new ft("toggle",Dt(e,t))},radio(e,t,o){if(typeof e=="string"){const r=e,a=t;return new ft("radio",{...o,label:r,options:a})}return new ft("radio",{...Dt(t,o),options:e})},select(e,t,o){if(typeof e=="string"){const r=e,a=t;return new ft("select",{...o,label:r,options:a})}return new ft("select",{...Dt(t,o),options:e})},multiselect(e,t,o){if(typeof e=="string"){const r=e,a=t;return new ft("multiselect",{...o,label:r,options:a,multiple:!0})}return new ft("multiselect",{...Dt(t,o),options:e})},color(e,t){return new ft("color",Dt(e,t))},upload(e,t){return new ft("upload",Dt(e,t))},array(e,t,o){if(typeof e=="string"){const l=e,i=t,s=o??{};return new ft("array",{...s,label:l,schema:i})}const r=e,a=Dt(t,o);return new ft("array",{...a,schema:r})},component(e,t={}){const o=new ft("component",t);return o._component={component:e,props:t},o},display(e,t={}){const o=new ft("display",t);return o._component={component:e,props:t},o}};class Ha{constructor(t,o){qe(this,"_isSchema",!0);qe(this,"_label");qe(this,"_fields");qe(this,"_condition");qe(this,"_class");this._fields=t,this._label=o}if(t){return this._condition=t,this}class(t){return this._class=this._class?`${this._class} ${t}`:t,this}toJSONSchema(){const t={},o=[];for(const[l,i]of Object.entries(this._fields)){const s=i._config,c=Ha.getJSONSchemaType(i._type),u={type:c};if(s.label&&(u.title=s.label),s.helpText&&(u.description=s.helpText),s.default!==void 0&&(u.default=s.default),s.options){const f=s.options.map(h=>Tr(h)??h);i._type==="multiselect"?u.items={type:"string",enum:f}:u.enum=f}s.min!==void 0&&(u[c==="string"?"minLength":"minimum"]=s.min),s.max!==void 0&&(u[c==="string"?"maxLength":"maximum"]=s.max),i._type==="email"&&(u.format="email"),i._type==="url"&&(u.format="uri"),i._type==="date"&&(u.format="date"),i._type==="time"&&(u.format="time"),i._type==="datetime"&&(u.format="date-time");const d={};i._type!=="text"&&(d.fieldType=i._type),s.placeholder&&(d.placeholder=s.placeholder),s.disabled&&(d.disabled=s.disabled),s.readonly&&(d.readonly=s.readonly),s.autoheight&&(d.autoheight=s.autoheight),s.rows&&(d.rows=s.rows),s.cols&&(d.cols=s.cols),i._class&&(d.class=i._class),i._condition&&(d.condition=i._condition),i._type==="array"&&(s.allowAdd!==void 0&&(d.allowAdd=s.allowAdd),s.allowDelete!==void 0&&(d.allowDelete=s.allowDelete)),i._component&&(d.component=typeof i._component.component=="string"?i._component.component:i._component.component.name||"CustomComponent",i._component.props&&(d.componentProps=i._component.props)),Object.keys(d).length>0&&(u["x-ui"]=d),t[l]=u,s.required===!0&&o.push(l)}const r={type:"object",properties:t};o.length>0&&(r.required=o),this._label&&(r.title=this._label);const a={};return this._condition&&(a.condition=this._condition),this._class&&(a.class=this._class),Object.keys(a).length>0&&(r["x-ui"]=a),r}static getJSONSchemaType(t){return{text:"string",email:"string",password:"string",number:"number",tel:"string",url:"string",date:"string",time:"string",datetime:"string",textarea:"string",richtext:"string",json:"object",checkbox:"boolean",toggle:"boolean",radio:"string",select:"string",multiselect:"array",array:"array"}[t]||"string"}}function sP(e,t){if(typeof e=="string"){if(!t)throw new Error("Fields are required when providing a label");return new Ha(t,e)}return new Ha(e)}function cP(e){return e}function uP(e){var a,l;const t={},o=new Set(e.required||[]);if(e.properties)for(const[i,s]of Object.entries(e.properties))t[i]=pP(i,s,o.has(i),e);const r=new Ha(t,e.title);return(a=e["x-ui"])!=null&&a.condition&&r.if(e["x-ui"].condition),(l=e["x-ui"])!=null&&l.class&&r.class(e["x-ui"].class),r}function dP(e,t){const o=e.match(/^#\/(\$defs|definitions)\/(.+)$/);if(!o)return;const[,r,a]=o,l=r==="$defs"?t.$defs:t.definitions;return a?l==null?void 0:l[a]:void 0}function fP(e,t){const o=e.anyOf||e.oneOf;if(!o||o.length===0)return e;const r=o.filter(s=>s.type!=="null");if(r.length===1){const s=r[0];return{...s,title:e.title||s.title,description:e.description||s.description,default:e.default!==void 0?e.default:s.default,"x-ui":{...s["x-ui"],...e["x-ui"]}}}const a=["object","array","string","number","integer","boolean"],i=r.sort((s,c)=>{const u=a.indexOf(s.type||"string"),d=a.indexOf(c.type||"string");return u-d})[0];return{...i,title:e.title||i.title,description:e.description||i.description,default:e.default!==void 0?e.default:i.default,"x-ui":{...i["x-ui"],...e["x-ui"]}}}function pP(e,t,o,r){var u;let a=t;if(t.$ref){const d=dP(t.$ref,r);d&&(a={...d,type:t.type??d.type,enum:t.enum??d.enum,title:t.title??d.title,description:t.description??d.description,default:t.default!==void 0?t.default:d.default,"x-ui":{...d["x-ui"],...t["x-ui"]}})}(a.anyOf||a.oneOf)&&(a=fP(a));const l=a["x-ui"]||{},i=l.fieldType||im(a),s={};a.title&&(s.label=a.title),a.description&&(s.helpText=a.description),a.default!==void 0&&(s.default=a.default),o&&(s.required=!0),l.placeholder&&(s.placeholder=l.placeholder),l.disabled&&(s.disabled=l.disabled),l.readonly&&(s.readonly=l.readonly),l.autoheight&&(s.autoheight=l.autoheight),l.rows&&(s.rows=l.rows),l.cols&&(s.cols=l.cols),a.minimum!==void 0&&(s.min=a.minimum),a.maximum!==void 0&&(s.max=a.maximum),a.minLength!==void 0&&(s.min=a.minLength),a.maxLength!==void 0&&(s.max=a.maxLength);let c;switch(i){case"email":c=Ct.email(s);break;case"password":c=Ct.password(s);break;case"number":c=Ct.number(s);break;case"tel":c=Ct.tel(s);break;case"url":c=Ct.url(s);break;case"date":c=Ct.date(s);break;case"time":c=Ct.time(s);break;case"datetime":c=Ct.datetime(s);break;case"textarea":c=Ct.textarea(s);break;case"richtext":c=Ct.richtext(s);break;case"json":c=Ct.json(s);break;case"checkbox":c=Ct.checkbox(s);break;case"toggle":c=Ct.toggle(s);break;case"radio":c=Ct.radio(a.enum||[],s);break;case"select":c=Ct.select(a.enum||[],s);break;case"multiselect":c=Ct.multiselect(a.enum||[],s);break;case"array":{const d={...s};l.allowAdd!==void 0&&(d.allowAdd=l.allowAdd),l.allowDelete!==void 0&&(d.allowDelete=l.allowDelete),(u=a.items)!=null&&u.type&&(d.itemType=im(a.items)),c=Ct.array(a.title||e,void 0,d);break}case"display":c=Ct.display(l.component||"div",l.componentProps||{});break;case"component":c=Ct.component(l.component||"div",l.componentProps||{});break;default:c=Ct.text(s)}return l.class&&c.class(l.class),l.condition&&c.if(l.condition),c}function im(e){if(e.format)switch(e.format){case"email":return"email";case"uri":return"url";case"date":return"date";case"time":return"time";case"date-time":return"datetime"}if(e.enum)return"select";switch(e.type){case"boolean":return"checkbox";case"number":case"integer":return"number";case"array":return"array";case"object":return"json";default:return"text"}}const mP={class:"multi-step-form"},hP={class:"step-progress"},gP=["onClick"],vP={class:"step-number"},yP={class:"step-label"},_P={key:0},bP={key:0,class:"step-title"},wP={key:1,class:"validation-errors"},$P={class:"step-navigation"},kP=["disabled"],EP={class:"step-counter"},CP=n.defineComponent({__name:"MultiStepForm",props:{schema:{},modelValue:{},currentStep:{},components:{},validateOnNext:{type:Boolean,default:!0}},emits:["update:modelValue","update:currentStep","stepChange","complete","validationError"],setup(e,{expose:t,emit:o}){const r=e,a=o,{$t:l}=Tt(),i=n.ref({...r.modelValue||{}}),s=n.ref(r.currentStep!=null&&r.currentStep!==""?r.currentStep:Object.keys(r.schema)[0]);let c=!1;n.watch(()=>r.modelValue,M=>{c||(i.value={...M||{}})},{deep:!0}),n.watch(i,M=>{c=!0,a("update:modelValue",M),setTimeout(()=>{c=!1},0)},{deep:!0}),n.watch(()=>r.currentStep,M=>{M!=null&&(s.value=M)}),n.watch(s,M=>{a("update:currentStep",M),a("stepChange",M)});function u(M,V){const k=V.split(".");let C=M;for(const B of k)C=C==null?void 0:C[B];return C}function d(M,V){if(!M)return!0;try{const k=Au(M);if(k.length===0)return!0;let C=!0,B=null;for(let A=0;A<k.length;A++){const L=k[A],I=u(V,L.field),{op:P,value:oe,connector:Z}=L;let U=!1;switch(P){case"eq":U=I===oe;break;case"ne":U=I!==oe;break;case"gt":U=oe!=null&&I>oe;break;case"ge":U=oe!=null&&I>=oe;break;case"lt":U=oe!=null&&I<oe;break;case"le":U=oe!=null&&I<=oe;break;case"co":U=oe!=null&&String(I).includes(String(oe));break;case"sw":U=oe!=null&&String(I).startsWith(String(oe));break;case"ew":U=oe!=null&&String(I).endsWith(String(oe));break;case"pr":U=I!=null;break;default:U=!1}A===0?(C=U,B=U):(Z==="or"?C=(B??!1)||U:Z==="and"&&(C=(B??!1)&&U),B=C)}return C}catch(k){return console.warn("Failed to evaluate condition:",M,k),!0}}function f(M){return M._condition==null?!0:d(M._condition,i.value)}const h=n.computed(()=>Object.entries(r.schema).filter(([,M])=>f(M)).map(([M,V])=>({key:M,schema:V}))),m=n.computed(()=>h.value.findIndex(M=>M.key===s.value)),p=n.computed(()=>m.value===0),g=n.computed(()=>m.value===h.value.length-1),_=n.computed(()=>{const M=h.value[m.value];return M==null?void 0:M.schema}),v=n.ref({});function y(M){return M._condition==null?!0:d(M._condition,i.value)}function b(M){const V=M.replace(/\[(\d+)\]/g,".$1");return u(i.value,V)}function $(M){return!!(M==null||typeof M=="string"&&M.trim()===""||Array.isArray(M)&&M.length===0)}function w(){if(!r.validateOnNext||_.value==null)return!0;const M={},V=_.value._fields;for(const[k,C]of Object.entries(V)){if(C._type==="display"||!y(C))continue;const B=b(k),A=C._config;if(A.required===!0&&$(B)){const L=typeof A.label=="string"?A.label:k;M[k]=`${L} is required`;continue}if(C._validations&&!$(B))for(const L of C._validations){const I=L(B);if(I!==!0){M[k]=I;break}}}return v.value=M,Object.keys(M).length>0?(a("validationError",M),!1):!0}function E(M,V){return V._label!=null?V._label:M.split(/[._-]/).map(k=>k.charAt(0).toUpperCase()+k.slice(1)).join(" ")}function S(M){const V=h.value.findIndex(k=>k.key===M);if(V!==-1){if(V<m.value){s.value=M,v.value={};return}V>m.value&&!w()||(s.value=M)}}function x(){if(w())if(g.value)a("complete");else{const M=m.value+1;s.value=h.value[M].key,v.value={}}}function N(){if(!p.value){const M=m.value-1;s.value=h.value[M].key,v.value={}}}return t({validateCurrentStep:w,stepErrors:v}),(M,V)=>(n.openBlock(),n.createElementBlock("div",mP,[n.createElementVNode("div",hP,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(h.value,(k,C)=>(n.openBlock(),n.createElementBlock("div",{key:k.key,class:n.normalizeClass(["step-indicator",{active:k.key===s.value,completed:C<m.value}]),onClick:B=>S(k.key)},[n.createElementVNode("div",vP,n.toDisplayString(C+1),1),n.createElementVNode("div",yP,n.toDisplayString(E(k.key,k.schema)),1)],10,gP))),128))]),_.value!=null?(n.openBlock(),n.createElementBlock("div",_P,[_.value._label?(n.openBlock(),n.createElementBlock("h2",bP,n.toDisplayString(_.value._label),1)):n.createCommentVNode("",!0),Object.keys(v.value).length>0?(n.openBlock(),n.createElementBlock("div",wP,[n.createElementVNode("ul",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(v.value,(k,C)=>(n.openBlock(),n.createElementBlock("li",{key:C},n.toDisplayString(k),1))),128))])])):n.createCommentVNode("",!0),n.renderSlot(M.$slots,`step:${s.value}`,{schema:_.value,formData:i.value,stepKey:s.value,errors:v.value},()=>[n.createVNode(bd,{modelValue:i.value,"onUpdate:modelValue":V[0]||(V[0]=k=>i.value=k),schema:_.value,components:M.components,errors:v.value},n.createSlots({_:2},[n.renderList(M.$slots,(k,C)=>({name:C,fn:n.withCtx(B=>[n.renderSlot(M.$slots,C,n.normalizeProps(n.guardReactiveProps(B)),void 0,!0)])}))]),1032,["modelValue","schema","components","errors"])],!0)])):n.createCommentVNode("",!0),n.createElementVNode("div",$P,[n.createElementVNode("button",{type:"button",class:"btn-secondary",disabled:p.value,onClick:N},n.toDisplayString(n.unref(l)("multiStep.previous")),9,kP),n.createElementVNode("div",EP,n.toDisplayString(n.unref(l)("multiStep.step",{current:m.value+1,total:h.value.length})),1),n.createElementVNode("button",{type:"button",class:"btn-primary",onClick:x},n.toDisplayString(g.value?n.unref(l)("multiStep.complete"):n.unref(l)("multiStep.next")),1)])]))}}),SP=Me(CP,[["__scopeId","data-v-9f81a0df"]]);let $a={};function TP(e){$a={...$a,...e}}function NP(){return typeof navigator>"u"?"en-US":navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language}function DP(){var e;return((e=$a.locale)==null?void 0:e.call($a))??NP()}function Dn(e,t){const o=new Date(e);return t.days&&o.setDate(o.getDate()+t.days),t.hours&&o.setHours(o.getHours()+t.hours),t.minutes&&o.setMinutes(o.getMinutes()+t.minutes),t.seconds&&o.setSeconds(o.getSeconds()+t.seconds),t.weeks&&o.setDate(o.getDate()+t.weeks*7),t.months&&o.setMonth(o.getMonth()+t.months),t.years&&o.setFullYear(o.getFullYear()+t.years),o}const xP={seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:0};function c0(e,t,o="days"){const r=new Date(e),a=new Date(t);return o==="months"?(a.getFullYear()-r.getFullYear())*12+(a.getMonth()-r.getMonth()):Math.floor((a.getTime()-r.getTime())/xP[o])}class At{constructor(t){qe(this,"_date");this._date=new Date(t)}add(t,o="days"){return new At(Dn(this._date,{[o]:t}))}subtract(t,o="days"){return new At(Dn(this._date,{[o]:-t}))}diff(t,o="days"){return c0(this._date,t,o)}isBefore(t){return this._date.getTime()<new Date(t).getTime()}isAfter(t){return this._date.getTime()>new Date(t).getTime()}isSameDay(t){const o=new Date(t);return this._date.getFullYear()===o.getFullYear()&&this._date.getMonth()===o.getMonth()&&this._date.getDate()===o.getDate()}toDate(){return new Date(this._date)}valueOf(){return this._date.getTime()}toString(){return this._date.toISOString()}}function BP(e){return new At(e!==void 0?e:new Date)}Object.assign(BP,{get now(){return new At(new Date)},get today(){const e=new Date;return e.setHours(0,0,0,0),new At(e)},get tomorrow(){return new At(Dn(new Date,{days:1}))},get yesterday(){return new At(Dn(new Date,{days:-1}))},get nextWeek(){return new At(Dn(new Date,{weeks:1}))},get lastWeek(){return new At(Dn(new Date,{weeks:-1}))},get firstOfMonth(){const e=new Date;return new At(new Date(e.getFullYear(),e.getMonth(),1))},get lastOfMonth(){const e=new Date;return new At(new Date(e.getFullYear(),e.getMonth()+1,0))},get firstOfWeek(){const e=new Date;return new At(new Date(e.setDate(e.getDate()-e.getDay())))},get lastOfWeek(){const e=new Date;return new At(new Date(e.setDate(e.getDate()+(6-e.getDay()))))},get firstOfNextMonth(){const e=new Date;return new At(new Date(e.getFullYear(),e.getMonth()+1,1))},get lastOfNextMonth(){const e=new Date;return new At(new Date(e.getFullYear(),e.getMonth()+2,0))},get firstOfNextYear(){return new At(new Date(new Date().getFullYear()+1,0,1))},in:(e,t="days")=>new At(Dn(new Date,{[t]:e})),ago:(e,t="days")=>new At(Dn(new Date,{[t]:-e})),diff:(e,t,o="days")=>c0(e,t,o),isBefore:(e,t)=>new Date(e).getTime()<new Date(t).getTime(),isAfter:(e,t)=>new Date(e).getTime()>new Date(t).getTime(),isSameDay:(e,t)=>{const o=new Date(e),r=new Date(t);return o.getFullYear()===r.getFullYear()&&o.getMonth()===r.getMonth()&&o.getDate()===r.getDate()}});function u0(e,t){if(t.timeZone==="UTC"){const o=new Date(e.getTime());return o.setMinutes(o.getMinutes()+e.getTimezoneOffset()),o}try{const r=new Intl.DateTimeFormat("en-US",{...t,month:"numeric"}).formatToParts(e),a={};for(const l of r)l.type!=="literal"&&l.type!=="timeZoneName"&&(a[l.type]=Number.parseInt(l.value,10));return new Date(a.year,(a.month||1)-1,a.day,a.hour||0,a.minute||0,a.second||0)}catch(o){return console.warn(`Error handling timezone ${t.timeZone}:`,o),e}}function kd(e,t,o){const r=o!=null&&o.timeZone?u0(e,o):e,a=r.getFullYear().toString();return{AmPm:r.toLocaleString(t,{hour:"numeric",hour12:!0,minute:"numeric"}).split(" ")[1],DD:String(r.getDate()).padStart(2,"0"),DDD:r.toLocaleString(t,{weekday:"short"}),DDDD:r.toLocaleString(t,{weekday:"long"}),HH:String(r.getHours()).padStart(2,"0"),mm:String(r.getMinutes()).padStart(2,"0"),MM:String(r.getMonth()+1).padStart(2,"0"),MMM:r.toLocaleString(t,{month:"short"}),MMMM:r.toLocaleString(t,{month:"long"}),ss:String(r.getSeconds()).padStart(2,"0"),sss:String(r.getMilliseconds()).padStart(3,"0"),YY:a.slice(-2),YYYY:a}}const AP=kd(new Date,"en-US"),MP=Object.keys(AP).sort((e,t)=>t.length-e.length),VP=new RegExp(MP.join("|"),"g");function St(e,t){if(!e)return"";let o,r,a,l={};if(typeof t=="string"?o=t:t&&typeof t=="object"&&(o=t.format,r=t.locale,a=t.tz,l=t),o==="ISO"||o==="ISO8601"){const i=new Date(e);return Number.isNaN(i.getTime())?"":i.toISOString()}o=o||"DD.MM.YY",r=r||DP();try{const i=new Date(e);if(Number.isNaN(i.getTime()))return console.warn("Invalid date provided to formatDate:",e),"";const s={day:"numeric",hour:"2-digit",hour12:l.hour12===void 0?!0:l.hour12,minute:"2-digit",month:"long",second:"2-digit",timeZone:a,weekday:"long",year:"numeric"},c=kd(i,r,s),u=new Intl.DateTimeFormat(r,s).formatToParts(i),d={};for(const f of u)f.type!=="literal"&&(d[f.type]=f.value);return d.month&&(c.MMM=d.month.substring(0,3),c.MMMM=d.month),d.weekday&&(c.DDD=d.weekday.substring(0,3),c.DDDD=d.weekday),d.dayPeriod&&(c.AmPm=d.dayPeriod),o.replace(VP,f=>c[f])}catch(i){return console.warn(`Error formatting date: ${e} with format: ${o}`,i),""}}const LP=St;function Cn(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function eo(e){return Cn(e).getComputedStyle(e)}const sm=Math.min,ka=Math.max,vi=Math.round;function d0(e){const t=eo(e);let o=parseFloat(t.width),r=parseFloat(t.height);const a=e.offsetWidth,l=e.offsetHeight,i=vi(o)!==a||vi(r)!==l;return i&&(o=a,r=l),{width:o,height:r,fallback:i}}function Io(e){return p0(e)?(e.nodeName||"").toLowerCase():""}let Tl;function f0(){if(Tl)return Tl;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Tl=e.brands.map(t=>t.brand+"/"+t.version).join(" "),Tl):navigator.userAgent}function to(e){return e instanceof Cn(e).HTMLElement}function Mo(e){return e instanceof Cn(e).Element}function p0(e){return e instanceof Cn(e).Node}function cm(e){return typeof ShadowRoot>"u"?!1:e instanceof Cn(e).ShadowRoot||e instanceof ShadowRoot}function is(e){const{overflow:t,overflowX:o,overflowY:r,display:a}=eo(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&!["inline","contents"].includes(a)}function PP(e){return["table","td","th"].includes(Io(e))}function fu(e){const t=/firefox/i.test(f0()),o=eo(e),r=o.backdropFilter||o.WebkitBackdropFilter;return o.transform!=="none"||o.perspective!=="none"||!!r&&r!=="none"||t&&o.willChange==="filter"||t&&!!o.filter&&o.filter!=="none"||["transform","perspective"].some(a=>o.willChange.includes(a))||["paint","layout","strict","content"].some(a=>{const l=o.contain;return l!=null&&l.includes(a)})}function m0(){return!/^((?!chrome|android).)*safari/i.test(f0())}function Ed(e){return["html","body","#document"].includes(Io(e))}function h0(e){return Mo(e)?e:e.contextElement}const g0={x:1,y:1};function Ar(e){const t=h0(e);if(!to(t))return g0;const o=t.getBoundingClientRect(),{width:r,height:a,fallback:l}=d0(t);let i=(l?vi(o.width):o.width)/r,s=(l?vi(o.height):o.height)/a;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}function ja(e,t,o,r){var a,l;t===void 0&&(t=!1),o===void 0&&(o=!1);const i=e.getBoundingClientRect(),s=h0(e);let c=g0;t&&(r?Mo(r)&&(c=Ar(r)):c=Ar(e));const u=s?Cn(s):window,d=!m0()&&o;let f=(i.left+(d&&((a=u.visualViewport)==null?void 0:a.offsetLeft)||0))/c.x,h=(i.top+(d&&((l=u.visualViewport)==null?void 0:l.offsetTop)||0))/c.y,m=i.width/c.x,p=i.height/c.y;if(s){const g=Cn(s),_=r&&Mo(r)?Cn(r):r;let v=g.frameElement;for(;v&&r&&_!==g;){const y=Ar(v),b=v.getBoundingClientRect(),$=getComputedStyle(v);b.x+=(v.clientLeft+parseFloat($.paddingLeft))*y.x,b.y+=(v.clientTop+parseFloat($.paddingTop))*y.y,f*=y.x,h*=y.y,m*=y.x,p*=y.y,f+=b.x,h+=b.y,v=Cn(v).frameElement}}return{width:m,height:p,top:h,right:f+m,bottom:h+p,left:f,x:f,y:h}}function Vo(e){return((p0(e)?e.ownerDocument:e.document)||window.document).documentElement}function ss(e){return Mo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function v0(e){return ja(Vo(e)).left+ss(e).scrollLeft}function Wa(e){if(Io(e)==="html")return e;const t=e.assignedSlot||e.parentNode||cm(e)&&e.host||Vo(e);return cm(t)?t.host:t}function y0(e){const t=Wa(e);return Ed(t)?t.ownerDocument.body:to(t)&&is(t)?t:y0(t)}function yi(e,t){var o;t===void 0&&(t=[]);const r=y0(e),a=r===((o=e.ownerDocument)==null?void 0:o.body),l=Cn(r);return a?t.concat(l,l.visualViewport||[],is(r)?r:[]):t.concat(r,yi(r))}function um(e,t,o){return t==="viewport"?Ko(function(r,a){const l=Cn(r),i=Vo(r),s=l.visualViewport;let c=i.clientWidth,u=i.clientHeight,d=0,f=0;if(s){c=s.width,u=s.height;const h=m0();(h||!h&&a==="fixed")&&(d=s.offsetLeft,f=s.offsetTop)}return{width:c,height:u,x:d,y:f}}(e,o)):Mo(t)?Ko(function(r,a){const l=ja(r,!0,a==="fixed"),i=l.top+r.clientTop,s=l.left+r.clientLeft,c=to(r)?Ar(r):{x:1,y:1};return{width:r.clientWidth*c.x,height:r.clientHeight*c.y,x:s*c.x,y:i*c.y}}(t,o)):Ko(function(r){const a=Vo(r),l=ss(r),i=r.ownerDocument.body,s=ka(a.scrollWidth,a.clientWidth,i.scrollWidth,i.clientWidth),c=ka(a.scrollHeight,a.clientHeight,i.scrollHeight,i.clientHeight);let u=-l.scrollLeft+v0(r);const d=-l.scrollTop;return eo(i).direction==="rtl"&&(u+=ka(a.clientWidth,i.clientWidth)-s),{width:s,height:c,x:u,y:d}}(Vo(e)))}function dm(e){return to(e)&&eo(e).position!=="fixed"?e.offsetParent:null}function fm(e){const t=Cn(e);let o=dm(e);for(;o&&PP(o)&&eo(o).position==="static";)o=dm(o);return o&&(Io(o)==="html"||Io(o)==="body"&&eo(o).position==="static"&&!fu(o))?t:o||function(r){let a=Wa(r);for(;to(a)&&!Ed(a);){if(fu(a))return a;a=Wa(a)}return null}(e)||t}function IP(e,t,o){const r=to(t),a=Vo(t),l=ja(e,!0,o==="fixed",t);let i={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&o!=="fixed")if((Io(t)!=="body"||is(a))&&(i=ss(t)),to(t)){const c=ja(t,!0);s.x=c.x+t.clientLeft,s.y=c.y+t.clientTop}else a&&(s.x=v0(a));return{x:l.left+i.scrollLeft-s.x,y:l.top+i.scrollTop-s.y,width:l.width,height:l.height}}const OP={getClippingRect:function(e){let{element:t,boundary:o,rootBoundary:r,strategy:a}=e;const l=o==="clippingAncestors"?function(u,d){const f=d.get(u);if(f)return f;let h=yi(u).filter(_=>Mo(_)&&Io(_)!=="body"),m=null;const p=eo(u).position==="fixed";let g=p?Wa(u):u;for(;Mo(g)&&!Ed(g);){const _=eo(g),v=fu(g);(p?v||m:v||_.position!=="static"||!m||!["absolute","fixed"].includes(m.position))?m=_:h=h.filter(y=>y!==g),g=Wa(g)}return d.set(u,h),h}(t,this._c):[].concat(o),i=[...l,r],s=i[0],c=i.reduce((u,d)=>{const f=um(t,d,a);return u.top=ka(f.top,u.top),u.right=sm(f.right,u.right),u.bottom=sm(f.bottom,u.bottom),u.left=ka(f.left,u.left),u},um(t,s,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:o,strategy:r}=e;const a=to(o),l=Vo(o);if(o===l)return t;let i={scrollLeft:0,scrollTop:0},s={x:1,y:1};const c={x:0,y:0};if((a||!a&&r!=="fixed")&&((Io(o)!=="body"||is(l))&&(i=ss(o)),to(o))){const u=ja(o);s=Ar(o),c.x=u.x+o.clientLeft,c.y=u.y+o.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-i.scrollLeft*s.x+c.x,y:t.y*s.y-i.scrollTop*s.y+c.y}},isElement:Mo,getDimensions:function(e){return to(e)?d0(e):e.getBoundingClientRect()},getOffsetParent:fm,getDocumentElement:Vo,getScale:Ar,async getElementRects(e){let{reference:t,floating:o,strategy:r}=e;const a=this.getOffsetParent||fm,l=this.getDimensions;return{reference:IP(t,await a(o),r),floating:{x:0,y:0,...await l(o)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>eo(e).direction==="rtl"},RP=(e,t,o)=>{const r=new Map,a={platform:OP,...o},l={...a.platform,_c:r};return sh(e,t,{...a,platform:l})};function _0(e,t){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(typeof t[o]=="object"&&e[o]?_0(e[o],t[o]):e[o]=t[o])}const Pn={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function qa(e,t){let o=Pn.themes[e]||{},r;do r=o[t],typeof r>"u"?o.$extend?o=Pn.themes[o.$extend]||{}:(o=null,r=Pn[t]):o=null;while(o);return r}function FP(e){const t=[e];let o=Pn.themes[e]||{};do o.$extend&&!o.$resetCss?(t.push(o.$extend),o=Pn.themes[o.$extend]||{}):o=null;while(o);return t.map(r=>`v-popper--theme-${r}`)}function pm(e){const t=[e];let o=Pn.themes[e]||{};do o.$extend?(t.push(o.$extend),o=Pn.themes[o.$extend]||{}):o=null;while(o);return t}let Fr=!1;if(typeof window<"u"){Fr=!1;try{const e=Object.defineProperty({},"passive",{get(){Fr=!0}});window.addEventListener("test",null,e)}catch{}}let b0=!1;typeof window<"u"&&typeof navigator<"u"&&(b0=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const w0=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),mm={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},hm={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function gm(e,t){const o=e.indexOf(t);o!==-1&&e.splice(o,1)}function lc(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Bn=[];let jo=null;const vm={};function ym(e){let t=vm[e];return t||(t=vm[e]=[]),t}let pu=function(){};typeof window<"u"&&(pu=window.Element);function Qe(e){return function(t){return qa(t.theme,e)}}const ic="__floating-vue__popper",$0=()=>n.defineComponent({name:"VPopper",provide(){return{[ic]:{parentPopper:this}}},inject:{[ic]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:Qe("disabled")},positioningDisabled:{type:Boolean,default:Qe("positioningDisabled")},placement:{type:String,default:Qe("placement"),validator:e=>w0.includes(e)},delay:{type:[String,Number,Object],default:Qe("delay")},distance:{type:[Number,String],default:Qe("distance")},skidding:{type:[Number,String],default:Qe("skidding")},triggers:{type:Array,default:Qe("triggers")},showTriggers:{type:[Array,Function],default:Qe("showTriggers")},hideTriggers:{type:[Array,Function],default:Qe("hideTriggers")},popperTriggers:{type:Array,default:Qe("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Qe("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Qe("popperHideTriggers")},container:{type:[String,Object,pu,Boolean],default:Qe("container")},boundary:{type:[String,pu],default:Qe("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:Qe("strategy")},autoHide:{type:[Boolean,Function],default:Qe("autoHide")},handleResize:{type:Boolean,default:Qe("handleResize")},instantMove:{type:Boolean,default:Qe("instantMove")},eagerMount:{type:Boolean,default:Qe("eagerMount")},popperClass:{type:[String,Array,Object],default:Qe("popperClass")},computeTransformOrigin:{type:Boolean,default:Qe("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Qe("autoMinSize")},autoSize:{type:[Boolean,String],default:Qe("autoSize")},autoMaxSize:{type:Boolean,default:Qe("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Qe("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Qe("preventOverflow")},overflowPadding:{type:[Number,String],default:Qe("overflowPadding")},arrowPadding:{type:[Number,String],default:Qe("arrowPadding")},arrowOverflow:{type:Boolean,default:Qe("arrowOverflow")},flip:{type:Boolean,default:Qe("flip")},shift:{type:Boolean,default:Qe("shift")},shiftCrossAxis:{type:Boolean,default:Qe("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Qe("noAutoFocus")},disposeTimeout:{type:Number,default:Qe("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[ic])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:o=!1}={}){var r,a;(r=this.parentPopper)!=null&&r.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(o||!this.disabled)&&(((a=this.parentPopper)==null?void 0:a.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var o;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((o=this.parentPopper)==null?void 0:o.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(dh({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(ch({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(fh({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(uh({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(ow({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:r,rects:a,middlewareData:l})=>{let i;const{centerOffset:s}=l.arrow;return r.startsWith("top")||r.startsWith("bottom")?i=Math.abs(s)>a.reference.width/2:i=Math.abs(s)>a.reference.height/2,{data:{overflow:i}}}}),this.autoMinSize||this.autoSize){const r=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:a,placement:l,middlewareData:i})=>{var s;if((s=i.autoSize)!=null&&s.skip)return{};let c,u;return l.startsWith("top")||l.startsWith("bottom")?c=a.reference.width:u=a.reference.height,this.$_innerNode.style[r==="min"?"minWidth":r==="max"?"maxWidth":"width"]=c!=null?`${c}px`:null,this.$_innerNode.style[r==="min"?"minHeight":r==="max"?"maxHeight":"height"]=u!=null?`${u}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(iw({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:r,availableHeight:a})=>{this.$_innerNode.style.maxWidth=r!=null?`${r}px`:null,this.$_innerNode.style.maxHeight=a!=null?`${a}px`:null}})));const o=await RP(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:o.x,y:o.y,placement:o.placement,strategy:o.strategy,arrow:{...o.middlewareData.arrow,...o.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),jo&&this.instantMove&&jo.instantMove&&jo!==this.parentPopper){jo.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(jo=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await lc(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...yi(this.$_referenceNode),...yi(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),o=this.$_popperNode.querySelector(".v-popper__wrapper"),r=o.parentNode.getBoundingClientRect(),a=t.x+t.width/2-(r.left+o.offsetLeft),l=t.y+t.height/2-(r.top+o.offsetTop);this.result.transformOrigin=`${a}px ${l}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let o=0;o<Bn.length;o++)t=Bn[o],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Bn.push(this),document.body.classList.add("v-popper--some-open");for(const t of pm(this.theme))ym(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await lc(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,gm(Bn,this),Bn.length===0&&document.body.classList.remove("v-popper--some-open");for(const o of pm(this.theme)){const r=ym(o);gm(r,this),r.length===0&&document.body.classList.remove(`v-popper--some-open--${o}`)}jo===this&&(jo=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await lc(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=o=>{this.isShown&&!this.$_hideInProgress||(o.usedByTooltip=!0,!this.$_preventShow&&this.show({event:o}))};this.$_registerTriggerListeners(this.$_targetNodes,mm,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],mm,this.popperTriggers,this.popperShowTriggers,e);const t=o=>{o.usedByTooltip||this.hide({event:o})};this.$_registerTriggerListeners(this.$_targetNodes,hm,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],hm,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,o){this.$_events.push({targetNodes:e,eventType:t,handler:o}),e.forEach(r=>r.addEventListener(t,o,Fr?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,o,r,a){let l=o;r!=null&&(l=typeof r=="function"?r(l):r),l.forEach(i=>{const s=t[i];s&&this.$_registerEventListeners(e,s,a)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(o=>{const{targetNodes:r,eventType:a,handler:l}=o;!e||e===a?r.forEach(i=>i.removeEventListener(a,l)):t.push(o)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const o of this.$_targetNodes){const r=o.getAttribute(e);r&&(o.removeAttribute(e),o.setAttribute(t,r))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const o in e){const r=e[o];r==null?t.removeAttribute(o):t.setAttribute(o,r)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Ea>=e.left&&Ea<=e.right&&Ca>=e.top&&Ca<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),o=Ea-So,r=Ca-To,a=t.left+t.width/2-So+(t.top+t.height/2)-To+t.width+t.height,l=So+o*a,i=To+r*a;return Nl(So,To,l,i,t.left,t.top,t.left,t.bottom)||Nl(So,To,l,i,t.left,t.top,t.right,t.top)||Nl(So,To,l,i,t.right,t.top,t.right,t.bottom)||Nl(So,To,l,i,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(b0){const e=Fr?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>_m(t,!0),e),document.addEventListener("touchend",t=>bm(t,!0),e)}else window.addEventListener("mousedown",e=>_m(e,!1),!0),window.addEventListener("click",e=>bm(e,!1),!0);window.addEventListener("resize",UP)}function _m(e,t){if(Pn.autoHideOnMousedown)k0(e,t);else for(let o=0;o<Bn.length;o++){const r=Bn[o];try{r.mouseDownContains=r.popperNode().contains(e.target)}catch{}}}function bm(e,t){Pn.autoHideOnMousedown||k0(e,t)}function k0(e,t){const o={};for(let r=Bn.length-1;r>=0;r--){const a=Bn[r];try{const l=a.containsGlobalTarget=a.mouseDownContains||a.popperNode().contains(e.target);a.pendingHide=!1,requestAnimationFrame(()=>{if(a.pendingHide=!1,!o[a.randomId]&&wm(a,l,e)){if(a.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&l){let s=a.parentPopper;for(;s;)o[s.randomId]=!0,s=s.parentPopper;return}let i=a.parentPopper;for(;i&&wm(i,i.containsGlobalTarget,e);)i.$_handleGlobalClose(e,t),i=i.parentPopper}})}catch{}}}function wm(e,t,o){return o.closeAllPopover||o.closePopover&&t||zP(e,o)&&!t}function zP(e,t){if(typeof e.autoHide=="function"){const o=e.autoHide(t);return e.lastAutoHide=o,o}return e.autoHide}function UP(){for(let e=0;e<Bn.length;e++)Bn[e].$_computePosition()}let So=0,To=0,Ea=0,Ca=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{So=Ea,To=Ca,Ea=e.clientX,Ca=e.clientY},Fr?{passive:!0}:void 0);function Nl(e,t,o,r,a,l,i,s){const c=((i-a)*(t-l)-(s-l)*(e-a))/((s-l)*(o-e)-(i-a)*(r-t)),u=((o-e)*(t-l)-(r-t)*(e-a))/((s-l)*(o-e)-(i-a)*(r-t));return c>=0&&c<=1&&u>=0&&u<=1}const HP={extends:$0()},cs=(e,t)=>{const o=e.__vccOpts||e;for(const[r,a]of t)o[r]=a;return o};function jP(e,t,o,r,a,l){return n.openBlock(),n.createElementBlock("div",{ref:"reference",class:n.normalizeClass(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[n.renderSlot(e.$slots,"default",n.normalizeProps(n.guardReactiveProps(e.slotData)))],2)}const WP=cs(HP,[["render",jP]]);function qP(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var o=e.indexOf("Trident/");if(o>0){var r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}var a=e.indexOf("Edge/");return a>0?parseInt(e.substring(a+5,e.indexOf(".",a)),10):-1}let Hl;function mu(){mu.init||(mu.init=!0,Hl=qP()!==-1)}var us={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){mu(),n.nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Hl&&this.$el.appendChild(e),e.data="about:blank",Hl||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Hl&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const GP=n.withScopeId("data-v-b329ee4c");n.pushScopeId("data-v-b329ee4c");const YP={class:"resize-observer",tabindex:"-1"};n.popScopeId();const XP=GP((e,t,o,r,a,l)=>(n.openBlock(),n.createBlock("div",YP)));us.render=XP;us.__scopeId="data-v-b329ee4c";us.__file="src/components/ResizeObserver.vue";const E0=(e="theme")=>({computed:{themeClass(){return FP(this[e])}}}),KP=n.defineComponent({name:"VPopperContent",components:{ResizeObserver:us},mixins:[E0()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),JP=["id","aria-hidden","tabindex","data-popper-placement"],ZP={ref:"inner",class:"v-popper__inner"},QP=n.createElementVNode("div",{class:"v-popper__arrow-outer"},null,-1),e7=n.createElementVNode("div",{class:"v-popper__arrow-inner"},null,-1),t7=[QP,e7];function n7(e,t,o,r,a,l){const i=n.resolveComponent("ResizeObserver");return n.openBlock(),n.createElementBlock("div",{id:e.popperId,ref:"popover",class:n.normalizeClass(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:n.normalizeStyle(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=n.withKeys(s=>e.autoHide&&e.$emit("hide"),["esc"]))},[n.createElementVNode("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=s=>e.autoHide&&e.$emit("hide"))}),n.createElementVNode("div",{class:"v-popper__wrapper",style:n.normalizeStyle(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[n.createElementVNode("div",ZP,[e.mounted?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("div",null,[n.renderSlot(e.$slots,"default")]),e.handleResize?(n.openBlock(),n.createBlock(i,{key:0,onNotify:t[1]||(t[1]=s=>e.$emit("resize",s))})):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)],512),n.createElementVNode("div",{ref:"arrow",class:"v-popper__arrow-container",style:n.normalizeStyle(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},t7,4)],4)],46,JP)}const C0=cs(KP,[["render",n7]]),S0={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let hu=function(){};typeof window<"u"&&(hu=window.Element);const o7=n.defineComponent({name:"VPopperWrapper",components:{Popper:WP,PopperContent:C0},mixins:[S0,E0("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,hu,Boolean],default:void 0},boundary:{type:[String,hu],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function r7(e,t,o,r,a,l){const i=n.resolveComponent("PopperContent"),s=n.resolveComponent("Popper");return n.openBlock(),n.createBlock(s,n.mergeProps({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=c=>e.$emit("update:shown",c)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:n.withCtx(({popperId:c,isShown:u,shouldMountContent:d,skipTransition:f,autoHide:h,show:m,hide:p,handleResize:g,onResize:_,classes:v,result:y})=>[n.renderSlot(e.$slots,"default",{shown:u,show:m,hide:p}),n.createVNode(i,{ref:"popperContent","popper-id":c,theme:e.finalTheme,shown:u,mounted:d,"skip-transition":f,"auto-hide":h,"handle-resize":g,classes:v,result:y,onHide:p,onResize:_},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"popper",{shown:u,hide:p})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Cd=cs(o7,[["render",r7]]),a7={...Cd,name:"VDropdown",vPopperTheme:"dropdown"},l7={...Cd,name:"VMenu",vPopperTheme:"menu"},i7={...Cd,name:"VTooltip",vPopperTheme:"tooltip"},s7=n.defineComponent({name:"VTooltipDirective",components:{Popper:$0(),PopperContent:C0},mixins:[S0],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>qa(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>qa(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,o=this.content(this);o.then?o.then(r=>this.onResult(t,r)):this.onResult(t,o)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),c7=["innerHTML"],u7=["textContent"];function d7(e,t,o,r,a,l){const i=n.resolveComponent("PopperContent"),s=n.resolveComponent("Popper");return n.openBlock(),n.createBlock(s,n.mergeProps({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:n.withCtx(({popperId:c,isShown:u,shouldMountContent:d,skipTransition:f,autoHide:h,hide:m,handleResize:p,onResize:g,classes:_,result:v})=>[n.createVNode(i,{ref:"popperContent",class:n.normalizeClass({"v-popper--tooltip-loading":e.loading}),"popper-id":c,theme:e.theme,shown:u,mounted:d,"skip-transition":f,"auto-hide":h,"handle-resize":p,classes:_,result:v,onHide:m,onResize:g},{default:n.withCtx(()=>[e.html?(n.openBlock(),n.createElementBlock("div",{key:0,innerHTML:e.finalContent},null,8,c7)):(n.openBlock(),n.createElementBlock("div",{key:1,textContent:n.toDisplayString(e.finalContent)},null,8,u7))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const f7=cs(s7,[["render",d7]]),T0="v-popper--has-tooltip";function p7(e,t){let o=e.placement;if(!o&&t)for(const r of w0)t[r]&&(o=r);return o||(o=qa(e.theme||"tooltip","placement")),o}function N0(e,t,o){let r;const a=typeof t;return a==="string"?r={content:t}:t&&a==="object"?r=t:r={content:!1},r.placement=p7(r,o),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}let sc,Ga,m7=0;function h7(){if(sc)return;Ga=n.ref([]),sc=n.createApp({name:"VTooltipDirectiveApp",setup(){return{directives:Ga}},render(){return this.directives.map(t=>n.h(f7,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),sc.mount(e)}function g7(e,t,o){h7();const r=n.ref(N0(e,t,o)),a=n.ref(!1),l={id:m7++,options:r,shown:a};return Ga.value.push(l),e.classList&&e.classList.add(T0),e.$_popper={options:r,item:l,show(){a.value=!0},hide(){a.value=!1}}}function D0(e){if(e.$_popper){const t=Ga.value.indexOf(e.$_popper.item);t!==-1&&Ga.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(T0)}function $m(e,{value:t,modifiers:o}){const r=N0(e,t,o);if(!r.content||qa(r.theme||"tooltip","disabled"))D0(e);else{let a;e.$_popper?(a=e.$_popper,a.options.value=r):a=g7(e,t,o),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?a.show():a.hide())}}const v7={beforeMount:$m,updated:$m,beforeUnmount(e){D0(e)}};function km(e){e.addEventListener("mousedown",_i),e.addEventListener("click",_i),e.addEventListener("touchstart",x0,Fr?{passive:!0}:!1)}function Em(e){e.removeEventListener("mousedown",_i),e.removeEventListener("click",_i),e.removeEventListener("touchstart",x0),e.removeEventListener("touchend",B0),e.removeEventListener("touchcancel",A0)}function _i(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function x0(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const o=e.changedTouches[0];t.$_vclosepopover_touchPoint=o,t.addEventListener("touchend",B0),t.addEventListener("touchcancel",A0)}}function B0(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const o=e.changedTouches[0],r=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(o.screenY-r.screenY)<20&&Math.abs(o.screenX-r.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function A0(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const y7={beforeMount(e,{value:t,modifiers:o}){e.$_closePopoverModifiers=o,(typeof t>"u"||t)&&km(e)},updated(e,{value:t,oldValue:o,modifiers:r}){e.$_closePopoverModifiers=r,t!==o&&(typeof t>"u"||t?km(e):Em(e))},beforeUnmount(e){Em(e)}};function _7(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,_0(Pn,t),e.directive("tooltip",v7),e.directive("close-popper",y7),e.component("VTooltip",i7),e.component("VDropdown",a7),e.component("VMenu",l7))}const b7={version:"5.2.2",install:_7,options:Pn},w7={key:0,class:"center"},$7={key:3},k7={class:"bgl-lightbox-item"},E7={key:2,class:"lightbox-pdf"},C7=["src","title"],S7={key:3,class:"lightbox-file"},T7={class:"file-info txt-white flex m_block align-items-start gap-025"},N7={class:"txt-start"},D7={class:"mx-0 light"},x7={class:"semi word-break-all"},B7={class:"mx-0"},A7={class:"semi"},M7=n.defineComponent({__name:"Lightbox",setup(e,{expose:t}){const{$t:o}=Tt(),r=n.ref(!1),a=n.ref([]),l=n.ref(0),i=n.computed(()=>a.value[l.value]),s=n.ref(1),c=n.computed(()=>s.value===1),u=n.computed(()=>({allowTouchMove:s.value===1,touchRatio:s.value===1?1:0,simulateTouch:s.value===1}));function d(p,g){r.value=!0,a.value=g||[p],l.value=a.value.findIndex(_=>{const v=p.src!==void 0&&p.src!==null&&p.src!==""&&_.src===p.src,y=p.pathKey!==void 0&&p.pathKey!==null&&p.pathKey!==""&&_.pathKey===p.pathKey;return v||y}),l.value===-1&&(l.value=0),s.value=1,document.addEventListener("keydown",m)}function f(){r.value=!1,document.removeEventListener("keydown",m)}function h(p){l.value=p,s.value=1}n.watch(()=>r.value,p=>{p?document.body.style.overflow="hidden":document.body.style.overflow=""}),n.watch(()=>l.value,()=>{s.value=1});function m(p){p.key==="Escape"&&f()}return t({open:d,close:f}),(p,g)=>(n.openBlock(),n.createBlock(n.Transition,{name:"fade"},{default:n.withCtx(()=>{var _,v,y,b,$,w,E,S,x;return[r.value?(n.openBlock(),n.createElementBlock("div",{key:0,class:"bgl-lightbox-overlay",onKeydown:n.withKeys(f,["esc"])},[n.createElementVNode("div",{class:"flex start w-100 space-between p-025 z-9",onClick:f},[n.createVNode(n.unref(ee),{flat:"",class:"color-white",icon:"close",onClick:f}),(_=i.value)!=null&&_.enableZoom&&((v=i.value)==null?void 0:v.type)==="image"?(n.openBlock(),n.createElementBlock("div",w7,[n.createVNode(n.unref(ee),{flat:"",class:"color-white",icon:"remove",disabled:s.value===1,onClick:g[0]||(g[0]=N=>s.value--)},null,8,["disabled"]),n.createVNode(n.unref(ee),{flat:"",class:"color-white",icon:"zoom_in",disabled:s.value===1,onClick:g[1]||(g[1]=N=>s.value=1)},null,8,["disabled"]),n.createVNode(n.unref(ee),{flat:"",class:"color-white",icon:"add",disabled:s.value===3,onClick:g[2]||(g[2]=N=>s.value++)},null,8,["disabled"])])):n.createCommentVNode("",!0),(y=i.value)!=null&&y.openFile&&((b=i.value)!=null&&b.src)?(n.openBlock(),n.createBlock(n.unref(ee),{key:1,class:"color-white",round:"",thin:"",flat:"",iconEnd:"arrow_outward",value:"$t:lightbox.openFile",href:($=i.value)==null?void 0:$.src,target:"_blank"},null,8,["href"])):n.createCommentVNode("",!0),(w=i.value)!=null&&w.download&&((E=i.value)!=null&&E.src)?(n.openBlock(),n.createBlock(n.unref(ee),{key:2,class:"color-white",round:"",thin:"",flat:"",icon:"download",value:"Download File",onClick:g[3]||(g[3]=N=>{var M;return n.unref(Vu)((M=i.value)==null?void 0:M.src)})})):n.createCommentVNode("",!0),!((S=i.value)!=null&&S.openFile)&&!((x=i.value)!=null&&x.download)?(n.openBlock(),n.createElementBlock("div",$7)):n.createCommentVNode("",!0)]),a.value&&a.value.length>0?(n.openBlock(),n.createBlock(n.unref(gv),{key:0,index:l.value,"onUpdate:index":g[6]||(g[6]=N=>l.value=N),items:a.value,"initial-slide":l.value,class:n.normalizeClass(["bgl-lightbox-swiper",{zoomed:s.value>1}]),navigation:a.value.length>1,"grab-cursor":c.value,keyboard:!0,loop:!1,speed:400,"slides-per-view":1,"space-between":0,effect:"slide","advanced-options":u.value,onClick:g[7]||(g[7]=n.withModifiers(()=>{},["stop"]))},{default:n.withCtx(({item:N})=>[n.createElementVNode("div",k7,[N.type==="image"?(n.openBlock(),n.createBlock(n.unref(yv),{key:0,zoom:s.value,"onUpdate:zoom":g[4]||(g[4]=M=>s.value=M),disabled:!(N!=null&&N.enableZoom),"mouse-wheel-to-zoom":!1,"double-click-to-zoom":!0,"max-scale":5,"min-scale":1,"aspect-ratio":0,"limit-translation":!0,onClick:g[5]||(g[5]=n.withModifiers(()=>{},["stop"]))},{default:n.withCtx(()=>[n.createVNode(n.unref(Mr),{draggable:!1,src:N==null?void 0:N.src,alt:"Preview",class:"lightbox-image"},null,8,["src"])]),_:2},1032,["zoom","disabled"])):(N==null?void 0:N.type)==="video"&&(N!=null&&N.src)?(n.openBlock(),n.createBlock(n.unref($u),{key:1,src:N==null?void 0:N.src,autoplay:"",controls:"",class:"lightbox-video"},null,8,["src"])):(N==null?void 0:N.type)==="pdf"&&(N!=null&&N.src)?(n.openBlock(),n.createElementBlock("div",E7,[n.createElementVNode("embed",{src:n.unref(Mu)(N==null?void 0:N.src),type:"application/pdf",width:"100%",height:"1080",title:N==null?void 0:N.name},null,8,C7)])):(n.openBlock(),n.createElementBlock("div",S7,[n.createElementVNode("div",T7,[n.createVNode(n.unref(Te),{class:"m-0 m_none",icon:"draft",size:10,weight:"12"}),n.createVNode(n.unref(Te),{class:"m-0 none m_block m_-mb-1",icon:"draft",size:4,weight:"2"}),n.createElementVNode("div",N7,[n.createElementVNode("p",D7,[g[9]||(g[9]=n.createTextVNode(" File: ")),n.createElementVNode("span",x7,n.toDisplayString(N==null?void 0:N.name),1)]),n.createElementVNode("p",B7,[g[10]||(g[10]=n.createTextVNode(" Type: ")),n.createElementVNode("span",A7,n.toDisplayString(N==null?void 0:N.type),1)]),n.createVNode(n.unref(ee),{href:N==null?void 0:N.src,target:"_blank",round:"",thin:"",class:"mt-1",value:"Open file"},null,8,["href"])])])]))])]),"prev-button":n.withCtx(({prev:N})=>[n.createVNode(n.unref(ee),{icon:"arrow_back",color:"black",onClick:N},null,8,["onClick"])]),"next-button":n.withCtx(({next:N})=>[n.createVNode(n.unref(ee),{icon:"arrow_forward",color:"black",onClick:N},null,8,["onClick"])]),_:1},8,["index","items","initial-slide","class","navigation","grab-cursor","advanced-options"])):n.createCommentVNode("",!0),a.value&&a.value.length>1?(n.openBlock(),n.createElementBlock("div",{key:1,class:"lightbox-thumbnails",onClick:g[8]||(g[8]=n.withModifiers(()=>{},["stop"]))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(a.value,(N,M)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:M},[N.type==="image"?(n.openBlock(),n.createBlock(n.unref(Mr),{key:0,class:n.normalizeClass(["thumbnail",{active:l.value===M}]),src:N.src,alt:"",onClick:n.withModifiers(V=>h(M),["stop"])},null,8,["src","class","onClick"])):(n.openBlock(),n.createBlock(n.unref(Te),{key:1,class:n.normalizeClass(["thumbnail thumbnail-icon",{active:l.value===M}]),icon:"description",onClick:n.withModifiers(V=>h(M),["stop"])},null,8,["class","onClick"]))],64))),128))])):n.createCommentVNode("",!0)],32)):n.createCommentVNode("",!0)]}),_:1}))}}),ha={};let hr=e=>{};const V7={mounted(e,t){const o=gu(t,e);Cm(o),hr=r=>{Sm(r,e,t)},e.addEventListener("click",hr)},updated(e,t){const o=gu(t,e);Cm(o),e.removeEventListener("click",hr),hr=r=>{Sm(r,e,t)},e.addEventListener("click",hr)},unmounted(e){e.removeEventListener("click",hr)},getSSRProps(){return{}}};function Cm(e){e.group&&(ha[e.group]||(ha[e.group]=[]),ha[e.group].findIndex(o=>o.src===e.src)===-1&&ha[e.group].push(e))}function Sm(e,t,o){e.stopPropagation();const r=gu(o,t),a=R7();if(!a||!a.open)return;const l=a.open,i=r&&r.group?ha[r.group]:void 0;l(r,i)}function gu(e,t){let{group:o,src:r,type:a,name:l,thumbnail:i,enableZoom:s,openFile:c,download:u,pathKey:d}=e.value||{};return r=Gn(r||d)||e.value||t.getAttribute("src")||"",a=a||O7(r),l=l||I7(r)||t.getAttribute("alt")||"",{src:r,type:a,name:l,thumbnail:i,group:o,enableZoom:s,openFile:c,download:u}}const L7=/youtube\.com|youtu\.be/,P7=/vimeo\.com/;function I7(e){return!e||typeof e!="string"?"":(e.split("/").pop()||"").replace(/\.[^/.]+$/,"")}function O7(e){var r;if(typeof e!="string"||!e)return"unknown";const t=(e.split(".").pop()||"").toLowerCase(),o=((r=e.split("?")[0].split(".").pop())==null?void 0:r.toLowerCase())||"";return Jl.test(t)||Jl.test(o)?"image":Oh.test(t)||L7.test(e)||P7.test(e)?"video":["pdf"].includes(t)?"pdf":t??"unknown"}let cc;function R7(){if(!(typeof document>"u")){if(!cc){const e=document.createElement("div");document.body.prepend(e),cc=n.createApp(M7).mount(e)}return cc}}const F7={install(e){e.directive("lightbox",V7)}},z7={beforeMount(e,t){e.clickOutsideEvent=o=>{e===o.target||e.contains(o.target)||t.value(o)},document.addEventListener("click",e.clickOutsideEvent)},unmounted(e){document.removeEventListener("click",e.clickOutsideEvent)}},M0=Symbol("modal");let bi=null;function V0(){const e=n.inject(M0,null);if(!e){if(bi)return bi;throw new Error("Modal API not provided. Make sure ModalPlugin is installed via app.use(ModalPlugin)")}return e}const L0={install:e=>{const o=n.reactive([]),r=u=>{u===void 0||u>=o.length-1?o.splice(o.length-1,1):o.splice(u,1)},a=()=>{o.splice(0,o.length)},l=u=>new Promise(d=>{const f=typeof u=="string"?{title:"",message:u}:u;o.push({modalOptions:n.reactive({...f,resolve:d}),modalType:"confirmModal",componentSlots:{}})}),i=(u,d,f={})=>{const h=n.reactive(d);"visible"in h||(h.visible=!0);const m={modalOptions:h,modalType:u,componentSlots:f};return o.push(m),m},s={showModal:(u,d)=>i("modal",u,d),showModalForm:(u,d)=>i("modalForm",u,d),confirmModal:u=>l(u),hideModal:r,hideAllModals:a};bi||(bi=s),e.provide(M0,s);const c=n.defineComponent({name:"ModalContainer",setup(){return{modalStack:o,handleEscape:d=>{d.key==="Escape"&&o.length>0&&o[o.length-1].modalOptions.dismissable!==!1&&r()}}},mounted(){document.addEventListener("keydown",this.handleEscape)},unmounted(){document.removeEventListener("keydown",this.handleEscape)},render(){return this.modalStack.map((u,d)=>{const f=1e3+d*10;if(!u||!u.modalOptions)return console.error("[BageLink Modal] Invalid modal in stack:",u),null;const h={...u.modalOptions,visible:!0,zIndex:f,"onUpdate:visible":()=>{r(d)}};switch(u.modalType){case"modalForm":return u.modalOptions.schema?n.h(Jg,h,u.componentSlots):(console.error("[BageLink Modal] ModalForm requires a schema",u.modalOptions),null);case"confirmModal":return n.h(Kg,h,{});default:return n.h(mn,h,u.componentSlots)}})}});if(e.component("ModalContainer",c),typeof document<"u"&&typeof window<"u"){const u=()=>{if(!document.getElementById("bagelink-modal-root")){const f=document.createElement("div");f.id="bagelink-modal-root",document.body.appendChild(f);const h=n.createApp(c);h._context=e._context,h.mount(f)}};document.body&&u(),e.mixin({mounted(){this.$root===this&&u()}})}}};var U7=Object.defineProperty,Tm=Object.getOwnPropertySymbols,H7=Object.prototype.hasOwnProperty,j7=Object.prototype.propertyIsEnumerable,Nm=(e,t,o)=>t in e?U7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,P0=(e,t)=>{for(var o in t||(t={}))H7.call(t,o)&&Nm(e,o,t[o]);if(Tm)for(var o of Tm(t))j7.call(t,o)&&Nm(e,o,t[o]);return e},ds=e=>typeof e=="function",fs=e=>typeof e=="string",I0=e=>fs(e)&&e.trim().length>0,W7=e=>typeof e=="number",Xo=e=>typeof e>"u",Ya=e=>typeof e=="object"&&e!==null,q7=e=>no(e,"tag")&&I0(e.tag),O0=e=>window.TouchEvent&&e instanceof TouchEvent,R0=e=>no(e,"component")&&F0(e.component),G7=e=>ds(e)||Ya(e),F0=e=>!Xo(e)&&(fs(e)||G7(e)||R0(e)),Dm=e=>Ya(e)&&["height","width","right","left","top","bottom"].every(t=>W7(e[t])),no=(e,t)=>(Ya(e)||ds(e))&&t in e,Y7=(e=>()=>e++)(0);function uc(e){return O0(e)?e.targetTouches[0].clientX:e.clientX}function xm(e){return O0(e)?e.targetTouches[0].clientY:e.clientY}var X7=e=>{Xo(e.remove)?e.parentNode&&e.parentNode.removeChild(e):e.remove()},cl=e=>R0(e)?cl(e.component):q7(e)?n.defineComponent({render(){return e}}):typeof e=="string"?e:n.toRaw(n.unref(e)),K7=e=>{if(typeof e=="string")return e;const t=no(e,"props")&&Ya(e.props)?e.props:{},o=no(e,"listeners")&&Ya(e.listeners)?e.listeners:{};return{component:cl(e),props:t,listeners:o}},J7=()=>typeof window<"u",ps=class{constructor(){this.allHandlers={}}getHandlers(e){return this.allHandlers[e]||[]}on(e,t){const o=this.getHandlers(e);o.push(t),this.allHandlers[e]=o}off(e,t){const o=this.getHandlers(e);o.splice(o.indexOf(t)>>>0,1)}emit(e,t){this.getHandlers(e).forEach(r=>r(t))}},Z7=e=>["on","off","emit"].every(t=>no(e,t)&&ds(e[t])),Zt;(function(e){e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.INFO="info",e.DEFAULT="default"})(Zt||(Zt={}));var Xa;(function(e){e.TOP_LEFT="top-left",e.TOP_CENTER="top-center",e.TOP_RIGHT="top-right",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_CENTER="bottom-center",e.BOTTOM_RIGHT="bottom-right"})(Xa||(Xa={}));var hn;(function(e){e.ADD="add",e.DISMISS="dismiss",e.UPDATE="update",e.CLEAR="clear",e.UPDATE_DEFAULTS="update_defaults"})(hn||(hn={}));var Vn="Vue-Toastification",xn={type:{type:String,default:Zt.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},z0={type:xn.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},jl={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:xn.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},vu={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},U0={transition:{type:[Object,String],default:`${Vn}__bounce`}},Q7={position:{type:String,default:Xa.TOP_RIGHT},draggable:xn.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:xn.trueBoolean,pauseOnHover:xn.trueBoolean,closeOnClick:xn.trueBoolean,timeout:vu.timeout,hideProgressBar:vu.hideProgressBar,toastClassName:xn.classNames,bodyClassName:xn.classNames,icon:z0.customIcon,closeButton:jl.component,closeButtonClassName:jl.classNames,showCloseButtonOnHover:jl.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new ps}},eI={id:{type:[String,Number],required:!0,default:0},type:xn.type,content:{type:[String,Object,Function],required:!0,default:""},onClick:{type:Function,default:void 0},onClose:{type:Function,default:void 0}},tI={container:{type:[Object,Function],default:()=>document.body},newestOnTop:xn.trueBoolean,maxToasts:{type:Number,default:20},transition:U0.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:e=>e},filterToasts:{type:Function,default:e=>e},containerClassName:xn.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},_o={CORE_TOAST:Q7,TOAST:eI,CONTAINER:tI,PROGRESS_BAR:vu,ICON:z0,TRANSITION:U0,CLOSE_BUTTON:jl},H0=n.defineComponent({name:"VtProgressBar",props:_o.PROGRESS_BAR,data(){return{hasClass:!0}},computed:{style(){return{animationDuration:`${this.timeout}ms`,animationPlayState:this.isRunning?"running":"paused",opacity:this.hideProgressBar?0:1}},cpClass(){return this.hasClass?`${Vn}__progress-bar`:""}},watch:{timeout(){this.hasClass=!1,this.$nextTick(()=>this.hasClass=!0)}},mounted(){this.$el.addEventListener("animationend",this.animationEnded)},beforeUnmount(){this.$el.removeEventListener("animationend",this.animationEnded)},methods:{animationEnded(){this.$emit("close-toast")}}});function nI(e,t){return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style),class:n.normalizeClass(e.cpClass)},null,6)}H0.render=nI;var oI=H0,j0=n.defineComponent({name:"VtCloseButton",props:_o.CLOSE_BUTTON,computed:{buttonComponent(){return this.component!==!1?cl(this.component):"button"},classes(){const e=[`${Vn}__close-button`];return this.showOnHover&&e.push("show-on-hover"),e.concat(this.classNames)}}}),rI=n.createTextVNode(" × ");function aI(e,t){return n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.buttonComponent),n.mergeProps({"aria-label":e.ariaLabel,class:e.classes},e.$attrs),{default:n.withCtx(()=>[rI]),_:1},16,["aria-label","class"])}j0.render=aI;var lI=j0,W0={},iI={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"check-circle",class:"svg-inline--fa fa-check-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},sI=n.createElementVNode("path",{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},null,-1),cI=[sI];function uI(e,t){return n.openBlock(),n.createElementBlock("svg",iI,cI)}W0.render=uI;var dI=W0,q0={},fI={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"info-circle",class:"svg-inline--fa fa-info-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},pI=n.createElementVNode("path",{fill:"currentColor",d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},null,-1),mI=[pI];function hI(e,t){return n.openBlock(),n.createElementBlock("svg",fI,mI)}q0.render=hI;var Bm=q0,G0={},gI={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-circle",class:"svg-inline--fa fa-exclamation-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},vI=n.createElementVNode("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),yI=[vI];function _I(e,t){return n.openBlock(),n.createElementBlock("svg",gI,yI)}G0.render=_I;var bI=G0,Y0={},wI={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-triangle",class:"svg-inline--fa fa-exclamation-triangle fa-w-18",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},$I=n.createElementVNode("path",{fill:"currentColor",d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),kI=[$I];function EI(e,t){return n.openBlock(),n.createElementBlock("svg",wI,kI)}Y0.render=EI;var CI=Y0,X0=n.defineComponent({name:"VtIcon",props:_o.ICON,computed:{customIconChildren(){return no(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return fs(this.customIcon)?this.trimValue(this.customIcon):no(this.customIcon,"iconClass")?this.trimValue(this.customIcon.iconClass):""},customIconTag(){return no(this.customIcon,"iconTag")?this.trimValue(this.customIcon.iconTag,"i"):"i"},hasCustomIcon(){return this.customIconClass.length>0},component(){return this.hasCustomIcon?this.customIconTag:F0(this.customIcon)?cl(this.customIcon):this.iconTypeComponent},iconTypeComponent(){return{[Zt.DEFAULT]:Bm,[Zt.INFO]:Bm,[Zt.SUCCESS]:dI,[Zt.ERROR]:CI,[Zt.WARNING]:bI}[this.type]},iconClasses(){const e=[`${Vn}__icon`];return this.hasCustomIcon?e.concat(this.customIconClass):e}},methods:{trimValue(e,t=""){return I0(e)?e.trim():t}}});function SI(e,t){return n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.component),{class:n.normalizeClass(e.iconClasses)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.customIconChildren),1)]),_:1},8,["class"])}X0.render=SI;var TI=X0,K0=n.defineComponent({name:"VtToast",components:{ProgressBar:oI,CloseButton:lI,Icon:TI},inheritAttrs:!1,props:Object.assign({},_o.CORE_TOAST,_o.TOAST),data(){return{isRunning:!0,disableTransitions:!1,beingDragged:!1,dragStart:0,dragPos:{x:0,y:0},dragRect:{}}},computed:{classes(){const e=[`${Vn}__toast`,`${Vn}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&e.push("disable-transition"),this.rtl&&e.push(`${Vn}__toast--rtl`),e},bodyClasses(){return[`${Vn}__toast-${fs(this.content)?"body":"component-body"}`].concat(this.bodyClassName)},draggableStyle(){return this.dragStart===this.dragPos.x?{}:this.beingDragged?{transform:`translateX(${this.dragDelta}px)`,opacity:1-Math.abs(this.dragDelta/this.removalDistance)}:{transition:"transform 0.2s, opacity 0.2s",transform:"translateX(0)",opacity:1}},dragDelta(){return this.beingDragged?this.dragPos.x-this.dragStart:0},removalDistance(){return Dm(this.dragRect)?(this.dragRect.right-this.dragRect.left)*this.draggablePercent:0}},mounted(){this.draggable&&this.draggableSetup(),this.pauseOnFocusLoss&&this.focusSetup()},beforeUnmount(){this.draggable&&this.draggableCleanup(),this.pauseOnFocusLoss&&this.focusCleanup()},methods:{hasProp:no,getVueComponentFromObj:cl,closeToast(){this.eventBus.emit(hn.DISMISS,this.id)},clickHandler(){this.onClick&&this.onClick(this.closeToast),this.closeOnClick&&(!this.beingDragged||this.dragStart===this.dragPos.x)&&this.closeToast()},timeoutHandler(){this.closeToast()},hoverPause(){this.pauseOnHover&&(this.isRunning=!1)},hoverPlay(){this.pauseOnHover&&(this.isRunning=!0)},focusPause(){this.isRunning=!1},focusPlay(){this.isRunning=!0},focusSetup(){addEventListener("blur",this.focusPause),addEventListener("focus",this.focusPlay)},focusCleanup(){removeEventListener("blur",this.focusPause),removeEventListener("focus",this.focusPlay)},draggableSetup(){const e=this.$el;e.addEventListener("touchstart",this.onDragStart,{passive:!0}),e.addEventListener("mousedown",this.onDragStart),addEventListener("touchmove",this.onDragMove,{passive:!1}),addEventListener("mousemove",this.onDragMove),addEventListener("touchend",this.onDragEnd),addEventListener("mouseup",this.onDragEnd)},draggableCleanup(){const e=this.$el;e.removeEventListener("touchstart",this.onDragStart),e.removeEventListener("mousedown",this.onDragStart),removeEventListener("touchmove",this.onDragMove),removeEventListener("mousemove",this.onDragMove),removeEventListener("touchend",this.onDragEnd),removeEventListener("mouseup",this.onDragEnd)},onDragStart(e){this.beingDragged=!0,this.dragPos={x:uc(e),y:xm(e)},this.dragStart=uc(e),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(e){this.beingDragged&&(e.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:uc(e),y:xm(e)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick(()=>this.closeToast())):setTimeout(()=>{this.beingDragged=!1,Dm(this.dragRect)&&this.pauseOnHover&&this.dragRect.bottom>=this.dragPos.y&&this.dragPos.y>=this.dragRect.top&&this.dragRect.left<=this.dragPos.x&&this.dragPos.x<=this.dragRect.right?this.isRunning=!1:this.isRunning=!0}))}}}),NI=["role"];function DI(e,t){const o=n.resolveComponent("Icon"),r=n.resolveComponent("CloseButton"),a=n.resolveComponent("ProgressBar");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.draggableStyle),onClick:t[0]||(t[0]=(...l)=>e.clickHandler&&e.clickHandler(...l)),onMouseenter:t[1]||(t[1]=(...l)=>e.hoverPause&&e.hoverPause(...l)),onMouseleave:t[2]||(t[2]=(...l)=>e.hoverPlay&&e.hoverPlay(...l))},[e.icon?(n.openBlock(),n.createBlock(o,{key:0,"custom-icon":e.icon,type:e.type},null,8,["custom-icon","type"])):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{role:e.accessibility.toastRole||"alert",class:n.normalizeClass(e.bodyClasses)},[typeof e.content=="string"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.content),1)],2112)):(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.getVueComponentFromObj(e.content)),n.mergeProps({key:1,"toast-id":e.id},e.hasProp(e.content,"props")?e.content.props:{},n.toHandlers(e.hasProp(e.content,"listeners")?e.content.listeners:{}),{onCloseToast:e.closeToast}),null,16,["toast-id","onCloseToast"]))],10,NI),e.closeButton?(n.openBlock(),n.createBlock(r,{key:1,component:e.closeButton,"class-names":e.closeButtonClassName,"show-on-hover":e.showCloseButtonOnHover,"aria-label":e.accessibility.closeButtonLabel,onClick:n.withModifiers(e.closeToast,["stop"])},null,8,["component","class-names","show-on-hover","aria-label","onClick"])):n.createCommentVNode("v-if",!0),e.timeout?(n.openBlock(),n.createBlock(a,{key:2,"is-running":e.isRunning,"hide-progress-bar":e.hideProgressBar,timeout:e.timeout,onCloseToast:e.timeoutHandler},null,8,["is-running","hide-progress-bar","timeout","onCloseToast"])):n.createCommentVNode("v-if",!0)],38)}K0.render=DI;var xI=K0,J0=n.defineComponent({name:"VtTransition",props:_o.TRANSITION,emits:["leave"],methods:{hasProp:no,leave(e){e instanceof HTMLElement&&(e.style.left=e.offsetLeft+"px",e.style.top=e.offsetTop+"px",e.style.width=getComputedStyle(e).width,e.style.position="absolute")}}});function BI(e,t){return n.openBlock(),n.createBlock(n.TransitionGroup,{tag:"div","enter-active-class":e.transition.enter?e.transition.enter:`${e.transition}-enter-active`,"move-class":e.transition.move?e.transition.move:`${e.transition}-move`,"leave-active-class":e.transition.leave?e.transition.leave:`${e.transition}-leave-active`,onLeave:e.leave},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},8,["enter-active-class","move-class","leave-active-class","onLeave"])}J0.render=BI;var AI=J0,Z0=n.defineComponent({name:"VueToastification",devtools:{hide:!0},components:{Toast:xI,VtTransition:AI},props:Object.assign({},_o.CORE_TOAST,_o.CONTAINER,_o.TRANSITION),data(){return{count:0,positions:Object.values(Xa),toasts:{},defaults:{}}},computed:{toastArray(){return Object.values(this.toasts)},filteredToasts(){return this.defaults.filterToasts(this.toastArray)}},beforeMount(){const e=this.eventBus;e.on(hn.ADD,this.addToast),e.on(hn.CLEAR,this.clearToasts),e.on(hn.DISMISS,this.dismissToast),e.on(hn.UPDATE,this.updateToast),e.on(hn.UPDATE_DEFAULTS,this.updateDefaults),this.defaults=this.$props},mounted(){this.setup(this.container)},methods:{async setup(e){ds(e)&&(e=await e()),X7(this.$el),e.appendChild(this.$el)},setToast(e){Xo(e.id)||(this.toasts[e.id]=e)},addToast(e){e.content=K7(e.content);const t=Object.assign({},this.defaults,e.type&&this.defaults.toastDefaults&&this.defaults.toastDefaults[e.type],e),o=this.defaults.filterBeforeCreate(t,this.toastArray);o&&this.setToast(o)},dismissToast(e){const t=this.toasts[e];!Xo(t)&&!Xo(t.onClose)&&t.onClose(),delete this.toasts[e]},clearToasts(){Object.keys(this.toasts).forEach(e=>{this.dismissToast(e)})},getPositionToasts(e){const t=this.filteredToasts.filter(o=>o.position===e).slice(0,this.defaults.maxToasts);return this.defaults.newestOnTop?t.reverse():t},updateDefaults(e){Xo(e.container)||this.setup(e.container),this.defaults=Object.assign({},this.defaults,e)},updateToast({id:e,options:t,create:o}){this.toasts[e]?(t.timeout&&t.timeout===this.toasts[e].timeout&&t.timeout++,this.setToast(Object.assign({},this.toasts[e],t))):o&&this.addToast(Object.assign({},{id:e},t))},getClasses(e){return[`${Vn}__container`,e].concat(this.defaults.containerClassName)}}});function MI(e,t){const o=n.resolveComponent("Toast"),r=n.resolveComponent("VtTransition");return n.openBlock(),n.createElementBlock("div",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.positions,a=>(n.openBlock(),n.createElementBlock("div",{key:a},[n.createVNode(r,{transition:e.defaults.transition,class:n.normalizeClass(e.getClasses(a))},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.getPositionToasts(a),l=>(n.openBlock(),n.createBlock(o,n.mergeProps({key:l.id},l),null,16))),128))]),_:2},1032,["transition","class"])]))),128))])}Z0.render=MI;var VI=Z0,Am=(e={},t=!0)=>{const o=e.eventBus=e.eventBus||new ps;t&&n.nextTick(()=>{const l=n.createApp(VI,P0({},e)),i=l.mount(document.createElement("div")),s=e.onMounted;if(Xo(s)||s(i,l),e.shareAppContext){const c=e.shareAppContext;c===!0?console.warn(`[${Vn}] App to share context with was not provided.`):(l._context.components=c._context.components,l._context.directives=c._context.directives,l._context.mixins=c._context.mixins,l._context.provides=c._context.provides,l.config.globalProperties=c.config.globalProperties)}});const r=(l,i)=>{const s=Object.assign({},{id:Y7(),type:Zt.DEFAULT},i,{content:l});return o.emit(hn.ADD,s),s.id};r.clear=()=>o.emit(hn.CLEAR,void 0),r.updateDefaults=l=>{o.emit(hn.UPDATE_DEFAULTS,l)},r.dismiss=l=>{o.emit(hn.DISMISS,l)};function a(l,{content:i,options:s},c=!1){const u=Object.assign({},s,{content:i});o.emit(hn.UPDATE,{id:l,options:u,create:c})}return r.update=a,r.success=(l,i)=>r(l,Object.assign({},i,{type:Zt.SUCCESS})),r.info=(l,i)=>r(l,Object.assign({},i,{type:Zt.INFO})),r.error=(l,i)=>r(l,Object.assign({},i,{type:Zt.ERROR})),r.warning=(l,i)=>r(l,Object.assign({},i,{type:Zt.WARNING})),r},LI=()=>{const e=()=>console.warn(`[${Vn}] This plugin does not support SSR!`);return new Proxy(e,{get(){return e}})};function Ka(e){return J7()?Z7(e)?Am({eventBus:e},!1):Am(e,!0):LI()}var ms=Symbol("VueToastification"),Sd=new ps,PI=(e,t)=>{(t==null?void 0:t.shareAppContext)===!0&&(t.shareAppContext=e);const o=Ka(P0({eventBus:Sd},t));e.provide(ms,o)},II=e=>{const t=Ka(e);n.getCurrentInstance()&&n.provide(ms,t)},Q0=e=>{if(e)return Ka(e);const t=n.getCurrentInstance()?n.inject(ms,void 0):void 0;return t||Ka(Sd)},ey=PI;const ty=Object.freeze(Object.defineProperty({__proto__:null,EventBus:ps,get POSITION(){return Xa},get TYPE(){return Zt},createToastInterface:Ka,default:ey,globalEventBus:Sd,provideToast:II,toastInjectionKey:ms,useToast:Q0},Symbol.toStringTag,{value:"Module"})),OI={key:0,class:"custom-toast__icon"},RI={class:"custom-toast__content"},sa=n.defineComponent({__name:"Toast",props:{message:{},type:{default:"info"},showIcon:{type:Boolean,default:!0},showCloseButton:{type:Boolean,default:!0},closeToast:{}},setup(e){return(t,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["custom-toast",`custom-toast--${t.type}`])},[t.showIcon?(n.openBlock(),n.createElementBlock("div",OI,[t.type==="success"?(n.openBlock(),n.createBlock(n.unref(Te),{key:0,icon:"check_circle"})):n.createCommentVNode("",!0),t.type==="error"?(n.openBlock(),n.createBlock(n.unref(Te),{key:1,icon:"dangerous"})):n.createCommentVNode("",!0),t.type==="warning"?(n.openBlock(),n.createBlock(n.unref(Te),{key:2,icon:"report"})):n.createCommentVNode("",!0),t.type==="info"?(n.openBlock(),n.createBlock(n.unref(Te),{key:3,icon:"info"})):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),n.createElementVNode("div",RI,n.toDisplayString(t.message),1),t.showCloseButton?(n.openBlock(),n.createElementBlock("button",{key:1,class:"custom-toast__close",onClick:o[0]||(o[0]=(...r)=>t.closeToast&&t.closeToast(...r))},[n.createVNode(n.unref(Te),{icon:"close"})])):n.createCommentVNode("",!0)],2))}}),FI=ey||ty,{POSITION:zI}=ty,gr=Q0,ny=Symbol("toast");let wi=null;function UI(){const e=n.inject(ny,null);if(!e){if(wi)return wi;throw new Error("Toast API not provided. Make sure ToastPlugin is installed via app.use(ToastPlugin)")}return e}function HI(){if(typeof document>"u")return;let e=document.getElementById("bgl-toast-container");e||(e=document.createElement("div"),e.setAttribute("popover","manual"),e.setAttribute("id","bgl-toast-container"),document.body.appendChild(e));try{e.hidePopover()}catch{}try{e.showPopover()}catch{}return e}const oy={install:(e,t={})=>{const o=HI(),r={position:zI.TOP_RIGHT,timeout:5e3,closeOnClick:!0,pauseOnFocusLoss:!0,pauseOnHover:!0,draggable:!0,draggablePercent:.6,showCloseButtonOnHover:!1,hideProgressBar:!0,closeButton:!1,icon:!1,rtl:!1,transition:"Vue-Toastification__fade",maxToasts:5,newestOnTop:!0,toastClassName:"custom-toast-wrapper",bodyClassName:"custom-toast-body",...o?{container:o}:{},...t};e.use(FI,r);function a(){const i=typeof document<"u"?document.getElementById("bgl-toast-container"):null;if(i){try{i.hidePopover()}catch{}try{i.showPopover()}catch{}}}const l={success:(i,s)=>(a(),gr()({component:sa,props:{message:i,type:"success"}},s)),error:(i,s)=>(a(),gr()({component:sa,props:{message:i,type:"error"}},s)),info:(i,s)=>(a(),gr()({component:sa,props:{message:i,type:"info"}},s)),warning:(i,s)=>(a(),gr()({component:sa,props:{message:i,type:"warning"}},s)),show:(i,s)=>(a(),gr()({component:sa,props:{message:i,type:"info"}},s)),clear:()=>{gr().clear()}};wi||(wi=l),e.provide(ny,l)}};var hs=class extends Event{constructor(t,{oldState:o="",newState:r="",...a}={}){super(t,a);qe(this,"oldState");qe(this,"newState");this.oldState=String(o||""),this.newState=String(r||"")}},Mm=new WeakMap;function ry(e,t,o){Mm.set(e,setTimeout(()=>{Mm.has(e)&&e.dispatchEvent(new hs("toggle",{cancelable:!1,oldState:t,newState:o}))},0))}var Td=globalThis.ShadowRoot||function(){},jI=globalThis.HTMLDialogElement||function(){},Wl=new WeakMap,vo=new WeakMap,En=new WeakMap,zr=new WeakMap;function $i(e){return zr.get(e)||"hidden"}var ki=new WeakMap;function Ja(e){return[...e].pop()}function WI(e){const t=e.popoverTargetElement;if(!(t instanceof HTMLElement))return;const o=$i(t);e.popoverTargetAction==="show"&&o==="showing"||e.popoverTargetAction==="hide"&&o==="hidden"||(o==="showing"?Hr(t,!0,!0):Qo(t,!1)&&(ki.set(t,e),yu(t)))}function Qo(e,t){return!(e.popover!=="auto"&&e.popover!=="manual"&&e.popover!=="hint"||!e.isConnected||t&&$i(e)!=="showing"||!t&&$i(e)!=="hidden"||e instanceof jI&&e.hasAttribute("open")||document.fullscreenElement===e)}function Vm(e){if(!e)return 0;const t=vo.get(document)||new Set,o=En.get(document)||new Set;return o.has(e)?[...o].indexOf(e)+t.size+1:t.has(e)?[...t].indexOf(e)+1:0}function qI(e){const t=ay(e),o=GI(e);return Vm(t)>Vm(o)?t:o}function Za(e){let t;const o=En.get(e)||new Set,r=vo.get(e)||new Set,a=o.size>0?o:r.size>0?r:null;return a?(t=Ja(a),t.isConnected?t:(a.delete(t),Za(e))):null}function Lm(e){for(const t of e||[])if(!t.isConnected)e.delete(t);else return t;return null}function Ur(e){return typeof e.getRootNode=="function"?e.getRootNode():e.parentNode?Ur(e.parentNode):e}function ay(e){for(;e;){if(e instanceof HTMLElement&&e.popover==="auto"&&zr.get(e)==="showing")return e;if(e=e instanceof Element&&e.assignedSlot||e.parentElement||Ur(e),e instanceof Td&&(e=e.host),e instanceof Document)return}}function GI(e){for(;e;){const t=e.popoverTargetElement;if(t instanceof HTMLElement)return t;if(e=e.parentElement||Ur(e),e instanceof Td&&(e=e.host),e instanceof Document)return}}function Pm(e,t){const o=new Map;let r=0;for(const i of t||[])o.set(i,r),r+=1;o.set(e,r),r+=1;let a=null;function l(i){if(!i)return;let s=!1,c=null,u=null;for(;!s;){if(c=ay(i)||null,c===null||!o.has(c))return;(e.popover==="hint"||c.popover==="auto")&&(s=!0),s||(i=c.parentElement)}u=o.get(c),(a===null||o.get(a)<u)&&(a=c)}return l(e.parentElement||Ur(e)),a}function YI(e){return e.hidden||e instanceof Td||(e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLOptGroupElement||e instanceof HTMLOptionElement||e instanceof HTMLFieldSetElement)&&e.disabled||e instanceof HTMLInputElement&&e.type==="hidden"||e instanceof HTMLAnchorElement&&e.href===""?!1:typeof e.tabIndex=="number"&&e.tabIndex!==-1}function XI(e){if(e.shadowRoot&&e.shadowRoot.delegatesFocus!==!0)return null;let t=e;t.shadowRoot&&(t=t.shadowRoot);let o=t.querySelector("[autofocus]");if(o)return o;{const l=t.querySelectorAll("slot");for(const i of l){const s=i.assignedElements({flatten:!0});for(const c of s){if(c.hasAttribute("autofocus"))return c;if(o=c.querySelector("[autofocus]"),o)return o}}}const r=e.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);let a=r.currentNode;for(;a;){if(YI(a))return a;a=r.nextNode()}}function KI(e){var t;(t=XI(e))==null||t.focus()}var Ei=new WeakMap;function yu(e){if(!Qo(e,!1))return;const t=e.ownerDocument;if(!e.dispatchEvent(new hs("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!Qo(e,!1))return;let o=!1;const r=e.popover;let a=null;const l=Pm(e,vo.get(t)||new Set),i=Pm(e,En.get(t)||new Set);if(r==="auto"&&(_u(En.get(t)||new Set,o,!0),er(l||t,o,!0),a="auto"),r==="hint"&&(i?(er(i,o,!0),a="hint"):(_u(En.get(t)||new Set,o,!0),l?(er(l,o,!0),a="auto"):a="hint")),r==="auto"||r==="hint"){if(r!==e.popover||!Qo(e,!1))return;Za(t)||(o=!0),a==="auto"?(vo.has(t)||vo.set(t,new Set),vo.get(t).add(e)):a==="hint"&&(En.has(t)||En.set(t,new Set),En.get(t).add(e))}Ei.delete(e);const s=t.activeElement;e.classList.add(":popover-open"),zr.set(e,"showing"),Wl.has(t)||Wl.set(t,new Set),Wl.get(t).add(e),ly(ki.get(e),!0),KI(e),o&&s&&e.popover==="auto"&&Ei.set(e,s),ry(e,"closed","open")}function Hr(e,t=!1,o=!1){var r,a;if(!Qo(e,!0))return;const l=e.ownerDocument;if(["auto","hint"].includes(e.popover)&&(er(e,t,o),!Qo(e,!0)))return;const i=vo.get(l)||new Set,s=i.has(e)&&Ja(i)===e;if(ly(ki.get(e),!1),ki.delete(e),o&&(e.dispatchEvent(new hs("beforetoggle",{oldState:"open",newState:"closed"})),s&&Ja(i)!==e&&er(e,t,o),!Qo(e,!0)))return;(r=Wl.get(l))==null||r.delete(e),i.delete(e),(a=En.get(l))==null||a.delete(e),e.classList.remove(":popover-open"),zr.set(e,"hidden"),o&&ry(e,"open","closed");const c=Ei.get(e);c&&(Ei.delete(e),t&&c.focus())}function JI(e,t=!1,o=!1){let r=Za(e);for(;r;)Hr(r,t,o),r=Za(e)}function _u(e,t=!1,o=!1){let r=Lm(e);for(;r;)Hr(r,t,o),r=Lm(e)}function Im(e,t,o,r){let a=!1,l=!1;for(;a||!l;){l=!0;let i=null,s=!1;for(const c of t)if(c===e)s=!0;else if(s){i=c;break}if(!i)return;for(;$i(i)==="showing"&&t.size;)Hr(Ja(t),o,r);t.has(e)&&Ja(t)!==e&&(a=!0),a&&(r=!1)}}function er(e,t,o){var r,a;const l=e.ownerDocument||e;if(e instanceof Document)return JI(l,t,o);if((r=En.get(l))!=null&&r.has(e)){Im(e,En.get(l),t,o);return}_u(En.get(l)||new Set,t,o),(a=vo.get(l))!=null&&a.has(e)&&Im(e,vo.get(l),t,o)}var dc=new WeakMap;function Om(e){if(!e.isTrusted)return;const t=e.composedPath()[0];if(!t)return;const o=t.ownerDocument;if(!Za(o))return;const a=qI(t);if(a&&e.type==="pointerdown")dc.set(o,a);else if(e.type==="pointerup"){const l=dc.get(o)===a;dc.delete(o),l&&er(a||o,!1,!0)}}var fc=new WeakMap;function ly(e,t=!1){if(!e)return;fc.has(e)||fc.set(e,e.getAttribute("aria-expanded"));const o=e.popoverTargetElement;if(o instanceof HTMLElement&&o.popover==="auto")e.setAttribute("aria-expanded",String(t));else{const r=fc.get(e);r?e.setAttribute("aria-expanded",r):e.removeAttribute("aria-expanded")}}var Rm=globalThis.ShadowRoot||function(){};function ZI(){return typeof HTMLElement<"u"&&typeof HTMLElement.prototype=="object"&&"popover"in HTMLElement.prototype}function Wo(e,t,o){const r=e[t];Object.defineProperty(e,t,{value(a){return r.call(this,o(a))}})}var QI=/(^|[^\\]):popover-open\b/g;function eO(){return typeof globalThis.CSSLayerBlockRule=="function"}function tO(){const e=eO();return`
|
|
437
437
|
${e?"@layer popover-polyfill {":""}
|
|
438
438
|
:where([popover]) {
|
|
439
439
|
position: fixed;
|
|
@@ -495,4 +495,4 @@ ${e?"@layer popover-polyfill {":""}
|
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
497
|
${e?"}":""}
|
|
498
|
-
`}var vr=null;function pc(e){const t=eO();if(vr===null)try{vr=new CSSStyleSheet,vr.replaceSync(t)}catch{vr=!1}if(vr===!1){const o=document.createElement("style");o.textContent=t,e instanceof Document?e.head.prepend(o):e.prepend(o)}else e.adoptedStyleSheets=[vr,...e.adoptedStyleSheets]}function tO(){if(typeof window>"u")return;window.ToggleEvent=window.ToggleEvent||hs;function e(c){return c!=null&&c.includes(":popover-open")&&(c=c.replace(ZI,"$1.\\:popover-open")),c}Wo(Document.prototype,"querySelector",e),Wo(Document.prototype,"querySelectorAll",e),Wo(Element.prototype,"querySelector",e),Wo(Element.prototype,"querySelectorAll",e),Wo(Element.prototype,"matches",e),Wo(Element.prototype,"closest",e),Wo(DocumentFragment.prototype,"querySelectorAll",e),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;const c=(this.getAttribute("popover")||"").toLowerCase();return c===""||c=="auto"?"auto":c=="hint"?"hint":"manual"},set(c){c===null?this.removeAttribute("popover"):this.setAttribute("popover",c)}},showPopover:{enumerable:!0,configurable:!0,value(c={}){yu(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){Hr(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(c={}){return typeof c=="boolean"&&(c={force:c}),zr.get(this)==="showing"&&c.force===void 0||c.force===!1?Hr(this,!0,!0):(c.force===void 0||c.force===!0)&&yu(this),zr.get(this)==="showing"}}});const t=Element.prototype.attachShadow;t&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(c){const u=t.call(this,c);return pc(u),u}}});const o=HTMLElement.prototype.attachInternals;o&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){const c=o.call(this);return c.shadowRoot&&pc(c.shadowRoot),c}}});const r=new WeakMap;function a(c){Object.defineProperties(c.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(u){if(u===null)this.removeAttribute("popovertarget"),r.delete(this);else if(u instanceof Element)this.setAttribute("popovertarget",""),r.set(this,u);else throw new TypeError("popoverTargetElement must be an element or null")},get(){if(this.localName!=="button"&&this.localName!=="input"||this.localName==="input"&&this.type!=="reset"&&this.type!=="image"&&this.type!=="button"||this.disabled||this.form&&this.type==="submit")return null;const u=r.get(this);if(u&&u.isConnected)return u;if(u&&!u.isConnected)return r.delete(this),null;const d=Ur(this),f=this.getAttribute("popovertarget");return(d instanceof Document||d instanceof Rm)&&f&&d.getElementById(f)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){const u=(this.getAttribute("popovertargetaction")||"").toLowerCase();return u==="show"||u==="hide"?u:"toggle"},set(u){this.setAttribute("popovertargetaction",u)}}})}a(HTMLButtonElement),a(HTMLInputElement);const l=c=>{if(c.defaultPrevented)return;const u=c.composedPath(),d=u[0];if(!(d instanceof Element)||d!=null&&d.shadowRoot)return;const f=Ur(d);if(!(f instanceof Rm||f instanceof Document))return;const h=u.find(m=>{var p;return(p=m.matches)==null?void 0:p.call(m,"[popovertargetaction],[popovertarget]")});if(h){jI(h),c.preventDefault();return}},i=c=>{const u=c.key,d=c.target;!c.defaultPrevented&&d&&(u==="Escape"||u==="Esc")&&er(d.ownerDocument,!0,!0)};(c=>{c.addEventListener("click",l),c.addEventListener("keydown",i),c.addEventListener("pointerdown",Om),c.addEventListener("pointerup",Om)})(document),pc(document)}JI()||tO();const nO={install:(e,t={})=>{e.directive("click-outside",F7),e.directive("ripple",s0),e.directive("pattern",i0),e.use(R7),e.use(L0),e.use(oy,t.toast||{}),e.use(_7,{themes:{"bgl-theme":{triggers:["click"],autoHide:!0,placement:"bottom"}}});const o=o0(t.i18n||{});e.use(o),SP({locale:()=>{try{const{locale:r}=Jr().global;return typeof r=="string"?r:r.value}catch{return"en"}}})}},oO=[["Afghanistan (افغانستان)","AF","93"],["Albania (Shqipëri)","AL","355"],["Algeria (الجزائر)","DZ","213"],["American Samoa","AS","1",5,["684"]],["Andorra","AD","376"],["Angola","AO","244"],["Anguilla","AI","1",6,["264"]],["Antigua and Barbuda","AG","1",7,["268"]],["Argentina","AR","54"],["Armenia (Հայաստան)","AM","374"],["Aruba","AW","297"],["Ascension Island","AC","247"],["Australia","AU","61",0],["Austria (Österreich)","AT","43"],["Azerbaijan (Azərbaycan)","AZ","994"],["Bahamas","BS","1",8,["242"]],["Bahrain (البحرين)","BH","973"],["Bangladesh (বাংলাদেশ)","BD","880"],["Barbados","BB","1",9,["246"]],["Belarus (Беларусь)","BY","375"],["Belgium (België)","BE","32"],["Belize","BZ","501"],["Benin (Bénin)","BJ","229"],["Bermuda","BM","1",10,["441"]],["Bhutan (འབྲུག)","BT","975"],["Bolivia","BO","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","BA","387"],["Botswana","BW","267"],["Brazil (Brasil)","BR","55"],["British Indian Ocean Territory","IO","246"],["British Virgin Islands","VG","1",11,["284"]],["Brunei","BN","673"],["Bulgaria (България)","BG","359"],["Burkina Faso","BF","226"],["Burundi (Uburundi)","BI","257"],["Cambodia (កម្ពុជា)","KH","855"],["Cameroon (Cameroun)","CM","237"],["Canada","CA","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","CV","238"],["Caribbean Netherlands","BQ","599",1,["3","4","7"]],["Cayman Islands","KY","1",12,["345"]],["Central African Republic (République centrafricaine)","CF","236"],["Chad (Tchad)","TD","235"],["Chile","CL","56"],["China (中国)","CN","86"],["Christmas Island","CX","61",2,["89164"]],["Cocos (Keeling) Islands","CC","61",1,["89162"]],["Colombia","CO","57"],["Comoros (جزر القمر)","KM","269"],["Congo (DRC) (République démocratique du Congo)","CD","243"],["Congo (Republic) (Congo-Brazzaville)","CG","242"],["Cook Islands","CK","682"],["Costa Rica","CR","506"],["Côte d’Ivoire","CI","225"],["Croatia (Hrvatska)","HR","385"],["Cuba","CU","53"],["Curaçao","CW","599",0],["Cyprus (Κύπρος)","CY","357"],["Czech Republic (Česká republika)","CZ","420"],["Denmark (Danmark)","DK","45"],["Djibouti","DJ","253"],["Dominica","DM","1",13,["767"]],["Dominican Republic (República Dominicana)","DO","1",2,["809","829","849"]],["Ecuador","EC","593"],["Egypt (مصر)","EG","20"],["El Salvador","SV","503"],["Equatorial Guinea (Guinea Ecuatorial)","GQ","240"],["Eritrea","ER","291"],["Estonia (Eesti)","EE","372"],["Eswatini","SZ","268"],["Ethiopia","ET","251"],["Falkland Islands (Islas Malvinas)","FK","500"],["Faroe Islands (Føroyar)","FO","298"],["Fiji","FJ","679"],["Finland (Suomi)","FI","358",0],["France","FR","33"],["French Guiana (Guyane française)","GF","594"],["French Polynesia (Polynésie française)","PF","689"],["Gabon","GA","241"],["Gambia","GM","220"],["Georgia (საქართველო)","GE","995"],["Germany (Deutschland)","DE","49"],["Ghana (Gaana)","GH","233"],["Gibraltar","GI","350"],["Greece (Ελλάδα)","GR","30"],["Greenland (Kalaallit Nunaat)","GL","299"],["Grenada","GD","1",14,["473"]],["Guadeloupe","GP","590",0],["Guam","GU","1",15,["671"]],["Guatemala","GT","502"],["Guernsey","GG","44",1,["1481","7781","7839","7911"]],["Guinea (Guinée)","GN","224"],["Guinea-Bissau (Guiné Bissau)","GW","245"],["Guyana","GY","592"],["Haiti","HT","509"],["Honduras","HN","504"],["Hong Kong (香港)","HK","852"],["Hungary (Magyarország)","HU","36"],["Iceland (Ísland)","IS","354"],["India (भारत)","IN","91"],["Indonesia","ID","62"],["Iran (ایران)","IR","98"],["Iraq (العراق)","IQ","964"],["Ireland","IE","353"],["Isle of Man","IM","44",2,["1624","74576","7524","7924","7624"]],["Israel (ישראל)","IL","972"],["Italy (Italia)","IT","39",0],["Jamaica","JM","1",4,["876","658"]],["Japan (日本)","JP","81"],["Jersey","JE","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (الأردن)","JO","962"],["Kazakhstan (Казахстан)","KZ","7",1,["33","7"]],["Kenya","KE","254"],["Kiribati","KI","686"],["Kosovo","XK","383"],["Kuwait (الكويت)","KW","965"],["Kyrgyzstan (Кыргызстан)","KG","996"],["Laos (ລາວ)","LA","856"],["Latvia (Latvija)","LV","371"],["Lebanon (لبنان)","LB","961"],["Lesotho","LS","266"],["Liberia","LR","231"],["Libya (ليبيا)","LY","218"],["Liechtenstein","LI","423"],["Lithuania (Lietuva)","LT","370"],["Luxembourg","LU","352"],["Macau (澳門)","MO","853"],["Madagascar (Madagasikara)","MG","261"],["Malawi","MW","265"],["Malaysia","MY","60"],["Maldives","MV","960"],["Mali","ML","223"],["Malta","MT","356"],["Marshall Islands","MH","692"],["Martinique","MQ","596"],["Mauritania (موريتانيا)","MR","222"],["Mauritius (Moris)","MU","230"],["Mayotte","YT","262",1,["269","639"]],["Mexico (México)","MX","52"],["Micronesia","FM","691"],["Moldova (Republica Moldova)","MD","373"],["Monaco","MC","377"],["Mongolia (Монгол)","MN","976"],["Montenegro (Crna Gora)","ME","382"],["Montserrat","MS","1",16,["664"]],["Morocco (المغرب)","MA","212",0],["Mozambique (Moçambique)","MZ","258"],["Myanmar (Burma) (မြန်မာ)","MM","95"],["Namibia (Namibië)","NA","264"],["Nauru","NR","674"],["Nepal (नेपाल)","NP","977"],["Netherlands (Nederland)","NL","31"],["New Caledonia (Nouvelle-Calédonie)","NC","687"],["New Zealand","NZ","64"],["Nicaragua","NI","505"],["Niger (Nijar)","NE","227"],["Nigeria","NG","234"],["Niue","NU","683"],["Norfolk Island","NF","672"],["North Korea (조선 민주주의 인민 공화국)","KP","850"],["North Macedonia (Северна Македонија)","MK","389"],["Northern Mariana Islands","MP","1",17,["670"]],["Norway (Norge)","NO","47",0],["Oman (عُمان)","OM","968"],["Pakistan (پاکستان)","PK","92"],["Palau","PW","680"],["Palestine (فلسطين)","PS","970"],["Panama (Panamá)","PA","507"],["Papua New Guinea","PG","675"],["Paraguay","PY","595"],["Peru (Perú)","PE","51"],["Philippines","PH","63"],["Poland (Polska)","PL","48"],["Portugal","PT","351"],["Puerto Rico","PR","1",3,["787","939"]],["Qatar (قطر)","QA","974"],["Réunion (La Réunion)","RE","262",0],["Romania (România)","RO","40"],["Russia (Россия)","RU","7",0],["Rwanda","RW","250"],["Saint Barthélemy","BL","590",1],["Saint Helena","SH","290"],["Saint Kitts and Nevis","KN","1",18,["869"]],["Saint Lucia","LC","1",19,["758"]],["Saint Martin (Saint-Martin (partie française))","MF","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","PM","508"],["Saint Vincent and the Grenadines","VC","1",20,["784"]],["Samoa","WS","685"],["San Marino","SM","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","ST","239"],["Saudi Arabia (المملكة العربية السعودية)","SA","966"],["Senegal (Sénégal)","SN","221"],["Serbia (Србија)","RS","381"],["Seychelles","SC","248"],["Sierra Leone","SL","232"],["Singapore","SG","65"],["Sint Maarten","SX","1",21,["721"]],["Slovakia (Slovensko)","SK","421"],["Slovenia (Slovenija)","SI","386"],["Solomon Islands","SB","677"],["Somalia (Soomaaliya)","SO","252"],["South Africa","ZA","27"],["South Korea (대한민국)","KR","82"],["South Sudan (جنوب السودان)","SS","211"],["Spain (España)","ES","34"],["Sri Lanka (ශ්රී ලංකාව)","LK","94"],["Sudan (السودان)","SD","249"],["Suriname","SR","597"],["Svalbard and Jan Mayen","SJ","47",1,["79"]],["Sweden (Sverige)","SE","46"],["Switzerland (Schweiz)","CH","41"],["Syria (سوريا)","SY","963"],["Taiwan (台灣)","TW","886"],["Tajikistan","TJ","992"],["Tanzania","TZ","255"],["Thailand (ไทย)","TH","66"],["Timor-Leste","TL","670"],["Togo","TG","228"],["Tokelau","TK","690"],["Tonga","TO","676"],["Trinidad and Tobago","TT","1",22,["868"]],["Tunisia (تونس)","TN","216"],["Turkey (Türkiye)","TR","90"],["Turkmenistan","TM","993"],["Turks and Caicos Islands","TC","1",23,["649"]],["Tuvalu","TV","688"],["U.S. Virgin Islands","VI","1",24,["340"]],["Uganda","UG","256"],["Ukraine (Україна)","UA","380"],["United Arab Emirates (الإمارات العربية المتحدة)","AE","971"],["United Kingdom","GB","44",0],["United States","US","1",0],["Uruguay","UY","598"],["Uzbekistan (Oʻzbekiston)","UZ","998"],["Vanuatu","VU","678"],["Vatican City (Città del Vaticano)","VA","39",1,["06698"]],["Venezuela","VE","58"],["Vietnam (Việt Nam)","VN","84"],["Wallis and Futuna (Wallis-et-Futuna)","WF","681"],["Western Sahara (الصحراء الغربية)","EH","212",1,["5288","5289"]],["Yemen (اليمن)","YE","967"],["Zambia","ZM","260"],["Zimbabwe","ZW","263"],["Åland Islands","AX","358",1,["18"]]],iy=oO.map(([e,t,o,r=0,a=[]])=>({name:e,iso2:t,dialCode:o,priority:r,areaCodes:a}));function rO(e){const t={year:"year",month:"month",week:"week",day:"day",hour:"hour",minute:"minute",second:"second",ago:"ago",in:"in",justNow:"Just now"};try{const r=Jr().global.messages,a=r[e]||r.en;return(a==null?void 0:a.timeAgo)??t}catch{return t}}function aO(){try{const e=Jr(),{locale:t}=e.global,o=typeof t=="string"?t:t.value;return["en","es","fr","he","it","ru"].includes(o)?o:"en"}catch{return"en"}}function lO(e,t){if(!e)return"";typeof e=="string"&&(e=new Date(e));const o=typeof t=="string"?t:(t==null?void 0:t.lang)||aO(),a=(typeof t=="object"&&t.mode||"relative")==="relative",l=Math.floor((e.getTime()-Date.now())/1e3),i=[{label:"year",seconds:31536e3},{label:"month",seconds:2592e3},{label:"week",seconds:604800},{label:"day",seconds:86400},{label:"hour",seconds:3600},{label:"minute",seconds:60},{label:"second",seconds:1}],s=rO(o),c=u=>s[u];for(const u of i){const d=Math.floor(Math.abs(l)/u.seconds);if(d>=1){const f=a&&l<0?` ${s.ago}`:"",h=a&&l>0&&s.in!=="in"?`${s.in} `:"";if(o==="he"){const p=c(u.label),g=d===1?p.singular:p.plural,_=a?l<0?`${s.ago} `:l>0?`${s.in} `:"":"";if(u.label==="day"&&l>0){const v=Math.floor(Math.abs(l)%86400/3600),y=s.hour,b=v===1?y.singular:y.plural,$=d===1?g:`${d} ${g}`,w=v>0?v===1?` ${b}`:` ${v} ${b}`:"";return`${_}${$}${w}`}return`${_}${d===1?g:`${d} ${g}`}`}const m=c(u.label);if(u.label==="day"&&l>0){const p=Math.floor(Math.abs(l)%86400/3600),g=p>1?`${s.hour}s`:s.hour;return`${h}${d} ${m}${p>0?` ${p} ${g}`:""}${f}`}return`${h}${d} ${m}${f}`}}return s.justNow}function Ci(e,t,o){let r,a="",l,i={};if(typeof e=="object"&&e!==null){i=e;const{id:s,text:c,icon:u}=i;r=s,a=c??"",l=u}else r=e,t!=null&&(typeof t=="string"&&t.length<=30&&!t.includes(" ")&&(t.includes("-")||t.includes("_")||t.length<=12)&&t===t.toLowerCase()?(l=t,o&&(i=o)):(a=t,o&&(i=o)));return{$el:"btn",id:r,class:i.class,vIf:i.vIf,style:i.style,onClick:i.onClick,attrs:{value:a||(i.text??"")||"",variant:i.variant,size:i.size,disabled:i.disabled,loading:i.loading,icon:l??i.icon,iconPosition:i.iconPosition,href:i.href,target:i.target}}}function sy(e,t,o={}){return{$el:e,id:t,class:o.class,vIf:o.vIf,style:o.style,attrs:o.attrs||{},onClick:o.onClick}}function cy(e,t,o){return t!=null&&e!=null?Ci(e,t,o||{}):Ci({id:e,icon:t,...o})}function uy(e,t,o){let r,a={};if(typeof e=="object"&&e!==null){a=e;const{id:l}=a;r=l}else r=e,t!=null&&(typeof o=="string"?a={tag:o,text:t}:o?a={...o,text:t}:a={text:t});return{$el:a.tag||"p",id:r,class:a.class,vIf:a.vIf,style:a.style,attrs:{text:a.text??"",size:a.size,weight:a.weight,color:a.color,align:a.align},transform:a.transform}}function dy(e,t,o){let r,a={};if(typeof e=="object"&&e!==null){a=e;const{id:l}=a;r=l}else r=e,t!=null&&(typeof o=="string"?a={alt:o}:o&&(a=o));return{$el:"img",id:r,class:a.class,vIf:a.vIf,style:a.style,transform:a.transform,attrs:{alt:a.alt,width:a.width,height:a.height,loading:a.loading,fit:a.fit,rounded:a.rounded,fallback:a.fallback}}}function iO(e){return{$el:"pill",id:e==null?void 0:e.id,class:e==null?void 0:e.class,vIf:e==null?void 0:e.vIf,style:e==null?void 0:e.style,attrs:(e==null?void 0:e.attrs)||{}}}function fy(...e){let t,o=[];if(e.length>0){const a=e[0];typeof a=="object"&&a!==null&&"$el"in a?o=e:(t=a,o=e.slice(1))}const r={};return t!=null&&t.attrs&&Object.assign(r,t.attrs),t&&(t.options!=null&&(r.options=t.options),t.placeholder!=null&&(r.placeholder=t.placeholder),t.searchable!=null&&(r.searchable=t.searchable),t.multiselect!=null&&(r.multiselect=t.multiselect),t.clearable!=null&&(r.clearable=t.clearable),t.onSelect!=null&&(r.onSelect=t.onSelect),t.onSearch!=null&&(r.onSearch=t.onSearch)),{$el:n.markRaw(on),class:t==null?void 0:t.class,vIf:t==null?void 0:t.vIf,style:t==null?void 0:t.style,attrs:r,children:o}}function py(e,t){return{$el:n.markRaw(Xn),id:t==null?void 0:t.id,class:t==null?void 0:t.class,vIf:t==null?void 0:t.vIf,style:t==null?void 0:t.style,onClick:t==null?void 0:t.onClick,attrs:{thin:!0,title:e??(t==null?void 0:t.title)??"",subtitle:t==null?void 0:t.subtitle,icon:t==null?void 0:t.icon,avatar:t==null?void 0:t.avatar,badge:t==null?void 0:t.badge,actions:t==null?void 0:t.actions,clickable:t==null?void 0:t.clickable,divider:t==null?void 0:t.divider}}}function my(e,t,o){return{$el:"div",id:e,class:(o==null?void 0:o.class)??"flex gap-2",vIf:o==null?void 0:o.vIf,style:o==null?void 0:o.style,attrs:(o==null?void 0:o.attrs)||{},children:t}}function Nd(e,t){for(const o of t){if(o.id===e)return o;if(o.children&&o.children.length>0){const r=Nd(e,o.children);if(r)return r}}}function Dd(e,t,o){var a;let r;return typeof t=="string"?r=t:o=t,{$el:"div",id:e,class:(o==null?void 0:o.class)??"column-class",vIf:o==null?void 0:o.vIf,style:o==null?void 0:o.style,transform:o==null?void 0:o.transform,attrs:{...o==null?void 0:o.attrs,label:r??((a=o==null?void 0:o.attrs)==null?void 0:a.label)??""},children:o==null?void 0:o.children}}const hy=Dd;function sO(){return{btn:Ci,iconBtn:cy,txt:uy,img:dy,dropdown:fy,listItem:py,container:my,findElementById:Nd,getBaseElementField:sy,col:hy,column:Dd}}const cO={"":/<[^>]*>?/g," ":/ /g,'"':/"/g,"'":/'/g,"&":/&/g,"<":/</g,">":/>/g};function uO(e){return e?Object.entries(cO).reduce((t,[o,r])=>t.replace(r,o),e):""}const dO=/[\p{N}\p{L}\s]/gu;function mc(e){var t;return((t=e.match(dO))==null?void 0:t.join("").toLowerCase())??""}function fO(e,t){let o=e;for(const r of t.split(".")){if(o==null||typeof o!="object")return;o=o[r]}return o}function gy(e,t=""){return!e||typeof e!="object"?[]:Object.keys(e).flatMap(o=>{const r=e[o],a=t?`${t}.${o}`:o;return r&&typeof r=="object"&&!Array.isArray(r)&&!(r instanceof Date)?gy(r,a):[a]})}function Fm(e){return e==null?"":typeof e=="string"?uO(e):typeof e=="number"||typeof e=="boolean"?String(e):e instanceof Date?e.toISOString():""}function pO(e=[],t={}){const{minChars:o=1}=t,r=n.shallowReactive({_list:e,searchTerm:""});let a=[];function l(c,u=new WeakSet){if(u.has(c))return"";u.add(c);const d=t.keys??gy(c),f=[];for(const h of d){const m=fO(c,h);if(Array.isArray(m))for(const p of m)if(p&&typeof p=="object"&&!(p instanceof Date))f.push(l(p,u));else{const g=Fm(p);g&&f.push(mc(g))}else{const p=Fm(m);p&&f.push(mc(p))}}return f.join(" ")}function i(c){a=c.map(u=>l(u))}i(e);const s=n.computed(()=>{let c=r._list;if(r.searchTerm.length>=o){const u=mc(r.searchTerm).split(/\s+/).filter(d=>d.length>0);u.length>0&&(c=c.filter((d,f)=>{const h=a[f]??"";return u.every(m=>h.includes(m))}))}if(t.filter){const u=n.isRef(t.filter)?t.filter.value:t.filter;c=c.filter(u)}return c});return{get searchTerm(){return r.searchTerm},set searchTerm(c){r.searchTerm=c},get value(){return s.value},set value(c){r._list=c,i(c)},get length(){return s.value.length},[Symbol.iterator](){return s.value[Symbol.iterator]()}}}async function vy(){let e=sessionStorage.getItem("ipapi");return e||(e=(await _t.get("https://ipapi.co/json/")).data,e=JSON.stringify(e),sessionStorage.setItem("ipapi",e)),JSON.parse(e)}const mO={"":/<[^>]*>?/g," ":/ /g,'"':/"/g,"'":/'/g,"&":/&/g,"<":/</g,">":/>/g};function xd(e){return e?Object.entries(mO).reduce((t,[o,r])=>t.replace(r,o),e):""}const hO=/[\p{N}\p{L}\s]/gu;function wr(e){var t;return((t=e.match(hO))==null?void 0:t.join("").toLowerCase())??""}function gO(e,t){const o=t.split(".");let r=e;for(const a of o){if(r==null||typeof r!="object")return;r=r[a]}return r}function Dl(e,t){let o=0;if(e.length===0)return 0;let r=0;for(const l of t)if(e.includes(l)){const i=new RegExp(l,"g"),s=e.match(i);s&&(r+=s.length*l.length),o+=1,e.split(/\s+/).includes(l)&&(o+=.5),e.startsWith(l)&&(o+=.5)}const a=Math.min(1,r/e.length);return o*=1+a*2,o}function xl(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function vO(e){return e==null?"":typeof e=="string"?xd(e):typeof e=="number"||typeof e=="boolean"?String(e):typeof e=="object"&&e instanceof Date?e.toISOString():""}function yy(e){const{searchTerm:t,items:o=[],keysToSearch:r,fieldWeights:a={},minChars:l=2}=e,i=n.toValue(t),s=n.toValue(o)||[];if(!i||i.length<l)return s;const c=wr(i).split(/\s+/).filter(_=>_.length>1);if(c.length===0)return s;const u={name:2,first_name:2,last_name:2,title:2,headline:2,description:.7,subtitle:.7,bio:.7,content:.7,body:.7,email:.7,phone:.7,id:.3,created_at:.3,updated_at:.3};function d(_){if(_ in a){const y=a[_];if(typeof y=="number")return y}const v=_.split(".").pop()||"";return v in u?u[v]:1}function f(_,v=""){return!_||typeof _!="object"?[]:Object.keys(_).flatMap(y=>{const b=_[y],$=v?`${v}.${y}`:y;return b&&typeof b=="object"&&!Array.isArray(b)?[$,...f(b,$)]:[$]})}function h(_){let v=0;if(xl(_)){const b=wr(String(_));return Dl(b,c)}if(Array.isArray(_)){for(const b of _)if(xl(b)){const $=wr(String(b));v+=Dl($,c)}return v}const y=r||f(_);for(const b of y){const $=gO(_,String(b));if($==null)continue;if(Array.isArray($)){for(const N of $)if(xl(N)){const M=xd(String(N)),V=wr(M),k=Dl(V,c),C=d(String(b));v+=k*C}continue}if(typeof $=="object"&&!xl($))continue;const w=vO($),E=wr(w),S=Dl(E,c),x=d(String(b));v+=S*x}return v}const p=s.map(_=>{const v=h(_);return[_,v]}).filter(([,_])=>_>0);let g=p;if(p.length>0){const _=Math.max(...p.map(([,v])=>v));if(_>5){const v=_*.25;g=p.filter(([,y])=>y>=v)}else if(_>2){const v=_*.15;g=p.filter(([,y])=>y>=v)}}return g.sort(([,_],[,v])=>v-_).map(([_])=>_)}function _y(e,t){let o,r;const a=Array.isArray(e),l=typeof e=="function",s=typeof e=="object"&&e!==null&&"value"in e&&!("items"in e);a||l||s?(r=n.ref(""),o={items:e,searchTerm:r,...t}):o=e;const{searchTerm:u,minChars:d=2,serverSearch:f,debounceMs:h=300}=o,m=n.ref(!1),p=n.ref([]);let g=null;f&&n.watch(()=>n.toValue(u),async S=>{g!==null&&clearTimeout(g);const x=typeof S=="string"?S:"";if(x.length<d&&d>0){p.value=[];return}g=window.setTimeout(async()=>{try{m.value=!0,p.value=await f(x)}catch(N){console.error("Server search error:",N),p.value=[]}finally{m.value=!1}},h)},{immediate:!0});const _=()=>n.toValue(u),v=()=>{const S=_();return f&&(S&&typeof S=="string"&&S.length>=d||d===0)?p.value:yy(o)},y=n.computed(()=>v()),b=n.computed(()=>y.value.length),$=n.computed(()=>b.value>0),w=n.computed(()=>{const S=_();return!!S&&typeof S=="string"&&S.length>=d}),E={results:y,resultCount:b,hasResults:$,isSearching:w,isLoading:n.computed(()=>m.value)};return r&&(E.searchTerm=r),E}exports.$=Ct;exports.Accordion=ky;exports.AccordionItem=Ny;exports.AddToCalendar=By;exports.AddressSearch=xy;exports.Alert=Iy;exports.AppContent=b5;exports.AppLayout=E5;exports.AppSidebar=B5;exports.ArrayInput=ua;exports.Avatar=Um;exports.Badge=X1;exports.BagelForm=qr;exports.BagelMultiStepForm=D2;exports.BagelVue=nO;exports.BarChart=Hy;exports.BglForm=qr;exports.BglVideo=$u;exports.BottomMenu=V5;exports.Btn=ee;exports.Calendar=hb;exports.Card=en;exports.Carousel=wb;exports.CheckInput=Ut;exports.Checkbox=j2;exports.CodeEditor=Lu;exports.ColorInput=Wn;exports.DataPreview=xb;exports.DataTable=rh;exports.DateInput=Da;exports.DatePicker=Lh;exports.Dialog=ns;exports.DialogConfirm=kv;exports.DialogForm=r0;exports.DialogPlugin=eP;exports.DialogSymbol=wd;exports.DragOver=gc;exports.Draggable=Ub;exports.Dropdown=on;exports.EMAIL_REGEX=Bl;exports.EmailInput=Pu;exports.FORM_STATE_KEY=rd;exports.FieldArray=ca;exports.FieldSetVue=zw;exports.Filter=Kw;exports.Flag=_c;exports.FormFlow=bd;exports.IMAGE_FORMATS=Ph;exports.IMAGE_FORMATS_REGEXP=Jl;exports.Icon=Te;exports.IframeVue=C8;exports.Image=Mr;exports.ImportData=h5;exports.JSONInput=M$;exports.KpiCard=Qy;exports.Layout=P5;exports.LineChart=v1;exports.ListItem=Xn;exports.ListView=Xg;exports.Loading=Po;exports.MapEmbed=pD;exports.MarkdownEditor=R$;exports.Menu=bD;exports.Modal=mn;exports.ModalConfirm=Kg;exports.ModalForm=Jg;exports.ModalPlugin=L0;exports.MultiStepForm=CP;exports.NavBar=MD;exports.NumberInput=Yn;exports.OTP=Z$;exports.PageTitle=Zg;exports.Pagination=RD;exports.PasswordInput=Zh;exports.PieChart=U1;exports.Pill=Wc;exports.RadioGroup=Qh;exports.RangeInput=eg;exports.Rating=qD;exports.RichText=zu;exports.RouterWrapper=XD;exports.SelectBtn=lT;exports.SelectInput=vt;exports.SidebarMenu=R5;exports.SignaturePad=dT;exports.Skeleton=ui;exports.Slider=ex;exports.Spreadsheet=ev;exports.Swiper=gv;exports.TabbedLayout=W5;exports.TableField=a4;exports.TableSchema=rh;exports.Tabs=G5;exports.TabsBody=Y5;exports.TabsNav=Qu;exports.TelInput=Ju;exports.TextInput=et;exports.Title=vv;exports.ToastPlugin=oy;exports.ToggleInput=es;exports.ToolBar=v6;exports.TopBar=w6;exports.UploadInput=Aa;exports.VIDEO_FORMATS=Ih;exports.VIDEO_FORMATS_REGEXP=Oh;exports.Zoomer=yv;exports.allCountries=iy;exports.anyOf=e2;exports.appendScript=nl;exports.appendStyle=kc;exports.arrField=Du;exports.bagelFormUtils=Zw;exports.bagelinkLocales=du;exports.bglForm=Nu;exports.bindAttrs=wc;exports.btn=Ci;exports.checkField=Mi;exports.classify=Ah;exports.clearHtml=xd;exports.col=hy;exports.colorField=zi;exports.column=Dd;exports.container=my;exports.copyText=xh;exports.createI18n=o0;exports.createSchema=xu;exports.createUploadApi=BS;exports.dateField=Li;exports.debounce=m2;exports.defaultOptions=Sh;exports.denullify=y2;exports.downloadFile=Vu;exports.dropdown=fy;exports.emailField=Vi;exports.filterRef=pO;exports.findBglFieldById=Ui;exports.findElementById=Nd;exports.fmtDate=VP;exports.formatDate=St;exports.formatString=uo;exports.frmRow=Ii;exports.fromJSONSchema=cP;exports.getBaseElementField=sy;exports.getBaseField=Tu;exports.getDatePartsMap=kd;exports.getFallbackSchema=Mh;exports.getI18n=Jr;exports.getNestedValue=Jo;exports.getOptionIcon=Ta;exports.getOptionLabel=Bu;exports.getOptionValue=Tr;exports.handleTimezone=u0;exports.iconBtn=cy;exports.iffer=v2;exports.img=dy;exports.initials=Bh;exports.ipapi=vy;exports.isDate=$c;exports.keyToLabel=tl;exports.listItem=py;exports.multiStepSchema=sP;exports.normalizeDimension=Nn;exports.normalizeOption=Eh;exports.normalizeText=wr;exports.normalizeURL=Mu;exports.numField=Pi;exports.parseQuery=Au;exports.pathKeyToURL=Gn;exports.pattern=i0;exports.pill=iO;exports.provideBagelFormState=C6;exports.queryFilter=Qw;exports.range=t2;exports.rangeField=Ri;exports.required=lP;exports.resolveI18n=je;exports.richText=Bi;exports.ripple=s0;exports.schema=iP;exports.search=n2;exports.searchItems=yy;exports.selectField=el;exports.showdown=q;exports.slctField=$h;exports.sleep=or;exports.slugify=h2;exports.telField=Fi;exports.timeAgo=lO;exports.timeDelta=Dn;exports.tryRun=Vh;exports.txt=uy;exports.txtField=Ai;exports.uploadField=Oi;exports.useAddToCalendar=T6;exports.useBagelFormState=S6;exports.useBglSchema=ld;exports.useDebounceFn=tr;exports.useDevice=sl;exports.useDialog=QL;exports.useDraggable=ql;exports.useElements=sO;exports.useEscape=g2;exports.useExcel=_v;exports.useFileUpload=Sg;exports.useForm=kh;exports.useI18n=Tt;exports.useLocalStore=bv;exports.useModal=V0;exports.usePolling=M6;exports.useSearch=_y;exports.useTheme=O6;exports.useToast=zI;exports.useValidateFieldValue=$v;exports.vDraggable=Hb;exports.vResize=aP;
|
|
498
|
+
`}var vr=null;function pc(e){const t=tO();if(vr===null)try{vr=new CSSStyleSheet,vr.replaceSync(t)}catch{vr=!1}if(vr===!1){const o=document.createElement("style");o.textContent=t,e instanceof Document?e.head.prepend(o):e.prepend(o)}else e.adoptedStyleSheets=[vr,...e.adoptedStyleSheets]}function nO(){if(typeof window>"u")return;window.ToggleEvent=window.ToggleEvent||hs;function e(c){return c!=null&&c.includes(":popover-open")&&(c=c.replace(QI,"$1.\\:popover-open")),c}Wo(Document.prototype,"querySelector",e),Wo(Document.prototype,"querySelectorAll",e),Wo(Element.prototype,"querySelector",e),Wo(Element.prototype,"querySelectorAll",e),Wo(Element.prototype,"matches",e),Wo(Element.prototype,"closest",e),Wo(DocumentFragment.prototype,"querySelectorAll",e),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;const c=(this.getAttribute("popover")||"").toLowerCase();return c===""||c=="auto"?"auto":c=="hint"?"hint":"manual"},set(c){c===null?this.removeAttribute("popover"):this.setAttribute("popover",c)}},showPopover:{enumerable:!0,configurable:!0,value(c={}){yu(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){Hr(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(c={}){return typeof c=="boolean"&&(c={force:c}),zr.get(this)==="showing"&&c.force===void 0||c.force===!1?Hr(this,!0,!0):(c.force===void 0||c.force===!0)&&yu(this),zr.get(this)==="showing"}}});const t=Element.prototype.attachShadow;t&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(c){const u=t.call(this,c);return pc(u),u}}});const o=HTMLElement.prototype.attachInternals;o&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){const c=o.call(this);return c.shadowRoot&&pc(c.shadowRoot),c}}});const r=new WeakMap;function a(c){Object.defineProperties(c.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(u){if(u===null)this.removeAttribute("popovertarget"),r.delete(this);else if(u instanceof Element)this.setAttribute("popovertarget",""),r.set(this,u);else throw new TypeError("popoverTargetElement must be an element or null")},get(){if(this.localName!=="button"&&this.localName!=="input"||this.localName==="input"&&this.type!=="reset"&&this.type!=="image"&&this.type!=="button"||this.disabled||this.form&&this.type==="submit")return null;const u=r.get(this);if(u&&u.isConnected)return u;if(u&&!u.isConnected)return r.delete(this),null;const d=Ur(this),f=this.getAttribute("popovertarget");return(d instanceof Document||d instanceof Rm)&&f&&d.getElementById(f)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){const u=(this.getAttribute("popovertargetaction")||"").toLowerCase();return u==="show"||u==="hide"?u:"toggle"},set(u){this.setAttribute("popovertargetaction",u)}}})}a(HTMLButtonElement),a(HTMLInputElement);const l=c=>{if(c.defaultPrevented)return;const u=c.composedPath(),d=u[0];if(!(d instanceof Element)||d!=null&&d.shadowRoot)return;const f=Ur(d);if(!(f instanceof Rm||f instanceof Document))return;const h=u.find(m=>{var p;return(p=m.matches)==null?void 0:p.call(m,"[popovertargetaction],[popovertarget]")});if(h){WI(h),c.preventDefault();return}},i=c=>{const u=c.key,d=c.target;!c.defaultPrevented&&d&&(u==="Escape"||u==="Esc")&&er(d.ownerDocument,!0,!0)};(c=>{c.addEventListener("click",l),c.addEventListener("keydown",i),c.addEventListener("pointerdown",Om),c.addEventListener("pointerup",Om)})(document),pc(document)}ZI()||nO();const oO={install:(e,t={})=>{e.directive("click-outside",z7),e.directive("ripple",s0),e.directive("pattern",i0),e.use(F7),e.use(L0),e.use(oy,t.toast||{}),e.use(b7,{themes:{"bgl-theme":{triggers:["click"],autoHide:!0,placement:"bottom"}}});const o=o0(t.i18n||{});e.use(o),TP({locale:()=>{try{const{locale:r}=Jr().global;return typeof r=="string"?r:r.value}catch{return"en"}}})}},rO=[["Afghanistan (افغانستان)","AF","93"],["Albania (Shqipëri)","AL","355"],["Algeria (الجزائر)","DZ","213"],["American Samoa","AS","1",5,["684"]],["Andorra","AD","376"],["Angola","AO","244"],["Anguilla","AI","1",6,["264"]],["Antigua and Barbuda","AG","1",7,["268"]],["Argentina","AR","54"],["Armenia (Հայաստան)","AM","374"],["Aruba","AW","297"],["Ascension Island","AC","247"],["Australia","AU","61",0],["Austria (Österreich)","AT","43"],["Azerbaijan (Azərbaycan)","AZ","994"],["Bahamas","BS","1",8,["242"]],["Bahrain (البحرين)","BH","973"],["Bangladesh (বাংলাদেশ)","BD","880"],["Barbados","BB","1",9,["246"]],["Belarus (Беларусь)","BY","375"],["Belgium (België)","BE","32"],["Belize","BZ","501"],["Benin (Bénin)","BJ","229"],["Bermuda","BM","1",10,["441"]],["Bhutan (འབྲུག)","BT","975"],["Bolivia","BO","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","BA","387"],["Botswana","BW","267"],["Brazil (Brasil)","BR","55"],["British Indian Ocean Territory","IO","246"],["British Virgin Islands","VG","1",11,["284"]],["Brunei","BN","673"],["Bulgaria (България)","BG","359"],["Burkina Faso","BF","226"],["Burundi (Uburundi)","BI","257"],["Cambodia (កម្ពុជា)","KH","855"],["Cameroon (Cameroun)","CM","237"],["Canada","CA","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","CV","238"],["Caribbean Netherlands","BQ","599",1,["3","4","7"]],["Cayman Islands","KY","1",12,["345"]],["Central African Republic (République centrafricaine)","CF","236"],["Chad (Tchad)","TD","235"],["Chile","CL","56"],["China (中国)","CN","86"],["Christmas Island","CX","61",2,["89164"]],["Cocos (Keeling) Islands","CC","61",1,["89162"]],["Colombia","CO","57"],["Comoros (جزر القمر)","KM","269"],["Congo (DRC) (République démocratique du Congo)","CD","243"],["Congo (Republic) (Congo-Brazzaville)","CG","242"],["Cook Islands","CK","682"],["Costa Rica","CR","506"],["Côte d’Ivoire","CI","225"],["Croatia (Hrvatska)","HR","385"],["Cuba","CU","53"],["Curaçao","CW","599",0],["Cyprus (Κύπρος)","CY","357"],["Czech Republic (Česká republika)","CZ","420"],["Denmark (Danmark)","DK","45"],["Djibouti","DJ","253"],["Dominica","DM","1",13,["767"]],["Dominican Republic (República Dominicana)","DO","1",2,["809","829","849"]],["Ecuador","EC","593"],["Egypt (مصر)","EG","20"],["El Salvador","SV","503"],["Equatorial Guinea (Guinea Ecuatorial)","GQ","240"],["Eritrea","ER","291"],["Estonia (Eesti)","EE","372"],["Eswatini","SZ","268"],["Ethiopia","ET","251"],["Falkland Islands (Islas Malvinas)","FK","500"],["Faroe Islands (Føroyar)","FO","298"],["Fiji","FJ","679"],["Finland (Suomi)","FI","358",0],["France","FR","33"],["French Guiana (Guyane française)","GF","594"],["French Polynesia (Polynésie française)","PF","689"],["Gabon","GA","241"],["Gambia","GM","220"],["Georgia (საქართველო)","GE","995"],["Germany (Deutschland)","DE","49"],["Ghana (Gaana)","GH","233"],["Gibraltar","GI","350"],["Greece (Ελλάδα)","GR","30"],["Greenland (Kalaallit Nunaat)","GL","299"],["Grenada","GD","1",14,["473"]],["Guadeloupe","GP","590",0],["Guam","GU","1",15,["671"]],["Guatemala","GT","502"],["Guernsey","GG","44",1,["1481","7781","7839","7911"]],["Guinea (Guinée)","GN","224"],["Guinea-Bissau (Guiné Bissau)","GW","245"],["Guyana","GY","592"],["Haiti","HT","509"],["Honduras","HN","504"],["Hong Kong (香港)","HK","852"],["Hungary (Magyarország)","HU","36"],["Iceland (Ísland)","IS","354"],["India (भारत)","IN","91"],["Indonesia","ID","62"],["Iran (ایران)","IR","98"],["Iraq (العراق)","IQ","964"],["Ireland","IE","353"],["Isle of Man","IM","44",2,["1624","74576","7524","7924","7624"]],["Israel (ישראל)","IL","972"],["Italy (Italia)","IT","39",0],["Jamaica","JM","1",4,["876","658"]],["Japan (日本)","JP","81"],["Jersey","JE","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (الأردن)","JO","962"],["Kazakhstan (Казахстан)","KZ","7",1,["33","7"]],["Kenya","KE","254"],["Kiribati","KI","686"],["Kosovo","XK","383"],["Kuwait (الكويت)","KW","965"],["Kyrgyzstan (Кыргызстан)","KG","996"],["Laos (ລາວ)","LA","856"],["Latvia (Latvija)","LV","371"],["Lebanon (لبنان)","LB","961"],["Lesotho","LS","266"],["Liberia","LR","231"],["Libya (ليبيا)","LY","218"],["Liechtenstein","LI","423"],["Lithuania (Lietuva)","LT","370"],["Luxembourg","LU","352"],["Macau (澳門)","MO","853"],["Madagascar (Madagasikara)","MG","261"],["Malawi","MW","265"],["Malaysia","MY","60"],["Maldives","MV","960"],["Mali","ML","223"],["Malta","MT","356"],["Marshall Islands","MH","692"],["Martinique","MQ","596"],["Mauritania (موريتانيا)","MR","222"],["Mauritius (Moris)","MU","230"],["Mayotte","YT","262",1,["269","639"]],["Mexico (México)","MX","52"],["Micronesia","FM","691"],["Moldova (Republica Moldova)","MD","373"],["Monaco","MC","377"],["Mongolia (Монгол)","MN","976"],["Montenegro (Crna Gora)","ME","382"],["Montserrat","MS","1",16,["664"]],["Morocco (المغرب)","MA","212",0],["Mozambique (Moçambique)","MZ","258"],["Myanmar (Burma) (မြန်မာ)","MM","95"],["Namibia (Namibië)","NA","264"],["Nauru","NR","674"],["Nepal (नेपाल)","NP","977"],["Netherlands (Nederland)","NL","31"],["New Caledonia (Nouvelle-Calédonie)","NC","687"],["New Zealand","NZ","64"],["Nicaragua","NI","505"],["Niger (Nijar)","NE","227"],["Nigeria","NG","234"],["Niue","NU","683"],["Norfolk Island","NF","672"],["North Korea (조선 민주주의 인민 공화국)","KP","850"],["North Macedonia (Северна Македонија)","MK","389"],["Northern Mariana Islands","MP","1",17,["670"]],["Norway (Norge)","NO","47",0],["Oman (عُمان)","OM","968"],["Pakistan (پاکستان)","PK","92"],["Palau","PW","680"],["Palestine (فلسطين)","PS","970"],["Panama (Panamá)","PA","507"],["Papua New Guinea","PG","675"],["Paraguay","PY","595"],["Peru (Perú)","PE","51"],["Philippines","PH","63"],["Poland (Polska)","PL","48"],["Portugal","PT","351"],["Puerto Rico","PR","1",3,["787","939"]],["Qatar (قطر)","QA","974"],["Réunion (La Réunion)","RE","262",0],["Romania (România)","RO","40"],["Russia (Россия)","RU","7",0],["Rwanda","RW","250"],["Saint Barthélemy","BL","590",1],["Saint Helena","SH","290"],["Saint Kitts and Nevis","KN","1",18,["869"]],["Saint Lucia","LC","1",19,["758"]],["Saint Martin (Saint-Martin (partie française))","MF","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","PM","508"],["Saint Vincent and the Grenadines","VC","1",20,["784"]],["Samoa","WS","685"],["San Marino","SM","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","ST","239"],["Saudi Arabia (المملكة العربية السعودية)","SA","966"],["Senegal (Sénégal)","SN","221"],["Serbia (Србија)","RS","381"],["Seychelles","SC","248"],["Sierra Leone","SL","232"],["Singapore","SG","65"],["Sint Maarten","SX","1",21,["721"]],["Slovakia (Slovensko)","SK","421"],["Slovenia (Slovenija)","SI","386"],["Solomon Islands","SB","677"],["Somalia (Soomaaliya)","SO","252"],["South Africa","ZA","27"],["South Korea (대한민국)","KR","82"],["South Sudan (جنوب السودان)","SS","211"],["Spain (España)","ES","34"],["Sri Lanka (ශ්රී ලංකාව)","LK","94"],["Sudan (السودان)","SD","249"],["Suriname","SR","597"],["Svalbard and Jan Mayen","SJ","47",1,["79"]],["Sweden (Sverige)","SE","46"],["Switzerland (Schweiz)","CH","41"],["Syria (سوريا)","SY","963"],["Taiwan (台灣)","TW","886"],["Tajikistan","TJ","992"],["Tanzania","TZ","255"],["Thailand (ไทย)","TH","66"],["Timor-Leste","TL","670"],["Togo","TG","228"],["Tokelau","TK","690"],["Tonga","TO","676"],["Trinidad and Tobago","TT","1",22,["868"]],["Tunisia (تونس)","TN","216"],["Turkey (Türkiye)","TR","90"],["Turkmenistan","TM","993"],["Turks and Caicos Islands","TC","1",23,["649"]],["Tuvalu","TV","688"],["U.S. Virgin Islands","VI","1",24,["340"]],["Uganda","UG","256"],["Ukraine (Україна)","UA","380"],["United Arab Emirates (الإمارات العربية المتحدة)","AE","971"],["United Kingdom","GB","44",0],["United States","US","1",0],["Uruguay","UY","598"],["Uzbekistan (Oʻzbekiston)","UZ","998"],["Vanuatu","VU","678"],["Vatican City (Città del Vaticano)","VA","39",1,["06698"]],["Venezuela","VE","58"],["Vietnam (Việt Nam)","VN","84"],["Wallis and Futuna (Wallis-et-Futuna)","WF","681"],["Western Sahara (الصحراء الغربية)","EH","212",1,["5288","5289"]],["Yemen (اليمن)","YE","967"],["Zambia","ZM","260"],["Zimbabwe","ZW","263"],["Åland Islands","AX","358",1,["18"]]],iy=rO.map(([e,t,o,r=0,a=[]])=>({name:e,iso2:t,dialCode:o,priority:r,areaCodes:a}));function aO(e){const t={year:"year",month:"month",week:"week",day:"day",hour:"hour",minute:"minute",second:"second",ago:"ago",in:"in",justNow:"Just now"};try{const r=Jr().global.messages,a=r[e]||r.en;return(a==null?void 0:a.timeAgo)??t}catch{return t}}function lO(){try{const e=Jr(),{locale:t}=e.global,o=typeof t=="string"?t:t.value;return["en","es","fr","he","it","ru"].includes(o)?o:"en"}catch{return"en"}}function iO(e,t){if(!e)return"";typeof e=="string"&&(e=new Date(e));const o=typeof t=="string"?t:(t==null?void 0:t.lang)||lO(),a=(typeof t=="object"&&t.mode||"relative")==="relative",l=Math.floor((e.getTime()-Date.now())/1e3),i=[{label:"year",seconds:31536e3},{label:"month",seconds:2592e3},{label:"week",seconds:604800},{label:"day",seconds:86400},{label:"hour",seconds:3600},{label:"minute",seconds:60},{label:"second",seconds:1}],s=aO(o),c=u=>s[u];for(const u of i){const d=Math.floor(Math.abs(l)/u.seconds);if(d>=1){const f=a&&l<0?` ${s.ago}`:"",h=a&&l>0&&s.in!=="in"?`${s.in} `:"";if(o==="he"){const p=c(u.label),g=d===1?p.singular:p.plural,_=a?l<0?`${s.ago} `:l>0?`${s.in} `:"":"";if(u.label==="day"&&l>0){const v=Math.floor(Math.abs(l)%86400/3600),y=s.hour,b=v===1?y.singular:y.plural,$=d===1?g:`${d} ${g}`,w=v>0?v===1?` ${b}`:` ${v} ${b}`:"";return`${_}${$}${w}`}return`${_}${d===1?g:`${d} ${g}`}`}const m=c(u.label);if(u.label==="day"&&l>0){const p=Math.floor(Math.abs(l)%86400/3600),g=p>1?`${s.hour}s`:s.hour;return`${h}${d} ${m}${p>0?` ${p} ${g}`:""}${f}`}return`${h}${d} ${m}${f}`}}return s.justNow}function Ci(e,t,o){let r,a="",l,i={};if(typeof e=="object"&&e!==null){i=e;const{id:s,text:c,icon:u}=i;r=s,a=c??"",l=u}else r=e,t!=null&&(typeof t=="string"&&t.length<=30&&!t.includes(" ")&&(t.includes("-")||t.includes("_")||t.length<=12)&&t===t.toLowerCase()?(l=t,o&&(i=o)):(a=t,o&&(i=o)));return{$el:"btn",id:r,class:i.class,vIf:i.vIf,style:i.style,onClick:i.onClick,attrs:{value:a||(i.text??"")||"",variant:i.variant,size:i.size,disabled:i.disabled,loading:i.loading,icon:l??i.icon,iconPosition:i.iconPosition,href:i.href,target:i.target}}}function sy(e,t,o={}){return{$el:e,id:t,class:o.class,vIf:o.vIf,style:o.style,attrs:o.attrs||{},onClick:o.onClick}}function cy(e,t,o){return t!=null&&e!=null?Ci(e,t,o||{}):Ci({id:e,icon:t,...o})}function uy(e,t,o){let r,a={};if(typeof e=="object"&&e!==null){a=e;const{id:l}=a;r=l}else r=e,t!=null&&(typeof o=="string"?a={tag:o,text:t}:o?a={...o,text:t}:a={text:t});return{$el:a.tag||"p",id:r,class:a.class,vIf:a.vIf,style:a.style,attrs:{text:a.text??"",size:a.size,weight:a.weight,color:a.color,align:a.align},transform:a.transform}}function dy(e,t,o){let r,a={};if(typeof e=="object"&&e!==null){a=e;const{id:l}=a;r=l}else r=e,t!=null&&(typeof o=="string"?a={alt:o}:o&&(a=o));return{$el:"img",id:r,class:a.class,vIf:a.vIf,style:a.style,transform:a.transform,attrs:{alt:a.alt,width:a.width,height:a.height,loading:a.loading,fit:a.fit,rounded:a.rounded,fallback:a.fallback}}}function sO(e){return{$el:"pill",id:e==null?void 0:e.id,class:e==null?void 0:e.class,vIf:e==null?void 0:e.vIf,style:e==null?void 0:e.style,attrs:(e==null?void 0:e.attrs)||{}}}function fy(...e){let t,o=[];if(e.length>0){const a=e[0];typeof a=="object"&&a!==null&&"$el"in a?o=e:(t=a,o=e.slice(1))}const r={};return t!=null&&t.attrs&&Object.assign(r,t.attrs),t&&(t.options!=null&&(r.options=t.options),t.placeholder!=null&&(r.placeholder=t.placeholder),t.searchable!=null&&(r.searchable=t.searchable),t.multiselect!=null&&(r.multiselect=t.multiselect),t.clearable!=null&&(r.clearable=t.clearable),t.onSelect!=null&&(r.onSelect=t.onSelect),t.onSearch!=null&&(r.onSearch=t.onSearch)),{$el:n.markRaw(on),class:t==null?void 0:t.class,vIf:t==null?void 0:t.vIf,style:t==null?void 0:t.style,attrs:r,children:o}}function py(e,t){return{$el:n.markRaw(Xn),id:t==null?void 0:t.id,class:t==null?void 0:t.class,vIf:t==null?void 0:t.vIf,style:t==null?void 0:t.style,onClick:t==null?void 0:t.onClick,attrs:{thin:!0,title:e??(t==null?void 0:t.title)??"",subtitle:t==null?void 0:t.subtitle,icon:t==null?void 0:t.icon,avatar:t==null?void 0:t.avatar,badge:t==null?void 0:t.badge,actions:t==null?void 0:t.actions,clickable:t==null?void 0:t.clickable,divider:t==null?void 0:t.divider}}}function my(e,t,o){return{$el:"div",id:e,class:(o==null?void 0:o.class)??"flex gap-2",vIf:o==null?void 0:o.vIf,style:o==null?void 0:o.style,attrs:(o==null?void 0:o.attrs)||{},children:t}}function Nd(e,t){for(const o of t){if(o.id===e)return o;if(o.children&&o.children.length>0){const r=Nd(e,o.children);if(r)return r}}}function Dd(e,t,o){var a;let r;return typeof t=="string"?r=t:o=t,{$el:"div",id:e,class:(o==null?void 0:o.class)??"column-class",vIf:o==null?void 0:o.vIf,style:o==null?void 0:o.style,transform:o==null?void 0:o.transform,attrs:{...o==null?void 0:o.attrs,label:r??((a=o==null?void 0:o.attrs)==null?void 0:a.label)??""},children:o==null?void 0:o.children}}const hy=Dd;function cO(){return{btn:Ci,iconBtn:cy,txt:uy,img:dy,dropdown:fy,listItem:py,container:my,findElementById:Nd,getBaseElementField:sy,col:hy,column:Dd}}const uO={"":/<[^>]*>?/g," ":/ /g,'"':/"/g,"'":/'/g,"&":/&/g,"<":/</g,">":/>/g};function dO(e){return e?Object.entries(uO).reduce((t,[o,r])=>t.replace(r,o),e):""}const fO=/[\p{N}\p{L}\s]/gu;function mc(e){var t;return((t=e.match(fO))==null?void 0:t.join("").toLowerCase())??""}function pO(e,t){let o=e;for(const r of t.split(".")){if(o==null||typeof o!="object")return;o=o[r]}return o}function gy(e,t=""){return!e||typeof e!="object"?[]:Object.keys(e).flatMap(o=>{const r=e[o],a=t?`${t}.${o}`:o;return r&&typeof r=="object"&&!Array.isArray(r)&&!(r instanceof Date)?gy(r,a):[a]})}function Fm(e){return e==null?"":typeof e=="string"?dO(e):typeof e=="number"||typeof e=="boolean"?String(e):e instanceof Date?e.toISOString():""}function mO(e=[],t={}){const{minChars:o=1}=t,r=n.shallowReactive({_list:e,searchTerm:""});let a=[];function l(c,u=new WeakSet){if(u.has(c))return"";u.add(c);const d=t.keys??gy(c),f=[];for(const h of d){const m=pO(c,h);if(Array.isArray(m))for(const p of m)if(p&&typeof p=="object"&&!(p instanceof Date))f.push(l(p,u));else{const g=Fm(p);g&&f.push(mc(g))}else{const p=Fm(m);p&&f.push(mc(p))}}return f.join(" ")}function i(c){a=c.map(u=>l(u))}i(e);const s=n.computed(()=>{let c=r._list;if(r.searchTerm.length>=o){const u=mc(r.searchTerm).split(/\s+/).filter(d=>d.length>0);u.length>0&&(c=c.filter((d,f)=>{const h=a[f]??"";return u.every(m=>h.includes(m))}))}if(t.filter){const u=n.isRef(t.filter)?t.filter.value:t.filter;c=c.filter(u)}return c});return{get searchTerm(){return r.searchTerm},set searchTerm(c){r.searchTerm=c},get value(){return s.value},set value(c){r._list=c,i(c)},get length(){return s.value.length},[Symbol.iterator](){return s.value[Symbol.iterator]()}}}async function vy(){let e=sessionStorage.getItem("ipapi");return e||(e=(await _t.get("https://ipapi.co/json/")).data,e=JSON.stringify(e),sessionStorage.setItem("ipapi",e)),JSON.parse(e)}const hO={"":/<[^>]*>?/g," ":/ /g,'"':/"/g,"'":/'/g,"&":/&/g,"<":/</g,">":/>/g};function xd(e){return e?Object.entries(hO).reduce((t,[o,r])=>t.replace(r,o),e):""}const gO=/[\p{N}\p{L}\s]/gu;function wr(e){var t;return((t=e.match(gO))==null?void 0:t.join("").toLowerCase())??""}function vO(e,t){const o=t.split(".");let r=e;for(const a of o){if(r==null||typeof r!="object")return;r=r[a]}return r}function Dl(e,t){let o=0;if(e.length===0)return 0;let r=0;for(const l of t)if(e.includes(l)){const i=new RegExp(l,"g"),s=e.match(i);s&&(r+=s.length*l.length),o+=1,e.split(/\s+/).includes(l)&&(o+=.5),e.startsWith(l)&&(o+=.5)}const a=Math.min(1,r/e.length);return o*=1+a*2,o}function xl(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function yO(e){return e==null?"":typeof e=="string"?xd(e):typeof e=="number"||typeof e=="boolean"?String(e):typeof e=="object"&&e instanceof Date?e.toISOString():""}function yy(e){const{searchTerm:t,items:o=[],keysToSearch:r,fieldWeights:a={},minChars:l=2}=e,i=n.toValue(t),s=n.toValue(o)||[];if(!i||i.length<l)return s;const c=wr(i).split(/\s+/).filter(_=>_.length>1);if(c.length===0)return s;const u={name:2,first_name:2,last_name:2,title:2,headline:2,description:.7,subtitle:.7,bio:.7,content:.7,body:.7,email:.7,phone:.7,id:.3,created_at:.3,updated_at:.3};function d(_){if(_ in a){const y=a[_];if(typeof y=="number")return y}const v=_.split(".").pop()||"";return v in u?u[v]:1}function f(_,v=""){return!_||typeof _!="object"?[]:Object.keys(_).flatMap(y=>{const b=_[y],$=v?`${v}.${y}`:y;return b&&typeof b=="object"&&!Array.isArray(b)?[$,...f(b,$)]:[$]})}function h(_){let v=0;if(xl(_)){const b=wr(String(_));return Dl(b,c)}if(Array.isArray(_)){for(const b of _)if(xl(b)){const $=wr(String(b));v+=Dl($,c)}return v}const y=r||f(_);for(const b of y){const $=vO(_,String(b));if($==null)continue;if(Array.isArray($)){for(const N of $)if(xl(N)){const M=xd(String(N)),V=wr(M),k=Dl(V,c),C=d(String(b));v+=k*C}continue}if(typeof $=="object"&&!xl($))continue;const w=yO($),E=wr(w),S=Dl(E,c),x=d(String(b));v+=S*x}return v}const p=s.map(_=>{const v=h(_);return[_,v]}).filter(([,_])=>_>0);let g=p;if(p.length>0){const _=Math.max(...p.map(([,v])=>v));if(_>5){const v=_*.25;g=p.filter(([,y])=>y>=v)}else if(_>2){const v=_*.15;g=p.filter(([,y])=>y>=v)}}return g.sort(([,_],[,v])=>v-_).map(([_])=>_)}function _y(e,t){let o,r;const a=Array.isArray(e),l=typeof e=="function",s=typeof e=="object"&&e!==null&&"value"in e&&!("items"in e);a||l||s?(r=n.ref(""),o={items:e,searchTerm:r,...t}):o=e;const{searchTerm:u,minChars:d=2,serverSearch:f,debounceMs:h=300}=o,m=n.ref(!1),p=n.ref([]);let g=null;f&&n.watch(()=>n.toValue(u),async S=>{g!==null&&clearTimeout(g);const x=typeof S=="string"?S:"";if(x.length<d&&d>0){p.value=[];return}g=window.setTimeout(async()=>{try{m.value=!0,p.value=await f(x)}catch(N){console.error("Server search error:",N),p.value=[]}finally{m.value=!1}},h)},{immediate:!0});const _=()=>n.toValue(u),v=()=>{const S=_();return f&&(S&&typeof S=="string"&&S.length>=d||d===0)?p.value:yy(o)},y=n.computed(()=>v()),b=n.computed(()=>y.value.length),$=n.computed(()=>b.value>0),w=n.computed(()=>{const S=_();return!!S&&typeof S=="string"&&S.length>=d}),E={results:y,resultCount:b,hasResults:$,isSearching:w,isLoading:n.computed(()=>m.value)};return r&&(E.searchTerm=r),E}exports.$=Ct;exports.Accordion=ky;exports.AccordionItem=Ny;exports.AddToCalendar=By;exports.AddressSearch=xy;exports.Alert=Iy;exports.AppContent=b5;exports.AppLayout=E5;exports.AppSidebar=B5;exports.ArrayInput=ua;exports.Avatar=Um;exports.Badge=X1;exports.BagelForm=qr;exports.BagelMultiStepForm=D2;exports.BagelVue=oO;exports.BarChart=Hy;exports.BglForm=qr;exports.BglVideo=$u;exports.BottomMenu=V5;exports.Btn=ee;exports.Calendar=hb;exports.Card=en;exports.Carousel=wb;exports.CheckInput=Ut;exports.Checkbox=j2;exports.CodeEditor=Lu;exports.ColorInput=Wn;exports.DataPreview=xb;exports.DataTable=rh;exports.DateInput=Da;exports.DatePicker=Lh;exports.Dialog=ns;exports.DialogConfirm=kv;exports.DialogForm=r0;exports.DialogPlugin=tP;exports.DialogSymbol=wd;exports.DragOver=gc;exports.Draggable=Ub;exports.Dropdown=on;exports.EMAIL_REGEX=Bl;exports.EmailInput=Pu;exports.FORM_STATE_KEY=rd;exports.FieldArray=ca;exports.FieldSetVue=zw;exports.Filter=Kw;exports.Flag=_c;exports.FormFlow=bd;exports.IMAGE_FORMATS=Ph;exports.IMAGE_FORMATS_REGEXP=Jl;exports.Icon=Te;exports.IframeVue=C8;exports.Image=Mr;exports.ImportData=h5;exports.JSONInput=M$;exports.KpiCard=Qy;exports.Layout=P5;exports.LineChart=v1;exports.ListItem=Xn;exports.ListView=Xg;exports.Loading=Po;exports.MapEmbed=pD;exports.MarkdownEditor=R$;exports.Menu=bD;exports.Modal=mn;exports.ModalConfirm=Kg;exports.ModalForm=Jg;exports.ModalPlugin=L0;exports.MultiStepForm=SP;exports.NavBar=MD;exports.NumberInput=Yn;exports.OTP=Z$;exports.PageTitle=Zg;exports.Pagination=RD;exports.PasswordInput=Zh;exports.PieChart=U1;exports.Pill=Wc;exports.RadioGroup=Qh;exports.RangeInput=eg;exports.Rating=qD;exports.RichText=zu;exports.RouterWrapper=XD;exports.SelectBtn=lT;exports.SelectInput=vt;exports.SidebarMenu=R5;exports.SignaturePad=dT;exports.Skeleton=ui;exports.Slider=ex;exports.Spreadsheet=ev;exports.Swiper=gv;exports.TabbedLayout=W5;exports.TableField=a4;exports.TableSchema=rh;exports.Tabs=G5;exports.TabsBody=Y5;exports.TabsNav=Qu;exports.TelInput=Ju;exports.TextInput=et;exports.Title=vv;exports.ToastPlugin=oy;exports.ToggleInput=es;exports.ToolBar=v6;exports.TopBar=w6;exports.UploadInput=Aa;exports.VIDEO_FORMATS=Ih;exports.VIDEO_FORMATS_REGEXP=Oh;exports.Zoomer=yv;exports.allCountries=iy;exports.anyOf=e2;exports.appendScript=nl;exports.appendStyle=kc;exports.arrField=Du;exports.bagelFormUtils=Zw;exports.bagelinkLocales=du;exports.bglForm=Nu;exports.bindAttrs=wc;exports.btn=Ci;exports.checkField=Mi;exports.classify=Ah;exports.clearHtml=xd;exports.col=hy;exports.colorField=zi;exports.column=Dd;exports.container=my;exports.copyText=xh;exports.createI18n=o0;exports.createSchema=xu;exports.createUploadApi=BS;exports.dateField=Li;exports.debounce=m2;exports.defaultOptions=Sh;exports.denullify=y2;exports.downloadFile=Vu;exports.dropdown=fy;exports.emailField=Vi;exports.filterRef=mO;exports.findBglFieldById=Ui;exports.findElementById=Nd;exports.fmtDate=LP;exports.formatDate=St;exports.formatString=uo;exports.frmRow=Ii;exports.fromJSONSchema=uP;exports.getBaseElementField=sy;exports.getBaseField=Tu;exports.getDatePartsMap=kd;exports.getFallbackSchema=Mh;exports.getI18n=Jr;exports.getNestedValue=Jo;exports.getOptionIcon=Ta;exports.getOptionLabel=Bu;exports.getOptionValue=Tr;exports.handleTimezone=u0;exports.iconBtn=cy;exports.iffer=v2;exports.img=dy;exports.initials=Bh;exports.ipapi=vy;exports.isDate=$c;exports.keyToLabel=tl;exports.listItem=py;exports.multiStepSchema=cP;exports.normalizeDimension=Nn;exports.normalizeOption=Eh;exports.normalizeText=wr;exports.normalizeURL=Mu;exports.numField=Pi;exports.parseQuery=Au;exports.pathKeyToURL=Gn;exports.pattern=i0;exports.pill=sO;exports.provideBagelFormState=C6;exports.queryFilter=Qw;exports.range=t2;exports.rangeField=Ri;exports.required=iP;exports.resolveI18n=je;exports.richText=Bi;exports.ripple=s0;exports.schema=sP;exports.search=n2;exports.searchItems=yy;exports.selectField=el;exports.showdown=q;exports.slctField=$h;exports.sleep=or;exports.slugify=h2;exports.telField=Fi;exports.timeAgo=iO;exports.timeDelta=Dn;exports.tryRun=Vh;exports.txt=uy;exports.txtField=Ai;exports.uploadField=Oi;exports.useAddToCalendar=T6;exports.useBagelFormState=S6;exports.useBglSchema=ld;exports.useDebounceFn=tr;exports.useDevice=sl;exports.useDialog=eP;exports.useDraggable=ql;exports.useElements=cO;exports.useEscape=g2;exports.useExcel=_v;exports.useFileUpload=Sg;exports.useForm=kh;exports.useI18n=Tt;exports.useLocalStore=bv;exports.useModal=V0;exports.usePolling=M6;exports.useResizeObserver=V6;exports.useSearch=_y;exports.useTheme=R6;exports.useToast=UI;exports.useValidateFieldValue=$v;exports.vDraggable=Hb;exports.vResize=lP;
|