diff --git a/public/build/assets/app-BAFDKbij.js b/public/build/assets/app-BAFDKbij.js new file mode 100644 index 000000000..7c6007ddf --- /dev/null +++ b/public/build/assets/app-BAFDKbij.js @@ -0,0 +1,237 @@ +var aE=Object.defineProperty;var lE=(e,t,n)=>t in e?aE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ze=(e,t,n)=>lE(e,typeof t!="symbol"?t+"":t,n);const oE="modulepreload",uE=function(e){return"/build/"+e},Vv={},Vt=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),u=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.allSettled(n.map(c=>{if(c=uE(c),c in Vv)return;Vv[c]=!0;const h=c.endsWith(".css"),f=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${f}`))return;const p=document.createElement("link");if(p.rel=h?"stylesheet":oE,h||(p.as="script"),p.crossOrigin="",p.href=c,u&&p.setAttribute("nonce",u),document.head.appendChild(p),h)return new Promise((m,y)=>{p.addEventListener("load",m),p.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${c}`)))})}))}function a(o){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=o,window.dispatchEvent(u),!u.defaultPrevented)throw o}return s.then(o=>{for(const u of o||[])u.status==="rejected"&&a(u.reason);return t().catch(a)})};function k0(e,t){return function(){return e.apply(t,arguments)}}const{toString:cE}=Object.prototype,{getPrototypeOf:Gh}=Object,{iterator:Pc,toStringTag:S0}=Symbol,Lc=(e=>t=>{const n=cE.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),_s=e=>(e=e.toLowerCase(),t=>Lc(t)===e),Ic=e=>t=>typeof t===e,{isArray:xl}=Array,co=Ic("undefined");function dE(e){return e!==null&&!co(e)&&e.constructor!==null&&!co(e.constructor)&&Cr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const T0=_s("ArrayBuffer");function fE(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&T0(e.buffer),t}const hE=Ic("string"),Cr=Ic("function"),C0=Ic("number"),Nc=e=>e!==null&&typeof e=="object",pE=e=>e===!0||e===!1,Yu=e=>{if(Lc(e)!=="object")return!1;const t=Gh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(S0 in e)&&!(Pc in e)},mE=_s("Date"),gE=_s("File"),vE=_s("Blob"),yE=_s("FileList"),_E=e=>Nc(e)&&Cr(e.pipe),bE=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Cr(e.append)&&((t=Lc(e))==="formdata"||t==="object"&&Cr(e.toString)&&e.toString()==="[object FormData]"))},wE=_s("URLSearchParams"),[xE,kE,SE,TE]=["ReadableStream","Request","Response","Headers"].map(_s),CE=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Mo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),xl(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const ia=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window,E0=e=>!co(e)&&e!==ia;function ch(){const{caseless:e}=E0(this)&&this||{},t={},n=(r,s)=>{const a=e&&A0(t,s)||s;Yu(t[a])&&Yu(r)?t[a]=ch(t[a],r):Yu(r)?t[a]=ch({},r):xl(r)?t[a]=r.slice():t[a]=r};for(let r=0,s=arguments.length;r(Mo(t,(s,a)=>{n&&Cr(s)?e[a]=k0(s,n):e[a]=s},{allOwnKeys:r}),e),EE=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),OE=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ME=(e,t,n,r)=>{let s,a,o;const u={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),a=s.length;a-- >0;)o=s[a],(!r||r(o,e,t))&&!u[o]&&(t[o]=e[o],u[o]=!0);e=n!==!1&&Gh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},RE=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},DE=e=>{if(!e)return null;if(xl(e))return e;let t=e.length;if(!C0(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},PE=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Gh(Uint8Array)),LE=(e,t)=>{const r=(e&&e[Pc]).call(e);let s;for(;(s=r.next())&&!s.done;){const a=s.value;t.call(e,a[0],a[1])}},IE=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},NE=_s("HTMLFormElement"),VE=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Fv=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),FE=_s("RegExp"),O0=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Mo(n,(s,a)=>{let o;(o=t(s,a,e))!==!1&&(r[a]=o||s)}),Object.defineProperties(e,r)},$E=e=>{O0(e,(t,n)=>{if(Cr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Cr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},BE=(e,t)=>{const n={},r=s=>{s.forEach(a=>{n[a]=!0})};return xl(e)?r(e):r(String(e).split(t)),n},HE=()=>{},UE=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function jE(e){return!!(e&&Cr(e.append)&&e[S0]==="FormData"&&e[Pc])}const qE=e=>{const t=new Array(10),n=(r,s)=>{if(Nc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const a=xl(r)?[]:{};return Mo(r,(o,u)=>{const c=n(o,s+1);!co(c)&&(a[u]=c)}),t[s]=void 0,a}}return r};return n(e,0)},WE=_s("AsyncFunction"),YE=e=>e&&(Nc(e)||Cr(e))&&Cr(e.then)&&Cr(e.catch),M0=((e,t)=>e?setImmediate:t?((n,r)=>(ia.addEventListener("message",({source:s,data:a})=>{s===ia&&a===n&&r.length&&r.shift()()},!1),s=>{r.push(s),ia.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Cr(ia.postMessage)),zE=typeof queueMicrotask<"u"?queueMicrotask.bind(ia):typeof process<"u"&&process.nextTick||M0,KE=e=>e!=null&&Cr(e[Pc]),be={isArray:xl,isArrayBuffer:T0,isBuffer:dE,isFormData:bE,isArrayBufferView:fE,isString:hE,isNumber:C0,isBoolean:pE,isObject:Nc,isPlainObject:Yu,isReadableStream:xE,isRequest:kE,isResponse:SE,isHeaders:TE,isUndefined:co,isDate:mE,isFile:gE,isBlob:vE,isRegExp:FE,isFunction:Cr,isStream:_E,isURLSearchParams:wE,isTypedArray:PE,isFileList:yE,forEach:Mo,merge:ch,extend:AE,trim:CE,stripBOM:EE,inherits:OE,toFlatObject:ME,kindOf:Lc,kindOfTest:_s,endsWith:RE,toArray:DE,forEachEntry:LE,matchAll:IE,isHTMLForm:NE,hasOwnProperty:Fv,hasOwnProp:Fv,reduceDescriptors:O0,freezeMethods:$E,toObjectSet:BE,toCamelCase:VE,noop:HE,toFiniteNumber:UE,findKey:A0,global:ia,isContextDefined:E0,isSpecCompliantForm:jE,toJSONObject:qE,isAsyncFn:WE,isThenable:YE,setImmediate:M0,asap:zE,isIterable:KE};function ft(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}be.inherits(ft,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:be.toJSONObject(this.config),code:this.code,status:this.status}}});const R0=ft.prototype,D0={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{D0[e]={value:e}});Object.defineProperties(ft,D0);Object.defineProperty(R0,"isAxiosError",{value:!0});ft.from=(e,t,n,r,s,a)=>{const o=Object.create(R0);return be.toFlatObject(e,o,function(c){return c!==Error.prototype},u=>u!=="isAxiosError"),ft.call(o,e.message,t,n,r,s),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const GE=null;function dh(e){return be.isPlainObject(e)||be.isArray(e)}function P0(e){return be.endsWith(e,"[]")?e.slice(0,-2):e}function $v(e,t,n){return e?e.concat(t).map(function(s,a){return s=P0(s),!n&&a?"["+s+"]":s}).join(n?".":""):t}function JE(e){return be.isArray(e)&&!e.some(dh)}const ZE=be.toFlatObject(be,{},null,function(t){return/^is[A-Z]/.test(t)});function Vc(e,t,n){if(!be.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=be.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,E){return!be.isUndefined(E[b])});const r=n.metaTokens,s=n.visitor||f,a=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&be.isSpecCompliantForm(t);if(!be.isFunction(s))throw new TypeError("visitor must be a function");function h(_){if(_===null)return"";if(be.isDate(_))return _.toISOString();if(!c&&be.isBlob(_))throw new ft("Blob is not supported. Use a Buffer instead.");return be.isArrayBuffer(_)||be.isTypedArray(_)?c&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function f(_,b,E){let H=_;if(_&&!E&&typeof _=="object"){if(be.endsWith(b,"{}"))b=r?b:b.slice(0,-2),_=JSON.stringify(_);else if(be.isArray(_)&&JE(_)||(be.isFileList(_)||be.endsWith(b,"[]"))&&(H=be.toArray(_)))return b=P0(b),H.forEach(function(x,O){!(be.isUndefined(x)||x===null)&&t.append(o===!0?$v([b],O,a):o===null?b:b+"[]",h(x))}),!1}return dh(_)?!0:(t.append($v(E,b,a),h(_)),!1)}const p=[],m=Object.assign(ZE,{defaultVisitor:f,convertValue:h,isVisitable:dh});function y(_,b){if(!be.isUndefined(_)){if(p.indexOf(_)!==-1)throw Error("Circular reference detected in "+b.join("."));p.push(_),be.forEach(_,function(H,V){(!(be.isUndefined(H)||H===null)&&s.call(t,H,be.isString(V)?V.trim():V,b,m))===!0&&y(H,b?b.concat(V):[V])}),p.pop()}}if(!be.isObject(e))throw new TypeError("data must be an object");return y(e),t}function Bv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Jh(e,t){this._pairs=[],e&&Vc(e,this,t)}const L0=Jh.prototype;L0.append=function(t,n){this._pairs.push([t,n])};L0.toString=function(t){const n=t?function(r){return t.call(this,r,Bv)}:Bv;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function XE(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function I0(e,t,n){if(!t)return e;const r=n&&n.encode||XE;be.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let a;if(s?a=s(t,n):a=be.isURLSearchParams(t)?t.toString():new Jh(t,n).toString(r),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Hv{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){be.forEach(this.handlers,function(r){r!==null&&t(r)})}}const N0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},QE=typeof URLSearchParams<"u"?URLSearchParams:Jh,eO=typeof FormData<"u"?FormData:null,tO=typeof Blob<"u"?Blob:null,nO={isBrowser:!0,classes:{URLSearchParams:QE,FormData:eO,Blob:tO},protocols:["http","https","file","blob","url","data"]},Zh=typeof window<"u"&&typeof document<"u",fh=typeof navigator=="object"&&navigator||void 0,rO=Zh&&(!fh||["ReactNative","NativeScript","NS"].indexOf(fh.product)<0),sO=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",iO=Zh&&window.location.href||"http://localhost",aO=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Zh,hasStandardBrowserEnv:rO,hasStandardBrowserWebWorkerEnv:sO,navigator:fh,origin:iO},Symbol.toStringTag,{value:"Module"})),nr={...aO,...nO};function lO(e,t){return Vc(e,new nr.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,a){return nr.isNode&&be.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function oO(e){return be.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function uO(e){const t={},n=Object.keys(e);let r;const s=n.length;let a;for(r=0;r=n.length;return o=!o&&be.isArray(s)?s.length:o,c?(be.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!u):((!s[o]||!be.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],a)&&be.isArray(s[o])&&(s[o]=uO(s[o])),!u)}if(be.isFormData(e)&&be.isFunction(e.entries)){const n={};return be.forEachEntry(e,(r,s)=>{t(oO(r),s,n,0)}),n}return null}function cO(e,t,n){if(be.isString(e))try{return(t||JSON.parse)(e),be.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ro={transitional:N0,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,a=be.isObject(t);if(a&&be.isHTMLForm(t)&&(t=new FormData(t)),be.isFormData(t))return s?JSON.stringify(V0(t)):t;if(be.isArrayBuffer(t)||be.isBuffer(t)||be.isStream(t)||be.isFile(t)||be.isBlob(t)||be.isReadableStream(t))return t;if(be.isArrayBufferView(t))return t.buffer;if(be.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return lO(t,this.formSerializer).toString();if((u=be.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Vc(u?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||s?(n.setContentType("application/json",!1),cO(t)):t}],transformResponse:[function(t){const n=this.transitional||Ro.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(be.isResponse(t)||be.isReadableStream(t))return t;if(t&&be.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(u){if(o)throw u.name==="SyntaxError"?ft.from(u,ft.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nr.classes.FormData,Blob:nr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};be.forEach(["delete","get","head","post","put","patch"],e=>{Ro.headers[e]={}});const dO=be.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),fO=e=>{const t={};let n,r,s;return e&&e.split(` +`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&dO[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Uv=Symbol("internals");function ql(e){return e&&String(e).trim().toLowerCase()}function zu(e){return e===!1||e==null?e:be.isArray(e)?e.map(zu):String(e)}function hO(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const pO=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Rf(e,t,n,r,s){if(be.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!be.isString(t)){if(be.isString(r))return t.indexOf(r)!==-1;if(be.isRegExp(r))return r.test(t)}}function mO(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function gO(e,t){const n=be.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,a,o){return this[r].call(this,t,s,a,o)},configurable:!0})})}let Ar=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function a(u,c,h){const f=ql(c);if(!f)throw new Error("header name must be a non-empty string");const p=be.findKey(s,f);(!p||s[p]===void 0||h===!0||h===void 0&&s[p]!==!1)&&(s[p||c]=zu(u))}const o=(u,c)=>be.forEach(u,(h,f)=>a(h,f,c));if(be.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(be.isString(t)&&(t=t.trim())&&!pO(t))o(fO(t),n);else if(be.isObject(t)&&be.isIterable(t)){let u={},c,h;for(const f of t){if(!be.isArray(f))throw TypeError("Object iterator must return a key-value pair");u[h=f[0]]=(c=u[h])?be.isArray(c)?[...c,f[1]]:[c,f[1]]:f[1]}o(u,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=ql(t),t){const r=be.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return hO(s);if(be.isFunction(n))return n.call(this,s,r);if(be.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ql(t),t){const r=be.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Rf(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function a(o){if(o=ql(o),o){const u=be.findKey(r,o);u&&(!n||Rf(r,r[u],u,n))&&(delete r[u],s=!0)}}return be.isArray(t)?t.forEach(a):a(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const a=n[r];(!t||Rf(this,this[a],a,t,!0))&&(delete this[a],s=!0)}return s}normalize(t){const n=this,r={};return be.forEach(this,(s,a)=>{const o=be.findKey(r,a);if(o){n[o]=zu(s),delete n[a];return}const u=t?mO(a):String(a).trim();u!==a&&delete n[a],n[u]=zu(s),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return be.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&be.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}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,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Uv]=this[Uv]={accessors:{}}).accessors,s=this.prototype;function a(o){const u=ql(o);r[u]||(gO(s,o),r[u]=!0)}return be.isArray(t)?t.forEach(a):a(t),this}};Ar.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);be.reduceDescriptors(Ar.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});be.freezeMethods(Ar);function Df(e,t){const n=this||Ro,r=t||n,s=Ar.from(r.headers);let a=r.data;return be.forEach(e,function(u){a=u.call(n,a,s.normalize(),t?t.status:void 0)}),s.normalize(),a}function F0(e){return!!(e&&e.__CANCEL__)}function kl(e,t,n){ft.call(this,e??"canceled",ft.ERR_CANCELED,t,n),this.name="CanceledError"}be.inherits(kl,ft,{__CANCEL__:!0});function $0(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ft("Request failed with status code "+n.status,[ft.ERR_BAD_REQUEST,ft.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function vO(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function yO(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,a=0,o;return t=t!==void 0?t:1e3,function(c){const h=Date.now(),f=r[a];o||(o=h),n[s]=c,r[s]=h;let p=a,m=0;for(;p!==s;)m+=n[p++],p=p%e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),h-o{n=f,s=null,a&&(clearTimeout(a),a=null),e.apply(null,h)};return[(...h)=>{const f=Date.now(),p=f-n;p>=r?o(h,f):(s=h,a||(a=setTimeout(()=>{a=null,o(s)},r-p)))},()=>s&&o(s)]}const rc=(e,t,n=3)=>{let r=0;const s=yO(50,250);return _O(a=>{const o=a.loaded,u=a.lengthComputable?a.total:void 0,c=o-r,h=s(c),f=o<=u;r=o;const p={loaded:o,total:u,progress:u?o/u:void 0,bytes:c,rate:h||void 0,estimated:h&&u&&f?(u-o)/h:void 0,event:a,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(p)},n)},jv=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},qv=e=>(...t)=>be.asap(()=>e(...t)),bO=nr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,nr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(nr.origin),nr.navigator&&/(msie|trident)/i.test(nr.navigator.userAgent)):()=>!0,wO=nr.hasStandardBrowserEnv?{write(e,t,n,r,s,a){const o=[e+"="+encodeURIComponent(t)];be.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),be.isString(r)&&o.push("path="+r),be.isString(s)&&o.push("domain="+s),a===!0&&o.push("secure"),document.cookie=o.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 xO(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function kO(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function B0(e,t,n){let r=!xO(t);return e&&(r||n==!1)?kO(e,t):t}const Wv=e=>e instanceof Ar?{...e}:e;function va(e,t){t=t||{};const n={};function r(h,f,p,m){return be.isPlainObject(h)&&be.isPlainObject(f)?be.merge.call({caseless:m},h,f):be.isPlainObject(f)?be.merge({},f):be.isArray(f)?f.slice():f}function s(h,f,p,m){if(be.isUndefined(f)){if(!be.isUndefined(h))return r(void 0,h,p,m)}else return r(h,f,p,m)}function a(h,f){if(!be.isUndefined(f))return r(void 0,f)}function o(h,f){if(be.isUndefined(f)){if(!be.isUndefined(h))return r(void 0,h)}else return r(void 0,f)}function u(h,f,p){if(p in t)return r(h,f);if(p in e)return r(void 0,h)}const c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:(h,f,p)=>s(Wv(h),Wv(f),p,!0)};return be.forEach(Object.keys(Object.assign({},e,t)),function(f){const p=c[f]||s,m=p(e[f],t[f],f);be.isUndefined(m)&&p!==u||(n[f]=m)}),n}const H0=e=>{const t=va({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:a,headers:o,auth:u}=t;t.headers=o=Ar.from(o),t.url=I0(B0(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&o.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let c;if(be.isFormData(n)){if(nr.hasStandardBrowserEnv||nr.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((c=o.getContentType())!==!1){const[h,...f]=c?c.split(";").map(p=>p.trim()).filter(Boolean):[];o.setContentType([h||"multipart/form-data",...f].join("; "))}}if(nr.hasStandardBrowserEnv&&(r&&be.isFunction(r)&&(r=r(t)),r||r!==!1&&bO(t.url))){const h=s&&a&&wO.read(a);h&&o.set(s,h)}return t},SO=typeof XMLHttpRequest<"u",TO=SO&&function(e){return new Promise(function(n,r){const s=H0(e);let a=s.data;const o=Ar.from(s.headers).normalize();let{responseType:u,onUploadProgress:c,onDownloadProgress:h}=s,f,p,m,y,_;function b(){y&&y(),_&&_(),s.cancelToken&&s.cancelToken.unsubscribe(f),s.signal&&s.signal.removeEventListener("abort",f)}let E=new XMLHttpRequest;E.open(s.method.toUpperCase(),s.url,!0),E.timeout=s.timeout;function H(){if(!E)return;const x=Ar.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),B={data:!u||u==="text"||u==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:x,config:e,request:E};$0(function(F){n(F),b()},function(F){r(F),b()},B),E=null}"onloadend"in E?E.onloadend=H:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(H)},E.onabort=function(){E&&(r(new ft("Request aborted",ft.ECONNABORTED,e,E)),E=null)},E.onerror=function(){r(new ft("Network Error",ft.ERR_NETWORK,e,E)),E=null},E.ontimeout=function(){let O=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const B=s.transitional||N0;s.timeoutErrorMessage&&(O=s.timeoutErrorMessage),r(new ft(O,B.clarifyTimeoutError?ft.ETIMEDOUT:ft.ECONNABORTED,e,E)),E=null},a===void 0&&o.setContentType(null),"setRequestHeader"in E&&be.forEach(o.toJSON(),function(O,B){E.setRequestHeader(B,O)}),be.isUndefined(s.withCredentials)||(E.withCredentials=!!s.withCredentials),u&&u!=="json"&&(E.responseType=s.responseType),h&&([m,_]=rc(h,!0),E.addEventListener("progress",m)),c&&E.upload&&([p,y]=rc(c),E.upload.addEventListener("progress",p),E.upload.addEventListener("loadend",y)),(s.cancelToken||s.signal)&&(f=x=>{E&&(r(!x||x.type?new kl(null,e,E):x),E.abort(),E=null)},s.cancelToken&&s.cancelToken.subscribe(f),s.signal&&(s.signal.aborted?f():s.signal.addEventListener("abort",f)));const V=vO(s.url);if(V&&nr.protocols.indexOf(V)===-1){r(new ft("Unsupported protocol "+V+":",ft.ERR_BAD_REQUEST,e));return}E.send(a||null)})},CO=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const a=function(h){if(!s){s=!0,u();const f=h instanceof Error?h:this.reason;r.abort(f instanceof ft?f:new kl(f instanceof Error?f.message:f))}};let o=t&&setTimeout(()=>{o=null,a(new ft(`timeout ${t} of ms exceeded`,ft.ETIMEDOUT))},t);const u=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(a):h.removeEventListener("abort",a)}),e=null)};e.forEach(h=>h.addEventListener("abort",a));const{signal:c}=r;return c.unsubscribe=()=>be.asap(u),c}},AO=function*(e,t){let n=e.byteLength;if(n{const s=EO(e,t);let a=0,o,u=c=>{o||(o=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:h,value:f}=await s.next();if(h){u(),c.close();return}let p=f.byteLength;if(n){let m=a+=p;n(m)}c.enqueue(new Uint8Array(f))}catch(h){throw u(h),h}},cancel(c){return u(c),s.return()}},{highWaterMark:2})},Fc=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",U0=Fc&&typeof ReadableStream=="function",MO=Fc&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),j0=(e,...t)=>{try{return!!e(...t)}catch{return!1}},RO=U0&&j0(()=>{let e=!1;const t=new Request(nr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),zv=64*1024,hh=U0&&j0(()=>be.isReadableStream(new Response("").body)),sc={stream:hh&&(e=>e.body)};Fc&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!sc[t]&&(sc[t]=be.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ft(`Response type '${t}' is not supported`,ft.ERR_NOT_SUPPORT,r)})})})(new Response);const DO=async e=>{if(e==null)return 0;if(be.isBlob(e))return e.size;if(be.isSpecCompliantForm(e))return(await new Request(nr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(be.isArrayBufferView(e)||be.isArrayBuffer(e))return e.byteLength;if(be.isURLSearchParams(e)&&(e=e+""),be.isString(e))return(await MO(e)).byteLength},PO=async(e,t)=>{const n=be.toFiniteNumber(e.getContentLength());return n??DO(t)},LO=Fc&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:a,timeout:o,onDownloadProgress:u,onUploadProgress:c,responseType:h,headers:f,withCredentials:p="same-origin",fetchOptions:m}=H0(e);h=h?(h+"").toLowerCase():"text";let y=CO([s,a&&a.toAbortSignal()],o),_;const b=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let E;try{if(c&&RO&&n!=="get"&&n!=="head"&&(E=await PO(f,r))!==0){let B=new Request(t,{method:"POST",body:r,duplex:"half"}),U;if(be.isFormData(r)&&(U=B.headers.get("content-type"))&&f.setContentType(U),B.body){const[F,D]=jv(E,rc(qv(c)));r=Yv(B.body,zv,F,D)}}be.isString(p)||(p=p?"include":"omit");const H="credentials"in Request.prototype;_=new Request(t,{...m,signal:y,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:r,duplex:"half",credentials:H?p:void 0});let V=await fetch(_);const x=hh&&(h==="stream"||h==="response");if(hh&&(u||x&&b)){const B={};["status","statusText","headers"].forEach(T=>{B[T]=V[T]});const U=be.toFiniteNumber(V.headers.get("content-length")),[F,D]=u&&jv(U,rc(qv(u),!0))||[];V=new Response(Yv(V.body,zv,F,()=>{D&&D(),b&&b()}),B)}h=h||"text";let O=await sc[be.findKey(sc,h)||"text"](V,e);return!x&&b&&b(),await new Promise((B,U)=>{$0(B,U,{data:O,headers:Ar.from(V.headers),status:V.status,statusText:V.statusText,config:e,request:_})})}catch(H){throw b&&b(),H&&H.name==="TypeError"&&/Load failed|fetch/i.test(H.message)?Object.assign(new ft("Network Error",ft.ERR_NETWORK,e,_),{cause:H.cause||H}):ft.from(H,H&&H.code,e,_)}}),ph={http:GE,xhr:TO,fetch:LO};be.forEach(ph,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Kv=e=>`- ${e}`,IO=e=>be.isFunction(e)||e===null||e===!1,q0={getAdapter:e=>{e=be.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let a=0;a`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since : +`+a.map(Kv).join(` +`):" "+Kv(a[0]):"as no adapter specified";throw new ft("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:ph};function Pf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new kl(null,e)}function Gv(e){return Pf(e),e.headers=Ar.from(e.headers),e.data=Df.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),q0.getAdapter(e.adapter||Ro.adapter)(e).then(function(r){return Pf(e),r.data=Df.call(e,e.transformResponse,r),r.headers=Ar.from(r.headers),r},function(r){return F0(r)||(Pf(e),r&&r.response&&(r.response.data=Df.call(e,e.transformResponse,r.response),r.response.headers=Ar.from(r.response.headers))),Promise.reject(r)})}const W0="1.9.0",$c={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{$c[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Jv={};$c.transitional=function(t,n,r){function s(a,o){return"[Axios v"+W0+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,u)=>{if(t===!1)throw new ft(s(o," has been removed"+(n?" in "+n:"")),ft.ERR_DEPRECATED);return n&&!Jv[o]&&(Jv[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,u):!0}};$c.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function NO(e,t,n){if(typeof e!="object")throw new ft("options must be an object",ft.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const a=r[s],o=t[a];if(o){const u=e[a],c=u===void 0||o(u,a,e);if(c!==!0)throw new ft("option "+a+" must be "+c,ft.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ft("Unknown option "+a,ft.ERR_BAD_OPTION)}}const Ku={assertOptions:NO,validators:$c},Ts=Ku.validators;let ua=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Hv,response:new Hv}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const a=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=va(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:a}=n;r!==void 0&&Ku.assertOptions(r,{silentJSONParsing:Ts.transitional(Ts.boolean),forcedJSONParsing:Ts.transitional(Ts.boolean),clarifyTimeoutError:Ts.transitional(Ts.boolean)},!1),s!=null&&(be.isFunction(s)?n.paramsSerializer={serialize:s}:Ku.assertOptions(s,{encode:Ts.function,serialize:Ts.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ku.assertOptions(n,{baseUrl:Ts.spelling("baseURL"),withXsrfToken:Ts.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&be.merge(a.common,a[n.method]);a&&be.forEach(["delete","get","head","post","put","patch","common"],_=>{delete a[_]}),n.headers=Ar.concat(o,a);const u=[];let c=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(c=c&&b.synchronous,u.unshift(b.fulfilled,b.rejected))});const h=[];this.interceptors.response.forEach(function(b){h.push(b.fulfilled,b.rejected)});let f,p=0,m;if(!c){const _=[Gv.bind(this),void 0];for(_.unshift.apply(_,u),_.push.apply(_,h),m=_.length,f=Promise.resolve(n);p{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](s);r._listeners=null}),this.promise.then=s=>{let a;const o=new Promise(u=>{r.subscribe(u),a=u}).then(s);return o.cancel=function(){r.unsubscribe(a)},o},t(function(a,o,u){r.reason||(r.reason=new kl(a,o,u),n(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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Y0(function(s){t=s}),cancel:t}}};function FO(e){return function(n){return e.apply(null,n)}}function $O(e){return be.isObject(e)&&e.isAxiosError===!0}const mh={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(mh).forEach(([e,t])=>{mh[t]=e});function z0(e){const t=new ua(e),n=k0(ua.prototype.request,t);return be.extend(n,ua.prototype,t,{allOwnKeys:!0}),be.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return z0(va(e,s))},n}const Tt=z0(Ro);Tt.Axios=ua;Tt.CanceledError=kl;Tt.CancelToken=VO;Tt.isCancel=F0;Tt.VERSION=W0;Tt.toFormData=Vc;Tt.AxiosError=ft;Tt.Cancel=Tt.CanceledError;Tt.all=function(t){return Promise.all(t)};Tt.spread=FO;Tt.isAxiosError=$O;Tt.mergeConfig=va;Tt.AxiosHeaders=Ar;Tt.formToJSON=e=>V0(be.isHTMLForm(e)?new FormData(e):e);Tt.getAdapter=q0.getAdapter;Tt.HttpStatusCode=mh;Tt.default=Tt;const{Axios:ij,AxiosError:aj,CanceledError:lj,isCancel:oj,CancelToken:uj,VERSION:cj,all:dj,Cancel:fj,isAxiosError:hj,spread:pj,toFormData:mj,AxiosHeaders:gj,HttpStatusCode:vj,formToJSON:yj,getAdapter:_j,mergeConfig:bj}=Tt;window.axios=Tt;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";let Zv=document.head.querySelector('meta[name="csrf-token"]');Zv?window.axios.defaults.headers.common["X-CSRF-TOKEN"]=Zv.content:console.error("CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token");/** +* @vue/shared v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function jr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const St={},tl=[],zn=()=>{},Zl=()=>!1,wa=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Xh=e=>e.startsWith("onUpdate:"),Ct=Object.assign,Qh=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},BO=Object.prototype.hasOwnProperty,Dt=(e,t)=>BO.call(e,t),Ye=Array.isArray,nl=e=>Sl(e)==="[object Map]",xa=e=>Sl(e)==="[object Set]",Xv=e=>Sl(e)==="[object Date]",HO=e=>Sl(e)==="[object RegExp]",st=e=>typeof e=="function",ut=e=>typeof e=="string",Or=e=>typeof e=="symbol",Ht=e=>e!==null&&typeof e=="object",ep=e=>(Ht(e)||st(e))&&st(e.then)&&st(e.catch),K0=Object.prototype.toString,Sl=e=>K0.call(e),UO=e=>Sl(e).slice(8,-1),Bc=e=>Sl(e)==="[object Object]",tp=e=>ut(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ci=jr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),jO=jr("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Hc=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},qO=/-(\w)/g,Jt=Hc(e=>e.replace(qO,(t,n)=>n?n.toUpperCase():"")),WO=/\B([A-Z])/g,kr=Hc(e=>e.replace(WO,"-$1").toLowerCase()),ka=Hc(e=>e.charAt(0).toUpperCase()+e.slice(1)),rl=Hc(e=>e?`on${ka(e)}`:""),dr=(e,t)=>!Object.is(e,t),sl=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ic=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ac=e=>{const t=ut(e)?Number(e):NaN;return isNaN(t)?e:t};let Qv;const Uc=()=>Qv||(Qv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"||typeof window<"u"?window:{});function YO(e,t){return e+JSON.stringify(t,(n,r)=>typeof r=="function"?r.toString():r)}const zO="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",KO=jr(zO);function bn(e){if(Ye(e)){const t={};for(let n=0;n{if(n){const r=n.split(JO);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Be(e){let t="";if(ut(e))t=e;else if(Ye(e))for(let n=0;nPi(n,t))}const X0=e=>!!(e&&e.__v_isRef===!0),re=e=>ut(e)?e:e==null?"":Ye(e)||Ht(e)&&(e.toString===K0||!st(e.toString))?X0(e)?re(e.value):JSON.stringify(e,Q0,2):String(e),Q0=(e,t)=>X0(t)?Q0(e,t.value):nl(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],a)=>(n[Lf(r,a)+" =>"]=s,n),{})}:xa(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Lf(n))}:Or(t)?Lf(t):Ht(t)&&!Ye(t)&&!Bc(t)?String(t):t,Lf=(e,t="")=>{var n;return Or(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let cr;class np{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=cr,!t&&cr&&(this.index=(cr.scopes||(cr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;if(to){let t=to;for(to=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;eo;){let t=eo;for(eo=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function r_(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function s_(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),ap(r),cM(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function gh(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(i_(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function i_(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ho))return;e.globalVersion=ho;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!gh(e)){e.flags&=-3;return}const n=zt,r=ps;zt=e,ps=!0;try{r_(e);const s=e.fn(e._value);(t.version===0||dr(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{zt=n,ps=r,s_(e),e.flags&=-3}}function ap(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let a=n.computed.deps;a;a=a.nextDep)ap(a,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function cM(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function dM(e,t){e.effect instanceof fo&&(e=e.effect.fn);const n=new fo(e);t&&Ct(n,t);try{n.run()}catch(s){throw n.stop(),s}const r=n.run.bind(n);return r.effect=n,r}function fM(e){e.effect.stop()}let ps=!0;const a_=[];function Fi(){a_.push(ps),ps=!1}function $i(){const e=a_.pop();ps=e===void 0?!0:e}function ey(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=zt;zt=void 0;try{t()}finally{zt=n}}}let ho=0;class hM{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class qc{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!zt||!ps||zt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==zt)n=this.activeLink=new hM(zt,this),zt.deps?(n.prevDep=zt.depsTail,zt.depsTail.nextDep=n,zt.depsTail=n):zt.deps=zt.depsTail=n,l_(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=zt.depsTail,n.nextDep=void 0,zt.depsTail.nextDep=n,zt.depsTail=n,zt.deps===n&&(zt.deps=r)}return n}trigger(t){this.version++,ho++,this.notify(t)}notify(t){sp();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ip()}}}function l_(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)l_(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const lc=new WeakMap,ca=Symbol(""),vh=Symbol(""),po=Symbol("");function er(e,t,n){if(ps&&zt){let r=lc.get(e);r||lc.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new qc),s.map=r,s.key=n),s.track()}}function Gs(e,t,n,r,s,a){const o=lc.get(e);if(!o){ho++;return}const u=c=>{c&&c.trigger()};if(sp(),t==="clear")o.forEach(u);else{const c=Ye(e),h=c&&tp(n);if(c&&n==="length"){const f=Number(r);o.forEach((p,m)=>{(m==="length"||m===po||!Or(m)&&m>=f)&&u(p)})}else switch((n!==void 0||o.has(void 0))&&u(o.get(n)),h&&u(o.get(po)),t){case"add":c?h&&u(o.get("length")):(u(o.get(ca)),nl(e)&&u(o.get(vh)));break;case"delete":c||(u(o.get(ca)),nl(e)&&u(o.get(vh)));break;case"set":nl(e)&&u(o.get(ca));break}}ip()}function pM(e,t){const n=lc.get(e);return n&&n.get(t)}function Ua(e){const t=Mt(e);return t===e?t:(er(t,"iterate",po),Ur(e)?t:t.map(tr))}function Wc(e){return er(e=Mt(e),"iterate",po),e}const mM={__proto__:null,[Symbol.iterator](){return Nf(this,Symbol.iterator,tr)},concat(...e){return Ua(this).concat(...e.map(t=>Ye(t)?Ua(t):t))},entries(){return Nf(this,"entries",e=>(e[1]=tr(e[1]),e))},every(e,t){return qs(this,"every",e,t,void 0,arguments)},filter(e,t){return qs(this,"filter",e,t,n=>n.map(tr),arguments)},find(e,t){return qs(this,"find",e,t,tr,arguments)},findIndex(e,t){return qs(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return qs(this,"findLast",e,t,tr,arguments)},findLastIndex(e,t){return qs(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return qs(this,"forEach",e,t,void 0,arguments)},includes(...e){return Vf(this,"includes",e)},indexOf(...e){return Vf(this,"indexOf",e)},join(e){return Ua(this).join(e)},lastIndexOf(...e){return Vf(this,"lastIndexOf",e)},map(e,t){return qs(this,"map",e,t,void 0,arguments)},pop(){return Wl(this,"pop")},push(...e){return Wl(this,"push",e)},reduce(e,...t){return ty(this,"reduce",e,t)},reduceRight(e,...t){return ty(this,"reduceRight",e,t)},shift(){return Wl(this,"shift")},some(e,t){return qs(this,"some",e,t,void 0,arguments)},splice(...e){return Wl(this,"splice",e)},toReversed(){return Ua(this).toReversed()},toSorted(e){return Ua(this).toSorted(e)},toSpliced(...e){return Ua(this).toSpliced(...e)},unshift(...e){return Wl(this,"unshift",e)},values(){return Nf(this,"values",tr)}};function Nf(e,t,n){const r=Wc(e),s=r[t]();return r!==e&&!Ur(e)&&(s._next=s.next,s.next=()=>{const a=s._next();return a.value&&(a.value=n(a.value)),a}),s}const gM=Array.prototype;function qs(e,t,n,r,s,a){const o=Wc(e),u=o!==e&&!Ur(e),c=o[t];if(c!==gM[t]){const p=c.apply(e,a);return u?tr(p):p}let h=n;o!==e&&(u?h=function(p,m){return n.call(this,tr(p),m,e)}:n.length>2&&(h=function(p,m){return n.call(this,p,m,e)}));const f=c.call(o,h,r);return u&&s?s(f):f}function ty(e,t,n,r){const s=Wc(e);let a=n;return s!==e&&(Ur(e)?n.length>3&&(a=function(o,u,c){return n.call(this,o,u,c,e)}):a=function(o,u,c){return n.call(this,o,tr(u),c,e)}),s[t](a,...r)}function Vf(e,t,n){const r=Mt(e);er(r,"iterate",po);const s=r[t](...n);return(s===-1||s===!1)&&Kc(n[0])?(n[0]=Mt(n[0]),r[t](...n)):s}function Wl(e,t,n=[]){Fi(),sp();const r=Mt(e)[t].apply(e,n);return ip(),$i(),r}const vM=jr("__proto__,__v_isRef,__isVue"),o_=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Or));function yM(e){Or(e)||(e=String(e));const t=Mt(this);return er(t,"has",e),t.hasOwnProperty(e)}class u_{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,a=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return a;if(n==="__v_raw")return r===(s?a?m_:p_:a?h_:f_).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=Ye(t);if(!s){let c;if(o&&(c=mM[n]))return c;if(n==="hasOwnProperty")return yM}const u=Reflect.get(t,n,Tn(t)?t:r);return(Or(n)?o_.has(n):vM(n))||(s||er(t,"get",n),a)?u:Tn(u)?o&&tp(n)?u:u.value:Ht(u)?s?lp(u):Hr(u):u}}class c_ extends u_{constructor(t=!1){super(!1,t)}set(t,n,r,s){let a=t[n];if(!this._isShallow){const c=Li(a);if(!Ur(r)&&!Li(r)&&(a=Mt(a),r=Mt(r)),!Ye(t)&&Tn(a)&&!Tn(r))return c?!1:(a.value=r,!0)}const o=Ye(t)&&tp(n)?Number(n)e,Mu=e=>Reflect.getPrototypeOf(e);function kM(e,t,n){return function(...r){const s=this.__v_raw,a=Mt(s),o=nl(a),u=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,h=s[e](...r),f=n?yh:t?_h:tr;return!t&&er(a,"iterate",c?vh:ca),{next(){const{value:p,done:m}=h.next();return m?{value:p,done:m}:{value:u?[f(p[0]),f(p[1])]:f(p),done:m}},[Symbol.iterator](){return this}}}}function Ru(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function SM(e,t){const n={get(s){const a=this.__v_raw,o=Mt(a),u=Mt(s);e||(dr(s,u)&&er(o,"get",s),er(o,"get",u));const{has:c}=Mu(o),h=t?yh:e?_h:tr;if(c.call(o,s))return h(a.get(s));if(c.call(o,u))return h(a.get(u));a!==o&&a.get(s)},get size(){const s=this.__v_raw;return!e&&er(Mt(s),"iterate",ca),Reflect.get(s,"size",s)},has(s){const a=this.__v_raw,o=Mt(a),u=Mt(s);return e||(dr(s,u)&&er(o,"has",s),er(o,"has",u)),s===u?a.has(s):a.has(s)||a.has(u)},forEach(s,a){const o=this,u=o.__v_raw,c=Mt(u),h=t?yh:e?_h:tr;return!e&&er(c,"iterate",ca),u.forEach((f,p)=>s.call(a,h(f),h(p),o))}};return Ct(n,e?{add:Ru("add"),set:Ru("set"),delete:Ru("delete"),clear:Ru("clear")}:{add(s){!t&&!Ur(s)&&!Li(s)&&(s=Mt(s));const a=Mt(this);return Mu(a).has.call(a,s)||(a.add(s),Gs(a,"add",s,s)),this},set(s,a){!t&&!Ur(a)&&!Li(a)&&(a=Mt(a));const o=Mt(this),{has:u,get:c}=Mu(o);let h=u.call(o,s);h||(s=Mt(s),h=u.call(o,s));const f=c.call(o,s);return o.set(s,a),h?dr(a,f)&&Gs(o,"set",s,a):Gs(o,"add",s,a),this},delete(s){const a=Mt(this),{has:o,get:u}=Mu(a);let c=o.call(a,s);c||(s=Mt(s),c=o.call(a,s)),u&&u.call(a,s);const h=a.delete(s);return c&&Gs(a,"delete",s,void 0),h},clear(){const s=Mt(this),a=s.size!==0,o=s.clear();return a&&Gs(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=kM(s,e,t)}),n}function Yc(e,t){const n=SM(e,t);return(r,s,a)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(Dt(n,s)&&s in r?n:r,s,a)}const TM={get:Yc(!1,!1)},CM={get:Yc(!1,!0)},AM={get:Yc(!0,!1)},EM={get:Yc(!0,!0)},f_=new WeakMap,h_=new WeakMap,p_=new WeakMap,m_=new WeakMap;function OM(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function MM(e){return e.__v_skip||!Object.isExtensible(e)?0:OM(UO(e))}function Hr(e){return Li(e)?e:zc(e,!1,_M,TM,f_)}function g_(e){return zc(e,!1,wM,CM,h_)}function lp(e){return zc(e,!0,bM,AM,p_)}function RM(e){return zc(e,!0,xM,EM,m_)}function zc(e,t,n,r,s){if(!Ht(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=s.get(e);if(a)return a;const o=MM(e);if(o===0)return e;const u=new Proxy(e,o===2?r:n);return s.set(e,u),u}function Ai(e){return Li(e)?Ai(e.__v_raw):!!(e&&e.__v_isReactive)}function Li(e){return!!(e&&e.__v_isReadonly)}function Ur(e){return!!(e&&e.__v_isShallow)}function Kc(e){return e?!!e.__v_raw:!1}function Mt(e){const t=e&&e.__v_raw;return t?Mt(t):e}function v_(e){return!Dt(e,"__v_skip")&&Object.isExtensible(e)&&G0(e,"__v_skip",!0),e}const tr=e=>Ht(e)?Hr(e):e,_h=e=>Ht(e)?lp(e):e;function Tn(e){return e?e.__v_isRef===!0:!1}function fe(e){return __(e,!1)}function y_(e){return __(e,!0)}function __(e,t){return Tn(e)?e:new DM(e,t)}class DM{constructor(t,n){this.dep=new qc,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Mt(t),this._value=n?t:tr(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Ur(t)||Li(t);t=r?t:Mt(t),dr(t,n)&&(this._rawValue=t,this._value=r?t:tr(t),this.dep.trigger())}}function PM(e){e.dep&&e.dep.trigger()}function Z(e){return Tn(e)?e.value:e}function LM(e){return st(e)?e():Z(e)}const IM={get:(e,t,n)=>t==="__v_raw"?e:Z(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Tn(s)&&!Tn(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function op(e){return Ai(e)?e:new Proxy(e,IM)}class NM{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new qc,{get:r,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function b_(e){return new NM(e)}function VM(e){const t=Ye(e)?new Array(e.length):{};for(const n in e)t[n]=w_(e,n);return t}class FM{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return pM(Mt(this._object),this._key)}}class $M{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ll(e,t,n){return Tn(e)?e:st(e)?new $M(e):Ht(e)&&arguments.length>1?w_(e,t,n):fe(e)}function w_(e,t,n){const r=e[t];return Tn(r)?r:new FM(e,t,n)}class BM{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new qc(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ho-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&zt!==this)return n_(this,!0),!0}get value(){const t=this.dep.track();return i_(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function HM(e,t,n=!1){let r,s;return st(e)?r=e:(r=e.get,s=e.set),new BM(r,s,n)}const UM={GET:"get",HAS:"has",ITERATE:"iterate"},jM={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},Du={},oc=new WeakMap;let bi;function qM(){return bi}function x_(e,t=!1,n=bi){if(n){let r=oc.get(n);r||oc.set(n,r=[]),r.push(e)}}function WM(e,t,n=St){const{immediate:r,deep:s,once:a,scheduler:o,augmentJob:u,call:c}=n,h=O=>s?O:Ur(O)||s===!1||s===0?Js(O,1):Js(O);let f,p,m,y,_=!1,b=!1;if(Tn(e)?(p=()=>e.value,_=Ur(e)):Ai(e)?(p=()=>h(e),_=!0):Ye(e)?(b=!0,_=e.some(O=>Ai(O)||Ur(O)),p=()=>e.map(O=>{if(Tn(O))return O.value;if(Ai(O))return h(O);if(st(O))return c?c(O,2):O()})):st(e)?t?p=c?()=>c(e,2):e:p=()=>{if(m){Fi();try{m()}finally{$i()}}const O=bi;bi=f;try{return c?c(e,3,[y]):e(y)}finally{bi=O}}:p=zn,t&&s){const O=p,B=s===!0?1/0:s;p=()=>Js(O(),B)}const E=rp(),H=()=>{f.stop(),E&&E.active&&Qh(E.effects,f)};if(a&&t){const O=t;t=(...B)=>{O(...B),H()}}let V=b?new Array(e.length).fill(Du):Du;const x=O=>{if(!(!(f.flags&1)||!f.dirty&&!O))if(t){const B=f.run();if(s||_||(b?B.some((U,F)=>dr(U,V[F])):dr(B,V))){m&&m();const U=bi;bi=f;try{const F=[B,V===Du?void 0:b&&V[0]===Du?[]:V,y];c?c(t,3,F):t(...F),V=B}finally{bi=U}}}else f.run()};return u&&u(x),f=new fo(p),f.scheduler=o?()=>o(x,!1):x,y=O=>x_(O,!1,f),m=f.onStop=()=>{const O=oc.get(f);if(O){if(c)c(O,4);else for(const B of O)B();oc.delete(f)}},t?r?x(!0):V=f.run():o?o(x.bind(null,!0),!0):f.run(),H.pause=f.pause.bind(f),H.resume=f.resume.bind(f),H.stop=H,H}function Js(e,t=1/0,n){if(t<=0||!Ht(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Tn(e))Js(e.value,t,n);else if(Ye(e))for(let r=0;r{Js(r,t,n)});else if(Bc(e)){for(const r in e)Js(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Js(e[r],t,n)}return e}/** +* @vue/runtime-core v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const k_=[];function YM(e){k_.push(e)}function zM(){k_.pop()}function KM(e,t){}const GM={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},JM={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Tl(e,t,n,r){try{return r?e(...r):e()}catch(s){Sa(s,t,n)}}function rs(e,t,n,r){if(st(e)){const s=Tl(e,t,n,r);return s&&ep(s)&&s.catch(a=>{Sa(a,t,n)}),s}if(Ye(e)){const s=[];for(let a=0;a>>1,s=fr[r],a=go(s);a=go(n)?fr.push(e):fr.splice(XM(t),0,e),e.flags|=1,T_()}}function T_(){uc||(uc=S_.then(C_))}function mo(e){Ye(e)?il.push(...e):wi&&e.id===-1?wi.splice(Ga+1,0,e):e.flags&1||(il.push(e),e.flags|=1),T_()}function ny(e,t,n=As+1){for(;ngo(n)-go(r));if(il.length=0,wi){wi.push(...t);return}for(wi=t,Ga=0;Gae.id==null?e.flags&2?-1:1/0:e.id;function C_(e){try{for(As=0;AsJa.emit(s,...a)),Pu=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{A_(a,t)}),setTimeout(()=>{Ja||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Pu=[])},3e3)):Pu=[]}let In=null,Gc=null;function vo(e){const t=In;return In=e,Gc=e&&e.type.__scopeId||null,t}function QM(e){Gc=e}function eR(){Gc=null}const tR=e=>Te;function Te(e,t=In,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Ah(-1);const a=vo(t);let o;try{o=e(...s)}finally{vo(a),r._d&&Ah(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Dn(e,t){if(In===null)return e;const n=Lo(In),r=e.dirs||(e.dirs=[]);for(let s=0;se.__isTeleport,no=e=>e&&(e.disabled||e.disabled===""),ry=e=>e&&(e.defer||e.defer===""),sy=e=>typeof SVGElement<"u"&&e instanceof SVGElement,iy=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,bh=(e,t)=>{const n=e&&e.to;return ut(n)?t?t(n):null:n},M_={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,a,o,u,c,h){const{mc:f,pc:p,pbc:m,o:{insert:y,querySelector:_,createText:b,createComment:E}}=h,H=no(t.props);let{shapeFlag:V,children:x,dynamicChildren:O}=t;if(e==null){const B=t.el=b(""),U=t.anchor=b("");y(B,n,r),y(U,n,r);const F=(T,$)=>{V&16&&(s&&s.isCE&&(s.ce._teleportTarget=T),f(x,T,$,s,a,o,u,c))},D=()=>{const T=t.target=bh(t.props,_),$=D_(T,t,b,y);T&&(o!=="svg"&&sy(T)?o="svg":o!=="mathml"&&iy(T)&&(o="mathml"),H||(F(T,$),Gu(t,!1)))};H&&(F(n,U),Gu(t,!0)),ry(t.props)?Mn(()=>{D(),t.el.__isMounted=!0},a):D()}else{if(ry(t.props)&&!e.el.__isMounted){Mn(()=>{M_.process(e,t,n,r,s,a,o,u,c,h),delete e.el.__isMounted},a);return}t.el=e.el,t.targetStart=e.targetStart;const B=t.anchor=e.anchor,U=t.target=e.target,F=t.targetAnchor=e.targetAnchor,D=no(e.props),T=D?n:U,$=D?B:F;if(o==="svg"||sy(U)?o="svg":(o==="mathml"||iy(U))&&(o="mathml"),O?(m(e.dynamicChildren,O,T,s,a,o,u),yp(e,t,!0)):c||p(e,t,T,$,s,a,o,u,!1),H)D?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Lu(t,n,B,h,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const se=t.target=bh(t.props,_);se&&Lu(t,se,null,h,0)}else D&&Lu(t,U,F,h,1);Gu(t,H)}},remove(e,t,n,{um:r,o:{remove:s}},a){const{shapeFlag:o,children:u,anchor:c,targetStart:h,targetAnchor:f,target:p,props:m}=e;if(p&&(s(h),s(f)),a&&s(c),o&16){const y=a||!no(m);for(let _=0;_{e.isMounted=!0}),ed(()=>{e.isUnmounting=!0}),e}const Qr=[Function,Array],dp={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Qr,onEnter:Qr,onAfterEnter:Qr,onEnterCancelled:Qr,onBeforeLeave:Qr,onLeave:Qr,onAfterLeave:Qr,onLeaveCancelled:Qr,onBeforeAppear:Qr,onAppear:Qr,onAfterAppear:Qr,onAppearCancelled:Qr},P_=e=>{const t=e.subTree;return t.component?P_(t.component):t},rR={name:"BaseTransition",props:dp,setup(e,{slots:t}){const n=ss(),r=cp();return()=>{const s=t.default&&Jc(t.default(),!0);if(!s||!s.length)return;const a=L_(s),o=Mt(e),{mode:u}=o;if(r.isLeaving)return Ff(a);const c=ay(a);if(!c)return Ff(a);let h=ol(c,o,r,n,p=>h=p);c.type!==Cn&&ti(c,h);let f=n.subTree&&ay(n.subTree);if(f&&f.type!==Cn&&!ds(c,f)&&P_(n).type!==Cn){let p=ol(f,o,r,n);if(ti(f,p),u==="out-in"&&c.type!==Cn)return r.isLeaving=!0,p.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete p.afterLeave,f=void 0},Ff(a);u==="in-out"&&c.type!==Cn?p.delayLeave=(m,y,_)=>{const b=N_(r,f);b[String(f.key)]=f,m[xi]=()=>{y(),m[xi]=void 0,delete h.delayedLeave,f=void 0},h.delayedLeave=()=>{_(),delete h.delayedLeave,f=void 0}}:f=void 0}else f&&(f=void 0);return a}}};function L_(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Cn){t=n;break}}return t}const I_=rR;function N_(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ol(e,t,n,r,s){const{appear:a,mode:o,persisted:u=!1,onBeforeEnter:c,onEnter:h,onAfterEnter:f,onEnterCancelled:p,onBeforeLeave:m,onLeave:y,onAfterLeave:_,onLeaveCancelled:b,onBeforeAppear:E,onAppear:H,onAfterAppear:V,onAppearCancelled:x}=t,O=String(e.key),B=N_(n,e),U=(T,$)=>{T&&rs(T,r,9,$)},F=(T,$)=>{const se=$[1];U(T,$),Ye(T)?T.every(ee=>ee.length<=1)&&se():T.length<=1&&se()},D={mode:o,persisted:u,beforeEnter(T){let $=c;if(!n.isMounted)if(a)$=E||c;else return;T[xi]&&T[xi](!0);const se=B[O];se&&ds(e,se)&&se.el[xi]&&se.el[xi](),U($,[T])},enter(T){let $=h,se=f,ee=p;if(!n.isMounted)if(a)$=H||h,se=V||f,ee=x||p;else return;let de=!1;const ne=T[Iu]=N=>{de||(de=!0,N?U(ee,[T]):U(se,[T]),D.delayedLeave&&D.delayedLeave(),T[Iu]=void 0)};$?F($,[T,ne]):ne()},leave(T,$){const se=String(e.key);if(T[Iu]&&T[Iu](!0),n.isUnmounting)return $();U(m,[T]);let ee=!1;const de=T[xi]=ne=>{ee||(ee=!0,$(),ne?U(b,[T]):U(_,[T]),T[xi]=void 0,B[se]===e&&delete B[se])};B[se]=e,y?F(y,[T,de]):de()},clone(T){const $=ol(T,t,n,r,s);return s&&s($),$}};return D}function Ff(e){if(Do(e))return e=Ps(e),e.children=null,e}function ay(e){if(!Do(e))return O_(e.type)&&e.children?L_(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&st(n.default))return n.default()}}function ti(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ti(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Jc(e,t=!1,n){let r=[],s=0;for(let a=0;a1)for(let a=0;an.value,set:a=>n.value=a})}return n}function yo(e,t,n,r,s=!1){if(Ye(e)){e.forEach((_,b)=>yo(_,t&&(Ye(t)?t[b]:t),n,r,s));return}if(Ei(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&yo(e,t,n,r.component.subTree);return}const a=r.shapeFlag&4?Lo(r.component):r.el,o=s?null:a,{i:u,r:c}=e,h=t&&t.r,f=u.refs===St?u.refs={}:u.refs,p=u.setupState,m=Mt(p),y=p===St?()=>!1:_=>Dt(m,_);if(h!=null&&h!==c&&(ut(h)?(f[h]=null,y(h)&&(p[h]=null)):Tn(h)&&(h.value=null)),st(c))Tl(c,u,12,[o,f]);else{const _=ut(c),b=Tn(c);if(_||b){const E=()=>{if(e.f){const H=_?y(c)?p[c]:f[c]:c.value;s?Ye(H)&&Qh(H,a):Ye(H)?H.includes(a)||H.push(a):_?(f[c]=[a],y(c)&&(p[c]=f[c])):(c.value=[a],e.k&&(f[e.k]=c.value))}else _?(f[c]=o,y(c)&&(p[c]=o)):b&&(c.value=o,e.k&&(f[e.k]=o))};o?(E.id=-1,Mn(E,n)):E()}}}let ly=!1;const ja=()=>{ly||(console.error("Hydration completed but contains mismatches."),ly=!0)},aR=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",lR=e=>e.namespaceURI.includes("MathML"),Nu=e=>{if(e.nodeType===1){if(aR(e))return"svg";if(lR(e))return"mathml"}},Qa=e=>e.nodeType===8;function oR(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:a,parentNode:o,remove:u,insert:c,createComment:h}}=e,f=(x,O)=>{if(!O.hasChildNodes()){n(null,x,O),cc(),O._vnode=x;return}p(O.firstChild,x,null,null,null),cc(),O._vnode=x},p=(x,O,B,U,F,D=!1)=>{D=D||!!O.dynamicChildren;const T=Qa(x)&&x.data==="[",$=()=>b(x,O,B,U,F,T),{type:se,ref:ee,shapeFlag:de,patchFlag:ne}=O;let N=x.nodeType;O.el=x,ne===-2&&(D=!1,O.dynamicChildren=null);let G=null;switch(se){case Oi:N!==3?O.children===""?(c(O.el=s(""),o(x),x),G=x):G=$():(x.data!==O.children&&(ja(),x.data=O.children),G=a(x));break;case Cn:V(x)?(G=a(x),H(O.el=x.content.firstChild,x,B)):N!==8||T?G=$():G=a(x);break;case fa:if(T&&(x=a(x),N=x.nodeType),N===1||N===3){G=x;const k=!O.children.length;for(let J=0;J{D=D||!!O.dynamicChildren;const{type:T,props:$,patchFlag:se,shapeFlag:ee,dirs:de,transition:ne}=O,N=T==="input"||T==="option";if(N||se!==-1){de&&Es(O,null,B,"created");let G=!1;if(V(x)){G=ub(null,ne)&&B&&B.vnode.props&&B.vnode.props.appear;const J=x.content.firstChild;G&&ne.beforeEnter(J),H(J,x,B),O.el=x=J}if(ee&16&&!($&&($.innerHTML||$.textContent))){let J=y(x.firstChild,O,x,B,U,F,D);for(;J;){Vu(x,1)||ja();const _e=J;J=J.nextSibling,u(_e)}}else if(ee&8){let J=O.children;J[0]===` +`&&(x.tagName==="PRE"||x.tagName==="TEXTAREA")&&(J=J.slice(1)),x.textContent!==J&&(Vu(x,0)||ja(),x.textContent=O.children)}if($){if(N||!D||se&48){const J=x.tagName.includes("-");for(const _e in $)(N&&(_e.endsWith("value")||_e==="indeterminate")||wa(_e)&&!Ci(_e)||_e[0]==="."||J)&&r(x,_e,null,$[_e],void 0,B)}else if($.onClick)r(x,"onClick",null,$.onClick,void 0,B);else if(se&4&&Ai($.style))for(const J in $.style)$.style[J]}let k;(k=$&&$.onVnodeBeforeMount)&&br(k,B,O),de&&Es(O,null,B,"beforeMount"),((k=$&&$.onVnodeMounted)||de||G)&&_b(()=>{k&&br(k,B,O),G&&ne.enter(x),de&&Es(O,null,B,"mounted")},U)}return x.nextSibling},y=(x,O,B,U,F,D,T)=>{T=T||!!O.dynamicChildren;const $=O.children,se=$.length;for(let ee=0;ee{const{slotScopeIds:T}=O;T&&(F=F?F.concat(T):T);const $=o(x),se=y(a(x),O,$,B,U,F,D);return se&&Qa(se)&&se.data==="]"?a(O.anchor=se):(ja(),c(O.anchor=h("]"),$,se),se)},b=(x,O,B,U,F,D)=>{if(Vu(x.parentElement,1)||ja(),O.el=null,D){const se=E(x);for(;;){const ee=a(x);if(ee&&ee!==se)u(ee);else break}}const T=a(x),$=o(x);return u(x),n(null,O,$,T,B,U,Nu($),F),B&&(B.vnode.el=O.el,nd(B,O.el)),T},E=(x,O="[",B="]")=>{let U=0;for(;x;)if(x=a(x),x&&Qa(x)&&(x.data===O&&U++,x.data===B)){if(U===0)return a(x);U--}return x},H=(x,O,B)=>{const U=O.parentNode;U&&U.replaceChild(x,O);let F=B;for(;F;)F.vnode.el===O&&(F.vnode.el=F.subTree.el=x),F=F.parent},V=x=>x.nodeType===1&&x.tagName==="TEMPLATE";return[f,p]}const oy="data-allow-mismatch",uR={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Vu(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(oy);)e=e.parentElement;const n=e&&e.getAttribute(oy);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:n.split(",").includes(uR[t])}}const cR=Uc().requestIdleCallback||(e=>setTimeout(e,1)),dR=Uc().cancelIdleCallback||(e=>clearTimeout(e)),fR=(e=1e4)=>t=>{const n=cR(t,{timeout:e});return()=>dR(n)};function hR(e){const{top:t,left:n,bottom:r,right:s}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t0&&r0&&n0&&s(t,n)=>{const r=new IntersectionObserver(s=>{for(const a of s)if(a.isIntersecting){r.disconnect(),t();break}},e);return n(s=>{if(s instanceof Element){if(hR(s))return t(),r.disconnect(),!1;r.observe(s)}}),()=>r.disconnect()},mR=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},gR=(e=[])=>(t,n)=>{ut(e)&&(e=[e]);let r=!1;const s=o=>{r||(r=!0,a(),t(),o.target.dispatchEvent(new o.constructor(o.type,o)))},a=()=>{n(o=>{for(const u of e)o.removeEventListener(u,s)})};return n(o=>{for(const u of e)o.addEventListener(u,s,{once:!0})}),a};function vR(e,t){if(Qa(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Qa(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const Ei=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function yR(e){st(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:a,timeout:o,suspensible:u=!0,onError:c}=e;let h=null,f,p=0;const m=()=>(p++,h=null,y()),y=()=>{let _;return h||(_=h=t().catch(b=>{if(b=b instanceof Error?b:new Error(String(b)),c)return new Promise((E,H)=>{c(b,()=>E(m()),()=>H(b),p+1)});throw b}).then(b=>_!==h&&h?h:(b&&(b.__esModule||b[Symbol.toStringTag]==="Module")&&(b=b.default),f=b,b)))};return fn({name:"AsyncComponentWrapper",__asyncLoader:y,__asyncHydrate(_,b,E){const H=a?()=>{const V=a(E,x=>vR(_,x));V&&(b.bum||(b.bum=[])).push(V)}:E;f?H():y().then(()=>!b.isUnmounted&&H())},get __asyncResolved(){return f},setup(){const _=Pn;if(fp(_),f)return()=>$f(f,_);const b=x=>{h=null,Sa(x,_,13,!r)};if(u&&_.suspense||ul)return y().then(x=>()=>$f(x,_)).catch(x=>(b(x),()=>r?he(r,{error:x}):null));const E=fe(!1),H=fe(),V=fe(!!s);return s&&setTimeout(()=>{V.value=!1},s),o!=null&&setTimeout(()=>{if(!E.value&&!H.value){const x=new Error(`Async component timed out after ${o}ms.`);b(x),H.value=x}},o),y().then(()=>{E.value=!0,_.parent&&Do(_.parent.vnode)&&_.parent.update()}).catch(x=>{b(x),H.value=x}),()=>{if(E.value&&f)return $f(f,_);if(H.value&&r)return he(r,{error:H.value});if(n&&!V.value)return he(n)}}})}function $f(e,t){const{ref:n,props:r,children:s,ce:a}=t.vnode,o=he(e,r,s);return o.ref=n,o.ce=a,delete t.vnode.ce,o}const Do=e=>e.type.__isKeepAlive,_R={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=ss(),r=n.ctx;if(!r.renderer)return()=>{const V=t.default&&t.default();return V&&V.length===1?V[0]:V};const s=new Map,a=new Set;let o=null;const u=n.suspense,{renderer:{p:c,m:h,um:f,o:{createElement:p}}}=r,m=p("div");r.activate=(V,x,O,B,U)=>{const F=V.component;h(V,x,O,0,u),c(F.vnode,V,x,O,F,u,B,V.slotScopeIds,U),Mn(()=>{F.isDeactivated=!1,F.a&&sl(F.a);const D=V.props&&V.props.onVnodeMounted;D&&br(D,F.parent,V)},u)},r.deactivate=V=>{const x=V.component;fc(x.m),fc(x.a),h(V,m,null,1,u),Mn(()=>{x.da&&sl(x.da);const O=V.props&&V.props.onVnodeUnmounted;O&&br(O,x.parent,V),x.isDeactivated=!0},u)};function y(V){Bf(V),f(V,n,u,!0)}function _(V){s.forEach((x,O)=>{const B=Dh(x.type);B&&!V(B)&&b(O)})}function b(V){const x=s.get(V);x&&(!o||!ds(x,o))?y(x):o&&Bf(o),s.delete(V),a.delete(V)}Wt(()=>[e.include,e.exclude],([V,x])=>{V&&_(O=>Xl(V,O)),x&&_(O=>!Xl(x,O))},{flush:"post",deep:!0});let E=null;const H=()=>{E!=null&&(hc(n.subTree.type)?Mn(()=>{s.set(E,Fu(n.subTree))},n.subTree.suspense):s.set(E,Fu(n.subTree)))};return Ft(H),Qc(H),ed(()=>{s.forEach(V=>{const{subTree:x,suspense:O}=n,B=Fu(x);if(V.type===B.type&&V.key===B.key){Bf(B);const U=B.component.da;U&&Mn(U,O);return}y(V)})}),()=>{if(E=null,!t.default)return o=null;const V=t.default(),x=V[0];if(V.length>1)return o=null,V;if(!ni(x)||!(x.shapeFlag&4)&&!(x.shapeFlag&128))return o=null,x;let O=Fu(x);if(O.type===Cn)return o=null,O;const B=O.type,U=Dh(Ei(O)?O.type.__asyncResolved||{}:B),{include:F,exclude:D,max:T}=e;if(F&&(!U||!Xl(F,U))||D&&U&&Xl(D,U))return O.shapeFlag&=-257,o=O,x;const $=O.key==null?B:O.key,se=s.get($);return O.el&&(O=Ps(O),x.shapeFlag&128&&(x.ssContent=O)),E=$,se?(O.el=se.el,O.component=se.component,O.transition&&ti(O,O.transition),O.shapeFlag|=512,a.delete($),a.add($)):(a.add($),T&&a.size>parseInt(T,10)&&b(a.values().next().value)),O.shapeFlag|=256,o=O,hc(x.type)?x:O}}},bR=_R;function Xl(e,t){return Ye(e)?e.some(n=>Xl(n,t)):ut(e)?e.split(",").includes(t):HO(e)?(e.lastIndex=0,e.test(t)):!1}function V_(e,t){$_(e,"a",t)}function F_(e,t){$_(e,"da",t)}function $_(e,t,n=Pn){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Zc(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Do(s.parent.vnode)&&wR(r,t,n,s),s=s.parent}}function wR(e,t,n,r){const s=Zc(t,e,r,!0);ii(()=>{Qh(r[t],s)},n)}function Bf(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Fu(e){return e.shapeFlag&128?e.ssContent:e}function Zc(e,t,n=Pn,r=!1){if(n){const s=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...o)=>{Fi();const u=_a(n),c=rs(t,n,e,o);return u(),$i(),c});return r?s.unshift(a):s.push(a),a}}const si=e=>(t,n=Pn)=>{(!ul||e==="sp")&&Zc(e,(...r)=>t(...r),n)},B_=si("bm"),Ft=si("m"),Xc=si("bu"),Qc=si("u"),ed=si("bum"),ii=si("um"),H_=si("sp"),U_=si("rtg"),j_=si("rtc");function q_(e,t=Pn){Zc("ec",e,t)}const hp="components",xR="directives";function at(e,t){return pp(hp,e,!0,t)||e}const W_=Symbol.for("v-ndc");function Cl(e){return ut(e)?pp(hp,e,!1)||e:e||W_}function Y_(e){return pp(xR,e)}function pp(e,t,n=!0,r=!1){const s=In||Pn;if(s){const a=s.type;if(e===hp){const u=Dh(a,!1);if(u&&(u===t||u===Jt(t)||u===ka(Jt(t))))return a}const o=uy(s[e]||a[e],t)||uy(s.appContext[e],t);return!o&&r?a:o}}function uy(e,t){return e&&(e[t]||e[Jt(t)]||e[ka(Jt(t))])}function Qe(e,t,n,r){let s;const a=n&&n[r],o=Ye(e);if(o||ut(e)){const u=o&&Ai(e);let c=!1;u&&(c=!Ur(e),e=Wc(e)),s=new Array(e.length);for(let h=0,f=e.length;ht(u,c,void 0,a&&a[c]));else{const u=Object.keys(e);s=new Array(u.length);for(let c=0,h=u.length;c{const a=r.fn(...s);return a&&(a.key=r.key),a}:r.fn)}return e}function Ie(e,t,n={},r,s){if(In.ce||In.parent&&Ei(In.parent)&&In.parent.ce)return t!=="default"&&(n.name=t),S(),it(Ve,null,[he("slot",n,r&&r())],64);let a=e[t];a&&a._c&&(a._d=!1),S();const o=a&&mp(a(n)),u=n.key||o&&o.key,c=it(Ve,{key:(u&&!Or(u)?u:`_${t}`)+(!o&&r?"_fb":"")},o||(r?r():[]),o&&e._===1?64:-2);return!s&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),a&&a._c&&(a._d=!0),c}function mp(e){return e.some(t=>ni(t)?!(t.type===Cn||t.type===Ve&&!mp(t.children)):!0)?e:null}function kR(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:rl(r)]=e[r];return n}const wh=e=>e?Tb(e)?Lo(e):wh(e.parent):null,ro=Ct(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>wh(e.parent),$root:e=>wh(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>gp(e),$forceUpdate:e=>e.f||(e.f=()=>{up(e.update)}),$nextTick:e=>e.n||(e.n=Un.bind(e.proxy)),$watch:e=>QR.bind(e)}),Hf=(e,t)=>e!==St&&!e.__isScriptSetup&&Dt(e,t),xh={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:a,accessCache:o,type:u,appContext:c}=e;let h;if(t[0]!=="$"){const y=o[t];if(y!==void 0)switch(y){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return a[t]}else{if(Hf(r,t))return o[t]=1,r[t];if(s!==St&&Dt(s,t))return o[t]=2,s[t];if((h=e.propsOptions[0])&&Dt(h,t))return o[t]=3,a[t];if(n!==St&&Dt(n,t))return o[t]=4,n[t];kh&&(o[t]=0)}}const f=ro[t];let p,m;if(f)return t==="$attrs"&&er(e.attrs,"get",""),f(e);if((p=u.__cssModules)&&(p=p[t]))return p;if(n!==St&&Dt(n,t))return o[t]=4,n[t];if(m=c.config.globalProperties,Dt(m,t))return m[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:a}=e;return Hf(s,t)?(s[t]=n,!0):r!==St&&Dt(r,t)?(r[t]=n,!0):Dt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:a}},o){let u;return!!n[o]||e!==St&&Dt(e,o)||Hf(t,o)||(u=a[0])&&Dt(u,o)||Dt(r,o)||Dt(ro,o)||Dt(s.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Dt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},SR=Ct({},xh,{get(e,t){if(t!==Symbol.unscopables)return xh.get(e,t,e)},has(e,t){return t[0]!=="_"&&!KO(t)}});function TR(){return null}function CR(){return null}function AR(e){}function ER(e){}function OR(){return null}function MR(){}function RR(e,t){return null}function Bi(){return z_().slots}function DR(){return z_().attrs}function z_(){const e=ss();return e.setupContext||(e.setupContext=Ob(e))}function _o(e){return Ye(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function PR(e,t){const n=_o(e);for(const r in t){if(r.startsWith("__skip"))continue;let s=n[r];s?Ye(s)||st(s)?s=n[r]={type:s,default:t[r]}:s.default=t[r]:s===null&&(s=n[r]={default:t[r]}),s&&t[`__skip_${r}`]&&(s.skipFactory=!0)}return n}function LR(e,t){return!e||!t?e||t:Ye(e)&&Ye(t)?e.concat(t):Ct({},_o(e),_o(t))}function IR(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function NR(e){const t=ss();let n=e();return Oh(),ep(n)&&(n=n.catch(r=>{throw _a(t),r})),[n,()=>_a(t)]}let kh=!0;function VR(e){const t=gp(e),n=e.proxy,r=e.ctx;kh=!1,t.beforeCreate&&cy(t.beforeCreate,e,"bc");const{data:s,computed:a,methods:o,watch:u,provide:c,inject:h,created:f,beforeMount:p,mounted:m,beforeUpdate:y,updated:_,activated:b,deactivated:E,beforeDestroy:H,beforeUnmount:V,destroyed:x,unmounted:O,render:B,renderTracked:U,renderTriggered:F,errorCaptured:D,serverPrefetch:T,expose:$,inheritAttrs:se,components:ee,directives:de,filters:ne}=t;if(h&&FR(h,r,null),o)for(const k in o){const J=o[k];st(J)&&(r[k]=J.bind(n))}if(s){const k=s.call(n,n);Ht(k)&&(e.data=Hr(k))}if(kh=!0,a)for(const k in a){const J=a[k],_e=st(J)?J.bind(n,n):st(J.get)?J.get.bind(n,n):zn,Me=!st(J)&&st(J.set)?J.set.bind(n):zn,Ne=pe({get:_e,set:Me});Object.defineProperty(r,k,{enumerable:!0,configurable:!0,get:()=>Ne.value,set:j=>Ne.value=j})}if(u)for(const k in u)K_(u[k],r,n,k);if(c){const k=st(c)?c.call(n):c;Reflect.ownKeys(k).forEach(J=>{J_(J,k[J])})}f&&cy(f,e,"c");function G(k,J){Ye(J)?J.forEach(_e=>k(_e.bind(n))):J&&k(J.bind(n))}if(G(B_,p),G(Ft,m),G(Xc,y),G(Qc,_),G(V_,b),G(F_,E),G(q_,D),G(j_,U),G(U_,F),G(ed,V),G(ii,O),G(H_,T),Ye($))if($.length){const k=e.exposed||(e.exposed={});$.forEach(J=>{Object.defineProperty(k,J,{get:()=>n[J],set:_e=>n[J]=_e})})}else e.exposed||(e.exposed={});B&&e.render===zn&&(e.render=B),se!=null&&(e.inheritAttrs=se),ee&&(e.components=ee),de&&(e.directives=de),T&&fp(e)}function FR(e,t,n=zn){Ye(e)&&(e=Sh(e));for(const r in e){const s=e[r];let a;Ht(s)?"default"in s?a=so(s.from||r,s.default,!0):a=so(s.from||r):a=so(s),Tn(a)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):t[r]=a}}function cy(e,t,n){rs(Ye(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function K_(e,t,n,r){let s=r.includes(".")?mb(n,r):()=>n[r];if(ut(e)){const a=t[e];st(a)&&Wt(s,a)}else if(st(e))Wt(s,e.bind(n));else if(Ht(e))if(Ye(e))e.forEach(a=>K_(a,t,n,r));else{const a=st(e.handler)?e.handler.bind(n):t[e.handler];st(a)&&Wt(s,a,e)}}function gp(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,u=a.get(t);let c;return u?c=u:!s.length&&!n&&!r?c=t:(c={},s.length&&s.forEach(h=>dc(c,h,o,!0)),dc(c,t,o)),Ht(t)&&a.set(t,c),c}function dc(e,t,n,r=!1){const{mixins:s,extends:a}=t;a&&dc(e,a,n,!0),s&&s.forEach(o=>dc(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const u=$R[o]||n&&n[o];e[o]=u?u(e[o],t[o]):t[o]}return e}const $R={data:dy,props:fy,emits:fy,methods:Ql,computed:Ql,beforeCreate:or,created:or,beforeMount:or,mounted:or,beforeUpdate:or,updated:or,beforeDestroy:or,beforeUnmount:or,destroyed:or,unmounted:or,activated:or,deactivated:or,errorCaptured:or,serverPrefetch:or,components:Ql,directives:Ql,watch:HR,provide:dy,inject:BR};function dy(e,t){return t?e?function(){return Ct(st(e)?e.call(this,this):e,st(t)?t.call(this,this):t)}:t:e}function BR(e,t){return Ql(Sh(e),Sh(t))}function Sh(e){if(Ye(e)){const t={};for(let n=0;n1)return n&&st(t)?t.call(r&&r.proxy):t}}function qR(){return!!(Pn||In||da)}const Z_={},X_=()=>Object.create(Z_),Q_=e=>Object.getPrototypeOf(e)===Z_;function WR(e,t,n,r=!1){const s={},a=X_();e.propsDefaults=Object.create(null),eb(e,t,s,a);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:g_(s):e.type.props?e.props=s:e.props=a,e.attrs=a}function YR(e,t,n,r){const{props:s,attrs:a,vnode:{patchFlag:o}}=e,u=Mt(s),[c]=e.propsOptions;let h=!1;if((r||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let p=0;p{c=!0;const[m,y]=tb(p,t,!0);Ct(o,m),y&&u.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!a&&!c)return Ht(e)&&r.set(e,tl),tl;if(Ye(a))for(let f=0;fe[0]==="_"||e==="$stable",vp=e=>Ye(e)?e.map(xr):[xr(e)],KR=(e,t,n)=>{if(t._n)return t;const r=Te((...s)=>vp(t(...s)),n);return r._c=!1,r},rb=(e,t,n)=>{const r=e._ctx;for(const s in e){if(nb(s))continue;const a=e[s];if(st(a))t[s]=KR(s,a,r);else if(a!=null){const o=vp(a);t[s]=()=>o}}},sb=(e,t)=>{const n=vp(t);e.slots.default=()=>n},ib=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},GR=(e,t,n)=>{const r=e.slots=X_();if(e.vnode.shapeFlag&32){const s=t._;s?(ib(r,t,n),n&&G0(r,"_",s,!0)):rb(t,r)}else t&&sb(e,t)},JR=(e,t,n)=>{const{vnode:r,slots:s}=e;let a=!0,o=St;if(r.shapeFlag&32){const u=t._;u?n&&u===1?a=!1:ib(s,t,n):(a=!t.$stable,rb(t,s)),o=t}else t&&(sb(e,t),o={default:1});if(a)for(const u in s)!nb(u)&&o[u]==null&&delete s[u]},Mn=_b;function ab(e){return ob(e)}function lb(e){return ob(e,oR)}function ob(e,t){const n=Uc();n.__VUE__=!0;const{insert:r,remove:s,patchProp:a,createElement:o,createText:u,createComment:c,setText:h,setElementText:f,parentNode:p,nextSibling:m,setScopeId:y=zn,insertStaticContent:_}=e,b=(C,I,K,Q=null,me=null,q=null,ce=void 0,ye=null,ke=!!I.dynamicChildren)=>{if(C===I)return;C&&!ds(C,I)&&(Q=z(C),j(C,me,q,!0),C=null),I.patchFlag===-2&&(ke=!1,I.dynamicChildren=null);const{type:Ce,ref:Oe,shapeFlag:He}=I;switch(Ce){case Oi:E(C,I,K,Q);break;case Cn:H(C,I,K,Q);break;case fa:C==null&&V(I,K,Q,ce);break;case Ve:ee(C,I,K,Q,me,q,ce,ye,ke);break;default:He&1?B(C,I,K,Q,me,q,ce,ye,ke):He&6?de(C,I,K,Q,me,q,ce,ye,ke):(He&64||He&128)&&Ce.process(C,I,K,Q,me,q,ce,ye,ke,we)}Oe!=null&&me&&yo(Oe,C&&C.ref,q,I||C,!I)},E=(C,I,K,Q)=>{if(C==null)r(I.el=u(I.children),K,Q);else{const me=I.el=C.el;I.children!==C.children&&h(me,I.children)}},H=(C,I,K,Q)=>{C==null?r(I.el=c(I.children||""),K,Q):I.el=C.el},V=(C,I,K,Q)=>{[C.el,C.anchor]=_(C.children,I,K,Q,C.el,C.anchor)},x=({el:C,anchor:I},K,Q)=>{let me;for(;C&&C!==I;)me=m(C),r(C,K,Q),C=me;r(I,K,Q)},O=({el:C,anchor:I})=>{let K;for(;C&&C!==I;)K=m(C),s(C),C=K;s(I)},B=(C,I,K,Q,me,q,ce,ye,ke)=>{I.type==="svg"?ce="svg":I.type==="math"&&(ce="mathml"),C==null?U(I,K,Q,me,q,ce,ye,ke):T(C,I,me,q,ce,ye,ke)},U=(C,I,K,Q,me,q,ce,ye)=>{let ke,Ce;const{props:Oe,shapeFlag:He,transition:Ue,dirs:qe}=C;if(ke=C.el=o(C.type,q,Oe&&Oe.is,Oe),He&8?f(ke,C.children):He&16&&D(C.children,ke,null,Q,me,Uf(C,q),ce,ye),qe&&Es(C,null,Q,"created"),F(ke,C,C.scopeId,ce,Q),Oe){for(const ct in Oe)ct!=="value"&&!Ci(ct)&&a(ke,ct,null,Oe[ct],q,Q);"value"in Oe&&a(ke,"value",null,Oe.value,q),(Ce=Oe.onVnodeBeforeMount)&&br(Ce,Q,C)}qe&&Es(C,null,Q,"beforeMount");const Ge=ub(me,Ue);Ge&&Ue.beforeEnter(ke),r(ke,I,K),((Ce=Oe&&Oe.onVnodeMounted)||Ge||qe)&&Mn(()=>{Ce&&br(Ce,Q,C),Ge&&Ue.enter(ke),qe&&Es(C,null,Q,"mounted")},me)},F=(C,I,K,Q,me)=>{if(K&&y(C,K),Q)for(let q=0;q{for(let Ce=ke;Ce{const ye=I.el=C.el;let{patchFlag:ke,dynamicChildren:Ce,dirs:Oe}=I;ke|=C.patchFlag&16;const He=C.props||St,Ue=I.props||St;let qe;if(K&&ea(K,!1),(qe=Ue.onVnodeBeforeUpdate)&&br(qe,K,I,C),Oe&&Es(I,C,K,"beforeUpdate"),K&&ea(K,!0),(He.innerHTML&&Ue.innerHTML==null||He.textContent&&Ue.textContent==null)&&f(ye,""),Ce?$(C.dynamicChildren,Ce,ye,K,Q,Uf(I,me),q):ce||J(C,I,ye,null,K,Q,Uf(I,me),q,!1),ke>0){if(ke&16)se(ye,He,Ue,K,me);else if(ke&2&&He.class!==Ue.class&&a(ye,"class",null,Ue.class,me),ke&4&&a(ye,"style",He.style,Ue.style,me),ke&8){const Ge=I.dynamicProps;for(let ct=0;ct{qe&&br(qe,K,I,C),Oe&&Es(I,C,K,"updated")},Q)},$=(C,I,K,Q,me,q,ce)=>{for(let ye=0;ye{if(I!==K){if(I!==St)for(const q in I)!Ci(q)&&!(q in K)&&a(C,q,I[q],null,me,Q);for(const q in K){if(Ci(q))continue;const ce=K[q],ye=I[q];ce!==ye&&q!=="value"&&a(C,q,ye,ce,me,Q)}"value"in K&&a(C,"value",I.value,K.value,me)}},ee=(C,I,K,Q,me,q,ce,ye,ke)=>{const Ce=I.el=C?C.el:u(""),Oe=I.anchor=C?C.anchor:u("");let{patchFlag:He,dynamicChildren:Ue,slotScopeIds:qe}=I;qe&&(ye=ye?ye.concat(qe):qe),C==null?(r(Ce,K,Q),r(Oe,K,Q),D(I.children||[],K,Oe,me,q,ce,ye,ke)):He>0&&He&64&&Ue&&C.dynamicChildren?($(C.dynamicChildren,Ue,K,me,q,ce,ye),(I.key!=null||me&&I===me.subTree)&&yp(C,I,!0)):J(C,I,K,Oe,me,q,ce,ye,ke)},de=(C,I,K,Q,me,q,ce,ye,ke)=>{I.slotScopeIds=ye,C==null?I.shapeFlag&512?me.ctx.activate(I,K,Q,ce,ke):ne(I,K,Q,me,q,ce,ke):N(C,I,ke)},ne=(C,I,K,Q,me,q,ce)=>{const ye=C.component=Sb(C,Q,me);if(Do(C)&&(ye.ctx.renderer=we),Cb(ye,!1,ce),ye.asyncDep){if(me&&me.registerDep(ye,G,ce),!C.el){const ke=ye.subTree=he(Cn);H(null,ke,I,K)}}else G(ye,C,I,K,me,q,ce)},N=(C,I,K)=>{const Q=I.component=C.component;if(i3(C,I,K))if(Q.asyncDep&&!Q.asyncResolved){k(Q,I,K);return}else Q.next=I,Q.update();else I.el=C.el,Q.vnode=I},G=(C,I,K,Q,me,q,ce)=>{const ye=()=>{if(C.isMounted){let{next:He,bu:Ue,u:qe,parent:Ge,vnode:ct}=C;{const hn=cb(C);if(hn){He&&(He.el=ct.el,k(C,He,ce)),hn.asyncDep.then(()=>{C.isUnmounted||ye()});return}}let _t=He,an;ea(C,!1),He?(He.el=ct.el,k(C,He,ce)):He=ct,Ue&&sl(Ue),(an=He.props&&He.props.onVnodeBeforeUpdate)&&br(an,Ge,He,ct),ea(C,!0);const Zt=Ju(C),An=C.subTree;C.subTree=Zt,b(An,Zt,p(An.el),z(An),C,me,q),He.el=Zt.el,_t===null&&nd(C,Zt.el),qe&&Mn(qe,me),(an=He.props&&He.props.onVnodeUpdated)&&Mn(()=>br(an,Ge,He,ct),me)}else{let He;const{el:Ue,props:qe}=I,{bm:Ge,m:ct,parent:_t,root:an,type:Zt}=C,An=Ei(I);if(ea(C,!1),Ge&&sl(Ge),!An&&(He=qe&&qe.onVnodeBeforeMount)&&br(He,_t,I),ea(C,!0),Ue&&W){const hn=()=>{C.subTree=Ju(C),W(Ue,C.subTree,C,me,null)};An&&Zt.__asyncHydrate?Zt.__asyncHydrate(Ue,C,hn):hn()}else{an.ce&&an.ce._injectChildStyle(Zt);const hn=C.subTree=Ju(C);b(null,hn,K,Q,C,me,q),I.el=hn.el}if(ct&&Mn(ct,me),!An&&(He=qe&&qe.onVnodeMounted)){const hn=I;Mn(()=>br(He,_t,hn),me)}(I.shapeFlag&256||_t&&Ei(_t.vnode)&&_t.vnode.shapeFlag&256)&&C.a&&Mn(C.a,me),C.isMounted=!0,I=K=Q=null}};C.scope.on();const ke=C.effect=new fo(ye);C.scope.off();const Ce=C.update=ke.run.bind(ke),Oe=C.job=ke.runIfDirty.bind(ke);Oe.i=C,Oe.id=C.uid,ke.scheduler=()=>up(Oe),ea(C,!0),Ce()},k=(C,I,K)=>{I.component=C;const Q=C.vnode.props;C.vnode=I,C.next=null,YR(C,I.props,Q,K),JR(C,I.children,K),Fi(),ny(C),$i()},J=(C,I,K,Q,me,q,ce,ye,ke=!1)=>{const Ce=C&&C.children,Oe=C?C.shapeFlag:0,He=I.children,{patchFlag:Ue,shapeFlag:qe}=I;if(Ue>0){if(Ue&128){Me(Ce,He,K,Q,me,q,ce,ye,ke);return}else if(Ue&256){_e(Ce,He,K,Q,me,q,ce,ye,ke);return}}qe&8?(Oe&16&&ge(Ce,me,q),He!==Ce&&f(K,He)):Oe&16?qe&16?Me(Ce,He,K,Q,me,q,ce,ye,ke):ge(Ce,me,q,!0):(Oe&8&&f(K,""),qe&16&&D(He,K,Q,me,q,ce,ye,ke))},_e=(C,I,K,Q,me,q,ce,ye,ke)=>{C=C||tl,I=I||tl;const Ce=C.length,Oe=I.length,He=Math.min(Ce,Oe);let Ue;for(Ue=0;UeOe?ge(C,me,q,!0,!1,He):D(I,K,Q,me,q,ce,ye,ke,He)},Me=(C,I,K,Q,me,q,ce,ye,ke)=>{let Ce=0;const Oe=I.length;let He=C.length-1,Ue=Oe-1;for(;Ce<=He&&Ce<=Ue;){const qe=C[Ce],Ge=I[Ce]=ke?ki(I[Ce]):xr(I[Ce]);if(ds(qe,Ge))b(qe,Ge,K,null,me,q,ce,ye,ke);else break;Ce++}for(;Ce<=He&&Ce<=Ue;){const qe=C[He],Ge=I[Ue]=ke?ki(I[Ue]):xr(I[Ue]);if(ds(qe,Ge))b(qe,Ge,K,null,me,q,ce,ye,ke);else break;He--,Ue--}if(Ce>He){if(Ce<=Ue){const qe=Ue+1,Ge=qeUe)for(;Ce<=He;)j(C[Ce],me,q,!0),Ce++;else{const qe=Ce,Ge=Ce,ct=new Map;for(Ce=Ge;Ce<=Ue;Ce++){const pn=I[Ce]=ke?ki(I[Ce]):xr(I[Ce]);pn.key!=null&&ct.set(pn.key,Ce)}let _t,an=0;const Zt=Ue-Ge+1;let An=!1,hn=0;const Mr=new Array(Zt);for(Ce=0;Ce=Zt){j(pn,me,q,!0);continue}let ue;if(pn.key!=null)ue=ct.get(pn.key);else for(_t=Ge;_t<=Ue;_t++)if(Mr[_t-Ge]===0&&ds(pn,I[_t])){ue=_t;break}ue===void 0?j(pn,me,q,!0):(Mr[ue-Ge]=Ce+1,ue>=hn?hn=ue:An=!0,b(pn,I[ue],K,null,me,q,ce,ye,ke),an++)}const ws=An?ZR(Mr):tl;for(_t=ws.length-1,Ce=Zt-1;Ce>=0;Ce--){const pn=Ge+Ce,ue=I[pn],Fe=pn+1{const{el:q,type:ce,transition:ye,children:ke,shapeFlag:Ce}=C;if(Ce&6){Ne(C.component.subTree,I,K,Q);return}if(Ce&128){C.suspense.move(I,K,Q);return}if(Ce&64){ce.move(C,I,K,we);return}if(ce===Ve){r(q,I,K);for(let He=0;Heye.enter(q),me);else{const{leave:He,delayLeave:Ue,afterLeave:qe}=ye,Ge=()=>r(q,I,K),ct=()=>{He(q,()=>{Ge(),qe&&qe()})};Ue?Ue(q,Ge,ct):ct()}else r(q,I,K)},j=(C,I,K,Q=!1,me=!1)=>{const{type:q,props:ce,ref:ye,children:ke,dynamicChildren:Ce,shapeFlag:Oe,patchFlag:He,dirs:Ue,cacheIndex:qe}=C;if(He===-2&&(me=!1),ye!=null&&yo(ye,null,K,C,!0),qe!=null&&(I.renderCache[qe]=void 0),Oe&256){I.ctx.deactivate(C);return}const Ge=Oe&1&&Ue,ct=!Ei(C);let _t;if(ct&&(_t=ce&&ce.onVnodeBeforeUnmount)&&br(_t,I,C),Oe&6)ie(C.component,K,Q);else{if(Oe&128){C.suspense.unmount(K,Q);return}Ge&&Es(C,null,I,"beforeUnmount"),Oe&64?C.type.remove(C,I,K,we,Q):Ce&&!Ce.hasOnce&&(q!==Ve||He>0&&He&64)?ge(Ce,I,K,!1,!0):(q===Ve&&He&384||!me&&Oe&16)&&ge(ke,I,K),Q&&te(C)}(ct&&(_t=ce&&ce.onVnodeUnmounted)||Ge)&&Mn(()=>{_t&&br(_t,I,C),Ge&&Es(C,null,I,"unmounted")},K)},te=C=>{const{type:I,el:K,anchor:Q,transition:me}=C;if(I===Ve){M(K,Q);return}if(I===fa){O(C);return}const q=()=>{s(K),me&&!me.persisted&&me.afterLeave&&me.afterLeave()};if(C.shapeFlag&1&&me&&!me.persisted){const{leave:ce,delayLeave:ye}=me,ke=()=>ce(K,q);ye?ye(C.el,q,ke):ke()}else q()},M=(C,I)=>{let K;for(;C!==I;)K=m(C),s(C),C=K;s(I)},ie=(C,I,K)=>{const{bum:Q,scope:me,job:q,subTree:ce,um:ye,m:ke,a:Ce}=C;fc(ke),fc(Ce),Q&&sl(Q),me.stop(),q&&(q.flags|=8,j(ce,C,I,K)),ye&&Mn(ye,I),Mn(()=>{C.isUnmounted=!0},I),I&&I.pendingBranch&&!I.isUnmounted&&C.asyncDep&&!C.asyncResolved&&C.suspenseId===I.pendingId&&(I.deps--,I.deps===0&&I.resolve())},ge=(C,I,K,Q=!1,me=!1,q=0)=>{for(let ce=q;ce{if(C.shapeFlag&6)return z(C.component.subTree);if(C.shapeFlag&128)return C.suspense.next();const I=m(C.anchor||C.el),K=I&&I[E_];return K?m(K):I};let Le=!1;const Xe=(C,I,K)=>{C==null?I._vnode&&j(I._vnode,null,null,!0):b(I._vnode||null,C,I,null,null,null,K),I._vnode=C,Le||(Le=!0,ny(),cc(),Le=!1)},we={p:b,um:j,m:Ne,r:te,mt:ne,mc:D,pc:J,pbc:$,n:z,o:e};let et,W;return t&&([et,W]=t(we)),{render:Xe,hydrate:et,createApp:jR(Xe,et)}}function Uf({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ea({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ub(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function yp(e,t,n=!1){const r=e.children,s=t.children;if(Ye(r)&&Ye(s))for(let a=0;a>1,e[n[u]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function cb(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:cb(t)}function fc(e){if(e)for(let t=0;tso(db);function hb(e,t){return Po(e,null,t)}function XR(e,t){return Po(e,null,{flush:"post"})}function pb(e,t){return Po(e,null,{flush:"sync"})}function Wt(e,t,n){return Po(e,t,n)}function Po(e,t,n=St){const{immediate:r,deep:s,flush:a,once:o}=n,u=Ct({},n),c=t&&r||!t&&a!=="post";let h;if(ul){if(a==="sync"){const y=fb();h=y.__watcherHandles||(y.__watcherHandles=[])}else if(!c){const y=()=>{};return y.stop=zn,y.resume=zn,y.pause=zn,y}}const f=Pn;u.call=(y,_,b)=>rs(y,f,_,b);let p=!1;a==="post"?u.scheduler=y=>{Mn(y,f&&f.suspense)}:a!=="sync"&&(p=!0,u.scheduler=(y,_)=>{_?y():up(y)}),u.augmentJob=y=>{t&&(y.flags|=4),p&&(y.flags|=2,f&&(y.id=f.uid,y.i=f))};const m=WM(e,t,u);return ul&&(h?h.push(m):c&&m()),m}function QR(e,t,n){const r=this.proxy,s=ut(e)?e.includes(".")?mb(r,e):()=>r[e]:e.bind(r,r);let a;st(t)?a=t:(a=t.handler,n=t);const o=_a(this),u=Po(s,a.bind(r),n);return o(),u}function mb(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s{let f,p=St,m;return pb(()=>{const y=e[s];dr(f,y)&&(f=y,h())}),{get(){return c(),n.get?n.get(f):f},set(y){const _=n.set?n.set(y):y;if(!dr(_,f)&&!(p!==St&&dr(y,p)))return;const b=r.vnode.props;b&&(t in b||s in b||a in b)&&(`onUpdate:${t}`in b||`onUpdate:${s}`in b||`onUpdate:${a}`in b)||(f=y,h()),r.emit(`update:${t}`,_),dr(y,_)&&dr(y,p)&&!dr(_,m)&&h(),p=y,m=_}}});return u[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?o||St:u,done:!1}:{done:!0}}}},u}const gb=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Jt(t)}Modifiers`]||e[`${kr(t)}Modifiers`];function t3(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||St;let s=n;const a=t.startsWith("update:"),o=a&&gb(r,t.slice(7));o&&(o.trim&&(s=n.map(f=>ut(f)?f.trim():f)),o.number&&(s=n.map(ic)));let u,c=r[u=rl(t)]||r[u=rl(Jt(t))];!c&&a&&(c=r[u=rl(kr(t))]),c&&rs(c,e,6,s);const h=r[u+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[u])return;e.emitted[u]=!0,rs(h,e,6,s)}}function vb(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const a=e.emits;let o={},u=!1;if(!st(e)){const c=h=>{const f=vb(h,t,!0);f&&(u=!0,Ct(o,f))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!a&&!u?(Ht(e)&&r.set(e,null),null):(Ye(a)?a.forEach(c=>o[c]=null):Ct(o,a),Ht(e)&&r.set(e,o),o)}function td(e,t){return!e||!wa(t)?!1:(t=t.slice(2).replace(/Once$/,""),Dt(e,t[0].toLowerCase()+t.slice(1))||Dt(e,kr(t))||Dt(e,t))}function Ju(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[a],slots:o,attrs:u,emit:c,render:h,renderCache:f,props:p,data:m,setupState:y,ctx:_,inheritAttrs:b}=e,E=vo(e);let H,V;try{if(n.shapeFlag&4){const O=s||r,B=O;H=xr(h.call(B,O,f,p,y,m,_)),V=u}else{const O=t;H=xr(O.length>1?O(p,{attrs:u,slots:o,emit:c}):O(p,null)),V=t.props?u:r3(u)}}catch(O){io.length=0,Sa(O,e,1),H=he(Cn)}let x=H;if(V&&b!==!1){const O=Object.keys(V),{shapeFlag:B}=x;O.length&&B&7&&(a&&O.some(Xh)&&(V=s3(V,a)),x=Ps(x,V,!1,!0))}return n.dirs&&(x=Ps(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&ti(x,n.transition),H=x,vo(E),H}function n3(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||wa(n))&&((t||(t={}))[n]=e[n]);return t},s3=(e,t)=>{const n={};for(const r in e)(!Xh(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function i3(e,t,n){const{props:r,children:s,component:a}=e,{props:o,children:u,patchFlag:c}=t,h=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?py(r,o,h):!!o;if(c&8){const f=t.dynamicProps;for(let p=0;pe.__isSuspense;let Ch=0;const a3={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,a,o,u,c,h){if(e==null)o3(t,n,r,s,a,o,u,c,h);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}u3(e,t,n,r,s,o,u,c,h)}},hydrate:c3,normalize:d3},l3=a3;function bo(e,t){const n=e.props&&e.props[t];st(n)&&n()}function o3(e,t,n,r,s,a,o,u,c){const{p:h,o:{createElement:f}}=c,p=f("div"),m=e.suspense=yb(e,s,r,t,p,n,a,o,u,c);h(null,m.pendingBranch=e.ssContent,p,null,r,m,a,o),m.deps>0?(bo(e,"onPending"),bo(e,"onFallback"),h(null,e.ssFallback,t,n,r,null,a,o),al(m,e.ssFallback)):m.resolve(!1,!0)}function u3(e,t,n,r,s,a,o,u,{p:c,um:h,o:{createElement:f}}){const p=t.suspense=e.suspense;p.vnode=t,t.el=e.el;const m=t.ssContent,y=t.ssFallback,{activeBranch:_,pendingBranch:b,isInFallback:E,isHydrating:H}=p;if(b)p.pendingBranch=m,ds(m,b)?(c(b,m,p.hiddenContainer,null,s,p,a,o,u),p.deps<=0?p.resolve():E&&(H||(c(_,y,n,r,s,null,a,o,u),al(p,y)))):(p.pendingId=Ch++,H?(p.isHydrating=!1,p.activeBranch=b):h(b,s,p),p.deps=0,p.effects.length=0,p.hiddenContainer=f("div"),E?(c(null,m,p.hiddenContainer,null,s,p,a,o,u),p.deps<=0?p.resolve():(c(_,y,n,r,s,null,a,o,u),al(p,y))):_&&ds(m,_)?(c(_,m,n,r,s,p,a,o,u),p.resolve(!0)):(c(null,m,p.hiddenContainer,null,s,p,a,o,u),p.deps<=0&&p.resolve()));else if(_&&ds(m,_))c(_,m,n,r,s,p,a,o,u),al(p,m);else if(bo(t,"onPending"),p.pendingBranch=m,m.shapeFlag&512?p.pendingId=m.component.suspenseId:p.pendingId=Ch++,c(null,m,p.hiddenContainer,null,s,p,a,o,u),p.deps<=0)p.resolve();else{const{timeout:V,pendingId:x}=p;V>0?setTimeout(()=>{p.pendingId===x&&p.fallback(y)},V):V===0&&p.fallback(y)}}function yb(e,t,n,r,s,a,o,u,c,h,f=!1){const{p,m,um:y,n:_,o:{parentNode:b,remove:E}}=h;let H;const V=f3(e);V&&t&&t.pendingBranch&&(H=t.pendingId,t.deps++);const x=e.props?ac(e.props.timeout):void 0,O=a,B={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:s,deps:0,pendingId:Ch++,timeout:typeof x=="number"?x:-1,activeBranch:null,pendingBranch:null,isInFallback:!f,isHydrating:f,isUnmounted:!1,effects:[],resolve(U=!1,F=!1){const{vnode:D,activeBranch:T,pendingBranch:$,pendingId:se,effects:ee,parentComponent:de,container:ne}=B;let N=!1;B.isHydrating?B.isHydrating=!1:U||(N=T&&$.transition&&$.transition.mode==="out-in",N&&(T.transition.afterLeave=()=>{se===B.pendingId&&(m($,ne,a===O?_(T):a,0),mo(ee))}),T&&(b(T.el)===ne&&(a=_(T)),y(T,de,B,!0)),N||m($,ne,a,0)),al(B,$),B.pendingBranch=null,B.isInFallback=!1;let G=B.parent,k=!1;for(;G;){if(G.pendingBranch){G.effects.push(...ee),k=!0;break}G=G.parent}!k&&!N&&mo(ee),B.effects=[],V&&t&&t.pendingBranch&&H===t.pendingId&&(t.deps--,t.deps===0&&!F&&t.resolve()),bo(D,"onResolve")},fallback(U){if(!B.pendingBranch)return;const{vnode:F,activeBranch:D,parentComponent:T,container:$,namespace:se}=B;bo(F,"onFallback");const ee=_(D),de=()=>{B.isInFallback&&(p(null,U,$,ee,T,null,se,u,c),al(B,U))},ne=U.transition&&U.transition.mode==="out-in";ne&&(D.transition.afterLeave=de),B.isInFallback=!0,y(D,T,null,!0),ne||de()},move(U,F,D){B.activeBranch&&m(B.activeBranch,U,F,D),B.container=U},next(){return B.activeBranch&&_(B.activeBranch)},registerDep(U,F,D){const T=!!B.pendingBranch;T&&B.deps++;const $=U.vnode.el;U.asyncDep.catch(se=>{Sa(se,U,0)}).then(se=>{if(U.isUnmounted||B.isUnmounted||B.pendingId!==U.suspenseId)return;U.asyncResolved=!0;const{vnode:ee}=U;Mh(U,se,!1),$&&(ee.el=$);const de=!$&&U.subTree.el;F(U,ee,b($||U.subTree.el),$?null:_(U.subTree),B,o,D),de&&E(de),nd(U,ee.el),T&&--B.deps===0&&B.resolve()})},unmount(U,F){B.isUnmounted=!0,B.activeBranch&&y(B.activeBranch,n,U,F),B.pendingBranch&&y(B.pendingBranch,n,U,F)}};return B}function c3(e,t,n,r,s,a,o,u,c){const h=t.suspense=yb(t,r,n,e.parentNode,document.createElement("div"),null,s,a,o,u,!0),f=c(e,h.pendingBranch=t.ssContent,n,h,a,o);return h.deps===0&&h.resolve(!1,!0),f}function d3(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=my(r?n.default:n),e.ssFallback=r?my(n.fallback):he(Cn)}function my(e){let t;if(st(e)){const n=ya&&e._c;n&&(e._d=!1,S()),e=e(),n&&(e._d=!0,t=rr,bb())}return Ye(e)&&(e=n3(e)),e=xr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function _b(e,t){t&&t.pendingBranch?Ye(e)?t.effects.push(...e):t.effects.push(e):mo(e)}function al(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;n.el=s,r&&r.subTree===n&&(r.vnode.el=s,nd(r,s))}function f3(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ve=Symbol.for("v-fgt"),Oi=Symbol.for("v-txt"),Cn=Symbol.for("v-cmt"),fa=Symbol.for("v-stc"),io=[];let rr=null;function S(e=!1){io.push(rr=e?null:[])}function bb(){io.pop(),rr=io[io.length-1]||null}let ya=1;function Ah(e,t=!1){ya+=e,e<0&&rr&&t&&(rr.hasOnce=!0)}function wb(e){return e.dynamicChildren=ya>0?rr||tl:null,bb(),ya>0&&rr&&rr.push(e),e}function P(e,t,n,r,s,a){return wb(v(e,t,n,r,s,a,!0))}function it(e,t,n,r,s){return wb(he(e,t,n,r,s,!0))}function ni(e){return e?e.__v_isVNode===!0:!1}function ds(e,t){return e.type===t.type&&e.key===t.key}function h3(e){}const xb=({key:e})=>e??null,Zu=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ut(e)||Tn(e)||st(e)?{i:In,r:e,k:t,f:!!n}:e:null);function v(e,t=null,n=null,r=0,s=null,a=e===Ve?0:1,o=!1,u=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&xb(t),ref:t&&Zu(t),scopeId:Gc,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:In};return u?(_p(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=ut(n)?8:16),ya>0&&!o&&rr&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&rr.push(c),c}const he=p3;function p3(e,t=null,n=null,r=0,s=null,a=!1){if((!e||e===W_)&&(e=Cn),ni(e)){const u=Ps(e,t,!0);return n&&_p(u,n),ya>0&&!a&&rr&&(u.shapeFlag&6?rr[rr.indexOf(e)]=u:rr.push(u)),u.patchFlag=-2,u}if(b3(e)&&(e=e.__vccOpts),t){t=Yn(t);let{class:u,style:c}=t;u&&!ut(u)&&(t.class=Be(u)),Ht(c)&&(Kc(c)&&!Ye(c)&&(c=Ct({},c)),t.style=bn(c))}const o=ut(e)?1:hc(e)?128:O_(e)?64:Ht(e)?4:st(e)?2:0;return v(e,t,n,r,s,o,a,!0)}function Yn(e){return e?Kc(e)||Q_(e)?Ct({},e):e:null}function Ps(e,t,n=!1,r=!1){const{props:s,ref:a,patchFlag:o,children:u,transition:c}=e,h=t?cn(s||{},t):s,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&xb(h),ref:t&&t.ref?n&&a?Ye(a)?a.concat(Zu(t)):[a,Zu(t)]:Zu(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:u,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ve?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ps(e.ssContent),ssFallback:e.ssFallback&&Ps(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&ti(f,c.clone(f)),f}function ht(e=" ",t=0){return he(Oi,null,e,t)}function kb(e,t){const n=he(fa,null,e);return n.staticCount=t,n}function ae(e="",t=!1){return t?(S(),it(Cn,null,e)):he(Cn,null,e)}function xr(e){return e==null||typeof e=="boolean"?he(Cn):Ye(e)?he(Ve,null,e.slice()):ni(e)?ki(e):he(Oi,null,String(e))}function ki(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ps(e)}function _p(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Ye(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),_p(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Q_(t)?t._ctx=In:s===3&&In&&(In.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else st(t)?(t={default:t,_ctx:In},n=32):(t=String(t),r&64?(n=16,t=[ht(t)]):n=8);e.children=t,e.shapeFlag|=n}function cn(...e){const t={};for(let n=0;nPn||In;let pc,Eh;{const e=Uc(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),a=>{s.length>1?s.forEach(o=>o(a)):s[0](a)}};pc=t("__VUE_INSTANCE_SETTERS__",n=>Pn=n),Eh=t("__VUE_SSR_SETTERS__",n=>ul=n)}const _a=e=>{const t=Pn;return pc(e),e.scope.on(),()=>{e.scope.off(),pc(t)}},Oh=()=>{Pn&&Pn.scope.off(),pc(null)};function Tb(e){return e.vnode.shapeFlag&4}let ul=!1;function Cb(e,t=!1,n=!1){t&&Eh(t);const{props:r,children:s}=e.vnode,a=Tb(e);WR(e,r,a,t),GR(e,s,n);const o=a?v3(e,t):void 0;return t&&Eh(!1),o}function v3(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,xh);const{setup:r}=n;if(r){Fi();const s=e.setupContext=r.length>1?Ob(e):null,a=_a(e),o=Tl(r,e,0,[e.props,s]),u=ep(o);if($i(),a(),(u||e.sp)&&!Ei(e)&&fp(e),u){if(o.then(Oh,Oh),t)return o.then(c=>{Mh(e,c,t)}).catch(c=>{Sa(c,e,0)});e.asyncDep=o}else Mh(e,o,t)}else Eb(e,t)}function Mh(e,t,n){st(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ht(t)&&(e.setupState=op(t)),Eb(e,n)}let mc,Rh;function Ab(e){mc=e,Rh=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,SR))}}const y3=()=>!mc;function Eb(e,t,n){const r=e.type;if(!e.render){if(!t&&mc&&!r.render){const s=r.template||gp(e).template;if(s){const{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:u,compilerOptions:c}=r,h=Ct(Ct({isCustomElement:a,delimiters:u},o),c);r.render=mc(s,h)}}e.render=r.render||zn,Rh&&Rh(e)}{const s=_a(e);Fi();try{VR(e)}finally{$i(),s()}}}const _3={get(e,t){return er(e,"get",""),e[t]}};function Ob(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,_3),slots:e.slots,emit:e.emit,expose:t}}function Lo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(op(v_(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ro)return ro[n](e)},has(t,n){return n in t||n in ro}})):e.proxy}function Dh(e,t=!0){return st(e)?e.displayName||e.name:e.name||t&&e.__name}function b3(e){return st(e)&&"__vccOpts"in e}const pe=(e,t)=>HM(e,t,ul);function bp(e,t,n){const r=arguments.length;return r===2?Ht(t)&&!Ye(t)?ni(t)?he(e,null,[t]):he(e,t):he(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ni(n)&&(n=[n]),he(e,t,n))}function w3(){}function x3(e,t,n,r){const s=n[r];if(s&&Mb(s,e))return s;const a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function Mb(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&rr&&rr.push(e),!0}const Rb="3.5.13",k3=zn,S3=JM,T3=Ja,C3=A_,A3={createComponentInstance:Sb,setupComponent:Cb,renderComponentRoot:Ju,setCurrentRenderingInstance:vo,isVNode:ni,normalizeVNode:xr,getComponentPublicInstance:Lo,ensureValidVNode:mp,pushWarningContext:YM,popWarningContext:zM},E3=A3,O3=null,M3=null,R3=null;/** +* @vue/runtime-dom v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Ph;const gy=typeof window<"u"&&window.trustedTypes;if(gy)try{Ph=gy.createPolicy("vue",{createHTML:e=>e})}catch{}const Db=Ph?e=>Ph.createHTML(e):e=>e,D3="http://www.w3.org/2000/svg",P3="http://www.w3.org/1998/Math/MathML",zs=typeof document<"u"?document:null,vy=zs&&zs.createElement("template"),L3={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?zs.createElementNS(D3,e):t==="mathml"?zs.createElementNS(P3,e):n?zs.createElement(e,{is:n}):zs.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>zs.createTextNode(e),createComment:e=>zs.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>zs.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,a){const o=n?n.previousSibling:t.lastChild;if(s&&(s===a||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===a||!(s=s.nextSibling)););else{vy.innerHTML=Db(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const u=vy.content;if(r==="svg"||r==="mathml"){const c=u.firstChild;for(;c.firstChild;)u.appendChild(c.firstChild);u.removeChild(c)}t.insertBefore(u,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},mi="transition",Yl="animation",cl=Symbol("_vtc"),Pb={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Lb=Ct({},dp,Pb),I3=e=>(e.displayName="Transition",e.props=Lb,e),vs=I3((e,{slots:t})=>bp(I_,Ib(e),t)),ta=(e,t=[])=>{Ye(e)?e.forEach(n=>n(...t)):e&&e(...t)},yy=e=>e?Ye(e)?e.some(t=>t.length>1):e.length>1:!1;function Ib(e){const t={};for(const ee in e)ee in Pb||(t[ee]=e[ee]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:u=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:h=o,appearToClass:f=u,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,_=N3(s),b=_&&_[0],E=_&&_[1],{onBeforeEnter:H,onEnter:V,onEnterCancelled:x,onLeave:O,onLeaveCancelled:B,onBeforeAppear:U=H,onAppear:F=V,onAppearCancelled:D=x}=t,T=(ee,de,ne,N)=>{ee._enterCancelled=N,_i(ee,de?f:u),_i(ee,de?h:o),ne&&ne()},$=(ee,de)=>{ee._isLeaving=!1,_i(ee,p),_i(ee,y),_i(ee,m),de&&de()},se=ee=>(de,ne)=>{const N=ee?F:V,G=()=>T(de,ee,ne);ta(N,[de,G]),_y(()=>{_i(de,ee?c:a),Cs(de,ee?f:u),yy(N)||by(de,r,b,G)})};return Ct(t,{onBeforeEnter(ee){ta(H,[ee]),Cs(ee,a),Cs(ee,o)},onBeforeAppear(ee){ta(U,[ee]),Cs(ee,c),Cs(ee,h)},onEnter:se(!1),onAppear:se(!0),onLeave(ee,de){ee._isLeaving=!0;const ne=()=>$(ee,de);Cs(ee,p),ee._enterCancelled?(Cs(ee,m),Lh()):(Lh(),Cs(ee,m)),_y(()=>{ee._isLeaving&&(_i(ee,p),Cs(ee,y),yy(O)||by(ee,r,E,ne))}),ta(O,[ee,ne])},onEnterCancelled(ee){T(ee,!1,void 0,!0),ta(x,[ee])},onAppearCancelled(ee){T(ee,!0,void 0,!0),ta(D,[ee])},onLeaveCancelled(ee){$(ee),ta(B,[ee])}})}function N3(e){if(e==null)return null;if(Ht(e))return[jf(e.enter),jf(e.leave)];{const t=jf(e);return[t,t]}}function jf(e){return ac(e)}function Cs(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[cl]||(e[cl]=new Set)).add(t)}function _i(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[cl];n&&(n.delete(t),n.size||(e[cl]=void 0))}function _y(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let V3=0;function by(e,t,n,r){const s=e._endId=++V3,a=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(a,n);const{type:o,timeout:u,propCount:c}=Nb(e,t);if(!o)return r();const h=o+"end";let f=0;const p=()=>{e.removeEventListener(h,m),a()},m=y=>{y.target===e&&++f>=c&&p()};setTimeout(()=>{f(n[_]||"").split(", "),s=r(`${mi}Delay`),a=r(`${mi}Duration`),o=wy(s,a),u=r(`${Yl}Delay`),c=r(`${Yl}Duration`),h=wy(u,c);let f=null,p=0,m=0;t===mi?o>0&&(f=mi,p=o,m=a.length):t===Yl?h>0&&(f=Yl,p=h,m=c.length):(p=Math.max(o,h),f=p>0?o>h?mi:Yl:null,m=f?f===mi?a.length:c.length:0);const y=f===mi&&/\b(transform|all)(,|$)/.test(r(`${mi}Property`).toString());return{type:f,timeout:p,propCount:m,hasTransform:y}}function wy(e,t){for(;e.lengthxy(n)+xy(e[r])))}function xy(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Lh(){return document.body.offsetHeight}function F3(e,t,n){const r=e[cl];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const gc=Symbol("_vod"),Vb=Symbol("_vsh"),Fr={beforeMount(e,{value:t},{transition:n}){e[gc]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):zl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),zl(e,!0),r.enter(e)):r.leave(e,()=>{zl(e,!1)}):zl(e,t))},beforeUnmount(e,{value:t}){zl(e,t)}};function zl(e,t){e.style.display=t?e[gc]:"none",e[Vb]=!t}function $3(){Fr.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Fb=Symbol("");function B3(e){const t=ss();if(!t)return;const n=t.ut=(s=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(a=>vc(a,s))},r=()=>{const s=e(t.proxy);t.ce?vc(t.ce,s):Ih(t.subTree,s),n(s)};Xc(()=>{mo(r)}),Ft(()=>{Wt(r,zn,{flush:"post"});const s=new MutationObserver(r);s.observe(t.subTree.el.parentNode,{childList:!0}),ii(()=>s.disconnect())})}function Ih(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Ih(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)vc(e.el,t);else if(e.type===Ve)e.children.forEach(n=>Ih(n,t));else if(e.type===fa){let{el:n,anchor:r}=e;for(;n&&(vc(n,t),n!==r);)n=n.nextSibling}}function vc(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const s in t)n.setProperty(`--${s}`,t[s]),r+=`--${s}: ${t[s]};`;n[Fb]=r}}const H3=/(^|;)\s*display\s*:/;function U3(e,t,n){const r=e.style,s=ut(n);let a=!1;if(n&&!s){if(t)if(ut(t))for(const o of t.split(";")){const u=o.slice(0,o.indexOf(":")).trim();n[u]==null&&Xu(r,u,"")}else for(const o in t)n[o]==null&&Xu(r,o,"");for(const o in n)o==="display"&&(a=!0),Xu(r,o,n[o])}else if(s){if(t!==n){const o=r[Fb];o&&(n+=";"+o),r.cssText=n,a=H3.test(n)}}else t&&e.removeAttribute("style");gc in e&&(e[gc]=a?r.display:"",e[Vb]&&(r.display="none"))}const ky=/\s*!important$/;function Xu(e,t,n){if(Ye(n))n.forEach(r=>Xu(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=j3(e,t);ky.test(n)?e.setProperty(kr(r),n.replace(ky,""),"important"):e[r]=n}}const Sy=["Webkit","Moz","ms"],qf={};function j3(e,t){const n=qf[t];if(n)return n;let r=Jt(t);if(r!=="filter"&&r in e)return qf[t]=r;r=ka(r);for(let s=0;sWf||(z3.then(()=>Wf=0),Wf=Date.now());function G3(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;rs(J3(r,n.value),t,5,[r])};return n.value=e,n.attached=K3(),n}function J3(e,t){if(Ye(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const My=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Z3=(e,t,n,r,s,a)=>{const o=s==="svg";t==="class"?F3(e,r,o):t==="style"?U3(e,n,r):wa(t)?Xh(t)||W3(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):X3(e,t,r,o))?(Ay(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Cy(e,t,r,o,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ut(r))?Ay(e,Jt(t),r,a,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Cy(e,t,r,o))};function X3(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&My(t)&&st(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return My(t)&&ut(n)?!1:t in e}const Ry={};/*! #__NO_SIDE_EFFECTS__ */function $b(e,t,n){const r=fn(e,t);Bc(r)&&Ct(r,t);class s extends rd{constructor(o){super(r,o,n)}}return s.def=r,s}/*! #__NO_SIDE_EFFECTS__ */const Q3=(e,t)=>$b(e,t,Kb),eD=typeof HTMLElement<"u"?HTMLElement:class{};class rd extends eD{constructor(t,n={},r=bc){super(),this._def=t,this._props=n,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&r!==bc?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this,this._def.__asyncLoader||this._resolveProps(this._def)}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof rd){this._parent=t;break}this._instance||(this._resolved?(this._setParent(),this._update()):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._instance.provides=t._instance.provides)}disconnectedCallback(){this._connected=!1,Un(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let r=0;r{for(const s of r)this._setAttr(s.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,s=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:a,styles:o}=r;let u;if(a&&!Ye(a))for(const c in a){const h=a[c];(h===Number||h&&h.type===Number)&&(c in this._props&&(this._props[c]=ac(this._props[c])),(u||(u=Object.create(null)))[Jt(c)]=!0)}this._numberProps=u,s&&this._resolveProps(r),this.shadowRoot&&this._applyStyles(o),this._mount(r)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(r=>t(this._def=r,!0)):t(this._def)}_mount(t){this._app=this._createApp(t),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const r in n)Dt(this,r)||Object.defineProperty(this,r,{get:()=>Z(n[r])})}_resolveProps(t){const{props:n}=t,r=Ye(n)?n:Object.keys(n||{});for(const s of Object.keys(this))s[0]!=="_"&&r.includes(s)&&this._setProp(s,this[s]);for(const s of r.map(Jt))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(a){this._setProp(s,a,!0,!0)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let r=n?this.getAttribute(t):Ry;const s=Jt(t);n&&this._numberProps&&this._numberProps[s]&&(r=ac(r)),this._setProp(s,r,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,s=!1){if(n!==this._props[t]&&(n===Ry?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),s&&this._instance&&this._update(),r)){const a=this._ob;a&&a.disconnect(),n===!0?this.setAttribute(kr(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(kr(t),n+""):n||this.removeAttribute(kr(t)),a&&a.observe(this,{attributes:!0})}}_update(){_c(this._createVNode(),this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=he(this._def,Ct(t,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const s=(a,o)=>{this.dispatchEvent(new CustomEvent(a,Bc(o[0])?Ct({detail:o},o[0]):{detail:o}))};r.emit=(a,...o)=>{s(a,o),kr(a)!==a&&s(kr(a),o)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const r=this._nonce;for(let s=t.length-1;s>=0;s--){const a=document.createElement("style");r&&a.setAttribute("nonce",r),a.textContent=t[s],this.shadowRoot.prepend(a)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const r=n.nodeType===1&&n.getAttribute("slot")||"default";(t[r]||(t[r]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=(this._teleportTarget||this).querySelectorAll("slot"),n=this._instance.type.__scopeId;for(let r=0;r(delete e.props.mode,e),sD=rD({name:"TransitionGroup",props:Ct({},Lb,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ss(),r=cp();let s,a;return Qc(()=>{if(!s.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!uD(s[0].el,n.vnode.el,o))return;s.forEach(aD),s.forEach(lD);const u=s.filter(oD);Lh(),u.forEach(c=>{const h=c.el,f=h.style;Cs(h,o),f.transform=f.webkitTransform=f.transitionDuration="";const p=h[yc]=m=>{m&&m.target!==h||(!m||/transform$/.test(m.propertyName))&&(h.removeEventListener("transitionend",p),h[yc]=null,_i(h,o))};h.addEventListener("transitionend",p)})}),()=>{const o=Mt(e),u=Ib(o);let c=o.tag||Ve;if(s=[],a)for(let h=0;h{u.split(/\s+/).forEach(c=>c&&r.classList.remove(c))}),n.split(/\s+/).forEach(u=>u&&r.classList.add(u)),r.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(r);const{hasTransform:o}=Nb(r);return a.removeChild(r),o}const Ii=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ye(t)?n=>sl(t,n):t};function cD(e){e.target.composing=!0}function Py(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ns=Symbol("_assign"),Ni={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[ns]=Ii(s);const a=r||s.props&&s.props.type==="number";Zs(e,t?"change":"input",o=>{if(o.target.composing)return;let u=e.value;n&&(u=u.trim()),a&&(u=ic(u)),e[ns](u)}),n&&Zs(e,"change",()=>{e.value=e.value.trim()}),t||(Zs(e,"compositionstart",cD),Zs(e,"compositionend",Py),Zs(e,"change",Py))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:a}},o){if(e[ns]=Ii(o),e.composing)return;const u=(a||e.type==="number")&&!/^0\d/.test(e.value)?ic(e.value):e.value,c=t??"";u!==c&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===c)||(e.value=c))}},wp={deep:!0,created(e,t,n){e[ns]=Ii(n),Zs(e,"change",()=>{const r=e._modelValue,s=dl(e),a=e.checked,o=e[ns];if(Ye(r)){const u=jc(r,s),c=u!==-1;if(a&&!c)o(r.concat(s));else if(!a&&c){const h=[...r];h.splice(u,1),o(h)}}else if(xa(r)){const u=new Set(r);a?u.add(s):u.delete(s),o(u)}else o(jb(e,a))})},mounted:Ly,beforeUpdate(e,t,n){e[ns]=Ii(n),Ly(e,t,n)}};function Ly(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if(Ye(t))s=jc(t,r.props.value)>-1;else if(xa(t))s=t.has(r.props.value);else{if(t===n)return;s=Pi(t,jb(e,!0))}e.checked!==s&&(e.checked=s)}const xp={created(e,{value:t},n){e.checked=Pi(t,n.props.value),e[ns]=Ii(n),Zs(e,"change",()=>{e[ns](dl(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[ns]=Ii(r),t!==n&&(e.checked=Pi(t,r.props.value))}},kp={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=xa(t);Zs(e,"change",()=>{const a=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?ic(dl(o)):dl(o));e[ns](e.multiple?s?new Set(a):a:a[0]),e._assigning=!0,Un(()=>{e._assigning=!1})}),e[ns]=Ii(r)},mounted(e,{value:t}){Iy(e,t)},beforeUpdate(e,t,n){e[ns]=Ii(n)},updated(e,{value:t}){e._assigning||Iy(e,t)}};function Iy(e,t){const n=e.multiple,r=Ye(t);if(!(n&&!r&&!xa(t))){for(let s=0,a=e.options.length;sString(h)===String(u)):o.selected=jc(t,u)>-1}else o.selected=t.has(u);else if(Pi(dl(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function dl(e){return"_value"in e?e._value:e.value}function jb(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Sp={created(e,t,n){$u(e,t,n,null,"created")},mounted(e,t,n){$u(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){$u(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){$u(e,t,n,r,"updated")}};function qb(e,t){switch(e){case"SELECT":return kp;case"TEXTAREA":return Ni;default:switch(t){case"checkbox":return wp;case"radio":return xp;default:return Ni}}}function $u(e,t,n,r,s){const o=qb(e.tagName,n.props&&n.props.type)[s];o&&o(e,t,n,r)}function dD(){Ni.getSSRProps=({value:e})=>({value:e}),xp.getSSRProps=({value:e},t)=>{if(t.props&&Pi(t.props.value,e))return{checked:!0}},wp.getSSRProps=({value:e},t)=>{if(Ye(e)){if(t.props&&jc(e,t.props.value)>-1)return{checked:!0}}else if(xa(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Sp.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=qb(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const fD=["ctrl","shift","alt","meta"],hD={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>fD.some(n=>e[`${n}Key`]&&!t.includes(n))},Et=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...a)=>{for(let o=0;o{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const a=kr(s.key);if(t.some(o=>o===a||pD[o]===a))return e(s)})},Wb=Ct({patchProp:Z3},L3);let ao,Ny=!1;function Yb(){return ao||(ao=ab(Wb))}function zb(){return ao=Ny?ao:lb(Wb),Ny=!0,ao}const _c=(...e)=>{Yb().render(...e)},mD=(...e)=>{zb().hydrate(...e)},bc=(...e)=>{const t=Yb().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Jb(r);if(!s)return;const a=t._component;!st(a)&&!a.render&&!a.template&&(a.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,Gb(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t},Kb=(...e)=>{const t=zb().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Jb(r);if(s)return n(s,!0,Gb(s))},t};function Gb(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Jb(e){return ut(e)?document.querySelector(e):e}let Vy=!1;const gD=()=>{Vy||(Vy=!0,dD(),$3())},vD=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:I_,BaseTransitionPropsValidators:dp,Comment:Cn,DeprecationTypes:R3,EffectScope:np,ErrorCodes:GM,ErrorTypeStrings:S3,Fragment:Ve,KeepAlive:bR,ReactiveEffect:fo,Static:fa,Suspense:l3,Teleport:R_,Text:Oi,TrackOpTypes:UM,Transition:vs,TransitionGroup:iD,TriggerOpTypes:jM,VueElement:rd,assertNumber:KM,callWithAsyncErrorHandling:rs,callWithErrorHandling:Tl,camelize:Jt,capitalize:ka,cloneVNode:Ps,compatUtils:M3,computed:pe,createApp:bc,createBlock:it,createCommentVNode:ae,createElementBlock:P,createElementVNode:v,createHydrationRenderer:lb,createPropsRestProxy:IR,createRenderer:ab,createSSRApp:Kb,createSlots:Hn,createStaticVNode:kb,createTextVNode:ht,createVNode:he,customRef:b_,defineAsyncComponent:yR,defineComponent:fn,defineCustomElement:$b,defineEmits:CR,defineExpose:AR,defineModel:MR,defineOptions:ER,defineProps:TR,defineSSRCustomElement:Q3,defineSlots:OR,devtools:T3,effect:dM,effectScope:uM,getCurrentInstance:ss,getCurrentScope:rp,getCurrentWatcher:qM,getTransitionRawChildren:Jc,guardReactiveProps:Yn,h:bp,handleError:Sa,hasInjectionContext:qR,hydrate:mD,hydrateOnIdle:fR,hydrateOnInteraction:gR,hydrateOnMediaQuery:mR,hydrateOnVisible:pR,initCustomFormatter:w3,initDirectivesForSSR:gD,inject:so,isMemoSame:Mb,isProxy:Kc,isReactive:Ai,isReadonly:Li,isRef:Tn,isRuntimeOnly:y3,isShallow:Ur,isVNode:ni,markRaw:v_,mergeDefaults:PR,mergeModels:LR,mergeProps:cn,nextTick:Un,normalizeClass:Be,normalizeProps:wn,normalizeStyle:bn,onActivated:V_,onBeforeMount:B_,onBeforeUnmount:ed,onBeforeUpdate:Xc,onDeactivated:F_,onErrorCaptured:q_,onMounted:Ft,onRenderTracked:j_,onRenderTriggered:U_,onScopeDispose:e_,onServerPrefetch:H_,onUnmounted:ii,onUpdated:Qc,onWatcherCleanup:x_,openBlock:S,popScopeId:eR,provide:J_,proxyRefs:op,pushScopeId:QM,queuePostFlushCb:mo,reactive:Hr,readonly:lp,ref:fe,registerRuntimeCompiler:Ab,render:_c,renderList:Qe,renderSlot:Ie,resolveComponent:at,resolveDirective:Y_,resolveDynamicComponent:Cl,resolveFilter:O3,resolveTransitionHooks:ol,setBlockTracking:Ah,setDevtoolsHook:C3,setTransitionHooks:ti,shallowReactive:g_,shallowReadonly:RM,shallowRef:y_,ssrContextKey:db,ssrUtils:E3,stop:fM,toDisplayString:re,toHandlerKey:rl,toHandlers:kR,toRaw:Mt,toRef:ll,toRefs:VM,toValue:LM,transformVNodeArgs:h3,triggerRef:PM,unref:Z,useAttrs:DR,useCssModule:nD,useCssVars:B3,useHost:Bb,useId:sR,useModel:e3,useSSRContext:fb,useShadowRoot:tD,useSlots:Bi,useTemplateRef:iR,useTransitionState:cp,vModelCheckbox:wp,vModelDynamic:Sp,vModelRadio:xp,vModelSelect:kp,vModelText:Ni,vShow:Fr,version:Rb,warn:k3,watch:Wt,watchEffect:hb,watchPostEffect:XR,watchSyncEffect:pb,withAsyncContext:NR,withCtx:Te,withDefaults:RR,withDirectives:Dn,withKeys:$n,withMemo:x3,withModifiers:Et,withScopeId:tR},Symbol.toStringTag,{value:"Module"}));/** +* @vue/compiler-core v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const wo=Symbol(""),lo=Symbol(""),Tp=Symbol(""),wc=Symbol(""),Zb=Symbol(""),ba=Symbol(""),Xb=Symbol(""),Qb=Symbol(""),Cp=Symbol(""),Ap=Symbol(""),Io=Symbol(""),Ep=Symbol(""),e1=Symbol(""),Op=Symbol(""),Mp=Symbol(""),Rp=Symbol(""),Dp=Symbol(""),Pp=Symbol(""),Lp=Symbol(""),t1=Symbol(""),n1=Symbol(""),sd=Symbol(""),xc=Symbol(""),Ip=Symbol(""),Np=Symbol(""),xo=Symbol(""),No=Symbol(""),Vp=Symbol(""),Nh=Symbol(""),yD=Symbol(""),Vh=Symbol(""),kc=Symbol(""),_D=Symbol(""),bD=Symbol(""),Fp=Symbol(""),wD=Symbol(""),xD=Symbol(""),$p=Symbol(""),r1=Symbol(""),fl={[wo]:"Fragment",[lo]:"Teleport",[Tp]:"Suspense",[wc]:"KeepAlive",[Zb]:"BaseTransition",[ba]:"openBlock",[Xb]:"createBlock",[Qb]:"createElementBlock",[Cp]:"createVNode",[Ap]:"createElementVNode",[Io]:"createCommentVNode",[Ep]:"createTextVNode",[e1]:"createStaticVNode",[Op]:"resolveComponent",[Mp]:"resolveDynamicComponent",[Rp]:"resolveDirective",[Dp]:"resolveFilter",[Pp]:"withDirectives",[Lp]:"renderList",[t1]:"renderSlot",[n1]:"createSlots",[sd]:"toDisplayString",[xc]:"mergeProps",[Ip]:"normalizeClass",[Np]:"normalizeStyle",[xo]:"normalizeProps",[No]:"guardReactiveProps",[Vp]:"toHandlers",[Nh]:"camelize",[yD]:"capitalize",[Vh]:"toHandlerKey",[kc]:"setBlockTracking",[_D]:"pushScopeId",[bD]:"popScopeId",[Fp]:"withCtx",[wD]:"unref",[xD]:"isRef",[$p]:"withMemo",[r1]:"isMemoSame"};function kD(e){Object.getOwnPropertySymbols(e).forEach(t=>{fl[t]=e[t]})}const qr={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function SD(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:qr}}function ko(e,t,n,r,s,a,o,u=!1,c=!1,h=!1,f=qr){return e&&(u?(e.helper(ba),e.helper(ml(e.inSSR,h))):e.helper(pl(e.inSSR,h)),o&&e.helper(Pp)),{type:13,tag:t,props:n,children:r,patchFlag:s,dynamicProps:a,directives:o,isBlock:u,disableTracking:c,isComponent:h,loc:f}}function ha(e,t=qr){return{type:17,loc:t,elements:e}}function ts(e,t=qr){return{type:15,loc:t,properties:e}}function xn(e,t){return{type:16,loc:qr,key:ut(e)?pt(e,!0):e,value:t}}function pt(e,t=!1,n=qr,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function ms(e,t=qr){return{type:8,loc:t,children:e}}function Rn(e,t=[],n=qr){return{type:14,loc:n,callee:e,arguments:t}}function hl(e,t=void 0,n=!1,r=!1,s=qr){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:s}}function Fh(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:qr}}function TD(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:qr}}function CD(e){return{type:21,body:e,loc:qr}}function pl(e,t){return e||t?Cp:Ap}function ml(e,t){return e||t?Xb:Qb}function Bp(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(pl(r,e.isComponent)),t(ba),t(ml(r,e.isComponent)))}const Fy=new Uint8Array([123,123]),$y=new Uint8Array([125,125]);function By(e){return e>=97&&e<=122||e>=65&&e<=90}function Vr(e){return e===32||e===10||e===9||e===12||e===13}function gi(e){return e===47||e===62||Vr(e)}function Sc(e){const t=new Uint8Array(e.length);for(let n=0;n=0;s--){const a=this.newlines[s];if(t>a){n=s+2,r=t-a;break}}return{column:r,line:n,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?gi(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||Vr(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart=t||(this.state===28?this.currentSequence===Jn.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){}}function Hy(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function pa(e,t){const n=Hy("MODE",t),r=Hy(e,t);return n===3?r===!0:r!==!1}function So(e,t,n,...r){return pa(e,t)}function Hp(e){throw e}function s1(e){}function en(e,t,n,r){const s=`https://vuejs.org/error-reference/#compiler-${e}`,a=new SyntaxError(String(s));return a.code=e,a.loc=t,a}const Sr=e=>e.type===4&&e.isStatic;function i1(e){switch(e){case"Teleport":case"teleport":return lo;case"Suspense":case"suspense":return Tp;case"KeepAlive":case"keep-alive":return wc;case"BaseTransition":case"base-transition":return Zb}}const ED=/^\d|[^\$\w\xA0-\uFFFF]/,Up=e=>!ED.test(e),OD=/[A-Za-z_$\xA0-\uFFFF]/,MD=/[\.\?\w$\xA0-\uFFFF]/,RD=/\s+[.[]\s*|\s*[.[]\s+/g,a1=e=>e.type===4?e.content:e.loc.source,DD=e=>{const t=a1(e).trim().replace(RD,u=>u.trim());let n=0,r=[],s=0,a=0,o=null;for(let u=0;u|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,LD=e=>PD.test(a1(e)),ID=LD;function es(e,t,n=!1){for(let r=0;rt.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function Yf(e){return e.type===5||e.type===2}function VD(e){return e.type===7&&e.name==="slot"}function Tc(e){return e.type===1&&e.tagType===3}function Cc(e){return e.type===1&&e.tagType===2}const FD=new Set([xo,No]);function o1(e,t=[]){if(e&&!ut(e)&&e.type===14){const n=e.callee;if(!ut(n)&&FD.has(n))return o1(e.arguments[0],t.concat(e))}return[e,t]}function Ac(e,t,n){let r,s=e.type===13?e.props:e.arguments[2],a=[],o;if(s&&!ut(s)&&s.type===14){const u=o1(s);s=u[0],a=u[1],o=a[a.length-1]}if(s==null||ut(s))r=ts([t]);else if(s.type===14){const u=s.arguments[0];!ut(u)&&u.type===15?Uy(t,u)||u.properties.unshift(t):s.callee===Vp?r=Rn(n.helper(xc),[ts([t]),s]):s.arguments.unshift(ts([t])),!r&&(r=s)}else s.type===15?(Uy(t,s)||s.properties.unshift(t),r=s):(r=Rn(n.helper(xc),[ts([t]),s]),o&&o.callee===No&&(o=a[a.length-2]));e.type===13?o?o.arguments[0]=r:e.props=r:o?o.arguments[0]=r:e.arguments[2]=r}function Uy(e,t){let n=!1;if(e.key.type===4){const r=e.key.content;n=t.properties.some(s=>s.key.type===4&&s.key.content===r)}return n}function To(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function $D(e){return e.type===14&&e.callee===$p?e.arguments[1].returns:e}const BD=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,u1={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:Zl,isPreTag:Zl,isIgnoreNewlineTag:Zl,isCustomElement:Zl,onError:Hp,onWarn:s1,comments:!1,prefixIdentifiers:!1};let Pt=u1,Co=null,Qs="",Xn=null,Ot=null,_r="",Ys=-1,na=-1,jp=0,Si=!1,$h=null;const Qt=[],un=new AD(Qt,{onerr:Ws,ontext(e,t){Bu(Wn(e,t),e,t)},ontextentity(e,t,n){Bu(e,t,n)},oninterpolation(e,t){if(Si)return Bu(Wn(e,t),e,t);let n=e+un.delimiterOpen.length,r=t-un.delimiterClose.length;for(;Vr(Qs.charCodeAt(n));)n++;for(;Vr(Qs.charCodeAt(r-1));)r--;let s=Wn(n,r);s.includes("&")&&(s=Pt.decodeEntities(s,!1)),Bh({type:5,content:ec(s,!1,yn(n,r)),loc:yn(e,t)})},onopentagname(e,t){const n=Wn(e,t);Xn={type:1,tag:n,ns:Pt.getNamespace(n,Qt[0],Pt.ns),tagType:0,props:[],children:[],loc:yn(e-1,t),codegenNode:void 0}},onopentagend(e){qy(e)},onclosetag(e,t){const n=Wn(e,t);if(!Pt.isVoidTag(n)){let r=!1;for(let s=0;s0&&Ws(24,Qt[0].loc.start.offset);for(let o=0;o<=s;o++){const u=Qt.shift();Qu(u,t,o(r.type===7?r.rawName:r.name)===n)&&Ws(2,t)},onattribend(e,t){if(Xn&&Ot){if(la(Ot.loc,t),e!==0)if(_r.includes("&")&&(_r=Pt.decodeEntities(_r,!0)),Ot.type===6)Ot.name==="class"&&(_r=f1(_r).trim()),e===1&&!_r&&Ws(13,t),Ot.value={type:2,content:_r,loc:e===1?yn(Ys,na):yn(Ys-1,na+1)},un.inSFCRoot&&Xn.tag==="template"&&Ot.name==="lang"&&_r&&_r!=="html"&&un.enterRCDATA(Sc("s.content==="sync"))>-1&&So("COMPILER_V_BIND_SYNC",Pt,Ot.loc,Ot.rawName)&&(Ot.name="model",Ot.modifiers.splice(r,1))}(Ot.type!==7||Ot.name!=="pre")&&Xn.props.push(Ot)}_r="",Ys=na=-1},oncomment(e,t){Pt.comments&&Bh({type:3,content:Wn(e,t),loc:yn(e-4,t+3)})},onend(){const e=Qs.length;for(let t=0;t{const _=t.start.offset+m,b=_+p.length;return ec(p,!1,yn(_,b),0,y?1:0)},u={source:o(a.trim(),n.indexOf(a,s.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let c=s.trim().replace(HD,"").trim();const h=s.indexOf(c),f=c.match(jy);if(f){c=c.replace(jy,"").trim();const p=f[1].trim();let m;if(p&&(m=n.indexOf(p,h+c.length),u.key=o(p,m,!0)),f[2]){const y=f[2].trim();y&&(u.index=o(y,n.indexOf(y,u.key?m+p.length:h+c.length),!0))}}return c&&(u.value=o(c,h,!0)),u}function Wn(e,t){return Qs.slice(e,t)}function qy(e){un.inSFCRoot&&(Xn.innerLoc=yn(e+1,e+1)),Bh(Xn);const{tag:t,ns:n}=Xn;n===0&&Pt.isPreTag(t)&&jp++,Pt.isVoidTag(t)?Qu(Xn,e):(Qt.unshift(Xn),(n===1||n===2)&&(un.inXML=!0)),Xn=null}function Bu(e,t,n){{const a=Qt[0]&&Qt[0].tag;a!=="script"&&a!=="style"&&e.includes("&")&&(e=Pt.decodeEntities(e,!1))}const r=Qt[0]||Co,s=r.children[r.children.length-1];s&&s.type===2?(s.content+=e,la(s.loc,n)):r.children.push({type:2,content:e,loc:yn(t,n)})}function Qu(e,t,n=!1){n?la(e.loc,c1(t,60)):la(e.loc,jD(t,62)+1),un.inSFCRoot&&(e.children.length?e.innerLoc.end=Ct({},e.children[e.children.length-1].loc.end):e.innerLoc.end=Ct({},e.innerLoc.start),e.innerLoc.source=Wn(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:s,children:a}=e;if(Si||(r==="slot"?e.tagType=2:Wy(e)?e.tagType=3:WD(e)&&(e.tagType=1)),un.inRCDATA||(e.children=d1(a)),s===0&&Pt.isIgnoreNewlineTag(r)){const o=a[0];o&&o.type===2&&(o.content=o.content.replace(/^\r?\n/,""))}s===0&&Pt.isPreTag(r)&&jp--,$h===e&&(Si=un.inVPre=!1,$h=null),un.inXML&&(Qt[0]?Qt[0].ns:Pt.ns)===0&&(un.inXML=!1);{const o=e.props;if(!un.inSFCRoot&&pa("COMPILER_NATIVE_TEMPLATE",Pt)&&e.tag==="template"&&!Wy(e)){const c=Qt[0]||Co,h=c.children.indexOf(e);c.children.splice(h,1,...e.children)}const u=o.find(c=>c.type===6&&c.name==="inline-template");u&&So("COMPILER_INLINE_TEMPLATE",Pt,u.loc)&&e.children.length&&(u.value={type:2,content:Wn(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:u.loc})}}function jD(e,t){let n=e;for(;Qs.charCodeAt(n)!==t&&n=0;)n--;return n}const qD=new Set(["if","else","else-if","for","slot"]);function Wy({tag:e,props:t}){if(e==="template"){for(let n=0;n64&&e<91}const zD=/\r\n/g;function d1(e,t){const n=Pt.whitespace!=="preserve";let r=!1;for(let s=0;s0){if(m>=2){p.codegenNode.patchFlag=-1,o.push(p);continue}}else{const y=p.codegenNode;if(y.type===13){const _=y.patchFlag;if((_===void 0||_===512||_===1)&&m1(p,n)>=2){const b=g1(p);b&&(y.props=n.hoist(b))}y.dynamicProps&&(y.dynamicProps=n.hoist(y.dynamicProps))}}}else if(p.type===12&&(r?0:$r(p,n))>=2){o.push(p);continue}if(p.type===1){const m=p.tagType===1;m&&n.scopes.vSlot++,tc(p,e,n,!1,s),m&&n.scopes.vSlot--}else if(p.type===11)tc(p,e,n,p.children.length===1,!0);else if(p.type===9)for(let m=0;my.key===p||y.key.content===p);return m&&m.value}}o.length&&n.transformHoist&&n.transformHoist(a,n,e)}function $r(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const r=n.get(e);if(r!==void 0)return r;const s=e.codegenNode;if(s.type!==13||s.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(s.patchFlag===void 0){let o=3;const u=m1(e,t);if(u===0)return n.set(e,0),0;u1)for(let c=0;cse&&(D.childIndex--,D.onNodeRemoved()),D.parent.children.splice(se,1)},onNodeRemoved:zn,addIdentifiers(T){},removeIdentifiers(T){},hoist(T){ut(T)&&(T=pt(T)),D.hoists.push(T);const $=pt(`_hoisted_${D.hoists.length}`,!1,T.loc,2);return $.hoisted=T,$},cache(T,$=!1,se=!1){const ee=TD(D.cached.length,T,$,se);return D.cached.push(ee),ee}};return D.filters=new Set,D}function rP(e,t){const n=nP(e,t);ad(e,n),t.hoistStatic&&eP(e,n),t.ssr||sP(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function sP(e,t){const{helper:n}=t,{children:r}=e;if(r.length===1){const s=r[0];if(h1(e,s)&&s.codegenNode){const a=s.codegenNode;a.type===13&&Bp(a,t),e.codegenNode=a}else e.codegenNode=s}else if(r.length>1){let s=64;e.codegenNode=ko(t,n(wo),void 0,e.children,s,void 0,void 0,!0,void 0,!1)}}function iP(e,t){let n=0;const r=()=>{n--};for(;nr===e:r=>e.test(r);return(r,s)=>{if(r.type===1){const{props:a}=r;if(r.tagType===3&&a.some(VD))return;const o=[];for(let u=0;u`${fl[e]}: _${fl[e]}`;function aP(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:r=!1,filename:s="template.vue.html",scopeId:a=null,optimizeImports:o=!1,runtimeGlobalName:u="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:h="vue/server-renderer",ssr:f=!1,isTS:p=!1,inSSR:m=!1}){const y={mode:t,prefixIdentifiers:n,sourceMap:r,filename:s,scopeId:a,optimizeImports:o,runtimeGlobalName:u,runtimeModuleName:c,ssrRuntimeModuleName:h,ssr:f,isTS:p,inSSR:m,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(b){return`_${fl[b]}`},push(b,E=-2,H){y.code+=b},indent(){_(++y.indentLevel)},deindent(b=!1){b?--y.indentLevel:_(--y.indentLevel)},newline(){_(y.indentLevel)}};function _(b){y.push(` +`+" ".repeat(b),0)}return y}function lP(e,t={}){const n=aP(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:s,prefixIdentifiers:a,indent:o,deindent:u,newline:c,scopeId:h,ssr:f}=n,p=Array.from(e.helpers),m=p.length>0,y=!a&&r!=="module";oP(e,n);const b=f?"ssrRender":"render",H=(f?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(s(`function ${b}(${H}) {`),o(),y&&(s("with (_ctx) {"),o(),m&&(s(`const { ${p.map(y1).join(", ")} } = _Vue +`,-1),c())),e.components.length&&(zf(e.components,"component",n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(zf(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),zf(e.filters,"filter",n),c()),e.temps>0){s("let ");for(let V=0;V0?", ":""}_temp${V}`)}return(e.components.length||e.directives.length||e.temps)&&(s(` +`,0),c()),f||s("return "),e.codegenNode?sr(e.codegenNode,n):s("null"),y&&(u(),s("}")),u(),s("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function oP(e,t){const{ssr:n,prefixIdentifiers:r,push:s,newline:a,runtimeModuleName:o,runtimeGlobalName:u,ssrRuntimeModuleName:c}=t,h=u,f=Array.from(e.helpers);if(f.length>0&&(s(`const _Vue = ${h} +`,-1),e.hoists.length)){const p=[Cp,Ap,Io,Ep,e1].filter(m=>f.includes(m)).map(y1).join(", ");s(`const { ${p} } = _Vue +`,-1)}uP(e.hoists,t),a(),s("return ")}function zf(e,t,{helper:n,push:r,newline:s,isTS:a}){const o=n(t==="filter"?Dp:t==="component"?Op:Rp);for(let u=0;u3||!1;t.push("["),n&&t.indent(),Vo(e,t,n),n&&t.deindent(),t.push("]")}function Vo(e,t,n=!1,r=!0){const{push:s,newline:a}=t;for(let o=0;on||"null")}function gP(e,t){const{push:n,helper:r,pure:s}=t,a=ut(e.callee)?e.callee:r(e.callee);s&&n(ld),n(a+"(",-2,e),Vo(e.arguments,t),n(")")}function vP(e,t){const{push:n,indent:r,deindent:s,newline:a}=t,{properties:o}=e;if(!o.length){n("{}",-2,e);return}const u=o.length>1||!1;n(u?"{":"{ "),u&&r();for(let c=0;c "),(c||u)&&(n("{"),r()),o?(c&&n("return "),Ye(o)?qp(o,t):sr(o,t)):u&&sr(u,t),(c||u)&&(s(),n("}")),h&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function bP(e,t){const{test:n,consequent:r,alternate:s,newline:a}=e,{push:o,indent:u,deindent:c,newline:h}=t;if(n.type===4){const p=!Up(n.content);p&&o("("),_1(n,t),p&&o(")")}else o("("),sr(n,t),o(")");a&&u(),t.indentLevel++,a||o(" "),o("? "),sr(r,t),t.indentLevel--,a&&h(),a||o(" "),o(": ");const f=s.type===19;f||t.indentLevel++,sr(s,t),f||t.indentLevel--,a&&c(!0)}function wP(e,t){const{push:n,helper:r,indent:s,deindent:a,newline:o}=t,{needPauseTracking:u,needArraySpread:c}=e;c&&n("[...("),n(`_cache[${e.index}] || (`),u&&(s(),n(`${r(kc)}(-1`),e.inVOnce&&n(", true"),n("),"),o(),n("(")),n(`_cache[${e.index}] = `),sr(e.value,t),u&&(n(`).cacheIndex = ${e.index},`),o(),n(`${r(kc)}(1),`),o(),n(`_cache[${e.index}]`),a()),n(")"),c&&n(")]")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const xP=v1(/^(if|else|else-if)$/,(e,t,n)=>kP(e,t,n,(r,s,a)=>{const o=n.parent.children;let u=o.indexOf(r),c=0;for(;u-->=0;){const h=o[u];h&&h.type===9&&(c+=h.branches.length)}return()=>{if(a)r.codegenNode=zy(s,c,n);else{const h=SP(r.codegenNode);h.alternate=zy(s,c+r.branches.length-1,n)}}}));function kP(e,t,n,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const s=t.exp?t.exp.loc:e.loc;n.onError(en(28,t.loc)),t.exp=pt("true",!1,s)}if(t.name==="if"){const s=Yy(e,t),a={type:9,loc:JD(e.loc),branches:[s]};if(n.replaceNode(a),r)return r(a,s,!0)}else{const s=n.parent.children;let a=s.indexOf(e);for(;a-->=-1;){const o=s[a];if(o&&o.type===3){n.removeNode(o);continue}if(o&&o.type===2&&!o.content.trim().length){n.removeNode(o);continue}if(o&&o.type===9){t.name==="else-if"&&o.branches[o.branches.length-1].condition===void 0&&n.onError(en(30,e.loc)),n.removeNode();const u=Yy(e,t);o.branches.push(u);const c=r&&r(o,u,!1);ad(u,n),c&&c(),n.currentNode=null}else n.onError(en(30,e.loc));break}}}function Yy(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!es(e,"for")?e.children:[e],userKey:id(e,"key"),isTemplateIf:n}}function zy(e,t,n){return e.condition?Fh(e.condition,Ky(e,t,n),Rn(n.helper(Io),['""',"true"])):Ky(e,t,n)}function Ky(e,t,n){const{helper:r}=n,s=xn("key",pt(`${t}`,!1,qr,2)),{children:a}=e,o=a[0];if(a.length!==1||o.type!==1)if(a.length===1&&o.type===11){const c=o.codegenNode;return Ac(c,s,n),c}else return ko(n,r(wo),ts([s]),a,64,void 0,void 0,!0,!1,!1,e.loc);else{const c=o.codegenNode,h=$D(c);return h.type===13&&Bp(h,n),Ac(h,s,n),c}}function SP(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const TP=(e,t,n)=>{const{modifiers:r,loc:s}=e,a=e.arg;let{exp:o}=e;if(o&&o.type===4&&!o.content.trim()&&(o=void 0),!o){if(a.type!==4||!a.isStatic)return n.onError(en(52,a.loc)),{props:[xn(a,pt("",!0,s))]};w1(e),o=e.exp}return a.type!==4?(a.children.unshift("("),a.children.push(') || ""')):a.isStatic||(a.content=`${a.content} || ""`),r.some(u=>u.content==="camel")&&(a.type===4?a.isStatic?a.content=Jt(a.content):a.content=`${n.helperString(Nh)}(${a.content})`:(a.children.unshift(`${n.helperString(Nh)}(`),a.children.push(")"))),n.inSSR||(r.some(u=>u.content==="prop")&&Gy(a,"."),r.some(u=>u.content==="attr")&&Gy(a,"^")),{props:[xn(a,o)]}},w1=(e,t)=>{const n=e.arg,r=Jt(n.content);e.exp=pt(r,!1,n.loc)},Gy=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},CP=v1("for",(e,t,n)=>{const{helper:r,removeHelper:s}=n;return AP(e,t,n,a=>{const o=Rn(r(Lp),[a.source]),u=Tc(e),c=es(e,"memo"),h=id(e,"key",!1,!0);h&&h.type===7&&!h.exp&&w1(h);let p=h&&(h.type===6?h.value?pt(h.value.content,!0):void 0:h.exp);const m=h&&p?xn("key",p):null,y=a.source.type===4&&a.source.constType>0,_=y?64:h?128:256;return a.codegenNode=ko(n,r(wo),void 0,o,_,void 0,void 0,!0,!y,!1,e.loc),()=>{let b;const{children:E}=a,H=E.length!==1||E[0].type!==1,V=Cc(e)?e:u&&e.children.length===1&&Cc(e.children[0])?e.children[0]:null;if(V?(b=V.codegenNode,u&&m&&Ac(b,m,n)):H?b=ko(n,r(wo),m?ts([m]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(b=E[0].codegenNode,u&&m&&Ac(b,m,n),b.isBlock!==!y&&(b.isBlock?(s(ba),s(ml(n.inSSR,b.isComponent))):s(pl(n.inSSR,b.isComponent))),b.isBlock=!y,b.isBlock?(r(ba),r(ml(n.inSSR,b.isComponent))):r(pl(n.inSSR,b.isComponent))),c){const x=hl(Hh(a.parseResult,[pt("_cached")]));x.body=CD([ms(["const _memo = (",c.exp,")"]),ms(["if (_cached",...p?[" && _cached.key === ",p]:[],` && ${n.helperString(r1)}(_cached, _memo)) return _cached`]),ms(["const _item = ",b]),pt("_item.memo = _memo"),pt("return _item")]),o.arguments.push(x,pt("_cache"),pt(String(n.cached.length))),n.cached.push(null)}else o.arguments.push(hl(Hh(a.parseResult),b,!0))}})});function AP(e,t,n,r){if(!t.exp){n.onError(en(31,t.loc));return}const s=t.forParseResult;if(!s){n.onError(en(32,t.loc));return}x1(s);const{addIdentifiers:a,removeIdentifiers:o,scopes:u}=n,{source:c,value:h,key:f,index:p}=s,m={type:11,loc:t.loc,source:c,valueAlias:h,keyAlias:f,objectIndexAlias:p,parseResult:s,children:Tc(e)?e.children:[e]};n.replaceNode(m),u.vFor++;const y=r&&r(m);return()=>{u.vFor--,y&&y()}}function x1(e,t){e.finalized||(e.finalized=!0)}function Hh({value:e,key:t,index:n},r=[]){return EP([e,t,n,...r])}function EP(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,r)=>n||pt("_".repeat(r+1),!1))}const Jy=pt("undefined",!1),OP=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=es(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},MP=(e,t,n,r)=>hl(e,n,!1,!0,n.length?n[0].loc:r);function RP(e,t,n=MP){t.helper(Fp);const{children:r,loc:s}=e,a=[],o=[];let u=t.scopes.vSlot>0||t.scopes.vFor>0;const c=es(e,"slot",!0);if(c){const{arg:E,exp:H}=c;E&&!Sr(E)&&(u=!0),a.push(xn(E||pt("default",!0),n(H,void 0,r,s)))}let h=!1,f=!1;const p=[],m=new Set;let y=0;for(let E=0;E{const x=n(H,void 0,V,s);return t.compatConfig&&(x.isNonScopedSlot=!0),xn("default",x)};h?p.length&&p.some(H=>k1(H))&&(f?t.onError(en(39,p[0].loc)):a.push(E(void 0,p))):a.push(E(void 0,r))}const _=u?2:nc(e.children)?3:1;let b=ts(a.concat(xn("_",pt(_+"",!1))),s);return o.length&&(b=Rn(t.helper(n1),[b,ha(o)])),{slots:b,hasDynamicSlots:u}}function Hu(e,t,n){const r=[xn("name",e),xn("fn",t)];return n!=null&&r.push(xn("key",pt(String(n),!0))),ts(r)}function nc(e){for(let t=0;tfunction(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:s}=e,a=e.tagType===1;let o=a?PP(e,t):`"${r}"`;const u=Ht(o)&&o.callee===Mp;let c,h,f=0,p,m,y,_=u||o===lo||o===Tp||!a&&(r==="svg"||r==="foreignObject"||r==="math");if(s.length>0){const b=T1(e,t,void 0,a,u);c=b.props,f=b.patchFlag,m=b.dynamicPropNames;const E=b.directives;y=E&&E.length?ha(E.map(H=>IP(H,t))):void 0,b.shouldUseBlock&&(_=!0)}if(e.children.length>0)if(o===wc&&(_=!0,f|=1024),a&&o!==lo&&o!==wc){const{slots:E,hasDynamicSlots:H}=RP(e,t);h=E,H&&(f|=1024)}else if(e.children.length===1&&o!==lo){const E=e.children[0],H=E.type,V=H===5||H===8;V&&$r(E,t)===0&&(f|=1),V||H===2?h=E:h=e.children}else h=e.children;m&&m.length&&(p=NP(m)),e.codegenNode=ko(t,o,c,h,f===0?void 0:f,p,y,!!_,!1,a,e.loc)};function PP(e,t,n=!1){let{tag:r}=e;const s=Uh(r),a=id(e,"is",!1,!0);if(a)if(s||pa("COMPILER_IS_ON_ELEMENT",t)){let u;if(a.type===6?u=a.value&&pt(a.value.content,!0):(u=a.exp,u||(u=pt("is",!1,a.arg.loc))),u)return Rn(t.helper(Mp),[u])}else a.type===6&&a.value.content.startsWith("vue:")&&(r=a.value.content.slice(4));const o=i1(r)||t.isBuiltInComponent(r);return o?(n||t.helper(o),o):(t.helper(Op),t.components.add(r),To(r,"component"))}function T1(e,t,n=e.props,r,s,a=!1){const{tag:o,loc:u,children:c}=e;let h=[];const f=[],p=[],m=c.length>0;let y=!1,_=0,b=!1,E=!1,H=!1,V=!1,x=!1,O=!1;const B=[],U=$=>{h.length&&(f.push(ts(Zy(h),u)),h=[]),$&&f.push($)},F=()=>{t.scopes.vFor>0&&h.push(xn(pt("ref_for",!0),pt("true")))},D=({key:$,value:se})=>{if(Sr($)){const ee=$.content,de=wa(ee);if(de&&(!r||s)&&ee.toLowerCase()!=="onclick"&&ee!=="onUpdate:modelValue"&&!Ci(ee)&&(V=!0),de&&Ci(ee)&&(O=!0),de&&se.type===14&&(se=se.arguments[0]),se.type===20||(se.type===4||se.type===8)&&$r(se,t)>0)return;ee==="ref"?b=!0:ee==="class"?E=!0:ee==="style"?H=!0:ee!=="key"&&!B.includes(ee)&&B.push(ee),r&&(ee==="class"||ee==="style")&&!B.includes(ee)&&B.push(ee)}else x=!0};for(let $=0;$Me.content==="prop")&&(_|=32);const _e=t.directiveTransforms[ee];if(_e){const{props:Me,needRuntime:Ne}=_e(se,e,t);!a&&Me.forEach(D),J&&de&&!Sr(de)?U(ts(Me,u)):h.push(...Me),Ne&&(p.push(se),Or(Ne)&&S1.set(se,Ne))}else jO(ee)||(p.push(se),m&&(y=!0))}}let T;if(f.length?(U(),f.length>1?T=Rn(t.helper(xc),f,u):T=f[0]):h.length&&(T=ts(Zy(h),u)),x?_|=16:(E&&!r&&(_|=2),H&&!r&&(_|=4),B.length&&(_|=8),V&&(_|=32)),!y&&(_===0||_===32)&&(b||O||p.length>0)&&(_|=512),!t.inSSR&&T)switch(T.type){case 15:let $=-1,se=-1,ee=!1;for(let N=0;Nxn(o,a)),s))}return ha(n,e.loc)}function NP(e){let t="[";for(let n=0,r=e.length;n{if(Cc(e)){const{children:n,loc:r}=e,{slotName:s,slotProps:a}=FP(e,t),o=[t.prefixIdentifiers?"_ctx.$slots":"$slots",s,"{}","undefined","true"];let u=2;a&&(o[2]=a,u=3),n.length&&(o[3]=hl([],n,!1,!1,r),u=4),t.scopeId&&!t.slotted&&(u=5),o.splice(u),e.codegenNode=Rn(t.helper(t1),o,r)}};function FP(e,t){let n='"default"',r;const s=[];for(let a=0;a0){const{props:a,directives:o}=T1(e,t,s,!1,!1);r=a,o.length&&t.onError(en(36,o[0].loc))}return{slotName:n,slotProps:r}}const C1=(e,t,n,r)=>{const{loc:s,modifiers:a,arg:o}=e;!e.exp&&!a.length&&n.onError(en(35,s));let u;if(o.type===4)if(o.isStatic){let p=o.content;p.startsWith("vue:")&&(p=`vnode-${p.slice(4)}`);const m=t.tagType!==0||p.startsWith("vnode")||!/[A-Z]/.test(p)?rl(Jt(p)):`on:${p}`;u=pt(m,!0,o.loc)}else u=ms([`${n.helperString(Vh)}(`,o,")"]);else u=o,u.children.unshift(`${n.helperString(Vh)}(`),u.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let h=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const p=l1(c),m=!(p||ID(c)),y=c.content.includes(";");(m||h&&p)&&(c=ms([`${m?"$event":"(...args)"} => ${y?"{":"("}`,c,y?"}":")"]))}let f={props:[xn(u,c||pt("() => {}",!1,s))]};return r&&(f=r(f)),h&&(f.props[0].value=n.cache(f.props[0].value)),f.props.forEach(p=>p.key.isHandlerKey=!0),f},$P=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let r,s=!1;for(let a=0;aa.type===7&&!t.directiveTransforms[a.name])&&e.tag!=="template")))for(let a=0;a{if(e.type===1&&es(e,"once",!0))return Xy.has(e)||t.inVOnce||t.inSSR?void 0:(Xy.add(e),t.inVOnce=!0,t.helper(kc),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0,!0))})},A1=(e,t,n)=>{const{exp:r,arg:s}=e;if(!r)return n.onError(en(41,e.loc)),Uu();const a=r.loc.source.trim(),o=r.type===4?r.content:a,u=n.bindingMetadata[a];if(u==="props"||u==="props-aliased")return n.onError(en(44,r.loc)),Uu();if(!o.trim()||!l1(r))return n.onError(en(42,r.loc)),Uu();const c=s||pt("modelValue",!0),h=s?Sr(s)?`onUpdate:${Jt(s.content)}`:ms(['"onUpdate:" + ',s]):"onUpdate:modelValue";let f;const p=n.isTS?"($event: any)":"$event";f=ms([`${p} => ((`,r,") = $event)"]);const m=[xn(c,e.exp),xn(h,f)];if(e.modifiers.length&&t.tagType===1){const y=e.modifiers.map(b=>b.content).map(b=>(Up(b)?b:JSON.stringify(b))+": true").join(", "),_=s?Sr(s)?`${s.content}Modifiers`:ms([s,' + "Modifiers"']):"modelModifiers";m.push(xn(_,pt(`{ ${y} }`,!1,e.loc,2)))}return Uu(m)};function Uu(e=[]){return{props:e}}const HP=/[\w).+\-_$\]]/,UP=(e,t)=>{pa("COMPILER_FILTERS",t)&&(e.type===5?Ec(e.content,t):e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&Ec(n.exp,t)}))};function Ec(e,t){if(e.type===4)Qy(e,t);else for(let n=0;n=0&&(V=n.charAt(H),V===" ");H--);(!V||!HP.test(V))&&(o=!0)}}_===void 0?_=n.slice(0,y).trim():f!==0&&E();function E(){b.push(n.slice(f,y).trim()),f=y+1}if(b.length){for(y=0;y{if(e.type===1){const n=es(e,"memo");return!n||e0.has(e)?void 0:(e0.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&Bp(r,t),e.codegenNode=Rn(t.helper($p),[n.exp,hl(void 0,r),"_cache",String(t.cached.length)]),t.cached.push(null))})}};function WP(e){return[[BP,xP,qP,CP,UP,VP,DP,OP,$P],{on:C1,bind:TP,model:A1}]}function YP(e,t={}){const n=t.onError||Hp,r=t.mode==="module";t.prefixIdentifiers===!0?n(en(47)):r&&n(en(48));const s=!1;t.cacheHandlers&&n(en(49)),t.scopeId&&!r&&n(en(50));const a=Ct({},t,{prefixIdentifiers:s}),o=ut(e)?QD(e,a):e,[u,c]=WP();return rP(o,Ct({},a,{nodeTransforms:[...u,...t.nodeTransforms||[]],directiveTransforms:Ct({},c,t.directiveTransforms||{})})),lP(o,a)}const zP=()=>({props:[]});/** +* @vue/compiler-dom v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const E1=Symbol(""),O1=Symbol(""),M1=Symbol(""),R1=Symbol(""),jh=Symbol(""),D1=Symbol(""),P1=Symbol(""),L1=Symbol(""),I1=Symbol(""),N1=Symbol("");kD({[E1]:"vModelRadio",[O1]:"vModelCheckbox",[M1]:"vModelText",[R1]:"vModelSelect",[jh]:"vModelDynamic",[D1]:"withModifiers",[P1]:"withKeys",[L1]:"vShow",[I1]:"Transition",[N1]:"TransitionGroup"});let qa;function KP(e,t=!1){return qa||(qa=document.createElement("div")),t?(qa.innerHTML=`
`,qa.children[0].getAttribute("foo")):(qa.innerHTML=e,qa.textContent)}const GP={parseMode:"html",isVoidTag:iM,isNativeTag:e=>nM(e)||rM(e)||sM(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:KP,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return I1;if(e==="TransitionGroup"||e==="transition-group")return N1},getNamespace(e,t,n){let r=t?t.ns:n;if(t&&r===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(s=>s.type===6&&s.name==="encoding"&&s.value!=null&&(s.value.content==="text/html"||s.value.content==="application/xhtml+xml"))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(r=0);else t&&r===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(r=0);if(r===0){if(e==="svg")return 1;if(e==="math")return 2}return r}},JP=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:pt("style",!0,t.loc),exp:ZP(t.value.content,t.loc),modifiers:[],loc:t.loc})})},ZP=(e,t)=>{const n=J0(e);return pt(JSON.stringify(n),!1,t,3)};function Mi(e,t){return en(e,t)}const XP=(e,t,n)=>{const{exp:r,loc:s}=e;return r||n.onError(Mi(53,s)),t.children.length&&(n.onError(Mi(54,s)),t.children.length=0),{props:[xn(pt("innerHTML",!0,s),r||pt("",!0))]}},QP=(e,t,n)=>{const{exp:r,loc:s}=e;return r||n.onError(Mi(55,s)),t.children.length&&(n.onError(Mi(56,s)),t.children.length=0),{props:[xn(pt("textContent",!0),r?$r(r,n)>0?r:Rn(n.helperString(sd),[r],s):pt("",!0))]}},eL=(e,t,n)=>{const r=A1(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(Mi(58,e.arg.loc));const{tag:s}=t,a=n.isCustomElement(s);if(s==="input"||s==="textarea"||s==="select"||a){let o=M1,u=!1;if(s==="input"||a){const c=id(t,"type");if(c){if(c.type===7)o=jh;else if(c.value)switch(c.value.content){case"radio":o=E1;break;case"checkbox":o=O1;break;case"file":u=!0,n.onError(Mi(59,e.loc));break}}else ND(t)&&(o=jh)}else s==="select"&&(o=R1);u||(r.needRuntime=n.helper(o))}else n.onError(Mi(57,e.loc));return r.props=r.props.filter(o=>!(o.key.type===4&&o.key.content==="modelValue")),r},tL=jr("passive,once,capture"),nL=jr("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),rL=jr("left,right"),V1=jr("onkeyup,onkeydown,onkeypress"),sL=(e,t,n,r)=>{const s=[],a=[],o=[];for(let u=0;uSr(e)&&e.content.toLowerCase()==="onclick"?pt(t,!0):e.type!==4?ms(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,iL=(e,t,n)=>C1(e,t,n,r=>{const{modifiers:s}=e;if(!s.length)return r;let{key:a,value:o}=r.props[0];const{keyModifiers:u,nonKeyModifiers:c,eventOptionModifiers:h}=sL(a,s,n,e.loc);if(c.includes("right")&&(a=t0(a,"onContextmenu")),c.includes("middle")&&(a=t0(a,"onMouseup")),c.length&&(o=Rn(n.helper(D1),[o,JSON.stringify(c)])),u.length&&(!Sr(a)||V1(a.content.toLowerCase()))&&(o=Rn(n.helper(P1),[o,JSON.stringify(u)])),h.length){const f=h.map(ka).join("");a=Sr(a)?pt(`${a.content}${f}`,!0):ms(["(",a,`) + "${f}"`])}return{props:[xn(a,o)]}}),aL=(e,t,n)=>{const{exp:r,loc:s}=e;return r||n.onError(Mi(61,s)),{props:[],needRuntime:n.helper(L1)}},lL=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},oL=[JP],uL={cloak:zP,html:XP,text:QP,model:eL,on:iL,show:aL};function cL(e,t={}){return YP(e,Ct({},GP,t,{nodeTransforms:[lL,...oL,...t.nodeTransforms||[]],directiveTransforms:Ct({},uL,t.directiveTransforms||{}),transformHoist:null}))}/** +* vue v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const n0=Object.create(null);function dL(e,t){if(!ut(e))if(e.nodeType)e=e.innerHTML;else return zn;const n=YO(e,t),r=n0[n];if(r)return r;if(e[0]==="#"){const u=document.querySelector(e);e=u?u.innerHTML:""}const s=Ct({hoistStatic:!0,onError:void 0,onWarn:zn},t);!s.isCustomElement&&typeof customElements<"u"&&(s.isCustomElement=u=>!!customElements.get(u));const{code:a}=cL(e,s),o=new Function("Vue",a)(vD);return o._rc=!0,n0[n]=o}Ab(dL);var F1=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function fL(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Oc={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */Oc.exports;(function(e,t){(function(){var n,r="4.17.21",s=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",u="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",h=500,f="__lodash_placeholder__",p=1,m=2,y=4,_=1,b=2,E=1,H=2,V=4,x=8,O=16,B=32,U=64,F=128,D=256,T=512,$=30,se="...",ee=800,de=16,ne=1,N=2,G=3,k=1/0,J=9007199254740991,_e=17976931348623157e292,Me=NaN,Ne=4294967295,j=Ne-1,te=Ne>>>1,M=[["ary",F],["bind",E],["bindKey",H],["curry",x],["curryRight",O],["flip",T],["partial",B],["partialRight",U],["rearg",D]],ie="[object Arguments]",ge="[object Array]",z="[object AsyncFunction]",Le="[object Boolean]",Xe="[object Date]",we="[object DOMException]",et="[object Error]",W="[object Function]",C="[object GeneratorFunction]",I="[object Map]",K="[object Number]",Q="[object Null]",me="[object Object]",q="[object Promise]",ce="[object Proxy]",ye="[object RegExp]",ke="[object Set]",Ce="[object String]",Oe="[object Symbol]",He="[object Undefined]",Ue="[object WeakMap]",qe="[object WeakSet]",Ge="[object ArrayBuffer]",ct="[object DataView]",_t="[object Float32Array]",an="[object Float64Array]",Zt="[object Int8Array]",An="[object Int16Array]",hn="[object Int32Array]",Mr="[object Uint8Array]",ws="[object Uint8ClampedArray]",pn="[object Uint16Array]",ue="[object Uint32Array]",Fe=/\b__p \+= '';/g,xe=/\b(__p \+=) '' \+/g,$e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,We=/&(?:amp|lt|gt|quot|#39);/g,Nn=/[&<>"']/g,pr=RegExp(We.source),Ls=RegExp(Nn.source),Aa=/<%-([\s\S]+?)%>/g,qi=/<%([\s\S]+?)%>/g,is=/<%=([\s\S]+?)%>/g,El=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vd=/^\w*$/,Nw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yd=/[\\^$.*+?()[\]{}|]/g,Vw=RegExp(yd.source),_d=/^\s+/,Fw=/\s/,$w=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Bw=/\{\n\/\* \[wrapped with (.+)\] \*/,Hw=/,? & /,Uw=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,jw=/[()=,{}\[\]\/\s]/,qw=/\\(\\)?/g,Ww=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dm=/\w*$/,Yw=/^[-+]0x[0-9a-f]+$/i,zw=/^0b[01]+$/i,Kw=/^\[object .+?Constructor\]$/,Gw=/^0o[0-7]+$/i,Jw=/^(?:0|[1-9]\d*)$/,Zw=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Uo=/($^)/,Xw=/['\n\r\u2028\u2029\\]/g,jo="\\ud800-\\udfff",Qw="\\u0300-\\u036f",ex="\\ufe20-\\ufe2f",tx="\\u20d0-\\u20ff",fm=Qw+ex+tx,hm="\\u2700-\\u27bf",pm="a-z\\xdf-\\xf6\\xf8-\\xff",nx="\\xac\\xb1\\xd7\\xf7",rx="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",sx="\\u2000-\\u206f",ix=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",mm="A-Z\\xc0-\\xd6\\xd8-\\xde",gm="\\ufe0e\\ufe0f",vm=nx+rx+sx+ix,bd="['’]",ax="["+jo+"]",ym="["+vm+"]",qo="["+fm+"]",_m="\\d+",lx="["+hm+"]",bm="["+pm+"]",wm="[^"+jo+vm+_m+hm+pm+mm+"]",wd="\\ud83c[\\udffb-\\udfff]",ox="(?:"+qo+"|"+wd+")",xm="[^"+jo+"]",xd="(?:\\ud83c[\\udde6-\\uddff]){2}",kd="[\\ud800-\\udbff][\\udc00-\\udfff]",Ea="["+mm+"]",km="\\u200d",Sm="(?:"+bm+"|"+wm+")",ux="(?:"+Ea+"|"+wm+")",Tm="(?:"+bd+"(?:d|ll|m|re|s|t|ve))?",Cm="(?:"+bd+"(?:D|LL|M|RE|S|T|VE))?",Am=ox+"?",Em="["+gm+"]?",cx="(?:"+km+"(?:"+[xm,xd,kd].join("|")+")"+Em+Am+")*",dx="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",fx="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Om=Em+Am+cx,hx="(?:"+[lx,xd,kd].join("|")+")"+Om,px="(?:"+[xm+qo+"?",qo,xd,kd,ax].join("|")+")",mx=RegExp(bd,"g"),gx=RegExp(qo,"g"),Sd=RegExp(wd+"(?="+wd+")|"+px+Om,"g"),vx=RegExp([Ea+"?"+bm+"+"+Tm+"(?="+[ym,Ea,"$"].join("|")+")",ux+"+"+Cm+"(?="+[ym,Ea+Sm,"$"].join("|")+")",Ea+"?"+Sm+"+"+Tm,Ea+"+"+Cm,fx,dx,_m,hx].join("|"),"g"),yx=RegExp("["+km+jo+fm+gm+"]"),_x=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,bx=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],wx=-1,Kt={};Kt[_t]=Kt[an]=Kt[Zt]=Kt[An]=Kt[hn]=Kt[Mr]=Kt[ws]=Kt[pn]=Kt[ue]=!0,Kt[ie]=Kt[ge]=Kt[Ge]=Kt[Le]=Kt[ct]=Kt[Xe]=Kt[et]=Kt[W]=Kt[I]=Kt[K]=Kt[me]=Kt[ye]=Kt[ke]=Kt[Ce]=Kt[Ue]=!1;var Yt={};Yt[ie]=Yt[ge]=Yt[Ge]=Yt[ct]=Yt[Le]=Yt[Xe]=Yt[_t]=Yt[an]=Yt[Zt]=Yt[An]=Yt[hn]=Yt[I]=Yt[K]=Yt[me]=Yt[ye]=Yt[ke]=Yt[Ce]=Yt[Oe]=Yt[Mr]=Yt[ws]=Yt[pn]=Yt[ue]=!0,Yt[et]=Yt[W]=Yt[Ue]=!1;var xx={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},kx={"&":"&","<":"<",">":">",'"':""","'":"'"},Sx={"&":"&","<":"<",">":">",""":'"',"'":"'"},Tx={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Cx=parseFloat,Ax=parseInt,Mm=typeof window=="object"&&window&&window.Object===Object&&window,Ex=typeof self=="object"&&self&&self.Object===Object&&self,jn=Mm||Ex||Function("return this")(),Td=t&&!t.nodeType&&t,Wi=Td&&!0&&e&&!e.nodeType&&e,Rm=Wi&&Wi.exports===Td,Cd=Rm&&Mm.process,Wr=function(){try{var le=Wi&&Wi.require&&Wi.require("util").types;return le||Cd&&Cd.binding&&Cd.binding("util")}catch{}}(),Dm=Wr&&Wr.isArrayBuffer,Pm=Wr&&Wr.isDate,Lm=Wr&&Wr.isMap,Im=Wr&&Wr.isRegExp,Nm=Wr&&Wr.isSet,Vm=Wr&&Wr.isTypedArray;function Rr(le,Se,ve){switch(ve.length){case 0:return le.call(Se);case 1:return le.call(Se,ve[0]);case 2:return le.call(Se,ve[0],ve[1]);case 3:return le.call(Se,ve[0],ve[1],ve[2])}return le.apply(Se,ve)}function Ox(le,Se,ve,Ke){for(var ot=-1,Rt=le==null?0:le.length;++ot-1}function Ad(le,Se,ve){for(var Ke=-1,ot=le==null?0:le.length;++Ke-1;);return ve}function Wm(le,Se){for(var ve=le.length;ve--&&Oa(Se,le[ve],0)>-1;);return ve}function Fx(le,Se){for(var ve=le.length,Ke=0;ve--;)le[ve]===Se&&++Ke;return Ke}var $x=Rd(xx),Bx=Rd(kx);function Hx(le){return"\\"+Tx[le]}function Ux(le,Se){return le==null?n:le[Se]}function Ma(le){return yx.test(le)}function jx(le){return _x.test(le)}function qx(le){for(var Se,ve=[];!(Se=le.next()).done;)ve.push(Se.value);return ve}function Id(le){var Se=-1,ve=Array(le.size);return le.forEach(function(Ke,ot){ve[++Se]=[ot,Ke]}),ve}function Ym(le,Se){return function(ve){return le(Se(ve))}}function oi(le,Se){for(var ve=-1,Ke=le.length,ot=0,Rt=[];++ve-1}function Rk(i,l){var d=this.__data__,g=ou(d,i);return g<0?(++this.size,d.push([i,l])):d[g][1]=l,this}Is.prototype.clear=Ak,Is.prototype.delete=Ek,Is.prototype.get=Ok,Is.prototype.has=Mk,Is.prototype.set=Rk;function Ns(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l=l?i:l)),i}function Gr(i,l,d,g,w,R){var Y,X=l&p,oe=l&m,Ae=l&y;if(d&&(Y=w?d(i,g,w,R):d(i)),Y!==n)return Y;if(!tn(i))return i;var Ee=dt(i);if(Ee){if(Y=IS(i),!X)return mr(i,Y)}else{var Re=Gn(i),je=Re==W||Re==C;if(pi(i))return Eg(i,X);if(Re==me||Re==ie||je&&!w){if(Y=oe||je?{}:zg(i),!X)return oe?SS(i,zk(Y,i)):kS(i,sg(Y,i))}else{if(!Yt[Re])return w?i:{};Y=NS(i,Re,X)}}R||(R=new ls);var Je=R.get(i);if(Je)return Je;R.set(i,Y),xv(i)?i.forEach(function(rt){Y.add(Gr(rt,l,d,rt,i,R))}):bv(i)&&i.forEach(function(rt,bt){Y.set(bt,Gr(rt,l,d,bt,i,R))});var nt=Ae?oe?of:lf:oe?vr:Vn,gt=Ee?n:nt(i);return Yr(gt||i,function(rt,bt){gt&&(bt=rt,rt=i[bt]),Il(Y,bt,Gr(rt,l,d,bt,i,R))}),Y}function Kk(i){var l=Vn(i);return function(d){return ig(d,i,l)}}function ig(i,l,d){var g=d.length;if(i==null)return!g;for(i=jt(i);g--;){var w=d[g],R=l[w],Y=i[w];if(Y===n&&!(w in i)||!R(Y))return!1}return!0}function ag(i,l,d){if(typeof i!="function")throw new zr(o);return Ul(function(){i.apply(n,d)},l)}function Nl(i,l,d,g){var w=-1,R=Wo,Y=!0,X=i.length,oe=[],Ae=l.length;if(!X)return oe;d&&(l=Xt(l,Dr(d))),g?(R=Ad,Y=!1):l.length>=s&&(R=Ol,Y=!1,l=new Ki(l));e:for(;++ww?0:w+d),g=g===n||g>w?w:mt(g),g<0&&(g+=w),g=d>g?0:Sv(g);d0&&d(X)?l>1?qn(X,l-1,d,g,w):li(w,X):g||(w[w.length]=X)}return w}var Ud=Lg(),ug=Lg(!0);function xs(i,l){return i&&Ud(i,l,Vn)}function jd(i,l){return i&&ug(i,l,Vn)}function cu(i,l){return ai(l,function(d){return Hs(i[d])})}function Ji(i,l){l=fi(l,i);for(var d=0,g=l.length;i!=null&&dl}function Zk(i,l){return i!=null&&$t.call(i,l)}function Xk(i,l){return i!=null&&l in jt(i)}function Qk(i,l,d){return i>=Kn(l,d)&&i=120&&Ee.length>=120)?new Ki(Y&&Ee):n}Ee=i[0];var Re=-1,je=X[0];e:for(;++Re-1;)X!==i&&tu.call(X,oe,1),tu.call(i,oe,1);return i}function bg(i,l){for(var d=i?l.length:0,g=d-1;d--;){var w=l[d];if(d==g||w!==R){var R=w;Bs(w)?tu.call(i,w,1):Qd(i,w)}}return i}function Jd(i,l){return i+su(eg()*(l-i+1))}function fS(i,l,d,g){for(var w=-1,R=On(ru((l-i)/(d||1)),0),Y=ve(R);R--;)Y[g?R:++w]=i,i+=d;return Y}function Zd(i,l){var d="";if(!i||l<1||l>J)return d;do l%2&&(d+=i),l=su(l/2),l&&(i+=i);while(l);return d}function vt(i,l){return mf(Jg(i,l,yr),i+"")}function hS(i){return rg(Ha(i))}function pS(i,l){var d=Ha(i);return wu(d,Gi(l,0,d.length))}function $l(i,l,d,g){if(!tn(i))return i;l=fi(l,i);for(var w=-1,R=l.length,Y=R-1,X=i;X!=null&&++ww?0:w+l),d=d>w?w:d,d<0&&(d+=w),w=l>d?0:d-l>>>0,l>>>=0;for(var R=ve(w);++g>>1,Y=i[R];Y!==null&&!Lr(Y)&&(d?Y<=l:Y=s){var Ae=l?null:ES(i);if(Ae)return zo(Ae);Y=!1,w=Ol,oe=new Ki}else oe=l?[]:X;e:for(;++g=g?i:Jr(i,l,d)}var Ag=ik||function(i){return jn.clearTimeout(i)};function Eg(i,l){if(l)return i.slice();var d=i.length,g=Gm?Gm(d):new i.constructor(d);return i.copy(g),g}function rf(i){var l=new i.constructor(i.byteLength);return new Qo(l).set(new Qo(i)),l}function _S(i,l){var d=l?rf(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.byteLength)}function bS(i){var l=new i.constructor(i.source,dm.exec(i));return l.lastIndex=i.lastIndex,l}function wS(i){return Ll?jt(Ll.call(i)):{}}function Og(i,l){var d=l?rf(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.length)}function Mg(i,l){if(i!==l){var d=i!==n,g=i===null,w=i===i,R=Lr(i),Y=l!==n,X=l===null,oe=l===l,Ae=Lr(l);if(!X&&!Ae&&!R&&i>l||R&&Y&&oe&&!X&&!Ae||g&&Y&&oe||!d&&oe||!w)return 1;if(!g&&!R&&!Ae&&i=X)return oe;var Ae=d[g];return oe*(Ae=="desc"?-1:1)}}return i.index-l.index}function Rg(i,l,d,g){for(var w=-1,R=i.length,Y=d.length,X=-1,oe=l.length,Ae=On(R-Y,0),Ee=ve(oe+Ae),Re=!g;++X1?d[w-1]:n,Y=w>2?d[2]:n;for(R=i.length>3&&typeof R=="function"?(w--,R):n,Y&&ar(d[0],d[1],Y)&&(R=w<3?n:R,w=1),l=jt(l);++g-1?w[R?l[Y]:Y]:n}}function Vg(i){return $s(function(l){var d=l.length,g=d,w=Kr.prototype.thru;for(i&&l.reverse();g--;){var R=l[g];if(typeof R!="function")throw new zr(o);if(w&&!Y&&_u(R)=="wrapper")var Y=new Kr([],!0)}for(g=Y?g:d;++g1&&At.reverse(),Ee&&oeX))return!1;var Ae=R.get(i),Ee=R.get(l);if(Ae&&Ee)return Ae==l&&Ee==i;var Re=-1,je=!0,Je=d&b?new Ki:n;for(R.set(i,l),R.set(l,i);++Re1?"& ":"")+l[g],l=l.join(d>2?", ":" "),i.replace($w,`{ +/* [wrapped with `+l+`] */ +`)}function FS(i){return dt(i)||Qi(i)||!!(Xm&&i&&i[Xm])}function Bs(i,l){var d=typeof i;return l=l??J,!!l&&(d=="number"||d!="symbol"&&Jw.test(i))&&i>-1&&i%1==0&&i0){if(++l>=ee)return arguments[0]}else l=0;return i.apply(n,arguments)}}function wu(i,l){var d=-1,g=i.length,w=g-1;for(l=l===n?g:l;++d1?i[l-1]:n;return d=typeof d=="function"?(i.pop(),d):n,ov(i,d)});function uv(i){var l=A(i);return l.__chain__=!0,l}function GT(i,l){return l(i),i}function xu(i,l){return l(i)}var JT=$s(function(i){var l=i.length,d=l?i[0]:0,g=this.__wrapped__,w=function(R){return Hd(R,i)};return l>1||this.__actions__.length||!(g instanceof xt)||!Bs(d)?this.thru(w):(g=g.slice(d,+d+(l?1:0)),g.__actions__.push({func:xu,args:[w],thisArg:n}),new Kr(g,this.__chain__).thru(function(R){return l&&!R.length&&R.push(n),R}))});function ZT(){return uv(this)}function XT(){return new Kr(this.value(),this.__chain__)}function QT(){this.__values__===n&&(this.__values__=kv(this.value()));var i=this.__index__>=this.__values__.length,l=i?n:this.__values__[this.__index__++];return{done:i,value:l}}function e2(){return this}function t2(i){for(var l,d=this;d instanceof lu;){var g=nv(d);g.__index__=0,g.__values__=n,l?w.__wrapped__=g:l=g;var w=g;d=d.__wrapped__}return w.__wrapped__=i,l}function n2(){var i=this.__wrapped__;if(i instanceof xt){var l=i;return this.__actions__.length&&(l=new xt(this)),l=l.reverse(),l.__actions__.push({func:xu,args:[gf],thisArg:n}),new Kr(l,this.__chain__)}return this.thru(gf)}function r2(){return Tg(this.__wrapped__,this.__actions__)}var s2=pu(function(i,l,d){$t.call(i,d)?++i[d]:Vs(i,d,1)});function i2(i,l,d){var g=dt(i)?Fm:Gk;return d&&ar(i,l,d)&&(l=n),g(i,tt(l,3))}function a2(i,l){var d=dt(i)?ai:og;return d(i,tt(l,3))}var l2=Ng(rv),o2=Ng(sv);function u2(i,l){return qn(ku(i,l),1)}function c2(i,l){return qn(ku(i,l),k)}function d2(i,l,d){return d=d===n?1:mt(d),qn(ku(i,l),d)}function cv(i,l){var d=dt(i)?Yr:ci;return d(i,tt(l,3))}function dv(i,l){var d=dt(i)?Mx:lg;return d(i,tt(l,3))}var f2=pu(function(i,l,d){$t.call(i,d)?i[d].push(l):Vs(i,d,[l])});function h2(i,l,d,g){i=gr(i)?i:Ha(i),d=d&&!g?mt(d):0;var w=i.length;return d<0&&(d=On(w+d,0)),Eu(i)?d<=w&&i.indexOf(l,d)>-1:!!w&&Oa(i,l,d)>-1}var p2=vt(function(i,l,d){var g=-1,w=typeof l=="function",R=gr(i)?ve(i.length):[];return ci(i,function(Y){R[++g]=w?Rr(l,Y,d):Vl(Y,l,d)}),R}),m2=pu(function(i,l,d){Vs(i,d,l)});function ku(i,l){var d=dt(i)?Xt:pg;return d(i,tt(l,3))}function g2(i,l,d,g){return i==null?[]:(dt(l)||(l=l==null?[]:[l]),d=g?n:d,dt(d)||(d=d==null?[]:[d]),yg(i,l,d))}var v2=pu(function(i,l,d){i[d?0:1].push(l)},function(){return[[],[]]});function y2(i,l,d){var g=dt(i)?Ed:Um,w=arguments.length<3;return g(i,tt(l,4),d,w,ci)}function _2(i,l,d){var g=dt(i)?Rx:Um,w=arguments.length<3;return g(i,tt(l,4),d,w,lg)}function b2(i,l){var d=dt(i)?ai:og;return d(i,Cu(tt(l,3)))}function w2(i){var l=dt(i)?rg:hS;return l(i)}function x2(i,l,d){(d?ar(i,l,d):l===n)?l=1:l=mt(l);var g=dt(i)?qk:pS;return g(i,l)}function k2(i){var l=dt(i)?Wk:gS;return l(i)}function S2(i){if(i==null)return 0;if(gr(i))return Eu(i)?Ra(i):i.length;var l=Gn(i);return l==I||l==ke?i.size:zd(i).length}function T2(i,l,d){var g=dt(i)?Od:vS;return d&&ar(i,l,d)&&(l=n),g(i,tt(l,3))}var C2=vt(function(i,l){if(i==null)return[];var d=l.length;return d>1&&ar(i,l[0],l[1])?l=[]:d>2&&ar(l[0],l[1],l[2])&&(l=[l[0]]),yg(i,qn(l,1),[])}),Su=ak||function(){return jn.Date.now()};function A2(i,l){if(typeof l!="function")throw new zr(o);return i=mt(i),function(){if(--i<1)return l.apply(this,arguments)}}function fv(i,l,d){return l=d?n:l,l=i&&l==null?i.length:l,Fs(i,F,n,n,n,n,l)}function hv(i,l){var d;if(typeof l!="function")throw new zr(o);return i=mt(i),function(){return--i>0&&(d=l.apply(this,arguments)),i<=1&&(l=n),d}}var yf=vt(function(i,l,d){var g=E;if(d.length){var w=oi(d,$a(yf));g|=B}return Fs(i,g,l,d,w)}),pv=vt(function(i,l,d){var g=E|H;if(d.length){var w=oi(d,$a(pv));g|=B}return Fs(l,g,i,d,w)});function mv(i,l,d){l=d?n:l;var g=Fs(i,x,n,n,n,n,n,l);return g.placeholder=mv.placeholder,g}function gv(i,l,d){l=d?n:l;var g=Fs(i,O,n,n,n,n,n,l);return g.placeholder=gv.placeholder,g}function vv(i,l,d){var g,w,R,Y,X,oe,Ae=0,Ee=!1,Re=!1,je=!0;if(typeof i!="function")throw new zr(o);l=Xr(l)||0,tn(d)&&(Ee=!!d.leading,Re="maxWait"in d,R=Re?On(Xr(d.maxWait)||0,l):R,je="trailing"in d?!!d.trailing:je);function Je(gn){var us=g,js=w;return g=w=n,Ae=gn,Y=i.apply(js,us),Y}function nt(gn){return Ae=gn,X=Ul(bt,l),Ee?Je(gn):Y}function gt(gn){var us=gn-oe,js=gn-Ae,Nv=l-us;return Re?Kn(Nv,R-js):Nv}function rt(gn){var us=gn-oe,js=gn-Ae;return oe===n||us>=l||us<0||Re&&js>=R}function bt(){var gn=Su();if(rt(gn))return At(gn);X=Ul(bt,gt(gn))}function At(gn){return X=n,je&&g?Je(gn):(g=w=n,Y)}function Ir(){X!==n&&Ag(X),Ae=0,g=oe=w=X=n}function lr(){return X===n?Y:At(Su())}function Nr(){var gn=Su(),us=rt(gn);if(g=arguments,w=this,oe=gn,us){if(X===n)return nt(oe);if(Re)return Ag(X),X=Ul(bt,l),Je(oe)}return X===n&&(X=Ul(bt,l)),Y}return Nr.cancel=Ir,Nr.flush=lr,Nr}var E2=vt(function(i,l){return ag(i,1,l)}),O2=vt(function(i,l,d){return ag(i,Xr(l)||0,d)});function M2(i){return Fs(i,T)}function Tu(i,l){if(typeof i!="function"||l!=null&&typeof l!="function")throw new zr(o);var d=function(){var g=arguments,w=l?l.apply(this,g):g[0],R=d.cache;if(R.has(w))return R.get(w);var Y=i.apply(this,g);return d.cache=R.set(w,Y)||R,Y};return d.cache=new(Tu.Cache||Ns),d}Tu.Cache=Ns;function Cu(i){if(typeof i!="function")throw new zr(o);return function(){var l=arguments;switch(l.length){case 0:return!i.call(this);case 1:return!i.call(this,l[0]);case 2:return!i.call(this,l[0],l[1]);case 3:return!i.call(this,l[0],l[1],l[2])}return!i.apply(this,l)}}function R2(i){return hv(2,i)}var D2=yS(function(i,l){l=l.length==1&&dt(l[0])?Xt(l[0],Dr(tt())):Xt(qn(l,1),Dr(tt()));var d=l.length;return vt(function(g){for(var w=-1,R=Kn(g.length,d);++w=l}),Qi=dg(function(){return arguments}())?dg:function(i){return ln(i)&&$t.call(i,"callee")&&!Zm.call(i,"callee")},dt=ve.isArray,z2=Dm?Dr(Dm):tS;function gr(i){return i!=null&&Au(i.length)&&!Hs(i)}function mn(i){return ln(i)&&gr(i)}function K2(i){return i===!0||i===!1||ln(i)&&ir(i)==Le}var pi=ok||Mf,G2=Pm?Dr(Pm):nS;function J2(i){return ln(i)&&i.nodeType===1&&!jl(i)}function Z2(i){if(i==null)return!0;if(gr(i)&&(dt(i)||typeof i=="string"||typeof i.splice=="function"||pi(i)||Ba(i)||Qi(i)))return!i.length;var l=Gn(i);if(l==I||l==ke)return!i.size;if(Hl(i))return!zd(i).length;for(var d in i)if($t.call(i,d))return!1;return!0}function X2(i,l){return Fl(i,l)}function Q2(i,l,d){d=typeof d=="function"?d:n;var g=d?d(i,l):n;return g===n?Fl(i,l,n,d):!!g}function bf(i){if(!ln(i))return!1;var l=ir(i);return l==et||l==we||typeof i.message=="string"&&typeof i.name=="string"&&!jl(i)}function eC(i){return typeof i=="number"&&Qm(i)}function Hs(i){if(!tn(i))return!1;var l=ir(i);return l==W||l==C||l==z||l==ce}function _v(i){return typeof i=="number"&&i==mt(i)}function Au(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=J}function tn(i){var l=typeof i;return i!=null&&(l=="object"||l=="function")}function ln(i){return i!=null&&typeof i=="object"}var bv=Lm?Dr(Lm):sS;function tC(i,l){return i===l||Yd(i,l,cf(l))}function nC(i,l,d){return d=typeof d=="function"?d:n,Yd(i,l,cf(l),d)}function rC(i){return wv(i)&&i!=+i}function sC(i){if(HS(i))throw new ot(a);return fg(i)}function iC(i){return i===null}function aC(i){return i==null}function wv(i){return typeof i=="number"||ln(i)&&ir(i)==K}function jl(i){if(!ln(i)||ir(i)!=me)return!1;var l=eu(i);if(l===null)return!0;var d=$t.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&Jo.call(d)==nk}var wf=Im?Dr(Im):iS;function lC(i){return _v(i)&&i>=-9007199254740991&&i<=J}var xv=Nm?Dr(Nm):aS;function Eu(i){return typeof i=="string"||!dt(i)&&ln(i)&&ir(i)==Ce}function Lr(i){return typeof i=="symbol"||ln(i)&&ir(i)==Oe}var Ba=Vm?Dr(Vm):lS;function oC(i){return i===n}function uC(i){return ln(i)&&Gn(i)==Ue}function cC(i){return ln(i)&&ir(i)==qe}var dC=yu(Kd),fC=yu(function(i,l){return i<=l});function kv(i){if(!i)return[];if(gr(i))return Eu(i)?as(i):mr(i);if(Ml&&i[Ml])return qx(i[Ml]());var l=Gn(i),d=l==I?Id:l==ke?zo:Ha;return d(i)}function Us(i){if(!i)return i===0?i:0;if(i=Xr(i),i===k||i===-1/0){var l=i<0?-1:1;return l*_e}return i===i?i:0}function mt(i){var l=Us(i),d=l%1;return l===l?d?l-d:l:0}function Sv(i){return i?Gi(mt(i),0,Ne):0}function Xr(i){if(typeof i=="number")return i;if(Lr(i))return Me;if(tn(i)){var l=typeof i.valueOf=="function"?i.valueOf():i;i=tn(l)?l+"":l}if(typeof i!="string")return i===0?i:+i;i=jm(i);var d=zw.test(i);return d||Gw.test(i)?Ax(i.slice(2),d?2:8):Yw.test(i)?Me:+i}function Tv(i){return ks(i,vr(i))}function hC(i){return i?Gi(mt(i),-9007199254740991,J):i===0?i:0}function Nt(i){return i==null?"":Pr(i)}var pC=Va(function(i,l){if(Hl(l)||gr(l)){ks(l,Vn(l),i);return}for(var d in l)$t.call(l,d)&&Il(i,d,l[d])}),Cv=Va(function(i,l){ks(l,vr(l),i)}),Ou=Va(function(i,l,d,g){ks(l,vr(l),i,g)}),mC=Va(function(i,l,d,g){ks(l,Vn(l),i,g)}),gC=$s(Hd);function vC(i,l){var d=Na(i);return l==null?d:sg(d,l)}var yC=vt(function(i,l){i=jt(i);var d=-1,g=l.length,w=g>2?l[2]:n;for(w&&ar(l[0],l[1],w)&&(g=1);++d1),R}),ks(i,of(i),d),g&&(d=Gr(d,p|m|y,OS));for(var w=l.length;w--;)Qd(d,l[w]);return d});function NC(i,l){return Ev(i,Cu(tt(l)))}var VC=$s(function(i,l){return i==null?{}:cS(i,l)});function Ev(i,l){if(i==null)return{};var d=Xt(of(i),function(g){return[g]});return l=tt(l),_g(i,d,function(g,w){return l(g,w[0])})}function FC(i,l,d){l=fi(l,i);var g=-1,w=l.length;for(w||(w=1,i=n);++gl){var g=i;i=l,l=g}if(d||i%1||l%1){var w=eg();return Kn(i+w*(l-i+Cx("1e-"+((w+"").length-1))),l)}return Jd(i,l)}var GC=Fa(function(i,l,d){return l=l.toLowerCase(),i+(d?Rv(l):l)});function Rv(i){return Sf(Nt(i).toLowerCase())}function Dv(i){return i=Nt(i),i&&i.replace(Zw,$x).replace(gx,"")}function JC(i,l,d){i=Nt(i),l=Pr(l);var g=i.length;d=d===n?g:Gi(mt(d),0,g);var w=d;return d-=l.length,d>=0&&i.slice(d,w)==l}function ZC(i){return i=Nt(i),i&&Ls.test(i)?i.replace(Nn,Bx):i}function XC(i){return i=Nt(i),i&&Vw.test(i)?i.replace(yd,"\\$&"):i}var QC=Fa(function(i,l,d){return i+(d?"-":"")+l.toLowerCase()}),eA=Fa(function(i,l,d){return i+(d?" ":"")+l.toLowerCase()}),tA=Ig("toLowerCase");function nA(i,l,d){i=Nt(i),l=mt(l);var g=l?Ra(i):0;if(!l||g>=l)return i;var w=(l-g)/2;return vu(su(w),d)+i+vu(ru(w),d)}function rA(i,l,d){i=Nt(i),l=mt(l);var g=l?Ra(i):0;return l&&g>>0,d?(i=Nt(i),i&&(typeof l=="string"||l!=null&&!wf(l))&&(l=Pr(l),!l&&Ma(i))?hi(as(i),0,d):i.split(l,d)):[]}var cA=Fa(function(i,l,d){return i+(d?" ":"")+Sf(l)});function dA(i,l,d){return i=Nt(i),d=d==null?0:Gi(mt(d),0,i.length),l=Pr(l),i.slice(d,d+l.length)==l}function fA(i,l,d){var g=A.templateSettings;d&&ar(i,l,d)&&(l=n),i=Nt(i),l=Ou({},l,g,Ug);var w=Ou({},l.imports,g.imports,Ug),R=Vn(w),Y=Ld(w,R),X,oe,Ae=0,Ee=l.interpolate||Uo,Re="__p += '",je=Nd((l.escape||Uo).source+"|"+Ee.source+"|"+(Ee===is?Ww:Uo).source+"|"+(l.evaluate||Uo).source+"|$","g"),Je="//# sourceURL="+($t.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++wx+"]")+` +`;i.replace(je,function(rt,bt,At,Ir,lr,Nr){return At||(At=Ir),Re+=i.slice(Ae,Nr).replace(Xw,Hx),bt&&(X=!0,Re+=`' + +__e(`+bt+`) + +'`),lr&&(oe=!0,Re+=`'; +`+lr+`; +__p += '`),At&&(Re+=`' + +((__t = (`+At+`)) == null ? '' : __t) + +'`),Ae=Nr+rt.length,rt}),Re+=`'; +`;var nt=$t.call(l,"variable")&&l.variable;if(!nt)Re=`with (obj) { +`+Re+` +} +`;else if(jw.test(nt))throw new ot(u);Re=(oe?Re.replace(Fe,""):Re).replace(xe,"$1").replace($e,"$1;"),Re="function("+(nt||"obj")+`) { +`+(nt?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(X?", __e = _.escape":"")+(oe?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+Re+`return __p +}`;var gt=Lv(function(){return Rt(R,Je+"return "+Re).apply(n,Y)});if(gt.source=Re,bf(gt))throw gt;return gt}function hA(i){return Nt(i).toLowerCase()}function pA(i){return Nt(i).toUpperCase()}function mA(i,l,d){if(i=Nt(i),i&&(d||l===n))return jm(i);if(!i||!(l=Pr(l)))return i;var g=as(i),w=as(l),R=qm(g,w),Y=Wm(g,w)+1;return hi(g,R,Y).join("")}function gA(i,l,d){if(i=Nt(i),i&&(d||l===n))return i.slice(0,zm(i)+1);if(!i||!(l=Pr(l)))return i;var g=as(i),w=Wm(g,as(l))+1;return hi(g,0,w).join("")}function vA(i,l,d){if(i=Nt(i),i&&(d||l===n))return i.replace(_d,"");if(!i||!(l=Pr(l)))return i;var g=as(i),w=qm(g,as(l));return hi(g,w).join("")}function yA(i,l){var d=$,g=se;if(tn(l)){var w="separator"in l?l.separator:w;d="length"in l?mt(l.length):d,g="omission"in l?Pr(l.omission):g}i=Nt(i);var R=i.length;if(Ma(i)){var Y=as(i);R=Y.length}if(d>=R)return i;var X=d-Ra(g);if(X<1)return g;var oe=Y?hi(Y,0,X).join(""):i.slice(0,X);if(w===n)return oe+g;if(Y&&(X+=oe.length-X),wf(w)){if(i.slice(X).search(w)){var Ae,Ee=oe;for(w.global||(w=Nd(w.source,Nt(dm.exec(w))+"g")),w.lastIndex=0;Ae=w.exec(Ee);)var Re=Ae.index;oe=oe.slice(0,Re===n?X:Re)}}else if(i.indexOf(Pr(w),X)!=X){var je=oe.lastIndexOf(w);je>-1&&(oe=oe.slice(0,je))}return oe+g}function _A(i){return i=Nt(i),i&&pr.test(i)?i.replace(We,Kx):i}var bA=Fa(function(i,l,d){return i+(d?" ":"")+l.toUpperCase()}),Sf=Ig("toUpperCase");function Pv(i,l,d){return i=Nt(i),l=d?n:l,l===n?jx(i)?Zx(i):Lx(i):i.match(l)||[]}var Lv=vt(function(i,l){try{return Rr(i,n,l)}catch(d){return bf(d)?d:new ot(d)}}),wA=$s(function(i,l){return Yr(l,function(d){d=Ss(d),Vs(i,d,yf(i[d],i))}),i});function xA(i){var l=i==null?0:i.length,d=tt();return i=l?Xt(i,function(g){if(typeof g[1]!="function")throw new zr(o);return[d(g[0]),g[1]]}):[],vt(function(g){for(var w=-1;++wJ)return[];var d=Ne,g=Kn(i,Ne);l=tt(l),i-=Ne;for(var w=Pd(g,l);++d0||l<0)?new xt(d):(i<0?d=d.takeRight(-i):i&&(d=d.drop(i)),l!==n&&(l=mt(l),d=l<0?d.dropRight(-l):d.take(l-i)),d)},xt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},xt.prototype.toArray=function(){return this.take(Ne)},xs(xt.prototype,function(i,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),w=A[g?"take"+(l=="last"?"Right":""):l],R=g||/^find/.test(l);w&&(A.prototype[l]=function(){var Y=this.__wrapped__,X=g?[1]:arguments,oe=Y instanceof xt,Ae=X[0],Ee=oe||dt(Y),Re=function(bt){var At=w.apply(A,li([bt],X));return g&&je?At[0]:At};Ee&&d&&typeof Ae=="function"&&Ae.length!=1&&(oe=Ee=!1);var je=this.__chain__,Je=!!this.__actions__.length,nt=R&&!je,gt=oe&&!Je;if(!R&&Ee){Y=gt?Y:new xt(this);var rt=i.apply(Y,X);return rt.__actions__.push({func:xu,args:[Re],thisArg:n}),new Kr(rt,je)}return nt&>?i.apply(this,X):(rt=this.thru(Re),nt?g?rt.value()[0]:rt.value():rt)})}),Yr(["pop","push","shift","sort","splice","unshift"],function(i){var l=Ko[i],d=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",g=/^(?:pop|shift)$/.test(i);A.prototype[i]=function(){var w=arguments;if(g&&!this.__chain__){var R=this.value();return l.apply(dt(R)?R:[],w)}return this[d](function(Y){return l.apply(dt(Y)?Y:[],w)})}}),xs(xt.prototype,function(i,l){var d=A[l];if(d){var g=d.name+"";$t.call(Ia,g)||(Ia[g]=[]),Ia[g].push({name:l,func:d})}}),Ia[mu(n,H).name]=[{name:"wrapper",func:n}],xt.prototype.clone=_k,xt.prototype.reverse=bk,xt.prototype.value=wk,A.prototype.at=JT,A.prototype.chain=ZT,A.prototype.commit=XT,A.prototype.next=QT,A.prototype.plant=t2,A.prototype.reverse=n2,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=r2,A.prototype.first=A.prototype.head,Ml&&(A.prototype[Ml]=e2),A},Da=Xx();Wi?((Wi.exports=Da)._=Da,Td._=Da):jn._=Da}).call(F1)})(Oc,Oc.exports);var hL=Oc.exports;const Bn=fL(hL);function pL(e,t){switch(e.replace("_","-")){case"af":case"af-ZA":case"bn":case"bn-BD":case"bn-IN":case"bg":case"bg-BG":case"ca":case"ca-AD":case"ca-ES":case"ca-FR":case"ca-IT":case"da":case"da-DK":case"de":case"de-AT":case"de-BE":case"de-CH":case"de-DE":case"de-LI":case"de-LU":case"el":case"el-CY":case"el-GR":case"en":case"en-AG":case"en-AU":case"en-BW":case"en-CA":case"en-DK":case"en-GB":case"en-HK":case"en-IE":case"en-IN":case"en-NG":case"en-NZ":case"en-PH":case"en-SG":case"en-US":case"en-ZA":case"en-ZM":case"en-ZW":case"eo":case"eo-US":case"es":case"es-AR":case"es-BO":case"es-CL":case"es-CO":case"es-CR":case"es-CU":case"es-DO":case"es-EC":case"es-ES":case"es-GT":case"es-HN":case"es-MX":case"es-NI":case"es-PA":case"es-PE":case"es-PR":case"es-PY":case"es-SV":case"es-US":case"es-UY":case"es-VE":case"et":case"et-EE":case"eu":case"eu-ES":case"eu-FR":case"fa":case"fa-IR":case"fi":case"fi-FI":case"fo":case"fo-FO":case"fur":case"fur-IT":case"fy":case"fy-DE":case"fy-NL":case"gl":case"gl-ES":case"gu":case"gu-IN":case"ha":case"ha-NG":case"he":case"he-IL":case"hu":case"hu-HU":case"is":case"is-IS":case"it":case"it-CH":case"it-IT":case"ku":case"ku-TR":case"lb":case"lb-LU":case"ml":case"ml-IN":case"mn":case"mn-MN":case"mr":case"mr-IN":case"nah":case"nb":case"nb-NO":case"ne":case"ne-NP":case"nl":case"nl-AW":case"nl-BE":case"nl-NL":case"nn":case"nn-NO":case"no":case"om":case"om-ET":case"om-KE":case"or":case"or-IN":case"pa":case"pa-IN":case"pa-PK":case"pap":case"pap-AN":case"pap-AW":case"pap-CW":case"ps":case"ps-AF":case"pt":case"pt-BR":case"pt-PT":case"so":case"so-DJ":case"so-ET":case"so-KE":case"so-SO":case"sq":case"sq-AL":case"sq-MK":case"sv":case"sv-FI":case"sv-SE":case"sw":case"sw-KE":case"sw-TZ":case"ta":case"ta-IN":case"ta-LK":case"te":case"te-IN":case"tk":case"tk-TM":case"ur":case"ur-IN":case"ur-PK":case"zu":case"zu-ZA":return t===1?0:1;case"am":case"am-ET":case"bh":case"fil":case"fil-PH":case"fr":case"fr-BE":case"fr-CA":case"fr-CH":case"fr-FR":case"fr-LU":case"gun":case"hi":case"hi-IN":case"hy":case"hy-AM":case"ln":case"ln-CD":case"mg":case"mg-MG":case"nso":case"nso-ZA":case"ti":case"ti-ER":case"ti-ET":case"wa":case"wa-BE":case"xbr":return t===0||t===1?0:1;case"be":case"be-BY":case"bs":case"bs-BA":case"hr":case"hr-HR":case"ru":case"ru-RU":case"ru-UA":case"sr":case"sr-ME":case"sr-RS":case"uk":case"uk-UA":return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2;case"cs":case"cs-CZ":case"sk":case"sk-SK":return t==1?0:t>=2&&t<=4?1:2;case"ga":case"ga-IE":return t==1?0:t==2?1:2;case"lt":case"lt-LT":return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2;case"sl":case"sl-SI":return t%100==1?0:t%100==2?1:t%100==3||t%100==4?2:3;case"mk":case"mk-MK":return t%10==1?0:1;case"mt":case"mt-MT":return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3;case"lv":case"lv-LV":return t==0?0:t%10==1&&t%100!=11?1:2;case"pl":case"pl-PL":return t==1?0:t%10>=2&&t%10<=4&&(t%100<12||t%100>14)?1:2;case"cy":case"cy-GB":return t==1?0:t==2?1:t==8||t==11?2:3;case"ro":case"ro-RO":return t==1?0:t==0||t%100>0&&t%100<20?1:2;case"ar":case"ar-AE":case"ar-BH":case"ar-DZ":case"ar-EG":case"ar-IN":case"ar-IQ":case"ar-JO":case"ar-KW":case"ar-LB":case"ar-LY":case"ar-MA":case"ar-OM":case"ar-QA":case"ar-SA":case"ar-SD":case"ar-SS":case"ar-SY":case"ar-TN":case"ar-YE":return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11&&t%100<=99?4:5;default:return 0}}function mL(e,t,n){let r=e.split("|");const s=gL(r,t);if(s!==null)return s.trim();r=yL(r);const a=pL(n,t);return r.length===1||!r[a]?r[0]:r[a]}function gL(e,t){for(const n of e){let r=vL(n,t);if(r!==null)return r}return null}function vL(e,t){const n=e.match(/^[\{\[]([^\[\]\{\}]*)[\}\]]([\s\S]*)/)||[];if(n.length!==3)return null;const r=n[1],s=n[2];if(r.includes(",")){let[a,o]=r.split(",");if(o==="*"&&t>=parseFloat(a))return s;if(a==="*"&&t<=parseFloat(o))return s;if(t>=parseFloat(a)&&t<=parseFloat(o))return s}return parseFloat(r)===t?s:null}function yL(e){return e.map(t=>t.replace(/^[\{\[]([^\[\]\{\}]*)[\}\]]/,""))}const Kf=(e,t,n={})=>{try{return e(t)}catch{return n}},Gf=async(e,t={})=>{try{return(await e).default||t}catch{return t}},_L={};function r0(e){return e||bL()||wL()}function bL(){return typeof process<"u"}function wL(){return typeof _L<"u"}const Za=typeof window>"u";let Wa=null;const ju={lang:!Za&&document.documentElement.lang?document.documentElement.lang.replace("-","_"):null,fallbackLang:"en",fallbackMissingTranslations:!1,resolve:e=>new Promise(t=>t({default:{}})),onLoad:e=>{}};pe(()=>wr.getSharedInstance().getCurrentLanguage().value);const xL={shared:!0};function Pe(e,t={}){return wr.getSharedInstance().trans(e,t)}const kL={install(e,t={}){t={...xL,...t};const n=t.shared?wr.getSharedInstance(t,!0):new wr(t);e.config.globalProperties.$t=(r,s)=>n.trans(r,s),e.config.globalProperties.$tChoice=(r,s,a)=>n.transChoice(r,s,a),e.provide("i18n",n)}};class wr{constructor(t={}){this.currentLanguage=fe(ju.lang||ju.fallbackLang),this.activeMessages=Hr({}),this.fallbackMessages=Hr({}),this.reset=()=>{wr.loaded=[],this.options=ju;for(const[n]of Object.entries(this.activeMessages))this.activeMessages[n]=null;this===Wa&&(Wa=null)},this.options={...ju,...t},this.options.fallbackMissingTranslations?this.loadFallbackLanguage():this.load()}setOptions(t={},n=!1){return this.options={...this.options,...t},n&&this.load(),this}load(){this[Za?"loadLanguage":"loadLanguageAsync"](this.getActiveLanguage())}loadFallbackLanguage(){if(!Za){this.resolveLangAsync(this.options.resolve,this.options.fallbackLang).then(({default:n})=>{this.applyFallbackLanguage(this.options.fallbackLang,n),this.load()});return}const{default:t}=this.resolveLang(this.options.resolve,this.options.fallbackLang);this.applyFallbackLanguage(this.options.fallbackLang,t),this.loadLanguage(this.getActiveLanguage())}loadLanguage(t,n=!1){const r=wr.loaded.find(a=>a.lang===t);if(r){this.setLanguage(r);return}const{default:s}=this.resolveLang(this.options.resolve,t);this.applyLanguage(t,s,n,this.loadLanguage)}loadLanguageAsync(t,n=!1,r=!1){var a;r||((a=this.abortController)==null||a.abort(),this.abortController=new AbortController);const s=wr.loaded.find(o=>o.lang===t);return s?Promise.resolve(this.setLanguage(s)):new Promise((o,u)=>{this.abortController.signal.addEventListener("abort",()=>{o()}),this.resolveLangAsync(this.options.resolve,t).then(({default:c})=>{o(this.applyLanguage(t,c,n,this.loadLanguageAsync))})})}resolveLang(t,n,r={}){return Object.keys(r).length||(r=Kf(t,n)),r0(Za)?{default:{...r,...Kf(t,`php_${n}`)}}:{default:r}}async resolveLangAsync(t,n){let r=Kf(t,n);if(!(r instanceof Promise))return this.resolveLang(t,n,r);if(r0(Za)){const s=await Gf(t(`php_${n}`)),a=await Gf(r);return new Promise(o=>o({default:{...s,...a}}))}return new Promise(async s=>s({default:await Gf(r)}))}applyLanguage(t,n,r=!1,s){if(Object.keys(n).length<1){if(/[-_]/g.test(t)&&!r)return s.call(this,t.replace(/[-_]/g,o=>o==="-"?"_":"-"),!0,!0);if(t!==this.options.fallbackLang)return s.call(this,this.options.fallbackLang,!1,!0)}const a={lang:t,messages:n};return this.addLoadedLang(a),this.setLanguage(a)}applyFallbackLanguage(t,n){for(const[r,s]of Object.entries(n))this.fallbackMessages[r]=s;this.addLoadedLang({lang:this.options.fallbackLang,messages:n})}addLoadedLang(t){const n=wr.loaded.findIndex(r=>r.lang===t.lang);if(n!==-1){wr.loaded[n]=t;return}wr.loaded.push(t)}setLanguage({lang:t,messages:n}){Za||document.documentElement.setAttribute("lang",t.replace("_","-")),this.options.lang=t,this.currentLanguage.value=t;for(const[r,s]of Object.entries(n))this.activeMessages[r]=s;for(const[r,s]of Object.entries(this.fallbackMessages))(!this.isValid(n[r])||this.activeMessages[r]===r)&&(this.activeMessages[r]=s);for(const[r]of Object.entries(this.activeMessages))!this.isValid(n[r])&&!this.isValid(this.fallbackMessages[r])&&(this.activeMessages[r]=null);return this.options.onLoad(t),t}getActiveLanguage(){return this.options.lang||this.options.fallbackLang}getCurrentLanguage(){return pe(()=>this.currentLanguage.value)}isLoaded(t){return t??(t=this.getActiveLanguage()),wr.loaded.some(n=>n.lang.replace(/[-_]/g,"-")===t.replace(/[-_]/g,"-"))}trans(t,n={}){return this.wTrans(t,n).value}wTrans(t,n={}){return hb(()=>{let r=this.findTranslation(t);this.isValid(r)||(r=this.findTranslation(t.replace(/\//g,"."))),this.activeMessages[t]=this.isValid(r)?r:t}),pe(()=>this.makeReplacements(this.activeMessages[t],n))}transChoice(t,n,r={}){return this.wTransChoice(t,n,r).value}wTransChoice(t,n,r={}){const s=this.wTrans(t,r);return r.count=n.toString(),pe(()=>this.makeReplacements(mL(s.value,n,this.options.lang),r))}findTranslation(t){if(this.isValid(this.activeMessages[t]))return this.activeMessages[t];if(this.activeMessages[`${t}.0`]!==void 0){const r=Object.entries(this.activeMessages).filter(s=>s[0].startsWith(`${t}.`)).map(s=>s[1]);return Hr(r)}return this.activeMessages[t]}makeReplacements(t,n){const r=s=>s.charAt(0).toUpperCase()+s.slice(1);return Object.entries(n||[]).sort((s,a)=>s[0].length>=a[0].length?-1:1).forEach(([s,a])=>{a=a.toString(),t=(t||"").replace(new RegExp(`:${s}`,"g"),a).replace(new RegExp(`:${s.toUpperCase()}`,"g"),a.toUpperCase()).replace(new RegExp(`:${r(s)}`,"g"),r(a))}),t}isValid(t){return t!=null}static getSharedInstance(t,n=!1){return(Wa==null?void 0:Wa.setOptions(t,n))||(Wa=new wr(t))}}wr.loaded=[];function Hi(){const e=H=>{const V={};return H==null||H.forEach(x=>{V[x.id]=x.name}),V},t=pe(()=>[Pe("event.activity-overview"),Pe("event.who-is-the-activity-for"),Pe("event.organiser")]),n=pe(()=>[{id:"coding-camp",name:Pe("event.coding-camp")},{id:"summer-camp",name:Pe("event.summer-camp")},{id:"weekend-course",name:Pe("event.weekend-course")},{id:"evening-course",name:Pe("event.evening-course")},{id:"careerday",name:Pe("event.career-day")},{id:"university-visit",name:Pe("event.university-visit")},{id:"coding-home",name:Pe("event.coding-at-home")},{id:"code-week-challenge",name:Pe("event.code-week-challenge")},{id:"competition",name:Pe("event.competition")},{id:"other",name:Pe("event.other-group-work-seminars-workshops")}]),r=pe(()=>e(n.value)),s=pe(()=>[{id:"open-online",name:Pe("event.activitytype.open-online")},{id:"invite-online",name:Pe("event.activitytype.invite-online")},{id:"open-in-person",name:Pe("event.activitytype.open-in-person")},{id:"invite-in-person",name:Pe("event.activitytype.invite-in-person")},{id:"other",name:Pe("event.organizertype.other")}]),a=pe(()=>e(s.value)),o=pe(()=>({daily:Pe("event.daily"),weekly:Pe("event.weekly"),monthly:Pe("event.monthly")})),u=pe(()=>[{id:"0-1",name:Pe("event.0-1-hours")},{id:"1-2",name:Pe("event.1-2-hours")},{id:"2-4",name:Pe("event.2-4-hours")},{id:"over-4",name:Pe("event.longer-than-4-hours")}]),c=pe(()=>e(u.value)),h=pe(()=>[{id:"consecutive",name:Pe("event.consecutive-learning-over-multiple-sessions")},{id:"individual",name:Pe("event.recurring-individual")}]),f=pe(()=>e(h.value)),p=pe(()=>[{id:"under-5",name:Pe("event.under-5-early-learners")},{id:"6-9",name:Pe("event.6-9-primary")},{id:"10-12",name:Pe("event.10-12-upper-primary")},{id:"13-15",name:Pe("event.13-15-lower-secondary")},{id:"16-18",name:Pe("event.16-18-upper-secondary")},{id:"19-25",name:Pe("event.19-25-young-adults")},{id:"over-25",name:Pe("event.over-25-adults")}]),m=pe(()=>e(p.value)),y=pe(()=>[{id:"school",name:Pe("event.organizertype.school")},{id:"library",name:Pe("event.organizertype.library")},{id:"non profit",name:Pe("event.organizertype.non-profit")},{id:"private business",name:Pe("event.organizertype.private-business")},{id:"other",name:Pe("event.organizertype.other")}]),_=pe(()=>e(y.value)),b=pe(()=>[{id:"robotics-drones-smart-devices",name:Pe("event.theme.robotics-drones-smart-devices")},{id:"cybersecurity-data",name:Pe("event.theme.cybersecurity-data")},{id:"web-app-software-development",name:Pe("event.theme.web-app-software-development")},{id:"visual-block-programming",name:Pe("event.theme.visual-block-programming")},{id:"unplugged-playful-activities",name:Pe("event.theme.unplugged-playful-activities")},{id:"art-creative-coding",name:Pe("event.theme.art-creative-coding")},{id:"game-design",name:Pe("event.theme.game-design")},{id:"internet-of-things-wearables",name:Pe("event.theme.internet-of-things-wearables")},{id:"ar-vr-3d-technologies",name:Pe("event.theme.ar-vr-3d-technologies")},{id:"digital-careers-learning-pathways",name:Pe("event.theme.digital-careers-learning-pathways")},{id:"digital-literacy-soft-skills",name:Pe("event.theme.digital-literacy-soft-skills")},{id:"ai-generative-ai",name:Pe("event.theme.ai-generative-ai")},{id:"awareness-inspiration",name:Pe("event.theme.awareness-inspiration")},{id:"promoting-diversity-inclusion",name:Pe("event.theme.promoting-diversity-inclusion")},{id:"other-theme",name:Pe("event.theme.other-theme")}]),E=pe(()=>e(b.value));return{stepTitles:t,activityFormatOptions:n,activityFormatOptionsMap:r,activityTypeOptions:s,activityTypeOptionsMap:a,recurringFrequentlyMap:o,durationOptions:u,durationOptionsMap:c,recurringTypeOptions:h,recurringTypeOptionsMap:f,ageOptions:p,ageOptionsMap:m,organizerTypeOptions:y,organizerTypeOptionsMap:_,themeOptions:b,themeOptionsMap:E}}const yt=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},SL={props:{contentClass:{type:String},position:{type:String,default:"top",validator:e=>["top","right","bottom","left"].includes(e)}},setup(e){const t=fe(!1),n=pe(()=>{switch(e.position){case"top":return"bottom-full pb-2 left-1/2 -translate-x-1/2";case"right":return"left-full pl-2 top-1/2 -translate-y-1/2";case"bottom":return"top-full pt-2 left-1/2 -translate-x-1/2";case"left":return"right-full pr-2 top-1/2 -translate-y-1/2";default:return""}}),r=pe(()=>{switch(e.position){case"top":return"absolute left-1/2 bottom-0 -translate-x-1/2 translate-y-2 border-8 border-transparent border-t-gray-800";case"right":return"absolute top-1/2 left-0 -translate-y-1/2 -translate-x-2 border-8 border-transparent border-r-gray-800";case"bottom":return"absolute left-1/2 top-0 -translate-x-1/2 -translate-y-2 border-8 border-transparent border-b-gray-800";case"left":return"absolute top-1/2 right-0 -translate-y-1/2 translate-x-2 border-8 border-transparent border-l-gray-800";default:return""}});return{show:t,positionClass:n,arrowClass:r}}},TL={class:"w-full px-3 py-2 rounded-lg bg-gray-800 text-white text-sm"};function CL(e,t,n,r,s,a){return S(),P("div",{class:"relative inline-block",onMouseenter:t[0]||(t[0]=o=>r.show=!0),onMouseleave:t[1]||(t[1]=o=>r.show=!1)},[Ie(e.$slots,"trigger",{},void 0,!0),r.show?(S(),P("div",{key:0,class:Be(["absolute z-10 break-words",r.positionClass,n.contentClass]),role:"tooltip"},[v("div",TL,[Ie(e.$slots,"content",{},void 0,!0)]),v("div",{class:Be(["tooltip-arrow",r.arrowClass])},null,2)],2)):ae("",!0)],32)}const $1=yt(SL,[["render",CL],["__scopeId","data-v-ad76dce9"]]),AL={props:{horizontalBreakpoint:String,horizontal:Boolean,label:String,name:String,names:Array,errors:Object},components:{Tooltip:$1},setup(e,{slots:t}){const n=pe(()=>{const r=[],s=[];return e.name&&s.push(e.name),e.names&&s.push(...e.names),s.forEach(a=>{var o,u;(o=e.errors)!=null&&o[a]&&r.push(...(u=e.errors)==null?void 0:u[a])}),Bn.uniq(r)});return{slots:t,errorList:n}}},EL=["for"],OL={key:0,class:"flex item-start gap-3 text-error-200 font-semibold mt-2.5 empty:hidden"},ML={class:"leading-5"};function RL(e,t,n,r,s,a){var u;const o=at("Tooltip");return S(),P("div",{class:Be(["flex items-start flex-col gap-x-3 gap-y-2",[n.horizontalBreakpoint==="md"&&"md:gap-10 md:flex-row"]])},[v("label",{for:`id_${n.name||((u=n.names)==null?void 0:u[0])||""}`,class:Be(["flex items-center font-normal text-xl flex-1 text-slate-500 'w-full",[n.horizontalBreakpoint==="md"&&"md:min-h-[48px] md:w-1/3"]])},[v("span",null,[ht(re(n.label)+" ",1),r.slots.tooltip?(S(),it(o,{key:0,class:"ml-1 translate-y-1",contentClass:"w-64"},{trigger:Te(()=>t[0]||(t[0]=[v("img",{class:"text-dark-blue w-6 h-6",src:"/images/icon_question.svg"},null,-1)])),content:Te(()=>[Ie(e.$slots,"tooltip")]),_:3})):ae("",!0)])],10,EL),v("div",{class:Be(["h-full w-full",[n.horizontalBreakpoint==="md"&&"md:w-2/3"]])},[Ie(e.$slots,"default"),r.errorList.length?(S(),P("div",OL,[t[1]||(t[1]=v("img",{src:"/images/icon_error.svg"},null,-1)),(S(!0),P(Ve,null,Qe(r.errorList,c=>(S(),P("div",ML,re(c),1))),256))])):ae("",!0),Ie(e.$slots,"end")],2)],2)}const od=yt(AL,[["render",RL]]);function Jf(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function DL(e){return(...t)=>!e(...t)}function PL(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function LL(e){return e.filter(t=>!t.$isLabel)}function Zf(e,t){return n=>n.reduce((r,s)=>s[e]&&s[e].length?(r.push({$groupLabel:s[t],$isLabel:!0}),r.concat(s[e])):r,[])}const s0=(...e)=>t=>e.reduce((n,r)=>r(n),t);var IL={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(e,t){return Jf(e)?"":t?e[t]:e}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1},filteringSortFunc:{type:Function,default:null}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const e=this.search||"",t=e.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,t,this.label):this.filterOptions(n,t,this.label,this.customLabel):n=this.groupValues?Zf(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(DL(this.isSelected)):n,this.taggable&&t.length&&!this.isExistingOption(t)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:e}):n.unshift({isTag:!0,label:e})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(t=>this.customLabel(t,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(e,t,n){return s0(this.filterGroups(t,n,this.groupValues,this.groupLabel,this.customLabel),Zf(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return s0(Zf(this.groupValues,this.groupLabel),LL)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const t=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(t)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(Jf(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return Jf(t)?"":t},select(e,t){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(t)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(t==="Tab"&&!this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){t!=="Tab"&&this.removeElement(e);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([e])):this.$emit("update:modelValue",e),this.$emit("select",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const t=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);if(t){if(this.wholeGroupSelected(t)){this.$emit("remove",t[this.groupValues],this.id);const n=this.trackBy?t[this.groupValues].map(s=>s[this.trackBy]):t[this.groupValues],r=this.internalValue.filter(s=>n.indexOf(this.trackBy?s[this.trackBy]:s)===-1);this.$emit("update:modelValue",r)}else{const n=t[this.groupValues].filter(r=>!(this.isOptionDisabled(r)||this.isSelected(r)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(e){return e[this.groupValues].every(t=>this.isSelected(t)||this.isOptionDisabled(t))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,t=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const r=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",r)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&t&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(t-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))},filterOptions(e,t,n,r){return t?e.filter(s=>PL(r(s,n),t)).sort((s,a)=>typeof this.filteringSortFunc=="function"?this.filteringSortFunc(s,a):r(s,n).length-r(a,n).length):e},filterGroups(e,t,n,r,s){return a=>a.map(o=>{if(!o[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const u=this.filterOptions(o[n],e,t,s);return u.length?{[r]:o[r],[n]:u}:[]})}}},NL={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(e,t){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(t)}},groupHighlight(e,t){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":t.$isLabel}];const n=this.options.find(r=>r[this.groupLabel]===t.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerReset()},pointerForward(){this.pointer0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(e){this.pointer=e,this.pointerDirty=!0}}},Ta={name:"vue-multiselect",mixins:[IL,NL],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)},isRequired(){return this.required===!1?!1:this.internalValue.length<=0}}};const VL=["tabindex","aria-expanded","aria-owns","aria-activedescendant"],FL={ref:"tags",class:"multiselect__tags"},$L={class:"multiselect__tags-wrap"},BL=["textContent"],HL=["onKeypress","onMousedown"],UL=["textContent"],jL={class:"multiselect__spinner"},qL=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-label","aria-controls"],WL=["id","aria-multiselectable"],YL={key:0},zL={class:"multiselect__option"},KL=["aria-selected","id","role"],GL=["onClick","onMouseenter","data-select","data-selected","data-deselect"],JL=["data-select","data-deselect","onMouseenter","onMousedown"],ZL={class:"multiselect__option"},XL={class:"multiselect__option"};function QL(e,t,n,r,s,a){return S(),P("div",{tabindex:e.searchable?-1:n.tabindex,class:Be([{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":a.isAbove,"multiselect--has-options-group":a.hasOptionGroup},"multiselect"]),onFocus:t[14]||(t[14]=o=>e.activate()),onBlur:t[15]||(t[15]=o=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=$n(Et(o=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=$n(Et(o=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[18]||(t[18]=$n(Et(o=>e.addPointerElement(o),["stop","self"]),["enter","tab"])),onKeyup:t[19]||(t[19]=$n(o=>e.deactivate(),["esc"])),role:"combobox","aria-expanded":e.isOpen,"aria-owns":"listbox-"+e.id,"aria-activedescendant":e.isOpen&&e.pointer!==null?e.id+"-"+e.pointer:null},[Ie(e.$slots,"caret",{toggle:e.toggle},()=>[v("div",{onMousedown:t[0]||(t[0]=Et(o=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),Ie(e.$slots,"clear",{search:e.search}),v("div",FL,[Ie(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:a.visibleValues,isOpen:e.isOpen},()=>[Dn(v("div",$L,[(S(!0),P(Ve,null,Qe(a.visibleValues,(o,u)=>Ie(e.$slots,"tag",{option:o,search:e.search,remove:e.removeElement},()=>[(S(),P("span",{class:"multiselect__tag",key:u,onMousedown:t[1]||(t[1]=Et(()=>{},["prevent"]))},[v("span",{textContent:re(e.getOptionLabel(o))},null,8,BL),v("i",{tabindex:"1",onKeypress:$n(Et(c=>e.removeElement(o),["prevent"]),["enter"]),onMousedown:Et(c=>e.removeElement(o),["prevent"]),class:"multiselect__tag-icon"},null,40,HL)],32))])),256))],512),[[Fr,a.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>n.limit?Ie(e.$slots,"limit",{key:0},()=>[v("strong",{class:"multiselect__strong",textContent:re(n.limitText(e.internalValue.length-n.limit))},null,8,UL)]):ae("v-if",!0)]),he(vs,{name:"multiselect__loading"},{default:Te(()=>[Ie(e.$slots,"loading",{},()=>[Dn(v("div",jL,null,512),[[Fr,n.loading]])])]),_:3}),e.searchable?(S(),P("input",{key:0,ref:"search",name:n.name,id:e.id,type:"text",autocomplete:"off",spellcheck:n.spellcheck,placeholder:e.placeholder,required:a.isRequired,style:bn(a.inputStyle),value:e.search,disabled:n.disabled,tabindex:n.tabindex,"aria-label":n.name+"-searchbox",onInput:t[2]||(t[2]=o=>e.updateSearch(o.target.value)),onFocus:t[3]||(t[3]=Et(o=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=Et(o=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=$n(o=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=$n(Et(o=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=$n(Et(o=>e.pointerBackward(),["prevent"]),["up"])),t[9]||(t[9]=$n(Et(o=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[8]||(t[8]=$n(Et(o=>e.addPointerElement(o),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,qL)):ae("v-if",!0),a.isSingleLabelVisible?(S(),P("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=Et((...o)=>e.toggle&&e.toggle(...o),["prevent"]))},[Ie(e.$slots,"singleLabel",{option:a.singleValue},()=>[ht(re(e.currentOptionLabel),1)])],32)):ae("v-if",!0),a.isPlaceholderVisible?(S(),P("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=Et((...o)=>e.toggle&&e.toggle(...o),["prevent"]))},[Ie(e.$slots,"placeholder",{},()=>[ht(re(e.placeholder),1)])],32)):ae("v-if",!0)],512),he(vs,{name:"multiselect",persisted:""},{default:Te(()=>[Dn(v("div",{class:"multiselect__content-wrapper",onFocus:t[12]||(t[12]=(...o)=>e.activate&&e.activate(...o)),tabindex:"-1",onMousedown:t[13]||(t[13]=Et(()=>{},["prevent"])),style:bn({maxHeight:e.optimizedHeight+"px"}),ref:"list"},[v("ul",{class:"multiselect__content",style:bn(a.contentStyle),role:"listbox",id:"listbox-"+e.id,"aria-multiselectable":e.multiple},[Ie(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(S(),P("li",YL,[v("span",zL,[Ie(e.$slots,"maxElements",{},()=>[ht("Maximum of "+re(e.max)+" options selected. First remove a selected option to select another.",1)])])])):ae("v-if",!0),!e.max||e.internalValue.length(S(),P("li",{class:"multiselect__element",key:u,"aria-selected":e.isSelected(o),id:e.id+"-"+u,role:o&&(o.$isLabel||o.$isDisabled)?null:"option"},[o&&(o.$isLabel||o.$isDisabled)?ae("v-if",!0):(S(),P("span",{key:0,class:Be([e.optionHighlight(u,o),"multiselect__option"]),onClick:Et(c=>e.select(o),["stop"]),onMouseenter:Et(c=>e.pointerSet(u),["self"]),"data-select":o&&o.isTag?e.tagPlaceholder:a.selectLabelText,"data-selected":a.selectedLabelText,"data-deselect":a.deselectLabelText},[Ie(e.$slots,"option",{option:o,search:e.search,index:u},()=>[v("span",null,re(e.getOptionLabel(o)),1)])],42,GL)),o&&(o.$isLabel||o.$isDisabled)?(S(),P("span",{key:1,"data-select":e.groupSelect&&a.selectGroupLabelText,"data-deselect":e.groupSelect&&a.deselectGroupLabelText,class:Be([e.groupHighlight(u,o),"multiselect__option"]),onMouseenter:Et(c=>e.groupSelect&&e.pointerSet(u),["self"]),onMousedown:Et(c=>e.selectGroup(o),["prevent"])},[Ie(e.$slots,"option",{option:o,search:e.search,index:u},()=>[v("span",null,re(e.getOptionLabel(o)),1)])],42,JL)):ae("v-if",!0)],8,KL))),128)):ae("v-if",!0),Dn(v("li",null,[v("span",ZL,[Ie(e.$slots,"noResult",{search:e.search},()=>[t[20]||(t[20]=ht("No elements found. Consider changing the search query."))])])],512),[[Fr,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),Dn(v("li",null,[v("span",XL,[Ie(e.$slots,"noOptions",{},()=>[t[21]||(t[21]=ht("List is empty."))])])],512),[[Fr,n.showNoOptions&&(e.options.length===0||a.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!n.loading]]),Ie(e.$slots,"afterList")],12,WL)],36),[[Fr,e.isOpen]])]),_:3})],42,VL)}Ta.render=QL;const eI={props:{multiple:Boolean,returnObject:Boolean,allowEmpty:{type:Boolean,default:!0},modelValue:[Array,String],deselectLabel:String,options:Array,idName:{type:String,default:"id"},labelField:{type:String,default:"name"},theme:{type:String,default:"new"},largeText:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1}},components:{Multiselect:Ta},emits:["update:modelValue","onChange"],setup(e,{emit:t}){const n=fe(),r=a=>{if(e.multiple){const o=e.returnObject?a:a.map(u=>u[e.idName]);t("update:modelValue",o),t("onChange",o)}else{const o=e.returnObject?a:a[e.idName];t("update:modelValue",o),t("onChange",o)}},s=a=>{var o,u;return e.multiple?n.value?(o=n.value)==null?void 0:o.some(c=>String(c[e.idName])===String(a[e.idName])):!1:String((u=n.value)==null?void 0:u[e.idName])===String(a[e.idName])};return Wt([()=>e.multiple,()=>e.returnObject,()=>e.options,()=>e.modelValue],()=>{var a,o;e.returnObject?n.value=e.modelValue:e.multiple?Array.isArray(e.modelValue)&&(n.value=(a=e.modelValue)==null?void 0:a.map(u=>e.options.find(c=>c[e.idName]===u))):n.value=(o=e.options)==null?void 0:o.find(u=>u[e.idName]===e.modelValue)},{immediate:!0}),{selectedValues:n,isSelectedOption:s,onUpdateModalValue:r}}},tI={class:"flex justify-between items-center cursor-pointer"},nI={class:"whitespace-normal leading-6"},rI=["for"],sI={key:0,class:"h-4 w-4 text-[#05603A]",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},iI={class:"flex gap-2.5 items-center rounded-full bg-dark-blue text-white px-4 py-2"},aI={class:"font-semibold leading-4"},lI=["onClick"],oI={class:"flex gap-4 items-center cursor-pointer"},uI={class:"whitespace-normal leading-6"},cI={key:0,class:"h-5 w-5 text-slate-600",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},dI=["onMousedown"];function fI(e,t,n,r,s,a){const o=at("multiselect");return S(),it(o,{class:Be(["multi-select",[n.multiple&&"multiple",n.theme==="new"&&"new-theme large-text",n.largeText&&"large-text"]]),modelValue:r.selectedValues,"onUpdate:modelValue":[t[0]||(t[0]=u=>r.selectedValues=u),r.onUpdateModalValue],"track-by":n.idName,label:n.labelField,multiple:n.multiple,"preselect-first":!1,"close-on-select":!n.multiple,"clear-on-select":!n.multiple,"preserve-search":!0,searchable:n.searchable,"allow-empty":n.allowEmpty,"deselect-label":n.deselectLabel,options:n.options},Hn({tag:Te(({option:u,remove:c})=>[v("span",iI,[v("span",aI,re(u.name),1),v("span",{onClick:h=>c(u)},t[2]||(t[2]=[v("img",{src:"/images/close-white.svg"},null,-1)]),8,lI)])]),caret:Te(({toggle:u})=>[v("div",{class:"cursor-pointer absolute top-1/2 right-4 -translate-y-1/2",onMousedown:Et(u,["prevent"])},t[4]||(t[4]=[v("img",{src:"/images/select-arrow.svg"},null,-1)]),40,dI)]),noResult:Te(()=>[t[5]||(t[5]=v("div",{class:"text-gray-400 text-center"},"No elements found",-1))]),_:2},[n.multiple&&n.theme==="new"?{name:"option",fn:Te(({option:u})=>[v("div",tI,[v("span",nI,re(u[n.labelField]),1),v("div",{class:Be(["flex-shrink-0 h-6 w-6 border-2 bg-white flex items-center justify-center cursor-pointer rounded",[r.isSelectedOption(u)?"border-[#05603A]":"border-dark-blue-200"]]),for:e.id},[r.isSelectedOption(u)?(S(),P("svg",sI,t[1]||(t[1]=[v("path",{d:"M5 13l4 4L19 7"},null,-1)]))):ae("",!0)],10,rI)])]),key:"0"}:void 0,n.multiple?void 0:{name:"option",fn:Te(({option:u})=>[v("div",oI,[v("span",uI,re(u[n.labelField]),1),v("div",null,[r.isSelectedOption(u)?(S(),P("svg",cI,t[3]||(t[3]=[v("path",{d:"M5 13l4 4L19 7"},null,-1)]))):ae("",!0)])])]),key:"1"}]),1032,["class","modelValue","track-by","label","multiple","close-on-select","clear-on-select","searchable","allow-empty","deselect-label","options","onUpdate:modelValue"])}const Fo=yt(eI,[["render",fI]]),hI={props:{modelValue:[String,Number],name:String,min:Number,max:Number,type:{type:String,default:"text"}},emits:["update:modelValue","onChange","onBlur"],setup(e,{emit:t}){const n=fe(e.modelValue);return Wt(()=>e.modelValue,()=>{n.value=e.modelValue}),{localValue:n,onChange:a=>{let o=a.target.value;e.type==="number"&&(o=o&&Number(o),e.min!==void 0&&e.min!==null&&(o=Math.max(o,e.min)),e.max!==void 0&&e.max!==null&&(o=Math.min(o,e.max))),Un(()=>{t("update:modelValue",o),t("onChange",o)})},onBlur:()=>{t("onBlur")}}}},pI=["id","type","min","max","name"];function mI(e,t,n,r,s,a){return Dn((S(),P("input",{class:"w-full border-2 border-solid border-dark-blue-200 rounded-full h-12 px-6 text-xl text-slate-600",id:`id_${n.name}`,type:n.type,min:n.min,max:n.max,name:n.name,"onUpdate:modelValue":t[0]||(t[0]=o=>r.localValue=o),onInput:t[1]||(t[1]=(...o)=>r.onChange&&r.onChange(...o)),onBlur:t[2]||(t[2]=(...o)=>r.onBlur&&r.onBlur(...o))},null,40,pI)),[[Sp,r.localValue]])}const ud=yt(hI,[["render",mI]]),gI={props:{modelValue:String,name:String,label:String,value:String},emits:["update:modelValue"],setup(e,{emit:t}){return{onChange:r=>{t("update:modelValue",r.target.value)}}}},vI={class:"flex items-center gap-2 cursor-pointer"},yI=["id","name","value","checked"],_I=["for"],bI={class:"cursor-pointer text-xl text-slate-500"};function wI(e,t,n,r,s,a){return S(),P("label",vI,[v("input",{class:"peer hidden",type:"radio",id:`${n.name}-${n.value}`,name:n.name,value:n.value,checked:n.modelValue===n.value,onChange:t[0]||(t[0]=(...o)=>r.onChange&&r.onChange(...o))},null,40,yI),v("div",{class:"h-8 w-8 rounded-full border-2 bg-white border-dark-blue-200 flex items-center justify-center cursor-pointer peer-checked:before:content-[''] peer-checked:before:block peer-checked:before:w-3 peer-checked:before:h-3 peer-checked:before:rounded-full peer-checked:before:bg-slate-600",for:`${n.name}-${n.value}`},null,8,_I),v("span",bI,re(n.label),1)])}const Wp=yt(gI,[["render",wI]]),xI={props:{modelValue:String,name:String,placeholder:String,height:{type:Number,default:400}},emits:["update:modelValue","onChange"],setup(e,{emit:t}){const n=a=>{t("update:modelValue",a),t("onChange",a)},r=()=>{const a="/js/tinymce/tinymce.min.js";return new Promise((o,u)=>{if(document.querySelector(`script[src="${a}"]`))return o();const c=document.createElement("script");c.src=a,c.onload=()=>o(),c.onerror=()=>u(new Error(`Failed to load script ${a}`)),document.head.appendChild(c)})},s=async()=>{try{await r()}catch(a){console.log("Can't load tinymce scrip:",a)}tinymce.init({selector:`#id_${e.name}`,height:e.height,width:"100%",setup:a=>{a.on("init",()=>{a.setContent(e.modelValue||"")}),a.on("change input",()=>{const o=a.getContent();a.save(),n(o)})}})};return Ft(()=>{s()}),{}}},kI={class:"custom-tinymce"},SI=["id","name","placeholder"];function TI(e,t,n,r,s,a){return S(),P("div",kI,[v("textarea",{class:"hidden",cols:"40",id:`id_${n.name}`,name:n.name,placeholder:n.placeholder,rows:"10"},null,8,SI)])}const CI=yt(xI,[["render",TI]]),AI={props:{errors:Object,formValues:Object,themes:Array,location:Object,countries:Array},components:{FieldWrapper:od,SelectField:Fo,InputField:ud,RadioField:Wp,TinymceField:CI},setup(e,{emit:t}){const{activityFormatOptions:n,activityTypeOptions:r,durationOptions:s,recurringTypeOptions:a}=Hi();return{activityFormatOptions:n,activityTypeOptions:r,durationOptions:s,recurringTypeOptions:a,handleLocationChange:({location:u,geoposition:c,country_iso:h})=>{e.formValues.location=u,e.formValues.geoposition=c;const f=e.countries.find(({iso:p})=>p===h);e.formValues.country_iso=f}}}},EI={class:"flex flex-col gap-4 w-full"},OI={class:"flex gap-4 p-4 mt-2.5 w-full rounded-2xl border bg-dark-blue-50 border-dark-blue-100"},MI={class:"text-xl text-slate-500"},RI={class:"w-full md:w-1/2"},DI={class:"w-full flex px-3 justify-between items-center text-gray-700 whitespace-nowrap rounded-3xl border-2 border-dark-blue-200 h-[50px] bg-white"},PI={class:"flex items-center gap-8 min-h-[48px]"},LI={key:0,class:"p-4 mt-4 w-full rounded-2xl border bg-dark-blue-50 border-dark-blue-100"},II={class:"block mb-2 text-xl font-semibold text-slate-500"},NI={class:"flex flex-wrap gap-8 items-center"},VI={class:"block mt-6 mb-2 text-xl font-semibold text-slate-500"};function FI(e,t,n,r,s,a){const o=at("InputField"),u=at("FieldWrapper"),c=at("SelectField"),h=at("autocomplete-geo"),f=at("date-time"),p=at("RadioField"),m=at("TinymceField");return S(),P("div",EI,[he(u,{horizontalBreakpoint:"md",label:`${e.$t("event.title.label")}*`,name:"title",errors:n.errors},{default:Te(()=>[he(o,{modelValue:n.formValues.title,"onUpdate:modelValue":t[0]||(t[0]=y=>n.formValues.title=y),required:"",name:"title",placeholder:e.$t("event.title.placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.specify-the-format-of-the-activity"),name:"activity_format",errors:n.errors},{default:Te(()=>[he(c,{modelValue:n.formValues.activity_format,"onUpdate:modelValue":t[1]||(t[1]=y=>n.formValues.activity_format=y),multiple:"",name:"activity_format",options:r.activityFormatOptions,placeholder:e.$t("event.select-option")},null,8,["modelValue","options","placeholder"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:`${e.$t("event.activitytype.label")}*`,name:"activity_type",errors:n.errors},{end:Te(()=>[v("div",OI,[t[14]||(t[14]=v("img",{class:"flex-shrink-0 mt-1 w-6 h-6",src:"/images/icon_info.svg"},null,-1)),v("span",MI,re(e.$t("event.if-no-clear-information-provide-estimate")),1)])]),default:Te(()=>[he(c,{modelValue:n.formValues.activity_type,"onUpdate:modelValue":t[2]||(t[2]=y=>n.formValues.activity_type=y),required:"",name:"activity_type",options:r.activityTypeOptions},null,8,["modelValue","options"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:`${e.$t("event.address.label")} ${["open-online","invite-online"].includes(n.formValues.activity_type)?"(optional)":"*"}`,name:"location",errors:n.errors},{default:Te(()=>[he(h,{class:"custom-geo-input",name:"location",placeholder:e.$t("event.address.placeholder"),location:n.formValues.location,value:n.formValues.location,geoposition:n.formValues.geoposition,onOnChange:r.handleLocationChange},null,8,["placeholder","location","value","geoposition","onOnChange"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.activity-duration"),name:"duration",errors:n.errors},{default:Te(()=>[v("div",RI,[he(c,{modelValue:n.formValues.duration,"onUpdate:modelValue":t[3]||(t[3]=y=>n.formValues.duration=y),required:"",name:"duration",options:r.durationOptions,placeholder:e.$t("event.select-option")},null,8,["modelValue","options","placeholder"])])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.date"),names:["start_date","end_date"],errors:n.errors},{default:Te(()=>[v("div",DI,[he(f,{name:"start_date",placeholder:e.$t("event.start.label"),flow:["calendar","time"],value:n.formValues.start_date,onOnChange:t[4]||(t[4]=y=>n.formValues.start_date=y)},null,8,["placeholder","value"]),t[15]||(t[15]=v("span",null,"-",-1)),he(f,{name:"end_date",placeholder:e.$t("event.end.label"),flow:["calendar","time"],value:n.formValues.end_date,onOnChange:t[5]||(t[5]=y=>n.formValues.end_date=y)},null,8,["placeholder","value"])])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.is-it-a-recurring-event"),name:"is_recurring_event_local",errors:n.errors},{default:Te(()=>[v("div",PI,[he(p,{modelValue:n.formValues.is_recurring_event_local,"onUpdate:modelValue":t[6]||(t[6]=y=>n.formValues.is_recurring_event_local=y),name:"is_recurring_event_local",value:"true",label:e.$t("event.true")},null,8,["modelValue","label"]),he(p,{modelValue:n.formValues.is_recurring_event_local,"onUpdate:modelValue":t[7]||(t[7]=y=>n.formValues.is_recurring_event_local=y),name:"is_recurring_event_local",value:"false",label:e.$t("event.false")},null,8,["modelValue","label"])]),n.formValues.is_recurring_event_local==="true"?(S(),P("div",LI,[v("label",II,re(e.$t("event.how-frequently")),1),v("div",NI,[he(p,{modelValue:n.formValues.recurring_event,"onUpdate:modelValue":t[8]||(t[8]=y=>n.formValues.recurring_event=y),name:"recurring_event",value:"daily",label:e.$t("event.daily")},null,8,["modelValue","label"]),he(p,{modelValue:n.formValues.recurring_event,"onUpdate:modelValue":t[9]||(t[9]=y=>n.formValues.recurring_event=y),name:"recurring_event",value:"weekly",label:e.$t("event.weekly")},null,8,["modelValue","label"]),he(p,{modelValue:n.formValues.recurring_event,"onUpdate:modelValue":t[10]||(t[10]=y=>n.formValues.recurring_event=y),name:"recurring_event",value:"monthly",label:e.$t("event.monthly")},null,8,["modelValue","label"])]),v("label",VI,re(e.$t("event.what-type-of-recurring-activity")),1),he(c,{modelValue:n.formValues.recurring_type,"onUpdate:modelValue":t[11]||(t[11]=y=>n.formValues.recurring_type=y),name:"recurring_type",options:r.recurringTypeOptions},null,8,["modelValue","options"])])):ae("",!0)]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.theme-title"),name:"theme",errors:n.errors},{default:Te(()=>[he(c,{modelValue:n.formValues.theme,"onUpdate:modelValue":t[12]||(t[12]=y=>n.formValues.theme=y),multiple:"",required:"",name:"theme",placeholder:e.$t("event.select-theme"),options:n.themes},null,8,["modelValue","placeholder","options"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.activity-description"),name:"description",errors:n.errors},{default:Te(()=>[he(m,{modelValue:n.formValues.description,"onUpdate:modelValue":t[13]||(t[13]=y=>n.formValues.description=y),name:"description"},null,8,["modelValue"])]),_:1},8,["label","errors"])])}const $I=yt(AI,[["render",FI]]);function BI(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(s){s(n)}),(r=e.get("*"))&&r.slice().map(function(s){s(t,n)})}}}const ei=BI(),HI={props:{message:{type:Object,default:null}},setup(e){const t=fe(""),n=fe(!1),r=fe(""),s=u=>{u&&(t.value=u.message,r.value=u.level.charAt(0).toUpperCase()+u.level.slice(1),n.value=!0,a())},a=()=>{setTimeout(()=>{n.value=!1},3e3)},o=pe(()=>({success:r.value.toLowerCase()==="success",error:r.value.toLowerCase()==="error"}));return Ft(()=>{e.message&&s(e.message),ei.on("flash",s)}),ii(()=>{ei.off("flash",s)}),{body:t,show:n,level:r,flashClass:o}}},UI={key:0,class:"codeweek-flash-message",role:"alert"},jI={class:"level"},qI={class:"body"};function WI(e,t,n,r,s,a){return r.show?(S(),P("div",UI,[v("div",{class:Be(["content",r.flashClass])},[v("div",jI,re(r.level)+"!",1),v("div",qI,re(r.body),1)],2)])):ae("",!0)}const cd=yt(HI,[["render",WI],["__scopeId","data-v-09461b5c"]]),YI={components:{Flash:cd},props:{name:{type:String,default:"picture"},picture:{type:String,default:""}},emits:["onChange"],setup(e,{emit:t}){const n=fe(null),r=fe(e.picture||""),s=fe(""),a=()=>{var p;return(p=n.value)==null?void 0:p.click()},o=()=>{},u=()=>{},c=p=>{const[m]=p.dataTransfer.files;m&&f(m)},h=p=>{const[m]=p.target.files;m&&f(m)};function f(p){const m=new FormData;m.append("picture",p),Tt.post("/api/events/picture",m).then(y=>{s.value="",r.value=y.data.path,ei.emit("flash",{message:"Picture uploaded!",level:"success"}),t("onChange",y.data)}).catch(y=>{var b,E,H,V;const _=((V=(H=(E=(b=y.response)==null?void 0:b.data)==null?void 0:E.errors)==null?void 0:H.picture)==null?void 0:V[0])||"Image is too large. Maximum is 1Mb";s.value=_,ei.emit("flash",{message:_,level:"error"})})}return{fileInput:n,pictureClone:r,error:s,onTriggerFileInput:a,onDragOver:o,onDragLeave:u,onDrop:c,onFileChange:h}}},zI=["src"],KI={class:"text-xl text-slate-500"},GI={class:"text-xs text-slate-500"},JI={key:0,class:"flex gap-3 mt-2.5 font-semibold item-start text-error-200"},ZI={class:"leading-5"},XI={class:"flex gap-2.5 mt-4 w-full"},QI={class:"mt-1 text-xs text-slate-500"},eN={class:"pl-4 my-4 list-disc"},tN={class:"text-xs text-slate-500"};function nN(e,t,n,r,s,a){const o=at("Flash");return S(),P("div",null,[v("div",{class:"flex flex-col justify-center items-center gap-2 border-[3px] border-dashed border-dark-blue-200 w-full rounded-2xl py-12 px-8 cursor-pointer",onClick:t[1]||(t[1]=(...u)=>r.onTriggerFileInput&&r.onTriggerFileInput(...u)),onDragover:t[2]||(t[2]=Et((...u)=>r.onDragOver&&r.onDragOver(...u),["prevent"])),onDragleave:t[3]||(t[3]=(...u)=>r.onDragLeave&&r.onDragLeave(...u)),onDrop:t[4]||(t[4]=Et((...u)=>r.onDrop&&r.onDrop(...u),["prevent"]))},[v("div",{class:Be(["mb-4",[!r.pictureClone&&"hidden"]])},[v("img",{src:r.pictureClone,class:"mr-1"},null,8,zI)],2),v("div",{class:Be([!!r.pictureClone&&"hidden"])},t[5]||(t[5]=[v("img",{class:"w-16 h-16",src:"/images/icon_image.svg"},null,-1)]),2),v("span",KI,re(e.$t("event.drop-your-image-here-or-upload")),1),v("span",GI,re(e.$t("event.max-size-1mb-image-formats-jpg-png")),1),v("input",{class:"hidden",type:"file",ref:"fileInput",onChange:t[0]||(t[0]=(...u)=>r.onFileChange&&r.onFileChange(...u))},null,544)],32),r.error?(S(),P("div",JI,[t[6]||(t[6]=v("img",{src:"/images/icon_error.svg"},null,-1)),v("div",ZI,re(r.error),1)])):ae("",!0),v("div",XI,[t[7]||(t[7]=v("img",{class:"flex-shrink-0 w-6 h-6",src:"/images/icon_info.svg"},null,-1)),v("div",QI,[ht(re(e.$t("event.by-submitting-images-through-this-form-you-confirm-that"))+" ",1),v("ul",eN,[v("li",null,re(e.$t("event.you-have-obtained-all-necessary-permissions")),1),v("li",null,re(e.$t("event.you-will-not-submit-any-images-with-faces-directly-visible-or-identifiable"))+" "+re(e.$t("event.if-this-is-the-case-ensure-faces-are-blurred"))+" "+re(e.$t("event.submissions-that-do-not-comply-will-not-be-accepted")),1),v("li",null,re(e.$t("event.you-understand-and-agree-images-will-be-shared")),1)])])]),v("div",tN,re(e.$t("event.info-max-size-1mb")),1),he(o)])}const B1=yt(YI,[["render",nN]]),rN={props:{errors:Object,formValues:Object,audiences:Array,leadingTeachers:Array},components:{FieldWrapper:od,SelectField:Fo,InputField:ud,RadioField:Wp,ImageField:B1},setup(e){const{ageOptions:t}=Hi();return{leadingTeacherOptions:pe(()=>e.leadingTeachers.map(a=>({id:a,name:a}))),ageOptions:t,onPictureChange:a=>{e.formValues.picture=a.imageName,e.formValues.pictureUrl=a.path},handleCorrectCount:a=>{const o=Number(e.formValues.participants_count||"0");Number(e.formValues[a]||"0")>o&&(e.formValues[a]=o)}}}},sN={class:"flex flex-col gap-4 w-full"},iN={class:"flex flex-col gap-4 p-4 mt-2.5 w-full rounded-2xl border bg-dark-blue-50 border-dark-blue-100"},aN={class:"flex gap-2 p-2 mb-2 w-full bg-gray-100 rounded"},lN={class:"text-xl text-slate-500"},oN={class:"block mb-2 text-xl font-semibold text-slate-500"},uN={class:"grid grid-cols-1 gap-x-4 gap-y-4 md:grid-cols-2 md:gap-x-8"},cN={class:"flex items-center gap-8 min-h-[48px] h-full"},dN={class:"flex items-center gap-8 min-h-[48px] h-full"},fN={href:"/codeweek4all",target:"_blank"};function hN(e,t,n,r,s,a){const o=at("SelectField"),u=at("FieldWrapper"),c=at("InputField"),h=at("RadioField"),f=at("ImageField");return S(),P("div",sN,[he(u,{horizontalBreakpoint:"md",label:e.$t("event.audiences"),name:"audience",errors:n.errors},{default:Te(()=>[he(o,{placeholder:e.$t("event.select-option"),modelValue:n.formValues.audience,"onUpdate:modelValue":t[0]||(t[0]=p=>n.formValues.audience=p),multiple:"",name:"audience",options:n.audiences},null,8,["placeholder","modelValue","options"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.number-of-participants"),name:"participants_count",errors:n.errors},{end:Te(()=>[v("div",iN,[v("div",aN,[t[15]||(t[15]=v("img",{class:"flex-shrink-0 mt-1 w-6 h-6",src:"/images/icon_info.svg"},null,-1)),v("span",lN,re(e.$t("event.if-no-clear-information-provide-estimate")),1)]),v("label",oN,re(e.$t("event.of-this-number-how-many-are")),1),v("div",uN,[he(u,{label:e.$t("event.males"),name:"males_count",errors:n.errors},{default:Te(()=>[he(c,{modelValue:n.formValues.males_count,"onUpdate:modelValue":t[2]||(t[2]=p=>n.formValues.males_count=p),type:"number",min:0,name:"males_count",placeholder:e.$t("event.enter-number"),onOnBlur:t[3]||(t[3]=p=>r.handleCorrectCount("event.males_count"))},null,8,["modelValue","placeholder"])]),_:1},8,["label","errors"]),he(u,{label:e.$t("event.females"),name:"females_count",errors:n.errors},{default:Te(()=>[he(c,{modelValue:n.formValues.females_count,"onUpdate:modelValue":t[4]||(t[4]=p=>n.formValues.females_count=p),type:"number",min:0,name:"females_count",placeholder:e.$t("event.enter-number"),onOnBlur:t[5]||(t[5]=p=>r.handleCorrectCount("event.females_count"))},null,8,["modelValue","placeholder"])]),_:1},8,["label","errors"]),he(u,{label:e.$t("event.other-gender"),name:"other_count",errors:n.errors},{default:Te(()=>[he(c,{modelValue:n.formValues.other_count,"onUpdate:modelValue":t[6]||(t[6]=p=>n.formValues.other_count=p),type:"number",min:0,name:"other_count",placeholder:e.$t("event.enter-number"),onOnBlur:t[7]||(t[7]=p=>r.handleCorrectCount("event.other_count"))},null,8,["modelValue","placeholder"])]),_:1},8,["label","errors"])])])]),default:Te(()=>[he(c,{modelValue:n.formValues.participants_count,"onUpdate:modelValue":t[1]||(t[1]=p=>n.formValues.participants_count=p),type:"number",min:0,required:"",name:"participants_count",placeholder:e.$t("event.enter-number")},null,8,["modelValue","placeholder"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.age"),name:"ages",errors:n.errors},{default:Te(()=>[he(o,{placeholder:e.$t("event.select-option"),modelValue:n.formValues.ages,"onUpdate:modelValue":t[8]||(t[8]=p=>n.formValues.ages=p),multiple:"",name:"ages",options:r.ageOptions},null,8,["placeholder","modelValue","options"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("is-this-an-extracurricular-activity"),name:"is_extracurricular_event",errors:n.errors},{default:Te(()=>[v("div",cN,[he(h,{modelValue:n.formValues.is_extracurricular_event,"onUpdate:modelValue":t[9]||(t[9]=p=>n.formValues.is_extracurricular_event=p),name:"is_extracurricular_event",value:"true",label:e.$t("event.yes")},null,8,["modelValue","label"]),he(h,{modelValue:n.formValues.is_extracurricular_event,"onUpdate:modelValue":t[10]||(t[10]=p=>n.formValues.is_extracurricular_event=p),name:"is_extracurricular_event",value:"false",label:e.$t("event.no")},null,8,["modelValue","label"])])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.is-this-an-activity-within-the-standard-school-curriculum"),name:"is_standard_school_curriculum",errors:n.errors},{default:Te(()=>[v("div",dN,[he(h,{modelValue:n.formValues.is_standard_school_curriculum,"onUpdate:modelValue":t[11]||(t[11]=p=>n.formValues.is_standard_school_curriculum=p),name:"is_standard_school_curriculum",value:"true",label:e.$t("event.yes")},null,8,["modelValue","label"]),he(h,{modelValue:n.formValues.is_standard_school_curriculum,"onUpdate:modelValue":t[12]||(t[12]=p=>n.formValues.is_standard_school_curriculum=p),name:"is_standard_school_curriculum",value:"false",label:e.$t("event.no")},null,8,["modelValue","label"])])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.code-week-4-all-code-optional"),name:"codeweek_for_all_participation_code",errors:n.errors},{tooltip:Te(()=>[ht(re(e.$t("event.codeweek_for_all_participation_code.explanation"))+" ",1),v("a",fN,re(e.$t("event.codeweek_for_all_participation_code.link")),1),t[16]||(t[16]=ht(". "))]),default:Te(()=>[he(c,{modelValue:n.formValues.codeweek_for_all_participation_code,"onUpdate:modelValue":t[13]||(t[13]=p=>n.formValues.codeweek_for_all_participation_code=p),name:"codeweek_for_all_participation_code"},null,8,["modelValue"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.leading-teachers-optional"),name:"leading_teacher_tag",errors:n.errors},{default:Te(()=>[he(o,{modelValue:n.formValues.leading_teacher_tag,"onUpdate:modelValue":t[14]||(t[14]=p=>n.formValues.leading_teacher_tag=p),name:"leading_teacher_tag",options:r.leadingTeacherOptions},null,8,["modelValue","options"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.image-optional"),name:"picture",errors:n.errors},{default:Te(()=>[he(f,{name:"picture",picture:n.formValues.pictureUrl,image:n.formValues.picture,onOnChange:r.onPictureChange},null,8,["picture","image","onOnChange"])]),_:1},8,["label","errors"])])}const pN=yt(rN,[["render",hN]]),mN={props:{errors:Object,formValues:Object,languages:Object,countries:Array},components:{FieldWrapper:od,SelectField:Fo,InputField:ud,RadioField:Wp,ImageField:B1},setup(e,{emit:t}){const{organizerTypeOptions:n}=Hi(),r=pe(()=>Object.entries(e.languages).map(([s,a])=>({id:s,name:a})));return{organizerTypeOptions:n,languageOptions:r}}},gN={class:"flex flex-col gap-4 w-full"},vN={class:"flex items-center gap-8 min-h-[48px] h-full"},yN={class:"flex gap-2.5 mt-4 w-full"},_N={class:"mt-1 text-xs text-slate-400"};function bN(e,t,n,r,s,a){const o=at("InputField"),u=at("FieldWrapper"),c=at("SelectField"),h=at("RadioField");return S(),P("div",gN,[he(u,{horizontalBreakpoint:"md",label:`${e.$t("event.organizer.label")}*`,name:"organizer",errors:n.errors},{default:Te(()=>[he(o,{modelValue:n.formValues.organizer,"onUpdate:modelValue":t[0]||(t[0]=f=>n.formValues.organizer=f),required:"",name:"organizer",placeholder:e.$t("event.organizer.placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:`${e.$t("event.organizertype.label")}*`,name:"organizer_type",errors:n.errors},{default:Te(()=>[he(c,{placeholder:e.$t("event.select-option"),modelValue:n.formValues.organizer_type,"onUpdate:modelValue":t[1]||(t[1]=f=>n.formValues.organizer_type=f),required:"",name:"organizer_type",options:r.organizerTypeOptions},null,8,["placeholder","modelValue","options"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:`${e.$t("resources.Languages")} (optional)`,name:"language",errors:n.errors},{default:Te(()=>[he(c,{placeholder:e.$t("event.select-option"),modelValue:n.formValues.language,"onUpdate:modelValue":t[2]||(t[2]=f=>n.formValues.language=f),name:"language",searchable:"",multiple:"",options:r.languageOptions},null,8,["placeholder","modelValue","options"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:`${e.$t("event.country")}*`,name:"country_iso",errors:n.errors},{default:Te(()=>[he(c,{placeholder:e.$t("event.select-option"),modelValue:n.formValues.country_iso,"onUpdate:modelValue":t[3]||(t[3]=f=>n.formValues.country_iso=f),"id-name":"iso",searchable:"",required:"",name:"country_iso",options:n.countries},null,8,["placeholder","modelValue","options"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.are-you-using-any-code-week-resources-in-this-activity"),name:"is_use_resource",errors:n.errors},{default:Te(()=>[v("div",vN,[he(h,{modelValue:n.formValues.is_use_resource,"onUpdate:modelValue":t[4]||(t[4]=f=>n.formValues.is_use_resource=f),name:"is_use_resource",value:"true",label:e.$t("event.yes")},null,8,["modelValue","label"]),he(h,{modelValue:n.formValues.is_use_resource,"onUpdate:modelValue":t[5]||(t[5]=f=>n.formValues.is_use_resource=f),name:"is_use_resource",value:"false",label:e.$t("event.no")},null,8,["modelValue","label"])])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:`${e.$t("event.website.label")} ${["open-online","invite-online"].includes(n.formValues.activity_type)?"*":"(optional)"}`,name:"event_url",errors:n.errors},{default:Te(()=>[he(o,{modelValue:n.formValues.event_url,"onUpdate:modelValue":t[6]||(t[6]=f=>n.formValues.event_url=f),name:"event_url",placeholder:e.$t("event.website.placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:`${e.$t("event.public.label")} (optional)`,name:"contact_person",errors:n.errors},{default:Te(()=>[he(o,{modelValue:n.formValues.contact_person,"onUpdate:modelValue":t[7]||(t[7]=f=>n.formValues.contact_person=f),type:"email",name:"contact_person",placeholder:e.$t("event.public.placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:`${e.$t("event.contact.label")}*`,name:"user_email",errors:n.errors},{end:Te(()=>[v("div",yN,[t[9]||(t[9]=v("img",{class:"flex-shrink-0 w-6 h-6",src:"/images/icon_info.svg"},null,-1)),v("div",_N,re(e.$t("event.contact.explanation")),1)])]),default:Te(()=>[he(o,{modelValue:n.formValues.user_email,"onUpdate:modelValue":t[8]||(t[8]=f=>n.formValues.user_email=f),required:"",type:"email",name:"user_email",placeholder:e.$t("event.contact.placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label","errors"])])}const wN=yt(mN,[["render",bN]]),xN={class:"flex flex-col gap-12 w-full"},kN={class:"flex flex-col gap-6"},SN={class:"text-dark-blue text-2xl md:text-[30px] leading-[44px] font-medium font-['Montserrat'] text-center"},TN={class:"flex flex-col gap-1"},CN={class:"flex gap-10 items-center px-4 py-2 text-[16px] md:text-xl text-slate-500 bg-white"},AN={class:"flex-shrink-0 w-32 md:w-60"},EN=["innerHTML"],ON={key:1},MN={class:"mb-2"},RN=["src"],DN={key:2,class:"flex-grow w-full"},PN={props:{formValues:Object,themes:Array,audiences:Array,leadingTeachers:Array,languages:Object,countries:Array},setup(e){const{activityFormatOptionsMap:t,activityTypeOptionsMap:n,recurringFrequentlyMap:r,durationOptionsMap:s,recurringTypeOptionsMap:a,ageOptionsMap:o,organizerTypeOptionsMap:u}=Hi();return{stepDataList:pe(()=>{var Oe,He,Ue;const{title:h,activity_format:f,activity_type:p,location:m,duration:y,start_date:_,end_date:b,is_recurring_event_local:E,recurring_event:H,recurring_type:V,theme:x,description:O,audience:B,participants_count:U,males_count:F,females_count:D,other_count:T,ages:$,is_extracurricular_event:se,is_standard_school_curriculum:ee,codeweek_for_all_participation_code:de,leading_teacher_tag:ne,pictureUrl:N,picture:G,organizer:k,organizer_type:J,language:_e,country_iso:Me,is_use_resource:Ne,event_url:j,contact_person:te,user_email:M}=e.formValues||{},ie=(f||[]).map(qe=>t.value[qe]),ge=n.value[p],z=s.value[y],Le=_?new Date(_).toISOString().slice(0,10):"",Xe=b?new Date(b).toISOString().slice(0,10):"",we=E==="true",et=a.value[V],W=(x||[]).map(qe=>{var Ge;return(Ge=e.themes.find(ct=>ct.id===qe))==null?void 0:Ge.name}).map(qe=>Pe(`event.theme.${qe}`)),C=[{label:Pe("event.title.label"),value:h},{label:Pe("event.specify-the-format-of-the-activity"),value:ie.join(", ")},{label:Pe("event.activitytype.label"),value:ge},{label:Pe("event.address.label"),value:m},{label:Pe("event.activity-duration"),value:z},{label:Pe("event.date"),value:`${Le} - ${Xe}`},{label:Pe("event.is-it-a-recurring-event"),value:Pe(we?"event.yes":"event.no")},{label:Pe("event.how-frequently"),value:we?r.value[H]:""},{label:Pe("event.what-type-of-recurring-activity"),value:et},{label:Pe("event.theme-title"),value:W.join(", ")},{label:Pe("event.activity-description"),htmlValue:O}],I=(B||[]).map(qe=>e.audiences.find(({id:Ge})=>Ge===qe)).filter(qe=>qe).map(qe=>qe.name),K=[U||0,[`${F||0} ${Pe("event.males")}`,`${D||0} ${Pe("event.females")}`,`${T||0} ${Pe("event.other-gender")}`].join(", ")].join(" - "),Q=($||[]).map(qe=>o.value[qe]),me=[{label:Pe("event.audience_title"),value:I==null?void 0:I.join(", ")},{label:Pe("event.number-of-participants"),value:K},{label:Pe("event.age"),value:Q==null?void 0:Q.join(", ")},{label:Pe("event.is-this-an-extracurricular-activity"),value:Pe(se==="true"?"event.yes":"event.no")},{label:Pe("event.is-this-an-activity-within-the-standard-school-curriculum"),value:Pe(ee==="true"?"event.yes":"event.no")},{label:Pe("event.code-week-4-all-code-optional"),value:de},{label:Pe("community.titles.2"),value:ne},{label:Pe("event.image"),imageUrl:N,imageName:(He=(Oe=G==null?void 0:G.split("/"))==null?void 0:Oe.reverse())==null?void 0:He[0]}],q=u.value[J],ce=_e==null?void 0:_e.map(qe=>{var Ge;return(Ge=e.languages)==null?void 0:Ge[qe]}).filter(Boolean),ye=(Ue=e.countries.find(({iso:qe})=>qe===Me))==null?void 0:Ue.name,ke=[{label:Pe("event.organizer.label"),value:k},{label:Pe("event.organizertype.label"),value:q},{label:Pe("resources.Languages"),value:ce==null?void 0:ce.join(", ")},{label:Pe("event.country"),value:ye},{label:Pe("event.are-you-using-any-code-week-resources-in-this-activity"),value:Pe(Ne==="true"?"event.yes":"event.no")},{label:Pe("event.website.label"),value:j},{label:Pe("event.public.label"),value:te},{label:Pe("event.contact.label"),value:M}],Ce=({value:qe,htmlValue:Ge,imageUrl:ct})=>!Bn.isNil(qe)&&!Bn.isEmpty(qe)||!Bn.isEmpty(Ge)||!Bn.isEmpty(ct);return[{title:Pe("event.confirmation_step.activity_overview"),list:C.filter(Ce)},{title:Pe("event.confirmation_step.who_is_the_activity_for"),list:me.filter(Ce)},{title:Pe("event.confirmation_step.organiser"),list:ke.filter(Ce)}]})}}},LN=Object.assign(PN,{__name:"AddConfirmation",setup(e){return(t,n)=>(S(),P("div",xN,[(S(!0),P(Ve,null,Qe(Z(stepDataList),({title:r,list:s})=>(S(),P("div",kN,[v("h2",SN,re(r),1),v("div",TN,[(S(!0),P(Ve,null,Qe(s,({label:a,value:o,htmlValue:u,imageUrl:c,imageName:h})=>(S(),P("div",CN,[v("div",AN,re(a),1),u?(S(),P("div",{key:0,innerHTML:u,class:"flex-grow w-full space-y-2 [&_p]:py-0"},null,8,EN)):ae("",!0),c?(S(),P("div",ON,[v("div",MN,re(Z(Pe)("event.image-attached")),1),v("img",{class:"mb-2 max-h-80",src:c},null,8,RN),v("div",null,re(h),1)])):ae("",!0),o?(S(),P("div",DN,re(o||""),1)):ae("",!0)]))),256))])]))),256))]))}}),IN={props:{modelValue:String,name:String,label:String,value:String},emits:["update:modelValue"],setup(e,{emit:t}){return{onChange:r=>{t("update:modelValue",r.target.checked)}}}},NN={class:"flex items-center gap-2 cursor-pointer"},VN=["id","name","checked"],FN=["for"],$N={key:0,class:"h-5 w-5 text-slate-600",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},BN={class:"cursor-pointer text-xl text-slate-500"};function HN(e,t,n,r,s,a){return S(),P("label",NN,[v("input",{class:"peer hidden",type:"checkbox",id:n.name,name:n.name,checked:n.modelValue,onChange:t[0]||(t[0]=(...o)=>r.onChange&&r.onChange(...o))},null,40,VN),v("div",{class:"flex-shrink-0 h-8 w-8 border-2 bg-white flex items-center justify-center cursor-pointer border-dark-blue-200 rounded-lg",for:e.id},[n.modelValue?(S(),P("svg",$N,t[1]||(t[1]=[v("path",{d:"M5 13l4 4L19 7"},null,-1)]))):ae("",!0)],8,FN),v("span",BN,[ht(re(n.label)+" ",1),Ie(e.$slots,"default")])])}const UN=yt(IN,[["render",HN]]),jN={props:{token:{type:String,default:""},event:{type:Object,default:()=>({})},selectedValues:{type:Object,default:()=>({})},locale:{type:String,default:""},user:{type:Object,default:()=>({})},themes:{type:Array,default:()=>[]},audiences:{type:Array,default:()=>[]},leadingTeachers:{type:Array,default:()=>[]},languages:{type:Object,default:()=>({})},countries:{type:Array,default:()=>[]},location:{type:Object,default:()=>({})},privacyLink:{type:String,default:""}},components:{FormStep1:$I,FormStep2:pN,FormStep3:wN,AddConfirmation:LN,CheckboxField:UN},setup(e,{emit:t}){var x,O,B,U,F;console.log("event",e.event);const{stepTitles:n}=Hi(),r=fe(null),s=fe(null),a=fe(1),o=fe({}),u=fe(!1),c=fe({activity_type:"open-in-person",location:((x=e.location)==null?void 0:x.location)||"",geoposition:((B=(O=e.location)==null?void 0:O.geoposition)==null?void 0:B.split(","))||[],is_recurring_event_local:"false",recurring_event:"daily",is_extracurricular_event:"false",is_standard_school_curriculum:"false",organizer:((U=e.location)==null?void 0:U.name)||"",organizer_type:((F=e==null?void 0:e.location)==null?void 0:F.organizer_type)||"",language:e.locale?[e.locale]:[],country_iso:e.location.country_iso||"",is_use_resource:"false",privacy:!1}),h=fe(Bn.clone(c.value)),f=pe(()=>{const D=Bn.cloneDeep(h.value),T=["title","activity_type","duration","is_recurring_event_local","start_date","end_date","theme","description"];return["open-online","invite-online"].includes(D.activity_type)||T.push("location"),T.every($=>!Bn.isEmpty(D[$]))}),p=pe(()=>{const D=Bn.cloneDeep(h.value),T=["audience","ages","is_extracurricular_event"];return!!D.participants_count&&T.every($=>!Bn.isEmpty(D[$]))}),m=pe(()=>{const D=Bn.cloneDeep(h.value),T=["organizer","organizer_type","country_iso","user_email"];return["open-online","invite-online"].includes(D.activity_type)&&T.push("event_url"),D.privacy?T.every($=>!Bn.isEmpty(D[$])):!1}),y=pe(()=>a.value===1&&!f.value||a.value===2&&!p.value||a.value===3&&!m.value),_=D=>{a.value=Math.max(Math.min(D,4),1)},b=()=>{var $,se,ee,de;const D=(($=e==null?void 0:e.event)==null?void 0:$.id)||((se=r.value)==null?void 0:se.id),T=((ee=e==null?void 0:e.event)==null?void 0:ee.slug)||((de=r.value)==null?void 0:de.slug);window.location.href=`/view/${D}/${T}`},E=()=>window.location.href="/events",H=()=>window.location.reload(),V=async()=>{var $,se,ee,de,ne,N,G;o.value={};const D=h.value,T={_token:e.token,_method:Bn.isNil(e.event.id)?void 0:"PATCH",title:D.title,activity_format:($=D.activity_format)==null?void 0:$.join(","),activity_type:D.activity_type,location:D.location,geoposition:((se=D.geoposition)==null?void 0:se.join(","))||[],duration:D.duration,start_date:D.start_date,end_date:D.end_date,theme:(ee=D.theme)==null?void 0:ee.join(","),description:D.description,audience:(de=D.audience)==null?void 0:de.join(","),participants_count:D.participants_count,males_count:D.males_count,females_count:D.females_count,other_count:D.other_count,ages:(ne=D.ages)==null?void 0:ne.join(","),is_extracurricular_event:D.is_extracurricular_event==="true",is_standard_school_curriculum:D.is_standard_school_curriculum==="true",codeweek_for_all_participation_code:D.codeweek_for_all_participation_code,leading_teacher_tag:D.leading_teacher_tag,picture:D.picture,organizer:D.organizer,organizer_type:D.organizer_type,language:D.language,country_iso:D.country_iso,is_use_resource:D.is_use_resource==="true",event_url:D.event_url,contact_person:D.contact_person,user_email:D.user_email,privacy:D.privacy===!0?"on":void 0};D.is_recurring_event_local==="true"&&(T.recurring_event=D.recurring_event,T.recurring_type=D.recurring_type);try{if(!Bn.isNil(e.event.id))await Tt.post(`/events/${e.event.id}`,T);else{const{data:k}=await Tt.post("/events",T);r.value=k.event}_(4)}catch(k){o.value=(G=(N=k.response)==null?void 0:N.data)==null?void 0:G.errors,a.value=1}};return Wt(()=>e.event,()=>{var se,ee,de,ne;if(!e.event.id)return;const D=N=>{var G,k;return((k=(G=N==null?void 0:N.split(","))==null?void 0:G.filter(J=>!!J))==null?void 0:k.map(J=>Number(J)))||[]},T=e.event,$=T.geoposition||((se=e.location)==null?void 0:se.geoposition);h.value={...h.value,title:T.title,activity_format:T.activity_format,activity_type:T.activity_type||"open-in-person",location:T.location||((ee=e.location)==null?void 0:ee.location),geoposition:$==null?void 0:$.split(","),duration:T.duration,start_date:T.start_date,end_date:T.end_date,recurring_event:T.recurring_event||"daily",recurring_type:T.recurring_type,theme:D(e.selectedValues.themes),description:T.description,audience:D(e.selectedValues.audiences),participants_count:T.participants_count,males_count:T.males_count,females_count:T.females_count,other_count:T.other_count,ages:T.ages,is_extracurricular_event:String(!!T.is_extracurricular_event),is_standard_school_curriculum:String(!!T.is_standard_school_curriculum),codeweek_for_all_participation_code:T.codeweek_for_all_participation_code,leading_teacher_tag:T.leading_teacher_tag,picture:T.picture,pictureUrl:e.selectedValues.picture,organizer:T.organizer||((de=e.location)==null?void 0:de.name),organizer_type:T.organizer_type||((ne=e==null?void 0:e.location)==null?void 0:ne.organizer_type),language:T.languages||[e.locale],country_iso:T.country_iso||e.location.country_iso,is_use_resource:String(!!T.is_use_resource),event_url:T.event_url,contact_person:T.contact_person,user_email:T.user_email},T.recurring_event&&(h.value.is_recurring_event_local="true")},{immediate:!0}),Wt(()=>a.value,()=>{if(a.value===4){const D=document.getElementById("add-event-hero-section");D&&(D.style.display="none"),window.scrollTo({top:0})}else if(s.value){const D=s.value.getBoundingClientRect().top;window.scrollTo({top:D+window.pageYOffset-40})}}),Ft(()=>{const D=new IntersectionObserver(([$])=>{u.value=$.isIntersecting}),T=document.getElementById("page-footer");T&&D.observe(T)}),{containerRef:s,step:a,stepTitles:n,errors:o,formValues:h,handleGoToActivity:b,handleGoMapPage:E,handleReloadPage:H,handleMoveStep:_,handleSubmit:V,disableNextbutton:y,validStep1:f,validStep2:p,validStep3:m,pageFooterVisible:u}}},qN={key:0,class:"flex relative justify-center py-10 codeweek-container-lg"},WN={class:"flex gap-12"},YN=["onClick"],zN={class:"flex-1"},KN={class:"text-slate-500 font-normal text-base leading-[22px] p-0 text-center"},GN={key:0,class:"absolute top-6 left-[calc(100%+1.5rem)] -translate-x-1/2 w-[calc(100%-1rem)] md:w-[calc(100%-0.75rem)] h-[2px] bg-[#CCF0F9]"},JN={key:1,class:"flex relative justify-center px-4 py-10 codeweek-container-lg md:px-10 md:py-20"},ZN={class:"flex flex-col justify-center items-center text-center gap-4 max-w-[660px]"},XN={class:"text-dark-blue text-[22px] md:text-4xl font-semibold font-[Montserrat]"},QN={key:0,class:"flex flex-col gap-4 text-[16px] text-center"},e4={ref:"containerRef",class:"relative w-full"},t4={class:"relative pt-20 pb-16 codeweek-container-lg md:pt-32 md:pb-20"},n4={class:"flex justify-center"},r4={class:"flex flex-col max-w-[852px] w-full"},s4={key:0,class:"text-dark-blue text-2xl md:text-4xl leading-[44px] font-medium font-['Montserrat'] mb-10 text-center"},i4=["href"],a4={class:"flex flex-wrap gap-y-2 gap-x-4 justify-between mt-10 min-h-12"},l4={key:0},o4={key:1},u4=["disabled"],c4={key:0},d4={key:1},f4={key:1},h4={key:2};function p4(e,t,n,r,s,a){var p;const o=at("FormStep1"),u=at("FormStep2"),c=at("FormStep3"),h=at("CheckboxField"),f=at("AddConfirmation");return S(),P(Ve,null,[r.step<4?(S(),P("div",qN,[v("div",WN,[(S(!0),P(Ve,null,Qe(r.stepTitles,(m,y)=>(S(),P("div",{class:Be(["flex relative flex-col flex-1 gap-2 items-center md:w-52",[y===0&&"cursor-pointer",y+1===2&&r.validStep1&&"cursor-pointer",y+1===3&&r.validStep2&&"cursor-pointer"]]),onClick:()=>{y+1===2&&!r.validStep1||y+1===3&&!r.validStep2||r.handleMoveStep(y+1)}},[v("div",{class:Be(["w-12 h-12 rounded-full flex justify-center items-center text-['#20262C'] font-semibold text-2xl",[r.step===y+1?"bg-light-blue-300":"bg-light-blue-100"]])},re(y+1),3),v("div",zN,[v("p",KN,re(e.$t(`event.${m}`)),1)]),yr.formValues.privacy=m),name:"privacy"},{default:Te(()=>[v("div",null,[v("span",null,re(e.$t("event.privacy")),1),v("a",{class:"ml-1 !inline cookweek-link",href:n.privacyLink,target:"_blank"},re(e.$t("event.privacy-policy-terms")),9,i4)])]),_:1},8,["modelValue"])],2),v("div",{class:Be([r.step!==4&&"hidden"])},[he(f,{formValues:r.formValues,themes:n.themes,location:n.location,audiences:n.audiences,leadingTeachers:n.leadingTeachers,languages:n.languages,countries:n.countries},null,8,["formValues","themes","location","audiences","leadingTeachers","languages","countries"])],2),v("div",a4,[r.step>1?(S(),P("button",{key:0,class:"flex justify-center items-center gap-2 text-[#1C4DA1] border-solid border-2 border-[#1C4DA1] rounded-full py-2.5 px-6 font-semibold text-lg transition-all duration-300 hover:bg-[#E8EDF6] max-sm:w-full sm:min-w-[224px]",type:"button",onClick:t[1]||(t[1]=()=>{r.step===4?r.handleGoToActivity():r.handleMoveStep(r.step-1)})},[r.step===4?(S(),P("span",l4,re(e.$t("event.view-activity")),1)):(S(),P("span",o4,re(e.$t("event.previous-step")),1))])):ae("",!0),t[4]||(t[4]=v("div",{class:"hidden md:block"},null,-1)),v("div",{id:"footer-scroll-activity",class:Be(["flex justify-center max-sm:w-full sm:min-w-[224px]",[r.step<4&&!r.pageFooterVisible?"md:!translate-y-0 max-md:fixed max-md:bottom-0 max-md:left-0 max-md:border-t-2 max-md:border-primary max-md:py-4 max-md:px-[44px] max-md:w-full max-md:bg-white max-md:z-[99]":"!translate-y-0"]])},[v("button",{class:Be(["text-nowrap flex justify-center items-center duration-300 rounded-full py-2.5 px-6 font-semibold text-lg max-sm:w-full sm:min-w-[224px]",[r.disableNextbutton?"cursor-not-allowed bg-gray-200 text-gray-400":"bg-primary hover:bg-hover-orange text-[#20262C]"]]),type:"button",disabled:r.disableNextbutton,onClick:t[2]||(t[2]=()=>{var m;r.step===4?(m=n.event)!=null&&m.id?r.handleGoMapPage():r.handleReloadPage():r.step===3&&r.validStep3?r.handleSubmit():r.step===2&&r.validStep2?r.handleMoveStep(3):r.step===1&&r.validStep1&&r.handleMoveStep(2)})},[r.step===4?(S(),P(Ve,{key:0},[(p=n.event)!=null&&p.id?(S(),P("span",c4,re(e.$t("event.back-to-map-page")),1)):(S(),P("span",d4,re(e.$t("event.add-another-activity")),1))],64)):r.step===3?(S(),P("span",f4,re(e.$t("event.submit")),1)):(S(),P("span",h4,re(e.$t("event.next-step")),1))],10,u4)],2)])])])])],512)],64)}const m4=yt(jN,[["render",p4]]),g4={props:{property:Object,type:String},data(){return{label:this.type?this.$t("resources.resources."+this.type+"."+this.property.name):this.property.name}}},v4={class:"bg-light-blue-100 py-1 px-4 text-sm font-semibold text-slate-500 rounded-full whitespace-nowrap"};function y4(e,t,n,r,s,a){return S(),P("span",v4,re(s.label),1)}const H1=yt(g4,[["render",y4]]),_4={components:{ResourcePill:H1},props:{resource:Object},data(){return{descriptionHeight:"auto",needShowMore:!0,showMore:!1}},methods:{computeDescriptionHeight(){const e=this.$refs.descriptionContainerRef,t=this.$refs.descriptionRef,n=e.clientHeight,r=Math.floor(n/22);t.style.height="auto",this.descriptionHeight="auto",this.needShowMore=t.offsetHeight>n,t.offsetHeight>n?(t.style.height=`${r*22}px`,this.descriptionHeight=`${r*22}px`):this.showMore=!1},onToggleShowMore(){const e=this.$refs.descriptionRef;this.showMore=!this.showMore,this.showMore?e.style.height="auto":e.style.height=this.descriptionHeight}},mounted:function(){this.computeDescriptionHeight()}},b4={class:"relative flex flex-col bg-white rounded-lg overflow-hidden"},w4={class:"flex-shrink-0"},x4=["src"],k4={class:"flex gap-2 flex-wrap mb-2"},S4={class:"text-dark-blue font-semibold font-['Montserrat'] leading-6"},T4={key:0,class:"text-slate-500 text-[16px] leading-[22px]"},C4={ref:"descriptionRef",class:"relative flex-grow text-slate-500 overflow-hidden",style:{height:"auto"}},A4={class:"flex-shrink-0"},E4=["href"];function O4(e,t,n,r,s,a){var u,c,h,f;const o=at("resource-pill");return S(),P("div",b4,[v("div",w4,[v("img",{src:n.resource.thumbnail},null,8,x4)]),v("div",{class:Be(["flex-grow flex flex-col gap-2 px-6 py-4 h-fit",{"max-h-[450px]":s.needShowMore&&!s.showMore}])},[v("div",k4,[(S(!0),P(Ve,null,Qe(n.resource.types,p=>(S(),it(o,{property:p,type:"types"},null,8,["property"]))),256))]),v("div",S4,re(n.resource.name),1),(c=(u=n.resource.languages)==null?void 0:u[0])!=null&&c.name?(S(),P("div",T4," Language: "+re(((f=(h=n.resource.languages)==null?void 0:h[0])==null?void 0:f.name)||""),1)):ae("",!0),v("div",{ref:"descriptionContainerRef",class:Be(["flex-grow text-[16px] leading-[22px] h-full",{"overflow-hidden":s.needShowMore&&!s.showMore}])},[v("div",C4,[ht(re(n.resource.description)+" ",1),s.needShowMore?(S(),P("div",{key:0,class:Be(["flex justify-end bottom-0 right-0 bg-white pl-0.5 text-dark-blue",{absolute:!s.showMore,"w-full":s.showMore}])},[v("button",{onClick:t[0]||(t[0]=(...p)=>a.onToggleShowMore&&a.onToggleShowMore(...p))},re(s.showMore?"Show less":"... Show more"),1)],2)):ae("",!0)],512)],2),v("div",A4,[t[2]||(t[2]=v("div",{class:"h-[56px]"},null,-1)),v("a",{class:"absolute left-6 right-6 bottom-4 flex justify-center items-center gap-2 text-[#1C4DA1] border-solid border-2 border-[#1C4DA1] rounded-full py-3 px-8 font-semibold text-lg transition-all duration-300 hover:bg-[#E8EDF6] group",href:n.resource.source,target:"_blank"},[v("span",null,re(e.$t("myevents.view_lesson")),1),t[1]||(t[1]=v("div",{class:"flex gap-2 w-4 overflow-hidden"},[v("img",{src:"/images/arrow-right-icon.svg",class:"min-w-4 duration-500 transform -translate-x-6 group-hover:translate-x-0"}),v("img",{src:"/images/arrow-right-icon.svg",class:"min-w-4 duration-500 transform -translate-x-6 group-hover:translate-x-0"})],-1))],8,E4)])],2)])}const U1=yt(_4,[["render",O4]]),M4={props:["pagination","offset"],methods:{isCurrentPage(e){return this.pagination.current_page===e},changePage(e){e<1||e>this.pagination.last_page||(this.pagination.current_page=e,this.$emit("paginate",e))}},computed:{pages(){let e=[],t=this.pagination.current_page-Math.floor(this.offset/2);t<1&&(t=1);let n=t+this.offset-1;for(n>this.pagination.last_page&&(n=this.pagination.last_page);t<=n;)e.push(t),t++;return e}}},R4={role:"navigation","aria-label":"pagination"},D4={class:"flex flex-wrap items-center justify-center gap-2 py-12 m-0 font-['Blinker']"},P4=["disabled"],L4={class:"flex items-center gap-1 whitespace-nowrap"},I4=["onClick"],N4={key:1,class:"flex justify-center items-center w-12 h-12 text-xl rounded font-normal text-[#333E48] duration-300"},V4=["disabled"];function F4(e,t,n,r,s,a){return S(),P("nav",R4,[v("ul",D4,[v("li",null,[v("a",{class:"block p-4 duration-300 rounded-full cursor-pointer bg-yellow hover:bg-primary",onClick:t[0]||(t[0]=Et(o=>a.changePage(n.pagination.current_page-1),["prevent"])),disabled:n.pagination.current_page<=1},t[2]||(t[2]=[v("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("path",{d:"M25.8335 16H7.16683",stroke:"black","stroke-width":"2.66667","stroke-linecap":"round","stroke-linejoin":"round"}),v("path",{d:"M16.5 6.66663L7.16667 16L16.5 25.3333",stroke:"black","stroke-width":"2.66667","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),8,P4)]),(S(!0),P(Ve,null,Qe(a.pages,o=>(S(),P("li",L4,[n.pagination.current_page!=o?(S(),P("a",{key:0,class:"flex justify-center items-center w-12 h-12 text-xl hover:bg-[#1C4DA1]/10 rounded font-bold text-[#1C4DA1] underline duration-300 cursor-pointer",onClick:Et(u=>a.changePage(o),["prevent"])},re(o),9,I4)):(S(),P("a",N4,re(o),1))]))),256)),v("li",null,[v("a",{class:"block p-4 duration-300 rounded-full cursor-pointer bg-yellow hover:bg-primary",onClick:t[1]||(t[1]=Et(o=>a.changePage(n.pagination.current_page+1),["prevent"])),disabled:n.pagination.current_page>=n.pagination.last_page},t[3]||(t[3]=[v("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("path",{d:"M7.16699 16H25.8337",stroke:"black","stroke-width":"2.66667","stroke-linecap":"round","stroke-linejoin":"round"}),v("path",{d:"M16.5 6.66663L25.8333 16L16.5 25.3333",stroke:"black","stroke-width":"2.66667","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),8,V4)])])])}const dd=yt(M4,[["render",F4]]);var $4={exports:{}};/*! + * clipboard.js v2.0.11 + * https://clipboardjs.com/ + * + * Licensed MIT © Zeno Rocha + */(function(e,t){(function(r,s){e.exports=s()})(F1,function(){return function(){var n={686:function(a,o,u){u.d(o,{default:function(){return Ne}});var c=u(279),h=u.n(c),f=u(370),p=u.n(f),m=u(817),y=u.n(m);function _(j){try{return document.execCommand(j)}catch{return!1}}var b=function(te){var M=y()(te);return _("cut"),M},E=b;function H(j){var te=document.documentElement.getAttribute("dir")==="rtl",M=document.createElement("textarea");M.style.fontSize="12pt",M.style.border="0",M.style.padding="0",M.style.margin="0",M.style.position="absolute",M.style[te?"right":"left"]="-9999px";var ie=window.pageYOffset||document.documentElement.scrollTop;return M.style.top="".concat(ie,"px"),M.setAttribute("readonly",""),M.value=j,M}var V=function(te,M){var ie=H(te);M.container.appendChild(ie);var ge=y()(ie);return _("copy"),ie.remove(),ge},x=function(te){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},ie="";return typeof te=="string"?ie=V(te,M):te instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(te==null?void 0:te.type)?ie=V(te.value,M):(ie=y()(te),_("copy")),ie},O=x;function B(j){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?B=function(M){return typeof M}:B=function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},B(j)}var U=function(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=te.action,ie=M===void 0?"copy":M,ge=te.container,z=te.target,Le=te.text;if(ie!=="copy"&&ie!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(z!==void 0)if(z&&B(z)==="object"&&z.nodeType===1){if(ie==="copy"&&z.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(ie==="cut"&&(z.hasAttribute("readonly")||z.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Le)return O(Le,{container:ge});if(z)return ie==="cut"?E(z):O(z,{container:ge})},F=U;function D(j){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?D=function(M){return typeof M}:D=function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},D(j)}function T(j,te){if(!(j instanceof te))throw new TypeError("Cannot call a class as a function")}function $(j,te){for(var M=0;M"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function J(j){return J=Object.setPrototypeOf?Object.getPrototypeOf:function(M){return M.__proto__||Object.getPrototypeOf(M)},J(j)}function _e(j,te){var M="data-clipboard-".concat(j);if(te.hasAttribute(M))return te.getAttribute(M)}var Me=function(j){ee(M,j);var te=ne(M);function M(ie,ge){var z;return T(this,M),z=te.call(this),z.resolveOptions(ge),z.listenClick(ie),z}return se(M,[{key:"resolveOptions",value:function(){var ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof ge.action=="function"?ge.action:this.defaultAction,this.target=typeof ge.target=="function"?ge.target:this.defaultTarget,this.text=typeof ge.text=="function"?ge.text:this.defaultText,this.container=D(ge.container)==="object"?ge.container:document.body}},{key:"listenClick",value:function(ge){var z=this;this.listener=p()(ge,"click",function(Le){return z.onClick(Le)})}},{key:"onClick",value:function(ge){var z=ge.delegateTarget||ge.currentTarget,Le=this.action(z)||"copy",Xe=F({action:Le,container:this.container,target:this.target(z),text:this.text(z)});this.emit(Xe?"success":"error",{action:Le,text:Xe,trigger:z,clearSelection:function(){z&&z.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(ge){return _e("action",ge)}},{key:"defaultTarget",value:function(ge){var z=_e("target",ge);if(z)return document.querySelector(z)}},{key:"defaultText",value:function(ge){return _e("text",ge)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(ge){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return O(ge,z)}},{key:"cut",value:function(ge){return E(ge)}},{key:"isSupported",value:function(){var ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],z=typeof ge=="string"?[ge]:ge,Le=!!document.queryCommandSupported;return z.forEach(function(Xe){Le=Le&&!!document.queryCommandSupported(Xe)}),Le}}]),M}(h()),Ne=Me},828:function(a){var o=9;if(typeof Element<"u"&&!Element.prototype.matches){var u=Element.prototype;u.matches=u.matchesSelector||u.mozMatchesSelector||u.msMatchesSelector||u.oMatchesSelector||u.webkitMatchesSelector}function c(h,f){for(;h&&h.nodeType!==o;){if(typeof h.matches=="function"&&h.matches(f))return h;h=h.parentNode}}a.exports=c},438:function(a,o,u){var c=u(828);function h(m,y,_,b,E){var H=p.apply(this,arguments);return m.addEventListener(_,H,E),{destroy:function(){m.removeEventListener(_,H,E)}}}function f(m,y,_,b,E){return typeof m.addEventListener=="function"?h.apply(null,arguments):typeof _=="function"?h.bind(null,document).apply(null,arguments):(typeof m=="string"&&(m=document.querySelectorAll(m)),Array.prototype.map.call(m,function(H){return h(H,y,_,b,E)}))}function p(m,y,_,b){return function(E){E.delegateTarget=c(E.target,y),E.delegateTarget&&b.call(m,E)}}a.exports=f},879:function(a,o){o.node=function(u){return u!==void 0&&u instanceof HTMLElement&&u.nodeType===1},o.nodeList=function(u){var c=Object.prototype.toString.call(u);return u!==void 0&&(c==="[object NodeList]"||c==="[object HTMLCollection]")&&"length"in u&&(u.length===0||o.node(u[0]))},o.string=function(u){return typeof u=="string"||u instanceof String},o.fn=function(u){var c=Object.prototype.toString.call(u);return c==="[object Function]"}},370:function(a,o,u){var c=u(879),h=u(438);function f(_,b,E){if(!_&&!b&&!E)throw new Error("Missing required arguments");if(!c.string(b))throw new TypeError("Second argument must be a String");if(!c.fn(E))throw new TypeError("Third argument must be a Function");if(c.node(_))return p(_,b,E);if(c.nodeList(_))return m(_,b,E);if(c.string(_))return y(_,b,E);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function p(_,b,E){return _.addEventListener(b,E),{destroy:function(){_.removeEventListener(b,E)}}}function m(_,b,E){return Array.prototype.forEach.call(_,function(H){H.addEventListener(b,E)}),{destroy:function(){Array.prototype.forEach.call(_,function(H){H.removeEventListener(b,E)})}}}function y(_,b,E){return h(document.body,_,b,E)}a.exports=f},817:function(a){function o(u){var c;if(u.nodeName==="SELECT")u.focus(),c=u.value;else if(u.nodeName==="INPUT"||u.nodeName==="TEXTAREA"){var h=u.hasAttribute("readonly");h||u.setAttribute("readonly",""),u.select(),u.setSelectionRange(0,u.value.length),h||u.removeAttribute("readonly"),c=u.value}else{u.hasAttribute("contenteditable")&&u.focus();var f=window.getSelection(),p=document.createRange();p.selectNodeContents(u),f.removeAllRanges(),f.addRange(p),c=f.toString()}return c}a.exports=o},279:function(a){function o(){}o.prototype={on:function(u,c,h){var f=this.e||(this.e={});return(f[u]||(f[u]=[])).push({fn:c,ctx:h}),this},once:function(u,c,h){var f=this;function p(){f.off(u,p),c.apply(h,arguments)}return p._=c,this.on(u,p,h)},emit:function(u){var c=[].slice.call(arguments,1),h=((this.e||(this.e={}))[u]||[]).slice(),f=0,p=h.length;for(f;fD.teach===1)),a=fe(e.prpLevels.filter(D=>D.learn===1)),o=fe(e.prpTypes),u=fe(e.prpProgrammingLanguages),c=fe(e.prpCategories),h=fe(e.prpLanguages),f=fe(e.prpSubjects),p=fe({}),m=Hr({current_page:1}),y=fe([]),_=pe(()=>e.levels.filter(D=>D.teach===1)),b=pe(()=>e.levels.filter(D=>D.learn===1)),E=pe(()=>[...o.value,...s.value,...a.value,...h.value,...u.value,...f.value,...c.value]),H=D=>{const T=$=>$.id!==D.id;o.value=o.value.filter(T),s.value=s.value.filter(T),a.value=a.value.filter(T),h.value=h.value.filter(T),u.value=u.value.filter(T),f.value=f.value.filter(T),c.value=c.value.filter(T),U()},V=()=>{o.value=[],s.value=[],a.value=[],h.value=[],u.value=[],f.value=[],c.value=[],U()},x=()=>{window.scrollTo(0,0)},O=Bn.debounce(()=>{U()},300),B=()=>{x(),U(!0)},U=(D=!1)=>{D||(m.current_page=1),y.value=[],Tt.post("/resources/search?page="+m.current_page,{query:n.value,searchInput:r.value,selectedLevels:[...s.value,...a.value],selectedTypes:o.value,selectedProgrammingLanguages:u.value,selectedCategories:c.value,selectedLanguages:h.value,selectedSubjects:f.value}).then(T=>{m.per_page=T.data.per_page,m.current_page=T.data.current_page,m.from=T.data.from,m.last_page=T.data.last_page,m.last_page_url=T.data.last_page_url,m.next_page_url=T.data.next_page_url,m.prev_page=T.data.prev_page,m.prev_page_url=T.data.prev_page,m.to=T.data.to,m.total=T.data.total,y.value=T.data.data}).catch(T=>{p.value=T.response.data})},F=(D,T)=>Pe(T+"."+D.name);return Ft(()=>{U()}),{query:n,searchInput:r,targetAudiences:_,levelsDifficulty:b,selectedTargetAudiences:s,selectedLevelsDifficulty:a,selectedTypes:o,selectedProgrammingLanguages:u,selectedCategories:c,selectedLanguages:h,selectedSubjects:f,errors:p,pagination:m,resources:y,debounceSearch:O,paginate:B,onSubmit:U,customLabel:F,showFilterModal:t,tags:E,removeSelectedItem:H,removeAllSelectedItems:V}}},H4={class:"codeweek-resourceform-component font-['Blinker']"},U4={class:"codeweek-container py-6"},j4={class:"flex md:hidden flex-shrink-0 justify-end w-full mb-6"},q4={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4 mb-12"},W4={class:"block text-[16px] text-slate-500 mb-2"},Y4=["placeholder"],z4={class:"block text-[16px] text-slate-500 mb-2"},K4={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},G4={class:"language-json"},J4={class:"block text-[16px] text-slate-500 mb-2"},Z4={class:"language-json"},X4={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},Q4={class:"block text-[16px] text-slate-500 mb-2"},eV={class:"language-json"},tV={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},nV={class:"block text-[16px] text-slate-500 mb-2"},rV={class:"language-json"},sV={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},iV={class:"block text-[16px] text-slate-500 mb-2"},aV={class:"language-json"},lV={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},oV={class:"block text-[16px] text-slate-500 mb-2"},uV={class:"language-json"},cV={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},dV={class:"block text-[16px] text-slate-500 mb-2"},fV={class:"language-json"},hV={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},pV={class:"sm:col-span-2 md:col-span-1 lg:col-span-full lg:grid grid-cols-12 mt-3"},mV={class:"w-full flex items-end justify-center lg:col-span-4 h-full"},gV={class:"text-base leading-7 font-semibold text-black normal-case"},vV={key:0,class:"flex md:justify-center"},yV={class:"max-md:w-full flex flex-wrap gap-2"},_V={class:"flex items-center gap-2"},bV=["onClick"],wV={class:"max-md:w-full max-md:mt-4 flex justify-center px-4"},xV={class:"relative pt-20 md:pt-48"},kV={class:"bg-yellow-50"},SV={class:"relative z-10 codeweek-container"},TV={class:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6 lg:gap-10"};function CV(e,t,n,r,s,a){const o=at("multiselect"),u=at("resource-card"),c=at("pagination");return S(),P("div",H4,[v("div",U4,[v("div",{class:Be(["max-md:fixed left-0 top-[125px] z-[100] flex-col items-center w-full max-md:p-6 max-md:h-[calc(100dvh-125px)] max-md:overflow-auto max-md:bg-white duration-300",[r.showFilterModal?"flex":"max-md:hidden"]])},[v("div",j4,[v("button",{id:"search-menu-trigger-hide",class:"block bg-[#FFD700] hover:bg-[#F95C22] rounded-full p-4 duration-300",onClick:t[0]||(t[0]=h=>r.showFilterModal=!1)},t[14]||(t[14]=[v("img",{class:"w-6 h-6",src:"/images/close_menu_icon.svg"},null,-1)]))]),v("div",q4,[v("div",null,[v("label",W4,re(e.$t("resources.search_by_title_description")),1),Dn(v("input",{class:"px-6 py-3 w-full text-[16px] rounded-full border-solid border-2 border-[#A4B8D9] text-[#333E48] font-semibold placeholder:font-normal",type:"text","onUpdate:modelValue":t[1]||(t[1]=h=>r.searchInput=h),onSearchChange:t[2]||(t[2]=(...h)=>r.debounceSearch&&r.debounceSearch(...h)),onKeyup:t[3]||(t[3]=$n((...h)=>r.onSubmit&&r.onSubmit(...h),["enter"])),placeholder:e.$t("resources.search_resources")},null,40,Y4),[[Ni,r.searchInput]])]),v("div",null,[v("label",z4,re(e.$t("resources.resource_type")),1),he(o,{modelValue:r.selectedTypes,"onUpdate:modelValue":t[4]||(t[4]=h=>r.selectedTypes=h),class:"multi-select",options:n.types,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:e.$t("resources.resource_type_placeholder"),label:"resources.resources.types","custom-label":r.customLabel,"track-by":"name","preselect-first":!1,onSelect:r.onSubmit,onRemove:r.onSubmit},{selection:Te(({values:h})=>[h.length>0?(S(),P("div",K4," Selected "+re(h.length)+" "+re(h.length>1?"types":"type"),1)):ae("",!0)]),default:Te(()=>[v("pre",G4,[v("code",null,re(r.selectedTypes),1)])]),_:1},8,["modelValue","options","placeholder","custom-label","onSelect","onRemove"])]),v("div",null,[v("label",J4,re(e.$t("resources.target_audience")),1),he(o,{modelValue:r.selectedTargetAudiences,"onUpdate:modelValue":t[5]||(t[5]=h=>r.selectedTargetAudiences=h),class:"multi-select",options:r.targetAudiences,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:e.$t("resources.target_audience_placeholder"),label:"resources.resources.levels","custom-label":r.customLabel,"track-by":"name","preselect-first":!1,onSelect:r.onSubmit,onRemove:r.onSubmit},{selection:Te(({values:h})=>[h.length>0?(S(),P("div",X4," Selected "+re(h.length)+" "+re(h.length>1?"targets":"target"),1)):ae("",!0)]),default:Te(()=>[v("pre",Z4,[v("code",null,re(r.selectedTargetAudiences),1)])]),_:1},8,["modelValue","options","placeholder","custom-label","onSelect","onRemove"])]),v("div",null,[v("label",Q4,re(e.$t("resources.level_difficulty")),1),he(o,{modelValue:r.selectedLevelsDifficulty,"onUpdate:modelValue":t[6]||(t[6]=h=>r.selectedLevelsDifficulty=h),class:"multi-select",options:r.levelsDifficulty,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:e.$t("resources.level_difficulty_placeholder"),label:"resources.resources.levels","custom-label":r.customLabel,"track-by":"name","preselect-first":!1,onSelect:r.onSubmit,onRemove:r.onSubmit},{selection:Te(({values:h})=>[h.length>0?(S(),P("div",tV," Selected "+re(h.length)+" "+re(h.length>1?"levels":"level"),1)):ae("",!0)]),default:Te(()=>[v("pre",eV,[v("code",null,re(r.selectedLevelsDifficulty),1)])]),_:1},8,["modelValue","options","placeholder","custom-label","onSelect","onRemove"])]),v("div",null,[v("label",nV,re(e.$t("resources.Languages")),1),he(o,{modelValue:r.selectedLanguages,"onUpdate:modelValue":t[7]||(t[7]=h=>r.selectedLanguages=h),class:"multi-select",options:n.languages,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:e.$t("resources.languages_placeholder"),label:"resources.resources.languages","custom-label":r.customLabel,"track-by":"name","preselect-first":!1,onSelect:r.onSubmit,onRemove:r.onSubmit},{selection:Te(({values:h})=>[h.length>0?(S(),P("div",sV," Selected "+re(h.length)+" "+re(h.length>1?"languages":"language"),1)):ae("",!0)]),default:Te(()=>[v("pre",rV,[v("code",null,re(r.selectedLanguages),1)])]),_:1},8,["modelValue","options","placeholder","custom-label","onSelect","onRemove"])]),v("div",null,[v("label",iV,re(e.$t("resources.programming_languages")),1),he(o,{modelValue:r.selectedProgrammingLanguages,"onUpdate:modelValue":t[8]||(t[8]=h=>r.selectedProgrammingLanguages=h),class:"multi-select",options:n.programmingLanguages,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:e.$t("resources.programming_languages_placeholder"),label:"resources.resources.programming_languages","custom-label":r.customLabel,"track-by":"name","preselect-first":!1,onSelect:r.onSubmit,onRemove:r.onSubmit},{selection:Te(({values:h})=>[h.length>0?(S(),P("div",lV," Selected "+re(h.length)+" "+re(h.length>1?"programming languages":"programming language"),1)):ae("",!0)]),default:Te(()=>[v("pre",aV,[v("code",null,re(r.selectedProgrammingLanguages),1)])]),_:1},8,["modelValue","options","placeholder","custom-label","onSelect","onRemove"])]),v("div",null,[v("label",oV,re(e.$t("resources.Subjects")),1),he(o,{modelValue:r.selectedSubjects,"onUpdate:modelValue":t[9]||(t[9]=h=>r.selectedSubjects=h),class:"multi-select",options:n.subjects,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:e.$t("resources.subjects_placeholder"),label:"resources.resources.subjects","custom-label":r.customLabel,"track-by":"name","preselect-first":!1,onSelect:r.onSubmit,onRemove:r.onSubmit},{selection:Te(({values:h})=>[h.length>0?(S(),P("div",cV," Selected "+re(h.length)+" "+re(h.length>1?"subjects":"subject"),1)):ae("",!0)]),default:Te(()=>[v("pre",uV,[v("code",null,re(r.selectedSubjects),1)])]),_:1},8,["modelValue","options","placeholder","custom-label","onSelect","onRemove"])]),v("div",null,[v("label",dV,re(e.$t("resources.categories")),1),he(o,{modelValue:r.selectedCategories,"onUpdate:modelValue":t[10]||(t[10]=h=>r.selectedCategories=h),class:"multi-select",options:n.categories,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:e.$t("resources.categories_placeholder"),label:"resources.resources.categories","custom-label":r.customLabel,"track-by":"name","preselect-first":!1,onSelect:r.onSubmit,onRemove:r.onSubmit},{selection:Te(({values:h})=>[h.length>0?(S(),P("div",hV," Selected "+re(h.length)+" "+re(h.length>1?"categories":"category"),1)):ae("",!0)]),default:Te(()=>[v("pre",fV,[t[15]||(t[15]=ht(" ")),v("code",null,re(r.selectedCategories),1),t[16]||(t[16]=ht(` + `))])]),_:1},8,["modelValue","options","placeholder","custom-label","onSelect","onRemove"])]),v("div",pV,[t[17]||(t[17]=v("div",{class:"hidden lg:block lg:col-span-4"},null,-1)),v("div",mV,[v("button",{class:"w-full bg-[#F95C22] rounded-full py-2.5 px-6 font-['Blinker'] hover:bg-hover-orange duration-300",onClick:t[11]||(t[11]=()=>{r.showFilterModal=!1,r.onSubmit()})},[v("span",gV,re(e.$t("resources.search")),1)])])])])],2),v("button",{class:"block md:hidden w-full bg-[#F95C22] rounded-full py-2.5 px-6 font-['Blinker'] hover:bg-hover-orange duration-300 mb-8",onClick:t[12]||(t[12]=h=>r.showFilterModal=!0)},t[18]||(t[18]=[v("span",{class:"flex gap-2 justify-center items-center text-base leading-7 font-semibold text-black normal-case"},[ht(" Filter and search "),v("img",{class:"w-5 h-5",src:"/images/filter.svg"})],-1)])),r.tags.length?(S(),P("div",vV,[v("div",yV,[(S(!0),P(Ve,null,Qe(r.tags,h=>(S(),P("div",{key:h.id,class:"bg-light-blue-100 pl-4 pr-3 py-1 rounded-full text-slate-500 text-[16px] font-semibold"},[v("div",_V,[v("span",null,re(h.name),1),v("button",{onClick:f=>r.removeSelectedItem(h)},t[19]||(t[19]=[v("img",{class:"w-4 h-4",src:"/images/close-icon.svg"},null,-1)]),8,bV)])]))),128)),v("div",wV,[v("button",{class:"text-dark-blue underline font-semibold text-[16px]",onClick:t[13]||(t[13]=(...h)=>r.removeAllSelectedItems&&r.removeAllSelectedItems(...h))}," Clear all filters ")])])])):ae("",!0)]),v("div",xV,[t[20]||(t[20]=v("div",{class:"absolute w-full h-[800px] bg-yellow-50 md:hidden top-0",style:{"clip-path":"ellipse(270% 90% at 38% 90%)"}},null,-1)),t[21]||(t[21]=v("div",{class:"absolute w-full h-[800px] bg-yellow-50 hidden md:block top-0",style:{"clip-path":"ellipse(88% 90% at 50% 90%)"}},null,-1)),v("div",kV,[v("div",SV,[v("div",TV,[(S(!0),P(Ve,null,Qe(r.resources,h=>(S(),it(u,{key:h.id,resource:h},null,8,["resource"]))),128))]),r.pagination.last_page>1?(S(),it(c,{key:0,pagination:r.pagination,offset:5,onPaginate:r.paginate},null,8,["pagination","onPaginate"])):ae("",!0)])])])])}const AV=yt(B4,[["render",CV]]);window.singleselect=void 0;const EV={components:{Multiselect:Ta},props:{name:String,options:Array,value:String,placeholder:String},data(){return{values:this.value,option:this.options}}},OV={class:"multiselect-wrapper"},MV=["name","value"];function RV(e,t,n,r,s,a){const o=at("multiselect");return S(),P("div",OV,[he(o,{modelValue:s.values,"onUpdate:modelValue":t[0]||(t[0]=u=>s.values=u),options:s.option,placeholder:n.placeholder},null,8,["modelValue","options","placeholder"]),v("input",{name:n.name,type:"hidden",value:s.values},null,8,MV)])}const DV=yt(EV,[["render",RV]]),PV={components:{Multiselect:Ta},props:{name:String,value:String,options:Array,closeOnSelect:Boolean,label:String,translated:String,multiple:Boolean,searchable:Boolean},data(){let e=[],t=[];if(this.value){const n=this.value.split(",");t=n,e=n.map(r=>this.options.find(s=>s.id==r)).filter(r=>r!==void 0)}return{values:e,innerValues:t}},methods:{select(e){this.innerValues.push(e.id)},remove(e){this.innerValues=this.innerValues.filter(t=>t!=e.id)},customLabel(e,t){return this.$t(`${t}.${e.name}`)}}},LV={class:"multiselect-wrapper"},IV=["name","value"];function NV(e,t,n,r,s,a){const o=at("multiselect",!0);return S(),P("div",LV,[he(o,{modelValue:s.values,"onUpdate:modelValue":t[0]||(t[0]=u=>s.values=u),options:n.options,multiple:!0,taggable:!0,"close-on-select":!1,"clear-on-select":!1,searchable:!1,"show-labels":!1,placeholder:"","preserve-search":!0,label:n.label,"track-by":"id","preselect-first":!1,"custom-label":a.customLabel,onSelect:a.select,onRemove:a.remove},null,8,["modelValue","options","label","custom-label","onSelect","onRemove"]),v("input",{name:n.name,type:"hidden",value:s.innerValues.toString()},null,8,IV)])}const VV=yt(PV,[["render",NV]]),FV={props:["code","countries","target"],data(){return{selected_country:this.code||""}},methods:{newCountry(){window.location.href="/"+this.target+"/"+this.selected_country}}},$V={class:"relative"},BV=["value"];function HV(e,t,n,r,s,a){return S(),P("div",$V,[Dn(v("select",{"onUpdate:modelValue":t[0]||(t[0]=o=>s.selected_country=o),id:"id_country",name:"country_iso",onChange:t[1]||(t[1]=o=>a.newCountry()),class:"border-2 border-solid border-dark-blue-200 w-full rounded-full h-12 px-4 appearance-none"},[t[2]||(t[2]=v("option",{value:""}," All countries",-1)),t[3]||(t[3]=v("option",{disabled:"",value:"---"},"---------------",-1)),(S(!0),P(Ve,null,Qe(n.countries,o=>(S(),P("option",{value:o.iso},re(o.name)+" ("+re(o.total)+") ",9,BV))),256))],544),[[kp,s.selected_country]]),t[4]||(t[4]=v("div",{class:"cursor-pointer absolute top-1/2 right-4 -translate-y-1/2"},[v("img",{src:"/images/select-arrow.svg"})],-1))])}const UV=yt(FV,[["render",HV]]),jV={components:{Multiselect:Ta},props:["event","refresh","ambassador","pendingCounter","nextPending"],name:"moderate-activity",data(){return{status:this.event.status,showModal:!1,showDeleteModal:!1,rejectionText:"",rejectionOption:null,rejectionOptions:[{title:this.$t("moderation.description.title"),text:this.$t("moderation.description.text")},{title:this.$t("moderation.missing-details.title"),text:this.$t("moderation.missing-details.text")},{title:this.$t("moderation.duplicate.title"),text:this.$t("moderation.duplicate.text")},{title:this.$t("moderation.not-related.title"),text:this.$t("moderation.not-related.text")}]}},computed:{displayRejectionOptions(){return this.rejectionOptions.map(e=>{switch(e.title){case"moderation.description.title":return{title:"Missing proper descriptions",text:"Please improve the description and describe in more detail what you will do and how your activity relates to coding and computational thinking. Thanks!"};case"moderation.missing-details.title":return{title:"Missing important details",text:"Provide more details on the activity objectives and goals and how it makes use of technology, coding and critical thinking. Thanks!"};case"moderation.duplicate.title":return{title:"Duplicate",text:"This seems to be a duplication of another activity taking place at the same time. If it is not please change the description and change the title so that it is clear that the activities are separate. Thanks!"};case"moderation.not-related.title":return{title:"Not programming related",text:"Provide more information on the activity objectives and goals and how it makes use of technology, coding and critical thinking. Thanks!"};default:return e}})}},methods:{reRender(){this.refresh?window.location.reload(!1):window.location.assign(this.nextPending)},approve(){Tt.post("/api/event/approve/"+this.event.id).then(()=>{this.status="APPROVED",this.reRender()})},deleteEvent(){Tt.post("/api/event/delete/"+this.event.id).then(e=>{this.status="DELETED",this.refresh?this.reRender():window.location.assign(e.data.redirectUrl)})},toggleModal(){this.showModal=!this.showModal},toggleDeleteModal(){this.showDeleteModal=!this.showDeleteModal},reject(){Tt.post("/api/event/reject/"+this.event.id,{rejectionText:this.rejectionText}).then(()=>{this.toggleModal(),this.status="REJECTED",this.reRender()})},prefillRejectionText(){this.rejectionText=this.rejectionOption.text}}},qV={class:"moderate-event"},WV={key:0,class:"px-5 flex items-center w-full gap-1"},YV={class:"flex justify-end flex-1 items-center gap-1"},zV={key:1,class:"h-8 w-full grid grid-cols-3 gap-4 items-center"},KV={class:"flex-none"},GV={href:"/pending"},JV={class:"flex justify-center"},ZV={key:0},XV={class:"actions flex justify-items-end justify-end gap-2"},QV={key:0,class:"modal-overlay"},eF={class:"modal-container"},tF={class:"modal-header"},nF={class:"modal-body"},rF={class:"modal-footer"},sF={key:0,class:"modal-overlay"},iF={class:"modal-container"},aF={class:"modal-header"},lF={class:"modal-footer"};function oF(e,t,n,r,s,a){const o=at("multiselect");return S(),P("div",qV,[n.refresh?(S(),P("div",WV,[t[14]||(t[14]=v("p",{class:"text-default text-slate-500 flex items-center font-semibold p-0"},"Moderation:",-1)),v("div",YV,[v("button",{onClick:t[0]||(t[0]=(...u)=>a.approve&&a.approve(...u)),class:"font-normal w-fit px-2.5 py-1 bg-dark-blue text-white rounded-full flex items-center"},"Approve"),v("button",{onClick:t[1]||(t[1]=(...u)=>a.toggleModal&&a.toggleModal(...u)),class:"font-normal w-fit px-2.5 py-1 bg-primary text-white rounded-full flex items-center"},"Reject"),v("button",{onClick:t[2]||(t[2]=(...u)=>a.toggleDeleteModal&&a.toggleDeleteModal(...u)),class:"font-normal w-fit px-2.5 py-1 bg-dark-orange text-white rounded-full flex items-center"},"Delete")])])):ae("",!0),n.refresh?ae("",!0):(S(),P("div",zV,[v("div",KV,[t[15]||(t[15]=ht("Pending Activities: ")),v("a",GV,re(n.pendingCounter),1)]),v("div",JV,[v("div",null,[ht(re(e.$t("event.current_status"))+": ",1),v("strong",null,re(s.status),1),t[16]||(t[16]=ht()),n.event.LatestModeration?(S(),P("span",ZV,"("+re(n.event.LatestModeration.message)+")",1)):ae("",!0)])]),v("div",XV,[v("button",{onClick:t[3]||(t[3]=(...u)=>a.approve&&a.approve(...u)),class:"codeweek-action-button green"},"Approve"),v("button",{onClick:t[4]||(t[4]=(...u)=>a.toggleModal&&a.toggleModal(...u)),class:"codeweek-action-button"},"Reject"),v("button",{onClick:t[5]||(t[5]=(...u)=>a.toggleDeleteModal&&a.toggleDeleteModal(...u)),class:"codeweek-action-button red"},"Delete")])])),he(vs,{name:"modal"},{default:Te(()=>[s.showModal?(S(),P("div",QV,[v("div",eF,[v("div",tF,[t[17]||(t[17]=v("h3",{class:"text-2xl font-semibold"},"Please provide a reason for rejection",-1)),v("button",{onClick:t[6]||(t[6]=(...u)=>a.toggleModal&&a.toggleModal(...u)),class:"close-button"},"×")]),v("div",nF,[t[18]||(t[18]=v("p",{class:"text-gray-800 text-lg leading-relaxed"},"This will help the activity organizer to improve their submission.",-1)),he(o,{modelValue:s.rejectionOption,"onUpdate:modelValue":t[7]||(t[7]=u=>s.rejectionOption=u),options:a.displayRejectionOptions,"track-by":"title",label:"title","close-on-select":!0,"preserve-search":!1,placeholder:"Select a rejection reason",searchable:!1,"allow-empty":!1,onInput:a.prefillRejectionText},{singleLabel:Te(({option:u})=>[ht(re(u.title),1)]),_:1},8,["modelValue","options","onInput"]),Dn(v("textarea",{"onUpdate:modelValue":t[8]||(t[8]=u=>s.rejectionText=u),class:"reason-textarea",rows:"4",cols:"40",placeholder:"Reason for rejection"},null,512),[[Ni,s.rejectionText]])]),v("div",rF,[v("button",{onClick:t[9]||(t[9]=(...u)=>a.toggleModal&&a.toggleModal(...u)),class:"cancel-button"},"Cancel"),v("button",{onClick:t[10]||(t[10]=(...u)=>a.reject&&a.reject(...u)),class:"reject-button"},"Reject")])])])):ae("",!0)]),_:1}),he(vs,{name:"modal"},{default:Te(()=>[s.showDeleteModal?(S(),P("div",sF,[v("div",iF,[v("div",aF,[t[19]||(t[19]=v("h3",{class:"text-2xl font-semibold"},"Delete Event",-1)),v("button",{onClick:t[11]||(t[11]=(...u)=>a.toggleDeleteModal&&a.toggleDeleteModal(...u)),class:"close-button"},"×")]),t[20]||(t[20]=v("div",{class:"modal-body"},[v("p",null,"This event will be permanently deleted from the website. Are you sure you want to delete this event?")],-1)),v("div",lF,[v("button",{onClick:t[12]||(t[12]=(...u)=>a.toggleDeleteModal&&a.toggleDeleteModal(...u)),class:"cancel-button"},"Cancel"),v("button",{onClick:t[13]||(t[13]=(...u)=>a.deleteEvent&&a.deleteEvent(...u)),class:"delete-button"},"Delete")])])])):ae("",!0)]),_:1})])}const uF=yt(jV,[["render",oF]]),cF={props:{item:{required:!0},searchText:{required:!0}},setup(e){return{line2:pe(()=>(e.item.city?e.item.city+", ":"")+(e.item.country?e.item.country:""))}}},dF={class:"address-list-item"},fF={class:"address-info"},hF={class:"name"},pF={class:"city"};function mF(e,t,n,r,s,a){return S(),P("div",dF,[v("div",fF,[v("div",hF,re(n.item.name)+" "+re(n.item.housenumber),1),v("div",pF,re(r.line2),1)])])}const gF=yt(cF,[["render",mF],["__scopeId","data-v-86cd2f09"]]),vF=[["AF","AFG"],["AL","ALB"],["DZ","DZA"],["AS","ASM"],["AD","AND"],["AO","AGO"],["AI","AIA"],["AQ","ATA"],["AG","ATG"],["AR","ARG"],["AM","ARM"],["AW","ABW"],["AU","AUS"],["AT","AUT"],["AZ","AZE"],["BS","BHS"],["BH","BHR"],["BD","BGD"],["BB","BRB"],["BY","BLR"],["BE","BEL"],["BZ","BLZ"],["BJ","BEN"],["BM","BMU"],["BT","BTN"],["BO","BOL"],["BQ","BES"],["BA","BIH"],["BW","BWA"],["BV","BVT"],["BR","BRA"],["IO","IOT"],["BN","BRN"],["BG","BGR"],["BF","BFA"],["BI","BDI"],["CV","CPV"],["KH","KHM"],["CM","CMR"],["CA","CAN"],["KY","CYM"],["CF","CAF"],["TD","TCD"],["CL","CHL"],["CN","CHN"],["CX","CXR"],["CC","CCK"],["CO","COL"],["KM","COM"],["CD","COD"],["CG","COG"],["CK","COK"],["CR","CRI"],["HR","HRV"],["CU","CUB"],["CW","CUW"],["CY","CYP"],["CZ","CZE"],["CI","CIV"],["DK","DNK"],["DJ","DJI"],["DM","DMA"],["DO","DOM"],["EC","ECU"],["EG","EGY"],["SV","SLV"],["GQ","GNQ"],["ER","ERI"],["EE","EST"],["SZ","SWZ"],["ET","ETH"],["FK","FLK"],["FO","FRO"],["FJ","FJI"],["FI","FIN"],["FR","FRA"],["GF","GUF"],["PF","PYF"],["TF","ATF"],["GA","GAB"],["GM","GMB"],["GE","GEO"],["DE","DEU"],["GH","GHA"],["GI","GIB"],["GR","GRC"],["GL","GRL"],["GD","GRD"],["GP","GLP"],["GU","GUM"],["GT","GTM"],["GG","GGY"],["GN","GIN"],["GW","GNB"],["GY","GUY"],["HT","HTI"],["HM","HMD"],["VA","VAT"],["HN","HND"],["HK","HKG"],["HU","HUN"],["IS","ISL"],["IN","IND"],["ID","IDN"],["IR","IRN"],["IQ","IRQ"],["IE","IRL"],["IM","IMN"],["IL","ISR"],["IT","ITA"],["JM","JAM"],["JP","JPN"],["JE","JEY"],["JO","JOR"],["KZ","KAZ"],["KE","KEN"],["KI","KIR"],["KP","PRK"],["KR","KOR"],["KW","KWT"],["KG","KGZ"],["LA","LAO"],["LV","LVA"],["LB","LBN"],["LS","LSO"],["LR","LBR"],["LY","LBY"],["LI","LIE"],["LT","LTU"],["LU","LUX"],["MO","MAC"],["MG","MDG"],["MW","MWI"],["MY","MYS"],["MV","MDV"],["ML","MLI"],["MT","MLT"],["MH","MHL"],["MQ","MTQ"],["MR","MRT"],["MU","MUS"],["YT","MYT"],["MX","MEX"],["FM","FSM"],["MD","MDA"],["MC","MCO"],["MN","MNG"],["ME","MNE"],["MS","MSR"],["MA","MAR"],["MZ","MOZ"],["MM","MMR"],["NA","NAM"],["NR","NRU"],["NP","NPL"],["NL","NLD"],["NC","NCL"],["NZ","NZL"],["NI","NIC"],["NE","NER"],["NG","NGA"],["NU","NIU"],["NF","NFK"],["MP","MNP"],["NO","NOR"],["OM","OMN"],["PK","PAK"],["PW","PLW"],["PS","PSE"],["PA","PAN"],["PG","PNG"],["PY","PRY"],["PE","PER"],["PH","PHL"],["PN","PCN"],["PL","POL"],["PT","PRT"],["PR","PRI"],["QA","QAT"],["MK","MKD"],["RO","ROU"],["RU","RUS"],["RW","RWA"],["RE","REU"],["BL","BLM"],["SH","SHN"],["KN","KNA"],["LC","LCA"],["MF","MAF"],["PM","SPM"],["VC","VCT"],["WS","WSM"],["SM","SMR"],["ST","STP"],["SA","SAU"],["SN","SEN"],["RS","SRB"],["SC","SYC"],["SL","SLE"],["SG","SGP"],["SX","SXM"],["SK","SVK"],["SI","SVN"],["SB","SLB"],["SO","SOM"],["ZA","ZAF"],["GS","SGS"],["SS","SSD"],["ES","ESP"],["LK","LKA"],["SD","SDN"],["SR","SUR"],["SJ","SJM"],["SE","SWE"],["CH","CHE"],["SY","SYR"],["TW","TWN"],["TJ","TJK"],["TZ","TZA"],["TH","THA"],["TL","TLS"],["TG","TGO"],["TK","TKL"],["TO","TON"],["TT","TTO"],["TN","TUN"],["TR","TUR"],["TM","TKM"],["TC","TCA"],["TV","TUV"],["UG","UGA"],["UA","UKR"],["AE","ARE"],["GB","GBR"],["UM","UMI"],["US","USA"],["UY","URY"],["UZ","UZB"],["VU","VUT"],["VE","VEN"],["VN","VNM"],["VG","VGB"],["VI","VIR"],["WF","WLF"],["EH","ESH"],["YE","YEM"],["ZM","ZMB"],["ZW","ZWE"],["AX","ALA"]],yF=vF.map(([e,t])=>({iso2:e,iso3:t})),_F={props:{item:{required:!0}}};function bF(e,t,n,r,s,a){return S(),P("div",null,re(n.item),1)}const wF=yt(_F,[["render",bF]]),Ya={minLen:3,wait:500,timeout:null,isUpdateItems(e){if(e.length>=this.minLen)return!0},callUpdateItems(e,t){clearTimeout(this.timeout),this.isUpdateItems(e)&&(this.timeout=setTimeout(t,this.wait))},findItem(e,t,n){if(t&&n&&e.length==1)return e[0]}},xF={name:"VAutocomplete",props:{componentItem:{default:()=>wF},minLen:{type:Number,default:Ya.minLen},wait:{type:Number,default:Ya.wait},value:null,getLabel:{type:Function,default:e=>e},items:Array,autoSelectOneItem:{type:Boolean,default:!0},placeholder:String,inputClass:{type:String,default:"v-autocomplete-input"},disabled:{type:Boolean,default:!1},inputAttrs:{type:Object,default:()=>({})},keepOpen:{type:Boolean,default:!1},initialLocation:{type:String,default:null}},setup(e,{emit:t}){let n=fe("");e.initialLocation&&(n=fe(e.initialLocation));const r=fe(!1),s=fe(-1),a=fe(e.items||[]),o=pe(()=>!!a.value.length),u=pe(()=>r.value&&o.value||e.keepOpen),c=()=>{r.value=!0,s.value=-1,y(null),Ya.callUpdateItems(n.value,h),t("change",n.value)},h=()=>{t("update-items",n.value)},f=()=>{t("focus",n.value),r.value=!0},p=()=>{t("blur",n.value),setTimeout(()=>r.value=!1,200)},m=O=>{y(O),t("item-clicked",O)},y=O=>{O?(a.value=[O],n.value=e.getLabel(O),t("item-selected",O)):_(e.items),t("input",O)},_=O=>{a.value=O||[]},b=O=>a.value.length===1&&O===a.value[0],E=()=>{s.value>-1&&(s.value--,V(document.getElementsByClassName("v-autocomplete-list-item")[s.value]))},H=()=>{s.value{O&&O.scrollIntoView&&O.scrollIntoView(!1)},x=()=>{r.value&&a.value[s.value]&&(y(a.value[s.value]),r.value=!1)};return Wt(()=>e.items,O=>{_(O);const B=Ya.findItem(e.items,n.value,e.autoSelectOneItem);B&&(y(B),r.value=!1)}),Wt(()=>e.value,O=>{b(O)||(y(O),n.value=e.getLabel(O))}),Ft(()=>{Ya.minLen=e.minLen,Ya.wait=e.wait,y(e.value)}),{searchText:n,showList:r,cursor:s,internalItems:a,hasItems:o,show:u,inputChange:c,updateItems:h,focus:f,blur:p,onClickItem:m,onSelectItem:y,setItems:_,isSelectedValue:b,keyUp:E,keyDown:H,itemView:V,keyEnter:x}}},kF={class:"v-autocomplete"},SF=["placeholder","disabled"],TF={key:0,class:"v-autocomplete-list"},CF=["onClick","onMouseover"];function AF(e,t,n,r,s,a){return S(),P("div",kF,[v("div",{class:Be(["v-autocomplete-input-group",{"v-autocomplete-selected":n.value}])},[Dn(v("input",cn({type:"search","onUpdate:modelValue":t[0]||(t[0]=o=>r.searchText=o)},n.inputAttrs,{class:n.inputAttrs.class||n.inputClass,placeholder:n.inputAttrs.placeholder||n.placeholder,disabled:n.inputAttrs.disabled||n.disabled,onBlur:t[1]||(t[1]=(...o)=>r.blur&&r.blur(...o)),onFocus:t[2]||(t[2]=(...o)=>r.focus&&r.focus(...o)),onInput:t[3]||(t[3]=(...o)=>r.inputChange&&r.inputChange(...o)),onKeyup:t[4]||(t[4]=$n((...o)=>r.keyEnter&&r.keyEnter(...o),["enter"])),onKeydown:[t[5]||(t[5]=$n((...o)=>r.keyEnter&&r.keyEnter(...o),["tab"])),t[6]||(t[6]=$n((...o)=>r.keyUp&&r.keyUp(...o),["up"])),t[7]||(t[7]=$n((...o)=>r.keyDown&&r.keyDown(...o),["down"]))]}),null,16,SF),[[Ni,r.searchText]])],2),r.show?(S(),P("div",TF,[(S(!0),P(Ve,null,Qe(r.internalItems,(o,u)=>(S(),P("div",{class:Be(["v-autocomplete-list-item",{"v-autocomplete-item-active":u===r.cursor}]),key:u,onClick:c=>r.onClickItem(o),onMouseover:c=>r.cursor=u},[(S(),it(Cl(n.componentItem),{item:o,searchText:r.searchText},null,8,["item","searchText"]))],42,CF))),128))])):ae("",!0)])}const EF=yt(xF,[["render",AF]]),OF={components:{VAutocomplete:EF},props:{placeholder:String,name:String,value:String,geoposition:String,location:String},emits:["onChange"],setup(e,{emit:t}){const n=fe(e.value?{name:e.value}:null),r=fe(null),s=gF,a=fe({placeholder:e.placeholder,name:e.name,autocomplete:"off"}),o=fe(e.geoposition),u=e.location;Wt(()=>e.placeholder,()=>{a.value.placeholder=e.placeholder});const c=y=>{t("onChange",{location:(y==null?void 0:y.name)||""}),y&&y.name&&y.magicKey&&Tt.get("/api/proxy/geocode",{params:{singleLine:y.name,magicKey:y.magicKey}}).then(b=>{const E=b.data.candidates[0];o.value=[E.location.y,E.location.x],window.map&&window.map.setView([E.location.y,E.location.x],16);const H=h(E.attributes.Country).iso2;t("onChange",{location:(y==null?void 0:y.name)||"",geoposition:[E.location.y,E.location.x],country_iso:H||""}),document.getElementById("id_country")&&(document.getElementById("id_country").value=H)}).catch(b=>{console.error("Error:",b)})},h=y=>yF.find(_=>_.iso3===y),f=y=>y&&y.name?y.name:"",p=y=>{y===""&&(r.value=null)},m=y=>{Tt.get("/api/proxy/suggest",{params:{f:"json",text:y}}).then(b=>{r.value=b.data.suggestions.map(E=>({name:E.text,magicKey:E.magicKey}))}).catch(b=>{console.error("Error:",b)})};return Wt(()=>e.value,y=>{n.value=y?{name:y}:null}),Wt(()=>e.geoposition,y=>{o.value=y}),{item:n,items:r,template:s,inputAttrs:a,itemSelected:c,getLabel:f,change:p,updateItems:m,localGeoposition:o,initialLocation:u}}},MF=["value"];function RF(e,t,n,r,s,a){const o=at("v-autocomplete");return S(),P("div",null,[he(o,{items:r.items,modelValue:r.item,"onUpdate:modelValue":t[0]||(t[0]=u=>r.item=u),"get-label":r.getLabel,"component-item":r.template,onUpdateItems:r.updateItems,onItemSelected:r.itemSelected,onChange:r.change,"keep-open":!1,"auto-select-one-item":!1,"input-attrs":r.inputAttrs,wait:300,initialLocation:r.initialLocation},null,8,["items","modelValue","get-label","component-item","onUpdateItems","onItemSelected","onChange","input-attrs","initialLocation"]),v("input",{type:"hidden",name:"geoposition",id:"geoposition",value:r.localGeoposition},null,8,MF)])}const DF=yt(OF,[["render",RF]]);function Ze(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Lt(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function fs(e,t){const n=Ze(e);return isNaN(t)?Lt(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function gs(e,t){const n=Ze(e);if(isNaN(t))return Lt(e,NaN);if(!t)return n;const r=n.getDate(),s=Lt(e,n.getTime());s.setMonth(n.getMonth()+t+1,0);const a=s.getDate();return r>=a?s:(n.setFullYear(s.getFullYear(),s.getMonth(),r),n)}function j1(e,t){const{years:n=0,months:r=0,weeks:s=0,days:a=0,hours:o=0,minutes:u=0,seconds:c=0}=t,h=Ze(e),f=r||n?gs(h,r+n*12):h,p=a||s?fs(f,a+s*7):f,m=u+o*60,_=(c+m*60)*1e3;return Lt(e,p.getTime()+_)}function PF(e,t){const n=+Ze(e);return Lt(e,n+t)}const q1=6048e5,LF=864e5,IF=6e4,W1=36e5,NF=1e3;function VF(e,t){return PF(e,t*W1)}let FF={};function Ca(){return FF}function ys(e,t){var u,c,h,f;const n=Ca(),r=(t==null?void 0:t.weekStartsOn)??((c=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((f=(h=n.locale)==null?void 0:h.options)==null?void 0:f.weekStartsOn)??0,s=Ze(e),a=s.getDay(),o=(a=s.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function i0(e){const t=Ze(e);return t.setHours(0,0,0,0),t}function Mc(e){const t=Ze(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function z1(e,t){const n=i0(e),r=i0(t),s=+n-Mc(n),a=+r-Mc(r);return Math.round((s-a)/LF)}function $F(e){const t=Y1(e),n=Lt(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),gl(n)}function BF(e,t){const n=t*3;return gs(e,n)}function Yp(e,t){return gs(e,t*12)}function a0(e,t){const n=Ze(e),r=Ze(t),s=n.getTime()-r.getTime();return s<0?-1:s>0?1:s}function K1(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function oo(e){if(!K1(e)&&typeof e!="number")return!1;const t=Ze(e);return!isNaN(Number(t))}function l0(e){const t=Ze(e);return Math.trunc(t.getMonth()/3)+1}function HF(e,t){const n=Ze(e),r=Ze(t);return n.getFullYear()-r.getFullYear()}function UF(e,t){const n=Ze(e),r=Ze(t),s=a0(n,r),a=Math.abs(HF(n,r));n.setFullYear(1584),r.setFullYear(1584);const o=a0(n,r)===-s,u=s*(a-+o);return u===0?0:u}function G1(e,t){const n=Ze(e.start),r=Ze(e.end);let s=+n>+r;const a=s?+n:+r,o=s?r:n;o.setHours(0,0,0,0);let u=1;const c=[];for(;+o<=a;)c.push(Ze(o)),o.setDate(o.getDate()+u),o.setHours(0,0,0,0);return s?c.reverse():c}function oa(e){const t=Ze(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function jF(e,t){const n=Ze(e.start),r=Ze(e.end);let s=+n>+r;const a=s?+oa(n):+oa(r);let o=oa(s?r:n),u=1;const c=[];for(;+o<=a;)c.push(Ze(o)),o=BF(o,u);return s?c.reverse():c}function qF(e){const t=Ze(e);return t.setDate(1),t.setHours(0,0,0,0),t}function J1(e){const t=Ze(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function Ao(e){const t=Ze(e),n=Lt(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Z1(e,t){var u,c,h,f;const n=Ca(),r=(t==null?void 0:t.weekStartsOn)??((c=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((f=(h=n.locale)==null?void 0:h.options)==null?void 0:f.weekStartsOn)??0,s=Ze(e),a=s.getDay(),o=(a{let r;const s=WF[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Xf(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const zF={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},KF={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},GF={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},JF={date:Xf({formats:zF,defaultWidth:"full"}),time:Xf({formats:KF,defaultWidth:"full"}),dateTime:Xf({formats:GF,defaultWidth:"full"})},ZF={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},XF=(e,t,n,r)=>ZF[e];function Kl(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,u=n!=null&&n.width?String(n.width):o;s=e.formattingValues[u]||e.formattingValues[o]}else{const o=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;s=e.values[u]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return s[a]}}const QF={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},e6={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},t6={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},n6={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},r6={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},s6={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},i6=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},a6={ordinalNumber:i6,era:Kl({values:QF,defaultWidth:"wide"}),quarter:Kl({values:e6,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Kl({values:t6,defaultWidth:"wide"}),day:Kl({values:n6,defaultWidth:"wide"}),dayPeriod:Kl({values:r6,defaultWidth:"wide",formattingValues:s6,defaultFormattingWidth:"wide"})};function Gl(e){return(t,n={})=>{const r=n.width,s=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(s);if(!a)return null;const o=a[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(u)?o6(u,p=>p.test(o)):l6(u,p=>p.test(o));let h;h=e.valueCallback?e.valueCallback(c):c,h=n.valueCallback?n.valueCallback(h):h;const f=t.slice(o.length);return{value:h,rest:f}}}function l6(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function o6(e,t){for(let n=0;n{const r=t.match(e.matchPattern);if(!r)return null;const s=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const u=t.slice(s.length);return{value:o,rest:u}}}const c6=/^(\d+)(th|st|nd|rd)?/i,d6=/\d+/i,f6={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},h6={any:[/^b/i,/^(a|c)/i]},p6={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},m6={any:[/1/i,/2/i,/3/i,/4/i]},g6={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},v6={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},y6={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},_6={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},b6={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},w6={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},x6={ordinalNumber:u6({matchPattern:c6,parsePattern:d6,valueCallback:e=>parseInt(e,10)}),era:Gl({matchPatterns:f6,defaultMatchWidth:"wide",parsePatterns:h6,defaultParseWidth:"any"}),quarter:Gl({matchPatterns:p6,defaultMatchWidth:"wide",parsePatterns:m6,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Gl({matchPatterns:g6,defaultMatchWidth:"wide",parsePatterns:v6,defaultParseWidth:"any"}),day:Gl({matchPatterns:y6,defaultMatchWidth:"wide",parsePatterns:_6,defaultParseWidth:"any"}),dayPeriod:Gl({matchPatterns:b6,defaultMatchWidth:"any",parsePatterns:w6,defaultParseWidth:"any"})},X1={code:"en-US",formatDistance:YF,formatLong:JF,formatRelative:XF,localize:a6,match:x6,options:{weekStartsOn:0,firstWeekContainsDate:1}};function k6(e){const t=Ze(e);return z1(t,Ao(t))+1}function zp(e){const t=Ze(e),n=+gl(t)-+$F(t);return Math.round(n/q1)+1}function Kp(e,t){var f,p,m,y;const n=Ze(e),r=n.getFullYear(),s=Ca(),a=(t==null?void 0:t.firstWeekContainsDate)??((p=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??s.firstWeekContainsDate??((y=(m=s.locale)==null?void 0:m.options)==null?void 0:y.firstWeekContainsDate)??1,o=Lt(e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const u=ys(o,t),c=Lt(e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);const h=ys(c,t);return n.getTime()>=u.getTime()?r+1:n.getTime()>=h.getTime()?r:r-1}function S6(e,t){var u,c,h,f;const n=Ca(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(h=n.locale)==null?void 0:h.options)==null?void 0:f.firstWeekContainsDate)??1,s=Kp(e,t),a=Lt(e,0);return a.setFullYear(s,0,r),a.setHours(0,0,0,0),ys(a,t)}function Gp(e,t){const n=Ze(e),r=+ys(n,t)-+S6(n,t);return Math.round(r/q1)+1}function Bt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const vi={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Bt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Bt(n+1,2)},d(e,t){return Bt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Bt(e.getHours()%12||12,t.length)},H(e,t){return Bt(e.getHours(),t.length)},m(e,t){return Bt(e.getMinutes(),t.length)},s(e,t){return Bt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return Bt(s,t.length)}},za={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},u0={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return vi.y(e,t)},Y:function(e,t,n,r){const s=Kp(e,r),a=s>0?s:1-s;if(t==="YY"){const o=a%100;return Bt(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):Bt(a,t.length)},R:function(e,t){const n=Y1(e);return Bt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Bt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Bt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Bt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return vi.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Bt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const s=Gp(e,r);return t==="wo"?n.ordinalNumber(s,{unit:"week"}):Bt(s,t.length)},I:function(e,t,n){const r=zp(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Bt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):vi.d(e,t)},D:function(e,t,n){const r=k6(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Bt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const s=e.getDay(),a=(s-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Bt(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const s=e.getDay(),a=(s-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Bt(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),s=r===0?7:r;switch(t){case"i":return String(s);case"ii":return Bt(s,t.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let s;switch(r===12?s=za.noon:r===0?s=za.midnight:s=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let s;switch(r>=17?s=za.evening:r>=12?s=za.afternoon:r>=4?s=za.morning:s=za.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return vi.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):vi.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Bt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Bt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):vi.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):vi.s(e,t)},S:function(e,t){return vi.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return d0(r);case"XXXX":case"XX":return ra(r);case"XXXXX":case"XXX":default:return ra(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return d0(r);case"xxxx":case"xx":return ra(r);case"xxxxx":case"xxx":default:return ra(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+c0(r,":");case"OOOO":default:return"GMT"+ra(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+c0(r,":");case"zzzz":default:return"GMT"+ra(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Bt(r,t.length)},T:function(e,t,n){const r=e.getTime();return Bt(r,t.length)}};function c0(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Math.trunc(r/60),a=r%60;return a===0?n+String(s):n+String(s)+t+Bt(a,2)}function d0(e,t){return e%60===0?(e>0?"-":"+")+Bt(Math.abs(e)/60,2):ra(e,t)}function ra(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Bt(Math.trunc(r/60),2),a=Bt(r%60,2);return n+s+t+a}const f0=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Q1=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},T6=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return f0(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",f0(r,t)).replace("{{time}}",Q1(s,t))},qh={p:Q1,P:T6},C6=/^D+$/,A6=/^Y+$/,E6=["D","DD","YY","YYYY"];function ew(e){return C6.test(e)}function tw(e){return A6.test(e)}function Wh(e,t,n){const r=O6(e,t,n);if(console.warn(r),E6.includes(e))throw new RangeError(r)}function O6(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const M6=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,R6=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,D6=/^'([^]*?)'?$/,P6=/''/g,L6=/[a-zA-Z]/;function Ds(e,t,n){var f,p,m,y,_,b,E,H;const r=Ca(),s=(n==null?void 0:n.locale)??r.locale??X1,a=(n==null?void 0:n.firstWeekContainsDate)??((p=(f=n==null?void 0:n.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??r.firstWeekContainsDate??((y=(m=r.locale)==null?void 0:m.options)==null?void 0:y.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((b=(_=n==null?void 0:n.locale)==null?void 0:_.options)==null?void 0:b.weekStartsOn)??r.weekStartsOn??((H=(E=r.locale)==null?void 0:E.options)==null?void 0:H.weekStartsOn)??0,u=Ze(e);if(!oo(u))throw new RangeError("Invalid time value");let c=t.match(R6).map(V=>{const x=V[0];if(x==="p"||x==="P"){const O=qh[x];return O(V,s.formatLong)}return V}).join("").match(M6).map(V=>{if(V==="''")return{isToken:!1,value:"'"};const x=V[0];if(x==="'")return{isToken:!1,value:I6(V)};if(u0[x])return{isToken:!0,value:V};if(x.match(L6))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:V}});s.localize.preprocessor&&(c=s.localize.preprocessor(u,c));const h={firstWeekContainsDate:a,weekStartsOn:o,locale:s};return c.map(V=>{if(!V.isToken)return V.value;const x=V.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&tw(x)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&ew(x))&&Wh(x,t,String(e));const O=u0[x[0]];return O(u,x,s.localize,h)}).join("")}function I6(e){const t=e.match(D6);return t?t[1].replace(P6,"'"):e}function N6(e){return Ze(e).getDay()}function V6(e){const t=Ze(e),n=t.getFullYear(),r=t.getMonth(),s=Lt(e,0);return s.setFullYear(n,r+1,0),s.setHours(0,0,0,0),s.getDate()}function F6(){return Object.assign({},Ca())}function ri(e){return Ze(e).getHours()}function $6(e){let n=Ze(e).getDay();return n===0&&(n=7),n}function Vi(e){return Ze(e).getMinutes()}function wt(e){return Ze(e).getMonth()}function vl(e){return Ze(e).getSeconds()}function lt(e){return Ze(e).getFullYear()}function yl(e,t){const n=Ze(e),r=Ze(t);return n.getTime()>r.getTime()}function Eo(e,t){const n=Ze(e),r=Ze(t);return+n<+r}function el(e,t){const n=Ze(e),r=Ze(t);return+n==+r}function B6(e,t){const n=t instanceof Date?Lt(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}const H6=10;class nw{constructor(){ze(this,"subPriority",0)}validate(t,n){return!0}}class U6 extends nw{constructor(t,n,r,s,a){super(),this.value=t,this.validateValue=n,this.setValue=r,this.priority=s,a&&(this.subPriority=a)}validate(t,n){return this.validateValue(t,this.value,n)}set(t,n,r){return this.setValue(t,n,this.value,r)}}class j6 extends nw{constructor(){super(...arguments);ze(this,"priority",H6);ze(this,"subPriority",-1)}set(n,r){return r.timestampIsSet?n:Lt(n,B6(n,Date))}}class It{run(t,n,r,s){const a=this.parse(t,n,r,s);return a?{setter:new U6(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(t,n,r){return!0}}class q6 extends It{constructor(){super(...arguments);ze(this,"priority",140);ze(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,s){switch(r){case"G":case"GG":case"GGG":return s.era(n,{width:"abbreviated"})||s.era(n,{width:"narrow"});case"GGGGG":return s.era(n,{width:"narrow"});case"GGGG":default:return s.era(n,{width:"wide"})||s.era(n,{width:"abbreviated"})||s.era(n,{width:"narrow"})}}set(n,r,s){return r.era=s,n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}const kn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Os={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Sn(e,t){return e&&{value:t(e.value),rest:e.rest}}function rn(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Ms(e,t){const n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};const r=n[1]==="+"?1:-1,s=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(s*W1+a*IF+o*NF),rest:t.slice(n[0].length)}}function rw(e){return rn(kn.anyDigitsSigned,e)}function dn(e,t){switch(e){case 1:return rn(kn.singleDigit,t);case 2:return rn(kn.twoDigits,t);case 3:return rn(kn.threeDigits,t);case 4:return rn(kn.fourDigits,t);default:return rn(new RegExp("^\\d{1,"+e+"}"),t)}}function Rc(e,t){switch(e){case 1:return rn(kn.singleDigitSigned,t);case 2:return rn(kn.twoDigitsSigned,t);case 3:return rn(kn.threeDigitsSigned,t);case 4:return rn(kn.fourDigitsSigned,t);default:return rn(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Jp(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function sw(e,t){const n=t>0,r=n?t:1-t;let s;if(r<=50)s=e||100;else{const a=r+50,o=Math.trunc(a/100)*100,u=e>=a%100;s=e+o-(u?100:0)}return n?s:1-s}function iw(e){return e%400===0||e%4===0&&e%100!==0}class W6 extends It{constructor(){super(...arguments);ze(this,"priority",130);ze(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,s){const a=o=>({year:o,isTwoDigitYear:r==="yy"});switch(r){case"y":return Sn(dn(4,n),a);case"yo":return Sn(s.ordinalNumber(n,{unit:"year"}),a);default:return Sn(dn(r.length,n),a)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,s){const a=n.getFullYear();if(s.isTwoDigitYear){const u=sw(s.year,a);return n.setFullYear(u,0,1),n.setHours(0,0,0,0),n}const o=!("era"in r)||r.era===1?s.year:1-s.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}class Y6 extends It{constructor(){super(...arguments);ze(this,"priority",130);ze(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,s){const a=o=>({year:o,isTwoDigitYear:r==="YY"});switch(r){case"Y":return Sn(dn(4,n),a);case"Yo":return Sn(s.ordinalNumber(n,{unit:"year"}),a);default:return Sn(dn(r.length,n),a)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,s,a){const o=Kp(n,a);if(s.isTwoDigitYear){const c=sw(s.year,o);return n.setFullYear(c,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),ys(n,a)}const u=!("era"in r)||r.era===1?s.year:1-s.year;return n.setFullYear(u,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),ys(n,a)}}class z6 extends It{constructor(){super(...arguments);ze(this,"priority",130);ze(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return Rc(r==="R"?4:r.length,n)}set(n,r,s){const a=Lt(n,0);return a.setFullYear(s,0,4),a.setHours(0,0,0,0),gl(a)}}class K6 extends It{constructor(){super(...arguments);ze(this,"priority",130);ze(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return Rc(r==="u"?4:r.length,n)}set(n,r,s){return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}class G6 extends It{constructor(){super(...arguments);ze(this,"priority",120);ze(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"Q":case"QQ":return dn(r.length,n);case"Qo":return s.ordinalNumber(n,{unit:"quarter"});case"QQQ":return s.quarter(n,{width:"abbreviated",context:"formatting"})||s.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(n,{width:"wide",context:"formatting"})||s.quarter(n,{width:"abbreviated",context:"formatting"})||s.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,s){return n.setMonth((s-1)*3,1),n.setHours(0,0,0,0),n}}class J6 extends It{constructor(){super(...arguments);ze(this,"priority",120);ze(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"q":case"qq":return dn(r.length,n);case"qo":return s.ordinalNumber(n,{unit:"quarter"});case"qqq":return s.quarter(n,{width:"abbreviated",context:"standalone"})||s.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(n,{width:"wide",context:"standalone"})||s.quarter(n,{width:"abbreviated",context:"standalone"})||s.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,s){return n.setMonth((s-1)*3,1),n.setHours(0,0,0,0),n}}class Z6 extends It{constructor(){super(...arguments);ze(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);ze(this,"priority",110)}parse(n,r,s){const a=o=>o-1;switch(r){case"M":return Sn(rn(kn.month,n),a);case"MM":return Sn(dn(2,n),a);case"Mo":return Sn(s.ordinalNumber(n,{unit:"month"}),a);case"MMM":return s.month(n,{width:"abbreviated",context:"formatting"})||s.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(n,{width:"wide",context:"formatting"})||s.month(n,{width:"abbreviated",context:"formatting"})||s.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.setMonth(s,1),n.setHours(0,0,0,0),n}}class X6 extends It{constructor(){super(...arguments);ze(this,"priority",110);ze(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,s){const a=o=>o-1;switch(r){case"L":return Sn(rn(kn.month,n),a);case"LL":return Sn(dn(2,n),a);case"Lo":return Sn(s.ordinalNumber(n,{unit:"month"}),a);case"LLL":return s.month(n,{width:"abbreviated",context:"standalone"})||s.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(n,{width:"wide",context:"standalone"})||s.month(n,{width:"abbreviated",context:"standalone"})||s.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.setMonth(s,1),n.setHours(0,0,0,0),n}}function Q6(e,t,n){const r=Ze(e),s=Gp(r,n)-t;return r.setDate(r.getDate()-s*7),r}class e$ extends It{constructor(){super(...arguments);ze(this,"priority",100);ze(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,s){switch(r){case"w":return rn(kn.week,n);case"wo":return s.ordinalNumber(n,{unit:"week"});default:return dn(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,s,a){return ys(Q6(n,s,a),a)}}function t$(e,t){const n=Ze(e),r=zp(n)-t;return n.setDate(n.getDate()-r*7),n}class n$ extends It{constructor(){super(...arguments);ze(this,"priority",100);ze(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,s){switch(r){case"I":return rn(kn.week,n);case"Io":return s.ordinalNumber(n,{unit:"week"});default:return dn(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,s){return gl(t$(n,s))}}const r$=[31,28,31,30,31,30,31,31,30,31,30,31],s$=[31,29,31,30,31,30,31,31,30,31,30,31];class i$ extends It{constructor(){super(...arguments);ze(this,"priority",90);ze(this,"subPriority",1);ze(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"d":return rn(kn.date,n);case"do":return s.ordinalNumber(n,{unit:"date"});default:return dn(r.length,n)}}validate(n,r){const s=n.getFullYear(),a=iw(s),o=n.getMonth();return a?r>=1&&r<=s$[o]:r>=1&&r<=r$[o]}set(n,r,s){return n.setDate(s),n.setHours(0,0,0,0),n}}class a$ extends It{constructor(){super(...arguments);ze(this,"priority",90);ze(this,"subpriority",1);ze(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,s){switch(r){case"D":case"DD":return rn(kn.dayOfYear,n);case"Do":return s.ordinalNumber(n,{unit:"date"});default:return dn(r.length,n)}}validate(n,r){const s=n.getFullYear();return iw(s)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,s){return n.setMonth(0,s),n.setHours(0,0,0,0),n}}function Zp(e,t,n){var p,m,y,_;const r=Ca(),s=(n==null?void 0:n.weekStartsOn)??((m=(p=n==null?void 0:n.locale)==null?void 0:p.options)==null?void 0:m.weekStartsOn)??r.weekStartsOn??((_=(y=r.locale)==null?void 0:y.options)==null?void 0:_.weekStartsOn)??0,a=Ze(e),o=a.getDay(),c=(t%7+7)%7,h=7-s,f=t<0||t>6?t-(o+h)%7:(c+h)%7-(o+h)%7;return fs(a,f)}class l$ extends It{constructor(){super(...arguments);ze(this,"priority",90);ze(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"E":case"EE":case"EEE":return s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,a){return n=Zp(n,s,a),n.setHours(0,0,0,0),n}}class o$ extends It{constructor(){super(...arguments);ze(this,"priority",90);ze(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,s,a){const o=u=>{const c=Math.floor((u-1)/7)*7;return(u+a.weekStartsOn+6)%7+c};switch(r){case"e":case"ee":return Sn(dn(r.length,n),o);case"eo":return Sn(s.ordinalNumber(n,{unit:"day"}),o);case"eee":return s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"eeeee":return s.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,a){return n=Zp(n,s,a),n.setHours(0,0,0,0),n}}class u$ extends It{constructor(){super(...arguments);ze(this,"priority",90);ze(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,s,a){const o=u=>{const c=Math.floor((u-1)/7)*7;return(u+a.weekStartsOn+6)%7+c};switch(r){case"c":case"cc":return Sn(dn(r.length,n),o);case"co":return Sn(s.ordinalNumber(n,{unit:"day"}),o);case"ccc":return s.day(n,{width:"abbreviated",context:"standalone"})||s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"});case"ccccc":return s.day(n,{width:"narrow",context:"standalone"});case"cccccc":return s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(n,{width:"wide",context:"standalone"})||s.day(n,{width:"abbreviated",context:"standalone"})||s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,a){return n=Zp(n,s,a),n.setHours(0,0,0,0),n}}function c$(e,t){const n=Ze(e),r=$6(n),s=t-r;return fs(n,s)}class d$ extends It{constructor(){super(...arguments);ze(this,"priority",90);ze(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,s){const a=o=>o===0?7:o;switch(r){case"i":case"ii":return dn(r.length,n);case"io":return s.ordinalNumber(n,{unit:"day"});case"iii":return Sn(s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),a);case"iiiii":return Sn(s.day(n,{width:"narrow",context:"formatting"}),a);case"iiiiii":return Sn(s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),a);case"iiii":default:return Sn(s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),a)}}validate(n,r){return r>=1&&r<=7}set(n,r,s){return n=c$(n,s),n.setHours(0,0,0,0),n}}class f$ extends It{constructor(){super(...arguments);ze(this,"priority",80);ze(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,s){switch(r){case"a":case"aa":case"aaa":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Jp(s),0,0,0),n}}class h$ extends It{constructor(){super(...arguments);ze(this,"priority",80);ze(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,s){switch(r){case"b":case"bb":case"bbb":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Jp(s),0,0,0),n}}class p$ extends It{constructor(){super(...arguments);ze(this,"priority",80);ze(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,s){switch(r){case"B":case"BB":case"BBB":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Jp(s),0,0,0),n}}class m$ extends It{constructor(){super(...arguments);ze(this,"priority",70);ze(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,s){switch(r){case"h":return rn(kn.hour12h,n);case"ho":return s.ordinalNumber(n,{unit:"hour"});default:return dn(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,s){const a=n.getHours()>=12;return a&&s<12?n.setHours(s+12,0,0,0):!a&&s===12?n.setHours(0,0,0,0):n.setHours(s,0,0,0),n}}class g$ extends It{constructor(){super(...arguments);ze(this,"priority",70);ze(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,s){switch(r){case"H":return rn(kn.hour23h,n);case"Ho":return s.ordinalNumber(n,{unit:"hour"});default:return dn(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,s){return n.setHours(s,0,0,0),n}}class v$ extends It{constructor(){super(...arguments);ze(this,"priority",70);ze(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,s){switch(r){case"K":return rn(kn.hour11h,n);case"Ko":return s.ordinalNumber(n,{unit:"hour"});default:return dn(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.getHours()>=12&&s<12?n.setHours(s+12,0,0,0):n.setHours(s,0,0,0),n}}class y$ extends It{constructor(){super(...arguments);ze(this,"priority",70);ze(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,s){switch(r){case"k":return rn(kn.hour24h,n);case"ko":return s.ordinalNumber(n,{unit:"hour"});default:return dn(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,s){const a=s<=24?s%24:s;return n.setHours(a,0,0,0),n}}class _$ extends It{constructor(){super(...arguments);ze(this,"priority",60);ze(this,"incompatibleTokens",["t","T"])}parse(n,r,s){switch(r){case"m":return rn(kn.minute,n);case"mo":return s.ordinalNumber(n,{unit:"minute"});default:return dn(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,s){return n.setMinutes(s,0,0),n}}class b$ extends It{constructor(){super(...arguments);ze(this,"priority",50);ze(this,"incompatibleTokens",["t","T"])}parse(n,r,s){switch(r){case"s":return rn(kn.second,n);case"so":return s.ordinalNumber(n,{unit:"second"});default:return dn(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,s){return n.setSeconds(s,0),n}}class w$ extends It{constructor(){super(...arguments);ze(this,"priority",30);ze(this,"incompatibleTokens",["t","T"])}parse(n,r){const s=a=>Math.trunc(a*Math.pow(10,-r.length+3));return Sn(dn(r.length,n),s)}set(n,r,s){return n.setMilliseconds(s),n}}class x$ extends It{constructor(){super(...arguments);ze(this,"priority",10);ze(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return Ms(Os.basicOptionalMinutes,n);case"XX":return Ms(Os.basic,n);case"XXXX":return Ms(Os.basicOptionalSeconds,n);case"XXXXX":return Ms(Os.extendedOptionalSeconds,n);case"XXX":default:return Ms(Os.extended,n)}}set(n,r,s){return r.timestampIsSet?n:Lt(n,n.getTime()-Mc(n)-s)}}class k$ extends It{constructor(){super(...arguments);ze(this,"priority",10);ze(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return Ms(Os.basicOptionalMinutes,n);case"xx":return Ms(Os.basic,n);case"xxxx":return Ms(Os.basicOptionalSeconds,n);case"xxxxx":return Ms(Os.extendedOptionalSeconds,n);case"xxx":default:return Ms(Os.extended,n)}}set(n,r,s){return r.timestampIsSet?n:Lt(n,n.getTime()-Mc(n)-s)}}class S$ extends It{constructor(){super(...arguments);ze(this,"priority",40);ze(this,"incompatibleTokens","*")}parse(n){return rw(n)}set(n,r,s){return[Lt(n,s*1e3),{timestampIsSet:!0}]}}class T$ extends It{constructor(){super(...arguments);ze(this,"priority",20);ze(this,"incompatibleTokens","*")}parse(n){return rw(n)}set(n,r,s){return[Lt(n,s),{timestampIsSet:!0}]}}const C$={G:new q6,y:new W6,Y:new Y6,R:new z6,u:new K6,Q:new G6,q:new J6,M:new Z6,L:new X6,w:new e$,I:new n$,d:new i$,D:new a$,E:new l$,e:new o$,c:new u$,i:new d$,a:new f$,b:new h$,B:new p$,h:new m$,H:new g$,K:new v$,k:new y$,m:new _$,s:new b$,S:new w$,X:new x$,x:new k$,t:new S$,T:new T$},A$=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,E$=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,O$=/^'([^]*?)'?$/,M$=/''/g,R$=/\S/,D$=/[a-zA-Z]/;function Yh(e,t,n,r){var b,E,H,V,x,O,B,U;const s=F6(),a=(r==null?void 0:r.locale)??s.locale??X1,o=(r==null?void 0:r.firstWeekContainsDate)??((E=(b=r==null?void 0:r.locale)==null?void 0:b.options)==null?void 0:E.firstWeekContainsDate)??s.firstWeekContainsDate??((V=(H=s.locale)==null?void 0:H.options)==null?void 0:V.firstWeekContainsDate)??1,u=(r==null?void 0:r.weekStartsOn)??((O=(x=r==null?void 0:r.locale)==null?void 0:x.options)==null?void 0:O.weekStartsOn)??s.weekStartsOn??((U=(B=s.locale)==null?void 0:B.options)==null?void 0:U.weekStartsOn)??0;if(t==="")return e===""?Ze(n):Lt(n,NaN);const c={firstWeekContainsDate:o,weekStartsOn:u,locale:a},h=[new j6],f=t.match(E$).map(F=>{const D=F[0];if(D in qh){const T=qh[D];return T(F,a.formatLong)}return F}).join("").match(A$),p=[];for(let F of f){!(r!=null&&r.useAdditionalWeekYearTokens)&&tw(F)&&Wh(F,t,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&ew(F)&&Wh(F,t,e);const D=F[0],T=C$[D];if(T){const{incompatibleTokens:$}=T;if(Array.isArray($)){const ee=p.find(de=>$.includes(de.token)||de.token===D);if(ee)throw new RangeError(`The format string mustn't contain \`${ee.fullToken}\` and \`${F}\` at the same time`)}else if(T.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${F}\` and any other token at the same time`);p.push({token:D,fullToken:F});const se=T.run(e,F,a.match,c);if(!se)return Lt(n,NaN);h.push(se.setter),e=se.rest}else{if(D.match(D$))throw new RangeError("Format string contains an unescaped latin alphabet character `"+D+"`");if(F==="''"?F="'":D==="'"&&(F=P$(F)),e.indexOf(F)===0)e=e.slice(F.length);else return Lt(n,NaN)}}if(e.length>0&&R$.test(e))return Lt(n,NaN);const m=h.map(F=>F.priority).sort((F,D)=>D-F).filter((F,D,T)=>T.indexOf(F)===D).map(F=>h.filter(D=>D.priority===F).sort((D,T)=>T.subPriority-D.subPriority)).map(F=>F[0]);let y=Ze(n);if(isNaN(y.getTime()))return Lt(n,NaN);const _={};for(const F of m){if(!F.validate(y,c))return Lt(n,NaN);const D=F.set(y,_,c);Array.isArray(D)?(y=D[0],Object.assign(_,D[1])):y=D}return Lt(n,y)}function P$(e){return e.match(O$)[1].replace(M$,"'")}function h0(e,t){const n=oa(e),r=oa(t);return+n==+r}function L$(e,t){return fs(e,-t)}function aw(e,t){const n=Ze(e),r=n.getFullYear(),s=n.getDate(),a=Lt(e,0);a.setFullYear(r,t,15),a.setHours(0,0,0,0);const o=V6(a);return n.setMonth(t,Math.min(s,o)),n}function qt(e,t){let n=Ze(e);return isNaN(+n)?Lt(e,NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=aw(n,t.month)),t.date!=null&&n.setDate(t.date),t.hours!=null&&n.setHours(t.hours),t.minutes!=null&&n.setMinutes(t.minutes),t.seconds!=null&&n.setSeconds(t.seconds),t.milliseconds!=null&&n.setMilliseconds(t.milliseconds),n)}function I$(e,t){const n=Ze(e);return n.setHours(t),n}function lw(e,t){const n=Ze(e);return n.setMilliseconds(t),n}function N$(e,t){const n=Ze(e);return n.setMinutes(t),n}function ow(e,t){const n=Ze(e);return n.setSeconds(t),n}function Rs(e,t){const n=Ze(e);return isNaN(+n)?Lt(e,NaN):(n.setFullYear(t),n)}function _l(e,t){return gs(e,-t)}function V$(e,t){const{years:n=0,months:r=0,weeks:s=0,days:a=0,hours:o=0,minutes:u=0,seconds:c=0}=t,h=_l(e,r+n*12),f=L$(h,a+s*7),p=u+o*60,y=(c+p*60)*1e3;return Lt(e,f.getTime()-y)}function uw(e,t){return Yp(e,-t)}function Al(){return S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[v("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),v("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),v("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),v("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}Al.compatConfig={MODE:3};function cw(){return S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[v("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),v("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}cw.compatConfig={MODE:3};function Xp(){return S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[v("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}Xp.compatConfig={MODE:3};function Qp(){return S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[v("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}Qp.compatConfig={MODE:3};function em(){return S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[v("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),v("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}em.compatConfig={MODE:3};function tm(){return S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[v("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}tm.compatConfig={MODE:3};function nm(){return S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[v("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}nm.compatConfig={MODE:3};const Er=(e,t)=>t?new Date(e.toLocaleString("en-US",{timeZone:t})):new Date(e),rm=(e,t,n)=>zh(e,t,n)||De(),F$=(e,t,n)=>{const r=t.dateInTz?Er(new Date(e),t.dateInTz):De(e);return n?hr(r,!0):r},zh=(e,t,n)=>{if(!e)return null;const r=n?hr(De(e),!0):De(e);return t?t.exactMatch?F$(e,t,n):Er(r,t.timezone):r},$$=e=>{if(!e)return 0;const t=new Date,n=new Date(t.toLocaleString("en-US",{timeZone:"UTC"})),r=new Date(t.toLocaleString("en-US",{timeZone:e})),s=r.getTimezoneOffset()/60;return(+n-+r)/(1e3*60*60)-s};var cs=(e=>(e.month="month",e.year="year",e))(cs||{}),sa=(e=>(e.top="top",e.bottom="bottom",e))(sa||{}),ma=(e=>(e.header="header",e.calendar="calendar",e.timePicker="timePicker",e))(ma||{}),Qn=(e=>(e.month="month",e.year="year",e.calendar="calendar",e.time="time",e.minutes="minutes",e.hours="hours",e.seconds="seconds",e))(Qn||{});const B$=["timestamp","date","iso"];var ur=(e=>(e.up="up",e.down="down",e.left="left",e.right="right",e))(ur||{}),nn=(e=>(e.arrowUp="ArrowUp",e.arrowDown="ArrowDown",e.arrowLeft="ArrowLeft",e.arrowRight="ArrowRight",e.enter="Enter",e.space=" ",e.esc="Escape",e.tab="Tab",e.home="Home",e.end="End",e.pageUp="PageUp",e.pageDown="PageDown",e))(nn||{});function p0(e){return t=>new Intl.DateTimeFormat(e,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${t}T00:00:00+00:00`)).slice(0,2)}function H$(e){return t=>Ds(Er(new Date(`2017-01-0${t}T00:00:00+00:00`),"UTC"),"EEEEEE",{locale:e})}const U$=(e,t,n)=>{const r=[1,2,3,4,5,6,7];let s;if(e!==null)try{s=r.map(H$(e))}catch{s=r.map(p0(t))}else s=r.map(p0(t));const a=s.slice(0,n),o=s.slice(n+1,s.length);return[s[n]].concat(...o).concat(...a)},sm=(e,t,n)=>{const r=[];for(let s=+e[0];s<=+e[1];s++)r.push({value:+s,text:pw(s,t)});return n?r.reverse():r},dw=(e,t,n)=>{const r=[1,2,3,4,5,6,7,8,9,10,11,12].map(a=>{const o=a<10?`0${a}`:a;return new Date(`2017-${o}-01T00:00:00+00:00`)});if(e!==null)try{const a=n==="long"?"LLLL":"LLL";return r.map((o,u)=>{const c=Ds(Er(o,"UTC"),a,{locale:e});return{text:c.charAt(0).toUpperCase()+c.substring(1),value:u}})}catch{}const s=new Intl.DateTimeFormat(t,{month:n,timeZone:"UTC"});return r.map((a,o)=>{const u=s.format(a);return{text:u.charAt(0).toUpperCase()+u.substring(1),value:o}})},j$=e=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][e],Ln=e=>{const t=Z(e);return t!=null&&t.$el?t==null?void 0:t.$el:t},q$=e=>({type:"dot",...e??{}}),fw=e=>Array.isArray(e)?!!e[0]&&!!e[1]:!1,im={prop:e=>`"${e}" prop must be enabled!`,dateArr:e=>`You need to use array as "model-value" binding in order to support "${e}"`},Fn=e=>e,m0=e=>e===0?e:!e||isNaN(+e)?null:+e,g0=e=>e===null,hw=e=>{if(e)return[...e.querySelectorAll("input, button, select, textarea, a[href]")][0]},W$=e=>{const t=[],n=r=>r.filter(s=>s);for(let r=0;r{const r=n!=null,s=t!=null;if(!r&&!s)return!1;const a=+n,o=+t;return r&&s?+e>a||+ea:s?+eW$(e).map(n=>n.map(r=>{const{active:s,disabled:a,isBetween:o,highlighted:u}=t(r);return{...r,active:s,disabled:a,className:{dp__overlay_cell_active:s,dp__overlay_cell:!s,dp__overlay_cell_disabled:a,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:a&&s,dp__cell_in_between:o,"dp--highlighted":u}}})),Ri=(e,t,n=!1)=>{e&&t.allowStopPropagation&&(n&&e.stopImmediatePropagation(),e.stopPropagation())},Y$=()=>["a[href]","area[href]","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[tabindex]:not([tabindex='-1'])","[data-datepicker-instance]"].join(", ");function z$(e,t){let n=[...document.querySelectorAll(Y$())];n=n.filter(s=>!e.contains(s)||s.hasAttribute("data-datepicker-instance"));const r=n.indexOf(e);if(r>=0&&(t?r-1>=0:r+1<=n.length))return n[r+(t?-1:1)]}const K$=(e,t)=>e==null?void 0:e.querySelector(`[data-dp-element="${t}"]`),pw=(e,t)=>new Intl.NumberFormat(t,{useGrouping:!1,style:"decimal"}).format(e),am=e=>Ds(e,"dd-MM-yyyy"),Qf=e=>Array.isArray(e),Dc=(e,t)=>t.get(am(e)),G$=(e,t)=>e?t?t instanceof Map?!!Dc(e,t):t(De(e)):!1:!0,Tr=(e,t,n=!1)=>{if(e.key===nn.enter||e.key===nn.space)return n&&e.preventDefault(),t()},v0=(e,t,n,r,s,a)=>{const o=Yh(e,t.slice(0,e.length),new Date,{locale:a});return oo(o)&&K1(o)?r||s?o:qt(o,{hours:+n.hours,minutes:+(n==null?void 0:n.minutes),seconds:+(n==null?void 0:n.seconds),milliseconds:0}):null},J$=(e,t,n,r,s,a)=>{const o=Array.isArray(n)?n[0]:n;if(typeof t=="string")return v0(e,t,o,r,s,a);if(Array.isArray(t)){let u=null;for(const c of t)if(u=v0(e,c,o,r,s,a),u)break;return u}return typeof t=="function"?t(e):null},De=e=>e?new Date(e):new Date,Z$=(e,t,n)=>{if(t){const s=(e.getMonth()+1).toString().padStart(2,"0"),a=e.getDate().toString().padStart(2,"0"),o=e.getHours().toString().padStart(2,"0"),u=e.getMinutes().toString().padStart(2,"0"),c=n?e.getSeconds().toString().padStart(2,"0"):"00";return`${e.getFullYear()}-${s}-${a}T${o}:${u}:${c}.000Z`}const r=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds());return new Date(r).toISOString()},hr=(e,t)=>{const n=De(JSON.parse(JSON.stringify(e))),r=qt(n,{hours:0,minutes:0,seconds:0,milliseconds:0});return t?qF(r):r},Di=(e,t,n,r)=>{let s=e?De(e):De();return(t||t===0)&&(s=I$(s,+t)),(n||n===0)&&(s=N$(s,+n)),(r||r===0)&&(s=ow(s,+r)),lw(s,0)},on=(e,t)=>!e||!t?!1:Eo(hr(e),hr(t)),kt=(e,t)=>!e||!t?!1:el(hr(e),hr(t)),_n=(e,t)=>!e||!t?!1:yl(hr(e),hr(t)),fd=(e,t,n)=>e!=null&&e[0]&&e!=null&&e[1]?_n(n,e[0])&&on(n,e[1]):e!=null&&e[0]&&t?_n(n,e[0])&&on(n,t)||on(n,e[0])&&_n(n,t):!1,hs=e=>{const t=qt(new Date(e),{date:1});return hr(t)},eh=(e,t,n)=>t&&(n||n===0)?Object.fromEntries(["hours","minutes","seconds"].map(r=>r===t?[r,n]:[r,isNaN(+e[r])?void 0:+e[r]])):{hours:isNaN(+e.hours)?void 0:+e.hours,minutes:isNaN(+e.minutes)?void 0:+e.minutes,seconds:isNaN(+e.seconds)?void 0:+e.seconds},ga=e=>({hours:ri(e),minutes:Vi(e),seconds:vl(e)}),mw=(e,t)=>{if(t){const n=lt(De(t));if(n>e)return 12;if(n===e)return wt(De(t))}},gw=(e,t)=>{if(t){const n=lt(De(t));return n{if(e)return lt(De(e))},vw=(e,t)=>{const n=_n(e,t)?t:e,r=_n(t,e)?t:e;return G1({start:n,end:r})},X$=e=>{const t=gs(e,1);return{month:wt(t),year:lt(t)}},Ks=(e,t)=>{const n=ys(e,{weekStartsOn:+t}),r=Z1(e,{weekStartsOn:+t});return[n,r]},yw=(e,t)=>{const n={hours:ri(De()),minutes:Vi(De()),seconds:t?vl(De()):0};return Object.assign(n,e)},Ti=(e,t,n)=>[qt(De(e),{date:1}),qt(De(),{month:t,year:n,date:1})],Xs=(e,t,n)=>{let r=e?De(e):De();return(t||t===0)&&(r=aw(r,t)),n&&(r=Rs(r,n)),r},_w=(e,t,n,r,s)=>{if(!r||s&&!t||!s&&!n)return!1;const a=s?gs(e,1):_l(e,1),o=[wt(a),lt(a)];return s?!e5(...o,t):!Q$(...o,n)},Q$=(e,t,n)=>on(...Ti(n,e,t))||kt(...Ti(n,e,t)),e5=(e,t,n)=>_n(...Ti(n,e,t))||kt(...Ti(n,e,t)),bw=(e,t,n,r,s,a,o)=>{if(typeof t=="function"&&!o)return t(e);const u=n?{locale:n}:void 0;return Array.isArray(e)?`${Ds(e[0],a,u)}${s&&!e[1]?"":r}${e[1]?Ds(e[1],a,u):""}`:Ds(e,a,u)},Ka=e=>{if(e)return null;throw new Error(im.prop("partial-range"))},qu=(e,t)=>{if(t)return e();throw new Error(im.prop("range"))},Kh=e=>Array.isArray(e)?oo(e[0])&&(e[1]?oo(e[1]):!0):e?oo(e):!1,t5=(e,t)=>qt(t??De(),{hours:+e.hours||0,minutes:+e.minutes||0,seconds:+e.seconds||0}),th=(e,t,n,r)=>{if(!e)return!0;if(r){const s=n==="max"?Eo(e,t):yl(e,t),a={seconds:0,milliseconds:0};return s||el(qt(e,a),qt(t,a))}return n==="max"?e.getTime()<=t.getTime():e.getTime()>=t.getTime()},nh=(e,t,n)=>e?t5(e,t):De(n??t),y0=(e,t,n,r,s)=>{if(Array.isArray(r)){const o=nh(e,r[0],t),u=nh(e,r[1],t);return th(r[0],o,n,!!t)&&th(r[1],u,n,!!t)&&s}const a=nh(e,r,t);return th(r,a,n,!!t)&&s},rh=e=>qt(De(),ga(e)),n5=(e,t)=>e instanceof Map?Array.from(e.values()).filter(n=>lt(De(n))===t).map(n=>wt(n)):[],ww=(e,t,n)=>typeof e=="function"?e({month:t,year:n}):!!e.months.find(r=>r.month===t&&r.year===n),lm=(e,t)=>typeof e=="function"?e(t):e.years.includes(t),xw=e=>Ds(e,"yyyy-MM-dd"),Jl=Hr({menuFocused:!1,shiftKeyInMenu:!1}),kw=()=>{const e=n=>{Jl.menuFocused=n},t=n=>{Jl.shiftKeyInMenu!==n&&(Jl.shiftKeyInMenu=n)};return{control:pe(()=>({shiftKeyInMenu:Jl.shiftKeyInMenu,menuFocused:Jl.menuFocused})),setMenuFocused:e,setShiftKey:t}},Gt=Hr({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),sh=fe(null),Wu=fe(!1),ih=fe(!1),ah=fe(!1),lh=fe(!1),Zn=fe(0),vn=fe(0),Ui=()=>{const e=pe(()=>Wu.value?[...Gt.selectionGrid,Gt.actionRow].filter(p=>p.length):ih.value?[...Gt.timePicker[0],...Gt.timePicker[1],lh.value?[]:[sh.value],Gt.actionRow].filter(p=>p.length):ah.value?[...Gt.monthPicker,Gt.actionRow]:[Gt.monthYear,...Gt.calendar,Gt.time,Gt.actionRow].filter(p=>p.length)),t=p=>{Zn.value=p?Zn.value+1:Zn.value-1;let m=null;e.value[vn.value]&&(m=e.value[vn.value][Zn.value]),!m&&e.value[vn.value+(p?1:-1)]?(vn.value=vn.value+(p?1:-1),Zn.value=p?0:e.value[vn.value].length-1):m||(Zn.value=p?Zn.value-1:Zn.value+1)},n=p=>{vn.value===0&&!p||vn.value===e.value.length&&p||(vn.value=p?vn.value+1:vn.value-1,e.value[vn.value]?e.value[vn.value]&&!e.value[vn.value][Zn.value]&&Zn.value!==0&&(Zn.value=e.value[vn.value].length-1):vn.value=p?vn.value-1:vn.value+1)},r=p=>{let m=null;e.value[vn.value]&&(m=e.value[vn.value][Zn.value]),m?m.focus({preventScroll:!Wu.value}):Zn.value=p?Zn.value-1:Zn.value+1},s=()=>{t(!0),r(!0)},a=()=>{t(!1),r(!1)},o=()=>{n(!1),r(!0)},u=()=>{n(!0),r(!0)},c=(p,m)=>{Gt[m]=p},h=(p,m)=>{Gt[m]=p},f=()=>{Zn.value=0,vn.value=0};return{buildMatrix:c,buildMultiLevelMatrix:h,setTimePickerBackRef:p=>{sh.value=p},setSelectionGrid:p=>{Wu.value=p,f(),p||(Gt.selectionGrid=[])},setTimePicker:(p,m=!1)=>{ih.value=p,lh.value=m,f(),p||(Gt.timePicker[0]=[],Gt.timePicker[1]=[])},setTimePickerElements:(p,m=0)=>{Gt.timePicker[m]=p},arrowRight:s,arrowLeft:a,arrowUp:o,arrowDown:u,clearArrowNav:()=>{Gt.monthYear=[],Gt.calendar=[],Gt.time=[],Gt.actionRow=[],Gt.selectionGrid=[],Gt.timePicker[0]=[],Gt.timePicker[1]=[],Wu.value=!1,ih.value=!1,lh.value=!1,ah.value=!1,f(),sh.value=null},setMonthPicker:p=>{ah.value=p,f()},refSets:Gt}},_0=e=>({menuAppearTop:"dp-menu-appear-top",menuAppearBottom:"dp-menu-appear-bottom",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down",...e??{}}),r5=e=>({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",calendarWrap:"Calendar wrapper",calendarDays:"Calendar days",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:t=>`Increment ${t}`,decrementValue:t=>`Decrement ${t}`,openTpOverlay:t=>`Open ${t} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",nextYear:"Next year",prevYear:"Previous year",day:void 0,weekDay:void 0,...e??{}}),b0=e=>e?typeof e=="boolean"?e?2:0:+e>=2?+e:2:0,s5=e=>{const t=typeof e=="object"&&e,n={static:!0,solo:!1};if(!e)return{...n,count:b0(!1)};const r=t?e:{},s=t?r.count??!0:e,a=b0(s);return Object.assign(n,r,{count:a})},i5=(e,t,n)=>e||(typeof n=="string"?n:t),a5=e=>typeof e=="boolean"?e?_0({}):!1:_0(e),l5=e=>{const t={enterSubmit:!0,tabSubmit:!0,openMenu:!0,selectOnFocus:!1,rangeSeparator:" - "};return typeof e=="object"?{...t,...e??{},enabled:!0}:{...t,enabled:e}},o5=e=>({months:[],years:[],times:{hours:[],minutes:[],seconds:[]},...e??{}}),u5=e=>({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0,...e??{}}),c5=e=>{const t={input:!1};return typeof e=="object"?{...t,...e??{},enabled:!0}:{enabled:e,...t}},d5=e=>({allowStopPropagation:!0,closeOnScroll:!1,modeHeight:255,allowPreventDefault:!1,closeOnClearValue:!0,closeOnAutoApply:!0,noSwipe:!1,keepActionRow:!1,onClickOutside:void 0,tabOutClosesMenu:!0,arrowLeft:void 0,keepViewOnOffsetClick:!1,timeArrowHoldThreshold:0,...e??{}}),f5=e=>{const t={dates:Array.isArray(e)?e.map(n=>De(n)):[],years:[],months:[],quarters:[],weeks:[],weekdays:[],options:{highlightDisabled:!1}};return typeof e=="function"?e:{...t,...e??{}}},h5=e=>typeof e=="object"?{type:(e==null?void 0:e.type)??"local",hideOnOffsetDates:(e==null?void 0:e.hideOnOffsetDates)??!1}:{type:e,hideOnOffsetDates:!1},p5=(e,t)=>typeof e=="object"?{enabled:!0,...{noDisabledRange:!1,showLastInRange:!0,minMaxRawRange:!1,partialRange:!0,disableTimeRangeValidation:!1,maxRange:void 0,minRange:void 0,autoRange:void 0,fixedStart:!1,fixedEnd:!1},...e}:{enabled:e,noDisabledRange:t.noDisabledRange,showLastInRange:t.showLastInRange,minMaxRawRange:t.minMaxRawRange,partialRange:t.partialRange,disableTimeRangeValidation:t.disableTimeRangeValidation,maxRange:t.maxRange,minRange:t.minRange,autoRange:t.autoRange,fixedStart:t.fixedStart,fixedEnd:t.fixedEnd},m5=(e,t)=>e?typeof e=="string"?{timezone:e,exactMatch:!1,dateInTz:void 0,emitTimezone:t,convertModel:!0}:{timezone:e.timezone,exactMatch:e.exactMatch??!1,dateInTz:e.dateInTz??void 0,emitTimezone:t??e.emitTimezone,convertModel:e.convertModel??!0}:{timezone:void 0,exactMatch:!1,emitTimezone:t},oh=(e,t,n)=>new Map(e.map(r=>{const s=rm(r,t,n);return[am(s),s]})),g5=(e,t)=>e.length?new Map(e.map(n=>{const r=rm(n.date,t);return[am(r),n]})):null,v5=e=>{var t;return{minDate:zh(e.minDate,e.timezone,e.isSpecific),maxDate:zh(e.maxDate,e.timezone,e.isSpecific),disabledDates:Qf(e.disabledDates)?oh(e.disabledDates,e.timezone,e.isSpecific):e.disabledDates,allowedDates:Qf(e.allowedDates)?oh(e.allowedDates,e.timezone,e.isSpecific):null,highlight:typeof e.highlight=="object"&&Qf((t=e.highlight)==null?void 0:t.dates)?oh(e.highlight.dates,e.timezone):e.highlight,markers:g5(e.markers,e.timezone)}},y5=(e,t)=>typeof e=="boolean"?{enabled:e,dragSelect:!0,limit:+t}:{enabled:!!e,limit:e.limit?+e.limit:null,dragSelect:e.dragSelect??!0},_5=e=>({...Object.fromEntries(Object.keys(e).map(t=>{const n=t,r=e[n],s=typeof e[n]=="string"?{[r]:!0}:Object.fromEntries(r.map(a=>[a,!0]));return[t,s]}))}),sn=e=>{const t=()=>{const U=e.enableSeconds?":ss":"",F=e.enableMinutes?":mm":"";return e.is24?`HH${F}${U}`:`hh${F}${U} aa`},n=()=>{var U;return e.format?e.format:e.monthPicker?"MM/yyyy":e.timePicker?t():e.weekPicker?`${((U=E.value)==null?void 0:U.type)==="iso"?"RR":"ww"}-yyyy`:e.yearPicker?"yyyy":e.quarterPicker?"QQQ/yyyy":e.enableTimePicker?`MM/dd/yyyy, ${t()}`:"MM/dd/yyyy"},r=U=>yw(U,e.enableSeconds),s=()=>O.value.enabled?e.startTime&&Array.isArray(e.startTime)?[r(e.startTime[0]),r(e.startTime[1])]:null:e.startTime&&!Array.isArray(e.startTime)?r(e.startTime):null,a=pe(()=>s5(e.multiCalendars)),o=pe(()=>s()),u=pe(()=>r5(e.ariaLabels)),c=pe(()=>o5(e.filters)),h=pe(()=>a5(e.transitions)),f=pe(()=>u5(e.actionRow)),p=pe(()=>i5(e.previewFormat,e.format,n())),m=pe(()=>l5(e.textInput)),y=pe(()=>c5(e.inline)),_=pe(()=>d5(e.config)),b=pe(()=>f5(e.highlight)),E=pe(()=>h5(e.weekNumbers)),H=pe(()=>m5(e.timezone,e.emitTimezone)),V=pe(()=>y5(e.multiDates,e.multiDatesLimit)),x=pe(()=>v5({minDate:e.minDate,maxDate:e.maxDate,disabledDates:e.disabledDates,allowedDates:e.allowedDates,highlight:b.value,markers:e.markers,timezone:H.value,isSpecific:e.monthPicker||e.yearPicker||e.quarterPicker})),O=pe(()=>p5(e.range,{minMaxRawRange:!1,maxRange:e.maxRange,minRange:e.minRange,noDisabledRange:e.noDisabledRange,showLastInRange:e.showLastInRange,partialRange:e.partialRange,disableTimeRangeValidation:e.disableTimeRangeValidation,autoRange:e.autoRange,fixedStart:e.fixedStart,fixedEnd:e.fixedEnd})),B=pe(()=>_5(e.ui));return{defaultedTransitions:h,defaultedMultiCalendars:a,defaultedStartTime:o,defaultedAriaLabels:u,defaultedFilters:c,defaultedActionRow:f,defaultedPreviewFormat:p,defaultedTextInput:m,defaultedInline:y,defaultedConfig:_,defaultedHighlight:b,defaultedWeekNumbers:E,defaultedRange:O,propDates:x,defaultedTz:H,defaultedMultiDates:V,defaultedUI:B,getDefaultPattern:n,getDefaultStartTime:s}},b5=(e,t,n)=>{const r=fe(),{defaultedTextInput:s,defaultedRange:a,defaultedTz:o,defaultedMultiDates:u,getDefaultPattern:c}=sn(t),h=fe(""),f=ll(t,"format"),p=ll(t,"formatLocale");Wt(r,()=>{typeof t.onInternalModelChange=="function"&&e("internal-model-change",r.value,ge(!0))},{deep:!0}),Wt(a,(z,Le)=>{z.enabled!==Le.enabled&&(r.value=null)}),Wt(f,()=>{J()});const m=z=>o.value.timezone&&o.value.convertModel?Er(z,o.value.timezone):z,y=z=>{if(o.value.timezone&&o.value.convertModel){const Le=$$(o.value.timezone);return VF(z,Le)}return z},_=(z,Le,Xe=!1)=>bw(z,t.format,t.formatLocale,s.value.rangeSeparator,t.modelAuto,Le??c(),Xe),b=z=>z?t.modelType?Me(z):{hours:ri(z),minutes:Vi(z),seconds:t.enableSeconds?vl(z):0}:null,E=z=>t.modelType?Me(z):{month:wt(z),year:lt(z)},H=z=>Array.isArray(z)?u.value.enabled?z.map(Le=>V(Le,Rs(De(),Le))):qu(()=>[Rs(De(),z[0]),z[1]?Rs(De(),z[1]):Ka(a.value.partialRange)],a.value.enabled):Rs(De(),+z),V=(z,Le)=>(typeof z=="string"||typeof z=="number")&&t.modelType?_e(z):Le,x=z=>Array.isArray(z)?[V(z[0],Di(null,+z[0].hours,+z[0].minutes,z[0].seconds)),V(z[1],Di(null,+z[1].hours,+z[1].minutes,z[1].seconds))]:V(z,Di(null,z.hours,z.minutes,z.seconds)),O=z=>{const Le=qt(De(),{date:1});return Array.isArray(z)?u.value.enabled?z.map(Xe=>V(Xe,Xs(Le,+Xe.month,+Xe.year))):qu(()=>[V(z[0],Xs(Le,+z[0].month,+z[0].year)),V(z[1],z[1]?Xs(Le,+z[1].month,+z[1].year):Ka(a.value.partialRange))],a.value.enabled):V(z,Xs(Le,+z.month,+z.year))},B=z=>{if(Array.isArray(z))return z.map(Le=>_e(Le));throw new Error(im.dateArr("multi-dates"))},U=z=>{if(Array.isArray(z)&&a.value.enabled){const Le=z[0],Xe=z[1];return[De(Array.isArray(Le)?Le[0]:null),De(Array.isArray(Xe)?Xe[0]:null)]}return De(z[0])},F=z=>t.modelAuto?Array.isArray(z)?[_e(z[0]),_e(z[1])]:t.autoApply?[_e(z)]:[_e(z),null]:Array.isArray(z)?qu(()=>z[1]?[_e(z[0]),z[1]?_e(z[1]):Ka(a.value.partialRange)]:[_e(z[0])],a.value.enabled):_e(z),D=()=>{Array.isArray(r.value)&&a.value.enabled&&r.value.length===1&&r.value.push(Ka(a.value.partialRange))},T=()=>{const z=r.value;return[Me(z[0]),z[1]?Me(z[1]):Ka(a.value.partialRange)]},$=()=>r.value[1]?T():Me(Fn(r.value[0])),se=()=>(r.value||[]).map(z=>Me(z)),ee=(z=!1)=>(z||D(),t.modelAuto?$():u.value.enabled?se():Array.isArray(r.value)?qu(()=>T(),a.value.enabled):Me(Fn(r.value))),de=z=>!z||Array.isArray(z)&&!z.length?null:t.timePicker?x(Fn(z)):t.monthPicker?O(Fn(z)):t.yearPicker?H(Fn(z)):u.value.enabled?B(Fn(z)):t.weekPicker?U(Fn(z)):F(Fn(z)),ne=z=>{const Le=de(z);Kh(Fn(Le))?(r.value=Fn(Le),J()):(r.value=null,h.value="")},N=()=>{const z=Le=>Ds(Le,s.value.format);return`${z(r.value[0])} ${s.value.rangeSeparator} ${r.value[1]?z(r.value[1]):""}`},G=()=>n.value&&r.value?Array.isArray(r.value)?N():Ds(r.value,s.value.format):_(r.value),k=()=>r.value?u.value.enabled?r.value.map(z=>_(z)).join("; "):s.value.enabled&&typeof s.value.format=="string"?G():_(r.value):"",J=()=>{!t.format||typeof t.format=="string"||s.value.enabled&&typeof s.value.format=="string"?h.value=k():h.value=t.format(r.value)},_e=z=>{if(t.utc){const Le=new Date(z);return t.utc==="preserve"?new Date(Le.getTime()+Le.getTimezoneOffset()*6e4):Le}return t.modelType?B$.includes(t.modelType)?m(new Date(z)):t.modelType==="format"&&(typeof t.format=="string"||!t.format)?m(Yh(z,c(),new Date,{locale:p.value})):m(Yh(z,t.modelType,new Date,{locale:p.value})):m(new Date(z))},Me=z=>z?t.utc?Z$(z,t.utc==="preserve",t.enableSeconds):t.modelType?t.modelType==="timestamp"?+y(z):t.modelType==="iso"?y(z).toISOString():t.modelType==="format"&&(typeof t.format=="string"||!t.format)?_(y(z)):_(y(z),t.modelType,!0):y(z):"",Ne=(z,Le=!1,Xe=!1)=>{if(Xe)return z;if(e("update:model-value",z),o.value.emitTimezone&&Le){const we=Array.isArray(z)?z.map(et=>Er(Fn(et),o.value.emitTimezone)):Er(Fn(z),o.value.emitTimezone);e("update:model-timezone-value",we)}},j=z=>Array.isArray(r.value)?u.value.enabled?r.value.map(Le=>z(Le)):[z(r.value[0]),r.value[1]?z(r.value[1]):Ka(a.value.partialRange)]:z(Fn(r.value)),te=()=>{if(Array.isArray(r.value)){const z=Ks(r.value[0],t.weekStart),Le=r.value[1]?Ks(r.value[1],t.weekStart):[];return[z.map(Xe=>De(Xe)),Le.map(Xe=>De(Xe))]}return Ks(r.value,t.weekStart).map(z=>De(z))},M=(z,Le)=>Ne(Fn(j(z)),!1,Le),ie=z=>{const Le=te();return z?Le:e("update:model-value",te())},ge=(z=!1)=>(z||J(),t.monthPicker?M(E,z):t.timePicker?M(b,z):t.yearPicker?M(lt,z):t.weekPicker?ie(z):Ne(ee(z),!0,z));return{inputValue:h,internalModelValue:r,checkBeforeEmit:()=>r.value?a.value.enabled?a.value.partialRange?r.value.length>=1:r.value.length===2:!!r.value:!1,parseExternalModelValue:ne,formatInputValue:J,emitModelValue:ge}},w5=(e,t)=>{const{defaultedFilters:n,propDates:r}=sn(e),{validateMonthYearInRange:s}=ji(e),a=(f,p)=>{let m=f;return n.value.months.includes(wt(m))?(m=p?gs(f,1):_l(f,1),a(m,p)):m},o=(f,p)=>{let m=f;return n.value.years.includes(lt(m))?(m=p?Yp(f,1):uw(f,1),o(m,p)):m},u=(f,p=!1)=>{const m=qt(De(),{month:e.month,year:e.year});let y=f?gs(m,1):_l(m,1);e.disableYearSelect&&(y=Rs(y,e.year));let _=wt(y),b=lt(y);n.value.months.includes(_)&&(y=a(y,f),_=wt(y),b=lt(y)),n.value.years.includes(b)&&(y=o(y,f),b=lt(y)),s(_,b,f,e.preventMinMaxNavigation)&&c(_,b,p)},c=(f,p,m)=>{t("update-month-year",{month:f,year:p,fromNav:m})},h=pe(()=>f=>_w(qt(De(),{month:e.month,year:e.year}),r.value.maxDate,r.value.minDate,e.preventMinMaxNavigation,f));return{handleMonthYearChange:u,isDisabled:h,updateMonthYear:c}},hd={multiCalendars:{type:[Boolean,Number,String,Object],default:void 0},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},autoPosition:{type:Boolean,default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:[String,Object],default:null},emitTimezone:{type:String,default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},menuClassName:{type:String,default:null},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},calendarCellClassName:{type:String,default:null},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},autoRange:{type:[Number,String],default:null},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetDates:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},minRange:{type:[Number,String],default:null},maxRange:{type:[Number,String],default:null},multiDatesLimit:{type:[Number,String],default:null},reverseYears:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},disableTimeRangeValidation:{type:Boolean,default:!1},highlight:{type:[Function,Object],default:null},teleport:{type:[Boolean,String,Object],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function,Object],default:null},calendarClassName:{type:String,default:null},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:[Object,Boolean],default:!1},partialRange:{type:Boolean,default:!0},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},inputClassName:{type:String,default:null},fixedStart:{type:Boolean,default:!1},fixedEnd:{type:Boolean,default:!1},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:[Boolean,Object],default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:[Boolean,Object],default:!1},textInput:{type:[Boolean,Object],default:!1},noDisabledRange:{type:Boolean,default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:[Function,Array],default:void 0},showLastInRange:{type:Boolean,default:!0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},config:{type:Object,default:void 0},quarterPicker:{type:Boolean,default:!1},yearFirst:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},onInternalModelChange:{type:[Function,Object],default:null},enableMinutes:{type:Boolean,default:!0},ui:{type:Object,default:()=>({})}},bs={...hd,shadow:{type:Boolean,default:!1},flowStep:{type:Number,default:0},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},menuWrapRef:{type:Object,default:null},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1}},x5=["title"],k5=["disabled"],S5=fn({compatConfig:{MODE:3},__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},calendarWidth:{type:Number,default:0},...bs},emits:["close-picker","select-date","select-now","invalid-select"],setup(e,{emit:t}){const n=t,r=e,{defaultedActionRow:s,defaultedPreviewFormat:a,defaultedMultiCalendars:o,defaultedTextInput:u,defaultedInline:c,defaultedRange:h,defaultedMultiDates:f,getDefaultPattern:p}=sn(r),{isTimeValid:m,isMonthValid:y}=ji(r),{buildMatrix:_}=Ui(),b=fe(null),E=fe(null),H=fe(!1),V=fe({}),x=fe(null),O=fe(null);Ft(()=>{r.arrowNavigation&&_([Ln(b),Ln(E)],"actionRow"),B(),window.addEventListener("resize",B)}),ii(()=>{window.removeEventListener("resize",B)});const B=()=>{H.value=!1,setTimeout(()=>{var N,G;const k=(N=x.value)==null?void 0:N.getBoundingClientRect(),J=(G=O.value)==null?void 0:G.getBoundingClientRect();k&&J&&(V.value.maxWidth=`${J.width-k.width-20}px`),H.value=!0},0)},U=pe(()=>h.value.enabled&&!h.value.partialRange&&r.internalModelValue?r.internalModelValue.length===2:!0),F=pe(()=>!m.value(r.internalModelValue)||!y.value(r.internalModelValue)||!U.value),D=()=>{const N=a.value;return r.timePicker||r.monthPicker,N(Fn(r.internalModelValue))},T=()=>{const N=r.internalModelValue;return o.value.count>0?`${$(N[0])} - ${$(N[1])}`:[$(N[0]),$(N[1])]},$=N=>bw(N,a.value,r.formatLocale,u.value.rangeSeparator,r.modelAuto,p()),se=pe(()=>!r.internalModelValue||!r.menuMount?"":typeof a.value=="string"?Array.isArray(r.internalModelValue)?r.internalModelValue.length===2&&r.internalModelValue[1]?T():f.value.enabled?r.internalModelValue.map(N=>`${$(N)}`):r.modelAuto?`${$(r.internalModelValue[0])}`:`${$(r.internalModelValue[0])} -`:$(r.internalModelValue):D()),ee=()=>f.value.enabled?"; ":" - ",de=pe(()=>Array.isArray(se.value)?se.value.join(ee()):se.value),ne=()=>{m.value(r.internalModelValue)&&y.value(r.internalModelValue)&&U.value?n("select-date"):n("invalid-select")};return(N,G)=>(S(),P("div",{ref_key:"actionRowRef",ref:O,class:"dp__action_row"},[N.$slots["action-row"]?Ie(N.$slots,"action-row",wn(cn({key:0},{internalModelValue:N.internalModelValue,disabled:F.value,selectDate:()=>N.$emit("select-date"),closePicker:()=>N.$emit("close-picker")}))):(S(),P(Ve,{key:1},[Z(s).showPreview?(S(),P("div",{key:0,class:"dp__selection_preview",title:de.value,style:bn(V.value)},[N.$slots["action-preview"]&&H.value?Ie(N.$slots,"action-preview",{key:0,value:N.internalModelValue}):ae("",!0),!N.$slots["action-preview"]&&H.value?(S(),P(Ve,{key:1},[ht(re(de.value),1)],64)):ae("",!0)],12,x5)):ae("",!0),v("div",{ref_key:"actionBtnContainer",ref:x,class:"dp__action_buttons","data-dp-element":"action-row"},[N.$slots["action-buttons"]?Ie(N.$slots,"action-buttons",{key:0,value:N.internalModelValue}):ae("",!0),N.$slots["action-buttons"]?ae("",!0):(S(),P(Ve,{key:1},[!Z(c).enabled&&Z(s).showCancel?(S(),P("button",{key:0,ref_key:"cancelButtonRef",ref:b,type:"button",class:"dp__action_button dp__action_cancel",onClick:G[0]||(G[0]=k=>N.$emit("close-picker")),onKeydown:G[1]||(G[1]=k=>Z(Tr)(k,()=>N.$emit("close-picker")))},re(N.cancelText),545)):ae("",!0),Z(s).showNow?(S(),P("button",{key:1,type:"button",class:"dp__action_button dp__action_cancel",onClick:G[2]||(G[2]=k=>N.$emit("select-now")),onKeydown:G[3]||(G[3]=k=>Z(Tr)(k,()=>N.$emit("select-now")))},re(N.nowButtonLabel),33)):ae("",!0),Z(s).showSelect?(S(),P("button",{key:2,ref_key:"selectButtonRef",ref:E,type:"button",class:"dp__action_button dp__action_select",disabled:F.value,"data-test":"select-button",onKeydown:G[4]||(G[4]=k=>Z(Tr)(k,()=>ne())),onClick:ne},re(N.selectText),41,k5)):ae("",!0)],64))],512)],64))],512))}}),T5={class:"dp__selection_grid_header"},C5=["aria-selected","aria-disabled","data-test","onClick","onKeydown","onMouseover"],A5=["aria-label"],$o=fn({__name:"SelectionOverlay",props:{items:{},type:{},isLast:{type:Boolean},arrowNavigation:{type:Boolean},skipButtonRef:{type:Boolean},headerRefs:{},hideNavigation:{},escClose:{type:Boolean},useRelative:{type:Boolean},height:{},textInput:{type:[Boolean,Object]},config:{},noOverlayFocus:{type:Boolean},focusValue:{},menuWrapRef:{},ariaLabels:{}},emits:["selected","toggle","reset-flow","hover-value"],setup(e,{expose:t,emit:n}){const{setSelectionGrid:r,buildMultiLevelMatrix:s,setMonthPicker:a}=Ui(),o=n,u=e,{defaultedAriaLabels:c,defaultedTextInput:h,defaultedConfig:f}=sn(u),{hideNavigationButtons:p}=gd(),m=fe(!1),y=fe(null),_=fe(null),b=fe([]),E=fe(),H=fe(null),V=fe(0),x=fe(null);Xc(()=>{y.value=null}),Ft(()=>{Un().then(()=>se()),u.noOverlayFocus||B(),O(!0)}),ii(()=>O(!1));const O=j=>{var te;u.arrowNavigation&&((te=u.headerRefs)!=null&&te.length?a(j):r(j))},B=()=>{var j;const te=Ln(_);te&&(h.value.enabled||(y.value?(j=y.value)==null||j.focus({preventScroll:!0}):te.focus({preventScroll:!0})),m.value=te.clientHeight({dp__overlay:!0,"dp--overlay-absolute":!u.useRelative,"dp--overlay-relative":u.useRelative})),F=pe(()=>u.useRelative?{height:`${u.height}px`,width:"260px"}:void 0),D=pe(()=>({dp__overlay_col:!0})),T=pe(()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:m.value,dp__button_bottom:u.isLast})),$=pe(()=>{var j,te;return{dp__overlay_container:!0,dp__container_flex:((j=u.items)==null?void 0:j.length)<=6,dp__container_block:((te=u.items)==null?void 0:te.length)>6}});Wt(()=>u.items,()=>se(!1),{deep:!0});const se=(j=!0)=>{Un().then(()=>{const te=Ln(y),M=Ln(_),ie=Ln(H),ge=Ln(x),z=ie?ie.getBoundingClientRect().height:0;M&&(M.getBoundingClientRect().height?V.value=M.getBoundingClientRect().height-z:V.value=f.value.modeHeight-z),te&&ge&&j&&(ge.scrollTop=te.offsetTop-ge.offsetTop-(V.value/2-te.getBoundingClientRect().height)-z)})},ee=j=>{j.disabled||o("selected",j.value)},de=()=>{o("toggle"),o("reset-flow")},ne=()=>{u.escClose&&de()},N=(j,te,M,ie)=>{j&&((te.active||te.value===u.focusValue)&&(y.value=j),u.arrowNavigation&&(Array.isArray(b.value[M])?b.value[M][ie]=j:b.value[M]=[j],G()))},G=()=>{var j,te;const M=(j=u.headerRefs)!=null&&j.length?[u.headerRefs].concat(b.value):b.value.concat([u.skipButtonRef?[]:[H.value]]);s(Fn(M),(te=u.headerRefs)!=null&&te.length?"monthPicker":"selectionGrid")},k=j=>{u.arrowNavigation||Ri(j,f.value,!0)},J=j=>{E.value=j,o("hover-value",j)},_e=()=>{if(de(),!u.isLast){const j=K$(u.menuWrapRef??null,"action-row");if(j){const te=hw(j);te==null||te.focus()}}},Me=j=>{switch(j.key){case nn.esc:return ne();case nn.arrowLeft:return k(j);case nn.arrowRight:return k(j);case nn.arrowUp:return k(j);case nn.arrowDown:return k(j);default:return}},Ne=j=>{if(j.key===nn.enter)return de();if(j.key===nn.tab)return _e()};return t({focusGrid:B}),(j,te)=>{var M;return S(),P("div",{ref_key:"gridWrapRef",ref:_,class:Be(U.value),style:bn(F.value),role:"dialog",tabindex:"0",onKeydown:Me,onClick:te[0]||(te[0]=Et(()=>{},["prevent"]))},[v("div",{ref_key:"containerRef",ref:x,class:Be($.value),role:"grid",style:bn({"--dp-overlay-height":`${V.value}px`})},[v("div",T5,[Ie(j.$slots,"header")]),j.$slots.overlay?Ie(j.$slots,"overlay",{key:0}):(S(!0),P(Ve,{key:1},Qe(j.items,(ie,ge)=>(S(),P("div",{key:ge,class:Be(["dp__overlay_row",{dp__flex_row:j.items.length>=3}]),role:"row"},[(S(!0),P(Ve,null,Qe(ie,(z,Le)=>(S(),P("div",{key:z.value,ref_for:!0,ref:Xe=>N(Xe,z,ge,Le),role:"gridcell",class:Be(D.value),"aria-selected":z.active||void 0,"aria-disabled":z.disabled||void 0,tabindex:"0","data-test":z.text,onClick:Et(Xe=>ee(z),["prevent"]),onKeydown:Xe=>Z(Tr)(Xe,()=>ee(z),!0),onMouseover:Xe=>J(z.value)},[v("div",{class:Be(z.className)},[j.$slots.item?Ie(j.$slots,"item",{key:0,item:z}):ae("",!0),j.$slots.item?ae("",!0):(S(),P(Ve,{key:1},[ht(re(z.text),1)],64))],2)],42,C5))),128))],2))),128))],6),j.$slots["button-icon"]?Dn((S(),P("button",{key:0,ref_key:"toggleButton",ref:H,type:"button","aria-label":(M=Z(c))==null?void 0:M.toggleOverlay,class:Be(T.value),tabindex:"0",onClick:de,onKeydown:Ne},[Ie(j.$slots,"button-icon")],42,A5)),[[Fr,!Z(p)(j.hideNavigation,j.type)]]):ae("",!0)],38)}}}),pd=fn({__name:"InstanceWrap",props:{multiCalendars:{},stretch:{type:Boolean},collapse:{type:Boolean}},setup(e){const t=e,n=pe(()=>t.multiCalendars>0?[...Array(t.multiCalendars).keys()]:[0]),r=pe(()=>({dp__instance_calendar:t.multiCalendars>0}));return(s,a)=>(S(),P("div",{class:Be({dp__menu_inner:!s.stretch,"dp--menu--inner-stretched":s.stretch,dp__flex_display:s.multiCalendars>0,"dp--flex-display-collapsed":s.collapse})},[(S(!0),P(Ve,null,Qe(n.value,(o,u)=>(S(),P("div",{key:o,class:Be(r.value)},[Ie(s.$slots,"default",{instance:o,index:u})],2))),128))],2))}}),E5=["aria-label","aria-disabled"],uo=fn({compatConfig:{MODE:3},__name:"ArrowBtn",props:{ariaLabel:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(e,{emit:t}){const n=t,r=fe(null);return Ft(()=>n("set-ref",r)),(s,a)=>(S(),P("button",{ref_key:"elRef",ref:r,type:"button",class:"dp__btn dp--arrow-btn-nav",tabindex:"0","aria-label":s.ariaLabel,"aria-disabled":s.disabled||void 0,onClick:a[0]||(a[0]=o=>s.$emit("activate")),onKeydown:a[1]||(a[1]=o=>Z(Tr)(o,()=>s.$emit("activate"),!0))},[v("span",{class:Be(["dp__inner_nav",{dp__inner_nav_disabled:s.disabled}])},[Ie(s.$slots,"default")],2)],40,E5))}}),O5={class:"dp--year-mode-picker"},M5=["aria-label","data-test"],Sw=fn({__name:"YearModePicker",props:{...bs,showYearPicker:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},instance:{type:Number,default:0},year:{type:Number,default:0},isDisabled:{type:Function,default:()=>!1}},emits:["toggle-year-picker","year-select","handle-year"],setup(e,{emit:t}){const n=t,r=e,{showRightIcon:s,showLeftIcon:a}=gd(),{defaultedConfig:o,defaultedMultiCalendars:u,defaultedAriaLabels:c,defaultedTransitions:h,defaultedUI:f}=sn(r),{showTransition:p,transitionName:m}=Bo(h),y=(E=!1,H)=>{n("toggle-year-picker",{flow:E,show:H})},_=E=>{n("year-select",E)},b=(E=!1)=>{n("handle-year",E)};return(E,H)=>{var V,x,O,B,U;return S(),P("div",O5,[Z(a)(Z(u),e.instance)?(S(),it(uo,{key:0,ref:"mpPrevIconRef","aria-label":(V=Z(c))==null?void 0:V.prevYear,disabled:e.isDisabled(!1),class:Be((x=Z(f))==null?void 0:x.navBtnPrev),onActivate:H[0]||(H[0]=F=>b(!1))},{default:Te(()=>[E.$slots["arrow-left"]?Ie(E.$slots,"arrow-left",{key:0}):ae("",!0),E.$slots["arrow-left"]?ae("",!0):(S(),it(Z(Xp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):ae("",!0),v("button",{ref:"mpYearButtonRef",class:"dp__btn dp--year-select",type:"button","aria-label":(O=Z(c))==null?void 0:O.openYearsOverlay,"data-test":`year-mode-btn-${e.instance}`,onClick:H[1]||(H[1]=()=>y(!1)),onKeydown:H[2]||(H[2]=$n(()=>y(!1),["enter"]))},[E.$slots.year?Ie(E.$slots,"year",{key:0,year:e.year}):ae("",!0),E.$slots.year?ae("",!0):(S(),P(Ve,{key:1},[ht(re(e.year),1)],64))],40,M5),Z(s)(Z(u),e.instance)?(S(),it(uo,{key:1,ref:"mpNextIconRef","aria-label":(B=Z(c))==null?void 0:B.nextYear,disabled:e.isDisabled(!0),class:Be((U=Z(f))==null?void 0:U.navBtnNext),onActivate:H[3]||(H[3]=F=>b(!0))},{default:Te(()=>[E.$slots["arrow-right"]?Ie(E.$slots,"arrow-right",{key:0}):ae("",!0),E.$slots["arrow-right"]?ae("",!0):(S(),it(Z(Qp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):ae("",!0),he(vs,{name:Z(m)(e.showYearPicker),css:Z(p)},{default:Te(()=>[e.showYearPicker?(S(),it($o,{key:0,items:e.items,"text-input":E.textInput,"esc-close":E.escClose,config:E.config,"is-last":E.autoApply&&!Z(o).keepActionRow,"hide-navigation":E.hideNavigation,"aria-labels":E.ariaLabels,type:"year",onToggle:y,onSelected:H[4]||(H[4]=F=>_(F))},Hn({"button-icon":Te(()=>[E.$slots["calendar-icon"]?Ie(E.$slots,"calendar-icon",{key:0}):ae("",!0),E.$slots["calendar-icon"]?ae("",!0):(S(),it(Z(Al),{key:1}))]),_:2},[E.$slots["year-overlay-value"]?{name:"item",fn:Te(({item:F})=>[Ie(E.$slots,"year-overlay-value",{text:F.text,value:F.value})]),key:"0"}:void 0]),1032,["items","text-input","esc-close","config","is-last","hide-navigation","aria-labels"])):ae("",!0)]),_:3},8,["name","css"])])}}}),om=(e,t,n)=>{if(t.value&&Array.isArray(t.value))if(t.value.some(r=>kt(e,r))){const r=t.value.filter(s=>!kt(s,e));t.value=r.length?r:null}else(n&&+n>t.value.length||!n)&&t.value.push(e);else t.value=[e]},um=(e,t,n)=>{let r=e.value?e.value.slice():[];return r.length===2&&r[1]!==null&&(r=[]),r.length?on(t,r[0])?(r.unshift(t),n("range-start",r[0]),n("range-start",r[1])):(r[1]=t,n("range-end",t)):(r=[t],n("range-start",t)),r},md=(e,t,n,r)=>{e&&(e[0]&&e[1]&&n&&t("auto-apply"),e[0]&&!e[1]&&r&&n&&t("auto-apply"))},Tw=e=>{Array.isArray(e.value)&&e.value.length<=2&&e.range?e.modelValue.value=e.value.map(t=>Er(De(t),e.timezone)):Array.isArray(e.value)||(e.modelValue.value=Er(De(e.value),e.timezone))},Cw=(e,t,n,r)=>Array.isArray(t.value)&&(t.value.length===2||t.value.length===1&&r.value.partialRange)?r.value.fixedStart&&(_n(e,t.value[0])||kt(e,t.value[0]))?[t.value[0],e]:r.value.fixedEnd&&(on(e,t.value[1])||kt(e,t.value[1]))?[e,t.value[1]]:(n("invalid-fixed-range",e),t.value):[],Aw=({multiCalendars:e,range:t,highlight:n,propDates:r,calendars:s,modelValue:a,props:o,filters:u,year:c,month:h,emit:f})=>{const p=pe(()=>sm(o.yearRange,o.locale,o.reverseYears)),m=fe([!1]),y=pe(()=>($,se)=>{const ee=qt(hs(new Date),{month:h.value($),year:c.value($)}),de=se?J1(ee):Ao(ee);return _w(de,r.value.maxDate,r.value.minDate,o.preventMinMaxNavigation,se)}),_=()=>Array.isArray(a.value)&&e.value.solo&&a.value[1],b=()=>{for(let $=0;${if(!$)return b();const se=qt(De(),s.value[$]);return s.value[0].year=lt(uw(se,e.value.count-1)),b()},H=($,se)=>{const ee=UF(se,$);return t.value.showLastInRange&&ee>1?se:$},V=$=>o.focusStartDate||e.value.solo?$[0]:$[1]?H($[0],$[1]):$[0],x=()=>{if(a.value){const $=Array.isArray(a.value)?V(a.value):a.value;s.value[0]={month:wt($),year:lt($)}}},O=()=>{x(),e.value.count&&b()};Wt(a,($,se)=>{o.isTextInputDate&&JSON.stringify($??{})!==JSON.stringify(se??{})&&O()}),Ft(()=>{O()});const B=($,se)=>{s.value[se].year=$,f("update-month-year",{instance:se,year:$,month:s.value[se].month}),e.value.count&&!e.value.solo&&E(se)},U=pe(()=>$=>bl(p.value,se=>{var ee;const de=c.value($)===se.value,ne=Oo(se.value,wl(r.value.minDate),wl(r.value.maxDate))||((ee=u.value.years)==null?void 0:ee.includes(c.value($))),N=lm(n.value,se.value);return{active:de,disabled:ne,highlighted:N}})),F=($,se)=>{B($,se),T(se)},D=($,se=!1)=>{if(!y.value($,se)){const ee=se?c.value($)+1:c.value($)-1;B(ee,$)}},T=($,se=!1,ee)=>{se||f("reset-flow"),ee!==void 0?m.value[$]=ee:m.value[$]=!m.value[$],m.value[$]?f("overlay-toggle",{open:!0,overlay:Qn.year}):(f("overlay-closed"),f("overlay-toggle",{open:!1,overlay:Qn.year}))};return{isDisabled:y,groupedYears:U,showYearPicker:m,selectYear:B,toggleYearPicker:T,handleYearSelect:F,handleYear:D}},R5=(e,t)=>{const{defaultedMultiCalendars:n,defaultedAriaLabels:r,defaultedTransitions:s,defaultedConfig:a,defaultedRange:o,defaultedHighlight:u,propDates:c,defaultedTz:h,defaultedFilters:f,defaultedMultiDates:p}=sn(e),m=()=>{e.isTextInputDate&&O(lt(De(e.startDate)),0)},{modelValue:y,year:_,month:b,calendars:E}=Ho(e,t,m),H=pe(()=>dw(e.formatLocale,e.locale,e.monthNameFormat)),V=fe(null),{checkMinMaxRange:x}=ji(e),{selectYear:O,groupedYears:B,showYearPicker:U,toggleYearPicker:F,handleYearSelect:D,handleYear:T,isDisabled:$}=Aw({modelValue:y,multiCalendars:n,range:o,highlight:u,calendars:E,year:_,propDates:c,month:b,filters:f,props:e,emit:t});Ft(()=>{e.startDate&&(y.value&&e.focusStartDate||!y.value)&&O(lt(De(e.startDate)),0)});const se=M=>M?{month:wt(M),year:lt(M)}:{month:null,year:null},ee=()=>y.value?Array.isArray(y.value)?y.value.map(M=>se(M)):se(y.value):se(),de=(M,ie)=>{const ge=E.value[M],z=ee();return Array.isArray(z)?z.some(Le=>Le.year===(ge==null?void 0:ge.year)&&Le.month===ie):(ge==null?void 0:ge.year)===z.year&&ie===z.month},ne=(M,ie,ge)=>{var z,Le;const Xe=ee();return Array.isArray(Xe)?_.value(ie)===((z=Xe[ge])==null?void 0:z.year)&&M===((Le=Xe[ge])==null?void 0:Le.month):!1},N=(M,ie)=>{if(o.value.enabled){const ge=ee();if(Array.isArray(y.value)&&Array.isArray(ge)){const z=ne(M,ie,0)||ne(M,ie,1),Le=Xs(hs(De()),M,_.value(ie));return fd(y.value,V.value,Le)&&!z}return!1}return!1},G=pe(()=>M=>bl(H.value,ie=>{var ge;const z=de(M,ie.value),Le=Oo(ie.value,mw(_.value(M),c.value.minDate),gw(_.value(M),c.value.maxDate))||n5(c.value.disabledDates,_.value(M)).includes(ie.value)||((ge=f.value.months)==null?void 0:ge.includes(ie.value)),Xe=N(ie.value,M),we=ww(u.value,ie.value,_.value(M));return{active:z,disabled:Le,isBetween:Xe,highlighted:we}})),k=(M,ie)=>Xs(hs(De()),M,_.value(ie)),J=(M,ie)=>{const ge=y.value?y.value:hs(new Date);y.value=Xs(ge,M,_.value(ie)),t("auto-apply"),t("update-flow-step")},_e=(M,ie)=>{const ge=k(M,ie);o.value.fixedEnd||o.value.fixedStart?y.value=Cw(ge,y,t,o):y.value?x(ge,y.value)&&(y.value=um(y,k(M,ie),t)):y.value=[k(M,ie)],Un().then(()=>{md(y.value,t,e.autoApply,e.modelAuto)})},Me=(M,ie)=>{om(k(M,ie),y,p.value.limit),t("auto-apply",!0)},Ne=(M,ie)=>(E.value[ie].month=M,te(ie,E.value[ie].year,M),p.value.enabled?Me(M,ie):o.value.enabled?_e(M,ie):J(M,ie)),j=(M,ie)=>{O(M,ie),te(ie,M,null)},te=(M,ie,ge)=>{let z=ge;if(!z&&z!==0){const Le=ee();z=Array.isArray(Le)?Le[M].month:Le.month}t("update-month-year",{instance:M,year:ie,month:z})};return{groupedMonths:G,groupedYears:B,year:_,isDisabled:$,defaultedMultiCalendars:n,defaultedAriaLabels:r,defaultedTransitions:s,defaultedConfig:a,showYearPicker:U,modelValue:y,presetDate:(M,ie)=>{Tw({value:M,modelValue:y,range:o.value.enabled,timezone:ie?void 0:h.value.timezone}),t("auto-apply")},setHoverDate:(M,ie)=>{V.value=k(M,ie)},selectMonth:Ne,selectYear:j,toggleYearPicker:F,handleYearSelect:D,handleYear:T,getModelMonthYear:ee}},D5=fn({compatConfig:{MODE:3},__name:"MonthPicker",props:{...bs},emits:["update:internal-model-value","overlay-closed","reset-flow","range-start","range-end","auto-apply","update-month-year","update-flow-step","mount","invalid-fixed-range","overlay-toggle"],setup(e,{expose:t,emit:n}){const r=n,s=Bi(),a=Br(s,"yearMode"),o=e;Ft(()=>{o.shadow||r("mount",null)});const{groupedMonths:u,groupedYears:c,year:h,isDisabled:f,defaultedMultiCalendars:p,defaultedConfig:m,showYearPicker:y,modelValue:_,presetDate:b,setHoverDate:E,selectMonth:H,selectYear:V,toggleYearPicker:x,handleYearSelect:O,handleYear:B,getModelMonthYear:U}=R5(o,r);return t({getSidebarProps:()=>({modelValue:_,year:h,getModelMonthYear:U,selectMonth:H,selectYear:V,handleYear:B}),presetDate:b,toggleYearPicker:F=>x(0,F)}),(F,D)=>(S(),it(pd,{"multi-calendars":Z(p).count,collapse:F.collapse,stretch:""},{default:Te(({instance:T})=>[F.$slots["top-extra"]?Ie(F.$slots,"top-extra",{key:0,value:F.internalModelValue}):ae("",!0),F.$slots["month-year"]?Ie(F.$slots,"month-year",wn(cn({key:1},{year:Z(h),months:Z(u)(T),years:Z(c)(T),selectMonth:Z(H),selectYear:Z(V),instance:T}))):(S(),it($o,{key:2,items:Z(u)(T),"arrow-navigation":F.arrowNavigation,"is-last":F.autoApply&&!Z(m).keepActionRow,"esc-close":F.escClose,height:Z(m).modeHeight,config:F.config,"no-overlay-focus":!!(F.noOverlayFocus||F.textInput),"use-relative":"",type:"month",onSelected:$=>Z(H)($,T),onHoverValue:$=>Z(E)($,T)},Hn({header:Te(()=>[he(Sw,cn(F.$props,{items:Z(c)(T),instance:T,"show-year-picker":Z(y)[T],year:Z(h)(T),"is-disabled":$=>Z(f)(T,$),onHandleYear:$=>Z(B)(T,$),onYearSelect:$=>Z(O)($,T),onToggleYearPicker:$=>Z(x)(T,$==null?void 0:$.flow,$==null?void 0:$.show)}),Hn({_:2},[Qe(Z(a),($,se)=>({name:$,fn:Te(ee=>[Ie(F.$slots,$,wn(Yn(ee)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),_:2},[F.$slots["month-overlay-value"]?{name:"item",fn:Te(({item:$})=>[Ie(F.$slots,"month-overlay-value",{text:$.text,value:$.value})]),key:"0"}:void 0]),1032,["items","arrow-navigation","is-last","esc-close","height","config","no-overlay-focus","onSelected","onHoverValue"]))]),_:3},8,["multi-calendars","collapse"]))}}),P5=(e,t)=>{const n=()=>{e.isTextInputDate&&(f.value=lt(De(e.startDate)))},{modelValue:r}=Ho(e,t,n),s=fe(null),{defaultedHighlight:a,defaultedMultiDates:o,defaultedFilters:u,defaultedRange:c,propDates:h}=sn(e),f=fe();Ft(()=>{e.startDate&&(r.value&&e.focusStartDate||!r.value)&&(f.value=lt(De(e.startDate)))});const p=b=>Array.isArray(r.value)?r.value.some(E=>lt(E)===b):r.value?lt(r.value)===b:!1,m=b=>c.value.enabled&&Array.isArray(r.value)?fd(r.value,s.value,_(b)):!1,y=pe(()=>bl(sm(e.yearRange,e.locale,e.reverseYears),b=>{const E=p(b.value),H=Oo(b.value,wl(h.value.minDate),wl(h.value.maxDate))||u.value.years.includes(b.value),V=m(b.value)&&!E,x=lm(a.value,b.value);return{active:E,disabled:H,isBetween:V,highlighted:x}})),_=b=>Rs(hs(Ao(new Date)),b);return{groupedYears:y,modelValue:r,focusYear:f,setHoverValue:b=>{s.value=Rs(hs(new Date),b)},selectYear:b=>{var E;if(t("update-month-year",{instance:0,year:b}),o.value.enabled)return r.value?Array.isArray(r.value)&&(((E=r.value)==null?void 0:E.map(H=>lt(H))).includes(b)?r.value=r.value.filter(H=>lt(H)!==b):r.value.push(Rs(hr(De()),b))):r.value=[Rs(hr(Ao(De())),b)],t("auto-apply",!0);c.value.enabled?(r.value=um(r,_(b),t),Un().then(()=>{md(r.value,t,e.autoApply,e.modelAuto)})):(r.value=_(b),t("auto-apply"))}}},L5=fn({compatConfig:{MODE:3},__name:"YearPicker",props:{...bs},emits:["update:internal-model-value","reset-flow","range-start","range-end","auto-apply","update-month-year"],setup(e,{expose:t,emit:n}){const r=n,s=e,{groupedYears:a,modelValue:o,focusYear:u,selectYear:c,setHoverValue:h}=P5(s,r),{defaultedConfig:f}=sn(s);return t({getSidebarProps:()=>({modelValue:o,selectYear:c})}),(p,m)=>(S(),P("div",null,[p.$slots["top-extra"]?Ie(p.$slots,"top-extra",{key:0,value:p.internalModelValue}):ae("",!0),p.$slots["month-year"]?Ie(p.$slots,"month-year",wn(cn({key:1},{years:Z(a),selectYear:Z(c)}))):(S(),it($o,{key:2,items:Z(a),"is-last":p.autoApply&&!Z(f).keepActionRow,height:Z(f).modeHeight,config:p.config,"no-overlay-focus":!!(p.noOverlayFocus||p.textInput),"focus-value":Z(u),type:"year","use-relative":"",onSelected:Z(c),onHoverValue:Z(h)},Hn({_:2},[p.$slots["year-overlay-value"]?{name:"item",fn:Te(({item:y})=>[Ie(p.$slots,"year-overlay-value",{text:y.text,value:y.value})]),key:"0"}:void 0]),1032,["items","is-last","height","config","no-overlay-focus","focus-value","onSelected","onHoverValue"]))]))}}),I5={key:0,class:"dp__time_input"},N5=["data-test","aria-label","onKeydown","onClick","onMousedown"],V5=v("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),F5=v("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),$5=["aria-label","disabled","data-test","onKeydown","onClick"],B5=["data-test","aria-label","onKeydown","onClick","onMousedown"],H5=v("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),U5=v("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),j5={key:0},q5=["aria-label"],W5=fn({compatConfig:{MODE:3},__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...bs},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","overlay-opened","am-pm-change"],setup(e,{expose:t,emit:n}){const r=n,s=e,{setTimePickerElements:a,setTimePickerBackRef:o}=Ui(),{defaultedAriaLabels:u,defaultedTransitions:c,defaultedFilters:h,defaultedConfig:f,defaultedRange:p}=sn(s),{transitionName:m,showTransition:y}=Bo(c),_=Hr({hours:!1,minutes:!1,seconds:!1}),b=fe("AM"),E=fe(null),H=fe([]),V=fe();Ft(()=>{r("mounted")});const x=W=>qt(new Date,{hours:W.hours,minutes:W.minutes,seconds:s.enableSeconds?W.seconds:0,milliseconds:0}),O=pe(()=>W=>G(W,s[W])||U(W,s[W])),B=pe(()=>({hours:s.hours,minutes:s.minutes,seconds:s.seconds})),U=(W,C)=>p.value.enabled&&!p.value.disableTimeRangeValidation?!s.validateTime(W,C):!1,F=(W,C)=>{if(p.value.enabled&&!p.value.disableTimeRangeValidation){const I=C?+s[`${W}Increment`]:-+s[`${W}Increment`],K=s[W]+I;return!s.validateTime(W,K)}return!1},D=pe(()=>W=>!Ne(+s[W]+ +s[`${W}Increment`],W)||F(W,!0)),T=pe(()=>W=>!Ne(+s[W]-+s[`${W}Increment`],W)||F(W,!1)),$=(W,C)=>j1(qt(De(),W),C),se=(W,C)=>V$(qt(De(),W),C),ee=pe(()=>({dp__time_col:!0,dp__time_col_block:!s.timePickerInline,dp__time_col_reg_block:!s.enableSeconds&&s.is24&&!s.timePickerInline,dp__time_col_reg_inline:!s.enableSeconds&&s.is24&&s.timePickerInline,dp__time_col_reg_with_button:!s.enableSeconds&&!s.is24,dp__time_col_sec:s.enableSeconds&&s.is24,dp__time_col_sec_with_button:s.enableSeconds&&!s.is24})),de=pe(()=>{const W=[{type:"hours"}];return s.enableMinutes&&W.push({type:"",separator:!0},{type:"minutes"}),s.enableSeconds&&W.push({type:"",separator:!0},{type:"seconds"}),W}),ne=pe(()=>de.value.filter(W=>!W.separator)),N=pe(()=>W=>{if(W==="hours"){const C=z(+s.hours);return{text:C<10?`0${C}`:`${C}`,value:C}}return{text:s[W]<10?`0${s[W]}`:`${s[W]}`,value:s[W]}}),G=(W,C)=>{var I;if(!s.disabledTimesConfig)return!1;const K=s.disabledTimesConfig(s.order,W==="hours"?C:void 0);return K[W]?!!((I=K[W])!=null&&I.includes(C)):!0},k=(W,C)=>C!=="hours"||b.value==="AM"?W:W+12,J=W=>{const C=s.is24?24:12,I=W==="hours"?C:60,K=+s[`${W}GridIncrement`],Q=W==="hours"&&!s.is24?K:0,me=[];for(let q=Q;q({active:!1,disabled:h.value.times[W].includes(q.value)||!Ne(q.value,W)||G(W,q.value)||U(W,q.value)}))},_e=W=>W>=0?W:59,Me=W=>W>=0?W:23,Ne=(W,C)=>{const I=s.minTime?x(eh(s.minTime)):null,K=s.maxTime?x(eh(s.maxTime)):null,Q=x(eh(B.value,C,C==="minutes"||C==="seconds"?_e(W):Me(W)));return I&&K?(Eo(Q,K)||el(Q,K))&&(yl(Q,I)||el(Q,I)):I?yl(Q,I)||el(Q,I):K?Eo(Q,K)||el(Q,K):!0},j=W=>s[`no${W[0].toUpperCase()+W.slice(1)}Overlay`],te=W=>{j(W)||(_[W]=!_[W],_[W]?r("overlay-opened",W):r("overlay-closed",W))},M=W=>W==="hours"?ri:W==="minutes"?Vi:vl,ie=()=>{V.value&&clearTimeout(V.value)},ge=(W,C=!0,I)=>{const K=C?$:se,Q=C?+s[`${W}Increment`]:-+s[`${W}Increment`];Ne(+s[W]+Q,W)&&r(`update:${W}`,M(W)(K({[W]:+s[W]},{[W]:+s[`${W}Increment`]}))),!(I!=null&&I.keyboard)&&f.value.timeArrowHoldThreshold&&(V.value=setTimeout(()=>{ge(W,C)},f.value.timeArrowHoldThreshold))},z=W=>s.is24?W:(W>=12?b.value="PM":b.value="AM",j$(W)),Le=()=>{b.value==="PM"?(b.value="AM",r("update:hours",s.hours-12)):(b.value="PM",r("update:hours",s.hours+12)),r("am-pm-change",b.value)},Xe=W=>{_[W]=!0},we=(W,C,I)=>{if(W&&s.arrowNavigation){Array.isArray(H.value[C])?H.value[C][I]=W:H.value[C]=[W];const K=H.value.reduce((Q,me)=>me.map((q,ce)=>[...Q[ce]||[],me[ce]]),[]);o(s.closeTimePickerBtn),E.value&&(K[1]=K[1].concat(E.value)),a(K,s.order)}},et=(W,C)=>(te(W),r(`update:${W}`,C));return t({openChildCmp:Xe}),(W,C)=>{var I;return W.disabled?ae("",!0):(S(),P("div",I5,[(S(!0),P(Ve,null,Qe(de.value,(K,Q)=>{var me,q,ce;return S(),P("div",{key:Q,class:Be(ee.value)},[K.separator?(S(),P(Ve,{key:0},[ht(" : ")],64)):(S(),P(Ve,{key:1},[v("button",{ref_for:!0,ref:ye=>we(ye,Q,0),type:"button",class:Be({dp__btn:!0,dp__inc_dec_button:!W.timePickerInline,dp__inc_dec_button_inline:W.timePickerInline,dp__tp_inline_btn_top:W.timePickerInline,dp__inc_dec_button_disabled:D.value(K.type)}),"data-test":`${K.type}-time-inc-btn-${s.order}`,"aria-label":(me=Z(u))==null?void 0:me.incrementValue(K.type),tabindex:"0",onKeydown:ye=>Z(Tr)(ye,()=>ge(K.type,!0,{keyboard:!0}),!0),onClick:ye=>Z(f).timeArrowHoldThreshold?void 0:ge(K.type,!0),onMousedown:ye=>Z(f).timeArrowHoldThreshold?ge(K.type,!0):void 0,onMouseup:ie},[s.timePickerInline?(S(),P(Ve,{key:1},[W.$slots["tp-inline-arrow-up"]?Ie(W.$slots,"tp-inline-arrow-up",{key:0}):(S(),P(Ve,{key:1},[V5,F5],64))],64)):(S(),P(Ve,{key:0},[W.$slots["arrow-up"]?Ie(W.$slots,"arrow-up",{key:0}):ae("",!0),W.$slots["arrow-up"]?ae("",!0):(S(),it(Z(tm),{key:1}))],64))],42,N5),v("button",{ref_for:!0,ref:ye=>we(ye,Q,1),type:"button","aria-label":(q=Z(u))==null?void 0:q.openTpOverlay(K.type),class:Be({dp__time_display:!0,dp__time_display_block:!W.timePickerInline,dp__time_display_inline:W.timePickerInline,"dp--time-invalid":O.value(K.type),"dp--time-overlay-btn":!O.value(K.type)}),disabled:j(K.type),tabindex:"0","data-test":`${K.type}-toggle-overlay-btn-${s.order}`,onKeydown:ye=>Z(Tr)(ye,()=>te(K.type),!0),onClick:ye=>te(K.type)},[W.$slots[K.type]?Ie(W.$slots,K.type,{key:0,text:N.value(K.type).text,value:N.value(K.type).value}):ae("",!0),W.$slots[K.type]?ae("",!0):(S(),P(Ve,{key:1},[ht(re(N.value(K.type).text),1)],64))],42,$5),v("button",{ref_for:!0,ref:ye=>we(ye,Q,2),type:"button",class:Be({dp__btn:!0,dp__inc_dec_button:!W.timePickerInline,dp__inc_dec_button_inline:W.timePickerInline,dp__tp_inline_btn_bottom:W.timePickerInline,dp__inc_dec_button_disabled:T.value(K.type)}),"data-test":`${K.type}-time-dec-btn-${s.order}`,"aria-label":(ce=Z(u))==null?void 0:ce.decrementValue(K.type),tabindex:"0",onKeydown:ye=>Z(Tr)(ye,()=>ge(K.type,!1,{keyboard:!0}),!0),onClick:ye=>Z(f).timeArrowHoldThreshold?void 0:ge(K.type,!1),onMousedown:ye=>Z(f).timeArrowHoldThreshold?ge(K.type,!1):void 0,onMouseup:ie},[s.timePickerInline?(S(),P(Ve,{key:1},[W.$slots["tp-inline-arrow-down"]?Ie(W.$slots,"tp-inline-arrow-down",{key:0}):(S(),P(Ve,{key:1},[H5,U5],64))],64)):(S(),P(Ve,{key:0},[W.$slots["arrow-down"]?Ie(W.$slots,"arrow-down",{key:0}):ae("",!0),W.$slots["arrow-down"]?ae("",!0):(S(),it(Z(nm),{key:1}))],64))],42,B5)],64))],2)}),128)),W.is24?ae("",!0):(S(),P("div",j5,[W.$slots["am-pm-button"]?Ie(W.$slots,"am-pm-button",{key:0,toggle:Le,value:b.value}):ae("",!0),W.$slots["am-pm-button"]?ae("",!0):(S(),P("button",{key:1,ref_key:"amPmButton",ref:E,type:"button",class:"dp__pm_am_button",role:"button","aria-label":(I=Z(u))==null?void 0:I.amPmButton,tabindex:"0",onClick:Le,onKeydown:C[0]||(C[0]=K=>Z(Tr)(K,()=>Le(),!0))},re(b.value),41,q5))])),(S(!0),P(Ve,null,Qe(ne.value,(K,Q)=>(S(),it(vs,{key:Q,name:Z(m)(_[K.type]),css:Z(y)},{default:Te(()=>[_[K.type]?(S(),it($o,{key:0,items:J(K.type),"is-last":W.autoApply&&!Z(f).keepActionRow,"esc-close":W.escClose,type:K.type,"text-input":W.textInput,config:W.config,"arrow-navigation":W.arrowNavigation,"aria-labels":W.ariaLabels,onSelected:me=>et(K.type,me),onToggle:me=>te(K.type),onResetFlow:C[1]||(C[1]=me=>W.$emit("reset-flow"))},Hn({"button-icon":Te(()=>[W.$slots["clock-icon"]?Ie(W.$slots,"clock-icon",{key:0}):ae("",!0),W.$slots["clock-icon"]?ae("",!0):(S(),it(Cl(W.timePickerInline?Z(Al):Z(em)),{key:1}))]),_:2},[W.$slots[`${K.type}-overlay-value`]?{name:"item",fn:Te(({item:me})=>[Ie(W.$slots,`${K.type}-overlay-value`,{text:me.text,value:me.value})]),key:"0"}:void 0,W.$slots[`${K.type}-overlay-header`]?{name:"header",fn:Te(()=>[Ie(W.$slots,`${K.type}-overlay-header`,{toggle:()=>te(K.type)})]),key:"1"}:void 0]),1032,["items","is-last","esc-close","type","text-input","config","arrow-navigation","aria-labels","onSelected","onToggle"])):ae("",!0)]),_:2},1032,["name","css"]))),128))]))}}}),Y5={class:"dp--tp-wrap"},z5=["aria-label","tabindex"],K5=["tabindex"],G5=["aria-label"],Ew=fn({compatConfig:{MODE:3},__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...bs},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:n}){const r=n,s=e,{buildMatrix:a,setTimePicker:o}=Ui(),u=Bi(),{defaultedTransitions:c,defaultedAriaLabels:h,defaultedTextInput:f,defaultedConfig:p,defaultedRange:m}=sn(s),{transitionName:y,showTransition:_}=Bo(c),{hideNavigationButtons:b}=gd(),E=fe(null),H=fe(null),V=fe([]),x=fe(null);Ft(()=>{r("mount"),!s.timePicker&&s.arrowNavigation?a([Ln(E.value)],"time"):o(!0,s.timePicker)});const O=pe(()=>m.value.enabled&&s.modelAuto?fw(s.internalModelValue):!0),B=fe(!1),U=k=>({hours:Array.isArray(s.hours)?s.hours[k]:s.hours,minutes:Array.isArray(s.minutes)?s.minutes[k]:s.minutes,seconds:Array.isArray(s.seconds)?s.seconds[k]:s.seconds}),F=pe(()=>{const k=[];if(m.value.enabled)for(let J=0;J<2;J++)k.push(U(J));else k.push(U(0));return k}),D=(k,J=!1,_e="")=>{J||r("reset-flow"),B.value=k,r(k?"overlay-opened":"overlay-closed",Qn.time),s.arrowNavigation&&o(k),Un(()=>{_e!==""&&V.value[0]&&V.value[0].openChildCmp(_e)})},T=pe(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:s.autoApply&&!p.value.keepActionRow})),$=Br(u,"timePicker"),se=(k,J,_e)=>m.value.enabled?J===0?[k,F.value[1][_e]]:[F.value[0][_e],k]:k,ee=k=>{r("update:hours",k)},de=k=>{r("update:minutes",k)},ne=k=>{r("update:seconds",k)},N=()=>{if(x.value&&!f.value.enabled&&!s.noOverlayFocus){const k=hw(x.value);k&&k.focus({preventScroll:!0})}},G=k=>{r("overlay-closed",k)};return t({toggleTimePicker:D}),(k,J)=>{var _e;return S(),P("div",Y5,[!k.timePicker&&!k.timePickerInline?Dn((S(),P("button",{key:0,ref_key:"openTimePickerBtn",ref:E,type:"button",class:Be(T.value),"aria-label":(_e=Z(h))==null?void 0:_e.openTimePicker,tabindex:k.noOverlayFocus?void 0:0,"data-test":"open-time-picker-btn",onKeydown:J[0]||(J[0]=Me=>Z(Tr)(Me,()=>D(!0))),onClick:J[1]||(J[1]=Me=>D(!0))},[k.$slots["clock-icon"]?Ie(k.$slots,"clock-icon",{key:0}):ae("",!0),k.$slots["clock-icon"]?ae("",!0):(S(),it(Z(em),{key:1}))],42,z5)),[[Fr,!Z(b)(k.hideNavigation,"time")]]):ae("",!0),he(vs,{name:Z(y)(B.value),css:Z(_)&&!k.timePickerInline},{default:Te(()=>{var Me;return[B.value||k.timePicker||k.timePickerInline?(S(),P("div",{key:0,ref_key:"overlayRef",ref:x,class:Be({dp__overlay:!k.timePickerInline,"dp--overlay-absolute":!s.timePicker&&!k.timePickerInline,"dp--overlay-relative":s.timePicker}),style:bn(k.timePicker?{height:`${Z(p).modeHeight}px`}:void 0),tabindex:k.timePickerInline?void 0:0},[v("div",{class:Be(k.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[k.$slots["time-picker-overlay"]?Ie(k.$slots,"time-picker-overlay",{key:0,hours:e.hours,minutes:e.minutes,seconds:e.seconds,setHours:ee,setMinutes:de,setSeconds:ne}):ae("",!0),k.$slots["time-picker-overlay"]?ae("",!0):(S(),P("div",{key:1,class:Be(k.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(S(!0),P(Ve,null,Qe(F.value,(Ne,j)=>Dn((S(),it(W5,cn({key:j,ref_for:!0},{...k.$props,order:j,hours:Ne.hours,minutes:Ne.minutes,seconds:Ne.seconds,closeTimePickerBtn:H.value,disabledTimesConfig:e.disabledTimesConfig,disabled:j===0?k.fixedStart:k.fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:V,"validate-time":(te,M)=>e.validateTime(te,se(M,j,te)),"onUpdate:hours":te=>ee(se(te,j,"hours")),"onUpdate:minutes":te=>de(se(te,j,"minutes")),"onUpdate:seconds":te=>ne(se(te,j,"seconds")),onMounted:N,onOverlayClosed:G,onOverlayOpened:J[2]||(J[2]=te=>k.$emit("overlay-opened",te)),onAmPmChange:J[3]||(J[3]=te=>k.$emit("am-pm-change",te))}),Hn({_:2},[Qe(Z($),(te,M)=>({name:te,fn:Te(ie=>[Ie(k.$slots,te,cn({ref_for:!0},ie))])}))]),1040,["validate-time","onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[Fr,j===0?!0:O.value]])),128))],2)),!k.timePicker&&!k.timePickerInline?Dn((S(),P("button",{key:2,ref_key:"closeTimePickerBtn",ref:H,type:"button",class:Be(T.value),"aria-label":(Me=Z(h))==null?void 0:Me.closeTimePicker,tabindex:"0",onKeydown:J[4]||(J[4]=Ne=>Z(Tr)(Ne,()=>D(!1))),onClick:J[5]||(J[5]=Ne=>D(!1))},[k.$slots["calendar-icon"]?Ie(k.$slots,"calendar-icon",{key:0}):ae("",!0),k.$slots["calendar-icon"]?ae("",!0):(S(),it(Z(Al),{key:1}))],42,G5)),[[Fr,!Z(b)(k.hideNavigation,"time")]]):ae("",!0)],2)],14,K5)):ae("",!0)]}),_:3},8,["name","css"])])}}}),Ow=(e,t,n,r)=>{const{defaultedRange:s}=sn(e),a=(x,O)=>Array.isArray(t[x])?t[x][O]:t[x],o=x=>e.enableSeconds?Array.isArray(t.seconds)?t.seconds[x]:t.seconds:0,u=(x,O)=>x?O!==void 0?Di(x,a("hours",O),a("minutes",O),o(O)):Di(x,t.hours,t.minutes,o()):ow(De(),o(O)),c=(x,O)=>{t[x]=O},h=pe(()=>e.modelAuto&&s.value.enabled?Array.isArray(n.value)?n.value.length>1:!1:s.value.enabled),f=(x,O)=>{const B=Object.fromEntries(Object.keys(t).map(U=>U===x?[U,O]:[U,t[U]].slice()));if(h.value&&!s.value.disableTimeRangeValidation){const U=D=>n.value?Di(n.value[D],B.hours[D],B.minutes[D],B.seconds[D]):null,F=D=>lw(n.value[D],0);return!(kt(U(0),U(1))&&(yl(U(0),F(1))||Eo(U(1),F(0))))}return!0},p=(x,O)=>{f(x,O)&&(c(x,O),r&&r())},m=x=>{p("hours",x)},y=x=>{p("minutes",x)},_=x=>{p("seconds",x)},b=(x,O,B,U)=>{O&&m(x),!O&&!B&&y(x),B&&_(x),n.value&&U(n.value)},E=x=>{if(x){const O=Array.isArray(x),B=O?[+x[0].hours,+x[1].hours]:+x.hours,U=O?[+x[0].minutes,+x[1].minutes]:+x.minutes,F=O?[+x[0].seconds,+x[1].seconds]:+x.seconds;c("hours",B),c("minutes",U),e.enableSeconds&&c("seconds",F)}},H=(x,O)=>{const B={hours:Array.isArray(t.hours)?t.hours[x]:t.hours,disabledArr:[]};return(O||O===0)&&(B.hours=O),Array.isArray(e.disabledTimes)&&(B.disabledArr=s.value.enabled&&Array.isArray(e.disabledTimes[x])?e.disabledTimes[x]:e.disabledTimes),B},V=pe(()=>(x,O)=>{var B;if(Array.isArray(e.disabledTimes)){const{disabledArr:U,hours:F}=H(x,O),D=U.filter(T=>+T.hours===F);return((B=D[0])==null?void 0:B.minutes)==="*"?{hours:[F],minutes:void 0,seconds:void 0}:{hours:[],minutes:(D==null?void 0:D.map(T=>+T.minutes))??[],seconds:(D==null?void 0:D.map(T=>T.seconds?+T.seconds:void 0))??[]}}return{hours:[],minutes:[],seconds:[]}});return{setTime:c,updateHours:m,updateMinutes:y,updateSeconds:_,getSetDateTime:u,updateTimeValues:b,getSecondsValue:o,assignStartTime:E,validateTime:f,disabledTimesConfig:V}},J5=(e,t)=>{const n=()=>{e.isTextInputDate&&O()},{modelValue:r,time:s}=Ho(e,t,n),{defaultedStartTime:a,defaultedRange:o,defaultedTz:u}=sn(e),{updateTimeValues:c,getSetDateTime:h,setTime:f,assignStartTime:p,disabledTimesConfig:m,validateTime:y}=Ow(e,s,r,_);function _(){t("update-flow-step")}const b=U=>{const{hours:F,minutes:D,seconds:T}=U;return{hours:+F,minutes:+D,seconds:T?+T:0}},E=()=>{if(e.startTime){if(Array.isArray(e.startTime)){const F=b(e.startTime[0]),D=b(e.startTime[1]);return[qt(De(),F),qt(De(),D)]}const U=b(e.startTime);return qt(De(),U)}return o.value.enabled?[null,null]:null},H=()=>{if(o.value.enabled){const[U,F]=E();r.value=[Er(h(U,0),u.value.timezone),Er(h(F,1),u.value.timezone)]}else r.value=Er(h(E()),u.value.timezone)},V=U=>Array.isArray(U)?[ga(De(U[0])),ga(De(U[1]))]:[ga(U??De())],x=(U,F,D)=>{f("hours",U),f("minutes",F),f("seconds",e.enableSeconds?D:0)},O=()=>{const[U,F]=V(r.value);return o.value.enabled?x([U.hours,F.hours],[U.minutes,F.minutes],[U.seconds,F.seconds]):x(U.hours,U.minutes,U.seconds)};Ft(()=>{if(!e.shadow)return p(a.value),r.value?O():H()});const B=()=>{Array.isArray(r.value)?r.value=r.value.map((U,F)=>U&&h(U,F)):r.value=h(r.value),t("time-update")};return{modelValue:r,time:s,disabledTimesConfig:m,updateTime:(U,F=!0,D=!1)=>{c(U,F,D,B)},validateTime:y}},Z5=fn({compatConfig:{MODE:3},__name:"TimePickerSolo",props:{...bs},emits:["update:internal-model-value","time-update","am-pm-change","mount","reset-flow","update-flow-step","overlay-toggle"],setup(e,{expose:t,emit:n}){const r=n,s=e,a=Bi(),o=Br(a,"timePicker"),u=fe(null),{time:c,modelValue:h,disabledTimesConfig:f,updateTime:p,validateTime:m}=J5(s,r);return Ft(()=>{s.shadow||r("mount",null)}),t({getSidebarProps:()=>({modelValue:h,time:c,updateTime:p}),toggleTimePicker:(y,_=!1,b="")=>{var E;(E=u.value)==null||E.toggleTimePicker(y,_,b)}}),(y,_)=>(S(),it(pd,{"multi-calendars":0,stretch:""},{default:Te(()=>[he(Ew,cn({ref_key:"tpRef",ref:u},y.$props,{hours:Z(c).hours,minutes:Z(c).minutes,seconds:Z(c).seconds,"internal-model-value":y.internalModelValue,"disabled-times-config":Z(f),"validate-time":Z(m),"onUpdate:hours":_[0]||(_[0]=b=>Z(p)(b)),"onUpdate:minutes":_[1]||(_[1]=b=>Z(p)(b,!1)),"onUpdate:seconds":_[2]||(_[2]=b=>Z(p)(b,!1,!0)),onAmPmChange:_[3]||(_[3]=b=>y.$emit("am-pm-change",b)),onResetFlow:_[4]||(_[4]=b=>y.$emit("reset-flow")),onOverlayClosed:_[5]||(_[5]=b=>y.$emit("overlay-toggle",{open:!1,overlay:b})),onOverlayOpened:_[6]||(_[6]=b=>y.$emit("overlay-toggle",{open:!0,overlay:b}))}),Hn({_:2},[Qe(Z(o),(b,E)=>({name:b,fn:Te(H=>[Ie(y.$slots,b,wn(Yn(H)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"])]),_:3}))}}),X5={class:"dp--header-wrap"},Q5={key:0,class:"dp__month_year_wrap"},eB={key:0},tB={class:"dp__month_year_wrap"},nB=["aria-label","data-test","onClick","onKeydown"],rB=fn({compatConfig:{MODE:3},__name:"DpHeader",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},...bs},emits:["update-month-year","mount","reset-flow","overlay-closed","overlay-opened"],setup(e,{expose:t,emit:n}){const r=n,s=e,{defaultedTransitions:a,defaultedAriaLabels:o,defaultedMultiCalendars:u,defaultedFilters:c,defaultedConfig:h,defaultedHighlight:f,propDates:p,defaultedUI:m}=sn(s),{transitionName:y,showTransition:_}=Bo(a),{buildMatrix:b}=Ui(),{handleMonthYearChange:E,isDisabled:H,updateMonthYear:V}=w5(s,r),{showLeftIcon:x,showRightIcon:O}=gd(),B=fe(!1),U=fe(!1),F=fe([null,null,null,null]);Ft(()=>{r("mount")});const D=j=>({get:()=>s[j],set:te=>{const M=j===cs.month?cs.year:cs.month;r("update-month-year",{[j]:te,[M]:s[M]}),j===cs.month?G(!0):k(!0)}}),T=pe(D(cs.month)),$=pe(D(cs.year)),se=pe(()=>j=>({month:s.month,year:s.year,items:j===cs.month?s.months:s.years,instance:s.instance,updateMonthYear:V,toggle:j===cs.month?G:k})),ee=pe(()=>s.months.find(te=>te.value===s.month)||{text:"",value:0}),de=pe(()=>bl(s.months,j=>{const te=s.month===j.value,M=Oo(j.value,mw(s.year,p.value.minDate),gw(s.year,p.value.maxDate))||c.value.months.includes(j.value),ie=ww(f.value,j.value,s.year);return{active:te,disabled:M,highlighted:ie}})),ne=pe(()=>bl(s.years,j=>{const te=s.year===j.value,M=Oo(j.value,wl(p.value.minDate),wl(p.value.maxDate))||c.value.years.includes(j.value),ie=lm(f.value,j.value);return{active:te,disabled:M,highlighted:ie}})),N=(j,te,M)=>{M!==void 0?j.value=M:j.value=!j.value,j.value?r("overlay-opened",te):r("overlay-closed",te)},G=(j=!1,te)=>{J(j),N(B,Qn.month,te)},k=(j=!1,te)=>{J(j),N(U,Qn.year,te)},J=j=>{j||r("reset-flow")},_e=(j,te)=>{s.arrowNavigation&&(F.value[te]=Ln(j),b(F.value,"monthYear"))},Me=pe(()=>{var j,te;return[{type:cs.month,index:1,toggle:G,modelValue:T.value,updateModelValue:M=>T.value=M,text:ee.value.text,showSelectionGrid:B.value,items:de.value,ariaLabel:(j=o.value)==null?void 0:j.openMonthsOverlay},{type:cs.year,index:2,toggle:k,modelValue:$.value,updateModelValue:M=>$.value=M,text:pw(s.year,s.locale),showSelectionGrid:U.value,items:ne.value,ariaLabel:(te=o.value)==null?void 0:te.openYearsOverlay}]}),Ne=pe(()=>s.disableYearSelect?[Me.value[0]]:s.yearFirst?[...Me.value].reverse():Me.value);return t({toggleMonthPicker:G,toggleYearPicker:k,handleMonthYearChange:E}),(j,te)=>{var M,ie,ge,z,Le,Xe;return S(),P("div",X5,[j.$slots["month-year"]?(S(),P("div",Q5,[Ie(j.$slots,"month-year",wn(Yn({month:e.month,year:e.year,months:e.months,years:e.years,updateMonthYear:Z(V),handleMonthYearChange:Z(E),instance:e.instance})))])):(S(),P(Ve,{key:1},[j.$slots["top-extra"]?(S(),P("div",eB,[Ie(j.$slots,"top-extra",{value:j.internalModelValue})])):ae("",!0),v("div",tB,[Z(x)(Z(u),e.instance)&&!j.vertical?(S(),it(uo,{key:0,"aria-label":(M=Z(o))==null?void 0:M.prevMonth,disabled:Z(H)(!1),class:Be((ie=Z(m))==null?void 0:ie.navBtnPrev),onActivate:te[0]||(te[0]=we=>Z(E)(!1,!0)),onSetRef:te[1]||(te[1]=we=>_e(we,0))},{default:Te(()=>[j.$slots["arrow-left"]?Ie(j.$slots,"arrow-left",{key:0}):ae("",!0),j.$slots["arrow-left"]?ae("",!0):(S(),it(Z(Xp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):ae("",!0),v("div",{class:Be(["dp__month_year_wrap",{dp__year_disable_select:j.disableYearSelect}])},[(S(!0),P(Ve,null,Qe(Ne.value,(we,et)=>(S(),P(Ve,{key:we.type},[v("button",{ref_for:!0,ref:W=>_e(W,et+1),type:"button",class:"dp__btn dp__month_year_select",tabindex:"0","aria-label":we.ariaLabel,"data-test":`${we.type}-toggle-overlay-${e.instance}`,onClick:we.toggle,onKeydown:W=>Z(Tr)(W,()=>we.toggle(),!0)},[j.$slots[we.type]?Ie(j.$slots,we.type,{key:0,text:we.text,value:s[we.type]}):ae("",!0),j.$slots[we.type]?ae("",!0):(S(),P(Ve,{key:1},[ht(re(we.text),1)],64))],40,nB),he(vs,{name:Z(y)(we.showSelectionGrid),css:Z(_)},{default:Te(()=>[we.showSelectionGrid?(S(),it($o,{key:0,items:we.items,"arrow-navigation":j.arrowNavigation,"hide-navigation":j.hideNavigation,"is-last":j.autoApply&&!Z(h).keepActionRow,"skip-button-ref":!1,config:j.config,type:we.type,"header-refs":[],"esc-close":j.escClose,"menu-wrap-ref":j.menuWrapRef,"text-input":j.textInput,"aria-labels":j.ariaLabels,onSelected:we.updateModelValue,onToggle:we.toggle},Hn({"button-icon":Te(()=>[j.$slots["calendar-icon"]?Ie(j.$slots,"calendar-icon",{key:0}):ae("",!0),j.$slots["calendar-icon"]?ae("",!0):(S(),it(Z(Al),{key:1}))]),_:2},[j.$slots[`${we.type}-overlay-value`]?{name:"item",fn:Te(({item:W})=>[Ie(j.$slots,`${we.type}-overlay-value`,{text:W.text,value:W.value})]),key:"0"}:void 0,j.$slots[`${we.type}-overlay`]?{name:"overlay",fn:Te(()=>[Ie(j.$slots,`${we.type}-overlay`,cn({ref_for:!0},se.value(we.type)))]),key:"1"}:void 0,j.$slots[`${we.type}-overlay-header`]?{name:"header",fn:Te(()=>[Ie(j.$slots,`${we.type}-overlay-header`,{toggle:we.toggle})]),key:"2"}:void 0]),1032,["items","arrow-navigation","hide-navigation","is-last","config","type","esc-close","menu-wrap-ref","text-input","aria-labels","onSelected","onToggle"])):ae("",!0)]),_:2},1032,["name","css"])],64))),128))],2),Z(x)(Z(u),e.instance)&&j.vertical?(S(),it(uo,{key:1,"aria-label":(ge=Z(o))==null?void 0:ge.prevMonth,disabled:Z(H)(!1),class:Be((z=Z(m))==null?void 0:z.navBtnPrev),onActivate:te[2]||(te[2]=we=>Z(E)(!1,!0))},{default:Te(()=>[j.$slots["arrow-up"]?Ie(j.$slots,"arrow-up",{key:0}):ae("",!0),j.$slots["arrow-up"]?ae("",!0):(S(),it(Z(tm),{key:1}))]),_:3},8,["aria-label","disabled","class"])):ae("",!0),Z(O)(Z(u),e.instance)?(S(),it(uo,{key:2,ref:"rightIcon",disabled:Z(H)(!0),"aria-label":(Le=Z(o))==null?void 0:Le.nextMonth,class:Be((Xe=Z(m))==null?void 0:Xe.navBtnNext),onActivate:te[3]||(te[3]=we=>Z(E)(!0,!0)),onSetRef:te[4]||(te[4]=we=>_e(we,j.disableYearSelect?2:3))},{default:Te(()=>[j.$slots[j.vertical?"arrow-down":"arrow-right"]?Ie(j.$slots,j.vertical?"arrow-down":"arrow-right",{key:0}):ae("",!0),j.$slots[j.vertical?"arrow-down":"arrow-right"]?ae("",!0):(S(),it(Cl(j.vertical?Z(nm):Z(Qp)),{key:1}))]),_:3},8,["disabled","aria-label","class"])):ae("",!0)])],64))])}}}),sB=["aria-label"],iB={class:"dp__calendar_header",role:"row"},aB={key:0,class:"dp__calendar_header_item",role:"gridcell"},lB=["aria-label"],oB=v("div",{class:"dp__calendar_header_separator"},null,-1),uB=["aria-label"],cB={key:0,role:"gridcell",class:"dp__calendar_item dp__week_num"},dB={class:"dp__cell_inner"},fB=["id","aria-selected","aria-disabled","aria-label","data-test","onClick","onKeydown","onMouseenter","onMouseleave","onMousedown"],hB=fn({compatConfig:{MODE:3},__name:"DpCalendar",props:{mappedDates:{type:Array,default:()=>[]},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},...bs},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(e,{expose:t,emit:n}){const r=n,s=e,{buildMultiLevelMatrix:a}=Ui(),{defaultedTransitions:o,defaultedConfig:u,defaultedAriaLabels:c,defaultedMultiCalendars:h,defaultedWeekNumbers:f,defaultedMultiDates:p,defaultedUI:m}=sn(s),y=fe(null),_=fe({bottom:"",left:"",transform:""}),b=fe([]),E=fe(null),H=fe(!0),V=fe(""),x=fe({startX:0,endX:0,startY:0,endY:0}),O=fe([]),B=fe({left:"50%"}),U=fe(!1),F=pe(()=>s.calendar?s.calendar(s.mappedDates):s.mappedDates),D=pe(()=>s.dayNames?Array.isArray(s.dayNames)?s.dayNames:s.dayNames(s.locale,+s.weekStart):U$(s.formatLocale,s.locale,+s.weekStart));Ft(()=>{r("mount",{cmp:"calendar",refs:b}),u.value.noSwipe||E.value&&(E.value.addEventListener("touchstart",_e,{passive:!1}),E.value.addEventListener("touchend",Me,{passive:!1}),E.value.addEventListener("touchmove",Ne,{passive:!1})),s.monthChangeOnScroll&&E.value&&E.value.addEventListener("wheel",M,{passive:!1})});const T=we=>we?s.vertical?"vNext":"next":s.vertical?"vPrevious":"previous",$=(we,et)=>{if(s.transitions){const W=hr(Xs(De(),s.month,s.year));V.value=_n(hr(Xs(De(),we,et)),W)?o.value[T(!0)]:o.value[T(!1)],H.value=!1,Un(()=>{H.value=!0})}},se=pe(()=>({[s.calendarClassName]:!!s.calendarClassName,...m.value.calendar??{}})),ee=pe(()=>we=>{const et=q$(we);return{dp__marker_dot:et.type==="dot",dp__marker_line:et.type==="line"}}),de=pe(()=>we=>kt(we,y.value)),ne=pe(()=>({dp__calendar:!0,dp__calendar_next:h.value.count>0&&s.instance!==0})),N=pe(()=>we=>s.hideOffsetDates?we.current:!0),G=async(we,et,W)=>{const C=Ln(b.value[et][W]);if(C){const{width:I,height:K}=C.getBoundingClientRect();y.value=we.value;let Q={left:`${I/2}px`},me=-50;if(await Un(),O.value[0]){const{left:q,width:ce}=O.value[0].getBoundingClientRect();q<0&&(Q={left:"0"},me=0,B.value.left=`${I/2}px`),window.innerWidth{var C,I;if(U.value&&p.value.enabled&&p.value.dragSelect)return r("select-date",we);r("set-hover-date",we),(I=(C=we.marker)==null?void 0:C.tooltip)!=null&&I.length&&await G(we,et,W)},J=we=>{y.value&&(y.value=null,_.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),r("tooltip-close",we.marker))},_e=we=>{x.value.startX=we.changedTouches[0].screenX,x.value.startY=we.changedTouches[0].screenY},Me=we=>{x.value.endX=we.changedTouches[0].screenX,x.value.endY=we.changedTouches[0].screenY,j()},Ne=we=>{s.vertical&&!s.inline&&we.preventDefault()},j=()=>{const we=s.vertical?"Y":"X";Math.abs(x.value[`start${we}`]-x.value[`end${we}`])>10&&r("handle-swipe",x.value[`start${we}`]>x.value[`end${we}`]?"right":"left")},te=(we,et,W)=>{we&&(Array.isArray(b.value[et])?b.value[et][W]=we:b.value[et]=[we]),s.arrowNavigation&&a(b.value,"calendar")},M=we=>{s.monthChangeOnScroll&&(we.preventDefault(),r("handle-scroll",we))},ie=we=>f.value.type==="local"?Gp(we.value,{weekStartsOn:+s.weekStart}):f.value.type==="iso"?zp(we.value):typeof f.value.type=="function"?f.value.type(we.value):"",ge=we=>{const et=we[0];return f.value.hideOnOffsetDates?we.some(W=>W.current)?ie(et):"":ie(et)},z=(we,et)=>{p.value.enabled||(Ri(we,u.value),r("select-date",et))},Le=we=>{Ri(we,u.value)},Xe=we=>{p.value.enabled&&p.value.dragSelect?(U.value=!0,r("select-date",we)):p.value.enabled&&r("select-date",we)};return t({triggerTransition:$}),(we,et)=>{var W;return S(),P("div",{class:Be(ne.value)},[v("div",{ref_key:"calendarWrapRef",ref:E,role:"grid",class:Be(se.value),"aria-label":(W=Z(c))==null?void 0:W.calendarWrap},[v("div",iB,[we.weekNumbers?(S(),P("div",aB,re(we.weekNumName),1)):ae("",!0),(S(!0),P(Ve,null,Qe(D.value,(C,I)=>{var K,Q;return S(),P("div",{key:I,class:"dp__calendar_header_item",role:"gridcell","data-test":"calendar-header","aria-label":(Q=(K=Z(c))==null?void 0:K.weekDay)==null?void 0:Q.call(K,I)},[we.$slots["calendar-header"]?Ie(we.$slots,"calendar-header",{key:0,day:C,index:I}):ae("",!0),we.$slots["calendar-header"]?ae("",!0):(S(),P(Ve,{key:1},[ht(re(C),1)],64))],8,lB)}),128))]),oB,he(vs,{name:V.value,css:!!we.transitions},{default:Te(()=>{var C;return[H.value?(S(),P("div",{key:0,class:"dp__calendar",role:"rowgroup","aria-label":((C=Z(c))==null?void 0:C.calendarDays)||void 0,onMouseleave:et[1]||(et[1]=I=>U.value=!1)},[(S(!0),P(Ve,null,Qe(F.value,(I,K)=>(S(),P("div",{key:K,class:"dp__calendar_row",role:"row"},[we.weekNumbers?(S(),P("div",cB,[v("div",dB,re(ge(I.days)),1)])):ae("",!0),(S(!0),P(Ve,null,Qe(I.days,(Q,me)=>{var q,ce,ye;return S(),P("div",{id:Z(xw)(Q.value),ref_for:!0,ref:ke=>te(ke,K,me),key:me+K,role:"gridcell",class:"dp__calendar_item","aria-selected":(Q.classData.dp__active_date||Q.classData.dp__range_start||Q.classData.dp__range_start)??void 0,"aria-disabled":Q.classData.dp__cell_disabled||void 0,"aria-label":(ce=(q=Z(c))==null?void 0:q.day)==null?void 0:ce.call(q,Q),tabindex:"0","data-test":Q.value,onClick:Et(ke=>z(ke,Q),["prevent"]),onKeydown:ke=>Z(Tr)(ke,()=>we.$emit("select-date",Q)),onMouseenter:ke=>k(Q,K,me),onMouseleave:ke=>J(Q),onMousedown:ke=>Xe(Q),onMouseup:et[0]||(et[0]=ke=>U.value=!1)},[v("div",{class:Be(["dp__cell_inner",Q.classData])},[we.$slots.day&&N.value(Q)?Ie(we.$slots,"day",{key:0,day:+Q.text,date:Q.value}):ae("",!0),we.$slots.day?ae("",!0):(S(),P(Ve,{key:1},[ht(re(Q.text),1)],64)),Q.marker&&N.value(Q)?(S(),P(Ve,{key:2},[we.$slots.marker?Ie(we.$slots,"marker",{key:0,marker:Q.marker,day:+Q.text,date:Q.value}):(S(),P("div",{key:1,class:Be(ee.value(Q.marker)),style:bn(Q.marker.color?{backgroundColor:Q.marker.color}:{})},null,6))],64)):ae("",!0),de.value(Q.value)?(S(),P("div",{key:3,ref_for:!0,ref_key:"activeTooltip",ref:O,class:"dp__marker_tooltip",style:bn(_.value)},[(ye=Q.marker)!=null&&ye.tooltip?(S(),P("div",{key:0,class:"dp__tooltip_content",onClick:Le},[(S(!0),P(Ve,null,Qe(Q.marker.tooltip,(ke,Ce)=>(S(),P("div",{key:Ce,class:"dp__tooltip_text"},[we.$slots["marker-tooltip"]?Ie(we.$slots,"marker-tooltip",{key:0,tooltip:ke,day:Q.value}):ae("",!0),we.$slots["marker-tooltip"]?ae("",!0):(S(),P(Ve,{key:1},[v("div",{class:"dp__tooltip_mark",style:bn(ke.color?{backgroundColor:ke.color}:{})},null,4),v("div",null,re(ke.text),1)],64))]))),128)),v("div",{class:"dp__arrow_bottom_tp",style:bn(B.value)},null,4)])):ae("",!0)],4)):ae("",!0)],2)],40,fB)}),128))]))),128))],40,uB)):ae("",!0)]}),_:3},8,["name","css"])],10,sB)],2)}}}),w0=e=>Array.isArray(e),pB=(e,t,n,r)=>{const s=fe([]),a=fe(new Date),o=fe(),u=()=>Me(e.isTextInputDate),{modelValue:c,calendars:h,time:f,today:p}=Ho(e,t,u),{defaultedMultiCalendars:m,defaultedStartTime:y,defaultedRange:_,defaultedConfig:b,defaultedTz:E,propDates:H,defaultedMultiDates:V}=sn(e),{validateMonthYearInRange:x,isDisabled:O,isDateRangeAllowed:B,checkMinMaxRange:U}=ji(e),{updateTimeValues:F,getSetDateTime:D,setTime:T,assignStartTime:$,validateTime:se,disabledTimesConfig:ee}=Ow(e,f,c,r),de=pe(()=>ue=>h.value[ue]?h.value[ue].month:0),ne=pe(()=>ue=>h.value[ue]?h.value[ue].year:0),N=ue=>!b.value.keepViewOnOffsetClick||ue?!0:!o.value,G=(ue,Fe,xe,$e=!1)=>{var We,Nn;N($e)&&(h.value[ue]||(h.value[ue]={month:0,year:0}),h.value[ue].month=g0(Fe)?(We=h.value[ue])==null?void 0:We.month:Fe,h.value[ue].year=g0(xe)?(Nn=h.value[ue])==null?void 0:Nn.year:xe)},k=()=>{e.autoApply&&t("select-date")};Ft(()=>{e.shadow||(c.value||(et(),y.value&&$(y.value)),Me(!0),e.focusStartDate&&e.startDate&&et())});const J=pe(()=>{var ue;return(ue=e.flow)!=null&&ue.length&&!e.partialFlow?e.flowStep===e.flow.length:!0}),_e=()=>{e.autoApply&&J.value&&t("auto-apply")},Me=(ue=!1)=>{if(c.value)return Array.isArray(c.value)?(s.value=c.value,z(ue)):te(c.value,ue);if(m.value.count&&ue&&!e.startDate)return j(De(),ue)},Ne=()=>Array.isArray(c.value)&&_.value.enabled?wt(c.value[0])===wt(c.value[1]??c.value[0]):!1,j=(ue=new Date,Fe=!1)=>{if((!m.value.count||!m.value.static||Fe)&&G(0,wt(ue),lt(ue)),m.value.count&&(!m.value.solo||!c.value||Ne()))for(let xe=1;xe{j(ue),T("hours",ri(ue)),T("minutes",Vi(ue)),T("seconds",vl(ue)),m.value.count&&Fe&&we()},M=ue=>{if(m.value.count){if(m.value.solo)return 0;const Fe=wt(ue[0]),xe=wt(ue[1]);return Math.abs(xe-Fe){ue[1]&&_.value.showLastInRange?j(ue[M(ue)],Fe):j(ue[0],Fe);const xe=($e,We)=>[$e(ue[0]),ue[1]?$e(ue[1]):f[We][1]];T("hours",xe(ri,"hours")),T("minutes",xe(Vi,"minutes")),T("seconds",xe(vl,"seconds"))},ge=(ue,Fe)=>{if((_.value.enabled||e.weekPicker)&&!V.value.enabled)return ie(ue,Fe);if(V.value.enabled&&Fe){const xe=ue[ue.length-1];return te(xe,Fe)}},z=ue=>{const Fe=c.value;ge(Fe,ue),m.value.count&&m.value.solo&&we()},Le=(ue,Fe)=>{const xe=qt(De(),{month:de.value(Fe),year:ne.value(Fe)}),$e=ue<0?gs(xe,1):_l(xe,1);x(wt($e),lt($e),ue<0,e.preventMinMaxNavigation)&&(G(Fe,wt($e),lt($e)),t("update-month-year",{instance:Fe,month:wt($e),year:lt($e)}),m.value.count&&!m.value.solo&&Xe(Fe),n())},Xe=ue=>{for(let Fe=ue-1;Fe>=0;Fe--){const xe=_l(qt(De(),{month:de.value(Fe+1),year:ne.value(Fe+1)}),1);G(Fe,wt(xe),lt(xe))}for(let Fe=ue+1;Fe<=m.value.count-1;Fe++){const xe=gs(qt(De(),{month:de.value(Fe-1),year:ne.value(Fe-1)}),1);G(Fe,wt(xe),lt(xe))}},we=()=>{if(Array.isArray(c.value)&&c.value.length===2){const ue=De(De(c.value[1]?c.value[1]:gs(c.value[0],1))),[Fe,xe]=[wt(c.value[0]),lt(c.value[0])],[$e,We]=[wt(c.value[1]),lt(c.value[1])];(Fe!==$e||Fe===$e&&xe!==We)&&m.value.solo&&G(1,wt(ue),lt(ue))}else c.value&&!Array.isArray(c.value)&&(G(0,wt(c.value),lt(c.value)),j(De()))},et=()=>{e.startDate&&(G(0,wt(De(e.startDate)),lt(De(e.startDate))),m.value.count&&Xe(0))},W=(ue,Fe)=>{if(e.monthChangeOnScroll){const xe=new Date().getTime()-a.value.getTime(),$e=Math.abs(ue.deltaY);let We=500;$e>1&&(We=100),$e>100&&(We=0),xe>We&&(a.value=new Date,Le(e.monthChangeOnScroll!=="inverse"?-ue.deltaY:ue.deltaY,Fe))}},C=(ue,Fe,xe=!1)=>{e.monthChangeOnArrows&&e.vertical===xe&&I(ue,Fe)},I=(ue,Fe)=>{Le(ue==="right"?-1:1,Fe)},K=ue=>{if(H.value.markers)return Dc(ue.value,H.value.markers)},Q=(ue,Fe)=>{switch(e.sixWeeks===!0?"append":e.sixWeeks){case"prepend":return[!0,!1];case"center":return[ue==0,!0];case"fair":return[ue==0||Fe>ue,!0];case"append":return[!1,!1];default:return[!1,!1]}},me=(ue,Fe,xe,$e)=>{if(e.sixWeeks&&ue.length<6){const We=6-ue.length,Nn=(Fe.getDay()+7-$e)%7,pr=6-(xe.getDay()+7-$e)%7,[Ls,Aa]=Q(Nn,pr);for(let qi=1;qi<=We;qi++)if(Aa?!!(qi%2)==Ls:Ls){const is=ue[0].days[0],El=q(fs(is.value,-7),wt(Fe));ue.unshift({days:El})}else{const is=ue[ue.length-1],El=is.days[is.days.length-1],vd=q(fs(El.value,1),wt(Fe));ue.push({days:vd})}}return ue},q=(ue,Fe)=>{const xe=De(ue),$e=[];for(let We=0;We<7;We++){const Nn=fs(xe,We),pr=wt(Nn)!==Fe;$e.push({text:e.hideOffsetDates&&pr?"":Nn.getDate(),value:Nn,current:!pr,classData:{}})}return $e},ce=(ue,Fe)=>{const xe=[],$e=new Date(Fe,ue),We=new Date(Fe,ue+1,0),Nn=e.weekStart,pr=ys($e,{weekStartsOn:Nn}),Ls=Aa=>{const qi=q(Aa,ue);if(xe.push({days:qi}),!xe[xe.length-1].days.some(is=>kt(hr(is.value),hr(We)))){const is=fs(Aa,7);Ls(is)}};return Ls(pr),me(xe,$e,We,Nn)},ye=ue=>{const Fe=Di(De(ue.value),f.hours,f.minutes,Ge());t("date-update",Fe),V.value.enabled?om(Fe,c,V.value.limit):c.value=Fe,r(),Un().then(()=>{_e()})},ke=ue=>_.value.noDisabledRange?vw(s.value[0],ue).some(Fe=>O(Fe)):!1,Ce=()=>{s.value=c.value?c.value.slice():[],s.value.length===2&&!(_.value.fixedStart||_.value.fixedEnd)&&(s.value=[])},Oe=(ue,Fe)=>{const xe=[De(ue.value),fs(De(ue.value),+_.value.autoRange)];B(xe)?(Fe&&He(ue.value),s.value=xe):t("invalid-date",ue.value)},He=ue=>{const Fe=wt(De(ue)),xe=lt(De(ue));if(G(0,Fe,xe),m.value.count>0)for(let $e=1;$e{if(ke(ue.value)||!U(ue.value,c.value,_.value.fixedStart?0:1))return t("invalid-date",ue.value);s.value=Cw(De(ue.value),c,t,_)},qe=(ue,Fe)=>{if(Ce(),_.value.autoRange)return Oe(ue,Fe);if(_.value.fixedStart||_.value.fixedEnd)return Ue(ue);s.value[0]?U(De(ue.value),c.value)&&!ke(ue.value)?on(De(ue.value),De(s.value[0]))?(s.value.unshift(De(ue.value)),t("range-end",s.value[0])):(s.value[1]=De(ue.value),t("range-end",s.value[1])):(e.autoApply&&t("auto-apply-invalid",ue.value),t("invalid-date",ue.value)):(s.value[0]=De(ue.value),t("range-start",s.value[0]))},Ge=(ue=!0)=>e.enableSeconds?Array.isArray(f.seconds)?ue?f.seconds[0]:f.seconds[1]:f.seconds:0,ct=ue=>{s.value[ue]=Di(s.value[ue],f.hours[ue],f.minutes[ue],Ge(ue!==1))},_t=()=>{var ue,Fe;s.value[0]&&s.value[1]&&+((ue=s.value)==null?void 0:ue[0])>+((Fe=s.value)==null?void 0:Fe[1])&&(s.value.reverse(),t("range-start",s.value[0]),t("range-end",s.value[1]))},an=()=>{s.value.length&&(s.value[0]&&!s.value[1]?ct(0):(ct(0),ct(1),r()),_t(),c.value=s.value.slice(),md(s.value,t,e.autoApply,e.modelAuto))},Zt=(ue,Fe=!1)=>{if(O(ue.value)||!ue.current&&e.hideOffsetDates)return t("invalid-date",ue.value);if(o.value=JSON.parse(JSON.stringify(ue)),!_.value.enabled)return ye(ue);w0(f.hours)&&w0(f.minutes)&&!V.value.enabled&&(qe(ue,Fe),an())},An=(ue,Fe)=>{var xe;G(ue,Fe.month,Fe.year,!0),m.value.count&&!m.value.solo&&Xe(ue),t("update-month-year",{instance:ue,month:Fe.month,year:Fe.year}),n(m.value.solo?ue:void 0);const $e=(xe=e.flow)!=null&&xe.length?e.flow[e.flowStep]:void 0;!Fe.fromNav&&($e===Qn.month||$e===Qn.year)&&r()},hn=(ue,Fe)=>{Tw({value:ue,modelValue:c,range:_.value.enabled,timezone:Fe?void 0:E.value.timezone}),k(),e.multiCalendars&&Un().then(()=>Me(!0))},Mr=()=>{const ue=rm(De(),E.value);_.value.enabled?c.value&&Array.isArray(c.value)&&c.value[0]?c.value=on(ue,c.value[0])?[ue,c.value[0]]:[c.value[0],ue]:c.value=[ue]:c.value=ue,k()},ws=()=>{if(Array.isArray(c.value))if(V.value.enabled){const ue=pn();c.value[c.value.length-1]=D(ue)}else c.value=c.value.map((ue,Fe)=>ue&&D(ue,Fe));else c.value=D(c.value);t("time-update")},pn=()=>Array.isArray(c.value)&&c.value.length?c.value[c.value.length-1]:null;return{calendars:h,modelValue:c,month:de,year:ne,time:f,disabledTimesConfig:ee,today:p,validateTime:se,getCalendarDays:ce,getMarker:K,handleScroll:W,handleSwipe:I,handleArrow:C,selectDate:Zt,updateMonthYear:An,presetDate:hn,selectCurrentDate:Mr,updateTime:(ue,Fe=!0,xe=!1)=>{F(ue,Fe,xe,ws)},assignMonthAndYear:j}},mB={key:0},gB=fn({__name:"DatePicker",props:{...bs},emits:["tooltip-open","tooltip-close","mount","update:internal-model-value","update-flow-step","reset-flow","auto-apply","focus-menu","select-date","range-start","range-end","invalid-fixed-range","time-update","am-pm-change","time-picker-open","time-picker-close","recalculate-position","update-month-year","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:n}){const r=n,s=e,{calendars:a,month:o,year:u,modelValue:c,time:h,disabledTimesConfig:f,today:p,validateTime:m,getCalendarDays:y,getMarker:_,handleArrow:b,handleScroll:E,handleSwipe:H,selectDate:V,updateMonthYear:x,presetDate:O,selectCurrentDate:B,updateTime:U,assignMonthAndYear:F}=pB(s,r,Ne,j),D=Bi(),{setHoverDate:T,getDayClassData:$,clearHoverDate:se}=DB(c,s),{defaultedMultiCalendars:ee}=sn(s),de=fe([]),ne=fe([]),N=fe(null),G=Br(D,"calendar"),k=Br(D,"monthYear"),J=Br(D,"timePicker"),_e=W=>{s.shadow||r("mount",W)};Wt(a,()=>{s.shadow||setTimeout(()=>{r("recalculate-position")},0)},{deep:!0}),Wt(ee,(W,C)=>{W.count-C.count>0&&F()},{deep:!0});const Me=pe(()=>W=>y(o.value(W),u.value(W)).map(C=>({...C,days:C.days.map(I=>(I.marker=_(I),I.classData=$(I),I))})));function Ne(W){var C;W||W===0?(C=ne.value[W])==null||C.triggerTransition(o.value(W),u.value(W)):ne.value.forEach((I,K)=>I.triggerTransition(o.value(K),u.value(K)))}function j(){r("update-flow-step")}const te=(W,C=!1)=>{V(W,C),s.spaceConfirm&&r("select-date")},M=(W,C,I=0)=>{var K;(K=de.value[I])==null||K.toggleMonthPicker(W,C)},ie=(W,C,I=0)=>{var K;(K=de.value[I])==null||K.toggleYearPicker(W,C)},ge=(W,C,I)=>{var K;(K=N.value)==null||K.toggleTimePicker(W,C,I)},z=(W,C)=>{var I;if(!s.range){const K=c.value?c.value:p,Q=C?new Date(C):K,me=W?ys(Q,{weekStartsOn:1}):Z1(Q,{weekStartsOn:1});V({value:me,current:wt(Q)===o.value(0),text:"",classData:{}}),(I=document.getElementById(xw(me)))==null||I.focus()}},Le=W=>{var C;(C=de.value[0])==null||C.handleMonthYearChange(W,!0)},Xe=W=>{x(0,{month:o.value(0),year:u.value(0)+(W?1:-1),fromNav:!0})},we=(W,C)=>{W===Qn.time&&r(`time-picker-${C?"open":"close"}`),r("overlay-toggle",{open:C,overlay:W})},et=W=>{r("overlay-toggle",{open:!1,overlay:W}),r("focus-menu")};return t({clearHoverDate:se,presetDate:O,selectCurrentDate:B,toggleMonthPicker:M,toggleYearPicker:ie,toggleTimePicker:ge,handleArrow:b,updateMonthYear:x,getSidebarProps:()=>({modelValue:c,month:o,year:u,time:h,updateTime:U,updateMonthYear:x,selectDate:V,presetDate:O}),changeMonth:Le,changeYear:Xe,selectWeekDate:z}),(W,C)=>(S(),P(Ve,null,[he(pd,{"multi-calendars":Z(ee).count,collapse:W.collapse},{default:Te(({instance:I,index:K})=>[W.disableMonthYearSelect?ae("",!0):(S(),it(rB,cn({key:0,ref:Q=>{Q&&(de.value[K]=Q)},months:Z(dw)(W.formatLocale,W.locale,W.monthNameFormat),years:Z(sm)(W.yearRange,W.locale,W.reverseYears),month:Z(o)(I),year:Z(u)(I),instance:I},W.$props,{onMount:C[0]||(C[0]=Q=>_e(Z(ma).header)),onResetFlow:C[1]||(C[1]=Q=>W.$emit("reset-flow")),onUpdateMonthYear:Q=>Z(x)(I,Q),onOverlayClosed:et,onOverlayOpened:C[2]||(C[2]=Q=>W.$emit("overlay-toggle",{open:!0,overlay:Q}))}),Hn({_:2},[Qe(Z(k),(Q,me)=>({name:Q,fn:Te(q=>[Ie(W.$slots,Q,wn(Yn(q)))])}))]),1040,["months","years","month","year","instance","onUpdateMonthYear"])),he(hB,cn({ref:Q=>{Q&&(ne.value[K]=Q)},"mapped-dates":Me.value(I),month:Z(o)(I),year:Z(u)(I),instance:I},W.$props,{onSelectDate:Q=>Z(V)(Q,I!==1),onHandleSpace:Q=>te(Q,I!==1),onSetHoverDate:C[3]||(C[3]=Q=>Z(T)(Q)),onHandleScroll:Q=>Z(E)(Q,I),onHandleSwipe:Q=>Z(H)(Q,I),onMount:C[4]||(C[4]=Q=>_e(Z(ma).calendar)),onResetFlow:C[5]||(C[5]=Q=>W.$emit("reset-flow")),onTooltipOpen:C[6]||(C[6]=Q=>W.$emit("tooltip-open",Q)),onTooltipClose:C[7]||(C[7]=Q=>W.$emit("tooltip-close",Q))}),Hn({_:2},[Qe(Z(G),(Q,me)=>({name:Q,fn:Te(q=>[Ie(W.$slots,Q,wn(Yn({...q})))])}))]),1040,["mapped-dates","month","year","instance","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])]),_:3},8,["multi-calendars","collapse"]),W.enableTimePicker?(S(),P("div",mB,[W.$slots["time-picker"]?Ie(W.$slots,"time-picker",wn(cn({key:0},{time:Z(h),updateTime:Z(U)}))):(S(),it(Ew,cn({key:1,ref_key:"timePickerRef",ref:N},W.$props,{hours:Z(h).hours,minutes:Z(h).minutes,seconds:Z(h).seconds,"internal-model-value":W.internalModelValue,"disabled-times-config":Z(f),"validate-time":Z(m),onMount:C[8]||(C[8]=I=>_e(Z(ma).timePicker)),"onUpdate:hours":C[9]||(C[9]=I=>Z(U)(I)),"onUpdate:minutes":C[10]||(C[10]=I=>Z(U)(I,!1)),"onUpdate:seconds":C[11]||(C[11]=I=>Z(U)(I,!1,!0)),onResetFlow:C[12]||(C[12]=I=>W.$emit("reset-flow")),onOverlayClosed:C[13]||(C[13]=I=>we(I,!1)),onOverlayOpened:C[14]||(C[14]=I=>we(I,!0)),onAmPmChange:C[15]||(C[15]=I=>W.$emit("am-pm-change",I))}),Hn({_:2},[Qe(Z(J),(I,K)=>({name:I,fn:Te(Q=>[Ie(W.$slots,I,wn(Yn(Q)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"]))])):ae("",!0)],64))}}),vB=(e,t)=>{const n=fe(),{defaultedMultiCalendars:r,defaultedConfig:s,defaultedHighlight:a,defaultedRange:o,propDates:u,defaultedFilters:c,defaultedMultiDates:h}=sn(e),{modelValue:f,year:p,month:m,calendars:y}=Ho(e,t),{isDisabled:_}=ji(e),{selectYear:b,groupedYears:E,showYearPicker:H,isDisabled:V,toggleYearPicker:x,handleYearSelect:O,handleYear:B}=Aw({modelValue:f,multiCalendars:r,range:o,highlight:a,calendars:y,propDates:u,month:m,year:p,filters:c,props:e,emit:t}),U=(N,G)=>[N,G].map(k=>Ds(k,"MMMM",{locale:e.formatLocale})).join("-"),F=pe(()=>N=>f.value?Array.isArray(f.value)?f.value.some(G=>h0(N,G)):h0(f.value,N):!1),D=N=>{if(o.value.enabled){if(Array.isArray(f.value)){const G=kt(N,f.value[0])||kt(N,f.value[1]);return fd(f.value,n.value,N)&&!G}return!1}return!1},T=(N,G)=>N.quarter===l0(G)&&N.year===lt(G),$=N=>typeof a.value=="function"?a.value({quarter:l0(N),year:lt(N)}):!!a.value.quarters.find(G=>T(G,N)),se=pe(()=>N=>{const G=qt(new Date,{year:p.value(N)});return jF({start:Ao(G),end:J1(G)}).map(k=>{const J=oa(k),_e=o0(k),Me=_(k),Ne=D(J),j=$(J);return{text:U(J,_e),value:J,active:F.value(J),highlighted:j,disabled:Me,isBetween:Ne}})}),ee=N=>{om(N,f,h.value.limit),t("auto-apply",!0)},de=N=>{f.value=um(f,N,t),md(f.value,t,e.autoApply,e.modelAuto)},ne=N=>{f.value=N,t("auto-apply")};return{defaultedConfig:s,defaultedMultiCalendars:r,groupedYears:E,year:p,isDisabled:V,quarters:se,showYearPicker:H,modelValue:f,setHoverDate:N=>{n.value=N},selectYear:b,selectQuarter:(N,G,k)=>{if(!k)return y.value[G].month=wt(o0(N)),h.value.enabled?ee(N):o.value.enabled?de(N):ne(N)},toggleYearPicker:x,handleYearSelect:O,handleYear:B}},yB={class:"dp--quarter-items"},_B=["data-test","disabled","onClick","onMouseover"],bB=fn({compatConfig:{MODE:3},__name:"QuarterPicker",props:{...bs},emits:["update:internal-model-value","reset-flow","overlay-closed","auto-apply","range-start","range-end","overlay-toggle","update-month-year"],setup(e,{expose:t,emit:n}){const r=n,s=e,a=Bi(),o=Br(a,"yearMode"),{defaultedMultiCalendars:u,defaultedConfig:c,groupedYears:h,year:f,isDisabled:p,quarters:m,modelValue:y,showYearPicker:_,setHoverDate:b,selectQuarter:E,toggleYearPicker:H,handleYearSelect:V,handleYear:x}=vB(s,r);return t({getSidebarProps:()=>({modelValue:y,year:f,selectQuarter:E,handleYearSelect:V,handleYear:x})}),(O,B)=>(S(),it(pd,{"multi-calendars":Z(u).count,collapse:O.collapse,stretch:""},{default:Te(({instance:U})=>[v("div",{class:"dp-quarter-picker-wrap",style:bn({minHeight:`${Z(c).modeHeight}px`})},[O.$slots["top-extra"]?Ie(O.$slots,"top-extra",{key:0,value:O.internalModelValue}):ae("",!0),v("div",null,[he(Sw,cn(O.$props,{items:Z(h)(U),instance:U,"show-year-picker":Z(_)[U],year:Z(f)(U),"is-disabled":F=>Z(p)(U,F),onHandleYear:F=>Z(x)(U,F),onYearSelect:F=>Z(V)(F,U),onToggleYearPicker:F=>Z(H)(U,F==null?void 0:F.flow,F==null?void 0:F.show)}),Hn({_:2},[Qe(Z(o),(F,D)=>({name:F,fn:Te(T=>[Ie(O.$slots,F,wn(Yn(T)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),v("div",yB,[(S(!0),P(Ve,null,Qe(Z(m)(U),(F,D)=>(S(),P("div",{key:D},[v("button",{type:"button",class:Be(["dp--qr-btn",{"dp--qr-btn-active":F.active,"dp--qr-btn-between":F.isBetween,"dp--qr-btn-disabled":F.disabled,"dp--highlighted":F.highlighted}]),"data-test":F.value,disabled:F.disabled,onClick:T=>Z(E)(F.value,U,F.disabled),onMouseover:T=>Z(b)(F.value)},[O.$slots.quarter?Ie(O.$slots,"quarter",{key:0,value:F.value,text:F.text}):(S(),P(Ve,{key:1},[ht(re(F.text),1)],64))],42,_B)]))),128))])],4)]),_:3},8,["multi-calendars","collapse"]))}}),wB=["id","aria-label"],xB={key:0,class:"dp--menu-load-container"},kB=v("span",{class:"dp--menu-loader"},null,-1),SB=[kB],TB={key:0,class:"dp__sidebar_left"},CB=["data-test","onClick","onKeydown"],AB={key:2,class:"dp__sidebar_right"},EB={key:3,class:"dp__action_extra"},x0=fn({compatConfig:{MODE:3},__name:"DatepickerMenu",props:{...hd,shadow:{type:Boolean,default:!1},openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1}},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:n}){const r=n,s=e,a=fe(null),o=pe(()=>{const{openOnTop:q,...ce}=s;return{...ce,flowStep:T.value,collapse:s.collapse,noOverlayFocus:s.noOverlayFocus,menuWrapRef:a.value}}),{setMenuFocused:u,setShiftKey:c,control:h}=kw(),f=Bi(),{defaultedTextInput:p,defaultedInline:m,defaultedConfig:y,defaultedUI:_}=sn(s),b=fe(null),E=fe(0),H=fe(null),V=fe(!1),x=fe(null);Ft(()=>{if(!s.shadow){V.value=!0,O(),window.addEventListener("resize",O);const q=Ln(a);if(q&&!p.value.enabled&&!m.value.enabled&&(u(!0),G()),q){const ce=ye=>{y.value.allowPreventDefault&&ye.preventDefault(),Ri(ye,y.value,!0)};q.addEventListener("pointerdown",ce),q.addEventListener("mousedown",ce)}}}),ii(()=>{window.removeEventListener("resize",O)});const O=()=>{const q=Ln(H);q&&(E.value=q.getBoundingClientRect().width)},{arrowRight:B,arrowLeft:U,arrowDown:F,arrowUp:D}=Ui(),{flowStep:T,updateFlowStep:$,childMount:se,resetFlow:ee,handleFlow:de}=PB(s,r,x),ne=pe(()=>s.monthPicker?D5:s.yearPicker?L5:s.timePicker?Z5:s.quarterPicker?bB:gB),N=pe(()=>{var q;if(y.value.arrowLeft)return y.value.arrowLeft;const ce=(q=a.value)==null?void 0:q.getBoundingClientRect(),ye=s.getInputRect();return(ye==null?void 0:ye.width)<(E==null?void 0:E.value)&&(ye==null?void 0:ye.left)<=((ce==null?void 0:ce.left)??0)?`${(ye==null?void 0:ye.width)/2}px`:(ye==null?void 0:ye.right)>=((ce==null?void 0:ce.right)??0)&&(ye==null?void 0:ye.width)<(E==null?void 0:E.value)?`${(E==null?void 0:E.value)-(ye==null?void 0:ye.width)/2}px`:"50%"}),G=()=>{const q=Ln(a);q&&q.focus({preventScroll:!0})},k=pe(()=>{var q;return((q=x.value)==null?void 0:q.getSidebarProps())||{}}),J=()=>{s.openOnTop&&r("recalculate-position")},_e=Br(f,"action"),Me=pe(()=>s.monthPicker||s.yearPicker?Br(f,"monthYear"):s.timePicker?Br(f,"timePicker"):Br(f,"shared")),Ne=pe(()=>s.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),j=pe(()=>({dp__menu_disabled:s.disabled,dp__menu_readonly:s.readonly,"dp-menu-loading":s.loading})),te=pe(()=>({dp__menu:!0,dp__menu_index:!m.value.enabled,dp__relative:m.value.enabled,[s.menuClassName]:!!s.menuClassName,..._.value.menu??{}})),M=q=>{Ri(q,y.value,!0)},ie=()=>{s.escClose&&r("close-picker")},ge=q=>{if(s.arrowNavigation){if(q===ur.up)return D();if(q===ur.down)return F();if(q===ur.left)return U();if(q===ur.right)return B()}else q===ur.left||q===ur.up?et("handleArrow",ur.left,0,q===ur.up):et("handleArrow",ur.right,0,q===ur.down)},z=q=>{c(q.shiftKey),!s.disableMonthYearSelect&&q.code===nn.tab&&q.target.classList.contains("dp__menu")&&h.value.shiftKeyInMenu&&(q.preventDefault(),Ri(q,y.value,!0),r("close-picker"))},Le=()=>{G(),r("time-picker-close")},Xe=q=>{var ce,ye,ke;(ce=x.value)==null||ce.toggleTimePicker(!1,!1),(ye=x.value)==null||ye.toggleMonthPicker(!1,!1,q),(ke=x.value)==null||ke.toggleYearPicker(!1,!1,q)},we=(q,ce=0)=>{var ye,ke,Ce;return q==="month"?(ye=x.value)==null?void 0:ye.toggleMonthPicker(!1,!0,ce):q==="year"?(ke=x.value)==null?void 0:ke.toggleYearPicker(!1,!0,ce):q==="time"?(Ce=x.value)==null?void 0:Ce.toggleTimePicker(!0,!1):Xe(ce)},et=(q,...ce)=>{var ye,ke;(ye=x.value)!=null&&ye[q]&&((ke=x.value)==null||ke[q](...ce))},W=()=>{et("selectCurrentDate")},C=(q,ce)=>{et("presetDate",q,ce)},I=()=>{et("clearHoverDate")},K=(q,ce)=>{et("updateMonthYear",q,ce)},Q=(q,ce)=>{q.preventDefault(),ge(ce)},me=q=>{var ce;if(z(q),q.key===nn.home||q.key===nn.end)return et("selectWeekDate",q.key===nn.home,q.target.getAttribute("id"));switch((q.key===nn.pageUp||q.key===nn.pageDown)&&(q.shiftKey?et("changeYear",q.key===nn.pageUp):et("changeMonth",q.key===nn.pageUp),q.target.getAttribute("id")&&((ce=a.value)==null||ce.focus({preventScroll:!0}))),q.key){case nn.esc:return ie();case nn.arrowLeft:return Q(q,ur.left);case nn.arrowRight:return Q(q,ur.right);case nn.arrowUp:return Q(q,ur.up);case nn.arrowDown:return Q(q,ur.down);default:return}};return t({updateMonthYear:K,switchView:we,handleFlow:de}),(q,ce)=>{var ye,ke,Ce;return S(),P("div",{id:q.uid?`dp-menu-${q.uid}`:void 0,ref_key:"dpMenuRef",ref:a,tabindex:"0",role:"dialog","aria-label":(ye=q.ariaLabels)==null?void 0:ye.menu,class:Be(te.value),style:bn({"--dp-arrow-left":N.value}),onMouseleave:I,onClick:M,onKeydown:me},[(q.disabled||q.readonly)&&Z(m).enabled||q.loading?(S(),P("div",{key:0,class:Be(j.value)},[q.loading?(S(),P("div",xB,SB)):ae("",!0)],2)):ae("",!0),!Z(m).enabled&&!q.teleportCenter?(S(),P("div",{key:1,class:Be(Ne.value)},null,2)):ae("",!0),v("div",{ref_key:"innerMenuRef",ref:H,class:Be({dp__menu_content_wrapper:((ke=q.presetDates)==null?void 0:ke.length)||!!q.$slots["left-sidebar"]||!!q.$slots["right-sidebar"],"dp--menu-content-wrapper-collapsed":e.collapse&&(((Ce=q.presetDates)==null?void 0:Ce.length)||!!q.$slots["left-sidebar"]||!!q.$slots["right-sidebar"])}),style:bn({"--dp-menu-width":`${E.value}px`})},[q.$slots["left-sidebar"]?(S(),P("div",TB,[Ie(q.$slots,"left-sidebar",wn(Yn(k.value)))])):ae("",!0),q.presetDates.length?(S(),P("div",{key:1,class:Be({"dp--preset-dates-collapsed":e.collapse,"dp--preset-dates":!0})},[(S(!0),P(Ve,null,Qe(q.presetDates,(Oe,He)=>(S(),P(Ve,{key:He},[Oe.slot?Ie(q.$slots,Oe.slot,{key:0,presetDate:C,label:Oe.label,value:Oe.value}):(S(),P("button",{key:1,type:"button",style:bn(Oe.style||{}),class:Be(["dp__btn dp--preset-range",{"dp--preset-range-collapsed":e.collapse}]),"data-test":Oe.testId??void 0,onClick:Et(Ue=>C(Oe.value,Oe.noTz),["prevent"]),onKeydown:Ue=>Z(Tr)(Ue,()=>C(Oe.value,Oe.noTz),!0)},re(Oe.label),47,CB))],64))),128))],2)):ae("",!0),v("div",{ref_key:"calendarWrapperRef",ref:b,class:"dp__instance_calendar",role:"document"},[(S(),it(Cl(ne.value),cn({ref_key:"dynCmpRef",ref:x},o.value,{"flow-step":Z(T),onMount:Z(se),onUpdateFlowStep:Z($),onResetFlow:Z(ee),onFocusMenu:G,onSelectDate:ce[0]||(ce[0]=Oe=>q.$emit("select-date")),onDateUpdate:ce[1]||(ce[1]=Oe=>q.$emit("date-update",Oe)),onTooltipOpen:ce[2]||(ce[2]=Oe=>q.$emit("tooltip-open",Oe)),onTooltipClose:ce[3]||(ce[3]=Oe=>q.$emit("tooltip-close",Oe)),onAutoApply:ce[4]||(ce[4]=Oe=>q.$emit("auto-apply",Oe)),onRangeStart:ce[5]||(ce[5]=Oe=>q.$emit("range-start",Oe)),onRangeEnd:ce[6]||(ce[6]=Oe=>q.$emit("range-end",Oe)),onInvalidFixedRange:ce[7]||(ce[7]=Oe=>q.$emit("invalid-fixed-range",Oe)),onTimeUpdate:ce[8]||(ce[8]=Oe=>q.$emit("time-update")),onAmPmChange:ce[9]||(ce[9]=Oe=>q.$emit("am-pm-change",Oe)),onTimePickerOpen:ce[10]||(ce[10]=Oe=>q.$emit("time-picker-open",Oe)),onTimePickerClose:Le,onRecalculatePosition:J,onUpdateMonthYear:ce[11]||(ce[11]=Oe=>q.$emit("update-month-year",Oe)),onAutoApplyInvalid:ce[12]||(ce[12]=Oe=>q.$emit("auto-apply-invalid",Oe)),onInvalidDate:ce[13]||(ce[13]=Oe=>q.$emit("invalid-date",Oe)),onOverlayToggle:ce[14]||(ce[14]=Oe=>q.$emit("overlay-toggle",Oe)),"onUpdate:internalModelValue":ce[15]||(ce[15]=Oe=>q.$emit("update:internal-model-value",Oe))}),Hn({_:2},[Qe(Me.value,(Oe,He)=>({name:Oe,fn:Te(Ue=>[Ie(q.$slots,Oe,wn(Yn({...Ue})))])}))]),1040,["flow-step","onMount","onUpdateFlowStep","onResetFlow"]))],512),q.$slots["right-sidebar"]?(S(),P("div",AB,[Ie(q.$slots,"right-sidebar",wn(Yn(k.value)))])):ae("",!0),q.$slots["action-extra"]?(S(),P("div",EB,[q.$slots["action-extra"]?Ie(q.$slots,"action-extra",{key:0,selectCurrentDate:W}):ae("",!0)])):ae("",!0)],6),!q.autoApply||Z(y).keepActionRow?(S(),it(S5,cn({key:2,"menu-mount":V.value},o.value,{"calendar-width":E.value,onClosePicker:ce[16]||(ce[16]=Oe=>q.$emit("close-picker")),onSelectDate:ce[17]||(ce[17]=Oe=>q.$emit("select-date")),onInvalidSelect:ce[18]||(ce[18]=Oe=>q.$emit("invalid-select")),onSelectNow:W}),Hn({_:2},[Qe(Z(_e),(Oe,He)=>({name:Oe,fn:Te(Ue=>[Ie(q.$slots,Oe,wn(Yn({...Ue})))])}))]),1040,["menu-mount","calendar-width"])):ae("",!0)],46,wB)}}});var Xa=(e=>(e.center="center",e.left="left",e.right="right",e))(Xa||{});const OB=({menuRef:e,menuRefInner:t,inputRef:n,pickerWrapperRef:r,inline:s,emit:a,props:o,slots:u})=>{const c=fe({}),h=fe(!1),f=fe({top:"0",left:"0"}),p=fe(!1),m=ll(o,"teleportCenter");Wt(m,()=>{f.value=JSON.parse(JSON.stringify({})),O()});const y=N=>{if(o.teleport){const G=N.getBoundingClientRect();return{left:G.left+window.scrollX,top:G.top+window.scrollY}}return{top:0,left:0}},_=(N,G)=>{f.value.left=`${N+G-c.value.width}px`},b=N=>{f.value.left=`${N}px`},E=(N,G)=>{o.position===Xa.left&&b(N),o.position===Xa.right&&_(N,G),o.position===Xa.center&&(f.value.left=`${N+G/2-c.value.width/2}px`)},H=N=>{const{width:G,height:k}=N.getBoundingClientRect(),{top:J,left:_e}=o.altPosition?o.altPosition(N):y(N);return{top:+J,left:+_e,width:G,height:k}},V=()=>{f.value.left="50%",f.value.top="50%",f.value.transform="translate(-50%, -50%)",f.value.position="fixed",delete f.value.opacity},x=()=>{const N=Ln(n),{top:G,left:k,transform:J}=o.altPosition(N);f.value={top:`${G}px`,left:`${k}px`,transform:J??""}},O=(N=!0)=>{var G;if(!s.value.enabled){if(m.value)return V();if(o.altPosition!==null)return x();if(N){const k=o.teleport?(G=t.value)==null?void 0:G.$el:e.value;k&&(c.value=k.getBoundingClientRect()),a("recalculate-position")}return se()}},B=({inputEl:N,left:G,width:k})=>{window.screen.width>768&&!h.value&&E(G,k),D(N)},U=N=>{const{top:G,left:k,height:J,width:_e}=H(N);f.value.top=`${J+G+ +o.offset}px`,p.value=!1,h.value||(f.value.left=`${k+_e/2-c.value.width/2}px`),B({inputEl:N,left:k,width:_e})},F=N=>{const{top:G,left:k,width:J}=H(N);f.value.top=`${G-+o.offset-c.value.height}px`,p.value=!0,B({inputEl:N,left:k,width:J})},D=N=>{if(o.autoPosition){const{left:G,width:k}=H(N),{left:J,right:_e}=c.value;if(!h.value){if(Math.abs(J)!==Math.abs(_e)){if(J<=0)return h.value=!0,b(G);if(_e>=document.documentElement.clientWidth)return h.value=!0,_(G,k)}return E(G,k)}}},T=()=>{const N=Ln(n);if(N){const{height:G}=c.value,{top:k,height:J}=N.getBoundingClientRect(),_e=window.innerHeight-k-J,Me=k;return G<=_e?sa.bottom:G>_e&&G<=Me?sa.top:_e>=Me?sa.bottom:sa.top}return sa.bottom},$=N=>T()===sa.bottom?U(N):F(N),se=()=>{const N=Ln(n);if(N)return o.autoPosition?$(N):U(N)},ee=function(N){if(N){const G=N.scrollHeight>N.clientHeight,k=window.getComputedStyle(N).overflowY.indexOf("hidden")!==-1;return G&&!k}return!0},de=function(N){return!N||N===document.body||N.nodeType===Node.DOCUMENT_FRAGMENT_NODE?window:ee(N)?N:de(N.assignedSlot?N.assignedSlot.parentNode:N.parentNode)},ne=N=>{if(N)switch(o.position){case Xa.left:return{left:0,transform:"translateX(0)"};case Xa.right:return{left:`${N.width}px`,transform:"translateX(-100%)"};default:return{left:`${N.width/2}px`,transform:"translateX(-50%)"}}return{}};return{openOnTop:p,menuStyle:f,xCorrect:h,setMenuPosition:O,getScrollableParent:de,shadowRender:(N,G)=>{var k,J,_e;const Me=document.createElement("div"),Ne=(k=Ln(n))==null?void 0:k.getBoundingClientRect();Me.setAttribute("id","dp--temp-container");const j=(J=r.value)!=null&&J.clientWidth?r.value:document.body;j.append(Me);const te=ne(Ne),M=bp(N,{...G,shadow:!0,style:{opacity:0,position:"absolute",...te}},Object.fromEntries(Object.keys(u).filter(ie=>["right-sidebar","left-sidebar","top-extra","action-extra"].includes(ie)).map(ie=>[ie,u[ie]])));_c(M,Me),c.value=(_e=M.el)==null?void 0:_e.getBoundingClientRect(),_c(null,Me),j.removeChild(Me)}}},yi=[{name:"clock-icon",use:["time","calendar","shared"]},{name:"arrow-left",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-right",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-up",use:["time","calendar","month-year","shared"]},{name:"arrow-down",use:["time","calendar","month-year","shared"]},{name:"calendar-icon",use:["month-year","time","calendar","shared","year-mode"]},{name:"day",use:["calendar","shared"]},{name:"month-overlay-value",use:["calendar","month-year","shared"]},{name:"year-overlay-value",use:["calendar","month-year","shared","year-mode"]},{name:"year-overlay",use:["month-year","shared"]},{name:"month-overlay",use:["month-year","shared"]},{name:"month-overlay-header",use:["month-year","shared"]},{name:"year-overlay-header",use:["month-year","shared"]},{name:"hours-overlay-value",use:["calendar","time","shared"]},{name:"hours-overlay-header",use:["calendar","time","shared"]},{name:"minutes-overlay-value",use:["calendar","time","shared"]},{name:"minutes-overlay-header",use:["calendar","time","shared"]},{name:"seconds-overlay-value",use:["calendar","time","shared"]},{name:"seconds-overlay-header",use:["calendar","time","shared"]},{name:"hours",use:["calendar","time","shared"]},{name:"minutes",use:["calendar","time","shared"]},{name:"month",use:["calendar","month-year","shared"]},{name:"year",use:["calendar","month-year","shared","year-mode"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar","shared"]},{name:"marker-tooltip",use:["calendar","shared"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time","shared"]},{name:"am-pm-button",use:["calendar","time","shared"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year","shared"]},{name:"time-picker",use:["menu","shared"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar","shared"]},{name:"quarter",use:["shared"]},{name:"top-extra",use:["shared","month-year"]},{name:"tp-inline-arrow-up",use:["shared","time"]},{name:"tp-inline-arrow-down",use:["shared","time"]}],MB=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],RB={all:()=>yi,monthYear:()=>yi.filter(e=>e.use.includes("month-year")),input:()=>MB,timePicker:()=>yi.filter(e=>e.use.includes("time")),action:()=>yi.filter(e=>e.use.includes("action")),calendar:()=>yi.filter(e=>e.use.includes("calendar")),menu:()=>yi.filter(e=>e.use.includes("menu")),shared:()=>yi.filter(e=>e.use.includes("shared")),yearMode:()=>yi.filter(e=>e.use.includes("year-mode"))},Br=(e,t,n)=>{const r=[];return RB[t]().forEach(s=>{e[s.name]&&r.push(s.name)}),n!=null&&n.length&&n.forEach(s=>{s.slot&&r.push(s.slot)}),r},Bo=e=>{const t=pe(()=>r=>e.value?r?e.value.open:e.value.close:""),n=pe(()=>r=>e.value?r?e.value.menuAppearTop:e.value.menuAppearBottom:"");return{transitionName:t,showTransition:!!e.value,menuTransition:n}},Ho=(e,t,n)=>{const{defaultedRange:r,defaultedTz:s}=sn(e),a=De(Er(De(),s.value.timezone)),o=fe([{month:wt(a),year:lt(a)}]),u=m=>{const y={hours:ri(a),minutes:Vi(a),seconds:0};return r.value.enabled?[y[m],y[m]]:y[m]},c=Hr({hours:u("hours"),minutes:u("minutes"),seconds:u("seconds")});Wt(r,(m,y)=>{m.enabled!==y.enabled&&(c.hours=u("hours"),c.minutes=u("minutes"),c.seconds=u("seconds"))},{deep:!0});const h=pe({get:()=>e.internalModelValue,set:m=>{!e.readonly&&!e.disabled&&t("update:internal-model-value",m)}}),f=pe(()=>m=>o.value[m]?o.value[m].month:0),p=pe(()=>m=>o.value[m]?o.value[m].year:0);return Wt(h,(m,y)=>{n&&JSON.stringify(m??{})!==JSON.stringify(y??{})&&n()},{deep:!0}),{calendars:o,time:c,modelValue:h,month:f,year:p,today:a}},DB=(e,t)=>{const{defaultedMultiCalendars:n,defaultedMultiDates:r,defaultedUI:s,defaultedHighlight:a,defaultedTz:o,propDates:u,defaultedRange:c}=sn(t),{isDisabled:h}=ji(t),f=fe(null),p=fe(Er(new Date,o.value.timezone)),m=M=>{!M.current&&t.hideOffsetDates||(f.value=M.value)},y=()=>{f.value=null},_=M=>Array.isArray(e.value)&&c.value.enabled&&e.value[0]&&f.value?M?_n(f.value,e.value[0]):on(f.value,e.value[0]):!0,b=(M,ie)=>{const ge=()=>e.value?ie?e.value[0]||null:e.value[1]:null,z=e.value&&Array.isArray(e.value)?ge():null;return kt(De(M.value),z)},E=M=>{const ie=Array.isArray(e.value)?e.value[0]:null;return M?!on(f.value??null,ie):!0},H=(M,ie=!0)=>(c.value.enabled||t.weekPicker)&&Array.isArray(e.value)&&e.value.length===2?t.hideOffsetDates&&!M.current?!1:kt(De(M.value),e.value[ie?0:1]):c.value.enabled?b(M,ie)&&E(ie)||kt(M.value,Array.isArray(e.value)?e.value[0]:null)&&_(ie):!1,V=(M,ie)=>{if(Array.isArray(e.value)&&e.value[0]&&e.value.length===1){const ge=kt(M.value,f.value);return ie?_n(e.value[0],M.value)&&ge:on(e.value[0],M.value)&&ge}return!1},x=M=>!e.value||t.hideOffsetDates&&!M.current?!1:c.value.enabled?t.modelAuto&&Array.isArray(e.value)?kt(M.value,e.value[0]?e.value[0]:p.value):!1:r.value.enabled&&Array.isArray(e.value)?e.value.some(ie=>kt(ie,M.value)):kt(M.value,e.value?e.value:p.value),O=M=>{if(c.value.autoRange||t.weekPicker){if(f.value){if(t.hideOffsetDates&&!M.current)return!1;const ie=fs(f.value,+c.value.autoRange),ge=Ks(De(f.value),t.weekStart);return t.weekPicker?kt(ge[1],De(M.value)):kt(ie,De(M.value))}return!1}return!1},B=M=>{if(c.value.autoRange||t.weekPicker){if(f.value){const ie=fs(f.value,+c.value.autoRange);if(t.hideOffsetDates&&!M.current)return!1;const ge=Ks(De(f.value),t.weekStart);return t.weekPicker?_n(M.value,ge[0])&&on(M.value,ge[1]):_n(M.value,f.value)&&on(M.value,ie)}return!1}return!1},U=M=>{if(c.value.autoRange||t.weekPicker){if(f.value){if(t.hideOffsetDates&&!M.current)return!1;const ie=Ks(De(f.value),t.weekStart);return t.weekPicker?kt(ie[0],M.value):kt(f.value,M.value)}return!1}return!1},F=M=>fd(e.value,f.value,M.value),D=()=>t.modelAuto&&Array.isArray(t.internalModelValue)?!!t.internalModelValue[0]:!1,T=()=>t.modelAuto?fw(t.internalModelValue):!0,$=M=>{if(t.weekPicker)return!1;const ie=c.value.enabled?!H(M)&&!H(M,!1):!0;return!h(M.value)&&!x(M)&&!(!M.current&&t.hideOffsetDates)&&ie},se=M=>c.value.enabled?t.modelAuto?D()&&x(M):!1:x(M),ee=M=>a.value?G$(M.value,u.value.highlight):!1,de=M=>{const ie=h(M.value);return ie&&(typeof a.value=="function"?!a.value(M.value,ie):!a.value.options.highlightDisabled)},ne=M=>{var ie;return typeof a.value=="function"?a.value(M.value):(ie=a.value.weekdays)==null?void 0:ie.includes(M.value.getDay())},N=M=>(c.value.enabled||t.weekPicker)&&(!(n.value.count>0)||M.current)&&T()&&!(!M.current&&t.hideOffsetDates)&&!x(M)?F(M):!1,G=M=>{const{isRangeStart:ie,isRangeEnd:ge}=Me(M),z=c.value.enabled?ie||ge:!1;return{dp__cell_offset:!M.current,dp__pointer:!t.disabled&&!(!M.current&&t.hideOffsetDates)&&!h(M.value),dp__cell_disabled:h(M.value),dp__cell_highlight:!de(M)&&(ee(M)||ne(M))&&!se(M)&&!z&&!U(M)&&!(N(M)&&t.weekPicker)&&!ge,dp__cell_highlight_active:!de(M)&&(ee(M)||ne(M))&&se(M),dp__today:!t.noToday&&kt(M.value,p.value)&&M.current,"dp--past":on(M.value,p.value),"dp--future":_n(M.value,p.value)}},k=M=>({dp__active_date:se(M),dp__date_hover:$(M)}),J=M=>{if(e.value&&!Array.isArray(e.value)){const ie=Ks(e.value,t.weekStart);return{...j(M),dp__range_start:kt(ie[0],M.value),dp__range_end:kt(ie[1],M.value),dp__range_between_week:_n(M.value,ie[0])&&on(M.value,ie[1])}}return{...j(M)}},_e=M=>{if(e.value&&Array.isArray(e.value)){const ie=Ks(e.value[0],t.weekStart),ge=e.value[1]?Ks(e.value[1],t.weekStart):[];return{...j(M),dp__range_start:kt(ie[0],M.value)||kt(ge[0],M.value),dp__range_end:kt(ie[1],M.value)||kt(ge[1],M.value),dp__range_between_week:_n(M.value,ie[0])&&on(M.value,ie[1])||_n(M.value,ge[0])&&on(M.value,ge[1]),dp__range_between:_n(M.value,ie[1])&&on(M.value,ge[0])}}return{...j(M)}},Me=M=>{const ie=n.value.count>0?M.current&&H(M)&&T():H(M)&&T(),ge=n.value.count>0?M.current&&H(M,!1)&&T():H(M,!1)&&T();return{isRangeStart:ie,isRangeEnd:ge}},Ne=M=>{const{isRangeStart:ie,isRangeEnd:ge}=Me(M);return{dp__range_start:ie,dp__range_end:ge,dp__range_between:N(M),dp__date_hover:kt(M.value,f.value)&&!ie&&!ge&&!t.weekPicker,dp__date_hover_start:V(M,!0),dp__date_hover_end:V(M,!1)}},j=M=>({...Ne(M),dp__cell_auto_range:B(M),dp__cell_auto_range_start:U(M),dp__cell_auto_range_end:O(M)}),te=M=>c.value.enabled?c.value.autoRange?j(M):t.modelAuto?{...k(M),...Ne(M)}:t.weekPicker?_e(M):Ne(M):t.weekPicker?J(M):k(M);return{setHoverDate:m,clearHoverDate:y,getDayClassData:M=>t.hideOffsetDates&&!M.current?{}:{...G(M),...te(M),[t.dayClass?t.dayClass(M.value,t.internalModelValue):""]:!0,[t.calendarCellClassName]:!!t.calendarCellClassName,...s.value.calendarCell??{}}}},ji=e=>{const{defaultedFilters:t,defaultedRange:n,propDates:r,defaultedMultiDates:s}=sn(e),a=ne=>r.value.disabledDates?typeof r.value.disabledDates=="function"?r.value.disabledDates(De(ne)):!!Dc(ne,r.value.disabledDates):!1,o=ne=>r.value.maxDate?e.yearPicker?lt(ne)>lt(r.value.maxDate):_n(ne,r.value.maxDate):!1,u=ne=>r.value.minDate?e.yearPicker?lt(ne){const N=o(ne),G=u(ne),k=a(ne),J=t.value.months.map(te=>+te).includes(wt(ne)),_e=e.disabledWeekDays.length?e.disabledWeekDays.some(te=>+te===N6(ne)):!1,Me=y(ne),Ne=lt(ne),j=Ne<+e.yearRange[0]||Ne>+e.yearRange[1];return!(N||G||k||J||j||_e||Me)},h=(ne,N)=>on(...Ti(r.value.minDate,ne,N))||kt(...Ti(r.value.minDate,ne,N)),f=(ne,N)=>_n(...Ti(r.value.maxDate,ne,N))||kt(...Ti(r.value.maxDate,ne,N)),p=(ne,N,G)=>{let k=!1;return r.value.maxDate&&G&&f(ne,N)&&(k=!0),r.value.minDate&&!G&&h(ne,N)&&(k=!0),k},m=(ne,N,G,k)=>{let J=!1;return k?r.value.minDate&&r.value.maxDate?J=p(ne,N,G):(r.value.minDate&&h(ne,N)||r.value.maxDate&&f(ne,N))&&(J=!0):J=!0,J},y=ne=>Array.isArray(r.value.allowedDates)&&!r.value.allowedDates.length?!0:r.value.allowedDates?!Dc(ne,r.value.allowedDates):!1,_=ne=>!c(ne),b=ne=>n.value.noDisabledRange?!G1({start:ne[0],end:ne[1]}).some(N=>_(N)):!0,E=ne=>{if(ne){const N=lt(ne);return N>=+e.yearRange[0]&&N<=e.yearRange[1]}return!0},H=(ne,N)=>!!(Array.isArray(ne)&&ne[N]&&(n.value.maxRange||n.value.minRange)&&E(ne[N])),V=(ne,N,G=0)=>{if(H(N,G)&&E(ne)){const k=z1(ne,N[G]),J=vw(N[G],ne),_e=J.length===1?0:J.filter(Ne=>_(Ne)).length,Me=Math.abs(k)-(n.value.minMaxRawRange?0:_e);if(n.value.minRange&&n.value.maxRange)return Me>=+n.value.minRange&&Me<=+n.value.maxRange;if(n.value.minRange)return Me>=+n.value.minRange;if(n.value.maxRange)return Me<=+n.value.maxRange}return!0},x=()=>!e.enableTimePicker||e.monthPicker||e.yearPicker||e.ignoreTimeValidation,O=ne=>Array.isArray(ne)?[ne[0]?rh(ne[0]):null,ne[1]?rh(ne[1]):null]:rh(ne),B=(ne,N,G)=>ne.find(k=>+k.hours===ri(N)&&k.minutes==="*"?!0:+k.minutes===Vi(N)&&+k.hours===ri(N))&&G,U=(ne,N,G)=>{const[k,J]=ne,[_e,Me]=N;return!B(k,_e,G)&&!B(J,Me,G)&&G},F=(ne,N)=>{const G=Array.isArray(N)?N:[N];return Array.isArray(e.disabledTimes)?Array.isArray(e.disabledTimes[0])?U(e.disabledTimes,G,ne):!G.some(k=>B(e.disabledTimes,k,ne)):ne},D=(ne,N)=>{const G=Array.isArray(N)?[ga(N[0]),N[1]?ga(N[1]):void 0]:ga(N),k=!e.disabledTimes(G);return ne&&k},T=(ne,N)=>e.disabledTimes?Array.isArray(e.disabledTimes)?F(N,ne):D(N,ne):N,$=ne=>{let N=!0;if(!ne||x())return!0;const G=!r.value.minDate&&!r.value.maxDate?O(ne):ne;return(e.maxTime||r.value.maxDate)&&(N=y0(e.maxTime,r.value.maxDate,"max",Fn(G),N)),(e.minTime||r.value.minDate)&&(N=y0(e.minTime,r.value.minDate,"min",Fn(G),N)),T(ne,N)},se=ne=>{if(!e.monthPicker)return!0;let N=!0;const G=De(hs(ne));if(r.value.minDate&&r.value.maxDate){const k=De(hs(r.value.minDate)),J=De(hs(r.value.maxDate));return _n(G,k)&&on(G,J)||kt(G,k)||kt(G,J)}if(r.value.minDate){const k=De(hs(r.value.minDate));N=_n(G,k)||kt(G,k)}if(r.value.maxDate){const k=De(hs(r.value.maxDate));N=on(G,k)||kt(G,k)}return N},ee=pe(()=>ne=>!e.enableTimePicker||e.ignoreTimeValidation?!0:$(ne)),de=pe(()=>ne=>e.monthPicker?Array.isArray(ne)&&(n.value.enabled||s.value.enabled)?!ne.filter(N=>!se(N)).length:se(ne):!0);return{isDisabled:_,validateDate:c,validateMonthYearInRange:m,isDateRangeAllowed:b,checkMinMaxRange:V,isValidTime:$,isTimeValid:ee,isMonthValid:de}},gd=()=>{const e=pe(()=>(r,s)=>r==null?void 0:r.includes(s)),t=pe(()=>(r,s)=>r.count?r.solo?!0:s===0:!0),n=pe(()=>(r,s)=>r.count?r.solo?!0:s===r.count-1:!0);return{hideNavigationButtons:e,showLeftIcon:t,showRightIcon:n}},PB=(e,t,n)=>{const r=fe(0),s=Hr({[ma.timePicker]:!e.enableTimePicker||e.timePicker||e.monthPicker,[ma.calendar]:!1,[ma.header]:!1}),a=pe(()=>e.monthPicker||e.timePicker),o=p=>{var m;if((m=e.flow)!=null&&m.length){if(!p&&a.value)return f();s[p]=!0,Object.keys(s).filter(y=>!s[y]).length||f()}},u=()=>{var p,m;(p=e.flow)!=null&&p.length&&r.value!==-1&&(r.value+=1,t("flow-step",r.value),f()),((m=e.flow)==null?void 0:m.length)===r.value&&Un().then(()=>c())},c=()=>{r.value=-1},h=(p,m,...y)=>{var _,b;e.flow[r.value]===p&&n.value&&((b=(_=n.value)[m])==null||b.call(_,...y))},f=(p=0)=>{p&&(r.value+=p),h(Qn.month,"toggleMonthPicker",!0),h(Qn.year,"toggleYearPicker",!0),h(Qn.calendar,"toggleTimePicker",!1,!0),h(Qn.time,"toggleTimePicker",!0,!0);const m=e.flow[r.value];(m===Qn.hours||m===Qn.minutes||m===Qn.seconds)&&h(m,"toggleTimePicker",!0,!0,m)};return{childMount:o,updateFlowStep:u,resetFlow:c,handleFlow:f,flowStep:r}},LB={key:1,class:"dp__input_wrap"},IB=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid"],NB={key:2,class:"dp__clear_icon"},VB=fn({compatConfig:{MODE:3},__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...hd},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur"],setup(e,{expose:t,emit:n}){const r=n,s=e,{defaultedTextInput:a,defaultedAriaLabels:o,defaultedInline:u,defaultedConfig:c,defaultedRange:h,defaultedMultiDates:f,defaultedUI:p,getDefaultPattern:m,getDefaultStartTime:y}=sn(s),{checkMinMaxRange:_}=ji(s),b=fe(),E=fe(null),H=fe(!1),V=fe(!1),x=pe(()=>({dp__pointer:!s.disabled&&!s.readonly&&!a.value.enabled,dp__disabled:s.disabled,dp__input_readonly:!a.value.enabled,dp__input:!0,dp__input_icon_pad:!s.hideInputIcon,dp__input_valid:!!s.state,dp__input_invalid:s.state===!1,dp__input_focus:H.value||s.isMenuOpen,dp__input_reg:!a.value.enabled,[s.inputClassName]:!!s.inputClassName,...p.value.input??{}})),O=()=>{r("set-input-date",null),s.clearable&&s.autoApply&&(r("set-empty-date"),b.value=null)},B=k=>{const J=y();return J$(k,a.value.format??m(),J??yw({},s.enableSeconds),s.inputValue,V.value,s.formatLocale)},U=k=>{const{rangeSeparator:J}=a.value,[_e,Me]=k.split(`${J}`);if(_e){const Ne=B(_e.trim()),j=Me?B(Me.trim()):null;if(yl(Ne,j))return;const te=Ne&&j?[Ne,j]:[Ne];_(j,te,0)&&(b.value=Ne?te:null)}},F=()=>{V.value=!0},D=k=>{if(h.value.enabled)U(k);else if(f.value.enabled){const J=k.split(";");b.value=J.map(_e=>B(_e.trim())).filter(_e=>_e)}else b.value=B(k)},T=k=>{var J;const _e=typeof k=="string"?k:(J=k.target)==null?void 0:J.value;_e!==""?(a.value.openMenu&&!s.isMenuOpen&&r("open"),D(_e),r("set-input-date",b.value)):O(),V.value=!1,r("update:input-value",_e)},$=k=>{a.value.enabled?(D(k.target.value),a.value.enterSubmit&&Kh(b.value)&&s.inputValue!==""?(r("set-input-date",b.value,!0),b.value=null):a.value.enterSubmit&&s.inputValue===""&&(b.value=null,r("clear"))):de(k)},se=k=>{a.value.enabled&&a.value.tabSubmit&&D(k.target.value),a.value.tabSubmit&&Kh(b.value)&&s.inputValue!==""?(r("set-input-date",b.value,!0,!0),b.value=null):a.value.tabSubmit&&s.inputValue===""&&(b.value=null,r("clear",!0))},ee=()=>{H.value=!0,r("focus"),Un().then(()=>{var k;a.value.enabled&&a.value.selectOnFocus&&((k=E.value)==null||k.select())})},de=k=>{k.preventDefault(),Ri(k,c.value,!0),a.value.enabled&&a.value.openMenu&&!u.value.input&&!s.isMenuOpen?r("open"):a.value.enabled||r("toggle")},ne=()=>{r("real-blur"),H.value=!1,(!s.isMenuOpen||u.value.enabled&&u.value.input)&&r("blur"),s.autoApply&&a.value.enabled&&b.value&&!s.isMenuOpen&&(r("set-input-date",b.value),r("select-date"),b.value=null)},N=k=>{Ri(k,c.value,!0),r("clear")},G=k=>{if(k.key==="Tab"&&se(k),k.key==="Enter"&&$(k),!a.value.enabled){if(k.code==="Tab")return;k.preventDefault()}};return t({focusInput:()=>{var k;(k=E.value)==null||k.focus({preventScroll:!0})},setParsedDate:k=>{b.value=k}}),(k,J)=>{var _e;return S(),P("div",{onClick:de},[k.$slots.trigger&&!k.$slots["dp-input"]&&!Z(u).enabled?Ie(k.$slots,"trigger",{key:0}):ae("",!0),!k.$slots.trigger&&(!Z(u).enabled||Z(u).input)?(S(),P("div",LB,[k.$slots["dp-input"]&&!k.$slots.trigger&&(!Z(u).enabled||Z(u).enabled&&Z(u).input)?Ie(k.$slots,"dp-input",{key:0,value:e.inputValue,isMenuOpen:e.isMenuOpen,onInput:T,onEnter:$,onTab:se,onClear:N,onBlur:ne,onKeypress:G,onPaste:F,onFocus:ee,openMenu:()=>k.$emit("open"),closeMenu:()=>k.$emit("close"),toggleMenu:()=>k.$emit("toggle")}):ae("",!0),k.$slots["dp-input"]?ae("",!0):(S(),P("input",{key:1,id:k.uid?`dp-input-${k.uid}`:void 0,ref_key:"inputRef",ref:E,"data-test":"dp-input",name:k.name,class:Be(x.value),inputmode:Z(a).enabled?"text":"none",placeholder:k.placeholder,disabled:k.disabled,readonly:k.readonly,required:k.required,value:e.inputValue,autocomplete:k.autocomplete,"aria-label":(_e=Z(o))==null?void 0:_e.input,"aria-disabled":k.disabled||void 0,"aria-invalid":k.state===!1?!0:void 0,onInput:T,onBlur:ne,onFocus:ee,onKeypress:G,onKeydown:G,onPaste:F},null,42,IB)),v("div",{onClick:J[2]||(J[2]=Me=>r("toggle"))},[k.$slots["input-icon"]&&!k.hideInputIcon?(S(),P("span",{key:0,class:"dp__input_icon",onClick:J[0]||(J[0]=Me=>r("toggle"))},[Ie(k.$slots,"input-icon")])):ae("",!0),!k.$slots["input-icon"]&&!k.hideInputIcon&&!k.$slots["dp-input"]?(S(),it(Z(Al),{key:1,class:"dp__input_icon dp__input_icons",onClick:J[1]||(J[1]=Me=>r("toggle"))})):ae("",!0)]),k.$slots["clear-icon"]&&e.inputValue&&k.clearable&&!k.disabled&&!k.readonly?(S(),P("span",NB,[Ie(k.$slots,"clear-icon",{clear:N})])):ae("",!0),k.clearable&&!k.$slots["clear-icon"]&&e.inputValue&&!k.disabled&&!k.readonly?(S(),it(Z(cw),{key:3,class:"dp__clear_icon dp__input_icons","data-test":"clear-icon",onClick:J[3]||(J[3]=Et(Me=>N(Me),["prevent"]))})):ae("",!0)])):ae("",!0)])}}}),FB=typeof window<"u"?window:void 0,uh=()=>{},$B=e=>rp()?(e_(e),!0):!1,BB=(e,t,n,r)=>{if(!e)return uh;let s=uh;const a=Wt(()=>Z(e),u=>{s(),u&&(u.addEventListener(t,n,r),s=()=>{u.removeEventListener(t,n,r),s=uh})},{immediate:!0,flush:"post"}),o=()=>{a(),s()};return $B(o),o},HB=(e,t,n,r={})=>{const{window:s=FB,event:a="pointerdown"}=r;return s?BB(s,a,o=>{const u=Ln(e),c=Ln(t);!u||!c||u===o.target||o.composedPath().includes(u)||o.composedPath().includes(c)||n(o)},{passive:!0}):void 0},UB=fn({compatConfig:{MODE:3},__name:"VueDatePicker",props:{...hd},emits:["update:model-value","update:model-timezone-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invalid-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:n}){const r=n,s=e,a=Bi(),o=fe(!1),u=ll(s,"modelValue"),c=ll(s,"timezone"),h=fe(null),f=fe(null),p=fe(null),m=fe(!1),y=fe(null),_=fe(!1),b=fe(!1),E=fe(!1),H=fe(!1),{setMenuFocused:V,setShiftKey:x}=kw(),{clearArrowNav:O}=Ui(),{validateDate:B,isValidTime:U}=ji(s),{defaultedTransitions:F,defaultedTextInput:D,defaultedInline:T,defaultedConfig:$,defaultedRange:se,defaultedMultiDates:ee}=sn(s),{menuTransition:de,showTransition:ne}=Bo(F);Ft(()=>{ie(s.modelValue),Un().then(()=>{if(!T.value.enabled){const xe=Ne(y.value);xe==null||xe.addEventListener("scroll",K),window==null||window.addEventListener("resize",Q)}}),T.value.enabled&&(o.value=!0),window==null||window.addEventListener("keyup",me),window==null||window.addEventListener("keydown",q)}),ii(()=>{if(!T.value.enabled){const xe=Ne(y.value);xe==null||xe.removeEventListener("scroll",K),window==null||window.removeEventListener("resize",Q)}window==null||window.removeEventListener("keyup",me),window==null||window.removeEventListener("keydown",q)});const N=Br(a,"all",s.presetDates),G=Br(a,"input");Wt([u,c],()=>{ie(u.value)},{deep:!0});const{openOnTop:k,menuStyle:J,xCorrect:_e,setMenuPosition:Me,getScrollableParent:Ne,shadowRender:j}=OB({menuRef:h,menuRefInner:f,inputRef:p,pickerWrapperRef:y,inline:T,emit:r,props:s,slots:a}),{inputValue:te,internalModelValue:M,parseExternalModelValue:ie,emitModelValue:ge,formatInputValue:z,checkBeforeEmit:Le}=b5(r,s,m),Xe=pe(()=>({dp__main:!0,dp__theme_dark:s.dark,dp__theme_light:!s.dark,dp__flex_display:T.value.enabled,"dp--flex-display-collapsed":E.value,dp__flex_display_with_input:T.value.input})),we=pe(()=>s.dark?"dp__theme_dark":"dp__theme_light"),et=pe(()=>s.teleport?{to:typeof s.teleport=="boolean"?"body":s.teleport,disabled:!s.teleport||T.value.enabled}:{}),W=pe(()=>({class:"dp__outer_menu_wrap"})),C=pe(()=>T.value.enabled&&(s.timePicker||s.monthPicker||s.yearPicker||s.quarterPicker)),I=()=>{var xe,$e;return($e=(xe=p.value)==null?void 0:xe.$el)==null?void 0:$e.getBoundingClientRect()},K=()=>{o.value&&($.value.closeOnScroll?Ge():Me())},Q=()=>{var xe;o.value&&Me();const $e=(xe=f.value)==null?void 0:xe.$el.getBoundingClientRect().width;E.value=document.body.offsetWidth<=$e},me=xe=>{xe.key==="Tab"&&!T.value.enabled&&!s.teleport&&$.value.tabOutClosesMenu&&(y.value.contains(document.activeElement)||Ge()),b.value=xe.shiftKey},q=xe=>{b.value=xe.shiftKey},ce=()=>{!s.disabled&&!s.readonly&&(j(x0,s),Me(!1),o.value=!0,o.value&&r("open"),o.value||qe(),ie(s.modelValue))},ye=()=>{var xe;te.value="",qe(),(xe=p.value)==null||xe.setParsedDate(null),r("update:model-value",null),r("update:model-timezone-value",null),r("cleared"),$.value.closeOnClearValue&&Ge()},ke=()=>{const xe=M.value;return!xe||!Array.isArray(xe)&&B(xe)?!0:Array.isArray(xe)?ee.value.enabled||xe.length===2&&B(xe[0])&&B(xe[1])?!0:se.value.partialRange&&!s.timePicker?B(xe[0]):!1:!1},Ce=()=>{Le()&&ke()?(ge(),Ge()):r("invalid-select",M.value)},Oe=xe=>{He(),ge(),$.value.closeOnAutoApply&&!xe&&Ge()},He=()=>{p.value&&D.value.enabled&&p.value.setParsedDate(M.value)},Ue=(xe=!1)=>{s.autoApply&&U(M.value)&&ke()&&(se.value.enabled&&Array.isArray(M.value)?(se.value.partialRange||M.value.length===2)&&Oe(xe):Oe(xe))},qe=()=>{D.value.enabled||(M.value=null)},Ge=()=>{T.value.enabled||(o.value&&(o.value=!1,_e.value=!1,V(!1),x(!1),O(),r("closed"),te.value&&ie(u.value)),qe(),r("blur"))},ct=(xe,$e,We=!1)=>{if(!xe){M.value=null;return}const Nn=Array.isArray(xe)?!xe.some(Ls=>!B(Ls)):B(xe),pr=U(xe);Nn&&pr&&(H.value=!0,M.value=xe,$e&&(_.value=We,Ce(),r("text-submit")),Un().then(()=>{H.value=!1}))},_t=()=>{s.autoApply&&U(M.value)&&ge(),He()},an=()=>o.value?Ge():ce(),Zt=xe=>{M.value=xe},An=()=>{D.value.enabled&&(m.value=!0,z()),r("focus")},hn=()=>{if(D.value.enabled&&(m.value=!1,ie(s.modelValue),_.value)){const xe=z$(y.value,b.value);xe==null||xe.focus()}r("blur")},Mr=xe=>{f.value&&f.value.updateMonthYear(0,{month:m0(xe.month),year:m0(xe.year)})},ws=xe=>{ie(xe??s.modelValue)},pn=(xe,$e)=>{var We;(We=f.value)==null||We.switchView(xe,$e)},ue=xe=>$.value.onClickOutside?$.value.onClickOutside(xe):Ge(),Fe=(xe=0)=>{var $e;($e=f.value)==null||$e.handleFlow(xe)};return HB(h,p,()=>ue(ke)),t({closeMenu:Ge,selectDate:Ce,clearValue:ye,openMenu:ce,onScroll:K,formatInputValue:z,updateInternalModelValue:Zt,setMonthYear:Mr,parseModel:ws,switchView:pn,toggleMenu:an,handleFlow:Fe}),(xe,$e)=>(S(),P("div",{ref_key:"pickerWrapperRef",ref:y,class:Be(Xe.value),"data-datepicker-instance":""},[he(VB,cn({ref_key:"inputRef",ref:p,"input-value":Z(te),"onUpdate:inputValue":$e[0]||($e[0]=We=>Tn(te)?te.value=We:null),"is-menu-open":o.value},xe.$props,{onClear:ye,onOpen:ce,onSetInputDate:ct,onSetEmptyDate:Z(ge),onSelectDate:Ce,onToggle:an,onClose:Ge,onFocus:An,onBlur:hn,onRealBlur:$e[1]||($e[1]=We=>m.value=!1)}),Hn({_:2},[Qe(Z(G),(We,Nn)=>({name:We,fn:Te(pr=>[Ie(xe.$slots,We,wn(Yn(pr)))])}))]),1040,["input-value","is-menu-open","onSetEmptyDate"]),(S(),it(Cl(xe.teleport?R_:"div"),wn(Yn(et.value)),{default:Te(()=>[he(vs,{name:Z(de)(Z(k)),css:Z(ne)&&!Z(T).enabled},{default:Te(()=>[o.value?(S(),P("div",cn({key:0,ref_key:"dpWrapMenuRef",ref:h},W.value,{class:{"dp--menu-wrapper":!Z(T).enabled},style:Z(T).enabled?void 0:Z(J)}),[he(x0,cn({ref_key:"dpMenuRef",ref:f},xe.$props,{"internal-model-value":Z(M),"onUpdate:internalModelValue":$e[2]||($e[2]=We=>Tn(M)?M.value=We:null),class:{[we.value]:!0,"dp--menu-wrapper":xe.teleport},"open-on-top":Z(k),"no-overlay-focus":C.value,collapse:E.value,"get-input-rect":I,"is-text-input-date":H.value,onClosePicker:Ge,onSelectDate:Ce,onAutoApply:Ue,onTimeUpdate:_t,onFlowStep:$e[3]||($e[3]=We=>xe.$emit("flow-step",We)),onUpdateMonthYear:$e[4]||($e[4]=We=>xe.$emit("update-month-year",We)),onInvalidSelect:$e[5]||($e[5]=We=>xe.$emit("invalid-select",Z(M))),onAutoApplyInvalid:$e[6]||($e[6]=We=>xe.$emit("invalid-select",We)),onInvalidFixedRange:$e[7]||($e[7]=We=>xe.$emit("invalid-fixed-range",We)),onRecalculatePosition:Z(Me),onTooltipOpen:$e[8]||($e[8]=We=>xe.$emit("tooltip-open",We)),onTooltipClose:$e[9]||($e[9]=We=>xe.$emit("tooltip-close",We)),onTimePickerOpen:$e[10]||($e[10]=We=>xe.$emit("time-picker-open",We)),onTimePickerClose:$e[11]||($e[11]=We=>xe.$emit("time-picker-close",We)),onAmPmChange:$e[12]||($e[12]=We=>xe.$emit("am-pm-change",We)),onRangeStart:$e[13]||($e[13]=We=>xe.$emit("range-start",We)),onRangeEnd:$e[14]||($e[14]=We=>xe.$emit("range-end",We)),onDateUpdate:$e[15]||($e[15]=We=>xe.$emit("date-update",We)),onInvalidDate:$e[16]||($e[16]=We=>xe.$emit("invalid-date",We)),onOverlayToggle:$e[17]||($e[17]=We=>xe.$emit("overlay-toggle",We))}),Hn({_:2},[Qe(Z(N),(We,Nn)=>({name:We,fn:Te(pr=>[Ie(xe.$slots,We,wn(Yn({...pr})))])}))]),1040,["internal-model-value","class","open-on-top","no-overlay-focus","collapse","is-text-input-date","onRecalculatePosition"])],16)):ae("",!0)]),_:3},8,["name","css"])]),_:3},16))],2))}}),cm=(()=>{const e=UB;return e.install=t=>{t.component("Vue3DatePicker",e)},e})(),jB=Object.freeze(Object.defineProperty({__proto__:null,default:cm},Symbol.toStringTag,{value:"Module"}));Object.entries(jB).forEach(([e,t])=>{e!=="default"&&(cm[e]=t)});const qB={components:{VueDatePicker:cm},props:["name","placeholder","value","lang","format","onClear","flow"],data(){return{time1:this.value?this.value:"",time2:"",shortcuts:[{text:"Today",start:new Date,end:new Date}]}},methods:{onChange(e){if(this.$emit("onClear"),!(e instanceof Date)||isNaN(e.getTime()))return"";const t=u=>u.toString().padStart(2,"0"),n=e.getFullYear(),r=t(e.getMonth()+1),s=t(e.getDate()),a=t(e.getHours()),o=t(e.getMinutes());this.$emit("onChange",`${n}-${r}-${s} ${a}:${o}`)}}},WB={class:"datepicker-wrapper"};function YB(e,t,n,r,s,a){const o=at("VueDatePicker");return S(),P("div",WB,[he(o,{class:"custom-date-picker",name:n.name,modelValue:s.time1,"onUpdate:modelValue":[t[0]||(t[0]=u=>s.time1=u),a.onChange],type:"datetime",format:n.format||"yyyy-MM-dd HH:mm","time-picker-options":{start:"07:00",step:"00:30",end:"23:30"},lang:"en",placeholder:n.placeholder,flow:n.flow},null,8,["name","modelValue","format","placeholder","onUpdate:modelValue","flow"])])}const zB=yt(qB,[["render",YB],["__scopeId","data-v-c2f72b26"]]),KB={props:{question:{type:Object,required:!0}},setup(e){const t=fe(!0),n=()=>{t.value=!t.value},r=pe(()=>({expanded:t.value,collapsed:!t.value}));return{isOpen:t,toggleOpen:n,chevron:r}}},GB={class:"codeweek-question-container"},JB={class:"expander-always-visible"},ZB={class:"expansion"},XB={class:"content"},QB={class:"content"},e8={key:0,class:"maps"},t8={key:1,class:"button"},n8=["href"],r8=["value"];function s8(e,t,n,r,s,a){return S(),P("div",GB,[v("div",JB,[v("div",ZB,[v("button",{onClick:t[0]||(t[0]=(...o)=>r.toggleOpen&&r.toggleOpen(...o)),class:"codeweek-expander-button"},[v("div",null,re(r.isOpen?"-":"+"),1)])]),v("div",XB,[v("h1",null,re(n.question.title1),1)])]),v("div",{class:Be([r.chevron,"container-expansible"])},[t[2]||(t[2]=v("div",{class:"expansion"},[v("div",{class:"expansion-path"})],-1)),v("div",QB,[v("h2",null,re(n.question.title2),1),(S(!0),P(Ve,null,Qe(n.question.content,(o,u)=>(S(),P("p",{key:u},re(o),1))),128)),n.question.map?(S(),P("div",e8,t[1]||(t[1]=[v("iframe",{class:"map",src:"/map",scrolling:"no"},null,-1)]))):ae("",!0),n.question.button.show?(S(),P("div",t8,[v("a",{href:n.question.button.link,class:"codeweek-button"},[v("input",{type:"submit",value:n.question.button.label},null,8,r8)],8,n8)])):ae("",!0)])],2)])}const i8=yt(KB,[["render",s8]]),a8=fn({emits:["loaded"],methods:{onChange(e){if(!e.target.files.length)return;let t=e.target.files[0],n=new FileReader;n.readAsDataURL(t),n.onload=r=>{let s=r.target.result;this.$emit("loaded",{src:s,file:t})}}}});function l8(e,t,n,r,s,a){return S(),P("div",null,[v("input",{id:"image",type:"file",accept:"image/*",onChange:t[0]||(t[0]=(...o)=>e.onChange&&e.onChange(...o))},null,32),t[1]||(t[1]=v("label",{class:"!flex justify-center items-center !h-10 !w-10 !p-0 !bg-dark-blue border-2 border-white",for:"image"},[v("img",{class:"w-5 h-5",src:"/images/edit.svg"})],-1))])}const Mw=yt(a8,[["render",l8]]),o8={components:{ImageUpload:Mw,Flash:cd},props:{image:{type:String,default:""},picture:{type:String,default:""}},setup(e){const t=fe(e.picture||""),n=fe(e.image||""),r=fe(""),s=u=>{a(u.file)},a=u=>{let c=new FormData;c.append("picture",u),Tt.post("/api/events/picture",c).then(h=>{r.value="",t.value=h.data.path,n.value=h.data.imageName,ei.emit("flash",{message:"Picture uploaded!",level:"success"})}).catch(h=>{h.response.data.errors&&h.response.data.errors.picture?r.value=h.response.data.errors.picture[0]:r.value="Image is too large. Maximum is 1Mb",ei.emit("flash",{message:r.value,level:"error"})})};return{pictureClone:t,imageClone:n,error:r,onLoad:s,persist:a,remove:()=>{Tt.delete("/api/event/picture").then(()=>{ei.emit("flash",{message:"Event Picture deleted!",level:"success"}),t.value="https://s3-eu-west-1.amazonaws.com/codeweek-dev/events/pictures/default.png"})}}}},u8={key:0,style:{"background-color":"darkred",color:"white",padding:"4px"}},c8={class:"level"},d8=["src"],f8=["value"],h8={method:"POST",enctype:"multipart/form-data"};function p8(e,t,n,r,s,a){const o=at("ImageUpload"),u=at("Flash");return S(),P("div",null,[r.error!==""?(S(),P("div",u8,re(r.error),1)):ae("",!0),v("div",c8,[v("img",{src:r.pictureClone,class:"mr-1"},null,8,d8)]),v("input",{type:"hidden",name:"picture",value:r.imageClone},null,8,f8),v("form",h8,[he(o,{name:"picture",class:"mr-1",onLoaded:r.onLoad},null,8,["onLoaded"])]),he(u)])}const m8=yt(o8,[["render",p8]]);var g8=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function v8(e,t,n){return n={path:t,exports:{},require:function(r,s){return y8(r,s??n.path)}},e(n,n.exports),n.exports}function y8(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var _8=v8(function(e,t){(function(n,r){e.exports=r()})(g8,function(){var n="__v-click-outside",r=typeof window<"u",s=typeof navigator<"u",a=r&&("ontouchstart"in window||s&&navigator.msMaxTouchPoints>0)?["touchstart"]:["click"],o=function(f){var p=f.event,m=f.handler;(0,f.middleware)(p)&&m(p)},u=function(f,p){var m=function(V){var x=typeof V=="function";if(!x&&typeof V!="object")throw new Error("v-click-outside: Binding value must be a function or an object");return{handler:x?V:V.handler,middleware:V.middleware||function(O){return O},events:V.events||a,isActive:V.isActive!==!1,detectIframe:V.detectIframe!==!1,capture:!!V.capture}}(p.value),y=m.handler,_=m.middleware,b=m.detectIframe,E=m.capture;if(m.isActive){if(f[n]=m.events.map(function(V){return{event:V,srcTarget:document.documentElement,handler:function(x){return function(O){var B=O.el,U=O.event,F=O.handler,D=O.middleware,T=U.path||U.composedPath&&U.composedPath();(T?T.indexOf(B)<0:!B.contains(U.target))&&o({event:U,handler:F,middleware:D})}({el:f,event:x,handler:y,middleware:_})},capture:E}}),b){var H={event:"blur",srcTarget:window,handler:function(V){return function(x){var O=x.el,B=x.event,U=x.handler,F=x.middleware;setTimeout(function(){var D=document.activeElement;D&&D.tagName==="IFRAME"&&!O.contains(D)&&o({event:B,handler:U,middleware:F})},0)}({el:f,event:V,handler:y,middleware:_})},capture:E};f[n]=[].concat(f[n],[H])}f[n].forEach(function(V){var x=V.event,O=V.srcTarget,B=V.handler;return setTimeout(function(){f[n]&&O.addEventListener(x,B,E)},0)})}},c=function(f){(f[n]||[]).forEach(function(p){return p.srcTarget.removeEventListener(p.event,p.handler,p.capture)}),delete f[n]},h=r?{beforeMount:u,updated:function(f,p){var m=p.value,y=p.oldValue;JSON.stringify(m)!==JSON.stringify(y)&&(c(f),u(f,{value:m}))},unmounted:c}:{};return{install:function(f){f.directive("click-outside",h)},directive:h}})}),b8=_8;const w8={class:"v3ti-loader-wrapper"},x8=v("div",{class:"v3ti-loader"},null,-1),k8=v("span",null,"Loading",-1),S8=[x8,k8];function T8(e,t){return S(),P("div",w8,S8)}function Rw(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",n==="top"&&r.firstChild?r.insertBefore(s,r.firstChild):r.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}var C8=`.v3ti-loader-wrapper { + display: flex; + align-items: center; + justify-content: center; + color: #112B3C; +} +.v3ti-loader-wrapper .v3ti-loader { + width: 18px; + height: 18px; + border-radius: 50%; + display: inline-block; + border-top: 2px solid #112B3C; + border-right: 2px solid transparent; + box-sizing: border-box; + animation: rotation 0.8s linear infinite; + margin-right: 8px; +} +@keyframes rotation { +0% { + transform: rotate(0deg); +} +100% { + transform: rotate(360deg); +} +}`;Rw(C8);const Dw={};Dw.render=T8;var A8=Dw,Pw={name:"Vue3TagsInput",emits:["update:modelValue","update:tags","on-limit","on-tags-changed","on-remove","on-error","on-focus","on-blur","on-select","on-select-duplicate-tag","on-new-tag"],props:{readOnly:{type:Boolean,default:!1},modelValue:{type:String,default:""},validate:{type:[String,Function,Object],default:""},addTagOnKeys:{type:Array,default:function(){return[13,",",32]}},placeholder:{type:String,default:""},tags:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},limit:{type:Number,default:-1},allowDuplicates:{type:Boolean,default:!1},addTagOnBlur:{type:Boolean,default:!1},selectItems:{type:Array,default:()=>[]},select:{type:Boolean,default:!1},duplicateSelectItem:{type:Boolean,default:!0},uniqueSelectField:{type:String,default:"id"},addTagOnKeysWhenSelect:{type:Boolean,default:!1},isShowNoData:{type:Boolean,default:!0}},components:{Loading:A8},directives:{clickOutside:b8.directive},data(){return{isInputActive:!1,isError:!1,newTag:"",innerTags:[],multiple:!1}},computed:{isLimit(){const e=this.limit>0&&Number(this.limit)===this.innerTags.length;return e&&this.$emit("on-limit"),e},selectedItemsIds(){return this.duplicateSelectItem?[]:this.tags.map(e=>e[this.uniqueSelectField]||"")}},watch:{error(){this.isError=this.error},modelValue:{immediate:!0,handler(e){this.newTag=e}},tags:{deep:!0,immediate:!0,handler(e){this.innerTags=[...e]}}},methods:{isShot(e){return!!this.$slots[e]},makeItNormal(e){this.$emit("update:modelValue",e.target.value),this.$refs.inputTag.className="v3ti-new-tag",this.$refs.inputTag.style.textDecoration="none"},resetData(){this.innerTags=[]},resetInputValue(){this.newTag="",this.$emit("update:modelValue","")},setPosition(){const e=this.$refs.inputBox,t=this.$refs.contextMenu;if(e&&t){t.style.display="block";const n=e.clientHeight||32,r=3;t.style.top=n+r+"px"}},closeContextMenu(){this.$refs.contextMenu&&(this.$refs.contextMenu.style={display:"none"})},handleSelect(e){if(this.isShowCheckmark(e)){const t=this.tags.filter(n=>e.id!==n.id);this.$emit("update:tags",t),this.$emit("on-select-duplicate-tag",e),this.resetInputValue()}else this.$emit("on-select",e);this.$nextTick(()=>{this.closeContextMenu()})},isShowCheckmark(e){return this.duplicateSelectItem?!1:this.selectedItemsIds.includes(e[this.uniqueSelectField])},focusNewTag(){this.select&&!this.disabled&&this.setPosition(),!(this.readOnly||!this.$el.querySelector(".v3ti-new-tag"))&&this.$el.querySelector(".v3ti-new-tag").focus()},handleInputFocus(e){this.isInputActive=!0,this.$emit("on-focus",e)},handleInputBlur(e){this.isInputActive=!1,this.addNew(e),this.$emit("on-blur",e)},addNew(e){if(this.select&&!this.addTagOnKeysWhenSelect)return;const t=e?this.addTagOnKeys.indexOf(e.keyCode)!==-1||this.addTagOnKeys.indexOf(e.key)!==-1:!0,n=e&&e.type!=="blur";!t&&(n||!this.addTagOnBlur)||this.isLimit||(this.newTag&&(this.allowDuplicates||this.innerTags.indexOf(this.newTag)===-1)&&this.validateIfNeeded(this.newTag)?(this.innerTags.push(this.newTag),this.addTagOnKeysWhenSelect&&(this.$emit("on-new-tag",this.newTag),this.updatePositionContextMenu()),this.resetInputValue(),this.tagChange(),e&&e.preventDefault()):(this.validateIfNeeded(this.newTag)?this.makeItError(!0):this.makeItError(!1),e&&e.preventDefault()))},updatePositionContextMenu(){this.$nextTick(()=>{this.setPosition()})},makeItError(e){this.newTag!==""&&(this.$refs.inputTag.className="v3ti-new-tag v3ti-new-tag--error",this.$refs.inputTag.style.textDecoration="underline",this.$emit("on-error",e))},validateIfNeeded(e){return this.validate===""||this.validate===void 0?!0:typeof this.validate=="function"?this.validate(e):!0},removeLastTag(){this.newTag||(this.innerTags.pop(),this.tagChange(),this.updatePositionContextMenu())},remove(e){this.innerTags.splice(e,1),this.tagChange(),this.$emit("on-remove",e),this.updatePositionContextMenu()},tagChange(){this.$emit("on-tags-changed",this.innerTags)}}};const E8={key:1,class:"v3ti-tag-content"},O8=["onClick"],M8=["placeholder","disabled"],R8={key:0,class:"v3ti-loading"},D8={key:1,class:"v3ti-no-data"},P8={key:1},L8={key:2},I8=["onClick"],N8={class:"v3ti-context-item--label"},V8={key:0,class:"v3ti-icon-selected-tag",width:"44",height:"44",viewBox:"0 0 24 24","stroke-width":"1.5",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},F8=v("path",{stroke:"none",d:"M0 0h24v24H0z"},null,-1),$8=v("path",{d:"M5 12l5 5l10 -10"},null,-1),B8=[F8,$8];function H8(e,t,n,r,s,a){const o=at("Loading"),u=Y_("click-outside");return Dn((S(),P("div",{onClick:t[6]||(t[6]=c=>a.focusNewTag()),class:Be([{"v3ti--focus":s.isInputActive,"v3ti--error":s.isError},"v3ti"])},[v("div",{class:Be(["v3ti-content",{"v3ti-content--select":n.select}]),ref:"inputBox"},[(S(!0),P(Ve,null,Qe(s.innerTags,(c,h)=>(S(),P("span",{key:h,class:"v3ti-tag"},[a.isShot("item")?Ie(e.$slots,"item",wn(cn({key:0},{name:c,index:h,tag:c}))):(S(),P("span",E8,re(c),1)),n.readOnly?ae("",!0):(S(),P("a",{key:2,onClick:Et(f=>a.remove(h),["prevent","stop"]),class:"v3ti-remove-tag"},null,8,O8))]))),128)),Dn(v("input",{ref:"inputTag",placeholder:n.placeholder,"onUpdate:modelValue":t[0]||(t[0]=c=>s.newTag=c),onKeydown:[t[1]||(t[1]=$n(Et(function(){return a.removeLastTag&&a.removeLastTag(...arguments)},["stop"]),["delete"])),t[2]||(t[2]=function(){return a.addNew&&a.addNew(...arguments)})],onBlur:t[3]||(t[3]=function(){return a.handleInputBlur&&a.handleInputBlur(...arguments)}),onFocus:t[4]||(t[4]=function(){return a.handleInputFocus&&a.handleInputFocus(...arguments)}),onInput:t[5]||(t[5]=function(){return a.makeItNormal&&a.makeItNormal(...arguments)}),class:"v3ti-new-tag",disabled:n.readOnly},null,40,M8),[[Ni,s.newTag]])],2),n.select?(S(),P("section",{key:0,class:Be(["v3ti-context-menu",{"v3ti-context-menu-no-data":!n.isShowNoData&&n.selectItems.length===0}]),ref:"contextMenu"},[n.loading?(S(),P("div",R8,[a.isShot("loading")?Ie(e.$slots,"default",{key:0}):(S(),it(o,{key:1}))])):ae("",!0),!n.loading&&n.selectItems.length===0&&n.isShowNoData?(S(),P("div",D8,[a.isShot("no-data")?Ie(e.$slots,"no-data",{key:0}):(S(),P("span",P8," No data "))])):ae("",!0),!n.loading&&n.selectItems.length>0?(S(),P("div",L8,[(S(!0),P(Ve,null,Qe(n.selectItems,(c,h)=>(S(),P("div",{key:h,class:Be(["v3ti-context-item",{"v3ti-context-item--active":a.isShowCheckmark(c)}]),onClick:Et(f=>a.handleSelect(c,h),["stop"])},[v("div",N8,[Ie(e.$slots,"select-item",wn(Yn(c)))]),a.isShowCheckmark(c)?(S(),P("svg",V8,B8)):ae("",!0)],10,I8))),128))])):ae("",!0)],2)):ae("",!0)],2)),[[u,a.closeContextMenu]])}var U8=`.v3ti { + border-radius: 5px; + min-height: 32px; + line-height: 1.4; + background-color: #fff; + border: 1px solid #9ca3af; + cursor: text; + text-align: left; + -webkit-appearance: textfield; + display: flex; + flex-wrap: wrap; + position: relative; +} +.v3ti .v3ti-icon-selected-tag { + stroke: #19be6b; + width: 1rem; + height: 1rem; + margin-left: 4px; +} +.v3ti--focus { + outline: 0; + border-color: #000000; + box-shadow: 0 0 0 1px #000000; +} +.v3ti--error { + border-color: #F56C6C; +} +.v3ti .v3ti-no-data { + color: #d8d8d8; + text-align: center; + padding: 4px 7px; +} +.v3ti .v3ti-loading { + padding: 4px 7px; + text-align: center; +} +.v3ti .v3ti-context-menu { + max-height: 150px; + min-width: 150px; + overflow: auto; + display: none; + outline: none; + position: absolute; + top: 0; + left: 0; + right: 0; + margin: 0; + padding: 5px 0; + background: #ffffff; + z-index: 1050; + color: #475569; + box-shadow: 0 3px 8px 2px rgba(0, 0, 0, 0.1); + border-radius: 0 0 6px 6px; +} +.v3ti .v3ti-context-menu .v3ti-context-item { + padding: 4px 7px; + display: flex; + align-items: center; +} +.v3ti .v3ti-context-menu .v3ti-context-item:hover { + background: #e8e8e8; + cursor: pointer; +} +.v3ti .v3ti-context-menu .v3ti-context-item--label { + flex: 1; + min-width: 1px; +} +.v3ti .v3ti-context-menu .v3ti-context-item--active { + color: #317CAF; +} +.v3ti .v3ti-context-menu-no-data { + padding: 0; +} +.v3ti .v3ti-content { + width: 100%; + display: flex; + flex-wrap: wrap; +} +.v3ti .v3ti-content--select { + padding-right: 30px; +} +.v3ti .v3ti-tag { + display: flex; + font-weight: 400; + margin: 3px; + padding: 0 5px; + background: #317CAF; + color: #ffffff; + height: 27px; + border-radius: 5px; + align-items: center; + max-width: calc(100% - 16px); +} +.v3ti .v3ti-tag .v3ti-tag-content { + flex: 1; + min-width: 1px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} +.v3ti .v3ti-tag .v3ti-remove-tag { + color: #ffffff; + transition: opacity 0.3s ease; + opacity: 0.5; + cursor: pointer; + padding: 0 5px 0 7px; +} +.v3ti .v3ti-tag .v3ti-remove-tag::before { + content: "x"; +} +.v3ti .v3ti-tag .v3ti-remove-tag:hover { + opacity: 1; +} +.v3ti .v3ti-new-tag { + background: transparent; + border: 0; + font-weight: 400; + margin: 3px; + outline: none; + padding: 0 4px; + flex: 1; + min-width: 60px; + height: 27px; +} +.v3ti .v3ti-new-tag--error { + color: #F56C6C; +}`;Rw(U8);Pw.render=H8;var j8=(()=>{const e=Pw;return e.install=t=>{t.component("Vue3TagsInput",e)},e})();const q8=fn({components:{Vue3TagsInput:j8},props:{value:{type:String,default:""}},data(){return{tags:this.value?this.value.split(","):[]}},methods:{handleChangeTag(e){this.tags=e}}}),W8={class:"input-tag-wrapper"},Y8=["value"];function z8(e,t,n,r,s,a){const o=at("vue3-tags-input");return S(),P("div",W8,[he(o,{tags:e.tags,placeholder:"enter some tags","add-tag-on-keys":[9,13,188],onOnTagsChanged:e.handleChangeTag},null,8,["tags","onOnTagsChanged"]),v("input",{type:"hidden",name:"tags",value:e.tags},null,8,Y8)])}const K8=yt(q8,[["render",z8]]),G8={props:["event"],data(){return{reported_at:this.event.reported_at,certificate_url:this.event.certificate_url,status:this.event.status}},methods:{report(){window.location.href="/event/report/"+this.event.id},download(){window.location.href=this.event.certificate_url}}},J8={key:0},Z8={key:0},X8={class:"report-event"},Q8={style:{"text-align":"right"}},eH={class:"actions"},tH={key:1},nH={class:"event-already-reported"},rH={class:"actions"};function sH(e,t,n,r,s,a){return s.status==="APPROVED"?(S(),P("div",J8,[s.reported_at==null||s.certificate_url==null?(S(),P("div",Z8,[v("div",X8,[v("div",Q8,re(e.$t("event.submit_event_and_report")),1),v("div",eH,[v("button",{onClick:t[0]||(t[0]=(...o)=>a.report&&a.report(...o)),class:"codeweek-action-button"},re(e.$t("event.report_and_claim")),1)])])])):(S(),P("div",tH,[v("div",nH,[v("div",null,re(e.$t("event.certificate_ready")),1),v("div",rH,[v("button",{onClick:t[1]||(t[1]=(...o)=>a.download&&a.download(...o)),class:"codeweek-action-button"},re(e.$t("event.view_your_certificate")),1)])])]))])):ae("",!0)}const iH=yt(G8,[["render",sH]]),aH={props:{event:{type:Object,default:()=>({})}},setup(e){const{recurringFrequentlyMap:t}=Hi(),n=pe(()=>{var o,u;const a=[];return e.event.highlighted_status==="FEATURED"&&a.push({title:"Featured",highlight:!0}),["daily","weekly","monthly"].includes((o=e.event)==null?void 0:o.recurring_event)&&a.push({title:t.value[(u=e.event)==null?void 0:u.recurring_event]}),a}),r=pe(()=>{const a=c=>{if(!c)return"";const h=new Date(c),f=h.getDate(),p=h.toLocaleString("en-US",{month:"short"}),m=h.getFullYear();return h.toLocaleString("en-US",{hour:"numeric",hour12:!0}),`${f}, ${p} ${m}`},o=e.event.start_date;if(!o)return"";const u=new Date(o);return u.getDate(),u.toLocaleString("en-US",{month:"short"}),u.getFullYear(),u.toLocaleString("en-US",{hour:"numeric",hour12:!0}),`${a(e.event.start_date)} - ${a(e.event.end_date)}`});return{eventTags:n,eventStartDateText:r,limit:a=>a.length>400?a.substring(0,400)+"...":a}}},lH={class:"flex flex-col bg-white rounded-lg overflow-hidden"},oH={class:"flex-shrink-0"},uH=["src"],cH={class:"flex-grow flex flex-col gap-2 px-6 py-4"},dH={class:"text-default text-slate-500 mb-2 flex items-center font-semibold"},fH={class:"text-sm font-semibold ml-1 w-fit px-4 py-1.5 bg-[#CCF0F9] rounded-full flex items-center"},hH={key:0,class:"flex gap-2 flex-wrap mb-2"},pH={key:0,class:"inline-block w-4 h-4 text-white",src:"/images/star-white.svg"},mH={class:"text-dark-blue font-semibold font-['Montserrat'] text-base leading-6"},gH={class:"text-slate-500 text-[16px] leading-[22px] font-semibold"},vH=["innerHTML"],yH={class:""},_H=["href"];function bH(e,t,n,r,s,a){return S(),P("div",lH,[v("div",oH,[v("img",{src:n.event.picture_path,class:"w-full object-cover aspect-[1.5]"},null,8,uH)]),v("div",cH,[v("div",dH,[t[0]||(t[0]=ht(" Organizer: ")),v("span",fH,re(n.event.organizer||"Unknown"),1)]),r.eventTags.length?(S(),P("div",hH,[(S(!0),P(Ve,null,Qe(r.eventTags,({title:o,highlight:u})=>(S(),P("span",{class:Be(["flex items-center gap-2 py-1 px-3 text-sm font-semibold rounded-full whitespace-nowrap leading-4",[u?"bg-dark-blue text-white":"bg-light-blue-100 text-slate-500"]])},[u?(S(),P("img",pH)):ae("",!0),v("span",null,[(S(!0),P(Ve,null,Qe(o.split(" "),c=>(S(),P(Ve,null,[c?(S(),P("span",{key:0,class:Be(["mr-[2px]",{"font-sans":c==="&"}])},re(c),3)):ae("",!0)],64))),256))])],2))),256))])):ae("",!0),v("div",mH,re(n.event.title),1),v("div",gH,re(r.eventStartDateText),1),v("div",{class:"flex-grow text-slate-500 text-[16px] leading-[22px] mb-2 [&_p]:p-0",innerHTML:r.limit(n.event.description)},null,8,vH),v("div",yH,[v("a",{class:"flex justify-center items-center gap-2 text-[#1C4DA1] border-solid border-2 border-[#1C4DA1] rounded-full py-3 px-8 font-semibold text-lg transition-all duration-300 hover:bg-[#E8EDF6] group",href:"/view/"+n.event.id+"/"+n.event.slug},t[1]||(t[1]=[v("span",null,"View activity",-1),v("div",{class:"flex gap-2 w-4 overflow-hidden"},[v("img",{src:"/images/arrow-right-icon.svg",class:"min-w-4 duration-500 transform -translate-x-6 group-hover:translate-x-0 text-[#1C4DA1]"}),v("img",{src:"/images/arrow-right-icon.svg",class:"min-w-4 duration-500 transform -translate-x-6 group-hover:translate-x-0 text-[#1C4DA1]"})],-1)]),8,_H)])])])}const Lw=yt(aH,[["render",bH]]),wH={props:{event:{type:Object,default:()=>({})},mapTileUrl:String,canApprove:Boolean,canEdit:Boolean,fromText:String,toText:String,lastUpdateText:String,eventPath:String,appUrl:String,shareUrl:String,emailHref:String},setup(e){console.log(e.event);const{activityFormatOptionsMap:t,durationOptionsMap:n,ageOptions:r,ageOptionsMap:s,recurringFrequentlyMap:a,recurringTypeOptionsMap:o}=Hi(),u=fe(null),c=pe(()=>{var p;return(p=e.event.ages)==null?void 0:p.split(",").map(m=>{var y,_;return(_=(y=r.value)==null?void 0:y.find(({id:b})=>b===m))==null?void 0:_.name})}),h=p=>{const m=u.value;if(!m)return;const y="fixed left-0 top-[139px] md:top-[123px] z-[110] h-[calc(100dvh-139px)] md:h-[calc(100dvh-123px)]";p?m.classList.add(...y.split(" ")):m.classList.remove(...y.split(" "))},f=()=>{const p=L.map("mapid");L.tileLayer(e.mapTileUrl,{maxZoom:18,attribution:'© Mapbox',tileSize:512,zoomOffset:-1,zoomControl:!1}).addTo(p),p.setView([51,10],5);let m=[51,10];e.event.latitude&&e.event.longitude&&(m=[e.event.latitude,e.event.longitude]);const y=L.icon({iconUrl:"/images/marker-orange.svg",iconSize:[44,62],iconAnchor:[22,62],popupAnchor:[0,-60]});L.marker(m,{icon:y}).addTo(p),p.setView(m,5)};return Ft(()=>{setTimeout(()=>{f()},2e3)}),{activityFormatOptionsMap:t,eventAges:c,durationOptionsMap:n,ageOptionsMap:s,recurringFrequentlyMap:a,recurringTypeOptionsMap:o,mapContainerRef:u,handleToggleMapFullScreen:h}}},xH={class:"relative z-10"},kH={class:"flex relative z-10 justify-center py-10 md:py-20 codeweek-container-lg"},SH={class:"w-full max-w-[880px] gap-2 text-xl"},TH={class:"text-dark-blue text-[22px] md:text-4xl leading-7 md:leading-[44px] font-medium font-['Montserrat'] mb-2"},CH={class:"text-[#20262C] font-normal p-0 mb-6"},AH={class:"mb-6"},EH={class:"text-[#20262C] font-normal p-0 mb-6"},OH={key:0,class:"mb-6"},MH={class:"flex flex-wrap gap-2"},RH={class:"flex gap-2 items-center px-4 py-1 bg-light-blue-100 rounded-full w-fit"},DH={class:"p-0 text-base font-semibold text-slate-500"},PH={class:"mb-6"},LH={class:"p-0 mb-2 font-semibold text-slate-500"},IH={class:"text-[#20262C] font-normal p-0 mb-6"},NH={key:1,class:"mb-6"},VH={class:"p-0 mb-2 font-semibold text-slate-500"},FH={class:"flex flex-wrap gap-2"},$H={class:"flex gap-2 items-center px-4 py-1 bg-light-blue-100 rounded-full w-fit"},BH={class:"p-0 text-base font-semibold text-slate-500"},HH={key:2,class:"mb-6"},UH={class:"flex flex-wrap gap-2"},jH={class:"flex gap-2 items-center px-4 py-1 bg-light-blue-100 rounded-full w-fit"},qH={class:"p-0 text-base font-semibold text-slate-500"},WH={key:0,class:"flex gap-2 items-center px-4 py-1 bg-light-blue-100 rounded-full w-fit"},YH={class:"p-0 text-base font-semibold text-slate-500"},zH={key:1,class:"flex gap-2 items-center px-4 py-1 bg-light-blue-100 rounded-full w-fit"},KH={class:"p-0 text-base font-semibold text-slate-500"},GH={key:3,class:"mb-6"},JH={class:"p-0 mb-2 font-semibold text-slate-500"},ZH={class:"flex flex-wrap gap-2"},XH={class:"flex gap-2 items-center px-4 py-1 bg-light-blue-100 rounded-full w-fit"},QH={class:"p-0 text-base font-semibold text-slate-500"},eU={key:4,class:"mb-6"},tU={class:"flex flex-wrap gap-2"},nU={class:"flex gap-2 items-center px-4 py-1 bg-light-blue-100 rounded-full w-fit"},rU={class:"p-0 text-base font-semibold text-slate-500"},sU={key:5,class:"mb-6"},iU={class:"flex flex-wrap gap-2"},aU={class:"flex gap-2 items-center px-4 py-1 bg-light-blue-100 rounded-full w-fit"},lU={class:"p-0 text-base font-semibold text-slate-500"},oU={class:"mb-6"},uU={class:"p-0 mb-2 font-semibold text-slate-500"},cU={class:"text-[#20262C] font-normal p-0 mb-6"},dU={class:"mb-6 [&_p]:empty:hidden"},fU={class:"p-0 mb-2 font-semibold text-slate-500"},hU=["innerHTML"],pU={class:"mb-6"},mU={class:"text-[#20262C] font-normal p-0 mb-6"},gU={ref:"mapContainerRef",class:"w-full h-[520px] top-0 left-0 mb-6 rounded-lg overflow-hidden"},vU={id:"mapid",class:"relative w-full h-full"},yU={style:{"z-index":"999"},id:"map-controls",class:"flex absolute left-2 top-4 z-50 flex-col"},_U={class:"flex gap-4 items-center"},bU=["data-href"],wU=["data-href","data-text"],xU=["title","href"],kU=["data-href"];function SU(e,t,n,r,s,a){var o,u,c;return S(),P("section",xH,[v("div",kH,[v("div",SH,[v("h2",TH,re(n.event.title),1),v("p",CH,re(n.fromText)+" - "+re(n.toText),1),v("div",AH,[t[2]||(t[2]=v("p",{class:"text-slate-500 font-semibold p-0 mb-2"}," Organizer: ",-1)),v("p",EH,re(n.event.organizer||"Unknown"),1)]),n.event.activity_format?(S(),P("div",OH,[t[3]||(t[3]=v("p",{class:"p-0 mb-2 font-semibold text-slate-500"}," Format of the activity: ",-1)),v("div",MH,[(S(!0),P(Ve,null,Qe(n.event.activity_format,h=>(S(),P("div",RH,[v("p",DH,re(r.activityFormatOptionsMap[h]),1)]))),256))])])):ae("",!0),v("div",PH,[v("p",LH,re(e.$t("event.activitytype.label"))+": ",1),v("p",IH,[n.event.activity_type?(S(),P(Ve,{key:0},[ht(re(e.$t(`event.activitytype.${n.event.activity_type}`)),1)],64)):ae("",!0)])]),n.event.language?(S(),P("div",NH,[v("p",VH,re(e.$t("resources.Languages"))+": ",1),v("div",FH,[(S(!0),P(Ve,null,Qe(n.event.languages,h=>(S(),P("div",$H,[v("p",BH,re(e.$t(`base.languages.${h}`)),1)]))),256))])])):ae("",!0),n.event.recurring_event?(S(),P("div",HH,[t[4]||(t[4]=v("p",{class:"p-0 mb-2 font-semibold text-slate-500"},"Recurring event:",-1)),v("div",UH,[v("div",jH,[v("p",qH,re(r.recurringFrequentlyMap[n.event.recurring_event]),1)]),n.event.duration?(S(),P("div",WH,[v("p",YH,re(r.durationOptionsMap[n.event.duration]),1)])):ae("",!0),n.event.recurring_type?(S(),P("div",zH,[v("p",KH,re(r.recurringTypeOptionsMap[n.event.recurring_type]),1)])):ae("",!0)])])):ae("",!0),(o=n.event.audiences)!=null&&o.length?(S(),P("div",GH,[v("p",JH,re(e.$t("event.audience_title"))+": ",1),v("div",ZH,[(S(!0),P(Ve,null,Qe(n.event.audiences,h=>(S(),P("div",XH,[v("p",QH,re(e.$t(`event.audience.${h.name}`)),1)]))),256))])])):ae("",!0),(u=n.event.ages)!=null&&u.length?(S(),P("div",eU,[t[5]||(t[5]=v("p",{class:"p-0 mb-2 font-semibold text-slate-500"},"Age range:",-1)),v("div",tU,[(S(!0),P(Ve,null,Qe(n.event.ages,h=>(S(),P("div",nU,[v("p",rU,re(r.ageOptionsMap[h]),1)]))),256))])])):ae("",!0),(c=n.event.themes)!=null&&c.length?(S(),P("div",sU,[t[6]||(t[6]=v("p",{class:"p-0 mb-2 font-semibold text-slate-500"},"Themes:",-1)),v("div",iU,[(S(!0),P(Ve,null,Qe(n.event.themes,h=>(S(),P("div",aU,[v("p",lU,re(e.$t(`event.theme.${h.name}`)),1)]))),256))])])):ae("",!0),v("div",oU,[v("p",uU,re(e.$t("event.address.label"))+": ",1),v("p",cU,re(n.event.location),1)]),v("div",dU,[v("p",fU,re(n.event.description),1),v("div",{class:"text-[#20262C] font-normal p-0 mb-6 space-y-2 [&_p]:py-0",innerHTML:n.event.description},null,8,hU)]),v("div",pU,[t[7]||(t[7]=v("p",{class:"p-0 mb-2 font-semibold text-slate-500"},"Email address:",-1)),v("p",mU,re(n.event.contact_person),1)]),v("div",gU,[v("div",vU,[v("div",yU,[v("button",{class:"pb-2 group",onClick:t[0]||(t[0]=h=>r.handleToggleMapFullScreen(!1))},t[8]||(t[8]=[v("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("rect",{width:"40",height:"40",rx:"8",class:"fill-white transition-colors duration-300 group-hover:fill-[#1C4DA1]"}),v("path",{d:"M13 20H27",class:"stroke-[#414141] group-hover:stroke-[#ffffff]","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),v("button",{class:"pb-2 group",onClick:t[1]||(t[1]=h=>r.handleToggleMapFullScreen(!0))},t[9]||(t[9]=[v("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("rect",{width:"40",height:"40",rx:"8",class:"fill-white transition-colors duration-300 group-hover:fill-[#1C4DA1]"}),v("path",{class:"stroke-[#414141] group-hover:stroke-[#ffffff]",d:"M16 11H13C12.4696 11 11.9609 11.2107 11.5858 11.5858C11.2107 11.9609 11 12.4696 11 13V16M29 16V13C29 12.4696 28.7893 11.9609 28.4142 11.5858C28.0391 11.2107 27.5304 11 27 11H24M24 29H27C27.5304 29 28.0391 28.7893 28.4142 28.4142C28.7893 28.0391 29 27.5304 29 27V24M11 24V27C11 27.5304 11.2107 28.0391 11.5858 28.4142C11.9609 28.7893 12.4696 29 13 29H16","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))])])],512),v("div",null,[t[12]||(t[12]=v("p",{class:"p-0 mb-2 font-semibold text-slate-500"}," Share activity on: ",-1)),v("div",_U,[v("div",{class:"fb-like","data-href":n.shareUrl,"data-layout":"button_count","data-action":"recommend","data-show-faces":"false","data-share":"true"},null,8,bU),v("a",{href:"https://twitter.com/share",class:"twitter-share-button","data-href":n.shareUrl,"data-text":`Check out ${n.event.title} at`,"data-via":"CodeWeekEU","data-hashtags":"codeEU"},t[10]||(t[10]=[v("img",{src:"/images/social/twitter.svg"},null,-1)]),8,wU),v("a",{class:"block [&_path]:!fill-dark-blue",title:e.$t("eventdetails.email.tooltip"),href:n.emailHref},t[11]||(t[11]=[v("img",{class:"block",src:"/images/mail.svg"},null,-1)]),8,xU),v("div",{class:"g-plusone","data-size":"medium","data-href":n.appUrl},null,8,kU)])])])]),t[13]||(t[13]=v("div",{class:"animation-element move-background duration-[1.5s] absolute z-0 bottom-10 md:bottom-auto md:top-48 -right-14 md:-right-40 w-28 md:w-72 h-28 md:h-72 bg-[#FFEF99] rounded-full hidden lg:block",style:{transform:"translate(-16px, -24px)"}},null,-1)),t[14]||(t[14]=v("div",{class:"animation-element move-background duration-[1.5s] absolute z-0 lg:top-96 right-40 w-28 h-28 hidden lg:block bg-[#FFEF99] rounded-full",style:{transform:"translate(-16px, -24px)"}},null,-1))])}const TU=yt(wH,[["render",SU]]),CU=()=>{const e=new URLSearchParams(window.location.search);console.log("urlParams",e);const t=fe({});for(const[r,s]of e)t.value[r]=s;return{queryParams:t,onChangeQueryParams:r=>{const s=Bn.cloneDeep(r);console.log(">>> params",s);const a=new URLSearchParams(window.location.search);for(const u in s){const c=s[u];typeof c=="number"?Bn.isNil(c)?a.delete(u):a.set(u,c):Bn.isEmpty(c)?a.delete(u):a.set(u,c)}t.value=s;const o=a.toString()?`${window.location.pathname}?${a.toString()}`:window.location.pathname;window.history.replaceState({},"",o)}}},AU={name:"SearchPageComponent",components:{EventCard:Lw,Pagination:dd,FieldWrapper:od,SelectField:Fo,InputField:ud},props:{mapTileUrl:String,prpQuery:String,prpSelectedCountry:Array,name:String,years:Array,countrieslist:Array,audienceslist:Array,themeslist:Array,typeslist:Array,languagesObject:{type:Object,default:()=>({})}},setup(e){const{activityFormatOptions:t,activityTypeOptions:n,ageOptions:r}=Hi(),{queryParams:s,onChangeQueryParams:a}=CU(),o=fe(!0),u=fe(null),c=fe(null),h=fe(null),f=fe([]),p=fe({}),m=fe(null),y={query:e.prpQuery||"",languages:[],countries:[],start_date:"",formats:[],types:[],audiences:[],ages:[],themes:[],year:{id:new Date().getFullYear(),name:new Date().getFullYear()},countries:e.prpSelectedCountry||[]},_=fe({...y}),b=fe({current_page:1,per_page:0,from:null,last_page:0,last_page_url:null,next_page_url:null,prev_page:null,prev_page_url:null,to:null,total:0}),E=pe(()=>e.years.map(k=>({id:k,name:k}))),H=pe(()=>Object.entries(e.languagesObject).map(([k,J])=>({id:k,name:J}))),V=()=>{var J,_e,Me,Ne,j,te,M,ie;const k={page:b.value.current_page,query:_.value.query,year:(J=_.value.year)==null?void 0:J.id,start_date:_.value.start_date,languages:(_e=_.value.languages)==null?void 0:_e.map(ge=>ge.id).join(","),countries:(Me=_.value.countries)==null?void 0:Me.map(ge=>ge.iso).join(","),formats:(Ne=_.value.formats)==null?void 0:Ne.map(ge=>ge.id).join(","),types:(j=_.value.types)==null?void 0:j.map(ge=>ge.id).join(","),audiences:(te=_.value.audiences)==null?void 0:te.map(ge=>ge.id).join(","),ages:(M=_.value.ages)==null?void 0:M.map(ge=>ge.id).join(","),themes:(ie=_.value.themes)==null?void 0:ie.map(ge=>ge.id).join(",")};console.log("updatedParams",k),a(k)},x=()=>{const k=s.value;console.log("init params",k);const J=(_e,Me,Ne="id")=>(_e||"").split(",").map(j=>Me.find(te=>String(te[Ne])===String(j))).filter(j=>!!j);k.page&&(b.value.current_page=k.page),_.value={...y,query:k.query||"",start_date:k.start_date||"",year:k.year?{id:k.year,name:k.year}:y.year,languages:J(k.languages,H.value),countries:J(k.countries,e.countrieslist,"iso"),formats:J(k.formats,t.value),types:J(k.types,n.value),audiences:J(k.audiences,e.audienceslist),ages:J(k.ages,r.value),themes:J(k.themes,e.themeslist)}},O=pe(()=>{const k=[..._.value.languages,..._.value.countries,..._.value.formats,..._.value.types,..._.value.audiences,..._.value.ages,..._.value.themes];return _.value.start_date&&k.push({id:"start_date",name:_.value.start_date.slice(0,10)}),k}),B=k=>{if(k.id==="start_date"){_.value.start_date="";return}const J=_e=>_e.id!==k.id;_.value.languages=_.value.languages.filter(J),_.value.countries=_.value.countries.filter(_e=>_e.iso!==k.iso),_.value.formats=_.value.formats.filter(J),_.value.audiences=_.value.audiences.filter(J),_.value.themes=_.value.themes.filter(J),T()},U=()=>{_.value={...y},T()},F=()=>{window.scrollTo(0,0)},D=()=>{F(),T(!0)},T=(k=!1)=>{var Me;f.value=[],o.value=!0;let J="/search";k&&(J=`/search?page=${b.value.current_page}`),V();const _e={..._.value,year:(Me=_.value.year)==null?void 0:Me.id,start_date:_.value.start_date?new Date(_.value.start_date).toISOString().slice(0,10):"",pagination:{current_page:b.current_page}};Tt.post(J,_e).then(Ne=>{const j=Ne.data;console.log("🔥 Full response:",j);let te,M;if(Array.isArray(j))te=j[0],M=j[1]||null;else if(j.events)te=j.events,M=j.map||null;else{console.warn("❌ Unexpected response structure:",j),m.value="Unexpected response format from server.",o.value=!1;return}b.value={per_page:te.per_page,current_page:te.current_page,from:te.from,last_page:te.last_page,last_page_url:te.last_page_url,next_page_url:te.next_page_url,prev_page:te.prev_page,prev_page_url:te.prev_page_url,to:te.to,total:te.total},te.data?f.value=Array.isArray(te.data)?te.data:Object.values(te.data):f.value=[],console.log("✅ Events loaded:",f.value.length),!k&&M?(window.getEvents?window.getEvents(M):window.eventsToMap=M,p.value=M,de()):M||console.warn("⚠️ mapData is null, skipping map update"),$(),o.value=!1}).catch(Ne=>{console.error("❌ Request failed:",Ne),m.value=Ne.response?Ne.response.data:"Unknown error",o.value=!1})},$=()=>{var J;if(!c.value)return;let k={latitude:51,longitude:4};if(((J=_.value.countries)==null?void 0:J.length)===1){const{latitude:_e,longitude:Me}=_.value.countries[0]||{};_e&&Me&&(k={latitude:_e,longitude:Me,zoom:4})}c.value.setView(new L.LatLng(k.latitude,k.longitude),4,{animation:!0})},se=k=>k.length>400?k.substring(0,400)+"...":k;var ee=async k=>{const J=k.target.options.id;try{const{data:_e}=await Tt.get(`/api/event/detail?id=${J}`),Me=_e.data;console.log("event/detail",Me);const Ne=` +
+

+ ${Me.title} +

+
+ +
+

${Me.description}

+
+
+
+ `,j=L.popup({maxWidth:600}).setContent(Ne);k.target.bindPopup(j).openPopup()}catch(_e){console.error("Can NOT load event",_e)}};const de=()=>{if(c.value)try{h.value&&(c.value.removeLayer(h.value),h.value=null);const k=L.markerClusterGroup(),J=[];Object.values(p.value).forEach(_e=>{J.push(..._e)}),console.group("Started add markers",J.length),J.map(({id:_e,geoposition:Me},Ne)=>{Ne%1e4===0&&console.log("Adding markers",Ne);const j=Me.split(","),te=parseFloat(j[0]),M=parseFloat(j[1]);if(te&&M){const ie=L.marker([te,M],{id:_e});ie.on("click",ee),k.addLayer(ie)}}),console.log("Done add markers",J.length),console.groupEnd(),h.value=k,c.value.addLayer(k)}catch(k){console.log("Add marker error",k)}},ne=()=>{navigator.geolocation&&navigator.geolocation.getCurrentPosition(k=>{const{latitude:J,longitude:_e}=k.coords,Me=L.icon({iconUrl:"/images/marker-orange.svg",iconSize:[33,41],iconAnchor:[22,62],popupAnchor:[0,-60]});L.marker([J,_e],{icon:Me}).addTo(c.value)},k=>{console.error("Geolocation error:",k)})},N=()=>{c.value=L.map("mapid"),c.value.setView([51,10],5),L.tileLayer(e.mapTileUrl,{maxZoom:18,attribution:'© Mapbox',tileSize:512,zoomOffset:-1,zoomControl:!1}).addTo(c.value)},G=k=>{const J=u.value;if(!J)return;const _e="fixed left-0 top-[139px] md:top-[123px] z-[110] h-[calc(100dvh-139px)] md:h-[calc(100dvh-123px)]";k?J.classList.add(..._e.split(" ")):J.classList.remove(..._e.split(" "))};return Ft(()=>{setTimeout(()=>{x(),T()},100),setTimeout(()=>{N(),$(),de(),ne()},2e3)}),{mapContainerRef:u,yearOptions:E,languageOptions:H,activityFormatOptions:t,activityTypeOptions:n,ageOptions:r,filters:_,removeSelectedItem:B,removeAllSelectedItems:U,isLoading:o,events:f,errors:m,tags:O,pagination:b,scrollToTop:F,paginate:D,onSubmit:T,limit:se,handleToggleMapFullScreen:G}}},EU={ref:"mapContainerRef",class:"w-full h-[520px] top-0 left-0"},OU={id:"mapid",class:"w-full h-full relative"},MU={style:{"z-index":"999"},id:"map-controls",class:"absolute z-50 flex flex-col top-4 left-2"},RU={class:"codeweek-searchpage-component font-['Blinker']"},DU={class:"codeweek-container py-10"},PU={class:"flex w-full"},LU={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 items-end gap-4 w-full"},IU={key:0,class:"flex md:justify-center mt-10"},NU={class:"max-md:w-full flex flex-wrap gap-2"},VU={class:"flex items-center gap-2"},FU=["onClick"],$U={class:"max-md:w-full max-md:mt-4 flex justify-center px-4"},BU={class:"relative pt-20 md:pt-48"},HU={class:"bg-yellow-50 pb-24"},UU={class:"relative z-10 codeweek-container-lg"},jU={class:"flex flex-col md:flex-row gap-10"},qU={class:"flex-shrink-0 grid grid-cols-2 md:grid-cols-1 gap-6 bg-[#FFEF99] px-4 py-6 rounded-2xl self-start w-full md:w-60"},WU={class:"relative w-full flex px-3 justify-between items-center text-gray-700 whitespace-nowrap rounded-3xl border-2 border-dark-blue-200 h-[50px] bg-white"},YU={class:"flex items-center justify-center w-full"},zU={key:0,class:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6 lg:gap-10 h-fit"},KU={key:0,class:"col-span-full"};function GU(e,t,n,r,s,a){const o=at("InputField"),u=at("FieldWrapper"),c=at("SelectField"),h=at("date-time"),f=at("event-card"),p=at("pagination");return S(),P(Ve,null,[v("section",null,[v("div",EU,[v("div",OU,[v("div",MU,[v("button",{class:"pb-2 group",onClick:t[0]||(t[0]=m=>r.handleToggleMapFullScreen(!0))},t[20]||(t[20]=[v("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("rect",{width:"40",height:"40",rx:"8",class:"fill-white transition-colors duration-300 group-hover:fill-[#1C4DA1]"}),v("path",{class:"stroke-[#414141] group-hover:stroke-[#ffffff]",d:"M16 11H13C12.4696 11 11.9609 11.2107 11.5858 11.5858C11.2107 11.9609 11 12.4696 11 13V16M29 16V13C29 12.4696 28.7893 11.9609 28.4142 11.5858C28.0391 11.2107 27.5304 11 27 11H24M24 29H27C27.5304 29 28.0391 28.7893 28.4142 28.4142C28.7893 28.0391 29 27.5304 29 27V24M11 24V27C11 27.5304 11.2107 28.0391 11.5858 28.4142C11.9609 28.7893 12.4696 29 13 29H16","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),v("button",{class:"pb-2 group",onClick:t[1]||(t[1]=m=>r.handleToggleMapFullScreen(!1))},t[21]||(t[21]=[v("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("rect",{width:"40",height:"40",rx:"8",class:"fill-white transition-colors duration-300 group-hover:fill-[#1C4DA1]"}),v("path",{d:"M13 20H27",class:"stroke-[#414141] group-hover:stroke-[#ffffff]","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))])])],512)]),v("section",RU,[v("div",DU,[v("div",PU,[v("div",LU,[he(u,{class:"lg:col-span-2",horizontal:"",label:"Search by title or description"},{default:Te(()=>[he(o,{modelValue:r.filters.query,"onUpdate:modelValue":t[2]||(t[2]=m=>r.filters.query=m),placeholder:"E.g tools assessment in computing"},null,8,["modelValue"])]),_:1}),he(u,{horizontal:"",label:"Year"},{default:Te(()=>[he(c,{"return-object":"",placeholder:"Select year",modelValue:r.filters.year,"onUpdate:modelValue":t[3]||(t[3]=m=>r.filters.year=m),"deselect-label":"","allow-empty":!1,options:r.yearOptions},null,8,["modelValue","options"])]),_:1}),he(u,{horizontal:"",label:"Language"},{default:Te(()=>[he(c,{multiple:"",searchable:"","return-object":"",placeholder:"Select language",modelValue:r.filters.languages,"onUpdate:modelValue":t[4]||(t[4]=m=>r.filters.languages=m),options:r.languageOptions},null,8,["modelValue","options"])]),_:1}),he(u,{horizontal:"",label:"Country"},{default:Te(()=>[he(c,{multiple:"",searchable:"","return-object":"","id-name":"iso",placeholder:"Select country",modelValue:r.filters.countries,"onUpdate:modelValue":t[5]||(t[5]=m=>r.filters.countries=m),options:n.countrieslist},null,8,["modelValue","options"])]),_:1}),v("button",{class:"bg-[#F95C22] rounded-full py-3 px-20 font-['Blinker'] hover:bg-hover-orange duration-300 mt-2 sm:col-span-2 lg:col-span-1",onClick:t[6]||(t[6]=m=>r.onSubmit())},t[22]||(t[22]=[v("span",{class:"text-base leading-7 font-semibold text-black normal-case"}," Search ",-1)]))])]),r.tags.length?(S(),P("div",IU,[v("div",NU,[(S(!0),P(Ve,null,Qe(r.tags,m=>(S(),P("div",{key:m.id,class:"bg-light-blue-100 pl-4 pr-3 py-1 rounded-full text-slate-500 text-[16px] font-semibold"},[v("div",VU,[v("span",null,re(m.name),1),v("button",{onClick:y=>r.removeSelectedItem(m)},t[23]||(t[23]=[v("img",{class:"w-4 h-4",src:"/images/close-icon.svg"},null,-1)]),8,FU)])]))),128)),v("div",$U,[v("button",{class:"text-dark-blue underline font-semibold text-[16px]",onClick:t[7]||(t[7]=(...m)=>r.removeAllSelectedItems&&r.removeAllSelectedItems(...m))}," Clear all filters ")])])])):ae("",!0)]),v("div",BU,[t[26]||(t[26]=v("div",{class:"absolute w-full h-[800px] bg-yellow-50 md:hidden top-0",style:{"clip-path":"ellipse(270% 90% at 38% 90%)"}},null,-1)),t[27]||(t[27]=v("div",{class:"absolute w-full h-[800px] bg-yellow-50 hidden md:block top-0",style:{"clip-path":"ellipse(88% 90% at 50% 90%)"}},null,-1)),v("div",HU,[v("div",UU,[v("div",jU,[v("div",qU,[he(u,{horizontal:"",label:"Date"},{default:Te(()=>[v("div",WU,[(S(),it(h,{key:r.filters.start_date,placeholder:"Start Date",format:"yyyy-MM-dd",value:r.filters.start_date,onOnChange:t[8]||(t[8]=m=>r.filters.start_date=m),onOnClear:t[9]||(t[9]=m=>r.filters.start_date=null)},null,8,["value"])),t[24]||(t[24]=v("div",{class:"absolute top-1/2 right-4 -translate-y-1/2 pointer-events-none"},[v("img",{src:"/images/select-arrow.svg"})],-1))])]),_:1}),he(u,{horizontal:"",label:"Format"},{default:Te(()=>[he(c,{multiple:"",searchable:"","return-object":"",placeholder:"Select format",modelValue:r.filters.formats,"onUpdate:modelValue":t[10]||(t[10]=m=>r.filters.formats=m),options:r.activityFormatOptions,onOnChange:t[11]||(t[11]=()=>r.onSubmit())},null,8,["modelValue","options"])]),_:1}),he(u,{horizontal:"",label:"Activity type"},{default:Te(()=>[he(c,{multiple:"",searchable:"","return-object":"",placeholder:"Select type",modelValue:r.filters.types,"onUpdate:modelValue":t[12]||(t[12]=m=>r.filters.types=m),options:r.activityTypeOptions,onOnChange:t[13]||(t[13]=()=>r.onSubmit())},null,8,["modelValue","options"])]),_:1}),he(u,{horizontal:"",label:"Audience"},{default:Te(()=>[he(c,{multiple:"",searchable:"","return-object":"",placeholder:"Select audience",modelValue:r.filters.audiences,"onUpdate:modelValue":t[14]||(t[14]=m=>r.filters.audiences=m),options:n.audienceslist,onOnChange:t[15]||(t[15]=()=>r.onSubmit())},null,8,["modelValue","options"])]),_:1}),he(u,{horizontal:"",label:"Age range"},{default:Te(()=>[he(c,{multiple:"",searchable:"","return-object":"",placeholder:"Select range",modelValue:r.filters.ages,"onUpdate:modelValue":t[16]||(t[16]=m=>r.filters.ages=m),options:r.ageOptions,onOnChange:t[17]||(t[17]=()=>r.onSubmit())},null,8,["modelValue","options"])]),_:1}),he(u,{horizontal:"",label:"Themes"},{default:Te(()=>[he(c,{multiple:"",searchable:"","return-object":"",placeholder:"Select themes",modelValue:r.filters.themes,"onUpdate:modelValue":t[18]||(t[18]=m=>r.filters.themes=m),options:n.themeslist,onOnChange:t[19]||(t[19]=()=>r.onSubmit())},null,8,["modelValue","options"])]),_:1})]),Dn(v("div",YU,[t[25]||(t[25]=v("img",{src:"img/loading.gif",style:{"margin-right":"10px"}},null,-1)),ht(re(e.$t("event.loading")),1)],512),[[Fr,r.isLoading]]),r.isLoading?ae("",!0):(S(),P("div",zU,[(S(!0),P(Ve,null,Qe(r.events,m=>(S(),it(f,{key:m.id,event:m},null,8,["event"]))),128)),r.pagination.last_page>1?(S(),P("div",KU,[he(p,{pagination:r.pagination,offset:5,onPaginate:r.paginate},null,8,["pagination","onPaginate"])])):ae("",!0)]))])])])])])],64)}const JU=yt(AU,[["render",GU]]),ZU={props:{tool:Object},data(){return{descriptionHeight:"auto",needShowMore:!0,showMore:!1}},methods:{computeDescriptionHeight(){const e=this.$refs.descriptionContainerRef,t=this.$refs.descriptionRef,n=e.clientHeight,r=Math.floor(n/22);t.style.height="auto",this.descriptionHeight="auto",this.needShowMore=t.offsetHeight>n,t.offsetHeight>n?(t.style.height=`${r*22}px`,this.descriptionHeight=`${r*22}px`):this.showMore=!1},onToggleShowMore(){const e=this.$refs.descriptionRef;this.showMore=!this.showMore,this.showMore?e.style.height="auto":e.style.height=this.descriptionHeight}},mounted:function(){this.computeDescriptionHeight()}},XU={class:"flex flex-col bg-white rounded-lg overflow-hidden"},QU=["src"],e7={key:0,class:"flex gap-2 flex-wrap mb-2"},t7={key:0,class:"inline-block w-4 h-4",src:"/images/star-white.svg"},n7={class:"text-dark-blue font-semibold font-['Montserrat'] text-base leading-6"},r7={key:1,class:"text-slate-500 text-[16px] leading-[22px] font-semibold"},s7={ref:"descriptionRef",class:"relative flex-grow text-slate-500 text-[16px] leading-[22px] mb-2 overflow-hidden",style:{height:"auto"}},i7=["innerHTML"],a7={class:"flex-shrink-0 h-[56px]"},l7=["href"];function o7(e,t,n,r,s,a){var o;return S(),P("div",XU,[v("div",{class:Be(["flex-shrink-0 flex justify-center items-center w-full",[n.tool.avatar_dark&&"bg-stone-800"]])},[v("img",{src:n.tool.avatar||"/images/matchmaking-tool/tool-placeholder.png",class:Be(["w-full aspect-[2]",n.tool.avatar?"object-contain":"object-cover"])},null,10,QU)],2),v("div",{class:Be(["flex-grow flex flex-col gap-2 px-5 py-4 h-fit",{"max-h-[450px]":s.needShowMore&&!s.showMore}])},[(o=n.tool.types)!=null&&o.length?(S(),P("div",e7,[(S(!0),P(Ve,null,Qe(n.tool.types,({title:u,highlight:c})=>(S(),P("span",{class:Be(["flex items-center gap-2 py-1 px-3 text-sm font-semibold rounded-full whitespace-nowrap leading-4",[c?"bg-dark-blue text-white":"bg-light-blue-100 text-slate-500"]])},[c?(S(),P("img",t7)):ae("",!0),v("span",null,[(S(!0),P(Ve,null,Qe(u.split(" "),h=>(S(),P(Ve,null,[h?(S(),P("span",{key:0,class:Be(["mr-[2px]",{"font-sans":h==="&"}])},re(h),3)):ae("",!0)],64))),256))])],2))),256))])):ae("",!0),v("div",n7,re(n.tool.name),1),n.tool.location?(S(),P("div",r7,re(n.tool.location),1)):ae("",!0),v("div",{ref:"descriptionContainerRef",class:Be(["flex-grow h-full",{"overflow-hidden":s.needShowMore&&!s.showMore}])},[v("div",s7,[v("div",{innerHTML:n.tool.description},null,8,i7),s.needShowMore?(S(),P("div",{key:0,class:Be(["flex justify-end bottom-0 right-0 bg-white pl-0.5 text-dark-blue",{absolute:!s.showMore,"w-full":s.showMore}])},[v("button",{onClick:t[0]||(t[0]=(...u)=>a.onToggleShowMore&&a.onToggleShowMore(...u))},re(s.showMore?"Show less":"... Show more"),1)],2)):ae("",!0)],512)],2),v("div",a7,[v("a",{class:"flex justify-center items-center gap-2 text-[#1C4DA1] border-solid border-2 border-[#1C4DA1] rounded-full py-3 px-8 font-semibold text-lg transition-all duration-300 hover:bg-[#E8EDF6] group",href:`/matchmaking-tool/${n.tool.slug}`},t[1]||(t[1]=[v("span",null,"View profile/contact",-1),v("div",{class:"flex gap-2 w-4 overflow-hidden"},[v("img",{src:"/images/arrow-right-icon.svg",class:"min-w-4 duration-500 transform -translate-x-6 group-hover:translate-x-0 text-[#1C4DA1]"}),v("img",{src:"/images/arrow-right-icon.svg",class:"min-w-4 duration-500 transform -translate-x-6 group-hover:translate-x-0 text-[#1C4DA1]"})],-1)]),8,l7)])],2)])}const Iw=yt(ZU,[["render",o7]]),u7={components:{ToolCard:Iw,Multiselect:Ta,Pagination:dd,Tooltip:$1},props:{prpQuery:{type:String,default:""},prpLanguages:{type:Array,default:()=>[]},prpLocations:{type:Array,default:()=>[]},prpTypes:{type:Array,default:()=>[]},prpTopics:{type:Array,default:()=>[]},languages:{type:Array,default:()=>[]},locations:{type:Array,default:()=>[]},types:{type:Array,default:()=>[]},topics:{type:Array,default:()=>[]},support_types:{type:Array,default:()=>[]},locale:String},setup(e){console.log("props",{...e});const t=fe(!1),n=fe(e.prpQuery),r=fe(e.prpQuery),s=fe([]),a=fe(e.prpLanguages),o=fe(e.prpLocations),u=fe(e.prpTypes),c=fe(e.prpTopics),h=fe({}),f=fe({current_page:1,per_page:0,from:null,last_page:0,last_page_url:null,next_page_url:null,prev_page:null,prev_page_url:null,to:null,total:0}),p=fe([]),m=pe(()=>e.types.map(U=>({id:U,name:U}))),y=pe(()=>[{id:"organisation",name:"Organisations"},{id:"volunteer",name:"Volunteers"}]),_=pe(()=>e.topics.map(U=>({id:U,name:U}))),b=pe(()=>[...s.value,...a.value,...o.value,...u.value,...c.value]),E=U=>{const F=D=>D.id!==U.id;s.value=s.value.filter(F),a.value=a.value.filter(F),o.value=o.value.filter(D=>D.iso!==(U==null?void 0:U.iso)),u.value=u.value.filter(F),c.value=c.value.filter(F)},H=()=>{s.value=[],a.value=[],o.value=[],u.value=[],c.value=[]},V=()=>{window.scrollTo(0,0)},x=()=>{V(),O(!0)},O=(U=!1)=>{U||(f.value.current_page=1);const F={page:f.value.current_page,support_types:s.value.map(D=>D.id),languages:a.value.map(D=>D.id),locations:o.value.map(D=>D.iso),types:u.value.map(D=>D.id),topics:c.value.map(D=>D.id)};Tt.post("/matchmaking-tool/search",{},{params:F}).then(({data:D})=>{console.log(">>> data",D.data),p.value=D.data.map(T=>{var se,ee;const $={...T,avatar_dark:T.avatar_dark,avatar:T.avatar,types:[{title:"Online & In-person",highlight:!0},{title:"Ongoing availability"}]};return T.type==="volunteer"?{...$,name:`${T.first_name||""} ${T.last_name||""}`.trim(),location:T.location,description:T.description}:{...$,name:T.organisation_name,location:((ee=(se=e.locations)==null?void 0:se.find(({iso:de})=>de===T.country))==null?void 0:ee.name)||"",description:T.organisation_mission}}),console.log(">>> tools.value",JSON.parse(JSON.stringify(p.value))),f.value={per_page:D.per_page,current_page:D.current_page,from:D.from,last_page:D.last_page,last_page_url:D.last_page_url,next_page_url:D.next_page_url,prev_page:D.prev_page,prev_page_url:D.prev_page_url,to:D.to,total:D.total}})},B=(U,F)=>Pe(F+"."+U.name);return Ft(()=>{O()}),{query:n,searchInput:r,selectedSupportTypes:s,selectedLanguages:a,selectedLocations:o,selectedTypes:u,selectedTopics:c,errors:h,pagination:f,tools:p,paginate:x,onSubmit:O,customLabel:B,showFilterModal:t,tags:b,removeSelectedItem:E,removeAllSelectedItems:H,typeOptions:m,supportTypeOptions:y,topicOptions:_}}},c7={class:"codeweek-matchmakingtool-component font-['Blinker'] bg-light-blue"},d7={class:"codeweek-container py-10"},f7={class:"flex md:hidden flex-shrink-0 justify-end w-full mb-6"},h7={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4 mb-12"},p7={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},m7={class:"language-json"},g7={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},v7={class:"language-json"},y7={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},_7={class:"language-json"},b7={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},w7={class:"flex items-center text-[16px] leading-5 text-slate-500 mb-2"},x7={class:"language-json"},k7={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},S7={class:"flex items-end"},T7={class:"text-base leading-7 font-semibold text-black normal-case"},C7={key:0,class:"flex md:justify-center"},A7={class:"max-md:w-full flex flex-wrap gap-2"},E7={class:"flex items-center gap-2"},O7=["onClick"],M7={class:"max-md:w-full max-md:mt-4 flex justify-center px-4"},R7={class:"relative pt-20 md:pt-48"},D7={class:"bg-yellow-50 pb-20"},P7={class:"relative z-10 codeweek-container"},L7={class:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6 lg:gap-10"};function I7(e,t,n,r,s,a){const o=at("multiselect"),u=at("Tooltip"),c=at("tool-card"),h=at("pagination");return S(),P("div",c7,[v("div",d7,[v("div",{class:Be(["max-md:fixed left-0 top-[125px] z-[100] flex-col items-center w-full max-md:p-6 max-md:h-[calc(100dvh-125px)] max-md:overflow-auto max-md:bg-white duration-300",[r.showFilterModal?"flex":"max-md:hidden"]])},[v("div",f7,[v("button",{id:"search-menu-trigger-hide",class:"block bg-[#FFD700] hover:bg-[#F95C22] rounded-full p-4 duration-300",onClick:t[0]||(t[0]=f=>r.showFilterModal=!1)},t[9]||(t[9]=[v("img",{class:"w-6 h-6",src:"/images/close_menu_icon.svg"},null,-1)]))]),v("div",h7,[v("div",null,[t[12]||(t[12]=v("label",{class:"block text-[16px] leading-5 text-slate-500 mb-2"}," Support type ",-1)),he(o,{modelValue:r.selectedSupportTypes,"onUpdate:modelValue":t[1]||(t[1]=f=>r.selectedSupportTypes=f),class:"multi-select",options:r.supportTypeOptions,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,"custom-label":f=>f.name,placeholder:"Select type, e.g. volunteer",label:"Select type, e.g. volunteer","track-by":"name","preselect-first":!1},{selection:Te(({values:f})=>[f.length>0?(S(),P("div",p7," Selected "+re(f.length)+" "+re(f.length>1?"types":"type"),1)):ae("",!0)]),default:Te(()=>[v("pre",m7,[t[10]||(t[10]=ht(" ")),v("code",null,re(r.selectedLanguages),1),t[11]||(t[11]=ht(` + `))])]),_:1},8,["modelValue","options","custom-label"])]),v("div",null,[t[13]||(t[13]=v("label",{class:"block text-[16px] leading-5 text-slate-500 mb-2"}," Language ",-1)),he(o,{modelValue:r.selectedLanguages,"onUpdate:modelValue":t[2]||(t[2]=f=>r.selectedLanguages=f),class:"multi-select",options:n.languages,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:"Select language",label:"resources.resources.languages","custom-label":r.customLabel,"track-by":"name","preselect-first":!1},{selection:Te(({values:f})=>[f.length>0?(S(),P("div",g7," Selected "+re(f.length)+" "+re(f.length>1?"languages":"language"),1)):ae("",!0)]),_:1},8,["modelValue","options","custom-label"])]),v("div",null,[t[16]||(t[16]=v("label",{class:"block text-[16px] leading-5 text-slate-500 mb-2"}," Location ",-1)),he(o,{modelValue:r.selectedLocations,"onUpdate:modelValue":t[3]||(t[3]=f=>r.selectedLocations=f),class:"multi-select",options:n.locations,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:"Select country/city",label:"Location","custom-label":f=>f.name,"track-by":"name","preselect-first":!1},{selection:Te(({values:f})=>[f.length>0?(S(),P("div",y7," Selected "+re(f.length)+" "+re(f.length>1?"locations":"location"),1)):ae("",!0)]),default:Te(()=>[v("pre",v7,[t[14]||(t[14]=ht(" ")),v("code",null,re(r.selectedLocations),1),t[15]||(t[15]=ht(` + `))])]),_:1},8,["modelValue","options","custom-label"])]),v("div",null,[t[17]||(t[17]=v("label",{class:"block text-[16px] leading-5 text-slate-500 mb-2"}," Type of Organisation ",-1)),he(o,{modelValue:r.selectedTypes,"onUpdate:modelValue":t[4]||(t[4]=f=>r.selectedTypes=f),class:"multi-select",options:r.typeOptions,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,"custom-label":f=>f.name,placeholder:"Select type of organisation",label:"Type of Organisation","track-by":"name","preselect-first":!1},{selection:Te(({values:f})=>[f.length>0?(S(),P("div",b7," Selected "+re(f.length)+" "+re(f.length>1?"types":"type"),1)):ae("",!0)]),default:Te(()=>[v("pre",_7,[v("code",null,re(r.selectedTypes),1)])]),_:1},8,["modelValue","options","custom-label"])]),v("div",null,[v("label",w7,[t[20]||(t[20]=v("span",null,"Topics",-1)),he(u,{contentClass:"w-64"},{trigger:Te(()=>t[18]||(t[18]=[v("div",{class:"w-5 h-5 bg-dark-blue rounded-full flex justify-center items-center text-white ml-1.5 cursor-pointer text-xs"}," i ",-1)])),content:Te(()=>t[19]||(t[19]=[ht(" Select a topic to help match volunteers with the right digital skills for your needs — e.g. coding, robotics, online safety, etc. ")])),_:1})]),he(o,{modelValue:r.selectedTopics,"onUpdate:modelValue":t[5]||(t[5]=f=>r.selectedTopics=f),class:"multi-select",options:r.topicOptions,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,"custom-label":f=>f.name,placeholder:"Select topic, e.g. robotics",label:"Topics","track-by":"name","preselect-first":!1},{selection:Te(({values:f})=>[f.length>0?(S(),P("div",k7," Selected "+re(f.length)+" "+re(f.length>1?"topics":"topic"),1)):ae("",!0)]),default:Te(()=>[v("pre",x7,[v("code",null,re(r.selectedTopics),1)])]),_:1},8,["modelValue","options","custom-label"])]),v("div",S7,[v("button",{class:"w-full bg-[#F95C22] rounded-full py-2.5 px-6 font-['Blinker'] hover:bg-hover-orange duration-300",onClick:t[6]||(t[6]=()=>{r.showFilterModal=!1,r.onSubmit()})},[v("span",T7,re(e.$t("resources.search")),1)])])])],2),v("button",{class:"block md:hidden w-full bg-[#F95C22] rounded-full py-2.5 px-6 font-['Blinker'] hover:bg-hover-orange duration-300 mb-8",onClick:t[7]||(t[7]=f=>r.showFilterModal=!0)},t[21]||(t[21]=[v("span",{class:"flex gap-2 justify-center items-center text-base leading-7 font-semibold text-black normal-case"},[ht(" Filter and search "),v("img",{class:"w-5 h-5",src:"/images/filter.svg"})],-1)])),r.tags.length?(S(),P("div",C7,[v("div",A7,[(S(!0),P(Ve,null,Qe(r.tags,f=>(S(),P("div",{key:f.id,class:"bg-light-blue-100 pl-4 pr-3 py-1 rounded-full text-slate-500 text-[16px] font-semibold"},[v("div",E7,[v("span",null,re(f.name),1),v("button",{onClick:p=>r.removeSelectedItem(f)},t[22]||(t[22]=[v("img",{class:"w-4 h-4",src:"/images/close-icon.svg"},null,-1)]),8,O7)])]))),128)),v("div",M7,[v("button",{class:"text-dark-blue underline font-semibold text-[16px]",onClick:t[8]||(t[8]=(...f)=>r.removeAllSelectedItems&&r.removeAllSelectedItems(...f))}," Clear all filters ")])])])):ae("",!0)]),v("div",R7,[t[23]||(t[23]=v("div",{class:"absolute w-full h-[800px] bg-yellow-50 md:hidden top-0",style:{"clip-path":"ellipse(270% 90% at 38% 90%)"}},null,-1)),t[24]||(t[24]=v("div",{class:"absolute w-full h-[800px] bg-yellow-50 hidden md:block top-0",style:{"clip-path":"ellipse(88% 90% at 50% 90%)"}},null,-1)),v("div",D7,[v("div",P7,[v("div",L7,[(S(!0),P(Ve,null,Qe(r.tools,f=>(S(),it(c,{key:f.id,tool:f},null,8,["tool"]))),128))]),r.pagination.last_page>1?(S(),it(h,{key:0,pagination:r.pagination,offset:5,onPaginate:r.paginate},null,8,["pagination","onPaginate"])):ae("",!0)])])])])}const N7=yt(u7,[["render",I7]]),V7={props:{mapTileUrl:String,profile:{type:Object,default:()=>({})},locations:{type:Array,default:()=>[]}},setup(e){const t=fe([]),n=fe([]),r=pe(()=>{try{const m=JSON.parse(e.profile);return console.log(">>> profile",m),m}catch(m){return console.error("Parse profile data error",m),{}}}),s=pe(()=>r.value.type==="organisation"),a=m=>{if(typeof m!="string")return m;try{return JSON.parse(m)}catch{return[]}},o=pe(()=>{var b,E,H,V;const m=r.value;if(m.type!=="organisation")return null;const y=[];m.organisation_mission&&y.push({title:"Introduction",list:[m.organisation_mission]}),(b=m.support_activities)!=null&&b.length&&y.push({title:"What kind of activities or support can you offer to schools and educators?",list:m.support_activities}),(E=m.target_school_types)!=null&&E.length&&y.push({title:"What types of schools are you most interested in working with?",list:m.target_school_types}),(H=m.digital_expertise_areas)!=null&&H.length&&y.push({title:"What areas of digital expertise does your organisation or you specialise in?",list:m.digital_expertise_areas}),m.description&&y.push({title:"Do you have any additional information or comments that could help us better match you with schools and educators?",list:[m.description]});const[_]=(m.website||"").split(",")||[];return{name:m.organisation_name,description:m.description,location:((V=e.locations.find(({iso:x})=>x===m.country))==null?void 0:V.name)||"",email:m.email,website:(_||"").trim(),abouts:y,short_intro:"",availabilities:[],phone:"",avatarDark:m.avatar_dark,avatar:m.avatar}}),u=pe(()=>{var _,b;const m=r.value;if(m.type!=="volunteer")return null;const y=[];return m.description&&y.push({title:"Introduction",list:[m.description]}),m.organisation_name&&m.organisation_type&&y.push({title:"Organisation",list:[`Organisation name: ${m.organisation_name}`,`Organisation type: ${a(m.organisation_type)}`]}),m.why_volunteering&&y.push({title:"Why am I volunteering?",list:[m.why_volunteering]}),(_=m.support_activities)!=null&&_.length&&y.push({title:"What kind of activities or support can you offer to schools and educators?",list:a(m.support_activities)}),(b=m.languages)!=null&&b.length&&y.push({title:"Languages spoken",list:a(m.languages)}),{name:`${m.first_name||""} ${m.last_name}`.trim(),description:m.description,location:m.location,email:m.email,get_email_from:m.get_email_from,linkedin:m.linkedin,facebook:m.facebook,website:m.website,job_title:m.job_title,abouts:y,short_intro:"",availabilities:[],phone:"",avatar:m.avatar}}),c=pe(()=>{const m=o.value||u.value||{};return m.linkedin&&!m.linkedin.startsWith("http")&&(m.linkedin=`https://${m.linkedin}`),m.facebook&&!m.facebook.startsWith("http")&&(m.facebook=`https://${m.facebook}`),m.website&&!m.website.startsWith("http")&&(m.website=`https://${m.website}`),m}),h=m=>{const y=n.value.filter(_=>_!==m);n.value.includes(m)?n.value=y:n.value=[...n.value,m]},f=(m,y)=>{m&&(t.value[y]=m)},p=async()=>{let m=[51,10];try{const b=await Tt("https://nominatim.openstreetmap.org/search",{params:{format:"json",q:c.value.location}});if(b.data&&b.data.length>0){const{lat:E,lon:H}=b.data[0];E&&H&&(m=[E,H])}}catch(b){console.log(b)}const y=L.map("map-id");L.tileLayer(e.mapTileUrl,{maxZoom:18,attribution:'© Mapbox',tileSize:512,zoomOffset:-1,zoomControl:!1}).addTo(y),console.log(m);const _=L.icon({iconUrl:"/images/marker-orange.svg",iconSize:[44,62],iconAnchor:[22,62],popupAnchor:[0,-60]});L.marker(m,{icon:_}).addTo(y),y.setView(m,12)};return Ft(()=>{setTimeout(()=>{p()},2e3)}),{isOrganisation:s,data:c,descriptionRefs:t,showAboutIndexes:n,handleToggleAbout:h,setDescriptionRef:f}}},F7={id:"codeweek-matchmaking-tool",class:"font-['Blinker'] overflow-hidden"},$7={class:"relative flex overflow-hidden"},B7={class:"flex codeweek-container-lg py-10 tablet:py-20"},H7={class:"flex flex-col lg:flex-row gap-12 tablet:gap-20 xl:gap-32 2xl:gap-[260px]"},U7={class:"text-dark-blue text-[30px] md:text-4xl leading-[44px] font-normal md:font-medium font-['Montserrat'] mb-6"},j7=["innerHTML"],q7={class:"text-dark-blue text-[22px] md:text-3xl leading-[36px] font-medium font-['Montserrat'] mb-6"},W7={class:"accordion"},Y7={class:"bg-transparent border-b-2 border-solid border-[#A4B8D9]"},z7=["onClick"],K7={class:"text-[#20262C] font-semibold text-lg font-['Montserrat']"},G7={class:"flex flex-col gap-0 text-slate-500 text-xl font-normal w-full"},J7=["innerHTML"],Z7={class:"flex-shrink-0 lg:max-w-[460px] w-full"},X7=["src"],Q7={key:1,class:"rounded-xl h-full w-full object-cover",src:"/images/matchmaking-tool/tool-placeholder.png"},e9={class:"text-[#20262C] font-semibold text-lg p-0 mb-10"},t9={key:0},n9={key:0,class:"text-[#20262C] text-xl leading-[36px] font-medium font-['Montserrat'] mb-4 italic"},r9={class:"border-l-[4px] border-[#F95C22] pl-4"},s9=["innerHTML"],i9={class:"relative overflow-hidden"},a9={class:"codeweek-container-lg relative pt-20 pb-16 md:pt-40 md:pb-28"},l9={class:"bg-white px-5 py-10 lg:p-16 rounded-[32px] flex flex-col tablet:flex-row w-full gap-10 lg:gap-0"},o9={class:"flex-1"},u9={class:"flex gap-4 mb-6"},c9={class:"p-0 text-slate-500 text-xl font-normal capitalize"},d9={key:0,class:"flex gap-4 mb-6"},f9=["href"],h9={class:"flex gap-4 mb-6"},p9=["href"],m9={key:1,class:"p-0 text-slate-500 text-xl font-normal capitalize"},g9={key:2,class:"p-0 text-slate-500 text-xl font-normal capitalize"},v9={key:1,class:"flex gap-4 mb-6"},y9=["href"],_9={key:2,class:"flex gap-4 mb-6"},b9=["href"],w9={key:3,class:"flex gap-4 mb-6"},x9=["href"],k9={key:4,class:"text-xl font-semibold text-[#20262C] mb-2"},S9={key:5,class:"flex gap-4"},T9={class:"flex flex-col gap-2"},C9={class:"grid grid-cols-2 gap-8"},A9={class:"p-0 text-slate-500 text-xl font-normal"},E9={class:"p-0 text-slate-500 text-xl font-normal"};function O9(e,t,n,r,s,a){var o,u;return S(),P("section",F7,[v("section",$7,[v("div",B7,[v("div",H7,[v("div",null,[v("h2",U7,re(r.data.name),1),v("p",{class:"text-[#20262C] font-normal text-2xl p-0 mb-10",innerHTML:r.data.description},null,8,j7),v("h3",q7,re(r.isOrganisation?"About our organization":"About me"),1),v("div",W7,[(S(!0),P(Ve,null,Qe(r.data.abouts,(c,h)=>{var f;return S(),P("div",Y7,[v("div",{class:"py-4 cursor-pointer flex items-center justify-between duration-300",onClick:p=>r.handleToggleAbout(h)},[v("p",K7,re(c.title),1),v("div",{class:Be(["rounded-full min-w-12 min-h-12 duration-300 flex justify-center items-center ml-8",[r.showAboutIndexes.includes(h)?"bg-primary hover:bg-hover-orange":"bg-yellow hover:bg-primary"]])},[v("div",{class:Be(["duration-300",[r.showAboutIndexes.includes(h)&&"rotate-180"]])},t[0]||(t[0]=[v("img",{src:"/images/digital-girls/arrow.svg"},null,-1)]),2)],2)],8,z7),v("div",{class:"flex overflow-hidden transition-all duration-300 min-h-[1px] h-full",ref_for:!0,ref:p=>r.setDescriptionRef(p,h),style:bn({height:r.showAboutIndexes.includes(h)?`${(f=r.descriptionRefs[h])==null?void 0:f.scrollHeight}px`:0})},[v("div",G7,[(S(!0),P(Ve,null,Qe(c.list,p=>(S(),P("p",{class:"p-0 pb-4 w-full",innerHTML:p},null,8,J7))),256))])],4)])}),256))])]),v("div",Z7,[v("div",{class:Be(["flex justify-center items-center rounded-xl border-2 border-[#ADB2B6] mb-4 aspect-square",[r.isOrganisation&&"p-6",r.data.avatarDark&&"bg-stone-800"]])},[r.data.avatar?(S(),P("img",{key:0,class:"rounded-xl w-full",src:r.data.avatar},null,8,X7)):(S(),P("img",Q7))],2),v("p",e9,[ht(re(r.data.name)+" ",1),r.data.job_title?(S(),P("span",t9,", "+re(r.data.job_title),1)):ae("",!0)]),r.data.short_intro?(S(),P("p",n9,re(r.data.short_intro),1)):ae("",!0),v("div",r9,[v("p",{class:"p-0 text-slate-500 text-xl font-normal",innerHTML:r.data.description},null,8,s9)])])])])]),v("section",i9,[t[12]||(t[12]=v("div",{class:"absolute w-full h-full bg-yellow-50 md:hidden",style:{"clip-path":"ellipse(270% 90% at 38% 90%)"}},null,-1)),t[13]||(t[13]=v("div",{class:"absolute w-full h-full bg-yellow-50 hidden md:block lg:hidden",style:{"clip-path":"ellipse(188% 90% at 50% 90%)"}},null,-1)),t[14]||(t[14]=v("div",{class:"absolute w-full h-full bg-yellow-50 hidden lg:block xl:hidden",style:{"clip-path":"ellipse(128% 90% at 50% 90%)"}},null,-1)),t[15]||(t[15]=v("div",{class:"absolute w-full h-full bg-yellow-50 hidden xl:block",style:{"clip-path":"ellipse(93% 90% at 50% 90%)"}},null,-1)),v("div",a9,[t[11]||(t[11]=v("h2",{class:"text-dark-blue tablet:text-center text-[30px] md:text-4xl leading-7 md:leading-[44px] font-normal md:font-medium font-['Montserrat'] mb-10 tablet:mb-8"}," Contact details ",-1)),v("div",l9,[v("div",o9,[t[8]||(t[8]=v("h3",{class:"text-dark-blue text-[22px] md:text-4xl leading-7 md:leading-[44px] font-medium font-['Montserrat'] mb-4"}," Location ",-1)),t[9]||(t[9]=v("span",{class:"bg-dark-blue text-white py-1 px-4 text-sm font-semibold rounded-full whitespace-nowrap flex items-center gap-2 w-fit mb-6"},[v("img",{src:"/images/star-white.svg",class:"w-4 h-4"}),v("span",null,[ht(" Can teach Online "),v("span",{class:"font-sans"},"&"),ht(" In-person ")])],-1)),v("div",u9,[t[1]||(t[1]=v("img",{src:"/images/map.svg",class:"w-6 h-6"},null,-1)),v("div",null,[v("p",c9,re(r.data.location),1)])]),r.data.phone?(S(),P("div",d9,[t[2]||(t[2]=v("img",{src:"/images/phone.svg",class:"w-6 h-6"},null,-1)),v("a",{class:"text-dark-blue underline cursor-pointer text-xl font-semibold",href:r.data.phone},re(r.data.phone),9,f9)])):ae("",!0),v("div",h9,[t[3]||(t[3]=v("img",{src:"/images/message.svg",class:"w-6 h-6"},null,-1)),r.data.email?(S(),P("a",{key:0,class:"text-dark-blue underline cursor-pointer text-xl font-semibold",href:`mailto:${r.data.email}`},re(r.data.email),9,p9)):r.data.get_email_from?(S(),P("p",m9,re(r.data.get_email_from),1)):(S(),P("p",g9," Anonymous "))]),r.data.linkedin?(S(),P("div",v9,[t[4]||(t[4]=v("img",{src:"/images/social/linkedin.svg",class:"w-6 h-6"},null,-1)),v("a",{class:"text-dark-blue underline cursor-pointer text-xl font-semibold",href:r.data.linkedin}," LinkedIn ",8,y9)])):ae("",!0),r.data.facebook?(S(),P("div",_9,[t[5]||(t[5]=v("img",{src:"/images/social/facebook.svg",class:"w-6 h-6"},null,-1)),v("a",{class:"text-dark-blue underline cursor-pointer text-xl font-semibold",href:r.data.facebook}," Facebook ",8,b9)])):ae("",!0),r.data.website?(S(),P("div",w9,[t[6]||(t[6]=v("img",{src:"/images/profile.svg",class:"w-6 h-6"},null,-1)),v("a",{class:"text-dark-blue underline cursor-pointer text-xl font-semibold",href:r.data.website}," Website ",8,x9)])):ae("",!0),(o=r.data.availabilities)!=null&&o.length?(S(),P("div",k9," My availability ")):ae("",!0),(u=r.data.availabilities)!=null&&u.length?(S(),P("div",S9,[t[7]||(t[7]=v("img",{src:"/images/map.svg",class:"w-6 h-6"},null,-1)),v("div",T9,[(S(!0),P(Ve,null,Qe(r.data.availabilities,({dateText:c,timeText:h})=>(S(),P("div",C9,[v("p",A9,re(c),1),v("p",E9,re(h),1)]))),256))])])):ae("",!0)]),t[10]||(t[10]=v("div",{class:"flex-1"},[v("div",{id:"map-id",class:"relative z-50 w-full h-64 md:h-full md:min-h-96 rounded-2xl bg-gray-100"})],-1))])])])])}const M9=yt(V7,[["render",O9]]),R9={props:["user"],components:{ImageUpload:Mw,Flash:cd},data(){return{avatar:this.user.avatar_path}},computed:{canUpdate(){return console.log("user",this.user),this.$authorize(e=>e.id===this.user.id)},hasAvatar(){return console.log(this.avatar),this.avatar.split("/").pop()!=="default.png"}},methods:{onLoad(e){this.persist(e.file)},persist(e){let t=new FormData;t.append("avatar",e),axios.post(`/api/users/${this.user.id}/avatar`,t).then(n=>{this.avatar=n.data.path,ei.emit("flash",{message:"Avatar uploaded!",level:"success"})})},remove(){console.log("delete me"),axios.delete("/api/users/avatar").then(()=>ei.emit("flash",{message:"Avatar Deleted!",level:"success"})),this.avatar="https://s3-eu-west-1.amazonaws.com/codeweek-dev/avatars/default.png"}}},D9={class:"flex flex-col tablet:flex-row tablet:items-center gap-6 tablet:gap-14"},P9={class:"flex"},L9={class:"relative"},I9=["src"],N9={key:0,method:"POST",enctype:"multipart/form-data",class:"absolute bottom-0 left-0"},V9={style:{display:"flex","align-items":"flex-end","margin-left":"-35px"}},F9={class:"text-white font-normal text-3xl tablet:font-medium tablet:text-5xl font-['Montserrat'] mb-6"};function $9(e,t,n,r,s,a){const o=at("image-upload");return S(),P("div",D9,[v("div",P9,[v("div",L9,[v("img",{src:s.avatar,class:"w-40 h-40 rounded-full border-4 border-solid border-dark-blue-300"},null,8,I9),a.canUpdate?(S(),P("form",N9,[he(o,{name:"avatar",class:"mr-1",onLoaded:a.onLoad},null,8,["onLoaded"])])):ae("",!0),v("div",V9,[Dn(v("button",{class:"absolute !bottom-0 !right-0 flex justify-center items-center !h-10 !w-10 !p-0 bg-[#FE6824] rounded-full !border-2 !border-solid !border-white",onClick:t[0]||(t[0]=(...u)=>a.remove&&a.remove(...u))},t[1]||(t[1]=[v("img",{class:"w-5 h-5",src:"/images/trash.svg"},null,-1)]),512),[[Fr,a.hasAvatar]])])])]),v("div",null,[v("h1",F9,re(n.user.fullName),1)])])}const B9=yt(R9,[["render",$9]]),H9={install(e){e.config.globalProperties.$authorize=function(...t){return window.App.signedIn?typeof t[0]=="string"?authorizations[t[0]](t[1]):t[0](window.App.user):!1}}},U9={data(){return{images:[{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/1e054358a7188baf8777a09512012cf16ab84970ef1c7610feb6dad13e504666",alt:"Consortium partner visual representation"},{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/2972cd5748880295748a9baa3e8fe3c996a0cdc09d86b46dbc72790d1cbc0655",alt:"Gallery image 1"},{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/fb06d640ec9446e59ef5e3fb63ceaaaf0b25d0117f209f11e3ab8e6ce3240acb",alt:"Gallery image 2"},{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/1e054358a7188baf8777a09512012cf16ab84970ef1c7610feb6dad13e504666",alt:"Gallery image 3"},{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/2972cd5748880295748a9baa3e8fe3c996a0cdc09d86b46dbc72790d1cbc0655",alt:"Gallery image 4"},{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/fb06d640ec9446e59ef5e3fb63ceaaaf0b25d0117f209f11e3ab8e6ce3240acb",alt:"Gallery image 5"}],currentIndex:0}},methods:{nextImage(){this.currentIndex=(this.currentIndex+1)%this.images.length,this.scrollToThumbnail()},prevImage(){this.currentIndex=this.currentIndex===0?this.images.length-1:this.currentIndex-1,this.scrollToThumbnail()},selectImage(e){this.currentIndex=e,this.scrollToThumbnail()},scrollToThumbnail(){const e=this.$refs.thumbnailGallery,t=e.clientWidth/3,n=Math.max(0,(this.currentIndex-1)*t);e.scrollTo({left:n,behavior:"smooth"})}}},j9={class:"flex flex-col pt-3.5"},q9={class:"flex py-4 md:py-20 relative flex-col mt-3.5 w-full bg-aqua max-md:max-w-full items-center"},W9={class:"z-0 flex flex-col items-start justify-between max-w-full gap-10 p-10 md:px-24"},Y9={class:"grid w-full grid-cols-1 md:grid-cols-2 gap-x-8"},z9={class:"flex items-start justify-start"},K9=["src","alt"],G9={class:"w-full overflow-hidden image-gallery"},J9={ref:"thumbnailGallery",class:"flex gap-4 overflow-x-auto flex-nowrap"},Z9=["src","alt","onClick"],X9={class:"flex justify-end w-full mt-4 image-gallery-controls"},Q9={class:"flex flex-wrap items-center gap-5"};function ej(e,t,n,r,s,a){return S(),P("section",j9,[v("div",q9,[v("div",W9,[v("div",Y9,[t[2]||(t[2]=kb('

Consortium Partner

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat.

Website link
',1)),v("div",z9,[v("img",{src:s.images[s.currentIndex].src,alt:s.images[s.currentIndex].alt,class:"main-image object-contain aspect-[1.63] w-full md:w-[480px] max-md:max-w-full"},null,8,K9)])]),v("div",G9,[v("div",J9,[(S(!0),P(Ve,null,Qe(s.images,(o,u)=>(S(),P("img",{key:u,src:o.src,alt:"Gallery image "+(u+1),class:Be([{"border-2 border-orange-500":s.currentIndex===u},"thumbnail cursor-pointer object-contain shrink-0 aspect-[1.5] min-h-[120px] w-[calc(33.33%-8px)]"]),onClick:c=>a.selectImage(u)},null,10,Z9))),128))],512)]),v("div",X9,[v("div",Q9,[v("button",{onClick:t[0]||(t[0]=(...o)=>a.prevImage&&a.prevImage(...o)),class:"flex group flex-col justify-center items-center self-stretch my-auto w-8 h-8 bg-orange-500 rounded min-h-[24px]"},t[3]||(t[3]=[v("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("rect",{width:"32",height:"32",rx:"4",class:"fill-primary group-hover:fill-secondary"}),v("path",{d:"M19 22L13 16L19 10",stroke:"white","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),v("button",{onClick:t[1]||(t[1]=(...o)=>a.nextImage&&a.nextImage(...o)),class:"flex group flex-col justify-center items-center self-stretch my-auto w-8 h-8 bg-orange-500 rounded min-h-[24px]"},t[4]||(t[4]=[v("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("rect",{width:"32",height:"32",rx:"4",class:"fill-primary group-hover:fill-secondary"}),v("path",{d:"M13 22L19 16L13 10",stroke:"white","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))])])])])])}const tj=yt(U9,[["render",ej],["__scopeId","data-v-5aad3e31"]]),Ut=bc({});Ut.use(H9);Ut.use(kL,{resolve:async e=>await Object.assign({"../lang/php_al.json":()=>Vt(()=>import("./php_al-2UTobk_f.js"),[]),"../lang/php_ba.json":()=>Vt(()=>import("./php_ba-CPGLiLsP.js"),[]),"../lang/php_bg.json":()=>Vt(()=>import("./php_bg-CYbF7ww8.js"),[]),"../lang/php_cs.json":()=>Vt(()=>import("./php_cs-XpK7lNvi.js"),[]),"../lang/php_da.json":()=>Vt(()=>import("./php_da-BEseQlDU.js"),[]),"../lang/php_de.json":()=>Vt(()=>import("./php_de-CzXI2k0W.js"),[]),"../lang/php_el.json":()=>Vt(()=>import("./php_el-BS7yRmOQ.js"),[]),"../lang/php_en.json":()=>Vt(()=>import("./php_en-hSRkEOjH.js"),[]),"../lang/php_es.json":()=>Vt(()=>import("./php_es-D7voR6y5.js"),[]),"../lang/php_et.json":()=>Vt(()=>import("./php_et-Chp0g4xz.js"),[]),"../lang/php_fi.json":()=>Vt(()=>import("./php_fi-B-hRJcdv.js"),[]),"../lang/php_fr.json":()=>Vt(()=>import("./php_fr-Y2m0H0Sm.js"),[]),"../lang/php_hr.json":()=>Vt(()=>import("./php_hr-i9aPUxLz.js"),[]),"../lang/php_hu.json":()=>Vt(()=>import("./php_hu-CFyaU2zG.js"),[]),"../lang/php_it.json":()=>Vt(()=>import("./php_it-BpzSeT_O.js"),[]),"../lang/php_lt.json":()=>Vt(()=>import("./php_lt-Q6u33N4V.js"),[]),"../lang/php_lv.json":()=>Vt(()=>import("./php_lv-CRpOkzjp.js"),[]),"../lang/php_me.json":()=>Vt(()=>import("./php_me-BJi21XTV.js"),[]),"../lang/php_mk.json":()=>Vt(()=>import("./php_mk-BFRotNjT.js"),[]),"../lang/php_mt.json":()=>Vt(()=>import("./php_mt-CwuNMDGU.js"),[]),"../lang/php_nl.json":()=>Vt(()=>import("./php_nl-Cst4MfLg.js"),[]),"../lang/php_pl.json":()=>Vt(()=>import("./php_pl-C6kpsYXS.js"),[]),"../lang/php_pt.json":()=>Vt(()=>import("./php_pt-BfrNopBb.js"),[]),"../lang/php_ro.json":()=>Vt(()=>import("./php_ro-X4MIRHyb.js"),[]),"../lang/php_rs.json":()=>Vt(()=>import("./php_rs-CoGFZoCf.js"),[]),"../lang/php_sk.json":()=>Vt(()=>import("./php_sk-DyliPJki.js"),[]),"../lang/php_sl.json":()=>Vt(()=>import("./php_sl-DksL3eDV.js"),[]),"../lang/php_sv.json":()=>Vt(()=>import("./php_sv-Yzx2WIbY.js"),[]),"../lang/php_tr.json":()=>Vt(()=>import("./php_tr-CwvUgmBM.js"),[]),"../lang/php_ua.json":()=>Vt(()=>import("./php_ua-ByZxJ7Tj.js"),[])})[`../lang/${e}.json`]()});Ut.component("ActivityForm",m4);Ut.component("ResourceForm",AV);Ut.component("ResourceCard",U1);Ut.component("ResourcePill",H1);Ut.component("Pagination",dd);Ut.component("Singleselect",DV);Ut.component("Multiselect",VV);Ut.component("CountrySelect",UV);Ut.component("ModerateEvent",uF);Ut.component("ReportEvent",iH);Ut.component("AutocompleteGeo",DF);Ut.component("DateTime",zB);Ut.component("Question",i8);Ut.component("PictureForm",m8);Ut.component("Flash",cd);Ut.component("InputTags",K8);Ut.component("SearchPageComponent",JU);Ut.component("AvatarForm",B9);Ut.component("PartnerGallery",tj);Ut.component("MatchMakingToolForm",N7);Ut.component("ToolCard",Iw);Ut.component("ToolDetailCard",M9);Ut.component("EventCard",Lw);Ut.component("EventDetail",TU);Ut.component("SelectField",Fo);Ut.mount("#app"); diff --git a/public/build/assets/app-BhhS6zLa.js b/public/build/assets/app-BhhS6zLa.js deleted file mode 100644 index 09bed24f4..000000000 --- a/public/build/assets/app-BhhS6zLa.js +++ /dev/null @@ -1,237 +0,0 @@ -var sE=Object.defineProperty;var iE=(e,t,n)=>t in e?sE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ze=(e,t,n)=>iE(e,typeof t!="symbol"?t+"":t,n);const aE="modulepreload",lE=function(e){return"/build/"+e},Iv={},Ft=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),u=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.allSettled(n.map(d=>{if(d=lE(d),d in Iv)return;Iv[d]=!0;const h=d.endsWith(".css"),f=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${f}`))return;const p=document.createElement("link");if(p.rel=h?"stylesheet":aE,h||(p.as="script"),p.crossOrigin="",p.href=d,u&&p.setAttribute("nonce",u),document.head.appendChild(p),h)return new Promise((m,y)=>{p.addEventListener("load",m),p.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${d}`)))})}))}function a(o){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=o,window.dispatchEvent(u),!u.defaultPrevented)throw o}return s.then(o=>{for(const u of o||[])u.status==="rejected"&&a(u.reason);return t().catch(a)})};function x0(e,t){return function(){return e.apply(t,arguments)}}const{toString:oE}=Object.prototype,{getPrototypeOf:zh}=Object,Dc=(e=>t=>{const n=oE.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),_s=e=>(e=e.toLowerCase(),t=>Dc(t)===e),Pc=e=>t=>typeof t===e,{isArray:xl}=Array,co=Pc("undefined");function uE(e){return e!==null&&!co(e)&&e.constructor!==null&&!co(e.constructor)&&Br(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const k0=_s("ArrayBuffer");function cE(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&k0(e.buffer),t}const dE=Pc("string"),Br=Pc("function"),S0=Pc("number"),Lc=e=>e!==null&&typeof e=="object",fE=e=>e===!0||e===!1,Wu=e=>{if(Dc(e)!=="object")return!1;const t=zh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},hE=_s("Date"),pE=_s("File"),mE=_s("Blob"),gE=_s("FileList"),vE=e=>Lc(e)&&Br(e.pipe),yE=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Br(e.append)&&((t=Dc(e))==="formdata"||t==="object"&&Br(e.toString)&&e.toString()==="[object FormData]"))},_E=_s("URLSearchParams"),[bE,wE,xE,kE]=["ReadableStream","Request","Response","Headers"].map(_s),SE=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Mo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),xl(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const ia=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window,A0=e=>!co(e)&&e!==ia;function oh(){const{caseless:e}=A0(this)&&this||{},t={},n=(r,s)=>{const a=e&&T0(t,s)||s;Wu(t[a])&&Wu(r)?t[a]=oh(t[a],r):Wu(r)?t[a]=oh({},r):xl(r)?t[a]=r.slice():t[a]=r};for(let r=0,s=arguments.length;r(Mo(t,(s,a)=>{n&&Br(s)?e[a]=x0(s,n):e[a]=s},{allOwnKeys:r}),e),AE=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),CE=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},EE=(e,t,n,r)=>{let s,a,o;const u={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),a=s.length;a-- >0;)o=s[a],(!r||r(o,e,t))&&!u[o]&&(t[o]=e[o],u[o]=!0);e=n!==!1&&zh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},OE=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},ME=e=>{if(!e)return null;if(xl(e))return e;let t=e.length;if(!S0(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},RE=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&zh(Uint8Array)),DE=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const a=s.value;t.call(e,a[0],a[1])}},PE=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},LE=_s("HTMLFormElement"),IE=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Nv=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),NE=_s("RegExp"),C0=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Mo(n,(s,a)=>{let o;(o=t(s,a,e))!==!1&&(r[a]=o||s)}),Object.defineProperties(e,r)},VE=e=>{C0(e,(t,n)=>{if(Br(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Br(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},FE=(e,t)=>{const n={},r=s=>{s.forEach(a=>{n[a]=!0})};return xl(e)?r(e):r(String(e).split(t)),n},$E=()=>{},BE=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function HE(e){return!!(e&&Br(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const UE=e=>{const t=new Array(10),n=(r,s)=>{if(Lc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const a=xl(r)?[]:{};return Mo(r,(o,u)=>{const d=n(o,s+1);!co(d)&&(a[u]=d)}),t[s]=void 0,a}}return r};return n(e,0)},jE=_s("AsyncFunction"),qE=e=>e&&(Lc(e)||Br(e))&&Br(e.then)&&Br(e.catch),E0=((e,t)=>e?setImmediate:t?((n,r)=>(ia.addEventListener("message",({source:s,data:a})=>{s===ia&&a===n&&r.length&&r.shift()()},!1),s=>{r.push(s),ia.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Br(ia.postMessage)),WE=typeof queueMicrotask<"u"?queueMicrotask.bind(ia):typeof process<"u"&&process.nextTick||E0,we={isArray:xl,isArrayBuffer:k0,isBuffer:uE,isFormData:yE,isArrayBufferView:cE,isString:dE,isNumber:S0,isBoolean:fE,isObject:Lc,isPlainObject:Wu,isReadableStream:bE,isRequest:wE,isResponse:xE,isHeaders:kE,isUndefined:co,isDate:hE,isFile:pE,isBlob:mE,isRegExp:NE,isFunction:Br,isStream:vE,isURLSearchParams:_E,isTypedArray:RE,isFileList:gE,forEach:Mo,merge:oh,extend:TE,trim:SE,stripBOM:AE,inherits:CE,toFlatObject:EE,kindOf:Dc,kindOfTest:_s,endsWith:OE,toArray:ME,forEachEntry:DE,matchAll:PE,isHTMLForm:LE,hasOwnProperty:Nv,hasOwnProp:Nv,reduceDescriptors:C0,freezeMethods:VE,toObjectSet:FE,toCamelCase:IE,noop:$E,toFiniteNumber:BE,findKey:T0,global:ia,isContextDefined:A0,isSpecCompliantForm:HE,toJSONObject:UE,isAsyncFn:jE,isThenable:qE,setImmediate:E0,asap:WE};function ft(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}we.inherits(ft,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:we.toJSONObject(this.config),code:this.code,status:this.status}}});const O0=ft.prototype,M0={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{M0[e]={value:e}});Object.defineProperties(ft,M0);Object.defineProperty(O0,"isAxiosError",{value:!0});ft.from=(e,t,n,r,s,a)=>{const o=Object.create(O0);return we.toFlatObject(e,o,function(d){return d!==Error.prototype},u=>u!=="isAxiosError"),ft.call(o,e.message,t,n,r,s),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const YE=null;function uh(e){return we.isPlainObject(e)||we.isArray(e)}function R0(e){return we.endsWith(e,"[]")?e.slice(0,-2):e}function Vv(e,t,n){return e?e.concat(t).map(function(s,a){return s=R0(s),!n&&a?"["+s+"]":s}).join(n?".":""):t}function zE(e){return we.isArray(e)&&!e.some(uh)}const KE=we.toFlatObject(we,{},null,function(t){return/^is[A-Z]/.test(t)});function Ic(e,t,n){if(!we.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=we.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,O){return!we.isUndefined(O[b])});const r=n.metaTokens,s=n.visitor||f,a=n.dots,o=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&we.isSpecCompliantForm(t);if(!we.isFunction(s))throw new TypeError("visitor must be a function");function h(_){if(_===null)return"";if(we.isDate(_))return _.toISOString();if(!d&&we.isBlob(_))throw new ft("Blob is not supported. Use a Buffer instead.");return we.isArrayBuffer(_)||we.isTypedArray(_)?d&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function f(_,b,O){let H=_;if(_&&!O&&typeof _=="object"){if(we.endsWith(b,"{}"))b=r?b:b.slice(0,-2),_=JSON.stringify(_);else if(we.isArray(_)&&zE(_)||(we.isFileList(_)||we.endsWith(b,"[]"))&&(H=we.toArray(_)))return b=R0(b),H.forEach(function(x,C){!(we.isUndefined(x)||x===null)&&t.append(o===!0?Vv([b],C,a):o===null?b:b+"[]",h(x))}),!1}return uh(_)?!0:(t.append(Vv(O,b,a),h(_)),!1)}const p=[],m=Object.assign(KE,{defaultVisitor:f,convertValue:h,isVisitable:uh});function y(_,b){if(!we.isUndefined(_)){if(p.indexOf(_)!==-1)throw Error("Circular reference detected in "+b.join("."));p.push(_),we.forEach(_,function(H,V){(!(we.isUndefined(H)||H===null)&&s.call(t,H,we.isString(V)?V.trim():V,b,m))===!0&&y(H,b?b.concat(V):[V])}),p.pop()}}if(!we.isObject(e))throw new TypeError("data must be an object");return y(e),t}function Fv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Kh(e,t){this._pairs=[],e&&Ic(e,this,t)}const D0=Kh.prototype;D0.append=function(t,n){this._pairs.push([t,n])};D0.toString=function(t){const n=t?function(r){return t.call(this,r,Fv)}:Fv;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function GE(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function P0(e,t,n){if(!t)return e;const r=n&&n.encode||GE;we.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let a;if(s?a=s(t,n):a=we.isURLSearchParams(t)?t.toString():new Kh(t,n).toString(r),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class $v{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){we.forEach(this.handlers,function(r){r!==null&&t(r)})}}const L0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},JE=typeof URLSearchParams<"u"?URLSearchParams:Kh,ZE=typeof FormData<"u"?FormData:null,XE=typeof Blob<"u"?Blob:null,QE={isBrowser:!0,classes:{URLSearchParams:JE,FormData:ZE,Blob:XE},protocols:["http","https","file","blob","url","data"]},Gh=typeof window<"u"&&typeof document<"u",ch=typeof navigator=="object"&&navigator||void 0,eO=Gh&&(!ch||["ReactNative","NativeScript","NS"].indexOf(ch.product)<0),tO=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",nO=Gh&&window.location.href||"http://localhost",rO=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Gh,hasStandardBrowserEnv:eO,hasStandardBrowserWebWorkerEnv:tO,navigator:ch,origin:nO},Symbol.toStringTag,{value:"Module"})),nr={...rO,...QE};function sO(e,t){return Ic(e,new nr.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,a){return nr.isNode&&we.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function iO(e){return we.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function aO(e){const t={},n=Object.keys(e);let r;const s=n.length;let a;for(r=0;r=n.length;return o=!o&&we.isArray(s)?s.length:o,d?(we.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!u):((!s[o]||!we.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],a)&&we.isArray(s[o])&&(s[o]=aO(s[o])),!u)}if(we.isFormData(e)&&we.isFunction(e.entries)){const n={};return we.forEachEntry(e,(r,s)=>{t(iO(r),s,n,0)}),n}return null}function lO(e,t,n){if(we.isString(e))try{return(t||JSON.parse)(e),we.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ro={transitional:L0,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,a=we.isObject(t);if(a&&we.isHTMLForm(t)&&(t=new FormData(t)),we.isFormData(t))return s?JSON.stringify(I0(t)):t;if(we.isArrayBuffer(t)||we.isBuffer(t)||we.isStream(t)||we.isFile(t)||we.isBlob(t)||we.isReadableStream(t))return t;if(we.isArrayBufferView(t))return t.buffer;if(we.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return sO(t,this.formSerializer).toString();if((u=we.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Ic(u?{"files[]":t}:t,d&&new d,this.formSerializer)}}return a||s?(n.setContentType("application/json",!1),lO(t)):t}],transformResponse:[function(t){const n=this.transitional||Ro.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(we.isResponse(t)||we.isReadableStream(t))return t;if(t&&we.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(u){if(o)throw u.name==="SyntaxError"?ft.from(u,ft.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nr.classes.FormData,Blob:nr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};we.forEach(["delete","get","head","post","put","patch"],e=>{Ro.headers[e]={}});const oO=we.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),uO=e=>{const t={};let n,r,s;return e&&e.split(` -`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&oO[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Bv=Symbol("internals");function ql(e){return e&&String(e).trim().toLowerCase()}function Yu(e){return e===!1||e==null?e:we.isArray(e)?e.map(Yu):String(e)}function cO(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const dO=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Of(e,t,n,r,s){if(we.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!we.isString(t)){if(we.isString(r))return t.indexOf(r)!==-1;if(we.isRegExp(r))return r.test(t)}}function fO(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function hO(e,t){const n=we.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,a,o){return this[r].call(this,t,s,a,o)},configurable:!0})})}let Tr=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function a(u,d,h){const f=ql(d);if(!f)throw new Error("header name must be a non-empty string");const p=we.findKey(s,f);(!p||s[p]===void 0||h===!0||h===void 0&&s[p]!==!1)&&(s[p||d]=Yu(u))}const o=(u,d)=>we.forEach(u,(h,f)=>a(h,f,d));if(we.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(we.isString(t)&&(t=t.trim())&&!dO(t))o(uO(t),n);else if(we.isHeaders(t))for(const[u,d]of t.entries())a(d,u,r);else t!=null&&a(n,t,r);return this}get(t,n){if(t=ql(t),t){const r=we.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return cO(s);if(we.isFunction(n))return n.call(this,s,r);if(we.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ql(t),t){const r=we.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Of(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function a(o){if(o=ql(o),o){const u=we.findKey(r,o);u&&(!n||Of(r,r[u],u,n))&&(delete r[u],s=!0)}}return we.isArray(t)?t.forEach(a):a(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const a=n[r];(!t||Of(this,this[a],a,t,!0))&&(delete this[a],s=!0)}return s}normalize(t){const n=this,r={};return we.forEach(this,(s,a)=>{const o=we.findKey(r,a);if(o){n[o]=Yu(s),delete n[a];return}const u=t?fO(a):String(a).trim();u!==a&&delete n[a],n[u]=Yu(s),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return we.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&we.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Bv]=this[Bv]={accessors:{}}).accessors,s=this.prototype;function a(o){const u=ql(o);r[u]||(hO(s,o),r[u]=!0)}return we.isArray(t)?t.forEach(a):a(t),this}};Tr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);we.reduceDescriptors(Tr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});we.freezeMethods(Tr);function Mf(e,t){const n=this||Ro,r=t||n,s=Tr.from(r.headers);let a=r.data;return we.forEach(e,function(u){a=u.call(n,a,s.normalize(),t?t.status:void 0)}),s.normalize(),a}function N0(e){return!!(e&&e.__CANCEL__)}function kl(e,t,n){ft.call(this,e??"canceled",ft.ERR_CANCELED,t,n),this.name="CanceledError"}we.inherits(kl,ft,{__CANCEL__:!0});function V0(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ft("Request failed with status code "+n.status,[ft.ERR_BAD_REQUEST,ft.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function pO(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function mO(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,a=0,o;return t=t!==void 0?t:1e3,function(d){const h=Date.now(),f=r[a];o||(o=h),n[s]=d,r[s]=h;let p=a,m=0;for(;p!==s;)m+=n[p++],p=p%e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),h-o{n=f,s=null,a&&(clearTimeout(a),a=null),e.apply(null,h)};return[(...h)=>{const f=Date.now(),p=f-n;p>=r?o(h,f):(s=h,a||(a=setTimeout(()=>{a=null,o(s)},r-p)))},()=>s&&o(s)]}const nc=(e,t,n=3)=>{let r=0;const s=mO(50,250);return gO(a=>{const o=a.loaded,u=a.lengthComputable?a.total:void 0,d=o-r,h=s(d),f=o<=u;r=o;const p={loaded:o,total:u,progress:u?o/u:void 0,bytes:d,rate:h||void 0,estimated:h&&u&&f?(u-o)/h:void 0,event:a,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(p)},n)},Hv=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Uv=e=>(...t)=>we.asap(()=>e(...t)),vO=nr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,nr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(nr.origin),nr.navigator&&/(msie|trident)/i.test(nr.navigator.userAgent)):()=>!0,yO=nr.hasStandardBrowserEnv?{write(e,t,n,r,s,a){const o=[e+"="+encodeURIComponent(t)];we.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),we.isString(r)&&o.push("path="+r),we.isString(s)&&o.push("domain="+s),a===!0&&o.push("secure"),document.cookie=o.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 _O(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function bO(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function F0(e,t,n){let r=!_O(t);return e&&(r||n==!1)?bO(e,t):t}const jv=e=>e instanceof Tr?{...e}:e;function va(e,t){t=t||{};const n={};function r(h,f,p,m){return we.isPlainObject(h)&&we.isPlainObject(f)?we.merge.call({caseless:m},h,f):we.isPlainObject(f)?we.merge({},f):we.isArray(f)?f.slice():f}function s(h,f,p,m){if(we.isUndefined(f)){if(!we.isUndefined(h))return r(void 0,h,p,m)}else return r(h,f,p,m)}function a(h,f){if(!we.isUndefined(f))return r(void 0,f)}function o(h,f){if(we.isUndefined(f)){if(!we.isUndefined(h))return r(void 0,h)}else return r(void 0,f)}function u(h,f,p){if(p in t)return r(h,f);if(p in e)return r(void 0,h)}const d={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:(h,f,p)=>s(jv(h),jv(f),p,!0)};return we.forEach(Object.keys(Object.assign({},e,t)),function(f){const p=d[f]||s,m=p(e[f],t[f],f);we.isUndefined(m)&&p!==u||(n[f]=m)}),n}const $0=e=>{const t=va({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:a,headers:o,auth:u}=t;t.headers=o=Tr.from(o),t.url=P0(F0(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&o.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let d;if(we.isFormData(n)){if(nr.hasStandardBrowserEnv||nr.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((d=o.getContentType())!==!1){const[h,...f]=d?d.split(";").map(p=>p.trim()).filter(Boolean):[];o.setContentType([h||"multipart/form-data",...f].join("; "))}}if(nr.hasStandardBrowserEnv&&(r&&we.isFunction(r)&&(r=r(t)),r||r!==!1&&vO(t.url))){const h=s&&a&&yO.read(a);h&&o.set(s,h)}return t},wO=typeof XMLHttpRequest<"u",xO=wO&&function(e){return new Promise(function(n,r){const s=$0(e);let a=s.data;const o=Tr.from(s.headers).normalize();let{responseType:u,onUploadProgress:d,onDownloadProgress:h}=s,f,p,m,y,_;function b(){y&&y(),_&&_(),s.cancelToken&&s.cancelToken.unsubscribe(f),s.signal&&s.signal.removeEventListener("abort",f)}let O=new XMLHttpRequest;O.open(s.method.toUpperCase(),s.url,!0),O.timeout=s.timeout;function H(){if(!O)return;const x=Tr.from("getAllResponseHeaders"in O&&O.getAllResponseHeaders()),F={data:!u||u==="text"||u==="json"?O.responseText:O.response,status:O.status,statusText:O.statusText,headers:x,config:e,request:O};V0(function($){n($),b()},function($){r($),b()},F),O=null}"onloadend"in O?O.onloadend=H:O.onreadystatechange=function(){!O||O.readyState!==4||O.status===0&&!(O.responseURL&&O.responseURL.indexOf("file:")===0)||setTimeout(H)},O.onabort=function(){O&&(r(new ft("Request aborted",ft.ECONNABORTED,e,O)),O=null)},O.onerror=function(){r(new ft("Network Error",ft.ERR_NETWORK,e,O)),O=null},O.ontimeout=function(){let C=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const F=s.transitional||L0;s.timeoutErrorMessage&&(C=s.timeoutErrorMessage),r(new ft(C,F.clarifyTimeoutError?ft.ETIMEDOUT:ft.ECONNABORTED,e,O)),O=null},a===void 0&&o.setContentType(null),"setRequestHeader"in O&&we.forEach(o.toJSON(),function(C,F){O.setRequestHeader(F,C)}),we.isUndefined(s.withCredentials)||(O.withCredentials=!!s.withCredentials),u&&u!=="json"&&(O.responseType=s.responseType),h&&([m,_]=nc(h,!0),O.addEventListener("progress",m)),d&&O.upload&&([p,y]=nc(d),O.upload.addEventListener("progress",p),O.upload.addEventListener("loadend",y)),(s.cancelToken||s.signal)&&(f=x=>{O&&(r(!x||x.type?new kl(null,e,O):x),O.abort(),O=null)},s.cancelToken&&s.cancelToken.subscribe(f),s.signal&&(s.signal.aborted?f():s.signal.addEventListener("abort",f)));const V=pO(s.url);if(V&&nr.protocols.indexOf(V)===-1){r(new ft("Unsupported protocol "+V+":",ft.ERR_BAD_REQUEST,e));return}O.send(a||null)})},kO=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const a=function(h){if(!s){s=!0,u();const f=h instanceof Error?h:this.reason;r.abort(f instanceof ft?f:new kl(f instanceof Error?f.message:f))}};let o=t&&setTimeout(()=>{o=null,a(new ft(`timeout ${t} of ms exceeded`,ft.ETIMEDOUT))},t);const u=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(a):h.removeEventListener("abort",a)}),e=null)};e.forEach(h=>h.addEventListener("abort",a));const{signal:d}=r;return d.unsubscribe=()=>we.asap(u),d}},SO=function*(e,t){let n=e.byteLength;if(n{const s=TO(e,t);let a=0,o,u=d=>{o||(o=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:h,value:f}=await s.next();if(h){u(),d.close();return}let p=f.byteLength;if(n){let m=a+=p;n(m)}d.enqueue(new Uint8Array(f))}catch(h){throw u(h),h}},cancel(d){return u(d),s.return()}},{highWaterMark:2})},Nc=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",B0=Nc&&typeof ReadableStream=="function",CO=Nc&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),H0=(e,...t)=>{try{return!!e(...t)}catch{return!1}},EO=B0&&H0(()=>{let e=!1;const t=new Request(nr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Wv=64*1024,dh=B0&&H0(()=>we.isReadableStream(new Response("").body)),rc={stream:dh&&(e=>e.body)};Nc&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!rc[t]&&(rc[t]=we.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ft(`Response type '${t}' is not supported`,ft.ERR_NOT_SUPPORT,r)})})})(new Response);const OO=async e=>{if(e==null)return 0;if(we.isBlob(e))return e.size;if(we.isSpecCompliantForm(e))return(await new Request(nr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(we.isArrayBufferView(e)||we.isArrayBuffer(e))return e.byteLength;if(we.isURLSearchParams(e)&&(e=e+""),we.isString(e))return(await CO(e)).byteLength},MO=async(e,t)=>{const n=we.toFiniteNumber(e.getContentLength());return n??OO(t)},RO=Nc&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:a,timeout:o,onDownloadProgress:u,onUploadProgress:d,responseType:h,headers:f,withCredentials:p="same-origin",fetchOptions:m}=$0(e);h=h?(h+"").toLowerCase():"text";let y=kO([s,a&&a.toAbortSignal()],o),_;const b=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let O;try{if(d&&EO&&n!=="get"&&n!=="head"&&(O=await MO(f,r))!==0){let F=new Request(t,{method:"POST",body:r,duplex:"half"}),U;if(we.isFormData(r)&&(U=F.headers.get("content-type"))&&f.setContentType(U),F.body){const[$,D]=Hv(O,nc(Uv(d)));r=qv(F.body,Wv,$,D)}}we.isString(p)||(p=p?"include":"omit");const H="credentials"in Request.prototype;_=new Request(t,{...m,signal:y,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:r,duplex:"half",credentials:H?p:void 0});let V=await fetch(_);const x=dh&&(h==="stream"||h==="response");if(dh&&(u||x&&b)){const F={};["status","statusText","headers"].forEach(T=>{F[T]=V[T]});const U=we.toFiniteNumber(V.headers.get("content-length")),[$,D]=u&&Hv(U,nc(Uv(u),!0))||[];V=new Response(qv(V.body,Wv,$,()=>{D&&D(),b&&b()}),F)}h=h||"text";let C=await rc[we.findKey(rc,h)||"text"](V,e);return!x&&b&&b(),await new Promise((F,U)=>{V0(F,U,{data:C,headers:Tr.from(V.headers),status:V.status,statusText:V.statusText,config:e,request:_})})}catch(H){throw b&&b(),H&&H.name==="TypeError"&&/fetch/i.test(H.message)?Object.assign(new ft("Network Error",ft.ERR_NETWORK,e,_),{cause:H.cause||H}):ft.from(H,H&&H.code,e,_)}}),fh={http:YE,xhr:xO,fetch:RO};we.forEach(fh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Yv=e=>`- ${e}`,DO=e=>we.isFunction(e)||e===null||e===!1,U0={getAdapter:e=>{e=we.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let a=0;a`adapter ${u} `+(d===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since : -`+a.map(Yv).join(` -`):" "+Yv(a[0]):"as no adapter specified";throw new ft("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:fh};function Rf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new kl(null,e)}function zv(e){return Rf(e),e.headers=Tr.from(e.headers),e.data=Mf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),U0.getAdapter(e.adapter||Ro.adapter)(e).then(function(r){return Rf(e),r.data=Mf.call(e,e.transformResponse,r),r.headers=Tr.from(r.headers),r},function(r){return N0(r)||(Rf(e),r&&r.response&&(r.response.data=Mf.call(e,e.transformResponse,r.response),r.response.headers=Tr.from(r.response.headers))),Promise.reject(r)})}const j0="1.8.4",Vc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Vc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Kv={};Vc.transitional=function(t,n,r){function s(a,o){return"[Axios v"+j0+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,u)=>{if(t===!1)throw new ft(s(o," has been removed"+(n?" in "+n:"")),ft.ERR_DEPRECATED);return n&&!Kv[o]&&(Kv[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,u):!0}};Vc.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function PO(e,t,n){if(typeof e!="object")throw new ft("options must be an object",ft.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const a=r[s],o=t[a];if(o){const u=e[a],d=u===void 0||o(u,a,e);if(d!==!0)throw new ft("option "+a+" must be "+d,ft.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ft("Unknown option "+a,ft.ERR_BAD_OPTION)}}const zu={assertOptions:PO,validators:Vc},Ts=zu.validators;let ua=class{constructor(t){this.defaults=t,this.interceptors={request:new $v,response:new $v}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const a=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=va(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:a}=n;r!==void 0&&zu.assertOptions(r,{silentJSONParsing:Ts.transitional(Ts.boolean),forcedJSONParsing:Ts.transitional(Ts.boolean),clarifyTimeoutError:Ts.transitional(Ts.boolean)},!1),s!=null&&(we.isFunction(s)?n.paramsSerializer={serialize:s}:zu.assertOptions(s,{encode:Ts.function,serialize:Ts.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),zu.assertOptions(n,{baseUrl:Ts.spelling("baseURL"),withXsrfToken:Ts.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&we.merge(a.common,a[n.method]);a&&we.forEach(["delete","get","head","post","put","patch","common"],_=>{delete a[_]}),n.headers=Tr.concat(o,a);const u=[];let d=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(d=d&&b.synchronous,u.unshift(b.fulfilled,b.rejected))});const h=[];this.interceptors.response.forEach(function(b){h.push(b.fulfilled,b.rejected)});let f,p=0,m;if(!d){const _=[zv.bind(this),void 0];for(_.unshift.apply(_,u),_.push.apply(_,h),m=_.length,f=Promise.resolve(n);p{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](s);r._listeners=null}),this.promise.then=s=>{let a;const o=new Promise(u=>{r.subscribe(u),a=u}).then(s);return o.cancel=function(){r.unsubscribe(a)},o},t(function(a,o,u){r.reason||(r.reason=new kl(a,o,u),n(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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new q0(function(s){t=s}),cancel:t}}};function IO(e){return function(n){return e.apply(null,n)}}function NO(e){return we.isObject(e)&&e.isAxiosError===!0}const hh={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(hh).forEach(([e,t])=>{hh[t]=e});function W0(e){const t=new ua(e),n=x0(ua.prototype.request,t);return we.extend(n,ua.prototype,t,{allOwnKeys:!0}),we.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return W0(va(e,s))},n}const xt=W0(Ro);xt.Axios=ua;xt.CanceledError=kl;xt.CancelToken=LO;xt.isCancel=N0;xt.VERSION=j0;xt.toFormData=Ic;xt.AxiosError=ft;xt.Cancel=xt.CanceledError;xt.all=function(t){return Promise.all(t)};xt.spread=IO;xt.isAxiosError=NO;xt.mergeConfig=va;xt.AxiosHeaders=Tr;xt.formToJSON=e=>I0(we.isHTMLForm(e)?new FormData(e):e);xt.getAdapter=U0.getAdapter;xt.HttpStatusCode=hh;xt.default=xt;const{Axios:rj,AxiosError:sj,CanceledError:ij,isCancel:aj,CancelToken:lj,VERSION:oj,all:uj,Cancel:cj,isAxiosError:dj,spread:fj,toFormData:hj,AxiosHeaders:pj,HttpStatusCode:mj,formToJSON:gj,getAdapter:vj,mergeConfig:yj}=xt;window.axios=xt;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";let Gv=document.head.querySelector('meta[name="csrf-token"]');Gv?window.axios.defaults.headers.common["X-CSRF-TOKEN"]=Gv.content:console.error("CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token");/** -* @vue/shared v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function jr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Tt={},tl=[],zn=()=>{},Zl=()=>!1,wa=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Jh=e=>e.startsWith("onUpdate:"),At=Object.assign,Zh=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},VO=Object.prototype.hasOwnProperty,Dt=(e,t)=>VO.call(e,t),Ye=Array.isArray,nl=e=>Sl(e)==="[object Map]",xa=e=>Sl(e)==="[object Set]",Jv=e=>Sl(e)==="[object Date]",FO=e=>Sl(e)==="[object RegExp]",st=e=>typeof e=="function",ct=e=>typeof e=="string",Cr=e=>typeof e=="symbol",Ht=e=>e!==null&&typeof e=="object",Xh=e=>(Ht(e)||st(e))&&st(e.then)&&st(e.catch),Y0=Object.prototype.toString,Sl=e=>Y0.call(e),$O=e=>Sl(e).slice(8,-1),Fc=e=>Sl(e)==="[object Object]",Qh=e=>ct(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ai=jr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),BO=jr("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),$c=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},HO=/-(\w)/g,Jt=$c(e=>e.replace(HO,(t,n)=>n?n.toUpperCase():"")),UO=/\B([A-Z])/g,xr=$c(e=>e.replace(UO,"-$1").toLowerCase()),ka=$c(e=>e.charAt(0).toUpperCase()+e.slice(1)),rl=$c(e=>e?`on${ka(e)}`:""),dr=(e,t)=>!Object.is(e,t),sl=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},sc=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ic=e=>{const t=ct(e)?Number(e):NaN;return isNaN(t)?e:t};let Zv;const Bc=()=>Zv||(Zv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"||typeof window<"u"?window:{});function jO(e,t){return e+JSON.stringify(t,(n,r)=>typeof r=="function"?r.toString():r)}const qO="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",WO=jr(qO);function bn(e){if(Ye(e)){const t={};for(let n=0;n{if(n){const r=n.split(zO);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Be(e){let t="";if(ct(e))t=e;else if(Ye(e))for(let n=0;nPi(n,t))}const J0=e=>!!(e&&e.__v_isRef===!0),re=e=>ct(e)?e:e==null?"":Ye(e)||Ht(e)&&(e.toString===Y0||!st(e.toString))?J0(e)?re(e.value):JSON.stringify(e,Z0,2):String(e),Z0=(e,t)=>J0(t)?Z0(e,t.value):nl(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],a)=>(n[Df(r,a)+" =>"]=s,n),{})}:xa(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Df(n))}:Cr(t)?Df(t):Ht(t)&&!Ye(t)&&!Fc(t)?String(t):t,Df=(e,t="")=>{var n;return Cr(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** -* @vue/reactivity v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let cr;class ep{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=cr,!t&&cr&&(this.index=(cr.scopes||(cr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;if(to){let t=to;for(to=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;eo;){let t=eo;for(eo=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function t_(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function n_(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),sp(r),lM(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function ph(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(r_(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function r_(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ho))return;e.globalVersion=ho;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!ph(e)){e.flags&=-3;return}const n=zt,r=ps;zt=e,ps=!0;try{t_(e);const s=e.fn(e._value);(t.version===0||dr(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{zt=n,ps=r,n_(e),e.flags&=-3}}function sp(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let a=n.computed.deps;a;a=a.nextDep)sp(a,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function lM(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function oM(e,t){e.effect instanceof fo&&(e=e.effect.fn);const n=new fo(e);t&&At(n,t);try{n.run()}catch(s){throw n.stop(),s}const r=n.run.bind(n);return r.effect=n,r}function uM(e){e.effect.stop()}let ps=!0;const s_=[];function Fi(){s_.push(ps),ps=!1}function $i(){const e=s_.pop();ps=e===void 0?!0:e}function Xv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=zt;zt=void 0;try{t()}finally{zt=n}}}let ho=0;class cM{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Uc{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!zt||!ps||zt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==zt)n=this.activeLink=new cM(zt,this),zt.deps?(n.prevDep=zt.depsTail,zt.depsTail.nextDep=n,zt.depsTail=n):zt.deps=zt.depsTail=n,i_(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=zt.depsTail,n.nextDep=void 0,zt.depsTail.nextDep=n,zt.depsTail=n,zt.deps===n&&(zt.deps=r)}return n}trigger(t){this.version++,ho++,this.notify(t)}notify(t){np();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{rp()}}}function i_(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)i_(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ac=new WeakMap,ca=Symbol(""),mh=Symbol(""),po=Symbol("");function er(e,t,n){if(ps&&zt){let r=ac.get(e);r||ac.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Uc),s.map=r,s.key=n),s.track()}}function Gs(e,t,n,r,s,a){const o=ac.get(e);if(!o){ho++;return}const u=d=>{d&&d.trigger()};if(np(),t==="clear")o.forEach(u);else{const d=Ye(e),h=d&&Qh(n);if(d&&n==="length"){const f=Number(r);o.forEach((p,m)=>{(m==="length"||m===po||!Cr(m)&&m>=f)&&u(p)})}else switch((n!==void 0||o.has(void 0))&&u(o.get(n)),h&&u(o.get(po)),t){case"add":d?h&&u(o.get("length")):(u(o.get(ca)),nl(e)&&u(o.get(mh)));break;case"delete":d||(u(o.get(ca)),nl(e)&&u(o.get(mh)));break;case"set":nl(e)&&u(o.get(ca));break}}rp()}function dM(e,t){const n=ac.get(e);return n&&n.get(t)}function Ua(e){const t=Mt(e);return t===e?t:(er(t,"iterate",po),Ur(e)?t:t.map(tr))}function jc(e){return er(e=Mt(e),"iterate",po),e}const fM={__proto__:null,[Symbol.iterator](){return Lf(this,Symbol.iterator,tr)},concat(...e){return Ua(this).concat(...e.map(t=>Ye(t)?Ua(t):t))},entries(){return Lf(this,"entries",e=>(e[1]=tr(e[1]),e))},every(e,t){return qs(this,"every",e,t,void 0,arguments)},filter(e,t){return qs(this,"filter",e,t,n=>n.map(tr),arguments)},find(e,t){return qs(this,"find",e,t,tr,arguments)},findIndex(e,t){return qs(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return qs(this,"findLast",e,t,tr,arguments)},findLastIndex(e,t){return qs(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return qs(this,"forEach",e,t,void 0,arguments)},includes(...e){return If(this,"includes",e)},indexOf(...e){return If(this,"indexOf",e)},join(e){return Ua(this).join(e)},lastIndexOf(...e){return If(this,"lastIndexOf",e)},map(e,t){return qs(this,"map",e,t,void 0,arguments)},pop(){return Wl(this,"pop")},push(...e){return Wl(this,"push",e)},reduce(e,...t){return Qv(this,"reduce",e,t)},reduceRight(e,...t){return Qv(this,"reduceRight",e,t)},shift(){return Wl(this,"shift")},some(e,t){return qs(this,"some",e,t,void 0,arguments)},splice(...e){return Wl(this,"splice",e)},toReversed(){return Ua(this).toReversed()},toSorted(e){return Ua(this).toSorted(e)},toSpliced(...e){return Ua(this).toSpliced(...e)},unshift(...e){return Wl(this,"unshift",e)},values(){return Lf(this,"values",tr)}};function Lf(e,t,n){const r=jc(e),s=r[t]();return r!==e&&!Ur(e)&&(s._next=s.next,s.next=()=>{const a=s._next();return a.value&&(a.value=n(a.value)),a}),s}const hM=Array.prototype;function qs(e,t,n,r,s,a){const o=jc(e),u=o!==e&&!Ur(e),d=o[t];if(d!==hM[t]){const p=d.apply(e,a);return u?tr(p):p}let h=n;o!==e&&(u?h=function(p,m){return n.call(this,tr(p),m,e)}:n.length>2&&(h=function(p,m){return n.call(this,p,m,e)}));const f=d.call(o,h,r);return u&&s?s(f):f}function Qv(e,t,n,r){const s=jc(e);let a=n;return s!==e&&(Ur(e)?n.length>3&&(a=function(o,u,d){return n.call(this,o,u,d,e)}):a=function(o,u,d){return n.call(this,o,tr(u),d,e)}),s[t](a,...r)}function If(e,t,n){const r=Mt(e);er(r,"iterate",po);const s=r[t](...n);return(s===-1||s===!1)&&Yc(n[0])?(n[0]=Mt(n[0]),r[t](...n)):s}function Wl(e,t,n=[]){Fi(),np();const r=Mt(e)[t].apply(e,n);return rp(),$i(),r}const pM=jr("__proto__,__v_isRef,__isVue"),a_=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Cr));function mM(e){Cr(e)||(e=String(e));const t=Mt(this);return er(t,"has",e),t.hasOwnProperty(e)}class l_{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,a=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return a;if(n==="__v_raw")return r===(s?a?h_:f_:a?d_:c_).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=Ye(t);if(!s){let d;if(o&&(d=fM[n]))return d;if(n==="hasOwnProperty")return mM}const u=Reflect.get(t,n,Tn(t)?t:r);return(Cr(n)?a_.has(n):pM(n))||(s||er(t,"get",n),a)?u:Tn(u)?o&&Qh(n)?u:u.value:Ht(u)?s?ip(u):Hr(u):u}}class o_ extends l_{constructor(t=!1){super(!1,t)}set(t,n,r,s){let a=t[n];if(!this._isShallow){const d=Li(a);if(!Ur(r)&&!Li(r)&&(a=Mt(a),r=Mt(r)),!Ye(t)&&Tn(a)&&!Tn(r))return d?!1:(a.value=r,!0)}const o=Ye(t)&&Qh(n)?Number(n)e,Mu=e=>Reflect.getPrototypeOf(e);function bM(e,t,n){return function(...r){const s=this.__v_raw,a=Mt(s),o=nl(a),u=e==="entries"||e===Symbol.iterator&&o,d=e==="keys"&&o,h=s[e](...r),f=n?gh:t?vh:tr;return!t&&er(a,"iterate",d?mh:ca),{next(){const{value:p,done:m}=h.next();return m?{value:p,done:m}:{value:u?[f(p[0]),f(p[1])]:f(p),done:m}},[Symbol.iterator](){return this}}}}function Ru(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function wM(e,t){const n={get(s){const a=this.__v_raw,o=Mt(a),u=Mt(s);e||(dr(s,u)&&er(o,"get",s),er(o,"get",u));const{has:d}=Mu(o),h=t?gh:e?vh:tr;if(d.call(o,s))return h(a.get(s));if(d.call(o,u))return h(a.get(u));a!==o&&a.get(s)},get size(){const s=this.__v_raw;return!e&&er(Mt(s),"iterate",ca),Reflect.get(s,"size",s)},has(s){const a=this.__v_raw,o=Mt(a),u=Mt(s);return e||(dr(s,u)&&er(o,"has",s),er(o,"has",u)),s===u?a.has(s):a.has(s)||a.has(u)},forEach(s,a){const o=this,u=o.__v_raw,d=Mt(u),h=t?gh:e?vh:tr;return!e&&er(d,"iterate",ca),u.forEach((f,p)=>s.call(a,h(f),h(p),o))}};return At(n,e?{add:Ru("add"),set:Ru("set"),delete:Ru("delete"),clear:Ru("clear")}:{add(s){!t&&!Ur(s)&&!Li(s)&&(s=Mt(s));const a=Mt(this);return Mu(a).has.call(a,s)||(a.add(s),Gs(a,"add",s,s)),this},set(s,a){!t&&!Ur(a)&&!Li(a)&&(a=Mt(a));const o=Mt(this),{has:u,get:d}=Mu(o);let h=u.call(o,s);h||(s=Mt(s),h=u.call(o,s));const f=d.call(o,s);return o.set(s,a),h?dr(a,f)&&Gs(o,"set",s,a):Gs(o,"add",s,a),this},delete(s){const a=Mt(this),{has:o,get:u}=Mu(a);let d=o.call(a,s);d||(s=Mt(s),d=o.call(a,s)),u&&u.call(a,s);const h=a.delete(s);return d&&Gs(a,"delete",s,void 0),h},clear(){const s=Mt(this),a=s.size!==0,o=s.clear();return a&&Gs(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=bM(s,e,t)}),n}function qc(e,t){const n=wM(e,t);return(r,s,a)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(Dt(n,s)&&s in r?n:r,s,a)}const xM={get:qc(!1,!1)},kM={get:qc(!1,!0)},SM={get:qc(!0,!1)},TM={get:qc(!0,!0)},c_=new WeakMap,d_=new WeakMap,f_=new WeakMap,h_=new WeakMap;function AM(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function CM(e){return e.__v_skip||!Object.isExtensible(e)?0:AM($O(e))}function Hr(e){return Li(e)?e:Wc(e,!1,gM,xM,c_)}function p_(e){return Wc(e,!1,yM,kM,d_)}function ip(e){return Wc(e,!0,vM,SM,f_)}function EM(e){return Wc(e,!0,_M,TM,h_)}function Wc(e,t,n,r,s){if(!Ht(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=s.get(e);if(a)return a;const o=CM(e);if(o===0)return e;const u=new Proxy(e,o===2?r:n);return s.set(e,u),u}function Ci(e){return Li(e)?Ci(e.__v_raw):!!(e&&e.__v_isReactive)}function Li(e){return!!(e&&e.__v_isReadonly)}function Ur(e){return!!(e&&e.__v_isShallow)}function Yc(e){return e?!!e.__v_raw:!1}function Mt(e){const t=e&&e.__v_raw;return t?Mt(t):e}function m_(e){return!Dt(e,"__v_skip")&&Object.isExtensible(e)&&z0(e,"__v_skip",!0),e}const tr=e=>Ht(e)?Hr(e):e,vh=e=>Ht(e)?ip(e):e;function Tn(e){return e?e.__v_isRef===!0:!1}function fe(e){return v_(e,!1)}function g_(e){return v_(e,!0)}function v_(e,t){return Tn(e)?e:new OM(e,t)}class OM{constructor(t,n){this.dep=new Uc,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Mt(t),this._value=n?t:tr(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Ur(t)||Li(t);t=r?t:Mt(t),dr(t,n)&&(this._rawValue=t,this._value=r?t:tr(t),this.dep.trigger())}}function MM(e){e.dep&&e.dep.trigger()}function Z(e){return Tn(e)?e.value:e}function RM(e){return st(e)?e():Z(e)}const DM={get:(e,t,n)=>t==="__v_raw"?e:Z(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Tn(s)&&!Tn(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function ap(e){return Ci(e)?e:new Proxy(e,DM)}class PM{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Uc,{get:r,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function y_(e){return new PM(e)}function LM(e){const t=Ye(e)?new Array(e.length):{};for(const n in e)t[n]=__(e,n);return t}class IM{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return dM(Mt(this._object),this._key)}}class NM{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ll(e,t,n){return Tn(e)?e:st(e)?new NM(e):Ht(e)&&arguments.length>1?__(e,t,n):fe(e)}function __(e,t,n){const r=e[t];return Tn(r)?r:new IM(e,t,n)}class VM{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Uc(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ho-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&zt!==this)return e_(this,!0),!0}get value(){const t=this.dep.track();return r_(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function FM(e,t,n=!1){let r,s;return st(e)?r=e:(r=e.get,s=e.set),new VM(r,s,n)}const $M={GET:"get",HAS:"has",ITERATE:"iterate"},BM={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},Du={},lc=new WeakMap;let bi;function HM(){return bi}function b_(e,t=!1,n=bi){if(n){let r=lc.get(n);r||lc.set(n,r=[]),r.push(e)}}function UM(e,t,n=Tt){const{immediate:r,deep:s,once:a,scheduler:o,augmentJob:u,call:d}=n,h=C=>s?C:Ur(C)||s===!1||s===0?Js(C,1):Js(C);let f,p,m,y,_=!1,b=!1;if(Tn(e)?(p=()=>e.value,_=Ur(e)):Ci(e)?(p=()=>h(e),_=!0):Ye(e)?(b=!0,_=e.some(C=>Ci(C)||Ur(C)),p=()=>e.map(C=>{if(Tn(C))return C.value;if(Ci(C))return h(C);if(st(C))return d?d(C,2):C()})):st(e)?t?p=d?()=>d(e,2):e:p=()=>{if(m){Fi();try{m()}finally{$i()}}const C=bi;bi=f;try{return d?d(e,3,[y]):e(y)}finally{bi=C}}:p=zn,t&&s){const C=p,F=s===!0?1/0:s;p=()=>Js(C(),F)}const O=tp(),H=()=>{f.stop(),O&&O.active&&Zh(O.effects,f)};if(a&&t){const C=t;t=(...F)=>{C(...F),H()}}let V=b?new Array(e.length).fill(Du):Du;const x=C=>{if(!(!(f.flags&1)||!f.dirty&&!C))if(t){const F=f.run();if(s||_||(b?F.some((U,$)=>dr(U,V[$])):dr(F,V))){m&&m();const U=bi;bi=f;try{const $=[F,V===Du?void 0:b&&V[0]===Du?[]:V,y];d?d(t,3,$):t(...$),V=F}finally{bi=U}}}else f.run()};return u&&u(x),f=new fo(p),f.scheduler=o?()=>o(x,!1):x,y=C=>b_(C,!1,f),m=f.onStop=()=>{const C=lc.get(f);if(C){if(d)d(C,4);else for(const F of C)F();lc.delete(f)}},t?r?x(!0):V=f.run():o?o(x.bind(null,!0),!0):f.run(),H.pause=f.pause.bind(f),H.resume=f.resume.bind(f),H.stop=H,H}function Js(e,t=1/0,n){if(t<=0||!Ht(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Tn(e))Js(e.value,t,n);else if(Ye(e))for(let r=0;r{Js(r,t,n)});else if(Fc(e)){for(const r in e)Js(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Js(e[r],t,n)}return e}/** -* @vue/runtime-core v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/const w_=[];function jM(e){w_.push(e)}function qM(){w_.pop()}function WM(e,t){}const YM={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},zM={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Tl(e,t,n,r){try{return r?e(...r):e()}catch(s){Sa(s,t,n)}}function rs(e,t,n,r){if(st(e)){const s=Tl(e,t,n,r);return s&&Xh(s)&&s.catch(a=>{Sa(a,t,n)}),s}if(Ye(e)){const s=[];for(let a=0;a>>1,s=fr[r],a=go(s);a=go(n)?fr.push(e):fr.splice(GM(t),0,e),e.flags|=1,k_()}}function k_(){oc||(oc=x_.then(S_))}function mo(e){Ye(e)?il.push(...e):wi&&e.id===-1?wi.splice(Ga+1,0,e):e.flags&1||(il.push(e),e.flags|=1),k_()}function ey(e,t,n=Cs+1){for(;ngo(n)-go(r));if(il.length=0,wi){wi.push(...t);return}for(wi=t,Ga=0;Gae.id==null?e.flags&2?-1:1/0:e.id;function S_(e){try{for(Cs=0;CsJa.emit(s,...a)),Pu=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{T_(a,t)}),setTimeout(()=>{Ja||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Pu=[])},3e3)):Pu=[]}let In=null,zc=null;function vo(e){const t=In;return In=e,zc=e&&e.type.__scopeId||null,t}function JM(e){zc=e}function ZM(){zc=null}const XM=e=>Te;function Te(e,t=In,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Th(-1);const a=vo(t);let o;try{o=e(...s)}finally{vo(a),r._d&&Th(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Dn(e,t){if(In===null)return e;const n=Lo(In),r=e.dirs||(e.dirs=[]);for(let s=0;se.__isTeleport,no=e=>e&&(e.disabled||e.disabled===""),ty=e=>e&&(e.defer||e.defer===""),ny=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ry=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,yh=(e,t)=>{const n=e&&e.to;return ct(n)?t?t(n):null:n},E_={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,a,o,u,d,h){const{mc:f,pc:p,pbc:m,o:{insert:y,querySelector:_,createText:b,createComment:O}}=h,H=no(t.props);let{shapeFlag:V,children:x,dynamicChildren:C}=t;if(e==null){const F=t.el=b(""),U=t.anchor=b("");y(F,n,r),y(U,n,r);const $=(T,B)=>{V&16&&(s&&s.isCE&&(s.ce._teleportTarget=T),f(x,T,B,s,a,o,u,d))},D=()=>{const T=t.target=yh(t.props,_),B=M_(T,t,b,y);T&&(o!=="svg"&&ny(T)?o="svg":o!=="mathml"&&ry(T)&&(o="mathml"),H||($(T,B),Ku(t,!1)))};H&&($(n,U),Ku(t,!0)),ty(t.props)?Mn(()=>{D(),t.el.__isMounted=!0},a):D()}else{if(ty(t.props)&&!e.el.__isMounted){Mn(()=>{E_.process(e,t,n,r,s,a,o,u,d,h),delete e.el.__isMounted},a);return}t.el=e.el,t.targetStart=e.targetStart;const F=t.anchor=e.anchor,U=t.target=e.target,$=t.targetAnchor=e.targetAnchor,D=no(e.props),T=D?n:U,B=D?F:$;if(o==="svg"||ny(U)?o="svg":(o==="mathml"||ry(U))&&(o="mathml"),C?(m(e.dynamicChildren,C,T,s,a,o,u),gp(e,t,!0)):d||p(e,t,T,B,s,a,o,u,!1),H)D?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Lu(t,n,F,h,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const se=t.target=yh(t.props,_);se&&Lu(t,se,null,h,0)}else D&&Lu(t,U,$,h,1);Ku(t,H)}},remove(e,t,n,{um:r,o:{remove:s}},a){const{shapeFlag:o,children:u,anchor:d,targetStart:h,targetAnchor:f,target:p,props:m}=e;if(p&&(s(h),s(f)),a&&s(d),o&16){const y=a||!no(m);for(let _=0;_{e.isMounted=!0}),Xc(()=>{e.isUnmounting=!0}),e}const Qr=[Function,Array],up={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Qr,onEnter:Qr,onAfterEnter:Qr,onEnterCancelled:Qr,onBeforeLeave:Qr,onLeave:Qr,onAfterLeave:Qr,onLeaveCancelled:Qr,onBeforeAppear:Qr,onAppear:Qr,onAfterAppear:Qr,onAppearCancelled:Qr},R_=e=>{const t=e.subTree;return t.component?R_(t.component):t},eR={name:"BaseTransition",props:up,setup(e,{slots:t}){const n=ss(),r=op();return()=>{const s=t.default&&Kc(t.default(),!0);if(!s||!s.length)return;const a=D_(s),o=Mt(e),{mode:u}=o;if(r.isLeaving)return Nf(a);const d=sy(a);if(!d)return Nf(a);let h=ol(d,o,r,n,p=>h=p);d.type!==An&&ti(d,h);let f=n.subTree&&sy(n.subTree);if(f&&f.type!==An&&!ds(d,f)&&R_(n).type!==An){let p=ol(f,o,r,n);if(ti(f,p),u==="out-in"&&d.type!==An)return r.isLeaving=!0,p.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete p.afterLeave,f=void 0},Nf(a);u==="in-out"&&d.type!==An?p.delayLeave=(m,y,_)=>{const b=L_(r,f);b[String(f.key)]=f,m[xi]=()=>{y(),m[xi]=void 0,delete h.delayedLeave,f=void 0},h.delayedLeave=()=>{_(),delete h.delayedLeave,f=void 0}}:f=void 0}else f&&(f=void 0);return a}}};function D_(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==An){t=n;break}}return t}const P_=eR;function L_(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ol(e,t,n,r,s){const{appear:a,mode:o,persisted:u=!1,onBeforeEnter:d,onEnter:h,onAfterEnter:f,onEnterCancelled:p,onBeforeLeave:m,onLeave:y,onAfterLeave:_,onLeaveCancelled:b,onBeforeAppear:O,onAppear:H,onAfterAppear:V,onAppearCancelled:x}=t,C=String(e.key),F=L_(n,e),U=(T,B)=>{T&&rs(T,r,9,B)},$=(T,B)=>{const se=B[1];U(T,B),Ye(T)?T.every(ee=>ee.length<=1)&&se():T.length<=1&&se()},D={mode:o,persisted:u,beforeEnter(T){let B=d;if(!n.isMounted)if(a)B=O||d;else return;T[xi]&&T[xi](!0);const se=F[C];se&&ds(e,se)&&se.el[xi]&&se.el[xi](),U(B,[T])},enter(T){let B=h,se=f,ee=p;if(!n.isMounted)if(a)B=H||h,se=V||f,ee=x||p;else return;let de=!1;const ne=T[Iu]=N=>{de||(de=!0,N?U(ee,[T]):U(se,[T]),D.delayedLeave&&D.delayedLeave(),T[Iu]=void 0)};B?$(B,[T,ne]):ne()},leave(T,B){const se=String(e.key);if(T[Iu]&&T[Iu](!0),n.isUnmounting)return B();U(m,[T]);let ee=!1;const de=T[xi]=ne=>{ee||(ee=!0,B(),ne?U(b,[T]):U(_,[T]),T[xi]=void 0,F[se]===e&&delete F[se])};F[se]=e,y?$(y,[T,de]):de()},clone(T){const B=ol(T,t,n,r,s);return s&&s(B),B}};return D}function Nf(e){if(Do(e))return e=Ps(e),e.children=null,e}function sy(e){if(!Do(e))return C_(e.type)&&e.children?D_(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&st(n.default))return n.default()}}function ti(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ti(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Kc(e,t=!1,n){let r=[],s=0;for(let a=0;a1)for(let a=0;an.value,set:a=>n.value=a})}return n}function yo(e,t,n,r,s=!1){if(Ye(e)){e.forEach((_,b)=>yo(_,t&&(Ye(t)?t[b]:t),n,r,s));return}if(Ei(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&yo(e,t,n,r.component.subTree);return}const a=r.shapeFlag&4?Lo(r.component):r.el,o=s?null:a,{i:u,r:d}=e,h=t&&t.r,f=u.refs===Tt?u.refs={}:u.refs,p=u.setupState,m=Mt(p),y=p===Tt?()=>!1:_=>Dt(m,_);if(h!=null&&h!==d&&(ct(h)?(f[h]=null,y(h)&&(p[h]=null)):Tn(h)&&(h.value=null)),st(d))Tl(d,u,12,[o,f]);else{const _=ct(d),b=Tn(d);if(_||b){const O=()=>{if(e.f){const H=_?y(d)?p[d]:f[d]:d.value;s?Ye(H)&&Zh(H,a):Ye(H)?H.includes(a)||H.push(a):_?(f[d]=[a],y(d)&&(p[d]=f[d])):(d.value=[a],e.k&&(f[e.k]=d.value))}else _?(f[d]=o,y(d)&&(p[d]=o)):b&&(d.value=o,e.k&&(f[e.k]=o))};o?(O.id=-1,Mn(O,n)):O()}}}let iy=!1;const ja=()=>{iy||(console.error("Hydration completed but contains mismatches."),iy=!0)},rR=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",sR=e=>e.namespaceURI.includes("MathML"),Nu=e=>{if(e.nodeType===1){if(rR(e))return"svg";if(sR(e))return"mathml"}},Qa=e=>e.nodeType===8;function iR(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:a,parentNode:o,remove:u,insert:d,createComment:h}}=e,f=(x,C)=>{if(!C.hasChildNodes()){n(null,x,C),uc(),C._vnode=x;return}p(C.firstChild,x,null,null,null),uc(),C._vnode=x},p=(x,C,F,U,$,D=!1)=>{D=D||!!C.dynamicChildren;const T=Qa(x)&&x.data==="[",B=()=>b(x,C,F,U,$,T),{type:se,ref:ee,shapeFlag:de,patchFlag:ne}=C;let N=x.nodeType;C.el=x,ne===-2&&(D=!1,C.dynamicChildren=null);let G=null;switch(se){case Oi:N!==3?C.children===""?(d(C.el=s(""),o(x),x),G=x):G=B():(x.data!==C.children&&(ja(),x.data=C.children),G=a(x));break;case An:V(x)?(G=a(x),H(C.el=x.content.firstChild,x,F)):N!==8||T?G=B():G=a(x);break;case fa:if(T&&(x=a(x),N=x.nodeType),N===1||N===3){G=x;const k=!C.children.length;for(let J=0;J{D=D||!!C.dynamicChildren;const{type:T,props:B,patchFlag:se,shapeFlag:ee,dirs:de,transition:ne}=C,N=T==="input"||T==="option";if(N||se!==-1){de&&Es(C,null,F,"created");let G=!1;if(V(x)){G=lb(null,ne)&&F&&F.vnode.props&&F.vnode.props.appear;const J=x.content.firstChild;G&&ne.beforeEnter(J),H(J,x,F),C.el=x=J}if(ee&16&&!(B&&(B.innerHTML||B.textContent))){let J=y(x.firstChild,C,x,F,U,$,D);for(;J;){Vu(x,1)||ja();const _e=J;J=J.nextSibling,u(_e)}}else if(ee&8){let J=C.children;J[0]===` -`&&(x.tagName==="PRE"||x.tagName==="TEXTAREA")&&(J=J.slice(1)),x.textContent!==J&&(Vu(x,0)||ja(),x.textContent=C.children)}if(B){if(N||!D||se&48){const J=x.tagName.includes("-");for(const _e in B)(N&&(_e.endsWith("value")||_e==="indeterminate")||wa(_e)&&!Ai(_e)||_e[0]==="."||J)&&r(x,_e,null,B[_e],void 0,F)}else if(B.onClick)r(x,"onClick",null,B.onClick,void 0,F);else if(se&4&&Ci(B.style))for(const J in B.style)B.style[J]}let k;(k=B&&B.onVnodeBeforeMount)&&br(k,F,C),de&&Es(C,null,F,"beforeMount"),((k=B&&B.onVnodeMounted)||de||G)&&vb(()=>{k&&br(k,F,C),G&&ne.enter(x),de&&Es(C,null,F,"mounted")},U)}return x.nextSibling},y=(x,C,F,U,$,D,T)=>{T=T||!!C.dynamicChildren;const B=C.children,se=B.length;for(let ee=0;ee{const{slotScopeIds:T}=C;T&&($=$?$.concat(T):T);const B=o(x),se=y(a(x),C,B,F,U,$,D);return se&&Qa(se)&&se.data==="]"?a(C.anchor=se):(ja(),d(C.anchor=h("]"),B,se),se)},b=(x,C,F,U,$,D)=>{if(Vu(x.parentElement,1)||ja(),C.el=null,D){const se=O(x);for(;;){const ee=a(x);if(ee&&ee!==se)u(ee);else break}}const T=a(x),B=o(x);return u(x),n(null,C,B,T,F,U,Nu(B),$),F&&(F.vnode.el=C.el,ed(F,C.el)),T},O=(x,C="[",F="]")=>{let U=0;for(;x;)if(x=a(x),x&&Qa(x)&&(x.data===C&&U++,x.data===F)){if(U===0)return a(x);U--}return x},H=(x,C,F)=>{const U=C.parentNode;U&&U.replaceChild(x,C);let $=F;for(;$;)$.vnode.el===C&&($.vnode.el=$.subTree.el=x),$=$.parent},V=x=>x.nodeType===1&&x.tagName==="TEMPLATE";return[f,p]}const ay="data-allow-mismatch",aR={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Vu(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(ay);)e=e.parentElement;const n=e&&e.getAttribute(ay);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:n.split(",").includes(aR[t])}}const lR=Bc().requestIdleCallback||(e=>setTimeout(e,1)),oR=Bc().cancelIdleCallback||(e=>clearTimeout(e)),uR=(e=1e4)=>t=>{const n=lR(t,{timeout:e});return()=>oR(n)};function cR(e){const{top:t,left:n,bottom:r,right:s}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t0&&r0&&n0&&s(t,n)=>{const r=new IntersectionObserver(s=>{for(const a of s)if(a.isIntersecting){r.disconnect(),t();break}},e);return n(s=>{if(s instanceof Element){if(cR(s))return t(),r.disconnect(),!1;r.observe(s)}}),()=>r.disconnect()},fR=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},hR=(e=[])=>(t,n)=>{ct(e)&&(e=[e]);let r=!1;const s=o=>{r||(r=!0,a(),t(),o.target.dispatchEvent(new o.constructor(o.type,o)))},a=()=>{n(o=>{for(const u of e)o.removeEventListener(u,s)})};return n(o=>{for(const u of e)o.addEventListener(u,s,{once:!0})}),a};function pR(e,t){if(Qa(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Qa(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const Ei=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function mR(e){st(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:a,timeout:o,suspensible:u=!0,onError:d}=e;let h=null,f,p=0;const m=()=>(p++,h=null,y()),y=()=>{let _;return h||(_=h=t().catch(b=>{if(b=b instanceof Error?b:new Error(String(b)),d)return new Promise((O,H)=>{d(b,()=>O(m()),()=>H(b),p+1)});throw b}).then(b=>_!==h&&h?h:(b&&(b.__esModule||b[Symbol.toStringTag]==="Module")&&(b=b.default),f=b,b)))};return fn({name:"AsyncComponentWrapper",__asyncLoader:y,__asyncHydrate(_,b,O){const H=a?()=>{const V=a(O,x=>pR(_,x));V&&(b.bum||(b.bum=[])).push(V)}:O;f?H():y().then(()=>!b.isUnmounted&&H())},get __asyncResolved(){return f},setup(){const _=Pn;if(cp(_),f)return()=>Vf(f,_);const b=x=>{h=null,Sa(x,_,13,!r)};if(u&&_.suspense||ul)return y().then(x=>()=>Vf(x,_)).catch(x=>(b(x),()=>r?he(r,{error:x}):null));const O=fe(!1),H=fe(),V=fe(!!s);return s&&setTimeout(()=>{V.value=!1},s),o!=null&&setTimeout(()=>{if(!O.value&&!H.value){const x=new Error(`Async component timed out after ${o}ms.`);b(x),H.value=x}},o),y().then(()=>{O.value=!0,_.parent&&Do(_.parent.vnode)&&_.parent.update()}).catch(x=>{b(x),H.value=x}),()=>{if(O.value&&f)return Vf(f,_);if(H.value&&r)return he(r,{error:H.value});if(n&&!V.value)return he(n)}}})}function Vf(e,t){const{ref:n,props:r,children:s,ce:a}=t.vnode,o=he(e,r,s);return o.ref=n,o.ce=a,delete t.vnode.ce,o}const Do=e=>e.type.__isKeepAlive,gR={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=ss(),r=n.ctx;if(!r.renderer)return()=>{const V=t.default&&t.default();return V&&V.length===1?V[0]:V};const s=new Map,a=new Set;let o=null;const u=n.suspense,{renderer:{p:d,m:h,um:f,o:{createElement:p}}}=r,m=p("div");r.activate=(V,x,C,F,U)=>{const $=V.component;h(V,x,C,0,u),d($.vnode,V,x,C,$,u,F,V.slotScopeIds,U),Mn(()=>{$.isDeactivated=!1,$.a&&sl($.a);const D=V.props&&V.props.onVnodeMounted;D&&br(D,$.parent,V)},u)},r.deactivate=V=>{const x=V.component;dc(x.m),dc(x.a),h(V,m,null,1,u),Mn(()=>{x.da&&sl(x.da);const C=V.props&&V.props.onVnodeUnmounted;C&&br(C,x.parent,V),x.isDeactivated=!0},u)};function y(V){Ff(V),f(V,n,u,!0)}function _(V){s.forEach((x,C)=>{const F=Mh(x.type);F&&!V(F)&&b(C)})}function b(V){const x=s.get(V);x&&(!o||!ds(x,o))?y(x):o&&Ff(o),s.delete(V),a.delete(V)}Wt(()=>[e.include,e.exclude],([V,x])=>{V&&_(C=>Xl(V,C)),x&&_(C=>!Xl(x,C))},{flush:"post",deep:!0});let O=null;const H=()=>{O!=null&&(fc(n.subTree.type)?Mn(()=>{s.set(O,Fu(n.subTree))},n.subTree.suspense):s.set(O,Fu(n.subTree)))};return It(H),Zc(H),Xc(()=>{s.forEach(V=>{const{subTree:x,suspense:C}=n,F=Fu(x);if(V.type===F.type&&V.key===F.key){Ff(F);const U=F.component.da;U&&Mn(U,C);return}y(V)})}),()=>{if(O=null,!t.default)return o=null;const V=t.default(),x=V[0];if(V.length>1)return o=null,V;if(!ni(x)||!(x.shapeFlag&4)&&!(x.shapeFlag&128))return o=null,x;let C=Fu(x);if(C.type===An)return o=null,C;const F=C.type,U=Mh(Ei(C)?C.type.__asyncResolved||{}:F),{include:$,exclude:D,max:T}=e;if($&&(!U||!Xl($,U))||D&&U&&Xl(D,U))return C.shapeFlag&=-257,o=C,x;const B=C.key==null?F:C.key,se=s.get(B);return C.el&&(C=Ps(C),x.shapeFlag&128&&(x.ssContent=C)),O=B,se?(C.el=se.el,C.component=se.component,C.transition&&ti(C,C.transition),C.shapeFlag|=512,a.delete(B),a.add(B)):(a.add(B),T&&a.size>parseInt(T,10)&&b(a.values().next().value)),C.shapeFlag|=256,o=C,fc(x.type)?x:C}}},vR=gR;function Xl(e,t){return Ye(e)?e.some(n=>Xl(n,t)):ct(e)?e.split(",").includes(t):FO(e)?(e.lastIndex=0,e.test(t)):!1}function I_(e,t){V_(e,"a",t)}function N_(e,t){V_(e,"da",t)}function V_(e,t,n=Pn){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Gc(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Do(s.parent.vnode)&&yR(r,t,n,s),s=s.parent}}function yR(e,t,n,r){const s=Gc(t,e,r,!0);ii(()=>{Zh(r[t],s)},n)}function Ff(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Fu(e){return e.shapeFlag&128?e.ssContent:e}function Gc(e,t,n=Pn,r=!1){if(n){const s=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...o)=>{Fi();const u=_a(n),d=rs(t,n,e,o);return u(),$i(),d});return r?s.unshift(a):s.push(a),a}}const si=e=>(t,n=Pn)=>{(!ul||e==="sp")&&Gc(e,(...r)=>t(...r),n)},F_=si("bm"),It=si("m"),Jc=si("bu"),Zc=si("u"),Xc=si("bum"),ii=si("um"),$_=si("sp"),B_=si("rtg"),H_=si("rtc");function U_(e,t=Pn){Gc("ec",e,t)}const dp="components",_R="directives";function at(e,t){return fp(dp,e,!0,t)||e}const j_=Symbol.for("v-ndc");function Al(e){return ct(e)?fp(dp,e,!1)||e:e||j_}function q_(e){return fp(_R,e)}function fp(e,t,n=!0,r=!1){const s=In||Pn;if(s){const a=s.type;if(e===dp){const u=Mh(a,!1);if(u&&(u===t||u===Jt(t)||u===ka(Jt(t))))return a}const o=ly(s[e]||a[e],t)||ly(s.appContext[e],t);return!o&&r?a:o}}function ly(e,t){return e&&(e[t]||e[Jt(t)]||e[ka(Jt(t))])}function Qe(e,t,n,r){let s;const a=n&&n[r],o=Ye(e);if(o||ct(e)){const u=o&&Ci(e);let d=!1;u&&(d=!Ur(e),e=jc(e)),s=new Array(e.length);for(let h=0,f=e.length;ht(u,d,void 0,a&&a[d]));else{const u=Object.keys(e);s=new Array(u.length);for(let d=0,h=u.length;d{const a=r.fn(...s);return a&&(a.key=r.key),a}:r.fn)}return e}function Ie(e,t,n={},r,s){if(In.ce||In.parent&&Ei(In.parent)&&In.parent.ce)return t!=="default"&&(n.name=t),S(),it(Ve,null,[he("slot",n,r&&r())],64);let a=e[t];a&&a._c&&(a._d=!1),S();const o=a&&hp(a(n)),u=n.key||o&&o.key,d=it(Ve,{key:(u&&!Cr(u)?u:`_${t}`)+(!o&&r?"_fb":"")},o||(r?r():[]),o&&e._===1?64:-2);return!s&&d.scopeId&&(d.slotScopeIds=[d.scopeId+"-s"]),a&&a._c&&(a._d=!0),d}function hp(e){return e.some(t=>ni(t)?!(t.type===An||t.type===Ve&&!hp(t.children)):!0)?e:null}function bR(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:rl(r)]=e[r];return n}const _h=e=>e?kb(e)?Lo(e):_h(e.parent):null,ro=At(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>_h(e.parent),$root:e=>_h(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>pp(e),$forceUpdate:e=>e.f||(e.f=()=>{lp(e.update)}),$nextTick:e=>e.n||(e.n=Un.bind(e.proxy)),$watch:e=>JR.bind(e)}),$f=(e,t)=>e!==Tt&&!e.__isScriptSetup&&Dt(e,t),bh={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:a,accessCache:o,type:u,appContext:d}=e;let h;if(t[0]!=="$"){const y=o[t];if(y!==void 0)switch(y){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return a[t]}else{if($f(r,t))return o[t]=1,r[t];if(s!==Tt&&Dt(s,t))return o[t]=2,s[t];if((h=e.propsOptions[0])&&Dt(h,t))return o[t]=3,a[t];if(n!==Tt&&Dt(n,t))return o[t]=4,n[t];wh&&(o[t]=0)}}const f=ro[t];let p,m;if(f)return t==="$attrs"&&er(e.attrs,"get",""),f(e);if((p=u.__cssModules)&&(p=p[t]))return p;if(n!==Tt&&Dt(n,t))return o[t]=4,n[t];if(m=d.config.globalProperties,Dt(m,t))return m[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:a}=e;return $f(s,t)?(s[t]=n,!0):r!==Tt&&Dt(r,t)?(r[t]=n,!0):Dt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:a}},o){let u;return!!n[o]||e!==Tt&&Dt(e,o)||$f(t,o)||(u=a[0])&&Dt(u,o)||Dt(r,o)||Dt(ro,o)||Dt(s.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Dt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},wR=At({},bh,{get(e,t){if(t!==Symbol.unscopables)return bh.get(e,t,e)},has(e,t){return t[0]!=="_"&&!WO(t)}});function xR(){return null}function kR(){return null}function SR(e){}function TR(e){}function AR(){return null}function CR(){}function ER(e,t){return null}function Bi(){return W_().slots}function OR(){return W_().attrs}function W_(){const e=ss();return e.setupContext||(e.setupContext=Cb(e))}function _o(e){return Ye(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function MR(e,t){const n=_o(e);for(const r in t){if(r.startsWith("__skip"))continue;let s=n[r];s?Ye(s)||st(s)?s=n[r]={type:s,default:t[r]}:s.default=t[r]:s===null&&(s=n[r]={default:t[r]}),s&&t[`__skip_${r}`]&&(s.skipFactory=!0)}return n}function RR(e,t){return!e||!t?e||t:Ye(e)&&Ye(t)?e.concat(t):At({},_o(e),_o(t))}function DR(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function PR(e){const t=ss();let n=e();return Ch(),Xh(n)&&(n=n.catch(r=>{throw _a(t),r})),[n,()=>_a(t)]}let wh=!0;function LR(e){const t=pp(e),n=e.proxy,r=e.ctx;wh=!1,t.beforeCreate&&oy(t.beforeCreate,e,"bc");const{data:s,computed:a,methods:o,watch:u,provide:d,inject:h,created:f,beforeMount:p,mounted:m,beforeUpdate:y,updated:_,activated:b,deactivated:O,beforeDestroy:H,beforeUnmount:V,destroyed:x,unmounted:C,render:F,renderTracked:U,renderTriggered:$,errorCaptured:D,serverPrefetch:T,expose:B,inheritAttrs:se,components:ee,directives:de,filters:ne}=t;if(h&&IR(h,r,null),o)for(const k in o){const J=o[k];st(J)&&(r[k]=J.bind(n))}if(s){const k=s.call(n,n);Ht(k)&&(e.data=Hr(k))}if(wh=!0,a)for(const k in a){const J=a[k],_e=st(J)?J.bind(n,n):st(J.get)?J.get.bind(n,n):zn,Me=!st(J)&&st(J.set)?J.set.bind(n):zn,Ne=pe({get:_e,set:Me});Object.defineProperty(r,k,{enumerable:!0,configurable:!0,get:()=>Ne.value,set:j=>Ne.value=j})}if(u)for(const k in u)Y_(u[k],r,n,k);if(d){const k=st(d)?d.call(n):d;Reflect.ownKeys(k).forEach(J=>{K_(J,k[J])})}f&&oy(f,e,"c");function G(k,J){Ye(J)?J.forEach(_e=>k(_e.bind(n))):J&&k(J.bind(n))}if(G(F_,p),G(It,m),G(Jc,y),G(Zc,_),G(I_,b),G(N_,O),G(U_,D),G(H_,U),G(B_,$),G(Xc,V),G(ii,C),G($_,T),Ye(B))if(B.length){const k=e.exposed||(e.exposed={});B.forEach(J=>{Object.defineProperty(k,J,{get:()=>n[J],set:_e=>n[J]=_e})})}else e.exposed||(e.exposed={});F&&e.render===zn&&(e.render=F),se!=null&&(e.inheritAttrs=se),ee&&(e.components=ee),de&&(e.directives=de),T&&cp(e)}function IR(e,t,n=zn){Ye(e)&&(e=xh(e));for(const r in e){const s=e[r];let a;Ht(s)?"default"in s?a=so(s.from||r,s.default,!0):a=so(s.from||r):a=so(s),Tn(a)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):t[r]=a}}function oy(e,t,n){rs(Ye(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Y_(e,t,n,r){let s=r.includes(".")?hb(n,r):()=>n[r];if(ct(e)){const a=t[e];st(a)&&Wt(s,a)}else if(st(e))Wt(s,e.bind(n));else if(Ht(e))if(Ye(e))e.forEach(a=>Y_(a,t,n,r));else{const a=st(e.handler)?e.handler.bind(n):t[e.handler];st(a)&&Wt(s,a,e)}}function pp(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,u=a.get(t);let d;return u?d=u:!s.length&&!n&&!r?d=t:(d={},s.length&&s.forEach(h=>cc(d,h,o,!0)),cc(d,t,o)),Ht(t)&&a.set(t,d),d}function cc(e,t,n,r=!1){const{mixins:s,extends:a}=t;a&&cc(e,a,n,!0),s&&s.forEach(o=>cc(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const u=NR[o]||n&&n[o];e[o]=u?u(e[o],t[o]):t[o]}return e}const NR={data:uy,props:cy,emits:cy,methods:Ql,computed:Ql,beforeCreate:or,created:or,beforeMount:or,mounted:or,beforeUpdate:or,updated:or,beforeDestroy:or,beforeUnmount:or,destroyed:or,unmounted:or,activated:or,deactivated:or,errorCaptured:or,serverPrefetch:or,components:Ql,directives:Ql,watch:FR,provide:uy,inject:VR};function uy(e,t){return t?e?function(){return At(st(e)?e.call(this,this):e,st(t)?t.call(this,this):t)}:t:e}function VR(e,t){return Ql(xh(e),xh(t))}function xh(e){if(Ye(e)){const t={};for(let n=0;n1)return n&&st(t)?t.call(r&&r.proxy):t}}function HR(){return!!(Pn||In||da)}const G_={},J_=()=>Object.create(G_),Z_=e=>Object.getPrototypeOf(e)===G_;function UR(e,t,n,r=!1){const s={},a=J_();e.propsDefaults=Object.create(null),X_(e,t,s,a);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:p_(s):e.type.props?e.props=s:e.props=a,e.attrs=a}function jR(e,t,n,r){const{props:s,attrs:a,vnode:{patchFlag:o}}=e,u=Mt(s),[d]=e.propsOptions;let h=!1;if((r||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let p=0;p{d=!0;const[m,y]=Q_(p,t,!0);At(o,m),y&&u.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!a&&!d)return Ht(e)&&r.set(e,tl),tl;if(Ye(a))for(let f=0;fe[0]==="_"||e==="$stable",mp=e=>Ye(e)?e.map(wr):[wr(e)],WR=(e,t,n)=>{if(t._n)return t;const r=Te((...s)=>mp(t(...s)),n);return r._c=!1,r},tb=(e,t,n)=>{const r=e._ctx;for(const s in e){if(eb(s))continue;const a=e[s];if(st(a))t[s]=WR(s,a,r);else if(a!=null){const o=mp(a);t[s]=()=>o}}},nb=(e,t)=>{const n=mp(t);e.slots.default=()=>n},rb=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},YR=(e,t,n)=>{const r=e.slots=J_();if(e.vnode.shapeFlag&32){const s=t._;s?(rb(r,t,n),n&&z0(r,"_",s,!0)):tb(t,r)}else t&&nb(e,t)},zR=(e,t,n)=>{const{vnode:r,slots:s}=e;let a=!0,o=Tt;if(r.shapeFlag&32){const u=t._;u?n&&u===1?a=!1:rb(s,t,n):(a=!t.$stable,tb(t,s)),o=t}else t&&(nb(e,t),o={default:1});if(a)for(const u in s)!eb(u)&&o[u]==null&&delete s[u]},Mn=vb;function sb(e){return ab(e)}function ib(e){return ab(e,iR)}function ab(e,t){const n=Bc();n.__VUE__=!0;const{insert:r,remove:s,patchProp:a,createElement:o,createText:u,createComment:d,setText:h,setElementText:f,parentNode:p,nextSibling:m,setScopeId:y=zn,insertStaticContent:_}=e,b=(A,I,K,Q=null,me=null,q=null,ce=void 0,ye=null,ke=!!I.dynamicChildren)=>{if(A===I)return;A&&!ds(A,I)&&(Q=z(A),j(A,me,q,!0),A=null),I.patchFlag===-2&&(ke=!1,I.dynamicChildren=null);const{type:Ae,ref:Oe,shapeFlag:He}=I;switch(Ae){case Oi:O(A,I,K,Q);break;case An:H(A,I,K,Q);break;case fa:A==null&&V(I,K,Q,ce);break;case Ve:ee(A,I,K,Q,me,q,ce,ye,ke);break;default:He&1?F(A,I,K,Q,me,q,ce,ye,ke):He&6?de(A,I,K,Q,me,q,ce,ye,ke):(He&64||He&128)&&Ae.process(A,I,K,Q,me,q,ce,ye,ke,be)}Oe!=null&&me&&yo(Oe,A&&A.ref,q,I||A,!I)},O=(A,I,K,Q)=>{if(A==null)r(I.el=u(I.children),K,Q);else{const me=I.el=A.el;I.children!==A.children&&h(me,I.children)}},H=(A,I,K,Q)=>{A==null?r(I.el=d(I.children||""),K,Q):I.el=A.el},V=(A,I,K,Q)=>{[A.el,A.anchor]=_(A.children,I,K,Q,A.el,A.anchor)},x=({el:A,anchor:I},K,Q)=>{let me;for(;A&&A!==I;)me=m(A),r(A,K,Q),A=me;r(I,K,Q)},C=({el:A,anchor:I})=>{let K;for(;A&&A!==I;)K=m(A),s(A),A=K;s(I)},F=(A,I,K,Q,me,q,ce,ye,ke)=>{I.type==="svg"?ce="svg":I.type==="math"&&(ce="mathml"),A==null?U(I,K,Q,me,q,ce,ye,ke):T(A,I,me,q,ce,ye,ke)},U=(A,I,K,Q,me,q,ce,ye)=>{let ke,Ae;const{props:Oe,shapeFlag:He,transition:Ue,dirs:We}=A;if(ke=A.el=o(A.type,q,Oe&&Oe.is,Oe),He&8?f(ke,A.children):He&16&&D(A.children,ke,null,Q,me,Bf(A,q),ce,ye),We&&Es(A,null,Q,"created"),$(ke,A,A.scopeId,ce,Q),Oe){for(const ot in Oe)ot!=="value"&&!Ai(ot)&&a(ke,ot,null,Oe[ot],q,Q);"value"in Oe&&a(ke,"value",null,Oe.value,q),(Ae=Oe.onVnodeBeforeMount)&&br(Ae,Q,A)}We&&Es(A,null,Q,"beforeMount");const Ge=lb(me,Ue);Ge&&Ue.beforeEnter(ke),r(ke,I,K),((Ae=Oe&&Oe.onVnodeMounted)||Ge||We)&&Mn(()=>{Ae&&br(Ae,Q,A),Ge&&Ue.enter(ke),We&&Es(A,null,Q,"mounted")},me)},$=(A,I,K,Q,me)=>{if(K&&y(A,K),Q)for(let q=0;q{for(let Ae=ke;Ae{const ye=I.el=A.el;let{patchFlag:ke,dynamicChildren:Ae,dirs:Oe}=I;ke|=A.patchFlag&16;const He=A.props||Tt,Ue=I.props||Tt;let We;if(K&&ea(K,!1),(We=Ue.onVnodeBeforeUpdate)&&br(We,K,I,A),Oe&&Es(I,A,K,"beforeUpdate"),K&&ea(K,!0),(He.innerHTML&&Ue.innerHTML==null||He.textContent&&Ue.textContent==null)&&f(ye,""),Ae?B(A.dynamicChildren,Ae,ye,K,Q,Bf(I,me),q):ce||J(A,I,ye,null,K,Q,Bf(I,me),q,!1),ke>0){if(ke&16)se(ye,He,Ue,K,me);else if(ke&2&&He.class!==Ue.class&&a(ye,"class",null,Ue.class,me),ke&4&&a(ye,"style",He.style,Ue.style,me),ke&8){const Ge=I.dynamicProps;for(let ot=0;ot{We&&br(We,K,I,A),Oe&&Es(I,A,K,"updated")},Q)},B=(A,I,K,Q,me,q,ce)=>{for(let ye=0;ye{if(I!==K){if(I!==Tt)for(const q in I)!Ai(q)&&!(q in K)&&a(A,q,I[q],null,me,Q);for(const q in K){if(Ai(q))continue;const ce=K[q],ye=I[q];ce!==ye&&q!=="value"&&a(A,q,ye,ce,me,Q)}"value"in K&&a(A,"value",I.value,K.value,me)}},ee=(A,I,K,Q,me,q,ce,ye,ke)=>{const Ae=I.el=A?A.el:u(""),Oe=I.anchor=A?A.anchor:u("");let{patchFlag:He,dynamicChildren:Ue,slotScopeIds:We}=I;We&&(ye=ye?ye.concat(We):We),A==null?(r(Ae,K,Q),r(Oe,K,Q),D(I.children||[],K,Oe,me,q,ce,ye,ke)):He>0&&He&64&&Ue&&A.dynamicChildren?(B(A.dynamicChildren,Ue,K,me,q,ce,ye),(I.key!=null||me&&I===me.subTree)&&gp(A,I,!0)):J(A,I,K,Oe,me,q,ce,ye,ke)},de=(A,I,K,Q,me,q,ce,ye,ke)=>{I.slotScopeIds=ye,A==null?I.shapeFlag&512?me.ctx.activate(I,K,Q,ce,ke):ne(I,K,Q,me,q,ce,ke):N(A,I,ke)},ne=(A,I,K,Q,me,q,ce)=>{const ye=A.component=xb(A,Q,me);if(Do(A)&&(ye.ctx.renderer=be),Sb(ye,!1,ce),ye.asyncDep){if(me&&me.registerDep(ye,G,ce),!A.el){const ke=ye.subTree=he(An);H(null,ke,I,K)}}else G(ye,A,I,K,me,q,ce)},N=(A,I,K)=>{const Q=I.component=A.component;if(n3(A,I,K))if(Q.asyncDep&&!Q.asyncResolved){k(Q,I,K);return}else Q.next=I,Q.update();else I.el=A.el,Q.vnode=I},G=(A,I,K,Q,me,q,ce)=>{const ye=()=>{if(A.isMounted){let{next:He,bu:Ue,u:We,parent:Ge,vnode:ot}=A;{const hn=ob(A);if(hn){He&&(He.el=ot.el,k(A,He,ce)),hn.asyncDep.then(()=>{A.isUnmounted||ye()});return}}let _t=He,an;ea(A,!1),He?(He.el=ot.el,k(A,He,ce)):He=ot,Ue&&sl(Ue),(an=He.props&&He.props.onVnodeBeforeUpdate)&&br(an,Ge,He,ot),ea(A,!0);const Zt=Gu(A),Cn=A.subTree;A.subTree=Zt,b(Cn,Zt,p(Cn.el),z(Cn),A,me,q),He.el=Zt.el,_t===null&&ed(A,Zt.el),We&&Mn(We,me),(an=He.props&&He.props.onVnodeUpdated)&&Mn(()=>br(an,Ge,He,ot),me)}else{let He;const{el:Ue,props:We}=I,{bm:Ge,m:ot,parent:_t,root:an,type:Zt}=A,Cn=Ei(I);if(ea(A,!1),Ge&&sl(Ge),!Cn&&(He=We&&We.onVnodeBeforeMount)&&br(He,_t,I),ea(A,!0),Ue&&W){const hn=()=>{A.subTree=Gu(A),W(Ue,A.subTree,A,me,null)};Cn&&Zt.__asyncHydrate?Zt.__asyncHydrate(Ue,A,hn):hn()}else{an.ce&&an.ce._injectChildStyle(Zt);const hn=A.subTree=Gu(A);b(null,hn,K,Q,A,me,q),I.el=hn.el}if(ot&&Mn(ot,me),!Cn&&(He=We&&We.onVnodeMounted)){const hn=I;Mn(()=>br(He,_t,hn),me)}(I.shapeFlag&256||_t&&Ei(_t.vnode)&&_t.vnode.shapeFlag&256)&&A.a&&Mn(A.a,me),A.isMounted=!0,I=K=Q=null}};A.scope.on();const ke=A.effect=new fo(ye);A.scope.off();const Ae=A.update=ke.run.bind(ke),Oe=A.job=ke.runIfDirty.bind(ke);Oe.i=A,Oe.id=A.uid,ke.scheduler=()=>lp(Oe),ea(A,!0),Ae()},k=(A,I,K)=>{I.component=A;const Q=A.vnode.props;A.vnode=I,A.next=null,jR(A,I.props,Q,K),zR(A,I.children,K),Fi(),ey(A),$i()},J=(A,I,K,Q,me,q,ce,ye,ke=!1)=>{const Ae=A&&A.children,Oe=A?A.shapeFlag:0,He=I.children,{patchFlag:Ue,shapeFlag:We}=I;if(Ue>0){if(Ue&128){Me(Ae,He,K,Q,me,q,ce,ye,ke);return}else if(Ue&256){_e(Ae,He,K,Q,me,q,ce,ye,ke);return}}We&8?(Oe&16&&ge(Ae,me,q),He!==Ae&&f(K,He)):Oe&16?We&16?Me(Ae,He,K,Q,me,q,ce,ye,ke):ge(Ae,me,q,!0):(Oe&8&&f(K,""),We&16&&D(He,K,Q,me,q,ce,ye,ke))},_e=(A,I,K,Q,me,q,ce,ye,ke)=>{A=A||tl,I=I||tl;const Ae=A.length,Oe=I.length,He=Math.min(Ae,Oe);let Ue;for(Ue=0;UeOe?ge(A,me,q,!0,!1,He):D(I,K,Q,me,q,ce,ye,ke,He)},Me=(A,I,K,Q,me,q,ce,ye,ke)=>{let Ae=0;const Oe=I.length;let He=A.length-1,Ue=Oe-1;for(;Ae<=He&&Ae<=Ue;){const We=A[Ae],Ge=I[Ae]=ke?ki(I[Ae]):wr(I[Ae]);if(ds(We,Ge))b(We,Ge,K,null,me,q,ce,ye,ke);else break;Ae++}for(;Ae<=He&&Ae<=Ue;){const We=A[He],Ge=I[Ue]=ke?ki(I[Ue]):wr(I[Ue]);if(ds(We,Ge))b(We,Ge,K,null,me,q,ce,ye,ke);else break;He--,Ue--}if(Ae>He){if(Ae<=Ue){const We=Ue+1,Ge=WeUe)for(;Ae<=He;)j(A[Ae],me,q,!0),Ae++;else{const We=Ae,Ge=Ae,ot=new Map;for(Ae=Ge;Ae<=Ue;Ae++){const pn=I[Ae]=ke?ki(I[Ae]):wr(I[Ae]);pn.key!=null&&ot.set(pn.key,Ae)}let _t,an=0;const Zt=Ue-Ge+1;let Cn=!1,hn=0;const Er=new Array(Zt);for(Ae=0;Ae=Zt){j(pn,me,q,!0);continue}let ue;if(pn.key!=null)ue=ot.get(pn.key);else for(_t=Ge;_t<=Ue;_t++)if(Er[_t-Ge]===0&&ds(pn,I[_t])){ue=_t;break}ue===void 0?j(pn,me,q,!0):(Er[ue-Ge]=Ae+1,ue>=hn?hn=ue:Cn=!0,b(pn,I[ue],K,null,me,q,ce,ye,ke),an++)}const ws=Cn?KR(Er):tl;for(_t=ws.length-1,Ae=Zt-1;Ae>=0;Ae--){const pn=Ge+Ae,ue=I[pn],Fe=pn+1{const{el:q,type:ce,transition:ye,children:ke,shapeFlag:Ae}=A;if(Ae&6){Ne(A.component.subTree,I,K,Q);return}if(Ae&128){A.suspense.move(I,K,Q);return}if(Ae&64){ce.move(A,I,K,be);return}if(ce===Ve){r(q,I,K);for(let He=0;Heye.enter(q),me);else{const{leave:He,delayLeave:Ue,afterLeave:We}=ye,Ge=()=>r(q,I,K),ot=()=>{He(q,()=>{Ge(),We&&We()})};Ue?Ue(q,Ge,ot):ot()}else r(q,I,K)},j=(A,I,K,Q=!1,me=!1)=>{const{type:q,props:ce,ref:ye,children:ke,dynamicChildren:Ae,shapeFlag:Oe,patchFlag:He,dirs:Ue,cacheIndex:We}=A;if(He===-2&&(me=!1),ye!=null&&yo(ye,null,K,A,!0),We!=null&&(I.renderCache[We]=void 0),Oe&256){I.ctx.deactivate(A);return}const Ge=Oe&1&&Ue,ot=!Ei(A);let _t;if(ot&&(_t=ce&&ce.onVnodeBeforeUnmount)&&br(_t,I,A),Oe&6)ie(A.component,K,Q);else{if(Oe&128){A.suspense.unmount(K,Q);return}Ge&&Es(A,null,I,"beforeUnmount"),Oe&64?A.type.remove(A,I,K,be,Q):Ae&&!Ae.hasOnce&&(q!==Ve||He>0&&He&64)?ge(Ae,I,K,!1,!0):(q===Ve&&He&384||!me&&Oe&16)&&ge(ke,I,K),Q&&te(A)}(ot&&(_t=ce&&ce.onVnodeUnmounted)||Ge)&&Mn(()=>{_t&&br(_t,I,A),Ge&&Es(A,null,I,"unmounted")},K)},te=A=>{const{type:I,el:K,anchor:Q,transition:me}=A;if(I===Ve){M(K,Q);return}if(I===fa){C(A);return}const q=()=>{s(K),me&&!me.persisted&&me.afterLeave&&me.afterLeave()};if(A.shapeFlag&1&&me&&!me.persisted){const{leave:ce,delayLeave:ye}=me,ke=()=>ce(K,q);ye?ye(A.el,q,ke):ke()}else q()},M=(A,I)=>{let K;for(;A!==I;)K=m(A),s(A),A=K;s(I)},ie=(A,I,K)=>{const{bum:Q,scope:me,job:q,subTree:ce,um:ye,m:ke,a:Ae}=A;dc(ke),dc(Ae),Q&&sl(Q),me.stop(),q&&(q.flags|=8,j(ce,A,I,K)),ye&&Mn(ye,I),Mn(()=>{A.isUnmounted=!0},I),I&&I.pendingBranch&&!I.isUnmounted&&A.asyncDep&&!A.asyncResolved&&A.suspenseId===I.pendingId&&(I.deps--,I.deps===0&&I.resolve())},ge=(A,I,K,Q=!1,me=!1,q=0)=>{for(let ce=q;ce{if(A.shapeFlag&6)return z(A.component.subTree);if(A.shapeFlag&128)return A.suspense.next();const I=m(A.anchor||A.el),K=I&&I[A_];return K?m(K):I};let Le=!1;const Xe=(A,I,K)=>{A==null?I._vnode&&j(I._vnode,null,null,!0):b(I._vnode||null,A,I,null,null,null,K),I._vnode=A,Le||(Le=!0,ey(),uc(),Le=!1)},be={p:b,um:j,m:Ne,r:te,mt:ne,mc:D,pc:J,pbc:B,n:z,o:e};let et,W;return t&&([et,W]=t(be)),{render:Xe,hydrate:et,createApp:BR(Xe,et)}}function Bf({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ea({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function lb(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function gp(e,t,n=!1){const r=e.children,s=t.children;if(Ye(r)&&Ye(s))for(let a=0;a>1,e[n[u]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function ob(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ob(t)}function dc(e){if(e)for(let t=0;tso(ub);function db(e,t){return Po(e,null,t)}function GR(e,t){return Po(e,null,{flush:"post"})}function fb(e,t){return Po(e,null,{flush:"sync"})}function Wt(e,t,n){return Po(e,t,n)}function Po(e,t,n=Tt){const{immediate:r,deep:s,flush:a,once:o}=n,u=At({},n),d=t&&r||!t&&a!=="post";let h;if(ul){if(a==="sync"){const y=cb();h=y.__watcherHandles||(y.__watcherHandles=[])}else if(!d){const y=()=>{};return y.stop=zn,y.resume=zn,y.pause=zn,y}}const f=Pn;u.call=(y,_,b)=>rs(y,f,_,b);let p=!1;a==="post"?u.scheduler=y=>{Mn(y,f&&f.suspense)}:a!=="sync"&&(p=!0,u.scheduler=(y,_)=>{_?y():lp(y)}),u.augmentJob=y=>{t&&(y.flags|=4),p&&(y.flags|=2,f&&(y.id=f.uid,y.i=f))};const m=UM(e,t,u);return ul&&(h?h.push(m):d&&m()),m}function JR(e,t,n){const r=this.proxy,s=ct(e)?e.includes(".")?hb(r,e):()=>r[e]:e.bind(r,r);let a;st(t)?a=t:(a=t.handler,n=t);const o=_a(this),u=Po(s,a.bind(r),n);return o(),u}function hb(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s{let f,p=Tt,m;return fb(()=>{const y=e[s];dr(f,y)&&(f=y,h())}),{get(){return d(),n.get?n.get(f):f},set(y){const _=n.set?n.set(y):y;if(!dr(_,f)&&!(p!==Tt&&dr(y,p)))return;const b=r.vnode.props;b&&(t in b||s in b||a in b)&&(`onUpdate:${t}`in b||`onUpdate:${s}`in b||`onUpdate:${a}`in b)||(f=y,h()),r.emit(`update:${t}`,_),dr(y,_)&&dr(y,p)&&!dr(_,m)&&h(),p=y,m=_}}});return u[Symbol.iterator]=()=>{let d=0;return{next(){return d<2?{value:d++?o||Tt:u,done:!1}:{done:!0}}}},u}const pb=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Jt(t)}Modifiers`]||e[`${xr(t)}Modifiers`];function XR(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Tt;let s=n;const a=t.startsWith("update:"),o=a&&pb(r,t.slice(7));o&&(o.trim&&(s=n.map(f=>ct(f)?f.trim():f)),o.number&&(s=n.map(sc)));let u,d=r[u=rl(t)]||r[u=rl(Jt(t))];!d&&a&&(d=r[u=rl(xr(t))]),d&&rs(d,e,6,s);const h=r[u+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[u])return;e.emitted[u]=!0,rs(h,e,6,s)}}function mb(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const a=e.emits;let o={},u=!1;if(!st(e)){const d=h=>{const f=mb(h,t,!0);f&&(u=!0,At(o,f))};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}return!a&&!u?(Ht(e)&&r.set(e,null),null):(Ye(a)?a.forEach(d=>o[d]=null):At(o,a),Ht(e)&&r.set(e,o),o)}function Qc(e,t){return!e||!wa(t)?!1:(t=t.slice(2).replace(/Once$/,""),Dt(e,t[0].toLowerCase()+t.slice(1))||Dt(e,xr(t))||Dt(e,t))}function Gu(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[a],slots:o,attrs:u,emit:d,render:h,renderCache:f,props:p,data:m,setupState:y,ctx:_,inheritAttrs:b}=e,O=vo(e);let H,V;try{if(n.shapeFlag&4){const C=s||r,F=C;H=wr(h.call(F,C,f,p,y,m,_)),V=u}else{const C=t;H=wr(C.length>1?C(p,{attrs:u,slots:o,emit:d}):C(p,null)),V=t.props?u:e3(u)}}catch(C){io.length=0,Sa(C,e,1),H=he(An)}let x=H;if(V&&b!==!1){const C=Object.keys(V),{shapeFlag:F}=x;C.length&&F&7&&(a&&C.some(Jh)&&(V=t3(V,a)),x=Ps(x,V,!1,!0))}return n.dirs&&(x=Ps(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&ti(x,n.transition),H=x,vo(O),H}function QR(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||wa(n))&&((t||(t={}))[n]=e[n]);return t},t3=(e,t)=>{const n={};for(const r in e)(!Jh(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function n3(e,t,n){const{props:r,children:s,component:a}=e,{props:o,children:u,patchFlag:d}=t,h=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&d>=0){if(d&1024)return!0;if(d&16)return r?fy(r,o,h):!!o;if(d&8){const f=t.dynamicProps;for(let p=0;pe.__isSuspense;let Sh=0;const r3={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,a,o,u,d,h){if(e==null)i3(t,n,r,s,a,o,u,d,h);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}a3(e,t,n,r,s,o,u,d,h)}},hydrate:l3,normalize:o3},s3=r3;function bo(e,t){const n=e.props&&e.props[t];st(n)&&n()}function i3(e,t,n,r,s,a,o,u,d){const{p:h,o:{createElement:f}}=d,p=f("div"),m=e.suspense=gb(e,s,r,t,p,n,a,o,u,d);h(null,m.pendingBranch=e.ssContent,p,null,r,m,a,o),m.deps>0?(bo(e,"onPending"),bo(e,"onFallback"),h(null,e.ssFallback,t,n,r,null,a,o),al(m,e.ssFallback)):m.resolve(!1,!0)}function a3(e,t,n,r,s,a,o,u,{p:d,um:h,o:{createElement:f}}){const p=t.suspense=e.suspense;p.vnode=t,t.el=e.el;const m=t.ssContent,y=t.ssFallback,{activeBranch:_,pendingBranch:b,isInFallback:O,isHydrating:H}=p;if(b)p.pendingBranch=m,ds(m,b)?(d(b,m,p.hiddenContainer,null,s,p,a,o,u),p.deps<=0?p.resolve():O&&(H||(d(_,y,n,r,s,null,a,o,u),al(p,y)))):(p.pendingId=Sh++,H?(p.isHydrating=!1,p.activeBranch=b):h(b,s,p),p.deps=0,p.effects.length=0,p.hiddenContainer=f("div"),O?(d(null,m,p.hiddenContainer,null,s,p,a,o,u),p.deps<=0?p.resolve():(d(_,y,n,r,s,null,a,o,u),al(p,y))):_&&ds(m,_)?(d(_,m,n,r,s,p,a,o,u),p.resolve(!0)):(d(null,m,p.hiddenContainer,null,s,p,a,o,u),p.deps<=0&&p.resolve()));else if(_&&ds(m,_))d(_,m,n,r,s,p,a,o,u),al(p,m);else if(bo(t,"onPending"),p.pendingBranch=m,m.shapeFlag&512?p.pendingId=m.component.suspenseId:p.pendingId=Sh++,d(null,m,p.hiddenContainer,null,s,p,a,o,u),p.deps<=0)p.resolve();else{const{timeout:V,pendingId:x}=p;V>0?setTimeout(()=>{p.pendingId===x&&p.fallback(y)},V):V===0&&p.fallback(y)}}function gb(e,t,n,r,s,a,o,u,d,h,f=!1){const{p,m,um:y,n:_,o:{parentNode:b,remove:O}}=h;let H;const V=u3(e);V&&t&&t.pendingBranch&&(H=t.pendingId,t.deps++);const x=e.props?ic(e.props.timeout):void 0,C=a,F={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:s,deps:0,pendingId:Sh++,timeout:typeof x=="number"?x:-1,activeBranch:null,pendingBranch:null,isInFallback:!f,isHydrating:f,isUnmounted:!1,effects:[],resolve(U=!1,$=!1){const{vnode:D,activeBranch:T,pendingBranch:B,pendingId:se,effects:ee,parentComponent:de,container:ne}=F;let N=!1;F.isHydrating?F.isHydrating=!1:U||(N=T&&B.transition&&B.transition.mode==="out-in",N&&(T.transition.afterLeave=()=>{se===F.pendingId&&(m(B,ne,a===C?_(T):a,0),mo(ee))}),T&&(b(T.el)===ne&&(a=_(T)),y(T,de,F,!0)),N||m(B,ne,a,0)),al(F,B),F.pendingBranch=null,F.isInFallback=!1;let G=F.parent,k=!1;for(;G;){if(G.pendingBranch){G.effects.push(...ee),k=!0;break}G=G.parent}!k&&!N&&mo(ee),F.effects=[],V&&t&&t.pendingBranch&&H===t.pendingId&&(t.deps--,t.deps===0&&!$&&t.resolve()),bo(D,"onResolve")},fallback(U){if(!F.pendingBranch)return;const{vnode:$,activeBranch:D,parentComponent:T,container:B,namespace:se}=F;bo($,"onFallback");const ee=_(D),de=()=>{F.isInFallback&&(p(null,U,B,ee,T,null,se,u,d),al(F,U))},ne=U.transition&&U.transition.mode==="out-in";ne&&(D.transition.afterLeave=de),F.isInFallback=!0,y(D,T,null,!0),ne||de()},move(U,$,D){F.activeBranch&&m(F.activeBranch,U,$,D),F.container=U},next(){return F.activeBranch&&_(F.activeBranch)},registerDep(U,$,D){const T=!!F.pendingBranch;T&&F.deps++;const B=U.vnode.el;U.asyncDep.catch(se=>{Sa(se,U,0)}).then(se=>{if(U.isUnmounted||F.isUnmounted||F.pendingId!==U.suspenseId)return;U.asyncResolved=!0;const{vnode:ee}=U;Eh(U,se,!1),B&&(ee.el=B);const de=!B&&U.subTree.el;$(U,ee,b(B||U.subTree.el),B?null:_(U.subTree),F,o,D),de&&O(de),ed(U,ee.el),T&&--F.deps===0&&F.resolve()})},unmount(U,$){F.isUnmounted=!0,F.activeBranch&&y(F.activeBranch,n,U,$),F.pendingBranch&&y(F.pendingBranch,n,U,$)}};return F}function l3(e,t,n,r,s,a,o,u,d){const h=t.suspense=gb(t,r,n,e.parentNode,document.createElement("div"),null,s,a,o,u,!0),f=d(e,h.pendingBranch=t.ssContent,n,h,a,o);return h.deps===0&&h.resolve(!1,!0),f}function o3(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=hy(r?n.default:n),e.ssFallback=r?hy(n.fallback):he(An)}function hy(e){let t;if(st(e)){const n=ya&&e._c;n&&(e._d=!1,S()),e=e(),n&&(e._d=!0,t=rr,yb())}return Ye(e)&&(e=QR(e)),e=wr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function vb(e,t){t&&t.pendingBranch?Ye(e)?t.effects.push(...e):t.effects.push(e):mo(e)}function al(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;n.el=s,r&&r.subTree===n&&(r.vnode.el=s,ed(r,s))}function u3(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ve=Symbol.for("v-fgt"),Oi=Symbol.for("v-txt"),An=Symbol.for("v-cmt"),fa=Symbol.for("v-stc"),io=[];let rr=null;function S(e=!1){io.push(rr=e?null:[])}function yb(){io.pop(),rr=io[io.length-1]||null}let ya=1;function Th(e,t=!1){ya+=e,e<0&&rr&&t&&(rr.hasOnce=!0)}function _b(e){return e.dynamicChildren=ya>0?rr||tl:null,yb(),ya>0&&rr&&rr.push(e),e}function P(e,t,n,r,s,a){return _b(v(e,t,n,r,s,a,!0))}function it(e,t,n,r,s){return _b(he(e,t,n,r,s,!0))}function ni(e){return e?e.__v_isVNode===!0:!1}function ds(e,t){return e.type===t.type&&e.key===t.key}function c3(e){}const bb=({key:e})=>e??null,Ju=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ct(e)||Tn(e)||st(e)?{i:In,r:e,k:t,f:!!n}:e:null);function v(e,t=null,n=null,r=0,s=null,a=e===Ve?0:1,o=!1,u=!1){const d={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&bb(t),ref:t&&Ju(t),scopeId:zc,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:In};return u?(vp(d,n),a&128&&e.normalize(d)):n&&(d.shapeFlag|=ct(n)?8:16),ya>0&&!o&&rr&&(d.patchFlag>0||a&6)&&d.patchFlag!==32&&rr.push(d),d}const he=d3;function d3(e,t=null,n=null,r=0,s=null,a=!1){if((!e||e===j_)&&(e=An),ni(e)){const u=Ps(e,t,!0);return n&&vp(u,n),ya>0&&!a&&rr&&(u.shapeFlag&6?rr[rr.indexOf(e)]=u:rr.push(u)),u.patchFlag=-2,u}if(v3(e)&&(e=e.__vccOpts),t){t=Yn(t);let{class:u,style:d}=t;u&&!ct(u)&&(t.class=Be(u)),Ht(d)&&(Yc(d)&&!Ye(d)&&(d=At({},d)),t.style=bn(d))}const o=ct(e)?1:fc(e)?128:C_(e)?64:Ht(e)?4:st(e)?2:0;return v(e,t,n,r,s,o,a,!0)}function Yn(e){return e?Yc(e)||Z_(e)?At({},e):e:null}function Ps(e,t,n=!1,r=!1){const{props:s,ref:a,patchFlag:o,children:u,transition:d}=e,h=t?cn(s||{},t):s,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&bb(h),ref:t&&t.ref?n&&a?Ye(a)?a.concat(Ju(t)):[a,Ju(t)]:Ju(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:u,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ve?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:d,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ps(e.ssContent),ssFallback:e.ssFallback&&Ps(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return d&&r&&ti(f,d.clone(f)),f}function ht(e=" ",t=0){return he(Oi,null,e,t)}function wb(e,t){const n=he(fa,null,e);return n.staticCount=t,n}function ae(e="",t=!1){return t?(S(),it(An,null,e)):he(An,null,e)}function wr(e){return e==null||typeof e=="boolean"?he(An):Ye(e)?he(Ve,null,e.slice()):ni(e)?ki(e):he(Oi,null,String(e))}function ki(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ps(e)}function vp(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Ye(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),vp(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Z_(t)?t._ctx=In:s===3&&In&&(In.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else st(t)?(t={default:t,_ctx:In},n=32):(t=String(t),r&64?(n=16,t=[ht(t)]):n=8);e.children=t,e.shapeFlag|=n}function cn(...e){const t={};for(let n=0;nPn||In;let hc,Ah;{const e=Bc(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),a=>{s.length>1?s.forEach(o=>o(a)):s[0](a)}};hc=t("__VUE_INSTANCE_SETTERS__",n=>Pn=n),Ah=t("__VUE_SSR_SETTERS__",n=>ul=n)}const _a=e=>{const t=Pn;return hc(e),e.scope.on(),()=>{e.scope.off(),hc(t)}},Ch=()=>{Pn&&Pn.scope.off(),hc(null)};function kb(e){return e.vnode.shapeFlag&4}let ul=!1;function Sb(e,t=!1,n=!1){t&&Ah(t);const{props:r,children:s}=e.vnode,a=kb(e);UR(e,r,a,t),YR(e,s,n);const o=a?p3(e,t):void 0;return t&&Ah(!1),o}function p3(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,bh);const{setup:r}=n;if(r){Fi();const s=e.setupContext=r.length>1?Cb(e):null,a=_a(e),o=Tl(r,e,0,[e.props,s]),u=Xh(o);if($i(),a(),(u||e.sp)&&!Ei(e)&&cp(e),u){if(o.then(Ch,Ch),t)return o.then(d=>{Eh(e,d,t)}).catch(d=>{Sa(d,e,0)});e.asyncDep=o}else Eh(e,o,t)}else Ab(e,t)}function Eh(e,t,n){st(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ht(t)&&(e.setupState=ap(t)),Ab(e,n)}let pc,Oh;function Tb(e){pc=e,Oh=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,wR))}}const m3=()=>!pc;function Ab(e,t,n){const r=e.type;if(!e.render){if(!t&&pc&&!r.render){const s=r.template||pp(e).template;if(s){const{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:u,compilerOptions:d}=r,h=At(At({isCustomElement:a,delimiters:u},o),d);r.render=pc(s,h)}}e.render=r.render||zn,Oh&&Oh(e)}{const s=_a(e);Fi();try{LR(e)}finally{$i(),s()}}}const g3={get(e,t){return er(e,"get",""),e[t]}};function Cb(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,g3),slots:e.slots,emit:e.emit,expose:t}}function Lo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ap(m_(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ro)return ro[n](e)},has(t,n){return n in t||n in ro}})):e.proxy}function Mh(e,t=!0){return st(e)?e.displayName||e.name:e.name||t&&e.__name}function v3(e){return st(e)&&"__vccOpts"in e}const pe=(e,t)=>FM(e,t,ul);function yp(e,t,n){const r=arguments.length;return r===2?Ht(t)&&!Ye(t)?ni(t)?he(e,null,[t]):he(e,t):he(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ni(n)&&(n=[n]),he(e,t,n))}function y3(){}function _3(e,t,n,r){const s=n[r];if(s&&Eb(s,e))return s;const a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function Eb(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&rr&&rr.push(e),!0}const Ob="3.5.13",b3=zn,w3=zM,x3=Ja,k3=T_,S3={createComponentInstance:xb,setupComponent:Sb,renderComponentRoot:Gu,setCurrentRenderingInstance:vo,isVNode:ni,normalizeVNode:wr,getComponentPublicInstance:Lo,ensureValidVNode:hp,pushWarningContext:jM,popWarningContext:qM},T3=S3,A3=null,C3=null,E3=null;/** -* @vue/runtime-dom v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Rh;const py=typeof window<"u"&&window.trustedTypes;if(py)try{Rh=py.createPolicy("vue",{createHTML:e=>e})}catch{}const Mb=Rh?e=>Rh.createHTML(e):e=>e,O3="http://www.w3.org/2000/svg",M3="http://www.w3.org/1998/Math/MathML",zs=typeof document<"u"?document:null,my=zs&&zs.createElement("template"),R3={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?zs.createElementNS(O3,e):t==="mathml"?zs.createElementNS(M3,e):n?zs.createElement(e,{is:n}):zs.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>zs.createTextNode(e),createComment:e=>zs.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>zs.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,a){const o=n?n.previousSibling:t.lastChild;if(s&&(s===a||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===a||!(s=s.nextSibling)););else{my.innerHTML=Mb(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const u=my.content;if(r==="svg"||r==="mathml"){const d=u.firstChild;for(;d.firstChild;)u.appendChild(d.firstChild);u.removeChild(d)}t.insertBefore(u,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},mi="transition",Yl="animation",cl=Symbol("_vtc"),Rb={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Db=At({},up,Rb),D3=e=>(e.displayName="Transition",e.props=Db,e),vs=D3((e,{slots:t})=>yp(P_,Pb(e),t)),ta=(e,t=[])=>{Ye(e)?e.forEach(n=>n(...t)):e&&e(...t)},gy=e=>e?Ye(e)?e.some(t=>t.length>1):e.length>1:!1;function Pb(e){const t={};for(const ee in e)ee in Rb||(t[ee]=e[ee]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:u=`${n}-enter-to`,appearFromClass:d=a,appearActiveClass:h=o,appearToClass:f=u,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,_=P3(s),b=_&&_[0],O=_&&_[1],{onBeforeEnter:H,onEnter:V,onEnterCancelled:x,onLeave:C,onLeaveCancelled:F,onBeforeAppear:U=H,onAppear:$=V,onAppearCancelled:D=x}=t,T=(ee,de,ne,N)=>{ee._enterCancelled=N,_i(ee,de?f:u),_i(ee,de?h:o),ne&&ne()},B=(ee,de)=>{ee._isLeaving=!1,_i(ee,p),_i(ee,y),_i(ee,m),de&&de()},se=ee=>(de,ne)=>{const N=ee?$:V,G=()=>T(de,ee,ne);ta(N,[de,G]),vy(()=>{_i(de,ee?d:a),As(de,ee?f:u),gy(N)||yy(de,r,b,G)})};return At(t,{onBeforeEnter(ee){ta(H,[ee]),As(ee,a),As(ee,o)},onBeforeAppear(ee){ta(U,[ee]),As(ee,d),As(ee,h)},onEnter:se(!1),onAppear:se(!0),onLeave(ee,de){ee._isLeaving=!0;const ne=()=>B(ee,de);As(ee,p),ee._enterCancelled?(As(ee,m),Dh()):(Dh(),As(ee,m)),vy(()=>{ee._isLeaving&&(_i(ee,p),As(ee,y),gy(C)||yy(ee,r,O,ne))}),ta(C,[ee,ne])},onEnterCancelled(ee){T(ee,!1,void 0,!0),ta(x,[ee])},onAppearCancelled(ee){T(ee,!0,void 0,!0),ta(D,[ee])},onLeaveCancelled(ee){B(ee),ta(F,[ee])}})}function P3(e){if(e==null)return null;if(Ht(e))return[Hf(e.enter),Hf(e.leave)];{const t=Hf(e);return[t,t]}}function Hf(e){return ic(e)}function As(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[cl]||(e[cl]=new Set)).add(t)}function _i(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[cl];n&&(n.delete(t),n.size||(e[cl]=void 0))}function vy(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let L3=0;function yy(e,t,n,r){const s=e._endId=++L3,a=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(a,n);const{type:o,timeout:u,propCount:d}=Lb(e,t);if(!o)return r();const h=o+"end";let f=0;const p=()=>{e.removeEventListener(h,m),a()},m=y=>{y.target===e&&++f>=d&&p()};setTimeout(()=>{f(n[_]||"").split(", "),s=r(`${mi}Delay`),a=r(`${mi}Duration`),o=_y(s,a),u=r(`${Yl}Delay`),d=r(`${Yl}Duration`),h=_y(u,d);let f=null,p=0,m=0;t===mi?o>0&&(f=mi,p=o,m=a.length):t===Yl?h>0&&(f=Yl,p=h,m=d.length):(p=Math.max(o,h),f=p>0?o>h?mi:Yl:null,m=f?f===mi?a.length:d.length:0);const y=f===mi&&/\b(transform|all)(,|$)/.test(r(`${mi}Property`).toString());return{type:f,timeout:p,propCount:m,hasTransform:y}}function _y(e,t){for(;e.lengthby(n)+by(e[r])))}function by(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Dh(){return document.body.offsetHeight}function I3(e,t,n){const r=e[cl];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const mc=Symbol("_vod"),Ib=Symbol("_vsh"),Vr={beforeMount(e,{value:t},{transition:n}){e[mc]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):zl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),zl(e,!0),r.enter(e)):r.leave(e,()=>{zl(e,!1)}):zl(e,t))},beforeUnmount(e,{value:t}){zl(e,t)}};function zl(e,t){e.style.display=t?e[mc]:"none",e[Ib]=!t}function N3(){Vr.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Nb=Symbol("");function V3(e){const t=ss();if(!t)return;const n=t.ut=(s=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(a=>gc(a,s))},r=()=>{const s=e(t.proxy);t.ce?gc(t.ce,s):Ph(t.subTree,s),n(s)};Jc(()=>{mo(r)}),It(()=>{Wt(r,zn,{flush:"post"});const s=new MutationObserver(r);s.observe(t.subTree.el.parentNode,{childList:!0}),ii(()=>s.disconnect())})}function Ph(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Ph(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)gc(e.el,t);else if(e.type===Ve)e.children.forEach(n=>Ph(n,t));else if(e.type===fa){let{el:n,anchor:r}=e;for(;n&&(gc(n,t),n!==r);)n=n.nextSibling}}function gc(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const s in t)n.setProperty(`--${s}`,t[s]),r+=`--${s}: ${t[s]};`;n[Nb]=r}}const F3=/(^|;)\s*display\s*:/;function $3(e,t,n){const r=e.style,s=ct(n);let a=!1;if(n&&!s){if(t)if(ct(t))for(const o of t.split(";")){const u=o.slice(0,o.indexOf(":")).trim();n[u]==null&&Zu(r,u,"")}else for(const o in t)n[o]==null&&Zu(r,o,"");for(const o in n)o==="display"&&(a=!0),Zu(r,o,n[o])}else if(s){if(t!==n){const o=r[Nb];o&&(n+=";"+o),r.cssText=n,a=F3.test(n)}}else t&&e.removeAttribute("style");mc in e&&(e[mc]=a?r.display:"",e[Ib]&&(r.display="none"))}const wy=/\s*!important$/;function Zu(e,t,n){if(Ye(n))n.forEach(r=>Zu(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=B3(e,t);wy.test(n)?e.setProperty(xr(r),n.replace(wy,""),"important"):e[r]=n}}const xy=["Webkit","Moz","ms"],Uf={};function B3(e,t){const n=Uf[t];if(n)return n;let r=Jt(t);if(r!=="filter"&&r in e)return Uf[t]=r;r=ka(r);for(let s=0;sjf||(q3.then(()=>jf=0),jf=Date.now());function Y3(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;rs(z3(r,n.value),t,5,[r])};return n.value=e,n.attached=W3(),n}function z3(e,t){if(Ye(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Ey=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,K3=(e,t,n,r,s,a)=>{const o=s==="svg";t==="class"?I3(e,r,o):t==="style"?$3(e,n,r):wa(t)?Jh(t)||U3(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):G3(e,t,r,o))?(Ty(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Sy(e,t,r,o,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ct(r))?Ty(e,Jt(t),r,a,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Sy(e,t,r,o))};function G3(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ey(t)&&st(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Ey(t)&&ct(n)?!1:t in e}const Oy={};/*! #__NO_SIDE_EFFECTS__ */function Vb(e,t,n){const r=fn(e,t);Fc(r)&&At(r,t);class s extends td{constructor(o){super(r,o,n)}}return s.def=r,s}/*! #__NO_SIDE_EFFECTS__ */const J3=(e,t)=>Vb(e,t,Yb),Z3=typeof HTMLElement<"u"?HTMLElement:class{};class td extends Z3{constructor(t,n={},r=_c){super(),this._def=t,this._props=n,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&r!==_c?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this,this._def.__asyncLoader||this._resolveProps(this._def)}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof td){this._parent=t;break}this._instance||(this._resolved?(this._setParent(),this._update()):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._instance.provides=t._instance.provides)}disconnectedCallback(){this._connected=!1,Un(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let r=0;r{for(const s of r)this._setAttr(s.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,s=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:a,styles:o}=r;let u;if(a&&!Ye(a))for(const d in a){const h=a[d];(h===Number||h&&h.type===Number)&&(d in this._props&&(this._props[d]=ic(this._props[d])),(u||(u=Object.create(null)))[Jt(d)]=!0)}this._numberProps=u,s&&this._resolveProps(r),this.shadowRoot&&this._applyStyles(o),this._mount(r)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(r=>t(this._def=r,!0)):t(this._def)}_mount(t){this._app=this._createApp(t),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const r in n)Dt(this,r)||Object.defineProperty(this,r,{get:()=>Z(n[r])})}_resolveProps(t){const{props:n}=t,r=Ye(n)?n:Object.keys(n||{});for(const s of Object.keys(this))s[0]!=="_"&&r.includes(s)&&this._setProp(s,this[s]);for(const s of r.map(Jt))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(a){this._setProp(s,a,!0,!0)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let r=n?this.getAttribute(t):Oy;const s=Jt(t);n&&this._numberProps&&this._numberProps[s]&&(r=ic(r)),this._setProp(s,r,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,s=!1){if(n!==this._props[t]&&(n===Oy?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),s&&this._instance&&this._update(),r)){const a=this._ob;a&&a.disconnect(),n===!0?this.setAttribute(xr(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(xr(t),n+""):n||this.removeAttribute(xr(t)),a&&a.observe(this,{attributes:!0})}}_update(){yc(this._createVNode(),this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=he(this._def,At(t,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const s=(a,o)=>{this.dispatchEvent(new CustomEvent(a,Fc(o[0])?At({detail:o},o[0]):{detail:o}))};r.emit=(a,...o)=>{s(a,o),xr(a)!==a&&s(xr(a),o)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const r=this._nonce;for(let s=t.length-1;s>=0;s--){const a=document.createElement("style");r&&a.setAttribute("nonce",r),a.textContent=t[s],this.shadowRoot.prepend(a)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const r=n.nodeType===1&&n.getAttribute("slot")||"default";(t[r]||(t[r]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=(this._teleportTarget||this).querySelectorAll("slot"),n=this._instance.type.__scopeId;for(let r=0;r(delete e.props.mode,e),tD=eD({name:"TransitionGroup",props:At({},Db,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ss(),r=op();let s,a;return Zc(()=>{if(!s.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!aD(s[0].el,n.vnode.el,o))return;s.forEach(rD),s.forEach(sD);const u=s.filter(iD);Dh(),u.forEach(d=>{const h=d.el,f=h.style;As(h,o),f.transform=f.webkitTransform=f.transitionDuration="";const p=h[vc]=m=>{m&&m.target!==h||(!m||/transform$/.test(m.propertyName))&&(h.removeEventListener("transitionend",p),h[vc]=null,_i(h,o))};h.addEventListener("transitionend",p)})}),()=>{const o=Mt(e),u=Pb(o);let d=o.tag||Ve;if(s=[],a)for(let h=0;h{u.split(/\s+/).forEach(d=>d&&r.classList.remove(d))}),n.split(/\s+/).forEach(u=>u&&r.classList.add(u)),r.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(r);const{hasTransform:o}=Lb(r);return a.removeChild(r),o}const Ii=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ye(t)?n=>sl(t,n):t};function lD(e){e.target.composing=!0}function Ry(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ns=Symbol("_assign"),Ni={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[ns]=Ii(s);const a=r||s.props&&s.props.type==="number";Zs(e,t?"change":"input",o=>{if(o.target.composing)return;let u=e.value;n&&(u=u.trim()),a&&(u=sc(u)),e[ns](u)}),n&&Zs(e,"change",()=>{e.value=e.value.trim()}),t||(Zs(e,"compositionstart",lD),Zs(e,"compositionend",Ry),Zs(e,"change",Ry))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:a}},o){if(e[ns]=Ii(o),e.composing)return;const u=(a||e.type==="number")&&!/^0\d/.test(e.value)?sc(e.value):e.value,d=t??"";u!==d&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===d)||(e.value=d))}},_p={deep:!0,created(e,t,n){e[ns]=Ii(n),Zs(e,"change",()=>{const r=e._modelValue,s=dl(e),a=e.checked,o=e[ns];if(Ye(r)){const u=Hc(r,s),d=u!==-1;if(a&&!d)o(r.concat(s));else if(!a&&d){const h=[...r];h.splice(u,1),o(h)}}else if(xa(r)){const u=new Set(r);a?u.add(s):u.delete(s),o(u)}else o(Hb(e,a))})},mounted:Dy,beforeUpdate(e,t,n){e[ns]=Ii(n),Dy(e,t,n)}};function Dy(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if(Ye(t))s=Hc(t,r.props.value)>-1;else if(xa(t))s=t.has(r.props.value);else{if(t===n)return;s=Pi(t,Hb(e,!0))}e.checked!==s&&(e.checked=s)}const bp={created(e,{value:t},n){e.checked=Pi(t,n.props.value),e[ns]=Ii(n),Zs(e,"change",()=>{e[ns](dl(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[ns]=Ii(r),t!==n&&(e.checked=Pi(t,r.props.value))}},wp={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=xa(t);Zs(e,"change",()=>{const a=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?sc(dl(o)):dl(o));e[ns](e.multiple?s?new Set(a):a:a[0]),e._assigning=!0,Un(()=>{e._assigning=!1})}),e[ns]=Ii(r)},mounted(e,{value:t}){Py(e,t)},beforeUpdate(e,t,n){e[ns]=Ii(n)},updated(e,{value:t}){e._assigning||Py(e,t)}};function Py(e,t){const n=e.multiple,r=Ye(t);if(!(n&&!r&&!xa(t))){for(let s=0,a=e.options.length;sString(h)===String(u)):o.selected=Hc(t,u)>-1}else o.selected=t.has(u);else if(Pi(dl(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function dl(e){return"_value"in e?e._value:e.value}function Hb(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const xp={created(e,t,n){$u(e,t,n,null,"created")},mounted(e,t,n){$u(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){$u(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){$u(e,t,n,r,"updated")}};function Ub(e,t){switch(e){case"SELECT":return wp;case"TEXTAREA":return Ni;default:switch(t){case"checkbox":return _p;case"radio":return bp;default:return Ni}}}function $u(e,t,n,r,s){const o=Ub(e.tagName,n.props&&n.props.type)[s];o&&o(e,t,n,r)}function oD(){Ni.getSSRProps=({value:e})=>({value:e}),bp.getSSRProps=({value:e},t)=>{if(t.props&&Pi(t.props.value,e))return{checked:!0}},_p.getSSRProps=({value:e},t)=>{if(Ye(e)){if(t.props&&Hc(e,t.props.value)>-1)return{checked:!0}}else if(xa(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},xp.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=Ub(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const uD=["ctrl","shift","alt","meta"],cD={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>uD.some(n=>e[`${n}Key`]&&!t.includes(n))},Et=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...a)=>{for(let o=0;o{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const a=xr(s.key);if(t.some(o=>o===a||dD[o]===a))return e(s)})},jb=At({patchProp:K3},R3);let ao,Ly=!1;function qb(){return ao||(ao=sb(jb))}function Wb(){return ao=Ly?ao:ib(jb),Ly=!0,ao}const yc=(...e)=>{qb().render(...e)},fD=(...e)=>{Wb().hydrate(...e)},_c=(...e)=>{const t=qb().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Kb(r);if(!s)return;const a=t._component;!st(a)&&!a.render&&!a.template&&(a.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,zb(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t},Yb=(...e)=>{const t=Wb().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Kb(r);if(s)return n(s,!0,zb(s))},t};function zb(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Kb(e){return ct(e)?document.querySelector(e):e}let Iy=!1;const hD=()=>{Iy||(Iy=!0,oD(),N3())},pD=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:P_,BaseTransitionPropsValidators:up,Comment:An,DeprecationTypes:E3,EffectScope:ep,ErrorCodes:YM,ErrorTypeStrings:w3,Fragment:Ve,KeepAlive:vR,ReactiveEffect:fo,Static:fa,Suspense:s3,Teleport:O_,Text:Oi,TrackOpTypes:$M,Transition:vs,TransitionGroup:nD,TriggerOpTypes:BM,VueElement:td,assertNumber:WM,callWithAsyncErrorHandling:rs,callWithErrorHandling:Tl,camelize:Jt,capitalize:ka,cloneVNode:Ps,compatUtils:C3,computed:pe,createApp:_c,createBlock:it,createCommentVNode:ae,createElementBlock:P,createElementVNode:v,createHydrationRenderer:ib,createPropsRestProxy:DR,createRenderer:sb,createSSRApp:Yb,createSlots:Hn,createStaticVNode:wb,createTextVNode:ht,createVNode:he,customRef:y_,defineAsyncComponent:mR,defineComponent:fn,defineCustomElement:Vb,defineEmits:kR,defineExpose:SR,defineModel:CR,defineOptions:TR,defineProps:xR,defineSSRCustomElement:J3,defineSlots:AR,devtools:x3,effect:oM,effectScope:aM,getCurrentInstance:ss,getCurrentScope:tp,getCurrentWatcher:HM,getTransitionRawChildren:Kc,guardReactiveProps:Yn,h:yp,handleError:Sa,hasInjectionContext:HR,hydrate:fD,hydrateOnIdle:uR,hydrateOnInteraction:hR,hydrateOnMediaQuery:fR,hydrateOnVisible:dR,initCustomFormatter:y3,initDirectivesForSSR:hD,inject:so,isMemoSame:Eb,isProxy:Yc,isReactive:Ci,isReadonly:Li,isRef:Tn,isRuntimeOnly:m3,isShallow:Ur,isVNode:ni,markRaw:m_,mergeDefaults:MR,mergeModels:RR,mergeProps:cn,nextTick:Un,normalizeClass:Be,normalizeProps:wn,normalizeStyle:bn,onActivated:I_,onBeforeMount:F_,onBeforeUnmount:Xc,onBeforeUpdate:Jc,onDeactivated:N_,onErrorCaptured:U_,onMounted:It,onRenderTracked:H_,onRenderTriggered:B_,onScopeDispose:X0,onServerPrefetch:$_,onUnmounted:ii,onUpdated:Zc,onWatcherCleanup:b_,openBlock:S,popScopeId:ZM,provide:K_,proxyRefs:ap,pushScopeId:JM,queuePostFlushCb:mo,reactive:Hr,readonly:ip,ref:fe,registerRuntimeCompiler:Tb,render:yc,renderList:Qe,renderSlot:Ie,resolveComponent:at,resolveDirective:q_,resolveDynamicComponent:Al,resolveFilter:A3,resolveTransitionHooks:ol,setBlockTracking:Th,setDevtoolsHook:k3,setTransitionHooks:ti,shallowReactive:p_,shallowReadonly:EM,shallowRef:g_,ssrContextKey:ub,ssrUtils:T3,stop:uM,toDisplayString:re,toHandlerKey:rl,toHandlers:bR,toRaw:Mt,toRef:ll,toRefs:LM,toValue:RM,transformVNodeArgs:c3,triggerRef:MM,unref:Z,useAttrs:OR,useCssModule:Q3,useCssVars:V3,useHost:Fb,useId:tR,useModel:ZR,useSSRContext:cb,useShadowRoot:X3,useSlots:Bi,useTemplateRef:nR,useTransitionState:op,vModelCheckbox:_p,vModelDynamic:xp,vModelRadio:bp,vModelSelect:wp,vModelText:Ni,vShow:Vr,version:Ob,warn:b3,watch:Wt,watchEffect:db,watchPostEffect:GR,watchSyncEffect:fb,withAsyncContext:PR,withCtx:Te,withDefaults:ER,withDirectives:Dn,withKeys:$n,withMemo:_3,withModifiers:Et,withScopeId:XM},Symbol.toStringTag,{value:"Module"}));/** -* @vue/compiler-core v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/const wo=Symbol(""),lo=Symbol(""),kp=Symbol(""),bc=Symbol(""),Gb=Symbol(""),ba=Symbol(""),Jb=Symbol(""),Zb=Symbol(""),Sp=Symbol(""),Tp=Symbol(""),Io=Symbol(""),Ap=Symbol(""),Xb=Symbol(""),Cp=Symbol(""),Ep=Symbol(""),Op=Symbol(""),Mp=Symbol(""),Rp=Symbol(""),Dp=Symbol(""),Qb=Symbol(""),e1=Symbol(""),nd=Symbol(""),wc=Symbol(""),Pp=Symbol(""),Lp=Symbol(""),xo=Symbol(""),No=Symbol(""),Ip=Symbol(""),Lh=Symbol(""),mD=Symbol(""),Ih=Symbol(""),xc=Symbol(""),gD=Symbol(""),vD=Symbol(""),Np=Symbol(""),yD=Symbol(""),_D=Symbol(""),Vp=Symbol(""),t1=Symbol(""),fl={[wo]:"Fragment",[lo]:"Teleport",[kp]:"Suspense",[bc]:"KeepAlive",[Gb]:"BaseTransition",[ba]:"openBlock",[Jb]:"createBlock",[Zb]:"createElementBlock",[Sp]:"createVNode",[Tp]:"createElementVNode",[Io]:"createCommentVNode",[Ap]:"createTextVNode",[Xb]:"createStaticVNode",[Cp]:"resolveComponent",[Ep]:"resolveDynamicComponent",[Op]:"resolveDirective",[Mp]:"resolveFilter",[Rp]:"withDirectives",[Dp]:"renderList",[Qb]:"renderSlot",[e1]:"createSlots",[nd]:"toDisplayString",[wc]:"mergeProps",[Pp]:"normalizeClass",[Lp]:"normalizeStyle",[xo]:"normalizeProps",[No]:"guardReactiveProps",[Ip]:"toHandlers",[Lh]:"camelize",[mD]:"capitalize",[Ih]:"toHandlerKey",[xc]:"setBlockTracking",[gD]:"pushScopeId",[vD]:"popScopeId",[Np]:"withCtx",[yD]:"unref",[_D]:"isRef",[Vp]:"withMemo",[t1]:"isMemoSame"};function bD(e){Object.getOwnPropertySymbols(e).forEach(t=>{fl[t]=e[t]})}const qr={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function wD(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:qr}}function ko(e,t,n,r,s,a,o,u=!1,d=!1,h=!1,f=qr){return e&&(u?(e.helper(ba),e.helper(ml(e.inSSR,h))):e.helper(pl(e.inSSR,h)),o&&e.helper(Rp)),{type:13,tag:t,props:n,children:r,patchFlag:s,dynamicProps:a,directives:o,isBlock:u,disableTracking:d,isComponent:h,loc:f}}function ha(e,t=qr){return{type:17,loc:t,elements:e}}function ts(e,t=qr){return{type:15,loc:t,properties:e}}function xn(e,t){return{type:16,loc:qr,key:ct(e)?pt(e,!0):e,value:t}}function pt(e,t=!1,n=qr,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function ms(e,t=qr){return{type:8,loc:t,children:e}}function Rn(e,t=[],n=qr){return{type:14,loc:n,callee:e,arguments:t}}function hl(e,t=void 0,n=!1,r=!1,s=qr){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:s}}function Nh(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:qr}}function xD(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:qr}}function kD(e){return{type:21,body:e,loc:qr}}function pl(e,t){return e||t?Sp:Tp}function ml(e,t){return e||t?Jb:Zb}function Fp(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(pl(r,e.isComponent)),t(ba),t(ml(r,e.isComponent)))}const Ny=new Uint8Array([123,123]),Vy=new Uint8Array([125,125]);function Fy(e){return e>=97&&e<=122||e>=65&&e<=90}function Ir(e){return e===32||e===10||e===9||e===12||e===13}function gi(e){return e===47||e===62||Ir(e)}function kc(e){const t=new Uint8Array(e.length);for(let n=0;n=0;s--){const a=this.newlines[s];if(t>a){n=s+2,r=t-a;break}}return{column:r,line:n,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?gi(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||Ir(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart=t||(this.state===28?this.currentSequence===Jn.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){}}function $y(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function pa(e,t){const n=$y("MODE",t),r=$y(e,t);return n===3?r===!0:r!==!1}function So(e,t,n,...r){return pa(e,t)}function $p(e){throw e}function n1(e){}function en(e,t,n,r){const s=`https://vuejs.org/error-reference/#compiler-${e}`,a=new SyntaxError(String(s));return a.code=e,a.loc=t,a}const kr=e=>e.type===4&&e.isStatic;function r1(e){switch(e){case"Teleport":case"teleport":return lo;case"Suspense":case"suspense":return kp;case"KeepAlive":case"keep-alive":return bc;case"BaseTransition":case"base-transition":return Gb}}const TD=/^\d|[^\$\w\xA0-\uFFFF]/,Bp=e=>!TD.test(e),AD=/[A-Za-z_$\xA0-\uFFFF]/,CD=/[\.\?\w$\xA0-\uFFFF]/,ED=/\s+[.[]\s*|\s*[.[]\s+/g,s1=e=>e.type===4?e.content:e.loc.source,OD=e=>{const t=s1(e).trim().replace(ED,u=>u.trim());let n=0,r=[],s=0,a=0,o=null;for(let u=0;u|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,RD=e=>MD.test(s1(e)),DD=RD;function es(e,t,n=!1){for(let r=0;rt.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function qf(e){return e.type===5||e.type===2}function LD(e){return e.type===7&&e.name==="slot"}function Sc(e){return e.type===1&&e.tagType===3}function Tc(e){return e.type===1&&e.tagType===2}const ID=new Set([xo,No]);function a1(e,t=[]){if(e&&!ct(e)&&e.type===14){const n=e.callee;if(!ct(n)&&ID.has(n))return a1(e.arguments[0],t.concat(e))}return[e,t]}function Ac(e,t,n){let r,s=e.type===13?e.props:e.arguments[2],a=[],o;if(s&&!ct(s)&&s.type===14){const u=a1(s);s=u[0],a=u[1],o=a[a.length-1]}if(s==null||ct(s))r=ts([t]);else if(s.type===14){const u=s.arguments[0];!ct(u)&&u.type===15?By(t,u)||u.properties.unshift(t):s.callee===Ip?r=Rn(n.helper(wc),[ts([t]),s]):s.arguments.unshift(ts([t])),!r&&(r=s)}else s.type===15?(By(t,s)||s.properties.unshift(t),r=s):(r=Rn(n.helper(wc),[ts([t]),s]),o&&o.callee===No&&(o=a[a.length-2]));e.type===13?o?o.arguments[0]=r:e.props=r:o?o.arguments[0]=r:e.arguments[2]=r}function By(e,t){let n=!1;if(e.key.type===4){const r=e.key.content;n=t.properties.some(s=>s.key.type===4&&s.key.content===r)}return n}function To(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function ND(e){return e.type===14&&e.callee===Vp?e.arguments[1].returns:e}const VD=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,l1={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:Zl,isPreTag:Zl,isIgnoreNewlineTag:Zl,isCustomElement:Zl,onError:$p,onWarn:n1,comments:!1,prefixIdentifiers:!1};let Pt=l1,Ao=null,Qs="",Xn=null,Ot=null,_r="",Ys=-1,na=-1,Hp=0,Si=!1,Vh=null;const Qt=[],un=new SD(Qt,{onerr:Ws,ontext(e,t){Bu(Wn(e,t),e,t)},ontextentity(e,t,n){Bu(e,t,n)},oninterpolation(e,t){if(Si)return Bu(Wn(e,t),e,t);let n=e+un.delimiterOpen.length,r=t-un.delimiterClose.length;for(;Ir(Qs.charCodeAt(n));)n++;for(;Ir(Qs.charCodeAt(r-1));)r--;let s=Wn(n,r);s.includes("&")&&(s=Pt.decodeEntities(s,!1)),Fh({type:5,content:Qu(s,!1,yn(n,r)),loc:yn(e,t)})},onopentagname(e,t){const n=Wn(e,t);Xn={type:1,tag:n,ns:Pt.getNamespace(n,Qt[0],Pt.ns),tagType:0,props:[],children:[],loc:yn(e-1,t),codegenNode:void 0}},onopentagend(e){Uy(e)},onclosetag(e,t){const n=Wn(e,t);if(!Pt.isVoidTag(n)){let r=!1;for(let s=0;s0&&Ws(24,Qt[0].loc.start.offset);for(let o=0;o<=s;o++){const u=Qt.shift();Xu(u,t,o(r.type===7?r.rawName:r.name)===n)&&Ws(2,t)},onattribend(e,t){if(Xn&&Ot){if(la(Ot.loc,t),e!==0)if(_r.includes("&")&&(_r=Pt.decodeEntities(_r,!0)),Ot.type===6)Ot.name==="class"&&(_r=c1(_r).trim()),e===1&&!_r&&Ws(13,t),Ot.value={type:2,content:_r,loc:e===1?yn(Ys,na):yn(Ys-1,na+1)},un.inSFCRoot&&Xn.tag==="template"&&Ot.name==="lang"&&_r&&_r!=="html"&&un.enterRCDATA(kc("s.content==="sync"))>-1&&So("COMPILER_V_BIND_SYNC",Pt,Ot.loc,Ot.rawName)&&(Ot.name="model",Ot.modifiers.splice(r,1))}(Ot.type!==7||Ot.name!=="pre")&&Xn.props.push(Ot)}_r="",Ys=na=-1},oncomment(e,t){Pt.comments&&Fh({type:3,content:Wn(e,t),loc:yn(e-4,t+3)})},onend(){const e=Qs.length;for(let t=0;t{const _=t.start.offset+m,b=_+p.length;return Qu(p,!1,yn(_,b),0,y?1:0)},u={source:o(a.trim(),n.indexOf(a,s.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let d=s.trim().replace(FD,"").trim();const h=s.indexOf(d),f=d.match(Hy);if(f){d=d.replace(Hy,"").trim();const p=f[1].trim();let m;if(p&&(m=n.indexOf(p,h+d.length),u.key=o(p,m,!0)),f[2]){const y=f[2].trim();y&&(u.index=o(y,n.indexOf(y,u.key?m+p.length:h+d.length),!0))}}return d&&(u.value=o(d,h,!0)),u}function Wn(e,t){return Qs.slice(e,t)}function Uy(e){un.inSFCRoot&&(Xn.innerLoc=yn(e+1,e+1)),Fh(Xn);const{tag:t,ns:n}=Xn;n===0&&Pt.isPreTag(t)&&Hp++,Pt.isVoidTag(t)?Xu(Xn,e):(Qt.unshift(Xn),(n===1||n===2)&&(un.inXML=!0)),Xn=null}function Bu(e,t,n){{const a=Qt[0]&&Qt[0].tag;a!=="script"&&a!=="style"&&e.includes("&")&&(e=Pt.decodeEntities(e,!1))}const r=Qt[0]||Ao,s=r.children[r.children.length-1];s&&s.type===2?(s.content+=e,la(s.loc,n)):r.children.push({type:2,content:e,loc:yn(t,n)})}function Xu(e,t,n=!1){n?la(e.loc,o1(t,60)):la(e.loc,BD(t,62)+1),un.inSFCRoot&&(e.children.length?e.innerLoc.end=At({},e.children[e.children.length-1].loc.end):e.innerLoc.end=At({},e.innerLoc.start),e.innerLoc.source=Wn(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:s,children:a}=e;if(Si||(r==="slot"?e.tagType=2:jy(e)?e.tagType=3:UD(e)&&(e.tagType=1)),un.inRCDATA||(e.children=u1(a)),s===0&&Pt.isIgnoreNewlineTag(r)){const o=a[0];o&&o.type===2&&(o.content=o.content.replace(/^\r?\n/,""))}s===0&&Pt.isPreTag(r)&&Hp--,Vh===e&&(Si=un.inVPre=!1,Vh=null),un.inXML&&(Qt[0]?Qt[0].ns:Pt.ns)===0&&(un.inXML=!1);{const o=e.props;if(!un.inSFCRoot&&pa("COMPILER_NATIVE_TEMPLATE",Pt)&&e.tag==="template"&&!jy(e)){const d=Qt[0]||Ao,h=d.children.indexOf(e);d.children.splice(h,1,...e.children)}const u=o.find(d=>d.type===6&&d.name==="inline-template");u&&So("COMPILER_INLINE_TEMPLATE",Pt,u.loc)&&e.children.length&&(u.value={type:2,content:Wn(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:u.loc})}}function BD(e,t){let n=e;for(;Qs.charCodeAt(n)!==t&&n=0;)n--;return n}const HD=new Set(["if","else","else-if","for","slot"]);function jy({tag:e,props:t}){if(e==="template"){for(let n=0;n64&&e<91}const qD=/\r\n/g;function u1(e,t){const n=Pt.whitespace!=="preserve";let r=!1;for(let s=0;s0){if(m>=2){p.codegenNode.patchFlag=-1,o.push(p);continue}}else{const y=p.codegenNode;if(y.type===13){const _=y.patchFlag;if((_===void 0||_===512||_===1)&&h1(p,n)>=2){const b=p1(p);b&&(y.props=n.hoist(b))}y.dynamicProps&&(y.dynamicProps=n.hoist(y.dynamicProps))}}}else if(p.type===12&&(r?0:Fr(p,n))>=2){o.push(p);continue}if(p.type===1){const m=p.tagType===1;m&&n.scopes.vSlot++,ec(p,e,n,!1,s),m&&n.scopes.vSlot--}else if(p.type===11)ec(p,e,n,p.children.length===1,!0);else if(p.type===9)for(let m=0;my.key===p||y.key.content===p);return m&&m.value}}o.length&&n.transformHoist&&n.transformHoist(a,n,e)}function Fr(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const r=n.get(e);if(r!==void 0)return r;const s=e.codegenNode;if(s.type!==13||s.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(s.patchFlag===void 0){let o=3;const u=h1(e,t);if(u===0)return n.set(e,0),0;u1)for(let d=0;dse&&(D.childIndex--,D.onNodeRemoved()),D.parent.children.splice(se,1)},onNodeRemoved:zn,addIdentifiers(T){},removeIdentifiers(T){},hoist(T){ct(T)&&(T=pt(T)),D.hoists.push(T);const B=pt(`_hoisted_${D.hoists.length}`,!1,T.loc,2);return B.hoisted=T,B},cache(T,B=!1,se=!1){const ee=xD(D.cached.length,T,B,se);return D.cached.push(ee),ee}};return D.filters=new Set,D}function eP(e,t){const n=QD(e,t);sd(e,n),t.hoistStatic&&ZD(e,n),t.ssr||tP(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function tP(e,t){const{helper:n}=t,{children:r}=e;if(r.length===1){const s=r[0];if(d1(e,s)&&s.codegenNode){const a=s.codegenNode;a.type===13&&Fp(a,t),e.codegenNode=a}else e.codegenNode=s}else if(r.length>1){let s=64;e.codegenNode=ko(t,n(wo),void 0,e.children,s,void 0,void 0,!0,void 0,!1)}}function nP(e,t){let n=0;const r=()=>{n--};for(;nr===e:r=>e.test(r);return(r,s)=>{if(r.type===1){const{props:a}=r;if(r.tagType===3&&a.some(LD))return;const o=[];for(let u=0;u`${fl[e]}: _${fl[e]}`;function rP(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:r=!1,filename:s="template.vue.html",scopeId:a=null,optimizeImports:o=!1,runtimeGlobalName:u="Vue",runtimeModuleName:d="vue",ssrRuntimeModuleName:h="vue/server-renderer",ssr:f=!1,isTS:p=!1,inSSR:m=!1}){const y={mode:t,prefixIdentifiers:n,sourceMap:r,filename:s,scopeId:a,optimizeImports:o,runtimeGlobalName:u,runtimeModuleName:d,ssrRuntimeModuleName:h,ssr:f,isTS:p,inSSR:m,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(b){return`_${fl[b]}`},push(b,O=-2,H){y.code+=b},indent(){_(++y.indentLevel)},deindent(b=!1){b?--y.indentLevel:_(--y.indentLevel)},newline(){_(y.indentLevel)}};function _(b){y.push(` -`+" ".repeat(b),0)}return y}function sP(e,t={}){const n=rP(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:s,prefixIdentifiers:a,indent:o,deindent:u,newline:d,scopeId:h,ssr:f}=n,p=Array.from(e.helpers),m=p.length>0,y=!a&&r!=="module";iP(e,n);const b=f?"ssrRender":"render",H=(f?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(s(`function ${b}(${H}) {`),o(),y&&(s("with (_ctx) {"),o(),m&&(s(`const { ${p.map(g1).join(", ")} } = _Vue -`,-1),d())),e.components.length&&(Wf(e.components,"component",n),(e.directives.length||e.temps>0)&&d()),e.directives.length&&(Wf(e.directives,"directive",n),e.temps>0&&d()),e.filters&&e.filters.length&&(d(),Wf(e.filters,"filter",n),d()),e.temps>0){s("let ");for(let V=0;V0?", ":""}_temp${V}`)}return(e.components.length||e.directives.length||e.temps)&&(s(` -`,0),d()),f||s("return "),e.codegenNode?sr(e.codegenNode,n):s("null"),y&&(u(),s("}")),u(),s("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function iP(e,t){const{ssr:n,prefixIdentifiers:r,push:s,newline:a,runtimeModuleName:o,runtimeGlobalName:u,ssrRuntimeModuleName:d}=t,h=u,f=Array.from(e.helpers);if(f.length>0&&(s(`const _Vue = ${h} -`,-1),e.hoists.length)){const p=[Sp,Tp,Io,Ap,Xb].filter(m=>f.includes(m)).map(g1).join(", ");s(`const { ${p} } = _Vue -`,-1)}aP(e.hoists,t),a(),s("return ")}function Wf(e,t,{helper:n,push:r,newline:s,isTS:a}){const o=n(t==="filter"?Mp:t==="component"?Cp:Op);for(let u=0;u3||!1;t.push("["),n&&t.indent(),Vo(e,t,n),n&&t.deindent(),t.push("]")}function Vo(e,t,n=!1,r=!0){const{push:s,newline:a}=t;for(let o=0;on||"null")}function hP(e,t){const{push:n,helper:r,pure:s}=t,a=ct(e.callee)?e.callee:r(e.callee);s&&n(id),n(a+"(",-2,e),Vo(e.arguments,t),n(")")}function pP(e,t){const{push:n,indent:r,deindent:s,newline:a}=t,{properties:o}=e;if(!o.length){n("{}",-2,e);return}const u=o.length>1||!1;n(u?"{":"{ "),u&&r();for(let d=0;d "),(d||u)&&(n("{"),r()),o?(d&&n("return "),Ye(o)?Up(o,t):sr(o,t)):u&&sr(u,t),(d||u)&&(s(),n("}")),h&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function vP(e,t){const{test:n,consequent:r,alternate:s,newline:a}=e,{push:o,indent:u,deindent:d,newline:h}=t;if(n.type===4){const p=!Bp(n.content);p&&o("("),v1(n,t),p&&o(")")}else o("("),sr(n,t),o(")");a&&u(),t.indentLevel++,a||o(" "),o("? "),sr(r,t),t.indentLevel--,a&&h(),a||o(" "),o(": ");const f=s.type===19;f||t.indentLevel++,sr(s,t),f||t.indentLevel--,a&&d(!0)}function yP(e,t){const{push:n,helper:r,indent:s,deindent:a,newline:o}=t,{needPauseTracking:u,needArraySpread:d}=e;d&&n("[...("),n(`_cache[${e.index}] || (`),u&&(s(),n(`${r(xc)}(-1`),e.inVOnce&&n(", true"),n("),"),o(),n("(")),n(`_cache[${e.index}] = `),sr(e.value,t),u&&(n(`).cacheIndex = ${e.index},`),o(),n(`${r(xc)}(1),`),o(),n(`_cache[${e.index}]`),a()),n(")"),d&&n(")]")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const _P=m1(/^(if|else|else-if)$/,(e,t,n)=>bP(e,t,n,(r,s,a)=>{const o=n.parent.children;let u=o.indexOf(r),d=0;for(;u-->=0;){const h=o[u];h&&h.type===9&&(d+=h.branches.length)}return()=>{if(a)r.codegenNode=Wy(s,d,n);else{const h=wP(r.codegenNode);h.alternate=Wy(s,d+r.branches.length-1,n)}}}));function bP(e,t,n,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const s=t.exp?t.exp.loc:e.loc;n.onError(en(28,t.loc)),t.exp=pt("true",!1,s)}if(t.name==="if"){const s=qy(e,t),a={type:9,loc:zD(e.loc),branches:[s]};if(n.replaceNode(a),r)return r(a,s,!0)}else{const s=n.parent.children;let a=s.indexOf(e);for(;a-->=-1;){const o=s[a];if(o&&o.type===3){n.removeNode(o);continue}if(o&&o.type===2&&!o.content.trim().length){n.removeNode(o);continue}if(o&&o.type===9){t.name==="else-if"&&o.branches[o.branches.length-1].condition===void 0&&n.onError(en(30,e.loc)),n.removeNode();const u=qy(e,t);o.branches.push(u);const d=r&&r(o,u,!1);sd(u,n),d&&d(),n.currentNode=null}else n.onError(en(30,e.loc));break}}}function qy(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!es(e,"for")?e.children:[e],userKey:rd(e,"key"),isTemplateIf:n}}function Wy(e,t,n){return e.condition?Nh(e.condition,Yy(e,t,n),Rn(n.helper(Io),['""',"true"])):Yy(e,t,n)}function Yy(e,t,n){const{helper:r}=n,s=xn("key",pt(`${t}`,!1,qr,2)),{children:a}=e,o=a[0];if(a.length!==1||o.type!==1)if(a.length===1&&o.type===11){const d=o.codegenNode;return Ac(d,s,n),d}else return ko(n,r(wo),ts([s]),a,64,void 0,void 0,!0,!1,!1,e.loc);else{const d=o.codegenNode,h=ND(d);return h.type===13&&Fp(h,n),Ac(h,s,n),d}}function wP(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const xP=(e,t,n)=>{const{modifiers:r,loc:s}=e,a=e.arg;let{exp:o}=e;if(o&&o.type===4&&!o.content.trim()&&(o=void 0),!o){if(a.type!==4||!a.isStatic)return n.onError(en(52,a.loc)),{props:[xn(a,pt("",!0,s))]};_1(e),o=e.exp}return a.type!==4?(a.children.unshift("("),a.children.push(') || ""')):a.isStatic||(a.content=`${a.content} || ""`),r.some(u=>u.content==="camel")&&(a.type===4?a.isStatic?a.content=Jt(a.content):a.content=`${n.helperString(Lh)}(${a.content})`:(a.children.unshift(`${n.helperString(Lh)}(`),a.children.push(")"))),n.inSSR||(r.some(u=>u.content==="prop")&&zy(a,"."),r.some(u=>u.content==="attr")&&zy(a,"^")),{props:[xn(a,o)]}},_1=(e,t)=>{const n=e.arg,r=Jt(n.content);e.exp=pt(r,!1,n.loc)},zy=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},kP=m1("for",(e,t,n)=>{const{helper:r,removeHelper:s}=n;return SP(e,t,n,a=>{const o=Rn(r(Dp),[a.source]),u=Sc(e),d=es(e,"memo"),h=rd(e,"key",!1,!0);h&&h.type===7&&!h.exp&&_1(h);let p=h&&(h.type===6?h.value?pt(h.value.content,!0):void 0:h.exp);const m=h&&p?xn("key",p):null,y=a.source.type===4&&a.source.constType>0,_=y?64:h?128:256;return a.codegenNode=ko(n,r(wo),void 0,o,_,void 0,void 0,!0,!y,!1,e.loc),()=>{let b;const{children:O}=a,H=O.length!==1||O[0].type!==1,V=Tc(e)?e:u&&e.children.length===1&&Tc(e.children[0])?e.children[0]:null;if(V?(b=V.codegenNode,u&&m&&Ac(b,m,n)):H?b=ko(n,r(wo),m?ts([m]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(b=O[0].codegenNode,u&&m&&Ac(b,m,n),b.isBlock!==!y&&(b.isBlock?(s(ba),s(ml(n.inSSR,b.isComponent))):s(pl(n.inSSR,b.isComponent))),b.isBlock=!y,b.isBlock?(r(ba),r(ml(n.inSSR,b.isComponent))):r(pl(n.inSSR,b.isComponent))),d){const x=hl($h(a.parseResult,[pt("_cached")]));x.body=kD([ms(["const _memo = (",d.exp,")"]),ms(["if (_cached",...p?[" && _cached.key === ",p]:[],` && ${n.helperString(t1)}(_cached, _memo)) return _cached`]),ms(["const _item = ",b]),pt("_item.memo = _memo"),pt("return _item")]),o.arguments.push(x,pt("_cache"),pt(String(n.cached.length))),n.cached.push(null)}else o.arguments.push(hl($h(a.parseResult),b,!0))}})});function SP(e,t,n,r){if(!t.exp){n.onError(en(31,t.loc));return}const s=t.forParseResult;if(!s){n.onError(en(32,t.loc));return}b1(s);const{addIdentifiers:a,removeIdentifiers:o,scopes:u}=n,{source:d,value:h,key:f,index:p}=s,m={type:11,loc:t.loc,source:d,valueAlias:h,keyAlias:f,objectIndexAlias:p,parseResult:s,children:Sc(e)?e.children:[e]};n.replaceNode(m),u.vFor++;const y=r&&r(m);return()=>{u.vFor--,y&&y()}}function b1(e,t){e.finalized||(e.finalized=!0)}function $h({value:e,key:t,index:n},r=[]){return TP([e,t,n,...r])}function TP(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,r)=>n||pt("_".repeat(r+1),!1))}const Ky=pt("undefined",!1),AP=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=es(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},CP=(e,t,n,r)=>hl(e,n,!1,!0,n.length?n[0].loc:r);function EP(e,t,n=CP){t.helper(Np);const{children:r,loc:s}=e,a=[],o=[];let u=t.scopes.vSlot>0||t.scopes.vFor>0;const d=es(e,"slot",!0);if(d){const{arg:O,exp:H}=d;O&&!kr(O)&&(u=!0),a.push(xn(O||pt("default",!0),n(H,void 0,r,s)))}let h=!1,f=!1;const p=[],m=new Set;let y=0;for(let O=0;O{const x=n(H,void 0,V,s);return t.compatConfig&&(x.isNonScopedSlot=!0),xn("default",x)};h?p.length&&p.some(H=>w1(H))&&(f?t.onError(en(39,p[0].loc)):a.push(O(void 0,p))):a.push(O(void 0,r))}const _=u?2:tc(e.children)?3:1;let b=ts(a.concat(xn("_",pt(_+"",!1))),s);return o.length&&(b=Rn(t.helper(e1),[b,ha(o)])),{slots:b,hasDynamicSlots:u}}function Hu(e,t,n){const r=[xn("name",e),xn("fn",t)];return n!=null&&r.push(xn("key",pt(String(n),!0))),ts(r)}function tc(e){for(let t=0;tfunction(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:s}=e,a=e.tagType===1;let o=a?MP(e,t):`"${r}"`;const u=Ht(o)&&o.callee===Ep;let d,h,f=0,p,m,y,_=u||o===lo||o===kp||!a&&(r==="svg"||r==="foreignObject"||r==="math");if(s.length>0){const b=k1(e,t,void 0,a,u);d=b.props,f=b.patchFlag,m=b.dynamicPropNames;const O=b.directives;y=O&&O.length?ha(O.map(H=>DP(H,t))):void 0,b.shouldUseBlock&&(_=!0)}if(e.children.length>0)if(o===bc&&(_=!0,f|=1024),a&&o!==lo&&o!==bc){const{slots:O,hasDynamicSlots:H}=EP(e,t);h=O,H&&(f|=1024)}else if(e.children.length===1&&o!==lo){const O=e.children[0],H=O.type,V=H===5||H===8;V&&Fr(O,t)===0&&(f|=1),V||H===2?h=O:h=e.children}else h=e.children;m&&m.length&&(p=PP(m)),e.codegenNode=ko(t,o,d,h,f===0?void 0:f,p,y,!!_,!1,a,e.loc)};function MP(e,t,n=!1){let{tag:r}=e;const s=Bh(r),a=rd(e,"is",!1,!0);if(a)if(s||pa("COMPILER_IS_ON_ELEMENT",t)){let u;if(a.type===6?u=a.value&&pt(a.value.content,!0):(u=a.exp,u||(u=pt("is",!1,a.arg.loc))),u)return Rn(t.helper(Ep),[u])}else a.type===6&&a.value.content.startsWith("vue:")&&(r=a.value.content.slice(4));const o=r1(r)||t.isBuiltInComponent(r);return o?(n||t.helper(o),o):(t.helper(Cp),t.components.add(r),To(r,"component"))}function k1(e,t,n=e.props,r,s,a=!1){const{tag:o,loc:u,children:d}=e;let h=[];const f=[],p=[],m=d.length>0;let y=!1,_=0,b=!1,O=!1,H=!1,V=!1,x=!1,C=!1;const F=[],U=B=>{h.length&&(f.push(ts(Gy(h),u)),h=[]),B&&f.push(B)},$=()=>{t.scopes.vFor>0&&h.push(xn(pt("ref_for",!0),pt("true")))},D=({key:B,value:se})=>{if(kr(B)){const ee=B.content,de=wa(ee);if(de&&(!r||s)&&ee.toLowerCase()!=="onclick"&&ee!=="onUpdate:modelValue"&&!Ai(ee)&&(V=!0),de&&Ai(ee)&&(C=!0),de&&se.type===14&&(se=se.arguments[0]),se.type===20||(se.type===4||se.type===8)&&Fr(se,t)>0)return;ee==="ref"?b=!0:ee==="class"?O=!0:ee==="style"?H=!0:ee!=="key"&&!F.includes(ee)&&F.push(ee),r&&(ee==="class"||ee==="style")&&!F.includes(ee)&&F.push(ee)}else x=!0};for(let B=0;BMe.content==="prop")&&(_|=32);const _e=t.directiveTransforms[ee];if(_e){const{props:Me,needRuntime:Ne}=_e(se,e,t);!a&&Me.forEach(D),J&&de&&!kr(de)?U(ts(Me,u)):h.push(...Me),Ne&&(p.push(se),Cr(Ne)&&x1.set(se,Ne))}else BO(ee)||(p.push(se),m&&(y=!0))}}let T;if(f.length?(U(),f.length>1?T=Rn(t.helper(wc),f,u):T=f[0]):h.length&&(T=ts(Gy(h),u)),x?_|=16:(O&&!r&&(_|=2),H&&!r&&(_|=4),F.length&&(_|=8),V&&(_|=32)),!y&&(_===0||_===32)&&(b||C||p.length>0)&&(_|=512),!t.inSSR&&T)switch(T.type){case 15:let B=-1,se=-1,ee=!1;for(let N=0;Nxn(o,a)),s))}return ha(n,e.loc)}function PP(e){let t="[";for(let n=0,r=e.length;n{if(Tc(e)){const{children:n,loc:r}=e,{slotName:s,slotProps:a}=IP(e,t),o=[t.prefixIdentifiers?"_ctx.$slots":"$slots",s,"{}","undefined","true"];let u=2;a&&(o[2]=a,u=3),n.length&&(o[3]=hl([],n,!1,!1,r),u=4),t.scopeId&&!t.slotted&&(u=5),o.splice(u),e.codegenNode=Rn(t.helper(Qb),o,r)}};function IP(e,t){let n='"default"',r;const s=[];for(let a=0;a0){const{props:a,directives:o}=k1(e,t,s,!1,!1);r=a,o.length&&t.onError(en(36,o[0].loc))}return{slotName:n,slotProps:r}}const S1=(e,t,n,r)=>{const{loc:s,modifiers:a,arg:o}=e;!e.exp&&!a.length&&n.onError(en(35,s));let u;if(o.type===4)if(o.isStatic){let p=o.content;p.startsWith("vue:")&&(p=`vnode-${p.slice(4)}`);const m=t.tagType!==0||p.startsWith("vnode")||!/[A-Z]/.test(p)?rl(Jt(p)):`on:${p}`;u=pt(m,!0,o.loc)}else u=ms([`${n.helperString(Ih)}(`,o,")"]);else u=o,u.children.unshift(`${n.helperString(Ih)}(`),u.children.push(")");let d=e.exp;d&&!d.content.trim()&&(d=void 0);let h=n.cacheHandlers&&!d&&!n.inVOnce;if(d){const p=i1(d),m=!(p||DD(d)),y=d.content.includes(";");(m||h&&p)&&(d=ms([`${m?"$event":"(...args)"} => ${y?"{":"("}`,d,y?"}":")"]))}let f={props:[xn(u,d||pt("() => {}",!1,s))]};return r&&(f=r(f)),h&&(f.props[0].value=n.cache(f.props[0].value)),f.props.forEach(p=>p.key.isHandlerKey=!0),f},NP=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let r,s=!1;for(let a=0;aa.type===7&&!t.directiveTransforms[a.name])&&e.tag!=="template")))for(let a=0;a{if(e.type===1&&es(e,"once",!0))return Jy.has(e)||t.inVOnce||t.inSSR?void 0:(Jy.add(e),t.inVOnce=!0,t.helper(xc),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0,!0))})},T1=(e,t,n)=>{const{exp:r,arg:s}=e;if(!r)return n.onError(en(41,e.loc)),Uu();const a=r.loc.source.trim(),o=r.type===4?r.content:a,u=n.bindingMetadata[a];if(u==="props"||u==="props-aliased")return n.onError(en(44,r.loc)),Uu();if(!o.trim()||!i1(r))return n.onError(en(42,r.loc)),Uu();const d=s||pt("modelValue",!0),h=s?kr(s)?`onUpdate:${Jt(s.content)}`:ms(['"onUpdate:" + ',s]):"onUpdate:modelValue";let f;const p=n.isTS?"($event: any)":"$event";f=ms([`${p} => ((`,r,") = $event)"]);const m=[xn(d,e.exp),xn(h,f)];if(e.modifiers.length&&t.tagType===1){const y=e.modifiers.map(b=>b.content).map(b=>(Bp(b)?b:JSON.stringify(b))+": true").join(", "),_=s?kr(s)?`${s.content}Modifiers`:ms([s,' + "Modifiers"']):"modelModifiers";m.push(xn(_,pt(`{ ${y} }`,!1,e.loc,2)))}return Uu(m)};function Uu(e=[]){return{props:e}}const FP=/[\w).+\-_$\]]/,$P=(e,t)=>{pa("COMPILER_FILTERS",t)&&(e.type===5?Cc(e.content,t):e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&Cc(n.exp,t)}))};function Cc(e,t){if(e.type===4)Zy(e,t);else for(let n=0;n=0&&(V=n.charAt(H),V===" ");H--);(!V||!FP.test(V))&&(o=!0)}}_===void 0?_=n.slice(0,y).trim():f!==0&&O();function O(){b.push(n.slice(f,y).trim()),f=y+1}if(b.length){for(y=0;y{if(e.type===1){const n=es(e,"memo");return!n||Xy.has(e)?void 0:(Xy.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&Fp(r,t),e.codegenNode=Rn(t.helper(Vp),[n.exp,hl(void 0,r),"_cache",String(t.cached.length)]),t.cached.push(null))})}};function UP(e){return[[VP,_P,HP,kP,$P,LP,OP,AP,NP],{on:S1,bind:xP,model:T1}]}function jP(e,t={}){const n=t.onError||$p,r=t.mode==="module";t.prefixIdentifiers===!0?n(en(47)):r&&n(en(48));const s=!1;t.cacheHandlers&&n(en(49)),t.scopeId&&!r&&n(en(50));const a=At({},t,{prefixIdentifiers:s}),o=ct(e)?JD(e,a):e,[u,d]=UP();return eP(o,At({},a,{nodeTransforms:[...u,...t.nodeTransforms||[]],directiveTransforms:At({},d,t.directiveTransforms||{})})),sP(o,a)}const qP=()=>({props:[]});/** -* @vue/compiler-dom v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/const A1=Symbol(""),C1=Symbol(""),E1=Symbol(""),O1=Symbol(""),Hh=Symbol(""),M1=Symbol(""),R1=Symbol(""),D1=Symbol(""),P1=Symbol(""),L1=Symbol("");bD({[A1]:"vModelRadio",[C1]:"vModelCheckbox",[E1]:"vModelText",[O1]:"vModelSelect",[Hh]:"vModelDynamic",[M1]:"withModifiers",[R1]:"withKeys",[D1]:"vShow",[P1]:"Transition",[L1]:"TransitionGroup"});let qa;function WP(e,t=!1){return qa||(qa=document.createElement("div")),t?(qa.innerHTML=`
`,qa.children[0].getAttribute("foo")):(qa.innerHTML=e,qa.textContent)}const YP={parseMode:"html",isVoidTag:nM,isNativeTag:e=>QO(e)||eM(e)||tM(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:WP,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return P1;if(e==="TransitionGroup"||e==="transition-group")return L1},getNamespace(e,t,n){let r=t?t.ns:n;if(t&&r===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(s=>s.type===6&&s.name==="encoding"&&s.value!=null&&(s.value.content==="text/html"||s.value.content==="application/xhtml+xml"))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(r=0);else t&&r===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(r=0);if(r===0){if(e==="svg")return 1;if(e==="math")return 2}return r}},zP=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:pt("style",!0,t.loc),exp:KP(t.value.content,t.loc),modifiers:[],loc:t.loc})})},KP=(e,t)=>{const n=K0(e);return pt(JSON.stringify(n),!1,t,3)};function Mi(e,t){return en(e,t)}const GP=(e,t,n)=>{const{exp:r,loc:s}=e;return r||n.onError(Mi(53,s)),t.children.length&&(n.onError(Mi(54,s)),t.children.length=0),{props:[xn(pt("innerHTML",!0,s),r||pt("",!0))]}},JP=(e,t,n)=>{const{exp:r,loc:s}=e;return r||n.onError(Mi(55,s)),t.children.length&&(n.onError(Mi(56,s)),t.children.length=0),{props:[xn(pt("textContent",!0),r?Fr(r,n)>0?r:Rn(n.helperString(nd),[r],s):pt("",!0))]}},ZP=(e,t,n)=>{const r=T1(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(Mi(58,e.arg.loc));const{tag:s}=t,a=n.isCustomElement(s);if(s==="input"||s==="textarea"||s==="select"||a){let o=E1,u=!1;if(s==="input"||a){const d=rd(t,"type");if(d){if(d.type===7)o=Hh;else if(d.value)switch(d.value.content){case"radio":o=A1;break;case"checkbox":o=C1;break;case"file":u=!0,n.onError(Mi(59,e.loc));break}}else PD(t)&&(o=Hh)}else s==="select"&&(o=O1);u||(r.needRuntime=n.helper(o))}else n.onError(Mi(57,e.loc));return r.props=r.props.filter(o=>!(o.key.type===4&&o.key.content==="modelValue")),r},XP=jr("passive,once,capture"),QP=jr("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),eL=jr("left,right"),I1=jr("onkeyup,onkeydown,onkeypress"),tL=(e,t,n,r)=>{const s=[],a=[],o=[];for(let u=0;ukr(e)&&e.content.toLowerCase()==="onclick"?pt(t,!0):e.type!==4?ms(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,nL=(e,t,n)=>S1(e,t,n,r=>{const{modifiers:s}=e;if(!s.length)return r;let{key:a,value:o}=r.props[0];const{keyModifiers:u,nonKeyModifiers:d,eventOptionModifiers:h}=tL(a,s,n,e.loc);if(d.includes("right")&&(a=Qy(a,"onContextmenu")),d.includes("middle")&&(a=Qy(a,"onMouseup")),d.length&&(o=Rn(n.helper(M1),[o,JSON.stringify(d)])),u.length&&(!kr(a)||I1(a.content.toLowerCase()))&&(o=Rn(n.helper(R1),[o,JSON.stringify(u)])),h.length){const f=h.map(ka).join("");a=kr(a)?pt(`${a.content}${f}`,!0):ms(["(",a,`) + "${f}"`])}return{props:[xn(a,o)]}}),rL=(e,t,n)=>{const{exp:r,loc:s}=e;return r||n.onError(Mi(61,s)),{props:[],needRuntime:n.helper(D1)}},sL=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},iL=[zP],aL={cloak:qP,html:GP,text:JP,model:ZP,on:nL,show:rL};function lL(e,t={}){return jP(e,At({},YP,t,{nodeTransforms:[sL,...iL,...t.nodeTransforms||[]],directiveTransforms:At({},aL,t.directiveTransforms||{}),transformHoist:null}))}/** -* vue v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/const e0=Object.create(null);function oL(e,t){if(!ct(e))if(e.nodeType)e=e.innerHTML;else return zn;const n=jO(e,t),r=e0[n];if(r)return r;if(e[0]==="#"){const u=document.querySelector(e);e=u?u.innerHTML:""}const s=At({hoistStatic:!0,onError:void 0,onWarn:zn},t);!s.isCustomElement&&typeof customElements<"u"&&(s.isCustomElement=u=>!!customElements.get(u));const{code:a}=lL(e,s),o=new Function("Vue",a)(pD);return o._rc=!0,e0[n]=o}Tb(oL);var N1=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function uL(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ec={exports:{}};/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */Ec.exports;(function(e,t){(function(){var n,r="4.17.21",s=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",u="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",h=500,f="__lodash_placeholder__",p=1,m=2,y=4,_=1,b=2,O=1,H=2,V=4,x=8,C=16,F=32,U=64,$=128,D=256,T=512,B=30,se="...",ee=800,de=16,ne=1,N=2,G=3,k=1/0,J=9007199254740991,_e=17976931348623157e292,Me=NaN,Ne=4294967295,j=Ne-1,te=Ne>>>1,M=[["ary",$],["bind",O],["bindKey",H],["curry",x],["curryRight",C],["flip",T],["partial",F],["partialRight",U],["rearg",D]],ie="[object Arguments]",ge="[object Array]",z="[object AsyncFunction]",Le="[object Boolean]",Xe="[object Date]",be="[object DOMException]",et="[object Error]",W="[object Function]",A="[object GeneratorFunction]",I="[object Map]",K="[object Number]",Q="[object Null]",me="[object Object]",q="[object Promise]",ce="[object Proxy]",ye="[object RegExp]",ke="[object Set]",Ae="[object String]",Oe="[object Symbol]",He="[object Undefined]",Ue="[object WeakMap]",We="[object WeakSet]",Ge="[object ArrayBuffer]",ot="[object DataView]",_t="[object Float32Array]",an="[object Float64Array]",Zt="[object Int8Array]",Cn="[object Int16Array]",hn="[object Int32Array]",Er="[object Uint8Array]",ws="[object Uint8ClampedArray]",pn="[object Uint16Array]",ue="[object Uint32Array]",Fe=/\b__p \+= '';/g,xe=/\b(__p \+=) '' \+/g,$e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,qe=/&(?:amp|lt|gt|quot|#39);/g,Nn=/[&<>"']/g,pr=RegExp(qe.source),Ls=RegExp(Nn.source),Ca=/<%-([\s\S]+?)%>/g,qi=/<%([\s\S]+?)%>/g,is=/<%=([\s\S]+?)%>/g,El=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,md=/^\w*$/,Lw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gd=/[\\^$.*+?()[\]{}|]/g,Iw=RegExp(gd.source),vd=/^\s+/,Nw=/\s/,Vw=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fw=/\{\n\/\* \[wrapped with (.+)\] \*/,$w=/,? & /,Bw=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Hw=/[()=,{}\[\]\/\s]/,Uw=/\\(\\)?/g,jw=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,um=/\w*$/,qw=/^[-+]0x[0-9a-f]+$/i,Ww=/^0b[01]+$/i,Yw=/^\[object .+?Constructor\]$/,zw=/^0o[0-7]+$/i,Kw=/^(?:0|[1-9]\d*)$/,Gw=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Uo=/($^)/,Jw=/['\n\r\u2028\u2029\\]/g,jo="\\ud800-\\udfff",Zw="\\u0300-\\u036f",Xw="\\ufe20-\\ufe2f",Qw="\\u20d0-\\u20ff",cm=Zw+Xw+Qw,dm="\\u2700-\\u27bf",fm="a-z\\xdf-\\xf6\\xf8-\\xff",ex="\\xac\\xb1\\xd7\\xf7",tx="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",nx="\\u2000-\\u206f",rx=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",hm="A-Z\\xc0-\\xd6\\xd8-\\xde",pm="\\ufe0e\\ufe0f",mm=ex+tx+nx+rx,yd="['’]",sx="["+jo+"]",gm="["+mm+"]",qo="["+cm+"]",vm="\\d+",ix="["+dm+"]",ym="["+fm+"]",_m="[^"+jo+mm+vm+dm+fm+hm+"]",_d="\\ud83c[\\udffb-\\udfff]",ax="(?:"+qo+"|"+_d+")",bm="[^"+jo+"]",bd="(?:\\ud83c[\\udde6-\\uddff]){2}",wd="[\\ud800-\\udbff][\\udc00-\\udfff]",Ea="["+hm+"]",wm="\\u200d",xm="(?:"+ym+"|"+_m+")",lx="(?:"+Ea+"|"+_m+")",km="(?:"+yd+"(?:d|ll|m|re|s|t|ve))?",Sm="(?:"+yd+"(?:D|LL|M|RE|S|T|VE))?",Tm=ax+"?",Am="["+pm+"]?",ox="(?:"+wm+"(?:"+[bm,bd,wd].join("|")+")"+Am+Tm+")*",ux="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",cx="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Cm=Am+Tm+ox,dx="(?:"+[ix,bd,wd].join("|")+")"+Cm,fx="(?:"+[bm+qo+"?",qo,bd,wd,sx].join("|")+")",hx=RegExp(yd,"g"),px=RegExp(qo,"g"),xd=RegExp(_d+"(?="+_d+")|"+fx+Cm,"g"),mx=RegExp([Ea+"?"+ym+"+"+km+"(?="+[gm,Ea,"$"].join("|")+")",lx+"+"+Sm+"(?="+[gm,Ea+xm,"$"].join("|")+")",Ea+"?"+xm+"+"+km,Ea+"+"+Sm,cx,ux,vm,dx].join("|"),"g"),gx=RegExp("["+wm+jo+cm+pm+"]"),vx=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,yx=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],_x=-1,Kt={};Kt[_t]=Kt[an]=Kt[Zt]=Kt[Cn]=Kt[hn]=Kt[Er]=Kt[ws]=Kt[pn]=Kt[ue]=!0,Kt[ie]=Kt[ge]=Kt[Ge]=Kt[Le]=Kt[ot]=Kt[Xe]=Kt[et]=Kt[W]=Kt[I]=Kt[K]=Kt[me]=Kt[ye]=Kt[ke]=Kt[Ae]=Kt[Ue]=!1;var Yt={};Yt[ie]=Yt[ge]=Yt[Ge]=Yt[ot]=Yt[Le]=Yt[Xe]=Yt[_t]=Yt[an]=Yt[Zt]=Yt[Cn]=Yt[hn]=Yt[I]=Yt[K]=Yt[me]=Yt[ye]=Yt[ke]=Yt[Ae]=Yt[Oe]=Yt[Er]=Yt[ws]=Yt[pn]=Yt[ue]=!0,Yt[et]=Yt[W]=Yt[Ue]=!1;var bx={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},wx={"&":"&","<":"<",">":">",'"':""","'":"'"},xx={"&":"&","<":"<",">":">",""":'"',"'":"'"},kx={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Sx=parseFloat,Tx=parseInt,Em=typeof window=="object"&&window&&window.Object===Object&&window,Ax=typeof self=="object"&&self&&self.Object===Object&&self,jn=Em||Ax||Function("return this")(),kd=t&&!t.nodeType&&t,Wi=kd&&!0&&e&&!e.nodeType&&e,Om=Wi&&Wi.exports===kd,Sd=Om&&Em.process,Wr=function(){try{var le=Wi&&Wi.require&&Wi.require("util").types;return le||Sd&&Sd.binding&&Sd.binding("util")}catch{}}(),Mm=Wr&&Wr.isArrayBuffer,Rm=Wr&&Wr.isDate,Dm=Wr&&Wr.isMap,Pm=Wr&&Wr.isRegExp,Lm=Wr&&Wr.isSet,Im=Wr&&Wr.isTypedArray;function Or(le,Se,ve){switch(ve.length){case 0:return le.call(Se);case 1:return le.call(Se,ve[0]);case 2:return le.call(Se,ve[0],ve[1]);case 3:return le.call(Se,ve[0],ve[1],ve[2])}return le.apply(Se,ve)}function Cx(le,Se,ve,Ke){for(var ut=-1,Rt=le==null?0:le.length;++ut-1}function Td(le,Se,ve){for(var Ke=-1,ut=le==null?0:le.length;++Ke-1;);return ve}function jm(le,Se){for(var ve=le.length;ve--&&Oa(Se,le[ve],0)>-1;);return ve}function Nx(le,Se){for(var ve=le.length,Ke=0;ve--;)le[ve]===Se&&++Ke;return Ke}var Vx=Od(bx),Fx=Od(wx);function $x(le){return"\\"+kx[le]}function Bx(le,Se){return le==null?n:le[Se]}function Ma(le){return gx.test(le)}function Hx(le){return vx.test(le)}function Ux(le){for(var Se,ve=[];!(Se=le.next()).done;)ve.push(Se.value);return ve}function Pd(le){var Se=-1,ve=Array(le.size);return le.forEach(function(Ke,ut){ve[++Se]=[ut,Ke]}),ve}function qm(le,Se){return function(ve){return le(Se(ve))}}function oi(le,Se){for(var ve=-1,Ke=le.length,ut=0,Rt=[];++ve-1}function Ok(i,l){var c=this.__data__,g=ou(c,i);return g<0?(++this.size,c.push([i,l])):c[g][1]=l,this}Is.prototype.clear=Tk,Is.prototype.delete=Ak,Is.prototype.get=Ck,Is.prototype.has=Ek,Is.prototype.set=Ok;function Ns(i){var l=-1,c=i==null?0:i.length;for(this.clear();++l=l?i:l)),i}function Gr(i,l,c,g,w,R){var Y,X=l&p,oe=l&m,Ce=l&y;if(c&&(Y=w?c(i,g,w,R):c(i)),Y!==n)return Y;if(!tn(i))return i;var Ee=dt(i);if(Ee){if(Y=PS(i),!X)return mr(i,Y)}else{var Re=Gn(i),je=Re==W||Re==A;if(pi(i))return Ag(i,X);if(Re==me||Re==ie||je&&!w){if(Y=oe||je?{}:Wg(i),!X)return oe?xS(i,Wk(Y,i)):wS(i,ng(Y,i))}else{if(!Yt[Re])return w?i:{};Y=LS(i,Re,X)}}R||(R=new ls);var Je=R.get(i);if(Je)return Je;R.set(i,Y),bv(i)?i.forEach(function(rt){Y.add(Gr(rt,l,c,rt,i,R))}):yv(i)&&i.forEach(function(rt,bt){Y.set(bt,Gr(rt,l,c,bt,i,R))});var nt=Ce?oe?af:sf:oe?vr:Vn,gt=Ee?n:nt(i);return Yr(gt||i,function(rt,bt){gt&&(bt=rt,rt=i[bt]),Il(Y,bt,Gr(rt,l,c,bt,i,R))}),Y}function Yk(i){var l=Vn(i);return function(c){return rg(c,i,l)}}function rg(i,l,c){var g=c.length;if(i==null)return!g;for(i=jt(i);g--;){var w=c[g],R=l[w],Y=i[w];if(Y===n&&!(w in i)||!R(Y))return!1}return!0}function sg(i,l,c){if(typeof i!="function")throw new zr(o);return Ul(function(){i.apply(n,c)},l)}function Nl(i,l,c,g){var w=-1,R=Wo,Y=!0,X=i.length,oe=[],Ce=l.length;if(!X)return oe;c&&(l=Xt(l,Mr(c))),g?(R=Td,Y=!1):l.length>=s&&(R=Ol,Y=!1,l=new Ki(l));e:for(;++ww?0:w+c),g=g===n||g>w?w:mt(g),g<0&&(g+=w),g=c>g?0:xv(g);c0&&c(X)?l>1?qn(X,l-1,c,g,w):li(w,X):g||(w[w.length]=X)}return w}var Bd=Dg(),lg=Dg(!0);function xs(i,l){return i&&Bd(i,l,Vn)}function Hd(i,l){return i&&lg(i,l,Vn)}function cu(i,l){return ai(l,function(c){return Hs(i[c])})}function Ji(i,l){l=fi(l,i);for(var c=0,g=l.length;i!=null&&cl}function Gk(i,l){return i!=null&&$t.call(i,l)}function Jk(i,l){return i!=null&&l in jt(i)}function Zk(i,l,c){return i>=Kn(l,c)&&i=120&&Ee.length>=120)?new Ki(Y&&Ee):n}Ee=i[0];var Re=-1,je=X[0];e:for(;++Re-1;)X!==i&&tu.call(X,oe,1),tu.call(i,oe,1);return i}function yg(i,l){for(var c=i?l.length:0,g=c-1;c--;){var w=l[c];if(c==g||w!==R){var R=w;Bs(w)?tu.call(i,w,1):Zd(i,w)}}return i}function Kd(i,l){return i+su(Xm()*(l-i+1))}function cS(i,l,c,g){for(var w=-1,R=On(ru((l-i)/(c||1)),0),Y=ve(R);R--;)Y[g?R:++w]=i,i+=c;return Y}function Gd(i,l){var c="";if(!i||l<1||l>J)return c;do l%2&&(c+=i),l=su(l/2),l&&(i+=i);while(l);return c}function yt(i,l){return hf(Kg(i,l,yr),i+"")}function dS(i){return tg(Ha(i))}function fS(i,l){var c=Ha(i);return wu(c,Gi(l,0,c.length))}function $l(i,l,c,g){if(!tn(i))return i;l=fi(l,i);for(var w=-1,R=l.length,Y=R-1,X=i;X!=null&&++ww?0:w+l),c=c>w?w:c,c<0&&(c+=w),w=l>c?0:c-l>>>0,l>>>=0;for(var R=ve(w);++g>>1,Y=i[R];Y!==null&&!Dr(Y)&&(c?Y<=l:Y=s){var Ce=l?null:AS(i);if(Ce)return zo(Ce);Y=!1,w=Ol,oe=new Ki}else oe=l?[]:X;e:for(;++g=g?i:Jr(i,l,c)}var Tg=rk||function(i){return jn.clearTimeout(i)};function Ag(i,l){if(l)return i.slice();var c=i.length,g=zm?zm(c):new i.constructor(c);return i.copy(g),g}function tf(i){var l=new i.constructor(i.byteLength);return new Qo(l).set(new Qo(i)),l}function vS(i,l){var c=l?tf(i.buffer):i.buffer;return new i.constructor(c,i.byteOffset,i.byteLength)}function yS(i){var l=new i.constructor(i.source,um.exec(i));return l.lastIndex=i.lastIndex,l}function _S(i){return Ll?jt(Ll.call(i)):{}}function Cg(i,l){var c=l?tf(i.buffer):i.buffer;return new i.constructor(c,i.byteOffset,i.length)}function Eg(i,l){if(i!==l){var c=i!==n,g=i===null,w=i===i,R=Dr(i),Y=l!==n,X=l===null,oe=l===l,Ce=Dr(l);if(!X&&!Ce&&!R&&i>l||R&&Y&&oe&&!X&&!Ce||g&&Y&&oe||!c&&oe||!w)return 1;if(!g&&!R&&!Ce&&i=X)return oe;var Ce=c[g];return oe*(Ce=="desc"?-1:1)}}return i.index-l.index}function Og(i,l,c,g){for(var w=-1,R=i.length,Y=c.length,X=-1,oe=l.length,Ce=On(R-Y,0),Ee=ve(oe+Ce),Re=!g;++X1?c[w-1]:n,Y=w>2?c[2]:n;for(R=i.length>3&&typeof R=="function"?(w--,R):n,Y&&ar(c[0],c[1],Y)&&(R=w<3?n:R,w=1),l=jt(l);++g-1?w[R?l[Y]:Y]:n}}function Ig(i){return $s(function(l){var c=l.length,g=c,w=Kr.prototype.thru;for(i&&l.reverse();g--;){var R=l[g];if(typeof R!="function")throw new zr(o);if(w&&!Y&&_u(R)=="wrapper")var Y=new Kr([],!0)}for(g=Y?g:c;++g1&&Ct.reverse(),Ee&&oeX))return!1;var Ce=R.get(i),Ee=R.get(l);if(Ce&&Ee)return Ce==l&&Ee==i;var Re=-1,je=!0,Je=c&b?new Ki:n;for(R.set(i,l),R.set(l,i);++Re1?"& ":"")+l[g],l=l.join(c>2?", ":" "),i.replace(Vw,`{ -/* [wrapped with `+l+`] */ -`)}function NS(i){return dt(i)||Qi(i)||!!(Jm&&i&&i[Jm])}function Bs(i,l){var c=typeof i;return l=l??J,!!l&&(c=="number"||c!="symbol"&&Kw.test(i))&&i>-1&&i%1==0&&i0){if(++l>=ee)return arguments[0]}else l=0;return i.apply(n,arguments)}}function wu(i,l){var c=-1,g=i.length,w=g-1;for(l=l===n?g:l;++c1?i[l-1]:n;return c=typeof c=="function"?(i.pop(),c):n,av(i,c)});function lv(i){var l=E(i);return l.__chain__=!0,l}function zT(i,l){return l(i),i}function xu(i,l){return l(i)}var KT=$s(function(i){var l=i.length,c=l?i[0]:0,g=this.__wrapped__,w=function(R){return $d(R,i)};return l>1||this.__actions__.length||!(g instanceof kt)||!Bs(c)?this.thru(w):(g=g.slice(c,+c+(l?1:0)),g.__actions__.push({func:xu,args:[w],thisArg:n}),new Kr(g,this.__chain__).thru(function(R){return l&&!R.length&&R.push(n),R}))});function GT(){return lv(this)}function JT(){return new Kr(this.value(),this.__chain__)}function ZT(){this.__values__===n&&(this.__values__=wv(this.value()));var i=this.__index__>=this.__values__.length,l=i?n:this.__values__[this.__index__++];return{done:i,value:l}}function XT(){return this}function QT(i){for(var l,c=this;c instanceof lu;){var g=ev(c);g.__index__=0,g.__values__=n,l?w.__wrapped__=g:l=g;var w=g;c=c.__wrapped__}return w.__wrapped__=i,l}function e2(){var i=this.__wrapped__;if(i instanceof kt){var l=i;return this.__actions__.length&&(l=new kt(this)),l=l.reverse(),l.__actions__.push({func:xu,args:[pf],thisArg:n}),new Kr(l,this.__chain__)}return this.thru(pf)}function t2(){return kg(this.__wrapped__,this.__actions__)}var n2=pu(function(i,l,c){$t.call(i,c)?++i[c]:Vs(i,c,1)});function r2(i,l,c){var g=dt(i)?Nm:zk;return c&&ar(i,l,c)&&(l=n),g(i,tt(l,3))}function s2(i,l){var c=dt(i)?ai:ag;return c(i,tt(l,3))}var i2=Lg(tv),a2=Lg(nv);function l2(i,l){return qn(ku(i,l),1)}function o2(i,l){return qn(ku(i,l),k)}function u2(i,l,c){return c=c===n?1:mt(c),qn(ku(i,l),c)}function ov(i,l){var c=dt(i)?Yr:ci;return c(i,tt(l,3))}function uv(i,l){var c=dt(i)?Ex:ig;return c(i,tt(l,3))}var c2=pu(function(i,l,c){$t.call(i,c)?i[c].push(l):Vs(i,c,[l])});function d2(i,l,c,g){i=gr(i)?i:Ha(i),c=c&&!g?mt(c):0;var w=i.length;return c<0&&(c=On(w+c,0)),Eu(i)?c<=w&&i.indexOf(l,c)>-1:!!w&&Oa(i,l,c)>-1}var f2=yt(function(i,l,c){var g=-1,w=typeof l=="function",R=gr(i)?ve(i.length):[];return ci(i,function(Y){R[++g]=w?Or(l,Y,c):Vl(Y,l,c)}),R}),h2=pu(function(i,l,c){Vs(i,c,l)});function ku(i,l){var c=dt(i)?Xt:fg;return c(i,tt(l,3))}function p2(i,l,c,g){return i==null?[]:(dt(l)||(l=l==null?[]:[l]),c=g?n:c,dt(c)||(c=c==null?[]:[c]),gg(i,l,c))}var m2=pu(function(i,l,c){i[c?0:1].push(l)},function(){return[[],[]]});function g2(i,l,c){var g=dt(i)?Ad:Bm,w=arguments.length<3;return g(i,tt(l,4),c,w,ci)}function v2(i,l,c){var g=dt(i)?Ox:Bm,w=arguments.length<3;return g(i,tt(l,4),c,w,ig)}function y2(i,l){var c=dt(i)?ai:ag;return c(i,Au(tt(l,3)))}function _2(i){var l=dt(i)?tg:dS;return l(i)}function b2(i,l,c){(c?ar(i,l,c):l===n)?l=1:l=mt(l);var g=dt(i)?Uk:fS;return g(i,l)}function w2(i){var l=dt(i)?jk:pS;return l(i)}function x2(i){if(i==null)return 0;if(gr(i))return Eu(i)?Ra(i):i.length;var l=Gn(i);return l==I||l==ke?i.size:Wd(i).length}function k2(i,l,c){var g=dt(i)?Cd:mS;return c&&ar(i,l,c)&&(l=n),g(i,tt(l,3))}var S2=yt(function(i,l){if(i==null)return[];var c=l.length;return c>1&&ar(i,l[0],l[1])?l=[]:c>2&&ar(l[0],l[1],l[2])&&(l=[l[0]]),gg(i,qn(l,1),[])}),Su=sk||function(){return jn.Date.now()};function T2(i,l){if(typeof l!="function")throw new zr(o);return i=mt(i),function(){if(--i<1)return l.apply(this,arguments)}}function cv(i,l,c){return l=c?n:l,l=i&&l==null?i.length:l,Fs(i,$,n,n,n,n,l)}function dv(i,l){var c;if(typeof l!="function")throw new zr(o);return i=mt(i),function(){return--i>0&&(c=l.apply(this,arguments)),i<=1&&(l=n),c}}var gf=yt(function(i,l,c){var g=O;if(c.length){var w=oi(c,$a(gf));g|=F}return Fs(i,g,l,c,w)}),fv=yt(function(i,l,c){var g=O|H;if(c.length){var w=oi(c,$a(fv));g|=F}return Fs(l,g,i,c,w)});function hv(i,l,c){l=c?n:l;var g=Fs(i,x,n,n,n,n,n,l);return g.placeholder=hv.placeholder,g}function pv(i,l,c){l=c?n:l;var g=Fs(i,C,n,n,n,n,n,l);return g.placeholder=pv.placeholder,g}function mv(i,l,c){var g,w,R,Y,X,oe,Ce=0,Ee=!1,Re=!1,je=!0;if(typeof i!="function")throw new zr(o);l=Xr(l)||0,tn(c)&&(Ee=!!c.leading,Re="maxWait"in c,R=Re?On(Xr(c.maxWait)||0,l):R,je="trailing"in c?!!c.trailing:je);function Je(gn){var us=g,js=w;return g=w=n,Ce=gn,Y=i.apply(js,us),Y}function nt(gn){return Ce=gn,X=Ul(bt,l),Ee?Je(gn):Y}function gt(gn){var us=gn-oe,js=gn-Ce,Lv=l-us;return Re?Kn(Lv,R-js):Lv}function rt(gn){var us=gn-oe,js=gn-Ce;return oe===n||us>=l||us<0||Re&&js>=R}function bt(){var gn=Su();if(rt(gn))return Ct(gn);X=Ul(bt,gt(gn))}function Ct(gn){return X=n,je&&g?Je(gn):(g=w=n,Y)}function Pr(){X!==n&&Tg(X),Ce=0,g=oe=w=X=n}function lr(){return X===n?Y:Ct(Su())}function Lr(){var gn=Su(),us=rt(gn);if(g=arguments,w=this,oe=gn,us){if(X===n)return nt(oe);if(Re)return Tg(X),X=Ul(bt,l),Je(oe)}return X===n&&(X=Ul(bt,l)),Y}return Lr.cancel=Pr,Lr.flush=lr,Lr}var A2=yt(function(i,l){return sg(i,1,l)}),C2=yt(function(i,l,c){return sg(i,Xr(l)||0,c)});function E2(i){return Fs(i,T)}function Tu(i,l){if(typeof i!="function"||l!=null&&typeof l!="function")throw new zr(o);var c=function(){var g=arguments,w=l?l.apply(this,g):g[0],R=c.cache;if(R.has(w))return R.get(w);var Y=i.apply(this,g);return c.cache=R.set(w,Y)||R,Y};return c.cache=new(Tu.Cache||Ns),c}Tu.Cache=Ns;function Au(i){if(typeof i!="function")throw new zr(o);return function(){var l=arguments;switch(l.length){case 0:return!i.call(this);case 1:return!i.call(this,l[0]);case 2:return!i.call(this,l[0],l[1]);case 3:return!i.call(this,l[0],l[1],l[2])}return!i.apply(this,l)}}function O2(i){return dv(2,i)}var M2=gS(function(i,l){l=l.length==1&&dt(l[0])?Xt(l[0],Mr(tt())):Xt(qn(l,1),Mr(tt()));var c=l.length;return yt(function(g){for(var w=-1,R=Kn(g.length,c);++w=l}),Qi=ug(function(){return arguments}())?ug:function(i){return ln(i)&&$t.call(i,"callee")&&!Gm.call(i,"callee")},dt=ve.isArray,W2=Mm?Mr(Mm):Qk;function gr(i){return i!=null&&Cu(i.length)&&!Hs(i)}function mn(i){return ln(i)&&gr(i)}function Y2(i){return i===!0||i===!1||ln(i)&&ir(i)==Le}var pi=ak||Ef,z2=Rm?Mr(Rm):eS;function K2(i){return ln(i)&&i.nodeType===1&&!jl(i)}function G2(i){if(i==null)return!0;if(gr(i)&&(dt(i)||typeof i=="string"||typeof i.splice=="function"||pi(i)||Ba(i)||Qi(i)))return!i.length;var l=Gn(i);if(l==I||l==ke)return!i.size;if(Hl(i))return!Wd(i).length;for(var c in i)if($t.call(i,c))return!1;return!0}function J2(i,l){return Fl(i,l)}function Z2(i,l,c){c=typeof c=="function"?c:n;var g=c?c(i,l):n;return g===n?Fl(i,l,n,c):!!g}function yf(i){if(!ln(i))return!1;var l=ir(i);return l==et||l==be||typeof i.message=="string"&&typeof i.name=="string"&&!jl(i)}function X2(i){return typeof i=="number"&&Zm(i)}function Hs(i){if(!tn(i))return!1;var l=ir(i);return l==W||l==A||l==z||l==ce}function vv(i){return typeof i=="number"&&i==mt(i)}function Cu(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=J}function tn(i){var l=typeof i;return i!=null&&(l=="object"||l=="function")}function ln(i){return i!=null&&typeof i=="object"}var yv=Dm?Mr(Dm):nS;function Q2(i,l){return i===l||qd(i,l,of(l))}function eA(i,l,c){return c=typeof c=="function"?c:n,qd(i,l,of(l),c)}function tA(i){return _v(i)&&i!=+i}function nA(i){if($S(i))throw new ut(a);return cg(i)}function rA(i){return i===null}function sA(i){return i==null}function _v(i){return typeof i=="number"||ln(i)&&ir(i)==K}function jl(i){if(!ln(i)||ir(i)!=me)return!1;var l=eu(i);if(l===null)return!0;var c=$t.call(l,"constructor")&&l.constructor;return typeof c=="function"&&c instanceof c&&Jo.call(c)==ek}var _f=Pm?Mr(Pm):rS;function iA(i){return vv(i)&&i>=-9007199254740991&&i<=J}var bv=Lm?Mr(Lm):sS;function Eu(i){return typeof i=="string"||!dt(i)&&ln(i)&&ir(i)==Ae}function Dr(i){return typeof i=="symbol"||ln(i)&&ir(i)==Oe}var Ba=Im?Mr(Im):iS;function aA(i){return i===n}function lA(i){return ln(i)&&Gn(i)==Ue}function oA(i){return ln(i)&&ir(i)==We}var uA=yu(Yd),cA=yu(function(i,l){return i<=l});function wv(i){if(!i)return[];if(gr(i))return Eu(i)?as(i):mr(i);if(Ml&&i[Ml])return Ux(i[Ml]());var l=Gn(i),c=l==I?Pd:l==ke?zo:Ha;return c(i)}function Us(i){if(!i)return i===0?i:0;if(i=Xr(i),i===k||i===-1/0){var l=i<0?-1:1;return l*_e}return i===i?i:0}function mt(i){var l=Us(i),c=l%1;return l===l?c?l-c:l:0}function xv(i){return i?Gi(mt(i),0,Ne):0}function Xr(i){if(typeof i=="number")return i;if(Dr(i))return Me;if(tn(i)){var l=typeof i.valueOf=="function"?i.valueOf():i;i=tn(l)?l+"":l}if(typeof i!="string")return i===0?i:+i;i=Hm(i);var c=Ww.test(i);return c||zw.test(i)?Tx(i.slice(2),c?2:8):qw.test(i)?Me:+i}function kv(i){return ks(i,vr(i))}function dA(i){return i?Gi(mt(i),-9007199254740991,J):i===0?i:0}function Vt(i){return i==null?"":Rr(i)}var fA=Va(function(i,l){if(Hl(l)||gr(l)){ks(l,Vn(l),i);return}for(var c in l)$t.call(l,c)&&Il(i,c,l[c])}),Sv=Va(function(i,l){ks(l,vr(l),i)}),Ou=Va(function(i,l,c,g){ks(l,vr(l),i,g)}),hA=Va(function(i,l,c,g){ks(l,Vn(l),i,g)}),pA=$s($d);function mA(i,l){var c=Na(i);return l==null?c:ng(c,l)}var gA=yt(function(i,l){i=jt(i);var c=-1,g=l.length,w=g>2?l[2]:n;for(w&&ar(l[0],l[1],w)&&(g=1);++c1),R}),ks(i,af(i),c),g&&(c=Gr(c,p|m|y,CS));for(var w=l.length;w--;)Zd(c,l[w]);return c});function LA(i,l){return Av(i,Au(tt(l)))}var IA=$s(function(i,l){return i==null?{}:oS(i,l)});function Av(i,l){if(i==null)return{};var c=Xt(af(i),function(g){return[g]});return l=tt(l),vg(i,c,function(g,w){return l(g,w[0])})}function NA(i,l,c){l=fi(l,i);var g=-1,w=l.length;for(w||(w=1,i=n);++gl){var g=i;i=l,l=g}if(c||i%1||l%1){var w=Xm();return Kn(i+w*(l-i+Sx("1e-"+((w+"").length-1))),l)}return Kd(i,l)}var zA=Fa(function(i,l,c){return l=l.toLowerCase(),i+(c?Ov(l):l)});function Ov(i){return xf(Vt(i).toLowerCase())}function Mv(i){return i=Vt(i),i&&i.replace(Gw,Vx).replace(px,"")}function KA(i,l,c){i=Vt(i),l=Rr(l);var g=i.length;c=c===n?g:Gi(mt(c),0,g);var w=c;return c-=l.length,c>=0&&i.slice(c,w)==l}function GA(i){return i=Vt(i),i&&Ls.test(i)?i.replace(Nn,Fx):i}function JA(i){return i=Vt(i),i&&Iw.test(i)?i.replace(gd,"\\$&"):i}var ZA=Fa(function(i,l,c){return i+(c?"-":"")+l.toLowerCase()}),XA=Fa(function(i,l,c){return i+(c?" ":"")+l.toLowerCase()}),QA=Pg("toLowerCase");function eC(i,l,c){i=Vt(i),l=mt(l);var g=l?Ra(i):0;if(!l||g>=l)return i;var w=(l-g)/2;return vu(su(w),c)+i+vu(ru(w),c)}function tC(i,l,c){i=Vt(i),l=mt(l);var g=l?Ra(i):0;return l&&g>>0,c?(i=Vt(i),i&&(typeof l=="string"||l!=null&&!_f(l))&&(l=Rr(l),!l&&Ma(i))?hi(as(i),0,c):i.split(l,c)):[]}var oC=Fa(function(i,l,c){return i+(c?" ":"")+xf(l)});function uC(i,l,c){return i=Vt(i),c=c==null?0:Gi(mt(c),0,i.length),l=Rr(l),i.slice(c,c+l.length)==l}function cC(i,l,c){var g=E.templateSettings;c&&ar(i,l,c)&&(l=n),i=Vt(i),l=Ou({},l,g,Bg);var w=Ou({},l.imports,g.imports,Bg),R=Vn(w),Y=Dd(w,R),X,oe,Ce=0,Ee=l.interpolate||Uo,Re="__p += '",je=Ld((l.escape||Uo).source+"|"+Ee.source+"|"+(Ee===is?jw:Uo).source+"|"+(l.evaluate||Uo).source+"|$","g"),Je="//# sourceURL="+($t.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++_x+"]")+` -`;i.replace(je,function(rt,bt,Ct,Pr,lr,Lr){return Ct||(Ct=Pr),Re+=i.slice(Ce,Lr).replace(Jw,$x),bt&&(X=!0,Re+=`' + -__e(`+bt+`) + -'`),lr&&(oe=!0,Re+=`'; -`+lr+`; -__p += '`),Ct&&(Re+=`' + -((__t = (`+Ct+`)) == null ? '' : __t) + -'`),Ce=Lr+rt.length,rt}),Re+=`'; -`;var nt=$t.call(l,"variable")&&l.variable;if(!nt)Re=`with (obj) { -`+Re+` -} -`;else if(Hw.test(nt))throw new ut(u);Re=(oe?Re.replace(Fe,""):Re).replace(xe,"$1").replace($e,"$1;"),Re="function("+(nt||"obj")+`) { -`+(nt?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(X?", __e = _.escape":"")+(oe?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+Re+`return __p -}`;var gt=Dv(function(){return Rt(R,Je+"return "+Re).apply(n,Y)});if(gt.source=Re,yf(gt))throw gt;return gt}function dC(i){return Vt(i).toLowerCase()}function fC(i){return Vt(i).toUpperCase()}function hC(i,l,c){if(i=Vt(i),i&&(c||l===n))return Hm(i);if(!i||!(l=Rr(l)))return i;var g=as(i),w=as(l),R=Um(g,w),Y=jm(g,w)+1;return hi(g,R,Y).join("")}function pC(i,l,c){if(i=Vt(i),i&&(c||l===n))return i.slice(0,Wm(i)+1);if(!i||!(l=Rr(l)))return i;var g=as(i),w=jm(g,as(l))+1;return hi(g,0,w).join("")}function mC(i,l,c){if(i=Vt(i),i&&(c||l===n))return i.replace(vd,"");if(!i||!(l=Rr(l)))return i;var g=as(i),w=Um(g,as(l));return hi(g,w).join("")}function gC(i,l){var c=B,g=se;if(tn(l)){var w="separator"in l?l.separator:w;c="length"in l?mt(l.length):c,g="omission"in l?Rr(l.omission):g}i=Vt(i);var R=i.length;if(Ma(i)){var Y=as(i);R=Y.length}if(c>=R)return i;var X=c-Ra(g);if(X<1)return g;var oe=Y?hi(Y,0,X).join(""):i.slice(0,X);if(w===n)return oe+g;if(Y&&(X+=oe.length-X),_f(w)){if(i.slice(X).search(w)){var Ce,Ee=oe;for(w.global||(w=Ld(w.source,Vt(um.exec(w))+"g")),w.lastIndex=0;Ce=w.exec(Ee);)var Re=Ce.index;oe=oe.slice(0,Re===n?X:Re)}}else if(i.indexOf(Rr(w),X)!=X){var je=oe.lastIndexOf(w);je>-1&&(oe=oe.slice(0,je))}return oe+g}function vC(i){return i=Vt(i),i&&pr.test(i)?i.replace(qe,Yx):i}var yC=Fa(function(i,l,c){return i+(c?" ":"")+l.toUpperCase()}),xf=Pg("toUpperCase");function Rv(i,l,c){return i=Vt(i),l=c?n:l,l===n?Hx(i)?Gx(i):Dx(i):i.match(l)||[]}var Dv=yt(function(i,l){try{return Or(i,n,l)}catch(c){return yf(c)?c:new ut(c)}}),_C=$s(function(i,l){return Yr(l,function(c){c=Ss(c),Vs(i,c,gf(i[c],i))}),i});function bC(i){var l=i==null?0:i.length,c=tt();return i=l?Xt(i,function(g){if(typeof g[1]!="function")throw new zr(o);return[c(g[0]),g[1]]}):[],yt(function(g){for(var w=-1;++wJ)return[];var c=Ne,g=Kn(i,Ne);l=tt(l),i-=Ne;for(var w=Rd(g,l);++c0||l<0)?new kt(c):(i<0?c=c.takeRight(-i):i&&(c=c.drop(i)),l!==n&&(l=mt(l),c=l<0?c.dropRight(-l):c.take(l-i)),c)},kt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},kt.prototype.toArray=function(){return this.take(Ne)},xs(kt.prototype,function(i,l){var c=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),w=E[g?"take"+(l=="last"?"Right":""):l],R=g||/^find/.test(l);w&&(E.prototype[l]=function(){var Y=this.__wrapped__,X=g?[1]:arguments,oe=Y instanceof kt,Ce=X[0],Ee=oe||dt(Y),Re=function(bt){var Ct=w.apply(E,li([bt],X));return g&&je?Ct[0]:Ct};Ee&&c&&typeof Ce=="function"&&Ce.length!=1&&(oe=Ee=!1);var je=this.__chain__,Je=!!this.__actions__.length,nt=R&&!je,gt=oe&&!Je;if(!R&&Ee){Y=gt?Y:new kt(this);var rt=i.apply(Y,X);return rt.__actions__.push({func:xu,args:[Re],thisArg:n}),new Kr(rt,je)}return nt&>?i.apply(this,X):(rt=this.thru(Re),nt?g?rt.value()[0]:rt.value():rt)})}),Yr(["pop","push","shift","sort","splice","unshift"],function(i){var l=Ko[i],c=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",g=/^(?:pop|shift)$/.test(i);E.prototype[i]=function(){var w=arguments;if(g&&!this.__chain__){var R=this.value();return l.apply(dt(R)?R:[],w)}return this[c](function(Y){return l.apply(dt(Y)?Y:[],w)})}}),xs(kt.prototype,function(i,l){var c=E[l];if(c){var g=c.name+"";$t.call(Ia,g)||(Ia[g]=[]),Ia[g].push({name:l,func:c})}}),Ia[mu(n,H).name]=[{name:"wrapper",func:n}],kt.prototype.clone=vk,kt.prototype.reverse=yk,kt.prototype.value=_k,E.prototype.at=KT,E.prototype.chain=GT,E.prototype.commit=JT,E.prototype.next=ZT,E.prototype.plant=QT,E.prototype.reverse=e2,E.prototype.toJSON=E.prototype.valueOf=E.prototype.value=t2,E.prototype.first=E.prototype.head,Ml&&(E.prototype[Ml]=XT),E},Da=Jx();Wi?((Wi.exports=Da)._=Da,kd._=Da):jn._=Da}).call(N1)})(Ec,Ec.exports);var cL=Ec.exports;const Bn=uL(cL);function dL(e,t){switch(e.replace("_","-")){case"af":case"af-ZA":case"bn":case"bn-BD":case"bn-IN":case"bg":case"bg-BG":case"ca":case"ca-AD":case"ca-ES":case"ca-FR":case"ca-IT":case"da":case"da-DK":case"de":case"de-AT":case"de-BE":case"de-CH":case"de-DE":case"de-LI":case"de-LU":case"el":case"el-CY":case"el-GR":case"en":case"en-AG":case"en-AU":case"en-BW":case"en-CA":case"en-DK":case"en-GB":case"en-HK":case"en-IE":case"en-IN":case"en-NG":case"en-NZ":case"en-PH":case"en-SG":case"en-US":case"en-ZA":case"en-ZM":case"en-ZW":case"eo":case"eo-US":case"es":case"es-AR":case"es-BO":case"es-CL":case"es-CO":case"es-CR":case"es-CU":case"es-DO":case"es-EC":case"es-ES":case"es-GT":case"es-HN":case"es-MX":case"es-NI":case"es-PA":case"es-PE":case"es-PR":case"es-PY":case"es-SV":case"es-US":case"es-UY":case"es-VE":case"et":case"et-EE":case"eu":case"eu-ES":case"eu-FR":case"fa":case"fa-IR":case"fi":case"fi-FI":case"fo":case"fo-FO":case"fur":case"fur-IT":case"fy":case"fy-DE":case"fy-NL":case"gl":case"gl-ES":case"gu":case"gu-IN":case"ha":case"ha-NG":case"he":case"he-IL":case"hu":case"hu-HU":case"is":case"is-IS":case"it":case"it-CH":case"it-IT":case"ku":case"ku-TR":case"lb":case"lb-LU":case"ml":case"ml-IN":case"mn":case"mn-MN":case"mr":case"mr-IN":case"nah":case"nb":case"nb-NO":case"ne":case"ne-NP":case"nl":case"nl-AW":case"nl-BE":case"nl-NL":case"nn":case"nn-NO":case"no":case"om":case"om-ET":case"om-KE":case"or":case"or-IN":case"pa":case"pa-IN":case"pa-PK":case"pap":case"pap-AN":case"pap-AW":case"pap-CW":case"ps":case"ps-AF":case"pt":case"pt-BR":case"pt-PT":case"so":case"so-DJ":case"so-ET":case"so-KE":case"so-SO":case"sq":case"sq-AL":case"sq-MK":case"sv":case"sv-FI":case"sv-SE":case"sw":case"sw-KE":case"sw-TZ":case"ta":case"ta-IN":case"ta-LK":case"te":case"te-IN":case"tk":case"tk-TM":case"ur":case"ur-IN":case"ur-PK":case"zu":case"zu-ZA":return t===1?0:1;case"am":case"am-ET":case"bh":case"fil":case"fil-PH":case"fr":case"fr-BE":case"fr-CA":case"fr-CH":case"fr-FR":case"fr-LU":case"gun":case"hi":case"hi-IN":case"hy":case"hy-AM":case"ln":case"ln-CD":case"mg":case"mg-MG":case"nso":case"nso-ZA":case"ti":case"ti-ER":case"ti-ET":case"wa":case"wa-BE":case"xbr":return t===0||t===1?0:1;case"be":case"be-BY":case"bs":case"bs-BA":case"hr":case"hr-HR":case"ru":case"ru-RU":case"ru-UA":case"sr":case"sr-ME":case"sr-RS":case"uk":case"uk-UA":return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2;case"cs":case"cs-CZ":case"sk":case"sk-SK":return t==1?0:t>=2&&t<=4?1:2;case"ga":case"ga-IE":return t==1?0:t==2?1:2;case"lt":case"lt-LT":return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2;case"sl":case"sl-SI":return t%100==1?0:t%100==2?1:t%100==3||t%100==4?2:3;case"mk":case"mk-MK":return t%10==1?0:1;case"mt":case"mt-MT":return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3;case"lv":case"lv-LV":return t==0?0:t%10==1&&t%100!=11?1:2;case"pl":case"pl-PL":return t==1?0:t%10>=2&&t%10<=4&&(t%100<12||t%100>14)?1:2;case"cy":case"cy-GB":return t==1?0:t==2?1:t==8||t==11?2:3;case"ro":case"ro-RO":return t==1?0:t==0||t%100>0&&t%100<20?1:2;case"ar":case"ar-AE":case"ar-BH":case"ar-DZ":case"ar-EG":case"ar-IN":case"ar-IQ":case"ar-JO":case"ar-KW":case"ar-LB":case"ar-LY":case"ar-MA":case"ar-OM":case"ar-QA":case"ar-SA":case"ar-SD":case"ar-SS":case"ar-SY":case"ar-TN":case"ar-YE":return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11&&t%100<=99?4:5;default:return 0}}function fL(e,t,n){let r=e.split("|");const s=hL(r,t);if(s!==null)return s.trim();r=mL(r);const a=dL(n,t);return r.length===1||!r[a]?r[0]:r[a]}function hL(e,t){for(const n of e){let r=pL(n,t);if(r!==null)return r}return null}function pL(e,t){const n=e.match(/^[\{\[]([^\[\]\{\}]*)[\}\]](.*)/s)||[];if(n.length!==3)return null;const r=n[1],s=n[2];if(r.includes(",")){let[a,o]=r.split(",");if(o==="*"&&t>=parseFloat(a))return s;if(a==="*"&&t<=parseFloat(o))return s;if(t>=parseFloat(a)&&t<=parseFloat(o))return s}return parseFloat(r)===t?s:null}function mL(e){return e.map(t=>t.replace(/^[\{\[]([^\[\]\{\}]*)[\}\]]/,""))}const Yf=(e,t,n={})=>{try{return e(t)}catch{return n}},zf=async(e,t={})=>{try{return(await e).default||t}catch{return t}},gL={};function t0(e){return e||vL()||yL()}function vL(){return typeof process<"u"}function yL(){return typeof gL<"u"}const Za=typeof window>"u";let Wa=null;const n0={lang:!Za&&document.documentElement.lang?document.documentElement.lang.replace("-","_"):null,fallbackLang:"en",fallbackMissingTranslations:!1,resolve:e=>new Promise(t=>t({default:{}})),onLoad:e=>{}},_L={shared:!0};function Pe(e,t={}){return Nr.getSharedInstance().trans(e,t)}const bL={install(e,t={}){t={..._L,...t};const n=t.shared?Nr.getSharedInstance(t,!0):new Nr(t);e.config.globalProperties.$t=(r,s)=>n.trans(r,s),e.config.globalProperties.$tChoice=(r,s,a)=>n.transChoice(r,s,a),e.provide("i18n",n)}};class Nr{constructor(t={}){this.activeMessages=Hr({}),this.fallbackMessages=Hr({}),this.reset=()=>{Nr.loaded=[],this.options=n0;for(const[n]of Object.entries(this.activeMessages))this.activeMessages[n]=null;this===Wa&&(Wa=null)},this.options={...n0,...t},this.options.fallbackMissingTranslations?this.loadFallbackLanguage():this.load()}setOptions(t={},n=!1){return this.options={...this.options,...t},n&&this.load(),this}load(){this[Za?"loadLanguage":"loadLanguageAsync"](this.getActiveLanguage())}loadFallbackLanguage(){if(!Za){this.resolveLangAsync(this.options.resolve,this.options.fallbackLang).then(({default:n})=>{this.applyFallbackLanguage(this.options.fallbackLang,n),this.load()});return}const{default:t}=this.resolveLang(this.options.resolve,this.options.fallbackLang);this.applyFallbackLanguage(this.options.fallbackLang,t),this.loadLanguage(this.getActiveLanguage())}loadLanguage(t,n=!1){const r=Nr.loaded.find(a=>a.lang===t);if(r){this.setLanguage(r);return}const{default:s}=this.resolveLang(this.options.resolve,t);this.applyLanguage(t,s,n,this.loadLanguage)}loadLanguageAsync(t,n=!1,r=!1){var a;r||((a=this.abortController)==null||a.abort(),this.abortController=new AbortController);const s=Nr.loaded.find(o=>o.lang===t);return s?Promise.resolve(this.setLanguage(s)):new Promise((o,u)=>{this.abortController.signal.addEventListener("abort",()=>{o()}),this.resolveLangAsync(this.options.resolve,t).then(({default:d})=>{o(this.applyLanguage(t,d,n,this.loadLanguageAsync))})})}resolveLang(t,n,r={}){return Object.keys(r).length||(r=Yf(t,n)),t0(Za)?{default:{...r,...Yf(t,`php_${n}`)}}:{default:r}}async resolveLangAsync(t,n){let r=Yf(t,n);if(!(r instanceof Promise))return this.resolveLang(t,n,r);if(t0(Za)){const s=await zf(t(`php_${n}`)),a=await zf(r);return new Promise(o=>o({default:{...s,...a}}))}return new Promise(async s=>s({default:await zf(r)}))}applyLanguage(t,n,r=!1,s){if(Object.keys(n).length<1){if(/[-_]/g.test(t)&&!r)return s.call(this,t.replace(/[-_]/g,o=>o==="-"?"_":"-"),!0,!0);if(t!==this.options.fallbackLang)return s.call(this,this.options.fallbackLang,!1,!0)}const a={lang:t,messages:n};return this.addLoadedLang(a),this.setLanguage(a)}applyFallbackLanguage(t,n){for(const[r,s]of Object.entries(n))this.fallbackMessages[r]=s;this.addLoadedLang({lang:this.options.fallbackLang,messages:n})}addLoadedLang(t){const n=Nr.loaded.findIndex(r=>r.lang===t.lang);if(n!==-1){Nr.loaded[n]=t;return}Nr.loaded.push(t)}setLanguage({lang:t,messages:n}){Za||document.documentElement.setAttribute("lang",t.replace("_","-")),this.options.lang=t;for(const[r,s]of Object.entries(n))this.activeMessages[r]=s;for(const[r,s]of Object.entries(this.fallbackMessages))(!this.isValid(n[r])||this.activeMessages[r]===r)&&(this.activeMessages[r]=s);for(const[r]of Object.entries(this.activeMessages))!this.isValid(n[r])&&!this.isValid(this.fallbackMessages[r])&&(this.activeMessages[r]=null);return this.options.onLoad(t),t}getActiveLanguage(){return this.options.lang||this.options.fallbackLang}isLoaded(t){return t??(t=this.getActiveLanguage()),Nr.loaded.some(n=>n.lang.replace(/[-_]/g,"-")===t.replace(/[-_]/g,"-"))}trans(t,n={}){return this.wTrans(t,n).value}wTrans(t,n={}){return db(()=>{let r=this.findTranslation(t);this.isValid(r)||(r=this.findTranslation(t.replace(/\//g,"."))),this.activeMessages[t]=this.isValid(r)?r:t}),pe(()=>this.makeReplacements(this.activeMessages[t],n))}transChoice(t,n,r={}){return this.wTransChoice(t,n,r).value}wTransChoice(t,n,r={}){const s=this.wTrans(t,r);return r.count=n.toString(),pe(()=>this.makeReplacements(fL(s.value,n,this.options.lang),r))}findTranslation(t){if(this.isValid(this.activeMessages[t]))return this.activeMessages[t];if(this.activeMessages[`${t}.0`]!==void 0){const r=Object.entries(this.activeMessages).filter(s=>s[0].startsWith(`${t}.`)).map(s=>s[1]);return Hr(r)}return this.activeMessages[t]}makeReplacements(t,n){const r=s=>s.charAt(0).toUpperCase()+s.slice(1);return Object.entries(n||[]).sort((s,a)=>s[0].length>=a[0].length?-1:1).forEach(([s,a])=>{a=a.toString(),t=(t||"").replace(new RegExp(`:${s}`,"g"),a).replace(new RegExp(`:${s.toUpperCase()}`,"g"),a.toUpperCase()).replace(new RegExp(`:${r(s)}`,"g"),r(a))}),t}isValid(t){return t!=null}static getSharedInstance(t,n=!1){return(Wa==null?void 0:Wa.setOptions(t,n))||(Wa=new Nr(t))}}Nr.loaded=[];function Hi(){const e=x=>{const C={};return x==null||x.forEach(F=>{C[F.id]=F.name}),C},t=pe(()=>[Pe("event.activity-overview"),Pe("event.who-is-the-activity-for"),Pe("event.organiser")]),n=pe(()=>[{id:"coding-camp",name:Pe("event.coding-camp")},{id:"summer-camp",name:Pe("event.summer-camp")},{id:"weekend-course",name:Pe("event.weekend-course")},{id:"evening-course",name:Pe("event.evening-course")},{id:"careerday",name:Pe("event.career-day")},{id:"university-visit",name:Pe("event.university-visit")},{id:"coding-home",name:Pe("event.coding-at-home")},{id:"code-week-challenge",name:Pe("event.code-week-challenge")},{id:"competition",name:Pe("event.competition")},{id:"other",name:Pe("event.other-group-work-seminars-workshops")}]),r=pe(()=>e(n.value)),s=pe(()=>[{id:"open-online",name:Pe("event.activitytype.open-online")},{id:"invite-online",name:Pe("event.activitytype.invite-online")},{id:"open-in-person",name:Pe("event.activitytype.open-in-person")},{id:"invite-in-person",name:Pe("event.activitytype.invite-in-person")},{id:"other",name:Pe("event.organizertype.other")}]),a=pe(()=>e(s.value)),o=pe(()=>({daily:Pe("event.daily"),weekly:Pe("event.weekly"),monthly:Pe("event.monthly")})),u=pe(()=>[{id:"0-1",name:Pe("event.0-1-hours")},{id:"1-2",name:Pe("event.1-2-hours")},{id:"2-4",name:Pe("event.2-4-hours")},{id:"over-4",name:Pe("event.longer-than-4-hours")}]),d=pe(()=>e(u.value)),h=pe(()=>[{id:"consecutive",name:Pe("event.consecutive-learning-over-multiple-sessions")},{id:"individual",name:Pe("event.recurring-individual")}]),f=pe(()=>e(h.value)),p=pe(()=>[{id:"under-5",name:Pe("event.under-5-early-learners")},{id:"6-9",name:Pe("event.6-9-primary")},{id:"10-12",name:Pe("event.10-12-upper-primary")},{id:"13-15",name:Pe("event.13-15-lower-secondary")},{id:"16-18",name:Pe("event.16-18-upper-secondary")},{id:"19-25",name:Pe("event.19-25-young-adults")},{id:"over-25",name:Pe("event.over-25-adults")}]),m=pe(()=>e(p.value)),y=pe(()=>[{id:"school",name:Pe("event.organizertype.school")},{id:"library",name:Pe("event.organizertype.library")},{id:"non profit",name:Pe("event.organizertype.non-profit")},{id:"private business",name:Pe("event.organizertype.private-business")},{id:"other",name:Pe("event.organizertype.other")}]),_=pe(()=>e(y.value)),b=pe(()=>[{id:"robotics-drones-smart-devices",name:Pe("event.theme.robotics-drones-smart-devices")},{id:"cybersecurity-data",name:Pe("event.theme.cybersecurity-data")},{id:"web-app-software-development",name:Pe("event.theme.web-app-software-development")},{id:"visual-block-programming",name:Pe("event.theme.visual-block-programming")},{id:"unplugged-playful-activities",name:Pe("event.theme.unplugged-playful-activities")},{id:"art-creative-coding",name:Pe("event.theme.art-creative-coding")},{id:"game-design",name:Pe("event.theme.game-design")},{id:"internet-of-things-wearables",name:Pe("event.theme.internet-of-things-wearables")},{id:"ar-vr-3d-technologies",name:Pe("event.theme.ar-vr-3d-technologies")},{id:"digital-careers-learning-pathways",name:Pe("event.theme.digital-careers-learning-pathways")},{id:"digital-literacy-soft-skills",name:Pe("event.theme.digital-literacy-soft-skills")},{id:"ai-generative-ai",name:Pe("event.theme.ai-generative-ai")},{id:"awareness-inspiration",name:Pe("event.theme.awareness-inspiration")},{id:"promoting-diversity-inclusion",name:Pe("event.theme.promoting-diversity-inclusion")},{id:"other-theme",name:Pe("event.theme.other-theme")}]),O=pe(()=>e(b.value)),H=fe([]);It(async()=>{const x=await xt.get("/api/audiences");H.value=x.data.map(C=>({id:C.id,name:Pe(`event.${C.slug}`)}))});const V=pe(()=>e(H.value));return{stepTitles:t,activityFormatOptions:n,activityFormatOptionsMap:r,activityTypeOptions:s,activityTypeOptionsMap:a,recurringFrequentlyMap:o,durationOptions:u,durationOptionsMap:d,recurringTypeOptions:h,recurringTypeOptionsMap:f,ageOptions:p,ageOptionsMap:m,organizerTypeOptions:y,organizerTypeOptionsMap:_,themeOptions:b,themeOptionsMap:O,audienceOptions:H,audienceOptionsMap:V}}const vt=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},wL={props:{contentClass:{type:String},position:{type:String,default:"top",validator:e=>["top","right","bottom","left"].includes(e)}},setup(e){const t=fe(!1),n=pe(()=>{switch(e.position){case"top":return"bottom-full pb-2 left-1/2 -translate-x-1/2";case"right":return"left-full pl-2 top-1/2 -translate-y-1/2";case"bottom":return"top-full pt-2 left-1/2 -translate-x-1/2";case"left":return"right-full pr-2 top-1/2 -translate-y-1/2";default:return""}}),r=pe(()=>{switch(e.position){case"top":return"absolute left-1/2 bottom-0 -translate-x-1/2 translate-y-2 border-8 border-transparent border-t-gray-800";case"right":return"absolute top-1/2 left-0 -translate-y-1/2 -translate-x-2 border-8 border-transparent border-r-gray-800";case"bottom":return"absolute left-1/2 top-0 -translate-x-1/2 -translate-y-2 border-8 border-transparent border-b-gray-800";case"left":return"absolute top-1/2 right-0 -translate-y-1/2 translate-x-2 border-8 border-transparent border-l-gray-800";default:return""}});return{show:t,positionClass:n,arrowClass:r}}},xL={class:"w-full px-3 py-2 rounded-lg bg-gray-800 text-white text-sm"};function kL(e,t,n,r,s,a){return S(),P("div",{class:"relative inline-block",onMouseenter:t[0]||(t[0]=o=>r.show=!0),onMouseleave:t[1]||(t[1]=o=>r.show=!1)},[Ie(e.$slots,"trigger",{},void 0,!0),r.show?(S(),P("div",{key:0,class:Be(["absolute z-10 break-words",r.positionClass,n.contentClass]),role:"tooltip"},[v("div",xL,[Ie(e.$slots,"content",{},void 0,!0)]),v("div",{class:Be(["tooltip-arrow",r.arrowClass])},null,2)],2)):ae("",!0)],32)}const V1=vt(wL,[["render",kL],["__scopeId","data-v-ad76dce9"]]),SL={props:{horizontalBreakpoint:String,horizontal:Boolean,label:String,name:String,names:Array,errors:Object},components:{Tooltip:V1},setup(e,{slots:t}){const n=pe(()=>{const r=[],s=[];return e.name&&s.push(e.name),e.names&&s.push(...e.names),s.forEach(a=>{var o,u;(o=e.errors)!=null&&o[a]&&r.push(...(u=e.errors)==null?void 0:u[a])}),Bn.uniq(r)});return{slots:t,errorList:n}}},TL=["for"],AL={key:0,class:"flex item-start gap-3 text-error-200 font-semibold mt-2.5 empty:hidden"},CL={class:"leading-5"};function EL(e,t,n,r,s,a){var u;const o=at("Tooltip");return S(),P("div",{class:Be(["flex items-start flex-col gap-x-3 gap-y-2",[n.horizontalBreakpoint==="md"&&"md:gap-10 md:flex-row"]])},[v("label",{for:`id_${n.name||((u=n.names)==null?void 0:u[0])||""}`,class:Be(["flex items-center font-normal text-xl flex-1 text-slate-500 'w-full",[n.horizontalBreakpoint==="md"&&"md:min-h-[48px] md:w-1/3"]])},[v("span",null,[ht(re(n.label)+" ",1),r.slots.tooltip?(S(),it(o,{key:0,class:"ml-1 translate-y-1",contentClass:"w-64"},{trigger:Te(()=>t[0]||(t[0]=[v("img",{class:"text-dark-blue w-6 h-6",src:"/images/icon_question.svg"},null,-1)])),content:Te(()=>[Ie(e.$slots,"tooltip")]),_:3})):ae("",!0)])],10,TL),v("div",{class:Be(["h-full w-full",[n.horizontalBreakpoint==="md"&&"md:w-2/3"]])},[Ie(e.$slots,"default"),r.errorList.length?(S(),P("div",AL,[t[1]||(t[1]=v("img",{src:"/images/icon_error.svg"},null,-1)),(S(!0),P(Ve,null,Qe(r.errorList,d=>(S(),P("div",CL,re(d),1))),256))])):ae("",!0),Ie(e.$slots,"end")],2)],2)}const ad=vt(SL,[["render",EL]]);function Kf(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function OL(e){return(...t)=>!e(...t)}function ML(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function RL(e){return e.filter(t=>!t.$isLabel)}function Gf(e,t){return n=>n.reduce((r,s)=>s[e]&&s[e].length?(r.push({$groupLabel:s[t],$isLabel:!0}),r.concat(s[e])):r,[])}const r0=(...e)=>t=>e.reduce((n,r)=>r(n),t);var DL={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(e,t){return Kf(e)?"":t?e[t]:e}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1},filteringSortFunc:{type:Function,default:null}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const e=this.search||"",t=e.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,t,this.label):this.filterOptions(n,t,this.label,this.customLabel):n=this.groupValues?Gf(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(OL(this.isSelected)):n,this.taggable&&t.length&&!this.isExistingOption(t)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:e}):n.unshift({isTag:!0,label:e})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(t=>this.customLabel(t,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(e,t,n){return r0(this.filterGroups(t,n,this.groupValues,this.groupLabel,this.customLabel),Gf(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return r0(Gf(this.groupValues,this.groupLabel),RL)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const t=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(t)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(Kf(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return Kf(t)?"":t},select(e,t){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(t)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(t==="Tab"&&!this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){t!=="Tab"&&this.removeElement(e);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([e])):this.$emit("update:modelValue",e),this.$emit("select",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const t=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);if(t){if(this.wholeGroupSelected(t)){this.$emit("remove",t[this.groupValues],this.id);const n=this.trackBy?t[this.groupValues].map(s=>s[this.trackBy]):t[this.groupValues],r=this.internalValue.filter(s=>n.indexOf(this.trackBy?s[this.trackBy]:s)===-1);this.$emit("update:modelValue",r)}else{const n=t[this.groupValues].filter(r=>!(this.isOptionDisabled(r)||this.isSelected(r)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(e){return e[this.groupValues].every(t=>this.isSelected(t)||this.isOptionDisabled(t))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,t=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const r=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",r)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&t&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(t-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))},filterOptions(e,t,n,r){return t?e.filter(s=>ML(r(s,n),t)).sort((s,a)=>typeof this.filteringSortFunc=="function"?this.filteringSortFunc(s,a):r(s,n).length-r(a,n).length):e},filterGroups(e,t,n,r,s){return a=>a.map(o=>{if(!o[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const u=this.filterOptions(o[n],e,t,s);return u.length?{[r]:o[r],[n]:u}:[]})}}},PL={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(e,t){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(t)}},groupHighlight(e,t){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":t.$isLabel}];const n=this.options.find(r=>r[this.groupLabel]===t.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerReset()},pointerForward(){this.pointer0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(e){this.pointer=e,this.pointerDirty=!0}}},Ta={name:"vue-multiselect",mixins:[DL,PL],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)},isRequired(){return this.required===!1?!1:this.internalValue.length<=0}}};const LL=["tabindex","aria-expanded","aria-owns","aria-activedescendant"],IL={ref:"tags",class:"multiselect__tags"},NL={class:"multiselect__tags-wrap"},VL=["textContent"],FL=["onKeypress","onMousedown"],$L=["textContent"],BL={class:"multiselect__spinner"},HL=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-label","aria-controls"],UL=["id","aria-multiselectable"],jL={key:0},qL={class:"multiselect__option"},WL=["aria-selected","id","role"],YL=["onClick","onMouseenter","data-select","data-selected","data-deselect"],zL=["data-select","data-deselect","onMouseenter","onMousedown"],KL={class:"multiselect__option"},GL={class:"multiselect__option"};function JL(e,t,n,r,s,a){return S(),P("div",{tabindex:e.searchable?-1:n.tabindex,class:Be([{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":a.isAbove,"multiselect--has-options-group":a.hasOptionGroup},"multiselect"]),onFocus:t[14]||(t[14]=o=>e.activate()),onBlur:t[15]||(t[15]=o=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=$n(Et(o=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=$n(Et(o=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[18]||(t[18]=$n(Et(o=>e.addPointerElement(o),["stop","self"]),["enter","tab"])),onKeyup:t[19]||(t[19]=$n(o=>e.deactivate(),["esc"])),role:"combobox","aria-expanded":e.isOpen,"aria-owns":"listbox-"+e.id,"aria-activedescendant":e.isOpen&&e.pointer!==null?e.id+"-"+e.pointer:null},[Ie(e.$slots,"caret",{toggle:e.toggle},()=>[v("div",{onMousedown:t[0]||(t[0]=Et(o=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),Ie(e.$slots,"clear",{search:e.search}),v("div",IL,[Ie(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:a.visibleValues,isOpen:e.isOpen},()=>[Dn(v("div",NL,[(S(!0),P(Ve,null,Qe(a.visibleValues,(o,u)=>Ie(e.$slots,"tag",{option:o,search:e.search,remove:e.removeElement},()=>[(S(),P("span",{class:"multiselect__tag",key:u,onMousedown:t[1]||(t[1]=Et(()=>{},["prevent"]))},[v("span",{textContent:re(e.getOptionLabel(o))},null,8,VL),v("i",{tabindex:"1",onKeypress:$n(Et(d=>e.removeElement(o),["prevent"]),["enter"]),onMousedown:Et(d=>e.removeElement(o),["prevent"]),class:"multiselect__tag-icon"},null,40,FL)],32))])),256))],512),[[Vr,a.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>n.limit?Ie(e.$slots,"limit",{key:0},()=>[v("strong",{class:"multiselect__strong",textContent:re(n.limitText(e.internalValue.length-n.limit))},null,8,$L)]):ae("v-if",!0)]),he(vs,{name:"multiselect__loading"},{default:Te(()=>[Ie(e.$slots,"loading",{},()=>[Dn(v("div",BL,null,512),[[Vr,n.loading]])])]),_:3}),e.searchable?(S(),P("input",{key:0,ref:"search",name:n.name,id:e.id,type:"text",autocomplete:"off",spellcheck:n.spellcheck,placeholder:e.placeholder,required:a.isRequired,style:bn(a.inputStyle),value:e.search,disabled:n.disabled,tabindex:n.tabindex,"aria-label":n.name+"-searchbox",onInput:t[2]||(t[2]=o=>e.updateSearch(o.target.value)),onFocus:t[3]||(t[3]=Et(o=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=Et(o=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=$n(o=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=$n(Et(o=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=$n(Et(o=>e.pointerBackward(),["prevent"]),["up"])),t[9]||(t[9]=$n(Et(o=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[8]||(t[8]=$n(Et(o=>e.addPointerElement(o),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,HL)):ae("v-if",!0),a.isSingleLabelVisible?(S(),P("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=Et((...o)=>e.toggle&&e.toggle(...o),["prevent"]))},[Ie(e.$slots,"singleLabel",{option:a.singleValue},()=>[ht(re(e.currentOptionLabel),1)])],32)):ae("v-if",!0),a.isPlaceholderVisible?(S(),P("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=Et((...o)=>e.toggle&&e.toggle(...o),["prevent"]))},[Ie(e.$slots,"placeholder",{},()=>[ht(re(e.placeholder),1)])],32)):ae("v-if",!0)],512),he(vs,{name:"multiselect",persisted:""},{default:Te(()=>[Dn(v("div",{class:"multiselect__content-wrapper",onFocus:t[12]||(t[12]=(...o)=>e.activate&&e.activate(...o)),tabindex:"-1",onMousedown:t[13]||(t[13]=Et(()=>{},["prevent"])),style:bn({maxHeight:e.optimizedHeight+"px"}),ref:"list"},[v("ul",{class:"multiselect__content",style:bn(a.contentStyle),role:"listbox",id:"listbox-"+e.id,"aria-multiselectable":e.multiple},[Ie(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(S(),P("li",jL,[v("span",qL,[Ie(e.$slots,"maxElements",{},()=>[ht("Maximum of "+re(e.max)+" options selected. First remove a selected option to select another.",1)])])])):ae("v-if",!0),!e.max||e.internalValue.length(S(),P("li",{class:"multiselect__element",key:u,"aria-selected":e.isSelected(o),id:e.id+"-"+u,role:o&&(o.$isLabel||o.$isDisabled)?null:"option"},[o&&(o.$isLabel||o.$isDisabled)?ae("v-if",!0):(S(),P("span",{key:0,class:Be([e.optionHighlight(u,o),"multiselect__option"]),onClick:Et(d=>e.select(o),["stop"]),onMouseenter:Et(d=>e.pointerSet(u),["self"]),"data-select":o&&o.isTag?e.tagPlaceholder:a.selectLabelText,"data-selected":a.selectedLabelText,"data-deselect":a.deselectLabelText},[Ie(e.$slots,"option",{option:o,search:e.search,index:u},()=>[v("span",null,re(e.getOptionLabel(o)),1)])],42,YL)),o&&(o.$isLabel||o.$isDisabled)?(S(),P("span",{key:1,"data-select":e.groupSelect&&a.selectGroupLabelText,"data-deselect":e.groupSelect&&a.deselectGroupLabelText,class:Be([e.groupHighlight(u,o),"multiselect__option"]),onMouseenter:Et(d=>e.groupSelect&&e.pointerSet(u),["self"]),onMousedown:Et(d=>e.selectGroup(o),["prevent"])},[Ie(e.$slots,"option",{option:o,search:e.search,index:u},()=>[v("span",null,re(e.getOptionLabel(o)),1)])],42,zL)):ae("v-if",!0)],8,WL))),128)):ae("v-if",!0),Dn(v("li",null,[v("span",KL,[Ie(e.$slots,"noResult",{search:e.search},()=>[t[20]||(t[20]=ht("No elements found. Consider changing the search query."))])])],512),[[Vr,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),Dn(v("li",null,[v("span",GL,[Ie(e.$slots,"noOptions",{},()=>[t[21]||(t[21]=ht("List is empty."))])])],512),[[Vr,n.showNoOptions&&(e.options.length===0||a.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!n.loading]]),Ie(e.$slots,"afterList")],12,UL)],36),[[Vr,e.isOpen]])]),_:3})],42,LL)}Ta.render=JL;const ZL={props:{multiple:Boolean,returnObject:Boolean,allowEmpty:{type:Boolean,default:!0},modelValue:[Array,String],deselectLabel:String,options:Array,idName:{type:String,default:"id"},labelField:{type:String,default:"name"},theme:{type:String,default:"new"},largeText:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1}},components:{Multiselect:Ta},emits:["update:modelValue","onChange"],setup(e,{emit:t}){const n=fe(),r=a=>{if(e.multiple){const o=e.returnObject?a:a.map(u=>u[e.idName]);t("update:modelValue",o),t("onChange",o)}else{const o=e.returnObject?a:a[e.idName];t("update:modelValue",o),t("onChange",o)}},s=a=>{var o,u;return e.multiple?n.value?(o=n.value)==null?void 0:o.some(d=>String(d[e.idName])===String(a[e.idName])):!1:String((u=n.value)==null?void 0:u[e.idName])===String(a[e.idName])};return Wt([()=>e.multiple,()=>e.returnObject,()=>e.options,()=>e.modelValue],()=>{var a,o;e.returnObject?n.value=e.modelValue:e.multiple?Array.isArray(e.modelValue)&&(n.value=(a=e.modelValue)==null?void 0:a.map(u=>e.options.find(d=>d[e.idName]===u))):n.value=(o=e.options)==null?void 0:o.find(u=>u[e.idName]===e.modelValue)},{immediate:!0}),{selectedValues:n,isSelectedOption:s,onUpdateModalValue:r}}},XL={class:"flex justify-between items-center cursor-pointer"},QL={class:"whitespace-normal leading-6"},eI=["for"],tI={key:0,class:"h-4 w-4 text-[#05603A]",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},nI={class:"flex gap-2.5 items-center rounded-full bg-dark-blue text-white px-4 py-2"},rI={class:"font-semibold leading-4"},sI=["onClick"],iI={class:"flex gap-4 items-center cursor-pointer"},aI={class:"whitespace-normal leading-6"},lI={key:0,class:"h-5 w-5 text-slate-600",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},oI=["onMousedown"];function uI(e,t,n,r,s,a){const o=at("multiselect");return S(),it(o,{class:Be(["multi-select",[n.multiple&&"multiple",n.theme==="new"&&"new-theme large-text",n.largeText&&"large-text"]]),modelValue:r.selectedValues,"onUpdate:modelValue":[t[0]||(t[0]=u=>r.selectedValues=u),r.onUpdateModalValue],"track-by":n.idName,label:n.labelField,multiple:n.multiple,"preselect-first":!1,"close-on-select":!n.multiple,"clear-on-select":!n.multiple,"preserve-search":!0,searchable:n.searchable,"allow-empty":n.allowEmpty,"deselect-label":n.deselectLabel,options:n.options},Hn({tag:Te(({option:u,remove:d})=>[v("span",nI,[v("span",rI,re(u.name),1),v("span",{onClick:h=>d(u)},t[2]||(t[2]=[v("img",{src:"/images/close-white.svg"},null,-1)]),8,sI)])]),caret:Te(({toggle:u})=>[v("div",{class:"cursor-pointer absolute top-1/2 right-4 -translate-y-1/2",onMousedown:Et(u,["prevent"])},t[4]||(t[4]=[v("img",{src:"/images/select-arrow.svg"},null,-1)]),40,oI)]),noResult:Te(()=>[t[5]||(t[5]=v("div",{class:"text-gray-400 text-center"},"No elements found",-1))]),_:2},[n.multiple&&n.theme==="new"?{name:"option",fn:Te(({option:u})=>[v("div",XL,[v("span",QL,re(u[n.labelField]),1),v("div",{class:Be(["flex-shrink-0 h-6 w-6 border-2 bg-white flex items-center justify-center cursor-pointer rounded",[r.isSelectedOption(u)?"border-[#05603A]":"border-dark-blue-200"]]),for:e.id},[r.isSelectedOption(u)?(S(),P("svg",tI,t[1]||(t[1]=[v("path",{d:"M5 13l4 4L19 7"},null,-1)]))):ae("",!0)],10,eI)])]),key:"0"}:void 0,n.multiple?void 0:{name:"option",fn:Te(({option:u})=>[v("div",iI,[v("span",aI,re(u[n.labelField]),1),v("div",null,[r.isSelectedOption(u)?(S(),P("svg",lI,t[3]||(t[3]=[v("path",{d:"M5 13l4 4L19 7"},null,-1)]))):ae("",!0)])])]),key:"1"}]),1032,["class","modelValue","track-by","label","multiple","close-on-select","clear-on-select","searchable","allow-empty","deselect-label","options","onUpdate:modelValue"])}const Fo=vt(ZL,[["render",uI]]),cI={props:{modelValue:[String,Number],name:String,min:Number,max:Number,type:{type:String,default:"text"}},emits:["update:modelValue","onChange","onBlur"],setup(e,{emit:t}){const n=fe(e.modelValue);return Wt(()=>e.modelValue,()=>{n.value=e.modelValue}),{localValue:n,onChange:a=>{let o=a.target.value;e.type==="number"&&(o=o&&Number(o),e.min!==void 0&&e.min!==null&&(o=Math.max(o,e.min)),e.max!==void 0&&e.max!==null&&(o=Math.min(o,e.max))),Un(()=>{t("update:modelValue",o),t("onChange",o)})},onBlur:()=>{t("onBlur")}}}},dI=["id","type","min","max","name"];function fI(e,t,n,r,s,a){return Dn((S(),P("input",{class:"w-full border-2 border-solid border-dark-blue-200 rounded-full h-12 px-6 text-xl text-slate-600",id:`id_${n.name}`,type:n.type,min:n.min,max:n.max,name:n.name,"onUpdate:modelValue":t[0]||(t[0]=o=>r.localValue=o),onInput:t[1]||(t[1]=(...o)=>r.onChange&&r.onChange(...o)),onBlur:t[2]||(t[2]=(...o)=>r.onBlur&&r.onBlur(...o))},null,40,dI)),[[xp,r.localValue]])}const ld=vt(cI,[["render",fI]]),hI={props:{modelValue:String,name:String,label:String,value:String},emits:["update:modelValue"],setup(e,{emit:t}){return{onChange:r=>{t("update:modelValue",r.target.value)}}}},pI={class:"flex items-center gap-2 cursor-pointer"},mI=["id","name","value","checked"],gI=["for"],vI={class:"cursor-pointer text-xl text-slate-500"};function yI(e,t,n,r,s,a){return S(),P("label",pI,[v("input",{class:"peer hidden",type:"radio",id:`${n.name}-${n.value}`,name:n.name,value:n.value,checked:n.modelValue===n.value,onChange:t[0]||(t[0]=(...o)=>r.onChange&&r.onChange(...o))},null,40,mI),v("div",{class:"h-8 w-8 rounded-full border-2 bg-white border-dark-blue-200 flex items-center justify-center cursor-pointer peer-checked:before:content-[''] peer-checked:before:block peer-checked:before:w-3 peer-checked:before:h-3 peer-checked:before:rounded-full peer-checked:before:bg-slate-600",for:`${n.name}-${n.value}`},null,8,gI),v("span",vI,re(n.label),1)])}const jp=vt(hI,[["render",yI]]),_I={props:{modelValue:String,name:String,placeholder:String,height:{type:Number,default:400}},emits:["update:modelValue","onChange"],setup(e,{emit:t}){const n=a=>{t("update:modelValue",a),t("onChange",a)},r=()=>{const a="/js/tinymce/tinymce.min.js";return new Promise((o,u)=>{if(document.querySelector(`script[src="${a}"]`))return o();const d=document.createElement("script");d.src=a,d.onload=()=>o(),d.onerror=()=>u(new Error(`Failed to load script ${a}`)),document.head.appendChild(d)})},s=async()=>{try{await r()}catch(a){console.log("Can't load tinymce scrip:",a)}tinymce.init({selector:`#id_${e.name}`,height:e.height,width:"100%",setup:a=>{a.on("init",()=>{a.setContent(e.modelValue||"")}),a.on("change input",()=>{const o=a.getContent();a.save(),n(o)})}})};return It(()=>{s()}),{}}},bI={class:"custom-tinymce"},wI=["id","name","placeholder"];function xI(e,t,n,r,s,a){return S(),P("div",bI,[v("textarea",{class:"hidden",cols:"40",id:`id_${n.name}`,name:n.name,placeholder:n.placeholder,rows:"10"},null,8,wI)])}const kI=vt(_I,[["render",xI]]),SI={props:{errors:Object,formValues:Object,themes:Array,location:Object,countries:Array},components:{FieldWrapper:ad,SelectField:Fo,InputField:ld,RadioField:jp,TinymceField:kI},setup(e,{emit:t}){const{activityFormatOptions:n,activityTypeOptions:r,durationOptions:s,recurringTypeOptions:a}=Hi();return{activityFormatOptions:n,activityTypeOptions:r,durationOptions:s,recurringTypeOptions:a,handleLocationChange:({location:u,geoposition:d,country_iso:h})=>{e.formValues.location=u,e.formValues.geoposition=d;const f=e.countries.find(({iso:p})=>p===h);e.formValues.country_iso=f}}}},TI={class:"flex flex-col gap-4 w-full"},AI={class:"flex gap-4 p-4 mt-2.5 w-full rounded-2xl border bg-dark-blue-50 border-dark-blue-100"},CI={class:"text-xl text-slate-500"},EI={class:"w-full md:w-1/2"},OI={class:"w-full flex px-3 justify-between items-center text-gray-700 whitespace-nowrap rounded-3xl border-2 border-dark-blue-200 h-[50px] bg-white"},MI={class:"flex items-center gap-8 min-h-[48px]"},RI={key:0,class:"p-4 mt-4 w-full rounded-2xl border bg-dark-blue-50 border-dark-blue-100"},DI={class:"block mb-2 text-xl font-semibold text-slate-500"},PI={class:"flex flex-wrap gap-8 items-center"},LI={class:"block mt-6 mb-2 text-xl font-semibold text-slate-500"};function II(e,t,n,r,s,a){const o=at("InputField"),u=at("FieldWrapper"),d=at("SelectField"),h=at("autocomplete-geo"),f=at("date-time"),p=at("RadioField"),m=at("TinymceField");return S(),P("div",TI,[he(u,{horizontalBreakpoint:"md",label:`${e.$t("event.title.label")}*`,name:"title",errors:n.errors},{default:Te(()=>[he(o,{modelValue:n.formValues.title,"onUpdate:modelValue":t[0]||(t[0]=y=>n.formValues.title=y),required:"",name:"title",placeholder:e.$t("event.title.placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.specify-the-format-of-the-activity"),name:"activity_format",errors:n.errors},{default:Te(()=>[he(d,{modelValue:n.formValues.activity_format,"onUpdate:modelValue":t[1]||(t[1]=y=>n.formValues.activity_format=y),multiple:"",name:"activity_format",options:r.activityFormatOptions,placeholder:e.$t("event.select-option")},null,8,["modelValue","options","placeholder"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:`${e.$t("event.activitytype.label")}*`,name:"activity_type",errors:n.errors},{end:Te(()=>[v("div",AI,[t[14]||(t[14]=v("img",{class:"flex-shrink-0 mt-1 w-6 h-6",src:"/images/icon_info.svg"},null,-1)),v("span",CI,re(e.$t("event.if-no-clear-information-provide-estimate")),1)])]),default:Te(()=>[he(d,{modelValue:n.formValues.activity_type,"onUpdate:modelValue":t[2]||(t[2]=y=>n.formValues.activity_type=y),required:"",name:"activity_type",options:r.activityTypeOptions},null,8,["modelValue","options"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:`${e.$t("event.address.label")} ${["open-online","invite-online"].includes(n.formValues.activity_type)?"(optional)":"*"}`,name:"location",errors:n.errors},{default:Te(()=>[he(h,{class:"custom-geo-input",name:"location",placeholder:e.$t("event.address.placeholder"),location:n.formValues.location,value:n.formValues.location,geoposition:n.formValues.geoposition,onOnChange:r.handleLocationChange},null,8,["placeholder","location","value","geoposition","onOnChange"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.activity-duration"),name:"duration",errors:n.errors},{default:Te(()=>[v("div",EI,[he(d,{modelValue:n.formValues.duration,"onUpdate:modelValue":t[3]||(t[3]=y=>n.formValues.duration=y),required:"",name:"duration",options:r.durationOptions,placeholder:e.$t("event.select-option")},null,8,["modelValue","options","placeholder"])])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.date"),names:["start_date","end_date"],errors:n.errors},{default:Te(()=>[v("div",OI,[he(f,{name:"start_date",placeholder:e.$t("event.start.label"),flow:["calendar","time"],value:n.formValues.start_date,onOnChange:t[4]||(t[4]=y=>n.formValues.start_date=y)},null,8,["placeholder","value"]),t[15]||(t[15]=v("span",null,"-",-1)),he(f,{name:"end_date",placeholder:e.$t("event.end.label"),flow:["calendar","time"],value:n.formValues.end_date,onOnChange:t[5]||(t[5]=y=>n.formValues.end_date=y)},null,8,["placeholder","value"])])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.is-it-a-recurring-event"),name:"is_recurring_event_local",errors:n.errors},{default:Te(()=>[v("div",MI,[he(p,{modelValue:n.formValues.is_recurring_event_local,"onUpdate:modelValue":t[6]||(t[6]=y=>n.formValues.is_recurring_event_local=y),name:"is_recurring_event_local",value:"true",label:e.$t("event.true")},null,8,["modelValue","label"]),he(p,{modelValue:n.formValues.is_recurring_event_local,"onUpdate:modelValue":t[7]||(t[7]=y=>n.formValues.is_recurring_event_local=y),name:"is_recurring_event_local",value:"false",label:e.$t("event.false")},null,8,["modelValue","label"])]),n.formValues.is_recurring_event_local==="true"?(S(),P("div",RI,[v("label",DI,re(e.$t("event.how-frequently")),1),v("div",PI,[he(p,{modelValue:n.formValues.recurring_event,"onUpdate:modelValue":t[8]||(t[8]=y=>n.formValues.recurring_event=y),name:"recurring_event",value:"daily",label:e.$t("event.daily")},null,8,["modelValue","label"]),he(p,{modelValue:n.formValues.recurring_event,"onUpdate:modelValue":t[9]||(t[9]=y=>n.formValues.recurring_event=y),name:"recurring_event",value:"weekly",label:e.$t("event.weekly")},null,8,["modelValue","label"]),he(p,{modelValue:n.formValues.recurring_event,"onUpdate:modelValue":t[10]||(t[10]=y=>n.formValues.recurring_event=y),name:"recurring_event",value:"monthly",label:e.$t("event.monthly")},null,8,["modelValue","label"])]),v("label",LI,re(e.$t("event.what-type-of-recurring-activity")),1),he(d,{modelValue:n.formValues.recurring_type,"onUpdate:modelValue":t[11]||(t[11]=y=>n.formValues.recurring_type=y),name:"recurring_type",options:r.recurringTypeOptions},null,8,["modelValue","options"])])):ae("",!0)]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.theme-title"),name:"theme",errors:n.errors},{default:Te(()=>[he(d,{modelValue:n.formValues.theme,"onUpdate:modelValue":t[12]||(t[12]=y=>n.formValues.theme=y),multiple:"",required:"",name:"theme",placeholder:e.$t("event.select-theme"),options:n.themes},null,8,["modelValue","placeholder","options"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.activity-description"),name:"description",errors:n.errors},{default:Te(()=>[he(m,{modelValue:n.formValues.description,"onUpdate:modelValue":t[13]||(t[13]=y=>n.formValues.description=y),name:"description"},null,8,["modelValue"])]),_:1},8,["label","errors"])])}const NI=vt(SI,[["render",II]]);function VI(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(s){s(n)}),(r=e.get("*"))&&r.slice().map(function(s){s(t,n)})}}}const ei=VI(),FI={props:{message:{type:Object,default:null}},setup(e){const t=fe(""),n=fe(!1),r=fe(""),s=u=>{u&&(t.value=u.message,r.value=u.level.charAt(0).toUpperCase()+u.level.slice(1),n.value=!0,a())},a=()=>{setTimeout(()=>{n.value=!1},3e3)},o=pe(()=>({success:r.value.toLowerCase()==="success",error:r.value.toLowerCase()==="error"}));return It(()=>{e.message&&s(e.message),ei.on("flash",s)}),ii(()=>{ei.off("flash",s)}),{body:t,show:n,level:r,flashClass:o}}},$I={key:0,class:"codeweek-flash-message",role:"alert"},BI={class:"level"},HI={class:"body"};function UI(e,t,n,r,s,a){return r.show?(S(),P("div",$I,[v("div",{class:Be(["content",r.flashClass])},[v("div",BI,re(r.level)+"!",1),v("div",HI,re(r.body),1)],2)])):ae("",!0)}const od=vt(FI,[["render",UI],["__scopeId","data-v-09461b5c"]]),jI={components:{Flash:od},props:{name:{type:String,default:"picture"},picture:{type:String,default:""}},emits:["onChange"],setup(e,{emit:t}){const n=fe(null),r=fe(e.picture||""),s=fe(""),a=()=>{var p;return(p=n.value)==null?void 0:p.click()},o=()=>{},u=()=>{},d=p=>{const[m]=p.dataTransfer.files;m&&f(m)},h=p=>{const[m]=p.target.files;m&&f(m)};function f(p){const m=new FormData;m.append("picture",p),xt.post("/api/events/picture",m).then(y=>{s.value="",r.value=y.data.path,ei.emit("flash",{message:"Picture uploaded!",level:"success"}),t("onChange",y.data)}).catch(y=>{var b,O,H,V;const _=((V=(H=(O=(b=y.response)==null?void 0:b.data)==null?void 0:O.errors)==null?void 0:H.picture)==null?void 0:V[0])||"Image is too large. Maximum is 1Mb";s.value=_,ei.emit("flash",{message:_,level:"error"})})}return{fileInput:n,pictureClone:r,error:s,onTriggerFileInput:a,onDragOver:o,onDragLeave:u,onDrop:d,onFileChange:h}}},qI=["src"],WI={class:"text-xl text-slate-500"},YI={class:"text-xs text-slate-500"},zI={key:0,class:"flex gap-3 mt-2.5 font-semibold item-start text-error-200"},KI={class:"leading-5"},GI={class:"flex gap-2.5 mt-4 w-full"},JI={class:"mt-1 text-xs text-slate-500"},ZI={class:"pl-4 my-4 list-disc"},XI={class:"text-xs text-slate-500"};function QI(e,t,n,r,s,a){const o=at("Flash");return S(),P("div",null,[v("div",{class:"flex flex-col justify-center items-center gap-2 border-[3px] border-dashed border-dark-blue-200 w-full rounded-2xl py-12 px-8 cursor-pointer",onClick:t[1]||(t[1]=(...u)=>r.onTriggerFileInput&&r.onTriggerFileInput(...u)),onDragover:t[2]||(t[2]=Et((...u)=>r.onDragOver&&r.onDragOver(...u),["prevent"])),onDragleave:t[3]||(t[3]=(...u)=>r.onDragLeave&&r.onDragLeave(...u)),onDrop:t[4]||(t[4]=Et((...u)=>r.onDrop&&r.onDrop(...u),["prevent"]))},[v("div",{class:Be(["mb-4",[!r.pictureClone&&"hidden"]])},[v("img",{src:r.pictureClone,class:"mr-1"},null,8,qI)],2),v("div",{class:Be([!!r.pictureClone&&"hidden"])},t[5]||(t[5]=[v("img",{class:"w-16 h-16",src:"/images/icon_image.svg"},null,-1)]),2),v("span",WI,re(e.$t("event.drop-your-image-here-or-upload")),1),v("span",YI,re(e.$t("event.max-size-1mb-image-formats-jpg-png")),1),v("input",{class:"hidden",type:"file",ref:"fileInput",onChange:t[0]||(t[0]=(...u)=>r.onFileChange&&r.onFileChange(...u))},null,544)],32),r.error?(S(),P("div",zI,[t[6]||(t[6]=v("img",{src:"/images/icon_error.svg"},null,-1)),v("div",KI,re(r.error),1)])):ae("",!0),v("div",GI,[t[7]||(t[7]=v("img",{class:"flex-shrink-0 w-6 h-6",src:"/images/icon_info.svg"},null,-1)),v("div",JI,[ht(re(e.$t("event.by-submitting-images-through-this-form-you-confirm-that"))+" ",1),v("ul",ZI,[v("li",null,re(e.$t("event.you-have-obtained-all-necessary-permissions")),1),v("li",null,re(e.$t("event.you-will-not-submit-any-images-with-faces-directly-visible-or-identifiable"))+" "+re(e.$t("event.if-this-is-the-case-ensure-faces-are-blurred"))+" "+re(e.$t("event.submissions-that-do-not-comply-will-not-be-accepted")),1),v("li",null,re(e.$t("event.you-understand-and-agree-images-will-be-shared")),1)])])]),v("div",XI,re(e.$t("event.info-max-size-1mb")),1),he(o)])}const F1=vt(jI,[["render",QI]]),eN={props:{errors:Object,formValues:Object,audiences:Array,leadingTeachers:Array},components:{FieldWrapper:ad,SelectField:Fo,InputField:ld,RadioField:jp,ImageField:F1},setup(e){const{ageOptions:t}=Hi();return{leadingTeacherOptions:pe(()=>e.leadingTeachers.map(a=>({id:a,name:a}))),ageOptions:t,onPictureChange:a=>{e.formValues.picture=a.imageName,e.formValues.pictureUrl=a.path},handleCorrectCount:a=>{const o=Number(e.formValues.participants_count||"0");Number(e.formValues[a]||"0")>o&&(e.formValues[a]=o)}}}},tN={class:"flex flex-col gap-4 w-full"},nN={class:"flex flex-col gap-4 p-4 mt-2.5 w-full rounded-2xl border bg-dark-blue-50 border-dark-blue-100"},rN={class:"flex gap-2 p-2 mb-2 w-full bg-gray-100 rounded"},sN={class:"text-xl text-slate-500"},iN={class:"block mb-2 text-xl font-semibold text-slate-500"},aN={class:"grid grid-cols-1 gap-x-4 gap-y-4 md:grid-cols-2 md:gap-x-8"},lN={class:"flex items-center gap-8 min-h-[48px] h-full"},oN={class:"flex items-center gap-8 min-h-[48px] h-full"},uN={href:"/codeweek4all",target:"_blank"};function cN(e,t,n,r,s,a){const o=at("SelectField"),u=at("FieldWrapper"),d=at("InputField"),h=at("RadioField"),f=at("ImageField");return S(),P("div",tN,[he(u,{horizontalBreakpoint:"md",label:e.$t("event.audiences"),name:"audience",errors:n.errors},{default:Te(()=>[he(o,{placeholder:e.$t("event.select-option"),modelValue:n.formValues.audience,"onUpdate:modelValue":t[0]||(t[0]=p=>n.formValues.audience=p),multiple:"",name:"audience",options:n.audiences},null,8,["placeholder","modelValue","options"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.number-of-participants"),name:"participants_count",errors:n.errors},{end:Te(()=>[v("div",nN,[v("div",rN,[t[15]||(t[15]=v("img",{class:"flex-shrink-0 mt-1 w-6 h-6",src:"/images/icon_info.svg"},null,-1)),v("span",sN,re(e.$t("event.if-no-clear-information-provide-estimate")),1)]),v("label",iN,re(e.$t("event.of-this-number-how-many-are")),1),v("div",aN,[he(u,{label:e.$t("event.males"),name:"males_count",errors:n.errors},{default:Te(()=>[he(d,{modelValue:n.formValues.males_count,"onUpdate:modelValue":t[2]||(t[2]=p=>n.formValues.males_count=p),type:"number",min:0,name:"males_count",placeholder:e.$t("event.enter-number"),onOnBlur:t[3]||(t[3]=p=>r.handleCorrectCount("event.males_count"))},null,8,["modelValue","placeholder"])]),_:1},8,["label","errors"]),he(u,{label:e.$t("event.females"),name:"females_count",errors:n.errors},{default:Te(()=>[he(d,{modelValue:n.formValues.females_count,"onUpdate:modelValue":t[4]||(t[4]=p=>n.formValues.females_count=p),type:"number",min:0,name:"females_count",placeholder:e.$t("event.enter-number"),onOnBlur:t[5]||(t[5]=p=>r.handleCorrectCount("event.females_count"))},null,8,["modelValue","placeholder"])]),_:1},8,["label","errors"]),he(u,{label:e.$t("event.other-gender"),name:"other_count",errors:n.errors},{default:Te(()=>[he(d,{modelValue:n.formValues.other_count,"onUpdate:modelValue":t[6]||(t[6]=p=>n.formValues.other_count=p),type:"number",min:0,name:"other_count",placeholder:e.$t("event.enter-number"),onOnBlur:t[7]||(t[7]=p=>r.handleCorrectCount("event.other_count"))},null,8,["modelValue","placeholder"])]),_:1},8,["label","errors"])])])]),default:Te(()=>[he(d,{modelValue:n.formValues.participants_count,"onUpdate:modelValue":t[1]||(t[1]=p=>n.formValues.participants_count=p),type:"number",min:0,required:"",name:"participants_count",placeholder:e.$t("event.enter-number")},null,8,["modelValue","placeholder"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.age"),name:"ages",errors:n.errors},{default:Te(()=>[he(o,{placeholder:e.$t("event.select-option"),modelValue:n.formValues.ages,"onUpdate:modelValue":t[8]||(t[8]=p=>n.formValues.ages=p),multiple:"",name:"ages",options:r.ageOptions},null,8,["placeholder","modelValue","options"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("is-this-an-extracurricular-activity"),name:"is_extracurricular_event",errors:n.errors},{default:Te(()=>[v("div",lN,[he(h,{modelValue:n.formValues.is_extracurricular_event,"onUpdate:modelValue":t[9]||(t[9]=p=>n.formValues.is_extracurricular_event=p),name:"is_extracurricular_event",value:"true",label:e.$t("event.yes")},null,8,["modelValue","label"]),he(h,{modelValue:n.formValues.is_extracurricular_event,"onUpdate:modelValue":t[10]||(t[10]=p=>n.formValues.is_extracurricular_event=p),name:"is_extracurricular_event",value:"false",label:e.$t("event.no")},null,8,["modelValue","label"])])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.is-this-an-activity-within-the-standard-school-curriculum"),name:"is_standard_school_curriculum",errors:n.errors},{default:Te(()=>[v("div",oN,[he(h,{modelValue:n.formValues.is_standard_school_curriculum,"onUpdate:modelValue":t[11]||(t[11]=p=>n.formValues.is_standard_school_curriculum=p),name:"is_standard_school_curriculum",value:"true",label:e.$t("event.yes")},null,8,["modelValue","label"]),he(h,{modelValue:n.formValues.is_standard_school_curriculum,"onUpdate:modelValue":t[12]||(t[12]=p=>n.formValues.is_standard_school_curriculum=p),name:"is_standard_school_curriculum",value:"false",label:e.$t("event.no")},null,8,["modelValue","label"])])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.code-week-4-all-code-optional"),name:"codeweek_for_all_participation_code",errors:n.errors},{tooltip:Te(()=>[ht(re(e.$t("event.codeweek_for_all_participation_code.explanation"))+" ",1),v("a",uN,re(e.$t("event.codeweek_for_all_participation_code.link")),1),t[16]||(t[16]=ht(". "))]),default:Te(()=>[he(d,{modelValue:n.formValues.codeweek_for_all_participation_code,"onUpdate:modelValue":t[13]||(t[13]=p=>n.formValues.codeweek_for_all_participation_code=p),name:"codeweek_for_all_participation_code"},null,8,["modelValue"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.leading-teachers-optional"),name:"leading_teacher_tag",errors:n.errors},{default:Te(()=>[he(o,{modelValue:n.formValues.leading_teacher_tag,"onUpdate:modelValue":t[14]||(t[14]=p=>n.formValues.leading_teacher_tag=p),name:"leading_teacher_tag",options:r.leadingTeacherOptions},null,8,["modelValue","options"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.image-optional"),name:"picture",errors:n.errors},{default:Te(()=>[he(f,{name:"picture",picture:n.formValues.pictureUrl,image:n.formValues.picture,onOnChange:r.onPictureChange},null,8,["picture","image","onOnChange"])]),_:1},8,["label","errors"])])}const dN=vt(eN,[["render",cN]]),fN={props:{errors:Object,formValues:Object,languages:Object,countries:Array},components:{FieldWrapper:ad,SelectField:Fo,InputField:ld,RadioField:jp,ImageField:F1},setup(e,{emit:t}){const{organizerTypeOptions:n}=Hi(),r=pe(()=>Object.entries(e.languages).map(([s,a])=>({id:s,name:a})));return{organizerTypeOptions:n,languageOptions:r}}},hN={class:"flex flex-col gap-4 w-full"},pN={class:"flex items-center gap-8 min-h-[48px] h-full"},mN={class:"flex gap-2.5 mt-4 w-full"},gN={class:"mt-1 text-xs text-slate-400"};function vN(e,t,n,r,s,a){const o=at("InputField"),u=at("FieldWrapper"),d=at("SelectField"),h=at("RadioField");return S(),P("div",hN,[he(u,{horizontalBreakpoint:"md",label:`${e.$t("event.organizer.label")}*`,name:"organizer",errors:n.errors},{default:Te(()=>[he(o,{modelValue:n.formValues.organizer,"onUpdate:modelValue":t[0]||(t[0]=f=>n.formValues.organizer=f),required:"",name:"organizer",placeholder:e.$t("event.organizer.placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:`${e.$t("event.organizertype.label")}*`,name:"organizer_type",errors:n.errors},{default:Te(()=>[he(d,{placeholder:e.$t("event.select-option"),modelValue:n.formValues.organizer_type,"onUpdate:modelValue":t[1]||(t[1]=f=>n.formValues.organizer_type=f),required:"",name:"organizer_type",options:r.organizerTypeOptions},null,8,["placeholder","modelValue","options"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:`${e.$t("resources.Languages")} (optional)`,name:"language",errors:n.errors},{default:Te(()=>[he(d,{placeholder:e.$t("event.select-option"),modelValue:n.formValues.language,"onUpdate:modelValue":t[2]||(t[2]=f=>n.formValues.language=f),name:"language",searchable:"",multiple:"",options:r.languageOptions},null,8,["placeholder","modelValue","options"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:`${e.$t("event.country")}*`,name:"country_iso",errors:n.errors},{default:Te(()=>[he(d,{placeholder:e.$t("event.select-option"),modelValue:n.formValues.country_iso,"onUpdate:modelValue":t[3]||(t[3]=f=>n.formValues.country_iso=f),"id-name":"iso",searchable:"",required:"",name:"country_iso",options:n.countries},null,8,["placeholder","modelValue","options"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.are-you-using-any-code-week-resources-in-this-activity"),name:"is_use_resource",errors:n.errors},{default:Te(()=>[v("div",pN,[he(h,{modelValue:n.formValues.is_use_resource,"onUpdate:modelValue":t[4]||(t[4]=f=>n.formValues.is_use_resource=f),name:"is_use_resource",value:"true",label:e.$t("event.yes")},null,8,["modelValue","label"]),he(h,{modelValue:n.formValues.is_use_resource,"onUpdate:modelValue":t[5]||(t[5]=f=>n.formValues.is_use_resource=f),name:"is_use_resource",value:"false",label:e.$t("event.no")},null,8,["modelValue","label"])])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:`${e.$t("event.website.label")} ${["open-online","invite-online"].includes(n.formValues.activity_type)?"*":"(optional)"}`,name:"event_url",errors:n.errors},{default:Te(()=>[he(o,{modelValue:n.formValues.event_url,"onUpdate:modelValue":t[6]||(t[6]=f=>n.formValues.event_url=f),name:"event_url",placeholder:e.$t("event.website.placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:`${e.$t("event.public.label")} (optional)`,name:"contact_person",errors:n.errors},{default:Te(()=>[he(o,{modelValue:n.formValues.contact_person,"onUpdate:modelValue":t[7]||(t[7]=f=>n.formValues.contact_person=f),type:"email",name:"contact_person",placeholder:e.$t("event.public.placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:`${e.$t("event.contact.label")}*`,name:"user_email",errors:n.errors},{end:Te(()=>[v("div",mN,[t[9]||(t[9]=v("img",{class:"flex-shrink-0 w-6 h-6",src:"/images/icon_info.svg"},null,-1)),v("div",gN,re(e.$t("event.contact.explanation")),1)])]),default:Te(()=>[he(o,{modelValue:n.formValues.user_email,"onUpdate:modelValue":t[8]||(t[8]=f=>n.formValues.user_email=f),required:"",type:"email",name:"user_email",placeholder:e.$t("event.contact.placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label","errors"])])}const yN=vt(fN,[["render",vN]]),_N={props:{formValues:Object,themes:Array,audiences:Array,leadingTeachers:Array,languages:Object,countries:Array},setup(e){const{activityFormatOptionsMap:t,activityTypeOptionsMap:n,recurringFrequentlyMap:r,durationOptionsMap:s,recurringTypeOptionsMap:a,ageOptionsMap:o,organizerTypeOptionsMap:u}=Hi();return{stepDataList:pe(()=>{var Oe,He,Ue;const{title:h,activity_format:f,activity_type:p,location:m,duration:y,start_date:_,end_date:b,is_recurring_event_local:O,recurring_event:H,recurring_type:V,theme:x,description:C,audience:F,participants_count:U,males_count:$,females_count:D,other_count:T,ages:B,is_extracurricular_event:se,is_standard_school_curriculum:ee,codeweek_for_all_participation_code:de,leading_teacher_tag:ne,pictureUrl:N,picture:G,organizer:k,organizer_type:J,language:_e,country_iso:Me,is_use_resource:Ne,event_url:j,contact_person:te,user_email:M}=e.formValues||{},ie=(f||[]).map(We=>t.value[We]),ge=n.value[p],z=s.value[y],Le=_?new Date(_).toISOString().slice(0,10):"",Xe=b?new Date(b).toISOString().slice(0,10):"",be=O==="true",et=a.value[V],W=(x||[]).map(We=>{var Ge;return(Ge=e.themes.find(ot=>ot.id===We))==null?void 0:Ge.name}).map(We=>Pe(`event.theme.${We}`)),A=[{label:Pe("event.title.label"),value:h},{label:Pe("event.specify-the-format-of-the-activity"),value:ie.join(", ")},{label:Pe("event.activitytype.label"),value:ge},{label:Pe("event.address.label"),value:m},{label:Pe("event.activity-duration"),value:z},{label:Pe("event.date"),value:`${Le} - ${Xe}`},{label:Pe("event.is-it-a-recurring-event"),value:Pe(be?"event.yes":"event.no")},{label:Pe("event.how-frequently"),value:be?r.value[H]:""},{label:Pe("event.what-type-of-recurring-activity"),value:et},{label:Pe("event.theme-title"),value:W.join(", ")},{label:Pe("event.activity-description"),htmlValue:C}],I=(F||[]).map(We=>{var Ge;return(Ge=e.audiences.find(({id:ot})=>ot===We))==null?void 0:Ge.name}).map(We=>Pe(`event.audience.${We}`)),K=[U||0,[`${$||0} ${Pe("event.males")}`,`${D||0} ${Pe("event.females")}`,`${T||0} ${Pe("event.other-gender")}`].join(", ")].join(" - "),Q=(B||[]).map(We=>o.value[We]),me=[{label:Pe("event.audience_title"),value:I==null?void 0:I.join(", ")},{label:Pe("event.number-of-participants"),value:K},{label:Pe("event.age"),value:Q==null?void 0:Q.join(", ")},{label:Pe("event.is-this-an-extracurricular-activity"),value:Pe(se==="true"?"event.yes":"event.no")},{label:Pe("event.is-this-an-activity-within-the-standard-school-curriculum"),value:Pe(ee==="true"?"event.yes":"event.no")},{label:Pe("event.code-week-4-all-code-optional"),value:de},{label:Pe("community.titles.2"),value:ne},{label:Pe("event.image"),imageUrl:N,imageName:(He=(Oe=G==null?void 0:G.split("/"))==null?void 0:Oe.reverse())==null?void 0:He[0]}],q=u.value[J],ce=_e==null?void 0:_e.map(We=>{var Ge;return(Ge=e.languages)==null?void 0:Ge[We]}).filter(Boolean),ye=(Ue=e.countries.find(({iso:We})=>We===Me))==null?void 0:Ue.name,ke=[{label:Pe("event.organizer.label"),value:k},{label:Pe("event.organizertype.label"),value:q},{label:Pe("resources.Languages"),value:ce==null?void 0:ce.join(", ")},{label:Pe("event.country"),value:ye},{label:Pe("event.are-you-using-any-code-week-resources-in-this-activity"),value:Pe(Ne==="true"?"event.yes":"event.no")},{label:Pe("event.website.label"),value:j},{label:Pe("event.public.label"),value:te},{label:Pe("event.contact.label"),value:M}],Ae=({value:We,htmlValue:Ge,imageUrl:ot})=>!Bn.isNil(We)&&!Bn.isEmpty(We)||!Bn.isEmpty(Ge)||!Bn.isEmpty(ot);return[{title:Pe("event.confirmation_step.activity_overview"),list:A.filter(Ae)},{title:Pe("event.confirmation_step.who_is_the_activity_for"),list:me.filter(Ae)},{title:Pe("event.confirmation_step.organiser"),list:ke.filter(Ae)}]})}}},bN={class:"flex flex-col gap-12 w-full"},wN={class:"flex flex-col gap-6"},xN={class:"text-dark-blue text-2xl md:text-[30px] leading-[44px] font-medium font-['Montserrat'] text-center"},kN={class:"flex flex-col gap-1"},SN={class:"flex gap-10 items-center px-4 py-2 text-[16px] md:text-xl text-slate-500 bg-white"},TN={class:"flex-shrink-0 w-32 md:w-60"},AN=["innerHTML"],CN={key:1},EN={class:"mb-2"},ON=["src"],MN={key:2,class:"flex-grow w-full"};function RN(e,t,n,r,s,a){return S(),P("div",bN,[(S(!0),P(Ve,null,Qe(r.stepDataList,({title:o,list:u})=>(S(),P("div",wN,[v("h2",xN,re(o),1),v("div",kN,[(S(!0),P(Ve,null,Qe(u,({label:d,value:h,htmlValue:f,imageUrl:p,imageName:m})=>(S(),P("div",SN,[v("div",TN,re(d),1),f?(S(),P("div",{key:0,innerHTML:f,class:"flex-grow w-full space-y-2 [&_p]:py-0"},null,8,AN)):ae("",!0),p?(S(),P("div",CN,[v("div",EN,re(e.trans("event.image-attached")),1),v("img",{class:"mb-2 max-h-80",src:p},null,8,ON),v("div",null,re(m),1)])):ae("",!0),h?(S(),P("div",MN,re(h||""),1)):ae("",!0)]))),256))])]))),256))])}const DN=vt(_N,[["render",RN]]),PN={props:{modelValue:String,name:String,label:String,value:String},emits:["update:modelValue"],setup(e,{emit:t}){return{onChange:r=>{t("update:modelValue",r.target.checked)}}}},LN={class:"flex items-center gap-2 cursor-pointer"},IN=["id","name","checked"],NN=["for"],VN={key:0,class:"h-5 w-5 text-slate-600",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},FN={class:"cursor-pointer text-xl text-slate-500"};function $N(e,t,n,r,s,a){return S(),P("label",LN,[v("input",{class:"peer hidden",type:"checkbox",id:n.name,name:n.name,checked:n.modelValue,onChange:t[0]||(t[0]=(...o)=>r.onChange&&r.onChange(...o))},null,40,IN),v("div",{class:"flex-shrink-0 h-8 w-8 border-2 bg-white flex items-center justify-center cursor-pointer border-dark-blue-200 rounded-lg",for:e.id},[n.modelValue?(S(),P("svg",VN,t[1]||(t[1]=[v("path",{d:"M5 13l4 4L19 7"},null,-1)]))):ae("",!0)],8,NN),v("span",FN,[ht(re(n.label)+" ",1),Ie(e.$slots,"default")])])}const BN=vt(PN,[["render",$N]]),HN={props:{token:{type:String,default:""},event:{type:Object,default:()=>({})},selectedValues:{type:Object,default:()=>({})},locale:{type:String,default:""},user:{type:Object,default:()=>({})},themes:{type:Array,default:()=>[]},audiences:{type:Array,default:()=>[]},leadingTeachers:{type:Array,default:()=>[]},languages:{type:Object,default:()=>({})},countries:{type:Array,default:()=>[]},location:{type:Object,default:()=>({})},privacyLink:{type:String,default:""}},components:{FormStep1:NI,FormStep2:dN,FormStep3:yN,AddConfirmation:DN,CheckboxField:BN},setup(e,{emit:t}){var x,C,F,U,$;console.log("event",e.event);const{stepTitles:n}=Hi(),r=fe(null),s=fe(null),a=fe(1),o=fe({}),u=fe(!1),d=fe({activity_type:"open-in-person",location:((x=e.location)==null?void 0:x.location)||"",geoposition:((F=(C=e.location)==null?void 0:C.geoposition)==null?void 0:F.split(","))||[],is_recurring_event_local:"false",recurring_event:"daily",is_extracurricular_event:"false",is_standard_school_curriculum:"false",organizer:((U=e.location)==null?void 0:U.name)||"",organizer_type:(($=e==null?void 0:e.location)==null?void 0:$.organizer_type)||"",language:e.locale?[e.locale]:[],country_iso:e.location.country_iso||"",is_use_resource:"false",privacy:!1}),h=fe(Bn.clone(d.value)),f=pe(()=>{const D=Bn.cloneDeep(h.value),T=["title","activity_type","duration","is_recurring_event_local","start_date","end_date","theme","description"];return["open-online","invite-online"].includes(D.activity_type)||T.push("location"),T.every(B=>!Bn.isEmpty(D[B]))}),p=pe(()=>{const D=Bn.cloneDeep(h.value),T=["audience","ages","is_extracurricular_event"];return!!D.participants_count&&T.every(B=>!Bn.isEmpty(D[B]))}),m=pe(()=>{const D=Bn.cloneDeep(h.value),T=["organizer","organizer_type","country_iso","user_email"];return["open-online","invite-online"].includes(D.activity_type)&&T.push("event_url"),D.privacy?T.every(B=>!Bn.isEmpty(D[B])):!1}),y=pe(()=>a.value===1&&!f.value||a.value===2&&!p.value||a.value===3&&!m.value),_=D=>{a.value=Math.max(Math.min(D,4),1)},b=()=>{var B,se,ee,de;const D=((B=e==null?void 0:e.event)==null?void 0:B.id)||((se=r.value)==null?void 0:se.id),T=((ee=e==null?void 0:e.event)==null?void 0:ee.slug)||((de=r.value)==null?void 0:de.slug);window.location.href=`/view/${D}/${T}`},O=()=>window.location.href="/events",H=()=>window.location.reload(),V=async()=>{var B,se,ee,de,ne,N,G;o.value={};const D=h.value,T={_token:e.token,_method:Bn.isNil(e.event.id)?void 0:"PATCH",title:D.title,activity_format:(B=D.activity_format)==null?void 0:B.join(","),activity_type:D.activity_type,location:D.location,geoposition:((se=D.geoposition)==null?void 0:se.join(","))||[],duration:D.duration,start_date:D.start_date,end_date:D.end_date,theme:(ee=D.theme)==null?void 0:ee.join(","),description:D.description,audience:(de=D.audience)==null?void 0:de.join(","),participants_count:D.participants_count,males_count:D.males_count,females_count:D.females_count,other_count:D.other_count,ages:(ne=D.ages)==null?void 0:ne.join(","),is_extracurricular_event:D.is_extracurricular_event==="true",is_standard_school_curriculum:D.is_standard_school_curriculum==="true",codeweek_for_all_participation_code:D.codeweek_for_all_participation_code,leading_teacher_tag:D.leading_teacher_tag,picture:D.picture,organizer:D.organizer,organizer_type:D.organizer_type,language:D.language,country_iso:D.country_iso,is_use_resource:D.is_use_resource==="true",event_url:D.event_url,contact_person:D.contact_person,user_email:D.user_email,privacy:D.privacy===!0?"on":void 0};D.is_recurring_event_local==="true"&&(T.recurring_event=D.recurring_event,T.recurring_type=D.recurring_type);try{if(!Bn.isNil(e.event.id))await xt.post(`/events/${e.event.id}`,T);else{const{data:k}=await xt.post("/events",T);r.value=k.event}_(4)}catch(k){o.value=(G=(N=k.response)==null?void 0:N.data)==null?void 0:G.errors,a.value=1}};return Wt(()=>e.event,()=>{var se,ee,de,ne;if(!e.event.id)return;const D=N=>{var G,k;return((k=(G=N==null?void 0:N.split(","))==null?void 0:G.filter(J=>!!J))==null?void 0:k.map(J=>Number(J)))||[]},T=e.event,B=T.geoposition||((se=e.location)==null?void 0:se.geoposition);h.value={...h.value,title:T.title,activity_format:T.activity_format,activity_type:T.activity_type||"open-in-person",location:T.location||((ee=e.location)==null?void 0:ee.location),geoposition:B==null?void 0:B.split(","),duration:T.duration,start_date:T.start_date,end_date:T.end_date,recurring_event:T.recurring_event||"daily",recurring_type:T.recurring_type,theme:D(e.selectedValues.themes),description:T.description,audience:D(e.selectedValues.audiences),participants_count:T.participants_count,males_count:T.males_count,females_count:T.females_count,other_count:T.other_count,ages:T.ages,is_extracurricular_event:String(!!T.is_extracurricular_event),is_standard_school_curriculum:String(!!T.is_standard_school_curriculum),codeweek_for_all_participation_code:T.codeweek_for_all_participation_code,leading_teacher_tag:T.leading_teacher_tag,picture:T.picture,pictureUrl:e.selectedValues.picture,organizer:T.organizer||((de=e.location)==null?void 0:de.name),organizer_type:T.organizer_type||((ne=e==null?void 0:e.location)==null?void 0:ne.organizer_type),language:T.languages||[e.locale],country_iso:T.country_iso||e.location.country_iso,is_use_resource:String(!!T.is_use_resource),event_url:T.event_url,contact_person:T.contact_person,user_email:T.user_email},T.recurring_event&&(h.value.is_recurring_event_local="true")},{immediate:!0}),Wt(()=>a.value,()=>{if(a.value===4){const D=document.getElementById("add-event-hero-section");D&&(D.style.display="none"),window.scrollTo({top:0})}else if(s.value){const D=s.value.getBoundingClientRect().top;window.scrollTo({top:D+window.pageYOffset-40})}}),It(()=>{const D=new IntersectionObserver(([B])=>{u.value=B.isIntersecting}),T=document.getElementById("page-footer");T&&D.observe(T)}),{containerRef:s,step:a,stepTitles:n,errors:o,formValues:h,handleGoToActivity:b,handleGoMapPage:O,handleReloadPage:H,handleMoveStep:_,handleSubmit:V,disableNextbutton:y,validStep1:f,validStep2:p,validStep3:m,pageFooterVisible:u}}},UN={key:0,class:"flex relative justify-center py-10 codeweek-container-lg"},jN={class:"flex gap-12"},qN=["onClick"],WN={class:"flex-1"},YN={class:"text-slate-500 font-normal text-base leading-[22px] p-0 text-center"},zN={key:0,class:"absolute top-6 left-[calc(100%+1.5rem)] -translate-x-1/2 w-[calc(100%-1rem)] md:w-[calc(100%-0.75rem)] h-[2px] bg-[#CCF0F9]"},KN={key:1,class:"flex relative justify-center px-4 py-10 codeweek-container-lg md:px-10 md:py-20"},GN={class:"flex flex-col justify-center items-center text-center gap-4 max-w-[660px]"},JN={class:"text-dark-blue text-[22px] md:text-4xl font-semibold font-[Montserrat]"},ZN={key:0,class:"flex flex-col gap-4 text-[16px] text-center"},XN={ref:"containerRef",class:"relative w-full"},QN={class:"relative pt-20 pb-16 codeweek-container-lg md:pt-32 md:pb-20"},e4={class:"flex justify-center"},t4={class:"flex flex-col max-w-[852px] w-full"},n4={key:0,class:"text-dark-blue text-2xl md:text-4xl leading-[44px] font-medium font-['Montserrat'] mb-10 text-center"},r4=["href"],s4={class:"flex flex-wrap gap-y-2 gap-x-4 justify-between mt-10 min-h-12"},i4={key:0},a4={key:1},l4=["disabled"],o4={key:0},u4={key:1},c4={key:1},d4={key:2};function f4(e,t,n,r,s,a){var p;const o=at("FormStep1"),u=at("FormStep2"),d=at("FormStep3"),h=at("CheckboxField"),f=at("AddConfirmation");return S(),P(Ve,null,[r.step<4?(S(),P("div",UN,[v("div",jN,[(S(!0),P(Ve,null,Qe(r.stepTitles,(m,y)=>(S(),P("div",{class:Be(["flex relative flex-col flex-1 gap-2 items-center md:w-52",[y===0&&"cursor-pointer",y+1===2&&r.validStep1&&"cursor-pointer",y+1===3&&r.validStep2&&"cursor-pointer"]]),onClick:()=>{y+1===2&&!r.validStep1||y+1===3&&!r.validStep2||r.handleMoveStep(y+1)}},[v("div",{class:Be(["w-12 h-12 rounded-full flex justify-center items-center text-['#20262C'] font-semibold text-2xl",[r.step===y+1?"bg-light-blue-300":"bg-light-blue-100"]])},re(y+1),3),v("div",WN,[v("p",YN,re(e.$t(`event.${m}`)),1)]),yr.formValues.privacy=m),name:"privacy"},{default:Te(()=>[v("div",null,[v("span",null,re(e.$t("event.privacy")),1),v("a",{class:"ml-1 !inline cookweek-link",href:n.privacyLink,target:"_blank"},re(e.$t("event.privacy-policy-terms")),9,r4)])]),_:1},8,["modelValue"])],2),v("div",{class:Be([r.step!==4&&"hidden"])},[he(f,{formValues:r.formValues,themes:n.themes,location:n.location,audiences:n.audiences,leadingTeachers:n.leadingTeachers,languages:n.languages,countries:n.countries},null,8,["formValues","themes","location","audiences","leadingTeachers","languages","countries"])],2),v("div",s4,[r.step>1?(S(),P("button",{key:0,class:"flex justify-center items-center gap-2 text-[#1C4DA1] border-solid border-2 border-[#1C4DA1] rounded-full py-2.5 px-6 font-semibold text-lg transition-all duration-300 hover:bg-[#E8EDF6] max-sm:w-full sm:min-w-[224px]",type:"button",onClick:t[1]||(t[1]=()=>{r.step===4?r.handleGoToActivity():r.handleMoveStep(r.step-1)})},[r.step===4?(S(),P("span",i4,re(e.$t("event.view-activity")),1)):(S(),P("span",a4,re(e.$t("event.previous-step")),1))])):ae("",!0),t[4]||(t[4]=v("div",{class:"hidden md:block"},null,-1)),v("div",{id:"footer-scroll-activity",class:Be(["flex justify-center max-sm:w-full sm:min-w-[224px]",[r.step<4&&!r.pageFooterVisible?"md:!translate-y-0 max-md:fixed max-md:bottom-0 max-md:left-0 max-md:border-t-2 max-md:border-primary max-md:py-4 max-md:px-[44px] max-md:w-full max-md:bg-white max-md:z-[99]":"!translate-y-0"]])},[v("button",{class:Be(["text-nowrap flex justify-center items-center duration-300 rounded-full py-2.5 px-6 font-semibold text-lg max-sm:w-full sm:min-w-[224px]",[r.disableNextbutton?"cursor-not-allowed bg-gray-200 text-gray-400":"bg-primary hover:bg-hover-orange text-[#20262C]"]]),type:"button",disabled:r.disableNextbutton,onClick:t[2]||(t[2]=()=>{var m;r.step===4?(m=n.event)!=null&&m.id?r.handleGoMapPage():r.handleReloadPage():r.step===3&&r.validStep3?r.handleSubmit():r.step===2&&r.validStep2?r.handleMoveStep(3):r.step===1&&r.validStep1&&r.handleMoveStep(2)})},[r.step===4?(S(),P(Ve,{key:0},[(p=n.event)!=null&&p.id?(S(),P("span",o4,re(e.$t("event.back-to-map-page")),1)):(S(),P("span",u4,re(e.$t("event.add-another-activity")),1))],64)):r.step===3?(S(),P("span",c4,re(e.$t("event.submit")),1)):(S(),P("span",d4,re(e.$t("event.next-step")),1))],10,l4)],2)])])])])],512)],64)}const h4=vt(HN,[["render",f4]]),p4={props:{property:Object,type:String},data(){return{label:this.type?this.$t("resources.resources."+this.type+"."+this.property.name):this.property.name}}},m4={class:"bg-light-blue-100 py-1 px-4 text-sm font-semibold text-slate-500 rounded-full whitespace-nowrap"};function g4(e,t,n,r,s,a){return S(),P("span",m4,re(s.label),1)}const $1=vt(p4,[["render",g4]]),v4={components:{ResourcePill:$1},props:{resource:Object},data(){return{descriptionHeight:"auto",needShowMore:!0,showMore:!1}},methods:{computeDescriptionHeight(){const e=this.$refs.descriptionContainerRef,t=this.$refs.descriptionRef,n=e.clientHeight,r=Math.floor(n/22);t.style.height="auto",this.descriptionHeight="auto",this.needShowMore=t.offsetHeight>n,t.offsetHeight>n?(t.style.height=`${r*22}px`,this.descriptionHeight=`${r*22}px`):this.showMore=!1},onToggleShowMore(){const e=this.$refs.descriptionRef;this.showMore=!this.showMore,this.showMore?e.style.height="auto":e.style.height=this.descriptionHeight}},mounted:function(){this.computeDescriptionHeight()}},y4={class:"relative flex flex-col bg-white rounded-lg overflow-hidden"},_4={class:"flex-shrink-0"},b4=["src"],w4={class:"flex gap-2 flex-wrap mb-2"},x4={class:"text-dark-blue font-semibold font-['Montserrat'] leading-6"},k4={key:0,class:"text-slate-500 text-[16px] leading-[22px]"},S4={ref:"descriptionRef",class:"relative flex-grow text-slate-500 overflow-hidden",style:{height:"auto"}},T4={class:"flex-shrink-0"},A4=["href"];function C4(e,t,n,r,s,a){var u,d,h,f;const o=at("resource-pill");return S(),P("div",y4,[v("div",_4,[v("img",{src:n.resource.thumbnail},null,8,b4)]),v("div",{class:Be(["flex-grow flex flex-col gap-2 px-6 py-4 h-fit",{"max-h-[450px]":s.needShowMore&&!s.showMore}])},[v("div",w4,[(S(!0),P(Ve,null,Qe(n.resource.types,p=>(S(),it(o,{property:p,type:"types"},null,8,["property"]))),256))]),v("div",x4,re(n.resource.name),1),(d=(u=n.resource.languages)==null?void 0:u[0])!=null&&d.name?(S(),P("div",k4," Language: "+re(((f=(h=n.resource.languages)==null?void 0:h[0])==null?void 0:f.name)||""),1)):ae("",!0),v("div",{ref:"descriptionContainerRef",class:Be(["flex-grow text-[16px] leading-[22px] h-full",{"overflow-hidden":s.needShowMore&&!s.showMore}])},[v("div",S4,[ht(re(n.resource.description)+" ",1),s.needShowMore?(S(),P("div",{key:0,class:Be(["flex justify-end bottom-0 right-0 bg-white pl-0.5 text-dark-blue",{absolute:!s.showMore,"w-full":s.showMore}])},[v("button",{onClick:t[0]||(t[0]=(...p)=>a.onToggleShowMore&&a.onToggleShowMore(...p))},re(s.showMore?"Show less":"... Show more"),1)],2)):ae("",!0)],512)],2),v("div",T4,[t[2]||(t[2]=v("div",{class:"h-[56px]"},null,-1)),v("a",{class:"absolute left-6 right-6 bottom-4 flex justify-center items-center gap-2 text-[#1C4DA1] border-solid border-2 border-[#1C4DA1] rounded-full py-3 px-8 font-semibold text-lg transition-all duration-300 hover:bg-[#E8EDF6] group",href:n.resource.source,target:"_blank"},[v("span",null,re(e.$t("myevents.view_lesson")),1),t[1]||(t[1]=v("div",{class:"flex gap-2 w-4 overflow-hidden"},[v("img",{src:"/images/arrow-right-icon.svg",class:"min-w-4 duration-500 transform -translate-x-6 group-hover:translate-x-0"}),v("img",{src:"/images/arrow-right-icon.svg",class:"min-w-4 duration-500 transform -translate-x-6 group-hover:translate-x-0"})],-1))],8,A4)])],2)])}const B1=vt(v4,[["render",C4]]),E4={props:["pagination","offset"],methods:{isCurrentPage(e){return this.pagination.current_page===e},changePage(e){e<1||e>this.pagination.last_page||(this.pagination.current_page=e,this.$emit("paginate",e))}},computed:{pages(){let e=[],t=this.pagination.current_page-Math.floor(this.offset/2);t<1&&(t=1);let n=t+this.offset-1;for(n>this.pagination.last_page&&(n=this.pagination.last_page);t<=n;)e.push(t),t++;return e}}},O4={role:"navigation","aria-label":"pagination"},M4={class:"flex flex-wrap items-center justify-center gap-2 py-12 m-0 font-['Blinker']"},R4=["disabled"],D4={class:"flex items-center gap-1 whitespace-nowrap"},P4=["onClick"],L4={key:1,class:"flex justify-center items-center w-12 h-12 text-xl rounded font-normal text-[#333E48] duration-300"},I4=["disabled"];function N4(e,t,n,r,s,a){return S(),P("nav",O4,[v("ul",M4,[v("li",null,[v("a",{class:"block p-4 duration-300 rounded-full cursor-pointer bg-yellow hover:bg-primary",onClick:t[0]||(t[0]=Et(o=>a.changePage(n.pagination.current_page-1),["prevent"])),disabled:n.pagination.current_page<=1},t[2]||(t[2]=[v("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("path",{d:"M25.8335 16H7.16683",stroke:"black","stroke-width":"2.66667","stroke-linecap":"round","stroke-linejoin":"round"}),v("path",{d:"M16.5 6.66663L7.16667 16L16.5 25.3333",stroke:"black","stroke-width":"2.66667","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),8,R4)]),(S(!0),P(Ve,null,Qe(a.pages,o=>(S(),P("li",D4,[n.pagination.current_page!=o?(S(),P("a",{key:0,class:"flex justify-center items-center w-12 h-12 text-xl hover:bg-[#1C4DA1]/10 rounded font-bold text-[#1C4DA1] underline duration-300 cursor-pointer",onClick:Et(u=>a.changePage(o),["prevent"])},re(o),9,P4)):(S(),P("a",L4,re(o),1))]))),256)),v("li",null,[v("a",{class:"block p-4 duration-300 rounded-full cursor-pointer bg-yellow hover:bg-primary",onClick:t[1]||(t[1]=Et(o=>a.changePage(n.pagination.current_page+1),["prevent"])),disabled:n.pagination.current_page>=n.pagination.last_page},t[3]||(t[3]=[v("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("path",{d:"M7.16699 16H25.8337",stroke:"black","stroke-width":"2.66667","stroke-linecap":"round","stroke-linejoin":"round"}),v("path",{d:"M16.5 6.66663L25.8333 16L16.5 25.3333",stroke:"black","stroke-width":"2.66667","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),8,I4)])])])}const ud=vt(E4,[["render",N4]]);var V4={exports:{}};/*! - * clipboard.js v2.0.11 - * https://clipboardjs.com/ - * - * Licensed MIT © Zeno Rocha - */(function(e,t){(function(r,s){e.exports=s()})(N1,function(){return function(){var n={686:function(a,o,u){u.d(o,{default:function(){return Ne}});var d=u(279),h=u.n(d),f=u(370),p=u.n(f),m=u(817),y=u.n(m);function _(j){try{return document.execCommand(j)}catch{return!1}}var b=function(te){var M=y()(te);return _("cut"),M},O=b;function H(j){var te=document.documentElement.getAttribute("dir")==="rtl",M=document.createElement("textarea");M.style.fontSize="12pt",M.style.border="0",M.style.padding="0",M.style.margin="0",M.style.position="absolute",M.style[te?"right":"left"]="-9999px";var ie=window.pageYOffset||document.documentElement.scrollTop;return M.style.top="".concat(ie,"px"),M.setAttribute("readonly",""),M.value=j,M}var V=function(te,M){var ie=H(te);M.container.appendChild(ie);var ge=y()(ie);return _("copy"),ie.remove(),ge},x=function(te){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},ie="";return typeof te=="string"?ie=V(te,M):te instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(te==null?void 0:te.type)?ie=V(te.value,M):(ie=y()(te),_("copy")),ie},C=x;function F(j){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?F=function(M){return typeof M}:F=function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},F(j)}var U=function(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=te.action,ie=M===void 0?"copy":M,ge=te.container,z=te.target,Le=te.text;if(ie!=="copy"&&ie!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(z!==void 0)if(z&&F(z)==="object"&&z.nodeType===1){if(ie==="copy"&&z.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(ie==="cut"&&(z.hasAttribute("readonly")||z.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Le)return C(Le,{container:ge});if(z)return ie==="cut"?O(z):C(z,{container:ge})},$=U;function D(j){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?D=function(M){return typeof M}:D=function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},D(j)}function T(j,te){if(!(j instanceof te))throw new TypeError("Cannot call a class as a function")}function B(j,te){for(var M=0;M"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function J(j){return J=Object.setPrototypeOf?Object.getPrototypeOf:function(M){return M.__proto__||Object.getPrototypeOf(M)},J(j)}function _e(j,te){var M="data-clipboard-".concat(j);if(te.hasAttribute(M))return te.getAttribute(M)}var Me=function(j){ee(M,j);var te=ne(M);function M(ie,ge){var z;return T(this,M),z=te.call(this),z.resolveOptions(ge),z.listenClick(ie),z}return se(M,[{key:"resolveOptions",value:function(){var ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof ge.action=="function"?ge.action:this.defaultAction,this.target=typeof ge.target=="function"?ge.target:this.defaultTarget,this.text=typeof ge.text=="function"?ge.text:this.defaultText,this.container=D(ge.container)==="object"?ge.container:document.body}},{key:"listenClick",value:function(ge){var z=this;this.listener=p()(ge,"click",function(Le){return z.onClick(Le)})}},{key:"onClick",value:function(ge){var z=ge.delegateTarget||ge.currentTarget,Le=this.action(z)||"copy",Xe=$({action:Le,container:this.container,target:this.target(z),text:this.text(z)});this.emit(Xe?"success":"error",{action:Le,text:Xe,trigger:z,clearSelection:function(){z&&z.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(ge){return _e("action",ge)}},{key:"defaultTarget",value:function(ge){var z=_e("target",ge);if(z)return document.querySelector(z)}},{key:"defaultText",value:function(ge){return _e("text",ge)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(ge){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return C(ge,z)}},{key:"cut",value:function(ge){return O(ge)}},{key:"isSupported",value:function(){var ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],z=typeof ge=="string"?[ge]:ge,Le=!!document.queryCommandSupported;return z.forEach(function(Xe){Le=Le&&!!document.queryCommandSupported(Xe)}),Le}}]),M}(h()),Ne=Me},828:function(a){var o=9;if(typeof Element<"u"&&!Element.prototype.matches){var u=Element.prototype;u.matches=u.matchesSelector||u.mozMatchesSelector||u.msMatchesSelector||u.oMatchesSelector||u.webkitMatchesSelector}function d(h,f){for(;h&&h.nodeType!==o;){if(typeof h.matches=="function"&&h.matches(f))return h;h=h.parentNode}}a.exports=d},438:function(a,o,u){var d=u(828);function h(m,y,_,b,O){var H=p.apply(this,arguments);return m.addEventListener(_,H,O),{destroy:function(){m.removeEventListener(_,H,O)}}}function f(m,y,_,b,O){return typeof m.addEventListener=="function"?h.apply(null,arguments):typeof _=="function"?h.bind(null,document).apply(null,arguments):(typeof m=="string"&&(m=document.querySelectorAll(m)),Array.prototype.map.call(m,function(H){return h(H,y,_,b,O)}))}function p(m,y,_,b){return function(O){O.delegateTarget=d(O.target,y),O.delegateTarget&&b.call(m,O)}}a.exports=f},879:function(a,o){o.node=function(u){return u!==void 0&&u instanceof HTMLElement&&u.nodeType===1},o.nodeList=function(u){var d=Object.prototype.toString.call(u);return u!==void 0&&(d==="[object NodeList]"||d==="[object HTMLCollection]")&&"length"in u&&(u.length===0||o.node(u[0]))},o.string=function(u){return typeof u=="string"||u instanceof String},o.fn=function(u){var d=Object.prototype.toString.call(u);return d==="[object Function]"}},370:function(a,o,u){var d=u(879),h=u(438);function f(_,b,O){if(!_&&!b&&!O)throw new Error("Missing required arguments");if(!d.string(b))throw new TypeError("Second argument must be a String");if(!d.fn(O))throw new TypeError("Third argument must be a Function");if(d.node(_))return p(_,b,O);if(d.nodeList(_))return m(_,b,O);if(d.string(_))return y(_,b,O);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function p(_,b,O){return _.addEventListener(b,O),{destroy:function(){_.removeEventListener(b,O)}}}function m(_,b,O){return Array.prototype.forEach.call(_,function(H){H.addEventListener(b,O)}),{destroy:function(){Array.prototype.forEach.call(_,function(H){H.removeEventListener(b,O)})}}}function y(_,b,O){return h(document.body,_,b,O)}a.exports=f},817:function(a){function o(u){var d;if(u.nodeName==="SELECT")u.focus(),d=u.value;else if(u.nodeName==="INPUT"||u.nodeName==="TEXTAREA"){var h=u.hasAttribute("readonly");h||u.setAttribute("readonly",""),u.select(),u.setSelectionRange(0,u.value.length),h||u.removeAttribute("readonly"),d=u.value}else{u.hasAttribute("contenteditable")&&u.focus();var f=window.getSelection(),p=document.createRange();p.selectNodeContents(u),f.removeAllRanges(),f.addRange(p),d=f.toString()}return d}a.exports=o},279:function(a){function o(){}o.prototype={on:function(u,d,h){var f=this.e||(this.e={});return(f[u]||(f[u]=[])).push({fn:d,ctx:h}),this},once:function(u,d,h){var f=this;function p(){f.off(u,p),d.apply(h,arguments)}return p._=d,this.on(u,p,h)},emit:function(u){var d=[].slice.call(arguments,1),h=((this.e||(this.e={}))[u]||[]).slice(),f=0,p=h.length;for(f;fD.teach===1)),a=fe(e.prpLevels.filter(D=>D.learn===1)),o=fe(e.prpTypes),u=fe(e.prpProgrammingLanguages),d=fe(e.prpCategories),h=fe(e.prpLanguages),f=fe(e.prpSubjects),p=fe({}),m=Hr({current_page:1}),y=fe([]),_=pe(()=>e.levels.filter(D=>D.teach===1)),b=pe(()=>e.levels.filter(D=>D.learn===1)),O=pe(()=>[...o.value,...s.value,...a.value,...h.value,...u.value,...f.value,...d.value]),H=D=>{const T=B=>B.id!==D.id;o.value=o.value.filter(T),s.value=s.value.filter(T),a.value=a.value.filter(T),h.value=h.value.filter(T),u.value=u.value.filter(T),f.value=f.value.filter(T),d.value=d.value.filter(T),U()},V=()=>{o.value=[],s.value=[],a.value=[],h.value=[],u.value=[],f.value=[],d.value=[],U()},x=()=>{window.scrollTo(0,0)},C=Bn.debounce(()=>{U()},300),F=()=>{x(),U(!0)},U=(D=!1)=>{D||(m.current_page=1),y.value=[],xt.post("/resources/search?page="+m.current_page,{query:n.value,searchInput:r.value,selectedLevels:[...s.value,...a.value],selectedTypes:o.value,selectedProgrammingLanguages:u.value,selectedCategories:d.value,selectedLanguages:h.value,selectedSubjects:f.value}).then(T=>{m.per_page=T.data.per_page,m.current_page=T.data.current_page,m.from=T.data.from,m.last_page=T.data.last_page,m.last_page_url=T.data.last_page_url,m.next_page_url=T.data.next_page_url,m.prev_page=T.data.prev_page,m.prev_page_url=T.data.prev_page,m.to=T.data.to,m.total=T.data.total,y.value=T.data.data}).catch(T=>{p.value=T.response.data})},$=(D,T)=>Pe(T+"."+D.name);return It(()=>{U()}),{query:n,searchInput:r,targetAudiences:_,levelsDifficulty:b,selectedTargetAudiences:s,selectedLevelsDifficulty:a,selectedTypes:o,selectedProgrammingLanguages:u,selectedCategories:d,selectedLanguages:h,selectedSubjects:f,errors:p,pagination:m,resources:y,debounceSearch:C,paginate:F,onSubmit:U,customLabel:$,showFilterModal:t,tags:O,removeSelectedItem:H,removeAllSelectedItems:V}}},$4={class:"codeweek-resourceform-component font-['Blinker']"},B4={class:"codeweek-container py-6"},H4={class:"flex md:hidden flex-shrink-0 justify-end w-full mb-6"},U4={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4 mb-12"},j4={class:"block text-[16px] text-slate-500 mb-2"},q4=["placeholder"],W4={class:"block text-[16px] text-slate-500 mb-2"},Y4={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},z4={class:"language-json"},K4={class:"block text-[16px] text-slate-500 mb-2"},G4={class:"language-json"},J4={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},Z4={class:"block text-[16px] text-slate-500 mb-2"},X4={class:"language-json"},Q4={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},eV={class:"block text-[16px] text-slate-500 mb-2"},tV={class:"language-json"},nV={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},rV={class:"block text-[16px] text-slate-500 mb-2"},sV={class:"language-json"},iV={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},aV={class:"block text-[16px] text-slate-500 mb-2"},lV={class:"language-json"},oV={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},uV={class:"block text-[16px] text-slate-500 mb-2"},cV={class:"language-json"},dV={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},fV={class:"sm:col-span-2 md:col-span-1 lg:col-span-full lg:grid grid-cols-12 mt-3"},hV={class:"w-full flex items-end justify-center lg:col-span-4 h-full"},pV={class:"text-base leading-7 font-semibold text-black normal-case"},mV={key:0,class:"flex md:justify-center"},gV={class:"max-md:w-full flex flex-wrap gap-2"},vV={class:"flex items-center gap-2"},yV=["onClick"],_V={class:"max-md:w-full max-md:mt-4 flex justify-center px-4"},bV={class:"relative pt-20 md:pt-48"},wV={class:"bg-yellow-50"},xV={class:"relative z-10 codeweek-container"},kV={class:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6 lg:gap-10"};function SV(e,t,n,r,s,a){const o=at("multiselect"),u=at("resource-card"),d=at("pagination");return S(),P("div",$4,[v("div",B4,[v("div",{class:Be(["max-md:fixed left-0 top-[125px] z-[100] flex-col items-center w-full max-md:p-6 max-md:h-[calc(100dvh-125px)] max-md:overflow-auto max-md:bg-white duration-300",[r.showFilterModal?"flex":"max-md:hidden"]])},[v("div",H4,[v("button",{id:"search-menu-trigger-hide",class:"block bg-[#FFD700] hover:bg-[#F95C22] rounded-full p-4 duration-300",onClick:t[0]||(t[0]=h=>r.showFilterModal=!1)},t[14]||(t[14]=[v("img",{class:"w-6 h-6",src:"/images/close_menu_icon.svg"},null,-1)]))]),v("div",U4,[v("div",null,[v("label",j4,re(e.$t("resources.search_by_title_description")),1),Dn(v("input",{class:"px-6 py-3 w-full text-[16px] rounded-full border-solid border-2 border-[#A4B8D9] text-[#333E48] font-semibold placeholder:font-normal",type:"text","onUpdate:modelValue":t[1]||(t[1]=h=>r.searchInput=h),onSearchChange:t[2]||(t[2]=(...h)=>r.debounceSearch&&r.debounceSearch(...h)),onKeyup:t[3]||(t[3]=$n((...h)=>r.onSubmit&&r.onSubmit(...h),["enter"])),placeholder:e.$t("resources.search_resources")},null,40,q4),[[Ni,r.searchInput]])]),v("div",null,[v("label",W4,re(e.$t("resources.resource_type")),1),he(o,{modelValue:r.selectedTypes,"onUpdate:modelValue":t[4]||(t[4]=h=>r.selectedTypes=h),class:"multi-select",options:n.types,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:e.$t("resources.resource_type_placeholder"),label:"resources.resources.types","custom-label":r.customLabel,"track-by":"name","preselect-first":!1,onSelect:r.onSubmit,onRemove:r.onSubmit},{selection:Te(({values:h})=>[h.length>0?(S(),P("div",Y4," Selected "+re(h.length)+" "+re(h.length>1?"types":"type"),1)):ae("",!0)]),default:Te(()=>[v("pre",z4,[v("code",null,re(r.selectedTypes),1)])]),_:1},8,["modelValue","options","placeholder","custom-label","onSelect","onRemove"])]),v("div",null,[v("label",K4,re(e.$t("resources.target_audience")),1),he(o,{modelValue:r.selectedTargetAudiences,"onUpdate:modelValue":t[5]||(t[5]=h=>r.selectedTargetAudiences=h),class:"multi-select",options:r.targetAudiences,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:e.$t("resources.target_audience_placeholder"),label:"resources.resources.levels","custom-label":r.customLabel,"track-by":"name","preselect-first":!1,onSelect:r.onSubmit,onRemove:r.onSubmit},{selection:Te(({values:h})=>[h.length>0?(S(),P("div",J4," Selected "+re(h.length)+" "+re(h.length>1?"targets":"target"),1)):ae("",!0)]),default:Te(()=>[v("pre",G4,[v("code",null,re(r.selectedTargetAudiences),1)])]),_:1},8,["modelValue","options","placeholder","custom-label","onSelect","onRemove"])]),v("div",null,[v("label",Z4,re(e.$t("resources.level_difficulty")),1),he(o,{modelValue:r.selectedLevelsDifficulty,"onUpdate:modelValue":t[6]||(t[6]=h=>r.selectedLevelsDifficulty=h),class:"multi-select",options:r.levelsDifficulty,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:e.$t("resources.level_difficulty_placeholder"),label:"resources.resources.levels","custom-label":r.customLabel,"track-by":"name","preselect-first":!1,onSelect:r.onSubmit,onRemove:r.onSubmit},{selection:Te(({values:h})=>[h.length>0?(S(),P("div",Q4," Selected "+re(h.length)+" "+re(h.length>1?"levels":"level"),1)):ae("",!0)]),default:Te(()=>[v("pre",X4,[v("code",null,re(r.selectedLevelsDifficulty),1)])]),_:1},8,["modelValue","options","placeholder","custom-label","onSelect","onRemove"])]),v("div",null,[v("label",eV,re(e.$t("resources.Languages")),1),he(o,{modelValue:r.selectedLanguages,"onUpdate:modelValue":t[7]||(t[7]=h=>r.selectedLanguages=h),class:"multi-select",options:n.languages,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:e.$t("resources.languages_placeholder"),label:"resources.resources.languages","custom-label":r.customLabel,"track-by":"name","preselect-first":!1,onSelect:r.onSubmit,onRemove:r.onSubmit},{selection:Te(({values:h})=>[h.length>0?(S(),P("div",nV," Selected "+re(h.length)+" "+re(h.length>1?"languages":"language"),1)):ae("",!0)]),default:Te(()=>[v("pre",tV,[v("code",null,re(r.selectedLanguages),1)])]),_:1},8,["modelValue","options","placeholder","custom-label","onSelect","onRemove"])]),v("div",null,[v("label",rV,re(e.$t("resources.programming_languages")),1),he(o,{modelValue:r.selectedProgrammingLanguages,"onUpdate:modelValue":t[8]||(t[8]=h=>r.selectedProgrammingLanguages=h),class:"multi-select",options:n.programmingLanguages,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:e.$t("resources.programming_languages_placeholder"),label:"resources.resources.programming_languages","custom-label":r.customLabel,"track-by":"name","preselect-first":!1,onSelect:r.onSubmit,onRemove:r.onSubmit},{selection:Te(({values:h})=>[h.length>0?(S(),P("div",iV," Selected "+re(h.length)+" "+re(h.length>1?"programming languages":"programming language"),1)):ae("",!0)]),default:Te(()=>[v("pre",sV,[v("code",null,re(r.selectedProgrammingLanguages),1)])]),_:1},8,["modelValue","options","placeholder","custom-label","onSelect","onRemove"])]),v("div",null,[v("label",aV,re(e.$t("resources.Subjects")),1),he(o,{modelValue:r.selectedSubjects,"onUpdate:modelValue":t[9]||(t[9]=h=>r.selectedSubjects=h),class:"multi-select",options:n.subjects,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:e.$t("resources.subjects_placeholder"),label:"resources.resources.subjects","custom-label":r.customLabel,"track-by":"name","preselect-first":!1,onSelect:r.onSubmit,onRemove:r.onSubmit},{selection:Te(({values:h})=>[h.length>0?(S(),P("div",oV," Selected "+re(h.length)+" "+re(h.length>1?"subjects":"subject"),1)):ae("",!0)]),default:Te(()=>[v("pre",lV,[v("code",null,re(r.selectedSubjects),1)])]),_:1},8,["modelValue","options","placeholder","custom-label","onSelect","onRemove"])]),v("div",null,[v("label",uV,re(e.$t("resources.categories")),1),he(o,{modelValue:r.selectedCategories,"onUpdate:modelValue":t[10]||(t[10]=h=>r.selectedCategories=h),class:"multi-select",options:n.categories,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:e.$t("resources.categories_placeholder"),label:"resources.resources.categories","custom-label":r.customLabel,"track-by":"name","preselect-first":!1,onSelect:r.onSubmit,onRemove:r.onSubmit},{selection:Te(({values:h})=>[h.length>0?(S(),P("div",dV," Selected "+re(h.length)+" "+re(h.length>1?"categories":"category"),1)):ae("",!0)]),default:Te(()=>[v("pre",cV,[t[15]||(t[15]=ht(" ")),v("code",null,re(r.selectedCategories),1),t[16]||(t[16]=ht(` - `))])]),_:1},8,["modelValue","options","placeholder","custom-label","onSelect","onRemove"])]),v("div",fV,[t[17]||(t[17]=v("div",{class:"hidden lg:block lg:col-span-4"},null,-1)),v("div",hV,[v("button",{class:"w-full bg-[#F95C22] rounded-full py-2.5 px-6 font-['Blinker'] hover:bg-hover-orange duration-300",onClick:t[11]||(t[11]=()=>{r.showFilterModal=!1,r.onSubmit()})},[v("span",pV,re(e.$t("resources.search")),1)])])])])],2),v("button",{class:"block md:hidden w-full bg-[#F95C22] rounded-full py-2.5 px-6 font-['Blinker'] hover:bg-hover-orange duration-300 mb-8",onClick:t[12]||(t[12]=h=>r.showFilterModal=!0)},t[18]||(t[18]=[v("span",{class:"flex gap-2 justify-center items-center text-base leading-7 font-semibold text-black normal-case"},[ht(" Filter and search "),v("img",{class:"w-5 h-5",src:"/images/filter.svg"})],-1)])),r.tags.length?(S(),P("div",mV,[v("div",gV,[(S(!0),P(Ve,null,Qe(r.tags,h=>(S(),P("div",{key:h.id,class:"bg-light-blue-100 pl-4 pr-3 py-1 rounded-full text-slate-500 text-[16px] font-semibold"},[v("div",vV,[v("span",null,re(h.name),1),v("button",{onClick:f=>r.removeSelectedItem(h)},t[19]||(t[19]=[v("img",{class:"w-4 h-4",src:"/images/close-icon.svg"},null,-1)]),8,yV)])]))),128)),v("div",_V,[v("button",{class:"text-dark-blue underline font-semibold text-[16px]",onClick:t[13]||(t[13]=(...h)=>r.removeAllSelectedItems&&r.removeAllSelectedItems(...h))}," Clear all filters ")])])])):ae("",!0)]),v("div",bV,[t[20]||(t[20]=v("div",{class:"absolute w-full h-[800px] bg-yellow-50 md:hidden top-0",style:{"clip-path":"ellipse(270% 90% at 38% 90%)"}},null,-1)),t[21]||(t[21]=v("div",{class:"absolute w-full h-[800px] bg-yellow-50 hidden md:block top-0",style:{"clip-path":"ellipse(88% 90% at 50% 90%)"}},null,-1)),v("div",wV,[v("div",xV,[v("div",kV,[(S(!0),P(Ve,null,Qe(r.resources,h=>(S(),it(u,{key:h.id,resource:h},null,8,["resource"]))),128))]),r.pagination.last_page>1?(S(),it(d,{key:0,pagination:r.pagination,offset:5,onPaginate:r.paginate},null,8,["pagination","onPaginate"])):ae("",!0)])])])])}const TV=vt(F4,[["render",SV]]);window.singleselect=void 0;const AV={components:{Multiselect:Ta},props:{name:String,options:Array,value:String,placeholder:String},data(){return{values:this.value,option:this.options}}},CV={class:"multiselect-wrapper"},EV=["name","value"];function OV(e,t,n,r,s,a){const o=at("multiselect");return S(),P("div",CV,[he(o,{modelValue:s.values,"onUpdate:modelValue":t[0]||(t[0]=u=>s.values=u),options:s.option,placeholder:n.placeholder},null,8,["modelValue","options","placeholder"]),v("input",{name:n.name,type:"hidden",value:s.values},null,8,EV)])}const MV=vt(AV,[["render",OV]]),RV={components:{Multiselect:Ta},props:{name:String,value:String,options:Array,closeOnSelect:Boolean,label:String,translated:String,multiple:Boolean,searchable:Boolean},data(){let e=[],t=[];if(this.value){const n=this.value.split(",");t=n,e=n.map(r=>this.options.find(s=>s.id==r)).filter(r=>r!==void 0)}return{values:e,innerValues:t}},methods:{select(e){this.innerValues.push(e.id)},remove(e){this.innerValues=this.innerValues.filter(t=>t!=e.id)},customLabel(e,t){return this.$t(`${t}.${e.name}`)}}},DV={class:"multiselect-wrapper"},PV=["name","value"];function LV(e,t,n,r,s,a){const o=at("multiselect",!0);return S(),P("div",DV,[he(o,{modelValue:s.values,"onUpdate:modelValue":t[0]||(t[0]=u=>s.values=u),options:n.options,multiple:!0,taggable:!0,"close-on-select":!1,"clear-on-select":!1,searchable:!1,"show-labels":!1,placeholder:"","preserve-search":!0,label:n.label,"track-by":"id","preselect-first":!1,"custom-label":a.customLabel,onSelect:a.select,onRemove:a.remove},null,8,["modelValue","options","label","custom-label","onSelect","onRemove"]),v("input",{name:n.name,type:"hidden",value:s.innerValues.toString()},null,8,PV)])}const IV=vt(RV,[["render",LV]]),NV={props:["code","countries","target"],data(){return{selected_country:this.code||""}},methods:{newCountry(){window.location.href="/"+this.target+"/"+this.selected_country}}},VV={class:"relative"},FV=["value"];function $V(e,t,n,r,s,a){return S(),P("div",VV,[Dn(v("select",{"onUpdate:modelValue":t[0]||(t[0]=o=>s.selected_country=o),id:"id_country",name:"country_iso",onChange:t[1]||(t[1]=o=>a.newCountry()),class:"border-2 border-solid border-dark-blue-200 w-full rounded-full h-12 px-4 appearance-none"},[t[2]||(t[2]=v("option",{value:""}," All countries",-1)),t[3]||(t[3]=v("option",{disabled:"",value:"---"},"---------------",-1)),(S(!0),P(Ve,null,Qe(n.countries,o=>(S(),P("option",{value:o.iso},re(o.name)+" ("+re(o.total)+") ",9,FV))),256))],544),[[wp,s.selected_country]]),t[4]||(t[4]=v("div",{class:"cursor-pointer absolute top-1/2 right-4 -translate-y-1/2"},[v("img",{src:"/images/select-arrow.svg"})],-1))])}const BV=vt(NV,[["render",$V]]),HV={components:{Multiselect:Ta},props:["event","refresh","ambassador","pendingCounter","nextPending"],name:"moderate-activity",data(){return{status:this.event.status,showModal:!1,showDeleteModal:!1,rejectionText:"",rejectionOption:null,rejectionOptions:[{title:this.$t("moderation.description.title"),text:this.$t("moderation.description.text")},{title:this.$t("moderation.missing-details.title"),text:this.$t("moderation.missing-details.text")},{title:this.$t("moderation.duplicate.title"),text:this.$t("moderation.duplicate.text")},{title:this.$t("moderation.not-related.title"),text:this.$t("moderation.not-related.text")}]}},computed:{displayRejectionOptions(){return this.rejectionOptions.map(e=>{switch(e.title){case"moderation.description.title":return{title:"Missing proper descriptions",text:"Please improve the description and describe in more detail what you will do and how your activity relates to coding and computational thinking. Thanks!"};case"moderation.missing-details.title":return{title:"Missing important details",text:"Provide more details on the activity objectives and goals and how it makes use of technology, coding and critical thinking. Thanks!"};case"moderation.duplicate.title":return{title:"Duplicate",text:"This seems to be a duplication of another activity taking place at the same time. If it is not please change the description and change the title so that it is clear that the activities are separate. Thanks!"};case"moderation.not-related.title":return{title:"Not programming related",text:"Provide more information on the activity objectives and goals and how it makes use of technology, coding and critical thinking. Thanks!"};default:return e}})}},methods:{reRender(){this.refresh?window.location.reload(!1):window.location.assign(this.nextPending)},approve(){xt.post("/api/event/approve/"+this.event.id).then(()=>{this.status="APPROVED",this.reRender()})},deleteEvent(){xt.post("/api/event/delete/"+this.event.id).then(e=>{this.status="DELETED",this.refresh?this.reRender():window.location.assign(e.data.redirectUrl)})},toggleModal(){this.showModal=!this.showModal},toggleDeleteModal(){this.showDeleteModal=!this.showDeleteModal},reject(){xt.post("/api/event/reject/"+this.event.id,{rejectionText:this.rejectionText}).then(()=>{this.toggleModal(),this.status="REJECTED",this.reRender()})},prefillRejectionText(){this.rejectionText=this.rejectionOption.text}}},UV={class:"moderate-event"},jV={key:0,class:"px-5 flex items-center w-full gap-1"},qV={class:"flex justify-end flex-1 items-center gap-1"},WV={key:1,class:"h-8 w-full grid grid-cols-3 gap-4 items-center"},YV={class:"flex-none"},zV={href:"/pending"},KV={class:"flex justify-center"},GV={key:0},JV={class:"actions flex justify-items-end justify-end gap-2"},ZV={key:0,class:"modal-overlay"},XV={class:"modal-container"},QV={class:"modal-header"},eF={class:"modal-body"},tF={class:"modal-footer"},nF={key:0,class:"modal-overlay"},rF={class:"modal-container"},sF={class:"modal-header"},iF={class:"modal-footer"};function aF(e,t,n,r,s,a){const o=at("multiselect");return S(),P("div",UV,[n.refresh?(S(),P("div",jV,[t[14]||(t[14]=v("p",{class:"text-default text-slate-500 flex items-center font-semibold p-0"},"Moderation:",-1)),v("div",qV,[v("button",{onClick:t[0]||(t[0]=(...u)=>a.approve&&a.approve(...u)),class:"font-normal w-fit px-2.5 py-1 bg-dark-blue text-white rounded-full flex items-center"},"Approve"),v("button",{onClick:t[1]||(t[1]=(...u)=>a.toggleModal&&a.toggleModal(...u)),class:"font-normal w-fit px-2.5 py-1 bg-primary text-white rounded-full flex items-center"},"Reject"),v("button",{onClick:t[2]||(t[2]=(...u)=>a.toggleDeleteModal&&a.toggleDeleteModal(...u)),class:"font-normal w-fit px-2.5 py-1 bg-dark-orange text-white rounded-full flex items-center"},"Delete")])])):ae("",!0),n.refresh?ae("",!0):(S(),P("div",WV,[v("div",YV,[t[15]||(t[15]=ht("Pending Activities: ")),v("a",zV,re(n.pendingCounter),1)]),v("div",KV,[v("div",null,[ht(re(e.$t("event.current_status"))+": ",1),v("strong",null,re(s.status),1),t[16]||(t[16]=ht()),n.event.LatestModeration?(S(),P("span",GV,"("+re(n.event.LatestModeration.message)+")",1)):ae("",!0)])]),v("div",JV,[v("button",{onClick:t[3]||(t[3]=(...u)=>a.approve&&a.approve(...u)),class:"codeweek-action-button green"},"Approve"),v("button",{onClick:t[4]||(t[4]=(...u)=>a.toggleModal&&a.toggleModal(...u)),class:"codeweek-action-button"},"Reject"),v("button",{onClick:t[5]||(t[5]=(...u)=>a.toggleDeleteModal&&a.toggleDeleteModal(...u)),class:"codeweek-action-button red"},"Delete")])])),he(vs,{name:"modal"},{default:Te(()=>[s.showModal?(S(),P("div",ZV,[v("div",XV,[v("div",QV,[t[17]||(t[17]=v("h3",{class:"text-2xl font-semibold"},"Please provide a reason for rejection",-1)),v("button",{onClick:t[6]||(t[6]=(...u)=>a.toggleModal&&a.toggleModal(...u)),class:"close-button"},"×")]),v("div",eF,[t[18]||(t[18]=v("p",{class:"text-gray-800 text-lg leading-relaxed"},"This will help the activity organizer to improve their submission.",-1)),he(o,{modelValue:s.rejectionOption,"onUpdate:modelValue":t[7]||(t[7]=u=>s.rejectionOption=u),options:a.displayRejectionOptions,"track-by":"title",label:"title","close-on-select":!0,"preserve-search":!1,placeholder:"Select a rejection reason",searchable:!1,"allow-empty":!1,onInput:a.prefillRejectionText},{singleLabel:Te(({option:u})=>[ht(re(u.title),1)]),_:1},8,["modelValue","options","onInput"]),Dn(v("textarea",{"onUpdate:modelValue":t[8]||(t[8]=u=>s.rejectionText=u),class:"reason-textarea",rows:"4",cols:"40",placeholder:"Reason for rejection"},null,512),[[Ni,s.rejectionText]])]),v("div",tF,[v("button",{onClick:t[9]||(t[9]=(...u)=>a.toggleModal&&a.toggleModal(...u)),class:"cancel-button"},"Cancel"),v("button",{onClick:t[10]||(t[10]=(...u)=>a.reject&&a.reject(...u)),class:"reject-button"},"Reject")])])])):ae("",!0)]),_:1}),he(vs,{name:"modal"},{default:Te(()=>[s.showDeleteModal?(S(),P("div",nF,[v("div",rF,[v("div",sF,[t[19]||(t[19]=v("h3",{class:"text-2xl font-semibold"},"Delete Event",-1)),v("button",{onClick:t[11]||(t[11]=(...u)=>a.toggleDeleteModal&&a.toggleDeleteModal(...u)),class:"close-button"},"×")]),t[20]||(t[20]=v("div",{class:"modal-body"},[v("p",null,"This event will be permanently deleted from the website. Are you sure you want to delete this event?")],-1)),v("div",iF,[v("button",{onClick:t[12]||(t[12]=(...u)=>a.toggleDeleteModal&&a.toggleDeleteModal(...u)),class:"cancel-button"},"Cancel"),v("button",{onClick:t[13]||(t[13]=(...u)=>a.deleteEvent&&a.deleteEvent(...u)),class:"delete-button"},"Delete")])])])):ae("",!0)]),_:1})])}const lF=vt(HV,[["render",aF]]),oF={props:{item:{required:!0},searchText:{required:!0}},setup(e){return{line2:pe(()=>(e.item.city?e.item.city+", ":"")+(e.item.country?e.item.country:""))}}},uF={class:"address-list-item"},cF={class:"address-info"},dF={class:"name"},fF={class:"city"};function hF(e,t,n,r,s,a){return S(),P("div",uF,[v("div",cF,[v("div",dF,re(n.item.name)+" "+re(n.item.housenumber),1),v("div",fF,re(r.line2),1)])])}const pF=vt(oF,[["render",hF],["__scopeId","data-v-86cd2f09"]]),mF=[["AF","AFG"],["AL","ALB"],["DZ","DZA"],["AS","ASM"],["AD","AND"],["AO","AGO"],["AI","AIA"],["AQ","ATA"],["AG","ATG"],["AR","ARG"],["AM","ARM"],["AW","ABW"],["AU","AUS"],["AT","AUT"],["AZ","AZE"],["BS","BHS"],["BH","BHR"],["BD","BGD"],["BB","BRB"],["BY","BLR"],["BE","BEL"],["BZ","BLZ"],["BJ","BEN"],["BM","BMU"],["BT","BTN"],["BO","BOL"],["BQ","BES"],["BA","BIH"],["BW","BWA"],["BV","BVT"],["BR","BRA"],["IO","IOT"],["BN","BRN"],["BG","BGR"],["BF","BFA"],["BI","BDI"],["CV","CPV"],["KH","KHM"],["CM","CMR"],["CA","CAN"],["KY","CYM"],["CF","CAF"],["TD","TCD"],["CL","CHL"],["CN","CHN"],["CX","CXR"],["CC","CCK"],["CO","COL"],["KM","COM"],["CD","COD"],["CG","COG"],["CK","COK"],["CR","CRI"],["HR","HRV"],["CU","CUB"],["CW","CUW"],["CY","CYP"],["CZ","CZE"],["CI","CIV"],["DK","DNK"],["DJ","DJI"],["DM","DMA"],["DO","DOM"],["EC","ECU"],["EG","EGY"],["SV","SLV"],["GQ","GNQ"],["ER","ERI"],["EE","EST"],["SZ","SWZ"],["ET","ETH"],["FK","FLK"],["FO","FRO"],["FJ","FJI"],["FI","FIN"],["FR","FRA"],["GF","GUF"],["PF","PYF"],["TF","ATF"],["GA","GAB"],["GM","GMB"],["GE","GEO"],["DE","DEU"],["GH","GHA"],["GI","GIB"],["GR","GRC"],["GL","GRL"],["GD","GRD"],["GP","GLP"],["GU","GUM"],["GT","GTM"],["GG","GGY"],["GN","GIN"],["GW","GNB"],["GY","GUY"],["HT","HTI"],["HM","HMD"],["VA","VAT"],["HN","HND"],["HK","HKG"],["HU","HUN"],["IS","ISL"],["IN","IND"],["ID","IDN"],["IR","IRN"],["IQ","IRQ"],["IE","IRL"],["IM","IMN"],["IL","ISR"],["IT","ITA"],["JM","JAM"],["JP","JPN"],["JE","JEY"],["JO","JOR"],["KZ","KAZ"],["KE","KEN"],["KI","KIR"],["KP","PRK"],["KR","KOR"],["KW","KWT"],["KG","KGZ"],["LA","LAO"],["LV","LVA"],["LB","LBN"],["LS","LSO"],["LR","LBR"],["LY","LBY"],["LI","LIE"],["LT","LTU"],["LU","LUX"],["MO","MAC"],["MG","MDG"],["MW","MWI"],["MY","MYS"],["MV","MDV"],["ML","MLI"],["MT","MLT"],["MH","MHL"],["MQ","MTQ"],["MR","MRT"],["MU","MUS"],["YT","MYT"],["MX","MEX"],["FM","FSM"],["MD","MDA"],["MC","MCO"],["MN","MNG"],["ME","MNE"],["MS","MSR"],["MA","MAR"],["MZ","MOZ"],["MM","MMR"],["NA","NAM"],["NR","NRU"],["NP","NPL"],["NL","NLD"],["NC","NCL"],["NZ","NZL"],["NI","NIC"],["NE","NER"],["NG","NGA"],["NU","NIU"],["NF","NFK"],["MP","MNP"],["NO","NOR"],["OM","OMN"],["PK","PAK"],["PW","PLW"],["PS","PSE"],["PA","PAN"],["PG","PNG"],["PY","PRY"],["PE","PER"],["PH","PHL"],["PN","PCN"],["PL","POL"],["PT","PRT"],["PR","PRI"],["QA","QAT"],["MK","MKD"],["RO","ROU"],["RU","RUS"],["RW","RWA"],["RE","REU"],["BL","BLM"],["SH","SHN"],["KN","KNA"],["LC","LCA"],["MF","MAF"],["PM","SPM"],["VC","VCT"],["WS","WSM"],["SM","SMR"],["ST","STP"],["SA","SAU"],["SN","SEN"],["RS","SRB"],["SC","SYC"],["SL","SLE"],["SG","SGP"],["SX","SXM"],["SK","SVK"],["SI","SVN"],["SB","SLB"],["SO","SOM"],["ZA","ZAF"],["GS","SGS"],["SS","SSD"],["ES","ESP"],["LK","LKA"],["SD","SDN"],["SR","SUR"],["SJ","SJM"],["SE","SWE"],["CH","CHE"],["SY","SYR"],["TW","TWN"],["TJ","TJK"],["TZ","TZA"],["TH","THA"],["TL","TLS"],["TG","TGO"],["TK","TKL"],["TO","TON"],["TT","TTO"],["TN","TUN"],["TR","TUR"],["TM","TKM"],["TC","TCA"],["TV","TUV"],["UG","UGA"],["UA","UKR"],["AE","ARE"],["GB","GBR"],["UM","UMI"],["US","USA"],["UY","URY"],["UZ","UZB"],["VU","VUT"],["VE","VEN"],["VN","VNM"],["VG","VGB"],["VI","VIR"],["WF","WLF"],["EH","ESH"],["YE","YEM"],["ZM","ZMB"],["ZW","ZWE"],["AX","ALA"]],gF=mF.map(([e,t])=>({iso2:e,iso3:t})),vF={props:{item:{required:!0}}};function yF(e,t,n,r,s,a){return S(),P("div",null,re(n.item),1)}const _F=vt(vF,[["render",yF]]),Ya={minLen:3,wait:500,timeout:null,isUpdateItems(e){if(e.length>=this.minLen)return!0},callUpdateItems(e,t){clearTimeout(this.timeout),this.isUpdateItems(e)&&(this.timeout=setTimeout(t,this.wait))},findItem(e,t,n){if(t&&n&&e.length==1)return e[0]}},bF={name:"VAutocomplete",props:{componentItem:{default:()=>_F},minLen:{type:Number,default:Ya.minLen},wait:{type:Number,default:Ya.wait},value:null,getLabel:{type:Function,default:e=>e},items:Array,autoSelectOneItem:{type:Boolean,default:!0},placeholder:String,inputClass:{type:String,default:"v-autocomplete-input"},disabled:{type:Boolean,default:!1},inputAttrs:{type:Object,default:()=>({})},keepOpen:{type:Boolean,default:!1},initialLocation:{type:String,default:null}},setup(e,{emit:t}){let n=fe("");e.initialLocation&&(n=fe(e.initialLocation));const r=fe(!1),s=fe(-1),a=fe(e.items||[]),o=pe(()=>!!a.value.length),u=pe(()=>r.value&&o.value||e.keepOpen),d=()=>{r.value=!0,s.value=-1,y(null),Ya.callUpdateItems(n.value,h),t("change",n.value)},h=()=>{t("update-items",n.value)},f=()=>{t("focus",n.value),r.value=!0},p=()=>{t("blur",n.value),setTimeout(()=>r.value=!1,200)},m=C=>{y(C),t("item-clicked",C)},y=C=>{C?(a.value=[C],n.value=e.getLabel(C),t("item-selected",C)):_(e.items),t("input",C)},_=C=>{a.value=C||[]},b=C=>a.value.length===1&&C===a.value[0],O=()=>{s.value>-1&&(s.value--,V(document.getElementsByClassName("v-autocomplete-list-item")[s.value]))},H=()=>{s.value{C&&C.scrollIntoView&&C.scrollIntoView(!1)},x=()=>{r.value&&a.value[s.value]&&(y(a.value[s.value]),r.value=!1)};return Wt(()=>e.items,C=>{_(C);const F=Ya.findItem(e.items,n.value,e.autoSelectOneItem);F&&(y(F),r.value=!1)}),Wt(()=>e.value,C=>{b(C)||(y(C),n.value=e.getLabel(C))}),It(()=>{Ya.minLen=e.minLen,Ya.wait=e.wait,y(e.value)}),{searchText:n,showList:r,cursor:s,internalItems:a,hasItems:o,show:u,inputChange:d,updateItems:h,focus:f,blur:p,onClickItem:m,onSelectItem:y,setItems:_,isSelectedValue:b,keyUp:O,keyDown:H,itemView:V,keyEnter:x}}},wF={class:"v-autocomplete"},xF=["placeholder","disabled"],kF={key:0,class:"v-autocomplete-list"},SF=["onClick","onMouseover"];function TF(e,t,n,r,s,a){return S(),P("div",wF,[v("div",{class:Be(["v-autocomplete-input-group",{"v-autocomplete-selected":n.value}])},[Dn(v("input",cn({type:"search","onUpdate:modelValue":t[0]||(t[0]=o=>r.searchText=o)},n.inputAttrs,{class:n.inputAttrs.class||n.inputClass,placeholder:n.inputAttrs.placeholder||n.placeholder,disabled:n.inputAttrs.disabled||n.disabled,onBlur:t[1]||(t[1]=(...o)=>r.blur&&r.blur(...o)),onFocus:t[2]||(t[2]=(...o)=>r.focus&&r.focus(...o)),onInput:t[3]||(t[3]=(...o)=>r.inputChange&&r.inputChange(...o)),onKeyup:t[4]||(t[4]=$n((...o)=>r.keyEnter&&r.keyEnter(...o),["enter"])),onKeydown:[t[5]||(t[5]=$n((...o)=>r.keyEnter&&r.keyEnter(...o),["tab"])),t[6]||(t[6]=$n((...o)=>r.keyUp&&r.keyUp(...o),["up"])),t[7]||(t[7]=$n((...o)=>r.keyDown&&r.keyDown(...o),["down"]))]}),null,16,xF),[[Ni,r.searchText]])],2),r.show?(S(),P("div",kF,[(S(!0),P(Ve,null,Qe(r.internalItems,(o,u)=>(S(),P("div",{class:Be(["v-autocomplete-list-item",{"v-autocomplete-item-active":u===r.cursor}]),key:u,onClick:d=>r.onClickItem(o),onMouseover:d=>r.cursor=u},[(S(),it(Al(n.componentItem),{item:o,searchText:r.searchText},null,8,["item","searchText"]))],42,SF))),128))])):ae("",!0)])}const AF=vt(bF,[["render",TF]]),CF={components:{VAutocomplete:AF},props:{placeholder:String,name:String,value:String,geoposition:String,location:String},emits:["onChange"],setup(e,{emit:t}){const n=fe(e.value?{name:e.value}:null),r=fe(null),s=pF,a=fe({placeholder:e.placeholder,name:e.name,autocomplete:"off"}),o=fe(e.geoposition),u=e.location;Wt(()=>e.placeholder,()=>{a.value.placeholder=e.placeholder});const d=y=>{t("onChange",{location:(y==null?void 0:y.name)||""}),y&&y.name&&y.magicKey&&xt.get("/api/proxy/geocode",{params:{singleLine:y.name,magicKey:y.magicKey}}).then(b=>{const O=b.data.candidates[0];o.value=[O.location.y,O.location.x],window.map&&window.map.setView([O.location.y,O.location.x],16);const H=h(O.attributes.Country).iso2;t("onChange",{location:(y==null?void 0:y.name)||"",geoposition:[O.location.y,O.location.x],country_iso:H||""}),document.getElementById("id_country")&&(document.getElementById("id_country").value=H)}).catch(b=>{console.error("Error:",b)})},h=y=>gF.find(_=>_.iso3===y),f=y=>y&&y.name?y.name:"",p=y=>{y===""&&(r.value=null)},m=y=>{xt.get("/api/proxy/suggest",{params:{f:"json",text:y}}).then(b=>{r.value=b.data.suggestions.map(O=>({name:O.text,magicKey:O.magicKey}))}).catch(b=>{console.error("Error:",b)})};return Wt(()=>e.value,y=>{n.value=y?{name:y}:null}),Wt(()=>e.geoposition,y=>{o.value=y}),{item:n,items:r,template:s,inputAttrs:a,itemSelected:d,getLabel:f,change:p,updateItems:m,localGeoposition:o,initialLocation:u}}},EF=["value"];function OF(e,t,n,r,s,a){const o=at("v-autocomplete");return S(),P("div",null,[he(o,{items:r.items,modelValue:r.item,"onUpdate:modelValue":t[0]||(t[0]=u=>r.item=u),"get-label":r.getLabel,"component-item":r.template,onUpdateItems:r.updateItems,onItemSelected:r.itemSelected,onChange:r.change,"keep-open":!1,"auto-select-one-item":!1,"input-attrs":r.inputAttrs,wait:300,initialLocation:r.initialLocation},null,8,["items","modelValue","get-label","component-item","onUpdateItems","onItemSelected","onChange","input-attrs","initialLocation"]),v("input",{type:"hidden",name:"geoposition",id:"geoposition",value:r.localGeoposition},null,8,EF)])}const MF=vt(CF,[["render",OF]]);function Ze(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Lt(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function fs(e,t){const n=Ze(e);return isNaN(t)?Lt(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function gs(e,t){const n=Ze(e);if(isNaN(t))return Lt(e,NaN);if(!t)return n;const r=n.getDate(),s=Lt(e,n.getTime());s.setMonth(n.getMonth()+t+1,0);const a=s.getDate();return r>=a?s:(n.setFullYear(s.getFullYear(),s.getMonth(),r),n)}function H1(e,t){const{years:n=0,months:r=0,weeks:s=0,days:a=0,hours:o=0,minutes:u=0,seconds:d=0}=t,h=Ze(e),f=r||n?gs(h,r+n*12):h,p=a||s?fs(f,a+s*7):f,m=u+o*60,_=(d+m*60)*1e3;return Lt(e,p.getTime()+_)}function RF(e,t){const n=+Ze(e);return Lt(e,n+t)}const U1=6048e5,DF=864e5,PF=6e4,j1=36e5,LF=1e3;function IF(e,t){return RF(e,t*j1)}let NF={};function Aa(){return NF}function ys(e,t){var u,d,h,f;const n=Aa(),r=(t==null?void 0:t.weekStartsOn)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??n.weekStartsOn??((f=(h=n.locale)==null?void 0:h.options)==null?void 0:f.weekStartsOn)??0,s=Ze(e),a=s.getDay(),o=(a=s.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function s0(e){const t=Ze(e);return t.setHours(0,0,0,0),t}function Oc(e){const t=Ze(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function W1(e,t){const n=s0(e),r=s0(t),s=+n-Oc(n),a=+r-Oc(r);return Math.round((s-a)/DF)}function VF(e){const t=q1(e),n=Lt(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),gl(n)}function FF(e,t){const n=t*3;return gs(e,n)}function qp(e,t){return gs(e,t*12)}function i0(e,t){const n=Ze(e),r=Ze(t),s=n.getTime()-r.getTime();return s<0?-1:s>0?1:s}function Y1(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function oo(e){if(!Y1(e)&&typeof e!="number")return!1;const t=Ze(e);return!isNaN(Number(t))}function a0(e){const t=Ze(e);return Math.trunc(t.getMonth()/3)+1}function $F(e,t){const n=Ze(e),r=Ze(t);return n.getFullYear()-r.getFullYear()}function BF(e,t){const n=Ze(e),r=Ze(t),s=i0(n,r),a=Math.abs($F(n,r));n.setFullYear(1584),r.setFullYear(1584);const o=i0(n,r)===-s,u=s*(a-+o);return u===0?0:u}function z1(e,t){const n=Ze(e.start),r=Ze(e.end);let s=+n>+r;const a=s?+n:+r,o=s?r:n;o.setHours(0,0,0,0);let u=1;const d=[];for(;+o<=a;)d.push(Ze(o)),o.setDate(o.getDate()+u),o.setHours(0,0,0,0);return s?d.reverse():d}function oa(e){const t=Ze(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function HF(e,t){const n=Ze(e.start),r=Ze(e.end);let s=+n>+r;const a=s?+oa(n):+oa(r);let o=oa(s?r:n),u=1;const d=[];for(;+o<=a;)d.push(Ze(o)),o=FF(o,u);return s?d.reverse():d}function UF(e){const t=Ze(e);return t.setDate(1),t.setHours(0,0,0,0),t}function K1(e){const t=Ze(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function Co(e){const t=Ze(e),n=Lt(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function G1(e,t){var u,d,h,f;const n=Aa(),r=(t==null?void 0:t.weekStartsOn)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??n.weekStartsOn??((f=(h=n.locale)==null?void 0:h.options)==null?void 0:f.weekStartsOn)??0,s=Ze(e),a=s.getDay(),o=(a{let r;const s=jF[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Jf(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const WF={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},YF={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},zF={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},KF={date:Jf({formats:WF,defaultWidth:"full"}),time:Jf({formats:YF,defaultWidth:"full"}),dateTime:Jf({formats:zF,defaultWidth:"full"})},GF={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},JF=(e,t,n,r)=>GF[e];function Kl(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,u=n!=null&&n.width?String(n.width):o;s=e.formattingValues[u]||e.formattingValues[o]}else{const o=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;s=e.values[u]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return s[a]}}const ZF={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},XF={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},QF={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},e6={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},t6={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},n6={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},r6=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},s6={ordinalNumber:r6,era:Kl({values:ZF,defaultWidth:"wide"}),quarter:Kl({values:XF,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Kl({values:QF,defaultWidth:"wide"}),day:Kl({values:e6,defaultWidth:"wide"}),dayPeriod:Kl({values:t6,defaultWidth:"wide",formattingValues:n6,defaultFormattingWidth:"wide"})};function Gl(e){return(t,n={})=>{const r=n.width,s=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(s);if(!a)return null;const o=a[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(u)?a6(u,p=>p.test(o)):i6(u,p=>p.test(o));let h;h=e.valueCallback?e.valueCallback(d):d,h=n.valueCallback?n.valueCallback(h):h;const f=t.slice(o.length);return{value:h,rest:f}}}function i6(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function a6(e,t){for(let n=0;n{const r=t.match(e.matchPattern);if(!r)return null;const s=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const u=t.slice(s.length);return{value:o,rest:u}}}const o6=/^(\d+)(th|st|nd|rd)?/i,u6=/\d+/i,c6={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},d6={any:[/^b/i,/^(a|c)/i]},f6={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},h6={any:[/1/i,/2/i,/3/i,/4/i]},p6={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},m6={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},g6={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},v6={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},y6={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},_6={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},b6={ordinalNumber:l6({matchPattern:o6,parsePattern:u6,valueCallback:e=>parseInt(e,10)}),era:Gl({matchPatterns:c6,defaultMatchWidth:"wide",parsePatterns:d6,defaultParseWidth:"any"}),quarter:Gl({matchPatterns:f6,defaultMatchWidth:"wide",parsePatterns:h6,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Gl({matchPatterns:p6,defaultMatchWidth:"wide",parsePatterns:m6,defaultParseWidth:"any"}),day:Gl({matchPatterns:g6,defaultMatchWidth:"wide",parsePatterns:v6,defaultParseWidth:"any"}),dayPeriod:Gl({matchPatterns:y6,defaultMatchWidth:"any",parsePatterns:_6,defaultParseWidth:"any"})},J1={code:"en-US",formatDistance:qF,formatLong:KF,formatRelative:JF,localize:s6,match:b6,options:{weekStartsOn:0,firstWeekContainsDate:1}};function w6(e){const t=Ze(e);return W1(t,Co(t))+1}function Wp(e){const t=Ze(e),n=+gl(t)-+VF(t);return Math.round(n/U1)+1}function Yp(e,t){var f,p,m,y;const n=Ze(e),r=n.getFullYear(),s=Aa(),a=(t==null?void 0:t.firstWeekContainsDate)??((p=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??s.firstWeekContainsDate??((y=(m=s.locale)==null?void 0:m.options)==null?void 0:y.firstWeekContainsDate)??1,o=Lt(e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const u=ys(o,t),d=Lt(e,0);d.setFullYear(r,0,a),d.setHours(0,0,0,0);const h=ys(d,t);return n.getTime()>=u.getTime()?r+1:n.getTime()>=h.getTime()?r:r-1}function x6(e,t){var u,d,h,f;const n=Aa(),r=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(h=n.locale)==null?void 0:h.options)==null?void 0:f.firstWeekContainsDate)??1,s=Yp(e,t),a=Lt(e,0);return a.setFullYear(s,0,r),a.setHours(0,0,0,0),ys(a,t)}function zp(e,t){const n=Ze(e),r=+ys(n,t)-+x6(n,t);return Math.round(r/U1)+1}function Bt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const vi={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Bt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Bt(n+1,2)},d(e,t){return Bt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Bt(e.getHours()%12||12,t.length)},H(e,t){return Bt(e.getHours(),t.length)},m(e,t){return Bt(e.getMinutes(),t.length)},s(e,t){return Bt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return Bt(s,t.length)}},za={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},o0={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return vi.y(e,t)},Y:function(e,t,n,r){const s=Yp(e,r),a=s>0?s:1-s;if(t==="YY"){const o=a%100;return Bt(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):Bt(a,t.length)},R:function(e,t){const n=q1(e);return Bt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Bt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Bt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Bt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return vi.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Bt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const s=zp(e,r);return t==="wo"?n.ordinalNumber(s,{unit:"week"}):Bt(s,t.length)},I:function(e,t,n){const r=Wp(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Bt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):vi.d(e,t)},D:function(e,t,n){const r=w6(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Bt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const s=e.getDay(),a=(s-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Bt(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const s=e.getDay(),a=(s-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Bt(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),s=r===0?7:r;switch(t){case"i":return String(s);case"ii":return Bt(s,t.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let s;switch(r===12?s=za.noon:r===0?s=za.midnight:s=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let s;switch(r>=17?s=za.evening:r>=12?s=za.afternoon:r>=4?s=za.morning:s=za.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return vi.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):vi.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Bt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Bt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):vi.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):vi.s(e,t)},S:function(e,t){return vi.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return c0(r);case"XXXX":case"XX":return ra(r);case"XXXXX":case"XXX":default:return ra(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return c0(r);case"xxxx":case"xx":return ra(r);case"xxxxx":case"xxx":default:return ra(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+u0(r,":");case"OOOO":default:return"GMT"+ra(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+u0(r,":");case"zzzz":default:return"GMT"+ra(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Bt(r,t.length)},T:function(e,t,n){const r=e.getTime();return Bt(r,t.length)}};function u0(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Math.trunc(r/60),a=r%60;return a===0?n+String(s):n+String(s)+t+Bt(a,2)}function c0(e,t){return e%60===0?(e>0?"-":"+")+Bt(Math.abs(e)/60,2):ra(e,t)}function ra(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Bt(Math.trunc(r/60),2),a=Bt(r%60,2);return n+s+t+a}const d0=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Z1=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},k6=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return d0(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",d0(r,t)).replace("{{time}}",Z1(s,t))},Uh={p:Z1,P:k6},S6=/^D+$/,T6=/^Y+$/,A6=["D","DD","YY","YYYY"];function X1(e){return S6.test(e)}function Q1(e){return T6.test(e)}function jh(e,t,n){const r=C6(e,t,n);if(console.warn(r),A6.includes(e))throw new RangeError(r)}function C6(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const E6=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,O6=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,M6=/^'([^]*?)'?$/,R6=/''/g,D6=/[a-zA-Z]/;function Ds(e,t,n){var f,p,m,y,_,b,O,H;const r=Aa(),s=(n==null?void 0:n.locale)??r.locale??J1,a=(n==null?void 0:n.firstWeekContainsDate)??((p=(f=n==null?void 0:n.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??r.firstWeekContainsDate??((y=(m=r.locale)==null?void 0:m.options)==null?void 0:y.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((b=(_=n==null?void 0:n.locale)==null?void 0:_.options)==null?void 0:b.weekStartsOn)??r.weekStartsOn??((H=(O=r.locale)==null?void 0:O.options)==null?void 0:H.weekStartsOn)??0,u=Ze(e);if(!oo(u))throw new RangeError("Invalid time value");let d=t.match(O6).map(V=>{const x=V[0];if(x==="p"||x==="P"){const C=Uh[x];return C(V,s.formatLong)}return V}).join("").match(E6).map(V=>{if(V==="''")return{isToken:!1,value:"'"};const x=V[0];if(x==="'")return{isToken:!1,value:P6(V)};if(o0[x])return{isToken:!0,value:V};if(x.match(D6))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:V}});s.localize.preprocessor&&(d=s.localize.preprocessor(u,d));const h={firstWeekContainsDate:a,weekStartsOn:o,locale:s};return d.map(V=>{if(!V.isToken)return V.value;const x=V.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Q1(x)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&X1(x))&&jh(x,t,String(e));const C=o0[x[0]];return C(u,x,s.localize,h)}).join("")}function P6(e){const t=e.match(M6);return t?t[1].replace(R6,"'"):e}function L6(e){return Ze(e).getDay()}function I6(e){const t=Ze(e),n=t.getFullYear(),r=t.getMonth(),s=Lt(e,0);return s.setFullYear(n,r+1,0),s.setHours(0,0,0,0),s.getDate()}function N6(){return Object.assign({},Aa())}function ri(e){return Ze(e).getHours()}function V6(e){let n=Ze(e).getDay();return n===0&&(n=7),n}function Vi(e){return Ze(e).getMinutes()}function wt(e){return Ze(e).getMonth()}function vl(e){return Ze(e).getSeconds()}function lt(e){return Ze(e).getFullYear()}function yl(e,t){const n=Ze(e),r=Ze(t);return n.getTime()>r.getTime()}function Eo(e,t){const n=Ze(e),r=Ze(t);return+n<+r}function el(e,t){const n=Ze(e),r=Ze(t);return+n==+r}function F6(e,t){const n=t instanceof Date?Lt(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}const $6=10;class ew{constructor(){ze(this,"subPriority",0)}validate(t,n){return!0}}class B6 extends ew{constructor(t,n,r,s,a){super(),this.value=t,this.validateValue=n,this.setValue=r,this.priority=s,a&&(this.subPriority=a)}validate(t,n){return this.validateValue(t,this.value,n)}set(t,n,r){return this.setValue(t,n,this.value,r)}}class H6 extends ew{constructor(){super(...arguments);ze(this,"priority",$6);ze(this,"subPriority",-1)}set(n,r){return r.timestampIsSet?n:Lt(n,F6(n,Date))}}class Nt{run(t,n,r,s){const a=this.parse(t,n,r,s);return a?{setter:new B6(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(t,n,r){return!0}}class U6 extends Nt{constructor(){super(...arguments);ze(this,"priority",140);ze(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,s){switch(r){case"G":case"GG":case"GGG":return s.era(n,{width:"abbreviated"})||s.era(n,{width:"narrow"});case"GGGGG":return s.era(n,{width:"narrow"});case"GGGG":default:return s.era(n,{width:"wide"})||s.era(n,{width:"abbreviated"})||s.era(n,{width:"narrow"})}}set(n,r,s){return r.era=s,n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}const kn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Os={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Sn(e,t){return e&&{value:t(e.value),rest:e.rest}}function rn(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Ms(e,t){const n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};const r=n[1]==="+"?1:-1,s=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(s*j1+a*PF+o*LF),rest:t.slice(n[0].length)}}function tw(e){return rn(kn.anyDigitsSigned,e)}function dn(e,t){switch(e){case 1:return rn(kn.singleDigit,t);case 2:return rn(kn.twoDigits,t);case 3:return rn(kn.threeDigits,t);case 4:return rn(kn.fourDigits,t);default:return rn(new RegExp("^\\d{1,"+e+"}"),t)}}function Mc(e,t){switch(e){case 1:return rn(kn.singleDigitSigned,t);case 2:return rn(kn.twoDigitsSigned,t);case 3:return rn(kn.threeDigitsSigned,t);case 4:return rn(kn.fourDigitsSigned,t);default:return rn(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Kp(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function nw(e,t){const n=t>0,r=n?t:1-t;let s;if(r<=50)s=e||100;else{const a=r+50,o=Math.trunc(a/100)*100,u=e>=a%100;s=e+o-(u?100:0)}return n?s:1-s}function rw(e){return e%400===0||e%4===0&&e%100!==0}class j6 extends Nt{constructor(){super(...arguments);ze(this,"priority",130);ze(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,s){const a=o=>({year:o,isTwoDigitYear:r==="yy"});switch(r){case"y":return Sn(dn(4,n),a);case"yo":return Sn(s.ordinalNumber(n,{unit:"year"}),a);default:return Sn(dn(r.length,n),a)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,s){const a=n.getFullYear();if(s.isTwoDigitYear){const u=nw(s.year,a);return n.setFullYear(u,0,1),n.setHours(0,0,0,0),n}const o=!("era"in r)||r.era===1?s.year:1-s.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}class q6 extends Nt{constructor(){super(...arguments);ze(this,"priority",130);ze(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,s){const a=o=>({year:o,isTwoDigitYear:r==="YY"});switch(r){case"Y":return Sn(dn(4,n),a);case"Yo":return Sn(s.ordinalNumber(n,{unit:"year"}),a);default:return Sn(dn(r.length,n),a)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,s,a){const o=Yp(n,a);if(s.isTwoDigitYear){const d=nw(s.year,o);return n.setFullYear(d,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),ys(n,a)}const u=!("era"in r)||r.era===1?s.year:1-s.year;return n.setFullYear(u,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),ys(n,a)}}class W6 extends Nt{constructor(){super(...arguments);ze(this,"priority",130);ze(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return Mc(r==="R"?4:r.length,n)}set(n,r,s){const a=Lt(n,0);return a.setFullYear(s,0,4),a.setHours(0,0,0,0),gl(a)}}class Y6 extends Nt{constructor(){super(...arguments);ze(this,"priority",130);ze(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return Mc(r==="u"?4:r.length,n)}set(n,r,s){return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}class z6 extends Nt{constructor(){super(...arguments);ze(this,"priority",120);ze(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"Q":case"QQ":return dn(r.length,n);case"Qo":return s.ordinalNumber(n,{unit:"quarter"});case"QQQ":return s.quarter(n,{width:"abbreviated",context:"formatting"})||s.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(n,{width:"wide",context:"formatting"})||s.quarter(n,{width:"abbreviated",context:"formatting"})||s.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,s){return n.setMonth((s-1)*3,1),n.setHours(0,0,0,0),n}}class K6 extends Nt{constructor(){super(...arguments);ze(this,"priority",120);ze(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"q":case"qq":return dn(r.length,n);case"qo":return s.ordinalNumber(n,{unit:"quarter"});case"qqq":return s.quarter(n,{width:"abbreviated",context:"standalone"})||s.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(n,{width:"wide",context:"standalone"})||s.quarter(n,{width:"abbreviated",context:"standalone"})||s.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,s){return n.setMonth((s-1)*3,1),n.setHours(0,0,0,0),n}}class G6 extends Nt{constructor(){super(...arguments);ze(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);ze(this,"priority",110)}parse(n,r,s){const a=o=>o-1;switch(r){case"M":return Sn(rn(kn.month,n),a);case"MM":return Sn(dn(2,n),a);case"Mo":return Sn(s.ordinalNumber(n,{unit:"month"}),a);case"MMM":return s.month(n,{width:"abbreviated",context:"formatting"})||s.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(n,{width:"wide",context:"formatting"})||s.month(n,{width:"abbreviated",context:"formatting"})||s.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.setMonth(s,1),n.setHours(0,0,0,0),n}}class J6 extends Nt{constructor(){super(...arguments);ze(this,"priority",110);ze(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,s){const a=o=>o-1;switch(r){case"L":return Sn(rn(kn.month,n),a);case"LL":return Sn(dn(2,n),a);case"Lo":return Sn(s.ordinalNumber(n,{unit:"month"}),a);case"LLL":return s.month(n,{width:"abbreviated",context:"standalone"})||s.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(n,{width:"wide",context:"standalone"})||s.month(n,{width:"abbreviated",context:"standalone"})||s.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.setMonth(s,1),n.setHours(0,0,0,0),n}}function Z6(e,t,n){const r=Ze(e),s=zp(r,n)-t;return r.setDate(r.getDate()-s*7),r}class X6 extends Nt{constructor(){super(...arguments);ze(this,"priority",100);ze(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,s){switch(r){case"w":return rn(kn.week,n);case"wo":return s.ordinalNumber(n,{unit:"week"});default:return dn(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,s,a){return ys(Z6(n,s,a),a)}}function Q6(e,t){const n=Ze(e),r=Wp(n)-t;return n.setDate(n.getDate()-r*7),n}class e$ extends Nt{constructor(){super(...arguments);ze(this,"priority",100);ze(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,s){switch(r){case"I":return rn(kn.week,n);case"Io":return s.ordinalNumber(n,{unit:"week"});default:return dn(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,s){return gl(Q6(n,s))}}const t$=[31,28,31,30,31,30,31,31,30,31,30,31],n$=[31,29,31,30,31,30,31,31,30,31,30,31];class r$ extends Nt{constructor(){super(...arguments);ze(this,"priority",90);ze(this,"subPriority",1);ze(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"d":return rn(kn.date,n);case"do":return s.ordinalNumber(n,{unit:"date"});default:return dn(r.length,n)}}validate(n,r){const s=n.getFullYear(),a=rw(s),o=n.getMonth();return a?r>=1&&r<=n$[o]:r>=1&&r<=t$[o]}set(n,r,s){return n.setDate(s),n.setHours(0,0,0,0),n}}class s$ extends Nt{constructor(){super(...arguments);ze(this,"priority",90);ze(this,"subpriority",1);ze(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,s){switch(r){case"D":case"DD":return rn(kn.dayOfYear,n);case"Do":return s.ordinalNumber(n,{unit:"date"});default:return dn(r.length,n)}}validate(n,r){const s=n.getFullYear();return rw(s)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,s){return n.setMonth(0,s),n.setHours(0,0,0,0),n}}function Gp(e,t,n){var p,m,y,_;const r=Aa(),s=(n==null?void 0:n.weekStartsOn)??((m=(p=n==null?void 0:n.locale)==null?void 0:p.options)==null?void 0:m.weekStartsOn)??r.weekStartsOn??((_=(y=r.locale)==null?void 0:y.options)==null?void 0:_.weekStartsOn)??0,a=Ze(e),o=a.getDay(),d=(t%7+7)%7,h=7-s,f=t<0||t>6?t-(o+h)%7:(d+h)%7-(o+h)%7;return fs(a,f)}class i$ extends Nt{constructor(){super(...arguments);ze(this,"priority",90);ze(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"E":case"EE":case"EEE":return s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,a){return n=Gp(n,s,a),n.setHours(0,0,0,0),n}}class a$ extends Nt{constructor(){super(...arguments);ze(this,"priority",90);ze(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,s,a){const o=u=>{const d=Math.floor((u-1)/7)*7;return(u+a.weekStartsOn+6)%7+d};switch(r){case"e":case"ee":return Sn(dn(r.length,n),o);case"eo":return Sn(s.ordinalNumber(n,{unit:"day"}),o);case"eee":return s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"eeeee":return s.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,a){return n=Gp(n,s,a),n.setHours(0,0,0,0),n}}class l$ extends Nt{constructor(){super(...arguments);ze(this,"priority",90);ze(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,s,a){const o=u=>{const d=Math.floor((u-1)/7)*7;return(u+a.weekStartsOn+6)%7+d};switch(r){case"c":case"cc":return Sn(dn(r.length,n),o);case"co":return Sn(s.ordinalNumber(n,{unit:"day"}),o);case"ccc":return s.day(n,{width:"abbreviated",context:"standalone"})||s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"});case"ccccc":return s.day(n,{width:"narrow",context:"standalone"});case"cccccc":return s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(n,{width:"wide",context:"standalone"})||s.day(n,{width:"abbreviated",context:"standalone"})||s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,a){return n=Gp(n,s,a),n.setHours(0,0,0,0),n}}function o$(e,t){const n=Ze(e),r=V6(n),s=t-r;return fs(n,s)}class u$ extends Nt{constructor(){super(...arguments);ze(this,"priority",90);ze(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,s){const a=o=>o===0?7:o;switch(r){case"i":case"ii":return dn(r.length,n);case"io":return s.ordinalNumber(n,{unit:"day"});case"iii":return Sn(s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),a);case"iiiii":return Sn(s.day(n,{width:"narrow",context:"formatting"}),a);case"iiiiii":return Sn(s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),a);case"iiii":default:return Sn(s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),a)}}validate(n,r){return r>=1&&r<=7}set(n,r,s){return n=o$(n,s),n.setHours(0,0,0,0),n}}class c$ extends Nt{constructor(){super(...arguments);ze(this,"priority",80);ze(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,s){switch(r){case"a":case"aa":case"aaa":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Kp(s),0,0,0),n}}class d$ extends Nt{constructor(){super(...arguments);ze(this,"priority",80);ze(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,s){switch(r){case"b":case"bb":case"bbb":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Kp(s),0,0,0),n}}class f$ extends Nt{constructor(){super(...arguments);ze(this,"priority",80);ze(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,s){switch(r){case"B":case"BB":case"BBB":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Kp(s),0,0,0),n}}class h$ extends Nt{constructor(){super(...arguments);ze(this,"priority",70);ze(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,s){switch(r){case"h":return rn(kn.hour12h,n);case"ho":return s.ordinalNumber(n,{unit:"hour"});default:return dn(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,s){const a=n.getHours()>=12;return a&&s<12?n.setHours(s+12,0,0,0):!a&&s===12?n.setHours(0,0,0,0):n.setHours(s,0,0,0),n}}class p$ extends Nt{constructor(){super(...arguments);ze(this,"priority",70);ze(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,s){switch(r){case"H":return rn(kn.hour23h,n);case"Ho":return s.ordinalNumber(n,{unit:"hour"});default:return dn(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,s){return n.setHours(s,0,0,0),n}}class m$ extends Nt{constructor(){super(...arguments);ze(this,"priority",70);ze(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,s){switch(r){case"K":return rn(kn.hour11h,n);case"Ko":return s.ordinalNumber(n,{unit:"hour"});default:return dn(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.getHours()>=12&&s<12?n.setHours(s+12,0,0,0):n.setHours(s,0,0,0),n}}class g$ extends Nt{constructor(){super(...arguments);ze(this,"priority",70);ze(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,s){switch(r){case"k":return rn(kn.hour24h,n);case"ko":return s.ordinalNumber(n,{unit:"hour"});default:return dn(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,s){const a=s<=24?s%24:s;return n.setHours(a,0,0,0),n}}class v$ extends Nt{constructor(){super(...arguments);ze(this,"priority",60);ze(this,"incompatibleTokens",["t","T"])}parse(n,r,s){switch(r){case"m":return rn(kn.minute,n);case"mo":return s.ordinalNumber(n,{unit:"minute"});default:return dn(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,s){return n.setMinutes(s,0,0),n}}class y$ extends Nt{constructor(){super(...arguments);ze(this,"priority",50);ze(this,"incompatibleTokens",["t","T"])}parse(n,r,s){switch(r){case"s":return rn(kn.second,n);case"so":return s.ordinalNumber(n,{unit:"second"});default:return dn(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,s){return n.setSeconds(s,0),n}}class _$ extends Nt{constructor(){super(...arguments);ze(this,"priority",30);ze(this,"incompatibleTokens",["t","T"])}parse(n,r){const s=a=>Math.trunc(a*Math.pow(10,-r.length+3));return Sn(dn(r.length,n),s)}set(n,r,s){return n.setMilliseconds(s),n}}class b$ extends Nt{constructor(){super(...arguments);ze(this,"priority",10);ze(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return Ms(Os.basicOptionalMinutes,n);case"XX":return Ms(Os.basic,n);case"XXXX":return Ms(Os.basicOptionalSeconds,n);case"XXXXX":return Ms(Os.extendedOptionalSeconds,n);case"XXX":default:return Ms(Os.extended,n)}}set(n,r,s){return r.timestampIsSet?n:Lt(n,n.getTime()-Oc(n)-s)}}class w$ extends Nt{constructor(){super(...arguments);ze(this,"priority",10);ze(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return Ms(Os.basicOptionalMinutes,n);case"xx":return Ms(Os.basic,n);case"xxxx":return Ms(Os.basicOptionalSeconds,n);case"xxxxx":return Ms(Os.extendedOptionalSeconds,n);case"xxx":default:return Ms(Os.extended,n)}}set(n,r,s){return r.timestampIsSet?n:Lt(n,n.getTime()-Oc(n)-s)}}class x$ extends Nt{constructor(){super(...arguments);ze(this,"priority",40);ze(this,"incompatibleTokens","*")}parse(n){return tw(n)}set(n,r,s){return[Lt(n,s*1e3),{timestampIsSet:!0}]}}class k$ extends Nt{constructor(){super(...arguments);ze(this,"priority",20);ze(this,"incompatibleTokens","*")}parse(n){return tw(n)}set(n,r,s){return[Lt(n,s),{timestampIsSet:!0}]}}const S$={G:new U6,y:new j6,Y:new q6,R:new W6,u:new Y6,Q:new z6,q:new K6,M:new G6,L:new J6,w:new X6,I:new e$,d:new r$,D:new s$,E:new i$,e:new a$,c:new l$,i:new u$,a:new c$,b:new d$,B:new f$,h:new h$,H:new p$,K:new m$,k:new g$,m:new v$,s:new y$,S:new _$,X:new b$,x:new w$,t:new x$,T:new k$},T$=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,A$=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,C$=/^'([^]*?)'?$/,E$=/''/g,O$=/\S/,M$=/[a-zA-Z]/;function qh(e,t,n,r){var b,O,H,V,x,C,F,U;const s=N6(),a=(r==null?void 0:r.locale)??s.locale??J1,o=(r==null?void 0:r.firstWeekContainsDate)??((O=(b=r==null?void 0:r.locale)==null?void 0:b.options)==null?void 0:O.firstWeekContainsDate)??s.firstWeekContainsDate??((V=(H=s.locale)==null?void 0:H.options)==null?void 0:V.firstWeekContainsDate)??1,u=(r==null?void 0:r.weekStartsOn)??((C=(x=r==null?void 0:r.locale)==null?void 0:x.options)==null?void 0:C.weekStartsOn)??s.weekStartsOn??((U=(F=s.locale)==null?void 0:F.options)==null?void 0:U.weekStartsOn)??0;if(t==="")return e===""?Ze(n):Lt(n,NaN);const d={firstWeekContainsDate:o,weekStartsOn:u,locale:a},h=[new H6],f=t.match(A$).map($=>{const D=$[0];if(D in Uh){const T=Uh[D];return T($,a.formatLong)}return $}).join("").match(T$),p=[];for(let $ of f){!(r!=null&&r.useAdditionalWeekYearTokens)&&Q1($)&&jh($,t,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&X1($)&&jh($,t,e);const D=$[0],T=S$[D];if(T){const{incompatibleTokens:B}=T;if(Array.isArray(B)){const ee=p.find(de=>B.includes(de.token)||de.token===D);if(ee)throw new RangeError(`The format string mustn't contain \`${ee.fullToken}\` and \`${$}\` at the same time`)}else if(T.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${$}\` and any other token at the same time`);p.push({token:D,fullToken:$});const se=T.run(e,$,a.match,d);if(!se)return Lt(n,NaN);h.push(se.setter),e=se.rest}else{if(D.match(M$))throw new RangeError("Format string contains an unescaped latin alphabet character `"+D+"`");if($==="''"?$="'":D==="'"&&($=R$($)),e.indexOf($)===0)e=e.slice($.length);else return Lt(n,NaN)}}if(e.length>0&&O$.test(e))return Lt(n,NaN);const m=h.map($=>$.priority).sort(($,D)=>D-$).filter(($,D,T)=>T.indexOf($)===D).map($=>h.filter(D=>D.priority===$).sort((D,T)=>T.subPriority-D.subPriority)).map($=>$[0]);let y=Ze(n);if(isNaN(y.getTime()))return Lt(n,NaN);const _={};for(const $ of m){if(!$.validate(y,d))return Lt(n,NaN);const D=$.set(y,_,d);Array.isArray(D)?(y=D[0],Object.assign(_,D[1])):y=D}return Lt(n,y)}function R$(e){return e.match(C$)[1].replace(E$,"'")}function f0(e,t){const n=oa(e),r=oa(t);return+n==+r}function D$(e,t){return fs(e,-t)}function sw(e,t){const n=Ze(e),r=n.getFullYear(),s=n.getDate(),a=Lt(e,0);a.setFullYear(r,t,15),a.setHours(0,0,0,0);const o=I6(a);return n.setMonth(t,Math.min(s,o)),n}function qt(e,t){let n=Ze(e);return isNaN(+n)?Lt(e,NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=sw(n,t.month)),t.date!=null&&n.setDate(t.date),t.hours!=null&&n.setHours(t.hours),t.minutes!=null&&n.setMinutes(t.minutes),t.seconds!=null&&n.setSeconds(t.seconds),t.milliseconds!=null&&n.setMilliseconds(t.milliseconds),n)}function P$(e,t){const n=Ze(e);return n.setHours(t),n}function iw(e,t){const n=Ze(e);return n.setMilliseconds(t),n}function L$(e,t){const n=Ze(e);return n.setMinutes(t),n}function aw(e,t){const n=Ze(e);return n.setSeconds(t),n}function Rs(e,t){const n=Ze(e);return isNaN(+n)?Lt(e,NaN):(n.setFullYear(t),n)}function _l(e,t){return gs(e,-t)}function I$(e,t){const{years:n=0,months:r=0,weeks:s=0,days:a=0,hours:o=0,minutes:u=0,seconds:d=0}=t,h=_l(e,r+n*12),f=D$(h,a+s*7),p=u+o*60,y=(d+p*60)*1e3;return Lt(e,f.getTime()-y)}function lw(e,t){return qp(e,-t)}function Cl(){return S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[v("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),v("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),v("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),v("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}Cl.compatConfig={MODE:3};function ow(){return S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[v("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),v("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}ow.compatConfig={MODE:3};function Jp(){return S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[v("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}Jp.compatConfig={MODE:3};function Zp(){return S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[v("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}Zp.compatConfig={MODE:3};function Xp(){return S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[v("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),v("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}Xp.compatConfig={MODE:3};function Qp(){return S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[v("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}Qp.compatConfig={MODE:3};function em(){return S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[v("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}em.compatConfig={MODE:3};const Ar=(e,t)=>t?new Date(e.toLocaleString("en-US",{timeZone:t})):new Date(e),tm=(e,t,n)=>Wh(e,t,n)||De(),N$=(e,t,n)=>{const r=t.dateInTz?Ar(new Date(e),t.dateInTz):De(e);return n?hr(r,!0):r},Wh=(e,t,n)=>{if(!e)return null;const r=n?hr(De(e),!0):De(e);return t?t.exactMatch?N$(e,t,n):Ar(r,t.timezone):r},V$=e=>{if(!e)return 0;const t=new Date,n=new Date(t.toLocaleString("en-US",{timeZone:"UTC"})),r=new Date(t.toLocaleString("en-US",{timeZone:e})),s=r.getTimezoneOffset()/60;return(+n-+r)/(1e3*60*60)-s};var cs=(e=>(e.month="month",e.year="year",e))(cs||{}),sa=(e=>(e.top="top",e.bottom="bottom",e))(sa||{}),ma=(e=>(e.header="header",e.calendar="calendar",e.timePicker="timePicker",e))(ma||{}),Qn=(e=>(e.month="month",e.year="year",e.calendar="calendar",e.time="time",e.minutes="minutes",e.hours="hours",e.seconds="seconds",e))(Qn||{});const F$=["timestamp","date","iso"];var ur=(e=>(e.up="up",e.down="down",e.left="left",e.right="right",e))(ur||{}),nn=(e=>(e.arrowUp="ArrowUp",e.arrowDown="ArrowDown",e.arrowLeft="ArrowLeft",e.arrowRight="ArrowRight",e.enter="Enter",e.space=" ",e.esc="Escape",e.tab="Tab",e.home="Home",e.end="End",e.pageUp="PageUp",e.pageDown="PageDown",e))(nn||{});function h0(e){return t=>new Intl.DateTimeFormat(e,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${t}T00:00:00+00:00`)).slice(0,2)}function $$(e){return t=>Ds(Ar(new Date(`2017-01-0${t}T00:00:00+00:00`),"UTC"),"EEEEEE",{locale:e})}const B$=(e,t,n)=>{const r=[1,2,3,4,5,6,7];let s;if(e!==null)try{s=r.map($$(e))}catch{s=r.map(h0(t))}else s=r.map(h0(t));const a=s.slice(0,n),o=s.slice(n+1,s.length);return[s[n]].concat(...o).concat(...a)},nm=(e,t,n)=>{const r=[];for(let s=+e[0];s<=+e[1];s++)r.push({value:+s,text:fw(s,t)});return n?r.reverse():r},uw=(e,t,n)=>{const r=[1,2,3,4,5,6,7,8,9,10,11,12].map(a=>{const o=a<10?`0${a}`:a;return new Date(`2017-${o}-01T00:00:00+00:00`)});if(e!==null)try{const a=n==="long"?"LLLL":"LLL";return r.map((o,u)=>{const d=Ds(Ar(o,"UTC"),a,{locale:e});return{text:d.charAt(0).toUpperCase()+d.substring(1),value:u}})}catch{}const s=new Intl.DateTimeFormat(t,{month:n,timeZone:"UTC"});return r.map((a,o)=>{const u=s.format(a);return{text:u.charAt(0).toUpperCase()+u.substring(1),value:o}})},H$=e=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][e],Ln=e=>{const t=Z(e);return t!=null&&t.$el?t==null?void 0:t.$el:t},U$=e=>({type:"dot",...e??{}}),cw=e=>Array.isArray(e)?!!e[0]&&!!e[1]:!1,rm={prop:e=>`"${e}" prop must be enabled!`,dateArr:e=>`You need to use array as "model-value" binding in order to support "${e}"`},Fn=e=>e,p0=e=>e===0?e:!e||isNaN(+e)?null:+e,m0=e=>e===null,dw=e=>{if(e)return[...e.querySelectorAll("input, button, select, textarea, a[href]")][0]},j$=e=>{const t=[],n=r=>r.filter(s=>s);for(let r=0;r{const r=n!=null,s=t!=null;if(!r&&!s)return!1;const a=+n,o=+t;return r&&s?+e>a||+ea:s?+ej$(e).map(n=>n.map(r=>{const{active:s,disabled:a,isBetween:o,highlighted:u}=t(r);return{...r,active:s,disabled:a,className:{dp__overlay_cell_active:s,dp__overlay_cell:!s,dp__overlay_cell_disabled:a,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:a&&s,dp__cell_in_between:o,"dp--highlighted":u}}})),Ri=(e,t,n=!1)=>{e&&t.allowStopPropagation&&(n&&e.stopImmediatePropagation(),e.stopPropagation())},q$=()=>["a[href]","area[href]","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[tabindex]:not([tabindex='-1'])","[data-datepicker-instance]"].join(", ");function W$(e,t){let n=[...document.querySelectorAll(q$())];n=n.filter(s=>!e.contains(s)||s.hasAttribute("data-datepicker-instance"));const r=n.indexOf(e);if(r>=0&&(t?r-1>=0:r+1<=n.length))return n[r+(t?-1:1)]}const Y$=(e,t)=>e==null?void 0:e.querySelector(`[data-dp-element="${t}"]`),fw=(e,t)=>new Intl.NumberFormat(t,{useGrouping:!1,style:"decimal"}).format(e),sm=e=>Ds(e,"dd-MM-yyyy"),Zf=e=>Array.isArray(e),Rc=(e,t)=>t.get(sm(e)),z$=(e,t)=>e?t?t instanceof Map?!!Rc(e,t):t(De(e)):!1:!0,Sr=(e,t,n=!1)=>{if(e.key===nn.enter||e.key===nn.space)return n&&e.preventDefault(),t()},g0=(e,t,n,r,s,a)=>{const o=qh(e,t.slice(0,e.length),new Date,{locale:a});return oo(o)&&Y1(o)?r||s?o:qt(o,{hours:+n.hours,minutes:+(n==null?void 0:n.minutes),seconds:+(n==null?void 0:n.seconds),milliseconds:0}):null},K$=(e,t,n,r,s,a)=>{const o=Array.isArray(n)?n[0]:n;if(typeof t=="string")return g0(e,t,o,r,s,a);if(Array.isArray(t)){let u=null;for(const d of t)if(u=g0(e,d,o,r,s,a),u)break;return u}return typeof t=="function"?t(e):null},De=e=>e?new Date(e):new Date,G$=(e,t,n)=>{if(t){const s=(e.getMonth()+1).toString().padStart(2,"0"),a=e.getDate().toString().padStart(2,"0"),o=e.getHours().toString().padStart(2,"0"),u=e.getMinutes().toString().padStart(2,"0"),d=n?e.getSeconds().toString().padStart(2,"0"):"00";return`${e.getFullYear()}-${s}-${a}T${o}:${u}:${d}.000Z`}const r=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds());return new Date(r).toISOString()},hr=(e,t)=>{const n=De(JSON.parse(JSON.stringify(e))),r=qt(n,{hours:0,minutes:0,seconds:0,milliseconds:0});return t?UF(r):r},Di=(e,t,n,r)=>{let s=e?De(e):De();return(t||t===0)&&(s=P$(s,+t)),(n||n===0)&&(s=L$(s,+n)),(r||r===0)&&(s=aw(s,+r)),iw(s,0)},on=(e,t)=>!e||!t?!1:Eo(hr(e),hr(t)),St=(e,t)=>!e||!t?!1:el(hr(e),hr(t)),_n=(e,t)=>!e||!t?!1:yl(hr(e),hr(t)),cd=(e,t,n)=>e!=null&&e[0]&&e!=null&&e[1]?_n(n,e[0])&&on(n,e[1]):e!=null&&e[0]&&t?_n(n,e[0])&&on(n,t)||on(n,e[0])&&_n(n,t):!1,hs=e=>{const t=qt(new Date(e),{date:1});return hr(t)},Xf=(e,t,n)=>t&&(n||n===0)?Object.fromEntries(["hours","minutes","seconds"].map(r=>r===t?[r,n]:[r,isNaN(+e[r])?void 0:+e[r]])):{hours:isNaN(+e.hours)?void 0:+e.hours,minutes:isNaN(+e.minutes)?void 0:+e.minutes,seconds:isNaN(+e.seconds)?void 0:+e.seconds},ga=e=>({hours:ri(e),minutes:Vi(e),seconds:vl(e)}),hw=(e,t)=>{if(t){const n=lt(De(t));if(n>e)return 12;if(n===e)return wt(De(t))}},pw=(e,t)=>{if(t){const n=lt(De(t));return n{if(e)return lt(De(e))},mw=(e,t)=>{const n=_n(e,t)?t:e,r=_n(t,e)?t:e;return z1({start:n,end:r})},J$=e=>{const t=gs(e,1);return{month:wt(t),year:lt(t)}},Ks=(e,t)=>{const n=ys(e,{weekStartsOn:+t}),r=G1(e,{weekStartsOn:+t});return[n,r]},gw=(e,t)=>{const n={hours:ri(De()),minutes:Vi(De()),seconds:t?vl(De()):0};return Object.assign(n,e)},Ti=(e,t,n)=>[qt(De(e),{date:1}),qt(De(),{month:t,year:n,date:1})],Xs=(e,t,n)=>{let r=e?De(e):De();return(t||t===0)&&(r=sw(r,t)),n&&(r=Rs(r,n)),r},vw=(e,t,n,r,s)=>{if(!r||s&&!t||!s&&!n)return!1;const a=s?gs(e,1):_l(e,1),o=[wt(a),lt(a)];return s?!X$(...o,t):!Z$(...o,n)},Z$=(e,t,n)=>on(...Ti(n,e,t))||St(...Ti(n,e,t)),X$=(e,t,n)=>_n(...Ti(n,e,t))||St(...Ti(n,e,t)),yw=(e,t,n,r,s,a,o)=>{if(typeof t=="function"&&!o)return t(e);const u=n?{locale:n}:void 0;return Array.isArray(e)?`${Ds(e[0],a,u)}${s&&!e[1]?"":r}${e[1]?Ds(e[1],a,u):""}`:Ds(e,a,u)},Ka=e=>{if(e)return null;throw new Error(rm.prop("partial-range"))},ju=(e,t)=>{if(t)return e();throw new Error(rm.prop("range"))},Yh=e=>Array.isArray(e)?oo(e[0])&&(e[1]?oo(e[1]):!0):e?oo(e):!1,Q$=(e,t)=>qt(t??De(),{hours:+e.hours||0,minutes:+e.minutes||0,seconds:+e.seconds||0}),Qf=(e,t,n,r)=>{if(!e)return!0;if(r){const s=n==="max"?Eo(e,t):yl(e,t),a={seconds:0,milliseconds:0};return s||el(qt(e,a),qt(t,a))}return n==="max"?e.getTime()<=t.getTime():e.getTime()>=t.getTime()},eh=(e,t,n)=>e?Q$(e,t):De(n??t),v0=(e,t,n,r,s)=>{if(Array.isArray(r)){const o=eh(e,r[0],t),u=eh(e,r[1],t);return Qf(r[0],o,n,!!t)&&Qf(r[1],u,n,!!t)&&s}const a=eh(e,r,t);return Qf(r,a,n,!!t)&&s},th=e=>qt(De(),ga(e)),e5=(e,t)=>e instanceof Map?Array.from(e.values()).filter(n=>lt(De(n))===t).map(n=>wt(n)):[],_w=(e,t,n)=>typeof e=="function"?e({month:t,year:n}):!!e.months.find(r=>r.month===t&&r.year===n),im=(e,t)=>typeof e=="function"?e(t):e.years.includes(t),bw=e=>Ds(e,"yyyy-MM-dd"),Jl=Hr({menuFocused:!1,shiftKeyInMenu:!1}),ww=()=>{const e=n=>{Jl.menuFocused=n},t=n=>{Jl.shiftKeyInMenu!==n&&(Jl.shiftKeyInMenu=n)};return{control:pe(()=>({shiftKeyInMenu:Jl.shiftKeyInMenu,menuFocused:Jl.menuFocused})),setMenuFocused:e,setShiftKey:t}},Gt=Hr({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),nh=fe(null),qu=fe(!1),rh=fe(!1),sh=fe(!1),ih=fe(!1),Zn=fe(0),vn=fe(0),Ui=()=>{const e=pe(()=>qu.value?[...Gt.selectionGrid,Gt.actionRow].filter(p=>p.length):rh.value?[...Gt.timePicker[0],...Gt.timePicker[1],ih.value?[]:[nh.value],Gt.actionRow].filter(p=>p.length):sh.value?[...Gt.monthPicker,Gt.actionRow]:[Gt.monthYear,...Gt.calendar,Gt.time,Gt.actionRow].filter(p=>p.length)),t=p=>{Zn.value=p?Zn.value+1:Zn.value-1;let m=null;e.value[vn.value]&&(m=e.value[vn.value][Zn.value]),!m&&e.value[vn.value+(p?1:-1)]?(vn.value=vn.value+(p?1:-1),Zn.value=p?0:e.value[vn.value].length-1):m||(Zn.value=p?Zn.value-1:Zn.value+1)},n=p=>{vn.value===0&&!p||vn.value===e.value.length&&p||(vn.value=p?vn.value+1:vn.value-1,e.value[vn.value]?e.value[vn.value]&&!e.value[vn.value][Zn.value]&&Zn.value!==0&&(Zn.value=e.value[vn.value].length-1):vn.value=p?vn.value-1:vn.value+1)},r=p=>{let m=null;e.value[vn.value]&&(m=e.value[vn.value][Zn.value]),m?m.focus({preventScroll:!qu.value}):Zn.value=p?Zn.value-1:Zn.value+1},s=()=>{t(!0),r(!0)},a=()=>{t(!1),r(!1)},o=()=>{n(!1),r(!0)},u=()=>{n(!0),r(!0)},d=(p,m)=>{Gt[m]=p},h=(p,m)=>{Gt[m]=p},f=()=>{Zn.value=0,vn.value=0};return{buildMatrix:d,buildMultiLevelMatrix:h,setTimePickerBackRef:p=>{nh.value=p},setSelectionGrid:p=>{qu.value=p,f(),p||(Gt.selectionGrid=[])},setTimePicker:(p,m=!1)=>{rh.value=p,ih.value=m,f(),p||(Gt.timePicker[0]=[],Gt.timePicker[1]=[])},setTimePickerElements:(p,m=0)=>{Gt.timePicker[m]=p},arrowRight:s,arrowLeft:a,arrowUp:o,arrowDown:u,clearArrowNav:()=>{Gt.monthYear=[],Gt.calendar=[],Gt.time=[],Gt.actionRow=[],Gt.selectionGrid=[],Gt.timePicker[0]=[],Gt.timePicker[1]=[],qu.value=!1,rh.value=!1,ih.value=!1,sh.value=!1,f(),nh.value=null},setMonthPicker:p=>{sh.value=p,f()},refSets:Gt}},y0=e=>({menuAppearTop:"dp-menu-appear-top",menuAppearBottom:"dp-menu-appear-bottom",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down",...e??{}}),t5=e=>({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",calendarWrap:"Calendar wrapper",calendarDays:"Calendar days",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:t=>`Increment ${t}`,decrementValue:t=>`Decrement ${t}`,openTpOverlay:t=>`Open ${t} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",nextYear:"Next year",prevYear:"Previous year",day:void 0,weekDay:void 0,...e??{}}),_0=e=>e?typeof e=="boolean"?e?2:0:+e>=2?+e:2:0,n5=e=>{const t=typeof e=="object"&&e,n={static:!0,solo:!1};if(!e)return{...n,count:_0(!1)};const r=t?e:{},s=t?r.count??!0:e,a=_0(s);return Object.assign(n,r,{count:a})},r5=(e,t,n)=>e||(typeof n=="string"?n:t),s5=e=>typeof e=="boolean"?e?y0({}):!1:y0(e),i5=e=>{const t={enterSubmit:!0,tabSubmit:!0,openMenu:!0,selectOnFocus:!1,rangeSeparator:" - "};return typeof e=="object"?{...t,...e??{},enabled:!0}:{...t,enabled:e}},a5=e=>({months:[],years:[],times:{hours:[],minutes:[],seconds:[]},...e??{}}),l5=e=>({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0,...e??{}}),o5=e=>{const t={input:!1};return typeof e=="object"?{...t,...e??{},enabled:!0}:{enabled:e,...t}},u5=e=>({allowStopPropagation:!0,closeOnScroll:!1,modeHeight:255,allowPreventDefault:!1,closeOnClearValue:!0,closeOnAutoApply:!0,noSwipe:!1,keepActionRow:!1,onClickOutside:void 0,tabOutClosesMenu:!0,arrowLeft:void 0,keepViewOnOffsetClick:!1,timeArrowHoldThreshold:0,...e??{}}),c5=e=>{const t={dates:Array.isArray(e)?e.map(n=>De(n)):[],years:[],months:[],quarters:[],weeks:[],weekdays:[],options:{highlightDisabled:!1}};return typeof e=="function"?e:{...t,...e??{}}},d5=e=>typeof e=="object"?{type:(e==null?void 0:e.type)??"local",hideOnOffsetDates:(e==null?void 0:e.hideOnOffsetDates)??!1}:{type:e,hideOnOffsetDates:!1},f5=(e,t)=>typeof e=="object"?{enabled:!0,...{noDisabledRange:!1,showLastInRange:!0,minMaxRawRange:!1,partialRange:!0,disableTimeRangeValidation:!1,maxRange:void 0,minRange:void 0,autoRange:void 0,fixedStart:!1,fixedEnd:!1},...e}:{enabled:e,noDisabledRange:t.noDisabledRange,showLastInRange:t.showLastInRange,minMaxRawRange:t.minMaxRawRange,partialRange:t.partialRange,disableTimeRangeValidation:t.disableTimeRangeValidation,maxRange:t.maxRange,minRange:t.minRange,autoRange:t.autoRange,fixedStart:t.fixedStart,fixedEnd:t.fixedEnd},h5=(e,t)=>e?typeof e=="string"?{timezone:e,exactMatch:!1,dateInTz:void 0,emitTimezone:t,convertModel:!0}:{timezone:e.timezone,exactMatch:e.exactMatch??!1,dateInTz:e.dateInTz??void 0,emitTimezone:t??e.emitTimezone,convertModel:e.convertModel??!0}:{timezone:void 0,exactMatch:!1,emitTimezone:t},ah=(e,t,n)=>new Map(e.map(r=>{const s=tm(r,t,n);return[sm(s),s]})),p5=(e,t)=>e.length?new Map(e.map(n=>{const r=tm(n.date,t);return[sm(r),n]})):null,m5=e=>{var t;return{minDate:Wh(e.minDate,e.timezone,e.isSpecific),maxDate:Wh(e.maxDate,e.timezone,e.isSpecific),disabledDates:Zf(e.disabledDates)?ah(e.disabledDates,e.timezone,e.isSpecific):e.disabledDates,allowedDates:Zf(e.allowedDates)?ah(e.allowedDates,e.timezone,e.isSpecific):null,highlight:typeof e.highlight=="object"&&Zf((t=e.highlight)==null?void 0:t.dates)?ah(e.highlight.dates,e.timezone):e.highlight,markers:p5(e.markers,e.timezone)}},g5=(e,t)=>typeof e=="boolean"?{enabled:e,dragSelect:!0,limit:+t}:{enabled:!!e,limit:e.limit?+e.limit:null,dragSelect:e.dragSelect??!0},v5=e=>({...Object.fromEntries(Object.keys(e).map(t=>{const n=t,r=e[n],s=typeof e[n]=="string"?{[r]:!0}:Object.fromEntries(r.map(a=>[a,!0]));return[t,s]}))}),sn=e=>{const t=()=>{const U=e.enableSeconds?":ss":"",$=e.enableMinutes?":mm":"";return e.is24?`HH${$}${U}`:`hh${$}${U} aa`},n=()=>{var U;return e.format?e.format:e.monthPicker?"MM/yyyy":e.timePicker?t():e.weekPicker?`${((U=O.value)==null?void 0:U.type)==="iso"?"RR":"ww"}-yyyy`:e.yearPicker?"yyyy":e.quarterPicker?"QQQ/yyyy":e.enableTimePicker?`MM/dd/yyyy, ${t()}`:"MM/dd/yyyy"},r=U=>gw(U,e.enableSeconds),s=()=>C.value.enabled?e.startTime&&Array.isArray(e.startTime)?[r(e.startTime[0]),r(e.startTime[1])]:null:e.startTime&&!Array.isArray(e.startTime)?r(e.startTime):null,a=pe(()=>n5(e.multiCalendars)),o=pe(()=>s()),u=pe(()=>t5(e.ariaLabels)),d=pe(()=>a5(e.filters)),h=pe(()=>s5(e.transitions)),f=pe(()=>l5(e.actionRow)),p=pe(()=>r5(e.previewFormat,e.format,n())),m=pe(()=>i5(e.textInput)),y=pe(()=>o5(e.inline)),_=pe(()=>u5(e.config)),b=pe(()=>c5(e.highlight)),O=pe(()=>d5(e.weekNumbers)),H=pe(()=>h5(e.timezone,e.emitTimezone)),V=pe(()=>g5(e.multiDates,e.multiDatesLimit)),x=pe(()=>m5({minDate:e.minDate,maxDate:e.maxDate,disabledDates:e.disabledDates,allowedDates:e.allowedDates,highlight:b.value,markers:e.markers,timezone:H.value,isSpecific:e.monthPicker||e.yearPicker||e.quarterPicker})),C=pe(()=>f5(e.range,{minMaxRawRange:!1,maxRange:e.maxRange,minRange:e.minRange,noDisabledRange:e.noDisabledRange,showLastInRange:e.showLastInRange,partialRange:e.partialRange,disableTimeRangeValidation:e.disableTimeRangeValidation,autoRange:e.autoRange,fixedStart:e.fixedStart,fixedEnd:e.fixedEnd})),F=pe(()=>v5(e.ui));return{defaultedTransitions:h,defaultedMultiCalendars:a,defaultedStartTime:o,defaultedAriaLabels:u,defaultedFilters:d,defaultedActionRow:f,defaultedPreviewFormat:p,defaultedTextInput:m,defaultedInline:y,defaultedConfig:_,defaultedHighlight:b,defaultedWeekNumbers:O,defaultedRange:C,propDates:x,defaultedTz:H,defaultedMultiDates:V,defaultedUI:F,getDefaultPattern:n,getDefaultStartTime:s}},y5=(e,t,n)=>{const r=fe(),{defaultedTextInput:s,defaultedRange:a,defaultedTz:o,defaultedMultiDates:u,getDefaultPattern:d}=sn(t),h=fe(""),f=ll(t,"format"),p=ll(t,"formatLocale");Wt(r,()=>{typeof t.onInternalModelChange=="function"&&e("internal-model-change",r.value,ge(!0))},{deep:!0}),Wt(a,(z,Le)=>{z.enabled!==Le.enabled&&(r.value=null)}),Wt(f,()=>{J()});const m=z=>o.value.timezone&&o.value.convertModel?Ar(z,o.value.timezone):z,y=z=>{if(o.value.timezone&&o.value.convertModel){const Le=V$(o.value.timezone);return IF(z,Le)}return z},_=(z,Le,Xe=!1)=>yw(z,t.format,t.formatLocale,s.value.rangeSeparator,t.modelAuto,Le??d(),Xe),b=z=>z?t.modelType?Me(z):{hours:ri(z),minutes:Vi(z),seconds:t.enableSeconds?vl(z):0}:null,O=z=>t.modelType?Me(z):{month:wt(z),year:lt(z)},H=z=>Array.isArray(z)?u.value.enabled?z.map(Le=>V(Le,Rs(De(),Le))):ju(()=>[Rs(De(),z[0]),z[1]?Rs(De(),z[1]):Ka(a.value.partialRange)],a.value.enabled):Rs(De(),+z),V=(z,Le)=>(typeof z=="string"||typeof z=="number")&&t.modelType?_e(z):Le,x=z=>Array.isArray(z)?[V(z[0],Di(null,+z[0].hours,+z[0].minutes,z[0].seconds)),V(z[1],Di(null,+z[1].hours,+z[1].minutes,z[1].seconds))]:V(z,Di(null,z.hours,z.minutes,z.seconds)),C=z=>{const Le=qt(De(),{date:1});return Array.isArray(z)?u.value.enabled?z.map(Xe=>V(Xe,Xs(Le,+Xe.month,+Xe.year))):ju(()=>[V(z[0],Xs(Le,+z[0].month,+z[0].year)),V(z[1],z[1]?Xs(Le,+z[1].month,+z[1].year):Ka(a.value.partialRange))],a.value.enabled):V(z,Xs(Le,+z.month,+z.year))},F=z=>{if(Array.isArray(z))return z.map(Le=>_e(Le));throw new Error(rm.dateArr("multi-dates"))},U=z=>{if(Array.isArray(z)&&a.value.enabled){const Le=z[0],Xe=z[1];return[De(Array.isArray(Le)?Le[0]:null),De(Array.isArray(Xe)?Xe[0]:null)]}return De(z[0])},$=z=>t.modelAuto?Array.isArray(z)?[_e(z[0]),_e(z[1])]:t.autoApply?[_e(z)]:[_e(z),null]:Array.isArray(z)?ju(()=>z[1]?[_e(z[0]),z[1]?_e(z[1]):Ka(a.value.partialRange)]:[_e(z[0])],a.value.enabled):_e(z),D=()=>{Array.isArray(r.value)&&a.value.enabled&&r.value.length===1&&r.value.push(Ka(a.value.partialRange))},T=()=>{const z=r.value;return[Me(z[0]),z[1]?Me(z[1]):Ka(a.value.partialRange)]},B=()=>r.value[1]?T():Me(Fn(r.value[0])),se=()=>(r.value||[]).map(z=>Me(z)),ee=(z=!1)=>(z||D(),t.modelAuto?B():u.value.enabled?se():Array.isArray(r.value)?ju(()=>T(),a.value.enabled):Me(Fn(r.value))),de=z=>!z||Array.isArray(z)&&!z.length?null:t.timePicker?x(Fn(z)):t.monthPicker?C(Fn(z)):t.yearPicker?H(Fn(z)):u.value.enabled?F(Fn(z)):t.weekPicker?U(Fn(z)):$(Fn(z)),ne=z=>{const Le=de(z);Yh(Fn(Le))?(r.value=Fn(Le),J()):(r.value=null,h.value="")},N=()=>{const z=Le=>Ds(Le,s.value.format);return`${z(r.value[0])} ${s.value.rangeSeparator} ${r.value[1]?z(r.value[1]):""}`},G=()=>n.value&&r.value?Array.isArray(r.value)?N():Ds(r.value,s.value.format):_(r.value),k=()=>r.value?u.value.enabled?r.value.map(z=>_(z)).join("; "):s.value.enabled&&typeof s.value.format=="string"?G():_(r.value):"",J=()=>{!t.format||typeof t.format=="string"||s.value.enabled&&typeof s.value.format=="string"?h.value=k():h.value=t.format(r.value)},_e=z=>{if(t.utc){const Le=new Date(z);return t.utc==="preserve"?new Date(Le.getTime()+Le.getTimezoneOffset()*6e4):Le}return t.modelType?F$.includes(t.modelType)?m(new Date(z)):t.modelType==="format"&&(typeof t.format=="string"||!t.format)?m(qh(z,d(),new Date,{locale:p.value})):m(qh(z,t.modelType,new Date,{locale:p.value})):m(new Date(z))},Me=z=>z?t.utc?G$(z,t.utc==="preserve",t.enableSeconds):t.modelType?t.modelType==="timestamp"?+y(z):t.modelType==="iso"?y(z).toISOString():t.modelType==="format"&&(typeof t.format=="string"||!t.format)?_(y(z)):_(y(z),t.modelType,!0):y(z):"",Ne=(z,Le=!1,Xe=!1)=>{if(Xe)return z;if(e("update:model-value",z),o.value.emitTimezone&&Le){const be=Array.isArray(z)?z.map(et=>Ar(Fn(et),o.value.emitTimezone)):Ar(Fn(z),o.value.emitTimezone);e("update:model-timezone-value",be)}},j=z=>Array.isArray(r.value)?u.value.enabled?r.value.map(Le=>z(Le)):[z(r.value[0]),r.value[1]?z(r.value[1]):Ka(a.value.partialRange)]:z(Fn(r.value)),te=()=>{if(Array.isArray(r.value)){const z=Ks(r.value[0],t.weekStart),Le=r.value[1]?Ks(r.value[1],t.weekStart):[];return[z.map(Xe=>De(Xe)),Le.map(Xe=>De(Xe))]}return Ks(r.value,t.weekStart).map(z=>De(z))},M=(z,Le)=>Ne(Fn(j(z)),!1,Le),ie=z=>{const Le=te();return z?Le:e("update:model-value",te())},ge=(z=!1)=>(z||J(),t.monthPicker?M(O,z):t.timePicker?M(b,z):t.yearPicker?M(lt,z):t.weekPicker?ie(z):Ne(ee(z),!0,z));return{inputValue:h,internalModelValue:r,checkBeforeEmit:()=>r.value?a.value.enabled?a.value.partialRange?r.value.length>=1:r.value.length===2:!!r.value:!1,parseExternalModelValue:ne,formatInputValue:J,emitModelValue:ge}},_5=(e,t)=>{const{defaultedFilters:n,propDates:r}=sn(e),{validateMonthYearInRange:s}=ji(e),a=(f,p)=>{let m=f;return n.value.months.includes(wt(m))?(m=p?gs(f,1):_l(f,1),a(m,p)):m},o=(f,p)=>{let m=f;return n.value.years.includes(lt(m))?(m=p?qp(f,1):lw(f,1),o(m,p)):m},u=(f,p=!1)=>{const m=qt(De(),{month:e.month,year:e.year});let y=f?gs(m,1):_l(m,1);e.disableYearSelect&&(y=Rs(y,e.year));let _=wt(y),b=lt(y);n.value.months.includes(_)&&(y=a(y,f),_=wt(y),b=lt(y)),n.value.years.includes(b)&&(y=o(y,f),b=lt(y)),s(_,b,f,e.preventMinMaxNavigation)&&d(_,b,p)},d=(f,p,m)=>{t("update-month-year",{month:f,year:p,fromNav:m})},h=pe(()=>f=>vw(qt(De(),{month:e.month,year:e.year}),r.value.maxDate,r.value.minDate,e.preventMinMaxNavigation,f));return{handleMonthYearChange:u,isDisabled:h,updateMonthYear:d}},dd={multiCalendars:{type:[Boolean,Number,String,Object],default:void 0},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},autoPosition:{type:Boolean,default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:[String,Object],default:null},emitTimezone:{type:String,default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},menuClassName:{type:String,default:null},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},calendarCellClassName:{type:String,default:null},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},autoRange:{type:[Number,String],default:null},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetDates:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},minRange:{type:[Number,String],default:null},maxRange:{type:[Number,String],default:null},multiDatesLimit:{type:[Number,String],default:null},reverseYears:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},disableTimeRangeValidation:{type:Boolean,default:!1},highlight:{type:[Function,Object],default:null},teleport:{type:[Boolean,String,Object],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function,Object],default:null},calendarClassName:{type:String,default:null},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:[Object,Boolean],default:!1},partialRange:{type:Boolean,default:!0},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},inputClassName:{type:String,default:null},fixedStart:{type:Boolean,default:!1},fixedEnd:{type:Boolean,default:!1},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:[Boolean,Object],default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:[Boolean,Object],default:!1},textInput:{type:[Boolean,Object],default:!1},noDisabledRange:{type:Boolean,default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:[Function,Array],default:void 0},showLastInRange:{type:Boolean,default:!0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},config:{type:Object,default:void 0},quarterPicker:{type:Boolean,default:!1},yearFirst:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},onInternalModelChange:{type:[Function,Object],default:null},enableMinutes:{type:Boolean,default:!0},ui:{type:Object,default:()=>({})}},bs={...dd,shadow:{type:Boolean,default:!1},flowStep:{type:Number,default:0},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},menuWrapRef:{type:Object,default:null},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1}},b5=["title"],w5=["disabled"],x5=fn({compatConfig:{MODE:3},__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},calendarWidth:{type:Number,default:0},...bs},emits:["close-picker","select-date","select-now","invalid-select"],setup(e,{emit:t}){const n=t,r=e,{defaultedActionRow:s,defaultedPreviewFormat:a,defaultedMultiCalendars:o,defaultedTextInput:u,defaultedInline:d,defaultedRange:h,defaultedMultiDates:f,getDefaultPattern:p}=sn(r),{isTimeValid:m,isMonthValid:y}=ji(r),{buildMatrix:_}=Ui(),b=fe(null),O=fe(null),H=fe(!1),V=fe({}),x=fe(null),C=fe(null);It(()=>{r.arrowNavigation&&_([Ln(b),Ln(O)],"actionRow"),F(),window.addEventListener("resize",F)}),ii(()=>{window.removeEventListener("resize",F)});const F=()=>{H.value=!1,setTimeout(()=>{var N,G;const k=(N=x.value)==null?void 0:N.getBoundingClientRect(),J=(G=C.value)==null?void 0:G.getBoundingClientRect();k&&J&&(V.value.maxWidth=`${J.width-k.width-20}px`),H.value=!0},0)},U=pe(()=>h.value.enabled&&!h.value.partialRange&&r.internalModelValue?r.internalModelValue.length===2:!0),$=pe(()=>!m.value(r.internalModelValue)||!y.value(r.internalModelValue)||!U.value),D=()=>{const N=a.value;return r.timePicker||r.monthPicker,N(Fn(r.internalModelValue))},T=()=>{const N=r.internalModelValue;return o.value.count>0?`${B(N[0])} - ${B(N[1])}`:[B(N[0]),B(N[1])]},B=N=>yw(N,a.value,r.formatLocale,u.value.rangeSeparator,r.modelAuto,p()),se=pe(()=>!r.internalModelValue||!r.menuMount?"":typeof a.value=="string"?Array.isArray(r.internalModelValue)?r.internalModelValue.length===2&&r.internalModelValue[1]?T():f.value.enabled?r.internalModelValue.map(N=>`${B(N)}`):r.modelAuto?`${B(r.internalModelValue[0])}`:`${B(r.internalModelValue[0])} -`:B(r.internalModelValue):D()),ee=()=>f.value.enabled?"; ":" - ",de=pe(()=>Array.isArray(se.value)?se.value.join(ee()):se.value),ne=()=>{m.value(r.internalModelValue)&&y.value(r.internalModelValue)&&U.value?n("select-date"):n("invalid-select")};return(N,G)=>(S(),P("div",{ref_key:"actionRowRef",ref:C,class:"dp__action_row"},[N.$slots["action-row"]?Ie(N.$slots,"action-row",wn(cn({key:0},{internalModelValue:N.internalModelValue,disabled:$.value,selectDate:()=>N.$emit("select-date"),closePicker:()=>N.$emit("close-picker")}))):(S(),P(Ve,{key:1},[Z(s).showPreview?(S(),P("div",{key:0,class:"dp__selection_preview",title:de.value,style:bn(V.value)},[N.$slots["action-preview"]&&H.value?Ie(N.$slots,"action-preview",{key:0,value:N.internalModelValue}):ae("",!0),!N.$slots["action-preview"]&&H.value?(S(),P(Ve,{key:1},[ht(re(de.value),1)],64)):ae("",!0)],12,b5)):ae("",!0),v("div",{ref_key:"actionBtnContainer",ref:x,class:"dp__action_buttons","data-dp-element":"action-row"},[N.$slots["action-buttons"]?Ie(N.$slots,"action-buttons",{key:0,value:N.internalModelValue}):ae("",!0),N.$slots["action-buttons"]?ae("",!0):(S(),P(Ve,{key:1},[!Z(d).enabled&&Z(s).showCancel?(S(),P("button",{key:0,ref_key:"cancelButtonRef",ref:b,type:"button",class:"dp__action_button dp__action_cancel",onClick:G[0]||(G[0]=k=>N.$emit("close-picker")),onKeydown:G[1]||(G[1]=k=>Z(Sr)(k,()=>N.$emit("close-picker")))},re(N.cancelText),545)):ae("",!0),Z(s).showNow?(S(),P("button",{key:1,type:"button",class:"dp__action_button dp__action_cancel",onClick:G[2]||(G[2]=k=>N.$emit("select-now")),onKeydown:G[3]||(G[3]=k=>Z(Sr)(k,()=>N.$emit("select-now")))},re(N.nowButtonLabel),33)):ae("",!0),Z(s).showSelect?(S(),P("button",{key:2,ref_key:"selectButtonRef",ref:O,type:"button",class:"dp__action_button dp__action_select",disabled:$.value,"data-test":"select-button",onKeydown:G[4]||(G[4]=k=>Z(Sr)(k,()=>ne())),onClick:ne},re(N.selectText),41,w5)):ae("",!0)],64))],512)],64))],512))}}),k5={class:"dp__selection_grid_header"},S5=["aria-selected","aria-disabled","data-test","onClick","onKeydown","onMouseover"],T5=["aria-label"],$o=fn({__name:"SelectionOverlay",props:{items:{},type:{},isLast:{type:Boolean},arrowNavigation:{type:Boolean},skipButtonRef:{type:Boolean},headerRefs:{},hideNavigation:{},escClose:{type:Boolean},useRelative:{type:Boolean},height:{},textInput:{type:[Boolean,Object]},config:{},noOverlayFocus:{type:Boolean},focusValue:{},menuWrapRef:{},ariaLabels:{}},emits:["selected","toggle","reset-flow","hover-value"],setup(e,{expose:t,emit:n}){const{setSelectionGrid:r,buildMultiLevelMatrix:s,setMonthPicker:a}=Ui(),o=n,u=e,{defaultedAriaLabels:d,defaultedTextInput:h,defaultedConfig:f}=sn(u),{hideNavigationButtons:p}=pd(),m=fe(!1),y=fe(null),_=fe(null),b=fe([]),O=fe(),H=fe(null),V=fe(0),x=fe(null);Jc(()=>{y.value=null}),It(()=>{Un().then(()=>se()),u.noOverlayFocus||F(),C(!0)}),ii(()=>C(!1));const C=j=>{var te;u.arrowNavigation&&((te=u.headerRefs)!=null&&te.length?a(j):r(j))},F=()=>{var j;const te=Ln(_);te&&(h.value.enabled||(y.value?(j=y.value)==null||j.focus({preventScroll:!0}):te.focus({preventScroll:!0})),m.value=te.clientHeight({dp__overlay:!0,"dp--overlay-absolute":!u.useRelative,"dp--overlay-relative":u.useRelative})),$=pe(()=>u.useRelative?{height:`${u.height}px`,width:"260px"}:void 0),D=pe(()=>({dp__overlay_col:!0})),T=pe(()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:m.value,dp__button_bottom:u.isLast})),B=pe(()=>{var j,te;return{dp__overlay_container:!0,dp__container_flex:((j=u.items)==null?void 0:j.length)<=6,dp__container_block:((te=u.items)==null?void 0:te.length)>6}});Wt(()=>u.items,()=>se(!1),{deep:!0});const se=(j=!0)=>{Un().then(()=>{const te=Ln(y),M=Ln(_),ie=Ln(H),ge=Ln(x),z=ie?ie.getBoundingClientRect().height:0;M&&(M.getBoundingClientRect().height?V.value=M.getBoundingClientRect().height-z:V.value=f.value.modeHeight-z),te&&ge&&j&&(ge.scrollTop=te.offsetTop-ge.offsetTop-(V.value/2-te.getBoundingClientRect().height)-z)})},ee=j=>{j.disabled||o("selected",j.value)},de=()=>{o("toggle"),o("reset-flow")},ne=()=>{u.escClose&&de()},N=(j,te,M,ie)=>{j&&((te.active||te.value===u.focusValue)&&(y.value=j),u.arrowNavigation&&(Array.isArray(b.value[M])?b.value[M][ie]=j:b.value[M]=[j],G()))},G=()=>{var j,te;const M=(j=u.headerRefs)!=null&&j.length?[u.headerRefs].concat(b.value):b.value.concat([u.skipButtonRef?[]:[H.value]]);s(Fn(M),(te=u.headerRefs)!=null&&te.length?"monthPicker":"selectionGrid")},k=j=>{u.arrowNavigation||Ri(j,f.value,!0)},J=j=>{O.value=j,o("hover-value",j)},_e=()=>{if(de(),!u.isLast){const j=Y$(u.menuWrapRef??null,"action-row");if(j){const te=dw(j);te==null||te.focus()}}},Me=j=>{switch(j.key){case nn.esc:return ne();case nn.arrowLeft:return k(j);case nn.arrowRight:return k(j);case nn.arrowUp:return k(j);case nn.arrowDown:return k(j);default:return}},Ne=j=>{if(j.key===nn.enter)return de();if(j.key===nn.tab)return _e()};return t({focusGrid:F}),(j,te)=>{var M;return S(),P("div",{ref_key:"gridWrapRef",ref:_,class:Be(U.value),style:bn($.value),role:"dialog",tabindex:"0",onKeydown:Me,onClick:te[0]||(te[0]=Et(()=>{},["prevent"]))},[v("div",{ref_key:"containerRef",ref:x,class:Be(B.value),role:"grid",style:bn({"--dp-overlay-height":`${V.value}px`})},[v("div",k5,[Ie(j.$slots,"header")]),j.$slots.overlay?Ie(j.$slots,"overlay",{key:0}):(S(!0),P(Ve,{key:1},Qe(j.items,(ie,ge)=>(S(),P("div",{key:ge,class:Be(["dp__overlay_row",{dp__flex_row:j.items.length>=3}]),role:"row"},[(S(!0),P(Ve,null,Qe(ie,(z,Le)=>(S(),P("div",{key:z.value,ref_for:!0,ref:Xe=>N(Xe,z,ge,Le),role:"gridcell",class:Be(D.value),"aria-selected":z.active||void 0,"aria-disabled":z.disabled||void 0,tabindex:"0","data-test":z.text,onClick:Et(Xe=>ee(z),["prevent"]),onKeydown:Xe=>Z(Sr)(Xe,()=>ee(z),!0),onMouseover:Xe=>J(z.value)},[v("div",{class:Be(z.className)},[j.$slots.item?Ie(j.$slots,"item",{key:0,item:z}):ae("",!0),j.$slots.item?ae("",!0):(S(),P(Ve,{key:1},[ht(re(z.text),1)],64))],2)],42,S5))),128))],2))),128))],6),j.$slots["button-icon"]?Dn((S(),P("button",{key:0,ref_key:"toggleButton",ref:H,type:"button","aria-label":(M=Z(d))==null?void 0:M.toggleOverlay,class:Be(T.value),tabindex:"0",onClick:de,onKeydown:Ne},[Ie(j.$slots,"button-icon")],42,T5)),[[Vr,!Z(p)(j.hideNavigation,j.type)]]):ae("",!0)],38)}}}),fd=fn({__name:"InstanceWrap",props:{multiCalendars:{},stretch:{type:Boolean},collapse:{type:Boolean}},setup(e){const t=e,n=pe(()=>t.multiCalendars>0?[...Array(t.multiCalendars).keys()]:[0]),r=pe(()=>({dp__instance_calendar:t.multiCalendars>0}));return(s,a)=>(S(),P("div",{class:Be({dp__menu_inner:!s.stretch,"dp--menu--inner-stretched":s.stretch,dp__flex_display:s.multiCalendars>0,"dp--flex-display-collapsed":s.collapse})},[(S(!0),P(Ve,null,Qe(n.value,(o,u)=>(S(),P("div",{key:o,class:Be(r.value)},[Ie(s.$slots,"default",{instance:o,index:u})],2))),128))],2))}}),A5=["aria-label","aria-disabled"],uo=fn({compatConfig:{MODE:3},__name:"ArrowBtn",props:{ariaLabel:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(e,{emit:t}){const n=t,r=fe(null);return It(()=>n("set-ref",r)),(s,a)=>(S(),P("button",{ref_key:"elRef",ref:r,type:"button",class:"dp__btn dp--arrow-btn-nav",tabindex:"0","aria-label":s.ariaLabel,"aria-disabled":s.disabled||void 0,onClick:a[0]||(a[0]=o=>s.$emit("activate")),onKeydown:a[1]||(a[1]=o=>Z(Sr)(o,()=>s.$emit("activate"),!0))},[v("span",{class:Be(["dp__inner_nav",{dp__inner_nav_disabled:s.disabled}])},[Ie(s.$slots,"default")],2)],40,A5))}}),C5={class:"dp--year-mode-picker"},E5=["aria-label","data-test"],xw=fn({__name:"YearModePicker",props:{...bs,showYearPicker:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},instance:{type:Number,default:0},year:{type:Number,default:0},isDisabled:{type:Function,default:()=>!1}},emits:["toggle-year-picker","year-select","handle-year"],setup(e,{emit:t}){const n=t,r=e,{showRightIcon:s,showLeftIcon:a}=pd(),{defaultedConfig:o,defaultedMultiCalendars:u,defaultedAriaLabels:d,defaultedTransitions:h,defaultedUI:f}=sn(r),{showTransition:p,transitionName:m}=Bo(h),y=(O=!1,H)=>{n("toggle-year-picker",{flow:O,show:H})},_=O=>{n("year-select",O)},b=(O=!1)=>{n("handle-year",O)};return(O,H)=>{var V,x,C,F,U;return S(),P("div",C5,[Z(a)(Z(u),e.instance)?(S(),it(uo,{key:0,ref:"mpPrevIconRef","aria-label":(V=Z(d))==null?void 0:V.prevYear,disabled:e.isDisabled(!1),class:Be((x=Z(f))==null?void 0:x.navBtnPrev),onActivate:H[0]||(H[0]=$=>b(!1))},{default:Te(()=>[O.$slots["arrow-left"]?Ie(O.$slots,"arrow-left",{key:0}):ae("",!0),O.$slots["arrow-left"]?ae("",!0):(S(),it(Z(Jp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):ae("",!0),v("button",{ref:"mpYearButtonRef",class:"dp__btn dp--year-select",type:"button","aria-label":(C=Z(d))==null?void 0:C.openYearsOverlay,"data-test":`year-mode-btn-${e.instance}`,onClick:H[1]||(H[1]=()=>y(!1)),onKeydown:H[2]||(H[2]=$n(()=>y(!1),["enter"]))},[O.$slots.year?Ie(O.$slots,"year",{key:0,year:e.year}):ae("",!0),O.$slots.year?ae("",!0):(S(),P(Ve,{key:1},[ht(re(e.year),1)],64))],40,E5),Z(s)(Z(u),e.instance)?(S(),it(uo,{key:1,ref:"mpNextIconRef","aria-label":(F=Z(d))==null?void 0:F.nextYear,disabled:e.isDisabled(!0),class:Be((U=Z(f))==null?void 0:U.navBtnNext),onActivate:H[3]||(H[3]=$=>b(!0))},{default:Te(()=>[O.$slots["arrow-right"]?Ie(O.$slots,"arrow-right",{key:0}):ae("",!0),O.$slots["arrow-right"]?ae("",!0):(S(),it(Z(Zp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):ae("",!0),he(vs,{name:Z(m)(e.showYearPicker),css:Z(p)},{default:Te(()=>[e.showYearPicker?(S(),it($o,{key:0,items:e.items,"text-input":O.textInput,"esc-close":O.escClose,config:O.config,"is-last":O.autoApply&&!Z(o).keepActionRow,"hide-navigation":O.hideNavigation,"aria-labels":O.ariaLabels,type:"year",onToggle:y,onSelected:H[4]||(H[4]=$=>_($))},Hn({"button-icon":Te(()=>[O.$slots["calendar-icon"]?Ie(O.$slots,"calendar-icon",{key:0}):ae("",!0),O.$slots["calendar-icon"]?ae("",!0):(S(),it(Z(Cl),{key:1}))]),_:2},[O.$slots["year-overlay-value"]?{name:"item",fn:Te(({item:$})=>[Ie(O.$slots,"year-overlay-value",{text:$.text,value:$.value})]),key:"0"}:void 0]),1032,["items","text-input","esc-close","config","is-last","hide-navigation","aria-labels"])):ae("",!0)]),_:3},8,["name","css"])])}}}),am=(e,t,n)=>{if(t.value&&Array.isArray(t.value))if(t.value.some(r=>St(e,r))){const r=t.value.filter(s=>!St(s,e));t.value=r.length?r:null}else(n&&+n>t.value.length||!n)&&t.value.push(e);else t.value=[e]},lm=(e,t,n)=>{let r=e.value?e.value.slice():[];return r.length===2&&r[1]!==null&&(r=[]),r.length?on(t,r[0])?(r.unshift(t),n("range-start",r[0]),n("range-start",r[1])):(r[1]=t,n("range-end",t)):(r=[t],n("range-start",t)),r},hd=(e,t,n,r)=>{e&&(e[0]&&e[1]&&n&&t("auto-apply"),e[0]&&!e[1]&&r&&n&&t("auto-apply"))},kw=e=>{Array.isArray(e.value)&&e.value.length<=2&&e.range?e.modelValue.value=e.value.map(t=>Ar(De(t),e.timezone)):Array.isArray(e.value)||(e.modelValue.value=Ar(De(e.value),e.timezone))},Sw=(e,t,n,r)=>Array.isArray(t.value)&&(t.value.length===2||t.value.length===1&&r.value.partialRange)?r.value.fixedStart&&(_n(e,t.value[0])||St(e,t.value[0]))?[t.value[0],e]:r.value.fixedEnd&&(on(e,t.value[1])||St(e,t.value[1]))?[e,t.value[1]]:(n("invalid-fixed-range",e),t.value):[],Tw=({multiCalendars:e,range:t,highlight:n,propDates:r,calendars:s,modelValue:a,props:o,filters:u,year:d,month:h,emit:f})=>{const p=pe(()=>nm(o.yearRange,o.locale,o.reverseYears)),m=fe([!1]),y=pe(()=>(B,se)=>{const ee=qt(hs(new Date),{month:h.value(B),year:d.value(B)}),de=se?K1(ee):Co(ee);return vw(de,r.value.maxDate,r.value.minDate,o.preventMinMaxNavigation,se)}),_=()=>Array.isArray(a.value)&&e.value.solo&&a.value[1],b=()=>{for(let B=0;B{if(!B)return b();const se=qt(De(),s.value[B]);return s.value[0].year=lt(lw(se,e.value.count-1)),b()},H=(B,se)=>{const ee=BF(se,B);return t.value.showLastInRange&&ee>1?se:B},V=B=>o.focusStartDate||e.value.solo?B[0]:B[1]?H(B[0],B[1]):B[0],x=()=>{if(a.value){const B=Array.isArray(a.value)?V(a.value):a.value;s.value[0]={month:wt(B),year:lt(B)}}},C=()=>{x(),e.value.count&&b()};Wt(a,(B,se)=>{o.isTextInputDate&&JSON.stringify(B??{})!==JSON.stringify(se??{})&&C()}),It(()=>{C()});const F=(B,se)=>{s.value[se].year=B,f("update-month-year",{instance:se,year:B,month:s.value[se].month}),e.value.count&&!e.value.solo&&O(se)},U=pe(()=>B=>bl(p.value,se=>{var ee;const de=d.value(B)===se.value,ne=Oo(se.value,wl(r.value.minDate),wl(r.value.maxDate))||((ee=u.value.years)==null?void 0:ee.includes(d.value(B))),N=im(n.value,se.value);return{active:de,disabled:ne,highlighted:N}})),$=(B,se)=>{F(B,se),T(se)},D=(B,se=!1)=>{if(!y.value(B,se)){const ee=se?d.value(B)+1:d.value(B)-1;F(ee,B)}},T=(B,se=!1,ee)=>{se||f("reset-flow"),ee!==void 0?m.value[B]=ee:m.value[B]=!m.value[B],m.value[B]?f("overlay-toggle",{open:!0,overlay:Qn.year}):(f("overlay-closed"),f("overlay-toggle",{open:!1,overlay:Qn.year}))};return{isDisabled:y,groupedYears:U,showYearPicker:m,selectYear:F,toggleYearPicker:T,handleYearSelect:$,handleYear:D}},O5=(e,t)=>{const{defaultedMultiCalendars:n,defaultedAriaLabels:r,defaultedTransitions:s,defaultedConfig:a,defaultedRange:o,defaultedHighlight:u,propDates:d,defaultedTz:h,defaultedFilters:f,defaultedMultiDates:p}=sn(e),m=()=>{e.isTextInputDate&&C(lt(De(e.startDate)),0)},{modelValue:y,year:_,month:b,calendars:O}=Ho(e,t,m),H=pe(()=>uw(e.formatLocale,e.locale,e.monthNameFormat)),V=fe(null),{checkMinMaxRange:x}=ji(e),{selectYear:C,groupedYears:F,showYearPicker:U,toggleYearPicker:$,handleYearSelect:D,handleYear:T,isDisabled:B}=Tw({modelValue:y,multiCalendars:n,range:o,highlight:u,calendars:O,year:_,propDates:d,month:b,filters:f,props:e,emit:t});It(()=>{e.startDate&&(y.value&&e.focusStartDate||!y.value)&&C(lt(De(e.startDate)),0)});const se=M=>M?{month:wt(M),year:lt(M)}:{month:null,year:null},ee=()=>y.value?Array.isArray(y.value)?y.value.map(M=>se(M)):se(y.value):se(),de=(M,ie)=>{const ge=O.value[M],z=ee();return Array.isArray(z)?z.some(Le=>Le.year===(ge==null?void 0:ge.year)&&Le.month===ie):(ge==null?void 0:ge.year)===z.year&&ie===z.month},ne=(M,ie,ge)=>{var z,Le;const Xe=ee();return Array.isArray(Xe)?_.value(ie)===((z=Xe[ge])==null?void 0:z.year)&&M===((Le=Xe[ge])==null?void 0:Le.month):!1},N=(M,ie)=>{if(o.value.enabled){const ge=ee();if(Array.isArray(y.value)&&Array.isArray(ge)){const z=ne(M,ie,0)||ne(M,ie,1),Le=Xs(hs(De()),M,_.value(ie));return cd(y.value,V.value,Le)&&!z}return!1}return!1},G=pe(()=>M=>bl(H.value,ie=>{var ge;const z=de(M,ie.value),Le=Oo(ie.value,hw(_.value(M),d.value.minDate),pw(_.value(M),d.value.maxDate))||e5(d.value.disabledDates,_.value(M)).includes(ie.value)||((ge=f.value.months)==null?void 0:ge.includes(ie.value)),Xe=N(ie.value,M),be=_w(u.value,ie.value,_.value(M));return{active:z,disabled:Le,isBetween:Xe,highlighted:be}})),k=(M,ie)=>Xs(hs(De()),M,_.value(ie)),J=(M,ie)=>{const ge=y.value?y.value:hs(new Date);y.value=Xs(ge,M,_.value(ie)),t("auto-apply"),t("update-flow-step")},_e=(M,ie)=>{const ge=k(M,ie);o.value.fixedEnd||o.value.fixedStart?y.value=Sw(ge,y,t,o):y.value?x(ge,y.value)&&(y.value=lm(y,k(M,ie),t)):y.value=[k(M,ie)],Un().then(()=>{hd(y.value,t,e.autoApply,e.modelAuto)})},Me=(M,ie)=>{am(k(M,ie),y,p.value.limit),t("auto-apply",!0)},Ne=(M,ie)=>(O.value[ie].month=M,te(ie,O.value[ie].year,M),p.value.enabled?Me(M,ie):o.value.enabled?_e(M,ie):J(M,ie)),j=(M,ie)=>{C(M,ie),te(ie,M,null)},te=(M,ie,ge)=>{let z=ge;if(!z&&z!==0){const Le=ee();z=Array.isArray(Le)?Le[M].month:Le.month}t("update-month-year",{instance:M,year:ie,month:z})};return{groupedMonths:G,groupedYears:F,year:_,isDisabled:B,defaultedMultiCalendars:n,defaultedAriaLabels:r,defaultedTransitions:s,defaultedConfig:a,showYearPicker:U,modelValue:y,presetDate:(M,ie)=>{kw({value:M,modelValue:y,range:o.value.enabled,timezone:ie?void 0:h.value.timezone}),t("auto-apply")},setHoverDate:(M,ie)=>{V.value=k(M,ie)},selectMonth:Ne,selectYear:j,toggleYearPicker:$,handleYearSelect:D,handleYear:T,getModelMonthYear:ee}},M5=fn({compatConfig:{MODE:3},__name:"MonthPicker",props:{...bs},emits:["update:internal-model-value","overlay-closed","reset-flow","range-start","range-end","auto-apply","update-month-year","update-flow-step","mount","invalid-fixed-range","overlay-toggle"],setup(e,{expose:t,emit:n}){const r=n,s=Bi(),a=$r(s,"yearMode"),o=e;It(()=>{o.shadow||r("mount",null)});const{groupedMonths:u,groupedYears:d,year:h,isDisabled:f,defaultedMultiCalendars:p,defaultedConfig:m,showYearPicker:y,modelValue:_,presetDate:b,setHoverDate:O,selectMonth:H,selectYear:V,toggleYearPicker:x,handleYearSelect:C,handleYear:F,getModelMonthYear:U}=O5(o,r);return t({getSidebarProps:()=>({modelValue:_,year:h,getModelMonthYear:U,selectMonth:H,selectYear:V,handleYear:F}),presetDate:b,toggleYearPicker:$=>x(0,$)}),($,D)=>(S(),it(fd,{"multi-calendars":Z(p).count,collapse:$.collapse,stretch:""},{default:Te(({instance:T})=>[$.$slots["top-extra"]?Ie($.$slots,"top-extra",{key:0,value:$.internalModelValue}):ae("",!0),$.$slots["month-year"]?Ie($.$slots,"month-year",wn(cn({key:1},{year:Z(h),months:Z(u)(T),years:Z(d)(T),selectMonth:Z(H),selectYear:Z(V),instance:T}))):(S(),it($o,{key:2,items:Z(u)(T),"arrow-navigation":$.arrowNavigation,"is-last":$.autoApply&&!Z(m).keepActionRow,"esc-close":$.escClose,height:Z(m).modeHeight,config:$.config,"no-overlay-focus":!!($.noOverlayFocus||$.textInput),"use-relative":"",type:"month",onSelected:B=>Z(H)(B,T),onHoverValue:B=>Z(O)(B,T)},Hn({header:Te(()=>[he(xw,cn($.$props,{items:Z(d)(T),instance:T,"show-year-picker":Z(y)[T],year:Z(h)(T),"is-disabled":B=>Z(f)(T,B),onHandleYear:B=>Z(F)(T,B),onYearSelect:B=>Z(C)(B,T),onToggleYearPicker:B=>Z(x)(T,B==null?void 0:B.flow,B==null?void 0:B.show)}),Hn({_:2},[Qe(Z(a),(B,se)=>({name:B,fn:Te(ee=>[Ie($.$slots,B,wn(Yn(ee)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),_:2},[$.$slots["month-overlay-value"]?{name:"item",fn:Te(({item:B})=>[Ie($.$slots,"month-overlay-value",{text:B.text,value:B.value})]),key:"0"}:void 0]),1032,["items","arrow-navigation","is-last","esc-close","height","config","no-overlay-focus","onSelected","onHoverValue"]))]),_:3},8,["multi-calendars","collapse"]))}}),R5=(e,t)=>{const n=()=>{e.isTextInputDate&&(f.value=lt(De(e.startDate)))},{modelValue:r}=Ho(e,t,n),s=fe(null),{defaultedHighlight:a,defaultedMultiDates:o,defaultedFilters:u,defaultedRange:d,propDates:h}=sn(e),f=fe();It(()=>{e.startDate&&(r.value&&e.focusStartDate||!r.value)&&(f.value=lt(De(e.startDate)))});const p=b=>Array.isArray(r.value)?r.value.some(O=>lt(O)===b):r.value?lt(r.value)===b:!1,m=b=>d.value.enabled&&Array.isArray(r.value)?cd(r.value,s.value,_(b)):!1,y=pe(()=>bl(nm(e.yearRange,e.locale,e.reverseYears),b=>{const O=p(b.value),H=Oo(b.value,wl(h.value.minDate),wl(h.value.maxDate))||u.value.years.includes(b.value),V=m(b.value)&&!O,x=im(a.value,b.value);return{active:O,disabled:H,isBetween:V,highlighted:x}})),_=b=>Rs(hs(Co(new Date)),b);return{groupedYears:y,modelValue:r,focusYear:f,setHoverValue:b=>{s.value=Rs(hs(new Date),b)},selectYear:b=>{var O;if(t("update-month-year",{instance:0,year:b}),o.value.enabled)return r.value?Array.isArray(r.value)&&(((O=r.value)==null?void 0:O.map(H=>lt(H))).includes(b)?r.value=r.value.filter(H=>lt(H)!==b):r.value.push(Rs(hr(De()),b))):r.value=[Rs(hr(Co(De())),b)],t("auto-apply",!0);d.value.enabled?(r.value=lm(r,_(b),t),Un().then(()=>{hd(r.value,t,e.autoApply,e.modelAuto)})):(r.value=_(b),t("auto-apply"))}}},D5=fn({compatConfig:{MODE:3},__name:"YearPicker",props:{...bs},emits:["update:internal-model-value","reset-flow","range-start","range-end","auto-apply","update-month-year"],setup(e,{expose:t,emit:n}){const r=n,s=e,{groupedYears:a,modelValue:o,focusYear:u,selectYear:d,setHoverValue:h}=R5(s,r),{defaultedConfig:f}=sn(s);return t({getSidebarProps:()=>({modelValue:o,selectYear:d})}),(p,m)=>(S(),P("div",null,[p.$slots["top-extra"]?Ie(p.$slots,"top-extra",{key:0,value:p.internalModelValue}):ae("",!0),p.$slots["month-year"]?Ie(p.$slots,"month-year",wn(cn({key:1},{years:Z(a),selectYear:Z(d)}))):(S(),it($o,{key:2,items:Z(a),"is-last":p.autoApply&&!Z(f).keepActionRow,height:Z(f).modeHeight,config:p.config,"no-overlay-focus":!!(p.noOverlayFocus||p.textInput),"focus-value":Z(u),type:"year","use-relative":"",onSelected:Z(d),onHoverValue:Z(h)},Hn({_:2},[p.$slots["year-overlay-value"]?{name:"item",fn:Te(({item:y})=>[Ie(p.$slots,"year-overlay-value",{text:y.text,value:y.value})]),key:"0"}:void 0]),1032,["items","is-last","height","config","no-overlay-focus","focus-value","onSelected","onHoverValue"]))]))}}),P5={key:0,class:"dp__time_input"},L5=["data-test","aria-label","onKeydown","onClick","onMousedown"],I5=v("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),N5=v("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),V5=["aria-label","disabled","data-test","onKeydown","onClick"],F5=["data-test","aria-label","onKeydown","onClick","onMousedown"],$5=v("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),B5=v("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),H5={key:0},U5=["aria-label"],j5=fn({compatConfig:{MODE:3},__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...bs},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","overlay-opened","am-pm-change"],setup(e,{expose:t,emit:n}){const r=n,s=e,{setTimePickerElements:a,setTimePickerBackRef:o}=Ui(),{defaultedAriaLabels:u,defaultedTransitions:d,defaultedFilters:h,defaultedConfig:f,defaultedRange:p}=sn(s),{transitionName:m,showTransition:y}=Bo(d),_=Hr({hours:!1,minutes:!1,seconds:!1}),b=fe("AM"),O=fe(null),H=fe([]),V=fe();It(()=>{r("mounted")});const x=W=>qt(new Date,{hours:W.hours,minutes:W.minutes,seconds:s.enableSeconds?W.seconds:0,milliseconds:0}),C=pe(()=>W=>G(W,s[W])||U(W,s[W])),F=pe(()=>({hours:s.hours,minutes:s.minutes,seconds:s.seconds})),U=(W,A)=>p.value.enabled&&!p.value.disableTimeRangeValidation?!s.validateTime(W,A):!1,$=(W,A)=>{if(p.value.enabled&&!p.value.disableTimeRangeValidation){const I=A?+s[`${W}Increment`]:-+s[`${W}Increment`],K=s[W]+I;return!s.validateTime(W,K)}return!1},D=pe(()=>W=>!Ne(+s[W]+ +s[`${W}Increment`],W)||$(W,!0)),T=pe(()=>W=>!Ne(+s[W]-+s[`${W}Increment`],W)||$(W,!1)),B=(W,A)=>H1(qt(De(),W),A),se=(W,A)=>I$(qt(De(),W),A),ee=pe(()=>({dp__time_col:!0,dp__time_col_block:!s.timePickerInline,dp__time_col_reg_block:!s.enableSeconds&&s.is24&&!s.timePickerInline,dp__time_col_reg_inline:!s.enableSeconds&&s.is24&&s.timePickerInline,dp__time_col_reg_with_button:!s.enableSeconds&&!s.is24,dp__time_col_sec:s.enableSeconds&&s.is24,dp__time_col_sec_with_button:s.enableSeconds&&!s.is24})),de=pe(()=>{const W=[{type:"hours"}];return s.enableMinutes&&W.push({type:"",separator:!0},{type:"minutes"}),s.enableSeconds&&W.push({type:"",separator:!0},{type:"seconds"}),W}),ne=pe(()=>de.value.filter(W=>!W.separator)),N=pe(()=>W=>{if(W==="hours"){const A=z(+s.hours);return{text:A<10?`0${A}`:`${A}`,value:A}}return{text:s[W]<10?`0${s[W]}`:`${s[W]}`,value:s[W]}}),G=(W,A)=>{var I;if(!s.disabledTimesConfig)return!1;const K=s.disabledTimesConfig(s.order,W==="hours"?A:void 0);return K[W]?!!((I=K[W])!=null&&I.includes(A)):!0},k=(W,A)=>A!=="hours"||b.value==="AM"?W:W+12,J=W=>{const A=s.is24?24:12,I=W==="hours"?A:60,K=+s[`${W}GridIncrement`],Q=W==="hours"&&!s.is24?K:0,me=[];for(let q=Q;q({active:!1,disabled:h.value.times[W].includes(q.value)||!Ne(q.value,W)||G(W,q.value)||U(W,q.value)}))},_e=W=>W>=0?W:59,Me=W=>W>=0?W:23,Ne=(W,A)=>{const I=s.minTime?x(Xf(s.minTime)):null,K=s.maxTime?x(Xf(s.maxTime)):null,Q=x(Xf(F.value,A,A==="minutes"||A==="seconds"?_e(W):Me(W)));return I&&K?(Eo(Q,K)||el(Q,K))&&(yl(Q,I)||el(Q,I)):I?yl(Q,I)||el(Q,I):K?Eo(Q,K)||el(Q,K):!0},j=W=>s[`no${W[0].toUpperCase()+W.slice(1)}Overlay`],te=W=>{j(W)||(_[W]=!_[W],_[W]?r("overlay-opened",W):r("overlay-closed",W))},M=W=>W==="hours"?ri:W==="minutes"?Vi:vl,ie=()=>{V.value&&clearTimeout(V.value)},ge=(W,A=!0,I)=>{const K=A?B:se,Q=A?+s[`${W}Increment`]:-+s[`${W}Increment`];Ne(+s[W]+Q,W)&&r(`update:${W}`,M(W)(K({[W]:+s[W]},{[W]:+s[`${W}Increment`]}))),!(I!=null&&I.keyboard)&&f.value.timeArrowHoldThreshold&&(V.value=setTimeout(()=>{ge(W,A)},f.value.timeArrowHoldThreshold))},z=W=>s.is24?W:(W>=12?b.value="PM":b.value="AM",H$(W)),Le=()=>{b.value==="PM"?(b.value="AM",r("update:hours",s.hours-12)):(b.value="PM",r("update:hours",s.hours+12)),r("am-pm-change",b.value)},Xe=W=>{_[W]=!0},be=(W,A,I)=>{if(W&&s.arrowNavigation){Array.isArray(H.value[A])?H.value[A][I]=W:H.value[A]=[W];const K=H.value.reduce((Q,me)=>me.map((q,ce)=>[...Q[ce]||[],me[ce]]),[]);o(s.closeTimePickerBtn),O.value&&(K[1]=K[1].concat(O.value)),a(K,s.order)}},et=(W,A)=>(te(W),r(`update:${W}`,A));return t({openChildCmp:Xe}),(W,A)=>{var I;return W.disabled?ae("",!0):(S(),P("div",P5,[(S(!0),P(Ve,null,Qe(de.value,(K,Q)=>{var me,q,ce;return S(),P("div",{key:Q,class:Be(ee.value)},[K.separator?(S(),P(Ve,{key:0},[ht(" : ")],64)):(S(),P(Ve,{key:1},[v("button",{ref_for:!0,ref:ye=>be(ye,Q,0),type:"button",class:Be({dp__btn:!0,dp__inc_dec_button:!W.timePickerInline,dp__inc_dec_button_inline:W.timePickerInline,dp__tp_inline_btn_top:W.timePickerInline,dp__inc_dec_button_disabled:D.value(K.type)}),"data-test":`${K.type}-time-inc-btn-${s.order}`,"aria-label":(me=Z(u))==null?void 0:me.incrementValue(K.type),tabindex:"0",onKeydown:ye=>Z(Sr)(ye,()=>ge(K.type,!0,{keyboard:!0}),!0),onClick:ye=>Z(f).timeArrowHoldThreshold?void 0:ge(K.type,!0),onMousedown:ye=>Z(f).timeArrowHoldThreshold?ge(K.type,!0):void 0,onMouseup:ie},[s.timePickerInline?(S(),P(Ve,{key:1},[W.$slots["tp-inline-arrow-up"]?Ie(W.$slots,"tp-inline-arrow-up",{key:0}):(S(),P(Ve,{key:1},[I5,N5],64))],64)):(S(),P(Ve,{key:0},[W.$slots["arrow-up"]?Ie(W.$slots,"arrow-up",{key:0}):ae("",!0),W.$slots["arrow-up"]?ae("",!0):(S(),it(Z(Qp),{key:1}))],64))],42,L5),v("button",{ref_for:!0,ref:ye=>be(ye,Q,1),type:"button","aria-label":(q=Z(u))==null?void 0:q.openTpOverlay(K.type),class:Be({dp__time_display:!0,dp__time_display_block:!W.timePickerInline,dp__time_display_inline:W.timePickerInline,"dp--time-invalid":C.value(K.type),"dp--time-overlay-btn":!C.value(K.type)}),disabled:j(K.type),tabindex:"0","data-test":`${K.type}-toggle-overlay-btn-${s.order}`,onKeydown:ye=>Z(Sr)(ye,()=>te(K.type),!0),onClick:ye=>te(K.type)},[W.$slots[K.type]?Ie(W.$slots,K.type,{key:0,text:N.value(K.type).text,value:N.value(K.type).value}):ae("",!0),W.$slots[K.type]?ae("",!0):(S(),P(Ve,{key:1},[ht(re(N.value(K.type).text),1)],64))],42,V5),v("button",{ref_for:!0,ref:ye=>be(ye,Q,2),type:"button",class:Be({dp__btn:!0,dp__inc_dec_button:!W.timePickerInline,dp__inc_dec_button_inline:W.timePickerInline,dp__tp_inline_btn_bottom:W.timePickerInline,dp__inc_dec_button_disabled:T.value(K.type)}),"data-test":`${K.type}-time-dec-btn-${s.order}`,"aria-label":(ce=Z(u))==null?void 0:ce.decrementValue(K.type),tabindex:"0",onKeydown:ye=>Z(Sr)(ye,()=>ge(K.type,!1,{keyboard:!0}),!0),onClick:ye=>Z(f).timeArrowHoldThreshold?void 0:ge(K.type,!1),onMousedown:ye=>Z(f).timeArrowHoldThreshold?ge(K.type,!1):void 0,onMouseup:ie},[s.timePickerInline?(S(),P(Ve,{key:1},[W.$slots["tp-inline-arrow-down"]?Ie(W.$slots,"tp-inline-arrow-down",{key:0}):(S(),P(Ve,{key:1},[$5,B5],64))],64)):(S(),P(Ve,{key:0},[W.$slots["arrow-down"]?Ie(W.$slots,"arrow-down",{key:0}):ae("",!0),W.$slots["arrow-down"]?ae("",!0):(S(),it(Z(em),{key:1}))],64))],42,F5)],64))],2)}),128)),W.is24?ae("",!0):(S(),P("div",H5,[W.$slots["am-pm-button"]?Ie(W.$slots,"am-pm-button",{key:0,toggle:Le,value:b.value}):ae("",!0),W.$slots["am-pm-button"]?ae("",!0):(S(),P("button",{key:1,ref_key:"amPmButton",ref:O,type:"button",class:"dp__pm_am_button",role:"button","aria-label":(I=Z(u))==null?void 0:I.amPmButton,tabindex:"0",onClick:Le,onKeydown:A[0]||(A[0]=K=>Z(Sr)(K,()=>Le(),!0))},re(b.value),41,U5))])),(S(!0),P(Ve,null,Qe(ne.value,(K,Q)=>(S(),it(vs,{key:Q,name:Z(m)(_[K.type]),css:Z(y)},{default:Te(()=>[_[K.type]?(S(),it($o,{key:0,items:J(K.type),"is-last":W.autoApply&&!Z(f).keepActionRow,"esc-close":W.escClose,type:K.type,"text-input":W.textInput,config:W.config,"arrow-navigation":W.arrowNavigation,"aria-labels":W.ariaLabels,onSelected:me=>et(K.type,me),onToggle:me=>te(K.type),onResetFlow:A[1]||(A[1]=me=>W.$emit("reset-flow"))},Hn({"button-icon":Te(()=>[W.$slots["clock-icon"]?Ie(W.$slots,"clock-icon",{key:0}):ae("",!0),W.$slots["clock-icon"]?ae("",!0):(S(),it(Al(W.timePickerInline?Z(Cl):Z(Xp)),{key:1}))]),_:2},[W.$slots[`${K.type}-overlay-value`]?{name:"item",fn:Te(({item:me})=>[Ie(W.$slots,`${K.type}-overlay-value`,{text:me.text,value:me.value})]),key:"0"}:void 0,W.$slots[`${K.type}-overlay-header`]?{name:"header",fn:Te(()=>[Ie(W.$slots,`${K.type}-overlay-header`,{toggle:()=>te(K.type)})]),key:"1"}:void 0]),1032,["items","is-last","esc-close","type","text-input","config","arrow-navigation","aria-labels","onSelected","onToggle"])):ae("",!0)]),_:2},1032,["name","css"]))),128))]))}}}),q5={class:"dp--tp-wrap"},W5=["aria-label","tabindex"],Y5=["tabindex"],z5=["aria-label"],Aw=fn({compatConfig:{MODE:3},__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...bs},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:n}){const r=n,s=e,{buildMatrix:a,setTimePicker:o}=Ui(),u=Bi(),{defaultedTransitions:d,defaultedAriaLabels:h,defaultedTextInput:f,defaultedConfig:p,defaultedRange:m}=sn(s),{transitionName:y,showTransition:_}=Bo(d),{hideNavigationButtons:b}=pd(),O=fe(null),H=fe(null),V=fe([]),x=fe(null);It(()=>{r("mount"),!s.timePicker&&s.arrowNavigation?a([Ln(O.value)],"time"):o(!0,s.timePicker)});const C=pe(()=>m.value.enabled&&s.modelAuto?cw(s.internalModelValue):!0),F=fe(!1),U=k=>({hours:Array.isArray(s.hours)?s.hours[k]:s.hours,minutes:Array.isArray(s.minutes)?s.minutes[k]:s.minutes,seconds:Array.isArray(s.seconds)?s.seconds[k]:s.seconds}),$=pe(()=>{const k=[];if(m.value.enabled)for(let J=0;J<2;J++)k.push(U(J));else k.push(U(0));return k}),D=(k,J=!1,_e="")=>{J||r("reset-flow"),F.value=k,r(k?"overlay-opened":"overlay-closed",Qn.time),s.arrowNavigation&&o(k),Un(()=>{_e!==""&&V.value[0]&&V.value[0].openChildCmp(_e)})},T=pe(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:s.autoApply&&!p.value.keepActionRow})),B=$r(u,"timePicker"),se=(k,J,_e)=>m.value.enabled?J===0?[k,$.value[1][_e]]:[$.value[0][_e],k]:k,ee=k=>{r("update:hours",k)},de=k=>{r("update:minutes",k)},ne=k=>{r("update:seconds",k)},N=()=>{if(x.value&&!f.value.enabled&&!s.noOverlayFocus){const k=dw(x.value);k&&k.focus({preventScroll:!0})}},G=k=>{r("overlay-closed",k)};return t({toggleTimePicker:D}),(k,J)=>{var _e;return S(),P("div",q5,[!k.timePicker&&!k.timePickerInline?Dn((S(),P("button",{key:0,ref_key:"openTimePickerBtn",ref:O,type:"button",class:Be(T.value),"aria-label":(_e=Z(h))==null?void 0:_e.openTimePicker,tabindex:k.noOverlayFocus?void 0:0,"data-test":"open-time-picker-btn",onKeydown:J[0]||(J[0]=Me=>Z(Sr)(Me,()=>D(!0))),onClick:J[1]||(J[1]=Me=>D(!0))},[k.$slots["clock-icon"]?Ie(k.$slots,"clock-icon",{key:0}):ae("",!0),k.$slots["clock-icon"]?ae("",!0):(S(),it(Z(Xp),{key:1}))],42,W5)),[[Vr,!Z(b)(k.hideNavigation,"time")]]):ae("",!0),he(vs,{name:Z(y)(F.value),css:Z(_)&&!k.timePickerInline},{default:Te(()=>{var Me;return[F.value||k.timePicker||k.timePickerInline?(S(),P("div",{key:0,ref_key:"overlayRef",ref:x,class:Be({dp__overlay:!k.timePickerInline,"dp--overlay-absolute":!s.timePicker&&!k.timePickerInline,"dp--overlay-relative":s.timePicker}),style:bn(k.timePicker?{height:`${Z(p).modeHeight}px`}:void 0),tabindex:k.timePickerInline?void 0:0},[v("div",{class:Be(k.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[k.$slots["time-picker-overlay"]?Ie(k.$slots,"time-picker-overlay",{key:0,hours:e.hours,minutes:e.minutes,seconds:e.seconds,setHours:ee,setMinutes:de,setSeconds:ne}):ae("",!0),k.$slots["time-picker-overlay"]?ae("",!0):(S(),P("div",{key:1,class:Be(k.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(S(!0),P(Ve,null,Qe($.value,(Ne,j)=>Dn((S(),it(j5,cn({key:j,ref_for:!0},{...k.$props,order:j,hours:Ne.hours,minutes:Ne.minutes,seconds:Ne.seconds,closeTimePickerBtn:H.value,disabledTimesConfig:e.disabledTimesConfig,disabled:j===0?k.fixedStart:k.fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:V,"validate-time":(te,M)=>e.validateTime(te,se(M,j,te)),"onUpdate:hours":te=>ee(se(te,j,"hours")),"onUpdate:minutes":te=>de(se(te,j,"minutes")),"onUpdate:seconds":te=>ne(se(te,j,"seconds")),onMounted:N,onOverlayClosed:G,onOverlayOpened:J[2]||(J[2]=te=>k.$emit("overlay-opened",te)),onAmPmChange:J[3]||(J[3]=te=>k.$emit("am-pm-change",te))}),Hn({_:2},[Qe(Z(B),(te,M)=>({name:te,fn:Te(ie=>[Ie(k.$slots,te,cn({ref_for:!0},ie))])}))]),1040,["validate-time","onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[Vr,j===0?!0:C.value]])),128))],2)),!k.timePicker&&!k.timePickerInline?Dn((S(),P("button",{key:2,ref_key:"closeTimePickerBtn",ref:H,type:"button",class:Be(T.value),"aria-label":(Me=Z(h))==null?void 0:Me.closeTimePicker,tabindex:"0",onKeydown:J[4]||(J[4]=Ne=>Z(Sr)(Ne,()=>D(!1))),onClick:J[5]||(J[5]=Ne=>D(!1))},[k.$slots["calendar-icon"]?Ie(k.$slots,"calendar-icon",{key:0}):ae("",!0),k.$slots["calendar-icon"]?ae("",!0):(S(),it(Z(Cl),{key:1}))],42,z5)),[[Vr,!Z(b)(k.hideNavigation,"time")]]):ae("",!0)],2)],14,Y5)):ae("",!0)]}),_:3},8,["name","css"])])}}}),Cw=(e,t,n,r)=>{const{defaultedRange:s}=sn(e),a=(x,C)=>Array.isArray(t[x])?t[x][C]:t[x],o=x=>e.enableSeconds?Array.isArray(t.seconds)?t.seconds[x]:t.seconds:0,u=(x,C)=>x?C!==void 0?Di(x,a("hours",C),a("minutes",C),o(C)):Di(x,t.hours,t.minutes,o()):aw(De(),o(C)),d=(x,C)=>{t[x]=C},h=pe(()=>e.modelAuto&&s.value.enabled?Array.isArray(n.value)?n.value.length>1:!1:s.value.enabled),f=(x,C)=>{const F=Object.fromEntries(Object.keys(t).map(U=>U===x?[U,C]:[U,t[U]].slice()));if(h.value&&!s.value.disableTimeRangeValidation){const U=D=>n.value?Di(n.value[D],F.hours[D],F.minutes[D],F.seconds[D]):null,$=D=>iw(n.value[D],0);return!(St(U(0),U(1))&&(yl(U(0),$(1))||Eo(U(1),$(0))))}return!0},p=(x,C)=>{f(x,C)&&(d(x,C),r&&r())},m=x=>{p("hours",x)},y=x=>{p("minutes",x)},_=x=>{p("seconds",x)},b=(x,C,F,U)=>{C&&m(x),!C&&!F&&y(x),F&&_(x),n.value&&U(n.value)},O=x=>{if(x){const C=Array.isArray(x),F=C?[+x[0].hours,+x[1].hours]:+x.hours,U=C?[+x[0].minutes,+x[1].minutes]:+x.minutes,$=C?[+x[0].seconds,+x[1].seconds]:+x.seconds;d("hours",F),d("minutes",U),e.enableSeconds&&d("seconds",$)}},H=(x,C)=>{const F={hours:Array.isArray(t.hours)?t.hours[x]:t.hours,disabledArr:[]};return(C||C===0)&&(F.hours=C),Array.isArray(e.disabledTimes)&&(F.disabledArr=s.value.enabled&&Array.isArray(e.disabledTimes[x])?e.disabledTimes[x]:e.disabledTimes),F},V=pe(()=>(x,C)=>{var F;if(Array.isArray(e.disabledTimes)){const{disabledArr:U,hours:$}=H(x,C),D=U.filter(T=>+T.hours===$);return((F=D[0])==null?void 0:F.minutes)==="*"?{hours:[$],minutes:void 0,seconds:void 0}:{hours:[],minutes:(D==null?void 0:D.map(T=>+T.minutes))??[],seconds:(D==null?void 0:D.map(T=>T.seconds?+T.seconds:void 0))??[]}}return{hours:[],minutes:[],seconds:[]}});return{setTime:d,updateHours:m,updateMinutes:y,updateSeconds:_,getSetDateTime:u,updateTimeValues:b,getSecondsValue:o,assignStartTime:O,validateTime:f,disabledTimesConfig:V}},K5=(e,t)=>{const n=()=>{e.isTextInputDate&&C()},{modelValue:r,time:s}=Ho(e,t,n),{defaultedStartTime:a,defaultedRange:o,defaultedTz:u}=sn(e),{updateTimeValues:d,getSetDateTime:h,setTime:f,assignStartTime:p,disabledTimesConfig:m,validateTime:y}=Cw(e,s,r,_);function _(){t("update-flow-step")}const b=U=>{const{hours:$,minutes:D,seconds:T}=U;return{hours:+$,minutes:+D,seconds:T?+T:0}},O=()=>{if(e.startTime){if(Array.isArray(e.startTime)){const $=b(e.startTime[0]),D=b(e.startTime[1]);return[qt(De(),$),qt(De(),D)]}const U=b(e.startTime);return qt(De(),U)}return o.value.enabled?[null,null]:null},H=()=>{if(o.value.enabled){const[U,$]=O();r.value=[Ar(h(U,0),u.value.timezone),Ar(h($,1),u.value.timezone)]}else r.value=Ar(h(O()),u.value.timezone)},V=U=>Array.isArray(U)?[ga(De(U[0])),ga(De(U[1]))]:[ga(U??De())],x=(U,$,D)=>{f("hours",U),f("minutes",$),f("seconds",e.enableSeconds?D:0)},C=()=>{const[U,$]=V(r.value);return o.value.enabled?x([U.hours,$.hours],[U.minutes,$.minutes],[U.seconds,$.seconds]):x(U.hours,U.minutes,U.seconds)};It(()=>{if(!e.shadow)return p(a.value),r.value?C():H()});const F=()=>{Array.isArray(r.value)?r.value=r.value.map((U,$)=>U&&h(U,$)):r.value=h(r.value),t("time-update")};return{modelValue:r,time:s,disabledTimesConfig:m,updateTime:(U,$=!0,D=!1)=>{d(U,$,D,F)},validateTime:y}},G5=fn({compatConfig:{MODE:3},__name:"TimePickerSolo",props:{...bs},emits:["update:internal-model-value","time-update","am-pm-change","mount","reset-flow","update-flow-step","overlay-toggle"],setup(e,{expose:t,emit:n}){const r=n,s=e,a=Bi(),o=$r(a,"timePicker"),u=fe(null),{time:d,modelValue:h,disabledTimesConfig:f,updateTime:p,validateTime:m}=K5(s,r);return It(()=>{s.shadow||r("mount",null)}),t({getSidebarProps:()=>({modelValue:h,time:d,updateTime:p}),toggleTimePicker:(y,_=!1,b="")=>{var O;(O=u.value)==null||O.toggleTimePicker(y,_,b)}}),(y,_)=>(S(),it(fd,{"multi-calendars":0,stretch:""},{default:Te(()=>[he(Aw,cn({ref_key:"tpRef",ref:u},y.$props,{hours:Z(d).hours,minutes:Z(d).minutes,seconds:Z(d).seconds,"internal-model-value":y.internalModelValue,"disabled-times-config":Z(f),"validate-time":Z(m),"onUpdate:hours":_[0]||(_[0]=b=>Z(p)(b)),"onUpdate:minutes":_[1]||(_[1]=b=>Z(p)(b,!1)),"onUpdate:seconds":_[2]||(_[2]=b=>Z(p)(b,!1,!0)),onAmPmChange:_[3]||(_[3]=b=>y.$emit("am-pm-change",b)),onResetFlow:_[4]||(_[4]=b=>y.$emit("reset-flow")),onOverlayClosed:_[5]||(_[5]=b=>y.$emit("overlay-toggle",{open:!1,overlay:b})),onOverlayOpened:_[6]||(_[6]=b=>y.$emit("overlay-toggle",{open:!0,overlay:b}))}),Hn({_:2},[Qe(Z(o),(b,O)=>({name:b,fn:Te(H=>[Ie(y.$slots,b,wn(Yn(H)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"])]),_:3}))}}),J5={class:"dp--header-wrap"},Z5={key:0,class:"dp__month_year_wrap"},X5={key:0},Q5={class:"dp__month_year_wrap"},eB=["aria-label","data-test","onClick","onKeydown"],tB=fn({compatConfig:{MODE:3},__name:"DpHeader",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},...bs},emits:["update-month-year","mount","reset-flow","overlay-closed","overlay-opened"],setup(e,{expose:t,emit:n}){const r=n,s=e,{defaultedTransitions:a,defaultedAriaLabels:o,defaultedMultiCalendars:u,defaultedFilters:d,defaultedConfig:h,defaultedHighlight:f,propDates:p,defaultedUI:m}=sn(s),{transitionName:y,showTransition:_}=Bo(a),{buildMatrix:b}=Ui(),{handleMonthYearChange:O,isDisabled:H,updateMonthYear:V}=_5(s,r),{showLeftIcon:x,showRightIcon:C}=pd(),F=fe(!1),U=fe(!1),$=fe([null,null,null,null]);It(()=>{r("mount")});const D=j=>({get:()=>s[j],set:te=>{const M=j===cs.month?cs.year:cs.month;r("update-month-year",{[j]:te,[M]:s[M]}),j===cs.month?G(!0):k(!0)}}),T=pe(D(cs.month)),B=pe(D(cs.year)),se=pe(()=>j=>({month:s.month,year:s.year,items:j===cs.month?s.months:s.years,instance:s.instance,updateMonthYear:V,toggle:j===cs.month?G:k})),ee=pe(()=>s.months.find(te=>te.value===s.month)||{text:"",value:0}),de=pe(()=>bl(s.months,j=>{const te=s.month===j.value,M=Oo(j.value,hw(s.year,p.value.minDate),pw(s.year,p.value.maxDate))||d.value.months.includes(j.value),ie=_w(f.value,j.value,s.year);return{active:te,disabled:M,highlighted:ie}})),ne=pe(()=>bl(s.years,j=>{const te=s.year===j.value,M=Oo(j.value,wl(p.value.minDate),wl(p.value.maxDate))||d.value.years.includes(j.value),ie=im(f.value,j.value);return{active:te,disabled:M,highlighted:ie}})),N=(j,te,M)=>{M!==void 0?j.value=M:j.value=!j.value,j.value?r("overlay-opened",te):r("overlay-closed",te)},G=(j=!1,te)=>{J(j),N(F,Qn.month,te)},k=(j=!1,te)=>{J(j),N(U,Qn.year,te)},J=j=>{j||r("reset-flow")},_e=(j,te)=>{s.arrowNavigation&&($.value[te]=Ln(j),b($.value,"monthYear"))},Me=pe(()=>{var j,te;return[{type:cs.month,index:1,toggle:G,modelValue:T.value,updateModelValue:M=>T.value=M,text:ee.value.text,showSelectionGrid:F.value,items:de.value,ariaLabel:(j=o.value)==null?void 0:j.openMonthsOverlay},{type:cs.year,index:2,toggle:k,modelValue:B.value,updateModelValue:M=>B.value=M,text:fw(s.year,s.locale),showSelectionGrid:U.value,items:ne.value,ariaLabel:(te=o.value)==null?void 0:te.openYearsOverlay}]}),Ne=pe(()=>s.disableYearSelect?[Me.value[0]]:s.yearFirst?[...Me.value].reverse():Me.value);return t({toggleMonthPicker:G,toggleYearPicker:k,handleMonthYearChange:O}),(j,te)=>{var M,ie,ge,z,Le,Xe;return S(),P("div",J5,[j.$slots["month-year"]?(S(),P("div",Z5,[Ie(j.$slots,"month-year",wn(Yn({month:e.month,year:e.year,months:e.months,years:e.years,updateMonthYear:Z(V),handleMonthYearChange:Z(O),instance:e.instance})))])):(S(),P(Ve,{key:1},[j.$slots["top-extra"]?(S(),P("div",X5,[Ie(j.$slots,"top-extra",{value:j.internalModelValue})])):ae("",!0),v("div",Q5,[Z(x)(Z(u),e.instance)&&!j.vertical?(S(),it(uo,{key:0,"aria-label":(M=Z(o))==null?void 0:M.prevMonth,disabled:Z(H)(!1),class:Be((ie=Z(m))==null?void 0:ie.navBtnPrev),onActivate:te[0]||(te[0]=be=>Z(O)(!1,!0)),onSetRef:te[1]||(te[1]=be=>_e(be,0))},{default:Te(()=>[j.$slots["arrow-left"]?Ie(j.$slots,"arrow-left",{key:0}):ae("",!0),j.$slots["arrow-left"]?ae("",!0):(S(),it(Z(Jp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):ae("",!0),v("div",{class:Be(["dp__month_year_wrap",{dp__year_disable_select:j.disableYearSelect}])},[(S(!0),P(Ve,null,Qe(Ne.value,(be,et)=>(S(),P(Ve,{key:be.type},[v("button",{ref_for:!0,ref:W=>_e(W,et+1),type:"button",class:"dp__btn dp__month_year_select",tabindex:"0","aria-label":be.ariaLabel,"data-test":`${be.type}-toggle-overlay-${e.instance}`,onClick:be.toggle,onKeydown:W=>Z(Sr)(W,()=>be.toggle(),!0)},[j.$slots[be.type]?Ie(j.$slots,be.type,{key:0,text:be.text,value:s[be.type]}):ae("",!0),j.$slots[be.type]?ae("",!0):(S(),P(Ve,{key:1},[ht(re(be.text),1)],64))],40,eB),he(vs,{name:Z(y)(be.showSelectionGrid),css:Z(_)},{default:Te(()=>[be.showSelectionGrid?(S(),it($o,{key:0,items:be.items,"arrow-navigation":j.arrowNavigation,"hide-navigation":j.hideNavigation,"is-last":j.autoApply&&!Z(h).keepActionRow,"skip-button-ref":!1,config:j.config,type:be.type,"header-refs":[],"esc-close":j.escClose,"menu-wrap-ref":j.menuWrapRef,"text-input":j.textInput,"aria-labels":j.ariaLabels,onSelected:be.updateModelValue,onToggle:be.toggle},Hn({"button-icon":Te(()=>[j.$slots["calendar-icon"]?Ie(j.$slots,"calendar-icon",{key:0}):ae("",!0),j.$slots["calendar-icon"]?ae("",!0):(S(),it(Z(Cl),{key:1}))]),_:2},[j.$slots[`${be.type}-overlay-value`]?{name:"item",fn:Te(({item:W})=>[Ie(j.$slots,`${be.type}-overlay-value`,{text:W.text,value:W.value})]),key:"0"}:void 0,j.$slots[`${be.type}-overlay`]?{name:"overlay",fn:Te(()=>[Ie(j.$slots,`${be.type}-overlay`,cn({ref_for:!0},se.value(be.type)))]),key:"1"}:void 0,j.$slots[`${be.type}-overlay-header`]?{name:"header",fn:Te(()=>[Ie(j.$slots,`${be.type}-overlay-header`,{toggle:be.toggle})]),key:"2"}:void 0]),1032,["items","arrow-navigation","hide-navigation","is-last","config","type","esc-close","menu-wrap-ref","text-input","aria-labels","onSelected","onToggle"])):ae("",!0)]),_:2},1032,["name","css"])],64))),128))],2),Z(x)(Z(u),e.instance)&&j.vertical?(S(),it(uo,{key:1,"aria-label":(ge=Z(o))==null?void 0:ge.prevMonth,disabled:Z(H)(!1),class:Be((z=Z(m))==null?void 0:z.navBtnPrev),onActivate:te[2]||(te[2]=be=>Z(O)(!1,!0))},{default:Te(()=>[j.$slots["arrow-up"]?Ie(j.$slots,"arrow-up",{key:0}):ae("",!0),j.$slots["arrow-up"]?ae("",!0):(S(),it(Z(Qp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):ae("",!0),Z(C)(Z(u),e.instance)?(S(),it(uo,{key:2,ref:"rightIcon",disabled:Z(H)(!0),"aria-label":(Le=Z(o))==null?void 0:Le.nextMonth,class:Be((Xe=Z(m))==null?void 0:Xe.navBtnNext),onActivate:te[3]||(te[3]=be=>Z(O)(!0,!0)),onSetRef:te[4]||(te[4]=be=>_e(be,j.disableYearSelect?2:3))},{default:Te(()=>[j.$slots[j.vertical?"arrow-down":"arrow-right"]?Ie(j.$slots,j.vertical?"arrow-down":"arrow-right",{key:0}):ae("",!0),j.$slots[j.vertical?"arrow-down":"arrow-right"]?ae("",!0):(S(),it(Al(j.vertical?Z(em):Z(Zp)),{key:1}))]),_:3},8,["disabled","aria-label","class"])):ae("",!0)])],64))])}}}),nB=["aria-label"],rB={class:"dp__calendar_header",role:"row"},sB={key:0,class:"dp__calendar_header_item",role:"gridcell"},iB=["aria-label"],aB=v("div",{class:"dp__calendar_header_separator"},null,-1),lB=["aria-label"],oB={key:0,role:"gridcell",class:"dp__calendar_item dp__week_num"},uB={class:"dp__cell_inner"},cB=["id","aria-selected","aria-disabled","aria-label","data-test","onClick","onKeydown","onMouseenter","onMouseleave","onMousedown"],dB=fn({compatConfig:{MODE:3},__name:"DpCalendar",props:{mappedDates:{type:Array,default:()=>[]},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},...bs},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(e,{expose:t,emit:n}){const r=n,s=e,{buildMultiLevelMatrix:a}=Ui(),{defaultedTransitions:o,defaultedConfig:u,defaultedAriaLabels:d,defaultedMultiCalendars:h,defaultedWeekNumbers:f,defaultedMultiDates:p,defaultedUI:m}=sn(s),y=fe(null),_=fe({bottom:"",left:"",transform:""}),b=fe([]),O=fe(null),H=fe(!0),V=fe(""),x=fe({startX:0,endX:0,startY:0,endY:0}),C=fe([]),F=fe({left:"50%"}),U=fe(!1),$=pe(()=>s.calendar?s.calendar(s.mappedDates):s.mappedDates),D=pe(()=>s.dayNames?Array.isArray(s.dayNames)?s.dayNames:s.dayNames(s.locale,+s.weekStart):B$(s.formatLocale,s.locale,+s.weekStart));It(()=>{r("mount",{cmp:"calendar",refs:b}),u.value.noSwipe||O.value&&(O.value.addEventListener("touchstart",_e,{passive:!1}),O.value.addEventListener("touchend",Me,{passive:!1}),O.value.addEventListener("touchmove",Ne,{passive:!1})),s.monthChangeOnScroll&&O.value&&O.value.addEventListener("wheel",M,{passive:!1})});const T=be=>be?s.vertical?"vNext":"next":s.vertical?"vPrevious":"previous",B=(be,et)=>{if(s.transitions){const W=hr(Xs(De(),s.month,s.year));V.value=_n(hr(Xs(De(),be,et)),W)?o.value[T(!0)]:o.value[T(!1)],H.value=!1,Un(()=>{H.value=!0})}},se=pe(()=>({[s.calendarClassName]:!!s.calendarClassName,...m.value.calendar??{}})),ee=pe(()=>be=>{const et=U$(be);return{dp__marker_dot:et.type==="dot",dp__marker_line:et.type==="line"}}),de=pe(()=>be=>St(be,y.value)),ne=pe(()=>({dp__calendar:!0,dp__calendar_next:h.value.count>0&&s.instance!==0})),N=pe(()=>be=>s.hideOffsetDates?be.current:!0),G=async(be,et,W)=>{const A=Ln(b.value[et][W]);if(A){const{width:I,height:K}=A.getBoundingClientRect();y.value=be.value;let Q={left:`${I/2}px`},me=-50;if(await Un(),C.value[0]){const{left:q,width:ce}=C.value[0].getBoundingClientRect();q<0&&(Q={left:"0"},me=0,F.value.left=`${I/2}px`),window.innerWidth{var A,I;if(U.value&&p.value.enabled&&p.value.dragSelect)return r("select-date",be);r("set-hover-date",be),(I=(A=be.marker)==null?void 0:A.tooltip)!=null&&I.length&&await G(be,et,W)},J=be=>{y.value&&(y.value=null,_.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),r("tooltip-close",be.marker))},_e=be=>{x.value.startX=be.changedTouches[0].screenX,x.value.startY=be.changedTouches[0].screenY},Me=be=>{x.value.endX=be.changedTouches[0].screenX,x.value.endY=be.changedTouches[0].screenY,j()},Ne=be=>{s.vertical&&!s.inline&&be.preventDefault()},j=()=>{const be=s.vertical?"Y":"X";Math.abs(x.value[`start${be}`]-x.value[`end${be}`])>10&&r("handle-swipe",x.value[`start${be}`]>x.value[`end${be}`]?"right":"left")},te=(be,et,W)=>{be&&(Array.isArray(b.value[et])?b.value[et][W]=be:b.value[et]=[be]),s.arrowNavigation&&a(b.value,"calendar")},M=be=>{s.monthChangeOnScroll&&(be.preventDefault(),r("handle-scroll",be))},ie=be=>f.value.type==="local"?zp(be.value,{weekStartsOn:+s.weekStart}):f.value.type==="iso"?Wp(be.value):typeof f.value.type=="function"?f.value.type(be.value):"",ge=be=>{const et=be[0];return f.value.hideOnOffsetDates?be.some(W=>W.current)?ie(et):"":ie(et)},z=(be,et)=>{p.value.enabled||(Ri(be,u.value),r("select-date",et))},Le=be=>{Ri(be,u.value)},Xe=be=>{p.value.enabled&&p.value.dragSelect?(U.value=!0,r("select-date",be)):p.value.enabled&&r("select-date",be)};return t({triggerTransition:B}),(be,et)=>{var W;return S(),P("div",{class:Be(ne.value)},[v("div",{ref_key:"calendarWrapRef",ref:O,role:"grid",class:Be(se.value),"aria-label":(W=Z(d))==null?void 0:W.calendarWrap},[v("div",rB,[be.weekNumbers?(S(),P("div",sB,re(be.weekNumName),1)):ae("",!0),(S(!0),P(Ve,null,Qe(D.value,(A,I)=>{var K,Q;return S(),P("div",{key:I,class:"dp__calendar_header_item",role:"gridcell","data-test":"calendar-header","aria-label":(Q=(K=Z(d))==null?void 0:K.weekDay)==null?void 0:Q.call(K,I)},[be.$slots["calendar-header"]?Ie(be.$slots,"calendar-header",{key:0,day:A,index:I}):ae("",!0),be.$slots["calendar-header"]?ae("",!0):(S(),P(Ve,{key:1},[ht(re(A),1)],64))],8,iB)}),128))]),aB,he(vs,{name:V.value,css:!!be.transitions},{default:Te(()=>{var A;return[H.value?(S(),P("div",{key:0,class:"dp__calendar",role:"rowgroup","aria-label":((A=Z(d))==null?void 0:A.calendarDays)||void 0,onMouseleave:et[1]||(et[1]=I=>U.value=!1)},[(S(!0),P(Ve,null,Qe($.value,(I,K)=>(S(),P("div",{key:K,class:"dp__calendar_row",role:"row"},[be.weekNumbers?(S(),P("div",oB,[v("div",uB,re(ge(I.days)),1)])):ae("",!0),(S(!0),P(Ve,null,Qe(I.days,(Q,me)=>{var q,ce,ye;return S(),P("div",{id:Z(bw)(Q.value),ref_for:!0,ref:ke=>te(ke,K,me),key:me+K,role:"gridcell",class:"dp__calendar_item","aria-selected":(Q.classData.dp__active_date||Q.classData.dp__range_start||Q.classData.dp__range_start)??void 0,"aria-disabled":Q.classData.dp__cell_disabled||void 0,"aria-label":(ce=(q=Z(d))==null?void 0:q.day)==null?void 0:ce.call(q,Q),tabindex:"0","data-test":Q.value,onClick:Et(ke=>z(ke,Q),["prevent"]),onKeydown:ke=>Z(Sr)(ke,()=>be.$emit("select-date",Q)),onMouseenter:ke=>k(Q,K,me),onMouseleave:ke=>J(Q),onMousedown:ke=>Xe(Q),onMouseup:et[0]||(et[0]=ke=>U.value=!1)},[v("div",{class:Be(["dp__cell_inner",Q.classData])},[be.$slots.day&&N.value(Q)?Ie(be.$slots,"day",{key:0,day:+Q.text,date:Q.value}):ae("",!0),be.$slots.day?ae("",!0):(S(),P(Ve,{key:1},[ht(re(Q.text),1)],64)),Q.marker&&N.value(Q)?(S(),P(Ve,{key:2},[be.$slots.marker?Ie(be.$slots,"marker",{key:0,marker:Q.marker,day:+Q.text,date:Q.value}):(S(),P("div",{key:1,class:Be(ee.value(Q.marker)),style:bn(Q.marker.color?{backgroundColor:Q.marker.color}:{})},null,6))],64)):ae("",!0),de.value(Q.value)?(S(),P("div",{key:3,ref_for:!0,ref_key:"activeTooltip",ref:C,class:"dp__marker_tooltip",style:bn(_.value)},[(ye=Q.marker)!=null&&ye.tooltip?(S(),P("div",{key:0,class:"dp__tooltip_content",onClick:Le},[(S(!0),P(Ve,null,Qe(Q.marker.tooltip,(ke,Ae)=>(S(),P("div",{key:Ae,class:"dp__tooltip_text"},[be.$slots["marker-tooltip"]?Ie(be.$slots,"marker-tooltip",{key:0,tooltip:ke,day:Q.value}):ae("",!0),be.$slots["marker-tooltip"]?ae("",!0):(S(),P(Ve,{key:1},[v("div",{class:"dp__tooltip_mark",style:bn(ke.color?{backgroundColor:ke.color}:{})},null,4),v("div",null,re(ke.text),1)],64))]))),128)),v("div",{class:"dp__arrow_bottom_tp",style:bn(F.value)},null,4)])):ae("",!0)],4)):ae("",!0)],2)],40,cB)}),128))]))),128))],40,lB)):ae("",!0)]}),_:3},8,["name","css"])],10,nB)],2)}}}),b0=e=>Array.isArray(e),fB=(e,t,n,r)=>{const s=fe([]),a=fe(new Date),o=fe(),u=()=>Me(e.isTextInputDate),{modelValue:d,calendars:h,time:f,today:p}=Ho(e,t,u),{defaultedMultiCalendars:m,defaultedStartTime:y,defaultedRange:_,defaultedConfig:b,defaultedTz:O,propDates:H,defaultedMultiDates:V}=sn(e),{validateMonthYearInRange:x,isDisabled:C,isDateRangeAllowed:F,checkMinMaxRange:U}=ji(e),{updateTimeValues:$,getSetDateTime:D,setTime:T,assignStartTime:B,validateTime:se,disabledTimesConfig:ee}=Cw(e,f,d,r),de=pe(()=>ue=>h.value[ue]?h.value[ue].month:0),ne=pe(()=>ue=>h.value[ue]?h.value[ue].year:0),N=ue=>!b.value.keepViewOnOffsetClick||ue?!0:!o.value,G=(ue,Fe,xe,$e=!1)=>{var qe,Nn;N($e)&&(h.value[ue]||(h.value[ue]={month:0,year:0}),h.value[ue].month=m0(Fe)?(qe=h.value[ue])==null?void 0:qe.month:Fe,h.value[ue].year=m0(xe)?(Nn=h.value[ue])==null?void 0:Nn.year:xe)},k=()=>{e.autoApply&&t("select-date")};It(()=>{e.shadow||(d.value||(et(),y.value&&B(y.value)),Me(!0),e.focusStartDate&&e.startDate&&et())});const J=pe(()=>{var ue;return(ue=e.flow)!=null&&ue.length&&!e.partialFlow?e.flowStep===e.flow.length:!0}),_e=()=>{e.autoApply&&J.value&&t("auto-apply")},Me=(ue=!1)=>{if(d.value)return Array.isArray(d.value)?(s.value=d.value,z(ue)):te(d.value,ue);if(m.value.count&&ue&&!e.startDate)return j(De(),ue)},Ne=()=>Array.isArray(d.value)&&_.value.enabled?wt(d.value[0])===wt(d.value[1]??d.value[0]):!1,j=(ue=new Date,Fe=!1)=>{if((!m.value.count||!m.value.static||Fe)&&G(0,wt(ue),lt(ue)),m.value.count&&(!m.value.solo||!d.value||Ne()))for(let xe=1;xe{j(ue),T("hours",ri(ue)),T("minutes",Vi(ue)),T("seconds",vl(ue)),m.value.count&&Fe&&be()},M=ue=>{if(m.value.count){if(m.value.solo)return 0;const Fe=wt(ue[0]),xe=wt(ue[1]);return Math.abs(xe-Fe){ue[1]&&_.value.showLastInRange?j(ue[M(ue)],Fe):j(ue[0],Fe);const xe=($e,qe)=>[$e(ue[0]),ue[1]?$e(ue[1]):f[qe][1]];T("hours",xe(ri,"hours")),T("minutes",xe(Vi,"minutes")),T("seconds",xe(vl,"seconds"))},ge=(ue,Fe)=>{if((_.value.enabled||e.weekPicker)&&!V.value.enabled)return ie(ue,Fe);if(V.value.enabled&&Fe){const xe=ue[ue.length-1];return te(xe,Fe)}},z=ue=>{const Fe=d.value;ge(Fe,ue),m.value.count&&m.value.solo&&be()},Le=(ue,Fe)=>{const xe=qt(De(),{month:de.value(Fe),year:ne.value(Fe)}),$e=ue<0?gs(xe,1):_l(xe,1);x(wt($e),lt($e),ue<0,e.preventMinMaxNavigation)&&(G(Fe,wt($e),lt($e)),t("update-month-year",{instance:Fe,month:wt($e),year:lt($e)}),m.value.count&&!m.value.solo&&Xe(Fe),n())},Xe=ue=>{for(let Fe=ue-1;Fe>=0;Fe--){const xe=_l(qt(De(),{month:de.value(Fe+1),year:ne.value(Fe+1)}),1);G(Fe,wt(xe),lt(xe))}for(let Fe=ue+1;Fe<=m.value.count-1;Fe++){const xe=gs(qt(De(),{month:de.value(Fe-1),year:ne.value(Fe-1)}),1);G(Fe,wt(xe),lt(xe))}},be=()=>{if(Array.isArray(d.value)&&d.value.length===2){const ue=De(De(d.value[1]?d.value[1]:gs(d.value[0],1))),[Fe,xe]=[wt(d.value[0]),lt(d.value[0])],[$e,qe]=[wt(d.value[1]),lt(d.value[1])];(Fe!==$e||Fe===$e&&xe!==qe)&&m.value.solo&&G(1,wt(ue),lt(ue))}else d.value&&!Array.isArray(d.value)&&(G(0,wt(d.value),lt(d.value)),j(De()))},et=()=>{e.startDate&&(G(0,wt(De(e.startDate)),lt(De(e.startDate))),m.value.count&&Xe(0))},W=(ue,Fe)=>{if(e.monthChangeOnScroll){const xe=new Date().getTime()-a.value.getTime(),$e=Math.abs(ue.deltaY);let qe=500;$e>1&&(qe=100),$e>100&&(qe=0),xe>qe&&(a.value=new Date,Le(e.monthChangeOnScroll!=="inverse"?-ue.deltaY:ue.deltaY,Fe))}},A=(ue,Fe,xe=!1)=>{e.monthChangeOnArrows&&e.vertical===xe&&I(ue,Fe)},I=(ue,Fe)=>{Le(ue==="right"?-1:1,Fe)},K=ue=>{if(H.value.markers)return Rc(ue.value,H.value.markers)},Q=(ue,Fe)=>{switch(e.sixWeeks===!0?"append":e.sixWeeks){case"prepend":return[!0,!1];case"center":return[ue==0,!0];case"fair":return[ue==0||Fe>ue,!0];case"append":return[!1,!1];default:return[!1,!1]}},me=(ue,Fe,xe,$e)=>{if(e.sixWeeks&&ue.length<6){const qe=6-ue.length,Nn=(Fe.getDay()+7-$e)%7,pr=6-(xe.getDay()+7-$e)%7,[Ls,Ca]=Q(Nn,pr);for(let qi=1;qi<=qe;qi++)if(Ca?!!(qi%2)==Ls:Ls){const is=ue[0].days[0],El=q(fs(is.value,-7),wt(Fe));ue.unshift({days:El})}else{const is=ue[ue.length-1],El=is.days[is.days.length-1],md=q(fs(El.value,1),wt(Fe));ue.push({days:md})}}return ue},q=(ue,Fe)=>{const xe=De(ue),$e=[];for(let qe=0;qe<7;qe++){const Nn=fs(xe,qe),pr=wt(Nn)!==Fe;$e.push({text:e.hideOffsetDates&&pr?"":Nn.getDate(),value:Nn,current:!pr,classData:{}})}return $e},ce=(ue,Fe)=>{const xe=[],$e=new Date(Fe,ue),qe=new Date(Fe,ue+1,0),Nn=e.weekStart,pr=ys($e,{weekStartsOn:Nn}),Ls=Ca=>{const qi=q(Ca,ue);if(xe.push({days:qi}),!xe[xe.length-1].days.some(is=>St(hr(is.value),hr(qe)))){const is=fs(Ca,7);Ls(is)}};return Ls(pr),me(xe,$e,qe,Nn)},ye=ue=>{const Fe=Di(De(ue.value),f.hours,f.minutes,Ge());t("date-update",Fe),V.value.enabled?am(Fe,d,V.value.limit):d.value=Fe,r(),Un().then(()=>{_e()})},ke=ue=>_.value.noDisabledRange?mw(s.value[0],ue).some(Fe=>C(Fe)):!1,Ae=()=>{s.value=d.value?d.value.slice():[],s.value.length===2&&!(_.value.fixedStart||_.value.fixedEnd)&&(s.value=[])},Oe=(ue,Fe)=>{const xe=[De(ue.value),fs(De(ue.value),+_.value.autoRange)];F(xe)?(Fe&&He(ue.value),s.value=xe):t("invalid-date",ue.value)},He=ue=>{const Fe=wt(De(ue)),xe=lt(De(ue));if(G(0,Fe,xe),m.value.count>0)for(let $e=1;$e{if(ke(ue.value)||!U(ue.value,d.value,_.value.fixedStart?0:1))return t("invalid-date",ue.value);s.value=Sw(De(ue.value),d,t,_)},We=(ue,Fe)=>{if(Ae(),_.value.autoRange)return Oe(ue,Fe);if(_.value.fixedStart||_.value.fixedEnd)return Ue(ue);s.value[0]?U(De(ue.value),d.value)&&!ke(ue.value)?on(De(ue.value),De(s.value[0]))?(s.value.unshift(De(ue.value)),t("range-end",s.value[0])):(s.value[1]=De(ue.value),t("range-end",s.value[1])):(e.autoApply&&t("auto-apply-invalid",ue.value),t("invalid-date",ue.value)):(s.value[0]=De(ue.value),t("range-start",s.value[0]))},Ge=(ue=!0)=>e.enableSeconds?Array.isArray(f.seconds)?ue?f.seconds[0]:f.seconds[1]:f.seconds:0,ot=ue=>{s.value[ue]=Di(s.value[ue],f.hours[ue],f.minutes[ue],Ge(ue!==1))},_t=()=>{var ue,Fe;s.value[0]&&s.value[1]&&+((ue=s.value)==null?void 0:ue[0])>+((Fe=s.value)==null?void 0:Fe[1])&&(s.value.reverse(),t("range-start",s.value[0]),t("range-end",s.value[1]))},an=()=>{s.value.length&&(s.value[0]&&!s.value[1]?ot(0):(ot(0),ot(1),r()),_t(),d.value=s.value.slice(),hd(s.value,t,e.autoApply,e.modelAuto))},Zt=(ue,Fe=!1)=>{if(C(ue.value)||!ue.current&&e.hideOffsetDates)return t("invalid-date",ue.value);if(o.value=JSON.parse(JSON.stringify(ue)),!_.value.enabled)return ye(ue);b0(f.hours)&&b0(f.minutes)&&!V.value.enabled&&(We(ue,Fe),an())},Cn=(ue,Fe)=>{var xe;G(ue,Fe.month,Fe.year,!0),m.value.count&&!m.value.solo&&Xe(ue),t("update-month-year",{instance:ue,month:Fe.month,year:Fe.year}),n(m.value.solo?ue:void 0);const $e=(xe=e.flow)!=null&&xe.length?e.flow[e.flowStep]:void 0;!Fe.fromNav&&($e===Qn.month||$e===Qn.year)&&r()},hn=(ue,Fe)=>{kw({value:ue,modelValue:d,range:_.value.enabled,timezone:Fe?void 0:O.value.timezone}),k(),e.multiCalendars&&Un().then(()=>Me(!0))},Er=()=>{const ue=tm(De(),O.value);_.value.enabled?d.value&&Array.isArray(d.value)&&d.value[0]?d.value=on(ue,d.value[0])?[ue,d.value[0]]:[d.value[0],ue]:d.value=[ue]:d.value=ue,k()},ws=()=>{if(Array.isArray(d.value))if(V.value.enabled){const ue=pn();d.value[d.value.length-1]=D(ue)}else d.value=d.value.map((ue,Fe)=>ue&&D(ue,Fe));else d.value=D(d.value);t("time-update")},pn=()=>Array.isArray(d.value)&&d.value.length?d.value[d.value.length-1]:null;return{calendars:h,modelValue:d,month:de,year:ne,time:f,disabledTimesConfig:ee,today:p,validateTime:se,getCalendarDays:ce,getMarker:K,handleScroll:W,handleSwipe:I,handleArrow:A,selectDate:Zt,updateMonthYear:Cn,presetDate:hn,selectCurrentDate:Er,updateTime:(ue,Fe=!0,xe=!1)=>{$(ue,Fe,xe,ws)},assignMonthAndYear:j}},hB={key:0},pB=fn({__name:"DatePicker",props:{...bs},emits:["tooltip-open","tooltip-close","mount","update:internal-model-value","update-flow-step","reset-flow","auto-apply","focus-menu","select-date","range-start","range-end","invalid-fixed-range","time-update","am-pm-change","time-picker-open","time-picker-close","recalculate-position","update-month-year","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:n}){const r=n,s=e,{calendars:a,month:o,year:u,modelValue:d,time:h,disabledTimesConfig:f,today:p,validateTime:m,getCalendarDays:y,getMarker:_,handleArrow:b,handleScroll:O,handleSwipe:H,selectDate:V,updateMonthYear:x,presetDate:C,selectCurrentDate:F,updateTime:U,assignMonthAndYear:$}=fB(s,r,Ne,j),D=Bi(),{setHoverDate:T,getDayClassData:B,clearHoverDate:se}=MB(d,s),{defaultedMultiCalendars:ee}=sn(s),de=fe([]),ne=fe([]),N=fe(null),G=$r(D,"calendar"),k=$r(D,"monthYear"),J=$r(D,"timePicker"),_e=W=>{s.shadow||r("mount",W)};Wt(a,()=>{s.shadow||setTimeout(()=>{r("recalculate-position")},0)},{deep:!0}),Wt(ee,(W,A)=>{W.count-A.count>0&&$()},{deep:!0});const Me=pe(()=>W=>y(o.value(W),u.value(W)).map(A=>({...A,days:A.days.map(I=>(I.marker=_(I),I.classData=B(I),I))})));function Ne(W){var A;W||W===0?(A=ne.value[W])==null||A.triggerTransition(o.value(W),u.value(W)):ne.value.forEach((I,K)=>I.triggerTransition(o.value(K),u.value(K)))}function j(){r("update-flow-step")}const te=(W,A=!1)=>{V(W,A),s.spaceConfirm&&r("select-date")},M=(W,A,I=0)=>{var K;(K=de.value[I])==null||K.toggleMonthPicker(W,A)},ie=(W,A,I=0)=>{var K;(K=de.value[I])==null||K.toggleYearPicker(W,A)},ge=(W,A,I)=>{var K;(K=N.value)==null||K.toggleTimePicker(W,A,I)},z=(W,A)=>{var I;if(!s.range){const K=d.value?d.value:p,Q=A?new Date(A):K,me=W?ys(Q,{weekStartsOn:1}):G1(Q,{weekStartsOn:1});V({value:me,current:wt(Q)===o.value(0),text:"",classData:{}}),(I=document.getElementById(bw(me)))==null||I.focus()}},Le=W=>{var A;(A=de.value[0])==null||A.handleMonthYearChange(W,!0)},Xe=W=>{x(0,{month:o.value(0),year:u.value(0)+(W?1:-1),fromNav:!0})},be=(W,A)=>{W===Qn.time&&r(`time-picker-${A?"open":"close"}`),r("overlay-toggle",{open:A,overlay:W})},et=W=>{r("overlay-toggle",{open:!1,overlay:W}),r("focus-menu")};return t({clearHoverDate:se,presetDate:C,selectCurrentDate:F,toggleMonthPicker:M,toggleYearPicker:ie,toggleTimePicker:ge,handleArrow:b,updateMonthYear:x,getSidebarProps:()=>({modelValue:d,month:o,year:u,time:h,updateTime:U,updateMonthYear:x,selectDate:V,presetDate:C}),changeMonth:Le,changeYear:Xe,selectWeekDate:z}),(W,A)=>(S(),P(Ve,null,[he(fd,{"multi-calendars":Z(ee).count,collapse:W.collapse},{default:Te(({instance:I,index:K})=>[W.disableMonthYearSelect?ae("",!0):(S(),it(tB,cn({key:0,ref:Q=>{Q&&(de.value[K]=Q)},months:Z(uw)(W.formatLocale,W.locale,W.monthNameFormat),years:Z(nm)(W.yearRange,W.locale,W.reverseYears),month:Z(o)(I),year:Z(u)(I),instance:I},W.$props,{onMount:A[0]||(A[0]=Q=>_e(Z(ma).header)),onResetFlow:A[1]||(A[1]=Q=>W.$emit("reset-flow")),onUpdateMonthYear:Q=>Z(x)(I,Q),onOverlayClosed:et,onOverlayOpened:A[2]||(A[2]=Q=>W.$emit("overlay-toggle",{open:!0,overlay:Q}))}),Hn({_:2},[Qe(Z(k),(Q,me)=>({name:Q,fn:Te(q=>[Ie(W.$slots,Q,wn(Yn(q)))])}))]),1040,["months","years","month","year","instance","onUpdateMonthYear"])),he(dB,cn({ref:Q=>{Q&&(ne.value[K]=Q)},"mapped-dates":Me.value(I),month:Z(o)(I),year:Z(u)(I),instance:I},W.$props,{onSelectDate:Q=>Z(V)(Q,I!==1),onHandleSpace:Q=>te(Q,I!==1),onSetHoverDate:A[3]||(A[3]=Q=>Z(T)(Q)),onHandleScroll:Q=>Z(O)(Q,I),onHandleSwipe:Q=>Z(H)(Q,I),onMount:A[4]||(A[4]=Q=>_e(Z(ma).calendar)),onResetFlow:A[5]||(A[5]=Q=>W.$emit("reset-flow")),onTooltipOpen:A[6]||(A[6]=Q=>W.$emit("tooltip-open",Q)),onTooltipClose:A[7]||(A[7]=Q=>W.$emit("tooltip-close",Q))}),Hn({_:2},[Qe(Z(G),(Q,me)=>({name:Q,fn:Te(q=>[Ie(W.$slots,Q,wn(Yn({...q})))])}))]),1040,["mapped-dates","month","year","instance","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])]),_:3},8,["multi-calendars","collapse"]),W.enableTimePicker?(S(),P("div",hB,[W.$slots["time-picker"]?Ie(W.$slots,"time-picker",wn(cn({key:0},{time:Z(h),updateTime:Z(U)}))):(S(),it(Aw,cn({key:1,ref_key:"timePickerRef",ref:N},W.$props,{hours:Z(h).hours,minutes:Z(h).minutes,seconds:Z(h).seconds,"internal-model-value":W.internalModelValue,"disabled-times-config":Z(f),"validate-time":Z(m),onMount:A[8]||(A[8]=I=>_e(Z(ma).timePicker)),"onUpdate:hours":A[9]||(A[9]=I=>Z(U)(I)),"onUpdate:minutes":A[10]||(A[10]=I=>Z(U)(I,!1)),"onUpdate:seconds":A[11]||(A[11]=I=>Z(U)(I,!1,!0)),onResetFlow:A[12]||(A[12]=I=>W.$emit("reset-flow")),onOverlayClosed:A[13]||(A[13]=I=>be(I,!1)),onOverlayOpened:A[14]||(A[14]=I=>be(I,!0)),onAmPmChange:A[15]||(A[15]=I=>W.$emit("am-pm-change",I))}),Hn({_:2},[Qe(Z(J),(I,K)=>({name:I,fn:Te(Q=>[Ie(W.$slots,I,wn(Yn(Q)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"]))])):ae("",!0)],64))}}),mB=(e,t)=>{const n=fe(),{defaultedMultiCalendars:r,defaultedConfig:s,defaultedHighlight:a,defaultedRange:o,propDates:u,defaultedFilters:d,defaultedMultiDates:h}=sn(e),{modelValue:f,year:p,month:m,calendars:y}=Ho(e,t),{isDisabled:_}=ji(e),{selectYear:b,groupedYears:O,showYearPicker:H,isDisabled:V,toggleYearPicker:x,handleYearSelect:C,handleYear:F}=Tw({modelValue:f,multiCalendars:r,range:o,highlight:a,calendars:y,propDates:u,month:m,year:p,filters:d,props:e,emit:t}),U=(N,G)=>[N,G].map(k=>Ds(k,"MMMM",{locale:e.formatLocale})).join("-"),$=pe(()=>N=>f.value?Array.isArray(f.value)?f.value.some(G=>f0(N,G)):f0(f.value,N):!1),D=N=>{if(o.value.enabled){if(Array.isArray(f.value)){const G=St(N,f.value[0])||St(N,f.value[1]);return cd(f.value,n.value,N)&&!G}return!1}return!1},T=(N,G)=>N.quarter===a0(G)&&N.year===lt(G),B=N=>typeof a.value=="function"?a.value({quarter:a0(N),year:lt(N)}):!!a.value.quarters.find(G=>T(G,N)),se=pe(()=>N=>{const G=qt(new Date,{year:p.value(N)});return HF({start:Co(G),end:K1(G)}).map(k=>{const J=oa(k),_e=l0(k),Me=_(k),Ne=D(J),j=B(J);return{text:U(J,_e),value:J,active:$.value(J),highlighted:j,disabled:Me,isBetween:Ne}})}),ee=N=>{am(N,f,h.value.limit),t("auto-apply",!0)},de=N=>{f.value=lm(f,N,t),hd(f.value,t,e.autoApply,e.modelAuto)},ne=N=>{f.value=N,t("auto-apply")};return{defaultedConfig:s,defaultedMultiCalendars:r,groupedYears:O,year:p,isDisabled:V,quarters:se,showYearPicker:H,modelValue:f,setHoverDate:N=>{n.value=N},selectYear:b,selectQuarter:(N,G,k)=>{if(!k)return y.value[G].month=wt(l0(N)),h.value.enabled?ee(N):o.value.enabled?de(N):ne(N)},toggleYearPicker:x,handleYearSelect:C,handleYear:F}},gB={class:"dp--quarter-items"},vB=["data-test","disabled","onClick","onMouseover"],yB=fn({compatConfig:{MODE:3},__name:"QuarterPicker",props:{...bs},emits:["update:internal-model-value","reset-flow","overlay-closed","auto-apply","range-start","range-end","overlay-toggle","update-month-year"],setup(e,{expose:t,emit:n}){const r=n,s=e,a=Bi(),o=$r(a,"yearMode"),{defaultedMultiCalendars:u,defaultedConfig:d,groupedYears:h,year:f,isDisabled:p,quarters:m,modelValue:y,showYearPicker:_,setHoverDate:b,selectQuarter:O,toggleYearPicker:H,handleYearSelect:V,handleYear:x}=mB(s,r);return t({getSidebarProps:()=>({modelValue:y,year:f,selectQuarter:O,handleYearSelect:V,handleYear:x})}),(C,F)=>(S(),it(fd,{"multi-calendars":Z(u).count,collapse:C.collapse,stretch:""},{default:Te(({instance:U})=>[v("div",{class:"dp-quarter-picker-wrap",style:bn({minHeight:`${Z(d).modeHeight}px`})},[C.$slots["top-extra"]?Ie(C.$slots,"top-extra",{key:0,value:C.internalModelValue}):ae("",!0),v("div",null,[he(xw,cn(C.$props,{items:Z(h)(U),instance:U,"show-year-picker":Z(_)[U],year:Z(f)(U),"is-disabled":$=>Z(p)(U,$),onHandleYear:$=>Z(x)(U,$),onYearSelect:$=>Z(V)($,U),onToggleYearPicker:$=>Z(H)(U,$==null?void 0:$.flow,$==null?void 0:$.show)}),Hn({_:2},[Qe(Z(o),($,D)=>({name:$,fn:Te(T=>[Ie(C.$slots,$,wn(Yn(T)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),v("div",gB,[(S(!0),P(Ve,null,Qe(Z(m)(U),($,D)=>(S(),P("div",{key:D},[v("button",{type:"button",class:Be(["dp--qr-btn",{"dp--qr-btn-active":$.active,"dp--qr-btn-between":$.isBetween,"dp--qr-btn-disabled":$.disabled,"dp--highlighted":$.highlighted}]),"data-test":$.value,disabled:$.disabled,onClick:T=>Z(O)($.value,U,$.disabled),onMouseover:T=>Z(b)($.value)},[C.$slots.quarter?Ie(C.$slots,"quarter",{key:0,value:$.value,text:$.text}):(S(),P(Ve,{key:1},[ht(re($.text),1)],64))],42,vB)]))),128))])],4)]),_:3},8,["multi-calendars","collapse"]))}}),_B=["id","aria-label"],bB={key:0,class:"dp--menu-load-container"},wB=v("span",{class:"dp--menu-loader"},null,-1),xB=[wB],kB={key:0,class:"dp__sidebar_left"},SB=["data-test","onClick","onKeydown"],TB={key:2,class:"dp__sidebar_right"},AB={key:3,class:"dp__action_extra"},w0=fn({compatConfig:{MODE:3},__name:"DatepickerMenu",props:{...dd,shadow:{type:Boolean,default:!1},openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1}},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:n}){const r=n,s=e,a=fe(null),o=pe(()=>{const{openOnTop:q,...ce}=s;return{...ce,flowStep:T.value,collapse:s.collapse,noOverlayFocus:s.noOverlayFocus,menuWrapRef:a.value}}),{setMenuFocused:u,setShiftKey:d,control:h}=ww(),f=Bi(),{defaultedTextInput:p,defaultedInline:m,defaultedConfig:y,defaultedUI:_}=sn(s),b=fe(null),O=fe(0),H=fe(null),V=fe(!1),x=fe(null);It(()=>{if(!s.shadow){V.value=!0,C(),window.addEventListener("resize",C);const q=Ln(a);if(q&&!p.value.enabled&&!m.value.enabled&&(u(!0),G()),q){const ce=ye=>{y.value.allowPreventDefault&&ye.preventDefault(),Ri(ye,y.value,!0)};q.addEventListener("pointerdown",ce),q.addEventListener("mousedown",ce)}}}),ii(()=>{window.removeEventListener("resize",C)});const C=()=>{const q=Ln(H);q&&(O.value=q.getBoundingClientRect().width)},{arrowRight:F,arrowLeft:U,arrowDown:$,arrowUp:D}=Ui(),{flowStep:T,updateFlowStep:B,childMount:se,resetFlow:ee,handleFlow:de}=RB(s,r,x),ne=pe(()=>s.monthPicker?M5:s.yearPicker?D5:s.timePicker?G5:s.quarterPicker?yB:pB),N=pe(()=>{var q;if(y.value.arrowLeft)return y.value.arrowLeft;const ce=(q=a.value)==null?void 0:q.getBoundingClientRect(),ye=s.getInputRect();return(ye==null?void 0:ye.width)<(O==null?void 0:O.value)&&(ye==null?void 0:ye.left)<=((ce==null?void 0:ce.left)??0)?`${(ye==null?void 0:ye.width)/2}px`:(ye==null?void 0:ye.right)>=((ce==null?void 0:ce.right)??0)&&(ye==null?void 0:ye.width)<(O==null?void 0:O.value)?`${(O==null?void 0:O.value)-(ye==null?void 0:ye.width)/2}px`:"50%"}),G=()=>{const q=Ln(a);q&&q.focus({preventScroll:!0})},k=pe(()=>{var q;return((q=x.value)==null?void 0:q.getSidebarProps())||{}}),J=()=>{s.openOnTop&&r("recalculate-position")},_e=$r(f,"action"),Me=pe(()=>s.monthPicker||s.yearPicker?$r(f,"monthYear"):s.timePicker?$r(f,"timePicker"):$r(f,"shared")),Ne=pe(()=>s.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),j=pe(()=>({dp__menu_disabled:s.disabled,dp__menu_readonly:s.readonly,"dp-menu-loading":s.loading})),te=pe(()=>({dp__menu:!0,dp__menu_index:!m.value.enabled,dp__relative:m.value.enabled,[s.menuClassName]:!!s.menuClassName,..._.value.menu??{}})),M=q=>{Ri(q,y.value,!0)},ie=()=>{s.escClose&&r("close-picker")},ge=q=>{if(s.arrowNavigation){if(q===ur.up)return D();if(q===ur.down)return $();if(q===ur.left)return U();if(q===ur.right)return F()}else q===ur.left||q===ur.up?et("handleArrow",ur.left,0,q===ur.up):et("handleArrow",ur.right,0,q===ur.down)},z=q=>{d(q.shiftKey),!s.disableMonthYearSelect&&q.code===nn.tab&&q.target.classList.contains("dp__menu")&&h.value.shiftKeyInMenu&&(q.preventDefault(),Ri(q,y.value,!0),r("close-picker"))},Le=()=>{G(),r("time-picker-close")},Xe=q=>{var ce,ye,ke;(ce=x.value)==null||ce.toggleTimePicker(!1,!1),(ye=x.value)==null||ye.toggleMonthPicker(!1,!1,q),(ke=x.value)==null||ke.toggleYearPicker(!1,!1,q)},be=(q,ce=0)=>{var ye,ke,Ae;return q==="month"?(ye=x.value)==null?void 0:ye.toggleMonthPicker(!1,!0,ce):q==="year"?(ke=x.value)==null?void 0:ke.toggleYearPicker(!1,!0,ce):q==="time"?(Ae=x.value)==null?void 0:Ae.toggleTimePicker(!0,!1):Xe(ce)},et=(q,...ce)=>{var ye,ke;(ye=x.value)!=null&&ye[q]&&((ke=x.value)==null||ke[q](...ce))},W=()=>{et("selectCurrentDate")},A=(q,ce)=>{et("presetDate",q,ce)},I=()=>{et("clearHoverDate")},K=(q,ce)=>{et("updateMonthYear",q,ce)},Q=(q,ce)=>{q.preventDefault(),ge(ce)},me=q=>{var ce;if(z(q),q.key===nn.home||q.key===nn.end)return et("selectWeekDate",q.key===nn.home,q.target.getAttribute("id"));switch((q.key===nn.pageUp||q.key===nn.pageDown)&&(q.shiftKey?et("changeYear",q.key===nn.pageUp):et("changeMonth",q.key===nn.pageUp),q.target.getAttribute("id")&&((ce=a.value)==null||ce.focus({preventScroll:!0}))),q.key){case nn.esc:return ie();case nn.arrowLeft:return Q(q,ur.left);case nn.arrowRight:return Q(q,ur.right);case nn.arrowUp:return Q(q,ur.up);case nn.arrowDown:return Q(q,ur.down);default:return}};return t({updateMonthYear:K,switchView:be,handleFlow:de}),(q,ce)=>{var ye,ke,Ae;return S(),P("div",{id:q.uid?`dp-menu-${q.uid}`:void 0,ref_key:"dpMenuRef",ref:a,tabindex:"0",role:"dialog","aria-label":(ye=q.ariaLabels)==null?void 0:ye.menu,class:Be(te.value),style:bn({"--dp-arrow-left":N.value}),onMouseleave:I,onClick:M,onKeydown:me},[(q.disabled||q.readonly)&&Z(m).enabled||q.loading?(S(),P("div",{key:0,class:Be(j.value)},[q.loading?(S(),P("div",bB,xB)):ae("",!0)],2)):ae("",!0),!Z(m).enabled&&!q.teleportCenter?(S(),P("div",{key:1,class:Be(Ne.value)},null,2)):ae("",!0),v("div",{ref_key:"innerMenuRef",ref:H,class:Be({dp__menu_content_wrapper:((ke=q.presetDates)==null?void 0:ke.length)||!!q.$slots["left-sidebar"]||!!q.$slots["right-sidebar"],"dp--menu-content-wrapper-collapsed":e.collapse&&(((Ae=q.presetDates)==null?void 0:Ae.length)||!!q.$slots["left-sidebar"]||!!q.$slots["right-sidebar"])}),style:bn({"--dp-menu-width":`${O.value}px`})},[q.$slots["left-sidebar"]?(S(),P("div",kB,[Ie(q.$slots,"left-sidebar",wn(Yn(k.value)))])):ae("",!0),q.presetDates.length?(S(),P("div",{key:1,class:Be({"dp--preset-dates-collapsed":e.collapse,"dp--preset-dates":!0})},[(S(!0),P(Ve,null,Qe(q.presetDates,(Oe,He)=>(S(),P(Ve,{key:He},[Oe.slot?Ie(q.$slots,Oe.slot,{key:0,presetDate:A,label:Oe.label,value:Oe.value}):(S(),P("button",{key:1,type:"button",style:bn(Oe.style||{}),class:Be(["dp__btn dp--preset-range",{"dp--preset-range-collapsed":e.collapse}]),"data-test":Oe.testId??void 0,onClick:Et(Ue=>A(Oe.value,Oe.noTz),["prevent"]),onKeydown:Ue=>Z(Sr)(Ue,()=>A(Oe.value,Oe.noTz),!0)},re(Oe.label),47,SB))],64))),128))],2)):ae("",!0),v("div",{ref_key:"calendarWrapperRef",ref:b,class:"dp__instance_calendar",role:"document"},[(S(),it(Al(ne.value),cn({ref_key:"dynCmpRef",ref:x},o.value,{"flow-step":Z(T),onMount:Z(se),onUpdateFlowStep:Z(B),onResetFlow:Z(ee),onFocusMenu:G,onSelectDate:ce[0]||(ce[0]=Oe=>q.$emit("select-date")),onDateUpdate:ce[1]||(ce[1]=Oe=>q.$emit("date-update",Oe)),onTooltipOpen:ce[2]||(ce[2]=Oe=>q.$emit("tooltip-open",Oe)),onTooltipClose:ce[3]||(ce[3]=Oe=>q.$emit("tooltip-close",Oe)),onAutoApply:ce[4]||(ce[4]=Oe=>q.$emit("auto-apply",Oe)),onRangeStart:ce[5]||(ce[5]=Oe=>q.$emit("range-start",Oe)),onRangeEnd:ce[6]||(ce[6]=Oe=>q.$emit("range-end",Oe)),onInvalidFixedRange:ce[7]||(ce[7]=Oe=>q.$emit("invalid-fixed-range",Oe)),onTimeUpdate:ce[8]||(ce[8]=Oe=>q.$emit("time-update")),onAmPmChange:ce[9]||(ce[9]=Oe=>q.$emit("am-pm-change",Oe)),onTimePickerOpen:ce[10]||(ce[10]=Oe=>q.$emit("time-picker-open",Oe)),onTimePickerClose:Le,onRecalculatePosition:J,onUpdateMonthYear:ce[11]||(ce[11]=Oe=>q.$emit("update-month-year",Oe)),onAutoApplyInvalid:ce[12]||(ce[12]=Oe=>q.$emit("auto-apply-invalid",Oe)),onInvalidDate:ce[13]||(ce[13]=Oe=>q.$emit("invalid-date",Oe)),onOverlayToggle:ce[14]||(ce[14]=Oe=>q.$emit("overlay-toggle",Oe)),"onUpdate:internalModelValue":ce[15]||(ce[15]=Oe=>q.$emit("update:internal-model-value",Oe))}),Hn({_:2},[Qe(Me.value,(Oe,He)=>({name:Oe,fn:Te(Ue=>[Ie(q.$slots,Oe,wn(Yn({...Ue})))])}))]),1040,["flow-step","onMount","onUpdateFlowStep","onResetFlow"]))],512),q.$slots["right-sidebar"]?(S(),P("div",TB,[Ie(q.$slots,"right-sidebar",wn(Yn(k.value)))])):ae("",!0),q.$slots["action-extra"]?(S(),P("div",AB,[q.$slots["action-extra"]?Ie(q.$slots,"action-extra",{key:0,selectCurrentDate:W}):ae("",!0)])):ae("",!0)],6),!q.autoApply||Z(y).keepActionRow?(S(),it(x5,cn({key:2,"menu-mount":V.value},o.value,{"calendar-width":O.value,onClosePicker:ce[16]||(ce[16]=Oe=>q.$emit("close-picker")),onSelectDate:ce[17]||(ce[17]=Oe=>q.$emit("select-date")),onInvalidSelect:ce[18]||(ce[18]=Oe=>q.$emit("invalid-select")),onSelectNow:W}),Hn({_:2},[Qe(Z(_e),(Oe,He)=>({name:Oe,fn:Te(Ue=>[Ie(q.$slots,Oe,wn(Yn({...Ue})))])}))]),1040,["menu-mount","calendar-width"])):ae("",!0)],46,_B)}}});var Xa=(e=>(e.center="center",e.left="left",e.right="right",e))(Xa||{});const CB=({menuRef:e,menuRefInner:t,inputRef:n,pickerWrapperRef:r,inline:s,emit:a,props:o,slots:u})=>{const d=fe({}),h=fe(!1),f=fe({top:"0",left:"0"}),p=fe(!1),m=ll(o,"teleportCenter");Wt(m,()=>{f.value=JSON.parse(JSON.stringify({})),C()});const y=N=>{if(o.teleport){const G=N.getBoundingClientRect();return{left:G.left+window.scrollX,top:G.top+window.scrollY}}return{top:0,left:0}},_=(N,G)=>{f.value.left=`${N+G-d.value.width}px`},b=N=>{f.value.left=`${N}px`},O=(N,G)=>{o.position===Xa.left&&b(N),o.position===Xa.right&&_(N,G),o.position===Xa.center&&(f.value.left=`${N+G/2-d.value.width/2}px`)},H=N=>{const{width:G,height:k}=N.getBoundingClientRect(),{top:J,left:_e}=o.altPosition?o.altPosition(N):y(N);return{top:+J,left:+_e,width:G,height:k}},V=()=>{f.value.left="50%",f.value.top="50%",f.value.transform="translate(-50%, -50%)",f.value.position="fixed",delete f.value.opacity},x=()=>{const N=Ln(n),{top:G,left:k,transform:J}=o.altPosition(N);f.value={top:`${G}px`,left:`${k}px`,transform:J??""}},C=(N=!0)=>{var G;if(!s.value.enabled){if(m.value)return V();if(o.altPosition!==null)return x();if(N){const k=o.teleport?(G=t.value)==null?void 0:G.$el:e.value;k&&(d.value=k.getBoundingClientRect()),a("recalculate-position")}return se()}},F=({inputEl:N,left:G,width:k})=>{window.screen.width>768&&!h.value&&O(G,k),D(N)},U=N=>{const{top:G,left:k,height:J,width:_e}=H(N);f.value.top=`${J+G+ +o.offset}px`,p.value=!1,h.value||(f.value.left=`${k+_e/2-d.value.width/2}px`),F({inputEl:N,left:k,width:_e})},$=N=>{const{top:G,left:k,width:J}=H(N);f.value.top=`${G-+o.offset-d.value.height}px`,p.value=!0,F({inputEl:N,left:k,width:J})},D=N=>{if(o.autoPosition){const{left:G,width:k}=H(N),{left:J,right:_e}=d.value;if(!h.value){if(Math.abs(J)!==Math.abs(_e)){if(J<=0)return h.value=!0,b(G);if(_e>=document.documentElement.clientWidth)return h.value=!0,_(G,k)}return O(G,k)}}},T=()=>{const N=Ln(n);if(N){const{height:G}=d.value,{top:k,height:J}=N.getBoundingClientRect(),_e=window.innerHeight-k-J,Me=k;return G<=_e?sa.bottom:G>_e&&G<=Me?sa.top:_e>=Me?sa.bottom:sa.top}return sa.bottom},B=N=>T()===sa.bottom?U(N):$(N),se=()=>{const N=Ln(n);if(N)return o.autoPosition?B(N):U(N)},ee=function(N){if(N){const G=N.scrollHeight>N.clientHeight,k=window.getComputedStyle(N).overflowY.indexOf("hidden")!==-1;return G&&!k}return!0},de=function(N){return!N||N===document.body||N.nodeType===Node.DOCUMENT_FRAGMENT_NODE?window:ee(N)?N:de(N.assignedSlot?N.assignedSlot.parentNode:N.parentNode)},ne=N=>{if(N)switch(o.position){case Xa.left:return{left:0,transform:"translateX(0)"};case Xa.right:return{left:`${N.width}px`,transform:"translateX(-100%)"};default:return{left:`${N.width/2}px`,transform:"translateX(-50%)"}}return{}};return{openOnTop:p,menuStyle:f,xCorrect:h,setMenuPosition:C,getScrollableParent:de,shadowRender:(N,G)=>{var k,J,_e;const Me=document.createElement("div"),Ne=(k=Ln(n))==null?void 0:k.getBoundingClientRect();Me.setAttribute("id","dp--temp-container");const j=(J=r.value)!=null&&J.clientWidth?r.value:document.body;j.append(Me);const te=ne(Ne),M=yp(N,{...G,shadow:!0,style:{opacity:0,position:"absolute",...te}},Object.fromEntries(Object.keys(u).filter(ie=>["right-sidebar","left-sidebar","top-extra","action-extra"].includes(ie)).map(ie=>[ie,u[ie]])));yc(M,Me),d.value=(_e=M.el)==null?void 0:_e.getBoundingClientRect(),yc(null,Me),j.removeChild(Me)}}},yi=[{name:"clock-icon",use:["time","calendar","shared"]},{name:"arrow-left",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-right",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-up",use:["time","calendar","month-year","shared"]},{name:"arrow-down",use:["time","calendar","month-year","shared"]},{name:"calendar-icon",use:["month-year","time","calendar","shared","year-mode"]},{name:"day",use:["calendar","shared"]},{name:"month-overlay-value",use:["calendar","month-year","shared"]},{name:"year-overlay-value",use:["calendar","month-year","shared","year-mode"]},{name:"year-overlay",use:["month-year","shared"]},{name:"month-overlay",use:["month-year","shared"]},{name:"month-overlay-header",use:["month-year","shared"]},{name:"year-overlay-header",use:["month-year","shared"]},{name:"hours-overlay-value",use:["calendar","time","shared"]},{name:"hours-overlay-header",use:["calendar","time","shared"]},{name:"minutes-overlay-value",use:["calendar","time","shared"]},{name:"minutes-overlay-header",use:["calendar","time","shared"]},{name:"seconds-overlay-value",use:["calendar","time","shared"]},{name:"seconds-overlay-header",use:["calendar","time","shared"]},{name:"hours",use:["calendar","time","shared"]},{name:"minutes",use:["calendar","time","shared"]},{name:"month",use:["calendar","month-year","shared"]},{name:"year",use:["calendar","month-year","shared","year-mode"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar","shared"]},{name:"marker-tooltip",use:["calendar","shared"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time","shared"]},{name:"am-pm-button",use:["calendar","time","shared"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year","shared"]},{name:"time-picker",use:["menu","shared"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar","shared"]},{name:"quarter",use:["shared"]},{name:"top-extra",use:["shared","month-year"]},{name:"tp-inline-arrow-up",use:["shared","time"]},{name:"tp-inline-arrow-down",use:["shared","time"]}],EB=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],OB={all:()=>yi,monthYear:()=>yi.filter(e=>e.use.includes("month-year")),input:()=>EB,timePicker:()=>yi.filter(e=>e.use.includes("time")),action:()=>yi.filter(e=>e.use.includes("action")),calendar:()=>yi.filter(e=>e.use.includes("calendar")),menu:()=>yi.filter(e=>e.use.includes("menu")),shared:()=>yi.filter(e=>e.use.includes("shared")),yearMode:()=>yi.filter(e=>e.use.includes("year-mode"))},$r=(e,t,n)=>{const r=[];return OB[t]().forEach(s=>{e[s.name]&&r.push(s.name)}),n!=null&&n.length&&n.forEach(s=>{s.slot&&r.push(s.slot)}),r},Bo=e=>{const t=pe(()=>r=>e.value?r?e.value.open:e.value.close:""),n=pe(()=>r=>e.value?r?e.value.menuAppearTop:e.value.menuAppearBottom:"");return{transitionName:t,showTransition:!!e.value,menuTransition:n}},Ho=(e,t,n)=>{const{defaultedRange:r,defaultedTz:s}=sn(e),a=De(Ar(De(),s.value.timezone)),o=fe([{month:wt(a),year:lt(a)}]),u=m=>{const y={hours:ri(a),minutes:Vi(a),seconds:0};return r.value.enabled?[y[m],y[m]]:y[m]},d=Hr({hours:u("hours"),minutes:u("minutes"),seconds:u("seconds")});Wt(r,(m,y)=>{m.enabled!==y.enabled&&(d.hours=u("hours"),d.minutes=u("minutes"),d.seconds=u("seconds"))},{deep:!0});const h=pe({get:()=>e.internalModelValue,set:m=>{!e.readonly&&!e.disabled&&t("update:internal-model-value",m)}}),f=pe(()=>m=>o.value[m]?o.value[m].month:0),p=pe(()=>m=>o.value[m]?o.value[m].year:0);return Wt(h,(m,y)=>{n&&JSON.stringify(m??{})!==JSON.stringify(y??{})&&n()},{deep:!0}),{calendars:o,time:d,modelValue:h,month:f,year:p,today:a}},MB=(e,t)=>{const{defaultedMultiCalendars:n,defaultedMultiDates:r,defaultedUI:s,defaultedHighlight:a,defaultedTz:o,propDates:u,defaultedRange:d}=sn(t),{isDisabled:h}=ji(t),f=fe(null),p=fe(Ar(new Date,o.value.timezone)),m=M=>{!M.current&&t.hideOffsetDates||(f.value=M.value)},y=()=>{f.value=null},_=M=>Array.isArray(e.value)&&d.value.enabled&&e.value[0]&&f.value?M?_n(f.value,e.value[0]):on(f.value,e.value[0]):!0,b=(M,ie)=>{const ge=()=>e.value?ie?e.value[0]||null:e.value[1]:null,z=e.value&&Array.isArray(e.value)?ge():null;return St(De(M.value),z)},O=M=>{const ie=Array.isArray(e.value)?e.value[0]:null;return M?!on(f.value??null,ie):!0},H=(M,ie=!0)=>(d.value.enabled||t.weekPicker)&&Array.isArray(e.value)&&e.value.length===2?t.hideOffsetDates&&!M.current?!1:St(De(M.value),e.value[ie?0:1]):d.value.enabled?b(M,ie)&&O(ie)||St(M.value,Array.isArray(e.value)?e.value[0]:null)&&_(ie):!1,V=(M,ie)=>{if(Array.isArray(e.value)&&e.value[0]&&e.value.length===1){const ge=St(M.value,f.value);return ie?_n(e.value[0],M.value)&&ge:on(e.value[0],M.value)&&ge}return!1},x=M=>!e.value||t.hideOffsetDates&&!M.current?!1:d.value.enabled?t.modelAuto&&Array.isArray(e.value)?St(M.value,e.value[0]?e.value[0]:p.value):!1:r.value.enabled&&Array.isArray(e.value)?e.value.some(ie=>St(ie,M.value)):St(M.value,e.value?e.value:p.value),C=M=>{if(d.value.autoRange||t.weekPicker){if(f.value){if(t.hideOffsetDates&&!M.current)return!1;const ie=fs(f.value,+d.value.autoRange),ge=Ks(De(f.value),t.weekStart);return t.weekPicker?St(ge[1],De(M.value)):St(ie,De(M.value))}return!1}return!1},F=M=>{if(d.value.autoRange||t.weekPicker){if(f.value){const ie=fs(f.value,+d.value.autoRange);if(t.hideOffsetDates&&!M.current)return!1;const ge=Ks(De(f.value),t.weekStart);return t.weekPicker?_n(M.value,ge[0])&&on(M.value,ge[1]):_n(M.value,f.value)&&on(M.value,ie)}return!1}return!1},U=M=>{if(d.value.autoRange||t.weekPicker){if(f.value){if(t.hideOffsetDates&&!M.current)return!1;const ie=Ks(De(f.value),t.weekStart);return t.weekPicker?St(ie[0],M.value):St(f.value,M.value)}return!1}return!1},$=M=>cd(e.value,f.value,M.value),D=()=>t.modelAuto&&Array.isArray(t.internalModelValue)?!!t.internalModelValue[0]:!1,T=()=>t.modelAuto?cw(t.internalModelValue):!0,B=M=>{if(t.weekPicker)return!1;const ie=d.value.enabled?!H(M)&&!H(M,!1):!0;return!h(M.value)&&!x(M)&&!(!M.current&&t.hideOffsetDates)&&ie},se=M=>d.value.enabled?t.modelAuto?D()&&x(M):!1:x(M),ee=M=>a.value?z$(M.value,u.value.highlight):!1,de=M=>{const ie=h(M.value);return ie&&(typeof a.value=="function"?!a.value(M.value,ie):!a.value.options.highlightDisabled)},ne=M=>{var ie;return typeof a.value=="function"?a.value(M.value):(ie=a.value.weekdays)==null?void 0:ie.includes(M.value.getDay())},N=M=>(d.value.enabled||t.weekPicker)&&(!(n.value.count>0)||M.current)&&T()&&!(!M.current&&t.hideOffsetDates)&&!x(M)?$(M):!1,G=M=>{const{isRangeStart:ie,isRangeEnd:ge}=Me(M),z=d.value.enabled?ie||ge:!1;return{dp__cell_offset:!M.current,dp__pointer:!t.disabled&&!(!M.current&&t.hideOffsetDates)&&!h(M.value),dp__cell_disabled:h(M.value),dp__cell_highlight:!de(M)&&(ee(M)||ne(M))&&!se(M)&&!z&&!U(M)&&!(N(M)&&t.weekPicker)&&!ge,dp__cell_highlight_active:!de(M)&&(ee(M)||ne(M))&&se(M),dp__today:!t.noToday&&St(M.value,p.value)&&M.current,"dp--past":on(M.value,p.value),"dp--future":_n(M.value,p.value)}},k=M=>({dp__active_date:se(M),dp__date_hover:B(M)}),J=M=>{if(e.value&&!Array.isArray(e.value)){const ie=Ks(e.value,t.weekStart);return{...j(M),dp__range_start:St(ie[0],M.value),dp__range_end:St(ie[1],M.value),dp__range_between_week:_n(M.value,ie[0])&&on(M.value,ie[1])}}return{...j(M)}},_e=M=>{if(e.value&&Array.isArray(e.value)){const ie=Ks(e.value[0],t.weekStart),ge=e.value[1]?Ks(e.value[1],t.weekStart):[];return{...j(M),dp__range_start:St(ie[0],M.value)||St(ge[0],M.value),dp__range_end:St(ie[1],M.value)||St(ge[1],M.value),dp__range_between_week:_n(M.value,ie[0])&&on(M.value,ie[1])||_n(M.value,ge[0])&&on(M.value,ge[1]),dp__range_between:_n(M.value,ie[1])&&on(M.value,ge[0])}}return{...j(M)}},Me=M=>{const ie=n.value.count>0?M.current&&H(M)&&T():H(M)&&T(),ge=n.value.count>0?M.current&&H(M,!1)&&T():H(M,!1)&&T();return{isRangeStart:ie,isRangeEnd:ge}},Ne=M=>{const{isRangeStart:ie,isRangeEnd:ge}=Me(M);return{dp__range_start:ie,dp__range_end:ge,dp__range_between:N(M),dp__date_hover:St(M.value,f.value)&&!ie&&!ge&&!t.weekPicker,dp__date_hover_start:V(M,!0),dp__date_hover_end:V(M,!1)}},j=M=>({...Ne(M),dp__cell_auto_range:F(M),dp__cell_auto_range_start:U(M),dp__cell_auto_range_end:C(M)}),te=M=>d.value.enabled?d.value.autoRange?j(M):t.modelAuto?{...k(M),...Ne(M)}:t.weekPicker?_e(M):Ne(M):t.weekPicker?J(M):k(M);return{setHoverDate:m,clearHoverDate:y,getDayClassData:M=>t.hideOffsetDates&&!M.current?{}:{...G(M),...te(M),[t.dayClass?t.dayClass(M.value,t.internalModelValue):""]:!0,[t.calendarCellClassName]:!!t.calendarCellClassName,...s.value.calendarCell??{}}}},ji=e=>{const{defaultedFilters:t,defaultedRange:n,propDates:r,defaultedMultiDates:s}=sn(e),a=ne=>r.value.disabledDates?typeof r.value.disabledDates=="function"?r.value.disabledDates(De(ne)):!!Rc(ne,r.value.disabledDates):!1,o=ne=>r.value.maxDate?e.yearPicker?lt(ne)>lt(r.value.maxDate):_n(ne,r.value.maxDate):!1,u=ne=>r.value.minDate?e.yearPicker?lt(ne){const N=o(ne),G=u(ne),k=a(ne),J=t.value.months.map(te=>+te).includes(wt(ne)),_e=e.disabledWeekDays.length?e.disabledWeekDays.some(te=>+te===L6(ne)):!1,Me=y(ne),Ne=lt(ne),j=Ne<+e.yearRange[0]||Ne>+e.yearRange[1];return!(N||G||k||J||j||_e||Me)},h=(ne,N)=>on(...Ti(r.value.minDate,ne,N))||St(...Ti(r.value.minDate,ne,N)),f=(ne,N)=>_n(...Ti(r.value.maxDate,ne,N))||St(...Ti(r.value.maxDate,ne,N)),p=(ne,N,G)=>{let k=!1;return r.value.maxDate&&G&&f(ne,N)&&(k=!0),r.value.minDate&&!G&&h(ne,N)&&(k=!0),k},m=(ne,N,G,k)=>{let J=!1;return k?r.value.minDate&&r.value.maxDate?J=p(ne,N,G):(r.value.minDate&&h(ne,N)||r.value.maxDate&&f(ne,N))&&(J=!0):J=!0,J},y=ne=>Array.isArray(r.value.allowedDates)&&!r.value.allowedDates.length?!0:r.value.allowedDates?!Rc(ne,r.value.allowedDates):!1,_=ne=>!d(ne),b=ne=>n.value.noDisabledRange?!z1({start:ne[0],end:ne[1]}).some(N=>_(N)):!0,O=ne=>{if(ne){const N=lt(ne);return N>=+e.yearRange[0]&&N<=e.yearRange[1]}return!0},H=(ne,N)=>!!(Array.isArray(ne)&&ne[N]&&(n.value.maxRange||n.value.minRange)&&O(ne[N])),V=(ne,N,G=0)=>{if(H(N,G)&&O(ne)){const k=W1(ne,N[G]),J=mw(N[G],ne),_e=J.length===1?0:J.filter(Ne=>_(Ne)).length,Me=Math.abs(k)-(n.value.minMaxRawRange?0:_e);if(n.value.minRange&&n.value.maxRange)return Me>=+n.value.minRange&&Me<=+n.value.maxRange;if(n.value.minRange)return Me>=+n.value.minRange;if(n.value.maxRange)return Me<=+n.value.maxRange}return!0},x=()=>!e.enableTimePicker||e.monthPicker||e.yearPicker||e.ignoreTimeValidation,C=ne=>Array.isArray(ne)?[ne[0]?th(ne[0]):null,ne[1]?th(ne[1]):null]:th(ne),F=(ne,N,G)=>ne.find(k=>+k.hours===ri(N)&&k.minutes==="*"?!0:+k.minutes===Vi(N)&&+k.hours===ri(N))&&G,U=(ne,N,G)=>{const[k,J]=ne,[_e,Me]=N;return!F(k,_e,G)&&!F(J,Me,G)&&G},$=(ne,N)=>{const G=Array.isArray(N)?N:[N];return Array.isArray(e.disabledTimes)?Array.isArray(e.disabledTimes[0])?U(e.disabledTimes,G,ne):!G.some(k=>F(e.disabledTimes,k,ne)):ne},D=(ne,N)=>{const G=Array.isArray(N)?[ga(N[0]),N[1]?ga(N[1]):void 0]:ga(N),k=!e.disabledTimes(G);return ne&&k},T=(ne,N)=>e.disabledTimes?Array.isArray(e.disabledTimes)?$(N,ne):D(N,ne):N,B=ne=>{let N=!0;if(!ne||x())return!0;const G=!r.value.minDate&&!r.value.maxDate?C(ne):ne;return(e.maxTime||r.value.maxDate)&&(N=v0(e.maxTime,r.value.maxDate,"max",Fn(G),N)),(e.minTime||r.value.minDate)&&(N=v0(e.minTime,r.value.minDate,"min",Fn(G),N)),T(ne,N)},se=ne=>{if(!e.monthPicker)return!0;let N=!0;const G=De(hs(ne));if(r.value.minDate&&r.value.maxDate){const k=De(hs(r.value.minDate)),J=De(hs(r.value.maxDate));return _n(G,k)&&on(G,J)||St(G,k)||St(G,J)}if(r.value.minDate){const k=De(hs(r.value.minDate));N=_n(G,k)||St(G,k)}if(r.value.maxDate){const k=De(hs(r.value.maxDate));N=on(G,k)||St(G,k)}return N},ee=pe(()=>ne=>!e.enableTimePicker||e.ignoreTimeValidation?!0:B(ne)),de=pe(()=>ne=>e.monthPicker?Array.isArray(ne)&&(n.value.enabled||s.value.enabled)?!ne.filter(N=>!se(N)).length:se(ne):!0);return{isDisabled:_,validateDate:d,validateMonthYearInRange:m,isDateRangeAllowed:b,checkMinMaxRange:V,isValidTime:B,isTimeValid:ee,isMonthValid:de}},pd=()=>{const e=pe(()=>(r,s)=>r==null?void 0:r.includes(s)),t=pe(()=>(r,s)=>r.count?r.solo?!0:s===0:!0),n=pe(()=>(r,s)=>r.count?r.solo?!0:s===r.count-1:!0);return{hideNavigationButtons:e,showLeftIcon:t,showRightIcon:n}},RB=(e,t,n)=>{const r=fe(0),s=Hr({[ma.timePicker]:!e.enableTimePicker||e.timePicker||e.monthPicker,[ma.calendar]:!1,[ma.header]:!1}),a=pe(()=>e.monthPicker||e.timePicker),o=p=>{var m;if((m=e.flow)!=null&&m.length){if(!p&&a.value)return f();s[p]=!0,Object.keys(s).filter(y=>!s[y]).length||f()}},u=()=>{var p,m;(p=e.flow)!=null&&p.length&&r.value!==-1&&(r.value+=1,t("flow-step",r.value),f()),((m=e.flow)==null?void 0:m.length)===r.value&&Un().then(()=>d())},d=()=>{r.value=-1},h=(p,m,...y)=>{var _,b;e.flow[r.value]===p&&n.value&&((b=(_=n.value)[m])==null||b.call(_,...y))},f=(p=0)=>{p&&(r.value+=p),h(Qn.month,"toggleMonthPicker",!0),h(Qn.year,"toggleYearPicker",!0),h(Qn.calendar,"toggleTimePicker",!1,!0),h(Qn.time,"toggleTimePicker",!0,!0);const m=e.flow[r.value];(m===Qn.hours||m===Qn.minutes||m===Qn.seconds)&&h(m,"toggleTimePicker",!0,!0,m)};return{childMount:o,updateFlowStep:u,resetFlow:d,handleFlow:f,flowStep:r}},DB={key:1,class:"dp__input_wrap"},PB=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid"],LB={key:2,class:"dp__clear_icon"},IB=fn({compatConfig:{MODE:3},__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...dd},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur"],setup(e,{expose:t,emit:n}){const r=n,s=e,{defaultedTextInput:a,defaultedAriaLabels:o,defaultedInline:u,defaultedConfig:d,defaultedRange:h,defaultedMultiDates:f,defaultedUI:p,getDefaultPattern:m,getDefaultStartTime:y}=sn(s),{checkMinMaxRange:_}=ji(s),b=fe(),O=fe(null),H=fe(!1),V=fe(!1),x=pe(()=>({dp__pointer:!s.disabled&&!s.readonly&&!a.value.enabled,dp__disabled:s.disabled,dp__input_readonly:!a.value.enabled,dp__input:!0,dp__input_icon_pad:!s.hideInputIcon,dp__input_valid:!!s.state,dp__input_invalid:s.state===!1,dp__input_focus:H.value||s.isMenuOpen,dp__input_reg:!a.value.enabled,[s.inputClassName]:!!s.inputClassName,...p.value.input??{}})),C=()=>{r("set-input-date",null),s.clearable&&s.autoApply&&(r("set-empty-date"),b.value=null)},F=k=>{const J=y();return K$(k,a.value.format??m(),J??gw({},s.enableSeconds),s.inputValue,V.value,s.formatLocale)},U=k=>{const{rangeSeparator:J}=a.value,[_e,Me]=k.split(`${J}`);if(_e){const Ne=F(_e.trim()),j=Me?F(Me.trim()):null;if(yl(Ne,j))return;const te=Ne&&j?[Ne,j]:[Ne];_(j,te,0)&&(b.value=Ne?te:null)}},$=()=>{V.value=!0},D=k=>{if(h.value.enabled)U(k);else if(f.value.enabled){const J=k.split(";");b.value=J.map(_e=>F(_e.trim())).filter(_e=>_e)}else b.value=F(k)},T=k=>{var J;const _e=typeof k=="string"?k:(J=k.target)==null?void 0:J.value;_e!==""?(a.value.openMenu&&!s.isMenuOpen&&r("open"),D(_e),r("set-input-date",b.value)):C(),V.value=!1,r("update:input-value",_e)},B=k=>{a.value.enabled?(D(k.target.value),a.value.enterSubmit&&Yh(b.value)&&s.inputValue!==""?(r("set-input-date",b.value,!0),b.value=null):a.value.enterSubmit&&s.inputValue===""&&(b.value=null,r("clear"))):de(k)},se=k=>{a.value.enabled&&a.value.tabSubmit&&D(k.target.value),a.value.tabSubmit&&Yh(b.value)&&s.inputValue!==""?(r("set-input-date",b.value,!0,!0),b.value=null):a.value.tabSubmit&&s.inputValue===""&&(b.value=null,r("clear",!0))},ee=()=>{H.value=!0,r("focus"),Un().then(()=>{var k;a.value.enabled&&a.value.selectOnFocus&&((k=O.value)==null||k.select())})},de=k=>{k.preventDefault(),Ri(k,d.value,!0),a.value.enabled&&a.value.openMenu&&!u.value.input&&!s.isMenuOpen?r("open"):a.value.enabled||r("toggle")},ne=()=>{r("real-blur"),H.value=!1,(!s.isMenuOpen||u.value.enabled&&u.value.input)&&r("blur"),s.autoApply&&a.value.enabled&&b.value&&!s.isMenuOpen&&(r("set-input-date",b.value),r("select-date"),b.value=null)},N=k=>{Ri(k,d.value,!0),r("clear")},G=k=>{if(k.key==="Tab"&&se(k),k.key==="Enter"&&B(k),!a.value.enabled){if(k.code==="Tab")return;k.preventDefault()}};return t({focusInput:()=>{var k;(k=O.value)==null||k.focus({preventScroll:!0})},setParsedDate:k=>{b.value=k}}),(k,J)=>{var _e;return S(),P("div",{onClick:de},[k.$slots.trigger&&!k.$slots["dp-input"]&&!Z(u).enabled?Ie(k.$slots,"trigger",{key:0}):ae("",!0),!k.$slots.trigger&&(!Z(u).enabled||Z(u).input)?(S(),P("div",DB,[k.$slots["dp-input"]&&!k.$slots.trigger&&(!Z(u).enabled||Z(u).enabled&&Z(u).input)?Ie(k.$slots,"dp-input",{key:0,value:e.inputValue,isMenuOpen:e.isMenuOpen,onInput:T,onEnter:B,onTab:se,onClear:N,onBlur:ne,onKeypress:G,onPaste:$,onFocus:ee,openMenu:()=>k.$emit("open"),closeMenu:()=>k.$emit("close"),toggleMenu:()=>k.$emit("toggle")}):ae("",!0),k.$slots["dp-input"]?ae("",!0):(S(),P("input",{key:1,id:k.uid?`dp-input-${k.uid}`:void 0,ref_key:"inputRef",ref:O,"data-test":"dp-input",name:k.name,class:Be(x.value),inputmode:Z(a).enabled?"text":"none",placeholder:k.placeholder,disabled:k.disabled,readonly:k.readonly,required:k.required,value:e.inputValue,autocomplete:k.autocomplete,"aria-label":(_e=Z(o))==null?void 0:_e.input,"aria-disabled":k.disabled||void 0,"aria-invalid":k.state===!1?!0:void 0,onInput:T,onBlur:ne,onFocus:ee,onKeypress:G,onKeydown:G,onPaste:$},null,42,PB)),v("div",{onClick:J[2]||(J[2]=Me=>r("toggle"))},[k.$slots["input-icon"]&&!k.hideInputIcon?(S(),P("span",{key:0,class:"dp__input_icon",onClick:J[0]||(J[0]=Me=>r("toggle"))},[Ie(k.$slots,"input-icon")])):ae("",!0),!k.$slots["input-icon"]&&!k.hideInputIcon&&!k.$slots["dp-input"]?(S(),it(Z(Cl),{key:1,class:"dp__input_icon dp__input_icons",onClick:J[1]||(J[1]=Me=>r("toggle"))})):ae("",!0)]),k.$slots["clear-icon"]&&e.inputValue&&k.clearable&&!k.disabled&&!k.readonly?(S(),P("span",LB,[Ie(k.$slots,"clear-icon",{clear:N})])):ae("",!0),k.clearable&&!k.$slots["clear-icon"]&&e.inputValue&&!k.disabled&&!k.readonly?(S(),it(Z(ow),{key:3,class:"dp__clear_icon dp__input_icons","data-test":"clear-icon",onClick:J[3]||(J[3]=Et(Me=>N(Me),["prevent"]))})):ae("",!0)])):ae("",!0)])}}}),NB=typeof window<"u"?window:void 0,lh=()=>{},VB=e=>tp()?(X0(e),!0):!1,FB=(e,t,n,r)=>{if(!e)return lh;let s=lh;const a=Wt(()=>Z(e),u=>{s(),u&&(u.addEventListener(t,n,r),s=()=>{u.removeEventListener(t,n,r),s=lh})},{immediate:!0,flush:"post"}),o=()=>{a(),s()};return VB(o),o},$B=(e,t,n,r={})=>{const{window:s=NB,event:a="pointerdown"}=r;return s?FB(s,a,o=>{const u=Ln(e),d=Ln(t);!u||!d||u===o.target||o.composedPath().includes(u)||o.composedPath().includes(d)||n(o)},{passive:!0}):void 0},BB=fn({compatConfig:{MODE:3},__name:"VueDatePicker",props:{...dd},emits:["update:model-value","update:model-timezone-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invalid-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:n}){const r=n,s=e,a=Bi(),o=fe(!1),u=ll(s,"modelValue"),d=ll(s,"timezone"),h=fe(null),f=fe(null),p=fe(null),m=fe(!1),y=fe(null),_=fe(!1),b=fe(!1),O=fe(!1),H=fe(!1),{setMenuFocused:V,setShiftKey:x}=ww(),{clearArrowNav:C}=Ui(),{validateDate:F,isValidTime:U}=ji(s),{defaultedTransitions:$,defaultedTextInput:D,defaultedInline:T,defaultedConfig:B,defaultedRange:se,defaultedMultiDates:ee}=sn(s),{menuTransition:de,showTransition:ne}=Bo($);It(()=>{ie(s.modelValue),Un().then(()=>{if(!T.value.enabled){const xe=Ne(y.value);xe==null||xe.addEventListener("scroll",K),window==null||window.addEventListener("resize",Q)}}),T.value.enabled&&(o.value=!0),window==null||window.addEventListener("keyup",me),window==null||window.addEventListener("keydown",q)}),ii(()=>{if(!T.value.enabled){const xe=Ne(y.value);xe==null||xe.removeEventListener("scroll",K),window==null||window.removeEventListener("resize",Q)}window==null||window.removeEventListener("keyup",me),window==null||window.removeEventListener("keydown",q)});const N=$r(a,"all",s.presetDates),G=$r(a,"input");Wt([u,d],()=>{ie(u.value)},{deep:!0});const{openOnTop:k,menuStyle:J,xCorrect:_e,setMenuPosition:Me,getScrollableParent:Ne,shadowRender:j}=CB({menuRef:h,menuRefInner:f,inputRef:p,pickerWrapperRef:y,inline:T,emit:r,props:s,slots:a}),{inputValue:te,internalModelValue:M,parseExternalModelValue:ie,emitModelValue:ge,formatInputValue:z,checkBeforeEmit:Le}=y5(r,s,m),Xe=pe(()=>({dp__main:!0,dp__theme_dark:s.dark,dp__theme_light:!s.dark,dp__flex_display:T.value.enabled,"dp--flex-display-collapsed":O.value,dp__flex_display_with_input:T.value.input})),be=pe(()=>s.dark?"dp__theme_dark":"dp__theme_light"),et=pe(()=>s.teleport?{to:typeof s.teleport=="boolean"?"body":s.teleport,disabled:!s.teleport||T.value.enabled}:{}),W=pe(()=>({class:"dp__outer_menu_wrap"})),A=pe(()=>T.value.enabled&&(s.timePicker||s.monthPicker||s.yearPicker||s.quarterPicker)),I=()=>{var xe,$e;return($e=(xe=p.value)==null?void 0:xe.$el)==null?void 0:$e.getBoundingClientRect()},K=()=>{o.value&&(B.value.closeOnScroll?Ge():Me())},Q=()=>{var xe;o.value&&Me();const $e=(xe=f.value)==null?void 0:xe.$el.getBoundingClientRect().width;O.value=document.body.offsetWidth<=$e},me=xe=>{xe.key==="Tab"&&!T.value.enabled&&!s.teleport&&B.value.tabOutClosesMenu&&(y.value.contains(document.activeElement)||Ge()),b.value=xe.shiftKey},q=xe=>{b.value=xe.shiftKey},ce=()=>{!s.disabled&&!s.readonly&&(j(w0,s),Me(!1),o.value=!0,o.value&&r("open"),o.value||We(),ie(s.modelValue))},ye=()=>{var xe;te.value="",We(),(xe=p.value)==null||xe.setParsedDate(null),r("update:model-value",null),r("update:model-timezone-value",null),r("cleared"),B.value.closeOnClearValue&&Ge()},ke=()=>{const xe=M.value;return!xe||!Array.isArray(xe)&&F(xe)?!0:Array.isArray(xe)?ee.value.enabled||xe.length===2&&F(xe[0])&&F(xe[1])?!0:se.value.partialRange&&!s.timePicker?F(xe[0]):!1:!1},Ae=()=>{Le()&&ke()?(ge(),Ge()):r("invalid-select",M.value)},Oe=xe=>{He(),ge(),B.value.closeOnAutoApply&&!xe&&Ge()},He=()=>{p.value&&D.value.enabled&&p.value.setParsedDate(M.value)},Ue=(xe=!1)=>{s.autoApply&&U(M.value)&&ke()&&(se.value.enabled&&Array.isArray(M.value)?(se.value.partialRange||M.value.length===2)&&Oe(xe):Oe(xe))},We=()=>{D.value.enabled||(M.value=null)},Ge=()=>{T.value.enabled||(o.value&&(o.value=!1,_e.value=!1,V(!1),x(!1),C(),r("closed"),te.value&&ie(u.value)),We(),r("blur"))},ot=(xe,$e,qe=!1)=>{if(!xe){M.value=null;return}const Nn=Array.isArray(xe)?!xe.some(Ls=>!F(Ls)):F(xe),pr=U(xe);Nn&&pr&&(H.value=!0,M.value=xe,$e&&(_.value=qe,Ae(),r("text-submit")),Un().then(()=>{H.value=!1}))},_t=()=>{s.autoApply&&U(M.value)&&ge(),He()},an=()=>o.value?Ge():ce(),Zt=xe=>{M.value=xe},Cn=()=>{D.value.enabled&&(m.value=!0,z()),r("focus")},hn=()=>{if(D.value.enabled&&(m.value=!1,ie(s.modelValue),_.value)){const xe=W$(y.value,b.value);xe==null||xe.focus()}r("blur")},Er=xe=>{f.value&&f.value.updateMonthYear(0,{month:p0(xe.month),year:p0(xe.year)})},ws=xe=>{ie(xe??s.modelValue)},pn=(xe,$e)=>{var qe;(qe=f.value)==null||qe.switchView(xe,$e)},ue=xe=>B.value.onClickOutside?B.value.onClickOutside(xe):Ge(),Fe=(xe=0)=>{var $e;($e=f.value)==null||$e.handleFlow(xe)};return $B(h,p,()=>ue(ke)),t({closeMenu:Ge,selectDate:Ae,clearValue:ye,openMenu:ce,onScroll:K,formatInputValue:z,updateInternalModelValue:Zt,setMonthYear:Er,parseModel:ws,switchView:pn,toggleMenu:an,handleFlow:Fe}),(xe,$e)=>(S(),P("div",{ref_key:"pickerWrapperRef",ref:y,class:Be(Xe.value),"data-datepicker-instance":""},[he(IB,cn({ref_key:"inputRef",ref:p,"input-value":Z(te),"onUpdate:inputValue":$e[0]||($e[0]=qe=>Tn(te)?te.value=qe:null),"is-menu-open":o.value},xe.$props,{onClear:ye,onOpen:ce,onSetInputDate:ot,onSetEmptyDate:Z(ge),onSelectDate:Ae,onToggle:an,onClose:Ge,onFocus:Cn,onBlur:hn,onRealBlur:$e[1]||($e[1]=qe=>m.value=!1)}),Hn({_:2},[Qe(Z(G),(qe,Nn)=>({name:qe,fn:Te(pr=>[Ie(xe.$slots,qe,wn(Yn(pr)))])}))]),1040,["input-value","is-menu-open","onSetEmptyDate"]),(S(),it(Al(xe.teleport?O_:"div"),wn(Yn(et.value)),{default:Te(()=>[he(vs,{name:Z(de)(Z(k)),css:Z(ne)&&!Z(T).enabled},{default:Te(()=>[o.value?(S(),P("div",cn({key:0,ref_key:"dpWrapMenuRef",ref:h},W.value,{class:{"dp--menu-wrapper":!Z(T).enabled},style:Z(T).enabled?void 0:Z(J)}),[he(w0,cn({ref_key:"dpMenuRef",ref:f},xe.$props,{"internal-model-value":Z(M),"onUpdate:internalModelValue":$e[2]||($e[2]=qe=>Tn(M)?M.value=qe:null),class:{[be.value]:!0,"dp--menu-wrapper":xe.teleport},"open-on-top":Z(k),"no-overlay-focus":A.value,collapse:O.value,"get-input-rect":I,"is-text-input-date":H.value,onClosePicker:Ge,onSelectDate:Ae,onAutoApply:Ue,onTimeUpdate:_t,onFlowStep:$e[3]||($e[3]=qe=>xe.$emit("flow-step",qe)),onUpdateMonthYear:$e[4]||($e[4]=qe=>xe.$emit("update-month-year",qe)),onInvalidSelect:$e[5]||($e[5]=qe=>xe.$emit("invalid-select",Z(M))),onAutoApplyInvalid:$e[6]||($e[6]=qe=>xe.$emit("invalid-select",qe)),onInvalidFixedRange:$e[7]||($e[7]=qe=>xe.$emit("invalid-fixed-range",qe)),onRecalculatePosition:Z(Me),onTooltipOpen:$e[8]||($e[8]=qe=>xe.$emit("tooltip-open",qe)),onTooltipClose:$e[9]||($e[9]=qe=>xe.$emit("tooltip-close",qe)),onTimePickerOpen:$e[10]||($e[10]=qe=>xe.$emit("time-picker-open",qe)),onTimePickerClose:$e[11]||($e[11]=qe=>xe.$emit("time-picker-close",qe)),onAmPmChange:$e[12]||($e[12]=qe=>xe.$emit("am-pm-change",qe)),onRangeStart:$e[13]||($e[13]=qe=>xe.$emit("range-start",qe)),onRangeEnd:$e[14]||($e[14]=qe=>xe.$emit("range-end",qe)),onDateUpdate:$e[15]||($e[15]=qe=>xe.$emit("date-update",qe)),onInvalidDate:$e[16]||($e[16]=qe=>xe.$emit("invalid-date",qe)),onOverlayToggle:$e[17]||($e[17]=qe=>xe.$emit("overlay-toggle",qe))}),Hn({_:2},[Qe(Z(N),(qe,Nn)=>({name:qe,fn:Te(pr=>[Ie(xe.$slots,qe,wn(Yn({...pr})))])}))]),1040,["internal-model-value","class","open-on-top","no-overlay-focus","collapse","is-text-input-date","onRecalculatePosition"])],16)):ae("",!0)]),_:3},8,["name","css"])]),_:3},16))],2))}}),om=(()=>{const e=BB;return e.install=t=>{t.component("Vue3DatePicker",e)},e})(),HB=Object.freeze(Object.defineProperty({__proto__:null,default:om},Symbol.toStringTag,{value:"Module"}));Object.entries(HB).forEach(([e,t])=>{e!=="default"&&(om[e]=t)});const UB={components:{VueDatePicker:om},props:["name","placeholder","value","lang","format","onClear","flow"],data(){return{time1:this.value?this.value:"",time2:"",shortcuts:[{text:"Today",start:new Date,end:new Date}]}},methods:{onChange(e){if(this.$emit("onClear"),!(e instanceof Date)||isNaN(e.getTime()))return"";const t=u=>u.toString().padStart(2,"0"),n=e.getFullYear(),r=t(e.getMonth()+1),s=t(e.getDate()),a=t(e.getHours()),o=t(e.getMinutes());this.$emit("onChange",`${n}-${r}-${s} ${a}:${o}`)}}},jB={class:"datepicker-wrapper"};function qB(e,t,n,r,s,a){const o=at("VueDatePicker");return S(),P("div",jB,[he(o,{class:"custom-date-picker",name:n.name,modelValue:s.time1,"onUpdate:modelValue":[t[0]||(t[0]=u=>s.time1=u),a.onChange],type:"datetime",format:n.format||"yyyy-MM-dd HH:mm","time-picker-options":{start:"07:00",step:"00:30",end:"23:30"},lang:"en",placeholder:n.placeholder,flow:n.flow},null,8,["name","modelValue","format","placeholder","onUpdate:modelValue","flow"])])}const WB=vt(UB,[["render",qB],["__scopeId","data-v-c2f72b26"]]),YB={props:{question:{type:Object,required:!0}},setup(e){const t=fe(!0),n=()=>{t.value=!t.value},r=pe(()=>({expanded:t.value,collapsed:!t.value}));return{isOpen:t,toggleOpen:n,chevron:r}}},zB={class:"codeweek-question-container"},KB={class:"expander-always-visible"},GB={class:"expansion"},JB={class:"content"},ZB={class:"content"},XB={key:0,class:"maps"},QB={key:1,class:"button"},e8=["href"],t8=["value"];function n8(e,t,n,r,s,a){return S(),P("div",zB,[v("div",KB,[v("div",GB,[v("button",{onClick:t[0]||(t[0]=(...o)=>r.toggleOpen&&r.toggleOpen(...o)),class:"codeweek-expander-button"},[v("div",null,re(r.isOpen?"-":"+"),1)])]),v("div",JB,[v("h1",null,re(n.question.title1),1)])]),v("div",{class:Be([r.chevron,"container-expansible"])},[t[2]||(t[2]=v("div",{class:"expansion"},[v("div",{class:"expansion-path"})],-1)),v("div",ZB,[v("h2",null,re(n.question.title2),1),(S(!0),P(Ve,null,Qe(n.question.content,(o,u)=>(S(),P("p",{key:u},re(o),1))),128)),n.question.map?(S(),P("div",XB,t[1]||(t[1]=[v("iframe",{class:"map",src:"/map",scrolling:"no"},null,-1)]))):ae("",!0),n.question.button.show?(S(),P("div",QB,[v("a",{href:n.question.button.link,class:"codeweek-button"},[v("input",{type:"submit",value:n.question.button.label},null,8,t8)],8,e8)])):ae("",!0)])],2)])}const r8=vt(YB,[["render",n8]]),s8=fn({emits:["loaded"],methods:{onChange(e){if(!e.target.files.length)return;let t=e.target.files[0],n=new FileReader;n.readAsDataURL(t),n.onload=r=>{let s=r.target.result;this.$emit("loaded",{src:s,file:t})}}}});function i8(e,t,n,r,s,a){return S(),P("div",null,[v("input",{id:"image",type:"file",accept:"image/*",onChange:t[0]||(t[0]=(...o)=>e.onChange&&e.onChange(...o))},null,32),t[1]||(t[1]=v("label",{class:"!flex justify-center items-center !h-10 !w-10 !p-0 !bg-dark-blue border-2 border-white",for:"image"},[v("img",{class:"w-5 h-5",src:"/images/edit.svg"})],-1))])}const Ew=vt(s8,[["render",i8]]),a8={components:{ImageUpload:Ew,Flash:od},props:{image:{type:String,default:""},picture:{type:String,default:""}},setup(e){const t=fe(e.picture||""),n=fe(e.image||""),r=fe(""),s=u=>{a(u.file)},a=u=>{let d=new FormData;d.append("picture",u),xt.post("/api/events/picture",d).then(h=>{r.value="",t.value=h.data.path,n.value=h.data.imageName,ei.emit("flash",{message:"Picture uploaded!",level:"success"})}).catch(h=>{h.response.data.errors&&h.response.data.errors.picture?r.value=h.response.data.errors.picture[0]:r.value="Image is too large. Maximum is 1Mb",ei.emit("flash",{message:r.value,level:"error"})})};return{pictureClone:t,imageClone:n,error:r,onLoad:s,persist:a,remove:()=>{xt.delete("/api/event/picture").then(()=>{ei.emit("flash",{message:"Event Picture deleted!",level:"success"}),t.value="https://s3-eu-west-1.amazonaws.com/codeweek-dev/events/pictures/default.png"})}}}},l8={key:0,style:{"background-color":"darkred",color:"white",padding:"4px"}},o8={class:"level"},u8=["src"],c8=["value"],d8={method:"POST",enctype:"multipart/form-data"};function f8(e,t,n,r,s,a){const o=at("ImageUpload"),u=at("Flash");return S(),P("div",null,[r.error!==""?(S(),P("div",l8,re(r.error),1)):ae("",!0),v("div",o8,[v("img",{src:r.pictureClone,class:"mr-1"},null,8,u8)]),v("input",{type:"hidden",name:"picture",value:r.imageClone},null,8,c8),v("form",d8,[he(o,{name:"picture",class:"mr-1",onLoaded:r.onLoad},null,8,["onLoaded"])]),he(u)])}const h8=vt(a8,[["render",f8]]);var p8=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function m8(e,t,n){return n={path:t,exports:{},require:function(r,s){return g8(r,s??n.path)}},e(n,n.exports),n.exports}function g8(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var v8=m8(function(e,t){(function(n,r){e.exports=r()})(p8,function(){var n="__v-click-outside",r=typeof window<"u",s=typeof navigator<"u",a=r&&("ontouchstart"in window||s&&navigator.msMaxTouchPoints>0)?["touchstart"]:["click"],o=function(f){var p=f.event,m=f.handler;(0,f.middleware)(p)&&m(p)},u=function(f,p){var m=function(V){var x=typeof V=="function";if(!x&&typeof V!="object")throw new Error("v-click-outside: Binding value must be a function or an object");return{handler:x?V:V.handler,middleware:V.middleware||function(C){return C},events:V.events||a,isActive:V.isActive!==!1,detectIframe:V.detectIframe!==!1,capture:!!V.capture}}(p.value),y=m.handler,_=m.middleware,b=m.detectIframe,O=m.capture;if(m.isActive){if(f[n]=m.events.map(function(V){return{event:V,srcTarget:document.documentElement,handler:function(x){return function(C){var F=C.el,U=C.event,$=C.handler,D=C.middleware,T=U.path||U.composedPath&&U.composedPath();(T?T.indexOf(F)<0:!F.contains(U.target))&&o({event:U,handler:$,middleware:D})}({el:f,event:x,handler:y,middleware:_})},capture:O}}),b){var H={event:"blur",srcTarget:window,handler:function(V){return function(x){var C=x.el,F=x.event,U=x.handler,$=x.middleware;setTimeout(function(){var D=document.activeElement;D&&D.tagName==="IFRAME"&&!C.contains(D)&&o({event:F,handler:U,middleware:$})},0)}({el:f,event:V,handler:y,middleware:_})},capture:O};f[n]=[].concat(f[n],[H])}f[n].forEach(function(V){var x=V.event,C=V.srcTarget,F=V.handler;return setTimeout(function(){f[n]&&C.addEventListener(x,F,O)},0)})}},d=function(f){(f[n]||[]).forEach(function(p){return p.srcTarget.removeEventListener(p.event,p.handler,p.capture)}),delete f[n]},h=r?{beforeMount:u,updated:function(f,p){var m=p.value,y=p.oldValue;JSON.stringify(m)!==JSON.stringify(y)&&(d(f),u(f,{value:m}))},unmounted:d}:{};return{install:function(f){f.directive("click-outside",h)},directive:h}})}),y8=v8;const _8={class:"v3ti-loader-wrapper"},b8=v("div",{class:"v3ti-loader"},null,-1),w8=v("span",null,"Loading",-1),x8=[b8,w8];function k8(e,t){return S(),P("div",_8,x8)}function Ow(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",n==="top"&&r.firstChild?r.insertBefore(s,r.firstChild):r.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}var S8=`.v3ti-loader-wrapper { - display: flex; - align-items: center; - justify-content: center; - color: #112B3C; -} -.v3ti-loader-wrapper .v3ti-loader { - width: 18px; - height: 18px; - border-radius: 50%; - display: inline-block; - border-top: 2px solid #112B3C; - border-right: 2px solid transparent; - box-sizing: border-box; - animation: rotation 0.8s linear infinite; - margin-right: 8px; -} -@keyframes rotation { -0% { - transform: rotate(0deg); -} -100% { - transform: rotate(360deg); -} -}`;Ow(S8);const Mw={};Mw.render=k8;var T8=Mw,Rw={name:"Vue3TagsInput",emits:["update:modelValue","update:tags","on-limit","on-tags-changed","on-remove","on-error","on-focus","on-blur","on-select","on-select-duplicate-tag","on-new-tag"],props:{readOnly:{type:Boolean,default:!1},modelValue:{type:String,default:""},validate:{type:[String,Function,Object],default:""},addTagOnKeys:{type:Array,default:function(){return[13,",",32]}},placeholder:{type:String,default:""},tags:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},limit:{type:Number,default:-1},allowDuplicates:{type:Boolean,default:!1},addTagOnBlur:{type:Boolean,default:!1},selectItems:{type:Array,default:()=>[]},select:{type:Boolean,default:!1},duplicateSelectItem:{type:Boolean,default:!0},uniqueSelectField:{type:String,default:"id"},addTagOnKeysWhenSelect:{type:Boolean,default:!1},isShowNoData:{type:Boolean,default:!0}},components:{Loading:T8},directives:{clickOutside:y8.directive},data(){return{isInputActive:!1,isError:!1,newTag:"",innerTags:[],multiple:!1}},computed:{isLimit(){const e=this.limit>0&&Number(this.limit)===this.innerTags.length;return e&&this.$emit("on-limit"),e},selectedItemsIds(){return this.duplicateSelectItem?[]:this.tags.map(e=>e[this.uniqueSelectField]||"")}},watch:{error(){this.isError=this.error},modelValue:{immediate:!0,handler(e){this.newTag=e}},tags:{deep:!0,immediate:!0,handler(e){this.innerTags=[...e]}}},methods:{isShot(e){return!!this.$slots[e]},makeItNormal(e){this.$emit("update:modelValue",e.target.value),this.$refs.inputTag.className="v3ti-new-tag",this.$refs.inputTag.style.textDecoration="none"},resetData(){this.innerTags=[]},resetInputValue(){this.newTag="",this.$emit("update:modelValue","")},setPosition(){const e=this.$refs.inputBox,t=this.$refs.contextMenu;if(e&&t){t.style.display="block";const n=e.clientHeight||32,r=3;t.style.top=n+r+"px"}},closeContextMenu(){this.$refs.contextMenu&&(this.$refs.contextMenu.style={display:"none"})},handleSelect(e){if(this.isShowCheckmark(e)){const t=this.tags.filter(n=>e.id!==n.id);this.$emit("update:tags",t),this.$emit("on-select-duplicate-tag",e),this.resetInputValue()}else this.$emit("on-select",e);this.$nextTick(()=>{this.closeContextMenu()})},isShowCheckmark(e){return this.duplicateSelectItem?!1:this.selectedItemsIds.includes(e[this.uniqueSelectField])},focusNewTag(){this.select&&!this.disabled&&this.setPosition(),!(this.readOnly||!this.$el.querySelector(".v3ti-new-tag"))&&this.$el.querySelector(".v3ti-new-tag").focus()},handleInputFocus(e){this.isInputActive=!0,this.$emit("on-focus",e)},handleInputBlur(e){this.isInputActive=!1,this.addNew(e),this.$emit("on-blur",e)},addNew(e){if(this.select&&!this.addTagOnKeysWhenSelect)return;const t=e?this.addTagOnKeys.indexOf(e.keyCode)!==-1||this.addTagOnKeys.indexOf(e.key)!==-1:!0,n=e&&e.type!=="blur";!t&&(n||!this.addTagOnBlur)||this.isLimit||(this.newTag&&(this.allowDuplicates||this.innerTags.indexOf(this.newTag)===-1)&&this.validateIfNeeded(this.newTag)?(this.innerTags.push(this.newTag),this.addTagOnKeysWhenSelect&&(this.$emit("on-new-tag",this.newTag),this.updatePositionContextMenu()),this.resetInputValue(),this.tagChange(),e&&e.preventDefault()):(this.validateIfNeeded(this.newTag)?this.makeItError(!0):this.makeItError(!1),e&&e.preventDefault()))},updatePositionContextMenu(){this.$nextTick(()=>{this.setPosition()})},makeItError(e){this.newTag!==""&&(this.$refs.inputTag.className="v3ti-new-tag v3ti-new-tag--error",this.$refs.inputTag.style.textDecoration="underline",this.$emit("on-error",e))},validateIfNeeded(e){return this.validate===""||this.validate===void 0?!0:typeof this.validate=="function"?this.validate(e):!0},removeLastTag(){this.newTag||(this.innerTags.pop(),this.tagChange(),this.updatePositionContextMenu())},remove(e){this.innerTags.splice(e,1),this.tagChange(),this.$emit("on-remove",e),this.updatePositionContextMenu()},tagChange(){this.$emit("on-tags-changed",this.innerTags)}}};const A8={key:1,class:"v3ti-tag-content"},C8=["onClick"],E8=["placeholder","disabled"],O8={key:0,class:"v3ti-loading"},M8={key:1,class:"v3ti-no-data"},R8={key:1},D8={key:2},P8=["onClick"],L8={class:"v3ti-context-item--label"},I8={key:0,class:"v3ti-icon-selected-tag",width:"44",height:"44",viewBox:"0 0 24 24","stroke-width":"1.5",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},N8=v("path",{stroke:"none",d:"M0 0h24v24H0z"},null,-1),V8=v("path",{d:"M5 12l5 5l10 -10"},null,-1),F8=[N8,V8];function $8(e,t,n,r,s,a){const o=at("Loading"),u=q_("click-outside");return Dn((S(),P("div",{onClick:t[6]||(t[6]=d=>a.focusNewTag()),class:Be([{"v3ti--focus":s.isInputActive,"v3ti--error":s.isError},"v3ti"])},[v("div",{class:Be(["v3ti-content",{"v3ti-content--select":n.select}]),ref:"inputBox"},[(S(!0),P(Ve,null,Qe(s.innerTags,(d,h)=>(S(),P("span",{key:h,class:"v3ti-tag"},[a.isShot("item")?Ie(e.$slots,"item",wn(cn({key:0},{name:d,index:h,tag:d}))):(S(),P("span",A8,re(d),1)),n.readOnly?ae("",!0):(S(),P("a",{key:2,onClick:Et(f=>a.remove(h),["prevent","stop"]),class:"v3ti-remove-tag"},null,8,C8))]))),128)),Dn(v("input",{ref:"inputTag",placeholder:n.placeholder,"onUpdate:modelValue":t[0]||(t[0]=d=>s.newTag=d),onKeydown:[t[1]||(t[1]=$n(Et(function(){return a.removeLastTag&&a.removeLastTag(...arguments)},["stop"]),["delete"])),t[2]||(t[2]=function(){return a.addNew&&a.addNew(...arguments)})],onBlur:t[3]||(t[3]=function(){return a.handleInputBlur&&a.handleInputBlur(...arguments)}),onFocus:t[4]||(t[4]=function(){return a.handleInputFocus&&a.handleInputFocus(...arguments)}),onInput:t[5]||(t[5]=function(){return a.makeItNormal&&a.makeItNormal(...arguments)}),class:"v3ti-new-tag",disabled:n.readOnly},null,40,E8),[[Ni,s.newTag]])],2),n.select?(S(),P("section",{key:0,class:Be(["v3ti-context-menu",{"v3ti-context-menu-no-data":!n.isShowNoData&&n.selectItems.length===0}]),ref:"contextMenu"},[n.loading?(S(),P("div",O8,[a.isShot("loading")?Ie(e.$slots,"default",{key:0}):(S(),it(o,{key:1}))])):ae("",!0),!n.loading&&n.selectItems.length===0&&n.isShowNoData?(S(),P("div",M8,[a.isShot("no-data")?Ie(e.$slots,"no-data",{key:0}):(S(),P("span",R8," No data "))])):ae("",!0),!n.loading&&n.selectItems.length>0?(S(),P("div",D8,[(S(!0),P(Ve,null,Qe(n.selectItems,(d,h)=>(S(),P("div",{key:h,class:Be(["v3ti-context-item",{"v3ti-context-item--active":a.isShowCheckmark(d)}]),onClick:Et(f=>a.handleSelect(d,h),["stop"])},[v("div",L8,[Ie(e.$slots,"select-item",wn(Yn(d)))]),a.isShowCheckmark(d)?(S(),P("svg",I8,F8)):ae("",!0)],10,P8))),128))])):ae("",!0)],2)):ae("",!0)],2)),[[u,a.closeContextMenu]])}var B8=`.v3ti { - border-radius: 5px; - min-height: 32px; - line-height: 1.4; - background-color: #fff; - border: 1px solid #9ca3af; - cursor: text; - text-align: left; - -webkit-appearance: textfield; - display: flex; - flex-wrap: wrap; - position: relative; -} -.v3ti .v3ti-icon-selected-tag { - stroke: #19be6b; - width: 1rem; - height: 1rem; - margin-left: 4px; -} -.v3ti--focus { - outline: 0; - border-color: #000000; - box-shadow: 0 0 0 1px #000000; -} -.v3ti--error { - border-color: #F56C6C; -} -.v3ti .v3ti-no-data { - color: #d8d8d8; - text-align: center; - padding: 4px 7px; -} -.v3ti .v3ti-loading { - padding: 4px 7px; - text-align: center; -} -.v3ti .v3ti-context-menu { - max-height: 150px; - min-width: 150px; - overflow: auto; - display: none; - outline: none; - position: absolute; - top: 0; - left: 0; - right: 0; - margin: 0; - padding: 5px 0; - background: #ffffff; - z-index: 1050; - color: #475569; - box-shadow: 0 3px 8px 2px rgba(0, 0, 0, 0.1); - border-radius: 0 0 6px 6px; -} -.v3ti .v3ti-context-menu .v3ti-context-item { - padding: 4px 7px; - display: flex; - align-items: center; -} -.v3ti .v3ti-context-menu .v3ti-context-item:hover { - background: #e8e8e8; - cursor: pointer; -} -.v3ti .v3ti-context-menu .v3ti-context-item--label { - flex: 1; - min-width: 1px; -} -.v3ti .v3ti-context-menu .v3ti-context-item--active { - color: #317CAF; -} -.v3ti .v3ti-context-menu-no-data { - padding: 0; -} -.v3ti .v3ti-content { - width: 100%; - display: flex; - flex-wrap: wrap; -} -.v3ti .v3ti-content--select { - padding-right: 30px; -} -.v3ti .v3ti-tag { - display: flex; - font-weight: 400; - margin: 3px; - padding: 0 5px; - background: #317CAF; - color: #ffffff; - height: 27px; - border-radius: 5px; - align-items: center; - max-width: calc(100% - 16px); -} -.v3ti .v3ti-tag .v3ti-tag-content { - flex: 1; - min-width: 1px; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} -.v3ti .v3ti-tag .v3ti-remove-tag { - color: #ffffff; - transition: opacity 0.3s ease; - opacity: 0.5; - cursor: pointer; - padding: 0 5px 0 7px; -} -.v3ti .v3ti-tag .v3ti-remove-tag::before { - content: "x"; -} -.v3ti .v3ti-tag .v3ti-remove-tag:hover { - opacity: 1; -} -.v3ti .v3ti-new-tag { - background: transparent; - border: 0; - font-weight: 400; - margin: 3px; - outline: none; - padding: 0 4px; - flex: 1; - min-width: 60px; - height: 27px; -} -.v3ti .v3ti-new-tag--error { - color: #F56C6C; -}`;Ow(B8);Rw.render=$8;var H8=(()=>{const e=Rw;return e.install=t=>{t.component("Vue3TagsInput",e)},e})();const U8=fn({components:{Vue3TagsInput:H8},props:{value:{type:String,default:""}},data(){return{tags:this.value?this.value.split(","):[]}},methods:{handleChangeTag(e){this.tags=e}}}),j8={class:"input-tag-wrapper"},q8=["value"];function W8(e,t,n,r,s,a){const o=at("vue3-tags-input");return S(),P("div",j8,[he(o,{tags:e.tags,placeholder:"enter some tags","add-tag-on-keys":[9,13,188],onOnTagsChanged:e.handleChangeTag},null,8,["tags","onOnTagsChanged"]),v("input",{type:"hidden",name:"tags",value:e.tags},null,8,q8)])}const Y8=vt(U8,[["render",W8]]),z8={props:["event"],data(){return{reported_at:this.event.reported_at,certificate_url:this.event.certificate_url,status:this.event.status}},methods:{report(){window.location.href="/event/report/"+this.event.id},download(){window.location.href=this.event.certificate_url}}},K8={key:0},G8={key:0},J8={class:"report-event"},Z8={style:{"text-align":"right"}},X8={class:"actions"},Q8={key:1},eH={class:"event-already-reported"},tH={class:"actions"};function nH(e,t,n,r,s,a){return s.status==="APPROVED"?(S(),P("div",K8,[s.reported_at==null||s.certificate_url==null?(S(),P("div",G8,[v("div",J8,[v("div",Z8,re(e.$t("event.submit_event_and_report")),1),v("div",X8,[v("button",{onClick:t[0]||(t[0]=(...o)=>a.report&&a.report(...o)),class:"codeweek-action-button"},re(e.$t("event.report_and_claim")),1)])])])):(S(),P("div",Q8,[v("div",eH,[v("div",null,re(e.$t("event.certificate_ready")),1),v("div",tH,[v("button",{onClick:t[1]||(t[1]=(...o)=>a.download&&a.download(...o)),class:"codeweek-action-button"},re(e.$t("event.view_your_certificate")),1)])])]))])):ae("",!0)}const rH=vt(z8,[["render",nH]]),sH={props:{event:{type:Object,default:()=>({})}},setup(e){const{recurringFrequentlyMap:t}=Hi(),n=pe(()=>{var o,u;const a=[];return e.event.highlighted_status==="FEATURED"&&a.push({title:"Featured",highlight:!0}),["daily","weekly","monthly"].includes((o=e.event)==null?void 0:o.recurring_event)&&a.push({title:t.value[(u=e.event)==null?void 0:u.recurring_event]}),a}),r=pe(()=>{const a=d=>{if(!d)return"";const h=new Date(d),f=h.getDate(),p=h.toLocaleString("en-US",{month:"short"}),m=h.getFullYear();return h.toLocaleString("en-US",{hour:"numeric",hour12:!0}),`${f}, ${p} ${m}`},o=e.event.start_date;if(!o)return"";const u=new Date(o);return u.getDate(),u.toLocaleString("en-US",{month:"short"}),u.getFullYear(),u.toLocaleString("en-US",{hour:"numeric",hour12:!0}),`${a(e.event.start_date)} - ${a(e.event.end_date)}`});return{eventTags:n,eventStartDateText:r,limit:a=>a.length>400?a.substring(0,400)+"...":a}}},iH={class:"flex flex-col bg-white rounded-lg overflow-hidden"},aH={class:"flex-shrink-0"},lH=["src"],oH={class:"flex-grow flex flex-col gap-2 px-6 py-4"},uH={class:"text-default text-slate-500 mb-2 flex items-center font-semibold"},cH={class:"text-sm font-semibold ml-1 w-fit px-4 py-1.5 bg-[#CCF0F9] rounded-full flex items-center"},dH={key:0,class:"flex gap-2 flex-wrap mb-2"},fH={key:0,class:"inline-block w-4 h-4 text-white",src:"/images/star-white.svg"},hH={class:"text-dark-blue font-semibold font-['Montserrat'] text-base leading-6"},pH={class:"text-slate-500 text-[16px] leading-[22px] font-semibold"},mH=["innerHTML"],gH={class:""},vH=["href"];function yH(e,t,n,r,s,a){return S(),P("div",iH,[v("div",aH,[v("img",{src:n.event.picture_path,class:"w-full object-cover aspect-[1.5]"},null,8,lH)]),v("div",oH,[v("div",uH,[t[0]||(t[0]=ht(" Organizer: ")),v("span",cH,re(n.event.organizer||"Unknown"),1)]),r.eventTags.length?(S(),P("div",dH,[(S(!0),P(Ve,null,Qe(r.eventTags,({title:o,highlight:u})=>(S(),P("span",{class:Be(["flex items-center gap-2 py-1 px-3 text-sm font-semibold rounded-full whitespace-nowrap leading-4",[u?"bg-dark-blue text-white":"bg-light-blue-100 text-slate-500"]])},[u?(S(),P("img",fH)):ae("",!0),v("span",null,[(S(!0),P(Ve,null,Qe(o.split(" "),d=>(S(),P(Ve,null,[d?(S(),P("span",{key:0,class:Be(["mr-[2px]",{"font-sans":d==="&"}])},re(d),3)):ae("",!0)],64))),256))])],2))),256))])):ae("",!0),v("div",hH,re(n.event.title),1),v("div",pH,re(r.eventStartDateText),1),v("div",{class:"flex-grow text-slate-500 text-[16px] leading-[22px] mb-2 [&_p]:p-0",innerHTML:r.limit(n.event.description)},null,8,mH),v("div",gH,[v("a",{class:"flex justify-center items-center gap-2 text-[#1C4DA1] border-solid border-2 border-[#1C4DA1] rounded-full py-3 px-8 font-semibold text-lg transition-all duration-300 hover:bg-[#E8EDF6] group",href:"/view/"+n.event.id+"/"+n.event.slug},t[1]||(t[1]=[v("span",null,"View activity",-1),v("div",{class:"flex gap-2 w-4 overflow-hidden"},[v("img",{src:"/images/arrow-right-icon.svg",class:"min-w-4 duration-500 transform -translate-x-6 group-hover:translate-x-0 text-[#1C4DA1]"}),v("img",{src:"/images/arrow-right-icon.svg",class:"min-w-4 duration-500 transform -translate-x-6 group-hover:translate-x-0 text-[#1C4DA1]"})],-1)]),8,vH)])])])}const Dw=vt(sH,[["render",yH]]),_H={props:{event:{type:Object,default:()=>({})},mapTileUrl:String,canApprove:Boolean,canEdit:Boolean,fromText:String,toText:String,lastUpdateText:String,eventPath:String,appUrl:String,shareUrl:String,emailHref:String},setup(e){console.log(e.event);const{activityFormatOptionsMap:t,durationOptionsMap:n,ageOptions:r,ageOptionsMap:s,recurringFrequentlyMap:a,recurringTypeOptionsMap:o}=Hi(),u=fe(null),d=pe(()=>{var p;return(p=e.event.ages)==null?void 0:p.split(",").map(m=>{var y,_;return(_=(y=r.value)==null?void 0:y.find(({id:b})=>b===m))==null?void 0:_.name})}),h=p=>{const m=u.value;if(!m)return;const y="fixed left-0 top-[139px] md:top-[123px] z-[110] h-[calc(100dvh-139px)] md:h-[calc(100dvh-123px)]";p?m.classList.add(...y.split(" ")):m.classList.remove(...y.split(" "))},f=()=>{const p=L.map("mapid");L.tileLayer(e.mapTileUrl,{maxZoom:18,attribution:'© Mapbox',tileSize:512,zoomOffset:-1,zoomControl:!1}).addTo(p),p.setView([51,10],5);let m=[51,10];e.event.latitude&&e.event.longitude&&(m=[e.event.latitude,e.event.longitude]);const y=L.icon({iconUrl:"/images/marker-orange.svg",iconSize:[44,62],iconAnchor:[22,62],popupAnchor:[0,-60]});L.marker(m,{icon:y}).addTo(p),p.setView(m,5)};return It(()=>{setTimeout(()=>{f()},2e3)}),{activityFormatOptionsMap:t,eventAges:d,durationOptionsMap:n,ageOptionsMap:s,recurringFrequentlyMap:a,recurringTypeOptionsMap:o,mapContainerRef:u,handleToggleMapFullScreen:h}}},bH={class:"relative z-10"},wH={class:"flex relative z-10 justify-center py-10 md:py-20 codeweek-container-lg"},xH={class:"w-full max-w-[880px] gap-2 text-xl"},kH={class:"text-dark-blue text-[22px] md:text-4xl leading-7 md:leading-[44px] font-medium font-['Montserrat'] mb-2"},SH={class:"text-[#20262C] font-normal p-0 mb-6"},TH={class:"mb-6"},AH={class:"text-[#20262C] font-normal p-0 mb-6"},CH={key:0,class:"mb-6"},EH={class:"flex flex-wrap gap-2"},OH={class:"flex gap-2 items-center px-4 py-1 bg-light-blue-100 rounded-full w-fit"},MH={class:"p-0 text-base font-semibold text-slate-500"},RH={class:"mb-6"},DH={class:"p-0 mb-2 font-semibold text-slate-500"},PH={class:"text-[#20262C] font-normal p-0 mb-6"},LH={key:1,class:"mb-6"},IH={class:"p-0 mb-2 font-semibold text-slate-500"},NH={class:"flex flex-wrap gap-2"},VH={class:"flex gap-2 items-center px-4 py-1 bg-light-blue-100 rounded-full w-fit"},FH={class:"p-0 text-base font-semibold text-slate-500"},$H={key:2,class:"mb-6"},BH={class:"flex flex-wrap gap-2"},HH={class:"flex gap-2 items-center px-4 py-1 bg-light-blue-100 rounded-full w-fit"},UH={class:"p-0 text-base font-semibold text-slate-500"},jH={key:0,class:"flex gap-2 items-center px-4 py-1 bg-light-blue-100 rounded-full w-fit"},qH={class:"p-0 text-base font-semibold text-slate-500"},WH={key:1,class:"flex gap-2 items-center px-4 py-1 bg-light-blue-100 rounded-full w-fit"},YH={class:"p-0 text-base font-semibold text-slate-500"},zH={key:3,class:"mb-6"},KH={class:"p-0 mb-2 font-semibold text-slate-500"},GH={class:"flex flex-wrap gap-2"},JH={class:"flex gap-2 items-center px-4 py-1 bg-light-blue-100 rounded-full w-fit"},ZH={class:"p-0 text-base font-semibold text-slate-500"},XH={key:4,class:"mb-6"},QH={class:"flex flex-wrap gap-2"},eU={class:"flex gap-2 items-center px-4 py-1 bg-light-blue-100 rounded-full w-fit"},tU={class:"p-0 text-base font-semibold text-slate-500"},nU={key:5,class:"mb-6"},rU={class:"flex flex-wrap gap-2"},sU={class:"flex gap-2 items-center px-4 py-1 bg-light-blue-100 rounded-full w-fit"},iU={class:"p-0 text-base font-semibold text-slate-500"},aU={class:"mb-6"},lU={class:"p-0 mb-2 font-semibold text-slate-500"},oU={class:"text-[#20262C] font-normal p-0 mb-6"},uU={class:"mb-6 [&_p]:empty:hidden"},cU={class:"p-0 mb-2 font-semibold text-slate-500"},dU=["innerHTML"],fU={class:"mb-6"},hU={class:"text-[#20262C] font-normal p-0 mb-6"},pU={ref:"mapContainerRef",class:"w-full h-[520px] top-0 left-0 mb-6 rounded-lg overflow-hidden"},mU={id:"mapid",class:"relative w-full h-full"},gU={style:{"z-index":"999"},id:"map-controls",class:"flex absolute left-2 top-4 z-50 flex-col"},vU={class:"flex gap-4 items-center"},yU=["data-href"],_U=["data-href","data-text"],bU=["title","href"],wU=["data-href"];function xU(e,t,n,r,s,a){var o,u,d;return S(),P("section",bH,[v("div",wH,[v("div",xH,[v("h2",kH,re(n.event.title),1),v("p",SH,re(n.fromText)+" - "+re(n.toText),1),v("div",TH,[t[2]||(t[2]=v("p",{class:"text-slate-500 font-semibold p-0 mb-2"}," Organizer: ",-1)),v("p",AH,re(n.event.organizer||"Unknown"),1)]),n.event.activity_format?(S(),P("div",CH,[t[3]||(t[3]=v("p",{class:"p-0 mb-2 font-semibold text-slate-500"}," Format of the activity: ",-1)),v("div",EH,[(S(!0),P(Ve,null,Qe(n.event.activity_format,h=>(S(),P("div",OH,[v("p",MH,re(r.activityFormatOptionsMap[h]),1)]))),256))])])):ae("",!0),v("div",RH,[v("p",DH,re(e.$t("event.activitytype.label"))+": ",1),v("p",PH,[n.event.activity_type?(S(),P(Ve,{key:0},[ht(re(e.$t(`event.activitytype.${n.event.activity_type}`)),1)],64)):ae("",!0)])]),n.event.language?(S(),P("div",LH,[v("p",IH,re(e.$t("resources.Languages"))+": ",1),v("div",NH,[(S(!0),P(Ve,null,Qe(n.event.languages,h=>(S(),P("div",VH,[v("p",FH,re(e.$t(`base.languages.${h}`)),1)]))),256))])])):ae("",!0),n.event.recurring_event?(S(),P("div",$H,[t[4]||(t[4]=v("p",{class:"p-0 mb-2 font-semibold text-slate-500"},"Recurring event:",-1)),v("div",BH,[v("div",HH,[v("p",UH,re(r.recurringFrequentlyMap[n.event.recurring_event]),1)]),n.event.duration?(S(),P("div",jH,[v("p",qH,re(r.durationOptionsMap[n.event.duration]),1)])):ae("",!0),n.event.recurring_type?(S(),P("div",WH,[v("p",YH,re(r.recurringTypeOptionsMap[n.event.recurring_type]),1)])):ae("",!0)])])):ae("",!0),(o=n.event.audiences)!=null&&o.length?(S(),P("div",zH,[v("p",KH,re(e.$t("event.audience_title"))+": ",1),v("div",GH,[(S(!0),P(Ve,null,Qe(n.event.audiences,h=>(S(),P("div",JH,[v("p",ZH,re(e.$t(`event.audience.${h.name}`)),1)]))),256))])])):ae("",!0),(u=n.event.ages)!=null&&u.length?(S(),P("div",XH,[t[5]||(t[5]=v("p",{class:"p-0 mb-2 font-semibold text-slate-500"},"Age range:",-1)),v("div",QH,[(S(!0),P(Ve,null,Qe(n.event.ages,h=>(S(),P("div",eU,[v("p",tU,re(r.ageOptionsMap[h]),1)]))),256))])])):ae("",!0),(d=n.event.themes)!=null&&d.length?(S(),P("div",nU,[t[6]||(t[6]=v("p",{class:"p-0 mb-2 font-semibold text-slate-500"},"Themes:",-1)),v("div",rU,[(S(!0),P(Ve,null,Qe(n.event.themes,h=>(S(),P("div",sU,[v("p",iU,re(e.$t(`event.theme.${h.name}`)),1)]))),256))])])):ae("",!0),v("div",aU,[v("p",lU,re(e.$t("event.address.label"))+": ",1),v("p",oU,re(n.event.location),1)]),v("div",uU,[v("p",cU,re(n.event.description),1),v("div",{class:"text-[#20262C] font-normal p-0 mb-6 space-y-2 [&_p]:py-0",innerHTML:n.event.description},null,8,dU)]),v("div",fU,[t[7]||(t[7]=v("p",{class:"p-0 mb-2 font-semibold text-slate-500"},"Email address:",-1)),v("p",hU,re(n.event.contact_person),1)]),v("div",pU,[v("div",mU,[v("div",gU,[v("button",{class:"pb-2 group",onClick:t[0]||(t[0]=h=>r.handleToggleMapFullScreen(!1))},t[8]||(t[8]=[v("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("rect",{width:"40",height:"40",rx:"8",class:"fill-white transition-colors duration-300 group-hover:fill-[#1C4DA1]"}),v("path",{d:"M13 20H27",class:"stroke-[#414141] group-hover:stroke-[#ffffff]","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),v("button",{class:"pb-2 group",onClick:t[1]||(t[1]=h=>r.handleToggleMapFullScreen(!0))},t[9]||(t[9]=[v("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("rect",{width:"40",height:"40",rx:"8",class:"fill-white transition-colors duration-300 group-hover:fill-[#1C4DA1]"}),v("path",{class:"stroke-[#414141] group-hover:stroke-[#ffffff]",d:"M16 11H13C12.4696 11 11.9609 11.2107 11.5858 11.5858C11.2107 11.9609 11 12.4696 11 13V16M29 16V13C29 12.4696 28.7893 11.9609 28.4142 11.5858C28.0391 11.2107 27.5304 11 27 11H24M24 29H27C27.5304 29 28.0391 28.7893 28.4142 28.4142C28.7893 28.0391 29 27.5304 29 27V24M11 24V27C11 27.5304 11.2107 28.0391 11.5858 28.4142C11.9609 28.7893 12.4696 29 13 29H16","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))])])],512),v("div",null,[t[12]||(t[12]=v("p",{class:"p-0 mb-2 font-semibold text-slate-500"}," Share activity on: ",-1)),v("div",vU,[v("div",{class:"fb-like","data-href":n.shareUrl,"data-layout":"button_count","data-action":"recommend","data-show-faces":"false","data-share":"true"},null,8,yU),v("a",{href:"https://twitter.com/share",class:"twitter-share-button","data-href":n.shareUrl,"data-text":`Check out ${n.event.title} at`,"data-via":"CodeWeekEU","data-hashtags":"codeEU"},t[10]||(t[10]=[v("img",{src:"/images/social/twitter.svg"},null,-1)]),8,_U),v("a",{class:"block [&_path]:!fill-dark-blue",title:e.$t("eventdetails.email.tooltip"),href:n.emailHref},t[11]||(t[11]=[v("img",{class:"block",src:"/images/mail.svg"},null,-1)]),8,bU),v("div",{class:"g-plusone","data-size":"medium","data-href":n.appUrl},null,8,wU)])])])]),t[13]||(t[13]=v("div",{class:"animation-element move-background duration-[1.5s] absolute z-0 bottom-10 md:bottom-auto md:top-48 -right-14 md:-right-40 w-28 md:w-72 h-28 md:h-72 bg-[#FFEF99] rounded-full hidden lg:block",style:{transform:"translate(-16px, -24px)"}},null,-1)),t[14]||(t[14]=v("div",{class:"animation-element move-background duration-[1.5s] absolute z-0 lg:top-96 right-40 w-28 h-28 hidden lg:block bg-[#FFEF99] rounded-full",style:{transform:"translate(-16px, -24px)"}},null,-1))])}const kU=vt(_H,[["render",xU]]),SU=()=>{const e=new URLSearchParams(window.location.search);console.log("urlParams",e);const t=fe({});for(const[r,s]of e)t.value[r]=s;return{queryParams:t,onChangeQueryParams:r=>{const s=Bn.cloneDeep(r);console.log(">>> params",s);const a=new URLSearchParams(window.location.search);for(const u in s){const d=s[u];typeof d=="number"?Bn.isNil(d)?a.delete(u):a.set(u,d):Bn.isEmpty(d)?a.delete(u):a.set(u,d)}t.value=s;const o=a.toString()?`${window.location.pathname}?${a.toString()}`:window.location.pathname;window.history.replaceState({},"",o)}}},TU={name:"SearchPageComponent",components:{EventCard:Dw,Pagination:ud,FieldWrapper:ad,SelectField:Fo,InputField:ld},props:{mapTileUrl:String,prpQuery:String,prpSelectedCountry:Array,name:String,years:Array,countrieslist:Array,audienceslist:Array,themeslist:Array,typeslist:Array,languagesObject:{type:Object,default:()=>({})}},setup(e){const{activityFormatOptions:t,activityTypeOptions:n,ageOptions:r}=Hi(),{queryParams:s,onChangeQueryParams:a}=SU(),o=fe(!0),u=fe(null),d=fe(null),h=fe(null),f=fe([]),p=fe({}),m=fe(null),y={query:e.prpQuery||"",languages:[],countries:[],start_date:"",formats:[],types:[],audiences:[],ages:[],themes:[],year:{id:new Date().getFullYear(),name:new Date().getFullYear()},countries:e.prpSelectedCountry||[]},_=fe({...y}),b=fe({current_page:1,per_page:0,from:null,last_page:0,last_page_url:null,next_page_url:null,prev_page:null,prev_page_url:null,to:null,total:0}),O=pe(()=>e.years.map(k=>({id:k,name:k}))),H=pe(()=>Object.entries(e.languagesObject).map(([k,J])=>({id:k,name:J}))),V=()=>{var J,_e,Me,Ne,j,te,M,ie;const k={page:b.value.current_page,query:_.value.query,year:(J=_.value.year)==null?void 0:J.id,start_date:_.value.start_date,languages:(_e=_.value.languages)==null?void 0:_e.map(ge=>ge.id).join(","),countries:(Me=_.value.countries)==null?void 0:Me.map(ge=>ge.iso).join(","),formats:(Ne=_.value.formats)==null?void 0:Ne.map(ge=>ge.id).join(","),types:(j=_.value.types)==null?void 0:j.map(ge=>ge.id).join(","),audiences:(te=_.value.audiences)==null?void 0:te.map(ge=>ge.id).join(","),ages:(M=_.value.ages)==null?void 0:M.map(ge=>ge.id).join(","),themes:(ie=_.value.themes)==null?void 0:ie.map(ge=>ge.id).join(",")};console.log("updatedParams",k),a(k)},x=()=>{const k=s.value;console.log("init params",k);const J=(_e,Me,Ne="id")=>(_e||"").split(",").map(j=>Me.find(te=>String(te[Ne])===String(j))).filter(j=>!!j);k.page&&(b.value.current_page=k.page),_.value={...y,query:k.query||"",start_date:k.start_date||"",year:k.year?{id:k.year,name:k.year}:y.year,languages:J(k.languages,H.value),countries:J(k.countries,e.countrieslist,"iso"),formats:J(k.formats,t.value),types:J(k.types,n.value),audiences:J(k.audiences,e.audienceslist),ages:J(k.ages,r.value),themes:J(k.themes,e.themeslist)}},C=pe(()=>{const k=[..._.value.languages,..._.value.countries,..._.value.formats,..._.value.types,..._.value.audiences,..._.value.ages,..._.value.themes];return _.value.start_date&&k.push({id:"start_date",name:_.value.start_date.slice(0,10)}),k}),F=k=>{if(k.id==="start_date"){_.value.start_date="";return}const J=_e=>_e.id!==k.id;_.value.languages=_.value.languages.filter(J),_.value.countries=_.value.countries.filter(_e=>_e.iso!==k.iso),_.value.formats=_.value.formats.filter(J),_.value.audiences=_.value.audiences.filter(J),_.value.themes=_.value.themes.filter(J),T()},U=()=>{_.value={...y},T()},$=()=>{window.scrollTo(0,0)},D=()=>{$(),T(!0)},T=(k=!1)=>{var Me;f.value=[],o.value=!0;let J="/search";k&&(J=`/search?page=${b.value.current_page}`),V();const _e={..._.value,year:(Me=_.value.year)==null?void 0:Me.id,start_date:_.value.start_date?new Date(_.value.start_date).toISOString().slice(0,10):"",pagination:{current_page:b.current_page}};xt.post(J,_e).then(Ne=>{const j=Ne.data;console.log("🔥 Full response:",j);let te,M;if(Array.isArray(j))te=j[0],M=j[1]||null;else if(j.events)te=j.events,M=j.map||null;else{console.warn("❌ Unexpected response structure:",j),m.value="Unexpected response format from server.",o.value=!1;return}b.value={per_page:te.per_page,current_page:te.current_page,from:te.from,last_page:te.last_page,last_page_url:te.last_page_url,next_page_url:te.next_page_url,prev_page:te.prev_page,prev_page_url:te.prev_page_url,to:te.to,total:te.total},te.data?f.value=Array.isArray(te.data)?te.data:Object.values(te.data):f.value=[],console.log("✅ Events loaded:",f.value.length),!k&&M?(window.getEvents?window.getEvents(M):window.eventsToMap=M,p.value=M,de()):M||console.warn("⚠️ mapData is null, skipping map update"),B(),o.value=!1}).catch(Ne=>{console.error("❌ Request failed:",Ne),m.value=Ne.response?Ne.response.data:"Unknown error",o.value=!1})},B=()=>{var J;if(!d.value)return;let k={latitude:51,longitude:4};if(((J=_.value.countries)==null?void 0:J.length)===1){const{latitude:_e,longitude:Me}=_.value.countries[0]||{};_e&&Me&&(k={latitude:_e,longitude:Me,zoom:4})}d.value.setView(new L.LatLng(k.latitude,k.longitude),4,{animation:!0})},se=k=>k.length>400?k.substring(0,400)+"...":k;var ee=async k=>{const J=k.target.options.id;try{const{data:_e}=await xt.get(`/api/event/detail?id=${J}`),Me=_e.data;console.log("event/detail",Me);const Ne=` -
-

- ${Me.title} -

-
- -
-

${Me.description}

-
-
-
- `,j=L.popup({maxWidth:600}).setContent(Ne);k.target.bindPopup(j).openPopup()}catch(_e){console.error("Can NOT load event",_e)}};const de=()=>{if(d.value)try{h.value&&(d.value.removeLayer(h.value),h.value=null);const k=L.markerClusterGroup(),J=[];Object.values(p.value).forEach(_e=>{J.push(..._e)}),console.group("Started add markers",J.length),J.map(({id:_e,geoposition:Me},Ne)=>{Ne%1e4===0&&console.log("Adding markers",Ne);const j=Me.split(","),te=parseFloat(j[0]),M=parseFloat(j[1]);if(te&&M){const ie=L.marker([te,M],{id:_e});ie.on("click",ee),k.addLayer(ie)}}),console.log("Done add markers",J.length),console.groupEnd(),h.value=k,d.value.addLayer(k)}catch(k){console.log("Add marker error",k)}},ne=()=>{navigator.geolocation&&navigator.geolocation.getCurrentPosition(k=>{const{latitude:J,longitude:_e}=k.coords,Me=L.icon({iconUrl:"/images/marker-orange.svg",iconSize:[33,41],iconAnchor:[22,62],popupAnchor:[0,-60]});L.marker([J,_e],{icon:Me}).addTo(d.value)},k=>{console.error("Geolocation error:",k)})},N=()=>{d.value=L.map("mapid"),d.value.setView([51,10],5),L.tileLayer(e.mapTileUrl,{maxZoom:18,attribution:'© Mapbox',tileSize:512,zoomOffset:-1,zoomControl:!1}).addTo(d.value)},G=k=>{const J=u.value;if(!J)return;const _e="fixed left-0 top-[139px] md:top-[123px] z-[110] h-[calc(100dvh-139px)] md:h-[calc(100dvh-123px)]";k?J.classList.add(..._e.split(" ")):J.classList.remove(..._e.split(" "))};return It(()=>{setTimeout(()=>{x(),T()},100),setTimeout(()=>{N(),B(),de(),ne()},2e3)}),{mapContainerRef:u,yearOptions:O,languageOptions:H,activityFormatOptions:t,activityTypeOptions:n,ageOptions:r,filters:_,removeSelectedItem:F,removeAllSelectedItems:U,isLoading:o,events:f,errors:m,tags:C,pagination:b,scrollToTop:$,paginate:D,onSubmit:T,limit:se,handleToggleMapFullScreen:G}}},AU={ref:"mapContainerRef",class:"w-full h-[520px] top-0 left-0"},CU={id:"mapid",class:"w-full h-full relative"},EU={style:{"z-index":"999"},id:"map-controls",class:"absolute z-50 flex flex-col top-4 left-2"},OU={class:"codeweek-searchpage-component font-['Blinker']"},MU={class:"codeweek-container py-10"},RU={class:"flex w-full"},DU={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 items-end gap-4 w-full"},PU={key:0,class:"flex md:justify-center mt-10"},LU={class:"max-md:w-full flex flex-wrap gap-2"},IU={class:"flex items-center gap-2"},NU=["onClick"],VU={class:"max-md:w-full max-md:mt-4 flex justify-center px-4"},FU={class:"relative pt-20 md:pt-48"},$U={class:"bg-yellow-50 pb-24"},BU={class:"relative z-10 codeweek-container-lg"},HU={class:"flex flex-col md:flex-row gap-10"},UU={class:"flex-shrink-0 grid grid-cols-2 md:grid-cols-1 gap-6 bg-[#FFEF99] px-4 py-6 rounded-2xl self-start w-full md:w-60"},jU={class:"relative w-full flex px-3 justify-between items-center text-gray-700 whitespace-nowrap rounded-3xl border-2 border-dark-blue-200 h-[50px] bg-white"},qU={class:"flex items-center justify-center w-full"},WU={key:0,class:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6 lg:gap-10 h-fit"},YU={key:0,class:"col-span-full"};function zU(e,t,n,r,s,a){const o=at("InputField"),u=at("FieldWrapper"),d=at("SelectField"),h=at("date-time"),f=at("event-card"),p=at("pagination");return S(),P(Ve,null,[v("section",null,[v("div",AU,[v("div",CU,[v("div",EU,[v("button",{class:"pb-2 group",onClick:t[0]||(t[0]=m=>r.handleToggleMapFullScreen(!0))},t[20]||(t[20]=[v("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("rect",{width:"40",height:"40",rx:"8",class:"fill-white transition-colors duration-300 group-hover:fill-[#1C4DA1]"}),v("path",{class:"stroke-[#414141] group-hover:stroke-[#ffffff]",d:"M16 11H13C12.4696 11 11.9609 11.2107 11.5858 11.5858C11.2107 11.9609 11 12.4696 11 13V16M29 16V13C29 12.4696 28.7893 11.9609 28.4142 11.5858C28.0391 11.2107 27.5304 11 27 11H24M24 29H27C27.5304 29 28.0391 28.7893 28.4142 28.4142C28.7893 28.0391 29 27.5304 29 27V24M11 24V27C11 27.5304 11.2107 28.0391 11.5858 28.4142C11.9609 28.7893 12.4696 29 13 29H16","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),v("button",{class:"pb-2 group",onClick:t[1]||(t[1]=m=>r.handleToggleMapFullScreen(!1))},t[21]||(t[21]=[v("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("rect",{width:"40",height:"40",rx:"8",class:"fill-white transition-colors duration-300 group-hover:fill-[#1C4DA1]"}),v("path",{d:"M13 20H27",class:"stroke-[#414141] group-hover:stroke-[#ffffff]","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))])])],512)]),v("section",OU,[v("div",MU,[v("div",RU,[v("div",DU,[he(u,{class:"lg:col-span-2",horizontal:"",label:"Search by title or description"},{default:Te(()=>[he(o,{modelValue:r.filters.query,"onUpdate:modelValue":t[2]||(t[2]=m=>r.filters.query=m),placeholder:"E.g tools assessment in computing"},null,8,["modelValue"])]),_:1}),he(u,{horizontal:"",label:"Year"},{default:Te(()=>[he(d,{"return-object":"",placeholder:"Select year",modelValue:r.filters.year,"onUpdate:modelValue":t[3]||(t[3]=m=>r.filters.year=m),"deselect-label":"","allow-empty":!1,options:r.yearOptions},null,8,["modelValue","options"])]),_:1}),he(u,{horizontal:"",label:"Language"},{default:Te(()=>[he(d,{multiple:"",searchable:"","return-object":"",placeholder:"Select language",modelValue:r.filters.languages,"onUpdate:modelValue":t[4]||(t[4]=m=>r.filters.languages=m),options:r.languageOptions},null,8,["modelValue","options"])]),_:1}),he(u,{horizontal:"",label:"Country"},{default:Te(()=>[he(d,{multiple:"",searchable:"","return-object":"","id-name":"iso",placeholder:"Select country",modelValue:r.filters.countries,"onUpdate:modelValue":t[5]||(t[5]=m=>r.filters.countries=m),options:n.countrieslist},null,8,["modelValue","options"])]),_:1}),v("button",{class:"bg-[#F95C22] rounded-full py-3 px-20 font-['Blinker'] hover:bg-hover-orange duration-300 mt-2 sm:col-span-2 lg:col-span-1",onClick:t[6]||(t[6]=m=>r.onSubmit())},t[22]||(t[22]=[v("span",{class:"text-base leading-7 font-semibold text-black normal-case"}," Search ",-1)]))])]),r.tags.length?(S(),P("div",PU,[v("div",LU,[(S(!0),P(Ve,null,Qe(r.tags,m=>(S(),P("div",{key:m.id,class:"bg-light-blue-100 pl-4 pr-3 py-1 rounded-full text-slate-500 text-[16px] font-semibold"},[v("div",IU,[v("span",null,re(m.name),1),v("button",{onClick:y=>r.removeSelectedItem(m)},t[23]||(t[23]=[v("img",{class:"w-4 h-4",src:"/images/close-icon.svg"},null,-1)]),8,NU)])]))),128)),v("div",VU,[v("button",{class:"text-dark-blue underline font-semibold text-[16px]",onClick:t[7]||(t[7]=(...m)=>r.removeAllSelectedItems&&r.removeAllSelectedItems(...m))}," Clear all filters ")])])])):ae("",!0)]),v("div",FU,[t[26]||(t[26]=v("div",{class:"absolute w-full h-[800px] bg-yellow-50 md:hidden top-0",style:{"clip-path":"ellipse(270% 90% at 38% 90%)"}},null,-1)),t[27]||(t[27]=v("div",{class:"absolute w-full h-[800px] bg-yellow-50 hidden md:block top-0",style:{"clip-path":"ellipse(88% 90% at 50% 90%)"}},null,-1)),v("div",$U,[v("div",BU,[v("div",HU,[v("div",UU,[he(u,{horizontal:"",label:"Date"},{default:Te(()=>[v("div",jU,[(S(),it(h,{key:r.filters.start_date,placeholder:"Start Date",format:"yyyy-MM-dd",value:r.filters.start_date,onOnChange:t[8]||(t[8]=m=>r.filters.start_date=m),onOnClear:t[9]||(t[9]=m=>r.filters.start_date=null)},null,8,["value"])),t[24]||(t[24]=v("div",{class:"absolute top-1/2 right-4 -translate-y-1/2 pointer-events-none"},[v("img",{src:"/images/select-arrow.svg"})],-1))])]),_:1}),he(u,{horizontal:"",label:"Format"},{default:Te(()=>[he(d,{multiple:"",searchable:"","return-object":"",placeholder:"Select format",modelValue:r.filters.formats,"onUpdate:modelValue":t[10]||(t[10]=m=>r.filters.formats=m),options:r.activityFormatOptions,onOnChange:t[11]||(t[11]=()=>r.onSubmit())},null,8,["modelValue","options"])]),_:1}),he(u,{horizontal:"",label:"Activity type"},{default:Te(()=>[he(d,{multiple:"",searchable:"","return-object":"",placeholder:"Select type",modelValue:r.filters.types,"onUpdate:modelValue":t[12]||(t[12]=m=>r.filters.types=m),options:r.activityTypeOptions,onOnChange:t[13]||(t[13]=()=>r.onSubmit())},null,8,["modelValue","options"])]),_:1}),he(u,{horizontal:"",label:"Audience"},{default:Te(()=>[he(d,{multiple:"",searchable:"","return-object":"",placeholder:"Select audience",modelValue:r.filters.audiences,"onUpdate:modelValue":t[14]||(t[14]=m=>r.filters.audiences=m),options:n.audienceslist,onOnChange:t[15]||(t[15]=()=>r.onSubmit())},null,8,["modelValue","options"])]),_:1}),he(u,{horizontal:"",label:"Age range"},{default:Te(()=>[he(d,{multiple:"",searchable:"","return-object":"",placeholder:"Select range",modelValue:r.filters.ages,"onUpdate:modelValue":t[16]||(t[16]=m=>r.filters.ages=m),options:r.ageOptions,onOnChange:t[17]||(t[17]=()=>r.onSubmit())},null,8,["modelValue","options"])]),_:1}),he(u,{horizontal:"",label:"Themes"},{default:Te(()=>[he(d,{multiple:"",searchable:"","return-object":"",placeholder:"Select themes",modelValue:r.filters.themes,"onUpdate:modelValue":t[18]||(t[18]=m=>r.filters.themes=m),options:n.themeslist,onOnChange:t[19]||(t[19]=()=>r.onSubmit())},null,8,["modelValue","options"])]),_:1})]),Dn(v("div",qU,[t[25]||(t[25]=v("img",{src:"img/loading.gif",style:{"margin-right":"10px"}},null,-1)),ht(re(e.$t("event.loading")),1)],512),[[Vr,r.isLoading]]),r.isLoading?ae("",!0):(S(),P("div",WU,[(S(!0),P(Ve,null,Qe(r.events,m=>(S(),it(f,{key:m.id,event:m},null,8,["event"]))),128)),r.pagination.last_page>1?(S(),P("div",YU,[he(p,{pagination:r.pagination,offset:5,onPaginate:r.paginate},null,8,["pagination","onPaginate"])])):ae("",!0)]))])])])])])],64)}const KU=vt(TU,[["render",zU]]),GU={props:{tool:Object},data(){return{descriptionHeight:"auto",needShowMore:!0,showMore:!1}},methods:{computeDescriptionHeight(){const e=this.$refs.descriptionContainerRef,t=this.$refs.descriptionRef,n=e.clientHeight,r=Math.floor(n/22);t.style.height="auto",this.descriptionHeight="auto",this.needShowMore=t.offsetHeight>n,t.offsetHeight>n?(t.style.height=`${r*22}px`,this.descriptionHeight=`${r*22}px`):this.showMore=!1},onToggleShowMore(){const e=this.$refs.descriptionRef;this.showMore=!this.showMore,this.showMore?e.style.height="auto":e.style.height=this.descriptionHeight}},mounted:function(){this.computeDescriptionHeight()}},JU={class:"flex flex-col bg-white rounded-lg overflow-hidden"},ZU=["src"],XU={key:0,class:"flex gap-2 flex-wrap mb-2"},QU={key:0,class:"inline-block w-4 h-4",src:"/images/star-white.svg"},e7={class:"text-dark-blue font-semibold font-['Montserrat'] text-base leading-6"},t7={key:1,class:"text-slate-500 text-[16px] leading-[22px] font-semibold"},n7={ref:"descriptionRef",class:"relative flex-grow text-slate-500 text-[16px] leading-[22px] mb-2 overflow-hidden",style:{height:"auto"}},r7=["innerHTML"],s7={class:"flex-shrink-0 h-[56px]"},i7=["href"];function a7(e,t,n,r,s,a){var o;return S(),P("div",JU,[v("div",{class:Be(["flex-shrink-0 flex justify-center items-center w-full",[n.tool.avatar_dark&&"bg-stone-800"]])},[v("img",{src:n.tool.avatar||"/images/matchmaking-tool/tool-placeholder.png",class:Be(["w-full aspect-[2]",n.tool.avatar?"object-contain":"object-cover"])},null,10,ZU)],2),v("div",{class:Be(["flex-grow flex flex-col gap-2 px-5 py-4 h-fit",{"max-h-[450px]":s.needShowMore&&!s.showMore}])},[(o=n.tool.types)!=null&&o.length?(S(),P("div",XU,[(S(!0),P(Ve,null,Qe(n.tool.types,({title:u,highlight:d})=>(S(),P("span",{class:Be(["flex items-center gap-2 py-1 px-3 text-sm font-semibold rounded-full whitespace-nowrap leading-4",[d?"bg-dark-blue text-white":"bg-light-blue-100 text-slate-500"]])},[d?(S(),P("img",QU)):ae("",!0),v("span",null,[(S(!0),P(Ve,null,Qe(u.split(" "),h=>(S(),P(Ve,null,[h?(S(),P("span",{key:0,class:Be(["mr-[2px]",{"font-sans":h==="&"}])},re(h),3)):ae("",!0)],64))),256))])],2))),256))])):ae("",!0),v("div",e7,re(n.tool.name),1),n.tool.location?(S(),P("div",t7,re(n.tool.location),1)):ae("",!0),v("div",{ref:"descriptionContainerRef",class:Be(["flex-grow h-full",{"overflow-hidden":s.needShowMore&&!s.showMore}])},[v("div",n7,[v("div",{innerHTML:n.tool.description},null,8,r7),s.needShowMore?(S(),P("div",{key:0,class:Be(["flex justify-end bottom-0 right-0 bg-white pl-0.5 text-dark-blue",{absolute:!s.showMore,"w-full":s.showMore}])},[v("button",{onClick:t[0]||(t[0]=(...u)=>a.onToggleShowMore&&a.onToggleShowMore(...u))},re(s.showMore?"Show less":"... Show more"),1)],2)):ae("",!0)],512)],2),v("div",s7,[v("a",{class:"flex justify-center items-center gap-2 text-[#1C4DA1] border-solid border-2 border-[#1C4DA1] rounded-full py-3 px-8 font-semibold text-lg transition-all duration-300 hover:bg-[#E8EDF6] group",href:`/matchmaking-tool/${n.tool.slug}`},t[1]||(t[1]=[v("span",null,"View profile/contact",-1),v("div",{class:"flex gap-2 w-4 overflow-hidden"},[v("img",{src:"/images/arrow-right-icon.svg",class:"min-w-4 duration-500 transform -translate-x-6 group-hover:translate-x-0 text-[#1C4DA1]"}),v("img",{src:"/images/arrow-right-icon.svg",class:"min-w-4 duration-500 transform -translate-x-6 group-hover:translate-x-0 text-[#1C4DA1]"})],-1)]),8,i7)])],2)])}const Pw=vt(GU,[["render",a7]]),l7={components:{ToolCard:Pw,Multiselect:Ta,Pagination:ud,Tooltip:V1},props:{prpQuery:{type:String,default:""},prpLanguages:{type:Array,default:()=>[]},prpLocations:{type:Array,default:()=>[]},prpTypes:{type:Array,default:()=>[]},prpTopics:{type:Array,default:()=>[]},languages:{type:Array,default:()=>[]},locations:{type:Array,default:()=>[]},types:{type:Array,default:()=>[]},topics:{type:Array,default:()=>[]},support_types:{type:Array,default:()=>[]},locale:String},setup(e){console.log("props",{...e});const t=fe(!1),n=fe(e.prpQuery),r=fe(e.prpQuery),s=fe([]),a=fe(e.prpLanguages),o=fe(e.prpLocations),u=fe(e.prpTypes),d=fe(e.prpTopics),h=fe({}),f=fe({current_page:1,per_page:0,from:null,last_page:0,last_page_url:null,next_page_url:null,prev_page:null,prev_page_url:null,to:null,total:0}),p=fe([]),m=pe(()=>e.types.map(U=>({id:U,name:U}))),y=pe(()=>[{id:"organisation",name:"Organisations"},{id:"volunteer",name:"Volunteers"}]),_=pe(()=>e.topics.map(U=>({id:U,name:U}))),b=pe(()=>[...s.value,...a.value,...o.value,...u.value,...d.value]),O=U=>{const $=D=>D.id!==U.id;s.value=s.value.filter($),a.value=a.value.filter($),o.value=o.value.filter(D=>D.iso!==(U==null?void 0:U.iso)),u.value=u.value.filter($),d.value=d.value.filter($)},H=()=>{s.value=[],a.value=[],o.value=[],u.value=[],d.value=[]},V=()=>{window.scrollTo(0,0)},x=()=>{V(),C(!0)},C=(U=!1)=>{U||(f.value.current_page=1);const $={page:f.value.current_page,support_types:s.value.map(D=>D.id),languages:a.value.map(D=>D.id),locations:o.value.map(D=>D.iso),types:u.value.map(D=>D.id),topics:d.value.map(D=>D.id)};xt.post("/matchmaking-tool/search",{},{params:$}).then(({data:D})=>{console.log(">>> data",D.data),p.value=D.data.map(T=>{var se,ee;const B={...T,avatar_dark:T.avatar_dark,avatar:T.avatar,types:[{title:"Online & In-person",highlight:!0},{title:"Ongoing availability"}]};return T.type==="volunteer"?{...B,name:`${T.first_name||""} ${T.last_name||""}`.trim(),location:T.location,description:T.description}:{...B,name:T.organisation_name,location:((ee=(se=e.locations)==null?void 0:se.find(({iso:de})=>de===T.country))==null?void 0:ee.name)||"",description:T.organisation_mission}}),console.log(">>> tools.value",JSON.parse(JSON.stringify(p.value))),f.value={per_page:D.per_page,current_page:D.current_page,from:D.from,last_page:D.last_page,last_page_url:D.last_page_url,next_page_url:D.next_page_url,prev_page:D.prev_page,prev_page_url:D.prev_page_url,to:D.to,total:D.total}})},F=(U,$)=>Pe($+"."+U.name);return It(()=>{C()}),{query:n,searchInput:r,selectedSupportTypes:s,selectedLanguages:a,selectedLocations:o,selectedTypes:u,selectedTopics:d,errors:h,pagination:f,tools:p,paginate:x,onSubmit:C,customLabel:F,showFilterModal:t,tags:b,removeSelectedItem:O,removeAllSelectedItems:H,typeOptions:m,supportTypeOptions:y,topicOptions:_}}},o7={class:"codeweek-matchmakingtool-component font-['Blinker'] bg-light-blue"},u7={class:"codeweek-container py-10"},c7={class:"flex md:hidden flex-shrink-0 justify-end w-full mb-6"},d7={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4 mb-12"},f7={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},h7={class:"language-json"},p7={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},m7={class:"language-json"},g7={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},v7={class:"language-json"},y7={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},_7={class:"flex items-center text-[16px] leading-5 text-slate-500 mb-2"},b7={class:"language-json"},w7={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},x7={class:"flex items-end"},k7={class:"text-base leading-7 font-semibold text-black normal-case"},S7={key:0,class:"flex md:justify-center"},T7={class:"max-md:w-full flex flex-wrap gap-2"},A7={class:"flex items-center gap-2"},C7=["onClick"],E7={class:"max-md:w-full max-md:mt-4 flex justify-center px-4"},O7={class:"relative pt-20 md:pt-48"},M7={class:"bg-yellow-50 pb-20"},R7={class:"relative z-10 codeweek-container"},D7={class:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6 lg:gap-10"};function P7(e,t,n,r,s,a){const o=at("multiselect"),u=at("Tooltip"),d=at("tool-card"),h=at("pagination");return S(),P("div",o7,[v("div",u7,[v("div",{class:Be(["max-md:fixed left-0 top-[125px] z-[100] flex-col items-center w-full max-md:p-6 max-md:h-[calc(100dvh-125px)] max-md:overflow-auto max-md:bg-white duration-300",[r.showFilterModal?"flex":"max-md:hidden"]])},[v("div",c7,[v("button",{id:"search-menu-trigger-hide",class:"block bg-[#FFD700] hover:bg-[#F95C22] rounded-full p-4 duration-300",onClick:t[0]||(t[0]=f=>r.showFilterModal=!1)},t[9]||(t[9]=[v("img",{class:"w-6 h-6",src:"/images/close_menu_icon.svg"},null,-1)]))]),v("div",d7,[v("div",null,[t[12]||(t[12]=v("label",{class:"block text-[16px] leading-5 text-slate-500 mb-2"}," Support type ",-1)),he(o,{modelValue:r.selectedSupportTypes,"onUpdate:modelValue":t[1]||(t[1]=f=>r.selectedSupportTypes=f),class:"multi-select",options:r.supportTypeOptions,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,"custom-label":f=>f.name,placeholder:"Select type, e.g. volunteer",label:"Select type, e.g. volunteer","track-by":"name","preselect-first":!1},{selection:Te(({values:f})=>[f.length>0?(S(),P("div",f7," Selected "+re(f.length)+" "+re(f.length>1?"types":"type"),1)):ae("",!0)]),default:Te(()=>[v("pre",h7,[t[10]||(t[10]=ht(" ")),v("code",null,re(r.selectedLanguages),1),t[11]||(t[11]=ht(` - `))])]),_:1},8,["modelValue","options","custom-label"])]),v("div",null,[t[13]||(t[13]=v("label",{class:"block text-[16px] leading-5 text-slate-500 mb-2"}," Language ",-1)),he(o,{modelValue:r.selectedLanguages,"onUpdate:modelValue":t[2]||(t[2]=f=>r.selectedLanguages=f),class:"multi-select",options:n.languages,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:"Select language",label:"resources.resources.languages","custom-label":r.customLabel,"track-by":"name","preselect-first":!1},{selection:Te(({values:f})=>[f.length>0?(S(),P("div",p7," Selected "+re(f.length)+" "+re(f.length>1?"languages":"language"),1)):ae("",!0)]),_:1},8,["modelValue","options","custom-label"])]),v("div",null,[t[16]||(t[16]=v("label",{class:"block text-[16px] leading-5 text-slate-500 mb-2"}," Location ",-1)),he(o,{modelValue:r.selectedLocations,"onUpdate:modelValue":t[3]||(t[3]=f=>r.selectedLocations=f),class:"multi-select",options:n.locations,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:"Select country/city",label:"Location","custom-label":f=>f.name,"track-by":"name","preselect-first":!1},{selection:Te(({values:f})=>[f.length>0?(S(),P("div",g7," Selected "+re(f.length)+" "+re(f.length>1?"locations":"location"),1)):ae("",!0)]),default:Te(()=>[v("pre",m7,[t[14]||(t[14]=ht(" ")),v("code",null,re(r.selectedLocations),1),t[15]||(t[15]=ht(` - `))])]),_:1},8,["modelValue","options","custom-label"])]),v("div",null,[t[17]||(t[17]=v("label",{class:"block text-[16px] leading-5 text-slate-500 mb-2"}," Type of Organisation ",-1)),he(o,{modelValue:r.selectedTypes,"onUpdate:modelValue":t[4]||(t[4]=f=>r.selectedTypes=f),class:"multi-select",options:r.typeOptions,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,"custom-label":f=>f.name,placeholder:"Select type of organisation",label:"Type of Organisation","track-by":"name","preselect-first":!1},{selection:Te(({values:f})=>[f.length>0?(S(),P("div",y7," Selected "+re(f.length)+" "+re(f.length>1?"types":"type"),1)):ae("",!0)]),default:Te(()=>[v("pre",v7,[v("code",null,re(r.selectedTypes),1)])]),_:1},8,["modelValue","options","custom-label"])]),v("div",null,[v("label",_7,[t[20]||(t[20]=v("span",null,"Topics",-1)),he(u,{contentClass:"w-64"},{trigger:Te(()=>t[18]||(t[18]=[v("div",{class:"w-5 h-5 bg-dark-blue rounded-full flex justify-center items-center text-white ml-1.5 cursor-pointer text-xs"}," i ",-1)])),content:Te(()=>t[19]||(t[19]=[ht(" Select a topic to help match volunteers with the right digital skills for your needs — e.g. coding, robotics, online safety, etc. ")])),_:1})]),he(o,{modelValue:r.selectedTopics,"onUpdate:modelValue":t[5]||(t[5]=f=>r.selectedTopics=f),class:"multi-select",options:r.topicOptions,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,"custom-label":f=>f.name,placeholder:"Select topic, e.g. robotics",label:"Topics","track-by":"name","preselect-first":!1},{selection:Te(({values:f})=>[f.length>0?(S(),P("div",w7," Selected "+re(f.length)+" "+re(f.length>1?"topics":"topic"),1)):ae("",!0)]),default:Te(()=>[v("pre",b7,[v("code",null,re(r.selectedTopics),1)])]),_:1},8,["modelValue","options","custom-label"])]),v("div",x7,[v("button",{class:"w-full bg-[#F95C22] rounded-full py-2.5 px-6 font-['Blinker'] hover:bg-hover-orange duration-300",onClick:t[6]||(t[6]=()=>{r.showFilterModal=!1,r.onSubmit()})},[v("span",k7,re(e.$t("resources.search")),1)])])])],2),v("button",{class:"block md:hidden w-full bg-[#F95C22] rounded-full py-2.5 px-6 font-['Blinker'] hover:bg-hover-orange duration-300 mb-8",onClick:t[7]||(t[7]=f=>r.showFilterModal=!0)},t[21]||(t[21]=[v("span",{class:"flex gap-2 justify-center items-center text-base leading-7 font-semibold text-black normal-case"},[ht(" Filter and search "),v("img",{class:"w-5 h-5",src:"/images/filter.svg"})],-1)])),r.tags.length?(S(),P("div",S7,[v("div",T7,[(S(!0),P(Ve,null,Qe(r.tags,f=>(S(),P("div",{key:f.id,class:"bg-light-blue-100 pl-4 pr-3 py-1 rounded-full text-slate-500 text-[16px] font-semibold"},[v("div",A7,[v("span",null,re(f.name),1),v("button",{onClick:p=>r.removeSelectedItem(f)},t[22]||(t[22]=[v("img",{class:"w-4 h-4",src:"/images/close-icon.svg"},null,-1)]),8,C7)])]))),128)),v("div",E7,[v("button",{class:"text-dark-blue underline font-semibold text-[16px]",onClick:t[8]||(t[8]=(...f)=>r.removeAllSelectedItems&&r.removeAllSelectedItems(...f))}," Clear all filters ")])])])):ae("",!0)]),v("div",O7,[t[23]||(t[23]=v("div",{class:"absolute w-full h-[800px] bg-yellow-50 md:hidden top-0",style:{"clip-path":"ellipse(270% 90% at 38% 90%)"}},null,-1)),t[24]||(t[24]=v("div",{class:"absolute w-full h-[800px] bg-yellow-50 hidden md:block top-0",style:{"clip-path":"ellipse(88% 90% at 50% 90%)"}},null,-1)),v("div",M7,[v("div",R7,[v("div",D7,[(S(!0),P(Ve,null,Qe(r.tools,f=>(S(),it(d,{key:f.id,tool:f},null,8,["tool"]))),128))]),r.pagination.last_page>1?(S(),it(h,{key:0,pagination:r.pagination,offset:5,onPaginate:r.paginate},null,8,["pagination","onPaginate"])):ae("",!0)])])])])}const L7=vt(l7,[["render",P7]]),I7={props:{mapTileUrl:String,profile:{type:Object,default:()=>({})},locations:{type:Array,default:()=>[]}},setup(e){const t=fe([]),n=fe([]),r=pe(()=>{try{const m=JSON.parse(e.profile);return console.log(">>> profile",m),m}catch(m){return console.error("Parse profile data error",m),{}}}),s=pe(()=>r.value.type==="organisation"),a=m=>{if(typeof m!="string")return m;try{return JSON.parse(m)}catch{return[]}},o=pe(()=>{var b,O,H,V;const m=r.value;if(m.type!=="organisation")return null;const y=[];m.organisation_mission&&y.push({title:"Introduction",list:[m.organisation_mission]}),(b=m.support_activities)!=null&&b.length&&y.push({title:"What kind of activities or support can you offer to schools and educators?",list:m.support_activities}),(O=m.target_school_types)!=null&&O.length&&y.push({title:"What types of schools are you most interested in working with?",list:m.target_school_types}),(H=m.digital_expertise_areas)!=null&&H.length&&y.push({title:"What areas of digital expertise does your organisation or you specialise in?",list:m.digital_expertise_areas}),m.description&&y.push({title:"Do you have any additional information or comments that could help us better match you with schools and educators?",list:[m.description]});const[_]=(m.website||"").split(",")||[];return{name:m.organisation_name,description:m.description,location:((V=e.locations.find(({iso:x})=>x===m.country))==null?void 0:V.name)||"",email:m.email,website:(_||"").trim(),abouts:y,short_intro:"",availabilities:[],phone:"",avatarDark:m.avatar_dark,avatar:m.avatar}}),u=pe(()=>{var _,b;const m=r.value;if(m.type!=="volunteer")return null;const y=[];return m.description&&y.push({title:"Introduction",list:[m.description]}),m.organisation_name&&m.organisation_type&&y.push({title:"Organisation",list:[`Organisation name: ${m.organisation_name}`,`Organisation type: ${a(m.organisation_type)}`]}),m.why_volunteering&&y.push({title:"Why am I volunteering?",list:[m.why_volunteering]}),(_=m.support_activities)!=null&&_.length&&y.push({title:"What kind of activities or support can you offer to schools and educators?",list:a(m.support_activities)}),(b=m.languages)!=null&&b.length&&y.push({title:"Languages spoken",list:a(m.languages)}),{name:`${m.first_name||""} ${m.last_name}`.trim(),description:m.description,location:m.location,email:m.email,get_email_from:m.get_email_from,linkedin:m.linkedin,facebook:m.facebook,website:m.website,job_title:m.job_title,abouts:y,short_intro:"",availabilities:[],phone:"",avatar:m.avatar}}),d=pe(()=>{const m=o.value||u.value||{};return m.linkedin&&!m.linkedin.startsWith("http")&&(m.linkedin=`https://${m.linkedin}`),m.facebook&&!m.facebook.startsWith("http")&&(m.facebook=`https://${m.facebook}`),m.website&&!m.website.startsWith("http")&&(m.website=`https://${m.website}`),m}),h=m=>{const y=n.value.filter(_=>_!==m);n.value.includes(m)?n.value=y:n.value=[...n.value,m]},f=(m,y)=>{m&&(t.value[y]=m)},p=async()=>{let m=[51,10];try{const b=await xt("https://nominatim.openstreetmap.org/search",{params:{format:"json",q:d.value.location}});if(b.data&&b.data.length>0){const{lat:O,lon:H}=b.data[0];O&&H&&(m=[O,H])}}catch(b){console.log(b)}const y=L.map("map-id");L.tileLayer(e.mapTileUrl,{maxZoom:18,attribution:'© Mapbox',tileSize:512,zoomOffset:-1,zoomControl:!1}).addTo(y),console.log(m);const _=L.icon({iconUrl:"/images/marker-orange.svg",iconSize:[44,62],iconAnchor:[22,62],popupAnchor:[0,-60]});L.marker(m,{icon:_}).addTo(y),y.setView(m,12)};return It(()=>{setTimeout(()=>{p()},2e3)}),{isOrganisation:s,data:d,descriptionRefs:t,showAboutIndexes:n,handleToggleAbout:h,setDescriptionRef:f}}},N7={id:"codeweek-matchmaking-tool",class:"font-['Blinker'] overflow-hidden"},V7={class:"relative flex overflow-hidden"},F7={class:"flex codeweek-container-lg py-10 tablet:py-20"},$7={class:"flex flex-col lg:flex-row gap-12 tablet:gap-20 xl:gap-32 2xl:gap-[260px]"},B7={class:"text-dark-blue text-[30px] md:text-4xl leading-[44px] font-normal md:font-medium font-['Montserrat'] mb-6"},H7=["innerHTML"],U7={class:"text-dark-blue text-[22px] md:text-3xl leading-[36px] font-medium font-['Montserrat'] mb-6"},j7={class:"accordion"},q7={class:"bg-transparent border-b-2 border-solid border-[#A4B8D9]"},W7=["onClick"],Y7={class:"text-[#20262C] font-semibold text-lg font-['Montserrat']"},z7={class:"flex flex-col gap-0 text-slate-500 text-xl font-normal w-full"},K7=["innerHTML"],G7={class:"flex-shrink-0 lg:max-w-[460px] w-full"},J7=["src"],Z7={key:1,class:"rounded-xl h-full w-full object-cover",src:"/images/matchmaking-tool/tool-placeholder.png"},X7={class:"text-[#20262C] font-semibold text-lg p-0 mb-10"},Q7={key:0},e9={key:0,class:"text-[#20262C] text-xl leading-[36px] font-medium font-['Montserrat'] mb-4 italic"},t9={class:"border-l-[4px] border-[#F95C22] pl-4"},n9=["innerHTML"],r9={class:"relative overflow-hidden"},s9={class:"codeweek-container-lg relative pt-20 pb-16 md:pt-40 md:pb-28"},i9={class:"bg-white px-5 py-10 lg:p-16 rounded-[32px] flex flex-col tablet:flex-row w-full gap-10 lg:gap-0"},a9={class:"flex-1"},l9={class:"flex gap-4 mb-6"},o9={class:"p-0 text-slate-500 text-xl font-normal capitalize"},u9={key:0,class:"flex gap-4 mb-6"},c9=["href"],d9={class:"flex gap-4 mb-6"},f9=["href"],h9={key:1,class:"p-0 text-slate-500 text-xl font-normal capitalize"},p9={key:2,class:"p-0 text-slate-500 text-xl font-normal capitalize"},m9={key:1,class:"flex gap-4 mb-6"},g9=["href"],v9={key:2,class:"flex gap-4 mb-6"},y9=["href"],_9={key:3,class:"flex gap-4 mb-6"},b9=["href"],w9={key:4,class:"text-xl font-semibold text-[#20262C] mb-2"},x9={key:5,class:"flex gap-4"},k9={class:"flex flex-col gap-2"},S9={class:"grid grid-cols-2 gap-8"},T9={class:"p-0 text-slate-500 text-xl font-normal"},A9={class:"p-0 text-slate-500 text-xl font-normal"};function C9(e,t,n,r,s,a){var o,u;return S(),P("section",N7,[v("section",V7,[v("div",F7,[v("div",$7,[v("div",null,[v("h2",B7,re(r.data.name),1),v("p",{class:"text-[#20262C] font-normal text-2xl p-0 mb-10",innerHTML:r.data.description},null,8,H7),v("h3",U7,re(r.isOrganisation?"About our organization":"About me"),1),v("div",j7,[(S(!0),P(Ve,null,Qe(r.data.abouts,(d,h)=>{var f;return S(),P("div",q7,[v("div",{class:"py-4 cursor-pointer flex items-center justify-between duration-300",onClick:p=>r.handleToggleAbout(h)},[v("p",Y7,re(d.title),1),v("div",{class:Be(["rounded-full min-w-12 min-h-12 duration-300 flex justify-center items-center ml-8",[r.showAboutIndexes.includes(h)?"bg-primary hover:bg-hover-orange":"bg-yellow hover:bg-primary"]])},[v("div",{class:Be(["duration-300",[r.showAboutIndexes.includes(h)&&"rotate-180"]])},t[0]||(t[0]=[v("img",{src:"/images/digital-girls/arrow.svg"},null,-1)]),2)],2)],8,W7),v("div",{class:"flex overflow-hidden transition-all duration-300 min-h-[1px] h-full",ref_for:!0,ref:p=>r.setDescriptionRef(p,h),style:bn({height:r.showAboutIndexes.includes(h)?`${(f=r.descriptionRefs[h])==null?void 0:f.scrollHeight}px`:0})},[v("div",z7,[(S(!0),P(Ve,null,Qe(d.list,p=>(S(),P("p",{class:"p-0 pb-4 w-full",innerHTML:p},null,8,K7))),256))])],4)])}),256))])]),v("div",G7,[v("div",{class:Be(["flex justify-center items-center rounded-xl border-2 border-[#ADB2B6] mb-4 aspect-square",[r.isOrganisation&&"p-6",r.data.avatarDark&&"bg-stone-800"]])},[r.data.avatar?(S(),P("img",{key:0,class:"rounded-xl w-full",src:r.data.avatar},null,8,J7)):(S(),P("img",Z7))],2),v("p",X7,[ht(re(r.data.name)+" ",1),r.data.job_title?(S(),P("span",Q7,", "+re(r.data.job_title),1)):ae("",!0)]),r.data.short_intro?(S(),P("p",e9,re(r.data.short_intro),1)):ae("",!0),v("div",t9,[v("p",{class:"p-0 text-slate-500 text-xl font-normal",innerHTML:r.data.description},null,8,n9)])])])])]),v("section",r9,[t[12]||(t[12]=v("div",{class:"absolute w-full h-full bg-yellow-50 md:hidden",style:{"clip-path":"ellipse(270% 90% at 38% 90%)"}},null,-1)),t[13]||(t[13]=v("div",{class:"absolute w-full h-full bg-yellow-50 hidden md:block lg:hidden",style:{"clip-path":"ellipse(188% 90% at 50% 90%)"}},null,-1)),t[14]||(t[14]=v("div",{class:"absolute w-full h-full bg-yellow-50 hidden lg:block xl:hidden",style:{"clip-path":"ellipse(128% 90% at 50% 90%)"}},null,-1)),t[15]||(t[15]=v("div",{class:"absolute w-full h-full bg-yellow-50 hidden xl:block",style:{"clip-path":"ellipse(93% 90% at 50% 90%)"}},null,-1)),v("div",s9,[t[11]||(t[11]=v("h2",{class:"text-dark-blue tablet:text-center text-[30px] md:text-4xl leading-7 md:leading-[44px] font-normal md:font-medium font-['Montserrat'] mb-10 tablet:mb-8"}," Contact details ",-1)),v("div",i9,[v("div",a9,[t[8]||(t[8]=v("h3",{class:"text-dark-blue text-[22px] md:text-4xl leading-7 md:leading-[44px] font-medium font-['Montserrat'] mb-4"}," Location ",-1)),t[9]||(t[9]=v("span",{class:"bg-dark-blue text-white py-1 px-4 text-sm font-semibold rounded-full whitespace-nowrap flex items-center gap-2 w-fit mb-6"},[v("img",{src:"/images/star-white.svg",class:"w-4 h-4"}),v("span",null,[ht(" Can teach Online "),v("span",{class:"font-sans"},"&"),ht(" In-person ")])],-1)),v("div",l9,[t[1]||(t[1]=v("img",{src:"/images/map.svg",class:"w-6 h-6"},null,-1)),v("div",null,[v("p",o9,re(r.data.location),1)])]),r.data.phone?(S(),P("div",u9,[t[2]||(t[2]=v("img",{src:"/images/phone.svg",class:"w-6 h-6"},null,-1)),v("a",{class:"text-dark-blue underline cursor-pointer text-xl font-semibold",href:r.data.phone},re(r.data.phone),9,c9)])):ae("",!0),v("div",d9,[t[3]||(t[3]=v("img",{src:"/images/message.svg",class:"w-6 h-6"},null,-1)),r.data.email?(S(),P("a",{key:0,class:"text-dark-blue underline cursor-pointer text-xl font-semibold",href:`mailto:${r.data.email}`},re(r.data.email),9,f9)):r.data.get_email_from?(S(),P("p",h9,re(r.data.get_email_from),1)):(S(),P("p",p9," Anonymous "))]),r.data.linkedin?(S(),P("div",m9,[t[4]||(t[4]=v("img",{src:"/images/social/linkedin.svg",class:"w-6 h-6"},null,-1)),v("a",{class:"text-dark-blue underline cursor-pointer text-xl font-semibold",href:r.data.linkedin}," LinkedIn ",8,g9)])):ae("",!0),r.data.facebook?(S(),P("div",v9,[t[5]||(t[5]=v("img",{src:"/images/social/facebook.svg",class:"w-6 h-6"},null,-1)),v("a",{class:"text-dark-blue underline cursor-pointer text-xl font-semibold",href:r.data.facebook}," Facebook ",8,y9)])):ae("",!0),r.data.website?(S(),P("div",_9,[t[6]||(t[6]=v("img",{src:"/images/profile.svg",class:"w-6 h-6"},null,-1)),v("a",{class:"text-dark-blue underline cursor-pointer text-xl font-semibold",href:r.data.website}," Website ",8,b9)])):ae("",!0),(o=r.data.availabilities)!=null&&o.length?(S(),P("div",w9," My availability ")):ae("",!0),(u=r.data.availabilities)!=null&&u.length?(S(),P("div",x9,[t[7]||(t[7]=v("img",{src:"/images/map.svg",class:"w-6 h-6"},null,-1)),v("div",k9,[(S(!0),P(Ve,null,Qe(r.data.availabilities,({dateText:d,timeText:h})=>(S(),P("div",S9,[v("p",T9,re(d),1),v("p",A9,re(h),1)]))),256))])])):ae("",!0)]),t[10]||(t[10]=v("div",{class:"flex-1"},[v("div",{id:"map-id",class:"relative z-50 w-full h-64 md:h-full md:min-h-96 rounded-2xl bg-gray-100"})],-1))])])])])}const E9=vt(I7,[["render",C9]]),O9={props:["user"],components:{ImageUpload:Ew,Flash:od},data(){return{avatar:this.user.avatar_path}},computed:{canUpdate(){return console.log("user",this.user),this.$authorize(e=>e.id===this.user.id)},hasAvatar(){return console.log(this.avatar),this.avatar.split("/").pop()!=="default.png"}},methods:{onLoad(e){this.persist(e.file)},persist(e){let t=new FormData;t.append("avatar",e),axios.post(`/api/users/${this.user.id}/avatar`,t).then(n=>{this.avatar=n.data.path,ei.emit("flash",{message:"Avatar uploaded!",level:"success"})})},remove(){console.log("delete me"),axios.delete("/api/users/avatar").then(()=>ei.emit("flash",{message:"Avatar Deleted!",level:"success"})),this.avatar="https://s3-eu-west-1.amazonaws.com/codeweek-dev/avatars/default.png"}}},M9={class:"flex flex-col tablet:flex-row tablet:items-center gap-6 tablet:gap-14"},R9={class:"flex"},D9={class:"relative"},P9=["src"],L9={key:0,method:"POST",enctype:"multipart/form-data",class:"absolute bottom-0 left-0"},I9={style:{display:"flex","align-items":"flex-end","margin-left":"-35px"}},N9={class:"text-white font-normal text-3xl tablet:font-medium tablet:text-5xl font-['Montserrat'] mb-6"};function V9(e,t,n,r,s,a){const o=at("image-upload");return S(),P("div",M9,[v("div",R9,[v("div",D9,[v("img",{src:s.avatar,class:"w-40 h-40 rounded-full border-4 border-solid border-dark-blue-300"},null,8,P9),a.canUpdate?(S(),P("form",L9,[he(o,{name:"avatar",class:"mr-1",onLoaded:a.onLoad},null,8,["onLoaded"])])):ae("",!0),v("div",I9,[Dn(v("button",{class:"absolute !bottom-0 !right-0 flex justify-center items-center !h-10 !w-10 !p-0 bg-[#FE6824] rounded-full !border-2 !border-solid !border-white",onClick:t[0]||(t[0]=(...u)=>a.remove&&a.remove(...u))},t[1]||(t[1]=[v("img",{class:"w-5 h-5",src:"/images/trash.svg"},null,-1)]),512),[[Vr,a.hasAvatar]])])])]),v("div",null,[v("h1",N9,re(n.user.fullName),1)])])}const F9=vt(O9,[["render",V9]]),$9={install(e){e.config.globalProperties.$authorize=function(...t){return window.App.signedIn?typeof t[0]=="string"?authorizations[t[0]](t[1]):t[0](window.App.user):!1}}},B9={data(){return{images:[{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/1e054358a7188baf8777a09512012cf16ab84970ef1c7610feb6dad13e504666",alt:"Consortium partner visual representation"},{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/2972cd5748880295748a9baa3e8fe3c996a0cdc09d86b46dbc72790d1cbc0655",alt:"Gallery image 1"},{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/fb06d640ec9446e59ef5e3fb63ceaaaf0b25d0117f209f11e3ab8e6ce3240acb",alt:"Gallery image 2"},{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/1e054358a7188baf8777a09512012cf16ab84970ef1c7610feb6dad13e504666",alt:"Gallery image 3"},{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/2972cd5748880295748a9baa3e8fe3c996a0cdc09d86b46dbc72790d1cbc0655",alt:"Gallery image 4"},{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/fb06d640ec9446e59ef5e3fb63ceaaaf0b25d0117f209f11e3ab8e6ce3240acb",alt:"Gallery image 5"}],currentIndex:0}},methods:{nextImage(){this.currentIndex=(this.currentIndex+1)%this.images.length,this.scrollToThumbnail()},prevImage(){this.currentIndex=this.currentIndex===0?this.images.length-1:this.currentIndex-1,this.scrollToThumbnail()},selectImage(e){this.currentIndex=e,this.scrollToThumbnail()},scrollToThumbnail(){const e=this.$refs.thumbnailGallery,t=e.clientWidth/3,n=Math.max(0,(this.currentIndex-1)*t);e.scrollTo({left:n,behavior:"smooth"})}}},H9={class:"flex flex-col pt-3.5"},U9={class:"flex py-4 md:py-20 relative flex-col mt-3.5 w-full bg-aqua max-md:max-w-full items-center"},j9={class:"z-0 flex flex-col items-start justify-between max-w-full gap-10 p-10 md:px-24"},q9={class:"grid w-full grid-cols-1 md:grid-cols-2 gap-x-8"},W9={class:"flex items-start justify-start"},Y9=["src","alt"],z9={class:"w-full overflow-hidden image-gallery"},K9={ref:"thumbnailGallery",class:"flex gap-4 overflow-x-auto flex-nowrap"},G9=["src","alt","onClick"],J9={class:"flex justify-end w-full mt-4 image-gallery-controls"},Z9={class:"flex flex-wrap items-center gap-5"};function X9(e,t,n,r,s,a){return S(),P("section",H9,[v("div",U9,[v("div",j9,[v("div",q9,[t[2]||(t[2]=wb('

Consortium Partner

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat.

Website link
',1)),v("div",W9,[v("img",{src:s.images[s.currentIndex].src,alt:s.images[s.currentIndex].alt,class:"main-image object-contain aspect-[1.63] w-full md:w-[480px] max-md:max-w-full"},null,8,Y9)])]),v("div",z9,[v("div",K9,[(S(!0),P(Ve,null,Qe(s.images,(o,u)=>(S(),P("img",{key:u,src:o.src,alt:"Gallery image "+(u+1),class:Be([{"border-2 border-orange-500":s.currentIndex===u},"thumbnail cursor-pointer object-contain shrink-0 aspect-[1.5] min-h-[120px] w-[calc(33.33%-8px)]"]),onClick:d=>a.selectImage(u)},null,10,G9))),128))],512)]),v("div",J9,[v("div",Z9,[v("button",{onClick:t[0]||(t[0]=(...o)=>a.prevImage&&a.prevImage(...o)),class:"flex group flex-col justify-center items-center self-stretch my-auto w-8 h-8 bg-orange-500 rounded min-h-[24px]"},t[3]||(t[3]=[v("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("rect",{width:"32",height:"32",rx:"4",class:"fill-primary group-hover:fill-secondary"}),v("path",{d:"M19 22L13 16L19 10",stroke:"white","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),v("button",{onClick:t[1]||(t[1]=(...o)=>a.nextImage&&a.nextImage(...o)),class:"flex group flex-col justify-center items-center self-stretch my-auto w-8 h-8 bg-orange-500 rounded min-h-[24px]"},t[4]||(t[4]=[v("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("rect",{width:"32",height:"32",rx:"4",class:"fill-primary group-hover:fill-secondary"}),v("path",{d:"M13 22L19 16L13 10",stroke:"white","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))])])])])])}const Q9=vt(B9,[["render",X9],["__scopeId","data-v-5aad3e31"]]),Ut=_c({});Ut.use($9);Ut.use(bL,{resolve:async e=>await Object.assign({"../lang/php_al.json":()=>Ft(()=>import("./php_al-2UTobk_f.js"),[]),"../lang/php_ba.json":()=>Ft(()=>import("./php_ba-CPGLiLsP.js"),[]),"../lang/php_bg.json":()=>Ft(()=>import("./php_bg-CYbF7ww8.js"),[]),"../lang/php_cs.json":()=>Ft(()=>import("./php_cs-XpK7lNvi.js"),[]),"../lang/php_da.json":()=>Ft(()=>import("./php_da-BEseQlDU.js"),[]),"../lang/php_de.json":()=>Ft(()=>import("./php_de-CzXI2k0W.js"),[]),"../lang/php_el.json":()=>Ft(()=>import("./php_el-BS7yRmOQ.js"),[]),"../lang/php_en.json":()=>Ft(()=>import("./php_en-Dv7P2FP8.js"),[]),"../lang/php_es.json":()=>Ft(()=>import("./php_es-D7voR6y5.js"),[]),"../lang/php_et.json":()=>Ft(()=>import("./php_et-Chp0g4xz.js"),[]),"../lang/php_fi.json":()=>Ft(()=>import("./php_fi-B-hRJcdv.js"),[]),"../lang/php_fr.json":()=>Ft(()=>import("./php_fr-Y2m0H0Sm.js"),[]),"../lang/php_hr.json":()=>Ft(()=>import("./php_hr-i9aPUxLz.js"),[]),"../lang/php_hu.json":()=>Ft(()=>import("./php_hu-CFyaU2zG.js"),[]),"../lang/php_it.json":()=>Ft(()=>import("./php_it-BpzSeT_O.js"),[]),"../lang/php_lt.json":()=>Ft(()=>import("./php_lt-Q6u33N4V.js"),[]),"../lang/php_lv.json":()=>Ft(()=>import("./php_lv-CRpOkzjp.js"),[]),"../lang/php_me.json":()=>Ft(()=>import("./php_me-BJi21XTV.js"),[]),"../lang/php_mk.json":()=>Ft(()=>import("./php_mk-BFRotNjT.js"),[]),"../lang/php_mt.json":()=>Ft(()=>import("./php_mt-CwuNMDGU.js"),[]),"../lang/php_nl.json":()=>Ft(()=>import("./php_nl-Cst4MfLg.js"),[]),"../lang/php_pl.json":()=>Ft(()=>import("./php_pl-C6kpsYXS.js"),[]),"../lang/php_pt.json":()=>Ft(()=>import("./php_pt-BfrNopBb.js"),[]),"../lang/php_ro.json":()=>Ft(()=>import("./php_ro-X4MIRHyb.js"),[]),"../lang/php_rs.json":()=>Ft(()=>import("./php_rs-CoGFZoCf.js"),[]),"../lang/php_sk.json":()=>Ft(()=>import("./php_sk-DyliPJki.js"),[]),"../lang/php_sl.json":()=>Ft(()=>import("./php_sl-DksL3eDV.js"),[]),"../lang/php_sv.json":()=>Ft(()=>import("./php_sv-Yzx2WIbY.js"),[]),"../lang/php_tr.json":()=>Ft(()=>import("./php_tr-CwvUgmBM.js"),[]),"../lang/php_ua.json":()=>Ft(()=>import("./php_ua-ByZxJ7Tj.js"),[])})[`../lang/${e}.json`]()});Ut.component("ActivityForm",h4);Ut.component("ResourceForm",TV);Ut.component("ResourceCard",B1);Ut.component("ResourcePill",$1);Ut.component("Pagination",ud);Ut.component("Singleselect",MV);Ut.component("Multiselect",IV);Ut.component("CountrySelect",BV);Ut.component("ModerateEvent",lF);Ut.component("ReportEvent",rH);Ut.component("AutocompleteGeo",MF);Ut.component("DateTime",WB);Ut.component("Question",r8);Ut.component("PictureForm",h8);Ut.component("Flash",od);Ut.component("InputTags",Y8);Ut.component("SearchPageComponent",KU);Ut.component("AvatarForm",F9);Ut.component("PartnerGallery",Q9);Ut.component("MatchMakingToolForm",L7);Ut.component("ToolCard",Pw);Ut.component("ToolDetailCard",E9);Ut.component("EventCard",Dw);Ut.component("EventDetail",kU);Ut.component("SelectField",Fo);Ut.mount("#app"); diff --git a/public/build/assets/app-CYhibInC.js b/public/build/assets/app-CYhibInC.js new file mode 100644 index 000000000..7513abd9f --- /dev/null +++ b/public/build/assets/app-CYhibInC.js @@ -0,0 +1,237 @@ +var sE=Object.defineProperty;var iE=(e,t,n)=>t in e?sE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ze=(e,t,n)=>iE(e,typeof t!="symbol"?t+"":t,n);const aE="modulepreload",lE=function(e){return"/build/"+e},Iv={},Ft=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),u=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.allSettled(n.map(d=>{if(d=lE(d),d in Iv)return;Iv[d]=!0;const h=d.endsWith(".css"),f=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${f}`))return;const p=document.createElement("link");if(p.rel=h?"stylesheet":aE,h||(p.as="script"),p.crossOrigin="",p.href=d,u&&p.setAttribute("nonce",u),document.head.appendChild(p),h)return new Promise((m,y)=>{p.addEventListener("load",m),p.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${d}`)))})}))}function a(o){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=o,window.dispatchEvent(u),!u.defaultPrevented)throw o}return s.then(o=>{for(const u of o||[])u.status==="rejected"&&a(u.reason);return t().catch(a)})};function x0(e,t){return function(){return e.apply(t,arguments)}}const{toString:oE}=Object.prototype,{getPrototypeOf:zh}=Object,Dc=(e=>t=>{const n=oE.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),_s=e=>(e=e.toLowerCase(),t=>Dc(t)===e),Pc=e=>t=>typeof t===e,{isArray:xl}=Array,co=Pc("undefined");function uE(e){return e!==null&&!co(e)&&e.constructor!==null&&!co(e.constructor)&&Br(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const k0=_s("ArrayBuffer");function cE(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&k0(e.buffer),t}const dE=Pc("string"),Br=Pc("function"),S0=Pc("number"),Lc=e=>e!==null&&typeof e=="object",fE=e=>e===!0||e===!1,qu=e=>{if(Dc(e)!=="object")return!1;const t=zh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},hE=_s("Date"),pE=_s("File"),mE=_s("Blob"),gE=_s("FileList"),vE=e=>Lc(e)&&Br(e.pipe),yE=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Br(e.append)&&((t=Dc(e))==="formdata"||t==="object"&&Br(e.toString)&&e.toString()==="[object FormData]"))},_E=_s("URLSearchParams"),[bE,wE,xE,kE]=["ReadableStream","Request","Response","Headers"].map(_s),SE=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Mo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),xl(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const ia=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window,A0=e=>!co(e)&&e!==ia;function oh(){const{caseless:e}=A0(this)&&this||{},t={},n=(r,s)=>{const a=e&&T0(t,s)||s;qu(t[a])&&qu(r)?t[a]=oh(t[a],r):qu(r)?t[a]=oh({},r):xl(r)?t[a]=r.slice():t[a]=r};for(let r=0,s=arguments.length;r(Mo(t,(s,a)=>{n&&Br(s)?e[a]=x0(s,n):e[a]=s},{allOwnKeys:r}),e),AE=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),CE=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},EE=(e,t,n,r)=>{let s,a,o;const u={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),a=s.length;a-- >0;)o=s[a],(!r||r(o,e,t))&&!u[o]&&(t[o]=e[o],u[o]=!0);e=n!==!1&&zh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},OE=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},ME=e=>{if(!e)return null;if(xl(e))return e;let t=e.length;if(!S0(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},RE=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&zh(Uint8Array)),DE=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const a=s.value;t.call(e,a[0],a[1])}},PE=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},LE=_s("HTMLFormElement"),IE=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Nv=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),NE=_s("RegExp"),C0=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Mo(n,(s,a)=>{let o;(o=t(s,a,e))!==!1&&(r[a]=o||s)}),Object.defineProperties(e,r)},VE=e=>{C0(e,(t,n)=>{if(Br(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Br(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},FE=(e,t)=>{const n={},r=s=>{s.forEach(a=>{n[a]=!0})};return xl(e)?r(e):r(String(e).split(t)),n},$E=()=>{},BE=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function HE(e){return!!(e&&Br(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const UE=e=>{const t=new Array(10),n=(r,s)=>{if(Lc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const a=xl(r)?[]:{};return Mo(r,(o,u)=>{const d=n(o,s+1);!co(d)&&(a[u]=d)}),t[s]=void 0,a}}return r};return n(e,0)},jE=_s("AsyncFunction"),WE=e=>e&&(Lc(e)||Br(e))&&Br(e.then)&&Br(e.catch),E0=((e,t)=>e?setImmediate:t?((n,r)=>(ia.addEventListener("message",({source:s,data:a})=>{s===ia&&a===n&&r.length&&r.shift()()},!1),s=>{r.push(s),ia.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Br(ia.postMessage)),qE=typeof queueMicrotask<"u"?queueMicrotask.bind(ia):typeof process<"u"&&process.nextTick||E0,_e={isArray:xl,isArrayBuffer:k0,isBuffer:uE,isFormData:yE,isArrayBufferView:cE,isString:dE,isNumber:S0,isBoolean:fE,isObject:Lc,isPlainObject:qu,isReadableStream:bE,isRequest:wE,isResponse:xE,isHeaders:kE,isUndefined:co,isDate:hE,isFile:pE,isBlob:mE,isRegExp:NE,isFunction:Br,isStream:vE,isURLSearchParams:_E,isTypedArray:RE,isFileList:gE,forEach:Mo,merge:oh,extend:TE,trim:SE,stripBOM:AE,inherits:CE,toFlatObject:EE,kindOf:Dc,kindOfTest:_s,endsWith:OE,toArray:ME,forEachEntry:DE,matchAll:PE,isHTMLForm:LE,hasOwnProperty:Nv,hasOwnProp:Nv,reduceDescriptors:C0,freezeMethods:VE,toObjectSet:FE,toCamelCase:IE,noop:$E,toFiniteNumber:BE,findKey:T0,global:ia,isContextDefined:A0,isSpecCompliantForm:HE,toJSONObject:UE,isAsyncFn:jE,isThenable:WE,setImmediate:E0,asap:qE};function ft(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}_e.inherits(ft,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_e.toJSONObject(this.config),code:this.code,status:this.status}}});const O0=ft.prototype,M0={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{M0[e]={value:e}});Object.defineProperties(ft,M0);Object.defineProperty(O0,"isAxiosError",{value:!0});ft.from=(e,t,n,r,s,a)=>{const o=Object.create(O0);return _e.toFlatObject(e,o,function(d){return d!==Error.prototype},u=>u!=="isAxiosError"),ft.call(o,e.message,t,n,r,s),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const YE=null;function uh(e){return _e.isPlainObject(e)||_e.isArray(e)}function R0(e){return _e.endsWith(e,"[]")?e.slice(0,-2):e}function Vv(e,t,n){return e?e.concat(t).map(function(s,a){return s=R0(s),!n&&a?"["+s+"]":s}).join(n?".":""):t}function zE(e){return _e.isArray(e)&&!e.some(uh)}const KE=_e.toFlatObject(_e,{},null,function(t){return/^is[A-Z]/.test(t)});function Ic(e,t,n){if(!_e.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=_e.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,E){return!_e.isUndefined(E[_])});const r=n.metaTokens,s=n.visitor||f,a=n.dots,o=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&_e.isSpecCompliantForm(t);if(!_e.isFunction(s))throw new TypeError("visitor must be a function");function h(w){if(w===null)return"";if(_e.isDate(w))return w.toISOString();if(!d&&_e.isBlob(w))throw new ft("Blob is not supported. Use a Buffer instead.");return _e.isArrayBuffer(w)||_e.isTypedArray(w)?d&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function f(w,_,E){let U=w;if(w&&!E&&typeof w=="object"){if(_e.endsWith(_,"{}"))_=r?_:_.slice(0,-2),w=JSON.stringify(w);else if(_e.isArray(w)&&zE(w)||(_e.isFileList(w)||_e.endsWith(_,"[]"))&&(U=_e.toArray(w)))return _=R0(_),U.forEach(function(x,A){!(_e.isUndefined(x)||x===null)&&t.append(o===!0?Vv([_],A,a):o===null?_:_+"[]",h(x))}),!1}return uh(w)?!0:(t.append(Vv(E,_,a),h(w)),!1)}const p=[],m=Object.assign(KE,{defaultVisitor:f,convertValue:h,isVisitable:uh});function y(w,_){if(!_e.isUndefined(w)){if(p.indexOf(w)!==-1)throw Error("Circular reference detected in "+_.join("."));p.push(w),_e.forEach(w,function(U,V){(!(_e.isUndefined(U)||U===null)&&s.call(t,U,_e.isString(V)?V.trim():V,_,m))===!0&&y(U,_?_.concat(V):[V])}),p.pop()}}if(!_e.isObject(e))throw new TypeError("data must be an object");return y(e),t}function Fv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Kh(e,t){this._pairs=[],e&&Ic(e,this,t)}const D0=Kh.prototype;D0.append=function(t,n){this._pairs.push([t,n])};D0.toString=function(t){const n=t?function(r){return t.call(this,r,Fv)}:Fv;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function GE(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function P0(e,t,n){if(!t)return e;const r=n&&n.encode||GE;_e.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let a;if(s?a=s(t,n):a=_e.isURLSearchParams(t)?t.toString():new Kh(t,n).toString(r),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class $v{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){_e.forEach(this.handlers,function(r){r!==null&&t(r)})}}const L0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},JE=typeof URLSearchParams<"u"?URLSearchParams:Kh,ZE=typeof FormData<"u"?FormData:null,XE=typeof Blob<"u"?Blob:null,QE={isBrowser:!0,classes:{URLSearchParams:JE,FormData:ZE,Blob:XE},protocols:["http","https","file","blob","url","data"]},Gh=typeof window<"u"&&typeof document<"u",ch=typeof navigator=="object"&&navigator||void 0,eO=Gh&&(!ch||["ReactNative","NativeScript","NS"].indexOf(ch.product)<0),tO=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",nO=Gh&&window.location.href||"http://localhost",rO=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Gh,hasStandardBrowserEnv:eO,hasStandardBrowserWebWorkerEnv:tO,navigator:ch,origin:nO},Symbol.toStringTag,{value:"Module"})),tr={...rO,...QE};function sO(e,t){return Ic(e,new tr.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,a){return tr.isNode&&_e.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function iO(e){return _e.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function aO(e){const t={},n=Object.keys(e);let r;const s=n.length;let a;for(r=0;r=n.length;return o=!o&&_e.isArray(s)?s.length:o,d?(_e.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!u):((!s[o]||!_e.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],a)&&_e.isArray(s[o])&&(s[o]=aO(s[o])),!u)}if(_e.isFormData(e)&&_e.isFunction(e.entries)){const n={};return _e.forEachEntry(e,(r,s)=>{t(iO(r),s,n,0)}),n}return null}function lO(e,t,n){if(_e.isString(e))try{return(t||JSON.parse)(e),_e.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ro={transitional:L0,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,a=_e.isObject(t);if(a&&_e.isHTMLForm(t)&&(t=new FormData(t)),_e.isFormData(t))return s?JSON.stringify(I0(t)):t;if(_e.isArrayBuffer(t)||_e.isBuffer(t)||_e.isStream(t)||_e.isFile(t)||_e.isBlob(t)||_e.isReadableStream(t))return t;if(_e.isArrayBufferView(t))return t.buffer;if(_e.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return sO(t,this.formSerializer).toString();if((u=_e.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Ic(u?{"files[]":t}:t,d&&new d,this.formSerializer)}}return a||s?(n.setContentType("application/json",!1),lO(t)):t}],transformResponse:[function(t){const n=this.transitional||Ro.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(_e.isResponse(t)||_e.isReadableStream(t))return t;if(t&&_e.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(u){if(o)throw u.name==="SyntaxError"?ft.from(u,ft.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tr.classes.FormData,Blob:tr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_e.forEach(["delete","get","head","post","put","patch"],e=>{Ro.headers[e]={}});const oO=_e.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),uO=e=>{const t={};let n,r,s;return e&&e.split(` +`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&oO[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Bv=Symbol("internals");function Wl(e){return e&&String(e).trim().toLowerCase()}function Yu(e){return e===!1||e==null?e:_e.isArray(e)?e.map(Yu):String(e)}function cO(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const dO=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Of(e,t,n,r,s){if(_e.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!_e.isString(t)){if(_e.isString(r))return t.indexOf(r)!==-1;if(_e.isRegExp(r))return r.test(t)}}function fO(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function hO(e,t){const n=_e.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,a,o){return this[r].call(this,t,s,a,o)},configurable:!0})})}let Tr=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function a(u,d,h){const f=Wl(d);if(!f)throw new Error("header name must be a non-empty string");const p=_e.findKey(s,f);(!p||s[p]===void 0||h===!0||h===void 0&&s[p]!==!1)&&(s[p||d]=Yu(u))}const o=(u,d)=>_e.forEach(u,(h,f)=>a(h,f,d));if(_e.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(_e.isString(t)&&(t=t.trim())&&!dO(t))o(uO(t),n);else if(_e.isHeaders(t))for(const[u,d]of t.entries())a(d,u,r);else t!=null&&a(n,t,r);return this}get(t,n){if(t=Wl(t),t){const r=_e.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return cO(s);if(_e.isFunction(n))return n.call(this,s,r);if(_e.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Wl(t),t){const r=_e.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Of(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function a(o){if(o=Wl(o),o){const u=_e.findKey(r,o);u&&(!n||Of(r,r[u],u,n))&&(delete r[u],s=!0)}}return _e.isArray(t)?t.forEach(a):a(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const a=n[r];(!t||Of(this,this[a],a,t,!0))&&(delete this[a],s=!0)}return s}normalize(t){const n=this,r={};return _e.forEach(this,(s,a)=>{const o=_e.findKey(r,a);if(o){n[o]=Yu(s),delete n[a];return}const u=t?fO(a):String(a).trim();u!==a&&delete n[a],n[u]=Yu(s),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return _e.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&_e.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Bv]=this[Bv]={accessors:{}}).accessors,s=this.prototype;function a(o){const u=Wl(o);r[u]||(hO(s,o),r[u]=!0)}return _e.isArray(t)?t.forEach(a):a(t),this}};Tr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);_e.reduceDescriptors(Tr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});_e.freezeMethods(Tr);function Mf(e,t){const n=this||Ro,r=t||n,s=Tr.from(r.headers);let a=r.data;return _e.forEach(e,function(u){a=u.call(n,a,s.normalize(),t?t.status:void 0)}),s.normalize(),a}function N0(e){return!!(e&&e.__CANCEL__)}function kl(e,t,n){ft.call(this,e??"canceled",ft.ERR_CANCELED,t,n),this.name="CanceledError"}_e.inherits(kl,ft,{__CANCEL__:!0});function V0(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ft("Request failed with status code "+n.status,[ft.ERR_BAD_REQUEST,ft.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function pO(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function mO(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,a=0,o;return t=t!==void 0?t:1e3,function(d){const h=Date.now(),f=r[a];o||(o=h),n[s]=d,r[s]=h;let p=a,m=0;for(;p!==s;)m+=n[p++],p=p%e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),h-o{n=f,s=null,a&&(clearTimeout(a),a=null),e.apply(null,h)};return[(...h)=>{const f=Date.now(),p=f-n;p>=r?o(h,f):(s=h,a||(a=setTimeout(()=>{a=null,o(s)},r-p)))},()=>s&&o(s)]}const nc=(e,t,n=3)=>{let r=0;const s=mO(50,250);return gO(a=>{const o=a.loaded,u=a.lengthComputable?a.total:void 0,d=o-r,h=s(d),f=o<=u;r=o;const p={loaded:o,total:u,progress:u?o/u:void 0,bytes:d,rate:h||void 0,estimated:h&&u&&f?(u-o)/h:void 0,event:a,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(p)},n)},Hv=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Uv=e=>(...t)=>_e.asap(()=>e(...t)),vO=tr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,tr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(tr.origin),tr.navigator&&/(msie|trident)/i.test(tr.navigator.userAgent)):()=>!0,yO=tr.hasStandardBrowserEnv?{write(e,t,n,r,s,a){const o=[e+"="+encodeURIComponent(t)];_e.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),_e.isString(r)&&o.push("path="+r),_e.isString(s)&&o.push("domain="+s),a===!0&&o.push("secure"),document.cookie=o.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 _O(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function bO(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function F0(e,t,n){let r=!_O(t);return e&&(r||n==!1)?bO(e,t):t}const jv=e=>e instanceof Tr?{...e}:e;function va(e,t){t=t||{};const n={};function r(h,f,p,m){return _e.isPlainObject(h)&&_e.isPlainObject(f)?_e.merge.call({caseless:m},h,f):_e.isPlainObject(f)?_e.merge({},f):_e.isArray(f)?f.slice():f}function s(h,f,p,m){if(_e.isUndefined(f)){if(!_e.isUndefined(h))return r(void 0,h,p,m)}else return r(h,f,p,m)}function a(h,f){if(!_e.isUndefined(f))return r(void 0,f)}function o(h,f){if(_e.isUndefined(f)){if(!_e.isUndefined(h))return r(void 0,h)}else return r(void 0,f)}function u(h,f,p){if(p in t)return r(h,f);if(p in e)return r(void 0,h)}const d={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:(h,f,p)=>s(jv(h),jv(f),p,!0)};return _e.forEach(Object.keys(Object.assign({},e,t)),function(f){const p=d[f]||s,m=p(e[f],t[f],f);_e.isUndefined(m)&&p!==u||(n[f]=m)}),n}const $0=e=>{const t=va({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:a,headers:o,auth:u}=t;t.headers=o=Tr.from(o),t.url=P0(F0(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&o.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let d;if(_e.isFormData(n)){if(tr.hasStandardBrowserEnv||tr.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((d=o.getContentType())!==!1){const[h,...f]=d?d.split(";").map(p=>p.trim()).filter(Boolean):[];o.setContentType([h||"multipart/form-data",...f].join("; "))}}if(tr.hasStandardBrowserEnv&&(r&&_e.isFunction(r)&&(r=r(t)),r||r!==!1&&vO(t.url))){const h=s&&a&&yO.read(a);h&&o.set(s,h)}return t},wO=typeof XMLHttpRequest<"u",xO=wO&&function(e){return new Promise(function(n,r){const s=$0(e);let a=s.data;const o=Tr.from(s.headers).normalize();let{responseType:u,onUploadProgress:d,onDownloadProgress:h}=s,f,p,m,y,w;function _(){y&&y(),w&&w(),s.cancelToken&&s.cancelToken.unsubscribe(f),s.signal&&s.signal.removeEventListener("abort",f)}let E=new XMLHttpRequest;E.open(s.method.toUpperCase(),s.url,!0),E.timeout=s.timeout;function U(){if(!E)return;const x=Tr.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),F={data:!u||u==="text"||u==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:x,config:e,request:E};V0(function($){n($),_()},function($){r($),_()},F),E=null}"onloadend"in E?E.onloadend=U:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(U)},E.onabort=function(){E&&(r(new ft("Request aborted",ft.ECONNABORTED,e,E)),E=null)},E.onerror=function(){r(new ft("Network Error",ft.ERR_NETWORK,e,E)),E=null},E.ontimeout=function(){let A=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const F=s.transitional||L0;s.timeoutErrorMessage&&(A=s.timeoutErrorMessage),r(new ft(A,F.clarifyTimeoutError?ft.ETIMEDOUT:ft.ECONNABORTED,e,E)),E=null},a===void 0&&o.setContentType(null),"setRequestHeader"in E&&_e.forEach(o.toJSON(),function(A,F){E.setRequestHeader(F,A)}),_e.isUndefined(s.withCredentials)||(E.withCredentials=!!s.withCredentials),u&&u!=="json"&&(E.responseType=s.responseType),h&&([m,w]=nc(h,!0),E.addEventListener("progress",m)),d&&E.upload&&([p,y]=nc(d),E.upload.addEventListener("progress",p),E.upload.addEventListener("loadend",y)),(s.cancelToken||s.signal)&&(f=x=>{E&&(r(!x||x.type?new kl(null,e,E):x),E.abort(),E=null)},s.cancelToken&&s.cancelToken.subscribe(f),s.signal&&(s.signal.aborted?f():s.signal.addEventListener("abort",f)));const V=pO(s.url);if(V&&tr.protocols.indexOf(V)===-1){r(new ft("Unsupported protocol "+V+":",ft.ERR_BAD_REQUEST,e));return}E.send(a||null)})},kO=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const a=function(h){if(!s){s=!0,u();const f=h instanceof Error?h:this.reason;r.abort(f instanceof ft?f:new kl(f instanceof Error?f.message:f))}};let o=t&&setTimeout(()=>{o=null,a(new ft(`timeout ${t} of ms exceeded`,ft.ETIMEDOUT))},t);const u=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(a):h.removeEventListener("abort",a)}),e=null)};e.forEach(h=>h.addEventListener("abort",a));const{signal:d}=r;return d.unsubscribe=()=>_e.asap(u),d}},SO=function*(e,t){let n=e.byteLength;if(n{const s=TO(e,t);let a=0,o,u=d=>{o||(o=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:h,value:f}=await s.next();if(h){u(),d.close();return}let p=f.byteLength;if(n){let m=a+=p;n(m)}d.enqueue(new Uint8Array(f))}catch(h){throw u(h),h}},cancel(d){return u(d),s.return()}},{highWaterMark:2})},Nc=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",B0=Nc&&typeof ReadableStream=="function",CO=Nc&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),H0=(e,...t)=>{try{return!!e(...t)}catch{return!1}},EO=B0&&H0(()=>{let e=!1;const t=new Request(tr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),qv=64*1024,dh=B0&&H0(()=>_e.isReadableStream(new Response("").body)),rc={stream:dh&&(e=>e.body)};Nc&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!rc[t]&&(rc[t]=_e.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ft(`Response type '${t}' is not supported`,ft.ERR_NOT_SUPPORT,r)})})})(new Response);const OO=async e=>{if(e==null)return 0;if(_e.isBlob(e))return e.size;if(_e.isSpecCompliantForm(e))return(await new Request(tr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(_e.isArrayBufferView(e)||_e.isArrayBuffer(e))return e.byteLength;if(_e.isURLSearchParams(e)&&(e=e+""),_e.isString(e))return(await CO(e)).byteLength},MO=async(e,t)=>{const n=_e.toFiniteNumber(e.getContentLength());return n??OO(t)},RO=Nc&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:a,timeout:o,onDownloadProgress:u,onUploadProgress:d,responseType:h,headers:f,withCredentials:p="same-origin",fetchOptions:m}=$0(e);h=h?(h+"").toLowerCase():"text";let y=kO([s,a&&a.toAbortSignal()],o),w;const _=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let E;try{if(d&&EO&&n!=="get"&&n!=="head"&&(E=await MO(f,r))!==0){let F=new Request(t,{method:"POST",body:r,duplex:"half"}),B;if(_e.isFormData(r)&&(B=F.headers.get("content-type"))&&f.setContentType(B),F.body){const[$,M]=Hv(E,nc(Uv(d)));r=Wv(F.body,qv,$,M)}}_e.isString(p)||(p=p?"include":"omit");const U="credentials"in Request.prototype;w=new Request(t,{...m,signal:y,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:r,duplex:"half",credentials:U?p:void 0});let V=await fetch(w);const x=dh&&(h==="stream"||h==="response");if(dh&&(u||x&&_)){const F={};["status","statusText","headers"].forEach(S=>{F[S]=V[S]});const B=_e.toFiniteNumber(V.headers.get("content-length")),[$,M]=u&&Hv(B,nc(Uv(u),!0))||[];V=new Response(Wv(V.body,qv,$,()=>{M&&M(),_&&_()}),F)}h=h||"text";let A=await rc[_e.findKey(rc,h)||"text"](V,e);return!x&&_&&_(),await new Promise((F,B)=>{V0(F,B,{data:A,headers:Tr.from(V.headers),status:V.status,statusText:V.statusText,config:e,request:w})})}catch(U){throw _&&_(),U&&U.name==="TypeError"&&/fetch/i.test(U.message)?Object.assign(new ft("Network Error",ft.ERR_NETWORK,e,w),{cause:U.cause||U}):ft.from(U,U&&U.code,e,w)}}),fh={http:YE,xhr:xO,fetch:RO};_e.forEach(fh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Yv=e=>`- ${e}`,DO=e=>_e.isFunction(e)||e===null||e===!1,U0={getAdapter:e=>{e=_e.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let a=0;a`adapter ${u} `+(d===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since : +`+a.map(Yv).join(` +`):" "+Yv(a[0]):"as no adapter specified";throw new ft("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:fh};function Rf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new kl(null,e)}function zv(e){return Rf(e),e.headers=Tr.from(e.headers),e.data=Mf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),U0.getAdapter(e.adapter||Ro.adapter)(e).then(function(r){return Rf(e),r.data=Mf.call(e,e.transformResponse,r),r.headers=Tr.from(r.headers),r},function(r){return N0(r)||(Rf(e),r&&r.response&&(r.response.data=Mf.call(e,e.transformResponse,r.response),r.response.headers=Tr.from(r.response.headers))),Promise.reject(r)})}const j0="1.8.4",Vc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Vc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Kv={};Vc.transitional=function(t,n,r){function s(a,o){return"[Axios v"+j0+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,u)=>{if(t===!1)throw new ft(s(o," has been removed"+(n?" in "+n:"")),ft.ERR_DEPRECATED);return n&&!Kv[o]&&(Kv[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,u):!0}};Vc.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function PO(e,t,n){if(typeof e!="object")throw new ft("options must be an object",ft.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const a=r[s],o=t[a];if(o){const u=e[a],d=u===void 0||o(u,a,e);if(d!==!0)throw new ft("option "+a+" must be "+d,ft.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ft("Unknown option "+a,ft.ERR_BAD_OPTION)}}const zu={assertOptions:PO,validators:Vc},Ts=zu.validators;let ua=class{constructor(t){this.defaults=t,this.interceptors={request:new $v,response:new $v}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const a=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=va(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:a}=n;r!==void 0&&zu.assertOptions(r,{silentJSONParsing:Ts.transitional(Ts.boolean),forcedJSONParsing:Ts.transitional(Ts.boolean),clarifyTimeoutError:Ts.transitional(Ts.boolean)},!1),s!=null&&(_e.isFunction(s)?n.paramsSerializer={serialize:s}:zu.assertOptions(s,{encode:Ts.function,serialize:Ts.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),zu.assertOptions(n,{baseUrl:Ts.spelling("baseURL"),withXsrfToken:Ts.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&_e.merge(a.common,a[n.method]);a&&_e.forEach(["delete","get","head","post","put","patch","common"],w=>{delete a[w]}),n.headers=Tr.concat(o,a);const u=[];let d=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(d=d&&_.synchronous,u.unshift(_.fulfilled,_.rejected))});const h=[];this.interceptors.response.forEach(function(_){h.push(_.fulfilled,_.rejected)});let f,p=0,m;if(!d){const w=[zv.bind(this),void 0];for(w.unshift.apply(w,u),w.push.apply(w,h),m=w.length,f=Promise.resolve(n);p{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](s);r._listeners=null}),this.promise.then=s=>{let a;const o=new Promise(u=>{r.subscribe(u),a=u}).then(s);return o.cancel=function(){r.unsubscribe(a)},o},t(function(a,o,u){r.reason||(r.reason=new kl(a,o,u),n(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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new W0(function(s){t=s}),cancel:t}}};function IO(e){return function(n){return e.apply(null,n)}}function NO(e){return _e.isObject(e)&&e.isAxiosError===!0}const hh={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(hh).forEach(([e,t])=>{hh[t]=e});function q0(e){const t=new ua(e),n=x0(ua.prototype.request,t);return _e.extend(n,ua.prototype,t,{allOwnKeys:!0}),_e.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return q0(va(e,s))},n}const xt=q0(Ro);xt.Axios=ua;xt.CanceledError=kl;xt.CancelToken=LO;xt.isCancel=N0;xt.VERSION=j0;xt.toFormData=Ic;xt.AxiosError=ft;xt.Cancel=xt.CanceledError;xt.all=function(t){return Promise.all(t)};xt.spread=IO;xt.isAxiosError=NO;xt.mergeConfig=va;xt.AxiosHeaders=Tr;xt.formToJSON=e=>I0(_e.isHTMLForm(e)?new FormData(e):e);xt.getAdapter=U0.getAdapter;xt.HttpStatusCode=hh;xt.default=xt;const{Axios:X9,AxiosError:Q9,CanceledError:ej,isCancel:tj,CancelToken:nj,VERSION:rj,all:sj,Cancel:ij,isAxiosError:aj,spread:lj,toFormData:oj,AxiosHeaders:uj,HttpStatusCode:cj,formToJSON:dj,getAdapter:fj,mergeConfig:hj}=xt;window.axios=xt;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";let Gv=document.head.querySelector('meta[name="csrf-token"]');Gv?window.axios.defaults.headers.common["X-CSRF-TOKEN"]=Gv.content:console.error("CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token");/** +* @vue/shared v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function jr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Tt={},tl=[],Yn=()=>{},Zl=()=>!1,wa=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Jh=e=>e.startsWith("onUpdate:"),At=Object.assign,Zh=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},VO=Object.prototype.hasOwnProperty,Dt=(e,t)=>VO.call(e,t),Ye=Array.isArray,nl=e=>Sl(e)==="[object Map]",xa=e=>Sl(e)==="[object Set]",Jv=e=>Sl(e)==="[object Date]",FO=e=>Sl(e)==="[object RegExp]",st=e=>typeof e=="function",ct=e=>typeof e=="string",Cr=e=>typeof e=="symbol",Ht=e=>e!==null&&typeof e=="object",Xh=e=>(Ht(e)||st(e))&&st(e.then)&&st(e.catch),Y0=Object.prototype.toString,Sl=e=>Y0.call(e),$O=e=>Sl(e).slice(8,-1),Fc=e=>Sl(e)==="[object Object]",Qh=e=>ct(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ai=jr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),BO=jr("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),$c=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},HO=/-(\w)/g,Jt=$c(e=>e.replace(HO,(t,n)=>n?n.toUpperCase():"")),UO=/\B([A-Z])/g,xr=$c(e=>e.replace(UO,"-$1").toLowerCase()),ka=$c(e=>e.charAt(0).toUpperCase()+e.slice(1)),rl=$c(e=>e?`on${ka(e)}`:""),dr=(e,t)=>!Object.is(e,t),sl=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},sc=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ic=e=>{const t=ct(e)?Number(e):NaN;return isNaN(t)?e:t};let Zv;const Bc=()=>Zv||(Zv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"||typeof window<"u"?window:{});function jO(e,t){return e+JSON.stringify(t,(n,r)=>typeof r=="function"?r.toString():r)}const WO="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",qO=jr(WO);function bn(e){if(Ye(e)){const t={};for(let n=0;n{if(n){const r=n.split(zO);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function $e(e){let t="";if(ct(e))t=e;else if(Ye(e))for(let n=0;nPi(n,t))}const J0=e=>!!(e&&e.__v_isRef===!0),re=e=>ct(e)?e:e==null?"":Ye(e)||Ht(e)&&(e.toString===Y0||!st(e.toString))?J0(e)?re(e.value):JSON.stringify(e,Z0,2):String(e),Z0=(e,t)=>J0(t)?Z0(e,t.value):nl(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],a)=>(n[Df(r,a)+" =>"]=s,n),{})}:xa(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Df(n))}:Cr(t)?Df(t):Ht(t)&&!Ye(t)&&!Fc(t)?String(t):t,Df=(e,t="")=>{var n;return Cr(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let ur;class ep{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ur,!t&&ur&&(this.index=(ur.scopes||(ur.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;if(to){let t=to;for(to=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;eo;){let t=eo;for(eo=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function t_(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function n_(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),sp(r),lM(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function ph(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(r_(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function r_(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ho))return;e.globalVersion=ho;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!ph(e)){e.flags&=-3;return}const n=zt,r=ps;zt=e,ps=!0;try{t_(e);const s=e.fn(e._value);(t.version===0||dr(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{zt=n,ps=r,n_(e),e.flags&=-3}}function sp(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let a=n.computed.deps;a;a=a.nextDep)sp(a,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function lM(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function oM(e,t){e.effect instanceof fo&&(e=e.effect.fn);const n=new fo(e);t&&At(n,t);try{n.run()}catch(s){throw n.stop(),s}const r=n.run.bind(n);return r.effect=n,r}function uM(e){e.effect.stop()}let ps=!0;const s_=[];function Fi(){s_.push(ps),ps=!1}function $i(){const e=s_.pop();ps=e===void 0?!0:e}function Xv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=zt;zt=void 0;try{t()}finally{zt=n}}}let ho=0;class cM{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Uc{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!zt||!ps||zt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==zt)n=this.activeLink=new cM(zt,this),zt.deps?(n.prevDep=zt.depsTail,zt.depsTail.nextDep=n,zt.depsTail=n):zt.deps=zt.depsTail=n,i_(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=zt.depsTail,n.nextDep=void 0,zt.depsTail.nextDep=n,zt.depsTail=n,zt.deps===n&&(zt.deps=r)}return n}trigger(t){this.version++,ho++,this.notify(t)}notify(t){np();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{rp()}}}function i_(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)i_(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ac=new WeakMap,ca=Symbol(""),mh=Symbol(""),po=Symbol("");function Qn(e,t,n){if(ps&&zt){let r=ac.get(e);r||ac.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Uc),s.map=r,s.key=n),s.track()}}function Gs(e,t,n,r,s,a){const o=ac.get(e);if(!o){ho++;return}const u=d=>{d&&d.trigger()};if(np(),t==="clear")o.forEach(u);else{const d=Ye(e),h=d&&Qh(n);if(d&&n==="length"){const f=Number(r);o.forEach((p,m)=>{(m==="length"||m===po||!Cr(m)&&m>=f)&&u(p)})}else switch((n!==void 0||o.has(void 0))&&u(o.get(n)),h&&u(o.get(po)),t){case"add":d?h&&u(o.get("length")):(u(o.get(ca)),nl(e)&&u(o.get(mh)));break;case"delete":d||(u(o.get(ca)),nl(e)&&u(o.get(mh)));break;case"set":nl(e)&&u(o.get(ca));break}}rp()}function dM(e,t){const n=ac.get(e);return n&&n.get(t)}function Ua(e){const t=Mt(e);return t===e?t:(Qn(t,"iterate",po),Ur(e)?t:t.map(er))}function jc(e){return Qn(e=Mt(e),"iterate",po),e}const fM={__proto__:null,[Symbol.iterator](){return Lf(this,Symbol.iterator,er)},concat(...e){return Ua(this).concat(...e.map(t=>Ye(t)?Ua(t):t))},entries(){return Lf(this,"entries",e=>(e[1]=er(e[1]),e))},every(e,t){return Ws(this,"every",e,t,void 0,arguments)},filter(e,t){return Ws(this,"filter",e,t,n=>n.map(er),arguments)},find(e,t){return Ws(this,"find",e,t,er,arguments)},findIndex(e,t){return Ws(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ws(this,"findLast",e,t,er,arguments)},findLastIndex(e,t){return Ws(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ws(this,"forEach",e,t,void 0,arguments)},includes(...e){return If(this,"includes",e)},indexOf(...e){return If(this,"indexOf",e)},join(e){return Ua(this).join(e)},lastIndexOf(...e){return If(this,"lastIndexOf",e)},map(e,t){return Ws(this,"map",e,t,void 0,arguments)},pop(){return ql(this,"pop")},push(...e){return ql(this,"push",e)},reduce(e,...t){return Qv(this,"reduce",e,t)},reduceRight(e,...t){return Qv(this,"reduceRight",e,t)},shift(){return ql(this,"shift")},some(e,t){return Ws(this,"some",e,t,void 0,arguments)},splice(...e){return ql(this,"splice",e)},toReversed(){return Ua(this).toReversed()},toSorted(e){return Ua(this).toSorted(e)},toSpliced(...e){return Ua(this).toSpliced(...e)},unshift(...e){return ql(this,"unshift",e)},values(){return Lf(this,"values",er)}};function Lf(e,t,n){const r=jc(e),s=r[t]();return r!==e&&!Ur(e)&&(s._next=s.next,s.next=()=>{const a=s._next();return a.value&&(a.value=n(a.value)),a}),s}const hM=Array.prototype;function Ws(e,t,n,r,s,a){const o=jc(e),u=o!==e&&!Ur(e),d=o[t];if(d!==hM[t]){const p=d.apply(e,a);return u?er(p):p}let h=n;o!==e&&(u?h=function(p,m){return n.call(this,er(p),m,e)}:n.length>2&&(h=function(p,m){return n.call(this,p,m,e)}));const f=d.call(o,h,r);return u&&s?s(f):f}function Qv(e,t,n,r){const s=jc(e);let a=n;return s!==e&&(Ur(e)?n.length>3&&(a=function(o,u,d){return n.call(this,o,u,d,e)}):a=function(o,u,d){return n.call(this,o,er(u),d,e)}),s[t](a,...r)}function If(e,t,n){const r=Mt(e);Qn(r,"iterate",po);const s=r[t](...n);return(s===-1||s===!1)&&Yc(n[0])?(n[0]=Mt(n[0]),r[t](...n)):s}function ql(e,t,n=[]){Fi(),np();const r=Mt(e)[t].apply(e,n);return rp(),$i(),r}const pM=jr("__proto__,__v_isRef,__isVue"),a_=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Cr));function mM(e){Cr(e)||(e=String(e));const t=Mt(this);return Qn(t,"has",e),t.hasOwnProperty(e)}class l_{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,a=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return a;if(n==="__v_raw")return r===(s?a?h_:f_:a?d_:c_).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=Ye(t);if(!s){let d;if(o&&(d=fM[n]))return d;if(n==="hasOwnProperty")return mM}const u=Reflect.get(t,n,Tn(t)?t:r);return(Cr(n)?a_.has(n):pM(n))||(s||Qn(t,"get",n),a)?u:Tn(u)?o&&Qh(n)?u:u.value:Ht(u)?s?ip(u):Hr(u):u}}class o_ extends l_{constructor(t=!1){super(!1,t)}set(t,n,r,s){let a=t[n];if(!this._isShallow){const d=Li(a);if(!Ur(r)&&!Li(r)&&(a=Mt(a),r=Mt(r)),!Ye(t)&&Tn(a)&&!Tn(r))return d?!1:(a.value=r,!0)}const o=Ye(t)&&Qh(n)?Number(n)e,Mu=e=>Reflect.getPrototypeOf(e);function bM(e,t,n){return function(...r){const s=this.__v_raw,a=Mt(s),o=nl(a),u=e==="entries"||e===Symbol.iterator&&o,d=e==="keys"&&o,h=s[e](...r),f=n?gh:t?vh:er;return!t&&Qn(a,"iterate",d?mh:ca),{next(){const{value:p,done:m}=h.next();return m?{value:p,done:m}:{value:u?[f(p[0]),f(p[1])]:f(p),done:m}},[Symbol.iterator](){return this}}}}function Ru(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function wM(e,t){const n={get(s){const a=this.__v_raw,o=Mt(a),u=Mt(s);e||(dr(s,u)&&Qn(o,"get",s),Qn(o,"get",u));const{has:d}=Mu(o),h=t?gh:e?vh:er;if(d.call(o,s))return h(a.get(s));if(d.call(o,u))return h(a.get(u));a!==o&&a.get(s)},get size(){const s=this.__v_raw;return!e&&Qn(Mt(s),"iterate",ca),Reflect.get(s,"size",s)},has(s){const a=this.__v_raw,o=Mt(a),u=Mt(s);return e||(dr(s,u)&&Qn(o,"has",s),Qn(o,"has",u)),s===u?a.has(s):a.has(s)||a.has(u)},forEach(s,a){const o=this,u=o.__v_raw,d=Mt(u),h=t?gh:e?vh:er;return!e&&Qn(d,"iterate",ca),u.forEach((f,p)=>s.call(a,h(f),h(p),o))}};return At(n,e?{add:Ru("add"),set:Ru("set"),delete:Ru("delete"),clear:Ru("clear")}:{add(s){!t&&!Ur(s)&&!Li(s)&&(s=Mt(s));const a=Mt(this);return Mu(a).has.call(a,s)||(a.add(s),Gs(a,"add",s,s)),this},set(s,a){!t&&!Ur(a)&&!Li(a)&&(a=Mt(a));const o=Mt(this),{has:u,get:d}=Mu(o);let h=u.call(o,s);h||(s=Mt(s),h=u.call(o,s));const f=d.call(o,s);return o.set(s,a),h?dr(a,f)&&Gs(o,"set",s,a):Gs(o,"add",s,a),this},delete(s){const a=Mt(this),{has:o,get:u}=Mu(a);let d=o.call(a,s);d||(s=Mt(s),d=o.call(a,s)),u&&u.call(a,s);const h=a.delete(s);return d&&Gs(a,"delete",s,void 0),h},clear(){const s=Mt(this),a=s.size!==0,o=s.clear();return a&&Gs(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=bM(s,e,t)}),n}function Wc(e,t){const n=wM(e,t);return(r,s,a)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(Dt(n,s)&&s in r?n:r,s,a)}const xM={get:Wc(!1,!1)},kM={get:Wc(!1,!0)},SM={get:Wc(!0,!1)},TM={get:Wc(!0,!0)},c_=new WeakMap,d_=new WeakMap,f_=new WeakMap,h_=new WeakMap;function AM(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function CM(e){return e.__v_skip||!Object.isExtensible(e)?0:AM($O(e))}function Hr(e){return Li(e)?e:qc(e,!1,gM,xM,c_)}function p_(e){return qc(e,!1,yM,kM,d_)}function ip(e){return qc(e,!0,vM,SM,f_)}function EM(e){return qc(e,!0,_M,TM,h_)}function qc(e,t,n,r,s){if(!Ht(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=s.get(e);if(a)return a;const o=CM(e);if(o===0)return e;const u=new Proxy(e,o===2?r:n);return s.set(e,u),u}function Ci(e){return Li(e)?Ci(e.__v_raw):!!(e&&e.__v_isReactive)}function Li(e){return!!(e&&e.__v_isReadonly)}function Ur(e){return!!(e&&e.__v_isShallow)}function Yc(e){return e?!!e.__v_raw:!1}function Mt(e){const t=e&&e.__v_raw;return t?Mt(t):e}function m_(e){return!Dt(e,"__v_skip")&&Object.isExtensible(e)&&z0(e,"__v_skip",!0),e}const er=e=>Ht(e)?Hr(e):e,vh=e=>Ht(e)?ip(e):e;function Tn(e){return e?e.__v_isRef===!0:!1}function fe(e){return v_(e,!1)}function g_(e){return v_(e,!0)}function v_(e,t){return Tn(e)?e:new OM(e,t)}class OM{constructor(t,n){this.dep=new Uc,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Mt(t),this._value=n?t:er(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Ur(t)||Li(t);t=r?t:Mt(t),dr(t,n)&&(this._rawValue=t,this._value=r?t:er(t),this.dep.trigger())}}function MM(e){e.dep&&e.dep.trigger()}function Z(e){return Tn(e)?e.value:e}function RM(e){return st(e)?e():Z(e)}const DM={get:(e,t,n)=>t==="__v_raw"?e:Z(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Tn(s)&&!Tn(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function ap(e){return Ci(e)?e:new Proxy(e,DM)}class PM{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Uc,{get:r,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function y_(e){return new PM(e)}function LM(e){const t=Ye(e)?new Array(e.length):{};for(const n in e)t[n]=__(e,n);return t}class IM{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return dM(Mt(this._object),this._key)}}class NM{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ll(e,t,n){return Tn(e)?e:st(e)?new NM(e):Ht(e)&&arguments.length>1?__(e,t,n):fe(e)}function __(e,t,n){const r=e[t];return Tn(r)?r:new IM(e,t,n)}class VM{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Uc(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ho-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&zt!==this)return e_(this,!0),!0}get value(){const t=this.dep.track();return r_(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function FM(e,t,n=!1){let r,s;return st(e)?r=e:(r=e.get,s=e.set),new VM(r,s,n)}const $M={GET:"get",HAS:"has",ITERATE:"iterate"},BM={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},Du={},lc=new WeakMap;let bi;function HM(){return bi}function b_(e,t=!1,n=bi){if(n){let r=lc.get(n);r||lc.set(n,r=[]),r.push(e)}}function UM(e,t,n=Tt){const{immediate:r,deep:s,once:a,scheduler:o,augmentJob:u,call:d}=n,h=A=>s?A:Ur(A)||s===!1||s===0?Js(A,1):Js(A);let f,p,m,y,w=!1,_=!1;if(Tn(e)?(p=()=>e.value,w=Ur(e)):Ci(e)?(p=()=>h(e),w=!0):Ye(e)?(_=!0,w=e.some(A=>Ci(A)||Ur(A)),p=()=>e.map(A=>{if(Tn(A))return A.value;if(Ci(A))return h(A);if(st(A))return d?d(A,2):A()})):st(e)?t?p=d?()=>d(e,2):e:p=()=>{if(m){Fi();try{m()}finally{$i()}}const A=bi;bi=f;try{return d?d(e,3,[y]):e(y)}finally{bi=A}}:p=Yn,t&&s){const A=p,F=s===!0?1/0:s;p=()=>Js(A(),F)}const E=tp(),U=()=>{f.stop(),E&&E.active&&Zh(E.effects,f)};if(a&&t){const A=t;t=(...F)=>{A(...F),U()}}let V=_?new Array(e.length).fill(Du):Du;const x=A=>{if(!(!(f.flags&1)||!f.dirty&&!A))if(t){const F=f.run();if(s||w||(_?F.some((B,$)=>dr(B,V[$])):dr(F,V))){m&&m();const B=bi;bi=f;try{const $=[F,V===Du?void 0:_&&V[0]===Du?[]:V,y];d?d(t,3,$):t(...$),V=F}finally{bi=B}}}else f.run()};return u&&u(x),f=new fo(p),f.scheduler=o?()=>o(x,!1):x,y=A=>b_(A,!1,f),m=f.onStop=()=>{const A=lc.get(f);if(A){if(d)d(A,4);else for(const F of A)F();lc.delete(f)}},t?r?x(!0):V=f.run():o?o(x.bind(null,!0),!0):f.run(),U.pause=f.pause.bind(f),U.resume=f.resume.bind(f),U.stop=U,U}function Js(e,t=1/0,n){if(t<=0||!Ht(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Tn(e))Js(e.value,t,n);else if(Ye(e))for(let r=0;r{Js(r,t,n)});else if(Fc(e)){for(const r in e)Js(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Js(e[r],t,n)}return e}/** +* @vue/runtime-core v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const w_=[];function jM(e){w_.push(e)}function WM(){w_.pop()}function qM(e,t){}const YM={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},zM={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Tl(e,t,n,r){try{return r?e(...r):e()}catch(s){Sa(s,t,n)}}function rs(e,t,n,r){if(st(e)){const s=Tl(e,t,n,r);return s&&Xh(s)&&s.catch(a=>{Sa(a,t,n)}),s}if(Ye(e)){const s=[];for(let a=0;a>>1,s=fr[r],a=go(s);a=go(n)?fr.push(e):fr.splice(GM(t),0,e),e.flags|=1,k_()}}function k_(){oc||(oc=x_.then(S_))}function mo(e){Ye(e)?il.push(...e):wi&&e.id===-1?wi.splice(Ga+1,0,e):e.flags&1||(il.push(e),e.flags|=1),k_()}function ey(e,t,n=Cs+1){for(;ngo(n)-go(r));if(il.length=0,wi){wi.push(...t);return}for(wi=t,Ga=0;Gae.id==null?e.flags&2?-1:1/0:e.id;function S_(e){try{for(Cs=0;CsJa.emit(s,...a)),Pu=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{T_(a,t)}),setTimeout(()=>{Ja||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Pu=[])},3e3)):Pu=[]}let In=null,zc=null;function vo(e){const t=In;return In=e,zc=e&&e.type.__scopeId||null,t}function JM(e){zc=e}function ZM(){zc=null}const XM=e=>Te;function Te(e,t=In,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Th(-1);const a=vo(t);let o;try{o=e(...s)}finally{vo(a),r._d&&Th(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Dn(e,t){if(In===null)return e;const n=Lo(In),r=e.dirs||(e.dirs=[]);for(let s=0;se.__isTeleport,no=e=>e&&(e.disabled||e.disabled===""),ty=e=>e&&(e.defer||e.defer===""),ny=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ry=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,yh=(e,t)=>{const n=e&&e.to;return ct(n)?t?t(n):null:n},E_={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,a,o,u,d,h){const{mc:f,pc:p,pbc:m,o:{insert:y,querySelector:w,createText:_,createComment:E}}=h,U=no(t.props);let{shapeFlag:V,children:x,dynamicChildren:A}=t;if(e==null){const F=t.el=_(""),B=t.anchor=_("");y(F,n,r),y(B,n,r);const $=(S,H)=>{V&16&&(s&&s.isCE&&(s.ce._teleportTarget=S),f(x,S,H,s,a,o,u,d))},M=()=>{const S=t.target=yh(t.props,w),H=M_(S,t,_,y);S&&(o!=="svg"&&ny(S)?o="svg":o!=="mathml"&&ry(S)&&(o="mathml"),U||($(S,H),Ku(t,!1)))};U&&($(n,B),Ku(t,!0)),ty(t.props)?Mn(()=>{M(),t.el.__isMounted=!0},a):M()}else{if(ty(t.props)&&!e.el.__isMounted){Mn(()=>{E_.process(e,t,n,r,s,a,o,u,d,h),delete e.el.__isMounted},a);return}t.el=e.el,t.targetStart=e.targetStart;const F=t.anchor=e.anchor,B=t.target=e.target,$=t.targetAnchor=e.targetAnchor,M=no(e.props),S=M?n:B,H=M?F:$;if(o==="svg"||ny(B)?o="svg":(o==="mathml"||ry(B))&&(o="mathml"),A?(m(e.dynamicChildren,A,S,s,a,o,u),gp(e,t,!0)):d||p(e,t,S,H,s,a,o,u,!1),U)M?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Lu(t,n,F,h,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const se=t.target=yh(t.props,w);se&&Lu(t,se,null,h,0)}else M&&Lu(t,B,$,h,1);Ku(t,U)}},remove(e,t,n,{um:r,o:{remove:s}},a){const{shapeFlag:o,children:u,anchor:d,targetStart:h,targetAnchor:f,target:p,props:m}=e;if(p&&(s(h),s(f)),a&&s(d),o&16){const y=a||!no(m);for(let w=0;w{e.isMounted=!0}),Xc(()=>{e.isUnmounting=!0}),e}const Qr=[Function,Array],up={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Qr,onEnter:Qr,onAfterEnter:Qr,onEnterCancelled:Qr,onBeforeLeave:Qr,onLeave:Qr,onAfterLeave:Qr,onLeaveCancelled:Qr,onBeforeAppear:Qr,onAppear:Qr,onAfterAppear:Qr,onAppearCancelled:Qr},R_=e=>{const t=e.subTree;return t.component?R_(t.component):t},eR={name:"BaseTransition",props:up,setup(e,{slots:t}){const n=ss(),r=op();return()=>{const s=t.default&&Kc(t.default(),!0);if(!s||!s.length)return;const a=D_(s),o=Mt(e),{mode:u}=o;if(r.isLeaving)return Nf(a);const d=sy(a);if(!d)return Nf(a);let h=ol(d,o,r,n,p=>h=p);d.type!==An&&ti(d,h);let f=n.subTree&&sy(n.subTree);if(f&&f.type!==An&&!ds(d,f)&&R_(n).type!==An){let p=ol(f,o,r,n);if(ti(f,p),u==="out-in"&&d.type!==An)return r.isLeaving=!0,p.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete p.afterLeave,f=void 0},Nf(a);u==="in-out"&&d.type!==An?p.delayLeave=(m,y,w)=>{const _=L_(r,f);_[String(f.key)]=f,m[xi]=()=>{y(),m[xi]=void 0,delete h.delayedLeave,f=void 0},h.delayedLeave=()=>{w(),delete h.delayedLeave,f=void 0}}:f=void 0}else f&&(f=void 0);return a}}};function D_(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==An){t=n;break}}return t}const P_=eR;function L_(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ol(e,t,n,r,s){const{appear:a,mode:o,persisted:u=!1,onBeforeEnter:d,onEnter:h,onAfterEnter:f,onEnterCancelled:p,onBeforeLeave:m,onLeave:y,onAfterLeave:w,onLeaveCancelled:_,onBeforeAppear:E,onAppear:U,onAfterAppear:V,onAppearCancelled:x}=t,A=String(e.key),F=L_(n,e),B=(S,H)=>{S&&rs(S,r,9,H)},$=(S,H)=>{const se=H[1];B(S,H),Ye(S)?S.every(ee=>ee.length<=1)&&se():S.length<=1&&se()},M={mode:o,persisted:u,beforeEnter(S){let H=d;if(!n.isMounted)if(a)H=E||d;else return;S[xi]&&S[xi](!0);const se=F[A];se&&ds(e,se)&&se.el[xi]&&se.el[xi](),B(H,[S])},enter(S){let H=h,se=f,ee=p;if(!n.isMounted)if(a)H=U||h,se=V||f,ee=x||p;else return;let ne=!1;const J=S[Iu]=P=>{ne||(ne=!0,P?B(ee,[S]):B(se,[S]),M.delayedLeave&&M.delayedLeave(),S[Iu]=void 0)};H?$(H,[S,J]):J()},leave(S,H){const se=String(e.key);if(S[Iu]&&S[Iu](!0),n.isUnmounting)return H();B(m,[S]);let ee=!1;const ne=S[xi]=J=>{ee||(ee=!0,H(),J?B(_,[S]):B(w,[S]),S[xi]=void 0,F[se]===e&&delete F[se])};F[se]=e,y?$(y,[S,ne]):ne()},clone(S){const H=ol(S,t,n,r,s);return s&&s(H),H}};return M}function Nf(e){if(Do(e))return e=Ps(e),e.children=null,e}function sy(e){if(!Do(e))return C_(e.type)&&e.children?D_(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&st(n.default))return n.default()}}function ti(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ti(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Kc(e,t=!1,n){let r=[],s=0;for(let a=0;a1)for(let a=0;an.value,set:a=>n.value=a})}return n}function yo(e,t,n,r,s=!1){if(Ye(e)){e.forEach((w,_)=>yo(w,t&&(Ye(t)?t[_]:t),n,r,s));return}if(Ei(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&yo(e,t,n,r.component.subTree);return}const a=r.shapeFlag&4?Lo(r.component):r.el,o=s?null:a,{i:u,r:d}=e,h=t&&t.r,f=u.refs===Tt?u.refs={}:u.refs,p=u.setupState,m=Mt(p),y=p===Tt?()=>!1:w=>Dt(m,w);if(h!=null&&h!==d&&(ct(h)?(f[h]=null,y(h)&&(p[h]=null)):Tn(h)&&(h.value=null)),st(d))Tl(d,u,12,[o,f]);else{const w=ct(d),_=Tn(d);if(w||_){const E=()=>{if(e.f){const U=w?y(d)?p[d]:f[d]:d.value;s?Ye(U)&&Zh(U,a):Ye(U)?U.includes(a)||U.push(a):w?(f[d]=[a],y(d)&&(p[d]=f[d])):(d.value=[a],e.k&&(f[e.k]=d.value))}else w?(f[d]=o,y(d)&&(p[d]=o)):_&&(d.value=o,e.k&&(f[e.k]=o))};o?(E.id=-1,Mn(E,n)):E()}}}let iy=!1;const ja=()=>{iy||(console.error("Hydration completed but contains mismatches."),iy=!0)},rR=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",sR=e=>e.namespaceURI.includes("MathML"),Nu=e=>{if(e.nodeType===1){if(rR(e))return"svg";if(sR(e))return"mathml"}},Qa=e=>e.nodeType===8;function iR(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:a,parentNode:o,remove:u,insert:d,createComment:h}}=e,f=(x,A)=>{if(!A.hasChildNodes()){n(null,x,A),uc(),A._vnode=x;return}p(A.firstChild,x,null,null,null),uc(),A._vnode=x},p=(x,A,F,B,$,M=!1)=>{M=M||!!A.dynamicChildren;const S=Qa(x)&&x.data==="[",H=()=>_(x,A,F,B,$,S),{type:se,ref:ee,shapeFlag:ne,patchFlag:J}=A;let P=x.nodeType;A.el=x,J===-2&&(M=!1,A.dynamicChildren=null);let z=null;switch(se){case Oi:P!==3?A.children===""?(d(A.el=s(""),o(x),x),z=x):z=H():(x.data!==A.children&&(ja(),x.data=A.children),z=a(x));break;case An:V(x)?(z=a(x),U(A.el=x.content.firstChild,x,F)):P!==8||S?z=H():z=a(x);break;case fa:if(S&&(x=a(x),P=x.nodeType),P===1||P===3){z=x;const R=!A.children.length;for(let te=0;te{M=M||!!A.dynamicChildren;const{type:S,props:H,patchFlag:se,shapeFlag:ee,dirs:ne,transition:J}=A,P=S==="input"||S==="option";if(P||se!==-1){ne&&Es(A,null,F,"created");let z=!1;if(V(x)){z=lb(null,J)&&F&&F.vnode.props&&F.vnode.props.appear;const te=x.content.firstChild;z&&J.beforeEnter(te),U(te,x,F),A.el=x=te}if(ee&16&&!(H&&(H.innerHTML||H.textContent))){let te=y(x.firstChild,A,x,F,B,$,M);for(;te;){Vu(x,1)||ja();const be=te;te=te.nextSibling,u(be)}}else if(ee&8){let te=A.children;te[0]===` +`&&(x.tagName==="PRE"||x.tagName==="TEXTAREA")&&(te=te.slice(1)),x.textContent!==te&&(Vu(x,0)||ja(),x.textContent=A.children)}if(H){if(P||!M||se&48){const te=x.tagName.includes("-");for(const be in H)(P&&(be.endsWith("value")||be==="indeterminate")||wa(be)&&!Ai(be)||be[0]==="."||te)&&r(x,be,null,H[be],void 0,F)}else if(H.onClick)r(x,"onClick",null,H.onClick,void 0,F);else if(se&4&&Ci(H.style))for(const te in H.style)H.style[te]}let R;(R=H&&H.onVnodeBeforeMount)&&br(R,F,A),ne&&Es(A,null,F,"beforeMount"),((R=H&&H.onVnodeMounted)||ne||z)&&vb(()=>{R&&br(R,F,A),z&&J.enter(x),ne&&Es(A,null,F,"mounted")},B)}return x.nextSibling},y=(x,A,F,B,$,M,S)=>{S=S||!!A.dynamicChildren;const H=A.children,se=H.length;for(let ee=0;ee{const{slotScopeIds:S}=A;S&&($=$?$.concat(S):S);const H=o(x),se=y(a(x),A,H,F,B,$,M);return se&&Qa(se)&&se.data==="]"?a(A.anchor=se):(ja(),d(A.anchor=h("]"),H,se),se)},_=(x,A,F,B,$,M)=>{if(Vu(x.parentElement,1)||ja(),A.el=null,M){const se=E(x);for(;;){const ee=a(x);if(ee&&ee!==se)u(ee);else break}}const S=a(x),H=o(x);return u(x),n(null,A,H,S,F,B,Nu(H),$),F&&(F.vnode.el=A.el,ed(F,A.el)),S},E=(x,A="[",F="]")=>{let B=0;for(;x;)if(x=a(x),x&&Qa(x)&&(x.data===A&&B++,x.data===F)){if(B===0)return a(x);B--}return x},U=(x,A,F)=>{const B=A.parentNode;B&&B.replaceChild(x,A);let $=F;for(;$;)$.vnode.el===A&&($.vnode.el=$.subTree.el=x),$=$.parent},V=x=>x.nodeType===1&&x.tagName==="TEMPLATE";return[f,p]}const ay="data-allow-mismatch",aR={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Vu(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(ay);)e=e.parentElement;const n=e&&e.getAttribute(ay);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:n.split(",").includes(aR[t])}}const lR=Bc().requestIdleCallback||(e=>setTimeout(e,1)),oR=Bc().cancelIdleCallback||(e=>clearTimeout(e)),uR=(e=1e4)=>t=>{const n=lR(t,{timeout:e});return()=>oR(n)};function cR(e){const{top:t,left:n,bottom:r,right:s}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t0&&r0&&n0&&s(t,n)=>{const r=new IntersectionObserver(s=>{for(const a of s)if(a.isIntersecting){r.disconnect(),t();break}},e);return n(s=>{if(s instanceof Element){if(cR(s))return t(),r.disconnect(),!1;r.observe(s)}}),()=>r.disconnect()},fR=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},hR=(e=[])=>(t,n)=>{ct(e)&&(e=[e]);let r=!1;const s=o=>{r||(r=!0,a(),t(),o.target.dispatchEvent(new o.constructor(o.type,o)))},a=()=>{n(o=>{for(const u of e)o.removeEventListener(u,s)})};return n(o=>{for(const u of e)o.addEventListener(u,s,{once:!0})}),a};function pR(e,t){if(Qa(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Qa(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const Ei=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function mR(e){st(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:a,timeout:o,suspensible:u=!0,onError:d}=e;let h=null,f,p=0;const m=()=>(p++,h=null,y()),y=()=>{let w;return h||(w=h=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),d)return new Promise((E,U)=>{d(_,()=>E(m()),()=>U(_),p+1)});throw _}).then(_=>w!==h&&h?h:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),f=_,_)))};return fn({name:"AsyncComponentWrapper",__asyncLoader:y,__asyncHydrate(w,_,E){const U=a?()=>{const V=a(E,x=>pR(w,x));V&&(_.bum||(_.bum=[])).push(V)}:E;f?U():y().then(()=>!_.isUnmounted&&U())},get __asyncResolved(){return f},setup(){const w=Pn;if(cp(w),f)return()=>Vf(f,w);const _=x=>{h=null,Sa(x,w,13,!r)};if(u&&w.suspense||ul)return y().then(x=>()=>Vf(x,w)).catch(x=>(_(x),()=>r?he(r,{error:x}):null));const E=fe(!1),U=fe(),V=fe(!!s);return s&&setTimeout(()=>{V.value=!1},s),o!=null&&setTimeout(()=>{if(!E.value&&!U.value){const x=new Error(`Async component timed out after ${o}ms.`);_(x),U.value=x}},o),y().then(()=>{E.value=!0,w.parent&&Do(w.parent.vnode)&&w.parent.update()}).catch(x=>{_(x),U.value=x}),()=>{if(E.value&&f)return Vf(f,w);if(U.value&&r)return he(r,{error:U.value});if(n&&!V.value)return he(n)}}})}function Vf(e,t){const{ref:n,props:r,children:s,ce:a}=t.vnode,o=he(e,r,s);return o.ref=n,o.ce=a,delete t.vnode.ce,o}const Do=e=>e.type.__isKeepAlive,gR={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=ss(),r=n.ctx;if(!r.renderer)return()=>{const V=t.default&&t.default();return V&&V.length===1?V[0]:V};const s=new Map,a=new Set;let o=null;const u=n.suspense,{renderer:{p:d,m:h,um:f,o:{createElement:p}}}=r,m=p("div");r.activate=(V,x,A,F,B)=>{const $=V.component;h(V,x,A,0,u),d($.vnode,V,x,A,$,u,F,V.slotScopeIds,B),Mn(()=>{$.isDeactivated=!1,$.a&&sl($.a);const M=V.props&&V.props.onVnodeMounted;M&&br(M,$.parent,V)},u)},r.deactivate=V=>{const x=V.component;dc(x.m),dc(x.a),h(V,m,null,1,u),Mn(()=>{x.da&&sl(x.da);const A=V.props&&V.props.onVnodeUnmounted;A&&br(A,x.parent,V),x.isDeactivated=!0},u)};function y(V){Ff(V),f(V,n,u,!0)}function w(V){s.forEach((x,A)=>{const F=Mh(x.type);F&&!V(F)&&_(A)})}function _(V){const x=s.get(V);x&&(!o||!ds(x,o))?y(x):o&&Ff(o),s.delete(V),a.delete(V)}qt(()=>[e.include,e.exclude],([V,x])=>{V&&w(A=>Xl(V,A)),x&&w(A=>!Xl(x,A))},{flush:"post",deep:!0});let E=null;const U=()=>{E!=null&&(fc(n.subTree.type)?Mn(()=>{s.set(E,Fu(n.subTree))},n.subTree.suspense):s.set(E,Fu(n.subTree)))};return It(U),Zc(U),Xc(()=>{s.forEach(V=>{const{subTree:x,suspense:A}=n,F=Fu(x);if(V.type===F.type&&V.key===F.key){Ff(F);const B=F.component.da;B&&Mn(B,A);return}y(V)})}),()=>{if(E=null,!t.default)return o=null;const V=t.default(),x=V[0];if(V.length>1)return o=null,V;if(!ni(x)||!(x.shapeFlag&4)&&!(x.shapeFlag&128))return o=null,x;let A=Fu(x);if(A.type===An)return o=null,A;const F=A.type,B=Mh(Ei(A)?A.type.__asyncResolved||{}:F),{include:$,exclude:M,max:S}=e;if($&&(!B||!Xl($,B))||M&&B&&Xl(M,B))return A.shapeFlag&=-257,o=A,x;const H=A.key==null?F:A.key,se=s.get(H);return A.el&&(A=Ps(A),x.shapeFlag&128&&(x.ssContent=A)),E=H,se?(A.el=se.el,A.component=se.component,A.transition&&ti(A,A.transition),A.shapeFlag|=512,a.delete(H),a.add(H)):(a.add(H),S&&a.size>parseInt(S,10)&&_(a.values().next().value)),A.shapeFlag|=256,o=A,fc(x.type)?x:A}}},vR=gR;function Xl(e,t){return Ye(e)?e.some(n=>Xl(n,t)):ct(e)?e.split(",").includes(t):FO(e)?(e.lastIndex=0,e.test(t)):!1}function I_(e,t){V_(e,"a",t)}function N_(e,t){V_(e,"da",t)}function V_(e,t,n=Pn){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Gc(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Do(s.parent.vnode)&&yR(r,t,n,s),s=s.parent}}function yR(e,t,n,r){const s=Gc(t,e,r,!0);ii(()=>{Zh(r[t],s)},n)}function Ff(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Fu(e){return e.shapeFlag&128?e.ssContent:e}function Gc(e,t,n=Pn,r=!1){if(n){const s=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...o)=>{Fi();const u=_a(n),d=rs(t,n,e,o);return u(),$i(),d});return r?s.unshift(a):s.push(a),a}}const si=e=>(t,n=Pn)=>{(!ul||e==="sp")&&Gc(e,(...r)=>t(...r),n)},F_=si("bm"),It=si("m"),Jc=si("bu"),Zc=si("u"),Xc=si("bum"),ii=si("um"),$_=si("sp"),B_=si("rtg"),H_=si("rtc");function U_(e,t=Pn){Gc("ec",e,t)}const dp="components",_R="directives";function at(e,t){return fp(dp,e,!0,t)||e}const j_=Symbol.for("v-ndc");function Al(e){return ct(e)?fp(dp,e,!1)||e:e||j_}function W_(e){return fp(_R,e)}function fp(e,t,n=!0,r=!1){const s=In||Pn;if(s){const a=s.type;if(e===dp){const u=Mh(a,!1);if(u&&(u===t||u===Jt(t)||u===ka(Jt(t))))return a}const o=ly(s[e]||a[e],t)||ly(s.appContext[e],t);return!o&&r?a:o}}function ly(e,t){return e&&(e[t]||e[Jt(t)]||e[ka(Jt(t))])}function Qe(e,t,n,r){let s;const a=n&&n[r],o=Ye(e);if(o||ct(e)){const u=o&&Ci(e);let d=!1;u&&(d=!Ur(e),e=jc(e)),s=new Array(e.length);for(let h=0,f=e.length;ht(u,d,void 0,a&&a[d]));else{const u=Object.keys(e);s=new Array(u.length);for(let d=0,h=u.length;d{const a=r.fn(...s);return a&&(a.key=r.key),a}:r.fn)}return e}function Ie(e,t,n={},r,s){if(In.ce||In.parent&&Ei(In.parent)&&In.parent.ce)return t!=="default"&&(n.name=t),k(),it(Ne,null,[he("slot",n,r&&r())],64);let a=e[t];a&&a._c&&(a._d=!1),k();const o=a&&hp(a(n)),u=n.key||o&&o.key,d=it(Ne,{key:(u&&!Cr(u)?u:`_${t}`)+(!o&&r?"_fb":"")},o||(r?r():[]),o&&e._===1?64:-2);return!s&&d.scopeId&&(d.slotScopeIds=[d.scopeId+"-s"]),a&&a._c&&(a._d=!0),d}function hp(e){return e.some(t=>ni(t)?!(t.type===An||t.type===Ne&&!hp(t.children)):!0)?e:null}function bR(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:rl(r)]=e[r];return n}const _h=e=>e?kb(e)?Lo(e):_h(e.parent):null,ro=At(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>_h(e.parent),$root:e=>_h(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>pp(e),$forceUpdate:e=>e.f||(e.f=()=>{lp(e.update)}),$nextTick:e=>e.n||(e.n=Hn.bind(e.proxy)),$watch:e=>JR.bind(e)}),$f=(e,t)=>e!==Tt&&!e.__isScriptSetup&&Dt(e,t),bh={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:a,accessCache:o,type:u,appContext:d}=e;let h;if(t[0]!=="$"){const y=o[t];if(y!==void 0)switch(y){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return a[t]}else{if($f(r,t))return o[t]=1,r[t];if(s!==Tt&&Dt(s,t))return o[t]=2,s[t];if((h=e.propsOptions[0])&&Dt(h,t))return o[t]=3,a[t];if(n!==Tt&&Dt(n,t))return o[t]=4,n[t];wh&&(o[t]=0)}}const f=ro[t];let p,m;if(f)return t==="$attrs"&&Qn(e.attrs,"get",""),f(e);if((p=u.__cssModules)&&(p=p[t]))return p;if(n!==Tt&&Dt(n,t))return o[t]=4,n[t];if(m=d.config.globalProperties,Dt(m,t))return m[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:a}=e;return $f(s,t)?(s[t]=n,!0):r!==Tt&&Dt(r,t)?(r[t]=n,!0):Dt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:a}},o){let u;return!!n[o]||e!==Tt&&Dt(e,o)||$f(t,o)||(u=a[0])&&Dt(u,o)||Dt(r,o)||Dt(ro,o)||Dt(s.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Dt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},wR=At({},bh,{get(e,t){if(t!==Symbol.unscopables)return bh.get(e,t,e)},has(e,t){return t[0]!=="_"&&!qO(t)}});function xR(){return null}function kR(){return null}function SR(e){}function TR(e){}function AR(){return null}function CR(){}function ER(e,t){return null}function Bi(){return q_().slots}function OR(){return q_().attrs}function q_(){const e=ss();return e.setupContext||(e.setupContext=Cb(e))}function _o(e){return Ye(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function MR(e,t){const n=_o(e);for(const r in t){if(r.startsWith("__skip"))continue;let s=n[r];s?Ye(s)||st(s)?s=n[r]={type:s,default:t[r]}:s.default=t[r]:s===null&&(s=n[r]={default:t[r]}),s&&t[`__skip_${r}`]&&(s.skipFactory=!0)}return n}function RR(e,t){return!e||!t?e||t:Ye(e)&&Ye(t)?e.concat(t):At({},_o(e),_o(t))}function DR(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function PR(e){const t=ss();let n=e();return Ch(),Xh(n)&&(n=n.catch(r=>{throw _a(t),r})),[n,()=>_a(t)]}let wh=!0;function LR(e){const t=pp(e),n=e.proxy,r=e.ctx;wh=!1,t.beforeCreate&&oy(t.beforeCreate,e,"bc");const{data:s,computed:a,methods:o,watch:u,provide:d,inject:h,created:f,beforeMount:p,mounted:m,beforeUpdate:y,updated:w,activated:_,deactivated:E,beforeDestroy:U,beforeUnmount:V,destroyed:x,unmounted:A,render:F,renderTracked:B,renderTriggered:$,errorCaptured:M,serverPrefetch:S,expose:H,inheritAttrs:se,components:ee,directives:ne,filters:J}=t;if(h&&IR(h,r,null),o)for(const R in o){const te=o[R];st(te)&&(r[R]=te.bind(n))}if(s){const R=s.call(n,n);Ht(R)&&(e.data=Hr(R))}if(wh=!0,a)for(const R in a){const te=a[R],be=st(te)?te.bind(n,n):st(te.get)?te.get.bind(n,n):Yn,De=!st(te)&&st(te.set)?te.set.bind(n):Yn,He=pe({get:be,set:De});Object.defineProperty(r,R,{enumerable:!0,configurable:!0,get:()=>He.value,set:K=>He.value=K})}if(u)for(const R in u)Y_(u[R],r,n,R);if(d){const R=st(d)?d.call(n):d;Reflect.ownKeys(R).forEach(te=>{K_(te,R[te])})}f&&oy(f,e,"c");function z(R,te){Ye(te)?te.forEach(be=>R(be.bind(n))):te&&R(te.bind(n))}if(z(F_,p),z(It,m),z(Jc,y),z(Zc,w),z(I_,_),z(N_,E),z(U_,M),z(H_,B),z(B_,$),z(Xc,V),z(ii,A),z($_,S),Ye(H))if(H.length){const R=e.exposed||(e.exposed={});H.forEach(te=>{Object.defineProperty(R,te,{get:()=>n[te],set:be=>n[te]=be})})}else e.exposed||(e.exposed={});F&&e.render===Yn&&(e.render=F),se!=null&&(e.inheritAttrs=se),ee&&(e.components=ee),ne&&(e.directives=ne),S&&cp(e)}function IR(e,t,n=Yn){Ye(e)&&(e=xh(e));for(const r in e){const s=e[r];let a;Ht(s)?"default"in s?a=so(s.from||r,s.default,!0):a=so(s.from||r):a=so(s),Tn(a)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):t[r]=a}}function oy(e,t,n){rs(Ye(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Y_(e,t,n,r){let s=r.includes(".")?hb(n,r):()=>n[r];if(ct(e)){const a=t[e];st(a)&&qt(s,a)}else if(st(e))qt(s,e.bind(n));else if(Ht(e))if(Ye(e))e.forEach(a=>Y_(a,t,n,r));else{const a=st(e.handler)?e.handler.bind(n):t[e.handler];st(a)&&qt(s,a,e)}}function pp(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,u=a.get(t);let d;return u?d=u:!s.length&&!n&&!r?d=t:(d={},s.length&&s.forEach(h=>cc(d,h,o,!0)),cc(d,t,o)),Ht(t)&&a.set(t,d),d}function cc(e,t,n,r=!1){const{mixins:s,extends:a}=t;a&&cc(e,a,n,!0),s&&s.forEach(o=>cc(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const u=NR[o]||n&&n[o];e[o]=u?u(e[o],t[o]):t[o]}return e}const NR={data:uy,props:cy,emits:cy,methods:Ql,computed:Ql,beforeCreate:lr,created:lr,beforeMount:lr,mounted:lr,beforeUpdate:lr,updated:lr,beforeDestroy:lr,beforeUnmount:lr,destroyed:lr,unmounted:lr,activated:lr,deactivated:lr,errorCaptured:lr,serverPrefetch:lr,components:Ql,directives:Ql,watch:FR,provide:uy,inject:VR};function uy(e,t){return t?e?function(){return At(st(e)?e.call(this,this):e,st(t)?t.call(this,this):t)}:t:e}function VR(e,t){return Ql(xh(e),xh(t))}function xh(e){if(Ye(e)){const t={};for(let n=0;n1)return n&&st(t)?t.call(r&&r.proxy):t}}function HR(){return!!(Pn||In||da)}const G_={},J_=()=>Object.create(G_),Z_=e=>Object.getPrototypeOf(e)===G_;function UR(e,t,n,r=!1){const s={},a=J_();e.propsDefaults=Object.create(null),X_(e,t,s,a);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:p_(s):e.type.props?e.props=s:e.props=a,e.attrs=a}function jR(e,t,n,r){const{props:s,attrs:a,vnode:{patchFlag:o}}=e,u=Mt(s),[d]=e.propsOptions;let h=!1;if((r||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let p=0;p{d=!0;const[m,y]=Q_(p,t,!0);At(o,m),y&&u.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!a&&!d)return Ht(e)&&r.set(e,tl),tl;if(Ye(a))for(let f=0;fe[0]==="_"||e==="$stable",mp=e=>Ye(e)?e.map(wr):[wr(e)],qR=(e,t,n)=>{if(t._n)return t;const r=Te((...s)=>mp(t(...s)),n);return r._c=!1,r},tb=(e,t,n)=>{const r=e._ctx;for(const s in e){if(eb(s))continue;const a=e[s];if(st(a))t[s]=qR(s,a,r);else if(a!=null){const o=mp(a);t[s]=()=>o}}},nb=(e,t)=>{const n=mp(t);e.slots.default=()=>n},rb=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},YR=(e,t,n)=>{const r=e.slots=J_();if(e.vnode.shapeFlag&32){const s=t._;s?(rb(r,t,n),n&&z0(r,"_",s,!0)):tb(t,r)}else t&&nb(e,t)},zR=(e,t,n)=>{const{vnode:r,slots:s}=e;let a=!0,o=Tt;if(r.shapeFlag&32){const u=t._;u?n&&u===1?a=!1:rb(s,t,n):(a=!t.$stable,tb(t,s)),o=t}else t&&(nb(e,t),o={default:1});if(a)for(const u in s)!eb(u)&&o[u]==null&&delete s[u]},Mn=vb;function sb(e){return ab(e)}function ib(e){return ab(e,iR)}function ab(e,t){const n=Bc();n.__VUE__=!0;const{insert:r,remove:s,patchProp:a,createElement:o,createText:u,createComment:d,setText:h,setElementText:f,parentNode:p,nextSibling:m,setScopeId:y=Yn,insertStaticContent:w}=e,_=(T,N,G,Q=null,me=null,j=null,de=void 0,ve=null,ke=!!N.dynamicChildren)=>{if(T===N)return;T&&!ds(T,N)&&(Q=Y(T),K(T,me,j,!0),T=null),N.patchFlag===-2&&(ke=!1,N.dynamicChildren=null);const{type:Ae,ref:Oe,shapeFlag:Be}=N;switch(Ae){case Oi:E(T,N,G,Q);break;case An:U(T,N,G,Q);break;case fa:T==null&&V(N,G,Q,de);break;case Ne:ee(T,N,G,Q,me,j,de,ve,ke);break;default:Be&1?F(T,N,G,Q,me,j,de,ve,ke):Be&6?ne(T,N,G,Q,me,j,de,ve,ke):(Be&64||Be&128)&&Ae.process(T,N,G,Q,me,j,de,ve,ke,ye)}Oe!=null&&me&&yo(Oe,T&&T.ref,j,N||T,!N)},E=(T,N,G,Q)=>{if(T==null)r(N.el=u(N.children),G,Q);else{const me=N.el=T.el;N.children!==T.children&&h(me,N.children)}},U=(T,N,G,Q)=>{T==null?r(N.el=d(N.children||""),G,Q):N.el=T.el},V=(T,N,G,Q)=>{[T.el,T.anchor]=w(T.children,N,G,Q,T.el,T.anchor)},x=({el:T,anchor:N},G,Q)=>{let me;for(;T&&T!==N;)me=m(T),r(T,G,Q),T=me;r(N,G,Q)},A=({el:T,anchor:N})=>{let G;for(;T&&T!==N;)G=m(T),s(T),T=G;s(N)},F=(T,N,G,Q,me,j,de,ve,ke)=>{N.type==="svg"?de="svg":N.type==="math"&&(de="mathml"),T==null?B(N,G,Q,me,j,de,ve,ke):S(T,N,me,j,de,ve,ke)},B=(T,N,G,Q,me,j,de,ve)=>{let ke,Ae;const{props:Oe,shapeFlag:Be,transition:Ue,dirs:qe}=T;if(ke=T.el=o(T.type,j,Oe&&Oe.is,Oe),Be&8?f(ke,T.children):Be&16&&M(T.children,ke,null,Q,me,Bf(T,j),de,ve),qe&&Es(T,null,Q,"created"),$(ke,T,T.scopeId,de,Q),Oe){for(const ot in Oe)ot!=="value"&&!Ai(ot)&&a(ke,ot,null,Oe[ot],j,Q);"value"in Oe&&a(ke,"value",null,Oe.value,j),(Ae=Oe.onVnodeBeforeMount)&&br(Ae,Q,T)}qe&&Es(T,null,Q,"beforeMount");const Ge=lb(me,Ue);Ge&&Ue.beforeEnter(ke),r(ke,N,G),((Ae=Oe&&Oe.onVnodeMounted)||Ge||qe)&&Mn(()=>{Ae&&br(Ae,Q,T),Ge&&Ue.enter(ke),qe&&Es(T,null,Q,"mounted")},me)},$=(T,N,G,Q,me)=>{if(G&&y(T,G),Q)for(let j=0;j{for(let Ae=ke;Ae{const ve=N.el=T.el;let{patchFlag:ke,dynamicChildren:Ae,dirs:Oe}=N;ke|=T.patchFlag&16;const Be=T.props||Tt,Ue=N.props||Tt;let qe;if(G&&ea(G,!1),(qe=Ue.onVnodeBeforeUpdate)&&br(qe,G,N,T),Oe&&Es(N,T,G,"beforeUpdate"),G&&ea(G,!0),(Be.innerHTML&&Ue.innerHTML==null||Be.textContent&&Ue.textContent==null)&&f(ve,""),Ae?H(T.dynamicChildren,Ae,ve,G,Q,Bf(N,me),j):de||te(T,N,ve,null,G,Q,Bf(N,me),j,!1),ke>0){if(ke&16)se(ve,Be,Ue,G,me);else if(ke&2&&Be.class!==Ue.class&&a(ve,"class",null,Ue.class,me),ke&4&&a(ve,"style",Be.style,Ue.style,me),ke&8){const Ge=N.dynamicProps;for(let ot=0;ot{qe&&br(qe,G,N,T),Oe&&Es(N,T,G,"updated")},Q)},H=(T,N,G,Q,me,j,de)=>{for(let ve=0;ve{if(N!==G){if(N!==Tt)for(const j in N)!Ai(j)&&!(j in G)&&a(T,j,N[j],null,me,Q);for(const j in G){if(Ai(j))continue;const de=G[j],ve=N[j];de!==ve&&j!=="value"&&a(T,j,ve,de,me,Q)}"value"in G&&a(T,"value",N.value,G.value,me)}},ee=(T,N,G,Q,me,j,de,ve,ke)=>{const Ae=N.el=T?T.el:u(""),Oe=N.anchor=T?T.anchor:u("");let{patchFlag:Be,dynamicChildren:Ue,slotScopeIds:qe}=N;qe&&(ve=ve?ve.concat(qe):qe),T==null?(r(Ae,G,Q),r(Oe,G,Q),M(N.children||[],G,Oe,me,j,de,ve,ke)):Be>0&&Be&64&&Ue&&T.dynamicChildren?(H(T.dynamicChildren,Ue,G,me,j,de,ve),(N.key!=null||me&&N===me.subTree)&&gp(T,N,!0)):te(T,N,G,Oe,me,j,de,ve,ke)},ne=(T,N,G,Q,me,j,de,ve,ke)=>{N.slotScopeIds=ve,T==null?N.shapeFlag&512?me.ctx.activate(N,G,Q,de,ke):J(N,G,Q,me,j,de,ke):P(T,N,ke)},J=(T,N,G,Q,me,j,de)=>{const ve=T.component=xb(T,Q,me);if(Do(T)&&(ve.ctx.renderer=ye),Sb(ve,!1,de),ve.asyncDep){if(me&&me.registerDep(ve,z,de),!T.el){const ke=ve.subTree=he(An);U(null,ke,N,G)}}else z(ve,T,N,G,me,j,de)},P=(T,N,G)=>{const Q=N.component=T.component;if(n3(T,N,G))if(Q.asyncDep&&!Q.asyncResolved){R(Q,N,G);return}else Q.next=N,Q.update();else N.el=T.el,Q.vnode=N},z=(T,N,G,Q,me,j,de)=>{const ve=()=>{if(T.isMounted){let{next:Be,bu:Ue,u:qe,parent:Ge,vnode:ot}=T;{const hn=ob(T);if(hn){Be&&(Be.el=ot.el,R(T,Be,de)),hn.asyncDep.then(()=>{T.isUnmounted||ve()});return}}let _t=Be,an;ea(T,!1),Be?(Be.el=ot.el,R(T,Be,de)):Be=ot,Ue&&sl(Ue),(an=Be.props&&Be.props.onVnodeBeforeUpdate)&&br(an,Ge,Be,ot),ea(T,!0);const Zt=Gu(T),Cn=T.subTree;T.subTree=Zt,_(Cn,Zt,p(Cn.el),Y(Cn),T,me,j),Be.el=Zt.el,_t===null&&ed(T,Zt.el),qe&&Mn(qe,me),(an=Be.props&&Be.props.onVnodeUpdated)&&Mn(()=>br(an,Ge,Be,ot),me)}else{let Be;const{el:Ue,props:qe}=N,{bm:Ge,m:ot,parent:_t,root:an,type:Zt}=T,Cn=Ei(N);if(ea(T,!1),Ge&&sl(Ge),!Cn&&(Be=qe&&qe.onVnodeBeforeMount)&&br(Be,_t,N),ea(T,!0),Ue&&W){const hn=()=>{T.subTree=Gu(T),W(Ue,T.subTree,T,me,null)};Cn&&Zt.__asyncHydrate?Zt.__asyncHydrate(Ue,T,hn):hn()}else{an.ce&&an.ce._injectChildStyle(Zt);const hn=T.subTree=Gu(T);_(null,hn,G,Q,T,me,j),N.el=hn.el}if(ot&&Mn(ot,me),!Cn&&(Be=qe&&qe.onVnodeMounted)){const hn=N;Mn(()=>br(Be,_t,hn),me)}(N.shapeFlag&256||_t&&Ei(_t.vnode)&&_t.vnode.shapeFlag&256)&&T.a&&Mn(T.a,me),T.isMounted=!0,N=G=Q=null}};T.scope.on();const ke=T.effect=new fo(ve);T.scope.off();const Ae=T.update=ke.run.bind(ke),Oe=T.job=ke.runIfDirty.bind(ke);Oe.i=T,Oe.id=T.uid,ke.scheduler=()=>lp(Oe),ea(T,!0),Ae()},R=(T,N,G)=>{N.component=T;const Q=T.vnode.props;T.vnode=N,T.next=null,jR(T,N.props,Q,G),zR(T,N.children,G),Fi(),ey(T),$i()},te=(T,N,G,Q,me,j,de,ve,ke=!1)=>{const Ae=T&&T.children,Oe=T?T.shapeFlag:0,Be=N.children,{patchFlag:Ue,shapeFlag:qe}=N;if(Ue>0){if(Ue&128){De(Ae,Be,G,Q,me,j,de,ve,ke);return}else if(Ue&256){be(Ae,Be,G,Q,me,j,de,ve,ke);return}}qe&8?(Oe&16&&we(Ae,me,j),Be!==Ae&&f(G,Be)):Oe&16?qe&16?De(Ae,Be,G,Q,me,j,de,ve,ke):we(Ae,me,j,!0):(Oe&8&&f(G,""),qe&16&&M(Be,G,Q,me,j,de,ve,ke))},be=(T,N,G,Q,me,j,de,ve,ke)=>{T=T||tl,N=N||tl;const Ae=T.length,Oe=N.length,Be=Math.min(Ae,Oe);let Ue;for(Ue=0;UeOe?we(T,me,j,!0,!1,Be):M(N,G,Q,me,j,de,ve,ke,Be)},De=(T,N,G,Q,me,j,de,ve,ke)=>{let Ae=0;const Oe=N.length;let Be=T.length-1,Ue=Oe-1;for(;Ae<=Be&&Ae<=Ue;){const qe=T[Ae],Ge=N[Ae]=ke?ki(N[Ae]):wr(N[Ae]);if(ds(qe,Ge))_(qe,Ge,G,null,me,j,de,ve,ke);else break;Ae++}for(;Ae<=Be&&Ae<=Ue;){const qe=T[Be],Ge=N[Ue]=ke?ki(N[Ue]):wr(N[Ue]);if(ds(qe,Ge))_(qe,Ge,G,null,me,j,de,ve,ke);else break;Be--,Ue--}if(Ae>Be){if(Ae<=Ue){const qe=Ue+1,Ge=qeUe)for(;Ae<=Be;)K(T[Ae],me,j,!0),Ae++;else{const qe=Ae,Ge=Ae,ot=new Map;for(Ae=Ge;Ae<=Ue;Ae++){const pn=N[Ae]=ke?ki(N[Ae]):wr(N[Ae]);pn.key!=null&&ot.set(pn.key,Ae)}let _t,an=0;const Zt=Ue-Ge+1;let Cn=!1,hn=0;const Er=new Array(Zt);for(Ae=0;Ae=Zt){K(pn,me,j,!0);continue}let ce;if(pn.key!=null)ce=ot.get(pn.key);else for(_t=Ge;_t<=Ue;_t++)if(Er[_t-Ge]===0&&ds(pn,N[_t])){ce=_t;break}ce===void 0?K(pn,me,j,!0):(Er[ce-Ge]=Ae+1,ce>=hn?hn=ce:Cn=!0,_(pn,N[ce],G,null,me,j,de,ve,ke),an++)}const ws=Cn?KR(Er):tl;for(_t=ws.length-1,Ae=Zt-1;Ae>=0;Ae--){const pn=Ge+Ae,ce=N[pn],Ve=pn+1{const{el:j,type:de,transition:ve,children:ke,shapeFlag:Ae}=T;if(Ae&6){He(T.component.subTree,N,G,Q);return}if(Ae&128){T.suspense.move(N,G,Q);return}if(Ae&64){de.move(T,N,G,ye);return}if(de===Ne){r(j,N,G);for(let Be=0;Beve.enter(j),me);else{const{leave:Be,delayLeave:Ue,afterLeave:qe}=ve,Ge=()=>r(j,N,G),ot=()=>{Be(j,()=>{Ge(),qe&&qe()})};Ue?Ue(j,Ge,ot):ot()}else r(j,N,G)},K=(T,N,G,Q=!1,me=!1)=>{const{type:j,props:de,ref:ve,children:ke,dynamicChildren:Ae,shapeFlag:Oe,patchFlag:Be,dirs:Ue,cacheIndex:qe}=T;if(Be===-2&&(me=!1),ve!=null&&yo(ve,null,G,T,!0),qe!=null&&(N.renderCache[qe]=void 0),Oe&256){N.ctx.deactivate(T);return}const Ge=Oe&1&&Ue,ot=!Ei(T);let _t;if(ot&&(_t=de&&de.onVnodeBeforeUnmount)&&br(_t,N,T),Oe&6)le(T.component,G,Q);else{if(Oe&128){T.suspense.unmount(G,Q);return}Ge&&Es(T,null,N,"beforeUnmount"),Oe&64?T.type.remove(T,N,G,ye,Q):Ae&&!Ae.hasOnce&&(j!==Ne||Be>0&&Be&64)?we(Ae,N,G,!1,!0):(j===Ne&&Be&384||!me&&Oe&16)&&we(ke,N,G),Q&&ue(T)}(ot&&(_t=de&&de.onVnodeUnmounted)||Ge)&&Mn(()=>{_t&&br(_t,N,T),Ge&&Es(T,null,N,"unmounted")},G)},ue=T=>{const{type:N,el:G,anchor:Q,transition:me}=T;if(N===Ne){D(G,Q);return}if(N===fa){A(T);return}const j=()=>{s(G),me&&!me.persisted&&me.afterLeave&&me.afterLeave()};if(T.shapeFlag&1&&me&&!me.persisted){const{leave:de,delayLeave:ve}=me,ke=()=>de(G,j);ve?ve(T.el,j,ke):ke()}else j()},D=(T,N)=>{let G;for(;T!==N;)G=m(T),s(T),T=G;s(N)},le=(T,N,G)=>{const{bum:Q,scope:me,job:j,subTree:de,um:ve,m:ke,a:Ae}=T;dc(ke),dc(Ae),Q&&sl(Q),me.stop(),j&&(j.flags|=8,K(de,T,N,G)),ve&&Mn(ve,N),Mn(()=>{T.isUnmounted=!0},N),N&&N.pendingBranch&&!N.isUnmounted&&T.asyncDep&&!T.asyncResolved&&T.suspenseId===N.pendingId&&(N.deps--,N.deps===0&&N.resolve())},we=(T,N,G,Q=!1,me=!1,j=0)=>{for(let de=j;de{if(T.shapeFlag&6)return Y(T.component.subTree);if(T.shapeFlag&128)return T.suspense.next();const N=m(T.anchor||T.el),G=N&&N[A_];return G?m(G):N};let Le=!1;const Xe=(T,N,G)=>{T==null?N._vnode&&K(N._vnode,null,null,!0):_(N._vnode||null,T,N,null,null,null,G),N._vnode=T,Le||(Le=!0,ey(),uc(),Le=!1)},ye={p:_,um:K,m:He,r:ue,mt:J,mc:M,pc:te,pbc:H,n:Y,o:e};let et,W;return t&&([et,W]=t(ye)),{render:Xe,hydrate:et,createApp:BR(Xe,et)}}function Bf({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ea({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function lb(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function gp(e,t,n=!1){const r=e.children,s=t.children;if(Ye(r)&&Ye(s))for(let a=0;a>1,e[n[u]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function ob(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ob(t)}function dc(e){if(e)for(let t=0;tso(ub);function db(e,t){return Po(e,null,t)}function GR(e,t){return Po(e,null,{flush:"post"})}function fb(e,t){return Po(e,null,{flush:"sync"})}function qt(e,t,n){return Po(e,t,n)}function Po(e,t,n=Tt){const{immediate:r,deep:s,flush:a,once:o}=n,u=At({},n),d=t&&r||!t&&a!=="post";let h;if(ul){if(a==="sync"){const y=cb();h=y.__watcherHandles||(y.__watcherHandles=[])}else if(!d){const y=()=>{};return y.stop=Yn,y.resume=Yn,y.pause=Yn,y}}const f=Pn;u.call=(y,w,_)=>rs(y,f,w,_);let p=!1;a==="post"?u.scheduler=y=>{Mn(y,f&&f.suspense)}:a!=="sync"&&(p=!0,u.scheduler=(y,w)=>{w?y():lp(y)}),u.augmentJob=y=>{t&&(y.flags|=4),p&&(y.flags|=2,f&&(y.id=f.uid,y.i=f))};const m=UM(e,t,u);return ul&&(h?h.push(m):d&&m()),m}function JR(e,t,n){const r=this.proxy,s=ct(e)?e.includes(".")?hb(r,e):()=>r[e]:e.bind(r,r);let a;st(t)?a=t:(a=t.handler,n=t);const o=_a(this),u=Po(s,a.bind(r),n);return o(),u}function hb(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s{let f,p=Tt,m;return fb(()=>{const y=e[s];dr(f,y)&&(f=y,h())}),{get(){return d(),n.get?n.get(f):f},set(y){const w=n.set?n.set(y):y;if(!dr(w,f)&&!(p!==Tt&&dr(y,p)))return;const _=r.vnode.props;_&&(t in _||s in _||a in _)&&(`onUpdate:${t}`in _||`onUpdate:${s}`in _||`onUpdate:${a}`in _)||(f=y,h()),r.emit(`update:${t}`,w),dr(y,w)&&dr(y,p)&&!dr(w,m)&&h(),p=y,m=w}}});return u[Symbol.iterator]=()=>{let d=0;return{next(){return d<2?{value:d++?o||Tt:u,done:!1}:{done:!0}}}},u}const pb=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Jt(t)}Modifiers`]||e[`${xr(t)}Modifiers`];function XR(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Tt;let s=n;const a=t.startsWith("update:"),o=a&&pb(r,t.slice(7));o&&(o.trim&&(s=n.map(f=>ct(f)?f.trim():f)),o.number&&(s=n.map(sc)));let u,d=r[u=rl(t)]||r[u=rl(Jt(t))];!d&&a&&(d=r[u=rl(xr(t))]),d&&rs(d,e,6,s);const h=r[u+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[u])return;e.emitted[u]=!0,rs(h,e,6,s)}}function mb(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const a=e.emits;let o={},u=!1;if(!st(e)){const d=h=>{const f=mb(h,t,!0);f&&(u=!0,At(o,f))};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}return!a&&!u?(Ht(e)&&r.set(e,null),null):(Ye(a)?a.forEach(d=>o[d]=null):At(o,a),Ht(e)&&r.set(e,o),o)}function Qc(e,t){return!e||!wa(t)?!1:(t=t.slice(2).replace(/Once$/,""),Dt(e,t[0].toLowerCase()+t.slice(1))||Dt(e,xr(t))||Dt(e,t))}function Gu(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[a],slots:o,attrs:u,emit:d,render:h,renderCache:f,props:p,data:m,setupState:y,ctx:w,inheritAttrs:_}=e,E=vo(e);let U,V;try{if(n.shapeFlag&4){const A=s||r,F=A;U=wr(h.call(F,A,f,p,y,m,w)),V=u}else{const A=t;U=wr(A.length>1?A(p,{attrs:u,slots:o,emit:d}):A(p,null)),V=t.props?u:e3(u)}}catch(A){io.length=0,Sa(A,e,1),U=he(An)}let x=U;if(V&&_!==!1){const A=Object.keys(V),{shapeFlag:F}=x;A.length&&F&7&&(a&&A.some(Jh)&&(V=t3(V,a)),x=Ps(x,V,!1,!0))}return n.dirs&&(x=Ps(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&ti(x,n.transition),U=x,vo(E),U}function QR(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||wa(n))&&((t||(t={}))[n]=e[n]);return t},t3=(e,t)=>{const n={};for(const r in e)(!Jh(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function n3(e,t,n){const{props:r,children:s,component:a}=e,{props:o,children:u,patchFlag:d}=t,h=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&d>=0){if(d&1024)return!0;if(d&16)return r?fy(r,o,h):!!o;if(d&8){const f=t.dynamicProps;for(let p=0;pe.__isSuspense;let Sh=0;const r3={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,a,o,u,d,h){if(e==null)i3(t,n,r,s,a,o,u,d,h);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}a3(e,t,n,r,s,o,u,d,h)}},hydrate:l3,normalize:o3},s3=r3;function bo(e,t){const n=e.props&&e.props[t];st(n)&&n()}function i3(e,t,n,r,s,a,o,u,d){const{p:h,o:{createElement:f}}=d,p=f("div"),m=e.suspense=gb(e,s,r,t,p,n,a,o,u,d);h(null,m.pendingBranch=e.ssContent,p,null,r,m,a,o),m.deps>0?(bo(e,"onPending"),bo(e,"onFallback"),h(null,e.ssFallback,t,n,r,null,a,o),al(m,e.ssFallback)):m.resolve(!1,!0)}function a3(e,t,n,r,s,a,o,u,{p:d,um:h,o:{createElement:f}}){const p=t.suspense=e.suspense;p.vnode=t,t.el=e.el;const m=t.ssContent,y=t.ssFallback,{activeBranch:w,pendingBranch:_,isInFallback:E,isHydrating:U}=p;if(_)p.pendingBranch=m,ds(m,_)?(d(_,m,p.hiddenContainer,null,s,p,a,o,u),p.deps<=0?p.resolve():E&&(U||(d(w,y,n,r,s,null,a,o,u),al(p,y)))):(p.pendingId=Sh++,U?(p.isHydrating=!1,p.activeBranch=_):h(_,s,p),p.deps=0,p.effects.length=0,p.hiddenContainer=f("div"),E?(d(null,m,p.hiddenContainer,null,s,p,a,o,u),p.deps<=0?p.resolve():(d(w,y,n,r,s,null,a,o,u),al(p,y))):w&&ds(m,w)?(d(w,m,n,r,s,p,a,o,u),p.resolve(!0)):(d(null,m,p.hiddenContainer,null,s,p,a,o,u),p.deps<=0&&p.resolve()));else if(w&&ds(m,w))d(w,m,n,r,s,p,a,o,u),al(p,m);else if(bo(t,"onPending"),p.pendingBranch=m,m.shapeFlag&512?p.pendingId=m.component.suspenseId:p.pendingId=Sh++,d(null,m,p.hiddenContainer,null,s,p,a,o,u),p.deps<=0)p.resolve();else{const{timeout:V,pendingId:x}=p;V>0?setTimeout(()=>{p.pendingId===x&&p.fallback(y)},V):V===0&&p.fallback(y)}}function gb(e,t,n,r,s,a,o,u,d,h,f=!1){const{p,m,um:y,n:w,o:{parentNode:_,remove:E}}=h;let U;const V=u3(e);V&&t&&t.pendingBranch&&(U=t.pendingId,t.deps++);const x=e.props?ic(e.props.timeout):void 0,A=a,F={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:s,deps:0,pendingId:Sh++,timeout:typeof x=="number"?x:-1,activeBranch:null,pendingBranch:null,isInFallback:!f,isHydrating:f,isUnmounted:!1,effects:[],resolve(B=!1,$=!1){const{vnode:M,activeBranch:S,pendingBranch:H,pendingId:se,effects:ee,parentComponent:ne,container:J}=F;let P=!1;F.isHydrating?F.isHydrating=!1:B||(P=S&&H.transition&&H.transition.mode==="out-in",P&&(S.transition.afterLeave=()=>{se===F.pendingId&&(m(H,J,a===A?w(S):a,0),mo(ee))}),S&&(_(S.el)===J&&(a=w(S)),y(S,ne,F,!0)),P||m(H,J,a,0)),al(F,H),F.pendingBranch=null,F.isInFallback=!1;let z=F.parent,R=!1;for(;z;){if(z.pendingBranch){z.effects.push(...ee),R=!0;break}z=z.parent}!R&&!P&&mo(ee),F.effects=[],V&&t&&t.pendingBranch&&U===t.pendingId&&(t.deps--,t.deps===0&&!$&&t.resolve()),bo(M,"onResolve")},fallback(B){if(!F.pendingBranch)return;const{vnode:$,activeBranch:M,parentComponent:S,container:H,namespace:se}=F;bo($,"onFallback");const ee=w(M),ne=()=>{F.isInFallback&&(p(null,B,H,ee,S,null,se,u,d),al(F,B))},J=B.transition&&B.transition.mode==="out-in";J&&(M.transition.afterLeave=ne),F.isInFallback=!0,y(M,S,null,!0),J||ne()},move(B,$,M){F.activeBranch&&m(F.activeBranch,B,$,M),F.container=B},next(){return F.activeBranch&&w(F.activeBranch)},registerDep(B,$,M){const S=!!F.pendingBranch;S&&F.deps++;const H=B.vnode.el;B.asyncDep.catch(se=>{Sa(se,B,0)}).then(se=>{if(B.isUnmounted||F.isUnmounted||F.pendingId!==B.suspenseId)return;B.asyncResolved=!0;const{vnode:ee}=B;Eh(B,se,!1),H&&(ee.el=H);const ne=!H&&B.subTree.el;$(B,ee,_(H||B.subTree.el),H?null:w(B.subTree),F,o,M),ne&&E(ne),ed(B,ee.el),S&&--F.deps===0&&F.resolve()})},unmount(B,$){F.isUnmounted=!0,F.activeBranch&&y(F.activeBranch,n,B,$),F.pendingBranch&&y(F.pendingBranch,n,B,$)}};return F}function l3(e,t,n,r,s,a,o,u,d){const h=t.suspense=gb(t,r,n,e.parentNode,document.createElement("div"),null,s,a,o,u,!0),f=d(e,h.pendingBranch=t.ssContent,n,h,a,o);return h.deps===0&&h.resolve(!1,!0),f}function o3(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=hy(r?n.default:n),e.ssFallback=r?hy(n.fallback):he(An)}function hy(e){let t;if(st(e)){const n=ya&&e._c;n&&(e._d=!1,k()),e=e(),n&&(e._d=!0,t=nr,yb())}return Ye(e)&&(e=QR(e)),e=wr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function vb(e,t){t&&t.pendingBranch?Ye(e)?t.effects.push(...e):t.effects.push(e):mo(e)}function al(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;n.el=s,r&&r.subTree===n&&(r.vnode.el=s,ed(r,s))}function u3(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ne=Symbol.for("v-fgt"),Oi=Symbol.for("v-txt"),An=Symbol.for("v-cmt"),fa=Symbol.for("v-stc"),io=[];let nr=null;function k(e=!1){io.push(nr=e?null:[])}function yb(){io.pop(),nr=io[io.length-1]||null}let ya=1;function Th(e,t=!1){ya+=e,e<0&&nr&&t&&(nr.hasOnce=!0)}function _b(e){return e.dynamicChildren=ya>0?nr||tl:null,yb(),ya>0&&nr&&nr.push(e),e}function I(e,t,n,r,s,a){return _b(v(e,t,n,r,s,a,!0))}function it(e,t,n,r,s){return _b(he(e,t,n,r,s,!0))}function ni(e){return e?e.__v_isVNode===!0:!1}function ds(e,t){return e.type===t.type&&e.key===t.key}function c3(e){}const bb=({key:e})=>e??null,Ju=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ct(e)||Tn(e)||st(e)?{i:In,r:e,k:t,f:!!n}:e:null);function v(e,t=null,n=null,r=0,s=null,a=e===Ne?0:1,o=!1,u=!1){const d={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&bb(t),ref:t&&Ju(t),scopeId:zc,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:In};return u?(vp(d,n),a&128&&e.normalize(d)):n&&(d.shapeFlag|=ct(n)?8:16),ya>0&&!o&&nr&&(d.patchFlag>0||a&6)&&d.patchFlag!==32&&nr.push(d),d}const he=d3;function d3(e,t=null,n=null,r=0,s=null,a=!1){if((!e||e===j_)&&(e=An),ni(e)){const u=Ps(e,t,!0);return n&&vp(u,n),ya>0&&!a&&nr&&(u.shapeFlag&6?nr[nr.indexOf(e)]=u:nr.push(u)),u.patchFlag=-2,u}if(v3(e)&&(e=e.__vccOpts),t){t=qn(t);let{class:u,style:d}=t;u&&!ct(u)&&(t.class=$e(u)),Ht(d)&&(Yc(d)&&!Ye(d)&&(d=At({},d)),t.style=bn(d))}const o=ct(e)?1:fc(e)?128:C_(e)?64:Ht(e)?4:st(e)?2:0;return v(e,t,n,r,s,o,a,!0)}function qn(e){return e?Yc(e)||Z_(e)?At({},e):e:null}function Ps(e,t,n=!1,r=!1){const{props:s,ref:a,patchFlag:o,children:u,transition:d}=e,h=t?cn(s||{},t):s,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&bb(h),ref:t&&t.ref?n&&a?Ye(a)?a.concat(Ju(t)):[a,Ju(t)]:Ju(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:u,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ne?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:d,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ps(e.ssContent),ssFallback:e.ssFallback&&Ps(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return d&&r&&ti(f,d.clone(f)),f}function mt(e=" ",t=0){return he(Oi,null,e,t)}function wb(e,t){const n=he(fa,null,e);return n.staticCount=t,n}function ie(e="",t=!1){return t?(k(),it(An,null,e)):he(An,null,e)}function wr(e){return e==null||typeof e=="boolean"?he(An):Ye(e)?he(Ne,null,e.slice()):ni(e)?ki(e):he(Oi,null,String(e))}function ki(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ps(e)}function vp(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Ye(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),vp(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Z_(t)?t._ctx=In:s===3&&In&&(In.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else st(t)?(t={default:t,_ctx:In},n=32):(t=String(t),r&64?(n=16,t=[mt(t)]):n=8);e.children=t,e.shapeFlag|=n}function cn(...e){const t={};for(let n=0;nPn||In;let hc,Ah;{const e=Bc(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),a=>{s.length>1?s.forEach(o=>o(a)):s[0](a)}};hc=t("__VUE_INSTANCE_SETTERS__",n=>Pn=n),Ah=t("__VUE_SSR_SETTERS__",n=>ul=n)}const _a=e=>{const t=Pn;return hc(e),e.scope.on(),()=>{e.scope.off(),hc(t)}},Ch=()=>{Pn&&Pn.scope.off(),hc(null)};function kb(e){return e.vnode.shapeFlag&4}let ul=!1;function Sb(e,t=!1,n=!1){t&&Ah(t);const{props:r,children:s}=e.vnode,a=kb(e);UR(e,r,a,t),YR(e,s,n);const o=a?p3(e,t):void 0;return t&&Ah(!1),o}function p3(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,bh);const{setup:r}=n;if(r){Fi();const s=e.setupContext=r.length>1?Cb(e):null,a=_a(e),o=Tl(r,e,0,[e.props,s]),u=Xh(o);if($i(),a(),(u||e.sp)&&!Ei(e)&&cp(e),u){if(o.then(Ch,Ch),t)return o.then(d=>{Eh(e,d,t)}).catch(d=>{Sa(d,e,0)});e.asyncDep=o}else Eh(e,o,t)}else Ab(e,t)}function Eh(e,t,n){st(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ht(t)&&(e.setupState=ap(t)),Ab(e,n)}let pc,Oh;function Tb(e){pc=e,Oh=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,wR))}}const m3=()=>!pc;function Ab(e,t,n){const r=e.type;if(!e.render){if(!t&&pc&&!r.render){const s=r.template||pp(e).template;if(s){const{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:u,compilerOptions:d}=r,h=At(At({isCustomElement:a,delimiters:u},o),d);r.render=pc(s,h)}}e.render=r.render||Yn,Oh&&Oh(e)}{const s=_a(e);Fi();try{LR(e)}finally{$i(),s()}}}const g3={get(e,t){return Qn(e,"get",""),e[t]}};function Cb(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,g3),slots:e.slots,emit:e.emit,expose:t}}function Lo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ap(m_(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ro)return ro[n](e)},has(t,n){return n in t||n in ro}})):e.proxy}function Mh(e,t=!0){return st(e)?e.displayName||e.name:e.name||t&&e.__name}function v3(e){return st(e)&&"__vccOpts"in e}const pe=(e,t)=>FM(e,t,ul);function yp(e,t,n){const r=arguments.length;return r===2?Ht(t)&&!Ye(t)?ni(t)?he(e,null,[t]):he(e,t):he(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ni(n)&&(n=[n]),he(e,t,n))}function y3(){}function _3(e,t,n,r){const s=n[r];if(s&&Eb(s,e))return s;const a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function Eb(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&nr&&nr.push(e),!0}const Ob="3.5.13",b3=Yn,w3=zM,x3=Ja,k3=T_,S3={createComponentInstance:xb,setupComponent:Sb,renderComponentRoot:Gu,setCurrentRenderingInstance:vo,isVNode:ni,normalizeVNode:wr,getComponentPublicInstance:Lo,ensureValidVNode:hp,pushWarningContext:jM,popWarningContext:WM},T3=S3,A3=null,C3=null,E3=null;/** +* @vue/runtime-dom v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Rh;const py=typeof window<"u"&&window.trustedTypes;if(py)try{Rh=py.createPolicy("vue",{createHTML:e=>e})}catch{}const Mb=Rh?e=>Rh.createHTML(e):e=>e,O3="http://www.w3.org/2000/svg",M3="http://www.w3.org/1998/Math/MathML",zs=typeof document<"u"?document:null,my=zs&&zs.createElement("template"),R3={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?zs.createElementNS(O3,e):t==="mathml"?zs.createElementNS(M3,e):n?zs.createElement(e,{is:n}):zs.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>zs.createTextNode(e),createComment:e=>zs.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>zs.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,a){const o=n?n.previousSibling:t.lastChild;if(s&&(s===a||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===a||!(s=s.nextSibling)););else{my.innerHTML=Mb(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const u=my.content;if(r==="svg"||r==="mathml"){const d=u.firstChild;for(;d.firstChild;)u.appendChild(d.firstChild);u.removeChild(d)}t.insertBefore(u,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},mi="transition",Yl="animation",cl=Symbol("_vtc"),Rb={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Db=At({},up,Rb),D3=e=>(e.displayName="Transition",e.props=Db,e),vs=D3((e,{slots:t})=>yp(P_,Pb(e),t)),ta=(e,t=[])=>{Ye(e)?e.forEach(n=>n(...t)):e&&e(...t)},gy=e=>e?Ye(e)?e.some(t=>t.length>1):e.length>1:!1;function Pb(e){const t={};for(const ee in e)ee in Rb||(t[ee]=e[ee]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:u=`${n}-enter-to`,appearFromClass:d=a,appearActiveClass:h=o,appearToClass:f=u,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,w=P3(s),_=w&&w[0],E=w&&w[1],{onBeforeEnter:U,onEnter:V,onEnterCancelled:x,onLeave:A,onLeaveCancelled:F,onBeforeAppear:B=U,onAppear:$=V,onAppearCancelled:M=x}=t,S=(ee,ne,J,P)=>{ee._enterCancelled=P,_i(ee,ne?f:u),_i(ee,ne?h:o),J&&J()},H=(ee,ne)=>{ee._isLeaving=!1,_i(ee,p),_i(ee,y),_i(ee,m),ne&&ne()},se=ee=>(ne,J)=>{const P=ee?$:V,z=()=>S(ne,ee,J);ta(P,[ne,z]),vy(()=>{_i(ne,ee?d:a),As(ne,ee?f:u),gy(P)||yy(ne,r,_,z)})};return At(t,{onBeforeEnter(ee){ta(U,[ee]),As(ee,a),As(ee,o)},onBeforeAppear(ee){ta(B,[ee]),As(ee,d),As(ee,h)},onEnter:se(!1),onAppear:se(!0),onLeave(ee,ne){ee._isLeaving=!0;const J=()=>H(ee,ne);As(ee,p),ee._enterCancelled?(As(ee,m),Dh()):(Dh(),As(ee,m)),vy(()=>{ee._isLeaving&&(_i(ee,p),As(ee,y),gy(A)||yy(ee,r,E,J))}),ta(A,[ee,J])},onEnterCancelled(ee){S(ee,!1,void 0,!0),ta(x,[ee])},onAppearCancelled(ee){S(ee,!0,void 0,!0),ta(M,[ee])},onLeaveCancelled(ee){H(ee),ta(F,[ee])}})}function P3(e){if(e==null)return null;if(Ht(e))return[Hf(e.enter),Hf(e.leave)];{const t=Hf(e);return[t,t]}}function Hf(e){return ic(e)}function As(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[cl]||(e[cl]=new Set)).add(t)}function _i(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[cl];n&&(n.delete(t),n.size||(e[cl]=void 0))}function vy(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let L3=0;function yy(e,t,n,r){const s=e._endId=++L3,a=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(a,n);const{type:o,timeout:u,propCount:d}=Lb(e,t);if(!o)return r();const h=o+"end";let f=0;const p=()=>{e.removeEventListener(h,m),a()},m=y=>{y.target===e&&++f>=d&&p()};setTimeout(()=>{f(n[w]||"").split(", "),s=r(`${mi}Delay`),a=r(`${mi}Duration`),o=_y(s,a),u=r(`${Yl}Delay`),d=r(`${Yl}Duration`),h=_y(u,d);let f=null,p=0,m=0;t===mi?o>0&&(f=mi,p=o,m=a.length):t===Yl?h>0&&(f=Yl,p=h,m=d.length):(p=Math.max(o,h),f=p>0?o>h?mi:Yl:null,m=f?f===mi?a.length:d.length:0);const y=f===mi&&/\b(transform|all)(,|$)/.test(r(`${mi}Property`).toString());return{type:f,timeout:p,propCount:m,hasTransform:y}}function _y(e,t){for(;e.lengthby(n)+by(e[r])))}function by(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Dh(){return document.body.offsetHeight}function I3(e,t,n){const r=e[cl];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const mc=Symbol("_vod"),Ib=Symbol("_vsh"),Vr={beforeMount(e,{value:t},{transition:n}){e[mc]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):zl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),zl(e,!0),r.enter(e)):r.leave(e,()=>{zl(e,!1)}):zl(e,t))},beforeUnmount(e,{value:t}){zl(e,t)}};function zl(e,t){e.style.display=t?e[mc]:"none",e[Ib]=!t}function N3(){Vr.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Nb=Symbol("");function V3(e){const t=ss();if(!t)return;const n=t.ut=(s=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(a=>gc(a,s))},r=()=>{const s=e(t.proxy);t.ce?gc(t.ce,s):Ph(t.subTree,s),n(s)};Jc(()=>{mo(r)}),It(()=>{qt(r,Yn,{flush:"post"});const s=new MutationObserver(r);s.observe(t.subTree.el.parentNode,{childList:!0}),ii(()=>s.disconnect())})}function Ph(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Ph(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)gc(e.el,t);else if(e.type===Ne)e.children.forEach(n=>Ph(n,t));else if(e.type===fa){let{el:n,anchor:r}=e;for(;n&&(gc(n,t),n!==r);)n=n.nextSibling}}function gc(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const s in t)n.setProperty(`--${s}`,t[s]),r+=`--${s}: ${t[s]};`;n[Nb]=r}}const F3=/(^|;)\s*display\s*:/;function $3(e,t,n){const r=e.style,s=ct(n);let a=!1;if(n&&!s){if(t)if(ct(t))for(const o of t.split(";")){const u=o.slice(0,o.indexOf(":")).trim();n[u]==null&&Zu(r,u,"")}else for(const o in t)n[o]==null&&Zu(r,o,"");for(const o in n)o==="display"&&(a=!0),Zu(r,o,n[o])}else if(s){if(t!==n){const o=r[Nb];o&&(n+=";"+o),r.cssText=n,a=F3.test(n)}}else t&&e.removeAttribute("style");mc in e&&(e[mc]=a?r.display:"",e[Ib]&&(r.display="none"))}const wy=/\s*!important$/;function Zu(e,t,n){if(Ye(n))n.forEach(r=>Zu(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=B3(e,t);wy.test(n)?e.setProperty(xr(r),n.replace(wy,""),"important"):e[r]=n}}const xy=["Webkit","Moz","ms"],Uf={};function B3(e,t){const n=Uf[t];if(n)return n;let r=Jt(t);if(r!=="filter"&&r in e)return Uf[t]=r;r=ka(r);for(let s=0;sjf||(W3.then(()=>jf=0),jf=Date.now());function Y3(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;rs(z3(r,n.value),t,5,[r])};return n.value=e,n.attached=q3(),n}function z3(e,t){if(Ye(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Ey=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,K3=(e,t,n,r,s,a)=>{const o=s==="svg";t==="class"?I3(e,r,o):t==="style"?$3(e,n,r):wa(t)?Jh(t)||U3(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):G3(e,t,r,o))?(Ty(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Sy(e,t,r,o,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ct(r))?Ty(e,Jt(t),r,a,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Sy(e,t,r,o))};function G3(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ey(t)&&st(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Ey(t)&&ct(n)?!1:t in e}const Oy={};/*! #__NO_SIDE_EFFECTS__ */function Vb(e,t,n){const r=fn(e,t);Fc(r)&&At(r,t);class s extends td{constructor(o){super(r,o,n)}}return s.def=r,s}/*! #__NO_SIDE_EFFECTS__ */const J3=(e,t)=>Vb(e,t,Yb),Z3=typeof HTMLElement<"u"?HTMLElement:class{};class td extends Z3{constructor(t,n={},r=_c){super(),this._def=t,this._props=n,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&r!==_c?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this,this._def.__asyncLoader||this._resolveProps(this._def)}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof td){this._parent=t;break}this._instance||(this._resolved?(this._setParent(),this._update()):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._instance.provides=t._instance.provides)}disconnectedCallback(){this._connected=!1,Hn(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let r=0;r{for(const s of r)this._setAttr(s.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,s=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:a,styles:o}=r;let u;if(a&&!Ye(a))for(const d in a){const h=a[d];(h===Number||h&&h.type===Number)&&(d in this._props&&(this._props[d]=ic(this._props[d])),(u||(u=Object.create(null)))[Jt(d)]=!0)}this._numberProps=u,s&&this._resolveProps(r),this.shadowRoot&&this._applyStyles(o),this._mount(r)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(r=>t(this._def=r,!0)):t(this._def)}_mount(t){this._app=this._createApp(t),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const r in n)Dt(this,r)||Object.defineProperty(this,r,{get:()=>Z(n[r])})}_resolveProps(t){const{props:n}=t,r=Ye(n)?n:Object.keys(n||{});for(const s of Object.keys(this))s[0]!=="_"&&r.includes(s)&&this._setProp(s,this[s]);for(const s of r.map(Jt))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(a){this._setProp(s,a,!0,!0)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let r=n?this.getAttribute(t):Oy;const s=Jt(t);n&&this._numberProps&&this._numberProps[s]&&(r=ic(r)),this._setProp(s,r,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,s=!1){if(n!==this._props[t]&&(n===Oy?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),s&&this._instance&&this._update(),r)){const a=this._ob;a&&a.disconnect(),n===!0?this.setAttribute(xr(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(xr(t),n+""):n||this.removeAttribute(xr(t)),a&&a.observe(this,{attributes:!0})}}_update(){yc(this._createVNode(),this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=he(this._def,At(t,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const s=(a,o)=>{this.dispatchEvent(new CustomEvent(a,Fc(o[0])?At({detail:o},o[0]):{detail:o}))};r.emit=(a,...o)=>{s(a,o),xr(a)!==a&&s(xr(a),o)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const r=this._nonce;for(let s=t.length-1;s>=0;s--){const a=document.createElement("style");r&&a.setAttribute("nonce",r),a.textContent=t[s],this.shadowRoot.prepend(a)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const r=n.nodeType===1&&n.getAttribute("slot")||"default";(t[r]||(t[r]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=(this._teleportTarget||this).querySelectorAll("slot"),n=this._instance.type.__scopeId;for(let r=0;r(delete e.props.mode,e),tD=eD({name:"TransitionGroup",props:At({},Db,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ss(),r=op();let s,a;return Zc(()=>{if(!s.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!aD(s[0].el,n.vnode.el,o))return;s.forEach(rD),s.forEach(sD);const u=s.filter(iD);Dh(),u.forEach(d=>{const h=d.el,f=h.style;As(h,o),f.transform=f.webkitTransform=f.transitionDuration="";const p=h[vc]=m=>{m&&m.target!==h||(!m||/transform$/.test(m.propertyName))&&(h.removeEventListener("transitionend",p),h[vc]=null,_i(h,o))};h.addEventListener("transitionend",p)})}),()=>{const o=Mt(e),u=Pb(o);let d=o.tag||Ne;if(s=[],a)for(let h=0;h{u.split(/\s+/).forEach(d=>d&&r.classList.remove(d))}),n.split(/\s+/).forEach(u=>u&&r.classList.add(u)),r.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(r);const{hasTransform:o}=Lb(r);return a.removeChild(r),o}const Ii=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ye(t)?n=>sl(t,n):t};function lD(e){e.target.composing=!0}function Ry(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ns=Symbol("_assign"),Ni={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[ns]=Ii(s);const a=r||s.props&&s.props.type==="number";Zs(e,t?"change":"input",o=>{if(o.target.composing)return;let u=e.value;n&&(u=u.trim()),a&&(u=sc(u)),e[ns](u)}),n&&Zs(e,"change",()=>{e.value=e.value.trim()}),t||(Zs(e,"compositionstart",lD),Zs(e,"compositionend",Ry),Zs(e,"change",Ry))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:a}},o){if(e[ns]=Ii(o),e.composing)return;const u=(a||e.type==="number")&&!/^0\d/.test(e.value)?sc(e.value):e.value,d=t??"";u!==d&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===d)||(e.value=d))}},_p={deep:!0,created(e,t,n){e[ns]=Ii(n),Zs(e,"change",()=>{const r=e._modelValue,s=dl(e),a=e.checked,o=e[ns];if(Ye(r)){const u=Hc(r,s),d=u!==-1;if(a&&!d)o(r.concat(s));else if(!a&&d){const h=[...r];h.splice(u,1),o(h)}}else if(xa(r)){const u=new Set(r);a?u.add(s):u.delete(s),o(u)}else o(Hb(e,a))})},mounted:Dy,beforeUpdate(e,t,n){e[ns]=Ii(n),Dy(e,t,n)}};function Dy(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if(Ye(t))s=Hc(t,r.props.value)>-1;else if(xa(t))s=t.has(r.props.value);else{if(t===n)return;s=Pi(t,Hb(e,!0))}e.checked!==s&&(e.checked=s)}const bp={created(e,{value:t},n){e.checked=Pi(t,n.props.value),e[ns]=Ii(n),Zs(e,"change",()=>{e[ns](dl(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[ns]=Ii(r),t!==n&&(e.checked=Pi(t,r.props.value))}},wp={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=xa(t);Zs(e,"change",()=>{const a=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?sc(dl(o)):dl(o));e[ns](e.multiple?s?new Set(a):a:a[0]),e._assigning=!0,Hn(()=>{e._assigning=!1})}),e[ns]=Ii(r)},mounted(e,{value:t}){Py(e,t)},beforeUpdate(e,t,n){e[ns]=Ii(n)},updated(e,{value:t}){e._assigning||Py(e,t)}};function Py(e,t){const n=e.multiple,r=Ye(t);if(!(n&&!r&&!xa(t))){for(let s=0,a=e.options.length;sString(h)===String(u)):o.selected=Hc(t,u)>-1}else o.selected=t.has(u);else if(Pi(dl(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function dl(e){return"_value"in e?e._value:e.value}function Hb(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const xp={created(e,t,n){$u(e,t,n,null,"created")},mounted(e,t,n){$u(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){$u(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){$u(e,t,n,r,"updated")}};function Ub(e,t){switch(e){case"SELECT":return wp;case"TEXTAREA":return Ni;default:switch(t){case"checkbox":return _p;case"radio":return bp;default:return Ni}}}function $u(e,t,n,r,s){const o=Ub(e.tagName,n.props&&n.props.type)[s];o&&o(e,t,n,r)}function oD(){Ni.getSSRProps=({value:e})=>({value:e}),bp.getSSRProps=({value:e},t)=>{if(t.props&&Pi(t.props.value,e))return{checked:!0}},_p.getSSRProps=({value:e},t)=>{if(Ye(e)){if(t.props&&Hc(e,t.props.value)>-1)return{checked:!0}}else if(xa(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},xp.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=Ub(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const uD=["ctrl","shift","alt","meta"],cD={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>uD.some(n=>e[`${n}Key`]&&!t.includes(n))},Et=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...a)=>{for(let o=0;o{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const a=xr(s.key);if(t.some(o=>o===a||dD[o]===a))return e(s)})},jb=At({patchProp:K3},R3);let ao,Ly=!1;function Wb(){return ao||(ao=sb(jb))}function qb(){return ao=Ly?ao:ib(jb),Ly=!0,ao}const yc=(...e)=>{Wb().render(...e)},fD=(...e)=>{qb().hydrate(...e)},_c=(...e)=>{const t=Wb().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Kb(r);if(!s)return;const a=t._component;!st(a)&&!a.render&&!a.template&&(a.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,zb(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t},Yb=(...e)=>{const t=qb().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Kb(r);if(s)return n(s,!0,zb(s))},t};function zb(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Kb(e){return ct(e)?document.querySelector(e):e}let Iy=!1;const hD=()=>{Iy||(Iy=!0,oD(),N3())},pD=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:P_,BaseTransitionPropsValidators:up,Comment:An,DeprecationTypes:E3,EffectScope:ep,ErrorCodes:YM,ErrorTypeStrings:w3,Fragment:Ne,KeepAlive:vR,ReactiveEffect:fo,Static:fa,Suspense:s3,Teleport:O_,Text:Oi,TrackOpTypes:$M,Transition:vs,TransitionGroup:nD,TriggerOpTypes:BM,VueElement:td,assertNumber:qM,callWithAsyncErrorHandling:rs,callWithErrorHandling:Tl,camelize:Jt,capitalize:ka,cloneVNode:Ps,compatUtils:C3,computed:pe,createApp:_c,createBlock:it,createCommentVNode:ie,createElementBlock:I,createElementVNode:v,createHydrationRenderer:ib,createPropsRestProxy:DR,createRenderer:sb,createSSRApp:Yb,createSlots:Bn,createStaticVNode:wb,createTextVNode:mt,createVNode:he,customRef:y_,defineAsyncComponent:mR,defineComponent:fn,defineCustomElement:Vb,defineEmits:kR,defineExpose:SR,defineModel:CR,defineOptions:TR,defineProps:xR,defineSSRCustomElement:J3,defineSlots:AR,devtools:x3,effect:oM,effectScope:aM,getCurrentInstance:ss,getCurrentScope:tp,getCurrentWatcher:HM,getTransitionRawChildren:Kc,guardReactiveProps:qn,h:yp,handleError:Sa,hasInjectionContext:HR,hydrate:fD,hydrateOnIdle:uR,hydrateOnInteraction:hR,hydrateOnMediaQuery:fR,hydrateOnVisible:dR,initCustomFormatter:y3,initDirectivesForSSR:hD,inject:so,isMemoSame:Eb,isProxy:Yc,isReactive:Ci,isReadonly:Li,isRef:Tn,isRuntimeOnly:m3,isShallow:Ur,isVNode:ni,markRaw:m_,mergeDefaults:MR,mergeModels:RR,mergeProps:cn,nextTick:Hn,normalizeClass:$e,normalizeProps:wn,normalizeStyle:bn,onActivated:I_,onBeforeMount:F_,onBeforeUnmount:Xc,onBeforeUpdate:Jc,onDeactivated:N_,onErrorCaptured:U_,onMounted:It,onRenderTracked:H_,onRenderTriggered:B_,onScopeDispose:X0,onServerPrefetch:$_,onUnmounted:ii,onUpdated:Zc,onWatcherCleanup:b_,openBlock:k,popScopeId:ZM,provide:K_,proxyRefs:ap,pushScopeId:JM,queuePostFlushCb:mo,reactive:Hr,readonly:ip,ref:fe,registerRuntimeCompiler:Tb,render:yc,renderList:Qe,renderSlot:Ie,resolveComponent:at,resolveDirective:W_,resolveDynamicComponent:Al,resolveFilter:A3,resolveTransitionHooks:ol,setBlockTracking:Th,setDevtoolsHook:k3,setTransitionHooks:ti,shallowReactive:p_,shallowReadonly:EM,shallowRef:g_,ssrContextKey:ub,ssrUtils:T3,stop:uM,toDisplayString:re,toHandlerKey:rl,toHandlers:bR,toRaw:Mt,toRef:ll,toRefs:LM,toValue:RM,transformVNodeArgs:c3,triggerRef:MM,unref:Z,useAttrs:OR,useCssModule:Q3,useCssVars:V3,useHost:Fb,useId:tR,useModel:ZR,useSSRContext:cb,useShadowRoot:X3,useSlots:Bi,useTemplateRef:nR,useTransitionState:op,vModelCheckbox:_p,vModelDynamic:xp,vModelRadio:bp,vModelSelect:wp,vModelText:Ni,vShow:Vr,version:Ob,warn:b3,watch:qt,watchEffect:db,watchPostEffect:GR,watchSyncEffect:fb,withAsyncContext:PR,withCtx:Te,withDefaults:ER,withDirectives:Dn,withKeys:$n,withMemo:_3,withModifiers:Et,withScopeId:XM},Symbol.toStringTag,{value:"Module"}));/** +* @vue/compiler-core v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const wo=Symbol(""),lo=Symbol(""),kp=Symbol(""),bc=Symbol(""),Gb=Symbol(""),ba=Symbol(""),Jb=Symbol(""),Zb=Symbol(""),Sp=Symbol(""),Tp=Symbol(""),Io=Symbol(""),Ap=Symbol(""),Xb=Symbol(""),Cp=Symbol(""),Ep=Symbol(""),Op=Symbol(""),Mp=Symbol(""),Rp=Symbol(""),Dp=Symbol(""),Qb=Symbol(""),e1=Symbol(""),nd=Symbol(""),wc=Symbol(""),Pp=Symbol(""),Lp=Symbol(""),xo=Symbol(""),No=Symbol(""),Ip=Symbol(""),Lh=Symbol(""),mD=Symbol(""),Ih=Symbol(""),xc=Symbol(""),gD=Symbol(""),vD=Symbol(""),Np=Symbol(""),yD=Symbol(""),_D=Symbol(""),Vp=Symbol(""),t1=Symbol(""),fl={[wo]:"Fragment",[lo]:"Teleport",[kp]:"Suspense",[bc]:"KeepAlive",[Gb]:"BaseTransition",[ba]:"openBlock",[Jb]:"createBlock",[Zb]:"createElementBlock",[Sp]:"createVNode",[Tp]:"createElementVNode",[Io]:"createCommentVNode",[Ap]:"createTextVNode",[Xb]:"createStaticVNode",[Cp]:"resolveComponent",[Ep]:"resolveDynamicComponent",[Op]:"resolveDirective",[Mp]:"resolveFilter",[Rp]:"withDirectives",[Dp]:"renderList",[Qb]:"renderSlot",[e1]:"createSlots",[nd]:"toDisplayString",[wc]:"mergeProps",[Pp]:"normalizeClass",[Lp]:"normalizeStyle",[xo]:"normalizeProps",[No]:"guardReactiveProps",[Ip]:"toHandlers",[Lh]:"camelize",[mD]:"capitalize",[Ih]:"toHandlerKey",[xc]:"setBlockTracking",[gD]:"pushScopeId",[vD]:"popScopeId",[Np]:"withCtx",[yD]:"unref",[_D]:"isRef",[Vp]:"withMemo",[t1]:"isMemoSame"};function bD(e){Object.getOwnPropertySymbols(e).forEach(t=>{fl[t]=e[t]})}const Wr={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function wD(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:Wr}}function ko(e,t,n,r,s,a,o,u=!1,d=!1,h=!1,f=Wr){return e&&(u?(e.helper(ba),e.helper(ml(e.inSSR,h))):e.helper(pl(e.inSSR,h)),o&&e.helper(Rp)),{type:13,tag:t,props:n,children:r,patchFlag:s,dynamicProps:a,directives:o,isBlock:u,disableTracking:d,isComponent:h,loc:f}}function ha(e,t=Wr){return{type:17,loc:t,elements:e}}function ts(e,t=Wr){return{type:15,loc:t,properties:e}}function xn(e,t){return{type:16,loc:Wr,key:ct(e)?ht(e,!0):e,value:t}}function ht(e,t=!1,n=Wr,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function ms(e,t=Wr){return{type:8,loc:t,children:e}}function Rn(e,t=[],n=Wr){return{type:14,loc:n,callee:e,arguments:t}}function hl(e,t=void 0,n=!1,r=!1,s=Wr){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:s}}function Nh(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:Wr}}function xD(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:Wr}}function kD(e){return{type:21,body:e,loc:Wr}}function pl(e,t){return e||t?Sp:Tp}function ml(e,t){return e||t?Jb:Zb}function Fp(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(pl(r,e.isComponent)),t(ba),t(ml(r,e.isComponent)))}const Ny=new Uint8Array([123,123]),Vy=new Uint8Array([125,125]);function Fy(e){return e>=97&&e<=122||e>=65&&e<=90}function Ir(e){return e===32||e===10||e===9||e===12||e===13}function gi(e){return e===47||e===62||Ir(e)}function kc(e){const t=new Uint8Array(e.length);for(let n=0;n=0;s--){const a=this.newlines[s];if(t>a){n=s+2,r=t-a;break}}return{column:r,line:n,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?gi(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||Ir(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart=t||(this.state===28?this.currentSequence===Gn.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){}}function $y(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function pa(e,t){const n=$y("MODE",t),r=$y(e,t);return n===3?r===!0:r!==!1}function So(e,t,n,...r){return pa(e,t)}function $p(e){throw e}function n1(e){}function en(e,t,n,r){const s=`https://vuejs.org/error-reference/#compiler-${e}`,a=new SyntaxError(String(s));return a.code=e,a.loc=t,a}const kr=e=>e.type===4&&e.isStatic;function r1(e){switch(e){case"Teleport":case"teleport":return lo;case"Suspense":case"suspense":return kp;case"KeepAlive":case"keep-alive":return bc;case"BaseTransition":case"base-transition":return Gb}}const TD=/^\d|[^\$\w\xA0-\uFFFF]/,Bp=e=>!TD.test(e),AD=/[A-Za-z_$\xA0-\uFFFF]/,CD=/[\.\?\w$\xA0-\uFFFF]/,ED=/\s+[.[]\s*|\s*[.[]\s+/g,s1=e=>e.type===4?e.content:e.loc.source,OD=e=>{const t=s1(e).trim().replace(ED,u=>u.trim());let n=0,r=[],s=0,a=0,o=null;for(let u=0;u|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,RD=e=>MD.test(s1(e)),DD=RD;function es(e,t,n=!1){for(let r=0;rt.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function Wf(e){return e.type===5||e.type===2}function LD(e){return e.type===7&&e.name==="slot"}function Sc(e){return e.type===1&&e.tagType===3}function Tc(e){return e.type===1&&e.tagType===2}const ID=new Set([xo,No]);function a1(e,t=[]){if(e&&!ct(e)&&e.type===14){const n=e.callee;if(!ct(n)&&ID.has(n))return a1(e.arguments[0],t.concat(e))}return[e,t]}function Ac(e,t,n){let r,s=e.type===13?e.props:e.arguments[2],a=[],o;if(s&&!ct(s)&&s.type===14){const u=a1(s);s=u[0],a=u[1],o=a[a.length-1]}if(s==null||ct(s))r=ts([t]);else if(s.type===14){const u=s.arguments[0];!ct(u)&&u.type===15?By(t,u)||u.properties.unshift(t):s.callee===Ip?r=Rn(n.helper(wc),[ts([t]),s]):s.arguments.unshift(ts([t])),!r&&(r=s)}else s.type===15?(By(t,s)||s.properties.unshift(t),r=s):(r=Rn(n.helper(wc),[ts([t]),s]),o&&o.callee===No&&(o=a[a.length-2]));e.type===13?o?o.arguments[0]=r:e.props=r:o?o.arguments[0]=r:e.arguments[2]=r}function By(e,t){let n=!1;if(e.key.type===4){const r=e.key.content;n=t.properties.some(s=>s.key.type===4&&s.key.content===r)}return n}function To(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function ND(e){return e.type===14&&e.callee===Vp?e.arguments[1].returns:e}const VD=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,l1={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:Zl,isPreTag:Zl,isIgnoreNewlineTag:Zl,isCustomElement:Zl,onError:$p,onWarn:n1,comments:!1,prefixIdentifiers:!1};let Pt=l1,Ao=null,Qs="",Zn=null,Ot=null,_r="",Ys=-1,na=-1,Hp=0,Si=!1,Vh=null;const Qt=[],un=new SD(Qt,{onerr:qs,ontext(e,t){Bu(Wn(e,t),e,t)},ontextentity(e,t,n){Bu(e,t,n)},oninterpolation(e,t){if(Si)return Bu(Wn(e,t),e,t);let n=e+un.delimiterOpen.length,r=t-un.delimiterClose.length;for(;Ir(Qs.charCodeAt(n));)n++;for(;Ir(Qs.charCodeAt(r-1));)r--;let s=Wn(n,r);s.includes("&")&&(s=Pt.decodeEntities(s,!1)),Fh({type:5,content:Qu(s,!1,yn(n,r)),loc:yn(e,t)})},onopentagname(e,t){const n=Wn(e,t);Zn={type:1,tag:n,ns:Pt.getNamespace(n,Qt[0],Pt.ns),tagType:0,props:[],children:[],loc:yn(e-1,t),codegenNode:void 0}},onopentagend(e){Uy(e)},onclosetag(e,t){const n=Wn(e,t);if(!Pt.isVoidTag(n)){let r=!1;for(let s=0;s0&&qs(24,Qt[0].loc.start.offset);for(let o=0;o<=s;o++){const u=Qt.shift();Xu(u,t,o(r.type===7?r.rawName:r.name)===n)&&qs(2,t)},onattribend(e,t){if(Zn&&Ot){if(la(Ot.loc,t),e!==0)if(_r.includes("&")&&(_r=Pt.decodeEntities(_r,!0)),Ot.type===6)Ot.name==="class"&&(_r=c1(_r).trim()),e===1&&!_r&&qs(13,t),Ot.value={type:2,content:_r,loc:e===1?yn(Ys,na):yn(Ys-1,na+1)},un.inSFCRoot&&Zn.tag==="template"&&Ot.name==="lang"&&_r&&_r!=="html"&&un.enterRCDATA(kc("s.content==="sync"))>-1&&So("COMPILER_V_BIND_SYNC",Pt,Ot.loc,Ot.rawName)&&(Ot.name="model",Ot.modifiers.splice(r,1))}(Ot.type!==7||Ot.name!=="pre")&&Zn.props.push(Ot)}_r="",Ys=na=-1},oncomment(e,t){Pt.comments&&Fh({type:3,content:Wn(e,t),loc:yn(e-4,t+3)})},onend(){const e=Qs.length;for(let t=0;t{const w=t.start.offset+m,_=w+p.length;return Qu(p,!1,yn(w,_),0,y?1:0)},u={source:o(a.trim(),n.indexOf(a,s.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let d=s.trim().replace(FD,"").trim();const h=s.indexOf(d),f=d.match(Hy);if(f){d=d.replace(Hy,"").trim();const p=f[1].trim();let m;if(p&&(m=n.indexOf(p,h+d.length),u.key=o(p,m,!0)),f[2]){const y=f[2].trim();y&&(u.index=o(y,n.indexOf(y,u.key?m+p.length:h+d.length),!0))}}return d&&(u.value=o(d,h,!0)),u}function Wn(e,t){return Qs.slice(e,t)}function Uy(e){un.inSFCRoot&&(Zn.innerLoc=yn(e+1,e+1)),Fh(Zn);const{tag:t,ns:n}=Zn;n===0&&Pt.isPreTag(t)&&Hp++,Pt.isVoidTag(t)?Xu(Zn,e):(Qt.unshift(Zn),(n===1||n===2)&&(un.inXML=!0)),Zn=null}function Bu(e,t,n){{const a=Qt[0]&&Qt[0].tag;a!=="script"&&a!=="style"&&e.includes("&")&&(e=Pt.decodeEntities(e,!1))}const r=Qt[0]||Ao,s=r.children[r.children.length-1];s&&s.type===2?(s.content+=e,la(s.loc,n)):r.children.push({type:2,content:e,loc:yn(t,n)})}function Xu(e,t,n=!1){n?la(e.loc,o1(t,60)):la(e.loc,BD(t,62)+1),un.inSFCRoot&&(e.children.length?e.innerLoc.end=At({},e.children[e.children.length-1].loc.end):e.innerLoc.end=At({},e.innerLoc.start),e.innerLoc.source=Wn(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:s,children:a}=e;if(Si||(r==="slot"?e.tagType=2:jy(e)?e.tagType=3:UD(e)&&(e.tagType=1)),un.inRCDATA||(e.children=u1(a)),s===0&&Pt.isIgnoreNewlineTag(r)){const o=a[0];o&&o.type===2&&(o.content=o.content.replace(/^\r?\n/,""))}s===0&&Pt.isPreTag(r)&&Hp--,Vh===e&&(Si=un.inVPre=!1,Vh=null),un.inXML&&(Qt[0]?Qt[0].ns:Pt.ns)===0&&(un.inXML=!1);{const o=e.props;if(!un.inSFCRoot&&pa("COMPILER_NATIVE_TEMPLATE",Pt)&&e.tag==="template"&&!jy(e)){const d=Qt[0]||Ao,h=d.children.indexOf(e);d.children.splice(h,1,...e.children)}const u=o.find(d=>d.type===6&&d.name==="inline-template");u&&So("COMPILER_INLINE_TEMPLATE",Pt,u.loc)&&e.children.length&&(u.value={type:2,content:Wn(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:u.loc})}}function BD(e,t){let n=e;for(;Qs.charCodeAt(n)!==t&&n=0;)n--;return n}const HD=new Set(["if","else","else-if","for","slot"]);function jy({tag:e,props:t}){if(e==="template"){for(let n=0;n64&&e<91}const WD=/\r\n/g;function u1(e,t){const n=Pt.whitespace!=="preserve";let r=!1;for(let s=0;s0){if(m>=2){p.codegenNode.patchFlag=-1,o.push(p);continue}}else{const y=p.codegenNode;if(y.type===13){const w=y.patchFlag;if((w===void 0||w===512||w===1)&&h1(p,n)>=2){const _=p1(p);_&&(y.props=n.hoist(_))}y.dynamicProps&&(y.dynamicProps=n.hoist(y.dynamicProps))}}}else if(p.type===12&&(r?0:Fr(p,n))>=2){o.push(p);continue}if(p.type===1){const m=p.tagType===1;m&&n.scopes.vSlot++,ec(p,e,n,!1,s),m&&n.scopes.vSlot--}else if(p.type===11)ec(p,e,n,p.children.length===1,!0);else if(p.type===9)for(let m=0;my.key===p||y.key.content===p);return m&&m.value}}o.length&&n.transformHoist&&n.transformHoist(a,n,e)}function Fr(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const r=n.get(e);if(r!==void 0)return r;const s=e.codegenNode;if(s.type!==13||s.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(s.patchFlag===void 0){let o=3;const u=h1(e,t);if(u===0)return n.set(e,0),0;u1)for(let d=0;dse&&(M.childIndex--,M.onNodeRemoved()),M.parent.children.splice(se,1)},onNodeRemoved:Yn,addIdentifiers(S){},removeIdentifiers(S){},hoist(S){ct(S)&&(S=ht(S)),M.hoists.push(S);const H=ht(`_hoisted_${M.hoists.length}`,!1,S.loc,2);return H.hoisted=S,H},cache(S,H=!1,se=!1){const ee=xD(M.cached.length,S,H,se);return M.cached.push(ee),ee}};return M.filters=new Set,M}function eP(e,t){const n=QD(e,t);sd(e,n),t.hoistStatic&&ZD(e,n),t.ssr||tP(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function tP(e,t){const{helper:n}=t,{children:r}=e;if(r.length===1){const s=r[0];if(d1(e,s)&&s.codegenNode){const a=s.codegenNode;a.type===13&&Fp(a,t),e.codegenNode=a}else e.codegenNode=s}else if(r.length>1){let s=64;e.codegenNode=ko(t,n(wo),void 0,e.children,s,void 0,void 0,!0,void 0,!1)}}function nP(e,t){let n=0;const r=()=>{n--};for(;nr===e:r=>e.test(r);return(r,s)=>{if(r.type===1){const{props:a}=r;if(r.tagType===3&&a.some(LD))return;const o=[];for(let u=0;u`${fl[e]}: _${fl[e]}`;function rP(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:r=!1,filename:s="template.vue.html",scopeId:a=null,optimizeImports:o=!1,runtimeGlobalName:u="Vue",runtimeModuleName:d="vue",ssrRuntimeModuleName:h="vue/server-renderer",ssr:f=!1,isTS:p=!1,inSSR:m=!1}){const y={mode:t,prefixIdentifiers:n,sourceMap:r,filename:s,scopeId:a,optimizeImports:o,runtimeGlobalName:u,runtimeModuleName:d,ssrRuntimeModuleName:h,ssr:f,isTS:p,inSSR:m,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(_){return`_${fl[_]}`},push(_,E=-2,U){y.code+=_},indent(){w(++y.indentLevel)},deindent(_=!1){_?--y.indentLevel:w(--y.indentLevel)},newline(){w(y.indentLevel)}};function w(_){y.push(` +`+" ".repeat(_),0)}return y}function sP(e,t={}){const n=rP(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:s,prefixIdentifiers:a,indent:o,deindent:u,newline:d,scopeId:h,ssr:f}=n,p=Array.from(e.helpers),m=p.length>0,y=!a&&r!=="module";iP(e,n);const _=f?"ssrRender":"render",U=(f?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(s(`function ${_}(${U}) {`),o(),y&&(s("with (_ctx) {"),o(),m&&(s(`const { ${p.map(g1).join(", ")} } = _Vue +`,-1),d())),e.components.length&&(qf(e.components,"component",n),(e.directives.length||e.temps>0)&&d()),e.directives.length&&(qf(e.directives,"directive",n),e.temps>0&&d()),e.filters&&e.filters.length&&(d(),qf(e.filters,"filter",n),d()),e.temps>0){s("let ");for(let V=0;V0?", ":""}_temp${V}`)}return(e.components.length||e.directives.length||e.temps)&&(s(` +`,0),d()),f||s("return "),e.codegenNode?rr(e.codegenNode,n):s("null"),y&&(u(),s("}")),u(),s("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function iP(e,t){const{ssr:n,prefixIdentifiers:r,push:s,newline:a,runtimeModuleName:o,runtimeGlobalName:u,ssrRuntimeModuleName:d}=t,h=u,f=Array.from(e.helpers);if(f.length>0&&(s(`const _Vue = ${h} +`,-1),e.hoists.length)){const p=[Sp,Tp,Io,Ap,Xb].filter(m=>f.includes(m)).map(g1).join(", ");s(`const { ${p} } = _Vue +`,-1)}aP(e.hoists,t),a(),s("return ")}function qf(e,t,{helper:n,push:r,newline:s,isTS:a}){const o=n(t==="filter"?Mp:t==="component"?Cp:Op);for(let u=0;u3||!1;t.push("["),n&&t.indent(),Vo(e,t,n),n&&t.deindent(),t.push("]")}function Vo(e,t,n=!1,r=!0){const{push:s,newline:a}=t;for(let o=0;on||"null")}function hP(e,t){const{push:n,helper:r,pure:s}=t,a=ct(e.callee)?e.callee:r(e.callee);s&&n(id),n(a+"(",-2,e),Vo(e.arguments,t),n(")")}function pP(e,t){const{push:n,indent:r,deindent:s,newline:a}=t,{properties:o}=e;if(!o.length){n("{}",-2,e);return}const u=o.length>1||!1;n(u?"{":"{ "),u&&r();for(let d=0;d "),(d||u)&&(n("{"),r()),o?(d&&n("return "),Ye(o)?Up(o,t):rr(o,t)):u&&rr(u,t),(d||u)&&(s(),n("}")),h&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function vP(e,t){const{test:n,consequent:r,alternate:s,newline:a}=e,{push:o,indent:u,deindent:d,newline:h}=t;if(n.type===4){const p=!Bp(n.content);p&&o("("),v1(n,t),p&&o(")")}else o("("),rr(n,t),o(")");a&&u(),t.indentLevel++,a||o(" "),o("? "),rr(r,t),t.indentLevel--,a&&h(),a||o(" "),o(": ");const f=s.type===19;f||t.indentLevel++,rr(s,t),f||t.indentLevel--,a&&d(!0)}function yP(e,t){const{push:n,helper:r,indent:s,deindent:a,newline:o}=t,{needPauseTracking:u,needArraySpread:d}=e;d&&n("[...("),n(`_cache[${e.index}] || (`),u&&(s(),n(`${r(xc)}(-1`),e.inVOnce&&n(", true"),n("),"),o(),n("(")),n(`_cache[${e.index}] = `),rr(e.value,t),u&&(n(`).cacheIndex = ${e.index},`),o(),n(`${r(xc)}(1),`),o(),n(`_cache[${e.index}]`),a()),n(")"),d&&n(")]")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const _P=m1(/^(if|else|else-if)$/,(e,t,n)=>bP(e,t,n,(r,s,a)=>{const o=n.parent.children;let u=o.indexOf(r),d=0;for(;u-->=0;){const h=o[u];h&&h.type===9&&(d+=h.branches.length)}return()=>{if(a)r.codegenNode=qy(s,d,n);else{const h=wP(r.codegenNode);h.alternate=qy(s,d+r.branches.length-1,n)}}}));function bP(e,t,n,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const s=t.exp?t.exp.loc:e.loc;n.onError(en(28,t.loc)),t.exp=ht("true",!1,s)}if(t.name==="if"){const s=Wy(e,t),a={type:9,loc:zD(e.loc),branches:[s]};if(n.replaceNode(a),r)return r(a,s,!0)}else{const s=n.parent.children;let a=s.indexOf(e);for(;a-->=-1;){const o=s[a];if(o&&o.type===3){n.removeNode(o);continue}if(o&&o.type===2&&!o.content.trim().length){n.removeNode(o);continue}if(o&&o.type===9){t.name==="else-if"&&o.branches[o.branches.length-1].condition===void 0&&n.onError(en(30,e.loc)),n.removeNode();const u=Wy(e,t);o.branches.push(u);const d=r&&r(o,u,!1);sd(u,n),d&&d(),n.currentNode=null}else n.onError(en(30,e.loc));break}}}function Wy(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!es(e,"for")?e.children:[e],userKey:rd(e,"key"),isTemplateIf:n}}function qy(e,t,n){return e.condition?Nh(e.condition,Yy(e,t,n),Rn(n.helper(Io),['""',"true"])):Yy(e,t,n)}function Yy(e,t,n){const{helper:r}=n,s=xn("key",ht(`${t}`,!1,Wr,2)),{children:a}=e,o=a[0];if(a.length!==1||o.type!==1)if(a.length===1&&o.type===11){const d=o.codegenNode;return Ac(d,s,n),d}else return ko(n,r(wo),ts([s]),a,64,void 0,void 0,!0,!1,!1,e.loc);else{const d=o.codegenNode,h=ND(d);return h.type===13&&Fp(h,n),Ac(h,s,n),d}}function wP(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const xP=(e,t,n)=>{const{modifiers:r,loc:s}=e,a=e.arg;let{exp:o}=e;if(o&&o.type===4&&!o.content.trim()&&(o=void 0),!o){if(a.type!==4||!a.isStatic)return n.onError(en(52,a.loc)),{props:[xn(a,ht("",!0,s))]};_1(e),o=e.exp}return a.type!==4?(a.children.unshift("("),a.children.push(') || ""')):a.isStatic||(a.content=`${a.content} || ""`),r.some(u=>u.content==="camel")&&(a.type===4?a.isStatic?a.content=Jt(a.content):a.content=`${n.helperString(Lh)}(${a.content})`:(a.children.unshift(`${n.helperString(Lh)}(`),a.children.push(")"))),n.inSSR||(r.some(u=>u.content==="prop")&&zy(a,"."),r.some(u=>u.content==="attr")&&zy(a,"^")),{props:[xn(a,o)]}},_1=(e,t)=>{const n=e.arg,r=Jt(n.content);e.exp=ht(r,!1,n.loc)},zy=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},kP=m1("for",(e,t,n)=>{const{helper:r,removeHelper:s}=n;return SP(e,t,n,a=>{const o=Rn(r(Dp),[a.source]),u=Sc(e),d=es(e,"memo"),h=rd(e,"key",!1,!0);h&&h.type===7&&!h.exp&&_1(h);let p=h&&(h.type===6?h.value?ht(h.value.content,!0):void 0:h.exp);const m=h&&p?xn("key",p):null,y=a.source.type===4&&a.source.constType>0,w=y?64:h?128:256;return a.codegenNode=ko(n,r(wo),void 0,o,w,void 0,void 0,!0,!y,!1,e.loc),()=>{let _;const{children:E}=a,U=E.length!==1||E[0].type!==1,V=Tc(e)?e:u&&e.children.length===1&&Tc(e.children[0])?e.children[0]:null;if(V?(_=V.codegenNode,u&&m&&Ac(_,m,n)):U?_=ko(n,r(wo),m?ts([m]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(_=E[0].codegenNode,u&&m&&Ac(_,m,n),_.isBlock!==!y&&(_.isBlock?(s(ba),s(ml(n.inSSR,_.isComponent))):s(pl(n.inSSR,_.isComponent))),_.isBlock=!y,_.isBlock?(r(ba),r(ml(n.inSSR,_.isComponent))):r(pl(n.inSSR,_.isComponent))),d){const x=hl($h(a.parseResult,[ht("_cached")]));x.body=kD([ms(["const _memo = (",d.exp,")"]),ms(["if (_cached",...p?[" && _cached.key === ",p]:[],` && ${n.helperString(t1)}(_cached, _memo)) return _cached`]),ms(["const _item = ",_]),ht("_item.memo = _memo"),ht("return _item")]),o.arguments.push(x,ht("_cache"),ht(String(n.cached.length))),n.cached.push(null)}else o.arguments.push(hl($h(a.parseResult),_,!0))}})});function SP(e,t,n,r){if(!t.exp){n.onError(en(31,t.loc));return}const s=t.forParseResult;if(!s){n.onError(en(32,t.loc));return}b1(s);const{addIdentifiers:a,removeIdentifiers:o,scopes:u}=n,{source:d,value:h,key:f,index:p}=s,m={type:11,loc:t.loc,source:d,valueAlias:h,keyAlias:f,objectIndexAlias:p,parseResult:s,children:Sc(e)?e.children:[e]};n.replaceNode(m),u.vFor++;const y=r&&r(m);return()=>{u.vFor--,y&&y()}}function b1(e,t){e.finalized||(e.finalized=!0)}function $h({value:e,key:t,index:n},r=[]){return TP([e,t,n,...r])}function TP(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,r)=>n||ht("_".repeat(r+1),!1))}const Ky=ht("undefined",!1),AP=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=es(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},CP=(e,t,n,r)=>hl(e,n,!1,!0,n.length?n[0].loc:r);function EP(e,t,n=CP){t.helper(Np);const{children:r,loc:s}=e,a=[],o=[];let u=t.scopes.vSlot>0||t.scopes.vFor>0;const d=es(e,"slot",!0);if(d){const{arg:E,exp:U}=d;E&&!kr(E)&&(u=!0),a.push(xn(E||ht("default",!0),n(U,void 0,r,s)))}let h=!1,f=!1;const p=[],m=new Set;let y=0;for(let E=0;E{const x=n(U,void 0,V,s);return t.compatConfig&&(x.isNonScopedSlot=!0),xn("default",x)};h?p.length&&p.some(U=>w1(U))&&(f?t.onError(en(39,p[0].loc)):a.push(E(void 0,p))):a.push(E(void 0,r))}const w=u?2:tc(e.children)?3:1;let _=ts(a.concat(xn("_",ht(w+"",!1))),s);return o.length&&(_=Rn(t.helper(e1),[_,ha(o)])),{slots:_,hasDynamicSlots:u}}function Hu(e,t,n){const r=[xn("name",e),xn("fn",t)];return n!=null&&r.push(xn("key",ht(String(n),!0))),ts(r)}function tc(e){for(let t=0;tfunction(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:s}=e,a=e.tagType===1;let o=a?MP(e,t):`"${r}"`;const u=Ht(o)&&o.callee===Ep;let d,h,f=0,p,m,y,w=u||o===lo||o===kp||!a&&(r==="svg"||r==="foreignObject"||r==="math");if(s.length>0){const _=k1(e,t,void 0,a,u);d=_.props,f=_.patchFlag,m=_.dynamicPropNames;const E=_.directives;y=E&&E.length?ha(E.map(U=>DP(U,t))):void 0,_.shouldUseBlock&&(w=!0)}if(e.children.length>0)if(o===bc&&(w=!0,f|=1024),a&&o!==lo&&o!==bc){const{slots:E,hasDynamicSlots:U}=EP(e,t);h=E,U&&(f|=1024)}else if(e.children.length===1&&o!==lo){const E=e.children[0],U=E.type,V=U===5||U===8;V&&Fr(E,t)===0&&(f|=1),V||U===2?h=E:h=e.children}else h=e.children;m&&m.length&&(p=PP(m)),e.codegenNode=ko(t,o,d,h,f===0?void 0:f,p,y,!!w,!1,a,e.loc)};function MP(e,t,n=!1){let{tag:r}=e;const s=Bh(r),a=rd(e,"is",!1,!0);if(a)if(s||pa("COMPILER_IS_ON_ELEMENT",t)){let u;if(a.type===6?u=a.value&&ht(a.value.content,!0):(u=a.exp,u||(u=ht("is",!1,a.arg.loc))),u)return Rn(t.helper(Ep),[u])}else a.type===6&&a.value.content.startsWith("vue:")&&(r=a.value.content.slice(4));const o=r1(r)||t.isBuiltInComponent(r);return o?(n||t.helper(o),o):(t.helper(Cp),t.components.add(r),To(r,"component"))}function k1(e,t,n=e.props,r,s,a=!1){const{tag:o,loc:u,children:d}=e;let h=[];const f=[],p=[],m=d.length>0;let y=!1,w=0,_=!1,E=!1,U=!1,V=!1,x=!1,A=!1;const F=[],B=H=>{h.length&&(f.push(ts(Gy(h),u)),h=[]),H&&f.push(H)},$=()=>{t.scopes.vFor>0&&h.push(xn(ht("ref_for",!0),ht("true")))},M=({key:H,value:se})=>{if(kr(H)){const ee=H.content,ne=wa(ee);if(ne&&(!r||s)&&ee.toLowerCase()!=="onclick"&&ee!=="onUpdate:modelValue"&&!Ai(ee)&&(V=!0),ne&&Ai(ee)&&(A=!0),ne&&se.type===14&&(se=se.arguments[0]),se.type===20||(se.type===4||se.type===8)&&Fr(se,t)>0)return;ee==="ref"?_=!0:ee==="class"?E=!0:ee==="style"?U=!0:ee!=="key"&&!F.includes(ee)&&F.push(ee),r&&(ee==="class"||ee==="style")&&!F.includes(ee)&&F.push(ee)}else x=!0};for(let H=0;HDe.content==="prop")&&(w|=32);const be=t.directiveTransforms[ee];if(be){const{props:De,needRuntime:He}=be(se,e,t);!a&&De.forEach(M),te&&ne&&!kr(ne)?B(ts(De,u)):h.push(...De),He&&(p.push(se),Cr(He)&&x1.set(se,He))}else BO(ee)||(p.push(se),m&&(y=!0))}}let S;if(f.length?(B(),f.length>1?S=Rn(t.helper(wc),f,u):S=f[0]):h.length&&(S=ts(Gy(h),u)),x?w|=16:(E&&!r&&(w|=2),U&&!r&&(w|=4),F.length&&(w|=8),V&&(w|=32)),!y&&(w===0||w===32)&&(_||A||p.length>0)&&(w|=512),!t.inSSR&&S)switch(S.type){case 15:let H=-1,se=-1,ee=!1;for(let P=0;Pxn(o,a)),s))}return ha(n,e.loc)}function PP(e){let t="[";for(let n=0,r=e.length;n{if(Tc(e)){const{children:n,loc:r}=e,{slotName:s,slotProps:a}=IP(e,t),o=[t.prefixIdentifiers?"_ctx.$slots":"$slots",s,"{}","undefined","true"];let u=2;a&&(o[2]=a,u=3),n.length&&(o[3]=hl([],n,!1,!1,r),u=4),t.scopeId&&!t.slotted&&(u=5),o.splice(u),e.codegenNode=Rn(t.helper(Qb),o,r)}};function IP(e,t){let n='"default"',r;const s=[];for(let a=0;a0){const{props:a,directives:o}=k1(e,t,s,!1,!1);r=a,o.length&&t.onError(en(36,o[0].loc))}return{slotName:n,slotProps:r}}const S1=(e,t,n,r)=>{const{loc:s,modifiers:a,arg:o}=e;!e.exp&&!a.length&&n.onError(en(35,s));let u;if(o.type===4)if(o.isStatic){let p=o.content;p.startsWith("vue:")&&(p=`vnode-${p.slice(4)}`);const m=t.tagType!==0||p.startsWith("vnode")||!/[A-Z]/.test(p)?rl(Jt(p)):`on:${p}`;u=ht(m,!0,o.loc)}else u=ms([`${n.helperString(Ih)}(`,o,")"]);else u=o,u.children.unshift(`${n.helperString(Ih)}(`),u.children.push(")");let d=e.exp;d&&!d.content.trim()&&(d=void 0);let h=n.cacheHandlers&&!d&&!n.inVOnce;if(d){const p=i1(d),m=!(p||DD(d)),y=d.content.includes(";");(m||h&&p)&&(d=ms([`${m?"$event":"(...args)"} => ${y?"{":"("}`,d,y?"}":")"]))}let f={props:[xn(u,d||ht("() => {}",!1,s))]};return r&&(f=r(f)),h&&(f.props[0].value=n.cache(f.props[0].value)),f.props.forEach(p=>p.key.isHandlerKey=!0),f},NP=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let r,s=!1;for(let a=0;aa.type===7&&!t.directiveTransforms[a.name])&&e.tag!=="template")))for(let a=0;a{if(e.type===1&&es(e,"once",!0))return Jy.has(e)||t.inVOnce||t.inSSR?void 0:(Jy.add(e),t.inVOnce=!0,t.helper(xc),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0,!0))})},T1=(e,t,n)=>{const{exp:r,arg:s}=e;if(!r)return n.onError(en(41,e.loc)),Uu();const a=r.loc.source.trim(),o=r.type===4?r.content:a,u=n.bindingMetadata[a];if(u==="props"||u==="props-aliased")return n.onError(en(44,r.loc)),Uu();if(!o.trim()||!i1(r))return n.onError(en(42,r.loc)),Uu();const d=s||ht("modelValue",!0),h=s?kr(s)?`onUpdate:${Jt(s.content)}`:ms(['"onUpdate:" + ',s]):"onUpdate:modelValue";let f;const p=n.isTS?"($event: any)":"$event";f=ms([`${p} => ((`,r,") = $event)"]);const m=[xn(d,e.exp),xn(h,f)];if(e.modifiers.length&&t.tagType===1){const y=e.modifiers.map(_=>_.content).map(_=>(Bp(_)?_:JSON.stringify(_))+": true").join(", "),w=s?kr(s)?`${s.content}Modifiers`:ms([s,' + "Modifiers"']):"modelModifiers";m.push(xn(w,ht(`{ ${y} }`,!1,e.loc,2)))}return Uu(m)};function Uu(e=[]){return{props:e}}const FP=/[\w).+\-_$\]]/,$P=(e,t)=>{pa("COMPILER_FILTERS",t)&&(e.type===5?Cc(e.content,t):e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&Cc(n.exp,t)}))};function Cc(e,t){if(e.type===4)Zy(e,t);else for(let n=0;n=0&&(V=n.charAt(U),V===" ");U--);(!V||!FP.test(V))&&(o=!0)}}w===void 0?w=n.slice(0,y).trim():f!==0&&E();function E(){_.push(n.slice(f,y).trim()),f=y+1}if(_.length){for(y=0;y<_.length;y++)w=BP(w,_[y],t);e.content=w,e.ast=void 0}}function BP(e,t,n){n.helper(Mp);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${To(t,"filter")}(${e})`;{const s=t.slice(0,r),a=t.slice(r+1);return n.filters.add(s),`${To(s,"filter")}(${e}${a!==")"?","+a:a}`}}const Xy=new WeakSet,HP=(e,t)=>{if(e.type===1){const n=es(e,"memo");return!n||Xy.has(e)?void 0:(Xy.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&Fp(r,t),e.codegenNode=Rn(t.helper(Vp),[n.exp,hl(void 0,r),"_cache",String(t.cached.length)]),t.cached.push(null))})}};function UP(e){return[[VP,_P,HP,kP,$P,LP,OP,AP,NP],{on:S1,bind:xP,model:T1}]}function jP(e,t={}){const n=t.onError||$p,r=t.mode==="module";t.prefixIdentifiers===!0?n(en(47)):r&&n(en(48));const s=!1;t.cacheHandlers&&n(en(49)),t.scopeId&&!r&&n(en(50));const a=At({},t,{prefixIdentifiers:s}),o=ct(e)?JD(e,a):e,[u,d]=UP();return eP(o,At({},a,{nodeTransforms:[...u,...t.nodeTransforms||[]],directiveTransforms:At({},d,t.directiveTransforms||{})})),sP(o,a)}const WP=()=>({props:[]});/** +* @vue/compiler-dom v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const A1=Symbol(""),C1=Symbol(""),E1=Symbol(""),O1=Symbol(""),Hh=Symbol(""),M1=Symbol(""),R1=Symbol(""),D1=Symbol(""),P1=Symbol(""),L1=Symbol("");bD({[A1]:"vModelRadio",[C1]:"vModelCheckbox",[E1]:"vModelText",[O1]:"vModelSelect",[Hh]:"vModelDynamic",[M1]:"withModifiers",[R1]:"withKeys",[D1]:"vShow",[P1]:"Transition",[L1]:"TransitionGroup"});let Wa;function qP(e,t=!1){return Wa||(Wa=document.createElement("div")),t?(Wa.innerHTML=`
`,Wa.children[0].getAttribute("foo")):(Wa.innerHTML=e,Wa.textContent)}const YP={parseMode:"html",isVoidTag:nM,isNativeTag:e=>QO(e)||eM(e)||tM(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:qP,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return P1;if(e==="TransitionGroup"||e==="transition-group")return L1},getNamespace(e,t,n){let r=t?t.ns:n;if(t&&r===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(s=>s.type===6&&s.name==="encoding"&&s.value!=null&&(s.value.content==="text/html"||s.value.content==="application/xhtml+xml"))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(r=0);else t&&r===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(r=0);if(r===0){if(e==="svg")return 1;if(e==="math")return 2}return r}},zP=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:ht("style",!0,t.loc),exp:KP(t.value.content,t.loc),modifiers:[],loc:t.loc})})},KP=(e,t)=>{const n=K0(e);return ht(JSON.stringify(n),!1,t,3)};function Mi(e,t){return en(e,t)}const GP=(e,t,n)=>{const{exp:r,loc:s}=e;return r||n.onError(Mi(53,s)),t.children.length&&(n.onError(Mi(54,s)),t.children.length=0),{props:[xn(ht("innerHTML",!0,s),r||ht("",!0))]}},JP=(e,t,n)=>{const{exp:r,loc:s}=e;return r||n.onError(Mi(55,s)),t.children.length&&(n.onError(Mi(56,s)),t.children.length=0),{props:[xn(ht("textContent",!0),r?Fr(r,n)>0?r:Rn(n.helperString(nd),[r],s):ht("",!0))]}},ZP=(e,t,n)=>{const r=T1(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(Mi(58,e.arg.loc));const{tag:s}=t,a=n.isCustomElement(s);if(s==="input"||s==="textarea"||s==="select"||a){let o=E1,u=!1;if(s==="input"||a){const d=rd(t,"type");if(d){if(d.type===7)o=Hh;else if(d.value)switch(d.value.content){case"radio":o=A1;break;case"checkbox":o=C1;break;case"file":u=!0,n.onError(Mi(59,e.loc));break}}else PD(t)&&(o=Hh)}else s==="select"&&(o=O1);u||(r.needRuntime=n.helper(o))}else n.onError(Mi(57,e.loc));return r.props=r.props.filter(o=>!(o.key.type===4&&o.key.content==="modelValue")),r},XP=jr("passive,once,capture"),QP=jr("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),eL=jr("left,right"),I1=jr("onkeyup,onkeydown,onkeypress"),tL=(e,t,n,r)=>{const s=[],a=[],o=[];for(let u=0;ukr(e)&&e.content.toLowerCase()==="onclick"?ht(t,!0):e.type!==4?ms(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,nL=(e,t,n)=>S1(e,t,n,r=>{const{modifiers:s}=e;if(!s.length)return r;let{key:a,value:o}=r.props[0];const{keyModifiers:u,nonKeyModifiers:d,eventOptionModifiers:h}=tL(a,s,n,e.loc);if(d.includes("right")&&(a=Qy(a,"onContextmenu")),d.includes("middle")&&(a=Qy(a,"onMouseup")),d.length&&(o=Rn(n.helper(M1),[o,JSON.stringify(d)])),u.length&&(!kr(a)||I1(a.content.toLowerCase()))&&(o=Rn(n.helper(R1),[o,JSON.stringify(u)])),h.length){const f=h.map(ka).join("");a=kr(a)?ht(`${a.content}${f}`,!0):ms(["(",a,`) + "${f}"`])}return{props:[xn(a,o)]}}),rL=(e,t,n)=>{const{exp:r,loc:s}=e;return r||n.onError(Mi(61,s)),{props:[],needRuntime:n.helper(D1)}},sL=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},iL=[zP],aL={cloak:WP,html:GP,text:JP,model:ZP,on:nL,show:rL};function lL(e,t={}){return jP(e,At({},YP,t,{nodeTransforms:[sL,...iL,...t.nodeTransforms||[]],directiveTransforms:At({},aL,t.directiveTransforms||{}),transformHoist:null}))}/** +* vue v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const e0=Object.create(null);function oL(e,t){if(!ct(e))if(e.nodeType)e=e.innerHTML;else return Yn;const n=jO(e,t),r=e0[n];if(r)return r;if(e[0]==="#"){const u=document.querySelector(e);e=u?u.innerHTML:""}const s=At({hoistStatic:!0,onError:void 0,onWarn:Yn},t);!s.isCustomElement&&typeof customElements<"u"&&(s.isCustomElement=u=>!!customElements.get(u));const{code:a}=lL(e,s),o=new Function("Vue",a)(pD);return o._rc=!0,e0[n]=o}Tb(oL);var N1=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function uL(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ec={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */Ec.exports;(function(e,t){(function(){var n,r="4.17.21",s=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",u="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",h=500,f="__lodash_placeholder__",p=1,m=2,y=4,w=1,_=2,E=1,U=2,V=4,x=8,A=16,F=32,B=64,$=128,M=256,S=512,H=30,se="...",ee=800,ne=16,J=1,P=2,z=3,R=1/0,te=9007199254740991,be=17976931348623157e292,De=NaN,He=4294967295,K=He-1,ue=He>>>1,D=[["ary",$],["bind",E],["bindKey",U],["curry",x],["curryRight",A],["flip",S],["partial",F],["partialRight",B],["rearg",M]],le="[object Arguments]",we="[object Array]",Y="[object AsyncFunction]",Le="[object Boolean]",Xe="[object Date]",ye="[object DOMException]",et="[object Error]",W="[object Function]",T="[object GeneratorFunction]",N="[object Map]",G="[object Number]",Q="[object Null]",me="[object Object]",j="[object Promise]",de="[object Proxy]",ve="[object RegExp]",ke="[object Set]",Ae="[object String]",Oe="[object Symbol]",Be="[object Undefined]",Ue="[object WeakMap]",qe="[object WeakSet]",Ge="[object ArrayBuffer]",ot="[object DataView]",_t="[object Float32Array]",an="[object Float64Array]",Zt="[object Int8Array]",Cn="[object Int16Array]",hn="[object Int32Array]",Er="[object Uint8Array]",ws="[object Uint8ClampedArray]",pn="[object Uint16Array]",ce="[object Uint32Array]",Ve=/\b__p \+= '';/g,xe=/\b(__p \+=) '' \+/g,Fe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,We=/&(?:amp|lt|gt|quot|#39);/g,Nn=/[&<>"']/g,pr=RegExp(We.source),Ls=RegExp(Nn.source),Ca=/<%-([\s\S]+?)%>/g,Wi=/<%([\s\S]+?)%>/g,is=/<%=([\s\S]+?)%>/g,El=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,md=/^\w*$/,Lw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gd=/[\\^$.*+?()[\]{}|]/g,Iw=RegExp(gd.source),vd=/^\s+/,Nw=/\s/,Vw=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fw=/\{\n\/\* \[wrapped with (.+)\] \*/,$w=/,? & /,Bw=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Hw=/[()=,{}\[\]\/\s]/,Uw=/\\(\\)?/g,jw=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,um=/\w*$/,Ww=/^[-+]0x[0-9a-f]+$/i,qw=/^0b[01]+$/i,Yw=/^\[object .+?Constructor\]$/,zw=/^0o[0-7]+$/i,Kw=/^(?:0|[1-9]\d*)$/,Gw=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Uo=/($^)/,Jw=/['\n\r\u2028\u2029\\]/g,jo="\\ud800-\\udfff",Zw="\\u0300-\\u036f",Xw="\\ufe20-\\ufe2f",Qw="\\u20d0-\\u20ff",cm=Zw+Xw+Qw,dm="\\u2700-\\u27bf",fm="a-z\\xdf-\\xf6\\xf8-\\xff",ex="\\xac\\xb1\\xd7\\xf7",tx="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",nx="\\u2000-\\u206f",rx=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",hm="A-Z\\xc0-\\xd6\\xd8-\\xde",pm="\\ufe0e\\ufe0f",mm=ex+tx+nx+rx,yd="['’]",sx="["+jo+"]",gm="["+mm+"]",Wo="["+cm+"]",vm="\\d+",ix="["+dm+"]",ym="["+fm+"]",_m="[^"+jo+mm+vm+dm+fm+hm+"]",_d="\\ud83c[\\udffb-\\udfff]",ax="(?:"+Wo+"|"+_d+")",bm="[^"+jo+"]",bd="(?:\\ud83c[\\udde6-\\uddff]){2}",wd="[\\ud800-\\udbff][\\udc00-\\udfff]",Ea="["+hm+"]",wm="\\u200d",xm="(?:"+ym+"|"+_m+")",lx="(?:"+Ea+"|"+_m+")",km="(?:"+yd+"(?:d|ll|m|re|s|t|ve))?",Sm="(?:"+yd+"(?:D|LL|M|RE|S|T|VE))?",Tm=ax+"?",Am="["+pm+"]?",ox="(?:"+wm+"(?:"+[bm,bd,wd].join("|")+")"+Am+Tm+")*",ux="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",cx="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Cm=Am+Tm+ox,dx="(?:"+[ix,bd,wd].join("|")+")"+Cm,fx="(?:"+[bm+Wo+"?",Wo,bd,wd,sx].join("|")+")",hx=RegExp(yd,"g"),px=RegExp(Wo,"g"),xd=RegExp(_d+"(?="+_d+")|"+fx+Cm,"g"),mx=RegExp([Ea+"?"+ym+"+"+km+"(?="+[gm,Ea,"$"].join("|")+")",lx+"+"+Sm+"(?="+[gm,Ea+xm,"$"].join("|")+")",Ea+"?"+xm+"+"+km,Ea+"+"+Sm,cx,ux,vm,dx].join("|"),"g"),gx=RegExp("["+wm+jo+cm+pm+"]"),vx=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,yx=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],_x=-1,Kt={};Kt[_t]=Kt[an]=Kt[Zt]=Kt[Cn]=Kt[hn]=Kt[Er]=Kt[ws]=Kt[pn]=Kt[ce]=!0,Kt[le]=Kt[we]=Kt[Ge]=Kt[Le]=Kt[ot]=Kt[Xe]=Kt[et]=Kt[W]=Kt[N]=Kt[G]=Kt[me]=Kt[ve]=Kt[ke]=Kt[Ae]=Kt[Ue]=!1;var Yt={};Yt[le]=Yt[we]=Yt[Ge]=Yt[ot]=Yt[Le]=Yt[Xe]=Yt[_t]=Yt[an]=Yt[Zt]=Yt[Cn]=Yt[hn]=Yt[N]=Yt[G]=Yt[me]=Yt[ve]=Yt[ke]=Yt[Ae]=Yt[Oe]=Yt[Er]=Yt[ws]=Yt[pn]=Yt[ce]=!0,Yt[et]=Yt[W]=Yt[Ue]=!1;var bx={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},wx={"&":"&","<":"<",">":">",'"':""","'":"'"},xx={"&":"&","<":"<",">":">",""":'"',"'":"'"},kx={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Sx=parseFloat,Tx=parseInt,Em=typeof window=="object"&&window&&window.Object===Object&&window,Ax=typeof self=="object"&&self&&self.Object===Object&&self,Un=Em||Ax||Function("return this")(),kd=t&&!t.nodeType&&t,qi=kd&&!0&&e&&!e.nodeType&&e,Om=qi&&qi.exports===kd,Sd=Om&&Em.process,qr=function(){try{var ae=qi&&qi.require&&qi.require("util").types;return ae||Sd&&Sd.binding&&Sd.binding("util")}catch{}}(),Mm=qr&&qr.isArrayBuffer,Rm=qr&&qr.isDate,Dm=qr&&qr.isMap,Pm=qr&&qr.isRegExp,Lm=qr&&qr.isSet,Im=qr&&qr.isTypedArray;function Or(ae,Se,ge){switch(ge.length){case 0:return ae.call(Se);case 1:return ae.call(Se,ge[0]);case 2:return ae.call(Se,ge[0],ge[1]);case 3:return ae.call(Se,ge[0],ge[1],ge[2])}return ae.apply(Se,ge)}function Cx(ae,Se,ge,Ke){for(var ut=-1,Rt=ae==null?0:ae.length;++ut-1}function Td(ae,Se,ge){for(var Ke=-1,ut=ae==null?0:ae.length;++Ke-1;);return ge}function jm(ae,Se){for(var ge=ae.length;ge--&&Oa(Se,ae[ge],0)>-1;);return ge}function Nx(ae,Se){for(var ge=ae.length,Ke=0;ge--;)ae[ge]===Se&&++Ke;return Ke}var Vx=Od(bx),Fx=Od(wx);function $x(ae){return"\\"+kx[ae]}function Bx(ae,Se){return ae==null?n:ae[Se]}function Ma(ae){return gx.test(ae)}function Hx(ae){return vx.test(ae)}function Ux(ae){for(var Se,ge=[];!(Se=ae.next()).done;)ge.push(Se.value);return ge}function Pd(ae){var Se=-1,ge=Array(ae.size);return ae.forEach(function(Ke,ut){ge[++Se]=[ut,Ke]}),ge}function Wm(ae,Se){return function(ge){return ae(Se(ge))}}function oi(ae,Se){for(var ge=-1,Ke=ae.length,ut=0,Rt=[];++ge-1}function Ok(i,l){var c=this.__data__,g=ou(c,i);return g<0?(++this.size,c.push([i,l])):c[g][1]=l,this}Is.prototype.clear=Tk,Is.prototype.delete=Ak,Is.prototype.get=Ck,Is.prototype.has=Ek,Is.prototype.set=Ok;function Ns(i){var l=-1,c=i==null?0:i.length;for(this.clear();++l=l?i:l)),i}function Gr(i,l,c,g,b,O){var q,X=l&p,oe=l&m,Ce=l&y;if(c&&(q=b?c(i,g,b,O):c(i)),q!==n)return q;if(!tn(i))return i;var Ee=dt(i);if(Ee){if(q=PS(i),!X)return mr(i,q)}else{var Me=Kn(i),je=Me==W||Me==T;if(pi(i))return Ag(i,X);if(Me==me||Me==le||je&&!b){if(q=oe||je?{}:qg(i),!X)return oe?xS(i,qk(q,i)):wS(i,ng(q,i))}else{if(!Yt[Me])return b?i:{};q=LS(i,Me,X)}}O||(O=new ls);var Je=O.get(i);if(Je)return Je;O.set(i,q),bv(i)?i.forEach(function(rt){q.add(Gr(rt,l,c,rt,i,O))}):yv(i)&&i.forEach(function(rt,bt){q.set(bt,Gr(rt,l,c,bt,i,O))});var nt=Ce?oe?af:sf:oe?vr:Vn,gt=Ee?n:nt(i);return Yr(gt||i,function(rt,bt){gt&&(bt=rt,rt=i[bt]),Il(q,bt,Gr(rt,l,c,bt,i,O))}),q}function Yk(i){var l=Vn(i);return function(c){return rg(c,i,l)}}function rg(i,l,c){var g=c.length;if(i==null)return!g;for(i=jt(i);g--;){var b=c[g],O=l[b],q=i[b];if(q===n&&!(b in i)||!O(q))return!1}return!0}function sg(i,l,c){if(typeof i!="function")throw new zr(o);return Ul(function(){i.apply(n,c)},l)}function Nl(i,l,c,g){var b=-1,O=qo,q=!0,X=i.length,oe=[],Ce=l.length;if(!X)return oe;c&&(l=Xt(l,Mr(c))),g?(O=Td,q=!1):l.length>=s&&(O=Ol,q=!1,l=new Ki(l));e:for(;++bb?0:b+c),g=g===n||g>b?b:pt(g),g<0&&(g+=b),g=c>g?0:xv(g);c0&&c(X)?l>1?jn(X,l-1,c,g,b):li(b,X):g||(b[b.length]=X)}return b}var Bd=Dg(),lg=Dg(!0);function xs(i,l){return i&&Bd(i,l,Vn)}function Hd(i,l){return i&&lg(i,l,Vn)}function cu(i,l){return ai(l,function(c){return Hs(i[c])})}function Ji(i,l){l=fi(l,i);for(var c=0,g=l.length;i!=null&&cl}function Gk(i,l){return i!=null&&$t.call(i,l)}function Jk(i,l){return i!=null&&l in jt(i)}function Zk(i,l,c){return i>=zn(l,c)&&i=120&&Ee.length>=120)?new Ki(q&&Ee):n}Ee=i[0];var Me=-1,je=X[0];e:for(;++Me-1;)X!==i&&tu.call(X,oe,1),tu.call(i,oe,1);return i}function yg(i,l){for(var c=i?l.length:0,g=c-1;c--;){var b=l[c];if(c==g||b!==O){var O=b;Bs(b)?tu.call(i,b,1):Zd(i,b)}}return i}function Kd(i,l){return i+su(Xm()*(l-i+1))}function cS(i,l,c,g){for(var b=-1,O=On(ru((l-i)/(c||1)),0),q=ge(O);O--;)q[g?O:++b]=i,i+=c;return q}function Gd(i,l){var c="";if(!i||l<1||l>te)return c;do l%2&&(c+=i),l=su(l/2),l&&(i+=i);while(l);return c}function yt(i,l){return hf(Kg(i,l,yr),i+"")}function dS(i){return tg(Ha(i))}function fS(i,l){var c=Ha(i);return wu(c,Gi(l,0,c.length))}function $l(i,l,c,g){if(!tn(i))return i;l=fi(l,i);for(var b=-1,O=l.length,q=O-1,X=i;X!=null&&++bb?0:b+l),c=c>b?b:c,c<0&&(c+=b),b=l>c?0:c-l>>>0,l>>>=0;for(var O=ge(b);++g>>1,q=i[O];q!==null&&!Dr(q)&&(c?q<=l:q=s){var Ce=l?null:AS(i);if(Ce)return zo(Ce);q=!1,b=Ol,oe=new Ki}else oe=l?[]:X;e:for(;++g=g?i:Jr(i,l,c)}var Tg=rk||function(i){return Un.clearTimeout(i)};function Ag(i,l){if(l)return i.slice();var c=i.length,g=zm?zm(c):new i.constructor(c);return i.copy(g),g}function tf(i){var l=new i.constructor(i.byteLength);return new Qo(l).set(new Qo(i)),l}function vS(i,l){var c=l?tf(i.buffer):i.buffer;return new i.constructor(c,i.byteOffset,i.byteLength)}function yS(i){var l=new i.constructor(i.source,um.exec(i));return l.lastIndex=i.lastIndex,l}function _S(i){return Ll?jt(Ll.call(i)):{}}function Cg(i,l){var c=l?tf(i.buffer):i.buffer;return new i.constructor(c,i.byteOffset,i.length)}function Eg(i,l){if(i!==l){var c=i!==n,g=i===null,b=i===i,O=Dr(i),q=l!==n,X=l===null,oe=l===l,Ce=Dr(l);if(!X&&!Ce&&!O&&i>l||O&&q&&oe&&!X&&!Ce||g&&q&&oe||!c&&oe||!b)return 1;if(!g&&!O&&!Ce&&i=X)return oe;var Ce=c[g];return oe*(Ce=="desc"?-1:1)}}return i.index-l.index}function Og(i,l,c,g){for(var b=-1,O=i.length,q=c.length,X=-1,oe=l.length,Ce=On(O-q,0),Ee=ge(oe+Ce),Me=!g;++X1?c[b-1]:n,q=b>2?c[2]:n;for(O=i.length>3&&typeof O=="function"?(b--,O):n,q&&ir(c[0],c[1],q)&&(O=b<3?n:O,b=1),l=jt(l);++g-1?b[O?l[q]:q]:n}}function Ig(i){return $s(function(l){var c=l.length,g=c,b=Kr.prototype.thru;for(i&&l.reverse();g--;){var O=l[g];if(typeof O!="function")throw new zr(o);if(b&&!q&&_u(O)=="wrapper")var q=new Kr([],!0)}for(g=q?g:c;++g1&&Ct.reverse(),Ee&&oeX))return!1;var Ce=O.get(i),Ee=O.get(l);if(Ce&&Ee)return Ce==l&&Ee==i;var Me=-1,je=!0,Je=c&_?new Ki:n;for(O.set(i,l),O.set(l,i);++Me1?"& ":"")+l[g],l=l.join(c>2?", ":" "),i.replace(Vw,`{ +/* [wrapped with `+l+`] */ +`)}function NS(i){return dt(i)||Qi(i)||!!(Jm&&i&&i[Jm])}function Bs(i,l){var c=typeof i;return l=l??te,!!l&&(c=="number"||c!="symbol"&&Kw.test(i))&&i>-1&&i%1==0&&i0){if(++l>=ee)return arguments[0]}else l=0;return i.apply(n,arguments)}}function wu(i,l){var c=-1,g=i.length,b=g-1;for(l=l===n?g:l;++c1?i[l-1]:n;return c=typeof c=="function"?(i.pop(),c):n,av(i,c)});function lv(i){var l=C(i);return l.__chain__=!0,l}function zT(i,l){return l(i),i}function xu(i,l){return l(i)}var KT=$s(function(i){var l=i.length,c=l?i[0]:0,g=this.__wrapped__,b=function(O){return $d(O,i)};return l>1||this.__actions__.length||!(g instanceof kt)||!Bs(c)?this.thru(b):(g=g.slice(c,+c+(l?1:0)),g.__actions__.push({func:xu,args:[b],thisArg:n}),new Kr(g,this.__chain__).thru(function(O){return l&&!O.length&&O.push(n),O}))});function GT(){return lv(this)}function JT(){return new Kr(this.value(),this.__chain__)}function ZT(){this.__values__===n&&(this.__values__=wv(this.value()));var i=this.__index__>=this.__values__.length,l=i?n:this.__values__[this.__index__++];return{done:i,value:l}}function XT(){return this}function QT(i){for(var l,c=this;c instanceof lu;){var g=ev(c);g.__index__=0,g.__values__=n,l?b.__wrapped__=g:l=g;var b=g;c=c.__wrapped__}return b.__wrapped__=i,l}function e2(){var i=this.__wrapped__;if(i instanceof kt){var l=i;return this.__actions__.length&&(l=new kt(this)),l=l.reverse(),l.__actions__.push({func:xu,args:[pf],thisArg:n}),new Kr(l,this.__chain__)}return this.thru(pf)}function t2(){return kg(this.__wrapped__,this.__actions__)}var n2=pu(function(i,l,c){$t.call(i,c)?++i[c]:Vs(i,c,1)});function r2(i,l,c){var g=dt(i)?Nm:zk;return c&&ir(i,l,c)&&(l=n),g(i,tt(l,3))}function s2(i,l){var c=dt(i)?ai:ag;return c(i,tt(l,3))}var i2=Lg(tv),a2=Lg(nv);function l2(i,l){return jn(ku(i,l),1)}function o2(i,l){return jn(ku(i,l),R)}function u2(i,l,c){return c=c===n?1:pt(c),jn(ku(i,l),c)}function ov(i,l){var c=dt(i)?Yr:ci;return c(i,tt(l,3))}function uv(i,l){var c=dt(i)?Ex:ig;return c(i,tt(l,3))}var c2=pu(function(i,l,c){$t.call(i,c)?i[c].push(l):Vs(i,c,[l])});function d2(i,l,c,g){i=gr(i)?i:Ha(i),c=c&&!g?pt(c):0;var b=i.length;return c<0&&(c=On(b+c,0)),Eu(i)?c<=b&&i.indexOf(l,c)>-1:!!b&&Oa(i,l,c)>-1}var f2=yt(function(i,l,c){var g=-1,b=typeof l=="function",O=gr(i)?ge(i.length):[];return ci(i,function(q){O[++g]=b?Or(l,q,c):Vl(q,l,c)}),O}),h2=pu(function(i,l,c){Vs(i,c,l)});function ku(i,l){var c=dt(i)?Xt:fg;return c(i,tt(l,3))}function p2(i,l,c,g){return i==null?[]:(dt(l)||(l=l==null?[]:[l]),c=g?n:c,dt(c)||(c=c==null?[]:[c]),gg(i,l,c))}var m2=pu(function(i,l,c){i[c?0:1].push(l)},function(){return[[],[]]});function g2(i,l,c){var g=dt(i)?Ad:Bm,b=arguments.length<3;return g(i,tt(l,4),c,b,ci)}function v2(i,l,c){var g=dt(i)?Ox:Bm,b=arguments.length<3;return g(i,tt(l,4),c,b,ig)}function y2(i,l){var c=dt(i)?ai:ag;return c(i,Au(tt(l,3)))}function _2(i){var l=dt(i)?tg:dS;return l(i)}function b2(i,l,c){(c?ir(i,l,c):l===n)?l=1:l=pt(l);var g=dt(i)?Uk:fS;return g(i,l)}function w2(i){var l=dt(i)?jk:pS;return l(i)}function x2(i){if(i==null)return 0;if(gr(i))return Eu(i)?Ra(i):i.length;var l=Kn(i);return l==N||l==ke?i.size:qd(i).length}function k2(i,l,c){var g=dt(i)?Cd:mS;return c&&ir(i,l,c)&&(l=n),g(i,tt(l,3))}var S2=yt(function(i,l){if(i==null)return[];var c=l.length;return c>1&&ir(i,l[0],l[1])?l=[]:c>2&&ir(l[0],l[1],l[2])&&(l=[l[0]]),gg(i,jn(l,1),[])}),Su=sk||function(){return Un.Date.now()};function T2(i,l){if(typeof l!="function")throw new zr(o);return i=pt(i),function(){if(--i<1)return l.apply(this,arguments)}}function cv(i,l,c){return l=c?n:l,l=i&&l==null?i.length:l,Fs(i,$,n,n,n,n,l)}function dv(i,l){var c;if(typeof l!="function")throw new zr(o);return i=pt(i),function(){return--i>0&&(c=l.apply(this,arguments)),i<=1&&(l=n),c}}var gf=yt(function(i,l,c){var g=E;if(c.length){var b=oi(c,$a(gf));g|=F}return Fs(i,g,l,c,b)}),fv=yt(function(i,l,c){var g=E|U;if(c.length){var b=oi(c,$a(fv));g|=F}return Fs(l,g,i,c,b)});function hv(i,l,c){l=c?n:l;var g=Fs(i,x,n,n,n,n,n,l);return g.placeholder=hv.placeholder,g}function pv(i,l,c){l=c?n:l;var g=Fs(i,A,n,n,n,n,n,l);return g.placeholder=pv.placeholder,g}function mv(i,l,c){var g,b,O,q,X,oe,Ce=0,Ee=!1,Me=!1,je=!0;if(typeof i!="function")throw new zr(o);l=Xr(l)||0,tn(c)&&(Ee=!!c.leading,Me="maxWait"in c,O=Me?On(Xr(c.maxWait)||0,l):O,je="trailing"in c?!!c.trailing:je);function Je(gn){var us=g,js=b;return g=b=n,Ce=gn,q=i.apply(js,us),q}function nt(gn){return Ce=gn,X=Ul(bt,l),Ee?Je(gn):q}function gt(gn){var us=gn-oe,js=gn-Ce,Lv=l-us;return Me?zn(Lv,O-js):Lv}function rt(gn){var us=gn-oe,js=gn-Ce;return oe===n||us>=l||us<0||Me&&js>=O}function bt(){var gn=Su();if(rt(gn))return Ct(gn);X=Ul(bt,gt(gn))}function Ct(gn){return X=n,je&&g?Je(gn):(g=b=n,q)}function Pr(){X!==n&&Tg(X),Ce=0,g=oe=b=X=n}function ar(){return X===n?q:Ct(Su())}function Lr(){var gn=Su(),us=rt(gn);if(g=arguments,b=this,oe=gn,us){if(X===n)return nt(oe);if(Me)return Tg(X),X=Ul(bt,l),Je(oe)}return X===n&&(X=Ul(bt,l)),q}return Lr.cancel=Pr,Lr.flush=ar,Lr}var A2=yt(function(i,l){return sg(i,1,l)}),C2=yt(function(i,l,c){return sg(i,Xr(l)||0,c)});function E2(i){return Fs(i,S)}function Tu(i,l){if(typeof i!="function"||l!=null&&typeof l!="function")throw new zr(o);var c=function(){var g=arguments,b=l?l.apply(this,g):g[0],O=c.cache;if(O.has(b))return O.get(b);var q=i.apply(this,g);return c.cache=O.set(b,q)||O,q};return c.cache=new(Tu.Cache||Ns),c}Tu.Cache=Ns;function Au(i){if(typeof i!="function")throw new zr(o);return function(){var l=arguments;switch(l.length){case 0:return!i.call(this);case 1:return!i.call(this,l[0]);case 2:return!i.call(this,l[0],l[1]);case 3:return!i.call(this,l[0],l[1],l[2])}return!i.apply(this,l)}}function O2(i){return dv(2,i)}var M2=gS(function(i,l){l=l.length==1&&dt(l[0])?Xt(l[0],Mr(tt())):Xt(jn(l,1),Mr(tt()));var c=l.length;return yt(function(g){for(var b=-1,O=zn(g.length,c);++b=l}),Qi=ug(function(){return arguments}())?ug:function(i){return ln(i)&&$t.call(i,"callee")&&!Gm.call(i,"callee")},dt=ge.isArray,q2=Mm?Mr(Mm):Qk;function gr(i){return i!=null&&Cu(i.length)&&!Hs(i)}function mn(i){return ln(i)&&gr(i)}function Y2(i){return i===!0||i===!1||ln(i)&&sr(i)==Le}var pi=ak||Ef,z2=Rm?Mr(Rm):eS;function K2(i){return ln(i)&&i.nodeType===1&&!jl(i)}function G2(i){if(i==null)return!0;if(gr(i)&&(dt(i)||typeof i=="string"||typeof i.splice=="function"||pi(i)||Ba(i)||Qi(i)))return!i.length;var l=Kn(i);if(l==N||l==ke)return!i.size;if(Hl(i))return!qd(i).length;for(var c in i)if($t.call(i,c))return!1;return!0}function J2(i,l){return Fl(i,l)}function Z2(i,l,c){c=typeof c=="function"?c:n;var g=c?c(i,l):n;return g===n?Fl(i,l,n,c):!!g}function yf(i){if(!ln(i))return!1;var l=sr(i);return l==et||l==ye||typeof i.message=="string"&&typeof i.name=="string"&&!jl(i)}function X2(i){return typeof i=="number"&&Zm(i)}function Hs(i){if(!tn(i))return!1;var l=sr(i);return l==W||l==T||l==Y||l==de}function vv(i){return typeof i=="number"&&i==pt(i)}function Cu(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=te}function tn(i){var l=typeof i;return i!=null&&(l=="object"||l=="function")}function ln(i){return i!=null&&typeof i=="object"}var yv=Dm?Mr(Dm):nS;function Q2(i,l){return i===l||Wd(i,l,of(l))}function eA(i,l,c){return c=typeof c=="function"?c:n,Wd(i,l,of(l),c)}function tA(i){return _v(i)&&i!=+i}function nA(i){if($S(i))throw new ut(a);return cg(i)}function rA(i){return i===null}function sA(i){return i==null}function _v(i){return typeof i=="number"||ln(i)&&sr(i)==G}function jl(i){if(!ln(i)||sr(i)!=me)return!1;var l=eu(i);if(l===null)return!0;var c=$t.call(l,"constructor")&&l.constructor;return typeof c=="function"&&c instanceof c&&Jo.call(c)==ek}var _f=Pm?Mr(Pm):rS;function iA(i){return vv(i)&&i>=-9007199254740991&&i<=te}var bv=Lm?Mr(Lm):sS;function Eu(i){return typeof i=="string"||!dt(i)&&ln(i)&&sr(i)==Ae}function Dr(i){return typeof i=="symbol"||ln(i)&&sr(i)==Oe}var Ba=Im?Mr(Im):iS;function aA(i){return i===n}function lA(i){return ln(i)&&Kn(i)==Ue}function oA(i){return ln(i)&&sr(i)==qe}var uA=yu(Yd),cA=yu(function(i,l){return i<=l});function wv(i){if(!i)return[];if(gr(i))return Eu(i)?as(i):mr(i);if(Ml&&i[Ml])return Ux(i[Ml]());var l=Kn(i),c=l==N?Pd:l==ke?zo:Ha;return c(i)}function Us(i){if(!i)return i===0?i:0;if(i=Xr(i),i===R||i===-1/0){var l=i<0?-1:1;return l*be}return i===i?i:0}function pt(i){var l=Us(i),c=l%1;return l===l?c?l-c:l:0}function xv(i){return i?Gi(pt(i),0,He):0}function Xr(i){if(typeof i=="number")return i;if(Dr(i))return De;if(tn(i)){var l=typeof i.valueOf=="function"?i.valueOf():i;i=tn(l)?l+"":l}if(typeof i!="string")return i===0?i:+i;i=Hm(i);var c=qw.test(i);return c||zw.test(i)?Tx(i.slice(2),c?2:8):Ww.test(i)?De:+i}function kv(i){return ks(i,vr(i))}function dA(i){return i?Gi(pt(i),-9007199254740991,te):i===0?i:0}function Vt(i){return i==null?"":Rr(i)}var fA=Va(function(i,l){if(Hl(l)||gr(l)){ks(l,Vn(l),i);return}for(var c in l)$t.call(l,c)&&Il(i,c,l[c])}),Sv=Va(function(i,l){ks(l,vr(l),i)}),Ou=Va(function(i,l,c,g){ks(l,vr(l),i,g)}),hA=Va(function(i,l,c,g){ks(l,Vn(l),i,g)}),pA=$s($d);function mA(i,l){var c=Na(i);return l==null?c:ng(c,l)}var gA=yt(function(i,l){i=jt(i);var c=-1,g=l.length,b=g>2?l[2]:n;for(b&&ir(l[0],l[1],b)&&(g=1);++c1),O}),ks(i,af(i),c),g&&(c=Gr(c,p|m|y,CS));for(var b=l.length;b--;)Zd(c,l[b]);return c});function LA(i,l){return Av(i,Au(tt(l)))}var IA=$s(function(i,l){return i==null?{}:oS(i,l)});function Av(i,l){if(i==null)return{};var c=Xt(af(i),function(g){return[g]});return l=tt(l),vg(i,c,function(g,b){return l(g,b[0])})}function NA(i,l,c){l=fi(l,i);var g=-1,b=l.length;for(b||(b=1,i=n);++gl){var g=i;i=l,l=g}if(c||i%1||l%1){var b=Xm();return zn(i+b*(l-i+Sx("1e-"+((b+"").length-1))),l)}return Kd(i,l)}var zA=Fa(function(i,l,c){return l=l.toLowerCase(),i+(c?Ov(l):l)});function Ov(i){return xf(Vt(i).toLowerCase())}function Mv(i){return i=Vt(i),i&&i.replace(Gw,Vx).replace(px,"")}function KA(i,l,c){i=Vt(i),l=Rr(l);var g=i.length;c=c===n?g:Gi(pt(c),0,g);var b=c;return c-=l.length,c>=0&&i.slice(c,b)==l}function GA(i){return i=Vt(i),i&&Ls.test(i)?i.replace(Nn,Fx):i}function JA(i){return i=Vt(i),i&&Iw.test(i)?i.replace(gd,"\\$&"):i}var ZA=Fa(function(i,l,c){return i+(c?"-":"")+l.toLowerCase()}),XA=Fa(function(i,l,c){return i+(c?" ":"")+l.toLowerCase()}),QA=Pg("toLowerCase");function eC(i,l,c){i=Vt(i),l=pt(l);var g=l?Ra(i):0;if(!l||g>=l)return i;var b=(l-g)/2;return vu(su(b),c)+i+vu(ru(b),c)}function tC(i,l,c){i=Vt(i),l=pt(l);var g=l?Ra(i):0;return l&&g>>0,c?(i=Vt(i),i&&(typeof l=="string"||l!=null&&!_f(l))&&(l=Rr(l),!l&&Ma(i))?hi(as(i),0,c):i.split(l,c)):[]}var oC=Fa(function(i,l,c){return i+(c?" ":"")+xf(l)});function uC(i,l,c){return i=Vt(i),c=c==null?0:Gi(pt(c),0,i.length),l=Rr(l),i.slice(c,c+l.length)==l}function cC(i,l,c){var g=C.templateSettings;c&&ir(i,l,c)&&(l=n),i=Vt(i),l=Ou({},l,g,Bg);var b=Ou({},l.imports,g.imports,Bg),O=Vn(b),q=Dd(b,O),X,oe,Ce=0,Ee=l.interpolate||Uo,Me="__p += '",je=Ld((l.escape||Uo).source+"|"+Ee.source+"|"+(Ee===is?jw:Uo).source+"|"+(l.evaluate||Uo).source+"|$","g"),Je="//# sourceURL="+($t.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++_x+"]")+` +`;i.replace(je,function(rt,bt,Ct,Pr,ar,Lr){return Ct||(Ct=Pr),Me+=i.slice(Ce,Lr).replace(Jw,$x),bt&&(X=!0,Me+=`' + +__e(`+bt+`) + +'`),ar&&(oe=!0,Me+=`'; +`+ar+`; +__p += '`),Ct&&(Me+=`' + +((__t = (`+Ct+`)) == null ? '' : __t) + +'`),Ce=Lr+rt.length,rt}),Me+=`'; +`;var nt=$t.call(l,"variable")&&l.variable;if(!nt)Me=`with (obj) { +`+Me+` +} +`;else if(Hw.test(nt))throw new ut(u);Me=(oe?Me.replace(Ve,""):Me).replace(xe,"$1").replace(Fe,"$1;"),Me="function("+(nt||"obj")+`) { +`+(nt?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(X?", __e = _.escape":"")+(oe?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+Me+`return __p +}`;var gt=Dv(function(){return Rt(O,Je+"return "+Me).apply(n,q)});if(gt.source=Me,yf(gt))throw gt;return gt}function dC(i){return Vt(i).toLowerCase()}function fC(i){return Vt(i).toUpperCase()}function hC(i,l,c){if(i=Vt(i),i&&(c||l===n))return Hm(i);if(!i||!(l=Rr(l)))return i;var g=as(i),b=as(l),O=Um(g,b),q=jm(g,b)+1;return hi(g,O,q).join("")}function pC(i,l,c){if(i=Vt(i),i&&(c||l===n))return i.slice(0,qm(i)+1);if(!i||!(l=Rr(l)))return i;var g=as(i),b=jm(g,as(l))+1;return hi(g,0,b).join("")}function mC(i,l,c){if(i=Vt(i),i&&(c||l===n))return i.replace(vd,"");if(!i||!(l=Rr(l)))return i;var g=as(i),b=Um(g,as(l));return hi(g,b).join("")}function gC(i,l){var c=H,g=se;if(tn(l)){var b="separator"in l?l.separator:b;c="length"in l?pt(l.length):c,g="omission"in l?Rr(l.omission):g}i=Vt(i);var O=i.length;if(Ma(i)){var q=as(i);O=q.length}if(c>=O)return i;var X=c-Ra(g);if(X<1)return g;var oe=q?hi(q,0,X).join(""):i.slice(0,X);if(b===n)return oe+g;if(q&&(X+=oe.length-X),_f(b)){if(i.slice(X).search(b)){var Ce,Ee=oe;for(b.global||(b=Ld(b.source,Vt(um.exec(b))+"g")),b.lastIndex=0;Ce=b.exec(Ee);)var Me=Ce.index;oe=oe.slice(0,Me===n?X:Me)}}else if(i.indexOf(Rr(b),X)!=X){var je=oe.lastIndexOf(b);je>-1&&(oe=oe.slice(0,je))}return oe+g}function vC(i){return i=Vt(i),i&&pr.test(i)?i.replace(We,Yx):i}var yC=Fa(function(i,l,c){return i+(c?" ":"")+l.toUpperCase()}),xf=Pg("toUpperCase");function Rv(i,l,c){return i=Vt(i),l=c?n:l,l===n?Hx(i)?Gx(i):Dx(i):i.match(l)||[]}var Dv=yt(function(i,l){try{return Or(i,n,l)}catch(c){return yf(c)?c:new ut(c)}}),_C=$s(function(i,l){return Yr(l,function(c){c=Ss(c),Vs(i,c,gf(i[c],i))}),i});function bC(i){var l=i==null?0:i.length,c=tt();return i=l?Xt(i,function(g){if(typeof g[1]!="function")throw new zr(o);return[c(g[0]),g[1]]}):[],yt(function(g){for(var b=-1;++bte)return[];var c=He,g=zn(i,He);l=tt(l),i-=He;for(var b=Rd(g,l);++c0||l<0)?new kt(c):(i<0?c=c.takeRight(-i):i&&(c=c.drop(i)),l!==n&&(l=pt(l),c=l<0?c.dropRight(-l):c.take(l-i)),c)},kt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},kt.prototype.toArray=function(){return this.take(He)},xs(kt.prototype,function(i,l){var c=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),b=C[g?"take"+(l=="last"?"Right":""):l],O=g||/^find/.test(l);b&&(C.prototype[l]=function(){var q=this.__wrapped__,X=g?[1]:arguments,oe=q instanceof kt,Ce=X[0],Ee=oe||dt(q),Me=function(bt){var Ct=b.apply(C,li([bt],X));return g&&je?Ct[0]:Ct};Ee&&c&&typeof Ce=="function"&&Ce.length!=1&&(oe=Ee=!1);var je=this.__chain__,Je=!!this.__actions__.length,nt=O&&!je,gt=oe&&!Je;if(!O&&Ee){q=gt?q:new kt(this);var rt=i.apply(q,X);return rt.__actions__.push({func:xu,args:[Me],thisArg:n}),new Kr(rt,je)}return nt&>?i.apply(this,X):(rt=this.thru(Me),nt?g?rt.value()[0]:rt.value():rt)})}),Yr(["pop","push","shift","sort","splice","unshift"],function(i){var l=Ko[i],c=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",g=/^(?:pop|shift)$/.test(i);C.prototype[i]=function(){var b=arguments;if(g&&!this.__chain__){var O=this.value();return l.apply(dt(O)?O:[],b)}return this[c](function(q){return l.apply(dt(q)?q:[],b)})}}),xs(kt.prototype,function(i,l){var c=C[l];if(c){var g=c.name+"";$t.call(Ia,g)||(Ia[g]=[]),Ia[g].push({name:l,func:c})}}),Ia[mu(n,U).name]=[{name:"wrapper",func:n}],kt.prototype.clone=vk,kt.prototype.reverse=yk,kt.prototype.value=_k,C.prototype.at=KT,C.prototype.chain=GT,C.prototype.commit=JT,C.prototype.next=ZT,C.prototype.plant=QT,C.prototype.reverse=e2,C.prototype.toJSON=C.prototype.valueOf=C.prototype.value=t2,C.prototype.first=C.prototype.head,Ml&&(C.prototype[Ml]=XT),C},Da=Jx();qi?((qi.exports=Da)._=Da,kd._=Da):Un._=Da}).call(N1)})(Ec,Ec.exports);var cL=Ec.exports;const cr=uL(cL);function dL(e,t){switch(e.replace("_","-")){case"af":case"af-ZA":case"bn":case"bn-BD":case"bn-IN":case"bg":case"bg-BG":case"ca":case"ca-AD":case"ca-ES":case"ca-FR":case"ca-IT":case"da":case"da-DK":case"de":case"de-AT":case"de-BE":case"de-CH":case"de-DE":case"de-LI":case"de-LU":case"el":case"el-CY":case"el-GR":case"en":case"en-AG":case"en-AU":case"en-BW":case"en-CA":case"en-DK":case"en-GB":case"en-HK":case"en-IE":case"en-IN":case"en-NG":case"en-NZ":case"en-PH":case"en-SG":case"en-US":case"en-ZA":case"en-ZM":case"en-ZW":case"eo":case"eo-US":case"es":case"es-AR":case"es-BO":case"es-CL":case"es-CO":case"es-CR":case"es-CU":case"es-DO":case"es-EC":case"es-ES":case"es-GT":case"es-HN":case"es-MX":case"es-NI":case"es-PA":case"es-PE":case"es-PR":case"es-PY":case"es-SV":case"es-US":case"es-UY":case"es-VE":case"et":case"et-EE":case"eu":case"eu-ES":case"eu-FR":case"fa":case"fa-IR":case"fi":case"fi-FI":case"fo":case"fo-FO":case"fur":case"fur-IT":case"fy":case"fy-DE":case"fy-NL":case"gl":case"gl-ES":case"gu":case"gu-IN":case"ha":case"ha-NG":case"he":case"he-IL":case"hu":case"hu-HU":case"is":case"is-IS":case"it":case"it-CH":case"it-IT":case"ku":case"ku-TR":case"lb":case"lb-LU":case"ml":case"ml-IN":case"mn":case"mn-MN":case"mr":case"mr-IN":case"nah":case"nb":case"nb-NO":case"ne":case"ne-NP":case"nl":case"nl-AW":case"nl-BE":case"nl-NL":case"nn":case"nn-NO":case"no":case"om":case"om-ET":case"om-KE":case"or":case"or-IN":case"pa":case"pa-IN":case"pa-PK":case"pap":case"pap-AN":case"pap-AW":case"pap-CW":case"ps":case"ps-AF":case"pt":case"pt-BR":case"pt-PT":case"so":case"so-DJ":case"so-ET":case"so-KE":case"so-SO":case"sq":case"sq-AL":case"sq-MK":case"sv":case"sv-FI":case"sv-SE":case"sw":case"sw-KE":case"sw-TZ":case"ta":case"ta-IN":case"ta-LK":case"te":case"te-IN":case"tk":case"tk-TM":case"ur":case"ur-IN":case"ur-PK":case"zu":case"zu-ZA":return t===1?0:1;case"am":case"am-ET":case"bh":case"fil":case"fil-PH":case"fr":case"fr-BE":case"fr-CA":case"fr-CH":case"fr-FR":case"fr-LU":case"gun":case"hi":case"hi-IN":case"hy":case"hy-AM":case"ln":case"ln-CD":case"mg":case"mg-MG":case"nso":case"nso-ZA":case"ti":case"ti-ER":case"ti-ET":case"wa":case"wa-BE":case"xbr":return t===0||t===1?0:1;case"be":case"be-BY":case"bs":case"bs-BA":case"hr":case"hr-HR":case"ru":case"ru-RU":case"ru-UA":case"sr":case"sr-ME":case"sr-RS":case"uk":case"uk-UA":return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2;case"cs":case"cs-CZ":case"sk":case"sk-SK":return t==1?0:t>=2&&t<=4?1:2;case"ga":case"ga-IE":return t==1?0:t==2?1:2;case"lt":case"lt-LT":return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2;case"sl":case"sl-SI":return t%100==1?0:t%100==2?1:t%100==3||t%100==4?2:3;case"mk":case"mk-MK":return t%10==1?0:1;case"mt":case"mt-MT":return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3;case"lv":case"lv-LV":return t==0?0:t%10==1&&t%100!=11?1:2;case"pl":case"pl-PL":return t==1?0:t%10>=2&&t%10<=4&&(t%100<12||t%100>14)?1:2;case"cy":case"cy-GB":return t==1?0:t==2?1:t==8||t==11?2:3;case"ro":case"ro-RO":return t==1?0:t==0||t%100>0&&t%100<20?1:2;case"ar":case"ar-AE":case"ar-BH":case"ar-DZ":case"ar-EG":case"ar-IN":case"ar-IQ":case"ar-JO":case"ar-KW":case"ar-LB":case"ar-LY":case"ar-MA":case"ar-OM":case"ar-QA":case"ar-SA":case"ar-SD":case"ar-SS":case"ar-SY":case"ar-TN":case"ar-YE":return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11&&t%100<=99?4:5;default:return 0}}function fL(e,t,n){let r=e.split("|");const s=hL(r,t);if(s!==null)return s.trim();r=mL(r);const a=dL(n,t);return r.length===1||!r[a]?r[0]:r[a]}function hL(e,t){for(const n of e){let r=pL(n,t);if(r!==null)return r}return null}function pL(e,t){const n=e.match(/^[\{\[]([^\[\]\{\}]*)[\}\]](.*)/s)||[];if(n.length!==3)return null;const r=n[1],s=n[2];if(r.includes(",")){let[a,o]=r.split(",");if(o==="*"&&t>=parseFloat(a))return s;if(a==="*"&&t<=parseFloat(o))return s;if(t>=parseFloat(a)&&t<=parseFloat(o))return s}return parseFloat(r)===t?s:null}function mL(e){return e.map(t=>t.replace(/^[\{\[]([^\[\]\{\}]*)[\}\]]/,""))}const Yf=(e,t,n={})=>{try{return e(t)}catch{return n}},zf=async(e,t={})=>{try{return(await e).default||t}catch{return t}},gL={};function t0(e){return e||vL()||yL()}function vL(){return typeof process<"u"}function yL(){return typeof gL<"u"}const Za=typeof window>"u";let qa=null;const n0={lang:!Za&&document.documentElement.lang?document.documentElement.lang.replace("-","_"):null,fallbackLang:"en",fallbackMissingTranslations:!1,resolve:e=>new Promise(t=>t({default:{}})),onLoad:e=>{}},_L={shared:!0};function Pe(e,t={}){return Nr.getSharedInstance().trans(e,t)}const bL={install(e,t={}){t={..._L,...t};const n=t.shared?Nr.getSharedInstance(t,!0):new Nr(t);e.config.globalProperties.$t=(r,s)=>n.trans(r,s),e.config.globalProperties.$tChoice=(r,s,a)=>n.transChoice(r,s,a),e.provide("i18n",n)}};class Nr{constructor(t={}){this.activeMessages=Hr({}),this.fallbackMessages=Hr({}),this.reset=()=>{Nr.loaded=[],this.options=n0;for(const[n]of Object.entries(this.activeMessages))this.activeMessages[n]=null;this===qa&&(qa=null)},this.options={...n0,...t},this.options.fallbackMissingTranslations?this.loadFallbackLanguage():this.load()}setOptions(t={},n=!1){return this.options={...this.options,...t},n&&this.load(),this}load(){this[Za?"loadLanguage":"loadLanguageAsync"](this.getActiveLanguage())}loadFallbackLanguage(){if(!Za){this.resolveLangAsync(this.options.resolve,this.options.fallbackLang).then(({default:n})=>{this.applyFallbackLanguage(this.options.fallbackLang,n),this.load()});return}const{default:t}=this.resolveLang(this.options.resolve,this.options.fallbackLang);this.applyFallbackLanguage(this.options.fallbackLang,t),this.loadLanguage(this.getActiveLanguage())}loadLanguage(t,n=!1){const r=Nr.loaded.find(a=>a.lang===t);if(r){this.setLanguage(r);return}const{default:s}=this.resolveLang(this.options.resolve,t);this.applyLanguage(t,s,n,this.loadLanguage)}loadLanguageAsync(t,n=!1,r=!1){var a;r||((a=this.abortController)==null||a.abort(),this.abortController=new AbortController);const s=Nr.loaded.find(o=>o.lang===t);return s?Promise.resolve(this.setLanguage(s)):new Promise((o,u)=>{this.abortController.signal.addEventListener("abort",()=>{o()}),this.resolveLangAsync(this.options.resolve,t).then(({default:d})=>{o(this.applyLanguage(t,d,n,this.loadLanguageAsync))})})}resolveLang(t,n,r={}){return Object.keys(r).length||(r=Yf(t,n)),t0(Za)?{default:{...r,...Yf(t,`php_${n}`)}}:{default:r}}async resolveLangAsync(t,n){let r=Yf(t,n);if(!(r instanceof Promise))return this.resolveLang(t,n,r);if(t0(Za)){const s=await zf(t(`php_${n}`)),a=await zf(r);return new Promise(o=>o({default:{...s,...a}}))}return new Promise(async s=>s({default:await zf(r)}))}applyLanguage(t,n,r=!1,s){if(Object.keys(n).length<1){if(/[-_]/g.test(t)&&!r)return s.call(this,t.replace(/[-_]/g,o=>o==="-"?"_":"-"),!0,!0);if(t!==this.options.fallbackLang)return s.call(this,this.options.fallbackLang,!1,!0)}const a={lang:t,messages:n};return this.addLoadedLang(a),this.setLanguage(a)}applyFallbackLanguage(t,n){for(const[r,s]of Object.entries(n))this.fallbackMessages[r]=s;this.addLoadedLang({lang:this.options.fallbackLang,messages:n})}addLoadedLang(t){const n=Nr.loaded.findIndex(r=>r.lang===t.lang);if(n!==-1){Nr.loaded[n]=t;return}Nr.loaded.push(t)}setLanguage({lang:t,messages:n}){Za||document.documentElement.setAttribute("lang",t.replace("_","-")),this.options.lang=t;for(const[r,s]of Object.entries(n))this.activeMessages[r]=s;for(const[r,s]of Object.entries(this.fallbackMessages))(!this.isValid(n[r])||this.activeMessages[r]===r)&&(this.activeMessages[r]=s);for(const[r]of Object.entries(this.activeMessages))!this.isValid(n[r])&&!this.isValid(this.fallbackMessages[r])&&(this.activeMessages[r]=null);return this.options.onLoad(t),t}getActiveLanguage(){return this.options.lang||this.options.fallbackLang}isLoaded(t){return t??(t=this.getActiveLanguage()),Nr.loaded.some(n=>n.lang.replace(/[-_]/g,"-")===t.replace(/[-_]/g,"-"))}trans(t,n={}){return this.wTrans(t,n).value}wTrans(t,n={}){return db(()=>{let r=this.findTranslation(t);this.isValid(r)||(r=this.findTranslation(t.replace(/\//g,"."))),this.activeMessages[t]=this.isValid(r)?r:t}),pe(()=>this.makeReplacements(this.activeMessages[t],n))}transChoice(t,n,r={}){return this.wTransChoice(t,n,r).value}wTransChoice(t,n,r={}){const s=this.wTrans(t,r);return r.count=n.toString(),pe(()=>this.makeReplacements(fL(s.value,n,this.options.lang),r))}findTranslation(t){if(this.isValid(this.activeMessages[t]))return this.activeMessages[t];if(this.activeMessages[`${t}.0`]!==void 0){const r=Object.entries(this.activeMessages).filter(s=>s[0].startsWith(`${t}.`)).map(s=>s[1]);return Hr(r)}return this.activeMessages[t]}makeReplacements(t,n){const r=s=>s.charAt(0).toUpperCase()+s.slice(1);return Object.entries(n||[]).sort((s,a)=>s[0].length>=a[0].length?-1:1).forEach(([s,a])=>{a=a.toString(),t=(t||"").replace(new RegExp(`:${s}`,"g"),a).replace(new RegExp(`:${s.toUpperCase()}`,"g"),a.toUpperCase()).replace(new RegExp(`:${r(s)}`,"g"),r(a))}),t}isValid(t){return t!=null}static getSharedInstance(t,n=!1){return(qa==null?void 0:qa.setOptions(t,n))||(qa=new Nr(t))}}Nr.loaded=[];function Hi(){const e=x=>{const A={};return x==null||x.forEach(F=>{A[F.id]=F.name}),A},t=pe(()=>[Pe("event.activity-overview"),Pe("event.who-is-the-activity-for"),Pe("event.organiser")]),n=pe(()=>[{id:"coding-camp",name:Pe("event.coding-camp")},{id:"summer-camp",name:Pe("event.summer-camp")},{id:"weekend-course",name:Pe("event.weekend-course")},{id:"evening-course",name:Pe("event.evening-course")},{id:"careerday",name:Pe("event.career-day")},{id:"university-visit",name:Pe("event.university-visit")},{id:"coding-home",name:Pe("event.coding-at-home")},{id:"code-week-challenge",name:Pe("event.code-week-challenge")},{id:"competition",name:Pe("event.competition")},{id:"other",name:Pe("event.other-group-work-seminars-workshops")}]),r=pe(()=>e(n.value)),s=pe(()=>[{id:"open-online",name:Pe("event.activitytype.open-online")},{id:"invite-online",name:Pe("event.activitytype.invite-online")},{id:"open-in-person",name:Pe("event.activitytype.open-in-person")},{id:"invite-in-person",name:Pe("event.activitytype.invite-in-person")},{id:"other",name:Pe("event.organizertype.other")}]),a=pe(()=>e(s.value)),o=pe(()=>({daily:Pe("event.daily"),weekly:Pe("event.weekly"),monthly:Pe("event.monthly")})),u=pe(()=>[{id:"0-1",name:Pe("event.0-1-hours")},{id:"1-2",name:Pe("event.1-2-hours")},{id:"2-4",name:Pe("event.2-4-hours")},{id:"over-4",name:Pe("event.longer-than-4-hours")}]),d=pe(()=>e(u.value)),h=pe(()=>[{id:"consecutive",name:Pe("event.consecutive-learning-over-multiple-sessions")},{id:"individual",name:Pe("event.recurring-individual")}]),f=pe(()=>e(h.value)),p=pe(()=>[{id:"under-5",name:Pe("event.under-5-early-learners")},{id:"6-9",name:Pe("event.6-9-primary")},{id:"10-12",name:Pe("event.10-12-upper-primary")},{id:"13-15",name:Pe("event.13-15-lower-secondary")},{id:"16-18",name:Pe("event.16-18-upper-secondary")},{id:"19-25",name:Pe("event.19-25-young-adults")},{id:"over-25",name:Pe("event.over-25-adults")}]),m=pe(()=>e(p.value)),y=pe(()=>[{id:"school",name:Pe("event.organizertype.school")},{id:"library",name:Pe("event.organizertype.library")},{id:"non profit",name:Pe("event.organizertype.non-profit")},{id:"private business",name:Pe("event.organizertype.private-business")},{id:"other",name:Pe("event.organizertype.other")}]),w=pe(()=>e(y.value)),_=pe(()=>[{id:"robotics-drones-smart-devices",name:Pe("event.theme.robotics-drones-smart-devices")},{id:"cybersecurity-data",name:Pe("event.theme.cybersecurity-data")},{id:"web-app-software-development",name:Pe("event.theme.web-app-software-development")},{id:"visual-block-programming",name:Pe("event.theme.visual-block-programming")},{id:"unplugged-playful-activities",name:Pe("event.theme.unplugged-playful-activities")},{id:"art-creative-coding",name:Pe("event.theme.art-creative-coding")},{id:"game-design",name:Pe("event.theme.game-design")},{id:"internet-of-things-wearables",name:Pe("event.theme.internet-of-things-wearables")},{id:"ar-vr-3d-technologies",name:Pe("event.theme.ar-vr-3d-technologies")},{id:"digital-careers-learning-pathways",name:Pe("event.theme.digital-careers-learning-pathways")},{id:"digital-literacy-soft-skills",name:Pe("event.theme.digital-literacy-soft-skills")},{id:"ai-generative-ai",name:Pe("event.theme.ai-generative-ai")},{id:"awareness-inspiration",name:Pe("event.theme.awareness-inspiration")},{id:"promoting-diversity-inclusion",name:Pe("event.theme.promoting-diversity-inclusion")},{id:"other-theme",name:Pe("event.theme.other-theme")}]),E=pe(()=>e(_.value)),U=fe([]);It(async()=>{const x=await xt.get("/api/audiences");U.value=x.data.map(A=>({id:A.id,name:Pe(`event.${A.slug}`)}))});const V=pe(()=>e(U.value));return{stepTitles:t,activityFormatOptions:n,activityFormatOptionsMap:r,activityTypeOptions:s,activityTypeOptionsMap:a,recurringFrequentlyMap:o,durationOptions:u,durationOptionsMap:d,recurringTypeOptions:h,recurringTypeOptionsMap:f,ageOptions:p,ageOptionsMap:m,organizerTypeOptions:y,organizerTypeOptionsMap:w,themeOptions:_,themeOptionsMap:E,audienceOptions:U,audienceOptionsMap:V}}const vt=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},wL={props:{contentClass:{type:String},position:{type:String,default:"top",validator:e=>["top","right","bottom","left"].includes(e)}},setup(e){const t=fe(!1),n=pe(()=>{switch(e.position){case"top":return"bottom-full pb-2 left-1/2 -translate-x-1/2";case"right":return"left-full pl-2 top-1/2 -translate-y-1/2";case"bottom":return"top-full pt-2 left-1/2 -translate-x-1/2";case"left":return"right-full pr-2 top-1/2 -translate-y-1/2";default:return""}}),r=pe(()=>{switch(e.position){case"top":return"absolute left-1/2 bottom-0 -translate-x-1/2 translate-y-2 border-8 border-transparent border-t-gray-800";case"right":return"absolute top-1/2 left-0 -translate-y-1/2 -translate-x-2 border-8 border-transparent border-r-gray-800";case"bottom":return"absolute left-1/2 top-0 -translate-x-1/2 -translate-y-2 border-8 border-transparent border-b-gray-800";case"left":return"absolute top-1/2 right-0 -translate-y-1/2 translate-x-2 border-8 border-transparent border-l-gray-800";default:return""}});return{show:t,positionClass:n,arrowClass:r}}},xL={class:"w-full px-3 py-2 rounded-lg bg-gray-800 text-white text-sm"};function kL(e,t,n,r,s,a){return k(),I("div",{class:"relative inline-block",onMouseenter:t[0]||(t[0]=o=>r.show=!0),onMouseleave:t[1]||(t[1]=o=>r.show=!1)},[Ie(e.$slots,"trigger",{},void 0,!0),r.show?(k(),I("div",{key:0,class:$e(["absolute z-10 break-words",r.positionClass,n.contentClass]),role:"tooltip"},[v("div",xL,[Ie(e.$slots,"content",{},void 0,!0)]),v("div",{class:$e(["tooltip-arrow",r.arrowClass])},null,2)],2)):ie("",!0)],32)}const V1=vt(wL,[["render",kL],["__scopeId","data-v-ad76dce9"]]),SL={props:{horizontalBreakpoint:String,horizontal:Boolean,label:String,name:String,names:Array,errors:Object},components:{Tooltip:V1},setup(e,{slots:t}){const n=pe(()=>{const r=[],s=[];return e.name&&s.push(e.name),e.names&&s.push(...e.names),s.forEach(a=>{var o,u;(o=e.errors)!=null&&o[a]&&r.push(...(u=e.errors)==null?void 0:u[a])}),cr.uniq(r)});return{slots:t,errorList:n}}},TL=["for"],AL={key:0,class:"flex item-start gap-3 text-error-200 font-semibold mt-2.5 empty:hidden"},CL={class:"leading-5"};function EL(e,t,n,r,s,a){var u;const o=at("Tooltip");return k(),I("div",{class:$e(["flex items-start flex-col gap-x-3 gap-y-2",[n.horizontalBreakpoint==="md"&&"md:gap-10 md:flex-row"]])},[v("label",{for:`id_${n.name||((u=n.names)==null?void 0:u[0])||""}`,class:$e(["flex items-center font-normal text-xl flex-1 text-slate-500 'w-full",[n.horizontalBreakpoint==="md"&&"md:min-h-[48px] md:w-1/3"]])},[v("span",null,[mt(re(n.label)+" ",1),r.slots.tooltip?(k(),it(o,{key:0,class:"ml-1 translate-y-1",contentClass:"w-64"},{trigger:Te(()=>t[0]||(t[0]=[v("img",{class:"text-dark-blue w-6 h-6",src:"/images/icon_question.svg"},null,-1)])),content:Te(()=>[Ie(e.$slots,"tooltip")]),_:3})):ie("",!0)])],10,TL),v("div",{class:$e(["h-full w-full",[n.horizontalBreakpoint==="md"&&"md:w-2/3"]])},[Ie(e.$slots,"default"),r.errorList.length?(k(),I("div",AL,[t[1]||(t[1]=v("img",{src:"/images/icon_error.svg"},null,-1)),(k(!0),I(Ne,null,Qe(r.errorList,d=>(k(),I("div",CL,re(d),1))),256))])):ie("",!0),Ie(e.$slots,"end")],2)],2)}const ad=vt(SL,[["render",EL]]);function Kf(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function OL(e){return(...t)=>!e(...t)}function ML(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function RL(e){return e.filter(t=>!t.$isLabel)}function Gf(e,t){return n=>n.reduce((r,s)=>s[e]&&s[e].length?(r.push({$groupLabel:s[t],$isLabel:!0}),r.concat(s[e])):r,[])}const r0=(...e)=>t=>e.reduce((n,r)=>r(n),t);var DL={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(e,t){return Kf(e)?"":t?e[t]:e}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1},filteringSortFunc:{type:Function,default:null}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const e=this.search||"",t=e.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,t,this.label):this.filterOptions(n,t,this.label,this.customLabel):n=this.groupValues?Gf(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(OL(this.isSelected)):n,this.taggable&&t.length&&!this.isExistingOption(t)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:e}):n.unshift({isTag:!0,label:e})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(t=>this.customLabel(t,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(e,t,n){return r0(this.filterGroups(t,n,this.groupValues,this.groupLabel,this.customLabel),Gf(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return r0(Gf(this.groupValues,this.groupLabel),RL)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const t=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(t)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(Kf(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return Kf(t)?"":t},select(e,t){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(t)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(t==="Tab"&&!this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){t!=="Tab"&&this.removeElement(e);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([e])):this.$emit("update:modelValue",e),this.$emit("select",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const t=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);if(t){if(this.wholeGroupSelected(t)){this.$emit("remove",t[this.groupValues],this.id);const n=this.trackBy?t[this.groupValues].map(s=>s[this.trackBy]):t[this.groupValues],r=this.internalValue.filter(s=>n.indexOf(this.trackBy?s[this.trackBy]:s)===-1);this.$emit("update:modelValue",r)}else{const n=t[this.groupValues].filter(r=>!(this.isOptionDisabled(r)||this.isSelected(r)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(e){return e[this.groupValues].every(t=>this.isSelected(t)||this.isOptionDisabled(t))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,t=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const r=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",r)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&t&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(t-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))},filterOptions(e,t,n,r){return t?e.filter(s=>ML(r(s,n),t)).sort((s,a)=>typeof this.filteringSortFunc=="function"?this.filteringSortFunc(s,a):r(s,n).length-r(a,n).length):e},filterGroups(e,t,n,r,s){return a=>a.map(o=>{if(!o[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const u=this.filterOptions(o[n],e,t,s);return u.length?{[r]:o[r],[n]:u}:[]})}}},PL={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(e,t){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(t)}},groupHighlight(e,t){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":t.$isLabel}];const n=this.options.find(r=>r[this.groupLabel]===t.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerReset()},pointerForward(){this.pointer0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(e){this.pointer=e,this.pointerDirty=!0}}},Ta={name:"vue-multiselect",mixins:[DL,PL],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)},isRequired(){return this.required===!1?!1:this.internalValue.length<=0}}};const LL=["tabindex","aria-expanded","aria-owns","aria-activedescendant"],IL={ref:"tags",class:"multiselect__tags"},NL={class:"multiselect__tags-wrap"},VL=["textContent"],FL=["onKeypress","onMousedown"],$L=["textContent"],BL={class:"multiselect__spinner"},HL=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-label","aria-controls"],UL=["id","aria-multiselectable"],jL={key:0},WL={class:"multiselect__option"},qL=["aria-selected","id","role"],YL=["onClick","onMouseenter","data-select","data-selected","data-deselect"],zL=["data-select","data-deselect","onMouseenter","onMousedown"],KL={class:"multiselect__option"},GL={class:"multiselect__option"};function JL(e,t,n,r,s,a){return k(),I("div",{tabindex:e.searchable?-1:n.tabindex,class:$e([{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":a.isAbove,"multiselect--has-options-group":a.hasOptionGroup},"multiselect"]),onFocus:t[14]||(t[14]=o=>e.activate()),onBlur:t[15]||(t[15]=o=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=$n(Et(o=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=$n(Et(o=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[18]||(t[18]=$n(Et(o=>e.addPointerElement(o),["stop","self"]),["enter","tab"])),onKeyup:t[19]||(t[19]=$n(o=>e.deactivate(),["esc"])),role:"combobox","aria-expanded":e.isOpen,"aria-owns":"listbox-"+e.id,"aria-activedescendant":e.isOpen&&e.pointer!==null?e.id+"-"+e.pointer:null},[Ie(e.$slots,"caret",{toggle:e.toggle},()=>[v("div",{onMousedown:t[0]||(t[0]=Et(o=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),Ie(e.$slots,"clear",{search:e.search}),v("div",IL,[Ie(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:a.visibleValues,isOpen:e.isOpen},()=>[Dn(v("div",NL,[(k(!0),I(Ne,null,Qe(a.visibleValues,(o,u)=>Ie(e.$slots,"tag",{option:o,search:e.search,remove:e.removeElement},()=>[(k(),I("span",{class:"multiselect__tag",key:u,onMousedown:t[1]||(t[1]=Et(()=>{},["prevent"]))},[v("span",{textContent:re(e.getOptionLabel(o))},null,8,VL),v("i",{tabindex:"1",onKeypress:$n(Et(d=>e.removeElement(o),["prevent"]),["enter"]),onMousedown:Et(d=>e.removeElement(o),["prevent"]),class:"multiselect__tag-icon"},null,40,FL)],32))])),256))],512),[[Vr,a.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>n.limit?Ie(e.$slots,"limit",{key:0},()=>[v("strong",{class:"multiselect__strong",textContent:re(n.limitText(e.internalValue.length-n.limit))},null,8,$L)]):ie("v-if",!0)]),he(vs,{name:"multiselect__loading"},{default:Te(()=>[Ie(e.$slots,"loading",{},()=>[Dn(v("div",BL,null,512),[[Vr,n.loading]])])]),_:3}),e.searchable?(k(),I("input",{key:0,ref:"search",name:n.name,id:e.id,type:"text",autocomplete:"off",spellcheck:n.spellcheck,placeholder:e.placeholder,required:a.isRequired,style:bn(a.inputStyle),value:e.search,disabled:n.disabled,tabindex:n.tabindex,"aria-label":n.name+"-searchbox",onInput:t[2]||(t[2]=o=>e.updateSearch(o.target.value)),onFocus:t[3]||(t[3]=Et(o=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=Et(o=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=$n(o=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=$n(Et(o=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=$n(Et(o=>e.pointerBackward(),["prevent"]),["up"])),t[9]||(t[9]=$n(Et(o=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[8]||(t[8]=$n(Et(o=>e.addPointerElement(o),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,HL)):ie("v-if",!0),a.isSingleLabelVisible?(k(),I("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=Et((...o)=>e.toggle&&e.toggle(...o),["prevent"]))},[Ie(e.$slots,"singleLabel",{option:a.singleValue},()=>[mt(re(e.currentOptionLabel),1)])],32)):ie("v-if",!0),a.isPlaceholderVisible?(k(),I("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=Et((...o)=>e.toggle&&e.toggle(...o),["prevent"]))},[Ie(e.$slots,"placeholder",{},()=>[mt(re(e.placeholder),1)])],32)):ie("v-if",!0)],512),he(vs,{name:"multiselect",persisted:""},{default:Te(()=>[Dn(v("div",{class:"multiselect__content-wrapper",onFocus:t[12]||(t[12]=(...o)=>e.activate&&e.activate(...o)),tabindex:"-1",onMousedown:t[13]||(t[13]=Et(()=>{},["prevent"])),style:bn({maxHeight:e.optimizedHeight+"px"}),ref:"list"},[v("ul",{class:"multiselect__content",style:bn(a.contentStyle),role:"listbox",id:"listbox-"+e.id,"aria-multiselectable":e.multiple},[Ie(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(k(),I("li",jL,[v("span",WL,[Ie(e.$slots,"maxElements",{},()=>[mt("Maximum of "+re(e.max)+" options selected. First remove a selected option to select another.",1)])])])):ie("v-if",!0),!e.max||e.internalValue.length(k(),I("li",{class:"multiselect__element",key:u,"aria-selected":e.isSelected(o),id:e.id+"-"+u,role:o&&(o.$isLabel||o.$isDisabled)?null:"option"},[o&&(o.$isLabel||o.$isDisabled)?ie("v-if",!0):(k(),I("span",{key:0,class:$e([e.optionHighlight(u,o),"multiselect__option"]),onClick:Et(d=>e.select(o),["stop"]),onMouseenter:Et(d=>e.pointerSet(u),["self"]),"data-select":o&&o.isTag?e.tagPlaceholder:a.selectLabelText,"data-selected":a.selectedLabelText,"data-deselect":a.deselectLabelText},[Ie(e.$slots,"option",{option:o,search:e.search,index:u},()=>[v("span",null,re(e.getOptionLabel(o)),1)])],42,YL)),o&&(o.$isLabel||o.$isDisabled)?(k(),I("span",{key:1,"data-select":e.groupSelect&&a.selectGroupLabelText,"data-deselect":e.groupSelect&&a.deselectGroupLabelText,class:$e([e.groupHighlight(u,o),"multiselect__option"]),onMouseenter:Et(d=>e.groupSelect&&e.pointerSet(u),["self"]),onMousedown:Et(d=>e.selectGroup(o),["prevent"])},[Ie(e.$slots,"option",{option:o,search:e.search,index:u},()=>[v("span",null,re(e.getOptionLabel(o)),1)])],42,zL)):ie("v-if",!0)],8,qL))),128)):ie("v-if",!0),Dn(v("li",null,[v("span",KL,[Ie(e.$slots,"noResult",{search:e.search},()=>[t[20]||(t[20]=mt("No elements found. Consider changing the search query."))])])],512),[[Vr,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),Dn(v("li",null,[v("span",GL,[Ie(e.$slots,"noOptions",{},()=>[t[21]||(t[21]=mt("List is empty."))])])],512),[[Vr,n.showNoOptions&&(e.options.length===0||a.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!n.loading]]),Ie(e.$slots,"afterList")],12,UL)],36),[[Vr,e.isOpen]])]),_:3})],42,LL)}Ta.render=JL;const ZL={props:{multiple:Boolean,returnObject:Boolean,allowEmpty:{type:Boolean,default:!0},modelValue:[Array,String],deselectLabel:String,options:Array,idName:{type:String,default:"id"},labelField:{type:String,default:"name"},theme:{type:String,default:"new"},largeText:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1}},components:{Multiselect:Ta},emits:["update:modelValue","onChange"],setup(e,{emit:t}){const n=fe(),r=a=>{if(e.multiple){const o=e.returnObject?a:a.map(u=>u[e.idName]);t("update:modelValue",o),t("onChange",o)}else{const o=e.returnObject?a:a[e.idName];t("update:modelValue",o),t("onChange",o)}},s=a=>{var o,u;return e.multiple?(o=n.value)==null?void 0:o.some(d=>String(d[e.idName])===String(a[e.idName])):String((u=n.value)==null?void 0:u[e.idName])===String(a[e.idName])};return qt([()=>e.multiple,()=>e.returnObject,()=>e.options,()=>e.modelValue],()=>{var a,o;e.returnObject?n.value=e.modelValue:e.multiple?Array.isArray(e.modelValue)&&(n.value=(a=e.modelValue)==null?void 0:a.map(u=>e.options.find(d=>d[e.idName]===u))):n.value=(o=e.options)==null?void 0:o.find(u=>u[e.idName]===e.modelValue)},{immediate:!0}),{selectedValues:n,isSelectedOption:s,onUpdateModalValue:r}}},XL={class:"flex justify-between items-center cursor-pointer"},QL={class:"whitespace-normal leading-6"},eI=["for"],tI={key:0,class:"h-4 w-4 text-[#05603A]",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},nI={class:"flex gap-2.5 items-center rounded-full bg-dark-blue text-white px-4 py-2"},rI={class:"font-semibold leading-4"},sI=["onClick"],iI={class:"flex gap-4 items-center cursor-pointer"},aI={class:"whitespace-normal leading-6"},lI={key:0,class:"h-5 w-5 text-slate-600",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},oI=["onMousedown"];function uI(e,t,n,r,s,a){const o=at("multiselect");return k(),it(o,{class:$e(["multi-select",[n.multiple&&"multiple",n.theme==="new"&&"new-theme large-text",n.largeText&&"large-text"]]),modelValue:r.selectedValues,"onUpdate:modelValue":[t[0]||(t[0]=u=>r.selectedValues=u),r.onUpdateModalValue],"track-by":n.idName,label:n.labelField,multiple:n.multiple,"preselect-first":!1,"close-on-select":!n.multiple,"clear-on-select":!n.multiple,"preserve-search":!0,searchable:n.searchable,"allow-empty":n.allowEmpty,"deselect-label":n.deselectLabel,options:n.options},Bn({tag:Te(({option:u,remove:d})=>[v("span",nI,[v("span",rI,re(u.name),1),v("span",{onClick:h=>d(u)},t[2]||(t[2]=[v("img",{src:"/images/close-white.svg"},null,-1)]),8,sI)])]),caret:Te(({toggle:u})=>[v("div",{class:"cursor-pointer absolute top-1/2 right-4 -translate-y-1/2",onMousedown:Et(u,["prevent"])},t[4]||(t[4]=[v("img",{src:"/images/select-arrow.svg"},null,-1)]),40,oI)]),noResult:Te(()=>[t[5]||(t[5]=v("div",{class:"text-gray-400 text-center"},"No elements found",-1))]),_:2},[n.multiple&&n.theme==="new"?{name:"option",fn:Te(({option:u})=>[v("div",XL,[v("span",QL,re(u[n.labelField]),1),v("div",{class:$e(["flex-shrink-0 h-6 w-6 border-2 bg-white flex items-center justify-center cursor-pointer rounded",[r.isSelectedOption(u)?"border-[#05603A]":"border-dark-blue-200"]]),for:e.id},[r.isSelectedOption(u)?(k(),I("svg",tI,t[1]||(t[1]=[v("path",{d:"M5 13l4 4L19 7"},null,-1)]))):ie("",!0)],10,eI)])]),key:"0"}:void 0,n.multiple?void 0:{name:"option",fn:Te(({option:u})=>[v("div",iI,[v("span",aI,re(u[n.labelField]),1),v("div",null,[r.isSelectedOption(u)?(k(),I("svg",lI,t[3]||(t[3]=[v("path",{d:"M5 13l4 4L19 7"},null,-1)]))):ie("",!0)])])]),key:"1"}]),1032,["class","modelValue","track-by","label","multiple","close-on-select","clear-on-select","searchable","allow-empty","deselect-label","options","onUpdate:modelValue"])}const Fo=vt(ZL,[["render",uI]]),cI={props:{modelValue:[String,Number],name:String,min:Number,max:Number,type:{type:String,default:"text"}},emits:["update:modelValue","onChange","onBlur"],setup(e,{emit:t}){const n=fe(e.modelValue);return qt(()=>e.modelValue,()=>{n.value=e.modelValue}),{localValue:n,onChange:a=>{let o=a.target.value;e.type==="number"&&(o=o&&Number(o),e.min!==void 0&&e.min!==null&&(o=Math.max(o,e.min)),e.max!==void 0&&e.max!==null&&(o=Math.min(o,e.max))),Hn(()=>{t("update:modelValue",o),t("onChange",o)})},onBlur:()=>{t("onBlur")}}}},dI=["id","type","min","max","name"];function fI(e,t,n,r,s,a){return Dn((k(),I("input",{class:"w-full border-2 border-solid border-dark-blue-200 rounded-full h-12 px-6 text-xl text-slate-600",id:`id_${n.name}`,type:n.type,min:n.min,max:n.max,name:n.name,"onUpdate:modelValue":t[0]||(t[0]=o=>r.localValue=o),onInput:t[1]||(t[1]=(...o)=>r.onChange&&r.onChange(...o)),onBlur:t[2]||(t[2]=(...o)=>r.onBlur&&r.onBlur(...o))},null,40,dI)),[[xp,r.localValue]])}const ld=vt(cI,[["render",fI]]),hI={props:{modelValue:String,name:String,label:String,value:String},emits:["update:modelValue"],setup(e,{emit:t}){return{onChange:r=>{t("update:modelValue",r.target.value)}}}},pI={class:"flex items-center gap-2 cursor-pointer"},mI=["id","name","value","checked"],gI=["for"],vI={class:"cursor-pointer text-xl text-slate-500"};function yI(e,t,n,r,s,a){return k(),I("label",pI,[v("input",{class:"peer hidden",type:"radio",id:`${n.name}-${n.value}`,name:n.name,value:n.value,checked:n.modelValue===n.value,onChange:t[0]||(t[0]=(...o)=>r.onChange&&r.onChange(...o))},null,40,mI),v("div",{class:"h-8 w-8 rounded-full border-2 bg-white border-dark-blue-200 flex items-center justify-center cursor-pointer peer-checked:before:content-[''] peer-checked:before:block peer-checked:before:w-3 peer-checked:before:h-3 peer-checked:before:rounded-full peer-checked:before:bg-slate-600",for:`${n.name}-${n.value}`},null,8,gI),v("span",vI,re(n.label),1)])}const jp=vt(hI,[["render",yI]]),_I={props:{modelValue:String,name:String,placeholder:String,height:{type:Number,default:400}},emits:["update:modelValue","onChange"],setup(e,{emit:t}){const n=a=>{t("update:modelValue",a),t("onChange",a)},r=()=>{const a="/js/tinymce/tinymce.min.js";return new Promise((o,u)=>{if(document.querySelector(`script[src="${a}"]`))return o();const d=document.createElement("script");d.src=a,d.onload=()=>o(),d.onerror=()=>u(new Error(`Failed to load script ${a}`)),document.head.appendChild(d)})},s=async()=>{try{await r()}catch(a){console.log("Can't load tinymce scrip:",a)}tinymce.init({selector:`#id_${e.name}`,height:e.height,width:"100%",setup:a=>{a.on("init",()=>{a.setContent(e.modelValue||"")}),a.on("change input",()=>{const o=a.getContent();a.save(),n(o)})}})};return It(()=>{s()}),{}}},bI={class:"custom-tinymce"},wI=["id","name","placeholder"];function xI(e,t,n,r,s,a){return k(),I("div",bI,[v("textarea",{class:"hidden",cols:"40",id:`id_${n.name}`,name:n.name,placeholder:n.placeholder,rows:"10"},null,8,wI)])}const kI=vt(_I,[["render",xI]]),SI={props:{errors:Object,formValues:Object,themes:Array,location:Object,countries:Array},components:{FieldWrapper:ad,SelectField:Fo,InputField:ld,RadioField:jp,TinymceField:kI},setup(e,{emit:t}){const{activityFormatOptions:n,activityTypeOptions:r,durationOptions:s,recurringTypeOptions:a}=Hi();return{activityFormatOptions:n,activityTypeOptions:r,durationOptions:s,recurringTypeOptions:a,handleLocationChange:({location:u,geoposition:d,country_iso:h})=>{e.formValues.location=u,e.formValues.geoposition=d;const f=e.countries.find(({iso:p})=>p===h);e.formValues.country_iso=f}}}},TI={class:"flex flex-col gap-4 w-full"},AI={class:"flex gap-4 p-4 mt-2.5 w-full rounded-2xl border bg-dark-blue-50 border-dark-blue-100"},CI={class:"text-xl text-slate-500"},EI={class:"w-full md:w-1/2"},OI={class:"w-full flex px-3 justify-between items-center text-gray-700 whitespace-nowrap rounded-3xl border-2 border-dark-blue-200 h-[50px] bg-white"},MI={class:"flex items-center gap-8 min-h-[48px]"},RI={key:0,class:"p-4 mt-4 w-full rounded-2xl border bg-dark-blue-50 border-dark-blue-100"},DI={class:"block mb-2 text-xl font-semibold text-slate-500"},PI={class:"flex flex-wrap gap-8 items-center"},LI={class:"block mt-6 mb-2 text-xl font-semibold text-slate-500"};function II(e,t,n,r,s,a){const o=at("InputField"),u=at("FieldWrapper"),d=at("SelectField"),h=at("autocomplete-geo"),f=at("date-time"),p=at("RadioField"),m=at("TinymceField");return k(),I("div",TI,[he(u,{horizontalBreakpoint:"md",label:`${e.$t("event.title.label")}*`,name:"title",errors:n.errors},{default:Te(()=>[he(o,{modelValue:n.formValues.title,"onUpdate:modelValue":t[0]||(t[0]=y=>n.formValues.title=y),required:"",name:"title",placeholder:e.$t("event.title.placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.specify-the-format-of-the-activity"),name:"activity_format",errors:n.errors},{default:Te(()=>[he(d,{modelValue:n.formValues.activity_format,"onUpdate:modelValue":t[1]||(t[1]=y=>n.formValues.activity_format=y),multiple:"",name:"activity_format",options:r.activityFormatOptions,placeholder:e.$t("event.select-option")},null,8,["modelValue","options","placeholder"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:`${e.$t("event.activitytype.label")}*`,name:"activity_type",errors:n.errors},{end:Te(()=>[v("div",AI,[t[14]||(t[14]=v("img",{class:"flex-shrink-0 mt-1 w-6 h-6",src:"/images/icon_info.svg"},null,-1)),v("span",CI,re(e.$t("event.if-no-clear-information-provide-estimate")),1)])]),default:Te(()=>[he(d,{modelValue:n.formValues.activity_type,"onUpdate:modelValue":t[2]||(t[2]=y=>n.formValues.activity_type=y),required:"",name:"activity_type",options:r.activityTypeOptions},null,8,["modelValue","options"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:`${e.$t("event.address.label")} ${["open-online","invite-online"].includes(n.formValues.activity_type)?"(optional)":"*"}`,name:"location",errors:n.errors},{default:Te(()=>[he(h,{class:"custom-geo-input",name:"location",placeholder:e.$t("event.address.placeholder"),location:n.formValues.location,value:n.formValues.location,geoposition:n.formValues.geoposition,onOnChange:r.handleLocationChange},null,8,["placeholder","location","value","geoposition","onOnChange"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.activity-duration"),name:"duration",errors:n.errors},{default:Te(()=>[v("div",EI,[he(d,{modelValue:n.formValues.duration,"onUpdate:modelValue":t[3]||(t[3]=y=>n.formValues.duration=y),required:"",name:"duration",options:r.durationOptions,placeholder:e.$t("event.select-option")},null,8,["modelValue","options","placeholder"])])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.date"),names:["start_date","end_date"],errors:n.errors},{default:Te(()=>[v("div",OI,[he(f,{name:"start_date",placeholder:e.$t("event.start.label"),flow:["calendar","time"],value:n.formValues.start_date,onOnChange:t[4]||(t[4]=y=>n.formValues.start_date=y)},null,8,["placeholder","value"]),t[15]||(t[15]=v("span",null,"-",-1)),he(f,{name:"end_date",placeholder:e.$t("event.end.label"),flow:["calendar","time"],value:n.formValues.end_date,onOnChange:t[5]||(t[5]=y=>n.formValues.end_date=y)},null,8,["placeholder","value"])])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.is-it-a-recurring-event"),name:"is_recurring_event_local",errors:n.errors},{default:Te(()=>[v("div",MI,[he(p,{modelValue:n.formValues.is_recurring_event_local,"onUpdate:modelValue":t[6]||(t[6]=y=>n.formValues.is_recurring_event_local=y),name:"is_recurring_event_local",value:"true",label:e.$t("event.true")},null,8,["modelValue","label"]),he(p,{modelValue:n.formValues.is_recurring_event_local,"onUpdate:modelValue":t[7]||(t[7]=y=>n.formValues.is_recurring_event_local=y),name:"is_recurring_event_local",value:"false",label:e.$t("event.false")},null,8,["modelValue","label"])]),n.formValues.is_recurring_event_local==="true"?(k(),I("div",RI,[v("label",DI,re(e.$t("event.how-frequently")),1),v("div",PI,[he(p,{modelValue:n.formValues.recurring_event,"onUpdate:modelValue":t[8]||(t[8]=y=>n.formValues.recurring_event=y),name:"recurring_event",value:"daily",label:e.$t("event.daily")},null,8,["modelValue","label"]),he(p,{modelValue:n.formValues.recurring_event,"onUpdate:modelValue":t[9]||(t[9]=y=>n.formValues.recurring_event=y),name:"recurring_event",value:"weekly",label:e.$t("event.weekly")},null,8,["modelValue","label"]),he(p,{modelValue:n.formValues.recurring_event,"onUpdate:modelValue":t[10]||(t[10]=y=>n.formValues.recurring_event=y),name:"recurring_event",value:"monthly",label:e.$t("event.monthly")},null,8,["modelValue","label"])]),v("label",LI,re(e.$t("event.what-type-of-recurring-activity")),1),he(d,{modelValue:n.formValues.recurring_type,"onUpdate:modelValue":t[11]||(t[11]=y=>n.formValues.recurring_type=y),name:"recurring_type",options:r.recurringTypeOptions},null,8,["modelValue","options"])])):ie("",!0)]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.theme-title"),name:"theme",errors:n.errors},{default:Te(()=>[he(d,{modelValue:n.formValues.theme,"onUpdate:modelValue":t[12]||(t[12]=y=>n.formValues.theme=y),multiple:"",required:"",name:"theme",placeholder:e.$t("event.select-theme"),options:n.themes},null,8,["modelValue","placeholder","options"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.activity-description"),name:"description",errors:n.errors},{default:Te(()=>[he(m,{modelValue:n.formValues.description,"onUpdate:modelValue":t[13]||(t[13]=y=>n.formValues.description=y),name:"description"},null,8,["modelValue"])]),_:1},8,["label","errors"])])}const NI=vt(SI,[["render",II]]);function VI(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(s){s(n)}),(r=e.get("*"))&&r.slice().map(function(s){s(t,n)})}}}const ei=VI(),FI={props:{message:{type:Object,default:null}},setup(e){const t=fe(""),n=fe(!1),r=fe(""),s=u=>{u&&(t.value=u.message,r.value=u.level.charAt(0).toUpperCase()+u.level.slice(1),n.value=!0,a())},a=()=>{setTimeout(()=>{n.value=!1},3e3)},o=pe(()=>({success:r.value.toLowerCase()==="success",error:r.value.toLowerCase()==="error"}));return It(()=>{e.message&&s(e.message),ei.on("flash",s)}),ii(()=>{ei.off("flash",s)}),{body:t,show:n,level:r,flashClass:o}}},$I={key:0,class:"codeweek-flash-message",role:"alert"},BI={class:"level"},HI={class:"body"};function UI(e,t,n,r,s,a){return r.show?(k(),I("div",$I,[v("div",{class:$e(["content",r.flashClass])},[v("div",BI,re(r.level)+"!",1),v("div",HI,re(r.body),1)],2)])):ie("",!0)}const od=vt(FI,[["render",UI],["__scopeId","data-v-09461b5c"]]),jI={components:{Flash:od},props:{name:{type:String,default:"picture"},picture:{type:String,default:""}},emits:["onChange"],setup(e,{emit:t}){const n=fe(null),r=fe(e.picture||""),s=fe(""),a=()=>{var p;return(p=n.value)==null?void 0:p.click()},o=()=>{},u=()=>{},d=p=>{const[m]=p.dataTransfer.files;m&&f(m)},h=p=>{const[m]=p.target.files;m&&f(m)};function f(p){const m=new FormData;m.append("picture",p),xt.post("/api/events/picture",m).then(y=>{s.value="",r.value=y.data.path,ei.emit("flash",{message:"Picture uploaded!",level:"success"}),t("onChange",y.data)}).catch(y=>{var _,E,U,V;const w=((V=(U=(E=(_=y.response)==null?void 0:_.data)==null?void 0:E.errors)==null?void 0:U.picture)==null?void 0:V[0])||"Image is too large. Maximum is 1Mb";s.value=w,ei.emit("flash",{message:w,level:"error"})})}return{fileInput:n,pictureClone:r,error:s,onTriggerFileInput:a,onDragOver:o,onDragLeave:u,onDrop:d,onFileChange:h}}},WI=["src"],qI={class:"text-xl text-slate-500"},YI={class:"text-xs text-slate-500"},zI={key:0,class:"flex gap-3 mt-2.5 font-semibold item-start text-error-200"},KI={class:"leading-5"},GI={class:"flex gap-2.5 mt-4 w-full"},JI={class:"mt-1 text-xs text-slate-500"},ZI={class:"pl-4 my-4 list-disc"},XI={class:"text-xs text-slate-500"};function QI(e,t,n,r,s,a){const o=at("Flash");return k(),I("div",null,[v("div",{class:"flex flex-col justify-center items-center gap-2 border-[3px] border-dashed border-dark-blue-200 w-full rounded-2xl py-12 px-8 cursor-pointer",onClick:t[1]||(t[1]=(...u)=>r.onTriggerFileInput&&r.onTriggerFileInput(...u)),onDragover:t[2]||(t[2]=Et((...u)=>r.onDragOver&&r.onDragOver(...u),["prevent"])),onDragleave:t[3]||(t[3]=(...u)=>r.onDragLeave&&r.onDragLeave(...u)),onDrop:t[4]||(t[4]=Et((...u)=>r.onDrop&&r.onDrop(...u),["prevent"]))},[v("div",{class:$e(["mb-4",[!r.pictureClone&&"hidden"]])},[v("img",{src:r.pictureClone,class:"mr-1"},null,8,WI)],2),v("div",{class:$e([!!r.pictureClone&&"hidden"])},t[5]||(t[5]=[v("img",{class:"w-16 h-16",src:"/images/icon_image.svg"},null,-1)]),2),v("span",qI,re(e.$t("event.drop-your-image-here-or-upload")),1),v("span",YI,re(e.$t("event.max-size-1mb-image-formats-jpg-png")),1),v("input",{class:"hidden",type:"file",ref:"fileInput",onChange:t[0]||(t[0]=(...u)=>r.onFileChange&&r.onFileChange(...u))},null,544)],32),r.error?(k(),I("div",zI,[t[6]||(t[6]=v("img",{src:"/images/icon_error.svg"},null,-1)),v("div",KI,re(r.error),1)])):ie("",!0),v("div",GI,[t[7]||(t[7]=v("img",{class:"flex-shrink-0 w-6 h-6",src:"/images/icon_info.svg"},null,-1)),v("div",JI,[mt(re(e.$t("event.by-submitting-images-through-this-form-you-confirm-that"))+" ",1),v("ul",ZI,[v("li",null,re(e.$t("event.you-have-obtained-all-necessary-permissions")),1),v("li",null,re(e.$t("event.you-will-not-submit-any-images-with-faces-directly-visible-or-identifiable"))+" "+re(e.$t("event.if-this-is-the-case-ensure-faces-are-blurred"))+" "+re(e.$t("event.submissions-that-do-not-comply-will-not-be-accepted")),1),v("li",null,re(e.$t("event.you-understand-and-agree-images-will-be-shared")),1)])])]),v("div",XI,re(e.$t("event.info-max-size-1mb")),1),he(o)])}const F1=vt(jI,[["render",QI]]),eN={props:{errors:Object,formValues:Object,audiences:Array,leadingTeachers:Array},components:{FieldWrapper:ad,SelectField:Fo,InputField:ld,RadioField:jp,ImageField:F1},setup(e){const{ageOptions:t}=Hi();return{leadingTeacherOptions:pe(()=>e.leadingTeachers.map(a=>({id:a,name:a}))),ageOptions:t,onPictureChange:a=>{e.formValues.picture=a.imageName,e.formValues.pictureUrl=a.path},handleCorrectCount:a=>{const o=Number(e.formValues.participants_count||"0");Number(e.formValues[a]||"0")>o&&(e.formValues[a]=o)}}}},tN={class:"flex flex-col gap-4 w-full"},nN={class:"flex flex-col gap-4 p-4 mt-2.5 w-full rounded-2xl border bg-dark-blue-50 border-dark-blue-100"},rN={class:"flex gap-2 p-2 mb-2 w-full bg-gray-100 rounded"},sN={class:"text-xl text-slate-500"},iN={class:"block mb-2 text-xl font-semibold text-slate-500"},aN={class:"grid grid-cols-1 gap-x-4 gap-y-4 md:grid-cols-2 md:gap-x-8"},lN={class:"flex items-center gap-8 min-h-[48px] h-full"},oN={class:"flex items-center gap-8 min-h-[48px] h-full"},uN={href:"/codeweek4all",target:"_blank"};function cN(e,t,n,r,s,a){const o=at("SelectField"),u=at("FieldWrapper"),d=at("InputField"),h=at("RadioField"),f=at("ImageField");return k(),I("div",tN,[he(u,{horizontalBreakpoint:"md",label:e.$t("event.audiences"),name:"audience",errors:n.errors},{default:Te(()=>[he(o,{placeholder:e.$t("event.select-option"),modelValue:n.formValues.audience,"onUpdate:modelValue":t[0]||(t[0]=p=>n.formValues.audience=p),multiple:"",name:"audience",options:n.audiences},null,8,["placeholder","modelValue","options"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.number-of-participants"),name:"participants_count",errors:n.errors},{end:Te(()=>[v("div",nN,[v("div",rN,[t[15]||(t[15]=v("img",{class:"flex-shrink-0 mt-1 w-6 h-6",src:"/images/icon_info.svg"},null,-1)),v("span",sN,re(e.$t("event.if-no-clear-information-provide-estimate")),1)]),v("label",iN,re(e.$t("event.of-this-number-how-many-are")),1),v("div",aN,[he(u,{label:e.$t("event.males"),name:"males_count",errors:n.errors},{default:Te(()=>[he(d,{modelValue:n.formValues.males_count,"onUpdate:modelValue":t[2]||(t[2]=p=>n.formValues.males_count=p),type:"number",min:0,name:"males_count",placeholder:e.$t("event.enter-number"),onOnBlur:t[3]||(t[3]=p=>r.handleCorrectCount("event.males_count"))},null,8,["modelValue","placeholder"])]),_:1},8,["label","errors"]),he(u,{label:e.$t("event.females"),name:"females_count",errors:n.errors},{default:Te(()=>[he(d,{modelValue:n.formValues.females_count,"onUpdate:modelValue":t[4]||(t[4]=p=>n.formValues.females_count=p),type:"number",min:0,name:"females_count",placeholder:e.$t("event.enter-number"),onOnBlur:t[5]||(t[5]=p=>r.handleCorrectCount("event.females_count"))},null,8,["modelValue","placeholder"])]),_:1},8,["label","errors"]),he(u,{label:e.$t("event.other-gender"),name:"other_count",errors:n.errors},{default:Te(()=>[he(d,{modelValue:n.formValues.other_count,"onUpdate:modelValue":t[6]||(t[6]=p=>n.formValues.other_count=p),type:"number",min:0,name:"other_count",placeholder:e.$t("event.enter-number"),onOnBlur:t[7]||(t[7]=p=>r.handleCorrectCount("event.other_count"))},null,8,["modelValue","placeholder"])]),_:1},8,["label","errors"])])])]),default:Te(()=>[he(d,{modelValue:n.formValues.participants_count,"onUpdate:modelValue":t[1]||(t[1]=p=>n.formValues.participants_count=p),type:"number",min:0,required:"",name:"participants_count",placeholder:e.$t("event.enter-number")},null,8,["modelValue","placeholder"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.age"),name:"ages",errors:n.errors},{default:Te(()=>[he(o,{placeholder:e.$t("event.select-option"),modelValue:n.formValues.ages,"onUpdate:modelValue":t[8]||(t[8]=p=>n.formValues.ages=p),multiple:"",name:"ages",options:r.ageOptions},null,8,["placeholder","modelValue","options"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("is-this-an-extracurricular-activity"),name:"is_extracurricular_event",errors:n.errors},{default:Te(()=>[v("div",lN,[he(h,{modelValue:n.formValues.is_extracurricular_event,"onUpdate:modelValue":t[9]||(t[9]=p=>n.formValues.is_extracurricular_event=p),name:"is_extracurricular_event",value:"true",label:e.$t("event.yes")},null,8,["modelValue","label"]),he(h,{modelValue:n.formValues.is_extracurricular_event,"onUpdate:modelValue":t[10]||(t[10]=p=>n.formValues.is_extracurricular_event=p),name:"is_extracurricular_event",value:"false",label:e.$t("event.no")},null,8,["modelValue","label"])])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.is-this-an-activity-within-the-standard-school-curriculum"),name:"is_standard_school_curriculum",errors:n.errors},{default:Te(()=>[v("div",oN,[he(h,{modelValue:n.formValues.is_standard_school_curriculum,"onUpdate:modelValue":t[11]||(t[11]=p=>n.formValues.is_standard_school_curriculum=p),name:"is_standard_school_curriculum",value:"true",label:e.$t("event.yes")},null,8,["modelValue","label"]),he(h,{modelValue:n.formValues.is_standard_school_curriculum,"onUpdate:modelValue":t[12]||(t[12]=p=>n.formValues.is_standard_school_curriculum=p),name:"is_standard_school_curriculum",value:"false",label:e.$t("event.no")},null,8,["modelValue","label"])])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.code-week-4-all-code-optional"),name:"codeweek_for_all_participation_code",errors:n.errors},{tooltip:Te(()=>[mt(re(e.$t("event.codeweek_for_all_participation_code.explanation"))+" ",1),v("a",uN,re(e.$t("event.codeweek_for_all_participation_code.link")),1),t[16]||(t[16]=mt(". "))]),default:Te(()=>[he(d,{modelValue:n.formValues.codeweek_for_all_participation_code,"onUpdate:modelValue":t[13]||(t[13]=p=>n.formValues.codeweek_for_all_participation_code=p),name:"codeweek_for_all_participation_code"},null,8,["modelValue"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.leading-teachers-optional"),name:"leading_teacher_tag",errors:n.errors},{default:Te(()=>[he(o,{modelValue:n.formValues.leading_teacher_tag,"onUpdate:modelValue":t[14]||(t[14]=p=>n.formValues.leading_teacher_tag=p),name:"leading_teacher_tag",options:r.leadingTeacherOptions},null,8,["modelValue","options"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.image-optional"),name:"picture",errors:n.errors},{default:Te(()=>[he(f,{name:"picture",picture:n.formValues.pictureUrl,image:n.formValues.picture,onOnChange:r.onPictureChange},null,8,["picture","image","onOnChange"])]),_:1},8,["label","errors"])])}const dN=vt(eN,[["render",cN]]),fN={props:{errors:Object,formValues:Object,languages:Object,countries:Array},components:{FieldWrapper:ad,SelectField:Fo,InputField:ld,RadioField:jp,ImageField:F1},setup(e,{emit:t}){const{organizerTypeOptions:n}=Hi(),r=pe(()=>Object.entries(e.languages).map(([s,a])=>({id:s,name:a})));return{organizerTypeOptions:n,languageOptions:r}}},hN={class:"flex flex-col gap-4 w-full"},pN={class:"flex items-center gap-8 min-h-[48px] h-full"},mN={class:"flex gap-2.5 mt-4 w-full"},gN={class:"mt-1 text-xs text-slate-400"};function vN(e,t,n,r,s,a){const o=at("InputField"),u=at("FieldWrapper"),d=at("SelectField"),h=at("RadioField");return k(),I("div",hN,[he(u,{horizontalBreakpoint:"md",label:`${e.$t("event.organizer.label")}*`,name:"organizer",errors:n.errors},{default:Te(()=>[he(o,{modelValue:n.formValues.organizer,"onUpdate:modelValue":t[0]||(t[0]=f=>n.formValues.organizer=f),required:"",name:"organizer",placeholder:e.$t("event.organizer.placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:`${e.$t("event.organizertype.label")}*`,name:"organizer_type",errors:n.errors},{default:Te(()=>[he(d,{placeholder:e.$t("event.select-option"),modelValue:n.formValues.organizer_type,"onUpdate:modelValue":t[1]||(t[1]=f=>n.formValues.organizer_type=f),required:"",name:"organizer_type",options:r.organizerTypeOptions},null,8,["placeholder","modelValue","options"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:`${e.$t("resources.Languages")} (optional)`,name:"language",errors:n.errors},{default:Te(()=>[he(d,{placeholder:e.$t("event.select-option"),modelValue:n.formValues.language,"onUpdate:modelValue":t[2]||(t[2]=f=>n.formValues.language=f),name:"language",searchable:"",multiple:"",options:r.languageOptions},null,8,["placeholder","modelValue","options"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:`${e.$t("event.country")}*`,name:"country_iso",errors:n.errors},{default:Te(()=>[he(d,{placeholder:e.$t("event.select-option"),modelValue:n.formValues.country_iso,"onUpdate:modelValue":t[3]||(t[3]=f=>n.formValues.country_iso=f),"id-name":"iso",searchable:"",required:"",name:"country_iso",options:n.countries},null,8,["placeholder","modelValue","options"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:e.$t("event.are-you-using-any-code-week-resources-in-this-activity"),name:"is_use_resource",errors:n.errors},{default:Te(()=>[v("div",pN,[he(h,{modelValue:n.formValues.is_use_resource,"onUpdate:modelValue":t[4]||(t[4]=f=>n.formValues.is_use_resource=f),name:"is_use_resource",value:"true",label:e.$t("event.yes")},null,8,["modelValue","label"]),he(h,{modelValue:n.formValues.is_use_resource,"onUpdate:modelValue":t[5]||(t[5]=f=>n.formValues.is_use_resource=f),name:"is_use_resource",value:"false",label:e.$t("event.no")},null,8,["modelValue","label"])])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:`${e.$t("event.website.label")} ${["open-online","invite-online"].includes(n.formValues.activity_type)?"*":"(optional)"}`,name:"event_url",errors:n.errors},{default:Te(()=>[he(o,{modelValue:n.formValues.event_url,"onUpdate:modelValue":t[6]||(t[6]=f=>n.formValues.event_url=f),name:"event_url",placeholder:e.$t("event.website.placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:`${e.$t("event.public.label")} (optional)`,name:"contact_person",errors:n.errors},{default:Te(()=>[he(o,{modelValue:n.formValues.contact_person,"onUpdate:modelValue":t[7]||(t[7]=f=>n.formValues.contact_person=f),type:"email",name:"contact_person",placeholder:e.$t("event.public.placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label","errors"]),he(u,{horizontalBreakpoint:"md",label:`${e.$t("event.contact.label")}*`,name:"user_email",errors:n.errors},{end:Te(()=>[v("div",mN,[t[9]||(t[9]=v("img",{class:"flex-shrink-0 w-6 h-6",src:"/images/icon_info.svg"},null,-1)),v("div",gN,re(e.$t("event.contact.explanation")),1)])]),default:Te(()=>[he(o,{modelValue:n.formValues.user_email,"onUpdate:modelValue":t[8]||(t[8]=f=>n.formValues.user_email=f),required:"",type:"email",name:"user_email",placeholder:e.$t("event.contact.placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label","errors"])])}const yN=vt(fN,[["render",vN]]),_N={props:{formValues:Object,themes:Array,audiences:Array,leadingTeachers:Array,languages:Object,countries:Array},setup(e){const{activityFormatOptionsMap:t,activityTypeOptionsMap:n,recurringFrequentlyMap:r,durationOptionsMap:s,recurringTypeOptionsMap:a,ageOptionsMap:o,organizerTypeOptionsMap:u}=Hi();return{stepDataList:pe(()=>{var Oe,Be,Ue;const{title:h,activity_format:f,activity_type:p,location:m,duration:y,start_date:w,end_date:_,is_recurring_event_local:E,recurring_event:U,recurring_type:V,theme:x,description:A,audience:F,participants_count:B,males_count:$,females_count:M,other_count:S,ages:H,is_extracurricular_event:se,is_standard_school_curriculum:ee,codeweek_for_all_participation_code:ne,leading_teacher_tag:J,pictureUrl:P,picture:z,organizer:R,organizer_type:te,language:be,country_iso:De,is_use_resource:He,event_url:K,contact_person:ue,user_email:D}=e.formValues||{},le=(f||[]).map(qe=>t.value[qe]),we=n.value[p],Y=s.value[y],Le=w?new Date(w).toISOString().slice(0,10):"",Xe=_?new Date(_).toISOString().slice(0,10):"",ye=E==="true",et=a.value[V],W=(x||[]).map(qe=>{var Ge;return(Ge=e.themes.find(ot=>ot.id===qe))==null?void 0:Ge.name}).map(qe=>Pe(`event.theme.${qe}`)),T=[{label:Pe("event.title.label"),value:h},{label:Pe("event.specify-the-format-of-the-activity"),value:le.join(", ")},{label:Pe("event.activitytype.label"),value:we},{label:Pe("event.address.label"),value:m},{label:Pe("event.activity-duration"),value:Y},{label:Pe("event.date"),value:`${Le} - ${Xe}`},{label:Pe("event.is-it-a-recurring-event"),value:Pe(ye?"event.yes":"event.no")},{label:Pe("event.how-frequently"),value:ye?r.value[U]:""},{label:Pe("event.what-type-of-recurring-activity"),value:et},{label:Pe("event.theme-title"),value:W.join(", ")},{label:Pe("event.activity-description"),htmlValue:A}],N=(F||[]).map(qe=>{var Ge;return(Ge=e.audiences.find(({id:ot})=>ot===qe))==null?void 0:Ge.name}).map(qe=>Pe(`event.audience.${qe}`)),G=[B||0,[`${$||0} ${Pe("event.males")}`,`${M||0} ${Pe("event.females")}`,`${S||0} ${Pe("event.other-gender")}`].join(", ")].join(" - "),Q=(H||[]).map(qe=>o.value[qe]),me=[{label:Pe("event.audience_title"),value:N==null?void 0:N.join(", ")},{label:Pe("event.number-of-participants"),value:G},{label:Pe("event.age"),value:Q==null?void 0:Q.join(", ")},{label:Pe("event.is-this-an-extracurricular-activity"),value:Pe(se==="true"?"event.yes":"event.no")},{label:Pe("event.is-this-an-activity-within-the-standard-school-curriculum"),value:Pe(ee==="true"?"event.yes":"event.no")},{label:Pe("event.code-week-4-all-code-optional"),value:ne},{label:Pe("community.titles.2"),value:J},{label:Pe("event.image"),imageUrl:P,imageName:(Be=(Oe=z==null?void 0:z.split("/"))==null?void 0:Oe.reverse())==null?void 0:Be[0]}],j=u.value[te],de=be==null?void 0:be.map(qe=>{var Ge;return(Ge=e.languages)==null?void 0:Ge[qe]}).filter(Boolean),ve=(Ue=e.countries.find(({iso:qe})=>qe===De))==null?void 0:Ue.name,ke=[{label:Pe("event.organizer.label"),value:R},{label:Pe("event.organizertype.label"),value:j},{label:Pe("resources.Languages"),value:de==null?void 0:de.join(", ")},{label:Pe("event.country"),value:ve},{label:Pe("event.are-you-using-any-code-week-resources-in-this-activity"),value:Pe(He==="true"?"event.yes":"event.no")},{label:Pe("event.website.label"),value:K},{label:Pe("event.public.label"),value:ue},{label:Pe("event.contact.label"),value:D}],Ae=({value:qe,htmlValue:Ge,imageUrl:ot})=>!cr.isNil(qe)&&!cr.isEmpty(qe)||!cr.isEmpty(Ge)||!cr.isEmpty(ot);return[{title:Pe("event.confirmation_step.activity_overview"),list:T.filter(Ae)},{title:Pe("event.confirmation_step.who_is_the_activity_for"),list:me.filter(Ae)},{title:Pe("event.confirmation_step.organiser"),list:ke.filter(Ae)}]})}}},bN={class:"flex flex-col gap-12 w-full"},wN={class:"flex flex-col gap-6"},xN={class:"text-dark-blue text-2xl md:text-[30px] leading-[44px] font-medium font-['Montserrat'] text-center"},kN={class:"flex flex-col gap-1"},SN={class:"flex gap-10 items-center px-4 py-2 text-[16px] md:text-xl text-slate-500 bg-white"},TN={class:"flex-shrink-0 w-32 md:w-60"},AN=["innerHTML"],CN={key:1},EN={class:"mb-2"},ON=["src"],MN={key:2,class:"flex-grow w-full"};function RN(e,t,n,r,s,a){return k(),I("div",bN,[(k(!0),I(Ne,null,Qe(r.stepDataList,({title:o,list:u})=>(k(),I("div",wN,[v("h2",xN,re(o),1),v("div",kN,[(k(!0),I(Ne,null,Qe(u,({label:d,value:h,htmlValue:f,imageUrl:p,imageName:m})=>(k(),I("div",SN,[v("div",TN,re(d),1),f?(k(),I("div",{key:0,innerHTML:f,class:"flex-grow w-full space-y-2 [&_p]:py-0"},null,8,AN)):ie("",!0),p?(k(),I("div",CN,[v("div",EN,re(e.trans("event.image-attached")),1),v("img",{class:"mb-2 max-h-80",src:p},null,8,ON),v("div",null,re(m),1)])):ie("",!0),h?(k(),I("div",MN,re(h||""),1)):ie("",!0)]))),256))])]))),256))])}const DN=vt(_N,[["render",RN]]),PN={props:{modelValue:String,name:String,label:String,value:String},emits:["update:modelValue"],setup(e,{emit:t}){return{onChange:r=>{t("update:modelValue",r.target.checked)}}}},LN={class:"flex items-center gap-2 cursor-pointer"},IN=["id","name","checked"],NN=["for"],VN={key:0,class:"h-5 w-5 text-slate-600",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},FN={class:"cursor-pointer text-xl text-slate-500"};function $N(e,t,n,r,s,a){return k(),I("label",LN,[v("input",{class:"peer hidden",type:"checkbox",id:n.name,name:n.name,checked:n.modelValue,onChange:t[0]||(t[0]=(...o)=>r.onChange&&r.onChange(...o))},null,40,IN),v("div",{class:"flex-shrink-0 h-8 w-8 border-2 bg-white flex items-center justify-center cursor-pointer border-dark-blue-200 rounded-lg",for:e.id},[n.modelValue?(k(),I("svg",VN,t[1]||(t[1]=[v("path",{d:"M5 13l4 4L19 7"},null,-1)]))):ie("",!0)],8,NN),v("span",FN,[mt(re(n.label)+" ",1),Ie(e.$slots,"default")])])}const BN=vt(PN,[["render",$N]]),HN={props:{token:{type:String,default:""},event:{type:Object,default:()=>({})},selectedValues:{type:Object,default:()=>({})},locale:{type:String,default:""},user:{type:Object,default:()=>({})},themes:{type:Array,default:()=>[]},audiences:{type:Array,default:()=>[]},leadingTeachers:{type:Array,default:()=>[]},languages:{type:Object,default:()=>({})},countries:{type:Array,default:()=>[]},location:{type:Object,default:()=>({})},privacyLink:{type:String,default:""}},components:{FormStep1:NI,FormStep2:dN,FormStep3:yN,AddConfirmation:DN,CheckboxField:BN},setup(e,{emit:t}){var x,A,F,B,$;console.log("event",e.event);const{stepTitles:n}=Hi(),r=fe(null),s=fe(null),a=fe(1),o=fe({}),u=fe(!1),d=fe({activity_type:"open-in-person",location:((x=e.location)==null?void 0:x.location)||"",geoposition:((F=(A=e.location)==null?void 0:A.geoposition)==null?void 0:F.split(","))||[],is_recurring_event_local:"false",recurring_event:"daily",is_extracurricular_event:"false",is_standard_school_curriculum:"false",organizer:((B=e.location)==null?void 0:B.name)||"",organizer_type:(($=e==null?void 0:e.location)==null?void 0:$.organizer_type)||"",language:e.locale?[e.locale]:[],country_iso:e.location.country_iso||"",is_use_resource:"false",privacy:!1}),h=fe(cr.clone(d.value)),f=pe(()=>{const M=cr.cloneDeep(h.value),S=["title","activity_type","duration","is_recurring_event_local","start_date","end_date","theme","description"];return["open-online","invite-online"].includes(M.activity_type)||S.push("location"),S.every(H=>!cr.isEmpty(M[H]))}),p=pe(()=>{const M=cr.cloneDeep(h.value),S=["audience","ages","is_extracurricular_event"];return!!M.participants_count&&S.every(H=>!cr.isEmpty(M[H]))}),m=pe(()=>{const M=cr.cloneDeep(h.value),S=["organizer","organizer_type","country_iso","user_email"];return["open-online","invite-online"].includes(M.activity_type)&&S.push("event_url"),M.privacy?S.every(H=>!cr.isEmpty(M[H])):!1}),y=pe(()=>a.value===1&&!f.value||a.value===2&&!p.value||a.value===3&&!m.value),w=M=>{a.value=Math.max(Math.min(M,4),1)},_=()=>{var H,se,ee,ne;const M=((H=e==null?void 0:e.event)==null?void 0:H.id)||((se=r.value)==null?void 0:se.id),S=((ee=e==null?void 0:e.event)==null?void 0:ee.slug)||((ne=r.value)==null?void 0:ne.slug);window.location.href=`/view/${M}/${S}`},E=()=>window.location.href="/events",U=()=>window.location.reload(),V=async()=>{var H,se,ee,ne,J,P,z;o.value={};const M=h.value,S={_token:e.token,_method:cr.isNil(e.event.id)?void 0:"PATCH",title:M.title,activity_format:(H=M.activity_format)==null?void 0:H.join(","),activity_type:M.activity_type,location:M.location,geoposition:((se=M.geoposition)==null?void 0:se.join(","))||[],duration:M.duration,start_date:M.start_date,end_date:M.end_date,theme:(ee=M.theme)==null?void 0:ee.join(","),description:M.description,audience:(ne=M.audience)==null?void 0:ne.join(","),participants_count:M.participants_count,males_count:M.males_count,females_count:M.females_count,other_count:M.other_count,ages:(J=M.ages)==null?void 0:J.join(","),is_extracurricular_event:M.is_extracurricular_event==="true",is_standard_school_curriculum:M.is_standard_school_curriculum==="true",codeweek_for_all_participation_code:M.codeweek_for_all_participation_code,leading_teacher_tag:M.leading_teacher_tag,picture:M.picture,organizer:M.organizer,organizer_type:M.organizer_type,language:M.language,country_iso:M.country_iso,is_use_resource:M.is_use_resource==="true",event_url:M.event_url,contact_person:M.contact_person,user_email:M.user_email,privacy:M.privacy===!0?"on":void 0};M.is_recurring_event_local==="true"&&(S.recurring_event=M.recurring_event,S.recurring_type=M.recurring_type);try{if(!cr.isNil(e.event.id))await xt.post(`/events/${e.event.id}`,S);else{const{data:R}=await xt.post("/events",S);r.value=R.event}w(4)}catch(R){o.value=(z=(P=R.response)==null?void 0:P.data)==null?void 0:z.errors,a.value=1}};return qt(()=>e.event,()=>{var se,ee,ne,J;if(!e.event.id)return;const M=P=>{var z,R;return((R=(z=P==null?void 0:P.split(","))==null?void 0:z.filter(te=>!!te))==null?void 0:R.map(te=>Number(te)))||[]},S=e.event,H=S.geoposition||((se=e.location)==null?void 0:se.geoposition);h.value={...h.value,title:S.title,activity_format:S.activity_format,activity_type:S.activity_type||"open-in-person",location:S.location||((ee=e.location)==null?void 0:ee.location),geoposition:H==null?void 0:H.split(","),duration:S.duration,start_date:S.start_date,end_date:S.end_date,recurring_event:S.recurring_event||"daily",recurring_type:S.recurring_type,theme:M(e.selectedValues.themes),description:S.description,audience:M(e.selectedValues.audiences),participants_count:S.participants_count,males_count:S.males_count,females_count:S.females_count,other_count:S.other_count,ages:S.ages,is_extracurricular_event:String(!!S.is_extracurricular_event),is_standard_school_curriculum:String(!!S.is_standard_school_curriculum),codeweek_for_all_participation_code:S.codeweek_for_all_participation_code,leading_teacher_tag:S.leading_teacher_tag,picture:S.picture,pictureUrl:e.selectedValues.picture,organizer:S.organizer||((ne=e.location)==null?void 0:ne.name),organizer_type:S.organizer_type||((J=e==null?void 0:e.location)==null?void 0:J.organizer_type),language:S.languages||[e.locale],country_iso:S.country_iso||e.location.country_iso,is_use_resource:String(!!S.is_use_resource),event_url:S.event_url,contact_person:S.contact_person,user_email:S.user_email},S.recurring_event&&(h.value.is_recurring_event_local="true")},{immediate:!0}),qt(()=>a.value,()=>{if(a.value===4){const M=document.getElementById("add-event-hero-section");M&&(M.style.display="none"),window.scrollTo({top:0})}else if(s.value){const M=s.value.getBoundingClientRect().top;window.scrollTo({top:M+window.pageYOffset-40})}}),It(()=>{const M=new IntersectionObserver(([H])=>{u.value=H.isIntersecting}),S=document.getElementById("page-footer");S&&M.observe(S)}),{containerRef:s,step:a,stepTitles:n,errors:o,formValues:h,handleGoToActivity:_,handleGoMapPage:E,handleReloadPage:U,handleMoveStep:w,handleSubmit:V,disableNextbutton:y,validStep1:f,validStep2:p,validStep3:m,pageFooterVisible:u}}},UN={key:0,class:"flex relative justify-center py-10 codeweek-container-lg"},jN={class:"flex gap-12"},WN=["onClick"],qN={class:"flex-1"},YN={class:"text-slate-500 font-normal text-base leading-[22px] p-0 text-center"},zN={key:0,class:"absolute top-6 left-[calc(100%+1.5rem)] -translate-x-1/2 w-[calc(100%-1rem)] md:w-[calc(100%-0.75rem)] h-[2px] bg-[#CCF0F9]"},KN={key:1,class:"flex relative justify-center px-4 py-10 codeweek-container-lg md:px-10 md:py-20"},GN={class:"flex flex-col justify-center items-center text-center gap-4 max-w-[660px]"},JN={class:"text-dark-blue text-[22px] md:text-4xl font-semibold font-[Montserrat]"},ZN={key:0,class:"flex flex-col gap-4 text-[16px] text-center"},XN={ref:"containerRef",class:"relative w-full"},QN={class:"relative pt-20 pb-16 codeweek-container-lg md:pt-32 md:pb-20"},e4={class:"flex justify-center"},t4={class:"flex flex-col max-w-[852px] w-full"},n4={key:0,class:"text-dark-blue text-2xl md:text-4xl leading-[44px] font-medium font-['Montserrat'] mb-10 text-center"},r4=["href"],s4={class:"flex flex-wrap gap-y-2 gap-x-4 justify-between mt-10 min-h-12"},i4={key:0},a4={key:1},l4=["disabled"],o4={key:0},u4={key:1},c4={key:1},d4={key:2};function f4(e,t,n,r,s,a){var p;const o=at("FormStep1"),u=at("FormStep2"),d=at("FormStep3"),h=at("CheckboxField"),f=at("AddConfirmation");return k(),I(Ne,null,[r.step<4?(k(),I("div",UN,[v("div",jN,[(k(!0),I(Ne,null,Qe(r.stepTitles,(m,y)=>(k(),I("div",{class:$e(["flex relative flex-col flex-1 gap-2 items-center md:w-52",[y===0&&"cursor-pointer",y+1===2&&r.validStep1&&"cursor-pointer",y+1===3&&r.validStep2&&"cursor-pointer"]]),onClick:()=>{y+1===2&&!r.validStep1||y+1===3&&!r.validStep2||r.handleMoveStep(y+1)}},[v("div",{class:$e(["w-12 h-12 rounded-full flex justify-center items-center text-['#20262C'] font-semibold text-2xl",[r.step===y+1?"bg-light-blue-300":"bg-light-blue-100"]])},re(y+1),3),v("div",qN,[v("p",YN,re(e.$t(`event.${m}`)),1)]),yr.formValues.privacy=m),name:"privacy"},{default:Te(()=>[v("div",null,[v("span",null,re(e.$t("event.privacy")),1),v("a",{class:"ml-1 !inline cookweek-link",href:n.privacyLink,target:"_blank"},re(e.$t("event.privacy-policy-terms")),9,r4)])]),_:1},8,["modelValue"])],2),v("div",{class:$e([r.step!==4&&"hidden"])},[he(f,{formValues:r.formValues,themes:n.themes,location:n.location,audiences:n.audiences,leadingTeachers:n.leadingTeachers,languages:n.languages,countries:n.countries},null,8,["formValues","themes","location","audiences","leadingTeachers","languages","countries"])],2),v("div",s4,[r.step>1?(k(),I("button",{key:0,class:"flex justify-center items-center gap-2 text-[#1C4DA1] border-solid border-2 border-[#1C4DA1] rounded-full py-2.5 px-6 font-semibold text-lg transition-all duration-300 hover:bg-[#E8EDF6] max-sm:w-full sm:min-w-[224px]",type:"button",onClick:t[1]||(t[1]=()=>{r.step===4?r.handleGoToActivity():r.handleMoveStep(r.step-1)})},[r.step===4?(k(),I("span",i4,re(e.$t("event.view-activity")),1)):(k(),I("span",a4,re(e.$t("event.previous-step")),1))])):ie("",!0),t[4]||(t[4]=v("div",{class:"hidden md:block"},null,-1)),v("div",{id:"footer-scroll-activity",class:$e(["flex justify-center max-sm:w-full sm:min-w-[224px]",[r.step<4&&!r.pageFooterVisible?"md:!translate-y-0 max-md:fixed max-md:bottom-0 max-md:left-0 max-md:border-t-2 max-md:border-primary max-md:py-4 max-md:px-[44px] max-md:w-full max-md:bg-white max-md:z-[99]":"!translate-y-0"]])},[v("button",{class:$e(["text-nowrap flex justify-center items-center duration-300 rounded-full py-2.5 px-6 font-semibold text-lg max-sm:w-full sm:min-w-[224px]",[r.disableNextbutton?"cursor-not-allowed bg-gray-200 text-gray-400":"bg-primary hover:bg-hover-orange text-[#20262C]"]]),type:"button",disabled:r.disableNextbutton,onClick:t[2]||(t[2]=()=>{var m;r.step===4?(m=n.event)!=null&&m.id?r.handleGoMapPage():r.handleReloadPage():r.step===3&&r.validStep3?r.handleSubmit():r.step===2&&r.validStep2?r.handleMoveStep(3):r.step===1&&r.validStep1&&r.handleMoveStep(2)})},[r.step===4?(k(),I(Ne,{key:0},[(p=n.event)!=null&&p.id?(k(),I("span",o4,re(e.$t("event.back-to-map-page")),1)):(k(),I("span",u4,re(e.$t("event.add-another-activity")),1))],64)):r.step===3?(k(),I("span",c4,re(e.$t("event.submit")),1)):(k(),I("span",d4,re(e.$t("event.next-step")),1))],10,l4)],2)])])])])],512)],64)}const h4=vt(HN,[["render",f4]]),p4={props:{property:Object,type:String},data(){return{label:this.type?this.$t("resources.resources."+this.type+"."+this.property.name):this.property.name}}},m4={class:"bg-light-blue-100 py-1 px-4 text-sm font-semibold text-slate-500 rounded-full whitespace-nowrap"};function g4(e,t,n,r,s,a){return k(),I("span",m4,re(s.label),1)}const $1=vt(p4,[["render",g4]]),v4={components:{ResourcePill:$1},props:{resource:Object},data(){return{descriptionHeight:"auto",needShowMore:!0,showMore:!1}},methods:{computeDescriptionHeight(){const e=this.$refs.descriptionContainerRef,t=this.$refs.descriptionRef,n=e.clientHeight,r=Math.floor(n/22);t.style.height="auto",this.descriptionHeight="auto",this.needShowMore=t.offsetHeight>n,t.offsetHeight>n?(t.style.height=`${r*22}px`,this.descriptionHeight=`${r*22}px`):this.showMore=!1},onToggleShowMore(){const e=this.$refs.descriptionRef;this.showMore=!this.showMore,this.showMore?e.style.height="auto":e.style.height=this.descriptionHeight}},mounted:function(){this.computeDescriptionHeight()}},y4={class:"relative flex flex-col bg-white rounded-lg overflow-hidden"},_4={class:"flex-shrink-0"},b4=["src"],w4={class:"flex gap-2 flex-wrap mb-2"},x4={class:"text-dark-blue font-semibold font-['Montserrat'] leading-6"},k4={key:0,class:"text-slate-500 text-[16px] leading-[22px]"},S4={ref:"descriptionRef",class:"relative flex-grow text-slate-500 overflow-hidden",style:{height:"auto"}},T4={class:"flex-shrink-0"},A4=["href"];function C4(e,t,n,r,s,a){var u,d,h,f;const o=at("resource-pill");return k(),I("div",y4,[v("div",_4,[v("img",{src:n.resource.thumbnail},null,8,b4)]),v("div",{class:$e(["flex-grow flex flex-col gap-2 px-6 py-4 h-fit",{"max-h-[450px]":s.needShowMore&&!s.showMore}])},[v("div",w4,[(k(!0),I(Ne,null,Qe(n.resource.types,p=>(k(),it(o,{property:p,type:"types"},null,8,["property"]))),256))]),v("div",x4,re(n.resource.name),1),(d=(u=n.resource.languages)==null?void 0:u[0])!=null&&d.name?(k(),I("div",k4," Language: "+re(((f=(h=n.resource.languages)==null?void 0:h[0])==null?void 0:f.name)||""),1)):ie("",!0),v("div",{ref:"descriptionContainerRef",class:$e(["flex-grow text-[16px] leading-[22px] h-full",{"overflow-hidden":s.needShowMore&&!s.showMore}])},[v("div",S4,[mt(re(n.resource.description)+" ",1),s.needShowMore?(k(),I("div",{key:0,class:$e(["flex justify-end bottom-0 right-0 bg-white pl-0.5 text-dark-blue",{absolute:!s.showMore,"w-full":s.showMore}])},[v("button",{onClick:t[0]||(t[0]=(...p)=>a.onToggleShowMore&&a.onToggleShowMore(...p))},re(s.showMore?"Show less":"... Show more"),1)],2)):ie("",!0)],512)],2),v("div",T4,[t[2]||(t[2]=v("div",{class:"h-[56px]"},null,-1)),v("a",{class:"absolute left-6 right-6 bottom-4 flex justify-center items-center gap-2 text-[#1C4DA1] border-solid border-2 border-[#1C4DA1] rounded-full py-3 px-8 font-semibold text-lg transition-all duration-300 hover:bg-[#E8EDF6] group",href:n.resource.source,target:"_blank"},[v("span",null,re(e.$t("myevents.view_lesson")),1),t[1]||(t[1]=v("div",{class:"flex gap-2 w-4 overflow-hidden"},[v("img",{src:"/images/arrow-right-icon.svg",class:"min-w-4 duration-500 transform -translate-x-6 group-hover:translate-x-0"}),v("img",{src:"/images/arrow-right-icon.svg",class:"min-w-4 duration-500 transform -translate-x-6 group-hover:translate-x-0"})],-1))],8,A4)])],2)])}const B1=vt(v4,[["render",C4]]),E4={props:["pagination","offset"],methods:{isCurrentPage(e){return this.pagination.current_page===e},changePage(e){e<1||e>this.pagination.last_page||(this.pagination.current_page=e,this.$emit("paginate",e))}},computed:{pages(){let e=[],t=this.pagination.current_page-Math.floor(this.offset/2);t<1&&(t=1);let n=t+this.offset-1;for(n>this.pagination.last_page&&(n=this.pagination.last_page);t<=n;)e.push(t),t++;return e}}},O4={role:"navigation","aria-label":"pagination"},M4={class:"flex flex-wrap items-center justify-center gap-2 py-12 m-0 font-['Blinker']"},R4=["disabled"],D4={class:"flex items-center gap-1 whitespace-nowrap"},P4=["onClick"],L4={key:1,class:"flex justify-center items-center w-12 h-12 text-xl rounded font-normal text-[#333E48] duration-300"},I4=["disabled"];function N4(e,t,n,r,s,a){return k(),I("nav",O4,[v("ul",M4,[v("li",null,[v("a",{class:"block p-4 duration-300 rounded-full cursor-pointer bg-yellow hover:bg-primary",onClick:t[0]||(t[0]=Et(o=>a.changePage(n.pagination.current_page-1),["prevent"])),disabled:n.pagination.current_page<=1},t[2]||(t[2]=[v("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("path",{d:"M25.8335 16H7.16683",stroke:"black","stroke-width":"2.66667","stroke-linecap":"round","stroke-linejoin":"round"}),v("path",{d:"M16.5 6.66663L7.16667 16L16.5 25.3333",stroke:"black","stroke-width":"2.66667","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),8,R4)]),(k(!0),I(Ne,null,Qe(a.pages,o=>(k(),I("li",D4,[n.pagination.current_page!=o?(k(),I("a",{key:0,class:"flex justify-center items-center w-12 h-12 text-xl hover:bg-[#1C4DA1]/10 rounded font-bold text-[#1C4DA1] underline duration-300 cursor-pointer",onClick:Et(u=>a.changePage(o),["prevent"])},re(o),9,P4)):(k(),I("a",L4,re(o),1))]))),256)),v("li",null,[v("a",{class:"block p-4 duration-300 rounded-full cursor-pointer bg-yellow hover:bg-primary",onClick:t[1]||(t[1]=Et(o=>a.changePage(n.pagination.current_page+1),["prevent"])),disabled:n.pagination.current_page>=n.pagination.last_page},t[3]||(t[3]=[v("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("path",{d:"M7.16699 16H25.8337",stroke:"black","stroke-width":"2.66667","stroke-linecap":"round","stroke-linejoin":"round"}),v("path",{d:"M16.5 6.66663L25.8333 16L16.5 25.3333",stroke:"black","stroke-width":"2.66667","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),8,I4)])])])}const ud=vt(E4,[["render",N4]]);var V4={exports:{}};/*! + * clipboard.js v2.0.11 + * https://clipboardjs.com/ + * + * Licensed MIT © Zeno Rocha + */(function(e,t){(function(r,s){e.exports=s()})(N1,function(){return function(){var n={686:function(a,o,u){u.d(o,{default:function(){return He}});var d=u(279),h=u.n(d),f=u(370),p=u.n(f),m=u(817),y=u.n(m);function w(K){try{return document.execCommand(K)}catch{return!1}}var _=function(ue){var D=y()(ue);return w("cut"),D},E=_;function U(K){var ue=document.documentElement.getAttribute("dir")==="rtl",D=document.createElement("textarea");D.style.fontSize="12pt",D.style.border="0",D.style.padding="0",D.style.margin="0",D.style.position="absolute",D.style[ue?"right":"left"]="-9999px";var le=window.pageYOffset||document.documentElement.scrollTop;return D.style.top="".concat(le,"px"),D.setAttribute("readonly",""),D.value=K,D}var V=function(ue,D){var le=U(ue);D.container.appendChild(le);var we=y()(le);return w("copy"),le.remove(),we},x=function(ue){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},le="";return typeof ue=="string"?le=V(ue,D):ue instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(ue==null?void 0:ue.type)?le=V(ue.value,D):(le=y()(ue),w("copy")),le},A=x;function F(K){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?F=function(D){return typeof D}:F=function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},F(K)}var B=function(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=ue.action,le=D===void 0?"copy":D,we=ue.container,Y=ue.target,Le=ue.text;if(le!=="copy"&&le!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Y!==void 0)if(Y&&F(Y)==="object"&&Y.nodeType===1){if(le==="copy"&&Y.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(le==="cut"&&(Y.hasAttribute("readonly")||Y.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Le)return A(Le,{container:we});if(Y)return le==="cut"?E(Y):A(Y,{container:we})},$=B;function M(K){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?M=function(D){return typeof D}:M=function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},M(K)}function S(K,ue){if(!(K instanceof ue))throw new TypeError("Cannot call a class as a function")}function H(K,ue){for(var D=0;D"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function te(K){return te=Object.setPrototypeOf?Object.getPrototypeOf:function(D){return D.__proto__||Object.getPrototypeOf(D)},te(K)}function be(K,ue){var D="data-clipboard-".concat(K);if(ue.hasAttribute(D))return ue.getAttribute(D)}var De=function(K){ee(D,K);var ue=J(D);function D(le,we){var Y;return S(this,D),Y=ue.call(this),Y.resolveOptions(we),Y.listenClick(le),Y}return se(D,[{key:"resolveOptions",value:function(){var we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof we.action=="function"?we.action:this.defaultAction,this.target=typeof we.target=="function"?we.target:this.defaultTarget,this.text=typeof we.text=="function"?we.text:this.defaultText,this.container=M(we.container)==="object"?we.container:document.body}},{key:"listenClick",value:function(we){var Y=this;this.listener=p()(we,"click",function(Le){return Y.onClick(Le)})}},{key:"onClick",value:function(we){var Y=we.delegateTarget||we.currentTarget,Le=this.action(Y)||"copy",Xe=$({action:Le,container:this.container,target:this.target(Y),text:this.text(Y)});this.emit(Xe?"success":"error",{action:Le,text:Xe,trigger:Y,clearSelection:function(){Y&&Y.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(we){return be("action",we)}},{key:"defaultTarget",value:function(we){var Y=be("target",we);if(Y)return document.querySelector(Y)}},{key:"defaultText",value:function(we){return be("text",we)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(we){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return A(we,Y)}},{key:"cut",value:function(we){return E(we)}},{key:"isSupported",value:function(){var we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Y=typeof we=="string"?[we]:we,Le=!!document.queryCommandSupported;return Y.forEach(function(Xe){Le=Le&&!!document.queryCommandSupported(Xe)}),Le}}]),D}(h()),He=De},828:function(a){var o=9;if(typeof Element<"u"&&!Element.prototype.matches){var u=Element.prototype;u.matches=u.matchesSelector||u.mozMatchesSelector||u.msMatchesSelector||u.oMatchesSelector||u.webkitMatchesSelector}function d(h,f){for(;h&&h.nodeType!==o;){if(typeof h.matches=="function"&&h.matches(f))return h;h=h.parentNode}}a.exports=d},438:function(a,o,u){var d=u(828);function h(m,y,w,_,E){var U=p.apply(this,arguments);return m.addEventListener(w,U,E),{destroy:function(){m.removeEventListener(w,U,E)}}}function f(m,y,w,_,E){return typeof m.addEventListener=="function"?h.apply(null,arguments):typeof w=="function"?h.bind(null,document).apply(null,arguments):(typeof m=="string"&&(m=document.querySelectorAll(m)),Array.prototype.map.call(m,function(U){return h(U,y,w,_,E)}))}function p(m,y,w,_){return function(E){E.delegateTarget=d(E.target,y),E.delegateTarget&&_.call(m,E)}}a.exports=f},879:function(a,o){o.node=function(u){return u!==void 0&&u instanceof HTMLElement&&u.nodeType===1},o.nodeList=function(u){var d=Object.prototype.toString.call(u);return u!==void 0&&(d==="[object NodeList]"||d==="[object HTMLCollection]")&&"length"in u&&(u.length===0||o.node(u[0]))},o.string=function(u){return typeof u=="string"||u instanceof String},o.fn=function(u){var d=Object.prototype.toString.call(u);return d==="[object Function]"}},370:function(a,o,u){var d=u(879),h=u(438);function f(w,_,E){if(!w&&!_&&!E)throw new Error("Missing required arguments");if(!d.string(_))throw new TypeError("Second argument must be a String");if(!d.fn(E))throw new TypeError("Third argument must be a Function");if(d.node(w))return p(w,_,E);if(d.nodeList(w))return m(w,_,E);if(d.string(w))return y(w,_,E);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function p(w,_,E){return w.addEventListener(_,E),{destroy:function(){w.removeEventListener(_,E)}}}function m(w,_,E){return Array.prototype.forEach.call(w,function(U){U.addEventListener(_,E)}),{destroy:function(){Array.prototype.forEach.call(w,function(U){U.removeEventListener(_,E)})}}}function y(w,_,E){return h(document.body,w,_,E)}a.exports=f},817:function(a){function o(u){var d;if(u.nodeName==="SELECT")u.focus(),d=u.value;else if(u.nodeName==="INPUT"||u.nodeName==="TEXTAREA"){var h=u.hasAttribute("readonly");h||u.setAttribute("readonly",""),u.select(),u.setSelectionRange(0,u.value.length),h||u.removeAttribute("readonly"),d=u.value}else{u.hasAttribute("contenteditable")&&u.focus();var f=window.getSelection(),p=document.createRange();p.selectNodeContents(u),f.removeAllRanges(),f.addRange(p),d=f.toString()}return d}a.exports=o},279:function(a){function o(){}o.prototype={on:function(u,d,h){var f=this.e||(this.e={});return(f[u]||(f[u]=[])).push({fn:d,ctx:h}),this},once:function(u,d,h){var f=this;function p(){f.off(u,p),d.apply(h,arguments)}return p._=d,this.on(u,p,h)},emit:function(u){var d=[].slice.call(arguments,1),h=((this.e||(this.e={}))[u]||[]).slice(),f=0,p=h.length;for(f;fM.teach===1)),a=fe(e.prpLevels.filter(M=>M.learn===1)),o=fe(e.prpTypes),u=fe(e.prpProgrammingLanguages),d=fe(e.prpCategories),h=fe(e.prpLanguages),f=fe(e.prpSubjects),p=fe({}),m=Hr({current_page:1}),y=fe([]),w=pe(()=>e.levels.filter(M=>M.teach===1)),_=pe(()=>e.levels.filter(M=>M.learn===1)),E=pe(()=>[...o.value,...s.value,...a.value,...h.value,...u.value,...f.value,...d.value]),U=M=>{const S=H=>H.id!==M.id;o.value=o.value.filter(S),s.value=s.value.filter(S),a.value=a.value.filter(S),h.value=h.value.filter(S),u.value=u.value.filter(S),f.value=f.value.filter(S),d.value=d.value.filter(S),B()},V=()=>{o.value=[],s.value=[],a.value=[],h.value=[],u.value=[],f.value=[],d.value=[],B()},x=()=>{window.scrollTo(0,0)},A=cr.debounce(()=>{B()},300),F=()=>{x(),B(!0)},B=(M=!1)=>{M||(m.current_page=1),y.value=[],xt.post("/resources/search?page="+m.current_page,{query:n.value,searchInput:r.value,selectedLevels:[...s.value,...a.value],selectedTypes:o.value,selectedProgrammingLanguages:u.value,selectedCategories:d.value,selectedLanguages:h.value,selectedSubjects:f.value}).then(S=>{m.per_page=S.data.per_page,m.current_page=S.data.current_page,m.from=S.data.from,m.last_page=S.data.last_page,m.last_page_url=S.data.last_page_url,m.next_page_url=S.data.next_page_url,m.prev_page=S.data.prev_page,m.prev_page_url=S.data.prev_page,m.to=S.data.to,m.total=S.data.total,y.value=S.data.data}).catch(S=>{p.value=S.response.data})},$=(M,S)=>Pe(S+"."+M.name);return It(()=>{B()}),{query:n,searchInput:r,targetAudiences:w,levelsDifficulty:_,selectedTargetAudiences:s,selectedLevelsDifficulty:a,selectedTypes:o,selectedProgrammingLanguages:u,selectedCategories:d,selectedLanguages:h,selectedSubjects:f,errors:p,pagination:m,resources:y,debounceSearch:A,paginate:F,onSubmit:B,customLabel:$,showFilterModal:t,tags:E,removeSelectedItem:U,removeAllSelectedItems:V}}},$4={class:"codeweek-resourceform-component font-['Blinker']"},B4={class:"codeweek-container py-6"},H4={class:"flex md:hidden flex-shrink-0 justify-end w-full mb-6"},U4={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4 mb-12"},j4={class:"block text-[16px] text-slate-500 mb-2"},W4=["placeholder"],q4={class:"block text-[16px] text-slate-500 mb-2"},Y4={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},z4={class:"language-json"},K4={class:"block text-[16px] text-slate-500 mb-2"},G4={class:"language-json"},J4={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},Z4={class:"block text-[16px] text-slate-500 mb-2"},X4={class:"language-json"},Q4={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},eV={class:"block text-[16px] text-slate-500 mb-2"},tV={class:"language-json"},nV={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},rV={class:"block text-[16px] text-slate-500 mb-2"},sV={class:"language-json"},iV={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},aV={class:"block text-[16px] text-slate-500 mb-2"},lV={class:"language-json"},oV={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},uV={class:"block text-[16px] text-slate-500 mb-2"},cV={class:"language-json"},dV={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},fV={class:"sm:col-span-2 md:col-span-1 lg:col-span-full lg:grid grid-cols-12 mt-3"},hV={class:"w-full flex items-end justify-center lg:col-span-4 h-full"},pV={class:"text-base leading-7 font-semibold text-black normal-case"},mV={key:0,class:"flex md:justify-center"},gV={class:"max-md:w-full flex flex-wrap gap-2"},vV={class:"flex items-center gap-2"},yV=["onClick"],_V={class:"max-md:w-full max-md:mt-4 flex justify-center px-4"},bV={class:"relative pt-20 md:pt-48"},wV={class:"bg-yellow-50"},xV={class:"relative z-10 codeweek-container"},kV={class:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6 lg:gap-10"};function SV(e,t,n,r,s,a){const o=at("multiselect"),u=at("resource-card"),d=at("pagination");return k(),I("div",$4,[v("div",B4,[v("div",{class:$e(["max-md:fixed left-0 top-[125px] z-[100] flex-col items-center w-full max-md:p-6 max-md:h-[calc(100dvh-125px)] max-md:overflow-auto max-md:bg-white duration-300",[r.showFilterModal?"flex":"max-md:hidden"]])},[v("div",H4,[v("button",{id:"search-menu-trigger-hide",class:"block bg-[#FFD700] hover:bg-[#F95C22] rounded-full p-4 duration-300",onClick:t[0]||(t[0]=h=>r.showFilterModal=!1)},t[14]||(t[14]=[v("img",{class:"w-6 h-6",src:"/images/close_menu_icon.svg"},null,-1)]))]),v("div",U4,[v("div",null,[v("label",j4,re(e.$t("resources.search_by_title_description")),1),Dn(v("input",{class:"px-6 py-3 w-full text-[16px] rounded-full border-solid border-2 border-[#A4B8D9] text-[#333E48] font-semibold placeholder:font-normal",type:"text","onUpdate:modelValue":t[1]||(t[1]=h=>r.searchInput=h),onSearchChange:t[2]||(t[2]=(...h)=>r.debounceSearch&&r.debounceSearch(...h)),onKeyup:t[3]||(t[3]=$n((...h)=>r.onSubmit&&r.onSubmit(...h),["enter"])),placeholder:e.$t("resources.search_resources")},null,40,W4),[[Ni,r.searchInput]])]),v("div",null,[v("label",q4,re(e.$t("resources.resource_type")),1),he(o,{modelValue:r.selectedTypes,"onUpdate:modelValue":t[4]||(t[4]=h=>r.selectedTypes=h),class:"multi-select",options:n.types,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:e.$t("resources.resource_type_placeholder"),label:"resources.resources.types","custom-label":r.customLabel,"track-by":"name","preselect-first":!1,onSelect:r.onSubmit,onRemove:r.onSubmit},{selection:Te(({values:h})=>[h.length>0?(k(),I("div",Y4," Selected "+re(h.length)+" "+re(h.length>1?"types":"type"),1)):ie("",!0)]),default:Te(()=>[v("pre",z4,[v("code",null,re(r.selectedTypes),1)])]),_:1},8,["modelValue","options","placeholder","custom-label","onSelect","onRemove"])]),v("div",null,[v("label",K4,re(e.$t("resources.target_audience")),1),he(o,{modelValue:r.selectedTargetAudiences,"onUpdate:modelValue":t[5]||(t[5]=h=>r.selectedTargetAudiences=h),class:"multi-select",options:r.targetAudiences,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:e.$t("resources.target_audience_placeholder"),label:"resources.resources.levels","custom-label":r.customLabel,"track-by":"name","preselect-first":!1,onSelect:r.onSubmit,onRemove:r.onSubmit},{selection:Te(({values:h})=>[h.length>0?(k(),I("div",J4," Selected "+re(h.length)+" "+re(h.length>1?"targets":"target"),1)):ie("",!0)]),default:Te(()=>[v("pre",G4,[v("code",null,re(r.selectedTargetAudiences),1)])]),_:1},8,["modelValue","options","placeholder","custom-label","onSelect","onRemove"])]),v("div",null,[v("label",Z4,re(e.$t("resources.level_difficulty")),1),he(o,{modelValue:r.selectedLevelsDifficulty,"onUpdate:modelValue":t[6]||(t[6]=h=>r.selectedLevelsDifficulty=h),class:"multi-select",options:r.levelsDifficulty,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:e.$t("resources.level_difficulty_placeholder"),label:"resources.resources.levels","custom-label":r.customLabel,"track-by":"name","preselect-first":!1,onSelect:r.onSubmit,onRemove:r.onSubmit},{selection:Te(({values:h})=>[h.length>0?(k(),I("div",Q4," Selected "+re(h.length)+" "+re(h.length>1?"levels":"level"),1)):ie("",!0)]),default:Te(()=>[v("pre",X4,[v("code",null,re(r.selectedLevelsDifficulty),1)])]),_:1},8,["modelValue","options","placeholder","custom-label","onSelect","onRemove"])]),v("div",null,[v("label",eV,re(e.$t("resources.Languages")),1),he(o,{modelValue:r.selectedLanguages,"onUpdate:modelValue":t[7]||(t[7]=h=>r.selectedLanguages=h),class:"multi-select",options:n.languages,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:e.$t("resources.languages_placeholder"),label:"resources.resources.languages","custom-label":r.customLabel,"track-by":"name","preselect-first":!1,onSelect:r.onSubmit,onRemove:r.onSubmit},{selection:Te(({values:h})=>[h.length>0?(k(),I("div",nV," Selected "+re(h.length)+" "+re(h.length>1?"languages":"language"),1)):ie("",!0)]),default:Te(()=>[v("pre",tV,[v("code",null,re(r.selectedLanguages),1)])]),_:1},8,["modelValue","options","placeholder","custom-label","onSelect","onRemove"])]),v("div",null,[v("label",rV,re(e.$t("resources.programming_languages")),1),he(o,{modelValue:r.selectedProgrammingLanguages,"onUpdate:modelValue":t[8]||(t[8]=h=>r.selectedProgrammingLanguages=h),class:"multi-select",options:n.programmingLanguages,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:e.$t("resources.programming_languages_placeholder"),label:"resources.resources.programming_languages","custom-label":r.customLabel,"track-by":"name","preselect-first":!1,onSelect:r.onSubmit,onRemove:r.onSubmit},{selection:Te(({values:h})=>[h.length>0?(k(),I("div",iV," Selected "+re(h.length)+" "+re(h.length>1?"programming languages":"programming language"),1)):ie("",!0)]),default:Te(()=>[v("pre",sV,[v("code",null,re(r.selectedProgrammingLanguages),1)])]),_:1},8,["modelValue","options","placeholder","custom-label","onSelect","onRemove"])]),v("div",null,[v("label",aV,re(e.$t("resources.Subjects")),1),he(o,{modelValue:r.selectedSubjects,"onUpdate:modelValue":t[9]||(t[9]=h=>r.selectedSubjects=h),class:"multi-select",options:n.subjects,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:e.$t("resources.subjects_placeholder"),label:"resources.resources.subjects","custom-label":r.customLabel,"track-by":"name","preselect-first":!1,onSelect:r.onSubmit,onRemove:r.onSubmit},{selection:Te(({values:h})=>[h.length>0?(k(),I("div",oV," Selected "+re(h.length)+" "+re(h.length>1?"subjects":"subject"),1)):ie("",!0)]),default:Te(()=>[v("pre",lV,[v("code",null,re(r.selectedSubjects),1)])]),_:1},8,["modelValue","options","placeholder","custom-label","onSelect","onRemove"])]),v("div",null,[v("label",uV,re(e.$t("resources.categories")),1),he(o,{modelValue:r.selectedCategories,"onUpdate:modelValue":t[10]||(t[10]=h=>r.selectedCategories=h),class:"multi-select",options:n.categories,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:e.$t("resources.categories_placeholder"),label:"resources.resources.categories","custom-label":r.customLabel,"track-by":"name","preselect-first":!1,onSelect:r.onSubmit,onRemove:r.onSubmit},{selection:Te(({values:h})=>[h.length>0?(k(),I("div",dV," Selected "+re(h.length)+" "+re(h.length>1?"categories":"category"),1)):ie("",!0)]),default:Te(()=>[v("pre",cV,[t[15]||(t[15]=mt(" ")),v("code",null,re(r.selectedCategories),1),t[16]||(t[16]=mt(` + `))])]),_:1},8,["modelValue","options","placeholder","custom-label","onSelect","onRemove"])]),v("div",fV,[t[17]||(t[17]=v("div",{class:"hidden lg:block lg:col-span-4"},null,-1)),v("div",hV,[v("button",{class:"w-full bg-[#F95C22] rounded-full py-2.5 px-6 font-['Blinker'] hover:bg-hover-orange duration-300",onClick:t[11]||(t[11]=()=>{r.showFilterModal=!1,r.onSubmit()})},[v("span",pV,re(e.$t("resources.search")),1)])])])])],2),v("button",{class:"block md:hidden w-full bg-[#F95C22] rounded-full py-2.5 px-6 font-['Blinker'] hover:bg-hover-orange duration-300 mb-8",onClick:t[12]||(t[12]=h=>r.showFilterModal=!0)},t[18]||(t[18]=[v("span",{class:"flex gap-2 justify-center items-center text-base leading-7 font-semibold text-black normal-case"},[mt(" Filter and search "),v("img",{class:"w-5 h-5",src:"/images/filter.svg"})],-1)])),r.tags.length?(k(),I("div",mV,[v("div",gV,[(k(!0),I(Ne,null,Qe(r.tags,h=>(k(),I("div",{key:h.id,class:"bg-light-blue-100 pl-4 pr-3 py-1 rounded-full text-slate-500 text-[16px] font-semibold"},[v("div",vV,[v("span",null,re(h.name),1),v("button",{onClick:f=>r.removeSelectedItem(h)},t[19]||(t[19]=[v("img",{class:"w-4 h-4",src:"/images/close-icon.svg"},null,-1)]),8,yV)])]))),128)),v("div",_V,[v("button",{class:"text-dark-blue underline font-semibold text-[16px]",onClick:t[13]||(t[13]=(...h)=>r.removeAllSelectedItems&&r.removeAllSelectedItems(...h))}," Clear all filters ")])])])):ie("",!0)]),v("div",bV,[t[20]||(t[20]=v("div",{class:"absolute w-full h-[800px] bg-yellow-50 md:hidden top-0",style:{"clip-path":"ellipse(270% 90% at 38% 90%)"}},null,-1)),t[21]||(t[21]=v("div",{class:"absolute w-full h-[800px] bg-yellow-50 hidden md:block top-0",style:{"clip-path":"ellipse(88% 90% at 50% 90%)"}},null,-1)),v("div",wV,[v("div",xV,[v("div",kV,[(k(!0),I(Ne,null,Qe(r.resources,h=>(k(),it(u,{key:h.id,resource:h},null,8,["resource"]))),128))]),r.pagination.last_page>1?(k(),it(d,{key:0,pagination:r.pagination,offset:5,onPaginate:r.paginate},null,8,["pagination","onPaginate"])):ie("",!0)])])])])}const TV=vt(F4,[["render",SV]]);window.singleselect=void 0;const AV={components:{Multiselect:Ta},props:{name:String,options:Array,value:String,placeholder:String},data(){return{values:this.value,option:this.options}}},CV={class:"multiselect-wrapper"},EV=["name","value"];function OV(e,t,n,r,s,a){const o=at("multiselect");return k(),I("div",CV,[he(o,{modelValue:s.values,"onUpdate:modelValue":t[0]||(t[0]=u=>s.values=u),options:s.option,placeholder:n.placeholder},null,8,["modelValue","options","placeholder"]),v("input",{name:n.name,type:"hidden",value:s.values},null,8,EV)])}const MV=vt(AV,[["render",OV]]),RV={components:{Multiselect:Ta},props:{name:String,value:String,options:Array,closeOnSelect:Boolean,label:String,translated:String,multiple:Boolean,searchable:Boolean},data(){let e=[],t=[];if(this.value){const n=this.value.split(",");t=n,e=n.map(r=>this.options.find(s=>s.id==r)).filter(r=>r!==void 0)}return{values:e,innerValues:t}},methods:{select(e){this.innerValues.push(e.id)},remove(e){this.innerValues=this.innerValues.filter(t=>t!=e.id)},customLabel(e,t){return this.$t(`${t}.${e.name}`)}}},DV={class:"multiselect-wrapper"},PV=["name","value"];function LV(e,t,n,r,s,a){const o=at("multiselect",!0);return k(),I("div",DV,[he(o,{modelValue:s.values,"onUpdate:modelValue":t[0]||(t[0]=u=>s.values=u),options:n.options,multiple:!0,taggable:!0,"close-on-select":!1,"clear-on-select":!1,searchable:!1,"show-labels":!1,placeholder:"","preserve-search":!0,label:n.label,"track-by":"id","preselect-first":!1,"custom-label":a.customLabel,onSelect:a.select,onRemove:a.remove},null,8,["modelValue","options","label","custom-label","onSelect","onRemove"]),v("input",{name:n.name,type:"hidden",value:s.innerValues.toString()},null,8,PV)])}const IV=vt(RV,[["render",LV]]),NV={props:["code","countries","target"],data(){return{selected_country:this.code||""}},methods:{newCountry(){window.location.href="/"+this.target+"/"+this.selected_country}}},VV={class:"relative"},FV=["value"];function $V(e,t,n,r,s,a){return k(),I("div",VV,[Dn(v("select",{"onUpdate:modelValue":t[0]||(t[0]=o=>s.selected_country=o),id:"id_country",name:"country_iso",onChange:t[1]||(t[1]=o=>a.newCountry()),class:"border-2 border-solid border-dark-blue-200 w-full rounded-full h-12 px-4 appearance-none"},[t[2]||(t[2]=v("option",{value:""}," All countries",-1)),t[3]||(t[3]=v("option",{disabled:"",value:"---"},"---------------",-1)),(k(!0),I(Ne,null,Qe(n.countries,o=>(k(),I("option",{value:o.iso},re(o.name)+" ("+re(o.total)+") ",9,FV))),256))],544),[[wp,s.selected_country]]),t[4]||(t[4]=v("div",{class:"cursor-pointer absolute top-1/2 right-4 -translate-y-1/2"},[v("img",{src:"/images/select-arrow.svg"})],-1))])}const BV=vt(NV,[["render",$V]]),HV={components:{Multiselect:Ta},props:["event","refresh","ambassador","pendingCounter","nextPending"],name:"moderate-activity",data(){return{status:this.event.status,showModal:!1,showDeleteModal:!1,rejectionText:"",rejectionOption:null,rejectionOptions:[{title:this.$t("moderation.description.title"),text:this.$t("moderation.description.text")},{title:this.$t("moderation.missing-details.title"),text:this.$t("moderation.missing-details.text")},{title:this.$t("moderation.duplicate.title"),text:this.$t("moderation.duplicate.text")},{title:this.$t("moderation.not-related.title"),text:this.$t("moderation.not-related.text")}]}},computed:{displayRejectionOptions(){return this.rejectionOptions.map(e=>{switch(e.title){case"moderation.description.title":return{title:"Missing proper descriptions",text:"Please improve the description and describe in more detail what you will do and how your activity relates to coding and computational thinking. Thanks!"};case"moderation.missing-details.title":return{title:"Missing important details",text:"Provide more details on the activity objectives and goals and how it makes use of technology, coding and critical thinking. Thanks!"};case"moderation.duplicate.title":return{title:"Duplicate",text:"This seems to be a duplication of another activity taking place at the same time. If it is not please change the description and change the title so that it is clear that the activities are separate. Thanks!"};case"moderation.not-related.title":return{title:"Not programming related",text:"Provide more information on the activity objectives and goals and how it makes use of technology, coding and critical thinking. Thanks!"};default:return e}})}},methods:{reRender(){this.refresh?window.location.reload(!1):window.location.assign(this.nextPending)},approve(){xt.post("/api/event/approve/"+this.event.id).then(()=>{this.status="APPROVED",this.reRender()})},deleteEvent(){xt.post("/api/event/delete/"+this.event.id).then(e=>{this.status="DELETED",this.refresh?this.reRender():window.location.assign(e.data.redirectUrl)})},toggleModal(){this.showModal=!this.showModal},toggleDeleteModal(){this.showDeleteModal=!this.showDeleteModal},reject(){xt.post("/api/event/reject/"+this.event.id,{rejectionText:this.rejectionText}).then(()=>{this.toggleModal(),this.status="REJECTED",this.reRender()})},prefillRejectionText(){this.rejectionText=this.rejectionOption.text}}},UV={class:"moderate-event"},jV={key:0,class:"px-5 flex items-center w-full gap-1"},WV={class:"flex justify-end flex-1 items-center gap-1"},qV={key:1,class:"h-8 w-full grid grid-cols-3 gap-4 items-center"},YV={class:"flex-none"},zV={href:"/pending"},KV={class:"flex justify-center"},GV={key:0},JV={class:"actions flex justify-items-end justify-end gap-2"},ZV={key:0,class:"modal-overlay"},XV={class:"modal-container"},QV={class:"modal-header"},eF={class:"modal-body"},tF={class:"modal-footer"},nF={key:0,class:"modal-overlay"},rF={class:"modal-container"},sF={class:"modal-header"},iF={class:"modal-footer"};function aF(e,t,n,r,s,a){const o=at("multiselect");return k(),I("div",UV,[n.refresh?(k(),I("div",jV,[t[14]||(t[14]=v("p",{class:"text-default text-slate-500 flex items-center font-semibold p-0"},"Moderation:",-1)),v("div",WV,[v("button",{onClick:t[0]||(t[0]=(...u)=>a.approve&&a.approve(...u)),class:"font-normal w-fit px-2.5 py-1 bg-dark-blue text-white rounded-full flex items-center"},"Approve"),v("button",{onClick:t[1]||(t[1]=(...u)=>a.toggleModal&&a.toggleModal(...u)),class:"font-normal w-fit px-2.5 py-1 bg-primary text-white rounded-full flex items-center"},"Reject"),v("button",{onClick:t[2]||(t[2]=(...u)=>a.toggleDeleteModal&&a.toggleDeleteModal(...u)),class:"font-normal w-fit px-2.5 py-1 bg-dark-orange text-white rounded-full flex items-center"},"Delete")])])):ie("",!0),n.refresh?ie("",!0):(k(),I("div",qV,[v("div",YV,[t[15]||(t[15]=mt("Pending Activities: ")),v("a",zV,re(n.pendingCounter),1)]),v("div",KV,[v("div",null,[mt(re(e.$t("event.current_status"))+": ",1),v("strong",null,re(s.status),1),t[16]||(t[16]=mt()),n.event.LatestModeration?(k(),I("span",GV,"("+re(n.event.LatestModeration.message)+")",1)):ie("",!0)])]),v("div",JV,[v("button",{onClick:t[3]||(t[3]=(...u)=>a.approve&&a.approve(...u)),class:"codeweek-action-button green"},"Approve"),v("button",{onClick:t[4]||(t[4]=(...u)=>a.toggleModal&&a.toggleModal(...u)),class:"codeweek-action-button"},"Reject"),v("button",{onClick:t[5]||(t[5]=(...u)=>a.toggleDeleteModal&&a.toggleDeleteModal(...u)),class:"codeweek-action-button red"},"Delete")])])),he(vs,{name:"modal"},{default:Te(()=>[s.showModal?(k(),I("div",ZV,[v("div",XV,[v("div",QV,[t[17]||(t[17]=v("h3",{class:"text-2xl font-semibold"},"Please provide a reason for rejection",-1)),v("button",{onClick:t[6]||(t[6]=(...u)=>a.toggleModal&&a.toggleModal(...u)),class:"close-button"},"×")]),v("div",eF,[t[18]||(t[18]=v("p",{class:"text-gray-800 text-lg leading-relaxed"},"This will help the activity organizer to improve their submission.",-1)),he(o,{modelValue:s.rejectionOption,"onUpdate:modelValue":t[7]||(t[7]=u=>s.rejectionOption=u),options:a.displayRejectionOptions,"track-by":"title",label:"title","close-on-select":!0,"preserve-search":!1,placeholder:"Select a rejection reason",searchable:!1,"allow-empty":!1,onInput:a.prefillRejectionText},{singleLabel:Te(({option:u})=>[mt(re(u.title),1)]),_:1},8,["modelValue","options","onInput"]),Dn(v("textarea",{"onUpdate:modelValue":t[8]||(t[8]=u=>s.rejectionText=u),class:"reason-textarea",rows:"4",cols:"40",placeholder:"Reason for rejection"},null,512),[[Ni,s.rejectionText]])]),v("div",tF,[v("button",{onClick:t[9]||(t[9]=(...u)=>a.toggleModal&&a.toggleModal(...u)),class:"cancel-button"},"Cancel"),v("button",{onClick:t[10]||(t[10]=(...u)=>a.reject&&a.reject(...u)),class:"reject-button"},"Reject")])])])):ie("",!0)]),_:1}),he(vs,{name:"modal"},{default:Te(()=>[s.showDeleteModal?(k(),I("div",nF,[v("div",rF,[v("div",sF,[t[19]||(t[19]=v("h3",{class:"text-2xl font-semibold"},"Delete Event",-1)),v("button",{onClick:t[11]||(t[11]=(...u)=>a.toggleDeleteModal&&a.toggleDeleteModal(...u)),class:"close-button"},"×")]),t[20]||(t[20]=v("div",{class:"modal-body"},[v("p",null,"This event will be permanently deleted from the website. Are you sure you want to delete this event?")],-1)),v("div",iF,[v("button",{onClick:t[12]||(t[12]=(...u)=>a.toggleDeleteModal&&a.toggleDeleteModal(...u)),class:"cancel-button"},"Cancel"),v("button",{onClick:t[13]||(t[13]=(...u)=>a.deleteEvent&&a.deleteEvent(...u)),class:"delete-button"},"Delete")])])])):ie("",!0)]),_:1})])}const lF=vt(HV,[["render",aF]]),oF={props:{item:{required:!0},searchText:{required:!0}},setup(e){return{line2:pe(()=>(e.item.city?e.item.city+", ":"")+(e.item.country?e.item.country:""))}}},uF={class:"address-list-item"},cF={class:"address-info"},dF={class:"name"},fF={class:"city"};function hF(e,t,n,r,s,a){return k(),I("div",uF,[v("div",cF,[v("div",dF,re(n.item.name)+" "+re(n.item.housenumber),1),v("div",fF,re(r.line2),1)])])}const pF=vt(oF,[["render",hF],["__scopeId","data-v-86cd2f09"]]),mF=[["AF","AFG"],["AL","ALB"],["DZ","DZA"],["AS","ASM"],["AD","AND"],["AO","AGO"],["AI","AIA"],["AQ","ATA"],["AG","ATG"],["AR","ARG"],["AM","ARM"],["AW","ABW"],["AU","AUS"],["AT","AUT"],["AZ","AZE"],["BS","BHS"],["BH","BHR"],["BD","BGD"],["BB","BRB"],["BY","BLR"],["BE","BEL"],["BZ","BLZ"],["BJ","BEN"],["BM","BMU"],["BT","BTN"],["BO","BOL"],["BQ","BES"],["BA","BIH"],["BW","BWA"],["BV","BVT"],["BR","BRA"],["IO","IOT"],["BN","BRN"],["BG","BGR"],["BF","BFA"],["BI","BDI"],["CV","CPV"],["KH","KHM"],["CM","CMR"],["CA","CAN"],["KY","CYM"],["CF","CAF"],["TD","TCD"],["CL","CHL"],["CN","CHN"],["CX","CXR"],["CC","CCK"],["CO","COL"],["KM","COM"],["CD","COD"],["CG","COG"],["CK","COK"],["CR","CRI"],["HR","HRV"],["CU","CUB"],["CW","CUW"],["CY","CYP"],["CZ","CZE"],["CI","CIV"],["DK","DNK"],["DJ","DJI"],["DM","DMA"],["DO","DOM"],["EC","ECU"],["EG","EGY"],["SV","SLV"],["GQ","GNQ"],["ER","ERI"],["EE","EST"],["SZ","SWZ"],["ET","ETH"],["FK","FLK"],["FO","FRO"],["FJ","FJI"],["FI","FIN"],["FR","FRA"],["GF","GUF"],["PF","PYF"],["TF","ATF"],["GA","GAB"],["GM","GMB"],["GE","GEO"],["DE","DEU"],["GH","GHA"],["GI","GIB"],["GR","GRC"],["GL","GRL"],["GD","GRD"],["GP","GLP"],["GU","GUM"],["GT","GTM"],["GG","GGY"],["GN","GIN"],["GW","GNB"],["GY","GUY"],["HT","HTI"],["HM","HMD"],["VA","VAT"],["HN","HND"],["HK","HKG"],["HU","HUN"],["IS","ISL"],["IN","IND"],["ID","IDN"],["IR","IRN"],["IQ","IRQ"],["IE","IRL"],["IM","IMN"],["IL","ISR"],["IT","ITA"],["JM","JAM"],["JP","JPN"],["JE","JEY"],["JO","JOR"],["KZ","KAZ"],["KE","KEN"],["KI","KIR"],["KP","PRK"],["KR","KOR"],["KW","KWT"],["KG","KGZ"],["LA","LAO"],["LV","LVA"],["LB","LBN"],["LS","LSO"],["LR","LBR"],["LY","LBY"],["LI","LIE"],["LT","LTU"],["LU","LUX"],["MO","MAC"],["MG","MDG"],["MW","MWI"],["MY","MYS"],["MV","MDV"],["ML","MLI"],["MT","MLT"],["MH","MHL"],["MQ","MTQ"],["MR","MRT"],["MU","MUS"],["YT","MYT"],["MX","MEX"],["FM","FSM"],["MD","MDA"],["MC","MCO"],["MN","MNG"],["ME","MNE"],["MS","MSR"],["MA","MAR"],["MZ","MOZ"],["MM","MMR"],["NA","NAM"],["NR","NRU"],["NP","NPL"],["NL","NLD"],["NC","NCL"],["NZ","NZL"],["NI","NIC"],["NE","NER"],["NG","NGA"],["NU","NIU"],["NF","NFK"],["MP","MNP"],["NO","NOR"],["OM","OMN"],["PK","PAK"],["PW","PLW"],["PS","PSE"],["PA","PAN"],["PG","PNG"],["PY","PRY"],["PE","PER"],["PH","PHL"],["PN","PCN"],["PL","POL"],["PT","PRT"],["PR","PRI"],["QA","QAT"],["MK","MKD"],["RO","ROU"],["RU","RUS"],["RW","RWA"],["RE","REU"],["BL","BLM"],["SH","SHN"],["KN","KNA"],["LC","LCA"],["MF","MAF"],["PM","SPM"],["VC","VCT"],["WS","WSM"],["SM","SMR"],["ST","STP"],["SA","SAU"],["SN","SEN"],["RS","SRB"],["SC","SYC"],["SL","SLE"],["SG","SGP"],["SX","SXM"],["SK","SVK"],["SI","SVN"],["SB","SLB"],["SO","SOM"],["ZA","ZAF"],["GS","SGS"],["SS","SSD"],["ES","ESP"],["LK","LKA"],["SD","SDN"],["SR","SUR"],["SJ","SJM"],["SE","SWE"],["CH","CHE"],["SY","SYR"],["TW","TWN"],["TJ","TJK"],["TZ","TZA"],["TH","THA"],["TL","TLS"],["TG","TGO"],["TK","TKL"],["TO","TON"],["TT","TTO"],["TN","TUN"],["TR","TUR"],["TM","TKM"],["TC","TCA"],["TV","TUV"],["UG","UGA"],["UA","UKR"],["AE","ARE"],["GB","GBR"],["UM","UMI"],["US","USA"],["UY","URY"],["UZ","UZB"],["VU","VUT"],["VE","VEN"],["VN","VNM"],["VG","VGB"],["VI","VIR"],["WF","WLF"],["EH","ESH"],["YE","YEM"],["ZM","ZMB"],["ZW","ZWE"],["AX","ALA"]],gF=mF.map(([e,t])=>({iso2:e,iso3:t})),vF={props:{item:{required:!0}}};function yF(e,t,n,r,s,a){return k(),I("div",null,re(n.item),1)}const _F=vt(vF,[["render",yF]]),Ya={minLen:3,wait:500,timeout:null,isUpdateItems(e){if(e.length>=this.minLen)return!0},callUpdateItems(e,t){clearTimeout(this.timeout),this.isUpdateItems(e)&&(this.timeout=setTimeout(t,this.wait))},findItem(e,t,n){if(t&&n&&e.length==1)return e[0]}},bF={name:"VAutocomplete",props:{componentItem:{default:()=>_F},minLen:{type:Number,default:Ya.minLen},wait:{type:Number,default:Ya.wait},value:null,getLabel:{type:Function,default:e=>e},items:Array,autoSelectOneItem:{type:Boolean,default:!0},placeholder:String,inputClass:{type:String,default:"v-autocomplete-input"},disabled:{type:Boolean,default:!1},inputAttrs:{type:Object,default:()=>({})},keepOpen:{type:Boolean,default:!1},initialLocation:{type:String,default:null}},setup(e,{emit:t}){let n=fe("");e.initialLocation&&(n=fe(e.initialLocation));const r=fe(!1),s=fe(-1),a=fe(e.items||[]),o=pe(()=>!!a.value.length),u=pe(()=>r.value&&o.value||e.keepOpen),d=()=>{r.value=!0,s.value=-1,y(null),Ya.callUpdateItems(n.value,h),t("change",n.value)},h=()=>{t("update-items",n.value)},f=()=>{t("focus",n.value),r.value=!0},p=()=>{t("blur",n.value),setTimeout(()=>r.value=!1,200)},m=A=>{y(A),t("item-clicked",A)},y=A=>{A?(a.value=[A],n.value=e.getLabel(A),t("item-selected",A)):w(e.items),t("input",A)},w=A=>{a.value=A||[]},_=A=>a.value.length===1&&A===a.value[0],E=()=>{s.value>-1&&(s.value--,V(document.getElementsByClassName("v-autocomplete-list-item")[s.value]))},U=()=>{s.value{A&&A.scrollIntoView&&A.scrollIntoView(!1)},x=()=>{r.value&&a.value[s.value]&&(y(a.value[s.value]),r.value=!1)};return qt(()=>e.items,A=>{w(A);const F=Ya.findItem(e.items,n.value,e.autoSelectOneItem);F&&(y(F),r.value=!1)}),qt(()=>e.value,A=>{_(A)||(y(A),n.value=e.getLabel(A))}),It(()=>{Ya.minLen=e.minLen,Ya.wait=e.wait,y(e.value)}),{searchText:n,showList:r,cursor:s,internalItems:a,hasItems:o,show:u,inputChange:d,updateItems:h,focus:f,blur:p,onClickItem:m,onSelectItem:y,setItems:w,isSelectedValue:_,keyUp:E,keyDown:U,itemView:V,keyEnter:x}}},wF={class:"v-autocomplete"},xF=["placeholder","disabled"],kF={key:0,class:"v-autocomplete-list"},SF=["onClick","onMouseover"];function TF(e,t,n,r,s,a){return k(),I("div",wF,[v("div",{class:$e(["v-autocomplete-input-group",{"v-autocomplete-selected":n.value}])},[Dn(v("input",cn({type:"search","onUpdate:modelValue":t[0]||(t[0]=o=>r.searchText=o)},n.inputAttrs,{class:n.inputAttrs.class||n.inputClass,placeholder:n.inputAttrs.placeholder||n.placeholder,disabled:n.inputAttrs.disabled||n.disabled,onBlur:t[1]||(t[1]=(...o)=>r.blur&&r.blur(...o)),onFocus:t[2]||(t[2]=(...o)=>r.focus&&r.focus(...o)),onInput:t[3]||(t[3]=(...o)=>r.inputChange&&r.inputChange(...o)),onKeyup:t[4]||(t[4]=$n((...o)=>r.keyEnter&&r.keyEnter(...o),["enter"])),onKeydown:[t[5]||(t[5]=$n((...o)=>r.keyEnter&&r.keyEnter(...o),["tab"])),t[6]||(t[6]=$n((...o)=>r.keyUp&&r.keyUp(...o),["up"])),t[7]||(t[7]=$n((...o)=>r.keyDown&&r.keyDown(...o),["down"]))]}),null,16,xF),[[Ni,r.searchText]])],2),r.show?(k(),I("div",kF,[(k(!0),I(Ne,null,Qe(r.internalItems,(o,u)=>(k(),I("div",{class:$e(["v-autocomplete-list-item",{"v-autocomplete-item-active":u===r.cursor}]),key:u,onClick:d=>r.onClickItem(o),onMouseover:d=>r.cursor=u},[(k(),it(Al(n.componentItem),{item:o,searchText:r.searchText},null,8,["item","searchText"]))],42,SF))),128))])):ie("",!0)])}const AF=vt(bF,[["render",TF]]),CF={components:{VAutocomplete:AF},props:{placeholder:String,name:String,value:String,geoposition:String,location:String},emits:["onChange"],setup(e,{emit:t}){const n=fe(e.value?{name:e.value}:null),r=fe(null),s=pF,a=fe({placeholder:e.placeholder,name:e.name,autocomplete:"off"}),o=fe(e.geoposition),u=e.location;qt(()=>e.placeholder,()=>{a.value.placeholder=e.placeholder});const d=y=>{t("onChange",{location:(y==null?void 0:y.name)||""}),y&&y.name&&y.magicKey&&xt.get("/api/proxy/geocode",{params:{singleLine:y.name,magicKey:y.magicKey}}).then(_=>{const E=_.data.candidates[0];o.value=[E.location.y,E.location.x],window.map&&window.map.setView([E.location.y,E.location.x],16);const U=h(E.attributes.Country).iso2;t("onChange",{location:(y==null?void 0:y.name)||"",geoposition:[E.location.y,E.location.x],country_iso:U||""}),document.getElementById("id_country")&&(document.getElementById("id_country").value=U)}).catch(_=>{console.error("Error:",_)})},h=y=>gF.find(w=>w.iso3===y),f=y=>y&&y.name?y.name:"",p=y=>{y===""&&(r.value=null)},m=y=>{xt.get("/api/proxy/suggest",{params:{f:"json",text:y}}).then(_=>{r.value=_.data.suggestions.map(E=>({name:E.text,magicKey:E.magicKey}))}).catch(_=>{console.error("Error:",_)})};return qt(()=>e.value,y=>{n.value=y?{name:y}:null}),qt(()=>e.geoposition,y=>{o.value=y}),{item:n,items:r,template:s,inputAttrs:a,itemSelected:d,getLabel:f,change:p,updateItems:m,localGeoposition:o,initialLocation:u}}},EF=["value"];function OF(e,t,n,r,s,a){const o=at("v-autocomplete");return k(),I("div",null,[he(o,{items:r.items,modelValue:r.item,"onUpdate:modelValue":t[0]||(t[0]=u=>r.item=u),"get-label":r.getLabel,"component-item":r.template,onUpdateItems:r.updateItems,onItemSelected:r.itemSelected,onChange:r.change,"keep-open":!1,"auto-select-one-item":!1,"input-attrs":r.inputAttrs,wait:300,initialLocation:r.initialLocation},null,8,["items","modelValue","get-label","component-item","onUpdateItems","onItemSelected","onChange","input-attrs","initialLocation"]),v("input",{type:"hidden",name:"geoposition",id:"geoposition",value:r.localGeoposition},null,8,EF)])}const MF=vt(CF,[["render",OF]]);function Ze(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Lt(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function fs(e,t){const n=Ze(e);return isNaN(t)?Lt(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function gs(e,t){const n=Ze(e);if(isNaN(t))return Lt(e,NaN);if(!t)return n;const r=n.getDate(),s=Lt(e,n.getTime());s.setMonth(n.getMonth()+t+1,0);const a=s.getDate();return r>=a?s:(n.setFullYear(s.getFullYear(),s.getMonth(),r),n)}function H1(e,t){const{years:n=0,months:r=0,weeks:s=0,days:a=0,hours:o=0,minutes:u=0,seconds:d=0}=t,h=Ze(e),f=r||n?gs(h,r+n*12):h,p=a||s?fs(f,a+s*7):f,m=u+o*60,w=(d+m*60)*1e3;return Lt(e,p.getTime()+w)}function RF(e,t){const n=+Ze(e);return Lt(e,n+t)}const U1=6048e5,DF=864e5,PF=6e4,j1=36e5,LF=1e3;function IF(e,t){return RF(e,t*j1)}let NF={};function Aa(){return NF}function ys(e,t){var u,d,h,f;const n=Aa(),r=(t==null?void 0:t.weekStartsOn)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??n.weekStartsOn??((f=(h=n.locale)==null?void 0:h.options)==null?void 0:f.weekStartsOn)??0,s=Ze(e),a=s.getDay(),o=(a=s.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function s0(e){const t=Ze(e);return t.setHours(0,0,0,0),t}function Oc(e){const t=Ze(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function q1(e,t){const n=s0(e),r=s0(t),s=+n-Oc(n),a=+r-Oc(r);return Math.round((s-a)/DF)}function VF(e){const t=W1(e),n=Lt(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),gl(n)}function FF(e,t){const n=t*3;return gs(e,n)}function Wp(e,t){return gs(e,t*12)}function i0(e,t){const n=Ze(e),r=Ze(t),s=n.getTime()-r.getTime();return s<0?-1:s>0?1:s}function Y1(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function oo(e){if(!Y1(e)&&typeof e!="number")return!1;const t=Ze(e);return!isNaN(Number(t))}function a0(e){const t=Ze(e);return Math.trunc(t.getMonth()/3)+1}function $F(e,t){const n=Ze(e),r=Ze(t);return n.getFullYear()-r.getFullYear()}function BF(e,t){const n=Ze(e),r=Ze(t),s=i0(n,r),a=Math.abs($F(n,r));n.setFullYear(1584),r.setFullYear(1584);const o=i0(n,r)===-s,u=s*(a-+o);return u===0?0:u}function z1(e,t){const n=Ze(e.start),r=Ze(e.end);let s=+n>+r;const a=s?+n:+r,o=s?r:n;o.setHours(0,0,0,0);let u=1;const d=[];for(;+o<=a;)d.push(Ze(o)),o.setDate(o.getDate()+u),o.setHours(0,0,0,0);return s?d.reverse():d}function oa(e){const t=Ze(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function HF(e,t){const n=Ze(e.start),r=Ze(e.end);let s=+n>+r;const a=s?+oa(n):+oa(r);let o=oa(s?r:n),u=1;const d=[];for(;+o<=a;)d.push(Ze(o)),o=FF(o,u);return s?d.reverse():d}function UF(e){const t=Ze(e);return t.setDate(1),t.setHours(0,0,0,0),t}function K1(e){const t=Ze(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function Co(e){const t=Ze(e),n=Lt(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function G1(e,t){var u,d,h,f;const n=Aa(),r=(t==null?void 0:t.weekStartsOn)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??n.weekStartsOn??((f=(h=n.locale)==null?void 0:h.options)==null?void 0:f.weekStartsOn)??0,s=Ze(e),a=s.getDay(),o=(a{let r;const s=jF[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Jf(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const qF={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},YF={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},zF={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},KF={date:Jf({formats:qF,defaultWidth:"full"}),time:Jf({formats:YF,defaultWidth:"full"}),dateTime:Jf({formats:zF,defaultWidth:"full"})},GF={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},JF=(e,t,n,r)=>GF[e];function Kl(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,u=n!=null&&n.width?String(n.width):o;s=e.formattingValues[u]||e.formattingValues[o]}else{const o=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;s=e.values[u]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return s[a]}}const ZF={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},XF={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},QF={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},e6={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},t6={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},n6={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},r6=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},s6={ordinalNumber:r6,era:Kl({values:ZF,defaultWidth:"wide"}),quarter:Kl({values:XF,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Kl({values:QF,defaultWidth:"wide"}),day:Kl({values:e6,defaultWidth:"wide"}),dayPeriod:Kl({values:t6,defaultWidth:"wide",formattingValues:n6,defaultFormattingWidth:"wide"})};function Gl(e){return(t,n={})=>{const r=n.width,s=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(s);if(!a)return null;const o=a[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(u)?a6(u,p=>p.test(o)):i6(u,p=>p.test(o));let h;h=e.valueCallback?e.valueCallback(d):d,h=n.valueCallback?n.valueCallback(h):h;const f=t.slice(o.length);return{value:h,rest:f}}}function i6(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function a6(e,t){for(let n=0;n{const r=t.match(e.matchPattern);if(!r)return null;const s=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const u=t.slice(s.length);return{value:o,rest:u}}}const o6=/^(\d+)(th|st|nd|rd)?/i,u6=/\d+/i,c6={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},d6={any:[/^b/i,/^(a|c)/i]},f6={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},h6={any:[/1/i,/2/i,/3/i,/4/i]},p6={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},m6={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},g6={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},v6={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},y6={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},_6={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},b6={ordinalNumber:l6({matchPattern:o6,parsePattern:u6,valueCallback:e=>parseInt(e,10)}),era:Gl({matchPatterns:c6,defaultMatchWidth:"wide",parsePatterns:d6,defaultParseWidth:"any"}),quarter:Gl({matchPatterns:f6,defaultMatchWidth:"wide",parsePatterns:h6,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Gl({matchPatterns:p6,defaultMatchWidth:"wide",parsePatterns:m6,defaultParseWidth:"any"}),day:Gl({matchPatterns:g6,defaultMatchWidth:"wide",parsePatterns:v6,defaultParseWidth:"any"}),dayPeriod:Gl({matchPatterns:y6,defaultMatchWidth:"any",parsePatterns:_6,defaultParseWidth:"any"})},J1={code:"en-US",formatDistance:WF,formatLong:KF,formatRelative:JF,localize:s6,match:b6,options:{weekStartsOn:0,firstWeekContainsDate:1}};function w6(e){const t=Ze(e);return q1(t,Co(t))+1}function qp(e){const t=Ze(e),n=+gl(t)-+VF(t);return Math.round(n/U1)+1}function Yp(e,t){var f,p,m,y;const n=Ze(e),r=n.getFullYear(),s=Aa(),a=(t==null?void 0:t.firstWeekContainsDate)??((p=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??s.firstWeekContainsDate??((y=(m=s.locale)==null?void 0:m.options)==null?void 0:y.firstWeekContainsDate)??1,o=Lt(e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const u=ys(o,t),d=Lt(e,0);d.setFullYear(r,0,a),d.setHours(0,0,0,0);const h=ys(d,t);return n.getTime()>=u.getTime()?r+1:n.getTime()>=h.getTime()?r:r-1}function x6(e,t){var u,d,h,f;const n=Aa(),r=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(h=n.locale)==null?void 0:h.options)==null?void 0:f.firstWeekContainsDate)??1,s=Yp(e,t),a=Lt(e,0);return a.setFullYear(s,0,r),a.setHours(0,0,0,0),ys(a,t)}function zp(e,t){const n=Ze(e),r=+ys(n,t)-+x6(n,t);return Math.round(r/U1)+1}function Bt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const vi={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Bt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Bt(n+1,2)},d(e,t){return Bt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Bt(e.getHours()%12||12,t.length)},H(e,t){return Bt(e.getHours(),t.length)},m(e,t){return Bt(e.getMinutes(),t.length)},s(e,t){return Bt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return Bt(s,t.length)}},za={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},o0={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return vi.y(e,t)},Y:function(e,t,n,r){const s=Yp(e,r),a=s>0?s:1-s;if(t==="YY"){const o=a%100;return Bt(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):Bt(a,t.length)},R:function(e,t){const n=W1(e);return Bt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Bt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Bt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Bt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return vi.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Bt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const s=zp(e,r);return t==="wo"?n.ordinalNumber(s,{unit:"week"}):Bt(s,t.length)},I:function(e,t,n){const r=qp(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Bt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):vi.d(e,t)},D:function(e,t,n){const r=w6(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Bt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const s=e.getDay(),a=(s-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Bt(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const s=e.getDay(),a=(s-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Bt(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),s=r===0?7:r;switch(t){case"i":return String(s);case"ii":return Bt(s,t.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let s;switch(r===12?s=za.noon:r===0?s=za.midnight:s=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let s;switch(r>=17?s=za.evening:r>=12?s=za.afternoon:r>=4?s=za.morning:s=za.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return vi.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):vi.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Bt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Bt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):vi.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):vi.s(e,t)},S:function(e,t){return vi.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return c0(r);case"XXXX":case"XX":return ra(r);case"XXXXX":case"XXX":default:return ra(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return c0(r);case"xxxx":case"xx":return ra(r);case"xxxxx":case"xxx":default:return ra(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+u0(r,":");case"OOOO":default:return"GMT"+ra(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+u0(r,":");case"zzzz":default:return"GMT"+ra(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Bt(r,t.length)},T:function(e,t,n){const r=e.getTime();return Bt(r,t.length)}};function u0(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Math.trunc(r/60),a=r%60;return a===0?n+String(s):n+String(s)+t+Bt(a,2)}function c0(e,t){return e%60===0?(e>0?"-":"+")+Bt(Math.abs(e)/60,2):ra(e,t)}function ra(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Bt(Math.trunc(r/60),2),a=Bt(r%60,2);return n+s+t+a}const d0=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Z1=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},k6=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return d0(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",d0(r,t)).replace("{{time}}",Z1(s,t))},Uh={p:Z1,P:k6},S6=/^D+$/,T6=/^Y+$/,A6=["D","DD","YY","YYYY"];function X1(e){return S6.test(e)}function Q1(e){return T6.test(e)}function jh(e,t,n){const r=C6(e,t,n);if(console.warn(r),A6.includes(e))throw new RangeError(r)}function C6(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const E6=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,O6=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,M6=/^'([^]*?)'?$/,R6=/''/g,D6=/[a-zA-Z]/;function Ds(e,t,n){var f,p,m,y,w,_,E,U;const r=Aa(),s=(n==null?void 0:n.locale)??r.locale??J1,a=(n==null?void 0:n.firstWeekContainsDate)??((p=(f=n==null?void 0:n.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??r.firstWeekContainsDate??((y=(m=r.locale)==null?void 0:m.options)==null?void 0:y.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((_=(w=n==null?void 0:n.locale)==null?void 0:w.options)==null?void 0:_.weekStartsOn)??r.weekStartsOn??((U=(E=r.locale)==null?void 0:E.options)==null?void 0:U.weekStartsOn)??0,u=Ze(e);if(!oo(u))throw new RangeError("Invalid time value");let d=t.match(O6).map(V=>{const x=V[0];if(x==="p"||x==="P"){const A=Uh[x];return A(V,s.formatLong)}return V}).join("").match(E6).map(V=>{if(V==="''")return{isToken:!1,value:"'"};const x=V[0];if(x==="'")return{isToken:!1,value:P6(V)};if(o0[x])return{isToken:!0,value:V};if(x.match(D6))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:V}});s.localize.preprocessor&&(d=s.localize.preprocessor(u,d));const h={firstWeekContainsDate:a,weekStartsOn:o,locale:s};return d.map(V=>{if(!V.isToken)return V.value;const x=V.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Q1(x)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&X1(x))&&jh(x,t,String(e));const A=o0[x[0]];return A(u,x,s.localize,h)}).join("")}function P6(e){const t=e.match(M6);return t?t[1].replace(R6,"'"):e}function L6(e){return Ze(e).getDay()}function I6(e){const t=Ze(e),n=t.getFullYear(),r=t.getMonth(),s=Lt(e,0);return s.setFullYear(n,r+1,0),s.setHours(0,0,0,0),s.getDate()}function N6(){return Object.assign({},Aa())}function ri(e){return Ze(e).getHours()}function V6(e){let n=Ze(e).getDay();return n===0&&(n=7),n}function Vi(e){return Ze(e).getMinutes()}function wt(e){return Ze(e).getMonth()}function vl(e){return Ze(e).getSeconds()}function lt(e){return Ze(e).getFullYear()}function yl(e,t){const n=Ze(e),r=Ze(t);return n.getTime()>r.getTime()}function Eo(e,t){const n=Ze(e),r=Ze(t);return+n<+r}function el(e,t){const n=Ze(e),r=Ze(t);return+n==+r}function F6(e,t){const n=t instanceof Date?Lt(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}const $6=10;class ew{constructor(){ze(this,"subPriority",0)}validate(t,n){return!0}}class B6 extends ew{constructor(t,n,r,s,a){super(),this.value=t,this.validateValue=n,this.setValue=r,this.priority=s,a&&(this.subPriority=a)}validate(t,n){return this.validateValue(t,this.value,n)}set(t,n,r){return this.setValue(t,n,this.value,r)}}class H6 extends ew{constructor(){super(...arguments);ze(this,"priority",$6);ze(this,"subPriority",-1)}set(n,r){return r.timestampIsSet?n:Lt(n,F6(n,Date))}}class Nt{run(t,n,r,s){const a=this.parse(t,n,r,s);return a?{setter:new B6(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(t,n,r){return!0}}class U6 extends Nt{constructor(){super(...arguments);ze(this,"priority",140);ze(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,s){switch(r){case"G":case"GG":case"GGG":return s.era(n,{width:"abbreviated"})||s.era(n,{width:"narrow"});case"GGGGG":return s.era(n,{width:"narrow"});case"GGGG":default:return s.era(n,{width:"wide"})||s.era(n,{width:"abbreviated"})||s.era(n,{width:"narrow"})}}set(n,r,s){return r.era=s,n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}const kn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Os={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Sn(e,t){return e&&{value:t(e.value),rest:e.rest}}function rn(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Ms(e,t){const n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};const r=n[1]==="+"?1:-1,s=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(s*j1+a*PF+o*LF),rest:t.slice(n[0].length)}}function tw(e){return rn(kn.anyDigitsSigned,e)}function dn(e,t){switch(e){case 1:return rn(kn.singleDigit,t);case 2:return rn(kn.twoDigits,t);case 3:return rn(kn.threeDigits,t);case 4:return rn(kn.fourDigits,t);default:return rn(new RegExp("^\\d{1,"+e+"}"),t)}}function Mc(e,t){switch(e){case 1:return rn(kn.singleDigitSigned,t);case 2:return rn(kn.twoDigitsSigned,t);case 3:return rn(kn.threeDigitsSigned,t);case 4:return rn(kn.fourDigitsSigned,t);default:return rn(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Kp(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function nw(e,t){const n=t>0,r=n?t:1-t;let s;if(r<=50)s=e||100;else{const a=r+50,o=Math.trunc(a/100)*100,u=e>=a%100;s=e+o-(u?100:0)}return n?s:1-s}function rw(e){return e%400===0||e%4===0&&e%100!==0}class j6 extends Nt{constructor(){super(...arguments);ze(this,"priority",130);ze(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,s){const a=o=>({year:o,isTwoDigitYear:r==="yy"});switch(r){case"y":return Sn(dn(4,n),a);case"yo":return Sn(s.ordinalNumber(n,{unit:"year"}),a);default:return Sn(dn(r.length,n),a)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,s){const a=n.getFullYear();if(s.isTwoDigitYear){const u=nw(s.year,a);return n.setFullYear(u,0,1),n.setHours(0,0,0,0),n}const o=!("era"in r)||r.era===1?s.year:1-s.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}class W6 extends Nt{constructor(){super(...arguments);ze(this,"priority",130);ze(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,s){const a=o=>({year:o,isTwoDigitYear:r==="YY"});switch(r){case"Y":return Sn(dn(4,n),a);case"Yo":return Sn(s.ordinalNumber(n,{unit:"year"}),a);default:return Sn(dn(r.length,n),a)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,s,a){const o=Yp(n,a);if(s.isTwoDigitYear){const d=nw(s.year,o);return n.setFullYear(d,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),ys(n,a)}const u=!("era"in r)||r.era===1?s.year:1-s.year;return n.setFullYear(u,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),ys(n,a)}}class q6 extends Nt{constructor(){super(...arguments);ze(this,"priority",130);ze(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return Mc(r==="R"?4:r.length,n)}set(n,r,s){const a=Lt(n,0);return a.setFullYear(s,0,4),a.setHours(0,0,0,0),gl(a)}}class Y6 extends Nt{constructor(){super(...arguments);ze(this,"priority",130);ze(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return Mc(r==="u"?4:r.length,n)}set(n,r,s){return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}class z6 extends Nt{constructor(){super(...arguments);ze(this,"priority",120);ze(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"Q":case"QQ":return dn(r.length,n);case"Qo":return s.ordinalNumber(n,{unit:"quarter"});case"QQQ":return s.quarter(n,{width:"abbreviated",context:"formatting"})||s.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(n,{width:"wide",context:"formatting"})||s.quarter(n,{width:"abbreviated",context:"formatting"})||s.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,s){return n.setMonth((s-1)*3,1),n.setHours(0,0,0,0),n}}class K6 extends Nt{constructor(){super(...arguments);ze(this,"priority",120);ze(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"q":case"qq":return dn(r.length,n);case"qo":return s.ordinalNumber(n,{unit:"quarter"});case"qqq":return s.quarter(n,{width:"abbreviated",context:"standalone"})||s.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(n,{width:"wide",context:"standalone"})||s.quarter(n,{width:"abbreviated",context:"standalone"})||s.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,s){return n.setMonth((s-1)*3,1),n.setHours(0,0,0,0),n}}class G6 extends Nt{constructor(){super(...arguments);ze(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);ze(this,"priority",110)}parse(n,r,s){const a=o=>o-1;switch(r){case"M":return Sn(rn(kn.month,n),a);case"MM":return Sn(dn(2,n),a);case"Mo":return Sn(s.ordinalNumber(n,{unit:"month"}),a);case"MMM":return s.month(n,{width:"abbreviated",context:"formatting"})||s.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(n,{width:"wide",context:"formatting"})||s.month(n,{width:"abbreviated",context:"formatting"})||s.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.setMonth(s,1),n.setHours(0,0,0,0),n}}class J6 extends Nt{constructor(){super(...arguments);ze(this,"priority",110);ze(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,s){const a=o=>o-1;switch(r){case"L":return Sn(rn(kn.month,n),a);case"LL":return Sn(dn(2,n),a);case"Lo":return Sn(s.ordinalNumber(n,{unit:"month"}),a);case"LLL":return s.month(n,{width:"abbreviated",context:"standalone"})||s.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(n,{width:"wide",context:"standalone"})||s.month(n,{width:"abbreviated",context:"standalone"})||s.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.setMonth(s,1),n.setHours(0,0,0,0),n}}function Z6(e,t,n){const r=Ze(e),s=zp(r,n)-t;return r.setDate(r.getDate()-s*7),r}class X6 extends Nt{constructor(){super(...arguments);ze(this,"priority",100);ze(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,s){switch(r){case"w":return rn(kn.week,n);case"wo":return s.ordinalNumber(n,{unit:"week"});default:return dn(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,s,a){return ys(Z6(n,s,a),a)}}function Q6(e,t){const n=Ze(e),r=qp(n)-t;return n.setDate(n.getDate()-r*7),n}class e$ extends Nt{constructor(){super(...arguments);ze(this,"priority",100);ze(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,s){switch(r){case"I":return rn(kn.week,n);case"Io":return s.ordinalNumber(n,{unit:"week"});default:return dn(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,s){return gl(Q6(n,s))}}const t$=[31,28,31,30,31,30,31,31,30,31,30,31],n$=[31,29,31,30,31,30,31,31,30,31,30,31];class r$ extends Nt{constructor(){super(...arguments);ze(this,"priority",90);ze(this,"subPriority",1);ze(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"d":return rn(kn.date,n);case"do":return s.ordinalNumber(n,{unit:"date"});default:return dn(r.length,n)}}validate(n,r){const s=n.getFullYear(),a=rw(s),o=n.getMonth();return a?r>=1&&r<=n$[o]:r>=1&&r<=t$[o]}set(n,r,s){return n.setDate(s),n.setHours(0,0,0,0),n}}class s$ extends Nt{constructor(){super(...arguments);ze(this,"priority",90);ze(this,"subpriority",1);ze(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,s){switch(r){case"D":case"DD":return rn(kn.dayOfYear,n);case"Do":return s.ordinalNumber(n,{unit:"date"});default:return dn(r.length,n)}}validate(n,r){const s=n.getFullYear();return rw(s)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,s){return n.setMonth(0,s),n.setHours(0,0,0,0),n}}function Gp(e,t,n){var p,m,y,w;const r=Aa(),s=(n==null?void 0:n.weekStartsOn)??((m=(p=n==null?void 0:n.locale)==null?void 0:p.options)==null?void 0:m.weekStartsOn)??r.weekStartsOn??((w=(y=r.locale)==null?void 0:y.options)==null?void 0:w.weekStartsOn)??0,a=Ze(e),o=a.getDay(),d=(t%7+7)%7,h=7-s,f=t<0||t>6?t-(o+h)%7:(d+h)%7-(o+h)%7;return fs(a,f)}class i$ extends Nt{constructor(){super(...arguments);ze(this,"priority",90);ze(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"E":case"EE":case"EEE":return s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,a){return n=Gp(n,s,a),n.setHours(0,0,0,0),n}}class a$ extends Nt{constructor(){super(...arguments);ze(this,"priority",90);ze(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,s,a){const o=u=>{const d=Math.floor((u-1)/7)*7;return(u+a.weekStartsOn+6)%7+d};switch(r){case"e":case"ee":return Sn(dn(r.length,n),o);case"eo":return Sn(s.ordinalNumber(n,{unit:"day"}),o);case"eee":return s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"eeeee":return s.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,a){return n=Gp(n,s,a),n.setHours(0,0,0,0),n}}class l$ extends Nt{constructor(){super(...arguments);ze(this,"priority",90);ze(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,s,a){const o=u=>{const d=Math.floor((u-1)/7)*7;return(u+a.weekStartsOn+6)%7+d};switch(r){case"c":case"cc":return Sn(dn(r.length,n),o);case"co":return Sn(s.ordinalNumber(n,{unit:"day"}),o);case"ccc":return s.day(n,{width:"abbreviated",context:"standalone"})||s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"});case"ccccc":return s.day(n,{width:"narrow",context:"standalone"});case"cccccc":return s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(n,{width:"wide",context:"standalone"})||s.day(n,{width:"abbreviated",context:"standalone"})||s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,a){return n=Gp(n,s,a),n.setHours(0,0,0,0),n}}function o$(e,t){const n=Ze(e),r=V6(n),s=t-r;return fs(n,s)}class u$ extends Nt{constructor(){super(...arguments);ze(this,"priority",90);ze(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,s){const a=o=>o===0?7:o;switch(r){case"i":case"ii":return dn(r.length,n);case"io":return s.ordinalNumber(n,{unit:"day"});case"iii":return Sn(s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),a);case"iiiii":return Sn(s.day(n,{width:"narrow",context:"formatting"}),a);case"iiiiii":return Sn(s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),a);case"iiii":default:return Sn(s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),a)}}validate(n,r){return r>=1&&r<=7}set(n,r,s){return n=o$(n,s),n.setHours(0,0,0,0),n}}class c$ extends Nt{constructor(){super(...arguments);ze(this,"priority",80);ze(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,s){switch(r){case"a":case"aa":case"aaa":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Kp(s),0,0,0),n}}class d$ extends Nt{constructor(){super(...arguments);ze(this,"priority",80);ze(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,s){switch(r){case"b":case"bb":case"bbb":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Kp(s),0,0,0),n}}class f$ extends Nt{constructor(){super(...arguments);ze(this,"priority",80);ze(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,s){switch(r){case"B":case"BB":case"BBB":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Kp(s),0,0,0),n}}class h$ extends Nt{constructor(){super(...arguments);ze(this,"priority",70);ze(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,s){switch(r){case"h":return rn(kn.hour12h,n);case"ho":return s.ordinalNumber(n,{unit:"hour"});default:return dn(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,s){const a=n.getHours()>=12;return a&&s<12?n.setHours(s+12,0,0,0):!a&&s===12?n.setHours(0,0,0,0):n.setHours(s,0,0,0),n}}class p$ extends Nt{constructor(){super(...arguments);ze(this,"priority",70);ze(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,s){switch(r){case"H":return rn(kn.hour23h,n);case"Ho":return s.ordinalNumber(n,{unit:"hour"});default:return dn(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,s){return n.setHours(s,0,0,0),n}}class m$ extends Nt{constructor(){super(...arguments);ze(this,"priority",70);ze(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,s){switch(r){case"K":return rn(kn.hour11h,n);case"Ko":return s.ordinalNumber(n,{unit:"hour"});default:return dn(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.getHours()>=12&&s<12?n.setHours(s+12,0,0,0):n.setHours(s,0,0,0),n}}class g$ extends Nt{constructor(){super(...arguments);ze(this,"priority",70);ze(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,s){switch(r){case"k":return rn(kn.hour24h,n);case"ko":return s.ordinalNumber(n,{unit:"hour"});default:return dn(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,s){const a=s<=24?s%24:s;return n.setHours(a,0,0,0),n}}class v$ extends Nt{constructor(){super(...arguments);ze(this,"priority",60);ze(this,"incompatibleTokens",["t","T"])}parse(n,r,s){switch(r){case"m":return rn(kn.minute,n);case"mo":return s.ordinalNumber(n,{unit:"minute"});default:return dn(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,s){return n.setMinutes(s,0,0),n}}class y$ extends Nt{constructor(){super(...arguments);ze(this,"priority",50);ze(this,"incompatibleTokens",["t","T"])}parse(n,r,s){switch(r){case"s":return rn(kn.second,n);case"so":return s.ordinalNumber(n,{unit:"second"});default:return dn(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,s){return n.setSeconds(s,0),n}}class _$ extends Nt{constructor(){super(...arguments);ze(this,"priority",30);ze(this,"incompatibleTokens",["t","T"])}parse(n,r){const s=a=>Math.trunc(a*Math.pow(10,-r.length+3));return Sn(dn(r.length,n),s)}set(n,r,s){return n.setMilliseconds(s),n}}class b$ extends Nt{constructor(){super(...arguments);ze(this,"priority",10);ze(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return Ms(Os.basicOptionalMinutes,n);case"XX":return Ms(Os.basic,n);case"XXXX":return Ms(Os.basicOptionalSeconds,n);case"XXXXX":return Ms(Os.extendedOptionalSeconds,n);case"XXX":default:return Ms(Os.extended,n)}}set(n,r,s){return r.timestampIsSet?n:Lt(n,n.getTime()-Oc(n)-s)}}class w$ extends Nt{constructor(){super(...arguments);ze(this,"priority",10);ze(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return Ms(Os.basicOptionalMinutes,n);case"xx":return Ms(Os.basic,n);case"xxxx":return Ms(Os.basicOptionalSeconds,n);case"xxxxx":return Ms(Os.extendedOptionalSeconds,n);case"xxx":default:return Ms(Os.extended,n)}}set(n,r,s){return r.timestampIsSet?n:Lt(n,n.getTime()-Oc(n)-s)}}class x$ extends Nt{constructor(){super(...arguments);ze(this,"priority",40);ze(this,"incompatibleTokens","*")}parse(n){return tw(n)}set(n,r,s){return[Lt(n,s*1e3),{timestampIsSet:!0}]}}class k$ extends Nt{constructor(){super(...arguments);ze(this,"priority",20);ze(this,"incompatibleTokens","*")}parse(n){return tw(n)}set(n,r,s){return[Lt(n,s),{timestampIsSet:!0}]}}const S$={G:new U6,y:new j6,Y:new W6,R:new q6,u:new Y6,Q:new z6,q:new K6,M:new G6,L:new J6,w:new X6,I:new e$,d:new r$,D:new s$,E:new i$,e:new a$,c:new l$,i:new u$,a:new c$,b:new d$,B:new f$,h:new h$,H:new p$,K:new m$,k:new g$,m:new v$,s:new y$,S:new _$,X:new b$,x:new w$,t:new x$,T:new k$},T$=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,A$=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,C$=/^'([^]*?)'?$/,E$=/''/g,O$=/\S/,M$=/[a-zA-Z]/;function Wh(e,t,n,r){var _,E,U,V,x,A,F,B;const s=N6(),a=(r==null?void 0:r.locale)??s.locale??J1,o=(r==null?void 0:r.firstWeekContainsDate)??((E=(_=r==null?void 0:r.locale)==null?void 0:_.options)==null?void 0:E.firstWeekContainsDate)??s.firstWeekContainsDate??((V=(U=s.locale)==null?void 0:U.options)==null?void 0:V.firstWeekContainsDate)??1,u=(r==null?void 0:r.weekStartsOn)??((A=(x=r==null?void 0:r.locale)==null?void 0:x.options)==null?void 0:A.weekStartsOn)??s.weekStartsOn??((B=(F=s.locale)==null?void 0:F.options)==null?void 0:B.weekStartsOn)??0;if(t==="")return e===""?Ze(n):Lt(n,NaN);const d={firstWeekContainsDate:o,weekStartsOn:u,locale:a},h=[new H6],f=t.match(A$).map($=>{const M=$[0];if(M in Uh){const S=Uh[M];return S($,a.formatLong)}return $}).join("").match(T$),p=[];for(let $ of f){!(r!=null&&r.useAdditionalWeekYearTokens)&&Q1($)&&jh($,t,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&X1($)&&jh($,t,e);const M=$[0],S=S$[M];if(S){const{incompatibleTokens:H}=S;if(Array.isArray(H)){const ee=p.find(ne=>H.includes(ne.token)||ne.token===M);if(ee)throw new RangeError(`The format string mustn't contain \`${ee.fullToken}\` and \`${$}\` at the same time`)}else if(S.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${$}\` and any other token at the same time`);p.push({token:M,fullToken:$});const se=S.run(e,$,a.match,d);if(!se)return Lt(n,NaN);h.push(se.setter),e=se.rest}else{if(M.match(M$))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");if($==="''"?$="'":M==="'"&&($=R$($)),e.indexOf($)===0)e=e.slice($.length);else return Lt(n,NaN)}}if(e.length>0&&O$.test(e))return Lt(n,NaN);const m=h.map($=>$.priority).sort(($,M)=>M-$).filter(($,M,S)=>S.indexOf($)===M).map($=>h.filter(M=>M.priority===$).sort((M,S)=>S.subPriority-M.subPriority)).map($=>$[0]);let y=Ze(n);if(isNaN(y.getTime()))return Lt(n,NaN);const w={};for(const $ of m){if(!$.validate(y,d))return Lt(n,NaN);const M=$.set(y,w,d);Array.isArray(M)?(y=M[0],Object.assign(w,M[1])):y=M}return Lt(n,y)}function R$(e){return e.match(C$)[1].replace(E$,"'")}function f0(e,t){const n=oa(e),r=oa(t);return+n==+r}function D$(e,t){return fs(e,-t)}function sw(e,t){const n=Ze(e),r=n.getFullYear(),s=n.getDate(),a=Lt(e,0);a.setFullYear(r,t,15),a.setHours(0,0,0,0);const o=I6(a);return n.setMonth(t,Math.min(s,o)),n}function Wt(e,t){let n=Ze(e);return isNaN(+n)?Lt(e,NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=sw(n,t.month)),t.date!=null&&n.setDate(t.date),t.hours!=null&&n.setHours(t.hours),t.minutes!=null&&n.setMinutes(t.minutes),t.seconds!=null&&n.setSeconds(t.seconds),t.milliseconds!=null&&n.setMilliseconds(t.milliseconds),n)}function P$(e,t){const n=Ze(e);return n.setHours(t),n}function iw(e,t){const n=Ze(e);return n.setMilliseconds(t),n}function L$(e,t){const n=Ze(e);return n.setMinutes(t),n}function aw(e,t){const n=Ze(e);return n.setSeconds(t),n}function Rs(e,t){const n=Ze(e);return isNaN(+n)?Lt(e,NaN):(n.setFullYear(t),n)}function _l(e,t){return gs(e,-t)}function I$(e,t){const{years:n=0,months:r=0,weeks:s=0,days:a=0,hours:o=0,minutes:u=0,seconds:d=0}=t,h=_l(e,r+n*12),f=D$(h,a+s*7),p=u+o*60,y=(d+p*60)*1e3;return Lt(e,f.getTime()-y)}function lw(e,t){return Wp(e,-t)}function Cl(){return k(),I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[v("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),v("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),v("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),v("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}Cl.compatConfig={MODE:3};function ow(){return k(),I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[v("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),v("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}ow.compatConfig={MODE:3};function Jp(){return k(),I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[v("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}Jp.compatConfig={MODE:3};function Zp(){return k(),I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[v("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}Zp.compatConfig={MODE:3};function Xp(){return k(),I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[v("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),v("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}Xp.compatConfig={MODE:3};function Qp(){return k(),I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[v("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}Qp.compatConfig={MODE:3};function em(){return k(),I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[v("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}em.compatConfig={MODE:3};const Ar=(e,t)=>t?new Date(e.toLocaleString("en-US",{timeZone:t})):new Date(e),tm=(e,t,n)=>qh(e,t,n)||Re(),N$=(e,t,n)=>{const r=t.dateInTz?Ar(new Date(e),t.dateInTz):Re(e);return n?hr(r,!0):r},qh=(e,t,n)=>{if(!e)return null;const r=n?hr(Re(e),!0):Re(e);return t?t.exactMatch?N$(e,t,n):Ar(r,t.timezone):r},V$=e=>{if(!e)return 0;const t=new Date,n=new Date(t.toLocaleString("en-US",{timeZone:"UTC"})),r=new Date(t.toLocaleString("en-US",{timeZone:e})),s=r.getTimezoneOffset()/60;return(+n-+r)/(1e3*60*60)-s};var cs=(e=>(e.month="month",e.year="year",e))(cs||{}),sa=(e=>(e.top="top",e.bottom="bottom",e))(sa||{}),ma=(e=>(e.header="header",e.calendar="calendar",e.timePicker="timePicker",e))(ma||{}),Xn=(e=>(e.month="month",e.year="year",e.calendar="calendar",e.time="time",e.minutes="minutes",e.hours="hours",e.seconds="seconds",e))(Xn||{});const F$=["timestamp","date","iso"];var or=(e=>(e.up="up",e.down="down",e.left="left",e.right="right",e))(or||{}),nn=(e=>(e.arrowUp="ArrowUp",e.arrowDown="ArrowDown",e.arrowLeft="ArrowLeft",e.arrowRight="ArrowRight",e.enter="Enter",e.space=" ",e.esc="Escape",e.tab="Tab",e.home="Home",e.end="End",e.pageUp="PageUp",e.pageDown="PageDown",e))(nn||{});function h0(e){return t=>new Intl.DateTimeFormat(e,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${t}T00:00:00+00:00`)).slice(0,2)}function $$(e){return t=>Ds(Ar(new Date(`2017-01-0${t}T00:00:00+00:00`),"UTC"),"EEEEEE",{locale:e})}const B$=(e,t,n)=>{const r=[1,2,3,4,5,6,7];let s;if(e!==null)try{s=r.map($$(e))}catch{s=r.map(h0(t))}else s=r.map(h0(t));const a=s.slice(0,n),o=s.slice(n+1,s.length);return[s[n]].concat(...o).concat(...a)},nm=(e,t,n)=>{const r=[];for(let s=+e[0];s<=+e[1];s++)r.push({value:+s,text:fw(s,t)});return n?r.reverse():r},uw=(e,t,n)=>{const r=[1,2,3,4,5,6,7,8,9,10,11,12].map(a=>{const o=a<10?`0${a}`:a;return new Date(`2017-${o}-01T00:00:00+00:00`)});if(e!==null)try{const a=n==="long"?"LLLL":"LLL";return r.map((o,u)=>{const d=Ds(Ar(o,"UTC"),a,{locale:e});return{text:d.charAt(0).toUpperCase()+d.substring(1),value:u}})}catch{}const s=new Intl.DateTimeFormat(t,{month:n,timeZone:"UTC"});return r.map((a,o)=>{const u=s.format(a);return{text:u.charAt(0).toUpperCase()+u.substring(1),value:o}})},H$=e=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][e],Ln=e=>{const t=Z(e);return t!=null&&t.$el?t==null?void 0:t.$el:t},U$=e=>({type:"dot",...e??{}}),cw=e=>Array.isArray(e)?!!e[0]&&!!e[1]:!1,rm={prop:e=>`"${e}" prop must be enabled!`,dateArr:e=>`You need to use array as "model-value" binding in order to support "${e}"`},Fn=e=>e,p0=e=>e===0?e:!e||isNaN(+e)?null:+e,m0=e=>e===null,dw=e=>{if(e)return[...e.querySelectorAll("input, button, select, textarea, a[href]")][0]},j$=e=>{const t=[],n=r=>r.filter(s=>s);for(let r=0;r{const r=n!=null,s=t!=null;if(!r&&!s)return!1;const a=+n,o=+t;return r&&s?+e>a||+ea:s?+ej$(e).map(n=>n.map(r=>{const{active:s,disabled:a,isBetween:o,highlighted:u}=t(r);return{...r,active:s,disabled:a,className:{dp__overlay_cell_active:s,dp__overlay_cell:!s,dp__overlay_cell_disabled:a,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:a&&s,dp__cell_in_between:o,"dp--highlighted":u}}})),Ri=(e,t,n=!1)=>{e&&t.allowStopPropagation&&(n&&e.stopImmediatePropagation(),e.stopPropagation())},W$=()=>["a[href]","area[href]","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[tabindex]:not([tabindex='-1'])","[data-datepicker-instance]"].join(", ");function q$(e,t){let n=[...document.querySelectorAll(W$())];n=n.filter(s=>!e.contains(s)||s.hasAttribute("data-datepicker-instance"));const r=n.indexOf(e);if(r>=0&&(t?r-1>=0:r+1<=n.length))return n[r+(t?-1:1)]}const Y$=(e,t)=>e==null?void 0:e.querySelector(`[data-dp-element="${t}"]`),fw=(e,t)=>new Intl.NumberFormat(t,{useGrouping:!1,style:"decimal"}).format(e),sm=e=>Ds(e,"dd-MM-yyyy"),Zf=e=>Array.isArray(e),Rc=(e,t)=>t.get(sm(e)),z$=(e,t)=>e?t?t instanceof Map?!!Rc(e,t):t(Re(e)):!1:!0,Sr=(e,t,n=!1)=>{if(e.key===nn.enter||e.key===nn.space)return n&&e.preventDefault(),t()},g0=(e,t,n,r,s,a)=>{const o=Wh(e,t.slice(0,e.length),new Date,{locale:a});return oo(o)&&Y1(o)?r||s?o:Wt(o,{hours:+n.hours,minutes:+(n==null?void 0:n.minutes),seconds:+(n==null?void 0:n.seconds),milliseconds:0}):null},K$=(e,t,n,r,s,a)=>{const o=Array.isArray(n)?n[0]:n;if(typeof t=="string")return g0(e,t,o,r,s,a);if(Array.isArray(t)){let u=null;for(const d of t)if(u=g0(e,d,o,r,s,a),u)break;return u}return typeof t=="function"?t(e):null},Re=e=>e?new Date(e):new Date,G$=(e,t,n)=>{if(t){const s=(e.getMonth()+1).toString().padStart(2,"0"),a=e.getDate().toString().padStart(2,"0"),o=e.getHours().toString().padStart(2,"0"),u=e.getMinutes().toString().padStart(2,"0"),d=n?e.getSeconds().toString().padStart(2,"0"):"00";return`${e.getFullYear()}-${s}-${a}T${o}:${u}:${d}.000Z`}const r=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds());return new Date(r).toISOString()},hr=(e,t)=>{const n=Re(JSON.parse(JSON.stringify(e))),r=Wt(n,{hours:0,minutes:0,seconds:0,milliseconds:0});return t?UF(r):r},Di=(e,t,n,r)=>{let s=e?Re(e):Re();return(t||t===0)&&(s=P$(s,+t)),(n||n===0)&&(s=L$(s,+n)),(r||r===0)&&(s=aw(s,+r)),iw(s,0)},on=(e,t)=>!e||!t?!1:Eo(hr(e),hr(t)),St=(e,t)=>!e||!t?!1:el(hr(e),hr(t)),_n=(e,t)=>!e||!t?!1:yl(hr(e),hr(t)),cd=(e,t,n)=>e!=null&&e[0]&&e!=null&&e[1]?_n(n,e[0])&&on(n,e[1]):e!=null&&e[0]&&t?_n(n,e[0])&&on(n,t)||on(n,e[0])&&_n(n,t):!1,hs=e=>{const t=Wt(new Date(e),{date:1});return hr(t)},Xf=(e,t,n)=>t&&(n||n===0)?Object.fromEntries(["hours","minutes","seconds"].map(r=>r===t?[r,n]:[r,isNaN(+e[r])?void 0:+e[r]])):{hours:isNaN(+e.hours)?void 0:+e.hours,minutes:isNaN(+e.minutes)?void 0:+e.minutes,seconds:isNaN(+e.seconds)?void 0:+e.seconds},ga=e=>({hours:ri(e),minutes:Vi(e),seconds:vl(e)}),hw=(e,t)=>{if(t){const n=lt(Re(t));if(n>e)return 12;if(n===e)return wt(Re(t))}},pw=(e,t)=>{if(t){const n=lt(Re(t));return n{if(e)return lt(Re(e))},mw=(e,t)=>{const n=_n(e,t)?t:e,r=_n(t,e)?t:e;return z1({start:n,end:r})},J$=e=>{const t=gs(e,1);return{month:wt(t),year:lt(t)}},Ks=(e,t)=>{const n=ys(e,{weekStartsOn:+t}),r=G1(e,{weekStartsOn:+t});return[n,r]},gw=(e,t)=>{const n={hours:ri(Re()),minutes:Vi(Re()),seconds:t?vl(Re()):0};return Object.assign(n,e)},Ti=(e,t,n)=>[Wt(Re(e),{date:1}),Wt(Re(),{month:t,year:n,date:1})],Xs=(e,t,n)=>{let r=e?Re(e):Re();return(t||t===0)&&(r=sw(r,t)),n&&(r=Rs(r,n)),r},vw=(e,t,n,r,s)=>{if(!r||s&&!t||!s&&!n)return!1;const a=s?gs(e,1):_l(e,1),o=[wt(a),lt(a)];return s?!X$(...o,t):!Z$(...o,n)},Z$=(e,t,n)=>on(...Ti(n,e,t))||St(...Ti(n,e,t)),X$=(e,t,n)=>_n(...Ti(n,e,t))||St(...Ti(n,e,t)),yw=(e,t,n,r,s,a,o)=>{if(typeof t=="function"&&!o)return t(e);const u=n?{locale:n}:void 0;return Array.isArray(e)?`${Ds(e[0],a,u)}${s&&!e[1]?"":r}${e[1]?Ds(e[1],a,u):""}`:Ds(e,a,u)},Ka=e=>{if(e)return null;throw new Error(rm.prop("partial-range"))},ju=(e,t)=>{if(t)return e();throw new Error(rm.prop("range"))},Yh=e=>Array.isArray(e)?oo(e[0])&&(e[1]?oo(e[1]):!0):e?oo(e):!1,Q$=(e,t)=>Wt(t??Re(),{hours:+e.hours||0,minutes:+e.minutes||0,seconds:+e.seconds||0}),Qf=(e,t,n,r)=>{if(!e)return!0;if(r){const s=n==="max"?Eo(e,t):yl(e,t),a={seconds:0,milliseconds:0};return s||el(Wt(e,a),Wt(t,a))}return n==="max"?e.getTime()<=t.getTime():e.getTime()>=t.getTime()},eh=(e,t,n)=>e?Q$(e,t):Re(n??t),v0=(e,t,n,r,s)=>{if(Array.isArray(r)){const o=eh(e,r[0],t),u=eh(e,r[1],t);return Qf(r[0],o,n,!!t)&&Qf(r[1],u,n,!!t)&&s}const a=eh(e,r,t);return Qf(r,a,n,!!t)&&s},th=e=>Wt(Re(),ga(e)),e5=(e,t)=>e instanceof Map?Array.from(e.values()).filter(n=>lt(Re(n))===t).map(n=>wt(n)):[],_w=(e,t,n)=>typeof e=="function"?e({month:t,year:n}):!!e.months.find(r=>r.month===t&&r.year===n),im=(e,t)=>typeof e=="function"?e(t):e.years.includes(t),bw=e=>Ds(e,"yyyy-MM-dd"),Jl=Hr({menuFocused:!1,shiftKeyInMenu:!1}),ww=()=>{const e=n=>{Jl.menuFocused=n},t=n=>{Jl.shiftKeyInMenu!==n&&(Jl.shiftKeyInMenu=n)};return{control:pe(()=>({shiftKeyInMenu:Jl.shiftKeyInMenu,menuFocused:Jl.menuFocused})),setMenuFocused:e,setShiftKey:t}},Gt=Hr({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),nh=fe(null),Wu=fe(!1),rh=fe(!1),sh=fe(!1),ih=fe(!1),Jn=fe(0),vn=fe(0),Ui=()=>{const e=pe(()=>Wu.value?[...Gt.selectionGrid,Gt.actionRow].filter(p=>p.length):rh.value?[...Gt.timePicker[0],...Gt.timePicker[1],ih.value?[]:[nh.value],Gt.actionRow].filter(p=>p.length):sh.value?[...Gt.monthPicker,Gt.actionRow]:[Gt.monthYear,...Gt.calendar,Gt.time,Gt.actionRow].filter(p=>p.length)),t=p=>{Jn.value=p?Jn.value+1:Jn.value-1;let m=null;e.value[vn.value]&&(m=e.value[vn.value][Jn.value]),!m&&e.value[vn.value+(p?1:-1)]?(vn.value=vn.value+(p?1:-1),Jn.value=p?0:e.value[vn.value].length-1):m||(Jn.value=p?Jn.value-1:Jn.value+1)},n=p=>{vn.value===0&&!p||vn.value===e.value.length&&p||(vn.value=p?vn.value+1:vn.value-1,e.value[vn.value]?e.value[vn.value]&&!e.value[vn.value][Jn.value]&&Jn.value!==0&&(Jn.value=e.value[vn.value].length-1):vn.value=p?vn.value-1:vn.value+1)},r=p=>{let m=null;e.value[vn.value]&&(m=e.value[vn.value][Jn.value]),m?m.focus({preventScroll:!Wu.value}):Jn.value=p?Jn.value-1:Jn.value+1},s=()=>{t(!0),r(!0)},a=()=>{t(!1),r(!1)},o=()=>{n(!1),r(!0)},u=()=>{n(!0),r(!0)},d=(p,m)=>{Gt[m]=p},h=(p,m)=>{Gt[m]=p},f=()=>{Jn.value=0,vn.value=0};return{buildMatrix:d,buildMultiLevelMatrix:h,setTimePickerBackRef:p=>{nh.value=p},setSelectionGrid:p=>{Wu.value=p,f(),p||(Gt.selectionGrid=[])},setTimePicker:(p,m=!1)=>{rh.value=p,ih.value=m,f(),p||(Gt.timePicker[0]=[],Gt.timePicker[1]=[])},setTimePickerElements:(p,m=0)=>{Gt.timePicker[m]=p},arrowRight:s,arrowLeft:a,arrowUp:o,arrowDown:u,clearArrowNav:()=>{Gt.monthYear=[],Gt.calendar=[],Gt.time=[],Gt.actionRow=[],Gt.selectionGrid=[],Gt.timePicker[0]=[],Gt.timePicker[1]=[],Wu.value=!1,rh.value=!1,ih.value=!1,sh.value=!1,f(),nh.value=null},setMonthPicker:p=>{sh.value=p,f()},refSets:Gt}},y0=e=>({menuAppearTop:"dp-menu-appear-top",menuAppearBottom:"dp-menu-appear-bottom",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down",...e??{}}),t5=e=>({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",calendarWrap:"Calendar wrapper",calendarDays:"Calendar days",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:t=>`Increment ${t}`,decrementValue:t=>`Decrement ${t}`,openTpOverlay:t=>`Open ${t} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",nextYear:"Next year",prevYear:"Previous year",day:void 0,weekDay:void 0,...e??{}}),_0=e=>e?typeof e=="boolean"?e?2:0:+e>=2?+e:2:0,n5=e=>{const t=typeof e=="object"&&e,n={static:!0,solo:!1};if(!e)return{...n,count:_0(!1)};const r=t?e:{},s=t?r.count??!0:e,a=_0(s);return Object.assign(n,r,{count:a})},r5=(e,t,n)=>e||(typeof n=="string"?n:t),s5=e=>typeof e=="boolean"?e?y0({}):!1:y0(e),i5=e=>{const t={enterSubmit:!0,tabSubmit:!0,openMenu:!0,selectOnFocus:!1,rangeSeparator:" - "};return typeof e=="object"?{...t,...e??{},enabled:!0}:{...t,enabled:e}},a5=e=>({months:[],years:[],times:{hours:[],minutes:[],seconds:[]},...e??{}}),l5=e=>({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0,...e??{}}),o5=e=>{const t={input:!1};return typeof e=="object"?{...t,...e??{},enabled:!0}:{enabled:e,...t}},u5=e=>({allowStopPropagation:!0,closeOnScroll:!1,modeHeight:255,allowPreventDefault:!1,closeOnClearValue:!0,closeOnAutoApply:!0,noSwipe:!1,keepActionRow:!1,onClickOutside:void 0,tabOutClosesMenu:!0,arrowLeft:void 0,keepViewOnOffsetClick:!1,timeArrowHoldThreshold:0,...e??{}}),c5=e=>{const t={dates:Array.isArray(e)?e.map(n=>Re(n)):[],years:[],months:[],quarters:[],weeks:[],weekdays:[],options:{highlightDisabled:!1}};return typeof e=="function"?e:{...t,...e??{}}},d5=e=>typeof e=="object"?{type:(e==null?void 0:e.type)??"local",hideOnOffsetDates:(e==null?void 0:e.hideOnOffsetDates)??!1}:{type:e,hideOnOffsetDates:!1},f5=(e,t)=>typeof e=="object"?{enabled:!0,...{noDisabledRange:!1,showLastInRange:!0,minMaxRawRange:!1,partialRange:!0,disableTimeRangeValidation:!1,maxRange:void 0,minRange:void 0,autoRange:void 0,fixedStart:!1,fixedEnd:!1},...e}:{enabled:e,noDisabledRange:t.noDisabledRange,showLastInRange:t.showLastInRange,minMaxRawRange:t.minMaxRawRange,partialRange:t.partialRange,disableTimeRangeValidation:t.disableTimeRangeValidation,maxRange:t.maxRange,minRange:t.minRange,autoRange:t.autoRange,fixedStart:t.fixedStart,fixedEnd:t.fixedEnd},h5=(e,t)=>e?typeof e=="string"?{timezone:e,exactMatch:!1,dateInTz:void 0,emitTimezone:t,convertModel:!0}:{timezone:e.timezone,exactMatch:e.exactMatch??!1,dateInTz:e.dateInTz??void 0,emitTimezone:t??e.emitTimezone,convertModel:e.convertModel??!0}:{timezone:void 0,exactMatch:!1,emitTimezone:t},ah=(e,t,n)=>new Map(e.map(r=>{const s=tm(r,t,n);return[sm(s),s]})),p5=(e,t)=>e.length?new Map(e.map(n=>{const r=tm(n.date,t);return[sm(r),n]})):null,m5=e=>{var t;return{minDate:qh(e.minDate,e.timezone,e.isSpecific),maxDate:qh(e.maxDate,e.timezone,e.isSpecific),disabledDates:Zf(e.disabledDates)?ah(e.disabledDates,e.timezone,e.isSpecific):e.disabledDates,allowedDates:Zf(e.allowedDates)?ah(e.allowedDates,e.timezone,e.isSpecific):null,highlight:typeof e.highlight=="object"&&Zf((t=e.highlight)==null?void 0:t.dates)?ah(e.highlight.dates,e.timezone):e.highlight,markers:p5(e.markers,e.timezone)}},g5=(e,t)=>typeof e=="boolean"?{enabled:e,dragSelect:!0,limit:+t}:{enabled:!!e,limit:e.limit?+e.limit:null,dragSelect:e.dragSelect??!0},v5=e=>({...Object.fromEntries(Object.keys(e).map(t=>{const n=t,r=e[n],s=typeof e[n]=="string"?{[r]:!0}:Object.fromEntries(r.map(a=>[a,!0]));return[t,s]}))}),sn=e=>{const t=()=>{const B=e.enableSeconds?":ss":"",$=e.enableMinutes?":mm":"";return e.is24?`HH${$}${B}`:`hh${$}${B} aa`},n=()=>{var B;return e.format?e.format:e.monthPicker?"MM/yyyy":e.timePicker?t():e.weekPicker?`${((B=E.value)==null?void 0:B.type)==="iso"?"RR":"ww"}-yyyy`:e.yearPicker?"yyyy":e.quarterPicker?"QQQ/yyyy":e.enableTimePicker?`MM/dd/yyyy, ${t()}`:"MM/dd/yyyy"},r=B=>gw(B,e.enableSeconds),s=()=>A.value.enabled?e.startTime&&Array.isArray(e.startTime)?[r(e.startTime[0]),r(e.startTime[1])]:null:e.startTime&&!Array.isArray(e.startTime)?r(e.startTime):null,a=pe(()=>n5(e.multiCalendars)),o=pe(()=>s()),u=pe(()=>t5(e.ariaLabels)),d=pe(()=>a5(e.filters)),h=pe(()=>s5(e.transitions)),f=pe(()=>l5(e.actionRow)),p=pe(()=>r5(e.previewFormat,e.format,n())),m=pe(()=>i5(e.textInput)),y=pe(()=>o5(e.inline)),w=pe(()=>u5(e.config)),_=pe(()=>c5(e.highlight)),E=pe(()=>d5(e.weekNumbers)),U=pe(()=>h5(e.timezone,e.emitTimezone)),V=pe(()=>g5(e.multiDates,e.multiDatesLimit)),x=pe(()=>m5({minDate:e.minDate,maxDate:e.maxDate,disabledDates:e.disabledDates,allowedDates:e.allowedDates,highlight:_.value,markers:e.markers,timezone:U.value,isSpecific:e.monthPicker||e.yearPicker||e.quarterPicker})),A=pe(()=>f5(e.range,{minMaxRawRange:!1,maxRange:e.maxRange,minRange:e.minRange,noDisabledRange:e.noDisabledRange,showLastInRange:e.showLastInRange,partialRange:e.partialRange,disableTimeRangeValidation:e.disableTimeRangeValidation,autoRange:e.autoRange,fixedStart:e.fixedStart,fixedEnd:e.fixedEnd})),F=pe(()=>v5(e.ui));return{defaultedTransitions:h,defaultedMultiCalendars:a,defaultedStartTime:o,defaultedAriaLabels:u,defaultedFilters:d,defaultedActionRow:f,defaultedPreviewFormat:p,defaultedTextInput:m,defaultedInline:y,defaultedConfig:w,defaultedHighlight:_,defaultedWeekNumbers:E,defaultedRange:A,propDates:x,defaultedTz:U,defaultedMultiDates:V,defaultedUI:F,getDefaultPattern:n,getDefaultStartTime:s}},y5=(e,t,n)=>{const r=fe(),{defaultedTextInput:s,defaultedRange:a,defaultedTz:o,defaultedMultiDates:u,getDefaultPattern:d}=sn(t),h=fe(""),f=ll(t,"format"),p=ll(t,"formatLocale");qt(r,()=>{typeof t.onInternalModelChange=="function"&&e("internal-model-change",r.value,we(!0))},{deep:!0}),qt(a,(Y,Le)=>{Y.enabled!==Le.enabled&&(r.value=null)}),qt(f,()=>{te()});const m=Y=>o.value.timezone&&o.value.convertModel?Ar(Y,o.value.timezone):Y,y=Y=>{if(o.value.timezone&&o.value.convertModel){const Le=V$(o.value.timezone);return IF(Y,Le)}return Y},w=(Y,Le,Xe=!1)=>yw(Y,t.format,t.formatLocale,s.value.rangeSeparator,t.modelAuto,Le??d(),Xe),_=Y=>Y?t.modelType?De(Y):{hours:ri(Y),minutes:Vi(Y),seconds:t.enableSeconds?vl(Y):0}:null,E=Y=>t.modelType?De(Y):{month:wt(Y),year:lt(Y)},U=Y=>Array.isArray(Y)?u.value.enabled?Y.map(Le=>V(Le,Rs(Re(),Le))):ju(()=>[Rs(Re(),Y[0]),Y[1]?Rs(Re(),Y[1]):Ka(a.value.partialRange)],a.value.enabled):Rs(Re(),+Y),V=(Y,Le)=>(typeof Y=="string"||typeof Y=="number")&&t.modelType?be(Y):Le,x=Y=>Array.isArray(Y)?[V(Y[0],Di(null,+Y[0].hours,+Y[0].minutes,Y[0].seconds)),V(Y[1],Di(null,+Y[1].hours,+Y[1].minutes,Y[1].seconds))]:V(Y,Di(null,Y.hours,Y.minutes,Y.seconds)),A=Y=>{const Le=Wt(Re(),{date:1});return Array.isArray(Y)?u.value.enabled?Y.map(Xe=>V(Xe,Xs(Le,+Xe.month,+Xe.year))):ju(()=>[V(Y[0],Xs(Le,+Y[0].month,+Y[0].year)),V(Y[1],Y[1]?Xs(Le,+Y[1].month,+Y[1].year):Ka(a.value.partialRange))],a.value.enabled):V(Y,Xs(Le,+Y.month,+Y.year))},F=Y=>{if(Array.isArray(Y))return Y.map(Le=>be(Le));throw new Error(rm.dateArr("multi-dates"))},B=Y=>{if(Array.isArray(Y)&&a.value.enabled){const Le=Y[0],Xe=Y[1];return[Re(Array.isArray(Le)?Le[0]:null),Re(Array.isArray(Xe)?Xe[0]:null)]}return Re(Y[0])},$=Y=>t.modelAuto?Array.isArray(Y)?[be(Y[0]),be(Y[1])]:t.autoApply?[be(Y)]:[be(Y),null]:Array.isArray(Y)?ju(()=>Y[1]?[be(Y[0]),Y[1]?be(Y[1]):Ka(a.value.partialRange)]:[be(Y[0])],a.value.enabled):be(Y),M=()=>{Array.isArray(r.value)&&a.value.enabled&&r.value.length===1&&r.value.push(Ka(a.value.partialRange))},S=()=>{const Y=r.value;return[De(Y[0]),Y[1]?De(Y[1]):Ka(a.value.partialRange)]},H=()=>r.value[1]?S():De(Fn(r.value[0])),se=()=>(r.value||[]).map(Y=>De(Y)),ee=(Y=!1)=>(Y||M(),t.modelAuto?H():u.value.enabled?se():Array.isArray(r.value)?ju(()=>S(),a.value.enabled):De(Fn(r.value))),ne=Y=>!Y||Array.isArray(Y)&&!Y.length?null:t.timePicker?x(Fn(Y)):t.monthPicker?A(Fn(Y)):t.yearPicker?U(Fn(Y)):u.value.enabled?F(Fn(Y)):t.weekPicker?B(Fn(Y)):$(Fn(Y)),J=Y=>{const Le=ne(Y);Yh(Fn(Le))?(r.value=Fn(Le),te()):(r.value=null,h.value="")},P=()=>{const Y=Le=>Ds(Le,s.value.format);return`${Y(r.value[0])} ${s.value.rangeSeparator} ${r.value[1]?Y(r.value[1]):""}`},z=()=>n.value&&r.value?Array.isArray(r.value)?P():Ds(r.value,s.value.format):w(r.value),R=()=>r.value?u.value.enabled?r.value.map(Y=>w(Y)).join("; "):s.value.enabled&&typeof s.value.format=="string"?z():w(r.value):"",te=()=>{!t.format||typeof t.format=="string"||s.value.enabled&&typeof s.value.format=="string"?h.value=R():h.value=t.format(r.value)},be=Y=>{if(t.utc){const Le=new Date(Y);return t.utc==="preserve"?new Date(Le.getTime()+Le.getTimezoneOffset()*6e4):Le}return t.modelType?F$.includes(t.modelType)?m(new Date(Y)):t.modelType==="format"&&(typeof t.format=="string"||!t.format)?m(Wh(Y,d(),new Date,{locale:p.value})):m(Wh(Y,t.modelType,new Date,{locale:p.value})):m(new Date(Y))},De=Y=>Y?t.utc?G$(Y,t.utc==="preserve",t.enableSeconds):t.modelType?t.modelType==="timestamp"?+y(Y):t.modelType==="iso"?y(Y).toISOString():t.modelType==="format"&&(typeof t.format=="string"||!t.format)?w(y(Y)):w(y(Y),t.modelType,!0):y(Y):"",He=(Y,Le=!1,Xe=!1)=>{if(Xe)return Y;if(e("update:model-value",Y),o.value.emitTimezone&&Le){const ye=Array.isArray(Y)?Y.map(et=>Ar(Fn(et),o.value.emitTimezone)):Ar(Fn(Y),o.value.emitTimezone);e("update:model-timezone-value",ye)}},K=Y=>Array.isArray(r.value)?u.value.enabled?r.value.map(Le=>Y(Le)):[Y(r.value[0]),r.value[1]?Y(r.value[1]):Ka(a.value.partialRange)]:Y(Fn(r.value)),ue=()=>{if(Array.isArray(r.value)){const Y=Ks(r.value[0],t.weekStart),Le=r.value[1]?Ks(r.value[1],t.weekStart):[];return[Y.map(Xe=>Re(Xe)),Le.map(Xe=>Re(Xe))]}return Ks(r.value,t.weekStart).map(Y=>Re(Y))},D=(Y,Le)=>He(Fn(K(Y)),!1,Le),le=Y=>{const Le=ue();return Y?Le:e("update:model-value",ue())},we=(Y=!1)=>(Y||te(),t.monthPicker?D(E,Y):t.timePicker?D(_,Y):t.yearPicker?D(lt,Y):t.weekPicker?le(Y):He(ee(Y),!0,Y));return{inputValue:h,internalModelValue:r,checkBeforeEmit:()=>r.value?a.value.enabled?a.value.partialRange?r.value.length>=1:r.value.length===2:!!r.value:!1,parseExternalModelValue:J,formatInputValue:te,emitModelValue:we}},_5=(e,t)=>{const{defaultedFilters:n,propDates:r}=sn(e),{validateMonthYearInRange:s}=ji(e),a=(f,p)=>{let m=f;return n.value.months.includes(wt(m))?(m=p?gs(f,1):_l(f,1),a(m,p)):m},o=(f,p)=>{let m=f;return n.value.years.includes(lt(m))?(m=p?Wp(f,1):lw(f,1),o(m,p)):m},u=(f,p=!1)=>{const m=Wt(Re(),{month:e.month,year:e.year});let y=f?gs(m,1):_l(m,1);e.disableYearSelect&&(y=Rs(y,e.year));let w=wt(y),_=lt(y);n.value.months.includes(w)&&(y=a(y,f),w=wt(y),_=lt(y)),n.value.years.includes(_)&&(y=o(y,f),_=lt(y)),s(w,_,f,e.preventMinMaxNavigation)&&d(w,_,p)},d=(f,p,m)=>{t("update-month-year",{month:f,year:p,fromNav:m})},h=pe(()=>f=>vw(Wt(Re(),{month:e.month,year:e.year}),r.value.maxDate,r.value.minDate,e.preventMinMaxNavigation,f));return{handleMonthYearChange:u,isDisabled:h,updateMonthYear:d}},dd={multiCalendars:{type:[Boolean,Number,String,Object],default:void 0},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},autoPosition:{type:Boolean,default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:[String,Object],default:null},emitTimezone:{type:String,default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},menuClassName:{type:String,default:null},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},calendarCellClassName:{type:String,default:null},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},autoRange:{type:[Number,String],default:null},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetDates:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},minRange:{type:[Number,String],default:null},maxRange:{type:[Number,String],default:null},multiDatesLimit:{type:[Number,String],default:null},reverseYears:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},disableTimeRangeValidation:{type:Boolean,default:!1},highlight:{type:[Function,Object],default:null},teleport:{type:[Boolean,String,Object],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function,Object],default:null},calendarClassName:{type:String,default:null},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:[Object,Boolean],default:!1},partialRange:{type:Boolean,default:!0},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},inputClassName:{type:String,default:null},fixedStart:{type:Boolean,default:!1},fixedEnd:{type:Boolean,default:!1},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:[Boolean,Object],default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:[Boolean,Object],default:!1},textInput:{type:[Boolean,Object],default:!1},noDisabledRange:{type:Boolean,default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:[Function,Array],default:void 0},showLastInRange:{type:Boolean,default:!0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},config:{type:Object,default:void 0},quarterPicker:{type:Boolean,default:!1},yearFirst:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},onInternalModelChange:{type:[Function,Object],default:null},enableMinutes:{type:Boolean,default:!0},ui:{type:Object,default:()=>({})}},bs={...dd,shadow:{type:Boolean,default:!1},flowStep:{type:Number,default:0},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},menuWrapRef:{type:Object,default:null},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1}},b5=["title"],w5=["disabled"],x5=fn({compatConfig:{MODE:3},__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},calendarWidth:{type:Number,default:0},...bs},emits:["close-picker","select-date","select-now","invalid-select"],setup(e,{emit:t}){const n=t,r=e,{defaultedActionRow:s,defaultedPreviewFormat:a,defaultedMultiCalendars:o,defaultedTextInput:u,defaultedInline:d,defaultedRange:h,defaultedMultiDates:f,getDefaultPattern:p}=sn(r),{isTimeValid:m,isMonthValid:y}=ji(r),{buildMatrix:w}=Ui(),_=fe(null),E=fe(null),U=fe(!1),V=fe({}),x=fe(null),A=fe(null);It(()=>{r.arrowNavigation&&w([Ln(_),Ln(E)],"actionRow"),F(),window.addEventListener("resize",F)}),ii(()=>{window.removeEventListener("resize",F)});const F=()=>{U.value=!1,setTimeout(()=>{var P,z;const R=(P=x.value)==null?void 0:P.getBoundingClientRect(),te=(z=A.value)==null?void 0:z.getBoundingClientRect();R&&te&&(V.value.maxWidth=`${te.width-R.width-20}px`),U.value=!0},0)},B=pe(()=>h.value.enabled&&!h.value.partialRange&&r.internalModelValue?r.internalModelValue.length===2:!0),$=pe(()=>!m.value(r.internalModelValue)||!y.value(r.internalModelValue)||!B.value),M=()=>{const P=a.value;return r.timePicker||r.monthPicker,P(Fn(r.internalModelValue))},S=()=>{const P=r.internalModelValue;return o.value.count>0?`${H(P[0])} - ${H(P[1])}`:[H(P[0]),H(P[1])]},H=P=>yw(P,a.value,r.formatLocale,u.value.rangeSeparator,r.modelAuto,p()),se=pe(()=>!r.internalModelValue||!r.menuMount?"":typeof a.value=="string"?Array.isArray(r.internalModelValue)?r.internalModelValue.length===2&&r.internalModelValue[1]?S():f.value.enabled?r.internalModelValue.map(P=>`${H(P)}`):r.modelAuto?`${H(r.internalModelValue[0])}`:`${H(r.internalModelValue[0])} -`:H(r.internalModelValue):M()),ee=()=>f.value.enabled?"; ":" - ",ne=pe(()=>Array.isArray(se.value)?se.value.join(ee()):se.value),J=()=>{m.value(r.internalModelValue)&&y.value(r.internalModelValue)&&B.value?n("select-date"):n("invalid-select")};return(P,z)=>(k(),I("div",{ref_key:"actionRowRef",ref:A,class:"dp__action_row"},[P.$slots["action-row"]?Ie(P.$slots,"action-row",wn(cn({key:0},{internalModelValue:P.internalModelValue,disabled:$.value,selectDate:()=>P.$emit("select-date"),closePicker:()=>P.$emit("close-picker")}))):(k(),I(Ne,{key:1},[Z(s).showPreview?(k(),I("div",{key:0,class:"dp__selection_preview",title:ne.value,style:bn(V.value)},[P.$slots["action-preview"]&&U.value?Ie(P.$slots,"action-preview",{key:0,value:P.internalModelValue}):ie("",!0),!P.$slots["action-preview"]&&U.value?(k(),I(Ne,{key:1},[mt(re(ne.value),1)],64)):ie("",!0)],12,b5)):ie("",!0),v("div",{ref_key:"actionBtnContainer",ref:x,class:"dp__action_buttons","data-dp-element":"action-row"},[P.$slots["action-buttons"]?Ie(P.$slots,"action-buttons",{key:0,value:P.internalModelValue}):ie("",!0),P.$slots["action-buttons"]?ie("",!0):(k(),I(Ne,{key:1},[!Z(d).enabled&&Z(s).showCancel?(k(),I("button",{key:0,ref_key:"cancelButtonRef",ref:_,type:"button",class:"dp__action_button dp__action_cancel",onClick:z[0]||(z[0]=R=>P.$emit("close-picker")),onKeydown:z[1]||(z[1]=R=>Z(Sr)(R,()=>P.$emit("close-picker")))},re(P.cancelText),545)):ie("",!0),Z(s).showNow?(k(),I("button",{key:1,type:"button",class:"dp__action_button dp__action_cancel",onClick:z[2]||(z[2]=R=>P.$emit("select-now")),onKeydown:z[3]||(z[3]=R=>Z(Sr)(R,()=>P.$emit("select-now")))},re(P.nowButtonLabel),33)):ie("",!0),Z(s).showSelect?(k(),I("button",{key:2,ref_key:"selectButtonRef",ref:E,type:"button",class:"dp__action_button dp__action_select",disabled:$.value,"data-test":"select-button",onKeydown:z[4]||(z[4]=R=>Z(Sr)(R,()=>J())),onClick:J},re(P.selectText),41,w5)):ie("",!0)],64))],512)],64))],512))}}),k5={class:"dp__selection_grid_header"},S5=["aria-selected","aria-disabled","data-test","onClick","onKeydown","onMouseover"],T5=["aria-label"],$o=fn({__name:"SelectionOverlay",props:{items:{},type:{},isLast:{type:Boolean},arrowNavigation:{type:Boolean},skipButtonRef:{type:Boolean},headerRefs:{},hideNavigation:{},escClose:{type:Boolean},useRelative:{type:Boolean},height:{},textInput:{type:[Boolean,Object]},config:{},noOverlayFocus:{type:Boolean},focusValue:{},menuWrapRef:{},ariaLabels:{}},emits:["selected","toggle","reset-flow","hover-value"],setup(e,{expose:t,emit:n}){const{setSelectionGrid:r,buildMultiLevelMatrix:s,setMonthPicker:a}=Ui(),o=n,u=e,{defaultedAriaLabels:d,defaultedTextInput:h,defaultedConfig:f}=sn(u),{hideNavigationButtons:p}=pd(),m=fe(!1),y=fe(null),w=fe(null),_=fe([]),E=fe(),U=fe(null),V=fe(0),x=fe(null);Jc(()=>{y.value=null}),It(()=>{Hn().then(()=>se()),u.noOverlayFocus||F(),A(!0)}),ii(()=>A(!1));const A=K=>{var ue;u.arrowNavigation&&((ue=u.headerRefs)!=null&&ue.length?a(K):r(K))},F=()=>{var K;const ue=Ln(w);ue&&(h.value.enabled||(y.value?(K=y.value)==null||K.focus({preventScroll:!0}):ue.focus({preventScroll:!0})),m.value=ue.clientHeight({dp__overlay:!0,"dp--overlay-absolute":!u.useRelative,"dp--overlay-relative":u.useRelative})),$=pe(()=>u.useRelative?{height:`${u.height}px`,width:"260px"}:void 0),M=pe(()=>({dp__overlay_col:!0})),S=pe(()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:m.value,dp__button_bottom:u.isLast})),H=pe(()=>{var K,ue;return{dp__overlay_container:!0,dp__container_flex:((K=u.items)==null?void 0:K.length)<=6,dp__container_block:((ue=u.items)==null?void 0:ue.length)>6}});qt(()=>u.items,()=>se(!1),{deep:!0});const se=(K=!0)=>{Hn().then(()=>{const ue=Ln(y),D=Ln(w),le=Ln(U),we=Ln(x),Y=le?le.getBoundingClientRect().height:0;D&&(D.getBoundingClientRect().height?V.value=D.getBoundingClientRect().height-Y:V.value=f.value.modeHeight-Y),ue&&we&&K&&(we.scrollTop=ue.offsetTop-we.offsetTop-(V.value/2-ue.getBoundingClientRect().height)-Y)})},ee=K=>{K.disabled||o("selected",K.value)},ne=()=>{o("toggle"),o("reset-flow")},J=()=>{u.escClose&&ne()},P=(K,ue,D,le)=>{K&&((ue.active||ue.value===u.focusValue)&&(y.value=K),u.arrowNavigation&&(Array.isArray(_.value[D])?_.value[D][le]=K:_.value[D]=[K],z()))},z=()=>{var K,ue;const D=(K=u.headerRefs)!=null&&K.length?[u.headerRefs].concat(_.value):_.value.concat([u.skipButtonRef?[]:[U.value]]);s(Fn(D),(ue=u.headerRefs)!=null&&ue.length?"monthPicker":"selectionGrid")},R=K=>{u.arrowNavigation||Ri(K,f.value,!0)},te=K=>{E.value=K,o("hover-value",K)},be=()=>{if(ne(),!u.isLast){const K=Y$(u.menuWrapRef??null,"action-row");if(K){const ue=dw(K);ue==null||ue.focus()}}},De=K=>{switch(K.key){case nn.esc:return J();case nn.arrowLeft:return R(K);case nn.arrowRight:return R(K);case nn.arrowUp:return R(K);case nn.arrowDown:return R(K);default:return}},He=K=>{if(K.key===nn.enter)return ne();if(K.key===nn.tab)return be()};return t({focusGrid:F}),(K,ue)=>{var D;return k(),I("div",{ref_key:"gridWrapRef",ref:w,class:$e(B.value),style:bn($.value),role:"dialog",tabindex:"0",onKeydown:De,onClick:ue[0]||(ue[0]=Et(()=>{},["prevent"]))},[v("div",{ref_key:"containerRef",ref:x,class:$e(H.value),role:"grid",style:bn({"--dp-overlay-height":`${V.value}px`})},[v("div",k5,[Ie(K.$slots,"header")]),K.$slots.overlay?Ie(K.$slots,"overlay",{key:0}):(k(!0),I(Ne,{key:1},Qe(K.items,(le,we)=>(k(),I("div",{key:we,class:$e(["dp__overlay_row",{dp__flex_row:K.items.length>=3}]),role:"row"},[(k(!0),I(Ne,null,Qe(le,(Y,Le)=>(k(),I("div",{key:Y.value,ref_for:!0,ref:Xe=>P(Xe,Y,we,Le),role:"gridcell",class:$e(M.value),"aria-selected":Y.active||void 0,"aria-disabled":Y.disabled||void 0,tabindex:"0","data-test":Y.text,onClick:Et(Xe=>ee(Y),["prevent"]),onKeydown:Xe=>Z(Sr)(Xe,()=>ee(Y),!0),onMouseover:Xe=>te(Y.value)},[v("div",{class:$e(Y.className)},[K.$slots.item?Ie(K.$slots,"item",{key:0,item:Y}):ie("",!0),K.$slots.item?ie("",!0):(k(),I(Ne,{key:1},[mt(re(Y.text),1)],64))],2)],42,S5))),128))],2))),128))],6),K.$slots["button-icon"]?Dn((k(),I("button",{key:0,ref_key:"toggleButton",ref:U,type:"button","aria-label":(D=Z(d))==null?void 0:D.toggleOverlay,class:$e(S.value),tabindex:"0",onClick:ne,onKeydown:He},[Ie(K.$slots,"button-icon")],42,T5)),[[Vr,!Z(p)(K.hideNavigation,K.type)]]):ie("",!0)],38)}}}),fd=fn({__name:"InstanceWrap",props:{multiCalendars:{},stretch:{type:Boolean},collapse:{type:Boolean}},setup(e){const t=e,n=pe(()=>t.multiCalendars>0?[...Array(t.multiCalendars).keys()]:[0]),r=pe(()=>({dp__instance_calendar:t.multiCalendars>0}));return(s,a)=>(k(),I("div",{class:$e({dp__menu_inner:!s.stretch,"dp--menu--inner-stretched":s.stretch,dp__flex_display:s.multiCalendars>0,"dp--flex-display-collapsed":s.collapse})},[(k(!0),I(Ne,null,Qe(n.value,(o,u)=>(k(),I("div",{key:o,class:$e(r.value)},[Ie(s.$slots,"default",{instance:o,index:u})],2))),128))],2))}}),A5=["aria-label","aria-disabled"],uo=fn({compatConfig:{MODE:3},__name:"ArrowBtn",props:{ariaLabel:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(e,{emit:t}){const n=t,r=fe(null);return It(()=>n("set-ref",r)),(s,a)=>(k(),I("button",{ref_key:"elRef",ref:r,type:"button",class:"dp__btn dp--arrow-btn-nav",tabindex:"0","aria-label":s.ariaLabel,"aria-disabled":s.disabled||void 0,onClick:a[0]||(a[0]=o=>s.$emit("activate")),onKeydown:a[1]||(a[1]=o=>Z(Sr)(o,()=>s.$emit("activate"),!0))},[v("span",{class:$e(["dp__inner_nav",{dp__inner_nav_disabled:s.disabled}])},[Ie(s.$slots,"default")],2)],40,A5))}}),C5={class:"dp--year-mode-picker"},E5=["aria-label","data-test"],xw=fn({__name:"YearModePicker",props:{...bs,showYearPicker:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},instance:{type:Number,default:0},year:{type:Number,default:0},isDisabled:{type:Function,default:()=>!1}},emits:["toggle-year-picker","year-select","handle-year"],setup(e,{emit:t}){const n=t,r=e,{showRightIcon:s,showLeftIcon:a}=pd(),{defaultedConfig:o,defaultedMultiCalendars:u,defaultedAriaLabels:d,defaultedTransitions:h,defaultedUI:f}=sn(r),{showTransition:p,transitionName:m}=Bo(h),y=(E=!1,U)=>{n("toggle-year-picker",{flow:E,show:U})},w=E=>{n("year-select",E)},_=(E=!1)=>{n("handle-year",E)};return(E,U)=>{var V,x,A,F,B;return k(),I("div",C5,[Z(a)(Z(u),e.instance)?(k(),it(uo,{key:0,ref:"mpPrevIconRef","aria-label":(V=Z(d))==null?void 0:V.prevYear,disabled:e.isDisabled(!1),class:$e((x=Z(f))==null?void 0:x.navBtnPrev),onActivate:U[0]||(U[0]=$=>_(!1))},{default:Te(()=>[E.$slots["arrow-left"]?Ie(E.$slots,"arrow-left",{key:0}):ie("",!0),E.$slots["arrow-left"]?ie("",!0):(k(),it(Z(Jp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):ie("",!0),v("button",{ref:"mpYearButtonRef",class:"dp__btn dp--year-select",type:"button","aria-label":(A=Z(d))==null?void 0:A.openYearsOverlay,"data-test":`year-mode-btn-${e.instance}`,onClick:U[1]||(U[1]=()=>y(!1)),onKeydown:U[2]||(U[2]=$n(()=>y(!1),["enter"]))},[E.$slots.year?Ie(E.$slots,"year",{key:0,year:e.year}):ie("",!0),E.$slots.year?ie("",!0):(k(),I(Ne,{key:1},[mt(re(e.year),1)],64))],40,E5),Z(s)(Z(u),e.instance)?(k(),it(uo,{key:1,ref:"mpNextIconRef","aria-label":(F=Z(d))==null?void 0:F.nextYear,disabled:e.isDisabled(!0),class:$e((B=Z(f))==null?void 0:B.navBtnNext),onActivate:U[3]||(U[3]=$=>_(!0))},{default:Te(()=>[E.$slots["arrow-right"]?Ie(E.$slots,"arrow-right",{key:0}):ie("",!0),E.$slots["arrow-right"]?ie("",!0):(k(),it(Z(Zp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):ie("",!0),he(vs,{name:Z(m)(e.showYearPicker),css:Z(p)},{default:Te(()=>[e.showYearPicker?(k(),it($o,{key:0,items:e.items,"text-input":E.textInput,"esc-close":E.escClose,config:E.config,"is-last":E.autoApply&&!Z(o).keepActionRow,"hide-navigation":E.hideNavigation,"aria-labels":E.ariaLabels,type:"year",onToggle:y,onSelected:U[4]||(U[4]=$=>w($))},Bn({"button-icon":Te(()=>[E.$slots["calendar-icon"]?Ie(E.$slots,"calendar-icon",{key:0}):ie("",!0),E.$slots["calendar-icon"]?ie("",!0):(k(),it(Z(Cl),{key:1}))]),_:2},[E.$slots["year-overlay-value"]?{name:"item",fn:Te(({item:$})=>[Ie(E.$slots,"year-overlay-value",{text:$.text,value:$.value})]),key:"0"}:void 0]),1032,["items","text-input","esc-close","config","is-last","hide-navigation","aria-labels"])):ie("",!0)]),_:3},8,["name","css"])])}}}),am=(e,t,n)=>{if(t.value&&Array.isArray(t.value))if(t.value.some(r=>St(e,r))){const r=t.value.filter(s=>!St(s,e));t.value=r.length?r:null}else(n&&+n>t.value.length||!n)&&t.value.push(e);else t.value=[e]},lm=(e,t,n)=>{let r=e.value?e.value.slice():[];return r.length===2&&r[1]!==null&&(r=[]),r.length?on(t,r[0])?(r.unshift(t),n("range-start",r[0]),n("range-start",r[1])):(r[1]=t,n("range-end",t)):(r=[t],n("range-start",t)),r},hd=(e,t,n,r)=>{e&&(e[0]&&e[1]&&n&&t("auto-apply"),e[0]&&!e[1]&&r&&n&&t("auto-apply"))},kw=e=>{Array.isArray(e.value)&&e.value.length<=2&&e.range?e.modelValue.value=e.value.map(t=>Ar(Re(t),e.timezone)):Array.isArray(e.value)||(e.modelValue.value=Ar(Re(e.value),e.timezone))},Sw=(e,t,n,r)=>Array.isArray(t.value)&&(t.value.length===2||t.value.length===1&&r.value.partialRange)?r.value.fixedStart&&(_n(e,t.value[0])||St(e,t.value[0]))?[t.value[0],e]:r.value.fixedEnd&&(on(e,t.value[1])||St(e,t.value[1]))?[e,t.value[1]]:(n("invalid-fixed-range",e),t.value):[],Tw=({multiCalendars:e,range:t,highlight:n,propDates:r,calendars:s,modelValue:a,props:o,filters:u,year:d,month:h,emit:f})=>{const p=pe(()=>nm(o.yearRange,o.locale,o.reverseYears)),m=fe([!1]),y=pe(()=>(H,se)=>{const ee=Wt(hs(new Date),{month:h.value(H),year:d.value(H)}),ne=se?K1(ee):Co(ee);return vw(ne,r.value.maxDate,r.value.minDate,o.preventMinMaxNavigation,se)}),w=()=>Array.isArray(a.value)&&e.value.solo&&a.value[1],_=()=>{for(let H=0;H{if(!H)return _();const se=Wt(Re(),s.value[H]);return s.value[0].year=lt(lw(se,e.value.count-1)),_()},U=(H,se)=>{const ee=BF(se,H);return t.value.showLastInRange&&ee>1?se:H},V=H=>o.focusStartDate||e.value.solo?H[0]:H[1]?U(H[0],H[1]):H[0],x=()=>{if(a.value){const H=Array.isArray(a.value)?V(a.value):a.value;s.value[0]={month:wt(H),year:lt(H)}}},A=()=>{x(),e.value.count&&_()};qt(a,(H,se)=>{o.isTextInputDate&&JSON.stringify(H??{})!==JSON.stringify(se??{})&&A()}),It(()=>{A()});const F=(H,se)=>{s.value[se].year=H,f("update-month-year",{instance:se,year:H,month:s.value[se].month}),e.value.count&&!e.value.solo&&E(se)},B=pe(()=>H=>bl(p.value,se=>{var ee;const ne=d.value(H)===se.value,J=Oo(se.value,wl(r.value.minDate),wl(r.value.maxDate))||((ee=u.value.years)==null?void 0:ee.includes(d.value(H))),P=im(n.value,se.value);return{active:ne,disabled:J,highlighted:P}})),$=(H,se)=>{F(H,se),S(se)},M=(H,se=!1)=>{if(!y.value(H,se)){const ee=se?d.value(H)+1:d.value(H)-1;F(ee,H)}},S=(H,se=!1,ee)=>{se||f("reset-flow"),ee!==void 0?m.value[H]=ee:m.value[H]=!m.value[H],m.value[H]?f("overlay-toggle",{open:!0,overlay:Xn.year}):(f("overlay-closed"),f("overlay-toggle",{open:!1,overlay:Xn.year}))};return{isDisabled:y,groupedYears:B,showYearPicker:m,selectYear:F,toggleYearPicker:S,handleYearSelect:$,handleYear:M}},O5=(e,t)=>{const{defaultedMultiCalendars:n,defaultedAriaLabels:r,defaultedTransitions:s,defaultedConfig:a,defaultedRange:o,defaultedHighlight:u,propDates:d,defaultedTz:h,defaultedFilters:f,defaultedMultiDates:p}=sn(e),m=()=>{e.isTextInputDate&&A(lt(Re(e.startDate)),0)},{modelValue:y,year:w,month:_,calendars:E}=Ho(e,t,m),U=pe(()=>uw(e.formatLocale,e.locale,e.monthNameFormat)),V=fe(null),{checkMinMaxRange:x}=ji(e),{selectYear:A,groupedYears:F,showYearPicker:B,toggleYearPicker:$,handleYearSelect:M,handleYear:S,isDisabled:H}=Tw({modelValue:y,multiCalendars:n,range:o,highlight:u,calendars:E,year:w,propDates:d,month:_,filters:f,props:e,emit:t});It(()=>{e.startDate&&(y.value&&e.focusStartDate||!y.value)&&A(lt(Re(e.startDate)),0)});const se=D=>D?{month:wt(D),year:lt(D)}:{month:null,year:null},ee=()=>y.value?Array.isArray(y.value)?y.value.map(D=>se(D)):se(y.value):se(),ne=(D,le)=>{const we=E.value[D],Y=ee();return Array.isArray(Y)?Y.some(Le=>Le.year===(we==null?void 0:we.year)&&Le.month===le):(we==null?void 0:we.year)===Y.year&&le===Y.month},J=(D,le,we)=>{var Y,Le;const Xe=ee();return Array.isArray(Xe)?w.value(le)===((Y=Xe[we])==null?void 0:Y.year)&&D===((Le=Xe[we])==null?void 0:Le.month):!1},P=(D,le)=>{if(o.value.enabled){const we=ee();if(Array.isArray(y.value)&&Array.isArray(we)){const Y=J(D,le,0)||J(D,le,1),Le=Xs(hs(Re()),D,w.value(le));return cd(y.value,V.value,Le)&&!Y}return!1}return!1},z=pe(()=>D=>bl(U.value,le=>{var we;const Y=ne(D,le.value),Le=Oo(le.value,hw(w.value(D),d.value.minDate),pw(w.value(D),d.value.maxDate))||e5(d.value.disabledDates,w.value(D)).includes(le.value)||((we=f.value.months)==null?void 0:we.includes(le.value)),Xe=P(le.value,D),ye=_w(u.value,le.value,w.value(D));return{active:Y,disabled:Le,isBetween:Xe,highlighted:ye}})),R=(D,le)=>Xs(hs(Re()),D,w.value(le)),te=(D,le)=>{const we=y.value?y.value:hs(new Date);y.value=Xs(we,D,w.value(le)),t("auto-apply"),t("update-flow-step")},be=(D,le)=>{const we=R(D,le);o.value.fixedEnd||o.value.fixedStart?y.value=Sw(we,y,t,o):y.value?x(we,y.value)&&(y.value=lm(y,R(D,le),t)):y.value=[R(D,le)],Hn().then(()=>{hd(y.value,t,e.autoApply,e.modelAuto)})},De=(D,le)=>{am(R(D,le),y,p.value.limit),t("auto-apply",!0)},He=(D,le)=>(E.value[le].month=D,ue(le,E.value[le].year,D),p.value.enabled?De(D,le):o.value.enabled?be(D,le):te(D,le)),K=(D,le)=>{A(D,le),ue(le,D,null)},ue=(D,le,we)=>{let Y=we;if(!Y&&Y!==0){const Le=ee();Y=Array.isArray(Le)?Le[D].month:Le.month}t("update-month-year",{instance:D,year:le,month:Y})};return{groupedMonths:z,groupedYears:F,year:w,isDisabled:H,defaultedMultiCalendars:n,defaultedAriaLabels:r,defaultedTransitions:s,defaultedConfig:a,showYearPicker:B,modelValue:y,presetDate:(D,le)=>{kw({value:D,modelValue:y,range:o.value.enabled,timezone:le?void 0:h.value.timezone}),t("auto-apply")},setHoverDate:(D,le)=>{V.value=R(D,le)},selectMonth:He,selectYear:K,toggleYearPicker:$,handleYearSelect:M,handleYear:S,getModelMonthYear:ee}},M5=fn({compatConfig:{MODE:3},__name:"MonthPicker",props:{...bs},emits:["update:internal-model-value","overlay-closed","reset-flow","range-start","range-end","auto-apply","update-month-year","update-flow-step","mount","invalid-fixed-range","overlay-toggle"],setup(e,{expose:t,emit:n}){const r=n,s=Bi(),a=$r(s,"yearMode"),o=e;It(()=>{o.shadow||r("mount",null)});const{groupedMonths:u,groupedYears:d,year:h,isDisabled:f,defaultedMultiCalendars:p,defaultedConfig:m,showYearPicker:y,modelValue:w,presetDate:_,setHoverDate:E,selectMonth:U,selectYear:V,toggleYearPicker:x,handleYearSelect:A,handleYear:F,getModelMonthYear:B}=O5(o,r);return t({getSidebarProps:()=>({modelValue:w,year:h,getModelMonthYear:B,selectMonth:U,selectYear:V,handleYear:F}),presetDate:_,toggleYearPicker:$=>x(0,$)}),($,M)=>(k(),it(fd,{"multi-calendars":Z(p).count,collapse:$.collapse,stretch:""},{default:Te(({instance:S})=>[$.$slots["top-extra"]?Ie($.$slots,"top-extra",{key:0,value:$.internalModelValue}):ie("",!0),$.$slots["month-year"]?Ie($.$slots,"month-year",wn(cn({key:1},{year:Z(h),months:Z(u)(S),years:Z(d)(S),selectMonth:Z(U),selectYear:Z(V),instance:S}))):(k(),it($o,{key:2,items:Z(u)(S),"arrow-navigation":$.arrowNavigation,"is-last":$.autoApply&&!Z(m).keepActionRow,"esc-close":$.escClose,height:Z(m).modeHeight,config:$.config,"no-overlay-focus":!!($.noOverlayFocus||$.textInput),"use-relative":"",type:"month",onSelected:H=>Z(U)(H,S),onHoverValue:H=>Z(E)(H,S)},Bn({header:Te(()=>[he(xw,cn($.$props,{items:Z(d)(S),instance:S,"show-year-picker":Z(y)[S],year:Z(h)(S),"is-disabled":H=>Z(f)(S,H),onHandleYear:H=>Z(F)(S,H),onYearSelect:H=>Z(A)(H,S),onToggleYearPicker:H=>Z(x)(S,H==null?void 0:H.flow,H==null?void 0:H.show)}),Bn({_:2},[Qe(Z(a),(H,se)=>({name:H,fn:Te(ee=>[Ie($.$slots,H,wn(qn(ee)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),_:2},[$.$slots["month-overlay-value"]?{name:"item",fn:Te(({item:H})=>[Ie($.$slots,"month-overlay-value",{text:H.text,value:H.value})]),key:"0"}:void 0]),1032,["items","arrow-navigation","is-last","esc-close","height","config","no-overlay-focus","onSelected","onHoverValue"]))]),_:3},8,["multi-calendars","collapse"]))}}),R5=(e,t)=>{const n=()=>{e.isTextInputDate&&(f.value=lt(Re(e.startDate)))},{modelValue:r}=Ho(e,t,n),s=fe(null),{defaultedHighlight:a,defaultedMultiDates:o,defaultedFilters:u,defaultedRange:d,propDates:h}=sn(e),f=fe();It(()=>{e.startDate&&(r.value&&e.focusStartDate||!r.value)&&(f.value=lt(Re(e.startDate)))});const p=_=>Array.isArray(r.value)?r.value.some(E=>lt(E)===_):r.value?lt(r.value)===_:!1,m=_=>d.value.enabled&&Array.isArray(r.value)?cd(r.value,s.value,w(_)):!1,y=pe(()=>bl(nm(e.yearRange,e.locale,e.reverseYears),_=>{const E=p(_.value),U=Oo(_.value,wl(h.value.minDate),wl(h.value.maxDate))||u.value.years.includes(_.value),V=m(_.value)&&!E,x=im(a.value,_.value);return{active:E,disabled:U,isBetween:V,highlighted:x}})),w=_=>Rs(hs(Co(new Date)),_);return{groupedYears:y,modelValue:r,focusYear:f,setHoverValue:_=>{s.value=Rs(hs(new Date),_)},selectYear:_=>{var E;if(t("update-month-year",{instance:0,year:_}),o.value.enabled)return r.value?Array.isArray(r.value)&&(((E=r.value)==null?void 0:E.map(U=>lt(U))).includes(_)?r.value=r.value.filter(U=>lt(U)!==_):r.value.push(Rs(hr(Re()),_))):r.value=[Rs(hr(Co(Re())),_)],t("auto-apply",!0);d.value.enabled?(r.value=lm(r,w(_),t),Hn().then(()=>{hd(r.value,t,e.autoApply,e.modelAuto)})):(r.value=w(_),t("auto-apply"))}}},D5=fn({compatConfig:{MODE:3},__name:"YearPicker",props:{...bs},emits:["update:internal-model-value","reset-flow","range-start","range-end","auto-apply","update-month-year"],setup(e,{expose:t,emit:n}){const r=n,s=e,{groupedYears:a,modelValue:o,focusYear:u,selectYear:d,setHoverValue:h}=R5(s,r),{defaultedConfig:f}=sn(s);return t({getSidebarProps:()=>({modelValue:o,selectYear:d})}),(p,m)=>(k(),I("div",null,[p.$slots["top-extra"]?Ie(p.$slots,"top-extra",{key:0,value:p.internalModelValue}):ie("",!0),p.$slots["month-year"]?Ie(p.$slots,"month-year",wn(cn({key:1},{years:Z(a),selectYear:Z(d)}))):(k(),it($o,{key:2,items:Z(a),"is-last":p.autoApply&&!Z(f).keepActionRow,height:Z(f).modeHeight,config:p.config,"no-overlay-focus":!!(p.noOverlayFocus||p.textInput),"focus-value":Z(u),type:"year","use-relative":"",onSelected:Z(d),onHoverValue:Z(h)},Bn({_:2},[p.$slots["year-overlay-value"]?{name:"item",fn:Te(({item:y})=>[Ie(p.$slots,"year-overlay-value",{text:y.text,value:y.value})]),key:"0"}:void 0]),1032,["items","is-last","height","config","no-overlay-focus","focus-value","onSelected","onHoverValue"]))]))}}),P5={key:0,class:"dp__time_input"},L5=["data-test","aria-label","onKeydown","onClick","onMousedown"],I5=v("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),N5=v("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),V5=["aria-label","disabled","data-test","onKeydown","onClick"],F5=["data-test","aria-label","onKeydown","onClick","onMousedown"],$5=v("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),B5=v("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),H5={key:0},U5=["aria-label"],j5=fn({compatConfig:{MODE:3},__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...bs},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","overlay-opened","am-pm-change"],setup(e,{expose:t,emit:n}){const r=n,s=e,{setTimePickerElements:a,setTimePickerBackRef:o}=Ui(),{defaultedAriaLabels:u,defaultedTransitions:d,defaultedFilters:h,defaultedConfig:f,defaultedRange:p}=sn(s),{transitionName:m,showTransition:y}=Bo(d),w=Hr({hours:!1,minutes:!1,seconds:!1}),_=fe("AM"),E=fe(null),U=fe([]),V=fe();It(()=>{r("mounted")});const x=W=>Wt(new Date,{hours:W.hours,minutes:W.minutes,seconds:s.enableSeconds?W.seconds:0,milliseconds:0}),A=pe(()=>W=>z(W,s[W])||B(W,s[W])),F=pe(()=>({hours:s.hours,minutes:s.minutes,seconds:s.seconds})),B=(W,T)=>p.value.enabled&&!p.value.disableTimeRangeValidation?!s.validateTime(W,T):!1,$=(W,T)=>{if(p.value.enabled&&!p.value.disableTimeRangeValidation){const N=T?+s[`${W}Increment`]:-+s[`${W}Increment`],G=s[W]+N;return!s.validateTime(W,G)}return!1},M=pe(()=>W=>!He(+s[W]+ +s[`${W}Increment`],W)||$(W,!0)),S=pe(()=>W=>!He(+s[W]-+s[`${W}Increment`],W)||$(W,!1)),H=(W,T)=>H1(Wt(Re(),W),T),se=(W,T)=>I$(Wt(Re(),W),T),ee=pe(()=>({dp__time_col:!0,dp__time_col_block:!s.timePickerInline,dp__time_col_reg_block:!s.enableSeconds&&s.is24&&!s.timePickerInline,dp__time_col_reg_inline:!s.enableSeconds&&s.is24&&s.timePickerInline,dp__time_col_reg_with_button:!s.enableSeconds&&!s.is24,dp__time_col_sec:s.enableSeconds&&s.is24,dp__time_col_sec_with_button:s.enableSeconds&&!s.is24})),ne=pe(()=>{const W=[{type:"hours"}];return s.enableMinutes&&W.push({type:"",separator:!0},{type:"minutes"}),s.enableSeconds&&W.push({type:"",separator:!0},{type:"seconds"}),W}),J=pe(()=>ne.value.filter(W=>!W.separator)),P=pe(()=>W=>{if(W==="hours"){const T=Y(+s.hours);return{text:T<10?`0${T}`:`${T}`,value:T}}return{text:s[W]<10?`0${s[W]}`:`${s[W]}`,value:s[W]}}),z=(W,T)=>{var N;if(!s.disabledTimesConfig)return!1;const G=s.disabledTimesConfig(s.order,W==="hours"?T:void 0);return G[W]?!!((N=G[W])!=null&&N.includes(T)):!0},R=(W,T)=>T!=="hours"||_.value==="AM"?W:W+12,te=W=>{const T=s.is24?24:12,N=W==="hours"?T:60,G=+s[`${W}GridIncrement`],Q=W==="hours"&&!s.is24?G:0,me=[];for(let j=Q;j({active:!1,disabled:h.value.times[W].includes(j.value)||!He(j.value,W)||z(W,j.value)||B(W,j.value)}))},be=W=>W>=0?W:59,De=W=>W>=0?W:23,He=(W,T)=>{const N=s.minTime?x(Xf(s.minTime)):null,G=s.maxTime?x(Xf(s.maxTime)):null,Q=x(Xf(F.value,T,T==="minutes"||T==="seconds"?be(W):De(W)));return N&&G?(Eo(Q,G)||el(Q,G))&&(yl(Q,N)||el(Q,N)):N?yl(Q,N)||el(Q,N):G?Eo(Q,G)||el(Q,G):!0},K=W=>s[`no${W[0].toUpperCase()+W.slice(1)}Overlay`],ue=W=>{K(W)||(w[W]=!w[W],w[W]?r("overlay-opened",W):r("overlay-closed",W))},D=W=>W==="hours"?ri:W==="minutes"?Vi:vl,le=()=>{V.value&&clearTimeout(V.value)},we=(W,T=!0,N)=>{const G=T?H:se,Q=T?+s[`${W}Increment`]:-+s[`${W}Increment`];He(+s[W]+Q,W)&&r(`update:${W}`,D(W)(G({[W]:+s[W]},{[W]:+s[`${W}Increment`]}))),!(N!=null&&N.keyboard)&&f.value.timeArrowHoldThreshold&&(V.value=setTimeout(()=>{we(W,T)},f.value.timeArrowHoldThreshold))},Y=W=>s.is24?W:(W>=12?_.value="PM":_.value="AM",H$(W)),Le=()=>{_.value==="PM"?(_.value="AM",r("update:hours",s.hours-12)):(_.value="PM",r("update:hours",s.hours+12)),r("am-pm-change",_.value)},Xe=W=>{w[W]=!0},ye=(W,T,N)=>{if(W&&s.arrowNavigation){Array.isArray(U.value[T])?U.value[T][N]=W:U.value[T]=[W];const G=U.value.reduce((Q,me)=>me.map((j,de)=>[...Q[de]||[],me[de]]),[]);o(s.closeTimePickerBtn),E.value&&(G[1]=G[1].concat(E.value)),a(G,s.order)}},et=(W,T)=>(ue(W),r(`update:${W}`,T));return t({openChildCmp:Xe}),(W,T)=>{var N;return W.disabled?ie("",!0):(k(),I("div",P5,[(k(!0),I(Ne,null,Qe(ne.value,(G,Q)=>{var me,j,de;return k(),I("div",{key:Q,class:$e(ee.value)},[G.separator?(k(),I(Ne,{key:0},[mt(" : ")],64)):(k(),I(Ne,{key:1},[v("button",{ref_for:!0,ref:ve=>ye(ve,Q,0),type:"button",class:$e({dp__btn:!0,dp__inc_dec_button:!W.timePickerInline,dp__inc_dec_button_inline:W.timePickerInline,dp__tp_inline_btn_top:W.timePickerInline,dp__inc_dec_button_disabled:M.value(G.type)}),"data-test":`${G.type}-time-inc-btn-${s.order}`,"aria-label":(me=Z(u))==null?void 0:me.incrementValue(G.type),tabindex:"0",onKeydown:ve=>Z(Sr)(ve,()=>we(G.type,!0,{keyboard:!0}),!0),onClick:ve=>Z(f).timeArrowHoldThreshold?void 0:we(G.type,!0),onMousedown:ve=>Z(f).timeArrowHoldThreshold?we(G.type,!0):void 0,onMouseup:le},[s.timePickerInline?(k(),I(Ne,{key:1},[W.$slots["tp-inline-arrow-up"]?Ie(W.$slots,"tp-inline-arrow-up",{key:0}):(k(),I(Ne,{key:1},[I5,N5],64))],64)):(k(),I(Ne,{key:0},[W.$slots["arrow-up"]?Ie(W.$slots,"arrow-up",{key:0}):ie("",!0),W.$slots["arrow-up"]?ie("",!0):(k(),it(Z(Qp),{key:1}))],64))],42,L5),v("button",{ref_for:!0,ref:ve=>ye(ve,Q,1),type:"button","aria-label":(j=Z(u))==null?void 0:j.openTpOverlay(G.type),class:$e({dp__time_display:!0,dp__time_display_block:!W.timePickerInline,dp__time_display_inline:W.timePickerInline,"dp--time-invalid":A.value(G.type),"dp--time-overlay-btn":!A.value(G.type)}),disabled:K(G.type),tabindex:"0","data-test":`${G.type}-toggle-overlay-btn-${s.order}`,onKeydown:ve=>Z(Sr)(ve,()=>ue(G.type),!0),onClick:ve=>ue(G.type)},[W.$slots[G.type]?Ie(W.$slots,G.type,{key:0,text:P.value(G.type).text,value:P.value(G.type).value}):ie("",!0),W.$slots[G.type]?ie("",!0):(k(),I(Ne,{key:1},[mt(re(P.value(G.type).text),1)],64))],42,V5),v("button",{ref_for:!0,ref:ve=>ye(ve,Q,2),type:"button",class:$e({dp__btn:!0,dp__inc_dec_button:!W.timePickerInline,dp__inc_dec_button_inline:W.timePickerInline,dp__tp_inline_btn_bottom:W.timePickerInline,dp__inc_dec_button_disabled:S.value(G.type)}),"data-test":`${G.type}-time-dec-btn-${s.order}`,"aria-label":(de=Z(u))==null?void 0:de.decrementValue(G.type),tabindex:"0",onKeydown:ve=>Z(Sr)(ve,()=>we(G.type,!1,{keyboard:!0}),!0),onClick:ve=>Z(f).timeArrowHoldThreshold?void 0:we(G.type,!1),onMousedown:ve=>Z(f).timeArrowHoldThreshold?we(G.type,!1):void 0,onMouseup:le},[s.timePickerInline?(k(),I(Ne,{key:1},[W.$slots["tp-inline-arrow-down"]?Ie(W.$slots,"tp-inline-arrow-down",{key:0}):(k(),I(Ne,{key:1},[$5,B5],64))],64)):(k(),I(Ne,{key:0},[W.$slots["arrow-down"]?Ie(W.$slots,"arrow-down",{key:0}):ie("",!0),W.$slots["arrow-down"]?ie("",!0):(k(),it(Z(em),{key:1}))],64))],42,F5)],64))],2)}),128)),W.is24?ie("",!0):(k(),I("div",H5,[W.$slots["am-pm-button"]?Ie(W.$slots,"am-pm-button",{key:0,toggle:Le,value:_.value}):ie("",!0),W.$slots["am-pm-button"]?ie("",!0):(k(),I("button",{key:1,ref_key:"amPmButton",ref:E,type:"button",class:"dp__pm_am_button",role:"button","aria-label":(N=Z(u))==null?void 0:N.amPmButton,tabindex:"0",onClick:Le,onKeydown:T[0]||(T[0]=G=>Z(Sr)(G,()=>Le(),!0))},re(_.value),41,U5))])),(k(!0),I(Ne,null,Qe(J.value,(G,Q)=>(k(),it(vs,{key:Q,name:Z(m)(w[G.type]),css:Z(y)},{default:Te(()=>[w[G.type]?(k(),it($o,{key:0,items:te(G.type),"is-last":W.autoApply&&!Z(f).keepActionRow,"esc-close":W.escClose,type:G.type,"text-input":W.textInput,config:W.config,"arrow-navigation":W.arrowNavigation,"aria-labels":W.ariaLabels,onSelected:me=>et(G.type,me),onToggle:me=>ue(G.type),onResetFlow:T[1]||(T[1]=me=>W.$emit("reset-flow"))},Bn({"button-icon":Te(()=>[W.$slots["clock-icon"]?Ie(W.$slots,"clock-icon",{key:0}):ie("",!0),W.$slots["clock-icon"]?ie("",!0):(k(),it(Al(W.timePickerInline?Z(Cl):Z(Xp)),{key:1}))]),_:2},[W.$slots[`${G.type}-overlay-value`]?{name:"item",fn:Te(({item:me})=>[Ie(W.$slots,`${G.type}-overlay-value`,{text:me.text,value:me.value})]),key:"0"}:void 0,W.$slots[`${G.type}-overlay-header`]?{name:"header",fn:Te(()=>[Ie(W.$slots,`${G.type}-overlay-header`,{toggle:()=>ue(G.type)})]),key:"1"}:void 0]),1032,["items","is-last","esc-close","type","text-input","config","arrow-navigation","aria-labels","onSelected","onToggle"])):ie("",!0)]),_:2},1032,["name","css"]))),128))]))}}}),W5={class:"dp--tp-wrap"},q5=["aria-label","tabindex"],Y5=["tabindex"],z5=["aria-label"],Aw=fn({compatConfig:{MODE:3},__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...bs},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:n}){const r=n,s=e,{buildMatrix:a,setTimePicker:o}=Ui(),u=Bi(),{defaultedTransitions:d,defaultedAriaLabels:h,defaultedTextInput:f,defaultedConfig:p,defaultedRange:m}=sn(s),{transitionName:y,showTransition:w}=Bo(d),{hideNavigationButtons:_}=pd(),E=fe(null),U=fe(null),V=fe([]),x=fe(null);It(()=>{r("mount"),!s.timePicker&&s.arrowNavigation?a([Ln(E.value)],"time"):o(!0,s.timePicker)});const A=pe(()=>m.value.enabled&&s.modelAuto?cw(s.internalModelValue):!0),F=fe(!1),B=R=>({hours:Array.isArray(s.hours)?s.hours[R]:s.hours,minutes:Array.isArray(s.minutes)?s.minutes[R]:s.minutes,seconds:Array.isArray(s.seconds)?s.seconds[R]:s.seconds}),$=pe(()=>{const R=[];if(m.value.enabled)for(let te=0;te<2;te++)R.push(B(te));else R.push(B(0));return R}),M=(R,te=!1,be="")=>{te||r("reset-flow"),F.value=R,r(R?"overlay-opened":"overlay-closed",Xn.time),s.arrowNavigation&&o(R),Hn(()=>{be!==""&&V.value[0]&&V.value[0].openChildCmp(be)})},S=pe(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:s.autoApply&&!p.value.keepActionRow})),H=$r(u,"timePicker"),se=(R,te,be)=>m.value.enabled?te===0?[R,$.value[1][be]]:[$.value[0][be],R]:R,ee=R=>{r("update:hours",R)},ne=R=>{r("update:minutes",R)},J=R=>{r("update:seconds",R)},P=()=>{if(x.value&&!f.value.enabled&&!s.noOverlayFocus){const R=dw(x.value);R&&R.focus({preventScroll:!0})}},z=R=>{r("overlay-closed",R)};return t({toggleTimePicker:M}),(R,te)=>{var be;return k(),I("div",W5,[!R.timePicker&&!R.timePickerInline?Dn((k(),I("button",{key:0,ref_key:"openTimePickerBtn",ref:E,type:"button",class:$e(S.value),"aria-label":(be=Z(h))==null?void 0:be.openTimePicker,tabindex:R.noOverlayFocus?void 0:0,"data-test":"open-time-picker-btn",onKeydown:te[0]||(te[0]=De=>Z(Sr)(De,()=>M(!0))),onClick:te[1]||(te[1]=De=>M(!0))},[R.$slots["clock-icon"]?Ie(R.$slots,"clock-icon",{key:0}):ie("",!0),R.$slots["clock-icon"]?ie("",!0):(k(),it(Z(Xp),{key:1}))],42,q5)),[[Vr,!Z(_)(R.hideNavigation,"time")]]):ie("",!0),he(vs,{name:Z(y)(F.value),css:Z(w)&&!R.timePickerInline},{default:Te(()=>{var De;return[F.value||R.timePicker||R.timePickerInline?(k(),I("div",{key:0,ref_key:"overlayRef",ref:x,class:$e({dp__overlay:!R.timePickerInline,"dp--overlay-absolute":!s.timePicker&&!R.timePickerInline,"dp--overlay-relative":s.timePicker}),style:bn(R.timePicker?{height:`${Z(p).modeHeight}px`}:void 0),tabindex:R.timePickerInline?void 0:0},[v("div",{class:$e(R.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[R.$slots["time-picker-overlay"]?Ie(R.$slots,"time-picker-overlay",{key:0,hours:e.hours,minutes:e.minutes,seconds:e.seconds,setHours:ee,setMinutes:ne,setSeconds:J}):ie("",!0),R.$slots["time-picker-overlay"]?ie("",!0):(k(),I("div",{key:1,class:$e(R.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(k(!0),I(Ne,null,Qe($.value,(He,K)=>Dn((k(),it(j5,cn({key:K,ref_for:!0},{...R.$props,order:K,hours:He.hours,minutes:He.minutes,seconds:He.seconds,closeTimePickerBtn:U.value,disabledTimesConfig:e.disabledTimesConfig,disabled:K===0?R.fixedStart:R.fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:V,"validate-time":(ue,D)=>e.validateTime(ue,se(D,K,ue)),"onUpdate:hours":ue=>ee(se(ue,K,"hours")),"onUpdate:minutes":ue=>ne(se(ue,K,"minutes")),"onUpdate:seconds":ue=>J(se(ue,K,"seconds")),onMounted:P,onOverlayClosed:z,onOverlayOpened:te[2]||(te[2]=ue=>R.$emit("overlay-opened",ue)),onAmPmChange:te[3]||(te[3]=ue=>R.$emit("am-pm-change",ue))}),Bn({_:2},[Qe(Z(H),(ue,D)=>({name:ue,fn:Te(le=>[Ie(R.$slots,ue,cn({ref_for:!0},le))])}))]),1040,["validate-time","onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[Vr,K===0?!0:A.value]])),128))],2)),!R.timePicker&&!R.timePickerInline?Dn((k(),I("button",{key:2,ref_key:"closeTimePickerBtn",ref:U,type:"button",class:$e(S.value),"aria-label":(De=Z(h))==null?void 0:De.closeTimePicker,tabindex:"0",onKeydown:te[4]||(te[4]=He=>Z(Sr)(He,()=>M(!1))),onClick:te[5]||(te[5]=He=>M(!1))},[R.$slots["calendar-icon"]?Ie(R.$slots,"calendar-icon",{key:0}):ie("",!0),R.$slots["calendar-icon"]?ie("",!0):(k(),it(Z(Cl),{key:1}))],42,z5)),[[Vr,!Z(_)(R.hideNavigation,"time")]]):ie("",!0)],2)],14,Y5)):ie("",!0)]}),_:3},8,["name","css"])])}}}),Cw=(e,t,n,r)=>{const{defaultedRange:s}=sn(e),a=(x,A)=>Array.isArray(t[x])?t[x][A]:t[x],o=x=>e.enableSeconds?Array.isArray(t.seconds)?t.seconds[x]:t.seconds:0,u=(x,A)=>x?A!==void 0?Di(x,a("hours",A),a("minutes",A),o(A)):Di(x,t.hours,t.minutes,o()):aw(Re(),o(A)),d=(x,A)=>{t[x]=A},h=pe(()=>e.modelAuto&&s.value.enabled?Array.isArray(n.value)?n.value.length>1:!1:s.value.enabled),f=(x,A)=>{const F=Object.fromEntries(Object.keys(t).map(B=>B===x?[B,A]:[B,t[B]].slice()));if(h.value&&!s.value.disableTimeRangeValidation){const B=M=>n.value?Di(n.value[M],F.hours[M],F.minutes[M],F.seconds[M]):null,$=M=>iw(n.value[M],0);return!(St(B(0),B(1))&&(yl(B(0),$(1))||Eo(B(1),$(0))))}return!0},p=(x,A)=>{f(x,A)&&(d(x,A),r&&r())},m=x=>{p("hours",x)},y=x=>{p("minutes",x)},w=x=>{p("seconds",x)},_=(x,A,F,B)=>{A&&m(x),!A&&!F&&y(x),F&&w(x),n.value&&B(n.value)},E=x=>{if(x){const A=Array.isArray(x),F=A?[+x[0].hours,+x[1].hours]:+x.hours,B=A?[+x[0].minutes,+x[1].minutes]:+x.minutes,$=A?[+x[0].seconds,+x[1].seconds]:+x.seconds;d("hours",F),d("minutes",B),e.enableSeconds&&d("seconds",$)}},U=(x,A)=>{const F={hours:Array.isArray(t.hours)?t.hours[x]:t.hours,disabledArr:[]};return(A||A===0)&&(F.hours=A),Array.isArray(e.disabledTimes)&&(F.disabledArr=s.value.enabled&&Array.isArray(e.disabledTimes[x])?e.disabledTimes[x]:e.disabledTimes),F},V=pe(()=>(x,A)=>{var F;if(Array.isArray(e.disabledTimes)){const{disabledArr:B,hours:$}=U(x,A),M=B.filter(S=>+S.hours===$);return((F=M[0])==null?void 0:F.minutes)==="*"?{hours:[$],minutes:void 0,seconds:void 0}:{hours:[],minutes:(M==null?void 0:M.map(S=>+S.minutes))??[],seconds:(M==null?void 0:M.map(S=>S.seconds?+S.seconds:void 0))??[]}}return{hours:[],minutes:[],seconds:[]}});return{setTime:d,updateHours:m,updateMinutes:y,updateSeconds:w,getSetDateTime:u,updateTimeValues:_,getSecondsValue:o,assignStartTime:E,validateTime:f,disabledTimesConfig:V}},K5=(e,t)=>{const n=()=>{e.isTextInputDate&&A()},{modelValue:r,time:s}=Ho(e,t,n),{defaultedStartTime:a,defaultedRange:o,defaultedTz:u}=sn(e),{updateTimeValues:d,getSetDateTime:h,setTime:f,assignStartTime:p,disabledTimesConfig:m,validateTime:y}=Cw(e,s,r,w);function w(){t("update-flow-step")}const _=B=>{const{hours:$,minutes:M,seconds:S}=B;return{hours:+$,minutes:+M,seconds:S?+S:0}},E=()=>{if(e.startTime){if(Array.isArray(e.startTime)){const $=_(e.startTime[0]),M=_(e.startTime[1]);return[Wt(Re(),$),Wt(Re(),M)]}const B=_(e.startTime);return Wt(Re(),B)}return o.value.enabled?[null,null]:null},U=()=>{if(o.value.enabled){const[B,$]=E();r.value=[Ar(h(B,0),u.value.timezone),Ar(h($,1),u.value.timezone)]}else r.value=Ar(h(E()),u.value.timezone)},V=B=>Array.isArray(B)?[ga(Re(B[0])),ga(Re(B[1]))]:[ga(B??Re())],x=(B,$,M)=>{f("hours",B),f("minutes",$),f("seconds",e.enableSeconds?M:0)},A=()=>{const[B,$]=V(r.value);return o.value.enabled?x([B.hours,$.hours],[B.minutes,$.minutes],[B.seconds,$.seconds]):x(B.hours,B.minutes,B.seconds)};It(()=>{if(!e.shadow)return p(a.value),r.value?A():U()});const F=()=>{Array.isArray(r.value)?r.value=r.value.map((B,$)=>B&&h(B,$)):r.value=h(r.value),t("time-update")};return{modelValue:r,time:s,disabledTimesConfig:m,updateTime:(B,$=!0,M=!1)=>{d(B,$,M,F)},validateTime:y}},G5=fn({compatConfig:{MODE:3},__name:"TimePickerSolo",props:{...bs},emits:["update:internal-model-value","time-update","am-pm-change","mount","reset-flow","update-flow-step","overlay-toggle"],setup(e,{expose:t,emit:n}){const r=n,s=e,a=Bi(),o=$r(a,"timePicker"),u=fe(null),{time:d,modelValue:h,disabledTimesConfig:f,updateTime:p,validateTime:m}=K5(s,r);return It(()=>{s.shadow||r("mount",null)}),t({getSidebarProps:()=>({modelValue:h,time:d,updateTime:p}),toggleTimePicker:(y,w=!1,_="")=>{var E;(E=u.value)==null||E.toggleTimePicker(y,w,_)}}),(y,w)=>(k(),it(fd,{"multi-calendars":0,stretch:""},{default:Te(()=>[he(Aw,cn({ref_key:"tpRef",ref:u},y.$props,{hours:Z(d).hours,minutes:Z(d).minutes,seconds:Z(d).seconds,"internal-model-value":y.internalModelValue,"disabled-times-config":Z(f),"validate-time":Z(m),"onUpdate:hours":w[0]||(w[0]=_=>Z(p)(_)),"onUpdate:minutes":w[1]||(w[1]=_=>Z(p)(_,!1)),"onUpdate:seconds":w[2]||(w[2]=_=>Z(p)(_,!1,!0)),onAmPmChange:w[3]||(w[3]=_=>y.$emit("am-pm-change",_)),onResetFlow:w[4]||(w[4]=_=>y.$emit("reset-flow")),onOverlayClosed:w[5]||(w[5]=_=>y.$emit("overlay-toggle",{open:!1,overlay:_})),onOverlayOpened:w[6]||(w[6]=_=>y.$emit("overlay-toggle",{open:!0,overlay:_}))}),Bn({_:2},[Qe(Z(o),(_,E)=>({name:_,fn:Te(U=>[Ie(y.$slots,_,wn(qn(U)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"])]),_:3}))}}),J5={class:"dp--header-wrap"},Z5={key:0,class:"dp__month_year_wrap"},X5={key:0},Q5={class:"dp__month_year_wrap"},eB=["aria-label","data-test","onClick","onKeydown"],tB=fn({compatConfig:{MODE:3},__name:"DpHeader",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},...bs},emits:["update-month-year","mount","reset-flow","overlay-closed","overlay-opened"],setup(e,{expose:t,emit:n}){const r=n,s=e,{defaultedTransitions:a,defaultedAriaLabels:o,defaultedMultiCalendars:u,defaultedFilters:d,defaultedConfig:h,defaultedHighlight:f,propDates:p,defaultedUI:m}=sn(s),{transitionName:y,showTransition:w}=Bo(a),{buildMatrix:_}=Ui(),{handleMonthYearChange:E,isDisabled:U,updateMonthYear:V}=_5(s,r),{showLeftIcon:x,showRightIcon:A}=pd(),F=fe(!1),B=fe(!1),$=fe([null,null,null,null]);It(()=>{r("mount")});const M=K=>({get:()=>s[K],set:ue=>{const D=K===cs.month?cs.year:cs.month;r("update-month-year",{[K]:ue,[D]:s[D]}),K===cs.month?z(!0):R(!0)}}),S=pe(M(cs.month)),H=pe(M(cs.year)),se=pe(()=>K=>({month:s.month,year:s.year,items:K===cs.month?s.months:s.years,instance:s.instance,updateMonthYear:V,toggle:K===cs.month?z:R})),ee=pe(()=>s.months.find(ue=>ue.value===s.month)||{text:"",value:0}),ne=pe(()=>bl(s.months,K=>{const ue=s.month===K.value,D=Oo(K.value,hw(s.year,p.value.minDate),pw(s.year,p.value.maxDate))||d.value.months.includes(K.value),le=_w(f.value,K.value,s.year);return{active:ue,disabled:D,highlighted:le}})),J=pe(()=>bl(s.years,K=>{const ue=s.year===K.value,D=Oo(K.value,wl(p.value.minDate),wl(p.value.maxDate))||d.value.years.includes(K.value),le=im(f.value,K.value);return{active:ue,disabled:D,highlighted:le}})),P=(K,ue,D)=>{D!==void 0?K.value=D:K.value=!K.value,K.value?r("overlay-opened",ue):r("overlay-closed",ue)},z=(K=!1,ue)=>{te(K),P(F,Xn.month,ue)},R=(K=!1,ue)=>{te(K),P(B,Xn.year,ue)},te=K=>{K||r("reset-flow")},be=(K,ue)=>{s.arrowNavigation&&($.value[ue]=Ln(K),_($.value,"monthYear"))},De=pe(()=>{var K,ue;return[{type:cs.month,index:1,toggle:z,modelValue:S.value,updateModelValue:D=>S.value=D,text:ee.value.text,showSelectionGrid:F.value,items:ne.value,ariaLabel:(K=o.value)==null?void 0:K.openMonthsOverlay},{type:cs.year,index:2,toggle:R,modelValue:H.value,updateModelValue:D=>H.value=D,text:fw(s.year,s.locale),showSelectionGrid:B.value,items:J.value,ariaLabel:(ue=o.value)==null?void 0:ue.openYearsOverlay}]}),He=pe(()=>s.disableYearSelect?[De.value[0]]:s.yearFirst?[...De.value].reverse():De.value);return t({toggleMonthPicker:z,toggleYearPicker:R,handleMonthYearChange:E}),(K,ue)=>{var D,le,we,Y,Le,Xe;return k(),I("div",J5,[K.$slots["month-year"]?(k(),I("div",Z5,[Ie(K.$slots,"month-year",wn(qn({month:e.month,year:e.year,months:e.months,years:e.years,updateMonthYear:Z(V),handleMonthYearChange:Z(E),instance:e.instance})))])):(k(),I(Ne,{key:1},[K.$slots["top-extra"]?(k(),I("div",X5,[Ie(K.$slots,"top-extra",{value:K.internalModelValue})])):ie("",!0),v("div",Q5,[Z(x)(Z(u),e.instance)&&!K.vertical?(k(),it(uo,{key:0,"aria-label":(D=Z(o))==null?void 0:D.prevMonth,disabled:Z(U)(!1),class:$e((le=Z(m))==null?void 0:le.navBtnPrev),onActivate:ue[0]||(ue[0]=ye=>Z(E)(!1,!0)),onSetRef:ue[1]||(ue[1]=ye=>be(ye,0))},{default:Te(()=>[K.$slots["arrow-left"]?Ie(K.$slots,"arrow-left",{key:0}):ie("",!0),K.$slots["arrow-left"]?ie("",!0):(k(),it(Z(Jp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):ie("",!0),v("div",{class:$e(["dp__month_year_wrap",{dp__year_disable_select:K.disableYearSelect}])},[(k(!0),I(Ne,null,Qe(He.value,(ye,et)=>(k(),I(Ne,{key:ye.type},[v("button",{ref_for:!0,ref:W=>be(W,et+1),type:"button",class:"dp__btn dp__month_year_select",tabindex:"0","aria-label":ye.ariaLabel,"data-test":`${ye.type}-toggle-overlay-${e.instance}`,onClick:ye.toggle,onKeydown:W=>Z(Sr)(W,()=>ye.toggle(),!0)},[K.$slots[ye.type]?Ie(K.$slots,ye.type,{key:0,text:ye.text,value:s[ye.type]}):ie("",!0),K.$slots[ye.type]?ie("",!0):(k(),I(Ne,{key:1},[mt(re(ye.text),1)],64))],40,eB),he(vs,{name:Z(y)(ye.showSelectionGrid),css:Z(w)},{default:Te(()=>[ye.showSelectionGrid?(k(),it($o,{key:0,items:ye.items,"arrow-navigation":K.arrowNavigation,"hide-navigation":K.hideNavigation,"is-last":K.autoApply&&!Z(h).keepActionRow,"skip-button-ref":!1,config:K.config,type:ye.type,"header-refs":[],"esc-close":K.escClose,"menu-wrap-ref":K.menuWrapRef,"text-input":K.textInput,"aria-labels":K.ariaLabels,onSelected:ye.updateModelValue,onToggle:ye.toggle},Bn({"button-icon":Te(()=>[K.$slots["calendar-icon"]?Ie(K.$slots,"calendar-icon",{key:0}):ie("",!0),K.$slots["calendar-icon"]?ie("",!0):(k(),it(Z(Cl),{key:1}))]),_:2},[K.$slots[`${ye.type}-overlay-value`]?{name:"item",fn:Te(({item:W})=>[Ie(K.$slots,`${ye.type}-overlay-value`,{text:W.text,value:W.value})]),key:"0"}:void 0,K.$slots[`${ye.type}-overlay`]?{name:"overlay",fn:Te(()=>[Ie(K.$slots,`${ye.type}-overlay`,cn({ref_for:!0},se.value(ye.type)))]),key:"1"}:void 0,K.$slots[`${ye.type}-overlay-header`]?{name:"header",fn:Te(()=>[Ie(K.$slots,`${ye.type}-overlay-header`,{toggle:ye.toggle})]),key:"2"}:void 0]),1032,["items","arrow-navigation","hide-navigation","is-last","config","type","esc-close","menu-wrap-ref","text-input","aria-labels","onSelected","onToggle"])):ie("",!0)]),_:2},1032,["name","css"])],64))),128))],2),Z(x)(Z(u),e.instance)&&K.vertical?(k(),it(uo,{key:1,"aria-label":(we=Z(o))==null?void 0:we.prevMonth,disabled:Z(U)(!1),class:$e((Y=Z(m))==null?void 0:Y.navBtnPrev),onActivate:ue[2]||(ue[2]=ye=>Z(E)(!1,!0))},{default:Te(()=>[K.$slots["arrow-up"]?Ie(K.$slots,"arrow-up",{key:0}):ie("",!0),K.$slots["arrow-up"]?ie("",!0):(k(),it(Z(Qp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):ie("",!0),Z(A)(Z(u),e.instance)?(k(),it(uo,{key:2,ref:"rightIcon",disabled:Z(U)(!0),"aria-label":(Le=Z(o))==null?void 0:Le.nextMonth,class:$e((Xe=Z(m))==null?void 0:Xe.navBtnNext),onActivate:ue[3]||(ue[3]=ye=>Z(E)(!0,!0)),onSetRef:ue[4]||(ue[4]=ye=>be(ye,K.disableYearSelect?2:3))},{default:Te(()=>[K.$slots[K.vertical?"arrow-down":"arrow-right"]?Ie(K.$slots,K.vertical?"arrow-down":"arrow-right",{key:0}):ie("",!0),K.$slots[K.vertical?"arrow-down":"arrow-right"]?ie("",!0):(k(),it(Al(K.vertical?Z(em):Z(Zp)),{key:1}))]),_:3},8,["disabled","aria-label","class"])):ie("",!0)])],64))])}}}),nB=["aria-label"],rB={class:"dp__calendar_header",role:"row"},sB={key:0,class:"dp__calendar_header_item",role:"gridcell"},iB=["aria-label"],aB=v("div",{class:"dp__calendar_header_separator"},null,-1),lB=["aria-label"],oB={key:0,role:"gridcell",class:"dp__calendar_item dp__week_num"},uB={class:"dp__cell_inner"},cB=["id","aria-selected","aria-disabled","aria-label","data-test","onClick","onKeydown","onMouseenter","onMouseleave","onMousedown"],dB=fn({compatConfig:{MODE:3},__name:"DpCalendar",props:{mappedDates:{type:Array,default:()=>[]},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},...bs},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(e,{expose:t,emit:n}){const r=n,s=e,{buildMultiLevelMatrix:a}=Ui(),{defaultedTransitions:o,defaultedConfig:u,defaultedAriaLabels:d,defaultedMultiCalendars:h,defaultedWeekNumbers:f,defaultedMultiDates:p,defaultedUI:m}=sn(s),y=fe(null),w=fe({bottom:"",left:"",transform:""}),_=fe([]),E=fe(null),U=fe(!0),V=fe(""),x=fe({startX:0,endX:0,startY:0,endY:0}),A=fe([]),F=fe({left:"50%"}),B=fe(!1),$=pe(()=>s.calendar?s.calendar(s.mappedDates):s.mappedDates),M=pe(()=>s.dayNames?Array.isArray(s.dayNames)?s.dayNames:s.dayNames(s.locale,+s.weekStart):B$(s.formatLocale,s.locale,+s.weekStart));It(()=>{r("mount",{cmp:"calendar",refs:_}),u.value.noSwipe||E.value&&(E.value.addEventListener("touchstart",be,{passive:!1}),E.value.addEventListener("touchend",De,{passive:!1}),E.value.addEventListener("touchmove",He,{passive:!1})),s.monthChangeOnScroll&&E.value&&E.value.addEventListener("wheel",D,{passive:!1})});const S=ye=>ye?s.vertical?"vNext":"next":s.vertical?"vPrevious":"previous",H=(ye,et)=>{if(s.transitions){const W=hr(Xs(Re(),s.month,s.year));V.value=_n(hr(Xs(Re(),ye,et)),W)?o.value[S(!0)]:o.value[S(!1)],U.value=!1,Hn(()=>{U.value=!0})}},se=pe(()=>({[s.calendarClassName]:!!s.calendarClassName,...m.value.calendar??{}})),ee=pe(()=>ye=>{const et=U$(ye);return{dp__marker_dot:et.type==="dot",dp__marker_line:et.type==="line"}}),ne=pe(()=>ye=>St(ye,y.value)),J=pe(()=>({dp__calendar:!0,dp__calendar_next:h.value.count>0&&s.instance!==0})),P=pe(()=>ye=>s.hideOffsetDates?ye.current:!0),z=async(ye,et,W)=>{const T=Ln(_.value[et][W]);if(T){const{width:N,height:G}=T.getBoundingClientRect();y.value=ye.value;let Q={left:`${N/2}px`},me=-50;if(await Hn(),A.value[0]){const{left:j,width:de}=A.value[0].getBoundingClientRect();j<0&&(Q={left:"0"},me=0,F.value.left=`${N/2}px`),window.innerWidth{var T,N;if(B.value&&p.value.enabled&&p.value.dragSelect)return r("select-date",ye);r("set-hover-date",ye),(N=(T=ye.marker)==null?void 0:T.tooltip)!=null&&N.length&&await z(ye,et,W)},te=ye=>{y.value&&(y.value=null,w.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),r("tooltip-close",ye.marker))},be=ye=>{x.value.startX=ye.changedTouches[0].screenX,x.value.startY=ye.changedTouches[0].screenY},De=ye=>{x.value.endX=ye.changedTouches[0].screenX,x.value.endY=ye.changedTouches[0].screenY,K()},He=ye=>{s.vertical&&!s.inline&&ye.preventDefault()},K=()=>{const ye=s.vertical?"Y":"X";Math.abs(x.value[`start${ye}`]-x.value[`end${ye}`])>10&&r("handle-swipe",x.value[`start${ye}`]>x.value[`end${ye}`]?"right":"left")},ue=(ye,et,W)=>{ye&&(Array.isArray(_.value[et])?_.value[et][W]=ye:_.value[et]=[ye]),s.arrowNavigation&&a(_.value,"calendar")},D=ye=>{s.monthChangeOnScroll&&(ye.preventDefault(),r("handle-scroll",ye))},le=ye=>f.value.type==="local"?zp(ye.value,{weekStartsOn:+s.weekStart}):f.value.type==="iso"?qp(ye.value):typeof f.value.type=="function"?f.value.type(ye.value):"",we=ye=>{const et=ye[0];return f.value.hideOnOffsetDates?ye.some(W=>W.current)?le(et):"":le(et)},Y=(ye,et)=>{p.value.enabled||(Ri(ye,u.value),r("select-date",et))},Le=ye=>{Ri(ye,u.value)},Xe=ye=>{p.value.enabled&&p.value.dragSelect?(B.value=!0,r("select-date",ye)):p.value.enabled&&r("select-date",ye)};return t({triggerTransition:H}),(ye,et)=>{var W;return k(),I("div",{class:$e(J.value)},[v("div",{ref_key:"calendarWrapRef",ref:E,role:"grid",class:$e(se.value),"aria-label":(W=Z(d))==null?void 0:W.calendarWrap},[v("div",rB,[ye.weekNumbers?(k(),I("div",sB,re(ye.weekNumName),1)):ie("",!0),(k(!0),I(Ne,null,Qe(M.value,(T,N)=>{var G,Q;return k(),I("div",{key:N,class:"dp__calendar_header_item",role:"gridcell","data-test":"calendar-header","aria-label":(Q=(G=Z(d))==null?void 0:G.weekDay)==null?void 0:Q.call(G,N)},[ye.$slots["calendar-header"]?Ie(ye.$slots,"calendar-header",{key:0,day:T,index:N}):ie("",!0),ye.$slots["calendar-header"]?ie("",!0):(k(),I(Ne,{key:1},[mt(re(T),1)],64))],8,iB)}),128))]),aB,he(vs,{name:V.value,css:!!ye.transitions},{default:Te(()=>{var T;return[U.value?(k(),I("div",{key:0,class:"dp__calendar",role:"rowgroup","aria-label":((T=Z(d))==null?void 0:T.calendarDays)||void 0,onMouseleave:et[1]||(et[1]=N=>B.value=!1)},[(k(!0),I(Ne,null,Qe($.value,(N,G)=>(k(),I("div",{key:G,class:"dp__calendar_row",role:"row"},[ye.weekNumbers?(k(),I("div",oB,[v("div",uB,re(we(N.days)),1)])):ie("",!0),(k(!0),I(Ne,null,Qe(N.days,(Q,me)=>{var j,de,ve;return k(),I("div",{id:Z(bw)(Q.value),ref_for:!0,ref:ke=>ue(ke,G,me),key:me+G,role:"gridcell",class:"dp__calendar_item","aria-selected":(Q.classData.dp__active_date||Q.classData.dp__range_start||Q.classData.dp__range_start)??void 0,"aria-disabled":Q.classData.dp__cell_disabled||void 0,"aria-label":(de=(j=Z(d))==null?void 0:j.day)==null?void 0:de.call(j,Q),tabindex:"0","data-test":Q.value,onClick:Et(ke=>Y(ke,Q),["prevent"]),onKeydown:ke=>Z(Sr)(ke,()=>ye.$emit("select-date",Q)),onMouseenter:ke=>R(Q,G,me),onMouseleave:ke=>te(Q),onMousedown:ke=>Xe(Q),onMouseup:et[0]||(et[0]=ke=>B.value=!1)},[v("div",{class:$e(["dp__cell_inner",Q.classData])},[ye.$slots.day&&P.value(Q)?Ie(ye.$slots,"day",{key:0,day:+Q.text,date:Q.value}):ie("",!0),ye.$slots.day?ie("",!0):(k(),I(Ne,{key:1},[mt(re(Q.text),1)],64)),Q.marker&&P.value(Q)?(k(),I(Ne,{key:2},[ye.$slots.marker?Ie(ye.$slots,"marker",{key:0,marker:Q.marker,day:+Q.text,date:Q.value}):(k(),I("div",{key:1,class:$e(ee.value(Q.marker)),style:bn(Q.marker.color?{backgroundColor:Q.marker.color}:{})},null,6))],64)):ie("",!0),ne.value(Q.value)?(k(),I("div",{key:3,ref_for:!0,ref_key:"activeTooltip",ref:A,class:"dp__marker_tooltip",style:bn(w.value)},[(ve=Q.marker)!=null&&ve.tooltip?(k(),I("div",{key:0,class:"dp__tooltip_content",onClick:Le},[(k(!0),I(Ne,null,Qe(Q.marker.tooltip,(ke,Ae)=>(k(),I("div",{key:Ae,class:"dp__tooltip_text"},[ye.$slots["marker-tooltip"]?Ie(ye.$slots,"marker-tooltip",{key:0,tooltip:ke,day:Q.value}):ie("",!0),ye.$slots["marker-tooltip"]?ie("",!0):(k(),I(Ne,{key:1},[v("div",{class:"dp__tooltip_mark",style:bn(ke.color?{backgroundColor:ke.color}:{})},null,4),v("div",null,re(ke.text),1)],64))]))),128)),v("div",{class:"dp__arrow_bottom_tp",style:bn(F.value)},null,4)])):ie("",!0)],4)):ie("",!0)],2)],40,cB)}),128))]))),128))],40,lB)):ie("",!0)]}),_:3},8,["name","css"])],10,nB)],2)}}}),b0=e=>Array.isArray(e),fB=(e,t,n,r)=>{const s=fe([]),a=fe(new Date),o=fe(),u=()=>De(e.isTextInputDate),{modelValue:d,calendars:h,time:f,today:p}=Ho(e,t,u),{defaultedMultiCalendars:m,defaultedStartTime:y,defaultedRange:w,defaultedConfig:_,defaultedTz:E,propDates:U,defaultedMultiDates:V}=sn(e),{validateMonthYearInRange:x,isDisabled:A,isDateRangeAllowed:F,checkMinMaxRange:B}=ji(e),{updateTimeValues:$,getSetDateTime:M,setTime:S,assignStartTime:H,validateTime:se,disabledTimesConfig:ee}=Cw(e,f,d,r),ne=pe(()=>ce=>h.value[ce]?h.value[ce].month:0),J=pe(()=>ce=>h.value[ce]?h.value[ce].year:0),P=ce=>!_.value.keepViewOnOffsetClick||ce?!0:!o.value,z=(ce,Ve,xe,Fe=!1)=>{var We,Nn;P(Fe)&&(h.value[ce]||(h.value[ce]={month:0,year:0}),h.value[ce].month=m0(Ve)?(We=h.value[ce])==null?void 0:We.month:Ve,h.value[ce].year=m0(xe)?(Nn=h.value[ce])==null?void 0:Nn.year:xe)},R=()=>{e.autoApply&&t("select-date")};It(()=>{e.shadow||(d.value||(et(),y.value&&H(y.value)),De(!0),e.focusStartDate&&e.startDate&&et())});const te=pe(()=>{var ce;return(ce=e.flow)!=null&&ce.length&&!e.partialFlow?e.flowStep===e.flow.length:!0}),be=()=>{e.autoApply&&te.value&&t("auto-apply")},De=(ce=!1)=>{if(d.value)return Array.isArray(d.value)?(s.value=d.value,Y(ce)):ue(d.value,ce);if(m.value.count&&ce&&!e.startDate)return K(Re(),ce)},He=()=>Array.isArray(d.value)&&w.value.enabled?wt(d.value[0])===wt(d.value[1]??d.value[0]):!1,K=(ce=new Date,Ve=!1)=>{if((!m.value.count||!m.value.static||Ve)&&z(0,wt(ce),lt(ce)),m.value.count&&(!m.value.solo||!d.value||He()))for(let xe=1;xe{K(ce),S("hours",ri(ce)),S("minutes",Vi(ce)),S("seconds",vl(ce)),m.value.count&&Ve&&ye()},D=ce=>{if(m.value.count){if(m.value.solo)return 0;const Ve=wt(ce[0]),xe=wt(ce[1]);return Math.abs(xe-Ve){ce[1]&&w.value.showLastInRange?K(ce[D(ce)],Ve):K(ce[0],Ve);const xe=(Fe,We)=>[Fe(ce[0]),ce[1]?Fe(ce[1]):f[We][1]];S("hours",xe(ri,"hours")),S("minutes",xe(Vi,"minutes")),S("seconds",xe(vl,"seconds"))},we=(ce,Ve)=>{if((w.value.enabled||e.weekPicker)&&!V.value.enabled)return le(ce,Ve);if(V.value.enabled&&Ve){const xe=ce[ce.length-1];return ue(xe,Ve)}},Y=ce=>{const Ve=d.value;we(Ve,ce),m.value.count&&m.value.solo&&ye()},Le=(ce,Ve)=>{const xe=Wt(Re(),{month:ne.value(Ve),year:J.value(Ve)}),Fe=ce<0?gs(xe,1):_l(xe,1);x(wt(Fe),lt(Fe),ce<0,e.preventMinMaxNavigation)&&(z(Ve,wt(Fe),lt(Fe)),t("update-month-year",{instance:Ve,month:wt(Fe),year:lt(Fe)}),m.value.count&&!m.value.solo&&Xe(Ve),n())},Xe=ce=>{for(let Ve=ce-1;Ve>=0;Ve--){const xe=_l(Wt(Re(),{month:ne.value(Ve+1),year:J.value(Ve+1)}),1);z(Ve,wt(xe),lt(xe))}for(let Ve=ce+1;Ve<=m.value.count-1;Ve++){const xe=gs(Wt(Re(),{month:ne.value(Ve-1),year:J.value(Ve-1)}),1);z(Ve,wt(xe),lt(xe))}},ye=()=>{if(Array.isArray(d.value)&&d.value.length===2){const ce=Re(Re(d.value[1]?d.value[1]:gs(d.value[0],1))),[Ve,xe]=[wt(d.value[0]),lt(d.value[0])],[Fe,We]=[wt(d.value[1]),lt(d.value[1])];(Ve!==Fe||Ve===Fe&&xe!==We)&&m.value.solo&&z(1,wt(ce),lt(ce))}else d.value&&!Array.isArray(d.value)&&(z(0,wt(d.value),lt(d.value)),K(Re()))},et=()=>{e.startDate&&(z(0,wt(Re(e.startDate)),lt(Re(e.startDate))),m.value.count&&Xe(0))},W=(ce,Ve)=>{if(e.monthChangeOnScroll){const xe=new Date().getTime()-a.value.getTime(),Fe=Math.abs(ce.deltaY);let We=500;Fe>1&&(We=100),Fe>100&&(We=0),xe>We&&(a.value=new Date,Le(e.monthChangeOnScroll!=="inverse"?-ce.deltaY:ce.deltaY,Ve))}},T=(ce,Ve,xe=!1)=>{e.monthChangeOnArrows&&e.vertical===xe&&N(ce,Ve)},N=(ce,Ve)=>{Le(ce==="right"?-1:1,Ve)},G=ce=>{if(U.value.markers)return Rc(ce.value,U.value.markers)},Q=(ce,Ve)=>{switch(e.sixWeeks===!0?"append":e.sixWeeks){case"prepend":return[!0,!1];case"center":return[ce==0,!0];case"fair":return[ce==0||Ve>ce,!0];case"append":return[!1,!1];default:return[!1,!1]}},me=(ce,Ve,xe,Fe)=>{if(e.sixWeeks&&ce.length<6){const We=6-ce.length,Nn=(Ve.getDay()+7-Fe)%7,pr=6-(xe.getDay()+7-Fe)%7,[Ls,Ca]=Q(Nn,pr);for(let Wi=1;Wi<=We;Wi++)if(Ca?!!(Wi%2)==Ls:Ls){const is=ce[0].days[0],El=j(fs(is.value,-7),wt(Ve));ce.unshift({days:El})}else{const is=ce[ce.length-1],El=is.days[is.days.length-1],md=j(fs(El.value,1),wt(Ve));ce.push({days:md})}}return ce},j=(ce,Ve)=>{const xe=Re(ce),Fe=[];for(let We=0;We<7;We++){const Nn=fs(xe,We),pr=wt(Nn)!==Ve;Fe.push({text:e.hideOffsetDates&&pr?"":Nn.getDate(),value:Nn,current:!pr,classData:{}})}return Fe},de=(ce,Ve)=>{const xe=[],Fe=new Date(Ve,ce),We=new Date(Ve,ce+1,0),Nn=e.weekStart,pr=ys(Fe,{weekStartsOn:Nn}),Ls=Ca=>{const Wi=j(Ca,ce);if(xe.push({days:Wi}),!xe[xe.length-1].days.some(is=>St(hr(is.value),hr(We)))){const is=fs(Ca,7);Ls(is)}};return Ls(pr),me(xe,Fe,We,Nn)},ve=ce=>{const Ve=Di(Re(ce.value),f.hours,f.minutes,Ge());t("date-update",Ve),V.value.enabled?am(Ve,d,V.value.limit):d.value=Ve,r(),Hn().then(()=>{be()})},ke=ce=>w.value.noDisabledRange?mw(s.value[0],ce).some(Ve=>A(Ve)):!1,Ae=()=>{s.value=d.value?d.value.slice():[],s.value.length===2&&!(w.value.fixedStart||w.value.fixedEnd)&&(s.value=[])},Oe=(ce,Ve)=>{const xe=[Re(ce.value),fs(Re(ce.value),+w.value.autoRange)];F(xe)?(Ve&&Be(ce.value),s.value=xe):t("invalid-date",ce.value)},Be=ce=>{const Ve=wt(Re(ce)),xe=lt(Re(ce));if(z(0,Ve,xe),m.value.count>0)for(let Fe=1;Fe{if(ke(ce.value)||!B(ce.value,d.value,w.value.fixedStart?0:1))return t("invalid-date",ce.value);s.value=Sw(Re(ce.value),d,t,w)},qe=(ce,Ve)=>{if(Ae(),w.value.autoRange)return Oe(ce,Ve);if(w.value.fixedStart||w.value.fixedEnd)return Ue(ce);s.value[0]?B(Re(ce.value),d.value)&&!ke(ce.value)?on(Re(ce.value),Re(s.value[0]))?(s.value.unshift(Re(ce.value)),t("range-end",s.value[0])):(s.value[1]=Re(ce.value),t("range-end",s.value[1])):(e.autoApply&&t("auto-apply-invalid",ce.value),t("invalid-date",ce.value)):(s.value[0]=Re(ce.value),t("range-start",s.value[0]))},Ge=(ce=!0)=>e.enableSeconds?Array.isArray(f.seconds)?ce?f.seconds[0]:f.seconds[1]:f.seconds:0,ot=ce=>{s.value[ce]=Di(s.value[ce],f.hours[ce],f.minutes[ce],Ge(ce!==1))},_t=()=>{var ce,Ve;s.value[0]&&s.value[1]&&+((ce=s.value)==null?void 0:ce[0])>+((Ve=s.value)==null?void 0:Ve[1])&&(s.value.reverse(),t("range-start",s.value[0]),t("range-end",s.value[1]))},an=()=>{s.value.length&&(s.value[0]&&!s.value[1]?ot(0):(ot(0),ot(1),r()),_t(),d.value=s.value.slice(),hd(s.value,t,e.autoApply,e.modelAuto))},Zt=(ce,Ve=!1)=>{if(A(ce.value)||!ce.current&&e.hideOffsetDates)return t("invalid-date",ce.value);if(o.value=JSON.parse(JSON.stringify(ce)),!w.value.enabled)return ve(ce);b0(f.hours)&&b0(f.minutes)&&!V.value.enabled&&(qe(ce,Ve),an())},Cn=(ce,Ve)=>{var xe;z(ce,Ve.month,Ve.year,!0),m.value.count&&!m.value.solo&&Xe(ce),t("update-month-year",{instance:ce,month:Ve.month,year:Ve.year}),n(m.value.solo?ce:void 0);const Fe=(xe=e.flow)!=null&&xe.length?e.flow[e.flowStep]:void 0;!Ve.fromNav&&(Fe===Xn.month||Fe===Xn.year)&&r()},hn=(ce,Ve)=>{kw({value:ce,modelValue:d,range:w.value.enabled,timezone:Ve?void 0:E.value.timezone}),R(),e.multiCalendars&&Hn().then(()=>De(!0))},Er=()=>{const ce=tm(Re(),E.value);w.value.enabled?d.value&&Array.isArray(d.value)&&d.value[0]?d.value=on(ce,d.value[0])?[ce,d.value[0]]:[d.value[0],ce]:d.value=[ce]:d.value=ce,R()},ws=()=>{if(Array.isArray(d.value))if(V.value.enabled){const ce=pn();d.value[d.value.length-1]=M(ce)}else d.value=d.value.map((ce,Ve)=>ce&&M(ce,Ve));else d.value=M(d.value);t("time-update")},pn=()=>Array.isArray(d.value)&&d.value.length?d.value[d.value.length-1]:null;return{calendars:h,modelValue:d,month:ne,year:J,time:f,disabledTimesConfig:ee,today:p,validateTime:se,getCalendarDays:de,getMarker:G,handleScroll:W,handleSwipe:N,handleArrow:T,selectDate:Zt,updateMonthYear:Cn,presetDate:hn,selectCurrentDate:Er,updateTime:(ce,Ve=!0,xe=!1)=>{$(ce,Ve,xe,ws)},assignMonthAndYear:K}},hB={key:0},pB=fn({__name:"DatePicker",props:{...bs},emits:["tooltip-open","tooltip-close","mount","update:internal-model-value","update-flow-step","reset-flow","auto-apply","focus-menu","select-date","range-start","range-end","invalid-fixed-range","time-update","am-pm-change","time-picker-open","time-picker-close","recalculate-position","update-month-year","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:n}){const r=n,s=e,{calendars:a,month:o,year:u,modelValue:d,time:h,disabledTimesConfig:f,today:p,validateTime:m,getCalendarDays:y,getMarker:w,handleArrow:_,handleScroll:E,handleSwipe:U,selectDate:V,updateMonthYear:x,presetDate:A,selectCurrentDate:F,updateTime:B,assignMonthAndYear:$}=fB(s,r,He,K),M=Bi(),{setHoverDate:S,getDayClassData:H,clearHoverDate:se}=MB(d,s),{defaultedMultiCalendars:ee}=sn(s),ne=fe([]),J=fe([]),P=fe(null),z=$r(M,"calendar"),R=$r(M,"monthYear"),te=$r(M,"timePicker"),be=W=>{s.shadow||r("mount",W)};qt(a,()=>{s.shadow||setTimeout(()=>{r("recalculate-position")},0)},{deep:!0}),qt(ee,(W,T)=>{W.count-T.count>0&&$()},{deep:!0});const De=pe(()=>W=>y(o.value(W),u.value(W)).map(T=>({...T,days:T.days.map(N=>(N.marker=w(N),N.classData=H(N),N))})));function He(W){var T;W||W===0?(T=J.value[W])==null||T.triggerTransition(o.value(W),u.value(W)):J.value.forEach((N,G)=>N.triggerTransition(o.value(G),u.value(G)))}function K(){r("update-flow-step")}const ue=(W,T=!1)=>{V(W,T),s.spaceConfirm&&r("select-date")},D=(W,T,N=0)=>{var G;(G=ne.value[N])==null||G.toggleMonthPicker(W,T)},le=(W,T,N=0)=>{var G;(G=ne.value[N])==null||G.toggleYearPicker(W,T)},we=(W,T,N)=>{var G;(G=P.value)==null||G.toggleTimePicker(W,T,N)},Y=(W,T)=>{var N;if(!s.range){const G=d.value?d.value:p,Q=T?new Date(T):G,me=W?ys(Q,{weekStartsOn:1}):G1(Q,{weekStartsOn:1});V({value:me,current:wt(Q)===o.value(0),text:"",classData:{}}),(N=document.getElementById(bw(me)))==null||N.focus()}},Le=W=>{var T;(T=ne.value[0])==null||T.handleMonthYearChange(W,!0)},Xe=W=>{x(0,{month:o.value(0),year:u.value(0)+(W?1:-1),fromNav:!0})},ye=(W,T)=>{W===Xn.time&&r(`time-picker-${T?"open":"close"}`),r("overlay-toggle",{open:T,overlay:W})},et=W=>{r("overlay-toggle",{open:!1,overlay:W}),r("focus-menu")};return t({clearHoverDate:se,presetDate:A,selectCurrentDate:F,toggleMonthPicker:D,toggleYearPicker:le,toggleTimePicker:we,handleArrow:_,updateMonthYear:x,getSidebarProps:()=>({modelValue:d,month:o,year:u,time:h,updateTime:B,updateMonthYear:x,selectDate:V,presetDate:A}),changeMonth:Le,changeYear:Xe,selectWeekDate:Y}),(W,T)=>(k(),I(Ne,null,[he(fd,{"multi-calendars":Z(ee).count,collapse:W.collapse},{default:Te(({instance:N,index:G})=>[W.disableMonthYearSelect?ie("",!0):(k(),it(tB,cn({key:0,ref:Q=>{Q&&(ne.value[G]=Q)},months:Z(uw)(W.formatLocale,W.locale,W.monthNameFormat),years:Z(nm)(W.yearRange,W.locale,W.reverseYears),month:Z(o)(N),year:Z(u)(N),instance:N},W.$props,{onMount:T[0]||(T[0]=Q=>be(Z(ma).header)),onResetFlow:T[1]||(T[1]=Q=>W.$emit("reset-flow")),onUpdateMonthYear:Q=>Z(x)(N,Q),onOverlayClosed:et,onOverlayOpened:T[2]||(T[2]=Q=>W.$emit("overlay-toggle",{open:!0,overlay:Q}))}),Bn({_:2},[Qe(Z(R),(Q,me)=>({name:Q,fn:Te(j=>[Ie(W.$slots,Q,wn(qn(j)))])}))]),1040,["months","years","month","year","instance","onUpdateMonthYear"])),he(dB,cn({ref:Q=>{Q&&(J.value[G]=Q)},"mapped-dates":De.value(N),month:Z(o)(N),year:Z(u)(N),instance:N},W.$props,{onSelectDate:Q=>Z(V)(Q,N!==1),onHandleSpace:Q=>ue(Q,N!==1),onSetHoverDate:T[3]||(T[3]=Q=>Z(S)(Q)),onHandleScroll:Q=>Z(E)(Q,N),onHandleSwipe:Q=>Z(U)(Q,N),onMount:T[4]||(T[4]=Q=>be(Z(ma).calendar)),onResetFlow:T[5]||(T[5]=Q=>W.$emit("reset-flow")),onTooltipOpen:T[6]||(T[6]=Q=>W.$emit("tooltip-open",Q)),onTooltipClose:T[7]||(T[7]=Q=>W.$emit("tooltip-close",Q))}),Bn({_:2},[Qe(Z(z),(Q,me)=>({name:Q,fn:Te(j=>[Ie(W.$slots,Q,wn(qn({...j})))])}))]),1040,["mapped-dates","month","year","instance","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])]),_:3},8,["multi-calendars","collapse"]),W.enableTimePicker?(k(),I("div",hB,[W.$slots["time-picker"]?Ie(W.$slots,"time-picker",wn(cn({key:0},{time:Z(h),updateTime:Z(B)}))):(k(),it(Aw,cn({key:1,ref_key:"timePickerRef",ref:P},W.$props,{hours:Z(h).hours,minutes:Z(h).minutes,seconds:Z(h).seconds,"internal-model-value":W.internalModelValue,"disabled-times-config":Z(f),"validate-time":Z(m),onMount:T[8]||(T[8]=N=>be(Z(ma).timePicker)),"onUpdate:hours":T[9]||(T[9]=N=>Z(B)(N)),"onUpdate:minutes":T[10]||(T[10]=N=>Z(B)(N,!1)),"onUpdate:seconds":T[11]||(T[11]=N=>Z(B)(N,!1,!0)),onResetFlow:T[12]||(T[12]=N=>W.$emit("reset-flow")),onOverlayClosed:T[13]||(T[13]=N=>ye(N,!1)),onOverlayOpened:T[14]||(T[14]=N=>ye(N,!0)),onAmPmChange:T[15]||(T[15]=N=>W.$emit("am-pm-change",N))}),Bn({_:2},[Qe(Z(te),(N,G)=>({name:N,fn:Te(Q=>[Ie(W.$slots,N,wn(qn(Q)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"]))])):ie("",!0)],64))}}),mB=(e,t)=>{const n=fe(),{defaultedMultiCalendars:r,defaultedConfig:s,defaultedHighlight:a,defaultedRange:o,propDates:u,defaultedFilters:d,defaultedMultiDates:h}=sn(e),{modelValue:f,year:p,month:m,calendars:y}=Ho(e,t),{isDisabled:w}=ji(e),{selectYear:_,groupedYears:E,showYearPicker:U,isDisabled:V,toggleYearPicker:x,handleYearSelect:A,handleYear:F}=Tw({modelValue:f,multiCalendars:r,range:o,highlight:a,calendars:y,propDates:u,month:m,year:p,filters:d,props:e,emit:t}),B=(P,z)=>[P,z].map(R=>Ds(R,"MMMM",{locale:e.formatLocale})).join("-"),$=pe(()=>P=>f.value?Array.isArray(f.value)?f.value.some(z=>f0(P,z)):f0(f.value,P):!1),M=P=>{if(o.value.enabled){if(Array.isArray(f.value)){const z=St(P,f.value[0])||St(P,f.value[1]);return cd(f.value,n.value,P)&&!z}return!1}return!1},S=(P,z)=>P.quarter===a0(z)&&P.year===lt(z),H=P=>typeof a.value=="function"?a.value({quarter:a0(P),year:lt(P)}):!!a.value.quarters.find(z=>S(z,P)),se=pe(()=>P=>{const z=Wt(new Date,{year:p.value(P)});return HF({start:Co(z),end:K1(z)}).map(R=>{const te=oa(R),be=l0(R),De=w(R),He=M(te),K=H(te);return{text:B(te,be),value:te,active:$.value(te),highlighted:K,disabled:De,isBetween:He}})}),ee=P=>{am(P,f,h.value.limit),t("auto-apply",!0)},ne=P=>{f.value=lm(f,P,t),hd(f.value,t,e.autoApply,e.modelAuto)},J=P=>{f.value=P,t("auto-apply")};return{defaultedConfig:s,defaultedMultiCalendars:r,groupedYears:E,year:p,isDisabled:V,quarters:se,showYearPicker:U,modelValue:f,setHoverDate:P=>{n.value=P},selectYear:_,selectQuarter:(P,z,R)=>{if(!R)return y.value[z].month=wt(l0(P)),h.value.enabled?ee(P):o.value.enabled?ne(P):J(P)},toggleYearPicker:x,handleYearSelect:A,handleYear:F}},gB={class:"dp--quarter-items"},vB=["data-test","disabled","onClick","onMouseover"],yB=fn({compatConfig:{MODE:3},__name:"QuarterPicker",props:{...bs},emits:["update:internal-model-value","reset-flow","overlay-closed","auto-apply","range-start","range-end","overlay-toggle","update-month-year"],setup(e,{expose:t,emit:n}){const r=n,s=e,a=Bi(),o=$r(a,"yearMode"),{defaultedMultiCalendars:u,defaultedConfig:d,groupedYears:h,year:f,isDisabled:p,quarters:m,modelValue:y,showYearPicker:w,setHoverDate:_,selectQuarter:E,toggleYearPicker:U,handleYearSelect:V,handleYear:x}=mB(s,r);return t({getSidebarProps:()=>({modelValue:y,year:f,selectQuarter:E,handleYearSelect:V,handleYear:x})}),(A,F)=>(k(),it(fd,{"multi-calendars":Z(u).count,collapse:A.collapse,stretch:""},{default:Te(({instance:B})=>[v("div",{class:"dp-quarter-picker-wrap",style:bn({minHeight:`${Z(d).modeHeight}px`})},[A.$slots["top-extra"]?Ie(A.$slots,"top-extra",{key:0,value:A.internalModelValue}):ie("",!0),v("div",null,[he(xw,cn(A.$props,{items:Z(h)(B),instance:B,"show-year-picker":Z(w)[B],year:Z(f)(B),"is-disabled":$=>Z(p)(B,$),onHandleYear:$=>Z(x)(B,$),onYearSelect:$=>Z(V)($,B),onToggleYearPicker:$=>Z(U)(B,$==null?void 0:$.flow,$==null?void 0:$.show)}),Bn({_:2},[Qe(Z(o),($,M)=>({name:$,fn:Te(S=>[Ie(A.$slots,$,wn(qn(S)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),v("div",gB,[(k(!0),I(Ne,null,Qe(Z(m)(B),($,M)=>(k(),I("div",{key:M},[v("button",{type:"button",class:$e(["dp--qr-btn",{"dp--qr-btn-active":$.active,"dp--qr-btn-between":$.isBetween,"dp--qr-btn-disabled":$.disabled,"dp--highlighted":$.highlighted}]),"data-test":$.value,disabled:$.disabled,onClick:S=>Z(E)($.value,B,$.disabled),onMouseover:S=>Z(_)($.value)},[A.$slots.quarter?Ie(A.$slots,"quarter",{key:0,value:$.value,text:$.text}):(k(),I(Ne,{key:1},[mt(re($.text),1)],64))],42,vB)]))),128))])],4)]),_:3},8,["multi-calendars","collapse"]))}}),_B=["id","aria-label"],bB={key:0,class:"dp--menu-load-container"},wB=v("span",{class:"dp--menu-loader"},null,-1),xB=[wB],kB={key:0,class:"dp__sidebar_left"},SB=["data-test","onClick","onKeydown"],TB={key:2,class:"dp__sidebar_right"},AB={key:3,class:"dp__action_extra"},w0=fn({compatConfig:{MODE:3},__name:"DatepickerMenu",props:{...dd,shadow:{type:Boolean,default:!1},openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1}},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:n}){const r=n,s=e,a=fe(null),o=pe(()=>{const{openOnTop:j,...de}=s;return{...de,flowStep:S.value,collapse:s.collapse,noOverlayFocus:s.noOverlayFocus,menuWrapRef:a.value}}),{setMenuFocused:u,setShiftKey:d,control:h}=ww(),f=Bi(),{defaultedTextInput:p,defaultedInline:m,defaultedConfig:y,defaultedUI:w}=sn(s),_=fe(null),E=fe(0),U=fe(null),V=fe(!1),x=fe(null);It(()=>{if(!s.shadow){V.value=!0,A(),window.addEventListener("resize",A);const j=Ln(a);if(j&&!p.value.enabled&&!m.value.enabled&&(u(!0),z()),j){const de=ve=>{y.value.allowPreventDefault&&ve.preventDefault(),Ri(ve,y.value,!0)};j.addEventListener("pointerdown",de),j.addEventListener("mousedown",de)}}}),ii(()=>{window.removeEventListener("resize",A)});const A=()=>{const j=Ln(U);j&&(E.value=j.getBoundingClientRect().width)},{arrowRight:F,arrowLeft:B,arrowDown:$,arrowUp:M}=Ui(),{flowStep:S,updateFlowStep:H,childMount:se,resetFlow:ee,handleFlow:ne}=RB(s,r,x),J=pe(()=>s.monthPicker?M5:s.yearPicker?D5:s.timePicker?G5:s.quarterPicker?yB:pB),P=pe(()=>{var j;if(y.value.arrowLeft)return y.value.arrowLeft;const de=(j=a.value)==null?void 0:j.getBoundingClientRect(),ve=s.getInputRect();return(ve==null?void 0:ve.width)<(E==null?void 0:E.value)&&(ve==null?void 0:ve.left)<=((de==null?void 0:de.left)??0)?`${(ve==null?void 0:ve.width)/2}px`:(ve==null?void 0:ve.right)>=((de==null?void 0:de.right)??0)&&(ve==null?void 0:ve.width)<(E==null?void 0:E.value)?`${(E==null?void 0:E.value)-(ve==null?void 0:ve.width)/2}px`:"50%"}),z=()=>{const j=Ln(a);j&&j.focus({preventScroll:!0})},R=pe(()=>{var j;return((j=x.value)==null?void 0:j.getSidebarProps())||{}}),te=()=>{s.openOnTop&&r("recalculate-position")},be=$r(f,"action"),De=pe(()=>s.monthPicker||s.yearPicker?$r(f,"monthYear"):s.timePicker?$r(f,"timePicker"):$r(f,"shared")),He=pe(()=>s.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),K=pe(()=>({dp__menu_disabled:s.disabled,dp__menu_readonly:s.readonly,"dp-menu-loading":s.loading})),ue=pe(()=>({dp__menu:!0,dp__menu_index:!m.value.enabled,dp__relative:m.value.enabled,[s.menuClassName]:!!s.menuClassName,...w.value.menu??{}})),D=j=>{Ri(j,y.value,!0)},le=()=>{s.escClose&&r("close-picker")},we=j=>{if(s.arrowNavigation){if(j===or.up)return M();if(j===or.down)return $();if(j===or.left)return B();if(j===or.right)return F()}else j===or.left||j===or.up?et("handleArrow",or.left,0,j===or.up):et("handleArrow",or.right,0,j===or.down)},Y=j=>{d(j.shiftKey),!s.disableMonthYearSelect&&j.code===nn.tab&&j.target.classList.contains("dp__menu")&&h.value.shiftKeyInMenu&&(j.preventDefault(),Ri(j,y.value,!0),r("close-picker"))},Le=()=>{z(),r("time-picker-close")},Xe=j=>{var de,ve,ke;(de=x.value)==null||de.toggleTimePicker(!1,!1),(ve=x.value)==null||ve.toggleMonthPicker(!1,!1,j),(ke=x.value)==null||ke.toggleYearPicker(!1,!1,j)},ye=(j,de=0)=>{var ve,ke,Ae;return j==="month"?(ve=x.value)==null?void 0:ve.toggleMonthPicker(!1,!0,de):j==="year"?(ke=x.value)==null?void 0:ke.toggleYearPicker(!1,!0,de):j==="time"?(Ae=x.value)==null?void 0:Ae.toggleTimePicker(!0,!1):Xe(de)},et=(j,...de)=>{var ve,ke;(ve=x.value)!=null&&ve[j]&&((ke=x.value)==null||ke[j](...de))},W=()=>{et("selectCurrentDate")},T=(j,de)=>{et("presetDate",j,de)},N=()=>{et("clearHoverDate")},G=(j,de)=>{et("updateMonthYear",j,de)},Q=(j,de)=>{j.preventDefault(),we(de)},me=j=>{var de;if(Y(j),j.key===nn.home||j.key===nn.end)return et("selectWeekDate",j.key===nn.home,j.target.getAttribute("id"));switch((j.key===nn.pageUp||j.key===nn.pageDown)&&(j.shiftKey?et("changeYear",j.key===nn.pageUp):et("changeMonth",j.key===nn.pageUp),j.target.getAttribute("id")&&((de=a.value)==null||de.focus({preventScroll:!0}))),j.key){case nn.esc:return le();case nn.arrowLeft:return Q(j,or.left);case nn.arrowRight:return Q(j,or.right);case nn.arrowUp:return Q(j,or.up);case nn.arrowDown:return Q(j,or.down);default:return}};return t({updateMonthYear:G,switchView:ye,handleFlow:ne}),(j,de)=>{var ve,ke,Ae;return k(),I("div",{id:j.uid?`dp-menu-${j.uid}`:void 0,ref_key:"dpMenuRef",ref:a,tabindex:"0",role:"dialog","aria-label":(ve=j.ariaLabels)==null?void 0:ve.menu,class:$e(ue.value),style:bn({"--dp-arrow-left":P.value}),onMouseleave:N,onClick:D,onKeydown:me},[(j.disabled||j.readonly)&&Z(m).enabled||j.loading?(k(),I("div",{key:0,class:$e(K.value)},[j.loading?(k(),I("div",bB,xB)):ie("",!0)],2)):ie("",!0),!Z(m).enabled&&!j.teleportCenter?(k(),I("div",{key:1,class:$e(He.value)},null,2)):ie("",!0),v("div",{ref_key:"innerMenuRef",ref:U,class:$e({dp__menu_content_wrapper:((ke=j.presetDates)==null?void 0:ke.length)||!!j.$slots["left-sidebar"]||!!j.$slots["right-sidebar"],"dp--menu-content-wrapper-collapsed":e.collapse&&(((Ae=j.presetDates)==null?void 0:Ae.length)||!!j.$slots["left-sidebar"]||!!j.$slots["right-sidebar"])}),style:bn({"--dp-menu-width":`${E.value}px`})},[j.$slots["left-sidebar"]?(k(),I("div",kB,[Ie(j.$slots,"left-sidebar",wn(qn(R.value)))])):ie("",!0),j.presetDates.length?(k(),I("div",{key:1,class:$e({"dp--preset-dates-collapsed":e.collapse,"dp--preset-dates":!0})},[(k(!0),I(Ne,null,Qe(j.presetDates,(Oe,Be)=>(k(),I(Ne,{key:Be},[Oe.slot?Ie(j.$slots,Oe.slot,{key:0,presetDate:T,label:Oe.label,value:Oe.value}):(k(),I("button",{key:1,type:"button",style:bn(Oe.style||{}),class:$e(["dp__btn dp--preset-range",{"dp--preset-range-collapsed":e.collapse}]),"data-test":Oe.testId??void 0,onClick:Et(Ue=>T(Oe.value,Oe.noTz),["prevent"]),onKeydown:Ue=>Z(Sr)(Ue,()=>T(Oe.value,Oe.noTz),!0)},re(Oe.label),47,SB))],64))),128))],2)):ie("",!0),v("div",{ref_key:"calendarWrapperRef",ref:_,class:"dp__instance_calendar",role:"document"},[(k(),it(Al(J.value),cn({ref_key:"dynCmpRef",ref:x},o.value,{"flow-step":Z(S),onMount:Z(se),onUpdateFlowStep:Z(H),onResetFlow:Z(ee),onFocusMenu:z,onSelectDate:de[0]||(de[0]=Oe=>j.$emit("select-date")),onDateUpdate:de[1]||(de[1]=Oe=>j.$emit("date-update",Oe)),onTooltipOpen:de[2]||(de[2]=Oe=>j.$emit("tooltip-open",Oe)),onTooltipClose:de[3]||(de[3]=Oe=>j.$emit("tooltip-close",Oe)),onAutoApply:de[4]||(de[4]=Oe=>j.$emit("auto-apply",Oe)),onRangeStart:de[5]||(de[5]=Oe=>j.$emit("range-start",Oe)),onRangeEnd:de[6]||(de[6]=Oe=>j.$emit("range-end",Oe)),onInvalidFixedRange:de[7]||(de[7]=Oe=>j.$emit("invalid-fixed-range",Oe)),onTimeUpdate:de[8]||(de[8]=Oe=>j.$emit("time-update")),onAmPmChange:de[9]||(de[9]=Oe=>j.$emit("am-pm-change",Oe)),onTimePickerOpen:de[10]||(de[10]=Oe=>j.$emit("time-picker-open",Oe)),onTimePickerClose:Le,onRecalculatePosition:te,onUpdateMonthYear:de[11]||(de[11]=Oe=>j.$emit("update-month-year",Oe)),onAutoApplyInvalid:de[12]||(de[12]=Oe=>j.$emit("auto-apply-invalid",Oe)),onInvalidDate:de[13]||(de[13]=Oe=>j.$emit("invalid-date",Oe)),onOverlayToggle:de[14]||(de[14]=Oe=>j.$emit("overlay-toggle",Oe)),"onUpdate:internalModelValue":de[15]||(de[15]=Oe=>j.$emit("update:internal-model-value",Oe))}),Bn({_:2},[Qe(De.value,(Oe,Be)=>({name:Oe,fn:Te(Ue=>[Ie(j.$slots,Oe,wn(qn({...Ue})))])}))]),1040,["flow-step","onMount","onUpdateFlowStep","onResetFlow"]))],512),j.$slots["right-sidebar"]?(k(),I("div",TB,[Ie(j.$slots,"right-sidebar",wn(qn(R.value)))])):ie("",!0),j.$slots["action-extra"]?(k(),I("div",AB,[j.$slots["action-extra"]?Ie(j.$slots,"action-extra",{key:0,selectCurrentDate:W}):ie("",!0)])):ie("",!0)],6),!j.autoApply||Z(y).keepActionRow?(k(),it(x5,cn({key:2,"menu-mount":V.value},o.value,{"calendar-width":E.value,onClosePicker:de[16]||(de[16]=Oe=>j.$emit("close-picker")),onSelectDate:de[17]||(de[17]=Oe=>j.$emit("select-date")),onInvalidSelect:de[18]||(de[18]=Oe=>j.$emit("invalid-select")),onSelectNow:W}),Bn({_:2},[Qe(Z(be),(Oe,Be)=>({name:Oe,fn:Te(Ue=>[Ie(j.$slots,Oe,wn(qn({...Ue})))])}))]),1040,["menu-mount","calendar-width"])):ie("",!0)],46,_B)}}});var Xa=(e=>(e.center="center",e.left="left",e.right="right",e))(Xa||{});const CB=({menuRef:e,menuRefInner:t,inputRef:n,pickerWrapperRef:r,inline:s,emit:a,props:o,slots:u})=>{const d=fe({}),h=fe(!1),f=fe({top:"0",left:"0"}),p=fe(!1),m=ll(o,"teleportCenter");qt(m,()=>{f.value=JSON.parse(JSON.stringify({})),A()});const y=P=>{if(o.teleport){const z=P.getBoundingClientRect();return{left:z.left+window.scrollX,top:z.top+window.scrollY}}return{top:0,left:0}},w=(P,z)=>{f.value.left=`${P+z-d.value.width}px`},_=P=>{f.value.left=`${P}px`},E=(P,z)=>{o.position===Xa.left&&_(P),o.position===Xa.right&&w(P,z),o.position===Xa.center&&(f.value.left=`${P+z/2-d.value.width/2}px`)},U=P=>{const{width:z,height:R}=P.getBoundingClientRect(),{top:te,left:be}=o.altPosition?o.altPosition(P):y(P);return{top:+te,left:+be,width:z,height:R}},V=()=>{f.value.left="50%",f.value.top="50%",f.value.transform="translate(-50%, -50%)",f.value.position="fixed",delete f.value.opacity},x=()=>{const P=Ln(n),{top:z,left:R,transform:te}=o.altPosition(P);f.value={top:`${z}px`,left:`${R}px`,transform:te??""}},A=(P=!0)=>{var z;if(!s.value.enabled){if(m.value)return V();if(o.altPosition!==null)return x();if(P){const R=o.teleport?(z=t.value)==null?void 0:z.$el:e.value;R&&(d.value=R.getBoundingClientRect()),a("recalculate-position")}return se()}},F=({inputEl:P,left:z,width:R})=>{window.screen.width>768&&!h.value&&E(z,R),M(P)},B=P=>{const{top:z,left:R,height:te,width:be}=U(P);f.value.top=`${te+z+ +o.offset}px`,p.value=!1,h.value||(f.value.left=`${R+be/2-d.value.width/2}px`),F({inputEl:P,left:R,width:be})},$=P=>{const{top:z,left:R,width:te}=U(P);f.value.top=`${z-+o.offset-d.value.height}px`,p.value=!0,F({inputEl:P,left:R,width:te})},M=P=>{if(o.autoPosition){const{left:z,width:R}=U(P),{left:te,right:be}=d.value;if(!h.value){if(Math.abs(te)!==Math.abs(be)){if(te<=0)return h.value=!0,_(z);if(be>=document.documentElement.clientWidth)return h.value=!0,w(z,R)}return E(z,R)}}},S=()=>{const P=Ln(n);if(P){const{height:z}=d.value,{top:R,height:te}=P.getBoundingClientRect(),be=window.innerHeight-R-te,De=R;return z<=be?sa.bottom:z>be&&z<=De?sa.top:be>=De?sa.bottom:sa.top}return sa.bottom},H=P=>S()===sa.bottom?B(P):$(P),se=()=>{const P=Ln(n);if(P)return o.autoPosition?H(P):B(P)},ee=function(P){if(P){const z=P.scrollHeight>P.clientHeight,R=window.getComputedStyle(P).overflowY.indexOf("hidden")!==-1;return z&&!R}return!0},ne=function(P){return!P||P===document.body||P.nodeType===Node.DOCUMENT_FRAGMENT_NODE?window:ee(P)?P:ne(P.assignedSlot?P.assignedSlot.parentNode:P.parentNode)},J=P=>{if(P)switch(o.position){case Xa.left:return{left:0,transform:"translateX(0)"};case Xa.right:return{left:`${P.width}px`,transform:"translateX(-100%)"};default:return{left:`${P.width/2}px`,transform:"translateX(-50%)"}}return{}};return{openOnTop:p,menuStyle:f,xCorrect:h,setMenuPosition:A,getScrollableParent:ne,shadowRender:(P,z)=>{var R,te,be;const De=document.createElement("div"),He=(R=Ln(n))==null?void 0:R.getBoundingClientRect();De.setAttribute("id","dp--temp-container");const K=(te=r.value)!=null&&te.clientWidth?r.value:document.body;K.append(De);const ue=J(He),D=yp(P,{...z,shadow:!0,style:{opacity:0,position:"absolute",...ue}},Object.fromEntries(Object.keys(u).filter(le=>["right-sidebar","left-sidebar","top-extra","action-extra"].includes(le)).map(le=>[le,u[le]])));yc(D,De),d.value=(be=D.el)==null?void 0:be.getBoundingClientRect(),yc(null,De),K.removeChild(De)}}},yi=[{name:"clock-icon",use:["time","calendar","shared"]},{name:"arrow-left",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-right",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-up",use:["time","calendar","month-year","shared"]},{name:"arrow-down",use:["time","calendar","month-year","shared"]},{name:"calendar-icon",use:["month-year","time","calendar","shared","year-mode"]},{name:"day",use:["calendar","shared"]},{name:"month-overlay-value",use:["calendar","month-year","shared"]},{name:"year-overlay-value",use:["calendar","month-year","shared","year-mode"]},{name:"year-overlay",use:["month-year","shared"]},{name:"month-overlay",use:["month-year","shared"]},{name:"month-overlay-header",use:["month-year","shared"]},{name:"year-overlay-header",use:["month-year","shared"]},{name:"hours-overlay-value",use:["calendar","time","shared"]},{name:"hours-overlay-header",use:["calendar","time","shared"]},{name:"minutes-overlay-value",use:["calendar","time","shared"]},{name:"minutes-overlay-header",use:["calendar","time","shared"]},{name:"seconds-overlay-value",use:["calendar","time","shared"]},{name:"seconds-overlay-header",use:["calendar","time","shared"]},{name:"hours",use:["calendar","time","shared"]},{name:"minutes",use:["calendar","time","shared"]},{name:"month",use:["calendar","month-year","shared"]},{name:"year",use:["calendar","month-year","shared","year-mode"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar","shared"]},{name:"marker-tooltip",use:["calendar","shared"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time","shared"]},{name:"am-pm-button",use:["calendar","time","shared"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year","shared"]},{name:"time-picker",use:["menu","shared"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar","shared"]},{name:"quarter",use:["shared"]},{name:"top-extra",use:["shared","month-year"]},{name:"tp-inline-arrow-up",use:["shared","time"]},{name:"tp-inline-arrow-down",use:["shared","time"]}],EB=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],OB={all:()=>yi,monthYear:()=>yi.filter(e=>e.use.includes("month-year")),input:()=>EB,timePicker:()=>yi.filter(e=>e.use.includes("time")),action:()=>yi.filter(e=>e.use.includes("action")),calendar:()=>yi.filter(e=>e.use.includes("calendar")),menu:()=>yi.filter(e=>e.use.includes("menu")),shared:()=>yi.filter(e=>e.use.includes("shared")),yearMode:()=>yi.filter(e=>e.use.includes("year-mode"))},$r=(e,t,n)=>{const r=[];return OB[t]().forEach(s=>{e[s.name]&&r.push(s.name)}),n!=null&&n.length&&n.forEach(s=>{s.slot&&r.push(s.slot)}),r},Bo=e=>{const t=pe(()=>r=>e.value?r?e.value.open:e.value.close:""),n=pe(()=>r=>e.value?r?e.value.menuAppearTop:e.value.menuAppearBottom:"");return{transitionName:t,showTransition:!!e.value,menuTransition:n}},Ho=(e,t,n)=>{const{defaultedRange:r,defaultedTz:s}=sn(e),a=Re(Ar(Re(),s.value.timezone)),o=fe([{month:wt(a),year:lt(a)}]),u=m=>{const y={hours:ri(a),minutes:Vi(a),seconds:0};return r.value.enabled?[y[m],y[m]]:y[m]},d=Hr({hours:u("hours"),minutes:u("minutes"),seconds:u("seconds")});qt(r,(m,y)=>{m.enabled!==y.enabled&&(d.hours=u("hours"),d.minutes=u("minutes"),d.seconds=u("seconds"))},{deep:!0});const h=pe({get:()=>e.internalModelValue,set:m=>{!e.readonly&&!e.disabled&&t("update:internal-model-value",m)}}),f=pe(()=>m=>o.value[m]?o.value[m].month:0),p=pe(()=>m=>o.value[m]?o.value[m].year:0);return qt(h,(m,y)=>{n&&JSON.stringify(m??{})!==JSON.stringify(y??{})&&n()},{deep:!0}),{calendars:o,time:d,modelValue:h,month:f,year:p,today:a}},MB=(e,t)=>{const{defaultedMultiCalendars:n,defaultedMultiDates:r,defaultedUI:s,defaultedHighlight:a,defaultedTz:o,propDates:u,defaultedRange:d}=sn(t),{isDisabled:h}=ji(t),f=fe(null),p=fe(Ar(new Date,o.value.timezone)),m=D=>{!D.current&&t.hideOffsetDates||(f.value=D.value)},y=()=>{f.value=null},w=D=>Array.isArray(e.value)&&d.value.enabled&&e.value[0]&&f.value?D?_n(f.value,e.value[0]):on(f.value,e.value[0]):!0,_=(D,le)=>{const we=()=>e.value?le?e.value[0]||null:e.value[1]:null,Y=e.value&&Array.isArray(e.value)?we():null;return St(Re(D.value),Y)},E=D=>{const le=Array.isArray(e.value)?e.value[0]:null;return D?!on(f.value??null,le):!0},U=(D,le=!0)=>(d.value.enabled||t.weekPicker)&&Array.isArray(e.value)&&e.value.length===2?t.hideOffsetDates&&!D.current?!1:St(Re(D.value),e.value[le?0:1]):d.value.enabled?_(D,le)&&E(le)||St(D.value,Array.isArray(e.value)?e.value[0]:null)&&w(le):!1,V=(D,le)=>{if(Array.isArray(e.value)&&e.value[0]&&e.value.length===1){const we=St(D.value,f.value);return le?_n(e.value[0],D.value)&&we:on(e.value[0],D.value)&&we}return!1},x=D=>!e.value||t.hideOffsetDates&&!D.current?!1:d.value.enabled?t.modelAuto&&Array.isArray(e.value)?St(D.value,e.value[0]?e.value[0]:p.value):!1:r.value.enabled&&Array.isArray(e.value)?e.value.some(le=>St(le,D.value)):St(D.value,e.value?e.value:p.value),A=D=>{if(d.value.autoRange||t.weekPicker){if(f.value){if(t.hideOffsetDates&&!D.current)return!1;const le=fs(f.value,+d.value.autoRange),we=Ks(Re(f.value),t.weekStart);return t.weekPicker?St(we[1],Re(D.value)):St(le,Re(D.value))}return!1}return!1},F=D=>{if(d.value.autoRange||t.weekPicker){if(f.value){const le=fs(f.value,+d.value.autoRange);if(t.hideOffsetDates&&!D.current)return!1;const we=Ks(Re(f.value),t.weekStart);return t.weekPicker?_n(D.value,we[0])&&on(D.value,we[1]):_n(D.value,f.value)&&on(D.value,le)}return!1}return!1},B=D=>{if(d.value.autoRange||t.weekPicker){if(f.value){if(t.hideOffsetDates&&!D.current)return!1;const le=Ks(Re(f.value),t.weekStart);return t.weekPicker?St(le[0],D.value):St(f.value,D.value)}return!1}return!1},$=D=>cd(e.value,f.value,D.value),M=()=>t.modelAuto&&Array.isArray(t.internalModelValue)?!!t.internalModelValue[0]:!1,S=()=>t.modelAuto?cw(t.internalModelValue):!0,H=D=>{if(t.weekPicker)return!1;const le=d.value.enabled?!U(D)&&!U(D,!1):!0;return!h(D.value)&&!x(D)&&!(!D.current&&t.hideOffsetDates)&&le},se=D=>d.value.enabled?t.modelAuto?M()&&x(D):!1:x(D),ee=D=>a.value?z$(D.value,u.value.highlight):!1,ne=D=>{const le=h(D.value);return le&&(typeof a.value=="function"?!a.value(D.value,le):!a.value.options.highlightDisabled)},J=D=>{var le;return typeof a.value=="function"?a.value(D.value):(le=a.value.weekdays)==null?void 0:le.includes(D.value.getDay())},P=D=>(d.value.enabled||t.weekPicker)&&(!(n.value.count>0)||D.current)&&S()&&!(!D.current&&t.hideOffsetDates)&&!x(D)?$(D):!1,z=D=>{const{isRangeStart:le,isRangeEnd:we}=De(D),Y=d.value.enabled?le||we:!1;return{dp__cell_offset:!D.current,dp__pointer:!t.disabled&&!(!D.current&&t.hideOffsetDates)&&!h(D.value),dp__cell_disabled:h(D.value),dp__cell_highlight:!ne(D)&&(ee(D)||J(D))&&!se(D)&&!Y&&!B(D)&&!(P(D)&&t.weekPicker)&&!we,dp__cell_highlight_active:!ne(D)&&(ee(D)||J(D))&&se(D),dp__today:!t.noToday&&St(D.value,p.value)&&D.current,"dp--past":on(D.value,p.value),"dp--future":_n(D.value,p.value)}},R=D=>({dp__active_date:se(D),dp__date_hover:H(D)}),te=D=>{if(e.value&&!Array.isArray(e.value)){const le=Ks(e.value,t.weekStart);return{...K(D),dp__range_start:St(le[0],D.value),dp__range_end:St(le[1],D.value),dp__range_between_week:_n(D.value,le[0])&&on(D.value,le[1])}}return{...K(D)}},be=D=>{if(e.value&&Array.isArray(e.value)){const le=Ks(e.value[0],t.weekStart),we=e.value[1]?Ks(e.value[1],t.weekStart):[];return{...K(D),dp__range_start:St(le[0],D.value)||St(we[0],D.value),dp__range_end:St(le[1],D.value)||St(we[1],D.value),dp__range_between_week:_n(D.value,le[0])&&on(D.value,le[1])||_n(D.value,we[0])&&on(D.value,we[1]),dp__range_between:_n(D.value,le[1])&&on(D.value,we[0])}}return{...K(D)}},De=D=>{const le=n.value.count>0?D.current&&U(D)&&S():U(D)&&S(),we=n.value.count>0?D.current&&U(D,!1)&&S():U(D,!1)&&S();return{isRangeStart:le,isRangeEnd:we}},He=D=>{const{isRangeStart:le,isRangeEnd:we}=De(D);return{dp__range_start:le,dp__range_end:we,dp__range_between:P(D),dp__date_hover:St(D.value,f.value)&&!le&&!we&&!t.weekPicker,dp__date_hover_start:V(D,!0),dp__date_hover_end:V(D,!1)}},K=D=>({...He(D),dp__cell_auto_range:F(D),dp__cell_auto_range_start:B(D),dp__cell_auto_range_end:A(D)}),ue=D=>d.value.enabled?d.value.autoRange?K(D):t.modelAuto?{...R(D),...He(D)}:t.weekPicker?be(D):He(D):t.weekPicker?te(D):R(D);return{setHoverDate:m,clearHoverDate:y,getDayClassData:D=>t.hideOffsetDates&&!D.current?{}:{...z(D),...ue(D),[t.dayClass?t.dayClass(D.value,t.internalModelValue):""]:!0,[t.calendarCellClassName]:!!t.calendarCellClassName,...s.value.calendarCell??{}}}},ji=e=>{const{defaultedFilters:t,defaultedRange:n,propDates:r,defaultedMultiDates:s}=sn(e),a=J=>r.value.disabledDates?typeof r.value.disabledDates=="function"?r.value.disabledDates(Re(J)):!!Rc(J,r.value.disabledDates):!1,o=J=>r.value.maxDate?e.yearPicker?lt(J)>lt(r.value.maxDate):_n(J,r.value.maxDate):!1,u=J=>r.value.minDate?e.yearPicker?lt(J){const P=o(J),z=u(J),R=a(J),te=t.value.months.map(ue=>+ue).includes(wt(J)),be=e.disabledWeekDays.length?e.disabledWeekDays.some(ue=>+ue===L6(J)):!1,De=y(J),He=lt(J),K=He<+e.yearRange[0]||He>+e.yearRange[1];return!(P||z||R||te||K||be||De)},h=(J,P)=>on(...Ti(r.value.minDate,J,P))||St(...Ti(r.value.minDate,J,P)),f=(J,P)=>_n(...Ti(r.value.maxDate,J,P))||St(...Ti(r.value.maxDate,J,P)),p=(J,P,z)=>{let R=!1;return r.value.maxDate&&z&&f(J,P)&&(R=!0),r.value.minDate&&!z&&h(J,P)&&(R=!0),R},m=(J,P,z,R)=>{let te=!1;return R?r.value.minDate&&r.value.maxDate?te=p(J,P,z):(r.value.minDate&&h(J,P)||r.value.maxDate&&f(J,P))&&(te=!0):te=!0,te},y=J=>Array.isArray(r.value.allowedDates)&&!r.value.allowedDates.length?!0:r.value.allowedDates?!Rc(J,r.value.allowedDates):!1,w=J=>!d(J),_=J=>n.value.noDisabledRange?!z1({start:J[0],end:J[1]}).some(P=>w(P)):!0,E=J=>{if(J){const P=lt(J);return P>=+e.yearRange[0]&&P<=e.yearRange[1]}return!0},U=(J,P)=>!!(Array.isArray(J)&&J[P]&&(n.value.maxRange||n.value.minRange)&&E(J[P])),V=(J,P,z=0)=>{if(U(P,z)&&E(J)){const R=q1(J,P[z]),te=mw(P[z],J),be=te.length===1?0:te.filter(He=>w(He)).length,De=Math.abs(R)-(n.value.minMaxRawRange?0:be);if(n.value.minRange&&n.value.maxRange)return De>=+n.value.minRange&&De<=+n.value.maxRange;if(n.value.minRange)return De>=+n.value.minRange;if(n.value.maxRange)return De<=+n.value.maxRange}return!0},x=()=>!e.enableTimePicker||e.monthPicker||e.yearPicker||e.ignoreTimeValidation,A=J=>Array.isArray(J)?[J[0]?th(J[0]):null,J[1]?th(J[1]):null]:th(J),F=(J,P,z)=>J.find(R=>+R.hours===ri(P)&&R.minutes==="*"?!0:+R.minutes===Vi(P)&&+R.hours===ri(P))&&z,B=(J,P,z)=>{const[R,te]=J,[be,De]=P;return!F(R,be,z)&&!F(te,De,z)&&z},$=(J,P)=>{const z=Array.isArray(P)?P:[P];return Array.isArray(e.disabledTimes)?Array.isArray(e.disabledTimes[0])?B(e.disabledTimes,z,J):!z.some(R=>F(e.disabledTimes,R,J)):J},M=(J,P)=>{const z=Array.isArray(P)?[ga(P[0]),P[1]?ga(P[1]):void 0]:ga(P),R=!e.disabledTimes(z);return J&&R},S=(J,P)=>e.disabledTimes?Array.isArray(e.disabledTimes)?$(P,J):M(P,J):P,H=J=>{let P=!0;if(!J||x())return!0;const z=!r.value.minDate&&!r.value.maxDate?A(J):J;return(e.maxTime||r.value.maxDate)&&(P=v0(e.maxTime,r.value.maxDate,"max",Fn(z),P)),(e.minTime||r.value.minDate)&&(P=v0(e.minTime,r.value.minDate,"min",Fn(z),P)),S(J,P)},se=J=>{if(!e.monthPicker)return!0;let P=!0;const z=Re(hs(J));if(r.value.minDate&&r.value.maxDate){const R=Re(hs(r.value.minDate)),te=Re(hs(r.value.maxDate));return _n(z,R)&&on(z,te)||St(z,R)||St(z,te)}if(r.value.minDate){const R=Re(hs(r.value.minDate));P=_n(z,R)||St(z,R)}if(r.value.maxDate){const R=Re(hs(r.value.maxDate));P=on(z,R)||St(z,R)}return P},ee=pe(()=>J=>!e.enableTimePicker||e.ignoreTimeValidation?!0:H(J)),ne=pe(()=>J=>e.monthPicker?Array.isArray(J)&&(n.value.enabled||s.value.enabled)?!J.filter(P=>!se(P)).length:se(J):!0);return{isDisabled:w,validateDate:d,validateMonthYearInRange:m,isDateRangeAllowed:_,checkMinMaxRange:V,isValidTime:H,isTimeValid:ee,isMonthValid:ne}},pd=()=>{const e=pe(()=>(r,s)=>r==null?void 0:r.includes(s)),t=pe(()=>(r,s)=>r.count?r.solo?!0:s===0:!0),n=pe(()=>(r,s)=>r.count?r.solo?!0:s===r.count-1:!0);return{hideNavigationButtons:e,showLeftIcon:t,showRightIcon:n}},RB=(e,t,n)=>{const r=fe(0),s=Hr({[ma.timePicker]:!e.enableTimePicker||e.timePicker||e.monthPicker,[ma.calendar]:!1,[ma.header]:!1}),a=pe(()=>e.monthPicker||e.timePicker),o=p=>{var m;if((m=e.flow)!=null&&m.length){if(!p&&a.value)return f();s[p]=!0,Object.keys(s).filter(y=>!s[y]).length||f()}},u=()=>{var p,m;(p=e.flow)!=null&&p.length&&r.value!==-1&&(r.value+=1,t("flow-step",r.value),f()),((m=e.flow)==null?void 0:m.length)===r.value&&Hn().then(()=>d())},d=()=>{r.value=-1},h=(p,m,...y)=>{var w,_;e.flow[r.value]===p&&n.value&&((_=(w=n.value)[m])==null||_.call(w,...y))},f=(p=0)=>{p&&(r.value+=p),h(Xn.month,"toggleMonthPicker",!0),h(Xn.year,"toggleYearPicker",!0),h(Xn.calendar,"toggleTimePicker",!1,!0),h(Xn.time,"toggleTimePicker",!0,!0);const m=e.flow[r.value];(m===Xn.hours||m===Xn.minutes||m===Xn.seconds)&&h(m,"toggleTimePicker",!0,!0,m)};return{childMount:o,updateFlowStep:u,resetFlow:d,handleFlow:f,flowStep:r}},DB={key:1,class:"dp__input_wrap"},PB=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid"],LB={key:2,class:"dp__clear_icon"},IB=fn({compatConfig:{MODE:3},__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...dd},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur"],setup(e,{expose:t,emit:n}){const r=n,s=e,{defaultedTextInput:a,defaultedAriaLabels:o,defaultedInline:u,defaultedConfig:d,defaultedRange:h,defaultedMultiDates:f,defaultedUI:p,getDefaultPattern:m,getDefaultStartTime:y}=sn(s),{checkMinMaxRange:w}=ji(s),_=fe(),E=fe(null),U=fe(!1),V=fe(!1),x=pe(()=>({dp__pointer:!s.disabled&&!s.readonly&&!a.value.enabled,dp__disabled:s.disabled,dp__input_readonly:!a.value.enabled,dp__input:!0,dp__input_icon_pad:!s.hideInputIcon,dp__input_valid:!!s.state,dp__input_invalid:s.state===!1,dp__input_focus:U.value||s.isMenuOpen,dp__input_reg:!a.value.enabled,[s.inputClassName]:!!s.inputClassName,...p.value.input??{}})),A=()=>{r("set-input-date",null),s.clearable&&s.autoApply&&(r("set-empty-date"),_.value=null)},F=R=>{const te=y();return K$(R,a.value.format??m(),te??gw({},s.enableSeconds),s.inputValue,V.value,s.formatLocale)},B=R=>{const{rangeSeparator:te}=a.value,[be,De]=R.split(`${te}`);if(be){const He=F(be.trim()),K=De?F(De.trim()):null;if(yl(He,K))return;const ue=He&&K?[He,K]:[He];w(K,ue,0)&&(_.value=He?ue:null)}},$=()=>{V.value=!0},M=R=>{if(h.value.enabled)B(R);else if(f.value.enabled){const te=R.split(";");_.value=te.map(be=>F(be.trim())).filter(be=>be)}else _.value=F(R)},S=R=>{var te;const be=typeof R=="string"?R:(te=R.target)==null?void 0:te.value;be!==""?(a.value.openMenu&&!s.isMenuOpen&&r("open"),M(be),r("set-input-date",_.value)):A(),V.value=!1,r("update:input-value",be)},H=R=>{a.value.enabled?(M(R.target.value),a.value.enterSubmit&&Yh(_.value)&&s.inputValue!==""?(r("set-input-date",_.value,!0),_.value=null):a.value.enterSubmit&&s.inputValue===""&&(_.value=null,r("clear"))):ne(R)},se=R=>{a.value.enabled&&a.value.tabSubmit&&M(R.target.value),a.value.tabSubmit&&Yh(_.value)&&s.inputValue!==""?(r("set-input-date",_.value,!0,!0),_.value=null):a.value.tabSubmit&&s.inputValue===""&&(_.value=null,r("clear",!0))},ee=()=>{U.value=!0,r("focus"),Hn().then(()=>{var R;a.value.enabled&&a.value.selectOnFocus&&((R=E.value)==null||R.select())})},ne=R=>{R.preventDefault(),Ri(R,d.value,!0),a.value.enabled&&a.value.openMenu&&!u.value.input&&!s.isMenuOpen?r("open"):a.value.enabled||r("toggle")},J=()=>{r("real-blur"),U.value=!1,(!s.isMenuOpen||u.value.enabled&&u.value.input)&&r("blur"),s.autoApply&&a.value.enabled&&_.value&&!s.isMenuOpen&&(r("set-input-date",_.value),r("select-date"),_.value=null)},P=R=>{Ri(R,d.value,!0),r("clear")},z=R=>{if(R.key==="Tab"&&se(R),R.key==="Enter"&&H(R),!a.value.enabled){if(R.code==="Tab")return;R.preventDefault()}};return t({focusInput:()=>{var R;(R=E.value)==null||R.focus({preventScroll:!0})},setParsedDate:R=>{_.value=R}}),(R,te)=>{var be;return k(),I("div",{onClick:ne},[R.$slots.trigger&&!R.$slots["dp-input"]&&!Z(u).enabled?Ie(R.$slots,"trigger",{key:0}):ie("",!0),!R.$slots.trigger&&(!Z(u).enabled||Z(u).input)?(k(),I("div",DB,[R.$slots["dp-input"]&&!R.$slots.trigger&&(!Z(u).enabled||Z(u).enabled&&Z(u).input)?Ie(R.$slots,"dp-input",{key:0,value:e.inputValue,isMenuOpen:e.isMenuOpen,onInput:S,onEnter:H,onTab:se,onClear:P,onBlur:J,onKeypress:z,onPaste:$,onFocus:ee,openMenu:()=>R.$emit("open"),closeMenu:()=>R.$emit("close"),toggleMenu:()=>R.$emit("toggle")}):ie("",!0),R.$slots["dp-input"]?ie("",!0):(k(),I("input",{key:1,id:R.uid?`dp-input-${R.uid}`:void 0,ref_key:"inputRef",ref:E,"data-test":"dp-input",name:R.name,class:$e(x.value),inputmode:Z(a).enabled?"text":"none",placeholder:R.placeholder,disabled:R.disabled,readonly:R.readonly,required:R.required,value:e.inputValue,autocomplete:R.autocomplete,"aria-label":(be=Z(o))==null?void 0:be.input,"aria-disabled":R.disabled||void 0,"aria-invalid":R.state===!1?!0:void 0,onInput:S,onBlur:J,onFocus:ee,onKeypress:z,onKeydown:z,onPaste:$},null,42,PB)),v("div",{onClick:te[2]||(te[2]=De=>r("toggle"))},[R.$slots["input-icon"]&&!R.hideInputIcon?(k(),I("span",{key:0,class:"dp__input_icon",onClick:te[0]||(te[0]=De=>r("toggle"))},[Ie(R.$slots,"input-icon")])):ie("",!0),!R.$slots["input-icon"]&&!R.hideInputIcon&&!R.$slots["dp-input"]?(k(),it(Z(Cl),{key:1,class:"dp__input_icon dp__input_icons",onClick:te[1]||(te[1]=De=>r("toggle"))})):ie("",!0)]),R.$slots["clear-icon"]&&e.inputValue&&R.clearable&&!R.disabled&&!R.readonly?(k(),I("span",LB,[Ie(R.$slots,"clear-icon",{clear:P})])):ie("",!0),R.clearable&&!R.$slots["clear-icon"]&&e.inputValue&&!R.disabled&&!R.readonly?(k(),it(Z(ow),{key:3,class:"dp__clear_icon dp__input_icons","data-test":"clear-icon",onClick:te[3]||(te[3]=Et(De=>P(De),["prevent"]))})):ie("",!0)])):ie("",!0)])}}}),NB=typeof window<"u"?window:void 0,lh=()=>{},VB=e=>tp()?(X0(e),!0):!1,FB=(e,t,n,r)=>{if(!e)return lh;let s=lh;const a=qt(()=>Z(e),u=>{s(),u&&(u.addEventListener(t,n,r),s=()=>{u.removeEventListener(t,n,r),s=lh})},{immediate:!0,flush:"post"}),o=()=>{a(),s()};return VB(o),o},$B=(e,t,n,r={})=>{const{window:s=NB,event:a="pointerdown"}=r;return s?FB(s,a,o=>{const u=Ln(e),d=Ln(t);!u||!d||u===o.target||o.composedPath().includes(u)||o.composedPath().includes(d)||n(o)},{passive:!0}):void 0},BB=fn({compatConfig:{MODE:3},__name:"VueDatePicker",props:{...dd},emits:["update:model-value","update:model-timezone-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invalid-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:n}){const r=n,s=e,a=Bi(),o=fe(!1),u=ll(s,"modelValue"),d=ll(s,"timezone"),h=fe(null),f=fe(null),p=fe(null),m=fe(!1),y=fe(null),w=fe(!1),_=fe(!1),E=fe(!1),U=fe(!1),{setMenuFocused:V,setShiftKey:x}=ww(),{clearArrowNav:A}=Ui(),{validateDate:F,isValidTime:B}=ji(s),{defaultedTransitions:$,defaultedTextInput:M,defaultedInline:S,defaultedConfig:H,defaultedRange:se,defaultedMultiDates:ee}=sn(s),{menuTransition:ne,showTransition:J}=Bo($);It(()=>{le(s.modelValue),Hn().then(()=>{if(!S.value.enabled){const xe=He(y.value);xe==null||xe.addEventListener("scroll",G),window==null||window.addEventListener("resize",Q)}}),S.value.enabled&&(o.value=!0),window==null||window.addEventListener("keyup",me),window==null||window.addEventListener("keydown",j)}),ii(()=>{if(!S.value.enabled){const xe=He(y.value);xe==null||xe.removeEventListener("scroll",G),window==null||window.removeEventListener("resize",Q)}window==null||window.removeEventListener("keyup",me),window==null||window.removeEventListener("keydown",j)});const P=$r(a,"all",s.presetDates),z=$r(a,"input");qt([u,d],()=>{le(u.value)},{deep:!0});const{openOnTop:R,menuStyle:te,xCorrect:be,setMenuPosition:De,getScrollableParent:He,shadowRender:K}=CB({menuRef:h,menuRefInner:f,inputRef:p,pickerWrapperRef:y,inline:S,emit:r,props:s,slots:a}),{inputValue:ue,internalModelValue:D,parseExternalModelValue:le,emitModelValue:we,formatInputValue:Y,checkBeforeEmit:Le}=y5(r,s,m),Xe=pe(()=>({dp__main:!0,dp__theme_dark:s.dark,dp__theme_light:!s.dark,dp__flex_display:S.value.enabled,"dp--flex-display-collapsed":E.value,dp__flex_display_with_input:S.value.input})),ye=pe(()=>s.dark?"dp__theme_dark":"dp__theme_light"),et=pe(()=>s.teleport?{to:typeof s.teleport=="boolean"?"body":s.teleport,disabled:!s.teleport||S.value.enabled}:{}),W=pe(()=>({class:"dp__outer_menu_wrap"})),T=pe(()=>S.value.enabled&&(s.timePicker||s.monthPicker||s.yearPicker||s.quarterPicker)),N=()=>{var xe,Fe;return(Fe=(xe=p.value)==null?void 0:xe.$el)==null?void 0:Fe.getBoundingClientRect()},G=()=>{o.value&&(H.value.closeOnScroll?Ge():De())},Q=()=>{var xe;o.value&&De();const Fe=(xe=f.value)==null?void 0:xe.$el.getBoundingClientRect().width;E.value=document.body.offsetWidth<=Fe},me=xe=>{xe.key==="Tab"&&!S.value.enabled&&!s.teleport&&H.value.tabOutClosesMenu&&(y.value.contains(document.activeElement)||Ge()),_.value=xe.shiftKey},j=xe=>{_.value=xe.shiftKey},de=()=>{!s.disabled&&!s.readonly&&(K(w0,s),De(!1),o.value=!0,o.value&&r("open"),o.value||qe(),le(s.modelValue))},ve=()=>{var xe;ue.value="",qe(),(xe=p.value)==null||xe.setParsedDate(null),r("update:model-value",null),r("update:model-timezone-value",null),r("cleared"),H.value.closeOnClearValue&&Ge()},ke=()=>{const xe=D.value;return!xe||!Array.isArray(xe)&&F(xe)?!0:Array.isArray(xe)?ee.value.enabled||xe.length===2&&F(xe[0])&&F(xe[1])?!0:se.value.partialRange&&!s.timePicker?F(xe[0]):!1:!1},Ae=()=>{Le()&&ke()?(we(),Ge()):r("invalid-select",D.value)},Oe=xe=>{Be(),we(),H.value.closeOnAutoApply&&!xe&&Ge()},Be=()=>{p.value&&M.value.enabled&&p.value.setParsedDate(D.value)},Ue=(xe=!1)=>{s.autoApply&&B(D.value)&&ke()&&(se.value.enabled&&Array.isArray(D.value)?(se.value.partialRange||D.value.length===2)&&Oe(xe):Oe(xe))},qe=()=>{M.value.enabled||(D.value=null)},Ge=()=>{S.value.enabled||(o.value&&(o.value=!1,be.value=!1,V(!1),x(!1),A(),r("closed"),ue.value&&le(u.value)),qe(),r("blur"))},ot=(xe,Fe,We=!1)=>{if(!xe){D.value=null;return}const Nn=Array.isArray(xe)?!xe.some(Ls=>!F(Ls)):F(xe),pr=B(xe);Nn&&pr&&(U.value=!0,D.value=xe,Fe&&(w.value=We,Ae(),r("text-submit")),Hn().then(()=>{U.value=!1}))},_t=()=>{s.autoApply&&B(D.value)&&we(),Be()},an=()=>o.value?Ge():de(),Zt=xe=>{D.value=xe},Cn=()=>{M.value.enabled&&(m.value=!0,Y()),r("focus")},hn=()=>{if(M.value.enabled&&(m.value=!1,le(s.modelValue),w.value)){const xe=q$(y.value,_.value);xe==null||xe.focus()}r("blur")},Er=xe=>{f.value&&f.value.updateMonthYear(0,{month:p0(xe.month),year:p0(xe.year)})},ws=xe=>{le(xe??s.modelValue)},pn=(xe,Fe)=>{var We;(We=f.value)==null||We.switchView(xe,Fe)},ce=xe=>H.value.onClickOutside?H.value.onClickOutside(xe):Ge(),Ve=(xe=0)=>{var Fe;(Fe=f.value)==null||Fe.handleFlow(xe)};return $B(h,p,()=>ce(ke)),t({closeMenu:Ge,selectDate:Ae,clearValue:ve,openMenu:de,onScroll:G,formatInputValue:Y,updateInternalModelValue:Zt,setMonthYear:Er,parseModel:ws,switchView:pn,toggleMenu:an,handleFlow:Ve}),(xe,Fe)=>(k(),I("div",{ref_key:"pickerWrapperRef",ref:y,class:$e(Xe.value),"data-datepicker-instance":""},[he(IB,cn({ref_key:"inputRef",ref:p,"input-value":Z(ue),"onUpdate:inputValue":Fe[0]||(Fe[0]=We=>Tn(ue)?ue.value=We:null),"is-menu-open":o.value},xe.$props,{onClear:ve,onOpen:de,onSetInputDate:ot,onSetEmptyDate:Z(we),onSelectDate:Ae,onToggle:an,onClose:Ge,onFocus:Cn,onBlur:hn,onRealBlur:Fe[1]||(Fe[1]=We=>m.value=!1)}),Bn({_:2},[Qe(Z(z),(We,Nn)=>({name:We,fn:Te(pr=>[Ie(xe.$slots,We,wn(qn(pr)))])}))]),1040,["input-value","is-menu-open","onSetEmptyDate"]),(k(),it(Al(xe.teleport?O_:"div"),wn(qn(et.value)),{default:Te(()=>[he(vs,{name:Z(ne)(Z(R)),css:Z(J)&&!Z(S).enabled},{default:Te(()=>[o.value?(k(),I("div",cn({key:0,ref_key:"dpWrapMenuRef",ref:h},W.value,{class:{"dp--menu-wrapper":!Z(S).enabled},style:Z(S).enabled?void 0:Z(te)}),[he(w0,cn({ref_key:"dpMenuRef",ref:f},xe.$props,{"internal-model-value":Z(D),"onUpdate:internalModelValue":Fe[2]||(Fe[2]=We=>Tn(D)?D.value=We:null),class:{[ye.value]:!0,"dp--menu-wrapper":xe.teleport},"open-on-top":Z(R),"no-overlay-focus":T.value,collapse:E.value,"get-input-rect":N,"is-text-input-date":U.value,onClosePicker:Ge,onSelectDate:Ae,onAutoApply:Ue,onTimeUpdate:_t,onFlowStep:Fe[3]||(Fe[3]=We=>xe.$emit("flow-step",We)),onUpdateMonthYear:Fe[4]||(Fe[4]=We=>xe.$emit("update-month-year",We)),onInvalidSelect:Fe[5]||(Fe[5]=We=>xe.$emit("invalid-select",Z(D))),onAutoApplyInvalid:Fe[6]||(Fe[6]=We=>xe.$emit("invalid-select",We)),onInvalidFixedRange:Fe[7]||(Fe[7]=We=>xe.$emit("invalid-fixed-range",We)),onRecalculatePosition:Z(De),onTooltipOpen:Fe[8]||(Fe[8]=We=>xe.$emit("tooltip-open",We)),onTooltipClose:Fe[9]||(Fe[9]=We=>xe.$emit("tooltip-close",We)),onTimePickerOpen:Fe[10]||(Fe[10]=We=>xe.$emit("time-picker-open",We)),onTimePickerClose:Fe[11]||(Fe[11]=We=>xe.$emit("time-picker-close",We)),onAmPmChange:Fe[12]||(Fe[12]=We=>xe.$emit("am-pm-change",We)),onRangeStart:Fe[13]||(Fe[13]=We=>xe.$emit("range-start",We)),onRangeEnd:Fe[14]||(Fe[14]=We=>xe.$emit("range-end",We)),onDateUpdate:Fe[15]||(Fe[15]=We=>xe.$emit("date-update",We)),onInvalidDate:Fe[16]||(Fe[16]=We=>xe.$emit("invalid-date",We)),onOverlayToggle:Fe[17]||(Fe[17]=We=>xe.$emit("overlay-toggle",We))}),Bn({_:2},[Qe(Z(P),(We,Nn)=>({name:We,fn:Te(pr=>[Ie(xe.$slots,We,wn(qn({...pr})))])}))]),1040,["internal-model-value","class","open-on-top","no-overlay-focus","collapse","is-text-input-date","onRecalculatePosition"])],16)):ie("",!0)]),_:3},8,["name","css"])]),_:3},16))],2))}}),om=(()=>{const e=BB;return e.install=t=>{t.component("Vue3DatePicker",e)},e})(),HB=Object.freeze(Object.defineProperty({__proto__:null,default:om},Symbol.toStringTag,{value:"Module"}));Object.entries(HB).forEach(([e,t])=>{e!=="default"&&(om[e]=t)});const UB={components:{VueDatePicker:om},props:["name","placeholder","value","lang","format","onClear","flow"],data(){return{time1:this.value?this.value:"",time2:"",shortcuts:[{text:"Today",start:new Date,end:new Date}]}},methods:{onChange(e){if(this.$emit("onClear"),!(e instanceof Date)||isNaN(e.getTime()))return"";const t=u=>u.toString().padStart(2,"0"),n=e.getFullYear(),r=t(e.getMonth()+1),s=t(e.getDate()),a=t(e.getHours()),o=t(e.getMinutes());this.$emit("onChange",`${n}-${r}-${s} ${a}:${o}`)}}},jB={class:"datepicker-wrapper"};function WB(e,t,n,r,s,a){const o=at("VueDatePicker");return k(),I("div",jB,[he(o,{class:"custom-date-picker",name:n.name,modelValue:s.time1,"onUpdate:modelValue":[t[0]||(t[0]=u=>s.time1=u),a.onChange],type:"datetime",format:n.format||"yyyy-MM-dd HH:mm","time-picker-options":{start:"07:00",step:"00:30",end:"23:30"},lang:"en",placeholder:n.placeholder,flow:n.flow},null,8,["name","modelValue","format","placeholder","onUpdate:modelValue","flow"])])}const qB=vt(UB,[["render",WB],["__scopeId","data-v-c2f72b26"]]),YB={props:{question:{type:Object,required:!0}},setup(e){const t=fe(!0),n=()=>{t.value=!t.value},r=pe(()=>({expanded:t.value,collapsed:!t.value}));return{isOpen:t,toggleOpen:n,chevron:r}}},zB={class:"codeweek-question-container"},KB={class:"expander-always-visible"},GB={class:"expansion"},JB={class:"content"},ZB={class:"content"},XB={key:0,class:"maps"},QB={key:1,class:"button"},e8=["href"],t8=["value"];function n8(e,t,n,r,s,a){return k(),I("div",zB,[v("div",KB,[v("div",GB,[v("button",{onClick:t[0]||(t[0]=(...o)=>r.toggleOpen&&r.toggleOpen(...o)),class:"codeweek-expander-button"},[v("div",null,re(r.isOpen?"-":"+"),1)])]),v("div",JB,[v("h1",null,re(n.question.title1),1)])]),v("div",{class:$e([r.chevron,"container-expansible"])},[t[2]||(t[2]=v("div",{class:"expansion"},[v("div",{class:"expansion-path"})],-1)),v("div",ZB,[v("h2",null,re(n.question.title2),1),(k(!0),I(Ne,null,Qe(n.question.content,(o,u)=>(k(),I("p",{key:u},re(o),1))),128)),n.question.map?(k(),I("div",XB,t[1]||(t[1]=[v("iframe",{class:"map",src:"/map",scrolling:"no"},null,-1)]))):ie("",!0),n.question.button.show?(k(),I("div",QB,[v("a",{href:n.question.button.link,class:"codeweek-button"},[v("input",{type:"submit",value:n.question.button.label},null,8,t8)],8,e8)])):ie("",!0)])],2)])}const r8=vt(YB,[["render",n8]]),s8=fn({emits:["loaded"],methods:{onChange(e){if(!e.target.files.length)return;let t=e.target.files[0],n=new FileReader;n.readAsDataURL(t),n.onload=r=>{let s=r.target.result;this.$emit("loaded",{src:s,file:t})}}}});function i8(e,t,n,r,s,a){return k(),I("div",null,[v("input",{id:"image",type:"file",accept:"image/*",onChange:t[0]||(t[0]=(...o)=>e.onChange&&e.onChange(...o))},null,32),t[1]||(t[1]=v("label",{class:"!flex justify-center items-center !h-10 !w-10 !p-0 !bg-dark-blue border-2 border-white",for:"image"},[v("img",{class:"w-5 h-5",src:"/images/edit.svg"})],-1))])}const Ew=vt(s8,[["render",i8]]),a8={components:{ImageUpload:Ew,Flash:od},props:{image:{type:String,default:""},picture:{type:String,default:""}},setup(e){const t=fe(e.picture||""),n=fe(e.image||""),r=fe(""),s=u=>{a(u.file)},a=u=>{let d=new FormData;d.append("picture",u),xt.post("/api/events/picture",d).then(h=>{r.value="",t.value=h.data.path,n.value=h.data.imageName,ei.emit("flash",{message:"Picture uploaded!",level:"success"})}).catch(h=>{h.response.data.errors&&h.response.data.errors.picture?r.value=h.response.data.errors.picture[0]:r.value="Image is too large. Maximum is 1Mb",ei.emit("flash",{message:r.value,level:"error"})})};return{pictureClone:t,imageClone:n,error:r,onLoad:s,persist:a,remove:()=>{xt.delete("/api/event/picture").then(()=>{ei.emit("flash",{message:"Event Picture deleted!",level:"success"}),t.value="https://s3-eu-west-1.amazonaws.com/codeweek-dev/events/pictures/default.png"})}}}},l8={key:0,style:{"background-color":"darkred",color:"white",padding:"4px"}},o8={class:"level"},u8=["src"],c8=["value"],d8={method:"POST",enctype:"multipart/form-data"};function f8(e,t,n,r,s,a){const o=at("ImageUpload"),u=at("Flash");return k(),I("div",null,[r.error!==""?(k(),I("div",l8,re(r.error),1)):ie("",!0),v("div",o8,[v("img",{src:r.pictureClone,class:"mr-1"},null,8,u8)]),v("input",{type:"hidden",name:"picture",value:r.imageClone},null,8,c8),v("form",d8,[he(o,{name:"picture",class:"mr-1",onLoaded:r.onLoad},null,8,["onLoaded"])]),he(u)])}const h8=vt(a8,[["render",f8]]);var p8=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function m8(e,t,n){return n={path:t,exports:{},require:function(r,s){return g8(r,s??n.path)}},e(n,n.exports),n.exports}function g8(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var v8=m8(function(e,t){(function(n,r){e.exports=r()})(p8,function(){var n="__v-click-outside",r=typeof window<"u",s=typeof navigator<"u",a=r&&("ontouchstart"in window||s&&navigator.msMaxTouchPoints>0)?["touchstart"]:["click"],o=function(f){var p=f.event,m=f.handler;(0,f.middleware)(p)&&m(p)},u=function(f,p){var m=function(V){var x=typeof V=="function";if(!x&&typeof V!="object")throw new Error("v-click-outside: Binding value must be a function or an object");return{handler:x?V:V.handler,middleware:V.middleware||function(A){return A},events:V.events||a,isActive:V.isActive!==!1,detectIframe:V.detectIframe!==!1,capture:!!V.capture}}(p.value),y=m.handler,w=m.middleware,_=m.detectIframe,E=m.capture;if(m.isActive){if(f[n]=m.events.map(function(V){return{event:V,srcTarget:document.documentElement,handler:function(x){return function(A){var F=A.el,B=A.event,$=A.handler,M=A.middleware,S=B.path||B.composedPath&&B.composedPath();(S?S.indexOf(F)<0:!F.contains(B.target))&&o({event:B,handler:$,middleware:M})}({el:f,event:x,handler:y,middleware:w})},capture:E}}),_){var U={event:"blur",srcTarget:window,handler:function(V){return function(x){var A=x.el,F=x.event,B=x.handler,$=x.middleware;setTimeout(function(){var M=document.activeElement;M&&M.tagName==="IFRAME"&&!A.contains(M)&&o({event:F,handler:B,middleware:$})},0)}({el:f,event:V,handler:y,middleware:w})},capture:E};f[n]=[].concat(f[n],[U])}f[n].forEach(function(V){var x=V.event,A=V.srcTarget,F=V.handler;return setTimeout(function(){f[n]&&A.addEventListener(x,F,E)},0)})}},d=function(f){(f[n]||[]).forEach(function(p){return p.srcTarget.removeEventListener(p.event,p.handler,p.capture)}),delete f[n]},h=r?{beforeMount:u,updated:function(f,p){var m=p.value,y=p.oldValue;JSON.stringify(m)!==JSON.stringify(y)&&(d(f),u(f,{value:m}))},unmounted:d}:{};return{install:function(f){f.directive("click-outside",h)},directive:h}})}),y8=v8;const _8={class:"v3ti-loader-wrapper"},b8=v("div",{class:"v3ti-loader"},null,-1),w8=v("span",null,"Loading",-1),x8=[b8,w8];function k8(e,t){return k(),I("div",_8,x8)}function Ow(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",n==="top"&&r.firstChild?r.insertBefore(s,r.firstChild):r.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}var S8=`.v3ti-loader-wrapper { + display: flex; + align-items: center; + justify-content: center; + color: #112B3C; +} +.v3ti-loader-wrapper .v3ti-loader { + width: 18px; + height: 18px; + border-radius: 50%; + display: inline-block; + border-top: 2px solid #112B3C; + border-right: 2px solid transparent; + box-sizing: border-box; + animation: rotation 0.8s linear infinite; + margin-right: 8px; +} +@keyframes rotation { +0% { + transform: rotate(0deg); +} +100% { + transform: rotate(360deg); +} +}`;Ow(S8);const Mw={};Mw.render=k8;var T8=Mw,Rw={name:"Vue3TagsInput",emits:["update:modelValue","update:tags","on-limit","on-tags-changed","on-remove","on-error","on-focus","on-blur","on-select","on-select-duplicate-tag","on-new-tag"],props:{readOnly:{type:Boolean,default:!1},modelValue:{type:String,default:""},validate:{type:[String,Function,Object],default:""},addTagOnKeys:{type:Array,default:function(){return[13,",",32]}},placeholder:{type:String,default:""},tags:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},limit:{type:Number,default:-1},allowDuplicates:{type:Boolean,default:!1},addTagOnBlur:{type:Boolean,default:!1},selectItems:{type:Array,default:()=>[]},select:{type:Boolean,default:!1},duplicateSelectItem:{type:Boolean,default:!0},uniqueSelectField:{type:String,default:"id"},addTagOnKeysWhenSelect:{type:Boolean,default:!1},isShowNoData:{type:Boolean,default:!0}},components:{Loading:T8},directives:{clickOutside:y8.directive},data(){return{isInputActive:!1,isError:!1,newTag:"",innerTags:[],multiple:!1}},computed:{isLimit(){const e=this.limit>0&&Number(this.limit)===this.innerTags.length;return e&&this.$emit("on-limit"),e},selectedItemsIds(){return this.duplicateSelectItem?[]:this.tags.map(e=>e[this.uniqueSelectField]||"")}},watch:{error(){this.isError=this.error},modelValue:{immediate:!0,handler(e){this.newTag=e}},tags:{deep:!0,immediate:!0,handler(e){this.innerTags=[...e]}}},methods:{isShot(e){return!!this.$slots[e]},makeItNormal(e){this.$emit("update:modelValue",e.target.value),this.$refs.inputTag.className="v3ti-new-tag",this.$refs.inputTag.style.textDecoration="none"},resetData(){this.innerTags=[]},resetInputValue(){this.newTag="",this.$emit("update:modelValue","")},setPosition(){const e=this.$refs.inputBox,t=this.$refs.contextMenu;if(e&&t){t.style.display="block";const n=e.clientHeight||32,r=3;t.style.top=n+r+"px"}},closeContextMenu(){this.$refs.contextMenu&&(this.$refs.contextMenu.style={display:"none"})},handleSelect(e){if(this.isShowCheckmark(e)){const t=this.tags.filter(n=>e.id!==n.id);this.$emit("update:tags",t),this.$emit("on-select-duplicate-tag",e),this.resetInputValue()}else this.$emit("on-select",e);this.$nextTick(()=>{this.closeContextMenu()})},isShowCheckmark(e){return this.duplicateSelectItem?!1:this.selectedItemsIds.includes(e[this.uniqueSelectField])},focusNewTag(){this.select&&!this.disabled&&this.setPosition(),!(this.readOnly||!this.$el.querySelector(".v3ti-new-tag"))&&this.$el.querySelector(".v3ti-new-tag").focus()},handleInputFocus(e){this.isInputActive=!0,this.$emit("on-focus",e)},handleInputBlur(e){this.isInputActive=!1,this.addNew(e),this.$emit("on-blur",e)},addNew(e){if(this.select&&!this.addTagOnKeysWhenSelect)return;const t=e?this.addTagOnKeys.indexOf(e.keyCode)!==-1||this.addTagOnKeys.indexOf(e.key)!==-1:!0,n=e&&e.type!=="blur";!t&&(n||!this.addTagOnBlur)||this.isLimit||(this.newTag&&(this.allowDuplicates||this.innerTags.indexOf(this.newTag)===-1)&&this.validateIfNeeded(this.newTag)?(this.innerTags.push(this.newTag),this.addTagOnKeysWhenSelect&&(this.$emit("on-new-tag",this.newTag),this.updatePositionContextMenu()),this.resetInputValue(),this.tagChange(),e&&e.preventDefault()):(this.validateIfNeeded(this.newTag)?this.makeItError(!0):this.makeItError(!1),e&&e.preventDefault()))},updatePositionContextMenu(){this.$nextTick(()=>{this.setPosition()})},makeItError(e){this.newTag!==""&&(this.$refs.inputTag.className="v3ti-new-tag v3ti-new-tag--error",this.$refs.inputTag.style.textDecoration="underline",this.$emit("on-error",e))},validateIfNeeded(e){return this.validate===""||this.validate===void 0?!0:typeof this.validate=="function"?this.validate(e):!0},removeLastTag(){this.newTag||(this.innerTags.pop(),this.tagChange(),this.updatePositionContextMenu())},remove(e){this.innerTags.splice(e,1),this.tagChange(),this.$emit("on-remove",e),this.updatePositionContextMenu()},tagChange(){this.$emit("on-tags-changed",this.innerTags)}}};const A8={key:1,class:"v3ti-tag-content"},C8=["onClick"],E8=["placeholder","disabled"],O8={key:0,class:"v3ti-loading"},M8={key:1,class:"v3ti-no-data"},R8={key:1},D8={key:2},P8=["onClick"],L8={class:"v3ti-context-item--label"},I8={key:0,class:"v3ti-icon-selected-tag",width:"44",height:"44",viewBox:"0 0 24 24","stroke-width":"1.5",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},N8=v("path",{stroke:"none",d:"M0 0h24v24H0z"},null,-1),V8=v("path",{d:"M5 12l5 5l10 -10"},null,-1),F8=[N8,V8];function $8(e,t,n,r,s,a){const o=at("Loading"),u=W_("click-outside");return Dn((k(),I("div",{onClick:t[6]||(t[6]=d=>a.focusNewTag()),class:$e([{"v3ti--focus":s.isInputActive,"v3ti--error":s.isError},"v3ti"])},[v("div",{class:$e(["v3ti-content",{"v3ti-content--select":n.select}]),ref:"inputBox"},[(k(!0),I(Ne,null,Qe(s.innerTags,(d,h)=>(k(),I("span",{key:h,class:"v3ti-tag"},[a.isShot("item")?Ie(e.$slots,"item",wn(cn({key:0},{name:d,index:h,tag:d}))):(k(),I("span",A8,re(d),1)),n.readOnly?ie("",!0):(k(),I("a",{key:2,onClick:Et(f=>a.remove(h),["prevent","stop"]),class:"v3ti-remove-tag"},null,8,C8))]))),128)),Dn(v("input",{ref:"inputTag",placeholder:n.placeholder,"onUpdate:modelValue":t[0]||(t[0]=d=>s.newTag=d),onKeydown:[t[1]||(t[1]=$n(Et(function(){return a.removeLastTag&&a.removeLastTag(...arguments)},["stop"]),["delete"])),t[2]||(t[2]=function(){return a.addNew&&a.addNew(...arguments)})],onBlur:t[3]||(t[3]=function(){return a.handleInputBlur&&a.handleInputBlur(...arguments)}),onFocus:t[4]||(t[4]=function(){return a.handleInputFocus&&a.handleInputFocus(...arguments)}),onInput:t[5]||(t[5]=function(){return a.makeItNormal&&a.makeItNormal(...arguments)}),class:"v3ti-new-tag",disabled:n.readOnly},null,40,E8),[[Ni,s.newTag]])],2),n.select?(k(),I("section",{key:0,class:$e(["v3ti-context-menu",{"v3ti-context-menu-no-data":!n.isShowNoData&&n.selectItems.length===0}]),ref:"contextMenu"},[n.loading?(k(),I("div",O8,[a.isShot("loading")?Ie(e.$slots,"default",{key:0}):(k(),it(o,{key:1}))])):ie("",!0),!n.loading&&n.selectItems.length===0&&n.isShowNoData?(k(),I("div",M8,[a.isShot("no-data")?Ie(e.$slots,"no-data",{key:0}):(k(),I("span",R8," No data "))])):ie("",!0),!n.loading&&n.selectItems.length>0?(k(),I("div",D8,[(k(!0),I(Ne,null,Qe(n.selectItems,(d,h)=>(k(),I("div",{key:h,class:$e(["v3ti-context-item",{"v3ti-context-item--active":a.isShowCheckmark(d)}]),onClick:Et(f=>a.handleSelect(d,h),["stop"])},[v("div",L8,[Ie(e.$slots,"select-item",wn(qn(d)))]),a.isShowCheckmark(d)?(k(),I("svg",I8,F8)):ie("",!0)],10,P8))),128))])):ie("",!0)],2)):ie("",!0)],2)),[[u,a.closeContextMenu]])}var B8=`.v3ti { + border-radius: 5px; + min-height: 32px; + line-height: 1.4; + background-color: #fff; + border: 1px solid #9ca3af; + cursor: text; + text-align: left; + -webkit-appearance: textfield; + display: flex; + flex-wrap: wrap; + position: relative; +} +.v3ti .v3ti-icon-selected-tag { + stroke: #19be6b; + width: 1rem; + height: 1rem; + margin-left: 4px; +} +.v3ti--focus { + outline: 0; + border-color: #000000; + box-shadow: 0 0 0 1px #000000; +} +.v3ti--error { + border-color: #F56C6C; +} +.v3ti .v3ti-no-data { + color: #d8d8d8; + text-align: center; + padding: 4px 7px; +} +.v3ti .v3ti-loading { + padding: 4px 7px; + text-align: center; +} +.v3ti .v3ti-context-menu { + max-height: 150px; + min-width: 150px; + overflow: auto; + display: none; + outline: none; + position: absolute; + top: 0; + left: 0; + right: 0; + margin: 0; + padding: 5px 0; + background: #ffffff; + z-index: 1050; + color: #475569; + box-shadow: 0 3px 8px 2px rgba(0, 0, 0, 0.1); + border-radius: 0 0 6px 6px; +} +.v3ti .v3ti-context-menu .v3ti-context-item { + padding: 4px 7px; + display: flex; + align-items: center; +} +.v3ti .v3ti-context-menu .v3ti-context-item:hover { + background: #e8e8e8; + cursor: pointer; +} +.v3ti .v3ti-context-menu .v3ti-context-item--label { + flex: 1; + min-width: 1px; +} +.v3ti .v3ti-context-menu .v3ti-context-item--active { + color: #317CAF; +} +.v3ti .v3ti-context-menu-no-data { + padding: 0; +} +.v3ti .v3ti-content { + width: 100%; + display: flex; + flex-wrap: wrap; +} +.v3ti .v3ti-content--select { + padding-right: 30px; +} +.v3ti .v3ti-tag { + display: flex; + font-weight: 400; + margin: 3px; + padding: 0 5px; + background: #317CAF; + color: #ffffff; + height: 27px; + border-radius: 5px; + align-items: center; + max-width: calc(100% - 16px); +} +.v3ti .v3ti-tag .v3ti-tag-content { + flex: 1; + min-width: 1px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} +.v3ti .v3ti-tag .v3ti-remove-tag { + color: #ffffff; + transition: opacity 0.3s ease; + opacity: 0.5; + cursor: pointer; + padding: 0 5px 0 7px; +} +.v3ti .v3ti-tag .v3ti-remove-tag::before { + content: "x"; +} +.v3ti .v3ti-tag .v3ti-remove-tag:hover { + opacity: 1; +} +.v3ti .v3ti-new-tag { + background: transparent; + border: 0; + font-weight: 400; + margin: 3px; + outline: none; + padding: 0 4px; + flex: 1; + min-width: 60px; + height: 27px; +} +.v3ti .v3ti-new-tag--error { + color: #F56C6C; +}`;Ow(B8);Rw.render=$8;var H8=(()=>{const e=Rw;return e.install=t=>{t.component("Vue3TagsInput",e)},e})();const U8=fn({components:{Vue3TagsInput:H8},props:{value:{type:String,default:""}},data(){return{tags:this.value?this.value.split(","):[]}},methods:{handleChangeTag(e){this.tags=e}}}),j8={class:"input-tag-wrapper"},W8=["value"];function q8(e,t,n,r,s,a){const o=at("vue3-tags-input");return k(),I("div",j8,[he(o,{tags:e.tags,placeholder:"enter some tags","add-tag-on-keys":[9,13,188],onOnTagsChanged:e.handleChangeTag},null,8,["tags","onOnTagsChanged"]),v("input",{type:"hidden",name:"tags",value:e.tags},null,8,W8)])}const Y8=vt(U8,[["render",q8]]),z8={props:["event"],data(){return{reported_at:this.event.reported_at,certificate_url:this.event.certificate_url,status:this.event.status}},methods:{report(){window.location.href="/event/report/"+this.event.id},download(){window.location.href=this.event.certificate_url}}},K8={key:0},G8={key:0},J8={class:"report-event"},Z8={style:{"text-align":"right"}},X8={class:"actions"},Q8={key:1},eH={class:"event-already-reported"},tH={class:"actions"};function nH(e,t,n,r,s,a){return s.status==="APPROVED"?(k(),I("div",K8,[s.reported_at==null||s.certificate_url==null?(k(),I("div",G8,[v("div",J8,[v("div",Z8,re(e.$t("event.submit_event_and_report")),1),v("div",X8,[v("button",{onClick:t[0]||(t[0]=(...o)=>a.report&&a.report(...o)),class:"codeweek-action-button"},re(e.$t("event.report_and_claim")),1)])])])):(k(),I("div",Q8,[v("div",eH,[v("div",null,re(e.$t("event.certificate_ready")),1),v("div",tH,[v("button",{onClick:t[1]||(t[1]=(...o)=>a.download&&a.download(...o)),class:"codeweek-action-button"},re(e.$t("event.view_your_certificate")),1)])])]))])):ie("",!0)}const rH=vt(z8,[["render",nH]]),sH={props:{event:{type:Object,default:()=>({})}},setup(e){const{recurringFrequentlyMap:t}=Hi(),n=pe(()=>{var o,u;const a=[];return e.event.highlighted_status==="FEATURED"&&a.push({title:"Featured",highlight:!0}),["daily","weekly","monthly"].includes((o=e.event)==null?void 0:o.recurring_event)&&a.push({title:t.value[(u=e.event)==null?void 0:u.recurring_event]}),a}),r=pe(()=>{const a=d=>{if(!d)return"";const h=new Date(d),f=h.getDate(),p=h.toLocaleString("en-US",{month:"short"}),m=h.getFullYear();return h.toLocaleString("en-US",{hour:"numeric",hour12:!0}),`${f}, ${p} ${m}`},o=e.event.start_date;if(!o)return"";const u=new Date(o);return u.getDate(),u.toLocaleString("en-US",{month:"short"}),u.getFullYear(),u.toLocaleString("en-US",{hour:"numeric",hour12:!0}),`${a(e.event.start_date)} - ${a(e.event.end_date)}`});return{eventTags:n,eventStartDateText:r,limit:a=>a.length>400?a.substring(0,400)+"...":a}}},iH={class:"flex flex-col bg-white rounded-lg overflow-hidden"},aH={class:"flex-shrink-0"},lH=["src"],oH={class:"flex-grow flex flex-col gap-2 px-6 py-4"},uH={key:0,class:"flex gap-2 flex-wrap mb-2"},cH={key:0,class:"inline-block w-4 h-4 text-white",src:"/images/star-white.svg"},dH={class:"text-dark-blue font-semibold font-['Montserrat'] text-base leading-6"},fH={class:"text-slate-500 text-[16px] leading-[22px] font-semibold"},hH=["innerHTML"],pH={class:""},mH=["href"];function gH(e,t,n,r,s,a){return k(),I("div",iH,[v("div",aH,[v("img",{src:n.event.picture_path,class:"w-full object-cover aspect-[1.5]"},null,8,lH)]),v("div",oH,[r.eventTags.length?(k(),I("div",uH,[(k(!0),I(Ne,null,Qe(r.eventTags,({title:o,highlight:u})=>(k(),I("span",{class:$e(["flex items-center gap-2 py-1 px-3 text-sm font-semibold rounded-full whitespace-nowrap leading-4",[u?"bg-dark-blue text-white":"bg-light-blue-100 text-slate-500"]])},[u?(k(),I("img",cH)):ie("",!0),v("span",null,[(k(!0),I(Ne,null,Qe(o.split(" "),d=>(k(),I(Ne,null,[d?(k(),I("span",{key:0,class:$e(["mr-[2px]",{"font-sans":d==="&"}])},re(d),3)):ie("",!0)],64))),256))])],2))),256))])):ie("",!0),v("div",dH,re(n.event.title),1),v("div",fH,re(r.eventStartDateText),1),v("div",{class:"flex-grow text-slate-500 text-[16px] leading-[22px] mb-2 [&_p]:p-0",innerHTML:r.limit(n.event.description)},null,8,hH),v("div",pH,[v("a",{class:"flex justify-center items-center gap-2 text-[#1C4DA1] border-solid border-2 border-[#1C4DA1] rounded-full py-3 px-8 font-semibold text-lg transition-all duration-300 hover:bg-[#E8EDF6] group",href:"/view/"+n.event.id+"/"+n.event.slug},t[0]||(t[0]=[v("span",null,"View activity",-1),v("div",{class:"flex gap-2 w-4 overflow-hidden"},[v("img",{src:"/images/arrow-right-icon.svg",class:"min-w-4 duration-500 transform -translate-x-6 group-hover:translate-x-0 text-[#1C4DA1]"}),v("img",{src:"/images/arrow-right-icon.svg",class:"min-w-4 duration-500 transform -translate-x-6 group-hover:translate-x-0 text-[#1C4DA1]"})],-1)]),8,mH)])])])}const Dw=vt(sH,[["render",gH]]),vH={props:{event:{type:Object,default:()=>({})},mapTileUrl:String,canApprove:Boolean,canEdit:Boolean,fromText:String,toText:String,lastUpdateText:String,eventPath:String,appUrl:String,shareUrl:String,emailHref:String},setup(e){console.log(e.event);const{activityFormatOptionsMap:t,durationOptionsMap:n,ageOptions:r,ageOptionsMap:s,recurringFrequentlyMap:a,recurringTypeOptionsMap:o}=Hi(),u=fe(null),d=pe(()=>{var p;return(p=e.event.ages)==null?void 0:p.split(",").map(m=>{var y,w;return(w=(y=r.value)==null?void 0:y.find(({id:_})=>_===m))==null?void 0:w.name})}),h=p=>{const m=u.value;if(!m)return;const y="fixed left-0 top-[139px] md:top-[123px] z-[110] h-[calc(100dvh-139px)] md:h-[calc(100dvh-123px)]";p?m.classList.add(...y.split(" ")):m.classList.remove(...y.split(" "))},f=()=>{const p=L.map("mapid");L.tileLayer(e.mapTileUrl,{maxZoom:18,attribution:'© Mapbox',tileSize:512,zoomOffset:-1,zoomControl:!1}).addTo(p),p.setView([51,10],5);let m=[51,10];e.event.latitude&&e.event.longitude&&(m=[e.event.latitude,e.event.longitude]);const y=L.icon({iconUrl:"/images/marker-orange.svg",iconSize:[44,62],iconAnchor:[22,62],popupAnchor:[0,-60]});L.marker(m,{icon:y}).addTo(p),p.setView(m,5)};return It(()=>{setTimeout(()=>{f()},2e3)}),{activityFormatOptionsMap:t,eventAges:d,durationOptionsMap:n,ageOptionsMap:s,recurringFrequentlyMap:a,recurringTypeOptionsMap:o,mapContainerRef:u,handleToggleMapFullScreen:h}}},yH={class:"relative z-10"},_H={class:"flex relative z-10 justify-center py-10 md:py-20 codeweek-container-lg"},bH={class:"w-full max-w-[880px] gap-2 text-xl"},wH={class:"text-dark-blue text-[22px] md:text-4xl leading-7 md:leading-[44px] font-medium font-['Montserrat'] mb-2"},xH={class:"text-[#20262C] font-normal p-0 mb-6"},kH={key:0,class:"mb-6"},SH={class:"flex flex-wrap gap-2"},TH={class:"flex gap-2 items-center px-4 py-1 bg-light-blue-100 rounded-full w-fit"},AH={class:"p-0 text-base font-semibold text-slate-500"},CH={class:"mb-6"},EH={class:"p-0 mb-2 font-semibold text-slate-500"},OH={class:"text-[#20262C] font-normal p-0 mb-6"},MH={key:1,class:"mb-6"},RH={class:"p-0 mb-2 font-semibold text-slate-500"},DH={class:"flex flex-wrap gap-2"},PH={class:"flex gap-2 items-center px-4 py-1 bg-light-blue-100 rounded-full w-fit"},LH={class:"p-0 text-base font-semibold text-slate-500"},IH={key:2,class:"mb-6"},NH={class:"flex flex-wrap gap-2"},VH={class:"flex gap-2 items-center px-4 py-1 bg-light-blue-100 rounded-full w-fit"},FH={class:"p-0 text-base font-semibold text-slate-500"},$H={key:0,class:"flex gap-2 items-center px-4 py-1 bg-light-blue-100 rounded-full w-fit"},BH={class:"p-0 text-base font-semibold text-slate-500"},HH={key:1,class:"flex gap-2 items-center px-4 py-1 bg-light-blue-100 rounded-full w-fit"},UH={class:"p-0 text-base font-semibold text-slate-500"},jH={key:3,class:"mb-6"},WH={class:"p-0 mb-2 font-semibold text-slate-500"},qH={class:"flex flex-wrap gap-2"},YH={class:"flex gap-2 items-center px-4 py-1 bg-light-blue-100 rounded-full w-fit"},zH={class:"p-0 text-base font-semibold text-slate-500"},KH={key:4,class:"mb-6"},GH={class:"flex flex-wrap gap-2"},JH={class:"flex gap-2 items-center px-4 py-1 bg-light-blue-100 rounded-full w-fit"},ZH={class:"p-0 text-base font-semibold text-slate-500"},XH={key:5,class:"mb-6"},QH={class:"flex flex-wrap gap-2"},eU={class:"flex gap-2 items-center px-4 py-1 bg-light-blue-100 rounded-full w-fit"},tU={class:"p-0 text-base font-semibold text-slate-500"},nU={class:"mb-6"},rU={class:"p-0 mb-2 font-semibold text-slate-500"},sU={class:"text-[#20262C] font-normal p-0 mb-6"},iU={class:"mb-6 [&_p]:empty:hidden"},aU={class:"p-0 mb-2 font-semibold text-slate-500"},lU=["innerHTML"],oU={class:"mb-6"},uU={class:"text-[#20262C] font-normal p-0 mb-6"},cU={ref:"mapContainerRef",class:"w-full h-[520px] top-0 left-0 mb-6 rounded-lg overflow-hidden"},dU={id:"mapid",class:"relative w-full h-full"},fU={style:{"z-index":"999"},id:"map-controls",class:"flex absolute left-2 top-4 z-50 flex-col"},hU={class:"flex gap-4 items-center"},pU=["data-href"],mU=["data-href","data-text"],gU=["title","href"],vU=["data-href"];function yU(e,t,n,r,s,a){var o,u,d;return k(),I("section",yH,[v("div",_H,[v("div",bH,[v("h2",wH,re(n.event.title),1),v("p",xH,re(n.fromText)+" - "+re(n.toText),1),n.event.activity_format?(k(),I("div",kH,[t[2]||(t[2]=v("p",{class:"p-0 mb-2 font-semibold text-slate-500"}," Format of the activity: ",-1)),v("div",SH,[(k(!0),I(Ne,null,Qe(n.event.activity_format,h=>(k(),I("div",TH,[v("p",AH,re(r.activityFormatOptionsMap[h]),1)]))),256))])])):ie("",!0),v("div",CH,[v("p",EH,re(e.$t("event.activitytype.label"))+": ",1),v("p",OH,[n.event.activity_type?(k(),I(Ne,{key:0},[mt(re(e.$t(`event.activitytype.${n.event.activity_type}`)),1)],64)):ie("",!0)])]),n.event.language?(k(),I("div",MH,[v("p",RH,re(e.$t("resources.Languages"))+": ",1),v("div",DH,[(k(!0),I(Ne,null,Qe(n.event.languages,h=>(k(),I("div",PH,[v("p",LH,re(e.$t(`base.languages.${h}`)),1)]))),256))])])):ie("",!0),n.event.recurring_event?(k(),I("div",IH,[t[3]||(t[3]=v("p",{class:"p-0 mb-2 font-semibold text-slate-500"},"Recurring event:",-1)),v("div",NH,[v("div",VH,[v("p",FH,re(r.recurringFrequentlyMap[n.event.recurring_event]),1)]),n.event.duration?(k(),I("div",$H,[v("p",BH,re(r.durationOptionsMap[n.event.duration]),1)])):ie("",!0),n.event.recurring_type?(k(),I("div",HH,[v("p",UH,re(r.recurringTypeOptionsMap[n.event.recurring_type]),1)])):ie("",!0)])])):ie("",!0),(o=n.event.audiences)!=null&&o.length?(k(),I("div",jH,[v("p",WH,re(e.$t("event.audience_title"))+": ",1),v("div",qH,[(k(!0),I(Ne,null,Qe(n.event.audiences,h=>(k(),I("div",YH,[v("p",zH,re(e.$t(`event.audience.${h.name}`)),1)]))),256))])])):ie("",!0),(u=n.event.ages)!=null&&u.length?(k(),I("div",KH,[t[4]||(t[4]=v("p",{class:"p-0 mb-2 font-semibold text-slate-500"},"Age range:",-1)),v("div",GH,[(k(!0),I(Ne,null,Qe(n.event.ages,h=>(k(),I("div",JH,[v("p",ZH,re(r.ageOptionsMap[h]),1)]))),256))])])):ie("",!0),(d=n.event.themes)!=null&&d.length?(k(),I("div",XH,[t[5]||(t[5]=v("p",{class:"p-0 mb-2 font-semibold text-slate-500"},"Themes:",-1)),v("div",QH,[(k(!0),I(Ne,null,Qe(n.event.themes,h=>(k(),I("div",eU,[v("p",tU,re(e.$t(`event.theme.${h.name}`)),1)]))),256))])])):ie("",!0),v("div",nU,[v("p",rU,re(e.$t("event.address.label"))+": ",1),v("p",sU,re(n.event.location),1)]),v("div",iU,[v("p",aU,re(n.event.description),1),v("div",{class:"text-[#20262C] font-normal p-0 mb-6 space-y-2 [&_p]:py-0",innerHTML:n.event.description},null,8,lU)]),v("div",oU,[t[6]||(t[6]=v("p",{class:"p-0 mb-2 font-semibold text-slate-500"},"Email address:",-1)),v("p",uU,re(n.event.contact_person),1)]),v("div",cU,[v("div",dU,[v("div",fU,[v("button",{class:"pb-2 group",onClick:t[0]||(t[0]=h=>r.handleToggleMapFullScreen(!1))},t[7]||(t[7]=[v("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("rect",{width:"40",height:"40",rx:"8",class:"fill-white transition-colors duration-300 group-hover:fill-[#1C4DA1]"}),v("path",{d:"M13 20H27",class:"stroke-[#414141] group-hover:stroke-[#ffffff]","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),v("button",{class:"pb-2 group",onClick:t[1]||(t[1]=h=>r.handleToggleMapFullScreen(!0))},t[8]||(t[8]=[v("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("rect",{width:"40",height:"40",rx:"8",class:"fill-white transition-colors duration-300 group-hover:fill-[#1C4DA1]"}),v("path",{class:"stroke-[#414141] group-hover:stroke-[#ffffff]",d:"M16 11H13C12.4696 11 11.9609 11.2107 11.5858 11.5858C11.2107 11.9609 11 12.4696 11 13V16M29 16V13C29 12.4696 28.7893 11.9609 28.4142 11.5858C28.0391 11.2107 27.5304 11 27 11H24M24 29H27C27.5304 29 28.0391 28.7893 28.4142 28.4142C28.7893 28.0391 29 27.5304 29 27V24M11 24V27C11 27.5304 11.2107 28.0391 11.5858 28.4142C11.9609 28.7893 12.4696 29 13 29H16","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))])])],512),v("div",null,[t[11]||(t[11]=v("p",{class:"p-0 mb-2 font-semibold text-slate-500"}," Share activity on: ",-1)),v("div",hU,[v("div",{class:"fb-like","data-href":n.shareUrl,"data-layout":"button_count","data-action":"recommend","data-show-faces":"false","data-share":"true"},null,8,pU),v("a",{href:"https://twitter.com/share",class:"twitter-share-button","data-href":n.shareUrl,"data-text":`Check out ${n.event.title} at`,"data-via":"CodeWeekEU","data-hashtags":"codeEU"},t[9]||(t[9]=[v("img",{src:"/images/social/twitter.svg"},null,-1)]),8,mU),v("a",{class:"block [&_path]:!fill-dark-blue",title:e.$t("eventdetails.email.tooltip"),href:n.emailHref},t[10]||(t[10]=[v("img",{class:"block",src:"/images/mail.svg"},null,-1)]),8,gU),v("div",{class:"g-plusone","data-size":"medium","data-href":n.appUrl},null,8,vU)])])])]),t[12]||(t[12]=v("div",{class:"animation-element move-background duration-[1.5s] absolute z-0 bottom-10 md:bottom-auto md:top-48 -right-14 md:-right-40 w-28 md:w-72 h-28 md:h-72 bg-[#FFEF99] rounded-full hidden lg:block",style:{transform:"translate(-16px, -24px)"}},null,-1)),t[13]||(t[13]=v("div",{class:"animation-element move-background duration-[1.5s] absolute z-0 lg:top-96 right-40 w-28 h-28 hidden lg:block bg-[#FFEF99] rounded-full",style:{transform:"translate(-16px, -24px)"}},null,-1))])}const _U=vt(vH,[["render",yU]]),bU={name:"SearchPageComponent",components:{EventCard:Dw,Pagination:ud,FieldWrapper:ad,SelectField:Fo,InputField:ld},props:{mapTileUrl:String,prpQuery:String,prpSelectedCountry:Array,name:String,years:Array,countrieslist:Array,audienceslist:Array,themeslist:Array,typeslist:Array,languagesObject:{type:Object,default:()=>({})}},setup(e){const{activityFormatOptions:t,activityTypeOptions:n,ageOptions:r}=Hi(),s=fe(!0),a=fe(null),o=fe(null),u=fe(null),d=fe([]),h=fe({}),f=fe(null),p={query:"",languages:[],countries:[],start_date:"",formats:[],types:[],audiences:[],ages:[],themes:[]},m=fe({...p,query:e.prpQuery||"",year:{id:new Date().getFullYear(),name:new Date().getFullYear()},countries:e.prpSelectedCountry||[]}),y=fe({current_page:1,per_page:0,from:null,last_page:0,last_page_url:null,next_page_url:null,prev_page:null,prev_page_url:null,to:null,total:0}),w=pe(()=>e.years.map(ne=>({id:ne,name:ne}))),_=pe(()=>Object.entries(e.languagesObject).map(([ne,J])=>({id:ne,name:J}))),E=pe(()=>{const ne=[...m.value.languages,...m.value.countries,...m.value.formats,...m.value.types,...m.value.audiences,...m.value.ages,...m.value.themes];return m.value.start_date&&ne.push({id:"start_date",name:m.value.start_date.slice(0,10)}),ne}),U=ne=>{if(ne.id==="start_date"){m.value.start_date="";return}const J=P=>P.id!==ne.id;m.value.languages=m.value.languages.filter(J),m.value.countries=m.value.countries.filter(P=>P.iso!==ne.iso),m.value.formats=m.value.formats.filter(J),m.value.audiences=m.value.audiences.filter(J),m.value.themes=m.value.themes.filter(J),F()},V=()=>{m.value={...p},F()},x=()=>{window.scrollTo(0,0)},A=()=>{x(),F(!0)},F=(ne=!1)=>{var z;d.value=[],s.value=!0;let J="/search";ne&&(J=`/search?page=${y.value.current_page}`);const P={...m.value,year:(z=m.value.year)==null?void 0:z.id,start_date:m.value.start_date?new Date(m.value.start_date).toISOString().slice(0,10):"",pagination:{current_page:y.current_page}};xt.post(J,P).then(R=>{const te=R.data;console.log("🔥 Full response:",te);let be,De;if(Array.isArray(te))be=te[0],De=te[1]||null;else if(te.events)be=te.events,De=te.map||null;else{console.warn("❌ Unexpected response structure:",te),f.value="Unexpected response format from server.",s.value=!1;return}y.value={per_page:be.per_page,current_page:be.current_page,from:be.from,last_page:be.last_page,last_page_url:be.last_page_url,next_page_url:be.next_page_url,prev_page:be.prev_page,prev_page_url:be.prev_page_url,to:be.to,total:be.total},be.data?d.value=Array.isArray(be.data)?be.data:Object.values(be.data):d.value=[],console.log("✅ Events loaded:",d.value.length),!ne&&De?(window.getEvents?window.getEvents(De):window.eventsToMap=De,h.value=De,S()):De||console.warn("⚠️ mapData is null, skipping map update"),B(),s.value=!1}).catch(R=>{console.error("❌ Request failed:",R),f.value=R.response?R.response.data:"Unknown error",s.value=!1})},B=()=>{var J;if(!o.value)return;let ne={latitude:51,longitude:4};if(((J=m.value.countries)==null?void 0:J.length)===1){const{latitude:P,longitude:z}=m.value.countries[0]||{};P&&z&&(ne={latitude:P,longitude:z,zoom:4})}o.value.setView(new L.LatLng(ne.latitude,ne.longitude),4,{animation:!0})},$=ne=>ne.length>400?ne.substring(0,400)+"...":ne;var M=async ne=>{const J=ne.target.options.id;try{const{data:P}=await xt.get(`/api/event/detail?id=${J}`),z=P.data;console.log("event/detail",z);const R=` +
+

+ ${z.title} +

+
+ +
+

${z.description}

+
+
+
+ `,te=L.popup({maxWidth:600}).setContent(R);ne.target.bindPopup(te).openPopup()}catch(P){console.error("Can NOT load event",P)}};const S=()=>{if(o.value)try{u.value&&(o.value.removeLayer(u.value),u.value=null);const ne=L.markerClusterGroup(),J=[];Object.values(h.value).forEach(P=>{J.push(...P)}),console.group("Started add markers",J.length),J.map(({id:P,geoposition:z},R)=>{R%1e4===0&&console.log("Adding markers",R);const te=z.split(","),be=parseFloat(te[0]),De=parseFloat(te[1]);if(be&&De){const He=L.marker([be,De],{id:P});He.on("click",M),ne.addLayer(He)}}),console.log("Done add markers",J.length),console.groupEnd(),u.value=ne,o.value.addLayer(ne)}catch(ne){console.log("Add marker error",ne)}},H=()=>{navigator.geolocation&&navigator.geolocation.getCurrentPosition(ne=>{const{latitude:J,longitude:P}=ne.coords,z=L.icon({iconUrl:"/images/marker-orange.svg",iconSize:[33,41],iconAnchor:[22,62],popupAnchor:[0,-60]});L.marker([J,P],{icon:z}).addTo(o.value)},ne=>{console.error("Geolocation error:",ne)})},se=()=>{o.value=L.map("mapid"),o.value.setView([51,10],5),L.tileLayer(e.mapTileUrl,{maxZoom:18,attribution:'© Mapbox',tileSize:512,zoomOffset:-1,zoomControl:!1}).addTo(o.value)},ee=ne=>{const J=a.value;if(!J)return;const P="fixed left-0 top-[139px] md:top-[123px] z-[110] h-[calc(100dvh-139px)] md:h-[calc(100dvh-123px)]";ne?J.classList.add(...P.split(" ")):J.classList.remove(...P.split(" "))};return It(()=>{F(),setTimeout(()=>{se(),B(),S(),H()},2e3)}),{mapContainerRef:a,yearOptions:w,languageOptions:_,activityFormatOptions:t,activityTypeOptions:n,ageOptions:r,filters:m,removeSelectedItem:U,removeAllSelectedItems:V,isLoading:s,events:d,errors:f,tags:E,pagination:y,scrollToTop:x,paginate:A,onSubmit:F,limit:$,handleToggleMapFullScreen:ee}}},wU={ref:"mapContainerRef",class:"w-full h-[520px] top-0 left-0"},xU={id:"mapid",class:"w-full h-full relative"},kU={style:{"z-index":"999"},id:"map-controls",class:"absolute z-50 flex flex-col top-4 left-2"},SU={class:"codeweek-searchpage-component font-['Blinker']"},TU={class:"codeweek-container py-10"},AU={class:"flex w-full"},CU={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 items-end gap-4 w-full"},EU={key:0,class:"flex md:justify-center mt-10"},OU={class:"max-md:w-full flex flex-wrap gap-2"},MU={class:"flex items-center gap-2"},RU=["onClick"],DU={class:"max-md:w-full max-md:mt-4 flex justify-center px-4"},PU={class:"relative pt-20 md:pt-48"},LU={class:"bg-yellow-50 pb-24"},IU={class:"relative z-10 codeweek-container-lg"},NU={class:"flex flex-col md:flex-row gap-10"},VU={class:"flex-shrink-0 grid grid-cols-2 md:grid-cols-1 gap-6 bg-[#FFEF99] px-4 py-6 rounded-2xl self-start w-full md:w-60"},FU={class:"relative w-full flex px-3 justify-between items-center text-gray-700 whitespace-nowrap rounded-3xl border-2 border-dark-blue-200 h-[50px] bg-white"},$U={class:"flex items-center justify-center w-full"},BU={key:0,class:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6 lg:gap-10 h-fit"},HU={key:0,class:"col-span-full"};function UU(e,t,n,r,s,a){const o=at("InputField"),u=at("FieldWrapper"),d=at("SelectField"),h=at("date-time"),f=at("event-card"),p=at("pagination");return k(),I(Ne,null,[v("section",null,[v("div",wU,[v("div",xU,[v("div",kU,[v("button",{class:"pb-2 group",onClick:t[0]||(t[0]=m=>r.handleToggleMapFullScreen(!0))},t[20]||(t[20]=[v("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("rect",{width:"40",height:"40",rx:"8",class:"fill-white transition-colors duration-300 group-hover:fill-[#1C4DA1]"}),v("path",{class:"stroke-[#414141] group-hover:stroke-[#ffffff]",d:"M16 11H13C12.4696 11 11.9609 11.2107 11.5858 11.5858C11.2107 11.9609 11 12.4696 11 13V16M29 16V13C29 12.4696 28.7893 11.9609 28.4142 11.5858C28.0391 11.2107 27.5304 11 27 11H24M24 29H27C27.5304 29 28.0391 28.7893 28.4142 28.4142C28.7893 28.0391 29 27.5304 29 27V24M11 24V27C11 27.5304 11.2107 28.0391 11.5858 28.4142C11.9609 28.7893 12.4696 29 13 29H16","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),v("button",{class:"pb-2 group",onClick:t[1]||(t[1]=m=>r.handleToggleMapFullScreen(!1))},t[21]||(t[21]=[v("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("rect",{width:"40",height:"40",rx:"8",class:"fill-white transition-colors duration-300 group-hover:fill-[#1C4DA1]"}),v("path",{d:"M13 20H27",class:"stroke-[#414141] group-hover:stroke-[#ffffff]","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))])])],512)]),v("section",SU,[v("div",TU,[v("div",AU,[v("div",CU,[he(u,{class:"lg:col-span-2",horizontal:"",label:"Search by title or description"},{default:Te(()=>[he(o,{modelValue:r.filters.query,"onUpdate:modelValue":t[2]||(t[2]=m=>r.filters.query=m),placeholder:"E.g tools assessment in computing"},null,8,["modelValue"])]),_:1}),he(u,{horizontal:"",label:"Year"},{default:Te(()=>[he(d,{"return-object":"",placeholder:"Select year",modelValue:r.filters.year,"onUpdate:modelValue":t[3]||(t[3]=m=>r.filters.year=m),"deselect-label":"","allow-empty":!1,options:r.yearOptions},null,8,["modelValue","options"])]),_:1}),he(u,{horizontal:"",label:"Language"},{default:Te(()=>[he(d,{multiple:"","return-object":"",placeholder:"Select language",modelValue:r.filters.languages,"onUpdate:modelValue":t[4]||(t[4]=m=>r.filters.languages=m),options:r.languageOptions},null,8,["modelValue","options"])]),_:1}),he(u,{horizontal:"",label:"Country"},{default:Te(()=>[he(d,{multiple:"","return-object":"","id-name":"iso",placeholder:"Select country",modelValue:r.filters.countries,"onUpdate:modelValue":t[5]||(t[5]=m=>r.filters.countries=m),options:n.countrieslist},null,8,["modelValue","options"])]),_:1}),v("button",{class:"bg-[#F95C22] rounded-full py-3 px-20 font-['Blinker'] hover:bg-hover-orange duration-300 mt-2 sm:col-span-2 lg:col-span-1",onClick:t[6]||(t[6]=m=>r.onSubmit())},t[22]||(t[22]=[v("span",{class:"text-base leading-7 font-semibold text-black normal-case"}," Search ",-1)]))])]),r.tags.length?(k(),I("div",EU,[v("div",OU,[(k(!0),I(Ne,null,Qe(r.tags,m=>(k(),I("div",{key:m.id,class:"bg-light-blue-100 pl-4 pr-3 py-1 rounded-full text-slate-500 text-[16px] font-semibold"},[v("div",MU,[v("span",null,re(m.name),1),v("button",{onClick:y=>r.removeSelectedItem(m)},t[23]||(t[23]=[v("img",{class:"w-4 h-4",src:"/images/close-icon.svg"},null,-1)]),8,RU)])]))),128)),v("div",DU,[v("button",{class:"text-dark-blue underline font-semibold text-[16px]",onClick:t[7]||(t[7]=(...m)=>r.removeAllSelectedItems&&r.removeAllSelectedItems(...m))}," Clear all filters ")])])])):ie("",!0)]),v("div",PU,[t[26]||(t[26]=v("div",{class:"absolute w-full h-[800px] bg-yellow-50 md:hidden top-0",style:{"clip-path":"ellipse(270% 90% at 38% 90%)"}},null,-1)),t[27]||(t[27]=v("div",{class:"absolute w-full h-[800px] bg-yellow-50 hidden md:block top-0",style:{"clip-path":"ellipse(88% 90% at 50% 90%)"}},null,-1)),v("div",LU,[v("div",IU,[v("div",NU,[v("div",VU,[he(u,{horizontal:"",label:"Date"},{default:Te(()=>[v("div",FU,[(k(),it(h,{key:r.filters.start_date,placeholder:"Start Date",format:"yyyy-MM-dd",value:r.filters.start_date,onOnChange:t[8]||(t[8]=m=>r.filters.start_date=m),onOnClear:t[9]||(t[9]=m=>r.filters.start_date=null)},null,8,["value"])),t[24]||(t[24]=v("div",{class:"absolute top-1/2 right-4 -translate-y-1/2 pointer-events-none"},[v("img",{src:"/images/select-arrow.svg"})],-1))])]),_:1}),he(u,{horizontal:"",label:"Format"},{default:Te(()=>[he(d,{multiple:"","return-object":"",placeholder:"Select format",modelValue:r.filters.formats,"onUpdate:modelValue":t[10]||(t[10]=m=>r.filters.formats=m),options:r.activityFormatOptions,onOnChange:t[11]||(t[11]=()=>r.onSubmit())},null,8,["modelValue","options"])]),_:1}),he(u,{horizontal:"",label:"Activity type"},{default:Te(()=>[he(d,{multiple:"","return-object":"",placeholder:"Select type",modelValue:r.filters.types,"onUpdate:modelValue":t[12]||(t[12]=m=>r.filters.types=m),options:r.activityTypeOptions,onOnChange:t[13]||(t[13]=()=>r.onSubmit())},null,8,["modelValue","options"])]),_:1}),he(u,{horizontal:"",label:"Audience"},{default:Te(()=>[he(d,{multiple:"","return-object":"",placeholder:"Select audience",modelValue:r.filters.audiences,"onUpdate:modelValue":t[14]||(t[14]=m=>r.filters.audiences=m),options:n.audienceslist,onOnChange:t[15]||(t[15]=()=>r.onSubmit())},null,8,["modelValue","options"])]),_:1}),he(u,{horizontal:"",label:"Age range"},{default:Te(()=>[he(d,{multiple:"","return-object":"",placeholder:"Select range",modelValue:r.filters.ages,"onUpdate:modelValue":t[16]||(t[16]=m=>r.filters.ages=m),options:r.ageOptions,onOnChange:t[17]||(t[17]=()=>r.onSubmit())},null,8,["modelValue","options"])]),_:1}),he(u,{horizontal:"",label:"Themes"},{default:Te(()=>[he(d,{multiple:"","return-object":"",placeholder:"Select themes",modelValue:r.filters.themes,"onUpdate:modelValue":t[18]||(t[18]=m=>r.filters.themes=m),options:n.themeslist,onOnChange:t[19]||(t[19]=()=>r.onSubmit())},null,8,["modelValue","options"])]),_:1})]),Dn(v("div",$U,[t[25]||(t[25]=v("img",{src:"img/loading.gif",style:{"margin-right":"10px"}},null,-1)),mt(re(e.$t("event.loading")),1)],512),[[Vr,r.isLoading]]),r.isLoading?ie("",!0):(k(),I("div",BU,[(k(!0),I(Ne,null,Qe(r.events,m=>(k(),it(f,{key:m.id,event:m},null,8,["event"]))),128)),r.pagination.last_page>1?(k(),I("div",HU,[he(p,{pagination:r.pagination,offset:5,onPaginate:r.paginate},null,8,["pagination","onPaginate"])])):ie("",!0)]))])])])])])],64)}const jU=vt(bU,[["render",UU]]),WU={props:{tool:Object},data(){return{descriptionHeight:"auto",needShowMore:!0,showMore:!1}},methods:{computeDescriptionHeight(){const e=this.$refs.descriptionContainerRef,t=this.$refs.descriptionRef,n=e.clientHeight,r=Math.floor(n/22);t.style.height="auto",this.descriptionHeight="auto",this.needShowMore=t.offsetHeight>n,t.offsetHeight>n?(t.style.height=`${r*22}px`,this.descriptionHeight=`${r*22}px`):this.showMore=!1},onToggleShowMore(){const e=this.$refs.descriptionRef;this.showMore=!this.showMore,this.showMore?e.style.height="auto":e.style.height=this.descriptionHeight}},mounted:function(){this.computeDescriptionHeight()}},qU={class:"flex flex-col bg-white rounded-lg overflow-hidden"},YU=["src"],zU={key:0,class:"flex gap-2 flex-wrap mb-2"},KU={key:0,class:"inline-block w-4 h-4",src:"/images/star-white.svg"},GU={class:"text-dark-blue font-semibold font-['Montserrat'] text-base leading-6"},JU={key:1,class:"text-slate-500 text-[16px] leading-[22px] font-semibold"},ZU={ref:"descriptionRef",class:"relative flex-grow text-slate-500 text-[16px] leading-[22px] mb-2 overflow-hidden",style:{height:"auto"}},XU=["innerHTML"],QU={class:"flex-shrink-0 h-[56px]"},e7=["href"];function t7(e,t,n,r,s,a){var o;return k(),I("div",qU,[v("div",{class:$e(["flex-shrink-0 flex justify-center items-center w-full",[n.tool.avatar_dark&&"bg-stone-800"]])},[v("img",{src:n.tool.avatar||"/images/matchmaking-tool/tool-placeholder.png",class:$e(["w-full aspect-[2]",n.tool.avatar?"object-contain":"object-cover"])},null,10,YU)],2),v("div",{class:$e(["flex-grow flex flex-col gap-2 px-5 py-4 h-fit",{"max-h-[450px]":s.needShowMore&&!s.showMore}])},[(o=n.tool.types)!=null&&o.length?(k(),I("div",zU,[(k(!0),I(Ne,null,Qe(n.tool.types,({title:u,highlight:d})=>(k(),I("span",{class:$e(["flex items-center gap-2 py-1 px-3 text-sm font-semibold rounded-full whitespace-nowrap leading-4",[d?"bg-dark-blue text-white":"bg-light-blue-100 text-slate-500"]])},[d?(k(),I("img",KU)):ie("",!0),v("span",null,[(k(!0),I(Ne,null,Qe(u.split(" "),h=>(k(),I(Ne,null,[h?(k(),I("span",{key:0,class:$e(["mr-[2px]",{"font-sans":h==="&"}])},re(h),3)):ie("",!0)],64))),256))])],2))),256))])):ie("",!0),v("div",GU,re(n.tool.name),1),n.tool.location?(k(),I("div",JU,re(n.tool.location),1)):ie("",!0),v("div",{ref:"descriptionContainerRef",class:$e(["flex-grow h-full",{"overflow-hidden":s.needShowMore&&!s.showMore}])},[v("div",ZU,[v("div",{innerHTML:n.tool.description},null,8,XU),s.needShowMore?(k(),I("div",{key:0,class:$e(["flex justify-end bottom-0 right-0 bg-white pl-0.5 text-dark-blue",{absolute:!s.showMore,"w-full":s.showMore}])},[v("button",{onClick:t[0]||(t[0]=(...u)=>a.onToggleShowMore&&a.onToggleShowMore(...u))},re(s.showMore?"Show less":"... Show more"),1)],2)):ie("",!0)],512)],2),v("div",QU,[v("a",{class:"flex justify-center items-center gap-2 text-[#1C4DA1] border-solid border-2 border-[#1C4DA1] rounded-full py-3 px-8 font-semibold text-lg transition-all duration-300 hover:bg-[#E8EDF6] group",href:`/matchmaking-tool/${n.tool.slug}`},t[1]||(t[1]=[v("span",null,"View profile/contact",-1),v("div",{class:"flex gap-2 w-4 overflow-hidden"},[v("img",{src:"/images/arrow-right-icon.svg",class:"min-w-4 duration-500 transform -translate-x-6 group-hover:translate-x-0 text-[#1C4DA1]"}),v("img",{src:"/images/arrow-right-icon.svg",class:"min-w-4 duration-500 transform -translate-x-6 group-hover:translate-x-0 text-[#1C4DA1]"})],-1)]),8,e7)])],2)])}const Pw=vt(WU,[["render",t7]]),n7={components:{ToolCard:Pw,Multiselect:Ta,Pagination:ud,Tooltip:V1},props:{prpQuery:{type:String,default:""},prpLanguages:{type:Array,default:()=>[]},prpLocations:{type:Array,default:()=>[]},prpTypes:{type:Array,default:()=>[]},prpTopics:{type:Array,default:()=>[]},languages:{type:Array,default:()=>[]},locations:{type:Array,default:()=>[]},types:{type:Array,default:()=>[]},topics:{type:Array,default:()=>[]},support_types:{type:Array,default:()=>[]},locale:String},setup(e){console.log("props",{...e});const t=fe(!1),n=fe(e.prpQuery),r=fe(e.prpQuery),s=fe([]),a=fe(e.prpLanguages),o=fe(e.prpLocations),u=fe(e.prpTypes),d=fe(e.prpTopics),h=fe({}),f=fe({current_page:1,per_page:0,from:null,last_page:0,last_page_url:null,next_page_url:null,prev_page:null,prev_page_url:null,to:null,total:0}),p=fe([]),m=pe(()=>e.types.map(B=>({id:B,name:B}))),y=pe(()=>[{id:"organisation",name:"Organisations"},{id:"volunteer",name:"Volunteers"}]),w=pe(()=>e.topics.map(B=>({id:B,name:B}))),_=pe(()=>[...s.value,...a.value,...o.value,...u.value,...d.value]),E=B=>{const $=M=>M.id!==B.id;s.value=s.value.filter($),a.value=a.value.filter($),o.value=o.value.filter(M=>M.iso!==(B==null?void 0:B.iso)),u.value=u.value.filter($),d.value=d.value.filter($)},U=()=>{s.value=[],a.value=[],o.value=[],u.value=[],d.value=[]},V=()=>{window.scrollTo(0,0)},x=()=>{V(),A(!0)},A=(B=!1)=>{B||(f.value.current_page=1);const $={page:f.value.current_page,support_types:s.value.map(M=>M.id),languages:a.value.map(M=>M.id),locations:o.value.map(M=>M.iso),types:u.value.map(M=>M.id),topics:d.value.map(M=>M.id)};xt.post("/matchmaking-tool/search",{},{params:$}).then(({data:M})=>{console.log(">>> data",M.data),p.value=M.data.map(S=>{var se,ee;const H={...S,avatar_dark:S.avatar_dark,avatar:S.avatar,types:[{title:"Online & In-person",highlight:!0},{title:"Ongoing availability"}]};return S.type==="volunteer"?{...H,name:`${S.first_name||""} ${S.last_name||""}`.trim(),location:S.location,description:S.description}:{...H,name:S.organisation_name,location:((ee=(se=e.locations)==null?void 0:se.find(({iso:ne})=>ne===S.country))==null?void 0:ee.name)||"",description:S.organisation_mission}}),console.log(">>> tools.value",JSON.parse(JSON.stringify(p.value))),f.value={per_page:M.per_page,current_page:M.current_page,from:M.from,last_page:M.last_page,last_page_url:M.last_page_url,next_page_url:M.next_page_url,prev_page:M.prev_page,prev_page_url:M.prev_page_url,to:M.to,total:M.total}})},F=(B,$)=>Pe($+"."+B.name);return It(()=>{A()}),{query:n,searchInput:r,selectedSupportTypes:s,selectedLanguages:a,selectedLocations:o,selectedTypes:u,selectedTopics:d,errors:h,pagination:f,tools:p,paginate:x,onSubmit:A,customLabel:F,showFilterModal:t,tags:_,removeSelectedItem:E,removeAllSelectedItems:U,typeOptions:m,supportTypeOptions:y,topicOptions:w}}},r7={class:"codeweek-matchmakingtool-component font-['Blinker'] bg-light-blue"},s7={class:"codeweek-container py-10"},i7={class:"flex md:hidden flex-shrink-0 justify-end w-full mb-6"},a7={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4 mb-12"},l7={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},o7={class:"language-json"},u7={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},c7={class:"language-json"},d7={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},f7={class:"language-json"},h7={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},p7={class:"flex items-center text-[16px] leading-5 text-slate-500 mb-2"},m7={class:"language-json"},g7={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},v7={class:"flex items-end"},y7={class:"text-base leading-7 font-semibold text-black normal-case"},_7={key:0,class:"flex md:justify-center"},b7={class:"max-md:w-full flex flex-wrap gap-2"},w7={class:"flex items-center gap-2"},x7=["onClick"],k7={class:"max-md:w-full max-md:mt-4 flex justify-center px-4"},S7={class:"relative pt-20 md:pt-48"},T7={class:"bg-yellow-50 pb-20"},A7={class:"relative z-10 codeweek-container"},C7={class:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6 lg:gap-10"};function E7(e,t,n,r,s,a){const o=at("multiselect"),u=at("Tooltip"),d=at("tool-card"),h=at("pagination");return k(),I("div",r7,[v("div",s7,[v("div",{class:$e(["max-md:fixed left-0 top-[125px] z-[100] flex-col items-center w-full max-md:p-6 max-md:h-[calc(100dvh-125px)] max-md:overflow-auto max-md:bg-white duration-300",[r.showFilterModal?"flex":"max-md:hidden"]])},[v("div",i7,[v("button",{id:"search-menu-trigger-hide",class:"block bg-[#FFD700] hover:bg-[#F95C22] rounded-full p-4 duration-300",onClick:t[0]||(t[0]=f=>r.showFilterModal=!1)},t[9]||(t[9]=[v("img",{class:"w-6 h-6",src:"/images/close_menu_icon.svg"},null,-1)]))]),v("div",a7,[v("div",null,[t[12]||(t[12]=v("label",{class:"block text-[16px] leading-5 text-slate-500 mb-2"}," Support type ",-1)),he(o,{modelValue:r.selectedSupportTypes,"onUpdate:modelValue":t[1]||(t[1]=f=>r.selectedSupportTypes=f),class:"multi-select",options:r.supportTypeOptions,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,"custom-label":f=>f.name,placeholder:"Select type, e.g. volunteer",label:"Select type, e.g. volunteer","track-by":"name","preselect-first":!1},{selection:Te(({values:f})=>[f.length>0?(k(),I("div",l7," Selected "+re(f.length)+" "+re(f.length>1?"types":"type"),1)):ie("",!0)]),default:Te(()=>[v("pre",o7,[t[10]||(t[10]=mt(" ")),v("code",null,re(r.selectedLanguages),1),t[11]||(t[11]=mt(` + `))])]),_:1},8,["modelValue","options","custom-label"])]),v("div",null,[t[13]||(t[13]=v("label",{class:"block text-[16px] leading-5 text-slate-500 mb-2"}," Language ",-1)),he(o,{modelValue:r.selectedLanguages,"onUpdate:modelValue":t[2]||(t[2]=f=>r.selectedLanguages=f),class:"multi-select",options:n.languages,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:"Select language",label:"resources.resources.languages","custom-label":r.customLabel,"track-by":"name","preselect-first":!1},{selection:Te(({values:f})=>[f.length>0?(k(),I("div",u7," Selected "+re(f.length)+" "+re(f.length>1?"languages":"language"),1)):ie("",!0)]),_:1},8,["modelValue","options","custom-label"])]),v("div",null,[t[16]||(t[16]=v("label",{class:"block text-[16px] leading-5 text-slate-500 mb-2"}," Location ",-1)),he(o,{modelValue:r.selectedLocations,"onUpdate:modelValue":t[3]||(t[3]=f=>r.selectedLocations=f),class:"multi-select",options:n.locations,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:"Select country/city",label:"Location","custom-label":f=>f.name,"track-by":"name","preselect-first":!1},{selection:Te(({values:f})=>[f.length>0?(k(),I("div",d7," Selected "+re(f.length)+" "+re(f.length>1?"locations":"location"),1)):ie("",!0)]),default:Te(()=>[v("pre",c7,[t[14]||(t[14]=mt(" ")),v("code",null,re(r.selectedLocations),1),t[15]||(t[15]=mt(` + `))])]),_:1},8,["modelValue","options","custom-label"])]),v("div",null,[t[17]||(t[17]=v("label",{class:"block text-[16px] leading-5 text-slate-500 mb-2"}," Type of Organisation ",-1)),he(o,{modelValue:r.selectedTypes,"onUpdate:modelValue":t[4]||(t[4]=f=>r.selectedTypes=f),class:"multi-select",options:r.typeOptions,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,"custom-label":f=>f.name,placeholder:"Select type of organisation",label:"Type of Organisation","track-by":"name","preselect-first":!1},{selection:Te(({values:f})=>[f.length>0?(k(),I("div",h7," Selected "+re(f.length)+" "+re(f.length>1?"types":"type"),1)):ie("",!0)]),default:Te(()=>[v("pre",f7,[v("code",null,re(r.selectedTypes),1)])]),_:1},8,["modelValue","options","custom-label"])]),v("div",null,[v("label",p7,[t[20]||(t[20]=v("span",null,"Topics",-1)),he(u,{contentClass:"w-64"},{trigger:Te(()=>t[18]||(t[18]=[v("div",{class:"w-5 h-5 bg-dark-blue rounded-full flex justify-center items-center text-white ml-1.5 cursor-pointer text-xs"}," i ",-1)])),content:Te(()=>t[19]||(t[19]=[mt(" Select a topic to help match volunteers with the right digital skills for your needs — e.g. coding, robotics, online safety, etc. ")])),_:1})]),he(o,{modelValue:r.selectedTopics,"onUpdate:modelValue":t[5]||(t[5]=f=>r.selectedTopics=f),class:"multi-select",options:r.topicOptions,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,"custom-label":f=>f.name,placeholder:"Select topic, e.g. robotics",label:"Topics","track-by":"name","preselect-first":!1},{selection:Te(({values:f})=>[f.length>0?(k(),I("div",g7," Selected "+re(f.length)+" "+re(f.length>1?"topics":"topic"),1)):ie("",!0)]),default:Te(()=>[v("pre",m7,[v("code",null,re(r.selectedTopics),1)])]),_:1},8,["modelValue","options","custom-label"])]),v("div",v7,[v("button",{class:"w-full bg-[#F95C22] rounded-full py-2.5 px-6 font-['Blinker'] hover:bg-hover-orange duration-300",onClick:t[6]||(t[6]=()=>{r.showFilterModal=!1,r.onSubmit()})},[v("span",y7,re(e.$t("resources.search")),1)])])])],2),v("button",{class:"block md:hidden w-full bg-[#F95C22] rounded-full py-2.5 px-6 font-['Blinker'] hover:bg-hover-orange duration-300 mb-8",onClick:t[7]||(t[7]=f=>r.showFilterModal=!0)},t[21]||(t[21]=[v("span",{class:"flex gap-2 justify-center items-center text-base leading-7 font-semibold text-black normal-case"},[mt(" Filter and search "),v("img",{class:"w-5 h-5",src:"/images/filter.svg"})],-1)])),r.tags.length?(k(),I("div",_7,[v("div",b7,[(k(!0),I(Ne,null,Qe(r.tags,f=>(k(),I("div",{key:f.id,class:"bg-light-blue-100 pl-4 pr-3 py-1 rounded-full text-slate-500 text-[16px] font-semibold"},[v("div",w7,[v("span",null,re(f.name),1),v("button",{onClick:p=>r.removeSelectedItem(f)},t[22]||(t[22]=[v("img",{class:"w-4 h-4",src:"/images/close-icon.svg"},null,-1)]),8,x7)])]))),128)),v("div",k7,[v("button",{class:"text-dark-blue underline font-semibold text-[16px]",onClick:t[8]||(t[8]=(...f)=>r.removeAllSelectedItems&&r.removeAllSelectedItems(...f))}," Clear all filters ")])])])):ie("",!0)]),v("div",S7,[t[23]||(t[23]=v("div",{class:"absolute w-full h-[800px] bg-yellow-50 md:hidden top-0",style:{"clip-path":"ellipse(270% 90% at 38% 90%)"}},null,-1)),t[24]||(t[24]=v("div",{class:"absolute w-full h-[800px] bg-yellow-50 hidden md:block top-0",style:{"clip-path":"ellipse(88% 90% at 50% 90%)"}},null,-1)),v("div",T7,[v("div",A7,[v("div",C7,[(k(!0),I(Ne,null,Qe(r.tools,f=>(k(),it(d,{key:f.id,tool:f},null,8,["tool"]))),128))]),r.pagination.last_page>1?(k(),it(h,{key:0,pagination:r.pagination,offset:5,onPaginate:r.paginate},null,8,["pagination","onPaginate"])):ie("",!0)])])])])}const O7=vt(n7,[["render",E7]]),M7={props:{mapTileUrl:String,profile:{type:Object,default:()=>({})},locations:{type:Array,default:()=>[]}},setup(e){const t=fe([]),n=fe([]),r=pe(()=>{try{const m=JSON.parse(e.profile);return console.log(">>> profile",m),m}catch(m){return console.error("Parse profile data error",m),{}}}),s=pe(()=>r.value.type==="organisation"),a=m=>{if(typeof m!="string")return m;try{return JSON.parse(m)}catch{return[]}},o=pe(()=>{var _,E,U,V;const m=r.value;if(m.type!=="organisation")return null;const y=[];m.organisation_mission&&y.push({title:"Introduction",list:[m.organisation_mission]}),(_=m.support_activities)!=null&&_.length&&y.push({title:"What kind of activities or support can you offer to schools and educators?",list:m.support_activities}),(E=m.target_school_types)!=null&&E.length&&y.push({title:"What types of schools are you most interested in working with?",list:m.target_school_types}),(U=m.digital_expertise_areas)!=null&&U.length&&y.push({title:"What areas of digital expertise does your organisation or you specialise in?",list:m.digital_expertise_areas}),m.description&&y.push({title:"Do you have any additional information or comments that could help us better match you with schools and educators?",list:[m.description]});const[w]=(m.website||"").split(",")||[];return{name:m.organisation_name,description:m.description,location:((V=e.locations.find(({iso:x})=>x===m.country))==null?void 0:V.name)||"",email:m.email,website:(w||"").trim(),abouts:y,short_intro:"",availabilities:[],phone:"",avatarDark:m.avatar_dark,avatar:m.avatar}}),u=pe(()=>{var w,_;const m=r.value;if(m.type!=="volunteer")return null;const y=[];return m.description&&y.push({title:"Introduction",list:[m.description]}),m.organisation_name&&m.organisation_type&&y.push({title:"Organisation",list:[`Organisation name: ${m.organisation_name}`,`Organisation type: ${a(m.organisation_type)}`]}),m.why_volunteering&&y.push({title:"Why am I volunteering?",list:[m.why_volunteering]}),(w=m.support_activities)!=null&&w.length&&y.push({title:"What kind of activities or support can you offer to schools and educators?",list:a(m.support_activities)}),(_=m.languages)!=null&&_.length&&y.push({title:"Languages spoken",list:a(m.languages)}),{name:`${m.first_name||""} ${m.last_name}`.trim(),description:m.description,location:m.location,email:m.email,get_email_from:m.get_email_from,linkedin:m.linkedin,facebook:m.facebook,website:m.website,job_title:m.job_title,abouts:y,short_intro:"",availabilities:[],phone:"",avatar:m.avatar}}),d=pe(()=>{const m=o.value||u.value||{};return m.linkedin&&!m.linkedin.startsWith("http")&&(m.linkedin=`https://${m.linkedin}`),m.facebook&&!m.facebook.startsWith("http")&&(m.facebook=`https://${m.facebook}`),m.website&&!m.website.startsWith("http")&&(m.website=`https://${m.website}`),m}),h=m=>{const y=n.value.filter(w=>w!==m);n.value.includes(m)?n.value=y:n.value=[...n.value,m]},f=(m,y)=>{m&&(t.value[y]=m)},p=async()=>{let m=[51,10];try{const _=await xt("https://nominatim.openstreetmap.org/search",{params:{format:"json",q:d.value.location}});if(_.data&&_.data.length>0){const{lat:E,lon:U}=_.data[0];E&&U&&(m=[E,U])}}catch(_){console.log(_)}const y=L.map("map-id");L.tileLayer(e.mapTileUrl,{maxZoom:18,attribution:'© Mapbox',tileSize:512,zoomOffset:-1,zoomControl:!1}).addTo(y),console.log(m);const w=L.icon({iconUrl:"/images/marker-orange.svg",iconSize:[44,62],iconAnchor:[22,62],popupAnchor:[0,-60]});L.marker(m,{icon:w}).addTo(y),y.setView(m,12)};return It(()=>{setTimeout(()=>{p()},2e3)}),{isOrganisation:s,data:d,descriptionRefs:t,showAboutIndexes:n,handleToggleAbout:h,setDescriptionRef:f}}},R7={id:"codeweek-matchmaking-tool",class:"font-['Blinker'] overflow-hidden"},D7={class:"relative flex overflow-hidden"},P7={class:"flex codeweek-container-lg py-10 tablet:py-20"},L7={class:"flex flex-col lg:flex-row gap-12 tablet:gap-20 xl:gap-32 2xl:gap-[260px]"},I7={class:"text-dark-blue text-[30px] md:text-4xl leading-[44px] font-normal md:font-medium font-['Montserrat'] mb-6"},N7=["innerHTML"],V7={class:"text-dark-blue text-[22px] md:text-3xl leading-[36px] font-medium font-['Montserrat'] mb-6"},F7={class:"accordion"},$7={class:"bg-transparent border-b-2 border-solid border-[#A4B8D9]"},B7=["onClick"],H7={class:"text-[#20262C] font-semibold text-lg font-['Montserrat']"},U7={class:"flex flex-col gap-0 text-slate-500 text-xl font-normal w-full"},j7=["innerHTML"],W7={class:"flex-shrink-0 lg:max-w-[460px] w-full"},q7=["src"],Y7={key:1,class:"rounded-xl h-full w-full object-cover",src:"/images/matchmaking-tool/tool-placeholder.png"},z7={class:"text-[#20262C] font-semibold text-lg p-0 mb-10"},K7={key:0},G7={key:0,class:"text-[#20262C] text-xl leading-[36px] font-medium font-['Montserrat'] mb-4 italic"},J7={class:"border-l-[4px] border-[#F95C22] pl-4"},Z7=["innerHTML"],X7={class:"relative overflow-hidden"},Q7={class:"codeweek-container-lg relative pt-20 pb-16 md:pt-40 md:pb-28"},e9={class:"bg-white px-5 py-10 lg:p-16 rounded-[32px] flex flex-col tablet:flex-row w-full gap-10 lg:gap-0"},t9={class:"flex-1"},n9={class:"flex gap-4 mb-6"},r9={class:"p-0 text-slate-500 text-xl font-normal capitalize"},s9={key:0,class:"flex gap-4 mb-6"},i9=["href"],a9={class:"flex gap-4 mb-6"},l9=["href"],o9={key:1,class:"p-0 text-slate-500 text-xl font-normal capitalize"},u9={key:2,class:"p-0 text-slate-500 text-xl font-normal capitalize"},c9={key:1,class:"flex gap-4 mb-6"},d9=["href"],f9={key:2,class:"flex gap-4 mb-6"},h9=["href"],p9={key:3,class:"flex gap-4 mb-6"},m9=["href"],g9={key:4,class:"text-xl font-semibold text-[#20262C] mb-2"},v9={key:5,class:"flex gap-4"},y9={class:"flex flex-col gap-2"},_9={class:"grid grid-cols-2 gap-8"},b9={class:"p-0 text-slate-500 text-xl font-normal"},w9={class:"p-0 text-slate-500 text-xl font-normal"};function x9(e,t,n,r,s,a){var o,u;return k(),I("section",R7,[v("section",D7,[v("div",P7,[v("div",L7,[v("div",null,[v("h2",I7,re(r.data.name),1),v("p",{class:"text-[#20262C] font-normal text-2xl p-0 mb-10",innerHTML:r.data.description},null,8,N7),v("h3",V7,re(r.isOrganisation?"About our organization":"About me"),1),v("div",F7,[(k(!0),I(Ne,null,Qe(r.data.abouts,(d,h)=>{var f;return k(),I("div",$7,[v("div",{class:"py-4 cursor-pointer flex items-center justify-between duration-300",onClick:p=>r.handleToggleAbout(h)},[v("p",H7,re(d.title),1),v("div",{class:$e(["rounded-full min-w-12 min-h-12 duration-300 flex justify-center items-center ml-8",[r.showAboutIndexes.includes(h)?"bg-primary hover:bg-hover-orange":"bg-yellow hover:bg-primary"]])},[v("div",{class:$e(["duration-300",[r.showAboutIndexes.includes(h)&&"rotate-180"]])},t[0]||(t[0]=[v("img",{src:"/images/digital-girls/arrow.svg"},null,-1)]),2)],2)],8,B7),v("div",{class:"flex overflow-hidden transition-all duration-300 min-h-[1px] h-full",ref_for:!0,ref:p=>r.setDescriptionRef(p,h),style:bn({height:r.showAboutIndexes.includes(h)?`${(f=r.descriptionRefs[h])==null?void 0:f.scrollHeight}px`:0})},[v("div",U7,[(k(!0),I(Ne,null,Qe(d.list,p=>(k(),I("p",{class:"p-0 pb-4 w-full",innerHTML:p},null,8,j7))),256))])],4)])}),256))])]),v("div",W7,[v("div",{class:$e(["flex justify-center items-center rounded-xl border-2 border-[#ADB2B6] mb-4 aspect-square",[r.isOrganisation&&"p-6",r.data.avatarDark&&"bg-stone-800"]])},[r.data.avatar?(k(),I("img",{key:0,class:"rounded-xl w-full",src:r.data.avatar},null,8,q7)):(k(),I("img",Y7))],2),v("p",z7,[mt(re(r.data.name)+" ",1),r.data.job_title?(k(),I("span",K7,", "+re(r.data.job_title),1)):ie("",!0)]),r.data.short_intro?(k(),I("p",G7,re(r.data.short_intro),1)):ie("",!0),v("div",J7,[v("p",{class:"p-0 text-slate-500 text-xl font-normal",innerHTML:r.data.description},null,8,Z7)])])])])]),v("section",X7,[t[12]||(t[12]=v("div",{class:"absolute w-full h-full bg-yellow-50 md:hidden",style:{"clip-path":"ellipse(270% 90% at 38% 90%)"}},null,-1)),t[13]||(t[13]=v("div",{class:"absolute w-full h-full bg-yellow-50 hidden md:block lg:hidden",style:{"clip-path":"ellipse(188% 90% at 50% 90%)"}},null,-1)),t[14]||(t[14]=v("div",{class:"absolute w-full h-full bg-yellow-50 hidden lg:block xl:hidden",style:{"clip-path":"ellipse(128% 90% at 50% 90%)"}},null,-1)),t[15]||(t[15]=v("div",{class:"absolute w-full h-full bg-yellow-50 hidden xl:block",style:{"clip-path":"ellipse(93% 90% at 50% 90%)"}},null,-1)),v("div",Q7,[t[11]||(t[11]=v("h2",{class:"text-dark-blue tablet:text-center text-[30px] md:text-4xl leading-7 md:leading-[44px] font-normal md:font-medium font-['Montserrat'] mb-10 tablet:mb-8"}," Contact details ",-1)),v("div",e9,[v("div",t9,[t[8]||(t[8]=v("h3",{class:"text-dark-blue text-[22px] md:text-4xl leading-7 md:leading-[44px] font-medium font-['Montserrat'] mb-4"}," Location ",-1)),t[9]||(t[9]=v("span",{class:"bg-dark-blue text-white py-1 px-4 text-sm font-semibold rounded-full whitespace-nowrap flex items-center gap-2 w-fit mb-6"},[v("img",{src:"/images/star-white.svg",class:"w-4 h-4"}),v("span",null,[mt(" Can teach Online "),v("span",{class:"font-sans"},"&"),mt(" In-person ")])],-1)),v("div",n9,[t[1]||(t[1]=v("img",{src:"/images/map.svg",class:"w-6 h-6"},null,-1)),v("div",null,[v("p",r9,re(r.data.location),1)])]),r.data.phone?(k(),I("div",s9,[t[2]||(t[2]=v("img",{src:"/images/phone.svg",class:"w-6 h-6"},null,-1)),v("a",{class:"text-dark-blue underline cursor-pointer text-xl font-semibold",href:r.data.phone},re(r.data.phone),9,i9)])):ie("",!0),v("div",a9,[t[3]||(t[3]=v("img",{src:"/images/message.svg",class:"w-6 h-6"},null,-1)),r.data.email?(k(),I("a",{key:0,class:"text-dark-blue underline cursor-pointer text-xl font-semibold",href:`mailto:${r.data.email}`},re(r.data.email),9,l9)):r.data.get_email_from?(k(),I("p",o9,re(r.data.get_email_from),1)):(k(),I("p",u9," Anonymous "))]),r.data.linkedin?(k(),I("div",c9,[t[4]||(t[4]=v("img",{src:"/images/social/linkedin.svg",class:"w-6 h-6"},null,-1)),v("a",{class:"text-dark-blue underline cursor-pointer text-xl font-semibold",href:r.data.linkedin}," LinkedIn ",8,d9)])):ie("",!0),r.data.facebook?(k(),I("div",f9,[t[5]||(t[5]=v("img",{src:"/images/social/facebook.svg",class:"w-6 h-6"},null,-1)),v("a",{class:"text-dark-blue underline cursor-pointer text-xl font-semibold",href:r.data.facebook}," Facebook ",8,h9)])):ie("",!0),r.data.website?(k(),I("div",p9,[t[6]||(t[6]=v("img",{src:"/images/profile.svg",class:"w-6 h-6"},null,-1)),v("a",{class:"text-dark-blue underline cursor-pointer text-xl font-semibold",href:r.data.website}," Website ",8,m9)])):ie("",!0),(o=r.data.availabilities)!=null&&o.length?(k(),I("div",g9," My availability ")):ie("",!0),(u=r.data.availabilities)!=null&&u.length?(k(),I("div",v9,[t[7]||(t[7]=v("img",{src:"/images/map.svg",class:"w-6 h-6"},null,-1)),v("div",y9,[(k(!0),I(Ne,null,Qe(r.data.availabilities,({dateText:d,timeText:h})=>(k(),I("div",_9,[v("p",b9,re(d),1),v("p",w9,re(h),1)]))),256))])])):ie("",!0)]),t[10]||(t[10]=v("div",{class:"flex-1"},[v("div",{id:"map-id",class:"relative z-50 w-full h-64 md:h-full md:min-h-96 rounded-2xl bg-gray-100"})],-1))])])])])}const k9=vt(M7,[["render",x9]]),S9={props:["user"],components:{ImageUpload:Ew,Flash:od},data(){return{avatar:this.user.avatar_path}},computed:{canUpdate(){return console.log("user",this.user),this.$authorize(e=>e.id===this.user.id)},hasAvatar(){return console.log(this.avatar),this.avatar.split("/").pop()!=="default.png"}},methods:{onLoad(e){this.persist(e.file)},persist(e){let t=new FormData;t.append("avatar",e),axios.post(`/api/users/${this.user.id}/avatar`,t).then(n=>{this.avatar=n.data.path,ei.emit("flash",{message:"Avatar uploaded!",level:"success"})})},remove(){console.log("delete me"),axios.delete("/api/users/avatar").then(()=>ei.emit("flash",{message:"Avatar Deleted!",level:"success"})),this.avatar="https://s3-eu-west-1.amazonaws.com/codeweek-dev/avatars/default.png"}}},T9={class:"flex flex-col tablet:flex-row tablet:items-center gap-6 tablet:gap-14"},A9={class:"flex"},C9={class:"relative"},E9=["src"],O9={key:0,method:"POST",enctype:"multipart/form-data",class:"absolute bottom-0 left-0"},M9={style:{display:"flex","align-items":"flex-end","margin-left":"-35px"}},R9={class:"text-white font-normal text-3xl tablet:font-medium tablet:text-5xl font-['Montserrat'] mb-6"};function D9(e,t,n,r,s,a){const o=at("image-upload");return k(),I("div",T9,[v("div",A9,[v("div",C9,[v("img",{src:s.avatar,class:"w-40 h-40 rounded-full border-4 border-solid border-dark-blue-300"},null,8,E9),a.canUpdate?(k(),I("form",O9,[he(o,{name:"avatar",class:"mr-1",onLoaded:a.onLoad},null,8,["onLoaded"])])):ie("",!0),v("div",M9,[Dn(v("button",{class:"absolute !bottom-0 !right-0 flex justify-center items-center !h-10 !w-10 !p-0 bg-[#FE6824] rounded-full !border-2 !border-solid !border-white",onClick:t[0]||(t[0]=(...u)=>a.remove&&a.remove(...u))},t[1]||(t[1]=[v("img",{class:"w-5 h-5",src:"/images/trash.svg"},null,-1)]),512),[[Vr,a.hasAvatar]])])])]),v("div",null,[v("h1",R9,re(n.user.fullName),1)])])}const P9=vt(S9,[["render",D9]]),L9={install(e){e.config.globalProperties.$authorize=function(...t){return window.App.signedIn?typeof t[0]=="string"?authorizations[t[0]](t[1]):t[0](window.App.user):!1}}},I9={data(){return{images:[{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/1e054358a7188baf8777a09512012cf16ab84970ef1c7610feb6dad13e504666",alt:"Consortium partner visual representation"},{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/2972cd5748880295748a9baa3e8fe3c996a0cdc09d86b46dbc72790d1cbc0655",alt:"Gallery image 1"},{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/fb06d640ec9446e59ef5e3fb63ceaaaf0b25d0117f209f11e3ab8e6ce3240acb",alt:"Gallery image 2"},{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/1e054358a7188baf8777a09512012cf16ab84970ef1c7610feb6dad13e504666",alt:"Gallery image 3"},{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/2972cd5748880295748a9baa3e8fe3c996a0cdc09d86b46dbc72790d1cbc0655",alt:"Gallery image 4"},{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/fb06d640ec9446e59ef5e3fb63ceaaaf0b25d0117f209f11e3ab8e6ce3240acb",alt:"Gallery image 5"}],currentIndex:0}},methods:{nextImage(){this.currentIndex=(this.currentIndex+1)%this.images.length,this.scrollToThumbnail()},prevImage(){this.currentIndex=this.currentIndex===0?this.images.length-1:this.currentIndex-1,this.scrollToThumbnail()},selectImage(e){this.currentIndex=e,this.scrollToThumbnail()},scrollToThumbnail(){const e=this.$refs.thumbnailGallery,t=e.clientWidth/3,n=Math.max(0,(this.currentIndex-1)*t);e.scrollTo({left:n,behavior:"smooth"})}}},N9={class:"flex flex-col pt-3.5"},V9={class:"flex py-4 md:py-20 relative flex-col mt-3.5 w-full bg-aqua max-md:max-w-full items-center"},F9={class:"z-0 flex flex-col items-start justify-between max-w-full gap-10 p-10 md:px-24"},$9={class:"grid w-full grid-cols-1 md:grid-cols-2 gap-x-8"},B9={class:"flex items-start justify-start"},H9=["src","alt"],U9={class:"w-full overflow-hidden image-gallery"},j9={ref:"thumbnailGallery",class:"flex gap-4 overflow-x-auto flex-nowrap"},W9=["src","alt","onClick"],q9={class:"flex justify-end w-full mt-4 image-gallery-controls"},Y9={class:"flex flex-wrap items-center gap-5"};function z9(e,t,n,r,s,a){return k(),I("section",N9,[v("div",V9,[v("div",F9,[v("div",$9,[t[2]||(t[2]=wb('

Consortium Partner

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat.

Website link
',1)),v("div",B9,[v("img",{src:s.images[s.currentIndex].src,alt:s.images[s.currentIndex].alt,class:"main-image object-contain aspect-[1.63] w-full md:w-[480px] max-md:max-w-full"},null,8,H9)])]),v("div",U9,[v("div",j9,[(k(!0),I(Ne,null,Qe(s.images,(o,u)=>(k(),I("img",{key:u,src:o.src,alt:"Gallery image "+(u+1),class:$e([{"border-2 border-orange-500":s.currentIndex===u},"thumbnail cursor-pointer object-contain shrink-0 aspect-[1.5] min-h-[120px] w-[calc(33.33%-8px)]"]),onClick:d=>a.selectImage(u)},null,10,W9))),128))],512)]),v("div",q9,[v("div",Y9,[v("button",{onClick:t[0]||(t[0]=(...o)=>a.prevImage&&a.prevImage(...o)),class:"flex group flex-col justify-center items-center self-stretch my-auto w-8 h-8 bg-orange-500 rounded min-h-[24px]"},t[3]||(t[3]=[v("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("rect",{width:"32",height:"32",rx:"4",class:"fill-primary group-hover:fill-secondary"}),v("path",{d:"M19 22L13 16L19 10",stroke:"white","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),v("button",{onClick:t[1]||(t[1]=(...o)=>a.nextImage&&a.nextImage(...o)),class:"flex group flex-col justify-center items-center self-stretch my-auto w-8 h-8 bg-orange-500 rounded min-h-[24px]"},t[4]||(t[4]=[v("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("rect",{width:"32",height:"32",rx:"4",class:"fill-primary group-hover:fill-secondary"}),v("path",{d:"M13 22L19 16L13 10",stroke:"white","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))])])])])])}const K9=vt(I9,[["render",z9],["__scopeId","data-v-5aad3e31"]]),Ut=_c({});Ut.use(L9);Ut.use(bL,{resolve:async e=>await Object.assign({"../lang/php_al.json":()=>Ft(()=>import("./php_al-2UTobk_f.js"),[]),"../lang/php_ba.json":()=>Ft(()=>import("./php_ba-CPGLiLsP.js"),[]),"../lang/php_bg.json":()=>Ft(()=>import("./php_bg-CYbF7ww8.js"),[]),"../lang/php_cs.json":()=>Ft(()=>import("./php_cs-XpK7lNvi.js"),[]),"../lang/php_da.json":()=>Ft(()=>import("./php_da-BEseQlDU.js"),[]),"../lang/php_de.json":()=>Ft(()=>import("./php_de-CzXI2k0W.js"),[]),"../lang/php_el.json":()=>Ft(()=>import("./php_el-BS7yRmOQ.js"),[]),"../lang/php_en.json":()=>Ft(()=>import("./php_en-B8yGGaL8.js"),[]),"../lang/php_es.json":()=>Ft(()=>import("./php_es-D7voR6y5.js"),[]),"../lang/php_et.json":()=>Ft(()=>import("./php_et-Chp0g4xz.js"),[]),"../lang/php_fi.json":()=>Ft(()=>import("./php_fi-B-hRJcdv.js"),[]),"../lang/php_fr.json":()=>Ft(()=>import("./php_fr-Y2m0H0Sm.js"),[]),"../lang/php_hr.json":()=>Ft(()=>import("./php_hr-i9aPUxLz.js"),[]),"../lang/php_hu.json":()=>Ft(()=>import("./php_hu-CFyaU2zG.js"),[]),"../lang/php_it.json":()=>Ft(()=>import("./php_it-BpzSeT_O.js"),[]),"../lang/php_lt.json":()=>Ft(()=>import("./php_lt-Q6u33N4V.js"),[]),"../lang/php_lv.json":()=>Ft(()=>import("./php_lv-CRpOkzjp.js"),[]),"../lang/php_me.json":()=>Ft(()=>import("./php_me-BJi21XTV.js"),[]),"../lang/php_mk.json":()=>Ft(()=>import("./php_mk-BFRotNjT.js"),[]),"../lang/php_mt.json":()=>Ft(()=>import("./php_mt-CwuNMDGU.js"),[]),"../lang/php_nl.json":()=>Ft(()=>import("./php_nl-Cst4MfLg.js"),[]),"../lang/php_pl.json":()=>Ft(()=>import("./php_pl-C6kpsYXS.js"),[]),"../lang/php_pt.json":()=>Ft(()=>import("./php_pt-BfrNopBb.js"),[]),"../lang/php_ro.json":()=>Ft(()=>import("./php_ro-X4MIRHyb.js"),[]),"../lang/php_rs.json":()=>Ft(()=>import("./php_rs-CoGFZoCf.js"),[]),"../lang/php_sk.json":()=>Ft(()=>import("./php_sk-DyliPJki.js"),[]),"../lang/php_sl.json":()=>Ft(()=>import("./php_sl-DksL3eDV.js"),[]),"../lang/php_sv.json":()=>Ft(()=>import("./php_sv-Yzx2WIbY.js"),[]),"../lang/php_tr.json":()=>Ft(()=>import("./php_tr-CwvUgmBM.js"),[]),"../lang/php_ua.json":()=>Ft(()=>import("./php_ua-ByZxJ7Tj.js"),[])})[`../lang/${e}.json`]()});Ut.component("ActivityForm",h4);Ut.component("ResourceForm",TV);Ut.component("ResourceCard",B1);Ut.component("ResourcePill",$1);Ut.component("Pagination",ud);Ut.component("Singleselect",MV);Ut.component("Multiselect",IV);Ut.component("CountrySelect",BV);Ut.component("ModerateEvent",lF);Ut.component("ReportEvent",rH);Ut.component("AutocompleteGeo",MF);Ut.component("DateTime",qB);Ut.component("Question",r8);Ut.component("PictureForm",h8);Ut.component("Flash",od);Ut.component("InputTags",Y8);Ut.component("SearchPageComponent",jU);Ut.component("AvatarForm",P9);Ut.component("PartnerGallery",K9);Ut.component("MatchMakingToolForm",O7);Ut.component("ToolCard",Pw);Ut.component("ToolDetailCard",k9);Ut.component("EventCard",Dw);Ut.component("EventDetail",_U);Ut.component("SelectField",Fo);Ut.mount("#app"); diff --git a/public/build/assets/php_en-Dv7P2FP8.js b/public/build/assets/php_en-B8yGGaL8.js similarity index 96% rename from public/build/assets/php_en-Dv7P2FP8.js rename to public/build/assets/php_en-B8yGGaL8.js index 21aaac344..80fce6d37 100644 --- a/public/build/assets/php_en-Dv7P2FP8.js +++ b/public/build/assets/php_en-B8yGGaL8.js @@ -117,7 +117,11 @@ const e={"auth.failed":"These credentials do not match our records.","auth.passw organizers, who will check your activity before it appears on the map and might contact you if edits are necessary or - for administering surveys for statistical purposes after the activity.`,"edit.privacy_disclaimer.contact_email":"Your contact email","edit.edit":"Edit activity","educational-resources.educational_resources_text":"Welcome! Here, you'll find a collection of free resources designed to support your learning journey!","educational-resources.share_your_resources_button":"Share Your Resources","educational-resources.share_your_resources_title":"Got free and open educational resources?","educational-resources.share_your_resources_text":"Share them with the EU Code Week community! Submit your free resources using the form below, and we'll feature them on this page to help others learn, create and grow.","educational-resources.share_your_feedback_button":"Share Your Feedback","educational-resources.share_your_feedback_text":"Tell us what you think! Share your feedback on the existing resources – whether you have suggestions for improvement, compliments, or new ideas, we'd love to hear from you!","email.subjects.registered":"EU Code Week: Thank you for Registering!","email.subjects.approved":"EU Code Week: Congratulations! Your Activity is Approved","email.subjects.rejected":"EU Code Week: Your Activity is Rejected","event.if-no-clear-information-provide-estimate":"If you do not have clear information, please provide an estimate.","event.banner-section":"banner section","event.add-your-codeweek-activity":"Add your Codeweek activity","event.join-the-community":"Join the community","event.activity-overview-section":"Activity Overview Section","event.activity-title":"Activity title*","event.what-is-the-name-of-the-activity":"What is the name of the activity?","event.event.activity-overview":"Activity Overview","event.event.who-is-the-activity-for":"Who is the activity for","event.event.organiser":"Organiser","event.specify-the-format-of-the-activity":"Specify the format of the activity","event.select-option":"Select Option","event.coding-camp":"Coding Camp","event.summer-camp":"Summer Camp","event.weekend-course":"Weekend Course","event.evening-course":"Evening Course","event.career-day":"Career Day","event.university-visit":"University Visit","event.coding-at-home":"Coding@Home","event.code-week-challenge":"Code Week Challenge","event.competition":"Competition","event.other-group-work-seminars-workshops":"Other (e.g Group Work, Seminars, Workshops)","event.activity-type":"Activity Type*","event.open-online-activity":"Open Online Activity","event.invite-only-online-activity":"Invite-only Online Activity","event.open-in-person-activity":"Open in-person Activity","event.other":"Other","event.activity-address":"Activity Address *","event.activity-address-optional":"Activity address (optional)","event.where-will-the-activity-be-taking-place":"Where will the activity be taking place?","event.activity-duration":"Activity Duration*","event.0-1-hours":"0-1 hours","event.1-2-hours":"1-2 hours","event.2-4-hours":"2-4 hours","event.longer-than-4-hours":"Longer than 4 hours","event.date":"Date*","event.start-date":"Start Date","event.end-date":"End Date","event.is-it-a-recurring-event":"Is it a recurring event?*","event.true":"True","event.false":"False","event.how-frequently":"How Frequently?","event.daily":"Daily","event.weekly":"Weekly","event.monthly":"Monthly","event.any-address-added-below":"Any address added below won’t be shown publicly for invite-only actitivities.","event.what-type-of-recurring-activity":"What type of recurring activity?","event.consecutive-learning-over-multiple-sessions":"Consecutive learning over multiple sessions","event.individual-standalone-lessons-under-common-theme-joint-event":"Individual stand-alone lessons under a common theme/joint even.","event.theme.AI & Generative AI":"AI & Generative AI","event.theme.Robotics, Drones & Smart Devices":"Robotics, Drones & Smart Devices","event.theme.Web, App & Software Development":"Web, App & Software Development","event.theme.Game Design":"Game Design","event.theme.Cybersecurity & Data":"Cybersecurity & Data","event.theme.Visual/Block Programming":"Visual/Block Programming","event.theme.Art & Creative Coding":"Art & Creative Coding","event.theme.Internet of Things & Wearables":"Internet of Things & Wearables","event.theme.AR, VR & 3D Technologies":"AR, VR & 3D Technologies","event.theme.Digital Careers & Learning Pathways":"Digital Careers & Learning Pathways","event.theme.Digital Literacy & Soft Skills":"Digital Literacy & Soft Skills","event.theme.Unplugged & Playful Activities":"Unplugged & Playful Activities","event.theme.Promoting Diversity & Inclusion":"Promoting Diversity & Inclusion","event.theme.Awareness & Inspiration":"Awareness & Inspiration","event.theme.Other":"Other","event.theme-title":"Theme*","event.select-theme":"Select Theme","event.submit":"Submit","event.robotics-drones-smart-devices":"Robotics, Drones & Smart Devices","event.cybersecurity-data":"Cybersecurity & Data","event.web-app-software-development":"Web, App & Software Development","event.visual-block-programming":"Visual/Block Programming","event.unplugged-playful-activities":"Unplugged & Playful Activities","event.art-creative-coding":"Art & Creative Coding","event.game-design":"Game Design","event.internet-of-things-wearables":"Internet of Things & Wearables (Dispositivi Indossabili)","event.ar-vr-3d-technologies":"AR, VR & 3D Technologies","event.digital-careers-learning-pathways":"Digital Careers & Learning Pathways","event.digital-literacy-soft-skills":"Digital Literacy & Soft Skills","event.ai-generative-ai":"AI & Generative AI","event.awareness-inspiration":"Awareness & Inspiration","event.promoting-diversity-inclusion":"Promoting Diversity & Inclusion","event.other-theme":"Other","event.activity-description":"Activity description*","event.briefly-describe-the-activity-planned":"Briefly Describe the Activity Planned","event.next-step":"Next Step","event.previous-step":"Previous Step","event.who-is-this-activity-for-section":"Who is this activity for section","event.audiences":"Audience*","event.event.audience":"Audience*","event.pre-school-children":"Pre-school children","event.elementary-school-students":"Elementary School Students","event.high-school-students":"High School Students","event.graduate-students":"Graduate Students","event.post-graduate-students":"Post Graduate Students","event.employed-adults":"Employed Adults","event.unemployed-adults":"Unemployed Adults","event.others-see-description":"Others (see description)","event.teachers":"Teachers","event.number-of-participants":"Number of participants*","event.enter-number":"Enter Number","event.of-this-number-how-many-are":"Of this number, how many are:","event.males":"Males","event.females":"Females","event.other-gender":"Other","event.age":"Age*","event.under-5-early-learners":"Under 5 – Early Learners","event.6-9-primary":"6-9 - Primary","event.10-12-upper-primary":"10-12 – Upper Primary","event.13-15-lower-secondary":"13-15 - Lower Secondary","event.16-18-upper-secondary":"16-18 – Upper Secondary","event.19-25-young-adults":"19-25 – Young Adults","event.over-25-adults":"Over 25 – Adults","event.is-this-an-extracurricular-activity":"Is this an extracurricular activity?*","event.is-this-an-activity-within-the-standard-school-curriculum":"Is this an activity within the standard school curriculum?","event.code-week-4-all-code-optional":"Code Week 4 All code (optional)","event.leading-teachers-optional":"Leading teachers (optional)","event.image-optional":"Image (optional)","event.drop-your-image-here-or-upload":"Drop your image here, or upload","event.max-size-1mb-image-formats-jpg-png":"Max size: 1 Mb, Image formats: .jpg, .png","event.by-submitting-images-through-this-form-you-confirm-that":"By submitting images through this form, you confirm that:","event.you-have-obtained-all-necessary-permissions":"You have obtained all necessary permissions from the school, organisation, and/or parents/guardians of the children and the adults appearing in the photos.","event.you-will-not-submit-any-images-with-faces-directly-visible-or-identifiable":"You will not submit any images in which the faces of children are directly visible or identifiable.","event.if-this-is-the-case-ensure-faces-are-blurred":"If this is the case, please ensure that the children's faces are appropriately blurred.","event.submissions-that-do-not-comply-will-not-be-accepted":"Submissions that do not comply will not be accepted.","event.you-understand-and-agree-images-will-be-shared":"You understand and agree that these images will be shared on our website along with the description of the activity and may be use for promotional purposes.","event.info-max-size-1mb":"Info: Max size: 1MB","event.organiser-page-section":"Organiser Page Section","event.name-of-organisation":"Name of Organisation*","event.organisation-you-work-in-or-volunteer-for":"Organisation you work in or volunteer for","event.type-of-organisation":"Type of Organisation","event.school":"School","event.library":"Library","event.non-for-profit-organisation":"Non-for Profit Organisation","event.languages-optional":"Languages (optional)","event.country":"Country","event.are-you-using-any-code-week-resources":"Are you using any Code Week resources in this activity?","event.website.label":"Website","event.website.placeholder":"Do you have a website with more information ?","event.are-you-using-any-code-week-resources-in-this-activity":"Are you using any code week resources in this activity?","event.do-you-have-a-website-with-more-information":"Do you have a website with more information?","event.public-email-optional":"Public Email (optional)","event.would-you-like-to-display-a-contact-email":"Would you like to display a contact email?","event.contact-email":"Contact email*","event.this-email-will-be-used-for-important-code-week-correspondence":"This email will be used for important EU Code Week correspondence.","event.your-contact-email-will-only-be-visible-to-ambassadors-and-organisers":"Your contact email will only be visible to EU Code Week Ambassadors and Code week organisers, who will check your activity before it appears on the map and might contact you if edits are necessary or for administering surveys for statistical purposes after the activity.","event.i-have-read-and-agree-with-the-privacy-policy-terms":"I have read and agree with the privacy policy terms ","event.privacy-policy-terms":"described in this document","event.confirmation-step":"Confirmation Step","event.thank-you-for-adding-your-activity":"Thank you for adding your activity!","event.one-of-the-ambassadors-or-organisers-will-review-your-activity":"One of the EU Code Week Ambassadors or organisers will now review your activity XXX and make sure everything is ok.","event.if-you-have-questions-contact-ambassadors-or-organisers":"If you have questions, contact EU Code Week Ambassadors or organisers.","event.you-can-share-your-code-week-4-all-code-with-other-people":"You can share your Code Week 4 all code with other people:","event.see-the-information-you-supplied-below":"See the information you supplied below:","event.optional":"(optional)","event.yes":"Yes","event.no":"No","event.main_title":"Add your #EUCodeWeek activity","event.button":"Add Activity","event.howto":"How to organize your own activity","event.required":"Required fields are marked with an * asterisk. Feel free to add the activity listing in your local language.","event.audience_title":"Audience","event.theme_title":"Theme","event.scoreboard_by_country":"Scoreboard","event.get_involved":"Get involved","event.organize_or_support_events":"Organize or support activities in your city","event.or_contact_your":"or contact your","event.eu_code_week_ambassadors":"EU Code Week Ambassadors","event.show_events_for":"Show activities for ","event.who":"Who is the activity for?","event.tags":"Tags","event.image":"Image","event.start.label":"Start date","event.start.placeholder":"When does the activity start ?","event.end.label":"End date","event.end.placeholder":"When does the activity end ?","event.organizer.label":"Name of organisation","event.organizer.placeholder":"Organisation you work in or volunteer for","event.description.label":"Description","event.description.placeholder":"Briefly describe the activity planned.","event.contact.label":"Contact email","event.contact.placeholder":"This email will be used for important EU Code Week correspondence","event.contact.explanation":"Your contact email will only be visible to EU Code Week Ambassadors and Code week organisers, who will check your activity before it appears on the map and might contact you if edits are necessary or for administering surveys for statistical purposes after the activity.","event.public.label":"Public email","event.public.placeholder":"Would you like to display a contact email ?","event.title.label":"Activity title","event.title.placeholder":"What is the name of the activity ?","event.address.label":"Activity address","event.address.placeholder":"Where will the activity be taking place?","event.organizertype.label":"Type of organisation","event.organizertype.placeholder":"Select the type of organiser","event.organizertype.school":"School","event.organizertype.library":"Library","event.organizertype.non-profit":"Non-for profit Organisation","event.organizertype.private-business":"Private Business","event.organizertype.other":"Other","event.audience.Pre-school children":"Pre-primary education","event.audience.Elementary school students":"Primary school","event.audience.High school students":"Secondary school","event.audience.Graduate students":"Higher Education","event.audience.Post graduate students":"Post graduate students","event.audience.Employed adults":"Employed adults","event.audience.Unemployed adults":"Unemployed adults","event.audience.Other (see description)":"Other (see description)","event.audience.Teachers":"Teachers","event.codeweek_for_all_participation_code.title":"Code week 4 all code","event.codeweek_for_all_participation_code.explanation":"If you have received a Code Week 4 all code from a school colleague or a friend paste it here, otherwise please leave it blank. More info about Code Week 4 All are available","event.codeweek_for_all_participation_code.link":"here","event.thanks_page.title":"Thanks for adding your activity!","event.thanks_page.phrase1":"One of our local ambassadors will now review your activity","event.thanks_page.phrase2":"and make sure everything looks ok.","event.thanks_page.phrase3":"If you have any questions, get in touch with one of our","event.thanks_page.phrase4":"national ambassadors","event.thanks_page.phrase5":"or send us an","event.thanks_page.phrase6":"email","event.thanks_page.phrase7":"You can share your Codeweek for all code with other people:","event.activity_type.Event":"Activity","event.activity_type.Lesson":"Lesson","event.activity_type.Workshop":"Workshop","event.activity_type.Webinar":"Webinar","event.activity_type.Live Streaming Session":"Live Streaming Session","event.activity_type.Other":"Other","event.activitytype.label":"Activity type","event.activitytype.placeholder":"","event.activitytype.open-online":"Open online activity","event.activitytype.invite-online":"Invite-only online activity","event.activitytype.open-in-person":"Open in-person activity","event.activitytype.invite-in-person":"Invite-only in-person activity","event.duration.0-1-hour":"0-1 hours","event.duration.1-2-hours":"1-2 hours","event.duration.2-4-hours":"2-4 hours","event.duration.more-than-4-hours":"longer than 4 hours","event.0-1-hour":"0-1 hours","event.more-than-4-hours":"longer than 4 hours","event.More":"More","event.privacy":"I have read and agree with the privacy policy terms.","event.loading":"Loading...","event.add_activity":"Add activity","event.edit_activity":"Edit activity","event.update_activity":"Update activity","event.delete_activity":"Delete activity","event.total_pending_events":"Total of pending activities:","event.no_pending_events":"No Pending Activity found for","event.all_countries":"All countries","event.current_status":"Current Status","event.certificate_ready":"Your Code Week certificate is ready. Feel free to download it or share it directly.","event.view_your_certificate":"View your certificate here","event.submit_event_and_report":"Submit a report for this activity and claim your Code Week certificate.","event.report_and_claim":"Report activity and claim certificate","event.leading_teacher_tag":"Leading Teacher","event.leading_teacher_tag_choose":"Choose a Leading Teacher","event.last_update":"Last update","event.confirmation_step.activity_overview":"Activity overview","event.confirmation_step.who_is_the_activity_for":"Who is the activity for","event.confirmation_step.organiser":"Organiser","eventdetails.organised_by":"Organized by: ","eventdetails.contact_email":"Contact email: ","eventdetails.happening_at":"Happening at: ","eventdetails.from":"From ","eventdetails.to":" to ","eventdetails.description":"Description: ","eventdetails.more_info":"More information: ","eventdetails.audience":"This activity is for: ","eventdetails.themes":"Main themes: ","eventdetails.tags":"Tags: ","eventdetails.share":"Share the activity: ","eventdetails.email.tooltip":"Click to email this to a friend","eventdetails.email.subject":"Look at this awesome coding activity","eventdetails.email.body_1":"Hi, check out ","eventdetails.email.body_2":"activity at ","eventdetails.edit":"Edit activity","eventdetails.note":"NOTE: ","eventdetails.pending_warning":"This activity is still being reviewed by ","eventdetails.pending_link":"moderators","eventdetails.nearby_upcoming_events":"Nearby upcoming activities:","eventreports.reports_by":"Activities pending for report by ","eventreports.no_reports":"There are no activities to be reported yet.","eventreports.report":`The activities listed below have started or already finished. Fill in a few numbers for +<<<<<<<< HEAD:public/build/assets/php_en-hSRkEOjH.js + for administering surveys for statistical purposes after the activity.`,"edit.privacy_disclaimer.contact_email":"Your contact email","edit.edit":"Edit activity","educational-resources.educational_resources_text":"Welcome! Here, you'll find a collection of free resources designed to support your learning journey!","educational-resources.share_your_resources_button":"Share Your Resources","educational-resources.share_your_resources_title":"Got free and open educational resources?","educational-resources.share_your_resources_text":"Share them with the EU Code Week community! Submit your free resources using the form below, and we'll feature them on this page to help others learn, create and grow.","educational-resources.share_your_feedback_button":"Share Your Feedback","educational-resources.share_your_feedback_text":"Tell us what you think! Share your feedback on the existing resources – whether you have suggestions for improvement, compliments, or new ideas, we'd love to hear from you!","email.subjects.registered":"EU Code Week: Thank you for Registering!","email.subjects.approved":"EU Code Week: Congratulations! Your Activity is Approved","email.subjects.rejected":"EU Code Week: Your Activity is Rejected","event.if-no-clear-information-provide-estimate":"If you do not have clear information, please provide an estimate.","event.banner-section":"banner section","event.add-your-codeweek-activity":"Add your Codeweek activity","event.join-the-community":"Join the community","event.activity-overview-section":"Activity Overview Section","event.activity-title":"Activity title*","event.what-is-the-name-of-the-activity":"What is the name of the activity?","event.event.activity-overview":"Activity Overview","event.event.who-is-the-activity-for":"Who is the activity for","event.event.organiser":"Organiser","event.specify-the-format-of-the-activity":"Specify the format of the activity","event.select-option":"Select Option","event.coding-camp":"Coding Camp","event.summer-camp":"Summer Camp","event.weekend-course":"Weekend Course","event.evening-course":"Evening Course","event.career-day":"Career Day","event.university-visit":"University Visit","event.coding-at-home":"Coding@Home","event.code-week-challenge":"Code Week Challenge","event.competition":"Competition","event.other-group-work-seminars-workshops":"Other (e.g Group Work, Seminars, Workshops)","event.activity-type":"Activity Type*","event.open-online-activity":"Open Online Activity","event.invite-only-online-activity":"Invite-only Online Activity","event.open-in-person-activity":"Open in-person Activity","event.other":"Other","event.activity-address":"Activity Address *","event.activity-address-optional":"Activity address (optional)","event.where-will-the-activity-be-taking-place":"Where will the activity be taking place?","event.activity-duration":"Activity Duration*","event.0-1-hours":"0-1 hours","event.1-2-hours":"1-2 hours","event.2-4-hours":"2-4 hours","event.longer-than-4-hours":"Longer than 4 hours","event.date":"Date*","event.start-date":"Start Date","event.end-date":"End Date","event.is-it-a-recurring-event":"Is it a recurring event?*","event.true":"True","event.false":"False","event.how-frequently":"How Frequently?","event.daily":"Daily","event.weekly":"Weekly","event.monthly":"Monthly","event.any-address-added-below":"Any address added below won’t be shown publicly for invite-only actitivities.","event.what-type-of-recurring-activity":"What type of recurring activity?","event.consecutive-learning-over-multiple-sessions":"Consecutive learning over multiple sessions","event.individual-standalone-lessons-under-common-theme-joint-event":"Individual stand-alone lessons under a common theme/joint even.","event.theme.AI & Generative AI":"AI & Generative AI","event.theme.Robotics, Drones & Smart Devices":"Robotics, Drones & Smart Devices","event.theme.Web, App & Software Development":"Web, App & Software Development","event.theme.Game Design":"Game Design","event.theme.Cybersecurity & Data":"Cybersecurity & Data","event.theme.Visual/Block Programming":"Visual/Block Programming","event.theme.Art & Creative Coding":"Art & Creative Coding","event.theme.Internet of Things & Wearables":"Internet of Things & Wearables","event.theme.AR, VR & 3D Technologies":"AR, VR & 3D Technologies","event.theme.Digital Careers & Learning Pathways":"Digital Careers & Learning Pathways","event.theme.Digital Literacy & Soft Skills":"Digital Literacy & Soft Skills","event.theme.Unplugged & Playful Activities":"Unplugged & Playful Activities","event.theme.Promoting Diversity & Inclusion":"Promoting Diversity & Inclusion","event.theme.Awareness & Inspiration":"Awareness & Inspiration","event.theme.Other":"Other","event.theme-title":"Theme*","event.select-theme":"Select Theme","event.submit":"Submit","event.robotics-drones-smart-devices":"Robotics, Drones & Smart Devices","event.cybersecurity-data":"Cybersecurity & Data","event.web-app-software-development":"Web, App & Software Development","event.visual-block-programming":"Visual/Block Programming","event.unplugged-playful-activities":"Unplugged & Playful Activities","event.art-creative-coding":"Art & Creative Coding","event.game-design":"Game Design","event.internet-of-things-wearables":"Internet of Things & Wearables (Dispositivi Indossabili)","event.ar-vr-3d-technologies":"AR, VR & 3D Technologies","event.digital-careers-learning-pathways":"Digital Careers & Learning Pathways","event.digital-literacy-soft-skills":"Digital Literacy & Soft Skills","event.ai-generative-ai":"AI & Generative AI","event.awareness-inspiration":"Awareness & Inspiration","event.promoting-diversity-inclusion":"Promoting Diversity & Inclusion","event.other-theme":"Other","event.activity-description":"Activity description*","event.briefly-describe-the-activity-planned":"Briefly Describe the Activity Planned","event.next-step":"Next Step","event.previous-step":"Previous Step","event.who-is-this-activity-for-section":"Who is this activity for section","event.audiences":"Audience*","event.event.audience":"Audience*","event.pre-school-children":"Pre-school children","event.elementary-school-students":"Elementary School Students","event.high-school-students":"High School Students","event.graduate-students":"Graduate Students","event.post-graduate-students":"Post Graduate Students","event.employed-adults":"Employed Adults","event.unemployed-adults":"Unemployed Adults","event.others-see-description":"Others (see description)","event.teachers":"Teachers","event.number-of-participants":"Number of participants*","event.enter-number":"Enter Number","event.of-this-number-how-many-are":"Of this number, how many are:","event.males":"Males","event.females":"Females","event.other-gender":"Other","event.age":"Age*","event.under-5-early-learners":"Under 5 – Early Learners","event.6-9-primary":"6-9 - Primary","event.10-12-upper-primary":"10-12 – Upper Primary","event.13-15-lower-secondary":"13-15 - Lower Secondary","event.16-18-upper-secondary":"16-18 – Upper Secondary","event.19-25-young-adults":"19-25 – Young Adults","event.over-25-adults":"Over 25 – Adults","event.is-this-an-extracurricular-activity":"Is this an extracurricular activity?*","event.is-this-an-activity-within-the-standard-school-curriculum":"Is this an activity within the standard school curriculum?","event.code-week-4-all-code-optional":"Code Week 4 All code (optional)","event.leading-teachers-optional":"Leading teachers (optional)","event.image-optional":"Image (optional)","event.drop-your-image-here-or-upload":"Drop your image here, or upload","event.max-size-1mb-image-formats-jpg-png":"Max size: 1 Mb, Image formats: .jpg, .png","event.by-submitting-images-through-this-form-you-confirm-that":"By submitting images through this form, you confirm that:","event.you-have-obtained-all-necessary-permissions":"You have obtained all necessary permissions from the school, organisation, and/or parents/guardians of the children and the adults appearing in the photos.","event.you-will-not-submit-any-images-with-faces-directly-visible-or-identifiable":"You will not submit any images in which the faces of children are directly visible or identifiable.","event.if-this-is-the-case-ensure-faces-are-blurred":"If this is the case, please ensure that the children's faces are appropriately blurred.","event.submissions-that-do-not-comply-will-not-be-accepted":"Submissions that do not comply will not be accepted.","event.you-understand-and-agree-images-will-be-shared":"You understand and agree that these images will be shared on our website along with the description of the activity and may be use for promotional purposes.","event.info-max-size-1mb":"Info: Max size: 1MB","event.organiser-page-section":"Organiser Page Section","event.name-of-organisation":"Name of Organisation*","event.organisation-you-work-in-or-volunteer-for":"Organisation you work in or volunteer for","event.type-of-organisation":"Type of Organisation","event.school":"School","event.library":"Library","event.non-for-profit-organisation":"Non-for Profit Organisation","event.languages-optional":"Languages (optional)","event.country":"Country","event.are-you-using-any-code-week-resources":"Are you using any Code Week resources in this activity?","event.website.label":"Website","event.website.placeholder":"Do you have a website with more information ?","event.are-you-using-any-code-week-resources-in-this-activity":"Are you using any code week resources in this activity?","event.do-you-have-a-website-with-more-information":"Do you have a website with more information?","event.public-email-optional":"Public Email (optional)","event.would-you-like-to-display-a-contact-email":"Would you like to display a contact email?","event.contact-email":"Contact email*","event.this-email-will-be-used-for-important-code-week-correspondence":"This email will be used for important EU Code Week correspondence.","event.your-contact-email-will-only-be-visible-to-ambassadors-and-organisers":"Your contact email will only be visible to EU Code Week Ambassadors and Code week organisers, who will check your activity before it appears on the map and might contact you if edits are necessary or for administering surveys for statistical purposes after the activity.","event.i-have-read-and-agree-with-the-privacy-policy-terms":"I have read and agree with the privacy policy terms ","event.privacy-policy-terms":"described in this document","event.confirmation-step":"Confirmation Step","event.thank-you-for-adding-your-activity":"Thank you for adding your activity!","event.one-of-the-ambassadors-or-organisers-will-review-your-activity":"One of the EU Code Week Ambassadors or organisers will now review your activity XXX and make sure everything is ok.","event.if-you-have-questions-contact-ambassadors-or-organisers":"If you have questions, contact EU Code Week Ambassadors or organisers.","event.you-can-share-your-code-week-4-all-code-with-other-people":"You can share your Code Week 4 all code with other people:","event.see-the-information-you-supplied-below":"See the information you supplied below:","event.optional":"(optional)","event.yes":"Yes","event.no":"No","event.main_title":"Add your #EUCodeWeek activity","event.button":"Add Activity","event.howto":"How to organize your own activity","event.required":"Required fields are marked with an * asterisk. Feel free to add the activity listing in your local language.","event.audience_title":"Audience","event.theme_title":"Theme","event.scoreboard_by_country":"Scoreboard","event.get_involved":"Get involved","event.organize_or_support_events":"Organize or support activities in your city","event.or_contact_your":"or contact your","event.eu_code_week_ambassadors":"EU Code Week Ambassadors","event.show_events_for":"Show activities for ","event.who":"Who is the activity for?","event.tags":"Tags","event.image":"Image","event.start.label":"Start date","event.start.placeholder":"When does the activity start ?","event.end.label":"End date","event.end.placeholder":"When does the activity end ?","event.organizer.label":"Name of organisation","event.organizer.placeholder":"Organisation you work in or volunteer for","event.description.label":"Description","event.description.placeholder":"Briefly describe the activity planned.","event.contact.label":"Contact email","event.contact.placeholder":"This email will be used for important EU Code Week correspondence","event.contact.explanation":"Your contact email will only be visible to EU Code Week Ambassadors and Code week organisers, who will check your activity before it appears on the map and might contact you if edits are necessary or for administering surveys for statistical purposes after the activity.","event.public.label":"Public email","event.public.placeholder":"Would you like to display a contact email ?","event.title.label":"Activity title","event.title.placeholder":"What is the name of the activity ?","event.address.label":"Activity address","event.address.placeholder":"Where will the activity be taking place?","event.organizertype.label":"Type of organisation","event.organizertype.placeholder":"Select the type of organiser","event.organizertype.school":"School","event.organizertype.library":"Library","event.organizertype.non-profit":"Non-for profit Organisation","event.organizertype.private-business":"Private Business","event.organizertype.other":"Other","event.audience.Pre-school children":"Pre-primary education","event.audience.Elementary school students":"Primary school","event.audience.High school students":"Secondary school","event.audience.Graduate students":"Higher Education","event.audience.Post graduate students":"Post graduate students","event.audience.Employed adults":"Employed adults","event.audience.Unemployed adults":"Unemployed adults","event.audience.Other (see description)":"Other (see description)","event.audience.Teachers":"Teachers","event.codeweek_for_all_participation_code.title":"Code week 4 all code","event.codeweek_for_all_participation_code.explanation":"If you have received a Code Week 4 all code from a school colleague or a friend paste it here, otherwise please leave it blank. More info about Code Week 4 All are available","event.codeweek_for_all_participation_code.link":"here","event.thanks_page.title":"Thanks for adding your activity!","event.thanks_page.phrase1":"One of our local ambassadors will now review your activity","event.thanks_page.phrase2":"and make sure everything looks ok.","event.thanks_page.phrase3":"If you have any questions, get in touch with one of our","event.thanks_page.phrase4":"national ambassadors","event.thanks_page.phrase5":"or send us an","event.thanks_page.phrase6":"email","event.thanks_page.phrase7":"You can share your Codeweek for all code with other people:","event.activity_type.Event":"Activity","event.activity_type.Lesson":"Lesson","event.activity_type.Workshop":"Workshop","event.activity_type.Webinar":"Webinar","event.activity_type.Live Streaming Session":"Live Streaming Session","event.activity_type.Other":"Other","event.activitytype.label":"Activity type","event.activitytype.placeholder":"","event.activitytype.open-online":"Open online activity","event.activitytype.invite-online":"Invite-only online activity","event.activitytype.open-in-person":"Open in-person activity","event.activitytype.invite-in-person":"Invite-only in-person activity","event.duration.0-1-hour":"0-1 hours","event.duration.1-2-hours":"1-2 hours","event.duration.2-4-hours":"2-4 hours","event.duration.more-than-4-hours":"longer than 4 hours","event.0-1-hour":"0-1 hours","event.more-than-4-hours":"longer than 4 hours","event.More":"More","event.privacy":"I have read and agree with the privacy policy terms.","event.loading":"Loading...","event.add_activity":"Add activity","event.edit_activity":"Edit activity","event.update_activity":"Update activity","event.delete_activity":"Delete activity","event.total_pending_events":"Total of pending activities:","event.no_pending_events":"No Pending Activity found for","event.all_countries":"All countries","event.current_status":"Current Status","event.certificate_ready":"Your Code Week certificate is ready. Feel free to download it or share it directly.","event.view_your_certificate":"View your certificate here","event.submit_event_and_report":"Submit a report for this activity and claim your Code Week certificate.","event.report_and_claim":"Report activity and claim certificate","event.leading_teacher_tag":"Leading Teacher","event.leading_teacher_tag_choose":"Choose a Leading Teacher","event.last_update":"Last update","event.confirmation_step.activity_overview":"Activity overview","event.confirmation_step.who_is_the_activity_for":"Who is the activity for","event.confirmation_step.organiser":"Organiser","event.your-changes-have-been-saved":"Your changes have been saved","event.edit-your-codeweek-activity":"Edit your Codeweek activity","event.view-activity":"View Activity","event.add-another-activity":"Add another Activity","eventdetails.organised_by":"Organized by: ","eventdetails.contact_email":"Contact email: ","eventdetails.happening_at":"Happening at: ","eventdetails.from":"From ","eventdetails.to":" to ","eventdetails.description":"Description: ","eventdetails.more_info":"More information: ","eventdetails.audience":"This activity is for: ","eventdetails.themes":"Main themes: ","eventdetails.tags":"Tags: ","eventdetails.share":"Share the activity: ","eventdetails.email.tooltip":"Click to email this to a friend","eventdetails.email.subject":"Look at this awesome coding activity","eventdetails.email.body_1":"Hi, check out ","eventdetails.email.body_2":"activity at ","eventdetails.edit":"Edit activity","eventdetails.note":"NOTE: ","eventdetails.pending_warning":"This activity is still being reviewed by ","eventdetails.pending_link":"moderators","eventdetails.nearby_upcoming_events":"Nearby upcoming activities:","eventreports.reports_by":"Activities pending for report by ","eventreports.no_reports":"There are no activities to be reported yet.","eventreports.report":`The activities listed below have started or already finished. Fill in a few numbers for +======== + for administering surveys for statistical purposes after the activity.`,"edit.privacy_disclaimer.contact_email":"Your contact email","edit.edit":"Edit activity","educational-resources.educational_resources_text":"Welcome! Here, you'll find a collection of free resources designed to support your learning journey!","educational-resources.share_your_resources_button":"Share Your Resources","educational-resources.share_your_resources_title":"Got free and open educational resources?","educational-resources.share_your_resources_text":"Share them with the EU Code Week community! Submit your free resources using the form below, and we'll feature them on this page to help others learn, create and grow.","educational-resources.share_your_feedback_button":"Share Your Feedback","educational-resources.share_your_feedback_text":"Tell us what you think! Share your feedback on the existing resources – whether you have suggestions for improvement, compliments, or new ideas, we'd love to hear from you!","email.subjects.registered":"EU Code Week: Thank you for Registering!","email.subjects.approved":"EU Code Week: Congratulations! Your Activity is Approved","email.subjects.rejected":"EU Code Week: Your Activity is Rejected","event.if-no-clear-information-provide-estimate":"If you do not have clear information, please provide an estimate.","event.banner-section":"banner section","event.add-your-codeweek-activity":"Add your Codeweek activity","event.join-the-community":"Join the community","event.activity-overview-section":"Activity Overview Section","event.activity-title":"Activity title*","event.what-is-the-name-of-the-activity":"What is the name of the activity?","event.event.activity-overview":"Activity Overview","event.event.who-is-the-activity-for":"Who is the activity for","event.event.organiser":"Organiser","event.specify-the-format-of-the-activity":"Specify the format of the activity","event.select-option":"Select Option","event.coding-camp":"Coding Camp","event.summer-camp":"Summer Camp","event.weekend-course":"Weekend Course","event.evening-course":"Evening Course","event.career-day":"Career Day","event.university-visit":"University Visit","event.coding-at-home":"Coding@Home","event.code-week-challenge":"Code Week Challenge","event.competition":"Competition","event.other-group-work-seminars-workshops":"Other (e.g Group Work, Seminars, Workshops)","event.activity-type":"Activity Type*","event.open-online-activity":"Open Online Activity","event.invite-only-online-activity":"Invite-only Online Activity","event.open-in-person-activity":"Open in-person Activity","event.other":"Other","event.activity-address":"Activity Address *","event.activity-address-optional":"Activity address (optional)","event.where-will-the-activity-be-taking-place":"Where will the activity be taking place?","event.activity-duration":"Activity Duration*","event.0-1-hours":"0-1 hours","event.1-2-hours":"1-2 hours","event.2-4-hours":"2-4 hours","event.longer-than-4-hours":"Longer than 4 hours","event.date":"Date*","event.start-date":"Start Date","event.end-date":"End Date","event.is-it-a-recurring-event":"Is it a recurring event?*","event.true":"True","event.false":"False","event.how-frequently":"How Frequently?","event.daily":"Daily","event.weekly":"Weekly","event.monthly":"Monthly","event.any-address-added-below":"Any address added below won’t be shown publicly for invite-only actitivities.","event.what-type-of-recurring-activity":"What type of recurring activity?","event.consecutive-learning-over-multiple-sessions":"Consecutive learning over multiple sessions","event.individual-standalone-lessons-under-common-theme-joint-event":"Individual stand-alone lessons under a common theme/joint even.","event.theme.AI & Generative AI":"AI & Generative AI","event.theme.Robotics, Drones & Smart Devices":"Robotics, Drones & Smart Devices","event.theme.Web, App & Software Development":"Web, App & Software Development","event.theme.Game Design":"Game Design","event.theme.Cybersecurity & Data":"Cybersecurity & Data","event.theme.Visual/Block Programming":"Visual/Block Programming","event.theme.Art & Creative Coding":"Art & Creative Coding","event.theme.Internet of Things & Wearables":"Internet of Things & Wearables","event.theme.AR, VR & 3D Technologies":"AR, VR & 3D Technologies","event.theme.Digital Careers & Learning Pathways":"Digital Careers & Learning Pathways","event.theme.Digital Literacy & Soft Skills":"Digital Literacy & Soft Skills","event.theme.Unplugged & Playful Activities":"Unplugged & Playful Activities","event.theme.Promoting Diversity & Inclusion":"Promoting Diversity & Inclusion","event.theme.Awareness & Inspiration":"Awareness & Inspiration","event.theme.Other":"Other","event.theme-title":"Theme*","event.select-theme":"Select Theme","event.submit":"Submit","event.robotics-drones-smart-devices":"Robotics, Drones & Smart Devices","event.cybersecurity-data":"Cybersecurity & Data","event.web-app-software-development":"Web, App & Software Development","event.visual-block-programming":"Visual/Block Programming","event.unplugged-playful-activities":"Unplugged & Playful Activities","event.art-creative-coding":"Art & Creative Coding","event.game-design":"Game Design","event.internet-of-things-wearables":"Internet of Things & Wearables (Dispositivi Indossabili)","event.ar-vr-3d-technologies":"AR, VR & 3D Technologies","event.digital-careers-learning-pathways":"Digital Careers & Learning Pathways","event.digital-literacy-soft-skills":"Digital Literacy & Soft Skills","event.ai-generative-ai":"AI & Generative AI","event.awareness-inspiration":"Awareness & Inspiration","event.promoting-diversity-inclusion":"Promoting Diversity & Inclusion","event.other-theme":"Other","event.activity-description":"Activity description*","event.briefly-describe-the-activity-planned":"Briefly Describe the Activity Planned","event.next-step":"Next Step","event.previous-step":"Previous Step","event.who-is-this-activity-for-section":"Who is this activity for section","event.audiences":"Audience*","event.event.audience":"Audience*","event.pre-school-children":"Pre-school children","event.elementary-school-students":"Elementary School Students","event.high-school-students":"High School Students","event.graduate-students":"Graduate Students","event.post-graduate-students":"Post Graduate Students","event.employed-adults":"Employed Adults","event.unemployed-adults":"Unemployed Adults","event.others-see-description":"Others (see description)","event.teachers":"Teachers","event.number-of-participants":"Number of participants*","event.enter-number":"Enter Number","event.of-this-number-how-many-are":"Of this number, how many are:","event.males":"Males","event.females":"Females","event.other-gender":"Other","event.age":"Age*","event.under-5-early-learners":"Under 5 – Early Learners","event.6-9-primary":"6-9 - Primary","event.10-12-upper-primary":"10-12 – Upper Primary","event.13-15-lower-secondary":"13-15 - Lower Secondary","event.16-18-upper-secondary":"16-18 – Upper Secondary","event.19-25-young-adults":"19-25 – Young Adults","event.over-25-adults":"Over 25 – Adults","event.is-this-an-extracurricular-activity":"Is this an extracurricular activity?*","event.is-this-an-activity-within-the-standard-school-curriculum":"Is this an activity within the standard school curriculum?","event.code-week-4-all-code-optional":"Code Week 4 All code (optional)","event.leading-teachers-optional":"Leading teachers (optional)","event.image-optional":"Image (optional)","event.drop-your-image-here-or-upload":"Drop your image here, or upload","event.max-size-1mb-image-formats-jpg-png":"Max size: 1 Mb, Image formats: .jpg, .png","event.by-submitting-images-through-this-form-you-confirm-that":"By submitting images through this form, you confirm that:","event.you-have-obtained-all-necessary-permissions":"You have obtained all necessary permissions from the school, organisation, and/or parents/guardians of the children and the adults appearing in the photos.","event.you-will-not-submit-any-images-with-faces-directly-visible-or-identifiable":"You will not submit any images in which the faces of children are directly visible or identifiable.","event.if-this-is-the-case-ensure-faces-are-blurred":"If this is the case, please ensure that the children's faces are appropriately blurred.","event.submissions-that-do-not-comply-will-not-be-accepted":"Submissions that do not comply will not be accepted.","event.you-understand-and-agree-images-will-be-shared":"You understand and agree that these images will be shared on our website along with the description of the activity and may be use for promotional purposes.","event.info-max-size-1mb":"Info: Max size: 1MB","event.organiser-page-section":"Organiser Page Section","event.name-of-organisation":"Name of Organisation*","event.organisation-you-work-in-or-volunteer-for":"Organisation you work in or volunteer for","event.type-of-organisation":"Type of Organisation","event.school":"School","event.library":"Library","event.non-for-profit-organisation":"Non-for Profit Organisation","event.languages-optional":"Languages (optional)","event.country":"Country","event.are-you-using-any-code-week-resources":"Are you using any Code Week resources in this activity?","event.website.label":"Website","event.website.placeholder":"Do you have a website with more information ?","event.are-you-using-any-code-week-resources-in-this-activity":"Are you using any code week resources in this activity?","event.do-you-have-a-website-with-more-information":"Do you have a website with more information?","event.public-email-optional":"Public Email (optional)","event.would-you-like-to-display-a-contact-email":"Would you like to display a contact email?","event.contact-email":"Contact email*","event.this-email-will-be-used-for-important-code-week-correspondence":"This email will be used for important EU Code Week correspondence.","event.your-contact-email-will-only-be-visible-to-ambassadors-and-organisers":"Your contact email will only be visible to EU Code Week Ambassadors and Code week organisers, who will check your activity before it appears on the map and might contact you if edits are necessary or for administering surveys for statistical purposes after the activity.","event.i-have-read-and-agree-with-the-privacy-policy-terms":"I have read and agree with the privacy policy terms ","event.privacy-policy-terms":"described in this document","event.confirmation-step":"Confirmation Step","event.thank-you-for-adding-your-activity":"Thank you for adding your activity!","event.one-of-the-ambassadors-or-organisers-will-review-your-activity":"One of the EU Code Week Ambassadors or organisers will now review your activity XXX and make sure everything is ok.","event.if-you-have-questions-contact-ambassadors-or-organisers":"If you have questions, contact EU Code Week Ambassadors or organisers.","event.you-can-share-your-code-week-4-all-code-with-other-people":"You can share your Code Week 4 all code with other people:","event.see-the-information-you-supplied-below":"See the information you supplied below:","event.optional":"(optional)","event.yes":"Yes","event.no":"No","event.main_title":"Add your #EUCodeWeek activity","event.button":"Add Activity","event.howto":"How to organize your own activity","event.required":"Required fields are marked with an * asterisk. Feel free to add the activity listing in your local language.","event.audience_title":"Audience","event.theme_title":"Theme","event.scoreboard_by_country":"Scoreboard","event.get_involved":"Get involved","event.organize_or_support_events":"Organize or support activities in your city","event.or_contact_your":"or contact your","event.eu_code_week_ambassadors":"EU Code Week Ambassadors","event.show_events_for":"Show activities for ","event.who":"Who is the activity for?","event.tags":"Tags","event.image":"Image","event.start.label":"Start date","event.start.placeholder":"When does the activity start ?","event.end.label":"End date","event.end.placeholder":"When does the activity end ?","event.organizer.label":"Name of organisation","event.organizer.placeholder":"Organisation you work in or volunteer for","event.description.label":"Description","event.description.placeholder":"Briefly describe the activity planned.","event.contact.label":"Contact email","event.contact.placeholder":"This email will be used for important EU Code Week correspondence","event.contact.explanation":"Your contact email will only be visible to EU Code Week Ambassadors and Code week organisers, who will check your activity before it appears on the map and might contact you if edits are necessary or for administering surveys for statistical purposes after the activity.","event.public.label":"Public email","event.public.placeholder":"Would you like to display a contact email ?","event.title.label":"Activity title","event.title.placeholder":"What is the name of the activity ?","event.address.label":"Activity address","event.address.placeholder":"Where will the activity be taking place?","event.organizertype.label":"Type of organisation","event.organizertype.placeholder":"Select the type of organiser","event.organizertype.school":"School","event.organizertype.library":"Library","event.organizertype.non-profit":"Non-for profit Organisation","event.organizertype.private-business":"Private Business","event.organizertype.other":"Other","event.audience.Pre-school children":"Pre-primary education","event.audience.Elementary school students":"Primary school","event.audience.High school students":"Secondary school","event.audience.Graduate students":"Higher Education","event.audience.Post graduate students":"Post graduate students","event.audience.Employed adults":"Employed adults","event.audience.Unemployed adults":"Unemployed adults","event.audience.Other (see description)":"Other (see description)","event.audience.Teachers":"Teachers","event.codeweek_for_all_participation_code.title":"Code week 4 all code","event.codeweek_for_all_participation_code.explanation":"If you have received a Code Week 4 all code from a school colleague or a friend paste it here, otherwise please leave it blank. More info about Code Week 4 All are available","event.codeweek_for_all_participation_code.link":"here","event.thanks_page.title":"Thanks for adding your activity!","event.thanks_page.phrase1":"One of our local ambassadors will now review your activity","event.thanks_page.phrase2":"and make sure everything looks ok.","event.thanks_page.phrase3":"If you have any questions, get in touch with one of our","event.thanks_page.phrase4":"national ambassadors","event.thanks_page.phrase5":"or send us an","event.thanks_page.phrase6":"email","event.thanks_page.phrase7":"You can share your Codeweek for all code with other people:","event.activity_type.Event":"Activity","event.activity_type.Lesson":"Lesson","event.activity_type.Workshop":"Workshop","event.activity_type.Webinar":"Webinar","event.activity_type.Live Streaming Session":"Live Streaming Session","event.activity_type.Other":"Other","event.activitytype.label":"Activity type","event.activitytype.placeholder":"","event.activitytype.open-online":"Open online activity","event.activitytype.invite-online":"Invite-only online activity","event.activitytype.open-in-person":"Open in-person activity","event.activitytype.invite-in-person":"Invite-only in-person activity","event.duration.0-1-hour":"0-1 hours","event.duration.1-2-hours":"1-2 hours","event.duration.2-4-hours":"2-4 hours","event.duration.more-than-4-hours":"longer than 4 hours","event.0-1-hour":"0-1 hours","event.more-than-4-hours":"longer than 4 hours","event.More":"More","event.privacy":"I have read and agree with the privacy policy terms.","event.loading":"Loading...","event.add_activity":"Add activity","event.edit_activity":"Edit activity","event.update_activity":"Update activity","event.delete_activity":"Delete activity","event.total_pending_events":"Total of pending activities:","event.no_pending_events":"No Pending Activity found for","event.all_countries":"All countries","event.current_status":"Current Status","event.certificate_ready":"Your Code Week certificate is ready. Feel free to download it or share it directly.","event.view_your_certificate":"View your certificate here","event.submit_event_and_report":"Submit a report for this activity and claim your Code Week certificate.","event.report_and_claim":"Report activity and claim certificate","event.leading_teacher_tag":"Leading Teacher","event.leading_teacher_tag_choose":"Choose a Leading Teacher","event.last_update":"Last update","event.confirmation_step.activity_overview":"Activity overview","event.confirmation_step.who_is_the_activity_for":"Who is the activity for","event.confirmation_step.organiser":"Organiser","event.your-changes-have-been-saved":"Your Chnages have been saved","event.view-activity":"View activity","event.add-another-activity":"Add another activity","event.event.view-activity":"View activity","event.event.add-another-activity":"Add another activity","event.event.audience.Pre-primary education":"Pre-primary education","event.event.your-changes-have-been-saved":"Your CHnages have been saved","eventdetails.organised_by":"Organized by: ","eventdetails.contact_email":"Contact email: ","eventdetails.happening_at":"Happening at: ","eventdetails.from":"From ","eventdetails.to":" to ","eventdetails.description":"Description: ","eventdetails.more_info":"More information: ","eventdetails.audience":"This activity is for: ","eventdetails.themes":"Main themes: ","eventdetails.tags":"Tags: ","eventdetails.share":"Share the activity: ","eventdetails.email.tooltip":"Click to email this to a friend","eventdetails.email.subject":"Look at this awesome coding activity","eventdetails.email.body_1":"Hi, check out ","eventdetails.email.body_2":"activity at ","eventdetails.edit":"Edit activity","eventdetails.note":"NOTE: ","eventdetails.pending_warning":"This activity is still being reviewed by ","eventdetails.pending_link":"moderators","eventdetails.nearby_upcoming_events":"Nearby upcoming activities:","eventreports.reports_by":"Activities pending for report by ","eventreports.no_reports":"There are no activities to be reported yet.","eventreports.report":`The activities listed below have started or already finished. Fill in a few numbers for +>>>>>>>> 6fcbf1d4e8aed2dbe0da4a38eaeb4dcb0d438f03:public/build/assets/php_en-B8yGGaL8.js statistical purposes for the activity and claim your Code Week participation certificate. You will get one certificate per activity.`,"excellence.title":"Generate your certificate of Excellence for Codeweek","excellence.generate":"Generate the Certificate of Excellence","excellence.required":"Required fields are marked with an * asterisk.","excellence.name_for_certificate.label":"Name for certificate","excellence.name_for_certificate.help":"Change this to the name of the activity organizer who will be issued a certificate of Excellence.","footer.privacy_policy":"Privacy Policy","footer.cookies_policy":"Cookies Policy","footer.about_us":"About us","footer.about_code_week":"About Code Week","footer.our_values":"Our Values","footer.statistics":"Scoreboard","footer.partners_sponsors":"Partners & Sponsors","footer.community":"Community","footer.quick_links":"Quick links","footer.register":"Register","footer.activities_events":"Activities & Events","footer.learn_teach":"Learn & Teach","footer.news":"News","footer.newsletter_signup":"Newsletter Sign Up","footer.educational_resources":"Educational Resources","footer.coding_home":"Coding @ Home","footer.podcast":"Podcast","footer.challenges":"Challenges","footer.hackathons":"Hackathons","footer.designed_and_developed_by":"Designed and developed by","footer.all_rights_reserved":"All Rights Reserved","footer.get-involved":"Get Involved","footer.contact-us":"Contact Us","girls-in-digital.landing_header":"Empower, inspire and celebrate the next generation of girls and young Europeans!","girls-in-digital.about_girls_title":"About Girls in Digital","girls-in-digital.about_girls_description_1":"Get ready to celebrate Girls in Digital Week from 24–28 March 2025, as we put a spotlight on inclusion, innovation, and the limitless opportunities digital skills offer to all!","girls-in-digital.about_girls_description_2":"Girls in Digital is part of a larger movement to inspire and empower the next generation of young Europeans—regardless of gender—to thrive in an inclusive digital world. Our purpose? To break down barriers and ensure that every young person—girl, boy, or non-binary—has the confidence to explore STE(A)M fields, embrace tech careers, and drive the future of innovation.","girls-in-digital.read_more":"Read More","girls-in-digital.resource_title":"Resources","girls-in-digital.resource_person_title":"Are you a young person or parent?","girls-in-digital.resource_person_description_1":"You are a young person passionate about technology, coding, or digital creativity; explore activities near you and begin your journey today.","girls-in-digital.resource_person_description_2":"You are a parent looking for inclusive activities for your child to participate in a safe and supportive space; discover opportunities that nurture their interest in technology and digital skills.","girls-in-digital.resource_educator_title":"Are you an educator?","girls-in-digital.resource_educator_description":"You are an educator looking to organise an activity to empower youth with digital skills in a safe and inclusive environment, where all feel welcomed to explore the endless opportunities that digital has to offer. Check our resources below for guidance and support in bringing your activity to life.","girls-in-digital.resource_search_activity":"Search an activity","girls-in-digital.resource_organise_activity":"Organise an activity","girls-in-digital.resource_digital_activity":"Girls in Digital Activity Guideline","girls-in-digital.resource_social_media":"Social Media Kit","girls-in-digital.relevant_statistics_title":"Some visual elements showing relevant Statistics","girls-in-digital.relevant_statistics_graph_1":"The graphs illustrate the persistent gender gap in ICT across different stages of a young European’s journey, from education to professional life. While female representation has gradually increased between 2013 and 2023, the sector remains male-dominated, highlighting the need for further progress in closing the gap.","girls-in-digital.relevant_statistics_graph_2":"Multiple interconnected factors influence girls' and women's participation, achievement, and progression in STEM, with individual beliefs shaped by family, peers, education, and broader societal influences. This diagram illustrates the various factors at different levels influencing female representation in STEM. Addressing these factors holistically has been shown to positively impact confidence and motivation, encouraging more girls and women to pursue STEM education and careers.","girls-in-digital.faq":"FAQ’s","girls-in-digital.faq_girls_digital_title":"What is Girls in Digital?","girls-in-digital.faq_girls_digital_description":"Girls in Digital (GiD) is an EU Code Week initiative aimed at empowering girls and young women to explore and excel in digital skills, STEM fields, and technology-driven careers while fostering gender equality.","girls-in-digital.faq_girls_digital_activities_title":"Who can participate in Girls in Digital activities?","girls-in-digital.faq_girls_digital_activities_description":"The initiative is inclusive of all genders, but its primary focus is on encouraging and empowering girls and young women. Activities can be tailored for girls-only groups or mixed-gender settings.","girls-in-digital.faq_girls_digital_focus_title":"Why does Girls in Digital focus on girls?","girls-in-digital.faq_girls_digital_focus_description":"Girls are underrepresented in digital fields, STEM careers, and ICT studies. GiD aims to bridge these gaps and inspire a new generation of women in technology by breaking down gender stereotypes and promoting equality. A more gender-balanced workforce in these fields will not only foster innovation but also contribute to building a better, more inclusive future.","girls-in-digital.faq_girls_digital_organise_title":"How can I organise a Girls in Digital activity?","girls-in-digital.faq_girls_digital_organise_description":"You can use the Girls in Digital Activity Guidelines, which provide step-by-step instructions, resources, and tips to plan and execute engaging activities tailored to your group’s needs.","girls-in-digital.faq_girls_digital_skill_title":"Do I need prior experience in digital skills to organise an activity?","girls-in-digital.faq_girls_digital_skill_description":"No, the guidelines are designed to be accessible for everyone, regardless of their expertise. They include examples, templates, and resources to help you get started.","girls-in-digital.faq_girls_digital_type_organise_title":"What types of activities can I organise?","girls-in-digital.faq_girls_digital_type_organise_description":"Activities range from coding workshops and robotics challenges to interactive discussions on digital careers and gender equality. The guidelines also include creative projects that encourage teamwork and innovation.","girls-in-digital.faq_girls_digital_event_title":"Are there any funding opportunities for Girls in Digital events?","girls-in-digital.faq_girls_digital_event_description":"This depends on your region and local resources. Check with your national or regional hubs or reach out to partners affiliated with the initiative. Find the list of EU Code Week national and regional hubs","girls-in-digital.faq_girls_digital_skill_join_title":"Do I need any prior knowledge of coding or digital skills to join?","girls-in-digital.faq_girls_digital_skill_join_description":"Not at all! GiD activities are designed to be fun and beginner-friendly, encouraging everyone to explore and learn regardless of their starting point.","girls-in-digital.faq_girls_digital_participating_title":"What skills will I gain by participating?","girls-in-digital.faq_girls_digital_participating_description":"You’ll learn a variety of skills, including coding, problem-solving, teamwork, creativity, and critical thinking. You’ll also gain insights into digital careers and STE(A)M opportunities.","girls-in-digital.faq_girls_digital_students_title":"Can boys or nonbinary students participate in GiD activities?","girls-in-digital.faq_girls_digital_students_description":"Yes, GiD is inclusive of all genders. While the initiative aims to address the underrepresentation of girls in digital fields by providing them with tailored support and encouragement, it is important for all citizens–irrespective of their age, gender, nationalities ethnicity, abilities–to be aware of the current gender gap and help create a more inclusive digital future, making it essential for all individuals to engage, learn, and be part of the solution.","girls-in-digital.faq_girls_digital_promote_gender_title":"How does Girls in Digital promote gender equality?","girls-in-digital.faq_girls_digital_promote_gender_description":"By creating opportunities, breaking down stereotypes, and inspiring girls to pursue careers in technology, GiD contributes to bridging the gender gap in digital fields and fostering equality.","girls-in-digital.faq_girls_digital_goal_initiative_title":"What is the long-term goal of the initiative?","girls-in-digital.faq_girls_digital_goal_initiative_description":"Our long-term goal is to foster equality in STE(A)M, as a more gender-balanced workforce drives innovation, brings diverse perspectives, and creates a more inclusive environment. When everyone has equal opportunities to contribute, we unlock new ideas, fuel creativity, and develop stronger, more equitable solutions for the future. By breaking down barriers and encouraging diverse talent, we not only shape a fairer industry but also ensure that STE(A)M continues to thrive with fresh insights and groundbreaking advancements—paving the way for a future where everyone has equal access to opportunities in digital and STEM fields.","girls-in-digital.here":"HERE","guide.title":"Guide","guide.organise_activity":"Organise Your Own Activity with #EUCodeWeek","guide.register_activity":"Register your activity here","guide.what.title":"What is EU Code Week?","guide.what.content":`

EU Code Week is a grass-roots movement run by volunteers and supported by the European Commission. diff --git a/public/build/assets/php_en-hSRkEOjH.js b/public/build/assets/php_en-hSRkEOjH.js new file mode 100644 index 000000000..80fce6d37 --- /dev/null +++ b/public/build/assets/php_en-hSRkEOjH.js @@ -0,0 +1,303 @@ +const e={"auth.failed":"These credentials do not match our records.","auth.password":"The provided password is incorrect.","auth.throttle":"Too many login attempts. Please try again in :seconds seconds.","pagination.previous":"Previous","pagination.next":"Next","passwords.reset":"Your password has been reset!","passwords.sent":"We have e-mailed your password reset link!","passwords.throttled":"Please wait before retrying.","passwords.token":"This password reset token is invalid.","passwords.user":"We can't find a user with that e-mail address.","validation.accepted":"The :attribute field must be accepted.","validation.accepted_if":"The :attribute field must be accepted when :other is :value.","validation.active_url":"The :attribute field must be a valid URL.","validation.after":"The :attribute field must be a date after :date.","validation.after_or_equal":"The :attribute field must be a date after or equal to :date.","validation.alpha":"The :attribute field must only contain letters.","validation.alpha_dash":"The :attribute field must only contain letters, numbers, dashes, and underscores.","validation.alpha_num":"The :attribute field must only contain letters and numbers.","validation.array":"The :attribute field must be an array.","validation.ascii":"The :attribute field must only contain single-byte alphanumeric characters and symbols.","validation.before":"The :attribute field must be a date before :date.","validation.before_or_equal":"The :attribute field must be a date before or equal to :date.","validation.between.array":"The :attribute field must have between :min and :max items.","validation.between.file":"The :attribute field must be between :min and :max kilobytes.","validation.between.numeric":"The :attribute field must be between :min and :max.","validation.between.string":"The :attribute field must be between :min and :max characters.","validation.boolean":"The :attribute field must be true or false.","validation.can":"The :attribute field contains an unauthorized value.","validation.confirmed":"The :attribute field confirmation does not match.","validation.contains":"The :attribute field is missing a required value.","validation.current_password":"The password is incorrect.","validation.date":"The :attribute field must be a valid date.","validation.date_equals":"The :attribute field must be a date equal to :date.","validation.date_format":"The :attribute field must match the format :format.","validation.decimal":"The :attribute field must have :decimal decimal places.","validation.declined":"The :attribute field must be declined.","validation.declined_if":"The :attribute field must be declined when :other is :value.","validation.different":"The :attribute field and :other must be different.","validation.digits":"The :attribute field must be :digits digits.","validation.digits_between":"The :attribute field must be between :min and :max digits.","validation.dimensions":"The :attribute field has invalid image dimensions.","validation.distinct":"The :attribute field has a duplicate value.","validation.doesnt_end_with":"The :attribute field must not end with one of the following: :values.","validation.doesnt_start_with":"The :attribute field must not start with one of the following: :values.","validation.email":"The :attribute field must be a valid email address.","validation.ends_with":"The :attribute field must end with one of the following: :values.","validation.enum":"The selected :attribute is invalid.","validation.exists":"The selected :attribute is invalid.","validation.extensions":"The :attribute field must have one of the following extensions: :values.","validation.file":"The :attribute field must be a file.","validation.filled":"The :attribute field must have a value.","validation.gt.array":"The :attribute field must have more than :value items.","validation.gt.file":"The :attribute field must be greater than :value kilobytes.","validation.gt.numeric":"The :attribute field must be greater than :value.","validation.gt.string":"The :attribute field must be greater than :value characters.","validation.gte.array":"The :attribute field must have :value items or more.","validation.gte.file":"The :attribute field must be greater than or equal to :value kilobytes.","validation.gte.numeric":"The :attribute field must be greater than or equal to :value.","validation.gte.string":"The :attribute field must be greater than or equal to :value characters.","validation.hex_color":"The :attribute field must be a valid hexadecimal color.","validation.image":"The :attribute field must be an image.","validation.in":"The selected :attribute is invalid.","validation.in_array":"The :attribute field must exist in :other.","validation.integer":"The :attribute field must be an integer.","validation.ip":"The :attribute field must be a valid IP address.","validation.ipv4":"The :attribute field must be a valid IPv4 address.","validation.ipv6":"The :attribute field must be a valid IPv6 address.","validation.json":"The :attribute field must be a valid JSON string.","validation.list":"The :attribute field must be a list.","validation.lowercase":"The :attribute field must be lowercase.","validation.lt.array":"The :attribute field must have less than :value items.","validation.lt.file":"The :attribute field must be less than :value kilobytes.","validation.lt.numeric":"The :attribute field must be less than :value.","validation.lt.string":"The :attribute field must be less than :value characters.","validation.lte.array":"The :attribute field must not have more than :value items.","validation.lte.file":"The :attribute field must be less than or equal to :value kilobytes.","validation.lte.numeric":"The :attribute field must be less than or equal to :value.","validation.lte.string":"The :attribute field must be less than or equal to :value characters.","validation.mac_address":"The :attribute field must be a valid MAC address.","validation.max.array":"The :attribute field must not have more than :max items.","validation.max.file":"The :attribute field must not be greater than :max kilobytes.","validation.max.numeric":"The :attribute field must not be greater than :max.","validation.max.string":"The :attribute field must not be greater than :max characters.","validation.max_digits":"The :attribute field must not have more than :max digits.","validation.mimes":"The :attribute field must be a file of type: :values.","validation.mimetypes":"The :attribute field must be a file of type: :values.","validation.min.array":"The :attribute field must have at least :min items.","validation.min.file":"The :attribute field must be at least :min kilobytes.","validation.min.numeric":"The :attribute field must be at least :min.","validation.min.string":"The :attribute field must be at least :min characters.","validation.min_digits":"The :attribute field must have at least :min digits.","validation.missing":"The :attribute field must be missing.","validation.missing_if":"The :attribute field must be missing when :other is :value.","validation.missing_unless":"The :attribute field must be missing unless :other is :value.","validation.missing_with":"The :attribute field must be missing when :values is present.","validation.missing_with_all":"The :attribute field must be missing when :values are present.","validation.multiple_of":"The :attribute field must be a multiple of :value.","validation.not_in":"The selected :attribute is invalid.","validation.not_regex":"The :attribute field format is invalid.","validation.numeric":"The :attribute field must be a number.","validation.password.letters":"The :attribute field must contain at least one letter.","validation.password.mixed":"The :attribute field must contain at least one uppercase and one lowercase letter.","validation.password.numbers":"The :attribute field must contain at least one number.","validation.password.symbols":"The :attribute field must contain at least one symbol.","validation.password.uncompromised":"The given :attribute has appeared in a data leak. Please choose a different :attribute.","validation.present":"The :attribute field must be present.","validation.present_if":"The :attribute field must be present when :other is :value.","validation.present_unless":"The :attribute field must be present unless :other is :value.","validation.present_with":"The :attribute field must be present when :values is present.","validation.present_with_all":"The :attribute field must be present when :values are present.","validation.prohibited":"The :attribute field is prohibited.","validation.prohibited_if":"The :attribute field is prohibited when :other is :value.","validation.prohibited_unless":"The :attribute field is prohibited unless :other is in :values.","validation.prohibits":"The :attribute field prohibits :other from being present.","validation.regex":"The :attribute field format is invalid.","validation.required":"The :attribute field is required.","validation.required_array_keys":"The :attribute field must contain entries for: :values.","validation.required_if":"The :attribute field is required when :other is :value.","validation.required_if_accepted":"The :attribute field is required when :other is accepted.","validation.required_if_declined":"The :attribute field is required when :other is declined.","validation.required_unless":"The :attribute field is required unless :other is in :values.","validation.required_with":"The :attribute field is required when :values is present.","validation.required_with_all":"The :attribute field is required when :values are present.","validation.required_without":"The :attribute field is required when :values is not present.","validation.required_without_all":"The :attribute field is required when none of :values are present.","validation.same":"The :attribute field must match :other.","validation.size.array":"The :attribute field must contain :size items.","validation.size.file":"The :attribute field must be :size kilobytes.","validation.size.numeric":"The :attribute field must be :size.","validation.size.string":"The :attribute field must be :size characters.","validation.starts_with":"The :attribute field must start with one of the following: :values.","validation.string":"The :attribute field must be a string.","validation.timezone":"The :attribute field must be a valid timezone.","validation.unique":"The :attribute has already been taken.","validation.uploaded":"The :attribute failed to upload.","validation.uppercase":"The :attribute field must be uppercase.","validation.url":"The :attribute field must be a valid URL.","validation.ulid":"The :attribute field must be a valid ULID.","validation.uuid":"The :attribute field must be a valid UUID.","validation.custom.attribute-name.rule-name":"custom-message","about.when-title":"Creativity, code and collaboration with no limits","about.codeweek_in_numbers-title":"From a spark to a movement","about.run_by_volunteers-title":"Powered by an international community","about.supported_by_commission-title":"Supported by the European Commission","about.schools-title":"Empowering your classroom","about.why_coding-title":"Why Coding? Because the Future is Yours.","about.join_codeweek-title":"Be part of the movement!","about.guide":"Check out our tutorials and trainings available in 29 languages to get ready to organise activities where young people learn coding and computational thinking.","about.when-text":"EU Code Week is a dynamic grassroots movement that empowers people of all ages to explore coding, creativity, and problem-solving. It breaks down barriers to digital skills, making programming more accessible, visible, and inclusive. From classrooms to community spaces, it connects educators, students and tech enthusiasts, bringing ideas to life through digital innovation, and fostering collaboration across Europe.","about.codeweek_in_numbers-text":`

What began in 2013 as a small, grassroots initiative has grown into a year-round movement reaching millions. EU Code Week is now a continuous initiative, with thousands of activities taking place throughout the year in Europe and beyond. The two-week event each October is the culmination of these efforts — a celebration of a community-driven push to make coding, digital creativity and STEM education accessible to all. +

+

With tens of thousands of activities and an ever-growing network of teachers, students and partners, Code Week continues to inspire innovation and equip the next generation with the skills to shape the future. +

`,"about.run_by_volunteers-text":`

EU Code Week is driven by a passionate community of educators, ambassadors and partners who bring coding to life across Europe. Code Week Ambassadors coordinate activities in their countries, while Leading Teachers is a growing community of more than 450 educators from across Europe, who encourage schools, teachers and students to organise activities and register them on the Code Week map. +

+

Anyone can contribute by adding their own activity on the map. Together, we can make coding accessible to all! +

`,"about.supported_by_commission-text":`

EU Code Week was launched in 2013 by the Young Advisors for the Digital Agenda Europe. The European Commission supports EU Code Week as part of its strategy for a Digital Single Market. In the Digital Education Action Plan the Commission especially encourages schools to join the initiative. +

`,"about.schools-text":`

Teachers of all subjects and schools at every level play a vital role in EU Code Week. By joining, you can inspire your students to explore coding and digital creativity in an engaging, hands-on way. Get involved and discover how to organise your own activity at CodeWeek.eu/Schools. +

`,"about.why_coding-text":`

Coding isn’t just about writing lines of code — it’s about shaping ideas, solving problems, and creating the world you want to see. +

+

Technology is all around us, and coding empowers everyone to turn imagination into reality, whether it’s designing apps, building robots, or tackling real-world challenges. It develops creativity, problem-solving and collaboration — skills that open doors in every field. +

+

EU Code Week is your chance to explore, create, and become part of this digital transformation driving digital education, innovation, and community empowerment! +

+

Vice President of the European Commission Viktor Negrescu says of EU Code Week’s ongoing impact: “I am a strong supporter of the democratisation of access to technology… if we want Europe to remain competitive, we need to invest in digital skills. I’m confident the Code4Europe Consortium will do a great job — so good luck to you, and keep coding!” +

`,"about.why_coding-quote":` +

+ Alessandro Bogliolo, coordinator of the EU Code Week team of ambassador volunteers said: +

+

+ "From the beginning of time we did many things using stone, iron, paper and pencil that have transformed our lives. Now we live in a different era where our world is moulded in code. Different eras have different jobs and skills demand. During Code Week we want to give every European the opportunity to discover coding and have fun with it. Let’s learn coding to shape our future". +

+
+

`,"about.join_codeweek-text":`

EU Code Week is more than an event — it’s a community-driven revolution! Host a coding activity in your town, take on the Code Week 4 All Challenge, and connect with like-minded innovators across borders. +

+

Want to make an even bigger impact? Connect with your local hub to find your own community and help shape the future of coding in your country! +

+

You can also stay up to date with local community initiaives and international developments through our blog. +

`,"about.partners_and_sponsors":"Meet our partners and sponsors","about.about_banner_title":"Empowering Europe with digital skills","about.about_banner_content":"EU Code Week sparks creativity, problem-solving, and collaboration, making coding and digital skills accessible to everyone, all year round.","about.partners_and_sponsors-title":"The Code4Europe Consortium: Driving the future of Code Week","about.partners_and_sponsors-content":`

EU Code Week is now guided by the Code4Europe Consortium, consisting of over 40 educational and tech industry partners from 20 countries. Together, we ensure Code Week’s continued growth, expanding digital education and fostering collaboration across Europe. +

+

With a strong community of educators, ambassadors, and industry leaders, we’re shaping the future of coding — making it more accessible, inclusive and impactful. +

`,"ambassador.title":"EU Code Week Ambassadors","ambassador.your_current_country":"Your current country","ambassador.visit_the":"Visit the","ambassador.local_facebook_page":"Facebook page","ambassador.local_website":"Website","ambassador.ambassadors":"Ambassadors","ambassador.community":"Community","ambassador.no_ambassadors":"No ambassadors yet","ambassador.countries_with_ambassadors":"Countries with ambassadors","ambassador.why_dont_you_volunteer":"Why don't you volunteer?","base.languages.al":"Albanian","base.languages.ba":"Bosnian","base.languages.bg":"Bulgarian","base.languages.cs":"Czech","base.languages.da":"Danish","base.languages.de":"German","base.languages.el":"Greek","base.languages.en":"English","base.languages.es":"Spanish","base.languages.et":"Estonian","base.languages.fi":"Finnish","base.languages.fr":"French","base.languages.hr":"Croatian","base.languages.hu":"Hungarian","base.languages.it":"Italian","base.languages.lt":"Lithuanian","base.languages.lv":"Latvian","base.languages.me":"Montenegrin","base.languages.mk":"Macedonian","base.languages.mt":"Maltese","base.languages.nl":"Dutch","base.languages.pl":"Polish","base.languages.pt":"Portuguese","base.languages.ro":"Romanian","base.languages.rs":"Serbian","base.languages.sk":"Slovak","base.languages.sl":"Slovenian","base.languages.se":"Swedish","base.languages.sv":"Swedish","base.languages.tr":"Turkish","base.languages.lu":"Luxembourgish","base.languages.ua":"Ukrainian","base.languages_menu.al":"Shqip","base.languages_menu.ba":"bosanski","base.languages_menu.bg":"български","base.languages_menu.cs":"Čeština","base.languages_menu.da":"Dansk","base.languages_menu.de":"Deutsch","base.languages_menu.el":"ΕΛΛΗΝΙΚΑ","base.languages_menu.en":"English","base.languages_menu.es":"Español","base.languages_menu.et":"Eesti","base.languages_menu.fi":"suomi","base.languages_menu.fr":"Français","base.languages_menu.hr":"Hrvatski","base.languages_menu.hu":"magyar","base.languages_menu.it":"Italiano","base.languages_menu.lt":"LietuviŲ","base.languages_menu.lv":"Latviešu","base.languages_menu.me":"crnogorski","base.languages_menu.mk":"Македонски","base.languages_menu.mt":"Malti","base.languages_menu.nl":"Nederlands","base.languages_menu.pl":"polski","base.languages_menu.pt":"Português","base.languages_menu.ro":"Română","base.languages_menu.rs":"srpski","base.languages_menu.sk":"Slovenčina","base.languages_menu.sl":"Slovenščina","base.languages_menu.sv":"svenska","base.languages_menu.tr":"Türkçe","base.languages_menu.ua":"УКРАЇНСЬКА","base.resources_local_title":"Coding resources from","base.days":"Days","base.hours":"Hours","base.minutes":"Minutes","base.seconds":"Seconds","base.day":"Day","base.hour":"Hour","base.minute":"Minute","base.second":"Second","base.still_have_question":"Still have a question?","base.drop_us_a_line":"Just drop us a line!","base.drop_a_line":"Drop us a line","base.get_in_touch":"GET IN TOUCH","base.footer_msg":"","base.email":"Email","base.display_email":"Display Email","base.first_name":"First Name","base.last_name":"Last Name","base.your_website":"Your Website","base.biography":"Biography","base.update":"Update","base.delete":"Delete","base.choose a file":"Choose a File","base.learning_bits":"Learning bits","base.codeweek":"CodeWeek","base.bring_codeweek_to_your_students":"Bring Code Week to your students","base.or":"or","base.receive emails":"Receive our emails","base.newsletter":"Newsletter","beambassador.title":"Become a EU Code Week Ambassador","beambassador.paragraphs.1-1":"EU Code Week Ambassadors","beambassador.paragraphs.1-2":"are the main point of contact for Code Week in each country and help spread the vision of Code Week to local communities. Do you believe in the","beambassador.paragraphs.1-3":"vision of Code Week","beambassador.paragraphs.1-4":"and want to promote coding in your own country? Read on!","beambassador.ambassadors_should_do.1":"Connect people, companies and communities interested in doing something for Code Week.","beambassador.ambassadors_should_do.2":"Encourage event organizers to add their coding events to the Code Week website.","beambassador.ambassadors_should_do.3":"Encourage new events to be organized in your country by promoting Code Week.","beambassador.ambassadors_should_do.4":"Answer emails about Code Week in your language.","beambassador.ambassadors_should_do.5":"Approve events on the Code Week website for your country.","beambassador.ambassadors_should_do.6":"Maintain a list of learning resources in your country's language.","beambassador.ambassadors_should_do.7":"Find interesting success stories and news to promote on Code Week channels.","beambassador.ambassadors_should_do.8":"Promote Code Week materials through your network.","beambassador.ambassadors_should_do.9":"Collaborate with other national ambassadors from across Europe.","beambassador.ambassadors_should_do.title":"As a EU Code Week Ambassador, you should be able to allocate a few hours a week to:","beambassador.ambassadors_return.1":"Meet a lot of smart, interesting people from a variety of industries.","beambassador.ambassadors_return.2":"Become an essential part of one of the greatest grassroots initiatives in Europe.","beambassador.ambassadors_return.3":"Help us raise awareness about the importance of coding and getting Europe truly digital.","beambassador.ambassadors_return.4":'Add the "EU Code Week Ambassador" title to your already amazing CV.',"beambassador.ambassadors_return.5":"Learn to code! (in case you don't yet already)","beambassador.ambassadors_return.title":"In return, you will be able to:","beambassador.details.title":"Here's what it all means in a bit more detail:","beambassador.details.points.1-1":"One of our goals is to connect various coding and educational networks.","beambassador.details.points.1-2":"If you know of any coding events taking place, let the organizers know about Code Week and help them add the event to the Code Week website,","beambassador.details.points.1-3":"so we'll have a comprehensive list of all coding events in Europe.","beambassador.details.points.2-1":"We're also hoping to see more events organized for Code Week. You can help by","beambassador.details.points.2-2":"encouraging schools, organizations, developer communities, and enthusiastic individuals to start new, beginner friendly events in your country.","beambassador.details.points.2-3":"It doesn't have to be during Code Week itself, although that will be the prime time for our promotional activities. To help you out, we’re preparing a list of suggestions for companies, a","beambassador.details.points.2-4":"guide for potential event organizers,","beambassador.details.points.2-5":"and we're also building a variety of other","beambassador.details.points.2-6":"promotional resources.","beambassador.details.points.3-1":"We need your help to","beambassador.details.points.3-2":"respond to emails regarding Code Week in your country.","beambassador.details.points.3-3":"You'll be the primary point of contact for anything that’s going on in your country, so you can","beambassador.details.points.3-4":"connect people and companies from your country that might benefit from getting connected with each other","beambassador.details.points.3-5":"and provide answers in your language. Don't worry if you don't know all the answers yet, we're here to help.","beambassador.details.points.4-1":"Everyone can add their coding event to,","beambassador.details.points.4-2":"but you'll be the moderator for events in your country. All you need to do is to regularly","beambassador.details.points.4-3":"take a quick look at submitted events and check if they are a good fit for Code Week","beambassador.details.points.5-1":"It needs to be easy for everyone to start a coding event. You probably know some great online learning materials for beginner coders in your language,","beambassador.details.points.5-2":"so you can maintain a list of resources for your country on the EU Code Week website","beambassador.details.points.6-1":"Provide interesting news and content about coding from your country","beambassador.details.points.6-2":"that we can promote on Code Week social media channels. We're primarily looking for content in English, so you can help by asking organizers to share their stories and tips in English for","beambassador.details.points.6-3":"our blog.","beambassador.details.points.6-4":"Additionally, you can also set up your national Code Week social media channels to promote content in your own language.","beambassador.details.points.7-1":"Together with your help, we'll be building a library of Code Week materials that can be used to promote coding as a skill.","beambassador.details.points.7-2":"We need your help to spread the materials in your country and even encourage different groups to provide translations","beambassador.details.points.8-1":"We're creating a network of national ambassadors to promote Code Week and we'll also try to schedule monthly online calls to discuss our work, exchange good practices and inspire each other with ideas for further activities You don't have to attend all meetings, but we hope you can join us as often as possible. We also have a mailing list for EU Code Week Ambassadors that you can use any time to get advice or help from other ambassadors.","beambassador.details.points.8-2":"You'll be able to expand your own network and get fresh ideas by collaborating with other ambassadors from across Europe.","beambassador.details.points.9-1":"Still interested? We want you in on this! Take a quick look at the","beambassador.details.points.9-2":"list of EU Code Week Ambassadors.","beambassador.details.points.9-3":"If there's one for your country, feel free to get in touch directly with them and see how you can cooperate. Either way, we'll be looking forward to you email at","certificates.certificates_for":"Certificates for ","certificates.no_certificates":"There are no certificates yet.","challenges-content.careers-as-constellations.title":"Careers as constellations","challenges-content.careers-as-constellations.authorcontent":'This challenge and competition is the initiative of Linda Liukas author, illustrator and entrepreneur in connection with the Code4Europe partnership´s Girls in Digital Campaign 2025 #Webinar 1 livestreamed on Youtube: How Code, Creativity and Curiosity form a Career?',"challenges-content.careers-as-constellations.author":"Linda Liukas","challenges-content.careers-as-constellations.start-date":"Start date","challenges-content.careers-as-constellations.activity-type":"Activity type","challenges-content.careers-as-constellations.open-online-activity":"Open online activity","challenges-content.careers-as-constellations.name-of-org":"Name of organisation","challenges-content.careers-as-constellations.language":"Language","challenges-content.careers-as-constellations.description":"This interactive activity helps students map their personal interests and hobbies to potential careers in technology. By visualizing their skills and passions as constellations, students discover how careers are formed by connecting seemingly unrelated dots. No prior coding experience is required, and the activity fosters creative thinking about the future of work in technology.","challenges-content.careers-as-constellations.teachers":"Teachers","challenges-content.careers-as-constellations.english":"English","challenges-content.careers-as-constellations.type-of-org":"Type of organisation","challenges-content.careers-as-constellations.private-business":"Private business","challenges-content.careers-as-constellations.secondary-school":"Secondary school","challenges-content.careers-as-constellations.higher-education":"Higher education","challenges-content.careers-as-constellations.audience":"Audience","challenges-content.careers-as-constellations.theme":"Main Themes","challenges-content.careers-as-constellations.themes.motivation-and-awareness-raising":"Motivation and awareness raising","challenges-content.careers-as-constellations.themes.promoting-diversity":"Promoting diversity","challenges-content.careers-as-constellations.age-group":"Age group","challenges-content.careers-as-constellations.age-groups.12":"12+ (adaptable for middle school, high school, or even university students)","challenges-content.careers-as-constellations.age-groups.under-6":"Under 6","challenges-content.careers-as-constellations.age-groups.7-8":"7-8","challenges-content.careers-as-constellations.age-groups.9-11":"9-11","challenges-content.careers-as-constellations.age-groups.12-14":"12-14","challenges-content.careers-as-constellations.age-groups.15-18":"15-18","challenges-content.careers-as-constellations.age-groups.over-18":"Over 18","challenges-content.careers-as-constellations.subjects":"Subjects","challenges-content.careers-as-constellations.time-required":"Time required","challenges-content.careers-as-constellations.45–60":"45–60 minutes","challenges-content.careers-as-constellations.group-size":"Group size","challenges-content.careers-as-constellations.group-sizes.small":"Can be done individually or in small groups","challenges-content.careers-as-constellations.required-materials":"Required materials","challenges-content.careers-as-constellations.step-by-step-instructions":"Step by step instructions","challenges-content.careers-as-constellations.materials.one":"Printed Careers as Constellations worksheet (A3 recommended)","challenges-content.careers-as-constellations.materials.two":'Paper & markers/pens for additional notes',"challenges-content.careers-as-constellations.materials.three":"Optional: Digital version (students can create constellations using Miro, Canva, or Google Jamboard)","challenges-content.careers-as-constellations.titles.one":"Warm-up Discussion: What Are Your Dots? (5 min)","challenges-content.careers-as-constellations.titles.two":"Mapping Constellations: Connecting Interests to Tech (20 min)","challenges-content.careers-as-constellations.titles.three":"Example Connections","challenges-content.careers-as-constellations.titles.four":' Reflection & Sharing: What Patterns Did You Find? (15 min)',"challenges-content.careers-as-constellations.titles.five":"Extending the Activity","challenges-content.careers-as-constellations.intro":`

Start by challenging traditional career ideas with a question:

+

Do you think careers should follow a straight path?

+

Introduce the idea that successful careers are often built from unexpected connections.

Watch together the talk by Linda Liukas where she shares her own career path in technology

`,"challenges-content.careers-as-constellations.content.16":'Download the Template for the activity',"challenges-content.careers-as-constellations.content.17":'OBS! REMEMBER TO ADD YOUR ACTIVITY AND UPLOAD IT HERE!',"challenges-content.careers-as-constellations.content.one":"

Each student fills out the Careers as Constellations worksheet, adding:

","challenges-content.careers-as-constellations.content.two":"Personal interests (hobbies, skills, favorite activities)","challenges-content.careers-as-constellations.content.three":"Tech-related topics (AI, robotics, game design, digital art, sustainability tech, etc.)","challenges-content.careers-as-constellations.content.four":"Drawing lines to show connections between their interests and technology","challenges-content.careers-as-constellations.content.five":"Loves music? → Interested in AI? → AI-generated music tools!","challenges-content.careers-as-constellations.content.six":'Loves drawing? → Interested in game design? → 2D/3D animation & coding',"challenges-content.careers-as-constellations.content.seven":"Passionate about climate change? → Interested in data? → Environmental tech","challenges-content.careers-as-constellations.content.eight":"Invite students to share surprising connections they discovered.","challenges-content.careers-as-constellations.content.nine":"Ask: Which dots felt unrelated at first? How did they connect?","challenges-content.careers-as-constellations.content.ten":"

Discussion Prompts:

","challenges-content.careers-as-constellations.content.eleven":"What surprised you about your constellation?","challenges-content.careers-as-constellations.content.twelve":"Did you discover any career paths you hadnt considered before?","challenges-content.careers-as-constellations.content.thirteen":"How could technology shape your future in unexpected ways?","challenges-content.careers-as-constellations.content.fourteen":"Digital Challenge: Have students create a digital version of their constellation using Miro, Canva, or Google Jamboard and present their findings.","challenges-content.careers-as-constellations.content.fifteen":"Research Task: Students research a person in tech whose career followed a surprising path, map their constellation and share their story.","challenges-content.chatbot.title":"Make a chatbot","challenges-content.chatbot.author":"EU Code Week Team","challenges-content.chatbot.purposes.0":"Code interactive riddles","challenges-content.chatbot.purposes.1":"Use code to create dialogues between a chatbot and a user","challenges-content.chatbot.description":"Code a conversation between a chatbot and a user who is trying to solve a riddle. Try to make a chatbot that can chat like a person. Instead of a riddle you can create a dialogue between a chatbot and a user.","challenges-content.chatbot.instructions.0":"Think of a riddle","challenges-content.chatbot.instructions.1":"Log in to","challenges-content.chatbot.instructions.2":"or create a new account. (When creating a new account keep in mind that real names are not allowed on Pencil Code due to privacy reasons.)","challenges-content.chatbot.instructions.3":"Click Imagine and Make your own","challenges-content.chatbot.instructions.4":"Use blocks or text-based mode to write your riddle","challenges-content.chatbot.instructions.5":"Alternatively, you can use","challenges-content.chatbot.instructions.6":"this code","challenges-content.chatbot.instructions.7":"and adapt it to your riddle or you can select Answering a riddle from the menu and edit it","challenges-content.chatbot.example":"Check out this example of a riddle.","challenges-content.chatbot.more.0":"This code has been Adapted from Pencil Code activity","challenges-content.chatbot.more.1":"Answering the Riddle","challenges-content.paper-circuit.title":"Unplug and code: Create a paper circuit","challenges-content.paper-circuit.author":"EU Code Week Team","challenges-content.paper-circuit.purposes.0":"Enhance creativity","challenges-content.paper-circuit.purposes.1":"Develop problem-solving skills","challenges-content.paper-circuit.description.0":"Draw and object of your choice. It can be a night sky, a ladybird, a robot, a Christmas tree or anything you can think of. Feel free to personalize your project with EU Code Week visuals: you can explore the","challenges-content.paper-circuit.description.1":"EU Code Week teacher toolkit","challenges-content.paper-circuit.description.2":"and download any logo or visual you wish. You can even create a paper circuit invitation to EU Code Week. Add a motivating message to your circuit to encourage other teachers to join Code Week and/or to check the website dedicated to schools.","challenges-content.paper-circuit.instructions.0":"Draw an object and decide which parts will be illuminated (e.g. stars).","challenges-content.paper-circuit.instructions.1":"Make a hole through the paper with a pencil and insert a LED sticker in each illuminated part. ","challenges-content.paper-circuit.instructions.2":"Draw a circle where you will place the coin-cell battery.","challenges-content.paper-circuit.instructions.3":"Draw a + and a - track on the other side of the paper. Make sure that the longer leg of the LED circuit sticker is connected to the “+” side of the battery and the shorter to the “-” side of the battery.","challenges-content.paper-circuit.instructions.4":"Lay the copper tape on the tracks.","challenges-content.paper-circuit.instructions.5":"Create a fold so that when the paper covers the battery the LED is illuminated. You can use a paper clip to ensure good contact with the copper tape.","challenges-content.paper-circuit.instructions.6":"Take a picture of your paper circuit and share it on Instagram, explaining why you think it is worth it to take part in this initiative. ","challenges-content.paper-circuit.example":"See some examples of paper circuits","challenges-content.paper-circuit.materials.0":"paper or cardboard","challenges-content.paper-circuit.materials.1":"crayons or marker","challenges-content.paper-circuit.materials.2":"coin-cell battery","challenges-content.paper-circuit.materials.3":"copper tape","challenges-content.paper-circuit.materials.4":"LED circuit stickers","challenges-content.paper-circuit.materials.5":"paper clip","challenges-content.dance.title":"Create a dance","challenges-content.dance.author":"EU Code Week Team","challenges-content.dance.purposes.0":"To learn basic coding concepts","challenges-content.dance.purposes.1":"To learn how to animate characters","challenges-content.dance.description":"In this challenge you will create a set of characters who will dance together. You will use a built-in media library to select characters and music clips, or you can create your own. You will animate the characters to dance and talk to each other.","challenges-content.dance.instructions.0":"Log in to","challenges-content.dance.instructions.1":"as a teacher. Create student accounts and share them with your students. Alternatively share a class code and have your students register with their school email address. If you are a student, you can join as a student, but you will be asked to provide your parent’s email address so that they can approve your account.","challenges-content.dance.instructions.2":"Click","challenges-content.dance.instructions.3":"and give it a title","challenges-content.dance.instructions.4":"Go to","challenges-content.dance.instructions.5":"to add a background by clicking on the gear icon. Choose a background from the Media Library, upload your own image or you can even take a picture and upload it. Choose an audio clip and add it to the stage:","challenges-content.dance.instructions.6":"Click the","challenges-content.dance.instructions.7":"button to add characters or objects that you will animate so that they can move, talk and interact with each other. Add two or three characters of your choice. You can draw your own actors or modify the existing ones. Add different costumes to your character by clicking the pencil icon.","challenges-content.dance.instructions.8":"Click on each actor and animate it by adding the following blocks","challenges-content.dance.instructions.9":"Add a","challenges-content.dance.instructions.10":"say block","challenges-content.dance.instructions.11":"and have your actors talk to each other. Change the shape of the speech bubbles and the font and the size of your text","challenges-content.dance.example.0":"Check out","challenges-content.dance.example.1":"this example","challenges-content.dance.example.2":"of dancing robots. Feel free to use it and remix it.","challenges-content.compose-song.title":"Make a musical composition","challenges-content.compose-song.author":"EU Code Week Team","challenges-content.compose-song.purposes.0":"To learn coding through music","challenges-content.compose-song.purposes.1":"To distinguish music genres and instruments","challenges-content.compose-song.purposes.2":"To compose a song by mixing sound clips","challenges-content.compose-song.description":"In this challenge you will create a musical composition by using a programming language. You can use built-in sound clips or record your own and mix them to create a musical composition. Run your code in the Digital Audio Workstation and listen to the music you have coded. Play with different sounds and effects to modify your piece of music.","challenges-content.compose-song.instructions.0":"Log in to","challenges-content.compose-song.instructions.1":"Click here to make a script","challenges-content.compose-song.instructions.2":"Name your script and choose","challenges-content.compose-song.instructions.3":"as a programming language","challenges-content.compose-song.instructions.4":"Start writing your code between the","challenges-content.compose-song.instructions.5":"and","challenges-content.compose-song.instructions.6":"lines","challenges-content.compose-song.instructions.7":"Browse the music clips in the","challenges-content.compose-song.instructions.8":"Sound Library","challenges-content.compose-song.instructions.9":"and select the music genres, artists and instruments you like","challenges-content.compose-song.instructions.10":"To add a sound clip to your song, type","challenges-content.compose-song.instructions.11":"Between the parenthesis there should be the following 4 parameters, separated by commas","challenges-content.compose-song.instructions.12":"Sound clip","challenges-content.compose-song.instructions.13":"Place your cursor between the parenthesis, go to the Sound Library, select a clip, and paste it by clicking on the blue paste icon","challenges-content.compose-song.instructions.14":"Track number","challenges-content.compose-song.instructions.15":"tracks help you organize your sounds by instrument-type (vocals, bass, drums, keyboards, etc.). Add as many tracks (instruments) as you want. Tracks are displayed as rows that run across the Digital Audio Workstation","challenges-content.compose-song.instructions.16":"Start measure","challenges-content.compose-song.instructions.17":"indicates when your sound will start playing. Measures are musical time units. One measure is 4 beats","challenges-content.compose-song.instructions.18":"End measure","challenges-content.compose-song.instructions.19":"indicates when your sound will stop playing","challenges-content.compose-song.instructions.20":"Such a line of code will look like this","challenges-content.compose-song.instructions.21":"You can add different effects, such as volume to enhance the sound of your composition. Volume ranges from -60.0 decibels to 12.0 decibels with 0.0 being the original volume.","challenges-content.compose-song.instructions.22":"Write","challenges-content.compose-song.instructions.23":"In the parenthesis, write the number of track, VOLUME, GAIN, level of the volume, the measure when it starts, the level and measure when it ends","challenges-content.compose-song.instructions.24":"This is an example of a fade-in effect","challenges-content.compose-song.instructions.25":"and a fade-out effect","challenges-content.compose-song.example.0":"Listen to","challenges-content.compose-song.example.1":"an example of a song coded with Earsketch","challenges-content.compose-song.example.2":"You can import the code and edit it","challenges-content.compose-song.materials.0":"","challenges-content.compose-song.more.0":"","challenges-content.sensing-game.title":"Make a video sensing game","challenges-content.sensing-game.author":"EU Code Week Team","challenges-content.sensing-game.purposes.0":"To code animated objects","challenges-content.sensing-game.purposes.1":"To develop understanding of how to control digital animation with physical movement","challenges-content.sensing-game.purposes.2":"To compose a song by mixing sound clips","challenges-content.sensing-game.description":"In this challenge you will create a simple game that uses a video camera as a sensor to detect motion, which means that you will be able to control your animation with physical movement. In this game, the task is to collect as many EU Code Week bubbles as possible in 30 seconds. Instead of collecting bubbles, you can create a game in which you chase a character or pop balloons with your hands.","challenges-content.sensing-game.instructions.0":"Log in to","challenges-content.sensing-game.instructions.1":"Click","challenges-content.sensing-game.instructions.2":"Add an extension","challenges-content.sensing-game.instructions.3":"and choose","challenges-content.sensing-game.instructions.4":"Video Sensing","challenges-content.sensing-game.instructions.5":"It will detect how fast an object is moving. If the number is lower, it will be more sensitive to movement.","challenges-content.sensing-game.instructions.6":"Add a sprite. Choose a sound and add it to your sprite. If you want, you can add","challenges-content.sensing-game.instructions.7":"Create a clone","challenges-content.sensing-game.instructions.8":"to duplicate your sprite.","challenges-content.sensing-game.instructions.9":"Create two variables: one for","challenges-content.sensing-game.instructions.10":"Score","challenges-content.sensing-game.instructions.11":"and the other for","challenges-content.sensing-game.instructions.12":"Timer","challenges-content.sensing-game.instructions.13":"and add them to the sprite. Set the Timer to 30 and add","challenges-content.sensing-game.instructions.14":"Change Timer by -1","challenges-content.sensing-game.instructions.15":"Create a new sprite","challenges-content.sensing-game.instructions.16":"Game Over","challenges-content.sensing-game.instructions.17":"to finish the game. You can also create a sprite with the title of your game, e.g., Collect all EU Code Week bubbles.","challenges-content.sensing-game.example.0":"Play a video sensing game Collect all EU Code Week Bubbles. Feel free to remix","challenges-content.sensing-game.example.1":"this project","challenges-content.calming-leds.title":"Calming LEDs: create a simple device with micro:bit","challenges-content.calming-leds.author":"Micro:bit Educational Foundation","challenges-content.calming-leds.duration":"20 minutes","challenges-content.calming-leds.materials.0":"a micro:bit device and battery pack (if available)","challenges-content.calming-leds.materials.1":"a laptop or tablet with which you can visit Microsoft MakeCode and Youtube","challenges-content.calming-leds.materials.2":"microbit.org for the activity resources","challenges-content.calming-leds.description":"Students create a digital device using LEDs that can help them to regulate their breathing and feel calmer. They will be asked to write some simple code, exploring animations and sequences.","challenges-content.calming-leds.instructions.0":"The goal is to create a working Calming LED device that you can use to regulate your breathing. This device can be created on a physical micro:bit board, or on the simulator in the MakeCode editor.","challenges-content.calming-leds.instructions.1":"The challenge can be completed by using the MakeCode editor and writing a simple sequence of code as shown in the video/screenshot.","challenges-content.calming-leds.instructions.2":"To develop the challenge, students can explore different animations and get creative with the animation they would like to see to help them feel calm or happy.","challenges-content.calming-leds.instructions.3":"More information and video instructions at","challenges-content.calming-leds.instructions.4":"this link","challenges-content.calming-leds.example":"Visit this page for instructions and videos of the completed challenge plus how to code","challenges-content.calming-leds.purposes.0":"To design a simple digital artefact with a helpful purpose","challenges-content.calming-leds.purposes.1":"To explore sequences and animations and how they work","challenges-content.calming-leds.purposes.2":"To test and debug simple code","challenges-content.calming-leds.purposes.3":"To iterate a design by making the animations faster or slower","challenges-content.computational-thinking-and-computational-fluency.title":"Computational Thinking and Computational Fluency with ScratchJr","challenges-content.computational-thinking-and-computational-fluency.author":"Stamatis Papadakis – EU Code Week Ambassador Greece","challenges-content.computational-thinking-and-computational-fluency.purposes.0":"To get familiar with new commands and interface.","challenges-content.computational-thinking-and-computational-fluency.purposes.1":"To create simple programs with simple cause-and-effect commands.","challenges-content.computational-thinking-and-computational-fluency.purposes.2":"To perform simple debugging through trial and error.","challenges-content.computational-thinking-and-computational-fluency.description":"In this challenge children will integrate CT concepts into their projects by using the ScratchJr app to make their stories more engaging, exciting, and emotional.","challenges-content.computational-thinking-and-computational-fluency.instructions.0":"ScratchJr does not require children to be literate. All instructions and menu options are identifiable through symbols and colours. The challenge can be completed within the classroom, the lab or even in an open space as no internet is required.","challenges-content.computational-thinking-and-computational-fluency.instructions.1":"Children use city as background and use coding blocks to make a car drive across the city.","challenges-content.computational-thinking-and-computational-fluency.example.0":"Children can use sound and motion blocks and start again blocks to make characters dance.","challenges-content.computational-thinking-and-computational-fluency.example.1":"Children pick a background and a character and use a motion block to make a car drive across the city Children can use the speed block to speed up or slow down a character.","challenges-content.computational-thinking-and-computational-fluency.materials.0":"The free app","challenges-content.computational-thinking-and-computational-fluency.materials.1":"works on various operating systems and types of smart devices","challenges-content.computational-thinking-and-computational-fluency.materials.2":"Also, the","challenges-content.computational-thinking-and-computational-fluency.materials.3":"website offers plenty of free educational material","challenges-content.computational-thinking-and-computational-fluency.duration":"90 minutes","challenges-content.ai-hour-of-code.title":"AI hour of Code","challenges-content.ai-hour-of-code.author":"Minecraft Education Edition","challenges-content.ai-hour-of-code.purposes.0":"To create coding solutions that include sequences, events, loops, and conditionals","challenges-content.ai-hour-of-code.purposes.1":"To decompose the steps needed to solve a problem into a precise sequence of instructions","challenges-content.ai-hour-of-code.purposes.2":"To explore coding concepts","challenges-content.ai-hour-of-code.description":"A village is threatened by fire and needs you to code a solution! Meet your coding helper, the Minecraft Agent, then program the Agent to navigate the forest and collect data. This data will help the Agent predict where fires will occur. Then code the Agent to help prevent the spread of fire, save the village, and bring life back into the forest. Learn the basics of coding and explore a real-world example of artificial intelligence (AI).","challenges-content.ai-hour-of-code.instructions":"Download the lesson plan here","challenges-content.ai-hour-of-code.materials.0":"Install Minecraft: Education Edition","challenges-content.ai-hour-of-code.materials.1":"After installing Minecraft Education Edition, the challenge is on","challenges-content.ai-hour-of-code.materials.2":"this website","challenges-content.create-a-dance.title":"Create a dance with the Ode to Code on Dance Party","challenges-content.create-a-dance.purposes":"To practice coding in a fun way and feel connected with the EU Code Week community.","challenges-content.create-a-dance.description.0":"Create a dance with the Ode to Code! Use the","challenges-content.create-a-dance.description.1":"Dance Party tutorial","challenges-content.create-a-dance.description.2":"to code a dance to the Ode to Code. The official EU Code Week anthem is listed as a selection in Dance Party.","challenges-content.create-a-dance.instructions.0":"Instructions are shown as videos within","challenges-content.create-a-dance.instructions.1":"the tutorial","challenges-content.create-a-dance.instructions.2":"and also written at the top of each level","challenges-content.create-a-dance.example":"Featured student creations can be found on the following page","challenges-content.create-a-dance.materials":"The Code.org tutorial","challenges-content.create-a-simulation.title":"Create a simulation!","challenges-content.create-a-simulation.purposes.0":"To learn about simulations while introducing the following variables: creating a crowd, recovery rates, wearing masks, and vaccines.","challenges-content.create-a-simulation.purposes.1":"To activate prior knowledge about virus outbreaks in the real world that will apply to a fictitious scenario.","challenges-content.create-a-simulation.description":"Write code to create and run your own simulation of the virus outbreak at Monster Town. Learn to code and make predictions about what will happen to the neighbors of Monster Town.","challenges-content.create-a-simulation.instructions.0":"Instructions are shown as videos within","challenges-content.create-a-simulation.instructions.1":"the tutorial","challenges-content.create-a-simulation.instructions.2":"and also written at the top of each level","challenges-content.create-a-simulation.example":"When you are finished, you can share your simulation with others. Share your message about what you think we can do to help keep others healthy when a virus comes to town.","challenges-content.create-a-simulation.materials":"The Code.org tutorial","challenges-content.create-a-simulation.more.0":"","challenges-content.create-your-own-masterpiece.title":"Create your own masterpiece!","challenges-content.create-your-own-masterpiece.audience":"Acceptable for all ages","challenges-content.create-your-own-masterpiece.purpose":"To introduce computer science concepts in a visual way and inspire creativity","challenges-content.create-your-own-masterpiece.description":"Create your own masterpiece with artist! Use code blocks to make your artist create a unique work of art.","challenges-content.create-your-own-masterpiece.instructions":"Instructions are listed at the top of each level","challenges-content.create-your-own-masterpiece.example":"Artist examples can be found on this page under drawing","challenges-content.create-your-own-masterpiece.materials.0":"The first level of the tutorial can be found","challenges-content.create-your-own-masterpiece.materials.1":"HERE","challenges-content.cs-first-unplugged-activities.title":"CS First Unplugged activities","challenges-content.cs-first-unplugged-activities.purposes.0":"To support students who are learning from home","challenges-content.cs-first-unplugged-activities.purposes.1":"To give everyone a break from their screens","challenges-content.cs-first-unplugged-activities.description":"CS First Unplugged is a set of activities that introduce students to CS concepts without a computer. We’ve designed this lesson to demonstrate that Computer Science is a lot more than just code.","challenges-content.cs-first-unplugged-activities.instructions.0":"You will find the booklet to all activities in English at this","challenges-content.cs-first-unplugged-activities.instructions.1":"link","challenges-content.cs-first-unplugged-activities.instructions.2":"as well as Lesson Plan in English at this","challenges-content.cs-first-unplugged-activities.instructions.3":"The activities in this lesson can be completed individually and in any order","challenges-content.cs-first-unplugged-activities.instructions.4":"Teacher can take a picture of the learning process and share it on Instagram using #EUCodeWeekChallengeGoogle #GrowWithGoogle","challenges-content.cs-first-unplugged-activities.materials.0":"In addition to the activity booklet, some activities require or optionally benefit from additional materials.","challenges-content.cs-first-unplugged-activities.materials.1":"Small counters (like dried beans) to use on the Network a Neighborhood map.","challenges-content.cs-first-unplugged-activities.materials.2":"Scissors to cut out the Send a Secret Message cipher wheel.","challenges-content.cs-first-unplugged-activities.materials.3":"Cardboard and glue to provide additional stiffness to the Send a Secret Message cipher wheel.","challenges-content.cs-first-unplugged-activities.materials.4":"A thumbtack, toothpick, or straightened paper clip to connect the Send a Secret Message cipher wheel.","challenges-content.family-care.title":"Family Care","challenges-content.family-care.experience":"Open for all","challenges-content.family-care.duration":"5 to 10 hours","challenges-content.family-care.author":"","challenges-content.family-care.purposes.0":"To research on issue ‘family care’ that we face on a daily basis;","challenges-content.family-care.purposes.1":"To see problems as opportunities and generate creative solutions;","challenges-content.family-care.purposes.2":"To use code to innovatively realize your solutions;","challenges-content.family-care.purposes.3":"To design posters and present your solutions to others;","challenges-content.family-care.purposes.4":"To use social media to create impacts of your projects.","challenges-content.family-care.description.0":"What comes to you when we talk about home? A nice house? A big dinner prepared by parents? A secret space for yourself? A warm home refuels our bodies and spirit like a gas station. Amid the hustle and bustle of modern life, parents are always busy for work. When you hang out with friends, you cannot leave your kitties behind. But how to look after your company when you are apart? The theme of the challenge is","challenges-content.family-care.description.1":"Family Care","challenges-content.family-care.description.2":"Based on this theme, students are encouraged to develop an idea to pass love and care through coding and hardware. Here are some questions for you to think about","challenges-content.family-care.description.3":"How many family members are there in your home? Who are they? Have you met any problems when staying with them? What kinds of care do they need?","challenges-content.family-care.description.4":"Do you know anyone who lacks family care more than others in your community? How can you help them?","challenges-content.family-care.instructions.0":"Brainstorm and Research on the theme of family care","challenges-content.family-care.instructions.1":"List of any problems","challenges-content.family-care.instructions.2":"Generate possible solutions","challenges-content.family-care.instructions.3":"Select a solution","challenges-content.family-care.instructions.4":"Program and build up the structure","challenges-content.family-care.instructions.5":"Design a poster to layout your project","challenges-content.family-care.instructions.6":"Present it to your teachers and family members","challenges-content.family-care.example.0":"Please find some examples from here","challenges-content.family-care.example.1":"and","challenges-content.family-care.materials.0":"Coding tool:","challenges-content.family-care.materials.1":"or download the","challenges-content.family-care.materials.2":"PC version","challenges-content.family-care.materials.3":"mBlock is a programming language based off of Scratch","challenges-content.family-care.materials.4":"This challenge is also adapted from MakeX Global Spark Competition, a project-based creative design program for young people aged 6 to 13.","challenges-content.family-care.materials.5":"The participating team will need to focus on the specific theme and devise a solution through software programming and hardware construction.","challenges-content.family-care.materials.6":"Students are encouraged to complete the challenge in Codeweek and take it to the international level to communicate with other students and win prices.","challenges-content.family-care.materials.7":"For more information, please check:","challenges-content.family-care.materials.8":"or contact us at","challenges-content.family-care.more.0":"","challenges-content.virtual-flower-field.title":"Grow your virtual flower field","challenges-content.virtual-flower-field.author":"Jadga Huegle - Meet and Code coach and part of the SAP Snap! team","challenges-content.virtual-flower-field.duration":"30-60 minutes","challenges-content.virtual-flower-field.purposes.0":"To get to know programming with a simple yet expressive project.","challenges-content.virtual-flower-field.purposes.1":"To learn that coding can be artistic and lead to beautiful results.","challenges-content.virtual-flower-field.purposes.2":"To make fall brighter with colorful flowers and the EU Code Week.","challenges-content.virtual-flower-field.purposes.3":"To show the diversity of flowers on Earth.","challenges-content.virtual-flower-field.purposes.4":"To contribute to Sustainable Development Goals (SDGs), especially SDG13 -Climate Change by creating coding events that improve climate change education through raising awareness on this topic.","challenges-content.virtual-flower-field.description":"Develop a program in Snap! which grows a virtual flower field with different types of flowers and different numbers of petals.","challenges-content.virtual-flower-field.instructions.0":"If you need inspiration on how to get started with the challenge, check out","challenges-content.virtual-flower-field.instructions.1":"this video","challenges-content.virtual-flower-field.instructions.2":"or use","challenges-content.virtual-flower-field.instructions.3":"this document","challenges-content.virtual-flower-field.instructions.4":"to follow along","challenges-content.virtual-flower-field.instructions.5":"The challenge can be completed by programming a virtual flower field in Snap! (or Scratch) and posting a screenshot or photo of the result online.","challenges-content.virtual-flower-field.instructions.6":"The flower field should contain different types of flowers with different numbers of petals. Ideally, the flowers are programmed, which means that they are constructed by stamping and turning (or drawing and turning) petals repeatedly.","challenges-content.virtual-flower-field.instructions.7":"Post an image of your virtual flower garden with #MeetandCode.","challenges-content.virtual-flower-field.materials.0":"We recommend using","challenges-content.virtual-flower-field.materials.1":"however, the project also works in","challenges-content.haunted-house.title":"Haunted House in Hedy","challenges-content.haunted-house.author":'Felienne Hermans, Leiden University - Ramon Moorlag, I &I - CodeWeek NL',"challenges-content.haunted-house.audience":"Teachers and educators","challenges-content.haunted-house.duration":"1 hour or 2 hours depending on prior knowledge","challenges-content.haunted-house.purposes.0":"To make an interactive Haunted House story.","challenges-content.haunted-house.purposes.1":"To learn programming with Hedy.","challenges-content.haunted-house.description":"With Hedy, you will create a Haunted House story with interactive elements. Every time the code is run a new story will be created. The story can also be read aloud by your computer and shared online.","challenges-content.haunted-house.instructions.0":"Start with opening a browser and go to hedycode.com.","challenges-content.haunted-house.instructions.1":"Follow the instructions for levels 1-4. Use the tabs ‘Level’ and ‘Haunted house.’","challenges-content.haunted-house.instructions.2":"With the help of these levels, we will write an interactive haunted house story.","challenges-content.haunted-house.instructions.3":"Teachers, a lesson plan Hedy can be found","challenges-content.haunted-house.instructions.4":"here","challenges-content.haunted-house.instructions.5":"You can find a recording of Felienne Hermans presenting Hedy at","challenges-content.haunted-house.instructions.6":"this link","challenges-content.haunted-house.example":"Haunted house example at level","challenges-content.haunted-house.materials.0":"Hedy on","challenges-content.haunted-house.materials.1":"level 1 to 4","challenges-content.haunted-house.more.0":"","challenges-content.inclusive-app-design.title":"Inclusive App Design","challenges-content.inclusive-app-design.author":"Apple Education","challenges-content.inclusive-app-design.duration":"60 minutes + optional extension activities","challenges-content.inclusive-app-design.purposes.0":"To brainstorm, plan, prototype, and share an app idea that everyone could access and understand.","challenges-content.inclusive-app-design.description":"Great apps start with great ideas. In this activity, students will come up with an app idea on a topic they care about, then discover how to design apps with inclusion and accessibility in mind.","challenges-content.inclusive-app-design.instructions.0":"You will find all instructions at this link","challenges-content.inclusive-app-design.instructions.1":"With this one-hour lesson plan, educators can guide students to","challenges-content.inclusive-app-design.instructions.2":"Learn about inclusive app design","challenges-content.inclusive-app-design.instructions.3":"Brainstorm topics they care about to find an app idea","challenges-content.inclusive-app-design.instructions.4":"Outline their app ideas and plan user activities","challenges-content.inclusive-app-design.instructions.5":"Prototype one part of their app in Keynote","challenges-content.inclusive-app-design.instructions.6":"Share demos of their prototypes and describe how they support users with diverse backgrounds and abilities","challenges-content.inclusive-app-design.materials.0":"Explore the Inclusive App Design Activity at the Apple Teacher Learning Center","challenges-content.inclusive-app-design.materials.1":"Keynote on iPad or Mac is recommended, but not required.","challenges-content.silly-eyes.title":"Silly eyes","challenges-content.silly-eyes.author":"Raspberry Pi Foundation","challenges-content.silly-eyes.duration":"25 minutes","challenges-content.silly-eyes.purposes.0":"To make a project with user interaction.","challenges-content.silly-eyes.purposes.1":"To personalise a project with colour and graphic effects.","challenges-content.silly-eyes.purposes.2":"To learn about design in digital making.","challenges-content.silly-eyes.description":"In this project, you will design and create a silly eye character. The character’s large, silly eyes will follow the mouse pointer to bring your character to life.","challenges-content.silly-eyes.instructions":"Please access the full project description here","challenges-content.silly-eyes.example":"Check out Gobo, Under the sea and Don't eat donut","challenges-content.train-ai-bot.title":"Train an AI bot!","challenges-content.train-ai-bot.author":"","challenges-content.train-ai-bot.purposes":"To learn about artificial intelligence (AI), machine learning, training data, and bias, while exploring ethical issues and how AI can be used to address world problems.","challenges-content.train-ai-bot.description":"Train an AI bot with AI for Oceans. In this activity, you will program or train AI (artificial intelligence) to identify fish or trash. Let's clean up the ocean!","challenges-content.train-ai-bot.instructions.0":"Instructions are shown as videos within the tutorial","challenges-content.train-ai-bot.instructions.1":"and also written at the top of each level","challenges-content.train-ai-bot.example":"","challenges-content.train-ai-bot.materials.0":"Tutorial can be found here","challenges-content.train-ai-bot.materials.1":"This tutorial is available in over 25 languages","challenges-content.train-ai-bot.more.0":"","challenges-content.build-calliope.title":"Build your own Calliope mini fitness trainer","challenges-content.build-calliope.author":"Amazon Future Engineer | Meet and Code feat. Calliope gGmbH","challenges-content.build-calliope.purposes.0":"To playfully get to know sequences, animations, repetitions and variables.","challenges-content.build-calliope.purposes.1":"To design a structure chart.","challenges-content.build-calliope.purposes.2":"To test and debug code .","challenges-content.build-calliope.purposes.3":"To optimize a program by trial and error, checking and adjusting usability.","challenges-content.build-calliope.duration":"20-30 minutes","challenges-content.build-calliope.description":"Participants will develop a digitally controlled prototype that uses a colorful glowing LED to reproduce a preconceived 10-unit fitness exercise.","challenges-content.build-calliope.materials.0":"Calliope mini StarterBox (if available)","challenges-content.build-calliope.materials.1":'Laptop or tablet with which you can visit https://makecode.calliope.cc or https://calliope.cc and YouTube to access to resources for the activity.',"challenges-content.build-calliope.instructions.0":"To get started, create a plan and determine the order of the exercise units. Using the schedule, program the RGB LED of the Calliope mini to display one of the 5 colors at the predefined pace. Then create a variable for the pace and program repetitions using loops.","challenges-content.build-calliope.instructions.1":"Remember, if you've implemented the program in a way that you like, you can also share it with us at info@calliope.cc - we're excited to see what you make of it! By the way, we're giving away 30 Calliope minis among the submissions!","challenges-content.build-calliope.instructions.2":"Share the QR code of your project on Instagram, add the hashtag #EUCodeWeekChallenge and mention @CodeWeekEU.","challenges-content.build-calliope.example.0":"While you’re sitting at your computer: you can get sporty too.","challenges-content.build-calliope.example.1":"Create a fitness prototype with the Calliope mini which can also be tested in the simulator. The challenge is done in the MakeCode editor by programming a simple code sequence (see screenshot).","challenges-content.build-calliope.example.2":"Choose 5 different colors and assign a fitness exercise to each of them, e.g. squat or jumping jacks. Then the colors can be lined up in any order and trained.","challenges-content.animate-a-name.title":"Animate a name","challenges-content.animate-a-name.author":"Google","challenges-content.animate-a-name.purposes":"To use code to bring a name to life!","challenges-content.animate-a-name.duration":"15-60 minutes","challenges-content.animate-a-name.description":"Animate a Name is a one-hour lesson designed to be completed within 15-60 minutes. Students will watch a series of videos and create one coding project.","challenges-content.animate-a-name.materials":"This lesson can be completed online or offline, but both options require access to a computer.","challenges-content.animate-a-name.instructions.0":'Pick a video in one of 21 languages from this page',"challenges-content.animate-a-name.instructions.1":"Find a lesson plan in the description. Follow instructions in the video. ","challenges-content.european-astro-pi.title":"European Astro Pi Challenge - Mission Zero","challenges-content.european-astro-pi.author":"Google","challenges-content.european-astro-pi.purposes":"To run your python code on board the International Space Station","challenges-content.european-astro-pi.description.0":"You will make a short python program that shows a pixel-art image on board the International Space Station.","challenges-content.european-astro-pi.description.1":"Your image will be displayed using the Astro Pi computer in the European Columbus module.","challenges-content.european-astro-pi.materials":"Web browser only","challenges-content.european-astro-pi.instructions.0":'Teacher/mentor go to https://astro-pi.org/mission-zero/',"challenges-content.european-astro-pi.instructions.1":"Check eligibility/guidelines and sign up for a login","challenges-content.european-astro-pi.instructions.2":"This will create a classroom code, two random words e.g. fast-dog","challenges-content.european-astro-pi.instructions.3":"Display this code in the computer lab","challenges-content.european-astro-pi.instructions.4":'Students browse to https://rpf.io/mzproject and follow the steps to complete the activity',"challenges-content.european-astro-pi.instructions.5":"When students finish they type in the classroom code to link their submission to your login","challenges-content.european-astro-pi.instructions.6":"Valid entries will be run on the International Space Station in May 2023","challenges-content.common.share":"Share the link or QR code of your project on Instagram or Facebook, add the hashtag #EUCodeWeekChallenge and mention @CodeWeekEU.","challenges-content.common.audience.0":"Teachers and educators","challenges-content.common.audience.1":"Primary School students (6 to 12 years)","challenges-content.common.audience.2":"Lower Secondary School students (12 to 16 years)","challenges-content.common.audience.3":"Upper Secondary School students (16 to 18 years)","challenges-content.code-a-dice.title":"Code a Dice to Roll","challenges-content.code-a-dice.author":"Fabrizia Agnello","challenges-content.code-a-dice.purposes.0":"Code interactive riddles","challenges-content.code-a-dice.purposes.1":"To code a simulation of a randomly moving object to be used if the real object is not available","challenges-content.code-a-dice.description":"In this challenge you will code a dice to randomly roll on your command. You can choose any type of dice with the number of faces you like, as those used in role play games, and add sounds as well. ","challenges-content.code-a-dice.instructions.0":"Log in to Scratch","challenges-content.code-a-dice.instructions.1":"Choose a backdrop","challenges-content.code-a-dice.instructions.2":"Create your dice sprite or search for one on the web and upload it to your program","challenges-content.code-a-dice.instructions.3":"Create as many costumes for the sprite as the number of faces of the chosen dice, each of them showing a different number","challenges-content.code-a-dice.instructions.4":"Choose how you want the dice to start rolling (pressing a keyboard key, clicking on the sprite, etc.) and write the code","challenges-content.code-a-dice.instructions.5":"Code the sprite to randomly change costume at the end of the roll","challenges-content.code-a-dice.instructions.6":"Add sound effects","challenges-content.code-a-dice.example":"Roll a D-20 dice","challenges-content.personal-trainer.title":"Personal trainer with micro:bit","challenges-content.personal-trainer.author":"","challenges-content.personal-trainer.purposes.0":"To code micro:bit in order to use the buzzer and led panel","challenges-content.personal-trainer.purposes.1":"To create a personal device to control your physical activity","challenges-content.personal-trainer.purposes.2":"To code micro:bit to improve your health through sport","challenges-content.personal-trainer.description":"This challenge allows you to code your micro:bit to control the repetition times of physical exercises combined with rest time. You will track your physical activity at school, at home or in the park.","challenges-content.personal-trainer.instructions.0":"When A+B, create a 3-second countdown timer with a musical note sound every second and display the word GO!","challenges-content.personal-trainer.instructions.1":"During the first exercise, display a flashing 2x2 square for 20 seconds. Then play a sound and keep the square fixed. During the remaining time, another flashing image must be displayed for 10 seconds. When it finished, play a sound.","challenges-content.personal-trainer.instructions.2":"Then repeat the same action but display a 3x3 panel for the exercise time. Repeat these actions until the 5x5 panel is displayed.","challenges-content.personal-trainer.duration":"30-40 minutes","challenges-content.create-a-spiral.title":"Create a spiral","challenges-content.create-a-spiral.author":"Lydie El-Halougi","challenges-content.create-a-spiral.purposes.0":"To learn and practice loop and variables.","challenges-content.create-a-spiral.purposes.1":"To enhance creativity in coding.","challenges-content.create-a-spiral.description":"In this challenge you will write a project with Scratch to create a spiral, using the pen blocks, a loop and a variable.","challenges-content.create-a-spiral.instructions.0":"The Pen blocks","challenges-content.create-a-spiral.instructions.1":"Create a new project and name it Spiral.","challenges-content.create-a-spiral.instructions.2":"Click on the purple icon “Add extension” on the bottom-left side of the window","challenges-content.create-a-spiral.instructions.3":"Select “pen”: the pen blocks are now available for your project!","challenges-content.create-a-spiral.instructions.4":"To start your project, drag and drop the “when green flag clicked” block:","challenges-content.create-a-spiral.instructions.5":"You need to start with a blank page: within the pen blocks, add the “erase all” block:","challenges-content.create-a-spiral.instructions.6":"You want to start drawing at the center of the stage, which means your sprite has to go to the center of the stage (0,0):","challenges-content.create-a-spiral.instructions.7":"Your sprite can move without drawing, or move and draw:","challenges-content.create-a-spiral.instructions.8":"when you want it to draw, you can use the pen down block","challenges-content.create-a-spiral.instructions.9":"when you don’t want that, you can use the pen up block","challenges-content.create-a-spiral.instructions.10":"Now, you want to draw! Add the “pen down” block:","challenges-content.create-a-spiral.instructions.11":"The hexagon","challenges-content.create-a-spiral.instructions.12":"Add the blocks below to your project:","challenges-content.create-a-spiral.instructions.13":"You now have one sixth of your hexagon. You need to repeat this sequence 6 times:","challenges-content.create-a-spiral.instructions.14":"The spiral","challenges-content.create-a-spiral.instructions.15":"To create a spiral, you’ll need to add 2 to the length of each next side.","challenges-content.create-a-spiral.instructions.16":"To do so, you will use a variable.","challenges-content.create-a-spiral.instructions.17":"In the variable blocks, click on Make a Variable","challenges-content.create-a-spiral.instructions.18":"Name it length, then click OK:","challenges-content.create-a-spiral.instructions.19":"The spiral is going to grow, you’ll need to start small: set the first length to 10, and insert this block before the loop.","challenges-content.create-a-spiral.instructions.20":"Insert the variable “length” in the “move … steps” block","challenges-content.create-a-spiral.instructions.21":"To have the spiral grow, you also need to have the length grow in every loop: add the block below at the end of the loop:","challenges-content.create-a-spiral.instructions.22":"Here is your current project:","challenges-content.create-a-spiral.instructions.23":"A beautiful spiral ","challenges-content.create-a-spiral.instructions.24":"You drew a spiral! For it to go on and on, replace the “repeat 6” loop with the “forever” loop:","challenges-content.create-a-spiral.instructions.25":"To draw a colorful spiral, add the following block in the loop:","challenges-content.create-a-spiral.instructions.26":"When you start over, the sprite draws an unwanted line. To prevent it, add a “pen up” block at the beginning of the project.","challenges-content.create-a-spiral.instructions.27":"Here’s your final project:","challenges-content.create-a-spiral.instructions.28":"Congratulations! You created a lovely spiral!","challenges-content.play-against-ai.title":"Create and play against AI - Rock, Scissors, Paper Game","challenges-content.play-against-ai.author":"Kristina Slišurić","challenges-content.play-against-ai.purposes.0":"to understand how the machine learning cycle works.","challenges-content.play-against-ai.purposes.1":"to build a machine learning model using Teachable Machine","challenges-content.play-against-ai.purposes.2":"to familiarize yourself with the Pictoblox tool and import the created model into the project","challenges-content.play-against-ai.purposes.3":"to set the stage and characters, create and initialize variables in Pictoblox","challenges-content.play-against-ai.purposes.4":"to initialize the game, identify player movements, program random AI movements","challenges-content.play-against-ai.purposes.5":"to create and test a game that involves artificial intelligence as an opponent in a game of Rock, Paper, Scissors.","challenges-content.play-against-ai.description":"We will create a model using Teachable Machine from images using three classes: Rock, Scissors and Paper. Model will be loaded into Pictoblox and used to create game which we can play against AI.","challenges-content.play-against-ai.duration":"90 minutes","challenges-content.play-against-ai.instructions.0":"Create a new image project on Teachable machine with 3 classes named Rock, Paper, and Scissor. For each class, capture via camera at least 400 pictures. Make sure to have a clear background. Train and export the model. Upload model and copy link.","challenges-content.play-against-ai.instructions.1":"Create a free account on Pictoblox site. Add a Machine Learning Extension and upload a model. Set the stage, variables and sprites. Initialize the game, identify player moves and the moves of AI and who wins the round.","challenges-content.play-against-ai.instructions.2":"Train the data for the game.","challenges-content.play-against-ai.instructions.3":"Testing the model.","challenges-content.play-against-ai.instructions.4":"Export the model.","challenges-content.play-against-ai.instructions.5":"Add machine learning extension and load the model.","challenges-content.play-against-ai.instructions.6":"Set up the stage, variables and Sprite.","challenges-content.play-against-ai.instructions.7":"Initialize the game.","challenges-content.play-against-ai.instructions.8":"Identify Player’s Moves.","challenges-content.play-against-ai.instructions.9":"Set random AI Moves.","challenges-content.play-against-ai.instructions.10":"Broadcast random AI moves.","challenges-content.play-against-ai.instructions.11":"Make three blocks. Who wins the round? ","challenges-content.play-against-ai.instructions.12":"Check if the player wins the round.","challenges-content.play-against-ai.instructions.13":"Check if the AI wins the round.","challenges-content.play-against-ai.instructions.14":"Check if round is a draw.","challenges-content.play-against-ai.instructions.15":"Program blocks.","challenges-content.play-against-ai.instructions.16":"Rock Paper Scissors Sprite","challenges-content.air-drawing-with-AI.title":"Air drawing with AI","challenges-content.air-drawing-with-AI.author":"Kristina Slišurić","challenges-content.air-drawing-with-AI.purposes.0":"to write a program using the human body detection extension to recognize the movement of fingers in front of the camera.","challenges-content.air-drawing-with-AI.purposes.1":"to code with simple blocks in a few lines of code.","challenges-content.air-drawing-with-AI.purposes.2":"to see an example of using AI","challenges-content.air-drawing-with-AI.description":"Creation of a program that allows the user to draw in the air with their hand (index finger) in front of the camera and everything they draw is automatically displayed on the stage of Pictoblox.","challenges-content.air-drawing-with-AI.instructions.0":"Create account on Pictoblox","challenges-content.air-drawing-with-AI.instructions.1":"follow the visual instructions to:","challenges-content.air-drawing-with-AI.instructions.2":"add extensions Human Body Detection and Pen;","challenges-content.air-drawing-with-AI.instructions.3":"set the stage and add sprite (Pencil) and additional sprites for: Pen Down, Pen Up, Delete all; ","challenges-content.air-drawing-with-AI.instructions.4":"write a code for sprite Pencil to follow the finger","challenges-content.air-drawing-with-AI.instructions.5":"write a code for buttons: Pen Up, Pen Down and Delete all and also for Pen","challenges-content.air-drawing-with-AI.instructions.6":"Now you are set to make your own drawings and play with different colors and size of a pen.","challenges-content.air-drawing-with-AI.materials.0":"A laptop or a computer with a camera","challenges-content.air-drawing-with-AI.materials.1":"The latest version of PictoBlox downloaded (recommended) or online Pictoblox (free)","challenges-content.air-drawing-with-AI.materials.2":"Pictoblox account (free)","challenges-content.air-drawing-with-AI.materials.3":"Good Internet connection","challenges-content.emobot-kliki.title":"Emobot Kliki","challenges-content.emobot-kliki.author":"Margareta Zajkova","challenges-content.emobot-kliki.purposes.0":"To learn basic concepts of machine learning and text recognition.","challenges-content.emobot-kliki.purposes.1":"To understand the role of emotions in communications.","challenges-content.emobot-kliki.purposes.2":"To use code to create dialogues between chatbot and a user.","challenges-content.emobot-kliki.purposes.3":"To understand how computers can recognize emotional tones through text analysis and respond accordingly.","challenges-content.emobot-kliki.description.0":"Create Emotional Bot in Scratch that can display happy face for positive messages (if you say nice things to it), an angry face for negative messages (if you say mean things to it) and confused face if the message is unspecified.","challenges-content.emobot-kliki.description.1":"Our Emobot Kliki will recognize compliments and insults so we will see how computers can be trained to recognize emotional tone.","challenges-content.emobot-kliki.instructions.0":"To get started, program a list of rules for what is nice or kind and what is bad or mean.","challenges-content.emobot-kliki.instructions.1":"Log in to https://machinelearningforkids.co.uk/ or create a new account.","challenges-content.emobot-kliki.instructions.2":"Make a new machine learning model adding 3 new labels, first call it “nice”, second bucket called “bad” and optional if you want to recognize your name, create third label called “name”.","challenges-content.emobot-kliki.instructions.3":"Train the new machine learning model, test it and use it to make Emobot in Scratch.","challenges-content.emobot-kliki.instructions.4":"Launch the Scratch 3 editor, delete the cat sprite, insert 3 new sprites made by Microsoft Bing Image Creator (happy, angry and not sure computer cartoon) or create a new sprite by clicking on the Paint icon by drawing three copies of the costume for happy, angry and not sure face.","challenges-content.emobot-kliki.instructions.5":"Click the “Code” tab and enter the following script.","challenges-content.emobot-kliki.example.0":"Share your Emobot Kliki with your friends and learn more about AI and emotions!","challenges-content.emobot-kliki.example.1":"Instead of a computer cartoon you can try something different, like an animal. Instead of kind and mean you could train the character to recognize other types of messages.","challenges-content.craft-magic.title":"Craft Magic with AI Hand Gestures","challenges-content.craft-magic.author":"Georgia Lascaris","challenges-content.craft-magic.purposes.0":"To cultivate coding skills among students, allowing them to use basic commands.","challenges-content.craft-magic.purposes.1":"To develop algorithmic thinking skills by breaking down complex tasks into manageable steps.","challenges-content.craft-magic.purposes.2":"To encourage creative problem-solving in finding unique applications of hand gestures for drawing and writing.","challenges-content.craft-magic.purposes.3":"To foster an understanding of AI concepts, particularly how AI enables computers to recognize and interpret hand gestures.","challenges-content.craft-magic.purposes.4":"To raise awareness about the significance of technology for individuals with disabilities.","challenges-content.craft-magic.purposes.5":"To promote collaborative problem-solving and teamwork among students as they work together to improve their hand gesture programs.","challenges-content.craft-magic.purposes.6":"To connect coding and computational thinking skills to real-world applications, emphasizing the meaningful impact of technology on people's lives and aligning with Sustainable Development Goals(SDGs).","challenges-content.craft-magic.duration.0":"90 min for students 10-12","challenges-content.craft-magic.duration.1":"45 min for students 12-15","challenges-content.craft-magic.description":"Create a Scratch block-based program using the AI “Human Body” extension in a creative and engaging way, in order to draw on a screen without the need for a traditional mouse or touchscreen.","challenges-content.craft-magic.instructions.0":'Connect to the https://ai.thestempedia.com and create a teacher & students accounts.',"challenges-content.craft-magic.instructions.1":"Import the extensions ‘Human Body Detection’,’ Pen’,’ Text to Speech’.","challenges-content.craft-magic.instructions.2":"Add the ‘Pencil’ Sprite from the library and create 7 sprites (‘write’, ‘clear’, ‘black’, ‘red’, ‘blue’, ‘green’, ‘pink’).","challenges-content.craft-magic.instructions.3":"Write commands to check what happens when the ‘pencil’ sprite touches one of the other sprites.","challenges-content.craft-magic.instructions.4":"Write commands to enable the camera to recognize Hand Pose and move the pencil to the x and y coordinates of your index finger.","challenges-content.craft-magic.instructions.5":"Change costume at the end of the roll.","challenges-content.craft-magic.instructions.6":"Add sound effects.","challenges-content.craft-magic.materials.0":"Programming platform https://ai.thestempedia.com (free)","challenges-content.craft-magic.materials.1":"teacher account (free)","challenges-content.craft-magic.materials.2":"student account (free)","challenges-content.craft-magic.materials.3":"Computers with camera","challenges-content.craft-magic.materials.4":"Internet connection","challenges-content.circle-of-dots.title":"A circle of dots","challenges-content.circle-of-dots.author":"Marin Popov","challenges-content.circle-of-dots.purposes.0":"To write code to draw a line of points.","challenges-content.circle-of-dots.purposes.1":"To write code to draw a line of dashes.","challenges-content.circle-of-dots.purposes.2":"To write code to draw a circle.","challenges-content.circle-of-dots.purposes.3":"Write code to draw a circle of dots (dashes).","challenges-content.circle-of-dots.description":"Draw a circle from dots or dashes.","challenges-content.circle-of-dots.duration":"40 minutes","challenges-content.circle-of-dots.instructions.0":"Building a dot block.","challenges-content.circle-of-dots.instructions.1":"Building a dash block.","challenges-content.circle-of-dots.instructions.2":"Constructing a circle from dot.","challenges-content.circle-of-dots.instructions.3":"Constructing a circle from dash.","challenges-content.coding-escape-room.title":"Create a coding escape room","challenges-content.coding-escape-room.author":"Stefania Altieri and Elisa Baraghini","challenges-content.coding-escape-room.purposes.0":"To teach/learn and reflect about coding concepts.","challenges-content.coding-escape-room.purposes.1":"To use simple coding tools.","challenges-content.coding-escape-room.purposes.2":"To develop computational thinking and problem solving.","challenges-content.coding-escape-room.description.0":"Create an escape coding experience like this:","challenges-content.coding-escape-room.description.1":"You can use google form, genially, google presentation, any tool to create a storytelling based on coding ;).","challenges-content.coding-escape-room.duration":"90 minutes","challenges-content.coding-escape-room.instructions":"You can divide your students in small group, they can play and then create another challenge with the template: ","challenges-content.coding-escape-room.materials.0":"Any tool can be used (Google and Microsoft platform to create and share documents, presentations and sheets). Any coding construct, tool or character linked to ICT and coding.","challenges-content.coding-escape-room.example.0":"Some characters who had a very important role in the ICT history and basic concepts of coding and programming, are introduced by playing. This is the best way to learn and actively participate. This game can be played in teams or individually, like a challenge or a competition. Students can then create something similar and develop competences such as creativity and coding skills.","challenges-content.coding-escape-room.example.1":"This is a very practical resource to be re-used and to be easily re-created. Google forms is one of the possible tools. You can also use Google slides, Genial.ly or Emaze or any other tool to create crossroads stories and your own adventures.","challenges-content.coding-escape-room.example.2":"The escape challenge is divided in sessions. If you guess you can go ahead. Students have to create the coding quizzes.","challenges-content.let-the-snake-run.title":"Let the snake run","challenges-content.let-the-snake-run.author":"Ágota Klacsákné Tóth","challenges-content.let-the-snake-run.purposes.0":"To code the snake's movement on their own micro:bit.","challenges-content.let-the-snake-run.purposes.1":"To set the correct placing and timing for the joint animation.","challenges-content.let-the-snake-run.description":"Students must write codes to navigate the snake through micro:bits next to each other. It has to be done in a way that it looks like the snake is running from one micro:bit to the other.","challenges-content.let-the-snake-run.duration":"30 minutes","challenges-content.let-the-snake-run.instructions.0":"Design a track that goes through several micro:bits next to each other (e.g., forming a 2x2 square).","challenges-content.let-the-snake-run.instructions.1":"Write codes as a snake moves along a track.","challenges-content.let-the-snake-run.instructions.2":"Work on your own device then put them together and run the code.","challenges-content.let-the-snake-run.instructions.3":"Consider the timing and placement: If the snake goes out of one micro:bit, it will appear on the next micro:bit.","challenges-content.let-the-snake-run.instructions.4":"Further challenges: With micro:bit v2, play music until the snake leaves your device.","challenges-content.let-the-snake-run.instructions.5":"Design the snake by changing the brightness of the LEDs.","challenges-content.let-the-snake-run.instructions.6":"Try longer, or more snakes.","challenges-content.let-the-snake-run.example.0":"This is an example for a 6 pixel long snake with4 micro:bits forming a 2x2 square: ","challenges-content.let-the-snake-run.example.1":"Coding the starting micro:bit (the teacher can do it)","challenges-content.let-the-snake-run.example.2":"All codes are initiated by this micro:bit, which sends a radio signal to other micro:bits when the A button is pressed.","challenges-content.let-the-snake-run.example.3":"Coding the snake movement","challenges-content.let-the-snake-run.example.4":"Each micro:bit must be in the same radio group as the starting micro:bit.","challenges-content.let-the-snake-run.example.5":"Allanimations start when the radio signal is received.","challenges-content.let-the-snake-run.example.6":"The animation of the first microbit is immediately visible, the others wait until the snake gets there.","challenges-content.let-the-snake-run.example.7":"The time between the two phases determines the speed of the snake.","challenges-content.let-the-snake-run.materials.0":"micro:bits (for every student if possible)","challenges-content.let-the-snake-run.materials.1":"laptop or computer for makecode.microbit.org editor","challenges-content.illustrate-a-joke.title":"Illustrate a joke with bitsy","challenges-content.illustrate-a-joke.author":"Margot Schubert","challenges-content.illustrate-a-joke.purposes":"To design a little game where the user finds the answer to a joke question.","challenges-content.illustrate-a-joke.description":"The students design a game where the user finds the answer to a joke question when the figure hits an object on the playing field. The students use basic features of bitsy to complete the challenge.","challenges-content.illustrate-a-joke.instructions.0":"Think of a joke question. Go to bitsy and start a new project. You will need:","challenges-content.illustrate-a-joke.instructions.1":"an avatar - sprite that you can move around","challenges-content.illustrate-a-joke.instructions.2":"A white cat on a purple background","challenges-content.illustrate-a-joke.instructions.3":"Description automatically generated","challenges-content.illustrate-a-joke.instructions.4":"an object to which your avatar has to go","challenges-content.illustrate-a-joke.instructions.5":"a room - the background of your program","challenges-content.illustrate-a-joke.instructions.6":"two messages: a question and an answer","challenges-content.illustrate-a-joke.instructions.7":"The finished game can be downloaded as an html file.","challenges-content.illustrate-a-joke.example":"In this website you see an example of a joke and there is a link to a digital whiteboard:","challenges-content.illustrate-a-joke.materials":"bitsy runs in a browser","challenges-content.app-that-counts-in-several-languages.title":"App that counts in several languages","challenges-content.app-that-counts-in-several-languages.author":"Samuel Branco","challenges-content.app-that-counts-in-several-languages.purposes.0":"To learn how to create a simple app.","challenges-content.app-that-counts-in-several-languages.purposes.1":"To learn to program through blocks.","challenges-content.app-that-counts-in-several-languages.purposes.2":"To learn how to add Labels, buttons, images, sensors and media.","challenges-content.app-that-counts-in-several-languages.purposes.3":"To learn how to organize elements on an app screen.","challenges-content.app-that-counts-in-several-languages.description":"The app lets you count in multiple languages at the press of a button. Whenever the user shakes the smartphone, the count goes back to zero. The challenge is to add another language.","challenges-content.app-that-counts-in-several-languages.instructions.0":"To complete the challenge, you need to define the other language in which you want the app to count.","challenges-content.app-that-counts-in-several-languages.instructions.1":"Then you have to download from the internet (e.g. from Pixabay or Unsplash) the flag of that country and upload it to the MIT APP Inventor platform through the element called flag, in the Picture property.","challenges-content.app-that-counts-in-several-languages.instructions.2":"Next you should find out how to spell the name of the country in English and how to say leave and press me in the language of that country.","challenges-content.app-that-counts-in-several-languages.instructions.3":"Finally, you have to add the necessary blocks for the app to work in the new language.","challenges-content.app-that-counts-in-several-languages.materials.0":"To develop an app you need a computer or a laptop with internet access.","challenges-content.app-that-counts-in-several-languages.materials.1":"Create an account on the MIT APP Inventor platform, accessible through the https://ai2.appinventor.mit.edu","challenges-content.app-that-counts-in-several-languages.materials.2":"It is also necessary to install the MIT AI2 Companion app on the smartphone in order to test the developed application.","challenges-content.coding-with-art-through-storytelling.title":"Coding with art through Storytelling","challenges-content.coding-with-art-through-storytelling.author":"Maria Tsapara and Anthi Arkouli","challenges-content.coding-with-art-through-storytelling.purposes.0":"To cultivate skills of observation, interpretation, and questioning through engagement with art.","challenges-content.coding-with-art-through-storytelling.purposes.1":"To be creative and collaborate with others for a common goal","challenges-content.coding-with-art-through-storytelling.purposes.2":"To create an algorithm in order to re-narrate the story.","challenges-content.coding-with-art-through-storytelling.description":"In this challenge students will get inspired by an artwork, create a story and illustrate it. Then they will try to re-narrate the story by using a programmable robotic kit/or as an unplugged activity.","challenges-content.coding-with-art-through-storytelling.materials.0":"This activity can be implemented as an unplugged activity or by using an educational programmable robot such as beebot/bluebot/mouse robot.","challenges-content.coding-with-art-through-storytelling.materials.1":"beebot arrow cards or arrow cards for the unplugged activity","challenges-content.coding-with-art-through-storytelling.materials.2":"in Greek","challenges-content.coding-with-art-through-storytelling.materials.3":"In order to learn more for the Project Zero's Thinking Routine Toolbox you can visit","challenges-content.coding-with-art-through-storytelling.materials.4":"","challenges-content.coding-with-art-through-storytelling.example.0":"The teacher works with the students to model how to design an algorithm with the cards that will provide instructions for the Bee-Bot or other robot to get to the first event of the story on the mat. Students work in teams of 3-4 to design an algorithm for the robot to move to the next sequence. Students test their algorithms on the class mat and debug, as necessary.","challenges-content.coding-with-art-through-storytelling.example.1":"They continue to move through as many story events as they can","challenges-content.coding-with-art-through-storytelling.example.2":"This activity can be implemented also as an unplugged activity.","challenges-content.coding-with-art-through-storytelling.example.3":"One child is the robot - another child the programmer. The programmer creates an algorithmic path by using the arrow cards in order to help the robot to move from one image to another and re-narrate the story. Each time the robot is in an image it is asked to tell a part of the story.","challenges-content.coding-with-art-through-storytelling.instructions.0":"The teacher asks students to observe a painting/photo.","challenges-content.coding-with-art-through-storytelling.instructions.1":'They use the thinking routine "Beginning, Middle, End" (Project Zero of Harvard School) in order to create a story.',"challenges-content.coding-with-art-through-storytelling.instructions.2":'The teacher asks them "If this artwork is the beginning/middle/end of a story, what might happen next/before/in the end?',"challenges-content.coding-with-art-through-storytelling.instructions.3":"Students illustrate the events of the story.","challenges-content.coding-with-art-through-storytelling.instructions.4":"Students recall the story and put the events in the grid. Using arrow cards, they create an algorithm helping beebot re-narrate the story.","challenges-content.coding-with-legoboost.title":"Coding and programming with LegoBoost - Scratch extension","challenges-content.coding-with-legoboost.author":"Lidia Ristea","challenges-content.coding-with-legoboost.purposes.0":"to build models using LegoBoost.","challenges-content.coding-with-legoboost.purposes.1":"to develop programming skills in Scratch.","challenges-content.coding-with-legoboost.purposes.2":"to program robots using commands from simple to complex.","challenges-content.coding-with-legoboost.description":"In this challenge, students will use the Scratch-LegoBoost extension and enter codes in the application for the robots to move forward, backward, obstacle avoidance and voice commands.","challenges-content.coding-with-legoboost.duration":"120 minutes","challenges-content.coding-with-legoboost.instructions.0":"Log in to the Scratch.mit.edu application.","challenges-content.coding-with-legoboost.instructions.1":"Launch Scratch Link and activate Bluetooth on the Laptop.","challenges-content.coding-with-legoboost.instructions.2":"Click Add an Extension from Scratch and choose LegoBoost.","challenges-content.coding-with-legoboost.instructions.3":"Add a picture about EU Code Week.","challenges-content.coding-with-legoboost.instructions.4":"Set the two AB motors ON, and when meeting a red obstacle, OFF.","challenges-content.coding-with-legoboost.instructions.5":"In the green color motor A is set ON, in the black color motor B ON.","challenges-content.coding-with-legoboost.instructions.6":"Green, red and black obstacles will be placed on a route.","challenges-content.coding-with-legoboost.instructions.7":"Add commands for movement and turns from arrows and text-to-speech when encountering an obstacle.","challenges-content.coding-with-legoboost.instructions.8":"Test it!","challenges-content.coding-with-legoboost.example.0":"The students will program the robots by rotation and enter commands in the Legoboost android application, to avoid obstacles, to launch with the spring, to stop at the red color and to emit a sound signal. On the Laptop, starting from the example presented and the sequences in the attached file, the students will program the robots where they will introduce:","challenges-content.coding-with-legoboost.example.1":"commands for moving forward, backward, left, right using the arrows,","challenges-content.coding-with-legoboost.example.2":"avoiding obstacles, stopping at a certain color","challenges-content.coding-with-legoboost.example.3":'a 3 m route will be set up and a variable will be created "timer" = 30 s,',"challenges-content.coding-with-legoboost.example.4":"text to speech (Scratch extension), when it encounters an obstacle.","challenges-content.coding-with-legoboost.example.5":'if in 30 s the robot avoids the obstacles and it reaches at the end, It add text in speech "I succeeded" else , I have to practice again.',"challenges-content.coding-with-legoboost.example.6":'save with the name "LegoBoost extension" and share with the colleagues. ',"challenges-extra.cs-first-unplugged-activities.0":"You will find the lesson plan and booklet for this challenge at","challenges-extra.cs-first-unplugged-activities.1":"this link","challenges-extra.cs-first-link":"https://drive.google.com/drive/folders/1knebrtFD2FRwDFdK25P3FLmQ5tXswWKo","challenges-extra.create-a-dance.title":"Create a dance with the Ode to Code on Dance Party","challenges.title":"EU CODE WEEK CHALLENGES","challenges.date":"9-24 October 2021","challenges.common.target-audience":"Target Audience","challenges.common.pre-primary":"Pre-primary students","challenges.common.experience":"Experience","challenges.common.duration":"Duration","challenges.common.materials":"Recommended Materials","challenges.common.purpose":"Purpose","challenges.common.description":"Description","challenges.common.instructions":"Instructions","challenges.common.example":"Example","challenges.common.written-by.0":"This challenge has been written by","challenges.common.written-by.1":"and is part of the","challenges.common.teachers":"Teachers","challenges.common.students":"Students","challenges.common.beginner":"Beginner","challenges.common.intermediate":"Intermediate","challenges.common.advanced":"Advanced","challenges.common.1-hour":"1 hour","challenges.main.0":"During EU Code Week, 9 - 24 October 2021, we invite you to do one or more of the EU Code Week challenges.","challenges.main.1":"What are the EU Code Week Challenges?","challenges.main.2":"EU Code Week Challenges are activities that you can do on your own, in the classroom, with colleagues or friends. You would like to participate in Code Week but do not really have an idea of what to organize? Look no further! We have designed along with Code Week partners a selection of easy to make challenges, that include concrete examples of how to use it in a classroom or group. There are also guidelines on how to complete the challenges, but you can adapt them so that they suit the needs, interests and age of your participants. You can use whatever tools and technologies you like, but we recommend open-source resources.","challenges.main.3":"Choose one or several challenges, adapt it to your group or your classroom, and share the results on Instagram to encourage even more colleagues and friends to engage in the Code Week fun!","challenges.main.4":"Click on the challenge to find out more about it:","challenges.main.5":"Who can join?","challenges.main.6":"Everyone (schools, teachers, libraries, code clubs, businesses, public authorities) is invited to celebrate EU Code Week 2021 by completing a #EUCodeWeekChallenge.","challenges.main.7":"How to participate in the EU Code Week 2021 Challenge?","challenges.main.8":"Select a challenge you would like to complete.","challenges.main.9":"Team up your participants in pairs or groups. Teamwork and collaboration are key for the successful completion of a challenge whether you organise your activity in-person or online as a national or international collaborative activity.","challenges.main.10":"Share your challenge","challenges.main.11":"Would you like to win some Code Week goodies? If yes, then let your work go viral!","challenges.main.12":"After you have completed the challenge, share it on Instagram.","challenges.main.13":"Winners will be selected every day during Code Week between 9 – 24 October and announced on our Instagram channel, so don't forget to check your notifications regularly.","challenges.share.0":"How to share your challenge(s) on Instagram?","challenges.share.1":"Tap the Edit profile button","challenges.share.2":"Add the link of your work in the Website field and save","challenges.share.3":"Create a new post","challenges.share.4":"Add a screenshot of your work","challenges.share.5":"Write an engaging description","challenges.share.6":"Make sure to specify ‘Link in Bio’","challenges.share.7":"Add the #EUCodeWeekChallenge","challenges.share.8":"Mention and tag @CodeWeekEU","challenges.share.9":"You prefer to share your challenge(s) on Facebook?","challenges.share.10":"EU Code Week will pin a new Challenge post on their","challenges.share.11":"Facebook page","challenges.share.12":"every day and will select the winner for the prize from the comments under the post.","challenges.share.13":"How does it work?","challenges.share.14":"Simply comment on the post with the link to your work.","challenges.share-box.0":"Share the link to your work in your","challenges.share-box.1":"Instagram Bio","challenges.share-box.2":"tap the","challenges.share-box.3":"Edit Profile","challenges.share-box.4":"button on your Instagram and add the link to your work in the Website field. After that, create a new post, add a screenshot of your work, write ","challenges.share-box.5":"Link in Bio","challenges.share-box.6":"add the hashtag #EUCodeWeekChallenge and mention @CodeWeekEU","challenges.share-box.7":"You prefer to share your Challenge(s) on","challenges.share-box.8":"EU Code Week will pin","challenges.share-box.9":"a new Challenge post on their","challenges.share-box.10":"Facebook page","challenges.share-box.11":"You then just need to comment on the post with the link to your work","challenges.share-box.12":"Winners will be selected and offered Code Week goodies every day during Code Week between 9 – 24 October and announced on our Instagram and Facebook channels, so don't forget to check your notifications regularly","challenges.take-part.0":"Why take part in an EU Code Week challenge?","challenges.take-part.1":"To engage in problem solving and coding activities.","challenges.take-part.2":"To work together with peers.","challenges.take-part.3":"To spread the message on the importance of coding.","challenges.download.0":"Click","challenges.download.1":"here","challenges.download.2":"to download this challenge as a word document","challenges.bingo.0":"Complete all the Challenges","challenges.bingo.1":"Challenge completed? Print","challenges.bingo.2":"the bingo card","challenges.bingo.3":"and mark the little white bubble on the top left","challenges.bingo.4":"Share your Challenge on social media and win some cool Code Week prizes","challenges.bingo.5":"Just upload a picture with the completed row(s), column(s) or even better - the whole bingo - to","challenges.bingo.6":"Facebook, Instagram or Twitter","challenges.bingo.7":"Make sure to use the","challenges.bingo.8":"","challenges.bingo.9":"","challenges.bingo.10":"","challenges.challenges-text":"A collection of activities that you can do on your own, in the classroom, with colleagues or friends.","challenges.challenges-sub-title":"You would like to participate in the EU Code Week but do not really have an idea of what to organise?","challenges.challenges-sub-text1":"Look no further! Along with EU Code Week partners, we have designed a selection of easy-to-do challenges with concrete examples of how to use them in a classroom or group. There are also guidelines on how to complete the challenges, but you can adapt them so that they suit the needs, interests and age of your participants.","challenges.challenges-sub-text2":"You can use whatever tools and technologies you like, but we recommend open-source resources. Choose one or several challenges, adapt it to your group or your classroom, and share the results on Instagram to encourage even more colleagues and friends to join the EU Code Week fun!.","challenges.challenges-sub-text3":'Need help navigating the Challenges? Try our Roadmap — a simplified tool to explore them step by step.',"codeweek4all.title":"Code Week 4 All challenge","codeweek4all.text":"The Code Week 4 All challenge encourages you to link your activities with others organised by friends, colleagues and acquaintances, and together gain the Code Week Certificate of Excellence.","codeweek4all.what.title":"What is it?","codeweek4all.what.content":`

+ In addition to submitting your activity to the EU Code Week map, you can also engage others in your network to do the same. If you and your alliance reach one of the following thresholds, you will all earn the Code Week Certificate of Excellence! +

+

+ Criteria for earning the Certificate of Excellence: +

`,"codeweek4all.what.criteria1":"500 students participated","codeweek4all.what.criteria2":"10 activities linked (from 10 different organizers)","codeweek4all.what.criteria3":"3 countries involved","codeweek4all.what.andor":"And / Or","codeweek4all.howto.title":"How to participate?","codeweek4all.howto.time":"Code Week 4 All challenge lasts until the end of the calendar year. Certificates will be issued in the beginning of the next year in January or February.","codeweek4all.howto.content":'Visit the Add Activity page and fill in the necessary details of your coding activity.',"codeweek4all.howto.first_alliance.1":"Click on Submit.","codeweek4all.howto.first_alliance.2":"Once your activity has been accepted, you will receive a confirmation email with your unique Code Week 4 All code.","codeweek4all.howto.first_alliance.3":"Copy the code and share it with your colleagues and others in your network who are also organising a coding activity. Spread the word to encourage others to participate!","codeweek4all.howto.first_alliance.4":"After the end of the campaign, all activity organisers will be asked to report back on how many participants they have involved. If you were successful in achieving the threshold, you and your colleagues who were part of your network will receive the Certificate of Excellence!","codeweek4all.howto.first_alliance.title":"If you are the first one in your alliance:","codeweek4all.howto.existing_alliance.1":"Paste the passcode you received from the initiator, the first to build the alliance, into the CODE WEEK 4 ALL CODE field cell.","codeweek4all.howto.existing_alliance.2":"Click on Submit.","codeweek4all.howto.existing_alliance.3":"Spread the word (and the code!) to get more organisers to join your alliance.","codeweek4all.howto.existing_alliance.4":"After the end of the campaign, all activity organisers will be asked to report on how many participants they have involved. If you were successful in achieving the threshold, you and your colleagues who were part of your network will receive the Certificate of Excellence!","codeweek4all.howto.existing_alliance.title":"If you are joining an existing alliance:","codeweek4all.why.1":"To spread the message on the importance of coding.","codeweek4all.why.2":"To see a large number of students get involved.","codeweek4all.why.3":"To build connections with organisations and/or schools in your community or internationally.","codeweek4all.why.4":"To find support from other organisers and teachers.","codeweek4all.why.5":"To gain a Certificate of Excellence.","codeweek4all.why.title":"Why join the challenge?","codeweek4all.superorganiser-title":"Super Organiser Certificate","codeweek4all.superorganiser":'You can also earn a Super Organiser Certificate. To do so you need to organise and register at least 10 separate activities at your school, organisation, or online.',"coding-at-home.title":"Coding@Home – video tutorials","coding-at-home.questions":"Questions","coding-at-home.material.required":"Required material","coding-at-home.material.chequered":"chequered board","coding-at-home.material.footprint":"tiles with footprint pictures","coding-at-home.intro.title":"Introduction to Coding@Home","coding-at-home.intro.text":"Introduction to Coding@Home","coding-at-home.explorer.title":"The explorer","coding-at-home.explorer.text":"The explorer is the first Coding@Home activity. Move the explorer around the board to reach the target after visiting as many squares as possible.","coding-at-home.explorer.questions.title":"Questions","coding-at-home.explorer.questions.content.1":"Q1. With the starting and finishing positions shown in the video, is it possible for the explorer to visit all the boxes on the board?","coding-at-home.explorer.questions.content.2":"Q2. Which starting and finishing positions prevent the explorer from visiting the greatest number of boxes on the board?","coding-at-home.right-and-left.title":"Right and left","coding-at-home.right-and-left.text":"Right and left is a competitive and collaborative game. The two teams collaborate to create a path towards the target, while they compete to use as many as possible of the tiles assigned to them: the yellow team tries to insert as many turns to the left as possible and the red team tries to insert as many turns to the right as possible.","coding-at-home.right-and-left.questions.content.1":"Q1. With start and finish arranged as in the first match in this video, is it possible for one of the two teams to win?","coding-at-home.right-and-left.questions.content.2":"Q2. With start and finish arranged as in the game won by Anna, could there be a draw?","coding-at-home.right-and-left.questions.content.3":"Q3. Are there any starting and finishing arrangements that favour one of the two teams?","coding-at-home.right-and-left.questions.content.4":"Q4. Given the disposition between starting and finishing positions, is it possible to predict what the gap will be between the winning and the losing team?","coding-at-home.keep-off-my-path.title":"Keep of my path","coding-at-home.keep-off-my-path.text":"Keep of my path is a competitive game with two teams. Starting from opposite ends of the board, the two teams build paths that hinder each other. The team that prevents the other from extending their path wins.","coding-at-home.keep-off-my-path.questions.content.1":"Q1. Are there any starting points that favour one of the two teams?","coding-at-home.keep-off-my-path.questions.content.2":"Q2. Could there be a draw?","coding-at-home.keep-off-my-path.questions.content.3":"Q3. Does the player that goes first have an advantage?","coding-at-home.keep-off-my-path.questions.content.4":"Q4. Is there an watertight game strategy that the player who moves first can adopt to make sure he never loses?","coding-at-home.tug-of-war.title":"Tug of war","coding-at-home.tug-of-war.text":"Tug of war is a collaborative and competitive game. Starting from the centre of the bottom of the board, two teams (yellow and red) work together to reach the top. The yellow team is trying to reach the boxes on the left while the red team is trying to reach the boxes on the right.","coding-at-home.tug-of-war.questions.content.1":"Q1. Is there a strategy that will always result in victory?","coding-at-home.tug-of-war.questions.content.2":"Q2. Does the player that goes first have an advantage?","coding-at-home.tug-of-war.questions.content.3":"Q3. If the two players are equally attentive does the game always end in a draw, i.e. in the centre?","coding-at-home.explorer-without-footprints.title":"The explorer without footprints","coding-at-home.explorer-without-footprints.text":"The explorer walks around the board from the starting point to the target, trying to visit all the boxes. As the explorer walks s/he leaves coloured footprints, which allow the robot to follow the steps by interpreting the colours. The game becomes even more intriguing when the explorer clears away the footprints leaving only the colours.","coding-at-home.explorer-without-footprints.material":"red, yellow, and grey markers (or pencils)","coding-at-home.explorer-without-footprints.questions.content.1":"Q1. What is the difference between the board full of coloured footprints and the one with colours but no footprints?","coding-at-home.explorer-without-footprints.questions.content.2":"Q2. Which board offers more freedom of movement, keeping the same rules for turning as indicated by colour?","coding-at-home.explorer-without-footprints.questions.content.3":"Q3. Are there possible paths on the board with colours, which are not possible on the board with coloured footprints?","coding-at-home.explorer-without-footprints.questions.content.4":"Q4. Are there possible paths on the board with coloured footprints, which are not possible on the board with just colours?","coding-at-home.walk-as-long-as-you-can.title":"Walk as long as you can","coding-at-home.walk-as-long-as-you-can.text":"In this activity the challenge is to stay as long as possible on the board using colours instead of footprints. The activity becomes harder when the freedom of movement increases","coding-at-home.walk-as-long-as-you-can.coloured-cards":"coloured cards, or red, yellow and grey markers","coding-at-home.walk-as-long-as-you-can.questions.content.1":"Q1. When do the two paths collide and block each other?","coding-at-home.walk-as-long-as-you-can.questions.content.2":"Q2. This game is presented as a two-player game? Is it possible to play it in 3 or 4 players? Do we need to change the rules?","coding-at-home.ada-charles-roby.title":"Ada, Charles and Roby","coding-at-home.ada-charles-roby.text":"The story of Ada Lovelace and Charles Babbage is an interesting one. They conceived and programmed computers a hundred years before they were actually invented","coding-at-home.ada-charles-roby.material":"modelling clay and a short pencil","coding-at-home.ada-charles-roby.questions.content.1":"Q1. Try to imagine that the robot you built with modelling clay and a pencil is able to move on the board to reach any position and, if needed, to trace its path. What instructions would you use to program it?","coding-at-home.cody-and-roby.title":"Cody and Roby","coding-at-home.cody-and-roby.text":"This is a role-playing game with the programmer, Cody, and the robot, Roby. The video introduces the cards of CodyRoby, that we will use from now on to determine movements on the board. Cody will use these cards to give Roby instructions for how to move on the board","coding-at-home.cody-and-roby.material":"chequered board with labels, instruction cards (left, right, forward), and any counters to be placed on the board","coding-at-home.cody-and-roby.starter-kit":"CodyRoby starter kit","coding-at-home.cody-and-roby.questions.content.1":"Q1. Where does Roby arrive if, starting from position C2 facing South, he executes the last sequence of instructions shown in the video?","coding-at-home.cody-and-roby.questions.content.2":"Q2. Could the movements Roby carries out by executing the last sequence of instructions shown in the video be described by applying the instructions of CodyFeet or CodyColor to the board?","coding-at-home.cody-and-roby.questions.content.3":"Q3. The three types of instructions introduced in the video, represented by the green, red and yellow cards, constitute an instruction set capable of driving Roby anywhere on the board. Can you come up with an instruction set with fewer than 3 instructions to do the same?","coding-at-home.the-tourist.title":"The tourist","coding-at-home.the-tourist.text":"With the CodyRoby cards, two teams challenge each other to find, in the shortest time possible, the sequence of instructions that will guide the tourist to the monuments that she wants to visit on the board","coding-at-home.the-tourist.material":"Larger cards can be useful to play on the floor","coding-at-home.the-tourist.questions.content.1":"Q1. What sequence of instructions would guide the tourist to the Statue of Raphael in the first example shown in the video?","coding-at-home.the-tourist.questions.content.2":"Q2. What sequence of instructions would guide the tourist to the Torricini of the Ducal Palace in the second example shown in the video?","coding-at-home.the-tourist.questions.content.3":"Q3. Can you think of a fun way to do some exercise every time one of the two teams chooses a card to add to the program? Invent a way by rethinking the relay race shown in the video","coding-at-home.material2.chequered-with-labels":"chequered board with labels","coding-at-home.material2.cards":"24 ‘Go Forward’ cards, 8 ‘Turn Left’ cards, and 8 ‘Turn Right’ direction cards","coding-at-home.material2.larger-cards":"Larger cards are recommended for the floor version","coding-at-home.material2.video":"The video also explains how to play without the deck of cards","coding-at-home.material2.pieces-of-paper":"24 pieces of paper are also needed to be placed on the squares already visited","coding-at-home.material2.card-alternative":"As an alternative to the deck of CodyRoby cards, you can use the card icons available here","coding-at-home.material2.small-drawings":"An addition could be small drawings to help tell the story. Those used in the video are here","coding-at-home.material2.rest-of-cards":"For the rest we use the cards of CodyRoby, CodyFeet, or CodyColour","coding-at-home.catch-the-robot.title":"Catch the robot","coding-at-home.catch-the-robot.text":"Catch the robot is a competitive table top or floor game. The player who captures the opposing team's robot by reaching its square on the board wins. The randomness of the playing cards requires both teams to continuously adjust their strategies.","coding-at-home.catch-the-robot.questions.content.1":"Q1. If the pink pawn (Roby) is on the central square C3 facing North, and the pink team has 2 ‘Go Forward’ cards, 2 ‘Turn Left’ cards, and 1 ‘Turn Right’ card, to which squares can he go?","coding-at-home.the-snake.title":"The snake","coding-at-home.the-snake.text":"The snake is a type of solitaire played with CodyRoby cards. The aim of the game is to guide the snake through all of the squares on the board without biting its tail.","coding-at-home.the-snake.questions.content.1":"Q1. Are there any starting points that make it impossible to visit all the squares without biting the snake's tail?","coding-at-home.storytelling.title":"Storytelling","coding-at-home.storytelling.text":"Today's topic is storytelling! Use the instructions of CodyRoby, the footprints of CodyFeet, or the colours of CodyColour, to guide the pawns around the board to tell a story. Scatter different parts of the story around the board.","coding-at-home.storytelling.questions.content.1":"Q1. Which tool is the most versatile for guiding Roby to tell a story?","coding-at-home.storytelling.questions.content.2":"Q2. Can you arrange the parts of the story that you want to tell on the board in positions that make it impossible to retrieve them all with CodyFeet?","coding-at-home.two-snakes.title":"The two snakes","coding-at-home.two-snakes.text":"Using the CodyRoby cards, two snakes move around the board trying to obstruct each other’s movement. The basic rule is very simple: you cannot go back to a square already visited by a snake. The winner is the snake that is able to move around freely for the longest.","coding-at-home.two-snakes.material":"CodyRoby cards, a 5 × 5 chequered board, two pawns, and pieces of paper to be used to mark the boxes already visited.","coding-at-home.two-snakes.questions.content.1":"Q1. In the initial setup shown in the video, if the two players don't draw yellow cards to turn left, which cards should they hope to draw?","coding-at-home.round-trip.title":"Round trip","coding-at-home.round-trip.text":"The teams take turns. The first plots the outward journey while the second must bring Roby back to the starting point. It seems easy but it is not, especially if you only plan the moves in your mind without actually moving Roby...","coding-at-home.round-trip.material":"CodyRoby cards, a 5 × 5 chequered board, two pawns, and pieces of paper to be used to mark the boxes already visited.","coding-at-home.round-trip.questions.content.1":"Q1. Is it possible for the program that brings Roby back to the starting point to be shorter (i.e. composed of fewer instructions) than the outward one?","coding-at-home.meeting-point.title":"Meeting point","coding-at-home.meeting-point.text":"This time we plan our moves before we start. The two teams put cards on the table to create the sequence of instructions that will move their respective robots, but nothing moves until one of the players says “Start!”. At that point the programming ends and the action begins. The player would said “Start!” wins only if the two robots, each executing the instructions of their team, end up on the same square.","coding-at-home.meeting-point.material":"CodyRoby cards, a 5 × 5 chequered board, two pawns.","coding-at-home.meeting-point.questions.content.1":"Q1. If you think it's possible for the two robots to never meet, invent game rules that cover all possible situations.","coding-at-home.follow-the-music.title":"Follow the music","coding-at-home.follow-the-music.text":"When sequences of programming instructions repeat themselves periodically, it is as if they have a rhythm. If we associate a sound with each instruction, we can guide Roby with music. This is precisely what we will do this time. I will create a program for you using different sounds to represent different instructions, and you will move Roby around the board by following these sound-based instructions.","coding-at-home.follow-the-music.material":"in addition to the CodyRoby cards, the chequered board and the pawn, we need to make three different sounds. I used three glasses filled with different amounts of water, what will you use?","coding-at-home.follow-the-music.questions.content.1":"Q1. Try to follow the video and be guided by the sounds that the glasses produce, without looking at the cards. Can you recognise and execute the instructions made by the sounds?","coding-at-home.follow-the-music.questions.content.2":"Q2. Choose three sounds to associate with the three basic instructions. Come up with a sequence of sounds that you could repeat endlessly without ever leading Roby off the board...","coding-at-home.colour-everything.title":"Colour everything","coding-at-home.colour-everything.text":"Can we guide the robots around the board in such a way that they make a drawing with their tracks? In this activity, we play with coding and pixel art, which is forming images by colouring in the boxes on a chequered board, like pixels on a screen.","coding-at-home.colour-everything.material":"CodyRoby cards, a chequered board and a pawn. To colour in the boxes use pieces of paper to place on the boxes, or colour the boxes in with markers.","coding-at-home.colour-everything.questions.content.1":"Is it possible to draw the two hearts like in the final part of the video by guiding the robot on all the necessary boxes without ever passing twice on a box?","coding-at-home.codyplotter-and-codyprinter.title":"CodyPlotter and CodyPrinter","coding-at-home.codyplotter-and-codyprinter.text":"What is the difference between a plotter and a printer? Find out by playing this unplugged coding activity.","coding-at-home.codyplotter-and-codyprinter.material":"in addition to the CodyRoby kit, I used a green marker and a new modelling clay robot, but this is optional.","coding-at-home.codyplotter-and-codyprinter.questions.content.1":"Can you explain the difference between a plotter and a printer?","coding-at-home.codyplotter-and-codyprinter.questions.content.2":"What design would RobyPrinter produce by moving along the lines on the board, if it executed the sequence of commands dictated at the end of the video?","coding-at-home.boring-pixels.title":"Boring Pixels!/Using numbers","coding-at-home.boring-pixels.text":"By giving Roby instructions to form a picture square by square, pixel by pixel, we discover that when many squares in a row have the same colour, we can use numbers to make it more interesting. Computers do the same...","coding-at-home.boring-pixels.material":"squared notebook, or 5 × 5 chequered board drawn on a piece of paper, felt-tip pen. To represent the code of the drawing you can use a pen and paper.","coding-at-home.boring-pixels.questions.content.1":"Try to make a chequered design and represent it with RLE encoding. The size of the design is equal to the number of squares, but what is the size of its RLE representation?","coding-at-home.turning-code-into-pictures.title":"Turning code into pictures","coding-at-home.turning-code-into-pictures.text.1":"We have now seen that we can create a code that allows us to draw a picture. I have thought of a drawing and used code to turn it into letters and numbers, which I have given you. Take note of the letters and numbers and use the code to reconstruct the drawing.","coding-at-home.turning-code-into-pictures.text.2":"Here is the image that I had thought of, make it appear on your notebook and on the notebooks of all those who know the code!","coding-at-home.turning-code-into-pictures.material":"paper (preferably squared) and a pen.","coding-at-home.turning-code-into-pictures.questions.content.1":"Try to decode and draw the images I mention at the end of the video.","coding-at-home.texts.1":`Coding@Home is a collection of short videos, do-it-yourself materials, puzzles, games, and + coding challenges for everyday use in the family as well as at school. You do not need any + previous knowledge or electronic devices to do the activities. The activities will stimulate + computational thinking and cultivate the skills of pupils, parents and teachers at home or in + school.`,"coding-at-home.texts.2":`EU Code Week’s Coding@Home series builds on the “Coding in + famiglia” initiative of the University of Urbino and the CodeMOOCnet + Association in cooperation with Rai Cultura. + Alessandro Bogliolo is the Professor of Information Processing Systems at the University of + Urbino, Italian EU Code Week ambassador and coordinator of all + ambassadors as well as member of + the Governing Board of the Digital Skills and Jobs Coalition.`,"coding-at-home.texts.3":`If you are interested in more unplugged activities, or activities in different programming + languages, robotics, micro:bit etc., check out the EU Code + Weeks “Learning Bits” with video + tutorials and lesson plans for primary, lower secondary and upper secondary schools. Also have a look + at the EU Code Week Learn&Teach resources, + where you can find free, high-quality resources from around the world for teachers and students.`,"coding-at-home.coding-at-home-text":`A collection of short videos, do-it-yourself materials, puzzles, games, and coding challenges for + everyday use in the family as well as at school.`,"coding-at-home.coding-at-home-sub-text1":`EU Code Week’s Coding@Home series builds on the “Coding in famiglia” initiative of the University of Urbino and the CodeMOOCnet Association in cooperation with Rai Cultura. The author of Coding@Home video is Alessandro Bogliolo, a Professor of Information Processing Systems at the University of Urbino, an Italian EU Code Week ambassador and the coordinator of all ambassadors as well as a member of the Governing Board of the Digital Skills and Jobs Coalition.`,"coding-at-home.coding-at-home-sub-text2":"You do not need any previous knowledge or electronic devices to do the activities. The activities will stimulate computational thinking and cultivate the skills of pupils, parents and teachers at home or at school.","community.titles.0":"Community","community.titles.1":"Ambassadors","community.titles.2":"Leading teachers","community.titles.3":"Edu coordinators","community.titles.4":"Volunteer for EU Code Week","community.intro.0":"EU Code Week thrives thanks to a vast, international community of volunteers. In this page you can meet the members that are active in your country","community.intro.1":"EU Code Week’s backbone is the Ambassadors, the Leading teachers and representatives of ministries of education in the EU and Western Balkans countries – the Edu coordinators.","community.intro.2":"Find out more about your local community by selecting your country:","community.ambassadors":"EU Code Week Ambassadors are the main point of contact for Code Week in each country and help spread the vision of Code Week locally. The Ambassadors connect people, companies and communities interested in supporting EU Code Week. They encourage organisers to register coding activities on the Code Week map, and promote the overall participation in EU Code Week. Ambassadors also review and approve activities in their country. Ambassadors also work with their peers in other countries and meet regularly to discuss how to further develop the initiative.","community.leading-teachers":"Leading teachers is an active community of more than 450 educators from across Europe. They help connect schools, teachers and students interested in participating to Code Week and encourage them to organise activities and register them on the Code Week map. The Leading teachers hold professional development webinars in their language and are a reference point for other teachers in the country but also in Europe. They also promote the initiative locally.","community.cta":"If you are a teacher, you can find Leading teachers near you to connect with on the map.","community.leading-teachers_be":"Leading teachers is an active community of more than 450 educators from across Europe. They help connect schools, teachers and students interested in participating to Code Week and encourage them to organise activities and register them on the Code Week map. The Leading teachers hold professional development webinars in their language and are a reference point for other teachers in the country but also in Europe. They also promote the initiative locally.","community.edu":"EU Code Week Edu coordinators are correspondents in Ministries of Education or other educational authorities and organisations participating in EU Code Week. Edu coordinators strengthen the foundations of the initiative by supporting teachers and schools nation-wide. This includes communication with schools who already participate in EU Code Week to learn about their best practices and share experience. Edu coordinators also support schools that want to participate in the initiative, by providing available resources, learning material and opportunities within the community.","community.volunteer.0":"You do not need to take on an official role in the EU Code Week community to be part of the movement. Everyone can organise activities to teach and inspire people to code, do robotics, tinker with hardware, 3D-print etc. and pin their activity ","community.volunteer.1":"on the map","community.volunteer.2":"However, if you want to volunteer your time to promote coding and believe in the","community.volunteer.3":"vision","community.volunteer.4":"and","community.volunteer.5":"values","community.volunteer.6":"of EU Code Week, you could potentially become a leading teacher or an ambassador.","community.volunteer.7":"If you are an educator passionate about teaching and learning how to code as much as we are, you can find out more about the role and benefits of Leading teachers","community.volunteer.8":"here","community.volunteer.9":"Then you can apply to become a Leading Teacher by filling this","community.volunteer.10":"online application form.","community.volunteer.11":"Please note that the number of Leading Teachers per country is fixed which means that applications are open only for some specific countries at a time.","community.volunteer.12":"If you want to promote coding in your country, check out the","community.volunteer.13":"responsibilities of Ambassadors","community.volunteer.14":"and take a quick look at the list of EU Code Week Ambassadors.","community.volunteer.15":"If there are Ambassadors in your country, please get in touch directly with them and see how you can best support the initiative. If there is no one in your country, you can reach out at info@codeweek.eu.","community.hub_GR":"CityLab IKE Greece","community.hub_level_GR":"National Hub","community.hub_desc_GR":"CityLab IKE is an innovative organization based in Greece dedicated to promoting STEM education and fostering a passion for robotics among students. The organization focuses on developing creative problem-solving skills and critical thinking through educational robotics, enabling participants to design, build, and program their own robotic systems. CityLab IKE collaborates with schools, educational institutions, and community organizations to deliver workshops, camps, and training programs that inspire the next generation of innovators and technologists.STEM subjects include Engineering, Robotics, Computer Science, Mechatronics, Industrial Design, Astrophysics, Bioengineering and Financial Engineering workshops.","community.hub_CY":"CY.R.I.C Cyprus Research and Innovation Center Ltd","community.hub_level_CY":"National Hub","community.hub_desc_CY":"Cyprus Research & Innovation Center Ltd (CY.R.I.C) is a pioneering center dedicated to advancing research and innovation in Cyprus. Its mission involves promoting technological advancements, facilitating partnerships between academia and industry, and offering support to startups and entrepreneurs. CY.R.I.C provides a range of resources, including mentorship programs and funding opportunities, to help local innovators bring their ideas to fruition. By fostering a vibrant ecosystem of creativity and collaboration, CY.R.I.C aims to position Cyprus as a hub for innovation and research excellence in the region.","community.hub_MT":"eSkills Malta Foundation","community.hub_level_MT":"National Hub","community.hub_desc_MT":"eSkills Malta Foundation falls under the Ministry for Economy, Enterprise and Strategic Projects. The Foundation is a National Coalition made up of various representatives from Government, industry and education, who can contribute to the increase in digital skills and the development of the IT profession. It collaborates with educational institutions and industry leaders to create programs that address the demands of a rapidly changing digital economy. The foundation also organizes workshops, conferences, and campaigns to raise awareness of the importance of digital skills for personal and professional development.","community.hub_IT":"Fondazione LINKS - Leading Innovation and Knowledge for Society","community.hub_level_IT":"National Hub","community.hub_desc_IT":"Fondazione LINKS is a non-profit private Foundation dedicated to fostering innovation and facilitating knowledge transfer to enhance societal growth, particularly in Italy. The foundation works to bridge the gap between academia, industry, and government by promoting collaborative research and development projects. Through its initiatives, Fondazione LINKS aims to address societal challenges such as climate change, health, and digital transformation. The foundation also organizes events and forums to promote dialogue and exchange ideas among stakeholders in various sectors, ensuring that innovation serves the broader community.","community.hub_BG":"Dzhuniar Achiyvmant Balgariya","community.hub_level_BG":"National Hub","community.hub_desc_BG":"JA Bulgaria focuses on empowering the youth of Bulgaria through various educational initiatives aimed at enhancing entrepreneurship and skill development. The organization provides programs that foster creativity, critical thinking, and leadership skills among young people. It collaborates with schools, universities, and businesses to create opportunities for vocational training and internships, thereby equipping youth with the tools they need to succeed in the modern workforce. JA Bulgaria also emphasizes community engagement and social responsibility among its participants.","community.hub_TR":"Genc Basari Egitim Vakfi Türkiye","community.hub_level_TR":"National Hub","community.hub_desc_TR":"Genc Basari Egitim Vakfi is a foundation in Turkey that is deeply committed to supporting innovative educational initiatives that foster entrepreneurship and personal development among the youth. The organization implements various programs designed to develop critical thinking, creativity, and problem-solving skills, essential for the 21st-century economy. By collaborating with educational institutions and industry partners, Genc Basari also provides mentorship opportunities and resources that help young individuals realize their potential and succeed in their professional lives.","community.hub_UA":"NGO Junior Achievement Ukraine","community.hub_level_UA":"National Hub","community.hub_desc_UA":"Junior Achievement Ukraine is a non-profit organization focused on empowering the youth of Ukraine by providing programs that develop entrepreneurial skills, economic understanding, and leadership abilities. Their hands-on approach includes interactive workshops and real-life projects that engage students in learning about business and economics. Through partnerships with businesses, educators, and community leaders, Junior Achievement Ukraine aims to inspire young people to pursue their aspirations and contribute to their communities while building a skilled workforce for the future.","community.hub_PL":"Fundacja Koalicji na rzecz Polskich Innowacji","community.hub_level_PL":"National Hub","community.hub_desc_PL":"This foundation focuses on promoting innovation and collaboration within Poland to enhance economic growth and competitiveness on both national and international levels. By creating networks between researchers, entrepreneurs, and government entities, the foundation seeks to facilitate the exchange of ideas and resources that drive innovation. Fundacja Koalicji also organizes events, workshops, and training sessions aimed at showcasing successful innovative practices, building awareness of the importance of research and development, and encouraging investment in new technologies.","community.hub_IE":"Microsoft Ireland Research Ltd","community.hub_level_IE":"National Hub","community.hub_desc_IE":"This foundation focuses on promoting innovation and collaboration within Poland to enhance economic growth and competitiveness on both national and international levels. By creating networks between researchers, entrepreneurs, and government entities, the foundation seeks to facilitate the exchange of ideas and resources that drive innovation. Fundacja Koalicji also organizes events, workshops, and training sessions aimed at showcasing successful innovative practices, building awareness of the importance of research and development, and encouraging investment in new technologies.","community.hub_FR":"Simplon.Co, France","community.hub_level_FR":"National Hub","community.hub_desc_FR":"Simplon.co is a forward-thinking organization focused on providing digital skills training, particularly in coding and technology, to empower individuals and enhance their employability in a growing digital economy. The organization offers various training programs, workshops, and boot camps aimed at individuals from diverse backgrounds, including underrepresented groups in tech. Simplon.co emphasizes hands-on learning and real-world projects, ensuring that participants gain practical experience that prepares them for careers in technology. Additionally, the organization collaborates with companies to facilitate internships and job placements for graduates of its programs.","community.hub_LU":"WIDE ANDCO, Luxembourg","community.hub_level_LU":"National Hub","community.hub_desc_LU":"WIDE ANDCO is a prominent organization based in Luxembourg that is dedicated to promoting gender equality and empowering women in various sectors, particularly in technology and business. The organization works to close the gender gap by implementing initiatives that raise awareness about the importance of diversity and inclusion in the workplace. WIDE ANDCO provides training, mentorship programs, and networking opportunities aimed at enhancing women's skills and confidence in leadership roles. ","community.hub_NL":"Digitale Wolven, Belgium; Netherlands","community.hub_level_NL":"National Hub","community.hub_desc_NL":"Digitale Wolven is a non-profit organization focused on empowering individuals and businesses to thrive in the digital landscape. Through innovative solutions and educational initiatives, it aims to bridge the digital skills gap and enhance the digital capabilities of its community. The organization offers workshops, training programs, and resources that equip participants with the necessary skills to navigate the rapidly evolving digital world. Digitale Wolven also collaborates with various stakeholders to promote digital literacy and drive the adoption of technology in diverse sectors.","community.hub_BE":"Digitale Wolven, Belgium; Netherlands","community.hub_level_BE":"National Hub","community.hub_desc_BE":"Digitale Wolven is a non-profit organization focused on empowering individuals and businesses to thrive in the digital landscape. Through innovative solutions and educational initiatives, it aims to bridge the digital skills gap and enhance the digital capabilities of its community. The organization offers workshops, training programs, and resources that equip participants with the necessary skills to navigate the rapidly evolving digital world. Digitale Wolven also collaborates with various stakeholders to promote digital literacy and drive the adoption of technology in diverse sectors.","community.hub_SK":"Narodna Koalicia pre Digitalne Zrucnosti a Povolania Slovenskej Republiky, Slovakia; Czech Republic","community.hub_level_SK":"Regional Hub","community.hub_desc_SK":"The National Coalition for Digital Skills and Jobs of the Slovak Republic is a national initiative established at the initiative of the European Commission within the framework of the Digital skills and jobs coalition policy. Its mission is to improve digital skills in Slovakia. It currently brings together almost one hundred members and it is a key stakeholders in the field of education and ICT in Slovakia. ","community.hub_CZ":"Narodna Koalicia pre Digitalne Zrucnosti a Povolania Slovenskej Republiky, Slovakia; Czech Republic","community.hub_level_CZ":"Regional Hub","community.hub_desc_CZ":"The National Coalition for Digital Skills and Jobs of the Slovak Republic is a national initiative established at the initiative of the European Commission within the framework of the Digital skills and jobs coalition policy. Its mission is to improve digital skills in Slovakia. It currently brings together almost one hundred members and it is a key stakeholders in the field of education and ICT in Slovakia. ","community.hub_NO":"European Center for Women and Technology Forening","community.hub_level_NO":"Regional Hub","community.hub_desc_NO":"European Centre for Women and Technology (ECWT) is dedicated to promoting gender equality within the tech industry across Europe. This organization focuses on creating opportunities for women in technology through mentorship programs, networking events, and skill-building workshops. By advocating for policy changes and raising awareness about the underrepresentation of women in tech, the center aims to inspire and empower a new generation of female leaders. Additionally, it fosters collaboration between different sectors to drive innovation and inclusivity in technology. ","community.hub_IS":"European Center for Women and Technology Forening","community.hub_level_IS":"Regional Hub","community.hub_desc_IS":"European Centre for Women and Technology (ECWT) is dedicated to promoting gender equality within the tech industry across Europe. This organization focuses on creating opportunities for women in technology through mentorship programs, networking events, and skill-building workshops. By advocating for policy changes and raising awareness about the underrepresentation of women in tech, the center aims to inspire and empower a new generation of female leaders. Additionally, it fosters collaboration between different sectors to drive innovation and inclusivity in technology. ","community.hub_FI":"European Center for Women and Technology - ECWT
on sitoutunut turvaamaan sukupuolinäkökulmaa teknologiateollisuudessa kaikkialla Euroopassa.","community.hub_level_FI":"Alueellinen hub","community.hub_desc_FI":"ECWT keskittyy
(i) tukemaan lapsia ja erityisesti tyttöjä koodauksen, luovuuden ja uteliaisuuden yhdistämisessä heidän tulevaisuuden uransa muotoutumiseksi
(ii) luomaan inspiroivan yhteisön, verkostoitumistapahtumia ja mentorointiohjelmia
(iii) tarjoamaan sertifioituja koulutuksia uudelleenkoulutusta ja täydennyskoulutusta varten.

Tukemalla poliittisia muutoksia ja tarjoamalla innovatiivisia työkaluja, jotka on kehitetty yhteistyössä julkisensektorin, yritysten ja tutkimuksenjohtavien edustajien kanssa pohjoismaisten hyvien esimerkkien pohjalta, me voimaannutamme uuden sukupolven naisjohtajia.","community.hub_DK":"European Center for Women and Technology Forening","community.hub_level_DK":"Regional Hub","community.hub_desc_DK":"European Centre for Women and Technology (ECWT) is dedicated to promoting gender equality within the tech industry across Europe. This organization focuses on creating opportunities for women in technology through mentorship programs, networking events, and skill-building workshops. By advocating for policy changes and raising awareness about the underrepresentation of women in tech, the center aims to inspire and empower a new generation of female leaders. Additionally, it fosters collaboration between different sectors to drive innovation and inclusivity in technology. ","community.hub_SE":"European Center for Women and Technology Forening","community.hub_level_SE":"Regional Hub","community.hub_desc_SE":"European Centre for Women and Technology (ECWT) is dedicated to promoting gender equality within the tech industry across Europe. This organization focuses on creating opportunities for women in technology through mentorship programs, networking events, and skill-building workshops. By advocating for policy changes and raising awareness about the underrepresentation of women in tech, the center aims to inspire and empower a new generation of female leaders. Additionally, it fosters collaboration between different sectors to drive innovation and inclusivity in technology. ","community.hub_PT":"Fundacion Junior Achievement Espana","community.hub_level_PT":"Regional Hub","community.hub_desc_PT":"Junior Achievement Spain is an influential organization dedicated to equipping young people with the skills and knowledge necessary for success in their future careers. Its educational programs focus on financial literacy, entrepreneurship, and work readiness, providing students with real-world experiences and practical learning opportunities. Through partnerships with businesses and educators, Junior Achievement Spain fosters a culture of innovation and self-discovery, encouraging students to take initiative in their education and career paths. The organization believes in the potential of every young person to contribute positively to society.","community.hub_ES":"Fundacion Junior Achievement Espana","community.hub_level_ES":"Regional Hub","community.hub_desc_ES":"Junior Achievement Spain is an influential organization dedicated to equipping young people with the skills and knowledge necessary for success in their future careers. Its educational programs focus on financial literacy, entrepreneurship, and work readiness, providing students with real-world experiences and practical learning opportunities. Through partnerships with businesses and educators, Junior Achievement Spain fosters a culture of innovation and self-discovery, encouraging students to take initiative in their education and career paths. The organization believes in the potential of every young person to contribute positively to society.","community.hub_LT":"Latvian Information and Communication Technology Association","community.hub_level_LT":"Regional Hub","community.hub_desc_LT":"The Latvian Information and Communication Technology Association plays a crucial role in promoting the ICT sector within Latvia. The organization advocates for favourable policies that support innovation, growth, and competitiveness while providing members with resources, networking opportunities, and knowledge-sharing platforms. By collaborating with government agencies and educational institutions, the association aims to enhance digital literacy among citizens and stimulate interest in careers within the ICT field. It also organizes conferences, workshops, and hackathons to engage and inspire the next generation of tech leaders.","community.hub_LV":"Latvian Information and Communication Technology Association","community.hub_level_LV":"Regional Hub","community.hub_desc_LV":"The Latvian Information and Communication Technology Association plays a crucial role in promoting the ICT sector within Latvia. The organization advocates for favourable policies that support innovation, growth, and competitiveness while providing members with resources, networking opportunities, and knowledge-sharing platforms. By collaborating with government agencies and educational institutions, the association aims to enhance digital literacy among citizens and stimulate interest in careers within the ICT field. It also organizes conferences, workshops, and hackathons to engage and inspire the next generation of tech leaders.","community.hub_HR":"Profil Klett D.o.o.","community.hub_level_HR":"Regional Hub","community.hub_desc_HR":"Profil Klett D.o.o. is a leading educational publisher, dedicated to providing quality resources that support teaching and learning across various educational levels. The organization offers a wide range of textbooks, digital materials, and educational tools designed to enhance the learning experience and facilitate student engagement. Profil Klett collaborates with educators, researchers, and institutions to ensure that its resources meet the evolving needs of the educational sector. The commitment to fostering a love of learning drives their mission to inspire students and educators alike.","community.hub_SI":"Profil Klett D.o.o.","community.hub_level_SI":"Regional Hub","community.hub_desc_SI":"Profil Klett D.o.o. is a leading educational publisher, dedicated to providing quality resources that support teaching and learning across various educational levels. The organization offers a wide range of textbooks, digital materials, and educational tools designed to enhance the learning experience and facilitate student engagement. Profil Klett collaborates with educators, researchers, and institutions to ensure that its resources meet the evolving needs of the educational sector. The commitment to fostering a love of learning drives their mission to inspire students and educators alike.","community.hub_DE":"Science on Stage Deutschland e.V.","community.hub_level_DE":"Regional Hub","community.hub_desc_DE":"Science on Stage Deutschland e.V. is an organization that promotes high-quality science education and collaboration among educators throughout Europe. By organizing festivals, workshops, and training courses, the organization aims to enhance the teaching of science, technology, and engineering in schools. Science on Stage provides a platform for educators to share best practices, innovative teaching methods, and hands-on experiments that can spark interest in STEM subjects among students. The organization's mission is to create a network of passionate educators who can inspire the next generation of scientists and engineers across Europe.","community.hub_AT":"Science on Stage Deutschland e.V.","community.hub_level_AT":"Regional Hub","community.hub_desc_AT":"Science on Stage Deutschland e.V. is an organization that promotes high-quality science education and collaboration among educators throughout Europe. By organizing festivals, workshops, and training courses, the organization aims to enhance the teaching of science, technology, and engineering in schools. Science on Stage provides a platform for educators to share best practices, innovative teaching methods, and hands-on experiments that can spark interest in STEM subjects among students. The organization's mission is to create a network of passionate educators who can inspire the next generation of scientists and engineers across Europe.","community.hub_CH":"Science on Stage Deutschland e.V.","community.hub_level_CH":"Regional Hub","community.hub_desc_CH":"Science on Stage Deutschland e.V. is an organization that promotes high-quality science education and collaboration among educators throughout Europe. By organizing festivals, workshops, and training courses, the organization aims to enhance the teaching of science, technology, and engineering in schools. Science on Stage provides a platform for educators to share best practices, innovative teaching methods, and hands-on experiments that can spark interest in STEM subjects among students. The organization's mission is to create a network of passionate educators who can inspire the next generation of scientists and engineers across Europe.","community.hub_RO":"University Politehnica of Bucharest.","community.hub_level_RO":"Regional Hub","community.hub_desc_RO":"As one of Romania's leading technical universities, the University Politehnica of Bucharest is dedicated to excellence in education and research in engineering and technology. The university offers a range of programs across various disciplines, equipping students with the knowledge and skills needed to excel in a competitive workforce. With a strong emphasis on research and innovation, the university collaborates with industry partners to drive technological advancements and solutions for local and global challenges. It also promotes entrepreneurship and continuous learning, preparing students to become leaders in their fields.","community.hub_MD":"University Politehnica of Bucharest.","community.hub_level_MD":"Regional Hub","community.hub_desc_MD":"As one of Romania's leading technical universities, the University Politehnica of Bucharest is dedicated to excellence in education and research in engineering and technology. The university offers a range of programs across various disciplines, equipping students with the knowledge and skills needed to excel in a competitive workforce. With a strong emphasis on research and innovation, the university collaborates with industry partners to drive technological advancements and solutions for local and global challenges. It also promotes entrepreneurship and continuous learning, preparing students to become leaders in their fields.","community.codeweek_de":` +

+ In Germany, Code Week is supported by a team of volunteer ambassadors, numerous "Regio-Hubs," and many other stakeholders. The German-wide "Regio-Hubs" network is coordinated by the Körber-Stiftung, a German foundation. Contact: info@codeweek.de +

+

+ The international Code Week network in Germany, Austria, Liechtenstein, and Switzerland is coordinated by Science on Stage Germany. Contact: coding@science-on-stage.eu +

`,"cookie.uses_cookies":"This site uses cookies to offer you a better browsing experience","cookie.accept":"I accept cookies","cookie.refuse":"I refuse cookies","cookie.cookies":"Cookies","cookie.find_out_more_on":"Find out more on ","cookie.how_we_use":"how we use cookies and how you can change your settings","cookie_policy.title":"Cookie Policy","cookie_policy.what.title":"What are cookies?","cookie_policy.what.text":"

A cookie is a small text file that a website stores on your computer or mobile device when you visit the site.

","cookie_policy.what.first_party":`First party cookies are cookies set by the website you’re visiting. Only that + website can read + them. In addition, a website might potentially use external services, which also set their own + cookies, known as third-party cookies.`,"cookie_policy.what.persistent_cookies":`Persistent cookies are cookies saved on your computer and that are not deleted automatically + when you quit your browser, unlike a session cookie, which is deleted when you quit your + browser.`,"cookie_policy.what.items":`

+ First time you visit the Codeweek website, you will be prompted to accept or refuse + cookies.

+

The purpose is to enable the site to remember your preferences (such as user name, language, etc.) for a + certain period of time.

+

That way, you don’t have to re-enter them when browsing around the site during the same visit.

+

Cookies can also be used to establish anonymised statistics about the browsing experience on our + sites.

`,"cookie_policy.how.title":"How do we use cookies?","cookie_policy.how.text1":`

Codeweek mostly use “first-party cookies”. These are cookies set and controlled by + us, not by any external organisation.

`,"cookie_policy.how.text2":"

However, to view some of our pages, you will have to accept cookies from external organisations.

","cookie_policy.how.3types.1":"store visitor preferences","cookie_policy.how.3types.2":"make our websites operational","cookie_policy.how.3types.3":"gather analytics data (about user behaviour)","cookie_policy.how.3types.title":"The 3 types of first-party cookie we use are to:","cookie_policy.how.table.name":"Name","cookie_policy.how.table.service":"Service","cookie_policy.how.table.purpose":"Purpose","cookie_policy.how.table.type_duration":"Cookie type and duration","cookie_policy.how.visitor_preferences.title":"Visitor preferences","cookie_policy.how.visitor_preferences.text":"

These are set by us and only we can read them. They remember:

","cookie_policy.how.visitor_preferences.item":"if you have agreed to (or refused) this site’s cookie policy","cookie_policy.how.visitor_preferences.table.1.service":"Cookie consent kit","cookie_policy.how.visitor_preferences.table.1.purpose":"Stores your cookie preferences (so you won’t be asked again)","cookie_policy.how.visitor_preferences.table.1.type_duration":"First-party session cookie deleted after you quit your browser","cookie_policy.how.operational_cookies.title":"Operational cookies","cookie_policy.how.operational_cookies.text":`

There are some cookies that we have to include in order for certain web pages to function. For this + reason,they do not require your consent. In particular:

`,"cookie_policy.how.operational_cookies.item":"technical cookies required by certain IT systems","cookie_policy.how.technical_cookies.title":"Technical cookies","cookie_policy.how.technical_cookies.table.1.purpose":"Maintain a secure session for you, during your visit.","cookie_policy.how.technical_cookies.table.1.type_duration":"First-party session cookie, deleted after you quit your browser","cookie_policy.how.technical_cookies.table.2.purpose":"Maintain a secure session for you for a longer time preventing to lose the session on browser close.","cookie_policy.how.technical_cookies.table.2.type_duration":"First-party persistent cookie, 60 months","cookie_policy.how.technical_cookies.table.3.purpose":"Stores user's preferred language","cookie_policy.how.technical_cookies.table.3.type_duration":"First-party session cookie, deleted after you quit your browser","cookie_policy.how.analytics_cookies.title":"Analytics cookies","cookie_policy.how.analytics_cookies.items":`

+ We use these purely for internal research on how we can improve the service we provide for all our + users. +

+

+ The cookies simply assess how you interact with our website – as an anonymous user (they data gathered + does + not identify you personally). +

+

+ Also, this data is not shared with any third parties or used for any other purpose. The anonymised + statistics could be shared with contractors working on communication projects under contractual + agreement + with the Commission. +

+

+ However, you are free to refuse these types of cookies – either via the cookie banner you’ll see on the + first page you visit or by visiting this dedicated page.. +

`,"cookie_policy.how.analytics_cookies.table.1.service":"Web analytics service, based on Matomo open source software","cookie_policy.how.analytics_cookies.table.1.purpose":"Recognises website visitors (anonymously – no personal information is collected on the user).","cookie_policy.how.analytics_cookies.table.1.type_duration":"First-party persistent cookie, 20 days","cookie_policy.how.analytics_cookies.table.2.service":"Web analytics service, based on Matomo open source software","cookie_policy.how.analytics_cookies.table.2.purpose":"Identifies the pages viewed by the same user during the same visit. (anonymously – no personal information is collected on the user).","cookie_policy.how.analytics_cookies.table.2.type_duration":"First-party persistent cookie, 30 minutes","cookie_policy.third-party.title":"Third-party cookies","cookie_policy.third-party.items.1":`

Some of our pages display content from external providers, e.g. YouTube, Facebook and Twitter.

+

To view this third-party content, you first have to accept their specific terms and conditions. This + includes their cookie policies, which we have no control over.

+

But if you do not view this content, no third-party cookies are installed on your device.

+ Third-party providers on Codeweek`,"cookie_policy.third-party.items.2":`These third-party services are outside of the control of the Codeweek Website. Providers may, at any time, + change their terms of service, purpose and use of cookies, etc.`,"cookie_policy.how-manage.title":"How can you manage cookies?","cookie_policy.how-manage.items":`

You can manage/delete cookies as you wish - for details, see aboutcookies.org.

+

Removing cookies from your device

+

You can delete all cookies that are already on your device by clearing the browsing history of your + browser. This will remove all cookies from all websites you have visited.

+

Be aware though that you may also lose some saved information (e.g. saved login details, site + preferences).

+ Managing site-specific cookies +

For more detailed control over site-specific cookies, check the privacy and cookie settings in your + preferred browser

+ Blocking cookies +

You can set most modern browsers to prevent any cookies being placed on your device, but you may then + have to manually adjust some preferences every time you visit a site/page. And some services and + functionalities may not work properly at all (e.g. profile logging-in).

+ Managing our analytics cookies +

You can manage your preferences concerning cookies from our Analytics on the dedicated page.

`,"copyright.title":"Copyright notice","copyright.training.0":"The EU Code Week website","copyright.training.1":"is a service supported by the European Commission","copyright.licence.0":"Except where stated otherwise, content made available on this site is licensed under a","copyright.licence.1":"https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en","copyright.licence.2":"Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) license","copyright.creative-commons":"Licensing under Creative Commons licenses does not of itself affect the ownership of the copyright","copyright.third-party":"Content from third party websites is subject to their own copyright restrictions; please refer to the site of origin for more information","countries.all":"All countries","countries.Cloud":"Cloud","countries.Andorra":"Andorra","countries.United Arab Emirates":"United Arab Emirates","countries.Afghanistan":"Afghanistan","countries.Antigua and Barbuda":"Antigua and Barbuda","countries.Anguilla":"Anguilla","countries.Albania":"Albania","countries.Armenia":"Armenia","countries.Netherlands Antilles":"Netherlands Antilles","countries.Angola":"Angola","countries.Antarctica":"Antarctica","countries.Argentina":"Argentina","countries.American Samoa":"American Samoa","countries.Austria":"Austria","countries.Australia":"Australia","countries.Aruba":"Aruba","countries.Aland Islands":"Aland Islands","countries.Azerbaijan":"Azerbaijan","countries.Bosnia and Herzegovina":"Bosnia and Herzegovina","countries.Barbados":"Barbados","countries.Bangladesh":"Bangladesh","countries.Belgium":"Belgium","countries.Burkina Faso":"Burkina Faso","countries.Bulgaria":"Bulgaria","countries.Bahrain":"Bahrain","countries.Burundi":"Burundi","countries.Benin":"Benin","countries.Saint Barthelemy":"Saint Barthelemy","countries.Bermuda":"Bermuda","countries.Brunei":"Brunei","countries.Bolivia":"Bolivia","countries.Bonaire, Saint Eustatius and Saba ":"Bonaire, Saint Eustatius and Saba ","countries.Brazil":"Brazil","countries.Bahamas":"Bahamas","countries.Bhutan":"Bhutan","countries.Bouvet Island":"Bouvet Island","countries.Botswana":"Botswana","countries.Belarus":"Belarus","countries.Belize":"Belize","countries.Canada":"Canada","countries.Cocos Islands":"Cocos Islands","countries.Democratic Republic of the Congo":"Democratic Republic of the Congo","countries.Central African Republic":"Central African Republic","countries.Republic of the Congo":"Republic of the Congo","countries.Switzerland":"Switzerland","countries.Ivory Coast":"Ivory Coast","countries.Cook Islands":"Cook Islands","countries.Chile":"Chile","countries.Cameroon":"Cameroon","countries.China":"China","countries.Colombia":"Colombia","countries.Costa Rica":"Costa Rica","countries.Serbia and Montenegro":"Serbia and Montenegro","countries.Cuba":"Cuba","countries.Cape Verde":"Cape Verde","countries.Curacao":"Curacao","countries.Christmas Island":"Christmas Island","countries.Cyprus":"Cyprus","countries.Czech Republic":"Czech Republic","countries.Germany":"Germany","countries.Djibouti":"Djibouti","countries.Denmark":"Denmark","countries.Dominica":"Dominica","countries.Dominican Republic":"Dominican Republic","countries.Algeria":"Algeria","countries.Ecuador":"Ecuador","countries.Estonia":"Estonia","countries.Egypt":"Egypt","countries.Western Sahara":"Western Sahara","countries.Eritrea":"Eritrea","countries.Spain":"Spain","countries.Ethiopia":"Ethiopia","countries.Finland":"Finland","countries.Fiji":"Fiji","countries.Falkland Islands":"Falkland Islands","countries.Micronesia":"Micronesia","countries.Faroe Islands":"Faroe Islands","countries.France":"France","countries.Gabon":"Gabon","countries.United Kingdom":"United Kingdom","countries.Grenada":"Grenada","countries.Georgia":"Georgia","countries.French Guiana":"French Guiana","countries.Guernsey":"Guernsey","countries.Ghana":"Ghana","countries.Gibraltar":"Gibraltar","countries.Greenland":"Greenland","countries.Gambia":"Gambia","countries.Guinea":"Guinea","countries.Guadeloupe":"Guadeloupe","countries.Equatorial Guinea":"Equatorial Guinea","countries.Greece":"Greece","countries.South Georgia and the South Sandwich Islands":"South Georgia and the South Sandwich Islands","countries.Guatemala":"Guatemala","countries.Guam":"Guam","countries.Guinea-Bissau":"Guinea-Bissau","countries.Guyana":"Guyana","countries.Hong Kong":"Hong Kong","countries.Heard Island and McDonald Islands":"Heard Island and McDonald Islands","countries.Honduras":"Honduras","countries.Croatia":"Croatia","countries.Haiti":"Haiti","countries.Hungary":"Hungary","countries.Indonesia":"Indonesia","countries.Ireland":"Ireland","countries.Israel":"Israel","countries.Isle of Man":"Isle of Man","countries.India":"India","countries.British Indian Ocean Territory":"British Indian Ocean Territory","countries.Iraq":"Iraq","countries.Iran":"Iran","countries.Iceland":"Iceland","countries.Italy":"Italy","countries.Jersey":"Jersey","countries.Jamaica":"Jamaica","countries.Jordan":"Jordan","countries.Japan":"Japan","countries.Kenya":"Kenya","countries.Kyrgyzstan":"Kyrgyzstan","countries.Cambodia":"Cambodia","countries.Kiribati":"Kiribati","countries.Comoros":"Comoros","countries.Saint Kitts and Nevis":"Saint Kitts and Nevis","countries.North Korea":"North Korea","countries.South Korea":"South Korea","countries.Kuwait":"Kuwait","countries.Cayman Islands":"Cayman Islands","countries.Kazakhstan":"Kazakhstan","countries.Laos":"Laos","countries.Lebanon":"Lebanon","countries.Saint Lucia":"Saint Lucia","countries.Liechtenstein":"Liechtenstein","countries.Sri Lanka":"Sri Lanka","countries.Liberia":"Liberia","countries.Lesotho":"Lesotho","countries.Lithuania":"Lithuania","countries.Luxembourg":"Luxembourg","countries.Latvia":"Latvia","countries.Libya":"Libya","countries.Morocco":"Morocco","countries.Monaco":"Monaco","countries.Moldova":"Moldova","countries.Montenegro":"Montenegro","countries.Saint Martin":"Saint Martin","countries.Madagascar":"Madagascar","countries.Marshall Islands":"Marshall Islands","countries.Macedonia":"North Macedonia","countries.Mali":"Mali","countries.Myanmar":"Myanmar","countries.Mongolia":"Mongolia","countries.Macao":"Macao","countries.Northern Mariana Islands":"Northern Mariana Islands","countries.Martinique":"Martinique","countries.Mauritania":"Mauritania","countries.Montserrat":"Montserrat","countries.Malta":"Malta","countries.Mauritius":"Mauritius","countries.Maldives":"Maldives","countries.Malawi":"Malawi","countries.Mexico":"Mexico","countries.Malaysia":"Malaysia","countries.Mozambique":"Mozambique","countries.Namibia":"Namibia","countries.New Caledonia":"New Caledonia","countries.Niger":"Niger","countries.Norfolk Island":"Norfolk Island","countries.Nigeria":"Nigeria","countries.Nicaragua":"Nicaragua","countries.Netherlands":"Netherlands","countries.Norway":"Norway","countries.Nepal":"Nepal","countries.Nauru":"Nauru","countries.Niue":"Niue","countries.New Zealand":"New Zealand","countries.Oman":"Oman","countries.Panama":"Panama","countries.Peru":"Peru","countries.French Polynesia":"French Polynesia","countries.Papua New Guinea":"Papua New Guinea","countries.Philippines":"Philippines","countries.Pakistan":"Pakistan","countries.Poland":"Poland","countries.Saint Pierre and Miquelon":"Saint Pierre and Miquelon","countries.Pitcairn":"Pitcairn","countries.Puerto Rico":"Puerto Rico","countries.Palestine":"Palestine","countries.Portugal":"Portugal","countries.Palau":"Palau","countries.Paraguay":"Paraguay","countries.Qatar":"Qatar","countries.Reunion":"Reunion","countries.Romania":"Romania","countries.Serbia":"Serbia","countries.Russia":"Russia","countries.Rwanda":"Rwanda","countries.Saudi Arabia":"Saudi Arabia","countries.Solomon Islands":"Solomon Islands","countries.Seychelles":"Seychelles","countries.Sudan":"Sudan","countries.Sweden":"Sweden","countries.Singapore":"Singapore","countries.Saint Helena":"Saint Helena","countries.Slovenia":"Slovenia","countries.Svalbard and Jan Mayen":"Svalbard and Jan Mayen","countries.Slovakia":"Slovakia","countries.Sierra Leone":"Sierra Leone","countries.San Marino":"San Marino","countries.Senegal":"Senegal","countries.Somalia":"Somalia","countries.Suriname":"Suriname","countries.South Sudan":"South Sudan","countries.Sao Tome and Principe":"Sao Tome and Principe","countries.El Salvador":"El Salvador","countries.Sint Maarten":"Sint Maarten","countries.Syria":"Syria","countries.Swaziland":"Swaziland","countries.Turks and Caicos Islands":"Turks and Caicos Islands","countries.Chad":"Chad","countries.French Southern Territories":"French Southern Territories","countries.Togo":"Togo","countries.Thailand":"Thailand","countries.Tajikistan":"Tajikistan","countries.Tokelau":"Tokelau","countries.East Timor":"East Timor","countries.Turkmenistan":"Turkmenistan","countries.Tunisia":"Tunisia","countries.Tonga":"Tonga","countries.Turkey":"Türkiye","countries.Trinidad and Tobago":"Trinidad and Tobago","countries.Tuvalu":"Tuvalu","countries.Taiwan":"Taiwan","countries.Tanzania":"Tanzania","countries.Ukraine":"Ukraine","countries.Uganda":"Uganda","countries.United States Minor Outlying Islands":"United States Minor Outlying Islands","countries.United States":"United States","countries.Uruguay":"Uruguay","countries.Uzbekistan":"Uzbekistan","countries.Vatican":"Vatican","countries.Saint Vincent and the Grenadines":"Saint Vincent and the Grenadines","countries.Venezuela":"Venezuela","countries.British Virgin Islands":"British Virgin Islands","countries.U.S. Virgin Islands":"U.S. Virgin Islands","countries.Vietnam":"Vietnam","countries.Vanuatu":"Vanuatu","countries.Wallis and Futuna":"Wallis and Futuna","countries.Samoa":"Samoa","countries.Kosovo":"Kosovo","countries.Yemen":"Yemen","countries.Mayotte":"Mayotte","countries.South Africa":"South Africa","countries.Zambia":"Zambia","countries.Zimbabwe":"Zimbabwe","cw2020.common.resources":"Resources you will need","cw2020.common.soundtrack":"The Code Week soundtrack","cw2020.common.moves":"The movements","cw2020.common.dance-example":"An example of the Code Week Dance","cw2020.common.organizer-guide":"organiser’s guide","cw2020.common.scratch-tutorial":"#EUCodeWeekDance Scratch Tutorial","cw2020.title.0":"EU Code Week","cw2020.title.1":"2020 Edition","cw2020.intro":"This year we are celebrating coding from 10 to 25 October 2020! Due to the current health situation, we are going to bring more Code Week activities online this year. We will be launching new fun and engaging activities that you can join remotely at home or in school","cw2020.online-activities.title":"Featured open online activities","cw2020.online-activities.subtitle.0":"To make it easier to take part in Code Week activities remotely we are launching a","cw2020.online-activities.subtitle.1":"calendar","cw2020.online-activities.subtitle.2":"of featured online activities","cw2020.online-activities.section1.title":"What is an online activity ?","cw2020.online-activities.section1.content":"Online activities can be any activity you would typically add or register on the Code Week website – the only difference being it will take place online. The idea is to make it easy for people to participate in coding sessions and workshops entirely online without risking their health","cw2020.online-activities.section2.title":"Featured open activities","cw2020.online-activities.section2.content":"If you want, you can make your online activities available to everyone. People from around the world will be able to take part open online activities, either in English or thelocal language. We will select the most exciting online activities which are open to everyone and feature them in an events calendar on our website","cw2020.online-activities.section3.title":"What this means for participants","cw2020.online-activities.section3.content.0":"Every day of Code Week, you will be able to browse the","cw2020.online-activities.section3.content.1":"calendar","cw2020.online-activities.section3.content.2":"and take part in the activities that interest you most. The topics of these featured events vary from workshops on robotics, e-learning courses,webinars to coding tutorials and much more. So, take your pick","cw2020.dance.title":"Code Week Dance","cw2020.dance.subtitle":"Who said programmers couldn't dance? To celebrate the 2020 edition of Code Week, we are launching a new activity - the #EUCodeWeekDance challenge","cw2020.dance.section1.title":"Who can join?","cw2020.dance.section1.content.0":"Everyone from schools, teachers, libraries to code clubs, businesses and public authorities are invited to celebrate EU Code Week 2020 by organising a #EUCodeWeekDance activity and adding it to the","cw2020.dance.section1.content.1":"Code Week map","cw2020.dance.section2.title":"How to participate?","cw2020.dance.section2.content":"Choose from five types of activities or come up with your own. Regardless of which activity you choose, don't forget to add it to our map","cw2020.dance.activity1.title":"Programme a friend or a parent - no computer needed","cw2020.dance.activity1.subtitle":"Coding lets you give commands to an electronic device. But technically, you don’t need a computer to be able to code. Instead, grab a partner – it can be your classmate, a friend, a parent or even a teacher, and give them instructions how to perform the #EUCodeWeekDance, which they need to follow precisely","cw2020.dance.activity1.resources.0":"A guide by Code.org to organise your unplugged Dance Party","cw2020.dance.activity1.resources.1":"A learning bit on how to program your human-robot","cw2020.dance.activity2.title":"Visual Programmming","cw2020.dance.activity2.subtitle":"Code your Code Week dance in Scratch. Use the Code Week characters or make your own in Scratch and programme them to do the #EUCodeWeekDance","cw2020.dance.activity2.resources.0":"An example of a Scratch #EUCodeWeekDance project","cw2020.dance.activity2.resources.1":"The Code Week characters","cw2020.dance.activity2.resources.2":"A guide from Code.org on how to animate a character","cw2020.dance.activity2.resources.3":"A guide by Code.org to organise your Dance Party","cw2020.dance.activity2.resources.4":"Share your project with us in this Scratch Studio.","cw2020.dance.activity3.title":"Text-based programming","cw2020.dance.activity3.subtitle":"Produce the #EUCodeWeekDance theme with Python or JavaScript, using code-based music creation platforms like EarSketch or Sonic Pi","cw2020.dance.activity3.resources.0":"A tutorial on how to produce music with EarSketch","cw2020.dance.activity3.resources.1":"A tutorial on how to create music with Sonic Pi","cw2020.dance.activity4.title":"Robotics","cw2020.dance.activity4.subtitle":"Program your robot to follow your instructions and perform the Code Week Dance","cw2020.dance.activity4.resources.0":"A tutorial on programming robots","cw2020.dance.activity5.title":"Live Dance Challenge","cw2020.dance.activity5.subtitle":"Record a video of yourself, your team or your robot performing the #EUCodeWeekDance, share it on Instagram and get a shot at going viral and winning some Code week goodies! Interested? Follow these steps:","cw2020.dance.activity5.resources.0":"Record the video using Instagram Stories","cw2020.dance.activity5.resources.1":"Follow","cw2020.dance.activity5.resources.2":"@CodeWeekEU on Instagram","cw2020.dance.activity5.resources.3":"Mention @CodeWeekEU in your story with the dance and make sure to use the hashtag #EUCodeWeekDance","cw2020.dance.outro.0":"Winners will be selected every day and announced on our Instagram channel via Stories, so don't forget to check your notifications regularly, you might just run into good luck today","cw2020.dance.outro.1":"The #EUCodeWeekDance is based on the","cw2020.dance.outro.2":"Ode to Code","cw2020.dance.outro.3":"composed by Brendan Paolini, and the dance developed by Bianca Maria Berardi in 2015, from an idea of Alessandro Bogliolo, Professor of Computer Systems at the University of Urbino","cw2020.treasure-hunt.title":"Code Week Treasure Hunt","cw2020.treasure-hunt.subtitle.0":"This is a game on Telegram that is simple enough for beginners, but also challenging to keep experienced participants on their toes","cw2020.treasure-hunt.subtitle.1":"The Code Week Treasure Hunt","cw2020.treasure-hunt.subtitle.2":"is a game best played on your PC with a mobile phone in hand. The game will ask you to solve coding challenges and guide you through the history of coding, computer science and technology in Europe","cw2020.treasure-hunt.section.title":"To start playing you need to","cw2020.treasure-hunt.section.content.0":"Download the Telegram app. It is available for","cw2020.treasure-hunt.section.content.1":"Desktop","cw2020.treasure-hunt.section.content.2":"You can play the game either on your PC or laptop, or on your smartphone. We recommend you play it on your computer so that you can get the instructions and solve the coding challenges on the Telegram app on your phone","cw2020.treasure-hunt.section.content.3":"To play the game","cw2020.treasure-hunt.section.content.4":"open the game","cw2020.treasure-hunt.section.content.5":"and scan the QR code that will take you to the Telegram app and give you the first set of instructions","cw2020.treasure-hunt.section.content.6":"To win, you need to solve 10 coding challenges and find 10 locations on the map of Europe that are linked to the rise of coding and technology","cw2020.treasure-hunt.section.content.7":"After you complete the game, share your your score with your friends using #EUCodeWeek and challenge them to play and learn about the history of coding too. Let's see who scores the top results","cw2020.treasure-hunt.section.content.8":"The Code Week Treasure Hunt is the virtual version of the original EU Code Week Treasure Hunt which was first developed by Alessandro Bogliolo, Professor of Computer Systems at the University of Urbino. To learn more about his original game, visit our","cw2020.treasure-hunt.section.content.9":"blog","cw2020.kick-off.title":"Kick-off event: 8 October 2020","cw2020.kick-off.content.0":"The Code Week 2020 virtual kick-off will take place on 8 October at 5 pm Berlin/Brussels/Paris time. The event will be streamed on Facebook Live, Instagram TV and YouTube Live","cw2020.kick-off.content.1":"Our exciting line-up includes guest speakers","cw2020.kick-off.content.2":"EU Commissioner for the Internal Market","cw2020.kick-off.content.3":"EU Commissioner for Innovation, Research, Culture, Education and Youth","cw2020.kick-off.content.4":"Creator of Scratch and Professor of Learning Research at the MIT Media Lab","cw2020.kick-off.content.5":"author and illustrator of Hello Ruby","cw2020.kick-off.content.6":"and","cw2020.kick-off.content.7":"President of E-MMA French non-profit organisation that promotes gender diversity in tech","cw2020.kick-off.content.8":"And if this is not enough, the Code Week team will also be showcasing new website features, resources and challenges","cw2020.kick-off.content.9":"Professor of Computer Systems at the University of Urbino and coordinator of the","cw2020.kick-off.content.10":"Code Week ambassadors","cw2020.kick-off.content.11":"will be telling you more about the Code Week virtual Treasure Hunt","cw2020.kick-off.content.12":"And xxx will give you the heads-up on the new #EUCodeWeekDance challenge","cw2020.kick-off.content.13":"We will also be connecting with schools and students from all over Europe who will be sharing their coding stories and exchanging ideas with the guest speakers","cw2020.kick-off.content.14":"You will also have the chance to share your thoughts, ideas and ask your questions. All you need to do is tune in to our live stream on","cw2020.kick-off.content.15":"or","cw2020.kick-off.content.16":"on 8 October 2020 at 17:00-18.30 CET and comment or tweet with the #EUCodeWeek hashtag","cw2020.get-involved.title":"How to get involved","cw2020.get-involved.subtitle":"Can’t wait to start coding? If you would like to join the EU Code Week community but don't know where to start, take a look at these resources that will help get you started, just in time for our annual celebration in October","cw2020.get-involved.content.0":"Getting started with Code Week","cw2020.get-involved.content.1":"How to add a Code Week activity","cw2020.get-involved.content.2":"Learning bits","cw2020.get-involved.content.3":"Deep Dive massive open online course","cw2020.get-involved.content.4":"Coding@Home series","dream-jobs-in-digital.landing_header":"Get inspired by the incredible variety of jobs in digital! Download our Dream Jobs guide, check out our role models, test your digital skills, hold a Career in Digital Open Day or arrange a practical session with our Practical skills – VET Toolkit.","dream-jobs-in-digital.get_involved":"Get involved","dream-jobs-in-digital.about_title":"About Careers in Digital","dream-jobs-in-digital.about_description":'Careers in Digital is part of EU Code Week targeting 15–18-year-olds and educators to explore exciting and varied digital careers. Discover role models doing their dream job in digital - dive into their motivational videos and career pathways and explore our Careers in Digital Guide to understand the variety of roles and how to get there. If you’re an educator download our new Career Day Toolkit to help organise open day sessions for schools and colleges or try out our new Vocational Education toolkit to hold practical creative sessions, created by Fondazione Links and CISCO. We strive to showcase the diverse opportunities in digital careers beyond coding. Unlock your potential and dive into the world of digital careers today!',"dream-jobs-in-digital.our_role_models":"Our role models","dream-jobs-in-digital.more_about":"More about","dream-jobs-in-digital.resources":"Resources","dream-jobs-in-digital.resource_title_1":"Check out our Dream Jobs in Digital Guide","dream-jobs-in-digital.resource_description_1":"Explore the top 20 careers in digital today and the pathways to get there","dream-jobs-in-digital.resource_button_1":"Download the career guide","dream-jobs-in-digital.resource_title_2":"Hold a Career Inspiration Day","dream-jobs-in-digital.resource_description_2":"A toolkit with logistics and templates to support educators to deliver an Open Day for students","dream-jobs-in-digital.resource_button_2":"Read more","dream-jobs-in-digital.resource_title_3":"Deliver VET activities","dream-jobs-in-digital.resource_description_3":"This toolkit is all you need to facilitate practical activities for students leveraging the Creative Learning approach","dream-jobs-in-digital.resource_button_3":"Read more","dream-jobs-in-digital.resource_title_4":"Take our digital skill test","dream-jobs-in-digital.resource_description_4":"Learn your ideal digital skills path by taking part in this quick and fun test!","dream-jobs-in-digital.resource_button_4":"Start the test","edit.title":"Edit your #EUCodeWeek activity","edit.required_fields":"Required fields are marked with an * asterisk. Feel free to add the activity listing in your local language.","edit.description":"Description","edit.audience":"Audience","edit.theme":"Theme","edit.location":"Location","edit.website":"Website","edit.contact":"Contact","edit.tags":"Tags","edit.image":"Image","edit.help":"Larger images will be resized to 256 x 512 pixels. Maximum upload size is 256 x 1024.","edit.aspect":"Which aspect of coding will your activity cover?","edit.address":"Type in an address or click on the map below to set a location.","edit.privacy_disclaimer.header":"Your contact information","edit.privacy_disclaimer.text_1":"This information will only be visible to ","edit.privacy_disclaimer.link_1":"EU Code Week Ambassadors","edit.privacy_disclaimer.text_2":` and Code Week + organizers, who + will check your activity before it appears on the map and might contact you if edits are + necessary or +<<<<<<<< HEAD:public/build/assets/php_en-hSRkEOjH.js + for administering surveys for statistical purposes after the activity.`,"edit.privacy_disclaimer.contact_email":"Your contact email","edit.edit":"Edit activity","educational-resources.educational_resources_text":"Welcome! Here, you'll find a collection of free resources designed to support your learning journey!","educational-resources.share_your_resources_button":"Share Your Resources","educational-resources.share_your_resources_title":"Got free and open educational resources?","educational-resources.share_your_resources_text":"Share them with the EU Code Week community! Submit your free resources using the form below, and we'll feature them on this page to help others learn, create and grow.","educational-resources.share_your_feedback_button":"Share Your Feedback","educational-resources.share_your_feedback_text":"Tell us what you think! Share your feedback on the existing resources – whether you have suggestions for improvement, compliments, or new ideas, we'd love to hear from you!","email.subjects.registered":"EU Code Week: Thank you for Registering!","email.subjects.approved":"EU Code Week: Congratulations! Your Activity is Approved","email.subjects.rejected":"EU Code Week: Your Activity is Rejected","event.if-no-clear-information-provide-estimate":"If you do not have clear information, please provide an estimate.","event.banner-section":"banner section","event.add-your-codeweek-activity":"Add your Codeweek activity","event.join-the-community":"Join the community","event.activity-overview-section":"Activity Overview Section","event.activity-title":"Activity title*","event.what-is-the-name-of-the-activity":"What is the name of the activity?","event.event.activity-overview":"Activity Overview","event.event.who-is-the-activity-for":"Who is the activity for","event.event.organiser":"Organiser","event.specify-the-format-of-the-activity":"Specify the format of the activity","event.select-option":"Select Option","event.coding-camp":"Coding Camp","event.summer-camp":"Summer Camp","event.weekend-course":"Weekend Course","event.evening-course":"Evening Course","event.career-day":"Career Day","event.university-visit":"University Visit","event.coding-at-home":"Coding@Home","event.code-week-challenge":"Code Week Challenge","event.competition":"Competition","event.other-group-work-seminars-workshops":"Other (e.g Group Work, Seminars, Workshops)","event.activity-type":"Activity Type*","event.open-online-activity":"Open Online Activity","event.invite-only-online-activity":"Invite-only Online Activity","event.open-in-person-activity":"Open in-person Activity","event.other":"Other","event.activity-address":"Activity Address *","event.activity-address-optional":"Activity address (optional)","event.where-will-the-activity-be-taking-place":"Where will the activity be taking place?","event.activity-duration":"Activity Duration*","event.0-1-hours":"0-1 hours","event.1-2-hours":"1-2 hours","event.2-4-hours":"2-4 hours","event.longer-than-4-hours":"Longer than 4 hours","event.date":"Date*","event.start-date":"Start Date","event.end-date":"End Date","event.is-it-a-recurring-event":"Is it a recurring event?*","event.true":"True","event.false":"False","event.how-frequently":"How Frequently?","event.daily":"Daily","event.weekly":"Weekly","event.monthly":"Monthly","event.any-address-added-below":"Any address added below won’t be shown publicly for invite-only actitivities.","event.what-type-of-recurring-activity":"What type of recurring activity?","event.consecutive-learning-over-multiple-sessions":"Consecutive learning over multiple sessions","event.individual-standalone-lessons-under-common-theme-joint-event":"Individual stand-alone lessons under a common theme/joint even.","event.theme.AI & Generative AI":"AI & Generative AI","event.theme.Robotics, Drones & Smart Devices":"Robotics, Drones & Smart Devices","event.theme.Web, App & Software Development":"Web, App & Software Development","event.theme.Game Design":"Game Design","event.theme.Cybersecurity & Data":"Cybersecurity & Data","event.theme.Visual/Block Programming":"Visual/Block Programming","event.theme.Art & Creative Coding":"Art & Creative Coding","event.theme.Internet of Things & Wearables":"Internet of Things & Wearables","event.theme.AR, VR & 3D Technologies":"AR, VR & 3D Technologies","event.theme.Digital Careers & Learning Pathways":"Digital Careers & Learning Pathways","event.theme.Digital Literacy & Soft Skills":"Digital Literacy & Soft Skills","event.theme.Unplugged & Playful Activities":"Unplugged & Playful Activities","event.theme.Promoting Diversity & Inclusion":"Promoting Diversity & Inclusion","event.theme.Awareness & Inspiration":"Awareness & Inspiration","event.theme.Other":"Other","event.theme-title":"Theme*","event.select-theme":"Select Theme","event.submit":"Submit","event.robotics-drones-smart-devices":"Robotics, Drones & Smart Devices","event.cybersecurity-data":"Cybersecurity & Data","event.web-app-software-development":"Web, App & Software Development","event.visual-block-programming":"Visual/Block Programming","event.unplugged-playful-activities":"Unplugged & Playful Activities","event.art-creative-coding":"Art & Creative Coding","event.game-design":"Game Design","event.internet-of-things-wearables":"Internet of Things & Wearables (Dispositivi Indossabili)","event.ar-vr-3d-technologies":"AR, VR & 3D Technologies","event.digital-careers-learning-pathways":"Digital Careers & Learning Pathways","event.digital-literacy-soft-skills":"Digital Literacy & Soft Skills","event.ai-generative-ai":"AI & Generative AI","event.awareness-inspiration":"Awareness & Inspiration","event.promoting-diversity-inclusion":"Promoting Diversity & Inclusion","event.other-theme":"Other","event.activity-description":"Activity description*","event.briefly-describe-the-activity-planned":"Briefly Describe the Activity Planned","event.next-step":"Next Step","event.previous-step":"Previous Step","event.who-is-this-activity-for-section":"Who is this activity for section","event.audiences":"Audience*","event.event.audience":"Audience*","event.pre-school-children":"Pre-school children","event.elementary-school-students":"Elementary School Students","event.high-school-students":"High School Students","event.graduate-students":"Graduate Students","event.post-graduate-students":"Post Graduate Students","event.employed-adults":"Employed Adults","event.unemployed-adults":"Unemployed Adults","event.others-see-description":"Others (see description)","event.teachers":"Teachers","event.number-of-participants":"Number of participants*","event.enter-number":"Enter Number","event.of-this-number-how-many-are":"Of this number, how many are:","event.males":"Males","event.females":"Females","event.other-gender":"Other","event.age":"Age*","event.under-5-early-learners":"Under 5 – Early Learners","event.6-9-primary":"6-9 - Primary","event.10-12-upper-primary":"10-12 – Upper Primary","event.13-15-lower-secondary":"13-15 - Lower Secondary","event.16-18-upper-secondary":"16-18 – Upper Secondary","event.19-25-young-adults":"19-25 – Young Adults","event.over-25-adults":"Over 25 – Adults","event.is-this-an-extracurricular-activity":"Is this an extracurricular activity?*","event.is-this-an-activity-within-the-standard-school-curriculum":"Is this an activity within the standard school curriculum?","event.code-week-4-all-code-optional":"Code Week 4 All code (optional)","event.leading-teachers-optional":"Leading teachers (optional)","event.image-optional":"Image (optional)","event.drop-your-image-here-or-upload":"Drop your image here, or upload","event.max-size-1mb-image-formats-jpg-png":"Max size: 1 Mb, Image formats: .jpg, .png","event.by-submitting-images-through-this-form-you-confirm-that":"By submitting images through this form, you confirm that:","event.you-have-obtained-all-necessary-permissions":"You have obtained all necessary permissions from the school, organisation, and/or parents/guardians of the children and the adults appearing in the photos.","event.you-will-not-submit-any-images-with-faces-directly-visible-or-identifiable":"You will not submit any images in which the faces of children are directly visible or identifiable.","event.if-this-is-the-case-ensure-faces-are-blurred":"If this is the case, please ensure that the children's faces are appropriately blurred.","event.submissions-that-do-not-comply-will-not-be-accepted":"Submissions that do not comply will not be accepted.","event.you-understand-and-agree-images-will-be-shared":"You understand and agree that these images will be shared on our website along with the description of the activity and may be use for promotional purposes.","event.info-max-size-1mb":"Info: Max size: 1MB","event.organiser-page-section":"Organiser Page Section","event.name-of-organisation":"Name of Organisation*","event.organisation-you-work-in-or-volunteer-for":"Organisation you work in or volunteer for","event.type-of-organisation":"Type of Organisation","event.school":"School","event.library":"Library","event.non-for-profit-organisation":"Non-for Profit Organisation","event.languages-optional":"Languages (optional)","event.country":"Country","event.are-you-using-any-code-week-resources":"Are you using any Code Week resources in this activity?","event.website.label":"Website","event.website.placeholder":"Do you have a website with more information ?","event.are-you-using-any-code-week-resources-in-this-activity":"Are you using any code week resources in this activity?","event.do-you-have-a-website-with-more-information":"Do you have a website with more information?","event.public-email-optional":"Public Email (optional)","event.would-you-like-to-display-a-contact-email":"Would you like to display a contact email?","event.contact-email":"Contact email*","event.this-email-will-be-used-for-important-code-week-correspondence":"This email will be used for important EU Code Week correspondence.","event.your-contact-email-will-only-be-visible-to-ambassadors-and-organisers":"Your contact email will only be visible to EU Code Week Ambassadors and Code week organisers, who will check your activity before it appears on the map and might contact you if edits are necessary or for administering surveys for statistical purposes after the activity.","event.i-have-read-and-agree-with-the-privacy-policy-terms":"I have read and agree with the privacy policy terms ","event.privacy-policy-terms":"described in this document","event.confirmation-step":"Confirmation Step","event.thank-you-for-adding-your-activity":"Thank you for adding your activity!","event.one-of-the-ambassadors-or-organisers-will-review-your-activity":"One of the EU Code Week Ambassadors or organisers will now review your activity XXX and make sure everything is ok.","event.if-you-have-questions-contact-ambassadors-or-organisers":"If you have questions, contact EU Code Week Ambassadors or organisers.","event.you-can-share-your-code-week-4-all-code-with-other-people":"You can share your Code Week 4 all code with other people:","event.see-the-information-you-supplied-below":"See the information you supplied below:","event.optional":"(optional)","event.yes":"Yes","event.no":"No","event.main_title":"Add your #EUCodeWeek activity","event.button":"Add Activity","event.howto":"How to organize your own activity","event.required":"Required fields are marked with an * asterisk. Feel free to add the activity listing in your local language.","event.audience_title":"Audience","event.theme_title":"Theme","event.scoreboard_by_country":"Scoreboard","event.get_involved":"Get involved","event.organize_or_support_events":"Organize or support activities in your city","event.or_contact_your":"or contact your","event.eu_code_week_ambassadors":"EU Code Week Ambassadors","event.show_events_for":"Show activities for ","event.who":"Who is the activity for?","event.tags":"Tags","event.image":"Image","event.start.label":"Start date","event.start.placeholder":"When does the activity start ?","event.end.label":"End date","event.end.placeholder":"When does the activity end ?","event.organizer.label":"Name of organisation","event.organizer.placeholder":"Organisation you work in or volunteer for","event.description.label":"Description","event.description.placeholder":"Briefly describe the activity planned.","event.contact.label":"Contact email","event.contact.placeholder":"This email will be used for important EU Code Week correspondence","event.contact.explanation":"Your contact email will only be visible to EU Code Week Ambassadors and Code week organisers, who will check your activity before it appears on the map and might contact you if edits are necessary or for administering surveys for statistical purposes after the activity.","event.public.label":"Public email","event.public.placeholder":"Would you like to display a contact email ?","event.title.label":"Activity title","event.title.placeholder":"What is the name of the activity ?","event.address.label":"Activity address","event.address.placeholder":"Where will the activity be taking place?","event.organizertype.label":"Type of organisation","event.organizertype.placeholder":"Select the type of organiser","event.organizertype.school":"School","event.organizertype.library":"Library","event.organizertype.non-profit":"Non-for profit Organisation","event.organizertype.private-business":"Private Business","event.organizertype.other":"Other","event.audience.Pre-school children":"Pre-primary education","event.audience.Elementary school students":"Primary school","event.audience.High school students":"Secondary school","event.audience.Graduate students":"Higher Education","event.audience.Post graduate students":"Post graduate students","event.audience.Employed adults":"Employed adults","event.audience.Unemployed adults":"Unemployed adults","event.audience.Other (see description)":"Other (see description)","event.audience.Teachers":"Teachers","event.codeweek_for_all_participation_code.title":"Code week 4 all code","event.codeweek_for_all_participation_code.explanation":"If you have received a Code Week 4 all code from a school colleague or a friend paste it here, otherwise please leave it blank. More info about Code Week 4 All are available","event.codeweek_for_all_participation_code.link":"here","event.thanks_page.title":"Thanks for adding your activity!","event.thanks_page.phrase1":"One of our local ambassadors will now review your activity","event.thanks_page.phrase2":"and make sure everything looks ok.","event.thanks_page.phrase3":"If you have any questions, get in touch with one of our","event.thanks_page.phrase4":"national ambassadors","event.thanks_page.phrase5":"or send us an","event.thanks_page.phrase6":"email","event.thanks_page.phrase7":"You can share your Codeweek for all code with other people:","event.activity_type.Event":"Activity","event.activity_type.Lesson":"Lesson","event.activity_type.Workshop":"Workshop","event.activity_type.Webinar":"Webinar","event.activity_type.Live Streaming Session":"Live Streaming Session","event.activity_type.Other":"Other","event.activitytype.label":"Activity type","event.activitytype.placeholder":"","event.activitytype.open-online":"Open online activity","event.activitytype.invite-online":"Invite-only online activity","event.activitytype.open-in-person":"Open in-person activity","event.activitytype.invite-in-person":"Invite-only in-person activity","event.duration.0-1-hour":"0-1 hours","event.duration.1-2-hours":"1-2 hours","event.duration.2-4-hours":"2-4 hours","event.duration.more-than-4-hours":"longer than 4 hours","event.0-1-hour":"0-1 hours","event.more-than-4-hours":"longer than 4 hours","event.More":"More","event.privacy":"I have read and agree with the privacy policy terms.","event.loading":"Loading...","event.add_activity":"Add activity","event.edit_activity":"Edit activity","event.update_activity":"Update activity","event.delete_activity":"Delete activity","event.total_pending_events":"Total of pending activities:","event.no_pending_events":"No Pending Activity found for","event.all_countries":"All countries","event.current_status":"Current Status","event.certificate_ready":"Your Code Week certificate is ready. Feel free to download it or share it directly.","event.view_your_certificate":"View your certificate here","event.submit_event_and_report":"Submit a report for this activity and claim your Code Week certificate.","event.report_and_claim":"Report activity and claim certificate","event.leading_teacher_tag":"Leading Teacher","event.leading_teacher_tag_choose":"Choose a Leading Teacher","event.last_update":"Last update","event.confirmation_step.activity_overview":"Activity overview","event.confirmation_step.who_is_the_activity_for":"Who is the activity for","event.confirmation_step.organiser":"Organiser","event.your-changes-have-been-saved":"Your changes have been saved","event.edit-your-codeweek-activity":"Edit your Codeweek activity","event.view-activity":"View Activity","event.add-another-activity":"Add another Activity","eventdetails.organised_by":"Organized by: ","eventdetails.contact_email":"Contact email: ","eventdetails.happening_at":"Happening at: ","eventdetails.from":"From ","eventdetails.to":" to ","eventdetails.description":"Description: ","eventdetails.more_info":"More information: ","eventdetails.audience":"This activity is for: ","eventdetails.themes":"Main themes: ","eventdetails.tags":"Tags: ","eventdetails.share":"Share the activity: ","eventdetails.email.tooltip":"Click to email this to a friend","eventdetails.email.subject":"Look at this awesome coding activity","eventdetails.email.body_1":"Hi, check out ","eventdetails.email.body_2":"activity at ","eventdetails.edit":"Edit activity","eventdetails.note":"NOTE: ","eventdetails.pending_warning":"This activity is still being reviewed by ","eventdetails.pending_link":"moderators","eventdetails.nearby_upcoming_events":"Nearby upcoming activities:","eventreports.reports_by":"Activities pending for report by ","eventreports.no_reports":"There are no activities to be reported yet.","eventreports.report":`The activities listed below have started or already finished. Fill in a few numbers for +======== + for administering surveys for statistical purposes after the activity.`,"edit.privacy_disclaimer.contact_email":"Your contact email","edit.edit":"Edit activity","educational-resources.educational_resources_text":"Welcome! Here, you'll find a collection of free resources designed to support your learning journey!","educational-resources.share_your_resources_button":"Share Your Resources","educational-resources.share_your_resources_title":"Got free and open educational resources?","educational-resources.share_your_resources_text":"Share them with the EU Code Week community! Submit your free resources using the form below, and we'll feature them on this page to help others learn, create and grow.","educational-resources.share_your_feedback_button":"Share Your Feedback","educational-resources.share_your_feedback_text":"Tell us what you think! Share your feedback on the existing resources – whether you have suggestions for improvement, compliments, or new ideas, we'd love to hear from you!","email.subjects.registered":"EU Code Week: Thank you for Registering!","email.subjects.approved":"EU Code Week: Congratulations! Your Activity is Approved","email.subjects.rejected":"EU Code Week: Your Activity is Rejected","event.if-no-clear-information-provide-estimate":"If you do not have clear information, please provide an estimate.","event.banner-section":"banner section","event.add-your-codeweek-activity":"Add your Codeweek activity","event.join-the-community":"Join the community","event.activity-overview-section":"Activity Overview Section","event.activity-title":"Activity title*","event.what-is-the-name-of-the-activity":"What is the name of the activity?","event.event.activity-overview":"Activity Overview","event.event.who-is-the-activity-for":"Who is the activity for","event.event.organiser":"Organiser","event.specify-the-format-of-the-activity":"Specify the format of the activity","event.select-option":"Select Option","event.coding-camp":"Coding Camp","event.summer-camp":"Summer Camp","event.weekend-course":"Weekend Course","event.evening-course":"Evening Course","event.career-day":"Career Day","event.university-visit":"University Visit","event.coding-at-home":"Coding@Home","event.code-week-challenge":"Code Week Challenge","event.competition":"Competition","event.other-group-work-seminars-workshops":"Other (e.g Group Work, Seminars, Workshops)","event.activity-type":"Activity Type*","event.open-online-activity":"Open Online Activity","event.invite-only-online-activity":"Invite-only Online Activity","event.open-in-person-activity":"Open in-person Activity","event.other":"Other","event.activity-address":"Activity Address *","event.activity-address-optional":"Activity address (optional)","event.where-will-the-activity-be-taking-place":"Where will the activity be taking place?","event.activity-duration":"Activity Duration*","event.0-1-hours":"0-1 hours","event.1-2-hours":"1-2 hours","event.2-4-hours":"2-4 hours","event.longer-than-4-hours":"Longer than 4 hours","event.date":"Date*","event.start-date":"Start Date","event.end-date":"End Date","event.is-it-a-recurring-event":"Is it a recurring event?*","event.true":"True","event.false":"False","event.how-frequently":"How Frequently?","event.daily":"Daily","event.weekly":"Weekly","event.monthly":"Monthly","event.any-address-added-below":"Any address added below won’t be shown publicly for invite-only actitivities.","event.what-type-of-recurring-activity":"What type of recurring activity?","event.consecutive-learning-over-multiple-sessions":"Consecutive learning over multiple sessions","event.individual-standalone-lessons-under-common-theme-joint-event":"Individual stand-alone lessons under a common theme/joint even.","event.theme.AI & Generative AI":"AI & Generative AI","event.theme.Robotics, Drones & Smart Devices":"Robotics, Drones & Smart Devices","event.theme.Web, App & Software Development":"Web, App & Software Development","event.theme.Game Design":"Game Design","event.theme.Cybersecurity & Data":"Cybersecurity & Data","event.theme.Visual/Block Programming":"Visual/Block Programming","event.theme.Art & Creative Coding":"Art & Creative Coding","event.theme.Internet of Things & Wearables":"Internet of Things & Wearables","event.theme.AR, VR & 3D Technologies":"AR, VR & 3D Technologies","event.theme.Digital Careers & Learning Pathways":"Digital Careers & Learning Pathways","event.theme.Digital Literacy & Soft Skills":"Digital Literacy & Soft Skills","event.theme.Unplugged & Playful Activities":"Unplugged & Playful Activities","event.theme.Promoting Diversity & Inclusion":"Promoting Diversity & Inclusion","event.theme.Awareness & Inspiration":"Awareness & Inspiration","event.theme.Other":"Other","event.theme-title":"Theme*","event.select-theme":"Select Theme","event.submit":"Submit","event.robotics-drones-smart-devices":"Robotics, Drones & Smart Devices","event.cybersecurity-data":"Cybersecurity & Data","event.web-app-software-development":"Web, App & Software Development","event.visual-block-programming":"Visual/Block Programming","event.unplugged-playful-activities":"Unplugged & Playful Activities","event.art-creative-coding":"Art & Creative Coding","event.game-design":"Game Design","event.internet-of-things-wearables":"Internet of Things & Wearables (Dispositivi Indossabili)","event.ar-vr-3d-technologies":"AR, VR & 3D Technologies","event.digital-careers-learning-pathways":"Digital Careers & Learning Pathways","event.digital-literacy-soft-skills":"Digital Literacy & Soft Skills","event.ai-generative-ai":"AI & Generative AI","event.awareness-inspiration":"Awareness & Inspiration","event.promoting-diversity-inclusion":"Promoting Diversity & Inclusion","event.other-theme":"Other","event.activity-description":"Activity description*","event.briefly-describe-the-activity-planned":"Briefly Describe the Activity Planned","event.next-step":"Next Step","event.previous-step":"Previous Step","event.who-is-this-activity-for-section":"Who is this activity for section","event.audiences":"Audience*","event.event.audience":"Audience*","event.pre-school-children":"Pre-school children","event.elementary-school-students":"Elementary School Students","event.high-school-students":"High School Students","event.graduate-students":"Graduate Students","event.post-graduate-students":"Post Graduate Students","event.employed-adults":"Employed Adults","event.unemployed-adults":"Unemployed Adults","event.others-see-description":"Others (see description)","event.teachers":"Teachers","event.number-of-participants":"Number of participants*","event.enter-number":"Enter Number","event.of-this-number-how-many-are":"Of this number, how many are:","event.males":"Males","event.females":"Females","event.other-gender":"Other","event.age":"Age*","event.under-5-early-learners":"Under 5 – Early Learners","event.6-9-primary":"6-9 - Primary","event.10-12-upper-primary":"10-12 – Upper Primary","event.13-15-lower-secondary":"13-15 - Lower Secondary","event.16-18-upper-secondary":"16-18 – Upper Secondary","event.19-25-young-adults":"19-25 – Young Adults","event.over-25-adults":"Over 25 – Adults","event.is-this-an-extracurricular-activity":"Is this an extracurricular activity?*","event.is-this-an-activity-within-the-standard-school-curriculum":"Is this an activity within the standard school curriculum?","event.code-week-4-all-code-optional":"Code Week 4 All code (optional)","event.leading-teachers-optional":"Leading teachers (optional)","event.image-optional":"Image (optional)","event.drop-your-image-here-or-upload":"Drop your image here, or upload","event.max-size-1mb-image-formats-jpg-png":"Max size: 1 Mb, Image formats: .jpg, .png","event.by-submitting-images-through-this-form-you-confirm-that":"By submitting images through this form, you confirm that:","event.you-have-obtained-all-necessary-permissions":"You have obtained all necessary permissions from the school, organisation, and/or parents/guardians of the children and the adults appearing in the photos.","event.you-will-not-submit-any-images-with-faces-directly-visible-or-identifiable":"You will not submit any images in which the faces of children are directly visible or identifiable.","event.if-this-is-the-case-ensure-faces-are-blurred":"If this is the case, please ensure that the children's faces are appropriately blurred.","event.submissions-that-do-not-comply-will-not-be-accepted":"Submissions that do not comply will not be accepted.","event.you-understand-and-agree-images-will-be-shared":"You understand and agree that these images will be shared on our website along with the description of the activity and may be use for promotional purposes.","event.info-max-size-1mb":"Info: Max size: 1MB","event.organiser-page-section":"Organiser Page Section","event.name-of-organisation":"Name of Organisation*","event.organisation-you-work-in-or-volunteer-for":"Organisation you work in or volunteer for","event.type-of-organisation":"Type of Organisation","event.school":"School","event.library":"Library","event.non-for-profit-organisation":"Non-for Profit Organisation","event.languages-optional":"Languages (optional)","event.country":"Country","event.are-you-using-any-code-week-resources":"Are you using any Code Week resources in this activity?","event.website.label":"Website","event.website.placeholder":"Do you have a website with more information ?","event.are-you-using-any-code-week-resources-in-this-activity":"Are you using any code week resources in this activity?","event.do-you-have-a-website-with-more-information":"Do you have a website with more information?","event.public-email-optional":"Public Email (optional)","event.would-you-like-to-display-a-contact-email":"Would you like to display a contact email?","event.contact-email":"Contact email*","event.this-email-will-be-used-for-important-code-week-correspondence":"This email will be used for important EU Code Week correspondence.","event.your-contact-email-will-only-be-visible-to-ambassadors-and-organisers":"Your contact email will only be visible to EU Code Week Ambassadors and Code week organisers, who will check your activity before it appears on the map and might contact you if edits are necessary or for administering surveys for statistical purposes after the activity.","event.i-have-read-and-agree-with-the-privacy-policy-terms":"I have read and agree with the privacy policy terms ","event.privacy-policy-terms":"described in this document","event.confirmation-step":"Confirmation Step","event.thank-you-for-adding-your-activity":"Thank you for adding your activity!","event.one-of-the-ambassadors-or-organisers-will-review-your-activity":"One of the EU Code Week Ambassadors or organisers will now review your activity XXX and make sure everything is ok.","event.if-you-have-questions-contact-ambassadors-or-organisers":"If you have questions, contact EU Code Week Ambassadors or organisers.","event.you-can-share-your-code-week-4-all-code-with-other-people":"You can share your Code Week 4 all code with other people:","event.see-the-information-you-supplied-below":"See the information you supplied below:","event.optional":"(optional)","event.yes":"Yes","event.no":"No","event.main_title":"Add your #EUCodeWeek activity","event.button":"Add Activity","event.howto":"How to organize your own activity","event.required":"Required fields are marked with an * asterisk. Feel free to add the activity listing in your local language.","event.audience_title":"Audience","event.theme_title":"Theme","event.scoreboard_by_country":"Scoreboard","event.get_involved":"Get involved","event.organize_or_support_events":"Organize or support activities in your city","event.or_contact_your":"or contact your","event.eu_code_week_ambassadors":"EU Code Week Ambassadors","event.show_events_for":"Show activities for ","event.who":"Who is the activity for?","event.tags":"Tags","event.image":"Image","event.start.label":"Start date","event.start.placeholder":"When does the activity start ?","event.end.label":"End date","event.end.placeholder":"When does the activity end ?","event.organizer.label":"Name of organisation","event.organizer.placeholder":"Organisation you work in or volunteer for","event.description.label":"Description","event.description.placeholder":"Briefly describe the activity planned.","event.contact.label":"Contact email","event.contact.placeholder":"This email will be used for important EU Code Week correspondence","event.contact.explanation":"Your contact email will only be visible to EU Code Week Ambassadors and Code week organisers, who will check your activity before it appears on the map and might contact you if edits are necessary or for administering surveys for statistical purposes after the activity.","event.public.label":"Public email","event.public.placeholder":"Would you like to display a contact email ?","event.title.label":"Activity title","event.title.placeholder":"What is the name of the activity ?","event.address.label":"Activity address","event.address.placeholder":"Where will the activity be taking place?","event.organizertype.label":"Type of organisation","event.organizertype.placeholder":"Select the type of organiser","event.organizertype.school":"School","event.organizertype.library":"Library","event.organizertype.non-profit":"Non-for profit Organisation","event.organizertype.private-business":"Private Business","event.organizertype.other":"Other","event.audience.Pre-school children":"Pre-primary education","event.audience.Elementary school students":"Primary school","event.audience.High school students":"Secondary school","event.audience.Graduate students":"Higher Education","event.audience.Post graduate students":"Post graduate students","event.audience.Employed adults":"Employed adults","event.audience.Unemployed adults":"Unemployed adults","event.audience.Other (see description)":"Other (see description)","event.audience.Teachers":"Teachers","event.codeweek_for_all_participation_code.title":"Code week 4 all code","event.codeweek_for_all_participation_code.explanation":"If you have received a Code Week 4 all code from a school colleague or a friend paste it here, otherwise please leave it blank. More info about Code Week 4 All are available","event.codeweek_for_all_participation_code.link":"here","event.thanks_page.title":"Thanks for adding your activity!","event.thanks_page.phrase1":"One of our local ambassadors will now review your activity","event.thanks_page.phrase2":"and make sure everything looks ok.","event.thanks_page.phrase3":"If you have any questions, get in touch with one of our","event.thanks_page.phrase4":"national ambassadors","event.thanks_page.phrase5":"or send us an","event.thanks_page.phrase6":"email","event.thanks_page.phrase7":"You can share your Codeweek for all code with other people:","event.activity_type.Event":"Activity","event.activity_type.Lesson":"Lesson","event.activity_type.Workshop":"Workshop","event.activity_type.Webinar":"Webinar","event.activity_type.Live Streaming Session":"Live Streaming Session","event.activity_type.Other":"Other","event.activitytype.label":"Activity type","event.activitytype.placeholder":"","event.activitytype.open-online":"Open online activity","event.activitytype.invite-online":"Invite-only online activity","event.activitytype.open-in-person":"Open in-person activity","event.activitytype.invite-in-person":"Invite-only in-person activity","event.duration.0-1-hour":"0-1 hours","event.duration.1-2-hours":"1-2 hours","event.duration.2-4-hours":"2-4 hours","event.duration.more-than-4-hours":"longer than 4 hours","event.0-1-hour":"0-1 hours","event.more-than-4-hours":"longer than 4 hours","event.More":"More","event.privacy":"I have read and agree with the privacy policy terms.","event.loading":"Loading...","event.add_activity":"Add activity","event.edit_activity":"Edit activity","event.update_activity":"Update activity","event.delete_activity":"Delete activity","event.total_pending_events":"Total of pending activities:","event.no_pending_events":"No Pending Activity found for","event.all_countries":"All countries","event.current_status":"Current Status","event.certificate_ready":"Your Code Week certificate is ready. Feel free to download it or share it directly.","event.view_your_certificate":"View your certificate here","event.submit_event_and_report":"Submit a report for this activity and claim your Code Week certificate.","event.report_and_claim":"Report activity and claim certificate","event.leading_teacher_tag":"Leading Teacher","event.leading_teacher_tag_choose":"Choose a Leading Teacher","event.last_update":"Last update","event.confirmation_step.activity_overview":"Activity overview","event.confirmation_step.who_is_the_activity_for":"Who is the activity for","event.confirmation_step.organiser":"Organiser","event.your-changes-have-been-saved":"Your Chnages have been saved","event.view-activity":"View activity","event.add-another-activity":"Add another activity","event.event.view-activity":"View activity","event.event.add-another-activity":"Add another activity","event.event.audience.Pre-primary education":"Pre-primary education","event.event.your-changes-have-been-saved":"Your CHnages have been saved","eventdetails.organised_by":"Organized by: ","eventdetails.contact_email":"Contact email: ","eventdetails.happening_at":"Happening at: ","eventdetails.from":"From ","eventdetails.to":" to ","eventdetails.description":"Description: ","eventdetails.more_info":"More information: ","eventdetails.audience":"This activity is for: ","eventdetails.themes":"Main themes: ","eventdetails.tags":"Tags: ","eventdetails.share":"Share the activity: ","eventdetails.email.tooltip":"Click to email this to a friend","eventdetails.email.subject":"Look at this awesome coding activity","eventdetails.email.body_1":"Hi, check out ","eventdetails.email.body_2":"activity at ","eventdetails.edit":"Edit activity","eventdetails.note":"NOTE: ","eventdetails.pending_warning":"This activity is still being reviewed by ","eventdetails.pending_link":"moderators","eventdetails.nearby_upcoming_events":"Nearby upcoming activities:","eventreports.reports_by":"Activities pending for report by ","eventreports.no_reports":"There are no activities to be reported yet.","eventreports.report":`The activities listed below have started or already finished. Fill in a few numbers for +>>>>>>>> 6fcbf1d4e8aed2dbe0da4a38eaeb4dcb0d438f03:public/build/assets/php_en-B8yGGaL8.js + statistical purposes for the activity and claim your Code Week participation certificate. You + will get one certificate per activity.`,"excellence.title":"Generate your certificate of Excellence for Codeweek","excellence.generate":"Generate the Certificate of Excellence","excellence.required":"Required fields are marked with an * asterisk.","excellence.name_for_certificate.label":"Name for certificate","excellence.name_for_certificate.help":"Change this to the name of the activity organizer who will be issued a certificate of Excellence.","footer.privacy_policy":"Privacy Policy","footer.cookies_policy":"Cookies Policy","footer.about_us":"About us","footer.about_code_week":"About Code Week","footer.our_values":"Our Values","footer.statistics":"Scoreboard","footer.partners_sponsors":"Partners & Sponsors","footer.community":"Community","footer.quick_links":"Quick links","footer.register":"Register","footer.activities_events":"Activities & Events","footer.learn_teach":"Learn & Teach","footer.news":"News","footer.newsletter_signup":"Newsletter Sign Up","footer.educational_resources":"Educational Resources","footer.coding_home":"Coding @ Home","footer.podcast":"Podcast","footer.challenges":"Challenges","footer.hackathons":"Hackathons","footer.designed_and_developed_by":"Designed and developed by","footer.all_rights_reserved":"All Rights Reserved","footer.get-involved":"Get Involved","footer.contact-us":"Contact Us","girls-in-digital.landing_header":"Empower, inspire and celebrate the next generation of girls and young Europeans!","girls-in-digital.about_girls_title":"About Girls in Digital","girls-in-digital.about_girls_description_1":"Get ready to celebrate Girls in Digital Week from 24–28 March 2025, as we put a spotlight on inclusion, innovation, and the limitless opportunities digital skills offer to all!","girls-in-digital.about_girls_description_2":"Girls in Digital is part of a larger movement to inspire and empower the next generation of young Europeans—regardless of gender—to thrive in an inclusive digital world. Our purpose? To break down barriers and ensure that every young person—girl, boy, or non-binary—has the confidence to explore STE(A)M fields, embrace tech careers, and drive the future of innovation.","girls-in-digital.read_more":"Read More","girls-in-digital.resource_title":"Resources","girls-in-digital.resource_person_title":"Are you a young person or parent?","girls-in-digital.resource_person_description_1":"You are a young person passionate about technology, coding, or digital creativity; explore activities near you and begin your journey today.","girls-in-digital.resource_person_description_2":"You are a parent looking for inclusive activities for your child to participate in a safe and supportive space; discover opportunities that nurture their interest in technology and digital skills.","girls-in-digital.resource_educator_title":"Are you an educator?","girls-in-digital.resource_educator_description":"You are an educator looking to organise an activity to empower youth with digital skills in a safe and inclusive environment, where all feel welcomed to explore the endless opportunities that digital has to offer. Check our resources below for guidance and support in bringing your activity to life.","girls-in-digital.resource_search_activity":"Search an activity","girls-in-digital.resource_organise_activity":"Organise an activity","girls-in-digital.resource_digital_activity":"Girls in Digital Activity Guideline","girls-in-digital.resource_social_media":"Social Media Kit","girls-in-digital.relevant_statistics_title":"Some visual elements showing relevant Statistics","girls-in-digital.relevant_statistics_graph_1":"The graphs illustrate the persistent gender gap in ICT across different stages of a young European’s journey, from education to professional life. While female representation has gradually increased between 2013 and 2023, the sector remains male-dominated, highlighting the need for further progress in closing the gap.","girls-in-digital.relevant_statistics_graph_2":"Multiple interconnected factors influence girls' and women's participation, achievement, and progression in STEM, with individual beliefs shaped by family, peers, education, and broader societal influences. This diagram illustrates the various factors at different levels influencing female representation in STEM. Addressing these factors holistically has been shown to positively impact confidence and motivation, encouraging more girls and women to pursue STEM education and careers.","girls-in-digital.faq":"FAQ’s","girls-in-digital.faq_girls_digital_title":"What is Girls in Digital?","girls-in-digital.faq_girls_digital_description":"Girls in Digital (GiD) is an EU Code Week initiative aimed at empowering girls and young women to explore and excel in digital skills, STEM fields, and technology-driven careers while fostering gender equality.","girls-in-digital.faq_girls_digital_activities_title":"Who can participate in Girls in Digital activities?","girls-in-digital.faq_girls_digital_activities_description":"The initiative is inclusive of all genders, but its primary focus is on encouraging and empowering girls and young women. Activities can be tailored for girls-only groups or mixed-gender settings.","girls-in-digital.faq_girls_digital_focus_title":"Why does Girls in Digital focus on girls?","girls-in-digital.faq_girls_digital_focus_description":"Girls are underrepresented in digital fields, STEM careers, and ICT studies. GiD aims to bridge these gaps and inspire a new generation of women in technology by breaking down gender stereotypes and promoting equality. A more gender-balanced workforce in these fields will not only foster innovation but also contribute to building a better, more inclusive future.","girls-in-digital.faq_girls_digital_organise_title":"How can I organise a Girls in Digital activity?","girls-in-digital.faq_girls_digital_organise_description":"You can use the Girls in Digital Activity Guidelines, which provide step-by-step instructions, resources, and tips to plan and execute engaging activities tailored to your group’s needs.","girls-in-digital.faq_girls_digital_skill_title":"Do I need prior experience in digital skills to organise an activity?","girls-in-digital.faq_girls_digital_skill_description":"No, the guidelines are designed to be accessible for everyone, regardless of their expertise. They include examples, templates, and resources to help you get started.","girls-in-digital.faq_girls_digital_type_organise_title":"What types of activities can I organise?","girls-in-digital.faq_girls_digital_type_organise_description":"Activities range from coding workshops and robotics challenges to interactive discussions on digital careers and gender equality. The guidelines also include creative projects that encourage teamwork and innovation.","girls-in-digital.faq_girls_digital_event_title":"Are there any funding opportunities for Girls in Digital events?","girls-in-digital.faq_girls_digital_event_description":"This depends on your region and local resources. Check with your national or regional hubs or reach out to partners affiliated with the initiative. Find the list of EU Code Week national and regional hubs","girls-in-digital.faq_girls_digital_skill_join_title":"Do I need any prior knowledge of coding or digital skills to join?","girls-in-digital.faq_girls_digital_skill_join_description":"Not at all! GiD activities are designed to be fun and beginner-friendly, encouraging everyone to explore and learn regardless of their starting point.","girls-in-digital.faq_girls_digital_participating_title":"What skills will I gain by participating?","girls-in-digital.faq_girls_digital_participating_description":"You’ll learn a variety of skills, including coding, problem-solving, teamwork, creativity, and critical thinking. You’ll also gain insights into digital careers and STE(A)M opportunities.","girls-in-digital.faq_girls_digital_students_title":"Can boys or nonbinary students participate in GiD activities?","girls-in-digital.faq_girls_digital_students_description":"Yes, GiD is inclusive of all genders. While the initiative aims to address the underrepresentation of girls in digital fields by providing them with tailored support and encouragement, it is important for all citizens–irrespective of their age, gender, nationalities ethnicity, abilities–to be aware of the current gender gap and help create a more inclusive digital future, making it essential for all individuals to engage, learn, and be part of the solution.","girls-in-digital.faq_girls_digital_promote_gender_title":"How does Girls in Digital promote gender equality?","girls-in-digital.faq_girls_digital_promote_gender_description":"By creating opportunities, breaking down stereotypes, and inspiring girls to pursue careers in technology, GiD contributes to bridging the gender gap in digital fields and fostering equality.","girls-in-digital.faq_girls_digital_goal_initiative_title":"What is the long-term goal of the initiative?","girls-in-digital.faq_girls_digital_goal_initiative_description":"Our long-term goal is to foster equality in STE(A)M, as a more gender-balanced workforce drives innovation, brings diverse perspectives, and creates a more inclusive environment. When everyone has equal opportunities to contribute, we unlock new ideas, fuel creativity, and develop stronger, more equitable solutions for the future. By breaking down barriers and encouraging diverse talent, we not only shape a fairer industry but also ensure that STE(A)M continues to thrive with fresh insights and groundbreaking advancements—paving the way for a future where everyone has equal access to opportunities in digital and STEM fields.","girls-in-digital.here":"HERE","guide.title":"Guide","guide.organise_activity":"Organise Your Own Activity with #EUCodeWeek","guide.register_activity":"Register your activity here","guide.what.title":"What is EU Code Week?","guide.what.content":`

+ EU Code Week is a grass-roots movement run by volunteers and supported by the European Commission. + Anyone – schools, teachers, libraries, code clubs, businesses, public authorities – can organise a + #EUCodeWeek activity and add it to the codeweek.eu map. + +

`,"guide.what_you_need_organise.title":"What do you need in order to organise an activity?","guide.what_you_need_organise.items.1":`A group of people willing to learn. For example, your friends, kids, teenagers, + adults colleagues, friends, parents or grandparents. Remember, two is a group already!`,"guide.what_you_need_organise.items.2":`Teachers or trainers who are familiar with the coding activity, and how to + teach and inspire others. The number depends on the type and size of the activity.`,"guide.what_you_need_organise.items.3":`A place to learn. Classrooms, libraries, conference rooms and various public + spaces all make a great activity venue.`,"guide.what_you_need_organise.items.4":`Computers and internet connection. Depending on your target group, you might + ask participants to bring their own laptops.`,"guide.what_you_need_organise.items.5":`Coding unplugged. You actually don't need computers and internet connection to + learn computational thinking. + Take a look at our Unplugged learning bit to get + started.`,"guide.what_you_need_organise.items.6":`Learning materials. + + Show participants how fun it can be to create something on their own. Check out our resources page + and learning bits with video tutorials and lesson plans, and adjust them + to your group's + needs.`,"guide.what_you_need_organise.items.7":`Register participants. If you have limited space available, you can use online + tools such as Google forms and Eventbrite to register participants.`,"guide.what_you_need_organise.items.8":'Remember to pin your activity on the Code Week map!',"guide.how_to.title":"How to organise your activity?","guide.how_to.items.1":`The format of your coding activity is up to you, but we do recommend that you include some practical, + hands-on time, where participants can create on their own and/or tinker with some + hardware.`,"guide.how_to.items.2":`Make use of tools and technologies appropriate to your target group. We + recommend using freely + available open source material.`,"guide.how_to.items.3":`Encourage participants to show and present what they have created to each other + at the end of your activity.`,"guide.how_to.items.4":`Spread the news! Promote and share what you did during your activity on social + media by using + the #EUCodeWeek hashtag. You can also share on the EU Code Week Teacher’s group + and on Twitter + (@CodeWeekEU). Talk to your friends, fellow + educators, the local press, and make a press + release.`,"guide.how_to.items.5":`Don't forget to add your activity on the Code Week map!`,"guide.material.title":"Promotional material","guide.material.text":`

Check out our blog for latest information and feel free to + adapt the most recent press release to your needs, or create your own:

`,"guide.material.items.1":'Getting ready for EU Code Week 2019: new online course for teachers, an extended repository of handy materials and a revamped website',"guide.material.items.2":'Gearing up to celebrate EU Code Week 2019 (available in 29 languages)',"guide.toolkits.title":"Download the following toolkits to help you get started:","guide.toolkits.communication_toolkit":"Communications Toolkit","guide.toolkits.teachers_toolkit":"Teachers Toolkit","guide.questions.title":"Questions?","guide.questions.content":'

If you have questions about organising and promoting your #EUCodeWeek activity, get in touch with one of the EU Code Week Ambassadors from your country.

',"hackathon-greece.title":"EU Code Week HACKATHON","hackathon-greece.subtitle":"Bring your ideas to life!","hackathon-greece.misc.0":"Read the rules & code of conduct","hackathon-greece.misc.1":"Registrations for both the EU Code Week Hackathon and Side Events will be handled by EU Survey.","hackathon-greece.misc.2":"Our Partners","hackathon-greece.sections.1.content.0":"Do you dream of creating the next big app? Do you know how innovative tech solutions can help your school, town, and region? If you want to be an entrepreneur or have a killer idea to pitch to the world but you don’t know where to start, then your waiting is at an end! ","hackathon-greece.sections.1.content.1":"The EU Code Week Hackathon","hackathon-greece.sections.1.content.2":"begins with a challenge to develop a code that solves a real-life challenge in just 12-hours. The 10 most successful teams will then receive training and mentoring from experts in this field, in order to prepare them for the second and final round, from which the ultimate winner will be selected. The lucky team will win further coaching and mentoring of their ideas and cool IT equipment. The winning team will also secure a spot at the European pitch where all the hackathon winners will present their ideas to a European jury during the official EU Code Week 9-24 October 2021.","hackathon-greece.sections.1.content.3":"The EU Code Week hackathon is sure to fuel your curiosity, inspire your creativity, encourage your entrepreneurial spirit, and bring your ideas to life. ","hackathon-greece.sections.2.title":"What to expect?","hackathon-greece.sections.2.content.0":"Expert coaching","hackathon-greece.sections.2.content.1":"Skills workshops","hackathon-greece.sections.2.content.2":"Fun activities","hackathon-greece.sections.2.content.3":"The chance to meet likeminded individuals","hackathon-greece.sections.2.content.4":"The chance to win mentoring and coaching, as well as IT equipment ","hackathon-greece.sections.2.content.5":"The chance to join the final hackathon and meet the best of the best, in person!","hackathon-greece.sections.3.content.0":"Sign up now to","hackathon-greece.sections.3.content.1":"EU Code Week Hackathon Greece","hackathon-greece.sections.3.content.2":"and bring your ideas to life!","hackathon-greece.sections.4.title":"Propose challenges to be solved at the Hackathon","hackathon-greece.sections.4.content.0":"Do you want to make your community the centre of green and sustainable innovation in Greece? If so, propose a challenge that will be “hacked” at the Hackathon. Something concrete that will help you, your school, city or community.","hackathon-greece.sections.4.content.1":"Propose a challenge","hackathon-greece.sections.4.content.2":"Votes for the Greek challenge will start on the 9th of April.","hackathon-greece.sections.5.title":"Vote on the challenges to be “hacked”","hackathon-greece.sections.5.content.0":"The idea of the EU Code Week Hackathon is to show how concrete solutions come to life with the help of young people’s creativity, enthusiasm, innovation and coding skills. ‘Concrete’ means solving real problems – things that affect you, your school, community, city or specific challenges in your area.","hackathon-greece.sections.5.content.1":"Vote on what matters most to you!","hackathon-greece.sections.5.content.2":"The final challenge selected will be announced at the beginning of the Hackathon.","hackathon-greece.sections.6.title":"The Challenge","hackathon-greece.sections.6.content.0":"The idea of the EU Code Week Hackathon is to show how concrete solutions come to life with the help of young people’s creativity, enthusiasm, fresh ideas and coding skills. ‘Concrete’ means solving real problems – things that affect you, your school, community, city or specific challenges in your area.","hackathon-greece.sections.6.content.1":"Based on public voting, the challenge for the Greek Hackathon is:","hackathon-greece.sections.6.content.2":"Based on public voting, the challenge for the Greek Hackathon was:","hackathon-greece.sections.7.title":"Resource Centre","hackathon-greece.sections.8.title":"Programme","hackathon-greece.sections.8.content.0.0":"The EU Code Week hackathon","hackathon-greece.sections.8.content.0.1":"has three distinct rounds","hackathon-greece.sections.8.content.1":"The 24-hour online hackathon. Out of all those competing, only 12 teams will be chosen to remain in the competition. Free online training and mentoring for all 12 teams, during summer 2021.","hackathon-greece.sections.8.content.2":"The final: the physical hackathon. 10 teams will have all received equal training in the second round, but only one will win. Secondary school students aged 15-19 will compete in teams to solve a ‘local challenge’ selected from proposals submitted ahead of the first round.","hackathon-greece.sections.8.content.3":"Each national winner will face-off in a European clash of titans where each winning team will pitch their solution to a European jury during the official EU Code Week 9-24 October 2021.","hackathon-greece.sections.8.content.4":"In 2021, EU Code Week brings six extraordinary hackathons and invites students aged 15-19 in upper secondary school to form teams and use their coding skills to solve a local challenge. After 24 hours of hacking, each team will pitch their ideas to a panel of experts who will choose the 12 final teams. All teams will have the same amount of time, resources, and access to mentors and expertise in order to complete the challenge, but only 12 will get the chance to continue to the next round, develop their prototype, get expert coaching and take part in the final hackathon in the autumn. In the final the teams will battle it out to decide who wins IT accessories and the chance of mentoring and coaching to further develop their prototype.","hackathon-greece.sections.8.content.5":"Your team is not guaranteed a place in the second round even if you successfully solve the challenge. Remember you are in competition with the other teams and the jury will take your method, use of time and quality of the prototype into consideration to select the successful candidates! ","hackathon-greece.sections.8.content.6":"If your team is one of the 12 finalists, you can work on your idea over the summer. To assist you, we will offer you free trainings for development and UX Design. Your team will also get the help of a mentor who ensures that you are on the right path.","hackathon-greece.sections.8.content.7":"The 12 finalist teams will meet in a 12-hour hackathon on the 9 October 2021. Here teams will compete to be the nation’s best young hackers and get the chance to win prizes such as cool IT equipment as well as further coaching and mentoring of their ideas.","hackathon-greece.sections.9.title":"Practical Info","hackathon-greece.sections.9.content.0":"The Hackathon will take place onsite on the 9 October 2021","hackathon-greece.sections.9.content.1":"The Hackathon is free of charge.","hackathon-greece.sections.10.title":"Jury & Mentors","hackathon-greece.sections.10.content.0":"Imagine being in a virtual room full of designers, developers, creators, coders and business mentors, all with the same curiosity and drive as you. EU Code Week Hackathon Greece brings together leading figures from the Worlds of business, IT, venture capital, education, as well as local, national and EU leaders, influencers and coaches to guide and support you and your team during this intensive marathon.","hackathon-greece.sections.10.content.1":"Sign up now to","hackathon-greece.sections.10.content.2":"EU Code Week Hackathon","hackathon-greece.sections.10.content.3":"and make it happen!","hackathon-greece.sections.11.title":"Side events","hackathon-greece.sections.11.content.0":"Do these themes interest you but you don’t know how to code? Sign up to our side events and discover the thrill of coding, innovation, entrepreneurship and other skills vital to participating in the digital world. The Code Week Hackathon side events are scheduled to run from May to October and will include several different types of workshop. They are free of charge, you just have to sign up here. Come and learn more.","hackathon-greece.sections.11.events.makex.title.0":"Robotics Training Series by MakeX/MakeBlock","hackathon-greece.sections.11.events.makex.title.1":"Robotics Training Series 1 - Introduction to Robotics and Robotics Competitions by MakeX/MakeBlock","hackathon-greece.sections.11.events.makex.title.2":"Robotics Training Series 2 - Programming and Hardware Construction by MakeX/MakeBlock","hackathon-greece.sections.11.events.makex.title.3":"Robotics Training Series 3 – Award-winning Mentor Sharing by MakeX/MakeBlock","hackathon-greece.sections.11.events.makex.content.0":"MakeX, a global robotics competition platform presents a comprehensive series of educational robotics training to teachers and mentors who are interested in practical learning, STEAM education, programming and robotics competitions for students of all ages using cutting-edge software and hardware like mBot2, laserbox and mBlock5.","hackathon-greece.sections.11.events.makex.content.1":"From introduction to robotics, programming and hardware construction to award-winning mentor sharing, you will dive into the process of project-based learning and how to organize students to use completions platforms to solve real world problems. Teachers organizing robotics curriculums at school are welcome and will benefit from a deeper understanding of programming, computational thinking, pedagogical concepts, robot hardware, and troubleshooting techniques.","hackathon-greece.sections.11.events.makex.content.2":"here","hackathon-greece.sections.11.events.makex.content.3":"to register !","hackathon-greece.sections.11.events.makex.content.4":"More information:","hackathon-greece.sections.11.events.makex.content.5":"https://www.makex.cc/en","hackathon-greece.sections.11.events.makex.dates.0":"Date: 1st June, 11:00 CEST -> click","hackathon-greece.sections.11.events.makex.dates.1":"Date: 3rd June, 11:00 CEST -> click","hackathon-greece.sections.11.events.makex.dates.2":"Date: 8th June, 11:00 CEST -> click","hackathon-greece.sections.12.title":"About CODEWEEK.EU","hackathon-greece.sections.12.content.0":"EU Code Week (#EUCodeWeek) is a grassroots movement run by volunteers to promote digital literacy through activities linked to coding and computer science. It inspires and engages people to explore new ideas and innovation for the future. Activities for ","hackathon-greece.sections.12.content.1":"EU Code Week","hackathon-greece.sections.12.content.2":"take place all over the world between 9 and 24 October. ","hackathon-greece.sections.12.content.3":"The idea of the EU Code Week Hackathon is to show how concrete solutions come to life with the help of young people’s creativity, enthusiasm, fresh ideas and coding skills. The hackathons are created and co-organised by the","hackathon-greece.sections.12.content.4":"European Commission","hackathon-greece.sections.12.content.5":"and local","hackathon-greece.sections.12.content.6":"EU Code Week Ambassadors","hackathon-greece.sections.12.content.7":"The initiative is financed by","hackathon-greece.sections.12.content.8":"the European Parliament","hackathon-greece.sections.12.content.9":"Discover More","hackathon-greece.sections.winners.0":"Congratulations to all the participants of this first edition of the European Code Week hackathon, it was a real pleasure to have you with us. We hope you had as much fun as we did!","hackathon-greece.sections.winners.1":"A special big up to the winning teams. The teams selected for the final, which will take place the 9 October 2021, are the following:","hackathon-greece.sections.winners.2":"We look forward to seeing you there. Coaching and rewards guaranteed!","hackathon-greece.sections.winners.3":"Each national winner will face-off in a European clash of titans where each winning team will pitch their solution to a European jury during the official EU Code Week 9-24 October 2021. The European champion will, besides the glory, win additional IT equipment.","hackathon-greece.sections.focus.0":"Focus on the 1st round of the 24h online Hackathon:","hackathon-greece.sections.focus.1":"Introduction to the EU Code Week Hackathon Greece","hackathon-greece.sections.focus.2":"Reveal of the challenge for EU Code Week Hackathon Greece","hackathon-greece.sections.focus.3":"Pitch of solutions for the EU Code Week Hackathon Greece","hackathon-greece.sections.focus.4":"Announcement of winners of EU Code Week Hackathon Greece","hackathon-greece.sections.mentors.1.0":"Dimitrios Tzimas","hackathon-greece.sections.mentors.1.1":"Dimitrios Tzimas received the B.Sc degree in Informatics, Aristotle University of Thessaloniki, Greece, and the M.Sc degree in “Digital Signal Processing for Communications and Multimedia” University of Athens, Greece.","hackathon-greece.sections.mentors.1.2":"He is currently a PhD student at the Aristotle University of Thessaloniki. His research interests include Learning Analytics and MOOCs. He has published many scientific articles in journals and conference proceedings. He teaches Computer Science in secondary and higher education for the last 21 years. He is a co-author of 4 Greek books about computer programming.","hackathon-greece.sections.mentors.2.0":"Ioannis Papikas","hackathon-greece.sections.mentors.2.1":"Ioannis has entered the world of entrepreneurship around 8 years ago and helped build web applications with his team in various industries.","hackathon-greece.sections.mentors.2.2":'Also participated in the "Entrepreneur First" accelerator in London, building his own startup. Ioannis is currently a Senior Product Manager at Orfium.',"hackathon-greece.sections.mentors.3.0":"John Fanidis","hackathon-greece.sections.mentors.3.1":"My name is John Fanidis, I am 27 years old and I live in Thessaloniki, Greece. I have been passionate about development since my days in high school when I first started learning how to design and write simple web and mobile applications.","hackathon-greece.sections.mentors.3.2":"For the last 7 years I have been part of many amazing and incredibly talented teams in more than 20 web and mobile projects. I currently work both as Lead Frontend Engineer in Exandia, based in Thessaloniki and as a freelancer mobile developer.","hackathon-greece.sections.mentors.4.0":"Lida Papatzika","hackathon-greece.sections.mentors.4.1":"Lida Papatzika works at Alexander Innovation Zone S.A. as communications manager. She holds extensive experience in the fields of marketing and promotion of projects relevant to the regional innovation ecosystem.","hackathon-greece.sections.mentors.5.0":"Nikolas Goulias","hackathon-greece.sections.mentors.5.1":"Nikolas is the IBM - Red Hat Synergy Lead Architect in the UK&I empowering IBM with Red Hat's open source innovation and helping customers define strategies, architect and solve problems with technology. ","hackathon-greece.sections.mentors.6.0":"Achilleas Yfantis","hackathon-greece.sections.mentors.6.1":"Achilleas Yfantis have created various startups and worked in various companies such as Citrix.","hackathon-greece.sections.mentors.6.2":"I'm and automation security testing engineer, my field of knowledge includes: kybernetes, microservices, shell, containers, azure, ci/cd, github, Python, golang.","hackathon-greece.sections.mentors.7.0":"Alex Papadakis","hackathon-greece.sections.mentors.7.1":"Alex Papadakis is a Tech Consultant with experience of business development, sales and client account management in multiple international markets (UKI,Spain,Greece,Cyprus) across various business verticals.","hackathon-greece.sections.mentors.7.2":"He joined Amazon Web Services in 2019 as a Business Development Representative. Before joining Amazon he has worked for Google, Coca-Cola, Public Retail World S.A holding various roles in Sales and Marketing. He holds a BSc in International Business from University of Kent and an MSc in Management from CASS Business School.","hackathon-greece.sections.mentors.8.0":"Andriana Vera","hackathon-greece.sections.mentors.8.1":"My name is Andriana Vera, currently I am studying at the National & Kapodistrian University of Athens - Department of Informatics and Telecommunications.","hackathon-greece.sections.mentors.8.2":"At the moment, I work as a part-time modern workplace developer at Team CANDI/InfoQuest Technologies. Motivated and excited about the tech field, I enjoy spending time learning and sharing my knowledge.","hackathon-greece.sections.mentors.9.0":"Antigoni Kakouri","hackathon-greece.sections.mentors.9.1":"5th-year Electrical and Computer Engineering student at Aristotle University of Thessaloniki. Microsoft Learn Student Ambassador since January 2021.","hackathon-greece.sections.mentors.10.0":"Athanasios Dimou","hackathon-greece.sections.mentors.10.1":"Geomentor. Employee of the Ministry of Culture. Geoinformatic and Surveyor engineer with 2 Master deggrees. First place with his 4member team on NASA Space Apps 2017 in Greece.","hackathon-greece.sections.mentors.10.2":"Mentor, judge and supporter in many Hackathons, Datathlons (Nasa Space Apps, MIT Covid-19 Challenge, Healthahtlon, Tap2open, Copernicus 2019-2020, Ίδρυμα Ευγενίδου - Hack the Lab, Global Hack, Antivirus Hackathon, HackCoronaGreece and many more). President of Panhellenic Association of Graduates of GeoInformatics and Surveying Engineering","hackathon-greece.sections.mentors.11.0":"Despoina Ioannidou","hackathon-greece.sections.mentors.11.1":"Despoina Ioannidou, graduated with a PhD in Applied Mathematics from Cnam. After a few years of working as data-scientist and computer vision engineer, she co-founded an AI startup, Trayvisor where she’s leading the tech as CTO.","hackathon-greece.sections.mentors.11.2":"","hackathon-greece.sections.mentors.12.0":"Evangelia Iakovaki","hackathon-greece.sections.mentors.12.1":"My name is Evangelia Iakovaki, i am Physicist and I work as a Physicist in a public high school.I also work as a guidance counselor for students","hackathon-greece.sections.mentors.13.0":"Giannis Prapas","hackathon-greece.sections.mentors.13.1":"My name is Giannis Prapas and I am an Account Executive focusing on Digital Native Businesses in Amazon Web Services (AWS).","hackathon-greece.sections.mentors.13.2":"My job is to enable organizations to innovate and easily build sophisticated and scalable applications by using AWS services.","hackathon-greece.sections.mentors.14.0":"Ilias Karabasis","hackathon-greece.sections.mentors.14.1":"I am currently working as a Full Stack Software Engineer, while exploring the field of Data Science and AI. I also joined recently the MS Learn Student Ambassadors Program.","hackathon-greece.sections.mentors.14.2":"My expertise is in.NET Technologies, C# and Angular. I am familiar with Python as well several Machine Learning and Data Science Frameworks.","hackathon-greece.sections.mentors.15.0":"Dr. Konstantinos Fouskas","hackathon-greece.sections.mentors.15.1":"Dr. Konstantinos Fouskas, is Associate Profesor of “Digital Entrepreneurship and Technological Innovation” in the Department of Applied informatics at the University of Macedonia. He is teaching in the area of digital innovation and entrepreneurship, e-business and e-commerce, technology management and Digital transformation.","hackathon-greece.sections.mentors.15.2":"He is also teaching and collaborating with a number of other Academic Institutes in the areas of innovation and entrepreneurship in Greece and worldwide. His has over 50 research articles published in international peer-reviewed journals and conferences and he has participated in more than 30 funded International and National research projects related to entrepreneurship, innovation, and ICT.","hackathon-greece.sections.mentors.16.0":"Marina Stavrakantonaki","hackathon-greece.sections.mentors.16.1":"Greetings from AWS! I am a Public Policy Manager for Amazon Web Services, covering Greece and Cyprus. My educational and work experience background is in Public Policy, Business Strategy and my PhD on Epidemiology. I am happy to assist the students where they need me.","hackathon-greece.sections.mentors.17.0":"Nikos Zachariadis","hackathon-greece.sections.mentors.17.1":"Nikos is basically a chemist. He studied chemistry, but he soon discovered that chemical compounds are less interesting than human relationships. However, chemistry explains analytically the processes of life, so its reduction to “human compounds” leads to a wonderful way of thinking. In his professional career so far, for about 22 years, Nikos promotes and strengthens formal sales people to people who produce profitable work, with respect and commitment to their collaborators and customers. Nikos does not like numbers. Numbers are just a result that is easy to come, if people can overcome the concept of “opposite” and move on to the concept of “together”.","hackathon-greece.sections.mentors.17.2":"In the last 6 years he is living the dream of his life, applying his whole experience, devoting all his energy and enjoying every minute of the day at Lancom as Chief Commercial Officer. His experience is at your disposal, along with his passion for discussions and sharing ideas. You can find Nikos at Lancom’s HQ or send him an email at:nzachariadis@lancom.gr","hackathon-greece.sections.mentors.18.0":"Rodanthi Alexiou","hackathon-greece.sections.mentors.18.1":"My name is Rodanthi Alexiou and I currently study Computer Science in the University of Athens. I am a Microsoft Learn Student Ambassador, a General Organizer in Google’s Developer Student Club, a member of the Operations team of Mindspace NPO and my passions are Artificial Intelligence and Data Science. You can find my tech blogs here: http://www.rodanthi-alexiou.com/","hackathon-greece.sections.mentors.19.0":"Triantafyllos Paschaleris","hackathon-greece.sections.mentors.19.1":"A Business Intelligence Developer with passion about technology. A curious learner with love for volunteering in IT. Currently pursuing a master’s degree in Big Data Analytics.","hackathon-greece.sections.mentors.20.0":"Katerina Katmada","hackathon-greece.sections.mentors.20.1":"Katerina is a designer with coding background, skilled in visual identity, UI/UX and data visualization design. She has studied Computer Science (BSc, MSc) and Product Design (MSc), and currently works as a visual designer at Geekbot.","hackathon-greece.sections.mentors.20.2":"She is interested in creating accessible and enjoyable designs for various platforms, starting by defining user needs and translating them into tangible concepts, while reinforcing the brand’s voice through consistent visual touchpoints.","hackathon-greece.sections.mentors.21.0":"Alexandra Hatsiou","hackathon-greece.sections.mentors.21.1":"Alexandra is from Athens and works as a Business Development Representative at Amazon Web Services (AWS) in Madrid, supporting AWS customers based in Central Eastern Europe. She has an background in Economics and Management and before AWS she worked in Marketing.","hackathon-greece.sections.mentors.22.0":"Demetris Bakas","hackathon-greece.sections.mentors.22.1":"Demetris Bakas is a Gold Microsoft Learn Student Ambassador and a Computer Engineering student from the University of Patras, passionate with software engineering and Artificial Intelligence.","hackathon-greece.sections.mentors.23.0":"Dimitra Iordanidou","hackathon-greece.sections.mentors.23.1":"Dimitra Iordanidou has a financial background and works for Thessaloniki Innovation Zone as Head of Financial Services. She has a working experience in budgeting and financial monitoring. In addition, she was involved several years in running championships as a marathon runner and she has founded and organizes for a 4th year a project for runners and kids Koufalia Hill Run. She holds a master's degree in Business Administration (Bath University, UK) and a degree in Economics from the Aristotle University of Thessaloniki.","hackathon-greece.sections.mentors.24.0":"Dimitris Dimosiaris","hackathon-greece.sections.mentors.24.1":"Dimitris Dimosiaris is co-founder at Founderhood, which aims to impact every human life by giving to each tech startup founder, anywhere, access to the best resources. In the past he has been part of two startup projects. He is founding member in the first student-run entrepreneurship club in Greece, ThinkBiz. Founding member & ex-chairman of the Non-profit organization Mindspace which is based on National Technical University of Athens and its activities spread across Greece. Dimitris has extensive experience in designing and building innovative web products.","hackathon-greece.sections.mentors.25.0":"Georgia Margia","hackathon-greece.sections.mentors.25.1":"Professional in software engineering for over 6 years. Has built software, related to demand forecasting, which is used by large retail companies in U.S., England and Russia. Currently, working as a Database Reporting Analyst, dealing with storing, management and manipulation of data in order to create reports, analyze patterns and trends and provide findings to be taken into account for strategic and operational decisions and actions.","hackathon-greece.sections.mentors.26.0":"Konstantinos Chaliasos","hackathon-greece.sections.mentors.26.1":"My name is Konstantinos Chaliasos and I am based in Thessaloniki, Greece. I am passionate about all aspects of software development with a strong focus on web and mobile applications. For the past 10 years I have worked with teams all over the world on exciting projects with the goal of increasing our quality of life using tech.Currently working both as a Lead Software Engineer in Exandia and as a freelancer Software Engineer.","hackathon-greece.sections.mentors.27.0":"Kostas Kalogirou","hackathon-greece.sections.mentors.27.1":"CEO Exandia. Business executive with tech orientation, seasoned executive in visual communication and experienced design educator. Assistant curator at Thessaloniki Design Museum, has co-organised exhibitions in Europe and USA. Design educator and guest lecturer in design events around Greece and jury member in national and international graphic design competitions. Will assist Hackathon teams in business aspects of software product development and pitching.","hackathon-greece.sections.mentors.27.2":"","hackathon-greece.sections.mentors.28.0":"Maria-Anastasia Moustaka","hackathon-greece.sections.mentors.28.1":"Maria-Anastasia Moustaka is an undergraduate student in the Department of Computer Engineering at the University of Patras and Gold Microsoft Learn Student Ambassador. She has also been teaching robotics and programming for the last four years and has excelled in global robotics competitions with the Robotics Club of the University of Patras.","hackathon-greece.sections.mentors.29.0":"Mixalis Nikolaidis","hackathon-greece.sections.mentors.29.1":"I’m a Senior Software Engineer, Consultant and Trainer. I’m mainly interested in the development of innovative cloud solutions that take full advantage of the Microsoft technology stack. I have worked on multiple projects providing quality services both in team environments and independently.","hackathon-greece.sections.mentors.30.0":"Nikiforos Botis","hackathon-greece.sections.mentors.30.1":"Nikiforos works as a Solutions Architect (SA) at Amazon Web Services, looking after Public Sector customers in Greece and Cyprus. In his role as an SA, he is responsible for helping customers in their digital transformation journey by sharing best practices for architecting successful solutions at the AWS Cloud. Prior to joining AWS (2.5 years ago), Nikiforos pursued a MSc in Computer Science at Imperial College London and a BSc in Management Science and Technology at Athens University of Economics and Business.","hackathon-greece.sections.mentors.31.0":"Panayiotis Antoniou","hackathon-greece.sections.mentors.31.1":"Hi, my name is Panayiotis Antoniou, I am currently living in London where I work as a Solutions Architect in AWS. I was born and raised in Cyprus and I came to the UK to study my Bachelors in Computer Science. I have an interest in Analytics, Networking and Sustainability. Outside work I like playing racket sports, guitar and watching films.","hackathon-greece.sections.mentors.31.2":"","hackathon-greece.sections.mentors.32.0":"Anastasia Papadou","hackathon-greece.sections.mentors.32.1":"Anastasia is a Senior Business Development Representative at Amazon Web Services, supporting AWS growth across EMEA. She has 5 years of experience in implementing/selling cloud technologies and she has an academic background in Management Science and Technology.","hackathon-greece.sections.mentors.33.0":"Konstantina Tagkopoulou","hackathon-greece.sections.mentors.33.1":"Konstantina Tagkopoulou is passionate about entrepreneurship, and has experience working with startups and scaleups across Europe. Since she joined Amazon Web Services in 2019, she has supported startups on their cloud journey and go-to-market strategy. Prior to AWS, she worked for a B2B SaaS startup in London, focusing on commercial growth and strategic business development. She holds a BSc in Sociology from the University of Bath and an MSc in Sociology from the University of Oxford.","hackathon-greece.sections.mentors.34.0":"Dimitrios Kourtesis","hackathon-greece.sections.mentors.34.1":"Dimitrios Kourtesis is a technology entrepreneur and partner at Ideas Forward, a technology venture studio based in Thessaloniki, Greece. He enjoys exploring applications of new software technologies to interesting problems and exploring applications of new business models to interesting markets. Working in tech since 2005, he has collected experiences as R&D software engineer, PhD researcher, product development consultant, startup founder, advisor to growing businesses and angel investor.","hackathon-greece.sections.after.0":"What happens next?","hackathon-greece.sections.after.1":"The successful teams are now working on their prototype and will meet at the final hackathon in X to battle it out and decide the winner of the Greek Hackathon. Make sure to follow here and on social media for updates from the contestants’ teams! ","hackathon-greece.sections.after.2":"EU Code Week Hackathon Greece gave smart, passionate young people the chance to put their coding skills and creative ideas towards solving a concrete local challenge. After an initial 24-hour virtual hackathon, up to 10 teams advanced to the next stage. The finalists worked on their prototypes with some guidance from mentors over the summer and are now ready to compete! The Code Week hackathon journey concluded with a battle on skills, knowledge and creativity at the final hackathon on X September/October in [city].","hackathon-greece.sections.after.3":"The Winners","hackathon-greece.sections.after.4":"See all the winners","hackathon-greece.sections.after.5":"Gallery","hackathon-greece.sections.after.6":"Check out the ‘young hackers’ from Greece in action during the EU Code Week Hackathon","hackathon-greece.sections.after.7":"Support Wall","hackathon-greece.sections.after.8":"And thanks to the Tweets, shout-outs and all the support during the Hackathons! Check out some highlights!","hackathon-greece.sections.after.9":"Jury & Mentors","hackathon-greece.sections.after.10":"EU Code Week Hackathon in Greece brought together leading figures from the Worlds of business, IT, venture capital, education, as well as local, national and EU leaders, influencers and coaches to guide and support participants during the intense hackathon. A select number of jury members were chosen to decide the final winning team, according to relevant guidelines and competition rules.","hackathon-greece.sections.after.11":"Read the guidelines","hackathon-ireland.title":"EU Code Week HACKATHON","hackathon-ireland.subtitle":"Bring your ideas to life!","hackathon-ireland.misc.0":"Read the rules & code of conduct","hackathon-ireland.misc.1":"Registrations for both the EU Code Week Hackathon and Side Events will be handled by EU Survey.","hackathon-ireland.misc.2":"Our Partners","hackathon-ireland.sections.1.content.0":"Do you dream of creating the next big app? Do you know how innovative tech solutions can help your school, town, and region? If you want to be an entrepreneur or have a killer idea to pitch to the world but you don’t know where to start, then your waiting is at an end! ","hackathon-ireland.sections.1.content.1":"The EU Code Week Hackathon","hackathon-ireland.sections.1.content.2":"begins with a challenge to develop a code that solves a real-life challenge in just 24-hours. The 5 most successful teams will then receive training and mentoring from experts in this field, in order to prepare them for the second and final round, from which the ultimate winner will be selected. The lucky team will win further coaching and mentoring of their ideas and cool IT equipment. The winning team will also secure a spot at the European pitch where all the hackathon winners will present their ideas to a European jury during the official EU Code Week 9-24 October 2021.","hackathon-ireland.sections.1.content.3":"The EU Code Week hackathon is sure to fuel your curiosity, inspire your creativity, encourage your entrepreneurial spirit, and bring your ideas to life. ","hackathon-ireland.sections.2.title":"What to expect?","hackathon-ireland.sections.2.content.0":"Expert coaching","hackathon-ireland.sections.2.content.1":"Skills workshops","hackathon-ireland.sections.2.content.2":"Fun activities","hackathon-ireland.sections.2.content.3":"The chance to meet likeminded individuals","hackathon-ireland.sections.2.content.4":"The chance to win mentoring and coaching, as well as IT equipment ","hackathon-ireland.sections.2.content.5":"The chance to join the final hackathon and meet the best of the best, in person!","hackathon-ireland.sections.3.content.0":"Sign up now to","hackathon-ireland.sections.3.content.1":"EU Code Week Hackathon Ireland","hackathon-ireland.sections.3.content.2":"and bring your ideas to life!","hackathon-ireland.sections.4.title":"Propose challenges to be solved at the Hackathon","hackathon-ireland.sections.4.content.0":"Do you want to make your community the centre of green and sustainable innovation in Ireland? If so, propose a challenge that will be “hacked” at the Hackathon. Something concrete that will help you, your school, city or community.","hackathon-ireland.sections.4.content.1":"Propose a challenge","hackathon-ireland.sections.4.content.2":"Votes for the Irish challenge will start on the 24 of March.","hackathon-ireland.sections.5.title":"Vote on the challenges to be “hacked”","hackathon-ireland.sections.5.content.0":"The idea of the EU Code Week Hackathon is to show how concrete solutions come to life with the help of young people’s creativity, enthusiasm, innovation and coding skills. ‘Concrete’ means solving real problems – things that affect you, your school, community, city or specific challenges in your area.","hackathon-ireland.sections.5.content.1":"Vote on what matters most to you!","hackathon-ireland.sections.5.content.2":"The final challenge selected will be announced at the beginning of the Hackathon.","hackathon-ireland.sections.6.title":"The Challenge","hackathon-ireland.sections.6.content.0":"The idea of the EU Code Week Hackathon is to show how concrete solutions come to life with the help of young people’s creativity, enthusiasm, fresh ideas and coding skills. ‘Concrete’ means solving real problems – things that affect you, your school, community, city or specific challenges in your area.","hackathon-ireland.sections.6.content.1":"Based on public voting, the challenge for the Irish Hackathon is:","hackathon-ireland.sections.6.content.2":"Based on public voting, the challenge for the Irish Hackathon was:","hackathon-ireland.sections.7.title":"Resource Centre","hackathon-ireland.sections.8.title":"Programme","hackathon-ireland.sections.8.content.0.0":"The EU Code Week hackathon","hackathon-ireland.sections.8.content.0.1":"has three distinct rounds","hackathon-ireland.sections.8.content.1":"The 24-hour online hackathon. Out of all those competing, only 5 teams will be chosen to remain in the competition. Free online training and mentoring for the teams, during summer 2021.","hackathon-ireland.sections.8.content.2":"The final hackathon: Secondary school students aged 15-19 will compete in teams to solve a ‘local challenge’ selected from proposals submitted ahead of the first round.","hackathon-ireland.sections.8.content.3":"Each national winner will face-off in a European clash of titans where each winning team will pitch their solution to a European jury during the official EU Code Week 9-24 October 2021.","hackathon-ireland.sections.8.content.4":"In 2021, EU Code Week brings six extraordinary hackathons and invites students aged 15-19 in upper secondary school to form teams and use their coding skills to solve a local challenge. After 24 hours of hacking, each team will pitch their ideas to a panel of experts who will choose the 5 final teams. All teams will have the same amount of time, resources, and access to mentors and expertise in order to complete the challenge, but only 5 will get the chance to continue to the next round, develop their prototype, get expert coaching and take part in the final hackathon in the autumn. In the final the teams will battle it out to decide who wins IT accessories and the chance of mentoring and coaching to further develop their prototype.","hackathon-ireland.sections.8.content.5":"Your team is not guaranteed a place in the second round even if you successfully solve the challenge. Remember you are in competition with the other teams and the jury will take your method, use of time and quality of the prototype into consideration to select the successful candidates! ","hackathon-ireland.sections.8.content.6":"If your team is one of the 5 finalists, you can work on your idea over the summer. To assist you, we will offer you free trainings for development and UX Design. Your team will also get the help of a mentor who ensures that you are on the right path.","hackathon-ireland.sections.8.content.7":"The 5 finalist teams will meet online in a 24-hour hackathon. Here teams will compete to be the nation’s best young hackers and get the chance to win prizes such as cool IT equipment as well as further coaching and mentoring of their ideas.","hackathon-ireland.sections.9.title":"Practical Info","hackathon-ireland.sections.9.content.0":"The final hackathon will take place online the 23-24 September 2021 with the teams that succeed the first round.","hackathon-ireland.sections.9.content.1":"The Hackathon is free of charge.","hackathon-ireland.sections.10.title":"Jury & Mentors","hackathon-ireland.sections.10.content.0":"Imagine being in a virtual room full of designers, developers, creators, coders and business mentors, all with the same curiosity and drive as you. EU Code Week Hackathon Ireland brings together leading figures from the Worlds of business, IT, venture capital, education, as well as local, national and EU leaders, influencers and coaches to guide and support you and your team during this intensive marathon.","hackathon-ireland.sections.10.content.1":"Sign up now to","hackathon-ireland.sections.10.content.2":"EU Code Week Hackathon","hackathon-ireland.sections.10.content.3":"and make it happen!","hackathon-ireland.sections.11.title":"I don't know coding - what can I do?","hackathon-ireland.sections.11.content.0":"In connection with the hackathon, there will be workshops for beginners in coding, tinkering with hardware and robotics and so on for participants to learn some basics of computational thinking and coding. From April to September, we are organising side events with our amazing partners of the EU Code Week Hackathons and it’s free to take part! Check out the different activities and register to get the link.","hackathon-ireland.sections.11.events.makex.title.0":"Robotics Training Series by MakeX/MakeBlock","hackathon-ireland.sections.11.events.makex.title.1":"Robotics Training Series 1 - Introduction to Robotics and Robotics Competitions by MakeX/MakeBlock","hackathon-ireland.sections.11.events.makex.title.2":"Robotics Training Series 2 - Programming and Hardware Construction by MakeX/MakeBlock","hackathon-ireland.sections.11.events.makex.title.3":"Robotics Training Series 3 – Award-winning Mentor Sharing by MakeX/MakeBlock","hackathon-ireland.sections.11.events.makex.content.0":"MakeX, a global robotics competition platform presents a comprehensive series of educational robotics training to teachers and mentors who are interested in practical learning, STEAM education, programming and robotics competitions for students of all ages using cutting-edge software and hardware like mBot2, laserbox and mBlock5.","hackathon-ireland.sections.11.events.makex.content.1":"From introduction to robotics, programming and hardware construction to award-winning mentor sharing, you will dive into the process of project-based learning and how to organize students to use completions platforms to solve real world problems. Teachers organizing robotics curriculums at school are welcome and will benefit from a deeper understanding of programming, computational thinking, pedagogical concepts, robot hardware, and troubleshooting techniques.","hackathon-ireland.sections.11.events.makex.content.2":"here","hackathon-ireland.sections.11.events.makex.content.3":"to register !","hackathon-ireland.sections.11.events.makex.content.4":"More information:","hackathon-ireland.sections.11.events.makex.content.5":"https://www.makex.cc/en","hackathon-ireland.sections.11.events.makex.dates.0":"Date: 1st June, 11:00 CEST -> click","hackathon-ireland.sections.11.events.makex.dates.1":"Date: 3rd June, 11:00 CEST -> click","hackathon-ireland.sections.11.events.makex.dates.2":"Date: 8th June, 11:00 CEST -> click","hackathon-ireland.sections.12.title":"About CODEWEEK.EU","hackathon-ireland.sections.12.content.0":"EU Code Week (#EUCodeWeek) is a grassroots movement run by volunteers to promote digital literacy through activities linked to coding and computer science. It inspires and engages people to explore new ideas and innovation for the future. Activities for ","hackathon-ireland.sections.12.content.1":"EU Code Week","hackathon-ireland.sections.12.content.2":"take place all over the world between 9 and 24 October. ","hackathon-ireland.sections.12.content.3":"The idea of the EU Code Week Hackathon is to show how concrete solutions come to life with the help of young people’s creativity, enthusiasm, fresh ideas and coding skills. The hackathons are created and co-organised by the","hackathon-ireland.sections.12.content.4":"European Commission","hackathon-ireland.sections.12.content.5":"and local","hackathon-ireland.sections.12.content.6":"EU Code Week Ambassadors","hackathon-ireland.sections.12.content.7":"The initiative is financed by","hackathon-ireland.sections.12.content.8":"the European Parliament","hackathon-ireland.sections.12.content.9":"Discover More","hackathon-ireland.sections.winners.0":"Congratulations to all the participants of this first round of the European Code Week hackathon, it was a real pleasure to have you with us. We hope you had as much fun as we did!","hackathon-ireland.sections.winners.1":"A special big up to the winning teams. The teams selected for the online final in September are the following:","hackathon-ireland.sections.winners.2":"We look forward to seeing you there. Coaching and rewards guaranteed!","hackathon-ireland.sections.winners.3":"Each national winner will face-off in a European clash of titans where each winning team will pitch their solution to a European jury during the official EU Code Week 9-24 October 2021. The European champion will, besides the glory, win additional IT equipment.","hackathon-ireland.sections.focus.0":"Focus on the 1st round of the 24h online Hackathon:","hackathon-ireland.sections.focus.1":"Introduction to the EU Code Week Hackathon Greece","hackathon-ireland.sections.focus.2":"Reveal of the challenge for EU Code Week Hackathon Greece","hackathon-ireland.sections.focus.3":"Pitch of solutions for the EU Code Week Hackathon Greece","hackathon-ireland.sections.focus.4":"Announcement of winners of EU Code Week Hackathon Greece","hackathon-ireland.sections.after.0":"What happens next?","hackathon-ireland.sections.after.1":"The successful teams are now working on their prototype and will meet at the final hackathon in X to battle it out and decide the winner of X hackathon. Make sure to follow here and on social media for updates from the contestants’ teams! ","hackathon-ireland.sections.after.2":"EU Code Week Hackathon Ireland gave smart, passionate young people the chance to put their coding skills and creative ideas towards solving a concrete local challenge. After an initial 24-hour virtual hackathon, 5 teams advanced to the next stage. The finalists worked on their prototypes with some guidance from mentors over the summer and are now ready to compete! The Code Week hackathon journey concluded with a battle on skills, knowledge and creativity at the final hackathon on X September/October in [city].","hackathon-ireland.sections.after.3":"The Winners","hackathon-ireland.sections.after.4":"See all the winners","hackathon-ireland.sections.after.5":"Gallery","hackathon-ireland.sections.after.6":"Check out the ‘young hackers’ from Ireland in action during the EU Code Week Hackathon","hackathon-ireland.sections.after.7":"Support Wall","hackathon-ireland.sections.after.8":"And thanks to the Tweets, shout-outs and all the support during the Hackathons! Check out some highlights!","hackathon-ireland.sections.after.9":"Jury & Mentors","hackathon-ireland.sections.after.10":"EU Code Week Hackathon in Ireland brought together leading figures from the Worlds of business, IT, venture capital, education, as well as local, national and EU leaders, influencers and coaches to guide and support participants during the intense hackathon. A select number of jury members were chosen to decide the final winning team, according to relevant guidelines and competition rules.","hackathon-ireland.sections.after.11":"Read the guidelines","hackathon-ireland.sections.voting.title":"Vote now for your preferred challenge for EU Code Week Hackathon Ireland on 26-27 April 2021!","hackathon-ireland.sections.voting.challenges":"Challenges have been collected from all over the country to allow the students to solve a challenge for their local community. After careful deliberation, the top 3 challenges have been selected, and we leave it up to you to decide which challenge that may be solved through coding, developing, and design at the hackathon.","hackathon-ireland.sections.voting.deadline":"You can vote for your preferred challenge until 20 April 2021, where the final challenge is selected.","hackathon-ireland.sections.voting.header":"Vote for one of the three challenges:","hackathon-ireland.sections.voting.challenge":"challenge","hackathon-ireland.sections.voting.choices.0":"Digital inclusiveness for digital community groups","hackathon-ireland.sections.voting.choices.1":"Flood Tracking Along The River Shannon","hackathon-ireland.sections.voting.choices.2":"Fighting cyber bullying on Social Media","hackathon-ireland.sections.voting.reveal-date":"The challenge is revealed after the opening of the online hackathon on 26 April.","hackathon-ireland.sections.voting.thanks.0":"Thanks for voting!","hackathon-ireland.sections.voting.thanks.1":"You can find out which challenge is selected after 26. April on the EU Code Week Hackathon website.","hackathon-italy.title":"EU Code Week HACKATHON","hackathon-italy.subtitle":"Bring your ideas to life!","hackathon-italy.misc.0":"Read the rules & code of conduct","hackathon-italy.misc.1":"Registrations for both the EU Code Week Hackathon and Side Events will be handled by EU Survey.","hackathon-italy.misc.2":"Our Partners","hackathon-italy.sections.1.content.0":"Do you dream of creating the next big app? Do you know how innovative tech solutions can help your school, town, and region? If you want to be an entrepreneur or have a killer idea to pitch to the world but you don’t know where to start, then your waiting is at an end! ","hackathon-italy.sections.1.content.1":"The EU Code Week Hackathon","hackathon-italy.sections.1.content.2":"begins with a challenge to develop a code that solves a real-life challenge in just 24-hours. The 10 most successful teams will then receive training and mentoring from experts in this field, in order to prepare them for the second and final round, from which the ultimate winner will be selected. The lucky team will win further coaching and mentoring of their ideas and cool IT equipment. The winning team will also secure a spot at the European pitch where all the hackathon winners will present their ideas to a European jury during the official EU Code Week 9-24 October 2021.","hackathon-italy.sections.1.content.3":"The EU Code Week hackathon is sure to fuel your curiosity, inspire your creativity, encourage your entrepreneurial spirit, and bring your ideas to life. ","hackathon-italy.sections.2.title":"What to expect?","hackathon-italy.sections.2.content.0":"Expert coaching","hackathon-italy.sections.2.content.1":"Skills workshops","hackathon-italy.sections.2.content.2":"Fun activities","hackathon-italy.sections.2.content.3":"The chance to meet likeminded individuals","hackathon-italy.sections.2.content.4":"The chance to win mentoring and coaching, as well as IT equipment ","hackathon-italy.sections.2.content.5":"The chance to join the final hackathon and meet the best of the best, in person!","hackathon-italy.sections.3.content.0":"Sign up now to","hackathon-italy.sections.3.content.1":"EU Code Week Hackathon Italy","hackathon-italy.sections.3.content.2":"and bring your ideas to life!","hackathon-italy.sections.4.title":"Propose challenges to be solved at the Hackathon","hackathon-italy.sections.4.content.0":"Do you want to make your community the centre of green and sustainable innovation in Italy? If so, propose a challenge that will be “hacked” at the Hackathon. Something concrete that will help you, your school, city or community.","hackathon-italy.sections.4.content.1":"Propose a challenge","hackathon-italy.sections.4.content.2":"Votes for the Italian challenge will start on the 9th of April.","hackathon-italy.sections.5.title":"Vote on the challenges to be “hacked”","hackathon-italy.sections.5.content.0":"The idea of the EU Code Week Hackathon is to show how concrete solutions come to life with the help of young people’s creativity, enthusiasm, innovation and coding skills. ‘Concrete’ means solving real problems – things that affect you, your school, community, city or specific challenges in your area.","hackathon-italy.sections.5.content.1":"Vote on what matters most to you!","hackathon-italy.sections.5.content.2":"The final challenge selected will be announced at the beginning of the Hackathon.","hackathon-italy.sections.6.title":"The Challenge","hackathon-italy.sections.6.content.0":"The idea of the EU Code Week Hackathon is to show how concrete solutions come to life with the help of young people’s creativity, enthusiasm, fresh ideas and coding skills. ‘Concrete’ means solving real problems – things that affect you, your school, community, city or specific challenges in your area.","hackathon-italy.sections.6.content.1":"Based on public voting, the challenge for the Italian Hackathon is:","hackathon-italy.sections.6.content.2":"Based on public voting, the challenge for the Italian Hackathon was:","hackathon-italy.sections.7.title":"Resource Centre","hackathon-italy.sections.8.title":"Programme","hackathon-italy.sections.8.content.0.0":"The EU Code Week hackathon","hackathon-italy.sections.8.content.0.1":"has three distinct rounds","hackathon-italy.sections.8.content.1":"The 24-hour online hackathon. Out of all those competing, only 12 teams will be chosen to remain in the competition. Free online training and mentoring for all 12 teams, during summer 2021.","hackathon-italy.sections.8.content.2":"The final: 12 teams will have all received equal training in the second round, but only one will win. Secondary school students aged 15-19 will compete in teams to solve a ‘local challenge’ selected from proposals submitted ahead of the first round.","hackathon-italy.sections.8.content.3":"Each national winner will face-off in a European clash of titans where each winning team will pitch their solution to a European jury during the official EU Code Week 9-24 October 2021.","hackathon-italy.sections.8.content.4":"In 2021, EU Code Week brings six extraordinary hackathons and invites students aged 15-19 in upper secondary school to form teams and use their coding skills to solve a local challenge. After 24 hours of hacking, each team will pitch their ideas to a panel of experts who will choose the 12 final teams. All teams will have the same amount of time, resources, and access to mentors and expertise in order to complete the challenge, but only 12 will get the chance to continue to the next round, develop their prototype, get expert coaching and take part in the final hackathon in the autumn. In the final the teams will battle it out to decide who wins IT accessories and the chance of mentoring and coaching to further develop their prototype.","hackathon-italy.sections.8.content.5":"Your team is not guaranteed a place in the second round even if you successfully solve the challenge. Remember you are in competition with the other teams and the jury will take your method, use of time and quality of the prototype into consideration to select the successful candidates! ","hackathon-italy.sections.8.content.6":"If your team is one of the 12 finalists, you can work on your idea over the summer. To assist you, we will offer you free trainings for development and UX Design. Your team will also get the help of a mentor who ensures that you are on the right path.","hackathon-italy.sections.8.content.7":"The 12 finalist teams will meet in a 12-hour hackathon on 24-25 September. Here teams will compete to be the nation’s best young hackers and get the chance to win prizes such as cool IT equipment as well as further coaching and mentoring of their ideas.","hackathon-italy.sections.9.title":"Practical Info","hackathon-italy.sections.9.content.0":"The Hackathon will take place on the 24-25 September 2021.","hackathon-italy.sections.9.content.1":"The Hackathon is free of charge.","hackathon-italy.sections.10.title":"Jury & Mentors","hackathon-italy.sections.10.content.0":"Imagine being in a virtual room full of designers, developers, creators, coders and business mentors, all with the same curiosity and drive as you. EU Code Week Hackathon Italy brings together leading figures from the Worlds of business, IT, venture capital, education, as well as local, national and EU leaders, influencers and coaches to guide and support you and your team during this intensive marathon.","hackathon-italy.sections.10.content.1":"Sign up now to","hackathon-italy.sections.10.content.2":"EU Code Week Hackathon","hackathon-italy.sections.10.content.3":"and make it happen!","hackathon-italy.sections.11.title":"Side events","hackathon-italy.sections.11.content.0":"Do these themes interest you but you don’t know how to code? Sign up to our side events and discover the thrill of coding, innovation, entrepreneurship and other skills vital to participating in the digital world. The Code Week hackathon side events are scheduled to run from May to October and will include several different types of workshop. They are free of charge, you just have to sign up here. Come and learn more.","hackathon-italy.sections.11.events.minecraft.title":"Minecraft Education Edition Teacher Academy: Design Your Own Multimedia Learning Environment!","hackathon-italy.sections.11.events.minecraft.abstract":"The Minecraft: Education Edition Teacher Academy course will focus on using Minecraft: Education Edition as a teaching and learning tool designed to support important pedagogical practices in the learning environment. At the end of this learning path, you will become a Minecraft certified teacher and receive the badge.","hackathon-italy.sections.11.events.minecraft.content.0":"Path participants will learn:","hackathon-italy.sections.11.events.minecraft.content.1":"Basic mechanics of downloading, setting up and logging into Minecraft: Education Edition","hackathon-italy.sections.11.events.minecraft.content.2":"In-game play by exploring movement within the game as well as learning the process for placing and breaking blocks","hackathon-italy.sections.11.events.minecraft.content.3":"Key features of world management and classroom settings","hackathon-italy.sections.11.events.minecraft.content.4":"Tips on classroom management and readiness","hackathon-italy.sections.11.events.minecraft.content.5":"An understanding of basic in-game coding","hackathon-italy.sections.11.events.minecraft.content.6":"Skills that allow for learner collaboration, creativity, and communication","hackathon-italy.sections.11.events.minecraft.content.7":"How to incorporate engineering practices","hackathon-italy.sections.11.events.minecraft.content.8":"Chemistry and Science in-game functionality","hackathon-italy.sections.11.events.minecraft.content.9":"How the game supports learner inquiry and curiosity","hackathon-italy.sections.11.events.minecraft.date":"Friday 22 October from 17.00-18.30.","hackathon-italy.sections.11.events.minecraft.participate":"To participate:","hackathon-italy.sections.11.events.makex.title.0":"Robotics Training Series by MakeX/MakeBlock","hackathon-italy.sections.11.events.makex.title.1":"Robotics Training Series 1 - Introduction to Robotics and Robotics Competitions by MakeX/MakeBlock","hackathon-italy.sections.11.events.makex.title.2":"Robotics Training Series 2 - Programming and Hardware Construction by MakeX/MakeBlock","hackathon-italy.sections.11.events.makex.title.3":"Robotics Training Series 3 – Award-winning Mentor Sharing by MakeX/MakeBlock","hackathon-italy.sections.11.events.makex.content.0":"MakeX, a global robotics competition platform presents a comprehensive series of educational robotics training to teachers and mentors who are interested in practical learning, STEAM education, programming and robotics competitions for students of all ages using cutting-edge software and hardware like mBot2, laserbox and mBlock5.","hackathon-italy.sections.11.events.makex.content.1":"From introduction to robotics, programming and hardware construction to award-winning mentor sharing, you will dive into the process of project-based learning and how to organize students to use completions platforms to solve real world problems. Teachers organizing robotics curriculums at school are welcome and will benefit from a deeper understanding of programming, computational thinking, pedagogical concepts, robot hardware, and troubleshooting techniques.","hackathon-italy.sections.11.events.makex.content.2":"here","hackathon-italy.sections.11.events.makex.content.3":"to register !","hackathon-italy.sections.11.events.makex.content.4":"More information:","hackathon-italy.sections.11.events.makex.content.5":"https://www.makex.cc/en","hackathon-italy.sections.11.events.makex.dates.0":"Date: 1st June, 11:00 CEST -> click","hackathon-italy.sections.11.events.makex.dates.1":"Date: 3rd June, 11:00 CEST -> click","hackathon-italy.sections.11.events.makex.dates.2":"Date: 8th June, 11:00 CEST -> click","hackathon-italy.sections.12.title":"About CODEWEEK.EU","hackathon-italy.sections.12.content.0":"EU Code Week (#EUCodeWeek) is a grassroots movement run by volunteers to promote digital literacy through activities linked to coding and computer science. It inspires and engages people to explore new ideas and innovation for the future. Activities for ","hackathon-italy.sections.12.content.1":"EU Code Week","hackathon-italy.sections.12.content.2":"take place all over the world between 9 and 24 October. ","hackathon-italy.sections.12.content.3":"The idea of the EU Code Week Hackathon is to show how concrete solutions come to life with the help of young people’s creativity, enthusiasm, fresh ideas and coding skills. The hackathons are created and co-organised by the","hackathon-italy.sections.12.content.4":"European Commission","hackathon-italy.sections.12.content.5":"and local","hackathon-italy.sections.12.content.6":"EU Code Week Ambassadors","hackathon-italy.sections.12.content.7":"The initiative is financed by","hackathon-italy.sections.12.content.8":"the European Parliament","hackathon-italy.sections.12.content.9":"Discover More","hackathon-italy.sections.winners.0":"Congratulations to all the participants of this first edition of the European Code Week hackathon, it was a real pleasure to have you with us. We hope you had as much fun as we did!","hackathon-italy.sections.winners.1":"A special big up to the winning teams. The teams selected for the final, which will take place the 24-25 September, are the following: ","hackathon-italy.sections.winners.2":"We look forward to seeing you there. Coaching and rewards guaranteed!","hackathon-italy.sections.winners.3":"Each national winner will face-off in a European clash of titans where each winning team will pitch their solution to a European jury during the official EU Code Week 9-24 October 2021. The European champion will, besides the glory, win additional IT equipment.","hackathon-italy.sections.focus.0":"About the 24h online Hackathon:","hackathon-italy.sections.focus.1":"Introduction to the EU Code Week Hackathon Italy","hackathon-italy.sections.focus.2":"Reveal of the challenge for EU Code Week Hackathon Italy","hackathon-italy.sections.focus.3":"Pitch of solutions for the EU Code Week Hackathon Italy","hackathon-italy.sections.focus.4":"Announcement of winners of EU Code Week Hackathon Italy","hackathon-italy.sections.mentors.1.0":"Francesco Piero Paolicelli","hackathon-italy.sections.mentors.1.1":"Francesco Piero Paolicelli, known as Piersoft in every socials network.","hackathon-italy.sections.mentors.1.2":"Coding and Making expert, Arduino Educational Trainer, Data Scientist and Data Viz Expert","hackathon-italy.sections.mentors.1.3":"University professor at LUM (University Luis Monnet )School of Management for OpenData and OpenGovernment","hackathon-italy.sections.mentors.1.4":"Champion of CoderDojo club Lecce","hackathon-italy.sections.mentors.2.0":"Gianluca Orpello","hackathon-italy.sections.mentors.2.1":"Hi, my name is Gianluca Orpello. I’m an Apple Certified Trainer and a freelance Mentor in Italy. I specialise in iOS, watchOS, macOS and tvOS app design and develop, web and app design, Client-Server protocol & API design.","hackathon-italy.sections.mentors.2.2":"I also have knowledge in User Interaction & User Experience, and Project Management.","hackathon-italy.sections.mentors.3.0":"Luca Versari","hackathon-italy.sections.mentors.3.1":"Luca Versari works on the JPEG XL standard as a Software Engineer for Google.","hackathon-italy.sections.mentors.3.2":"In the past, he tutored Italian Computer Science Olympiads students preparing for international competitions.","hackathon-italy.sections.mentors.4.0":"Alessandra Valenti","hackathon-italy.sections.mentors.4.1":"Alessandra Valenti is Customer Success Manager for Microsoft Education. Expert in new technologies for teaching, she deals in particular with the design and development of multimedia languages necessary to train the professionals of the future through the knowledge of digital tools for the innovative school.","hackathon-italy.sections.mentors.4.2":"Through training activities for Italian students and teachers it promotes interactive solutions and learning experiences related to the world of education and culture, from the video game of Minecraft Education Edition to the development of a more sustainable and inclusive teaching. In the past she trained programming and robotics, e-learning platforms, virtual reality and STEM in schools.","hackathon-italy.sections.mentors.5.0":"Maura Sandri","hackathon-italy.sections.mentors.5.1":"Research technologist of the National Institute of Astrophysics (INAF), coordinator of the working group for the development of coding and educational robotic resources for the school, web admin for play.inaf.it, Italian leading teacher, mentor of the CoderDojo Ozzano dell'Emilia (BO).","hackathon-italy.sections.mentors.6.0":"Paolo Ganci","hackathon-italy.sections.mentors.6.1":"Once only a computer programmer, today a passionate supporter of coding as Co-Champion of CoderDojo Etneo in Catania.","hackathon-italy.sections.mentors.7.0":"Christel Sirocchi","hackathon-italy.sections.mentors.7.1":"Christel Sirocchi is a biotechnologist and genetic engineer turned computer scientist. She gained experience as a researcher and educator in the UK, Belgium and Türkiye, where she managed the science department in one of the most prominent international high schools and served as advisor for the Cambridge International Science Competition. She is an avid learner and passionate about STEM education, data science and data visualization.","hackathon-italy.sections.after.0":"What happens next?","hackathon-italy.sections.after.1":"The successful teams are now working on their prototype and will meet at the final hackathon in X to battle it out and decide the winner of the Italian Hackathon. Make sure to follow here and on social media for updates from the contestants’ teams! ","hackathon-italy.sections.after.2":"EU Code Week Hackathon Italy gave smart, passionate young people the chance to put their coding skills and creative ideas towards solving a concrete local challenge. After an initial 24-hour virtual hackathon, up to 10 teams advanced to the next stage. The finalists worked on their prototypes with some guidance from mentors over the summer and are now ready to compete! The Code Week hackathon journey concluded with a battle on skills, knowledge and creativity at the final hackathon on X September/October in [city].","hackathon-italy.sections.after.3":"The Winners","hackathon-italy.sections.after.4":"See all the winners","hackathon-italy.sections.after.5":"Gallery","hackathon-italy.sections.after.6":"Check out the ‘young hackers’ from Italy in action during the EU Code Week Hackathon","hackathon-italy.sections.after.7":"Support Wall","hackathon-italy.sections.after.8":"And thanks to the Tweets, shout-outs and all the support during the Hackathons! Check out some highlights!","hackathon-italy.sections.after.9":"Jury & Mentors","hackathon-italy.sections.after.10":"EU Code Week Hackathon in Italy brought together leading figures from the Worlds of business, IT, venture capital, education, as well as local, national and EU leaders, influencers and coaches to guide and support participants during the intense hackathon. A select number of jury members were chosen to decide the final winning team, according to relevant guidelines and competition rules.","hackathon-italy.sections.after.11":"Read the guidelines","hackathon-latvia.title":"EU Code Week HACKATHON","hackathon-latvia.subtitle":"Bring your ideas to life!","hackathon-latvia.misc.0":"Read the rules & code of conduct","hackathon-latvia.misc.1":"Registrations for both the EU Code Week Hackathon and Side Events will be handled by EU Survey.","hackathon-latvia.misc.2":"Our Partners","hackathon-latvia.sections.1.content.0":"Do you dream of creating the next big app? Do you know how innovative tech solutions can help your school, town, and region? If you want to be an entrepreneur or have a killer idea to pitch to the world but you don’t know where to start, then your waiting is at an end! ","hackathon-latvia.sections.1.content.1":"The EU Code Week Hackathon","hackathon-latvia.sections.1.content.2":"begins with a challenge to develop a code that solves a real-life challenge in just 24-hours. The 10 most successful teams will then receive training and mentoring from experts in this field, in order to prepare them for the second and final round, from which the ultimate winner will be selected. The lucky team will win further coaching and mentoring of their ideas and cool IT equipment. The winning team will also secure a spot at the European pitch where all the hackathon winners will present their ideas to a European jury during the official EU Code Week 9-24 October 2021.","hackathon-latvia.sections.1.content.3":"The EU Code Week hackathon is sure to fuel your curiosity, inspire your creativity, encourage your entrepreneurial spirit, and bring your ideas to life. ","hackathon-latvia.sections.2.title":"What to expect?","hackathon-latvia.sections.2.content.0":"Expert coaching","hackathon-latvia.sections.2.content.1":"Skills workshops","hackathon-latvia.sections.2.content.2":"Fun activities","hackathon-latvia.sections.2.content.3":"The chance to meet likeminded individuals","hackathon-latvia.sections.2.content.4":"The chance to win mentoring and coaching, as well as IT equipment ","hackathon-latvia.sections.2.content.5":"The chance to join the final hackathon and meet the best of the best, in person!","hackathon-latvia.sections.3.content.0":"Sign up now to","hackathon-latvia.sections.3.content.1":"EU Code Week Hackathon Latvia","hackathon-latvia.sections.3.content.2":"and bring your ideas to life!","hackathon-latvia.sections.4.title":"Propose challenges to be solved at the Hackathon","hackathon-latvia.sections.4.content.0":"Do you want to make your community the centre of green and sustainable innovation in Latvia? If so, propose a challenge that will be “hacked” at the Hackathon. Something concrete that will help you, your school, city or community.","hackathon-latvia.sections.4.content.1":"Propose a challenge","hackathon-latvia.sections.4.content.2":"Votes for the Latvian challenge will start on the 30th of April.","hackathon-latvia.sections.5.title":"Vote on the challenges to be “hacked”","hackathon-latvia.sections.5.content.0":"The idea of the EU Code Week Hackathon is to show how concrete solutions come to life with the help of young people’s creativity, enthusiasm, innovation and coding skills. ‘Concrete’ means solving real problems – things that affect you, your school, community, city or specific challenges in your area.","hackathon-latvia.sections.5.content.1":"Vote on what matters most to you!","hackathon-latvia.sections.5.content.2":"The final challenge selected will be announced at the beginning of the Hackathon.","hackathon-latvia.sections.6.title":"The Challenge","hackathon-latvia.sections.6.content.0":"The idea of the EU Code Week Hackathon is to show how concrete solutions come to life with the help of young people’s creativity, enthusiasm, fresh ideas and coding skills. ‘Concrete’ means solving real problems – things that affect you, your school, community, city or specific challenges in your area.","hackathon-latvia.sections.6.content.1":"Based on public voting, the challenge for the Latvian Hackathon is:","hackathon-latvia.sections.6.content.2":"Based on public voting, the challenge for the Latvian Hackathon was:","hackathon-latvia.sections.7.title":"Resource Centre","hackathon-latvia.sections.8.title":"Programme","hackathon-latvia.sections.8.content.0.0":"The EU Code Week hackathon","hackathon-latvia.sections.8.content.0.1":"has three distinct rounds","hackathon-latvia.sections.8.content.1":"The 24-hour online hackathon. Out of all those competing, only 10 teams will be chosen to remain in the competition. Free online training and mentoring for all 10 teams, during summer 2021.","hackathon-latvia.sections.8.content.2":"The final hackathon. 10 teams will have all received equal training in the second round, but only one will win. Secondary school students aged 15-19 will compete in teams to solve a ‘local challenge’ selected from proposals submitted ahead of the first round.","hackathon-latvia.sections.8.content.3":"Each national winner will face-off in a European clash of titans where each winning team will pitch their solution to a European jury during the official EU Code Week 9-24 October 2021.","hackathon-latvia.sections.8.content.4":"In 2021, EU Code Week brings six extraordinary hackathons and invites students aged 15-19 in upper secondary school to form teams and use their coding skills to solve a local challenge. After 24 hours of hacking, each team will pitch their ideas to a panel of experts who will choose the 10 teams that will meet in the finals. The top three teams will additionally receive valuable prizes from the hackathon supporters. First place winners will receive Raspberry Pi 4 Model B Starter KITs from the IT Education Foundation, second place winners will receive an Arduino Starter KITs from the IT Education Foundation, and third place winners will receive DRONIE drones from the IT company Cognizant Latvia.","hackathon-latvia.sections.8.content.5":"All teams will have the same amount of time, resources, and access to mentors and expertise in order to complete the challenge, but only 10 will get the chance to continue to the next round, develop their prototype, get expert coaching and take part in the final hackathon in the autumn. In the final the teams will battle it out to decide who wins IT accessories and the chance of mentoring and coaching to further develop their prototype.","hackathon-latvia.sections.8.content.6":"Your team is not guaranteed a place in the second round even if you successfully solve the challenge. Remember you are in competition with the other teams and the jury will take your method, use of time and quality of the prototype into consideration to select the successful candidates!","hackathon-latvia.sections.8.content.7":"If your team is one of the 10 finalists, you can work on your idea over the summer. To assist you, we will offer you free trainings for development and UX Design. Your team will also get the help of a mentor who ensures that you are on the right path.","hackathon-latvia.sections.8.content.8":"The 10 finalist teams will meet in a 12-hour hackathon which will take place online. Here teams will compete to be the nation’s best young hackers and get the chance to win prizes such as cool IT equipment as well as further coaching and mentoring of their ideas.","hackathon-latvia.sections.9.title":"Practical Info","hackathon-latvia.sections.9.content.0":"The hackathon will take place online on 1 October 2021","hackathon-latvia.sections.9.content.1":"The Hackathon is free of charge.","hackathon-latvia.sections.10.title":"Jury & Mentors","hackathon-latvia.sections.10.content.0":"Imagine being in a virtual room full of designers, developers, creators, coders and business mentors, all with the same curiosity and drive as you. EU Code Week Hackathon Latvia brings together leading figures from the Worlds of business, IT, venture capital, education, as well as local, national and EU leaders, influencers and coaches to guide and support you and your team during this intensive marathon.","hackathon-latvia.sections.10.content.1":"Sign up now to","hackathon-latvia.sections.10.content.2":"EU Code Week Hackathon","hackathon-latvia.sections.10.content.3":"and make it happen!","hackathon-latvia.sections.11.title":"Side events","hackathon-latvia.sections.11.content.0":"Do these themes interest you but you don’t know how to code? Sign up to our side events and discover the thrill of coding, innovation, entrepreneurship and other skills vital to participating in the digital world. The Code Week hackathon side events are scheduled to run from May to October and will include several different types of workshop. They are free of charge, you just have to sign up here. Come and learn more.","hackathon-latvia.sections.11.events.makex.title.0":"Robotics Training Series by MakeX/MakeBlock","hackathon-latvia.sections.11.events.makex.title.1":"Robotics Training Series 1 - Introduction to Robotics and Robotics Competitions by MakeX/MakeBlock","hackathon-latvia.sections.11.events.makex.title.2":"Robotics Training Series 2 - Programming and Hardware Construction by MakeX/MakeBlock","hackathon-latvia.sections.11.events.makex.title.3":"Robotics Training Series 3 – Award-winning Mentor Sharing by MakeX/MakeBlock","hackathon-latvia.sections.11.events.makex.content.0":"MakeX, a global robotics competition platform presents a comprehensive series of educational robotics training to teachers and mentors who are interested in practical learning, STEAM education, programming and robotics competitions for students of all ages using cutting-edge software and hardware like mBot2, laserbox and mBlock5.","hackathon-latvia.sections.11.events.makex.content.1":"From introduction to robotics, programming and hardware construction to award-winning mentor sharing, you will dive into the process of project-based learning and how to organize students to use completions platforms to solve real world problems. Teachers organizing robotics curriculums at school are welcome and will benefit from a deeper understanding of programming, computational thinking, pedagogical concepts, robot hardware, and troubleshooting techniques.","hackathon-latvia.sections.11.events.makex.content.2":"here","hackathon-latvia.sections.11.events.makex.content.3":"to register !","hackathon-latvia.sections.11.events.makex.content.4":"More information:","hackathon-latvia.sections.11.events.makex.content.5":"https://www.makex.cc/en","hackathon-latvia.sections.11.events.makex.dates.0":"Date: 1st June, 11:00 CEST -> click","hackathon-latvia.sections.11.events.makex.dates.1":"Date: 3rd June, 11:00 CEST -> click","hackathon-latvia.sections.11.events.makex.dates.2":"Date: 8th June, 11:00 CEST -> click","hackathon-latvia.sections.12.title":"About CODEWEEK.EU","hackathon-latvia.sections.12.content.0":"EU Code Week (#EUCodeWeek) is a grassroots movement run by volunteers to promote digital literacy through activities linked to coding and computer science. It inspires and engages people to explore new ideas and innovation for the future. Activities for ","hackathon-latvia.sections.12.content.1":"EU Code Week","hackathon-latvia.sections.12.content.2":"take place all over the world between 9 and 24 October. ","hackathon-latvia.sections.12.content.3":"The idea of the EU Code Week Hackathon is to show how concrete solutions come to life with the help of young people’s creativity, enthusiasm, fresh ideas and coding skills. The hackathons are created and co-organised by the","hackathon-latvia.sections.12.content.4":"European Commission","hackathon-latvia.sections.12.content.5":"and local","hackathon-latvia.sections.12.content.6":"EU Code Week Ambassadors","hackathon-latvia.sections.12.content.7":"The initiative is financed by","hackathon-latvia.sections.12.content.8":"the European Parliament","hackathon-latvia.sections.12.content.9":"Discover More","hackathon-latvia.sections.winners.0":"Congratulations to all the participants of this first edition of the European Code Week hackathon, it was a real pleasure to have you with us. We hope you had as much fun as we did!","hackathon-latvia.sections.winners.1":"A special big up to the winning teams. The teams selected for the final, which will take place on October 1, are the following:","hackathon-latvia.sections.winners.2":"We look forward to seeing you there. Coaching and rewards guaranteed!","hackathon-latvia.sections.winners.3":"Each national winner will face-off in a European clash of titans where each winning team will pitch their solution to a European jury during the official EU Code Week 9-24 October 2021. The European champion will, besides the glory, win additional IT equipment.","hackathon-latvia.sections.focus.0":"About the 24h online Hackathon:","hackathon-latvia.sections.focus.1":"Introduction to the EU Code Week Hackathon Latvia","hackathon-latvia.sections.focus.2":"Reveal of the challenge for EU Code Week Hackathon Latvia","hackathon-latvia.sections.focus.3":"Pitch of solutions for the EU Code Week Hackathon Latvia","hackathon-latvia.sections.focus.4":"Announcement of winners of EU Code Week Hackathon Latvia","hackathon-latvia.sections.mentors.1.0":"Līna Sarma ","hackathon-latvia.sections.mentors.1.1":"Computer Scientist and Creative Coder, Co creator of Riga Tech Girls. ","hackathon-latvia.sections.mentors.2.0":"Jānis Mozgis","hackathon-latvia.sections.mentors.2.1":"Senior Developer at","hackathon-latvia.sections.mentors.2.2":"loves beautifully crafted code.","hackathon-latvia.sections.mentors.3.0":"Jānis Cimbulis","hackathon-latvia.sections.mentors.3.1":"Front-end Developer, Learn IT coding school teacher.","hackathon-latvia.sections.mentors.4.0":"Angela Jafarova","hackathon-latvia.sections.mentors.4.1":"Director of the Coding school Datorium. Digital skills trainer, EU CodeWeek leading teacher in Latvia.","hackathon-latvia.sections.mentors.5.0":"Elchin Jafarov","hackathon-latvia.sections.mentors.5.1":"Founder of the Datorium Coding School. Digital transformation, Data automation, Business intelligence.","hackathon-latvia.sections.mentors.6.0":"Janis Knets","hackathon-latvia.sections.mentors.6.1":"Technical architect at Accenture Latvia, more than 10 years of experience in IT field working with world-class companies","hackathon-latvia.sections.mentors.7.0":"Ance Kancere","hackathon-latvia.sections.mentors.7.1":"Project Manager at IT Education Foundation, Teacher of programming and design&technology","hackathon-latvia.sections.mentors.8.0":"Kaspars Eglītis","hackathon-latvia.sections.mentors.8.1":"Admin at University of Latvia Med Tech makerspace DF LAB & Jr Innovation Project Manager at Accenture","hackathon-latvia.sections.mentors.9.0":"Paula Elksne","hackathon-latvia.sections.mentors.9.1":"Assistant Director Bachelor Programs, RTU Riga Business School","hackathon-latvia.sections.mentors.10.0":"Linda Sinka","hackathon-latvia.sections.mentors.10.1":"Founder of Learn IT coding school for children, EU CodeWeek ambassador in Latvia","hackathon-latvia.sections.mentors.11.0":"Gundega Dekena","hackathon-latvia.sections.mentors.11.1":"DevOps Specialist at Accenture Latvia helping world class companies live in the cloud. Programming teacher and the only official GitHub Campus Advisor in Baltics.","hackathon-latvia.sections.mentors.12.0":"Emil Syundyukov","hackathon-latvia.sections.mentors.12.1":"Computer Scientist, Chief Technical Officer at biomedical startup Longenesis","hackathon-latvia.sections.mentors.13.0":"Pāvils Jurjāns","hackathon-latvia.sections.mentors.13.1":"IT entrepreneur, software engineer, business mentor, open data advocate and general geek.","hackathon-latvia.sections.mentors.14.0":"Krišjānis Nesenbergs","hackathon-latvia.sections.mentors.14.1":"Researcher and head of Cyber-physical systems lab @ EDI. Low level/embedded HW/SW, sensors, signal processing and machine learning for practical applications from wearables to self driving cars.","hackathon-latvia.sections.mentors.15.0":"Elina Razena","hackathon-latvia.sections.mentors.15.1":"Founder of Learn IT coding school for children, EU CodeWeek ambassador in Latvia","hackathon-latvia.sections.mentors.16.0":"Kristine Subrovska","hackathon-latvia.sections.mentors.16.1":"Graphic designer, accessibility, UX / UI enthusiast. I appreciate good design and well-considered, simple illustrations ","hackathon-latvia.sections.leaders.1.0":"Viesturs Sosārs","hackathon-latvia.sections.leaders.1.1":"Seasoned entrepreneur and innovation educator, co-founder of TechHub Riga","hackathon-latvia.sections.leaders.2.0":"Kārlis Jonāss","hackathon-latvia.sections.leaders.2.1":"Design thinker and facilitator. Karlis helps teams, companies and individuals bring change through design.","hackathon-latvia.sections.leaders.3.0":"Peteris Jurcenko","hackathon-latvia.sections.leaders.3.1":"UX designer, accessibility enthusiast. I help institutions to redesign themselves and implement digital solutions to become more effective.","hackathon-latvia.sections.leaders.title":"Workshop leaders","hackathon-latvia.sections.after.0":"What happens next?","hackathon-latvia.sections.after.1":"The successful teams are now working on their prototype and will meet at the final hackathon in X to battle it out and decide the winner of the Latvian Hackathon. Make sure to follow here and on social media for updates from the contestants’ teams! ","hackathon-latvia.sections.after.2":"EU Code Week Hackathon Latvia gave smart, passionate young people the chance to put their coding skills and creative ideas towards solving a concrete local challenge. After an initial 24-hour virtual hackathon, up to 10 teams advanced to the next stage. The finalists worked on their prototypes with some guidance from mentors over the summer and are now ready to compete! The Code Week hackathon journey concluded with a battle on skills, knowledge and creativity at the final hackathon on X September/October in [city].","hackathon-latvia.sections.after.3":"The Winners","hackathon-latvia.sections.after.4":"See all the winners","hackathon-latvia.sections.after.5":"Gallery","hackathon-latvia.sections.after.6":"Check out the ‘young hackers’ from Latvia in action during the EU Code Week Hackathon","hackathon-latvia.sections.after.7":"Support Wall","hackathon-latvia.sections.after.8":"And thanks to the Tweets, shout-outs and all the support during the Hackathons! Check out some highlights!","hackathon-latvia.sections.after.9":"Jury & Mentors","hackathon-latvia.sections.after.10":"EU Code Week Hackathon in Latvia brought together leading figures from the Worlds of business, IT, venture capital, education, as well as local, national and EU leaders, influencers and coaches to guide and support participants during the intense hackathon. A select number of jury members were chosen to decide the final winning team, according to relevant guidelines and competition rules.","hackathon-latvia.sections.after.11":"Read the guidelines","hackathon-romania.title":"EU Code Week HACKATHON","hackathon-romania.subtitle":"Bring your ideas to life!","hackathon-romania.misc.0":"Read the rules & code of conduct","hackathon-romania.misc.1":"Registrations for both the EU Code Week Hackathon and Side Events will be handled by EU Survey.","hackathon-romania.misc.2":"Our Partners","hackathon-romania.sections.1.content.0":"Do you dream of creating the next big app? Do you know how innovative tech solutions can help your school, town, and region? If you want to be an entrepreneur or have a killer idea to pitch to the world but you don’t know where to start, then your waiting is at an end! ","hackathon-romania.sections.1.content.1":"The EU Code Week Hackathon","hackathon-romania.sections.1.content.2":"begins with a challenge to develop a code that solves a real-life challenge in just 24-hours. The 5 most successful teams will then receive training and mentoring from experts in this field, in order to prepare them for the second and final round, from which the ultimate winner will be selected. The lucky team will win further coaching and mentoring of their ideas and cool IT equipment. The winning team will also secure a spot at the European pitch where all the hackathon winners will present their ideas to a European jury during the official EU Code Week 9-24 October 2021.","hackathon-romania.sections.1.content.3":"The EU Code Week hackathon is sure to fuel your curiosity, inspire your creativity, encourage your entrepreneurial spirit, and bring your ideas to life. ","hackathon-romania.sections.2.title":"What to expect?","hackathon-romania.sections.2.content.0":"Expert coaching","hackathon-romania.sections.2.content.1":"Skills workshops","hackathon-romania.sections.2.content.2":"Fun activities","hackathon-romania.sections.2.content.3":"The chance to meet likeminded individuals","hackathon-romania.sections.2.content.4":"The chance to win mentoring and coaching, as well as IT equipment ","hackathon-romania.sections.2.content.5":"The chance to join the final hackathon and meet the best of the best, in person!","hackathon-romania.sections.3.content.0":"Sign up now to","hackathon-romania.sections.3.content.1":"EU Code Week Hackathon Romania","hackathon-romania.sections.3.content.2":"and bring your ideas to life!","hackathon-romania.sections.4.title":"Propose challenges to be solved at the Hackathon","hackathon-romania.sections.4.content.0":"Do you want to make your community the centre of green and sustainable innovation in Romania? If so, propose a challenge that will be “hacked” at the Hackathon. Something concrete that will help you, your school, city or community.","hackathon-romania.sections.4.content.1":"Propose a challenge","hackathon-romania.sections.4.content.2":"Votes for the Romanian challenge will start on the 24 of March.","hackathon-romania.sections.5.title":"Vote on the challenges to be “hacked”","hackathon-romania.sections.5.content.0":"The idea of the EU Code Week Hackathon is to show how concrete solutions come to life with the help of young people’s creativity, enthusiasm, innovation and coding skills. ‘Concrete’ means solving real problems – things that affect you, your school, community, city or specific challenges in your area.","hackathon-romania.sections.5.content.1":"Vote on what matters most to you!","hackathon-romania.sections.5.content.2":"The final challenge selected will be announced at the beginning of the Hackathon.","hackathon-romania.sections.6.title":"The Challenge","hackathon-romania.sections.6.content.0":"The idea of the EU Code Week Hackathon is to show how concrete solutions come to life with the help of young people’s creativity, enthusiasm, fresh ideas and coding skills. ‘Concrete’ means solving real problems – things that affect you, your school, community, city or specific challenges in your area.","hackathon-romania.sections.6.content.1":"Based on public voting, the challenge for the Romanian Hackathon is:","hackathon-romania.sections.6.content.2":"Based on public voting, the challenge for the Romanian Hackathon was:","hackathon-romania.sections.6.challenges.0":"Fighting false news","hackathon-romania.sections.6.challenges.1":"Get moving","hackathon-romania.sections.6.challenges.2":"Cleaner air in the city","hackathon-romania.sections.7.title":"Resource Centre","hackathon-romania.sections.8.title":"Programme","hackathon-romania.sections.8.content.0.0":"The EU Code Week hackathon","hackathon-romania.sections.8.content.0.1":"has three distinct rounds","hackathon-romania.sections.8.content.1":"The 24-hour online hackathon. Out of all those competing, only 5 teams will be chosen to remain in the competition. Free online training and mentoring for all 5 teams, during summer 2021.","hackathon-romania.sections.8.content.2":"The final hackathon. 5 teams will have all received equal training in the second round, but only one will win. Secondary school students aged 15-19 will compete in teams to solve a ‘local challenge’ selected from proposals submitted ahead of the first round.","hackathon-romania.sections.8.content.3":"Each national winner will face-off in a European clash of titans where each winning team will pitch their solution to a European jury during the official EU Code Week 9-24 October 2021.","hackathon-romania.sections.8.content.4":"In 2021, EU Code Week brings six extraordinary hackathons and invites students aged 15-19 in upper secondary school to form teams and use their coding skills to solve a local challenge. After 24 hours of hacking, each team will pitch their ideas to a panel of experts who will choose the 5 final teams. All teams will have the same amount of time, resources, and access to mentors and expertise in order to complete the challenge, but only 5 will get the chance to continue to the next round, develop their prototype, get expert coaching and take part in the final hackathon in the autumn. In the final the teams will battle it out to decide who wins IT accessories and the chance of mentoring and coaching to further develop their prototype.","hackathon-romania.sections.8.content.5":"Your team is not guaranteed a place in the second round even if you successfully solve the challenge. Remember you are in competition with the other teams and the jury will take your method, use of time and quality of the prototype into consideration to select the successful candidates! ","hackathon-romania.sections.8.content.6":"If your team is one of the 5 finalists, you can work on your idea over the summer. To assist you, we will offer you free trainings for development and UX Design. Your team will also get the help of a mentor who ensures that you are on the right path.","hackathon-romania.sections.8.content.7":"The 5 finalist teams will meet in a 12-hour hackathon which will take place online. Here teams will compete to be the nation’s best young hackers and get the chance to win prizes such as cool IT equipment as well as further coaching and mentoring of their ideas.","hackathon-romania.sections.9.title":"Practical Info","hackathon-romania.sections.9.content.0":"The Hackathon will take place onsite on the 25-26 September 2021.","hackathon-romania.sections.9.content.1":"The Hackathon is free of charge.","hackathon-romania.sections.10.title":"Jury & Mentors","hackathon-romania.sections.10.content.0":"Imagine being in a virtual room full of designers, developers, creators, coders and business mentors, all with the same curiosity and drive as you. EU Code Week Hackathon Ireland brings together leading figures from the Worlds of business, IT, venture capital, education, as well as local, national and EU leaders, influencers and coaches to guide and support you and your team during this intensive marathon.","hackathon-romania.sections.10.content.1":"Sign up now to","hackathon-romania.sections.10.content.2":"EU Code Week Hackathon","hackathon-romania.sections.10.content.3":"and make it happen!","hackathon-romania.sections.11.title":"Side events","hackathon-romania.sections.11.content.0":"In connection with the hackathon, there will be workshops for beginners in coding, tinkering with hardware and robotics and so on for participants to learn some basics of computational thinking and coding. From April to September, we are organising side events with our amazing partners of the EU Code Week Hackathons and it’s free to take part! Check out the different activities and register to get the link.","hackathon-romania.sections.11.events.1.title":"Animate a name","hackathon-romania.sections.11.events.1.content.0":"Are you between 9 to 14 and eager to know more about computer programming? This workshop is for you! You will create, have fun and quickly acquire some coding skills. With just a handful of blocks and a few clicks, you can make a 'sprite' (character) dance, talk, or animate it in a variety of ways. In addition, the computer science concepts we will be using in Scratch for CS First can be applied to other advanced programming languages such as Python or Java. ","hackathon-romania.sections.11.events.1.content.1":"Register, and participate in this activity and you will be able to:","hackathon-romania.sections.11.events.1.content.2":"Use a block-based programming language","hackathon-romania.sections.11.events.1.content.3":"Master important computer science concepts such as events, sequences and loops","hackathon-romania.sections.11.events.1.content.4":"Create an animation project in Scratch for CS First","hackathon-romania.sections.11.events.1.content.5":"Date: Wednesday 12 May, 14:00 -> click","hackathon-romania.sections.11.events.1.content.6":"here","hackathon-romania.sections.11.events.1.content.7":"to register !","hackathon-romania.sections.11.events.1.content.8":"More information:","hackathon-romania.sections.11.events.2.title":"Creative Coding Workshop","hackathon-romania.sections.11.events.2.content.0":"Learn the basics of Python with imagiLabs' creative coding tools! Perfect for kids aged 9-15, this 1.5 hour workshop for beginners will take coders from lighting up one pixel at a time to making colourful animations.","hackathon-romania.sections.11.events.2.content.1":"Date: Saturday 5 June, 15:00 -> click","hackathon-romania.sections.11.events.2.content.2":"here","hackathon-romania.sections.11.events.2.content.3":"to register !","hackathon-romania.sections.11.events.2.content.4":"Download the free imagiLabs app on your iOS or Android device to get started today. No imagiCharms needed -- come to the virtual workshop as you are!","hackathon-romania.sections.11.events.makex.title.0":"Robotics Training Series by MakeX/MakeBlock","hackathon-romania.sections.11.events.makex.title.1":"Robotics Training Series 1 - Introduction to Robotics and Robotics Competitions by MakeX/MakeBlock","hackathon-romania.sections.11.events.makex.title.2":"Robotics Training Series 2 - Programming and Hardware Construction by MakeX/MakeBlock","hackathon-romania.sections.11.events.makex.title.3":"Robotics Training Series 3 – Award-winning Mentor Sharing by MakeX/MakeBlock","hackathon-romania.sections.11.events.makex.content.0":"MakeX, a global robotics competition platform presents a comprehensive series of educational robotics training to teachers and mentors who are interested in practical learning, STEAM education, programming and robotics competitions for students of all ages using cutting-edge software and hardware like mBot2, laserbox and mBlock5.","hackathon-romania.sections.11.events.makex.content.1":"From introduction to robotics, programming and hardware construction to award-winning mentor sharing, you will dive into the process of project-based learning and how to organize students to use completions platforms to solve real world problems. Teachers organizing robotics curriculums at school are welcome and will benefit from a deeper understanding of programming, computational thinking, pedagogical concepts, robot hardware, and troubleshooting techniques.","hackathon-romania.sections.11.events.makex.content.2":"here","hackathon-romania.sections.11.events.makex.content.3":"to register !","hackathon-romania.sections.11.events.makex.content.4":"More information:","hackathon-romania.sections.11.events.makex.content.5":"https://www.makex.cc/en","hackathon-romania.sections.11.events.makex.dates.0":"Date: 1st June, 11:00 CEST -> click","hackathon-romania.sections.11.events.makex.dates.1":"Date: 3rd June, 11:00 CEST -> click","hackathon-romania.sections.11.events.makex.dates.2":"Date: 8th June, 11:00 CEST -> click","hackathon-romania.sections.12.title":"About CODEWEEK.EU","hackathon-romania.sections.12.content.0":"EU Code Week (#EUCodeWeek) is a grassroots movement run by volunteers to promote digital literacy through activities linked to coding and computer science. It inspires and engages people to explore new ideas and innovation for the future. Activities for ","hackathon-romania.sections.12.content.1":"EU Code Week","hackathon-romania.sections.12.content.2":"take place all over the world between 9 and 24 October. ","hackathon-romania.sections.12.content.3":"The idea of the EU Code Week Hackathon is to show how concrete solutions come to life with the help of young people’s creativity, enthusiasm, fresh ideas and coding skills. The hackathons are created and co-organised by the","hackathon-romania.sections.12.content.4":"European Commission","hackathon-romania.sections.12.content.5":"and local","hackathon-romania.sections.12.content.6":"EU Code Week Ambassadors","hackathon-romania.sections.12.content.7":"The initiative is financed by","hackathon-romania.sections.12.content.8":"the European Parliament","hackathon-romania.sections.12.content.9":"Discover More","hackathon-romania.sections.winners.0":"Congratulations to all the participants of this first edition of the European Code Week hackathon, it was a real pleasure to have you with us. We hope you had as much fun as we did!","hackathon-romania.sections.winners.1":"A special big up to the winning teams. The teams selected for the final, which will take place the 25-26 September, are the following: ","hackathon-romania.sections.winners.2":"We look forward to seeing you there. Coaching and rewards guaranteed!","hackathon-romania.sections.winners.3":"Each national winner will face-off in a European clash of titans where each winning team will pitch their solution to a European jury during the official EU Code Week 9-24 October 2021. The European champion will, besides the glory, win additional IT equipment.","hackathon-romania.sections.focus.0":"Focus on the 1st round of the 24h online Hackathon:","hackathon-romania.sections.focus.1":"Introduction to the EU Code Week Hackathon Romania","hackathon-romania.sections.focus.2":"Reveal of the challenge for EU Code Week Hackathon Romania","hackathon-romania.sections.focus.3":"Pitch of solutions for the EU Code Week Hackathon Romania","hackathon-romania.sections.focus.4":"Announcement of winners of EU Code Week Hackathon Romania","hackathon-romania.sections.mentors.1.0":"Diana Maria Ghitun is a MSc. Computer Science graduate from King's College London. Since university she had the opportunity to work in several environments, from fin tech startups to big companies, and the research industry as well.","hackathon-romania.sections.mentors.1.1":"At the moment, she works as a Senior Software Engineer at Take Off Labs in Cluj Napoca, where she found a new passion for Ruby on Rails and React Native.","hackathon-romania.sections.mentors.2.0":"I am a proactive and curious person, a self-starter, with a desire to go extra mile, gain new insights and experiences in a dynamic environment.","hackathon-romania.sections.mentors.2.1":"I really like to work with different generations that think and act differently than me. In this way I can gain new perspectives and fresh ideas.","hackathon-romania.sections.mentors.3.0":"George founded and leads WiseUp, a product prototyping agency. George uses Lean Startup, Design Thinking & Data Science techniques in his work, to help entrepreneurs and executives make data driven decisions.","hackathon-romania.sections.mentors.3.1":"Previously he designed and led multiple startup accelerators, coached startups & enterprises.","hackathon-romania.sections.mentors.4.0":"My name is Ioana Alexandru. I am currently pursuing a master’s degree in computer graphics while working at Google - it’s a real challenge, but I wouldn’t have it any other way! I had two internships (summer ‘18 and ‘19) which made me fall in love with the Google culture, and finally joined as a part-time software engineer in Nov ‘20.","hackathon-romania.sections.mentors.4.1":"Within Google, I work on search infrastructure, and outside of it I dabble with Unity and Flutter development. In my spare time, I love gaming (PC, Oculus, Switch) and riding horses.","hackathon-romania.sections.mentors.5.0":"Entrepreneur, Program Manager and  Software Quality Advocate.","hackathon-romania.sections.mentors.5.1":"10+ years of experience for various projects types, curious learner and passionate about finding innovative solutions.","hackathon-romania.sections.mentors.6.0":"A data scientist at core, based in Switzerland, doing a software engineering internship at Google. Very passionate about startups, being a startup manager for the EPFL Entrepreneur Club, and leading a student investment team as a Managing Partner for Wingman Campus Fund.","hackathon-romania.sections.mentors.6.1":"Activist for women in tech, leading Girls Who Code Iasi until last year.","hackathon-romania.sections.mentors.7.0":"I am CS teacher and I love what I'm doing. Basically I am CS Engineer. I've been teaching for the last 30 years. I am teaching at High-School, Vocational and Technical Schools. I am Cisco Academy instructor and national trainer. ","hackathon-romania.sections.mentors.7.1":"I am teaching C++, Java, Oracle SQL and Robotics but I also like hardware and networking. I like challenges, I love to work in projects with my students and I always want to learn something new.","hackathon-romania.sections.mentors.8.0":"Solution architect with over 10 years of experience developing enterprise grade mission critical software applications. Currently focusing on designing cloud computing and robotic process automation solutions for various industries.","hackathon-romania.sections.mentors.8.1":"Leader of the IBM Technical Expert Council in Romania and the IBM Developer meetups program in the CEE.  Passionate intrapreneur and hackathon organizer.","hackathon-romania.sections.mentors.9.0":"Software developer and technology passionate- I enjoy building and delivering quality, all the while trying to have fun as much as possible. I am a perceptive and innovative individual that's not afraid to exploit its best version and go the extra mile outside the comfort zone of conventional.","hackathon-romania.sections.mentors.9.1":"This exact desire, of getting out of the comfort zone, led me in the last years to changing the context from full-stack, frontend, API design to technical leadership and architecture.","hackathon-romania.sections.mentors.10.0":"I am a graduate student of University of Bucharest. I am an IT Specialist focusing on Cloud technologies, microservice architecture and DevOps. While I consider myself a programming language polyglot, JAVA is my core development language and Spring Framework is my de-facto choice whenever I design and build a new application. My professional activities consist in combination of BA, DEV and Operation, with focus on development.","hackathon-romania.sections.mentors.11.0":"When she is not busy designing e-learning courses and trainings for K12 teachers and NGOs at Asociația Techsoup, she fosters her passions for outdoor sports, traveling and bats. Forbes 30 under 30 Honoree, ChangemakerXchange Fellow and EU Code Week Ambassador for 5 years until 2020. Connecting people and resources, Ana believes technology is key to kindle development through collaboration.","hackathon-romania.sections.after.0":"What happens next?","hackathon-romania.sections.after.1":"The successful teams are now working on their prototype and will meet at the final hackathon in X to battle it out and decide the winner of X hackathon. Make sure to follow here and on social media for updates from the contestants’ teams! ","hackathon-romania.sections.after.2":"EU Code Week Hackathon Romania gave smart, passionate young people the chance to put their coding skills and creative ideas towards solving a concrete local challenge. After an initial 24-hour virtual hackathon, 5 teams advanced to the next stage. The finalists worked on their prototypes with some guidance from mentors over the summer and are now ready to compete! The Code Week hackathon journey concluded with a battle on skills, knowledge and creativity at the final hackathon on X September/October in [city].","hackathon-romania.sections.after.3":"The Winners","hackathon-romania.sections.after.4":"See all the winners","hackathon-romania.sections.after.5":"Gallery","hackathon-romania.sections.after.6":"Check out the ‘young hackers’ from Romania in action during the EU Code Week Hackathon","hackathon-romania.sections.after.7":"Support Wall","hackathon-romania.sections.after.8":"And thanks to the Tweets, shout-outs and all the support during the Hackathons! Check out some highlights!","hackathon-romania.sections.after.9":"Jury & Mentors","hackathon-romania.sections.after.10":"EU Code Week Hackathon in Romania brought together leading figures from the Worlds of business, IT, venture capital, education, as well as local, national and EU leaders, influencers and coaches to guide and support participants during the intense hackathon. A select number of jury members were chosen to decide the final winning team, according to relevant guidelines and competition rules.","hackathon-romania.sections.after.11":"Read the guidelines","hackathon-slovenia-old.title":"EU Code Week HACKATON","hackathon-slovenia-old.subtitle":"Bring your ideas to life!","hackathon-slovenia-old.misc.0":"Read the rules & code of conduct","hackathon-slovenia-old.misc.1":"Registrations for both the EU Code Week Hackathon and Side Events will be handled by EU Survey.","hackathon-slovenia-old.misc.2":"Our Partners","hackathon-slovenia-old.sections.1.content.0":"Do you dream of creating the next big app? Do you know how innovative tech solutions can help your school, town, and region? If you want to be an entrepreneur or have a killer idea to pitch to the world but you don’t know where to start, then your waiting is at an end! ","hackathon-slovenia-old.sections.1.content.1":"The EU Code Week Hackathon","hackathon-slovenia-old.sections.1.content.2":"begins with a challenge to develop a code that solves a real-life challenge. The winning team will also secure a spot at the European pitch where all the national hackathon winners from Romania, Ireland, Greece, Italy, Slovenia and Latvia will present their ideas to a European jury during the official EU Code Week 9-24 October 2021.","hackathon-slovenia-old.sections.1.content.3":"The EU Code Week hackathon is sure to fuel your curiosity, inspire your creativity, encourage your entrepreneurial spirit, and bring your ideas to life. ","hackathon-slovenia-old.sections.2.title":"What to expect?","hackathon-slovenia-old.sections.2.content.0":"Expert coaching","hackathon-slovenia-old.sections.2.content.1":"Skills workshops","hackathon-slovenia-old.sections.2.content.2":"Fun activities","hackathon-slovenia-old.sections.2.content.3":"The chance to meet likeminded individuals","hackathon-slovenia-old.sections.2.content.4":"The chance to win mentoring and coaching, as well as IT equipment ","hackathon-slovenia-old.sections.2.content.5":"The chance to join the final hackathon and meet the best of the best, in person!","hackathon-slovenia-old.sections.3.content.0":"Sign up now to","hackathon-slovenia-old.sections.3.content.1":"EU Code Week Hackathon Slovenia","hackathon-slovenia-old.sections.3.content.2":"and bring your ideas to life!","hackathon-slovenia-old.sections.4.title":"Propose challenges to be solved at the Hackathon","hackathon-slovenia-old.sections.4.content.0":"Do you want to make your community the centre of green and sustainable innovation in Slovenia? If so, propose a challenge that will be “hacked” at the Hackathon. Something concrete that will help you, your school, city or community.","hackathon-slovenia-old.sections.4.content.1":"Propose a challenge","hackathon-slovenia-old.sections.4.content.2":"Votes for the Slovenian challenge will start on the 23th of April.","hackathon-slovenia-old.sections.5.title":"Vote on the challenges to be “hacked”","hackathon-slovenia-old.sections.5.content.0":"The idea of the EU Code Week Hackathon is to show how concrete solutions come to life with the help of young people’s creativity, enthusiasm, innovation and coding skills. ‘Concrete’ means solving real problems – things that affect you, your school, community, city or specific challenges in your area.","hackathon-slovenia-old.sections.5.content.1":"Vote on what matters most to you!","hackathon-slovenia-old.sections.5.content.2":"The final challenge selected will be announced at the beginning of the Hackathon.","hackathon-slovenia-old.sections.6.title":"The Challenge","hackathon-slovenia-old.sections.6.content.0":"The idea of the EU Code Week Hackathon is to show how concrete solutions come to life with the help of young people’s creativity, enthusiasm, fresh ideas and coding skills. ‘Concrete’ means solving real problems – things that affect you, your school, community, city or specific challenges in your area.","hackathon-slovenia-old.sections.6.content.1":"Based on public voting, the challenge for the Slovenian Hackathon is:","hackathon-slovenia-old.sections.6.content.2":"Based on public voting, the challenge for the Slovenian Hackathon was:","hackathon-slovenia-old.sections.7.title":"Resource Centre","hackathon-slovenia-old.sections.8.title":"Programme","hackathon-slovenia-old.sections.8.content.0":"The EU Code Week Hackathon is a two-day competition gathering secondary school students aged 15-19. They will compete in teams to solve a ‘local challenge’ selected from proposals submitted ahead.","hackathon-slovenia-old.sections.8.content.1":"During the Hackathon, teams will get support from experienced mentors, be able to participate in workshops, do mini-challenges, quizzes, win prizes and a 2.000€ prize for the winning team! The jury will take the team’s method, use of time and quality of the prototype into consideration to select the successful candidates!","hackathon-slovenia-old.sections.8.content.2":"Each national winner will meet in a European clash of titans where each winning team will pitch their solution to a European jury during the official EU Code Week 9-24 October 2021. The European champion will, besides the glory, win additional IT equipment.","hackathon-slovenia-old.sections.8.content.3":"Free online and/or physical side events will also be organised during summer 2021 for beginners in coding.","hackathon-slovenia-old.sections.8.content.4":"","hackathon-slovenia-old.sections.8.content.5":"","hackathon-slovenia-old.sections.8.content.6":"","hackathon-slovenia-old.sections.8.content.7":"","hackathon-slovenia-old.sections.8.content.8":"","hackathon-slovenia-old.sections.8.content.9":"Day 1","hackathon-slovenia-old.sections.8.content.10":"Day 2","hackathon-slovenia-old.sections.9.title":"Practical Info","hackathon-slovenia-old.sections.9.content.0":"The Hackathon will be held from 18 September to 19 September 2021. We hope the competition to take place physically. If the public health situation does not allow it, we will meet online.","hackathon-slovenia-old.sections.9.content.1":"The Hackathon is free of charge.","hackathon-slovenia-old.sections.10.title":"Jury & Mentors","hackathon-slovenia-old.sections.10.content.0":"Imagine being in a virtual room full of designers, developers, creators, coders and business mentors, all with the same curiosity and drive as you. EU Code Week Hackathon Slovenia brings together leading figures from the Worlds of business, IT, venture capital, education, as well as local, national and EU leaders, influencers and coaches to guide and support you and your team during this intensive marathon.","hackathon-slovenia-old.sections.10.content.1":"Sign up now to","hackathon-slovenia-old.sections.10.content.2":"EU Code Week Hackathon","hackathon-slovenia-old.sections.10.content.3":"and make it happen!","hackathon-slovenia-old.sections.11.title":"Side events","hackathon-slovenia-old.sections.11.content.0":"In connection with the hackathon, there will be workshops for beginners in coding, tinkering with hardware and robotics and so on for participants to learn some basics of computational thinking and coding. From April to September, we are organising side events with our amazing partners of the EU Code Week Hackathons and it’s free to take part! Check out the different activities and register to get the link.","hackathon-slovenia-old.sections.11.events.1.title":"Animate a name","hackathon-slovenia-old.sections.11.events.1.content.0":"Are you between 9 to 14 and eager to know more about computer programming? This workshop is for you! You will create, have fun and quickly acquire some coding skills. With just a handful of blocks and a few clicks, you can make a 'sprite' (character) dance, talk, or animate it in a variety of ways. In addition, the computer science concepts we will be using in Scratch for CS First can be applied to other advanced programming languages such as Python or Java. ","hackathon-slovenia-old.sections.11.events.1.content.1":"Register, and participate in this activity and you will be able to:","hackathon-slovenia-old.sections.11.events.1.content.2":"Use a block-based programming language","hackathon-slovenia-old.sections.11.events.1.content.3":"Master important computer science concepts such as events, sequences and loops","hackathon-slovenia-old.sections.11.events.1.content.4":"Create an animation project in Scratch for CS First","hackathon-slovenia-old.sections.11.events.1.content.5":"Date: Date: 8 October, 11:00, 14:00 -> click","hackathon-slovenia-old.sections.11.events.1.content.6":"here","hackathon-slovenia-old.sections.11.events.1.content.7":"to register !","hackathon-slovenia-old.sections.11.events.1.content.8":"More information:","hackathon-slovenia-old.sections.11.events.2.title":"Creative Coding Workshop","hackathon-slovenia-old.sections.11.events.2.content.0":"Learn the basics of Python with imagiLabs' creative coding tools! Perfect for kids aged 9-15, this 1.5 hour workshop for beginners will take coders from lighting up one pixel at a time to making colourful animations.","hackathon-slovenia-old.sections.11.events.2.content.1":"Date: XXX -> click","hackathon-slovenia-old.sections.11.events.2.content.2":"here","hackathon-slovenia-old.sections.11.events.2.content.3":"to register !","hackathon-slovenia-old.sections.11.events.2.content.4":"Download the free imagiLabs app on your iOS or Android device to get started today. No imagiCharms needed -- come to the virtual workshop as you are!","hackathon-slovenia-old.sections.11.events.makex.title.0":"Robotics Training Series by MakeX/MakeBlock","hackathon-slovenia-old.sections.11.events.makex.title.1":"Robotics Training Series 1 - Introduction to Robotics and Robotics Competitions by MakeX/MakeBlock","hackathon-slovenia-old.sections.11.events.makex.title.2":"Robotics Training Series 2 - Programming and Hardware Construction by MakeX/MakeBlock","hackathon-slovenia-old.sections.11.events.makex.title.3":"Robotics Training Series 3 – Award-winning Mentor Sharing by MakeX/MakeBlock","hackathon-slovenia-old.sections.11.events.makex.content.0":"MakeX, a global robotics competition platform presents a comprehensive series of educational robotics training to teachers and mentors who are interested in practical learning, STEAM education, programming and robotics competitions for students of all ages using cutting-edge software and hardware like mBot2, laserbox and mBlock5.","hackathon-slovenia-old.sections.11.events.makex.content.1":"From introduction to robotics, programming and hardware construction to award-winning mentor sharing, you will dive into the process of project-based learning and how to organize students to use completions platforms to solve real world problems. Teachers organizing robotics curriculums at school are welcome and will benefit from a deeper understanding of programming, computational thinking, pedagogical concepts, robot hardware, and troubleshooting techniques.","hackathon-slovenia-old.sections.11.events.makex.content.2":"here","hackathon-slovenia-old.sections.11.events.makex.content.3":"to register !","hackathon-slovenia-old.sections.11.events.makex.content.4":"More information:","hackathon-slovenia-old.sections.11.events.makex.content.5":"https://www.makex.cc/en","hackathon-slovenia-old.sections.11.events.makex.dates.0":"Date: 1st June, 11:00 CEST -> click","hackathon-slovenia-old.sections.11.events.makex.dates.1":"Date: 3rd June, 11:00 CEST -> click","hackathon-slovenia-old.sections.11.events.makex.dates.2":"Date: 8th June, 11:00 CEST -> click","hackathon-slovenia-old.sections.12.title":"About CODEWEEK.EU","hackathon-slovenia-old.sections.12.content.0":"EU Code Week (#EUCodeWeek) is a grassroots movement run by volunteers to promote digital literacy through activities linked to coding and computer science. It inspires and engages people to explore new ideas and innovation for the future. Activities for ","hackathon-slovenia-old.sections.12.content.1":"EU Code Week","hackathon-slovenia-old.sections.12.content.2":"take place all over the world between 9 and 24 October. ","hackathon-slovenia-old.sections.12.content.3":"The idea of the EU Code Week Hackathon is to show how concrete solutions come to life with the help of young people’s creativity, enthusiasm, fresh ideas and coding skills. The hackathons are created and co-organised by the","hackathon-slovenia-old.sections.12.content.4":"European Commission","hackathon-slovenia-old.sections.12.content.5":"and local","hackathon-slovenia-old.sections.12.content.6":"EU Code Week Ambassadors","hackathon-slovenia-old.sections.12.content.7":"The initiative is financed by","hackathon-slovenia-old.sections.12.content.8":"the European Parliament","hackathon-slovenia-old.sections.12.content.9":"Discover More","hackathon-slovenia-old.sections.mentors.1.0":"Janko Harej","hackathon-slovenia-old.sections.mentors.1.1":"Janko Harej is a higher education lecturer and teacher of professional subjects at the Nova Gorica Secondary School. He is interested in all aspects of integrating new technologies into education. He participates in various national and international projects, where he develops teacher education, develops services and e-content. He was involved in the revision of several curricula.","hackathon-slovenia-old.sections.mentors.1.2":"In his free time, he is actively involved in the field of choral music.","hackathon-slovenia-old.sections.mentors.2.0":"Katja K. Ošljak","hackathon-slovenia-old.sections.mentors.2.1":"Researcher of communication and digital media, founder of the Institute for Digital Education Vsak and Slovenian ambassador of the EU Code Week project. It strives for access to digital education and media literacy for citizens of the information society","hackathon-slovenia-old.sections.mentors.3.0":"Uroš Polanc","hackathon-slovenia-old.sections.mentors.3.1":"Uroš has been involved in innovation, prototyping, networking and many other things since he was a child. He completed his studies in mechatronics. He is now the head of the Learning Production Laboratory at ŠCNG, which is a laboratory dedicated to networking, prototyping and learning.","hackathon-slovenia-old.sections.mentors.3.2":"He participates in various local and European projects, and also walks in business environment. He has extensive experience in mentoring, prototyping, working with young people, CNC machining, 3D modeling,","hackathon-slovenia-old.sections.mentors.4.0":"Luka Manojlovic","hackathon-slovenia-old.sections.mentors.4.1":"Luka Manojlovic is a technical enthusiast - a computer scientist who has been dealing with server and network infrastructure for more than 20 years.","hackathon-slovenia-old.sections.mentors.4.2":" He likes to share his knowledge with the participants of interactive workshops from various fields of information technologies.","hackathon-slovenia-old.sections.mentors.5.0":"Vesna Krebs","hackathon-slovenia-old.sections.mentors.5.1":"Vesna Krebs is a media artist and mentor who works both at home and abroad. Vesna combines her love of technology and art through various workshops and performances for children.","hackathon-slovenia-old.sections.mentors.5.2":"In her pedagogical work, the emphasis is on creative audio-visual production with computer technologies, with which she encourages the younger population to think creatively and create with the help of modern technologies.","hackathon-slovenia-old.sections.mentors.6.0":"Alojz Černe","hackathon-slovenia-old.sections.mentors.6.1":"Alojz has an excellent working knowledge of IT, is a highly experienced developer and system designer. His field of work is also on microservice platforms - development and deployment of services on these platforms. 30+ years of experience in international enterprise projects with larger systems, in finance, telco and retail sector.","hackathon-slovenia-old.sections.mentors.6.2":"In addition to this he is an outstanding Official Red Hat Instructor and Architect. He is a curious learner and eager to implement and share his newly obtained knowledge in practice.","hackathon-slovenia-old.sections.after.0":"What happens next?","hackathon-slovenia-old.sections.after.1":"The successful teams are now working on their prototype and will meet at the final hackathon in X to battle it out and decide the winner of X Hackathon. Make sure to follow here and on social media for updates from the contestants’ teams! ","hackathon-slovenia-old.sections.after.2":"EU Code Week Hackathon Slovenia gave smart, passionate young people the chance to put their coding skills and creative ideas towards solving a concrete local challenge. After an initial 24-hour virtual hackathon, up to 10 teams advanced to the next stage. The finalists worked on their prototypes with some guidance from mentors over the summer and are now ready to compete! The Code Week hackathon journey concluded with a battle on skills, knowledge and creativity at the final hackathon on X September/October in [city].","hackathon-slovenia-old.sections.after.3":"The Winners","hackathon-slovenia-old.sections.after.4":"See all the winners","hackathon-slovenia-old.sections.after.5":"Gallery","hackathon-slovenia-old.sections.after.6":"Check out the ‘young hackers’ from Slovenia in action during the EU Code Week Hackathon","hackathon-slovenia-old.sections.after.7":"Support Wall","hackathon-slovenia-old.sections.after.8":"And thanks to the Tweets, shout-outs and all the support during the Hackathons! Check out some highlights!","hackathon-slovenia-old.sections.after.9":"Jury & Mentors","hackathon-slovenia-old.sections.after.10":"EU Code Week Hackathon in Slovenia brought together leading figures from the Worlds of business, IT, venture capital, education, as well as local, national and EU leaders, influencers and coaches to guide and support participants during the intense hackathon. A select number of jury members were chosen to decide the final winning team, according to relevant guidelines and competition rules.","hackathon-slovenia-old.sections.after.11":"Read the guidelines","hackathon-slovenia.title":"EU Code Week HACKATHON","hackathon-slovenia.title2":"Online, 18-19 September","hackathon-slovenia.subtitle":"Bring your ideas to life!","hackathon-slovenia.misc.0":"Read the rules & code of conduct","hackathon-slovenia.misc.1":"Registrations for both the EU Code Week Hackathon and Side Events will be handled by EU Survey.","hackathon-slovenia.misc.2":"Our Partners","hackathon-slovenia.sections.0.content.0":"Are you between 15 and 19 years old and love technology? Do you like to create and want to learn about similar trends in the field of digital products? If so, don’t hesitate: you can sign up to the hackathon as a single competitor or, even better, with your team, where each one of you will contribute their know-how in solving a challenge. The best team will receives a EUR 2,000 prize.","hackathon-slovenia.sections.1.content.0":"Hackathon Slovenia for students of any gender is one of six European acclaimed competitions for young people who are interested in new technologies. The competition starts on 18 September online, and for the winning team a month later at the European level.","hackathon-slovenia.sections.1.content.1":"You can sign up to the hackathon","hackathon-slovenia.sections.1.content.2":"or, even better, with your team of 6 participants, where each one of you will contribute their know-how in solving a challenge.","hackathon-slovenia.sections.1.content.3":"So, we are not only looking for coders,","hackathon-slovenia.sections.1.content.4":"but also designers, writers and other specialists who will help your team win. Last but not least, it also pays off because the Slovenian","hackathon-slovenia.sections.1.content.5":"winning team might receives a EUR 2,000","hackathon-slovenia.sections.1.content.6":"prize.","hackathon-slovenia.sections.1.content.7":"The hackathon will be online","hackathon-slovenia.sections.1.content.8":"The hackathon begins with the creation of a prototype that needs to be coded and designed accordingly. The prototype is designed to solve a real challenge and will need to be completed within these two-days competition. All teams will have equal working conditions and access to mentors who will help you with expert advice. Workshops will help you improve your solutions and prepare for your presentations. At the end, you will present your prototypes to the jury that will select the final winner for Slovenia.","hackathon-slovenia.sections.1.content.9":"Presentation to the European jury","hackathon-slovenia.sections.1.content.10":"The winning team from the Slovenian finals will receive","hackathon-slovenia.sections.1.content.11":" a cash prize of EUR 2,000","hackathon-slovenia.sections.1.content.12":" and the opportunity to","hackathon-slovenia.sections.1.content.13":" present themselves at European level","hackathon-slovenia.sections.1.content.14":", where the winners of hackathons from six countries will present their prototypes to the European jury during the official EU Code Week the 14 October, 2021.","hackathon-slovenia.sections.1.content.15":" The champions of Europe","hackathon-slovenia.sections.1.content.16":" will be additionally rewarded with the latest computer equipment.","hackathon-slovenia.sections.2.title":"What to expect?","hackathon-slovenia.sections.2.content.0":"Interesting challenges","hackathon-slovenia.sections.2.content.1":"Professional guidance and assistance in creating a solution","hackathon-slovenia.sections.2.content.2":"Find out about trends in the field of digital technology","hackathon-slovenia.sections.2.content.3":"Knowledge acquisition workshops","hackathon-slovenia.sections.2.content.4":"Fun activities","hackathon-slovenia.sections.2.content.5":"Hanging out with young people with shared interests","hackathon-slovenia.sections.2.content.6":"An opportunity to e-meet the best teams from all over Europe","hackathon-slovenia.sections.2.content.7":"Prizes (financial and practical)","hackathon-slovenia.sections.3.content.0":"Sign up now to","hackathon-slovenia.sections.3.content.1":"EU Code Week Hackathon Slovenia","hackathon-slovenia.sections.3.content.2":" and bring your ideas to life!","hackathon-slovenia.sections.4.title":"Propose challenges to be solved at the Hackathon","hackathon-slovenia.sections.4.content.0":'do you want to make your community the centre of green and sustainable innovation in Slovenia ? if so, propose a challenge that will be "hacked" at the Hackathon. Something concrete that will help you, your school, city or community.',"hackathon-slovenia.sections.4.content.1":"Propose a challenge","hackathon-slovenia.sections.4.content.2":"Votes for the Slovenian challenge will start on the 23th of April.","hackathon-slovenia.sections.5.title":'Vote on the challenges to be "hacked"',"hackathon-slovenia.sections.5.content.0":"The idea of the EU Code Week Hackathon is to show how concrete solutions come to life with the help of young people’s creativity, enthusiasm, innovation and coding skills. ‘Concrete’ means solving real problems – things that affect you, your school, community, city or specific challenges in your area.","hackathon-slovenia.sections.5.content.1":"Vote on what matters most to you!","hackathon-slovenia.sections.5.content.2":"The final challenge selected will be announced at the beginning of the Hackathon.","hackathon-slovenia.sections.6.title":"The Challenge","hackathon-slovenia.sections.6.content.0":"The idea of the EU Code Week Hackathon is to show how concrete solutions come to life with the help of young people’s creativity, enthusiasm, fresh ideas and coding skills. ‘Concrete’ means solving real problems – things that affect you, your school, community, city or specific challenges in your area.","hackathon-slovenia.sections.6.content.1":"Based on public voting, the challenge for the Slovenian Hackathon is:","hackathon-slovenia.sections.6.content.2":"Based on public voting, the challenge for the Slovenian Hackathon was:","hackathon-slovenia.sections.7.title":"Resource Centre","hackathon-slovenia.sections.8.title":"Programme","hackathon-slovenia.sections.8.content.0":"The EU Code Week Hackathon is a two-day competition gathering secondary school students aged 15-19. They will compete in teams to solve a ‘local challenge’ selected from proposals submitted ahead.","hackathon-slovenia.sections.8.content.1":"During the Hackathon, teams will get support from experienced mentors, be able to participate in workshops, do mini-challenges, quizzes, win prizes and a 2.000€ prize for the winning team! The jury will take the team’s method, use of time and quality of the prototype into consideration to select the successful candidates!","hackathon-slovenia.sections.8.content.2":"Each national winner will meet in a European clash of titans where each winning team will pitch their solution to a European jury during the official EU Code Week 9-24 October 2021. The European champion will, besides the glory, win additional IT equipment.","hackathon-slovenia.sections.8.content.3":"Free online and/or physical side events will also be organised during summer 2021 for beginners in coding.","hackathon-slovenia.sections.8.content.4":"","hackathon-slovenia.sections.8.content.5":"","hackathon-slovenia.sections.8.content.6":"","hackathon-slovenia.sections.8.content.7":"","hackathon-slovenia.sections.8.content.8":"","hackathon-slovenia.sections.8.content.9":"Day 1","hackathon-slovenia.sections.8.content.10":"Day 2","hackathon-slovenia.sections.9.title":"Practical Info","hackathon-slovenia.sections.9.content.0":"The hackathon is free of charge for all participants.","hackathon-slovenia.sections.9.content.1":"The Slovenian hackathon will","hackathon-slovenia.sections.9.content.2":"be held online","hackathon-slovenia.sections.9.content.3":"the 18-19 September 2021.","hackathon-slovenia.sections.9.content.4":"Stable broadband internet access and computer equipment that will come in handy at work will be available in the modernly equipped premises of EKSCENTER.","hackathon-slovenia.sections.9.content.5":"The on-duty weathergirl for the Code Week events for this weekend in Nova Gorica predicts warm late summer weather.","hackathon-slovenia.sections.9.content.6":"Food, drinks, accommodation will be provided as well as a minimum of 75 euro to cover transportation expenses.","hackathon-slovenia.sections.9.content.7":"It is advisable to bring your own computers/laptops, as well as some clothes, a toilet bag and a sleeping bag.","hackathon-slovenia.sections.9.content.8":"We will be waiting for you in an upbeat mood, and all you need to do is bring a package of curiosity.","hackathon-slovenia.sections.9.content.9":"You will receive more detailed information about the event, venue and everything else after registration.","hackathon-slovenia.sections.9.content.10":"The Slovenian hackathon will be held online and is one of six competitions for young people in Europe that will be organised by Code Week in Greece, Latvia, Ireland, Italy and Romania. It is intended for creative students who are interested in the future of technology. If this is you, please join us in learning about and developing innovative solutions.","hackathon-slovenia.sections.9.content.11":"Registration > ","hackathon-slovenia.sections.9.content.12":"Instructions for participants","hackathon-slovenia.sections.9.content.13":"This 2-days EU Code Week hackathon will be held online from Saturday 18 September to Sunday 19 September 2021.","hackathon-slovenia.sections.9.content.14":"The jury will take your method, use of your time and prototype quality into account when selecting the successful team!","hackathon-slovenia.sections.9.content.15":"To help you prepare for the pitch of your solution, we will offer you free workshops during the hackathon. Your team will also be assisted by mentors who will make sure you are on the right track.","hackathon-slovenia.sections.9.content.16":"The top best teams will be rewarded for their achievements with practical prizes.","hackathon-slovenia.sections.9.content.17":"The winning team will receive a cash prize of EUR 2,000 and an invitation to present their solution to the European jury on the 14 October 2021.","hackathon-slovenia.sections.9.content.18":"The winners of hackathons from six countries will present their prototypes to the European jury during the official EU Code Week the 14 October, 2021. The European champions will be rewarded with even more computer equipment that will (hopefully) encourage them to further develop their digital skills.","hackathon-slovenia.sections.10.title":"Jury & Mentors","hackathon-slovenia.sections.10.content.0":"EU Code Week Hackathon Slovenia brings together leading figures from the Worlds of business, IT, venture capital, education, as well as local, national and EU leaders, influencers and coaches to guide and support you and your team during this intensive marathon.","hackathon-slovenia.sections.10.content.1":"Sign up now to","hackathon-slovenia.sections.10.content.2":"EU Code Week Hackathon","hackathon-slovenia.sections.10.content.3":"and make it happen!","hackathon-slovenia.sections.11.title":"Side events","hackathon-slovenia.sections.11.content.0":"In connection with the hackathon, there will be workshops for beginners in coding, tinkering with hardware and robotics and so on for participants to learn some basics of computational thinking and coding. From April to September, we are organising side events with our amazing partners of the EU Code Week Hackathons and it’s free to take part! Check out the different activities and register to get the link.","hackathon-slovenia.sections.11.events.1.title":"Animate a name","hackathon-slovenia.sections.11.events.1.content.0":"Are you between 9 to 14 and eager to know more about computer programming? This workshop is for you! You will create, have fun and quickly acquire some coding skills. With just a handful of blocks and a few clicks, you can make a 'sprite' (character) dance, talk, or animate it in a variety of ways. In addition, the computer science concepts we will be using in Scratch for CS First can be applied to other advanced programming languages such as Python or Java. ","hackathon-slovenia.sections.11.events.1.content.1":"Register, and participate in this activity and you will be able to:","hackathon-slovenia.sections.11.events.1.content.2":"Use a block-based programming language","hackathon-slovenia.sections.11.events.1.content.3":"Master important computer science concepts such as events, sequences and loops","hackathon-slovenia.sections.11.events.1.content.4":"Create an animation project in Scratch for CS First","hackathon-slovenia.sections.11.events.1.content.5":"Date: Date: 8 October, 11:00, 14:00 -> click","hackathon-slovenia.sections.11.events.1.content.6":"here","hackathon-slovenia.sections.11.events.1.content.7":"to register !","hackathon-slovenia.sections.11.events.1.content.8":"More information:","hackathon-slovenia.sections.11.events.2.title":"Creative Coding Workshop","hackathon-slovenia.sections.11.events.2.content.0":"Learn the basics of Python with imagiLabs' creative coding tools! Perfect for kids aged 9-15, this 1.5 hour workshop for beginners will take coders from lighting up one pixel at a time to making colourful animations.","hackathon-slovenia.sections.11.events.2.content.1":"Date: XXX -> click","hackathon-slovenia.sections.11.events.2.content.2":"here","hackathon-slovenia.sections.11.events.2.content.3":"to register !","hackathon-slovenia.sections.11.events.2.content.4":"Download the free imagiLabs app on your iOS or Android device to get started today. No imagiCharms needed -- come to the virtual workshop as you are!","hackathon-slovenia.sections.11.events.makex.title.0":"Robotics Training Series by MakeX/MakeBlock","hackathon-slovenia.sections.11.events.makex.title.1":"Robotics Training Series 1 - Introduction to Robotics and Robotics Competitions by MakeX/MakeBlock","hackathon-slovenia.sections.11.events.makex.title.2":"Robotics Training Series 2 - Programming and Hardware Construction by MakeX/MakeBlock","hackathon-slovenia.sections.11.events.makex.title.3":"Robotics Training Series 3 – Award-winning Mentor Sharing by MakeX/MakeBlock","hackathon-slovenia.sections.11.events.makex.content.0":"MakeX, a global robotics competition platform presents a comprehensive series of educational robotics training to teachers and mentors who are interested in practical learning, STEAM education, programming and robotics competitions for students of all ages using cutting-edge software and hardware like mBot2, laserbox and mBlock5.","hackathon-slovenia.sections.11.events.makex.content.1":"From introduction to robotics, programming and hardware construction to award-winning mentor sharing, you will dive into the process of project-based learning and how to organize students to use completions platforms to solve real world problems. Teachers organizing robotics curriculums at school are welcome and will benefit from a deeper understanding of programming, computational thinking, pedagogical concepts, robot hardware, and troubleshooting techniques.","hackathon-slovenia.sections.11.events.makex.content.2":"here","hackathon-slovenia.sections.11.events.makex.content.3":"to register !","hackathon-slovenia.sections.11.events.makex.content.4":"More information:","hackathon-slovenia.sections.11.events.makex.content.5":"https://www.makex.cc/en","hackathon-slovenia.sections.11.events.makex.dates.0":"Date: 1st June, 11:00 CEST -> click","hackathon-slovenia.sections.11.events.makex.dates.1":"Date: 3rd June, 11:00 CEST -> click","hackathon-slovenia.sections.11.events.makex.dates.2":"Date: 8th June, 11:00 CEST -> click","hackathon-slovenia.sections.12.title":"About CODEWEEK.EU","hackathon-slovenia.sections.12.content.0":"EU Code Week (#EUCodeWeek) is a grassroots movement run by volunteers to promote digital literacy through activities linked to coding and computer science. It inspires and engages people to explore new ideas and innovation for the future. Activities for ","hackathon-slovenia.sections.12.content.1":"EU Code Week","hackathon-slovenia.sections.12.content.2":"take place all over the world between 9 and 24 October. ","hackathon-slovenia.sections.12.content.3":"The idea of the EU Code Week Hackathon is to show how concrete solutions come to life with the help of young people’s creativity, enthusiasm, fresh ideas and coding skills. The hackathons are created and co-organised by the","hackathon-slovenia.sections.12.content.4":"European Commission","hackathon-slovenia.sections.12.content.5":"and local","hackathon-slovenia.sections.12.content.6":"EU Code Week Ambassadors","hackathon-slovenia.sections.12.content.7":"The initiative is financed by","hackathon-slovenia.sections.12.content.8":"the European Parliament","hackathon-slovenia.sections.12.content.9":"Discover More","hackathon-slovenia.sections.mentors.1.0":"Janko Harej","hackathon-slovenia.sections.mentors.1.1":"Janko Harej is a higher education lecturer and teacher of professional subjects at the Nova Gorica Secondary School. He is interested in all aspects of integrating new technologies into education. He participates in various national and international projects, where he develops teacher education, develops services and e-content. He was involved in the revision of several curricula.","hackathon-slovenia.sections.mentors.1.2":"In his free time, he is actively involved in the field of choral music.","hackathon-slovenia.sections.mentors.2.0":"Katja K. Ošljak","hackathon-slovenia.sections.mentors.2.1":"Researcher of communication and digital media, founder of the Institute for Digital Education Vsak and Slovenian ambassador of the EU Code Week project. It strives for access to digital education and media literacy for citizens of the information society","hackathon-slovenia.sections.mentors.3.0":"Uroš Polanc","hackathon-slovenia.sections.mentors.3.1":"Uroš has been involved in innovation, prototyping, networking and many other things since he was a child. He completed his studies in mechatronics. He is now the head of the Learning Production Laboratory at ŠCNG, which is a laboratory dedicated to networking, prototyping and learning.","hackathon-slovenia.sections.mentors.3.2":"He participates in various local and European projects, and also walks in business environment. He has extensive experience in mentoring, prototyping, working with young people, CNC machining, 3D modeling,","hackathon-slovenia.sections.mentors.4.0":"Luka Manojlovic","hackathon-slovenia.sections.mentors.4.1":"Luka Manojlovic is a technical enthusiast - a computer scientist who has been dealing with server and network infrastructure for more than 20 years.","hackathon-slovenia.sections.mentors.4.2":" He likes to share his knowledge with the participants of interactive workshops from various fields of information technologies.","hackathon-slovenia.sections.mentors.5.0":"Vesna Krebs","hackathon-slovenia.sections.mentors.5.1":"Vesna Krebs is a media artist and mentor who works both at home and abroad. Vesna combines her love of technology and art through various workshops and performances for children.","hackathon-slovenia.sections.mentors.5.2":"In her pedagogical work, the emphasis is on creative audio-visual production with computer technologies, with which she encourages the younger population to think creatively and create with the help of modern technologies.","hackathon-slovenia.sections.mentors.6.0":"Alojz Černe","hackathon-slovenia.sections.mentors.6.1":"Alojz has an excellent working knowledge of IT, is a highly experienced developer and system designer. His field of work is also on microservice platforms - development and deployment of services on these platforms. 30+ years of experience in international enterprise projects with larger systems, in finance, telco and retail sector.","hackathon-slovenia.sections.mentors.6.2":"In addition to this he is an outstanding Official Red Hat Instructor and Architect. He is a curious learner and eager to implement and share his newly obtained knowledge in practice.","hackathon-slovenia.sections.mentors.7.0":"Gasper Koren","hackathon-slovenia.sections.mentors.7.1":"Gasper started his career as a researcher at University of Ljubljana where he focused on Survey Data Collection and Statistical analysis. Later he switched to Tech Startup World, where he spent the past 14 years. First he worked as Chief Operations Officer at one of the first VC founded Slovenian startups, Zemanta which got acquired by Outbrain (Nasdaq: OB). Currently working as VP of Finance and Compliance at Flaviar, largest US Online Marketplace for Spirits. His experience go from (tech) product development and data analytics to international operations and finance.","hackathon-slovenia.sections.after.0":"What happens next?","hackathon-slovenia.sections.after.1":"The successful teams are now working on their prototype and will meet at the final hackathon in X to battle it out and decide the winner of X Hackathon. Make sure to follow here and on social media for updates from the contestants’ teams! ","hackathon-slovenia.sections.after.2":"EU Code Week Hackathon Slovenia gave smart, passionate young people the chance to put their coding skills and creative ideas towards solving a concrete local challenge. After an initial 24-hour virtual hackathon, up to 10 teams advanced to the next stage. The finalists worked on their prototypes with some guidance from mentors over the summer and are now ready to compete! The Code Week hackathon journey concluded with a battle on skills, knowledge and creativity at the final hackathon on X September/October in [city].","hackathon-slovenia.sections.after.3":"The Winners","hackathon-slovenia.sections.after.4":"See all the winners","hackathon-slovenia.sections.after.5":"Gallery","hackathon-slovenia.sections.after.6":"Check out the ‘young hackers’ from Slovenia in action during the EU Code Week Hackathon","hackathon-slovenia.sections.after.7":"Support Wall","hackathon-slovenia.sections.after.8":"And thanks to the Tweets, shout-outs and all the support during the Hackathons! Check out some highlights!","hackathon-slovenia.sections.after.9":"Jury & Mentors","hackathon-slovenia.sections.after.10":"EU Code Week Hackathon in Slovenia brought together leading figures from the Worlds of business, IT, venture capital, education, as well as local, national and EU leaders, influencers and coaches to guide and support participants during the intense hackathon. A select number of jury members were chosen to decide the final winning team, according to relevant guidelines and competition rules.","hackathon-slovenia.sections.after.11":"Read the guidelines","hackathons.title":"EU Code Week HACKATHONS","hackathons.subtitle":"Bring your ideas to life!","hackathons.sections.1.title":"6 hackathons, 6 challenges","hackathons.sections.1.content.1":"Do you live in Greece, Latvia, Ireland, Italy, Romania or Slovenia? Are you creative, ambitious and interested in the future of technology? Now is your chance! Join one of the EU Code Week hackathons and develop an innovative solution that will put you at the forefront of the technological revolution!","hackathons.sections.1.content.2":"In 2021, EU Code Week brings six extraordinary hackathons and invites 15-19 year old students, in upper secondary school, to form teams and use their coding skills to solve a local challenge. After 24 hours of hacking, each team will pitch their ideas to a panel of experts who will choose the 10 finalist teams. All teams will have the same amount of time, resources, and access to mentors and expertise in order to complete the challenge, but only 10 will get the chance to continue to the next round, develop their prototype, get expert coaching and take part in the final hackathon in the autumn. Here the teams will battle it out to decide who wins cool IT gear and the chance of mentoring and coaching to further develop their prototype","hackathons.sections.2.title":"How can I take part?","hackathons.sections.2.content.1":"Select the hackathon in your country and follow a few simple steps to register. You can join as an individual or as a team of six people. If you join with friends or classmates, don’t forget to indicate the name of your team when you register. Each hackathon will open its registration separately, so follow the hackathon in your country!","hackathons.sections.3.title":"Who are the organisers?","hackathons.sections.3.content.1":"The EU Code Week hackathons are co-organised by the European Commission and local EU ","hackathons.sections.3.content.2":"Code Week Ambassadors","hackathons.sections.3.content.3":"and they are financed by the European Parliament. The aim is to show how concrete solutions come to life with the help of young people’s creativity, enthusiasm, fresh ideas and coding skills.","hackathons.sections.4.title":"What does a hackathon look like?","hackathons.sections.4.content.1":"The EU Code Week hackathon is a journey that kicks-off with an online 24-hour hackathon. Experienced mentors will coach the teams and there will be workshops providing opportunities for participants to learn new skills and have fun. The hackathon is also an excellent opportunity for participants to network and socialise with people in the European tech sector. At the end of the hackathon each team will pitch their solution to an expert jury. ","hackathons.sections.4.content.2":"The ten best teams will continue their hackathon journey and receive training and mentoring over the summer. The winners will then take part in the final 12-hour face-to-face national hackathon in September or October (which will take place online, if the public health situation does not allow for a physical meet-up).","hackathons.sections.5.title":"I don’t know coding – what can I do?","hackathons.sections.5.content.1":"In connection with the hackathon, there will be workshops for beginners in coding, tinkering with hardware and robotics and so on for participants to learn some basics of computational thinking and coding. See more information about how to register on your local page.","hackathons.sections.6.title":"Partners","hackathons.sections.7.title":"Join in the fun!","hackathons.cities.1.city":"TBA","hackathons.cities.1.country":"Romania","hackathons.cities.1.date":"25-26 September 2021","hackathons.cities.2.city":"TBA","hackathons.cities.2.country":"Ireland","hackathons.cities.2.date":"23-24 September 2021","hackathons.cities.3.city":"TBA","hackathons.cities.3.country":"Italy","hackathons.cities.3.date":"24-25 September 2021","hackathons.cities.4.city":"TBA","hackathons.cities.4.country":"Greece","hackathons.cities.4.date":"9 October 2021","hackathons.cities.5.city":"TBA","hackathons.cities.5.country":"Slovenia","hackathons.cities.5.date":"18-19 September 2021","hackathons.cities.6.city":"TBA","hackathons.cities.6.country":"Latvia","hackathons.cities.6.date":"1 October 2021","hackathons.final.1":"Final in","hackathons.final.2":"September/October 2021","home.about":'EU Code Week is a grassroots initiative which aims to bring coding and digital literacy to everybody in a fun and engaging way…',"home.when":"","home.when_text":"Learning to code helps us make sense of the rapidly changing world around us. Join millions of fellow organisers and participants to inspire the development of coding and computational thinking skills in order to explore new ideas and innovate for the future.","home.school_banner_title":"Get Involved! Add an Activity!","home.school_banner_text":"Are you a teacher?","home.school_banner_text2":"Find out how to get involved!","home.organize_activity_title":"Organise or join an activity","home.organize_activity_text":'Anyone is welcome to organise or join an activity. Just pick a topic and a target audience and add your activity to the map, or browse for activities in your area.',"home.get_started_title":"Get started","home.get_started_text":'Not sure how to get started? Take a look at the how-to page, and download our toolkits for organisers to get prepared and spread the word.',"home.access_resources_title":"Access resources and training","home.access_resources_text":'If you are not sure how to organise an activity, visit our teaching resources page and learning bits training materials for guidance and tailored lesson plans.',"home.event_title":"Event title 1","home.explore_event":"Explore event","home.count_down":"Countdown","home.days":"days","home.hours":"hours","home.mins":"mins","home.toolkits_title":"Not sure how to get started?","home.toolkits_description":"Take a look at the how-to page, and download our toolkits for organisers to get prepared and spread the word.","home.toolkits_button1":"Get started","home.toolkits_button2":"Toolkits for organisers","home.minecraft_description1":"Careers in Digital is part of EU Code Week targeting 15–18-year-olds and educators to explore exciting and varied digital careers.","home.minecraft_description2":"Discover role models doing their dream job in digital - dive into their motivational videos and career pathways and explore our Careers in Digital Guide to understand the variety of roles and how to get there.","home.minecraft_button":"Get involved","home.activity_title":"Organise or join an activity","home.activity_description":"Anyone is welcome to organise or join an activity. Just pick a topic and a target audience and add your activity to the map, or browse for activities in your area.","home.activity_button1":"Add your activity","home.activity_button2":"Show activity map","home.resouce_title":"Resources and training","home.resouce_description":"If you are not sure how to organise an activity, visit our teaching resources page and learning bits training materials for guidance and tailored lesson plans.","home.resouce_button1":"Access resources","home.resouce_button2":"Access trainings","home.get_involved":"Get involved","home.meet_our_community":"Meet our community","home.banner1_title":"Careers in Digital","home.banner1_description":"Get inspired by dream jobs in digital and explore role models, career guides, open day toolkits and more!","home.banner2_title":"Our Code Week Family","home.banner2_description":"Discover our vibrant network of ambassadors, teachers, students and hubs—each contributing to our shared passion for digital education.","home.carrersdigital_description1":"Careers in Digital is part of EU Code Week targeting 15–18-year-olds and educators to explore exciting and varied digital careers.","home.carrersdigital_description2":"Discover role models doing their dream job in digital - dive into their motivational videos and career pathways and explore our Careers in Digital Guide to understand the variety of roles and how to get there.","home.carrersdigital_button":"Get involved","home.banner3_title":"October 11-26","leading-teacher.levels.Pre-primary":"Pre-primary","leading-teacher.levels.Primary":"Primary","leading-teacher.levels.Lower Secondary":"Lower Secondary","leading-teacher.levels.Upper Secondary":"Upper Secondary","leading-teacher.levels.Tertiary":"Tertiary","leading-teacher.levels.Other":"Other","locations.title":"Activity venues","locations.description.0":"For your next activity, select a venue from the list below OR register a new venue in","locations.description.1":"activity creation","locations.description.2":"","login.login":"Login","login.register":"Register","login.github":"Sign in with Github","login.X":"Sign in with X","login.facebook":"Sign in with Facebook","login.google":"Sign in with Google","login.azure":"Sign in with Azure","login.email":"E-Mail Address","login.password":"Password","login.remember":"Keep me signed in","login.forgotten_password":"Forgot Your Password","login.no_account":"Don't have an account ?","login.signup":"Sign Up","login.reset":"Reset Your Password","login.send_password":"Reset Password","login.confirm_password":"Confirm Password","login.name":"Fullname","login.resetpage_title":"Forgotten your password?","login.resetpage_description":"Confirm your email address below and we’ll send you instructions on how to create your new password","menu.learn":"Learn & Teach","menu.training":"Training","menu.challenges":"Challenges","menu.online-courses":"Online Courses","menu.toolkits":"Presentations and Toolkits","menu.girls_in_digital":"Girls in Digital","menu.careers_in_digital":"Careers in Digital","menu.treasure-hunt":"Treasure Hunt","menu.webinars":"Webinars","menu.why":"Why","menu.home":"Home","menu.search_result":"Search results","menu.events":"Activities","menu.ambassadors":"Ambassadors","menu.resources":"Resources","menu.game_and_competitions":"Games & Competitions","menu.schools":"Schools","menu.about":"About","menu.blog":"Blog","menu.news":"News","menu.search":"Search","menu.map":"Map","menu.add_event":"Add Activity","menu.search_event":"Search Activities","menu.hello":"Hello","menu.profile":"Profile","menu.pending":"Pending Activities","menu.your_events":"My activities","menu.your_certificates":"My certificates","menu.report":"Report my activities","menu.volunteers":"Volunteers","menu.logout":"Logout","menu.login":"Login","menu.signin":"Sign in","menu.signup":"Sign up","menu.privacy":"Privacy","menu.stats":"Statistics","menu.participation":"Participation Certificate","menu.coding@home":"Coding@Home","menu.values":"Our values","menu.online_events":"Online Activities","menu.featured_activities":"Featured Online Activities","menu.codeweek2020":"2020 Edition","menu.register_activity":"Register activity","menu.select_language":"Select language","menu.search_site":"Search site","menu.what_you_looking_for":"What are you looking for?","menu.type_to_search":"Type to search...","moderation.description.title":"Missing proper descriptions","moderation.description.text":"Please improve the description and describe in more detail what you will do and how your activity relates to coding and computational thinking. Thanks!","moderation.missing-details.title":"Missing important details","moderation.missing-details.text":"Provide more details on the activity objectives and goals and how it makes use of technology, coding and critical thinking. Thanks!","moderation.duplicate.title":"Duplicate","moderation.duplicate.text":"This seems to be a duplication of another activity taking place at the same time. If it is not please change the description and change the title so that it is clear that the activities are separate. Thanks!","moderation.not-related.title":"Not programming related","moderation.not-related.text":"Provide more information on the activity objectives and goals and how it makes use of technology, coding and critical thinking. Thanks!","mooc.free-online-courses":"Free online courses","mooc.intro":"EU Code Week offers professional development opportunities in the form of online courses. The aim is to support teachers in bringing coding and computational thinking to the classroom.","mooc.icebreaker.title":"The introductory “Icebreaker” course","mooc.icebreaker.text.0":"The","mooc.icebreaker.text.1":"The CodeWeek Icebreaker course","mooc.icebreaker.text.2":`is a five-hour course in English that targets anyone interested in + the basics of coding and computational thinking. The participants learn how to inspire curiosity and + an innovative spirit in young people, while empowering them to become digital creators. The course + helps participants to discover the benefits and relevance of computational thinking and coding in + our everyday lives. It also provides ideas, free training materials and resources to organise fun + and educational activities for children, anytime, anywhere – especially during Code Week.`,"mooc.icebreaker.text.3":`You do not need any previous experience or knowledge in coding to participate in this course, just a + curious mind.`,"mooc.icebreaker.registration.0":"Registrations are open here","mooc.icebreaker.registration.1":"for the course that runs between 16 September and 30 October 2020. Please note that you need to create an account in the European Schoolnet Academy to register.","mooc.icebreaker.check-out":"Check out the 2019 edition","mooc.deep-dive.title":"The in-depth “Deep Dive” course","mooc.deep-dive.text.0":`The EU Code Week Deep Dive online course is a twenty-five-hour course in English that offers teachers + the opportunity to get familiarised with coding related principles and gain the knowledge and + confidence to organize easy and fun, interactive coding activities with their students. Teachers + discover EU Code Week’s free`,"mooc.deep-dive.text.1":"resources","mooc.deep-dive.text.2":`and + training materials available in 29 languages, and + particular aspects of coding, such as computational thinking, unplugged activities, and the endless + possibilities of robotics, tinkering and making, visual programming languages, app creation and much + more.`,"mooc.deep-dive.course-link":"Check out the 2019 “Deep dive” course","mooc.social-media.0":"Follow","mooc.social-media.1":"EU Code Week on social media","mooc.social-media.2":"to find out when the next course will start","myevents.created_by":"All activities created by ","myevents.no_events.first_call_to_action":"You haven't added any activities yet. Why don't you ","myevents.no_events.first_link":"add one now","myevents.no_events.second_call_to_action":"or read our ","myevents.no_events.second_link":"guide for organizers","myevents.view":"View","myevents.view_lesson":"View lesson","myevents.status.APPROVED":"APPROVED","myevents.status.REJECTED":"REJECTED","myevents.status.PENDING":"PENDING","myevents.status.reported":"REPORTED","online-courses.title":"EU CODE WEEK ONLINE COURSES","online-courses.description.0":"EU Code Week offers professional development opportunities in the form of massive open online courses (MOOCs) with the aim to support teachers in effectively incorporating coding and computational thinking into their teaching practice.","online-courses.description.1":"EU Code Week MOOCs are open to all educators, regardless of their students' age or the subject they teach, and no prior experience or knowledge is required to participate.","online-courses.description.2":"EU Code Week MOOCs offer free and accessible resources, materials, ideas and best practice examples to find inspiration and empower students by introducing coding and computational thinking, emerging technologies and artificial intelligence safely into the classroom.","online-courses.more-info":"More information about the EU Code Week MOOCs: ","online-courses.online-courses-text":"Massive open online courses (MOOCs) aiming to support teachers in effectively incorporating coding and computational thinking into their teaching practice.","online-courses.online-courses-sub-text1":"EU Code Week MOOCs are open to all educators, regardless of their students' age or the subject they teach, and no prior experience or knowledge is required to participate.","online-courses.online-courses-sub-text2":"EU Code Week MOOCs offer free and accessible resources, materials, ideas and best practice examples to find inspiration and empower students by introducing coding and computational thinking, emerging technologies, and artificial intelligence safely into the classroom.","online-courses.online-courses-sub-text3":"Although some of the courses have concluded, the content remains accessible; however, badges and certificates are no longer issued.","participation.title":"Generate Certificates of Participation for your class","participation.phrase1":"Fill the form with the name of your students separated by a comma and you will receive the individual certificates of participation","participation.names.label":"Names for certificate","participation.names.help":"Use a comma between each participant's name","participation.event_name.label":"Activity Name","participation.event_name.help":"The name of your activity to be printed on the certificate","participation.event_date.label":"Activity Date","participation.event_date.help":"The date of your activity to be printed on the certificate","participation.submit":"Generate Certificates","participation.thanks_page.title":"Your certificates have been generated!","participation.thanks_page.phrase1":"Click on this link to download the zip file with all the certificates","partners.ja_spain_name":"Junior Achievement Spain","partners.ja_spain_description":"Junior Achievement Spain is an influential organization dedicated to equipping young people with the skills and knowledge necessary for success in their future careers. Its educational programs focus on financial literacy, entrepreneurship, and work readness, providing students with real-world experiences and practical learning opportunities. Through partnerships with businesses and educators, Junior Achievement Spain fosters a culture of innovation and self-discovery, encouraging students to take initiative in their education and career paths. The organization believes in the potential of every young person to contribute positively to society.","passwords.password":"Passwords must be at least six characters and match the confirmation.","podcasts.podcasts-text":"Tune in for expert insights on coding and digital creativity!","podcasts.podcasts-series-text1":`Welcome to the EU Code Week Podcast Series. We bring coding, computational thinking, robotics and + innovation closer to you, your community and your school.`,"podcasts.podcasts-series-text2":`Join Arjana Blazic, Eugenia Casariego and Eirini Symeonidou, as they explore a range of topics, from + media literacy to robotics, with the help of expert guests – to empower you to equip your students with the skills to confront the challenges and opportunities posed by a digital future.`,"privacy-old.title":"PROTECTION OF YOUR PERSONAL DATA","privacy-old.subtitle":"This privacy statement provides information about the processing and the protection of your personal data.","privacy-old.1-intro.title":"1. Introduction","privacy-old.1-intro.items.1":"

The European Commission (hereafter ‘the Commission’) is committed to protect your personal data and to respect your privacy. The Commission collects and further processes personal data pursuant to Regulation (EU) 2018/1725 of the European Parliament and of the Council of 23 October 2018 on the protection of natural persons with regard to the processing of personal data by the Union institutions, bodies, offices and agencies and on the free movement of such data (repealing Regulation (EC) No 45/2001).

","privacy-old.1-intro.items.2":"

This privacy statement explains the reason for the collection and processing, the way we collect, handle and ensure protection of all personal data provided, how that information is used and what rights you may exercise in relation to your personal data (the right to access, rectify, block etc.). It also specifies the contact details of the responsible Data Controller with whom you may exercise your rights, the Data Protection Officer and the European Data Protection Supervisor.

","privacy-old.1-intro.items.3":"

This privacy statement concerns the collection and publication of personal data on the publicly accessible Codeweek.eu website, of persons who serve as contact points for EU Code Week activities (Code Week ambassadors, Education Ministry Coordinators, Leading Teachers as well as activity and event organisers).

","privacy-old.2-why.title":"2. Why do we process your data?","privacy-old.2-why.items.1":"

The European Commission collects and publishes your personal information to facilitate the identification of contact points by stakeholders or interested citizens. Offering real persons as contact points is the best and most efficient way to ensure that interested people can get in contact with Commission services.

","privacy-old.2-why.items.2":"

Your personal data will not be used for any automated decision-making, including profiling.

","privacy-old.3-legal_process.title":"3. On what legal ground(s) do we process your personal data","privacy-old.3-legal_process.items.1":"

The processing operations on personal data for the publication of contact points are lawful under article 5(1)(d) of the Regulation (EU) 2018/1725 because you gave your consent to the processing of your personal data through a webform or when you agreed that we use your email and username if you signed up with a social network.

","privacy-old.4-collect_data.title":"4. Which personal data do we collect and further process?","privacy-old.4-collect_data.items.1":"

Personal data collected are information which make your identification as a contact point easier and increase your visibility for the public, namely: title, name, surname, position, professional postal & e-mail addresses, phone number, picture, social media account, biography.

","privacy-old.4-collect_data.items.2":"

You provided these personal data on a voluntary basis, by filling out the application form.

","privacy-old.4-collect_data.items.3":"

The provision of certain personal data is mandatory for the publication of activities and/or contact information possible on the codeweek.eu website. If you do not provide your personal data, your activity would not be published, and/or you would not be able to take part in the aforementioned networks.

","privacy-old.4-collect_data.items.4":"

You provide all other personal data on a voluntary basis.

","privacy-old.4-collect_data.items.5":"When you subscribe to our newsletter, your email address is added to EU Code Week’s newsletter mailing list, which is managed by Mailerlite.com. Please read Mailerlite’s privacy policy: https://www.mailerlite.com/legal/privacy-policy. You can opt out from the newsletters, at any time, by using the “unsubscribe” link in the emails you receive from us or you can send us an email at info@codeweek.eu with “Unsubscribe” in the subject line.","privacy-old.5-how_long.title":"5. How long do we keep your personal data?","privacy-old.5-how_long.items.1":"

The Commission only keeps your personal data for the time necessary to fulfil the purpose of collection or further processing described in the point 2, namely for as long as you serve as a contact point.

","privacy-old.5-how_long.items.2":"

Your personal data will be removed from the publicly available website as soon as you cease your contact point function unless you have given your agreement to be included in the database for future activities.

","privacy-old.6-protect_data.title":"6. How do we protect and safeguard your personal data?","privacy-old.6-protect_data.items.1":"

All personal data in electronic format (e-mails, documents, databases, uploaded batches of data, etc.) are stored either on the servers of the European Commission or of its contractor. All processing operations are carried out pursuant to the Commission Decision (EU, Euratom) 2017/46 of 10 January 2017 on the security of communication and information systems in the European Commission.

","privacy-old.6-protect_data.items.2":"

The Commission’s contractors are bound by a specific contractual clause for any processing operations of your data on behalf of the Commission, and by the confidentiality obligations deriving from the transposition of the General Data Protection Regulation in the EU Member States (‘GDPR’ Regulation (EU) 2016/679).

","privacy-old.6-protect_data.items.3":"

In order to protect your personal data, the Commission has put in place a number of technical and organisational measures in place. Technical measures include appropriate actions to address online security, risk of data loss, alteration of data or unauthorised access, taking into consideration the risk presented by the processing and the nature of the personal data being processed. Organisational measures include restricting access to the personal data solely to authorised persons with a legitimate need to know for the purposes of this processing operation.

","privacy-old.7-access_data.title":"7. Who has access to your data and to whom is it disclosed?","privacy-old.7-access_data.items.1":"

Access to your personal data is provided to the Commission staff responsible for carrying out this processing operation and to authorised staff according to the “need to know” principle. Such staff abide by statutory, and when required, additional confidentiality agreements.

","privacy-old.7-access_data.items.2":"

Concretely, all personal data provided by you can be accessed by the websites’ administrators (Commission staff), as well as by other Commission staff on a need to know basis.. Furthermore, you personal information and event information will be shared with members of the EU Code Week Ambassadors and Educational coordinators networks for local activities organisation or follow up.

","privacy-old.7-access_data.items.3":"

For the purpose of increasing the contact points’ visibility, your personal data are published without any access limitation on the public website: https://codeweek.eu.

","privacy-old.7-access_data.items.4":"

Regarding transfer of data to third parties

","privacy-old.7-access_data.items.5":"

The information we collect will not be given to any third party, except to the extent and for the purpose we may be required to do so by law.

","privacy-old.8-rights.title":"8. What are your rights and how can you exercise them?","privacy-old.8-rights.items.1":"

You have specific rights as a ‘data subject’ under Chapter III (Articles 14-25) of Regulation (EU) 2018/1725, in particular the right to access, rectify or erase your personal data and the right to restrict the processing of your personal data. Where applicable, you also have the right to object to the processing or the right to data portability.

","privacy-old.8-rights.items.2":"

You have consented to provide your personal data to us for the present processing operation and you can withdraw your consent at any time by notifying the Data Controller. The withdrawal will not affect the lawfulness of the processing carried out before you have withdrawn the consent.

","privacy-old.8-rights.items.3":"

You can exercise your rights by contacting the Data Controller, or in case of conflict the Data Protection Officer. If necessary, you can also address the European Data Protection Supervisor. Their contact information is given under Heading 9 below.

","privacy-old.9-contact.title":"9. Contact information","privacy-old.9-contact.data-controller.title":"-The Data Controller","privacy-old.9-contact.data-controller.text":"

If you would like to exercise your rights under Regulation (EU) 2018/1725, or if you have comments, questions or concerns, or if you would like to submit a complaint regarding the collection and use of your personal data, please feel free to contact the Data Controller,

","privacy-old.9-contact.data-controller.address":`Directorate-General for Communications Networks, Content and Technology Unit G2
+ Building BU25
+ B-1049 Brussels
`,"privacy-old.9-contact.data-controller.email":"Email: ","privacy-old.9-contact.data-protection-officer.title":"-The Data Protection Officer (DPO) of the Commission","privacy-old.9-contact.data-protection-officer.text":'

You may contact the Data Protection Officer (DATA-PROTECTION-OFFICER@ec.europa.eu) with regard to issues related to the processing of your personal data under Regulation (EU) 2018/1725.

',"privacy-old.9-contact.european-data-protection.title":"-The European Data Protection Supervisor (EDPS)","privacy-old.9-contact.european-data-protection.text":'

You have the right to have recourse (i.e. you can lodge a complaint) to the European Data Protection Supervisor (edps@edps.europa.eu) if you consider that your rights under Regulation (EU) 2018/1725 have been infringed as a result of the processing of your personal data by the Data Controller.

',"privacy-statement-contact.subtitle":"This privacy statement provides information about the processing and the protection of your personal data.","privacy-statement-contact.processing-operation.0":"Processing operation","privacy-statement-contact.processing-operation.1":"management of Code Week Ambassadors, Leading Teachers and registration of activities on the website","privacy-statement-contact.data-processors.0":"Data Processors","privacy-statement-contact.data-processors.1":"GOPA Com. S.A. and EUN Partnership AISBL (European Schoolnet), info@codeweek.eu","privacy-statement-contact.1-intro.0":"The information in relation to processing of personal data for the management of Code Week Ambassadors, Leading Teachers and registration of activities on the website.","privacy-statement-contact.3-legal_process.0":'Lawfulness of the processing operation: Unit G.2 collects, stores and publishes your personal data, because you gave your explicit consent by ticking a box when you signed up to become a Code Week Ambassador, a Leading Teacher or when you applied to register an event on EU Code Week.',"privacy-statement-contact.4-collect_data.0":"","privacy-statement-contact.4-collect_data.1":"","privacy-statement-contact.4-collect_data.2":"Email address","privacy-statement-contact.4-collect_data.3":"Password","privacy-statement-contact.4-collect_data.4":"Picture","privacy-statement-contact.4-collect_data.5":"Biography","privacy-statement-contact.4-collect_data.6":"Title","privacy-statement-contact.4-collect_data.7":"Field of expertise for Leading Teachers.","privacy-statement-contact.4-collect_data.8":"","privacy-statement-contact.4-collect_data.9":"","privacy-statement-contact.4-collect_data.10":"","privacy-statement-contact.4-collect_data.11":"","privacy-statement-contact.4-collect_data.12":"The provision of this data is mandatory to be a Code Week Ambassador, Leading Teacher or to register an activity on the Code Week website.","privacy-statement-contact.4-collect_data.13":"","privacy-statement-contact.4-collect_data.14":"Social media accounts","privacy-statement-contact.4-collect_data.15":"","privacy-statement-contact.4-collect_data.16":"Public contact e-mail address","privacy-statement-contact.4-collect_data.17":"Organiser’s website","privacy-statement-contact.4-collect_data.18":"Code Week for All Code","privacy-statement-contact.4-collect_data.19":"For activity organisers, please note that the relevant Ambassador for your country or Unit G.2 can use the personal data you provided to register an activity to contact you with regard to said activity.","privacy-statement-contact.4-collect_data.20":"You provided your personal data on the","privacy-statement-contact.4-collect_data.21":"","privacy-statement-contact.4-collect_data.22":"and on the","privacy-statement-contact.4-collect_data.23":".","privacy-statement-contact.5-how_long.0":"All personal data will be deleted from databases if you withdraw from the initiative or 5 years after the end of the initiative.","privacy-statement-contact.6-protect_data.0":'All personal data in electronic format (e-mails, documents, databases, uploaded batches of data, etc.) are stored either on the servers of the European Commission or of its contractors. All processing operations are carried out pursuant to the Commission Decision (EU, Euratom) 2017/46, of 10 January 2017, on the security of communication and information systems in the European Commission.',"privacy-statement-contact.6-protect_data.1":'The Commission’s contractors are bound by a specific contractual clause for any processing operations of your data on behalf of the Commission, and by the confidentiality obligations deriving from the transposition of the General Data Protection Regulation in the EU Member States (‘GDPR’ Regulation (EU) 2016/679).',"privacy-statement-contact.6-protect_data.2":"In order to protect your personal data, the Commission has put in place a number of technical and organisational measures. Technical measures include appropriate actions to address online security, risk of data loss, alteration of data or unauthorised access, taking into consideration the risk presented by the processing and the nature of the personal data being processed. Organisational measures include restricting access to the personal data solely to authorised persons with a legitimate need to know for the purposes of this processing operation.","privacy-statement-contact.7-access_data.0":"All personal data provided by you can be accessed by Commission staff on a “need to know” basis. In addition, access to your personal data is provided to our contractor on a “need to know” basis.","privacy-statement-contact.7-access_data.1":'For the purpose of increasing the Code Week Ambassador, Leading Teacher’s or the registered activities’ visibility, all your personal data are published on the following website.',"privacy-statement-contact.7-access_data.2":"In addition, Unit G.2 might share your share your contact details with any member of the public or stakeholder that would need to contact you with regard to Code Week. For activity organisers, please note that the relevant Ambassador for your country or Unit G.2 can use the personal data you provided to register an activity to contact you with regard to said activity.","privacy-statement-contact.8-rights.0":"You have consented to providing your personal data to Unit G.2 for the present processing operation. You can withdraw your consent at any time by notifying Unit G.2 at CNECT-G2@ec.europa.eu. The withdrawal will not affect the lawfulness of the processing carried out before you have withdrawn the consent.","privacy-statement-contact.10-detailed-info.0":"This specific processing operation has been included in the DPO’s public register with the following legacy notification reference: DPR-EC-02631 Management of contact points for DG CONNECT policies, programmes and projects.","privacy-statement.title":"PROTECTION OF YOUR PERSONAL DATA","privacy-statement.processing-operation.0":"Processing operation","privacy-statement.processing-operation.1":"Processing of personal data on codeweek.eu, including IP addresses, by visitors of the publicly available websites.","privacy-statement.data-controller.0":"Data Controller","privacy-statement.data-controller.1":"European Commission, Directorate‑General for Communications Networks, Content and Technology, Unit G.2.","privacy-statement.record-reference":"Record reference","privacy-statement.table-of-contents":"Table of Contents","privacy-statement.1-intro.title":"Introduction","privacy-statement.1-intro.items.1":'The European Commission (hereafter ‘the Commission’) is committed to protecting your personal data and to respecting your privacy. The Commission collects and further processes personal data pursuant to Regulation (EU) 2018/1725 of the European Parliament and of the Council, of 23 October 2018, on the protection of natural persons with regard to the processing of personal data by the Union institutions, bodies, offices and agencies and on the free movement of such data (repealing Regulation (EC) n° 45/2001).',"privacy-statement.1-intro.items.2":"This privacy statement explains the reason for the processing of your personal data, the way we collect, handle and ensure protection of all personal data provided, how that information is used and what rights you have in relation to your personal data. It also specifies the contact details of the responsible Data Controller with whom you may exercise your rights, the Data Protection Officer and the European Data Protection Supervisor.","privacy-statement.1-intro.items.3.0":"The information in relation to processing operation","privacy-statement.1-intro.items.3.1":"Data processing on codeweek.eu","privacy-statement.1-intro.items.3.2":"undertaken by the Commission is presented below.","privacy-statement.2-why.title":"Why and how do we process your personal data?","privacy-statement.2-why.items.0":"Purpose of the processing operation","privacy-statement.2-why.items.1":"The Commission’s Directorate-General for Communications Networks, Content and Technology offer a number of external websites. The technical setup collects and uses your personal information to be able to provide the websites which are physically located outside the Commission controlled hosting infrastructure.","privacy-statement.2-why.items.2":"Your personal data will not be used for an automated decision-making including profiling.","privacy-statement.3-legal_process.title":"On what legal ground(s) do we process your personal data?","privacy-statement.3-legal_process.items.0":"We process your personal data on several grounds:","privacy-statement.3-legal_process.items.1":'Article 5(1)(a) of Regulation (EU) 2018/1725: this processing is necessary for the performance of a task carried out in the public interest or in the exercise of official authority vested in the Union institution or body.',"privacy-statement.3-legal_process.items.2":"Indeed, informing the broad public is a task resulting from the European Commission's own prerogatives at institutional level, as provided for in Article 58(2) (d) of Regulation (EU, Euratom) 2018/1046 of the European Parliament and of the Council of 18 July 2018 on the financial rules applicable to the general budget of the Union (OJ L 193, 30.7.2018, p. 1). We ensure that adequate and specific safeguards are implemented for the processing of personal data, in line with the applicable data protection legislation.","privacy-statement.3-legal_process.items.3":'Article 5(1)(d) of Regulation (EU) 2018/1725: for the processing activities consisting in cookies and authentication, your consent is necessary. In compliance with Article 3(15) and Article 7 of Regulation (EU) 2018/1725, the consent must be freely given, specific, informed and unambiguous.',"privacy-statement.3-legal_process.items.4":"We have obtained your consent directly from you. You may have expressed it by an email, submitted via e-registration form, or in any other written form.","privacy-statement.4-collect_data.title":"Which personal data do we collect and further process?","privacy-statement.4-collect_data.items.0":"In order to carry out this processing operation, Unit G.2 collects the following categories of personal data:","privacy-statement.4-collect_data.items.1":"Internet Protocol address (IP address) or the device ID of the device used to access the website.","privacy-statement.4-collect_data.items.2":"Without this processing you will not be able to establish a technical connection between your devices and the server infrastructure and therefore will not be able to access our website.","privacy-statement.4-collect_data.items.3":"In order for you to authenticate on this website, Unit G.2 collects the following categories of personal data:","privacy-statement.4-collect_data.items.4":"E-mail address","privacy-statement.4-collect_data.items.5":"Password; or","privacy-statement.4-collect_data.items.6":"Social media authentication.","privacy-statement.5-how_long.title":"How long do we keep your personal data?","privacy-statement.5-how_long.items.0":"Unit G.2 only keeps your personal data for the time necessary to fulfil the purpose of collection or further processing, namely for the duration of the browsing session. In addition, IP addresses might be saved for one year in the log files of the services for security reasons. As to the analytics tool, the IP address and the device ID (e.g. IMEI number and WIFI MAC address) are deleted immediately at disconnection.","privacy-statement.6-protect_data.title":"How do we protect and safeguard your personal data?","privacy-statement.6-protect_data.items.0":"All personal data in electronic format (e-mails, documents, databases, uploaded batches of data, etc.) are stored on the servers of the European Commission. All processing operations are carried out pursuant to the","privacy-statement.6-protect_data.items.1":"Commission Decision (EU, Euratom) 2017/46","privacy-statement.6-protect_data.items.2":", of 10 January 2017, on the security of communication and information systems in the European Commission.","privacy-statement.6-protect_data.items.3":"In order to protect your personal data, the Commission has put in place a number of technical and organisational measures. Technical measures include appropriate actions to address online security, risk of data loss, alteration of data or unauthorised access, taking into consideration the risk presented by the processing and the nature of the personal data being processed. Organisational measures include restricting access to the personal data solely to authorised persons with a legitimate need to know for the purposes of this processing operation.","privacy-statement.7-access_data.title":"Who has access to your personal data and to whom is it disclosed?","privacy-statement.7-access_data.items.0":"Access to your personal data is provided to the Commission staff responsible for carrying out this processing operation and to authorised staff according to the “need to know” principle. Such staff abide by statutory, and when required, additional confidentiality agreements.","privacy-statement.7-access_data.items.1":"Furthermore, access to your personal data can be provided to external contractors working on behalf of and under contractual agreement with the Commission service owning the websites and engaged in creation, maintenance, management, and archiving of websites according to the “need to know” principle.","privacy-statement.7-access_data.items.2":"The information we collect will not be given to any third party, except to the extent and for the purpose we may be required to do so by law.","privacy-statement.8-rights.title":"What are your rights and how can you exercise them?","privacy-statement.8-rights.items.0":"You have specific rights as a ‘data subject’ under Chapter III (Articles 14-25) of Regulation (EU) 2018/1725, in particular the right to access, rectify or erase your personal data and the right to restrict the processing of your personal data. Where applicable, you also have the right to object to the processing or the right to data portability.","privacy-statement.8-rights.items.1":"You have the right to object to the processing of your personal data, which is lawfully carried out pursuant to Article 5(1)(a).","privacy-statement.8-rights.items.2":"You have consented to provide your personal data for the present processing operation. You can withdraw your consent at any time by notifying Unit G.2. The withdrawal will not affect the lawfulness of the processing carried out before you withdrew your consent.","privacy-statement.8-rights.items.3":"You can exercise your rights by contacting the Data Controller, or in case of conflict the Data Protection Officer. If necessary, you can also address the European Data Protection Supervisor. Their contact information is given under Heading 9 below.","privacy-statement.8-rights.items.4":"Where you wish to exercise your rights in the context of one or several specific processing operations, please provide their description (i.e. their Record reference(s) as specified under Heading 10 below) in your request.","privacy-statement.9-contact.title":"Contact information","privacy-statement.9-contact.data-controller.title":"The Data Controller","privacy-statement.9-contact.data-controller.text":"If you would like to exercise your rights under Regulation (EU) 2018/1725, or if you have comments, questions or concerns, or if you would like to submit a complaint regarding the collection and use of your personal data, please feel free to contact the Data Controller, Unit G.2, European Commission,at","privacy-statement.9-contact.data-protection-officer.title":"The Data Protection Officer (DPO) of the Commission","privacy-statement.9-contact.data-protection-officer.text":"You may contact the Data Protection Officer (DATA-PROTECTION-OFFICER@ec.europa.eu) with regard to issues related to the processing of your personal data under Regulation (EU) 2018/1725.","privacy-statement.9-contact.european-data-protection.title":"The European Data Protection Supervisor (EDPS)","privacy-statement.9-contact.european-data-protection.text":'You have the right to have recourse (i.e. you can lodge a complaint) to the European Data Protection Supervisor (edps@edps.europa.eu) if you consider that your rights under Regulation (EU) 2018/1725 have been infringed as a result of the processing of your personal data by the Data Controller.',"privacy-statement.10-detailed-info.title":"Where to find more detailed information?","privacy-statement.10-detailed-info.items.0":'The Commission Data Protection Officer (DPO) publishes the register of all processing operations on personal data by the Commission, which have been documented and notified to him. You may access the register via the following link: https://ec.europa.eu/dpo-register',"privacy-statement.10-detailed-info.items.1":"This specific processing operation has been included in the DPO’s public register with the following Record reference: DPR-EC-09706.1.","remote-teaching.remote-teaching":"Remote teaching","remote-teaching.intro.title":"Code Week and remote teaching","remote-teaching.intro.text":"Remote education can be quite a challenge for teachers and learners and there are many hurdles to overcome. However, teaching coding, computational thinking – even robotics – does not have to come to a halt because your students are at home. Here are some tips and resources that we hope can help you.","remote-teaching.intro.points.1":"this is a collection of short videos, do-it-yourself materials, puzzles, games, and coding challenges for everyday use in the family as well as at school.","remote-teaching.intro.points.2.0":"Coding Unplugged","remote-teaching.intro.points.2.1":"here you will find different activities you can easily do at home to learn or to teach coding with everyday materials.","remote-teaching.intro.points.3.0":"Learning Bits","remote-teaching.intro.points.3.1":"here you will find “Learning Bits” or tutorials on","remote-teaching.intro.points.3.2":"Sustainable Development","remote-teaching.intro.points.3.3":"and","remote-teaching.intro.points.3.4":"Artificial Intelligence","remote-teaching.intro.points.3.5":"which include remote teaching sections in their Lesson Plans.","remote-teaching.intro.points.4.0":"Repository of resources","remote-teaching.intro.points.4.1":"many of the resources in the repository can also be used in remote teaching scenarios. You can find resources to","remote-teaching.intro.points.4.2":"teach","remote-teaching.intro.points.4.3":"coding, or to","remote-teaching.intro.points.4.4":"learn","remote-teaching.intro.points.4.5":"coding.","remote-teaching.intro.points.5.0":"Coding from home webinars","remote-teaching.intro.points.5.1":"did you know that Code Week organised several webinars on how to learn and teach coding from home? Check them out!","remote-teaching.tips.title":"7 tips to teach coding remotely","remote-teaching.tips.points.1.0":"Become familiar with the concepts, programming language, and software","remote-teaching.tips.points.1.1":"while students can learn coding and programming semi-autonomously by trial-and-error, you will need to guide them and help them find errors in their syntax. Be ready to change and adapt if a digital tool or a programming language does not bear the learning results you had expected","remote-teaching.tips.points.2.0":"Empower students","remote-teaching.tips.points.2.1":"help your students reach their full potential by providing motivating and meaningful lessons. Let them explore their skills and creativity by allowing them to choose their own projects and outputs. In addition, we recommend you to be realistic and to set goals achievable by your students.","remote-teaching.tips.points.3.0":"Encourage students to work in groups","remote-teaching.tips.points.3.1":`coding in groups is not only more fun, but it would also help students achieve more complex and creative projects. Furthermore, remote learning can be isolating for some students, and group work can prevent this. For instance, you could create online meeting rooms for your students to gather in groups, or you could set up a peer assessment by inviting students to give and receive constructive feedback on each other’s projects. +`,"remote-teaching.tips.points.4.0":"Explore open software and free online platforms for learning how to code","remote-teaching.tips.points.4.1":"there are many good-quality resources to learn and teach coding, which are advanced while still easy to use. These are free tools which you can let your students use without having to purchase licenses or download software. You can find most of them on the","remote-teaching.tips.points.4.2":"Code Week repository","remote-teaching.tips.points.4.3":"e.g.","remote-teaching.tips.points.4.4":"and so on. As we have seen with the","remote-teaching.tips.points.4.5":"Code Week Learning Bits","remote-teaching.tips.points.4.6":"you can apply these tools to any subject!","remote-teaching.tips.points.5.0":"Keep it playful","remote-teaching.tips.points.5.1":"your first steps into coding should be engaging and fun, and while you may not have the chance to share this enjoyment in person this time, there are ways to play and have fun together! For instance, you can propose your students to take a break from the lesson to connect and play together","remote-teaching.tips.points.5.2":"an educational multiplayer game designed to learning computational thinking while playing.","remote-teaching.tips.points.6.0":"Simulate real classroom interaction","remote-teaching.tips.points.6.1":"technology allows us to replicate at least partially, the kind of interaction that would take place in the classroom. You can encourage your students to turn on their cameras at given times, raise their hands virtually, ask questions in person or in the chat, respond to digital polls and quizzes, and so on. Some free digital tools you might use for this purpose are","remote-teaching.tips.points.6.2":"or","remote-teaching.tips.points.6.3":"for live classroom sessions, and ","remote-teaching.tips.points.6.4":"for quizzes and classroom interaction. This would help students feel like they are in class and feel connect to their peers.","remote-teaching.tips.points.7.0":"Ensure the availability and affordability of materials","remote-teaching.tips.points.7.1":"make sure your coding lessons are realistic and inclusive by ensuring that the materials required are easy to find in any household, and that either all students can achieve them or that you provide adaptations to those who might not. For instance, unplugged coding activities require inexpensive materials such as scissors, paper, or makers. When working with online coding exercises, make sure that all students have access at home to a tablet or computer and a reliable internet connection.","remote-teaching.tips.conclusion":"How do you learn and teach coding and programming in remote teaching environments? Do you have any tips for other education professionals? Add a comment in the forum below!","report.title":"Report your #EUCodeWeek activity","report.event_title":"Activity title","report.number_required":"Please provide a rough estimate, even if you don't have exact data.","report.phrase1":"You can fill this form only once! Please check your data carefully. If you make a mistake, ","report.phrase2":"After submitting the report, a personalized certificate for participation in Code Week will be issued automatically and will become available for you to download or share. You can see an example certificate here.","report.phrase3":"Required fields are marked with an * asterisk.","report.phrase4":"You can fill this form only once! Please check your data carefully. If you make a mistake,","report.contactus":"contact us","report.participants_count.label":"Participants count","report.average_participant_age.label":"Average participant age","report.percentage_of_females.label":"Percentage of females","report.codeweek_for_all_participation_code.label":"Codeweek for all participation code","report.codeweek_for_all_participation_code.help":"You can put here your Codeweek4All challenge code, if you got one. If you're not participating, just ignore this field.","report.name_for_certificate.label":"Name for certificate","report.name_for_certificate.help":"Change this to the name of the activity organizer who will be issued a certificate of participation in Code Week. Please use only ASCII (Latin) letters. Letters with accents, umlauts and the like are not supported.","report.submit":"Submit Activity Report","report.thanks_page.title":"Thanks for reporting your activity!","report.thanks_page.certificate_ready":"Your certificate is ready.","report.thanks_page.download_button":"Click here to download it.","report.thanks_page.back_events":"Go back to your activity","resources-page.header":"Resources","resources-page.title":"Training Materials, online courses, teaching and learning resources to help you organise your own Codeweek activity!","resources.search_resources":"Search resources","resources.search_by_title_description":"Search by title or description","resources.resource_type":"Types","resources.resource_type_placeholder":"Select type, e.g. audio","resources.types":"Types","resources.levels":"Levels","resources.level":"Level","resources.target_audience":"Target Audience","resources.target_audience_placeholder":"Select Target Audience","resources.level_difficulty":"Level of Difficulty","resources.level_difficulty_placeholder":"Select Level of Difficulty","resources.level_placeholder":"Select level","resources.programming_languages":"Programming Languages","resources.programming_languages_placeholder":"Select language, e.g. C++","resources.categories":"Topics","resources.categories_placeholder":"Select topic, e.g. program...","resources.Languages":"Languages","resources.languages_placeholder":"Select language","resources.Subjects":"Subjects","resources.subjects_placeholder":"Select subject, e.g. arts","resources.share":"Share","resources.search":"Search","resources.communication_toolkit":"Communications Toolkit","resources.teachers_toolkit":"Teachers Toolkit","resources.leaflet":"Leaflet","resources.how_to_organise_an_activity":"How to organise an activity ?","resources.resources.languages.Albanian":"Albanian","resources.resources.languages.Basque":"Basque","resources.resources.languages.Bosnian":"Bosnian","resources.resources.languages.Bulgarian":"Bulgarian","resources.resources.languages.Croatian":"Croatian","resources.resources.languages.Czech":"Czech","resources.resources.languages.Danish":"Danish","resources.resources.languages.Dutch":"Dutch","resources.resources.languages.English":"English","resources.resources.languages.Estonian":"Estonian","resources.resources.languages.Finnish":"Finnish","resources.resources.languages.French":"French","resources.resources.languages.German":"German","resources.resources.languages.Greek":"Greek","resources.resources.languages.Hungarian":"Hungarian","resources.resources.languages.Italian":"Italian","resources.resources.languages.Latvian":"Latvian","resources.resources.languages.Lithuanian":"Lithuanian","resources.resources.languages.Macedonian":"Macedonian","resources.resources.languages.Maltese":"Maltese","resources.resources.languages.Montenegrin":"Montenegrin","resources.resources.languages.Norwegian":"Norwegian","resources.resources.languages.Polish":"Polish","resources.resources.languages.Portuguese":"Portuguese","resources.resources.languages.Romanian":"Romanian","resources.resources.languages.Serbian":"Serbian","resources.resources.languages.Slovakian":"Slovakian","resources.resources.languages.Slovenian":"Slovenian","resources.resources.languages.Spanish":"Spanish","resources.resources.languages.Swedish":"Swedish","resources.resources.languages.Turkish":"Turkish","resources.resources.languages.Ukrainian":"Ukrainian","resources.resources.languages.All targeted languages":"All targeted languages","resources.resources.languages.Russian":"Russian","resources.resources.languages.Japanese":"Japanese","resources.resources.languages.Mandarin":"Mandarin","resources.resources.languages.Galician":"Galician","resources.resources.languages.Austrian":"Austrian","resources.resources.languages.Irish":"Irish","resources.resources.languages.Slovak":"Slovak","resources.resources.levels.Beginner":"Beginner","resources.resources.levels.Intermediate":"Intermediate","resources.resources.levels.Advanced":"Advanced","resources.resources.levels.Pre-primary education":"Pre-primary education","resources.resources.levels.Primary school":"Primary school","resources.resources.levels.Lower secondary school":"Lower secondary school","resources.resources.levels.Upper secondary school":"Upper secondary school","resources.resources.levels.Higher Education":"Higher Education","resources.resources.levels.Teachers":"Teachers","resources.resources.levels.Parents":"Parents","resources.resources.levels.General public":"General Public","resources.resources.levels.Other":"Other","resources.resources.subjects.Art":"Art","resources.resources.subjects.Biology":"Biology","resources.resources.subjects.Chemistry":"Chemistry","resources.resources.subjects.Coding":"Coding","resources.resources.subjects.Computer Science":"Computer Science","resources.resources.subjects.Culture":"Culture","resources.resources.subjects.Economics":"Economics","resources.resources.subjects.Foreign Languages":"Foreign Languages","resources.resources.subjects.Geography":"Geography","resources.resources.subjects.Geology":"Geology","resources.resources.subjects.History":"History","resources.resources.subjects.Language and Literature":"Language and Literature","resources.resources.subjects.Mathematics":"Mathematics","resources.resources.subjects.Music":"Music","resources.resources.subjects.Natural Sciences":"Natural Sciences","resources.resources.subjects.Physical Education":"Physical Education","resources.resources.subjects.Physics":"Physics","resources.resources.subjects.Programming":"Programming","resources.resources.subjects.Special Education Needs":"Special Education Needs","resources.resources.subjects.Other":"Other","resources.resources.types.Application":"Application","resources.resources.types.Assessment":"Assessment","resources.resources.types.Audio":"Audio","resources.resources.types.Challenge":"Challenge","resources.resources.types.Curriculum":"Curriculum","resources.resources.types.Game":"Game","resources.resources.types.Graphic Material":"Graphic Material","resources.resources.types.Guide":"Guide","resources.resources.types.Lesson Plan":"Lesson Plan","resources.resources.types.Online Course":"Online Course","resources.resources.types.Podcast":"Podcast","resources.resources.types.Presentation":"Presentation","resources.resources.types.Toolkit":"Toolkit","resources.resources.types.Tutorial":"Tutorial","resources.resources.types.Video":"Video","resources.resources.types.Website":"Website","resources.resources.types.Other":"Other","resources.resources.categories.Artificial Intelligence":"Artificial Intelligence","resources.resources.categories.Coding":"Coding","resources.resources.categories.Computational Thinking":"Computational Thinking","resources.resources.categories.Drones":"Drones","resources.resources.categories.Digital Literacy":"Digital Literacy","resources.resources.categories.Making":"Making","resources.resources.categories.Programming":"Programming","resources.resources.categories.Robotics":"Robotics","resources.resources.categories.Sensors":"Sensors","resources.resources.categories.Text-based Programming":"Text-based Programming","resources.resources.categories.Tinkering":"Tinkering","resources.resources.categories.Unplugged Activities":"Unplugged Activities","resources.resources.categories.Visual Programming":"Visual Programming","resources.resources.categories.Other":"Other","resources.resources.programming_languages.C++":"C++","resources.resources.programming_languages.CSS":"CSS","resources.resources.programming_languages.HTML":"HTML","resources.resources.programming_languages.HTML5":"HTML5","resources.resources.programming_languages.Java":"Java","resources.resources.programming_languages.JavaScript":"JavaScript","resources.resources.programming_languages.PHP":"PHP","resources.resources.programming_languages.Python":"Python","resources.resources.programming_languages.Raspberry Pi":"Raspberry Pi","resources.resources.programming_languages.Swift":"Swift","resources.resources.programming_languages.Visual Programming":"Visual programming","resources.resources.programming_languages.Other":"Other","resources.resources.programming_languages.All targeted programming languages":"All targeted programming languages","school.name":"School name","school.location":"School location","school.description":"School description","school.school":"School","school.add":"Add","school.list":"List","school.required.name":"School name is required","school.required.location":"School location is required","schools.1.title1":"Why should you bring coding to your classroom?","schools.1.title2":"How can coding benefit your students? What is in it for you as a teacher ?","schools.1.content.0":"We believe anybody’s basic literacy in a digital age must include an understanding of coding and the development of crucial competences related to computational thinking, such as problem solving, collaboration and analytical skills.","schools.1.content.1":"Learning how to code can empower your students to be at the forefront of a digitally competent society, develop a better understanding of the world that surrounds them and get better chances to succeed in their personal and professional lives.","schools.1.content.2":"Code Week offers all students the possibility to make their first steps as digital creators, by providing schools and teachers free professional development opportunities, teaching materials, international challenges and opportunities to exchange.","schools.1.button.label":"Want to get started right away? Sign up here!","schools.2.title1":"Ready to get involved?","schools.2.title2":"Organise a lesson, a training session, or an activity, and pin it on the map.","schools.2.content.0":"Whether you have any coding or programming knowledge or not, you can easily organise a lesson in your classroom, an open day, or an activity at your school. Just find a date and register your activity in the map below. If you feel like you need support with preparing a lesson with coding, skip to the next section.","schools.2.content.1":"Have a look at some examples of activities that are being organised browsing the map below and add your own to join thousands of fellow educators across Europe and beyond: ","schools.2.button.label":"Ready to give it a go? Add an activity!","schools.3.title1":"New to Coding? No worries","schools.3.title2":"Our tools help introduce you to coding before bringing it to your students","schools.3.content.0":"If you are interested in bringing coding to your classroom but you don´t know where to start, do not worry! An international team of teachers and experts have been developing a set of short online training modules to help get you started.","schools.3.content.1":"No previous experience of coding is needed to follow our learning bits!","schools.3.button.label":"Access the training modules","schools.4.title1":"Looking for an extra challenge ?","schools.4.title2":"Build a network of activities, engage as many students as possible, and earn the Certificate of Excellence","schools.4.content.0":"Code Week 4 All challenges you to join forces with other teachers or schools and participate in an international community of like-minded people giving to student the opportunity to make their first steps in coding. Build an alliance that engages more than a 500 students and you will gain the Certificate of Excellence.","schools.4.button.label":"Learn more about the Code Week 4 All challenge","schools.title":"Bring Code Week to your students","scoreboard.title":"Which countries are buzzing with coding activity?","scoreboard.paragraph":"The scoreboard is sorted by the number of listed coding activities per population, so don't be surprised to see some of the smaller countries higher up on the list!","scoreboard.parcipating_with":"is participating with","scoreboard.events":"activities","search.audience_title":"Audience","search.theme_title":"Theme","search.placeholder":"Search for activity name or tag","search.submit":"Search","search.label_country":"Select country","search.last_year_events.label":"Include last years activities","search.last_year_events.yes":"Yes","search.last_year_events.no":"No","search.search_counter":"match your search criteria","search.event":"activity","search.events":"activities","search.year":"year","search.audiences":"Audiences","search.themes":"Themes","search.countries":"Countries","search.search_placeholder":"Search by title or description","search.search_banner_title":"Find what inspires you","search.search_banner_content":"Browse through a wealth of coding resources, activities, and guides to support your journey into digital creativity and learning","search.search_results_title":"Search results","search.search_input_label":"See the results based on your keyword(s) below:","search.search_input_placeholder":"Search...","search.results":"Results","search.no_results":"No results found.","search.search_categories.all":"All","search.search_categories.podcasts":"Podcasts","search.search_categories.hackathons":"Hackathons","search.search_categories.online_courses":"Online courses","search.search_categories.training":"Training","search.search_categories.challenges":"Challenges","search.search_categories.learn":"Learn","search.search_categories.teach":"Teach","search.search_categories.presentations_and_toolkits":"Presentations and Toolkits","search.search_categories.activities":"Activities","search.search_categories.blogs":"Blogs","search.search_categories.others":"Others","snippets.featured-activities":"Here are upcoming EU Code Week featured activities that welcome online participants. You can filter by language and month and, by clicking on “view” you’ll access all details on the activity and the contacts of the organisers. Enjoy!","snippets.learn_and_teach_1":"A repository of resources to start or continue your coding journey and develop digital and technical skills – all available at no cost.","snippets.learn_and_teach_2":"Coding and programming are key competences that are increasingly in demand in every field, and EU Code Week wants to support you in your teaching & learning! Browse our repository and find the perfect resource to start or to continue your coding journey. All these resources are free of charge. Don’t forget that you can filter your search by title, resource type, skill level, programming language, subject, category and language.","snippets.teach_1":"Coding and programming are key competences which will open new possibilities to your students and children. Do you want to teach coding at home,in the classroom or code club?","snippets.teach_2":"Browse our repository to find the most suitable resource to bring coding and programming to your teaching practice. All of these resources are free of charge. Don’t forget that you can filter your search by type of resource, skill level, programming language, subject, category, and language.","snippets.toolkits.0":"In this section you will find material which will help you organise your EU Code Week activity, and promote the initiative with your community.","snippets.toolkits.1":"Communication toolkit","snippets.toolkits.2":"find here the official EU Code Week logos, badge, flyer, poster, PowerPoint and Word templates, examples of social media posts, and illustrations.","snippets.toolkits.3":"Teachers toolkit","snippets.toolkits.4":"find here the official EU Code Week logos, badge, template of certificate of participation for your students, an introductory presentation about EU Code Week, and social media material.","snippets.toolkits.5":"EU Code Week official leaflet.","snippets.about.goal":"The goal is to help more young people to master the basics of coding and computational thinking.","snippets.guide.tutorials.1":"Check out our","snippets.guide.tutorials.2":"tutorials and trainings","snippets.guide.tutorials.3":"available in 29 languages to get ready to organise activities where young people learn coding and computational thinking.","snippets.dance.menu":"Dance Challenge","snippets.dance.subtitle":"Who said programmers couldn’t dance? We will prove otherwise with the #EUCodeWeekDance challenge.","snippets.dance.content":"Everyone from schools, teachers, libraries to code clubs, businesses and public authorities are invited to celebrate EU Code Week by organising a #EUCodeWeekDance activity and adding it to the Code Week map.","snippets.treasure-hunt.menu":"Treasure Hunt","snippets.treasure-hunt.subtitle":"This is a game on Telegram","snippets.videos.1":"Watch EU Code Week ambassadors’ videos on our values","snippets.videos.2":"Watch Katja Osljak, Ambassador for Slovenia, on why Code Week is independent","snippets.videos.3":"Watch Laurent Touché, Ambassador for France, on why Code Week is for everyone","snippets.videos.4":"Watch Fatma Bouaziz, Ambassador for Tunisia, on why Code Week is glocal","snippets.videos.5":"Watch Linda Sinka, Ambassador for Latvia on why Code Week is about cooperation","snippets.videos.6":"Watch Alessandro Bogliolo, Ambassador for Italy, on why Code Week is non - profit","snippets.videos.7":"Watch Marjana Prifti, Ambassador for Albania, on why Code Week encourages innovation and creativity","snippets.videos.8":"Watch Cristiana Lucaci, Ambassador for Romania, on why Code Week is thankful to its community","super-organiser.title":"Generate your super organiser certificate for Codeweek","super-organiser.generate":"Generate the Certificate","super-organiser.required":"Required fields are marked with an * asterisk.","super-organiser.name_for_certificate.label":"Name for certificate","super-organiser.name_for_certificate.help":"Change this to the name of the activity organizer who will be issued the super organiser certificate.","training.learning_bits":"Codeweek Learning Bits","training.title":"Free training materials and online courses","training.text":`

Here you can find free training materials & resources that will help you get started and plan your next innovative lesson.

+

1. Learning Bits

+

+ No previous coding or programming experience is needed, and each module takes only around 15 minutes to complete. The modules introduce you to key concepts related to coding and computational thinking activities. In addition, the modules also give you practical tips and advice on how to integrate the concepts in your classroom. +

`,"training.text_2":`

+ Now that you have completed one or more Code Week Learning Bits, we hope that you feel comfortable enough to bring some digital creativity to your classroom and pin your activity on the Code Week Map! +

+ +

+ You can easily organise a lesson in your classroom, an open day, or an event at your school. Just find a date and register your activity on the Code Week map. Each activity organiser will get a certificate of participation for their effort. +

+ +

+ If you would like to connect with an international group of enthusiastic teachers, join the EU Code Week Facebook group for teachers! To take a step further and collaborate with other schools in your country or across borders – join the Code Week 4 All challenge. +

`,"training.lessons.1.title":"Coding without digital technology (unplugged)","training.lessons.1.author":"By Alessandro Bogliolo","training.lessons.1.text":`

+ Coding is the language of things, which allows us to write programs to grant new functionalities to the tens of billions of programmable objects around us. Coding is the fastest way to make our ideas come true and the most effective way to develop computational thinking capabilities. However, technology is not strictly required to develop computational thinking. Rather, our computational thinking skills are essential to make technology work. +

+ +

+ In this video, Alessandro Bogliolo, Professor of Computer Systems in Italy and EU Code Week Coordinator, will introduce unplugged coding activities that can be practiced without any electronic device. The main purpose of unplugged activities is to lower the access barriers to bring coding in every school, regardless of funding and equipment. +

+ +

+ Unplugged coding activities unveil the computational aspects of the physical world around us. +

`,"training.lessons.1.activities.1":"Activity 1 – CodyRoby for Primary School","training.lessons.1.activities.2":"Activity 2 – CodyRoby for Lower Secondary School","training.lessons.1.activities.3":"Activity 3 – CodyRoby for Secondary School","training.lessons.2.title":"Computational thinking and problem solving","training.lessons.2.author":"By Miles Berry","training.lessons.2.text":`

+ Computational thinking (CT) describes a way of looking at problems and systems so that a computer can be used to help us solve or understand them. Computational thinking is not only essential to the development of computer programs, but can also be used to support problem solving across all disciplines. +

+ +

+ You can teach CT to your students by getting them to break down complex problems into smaller ones, (decomposition), to recognize patterns (pattern recognition), to identify the relevant details for solving a problem (abstraction); or setting out the rules or instructions to follow in order to achieve a desired outcome (algorithm design). CT can be taught across different disciplines, for instance in Mathematics (figure out the rules for factoring 2nd-order polynomials), Literature (to break down the analysis of a poem into analysis of meter, rhyme, and structure), Languages (find patterns in the ending letters of a verb that affect its spelling as tense changes) and many others. +

+ +

+ In this video, Miles Berry, Principal Lecturer at University of Roehampton School of Education at Guildford (United Kingdom), will introduce the concept of computational thinking and the different ways a teacher can integrate it in the classroom with simple games. +

`,"training.lessons.2.activities.1":"Activity 1 – Developing Mathematical Reasoning for Primary School","training.lessons.2.activities.2":"Activity 2 – Acquaintance with Algorithms for Lower Secondary School","training.lessons.2.activities.3":"Activity 3 – Algorithms for Upper Secondary School","training.lessons.3.title":"Visual programming – introduction to Scratch","training.lessons.3.author":"By Margo Tinawi","training.lessons.3.text":`

+ Visual programming lets humans describe processes using illustrations or graphics. We usually speak of visual programming as opposed to text-based programming. Visual programming languages (VPLs) are especially well adapted to introduce algorithmic thinking to children (and even adults). With VPLs, there is less to read and no syntax to implement. +

+ +

+ In this video, Margo Tinawi, Web Development Teacher at Le Wagon and Co-Founder of Techies Lab asbl (Belgium), will help you discover Scratch, one of the most popular VPL used all over the world. Scratch was developed by the MIT in 2002, and since then a big community has been created around it, where you can find millions of projects to replicate with your students and countless tutorials in several languages. +

+ +

+ You do not need to have any coding experience to use Scratch, and you can use it in all the different subjects! For instance, using Scratch as a digital storytelling tool, students can create stories, illustrate a math problem or play an art contest to learn about cultural heritage, while learning coding and computational thinking, and most important, having fun. +

+ +

+ Scratch is a free tool, very intuitive and motivating for your students. Have a look at Margo’s video to learn how to get started. +

`,"training.lessons.3.activities.1":"Activity 1 – Scratch Basic for Primary School","training.lessons.3.activities.2":"Activity 2 – Scratch Basic for Lower Secondary School","training.lessons.3.activities.3":"Activity 3 – Scratch Basic for Secondary School","training.lessons.4.title":"Creating educational games with Scratch","training.lessons.4.author":"By Jesús Moreno León","training.lessons.4.text":`

+ Critical thinking, persistence, problem solving, computational thinking and creativity are only some of the key skills that your students need to succeed in the 21st century, and coding can help you achieve these in a fun and motivating way. +

+ +

+ Algorithmic notions of flow control using sequences of instructions and loops, data representation using variables and lists, or synchronization of processes might sound like complicated concepts, but in this video you will find that they are easier to learn than you think. +

+ +

+ In this video, Jesús Moreno León, a Computer Science teacher and researcher from Spain, will explain how you can develop these and other skills in your students while having fun. How can this be done? By creating a questions and answers game in Scratch, the most popular programming language used at schools worldwide. Scratch not only enhances computational thinking, but it also allows the introduction of gamification elements in the classroom to keep your students motivated while learning and having fun. +

+ +

+ Have a look at the video to learn how to get started: +

`,"training.lessons.4.activities.1":"Activity 1 - Questions and answers game with Scratch for Primary School","training.lessons.4.activities.2":"Activity 2 - Questions and answers game with Scratch for Lower Secondary School","training.lessons.4.activities.3":"Activity 3 - Questions and answers game with Scratch for Secondary School","training.lessons.5.title":"Making, robotics and tinkering in the classroom","training.lessons.5.author":"By Tullia Urschitz","training.lessons.5.text":`

+ The integration of coding, tinkering, robotics, and microelectronics as teaching and learning tools in the school curricula is key in 21st century education. +

+ +

+ Using tinkering and robotics in schools has many benefits for students, as it helps develop key competences such as problem solving, teamwork and collaboration. It also boosts students´ creativity and confidence and can help students develop perseverance and determination when faced with challenges. Robotics is also a field that promotes inclusivity, as it is easily accessible to a wide range of students with varying talents and skills (both boys and girls) and it positively influences students on the autism spectrum. +

+ +

+ Have a look at this video where Tullia Urschitz, Italian Scientix ambassador and STEM teacher in Sant’Ambrogio Di Valpolicella, Italy, will give some practical examples on how teachers can integrate tinkering and robotics in the classroom, thus transforming passive students into enthusiastic makers. +

`,"training.lessons.5.activities.1":"Activity 1 - How to make a mechanical, hardboard hand for Primary School","training.lessons.5.activities.2":"Activity 2 - How to make a mechanical or robotic hand for Lower Secondary School","training.lessons.5.activities.3":"Activity 3 - How to make a mechanical or robotic hand for Upper Secondary School","training.lessons.6.title":"Developing creative thinking through mobile app development","training.lessons.6.author":"By Rosanna Kurrer","training.lessons.6.text":`

+ Have a look at this video where Rosanna Kurrer, (Founder of CyberWayFinder) explains what App Inventor is, goes through the advantages of using App development in the classroom and gives some practical examples on how teachers can integrate App Inventor in the classroom, transforming passive students into enthusiastic game makers. +

+ +

+ We all use applications as they are a convenient and fast way to coordinate our activities. They are also more and more used in education as they allow personalised learning and enable users to acquire information, so why not empower your students to build an educational app for others? +

`,"training.lessons.6.activities.1":"Activity 1 – My First HelloWorld! Mobile App","training.lessons.6.activities.2":"Activity 2 – Drawing with Shapes App - Using Geometrical shapes and Math equations to draw","training.lessons.6.activities.3":"Activity 3 – TranslateMe App - Using Voice Computing blocks and the Yandex Translation Service","training.lessons.7.title":"Tinkering and Making","training.lessons.7.author":"By Diogo da Silva","training.lessons.7.text":`

+ Jobs and workplaces are changing and education is following in their footsteps. When preparing + students for 21st century careers, new skills such as tinkering, making and hacking become + essential, as they narrow the gap between school and reality. By transforming the classroom into + a collaborative environment that focuses on problem-solving, students are able to engage and + thrive. These activities promote discussion, thus allowing the classroom to become a + communication hub, where every contribution is important. +

+ +

+ Have a look at the video below, where Portuguese STEAM teacher Diogo da Silva, a member of + Escola Global, takes you step by step through developing a lesson that has your students tinker, + make and hack their way to a solution. + +

`,"training.lessons.7.activities.1":"Activity 1 – Time gates: measuring speed with micro:bit","training.lessons.7.activities.2":"Activity 2 – Building a conductivity-based game using BBC micro:bit","training.lessons.7.activities.3":"Activity 3 – Building a smart luminaire using micro:bit","training.lessons.8.title":"Coding for all subjects","training.lessons.8.author":"By M. Isabel Blanco, M. Concepción Fernández, Elisabetta Nanni, Debora Carmela Niutta, Stefania Altieri","training.lessons.8.text":`

+ When you think of coding in the classroom, the first image that comes to mind is of computers, Technology, Mathematics or Science. However, given that students have a number of interests and subjects, why not use this in our favor and implement coding across the entire curriculum? +

+ +

+ Integrating coding in the classroom has many benefits, as it helps them develop their critical thinking and problem solving skills, become active users and lead their own learning process, which is essential in schools. However, the most important thing is that your students will be learning while having fun! +

+ +

+ Languages, Music or STEM are only some subjects that teachers can code in for future scientists, musicians, artists, anybody really! All teacher can integrate coding and computational thinking in the classroom. Using a CLIL lesson to explain a daily life algorithm, creating a felt joystick to learn about science or using educational robots to boost motivation in Mathematics are some examples of activities you can do in your classroom. +

+ +

+ Have a look at the video below to see how Music, Science or Languages teachers can easily integrate coding and computational thinking in the classroom, even though you have no previous experience. +

`,"training.lessons.8.activities.1":"Tinkering and coding with Makey Makey, by M. Isabel Blanco and M. Concepción Fernández.","training.lessons.8.activities.2":"Music is coding, by Elisabetta Nanni.","training.lessons.8.activities.3":"Robotics and inclusion for primary in STEM, by Debora Carmela Niutta.","training.lessons.8.activities.4":"A daily life algorithm for a CLIL lesson, by Stefania Altieri.","training.lessons.9.title":"Making an automaton with a micro:bit","training.lessons.9.author":"by Pauline Maas","training.lessons.9.text":`

+ Using a Micro: bit, the easily programmable, pocket-sized computer, can be a fun and easy way to make interesting creations, from robots to musical instruments with your students, while at the same time teaching them how to code. It’s simple and easy to use for even the youngest programmers, while at the same time powerful enough for more advanced students. You can incorporate it in a variety of lessons from history to maths and even science. The possibilities are endless. The Micro: bit is an engaging and inexpensive way to teach students about coding while instilling crucial skills such as computational thinking, problem-solving, and creativity. +

+

+ In this video, Pauline Maas, Computer Science teacher at Koninklijke Visio, will introduce the Micro: bit and give a few practical examples of how teachers can integrate it into the classroom, transforming passive students into enthusiastic creators. +

`,"training.lessons.9.activities.1":"Morse Code with the micro: bit, for Primary School","training.lessons.9.activities.2":"Escape room with the micro: bit, for Lower Secondary School","training.lessons.9.activities.3":"Making an automaton, for Upper Secondary School","training.lessons.10.title":"Creative coding with Python","training.lessons.10.author":"by Ivana Vezjak","training.lessons.10.text":`

+ Moving from visual to text-based programming is a natural flow in coding. While visual programming is often great for beginners, after a while, students may crave a new challenge. Text-based programming is the next step for anyone who wants to dive further into programming and computational thinking.

+In this video, Ivana Vezjak introduces you to Python’s basic syntax. Python is one of the most popular programming languages today, used in many fields like data science, AI, machine learning, web development, etc. While Python is a powerful programming language used by experienced programmers, it can be used even by those without any coding experience because of its simplicity and clear syntax.

+With Python, students can create quizzes about historical events, solve math problems and make physics simulations, create games, build websites, conduct data analysis for scientific projects, and much more. Python has a rich and extensive standard library, a large community, and a great number of tutorials and projects available online, which can be used for teaching, learning, and practicing. By coding in Python, analysing programs, and fixing bugs, students develop creativity and learn how to be consistent, persistent, and patient. They learn analytical thinking and problem-solving skills by breaking down complex problems into smaller components. These competences will help them in how they approach problems in every other domain of their lives. + +

`,"training.lessons.10.activities.1":"My first quiz, for Primary School","training.lessons.10.activities.2":"Hangman, for Lower Secondary School","training.lessons.10.activities.3":"Guess the flag!, for Upper Secondary School","training.lessons.10.links.1.url":"https://docs.python.org/3/library/","training.lessons.10.links.1.title":"Python Standard Library","training.lessons.10.links.1.description":"Collection of pre-built code and modules (e.g. turtle module, math module etc.)","training.lessons.10.links.2.url":"https://codecombat.com/","training.lessons.10.links.2.title":"CodeCombat","training.lessons.10.links.2.description":"Educational video game for learning programming concepts.","training.lessons.10.links.3.url":"https://projects.raspberrypi.org/en/codeclub","training.lessons.10.links.3.title":"CodeClub projects","training.lessons.10.links.3.description":"From beginners to advanced, step-by-step programming projects for kids.","training.lessons.10.links.4.url":"https://inventwithpython.com/invent4thed/","training.lessons.10.links.4.title":"Invent your own computer games with Python","training.lessons.10.links.4.description":"Book that will teach you how to program your own computer games with Python.","training.lessons.10.links.5.url":"https://www.codewars.com/","training.lessons.10.links.5.title":"CodeWars","training.lessons.10.links.5.description":"Educational community where students and teachers can train themselves through a series of challenges.","training.lessons.10.links.6.url":"https://hourofpython.com/","training.lessons.10.links.6.title":"Hour of Python","training.lessons.10.links.6.description":"Collection of Python introductory lessons (both text-based and blocks) using interactive Trinkets.","training.lessons.10.links.title":"Other related resources","training.lessons.11.title":"Coding for Inclusion","training.lessons.11.author":"by the Code Week team","training.lessons.11.text":`

+ Bringing coding into your classroom can be a challenge, especially if you have students with certain disabilities in your class. But it’s important to remember that anyone, no matter their abilities, can learn how to code. Children with special needs can greatly benefit from learning aspects of coding because it teaches students important life skills such as solving problems, organization, and independence. Coding can also improve interpersonal skills and social skills through collaboration and teamwork, skills which many children with disabilities struggle with. Most importantly, students have fun while learning alongside their peers. +

+ In this video, the Code Week team will show you some practical, easy, and fun coding activities especially adapted for students with visual impairments, Down syndrome, and students on the Autism Spectrum, that teachers can easily bring to their classroom. +

`,"training.lessons.11.activities.1":"Egg carton Unplugged","training.lessons.11.activities.2":"A very smart mouse ","training.lessons.11.activities.3":"A star making stars","training.lessons.12.title":"Coding for sustainable development goals","training.lessons.12.author":"by Francisco Javier Masero, Cristina Nicolaita and Erviola Konomi","training.lessons.12.text.1":"Traditional education provides students with few opportunities to understand and solve real world problems such as global climate change, gender equality, hunger, poverty or good health and well-being. ","training.lessons.12.text.2":"The Sustainable Development Goals (SDGs) are the core of the 2030 Agenda for Sustainable Development, adopted by all member states of the United Nations as a road map to achieve peace and prosperity on the planet, encouraging global development. Teachers can use the SDGs in the classroom as a tool for students to develop their critical thinking, but also to help them find their identity and purpose. Combining basic elements of coding and computational thinking with the SDGs will boost your students’ confidence, and you will help them develop their creativity, entrepreneurial spirit, problem-solving or communication skills.","training.lessons.12.text.3":"In the activities below, students will apply the principles Scratch, ASCII coding and unplugged coding to topics of global and social relevance today. Teachers will be raising awareness about the sustainable development goals while helping them develop empathy, active citizenship, and prosocial skills in a fun and engaging way.","training.lessons.12.text.4":"These lesson plans focus on one of the SDGs each:","training.lessons.12.text.5":"Sustainable Development Goal 3: Ensure healthy lives and promote well-being for all at all ages","training.lessons.12.text.6":"Sustainable Development Goal 5: Achieve gender equality and empower all women and girls","training.lessons.12.text.7":"Sustainable Development Goal 13: Take urgent action to combat climate change and its impacts ","training.lessons.12.activities.1":"Karateka project: Knowing the karate through programming, for Primary, Lower and Upper Secondary School","training.lessons.12.activities.2":"Sustainable development goals and coding for climate change, for Primary School","training.lessons.12.activities.3":"Coding for gender equality, for Upper Secondary School","training.lessons.13.title":"Introduction to Artificial Intelligence in the classroom","training.lessons.13.author":"by Artur Coelho and Marjana Prifti Skenduli","training.lessons.13.text.1":"Artificial Intelligence (AI) has an impact on many areas of daily life: it autocorrects the text you type on your phone, choses the music your favourite music app plays, and it remembers your passwords when you have forgotten them. AI refers to a combination of machine learning, robotics, and algorithms, with applications in all fields: from computer science to manufacturing, and from medicine to fashion. Therefore, it has an undeniable place in our lives and in our societies and it plays a key role in science development. And as any other important phenomena in our lives, students will benefit from learning about it. But how to teach about such a complex thing as AI?","training.lessons.13.text.2":"This Learning Bit will help you explain to students what AI is and what role does it play in students’ lives. These activities are designed for non-experts to easily understand the contents, and to be able to effectively break down complex terms into easily understandable ideas. With these lesson plans you can help students learn the uses of AI and some of the mechanisms behind it. These activities are designed for students to develop their analytical and critical thinking skills: for example, in Marjana’s activity students develop a classification pipeline. These activities will also help students understand the varied applications of AI: in Artur’s activity they will learn about the link between AI and Art, and how AI can be used to enhance visual expression. With these activities, students will also reflect on the dangers of AI, and their impact.","training.lessons.13.activities.1":"Human-AI- Art, for Primary School","training.lessons.13.activities.2":"Teaching Machines to Classify: Intro to Supervised Machine Learning, for Lower Secondary School","training.lessons.13.activities.3":"Teaching Machines to Classify: Intro to Supervised Machine Learning, for Upper Secondary School","training.lessons.14.title":"Learning in the Age of Intelligent Machines","training.lessons.14.author":"by Adil Tugyan, Georgia Lascaris and Marco Neves","training.lessons.14.text.1":"The progress of AI in recent years has been impressive thanks to rapid advances in computing power and the availability of large amounts of data. This has led to substantial investments in AI research and rapid expansion of the AI industry, making AI a major technological revolution of our time. AI is all around us. It has become part of our daily routine, so much so that we sometimes do not think of it as AI: we use online recommendation, face detection, security systems and voice assistants almost every day. But what about education? ","training.lessons.14.text.2":"AI has huge potential to enable new ways of teaching and learning and to enhance student learning. This Learning Bit will help you integrate authentic AI activities in your teaching and help you prepare your students for life and career in a world shaped by AI. These activities have been designed for students to develop their curiosity, problem-solving and creativity skills: for example, in Adil’s activity, students learn about algorithms and neural networks and they are encouraged to create their own neural network to visualise an AI brain. Georgia will guide your students in a step-by-step development of a chatbot. Students will build their own chatbot, prepare datasets of questions and answers and train it so it can answer questions about Covid-19. In Marco’s activity, students will explore the benefits and challenges of intelligent machines in everyday life and work. What are the risks of AI that we need to consider? What impacts will AI have on the future of work? What jobs will be offered to them when they enter the job market in the future?","training.lessons.14.activities.1":"AI and Its Neural Networks","training.lessons.14.activities.2":"My Covid-19 Chatbot","training.lessons.14.activities.3":"Living in the Age of “Smart Machines”: Challenges and Opportunities","training.lessons.14.activities.title":"In the lesson plans below, students will learn about intelligent machines in a fun and engaging way.","training.lessons.15.title":"Mining Media Literacy","training.lessons.15.author":"by Marijana Smolčec, Tea Horvatić and Sanja Božinović","training.lessons.15.text.0":"Media literacy education has never been more important for today’s students. Students of all ages need to gain relevant skills, knowledge and attitudes to be able to navigate our media-rich world. Media literacy skills will help them use credible online content and recognise misleading sources of information. They will understand how to fact-check information they find online and critically interpret it. They will raise their awareness of proper use of creative work and apply their learning when creating their own creative content.","training.lessons.15.text.1":"This Learning Bit will enable you to implement various strategies and techniques to empower your students to become media literate. In Marijana’s activity, students learn how to use Web content safely and responsibly. They are introduced to different types of licenses and they develop a simple app to demonstrate how to share creative work properly. In Tea’s activity, students embark on a quest to learn about clickbaits. Through engaging tasks students explore strategies to identify and uncover clickbaits and learn how to avoid them. Sanja allows students to explore and critically analyse and evaluate Web content, its relevance, accuracy, origin and purpose. They learn how to find reliable sources online and how to recognise false online information.","training.lessons.15.text.2":"In the lesson plans below, you will find inspiring and engaging activities to enhance student media literacy skills:","training.lessons.15.activities.1":"Is it free if it is on the Internet?","training.lessons.15.activities.2":"To click or not to click","training.lessons.15.activities.3":"Fact-checking","training.lessons.16.title":"STORY-TELLING WITH HEDY","training.lessons.16.author":"by Felienne Hermans","training.lessons.16.text.0":"Have your pupils already mastered a visual programming language, but don’t feel ready to delve deeper into a text-based programming language? Then this learning bit is just for you and your pupils because it will help them bridge the gap between a visual and a text-based programming language. The learning bit Story-telling with Hedy comprises three lesson plans that use Hedy – a gradual programming language to teach children programming.","training.lessons.16.text.1":"Hedy is aimed at children who want to get started with textual programming languages, but for whom starting with Python might still be too complex. Gradual languages use different language levels, where each level adds new concepts and syntactic complexity. At the end of the Hedy level sequence, pupils master a subset of syntactically valid Python.","training.lessons.16.text.2":"In this Learning Bit you will find inspiring and engaging activities to help your students to efficiently use text-based programming languages. By creating their own interactive stories, they will gradually learn programming, without having to learn everything at once. In the lesson plan for primary school, pupils are introduced to the basic concepts of programming. The lesson plan for lower secondary school introduces further programming concepts, whereas the lesson plan for upper secondary enables pupils to program more complex stories and activities.","training.lessons.16.text.3":"Check out the interactive story below to see how readers can participate in the story and how it fosters their active engagement.","training.lessons.16.activities.1":"Make your own interactive story with Hedy for primary school pupils","training.lessons.16.activities.2":"Make your own interactive story with Hedy for lower secondary pupils","training.lessons.16.activities.3":"Make your own interactive story with Hedy for upper school pupils","training.lessons.17.title":"Feel The Code","training.lessons.17.author":"by Alenka Miljević","training.lessons.17.text.0":"Social and emotional well-being is the ability to be resilient, know how to manage one’s emotions and respond to other people's emotions, develop meaningful relationships with others, generate emotions that lead to good feelings and create one own’s emotional support network. The social and emotional skills that young people learn in school help them build resilience and set the pattern for how they will manage their physical and mental health throughout their lives. (Council of Europe).","training.lessons.17.text.1":"The Learning Bit Feel the Code will enable you to foster your pupils’ social and emotional well-being by recognizing, explaining, understanding and responding to positive and negative feelings and emotions in order to build empathy and resilience. In this Learning Bit you will find inspiring and engaging activities to help your students develop skills to cope with different emotions through coding. Your pupils will learn how to express their feelings and how to react to their peers’ emotions with the help of a Bee bot robot.","training.lessons.17.text.2":"The learning bit Feel the Code comprises three lesson plans that use a Bee-bot educational robot to create activities that encourage students to talk about emotions and develop empathy. In the lesson plan for primary school, pupils program a Bee bot to talk about emotions such as sadness, happiness, fear and anger and discover reasons why they and their peers feel these emotions. The lesson plan for lower secondary school encourages pupils to program a Bee bot, recognize their own and their peers’ feelings, understand what caused them and how to respond to them. The lesson plan for upper secondary school enables pupils to navigate a Bee bot and invent stories about feelings, resilience and empathy.","training.lessons.17.text.3":"If you don’t have an educational robot in your classroom, this Learning Bit will provide you with ideas for unplugged activities that foster the development of social and emotional skills. The interactive below gives a brief overview of the activities that you can do in your classroom:","training.lessons.17.activities.1":"Code - Feel - Learn for primary school pupils","training.lessons.17.activities.2":"My heart isn’t made of stone for lower secondary pupils","training.lessons.17.activities.3":"Code me to the mood for upper school pupils","training.lessons.18.title":"SOS Water","training.lessons.18.author":"by Francisco Delgado Cecilia","training.lessons.18.text.0":"SOS Water is a response to the need to address the problem of water pollution. Despite the efforts made in recent years, there are still 2 billion people around the world who do not have access to safe drinking water. This means that Sustainable Development Goal (SDG) 6 of the 2030 Agenda, which states that all people should have access to safely managed water and sanitation by 2030, is far from being achieved. The same is true for SDG 14, underwater life, which aims to conserve and use sustainably the oceans, seas and marine resources for sustainable development.","training.lessons.18.text.1":"This Learning Bit focuses on the relevant and topical issue of water quality measurement and the new pollutants that challenge water quality. Students will have the opportunity to investigate and seek solutions to real problems related to water and the environment, which will allow them to develop skills such as research, critical thinking and problem solving.","training.lessons.18.text.2":"The lesson plans include practical and creative activities, such as programming in Scratch, initiation to machine learning and artificial intelligence with Learning Machine Learning and the building of guided vehicles with Lego sets for water sampling and water pH analysis. These activities will allow students to put their skills and knowledge into practice in an interactive and playful environment, which will increase their motivation and interest in the project.","training.lessons.18.text.3":"For the implementation of this Learning Bit it is proposed to develop the three activities in class, to complete the entire project and obtain a more meaningful and motivating learning process. However, each activity can be carried out in isolation.","training.lessons.18.activities.1":"SOS Water with Scratch","training.lessons.18.activities.2":"SOS Water with Machine Learning","training.lessons.18.activities.3":"SOS Water with Robotics","training.lessons.19.title":"Creative Scratch Laboratory","training.lessons.19.author":"by Krzysztof Jaworski","training.lessons.19.text.0":"Learning programming today goes beyond preparing for a programming career and extends beyond the boundaries of computer science. It should be approached broadly, embracing an interdisciplinary perspective and utilizing programming as a tool for learning and play to foster the development of future skills.","training.lessons.19.text.1":"For children and young people, it is crucial to understand how to use digital tools safely, responsibly and effectively. They need to comprehend how these tools function and know how to communicate with them through programming. In addition, this experience should involve collaborative interactions with their peers.","training.lessons.19.text.2":"The Learning Bit Creative Scratch Laboratory will enhance students' creativity, boost their curiosity and make coding enjoyable and fun. It consists of three lesson plans for students with varying coding skills. In the beginner’s lesson plan, students create a character on paper, import it into Scratch and animate it using selected blocks. The intermediate level lesson plan teaches students to learn the Video Sprites tool, graphic crafting with paper and markers, and producing a Scratch mosaic with Video Sprites, stamps and artworks. In the advanced lesson plan, students explore the face recognition function in Scratch, experiment with sprite graphics manipulation and create a mini-theatre with dialogues generated in Scratch.","training.lessons.19.activities.1":"Draw and animate sprite: for beginners","training.lessons.19.activities.2":"Stamps: for intermediate students","training.lessons.19.activities.3":"Puppet theatre: for advanced students","training.lessons.20.title":"Code Through Art","training.lessons.20.author":"by Maria Tsapara","training.lessons.20.text.0":"Children are growing up in a complex world that is constantly developing technologically, which requires innovative educational approaches for early childhood educators. These approaches include activities that promote computational thinking and programming from a young age. Research suggests that targeted activities can effectively develop children’s computational thinking and problem-solving skills and at the same time such activities foster their creative expression through technology.","training.lessons.20.text.1":"Although the most common strategy for teaching programming involves the use of educational robots, there is also the possibility of programming without the use of a robotics kit (unplugged). This approach can take various forms and include a wide range of activities (pixel art, children in the role of robots, using a floor grid, etc.). These activities offer experiential learning benefits, particularly for young children who learn best through play. ","training.lessons.20.text.2":"The Learning Bit Code Through Art comprises three lesson plans for early childhood educators and implements an unplugged activity, the use of a Bee-bot educational robot and the invention kit Makey Makey. By using Makey Makey kit students have the opportunity to create tangible interfaces and try different solutions, create, experiment, and strengthen all their learning abilities in a collaborative learning environment.","training.lessons.20.text.3":"As Pablo Picasso said “Every child is an artist. The problem is how to remain an artist once he grows up.” Art provides children with opportunities to creatively represent and communicate their ideas and feelings. In this Learning Bit you will find inspiring activities to cultivate your students’ social and 21st century skills through art and coding, to encourage them to express themselves creatively and fostering their imagination . The Learning Bit Code Through Art will enable you to foster your pupils’ creativity, collaboration and problem solving by integrating art and coding.","training.lessons.20.activities.1":"Artful Coding: 4-6 years old kindergarten students.","training.lessons.20.activities.2":"Creative Code Lab: 4-6 years old kindergarten students","training.lessons.20.activities.3":"Touch Canvas: Creating Interactive paintings: 4-6 years old kindergarten students; advanced.","training.lessons.21.title":"Making and coding","training.lessons.21.author":"by Ulla Hauptmann","training.lessons.21.text.0":"Makerspaces are vibrant hubs where creativity thrives and hands-on projects come to life. When selecting equipment for a makerspace, the focus is on tools such as Calliope mini, Microbit, or Makey Makey, as they offer a wide range of possibilities suitable for students of different ages and skill levels. These boards support the development of creative projects for younger children thanks to their block-based programming languages are available for these boards. For older students, more complex projects can be generated using these boards.","training.lessons.21.text.1":"Explore the Learning Bit Making and Coding to dive into the world of makerspaces and foster interdisciplinary skills like teamwork and social collaboration while sparking innovation and enthusiasm in your students!","training.lessons.21.text.2":"Makey Makey is a circuit board that converts everyday objects into computer keys. By connecting objects to the board with crocodile clips, which then link to the computer via USB cable (or an iPad with a camera adapter), Makey Makey can open and close electrical circuits between a person and an object. This sends electrical signals that the computer receives as keyboard strokes or mouse clicks. This allows pupils to develop creative inventions such as musical instruments, computer games or interactive posters - the possibilities are endless! Makey Makey and the projects presented in this Learning Bit can be used in both primary and secondary schools to teach skills in areas like media education, computer science, science, physics, music, sport and interdisciplinary skills such as teamwork and social skills.","training.lessons.21.text.3":"Step into the exciting world of Makey Makey and unlock boundless creativity in your classroom!","training.lessons.21.activities.1":"Makey Makey meets music: for beginners.","training.lessons.21.activities.2":"Talking pictures: for intermediate students.","training.lessons.21.activities.3":"Create an interactive poster: for advanced students.","training.download_video_script":"Download the video script","training.ready_to_share":"Ready to share what you learnt with your students?","training.choose_lessons":"Choose one of the lesson plans below and organize an activity with your students.","training.footer.title":"Do not forget to add your activity to the Code Week Map!","training.footer.text":`

+ You can easily organize a lesson in your classroom, an open day, or an event at your school. Just find a date and register your activity in the Code Week map. Each activity organizer will get a certificate of participation for their effort. +

+ +

+ If you would like to connect with an international group of enthusiastic teachers, join the EU Code Week Facebook group for teachers! To take a step further and collaborate with other schools in your country or across borders – join the Code Week 4 All challenge. +

`,"training.training-text":"Bite-sized, ready-to-use materials that will help you introduce coding basics and plan your next innovative lesson.","training.quick-practical-text1":"Discover the essentials of coding and computational thinking through bite-sized, practical activities designed for educators, students, and anyone eager to explore the digital world. Whether you're new to coding or looking for fresh ideas to integrate into your teaching or training sessions, Learning Bits will spark your imagination and provide a solid starting point.","training.watch-learn-title":"Watch & Learn","training.watch-learn-text":"Discover the essentials of coding through engaging Learning Bits. These bite-sized modules, lasting around 15 minutes introduce key concepts related to coding and computational thinking. In addition to theoretical insights, the modules provide practical tips on how to apply these concepts in various educational settings – whether you're teaching children, students or adult learners.","training.get-hands-on-title":"Get Hands-On","training.get-hands-on-text":"Choose a Learning Bit, watch the instructional video, and explore hands-on activities with the accompanying materials. Whether you’re new to coding or looking for fresh, creative teaching ideas, Coding Basics will equip you with the tools to spark digital curiosity and creativity in your learners.","training.share-inspire-title":"Share & Inspire","training.share-inspire-text1":`Once you've completed one or more Code Week Learning Bits, we encourage you to bring digital creativity into your educational environment and pin your activity on the Code Week Map!`,"training.share-inspire-text2":'You can organise a lesson in your classroom, a workshop at a community centre, or an open event at your organisation. Simply pick a date and register your activity on the Code Week Map. Each activity organiser will get a participation certificate for their effort.',"training.share-inspire-text3":'If you would like to connect with an international group of enthusiastic teachers, join the EU Code Week Facebook group for teachers! To take a step further and collaborate with other schools in your country or across borders – join the EU Code Week 4 All challenge.',"values.1.title":"EU Code Week is independent","values.1.content":"EU Code Week is a volunteer-driven community. We do not act out of economic interest. We respect and value other people’s ideas, beliefs and cultures. We take part in EU Code Week, because we believe in the importance of what we are doing. That is our strength. We want to make computational thinking, coding, programming, computer science, robotics, tinkering with hardware and digital skills at large accessible to everybody. ","values.2.title":"EU Code Week is for everyone","values.2.content":"Everyone can organise EU Code Week activities. We understand that it is essential for EU Code Week events to be organised for everyone regardless of their age, colour, gender, cultural background or intellectual capabilities. Activities can be an entrance point to trigger interest and curiosity or help develop skills even further. Equality, respect, freedom and inclusiveness are our principles. We want all participants to experience and create with technology in a fun way.","values.3.title":"EU Code Week is glocal","values.3.content.1":"EU Code Week has the ambition to reach you regardless if you live in a big city, regional capital or remote village. We put particular attention on supporting local organisers with","values.3.content.2":"materials","values.3.content.3":"in their language and fit to their needs. The","values.3.content.4":"EU Code Week map","values.3.content.5":"is the key tool where every activity is registered and has a precise location. At the same time, EU Code Week is global and welcomes people from all over the world into its community. We are “glocal”.","values.4.title":"EU Code Week is about cooperation","values.4.content.1":"Members of the EU Code Week community interact, exchange information, learn from each other and construct knowledge together. We are connected and supportive of one another. We share resources, ideas and best practices. We encourage partnerships and knowledge sharing.","values.4.content.2":"The EU Code Week 4 All challenge","values.4.content.3":"aims to build bridges across borders and communities. It helps to spread the positive energy and connects people who can learn from each other.","values.5.title":"EU Code Week is non-profit","values.5.content.1":"All Code Week activities are non-profit. All ","values.5.content.2":"resources","values.5.content.3":"on the EU Code Week website are free. All EU Code Week training and online courses are free.","values.6.title":"EU Code Week encourages innovation","values.6.content":"New ideas are always welcome. EU Code Week encourages innovation, creativity and forward looking thinking. We are open and thankful to receive feedback and criticism so we can make informed decisions and develop EU Code Week. Even failures will make us grow, as individuals, and as a community.","values.7.title":"EU Code Week is thank-full to its community","values.7.content":"We are thankful for the support of teachers, coaches and other activity organisers, students, parents, code clubs and all partners we work with. We all share the same goal. We want to bring computational thinking, coding, computer science and digital skills at large to as many people as possible.","values.title":"EU Code Week value statement","values.description.1.1":"EU Code Week is a movement run by volunteers –","values.description.1.2":"ambassadors","values.description.1.3":", leading teachers and coding enthusiasts around the world. It is supported by the","values.description.1.4":"European Commission","values.description.1.5":"and education ministries in the European Union and Western Balkan countries.","values.description.2":"At the heart of EU Code Week is the community of volunteer activity organisers who are teachers, mentors, coding clubs, libraries, private companies, parents and non-governmental organisations. They dedicate their time, energy and skills to bring computational thinking, coding, robotics, tinkering with hardware, computer science and digital skills at large to as many people as possible in Europe and around the world.","values.description.3":"EU Code Week is also its millions of participants, who are people of all genders, ages, backgrounds, cultures and skill sets from across the world.","values.description.4":"We are proud to be EU Code Week. These are our values. They guide our work and decisions at all times.","webinars.webinars-text":"Discover a range of free webinars to boost your coding skills and knowledge. Tune in and learn from experts at your own pace!","webinars.webinars-sub-text1":"Organised by the EU Code Week team, this webinar series is designed to support the organisation of events and activities. This series brings together experts, educators, and enthusiasts to explore the fascinating intersection of coding and digital creativity.","webinars.webinars-sub-text2":"Whether you're a teacher looking to enrich your curriculum, a student eager to expand your skills, or a coding enthusiast interested in the latest educational trends, this series has something for everyone.","webinars.recordings-youtube-list-title":"All recordings are also available as YouTube playlists:","webinars.2024-webinar-series-title":"2024 Webinar Series:","webinars.2025-webinar-series-title":"2025 Webinar Series:","why-coding.titles.0":"Why coding?","why-coding.titles.1":"It's about bringing ideas to life","why-coding.titles.2":"It's also about developing key competencies","why-coding.titles.3":"Lastly, it's about shaping our future","why-coding.texts.0":"It's about Pia, who felt like she had to study law, even though she always enjoyed math and playing with computers. It's about Mark, who has an idea for a better social network but doesn't know how to build it on his own. It's about Alice, who dreams about making robots because her parents don't allow her to have a cat. And about those of you who are already helping these dreams come true.","why-coding.texts.1":"Actually, it's about all of us and how we shape our lives and our future. We can do better than just sharing and liking posts. We can bring our ideas to life, build things that will bring joy to others.","why-coding.texts.2":"It's never been easier to develop an app, build your own robot, or who knows - even invent the flying car! It's not a comfortable journey, but it's a journey full of creative challenges, tons of fun and a supportive community behind you. Are you ready to accept the challenge and become a digital creator?","why-coding.texts.3":"Programming languages are like any other language. Only in this case, kids don't learn to express themselves and communicate with other people. Instead, they get to understand how to communicate with technology. Technology that is all around us - in our smartphones, computers, vehicles, everywhere!","why-coding.texts.4":"But understanding and communicating with computers is only a part of it. Coding also helps develop multi-disciplinary competencies such as computational thinking, problem-solving, creativity and teamwork - excellent skills for all walks of life. The ability to solve problems, to cope with failure and try again, or to collaborate with others, are traits looked-for in many fields.","why-coding.texts.5":"A century ago, programming languages didn’t even exist. Today, code is everywhere, from your watch to your washing machine. So don’t leave the future to somebody else when you can create it! The only limit is your imagination.","why-coding.texts.6":"As Alessandro Bogliolo, the coordinator of the EU Code Week team of volunteer ambassadors, says:","why-coding.texts.7":`"From the beginning of time, we did many things using stone, iron, paper and pencil that have transformed our lives. Now we live in a different era where our world is moulded in code. During Code Week, we want to give every European the opportunity to discover coding and have fun with it. Let's learn coding to shape our future"`,"why-coding.texts.8":"Programming has become an essential skill in all modern industries, from technology and finance, to healthcare, science, design and agriculture. Every sector needs people who understand how technology works, and coding will give you the edge to succeed in a digital world.","why-coding.texts.9":'Feeling inspired? Join EU Code Week!',"why-coding.texts.10":'Need more food for thought? Visit our blog for more.'};export{e as default}; diff --git a/public/build/manifest.json b/public/build/manifest.json index 4ab6deb9b..f54c8d302 100644 --- a/public/build/manifest.json +++ b/public/build/manifest.json @@ -10,7 +10,7 @@ "isEntry": true }, "resources/js/app.js": { - "file": "assets/app-BhhS6zLa.js", + "file": "assets/app-BAFDKbij.js", "name": "app", "src": "resources/js/app.js", "isEntry": true, @@ -93,7 +93,7 @@ "isDynamicEntry": true }, "resources/lang/php_en.json": { - "file": "assets/php_en-Dv7P2FP8.js", + "file": "assets/php_en-hSRkEOjH.js", "name": "php_en", "src": "resources/lang/php_en.json", "isDynamicEntry": true diff --git a/resources/js/components/activity-form/AddConfirmation.vue b/resources/js/components/activity-form/AddConfirmation.vue index 5066e438d..fab5a2dc4 100644 --- a/resources/js/components/activity-form/AddConfirmation.vue +++ b/resources/js/components/activity-form/AddConfirmation.vue @@ -21,9 +21,13 @@
+ +