diff --git a/.github/helper/install.sh b/.github/helper/install.sh new file mode 100644 index 00000000..f3aa9d04 --- /dev/null +++ b/.github/helper/install.sh @@ -0,0 +1,51 @@ +#!/bin/bash + +set -e + +cd ~ || exit + +sudo apt update +sudo apt remove mysql-server mysql-client +sudo apt install libcups2-dev redis-server mariadb-client-10.6 + +pip install frappe-bench + +git clone https://github.com/frappe/frappe --branch "$BRANCH_TO_CLONE" --depth 1 +bench init --skip-assets --frappe-path ~/frappe --python "$(which python)" frappe-bench + +mkdir ~/frappe-bench/sites/test_site +cp -r "${GITHUB_WORKSPACE}/.github/helper/site_config.json" ~/frappe-bench/sites/test_site/ + +mariadb --host 127.0.0.1 --port 3306 -u root -proot -e "SET GLOBAL character_set_server = 'utf8mb4'" +mariadb --host 127.0.0.1 --port 3306 -u root -proot -e "SET GLOBAL collation_server = 'utf8mb4_unicode_ci'" + +mariadb --host 127.0.0.1 --port 3306 -u root -proot -e "CREATE USER 'test_frappe'@'localhost' IDENTIFIED BY 'test_frappe'" +mariadb --host 127.0.0.1 --port 3306 -u root -proot -e "CREATE DATABASE test_frappe" +mariadb --host 127.0.0.1 --port 3306 -u root -proot -e "GRANT ALL PRIVILEGES ON \`test_frappe\`.* TO 'test_frappe'@'localhost'" + +mariadb --host 127.0.0.1 --port 3306 -u root -proot -e "FLUSH PRIVILEGES" + +install_whktml() { + wget -O /tmp/wkhtmltox.tar.xz https://github.com/frappe/wkhtmltopdf/raw/master/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz + tar -xf /tmp/wkhtmltox.tar.xz -C /tmp + sudo mv /tmp/wkhtmltox/bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf + sudo chmod o+x /usr/local/bin/wkhtmltopdf +} +install_whktml & + +cd ~/frappe-bench || exit + +sed -i 's/watch:/# watch:/g' Procfile +sed -i 's/schedule:/# schedule:/g' Procfile +sed -i 's/socketio:/# socketio:/g' Procfile +sed -i 's/redis_socketio:/# redis_socketio:/g' Procfile + +bench get-app https://github.com/frappe/erpnext --branch "$BRANCH_TO_CLONE" --resolve-deps +bench get-app education "${GITHUB_WORKSPACE}" +bench setup requirements --dev +bench build + +bench start &>> ~/frappe-bench/bench_start.log & +bench --site test_site reinstall --yes + +bench --verbose --site test_site install-app education \ No newline at end of file diff --git a/.github/helper/site_config.json b/.github/helper/site_config.json new file mode 100644 index 00000000..db0b3109 --- /dev/null +++ b/.github/helper/site_config.json @@ -0,0 +1,16 @@ +{ + "db_host": "127.0.0.1", + "db_port": 3306, + "db_name": "test_frappe", + "db_password": "test_frappe", + "auto_email_id": "test@example.com", + "mail_server": "smtp.example.com", + "mail_login": "test@example.com", + "mail_password": "test", + "admin_password": "admin", + "root_login": "root", + "root_password": "root", + "host_name": "http://test_site:8000", + "install_apps": ["erpnext"], + "throttle_user_limit": 100 +} \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..6e1cdbdc --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,85 @@ +name: CI + +on: + pull_request: + paths-ignore: + - "**.css" + - "**.js" + - "**.md" + - "**.html" + - "**.csv" + schedule: + # Run everday at midnight UTC / 5:30 IST + - cron: "0 0 * * *" +env: + EDUCATION_BRANCH: ${{ github.base_ref || github.ref_name }} + +concurrency: + group: develop-${{ github.event.number }} + cancel-in-progress: true + +jobs: + tests: + runs-on: ubuntu-latest + timeout-minutes: 60 + env: + NODE_ENV: "production" + + strategy: + fail-fast: false + + matrix: + container: [1, 2] + + name: Python Unit Tests + + services: + mysql: + image: mariadb:10.6 + env: + MARIADB_ROOT_PASSWORD: 'root' + ports: + - 3306:3306 + options: --health-cmd="mariadb-admin ping" --health-interval=5s --health-timeout=2s --health-retries=3 + + steps: + - name: Clone + uses: actions/checkout@v2 + + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: '3.10' + + - name: Check for valid Python & Merge Conflicts + run: | + python -m compileall -f "${GITHUB_WORKSPACE}" + if grep -lr --exclude-dir=node_modules "^<<<<<<< " "${GITHUB_WORKSPACE}" + then echo "Found merge conflicts" + exit 1 + fi + + - name: Setup Node + uses: actions/setup-node@v2 + with: + node-version: 18 + check-latest: true + + - name: Add to Hosts + run: echo "127.0.0.1 test_site" | sudo tee -a /etc/hosts + + - name: Cache pip + uses: actions/cache@v2 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/*requirements.txt', '**/pyproject.toml') }} + restore-keys: | + ${{ runner.os }}-pip- + ${{ runner.os }}- + + - name: Install + run: | + bash ${GITHUB_WORKSPACE}/.github/helper/install.sh + env: + BRANCH_TO_CLONE: ${{ env.EDUCATION_BRANCH }} + diff --git a/.gitignore b/.gitignore index 48b57337..97267fcb 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,7 @@ tags education/docs/current dist/ -__pycache__/ \ No newline at end of file +__pycache__/ +node_modules +education/public/frontend +education/www/education.html \ No newline at end of file diff --git a/education/hooks.py b/education/hooks.py index 8e7804fe..b7510692 100644 --- a/education/hooks.py +++ b/education/hooks.py @@ -35,6 +35,7 @@ website_route_rules = [ {"from_route": "/admissions", "to_route": "Student Admission"}, + {"from_route": "/education/", "to_route": "education"}, ] treeviews = ["Assessment Group"] diff --git a/education/public/frontend/assets/Attendance.e3077277.js b/education/public/frontend/assets/Attendance.e3077277.js deleted file mode 100644 index 3596876d..00000000 --- a/education/public/frontend/assets/Attendance.e3077277.js +++ /dev/null @@ -1 +0,0 @@ -import{G as e,q as n,B as t}from"./frappe-ui.49d8c9fc.js";const c={};function r(a,o){return n(),t("div",null," Attendance ")}var _=e(c,[["render",r]]);export{_ as default}; diff --git a/education/public/frontend/assets/Fees.34bdecc8.js b/education/public/frontend/assets/Fees.34bdecc8.js deleted file mode 100644 index 684fa0bf..00000000 --- a/education/public/frontend/assets/Fees.34bdecc8.js +++ /dev/null @@ -1 +0,0 @@ -import{G as e,q as r,B as s}from"./frappe-ui.49d8c9fc.js";const t={};function o(a,c,n,p,_,f){return r(),s("div",null," Fees ")}var d=e(t,[["render",o]]);export{d as default}; diff --git a/education/public/frontend/assets/FontColor.283f7e45.js b/education/public/frontend/assets/FontColor.283f7e45.js deleted file mode 100644 index b3b4b060..00000000 --- a/education/public/frontend/assets/FontColor.283f7e45.js +++ /dev/null @@ -1 +0,0 @@ -import{G as f,a4 as g,a5 as _,U as d,q as o,s as l,u as r,$ as p,a6 as C,a7 as k,v as a,B as c,F as u,E as m,Z as h,x as b}from"./frappe-ui.49d8c9fc.js";const v={name:"FontColor",props:["editor"],components:{Popover:g,Tooltip:_},methods:{setBackgroundColor(t){t.name!="Default"?this.editor.chain().focus().toggleHighlight({color:t.hex}).run():this.editor.chain().focus().unsetHighlight().run()},setForegroundColor(t){t.name!="Default"?this.editor.chain().focus().setColor(t.hex).run():this.editor.chain().focus().unsetColor().run()}},computed:{foregroundColors(){return[{name:"Default",hex:"#1F272E"},{name:"Yellow",hex:"#ca8a04"},{name:"Orange",hex:"#ea580c"},{name:"Red",hex:"#dc2626"},{name:"Green",hex:"#16a34a"},{name:"Blue",hex:"#1579D0"},{name:"Purple",hex:"#9333ea"},{name:"Pink",hex:"#db2777"}]},backgroundColors(){return[{name:"Default",hex:null},{name:"Yellow",hex:"#fef9c3"},{name:"Orange",hex:"#ffedd5"},{name:"Red",hex:"#fee2e2"},{name:"Green",hex:"#dcfce7"},{name:"Blue",hex:"#D3E9FC"},{name:"Purple",hex:"#f3e8ff"},{name:"Pink",hex:"#fce7f3"}]}}},y={class:"p-2"},B=a("div",{class:"text-sm text-gray-700"},"Text Color",-1),P={class:"mt-1 grid grid-cols-8 gap-1"},F=["aria-label","onClick"],D=a("div",{class:"mt-2 text-sm text-gray-700"},"Background Color",-1),w={class:"mt-1 grid grid-cols-8 gap-1"},E=["aria-label","onClick"];function T(t,$,z,A,G,n){const i=d("Tooltip"),x=d("Popover");return o(),l(x,{transition:"default"},{target:r(({togglePopover:e,isOpen:s})=>[p(t.$slots,"default",C(k({onClick:()=>e(),isActive:s})))]),"body-main":r(()=>[a("div",y,[B,a("div",P,[(o(!0),c(u,null,m(n.foregroundColors,e=>(o(),l(i,{class:"flex",key:e.name,text:e.name},{default:r(()=>[a("button",{"aria-label":e.name,class:"flex h-5 w-5 items-center justify-center rounded border text-base",style:h({color:e.hex}),onClick:s=>n.setForegroundColor(e)}," A ",12,F)]),_:2},1032,["text"]))),128))]),D,a("div",w,[(o(!0),c(u,null,m(n.backgroundColors,e=>(o(),l(i,{class:"flex",key:e.name,text:e.name},{default:r(()=>[a("button",{"aria-label":e.name,class:b(["flex h-5 w-5 items-center justify-center rounded border text-base text-gray-900",e.hex?"border-transparent":"border-gray-200"]),style:h({backgroundColor:e.hex}),onClick:s=>n.setBackgroundColor(e)}," A ",14,E)]),_:2},1032,["text"]))),128))])])]),_:3})}var j=f(v,[["render",T]]);export{j as default}; diff --git a/education/public/frontend/assets/Grades.44a9a37e.js b/education/public/frontend/assets/Grades.44a9a37e.js deleted file mode 100644 index ac8c0e06..00000000 --- a/education/public/frontend/assets/Grades.44a9a37e.js +++ /dev/null @@ -1 +0,0 @@ -import{G as e,q as r,B as a}from"./frappe-ui.49d8c9fc.js";const c={};function n(s,t){return r(),a("div",null," Grades ")}var _=e(c,[["render",n]]);export{_ as default}; diff --git a/education/public/frontend/assets/Home.6059a353.js b/education/public/frontend/assets/Home.6059a353.js deleted file mode 100644 index d811ffd1..00000000 --- a/education/public/frontend/assets/Home.6059a353.js +++ /dev/null @@ -1 +0,0 @@ -import{q as e,B as o}from"./frappe-ui.49d8c9fc.js";const t={class:""},r={__name:"Home",setup(s){return(c,_)=>(e(),o("div",t," Home "))}};export{r as default}; diff --git a/education/public/frontend/assets/InsertImage.2d7b0b05.js b/education/public/frontend/assets/InsertImage.2d7b0b05.js deleted file mode 100644 index 893e453c..00000000 --- a/education/public/frontend/assets/InsertImage.2d7b0b05.js +++ /dev/null @@ -1 +0,0 @@ -import{G as f,J as I,a8 as D,aa as h,U as d,q as m,B as c,$ as _,a6 as y,a7 as v,C as n,u as s,v as r,y as C,V as w,W as u,F as B}from"./frappe-ui.49d8c9fc.js";const V={name:"InsertImage",props:["editor"],expose:["openDialog"],data(){return{addImageDialog:{url:"",file:null,show:!1}}},components:{Button:I,Dialog:D},methods:{openDialog(){this.addImageDialog.show=!0},onImageSelect(t){let e=t.target.files[0];!e||(this.addImageDialog.file=e,h(e).then(i=>{this.addImageDialog.url=i}))},addImage(t){this.editor.chain().focus().setImage({src:t}).run(),this.reset()},reset(){this.addImageDialog=this.$options.data().addImageDialog}}},b={class:"relative cursor-pointer rounded-lg bg-gray-100 py-1 focus-within:bg-gray-200 hover:bg-gray-200"},k={class:"absolute inset-0 select-none px-2 py-1 text-base"},x=["src"];function S(t,e,i,N,a,o){const g=d("Button"),p=d("Dialog");return m(),c(B,null,[_(t.$slots,"default",y(v({onClick:o.openDialog}))),n(p,{options:{title:"Add Image"},modelValue:a.addImageDialog.show,"onUpdate:modelValue":e[2]||(e[2]=l=>a.addImageDialog.show=l),onAfterLeave:o.reset},{"body-content":s(()=>[r("label",b,[r("input",{type:"file",class:"w-full opacity-0",onChange:e[0]||(e[0]=(...l)=>o.onImageSelect&&o.onImageSelect(...l)),accept:"image/*"},null,32),r("span",k,C(a.addImageDialog.file?"Select another image":"Select an image"),1)]),a.addImageDialog.url?(m(),c("img",{key:0,src:a.addImageDialog.url,class:"mt-2 w-full rounded-lg"},null,8,x)):w("",!0)]),actions:s(()=>[n(g,{variant:"solid",onClick:e[1]||(e[1]=l=>o.addImage(a.addImageDialog.url))},{default:s(()=>[u(" Insert Image ")]),_:1}),n(g,{onClick:o.reset},{default:s(()=>[u(" Cancel ")]),_:1},8,["onClick"])]),_:1},8,["modelValue","onAfterLeave"])],64)}var F=f(V,[["render",S]]);export{F as default}; diff --git a/education/public/frontend/assets/InsertLink.88a21340.js b/education/public/frontend/assets/InsertLink.88a21340.js deleted file mode 100644 index c2b1f797..00000000 --- a/education/public/frontend/assets/InsertLink.88a21340.js +++ /dev/null @@ -1 +0,0 @@ -import{G as d,J as L,L as g,a8 as m,U as i,q as p,B as f,$ as D,a6 as h,a7 as c,C as a,u as l,a9 as v,W as _,F as w}from"./frappe-ui.49d8c9fc.js";const x={name:"InsertLink",props:["editor"],components:{Button:L,Input:g,Dialog:m},data(){return{setLinkDialog:{url:"",show:!1}}},methods:{openDialog(){let t=this.editor.getAttributes("link").href;t&&(this.setLinkDialog.url=t),this.setLinkDialog.show=!0},setLink(t){t===""?this.editor.chain().focus().extendMarkRange("link").unsetLink().run():this.editor.chain().focus().extendMarkRange("link").setLink({href:t}).run(),this.setLinkDialog.show=!1,this.setLinkDialog.url=""},reset(){this.setLinkDialog=this.$options.data().setLinkDialog}}};function V(t,e,C,B,n,s){const r=i("FormControl"),u=i("Button"),k=i("Dialog");return p(),f(w,null,[D(t.$slots,"default",h(c({onClick:s.openDialog}))),a(k,{options:{title:"Set Link"},modelValue:n.setLinkDialog.show,"onUpdate:modelValue":e[3]||(e[3]=o=>n.setLinkDialog.show=o),onAfterLeave:s.reset},{"body-content":l(()=>[a(r,{type:"text",label:"URL",modelValue:n.setLinkDialog.url,"onUpdate:modelValue":e[0]||(e[0]=o=>n.setLinkDialog.url=o),onKeydown:e[1]||(e[1]=v(o=>s.setLink(o.target.value),["enter"]))},null,8,["modelValue"])]),actions:l(()=>[a(u,{variant:"solid",onClick:e[2]||(e[2]=o=>s.setLink(n.setLinkDialog.url))},{default:l(()=>[_(" Save ")]),_:1})]),_:1},8,["modelValue","onAfterLeave"])],64)}var U=d(x,[["render",V]]);export{U as default}; diff --git a/education/public/frontend/assets/InsertVideo.df1b339b.js b/education/public/frontend/assets/InsertVideo.df1b339b.js deleted file mode 100644 index e54b070a..00000000 --- a/education/public/frontend/assets/InsertVideo.df1b339b.js +++ /dev/null @@ -1 +0,0 @@ -import{G as _,J as v,a8 as C,ab as k,U as r,q as u,B as c,$ as h,a6 as B,a7 as x,C as a,u as l,v as y,W as n,y as U,s as w,V,F}from"./frappe-ui.49d8c9fc.js";const I={name:"InsertImage",props:["editor"],expose:["openDialog"],data(){return{addVideoDialog:{url:"",file:null,show:!1}}},components:{Button:v,Dialog:C,FileUploader:k},methods:{openDialog(){this.addVideoDialog.show=!0},onVideoSelect(i){let o=i.target.files[0];!o||(this.addVideoDialog.file=o)},addVideo(i){this.editor.chain().focus().insertContent(``).run(),this.reset()},reset(){this.addVideoDialog=this.$options.data().addVideoDialog}}},N={class:"flex items-center space-x-2"},S=["src"];function A(i,o,b,L,e,t){const s=r("Button"),p=r("FileUploader"),g=r("Dialog");return u(),c(F,null,[h(i.$slots,"default",B(x({onClick:t.openDialog}))),a(g,{options:{title:"Add Video"},modelValue:e.addVideoDialog.show,"onUpdate:modelValue":o[2]||(o[2]=d=>e.addVideoDialog.show=d),onAfterLeave:t.reset},{"body-content":l(()=>[a(p,{"file-types":"video/*",onSuccess:o[0]||(o[0]=d=>e.addVideoDialog.url=d.file_url)},{default:l(({file:d,progress:f,uploading:m,openFileSelector:D})=>[y("div",N,[a(s,{onClick:D},{default:l(()=>[n(U(m?`Uploading ${f}%`:e.addVideoDialog.url?"Change Video":"Upload Video"),1)]),_:2},1032,["onClick"]),e.addVideoDialog.url?(u(),w(s,{key:0,onClick:()=>{e.addVideoDialog.url=null,e.addVideoDialog.file=null}},{default:l(()=>[n(" Remove ")]),_:2},1032,["onClick"])):V("",!0)])]),_:1}),e.addVideoDialog.url?(u(),c("video",{key:0,src:e.addVideoDialog.url,class:"mt-2 w-full rounded-lg",type:"video/mp4",controls:""},null,8,S)):V("",!0)]),actions:l(()=>[a(s,{variant:"solid",onClick:o[1]||(o[1]=d=>t.addVideo(e.addVideoDialog.url))},{default:l(()=>[n(" Insert Video ")]),_:1}),a(s,{onClick:t.reset},{default:l(()=>[n("Cancel")]),_:1},8,["onClick"])]),_:1},8,["modelValue","onAfterLeave"])],64)}var R=_(I,[["render",A]]);export{R as default}; diff --git a/education/public/frontend/assets/Leaves.08109b90.js b/education/public/frontend/assets/Leaves.08109b90.js deleted file mode 100644 index 9b0d49f6..00000000 --- a/education/public/frontend/assets/Leaves.08109b90.js +++ /dev/null @@ -1 +0,0 @@ -import{G as e,q as a,B as r}from"./frappe-ui.49d8c9fc.js";const s={};function t(o,c,n,p,_,f){return a(),r("div",null," Leaves ")}var d=e(s,[["render",t]]);export{d as default}; diff --git a/education/public/frontend/assets/Profile.80ee4793.js b/education/public/frontend/assets/Profile.80ee4793.js deleted file mode 100644 index 22807be1..00000000 --- a/education/public/frontend/assets/Profile.80ee4793.js +++ /dev/null @@ -1 +0,0 @@ -import{G as n,q as s,B as e,v as l}from"./frappe-ui.49d8c9fc.js";const d={},o=l("h1",null,null,-1),t=l("p",null,null,-1),c=l("ul",null,[l("li",null,"sjdnsjdb"),l("li",null,"sjdnsjdb"),l("li",null,"sjdnsjdb"),l("li",null,"sjdnsjdb"),l("li",null,"sjdnsjdb")],-1),_=[o,t,c];function u(i,r){return s(),e("div",null,_)}var j=n(d,[["render",u]]);export{j as default}; diff --git a/education/public/frontend/assets/Schedule.012257c2.css b/education/public/frontend/assets/Schedule.012257c2.css deleted file mode 100644 index f6e5fad7..00000000 --- a/education/public/frontend/assets/Schedule.012257c2.css +++ /dev/null @@ -1 +0,0 @@ -.calendar-root[data-v-67f77862],.date-picker-root[data-v-67f77862]{--qalendar-blue: rgb(38 132 255);--qalendar-blue-transparent: rgba(38 132 255 / 90%);--qalendar-gray-quite-dark: rgb(110 110 110);--qalendar-gray: rgb(180 180 180);--qalendar-green: rgb(51 182 121);--qalendar-theme-color: var(--qalendar-blue);--qalendar-light-gray: rgba(240 236 236 / 76%);--qalendar-option-hover: var(--qalendar-light-gray);--qalendar-dark-mode-elevated-surface: #383838;--qalendar-dark-mode-lightly-elevated-surface: #2e2e2e;--qalendar-dark-mode-text-primary: rgba(255 255 255 1);--qalendar-dark-mode-text-secondary: rgba(255 255 255 .7);--qalendar-dark-mode-text-hint: rgba(255 255 255 .5);--qalendar-dark-mode-line-color: var(--qalendar-gray);--qalendar-border-gray-thin: 1px solid rgb(224 224 224);--qalendar-border-dashed-gray-thin: 1px dashed rgb(224 224 224);--qalendar-border-blue-thin: 1px solid var(--qalendar-theme-color);--qalendar-border-radius: 8px;--qalendar-spacing: 10px;--qalendar-spacing-half: 5px;--qalendar-spacing-double: 20px;--qalendar-box-shadow: 0 4px 4px rgba(0 0 0 / 6%), 0 1px 4px rgba(0 0 0 / 18%);--qalendar-text-transition: color .2s ease;--qalendar-week-padding-left: 56px;--qalendar-font-3xs: .625rem;--qalendar-font-2xs: .688rem;--qalendar-font-xs: .75rem;--qalendar-font-s: .875rem;--qalendar-font-m: 1rem;--qalendar-font-l: 1.25rem;--qalendar-font-xl: 1.5rem}@media (prefers-color-scheme: dark){.calendar-root[data-v-67f77862]:not(.is-light-mode .calendar-root,.is-light-mode .date-picker-root),.date-picker-root[data-v-67f77862]:not(.is-light-mode .calendar-root,.is-light-mode .date-picker-root){--qalendar-gray-quite-dark: rgb(221, 221, 221);--qalendar-option-hover: #575757}}[style*="color-scheme: dark"] .calendar-root[data-v-67f77862],[style*="color-scheme: dark"] .date-picker-root[data-v-67f77862]{--qalendar-gray-quite-dark: rgb(221, 221, 221);--qalendar-option-hover: #575757}@media (prefers-color-scheme: dark){.calendar-root[data-v-67f77862]:not(.is-light-mode .calendar-root,.is-light-mode .date-picker-root),.date-picker-root[data-v-67f77862]:not(.is-light-mode .calendar-root,.is-light-mode .date-picker-root){--qalendar-gray-quite-dark: rgb(221, 221, 221)}}[style*="color-scheme: dark"] .calendar-root[data-v-67f77862],[style*="color-scheme: dark"] .date-picker-root[data-v-67f77862]{--qalendar-gray-quite-dark: rgb(221, 221, 221)}@media (min-width: 62rem){.calendar-root[data-v-67f77862]{--qalendar-spacing: 20px;--qalendar-spacing-half: 10px;--qalendar-spacing-double: 40px}}.date-picker[data-v-67f77862]{position:relative;width:-moz-fit-content;width:fit-content;min-width:16rem}.mode-is-month .date-picker[data-v-67f77862]{min-width:8rem}.mode-is-day .date-picker[data-v-67f77862]{min-width:10rem}.qalendar-is-small .date-picker[data-v-67f77862]{min-width:initial}.date-picker[data-v-67f77862]:not(.is-in-qalendar){min-width:initial}.qalendar-is-small .date-picker[data-v-67f77862]:not(.is-in-qalendar){margin:0 auto}.date-picker__value-display[data-v-67f77862]{height:36px;border-radius:4px;padding:0 var(--qalendar-spacing);font-size:var(--qalendar-font-m);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--qalendar-spacing-half);-webkit-user-select:none;-moz-user-select:none;user-select:none;border:var(--qalendar-border-gray-thin)}@media (prefers-color-scheme: dark){.date-picker__value-display[data-v-67f77862]:not(.is-light-mode .date-picker__value-display){color:var(--qalendar-dark-mode-text-hint);background-color:var(--qalendar-dark-mode-lightly-elevated-surface);border-color:transparent}}[style*="color-scheme: dark"] .date-picker__value-display[data-v-67f77862]{color:var(--qalendar-dark-mode-text-hint);background-color:var(--qalendar-dark-mode-lightly-elevated-surface);border-color:transparent}.qalendar-is-small .date-picker__value-display[data-v-67f77862]{border:0}.date-picker__value-display .date-picker__value-display-text[data-v-67f77862]{display:initial}.qalendar-is-small .date-picker__value-display .date-picker__value-display-text[data-v-67f77862]{display:none}.date-picker__value-display svg[data-v-67f77862]{font-size:initial}.qalendar-is-small .date-picker__value-display svg[data-v-67f77862]{font-size:var(--qalendar-font-l)}.date-picker__week-picker[data-v-67f77862]{padding:var(--qalendar-spacing-half);z-index:51;background-color:#fff;border:var(--qalendar-border-gray-thin);border-radius:4px;min-width:250px;box-shadow:0 2px 4px #f0ececc2}@media (prefers-color-scheme: dark){.date-picker__week-picker[data-v-67f77862]:not(.is-light-mode .date-picker__week-picker){background-color:var(--qalendar-dark-mode-elevated-surface);border-color:transparent;box-shadow:0 2px 4px #0000001a}}[style*="color-scheme: dark"] .date-picker__week-picker[data-v-67f77862]{background-color:var(--qalendar-dark-mode-elevated-surface);border-color:transparent;box-shadow:0 2px 4px #0000001a}.date-picker__week-picker.is-in-qalendar[data-v-67f77862]{top:calc(100% - 1px);position:absolute;right:0}.date-picker__week-picker.is-in-qalendar .mode-is-month[data-v-67f77862],.mode-is-week .date-picker__week-picker.is-in-qalendar[data-v-67f77862]{left:50%;transform:translate(-50%)}.qalendar-is-small .date-picker__week-picker.is-in-qalendar .mode-is-month[data-v-67f77862],.qalendar-is-small .mode-is-week .date-picker__week-picker.is-in-qalendar[data-v-67f77862]{left:initial;transform:initial}.date-picker__week-picker-navigation[data-v-67f77862]{font-weight:900;display:flex;align-items:center;justify-content:space-between;gap:var(--qalendar-spacing-half);margin-bottom:.25em;-webkit-user-select:none;-moz-user-select:none;user-select:none}.date-picker__week-picker-navigation .is-icon[data-v-67f77862]{transition:var(--qalendar-text-transition);color:#131313}@media (prefers-color-scheme: dark){.date-picker__week-picker-navigation .is-icon[data-v-67f77862]:not(.is-light-mode .date-picker__week-picker-navigation .is-icon){color:var(--qalendar-dark-mode-text-hint)}}[style*="color-scheme: dark"] .date-picker__week-picker-navigation .is-icon[data-v-67f77862]{color:var(--qalendar-dark-mode-text-hint)}@media (hover: hover){.date-picker__week-picker-navigation .is-icon[data-v-67f77862]:hover{color:var(--qalendar-blue);cursor:pointer}}.date-picker__toggle-mode[data-v-67f77862]{transition:var(--qalendar-text-transition)}@media (hover: hover){.date-picker__toggle-mode[data-v-67f77862]:hover{color:var(--qalendar-blue);cursor:pointer}}.date-picker .months[data-v-67f77862]{display:flex;flex-wrap:wrap;gap:var(--qalendar-spacing-half);max-width:20rem}.date-picker .months span[data-v-67f77862]{padding:4px;border:var(--qalendar-border-gray-thin);border-radius:2px;flex:1 0 33%;text-align:center;cursor:pointer;font-size:var(--qalendar-font-xs);transition:all .2s ease}@media (hover: hover){.date-picker .months span[data-v-67f77862]:hover{background-color:var(--qalendar-theme-color);color:#fff;border:var(--qalendar-border-blue-thin)}}.date-picker .week[data-v-67f77862]{width:100%;display:flex;justify-content:space-evenly;align-items:center;margin:4px 0}.date-picker .week.is-active[data-v-67f77862]{border:1px dashed var(--qalendar-theme-color);border-radius:4px}.date-picker .week span[data-v-67f77862]{display:flex;min-height:32px;min-width:32px;justify-content:center;align-items:center;flex:1 1 100%;cursor:pointer;border-radius:50%;font-size:var(--qalendar-font-xs)}.date-picker .week span.is-weekend[data-v-67f77862]{color:gray}@media (hover: hover){.date-picker .week span.has-day[data-v-67f77862]:hover{background-color:var(--qalendar-option-hover)}}.date-picker .week span.is-today[data-v-67f77862]{background-color:var(--qalendar-blue);color:#fff}.date-picker .week span.is-not-in-month[data-v-67f77862]{color:#a9a9a9}.date-picker .week span.is-disabled[data-v-67f77862]{color:#a9a9a9;cursor:not-allowed}[data-lang=ar] .date-picker .week span[data-v-67f77862]{font-size:.65rem}.date-picker__day-names[data-v-67f77862]{text-transform:uppercase;font-weight:700;font-size:var(--qalendar-font-s)}.calendar-header[data-v-37f1c389]{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:var(--qalendar-spacing-half);border-radius:var(--qalendar-border-radius)}@media (min-width: 37.5rem){.calendar-header[data-v-37f1c389]{justify-content:space-between;grid-gap:var(--qalendar-spacing)}}@media (prefers-color-scheme: dark){.calendar-header[data-v-37f1c389]:not(.is-light-mode .calendar-header){color:var(--qalendar-dark-mode-text-hint)}}[style*="color-scheme: dark"] .calendar-header[data-v-37f1c389]{color:var(--qalendar-dark-mode-text-hint)}.calendar-header__period[data-v-37f1c389]{display:flex;flex-wrap:wrap;align-items:center;gap:var(--qalendar-spacing)}.calendar-header__period-name[data-v-37f1c389]{font-size:var(--qalendar-font-l);text-align:center}@media (min-width: 37.5rem){.calendar-header__period-name[data-v-37f1c389]{margin-bottom:0;text-align:left}}.calendar-header__multiselects[data-v-37f1c389]{display:flex;flex-wrap:wrap;align-items:center;gap:var(--qalendar-spacing)}.calendar-header__chevron-arrows[data-v-37f1c389]{display:flex;align-items:center;grid-gap:20px}.calendar-header__chevron-arrows .calendar-header__chevron-arrow[data-v-37f1c389]{cursor:pointer;transition:color .2s ease;font-size:var(--qalendar-font-m)}@media (hover: hover){.calendar-header__chevron-arrows .calendar-header__chevron-arrow[data-v-37f1c389]:hover{color:var(--qalendar-gray-quite-dark)}}.calendar-header__mode-picker[data-v-37f1c389]{position:relative;display:flex;align-items:center;justify-content:center;width:-moz-fit-content;width:fit-content;height:36px;border-radius:4px;font-size:var(--qalendar-font-m);cursor:pointer;border:var(--qalendar-border-gray-thin)}@media (prefers-color-scheme: dark){.calendar-header__mode-picker[data-v-37f1c389]:not(.is-light-mode .calendar-header__mode-picker){border-color:transparent}}[style*="color-scheme: dark"] .calendar-header__mode-picker[data-v-37f1c389]{border-color:transparent}.calendar-header__mode-picker .calendar-header__mode-value[data-v-37f1c389]{padding:0 var(--qalendar-spacing);width:100%;height:100%;display:flex;align-items:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:4px}@media (prefers-color-scheme: dark){.calendar-header__mode-picker .calendar-header__mode-value[data-v-37f1c389]:not(.is-light-mode .calendar-header__mode-picker .calendar-header__mode-value){background-color:var(--qalendar-dark-mode-lightly-elevated-surface)}}[style*="color-scheme: dark"] .calendar-header__mode-picker .calendar-header__mode-value[data-v-37f1c389]{background-color:var(--qalendar-dark-mode-lightly-elevated-surface)}.calendar-header__mode-picker .calendar-header__mode-options[data-v-37f1c389]{position:absolute;z-index:51;top:100%;left:50%;transform:translate(-50%);border:var(--qalendar-border-gray-thin);background-color:#fff}@media (prefers-color-scheme: dark){.calendar-header__mode-picker .calendar-header__mode-options[data-v-37f1c389]:not(.is-light-mode .calendar-header__mode-picker .calendar-header__mode-options){border-color:transparent;background-color:var(--qalendar-dark-mode-elevated-surface)}}[style*="color-scheme: dark"] .calendar-header__mode-picker .calendar-header__mode-options[data-v-37f1c389]{border-color:transparent;background-color:var(--qalendar-dark-mode-elevated-surface)}.calendar-header__mode-picker .calendar-header__mode-options .calendar-header__mode-option[data-v-37f1c389]{padding:var(--qalendar-spacing-half) var(--qalendar-spacing)}@media (hover: hover){.calendar-header__mode-picker .calendar-header__mode-options .calendar-header__mode-option[data-v-37f1c389]:hover{background-color:var(--qalendar-option-hover)}}.day-timeline[data-v-014bf4e0]{position:absolute;top:0;left:0;width:calc(100% + 10px);height:var(--11371d19);transform:translate(-10px);display:flex;flex-flow:column;justify-content:space-evenly}.day-timeline__hour[data-v-014bf4e0]{padding-left:4px;display:flex;flex-flow:column;justify-content:flex-start;height:100%;font-size:clamp(10px,.625rem,14px);color:var(--qalendar-gray-quite-dark)}.day-timeline__hour-text[data-v-014bf4e0]{line-height:0;transform:translate(-40px)}.day-timeline__hour:first-child .day-timeline__hour-text[data-v-014bf4e0]{display:none}.day-timeline__hour[data-v-014bf4e0]:not(:last-child){border-bottom:var(--qalendar-border-gray-thin)}@media (prefers-color-scheme: dark){.day-timeline__hour[data-v-014bf4e0]:not(:last-child):not(.is-light-mode .day-timeline__hour:not(:last-child)){border-color:var(--qalendar-dark-mode-line-color)}}[style*="color-scheme: dark"] .day-timeline__hour[data-v-014bf4e0]:not(:last-child){border-color:var(--qalendar-dark-mode-line-color)}.week-timeline__event[data-v-778d59fc]{position:relative;--event-padding: 3px;display:flex;align-items:center;height:.9rem;width:calc(100% - var(--event-padding));font-size:var(--qalendar-font-2xs);border-radius:4px;padding:var(--event-padding);margin-bottom:.25em;text-align:left;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden}.week-timeline__event[data-v-778d59fc]:active{cursor:not-allowed}.week-timeline[data-v-a43746b6]{height:-moz-fit-content;height:fit-content;display:flex;justify-content:space-evenly;padding-bottom:var(--qalendar-spacing-half);padding-left:var(--qalendar-week-padding-left);border-bottom:var(--qalendar-border-gray-thin)}.mode-is-day .week-timeline[data-v-a43746b6]{width:100%;padding-left:0}.week-timeline__day[data-v-a43746b6]{width:100%;display:flex;flex-flow:column;align-items:center;justify-content:flex-start}.week-timeline__day-name[data-v-a43746b6]{font-size:var(--qalendar-font-3xs);font-weight:400;margin-bottom:4px;color:var(--qalendar-gray-quite-dark)}.week-timeline__date[data-v-a43746b6]{font-size:1.2rem;margin-bottom:4px;height:2rem;width:2rem;border-radius:50%;display:flex;align-items:center;justify-content:center}.is-today .week-timeline__date[data-v-a43746b6]{background-color:var(--qalendar-blue);color:#fff}.week-timeline__events[data-v-a43746b6]{width:100%;flex:1;border-right:1px dashed rgb(224,224,224)}.week-timeline__day:first-child .week-timeline__events[data-v-a43746b6]{border-left:1px dashed rgb(224,224,224)}.calendar-week__event[data-v-a9092001]{position:absolute;width:100%;border-radius:4px;cursor:pointer;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;user-select:none}.calendar-week__event.is-editable[data-v-a9092001]{cursor:grab}.calendar-week__event.has-disabled-dnd[data-v-a9092001]{cursor:initial}.calendar-week__event .calendar-week__event-row[data-v-a9092001]{display:flex;align-items:flex-start;margin-bottom:.25em}.calendar-week__event .calendar-week__event-row p[data-v-a9092001]{margin:0;padding:0}.calendar-week__event .calendar-week__event-info-wrapper[data-v-a9092001]{position:relative;padding:var(--qalendar-spacing-half);font-size:var(--qalendar-font-xs);height:100%;box-sizing:border-box;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none}.calendar-week__event .calendar-week__event-blend-out[data-v-a9092001]{position:absolute;bottom:0;height:20px;width:100%;transform:translate(calc(var(--qalendar-spacing-half) * -1))}.calendar-week__event .calendar-week__event-icon[data-v-a9092001]{margin:2px 4px 0 0;font-size:var(--qalendar-font-xs)}.calendar-week__event .calendar-week__event-resize[data-v-a9092001]{position:absolute;width:100%;cursor:ns-resize;height:5px}.calendar-week__event .calendar-week__event-resize-up[data-v-a9092001]{top:0}.calendar-week__event .calendar-week__event-resize-down[data-v-a9092001]{bottom:0}.calendar-week__day[data-v-b268be7e]{position:relative;width:100%;height:100%;display:flex;flex-direction:column}.calendar-week__day .calendar-week__day-interval[data-v-b268be7e]{flex:1;font-size:var(--qalendar-font-xs);color:var(--qalendar-gray);padding:2px}.calendar-week__day .calendar-week__day-interval.has-border[data-v-b268be7e]{border-bottom:var(--qalendar-border-dashed-gray-thin)}.calendar-week__day[data-v-b268be7e]:first-child{border-left:1px dashed rgb(224,224,224)}@media (prefers-color-scheme: dark){.calendar-week__day[data-v-b268be7e]:first-child:not(.is-light-mode .calendar-week__day:first-child){border-color:var(--qalendar-dark-mode-line-color)}}[style*="color-scheme: dark"] .calendar-week__day[data-v-b268be7e]:first-child{border-color:var(--qalendar-dark-mode-line-color)}.calendar-week__day[data-v-b268be7e]:not(:last-child){border-right:1px dashed rgb(224,224,224)}@media (prefers-color-scheme: dark){.calendar-week__day[data-v-b268be7e]:not(:last-child):not(.is-light-mode .calendar-week__day:not(:last-child)){border-color:var(--qalendar-dark-mode-line-color)}}[style*="color-scheme: dark"] .calendar-week__day[data-v-b268be7e]:not(:last-child){border-color:var(--qalendar-dark-mode-line-color)}.event-flyout[data-v-d6a61e37]{position:fixed;z-index:50;background-color:#fff;max-height:100%;width:var(--7c0b2114);max-width:98%;border:var(--qalendar-border-gray-thin);border-radius:8px;box-shadow:0 12px 24px #00000017,0 6px 12px #0000002e;overflow:hidden;transition:all .2s ease;transition-property:opacity,transform;transform:translateY(-40px);opacity:0;pointer-events:none}@media (prefers-color-scheme: dark){.event-flyout[data-v-d6a61e37]:not(.is-light-mode .event-flyout){background-color:var(--qalendar-dark-mode-elevated-surface);border-color:transparent}}[style*="color-scheme: dark"] .event-flyout[data-v-d6a61e37]{background-color:var(--qalendar-dark-mode-elevated-surface);border-color:transparent}.event-flyout.is-visible[data-v-d6a61e37]{opacity:1;transform:translateY(0);pointer-events:initial}.event-flyout__relative-wrapper[data-v-d6a61e37]{position:relative}.event-flyout__menu[data-v-d6a61e37]{display:flex;justify-content:space-between;align-items:center}.event-flyout__menu .event-flyout__menu-editable[data-v-d6a61e37],.event-flyout__menu .event-flyout__menu-close[data-v-d6a61e37]{padding:var(--qalendar-spacing) var(--qalendar-spacing) 0 var(--qalendar-spacing);display:flex;grid-gap:20px}.is-not-editable .event-flyout__menu .event-flyout__menu-close[data-v-d6a61e37]{position:absolute;top:0;right:0}.event-flyout__menu-item[data-v-d6a61e37]{font-size:var(--qalendar-font-l);color:gray}@media (prefers-color-scheme: dark){.event-flyout__menu-item[data-v-d6a61e37]:not(.is-light-mode .event-flyout__menu-item){color:var(--qalendar-dark-mode-text-hint)}}[style*="color-scheme: dark"] .event-flyout__menu-item[data-v-d6a61e37]{color:var(--qalendar-dark-mode-text-hint)}.event-flyout__menu-item[data-v-d6a61e37]:hover{color:var(--qalendar-theme-color);cursor:pointer}.event-flyout .is-trash-icon[data-v-d6a61e37]:hover{color:red}.event-flyout__info-wrapper[data-v-d6a61e37]{padding:var(--qalendar-spacing)}.event-flyout__row[data-v-d6a61e37]{display:flex;grid-gap:var(--qalendar-spacing);margin-bottom:.25em;font-weight:400}.event-flyout__row p[data-v-d6a61e37]{margin:0;padding:0}.event-flyout__row svg[data-v-d6a61e37]{margin-top:.1rem;color:#5f6368;width:14px}@media (prefers-color-scheme: dark){.event-flyout__row svg[data-v-d6a61e37]:not(.is-light-mode .event-flyout__row svg){color:var(--qalendar-dark-mode-text-hint)}}[style*="color-scheme: dark"] .event-flyout__row svg[data-v-d6a61e37]{color:var(--qalendar-dark-mode-text-hint)}.event-flyout__color-icon[data-v-d6a61e37]{--icon-height: 16px;border-radius:50%;height:var(--icon-height);width:var(--icon-height)}.event-flyout .is-title[data-v-d6a61e37]{font-size:var(--qalendar-font-l);align-items:center}.is-not-editable .event-flyout .is-title[data-v-d6a61e37]{max-width:90%}.event-flyout .is-time[data-v-d6a61e37]{font-size:var(--qalendar-font-s);margin-bottom:.75em}.calendar-week__wrapper[data-v-8bb6ad05]{position:relative;padding-left:var(--qalendar-week-padding-left);overflow-y:auto}.calendar-week[data-v-8bb6ad05]{position:relative;width:100%;flex:1 1 auto}.calendar-week__events[data-v-8bb6ad05]{display:flex;width:100%;height:var(--5cb5d057);overflow:hidden}.calendar-week .current-time-line[data-v-8bb6ad05]{position:absolute;left:0;width:100%;height:2px;z-index:1;background-color:red}.calendar-week .current-time-line__circle[data-v-8bb6ad05]{position:relative}.calendar-week .current-time-line__circle[data-v-8bb6ad05]:before{content:"";position:absolute;transform:translate(-45%,-45%);width:10px;height:10px;border-radius:50%;background-color:red}.calendar-week .custom-current-time[data-v-8bb6ad05]{position:absolute;left:0;width:100%;z-index:1}.calendar-month__event[data-v-4766dfc7]{--event-inline-padding: 4px;display:flex;align-items:center;overflow:hidden;border-radius:4px;font-size:var(--qalendar-font-2xs);width:calc(100% - calc(var(--event-inline-padding) * 2));margin-bottom:4px;padding:.25rem var(--event-inline-padding);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.calendar-month__event .calendar-month__event-time[data-v-4766dfc7]{margin-right:6px}.calendar-month__event .calendar-month__event-time[data-v-4766dfc7],.calendar-month__event .calendar-month__event-title[data-v-4766dfc7],.calendar-month__event .calendar-month__event-color[data-v-4766dfc7]{flex-shrink:0}.qalendar-is-small .calendar-month__event .calendar-month__event-time[data-v-4766dfc7],.qalendar-is-small .calendar-month__event .calendar-month__event-title[data-v-4766dfc7]{display:none}.qalendar-is-small .calendar-month__event[data-v-4766dfc7]{background-color:var(--63a9bc8a);width:4px;height:4px;border-radius:50%;padding:1px;margin-right:1px}.calendar-month__event.is-draggable[data-v-4766dfc7]{cursor:grab}.calendar-month__event[data-v-4766dfc7]:active{z-index:100}.calendar-month__event[data-v-4766dfc7]:not(.is-draggable):active{cursor:not-allowed}@media (hover: hover){.calendar-month__event[data-v-4766dfc7]:hover{background-color:var(--qalendar-light-gray)}}@media (hover: hover) and (hover: hover){.calendar-month__event[data-v-4766dfc7]:hover:hover{background-color:var(--qalendar-option-hover)}}.calendar-month__event .calendar-month__event-color[data-v-4766dfc7]{background-color:var(--63a9bc8a);width:6px;height:6px;border-radius:50%;margin-right:4px}.calendar-month__weekday[data-v-034f06d8]{height:100%;flex:1;display:flex;flex-flow:column;align-items:center;border-right:var(--qalendar-border-gray-thin);border-bottom:var(--qalendar-border-gray-thin);overflow:hidden;transition:background-color .2s ease-in-out}@media (prefers-color-scheme: dark){.calendar-month__weekday[data-v-034f06d8]:not(.is-light-mode .calendar-month__weekday){border-color:var(--qalendar-dark-mode-line-color)}}[style*="color-scheme: dark"] .calendar-month__weekday[data-v-034f06d8]{border-color:var(--qalendar-dark-mode-line-color)}.calendar-month__weekday.is-droppable[data-v-034f06d8]{background-color:var(--qalendar-light-gray)}.calendar-month__weekday[data-v-034f06d8]:last-child{border-right:0}.qalendar-is-small .calendar-month__weekday.is-selected[data-v-034f06d8]{box-shadow:inset 0 0 0 3px var(--qalendar-theme-color);border-radius:5px}.qalendar-is-small .calendar-month__weekday[data-v-034f06d8]{height:45px;width:45px;display:flex;flex-flow:column;justify-content:space-around}.calendar-month__weekday .calendar-month__day-date[data-v-034f06d8]{font-size:var(--qalendar-font-xs);color:var(--qalendar-gray-quite-dark)}.calendar-month__weekday .calendar-month__day-date[data-v-034f06d8]:first-child{margin-top:6px}.calendar-month__weekday .calendar-month__weekday-more[data-v-034f06d8]{font-size:var(--qalendar-font-2xs);width:100%;padding-left:4px;color:var(--qalendar-gray-quite-dark);cursor:pointer}.calendar-month__weekday .calendar-month_events[data-v-034f06d8]{width:100%}.qalendar-is-small .calendar-month__weekday .calendar-month_events[data-v-034f06d8]{display:flex;flex-flow:row;justify-content:center}.qalendar-is-small .calendar-month__weekday .calendar-month_events .calendar-month__weekday-more[data-v-034f06d8]{display:none}.calendar-month__weekday.is-today .calendar-month__day-date[data-v-034f06d8]{background-color:var(--qalendar-theme-color);color:#fff;border-radius:50%;padding:4px 6px}.qalendar-is-small .calendar-month__weekday.is-today .calendar-month__day-date[data-v-034f06d8]{padding:2px 4px}.space-reserver[data-v-034f06d8]{height:100%;flex:1;display:flex;flex-flow:column;align-items:center;border-right:var(--qalendar-border-gray-thin);border-bottom:var(--qalendar-border-gray-thin);border-right-color:transparent}@media (prefers-color-scheme: dark){.space-reserver[data-v-034f06d8]:not(.is-light-mode .space-reserver){border-color:var(--qalendar-dark-mode-line-color)}}[style*="color-scheme: dark"] .space-reserver[data-v-034f06d8]{border-color:var(--qalendar-dark-mode-line-color)}.space-reserver+.calendar-month__weekday[data-v-034f06d8]:not(.trailing-or-leading){border-left:var(--qalendar-border-gray-thin)}.calendar-month__day-name[data-v-09c7c5db]{display:block;font-size:12px;font-weight:500;color:var(--qalendar-gray-quite-dark);margin-bottom:var(--qalendar-spacing-half)}.agenda__event[data-v-698b431e]{background-color:var(--691f2791);color:var(--fa1649c2);display:flex;flex-flow:column;justify-content:flex-start;border-radius:4px;font-size:var(--qalendar-font-2xs);margin-bottom:4px;padding:var(--qalendar-spacing);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.agenda__wrapper[data-v-b60cbce5]{display:flex;flex-flow:row;padding:10px 5px 0}.agenda__wrapper .agenda__header[data-v-b60cbce5]{padding-right:10px}.agenda__wrapper .agenda__header .agenda__header-day-name[data-v-b60cbce5]{text-align:center;color:var(--qalendar-theme-color);font-size:var(--qalendar-font-xs);font-weight:700}.agenda__wrapper .agenda__header .agenda__header-date[data-v-b60cbce5]{height:-moz-fit-content;height:fit-content;display:flex;justify-content:center;align-items:center;padding:5px;border-radius:4px;background-color:var(--qalendar-theme-color);color:#fff;font-weight:600;font-size:var(--qalendar-font-m)}.agenda__wrapper .agenda__content[data-v-b60cbce5]{display:flex;flex-flow:column;width:100%;height:auto}.agenda__wrapper .agenda__content .is-empty[data-v-b60cbce5]{min-height:70px;display:flex;justify-content:center;align-items:center}.calendar-month[data-v-206c177e]{position:relative;display:flex;flex-flow:column;width:100%;height:100%;overflow-y:auto}.qalendar-is-small .calendar-month[data-v-206c177e]{height:initial}.calendar-month .calendar-month__week-day-names[data-v-206c177e]{display:flex;justify-content:space-between}.calendar-month .calendar-month__week-day-names .calendar-month__week-day-name[data-v-206c177e]{flex:1;text-align:center}.calendar-month .calendar-month__weeks[data-v-206c177e]{height:100%;flex-grow:1;display:flex;flex-flow:column;justify-content:space-between}.calendar-month .calendar-month__week[data-v-206c177e]{display:flex;flex:1}.calendar-month .calendar-month__week[data-v-206c177e]:first-child{border-top:var(--qalendar-border-gray-thin)}@media (prefers-color-scheme: dark){.calendar-month .calendar-month__week[data-v-206c177e]:first-child:not(.is-light-mode .calendar-month .calendar-month__week:first-child){border-color:var(--qalendar-dark-mode-line-color)}}[style*="color-scheme: dark"] .calendar-month .calendar-month__week[data-v-206c177e]:first-child{border-color:var(--qalendar-dark-mode-line-color)}.calendar-month .calendar-month__day_events[data-v-206c177e]{height:100%;display:none}.qalendar-is-small .calendar-month .calendar-month__day_events[data-v-206c177e]{display:block}.ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;height:15px;bottom:0;position:absolute}.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;width:15px;right:0;position:absolute}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y,.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y{opacity:.6}.ps .ps__rail-x:hover,.ps .ps__rail-y:hover,.ps .ps__rail-x:focus,.ps .ps__rail-y:focus,.ps .ps__rail-x.ps--clicking,.ps .ps__rail-y.ps--clicking{background-color:#eee;opacity:.9}.ps__thumb-x{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px;position:absolute}.ps__thumb-y{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px;position:absolute}.ps__rail-x:hover>.ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x.ps--clicking .ps__thumb-x{background-color:#999;height:11px}.ps__rail-y:hover>.ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y.ps--clicking .ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style: none){.ps{overflow:auto!important}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.ps{overflow:auto!important}}.calendar-root,.date-picker-root{--qalendar-blue: rgb(38 132 255);--qalendar-blue-transparent: rgba(38 132 255 / 90%);--qalendar-gray-quite-dark: rgb(110 110 110);--qalendar-gray: rgb(180 180 180);--qalendar-green: rgb(51 182 121);--qalendar-theme-color: var(--qalendar-blue);--qalendar-light-gray: rgba(240 236 236 / 76%);--qalendar-option-hover: var(--qalendar-light-gray);--qalendar-dark-mode-elevated-surface: #383838;--qalendar-dark-mode-lightly-elevated-surface: #2e2e2e;--qalendar-dark-mode-text-primary: rgba(255 255 255 1);--qalendar-dark-mode-text-secondary: rgba(255 255 255 .7);--qalendar-dark-mode-text-hint: rgba(255 255 255 .5);--qalendar-dark-mode-line-color: var(--qalendar-gray);--qalendar-border-gray-thin: 1px solid rgb(224 224 224);--qalendar-border-dashed-gray-thin: 1px dashed rgb(224 224 224);--qalendar-border-blue-thin: 1px solid var(--qalendar-theme-color);--qalendar-border-radius: 8px;--qalendar-spacing: 10px;--qalendar-spacing-half: 5px;--qalendar-spacing-double: 20px;--qalendar-box-shadow: 0 4px 4px rgba(0 0 0 / 6%), 0 1px 4px rgba(0 0 0 / 18%);--qalendar-text-transition: color .2s ease;--qalendar-week-padding-left: 56px;--qalendar-font-3xs: .625rem;--qalendar-font-2xs: .688rem;--qalendar-font-xs: .75rem;--qalendar-font-s: .875rem;--qalendar-font-m: 1rem;--qalendar-font-l: 1.25rem;--qalendar-font-xl: 1.5rem}@media (prefers-color-scheme: dark){.calendar-root:not(.is-light-mode .calendar-root,.is-light-mode .date-picker-root),.date-picker-root:not(.is-light-mode .calendar-root,.is-light-mode .date-picker-root){--qalendar-gray-quite-dark: rgb(221, 221, 221);--qalendar-option-hover: #575757}}[style*="color-scheme: dark"] .calendar-root,[style*="color-scheme: dark"] .date-picker-root{--qalendar-gray-quite-dark: rgb(221, 221, 221);--qalendar-option-hover: #575757}@media (prefers-color-scheme: dark){.calendar-root:not(.is-light-mode .calendar-root,.is-light-mode .date-picker-root),.date-picker-root:not(.is-light-mode .calendar-root,.is-light-mode .date-picker-root){--qalendar-gray-quite-dark: rgb(221, 221, 221)}}[style*="color-scheme: dark"] .calendar-root,[style*="color-scheme: dark"] .date-picker-root{--qalendar-gray-quite-dark: rgb(221, 221, 221)}@media (min-width: 62rem){.calendar-root{--qalendar-spacing: 20px;--qalendar-spacing-half: 10px;--qalendar-spacing-double: 40px}}.calendar-root-wrapper{width:100%;max-width:100vw;height:100%;display:flex}.calendar-root-wrapper .calendar-root{flex:1;border:var(--qalendar-border-gray-thin);border-radius:var(--qalendar-border-radius);font-family:var(--51d82805);position:relative;width:100%;margin:0 auto;display:flex;flex-flow:column}@media (prefers-color-scheme: dark){.calendar-root-wrapper .calendar-root:not(.is-light-mode .calendar-root-wrapper .calendar-root){background:#121212;color:#fff;border-color:transparent}}[style*="color-scheme: dark"] .calendar-root-wrapper .calendar-root{background:#121212;color:#fff;border-color:transparent}.calendar-root-wrapper .calendar-root .top-bar-loader{position:absolute;top:1px;left:2px;width:calc(100% - 4px);height:3px;background:rgba(241,241,241,.2);border-radius:16px;overflow:hidden}.calendar-root-wrapper .calendar-root .top-bar-loader:before{content:"";height:4px;width:calc(100% - 4px);position:absolute;top:1px;left:2px;background:rgb(38,132,255);background:linear-gradient(90deg,rgb(38,132,255) 0%,rgba(38,132,255,.5088410364) 48%,rgb(38,132,255) 100%);animation:load 1.8s infinite;border-radius:16px}@media (prefers-color-scheme: dark){.calendar-root-wrapper .calendar-root .top-bar-loader:before:not(.is-light-mode .calendar-root-wrapper .calendar-root .top-bar-loader:before){background:rgb(229,224,245)}}[style*="color-scheme: dark"] .calendar-root-wrapper .calendar-root .top-bar-loader:before{background:rgb(229,224,245)}@keyframes load{0%{width:0;left:-100%}50%{left:0;width:100%}to{width:0;left:100%}}.calendar-root-wrapper .calendar-root .loading-enter-active,.calendar-root-wrapper .calendar-root .loading-leave-active{transition:background .5s ease}.calendar-root-wrapper .calendar-root .loading-leave-to,.calendar-root-wrapper .calendar-root .loading-enter-from{background-color:#fff0}.calendar_wrapper{width:100%;height:100%;max-width:85%;max-height:700px} diff --git a/education/public/frontend/assets/Schedule.01fc8e2b.js b/education/public/frontend/assets/Schedule.01fc8e2b.js deleted file mode 100644 index fed03cb2..00000000 --- a/education/public/frontend/assets/Schedule.01fc8e2b.js +++ /dev/null @@ -1,772 +0,0 @@ -var ra=Object.defineProperty,oa=Object.defineProperties;var sa=Object.getOwnPropertyDescriptors;var gn=Object.getOwnPropertySymbols;var la=Object.prototype.hasOwnProperty,ca=Object.prototype.propertyIsEnumerable;var vn=(e,t,n)=>t in e?ra(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_e=(e,t)=>{for(var n in t||(t={}))la.call(t,n)&&vn(e,n,t[n]);if(gn)for(var n of gn(t))ca.call(t,n)&&vn(e,n,t[n]);return e},Ae=(e,t)=>oa(e,sa(t));import{O as N,j as J,w as da,P as ui,Q as ua,T as ma,S as Re,U as L,q as m,B as f,V as S,C as I,v as w,y as _,x as U,F as O,W as se,E as H,X as pn,Y as yn,Z as le,s as V,$ as W,u as B,a0 as Xt,a1 as ha,a2 as mi,a3 as hi,r as fa,z as tt}from"./frappe-ui.49d8c9fc.js";var ga=Object.defineProperty,va=(e,t,n)=>t in e?ga(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F=(e,t,n)=>(va(e,typeof t!="symbol"?t+"":t,n),n),K=(e=>(e.SINGLE_DAY_TIMED="SINGLE_DAY_TIMED",e.SINGLE_DAY_FULL_DAY="SINGLE_DAY_FULL_DAY",e.SINGLE_HYBRID_DAY_TIMED="SINGLE_HYBRID_DAY_TIMED",e.MULTI_DAY_TIMED="MULTI_DAY_TIMED",e.MULTI_DAY_FULL_DAY="MULTI_DAY_FULL_DAY",e))(K||{});const Ge={yellow:"rgb(244, 180, 0)",blue:"rgb(38, 132, 255)",green:"rgb(51, 182, 121)",red:"rgb(255, 84, 86)",pink:"rgb(239, 139, 239)",purple:"rgb(157, 114, 245)",turquoise:"rgb(64, 190, 190)",brown:"rgb(169, 99, 30)"},xe=/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/,gt=/^\d{4}-\d{2}-\d{2}$/;var q=(e=>(e.REGULAR="regular",e.SHORTENED="shortened",e.FLEXIBLE="flexible",e))(q||{});class we{static getBrowserNavigatorLocale(){return typeof navigator!="object"?"en-US":navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language}static hasSlotContent(t){return t?t().some(n=>n.type===ua||Array.isArray(n.children)&&!n.children.length?!1:n.type!==ma||typeof n.children=="string"&&n.children.trim()!==""):!1}static getEventType(t,n){const i=xe.test(t.time.start)&&xe.test(t.time.end),a=gt.test(t.time.start)&>.test(t.time.end);if(i)return this.getTimedEventType(t,n);if(a)return this.getFullDayEventType(t,n);throw new Error("Event has invalid type")}static getTimedEventType(t,n){if(n.dateStringsHaveEqualDates(t.time.start,t.time.end))return K.SINGLE_DAY_TIMED;if(n.dayMode===q.FLEXIBLE){const i=n.setHourInDateTimeString(n.addDaysToDateTimeString(1,n.dateStringFrom(t.time.start)),ae.getHourFromTimePoints(n.DAY_END));if(t.time.end(e[e.MIDNIGHT=0]="MIDNIGHT",e[e.ONE_AM=100]="ONE_AM",e[e.TWO_AM=200]="TWO_AM",e[e.THREE_AM=300]="THREE_AM",e[e.FOUR_AM=400]="FOUR_AM",e[e.FIVE_AM=500]="FIVE_AM",e[e.SIX_AM=600]="SIX_AM",e[e.SEVEN_AM=700]="SEVEN_AM",e[e.EIGHT_AM=800]="EIGHT_AM",e[e.NINE_AM=900]="NINE_AM",e[e.TEN_AM=1e3]="TEN_AM",e[e.ELEVEN_AM=1100]="ELEVEN_AM",e[e.TWELVE_PM=1200]="TWELVE_PM",e[e.ONE_PM=1300]="ONE_PM",e[e.TWO_PM=1400]="TWO_PM",e[e.THREE_PM=1500]="THREE_PM",e[e.FOUR_PM=1600]="FOUR_PM",e[e.FIVE_PM=1700]="FIVE_PM",e[e.SIX_PM=1800]="SIX_PM",e[e.SEVEN_PM=1900]="SEVEN_PM",e[e.EIGHT_PM=2e3]="EIGHT_PM",e[e.NINE_PM=2100]="NINE_PM",e[e.TEN_PM=2200]="TEN_PM",e[e.ELEVEN_PM=2300]="ELEVEN_PM",e[e.TWELVE_AM=2400]="TWELVE_AM",e))(Pt||{});class We extends Date{get fullYear(){return this.getFullYear()}get month(){return this.getMonth()}get date(){return this.getDate()}}var Ot=(e=>(e.SUNDAY="sunday",e.MONDAY="monday",e))(Ot||{});class ae{constructor(t="monday",n=null,i={start:0,end:2400}){F(this,"FIRST_DAY_OF_WEEK"),F(this,"CALENDAR_LOCALE"),F(this,"ALL_HOURS",[0,100,200,300,400,500,600,700,800,900,1e3,1100,1200,1300,1400,1500,1600,1700,1800,1900,2e3,2100,2200,2300]),F(this,"DAY_START"),F(this,"DAY_END"),F(this,"HOURS_PER_DAY",24),F(this,"MS_PER_DAY"),this.FIRST_DAY_OF_WEEK=t,this.CALENDAR_LOCALE=n||we.getBrowserNavigatorLocale(),this.DAY_START=i.start,this.DAY_END=i.end,this.HOURS_PER_DAY=(()=>{const a=ae.getHourFromTimePoints(this.DAY_END),s=ae.getHourFromTimePoints(this.DAY_START);return a>s?a-s:this.HOURS_PER_DAY-s+a})(),this.MS_PER_DAY=864e5}get dayMode(){return this.DAY_START===0&&this.DAY_END===2400?q.REGULAR:this.DAY_START>=this.DAY_END?q.FLEXIBLE:q.SHORTENED}getDatesBetweenTwoDates(t,n){for(var i=[],a=new Date(t);a<=n;a.setDate(a.getDate()+1))i.push(new Date(a.getFullYear(),a.getMonth(),a.getDate()));return i}getCalendarWeekDateObjects(t){let n;this.FIRST_DAY_OF_WEEK==="sunday"?n=t.getDay():n=t.getDay()===0?6:t.getDay()-1;const i=t.getDate()-n,a=new Date(t.getFullYear(),t.getMonth(),i);return this.getDatesBetweenTwoDates(a,new Date(a.getFullYear(),a.getMonth(),a.getDate()+6))}getCalendarMonthSplitInWeeks(t,n){const i=[],a=new Date(t,n,1),s=new Date(a.getFullYear(),a.getMonth(),1),r=this.getCalendarWeekDateObjects(s);i.push(r);let o=!0,l=r[0];const c=a.getMonth();for(;o;){const u=new Date(l.getFullYear(),l.getMonth(),l.getDate()+7);u.getMonth()===c?(i.push(this.getCalendarWeekDateObjects(u)),l=u):o=!1}return i}getCalendarYearMonths(t){const n=[];let i=0;for(;i<=11;)n.push(new Date(t,i,1)),i++;return n}getHourAndMinutesFromTimePoints(t){const n=t.toString();let i="0",a="0";return n.length===4?(i=n[0]+n[1],a=n[2]+n[3]):n.length===3&&(i=n[0],a=n[1]+n[2]),{hour:+i,minutes:+a}}getHourLocaleStringFromHourDigits(t){const{hour:n,minutes:i}=this.getHourAndMinutesFromTimePoints(t),a=new Date(2100,0,1,+n,+i,0).toLocaleTimeString(this.CALENDAR_LOCALE,{hour:"2-digit"});return a[0]==="0"?a.substring(1):a}getLocalizedNameOfWeekday(t,n="short"){return t.toLocaleDateString(this.CALENDAR_LOCALE,{weekday:n})}getLocalizedNameOfMonth(t,n="short"){return t.toLocaleDateString(this.CALENDAR_LOCALE,{month:n})}getLocalizedDateString(t){return t.toLocaleDateString(this.CALENDAR_LOCALE)}getDateTimeStringFromDate(t,n){const i=t.getFullYear(),a=t.getMonth()+1,s=t.getDate(),r=`${i}-${a>=10?a:"0"+a}-${s>=10?s:"0"+s}`;if(!n){const o=t.getHours(),l=t.getMinutes();return`${r} ${o>=10?o:"0"+o}:${l>=10?l:"0"+l}`}return`${r} ${n==="start"?"00:00":"23:59"}`}getLocalizedTime(t){const{year:n,month:i,date:a,hour:s,minutes:r}=this.getAllVariablesFromDateTimeString(t);return new Date(n,i,a,s,r).toLocaleTimeString(this.CALENDAR_LOCALE,{hour:"numeric",minute:"numeric"})}getLocalizedHour(t){return t.toLocaleTimeString(this.CALENDAR_LOCALE,{hour:"2-digit"})}getLocalizedTimeRange(t,n){return`${this.getLocalizedTime(t)} - ${this.getLocalizedTime(n)}`}getAllVariablesFromDateTimeString(t){return{year:+t.substring(0,4),month:+t.substring(5,7)-1,date:+t.substring(8,10),hour:this.hourFrom(t),minutes:this.minutesFrom(t)}}dateIsToday(t){const{fullYear:n,month:i,date:a}=new We,{fullYear:s,month:r,date:o}=new We(t);return n===s&&i===r&&a===o}dateIsInWeek(t,n){const{date:i,month:a,fullYear:s}=new We(t);for(const r of n){const o=i===r.getDate(),l=a===r.getMonth(),c=s===r.getFullYear();if(o&&l&&c)return!0}return!1}getDateStringFromDate(t){const n=t.getFullYear(),i=t.getMonth()+1,a=t.getDate();return`${n}-${i>=10?i:"0"+i}-${a>=10?a:"0"+a}`}addMinutesToDateTimeString(t,n){const{year:i,month:a,date:s,hour:r,minutes:o}=this.getAllVariablesFromDateTimeString(n),l=new Date(i,a,s,r,o),c=new Date(l.getTime()+t*6e4);return this.getDateTimeStringFromDate(c)}addDaysToDateTimeString(t,n){return this.addMinutesToDateTimeString(t*1440,n)}dateStringsHaveEqualDates(t,n){const{year:i,month:a,date:s}=this.getAllVariablesFromDateTimeString(t),{year:r,month:o,date:l}=this.getAllVariablesFromDateTimeString(n);return i===r&&a===o&&s===l}setDateToEndOfDay(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),23,59,59,999)}turnMinutesIntoPercentageOfHour(t){const n=1.6666666666666667*t;return n<10?"0"+n:n.toString()}getPercentageOfDayFromDateTimeString(t,n,i){const a=this.hourFrom(t)*100,s=+t.substring(14,16),r=+this.turnMinutesIntoPercentageOfHour(+s);if(i>n){const u=i-n;return(a+r-n)/u*100}const o=Pt.TWELVE_AM-n,l=o+i,c=a+r;return(c>=n?c-n:o+c)/l*100}getTimeFromClick(t,n){if(n<=0)throw new Error("weekHeight cannot be a negative number");if(t<0)throw new Error("clickOffsetY cannot be a negative number");const i=this.DAY_START/100,a=n/this.HOURS_PER_DAY,s=Math.floor(t%a/(a/60));if(this.DAY_END<=this.DAY_START){const o=this.DAY_END/100*a,l=n-o;if(t>l){const c=Math.floor((t-l)/a);return`${this.doubleDigit(c)}:${this.doubleDigit(s)}`}}const r=Math.floor(t/a)+i;return`${this.doubleDigit(r)}:${this.doubleDigit(s)}`}setSegmentOfDateTimeString(t,n){if(n.hour<0||n.hour>23)throw new Error("Invalid hour");const i=this.doubleDigit(n.hour);return t=t.replace(/\d{2}:/,i+":"),t}isTrailingOrLeadingDate(t,n){const{month:i}=new We(t);return n!==i}static getTimePointsFromHour(t){if(t<0||t>24||t%1!==0)throw new Error("Invalid day boundary");return t===0?t:t*100}static getHourFromTimePoints(t){if(t<0||t>2400||t%100!==0)throw new Error("Invalid time points");return t===0?t:t/100}getTimelineHours(){return this.dayMode!==q.FLEXIBLE?this.ALL_HOURS.filter(t=>t>=this.DAY_START&&tt>=this.DAY_START),...this.ALL_HOURS.filter(t=>t60)throw new Error("Invalid number. This is not a valid hour or minute");return t<10?"0"+t:String(t)}}function bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,i)}return n}function p(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,i=new Array(t);n-1;a--){var s=n[a],r=(s.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(r)>-1&&(i=s)}return C.head.insertBefore(t,i),e}}var Ha="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function qe(){for(var e=12,t="";e-- >0;)t+=Ha[Math.random()*62|0];return t}function Fe(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Qt(e){return e.classList?Fe(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function Ti(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function ja(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(Ti(e[n]),'" ')},"").trim()}function Et(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Jt(e){return e.size!==ne.size||e.x!==ne.x||e.y!==ne.y||e.rotate!==ne.rotate||e.flipX||e.flipY}function $a(e){var t=e.transform,n=e.containerWidth,i=e.iconWidth,a={transform:"translate(".concat(n/2," 256)")},s="translate(".concat(t.x*32,", ").concat(t.y*32,") "),r="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),o="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(s," ").concat(r," ").concat(o)},c={transform:"translate(".concat(i/2*-1," -256)")};return{outer:a,inner:l,path:c}}function Ba(e){var t=e.transform,n=e.width,i=n===void 0?Lt:n,a=e.height,s=a===void 0?Lt:a,r=e.startCentered,o=r===void 0?!1:r,l="";return o&&yi?l+="translate(".concat(t.x/ge-i/2,"em, ").concat(t.y/ge-s/2,"em) "):o?l+="translate(calc(-50% + ".concat(t.x/ge,"em), calc(-50% + ").concat(t.y/ge,"em)) "):l+="translate(".concat(t.x/ge,"em, ").concat(t.y/ge,"em) "),l+="scale(".concat(t.size/ge*(t.flipX?-1:1),", ").concat(t.size/ge*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var Xa=`:root, :host { - --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; - --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular"; - --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light"; - --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin"; - --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; - --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; - --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; - --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; -} - -svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { - overflow: visible; - box-sizing: content-box; -} - -.svg-inline--fa { - display: var(--fa-display, inline-block); - height: 1em; - overflow: visible; - vertical-align: -0.125em; -} -.svg-inline--fa.fa-2xs { - vertical-align: 0.1em; -} -.svg-inline--fa.fa-xs { - vertical-align: 0em; -} -.svg-inline--fa.fa-sm { - vertical-align: -0.0714285705em; -} -.svg-inline--fa.fa-lg { - vertical-align: -0.2em; -} -.svg-inline--fa.fa-xl { - vertical-align: -0.25em; -} -.svg-inline--fa.fa-2xl { - vertical-align: -0.3125em; -} -.svg-inline--fa.fa-pull-left { - margin-right: var(--fa-pull-margin, 0.3em); - width: auto; -} -.svg-inline--fa.fa-pull-right { - margin-left: var(--fa-pull-margin, 0.3em); - width: auto; -} -.svg-inline--fa.fa-li { - width: var(--fa-li-width, 2em); - top: 0.25em; -} -.svg-inline--fa.fa-fw { - width: var(--fa-fw-width, 1.25em); -} - -.fa-layers svg.svg-inline--fa { - bottom: 0; - left: 0; - margin: auto; - position: absolute; - right: 0; - top: 0; -} - -.fa-layers-counter, .fa-layers-text { - display: inline-block; - position: absolute; - text-align: center; -} - -.fa-layers { - display: inline-block; - height: 1em; - position: relative; - text-align: center; - vertical-align: -0.125em; - width: 1em; -} -.fa-layers svg.svg-inline--fa { - -webkit-transform-origin: center center; - transform-origin: center center; -} - -.fa-layers-text { - left: 50%; - top: 50%; - -webkit-transform: translate(-50%, -50%); - transform: translate(-50%, -50%); - -webkit-transform-origin: center center; - transform-origin: center center; -} - -.fa-layers-counter { - background-color: var(--fa-counter-background-color, #ff253a); - border-radius: var(--fa-counter-border-radius, 1em); - box-sizing: border-box; - color: var(--fa-inverse, #fff); - line-height: var(--fa-counter-line-height, 1); - max-width: var(--fa-counter-max-width, 5em); - min-width: var(--fa-counter-min-width, 1.5em); - overflow: hidden; - padding: var(--fa-counter-padding, 0.25em 0.5em); - right: var(--fa-right, 0); - text-overflow: ellipsis; - top: var(--fa-top, 0); - -webkit-transform: scale(var(--fa-counter-scale, 0.25)); - transform: scale(var(--fa-counter-scale, 0.25)); - -webkit-transform-origin: top right; - transform-origin: top right; -} - -.fa-layers-bottom-right { - bottom: var(--fa-bottom, 0); - right: var(--fa-right, 0); - top: auto; - -webkit-transform: scale(var(--fa-layers-scale, 0.25)); - transform: scale(var(--fa-layers-scale, 0.25)); - -webkit-transform-origin: bottom right; - transform-origin: bottom right; -} - -.fa-layers-bottom-left { - bottom: var(--fa-bottom, 0); - left: var(--fa-left, 0); - right: auto; - top: auto; - -webkit-transform: scale(var(--fa-layers-scale, 0.25)); - transform: scale(var(--fa-layers-scale, 0.25)); - -webkit-transform-origin: bottom left; - transform-origin: bottom left; -} - -.fa-layers-top-right { - top: var(--fa-top, 0); - right: var(--fa-right, 0); - -webkit-transform: scale(var(--fa-layers-scale, 0.25)); - transform: scale(var(--fa-layers-scale, 0.25)); - -webkit-transform-origin: top right; - transform-origin: top right; -} - -.fa-layers-top-left { - left: var(--fa-left, 0); - right: auto; - top: var(--fa-top, 0); - -webkit-transform: scale(var(--fa-layers-scale, 0.25)); - transform: scale(var(--fa-layers-scale, 0.25)); - -webkit-transform-origin: top left; - transform-origin: top left; -} - -.fa-1x { - font-size: 1em; -} - -.fa-2x { - font-size: 2em; -} - -.fa-3x { - font-size: 3em; -} - -.fa-4x { - font-size: 4em; -} - -.fa-5x { - font-size: 5em; -} - -.fa-6x { - font-size: 6em; -} - -.fa-7x { - font-size: 7em; -} - -.fa-8x { - font-size: 8em; -} - -.fa-9x { - font-size: 9em; -} - -.fa-10x { - font-size: 10em; -} - -.fa-2xs { - font-size: 0.625em; - line-height: 0.1em; - vertical-align: 0.225em; -} - -.fa-xs { - font-size: 0.75em; - line-height: 0.0833333337em; - vertical-align: 0.125em; -} - -.fa-sm { - font-size: 0.875em; - line-height: 0.0714285718em; - vertical-align: 0.0535714295em; -} - -.fa-lg { - font-size: 1.25em; - line-height: 0.05em; - vertical-align: -0.075em; -} - -.fa-xl { - font-size: 1.5em; - line-height: 0.0416666682em; - vertical-align: -0.125em; -} - -.fa-2xl { - font-size: 2em; - line-height: 0.03125em; - vertical-align: -0.1875em; -} - -.fa-fw { - text-align: center; - width: 1.25em; -} - -.fa-ul { - list-style-type: none; - margin-left: var(--fa-li-margin, 2.5em); - padding-left: 0; -} -.fa-ul > li { - position: relative; -} - -.fa-li { - left: calc(var(--fa-li-width, 2em) * -1); - position: absolute; - text-align: center; - width: var(--fa-li-width, 2em); - line-height: inherit; -} - -.fa-border { - border-color: var(--fa-border-color, #eee); - border-radius: var(--fa-border-radius, 0.1em); - border-style: var(--fa-border-style, solid); - border-width: var(--fa-border-width, 0.08em); - padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); -} - -.fa-pull-left { - float: left; - margin-right: var(--fa-pull-margin, 0.3em); -} - -.fa-pull-right { - float: right; - margin-left: var(--fa-pull-margin, 0.3em); -} - -.fa-beat { - -webkit-animation-name: fa-beat; - animation-name: fa-beat; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); - animation-timing-function: var(--fa-animation-timing, ease-in-out); -} - -.fa-bounce { - -webkit-animation-name: fa-bounce; - animation-name: fa-bounce; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); - animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); -} - -.fa-fade { - -webkit-animation-name: fa-fade; - animation-name: fa-fade; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); - animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); -} - -.fa-beat-fade { - -webkit-animation-name: fa-beat-fade; - animation-name: fa-beat-fade; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); - animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); -} - -.fa-flip { - -webkit-animation-name: fa-flip; - animation-name: fa-flip; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); - animation-timing-function: var(--fa-animation-timing, ease-in-out); -} - -.fa-shake { - -webkit-animation-name: fa-shake; - animation-name: fa-shake; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, linear); - animation-timing-function: var(--fa-animation-timing, linear); -} - -.fa-spin { - -webkit-animation-name: fa-spin; - animation-name: fa-spin; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 2s); - animation-duration: var(--fa-animation-duration, 2s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, linear); - animation-timing-function: var(--fa-animation-timing, linear); -} - -.fa-spin-reverse { - --fa-animation-direction: reverse; -} - -.fa-pulse, -.fa-spin-pulse { - -webkit-animation-name: fa-spin; - animation-name: fa-spin; - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, steps(8)); - animation-timing-function: var(--fa-animation-timing, steps(8)); -} - -@media (prefers-reduced-motion: reduce) { - .fa-beat, -.fa-bounce, -.fa-fade, -.fa-beat-fade, -.fa-flip, -.fa-pulse, -.fa-shake, -.fa-spin, -.fa-spin-pulse { - -webkit-animation-delay: -1ms; - animation-delay: -1ms; - -webkit-animation-duration: 1ms; - animation-duration: 1ms; - -webkit-animation-iteration-count: 1; - animation-iteration-count: 1; - -webkit-transition-delay: 0s; - transition-delay: 0s; - -webkit-transition-duration: 0s; - transition-duration: 0s; - } -} -@-webkit-keyframes fa-beat { - 0%, 90% { - -webkit-transform: scale(1); - transform: scale(1); - } - 45% { - -webkit-transform: scale(var(--fa-beat-scale, 1.25)); - transform: scale(var(--fa-beat-scale, 1.25)); - } -} -@keyframes fa-beat { - 0%, 90% { - -webkit-transform: scale(1); - transform: scale(1); - } - 45% { - -webkit-transform: scale(var(--fa-beat-scale, 1.25)); - transform: scale(var(--fa-beat-scale, 1.25)); - } -} -@-webkit-keyframes fa-bounce { - 0% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); - } - 10% { - -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); - transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); - } - 30% { - -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); - transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); - } - 50% { - -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); - transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); - } - 57% { - -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); - transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); - } - 64% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); - } - 100% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); - } -} -@keyframes fa-bounce { - 0% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); - } - 10% { - -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); - transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); - } - 30% { - -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); - transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); - } - 50% { - -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); - transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); - } - 57% { - -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); - transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); - } - 64% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); - } - 100% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); - } -} -@-webkit-keyframes fa-fade { - 50% { - opacity: var(--fa-fade-opacity, 0.4); - } -} -@keyframes fa-fade { - 50% { - opacity: var(--fa-fade-opacity, 0.4); - } -} -@-webkit-keyframes fa-beat-fade { - 0%, 100% { - opacity: var(--fa-beat-fade-opacity, 0.4); - -webkit-transform: scale(1); - transform: scale(1); - } - 50% { - opacity: 1; - -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); - transform: scale(var(--fa-beat-fade-scale, 1.125)); - } -} -@keyframes fa-beat-fade { - 0%, 100% { - opacity: var(--fa-beat-fade-opacity, 0.4); - -webkit-transform: scale(1); - transform: scale(1); - } - 50% { - opacity: 1; - -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); - transform: scale(var(--fa-beat-fade-scale, 1.125)); - } -} -@-webkit-keyframes fa-flip { - 50% { - -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); - transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); - } -} -@keyframes fa-flip { - 50% { - -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); - transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); - } -} -@-webkit-keyframes fa-shake { - 0% { - -webkit-transform: rotate(-15deg); - transform: rotate(-15deg); - } - 4% { - -webkit-transform: rotate(15deg); - transform: rotate(15deg); - } - 8%, 24% { - -webkit-transform: rotate(-18deg); - transform: rotate(-18deg); - } - 12%, 28% { - -webkit-transform: rotate(18deg); - transform: rotate(18deg); - } - 16% { - -webkit-transform: rotate(-22deg); - transform: rotate(-22deg); - } - 20% { - -webkit-transform: rotate(22deg); - transform: rotate(22deg); - } - 32% { - -webkit-transform: rotate(-12deg); - transform: rotate(-12deg); - } - 36% { - -webkit-transform: rotate(12deg); - transform: rotate(12deg); - } - 40%, 100% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } -} -@keyframes fa-shake { - 0% { - -webkit-transform: rotate(-15deg); - transform: rotate(-15deg); - } - 4% { - -webkit-transform: rotate(15deg); - transform: rotate(15deg); - } - 8%, 24% { - -webkit-transform: rotate(-18deg); - transform: rotate(-18deg); - } - 12%, 28% { - -webkit-transform: rotate(18deg); - transform: rotate(18deg); - } - 16% { - -webkit-transform: rotate(-22deg); - transform: rotate(-22deg); - } - 20% { - -webkit-transform: rotate(22deg); - transform: rotate(22deg); - } - 32% { - -webkit-transform: rotate(-12deg); - transform: rotate(-12deg); - } - 36% { - -webkit-transform: rotate(12deg); - transform: rotate(12deg); - } - 40%, 100% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } -} -@-webkit-keyframes fa-spin { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} -@keyframes fa-spin { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} -.fa-rotate-90 { - -webkit-transform: rotate(90deg); - transform: rotate(90deg); -} - -.fa-rotate-180 { - -webkit-transform: rotate(180deg); - transform: rotate(180deg); -} - -.fa-rotate-270 { - -webkit-transform: rotate(270deg); - transform: rotate(270deg); -} - -.fa-flip-horizontal { - -webkit-transform: scale(-1, 1); - transform: scale(-1, 1); -} - -.fa-flip-vertical { - -webkit-transform: scale(1, -1); - transform: scale(1, -1); -} - -.fa-flip-both, -.fa-flip-horizontal.fa-flip-vertical { - -webkit-transform: scale(-1, -1); - transform: scale(-1, -1); -} - -.fa-rotate-by { - -webkit-transform: rotate(var(--fa-rotate-angle, none)); - transform: rotate(var(--fa-rotate-angle, none)); -} - -.fa-stack { - display: inline-block; - vertical-align: middle; - height: 2em; - position: relative; - width: 2.5em; -} - -.fa-stack-1x, -.fa-stack-2x { - bottom: 0; - left: 0; - margin: auto; - position: absolute; - right: 0; - top: 0; - z-index: var(--fa-stack-z-index, auto); -} - -.svg-inline--fa.fa-stack-1x { - height: 1em; - width: 1.25em; -} -.svg-inline--fa.fa-stack-2x { - height: 2em; - width: 2.5em; -} - -.fa-inverse { - color: var(--fa-inverse, #fff); -} - -.sr-only, -.fa-sr-only { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - white-space: nowrap; - border-width: 0; -} - -.sr-only-focusable:not(:focus), -.fa-sr-only-focusable:not(:focus) { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - white-space: nowrap; - border-width: 0; -} - -.svg-inline--fa .fa-primary { - fill: var(--fa-primary-color, currentColor); - opacity: var(--fa-primary-opacity, 1); -} - -.svg-inline--fa .fa-secondary { - fill: var(--fa-secondary-color, currentColor); - opacity: var(--fa-secondary-opacity, 0.4); -} - -.svg-inline--fa.fa-swap-opacity .fa-primary { - opacity: var(--fa-secondary-opacity, 0.4); -} - -.svg-inline--fa.fa-swap-opacity .fa-secondary { - opacity: var(--fa-primary-opacity, 1); -} - -.svg-inline--fa mask .fa-primary, -.svg-inline--fa mask .fa-secondary { - fill: black; -} - -.fad.fa-inverse, -.fa-duotone.fa-inverse { - color: var(--fa-inverse, #fff); -}`;function _i(){var e=bi,t=Di,n=y.cssPrefix,i=y.replacementClass,a=Xa;if(n!==e||i!==t){var s=new RegExp("\\.".concat(e,"\\-"),"g"),r=new RegExp("\\--".concat(e,"\\-"),"g"),o=new RegExp("\\.".concat(t),"g");a=a.replace(s,".".concat(n,"-")).replace(r,"--".concat(n,"-")).replace(o,".".concat(i))}return a}var _n=!1;function At(){y.autoAddCss&&!_n&&(za(_i()),_n=!0)}var Ua={mixout:function(){return{dom:{css:_i,insertCss:At}}},hooks:function(){return{beforeDOMElementCreation:function(){At()},beforeI2svg:function(){At()}}}},de=ye||{};de[ce]||(de[ce]={});de[ce].styles||(de[ce].styles={});de[ce].hooks||(de[ce].hooks={});de[ce].shims||(de[ce].shims=[]);var ee=de[ce],Ai=[],Va=function e(){C.removeEventListener("DOMContentLoaded",e),pt=1,Ai.map(function(t){return t()})},pt=!1;he&&(pt=(C.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(C.readyState),pt||C.addEventListener("DOMContentLoaded",Va));function qa(e){he&&(pt?setTimeout(e,0):Ai.push(e))}function Je(e){var t=e.tag,n=e.attributes,i=n===void 0?{}:n,a=e.children,s=a===void 0?[]:a;return typeof e=="string"?Ti(e):"<".concat(t," ").concat(ja(i),">").concat(s.map(Je).join(""),"")}function An(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Ga=function(e,t){return function(n,i,a,s){return e.call(t,n,i,a,s)}},Mt=function(e,t,n,i){var a=Object.keys(e),s=a.length,r=i!==void 0?Ga(t,i):t,o,l,c;for(n===void 0?(o=1,c=e[a[0]]):(o=0,c=n);o=55296&&a<=56319&&n=55296&&i<=56319&&n>t+1&&(a=e.charCodeAt(t+1),a>=56320&&a<=57343)?(i-55296)*1024+a-56320+65536:i}function Mn(e){return Object.keys(e).reduce(function(t,n){var i=e[n],a=!!i.icon;return a?t[i.iconName]=i.icon:t[n]=i,t},{})}function Ft(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.skipHooks,a=i===void 0?!1:i,s=Mn(t);typeof ee.hooks.addPack=="function"&&!a?ee.hooks.addPack(e,Mn(t)):ee.styles[e]=p(p({},ee.styles[e]||{}),s),e==="fas"&&Ft("fa",t)}var lt,ct,dt,Ce=ee.styles,Ja=ee.shims,Za=(lt={},Y(lt,M,Object.values(Ue[M])),Y(lt,x,Object.values(Ue[x])),lt),Zt=null,Ci={},Ii={},Pi={},Oi={},xi={},er=(ct={},Y(ct,M,Object.keys(Be[M])),Y(ct,x,Object.keys(Be[x])),ct);function tr(e){return~Ra.indexOf(e)}function nr(e,t){var n=t.split("-"),i=n[0],a=n.slice(1).join("-");return i===e&&a!==""&&!tr(a)?a:null}var Li=function(){var e=function(i){return Mt(Ce,function(a,s,r){return a[r]=Mt(s,i,{}),a},{})};Ci=e(function(i,a,s){if(a[3]&&(i[a[3]]=s),a[2]){var r=a[2].filter(function(o){return typeof o=="number"});r.forEach(function(o){i[o.toString(16)]=s})}return i}),Ii=e(function(i,a,s){if(i[s]=s,a[2]){var r=a[2].filter(function(o){return typeof o=="string"});r.forEach(function(o){i[o]=s})}return i}),xi=e(function(i,a,s){var r=a[2];return i[s]=s,r.forEach(function(o){i[o]=s}),i});var t="far"in Ce||y.autoFetchSvg,n=Mt(Ja,function(i,a){var s=a[0],r=a[1],o=a[2];return r==="far"&&!t&&(r="fas"),typeof s=="string"&&(i.names[s]={prefix:r,iconName:o}),typeof s=="number"&&(i.unicodes[s.toString(16)]={prefix:r,iconName:o}),i},{names:{},unicodes:{}});Pi=n.names,Oi=n.unicodes,Zt=wt(y.styleDefault,{family:y.familyDefault})};Wa(function(e){Zt=wt(e.styleDefault,{family:y.familyDefault})});Li();function en(e,t){return(Ci[e]||{})[t]}function ir(e,t){return(Ii[e]||{})[t]}function Ee(e,t){return(xi[e]||{})[t]}function Ri(e){return Pi[e]||{prefix:null,iconName:null}}function ar(e){var t=Oi[e],n=en("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function be(){return Zt}var tn=function(){return{prefix:null,iconName:null,rest:[]}};function wt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,i=n===void 0?M:n,a=Be[i][e],s=Xe[i][e]||Xe[i][a],r=e in ee.styles?e:null;return s||r||null}var Cn=(dt={},Y(dt,M,Object.keys(Ue[M])),Y(dt,x,Object.keys(Ue[x])),dt);function St(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.skipLookups,a=i===void 0?!1:i,s=(t={},Y(t,M,"".concat(y.cssPrefix,"-").concat(M)),Y(t,x,"".concat(y.cssPrefix,"-").concat(x)),t),r=null,o=M;(e.includes(s[M])||e.some(function(c){return Cn[M].includes(c)}))&&(o=M),(e.includes(s[x])||e.some(function(c){return Cn[x].includes(c)}))&&(o=x);var l=e.reduce(function(c,u){var d=nr(y.cssPrefix,u);if(Ce[u]?(u=Za[o].includes(u)?Ca[o][u]:u,r=u,c.prefix=u):er[o].indexOf(u)>-1?(r=u,c.prefix=wt(u,{family:o})):d?c.iconName=d:u!==y.replacementClass&&u!==s[M]&&u!==s[x]&&c.rest.push(u),!a&&c.prefix&&c.iconName){var v=r==="fa"?Ri(c.iconName):{},D=Ee(c.prefix,c.iconName);v.prefix&&(r=null),c.iconName=v.iconName||D||c.iconName,c.prefix=v.prefix||c.prefix,c.prefix==="far"&&!Ce.far&&Ce.fas&&!y.autoFetchSvg&&(c.prefix="fas")}return c},tn());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&o===x&&(Ce.fass||y.autoFetchSvg)&&(l.prefix="fass",l.iconName=Ee(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||r==="fa")&&(l.prefix=be()||"fas"),l}var rr=function(){function e(){pa(this,e),this.definitions={}}return ya(e,[{key:"add",value:function(){for(var t=this,n=arguments.length,i=new Array(n),a=0;a0&&c.forEach(function(u){typeof u=="string"&&(t[r][u]=l)}),t[r][o]=l}),t}}]),e}(),In=[],Ie={},Oe={},or=Object.keys(Oe);function sr(e,t){var n=t.mixoutsTo;return In=e,Ie={},Object.keys(Oe).forEach(function(i){or.indexOf(i)===-1&&delete Oe[i]}),In.forEach(function(i){var a=i.mixout?i.mixout():{};if(Object.keys(a).forEach(function(r){typeof a[r]=="function"&&(n[r]=a[r]),vt(a[r])==="object"&&Object.keys(a[r]).forEach(function(o){n[r]||(n[r]={}),n[r][o]=a[r][o]})}),i.hooks){var s=i.hooks();Object.keys(s).forEach(function(r){Ie[r]||(Ie[r]=[]),Ie[r].push(s[r])})}i.provides&&i.provides(Oe)}),n}function Yt(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a1?t-1:0),i=1;i0&&arguments[0]!==void 0?arguments[0]:{};return he?(Te("beforeI2svg",e),ue("pseudoElements2svg",e),ue("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.autoReplaceSvgRoot;y.autoReplaceSvg===!1&&(y.autoReplaceSvg=!0),y.observeMutations=!0,qa(function(){ur({autoReplaceSvgRoot:t}),Te("watch",e)})}},dr={icon:function(e){if(e===null)return null;if(vt(e)==="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Ee(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){var t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=wt(e[0]);return{prefix:n,iconName:Ee(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(y.cssPrefix,"-"))>-1||e.match(Ia))){var i=St(e.split(" "),{skipLookups:!0});return{prefix:i.prefix||be(),iconName:Ee(i.prefix,i.iconName)||i.iconName}}if(typeof e=="string"){var a=be();return{prefix:a,iconName:Ee(a,e)||e}}}},G={noAuto:lr,config:y,dom:cr,parse:dr,library:Fi,findIconDefinition:Nt,toHtml:Je},ur=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.autoReplaceSvgRoot,n=t===void 0?C:t;(Object.keys(ee.styles).length>0||y.autoFetchSvg)&&he&&y.autoReplaceSvg&&G.dom.i2svg({node:n})};function Tt(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(n){return Je(n)})}}),Object.defineProperty(e,"node",{get:function(){if(he){var n=C.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function mr(e){var t=e.children,n=e.main,i=e.mask,a=e.attributes,s=e.styles,r=e.transform;if(Jt(r)&&n.found&&!i.found){var o=n.width,l=n.height,c={x:o/l/2,y:.5};a.style=Et(p(p({},s),{},{"transform-origin":"".concat(c.x+r.x/16,"em ").concat(c.y+r.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}function hr(e){var t=e.prefix,n=e.iconName,i=e.children,a=e.attributes,s=e.symbol,r=s===!0?"".concat(t,"-").concat(y.cssPrefix,"-").concat(n):s;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:p(p({},a),{},{id:r}),children:i}]}]}function nn(e){var t=e.icons,n=t.main,i=t.mask,a=e.prefix,s=e.iconName,r=e.transform,o=e.symbol,l=e.title,c=e.maskId,u=e.titleId,d=e.extra,v=e.watchable,D=v===void 0?!1:v,b=i.found?i:n,k=b.width,E=b.height,h=a==="fak",g=[y.replacementClass,s?"".concat(y.cssPrefix,"-").concat(s):""].filter(function(fe){return d.classes.indexOf(fe)===-1}).filter(function(fe){return fe!==""||!!fe}).concat(d.classes).join(" "),T={children:[],attributes:p(p({},d.attributes),{},{"data-prefix":a,"data-icon":s,class:g,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(k," ").concat(E)})},A=h&&!~d.classes.indexOf("fa-fw")?{width:"".concat(k/E*16*.0625,"em")}:{};D&&(T.attributes[Se]=""),l&&(T.children.push({tag:"title",attributes:{id:T.attributes["aria-labelledby"]||"title-".concat(u||qe())},children:[l]}),delete T.attributes.title);var z=p(p({},T),{},{prefix:a,iconName:s,main:n,mask:i,maskId:c,transform:r,symbol:o,styles:p(p({},A),d.styles)}),te=i.found&&n.found?ue("generateAbstractMask",z)||{children:[],attributes:{}}:ue("generateAbstractIcon",z)||{children:[],attributes:{}},re=te.children,_t=te.attributes;return z.children=re,z.attributes=_t,o?hr(z):mr(z)}function Pn(e){var t=e.content,n=e.width,i=e.height,a=e.transform,s=e.title,r=e.extra,o=e.watchable,l=o===void 0?!1:o,c=p(p(p({},r.attributes),s?{title:s}:{}),{},{class:r.classes.join(" ")});l&&(c[Se]="");var u=p({},r.styles);Jt(a)&&(u.transform=Ba({transform:a,startCentered:!0,width:n,height:i}),u["-webkit-transform"]=u.transform);var d=Et(u);d.length>0&&(c.style=d);var v=[];return v.push({tag:"span",attributes:c,children:[t]}),s&&v.push({tag:"span",attributes:{class:"sr-only"},children:[s]}),v}function fr(e){var t=e.content,n=e.title,i=e.extra,a=p(p(p({},i.attributes),n?{title:n}:{}),{},{class:i.classes.join(" ")}),s=Et(i.styles);s.length>0&&(a.style=s);var r=[];return r.push({tag:"span",attributes:a,children:[t]}),n&&r.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),r}var Ct=ee.styles;function Wt(e){var t=e[0],n=e[1],i=e.slice(4),a=Ut(i,1),s=a[0],r=null;return Array.isArray(s)?r={tag:"g",attributes:{class:"".concat(y.cssPrefix,"-").concat(ke.GROUP)},children:[{tag:"path",attributes:{class:"".concat(y.cssPrefix,"-").concat(ke.SECONDARY),fill:"currentColor",d:s[0]}},{tag:"path",attributes:{class:"".concat(y.cssPrefix,"-").concat(ke.PRIMARY),fill:"currentColor",d:s[1]}}]}:r={tag:"path",attributes:{fill:"currentColor",d:s}},{found:!0,width:t,height:n,icon:r}}var gr={found:!1,width:512,height:512};function vr(e,t){!ki&&!y.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function zt(e,t){var n=t;return t==="fa"&&y.styleDefault!==null&&(t=be()),new Promise(function(i,a){if(ue("missingIconAbstract"),n==="fa"){var s=Ri(e)||{};e=s.iconName||e,t=s.prefix||t}if(e&&t&&Ct[t]&&Ct[t][e]){var r=Ct[t][e];return i(Wt(r))}vr(e,t),i(p(p({},gr),{},{icon:y.showMissingIcons&&e?ue("missingIconAbstract")||{}:{}}))})}var On=function(){},Ht=y.measurePerformance&&nt&&nt.mark&&nt.measure?nt:{mark:On,measure:On},ze='FA "6.3.0"',pr=function(e){return Ht.mark("".concat(ze," ").concat(e," begins")),function(){return Yi(e)}},Yi=function(e){Ht.mark("".concat(ze," ").concat(e," ends")),Ht.measure("".concat(ze," ").concat(e),"".concat(ze," ").concat(e," begins"),"".concat(ze," ").concat(e," ends"))},an={begin:pr,end:Yi},ht=function(){};function xn(e){var t=e.getAttribute?e.getAttribute(Se):null;return typeof t=="string"}function yr(e){var t=e.getAttribute?e.getAttribute(qt):null,n=e.getAttribute?e.getAttribute(Gt):null;return t&&n}function br(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(y.replacementClass)}function Dr(){if(y.autoReplaceSvg===!0)return ft.replace;var e=ft[y.autoReplaceSvg];return e||ft.replace}function kr(e){return C.createElementNS("http://www.w3.org/2000/svg",e)}function Er(e){return C.createElement(e)}function Ni(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,i=n===void 0?e.tag==="svg"?kr:Er:n;if(typeof e=="string")return C.createTextNode(e);var a=i(e.tag);Object.keys(e.attributes||[]).forEach(function(r){a.setAttribute(r,e.attributes[r])});var s=e.children||[];return s.forEach(function(r){a.appendChild(Ni(r,{ceFn:i}))}),a}function wr(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var ft={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(i){t.parentNode.insertBefore(Ni(i),t)}),t.getAttribute(Se)===null&&y.keepOriginalSource){var n=C.createComment(wr(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~Qt(t).indexOf(y.replacementClass))return ft.replace(e);var i=new RegExp("".concat(y.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var a=n[0].attributes.class.split(" ").reduce(function(r,o){return o===y.replacementClass||o.match(i)?r.toSvg.push(o):r.toNode.push(o),r},{toNode:[],toSvg:[]});n[0].attributes.class=a.toSvg.join(" "),a.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",a.toNode.join(" "))}var s=n.map(function(r){return Je(r)}).join(` -`);t.setAttribute(Se,""),t.innerHTML=s}};function Ln(e){e()}function Wi(e,t){var n=typeof t=="function"?t:ht;if(e.length===0)n();else{var i=Ln;y.mutateApproach===Aa&&(i=ye.requestAnimationFrame||Ln),i(function(){var a=Dr(),s=an.begin("mutate");e.map(a),s(),n()})}}var rn=!1;function zi(){rn=!0}function jt(){rn=!1}var yt=null;function Rn(e){if(Sn&&y.observeMutations){var t=e.treeCallback,n=t===void 0?ht:t,i=e.nodeCallback,a=i===void 0?ht:i,s=e.pseudoElementsCallback,r=s===void 0?ht:s,o=e.observeMutationsRoot,l=o===void 0?C:o;yt=new Sn(function(c){if(!rn){var u=be();Fe(c).forEach(function(d){if(d.type==="childList"&&d.addedNodes.length>0&&!xn(d.addedNodes[0])&&(y.searchPseudoElements&&r(d.target),n(d.target)),d.type==="attributes"&&d.target.parentNode&&y.searchPseudoElements&&r(d.target.parentNode),d.type==="attributes"&&xn(d.target)&&~La.indexOf(d.attributeName))if(d.attributeName==="class"&&yr(d.target)){var v=St(Qt(d.target)),D=v.prefix,b=v.iconName;d.target.setAttribute(qt,D||u),b&&d.target.setAttribute(Gt,b)}else br(d.target)&&a(d.target)})}}),he&&yt.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Sr(){yt&&yt.disconnect()}function Tr(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(i,a){var s=a.split(":"),r=s[0],o=s.slice(1);return r&&o.length>0&&(i[r]=o.join(":").trim()),i},{})),n}function _r(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),i=e.innerText!==void 0?e.innerText.trim():"",a=St(Qt(e));return a.prefix||(a.prefix=be()),t&&n&&(a.prefix=t,a.iconName=n),a.iconName&&a.prefix||(a.prefix&&i.length>0&&(a.iconName=ir(a.prefix,e.innerText)||en(a.prefix,Mi(e.innerText))),!a.iconName&&y.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}function Ar(e){var t=Fe(e.attributes).reduce(function(a,s){return a.name!=="class"&&a.name!=="style"&&(a[s.name]=s.value),a},{}),n=e.getAttribute("title"),i=e.getAttribute("data-fa-title-id");return y.autoA11y&&(n?t["aria-labelledby"]="".concat(y.replacementClass,"-title-").concat(i||qe()):(t["aria-hidden"]="true",t.focusable="false")),t}function Mr(){return{iconName:null,title:null,titleId:null,prefix:null,transform:ne,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Fn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=_r(e),i=n.iconName,a=n.prefix,s=n.rest,r=Ar(e),o=Yt("parseNodeAttributes",{},e),l=t.styleParser?Tr(e):[];return p({iconName:i,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:a,transform:ne,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:l,attributes:r}},o)}var Cr=ee.styles;function Hi(e){var t=y.autoReplaceSvg==="nest"?Fn(e,{styleParser:!1}):Fn(e);return~t.extra.classes.indexOf(Ei)?ue("generateLayersText",e,t):ue("generateSvgReplacementMutation",e,t)}var De=new Set;Kt.map(function(e){De.add("fa-".concat(e))});Object.keys(Be[M]).map(De.add.bind(De));Object.keys(Be[x]).map(De.add.bind(De));De=Ke(De);function Yn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!he)return Promise.resolve();var n=C.documentElement.classList,i=function(u){return n.add("".concat(Tn,"-").concat(u))},a=function(u){return n.remove("".concat(Tn,"-").concat(u))},s=y.autoFetchSvg?De:Kt.map(function(u){return"fa-".concat(u)}).concat(Object.keys(Cr));s.includes("fa")||s.push("fa");var r=[".".concat(Ei,":not([").concat(Se,"])")].concat(s.map(function(u){return".".concat(u,":not([").concat(Se,"])")})).join(", ");if(r.length===0)return Promise.resolve();var o=[];try{o=Fe(e.querySelectorAll(r))}catch(u){}if(o.length>0)i("pending"),a("complete");else return Promise.resolve();var l=an.begin("onTree"),c=o.reduce(function(u,d){try{var v=Hi(d);v&&u.push(v)}catch(D){ki||D.name==="MissingIcon"&&console.error(D)}return u},[]);return new Promise(function(u,d){Promise.all(c).then(function(v){Wi(v,function(){i("active"),i("complete"),a("pending"),typeof t=="function"&&t(),l(),u()})}).catch(function(v){l(),d(v)})})}function Ir(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Hi(e).then(function(n){n&&Wi([n],t)})}function Pr(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=(t||{}).icon?t:Nt(t||{}),a=n.mask;return a&&(a=(a||{}).icon?a:Nt(a||{})),e(i,p(p({},n),{},{mask:a}))}}var Or=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.transform,i=n===void 0?ne:n,a=t.symbol,s=a===void 0?!1:a,r=t.mask,o=r===void 0?null:r,l=t.maskId,c=l===void 0?null:l,u=t.title,d=u===void 0?null:u,v=t.titleId,D=v===void 0?null:v,b=t.classes,k=b===void 0?[]:b,E=t.attributes,h=E===void 0?{}:E,g=t.styles,T=g===void 0?{}:g;if(e){var A=e.prefix,z=e.iconName,te=e.icon;return Tt(p({type:"icon"},e),function(){return Te("beforeDOMElementCreation",{iconDefinition:e,params:t}),y.autoA11y&&(d?h["aria-labelledby"]="".concat(y.replacementClass,"-title-").concat(D||qe()):(h["aria-hidden"]="true",h.focusable="false")),nn({icons:{main:Wt(te),mask:o?Wt(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:A,iconName:z,transform:p(p({},ne),i),symbol:s,title:d,maskId:c,titleId:D,extra:{attributes:h,styles:T,classes:k}})})}},xr={mixout:function(){return{icon:Pr(Or)}},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=Yn,e.nodeCallback=Ir,e}}},provides:function(e){e.i2svg=function(t){var n=t.node,i=n===void 0?C:n,a=t.callback,s=a===void 0?function(){}:a;return Yn(i,s)},e.generateSvgReplacementMutation=function(t,n){var i=n.iconName,a=n.title,s=n.titleId,r=n.prefix,o=n.transform,l=n.symbol,c=n.mask,u=n.maskId,d=n.extra;return new Promise(function(v,D){Promise.all([zt(i,r),c.iconName?zt(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(b){var k=Ut(b,2),E=k[0],h=k[1];v([t,nn({icons:{main:E,mask:h},prefix:r,iconName:i,transform:o,symbol:l,maskId:u,title:a,titleId:s,extra:d,watchable:!0})])}).catch(D)})},e.generateAbstractIcon=function(t){var n=t.children,i=t.attributes,a=t.main,s=t.transform,r=t.styles,o=Et(r);o.length>0&&(i.style=o);var l;return Jt(s)&&(l=ue("generateAbstractTransformGrouping",{main:a,transform:s,containerWidth:a.width,iconWidth:a.width})),n.push(l||a.icon),{children:n,attributes:i}}}},Lr={mixout:function(){return{layer:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.classes,i=n===void 0?[]:n;return Tt({type:"layer"},function(){Te("beforeDOMElementCreation",{assembler:e,params:t});var a=[];return e(function(s){Array.isArray(s)?s.map(function(r){a=a.concat(r.abstract)}):a=a.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(y.cssPrefix,"-layers")].concat(Ke(i)).join(" ")},children:a}]})}}}},Rr={mixout:function(){return{counter:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.title,i=n===void 0?null:n,a=t.classes,s=a===void 0?[]:a,r=t.attributes,o=r===void 0?{}:r,l=t.styles,c=l===void 0?{}:l;return Tt({type:"counter",content:e},function(){return Te("beforeDOMElementCreation",{content:e,params:t}),fr({content:e.toString(),title:i,extra:{attributes:o,styles:c,classes:["".concat(y.cssPrefix,"-layers-counter")].concat(Ke(s))}})})}}}},Fr={mixout:function(){return{text:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.transform,i=n===void 0?ne:n,a=t.title,s=a===void 0?null:a,r=t.classes,o=r===void 0?[]:r,l=t.attributes,c=l===void 0?{}:l,u=t.styles,d=u===void 0?{}:u;return Tt({type:"text",content:e},function(){return Te("beforeDOMElementCreation",{content:e,params:t}),Pn({content:e,transform:p(p({},ne),i),title:s,extra:{attributes:c,styles:d,classes:["".concat(y.cssPrefix,"-layers-text")].concat(Ke(o))}})})}}},provides:function(e){e.generateLayersText=function(t,n){var i=n.title,a=n.transform,s=n.extra,r=null,o=null;if(yi){var l=parseInt(getComputedStyle(t).fontSize,10),c=t.getBoundingClientRect();r=c.width/l,o=c.height/l}return y.autoA11y&&!i&&(s.attributes["aria-hidden"]="true"),Promise.resolve([t,Pn({content:t.innerHTML,width:r,height:o,transform:a,title:i,extra:s,watchable:!0})])}}},Yr=new RegExp('"',"ug"),Nn=[1105920,1112319];function Nr(e){var t=e.replace(Yr,""),n=Qa(t,0),i=n>=Nn[0]&&n<=Nn[1],a=t.length===2?t[0]===t[1]:!1;return{value:Mi(a?t[0]:t),isSecondary:i||a}}function Wn(e,t){var n="".concat(_a).concat(t.replace(":","-"));return new Promise(function(i,a){if(e.getAttribute(n)!==null)return i();var s=Fe(e.children),r=s.filter(function(re){return re.getAttribute(Rt)===t})[0],o=ye.getComputedStyle(e,t),l=o.getPropertyValue("font-family").match(Pa),c=o.getPropertyValue("font-weight"),u=o.getPropertyValue("content");if(r&&!l)return e.removeChild(r),i();if(l&&u!=="none"&&u!==""){var d=o.getPropertyValue("content"),v=~["Sharp"].indexOf(l[2])?x:M,D=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?Xe[v][l[2].toLowerCase()]:Oa[v][c],b=Nr(d),k=b.value,E=b.isSecondary,h=l[0].startsWith("FontAwesome"),g=en(D,k),T=g;if(h){var A=ar(k);A.iconName&&A.prefix&&(g=A.iconName,D=A.prefix)}if(g&&!E&&(!r||r.getAttribute(qt)!==D||r.getAttribute(Gt)!==T)){e.setAttribute(n,T),r&&e.removeChild(r);var z=Mr(),te=z.extra;te.attributes[Rt]=t,zt(g,D).then(function(re){var _t=nn(p(p({},z),{},{icons:{main:re,mask:tn()},prefix:D,iconName:T,extra:te,watchable:!0})),fe=C.createElement("svg");t==="::before"?e.insertBefore(fe,e.firstChild):e.appendChild(fe),fe.outerHTML=_t.map(function(aa){return Je(aa)}).join(` -`),e.removeAttribute(n),i()}).catch(a)}else i()}else i()})}function Wr(e){return Promise.all([Wn(e,"::before"),Wn(e,"::after")])}function zr(e){return e.parentNode!==document.head&&!~Ma.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Rt)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function zn(e){if(he)return new Promise(function(t,n){var i=Fe(e.querySelectorAll("*")).filter(zr).map(Wr),a=an.begin("searchPseudoElements");zi(),Promise.all(i).then(function(){a(),jt(),t()}).catch(function(){a(),jt(),n()})})}var Hr={hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=zn,e}}},provides:function(e){e.pseudoElements2svg=function(t){var n=t.node,i=n===void 0?C:n;y.searchPseudoElements&&zn(i)}}},Hn=!1,jr={mixout:function(){return{dom:{unwatch:function(){zi(),Hn=!0}}}},hooks:function(){return{bootstrap:function(){Rn(Yt("mutationObserverCallbacks",{}))},noAuto:function(){Sr()},watch:function(e){var t=e.observeMutationsRoot;Hn?jt():Rn(Yt("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},jn=function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce(function(n,i){var a=i.toLowerCase().split("-"),s=a[0],r=a.slice(1).join("-");if(s&&r==="h")return n.flipX=!0,n;if(s&&r==="v")return n.flipY=!0,n;if(r=parseFloat(r),isNaN(r))return n;switch(s){case"grow":n.size=n.size+r;break;case"shrink":n.size=n.size-r;break;case"left":n.x=n.x-r;break;case"right":n.x=n.x+r;break;case"up":n.y=n.y-r;break;case"down":n.y=n.y+r;break;case"rotate":n.rotate=n.rotate+r;break}return n},t)},$r={mixout:function(){return{parse:{transform:function(e){return jn(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=jn(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(t){var n=t.main,i=t.transform,a=t.containerWidth,s=t.iconWidth,r={transform:"translate(".concat(a/2," 256)")},o="translate(".concat(i.x*32,", ").concat(i.y*32,") "),l="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),c="rotate(".concat(i.rotate," 0 0)"),u={transform:"".concat(o," ").concat(l," ").concat(c)},d={transform:"translate(".concat(s/2*-1," -256)")},v={outer:r,inner:u,path:d};return{tag:"g",attributes:p({},v.outer),children:[{tag:"g",attributes:p({},v.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:p(p({},n.icon.attributes),v.path)}]}]}}}},It={x:0,y:0,width:"100%",height:"100%"};function $n(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function Br(e){return e.tag==="g"?e.children:[e]}var Xr={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),i=n?St(n.split(" ").map(function(a){return a.trim()})):tn();return i.prefix||(i.prefix=be()),e.mask=i,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(t){var n=t.children,i=t.attributes,a=t.main,s=t.mask,r=t.maskId,o=t.transform,l=a.width,c=a.icon,u=s.width,d=s.icon,v=$a({transform:o,containerWidth:u,iconWidth:l}),D={tag:"rect",attributes:p(p({},It),{},{fill:"white"})},b=c.children?{children:c.children.map($n)}:{},k={tag:"g",attributes:p({},v.inner),children:[$n(p({tag:c.tag,attributes:p(p({},c.attributes),v.path)},b))]},E={tag:"g",attributes:p({},v.outer),children:[k]},h="mask-".concat(r||qe()),g="clip-".concat(r||qe()),T={tag:"mask",attributes:p(p({},It),{},{id:h,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[D,E]},A={tag:"defs",children:[{tag:"clipPath",attributes:{id:g},children:Br(d)},T]};return n.push(A,{tag:"rect",attributes:p({fill:"currentColor","clip-path":"url(#".concat(g,")"),mask:"url(#".concat(h,")")},It)}),{children:n,attributes:i}}}},Ur={provides:function(e){var t=!1;ye.matchMedia&&(t=ye.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var n=[],i={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:p(p({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var s=p(p({},a),{},{attributeName:"opacity"}),r={tag:"circle",attributes:p(p({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||r.children.push({tag:"animate",attributes:p(p({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:p(p({},s),{},{values:"1;0;1;1;0;1;"})}),n.push(r),n.push({tag:"path",attributes:p(p({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:p(p({},s),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:p(p({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:p(p({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},Vr={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol"),i=n===null?!1:n===""?!0:n;return e.symbol=i,e}}}},qr=[Ua,xr,Lr,Rr,Fr,Hr,jr,$r,Xr,Ur,Vr];sr(qr,{mixoutsTo:G});G.noAuto;var ji=G.config;G.library;G.dom;var bt=G.parse;G.findIconDefinition;G.toHtml;var Gr=G.icon;G.layer;var Kr=G.text;G.counter;function Bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,i)}return n}function Z(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function Jr(e,t){if(e==null)return{};var n=Qr(e,t),i,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function $t(e){return Zr(e)||eo(e)||to(e)||no()}function Zr(e){if(Array.isArray(e))return Bt(e)}function eo(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function to(e,t){if(e){if(typeof e=="string")return Bt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bt(e,t)}}function Bt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var i=(e.children||[]).map(function(l){return on(l)}),a=Object.keys(e.attributes||{}).reduce(function(l,c){var u=e.attributes[c];switch(c){case"class":l.class=so(u);break;case"style":l.style=oo(u);break;default:l.attrs[c]=u}return l},{attrs:{},class:{},style:{}});n.class;var s=n.style,r=s===void 0?{}:s,o=Jr(n,ro);return ui(e.tag,Z(Z(Z({},t),{},{class:a.class,style:Z(Z({},a.style),r)},a.attrs),o),i)}var Bi=!1;try{Bi=!0}catch(e){}function lo(){if(!Bi&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function $e(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?$({},e,t):{}}function co(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},$(t,"fa-".concat(e.size),e.size!==null),$(t,"fa-rotate-".concat(e.rotation),e.rotation!==null),$(t,"fa-pull-".concat(e.pull),e.pull!==null),$(t,"fa-swap-opacity",e.swapOpacity),$(t,"fa-bounce",e.bounce),$(t,"fa-shake",e.shake),$(t,"fa-beat",e.beat),$(t,"fa-fade",e.fade),$(t,"fa-beat-fade",e.beatFade),$(t,"fa-flash",e.flash),$(t,"fa-spin-pulse",e.spinPulse),$(t,"fa-spin-reverse",e.spinReverse),t);return Object.keys(n).map(function(i){return n[i]?i:null}).filter(function(i){return i})}function Xn(e){if(e&&Dt(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(bt.icon)return bt.icon(e);if(e===null)return null;if(Dt(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var Ze=N({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(e){return[!0,!1,"horizontal","vertical","both"].indexOf(e)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(e){return["right","left"].indexOf(e)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(e){return[90,180,270].indexOf(Number.parseInt(e,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(e){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(e)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(e,t){var n=t.attrs,i=J(function(){return Xn(e.icon)}),a=J(function(){return $e("classes",co(e))}),s=J(function(){return $e("transform",typeof e.transform=="string"?bt.transform(e.transform):e.transform)}),r=J(function(){return $e("mask",Xn(e.mask))}),o=J(function(){return Gr(i.value,Z(Z(Z(Z({},a.value),s.value),r.value),{},{symbol:e.symbol,title:e.title}))});da(o,function(c){if(!c)return lo("Could not find one or more icon(s)",i.value,r.value)},{immediate:!0});var l=J(function(){return o.value?on(o.value.abstract[0],{},n):null});return function(){return l.value}}});N({name:"FontAwesomeLayers",props:{fixedWidth:{type:Boolean,default:!1}},setup:function(e,t){var n=t.slots,i=ji.familyPrefix,a=J(function(){return["".concat(i,"-layers")].concat($t(e.fixedWidth?["".concat(i,"-fw")]:[]))});return function(){return ui("div",{class:a.value},n.default?n.default():[])}}});N({name:"FontAwesomeLayersText",props:{value:{type:[String,Number],default:""},transform:{type:[String,Object],default:null},counter:{type:Boolean,default:!1},position:{type:String,default:null,validator:function(e){return["bottom-left","bottom-right","top-left","top-right"].indexOf(e)>-1}}},setup:function(e,t){var n=t.attrs,i=ji.familyPrefix,a=J(function(){return $e("classes",[].concat($t(e.counter?["".concat(i,"-layers-counter")]:[]),$t(e.position?["".concat(i,"-layers-").concat(e.position)]:[])))}),s=J(function(){return $e("transform",typeof e.transform=="string"?bt.transform(e.transform):e.transform)}),r=J(function(){var l=Kr(e.value.toString(),Z(Z({},s.value),a.value)),c=l.abstract;return e.counter&&(c[0].attributes.class=c[0].attributes.class.replace("fa-layers-text","")),c[0]}),o=J(function(){return on(r.value,{},n)});return function(){return o.value}}});var uo={prefix:"fas",iconName:"circle-chevron-right",icon:[512,512,["chevron-circle-right"],"f138","M0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM241 377c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l87-87-87-87c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L345 239c9.4 9.4 9.4 24.6 0 33.9L241 377z"]},mo=uo,ho={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z"]},fo={prefix:"fas",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},go=fo,vo={prefix:"fas",iconName:"comment",icon:[512,512,[128489,61669],"f075","M512 240c0 114.9-114.6 208-256 208c-37.1 0-72.3-6.4-104.1-17.9c-11.9 8.7-31.3 20.6-54.3 30.6C73.6 471.1 44.7 480 16 480c-6.5 0-12.3-3.9-14.8-9.9c-2.5-6-1.1-12.8 3.4-17.4l0 0 0 0 0 0 0 0 .3-.3c.3-.3 .7-.7 1.3-1.4c1.1-1.2 2.8-3.1 4.9-5.7c4.1-5 9.6-12.4 15.2-21.6c10-16.6 19.5-38.4 21.4-62.9C17.7 326.8 0 285.1 0 240C0 125.1 114.6 32 256 32s256 93.1 256 208z"]},po={prefix:"fas",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},yo={prefix:"fas",iconName:"location-dot",icon:[384,512,["map-marker-alt"],"f3c5","M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"]},sn=yo,bo={prefix:"fas",iconName:"xmark",icon:[320,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3 265.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256 310.6 150.6z"]},Xi=bo,Do={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},ko={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},Eo={prefix:"fas",iconName:"circle-chevron-left",icon:[512,512,["chevron-circle-left"],"f137","M512 256A256 256 0 1 0 0 256a256 256 0 1 0 512 0zM271 135c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-87 87 87 87c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L167 273c-9.4-9.4-9.4-24.6 0-33.9L271 135z"]},wo=Eo,So={prefix:"fas",iconName:"calendar-day",icon:[448,512,[],"f783","M128 0c17.7 0 32 14.3 32 32V64H288V32c0-17.7 14.3-32 32-32s32 14.3 32 32V64h48c26.5 0 48 21.5 48 48v48H0V112C0 85.5 21.5 64 48 64H96V32c0-17.7 14.3-32 32-32zM0 192H448V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V192zm80 64c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16h96c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H80z"]};const To=N({name:"DatePicker",components:{FontAwesomeIcon:Ze},props:{mode:{type:String,default:"week"},timeProp:{type:Object,default:null},periodProp:{type:Object,default:null},firstDayOfWeek:{type:String,default:""},defaultDate:{type:Date,default:new Date},locale:{type:String,default:""},disableDates:{type:Object,default:null}},emits:["updated"],data(){var e,t;return{periodText:"",weekPickerDates:[],monthPickerDates:[],icons:{calendarIcon:So,chevronLeft:wo,chevronRight:mo},showDatePicker:!!(this.locale&&this.firstDayOfWeek),datePickerCurrentDate:((e=this.periodProp)==null?void 0:e.selectedDate)||this.defaultDate||new Date,selectedDate:((t=this.periodProp)==null?void 0:t.selectedDate)||new Date,datePickerMode:"month",weekDays:[],time:this.timeProp?this.timeProp:new ae(this.firstDayOfWeek,this.locale),period:this.periodProp||{start:new Date,end:new Date,selectedDate:this.defaultDate?this.defaultDate:new Date}}},computed:{isStandAloneComponent(){return this.locale&&this.firstDayOfWeek}},mounted(){this.hydrateDatePicker()},methods:{setMonthDaysInWeekPicker(e=new Date().getMonth(),t=new Date().getFullYear()){this.weekPickerDates=[],this.weekPickerDates=this.time.getCalendarMonthSplitInWeeks(t,e)},togglePeriodSelector(){this.weekPickerDates=this.time.getCalendarMonthSplitInWeeks(this.datePickerCurrentDate.getFullYear(),this.datePickerCurrentDate.getMonth()),this.showDatePicker=!this.showDatePicker},setWeek(e,t=!1){t||(this.datePickerCurrentDate=e);const n=this.time.getCalendarWeekDateObjects(e);this.weekDays=n;const i=n[0],a=n[6];switch(this.mode){case"week":this.periodText=`${this.time.getLocalizedDateString(i)} - ${this.time.getLocalizedDateString(a)}`;break;case"month":this.periodText=this.time.getLocalizedNameOfMonth(e);break;default:this.periodText=this.time.getLocalizedDateString(e)}t||this.emitChange(i,a)},setMonth(e){this.datePickerCurrentDate=e,this.setMonthDaysInWeekPicker(e.getMonth(),e.getFullYear()),this.datePickerMode="month",this.showDatePicker=!0},emitChange(e,t){if(this.selectedDate=this.datePickerCurrentDate,this.mode==="month"){const n=this.time.getCalendarMonthSplitInWeeks(this.selectedDate.getFullYear(),this.selectedDate.getMonth());e=n[0][0];const i=n[n.length-1];t=i[i.length-1]}else this.mode==="day"&&(e=this.selectedDate,t=this.selectedDate);this.isStandAloneComponent?this.$emit("updated",{year:this.datePickerCurrentDate.getFullYear(),month:this.datePickerCurrentDate.getMonth(),date:this.datePickerCurrentDate.getDate()}):this.$emit("updated",{start:new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0),end:this.time.setDateToEndOfDay(t),selectedDate:this.datePickerCurrentDate})},toggleDatePickerPeriod(e){const t=new Date(this.datePickerCurrentDate);if(this.datePickerMode==="month"){const n=new Date(t.getFullYear(),e==="previous"?t.getMonth()-1:t.getMonth()+1,1);this.setMonthDaysInWeekPicker(n.getMonth(),n.getFullYear()),this.datePickerCurrentDate=n}else this.monthPickerDates=this.time.getCalendarYearMonths(e==="previous"?t.getFullYear()-1:t.getFullYear()+1),this.datePickerCurrentDate=new Date(this.monthPickerDates[0])},toggleDatePickerMode(){if(this.datePickerMode==="month")return this.monthPickerDates=this.time.getCalendarYearMonths(this.datePickerCurrentDate.getFullYear()),this.datePickerMode="year";this.weekPickerDates=this.time.getCalendarMonthSplitInWeeks(this.datePickerCurrentDate.getFullYear(),this.datePickerCurrentDate.getMonth()),this.datePickerMode="month"},getLocale(){return this.time.CALENDAR_LOCALE},goToPeriod(e){let t,n;if(this.mode==="week"){const i=this.time.getCalendarWeekDateObjects(this.datePickerCurrentDate);t=new Date(i[0]),n=e==="next"?t.getDate()+7:t.getDate()-7,t.setDate(n)}else this.mode==="month"?(t=new Date(this.datePickerCurrentDate),t.setMonth(e==="next"?t.getMonth()+1:t.getMonth()-1),t.setDate(1)):(t=new Date(this.datePickerCurrentDate),n=e==="next"?t.getDate()+1:t.getDate()-1,t.setDate(n));this.setWeek(t)},hideDatePicker(){this.isStandAloneComponent||setTimeout(()=>this.showDatePicker=!1,100)},hydrateDatePicker(){const e=this.datePickerCurrentDate;this.setMonthDaysInWeekPicker(e.getMonth(),e.getFullYear()),this.setWeek(e,!0)},checkIfDateIsDisabled(e){return this.disableDates?e.getTime()this.disableDates.after.getTime():!1}}}),j=(e,t)=>{const n=e.__vccOpts||e;for(const[i,a]of t)n[i]=a;return n},_o={class:"date-picker__value-display-text"},Ao={class:"date-picker__week-picker-navigation"},Mo={key:0,class:"date-picker__day-names week"},Co=["onClick"],Io={class:"months"},Po=["onClick"];function Oo(e,t,n,i,a,s){const r=L("font-awesome-icon");return m(),f("div",{class:U(["date-picker",e.isStandAloneComponent?"date-picker-root":"is-in-qalendar"]),onMouseleave:t[5]||(t[5]=(...o)=>e.hideDatePicker&&e.hideDatePicker(...o))},[e.isStandAloneComponent?S("",!0):(m(),f("div",{key:0,class:"date-picker__value-display",onClick:t[0]||(t[0]=(...o)=>e.togglePeriodSelector&&e.togglePeriodSelector(...o))},[I(r,{icon:e.icons.calendarIcon},null,8,["icon"]),w("span",_o,_(e.periodText),1)])),e.showDatePicker?(m(),f("div",{key:1,class:U(["date-picker__week-picker",{"is-in-qalendar":!e.isStandAloneComponent}]),onMouseleave:t[4]||(t[4]=(...o)=>e.hideDatePicker&&e.hideDatePicker(...o))},[w("div",Ao,[I(r,{class:"is-icon is-chevron-left",icon:e.icons.chevronLeft,onClick:t[1]||(t[1]=o=>e.toggleDatePickerPeriod("previous"))},null,8,["icon"]),w("span",{class:"date-picker__toggle-mode",onClick:t[2]||(t[2]=(...o)=>e.toggleDatePickerMode&&e.toggleDatePickerMode(...o))},[e.datePickerMode==="month"?(m(),f(O,{key:0},[se(_(e.datePickerCurrentDate.toLocaleString(e.getLocale(),{month:"long",year:"numeric"})),1)],64)):e.datePickerMode==="year"?(m(),f(O,{key:1},[se(_(new Date(e.datePickerCurrentDate).toLocaleString(e.getLocale(),{year:"numeric"})),1)],64)):S("",!0)]),I(r,{class:"is-icon is-chevron-right",icon:e.icons.chevronRight,onClick:t[3]||(t[3]=o=>e.toggleDatePickerPeriod("next"))},null,8,["icon"])]),e.datePickerMode==="month"?(m(),f("div",Mo,[(m(!0),f(O,null,H(e.weekDays,o=>(m(),f("span",{key:o.getDate()},_(e.time.getLocalizedNameOfWeekday(o,"short")),1))),128))])):S("",!0),(m(!0),f(O,null,H(e.weekPickerDates,(o,l)=>pn((m(),f("div",{key:l,class:U(["week",e.time.dateIsInWeek(e.selectedDate,o)&&!e.isStandAloneComponent?"is-active":""])},[(m(!0),f(O,null,H(o,(c,u)=>(m(),f("span",{key:l+u,class:U({"is-weekend":[5,6].includes(u),"is-not-in-month":c.getMonth()!==e.datePickerCurrentDate.getMonth(),"has-day":c,"is-today":e.time.dateIsToday(c),"is-disabled":e.checkIfDateIsDisabled(c)}),onClick:d=>e.checkIfDateIsDisabled(c)?null:e.setWeek(c)},_(c?c.getDate():""),11,Co))),128))],2)),[[yn,e.datePickerMode==="month"]])),128)),pn(w("div",Io,[(m(!0),f(O,null,H(e.monthPickerDates,(o,l)=>(m(),f("span",{key:l,class:"has-month",onClick:c=>e.setMonth(o)},_(new Date(o).toLocaleString(e.getLocale(),{month:"long"})),9,Po))),128))],512),[[yn,e.datePickerMode==="year"]])],34)):S("",!0)],34)}const xo=j(To,[["render",Oo],["__scopeId","data-v-67f77862"]]),Lo={week:{"it-IT":"Settimana","en-US":"Week","de-DE":"Woche","sv-SE":"Vecka","zh-CN":"\u5468","pt-BR":"Semana","fr-FR":"Semaine","th-TH":"\u0E2A\u0E31\u0E1B\u0E14\u0E32\u0E2B\u0E4C","nl-NL":"Week","ru-RU":"\u041D\u0435\u0434\u0435\u043B\u044F","ar-YE":"\u0625\u0633\u0628\u0648\u0639","es-ES":"Semana","ja-JP":"\u9031"},month:{"it-IT":"Mese","en-US":"Month","de-DE":"Monat","sv-SE":"M\xE5nad","zh-CN":"\u6708","pt-BR":"M\xEAs","fr-FR":"Mois","th-TH":"\u0E40\u0E14\u0E37\u0E2D\u0E19","nl-NL":"Maand","ru-RU":"\u041C\u0435\u0441\u044F\u0446","ar-YE":"\u0634\u0647\u0631","es-ES":"Mes","ja-JP":"\u6708"},day:{"it-IT":"Giorno","en-US":"Day","de-DE":"Tag","sv-SE":"Dag","zh-CN":"\u65E5","pt-BR":"Dia","fr-FR":"Jour","th-TH":"\u0E27\u0E31\u0E19","nl-NL":"Dag","ru-RU":"\u0414\u0435\u043D\u044C","ar-YE":"\u064A\u0648\u0645","es-ES":"D\xEDa","ja-JP":"\u65E5"},moreEvents:{"it-IT":"+ altri eventi","en-US":"+ more events","de-DE":"+ weitere Ereignisse","sv-SE":"+ fler event","zh-CN":"\u5217\u51FA\u5176\u4ED6\u7ED3\u679C","pt-BR":"+ mais eventos","fr-FR":"+ d'autres \xE9v\xE9nements","th-TH":"+ \u0E40\u0E2B\u0E15\u0E38\u0E01\u0E32\u0E23\u0E13\u0E4C\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21","nl-NL":"meer evenementen","ru-RU":"+ \u0435\u0449\u0451 \u0441\u043E\u0431\u044B\u0442\u0438\u044F","ar-YE":"+ \u0627\u0644\u0645\u0632\u064A\u062F \u0645\u0646 \u0627\u0644\u0623\u062D\u062F\u0627\u062B","es-ES":"m\xE1s eventos","ja-JP":"\u305D\u306E\u4ED6\u30A4\u30D9\u30F3\u30C8"},noEvent:{"it-IT":"Nessun evento","en-US":"No events","de-DE":"Keine Ereignisse","sv-SE":"Inga event","zh-CN":"\u6C92\u6709\u6D3B\u52D5","pt-BR":"Sem eventos","fr-FR":"Aucun Ev\xE8nement","th-TH":"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E01\u0E34\u0E08\u0E01\u0E23\u0E23\u0E21","nl-NL":"Geen evenementen","ru-RU":"\u041D\u0435\u0442 \u0441\u043E\u0431\u044B\u0442\u0438\u0439","ar-YE":"\u0644\u0627 \u0623\u062D\u062F\u0627\u062B","es-ES":"No hay eventos","ja-JP":"\u30A4\u30D9\u30F3\u30C8\u306A\u3057"}},Un=new Map([["de","de-DE"],["en","en-US"],["it","it-IT"],["sv","sv-SE"],["zh","zh-CN"],["pt","pt-BR"],["fr","fr-FR"],["th","th-TH"],["nl","nl-NL"],["ru","ru-RU"],["ar","ar-YE"],["es","es-ES"],["ja","ja-JP"]]),ln={data(){return{languageKeys:Lo}},methods:{getLanguage(e,t){return t=this.overrideShortLocaleWithLongLocale(t),e[t]?e[t]:e["en-US"]},overrideShortLocaleWithLongLocale(e){return Un.has(e)&&(e=Un.get(e)),e}}},Ro=N({name:"AppHeader",components:{DatePicker:xo,FontAwesomeIcon:Ze},mixins:[ln],props:{config:{type:Object,default:()=>({})},mode:{type:String,default:"week"},time:{type:Object,default:()=>({})},period:{type:Object,required:!0},isSmall:{type:Boolean,required:!0}},emits:["change-mode","updated-period"],data(){return{modeOptions:["month","week","day"],icons:{chevronLeft:Do,chevronRight:ko},currentPeriod:this.period,showModePicker:!1}},computed:{periodName(){var e,t,n;if(this.mode==="week"){const i=this.time.getLocalizedNameOfMonth((e=this.currentPeriod)==null?void 0:e.start,"short"),a=this.time.getLocalizedNameOfMonth((t=this.currentPeriod)==null?void 0:t.end,"short");return i===a?i:`${i} - ${a}`}return this.time.getLocalizedNameOfMonth((n=this.currentPeriod)==null?void 0:n.selectedDate,"short")+" "+this.currentPeriod.selectedDate.getFullYear()},modeName(){var e;return this.getLanguage(this.languageKeys[this.mode],(e=this.time)==null?void 0:e.CALENDAR_LOCALE)},onlyDayModeIsEnabled(){var e,t;const n=(e=this.config.disableModes)==null?void 0:e.includes("week"),i=(t=this.config.disableModes)==null?void 0:t.includes("month");return this.config.disableModes&&n&&i}},watch:{isSmall:{handler(e){e?this.modeOptions=["month","day"]:this.modeOptions=["month","week","day"]},immediate:!0}},methods:{handlePeriodChange(e){this.currentPeriod=e,this.$emit("updated-period",e)},goToPeriod(e){this.$refs.periodSelect.goToPeriod(e)}}}),Fo={class:"calendar-header"},Yo={key:0,class:"calendar-header__period-name"},No={class:"calendar-header__period"},Wo={class:"calendar-header__chevron-arrows"},zo={key:0,class:"calendar-header__mode-picker"},Ho=["onClick"];function jo(e,t,n,i,a,s){const r=L("FontAwesomeIcon"),o=L("DatePicker");return m(),f("div",Fo,[e.periodName?(m(),f("div",Yo,_(e.periodName),1)):S("",!0),w("div",No,[w("div",Wo,[I(r,{class:"calendar-header__chevron-arrow calendar-header__chevron-arrow-left",icon:e.icons.chevronLeft,onClick:t[0]||(t[0]=l=>e.goToPeriod("previous"))},null,8,["icon"]),I(r,{class:"calendar-header__chevron-arrow calendar-header__chevron-arrow-right",icon:e.icons.chevronRight,onClick:t[1]||(t[1]=l=>e.goToPeriod("next"))},null,8,["icon"])]),I(o,{ref:"periodSelect",mode:e.mode,"time-prop":e.time,"period-prop":e.period,onUpdated:e.handlePeriodChange},null,8,["mode","time-prop","period-prop","onUpdated"]),e.onlyDayModeIsEnabled?S("",!0):(m(),f("div",zo,[w("div",{class:"calendar-header__mode-value",onClick:t[2]||(t[2]=l=>e.showModePicker=!0)},_(e.modeName),1),e.showModePicker?(m(),f("div",{key:0,class:"calendar-header__mode-options",onMouseleave:t[3]||(t[3]=l=>e.showModePicker=!1)},[(m(!0),f(O,null,H(e.modeOptions,l=>(m(),f(O,{key:l},[!e.config.disableModes||!e.config.disableModes.includes(l)?(m(),f("div",{key:0,class:U(["calendar-header__mode-option","is-"+l+"-mode"]),onClick:c=>e.$emit("change-mode",l)},_(e.getLanguage(e.languageKeys[l],e.time.CALENDAR_LOCALE)),11,Ho)):S("",!0)],64))),128))],32)):S("",!0)]))])])}const $o=j(Ro,[["render",jo],["__scopeId","data-v-37f1c389"]]),cn=N({name:"DayTimeline",props:{time:{type:Object,required:!0},weekHeight:{type:String,required:!0}},data(){return{availableHours:[0,100,200,300,400,500,600,700,800,900,1e3,1100,1200,1300,1400,1500,1600,1700,1800,1900,2e3,2100,2200,2300],timelineHours:[]}},mounted(){this.timelineHours=this.time.getTimelineHours()},methods:{getLocaleTimeString(e){const{hour:t}=this.time.getHourAndMinutesFromTimePoints(e);return this.time.getLocalizedHour(new Date(2100,1,1,t))}}}),Vn=()=>{Re(e=>({"11371d19":e.weekHeight}))},qn=cn.setup;cn.setup=qn?(e,t)=>(Vn(),qn(e,t)):Vn;const Bo={class:"day-timeline"},Xo={class:"day-timeline__hour-text"};function Uo(e,t,n,i,a,s){return m(),f("div",Bo,[(m(!0),f(O,null,H(e.timelineHours,r=>(m(),f("div",{key:r,class:"day-timeline__hour"},[w("span",Xo,_(e.getLocaleTimeString(r)),1)]))),128))])}const Vo=j(cn,[["render",Uo],["__scopeId","data-v-014bf4e0"]]),qo=N({name:"FullDayEvent",props:{scheduleEvent:{type:Object,default:null},config:{type:Object,required:!0},mode:{type:String,required:!0}},emits:["event-was-clicked"],data(){return{colors:Ge,eventColor:"#fff",eventBackgroundColor:"",eventElementIdPrefix:"week-timeline__event-id-"}},computed:{eventWidth(){return this.mode!=="day"?`calc(${this.scheduleEvent.nDays*100}% - 6px)`:"calc(100% - 6px)"}},mounted(){this.setColors()},methods:{setColors(){var e,t,n;return(e=this.scheduleEvent)!=null&&e.colorScheme&&(t=this.config.style)!=null&&t.colorSchemes&&this.config.style.colorSchemes[this.scheduleEvent.colorScheme]?(this.eventColor=this.config.style.colorSchemes[this.scheduleEvent.colorScheme].color,this.eventBackgroundColor=this.config.style.colorSchemes[this.scheduleEvent.colorScheme].backgroundColor):(n=this.scheduleEvent)!=null&&n.color?(this.eventColor="#fff",this.eventBackgroundColor=this.colors[this.scheduleEvent.color]):this.eventBackgroundColor=this.colors.blue},handleClickOnEvent(){const e=document.getElementById(this.eventElementIdPrefix+this.scheduleEvent.id);this.$emit("event-was-clicked",{clickedEvent:this.scheduleEvent,eventElement:e})}}}),Go=["id"],Ko={key:1,class:"week-timeline__event"};function Qo(e,t,n,i,a,s){return e.scheduleEvent?(m(),f("div",{key:0,id:`${e.eventElementIdPrefix}${e.scheduleEvent.id}`,class:"week-timeline__event is-event",style:le({width:e.eventWidth,color:e.eventColor,backgroundColor:e.eventBackgroundColor,zIndex:1}),onClick:t[0]||(t[0]=(...r)=>e.handleClickOnEvent&&e.handleClickOnEvent(...r))},_(e.scheduleEvent.title),13,Go)):(m(),f("div",Ko))}const Jo=j(qo,[["render",Qo],["__scopeId","data-v-778d59fc"]]),Zo=N({name:"WeekTimeline",components:{FullDayEvent:Jo},props:{days:{type:Array,required:!0},time:{type:Object,required:!0},fullDayEvents:{type:Array,default:()=>[]},config:{type:Object,required:!0},mode:{type:String,required:!0}},emits:["event-was-clicked","day-was-clicked"],data(){return{now:new Date}},methods:{getDaysDate(e){const{date:t}=this.time.getAllVariablesFromDateTimeString(e.dateTimeString);return t}}}),es={class:"week-timeline"},ts=["onClick"],ns={class:"week-timeline__day-name"},is={class:"week-timeline__date"},as={class:"week-timeline__events"};function rs(e,t,n,i,a,s){const r=L("FullDayEvent");return m(),f("div",es,[(m(!0),f(O,null,H(e.days,(o,l)=>(m(),f("div",{key:l,class:U(["week-timeline__day",{"is-today":e.time.getDateTimeStringFromDate(e.now,"start")===o.dateTimeString}]),onClick:c=>e.$emit("day-was-clicked",e.time.dateStringFrom(o.dateTimeString))},[w("div",ns,_(o.dayName.substring(0,2).toUpperCase()),1),w("div",is,_(e.getDaysDate(o)),1),w("div",as,[(m(!0),f(O,null,H(o.fullDayEvents,(c,u)=>(m(),f(O,{key:u},[u!=="date"?(m(),V(r,{key:0,"schedule-event":typeof c=="object"?c:null,config:e.config,mode:e.mode,onEventWasClicked:t[0]||(t[0]=d=>e.$emit("event-was-clicked",d))},null,8,["schedule-event","config","mode"])):S("",!0)],64))),128))])],10,ts))),128))])}const os=j(Zo,[["render",rs],["__scopeId","data-v-a43746b6"]]);var oe=(e=>(e.BACKWARDS="backwards",e.FORWARDS="forwards",e))(oe||{});class ss{constructor(t,n){F(this,"dayStart",""),F(this,"dayEnd",""),this.timeInstance=t,this.date=n,this.setDayBoundariesTimeStrings()}canEventBeMoved(t,n){return this.timeInstance.dayMode!==q.FLEXIBLE?this.handleNonFlexibleDays(n,t):this.handleFlexibleDays(n,t)}handleNonFlexibleDays(t,n){return t===oe.FORWARDS?this.handleForwardsMoveForNonFlexibleDays(n):this.handleBackwardsMoveForNonFlexibleDays(n)}handleFlexibleDays(t,n){return t==oe.FORWARDS?this.handleForwardsMoveForFlexibleDays(n):this.handleBackwardsMoveForFlexibleDays(n)}handleForwardsMoveForNonFlexibleDays(t){const n=this.timeInstance.addMinutesToDateTimeString(15,t.time.end),i=this.timeInstance.timeStringFrom(n);return this.timeInstance.dateStringFrom(n)>this.date?!1:i<=this.dayEnd}handleBackwardsMoveForNonFlexibleDays(t){const n=this.timeInstance.addMinutesToDateTimeString(-15,t.time.start),i=this.timeInstance.timeStringFrom(n);return this.timeInstance.dateStringFrom(n)=this.dayStart}handleForwardsMoveForFlexibleDays(t){const n=this.timeInstance.addMinutesToDateTimeString(15,t.time.end),i=this.timeInstance.timeStringFrom(n);return this.timeInstance.dateStringFrom(n)===this.date?!0:i<=this.dayEnd}handleBackwardsMoveForFlexibleDays(t){const n=this.timeInstance.addMinutesToDateTimeString(-15,t.time.start),i=this.timeInstance.timeStringFrom(n);return this.timeInstance.dateStringFrom(n)>this.date?!0:i>=this.dayStart}setDayBoundariesTimeStrings(){const t=this.timeInstance.getHourAndMinutesFromTimePoints(this.timeInstance.DAY_START).hour,n=this.timeInstance.getHourAndMinutesFromTimePoints(this.timeInstance.DAY_END).hour,i=this.timeInstance.doubleDigit(t);this.dayStart=`${i}:00`;const a=this.timeInstance.doubleDigit(n);this.dayEnd=`${a}:00`}}const ls=N({name:"DayEvent",components:{FontAwesomeIcon:Ze},props:{eventProp:{type:Object,required:!0},time:{type:Object,required:!0},config:{type:Object,required:!0},dayInfo:{type:Object,required:!0},mode:{type:String,required:!0}},emits:["event-was-clicked","event-was-resized","event-was-dragged","drag-start","drag-end"],data(){return{event:this.eventProp,icons:{clock:po,user:ho,description:vo,location:sn,topic:go},showResizeElements:!1,eventTransformValue:"initial",eventZIndexValue:"initial",dayElement:document.querySelector(".calendar-week__day"),dayBoundariesDateTimeStrings:this.time.getDateTimeStringDayBoundariesFrom(this.dayInfo.dateTimeString),resizingStartingPoint:void 0,resizingStartingPointEndOfTime:this.eventProp.time.end,resizingStartingPointStartOfTime:this.eventProp.time.start,resizingDirection:"",changeInQuarterHoursEventStart:0,changeInQuarterHoursEventEnd:0,isEditable:this.eventProp.isEditable||!1,colors:Ge,eventColor:"#fff",eventBackgroundColor:"",isResizing:!1,canDrag:!1,clientYDragStart:null,clientXDragStart:null,changeInQuartersOnDrag:0,changeInDaysOnDrag:0,isDragging:!1,timeStartDragStart:this.eventProp.time.start,timeEndDragStart:this.eventProp.time.end,dragMoveListenerNameAndCallbacks:[["mousemove",this.handleDrag],["touchmove",this.handleDrag],["mouseup",this.onMouseUpWhenDragging],["touchend",this.onMouseUpWhenDragging]]}},computed:{eventChangeHelper(){const e=this.time.addDaysToDateTimeString(this.changeInDaysOnDrag,this.dayInfo.dateTimeString);return new ss(this.time,this.time.dateStringFrom(e))},isCustomEvent(){return Array.isArray(this.eventProp.isCustom)?this.eventProp.isCustom.includes(this.mode):this.eventProp.isCustom||!1},getEventTime(){return this.time.getLocalizedTime(this.event.time.start)+" - "+this.time.getLocalizedTime(this.event.time.end)},timePointsInDay(){return this.time.HOURS_PER_DAY*100},timePointsInOneMinute(){return 100/60},getLeftRule(){return!this.event.totalConcurrentEvents||!this.event.nOfPreviousConcurrentEvents?0:this.event.nOfPreviousConcurrentEvents/this.event.totalConcurrentEvents*100},getWidthRule(){return 100-this.getLeftRule},getBorderRule(){return this.event.nOfPreviousConcurrentEvents?"1px solid #fff":"none"},eventIsLongerThan30Minutes(){const{hour:e,minutes:t}=this.time.getAllVariablesFromDateTimeString(this.event.time.start),{hour:n,minutes:i}=this.time.getAllVariablesFromDateTimeString(this.event.time.end),a=new Date(0,0,0,e,t).getTime();return new Date(0,0,0,n,i).getTime()-a>=18e5},hasDisabledDragAndDrop(){return!!(this.eventProp.disableDnD&&this.eventProp.disableDnD.includes(this.mode))},hasDisabledResize(){return!!(this.eventProp.disableResize&&this.eventProp.disableResize.includes(this.mode))},requiredStyles(){return{top:this.getPositionInDay(this.event.time.start),height:this.getLengthOfEvent(this.event.time.start,this.event.time.end),left:this.getLeftRule+"%",width:this.getWidthRule+"%",transform:this.eventTransformValue,zIndex:this.eventZIndexValue}}},watch:{changeInQuarterHoursEventStart(e,t){const n=this.time.addMinutesToDateTimeString(15*e,this.resizingStartingPointStartOfTime),i=e>t?oe.FORWARDS:oe.BACKWARDS,a=this.eventChangeHelper.canEventBeMoved(this.event,i);nt?oe.FORWARDS:oe.BACKWARDS,a=this.eventChangeHelper.canEventBeMoved(this.event,i);n>this.event.time.start&&a&&(this.event.time.end=n)},changeInQuartersOnDrag(e,t){const n=e>t?oe.FORWARDS:oe.BACKWARDS;this.eventChangeHelper.canEventBeMoved(this.event,n)&&this.updatePositionOnDrag()},changeInDaysOnDrag(e){if(!this.dayElement)return;const t=this.dayInfo.daysTotalN-(this.dayInfo.thisDayIndex+1),n=0-this.dayInfo.thisDayIndex;if(e>t||e"u"&&(this.resizingStartingPoint=e.clientY);const n=e.clientY-this.resizingStartingPoint,i=t.clientHeight,a=n/i*100,s=this.timePointsInDay/100*a,r=this.getMinutesFromTimePoints(s);this.resizingDirection==="down"?this.changeInQuarterHoursEventEnd=Math.floor(r/15):this.changeInQuarterHoursEventStart=Math.floor(r/15)},onMouseUpWhenResizing(){this.stopResizing()},resizeEvent(e){this.isResizing=!0,this.resizingDirection=e,document.addEventListener("mousemove",this.onMouseMoveResize),document.addEventListener("mouseup",this.onMouseUpWhenResizing)},stopResizing(){document.removeEventListener("mousemove",this.onMouseMoveResize),document.removeEventListener("mouseup",this.onMouseUpWhenResizing),this.resetResizingValues(),this.$emit("event-was-resized",this.event),this.isResizing=!1},resetResizingValues(){this.resizingStartingPoint=void 0,this.resizingStartingPointStartOfTime=this.eventProp.time.start,this.resizingStartingPointEndOfTime=this.eventProp.time.end,this.changeInQuarterHoursEventEnd=0},getMinutesFromTimePoints(e){return e/this.timePointsInOneMinute},setColors(){var e,t,n;if((e=this.event)!=null&&e.colorScheme&&(t=this.config.style)!=null&&t.colorSchemes&&this.config.style.colorSchemes[this.event.colorScheme])return this.eventColor=this.config.style.colorSchemes[this.event.colorScheme].color,this.eventBackgroundColor=this.config.style.colorSchemes[this.event.colorScheme].backgroundColor;if((n=this.event)!=null&&n.color){this.eventColor="#fff",this.eventBackgroundColor=this.colors[this.event.color];return}this.eventBackgroundColor=this.colors.blue},initDrag(e){var t,n;!this.event.isEditable||this.hasDisabledDragAndDrop||(this.$emit("drag-start"),this.dragMoveListenerNameAndCallbacks.forEach(([i,a])=>{document.addEventListener(i,a)}),we.isUIEventTouchEvent(e)?this.setInitialDragValues((t=e.touches[0])==null?void 0:t.clientX,(n=e.touches[0])==null?void 0:n.clientY):this.setInitialDragValues(e.clientX,e.clientY))},setInitialDragValues(e,t){this.canDrag=!0,this.eventZIndexValue=10,this.clientYDragStart=t,this.clientXDragStart=e,this.timeStartDragStart=this.event.time.start,this.timeEndDragStart=this.event.time.end},onMouseUpWhenDragging(){this.$emit("drag-end"),this.handleDragEnd()},handleDragEnd(){this.canDrag=!1,this.eventZIndexValue="initial",this.dragMoveListenerNameAndCallbacks.forEach(([n,i])=>{document.removeEventListener(n,i)});const e=this.changeInDaysOnDrag<=-1||this.changeInDaysOnDrag>0,t=this.changeInQuartersOnDrag<=-1||this.changeInQuartersOnDrag>0;(e||t)&&this.$emit("event-was-dragged",this.event)},handleDrag(e){this.isResizing||!this.canDrag||!this.clientYDragStart||(we.isUIEventTouchEvent(e)?(this.handleVerticalDrag(e.touches[0].clientY),this.handleHorizontalDrag(e.touches[0].clientX)):(this.handleVerticalDrag(e.clientY),this.handleHorizontalDrag(e.clientX)))},handleVerticalDrag(e){const t=document.querySelector(".calendar-week__events");if(!t||!this.clientYDragStart)return;const n=e-this.clientYDragStart,i=t.clientHeight,a=n/i*100,s=this.timePointsInDay/100*a,r=this.getMinutesFromTimePoints(s);this.changeInQuartersOnDrag=r<0?Math.ceil(r/15):Math.floor(r/15)},handleHorizontalDrag(e){if(!this.dayElement||!this.clientXDragStart)return;const t=this.dayElement.clientWidth,n=e-this.clientXDragStart;this.changeInDaysOnDrag=n<0?Math.ceil(n/t):Math.floor(n/t)},updatePositionOnDrag(){const e=this.changeInQuartersOnDrag*15,t=this.changeInDaysOnDrag*1440;this.event.time.start=this.time.addMinutesToDateTimeString(e+t,this.timeStartDragStart),this.event.time.end=this.time.addMinutesToDateTimeString(e+t,this.timeEndDragStart)}}}),cs=["data-ref"],ds={class:"calendar-week__event-info-wrapper"},us={class:"calendar-week__event-row is-title"},ms={class:"calendar-week__event-row is-time"},hs={key:1,class:"calendar-week__event-row is-location"},fs={key:2,class:"calendar-week__event-row is-with"},gs={key:3,class:"calendar-week__event-row is-topic"},vs={key:4,class:"calendar-week__event-row is-description"},ps=["innerHTML"];function ys(e,t,n,i,a,s){const r=L("font-awesome-icon");return e.isCustomEvent?(m(),f("div",{key:1,style:le(Ae(_e({},e.requiredStyles),{border:e.getBorderRule,color:e.eventColor})),class:U(["calendar-week__event is-event",{"is-editable":e.isEditable,"has-disabled-dnd":e.hasDisabledDragAndDrop}]),onClick:t[7]||(t[7]=(...o)=>e.handleClickOnEvent&&e.handleClickOnEvent(...o)),onMousedown:t[8]||(t[8]=(...o)=>e.initDrag&&e.initDrag(...o)),onTouchstart:t[9]||(t[9]=(...o)=>e.initDrag&&e.initDrag(...o))},[W(e.$slots,"weekDayEvent",{eventData:e.event},void 0,!0)],38)):(m(),f("div",{key:0,class:U(["calendar-week__event is-event",{"is-editable":e.isEditable,"has-disabled-dnd":e.hasDisabledDragAndDrop}]),style:le(Ae(_e({},e.requiredStyles),{border:e.getBorderRule,color:e.eventColor,backgroundColor:e.eventBackgroundColor})),"data-ref":"event-"+e.event.id,onClick:t[2]||(t[2]=(...o)=>e.handleClickOnEvent&&e.handleClickOnEvent(...o)),onMouseenter:t[3]||(t[3]=o=>e.showResizeElements=e.isEditable&&!e.hasDisabledResize),onMouseleave:t[4]||(t[4]=o=>e.showResizeElements=!1),onMousedown:t[5]||(t[5]=(...o)=>e.initDrag&&e.initDrag(...o)),onTouchstart:t[6]||(t[6]=(...o)=>e.initDrag&&e.initDrag(...o))},[w("div",ds,[e.showResizeElements?(m(),f("div",{key:0,class:"calendar-week__event-resize calendar-week__event-resize-up",onMousedown:t[0]||(t[0]=o=>e.resizeEvent("up"))},null,32)):S("",!0),w("div",us,_(e.event.title),1),w("div",ms,[I(r,{icon:e.icons.clock,class:"calendar-week__event-icon"},null,8,["icon"]),w("span",null,_(e.getEventTime),1)]),e.event.location?(m(),f("div",hs,[I(r,{icon:e.icons.location,class:"calendar-week__event-icon"},null,8,["icon"]),w("span",null,_(e.event.location),1)])):S("",!0),e.event.with?(m(),f("div",fs,[I(r,{icon:e.icons.user,class:"calendar-week__event-icon"},null,8,["icon"]),w("span",null,_(e.event.with),1)])):S("",!0),e.event.topic?(m(),f("div",gs,[I(r,{icon:e.icons.topic,class:"calendar-week__event-icon"},null,8,["icon"]),w("span",null,_(e.event.topic),1)])):S("",!0),e.event.description?(m(),f("div",vs,[I(r,{icon:e.icons.description,class:"calendar-week__event-icon"},null,8,["icon"]),w("p",{innerHTML:e.event.description},null,8,ps)])):S("",!0),e.eventIsLongerThan30Minutes?(m(),f("div",{key:5,class:"calendar-week__event-blend-out",style:le({backgroundImage:"linear-gradient(to bottom, transparent, "+e.eventBackgroundColor+")"})},null,4)):S("",!0),e.showResizeElements?(m(),f("div",{key:6,class:"calendar-week__event-resize calendar-week__event-resize-down",onMousedown:t[1]||(t[1]=o=>e.resizeEvent("down"))},null,32)):S("",!0)])],46,cs))}const bs=j(ls,[["render",ys],["__scopeId","data-v-a9092001"]]);class Ds{sortEventsAccordingToStartOfTime(t){function n(i,a){return i.time.starta.time.start?1:0}return t.sort(n)}calculateConcurrencyForEvents(t){const n=this.sortEventsAccordingToStartOfTime(t);if(!n.length)return[];for(const[i,a]of n.entries()){if(i===0)continue;n[i-1];let s=0,r=0;for(;sa.time.start&&r++,s++;r&&(n[i].nOfPreviousConcurrentEvents=r)}for(let i=n.length-1;i>=0;i--){let a=0,s=n.length-1;for(;s>i;)n[s].time.starte.handleClickOnDay&&e.handleClickOnDay(...o),["self"]))},[(m(!0),f(O,null,H(e.events,(o,l)=>(m(),V(r,{key:l,"data-test":"day-event","event-prop":o,day:e.day,time:e.time,config:e.config,"day-info":e.dayInfo,mode:e.mode,onEventWasClicked:t[0]||(t[0]=c=>e.$emit("event-was-clicked",c)),onEventWasDragged:t[1]||(t[1]=c=>e.$emit("event-was-dragged",c)),onEventWasResized:e.handleEventWasResized,onDragStart:t[2]||(t[2]=c=>e.$emit("drag-start")),onDragEnd:t[3]||(t[3]=c=>e.$emit("drag-end"))},{weekDayEvent:B(c=>[W(e.$slots,"weekDayEvent",{eventData:c.eventData},void 0,!0)]),_:2},1032,["event-prop","day","time","config","day-info","mode","onEventWasResized"]))),128)),e.dayIntervals&&e.dayIntervals.displayClickableInterval?(m(!0),f(O,{key:0},H(e.intervals,(o,l)=>(m(),f("div",{id:"interval-"+l,key:o.intervalStart,class:U(["calendar-week__day-interval",{"has-border":o.hasBorder}]),style:le(e.intervalStyles),onClick:c=>e.handleClickOnInterval(o)},_(e.time.getLocalizedTime(o.intervalStart)),15,Ss))),128)):S("",!0)])}const _s=j(ws,[["render",Ts],["__scopeId","data-v-b268be7e"]]),As={x:8,y:26,width:903,height:702,top:26,right:911,bottom:728,left:8},Ms=400;class Cs{calculateFlyoutPosition(t,n,i=null){const a=i||As,s=t.top-a.top,r=a.right-t.right,o=a.bottom-t.bottom,l=t.left-a.left,c=n.width+10,u=o<0?a.bottom-n.height-10:null,d=s<0?a.top+10:null;return o>n.height&&r>c?{top:d||Math.round(t.top),left:Math.round(t.right)+10}:s>n.height&&r>c?{top:u||Math.round(t.bottom)-n.height,left:Math.round(t.right)+10}:l>c&&o>n.height?{top:d||t.top,left:Math.round(t.left-(n.width+10))}:l>c&&s>n.height?{top:u||Math.round(t.bottom-n.height),left:Math.round(t.left-(n.width+10))}:o({})},eventElement:{type:Object,default:null},time:{type:Object,required:!0},config:{type:Object,required:!0}},emits:["hide","edit-event","delete-event"],data(){return{isVisible:!1,top:0,left:0,icons:{clock:Qi,user:qi,description:Ki,trash:Ui,edit:Vi,times:Xi,topic:Gi,location:sn},calendarEvent:this.calendarEventProp,flyoutWidth:Ms+"px",colors:Ge}},computed:{getEventTime(){if(!this.calendarEvent||!this.calendarEvent.time)return null;const e=we.getEventType(this.calendarEvent,this.time);if([K.MULTI_DAY_TIMED].includes(e)){const i=this.getDateFromDateString(this.calendarEvent.time.start)+" "+this.time.getLocalizedTime(this.calendarEvent.time.start),a=this.getDateFromDateString(this.calendarEvent.time.end)+" "+this.time.getLocalizedTime(this.calendarEvent.time.end);return`${i} - ${a}`}if([K.SINGLE_DAY_FULL_DAY,K.MULTI_DAY_FULL_DAY].includes(e)){const i=this.getDateFromDateString(this.calendarEvent.time.start),a=this.getDateFromDateString(this.calendarEvent.time.end);return i===a?i:`${i} - ${a}`}const t=this.getDateFromDateString(this.calendarEvent.time.start),n=this.time.getLocalizedTimeRange(this.calendarEvent.time.start,this.calendarEvent.time.end);return`${t} \u22C5 ${n}`},eventFlyoutInlineStyles(){return typeof this.top=="number"&&!this.left?{top:this.top+"px",left:"50%",position:"fixed",transform:"translateX(-50%)"}:{top:this.top+"px",left:this.left+"px",position:"fixed"}},isEditable(){var e;return((e=this.calendarEventProp)==null?void 0:e.isEditable)||!1},eventBackgroundColor(){var e,t,n;return(e=this.calendarEvent)!=null&&e.colorScheme&&(t=this.config.style)!=null&&t.colorSchemes&&this.config.style.colorSchemes[this.calendarEvent.colorScheme]?this.config.style.colorSchemes[this.calendarEvent.colorScheme].backgroundColor:this.colors[((n=this.calendarEvent)==null?void 0:n.color)||"blue"]}},watch:{calendarEventProp:{deep:!0,handler(e){setTimeout(()=>{this.calendarEvent=e,this.isVisible=!!e,this.$nextTick(()=>this.setFlyoutPosition())},10)}}},mounted(){this.listenForClickOutside()},beforeUnmount(){document.removeEventListener("click",this.closeFlyoutOnClickOutside)},methods:{setFlyoutPosition(){var e,t;const n=(e=this.eventElement)==null?void 0:e.closest(".calendar-root"),i=document.querySelector(".event-flyout");if(!this.eventElement)return;const a=xs.calculateFlyoutPosition((t=this.eventElement)==null?void 0:t.getBoundingClientRect(),{height:(i==null?void 0:i.clientHeight)||300,width:(i==null?void 0:i.clientWidth)||0},n?n.getBoundingClientRect():null);this.top=typeof(a==null?void 0:a.top)=="number"?a.top:null,this.left=typeof(a==null?void 0:a.left)=="number"?a.left:null},editEvent(){var e;this.$emit("edit-event",(e=this.calendarEvent)==null?void 0:e.id),this.closeFlyout()},deleteEvent(){var e;this.$emit("delete-event",(e=this.calendarEvent)==null?void 0:e.id),this.closeFlyout()},closeFlyout(){this.isVisible=!1,setTimeout(()=>{this.$emit("hide")},100)},getDateFromDateString(e){const{year:t,month:n,date:i}=this.time.getAllVariablesFromDateTimeString(e);return new Date(t,n,i).toLocaleDateString(this.time.CALENDAR_LOCALE,{year:"numeric",month:"long",day:"numeric"})},listenForClickOutside(){document.addEventListener("click",this.closeFlyoutOnClickOutside)},closeFlyoutOnClickOutside(e){var r;var t;const n=document.querySelector(".event-flyout");if(!n||!this.isVisible)return;const i=!n.contains(e.target),a=!!e.target.closest(".is-event"),s=(r=(t=this.config.eventDialog)==null?void 0:t.closeOnClickOutside)!=null?r:!0;this.isVisible&&i&&!a&&s&&this.closeFlyout()}}}),Gn=()=>{Re(e=>({"7c0b2114":e.flyoutWidth}))},Kn=dn.setup;dn.setup=Kn?(e,t)=>(Gn(),Kn(e,t)):Gn;const Ls={key:0,class:"event-flyout__relative-wrapper"},Rs={class:"event-flyout__menu"},Fs={key:0,class:"event-flyout__menu-editable"},Ys={class:"event-flyout__menu-close"},Ns={key:0,class:"event-flyout__info-wrapper"},Ws={key:0,class:"event-flyout__row is-title"},zs={key:1,class:"event-flyout__row is-time"},Hs={key:2,class:"event-flyout__row is-location"},js={key:3,class:"event-flyout__row is-with"},$s={key:4,class:"event-flyout__row is-topic"},Bs={key:5,class:"event-flyout__row is-description"},Xs=["innerHTML"];function Us(e,t,n,i,a,s){const r=L("font-awesome-icon");return m(),f("div",{class:U(["event-flyout",{"is-visible":e.isVisible,"is-not-editable":!e.isEditable}]),style:le(e.eventFlyoutInlineStyles)},[!e.config.eventDialog||!e.config.eventDialog.isCustom?(m(),f("div",Ls,[w("div",Rs,[e.isEditable?(m(),f("span",Fs,[I(r,{class:"event-flyout__menu-item is-edit-icon",icon:e.icons.edit,onClick:e.editEvent},null,8,["icon","onClick"]),I(r,{class:"event-flyout__menu-item is-trash-icon",icon:e.icons.trash,onClick:e.deleteEvent},null,8,["icon","onClick"])])):S("",!0),w("span",Ys,[I(r,{class:"event-flyout__menu-item is-times-icon",icon:e.icons.times,onClick:e.closeFlyout},null,8,["icon","onClick"])])]),e.calendarEvent?(m(),f("div",Ns,[e.calendarEvent.title?(m(),f("div",Ws,[w("div",{class:"event-flyout__color-icon",style:le({backgroundColor:e.eventBackgroundColor})},null,4),se(" "+_(e.calendarEvent.title),1)])):S("",!0),e.calendarEvent.time?(m(),f("div",zs,_(e.getEventTime),1)):S("",!0),e.calendarEvent.location?(m(),f("div",Hs,[I(r,{icon:e.icons.location},null,8,["icon"]),se(" "+_(e.calendarEvent.location),1)])):S("",!0),e.calendarEvent.with?(m(),f("div",js,[I(r,{icon:e.icons.user},null,8,["icon"]),se(" "+_(e.calendarEvent.with),1)])):S("",!0),e.calendarEvent.topic?(m(),f("div",$s,[I(r,{icon:e.icons.topic,class:"calendar-week__event-icon"},null,8,["icon"]),se(" "+_(e.calendarEvent.topic),1)])):S("",!0),e.calendarEvent.description?(m(),f("div",Bs,[I(r,{icon:e.icons.description,class:"calendar-week__event-icon"},null,8,["icon"]),w("p",{innerHTML:e.calendarEvent.description},null,8,Xs)])):S("",!0)])):S("",!0)])):W(e.$slots,"default",{key:1,eventDialogData:e.calendarEvent,closeEventDialog:e.closeFlyout},void 0,!0)],6)}const Ji=j(dn,[["render",Us],["__scopeId","data-v-d6a61e37"]]);class Zi extends ae{positionFullDayEventsInWeek(t,n,i){const a=i.map(o=>{const{year:l,month:c,date:u}=this.getAllVariablesFromDateTimeString(o.time.start),{year:d,month:v,date:D}=this.getAllVariablesFromDateTimeString(o.time.end);return o.timeJS={start:new Date(l,c,u),end:new Date(d,v,D)},o}).sort((o,l)=>o.time.startl.time.start?1:0),s=this.getDatesBetweenTwoDates(t,n).map(o=>({date:o}));for(const o of a)for(const[l,c]of s.entries()){const u=this.getDateStringFromDate(c.date);if(this.getDateStringFromDate(o.timeJS.start)<=u&&this.getDateStringFromDate(o.timeJS.end)>=u){let d=1;for(;typeof s[l][`level${d}`]<"u";)d++;let v=Math.ceil((o.timeJS.end.getTime()-c.date.getTime())/this.MS_PER_DAY)+1;const D=s.length-l;v>D&&(v=D),s[l][`level${d}`]=Ae(_e({},o),{nDays:v});for(let b=1;b(l[c]=o[c],l),{}));return r}positionFullDayEventsInMonth(t,n){const i=[],a=t.flat(),s=new Map;a.forEach(o=>s.set(this.dateStringFrom(o.dateTimeString),o)),n=n.sort((o,l)=>o.time.startl.time.start?-1:0);for(const o of n){const{year:l,month:c,date:u}=this.getAllVariablesFromDateTimeString(o.time.start),{year:d,month:v,date:D}=this.getAllVariablesFromDateTimeString(o.time.end),b=this.getDatesBetweenTwoDates(new Date(l,c,u),new Date(d,v,D));for(const k of b){const E=this.getDateStringFromDate(k),h=s.get(E);h&&s.set(E,Ae(_e({},h),{events:[o,...h.events]}))}}let r=0;return s.forEach(o=>{i.length?i[r]&&i[r].length<7?i[r].push(o):i[r]&&i[r].length===7&&(i.push([o]),r++):i.push([o])}),i}}/*! - * perfect-scrollbar v1.5.3 - * Copyright 2021 Hyunje Jun, MDBootstrap and Contributors - * Licensed under MIT - */function ie(e){return getComputedStyle(e)}function X(e,t){for(var n in t){var i=t[n];typeof i=="number"&&(i=i+"px"),e.style[n]=i}return e}function ut(e){var t=document.createElement("div");return t.className=e,t}var Qn=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function pe(e,t){if(!Qn)throw new Error("No element matching method supported");return Qn.call(e,t)}function Pe(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function Jn(e,t){return Array.prototype.filter.call(e.children,function(n){return pe(n,t)})}var R={main:"ps",rtl:"ps__rtl",element:{thumb:function(e){return"ps__thumb-"+e},rail:function(e){return"ps__rail-"+e},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(e){return"ps--active-"+e},scrolling:function(e){return"ps--scrolling-"+e}}},ea={x:null,y:null};function ta(e,t){var n=e.element.classList,i=R.state.scrolling(t);n.contains(i)?clearTimeout(ea[t]):n.add(i)}function na(e,t){ea[t]=setTimeout(function(){return e.isAlive&&e.element.classList.remove(R.state.scrolling(t))},e.settings.scrollingThreshold)}function Vs(e,t){ta(e,t),na(e,t)}var et=function(e){this.element=e,this.handlers={}},ia={isEmpty:{configurable:!0}};et.prototype.bind=function(e,t){typeof this.handlers[e]>"u"&&(this.handlers[e]=[]),this.handlers[e].push(t),this.element.addEventListener(e,t,!1)};et.prototype.unbind=function(e,t){var n=this;this.handlers[e]=this.handlers[e].filter(function(i){return t&&i!==t?!0:(n.element.removeEventListener(e,i,!1),!1)})};et.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)};ia.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every(function(t){return e.handlers[t].length===0})};Object.defineProperties(et.prototype,ia);var Ye=function(){this.eventElements=[]};Ye.prototype.eventElement=function(e){var t=this.eventElements.filter(function(n){return n.element===e})[0];return t||(t=new et(e),this.eventElements.push(t)),t};Ye.prototype.bind=function(e,t,n){this.eventElement(e).bind(t,n)};Ye.prototype.unbind=function(e,t,n){var i=this.eventElement(e);i.unbind(t,n),i.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(i),1)};Ye.prototype.unbindAll=function(){this.eventElements.forEach(function(e){return e.unbindAll()}),this.eventElements=[]};Ye.prototype.once=function(e,t,n){var i=this.eventElement(e),a=function(s){i.unbind(t,a),n(s)};i.bind(t,a)};function mt(e){if(typeof window.CustomEvent=="function")return new CustomEvent(e);var t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}function kt(e,t,n,i,a){i===void 0&&(i=!0),a===void 0&&(a=!1);var s;if(t==="top")s=["contentHeight","containerHeight","scrollTop","y","up","down"];else if(t==="left")s=["contentWidth","containerWidth","scrollLeft","x","left","right"];else throw new Error("A proper axis should be provided");qs(e,n,s,i,a)}function qs(e,t,n,i,a){var s=n[0],r=n[1],o=n[2],l=n[3],c=n[4],u=n[5];i===void 0&&(i=!0),a===void 0&&(a=!1);var d=e.element;e.reach[l]=null,d[o]<1&&(e.reach[l]="start"),d[o]>e[s]-e[r]-1&&(e.reach[l]="end"),t&&(d.dispatchEvent(mt("ps-scroll-"+l)),t<0?d.dispatchEvent(mt("ps-scroll-"+c)):t>0&&d.dispatchEvent(mt("ps-scroll-"+u)),i&&Vs(e,l)),e.reach[l]&&(t||a)&&d.dispatchEvent(mt("ps-"+l+"-reach-"+e.reach[l]))}function P(e){return parseInt(e,10)||0}function Gs(e){return pe(e,"input,[contenteditable]")||pe(e,"select,[contenteditable]")||pe(e,"textarea,[contenteditable]")||pe(e,"button,[contenteditable]")}function Ks(e){var t=ie(e);return P(t.width)+P(t.paddingLeft)+P(t.paddingRight)+P(t.borderLeftWidth)+P(t.borderRightWidth)}var Me={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function me(e){var t=e.element,n=Math.floor(t.scrollTop),i=t.getBoundingClientRect();e.containerWidth=Math.round(i.width),e.containerHeight=Math.round(i.height),e.contentWidth=t.scrollWidth,e.contentHeight=t.scrollHeight,t.contains(e.scrollbarXRail)||(Jn(t,R.element.rail("x")).forEach(function(a){return Pe(a)}),t.appendChild(e.scrollbarXRail)),t.contains(e.scrollbarYRail)||(Jn(t,R.element.rail("y")).forEach(function(a){return Pe(a)}),t.appendChild(e.scrollbarYRail)),!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),Qs(t,e),e.scrollbarXActive?t.classList.add(R.state.active("x")):(t.classList.remove(R.state.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,t.scrollLeft=e.isRtl===!0?e.contentWidth:0),e.scrollbarYActive?t.classList.add(R.state.active("y")):(t.classList.remove(R.state.active("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,t.scrollTop=0)}function Zn(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}function Qs(e,t){var n={width:t.railXWidth},i=Math.floor(e.scrollTop);t.isRtl?n.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth-t.contentWidth:n.left=e.scrollLeft,t.isScrollbarXUsingBottom?n.bottom=t.scrollbarXBottom-i:n.top=t.scrollbarXTop+i,X(t.scrollbarXRail,n);var a={top:i,height:t.railYHeight};t.isScrollbarYUsingRight?t.isRtl?a.right=t.contentWidth-(t.negativeScrollAdjustment+e.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth-9:a.right=t.scrollbarYRight-e.scrollLeft:t.isRtl?a.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth*2-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:a.left=t.scrollbarYLeft+e.scrollLeft,X(t.scrollbarYRail,a),X(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),X(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}function Js(e){e.element,e.event.bind(e.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),e.event.bind(e.scrollbarYRail,"mousedown",function(t){var n=t.pageY-window.pageYOffset-e.scrollbarYRail.getBoundingClientRect().top,i=n>e.scrollbarYTop?1:-1;e.element.scrollTop+=i*e.containerHeight,me(e),t.stopPropagation()}),e.event.bind(e.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),e.event.bind(e.scrollbarXRail,"mousedown",function(t){var n=t.pageX-window.pageXOffset-e.scrollbarXRail.getBoundingClientRect().left,i=n>e.scrollbarXLeft?1:-1;e.element.scrollLeft+=i*e.containerWidth,me(e),t.stopPropagation()})}function Zs(e){ei(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),ei(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])}function ei(e,t){var n=t[0],i=t[1],a=t[2],s=t[3],r=t[4],o=t[5],l=t[6],c=t[7],u=t[8],d=e.element,v=null,D=null,b=null;function k(g){g.touches&&g.touches[0]&&(g[a]=g.touches[0].pageY),d[l]=v+b*(g[a]-D),ta(e,c),me(e),g.stopPropagation(),g.type.startsWith("touch")&&g.changedTouches.length>1&&g.preventDefault()}function E(){na(e,c),e[u].classList.remove(R.state.clicking),e.event.unbind(e.ownerDocument,"mousemove",k)}function h(g,T){v=d[l],T&&g.touches&&(g[a]=g.touches[0].pageY),D=g[a],b=(e[i]-e[n])/(e[s]-e[o]),T?e.event.bind(e.ownerDocument,"touchmove",k):(e.event.bind(e.ownerDocument,"mousemove",k),e.event.once(e.ownerDocument,"mouseup",E),g.preventDefault()),e[u].classList.add(R.state.clicking),g.stopPropagation()}e.event.bind(e[r],"mousedown",function(g){h(g)}),e.event.bind(e[r],"touchstart",function(g){h(g,!0)})}function el(e){var t=e.element,n=function(){return pe(t,":hover")},i=function(){return pe(e.scrollbarX,":focus")||pe(e.scrollbarY,":focus")};function a(s,r){var o=Math.floor(t.scrollTop);if(s===0){if(!e.scrollbarYActive)return!1;if(o===0&&r>0||o>=e.contentHeight-e.containerHeight&&r<0)return!e.settings.wheelPropagation}var l=t.scrollLeft;if(r===0){if(!e.scrollbarXActive)return!1;if(l===0&&s<0||l>=e.contentWidth-e.containerWidth&&s>0)return!e.settings.wheelPropagation}return!0}e.event.bind(e.ownerDocument,"keydown",function(s){if(!(s.isDefaultPrevented&&s.isDefaultPrevented()||s.defaultPrevented)&&!(!n()&&!i())){var r=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(r){if(r.tagName==="IFRAME")r=r.contentDocument.activeElement;else for(;r.shadowRoot;)r=r.shadowRoot.activeElement;if(Gs(r))return}var o=0,l=0;switch(s.which){case 37:s.metaKey?o=-e.contentWidth:s.altKey?o=-e.containerWidth:o=-30;break;case 38:s.metaKey?l=e.contentHeight:s.altKey?l=e.containerHeight:l=30;break;case 39:s.metaKey?o=e.contentWidth:s.altKey?o=e.containerWidth:o=30;break;case 40:s.metaKey?l=-e.contentHeight:s.altKey?l=-e.containerHeight:l=-30;break;case 32:s.shiftKey?l=e.containerHeight:l=-e.containerHeight;break;case 33:l=e.containerHeight;break;case 34:l=-e.containerHeight;break;case 36:l=e.contentHeight;break;case 35:l=-e.contentHeight;break;default:return}e.settings.suppressScrollX&&o!==0||e.settings.suppressScrollY&&l!==0||(t.scrollTop-=l,t.scrollLeft+=o,me(e),a(o,l)&&s.preventDefault())}})}function tl(e){var t=e.element;function n(r,o){var l=Math.floor(t.scrollTop),c=t.scrollTop===0,u=l+t.offsetHeight===t.scrollHeight,d=t.scrollLeft===0,v=t.scrollLeft+t.offsetWidth===t.scrollWidth,D;return Math.abs(o)>Math.abs(r)?D=c||u:D=d||v,D?!e.settings.wheelPropagation:!0}function i(r){var o=r.deltaX,l=-1*r.deltaY;return(typeof o>"u"||typeof l>"u")&&(o=-1*r.wheelDeltaX/6,l=r.wheelDeltaY/6),r.deltaMode&&r.deltaMode===1&&(o*=10,l*=10),o!==o&&l!==l&&(o=0,l=r.wheelDelta),r.shiftKey?[-l,-o]:[o,l]}function a(r,o,l){if(!Me.isWebKit&&t.querySelector("select:focus"))return!0;if(!t.contains(r))return!1;for(var c=r;c&&c!==t;){if(c.classList.contains(R.element.consuming))return!0;var u=ie(c);if(l&&u.overflowY.match(/(scroll|auto)/)){var d=c.scrollHeight-c.clientHeight;if(d>0&&(c.scrollTop>0&&l<0||c.scrollTop0))return!0}if(o&&u.overflowX.match(/(scroll|auto)/)){var v=c.scrollWidth-c.clientWidth;if(v>0&&(c.scrollLeft>0&&o<0||c.scrollLeft0))return!0}c=c.parentNode}return!1}function s(r){var o=i(r),l=o[0],c=o[1];if(!a(r.target,l,c)){var u=!1;e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(c?t.scrollTop-=c*e.settings.wheelSpeed:t.scrollTop+=l*e.settings.wheelSpeed,u=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(l?t.scrollLeft+=l*e.settings.wheelSpeed:t.scrollLeft-=c*e.settings.wheelSpeed,u=!0):(t.scrollTop-=c*e.settings.wheelSpeed,t.scrollLeft+=l*e.settings.wheelSpeed),me(e),u=u||n(l,c),u&&!r.ctrlKey&&(r.stopPropagation(),r.preventDefault())}}typeof window.onwheel<"u"?e.event.bind(t,"wheel",s):typeof window.onmousewheel<"u"&&e.event.bind(t,"mousewheel",s)}function nl(e){if(!Me.supportsTouch&&!Me.supportsIePointer)return;var t=e.element;function n(b,k){var E=Math.floor(t.scrollTop),h=t.scrollLeft,g=Math.abs(b),T=Math.abs(k);if(T>g){if(k<0&&E===e.contentHeight-e.containerHeight||k>0&&E===0)return window.scrollY===0&&k>0&&Me.isChrome}else if(g>T&&(b<0&&h===e.contentWidth-e.containerWidth||b>0&&h===0))return!0;return!0}function i(b,k){t.scrollTop-=k,t.scrollLeft-=b,me(e)}var a={},s=0,r={},o=null;function l(b){return b.targetTouches?b.targetTouches[0]:b}function c(b){return b.pointerType&&b.pointerType==="pen"&&b.buttons===0?!1:!!(b.targetTouches&&b.targetTouches.length===1||b.pointerType&&b.pointerType!=="mouse"&&b.pointerType!==b.MSPOINTER_TYPE_MOUSE)}function u(b){if(c(b)){var k=l(b);a.pageX=k.pageX,a.pageY=k.pageY,s=new Date().getTime(),o!==null&&clearInterval(o)}}function d(b,k,E){if(!t.contains(b))return!1;for(var h=b;h&&h!==t;){if(h.classList.contains(R.element.consuming))return!0;var g=ie(h);if(E&&g.overflowY.match(/(scroll|auto)/)){var T=h.scrollHeight-h.clientHeight;if(T>0&&(h.scrollTop>0&&E<0||h.scrollTop0))return!0}if(k&&g.overflowX.match(/(scroll|auto)/)){var A=h.scrollWidth-h.clientWidth;if(A>0&&(h.scrollLeft>0&&k<0||h.scrollLeft0))return!0}h=h.parentNode}return!1}function v(b){if(c(b)){var k=l(b),E={pageX:k.pageX,pageY:k.pageY},h=E.pageX-a.pageX,g=E.pageY-a.pageY;if(d(b.target,h,g))return;i(h,g),a=E;var T=new Date().getTime(),A=T-s;A>0&&(r.x=h/A,r.y=g/A,s=T),n(h,g)&&b.preventDefault()}}function D(){e.settings.swipeEasing&&(clearInterval(o),o=setInterval(function(){if(e.isInitialized){clearInterval(o);return}if(!r.x&&!r.y){clearInterval(o);return}if(Math.abs(r.x)<.01&&Math.abs(r.y)<.01){clearInterval(o);return}if(!e.element){clearInterval(o);return}i(r.x*30,r.y*30),r.x*=.8,r.y*=.8},10))}Me.supportsTouch?(e.event.bind(t,"touchstart",u),e.event.bind(t,"touchmove",v),e.event.bind(t,"touchend",D)):Me.supportsIePointer&&(window.PointerEvent?(e.event.bind(t,"pointerdown",u),e.event.bind(t,"pointermove",v),e.event.bind(t,"pointerup",D)):window.MSPointerEvent&&(e.event.bind(t,"MSPointerDown",u),e.event.bind(t,"MSPointerMove",v),e.event.bind(t,"MSPointerUp",D)))}var il=function(){return{handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1}},al={"click-rail":Js,"drag-thumb":Zs,keyboard:el,wheel:tl,touch:nl},Ne=function(e,t){var n=this;if(t===void 0&&(t={}),typeof e=="string"&&(e=document.querySelector(e)),!e||!e.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");this.element=e,e.classList.add(R.main),this.settings=il();for(var i in t)this.settings[i]=t[i];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var a=function(){return e.classList.add(R.state.focus)},s=function(){return e.classList.remove(R.state.focus)};this.isRtl=ie(e).direction==="rtl",this.isRtl===!0&&e.classList.add(R.rtl),this.isNegativeScroll=function(){var l=e.scrollLeft,c=null;return e.scrollLeft=-1,c=e.scrollLeft<0,e.scrollLeft=l,c}(),this.negativeScrollAdjustment=this.isNegativeScroll?e.scrollWidth-e.clientWidth:0,this.event=new Ye,this.ownerDocument=e.ownerDocument||document,this.scrollbarXRail=ut(R.element.rail("x")),e.appendChild(this.scrollbarXRail),this.scrollbarX=ut(R.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",a),this.event.bind(this.scrollbarX,"blur",s),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var r=ie(this.scrollbarXRail);this.scrollbarXBottom=parseInt(r.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=P(r.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=P(r.borderLeftWidth)+P(r.borderRightWidth),X(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=P(r.marginLeft)+P(r.marginRight),X(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=ut(R.element.rail("y")),e.appendChild(this.scrollbarYRail),this.scrollbarY=ut(R.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",a),this.event.bind(this.scrollbarY,"blur",s),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var o=ie(this.scrollbarYRail);this.scrollbarYRight=parseInt(o.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=P(o.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?Ks(this.scrollbarY):null,this.railBorderYWidth=P(o.borderTopWidth)+P(o.borderBottomWidth),X(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=P(o.marginTop)+P(o.marginBottom),X(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:e.scrollLeft<=0?"start":e.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:e.scrollTop<=0?"start":e.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(l){return al[l](n)}),this.lastScrollTop=Math.floor(e.scrollTop),this.lastScrollLeft=e.scrollLeft,this.event.bind(this.element,"scroll",function(l){return n.onScroll(l)}),me(this)};Ne.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,X(this.scrollbarXRail,{display:"block"}),X(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=P(ie(this.scrollbarXRail).marginLeft)+P(ie(this.scrollbarXRail).marginRight),this.railYMarginHeight=P(ie(this.scrollbarYRail).marginTop)+P(ie(this.scrollbarYRail).marginBottom),X(this.scrollbarXRail,{display:"none"}),X(this.scrollbarYRail,{display:"none"}),me(this),kt(this,"top",0,!1,!0),kt(this,"left",0,!1,!0),X(this.scrollbarXRail,{display:""}),X(this.scrollbarYRail,{display:""}))};Ne.prototype.onScroll=function(e){this.isAlive&&(me(this),kt(this,"top",this.element.scrollTop-this.lastScrollTop),kt(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)};Ne.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),Pe(this.scrollbarX),Pe(this.scrollbarY),Pe(this.scrollbarXRail),Pe(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)};Ne.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(e){return!e.match(/^ps([-_].+|)$/)}).join(" ")};class ti{constructor(t){this.events=t}getEventsForDay(t,n){return this.events.filter(i=>this.isEventInDayBoundaries(i,t,n))}isEventInDayBoundaries(t,n,i){const a=n.dateStringFrom(t.time.start)===n.dateStringFrom(i);return n.dayMode===q.REGULAR?a:a&&n.dayMode===q.SHORTENED?this.handlePartialDayWithinOneDayBoundary(n,t):n.dayMode===q.FLEXIBLE?this.handleDayStretchingTwoDates(n,t,i,a):!1}handleDayStretchingTwoDates(t,n,i,a){const{hour:s}=t.getHourAndMinutesFromTimePoints(t.DAY_START),{hour:r}=t.getHourAndMinutesFromTimePoints(t.DAY_END),{hour:o}=t.getAllVariablesFromDateTimeString(n.time.start),l=t.addDaysToDateTimeString(1,i),c=n.time.start.substring(0,11)===l.substring(0,11);return a&&o>=s||c&&o=i&&s=i?t-i:24-i+t}static eventSeparator(t,n){const i=[],a=[];for(const s of t){const r=we.getEventType(s,n);[K.SINGLE_DAY_TIMED,K.SINGLE_HYBRID_DAY_TIMED].includes(r)?i.push(s):a.push(s)}return{fullDayAndMultipleDayEvents:a,singleDayTimedEvents:i}}}const rl=new Zi,un=N({name:"Week",components:{Day:_s,WeekTimeline:os,DayTimeline:Vo,EventFlyout:Ji},props:{config:{type:Object,required:!0},eventsProp:{type:Array,default:()=>[]},period:{type:Object,required:!0},modeProp:{type:String,default:"week"},time:{type:Object,required:!0}},emits:["event-was-clicked","event-was-resized","event-was-dragged","edit-event","delete-event","interval-was-clicked","day-was-clicked","datetime-was-clicked"],data(){var e;return{days:[],mode:this.modeProp,selectedEvent:null,selectedEventElement:null,events:this.eventsProp,fullDayEvents:[],weekVersion:0,dayIntervals:{length:60,height:66},weekHeight:"1584px",scrollbar:null,currentTimePercentage:0,showCurrentTime:!!((e=this.config)!=null&&e.showCurrentTime)}},computed:{hasCustomCurrentTimeSlot(){return we.hasSlotContent(this.$slots.customCurrentTime)},nDays(){var e,t;return((t=(e=this.config)==null?void 0:e.week)==null?void 0:t.nDays)||7}},watch:{period:{deep:!0,handler(){this.setInitialEvents(this.mode)}},modeProp:{deep:!0,handler(e){this.mode=e,this.setInitialEvents(e)}}},mounted(){var e;this.setDayIntervals(),this.separateFullDayEventsFromOtherEvents(),this.setInitialEvents(this.modeProp),this.scrollOnMount(),this.initScrollbar(),((e=this.config)!=null&&e.showCurrentTime||this.hasCustomCurrentTimeSlot)&&this.setCurrentTime()},methods:{initScrollbar(e=0){const t=document.querySelector(".calendar-week__wrapper");e>3e3||(t?(this.scrollbar=new Ne(t),this.scrollbar.update()):this.initScrollbar(e+50))},destroyScrollbarAndHideOverflow(){const e=document.querySelector(".calendar-week__wrapper");e instanceof HTMLElement&&(e.style.overflowY="hidden",this.scrollbar.destroy())},separateFullDayEventsFromOtherEvents(){const{singleDayTimedEvents:e,fullDayAndMultipleDayEvents:t}=ni.eventSeparator(this.events,this.time);this.events=e,this.positionFullDayEvents(t)},positionFullDayEvents(e){const t=this.nDays===5?new Date(this.period.end.getFullYear(),this.period.end.getMonth(),this.period.end.getDate()-2):this.period.end;this.fullDayEvents=e.length?rl.positionFullDayEventsInWeek(this.period.start,t,e):[]},setDays(){const e=this.time.getCalendarWeekDateObjects(this.period.start).map(t=>{const n=this.time.getLocalizedNameOfWeekday(t,"long"),i=this.time.getDateTimeStringFromDate(t,"start"),a=new ti(this.events).getEventsForDay(this.time,i);return{dayName:n,dateTimeString:i,events:a}});this.nDays===5&&this.time.FIRST_DAY_OF_WEEK===Ot.MONDAY?(e.splice(5,2),this.fullDayEvents.splice(5,2)):this.nDays===5&&this.time.FIRST_DAY_OF_WEEK===Ot.SUNDAY&&(e.splice(6,1),this.fullDayEvents.splice(6,1),e.splice(0,1),this.fullDayEvents.splice(0,1)),this.days=e},mergeFullDayEventsIntoDays(){for(const[e]of this.days.entries())this.days[e].fullDayEvents=this.fullDayEvents[e]},setDay(){const e=this.time.getDateTimeStringFromDate(this.period.selectedDate);if(this.days=[{dayName:new Date(this.period.selectedDate).toLocaleDateString(this.time.CALENDAR_LOCALE,{weekday:"long"}),dateTimeString:this.time.getDateTimeStringFromDate(this.period.selectedDate,"start"),events:new ti(this.events).getEventsForDay(this.time,e)}],!!this.fullDayEvents.length){for(const t of this.fullDayEvents)if(this.time.getDateTimeStringFromDate(t.date).substring(0,11)===e.substring(0,11)){this.fullDayEvents=[t];return}}},setInitialEvents(e){e==="day"&&this.setDay(),e==="week"&&this.setDays(),this.mergeFullDayEventsIntoDays()},handleClickOnEvent(e){this.$emit("event-was-clicked",e),this.selectedEventElement=e.eventElement,this.selectedEvent=e.clickedEvent},handleEventWasDragged(e){this.initScrollbar();const t=e;delete t.totalConcurrentEvents,delete t.nOfPreviousConcurrentEvents;const n=this.events.filter(i=>i.id!==e.id);this.events=[t,...n.map(i=>(delete i.nOfPreviousConcurrentEvents,delete i.totalConcurrentEvents,i))],this.setInitialEvents(this.mode),this.weekVersion=this.weekVersion+1,this.$emit("event-was-dragged",e)},scrollOnMount(){var e;if(typeof((e=this.config.week)==null?void 0:e.scrollToHour)!="number")return;const t=document.querySelector(".calendar-week__wrapper");t&&this.$nextTick(()=>{const n=+this.weekHeight.split("p")[0]/this.time.HOURS_PER_DAY,i=ni.getNHoursIntoDayFromHour(this.config.week.scrollToHour,this.time),a=n*i;t.scroll(0,a-10)})},setDayIntervals(){if(this.config.dayIntervals)for(const[e,t]of Object.entries(this.config.dayIntervals))this.dayIntervals[e]=t;this.setWeekHeightBasedOnIntervals()},setWeekHeightBasedOnIntervals(){[15,30,60].includes(this.dayIntervals.length)||(this.dayIntervals.length=60,this.dayIntervals.height=66,console.warn("The dayIntervals configuration is faulty. It has been reset to default values."));let e=1;this.dayIntervals.length===15&&(e=4),this.dayIntervals.length===30&&(e=2),this.weekHeight=this.dayIntervals.height*e*this.time.HOURS_PER_DAY+"px"},setCurrentTime(){const e=()=>{const t=this.time.getDateTimeStringFromDate(new Date),n=this.time.getPercentageOfDayFromDateTimeString(t,this.time.DAY_START,this.time.DAY_END);if(n<0||n>100)return this.showCurrentTime=!1;this.showCurrentTime=!0,this.currentTimePercentage=n};e(),setInterval(()=>e(),6e4)}}}),ii=()=>{Re(e=>({"5cb5d057":e.weekHeight}))},ai=un.setup;un.setup=ai?(e,t)=>(ii(),ai(e,t)):ii;const ol=e=>(mi("data-v-8bb6ad05"),e=e(),hi(),e),sl={class:"calendar-week__wrapper"},ll={class:"calendar-week"},cl=ol(()=>w("div",{class:"current-time-line__circle"},null,-1)),dl=[cl],ul={class:"calendar-week__events"};function ml(e,t,n,i,a,s){const r=L("WeekTimeline"),o=L("EventFlyout"),l=L("DayTimeline"),c=L("Day");return m(),f(O,null,[I(r,{days:e.days,time:e.time,"full-day-events":e.fullDayEvents,config:e.config,mode:e.mode,onEventWasClicked:e.handleClickOnEvent,onDayWasClicked:t[0]||(t[0]=u=>e.$emit("day-was-clicked",u))},null,8,["days","time","full-day-events","config","mode","onEventWasClicked"]),w("div",sl,[!e.config.eventDialog||!e.config.eventDialog.isDisabled?(m(),V(o,{key:0,"calendar-event-prop":e.selectedEvent,"event-element":e.selectedEventElement,time:e.time,config:e.config,onHide:t[1]||(t[1]=u=>e.selectedEvent=null),onEditEvent:t[2]||(t[2]=u=>e.$emit("edit-event",u)),onDeleteEvent:t[3]||(t[3]=u=>e.$emit("delete-event",u))},{default:B(u=>[W(e.$slots,"eventDialog",{eventDialogData:u.eventDialogData,closeEventDialog:u.closeEventDialog},void 0,!0)]),_:3},8,["calendar-event-prop","event-element","time","config"])):S("",!0),w("section",ll,[e.hasCustomCurrentTimeSlot&&e.showCurrentTime?(m(),f("div",{key:0,class:"custom-current-time",style:le({top:`${e.currentTimePercentage}%`})},[W(e.$slots,"customCurrentTime",{},void 0,!0)],4)):e.config&&e.config.showCurrentTime&&e.showCurrentTime?(m(),f("div",{key:1,class:"current-time-line",style:le({top:`${e.currentTimePercentage}%`})},dl,4)):S("",!0),(m(),V(l,{key:e.period.start.getTime()+e.period.end.getTime()+e.mode,time:e.time,"day-intervals":e.dayIntervals,"week-height":e.weekHeight},null,8,["time","day-intervals","week-height"])),w("div",ul,[(m(!0),f(O,null,H(e.days,(u,d)=>(m(),V(c,{key:u.dateTimeString+e.mode+e.weekVersion,day:u,time:e.time,config:e.config,"day-info":{daysTotalN:e.days.length,thisDayIndex:d,dateTimeString:u.dateTimeString},mode:e.mode,"day-intervals":e.dayIntervals,"week-height":+e.weekHeight.replace("px",""),onEventWasClicked:e.handleClickOnEvent,onEventWasResized:t[4]||(t[4]=v=>e.$emit("event-was-resized",v)),onEventWasDragged:e.handleEventWasDragged,onIntervalWasClicked:t[5]||(t[5]=v=>e.$emit("interval-was-clicked",v)),onDayWasClicked:t[6]||(t[6]=v=>e.$emit("day-was-clicked",v)),onDragStart:e.destroyScrollbarAndHideOverflow,onDragEnd:e.initScrollbar,onDatetimeWasClicked:t[7]||(t[7]=v=>e.$emit("datetime-was-clicked",v))},{weekDayEvent:B(v=>[W(e.$slots,"weekDayEvent",{eventData:v.eventData},void 0,!0)]),_:2},1032,["day","time","config","day-info","mode","day-intervals","week-height","onEventWasClicked","onEventWasDragged","onDragStart","onDragEnd"]))),128))])])])],64)}const hl=j(un,[["render",ml],["__scopeId","data-v-8bb6ad05"]]),mn=N({name:"Event",props:{time:{type:Object,required:!0},calendarEvent:{type:Object,required:!0},config:{type:Object,required:!0},day:{type:Object,required:!0}},emits:["event-was-clicked"],data(){return{colors:Ge,eventBackgroundColor:"",eventIdPrefix:"calendar-month__event-"}},computed:{isCustomEvent(){return Array.isArray(this.calendarEvent.isCustom)?this.calendarEvent.isCustom.includes("month"):this.calendarEvent.isCustom||!1},eventTimeStart(){return xe.test(this.calendarEvent.time.start)?this.time.getLocalizedTime(this.calendarEvent.time.start):null},elementId(){return this.eventIdPrefix+this.calendarEvent.id+this.time.dateStringFrom(this.day.dateTimeString)},elementDraggableAttribute(){const{year:e,month:t,date:n}=this.time.getAllVariablesFromDateTimeString(this.calendarEvent.time.start),{year:i,month:a,date:s}=this.time.getAllVariablesFromDateTimeString(this.calendarEvent.time.end),r=e===i&&t===a&&n===s,o=this.calendarEvent.disableDnD&&this.calendarEvent.disableDnD.includes("month");return this.calendarEvent.isEditable&&r&&!o?!0:void 0}},mounted(){this.setColors()},methods:{setColors(){var e,t,n;return(e=this.calendarEvent)!=null&&e.colorScheme&&(t=this.config.style)!=null&&t.colorSchemes&&this.config.style.colorSchemes[this.calendarEvent.colorScheme]?this.eventBackgroundColor=this.config.style.colorSchemes[this.calendarEvent.colorScheme].backgroundColor:(n=this.calendarEvent)!=null&&n.color?this.eventBackgroundColor=this.colors[this.calendarEvent.color]:this.eventBackgroundColor=this.colors.blue},handleClickOnEvent(){const e=document.getElementById(this.elementId);this.$emit("event-was-clicked",{clickedEvent:this.calendarEvent,eventElement:e})},handleDragStart(e){!e||!e.dataTransfer||(e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("json",JSON.stringify(this.calendarEvent)))}}}),ri=()=>{Re(e=>({"63a9bc8a":e.eventBackgroundColor}))},oi=mn.setup;mn.setup=oi?(e,t)=>(ri(),oi(e,t)):ri;const fl=e=>(mi("data-v-4766dfc7"),e=e(),hi(),e),gl={key:0,class:"calendar-month__event"},vl=["id","draggable"],pl=["id","draggable"],yl=fl(()=>w("span",{class:"calendar-month__event-color"},null,-1)),bl={key:0,class:"calendar-month__event-time"},Dl={class:"calendar-month__event-title"};function kl(e,t,n,i,a,s){return e.config.isSmall?(m(),f("div",gl)):(m(),f(O,{key:1},[e.isCustomEvent?(m(),f("div",{key:0,id:e.elementId,class:U(["is-event",{"is-draggable":e.elementDraggableAttribute}]),"data-ref":"custom-event",draggable:e.elementDraggableAttribute,onDragstart:t[0]||(t[0]=(...r)=>e.handleDragStart&&e.handleDragStart(...r)),onClick:t[1]||(t[1]=(...r)=>e.handleClickOnEvent&&e.handleClickOnEvent(...r))},[W(e.$slots,"monthEvent",{eventData:e.calendarEvent},void 0,!0)],42,vl)):(m(),f("div",{key:1,id:e.elementId,"data-ref":"default-event",class:U(["calendar-month__event is-event",{"is-draggable":e.elementDraggableAttribute}]),draggable:e.elementDraggableAttribute,onDragstart:t[2]||(t[2]=(...r)=>e.handleDragStart&&e.handleDragStart(...r)),onClick:t[3]||(t[3]=(...r)=>e.handleClickOnEvent&&e.handleClickOnEvent(...r))},[yl,e.eventTimeStart&&!e.calendarEvent.originalEvent?(m(),f("span",bl,_(e.eventTimeStart),1)):S("",!0),w("span",Dl,_(e.calendarEvent.title),1)],42,pl))],64))}const El=j(mn,[["render",kl],["__scopeId","data-v-4766dfc7"]]),wl=N({name:"Day",components:{Event:El},mixins:[ln],props:{config:{type:Object,required:!0},time:{type:Object,required:!0},day:{type:Object,required:!0},isSelected:{type:Boolean,default:!1}},emits:["event-was-clicked","event-was-dragged","updated-period","date-was-clicked","day-was-selected"],data(){return{isActiveDroppable:!1}},computed:{canBeDropped(){return this.isActiveDroppable},hideLeadingAndTrailingDate(){var e;return this.day.isTrailingOrLeadingDate===!0&&((e=this.config.month)==null?void 0:e.showTrailingAndLeadingDates)===!1},isToday(){const{year:e,month:t,date:n}=this.time.getAllVariablesFromDateTimeString(this.day.dateTimeString);return this.time.dateIsToday(new Date(e,t,n))}},methods:{getMoreEvents(){const{date:e,month:t,year:n}=this.time.getAllVariablesFromDateTimeString(this.day.dateTimeString),i=new Date(n,t,e),a=this.time.getCalendarWeekDateObjects(i),s=a[0],r=a[6];this.$emit("updated-period",{start:s,end:r,selectedDate:i})},handleDragLeave(){this.isActiveDroppable=!1},handleDragEnd(e){this.isActiveDroppable=!1,e.stopPropagation()},handleDrop(e){if(this.isActiveDroppable=!1,e.stopPropagation(),!e||!e.dataTransfer)return;const t=JSON.parse(e.dataTransfer.getData("json"));this.time.dateStringsHaveEqualDates(t.time.start,this.time.dateStringFrom(this.day.dateTimeString))||(t.time.start=t.time.start.replace(/^\d{4}-\d{2}-\d{2}/,this.time.dateStringFrom(this.day.dateTimeString)),t.time.end=t.time.end.replace(/^\d{4}-\d{2}-\d{2}/,this.time.dateStringFrom(this.day.dateTimeString)),this.$emit("event-was-dragged",t))},handleDragOver(e){return this.isActiveDroppable=!0,e.preventDefault(),!1},emitDayWasClicked(){this.$emit("date-was-clicked",this.time.dateStringFrom(this.day.dateTimeString)),this.config.isSmall&&this.$emit("day-was-selected",this.day)}}}),Sl=["id"],Tl={class:"calendar-month__day-date"},_l={class:"calendar-month_events"},Al={key:1,class:"space-reserver"};function Ml(e,t,n,i,a,s){const r=L("Event");return e.hideLeadingAndTrailingDate?(m(),f("div",Al)):(m(),f("div",{key:0,id:"day-"+e.time.dateStringFrom(e.day.dateTimeString),class:U(["calendar-month__weekday",{"is-droppable":e.canBeDropped,"trailing-or-leading":e.day.isTrailingOrLeadingDate,"is-selected":e.isSelected,"is-today":e.isToday}]),onClick:t[2]||(t[2]=Xt((...o)=>e.emitDayWasClicked&&e.emitDayWasClicked(...o),["self"])),onDragleave:t[3]||(t[3]=(...o)=>e.handleDragLeave&&e.handleDragLeave(...o)),onDragover:t[4]||(t[4]=(...o)=>e.handleDragOver&&e.handleDragOver(...o)),onDrop:t[5]||(t[5]=(...o)=>e.handleDrop&&e.handleDrop(...o)),onDragend:t[6]||(t[6]=(...o)=>e.handleDragEnd&&e.handleDragEnd(...o))},[W(e.$slots,"dayCell",{dayData:e.day},()=>[w("span",Tl,_(e.day.dateTimeString.substring(8,10).startsWith("0")?e.day.dateTimeString.substring(9,10):e.day.dateTimeString.substring(8,10)),1),w("div",_l,[(m(!0),f(O,null,H(e.day.events,(o,l)=>(m(),f(O,{key:l},[l<3?(m(),V(r,{key:o.id,"calendar-event":o,config:e.config,time:e.time,day:e.day,onEventWasClicked:t[0]||(t[0]=c=>e.$emit("event-was-clicked",c))},{monthEvent:B(c=>[W(e.$slots,"monthEvent",{eventData:c.eventData},void 0,!0)]),_:2},1032,["calendar-event","config","time","day"])):S("",!0)],64))),128)),e.day.events.length>=4?(m(),f("div",{key:0,class:"calendar-month__weekday-more",onClick:t[1]||(t[1]=(...o)=>e.getMoreEvents&&e.getMoreEvents(...o))},_(e.getLanguage(e.languageKeys.moreEvents,e.time.CALENDAR_LOCALE)),1)):S("",!0)])],!0)],42,Sl))}const Cl=j(wl,[["render",Ml],["__scopeId","data-v-034f06d8"]]),Il=N({name:"WeekDay",props:{day:{type:Object,required:!0}}}),Pl={class:"calendar-month__day-name"};function Ol(e,t,n,i,a,s){return m(),f("span",Pl,_(e.day.dayName),1)}const xl=j(Il,[["render",Ol],["__scopeId","data-v-09c7c5db"]]),hn=N({name:"Event",components:{FontAwesomeIcon:Ze},props:{time:{type:Object,required:!0},calendarEvent:{type:Object,required:!0},config:{type:Object,required:!0}},emits:["event-was-clicked"],data(){return{icons:{clock:Qi,user:qi,description:Ki,trash:Ui,edit:Vi,times:Xi,topic:Gi,location:sn},colors:Ge,eventBackgroundColor:"",eventColor:"#fff",eventIdPrefix:"agenda__event-"}},computed:{eventTime(){return xe.test(this.calendarEvent.time.start)?this.time.getLocalizedTimeRange(this.calendarEvent.time.start,this.calendarEvent.time.end):null},elementId(){return this.eventIdPrefix+this.calendarEvent.id}},mounted(){this.setColors()},methods:{setColors(){var e,t,n;return(e=this.calendarEvent)!=null&&e.colorScheme&&(t=this.config.style)!=null&&t.colorSchemes&&this.config.style.colorSchemes[this.calendarEvent.colorScheme]?(this.eventColor=this.config.style.colorSchemes[this.calendarEvent.colorScheme].color,this.eventBackgroundColor=this.config.style.colorSchemes[this.calendarEvent.colorScheme].backgroundColor):(n=this.calendarEvent)!=null&&n.color?this.eventBackgroundColor=this.colors[this.calendarEvent.color]:this.eventBackgroundColor=this.colors.blue},handleClickOnEvent(){const e=document.getElementById(this.elementId);this.$emit("event-was-clicked",{clickedEvent:this.calendarEvent,eventElement:e})}}}),si=()=>{Re(e=>({"691f2791":e.eventBackgroundColor,fa1649c2:e.eventColor}))},li=hn.setup;hn.setup=li?(e,t)=>(si(),li(e,t)):si;const Ll=["id"],Rl={key:0,class:"agenda__event-time"},Fl={class:"agenda__event-title"},Yl={key:1,class:"agenda__event-with"},Nl={key:2,class:"agenda__event-location"};function Wl(e,t,n,i,a,s){const r=L("FontAwesomeIcon");return m(),f("div",{id:e.elementId,class:"agenda__event is-event",onClick:t[0]||(t[0]=Xt((...o)=>e.handleClickOnEvent&&e.handleClickOnEvent(...o),["prevent"]))},[e.eventTime&&!e.calendarEvent.originalEvent?(m(),f("span",Rl,[I(r,{icon:e.icons.clock},null,8,["icon"]),se(" "+_(e.eventTime),1)])):S("",!0),w("span",Fl,_(e.calendarEvent.title),1),e.calendarEvent.with?(m(),f("span",Yl,[I(r,{icon:e.icons.user},null,8,["icon"]),se(" "+_(e.calendarEvent.with),1)])):S("",!0),e.calendarEvent.location?(m(),f("span",Nl,[I(r,{icon:e.icons.location},null,8,["icon"]),se(" "+_(e.calendarEvent.location),1)])):S("",!0)],8,Ll)}const zl=j(hn,[["render",Wl],["__scopeId","data-v-698b431e"]]),Hl=N({name:"AgendaEvents",components:{AgendaEventTile:zl},mixins:[ln],props:{config:{type:Object,required:!0},time:{type:Object,required:!0},day:{type:Object,required:!0}},emits:["event-was-clicked"]}),jl={class:"agenda__wrapper"},$l={class:"agenda__header"},Bl={class:"agenda__header-day-name"},Xl={class:"agenda__header-date"},Ul={class:"agenda__content"},Vl={key:0,class:"is-empty"},ql={key:1,class:"agenda__content-events-list"};function Gl(e,t,n,i,a,s){const r=L("AgendaEventTile");return m(),f("div",jl,[w("header",$l,[w("div",Bl,_(e.day.dayName),1),w("div",Xl,_(e.day.dateTimeString.substring(8,10)),1)]),w("div",Ul,[e.day.events.length===0?(m(),f("div",Vl,_(e.getLanguage(e.languageKeys.noEvent,e.time.CALENDAR_LOCALE)),1)):(m(),f("div",ql,[(m(!0),f(O,null,H(e.day.events,o=>(m(),V(r,{key:"agenda_event_"+o.id,day:e.day,config:e.config,"calendar-event":o,time:e.time,onEventWasClicked:t[0]||(t[0]=l=>e.$emit("event-was-clicked",l))},null,8,["day","config","calendar-event","time"]))),128))]))])])}const Kl=j(Hl,[["render",Gl],["__scopeId","data-v-b60cbce5"]]),Ql=new Zi,Jl=N({name:"Month",components:{AgendaEvents:Kl,Day:Cl,EventFlyout:Ji,WeekDay:xl},props:{config:{type:Object,required:!0},time:{type:Object,required:!0},period:{type:Object,required:!0},eventsProp:{type:Array,default:()=>[]}},emits:["edit-event","delete-event","updated-period","event-was-clicked","event-was-dragged","date-was-clicked"],data(){return{month:[],selectedEvent:null,selectedEventElement:null,events:this.eventsProp,fullDayEvents:[],scrollbar:null,selectedDay:null}},mounted(){this.initMonth(),this.initScrollbar()},methods:{initScrollbar(e=0){const t=document.querySelector(".calendar-month");e>3e3||(t?(this.scrollbar=new Ne(t),this.scrollbar.update()):this.initScrollbar(e+50))},initMonth(){this.month=[],this.sortOutFullDayEvents(),this.setMonth(),this.config.isSmall&&this.setInitialSelectedDay()},setMonth(){const{month:e,fullYear:t}=new We(this.period.selectedDate),n=this.time.getCalendarMonthSplitInWeeks(t,e).map(i=>i.map(a=>{const s=this.time.getDateTimeStringFromDate(a),r=this.events.filter(o=>this.time.dateStringsHaveEqualDates(o.time.start,s));return{isTrailingOrLeadingDate:this.time.isTrailingOrLeadingDate(a,e),dayName:this.time.getLocalizedNameOfWeekday(a),dateTimeString:this.time.getDateTimeStringFromDate(a),events:r}}));this.month=Ql.positionFullDayEventsInMonth(n,this.fullDayEvents)},sortOutFullDayEvents(){const e=[],t=[];for(const n of this.events)we.getEventType(n,this.time)===K.SINGLE_DAY_TIMED?e.push(n):t.push(n);this.events=e,this.fullDayEvents=t},handleClickOnEvent(e){this.$emit("event-was-clicked",e),this.selectedEventElement=e.eventElement,this.selectedEvent=e.clickedEvent},handleEventWasDragged(e){this.$emit("event-was-dragged",e);const t=[...this.events,...this.fullDayEvents].filter(n=>n.id!==e.id);t.push(e),this.events=[],this.fullDayEvents=[],this.events=t,this.initMonth()},setInitialSelectedDay(){const e=this.time.getDateStringFromDate(this.period.selectedDate);this.selectedDay=this.month.flat().find(t=>this.time.dateStringFrom(t.dateTimeString)===e)||null}}}),Zl={class:"calendar-month"},ec={class:"calendar-month__week-day-names"},tc={class:"calendar-month__weeks"},nc={key:0,class:"calendar-month__day_events"};function ic(e,t,n,i,a,s){var r;const o=L("WeekDay"),l=L("Day"),c=L("AgendaEvents"),u=L("EventFlyout");return m(),f("div",Zl,[w("div",ec,[(m(!0),f(O,null,H(e.month[0],(d,v)=>(m(),V(o,{key:v,class:"calendar-month__week-day-name",config:e.config,day:d,time:e.time},null,8,["config","day","time"]))),128))]),w("div",tc,[(m(!0),f(O,null,H(e.month,(d,v)=>(m(),f("div",{key:v,class:"calendar-month__week"},[(m(!0),f(O,null,H(d,(D,b)=>{var k;return m(),V(l,{key:b,config:e.config,day:D,time:e.time,"is-selected":((k=e.selectedDay)==null?void 0:k.dateTimeString)===D.dateTimeString,onEventWasClicked:e.handleClickOnEvent,onEventWasDragged:e.handleEventWasDragged,onDateWasClicked:t[0]||(t[0]=E=>e.$emit("date-was-clicked",E)),onDayWasSelected:t[1]||(t[1]=E=>e.selectedDay=E),onUpdatedPeriod:t[2]||(t[2]=E=>e.$emit("updated-period",E))},{monthEvent:B(({eventData:E})=>[W(e.$slots,"monthEvent",{eventData:E},void 0,!0)]),dayCell:B(({dayData:E})=>[W(e.$slots,"dayCell",{dayData:E},void 0,!0)]),_:2},1032,["config","day","time","is-selected","onEventWasClicked","onEventWasDragged"])}),128))]))),128))]),((r=e.config.month)==null?void 0:r.showEventsOnMobileView)!==!1?(m(),f("div",nc,[e.selectedDay?(m(),V(c,{key:0,config:e.config,time:e.time,day:e.selectedDay,onEventWasClicked:e.handleClickOnEvent},null,8,["config","time","day","onEventWasClicked"])):S("",!0)])):S("",!0),!e.config.eventDialog||!e.config.eventDialog.isDisabled?(m(),V(u,{key:1,"calendar-event-prop":e.selectedEvent,"event-element":e.selectedEventElement,time:e.time,config:e.config,onHide:t[3]||(t[3]=d=>e.selectedEvent=null),onEditEvent:t[4]||(t[4]=d=>e.$emit("edit-event",d)),onDeleteEvent:t[5]||(t[5]=d=>e.$emit("delete-event",d))},{default:B(d=>[W(e.$slots,"eventDialog",{eventDialogData:d.eventDialogData,closeEventDialog:d.closeEventDialog},void 0,!0)]),_:3},8,["calendar-event-prop","event-element","time","config"])):S("",!0)])}const ac=j(Jl,[["render",ic],["__scopeId","data-v-206c177e"]]),Q=class{static checkEventProperties(e){var t,n,i,a,s,r;e.id||console.warn(this.MISSING_ID_WARNING),e.title||console.warn(this.MISSING_TITLE_WARNING),e.time||console.warn(this.MISSING_TIME_WARNING),(t=e==null?void 0:e.time)!=null&&t.start||console.warn(this.MISSING_TIME_START_WARNING),(n=e==null?void 0:e.time)!=null&&n.end||console.warn(this.MISSING_TIME_END_WARNING),(i=e.time)!=null&&i.start&&(a=e.time)!=null&&a.end&&!xe.test(e.time.start)&&!gt.test(e.time.start)&&console.warn(`${this.PREFIX} event property 'time.start' expects a string formatted like 'YYYY-MM-DD hh:mm', or 'YYYY-MM-DD', received ${e.time.start} -${this.SUFFIX}`),(s=e.time)!=null&&s.start&&(r=e.time)!=null&&r.end&&!xe.test(e.time.end)&&!gt.test(e.time.end)&&console.warn(`${this.PREFIX} event property 'time.end' expects a string formatted like 'YYYY-MM-DD hh:mm', or 'YYYY-MM-DD', received ${e.time.end} -${this.SUFFIX}`)}static checkConfig(e){e.locale&&!/^[a-z]{2}-[A-Z]{2}$/.test(e.locale)&&console.warn(`${this.PREFIX} config.locale expects a string of format xx-XX, received: ${e.locale}`),e.defaultMode&&!["month","week","day"].some(t=>t===e.defaultMode)&&console.warn(`${this.PREFIX} config.defaultMode expects either one of the values "day", "week" or "month"`)}};let ve=Q;F(ve,"PREFIX","[Qalendar warning]"),F(ve,"SUFFIX",""),F(ve,"MISSING_ID_WARNING",`${Q.PREFIX} required event property 'id' is missing -${Q.SUFFIX}`),F(ve,"MISSING_TITLE_WARNING",`${Q.PREFIX} required event property 'title' is missing -${Q.SUFFIX}`),F(ve,"MISSING_TIME_WARNING",`${Q.PREFIX} required event property 'time' is missing -${Q.SUFFIX}`),F(ve,"MISSING_TIME_START_WARNING",`${Q.PREFIX} required event property 'time.start' is missing -${Q.SUFFIX}`),F(ve,"MISSING_TIME_END_WARNING",`${Q.PREFIX} required event property 'time.end' is missing -${Q.SUFFIX}`);const fn=N({name:"Qalendar",components:{Month:ac,AppHeader:$o,Week:hl},props:{config:{type:Object,default:()=>({})},events:{type:Array,default:()=>[]},selectedDate:{type:Date,default:new Date},isLoading:{type:Boolean,default:!1}},emits:["event-was-clicked","event-was-resized","event-was-dragged","updated-period","updated-mode","edit-event","delete-event","interval-was-clicked","day-was-clicked","date-was-clicked","datetime-was-clicked"],data(){var e,t,n,i,a,s,r,o,l,c;return{wasInitialized:0,period:{start:new Date,end:new Date,selectedDate:this.selectedDate},mode:((e=this.config)==null?void 0:e.defaultMode)||"week",time:new ae((n=(t=this.config)==null?void 0:t.week)==null?void 0:n.startsOn,((i=this.config)==null?void 0:i.locale)||null,{start:this.setTimePointsFromDayBoundary(((s=(a=this.config)==null?void 0:a.dayBoundaries)==null?void 0:s.start)||0),end:this.setTimePointsFromDayBoundary(((o=(r=this.config)==null?void 0:r.dayBoundaries)==null?void 0:o.end)||24)}),fontFamily:((c=(l=this.config)==null?void 0:l.style)==null?void 0:c.fontFamily)||"'Verdana', 'Open Sans', serif",eventRenderingKey:0,eventsDataProperty:this.events,isSmall:!1,ErrorsHelper:ve}},computed:{enhancedConfig(){return Ae(_e({},this.config),{isSmall:this.isSmall})}},watch:{events:{deep:!0,handler(e,t){JSON.stringify(e)!==JSON.stringify(t)&&(this.eventsDataProperty=e,this.eventRenderingKey=this.eventRenderingKey+1),!this.config.isSilent&&this.events.forEach(n=>this.ErrorsHelper.checkEventProperties(n))},immediate:!0},config:{deep:!0,handler(e){this.ErrorsHelper.checkConfig(e)},immediate:!0}},mounted(){this.setConfigOnMount(),this.onCalendarResize(),this.setPeriodOnMount(),window.addEventListener("resize",this.onCalendarResize)},beforeUnmount(){window.removeEventListener("resize",this.onCalendarResize)},methods:{setConfigOnMount(){this.wasInitialized=1},handleUpdatedPeriod(e,t=!1){this.$emit("updated-period",{start:e.start,end:e.end}),this.period=e,t&&(this.mode="day")},handleChangeMode(e){if(e==="day"&&(this.period.start=this.period.selectedDate,this.period.end=this.time.setDateToEndOfDay(this.period.selectedDate)),e==="week"){const t=this.time.getCalendarWeekDateObjects(this.period.selectedDate);this.period.start=t[0],this.period.end=this.time.setDateToEndOfDay(t[6])}if(e==="month"){const t=this.time.getCalendarMonthSplitInWeeks(this.period.selectedDate.getFullYear(),this.period.selectedDate.getMonth());this.period.start=t[0][0];const n=t[t.length-1];this.period.end=this.time.setDateToEndOfDay(n[n.length-1])}this.mode=e,this.$emit("updated-mode",{mode:e,period:this.period})},onCalendarResize(){const e=document.documentElement,t=document.querySelector(".calendar-root"),n=+window.getComputedStyle(e).fontSize.split("p")[0],i=700,a=16/n,s=i/a;t&&(this.isSmall=t.clientWidthi.id!==e.id);this.eventsDataProperty=[e,...n],this.$emit(`event-was-${t}`,e)},setTimePointsFromDayBoundary(e){return ae.getTimePointsFromHour(e)},handleDateWasClicked(e){this.$emit("day-was-clicked",e),this.$emit("date-was-clicked",e)},goToPeriod(e){this.$refs.appHeader.goToPeriod(e)}}}),ci=()=>{Re(e=>({"51d82805":e.fontFamily}))},di=fn.setup;fn.setup=di?(e,t)=>(ci(),di(e,t)):ci;const rc={class:"calendar-root-wrapper"},oc=["data-lang"],sc={key:0,class:"top-bar-loader"};function lc(e,t,n,i,a,s){var r,o;const l=L("AppHeader"),c=L("Week"),u=L("Month");return m(),f("div",rc,[w("div",{class:U(["calendar-root",{"mode-is-day":e.mode==="day","mode-is-week":e.mode==="week","mode-is-month":e.mode==="month","qalendar-is-small":e.isSmall}]),"data-lang":((o=(r=e.config)==null?void 0:r.locale)==null?void 0:o.substring(0,2))||"en"},[I(ha,{name:"loading"},{default:B(()=>[e.isLoading?(m(),f("div",sc)):S("",!0)]),_:1}),(m(),V(l,{ref:"appHeader",key:e.wasInitialized+e.mode,config:e.config,mode:e.mode,time:e.time,period:e.period,"is-small":e.isSmall,onChangeMode:e.handleChangeMode,onUpdatedPeriod:e.handleUpdatedPeriod},null,8,["config","mode","time","period","is-small","onChangeMode","onUpdatedPeriod"])),["week","day"].includes(e.mode)?(m(),V(c,{key:e.period.start.getTime()+e.period.end.getTime()+e.eventRenderingKey,"events-prop":e.eventsDataProperty,period:e.period,config:e.config,"mode-prop":e.mode,time:e.time,onEventWasClicked:t[0]||(t[0]=d=>e.$emit("event-was-clicked",d)),onEventWasResized:t[1]||(t[1]=d=>e.handleEventWasUpdated(d,"resized")),onEventWasDragged:t[2]||(t[2]=d=>e.handleEventWasUpdated(d,"dragged")),onEditEvent:t[3]||(t[3]=d=>e.$emit("edit-event",d)),onDeleteEvent:t[4]||(t[4]=d=>e.$emit("delete-event",d)),onIntervalWasClicked:t[5]||(t[5]=d=>e.$emit("interval-was-clicked",d)),onDayWasClicked:t[6]||(t[6]=d=>e.$emit("day-was-clicked",d)),onDatetimeWasClicked:t[7]||(t[7]=d=>e.$emit("datetime-was-clicked",d))},{weekDayEvent:B(d=>[W(e.$slots,"weekDayEvent",{eventData:d.eventData})]),eventDialog:B(d=>[W(e.$slots,"eventDialog",{eventDialogData:d.eventDialogData,closeEventDialog:d.closeEventDialog})]),customCurrentTime:B(()=>[W(e.$slots,"customCurrentTime")]),_:3},8,["events-prop","period","config","mode-prop","time"])):S("",!0),e.mode==="month"?(m(),V(u,{key:e.period.start.getTime()+e.period.end.getTime()+e.eventRenderingKey,"events-prop":e.eventsDataProperty,time:e.time,config:e.enhancedConfig,period:e.period,onEventWasClicked:t[8]||(t[8]=d=>e.$emit("event-was-clicked",d)),onDateWasClicked:e.handleDateWasClicked,onEventWasDragged:t[9]||(t[9]=d=>e.handleEventWasUpdated(d,"dragged")),onUpdatedPeriod:t[10]||(t[10]=d=>e.handleUpdatedPeriod(d,!0)),onEditEvent:t[11]||(t[11]=d=>e.$emit("edit-event",d)),onDeleteEvent:t[12]||(t[12]=d=>e.$emit("delete-event",d))},{eventDialog:B(d=>[W(e.$slots,"eventDialog",{eventDialogData:d.eventDialogData,closeEventDialog:d.closeEventDialog})]),monthEvent:B(d=>[W(e.$slots,"monthEvent",{eventData:d.eventData})]),dayCell:B(({dayData:d})=>[W(e.$slots,"dayCell",{dayData:d})]),_:3},8,["events-prop","time","config","period","onDateWasClicked"])):S("",!0)],10,oc)])}const cc=j(fn,[["render",lc]]);const dc={class:"flex items-center justify-center is-light-mode h-screen"},uc={class:"calendar_wrapper"},fc={__name:"Schedule",setup(e){let t=fa([{title:"Advanced algebra",with:"Chandler Bing",time:{start:"2023-12-05 16:00",end:"2023-12-05 17:00"},color:"yellow",id:"753944708f0f",description:"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Asperiores assumenda corporis doloremque et expedita molestias necessitatibus quam quas temporibus veritatis. Deserunt excepturi illum nobis perferendis praesentium repudiandae saepe sapiente voluptatem!"},{title:"Ralph on holiday",with:"Rachel Greene",time:{start:"2023-12-06 12:00",end:"2023-12-06 17:00"},color:"blue",isEditable:!0,id:"5602b6f589fc"}]),n=s=>{console.log(s)},i={style:{fontFamily:"Nunito"},dayBoundaries:{start:8,end:22}};return(s=>{let r=[];s.forEach(o=>{r.push(o.time.start.split(" ")[1].split(":")[0])}),r.sort(),i.dayBoundaries.start=r[0]-1,i.dayBoundaries.end=parseInt(r[r.length-1])+6})(t.value),(s,r)=>(m(),f("div",dc,[w("div",uc,[I(tt(cc),{events:tt(t),config:tt(i),onEditEvent:tt(n)},null,8,["events","config","onEditEvent"])])]))}};export{fc as default}; diff --git a/education/public/frontend/assets/frappe-ui.49d8c9fc.js b/education/public/frontend/assets/frappe-ui.49d8c9fc.js deleted file mode 100644 index 3d330eb9..00000000 --- a/education/public/frontend/assets/frappe-ui.49d8c9fc.js +++ /dev/null @@ -1,162 +0,0 @@ -var Fy=Object.defineProperty,Vy=Object.defineProperties;var Wy=Object.getOwnPropertyDescriptors;var Es=Object.getOwnPropertySymbols;var Wf=Object.prototype.hasOwnProperty,Uf=Object.prototype.propertyIsEnumerable;var Vf=(t,e,n)=>e in t?Fy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,U=(t,e)=>{for(var n in e||(e={}))Wf.call(e,n)&&Vf(t,n,e[n]);if(Es)for(var n of Es(e))Uf.call(e,n)&&Vf(t,n,e[n]);return t},ve=(t,e)=>Vy(t,Wy(e));var Qe=(t,e)=>{var n={};for(var r in t)Wf.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Es)for(var r of Es(t))e.indexOf(r)<0&&Uf.call(t,r)&&(n[r]=t[r]);return n};var cr=(t,e,n)=>new Promise((r,i)=>{var o=a=>{try{l(n.next(a))}catch(u){i(u)}},s=a=>{try{l(n.throw(a))}catch(u){i(u)}},l=a=>a.done?r(a.value):Promise.resolve(a.value).then(o,s);l((n=n.apply(t,e)).next())});function ld(t,e){const n=Object.create(null),r=t.split(",");for(let i=0;i!!n[i.toLowerCase()]:i=>!!n[i]}const rt={},Li=[],Rn=()=>{},Uy=()=>!1,wa=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),ad=t=>t.startsWith("onUpdate:"),St=Object.assign,ud=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},Ky=Object.prototype.hasOwnProperty,Ue=(t,e)=>Ky.call(t,e),we=Array.isArray,Di=t=>ka(t)==="[object Map]",Im=t=>ka(t)==="[object Set]",Ee=t=>typeof t=="function",ut=t=>typeof t=="string",xa=t=>typeof t=="symbol",it=t=>t!==null&&typeof t=="object",Bm=t=>(it(t)||Ee(t))&&Ee(t.then)&&Ee(t.catch),$m=Object.prototype.toString,ka=t=>$m.call(t),qy=t=>ka(t).slice(8,-1),zm=t=>ka(t)==="[object Object]",cd=t=>ut(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,ol=ld(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ca=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Jy=/-(\w)/g,Jn=Ca(t=>t.replace(Jy,(e,n)=>n?n.toUpperCase():"")),Gy=/\B([A-Z])/g,xi=Ca(t=>t.replace(Gy,"-$1").toLowerCase()),_a=Ca(t=>t.charAt(0).toUpperCase()+t.slice(1)),ru=Ca(t=>t?`on${_a(t)}`:""),pi=(t,e)=>!Object.is(t,e),iu=(t,e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},Yy=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Qy=t=>{const e=ut(t)?Number(t):NaN;return isNaN(e)?t:e};let Kf;const Yu=()=>Kf||(Kf=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function Ir(t){if(we(t)){const e={};for(let n=0;n{if(n){const r=n.split(Zy);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function ye(t){let e="";if(ut(t))e=t;else if(we(t))for(let n=0;nut(t)?t:t==null?"":we(t)||it(t)&&(t.toString===$m||!Ee(t.toString))?JSON.stringify(t,Fm,2):String(t),Fm=(t,e)=>e&&e.__v_isRef?Fm(t,e.value):Di(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:Im(e)?{[`Set(${e.size})`]:[...e.values()]}:it(e)&&!we(e)&&!zm(e)?String(e):e;let rn;class Vm{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=rn,!e&&rn&&(this.index=(rn.scopes||(rn.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=rn;try{return rn=this,e()}finally{rn=n}}}on(){rn=this}off(){rn=this.parent}stop(e){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const e=new Set(t);return e.w=0,e.n=0,e},Um=t=>(t.w&jr)>0,Km=t=>(t.n&jr)>0,sv=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r{(c==="length"||!xa(c)&&c>=a)&&l.push(u)})}else switch(n!==void 0&&l.push(s.get(n)),e){case"add":we(t)?cd(n)&&l.push(s.get("length")):(l.push(s.get(oi)),Di(t)&&l.push(s.get(Xu)));break;case"delete":we(t)||(l.push(s.get(oi)),Di(t)&&l.push(s.get(Xu)));break;case"set":Di(t)&&l.push(s.get(oi));break}if(l.length===1)l[0]&&Zu(l[0]);else{const a=[];for(const u of l)u&&a.push(...u);Zu(dd(a))}}function Zu(t,e){const n=we(t)?t:[...t];for(const r of n)r.computed&&Jf(r);for(const r of n)r.computed||Jf(r)}function Jf(t,e){(t!==En||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function av(t,e){var n;return(n=wl.get(t))==null?void 0:n.get(e)}const uv=ld("__proto__,__v_isRef,__isVue"),Gm=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(xa)),Gf=cv();function cv(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const r=de(this);for(let o=0,s=this.length;o{t[e]=function(...n){io();const r=de(this)[e].apply(this,n);return oo(),r}}),t}function dv(t){const e=de(this);return tn(e,"has",t),e.hasOwnProperty(t)}class Ym{constructor(e=!1,n=!1){this._isReadonly=e,this._shallow=n}get(e,n,r){const i=this._isReadonly,o=this._shallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw"&&r===(i?o?_v:eg:o?Zm:Xm).get(e))return e;const s=we(e);if(!i){if(s&&Ue(Gf,n))return Reflect.get(Gf,n,r);if(n==="hasOwnProperty")return dv}const l=Reflect.get(e,n,r);return(xa(n)?Gm.has(n):uv(n))||(i||tn(e,"get",n),o)?l:$t(l)?s&&cd(n)?l:l.value:it(l)?i?ng(l):Sn(l):l}}class Qm extends Ym{constructor(e=!1){super(!1,e)}set(e,n,r,i){let o=e[n];if(Wi(o)&&$t(o)&&!$t(r))return!1;if(!this._shallow&&(!xl(r)&&!Wi(r)&&(o=de(o),r=de(r)),!we(e)&&$t(o)&&!$t(r)))return o.value=r,!0;const s=we(e)&&cd(n)?Number(n)t,Sa=t=>Reflect.getPrototypeOf(t);function As(t,e,n=!1,r=!1){t=t.__v_raw;const i=de(t),o=de(e);n||(pi(e,o)&&tn(i,"get",e),tn(i,"get",o));const{has:s}=Sa(i),l=r?hd:n?gd:Ko;if(s.call(i,e))return l(t.get(e));if(s.call(i,o))return l(t.get(o));t!==i&&t.get(e)}function Ts(t,e=!1){const n=this.__v_raw,r=de(n),i=de(t);return e||(pi(t,i)&&tn(r,"has",t),tn(r,"has",i)),t===i?n.has(t):n.has(t)||n.has(i)}function Os(t,e=!1){return t=t.__v_raw,!e&&tn(de(t),"iterate",oi),Reflect.get(t,"size",t)}function Yf(t){t=de(t);const e=de(this);return Sa(e).has.call(e,t)||(e.add(t),or(e,"add",t,t)),this}function Qf(t,e){e=de(e);const n=de(this),{has:r,get:i}=Sa(n);let o=r.call(n,t);o||(t=de(t),o=r.call(n,t));const s=i.call(n,t);return n.set(t,e),o?pi(e,s)&&or(n,"set",t,e):or(n,"add",t,e),this}function Xf(t){const e=de(this),{has:n,get:r}=Sa(e);let i=n.call(e,t);i||(t=de(t),i=n.call(e,t)),r&&r.call(e,t);const o=e.delete(t);return i&&or(e,"delete",t,void 0),o}function Zf(){const t=de(this),e=t.size!==0,n=t.clear();return e&&or(t,"clear",void 0,void 0),n}function Rs(t,e){return function(r,i){const o=this,s=o.__v_raw,l=de(s),a=e?hd:t?gd:Ko;return!t&&tn(l,"iterate",oi),s.forEach((u,c)=>r.call(i,a(u),a(c),o))}}function Ps(t,e,n){return function(...r){const i=this.__v_raw,o=de(i),s=Di(o),l=t==="entries"||t===Symbol.iterator&&s,a=t==="keys"&&s,u=i[t](...r),c=n?hd:e?gd:Ko;return!e&&tn(o,"iterate",a?Xu:oi),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:l?[c(f[0]),c(f[1])]:c(f),done:h}},[Symbol.iterator](){return this}}}}function dr(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function gv(){const t={get(o){return As(this,o)},get size(){return Os(this)},has:Ts,add:Yf,set:Qf,delete:Xf,clear:Zf,forEach:Rs(!1,!1)},e={get(o){return As(this,o,!1,!0)},get size(){return Os(this)},has:Ts,add:Yf,set:Qf,delete:Xf,clear:Zf,forEach:Rs(!1,!0)},n={get(o){return As(this,o,!0)},get size(){return Os(this,!0)},has(o){return Ts.call(this,o,!0)},add:dr("add"),set:dr("set"),delete:dr("delete"),clear:dr("clear"),forEach:Rs(!0,!1)},r={get(o){return As(this,o,!0,!0)},get size(){return Os(this,!0)},has(o){return Ts.call(this,o,!0)},add:dr("add"),set:dr("set"),delete:dr("delete"),clear:dr("clear"),forEach:Rs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{t[o]=Ps(o,!1,!1),n[o]=Ps(o,!0,!1),e[o]=Ps(o,!1,!0),r[o]=Ps(o,!0,!0)}),[t,n,e,r]}const[yv,vv,bv,wv]=gv();function pd(t,e){const n=e?t?wv:bv:t?vv:yv;return(r,i,o)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?r:Reflect.get(Ue(n,i)&&i in r?n:r,i,o)}const xv={get:pd(!1,!1)},kv={get:pd(!1,!0)},Cv={get:pd(!0,!1)},Xm=new WeakMap,Zm=new WeakMap,eg=new WeakMap,_v=new WeakMap;function Sv(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Mv(t){return t.__v_skip||!Object.isExtensible(t)?0:Sv(qy(t))}function Sn(t){return Wi(t)?t:md(t,!1,hv,xv,Xm)}function tg(t){return md(t,!1,mv,kv,Zm)}function ng(t){return md(t,!0,pv,Cv,eg)}function md(t,e,n,r,i){if(!it(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const o=i.get(t);if(o)return o;const s=Mv(t);if(s===0)return t;const l=new Proxy(t,s===2?r:n);return i.set(t,l),l}function Ii(t){return Wi(t)?Ii(t.__v_raw):!!(t&&t.__v_isReactive)}function Wi(t){return!!(t&&t.__v_isReadonly)}function xl(t){return!!(t&&t.__v_isShallow)}function rg(t){return Ii(t)||Wi(t)}function de(t){const e=t&&t.__v_raw;return e?de(e):t}function ig(t){return bl(t,"__v_skip",!0),t}const Ko=t=>it(t)?Sn(t):t,gd=t=>it(t)?ng(t):t;function og(t){Tr&&En&&(t=de(t),Jm(t.dep||(t.dep=dd())))}function sg(t,e){t=de(t);const n=t.dep;n&&Zu(n)}function $t(t){return!!(t&&t.__v_isRef===!0)}function oe(t){return ag(t,!1)}function lg(t){return ag(t,!0)}function ag(t,e){return $t(t)?t:new Ev(t,e)}class Ev{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:de(e),this._value=n?e:Ko(e)}get value(){return og(this),this._value}set value(e){const n=this.__v_isShallow||xl(e)||Wi(e);e=n?e:de(e),pi(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:Ko(e),sg(this))}}function ne(t){return $t(t)?t.value:t}const Av={get:(t,e,n)=>ne(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const i=t[e];return $t(i)&&!$t(n)?(i.value=n,!0):Reflect.set(t,e,n,r)}};function ug(t){return Ii(t)?t:new Proxy(t,Av)}function NR(t){const e=we(t)?new Array(t.length):{};for(const n in t)e[n]=Ov(t,n);return e}class Tv{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return av(de(this._object),this._key)}}function Ov(t,e,n){const r=t[e];return $t(r)?r:new Tv(t,e,n)}class Rv{constructor(e,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new fd(e,()=>{this._dirty||(this._dirty=!0,sg(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const e=de(this);return og(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function ec(t,e,n=!1){let r,i;const o=Ee(t);return o?(r=t,i=Rn):(r=t.get,i=t.set),new Rv(r,i,o||!i,n)}function Or(t,e,n,r){let i;try{i=r?t(...r):t()}catch(o){fs(o,e,n)}return i}function gn(t,e,n,r){if(Ee(t)){const o=Or(t,e,n,r);return o&&Bm(o)&&o.catch(s=>{fs(s,e,n)}),o}const i=[];for(let o=0;o>>1,i=Ht[r],o=Jo(i);oVn&&Ht.splice(e,1)}function Lv(t){we(t)?Bi.push(...t):(!rr||!rr.includes(t,t.allowRecurse?Yr+1:Yr))&&Bi.push(t),dg()}function eh(t,e=qo?Vn+1:0){for(;eJo(n)-Jo(r)),Yr=0;Yrt.id==null?1/0:t.id,Dv=(t,e)=>{const n=Jo(t)-Jo(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function hg(t){tc=!1,qo=!0,Ht.sort(Dv);const e=Rn;try{for(Vn=0;Vnut(p)?p.trim():p)),f&&(i=n.map(Yy))}let l,a=r[l=ru(e)]||r[l=ru(Jn(e))];!a&&o&&(a=r[l=ru(xi(e))]),a&&gn(a,t,6,i);const u=r[l+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[l])return;t.emitted[l]=!0,gn(u,t,6,i)}}function pg(t,e,n=!1){const r=e.emitsCache,i=r.get(t);if(i!==void 0)return i;const o=t.emits;let s={},l=!1;if(!Ee(t)){const a=u=>{const c=pg(u,e,!0);c&&(l=!0,St(s,c))};!n&&e.mixins.length&&e.mixins.forEach(a),t.extends&&a(t.extends),t.mixins&&t.mixins.forEach(a)}return!o&&!l?(it(t)&&r.set(t,null),null):(we(o)?o.forEach(a=>s[a]=null):St(s,o),it(t)&&r.set(t,s),s)}function Ea(t,e){return!t||!wa(e)?!1:(e=e.slice(2).replace(/Once$/,""),Ue(t,e[0].toLowerCase()+e.slice(1))||Ue(t,xi(e))||Ue(t,e))}let Rt=null,Aa=null;function kl(t){const e=Rt;return Rt=t,Aa=t&&t.type.__scopeId||null,e}function jR(t){Aa=t}function LR(){Aa=null}function Oe(t,e=Rt,n){if(!e||t._n)return t;const r=(...i)=>{r._d&&hh(-1);const o=kl(e);let s;try{s=t(...i)}finally{kl(o),r._d&&hh(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function ou(t){const{type:e,vnode:n,proxy:r,withProxy:i,props:o,propsOptions:[s],slots:l,attrs:a,emit:u,render:c,renderCache:f,data:h,setupState:p,ctx:g,inheritAttrs:v}=t;let b,x;const _=kl(t);try{if(n.shapeFlag&4){const d=i||r,y=d;b=Hn(c.call(y,d,f,o,p,h,g)),x=a}else{const d=e;b=Hn(d.length>1?d(o,{attrs:a,slots:l,emit:u}):d(o,null)),x=e.props?a:Bv(a)}}catch(d){No.length=0,fs(d,t,1),b=Se(yn)}let T=b;if(x&&v!==!1){const d=Object.keys(x),{shapeFlag:y}=T;d.length&&y&7&&(s&&d.some(ad)&&(x=$v(x,s)),T=sr(T,x))}return n.dirs&&(T=sr(T),T.dirs=T.dirs?T.dirs.concat(n.dirs):n.dirs),n.transition&&(T.transition=n.transition),b=T,kl(_),b}const Bv=t=>{let e;for(const n in t)(n==="class"||n==="style"||wa(n))&&((e||(e={}))[n]=t[n]);return e},$v=(t,e)=>{const n={};for(const r in t)(!ad(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function zv(t,e,n){const{props:r,children:i,component:o}=t,{props:s,children:l,patchFlag:a}=e,u=o.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?th(r,s,u):!!s;if(a&8){const c=e.dynamicProps;for(let f=0;ft.__isSuspense;function Vv(t,e){e&&e.pendingBranch?we(t)?e.effects.push(...t):e.effects.push(t):Lv(t)}function Mt(t,e){return Ta(t,null,e)}function Wv(t,e){return Ta(t,null,{flush:"post"})}const Ns={};function Pt(t,e,n){return Ta(t,e,n)}function Ta(t,e,{immediate:n,deep:r,flush:i,onTrack:o,onTrigger:s}=rt){var l;const a=Wm()===((l=bt)==null?void 0:l.scope)?bt:null;let u,c=!1,f=!1;if($t(t)?(u=()=>t.value,c=xl(t)):Ii(t)?(u=()=>t,r=!0):we(t)?(f=!0,c=t.some(d=>Ii(d)||xl(d)),u=()=>t.map(d=>{if($t(d))return d.value;if(Ii(d))return ti(d);if(Ee(d))return Or(d,a,2)})):Ee(t)?e?u=()=>Or(t,a,2):u=()=>{if(!(a&&a.isUnmounted))return h&&h(),gn(t,a,3,[p])}:u=Rn,e&&r){const d=u;u=()=>ti(d())}let h,p=d=>{h=_.onStop=()=>{Or(d,a,4),h=_.onStop=void 0}},g;if(Ki)if(p=Rn,e?n&&gn(e,a,3,[u(),f?[]:void 0,p]):u(),i==="sync"){const d=D2();g=d.__watcherHandles||(d.__watcherHandles=[])}else return Rn;let v=f?new Array(t.length).fill(Ns):Ns;const b=()=>{if(!!_.active)if(e){const d=_.run();(r||c||(f?d.some((y,m)=>pi(y,v[m])):pi(d,v)))&&(h&&h(),gn(e,a,3,[d,v===Ns?void 0:f&&v[0]===Ns?[]:v,p]),v=d)}else _.run()};b.allowRecurse=!!e;let x;i==="sync"?x=b:i==="post"?x=()=>Gt(b,a&&a.suspense):(b.pre=!0,a&&(b.id=a.uid),x=()=>Ma(b));const _=new fd(u,x);e?n?b():v=_.run():i==="post"?Gt(_.run.bind(_),a&&a.suspense):_.run();const T=()=>{_.stop(),a&&a.scope&&ud(a.scope.effects,_)};return g&&g.push(T),T}function Uv(t,e,n){const r=this.proxy,i=ut(t)?t.includes(".")?yg(r,t):()=>r[t]:t.bind(r,r);let o;Ee(e)?o=e:(o=e.handler,n=e);const s=bt;Ui(this);const l=Ta(i,o.bind(r),n);return s?Ui(s):si(),l}function yg(t,e){const n=e.split(".");return()=>{let r=t;for(let i=0;i{ti(n,e)});else if(zm(t))for(const n in t)ti(t[n],e);return t}function nc(t,e){const n=Rt;if(n===null)return t;const r=Na(n)||n.proxy,i=t.dirs||(t.dirs=[]);for(let o=0;o{t.isMounted=!0}),ps(()=>{t.isUnmounting=!0}),t}const cn=[Function,Array],vg={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:cn,onEnter:cn,onAfterEnter:cn,onEnterCancelled:cn,onBeforeLeave:cn,onLeave:cn,onAfterLeave:cn,onLeaveCancelled:cn,onBeforeAppear:cn,onAppear:cn,onAfterAppear:cn,onAppearCancelled:cn},qv={name:"BaseTransition",props:vg,setup(t,{slots:e}){const n=so(),r=Kv();let i;return()=>{const o=e.default&&wg(e.default(),!0);if(!o||!o.length)return;let s=o[0];if(o.length>1){for(const v of o)if(v.type!==yn){s=v;break}}const l=de(t),{mode:a}=l;if(r.isLeaving)return su(s);const u=rh(s);if(!u)return su(s);const c=rc(u,l,r,n);ic(u,c);const f=n.subTree,h=f&&rh(f);let p=!1;const{getTransitionKey:g}=u.type;if(g){const v=g();i===void 0?i=v:v!==i&&(i=v,p=!0)}if(h&&h.type!==yn&&(!Qr(u,h)||p)){const v=rc(h,l,r,n);if(ic(h,v),a==="out-in")return r.isLeaving=!0,v.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},su(s);a==="in-out"&&u.type!==yn&&(v.delayLeave=(b,x,_)=>{const T=bg(r,h);T[String(h.key)]=h,b[gr]=()=>{x(),b[gr]=void 0,delete c.delayedLeave},c.delayedLeave=_})}return s}}},Jv=qv;function bg(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function rc(t,e,n,r){const{appear:i,mode:o,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:f,onLeave:h,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:v,onAppear:b,onAfterAppear:x,onAppearCancelled:_}=e,T=String(t.key),d=bg(n,t),y=(k,S)=>{k&&gn(k,r,9,S)},m=(k,S)=>{const C=S[1];y(k,S),we(k)?k.every(E=>E.length<=1)&&C():k.length<=1&&C()},w={mode:o,persisted:s,beforeEnter(k){let S=l;if(!n.isMounted)if(i)S=v||l;else return;k[gr]&&k[gr](!0);const C=d[T];C&&Qr(t,C)&&C.el[gr]&&C.el[gr](),y(S,[k])},enter(k){let S=a,C=u,E=c;if(!n.isMounted)if(i)S=b||a,C=x||u,E=_||c;else return;let R=!1;const P=k[js]=L=>{R||(R=!0,L?y(E,[k]):y(C,[k]),w.delayedLeave&&w.delayedLeave(),k[js]=void 0)};S?m(S,[k,P]):P()},leave(k,S){const C=String(t.key);if(k[js]&&k[js](!0),n.isUnmounting)return S();y(f,[k]);let E=!1;const R=k[gr]=P=>{E||(E=!0,S(),P?y(g,[k]):y(p,[k]),k[gr]=void 0,d[C]===t&&delete d[C])};d[C]=t,h?m(h,[k,R]):R()},clone(k){return rc(k,e,n,r)}};return w}function su(t){if(hs(t))return t=sr(t),t.children=null,t}function rh(t){return hs(t)?t.children?t.children[0]:void 0:t}function ic(t,e){t.shapeFlag&6&&t.component?ic(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function wg(t,e=!1,n){let r=[],i=0;for(let o=0;o1)for(let o=0;oSt({name:t.name},e,{setup:t}))():t}const Oo=t=>!!t.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Ls(t){Ee(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:r,delay:i=200,timeout:o,suspensible:s=!0,onError:l}=t;let a=null,u,c=0;const f=()=>(c++,a=null,h()),h=()=>{let p;return a||(p=a=e().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((v,b)=>{l(g,()=>v(f()),()=>b(g),c+1)});throw g}).then(g=>p!==a&&a?a:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),u=g,g)))};return xe({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return u},setup(){const p=bt;if(u)return()=>lu(u,p);const g=_=>{a=null,fs(_,p,13,!r)};if(s&&p.suspense||Ki)return h().then(_=>()=>lu(_,p)).catch(_=>(g(_),()=>r?Se(r,{error:_}):null));const v=oe(!1),b=oe(),x=oe(!!i);return i&&setTimeout(()=>{x.value=!1},i),o!=null&&setTimeout(()=>{if(!v.value&&!b.value){const _=new Error(`Async component timed out after ${o}ms.`);g(_),b.value=_}},o),h().then(()=>{v.value=!0,p.parent&&hs(p.parent.vnode)&&Ma(p.parent.update)}).catch(_=>{g(_),b.value=_}),()=>{if(v.value&&u)return lu(u,p);if(b.value&&r)return Se(r,{error:b.value});if(n&&!x.value)return Se(n)}}})}function lu(t,e){const{ref:n,props:r,children:i,ce:o}=e.vnode,s=Se(t,r,i);return s.ref=n,s.ce=o,delete e.vnode.ce,s}const hs=t=>t.type.__isKeepAlive;function Gv(t,e){xg(t,"a",e)}function Yv(t,e){xg(t,"da",e)}function xg(t,e,n=bt){const r=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(Oa(e,r,n),n){let i=n.parent;for(;i&&i.parent;)hs(i.parent.vnode)&&Qv(r,e,n,i),i=i.parent}}function Qv(t,e,n,r){const i=Oa(e,t,r,!0);Lt(()=>{ud(r[e],i)},n)}function Oa(t,e,n=bt,r=!1){if(n){const i=n[t]||(n[t]=[]),o=e.__weh||(e.__weh=(...s)=>{if(n.isUnmounted)return;io(),Ui(n);const l=gn(e,n,t,s);return si(),oo(),l});return r?i.unshift(o):i.push(o),o}}const ar=t=>(e,n=bt)=>(!Ki||t==="sp")&&Oa(t,(...r)=>e(...r),n),Xv=ar("bm"),Ye=ar("m"),Zv=ar("bu"),e2=ar("u"),ps=ar("bum"),Lt=ar("um"),t2=ar("sp"),n2=ar("rtg"),r2=ar("rtc");function i2(t,e=bt){Oa("ec",t,e)}function wn(t,e,n,r){let i;const o=n&&n[r];if(we(t)||ut(t)){i=new Array(t.length);for(let s=0,l=t.length;se(s,l,void 0,o&&o[l]));else{const s=Object.keys(t);i=new Array(s.length);for(let l=0,a=s.length;l{const o=r.fn(...i);return o&&(o.key=r.key),o}:r.fn)}return t}function Ce(t,e,n={},r,i){if(Rt.isCE||Rt.parent&&Oo(Rt.parent)&&Rt.parent.isCE)return e!=="default"&&(n.name=e),Se("slot",n,r&&r());let o=t[e];o&&o._c&&(o._d=!1),I();const s=o&&kg(o(n)),l=Be(ze,{key:n.key||s&&s.key||`_${e}`},s||(r?r():[]),s&&t._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function kg(t){return t.some(e=>_l(e)?!(e.type===yn||e.type===ze&&!kg(e.children)):!0)?t:null}const oc=t=>t?jg(t)?Na(t)||t.proxy:oc(t.parent):null,Ro=St(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>oc(t.parent),$root:t=>oc(t.root),$emit:t=>t.emit,$options:t=>wd(t),$forceUpdate:t=>t.f||(t.f=()=>Ma(t.update)),$nextTick:t=>t.n||(t.n=_t.bind(t.proxy)),$watch:t=>Uv.bind(t)}),uu=(t,e)=>t!==rt&&!t.__isScriptSetup&&Ue(t,e),o2={get({_:t},e){const{ctx:n,setupState:r,data:i,props:o,accessCache:s,type:l,appContext:a}=t;let u;if(e[0]!=="$"){const p=s[e];if(p!==void 0)switch(p){case 1:return r[e];case 2:return i[e];case 4:return n[e];case 3:return o[e]}else{if(uu(r,e))return s[e]=1,r[e];if(i!==rt&&Ue(i,e))return s[e]=2,i[e];if((u=t.propsOptions[0])&&Ue(u,e))return s[e]=3,o[e];if(n!==rt&&Ue(n,e))return s[e]=4,n[e];sc&&(s[e]=0)}}const c=Ro[e];let f,h;if(c)return e==="$attrs"&&tn(t,"get",e),c(t);if((f=l.__cssModules)&&(f=f[e]))return f;if(n!==rt&&Ue(n,e))return s[e]=4,n[e];if(h=a.config.globalProperties,Ue(h,e))return h[e]},set({_:t},e,n){const{data:r,setupState:i,ctx:o}=t;return uu(i,e)?(i[e]=n,!0):r!==rt&&Ue(r,e)?(r[e]=n,!0):Ue(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(o[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:i,propsOptions:o}},s){let l;return!!n[s]||t!==rt&&Ue(t,s)||uu(e,s)||(l=o[0])&&Ue(l,s)||Ue(r,s)||Ue(Ro,s)||Ue(i.config.globalProperties,s)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Ue(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function bd(){return Cg().slots}function ms(){return Cg().attrs}function Cg(){const t=so();return t.setupContext||(t.setupContext=Dg(t))}function ih(t){return we(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let sc=!0;function s2(t){const e=wd(t),n=t.proxy,r=t.ctx;sc=!1,e.beforeCreate&&oh(e.beforeCreate,t,"bc");const{data:i,computed:o,methods:s,watch:l,provide:a,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:p,updated:g,activated:v,deactivated:b,beforeDestroy:x,beforeUnmount:_,destroyed:T,unmounted:d,render:y,renderTracked:m,renderTriggered:w,errorCaptured:k,serverPrefetch:S,expose:C,inheritAttrs:E,components:R,directives:P,filters:L}=e;if(u&&l2(u,r,null),s)for(const N in s){const D=s[N];Ee(D)&&(r[N]=D.bind(n))}if(i){const N=i.call(n,n);it(N)&&(t.data=Sn(N))}if(sc=!0,o)for(const N in o){const D=o[N],q=Ee(D)?D.bind(n,n):Ee(D.get)?D.get.bind(n,n):Rn,ae=!Ee(D)&&Ee(D.set)?D.set.bind(n):Rn,Q=$({get:q,set:ae});Object.defineProperty(r,N,{enumerable:!0,configurable:!0,get:()=>Q.value,set:me=>Q.value=me})}if(l)for(const N in l)_g(l[N],r,n,N);if(a){const N=Ee(a)?a.call(n):a;Reflect.ownKeys(N).forEach(D=>{Ct(D,N[D])})}c&&oh(c,t,"c");function M(N,D){we(D)?D.forEach(q=>N(q.bind(n))):D&&N(D.bind(n))}if(M(Xv,f),M(Ye,h),M(Zv,p),M(e2,g),M(Gv,v),M(Yv,b),M(i2,k),M(r2,m),M(n2,w),M(ps,_),M(Lt,d),M(t2,S),we(C))if(C.length){const N=t.exposed||(t.exposed={});C.forEach(D=>{Object.defineProperty(N,D,{get:()=>n[D],set:q=>n[D]=q})})}else t.exposed||(t.exposed={});y&&t.render===Rn&&(t.render=y),E!=null&&(t.inheritAttrs=E),R&&(t.components=R),P&&(t.directives=P)}function l2(t,e,n=Rn){we(t)&&(t=lc(t));for(const r in t){const i=t[r];let o;it(i)?"default"in i?o=Je(i.from||r,i.default,!0):o=Je(i.from||r):o=Je(i),$t(o)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):e[r]=o}}function oh(t,e,n){gn(we(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function _g(t,e,n,r){const i=r.includes(".")?yg(n,r):()=>n[r];if(ut(t)){const o=e[t];Ee(o)&&Pt(i,o)}else if(Ee(t))Pt(i,t.bind(n));else if(it(t))if(we(t))t.forEach(o=>_g(o,e,n,r));else{const o=Ee(t.handler)?t.handler.bind(n):e[t.handler];Ee(o)&&Pt(i,o,t)}}function wd(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=t.appContext,l=o.get(e);let a;return l?a=l:!i.length&&!n&&!r?a=e:(a={},i.length&&i.forEach(u=>Cl(a,u,s,!0)),Cl(a,e,s)),it(e)&&o.set(e,a),a}function Cl(t,e,n,r=!1){const{mixins:i,extends:o}=e;o&&Cl(t,o,n,!0),i&&i.forEach(s=>Cl(t,s,n,!0));for(const s in e)if(!(r&&s==="expose")){const l=a2[s]||n&&n[s];t[s]=l?l(t[s],e[s]):e[s]}return t}const a2={data:sh,props:lh,emits:lh,methods:So,computed:So,beforeCreate:Kt,created:Kt,beforeMount:Kt,mounted:Kt,beforeUpdate:Kt,updated:Kt,beforeDestroy:Kt,beforeUnmount:Kt,destroyed:Kt,unmounted:Kt,activated:Kt,deactivated:Kt,errorCaptured:Kt,serverPrefetch:Kt,components:So,directives:So,watch:c2,provide:sh,inject:u2};function sh(t,e){return e?t?function(){return St(Ee(t)?t.call(this,this):t,Ee(e)?e.call(this,this):e)}:e:t}function u2(t,e){return So(lc(t),lc(e))}function lc(t){if(we(t)){const e={};for(let n=0;n1)return n&&Ee(e)?e.call(r&&r.proxy):e}}function DR(){return!!(bt||Rt||Go)}function h2(t,e,n,r=!1){const i={},o={};bl(o,Pa,1),t.propsDefaults=Object.create(null),Mg(t,e,i,o);for(const s in t.propsOptions[0])s in i||(i[s]=void 0);n?t.props=r?i:tg(i):t.type.props?t.props=i:t.props=o,t.attrs=o}function p2(t,e,n,r){const{props:i,attrs:o,vnode:{patchFlag:s}}=t,l=de(i),[a]=t.propsOptions;let u=!1;if((r||s>0)&&!(s&16)){if(s&8){const c=t.vnode.dynamicProps;for(let f=0;f{a=!0;const[h,p]=Eg(f,e,!0);St(s,h),p&&l.push(...p)};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!o&&!a)return it(t)&&r.set(t,Li),Li;if(we(o))for(let c=0;c-1,p[1]=v<0||g-1||Ue(p,"default"))&&l.push(f)}}}const u=[s,l];return it(t)&&r.set(t,u),u}function ah(t){return t[0]!=="$"}function uh(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function ch(t,e){return uh(t)===uh(e)}function dh(t,e){return we(e)?e.findIndex(n=>ch(n,t)):Ee(e)&&ch(e,t)?0:-1}const Ag=t=>t[0]==="_"||t==="$stable",xd=t=>we(t)?t.map(Hn):[Hn(t)],m2=(t,e,n)=>{if(e._n)return e;const r=Oe((...i)=>xd(e(...i)),n);return r._c=!1,r},Tg=(t,e,n)=>{const r=t._ctx;for(const i in t){if(Ag(i))continue;const o=t[i];if(Ee(o))e[i]=m2(i,o,r);else if(o!=null){const s=xd(o);e[i]=()=>s}}},Og=(t,e)=>{const n=xd(e);t.slots.default=()=>n},g2=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=de(e),bl(e,"_",n)):Tg(e,t.slots={})}else t.slots={},e&&Og(t,e);bl(t.slots,Pa,1)},y2=(t,e,n)=>{const{vnode:r,slots:i}=t;let o=!0,s=rt;if(r.shapeFlag&32){const l=e._;l?n&&l===1?o=!1:(St(i,e),!n&&l===1&&delete i._):(o=!e.$stable,Tg(e,i)),s=e}else e&&(Og(t,e),s={default:1});if(o)for(const l in i)!Ag(l)&&s[l]==null&&delete i[l]};function uc(t,e,n,r,i=!1){if(we(t)){t.forEach((h,p)=>uc(h,e&&(we(e)?e[p]:e),n,r,i));return}if(Oo(r)&&!i)return;const o=r.shapeFlag&4?Na(r.component)||r.component.proxy:r.el,s=i?null:o,{i:l,r:a}=t,u=e&&e.r,c=l.refs===rt?l.refs={}:l.refs,f=l.setupState;if(u!=null&&u!==a&&(ut(u)?(c[u]=null,Ue(f,u)&&(f[u]=null)):$t(u)&&(u.value=null)),Ee(a))Or(a,l,12,[s,c]);else{const h=ut(a),p=$t(a);if(h||p){const g=()=>{if(t.f){const v=h?Ue(f,a)?f[a]:c[a]:a.value;i?we(v)&&ud(v,o):we(v)?v.includes(o)||v.push(o):h?(c[a]=[o],Ue(f,a)&&(f[a]=c[a])):(a.value=[o],t.k&&(c[t.k]=a.value))}else h?(c[a]=s,Ue(f,a)&&(f[a]=s)):p&&(a.value=s,t.k&&(c[t.k]=s))};s?(g.id=-1,Gt(g,n)):g()}}}const Gt=Vv;function v2(t){return b2(t)}function b2(t,e){const n=Yu();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:s,createText:l,createComment:a,setText:u,setElementText:c,parentNode:f,nextSibling:h,setScopeId:p=Rn,insertStaticContent:g}=t,v=(A,O,j,H=null,V=null,J=null,se=!1,Z=null,te=!!O.dynamicChildren)=>{if(A===O)return;A&&!Qr(A,O)&&(H=z(A),me(A,V,J,!0),A=null),O.patchFlag===-2&&(te=!1,O.dynamicChildren=null);const{type:G,ref:he,shapeFlag:ce}=O;switch(G){case Ra:b(A,O,j,H);break;case yn:x(A,O,j,H);break;case sl:A==null&&_(O,j,H,se);break;case ze:R(A,O,j,H,V,J,se,Z,te);break;default:ce&1?y(A,O,j,H,V,J,se,Z,te):ce&6?P(A,O,j,H,V,J,se,Z,te):(ce&64||ce&128)&&G.process(A,O,j,H,V,J,se,Z,te,ee)}he!=null&&V&&uc(he,A&&A.ref,J,O||A,!O)},b=(A,O,j,H)=>{if(A==null)r(O.el=l(O.children),j,H);else{const V=O.el=A.el;O.children!==A.children&&u(V,O.children)}},x=(A,O,j,H)=>{A==null?r(O.el=a(O.children||""),j,H):O.el=A.el},_=(A,O,j,H)=>{[A.el,A.anchor]=g(A.children,O,j,H,A.el,A.anchor)},T=({el:A,anchor:O},j,H)=>{let V;for(;A&&A!==O;)V=h(A),r(A,j,H),A=V;r(O,j,H)},d=({el:A,anchor:O})=>{let j;for(;A&&A!==O;)j=h(A),i(A),A=j;i(O)},y=(A,O,j,H,V,J,se,Z,te)=>{se=se||O.type==="svg",A==null?m(O,j,H,V,J,se,Z,te):S(A,O,V,J,se,Z,te)},m=(A,O,j,H,V,J,se,Z)=>{let te,G;const{type:he,props:ce,shapeFlag:pe,transition:ke,dirs:Re}=A;if(te=A.el=s(A.type,J,ce&&ce.is,ce),pe&8?c(te,A.children):pe&16&&k(A.children,te,null,H,V,J&&he!=="foreignObject",se,Z),Re&&Wr(A,null,H,"created"),w(te,A,A.scopeId,se,H),ce){for(const Ve in ce)Ve!=="value"&&!ol(Ve)&&o(te,Ve,null,ce[Ve],J,A.children,H,V,Te);"value"in ce&&o(te,"value",null,ce.value),(G=ce.onVnodeBeforeMount)&&Dn(G,H,A)}Re&&Wr(A,null,H,"beforeMount");const Ge=w2(V,ke);Ge&&ke.beforeEnter(te),r(te,O,j),((G=ce&&ce.onVnodeMounted)||Ge||Re)&&Gt(()=>{G&&Dn(G,H,A),Ge&&ke.enter(te),Re&&Wr(A,null,H,"mounted")},V)},w=(A,O,j,H,V)=>{if(j&&p(A,j),H)for(let J=0;J{for(let G=te;G{const Z=O.el=A.el;let{patchFlag:te,dynamicChildren:G,dirs:he}=O;te|=A.patchFlag&16;const ce=A.props||rt,pe=O.props||rt;let ke;j&&Ur(j,!1),(ke=pe.onVnodeBeforeUpdate)&&Dn(ke,j,O,A),he&&Wr(O,A,j,"beforeUpdate"),j&&Ur(j,!0);const Re=V&&O.type!=="foreignObject";if(G?C(A.dynamicChildren,G,Z,j,H,Re,J):se||D(A,O,Z,null,j,H,Re,J,!1),te>0){if(te&16)E(Z,O,ce,pe,j,H,V);else if(te&2&&ce.class!==pe.class&&o(Z,"class",null,pe.class,V),te&4&&o(Z,"style",ce.style,pe.style,V),te&8){const Ge=O.dynamicProps;for(let Ve=0;Ve{ke&&Dn(ke,j,O,A),he&&Wr(O,A,j,"updated")},H)},C=(A,O,j,H,V,J,se)=>{for(let Z=0;Z{if(j!==H){if(j!==rt)for(const Z in j)!ol(Z)&&!(Z in H)&&o(A,Z,j[Z],null,se,O.children,V,J,Te);for(const Z in H){if(ol(Z))continue;const te=H[Z],G=j[Z];te!==G&&Z!=="value"&&o(A,Z,G,te,se,O.children,V,J,Te)}"value"in H&&o(A,"value",j.value,H.value)}},R=(A,O,j,H,V,J,se,Z,te)=>{const G=O.el=A?A.el:l(""),he=O.anchor=A?A.anchor:l("");let{patchFlag:ce,dynamicChildren:pe,slotScopeIds:ke}=O;ke&&(Z=Z?Z.concat(ke):ke),A==null?(r(G,j,H),r(he,j,H),k(O.children,j,he,V,J,se,Z,te)):ce>0&&ce&64&&pe&&A.dynamicChildren?(C(A.dynamicChildren,pe,j,V,J,se,Z),(O.key!=null||V&&O===V.subTree)&&kd(A,O,!0)):D(A,O,j,he,V,J,se,Z,te)},P=(A,O,j,H,V,J,se,Z,te)=>{O.slotScopeIds=Z,A==null?O.shapeFlag&512?V.ctx.activate(O,j,H,se,te):L(O,j,H,V,J,se,te):B(A,O,te)},L=(A,O,j,H,V,J,se)=>{const Z=A.component=T2(A,H,V);if(hs(A)&&(Z.ctx.renderer=ee),O2(Z),Z.asyncDep){if(V&&V.registerDep(Z,M),!A.el){const te=Z.subTree=Se(yn);x(null,te,O,j)}return}M(Z,A,O,j,V,J,se)},B=(A,O,j)=>{const H=O.component=A.component;if(zv(A,O,j))if(H.asyncDep&&!H.asyncResolved){N(H,O,j);return}else H.next=O,jv(H.update),H.update();else O.el=A.el,H.vnode=O},M=(A,O,j,H,V,J,se)=>{const Z=()=>{if(A.isMounted){let{next:he,bu:ce,u:pe,parent:ke,vnode:Re}=A,Ge=he,Ve;Ur(A,!1),he?(he.el=Re.el,N(A,he,se)):he=Re,ce&&iu(ce),(Ve=he.props&&he.props.onVnodeBeforeUpdate)&&Dn(Ve,ke,he,Re),Ur(A,!0);const dt=ou(A),nn=A.subTree;A.subTree=dt,v(nn,dt,f(nn.el),z(nn),A,V,J),he.el=dt.el,Ge===null&&Hv(A,dt.el),pe&&Gt(pe,V),(Ve=he.props&&he.props.onVnodeUpdated)&&Gt(()=>Dn(Ve,ke,he,Re),V)}else{let he;const{el:ce,props:pe}=O,{bm:ke,m:Re,parent:Ge}=A,Ve=Oo(O);if(Ur(A,!1),ke&&iu(ke),!Ve&&(he=pe&&pe.onVnodeBeforeMount)&&Dn(he,Ge,O),Ur(A,!0),ce&&Ne){const dt=()=>{A.subTree=ou(A),Ne(ce,A.subTree,A,V,null)};Ve?O.type.__asyncLoader().then(()=>!A.isUnmounted&&dt()):dt()}else{const dt=A.subTree=ou(A);v(null,dt,j,H,A,V,J),O.el=dt.el}if(Re&&Gt(Re,V),!Ve&&(he=pe&&pe.onVnodeMounted)){const dt=O;Gt(()=>Dn(he,Ge,dt),V)}(O.shapeFlag&256||Ge&&Oo(Ge.vnode)&&Ge.vnode.shapeFlag&256)&&A.a&&Gt(A.a,V),A.isMounted=!0,O=j=H=null}},te=A.effect=new fd(Z,()=>Ma(G),A.scope),G=A.update=()=>te.run();G.id=A.uid,Ur(A,!0),G()},N=(A,O,j)=>{O.component=A;const H=A.vnode.props;A.vnode=O,A.next=null,p2(A,O.props,H,j),y2(A,O.children,j),io(),eh(),oo()},D=(A,O,j,H,V,J,se,Z,te=!1)=>{const G=A&&A.children,he=A?A.shapeFlag:0,ce=O.children,{patchFlag:pe,shapeFlag:ke}=O;if(pe>0){if(pe&128){ae(G,ce,j,H,V,J,se,Z,te);return}else if(pe&256){q(G,ce,j,H,V,J,se,Z,te);return}}ke&8?(he&16&&Te(G,V,J),ce!==G&&c(j,ce)):he&16?ke&16?ae(G,ce,j,H,V,J,se,Z,te):Te(G,V,J,!0):(he&8&&c(j,""),ke&16&&k(ce,j,H,V,J,se,Z,te))},q=(A,O,j,H,V,J,se,Z,te)=>{A=A||Li,O=O||Li;const G=A.length,he=O.length,ce=Math.min(G,he);let pe;for(pe=0;pehe?Te(A,V,J,!0,!1,ce):k(O,j,H,V,J,se,Z,te,ce)},ae=(A,O,j,H,V,J,se,Z,te)=>{let G=0;const he=O.length;let ce=A.length-1,pe=he-1;for(;G<=ce&&G<=pe;){const ke=A[G],Re=O[G]=te?yr(O[G]):Hn(O[G]);if(Qr(ke,Re))v(ke,Re,j,null,V,J,se,Z,te);else break;G++}for(;G<=ce&&G<=pe;){const ke=A[ce],Re=O[pe]=te?yr(O[pe]):Hn(O[pe]);if(Qr(ke,Re))v(ke,Re,j,null,V,J,se,Z,te);else break;ce--,pe--}if(G>ce){if(G<=pe){const ke=pe+1,Re=kepe)for(;G<=ce;)me(A[G],V,J,!0),G++;else{const ke=G,Re=G,Ge=new Map;for(G=Re;G<=pe;G++){const le=O[G]=te?yr(O[G]):Hn(O[G]);le.key!=null&&Ge.set(le.key,G)}let Ve,dt=0;const nn=pe-Re+1;let ur=!1,_s=0;const Fr=new Array(nn);for(G=0;G=nn){me(le,V,J,!0);continue}let ge;if(le.key!=null)ge=Ge.get(le.key);else for(Ve=Re;Ve<=pe;Ve++)if(Fr[Ve-Re]===0&&Qr(le,O[Ve])){ge=Ve;break}ge===void 0?me(le,V,J,!0):(Fr[ge-Re]=G+1,ge>=_s?_s=ge:ur=!0,v(le,O[ge],j,null,V,J,se,Z,te),dt++)}const F=ur?x2(Fr):Li;for(Ve=F.length-1,G=nn-1;G>=0;G--){const le=Re+G,ge=O[le],qe=le+1{const{el:J,type:se,transition:Z,children:te,shapeFlag:G}=A;if(G&6){Q(A.component.subTree,O,j,H);return}if(G&128){A.suspense.move(O,j,H);return}if(G&64){se.move(A,O,j,ee);return}if(se===ze){r(J,O,j);for(let ce=0;ceZ.enter(J),V);else{const{leave:ce,delayLeave:pe,afterLeave:ke}=Z,Re=()=>r(J,O,j),Ge=()=>{ce(J,()=>{Re(),ke&&ke()})};pe?pe(J,Re,Ge):Ge()}else r(J,O,j)},me=(A,O,j,H=!1,V=!1)=>{const{type:J,props:se,ref:Z,children:te,dynamicChildren:G,shapeFlag:he,patchFlag:ce,dirs:pe}=A;if(Z!=null&&uc(Z,null,j,A,!0),he&256){O.ctx.deactivate(A);return}const ke=he&1&&pe,Re=!Oo(A);let Ge;if(Re&&(Ge=se&&se.onVnodeBeforeUnmount)&&Dn(Ge,O,A),he&6)Pe(A.component,j,H);else{if(he&128){A.suspense.unmount(j,H);return}ke&&Wr(A,null,O,"beforeUnmount"),he&64?A.type.remove(A,O,j,V,ee,H):G&&(J!==ze||ce>0&&ce&64)?Te(G,O,j,!1,!0):(J===ze&&ce&384||!V&&he&16)&&Te(te,O,j),H&&Le(A)}(Re&&(Ge=se&&se.onVnodeUnmounted)||ke)&&Gt(()=>{Ge&&Dn(Ge,O,A),ke&&Wr(A,null,O,"unmounted")},j)},Le=A=>{const{type:O,el:j,anchor:H,transition:V}=A;if(O===ze){De(j,H);return}if(O===sl){d(A);return}const J=()=>{i(j),V&&!V.persisted&&V.afterLeave&&V.afterLeave()};if(A.shapeFlag&1&&V&&!V.persisted){const{leave:se,delayLeave:Z}=V,te=()=>se(j,J);Z?Z(A.el,J,te):te()}else J()},De=(A,O)=>{let j;for(;A!==O;)j=h(A),i(A),A=j;i(O)},Pe=(A,O,j)=>{const{bum:H,scope:V,update:J,subTree:se,um:Z}=A;H&&iu(H),V.stop(),J&&(J.active=!1,me(se,A,O,j)),Z&&Gt(Z,O),Gt(()=>{A.isUnmounted=!0},O),O&&O.pendingBranch&&!O.isUnmounted&&A.asyncDep&&!A.asyncResolved&&A.suspenseId===O.pendingId&&(O.deps--,O.deps===0&&O.resolve())},Te=(A,O,j,H=!1,V=!1,J=0)=>{for(let se=J;seA.shapeFlag&6?z(A.component.subTree):A.shapeFlag&128?A.suspense.next():h(A.anchor||A.el),X=(A,O,j)=>{A==null?O._vnode&&me(O._vnode,null,null,!0):v(O._vnode||null,A,O,null,null,null,j),eh(),fg(),O._vnode=A},ee={p:v,um:me,m:Q,r:Le,mt:L,mc:k,pc:D,pbc:C,n:z,o:t};let ue,Ne;return e&&([ue,Ne]=e(ee)),{render:X,hydrate:ue,createApp:f2(X,ue)}}function Ur({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function w2(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function kd(t,e,n=!1){const r=t.children,i=e.children;if(we(r)&&we(i))for(let o=0;o>1,t[n[l]]0&&(e[r]=n[o-1]),n[o]=r)}}for(o=n.length,s=n[o-1];o-- >0;)n[o]=s,s=e[s];return n}const k2=t=>t.__isTeleport,Po=t=>t&&(t.disabled||t.disabled===""),fh=t=>typeof SVGElement!="undefined"&&t instanceof SVGElement,cc=(t,e)=>{const n=t&&t.to;return ut(n)?e?e(n):null:n},C2={name:"Teleport",__isTeleport:!0,process(t,e,n,r,i,o,s,l,a,u){const{mc:c,pc:f,pbc:h,o:{insert:p,querySelector:g,createText:v,createComment:b}}=u,x=Po(e.props);let{shapeFlag:_,children:T,dynamicChildren:d}=e;if(t==null){const y=e.el=v(""),m=e.anchor=v("");p(y,n,r),p(m,n,r);const w=e.target=cc(e.props,g),k=e.targetAnchor=v("");w&&(p(k,w),s=s||fh(w));const S=(C,E)=>{_&16&&c(T,C,E,i,o,s,l,a)};x?S(n,m):w&&S(w,k)}else{e.el=t.el;const y=e.anchor=t.anchor,m=e.target=t.target,w=e.targetAnchor=t.targetAnchor,k=Po(t.props),S=k?n:m,C=k?y:w;if(s=s||fh(m),d?(h(t.dynamicChildren,d,S,i,o,s,l),kd(t,e,!0)):a||f(t,e,S,C,i,o,s,l,!1),x)k?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Ds(e,n,y,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const E=e.target=cc(e.props,g);E&&Ds(e,E,null,u,0)}else k&&Ds(e,m,w,u,1)}Rg(e)},remove(t,e,n,r,{um:i,o:{remove:o}},s){const{shapeFlag:l,children:a,anchor:u,targetAnchor:c,target:f,props:h}=t;if(f&&o(c),s&&o(u),l&16){const p=s||!Po(h);for(let g=0;g0?Tn||Li:null,S2(),Yo>0&&Tn&&Tn.push(t),t}function W(t,e,n,r,i,o){return Pg(K(t,e,n,r,i,o,!0))}function Be(t,e,n,r,i){return Pg(Se(t,e,n,r,i,!0))}function _l(t){return t?t.__v_isVNode===!0:!1}function Qr(t,e){return t.type===e.type&&t.key===e.key}const Pa="__vInternal",Ng=({key:t})=>t!=null?t:null,ll=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?ut(t)||$t(t)||Ee(t)?{i:Rt,r:t,k:e,f:!!n}:t:null);function K(t,e=null,n=null,r=0,i=null,o=t===ze?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Ng(e),ref:e&&ll(e),scopeId:Aa,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Rt};return l?(_d(a,n),o&128&&t.normalize(a)):n&&(a.shapeFlag|=ut(n)?8:16),Yo>0&&!s&&Tn&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&Tn.push(a),a}const Se=M2;function M2(t,e=null,n=null,r=0,i=null,o=!1){if((!t||t===mg)&&(t=yn),_l(t)){const l=sr(t,e,!0);return n&&_d(l,n),Yo>0&&!o&&Tn&&(l.shapeFlag&6?Tn[Tn.indexOf(t)]=l:Tn.push(l)),l.patchFlag|=-2,l}if(j2(t)&&(t=t.__vccOpts),e){e=Ft(e);let{class:l,style:a}=e;l&&!ut(l)&&(e.class=ye(l)),it(a)&&(rg(a)&&!we(a)&&(a=St({},a)),e.style=Ir(a))}const s=ut(t)?1:Fv(t)?128:k2(t)?64:it(t)?4:Ee(t)?2:0;return K(t,e,n,r,i,s,o,!0)}function Ft(t){return t?rg(t)||Pa in t?St({},t):t:null}function sr(t,e,n=!1){const{props:r,ref:i,patchFlag:o,children:s}=t,l=e?yt(r||{},e):r;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&Ng(l),ref:e&&e.ref?n&&i?we(i)?i.concat(ll(e)):[i,ll(e)]:ll(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:s,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ze?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&sr(t.ssContent),ssFallback:t.ssFallback&&sr(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function xn(t=" ",e=0){return Se(Ra,null,t,e)}function Ae(t="",e=!1){return e?(I(),Be(yn,null,t)):Se(yn,null,t)}function Hn(t){return t==null||typeof t=="boolean"?Se(yn):we(t)?Se(ze,null,t.slice()):typeof t=="object"?yr(t):Se(Ra,null,String(t))}function yr(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:sr(t)}function _d(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(we(e))n=16;else if(typeof e=="object")if(r&65){const i=e.default;i&&(i._c&&(i._d=!1),_d(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!(Pa in e)?e._ctx=Rt:i===3&&Rt&&(Rt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Ee(e)?(e={default:e,_ctx:Rt},n=32):(e=String(e),r&64?(n=16,e=[xn(e)]):n=8);t.children=e,t.shapeFlag|=n}function yt(...t){const e={};for(let n=0;nbt||Rt;let Sd,Ei,ph="__VUE_INSTANCE_SETTERS__";(Ei=Yu()[ph])||(Ei=Yu()[ph]=[]),Ei.push(t=>bt=t),Sd=t=>{Ei.length>1?Ei.forEach(e=>e(t)):Ei[0](t)};const Ui=t=>{Sd(t),t.scope.on()},si=()=>{bt&&bt.scope.off(),Sd(null)};function jg(t){return t.vnode.shapeFlag&4}let Ki=!1;function O2(t,e=!1){Ki=e;const{props:n,children:r}=t.vnode,i=jg(t);h2(t,n,i,e),g2(t,r);const o=i?R2(t,e):void 0;return Ki=!1,o}function R2(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=ig(new Proxy(t.ctx,o2));const{setup:r}=n;if(r){const i=t.setupContext=r.length>1?Dg(t):null;Ui(t),io();const o=Or(r,t,0,[t.props,i]);if(oo(),si(),Bm(o)){if(o.then(si,si),e)return o.then(s=>{mh(t,s,e)}).catch(s=>{fs(s,t,0)});t.asyncDep=o}else mh(t,o,e)}else Lg(t,e)}function mh(t,e,n){Ee(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:it(e)&&(t.setupState=ug(e)),Lg(t,n)}let gh;function Lg(t,e,n){const r=t.type;if(!t.render){if(!e&&gh&&!r.render){const i=r.template||wd(t).template;if(i){const{isCustomElement:o,compilerOptions:s}=t.appContext.config,{delimiters:l,compilerOptions:a}=r,u=St(St({isCustomElement:o,delimiters:l},s),a);r.render=gh(i,u)}}t.render=r.render||Rn}{Ui(t),io();try{s2(t)}finally{oo(),si()}}}function P2(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,n){return tn(t,"get","$attrs"),e[n]}}))}function Dg(t){const e=n=>{t.exposed=n||{}};return{get attrs(){return P2(t)},slots:t.slots,emit:t.emit,expose:e}}function Na(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(ug(ig(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Ro)return Ro[n](t)},has(e,n){return n in e||n in Ro}}))}function N2(t,e=!0){return Ee(t)?t.displayName||t.name:t.name||e&&t.__name}function j2(t){return Ee(t)&&"__vccOpts"in t}const $=(t,e)=>ec(t,e,Ki);function Fe(t,e,n){const r=arguments.length;return r===2?it(e)&&!we(e)?_l(e)?Se(t,null,[e]):Se(t,e):Se(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&_l(n)&&(n=[n]),Se(t,e,n))}const L2=Symbol.for("v-scx"),D2=()=>Je(L2),I2="3.3.10",B2="http://www.w3.org/2000/svg",Xr=typeof document!="undefined"?document:null,yh=Xr&&Xr.createElement("template"),$2={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const i=e?Xr.createElementNS(B2,t):Xr.createElement(t,n?{is:n}:void 0);return t==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:t=>Xr.createTextNode(t),createComment:t=>Xr.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Xr.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,i,o){const s=n?n.previousSibling:e.lastChild;if(i&&(i===o||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{yh.innerHTML=r?`${t}`:t;const l=yh.content;if(r){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}e.insertBefore(l,n)}return[s?s.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},fr="transition",yo="animation",Qo=Symbol("_vtc"),ja=(t,{slots:e})=>Fe(Jv,z2(t),e);ja.displayName="Transition";const Ig={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};ja.props=St({},vg,Ig);const Kr=(t,e=[])=>{we(t)?t.forEach(n=>n(...e)):t&&t(...e)},vh=t=>t?we(t)?t.some(e=>e.length>1):t.length>1:!1;function z2(t){const e={};for(const R in t)R in Ig||(e[R]=t[R]);if(t.css===!1)return e;const{name:n="v",type:r,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=o,appearActiveClass:u=s,appearToClass:c=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=t,g=H2(i),v=g&&g[0],b=g&&g[1],{onBeforeEnter:x,onEnter:_,onEnterCancelled:T,onLeave:d,onLeaveCancelled:y,onBeforeAppear:m=x,onAppear:w=_,onAppearCancelled:k=T}=e,S=(R,P,L)=>{qr(R,P?c:l),qr(R,P?u:s),L&&L()},C=(R,P)=>{R._isLeaving=!1,qr(R,f),qr(R,p),qr(R,h),P&&P()},E=R=>(P,L)=>{const B=R?w:_,M=()=>S(P,R,L);Kr(B,[P,M]),bh(()=>{qr(P,R?a:o),hr(P,R?c:l),vh(B)||wh(P,r,v,M)})};return St(e,{onBeforeEnter(R){Kr(x,[R]),hr(R,o),hr(R,s)},onBeforeAppear(R){Kr(m,[R]),hr(R,a),hr(R,u)},onEnter:E(!1),onAppear:E(!0),onLeave(R,P){R._isLeaving=!0;const L=()=>C(R,P);hr(R,f),W2(),hr(R,h),bh(()=>{!R._isLeaving||(qr(R,f),hr(R,p),vh(d)||wh(R,r,b,L))}),Kr(d,[R,L])},onEnterCancelled(R){S(R,!1),Kr(T,[R])},onAppearCancelled(R){S(R,!0),Kr(k,[R])},onLeaveCancelled(R){C(R),Kr(y,[R])}})}function H2(t){if(t==null)return null;if(it(t))return[cu(t.enter),cu(t.leave)];{const e=cu(t);return[e,e]}}function cu(t){return Qy(t)}function hr(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[Qo]||(t[Qo]=new Set)).add(e)}function qr(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const n=t[Qo];n&&(n.delete(e),n.size||(t[Qo]=void 0))}function bh(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let F2=0;function wh(t,e,n,r){const i=t._endId=++F2,o=()=>{i===t._endId&&r()};if(n)return setTimeout(o,n);const{type:s,timeout:l,propCount:a}=V2(t,e);if(!s)return r();const u=s+"end";let c=0;const f=()=>{t.removeEventListener(u,h),o()},h=p=>{p.target===t&&++c>=a&&f()};setTimeout(()=>{c(n[g]||"").split(", "),i=r(`${fr}Delay`),o=r(`${fr}Duration`),s=xh(i,o),l=r(`${yo}Delay`),a=r(`${yo}Duration`),u=xh(l,a);let c=null,f=0,h=0;e===fr?s>0&&(c=fr,f=s,h=o.length):e===yo?u>0&&(c=yo,f=u,h=a.length):(f=Math.max(s,u),c=f>0?s>u?fr:yo:null,h=c?c===fr?o.length:a.length:0);const p=c===fr&&/\b(transform|all)(,|$)/.test(r(`${fr}Property`).toString());return{type:c,timeout:f,propCount:h,hasTransform:p}}function xh(t,e){for(;t.lengthkh(n)+kh(t[r])))}function kh(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function W2(){return document.body.offsetHeight}function U2(t,e,n){const r=t[Qo];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const Md=Symbol("_vod"),dc={beforeMount(t,{value:e},{transition:n}){t[Md]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):vo(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),vo(t,!0),r.enter(t)):r.leave(t,()=>{vo(t,!1)}):vo(t,e))},beforeUnmount(t,{value:e}){vo(t,e)}};function vo(t,e){t.style.display=e?t[Md]:"none"}function K2(t,e,n){const r=t.style,i=ut(n);if(n&&!i){if(e&&!ut(e))for(const o in e)n[o]==null&&fc(r,o,"");for(const o in n)fc(r,o,n[o])}else{const o=r.display;i?e!==n&&(r.cssText=n):e&&t.removeAttribute("style"),Md in t&&(r.display=o)}}const Ch=/\s*!important$/;function fc(t,e,n){if(we(n))n.forEach(r=>fc(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=q2(t,e);Ch.test(n)?t.setProperty(xi(r),n.replace(Ch,""),"important"):t[r]=n}}const _h=["Webkit","Moz","ms"],du={};function q2(t,e){const n=du[e];if(n)return n;let r=Jn(e);if(r!=="filter"&&r in t)return du[e]=r;r=_a(r);for(let i=0;i<_h.length;i++){const o=_h[i]+r;if(o in t)return du[e]=o}return e}const Sh="http://www.w3.org/1999/xlink";function J2(t,e,n,r,i){if(r&&e.startsWith("xlink:"))n==null?t.removeAttributeNS(Sh,e.slice(6,e.length)):t.setAttributeNS(Sh,e,n);else{const o=rv(e);n==null||o&&!Hm(n)?t.removeAttribute(e):t.setAttribute(e,o?"":n)}}function G2(t,e,n,r,i,o,s){if(e==="innerHTML"||e==="textContent"){r&&s(r,i,o),t[e]=n==null?"":n;return}const l=t.tagName;if(e==="value"&&l!=="PROGRESS"&&!l.includes("-")){t._value=n;const u=l==="OPTION"?t.getAttribute("value"):t.value,c=n==null?"":n;u!==c&&(t.value=c),n==null&&t.removeAttribute(e);return}let a=!1;if(n===""||n==null){const u=typeof t[e];u==="boolean"?n=Hm(n):n==null&&u==="string"?(n="",a=!0):u==="number"&&(n=0,a=!0)}try{t[e]=n}catch(u){}a&&t.removeAttribute(e)}function Y2(t,e,n,r){t.addEventListener(e,n,r)}function Q2(t,e,n,r){t.removeEventListener(e,n,r)}const Mh=Symbol("_vei");function X2(t,e,n,r,i=null){const o=t[Mh]||(t[Mh]={}),s=o[e];if(r&&s)s.value=r;else{const[l,a]=Z2(e);if(r){const u=o[e]=nb(r,i);Y2(t,l,u,a)}else s&&(Q2(t,l,s,a),o[e]=void 0)}}const Eh=/(?:Once|Passive|Capture)$/;function Z2(t){let e;if(Eh.test(t)){e={};let r;for(;r=t.match(Eh);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):xi(t.slice(2)),e]}let fu=0;const eb=Promise.resolve(),tb=()=>fu||(eb.then(()=>fu=0),fu=Date.now());function nb(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;gn(rb(r,n.value),e,5,[r])};return n.value=t,n.attached=tb(),n}function rb(t,e){if(we(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>i=>!i._stopped&&r&&r(i))}else return e}const Ah=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,ib=(t,e,n,r,i=!1,o,s,l,a)=>{e==="class"?U2(t,r,i):e==="style"?K2(t,n,r):wa(e)?ad(e)||X2(t,e,n,r,s):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):ob(t,e,r,i))?G2(t,e,r,o,s,l,a):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),J2(t,e,r,i))};function ob(t,e,n,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in t&&Ah(e)&&Ee(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;return!(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")}return Ah(e)&&ut(n)?!1:e in t}function IR(t){const e=so();if(!e)return;const n=e.ut=(i=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(o=>pc(o,i))},r=()=>{const i=t(e.proxy);hc(e.subTree,i),n(i)};Wv(r),Ye(()=>{const i=new MutationObserver(r);i.observe(e.subTree.el.parentNode,{childList:!0}),Lt(()=>i.disconnect())})}function hc(t,e){if(t.shapeFlag&128){const n=t.suspense;t=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{hc(n.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)pc(t.el,e);else if(t.type===ze)t.children.forEach(n=>hc(n,e));else if(t.type===sl){let{el:n,anchor:r}=t;for(;n&&(pc(n,e),n!==r);)n=n.nextSibling}}function pc(t,e){if(t.nodeType===1){const n=t.style;for(const r in e)n.setProperty(`--${r}`,e[r])}}const sb=["ctrl","shift","alt","meta"],lb={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>sb.some(n=>t[`${n}Key`]&&!e.includes(n))},Ed=(t,e)=>t._withMods||(t._withMods=(n,...r)=>{for(let i=0;it._withKeys||(t._withKeys=n=>{if(!("key"in n))return;const r=xi(n.key);if(e.some(i=>i===r||ab[i]===r))return t(n)}),cb=St({patchProp:ib},$2);let Th;function db(){return Th||(Th=v2(cb))}const BR=(...t)=>{const e=db().createApp(...t),{mount:n}=e;return e.mount=r=>{const i=fb(r);if(!i)return;const o=e._component;!Ee(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const s=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},e};function fb(t){return ut(t)?document.querySelector(t):t}const hb="modulepreload",Oh={},pb="/assets/education/frontend/",Is=function(e,n){return!n||n.length===0?e():Promise.all(n.map(r=>{if(r=`${pb}${r}`,r in Oh)return;Oh[r]=!0;const i=r.endsWith(".css"),o=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${o}`))return;const s=document.createElement("link");if(s.rel=i?"stylesheet":hb,i||(s.as="script",s.crossOrigin=""),s.href=r,document.head.appendChild(s),i)return new Promise((l,a)=>{s.addEventListener("load",l),s.addEventListener("error",()=>a(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>e())};/*! - * vue-router v4.2.5 - * (c) 2023 Eduardo San Martin Morote - * @license MIT - */const Oi=typeof window!="undefined";function mb(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const Xe=Object.assign;function hu(t,e){const n={};for(const r in e){const i=e[r];n[r]=Nn(i)?i.map(t):t(i)}return n}const jo=()=>{},Nn=Array.isArray,gb=/\/$/,yb=t=>t.replace(gb,"");function pu(t,e,n="/"){let r,i={},o="",s="";const l=e.indexOf("#");let a=e.indexOf("?");return l=0&&(a=-1),a>-1&&(r=e.slice(0,a),o=e.slice(a+1,l>-1?l:e.length),i=t(o)),l>-1&&(r=r||e.slice(0,l),s=e.slice(l,e.length)),r=xb(r!=null?r:e,n),{fullPath:r+(o&&"?")+o+s,path:r,query:i,hash:s}}function vb(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function Rh(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function bb(t,e,n){const r=e.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&qi(e.matched[r],n.matched[i])&&Bg(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function qi(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function Bg(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!wb(t[n],e[n]))return!1;return!0}function wb(t,e){return Nn(t)?Ph(t,e):Nn(e)?Ph(e,t):t===e}function Ph(t,e){return Nn(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function xb(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let o=n.length-1,s,l;for(s=0;s1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(s-(s===r.length?1:0)).join("/")}var Xo;(function(t){t.pop="pop",t.push="push"})(Xo||(Xo={}));var Lo;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Lo||(Lo={}));function kb(t){if(!t)if(Oi){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),yb(t)}const Cb=/^[^#]+#/;function _b(t,e){return t.replace(Cb,"#")+e}function Sb(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const La=()=>({left:window.pageXOffset,top:window.pageYOffset});function Mb(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;e=Sb(i,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function Nh(t,e){return(history.state?history.state.position-e:-1)+t}const mc=new Map;function Eb(t,e){mc.set(t,e)}function Ab(t){const e=mc.get(t);return mc.delete(t),e}let Tb=()=>location.protocol+"//"+location.host;function $g(t,e){const{pathname:n,search:r,hash:i}=e,o=t.indexOf("#");if(o>-1){let l=i.includes(t.slice(o))?t.slice(o).length:1,a=i.slice(l);return a[0]!=="/"&&(a="/"+a),Rh(a,"")}return Rh(n,t)+r+i}function Ob(t,e,n,r){let i=[],o=[],s=null;const l=({state:h})=>{const p=$g(t,location),g=n.value,v=e.value;let b=0;if(h){if(n.value=p,e.value=h,s&&s===g){s=null;return}b=v?h.position-v.position:0}else r(p);i.forEach(x=>{x(n.value,g,{delta:b,type:Xo.pop,direction:b?b>0?Lo.forward:Lo.back:Lo.unknown})})};function a(){s=n.value}function u(h){i.push(h);const p=()=>{const g=i.indexOf(h);g>-1&&i.splice(g,1)};return o.push(p),p}function c(){const{history:h}=window;!h.state||h.replaceState(Xe({},h.state,{scroll:La()}),"")}function f(){for(const h of o)h();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:a,listen:u,destroy:f}}function jh(t,e,n,r=!1,i=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:i?La():null}}function Rb(t){const{history:e,location:n}=window,r={value:$g(t,n)},i={value:e.state};i.value||o(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function o(a,u,c){const f=t.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?t:t.slice(f))+a:Tb()+t+a;try{e[c?"replaceState":"pushState"](u,"",h),i.value=u}catch(p){console.error(p),n[c?"replace":"assign"](h)}}function s(a,u){const c=Xe({},e.state,jh(i.value.back,a,i.value.forward,!0),u,{position:i.value.position});o(a,c,!0),r.value=a}function l(a,u){const c=Xe({},i.value,e.state,{forward:a,scroll:La()});o(c.current,c,!0);const f=Xe({},jh(r.value,a,null),{position:c.position+1},u);o(a,f,!1),r.value=a}return{location:r,state:i,push:l,replace:s}}function $R(t){t=kb(t);const e=Rb(t),n=Ob(t,e.state,e.location,e.replace);function r(o,s=!0){s||n.pauseListeners(),history.go(o)}const i=Xe({location:"",base:t,go:r,createHref:_b.bind(null,t)},e,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function Pb(t){return typeof t=="string"||t&&typeof t=="object"}function zg(t){return typeof t=="string"||typeof t=="symbol"}const pr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Hg=Symbol("");var Lh;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Lh||(Lh={}));function Ji(t,e){return Xe(new Error,{type:t,[Hg]:!0},e)}function er(t,e){return t instanceof Error&&Hg in t&&(e==null||!!(t.type&e))}const Dh="[^/]+?",Nb={sensitive:!1,strict:!1,start:!0,end:!0},jb=/[.+*?^${}()[\]/\\]/g;function Lb(t,e){const n=Xe({},Nb,e),r=[];let i=n.start?"^":"";const o=[];for(const u of t){const c=u.length?[]:[90];n.strict&&!u.length&&(i+="/");for(let f=0;fe.length?e.length===1&&e[0]===40+40?1:-1:0}function Ib(t,e){let n=0;const r=t.score,i=e.score;for(;n0&&e[e.length-1]<0}const Bb={type:0,value:""},$b=/[a-zA-Z0-9_]/;function zb(t){if(!t)return[[]];if(t==="/")return[[Bb]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(p){throw new Error(`ERR (${n})/"${u}": ${p}`)}let n=0,r=n;const i=[];let o;function s(){o&&i.push(o),o=[]}let l=0,a,u="",c="";function f(){!u||(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(a==="*"||a==="+")&&e(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:c,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):e("Invalid state to consume buffer"),u="")}function h(){u+=a}for(;l{s(_)}:jo}function s(c){if(zg(c)){const f=r.get(c);f&&(r.delete(c),n.splice(n.indexOf(f),1),f.children.forEach(s),f.alias.forEach(s))}else{const f=n.indexOf(c);f>-1&&(n.splice(f,1),c.record.name&&r.delete(c.record.name),c.children.forEach(s),c.alias.forEach(s))}}function l(){return n}function a(c){let f=0;for(;f=0&&(c.record.path!==n[f].record.path||!Fg(c,n[f]));)f++;n.splice(f,0,c),c.record.name&&!$h(c)&&r.set(c.record.name,c)}function u(c,f){let h,p={},g,v;if("name"in c&&c.name){if(h=r.get(c.name),!h)throw Ji(1,{location:c});v=h.record.name,p=Xe(Bh(f.params,h.keys.filter(_=>!_.optional).map(_=>_.name)),c.params&&Bh(c.params,h.keys.map(_=>_.name))),g=h.stringify(p)}else if("path"in c)g=c.path,h=n.find(_=>_.re.test(g)),h&&(p=h.parse(g),v=h.record.name);else{if(h=f.name?r.get(f.name):n.find(_=>_.re.test(f.path)),!h)throw Ji(1,{location:c,currentLocation:f});v=h.record.name,p=Xe({},f.params,c.params),g=h.stringify(p)}const b=[];let x=h;for(;x;)b.unshift(x.record),x=x.parent;return{name:v,path:g,params:p,matched:b,meta:Ub(b)}}return t.forEach(c=>o(c)),{addRoute:o,resolve:u,removeRoute:s,getRoutes:l,getRecordMatcher:i}}function Bh(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function Vb(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:Wb(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function Wb(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const r in t.components)e[r]=typeof n=="object"?n[r]:n;return e}function $h(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function Ub(t){return t.reduce((e,n)=>Xe(e,n.meta),{})}function zh(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}function Fg(t,e){return e.children.some(n=>n===t||Fg(t,n))}const Vg=/#/g,Kb=/&/g,qb=/\//g,Jb=/=/g,Gb=/\?/g,Wg=/\+/g,Yb=/%5B/g,Qb=/%5D/g,Ug=/%5E/g,Xb=/%60/g,Kg=/%7B/g,Zb=/%7C/g,qg=/%7D/g,ew=/%20/g;function Ad(t){return encodeURI(""+t).replace(Zb,"|").replace(Yb,"[").replace(Qb,"]")}function tw(t){return Ad(t).replace(Kg,"{").replace(qg,"}").replace(Ug,"^")}function gc(t){return Ad(t).replace(Wg,"%2B").replace(ew,"+").replace(Vg,"%23").replace(Kb,"%26").replace(Xb,"`").replace(Kg,"{").replace(qg,"}").replace(Ug,"^")}function nw(t){return gc(t).replace(Jb,"%3D")}function rw(t){return Ad(t).replace(Vg,"%23").replace(Gb,"%3F")}function iw(t){return t==null?"":rw(t).replace(qb,"%2F")}function Sl(t){try{return decodeURIComponent(""+t)}catch(e){}return""+t}function ow(t){const e={};if(t===""||t==="?")return e;const r=(t[0]==="?"?t.slice(1):t).split("&");for(let i=0;io&&gc(o)):[r&&gc(r)]).forEach(o=>{o!==void 0&&(e+=(e.length?"&":"")+n,o!=null&&(e+="="+o))})}return e}function sw(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=Nn(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return e}const lw=Symbol(""),Fh=Symbol(""),Da=Symbol(""),Jg=Symbol(""),yc=Symbol("");function bo(){let t=[];function e(r){return t.push(r),()=>{const i=t.indexOf(r);i>-1&&t.splice(i,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function vr(t,e,n,r,i){const o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const a=f=>{f===!1?l(Ji(4,{from:n,to:e})):f instanceof Error?l(f):Pb(f)?l(Ji(2,{from:e,to:f})):(o&&r.enterCallbacks[i]===o&&typeof f=="function"&&o.push(f),s())},u=t.call(r&&r.instances[i],e,n,a);let c=Promise.resolve(u);t.length<3&&(c=c.then(a)),c.catch(f=>l(f))})}function mu(t,e,n,r){const i=[];for(const o of t)for(const s in o.components){let l=o.components[s];if(!(e!=="beforeRouteEnter"&&!o.instances[s]))if(aw(l)){const u=(l.__vccOpts||l)[e];u&&i.push(vr(u,n,r,o,s))}else{let a=l();i.push(()=>a.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${o.path}"`));const c=mb(u)?u.default:u;o.components[s]=c;const h=(c.__vccOpts||c)[e];return h&&vr(h,n,r,o,s)()}))}}return i}function aw(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function Vh(t){const e=Je(Da),n=Je(Jg),r=$(()=>e.resolve(ne(t.to))),i=$(()=>{const{matched:a}=r.value,{length:u}=a,c=a[u-1],f=n.matched;if(!c||!f.length)return-1;const h=f.findIndex(qi.bind(null,c));if(h>-1)return h;const p=Wh(a[u-2]);return u>1&&Wh(c)===p&&f[f.length-1].path!==p?f.findIndex(qi.bind(null,a[u-2])):h}),o=$(()=>i.value>-1&&fw(n.params,r.value.params)),s=$(()=>i.value>-1&&i.value===n.matched.length-1&&Bg(n.params,r.value.params));function l(a={}){return dw(a)?e[ne(t.replace)?"replace":"push"](ne(t.to)).catch(jo):Promise.resolve()}return{route:r,href:$(()=>r.value.href),isActive:o,isExactActive:s,navigate:l}}const uw=xe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Vh,setup(t,{slots:e}){const n=Sn(Vh(t)),{options:r}=Je(Da),i=$(()=>({[Uh(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Uh(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=e.default&&e.default(n);return t.custom?o:Fe("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),cw=uw;function dw(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function fw(t,e){for(const n in e){const r=e[n],i=t[n];if(typeof r=="string"){if(r!==i)return!1}else if(!Nn(i)||i.length!==r.length||r.some((o,s)=>o!==i[s]))return!1}return!0}function Wh(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Uh=(t,e,n)=>t!=null?t:e!=null?e:n,hw=xe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const r=Je(yc),i=$(()=>t.route||r.value),o=Je(Fh,0),s=$(()=>{let u=ne(o);const{matched:c}=i.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),l=$(()=>i.value.matched[s.value]);Ct(Fh,$(()=>s.value+1)),Ct(lw,l),Ct(yc,i);const a=oe();return Pt(()=>[a.value,l.value,t.name],([u,c,f],[h,p,g])=>{c&&(c.instances[f]=u,p&&p!==c&&u&&u===h&&(c.leaveGuards.size||(c.leaveGuards=p.leaveGuards),c.updateGuards.size||(c.updateGuards=p.updateGuards))),u&&c&&(!p||!qi(c,p)||!h)&&(c.enterCallbacks[f]||[]).forEach(v=>v(u))},{flush:"post"}),()=>{const u=i.value,c=t.name,f=l.value,h=f&&f.components[c];if(!h)return Kh(n.default,{Component:h,route:u});const p=f.props[c],g=p?p===!0?u.params:typeof p=="function"?p(u):p:null,b=Fe(h,Xe({},g,e,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(f.instances[c]=null)},ref:a}));return Kh(n.default,{Component:b,route:u})||b}}});function Kh(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const pw=hw;function zR(t){const e=Fb(t.routes,t),n=t.parseQuery||ow,r=t.stringifyQuery||Hh,i=t.history,o=bo(),s=bo(),l=bo(),a=lg(pr);let u=pr;Oi&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=hu.bind(null,z=>""+z),f=hu.bind(null,iw),h=hu.bind(null,Sl);function p(z,X){let ee,ue;return zg(z)?(ee=e.getRecordMatcher(z),ue=X):ue=z,e.addRoute(ue,ee)}function g(z){const X=e.getRecordMatcher(z);X&&e.removeRoute(X)}function v(){return e.getRoutes().map(z=>z.record)}function b(z){return!!e.getRecordMatcher(z)}function x(z,X){if(X=Xe({},X||a.value),typeof z=="string"){const j=pu(n,z,X.path),H=e.resolve({path:j.path},X),V=i.createHref(j.fullPath);return Xe(j,H,{params:h(H.params),hash:Sl(j.hash),redirectedFrom:void 0,href:V})}let ee;if("path"in z)ee=Xe({},z,{path:pu(n,z.path,X.path).path});else{const j=Xe({},z.params);for(const H in j)j[H]==null&&delete j[H];ee=Xe({},z,{params:f(j)}),X.params=f(X.params)}const ue=e.resolve(ee,X),Ne=z.hash||"";ue.params=c(h(ue.params));const A=vb(r,Xe({},z,{hash:tw(Ne),path:ue.path})),O=i.createHref(A);return Xe({fullPath:A,hash:Ne,query:r===Hh?sw(z.query):z.query||{}},ue,{redirectedFrom:void 0,href:O})}function _(z){return typeof z=="string"?pu(n,z,a.value.path):Xe({},z)}function T(z,X){if(u!==z)return Ji(8,{from:X,to:z})}function d(z){return w(z)}function y(z){return d(Xe(_(z),{replace:!0}))}function m(z){const X=z.matched[z.matched.length-1];if(X&&X.redirect){const{redirect:ee}=X;let ue=typeof ee=="function"?ee(z):ee;return typeof ue=="string"&&(ue=ue.includes("?")||ue.includes("#")?ue=_(ue):{path:ue},ue.params={}),Xe({query:z.query,hash:z.hash,params:"path"in ue?{}:z.params},ue)}}function w(z,X){const ee=u=x(z),ue=a.value,Ne=z.state,A=z.force,O=z.replace===!0,j=m(ee);if(j)return w(Xe(_(j),{state:typeof j=="object"?Xe({},Ne,j.state):Ne,force:A,replace:O}),X||ee);const H=ee;H.redirectedFrom=X;let V;return!A&&bb(r,ue,ee)&&(V=Ji(16,{to:H,from:ue}),Q(ue,ue,!0,!1)),(V?Promise.resolve(V):C(H,ue)).catch(J=>er(J)?er(J,2)?J:ae(J):D(J,H,ue)).then(J=>{if(J){if(er(J,2))return w(Xe({replace:O},_(J.to),{state:typeof J.to=="object"?Xe({},Ne,J.to.state):Ne,force:A}),X||H)}else J=R(H,ue,!0,O,Ne);return E(H,ue,J),J})}function k(z,X){const ee=T(z,X);return ee?Promise.reject(ee):Promise.resolve()}function S(z){const X=De.values().next().value;return X&&typeof X.runWithContext=="function"?X.runWithContext(z):z()}function C(z,X){let ee;const[ue,Ne,A]=mw(z,X);ee=mu(ue.reverse(),"beforeRouteLeave",z,X);for(const j of ue)j.leaveGuards.forEach(H=>{ee.push(vr(H,z,X))});const O=k.bind(null,z,X);return ee.push(O),Te(ee).then(()=>{ee=[];for(const j of o.list())ee.push(vr(j,z,X));return ee.push(O),Te(ee)}).then(()=>{ee=mu(Ne,"beforeRouteUpdate",z,X);for(const j of Ne)j.updateGuards.forEach(H=>{ee.push(vr(H,z,X))});return ee.push(O),Te(ee)}).then(()=>{ee=[];for(const j of A)if(j.beforeEnter)if(Nn(j.beforeEnter))for(const H of j.beforeEnter)ee.push(vr(H,z,X));else ee.push(vr(j.beforeEnter,z,X));return ee.push(O),Te(ee)}).then(()=>(z.matched.forEach(j=>j.enterCallbacks={}),ee=mu(A,"beforeRouteEnter",z,X),ee.push(O),Te(ee))).then(()=>{ee=[];for(const j of s.list())ee.push(vr(j,z,X));return ee.push(O),Te(ee)}).catch(j=>er(j,8)?j:Promise.reject(j))}function E(z,X,ee){l.list().forEach(ue=>S(()=>ue(z,X,ee)))}function R(z,X,ee,ue,Ne){const A=T(z,X);if(A)return A;const O=X===pr,j=Oi?history.state:{};ee&&(ue||O?i.replace(z.fullPath,Xe({scroll:O&&j&&j.scroll},Ne)):i.push(z.fullPath,Ne)),a.value=z,Q(z,X,ee,O),ae()}let P;function L(){P||(P=i.listen((z,X,ee)=>{if(!Pe.listening)return;const ue=x(z),Ne=m(ue);if(Ne){w(Xe(Ne,{replace:!0}),ue).catch(jo);return}u=ue;const A=a.value;Oi&&Eb(Nh(A.fullPath,ee.delta),La()),C(ue,A).catch(O=>er(O,12)?O:er(O,2)?(w(O.to,ue).then(j=>{er(j,20)&&!ee.delta&&ee.type===Xo.pop&&i.go(-1,!1)}).catch(jo),Promise.reject()):(ee.delta&&i.go(-ee.delta,!1),D(O,ue,A))).then(O=>{O=O||R(ue,A,!1),O&&(ee.delta&&!er(O,8)?i.go(-ee.delta,!1):ee.type===Xo.pop&&er(O,20)&&i.go(-1,!1)),E(ue,A,O)}).catch(jo)}))}let B=bo(),M=bo(),N;function D(z,X,ee){ae(z);const ue=M.list();return ue.length?ue.forEach(Ne=>Ne(z,X,ee)):console.error(z),Promise.reject(z)}function q(){return N&&a.value!==pr?Promise.resolve():new Promise((z,X)=>{B.add([z,X])})}function ae(z){return N||(N=!z,L(),B.list().forEach(([X,ee])=>z?ee(z):X()),B.reset()),z}function Q(z,X,ee,ue){const{scrollBehavior:Ne}=t;if(!Oi||!Ne)return Promise.resolve();const A=!ee&&Ab(Nh(z.fullPath,0))||(ue||!ee)&&history.state&&history.state.scroll||null;return _t().then(()=>Ne(z,X,A)).then(O=>O&&Mb(O)).catch(O=>D(O,z,X))}const me=z=>i.go(z);let Le;const De=new Set,Pe={currentRoute:a,listening:!0,addRoute:p,removeRoute:g,hasRoute:b,getRoutes:v,resolve:x,options:t,push:d,replace:y,go:me,back:()=>me(-1),forward:()=>me(1),beforeEach:o.add,beforeResolve:s.add,afterEach:l.add,onError:M.add,isReady:q,install(z){const X=this;z.component("RouterLink",cw),z.component("RouterView",pw),z.config.globalProperties.$router=X,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>ne(a)}),Oi&&!Le&&a.value===pr&&(Le=!0,d(i.location).catch(Ne=>{}));const ee={};for(const Ne in pr)Object.defineProperty(ee,Ne,{get:()=>a.value[Ne],enumerable:!0});z.provide(Da,X),z.provide(Jg,tg(ee)),z.provide(yc,a);const ue=z.unmount;De.add(z),z.unmount=function(){De.delete(z),De.size<1&&(u=pr,P&&P(),P=null,a.value=pr,Le=!1,N=!1),ue()}}};function Te(z){return z.reduce((X,ee)=>X.then(()=>S(ee)),Promise.resolve())}return Pe}function mw(t,e){const n=[],r=[],i=[],o=Math.max(e.matched.length,t.matched.length);for(let s=0;sqi(u,l))?r.push(l):n.push(l));const a=t.matched[s];a&&(e.matched.find(u=>qi(u,a))||i.push(a))}return[n,r,i]}function Gg(){return Je(Da)}var HR=!1,He=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n};function vt(t,e,...n){if(t in e){let i=e[t];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,vt),r}var Gn=(t=>(t[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t))(Gn||{}),Sr=(t=>(t[t.Unmount=0]="Unmount",t[t.Hidden=1]="Hidden",t))(Sr||{});function tt(o){var s=o,{visible:t=!0,features:e=0,ourProps:n,theirProps:r}=s,i=Qe(s,["visible","features","ourProps","theirProps"]);var l;let a=Qg(r,n),u=Object.assign(i,{props:a});if(t||e&2&&a.static)return gu(u);if(e&1){let c=(l=a.unmount)==null||l?0:1;return vt(c,{[0](){return null},[1](){return gu(ve(U({},i),{props:ve(U({},a),{hidden:!0,style:{display:"none"}})}))}})}return gu(u)}function gu({props:t,attrs:e,slots:n,slot:r,name:i}){var o,s;let f=lo(t,["unmount","static"]),{as:l}=f,a=Qe(f,["as"]),u=(o=n.default)==null?void 0:o.call(n,r),c={};if(r){let h=!1,p=[];for(let[g,v]of Object.entries(r))typeof v=="boolean"&&(h=!0),v===!0&&p.push(g);h&&(c["data-headlessui-state"]=p.join(" "))}if(l==="template"){if(u=Yg(u!=null?u:[]),Object.keys(a).length>0||Object.keys(e).length>0){let[h,...p]=u!=null?u:[];if(!gw(h)||p.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${i} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(a).concat(Object.keys(e)).map(b=>b.trim()).filter((b,x,_)=>_.indexOf(b)===x).sort((b,x)=>b.localeCompare(x)).map(b=>` - ${b}`).join(` -`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(b=>` - ${b}`).join(` -`)].join(` -`));let g=Qg((s=h.props)!=null?s:{},a),v=sr(h,g);for(let b in g)b.startsWith("on")&&(v.props||(v.props={}),v.props[b]=g[b]);return v}return Array.isArray(u)&&u.length===1?u[0]:u}return Fe(l,Object.assign({},a,c),{default:()=>u})}function Yg(t){return t.flatMap(e=>e.type===ze?Yg(e.children):[e])}function Qg(...t){if(t.length===0)return{};if(t.length===1)return t[0];let e={},n={};for(let r of t)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):e[i]=r[i];if(e.disabled||e["aria-disabled"])return Object.assign(e,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(e,{[r](i,...o){let s=n[r];for(let l of s){if(i instanceof Event&&i.defaultPrevented)return;l(i,...o)}}});return e}function Td(t){let e=Object.assign({},t);for(let n in e)e[n]===void 0&&delete e[n];return e}function lo(t,e=[]){let n=Object.assign({},t);for(let r of e)r in n&&delete n[r];return n}function gw(t){return t==null?!1:typeof t.type=="string"||typeof t.type=="object"||typeof t.type=="function"}let yw=0;function vw(){return++yw}function At(){return vw()}var Ie=(t=>(t.Space=" ",t.Enter="Enter",t.Escape="Escape",t.Backspace="Backspace",t.Delete="Delete",t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Home="Home",t.End="End",t.PageUp="PageUp",t.PageDown="PageDown",t.Tab="Tab",t))(Ie||{});function bw(t){throw new Error("Unexpected object: "+t)}var Ze=(t=>(t[t.First=0]="First",t[t.Previous=1]="Previous",t[t.Next=2]="Next",t[t.Last=3]="Last",t[t.Specific=4]="Specific",t[t.Nothing=5]="Nothing",t))(Ze||{});function Xg(t,e){let n=e.resolveItems();if(n.length<=0)return null;let r=e.resolveActiveIndex(),i=r!=null?r:-1,o=(()=>{switch(t.focus){case 0:return n.findIndex(s=>!e.resolveDisabled(s));case 1:{let s=n.slice().reverse().findIndex((l,a,u)=>i!==-1&&u.length-a-1>=i?!1:!e.resolveDisabled(l));return s===-1?s:n.length-1-s}case 2:return n.findIndex((s,l)=>l<=i?!1:!e.resolveDisabled(s));case 3:{let s=n.slice().reverse().findIndex(l=>!e.resolveDisabled(l));return s===-1?s:n.length-1-s}case 4:return n.findIndex(s=>e.resolveId(s)===t.id);case 5:return null;default:bw(t)}})();return o===-1?r:o}function fe(t){var e;return t==null||t.value==null?null:(e=t.value.$el)!=null?e:t.value}let Zg=Symbol("Context");var gt=(t=>(t[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t))(gt||{});function ww(){return gs()!==null}function gs(){return Je(Zg,null)}function Od(t){Ct(Zg,t)}function qh(t,e){if(t)return t;let n=e!=null?e:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Rd(t,e){let n=oe(qh(t.value.type,t.value.as));return Ye(()=>{n.value=qh(t.value.type,t.value.as)}),Mt(()=>{var r;n.value||fe(e)&&fe(e)instanceof HTMLButtonElement&&!((r=fe(e))!=null&&r.hasAttribute("type"))&&(n.value="button")}),n}var xw=Object.defineProperty,kw=(t,e,n)=>e in t?xw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Jh=(t,e,n)=>(kw(t,typeof e!="symbol"?e+"":e,n),n);class Cw{constructor(){Jh(this,"current",this.detect()),Jh(this,"currentId",0)}set(e){this.current!==e&&(this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window=="undefined"||typeof document=="undefined"?"server":"client"}}let ys=new Cw;function vn(t){if(ys.isServer)return null;if(t instanceof Node)return t.ownerDocument;if(t!=null&&t.hasOwnProperty("value")){let e=fe(t);if(e)return e.ownerDocument}return document}function Pd({container:t,accept:e,walk:n,enabled:r}){Mt(()=>{let i=t.value;if(!i||r!==void 0&&!r.value)return;let o=vn(t);if(!o)return;let s=Object.assign(a=>e(a),{acceptNode:e}),l=o.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)n(l.currentNode)})}let vc=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(t=>`${t}:not([tabindex='-1'])`).join(",");var Qt=(t=>(t[t.First=1]="First",t[t.Previous=2]="Previous",t[t.Next=4]="Next",t[t.Last=8]="Last",t[t.WrapAround=16]="WrapAround",t[t.NoScroll=32]="NoScroll",t))(Qt||{}),Ml=(t=>(t[t.Error=0]="Error",t[t.Overflow=1]="Overflow",t[t.Success=2]="Success",t[t.Underflow=3]="Underflow",t))(Ml||{}),_w=(t=>(t[t.Previous=-1]="Previous",t[t.Next=1]="Next",t))(_w||{});function e1(t=document.body){return t==null?[]:Array.from(t.querySelectorAll(vc)).sort((e,n)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Nd=(t=>(t[t.Strict=0]="Strict",t[t.Loose=1]="Loose",t))(Nd||{});function jd(t,e=0){var n;return t===((n=vn(t))==null?void 0:n.body)?!1:vt(e,{[0](){return t.matches(vc)},[1](){let r=t;for(;r!==null;){if(r.matches(vc))return!0;r=r.parentElement}return!1}})}function t1(t){let e=vn(t);_t(()=>{e&&!jd(e.activeElement,0)&&Rr(t)})}var Sw=(t=>(t[t.Keyboard=0]="Keyboard",t[t.Mouse=1]="Mouse",t))(Sw||{});typeof window!="undefined"&&typeof document!="undefined"&&(document.addEventListener("keydown",t=>{t.metaKey||t.altKey||t.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",t=>{t.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:t.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Rr(t){t==null||t.focus({preventScroll:!0})}let Mw=["textarea","input"].join(",");function Ew(t){var e,n;return(n=(e=t==null?void 0:t.matches)==null?void 0:e.call(t,Mw))!=null?n:!1}function Ia(t,e=n=>n){return t.slice().sort((n,r)=>{let i=e(n),o=e(r);if(i===null||o===null)return 0;let s=i.compareDocumentPosition(o);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Aw(t,e){return li(e1(),e,{relativeTo:t})}function li(t,e,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){var o;let s=(o=Array.isArray(t)?t.length>0?t[0].ownerDocument:document:t==null?void 0:t.ownerDocument)!=null?o:document,l=Array.isArray(t)?n?Ia(t):t:e1(t);i.length>0&&l.length>1&&(l=l.filter(g=>!i.includes(g))),r=r!=null?r:s.activeElement;let a=(()=>{if(e&5)return 1;if(e&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=(()=>{if(e&1)return 0;if(e&2)return Math.max(0,l.indexOf(r))-1;if(e&4)return Math.max(0,l.indexOf(r))+1;if(e&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=e&32?{preventScroll:!0}:{},f=0,h=l.length,p;do{if(f>=h||f+h<=0)return 0;let g=u+f;if(e&16)g=(g+h)%h;else{if(g<0)return 3;if(g>=h)return 1}p=l[g],p==null||p.focus(c),f+=a}while(p!==s.activeElement);return e&6&&Ew(p)&&p.select(),2}function Bs(t,e,n){ys.isServer||Mt(r=>{document.addEventListener(t,e,n),r(()=>document.removeEventListener(t,e,n))})}function n1(t,e,n){ys.isServer||Mt(r=>{window.addEventListener(t,e,n),r(()=>window.removeEventListener(t,e,n))})}function Ld(t,e,n=$(()=>!0)){function r(o,s){if(!n.value||o.defaultPrevented)return;let l=s(o);if(l===null||!l.getRootNode().contains(l))return;let a=function u(c){return typeof c=="function"?u(c()):Array.isArray(c)||c instanceof Set?c:[c]}(t);for(let u of a){if(u===null)continue;let c=u instanceof HTMLElement?u:fe(u);if(c!=null&&c.contains(l)||o.composed&&o.composedPath().includes(c))return}return!jd(l,Nd.Loose)&&l.tabIndex!==-1&&o.preventDefault(),e(o,l)}let i=oe(null);Bs("pointerdown",o=>{var s,l;n.value&&(i.value=((l=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:l[0])||o.target)},!0),Bs("mousedown",o=>{var s,l;n.value&&(i.value=((l=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:l[0])||o.target)},!0),Bs("click",o=>{i.value&&(r(o,()=>i.value),i.value=null)},!0),Bs("touchend",o=>r(o,()=>o.target instanceof HTMLElement?o.target:null),!0),n1("blur",o=>r(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var gi=(t=>(t[t.None=1]="None",t[t.Focusable=2]="Focusable",t[t.Hidden=4]="Hidden",t))(gi||{});let Gi=xe({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(t,{slots:e,attrs:n}){return()=>{let s=t,{features:r}=s,i=Qe(s,["features"]),o={"aria-hidden":(r&2)===2?!0:void 0,style:U({position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},(r&4)===4&&(r&2)!==2&&{display:"none"})};return tt({ourProps:o,theirProps:i,slot:{},attrs:n,slots:e,name:"Hidden"})}}});function Dd(t={},e=null,n=[]){for(let[r,i]of Object.entries(t))i1(n,r1(e,r),i);return n}function r1(t,e){return t?t+"["+e+"]":e}function i1(t,e,n){if(Array.isArray(n))for(let[r,i]of n.entries())i1(t,r1(e,r.toString()),i);else n instanceof Date?t.push([e,n.toISOString()]):typeof n=="boolean"?t.push([e,n?"1":"0"]):typeof n=="string"?t.push([e,n]):typeof n=="number"?t.push([e,`${n}`]):n==null?t.push([e,""]):Dd(n,e,t)}function o1(t){var e,n;let r=(e=t==null?void 0:t.form)!=null?e:t.closest("form");if(r){for(let i of r.elements)if(i!==t&&(i.tagName==="INPUT"&&i.type==="submit"||i.tagName==="BUTTON"&&i.type==="submit"||i.nodeName==="INPUT"&&i.type==="image")){i.click();return}(n=r.requestSubmit)==null||n.call(r)}}function Id(t,e,n){let r=oe(n==null?void 0:n.value),i=$(()=>t.value!==void 0);return[$(()=>i.value?t.value:r.value),function(o){return i.value||(r.value=o),e==null?void 0:e(o)}]}function Gh(t){return[t.screenX,t.screenY]}function s1(){let t=oe([-1,-1]);return{wasMoved(e){let n=Gh(e);return t.value[0]===n[0]&&t.value[1]===n[1]?!1:(t.value=n,!0)},update(e){t.value=Gh(e)}}}function l1(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Tw(){return/Android/gi.test(window.navigator.userAgent)}function Ow(){return l1()||Tw()}function Bd(t){typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t).catch(e=>setTimeout(()=>{throw e}))}function ao(){let t=[],e={addEventListener(n,r,i,o){return n.addEventListener(r,i,o),e.add(()=>n.removeEventListener(r,i,o))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);e.add(()=>cancelAnimationFrame(r))},nextFrame(...n){e.requestAnimationFrame(()=>{e.requestAnimationFrame(...n)})},setTimeout(...n){let r=setTimeout(...n);e.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Bd(()=>{r.current&&n[0]()}),e.add(()=>{r.current=!1})},style(n,r,i){let o=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:o})})},group(n){let r=ao();return n(r),this.add(()=>r.dispose())},add(n){return t.push(n),()=>{let r=t.indexOf(n);if(r>=0)for(let i of t.splice(r,1))i()}},dispose(){for(let n of t.splice(0))n()}};return e}function Rw(t,e){return t===e}var Pw=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(Pw||{}),Nw=(t=>(t[t.Single=0]="Single",t[t.Multi=1]="Multi",t))(Nw||{}),jw=(t=>(t[t.Pointer=0]="Pointer",t[t.Other=1]="Other",t))(jw||{});let a1=Symbol("ComboboxContext");function uo(t){let e=Je(a1,null);if(e===null){let n=new Error(`<${t} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,uo),n}return e}let Lw=xe({name:"Combobox",emits:{"update:modelValue":t=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>Rw},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(t,{slots:e,attrs:n,emit:r}){let i=oe(1),o=oe(null),s=oe(null),l=oe(null),a=oe(null),u=oe({static:!1,hold:!1}),c=oe([]),f=oe(null),h=oe(1),p=oe(!1);function g(S=C=>C){let C=f.value!==null?c.value[f.value]:null,E=Ia(S(c.value.slice()),P=>fe(P.dataRef.domRef)),R=C?E.indexOf(C):null;return R===-1&&(R=null),{options:E,activeOptionIndex:R}}let v=$(()=>t.multiple?1:0),b=$(()=>t.nullable),[x,_]=Id($(()=>t.modelValue),S=>r("update:modelValue",S),$(()=>t.defaultValue)),T=$(()=>x.value===void 0?vt(v.value,{[1]:[],[0]:void 0}):x.value),d=null,y=null,m={comboboxState:i,value:T,mode:v,compare(S,C){if(typeof t.by=="string"){let E=t.by;return(S==null?void 0:S[E])===(C==null?void 0:C[E])}return t.by(S,C)},defaultValue:$(()=>t.defaultValue),nullable:b,inputRef:s,labelRef:o,buttonRef:l,optionsRef:a,disabled:$(()=>t.disabled),options:c,change(S){_(S)},activeOptionIndex:$(()=>{if(p.value&&f.value===null&&c.value.length>0){let S=c.value.findIndex(C=>!C.dataRef.disabled);S!==-1&&(f.value=S)}return f.value}),activationTrigger:h,optionsPropsRef:u,closeCombobox(){p.value=!1,!t.disabled&&i.value!==1&&(i.value=1,f.value=null)},openCombobox(){if(p.value=!0,t.disabled||i.value===0)return;let S=c.value.findIndex(C=>{let E=de(C.dataRef.value);return vt(v.value,{[0]:()=>m.compare(de(m.value.value),de(E)),[1]:()=>de(m.value.value).some(R=>m.compare(de(R),de(E)))})});S!==-1&&(f.value=S),i.value=0},goToOption(S,C,E){p.value=!1,d!==null&&cancelAnimationFrame(d),d=requestAnimationFrame(()=>{if(t.disabled||a.value&&!u.value.static&&i.value===1)return;let R=g();if(R.activeOptionIndex===null){let L=R.options.findIndex(B=>!B.dataRef.disabled);L!==-1&&(R.activeOptionIndex=L)}let P=Xg(S===Ze.Specific?{focus:Ze.Specific,id:C}:{focus:S},{resolveItems:()=>R.options,resolveActiveIndex:()=>R.activeOptionIndex,resolveId:L=>L.id,resolveDisabled:L=>L.dataRef.disabled});f.value=P,h.value=E!=null?E:1,c.value=R.options})},selectOption(S){let C=c.value.find(R=>R.id===S);if(!C)return;let{dataRef:E}=C;_(vt(v.value,{[0]:()=>E.value,[1]:()=>{let R=de(m.value.value).slice(),P=de(E.value),L=R.findIndex(B=>m.compare(P,de(B)));return L===-1?R.push(P):R.splice(L,1),R}}))},selectActiveOption(){if(m.activeOptionIndex.value===null)return;let{dataRef:S,id:C}=c.value[m.activeOptionIndex.value];_(vt(v.value,{[0]:()=>S.value,[1]:()=>{let E=de(m.value.value).slice(),R=de(S.value),P=E.findIndex(L=>m.compare(R,de(L)));return P===-1?E.push(R):E.splice(P,1),E}})),m.goToOption(Ze.Specific,C)},registerOption(S,C){y&&cancelAnimationFrame(y);let E={id:S,dataRef:C},R=g(P=>(P.push(E),P));if(f.value===null){let P=C.value.value;vt(v.value,{[0]:()=>m.compare(de(m.value.value),de(P)),[1]:()=>de(m.value.value).some(L=>m.compare(de(L),de(P)))})&&(R.activeOptionIndex=R.options.indexOf(E))}c.value=R.options,f.value=R.activeOptionIndex,h.value=1,R.options.some(P=>!fe(P.dataRef.domRef))&&(y=requestAnimationFrame(()=>{let P=g();c.value=P.options,f.value=P.activeOptionIndex}))},unregisterOption(S){var C;m.activeOptionIndex.value!==null&&((C=m.options.value[m.activeOptionIndex.value])==null?void 0:C.id)===S&&(p.value=!0);let E=g(R=>{let P=R.findIndex(L=>L.id===S);return P!==-1&&R.splice(P,1),R});c.value=E.options,f.value=E.activeOptionIndex,h.value=1}};Ld([s,l,a],()=>m.closeCombobox(),$(()=>i.value===0)),Ct(a1,m),Od($(()=>vt(i.value,{[0]:gt.Open,[1]:gt.Closed})));let w=$(()=>m.activeOptionIndex.value===null?null:c.value[m.activeOptionIndex.value].dataRef.value),k=$(()=>{var S;return(S=fe(s))==null?void 0:S.closest("form")});return Ye(()=>{Pt([k],()=>{if(!k.value||t.defaultValue===void 0)return;function S(){m.change(t.defaultValue)}return k.value.addEventListener("reset",S),()=>{var C;(C=k.value)==null||C.removeEventListener("reset",S)}},{immediate:!0})}),()=>{let L=t,{name:S,disabled:C,form:E}=L,R=Qe(L,["name","disabled","form"]),P={open:i.value===0,disabled:C,activeIndex:m.activeOptionIndex.value,activeOption:w.value,value:T.value};return Fe(ze,[...S!=null&&T.value!=null?Dd({[S]:T.value}).map(([B,M])=>Fe(Gi,Td({features:gi.Hidden,key:B,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:E,name:B,value:M}))):[],tt({theirProps:U(U({},n),lo(R,["modelValue","defaultValue","nullable","multiple","onUpdate:modelValue","by"])),ourProps:{},slot:P,slots:e,attrs:n,name:"Combobox"})])}}});xe({name:"ComboboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:()=>`headlessui-combobox-label-${At()}`}},setup(t,{attrs:e,slots:n}){let r=uo("ComboboxLabel");function i(){var o;(o=fe(r.inputRef))==null||o.focus({preventScroll:!0})}return()=>{let o={open:r.comboboxState.value===0,disabled:r.disabled.value},u=t,{id:s}=u,l=Qe(u,["id"]),a={id:s,ref:r.labelRef,onClick:i};return tt({ourProps:a,theirProps:l,slot:o,attrs:e,slots:n,name:"ComboboxLabel"})}}});let Dw=xe({name:"ComboboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:()=>`headlessui-combobox-button-${At()}`}},setup(t,{attrs:e,slots:n,expose:r}){let i=uo("ComboboxButton");r({el:i.buttonRef,$el:i.buttonRef});function o(a){i.disabled.value||(i.comboboxState.value===0?i.closeCombobox():(a.preventDefault(),i.openCombobox()),_t(()=>{var u;return(u=fe(i.inputRef))==null?void 0:u.focus({preventScroll:!0})}))}function s(a){switch(a.key){case Ie.ArrowDown:a.preventDefault(),a.stopPropagation(),i.comboboxState.value===1&&i.openCombobox(),_t(()=>{var u;return(u=i.inputRef.value)==null?void 0:u.focus({preventScroll:!0})});return;case Ie.ArrowUp:a.preventDefault(),a.stopPropagation(),i.comboboxState.value===1&&(i.openCombobox(),_t(()=>{i.value.value||i.goToOption(Ze.Last)})),_t(()=>{var u;return(u=i.inputRef.value)==null?void 0:u.focus({preventScroll:!0})});return;case Ie.Escape:if(i.comboboxState.value!==0)return;a.preventDefault(),i.optionsRef.value&&!i.optionsPropsRef.value.static&&a.stopPropagation(),i.closeCombobox(),_t(()=>{var u;return(u=i.inputRef.value)==null?void 0:u.focus({preventScroll:!0})});return}}let l=Rd($(()=>({as:t.as,type:e.type})),i.buttonRef);return()=>{var a,u;let c={open:i.comboboxState.value===0,disabled:i.disabled.value,value:i.value.value},g=t,{id:f}=g,h=Qe(g,["id"]),p={ref:i.buttonRef,id:f,type:l.value,tabindex:"-1","aria-haspopup":"listbox","aria-controls":(a=fe(i.optionsRef))==null?void 0:a.id,"aria-expanded":i.comboboxState.value===0,"aria-labelledby":i.labelRef.value?[(u=fe(i.labelRef))==null?void 0:u.id,f].join(" "):void 0,disabled:i.disabled.value===!0?!0:void 0,onKeydown:s,onClick:o};return tt({ourProps:p,theirProps:h,slot:c,attrs:e,slots:n,name:"ComboboxButton"})}}}),Iw=xe({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:()=>`headlessui-combobox-input-${At()}`}},emits:{change:t=>!0},setup(t,{emit:e,attrs:n,slots:r,expose:i}){let o=uo("ComboboxInput"),s=$(()=>vn(fe(o.inputRef))),l={value:!1};i({el:o.inputRef,$el:o.inputRef});function a(){o.change(null);let x=fe(o.optionsRef);x&&(x.scrollTop=0),o.goToOption(Ze.Nothing)}let u=$(()=>{var x;let _=o.value.value;return fe(o.inputRef)?typeof t.displayValue!="undefined"&&_!==void 0?(x=t.displayValue(_))!=null?x:"":typeof _=="string"?_:"":""});Ye(()=>{Pt([u,o.comboboxState,s],([x,_],[T,d])=>{if(l.value)return;let y=fe(o.inputRef);y&&((d===0&&_===1||x!==T)&&(y.value=x),requestAnimationFrame(()=>{var m;if(l.value||!y||((m=s.value)==null?void 0:m.activeElement)!==y)return;let{selectionStart:w,selectionEnd:k}=y;Math.abs((k!=null?k:0)-(w!=null?w:0))===0&&w===0&&y.setSelectionRange(y.value.length,y.value.length)}))},{immediate:!0}),Pt([o.comboboxState],([x],[_])=>{if(x===0&&_===1){if(l.value)return;let T=fe(o.inputRef);if(!T)return;let d=T.value,{selectionStart:y,selectionEnd:m,selectionDirection:w}=T;T.value="",T.value=d,w!==null?T.setSelectionRange(y,m,w):T.setSelectionRange(y,m)}})});let c=oe(!1);function f(){c.value=!0}function h(){ao().nextFrame(()=>{c.value=!1})}function p(x){switch(l.value=!0,x.key){case Ie.Enter:if(l.value=!1,o.comboboxState.value!==0||c.value)return;if(x.preventDefault(),x.stopPropagation(),o.activeOptionIndex.value===null){o.closeCombobox();return}o.selectActiveOption(),o.mode.value===0&&o.closeCombobox();break;case Ie.ArrowDown:return l.value=!1,x.preventDefault(),x.stopPropagation(),vt(o.comboboxState.value,{[0]:()=>o.goToOption(Ze.Next),[1]:()=>o.openCombobox()});case Ie.ArrowUp:return l.value=!1,x.preventDefault(),x.stopPropagation(),vt(o.comboboxState.value,{[0]:()=>o.goToOption(Ze.Previous),[1]:()=>{o.openCombobox(),_t(()=>{o.value.value||o.goToOption(Ze.Last)})}});case Ie.Home:if(x.shiftKey)break;return l.value=!1,x.preventDefault(),x.stopPropagation(),o.goToOption(Ze.First);case Ie.PageUp:return l.value=!1,x.preventDefault(),x.stopPropagation(),o.goToOption(Ze.First);case Ie.End:if(x.shiftKey)break;return l.value=!1,x.preventDefault(),x.stopPropagation(),o.goToOption(Ze.Last);case Ie.PageDown:return l.value=!1,x.preventDefault(),x.stopPropagation(),o.goToOption(Ze.Last);case Ie.Escape:if(l.value=!1,o.comboboxState.value!==0)return;x.preventDefault(),o.optionsRef.value&&!o.optionsPropsRef.value.static&&x.stopPropagation(),o.nullable.value&&o.mode.value===0&&o.value.value===null&&a(),o.closeCombobox();break;case Ie.Tab:if(l.value=!1,o.comboboxState.value!==0)return;o.mode.value===0&&o.selectActiveOption(),o.closeCombobox();break}}function g(x){e("change",x),o.nullable.value&&o.mode.value===0&&x.target.value===""&&a(),o.openCombobox()}function v(){l.value=!1}let b=$(()=>{var x,_,T,d;return(d=(T=(_=t.defaultValue)!=null?_:o.defaultValue.value!==void 0?(x=t.displayValue)==null?void 0:x.call(t,o.defaultValue.value):null)!=null?T:o.defaultValue.value)!=null?d:""});return()=>{var x,_,T,d,y,m;let w={open:o.comboboxState.value===0},P=t,{id:k,displayValue:S,onChange:C}=P,E=Qe(P,["id","displayValue","onChange"]),R={"aria-controls":(x=o.optionsRef.value)==null?void 0:x.id,"aria-expanded":o.comboboxState.value===0,"aria-activedescendant":o.activeOptionIndex.value===null||(_=o.options.value[o.activeOptionIndex.value])==null?void 0:_.id,"aria-labelledby":(y=(T=fe(o.labelRef))==null?void 0:T.id)!=null?y:(d=fe(o.buttonRef))==null?void 0:d.id,"aria-autocomplete":"list",id:k,onCompositionstart:f,onCompositionend:h,onKeydown:p,onInput:g,onBlur:v,role:"combobox",type:(m=n.type)!=null?m:"text",tabIndex:0,ref:o.inputRef,defaultValue:b.value,disabled:o.disabled.value===!0?!0:void 0};return tt({ourProps:R,theirProps:E,slot:w,attrs:n,slots:r,features:Gn.RenderStrategy|Gn.Static,name:"ComboboxInput"})}}}),Bw=xe({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(t,{attrs:e,slots:n,expose:r}){let i=uo("ComboboxOptions"),o=`headlessui-combobox-options-${At()}`;r({el:i.optionsRef,$el:i.optionsRef}),Mt(()=>{i.optionsPropsRef.value.static=t.static}),Mt(()=>{i.optionsPropsRef.value.hold=t.hold});let s=gs(),l=$(()=>s!==null?(s.value>.Open)===gt.Open:i.comboboxState.value===0);return Pd({container:$(()=>fe(i.optionsRef)),enabled:$(()=>i.comboboxState.value===0),accept(a){return a.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:a.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(a){a.setAttribute("role","none")}}),()=>{var a,u,c;let f={open:i.comboboxState.value===0},h={"aria-labelledby":(c=(a=fe(i.labelRef))==null?void 0:a.id)!=null?c:(u=fe(i.buttonRef))==null?void 0:u.id,id:o,ref:i.optionsRef,role:"listbox","aria-multiselectable":i.mode.value===1?!0:void 0},p=lo(t,["hold"]);return tt({ourProps:h,theirProps:p,slot:f,attrs:e,slots:n,features:Gn.RenderStrategy|Gn.Static,visible:l.value,name:"ComboboxOptions"})}}}),$w=xe({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1}},setup(t,{slots:e,attrs:n,expose:r}){let i=uo("ComboboxOption"),o=`headlessui-combobox-option-${At()}`,s=oe(null);r({el:s,$el:s});let l=$(()=>i.activeOptionIndex.value!==null?i.options.value[i.activeOptionIndex.value].id===o:!1),a=$(()=>vt(i.mode.value,{[0]:()=>i.compare(de(i.value.value),de(t.value)),[1]:()=>de(i.value.value).some(b=>i.compare(de(b),de(t.value)))})),u=$(()=>({disabled:t.disabled,value:t.value,domRef:s}));Ye(()=>i.registerOption(o,u)),Lt(()=>i.unregisterOption(o)),Mt(()=>{i.comboboxState.value===0&&l.value&&i.activationTrigger.value!==0&&_t(()=>{var b,x;return(x=(b=fe(s))==null?void 0:b.scrollIntoView)==null?void 0:x.call(b,{block:"nearest"})})});function c(b){if(t.disabled)return b.preventDefault();i.selectOption(o),i.mode.value===0&&i.closeCombobox(),Ow()||requestAnimationFrame(()=>{var x;return(x=fe(i.inputRef))==null?void 0:x.focus()})}function f(){if(t.disabled)return i.goToOption(Ze.Nothing);i.goToOption(Ze.Specific,o)}let h=s1();function p(b){h.update(b)}function g(b){h.wasMoved(b)&&(t.disabled||l.value||i.goToOption(Ze.Specific,o,0))}function v(b){h.wasMoved(b)&&(t.disabled||l.value&&(i.optionsPropsRef.value.hold||i.goToOption(Ze.Nothing)))}return()=>{let{disabled:b}=t,x={active:l.value,selected:a.value,disabled:b},_={id:o,ref:s,role:"option",tabIndex:b===!0?void 0:-1,"aria-disabled":b===!0?!0:void 0,"aria-selected":a.value,disabled:void 0,onClick:c,onFocus:f,onPointerenter:p,onMouseenter:p,onPointermove:g,onMousemove:g,onPointerleave:v,onMouseleave:v};return tt({ourProps:_,theirProps:t,slot:x,attrs:n,slots:e,name:"ComboboxOption"})}}});var Mo=(t=>(t[t.Forwards=0]="Forwards",t[t.Backwards=1]="Backwards",t))(Mo||{});function zw(){let t=oe(0);return n1("keydown",e=>{e.key==="Tab"&&(t.value=e.shiftKey?1:0)}),t}function u1(t,e,n,r){ys.isServer||Mt(i=>{t=t!=null?t:window,t.addEventListener(e,n,r),i(()=>t.removeEventListener(e,n,r))})}function Hw(t){function e(){document.readyState!=="loading"&&(t(),document.removeEventListener("DOMContentLoaded",e))}typeof window!="undefined"&&typeof document!="undefined"&&(document.addEventListener("DOMContentLoaded",e),e())}function c1(t){if(!t)return new Set;if(typeof t=="function")return new Set(t());let e=new Set;for(let n of t.value){let r=fe(n);r instanceof HTMLElement&&e.add(r)}return e}var d1=(t=>(t[t.None=1]="None",t[t.InitialFocus=2]="InitialFocus",t[t.TabLock=4]="TabLock",t[t.FocusLock=8]="FocusLock",t[t.RestoreFocus=16]="RestoreFocus",t[t.All=30]="All",t))(d1||{});let wo=Object.assign(xe({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:oe(new Set)}},inheritAttrs:!1,setup(t,{attrs:e,slots:n,expose:r}){let i=oe(null);r({el:i,$el:i});let o=$(()=>vn(i)),s=oe(!1);Ye(()=>s.value=!0),Lt(()=>s.value=!1),Vw({ownerDocument:o},$(()=>s.value&&Boolean(t.features&16)));let l=Ww({ownerDocument:o,container:i,initialFocus:$(()=>t.initialFocus)},$(()=>s.value&&Boolean(t.features&2)));Uw({ownerDocument:o,container:i,containers:t.containers,previousActiveElement:l},$(()=>s.value&&Boolean(t.features&8)));let a=zw();function u(p){let g=fe(i);!g||(v=>v())(()=>{vt(a.value,{[Mo.Forwards]:()=>{li(g,Qt.First,{skipElements:[p.relatedTarget]})},[Mo.Backwards]:()=>{li(g,Qt.Last,{skipElements:[p.relatedTarget]})}})})}let c=oe(!1);function f(p){p.key==="Tab"&&(c.value=!0,requestAnimationFrame(()=>{c.value=!1}))}function h(p){if(!s.value)return;let g=c1(t.containers);fe(i)instanceof HTMLElement&&g.add(fe(i));let v=p.relatedTarget;v instanceof HTMLElement&&v.dataset.headlessuiFocusGuard!=="true"&&(f1(g,v)||(c.value?li(fe(i),vt(a.value,{[Mo.Forwards]:()=>Qt.Next,[Mo.Backwards]:()=>Qt.Previous})|Qt.WrapAround,{relativeTo:p.target}):p.target instanceof HTMLElement&&Rr(p.target)))}return()=>{let p={},g={ref:i,onKeydown:f,onFocusout:h},T=t,{features:v,initialFocus:b,containers:x}=T,_=Qe(T,["features","initialFocus","containers"]);return Fe(ze,[Boolean(v&4)&&Fe(Gi,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:u,features:gi.Focusable}),tt({ourProps:g,theirProps:U(U({},e),_),slot:p,attrs:e,slots:n,name:"FocusTrap"}),Boolean(v&4)&&Fe(Gi,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:u,features:gi.Focusable})])}}}),{features:d1}),Zr=[];Hw(()=>{function t(e){e.target instanceof HTMLElement&&e.target!==document.body&&Zr[0]!==e.target&&(Zr.unshift(e.target),Zr=Zr.filter(n=>n!=null&&n.isConnected),Zr.splice(10))}window.addEventListener("click",t,{capture:!0}),window.addEventListener("mousedown",t,{capture:!0}),window.addEventListener("focus",t,{capture:!0}),document.body.addEventListener("click",t,{capture:!0}),document.body.addEventListener("mousedown",t,{capture:!0}),document.body.addEventListener("focus",t,{capture:!0})});function Fw(t){let e=oe(Zr.slice());return Pt([t],([n],[r])=>{r===!0&&n===!1?Bd(()=>{e.value.splice(0)}):r===!1&&n===!0&&(e.value=Zr.slice())},{flush:"post"}),()=>{var n;return(n=e.value.find(r=>r!=null&&r.isConnected))!=null?n:null}}function Vw({ownerDocument:t},e){let n=Fw(e);Ye(()=>{Mt(()=>{var r,i;e.value||((r=t.value)==null?void 0:r.activeElement)===((i=t.value)==null?void 0:i.body)&&Rr(n())},{flush:"post"})}),Lt(()=>{e.value&&Rr(n())})}function Ww({ownerDocument:t,container:e,initialFocus:n},r){let i=oe(null),o=oe(!1);return Ye(()=>o.value=!0),Lt(()=>o.value=!1),Ye(()=>{Pt([e,n,r],(s,l)=>{if(s.every((u,c)=>(l==null?void 0:l[c])===u)||!r.value)return;let a=fe(e);a&&Bd(()=>{var u,c;if(!o.value)return;let f=fe(n),h=(u=t.value)==null?void 0:u.activeElement;if(f){if(f===h){i.value=h;return}}else if(a.contains(h)){i.value=h;return}f?Rr(f):li(a,Qt.First|Qt.NoScroll)===Ml.Error&&console.warn("There are no focusable elements inside the "),i.value=(c=t.value)==null?void 0:c.activeElement})},{immediate:!0,flush:"post"})}),i}function Uw({ownerDocument:t,container:e,containers:n,previousActiveElement:r},i){var o;u1((o=t.value)==null?void 0:o.defaultView,"focus",s=>{if(!i.value)return;let l=c1(n);fe(e)instanceof HTMLElement&&l.add(fe(e));let a=r.value;if(!a)return;let u=s.target;u&&u instanceof HTMLElement?f1(l,u)?(r.value=u,Rr(u)):(s.preventDefault(),s.stopPropagation(),Rr(a)):Rr(r.value)},!0)}function f1(t,e){for(let n of t)if(n.contains(e))return!0;return!1}let yu=new Map,xo=new Map;function Yh(t,e=oe(!0)){Mt(n=>{var r;if(!e.value)return;let i=fe(t);if(!i)return;n(function(){var s;if(!i)return;let l=(s=xo.get(i))!=null?s:1;if(l===1?xo.delete(i):xo.set(i,l-1),l!==1)return;let a=yu.get(i);a&&(a["aria-hidden"]===null?i.removeAttribute("aria-hidden"):i.setAttribute("aria-hidden",a["aria-hidden"]),i.inert=a.inert,yu.delete(i))});let o=(r=xo.get(i))!=null?r:0;xo.set(i,o+1),o===0&&(yu.set(i,{"aria-hidden":i.getAttribute("aria-hidden"),inert:i.inert}),i.setAttribute("aria-hidden","true"),i.inert=!0)})}let h1=Symbol("ForcePortalRootContext");function Kw(){return Je(h1,!1)}let bc=xe({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(t,{slots:e,attrs:n}){return Ct(h1,t.force),()=>{let o=t,{force:r}=o,i=Qe(o,["force"]);return tt({theirProps:i,ourProps:{},slot:{},slots:e,attrs:n,name:"ForcePortalRoot"})}}});function qw(t){let e=vn(t);if(!e){if(t===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${t}`)}let n=e.getElementById("headlessui-portal-root");if(n)return n;let r=e.createElement("div");return r.setAttribute("id","headlessui-portal-root"),e.body.appendChild(r)}let p1=xe({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(t,{slots:e,attrs:n}){let r=oe(null),i=$(()=>vn(r)),o=Kw(),s=Je(m1,null),l=oe(o===!0||s==null?qw(r.value):s.resolveTarget());Mt(()=>{o||s!=null&&(l.value=s.resolveTarget())});let a=Je(wc,null);return Ye(()=>{let u=fe(r);u&&a&&Lt(a.register(u))}),Lt(()=>{var u,c;let f=(u=i.value)==null?void 0:u.getElementById("headlessui-portal-root");f&&l.value===f&&l.value.children.length<=0&&((c=l.value.parentElement)==null||c.removeChild(l.value))}),()=>{if(l.value===null)return null;let u={ref:r,"data-headlessui-portal":""};return Fe(Cd,{to:l.value},tt({ourProps:u,theirProps:t,slot:{},attrs:n,slots:e,name:"Portal"}))}}}),wc=Symbol("PortalParentContext");function Jw(){let t=Je(wc,null),e=oe([]);function n(o){return e.value.push(o),t&&t.register(o),()=>r(o)}function r(o){let s=e.value.indexOf(o);s!==-1&&e.value.splice(s,1),t&&t.unregister(o)}let i={register:n,unregister:r,portals:e};return[e,xe({name:"PortalWrapper",setup(o,{slots:s}){return Ct(wc,i),()=>{var l;return(l=s.default)==null?void 0:l.call(s)}}})]}let m1=Symbol("PortalGroupContext"),Gw=xe({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(t,{attrs:e,slots:n}){let r=Sn({resolveTarget(){return t.target}});return Ct(m1,r),()=>{let s=t,{target:i}=s,o=Qe(s,["target"]);return tt({theirProps:o,ourProps:{},slot:{},attrs:e,slots:n,name:"PortalGroup"})}}}),g1=Symbol("StackContext");var xc=(t=>(t[t.Add=0]="Add",t[t.Remove=1]="Remove",t))(xc||{});function Yw(){return Je(g1,()=>{})}function Qw({type:t,enabled:e,element:n,onUpdate:r}){let i=Yw();function o(...s){r==null||r(...s),i(...s)}Ye(()=>{Pt(e,(s,l)=>{s?o(0,t,n):l===!0&&o(1,t,n)},{immediate:!0,flush:"sync"})}),Lt(()=>{e.value&&o(1,t,n)}),Ct(g1,o)}let y1=Symbol("DescriptionContext");function Xw(){let t=Je(y1,null);if(t===null)throw new Error("Missing parent");return t}function Ba({slot:t=oe({}),name:e="Description",props:n={}}={}){let r=oe([]);function i(o){return r.value.push(o),()=>{let s=r.value.indexOf(o);s!==-1&&r.value.splice(s,1)}}return Ct(y1,{register:i,slot:t,name:e,props:n}),$(()=>r.value.length>0?r.value.join(" "):void 0)}let Zw=xe({name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,default:()=>`headlessui-description-${At()}`}},setup(t,{attrs:e,slots:n}){let r=Xw();return Ye(()=>Lt(r.register(t.id))),()=>{let{name:i="Description",slot:o=oe({}),props:s={}}=r,c=t,{id:l}=c,a=Qe(c,["id"]),u=ve(U({},Object.entries(s).reduce((f,[h,p])=>Object.assign(f,{[h]:ne(p)}),{})),{id:l});return tt({ourProps:u,theirProps:a,slot:o.value,attrs:e,slots:n,name:i})}}});function ex(t){let e=lg(t.getSnapshot());return Lt(t.subscribe(()=>{e.value=t.getSnapshot()})),e}function tx(t,e){let n=t(),r=new Set;return{getSnapshot(){return n},subscribe(i){return r.add(i),()=>r.delete(i)},dispatch(i,...o){let s=e[i].call(n,...o);s&&(n=s,r.forEach(l=>l()))}}}function nx(){let t;return{before({doc:e}){var n;let r=e.documentElement;t=((n=e.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:e,d:n}){let r=e.documentElement,i=r.clientWidth-r.offsetWidth,o=t-i;n.style(r,"paddingRight",`${o}px`)}}}function rx(){if(!l1())return{};let t;return{before(){t=window.pageYOffset},after({doc:e,d:n,meta:r}){function i(s){return r.containers.flatMap(l=>l()).some(l=>l.contains(s))}if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let s=ao();s.style(e.documentElement,"scroll-behavior","auto"),n.add(()=>n.microTask(()=>s.dispose()))}n.style(e.body,"marginTop",`-${t}px`),window.scrollTo(0,0);let o=null;n.addEventListener(e,"click",s=>{if(s.target instanceof HTMLElement)try{let l=s.target.closest("a");if(!l)return;let{hash:a}=new URL(l.href),u=e.querySelector(a);u&&!i(u)&&(o=u)}catch(l){}},!0),n.addEventListener(e,"touchmove",s=>{s.target instanceof HTMLElement&&!i(s.target)&&s.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+t),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})}}}function ix(){return{before({doc:t,d:e}){e.style(t.documentElement,"overflow","hidden")}}}function ox(t){let e={};for(let n of t)Object.assign(e,n(e));return e}let ni=tx(()=>new Map,{PUSH(t,e){var n;let r=(n=this.get(t))!=null?n:{doc:t,count:0,d:ao(),meta:new Set};return r.count++,r.meta.add(e),this.set(t,r),this},POP(t,e){let n=this.get(t);return n&&(n.count--,n.meta.delete(e)),this},SCROLL_PREVENT({doc:t,d:e,meta:n}){let r={doc:t,d:e,meta:ox(n)},i=[rx(),nx(),ix()];i.forEach(({before:o})=>o==null?void 0:o(r)),i.forEach(({after:o})=>o==null?void 0:o(r))},SCROLL_ALLOW({d:t}){t.dispose()},TEARDOWN({doc:t}){this.delete(t)}});ni.subscribe(()=>{let t=ni.getSnapshot(),e=new Map;for(let[n]of t)e.set(n,n.documentElement.style.overflow);for(let n of t.values()){let r=e.get(n.doc)==="hidden",i=n.count!==0;(i&&!r||!i&&r)&&ni.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&ni.dispatch("TEARDOWN",n)}});function sx(t,e,n){let r=ex(ni),i=$(()=>{let o=t.value?r.value.get(t.value):void 0;return o?o.count>0:!1});return Pt([t,e],([o,s],[l],a)=>{if(!o||!s)return;ni.dispatch("PUSH",o,n);let u=!1;a(()=>{u||(ni.dispatch("POP",l!=null?l:o,n),u=!0)})},{immediate:!0}),i}function lx({defaultContainers:t=[],portals:e,mainTreeNodeRef:n}={}){let r=oe(null),i=vn(r);function o(){var s;let l=[];for(let a of t)a!==null&&(a instanceof HTMLElement?l.push(a):"value"in a&&a.value instanceof HTMLElement&&l.push(a.value));if(e!=null&&e.value)for(let a of e.value)l.push(a);for(let a of(s=i==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?s:[])a!==document.body&&a!==document.head&&a instanceof HTMLElement&&a.id!=="headlessui-portal-root"&&(a.contains(fe(r))||l.some(u=>a.contains(u))||l.push(a));return l}return{resolveContainers:o,contains(s){return o().some(l=>l.contains(s))},mainTreeNodeRef:r,MainTreeNode(){return n!=null?null:Fe(Gi,{features:gi.Hidden,ref:r})}}}var ax=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(ax||{});let kc=Symbol("DialogContext");function vs(t){let e=Je(kc,null);if(e===null){let n=new Error(`<${t} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,vs),n}return e}let $s="DC8F892D-2EBD-447C-A4C8-A03058436FF4",ux=xe({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:$s},initialFocus:{type:Object,default:null},id:{type:String,default:()=>`headlessui-dialog-${At()}`}},emits:{close:t=>!0},setup(t,{emit:e,attrs:n,slots:r,expose:i}){var o;let s=oe(!1);Ye(()=>{s.value=!0});let l=oe(0),a=gs(),u=$(()=>t.open===$s&&a!==null?(a.value>.Open)===gt.Open:t.open),c=oe(null),f=$(()=>vn(c));if(i({el:c,$el:c}),!(t.open!==$s||a!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof u.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${u.value===$s?void 0:t.open}`);let h=$(()=>s.value&&u.value?0:1),p=$(()=>h.value===0),g=$(()=>l.value>1),v=Je(kc,null)!==null,[b,x]=Jw(),{resolveContainers:_,mainTreeNodeRef:T,MainTreeNode:d}=lx({portals:b,defaultContainers:[$(()=>{var N;return(N=P.panelRef.value)!=null?N:c.value})]}),y=$(()=>g.value?"parent":"leaf"),m=$(()=>a!==null?(a.value>.Closing)===gt.Closing:!1),w=$(()=>v||m.value?!1:p.value),k=$(()=>{var N,D,q;return(q=Array.from((D=(N=f.value)==null?void 0:N.querySelectorAll("body > *"))!=null?D:[]).find(ae=>ae.id==="headlessui-portal-root"?!1:ae.contains(fe(T))&&ae instanceof HTMLElement))!=null?q:null});Yh(k,w);let S=$(()=>g.value?!0:p.value),C=$(()=>{var N,D,q;return(q=Array.from((D=(N=f.value)==null?void 0:N.querySelectorAll("[data-headlessui-portal]"))!=null?D:[]).find(ae=>ae.contains(fe(T))&&ae instanceof HTMLElement))!=null?q:null});Yh(C,S),Qw({type:"Dialog",enabled:$(()=>h.value===0),element:c,onUpdate:(N,D)=>{if(D==="Dialog")return vt(N,{[xc.Add]:()=>l.value+=1,[xc.Remove]:()=>l.value-=1})}});let E=Ba({name:"DialogDescription",slot:$(()=>({open:u.value}))}),R=oe(null),P={titleId:R,panelRef:oe(null),dialogState:h,setTitleId(N){R.value!==N&&(R.value=N)},close(){e("close",!1)}};Ct(kc,P);let L=$(()=>!(!p.value||g.value));Ld(_,(N,D)=>{P.close(),_t(()=>D==null?void 0:D.focus())},L);let B=$(()=>!(g.value||h.value!==0));u1((o=f.value)==null?void 0:o.defaultView,"keydown",N=>{B.value&&(N.defaultPrevented||N.key===Ie.Escape&&(N.preventDefault(),N.stopPropagation(),P.close()))});let M=$(()=>!(m.value||h.value!==0||v));return sx(f,M,N=>{var D;return{containers:[...(D=N.containers)!=null?D:[],_]}}),Mt(N=>{if(h.value!==0)return;let D=fe(c);if(!D)return;let q=new ResizeObserver(ae=>{for(let Q of ae){let me=Q.target.getBoundingClientRect();me.x===0&&me.y===0&&me.width===0&&me.height===0&&P.close()}});q.observe(D),N(()=>q.disconnect())}),()=>{let Le=t,{id:N,open:D,initialFocus:q}=Le,ae=Qe(Le,["id","open","initialFocus"]),Q=ve(U({},n),{ref:c,id:N,role:"dialog","aria-modal":h.value===0?!0:void 0,"aria-labelledby":R.value,"aria-describedby":E.value}),me={open:h.value===0};return Fe(bc,{force:!0},()=>[Fe(p1,()=>Fe(Gw,{target:c.value},()=>Fe(bc,{force:!1},()=>Fe(wo,{initialFocus:q,containers:_,features:p.value?vt(y.value,{parent:wo.features.RestoreFocus,leaf:wo.features.All&~wo.features.FocusLock}):wo.features.None},()=>Fe(x,{},()=>tt({ourProps:Q,theirProps:U(U({},ae),n),slot:me,attrs:n,slots:r,visible:h.value===0,features:Gn.RenderStrategy|Gn.Static,name:"Dialog"})))))),Fe(d)])}}});xe({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-overlay-${At()}`}},setup(t,{attrs:e,slots:n}){let r=vs("DialogOverlay");function i(o){o.target===o.currentTarget&&(o.preventDefault(),o.stopPropagation(),r.close())}return()=>{let l=t,{id:o}=l,s=Qe(l,["id"]);return tt({ourProps:{id:o,"aria-hidden":!0,onClick:i},theirProps:s,slot:{open:r.dialogState.value===0},attrs:e,slots:n,name:"DialogOverlay"})}}});xe({name:"DialogBackdrop",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-backdrop-${At()}`}},inheritAttrs:!1,setup(t,{attrs:e,slots:n,expose:r}){let i=vs("DialogBackdrop"),o=oe(null);return r({el:o,$el:o}),Ye(()=>{if(i.panelRef.value===null)throw new Error("A component is being used, but a component is missing.")}),()=>{let u=t,{id:s}=u,l=Qe(u,["id"]),a={id:s,ref:o,"aria-hidden":!0};return Fe(bc,{force:!0},()=>Fe(p1,()=>tt({ourProps:a,theirProps:U(U({},e),l),slot:{open:i.dialogState.value===0},attrs:e,slots:n,name:"DialogBackdrop"})))}}});let cx=xe({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-panel-${At()}`}},setup(t,{attrs:e,slots:n,expose:r}){let i=vs("DialogPanel");r({el:i.panelRef,$el:i.panelRef});function o(s){s.stopPropagation()}return()=>{let u=t,{id:s}=u,l=Qe(u,["id"]),a={id:s,ref:i.panelRef,onClick:o};return tt({ourProps:a,theirProps:l,slot:{open:i.dialogState.value===0},attrs:e,slots:n,name:"DialogPanel"})}}}),dx=xe({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:()=>`headlessui-dialog-title-${At()}`}},setup(t,{attrs:e,slots:n}){let r=vs("DialogTitle");return Ye(()=>{r.setTitleId(t.id),Lt(()=>r.setTitleId(null))}),()=>{let s=t,{id:i}=s,o=Qe(s,["id"]);return tt({ourProps:{id:i},theirProps:o,slot:{open:r.dialogState.value===0},attrs:e,slots:n,name:"DialogTitle"})}}}),Qh=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Xh(t){var e,n;let r=(e=t.innerText)!=null?e:"",i=t.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let o=!1;for(let l of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))l.remove(),o=!0;let s=o?(n=i.innerText)!=null?n:"":r;return Qh.test(s)&&(s=s.replace(Qh,"")),s}function fx(t){let e=t.getAttribute("aria-label");if(typeof e=="string")return e.trim();let n=t.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let o=document.getElementById(i);if(o){let s=o.getAttribute("aria-label");return typeof s=="string"?s.trim():Xh(o).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return Xh(t).trim()}function hx(t){let e=oe(""),n=oe("");return()=>{let r=fe(t);if(!r)return"";let i=r.innerText;if(e.value===i)return n.value;let o=fx(r).trim().toLowerCase();return e.value=i,n.value=o,o}}var px=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(px||{}),mx=(t=>(t[t.Pointer=0]="Pointer",t[t.Other=1]="Other",t))(mx||{});function gx(t){requestAnimationFrame(()=>requestAnimationFrame(t))}let v1=Symbol("MenuContext");function $a(t){let e=Je(v1,null);if(e===null){let n=new Error(`<${t} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,$a),n}return e}let yx=xe({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup(t,{slots:e,attrs:n}){let r=oe(1),i=oe(null),o=oe(null),s=oe([]),l=oe(""),a=oe(null),u=oe(1);function c(h=p=>p){let p=a.value!==null?s.value[a.value]:null,g=Ia(h(s.value.slice()),b=>fe(b.dataRef.domRef)),v=p?g.indexOf(p):null;return v===-1&&(v=null),{items:g,activeItemIndex:v}}let f={menuState:r,buttonRef:i,itemsRef:o,items:s,searchQuery:l,activeItemIndex:a,activationTrigger:u,closeMenu:()=>{r.value=1,a.value=null},openMenu:()=>r.value=0,goToItem(h,p,g){let v=c(),b=Xg(h===Ze.Specific?{focus:Ze.Specific,id:p}:{focus:h},{resolveItems:()=>v.items,resolveActiveIndex:()=>v.activeItemIndex,resolveId:x=>x.id,resolveDisabled:x=>x.dataRef.disabled});l.value="",a.value=b,u.value=g!=null?g:1,s.value=v.items},search(h){let p=l.value!==""?0:1;l.value+=h.toLowerCase();let g=(a.value!==null?s.value.slice(a.value+p).concat(s.value.slice(0,a.value+p)):s.value).find(b=>b.dataRef.textValue.startsWith(l.value)&&!b.dataRef.disabled),v=g?s.value.indexOf(g):-1;v===-1||v===a.value||(a.value=v,u.value=1)},clearSearch(){l.value=""},registerItem(h,p){let g=c(v=>[...v,{id:h,dataRef:p}]);s.value=g.items,a.value=g.activeItemIndex,u.value=1},unregisterItem(h){let p=c(g=>{let v=g.findIndex(b=>b.id===h);return v!==-1&&g.splice(v,1),g});s.value=p.items,a.value=p.activeItemIndex,u.value=1}};return Ld([i,o],(h,p)=>{var g;f.closeMenu(),jd(p,Nd.Loose)||(h.preventDefault(),(g=fe(i))==null||g.focus())},$(()=>r.value===0)),Ct(v1,f),Od($(()=>vt(r.value,{[0]:gt.Open,[1]:gt.Closed}))),()=>{let h={open:r.value===0,close:f.closeMenu};return tt({ourProps:{},theirProps:t,slot:h,slots:e,attrs:n,name:"Menu"})}}}),vx=xe({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"},id:{type:String,default:()=>`headlessui-menu-button-${At()}`}},setup(t,{attrs:e,slots:n,expose:r}){let i=$a("MenuButton");r({el:i.buttonRef,$el:i.buttonRef});function o(u){switch(u.key){case Ie.Space:case Ie.Enter:case Ie.ArrowDown:u.preventDefault(),u.stopPropagation(),i.openMenu(),_t(()=>{var c;(c=fe(i.itemsRef))==null||c.focus({preventScroll:!0}),i.goToItem(Ze.First)});break;case Ie.ArrowUp:u.preventDefault(),u.stopPropagation(),i.openMenu(),_t(()=>{var c;(c=fe(i.itemsRef))==null||c.focus({preventScroll:!0}),i.goToItem(Ze.Last)});break}}function s(u){switch(u.key){case Ie.Space:u.preventDefault();break}}function l(u){t.disabled||(i.menuState.value===0?(i.closeMenu(),_t(()=>{var c;return(c=fe(i.buttonRef))==null?void 0:c.focus({preventScroll:!0})})):(u.preventDefault(),i.openMenu(),gx(()=>{var c;return(c=fe(i.itemsRef))==null?void 0:c.focus({preventScroll:!0})})))}let a=Rd($(()=>({as:t.as,type:e.type})),i.buttonRef);return()=>{var u;let c={open:i.menuState.value===0},g=t,{id:f}=g,h=Qe(g,["id"]),p={ref:i.buttonRef,id:f,type:a.value,"aria-haspopup":"menu","aria-controls":(u=fe(i.itemsRef))==null?void 0:u.id,"aria-expanded":i.menuState.value===0,onKeydown:o,onKeyup:s,onClick:l};return tt({ourProps:p,theirProps:h,slot:c,attrs:e,slots:n,name:"MenuButton"})}}}),bx=xe({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:()=>`headlessui-menu-items-${At()}`}},setup(t,{attrs:e,slots:n,expose:r}){let i=$a("MenuItems"),o=oe(null);r({el:i.itemsRef,$el:i.itemsRef}),Pd({container:$(()=>fe(i.itemsRef)),enabled:$(()=>i.menuState.value===0),accept(c){return c.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:c.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(c){c.setAttribute("role","none")}});function s(c){var f;switch(o.value&&clearTimeout(o.value),c.key){case Ie.Space:if(i.searchQuery.value!=="")return c.preventDefault(),c.stopPropagation(),i.search(c.key);case Ie.Enter:if(c.preventDefault(),c.stopPropagation(),i.activeItemIndex.value!==null){let h=i.items.value[i.activeItemIndex.value];(f=fe(h.dataRef.domRef))==null||f.click()}i.closeMenu(),t1(fe(i.buttonRef));break;case Ie.ArrowDown:return c.preventDefault(),c.stopPropagation(),i.goToItem(Ze.Next);case Ie.ArrowUp:return c.preventDefault(),c.stopPropagation(),i.goToItem(Ze.Previous);case Ie.Home:case Ie.PageUp:return c.preventDefault(),c.stopPropagation(),i.goToItem(Ze.First);case Ie.End:case Ie.PageDown:return c.preventDefault(),c.stopPropagation(),i.goToItem(Ze.Last);case Ie.Escape:c.preventDefault(),c.stopPropagation(),i.closeMenu(),_t(()=>{var h;return(h=fe(i.buttonRef))==null?void 0:h.focus({preventScroll:!0})});break;case Ie.Tab:c.preventDefault(),c.stopPropagation(),i.closeMenu(),_t(()=>Aw(fe(i.buttonRef),c.shiftKey?Qt.Previous:Qt.Next));break;default:c.key.length===1&&(i.search(c.key),o.value=setTimeout(()=>i.clearSearch(),350));break}}function l(c){switch(c.key){case Ie.Space:c.preventDefault();break}}let a=gs(),u=$(()=>a!==null?(a.value>.Open)===gt.Open:i.menuState.value===0);return()=>{var c,f;let h={open:i.menuState.value===0},b=t,{id:p}=b,g=Qe(b,["id"]),v={"aria-activedescendant":i.activeItemIndex.value===null||(c=i.items.value[i.activeItemIndex.value])==null?void 0:c.id,"aria-labelledby":(f=fe(i.buttonRef))==null?void 0:f.id,id:p,onKeydown:s,onKeyup:l,role:"menu",tabIndex:0,ref:i.itemsRef};return tt({ourProps:v,theirProps:g,slot:h,attrs:e,slots:n,features:Gn.RenderStrategy|Gn.Static,visible:u.value,name:"MenuItems"})}}}),wx=xe({name:"MenuItem",inheritAttrs:!1,props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1},id:{type:String,default:()=>`headlessui-menu-item-${At()}`}},setup(t,{slots:e,attrs:n,expose:r}){let i=$a("MenuItem"),o=oe(null);r({el:o,$el:o});let s=$(()=>i.activeItemIndex.value!==null?i.items.value[i.activeItemIndex.value].id===t.id:!1),l=hx(o),a=$(()=>({disabled:t.disabled,get textValue(){return l()},domRef:o}));Ye(()=>i.registerItem(t.id,a)),Lt(()=>i.unregisterItem(t.id)),Mt(()=>{i.menuState.value===0&&s.value&&i.activationTrigger.value!==0&&_t(()=>{var v,b;return(b=(v=fe(o))==null?void 0:v.scrollIntoView)==null?void 0:b.call(v,{block:"nearest"})})});function u(v){if(t.disabled)return v.preventDefault();i.closeMenu(),t1(fe(i.buttonRef))}function c(){if(t.disabled)return i.goToItem(Ze.Nothing);i.goToItem(Ze.Specific,t.id)}let f=s1();function h(v){f.update(v)}function p(v){f.wasMoved(v)&&(t.disabled||s.value||i.goToItem(Ze.Specific,t.id,0))}function g(v){f.wasMoved(v)&&(t.disabled||s.value&&i.goToItem(Ze.Nothing))}return()=>{let{disabled:v}=t,b={active:s.value,disabled:v,close:i.closeMenu},T=t,{id:x}=T,_=Qe(T,["id"]);return tt({ourProps:{id:x,ref:o,role:"menuitem",tabIndex:v===!0?void 0:-1,"aria-disabled":v===!0?!0:void 0,disabled:void 0,onClick:u,onFocus:c,onPointerenter:h,onMouseenter:h,onPointermove:p,onMousemove:p,onPointerleave:g,onMouseleave:g},theirProps:U(U({},n),_),slot:b,attrs:n,slots:e,name:"MenuItem"})}}}),b1=Symbol("LabelContext");function w1(){let t=Je(b1,null);if(t===null){let e=new Error("You used a