/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@codelic/component@1.6.85/dist/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
var __defProp=Object.defineProperty,__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>(__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),n);import{defineComponent,openBlock,createElementBlock,normalizeClass,toDisplayString,ref,computed,watch,createVNode,unref,withCtx,createElementVNode,Fragment,renderList,useCssVars,createBlock,Teleport,Transition as Transition$1,withDirectives,createCommentVNode,vShow,vModelDynamic,normalizeStyle,vModelRadio,renderSlot,getCurrentScope,onScopeDispose,onMounted,onBeforeUnmount,vModelText,toRef,withKeys,mergeProps,createTextVNode,inject,withModifiers,reactive,getCurrentInstance,nextTick,h,shallowReactive,provide,onBeforeUpdate,onUpdated,markRaw,onUnmounted,onDeactivated,toRaw,onActivated,onBeforeMount,KeepAlive,createApp,isRef}from"vue";const _sfc_main$r=defineComponent({__name:"CCMDIcon",props:{name:{type:String,required:!0},type:{type:String,default:""}},setup:e=>(t,n)=>(openBlock(),createElementBlock("div",{class:normalizeClass("md-icon "+(e.type?`material-icons-${e.type}`:"material-icons"))},toDisplayString(e.name),3))}),CCMDIcon_vue_vue_type_style_index_0_scoped_da8bc8df_lang="",_export_sfc=(e,t)=>{const n=e.__vccOpts||e;for(const[e,o]of t)n[e]=o;return n},CCMDIcon=_export_sfc(_sfc_main$r,[["__scopeId","data-v-da8bc8df"]]),createCalendar=(e,t)=>{const n=ref([]),o=ref([]),a=ref([]),r=ref([]),i=new Date(e,t,1).getDay();for(let o=0;o<7;o++)o>=i?n.value.push({year:String(e),month:String(t),day:String(o-(i-1))}):(n.value.push,n.value.push({year:" ",month:" ",day:" "}));const l=new Date(e,t+1,0).getDay(),s=new Date(e,t+1,0).getDate();for(let n=0;n<7;n++)n<=l?o.value.unshift({year:String(e),month:String(t),day:String(s-n)}):o.value.push({year:" ",month:" ",day:" "});for(let r=Number(n.value[6].day)+1;r<Number(o.value[0].day);r++)a.value.push({year:String(e),month:String(t),day:String(r)});return r.value=[...n.value,...a.value,...o.value],r.value};class CreatePagenaviMonthYear{constructor(){__publicField(this,"createPagenaviEnMonthYear",((e,t)=>t+1===1?"January "+e:t+1===2?"February "+e:t+1===3?"March "+e:t+1===4?"April "+e:t+1===5?"May "+e:t+1===6?"June "+e:t+1===7?"July "+e:t+1===8?"August "+e:t+1===9?"September "+e:t+1===10?"October "+e:t+1===11?"November "+e:t+1===12?"December "+e:"")),__publicField(this,"createPagenaviJaMonthYear",((e,t)=>t+1===1?`${e}年 1月`:t+1===2?`${e}年 2月`:t+1===3?`${e}年 3月`:t+1===4?`${e}年 4月`:t+1===5?`${e}年 5月`:t+1===6?`${e}年 6月`:t+1===7?`${e}年 7月`:t+1===8?`${e}年 8月`:t+1===9?`${e}年 9月`:t+1===10?`${e}年 10月`:t+1===11?`${e}年 11月`:t+1===12?`${e}年 12月`:"")),__publicField(this,"createPagenaviMonthYearChoose",((e,t,n)=>"ja"===e?this.createPagenaviJaMonthYear(t,n):"en"===e?this.createPagenaviEnMonthYear(t,n):""))}}const createPagenaviMonthYear=new CreatePagenaviMonthYear;class CreateDayOfTheWeek{constructor(){__publicField(this,"createEnglishDayOfTheWeek",(e=>0===e?"Sun":1===e?"Mon":2===e?"Tue":3===e?"Wed":4===e?"Thu":5===e?"Fri":6===e?"Sat":"")),__publicField(this,"createJapaneseDayOfTheWeek",(e=>0===e?"日":1===e?"月":2===e?"火":3===e?"水":4===e?"木":5===e?"金":6===e?"土":"")),__publicField(this,"createDayOfTheWeekChoose",((e,t,n=!1)=>"ja"===e?this.createJapaneseDayOfTheWeek(t):n||"en"!==e?n&&"en"===e?this.createEnglishDayOfTheWeek(t).charAt(0):"":this.createEnglishDayOfTheWeek(t)))}}const createDayOfTheWeek=new CreateDayOfTheWeek,_hoisted_1$m={class:"_cc_calendar"},_hoisted_2$j={class:"_calendar_header"},_hoisted_3$d={key:0,class:"_header_selection_not_selected"},_hoisted_4$b={key:1},_hoisted_5$7={class:"_header_selection_year"},_hoisted_6$6={class:"_header_selection_date"},_hoisted_7$6={class:"_selection_date_container"},_hoisted_8$5={class:"_pagenavi_container"},_hoisted_9$5={class:"_selection_month_year"},_hoisted_10$5={class:"_week_items_container"},_hoisted_11$3={class:"_day_of_the_week_items"},_hoisted_12$3={class:"_day_of_the_week_items"},_hoisted_13$3={class:"_day_of_the_week_items"},_hoisted_14$2={class:"_day_of_the_week_items"},_hoisted_15$2={class:"_day_of_the_week_items"},_hoisted_16$2={class:"_day_of_the_week_items"},_hoisted_17$2={class:"_day_of_the_week_items"},_hoisted_18$1=["onClick"],_sfc_main$q=defineComponent({__name:"CCCalendar",props:{modelValue:{type:String,required:!0},lang:{type:String,default:"ja"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,a=computed({get:()=>n.modelValue,set:e=>{o("update:modelValue",e)}}),r=computed((()=>a.value?new Date(a.value):new Date));ref(r.value.getDate());const i=ref(r.value.getFullYear()),l=ref(r.value.getMonth()),s=ref([]),u=computed((()=>{var e;return(null==(e=a.value)?void 0:e.toString().split("/").at(0))??""})),c=computed((()=>"ja"===n.lang?a.value?r.value.getMonth()+1+"月"+r.value.getDate()+"日（"+p.value+"）":"":"en"===n.lang?r.value.getMonth()+1+", "+r.value.getDate()+" "+p.value:void 0)),d=ref(""),p=ref("");s.value=createCalendar(i.value,l.value),d.value=createPagenaviMonthYear.createPagenaviMonthYearChoose(n.lang,i.value,l.value),p.value=createDayOfTheWeek.createDayOfTheWeekChoose(n.lang,r.value.getDay()),watch((()=>a.value),(()=>{a.value||(p.value=createDayOfTheWeek.createDayOfTheWeekChoose(n.lang,r.value.getDay()))}));const h=ref(),f=ref(),v=ref(),m=ref(l.value),g=ref(),_=()=>{const e=g.value;e.style.marginLeft="5px",e.style.opacity="0",setTimeout((()=>{e.style.marginLeft="0px",e.style.marginRight="5px"}),150),setTimeout((()=>{m.value--,l.value=m.value,m.value<0&&(i.value--,m.value=11,l.value=m.value),s.value=createCalendar(i.value,l.value),d.value=createPagenaviMonthYear.createPagenaviMonthYearChoose(n.lang,i.value,l.value),e.style.marginRight="0px",e.style.opacity="1"}),300)},b=()=>{const e=g.value;e.style.marginRight="5px",e.style.opacity="0",setTimeout((()=>{e.style.marginRight="0px",e.style.marginLeft="5px"}),150),setTimeout((()=>{m.value++,l.value=m.value,m.value>11&&(i.value++,m.value=0,l.value=m.value),s.value=createCalendar(i.value,l.value),d.value=createPagenaviMonthYear.createPagenaviMonthYearChoose(n.lang,i.value,l.value),e.style.marginLeft="0px",e.style.opacity="1"}),300)},y=ref();return(e,t)=>(openBlock(),createElementBlock("div",_hoisted_1$m,[createVNode(unref(CCCard),{class:"_calendar_card"},{default:withCtx((()=>[createElementVNode("div",_hoisted_2$j,[createElementVNode("div",{ref_key:"refHeaderDateContainer",ref:y,class:"_header_date_container"},[u.value&&c.value?(openBlock(),createElementBlock("div",_hoisted_4$b,[createElementVNode("div",_hoisted_5$7,toDisplayString(u.value),1),createElementVNode("div",_hoisted_6$6,toDisplayString(c.value),1)])):(openBlock(),createElementBlock("div",_hoisted_3$d," 日付が未設定です "))],512)]),createElementVNode("div",_hoisted_7$6,[createElementVNode("div",_hoisted_8$5,[createElementVNode("div",{ref_key:"selectionButtonLeft",ref:h,class:"_selection_button _selection_button_left",onClick:_},[createVNode(unref(CCMDIcon),{name:"chevron_left"})],512),createElementVNode("div",_hoisted_9$5,toDisplayString(d.value),1),createElementVNode("div",{ref_key:"selectionButtonRight",ref:f,class:"_selection_button _selection_button_right",onClick:b},[createVNode(unref(CCMDIcon),{name:"chevron_right"})],512)]),createElementVNode("div",_hoisted_10$5,[createElementVNode("div",_hoisted_11$3,toDisplayString(unref(createDayOfTheWeek).createDayOfTheWeekChoose(n.lang,0,!0)),1),createElementVNode("div",_hoisted_12$3,toDisplayString(unref(createDayOfTheWeek).createDayOfTheWeekChoose(n.lang,1,!0)),1),createElementVNode("div",_hoisted_13$3,toDisplayString(unref(createDayOfTheWeek).createDayOfTheWeekChoose(n.lang,2,!0)),1),createElementVNode("div",_hoisted_14$2,toDisplayString(unref(createDayOfTheWeek).createDayOfTheWeekChoose(n.lang,3,!0)),1),createElementVNode("div",_hoisted_15$2,toDisplayString(unref(createDayOfTheWeek).createDayOfTheWeekChoose(n.lang,4,!0)),1),createElementVNode("div",_hoisted_16$2,toDisplayString(unref(createDayOfTheWeek).createDayOfTheWeekChoose(n.lang,5,!0)),1),createElementVNode("div",_hoisted_17$2,toDisplayString(unref(createDayOfTheWeek).createDayOfTheWeekChoose(n.lang,6,!0)),1)]),createElementVNode("div",{ref_key:"refCalendarDateSection",ref:g,class:"_week_items_container"},[(openBlock(!0),createElementBlock(Fragment,null,renderList(s.value,((e,t)=>(openBlock(),createElementBlock("div",{ref_for:!0,ref_key:"refThisMonthCalenderDays",ref:v,key:t,class:normalizeClass({_this_month_day:" "!==e.year&&" "!==e.month&&" "!==e.day,_day_space:" "===e.year&&" "===e.month&&" "===e.day,_today:e.year===String(r.value.getFullYear())&&e.month===String(r.value.getMonth())&&e.day===String(r.value.getDate()),_select_day:e.year+"/"+(Number(e.month)+1)+"/"+e.day===a.value}),onClick:t=>(e=>{" "===e.year&&" "===e.month&&" "===e.day||setTimeout((()=>{const t=new Date(Number(e.year),Number(e.month),Number(e.day)).getDay();p.value=createDayOfTheWeek.createDayOfTheWeekChoose(n.lang,t),a.value=e.year+"/"+(Number(e.month)+1)+"/"+e.day}),300)})(e)},toDisplayString(e.day),11,_hoisted_18$1)))),128))],512)])])),_:1})]))}}),CCCalendar_vue_vue_type_style_index_0_scoped_03d367f4_lang="",CCCalendar=_export_sfc(_sfc_main$q,[["__scopeId","data-v-03d367f4"]]),calendarPosition=(e,t,n)=>{const o=e.getBoundingClientRect().top,a=window.innerHeight/2;return o<a&&("s"===t||"S"===t)&&!n?"44px":o<a&&("m"===t||"M"===t)&&!n?"49px":o<a&&("l"===t||"L"===t)&&!n?"54px":o<a&&("s"===t||"S"===t)&&n?"68px":o<a&&("m"===t||"M"===t)&&n?"73px":o<a&&("l"===t||"L"===t)&&n?"78px":o>a?"-395px":"0px"},_hoisted_1$l={key:0,class:"_calender_modal"},_hoisted_2$i={key:0,class:"_calender_modal_box"},_hoisted_3$c={class:"_label_container"},_hoisted_4$a={class:"_label label_text_size"},_hoisted_5$6={class:"_input_container"},_hoisted_6$5={key:0,class:"_icon_left_position"},_hoisted_7$5={key:1,class:"_icon_left_position"},_hoisted_8$4={key:2,class:"_icon_right_position"},_hoisted_9$4={key:4},_hoisted_10$4=["name","disabled","placeholder","maxlength","inputmode","type","autocomplete"],_sfc_main$p=defineComponent({__name:"CCInput",props:{modelValue:{type:[String,Number,File]},outline:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1},square:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},label:{type:String,default:""},labelSize:{type:String,default:""},placeholder:{type:String,default:""},size:{type:String,default:"S"},iconLeft:{type:String,default:""},iconRight:{type:String,default:""},requiredText:{type:String,default:""},requiredIcon:{type:Boolean,default:!1},error1:{type:Boolean,default:!1},error2:{type:Boolean,default:!1},error3:{type:String,default:""},error4:{type:String,default:""},date:{type:Boolean,default:!1},maxlength:{type:String,default:"999"},search:{type:Boolean,default:!1},calendarPopupMode:{type:Boolean,default:!1},accept:{type:String,default:""},inputmode:{type:String,default:"text"},type:{type:String,default:"text"},isAutocomplete:{type:Boolean,default:!0}},emits:["update:modelValue","update:calendarPopupMode","onBlur","onFocus"],setup(e,{emit:t}){useCssVars((t=>({"08d80ee1":""===e.labelSize?"16px":e.labelSize})));const n=e,o=t,a=computed({get:()=>n.modelValue,set:e=>{o("update:modelValue",e)}}),r=ref(n.type),i=computed((()=>n.outline?"outline":n.shadow?"shadow":n.square?"square":"standard")),l=()=>{"password"===r.value?r.value="text":r.value="password"},s=ref(!1),u=ref(),c=ref(),d=ref(),p=()=>{s.value=!s.value;const e=ref(!1);if((n.label||n.requiredIcon||n.requiredText)&&(e.value=!0),!n.calendarPopupMode){c.value.style.top=calendarPosition(u.value,n.size,e.value)}};watch(a,(()=>{if(s.value&&(s.value=!1,a.value)){let e=String(a.value).split("/")[0],t=("0"+String(a.value).split("/")[1]).slice(-2),n=("0"+String(a.value).split("/")[2]).slice(-2);o("update:modelValue",`${e}/${t}/${n}`)}}));const h=()=>{if("file"===r.value){const e=document.createElement("input");n.accept&&(e.accept=n.accept),e.type="file",e.addEventListener("change",(t=>{const n=t.target.files[0];a.value=n,e.remove()})),e.click()}},f=computed((()=>{if(a.value instanceof File){return a.value.name}})),v=computed((()=>({_icon_left:n.iconLeft||n.search,_icon_right:n.iconRight||n.date,_icon_left_and_right:n.iconLeft&&n.iconRight,_size_s:"s"===n.size.toLocaleLowerCase(),_size_m:"m"===n.size.toLocaleLowerCase(),_size_l:"l"===n.size.toLocaleLowerCase(),_standard:"standard"===i.value,_outline:"outline"===i.value,_shadow:"shadow"===i.value,_square:"square"===i.value,_standard_or_shadow_width:"standard"===i.value&&!n.iconLeft&&!n.iconRight||"shadow"===i.value&&!n.iconLeft&&!n.iconRight,_outline_or_square_width:"outline"===i.value&&!n.iconLeft&&!n.iconRight||"square"===i.value&&!n.iconLeft&&!n.iconRight,_standard_or_shadow_single_icon:"standard"===i.value&&(n.iconLeft||n.iconRight||n.date||n.search)||"shadow"===i.value&&(n.iconLeft||n.iconRight||n.date||n.search),_outline_or_square_single_icon:"outline"===i.value&&(n.iconLeft||n.iconRight||n.date||n.search)||"square"===i.value&&(n.iconLeft||n.iconRight||n.date||n.search),_standard_or_shadow_double_icons:"standard"===i.value&&n.iconLeft&&n.iconRight||"shadow"===i.value&&n.iconLeft&&n.iconRight,_outline_or_square_double_icons:"outline"===i.value&&n.iconLeft&&n.iconRight||"square"===i.value&&n.iconLeft&&n.iconRight,_disable:n.disabled,_error_standard:"standard"===i.value&&(n.error1||n.error2||n.error3||n.error4),_error_outline_and_square:("outline"===i.value||"square"===i.value)&&(n.error1||n.error2||n.error3||n.error4),_error_bg:n.error2||n.error4}))),m=e=>"string"==typeof e||void 0===typeof e;return(t,n)=>(openBlock(),createElementBlock("div",{ref_key:"refCcInput",ref:u,class:"_cc_input",onClick:h},[(openBlock(),createBlock(Teleport,{to:"body"},[e.calendarPopupMode?(openBlock(),createBlock(Transition$1,{key:0,name:"fade"},{default:withCtx((()=>[e.calendarPopupMode?withDirectives((openBlock(),createElementBlock("div",_hoisted_1$l,["s"===e.size||"S"===e.size?(openBlock(),createElementBlock("div",_hoisted_2$i,[createElementVNode("div",{class:"_modal_card_small",ref_key:"refCCCalendarPop",ref:d},[m(a.value)?(openBlock(),createBlock(CCCalendar,{key:0,modelValue:a.value,"onUpdate:modelValue":n[0]||(n[0]=e=>a.value=e)},null,8,["modelValue"])):createCommentVNode("",!0)],512)])):createCommentVNode("",!0)],512)),[[vShow,s.value]]):createCommentVNode("",!0)])),_:1})):createCommentVNode("",!0)])),e.calendarPopupMode?createCommentVNode("",!0):(openBlock(),createBlock(Transition$1,{key:0},{default:withCtx((()=>[withDirectives(createElementVNode("div",{ref_key:"refCcCalendar",ref:c,class:"_cc_calendar_container"},[m(a.value)?(openBlock(),createBlock(CCCalendar,{key:0,modelValue:a.value,"onUpdate:modelValue":n[1]||(n[1]=e=>a.value=e)},null,8,["modelValue"])):createCommentVNode("",!0)],512),[[vShow,s.value]])])),_:1})),createElementVNode("div",_hoisted_3$c,[createElementVNode("div",_hoisted_4$a,toDisplayString(e.label),1),e.requiredText?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["_required_text",{_required_position_right:e.label}])},toDisplayString(e.requiredText),3)):createCommentVNode("",!0),e.requiredIcon?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["_required_icon_container",{_required_position_right:e.label}])},n[5]||(n[5]=[createElementVNode("div",{class:"_required_icon"},"必須",-1)]),2)):createCommentVNode("",!0)]),createElementVNode("div",_hoisted_5$6,[e.iconLeft&&!e.search?(openBlock(),createElementBlock("div",_hoisted_6$5,[createVNode(CCMDIcon,{name:e.iconLeft,class:"_cc_mdicon"},null,8,["name"])])):createCommentVNode("",!0),e.search&&!e.iconLeft?(openBlock(),createElementBlock("div",_hoisted_7$5,[createVNode(CCMDIcon,{name:"search",class:"_cc_search_icon"})])):createCommentVNode("",!0),e.iconRight&&!e.date?(openBlock(),createElementBlock("div",_hoisted_8$4,[createVNode(CCMDIcon,{name:e.iconRight,class:"_cc_mdicon"},null,8,["name"])])):createCommentVNode("",!0),e.date&&!e.iconRight?(openBlock(),createElementBlock("div",{key:3,class:"_calendar_icon_container",onClick:p},[createVNode(CCMDIcon,{name:"calendar_today",class:"_cc_mdicon"})])):createCommentVNode("",!0),"password"===e.type?(openBlock(),createElementBlock("div",_hoisted_9$4,["password"===r.value?(openBlock(),createElementBlock("div",{key:0,class:"_calendar_icon_container",onClick:l},[createVNode(CCMDIcon,{name:"visibility_off",class:"_cc_mdicon"})])):createCommentVNode("",!0),"password"!==r.value?(openBlock(),createElementBlock("div",{key:1,class:"_calendar_icon_container",onClick:l},[createVNode(CCMDIcon,{name:"visibility",class:"_cc_mdicon"})])):createCommentVNode("",!0)])):createCommentVNode("",!0),"file"===r.value?(openBlock(),createElementBlock("div",{key:5,class:normalizeClass(["_input _file",v.value])},toDisplayString(f.value?f.value:e.placeholder),3)):withDirectives((openBlock(),createElementBlock("input",{key:6,name:"dfasdfjdjskfjkdsak_"+Math.random().toString(36).substring(2),"onUpdate:modelValue":n[2]||(n[2]=e=>a.value=e),disabled:e.disabled,placeholder:e.search?"キーワードで検索":e.placeholder,maxlength:e.maxlength,inputmode:e.inputmode,type:r.value,onBlur:n[3]||(n[3]=e=>{o("onBlur")}),onFocus:n[4]||(n[4]=e=>{o("onFocus")}),class:normalizeClass(["_input",v.value]),autocomplete:e.isAutocomplete?"":"new-password"},null,42,_hoisted_10$4)),[[vModelDynamic,a.value]])]),withDirectives(createElementVNode("div",{class:"_error_message"},toDisplayString(e.error3),513),[[vShow,e.error3]]),withDirectives(createElementVNode("div",{class:"_error_message"},toDisplayString(e.error4),513),[[vShow,e.error4]])],512))}}),CCInput_vue_vue_type_style_index_0_scoped_ae07e855_lang="",CCInput=_export_sfc(_sfc_main$p,[["__scopeId","data-v-ae07e855"]]),_hoisted_1$k=["disabled"],_hoisted_2$h={class:"_label"},_sfc_main$o=defineComponent({__name:"CCButton",props:{label:{type:String,default:"label"},outline:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},square:{type:Boolean,default:!1},size:{type:String,default:"S"},color:{type:String,default:"primary"},disabled:{type:Boolean,default:!1},iconRight:{type:String,default:""},iconLeft:{type:String,default:""},labelColor:{type:String,default:"#FFFFFF"}},emits:["click"],setup(e,{emit:t}){const n=e,o=t,a=ref();n.rounded&&(a.value="rounded"),n.square&&(a.value="square"),n.rounded||n.square||(a.value="standard"),watch((()=>[n.rounded,n.square]),(()=>{n.rounded&&(a.value="rounded"),n.square&&(a.value="square"),n.rounded||n.square||(a.value="standard")}));const r=computed((()=>n.color.startsWith("#")?{backgroundColor:n.outline?"transparent":n.color,border:n.outline?`1px solid ${n.color}`:"none",color:n.labelColor}:{}));return(t,n)=>(openBlock(),createElementBlock("button",{disabled:e.disabled,class:normalizeClass(["_cc_button",{_standard:"standard"===a.value,_rounded:"rounded"===a.value,_square:"square"===a.value,_size_xs:"xs"===e.size||"XS"===e.size,_size_s:"s"===e.size||"S"===e.size,_size_m:"m"===e.size||"M"===e.size,_size_l:"l"===e.size||"L"===e.size,_size_xl:"xl"==e.size||"XL"===e.size,_disabled:e.disabled,_color_primary:"primary"===e.color,_color_secondary:"secondary"===e.color,_color_positive:"positive"===e.color,_color_negative:"negative"===e.color,_color_warning:"warning"===e.color,_outline_primary:e.outline&&"primary"===e.color,_outline_secondary:e.outline&&"secondary"===e.color,_outline_positive:e.outline&&"positive"===e.color,_outline_negative:e.outline&&"negative"===e.color,_outline_warning:e.outline&&"warning"===e.color}]),style:normalizeStyle(r.value),onClick:n[0]||(n[0]=e=>o("click"))},[withDirectives(createVNode(CCMDIcon,{name:e.iconLeft,class:"_cc_mdicon"},null,8,["name"]),[[vShow,e.iconLeft]]),createElementVNode("div",_hoisted_2$h,toDisplayString(e.label),1),withDirectives(createVNode(CCMDIcon,{name:e.iconRight,class:"_cc_mdicon"},null,8,["name"]),[[vShow,e.iconRight]])],14,_hoisted_1$k))}}),CCButton_vue_vue_type_style_index_0_scoped_3b32e9c5_lang="",CCButton=_export_sfc(_sfc_main$o,[["__scopeId","data-v-3b32e9c5"]]),_sfc_main$n=defineComponent({__name:"CCToggle",props:{modelValue:{type:Boolean,default:!1},design:{type:String,default:"pattern1"},disabled:{type:Boolean,default:!1},label:{type:String,default:""},hoverInvalid:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,a=computed({get:()=>n.modelValue,set:e=>{o("update:modelValue",e)}}),r=()=>{n.disabled||(a.value=!a.value)};return(t,o)=>(openBlock(),createElementBlock(Fragment,null,["pattern1"===e.design||"pattern2"===e.design?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["_p1_p2_item_container",{_disabled_item_container:n.disabled,_hover_invalid_item_container:n.hoverInvalid}]),onClick:r},["pattern1"===e.design?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([{_p1_p2_ball_passive:!a.value&&!n.hoverInvalid,_p1_p2_ball_active:a.value&&!n.hoverInvalid,_p1_p2_ball_passive_hover_invalid:!a.value&&n.hoverInvalid,_p1_p2_ball_active_hover_invalid:a.value&&n.hoverInvalid,_ball_disabled:n.disabled},"_p1_p2_ball"])},null,2)):createCommentVNode("",!0),"pattern2"===e.design?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([{_p1_p2_ball_passive:!a.value&&!n.hoverInvalid,_p1_p2_ball_active:a.value&&!n.hoverInvalid,_p1_p2_ball_passive_hover_invalid:!a.value&&n.hoverInvalid,_p1_p2_ball_active_hover_invalid:a.value&&n.hoverInvalid,_ball_disabled:n.disabled},"_p1_p2_ball"])},[createElementVNode("div",null,[createVNode(CCMDIcon,{name:a.value?"done":"close",class:normalizeClass([{_icon_active:a.value,_icon_passive:!a.value},"_icon_common"])},null,8,["name","class"])])],2)):createCommentVNode("",!0),n.disabled||n.hoverInvalid?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:2,class:normalizeClass([{_p1_p2_hover_circle_passive:!a.value,_p1_p2_hover_circle_active:a.value},"_p1_p2_hover_circle"])},null,2)),createElementVNode("div",{class:normalizeClass([{_p1_p2_bar_active:a.value,_p1_p2_bar_passive:!a.value},"_p1_p2_bar"])},null,2)],2)):createCommentVNode("",!0),"pattern3"===e.design?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([{_p3_item_active:a.value,_p3_item_passive:!a.value,_disabled_item_container:n.disabled},"_p3_item_container"]),onClick:r},[createElementVNode("div",{class:normalizeClass(["_p3_ball",{_p3_ball_passive:!a.value,_p3_ball_active:a.value,_ball_disabled:n.disabled}])},null,2)],2)):createCommentVNode("",!0)],64))}}),CCToggle_vue_vue_type_style_index_0_scoped_57174417_lang="",CCToggle=_export_sfc(_sfc_main$n,[["__scopeId","data-v-57174417"]]),_hoisted_1$j={class:"_hover_circle_container"},_hoisted_2$g={class:"_hover_circle"},_hoisted_3$b=["value"],_hoisted_4$9=["for"],_sfc_main$m=defineComponent({__name:"CCRadio",props:{modelValue:{type:String,default:""},label:{type:String},value:{type:String,default:""},disabled:{type:Boolean,default:!1},hoverInvalid:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,a=computed({get:()=>n.modelValue,set:e=>{o("update:modelValue",e)}}),r=()=>{n.disabled||a.value!==n.value&&(a.value=n.value)};return(t,o)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["_box",{_active:!e.disabled,_disable:e.disabled}]),onClick:r},[withDirectives(createElementVNode("div",_hoisted_1$j,[withDirectives(createElementVNode("div",_hoisted_2$g,null,512),[[vShow,!n.disabled]])],512),[[vShow,!n.hoverInvalid]]),createElementVNode("div",{class:normalizeClass(["_radio_item_container",{_hover_invalid_radio_item_container:e.hoverInvalid}])},[createElementVNode("div",{class:normalizeClass([{_outer_circle_active:a.value===n.value,_outer_circle_passive:a.value!==n.value},"_outer_circle"])},[createElementVNode("div",{class:normalizeClass([{_inner_circle_active:a.value===n.value},"_inner_circle"])},null,2)],2),withDirectives(createElementVNode("input",{"onUpdate:modelValue":o[0]||(o[0]=e=>a.value=e),type:"radio",value:e.value},null,8,_hoisted_3$b),[[vModelRadio,a.value]]),createElementVNode("label",{for:e.value,class:normalizeClass({_label:!e.disabled,_label_disabled:e.disabled})},toDisplayString("string"==typeof e.label?e.label:e.value),11,_hoisted_4$9)],2)],2))}}),CCRadio_vue_vue_type_style_index_0_scoped_2bf0e901_lang="",CCRadio=_export_sfc(_sfc_main$m,[["__scopeId","data-v-2bf0e901"]]),_hoisted_1$i={key:0,class:"_hover_circle_container"},_hoisted_2$f={class:"_hover_circle"},_hoisted_3$a={class:"_check_container"},_sfc_main$l=defineComponent({__name:"CCCheckbox",props:{modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},label:{type:String,default:""},labelColor:{type:String,default:""},size:{type:String,default:"L"},error1:{type:Boolean,default:!1},error2:{type:Boolean,default:!1},error3:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,a=computed({get:()=>n.modelValue,set:e=>{o("update:modelValue",e)}}),r=()=>{n.disabled||(a.value=!a.value)};return(t,o)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["_cc_checkbox",{_active:!n.disabled,_passive:n.disabled,_cc_checkbox_size_l:"L"===n.size||"l"===n.size}]),onClick:r},["L"===n.size||"l"===n.size?(openBlock(),createElementBlock("div",_hoisted_1$i,[withDirectives(createElementVNode("div",_hoisted_2$f,null,512),[[vShow,!n.disabled]])])):createCommentVNode("",!0),createElementVNode("div",{class:normalizeClass(["_checkbox",{_size_s:"S"===n.size||"s"===n.size,_size_l:"L"===n.size||"l"===n.size,_checkbox_active:a.value,_checkbox_passive:!a.value,_checkbox_disabled:n.disabled,_checkbox_error1:n.error1&&!a.value,_checkbox_error2:n.error2&&!a.value||n.error3}])},[createElementVNode("div",{class:normalizeClass(["_check_container_position",{_check_container_position_size_s_label:n.label&&("S"===n.size||"s"===n.size)}])},[createElementVNode("div",_hoisted_3$a,[createElementVNode("div",{class:normalizeClass([{_long_border_active:a.value,_long_border_passive:!a.value},"_long_border"])},null,2),createElementVNode("div",{class:normalizeClass([{_short_border_active:a.value,_short_border_passive:!a.value},"_short_border"])},null,2)])],2)],2),withDirectives(createElementVNode("div",{class:normalizeClass(["_label",{_label_size_l:"L"===n.size||"l"===n.size,_label_size_s:"S"===n.size||"s"===n.size,_label_color_main:!e.labelColor,_label_color_black:"black"===e.labelColor,_label_color_gray:"gray"===e.labelColor}])},toDisplayString(e.label),3),[[vShow,e.label]])],2))}}),CCCheckbox_vue_vue_type_style_index_0_scoped_3a20d17b_lang="",CCCheckbox=_export_sfc(_sfc_main$l,[["__scopeId","data-v-3a20d17b"]]),_sfc_main$k=defineComponent({__name:"CCCard",props:{round:{type:Boolean,default:!1}},setup:e=>(t,n)=>(openBlock(),createElementBlock("div",{class:"_card_box",style:normalizeStyle({borderRadius:e.round?"5px":"0px"})},[renderSlot(t.$slots,"default",{},void 0,!0)],4))}),CCCard_vue_vue_type_style_index_0_scoped_1ce106d1_lang="",CCCard=_export_sfc(_sfc_main$k,[["__scopeId","data-v-1ce106d1"]]);var _a;const isClient="undefined"!=typeof window,isString=e=>"string"==typeof e,noop$3=()=>{},isIOS=isClient&&(null==(_a=null==window?void 0:window.navigator)?void 0:_a.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function resolveUnref(e){return"function"==typeof e?e():unref(e)}function identity$3(e){return e}function tryOnScopeDispose(e){return!!getCurrentScope()&&(onScopeDispose(e),!0)}function unrefElement(e){var t;const n=resolveUnref(e);return null!=(t=null==n?void 0:n.$el)?t:n}const defaultWindow=isClient?window:void 0;function useEventListener(...e){let t,n,o,a;if(isString(e[0])||Array.isArray(e[0])?([n,o,a]=e,t=defaultWindow):[t,n,o,a]=e,!t)return noop$3;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],i=()=>{r.forEach((e=>e())),r.length=0},l=watch((()=>[unrefElement(t),resolveUnref(a)]),(([e,t])=>{i(),e&&r.push(...n.flatMap((n=>o.map((o=>((e,t,n,o)=>(e.addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)))(e,n,o,t))))))}),{immediate:!0,flush:"post"}),s=()=>{l(),i()};return tryOnScopeDispose(s),s}let _iOSWorkaround=!1;function onClickOutside(e,t,n={}){const{window:o=defaultWindow,ignore:a=[],capture:r=!0,detectIframe:i=!1}=n;if(!o)return;isIOS&&!_iOSWorkaround&&(_iOSWorkaround=!0,Array.from(o.document.body.children).forEach((e=>e.addEventListener("click",noop$3))));let l=!0;const s=e=>a.some((t=>{if("string"==typeof t)return Array.from(o.document.querySelectorAll(t)).some((t=>t===e.target||e.composedPath().includes(t)));{const n=unrefElement(t);return n&&(e.target===n||e.composedPath().includes(n))}})),u=[useEventListener(o,"click",(n=>{const o=unrefElement(e);o&&o!==n.target&&!n.composedPath().includes(o)&&(0===n.detail&&(l=!s(n)),l?t(n):l=!0)}),{passive:!0,capture:r}),useEventListener(o,"pointerdown",(t=>{const n=unrefElement(e);n&&(l=!t.composedPath().includes(n)&&!s(t))}),{passive:!0}),i&&useEventListener(o,"blur",(n=>{var a;const r=unrefElement(e);"IFRAME"!==(null==(a=o.document.activeElement)?void 0:a.tagName)||(null==r?void 0:r.contains(o.document.activeElement))||t(n)}))].filter(Boolean);return()=>u.forEach((e=>e()))}const _global="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},globalKey="__vueuse_ssr_handlers__";var SwipeDirection;_global[globalKey]=_global[globalKey]||{},function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"}(SwipeDirection||(SwipeDirection={}));var __defProp2=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp2=(e,t,n)=>t in e?__defProp2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__spreadValues=(e,t)=>{for(var n in t||(t={}))__hasOwnProp.call(t,n)&&__defNormalProp2(e,n,t[n]);if(__getOwnPropSymbols)for(var n of __getOwnPropSymbols(t))__propIsEnum.call(t,n)&&__defNormalProp2(e,n,t[n]);return e};const _TransitionPresets={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};__spreadValues({linear:identity$3},_TransitionPresets);const _hoisted_1$h={class:"_close_container_small"},_hoisted_2$e={key:1,class:"_dialog_container_medium"},_hoisted_3$9={class:"_close_container_medium"},_hoisted_4$8={key:2},_hoisted_5$5={class:"_close_container_large"},_sfc_main$j=defineComponent({__name:"CCModal",props:{modelValue:{type:Boolean,default:!1},size:{type:String,default:"l"},loginPage:{type:Boolean,default:!1}},emits:["close","update:modelValue"],setup(e,{emit:t}){const n=e,o=t,a=computed({get:()=>n.modelValue,set:e=>{o("update:modelValue",e)}}),r=()=>{a.value=!1,o("close",!1)},i=e=>{const t=document.body;t.style.overflow=e?"hidden":"auto"};return onMounted((()=>{i(!0)})),onBeforeUnmount((()=>{i(!1)})),(t,n)=>(openBlock(),createBlock(Teleport,{to:"body"},[a.value?(openBlock(),createBlock(Transition$1,{key:0,name:"fade"},{default:withCtx((()=>[createElementVNode("div",{class:normalizeClass(["_cc_modal",{_card_position_large:"l"===e.size||"L"===e.size,_cc_modal_login_page:e.loginPage}])},["s"===e.size||"S"===e.size?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["_dialog_container_small",{_dialog_container_small_login_page:e.loginPage}])},[createElementVNode("div",_hoisted_1$h,[createVNode(CCMDIcon,{name:"close",class:"_close_icon",onClick:r})]),createVNode(CCCard,{class:"_modal_card_small"},{default:withCtx((()=>[renderSlot(t.$slots,"default",{},void 0,!0)])),_:3})],2)):createCommentVNode("",!0),"m"===e.size||"M"===e.size?(openBlock(),createElementBlock("div",_hoisted_2$e,[createElementVNode("div",_hoisted_3$9,[createVNode(CCMDIcon,{name:"close",class:"_close_icon",onClick:r})]),createVNode(CCCard,{class:"_modal_card_medium"},{default:withCtx((()=>[renderSlot(t.$slots,"default",{},void 0,!0)])),_:3})])):createCommentVNode("",!0),"l"===e.size||"L"===e.size?(openBlock(),createElementBlock("div",_hoisted_4$8,[createElementVNode("div",_hoisted_5$5,[createVNode(CCMDIcon,{name:"close",class:"_close_icon",onClick:r})]),createVNode(CCCard,{class:"_modal_card_large"},{default:withCtx((()=>[renderSlot(t.$slots,"default",{},void 0,!0)])),_:3})])):createCommentVNode("",!0)],2)])),_:3})):createCommentVNode("",!0)]))}}),CCModal_vue_vue_type_style_index_0_scoped_b5720384_lang="",CCModal=_export_sfc(_sfc_main$j,[["__scopeId","data-v-b5720384"]]),_hoisted_1$g={class:"_label_container"},_hoisted_2$d={class:"_label"},_hoisted_3$8=["onClick"],_hoisted_4$7=["onClick"],_sfc_main$i=defineComponent({__name:"CCSelect",props:{modelValue:{type:[String,Number,Boolean]},options:{type:Array,default:[]},outline:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1},square:{type:Boolean,default:!1},optionsDesign:{type:Number,default:1},optionsHeight:{type:Number,default:300},disabled:{type:Boolean,default:!1},label:{type:String,default:""},placeholder:{type:String,default:""},size:{type:String,default:"S"},requiredText:{type:String,default:""},requiredIcon:{type:Boolean,default:!1},error1:{type:Boolean,default:!1},error2:{type:Boolean,default:!1},error3:{type:String,default:""},error4:{type:String,default:""},isDialog:{type:Boolean,default:!1},iconRight:{type:String,default:"arrow_drop_down"},isAddClassFromValue:{type:Boolean,default:!1}},emits:["update:modelValue","onBlur","onFocus"],setup(e,{emit:t}){const n=e,o=computed((()=>n.options.map((e=>"string"==typeof e?{label:e,value:e}:e)))),a=t,r=computed({get:()=>n.modelValue,set:e=>{a("update:modelValue",e)}}),i=ref();n.outline&&(i.value="outline"),n.shadow&&(i.value="shadow"),n.square&&(i.value="square"),n.outline||n.shadow||n.square||(i.value="standard"),watch((()=>[n.outline,n.shadow,n.square]),(()=>{n.outline&&(i.value="outline"),n.shadow&&(i.value="shadow"),n.square&&(i.value="square"),n.outline||n.shadow||n.square||(i.value="standard")})),watch((()=>n.options),(e=>{o.value.length>0&&"object"==typeof o.value[0]&&"furigana"in o.value[0]&&o.value.sort(((e,t)=>{const n="object"==typeof e?e.furigana??String(e.label):String(e),o="object"==typeof t?t.furigana??String(t.label):String(t);return n.localeCompare(o,"ja")}))}),{immediate:!0});const l=ref(),s=ref(),u=ref(),c=ref(!1),d=()=>{if(f(),n.disabled)return;c.value=!c.value;const e=ref(!1);(n.label||n.requiredText||n.requiredIcon)&&(e.value=!0);const t=s.value.getBoundingClientRect().top,o=u.value;setTimeout((()=>{c.value&&t>window.innerHeight/2&&(o.style.top=`-${o.clientHeight-2}px`),c.value&&"S"===n.size&&!e.value&&t<window.innerHeight/2&&(o.style.top="42px"),c.value&&"M"===n.size&&!e.value&&t<window.innerHeight/2&&(o.style.top="49px"),c.value&&"L"===n.size&&!e.value&&t<window.innerHeight/2&&(o.style.top="54px"),c.value&&"S"===n.size&&e.value&&t<window.innerHeight/2&&(o.style.top="66px"),c.value&&"M"===n.size&&e.value&&t<window.innerHeight/2&&(o.style.top="73px"),c.value&&"L"===n.size&&e.value&&t<window.innerHeight/2&&(o.style.top="78px")}),0)},p=e=>{var t;r.value=null==(t=o.value.find((t=>t.value===e)))?void 0:t.value,h(),c.value=!1};onClickOutside(l,(()=>{c.value&&(h(),c.value=!1)}));const h=()=>{a("onBlur")},f=()=>{a("onFocus")};return(t,a)=>{var f;return openBlock(),createElementBlock("div",{ref_key:"refBox",ref:l,class:"_box"},[createElementVNode("div",_hoisted_1$g,[createElementVNode("div",_hoisted_2$d,toDisplayString(e.label),1),withDirectives(createElementVNode("div",{class:normalizeClass(["_required_text",{_required_position_right:e.label}])},toDisplayString(e.requiredText),3),[[vShow,e.requiredText]]),withDirectives(createElementVNode("div",{class:normalizeClass(["_required_icon_container",{_required_position_right:e.label}])},a[2]||(a[2]=[createElementVNode("div",{class:"_required_icon"},"必須",-1)]),2),[[vShow,e.requiredIcon]])]),createElementVNode("div",{ref_key:"refSelectFormContainer",ref:s,class:normalizeClass(["_select_form_container",{_size_s:"S"===n.size,_size_m:"M"===n.size,_size_l:"L"===n.size,_standard:"standard"===i.value,_outline:"outline"===i.value,_shadow:"shadow"===i.value,_square:"square"===i.value,_disabled:n.disabled,_error_standard:"standard"===i.value&&(n.error1||n.error2||n.error3||n.error4),_error_outline_and_square:("outline"===i.value||"square"===i.value)&&(n.error1||n.error2||n.error3||n.error4),_error_bg_common:n.error2||n.error4}]),onClick:d},[withDirectives(createElementVNode("div",{class:"_placeholder_text"},toDisplayString(e.placeholder),513),[[vShow,!r.value]]),createElementVNode("div",{class:normalizeClass(["_text",e.isAddClassFromValue?`_value-${r.value}`:""])},toDisplayString(null==(f=o.value.find((e=>e.value===r.value)))?void 0:f.label),3),createVNode(CCMDIcon,{name:e.iconRight,class:"_arrow_drop_down"},null,8,["name"])],2),withDirectives(createElementVNode("div",{class:"_error_message_common"},toDisplayString(n.error3),513),[[vShow,n.error3]]),withDirectives(createElementVNode("div",{class:"_error_message_common"},toDisplayString(n.error4),513),[[vShow,n.error4]]),e.isDialog&&c.value?(openBlock(),createBlock(CCModal,{key:0,modelValue:c.value,"onUpdate:modelValue":a[0]||(a[0]=e=>c.value=e),size:"s",class:"_cc_select_modal"},{default:withCtx((()=>[createVNode(CCCard,{style:normalizeStyle({"max-height":e.optionsHeight+"px"}),class:"_cc_select_modal_card"},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(o.value,((e,t)=>(openBlock(),createElementBlock("div",{key:e.label,class:normalizeClass({_options_item_table_design1:1===n.optionsDesign,_options_item_table_select_design1:r.value===e.value&&1===n.optionsDesign,_options_item_table_design2:2===n.optionsDesign&&t!==o.value.length-1,_options_item_table_last_design2:2===n.optionsDesign&&t===o.value.length-1,_options_item_table_select_design2:r.value===e.value&&2===n.optionsDesign}),onClick:t=>p(e.value)},toDisplayString(e.label),11,_hoisted_3$8)))),128))])),_:1},8,["style"])])),_:1},8,["modelValue"])):createCommentVNode("",!0),createVNode(Transition$1,null,{default:withCtx((()=>[withDirectives(createElementVNode("div",{ref_key:"refOptionsItemContainer",ref:u,class:"_options_item_container",onBlur:a[1]||(a[1]=e=>h())},[createVNode(CCCard,{style:normalizeStyle({"max-height":e.optionsHeight+"px",overflow:"auto"})},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(o.value,((t,a)=>(openBlock(),createElementBlock("div",{key:t.label,class:normalizeClass([e.isAddClassFromValue?`_value-${t.value}`:"",{_options_item_table_design1:1===n.optionsDesign,_options_item_table_select_design1:r.value===t.value&&1===n.optionsDesign,_options_item_table_design2:2===n.optionsDesign&&a!==o.value.length-1,_options_item_table_last_design2:2===n.optionsDesign&&a===o.value.length-1,_options_item_table_select_design2:r.value===t.value&&2===n.optionsDesign}]),onClick:e=>p(t.value)},toDisplayString(t.label),11,_hoisted_4$7)))),128))])),_:1},8,["style"])],544),[[vShow,c.value&&!e.isDialog]])])),_:1})],512)}}}),CCSelect_vue_vue_type_style_index_0_scoped_e661d93f_lang="",CCSelect=_export_sfc(_sfc_main$i,[["__scopeId","data-v-e661d93f"]]),_hoisted_1$f={class:"_box"},_hoisted_2$c=["onClick"],_sfc_main$h=defineComponent({__name:"CCPagination",props:{modelValue:{type:Number,default:1},pattern:{type:Number,default:1},max:{type:Number,default:1},maxPages:{type:Number,default:1},size:{type:String,default:"L"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,a=computed({get:()=>n.modelValue,set:e=>{o("update:modelValue",e)}}),r=ref([]),i=ref([]);onMounted((()=>{if(n.max){for(let e=1;e<n.max+1;e++)r.value.push(e);i.value=r.value.filter((e=>e<=n.maxPages))}else r.value.push(1)}));return(e,t)=>(openBlock(),createElementBlock("div",_hoisted_1$f,[createElementVNode("div",{class:normalizeClass(["_arrow_container_common",{_arrow_container_disabled_common:1===a.value,_arrow_container_common_size_s:"s"===n.size||"S"===n.size}]),onClick:t[0]||(t[0]=e=>(e=>{if(1!==a.value&&(a.value--,1===e&&n.max>n.maxPages)){const e=Math.round(i.value.length/2-1),t=i.value[e],o=i.value.slice(-1)[0]-n.maxPages,l=i.value.slice(-1)[0]-1;a.value===t&&o>0&&(i.value=r.value.filter((e=>e>=o&&e<=l)))}})(n.pattern))},[createElementVNode("div",{class:normalizeClass(["_arrow_left",{_arrow_left_size_s:"s"===n.size||"S"===n.size}])},null,2)],2),(openBlock(!0),createElementBlock(Fragment,null,renderList(i.value,(e=>withDirectives((openBlock(),createElementBlock("div",{key:e,class:normalizeClass(["_pattern_1_num_btn",{_pattern_1_num_btn_active:e===a.value,_pattern_1_num_btn_passive:e!==a.value,_pattern_1_num_btn_size_s:"s"===n.size||"S"===n.size}]),onClick:t=>(e=>{a.value=e;const t=Math.round(i.value.length/2-1);let o=0,l=0;n.maxPages%2==0?(o=n.maxPages-t,l=n.maxPages-t-1):(o=n.maxPages-t,l=n.maxPages-t);const s=ref([]);for(let t=1;t<o;t++)e+t<=n.max?s.value.push(e+t):l++;const u=ref([]);for(let t=1;t<l;t++)u.value.unshift(e-t);const c=ref([e]),d=ref([...u.value,...c.value,...s.value]);d.value[0]<=0?i.value=r.value.filter((e=>e<=n.maxPages)):i.value=d.value})(e)},toDisplayString(e),11,_hoisted_2$c)),[[vShow,1===n.pattern]]))),128)),withDirectives(createElementVNode("div",{class:normalizeClass(["_pattern_2_num_container",{_pattern_2_num_container_size_s:"s"===n.size||"S"===n.size}])},toDisplayString(a.value)+" / "+toDisplayString(n.max),3),[[vShow,2===n.pattern]]),createElementVNode("div",{class:normalizeClass(["_arrow_container_common",{_arrow_container_disabled_common:a.value===n.max}]),onClick:t[1]||(t[1]=e=>(e=>{if(a.value!==n.max&&(a.value++,1===e&&n.max>n.maxPages)){const e=Math.round(i.value.length/2-1),t=i.value[e],o=i.value[1],l=i.value.slice(-1)[0]+1;a.value>=t&&l<n.max&&(i.value=r.value.filter((e=>e>=o&&e<=l))),l===n.max&&(i.value=r.value.filter((e=>e>=n.max-n.maxPages+1&&e<=n.max)))}})(n.pattern))},[createElementVNode("div",{class:normalizeClass(["_arrow_right",{_arrow_right_size_s:"s"===n.size||"S"===n.size}])},null,2)],2)]))}}),CCPagination_vue_vue_type_style_index_0_scoped_a8f1a147_lang="",CCPagination=_export_sfc(_sfc_main$h,[["__scopeId","data-v-a8f1a147"]]),_hoisted_1$e={class:"_box"},_hoisted_2$b={class:"_label_container"},_hoisted_3$7={class:"_label"},_hoisted_4$6=["rows","disabled","placeholder"],_sfc_main$g=defineComponent({__name:"CCTextarea",props:{modelValue:{type:String},rows:{type:String,default:"10"},design:{type:String,default:"outline"},disabled:{type:Boolean,default:!1},label:{type:String,default:""},placeholder:{type:String,default:""},requiredText:{type:String,default:""},requiredIcon:{type:Boolean,default:!1},error1:{type:Boolean,default:!1},error2:{type:Boolean,default:!1},error3:{type:String,default:""},error4:{type:String,default:""}},emits:["update:modelValue","onBlur","onFocus"],setup(e,{emit:t}){const n=e,o=t,a=computed({get:()=>n.modelValue,set:e=>{o("update:modelValue",e)}});return(t,r)=>(openBlock(),createElementBlock("div",_hoisted_1$e,[createElementVNode("div",_hoisted_2$b,[createElementVNode("div",_hoisted_3$7,toDisplayString(e.label),1),withDirectives(createElementVNode("div",{class:normalizeClass(["_required_text",{_required_position_right:e.label}])},toDisplayString(e.requiredText),3),[[vShow,e.requiredText]]),withDirectives(createElementVNode("div",{class:normalizeClass(["_required_icon_container",{_required_position_right:e.label}])},r[3]||(r[3]=[createElementVNode("div",{class:"_required_icon"},"必須",-1)]),2),[[vShow,e.requiredIcon]])]),withDirectives(createElementVNode("textarea",{"onUpdate:modelValue":r[0]||(r[0]=e=>a.value=e),rows:e.rows,disabled:e.disabled,placeholder:e.placeholder,class:normalizeClass([{_outline:"outline"===n.design,_shadow:"shadow"===n.design,_square:"square"===n.design,_disabled:n.disabled,_error_border_common:"shadow"!==n.design&&(n.error1||n.error2||n.error3||n.error4),_error_bg_common:n.error2||n.error4},"_textarea"]),onBlur:r[1]||(r[1]=e=>{o("onBlur")}),onFocus:r[2]||(r[2]=e=>{o("onFocus")})},null,42,_hoisted_4$6),[[vModelText,a.value]]),withDirectives(createElementVNode("div",{class:"_error_message_common"},toDisplayString(n.error3),513),[[vShow,n.error3]]),withDirectives(createElementVNode("div",{class:"_error_message_common"},toDisplayString(n.error4),513),[[vShow,n.error4]])]))}}),CCTextarea_vue_vue_type_style_index_0_scoped_08e0d27e_lang="",CCTextarea=_export_sfc(_sfc_main$g,[["__scopeId","data-v-08e0d27e"]]),_hoisted_1$d={class:"_box"},_hoisted_2$a={class:"_item_container_common"},_hoisted_3$6=["onClick"],_hoisted_4$5={key:0,class:"_badge_annihilation"},_hoisted_5$4={key:1,class:"_icon_container_gap"},_hoisted_6$4={key:2,class:"_alert_icon"},_hoisted_7$4={class:"_item_container_common _item_container_gap"},_hoisted_8$3=["onClick"],_hoisted_9$3={class:"_pattern2_content"},_hoisted_10$3={key:0,class:"_badge_annihilation"},_hoisted_11$2={key:1,class:"_icon_container_gap"},_hoisted_12$2={class:"_pattern2_content _parttern2_underbar"},_hoisted_13$2={key:2,class:"_alert_icon"},_hoisted_14$1=["onClick"],_hoisted_15$1={key:0,class:"_badge_annihilation"},_hoisted_16$1={key:1,class:"_icon_container_gap"},_hoisted_17$1={key:2,class:"_alert_icon"},_sfc_main$f=defineComponent({__name:"CCTab",props:{modelValue:{type:Number,default:0},options:{type:Array,default:["item1","item2"]},alertArr:{type:Array,default:[]},pattern:{type:Number,default:1},width:{type:Number},iconSetArr:{type:Object,default:[]},colorArr:{type:Array,default:[]},isShadow:{type:Boolean,default:!1},isBorder:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,a=computed({get:()=>n.modelValue,set:e=>{o("update:modelValue",e)}}),r=computed((()=>n.alertArr)),i=e=>{a.value=e},l=computed((()=>n.colorArr.flatMap((e=>e.startsWith("#")?e:`var(--c-${e})`)))),s=computed((()=>n.iconSetArr));return(t,n)=>(openBlock(),createElementBlock("div",_hoisted_1$d,[withDirectives(createElementVNode("div",_hoisted_2$a,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.options,((t,n)=>{var o,l,u;return openBlock(),createElementBlock("div",{key:n,style:normalizeStyle({width:e.width?e.width+"px":"100%"}),class:normalizeClass([{_pattern1_item_border_left:0===n,_pattern1_item_active:a.value===n,_pattern1_item_passive:a.value!==n,_shadow:e.isShadow},"_pattern1_item"]),onClick:e=>i(n)},[r.value.at(n)?(openBlock(),createElementBlock("div",_hoisted_4$5)):createCommentVNode("",!0),(null==(o=s.value.at(n))?void 0:o.name)?(openBlock(),createElementBlock("div",_hoisted_5$4,[createVNode(CCMDIcon,{name:null==(l=s.value.at(n))?void 0:l.name,type:null==(u=s.value.at(n))?void 0:u.type},null,8,["name","type"])])):createCommentVNode("",!0),createElementVNode("div",null,toDisplayString(t),1),r.value.at(n)?(openBlock(),createElementBlock("div",_hoisted_6$4,toDisplayString(r.value.at(n)?"number"==typeof r.value.at(n)?r.value.at(n):"!":""),1)):createCommentVNode("",!0)],14,_hoisted_3$6)})),128))],512),[[vShow,1===e.pattern]]),withDirectives(createElementVNode("div",_hoisted_7$4,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.options,((t,n)=>{var o,l,u;return openBlock(),createElementBlock("div",{key:n,style:normalizeStyle({width:e.width?e.width+"px":"100%"}),class:normalizeClass([{_pattern2_item_active:a.value===n,_pattern2_item_passive:a.value!==n,_shadow:e.isShadow},"_pattern2_item"]),onClick:e=>i(n)},[createElementVNode("div",_hoisted_9$3,[r.value.at(n)?(openBlock(),createElementBlock("div",_hoisted_10$3)):createCommentVNode("",!0),(null==(o=s.value.at(n))?void 0:o.name)?(openBlock(),createElementBlock("div",_hoisted_11$2,[createVNode(CCMDIcon,{name:null==(l=s.value.at(n))?void 0:l.name,type:null==(u=s.value.at(n))?void 0:u.type},null,8,["name","type"])])):createCommentVNode("",!0),createElementVNode("div",_hoisted_12$2,toDisplayString(t),1),r.value.at(n)?(openBlock(),createElementBlock("div",_hoisted_13$2,toDisplayString(r.value.at(n)?"number"==typeof r.value.at(n)?r.value.at(n):"!":""),1)):createCommentVNode("",!0)])],14,_hoisted_8$3)})),128))],512),[[vShow,2===e.pattern]]),withDirectives(createElementVNode("div",{class:normalizeClass(["_item_container_common _item_container_gap",{_border_under:e.isBorder}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.options,((t,n)=>{var o,u,c;return openBlock(),createElementBlock("div",{key:n,style:normalizeStyle({width:e.width?e.width+"px":"100%",background:a.value===n?l.value[n]:"",color:a.value!==n?l.value[n]:""}),class:normalizeClass([{_pattern3_item_active:a.value===n,_pattern3_item_passive:a.value!==n,_shadow:e.isShadow},"_pattern3_item"]),onClick:e=>i(n)},[r.value.at(n)?(openBlock(),createElementBlock("div",_hoisted_15$1)):createCommentVNode("",!0),(null==(o=s.value.at(n))?void 0:o.name)?(openBlock(),createElementBlock("div",_hoisted_16$1,[createVNode(CCMDIcon,{name:null==(u=s.value.at(n))?void 0:u.name,type:null==(c=s.value.at(n))?void 0:c.type},null,8,["name","type"])])):createCommentVNode("",!0),createElementVNode("div",null,toDisplayString(t),1),r.value.at(n)?(openBlock(),createElementBlock("div",_hoisted_17$1,toDisplayString(r.value.at(n)?"number"==typeof r.value.at(n)?r.value.at(n):"!":""),1)):createCommentVNode("",!0)],14,_hoisted_14$1)})),128))],2),[[vShow,3===e.pattern]])]))}}),CCTab_vue_vue_type_style_index_0_scoped_748d6264_lang="",CCTab=_export_sfc(_sfc_main$f,[["__scopeId","data-v-748d6264"]]),_sfc_main$e=defineComponent({__name:"CCSpinner",props:{pattern:{type:Number,default:1},white:{type:Boolean,default:!1},centerCircleBgColor:{type:String,default:"#ffffff"}},setup:e=>(t,n)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["_box",{_pattern2_box:2===e.pattern&&!e.white,_pattern2_box_color_white:2===e.pattern&&e.white}])},[withDirectives(createElementVNode("div",{class:normalizeClass(["_pattern2_item",{_color_primary:!e.white,_color_white:e.white}])},null,2),[[vShow,2===e.pattern]]),withDirectives(createElementVNode("div",{class:"_pattern2_center_circle",style:normalizeStyle({background:e.centerCircleBgColor})},null,4),[[vShow,2===e.pattern]]),createElementVNode("div",{class:normalizeClass(["_item_common _item1",{_color_primary:!e.white,_color_white:e.white,_pattern1_common:1===e.pattern,_pattern1_item1:1===e.pattern,_pattern3_common:3===e.pattern,_pattern3_item1:3===e.pattern}])},null,2),createElementVNode("div",{class:normalizeClass(["_item_common _item2",{_color_primary:!e.white,_color_white:e.white,_pattern1_common:1===e.pattern,_pattern1_item2:1===e.pattern,_pattern3_common:3===e.pattern,_pattern3_item2:3===e.pattern}])},null,2),createElementVNode("div",{class:normalizeClass(["_item_common _item3",{_color_primary:!e.white,_color_white:e.white,_pattern1_common:1===e.pattern,_pattern1_item3:1===e.pattern,_pattern3_common:3===e.pattern,_pattern3_item3:3===e.pattern}])},null,2),createElementVNode("div",{class:normalizeClass(["_item_common _item4",{_color_primary:!e.white,_color_white:e.white,_pattern1_common:1===e.pattern,_pattern1_item4:1===e.pattern,_pattern3_common:3===e.pattern,_pattern3_item4:3===e.pattern}])},null,2),createElementVNode("div",{class:normalizeClass(["_item_common _item5",{_color_primary:!e.white,_color_white:e.white,_pattern1_common:1===e.pattern,_pattern1_item5:1===e.pattern,_pattern3_common:3===e.pattern,_pattern3_item5:3===e.pattern}])},null,2),createElementVNode("div",{class:normalizeClass(["_item_common _item6",{_color_primary:!e.white,_color_white:e.white,_pattern1_common:1===e.pattern,_pattern1_item6:1===e.pattern,_pattern3_common:3===e.pattern,_pattern3_item6:3===e.pattern}])},null,2),createElementVNode("div",{class:normalizeClass(["_item_common _item7",{_color_primary:!e.white,_color_white:e.white,_pattern1_common:1===e.pattern,_pattern1_item7:1===e.pattern,_pattern3_common:3===e.pattern,_pattern3_item7:3===e.pattern}])},null,2),createElementVNode("div",{class:normalizeClass(["_item_common _item8",{_color_primary:!e.white,_color_white:e.white,_pattern1_common:1===e.pattern,_pattern1_item8:1===e.pattern,_pattern3_common:3===e.pattern,_pattern3_item8:3===e.pattern}])},null,2)],2))}),CCSpinner_vue_vue_type_style_index_0_scoped_0741fb7d_lang="",CCSpinner=_export_sfc(_sfc_main$e,[["__scopeId","data-v-0741fb7d"]]);function getType(e){return Object.prototype.toString.call(e).slice(8,-1)}function isArray(e){return"Array"===getType(e)}function isPlainObject$1(e){if("Object"!==getType(e))return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function assignProp(e,t,n,o,a){const r={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";"enumerable"===r&&(e[t]=n),a&&"nonenumerable"===r&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function copy$1(e,t={}){if(isArray(e))return e.map((e=>copy$1(e,t)));if(!isPlainObject$1(e))return e;return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce(((n,o)=>{if(isArray(t.props)&&!t.props.includes(o))return n;return assignProp(n,o,copy$1(e[o],t),e,t.nonenumerable),n}),{})}const MAX_RENDERED_AMOUNT=500,isTouchEvent=e=>["touchstart","touchmove","touchend"].includes(e.type),easing=e=>-(Math.pow(e-1,4)-1),getVisibleOptions=(e,t)=>{const n=t-250<0?0:t-250,o=n+500>e.length?e.length:n+500;return{options:e.slice(n,o),start:Math.floor(n)}},calculateVelocity=(e,t)=>{let n;if(1===e.length)n=0;else{const o=e[e.length-2][1],a=e[e.length-1][1];n=(e[e.length-2][0]-e[e.length-1][0])/t*1e3/(a-o);const r=n>0?1:-1;n=Math.abs(n)>30?30*r:n}return n},wheelDebounce=(e,t,n)=>{let o;return a=>{clearTimeout(o),e(a),o=setTimeout((()=>t()),n)}},_hoisted_1$c=["slotKey"],_hoisted_2$9={class:"picker_wrapper"},_hoisted_3$5=["data-index"],optionPadding=30,_sfc_main$d=defineComponent({__name:"CCWheelPicker",props:{options:{type:Array,default:()=>[]},align:{type:String,default:"center"},selectedBorderRadius:{type:Array,default:["100px","100px","100px","100px"]},modelValue:{type:Object,default:null},radius:{type:Number,default:100},perspective:{type:Number,default:200},itemHeight:{type:Number,default:40},sensitivity:{type:Number,default:8,validator:function(e){return e>0&&e<=10}},slotKey:{type:String,default:()=>{let e="abcdefghijklmnopqrstuvwxyz0123456789",t="";for(let n=0;n<8;n++)t+=e[Math.floor(36*Math.random())];return t}},single:{type:Boolean,default:!0},visibleOptionsAmount:{type:Number,default:8,validator:function(e){return e%2==0}},type:{type:String,default:"normal",validator:function(e){return["normal","infinite"].includes(e)}},style:{type:Object,default:()=>({})},arrows:{type:Boolean,default:!1},addClassConditions:{type:Array,default:()=>[]}},emits:["update:modelValue","earlyUpdate"],setup(e,{emit:t}){useCssVars((e=>({"4be89329":unref(A),"1619d922":z,"04825b7a":F,d59f2fb0:unref(r)})));const n=e,o=ref(n.modelValue?n.options.findIndex((e=>{var t;return e.value===(null==(t=null==n?void 0:n.modelValue)?void 0:t.value)})):0),a=ref("number"==typeof o.value&&o.value>-1?o.value:0),r=n.selectedBorderRadius.join(" ");const i=function(){let e="abcdefghijklmnopqrstuvwxyz0123456789",t="";for(let n=0;n<8;n++)t+=e[Math.floor(36*Math.random())];return t}(),l=t;watch(a,(()=>{n.options[a.value]&&l("update:modelValue",n.options[a.value])}));const s=getVisibleOptions(n.options,a.value),u=ref({transform:`transform: translate3d(0, 0, ${-1*n.radius}px) rotateX(0deg)`}),c=ref({transform:"translate3d(0, 0, 0)"}),d=ref(s),p=ref(s.options),h=ref(s.start),f=ref(a.value),v=ref(10),m=ref(0),g=ref(!1),_=ref({startY:0,yArr:[],touchScroll:0,delta:0}),b=computed((()=>wheelDebounce(N,L,100))),y=computed((()=>185/n.visibleOptionsAmount));onMounted((()=>{document.addEventListener("mousedown",M),document.addEventListener("mouseup",D),P(a.value)}));const w=toRef(n,"modelValue");function C(e){if(Math.abs(e-f.value)>n.visibleOptionsAmount/2){const t=getVisibleOptions(d.value.options,e);p.value=t.options,h.value=t.start,f.value=a.value}a.value=e}function S(e){_.value.startY=e,_.value.yArr=[[e,(new Date).getTime()]],_.value.touchScroll=a.value,R()}function k(e){_.value.yArr.push([e,(new Date).getTime()]);let t=(_.value.startY-e)/n.itemHeight+a.value;if("normal"===n.type){if(t<0)t=g.value?Math.max(-1.5,.05*t):.3*t;else if(t>d.value.options.length){const e=t-d.value.options.length;t=d.value.options.length+(g?Math.min(1.5,.05*e):.3*e)}}else t=B(t);_.value.touchScroll=P(t)}function x(){const e=calculateVelocity(_.value.yArr,n.itemHeight);C(_.value.touchScroll),function(e){var t,o,r;let i,l,s,u,c;"normal"===n.type?a.value<0||a.value>d.value.options.length-1?(u=v.value,i=a.value,l=a.value<0?0:d.value.options.length-1,s=i-l,c=Math.sqrt(Math.abs(s/u)),null==(t=I(i,l,c))||t.then((()=>{O(a.value)}))):(i=a.value,u=e>0?-n.sensitivity:n.sensitivity,c=Math.abs(e/u),s=e*c+u*c*c/2,l=Math.round(a.value+s),l=l<0?0:l>d.value.options.length-1?d.value.options.length-1:l,s=l-i,c=Math.sqrt(Math.abs(s/u)),null==(o=I(a.value,l,c))||o.then((()=>O(a.value)))):(u=e>0?-n.sensitivity:n.sensitivity,c=Math.abs(e/u),s=e*c+u*c*c/2,l=Math.round(a.value+s),null==(r=I(a.value,l,c))||r.then((()=>O(a.value))))}(e)}function M(e){e.target&&e.target.addEventListener("touchmove",E),document.addEventListener("mousemove",E);const t=isTouchEvent(e)?e.touches[0].clientY:e.clientY;_.value.delta=0,S(t)}function T(e){var t,n;if(!(null==e?void 0:e.parentElement))throw new Error("これ以上parentElementが見当たりません");return(null==(n=null==(t=null==e?void 0:e.parentElement)?void 0:t.classList)?void 0:n.contains("picker"))?null==e?void 0:e.parentElement:T(null==e?void 0:e.parentElement)}function $(e){const t=T(e);return null==t?void 0:t.attributes.slotKey.value}function E(e){const t=e.target;if(!t.className.includes("picker"))return;if(t){if($(t)!==i)return}e.preventDefault();k(isTouchEvent(e)?e.touches[0].clientY:e.clientY)}function N(e){if(e.preventDefault(),g.value)_.value.delta-=e.deltaY,k(_.value.startY+_.value.delta);else{g.value=!0;const t=e.clientY;_.value.delta=e.deltaY,S(t)}}function L(){x(),g.value=!1}function D(e){e.target&&e.target.removeEventListener("touchmove",E),document.removeEventListener("mousemove",E),x()}function B(e){let t=e;for(;t<0;)t+=d.value.options.length;return t%=d.value.options.length,t}watch(w,(e=>{if((null==e?void 0:e.value)===o.value)return;if(!(null==e?void 0:e.value))return;const t=(null==e?void 0:e.value)?d.value.options.findIndex((t=>t.value===(null==e?void 0:e.value))):0;o.value=null==e?void 0:e.value,a.value!==t&&(a.value=t),I(a.value,t)}),{deep:!0});const q=ref(null);function P(e){return"infinite"===n.type&&C(B(e)),d.value.options.length?(u.value.transform=`translate3d(0, 0, ${-1*n.radius}px) rotateX(${y.value*(e-h.value)}deg)`,c.value.transform=`translate3d(0, ${-(e-h.value)*n.itemHeight}px, 0)`,p.value=p.value.map(((t,o)=>(t.visibility=Math.abs(h.value+o-e)<=n.visibleOptionsAmount/2,t))),e-Math.round(e)<.9&&null!==q.value&&Math.abs(q.value-Math.round(e))<1&&l("earlyUpdate",n.options[Math.round(e)]),q.value=e,e):0}const A=n.align;function I(e,t,n=null){if(t>d.value.options.length-1||t<0)return;if(null===n&&(n=.125*Math.abs(t-e)),e===t||0===n)return void P(e);const o=(new Date).getTime()/1e3;let a=0;const r=t-e;return new Promise((t=>{const i=()=>{a=(new Date).getTime()/1e3-o,a<n?(C(P(e+easing(a/n)*r)),m.value=requestAnimationFrame(i)):(t(),R(),C(P(e+r)))};i()}))}function R(){cancelAnimationFrame(m.value)}function O(e){(e=0|B(e))>d.value.options.length-1&&P(e=d.value.options.length-1),P(e),a.value=e,o.value=d[e]}function V(e,t,n=null){var o;null==(o=I(e,t,n))||o.then((()=>O(a.value)))}const z="calc(100% - 30px)",F="0 15px";return(t,o)=>(openBlock(),createElementBlock("div",{class:"picker",style:normalizeStyle({perspective:`${e.perspective}px`}),onMousedown:o[2]||(o[2]=e=>function(e){e.target&&e.target.addEventListener("touchmove",E),document.addEventListener("mousemove",E);const t=e.clientY;_.value.delta=0,S(t)}(e)),onMouseup:D,onTouchstart:o[3]||(o[3]=e=>function(e){e.target&&e.target.addEventListener("touchmove",E),document.addEventListener("mousemove",E);const t=e.touches[0].clientY;_.value.delta=0,S(t)}(e)),onTouchend:D,onWheel:o[4]||(o[4]=(...e)=>b.value&&b.value(...e)),onKeyup:[o[5]||(o[5]=withKeys((e=>V(a.value,a.value-1)),["up"])),o[6]||(o[6]=withKeys((e=>V(a.value,a.value+1)),["down"]))],tabindex:"0",slotKey:unref(i)},[e.arrows?(openBlock(),createElementBlock("div",{key:0,class:"picker_arrow top",onClick:o[0]||(o[0]=e=>V(a.value,a.value-1))},[renderSlot(t.$slots,"arrow-top",{},void 0,!0)])):createCommentVNode("",!0),createElementVNode("div",_hoisted_2$9,[createElementVNode("ul",{class:"picker_options",style:normalizeStyle(u.value)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(p.value,((o,a)=>(openBlock(),createElementBlock("li",{key:o.value,class:"picker_option",style:normalizeStyle({top:-.5*e.itemHeight+"px",height:`${e.itemHeight}px`,"line-height":`${e.itemHeight}px`,transform:`rotateX(${0-y.value*a}deg) translate3d(0, 0, ${e.radius}px)`,visibility:o.visibility?"visible":"hidden"}),"data-index":a},[n.addClassConditions.includes(String(o.value))?renderSlot(t.$slots,"before-option",{key:0},void 0,!0):createCommentVNode("",!0),renderSlot(t.$slots,"option",mergeProps({ref_for:!0},o),(()=>[createTextVNode(toDisplayString(o.label),1)]),!0),n.addClassConditions.includes(String(o.value))?renderSlot(t.$slots,"after-option",{key:1},void 0,!0):createCommentVNode("",!0)],12,_hoisted_3$5)))),128))],4),createElementVNode("div",{class:"picker_chosen",style:normalizeStyle({height:`${e.itemHeight}px`,"line-height":`${e.itemHeight}px`})},[createElementVNode("ul",{class:"picker_chosen_list",style:normalizeStyle(c.value)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(p.value,((o,a)=>(openBlock(),createElementBlock("li",{key:a,class:"picker_chosen_item",style:normalizeStyle(`height: ${e.itemHeight}px`)},[n.addClassConditions.includes(String(o.value))?renderSlot(t.$slots,"before-option",{key:0},void 0,!0):createCommentVNode("",!0),renderSlot(t.$slots,"option",mergeProps({ref_for:!0},o),(()=>[createTextVNode(toDisplayString(o.label),1)]),!0),n.addClassConditions.includes(String(o.value))?renderSlot(t.$slots,"after-option",{key:1},void 0,!0):createCommentVNode("",!0)],4)))),128))],4)],4)]),e.arrows?(openBlock(),createElementBlock("div",{key:1,class:"picker_arrow bottom",onClick:o[1]||(o[1]=e=>V(a.value,a.value+1))},[renderSlot(t.$slots,"arrow-bottom",{},void 0,!0)])):createCommentVNode("",!0)],44,_hoisted_1$c))}}),CCWheelPicker_vue_vue_type_style_index_0_scoped_c40787ce_lang="",CCWheelPicker=_export_sfc(_sfc_main$d,[["__scopeId","data-v-c40787ce"]]),date$1=new Date,year$1=date$1.getFullYear(),dateFormats=[{label:"yyyy",startOffset:year$1-100,upperNumber:year$1+100,requiredDigit:!1,numberOptions:!0},{label:"yy",startOffset:0,upperNumber:99,requiredDigit:!0,numberOptions:!0},{label:"dd",startOffset:1,upperNumber:31,requiredDigit:!0,numberOptions:!0},{label:"d",startOffset:1,upperNumber:31,requiredDigit:!1,numberOptions:!0},{label:"mm",startOffset:1,upperNumber:12,requiredDigit:!0,numberOptions:!0},{label:"m",startOffset:1,upperNumber:12,requiredDigit:!1,numberOptions:!0},{label:"h",startOffset:0,upperNumber:11,requiredDigit:!1,numberOptions:!0},{label:"hh",startOffset:0,upperNumber:11,requiredDigit:!0,numberOptions:!0},{label:"HH",startOffset:0,upperNumber:23,requiredDigit:!0,numberOptions:!0},{label:"H",startOffset:0,upperNumber:23,requiredDigit:!1,numberOptions:!0},{label:"MM",startOffset:0,upperNumber:59,requiredDigit:!0,numberOptions:!0},{label:"M",startOffset:0,upperNumber:59,requiredDigit:!1,numberOptions:!0},{label:"ss",startOffset:0,upperNumber:59,requiredDigit:!0,numberOptions:!0},{label:"s",startOffset:0,upperNumber:59,requiredDigit:!1,numberOptions:!0}];function isLeapYear(e){return e%4==0&&e%100!=0||e%400==0}function getEachSlotFormat(e){const t=/\{(.*?)\}/g;let n;const o=[];for(;null!==(n=t.exec(e));)o.push(n[1]);return e.split(t).map((e=>o.includes(e)?{format:e,subscript:!1}:{format:e,subscript:!0})).filter((e=>""!==e.format))}function createEachOptions(e,t){const n=[],o=t.find((t=>e.includes(t.label)));if(o){if(!1===o.numberOptions)return o.options;for(let t=o.startOffset;t<=o.upperNumber;t++){const a=!0===o.requiredDigit&&t<10?`0${t}`:`${t}`;n.push({label:e.replace(o.label,a),value:e.replace(o.label,a)})}return n}return n}const _hoisted_1$b={class:"_datePicker"},_sfc_main$c=defineComponent({__name:"CCWheelMultiPicker",props:{modelValue:{type:String},format:{type:String,default:"{yyyy年}-{mm月}-{dd日} {HH}{MM}"},mode:{type:String,default:"normal"},formats:{type:Array,default:()=>[]},isInitialReflect:{type:Boolean,default:!0},initialValue:{type:Object,default:()=>[]}},emits:["update:modelValue","earlyUpdate"],setup(e,{emit:t}){useCssVars((e=>({a98e214c:s.value})));const n=e,o=t,a=computed((()=>getEachSlotFormat(n.format))),r=ref(l(n.initialValue,a.value));onMounted((()=>{n.isInitialReflect&&(r.value=l(n.initialValue,a.value))}));const i="date"==n.mode?dateFormats:n.formats;function l(e,t){return t.map((t=>{const n=e.reduce(((e,t)=>e.replaceAll(t.label,String(t.value))),t.format);return{value:n,label:n}}))}watch(r,((e,t)=>{const r=[...e].map((e=>{var t;return"string"==typeof(null==e?void 0:e.value)||"number"==typeof(null==e?void 0:e.value)?(null==e?void 0:e.value)||"":(null==(t=null==e?void 0:e.value)?void 0:t.value)||""}));if(r.includes(""))return;const i=r.reduce(((e,t,n)=>a.value[n].subscript||"number"==typeof e?e:e.replaceAll(a.value[n].format,t?String(t):"-")),n.format);o("update:modelValue",String(i).replaceAll("{","").replaceAll("}",""))}),{deep:!0});const s=computed((()=>a.value.reduce(((e,t,n)=>{if(a.value.length-1===n||0==n)return e+"1fr ";if(t.subscript){return e+`${16*String(t.format).length}px `}return e+`${24*createEachOptions(t.format,i).map((e=>e.label.length)).reduce(((e,t)=>e>t?e:t),1)+20}px `}),""))),u=computed((()=>{var e;if("date"!==n.mode)return 0;const t=a.value.findIndex((e=>"yyyy"==e.format)),o=(null==(e=r.value[t])?void 0:e.value)||0;return Number(o)})),c=computed((()=>{var e;if("date"!==n.mode)return 0;const t=a.value.findIndex((e=>"mm"==e.format||"m"==e.format)),o=(null==(e=r.value[t])?void 0:e.value)||0;return Number(o)}));return(e,t)=>(openBlock(),createElementBlock("div",_hoisted_1$b,[(openBlock(!0),createElementBlock(Fragment,null,renderList(a.value,((e,t)=>{return openBlock(),createElementBlock("div",{class:"_flex",key:`slot_${t}`},[e.subscript?(openBlock(),createElementBlock("div",{key:1,class:"_subscript",style:normalizeStyle(0==t?"text-align:right;border-radius: 100px 0 0 100px;":t==a.value.length-1?"text-align:left;border-radius: 0 100px 100px 0;":"text-align:center;border-radius: 0 0 0 0;")},toDisplayString(e.format),5)):(openBlock(),createBlock(CCWheelPicker,{modelValue:r.value[t],"onUpdate:modelValue":e=>r.value[t]=e,options:"date"!==n.mode||"dd"!==e.format&&"d"!==e.format?unref(createEachOptions)(e.format,unref(i)):(l=unref(createEachOptions)(e.format,unref(i)),l.filter((e=>isLeapYear(u.value)&&2==c.value?Number(e.value)<=29:isLeapYear(u.value)||2!=c.value?4!=c.value&&6!=c.value&&9!=c.value&&11!=c.value||Number(e.value)<=30:Number(e.value)<=28))),onEarlyUpdate:e=>function(e,t){const i=copy$1([...r.value]);i[t]=e;const l=[...i].map((e=>{var t;return"string"==typeof(null==e?void 0:e.value)||"number"==typeof(null==e?void 0:e.value)?(null==e?void 0:e.value)||"":(null==(t=null==e?void 0:e.value)?void 0:t.value)||""}));if(l.includes(""))return;const s=l.reduce(((e,t,n)=>a.value[n].subscript||"number"==typeof e?e:e.replaceAll(a.value[n].format,t?String(t):"-")),n.format);o("earlyUpdate",String(s).replaceAll("{","").replaceAll("}",""))}(e,t),selectedBorderRadius:0==t?["100px","0","0","100px"]:t==a.value.length-1?["0","100px","100px","0"]:["0","0","0","0"],align:0==t?"right":t==a.value.length-1?"left":"center",single:!1,key:`slot_${t}_${"date"!==n.mode||"dd"!==e.format&&"d"!==e.format?"0":String(u.value)+String(c.value)}`,slotKey:`slot_${t}`},null,8,["modelValue","onUpdate:modelValue","options","onEarlyUpdate","selectedBorderRadius","align","slotKey"]))]);var l})),128))]))}}),CCWheelMultiPicker_vue_vue_type_style_index_0_scoped_91b8f2f3_lang="",CCWheelMultiPicker=_export_sfc(_sfc_main$c,[["__scopeId","data-v-91b8f2f3"]]);
/*!
  * vue-router v4.5.0
  * (c) 2024 Eduardo San Martin Morote
  * @license MIT
  */
var NavigationType,NavigationDirection,NavigationFailureType;!function(e){e.pop="pop",e.push="push"}(NavigationType||(NavigationType={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(NavigationDirection||(NavigationDirection={})),Symbol("production"!==process.env.NODE_ENV?"navigation failure":""),function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}(NavigationFailureType||(NavigationFailureType={})),Symbol("production"!==process.env.NODE_ENV?"router view location matched":""),Symbol("production"!==process.env.NODE_ENV?"router view depth":"");const routerKey=Symbol("production"!==process.env.NODE_ENV?"router":"");function useRouter(){return inject(routerKey)}Symbol("production"!==process.env.NODE_ENV?"route location":""),Symbol("production"!==process.env.NODE_ENV?"router view location":"");const _hoisted_1$a={class:"pankuzu"},_hoisted_2$8=["onClick"],_sfc_main$b=defineComponent({__name:"CCPankuzu",props:{items:{}},setup(e){const t=useRouter();return(e,n)=>(openBlock(),createElementBlock("div",_hoisted_1$a,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.items,(n=>(openBlock(),createElementBlock("div",{key:n.text,class:"item"},[createElementVNode("div",{onClick:e=>{var o;(o=n.path)&&t.push(o)},class:"pointer"},toDisplayString(n.text),9,_hoisted_2$8),n!==e.items[e.items.length-1]?(openBlock(),createBlock(unref(CCMDIcon),{key:0,name:"chevron_right"})):createCommentVNode("",!0)])))),128))]))}}),CCPankuzu_vue_vue_type_style_index_0_scoped_2bf8d69a_lang="",CCPankuzu=_export_sfc(_sfc_main$b,[["__scopeId","data-v-2bf8d69a"]]),_hoisted_1$9={class:"main-header"},_hoisted_2$7={class:"logout-title"},_sfc_main$a=defineComponent({__name:"CCHeader",props:{items:{},userName:{}},emits:["logout"],setup(e,{emit:t}){const n=t,o=ref(!1),a=()=>{o.value=!o.value};function r(){n("logout")}return onMounted((()=>{document.addEventListener("click",(e=>{!e.target.closest("#menuPanel")&&o.value&&(o.value=!1)}))})),(e,t)=>(openBlock(),createElementBlock("header",_hoisted_1$9,[createVNode(unref(CCPankuzu),{items:e.items},null,8,["items"]),createElementVNode("div",{class:"header-right cursor-pointer",onClick:a,id:"menuPanel"},[createElementVNode("div",null,toDisplayString(e.userName),1),createVNode(unref(CCMDIcon),{name:"expand_more",class:normalizeClass(["arrow",{"arrow-rotate-move":o.value,"arrow-rotate-move-reverse":!o.value}])},null,8,["class"]),createVNode(Transition$1,{name:"logoutFade"},{default:withCtx((()=>[o.value?(openBlock(),createElementBlock("div",{key:0,id:"logoutPanel",class:"logout-panel",onClick:r},[createElementVNode("div",_hoisted_2$7,[createVNode(unref(CCMDIcon),{name:"directions_walk",class:"directions-walk-icon"}),t[0]||(t[0]=createTextVNode(" ログアウト "))])])):createCommentVNode("",!0)])),_:1})])]))}}),CCHeader_vue_vue_type_style_index_0_scoped_f77334d7_lang="",CCHeader=_export_sfc(_sfc_main$a,[["__scopeId","data-v-f77334d7"]]),_hoisted_1$8={class:"_button_container"},_sfc_main$9=defineComponent({__name:"CCButtonSet",props:{centerSpace:{type:String,default:"50px"},leftButtonLabel:{type:String,default:"label"},rightButtonLabel:{type:String,default:"label"},leftButtonOutline:{type:Boolean,default:!1},rightButtonOutline:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},square:{type:Boolean,default:!1},size:{type:String,default:"S"},leftButtonColor:{type:String,default:"primary"},rightButtonColor:{type:String,default:"primary"},leftButtonDisabled:{type:Boolean,default:!1},rightButtonDisabled:{type:Boolean,default:!1},leftButtonIconLeft:{type:String,default:""},leftButtonIconRight:{type:String,default:""},rightButtonIconLeft:{type:String,default:""},rightButtonIconRight:{type:String,default:""}},emits:["clickLeft","clickRight"],setup(e,{emit:t}){useCssVars((t=>({"129b325c":e.centerSpace})));const n=t;return(t,o)=>(openBlock(),createElementBlock("div",_hoisted_1$8,[createVNode(CCButton,{label:e.leftButtonLabel,outline:e.leftButtonOutline,rounded:e.rounded,square:e.square,size:e.size,color:e.leftButtonColor,disabled:e.leftButtonDisabled,iconLeft:e.leftButtonIconLeft,iconRight:e.leftButtonIconRight,onClick:o[0]||(o[0]=()=>n("clickLeft"))},null,8,["label","outline","rounded","square","size","color","disabled","iconLeft","iconRight"]),createVNode(CCButton,{label:e.rightButtonLabel,outline:e.rightButtonOutline,rounded:e.rounded,square:e.square,size:e.size,color:e.rightButtonColor,disabled:e.rightButtonDisabled,iconLeft:e.rightButtonIconLeft,iconRight:e.rightButtonIconRight,onClick:o[1]||(o[1]=()=>n("clickRight"))},null,8,["label","outline","rounded","square","size","color","disabled","iconLeft","iconRight"])]))}}),CCButtonSet_vue_vue_type_style_index_0_scoped_3bcd66d3_lang="",CCButtonSet=_export_sfc(_sfc_main$9,[["__scopeId","data-v-3bcd66d3"]]),_hoisted_1$7={class:"_slot_container"},_sfc_main$8=defineComponent({__name:"CCDialogConfirmation",props:{singleButton:{type:Boolean,default:!1},label:{type:String,default:"label"},leftButtonLabel:{type:String,default:"label"},rightButtonLabel:{type:String,default:"label"},outline:{type:Boolean,default:!1},leftButtonOutline:{type:Boolean,default:!1},rightButtonOutline:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},square:{type:Boolean,default:!1},size:{type:String,default:"S"},color:{type:String,default:"primary"},leftButtonColor:{type:String,default:"primary"},rightButtonColor:{type:String,default:"primary"},disabled:{type:Boolean,default:!1},leftButtonDisabled:{type:Boolean,default:!1},rightButtonDisabled:{type:Boolean,default:!1},iconRight:{type:String,default:""},iconLeft:{type:String,default:""},leftButtonIconLeft:{type:String,default:""},leftButtonIconRight:{type:String,default:""},rightButtonIconLeft:{type:String,default:""},rightButtonIconRight:{type:String,default:""}},emits:["click","clickLeft","clickRight"],setup(e,{emit:t}){const n=t;return(t,o)=>(openBlock(),createBlock(unref(CCModal),{loginPage:"",size:"s"},{default:withCtx((()=>[createElementVNode("div",_hoisted_1$7,[renderSlot(t.$slots,"default",{},void 0,!0)]),e.singleButton?(openBlock(),createBlock(unref(CCButton),{key:0,class:"_single_button",label:e.label,outline:e.outline,rounded:e.rounded,square:e.square,size:e.size,color:e.color,disabled:e.disabled,iconRight:e.iconRight,iconLeft:e.iconLeft,onClick:o[0]||(o[0]=()=>n("click"))},null,8,["label","outline","rounded","square","size","color","disabled","iconRight","iconLeft"])):(openBlock(),createBlock(unref(CCButtonSet),{key:1,class:"_double_button","center-space":"20px",leftButtonLabel:e.leftButtonLabel,rightButtonLabel:e.rightButtonLabel,leftButtonOutline:e.leftButtonOutline,rightButtonOutline:e.rightButtonOutline,rounded:e.rounded,square:e.square,size:e.size,leftButtonColor:e.leftButtonColor,rightButtonColor:e.rightButtonColor,leftButtonDisabled:e.leftButtonDisabled,rightButtonDisabled:e.rightButtonDisabled,leftButtonIconLeft:e.leftButtonIconLeft,leftButtonIconRight:e.leftButtonIconRight,rightButtonIconLeft:e.rightButtonIconLeft,rightButtonIconRight:e.rightButtonIconRight,onClickLeft:o[1]||(o[1]=()=>n("clickLeft")),onClickRight:o[2]||(o[2]=()=>n("clickRight"))},null,8,["leftButtonLabel","rightButtonLabel","leftButtonOutline","rightButtonOutline","rounded","square","size","leftButtonColor","rightButtonColor","leftButtonDisabled","rightButtonDisabled","leftButtonIconLeft","leftButtonIconRight","rightButtonIconLeft","rightButtonIconRight"]))])),_:3}))}}),CCDialogConfirmation_vue_vue_type_style_index_0_scoped_cb351d68_lang="",CCDialogConfirmation=_export_sfc(_sfc_main$8,[["__scopeId","data-v-cb351d68"]]),stringToByteArray$1$1=function(e){const t=[];let n=0;for(let o=0;o<e.length;o++){let a=e.charCodeAt(o);a<128?t[n++]=a:a<2048?(t[n++]=a>>6|192,t[n++]=63&a|128):55296==(64512&a)&&o+1<e.length&&56320==(64512&e.charCodeAt(o+1))?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++o)),t[n++]=a>>18|240,t[n++]=a>>12&63|128,t[n++]=a>>6&63|128,t[n++]=63&a|128):(t[n++]=a>>12|224,t[n++]=a>>6&63|128,t[n++]=63&a|128)}return t},byteArrayToString$1=function(e){const t=[];let n=0,o=0;for(;n<e.length;){const a=e[n++];if(a<128)t[o++]=String.fromCharCode(a);else if(a>191&&a<224){const r=e[n++];t[o++]=String.fromCharCode((31&a)<<6|63&r)}else if(a>239&&a<365){const r=((7&a)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[o++]=String.fromCharCode(55296+(r>>10)),t[o++]=String.fromCharCode(56320+(1023&r))}else{const r=e[n++],i=e[n++];t[o++]=String.fromCharCode((15&a)<<12|(63&r)<<6|63&i)}}return t.join("")},base64$1={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,o=[];for(let t=0;t<e.length;t+=3){const a=e[t],r=t+1<e.length,i=r?e[t+1]:0,l=t+2<e.length,s=l?e[t+2]:0,u=a>>2,c=(3&a)<<4|i>>4;let d=(15&i)<<2|s>>6,p=63&s;l||(p=64,r||(d=64)),o.push(n[u],n[c],n[d],n[p])}return o.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(stringToByteArray$1$1(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):byteArrayToString$1(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,o=[];for(let t=0;t<e.length;){const a=n[e.charAt(t++)],r=t<e.length?n[e.charAt(t)]:0;++t;const i=t<e.length?n[e.charAt(t)]:64;++t;const l=t<e.length?n[e.charAt(t)]:64;if(++t,null==a||null==r||null==i||null==l)throw new DecodeBase64StringError$1;const s=a<<2|r>>4;if(o.push(s),64!==i){const e=r<<4&240|i>>2;if(o.push(e),64!==l){const e=i<<6&192|l;o.push(e)}}}return o},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};let DecodeBase64StringError$1=class extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}};const base64Encode$1=function(e){const t=stringToByteArray$1$1(e);return base64$1.encodeByteArray(t,!0)},base64urlEncodeWithoutPadding$1=function(e){return base64Encode$1(e).replace(/\./g,"")};function isIndexedDBAvailable$1(){try{return"object"==typeof indexedDB}catch(e){return!1}}function validateIndexedDBOpenable$1(){return new Promise(((e,t)=>{try{let n=!0;const o="validate-browser-context-for-indexeddb-analytics-module",a=self.indexedDB.open(o);a.onsuccess=()=>{a.result.close(),n||self.indexedDB.deleteDatabase(o),e(!0)},a.onupgradeneeded=()=>{n=!1},a.onerror=()=>{var e;t((null===(e=a.error)||void 0===e?void 0:e.message)||"")}}catch(e){t(e)}}))}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const ERROR_NAME$1="FirebaseError";let FirebaseError$1=class e extends Error{constructor(t,n,o){super(n),this.code=t,this.customData=o,this.name=ERROR_NAME$1,Object.setPrototypeOf(this,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ErrorFactory$1.prototype.create)}},ErrorFactory$1=class{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){const n=t[0]||{},o=`${this.service}/${e}`,a=this.errors[e],r=a?replaceTemplate$1(a,n):"Error",i=`${this.serviceName}: ${r} (${o}).`;return new FirebaseError$1(o,i,n)}};function replaceTemplate$1(e,t){return e.replace(PATTERN$1,((e,n)=>{const o=t[n];return null!=o?String(o):`<${n}?>`}))}const PATTERN$1=/\{\$([^}]+)}/g;let Component$1=class{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}};
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var LogLevel$1;!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(LogLevel$1||(LogLevel$1={}));const levelStringToEnum$1={debug:LogLevel$1.DEBUG,verbose:LogLevel$1.VERBOSE,info:LogLevel$1.INFO,warn:LogLevel$1.WARN,error:LogLevel$1.ERROR,silent:LogLevel$1.SILENT},defaultLogLevel$1=LogLevel$1.INFO,ConsoleMethod$1={[LogLevel$1.DEBUG]:"log",[LogLevel$1.VERBOSE]:"log",[LogLevel$1.INFO]:"info",[LogLevel$1.WARN]:"warn",[LogLevel$1.ERROR]:"error"},defaultLogHandler$1=(e,t,...n)=>{if(t<e.logLevel)return;const o=(new Date).toISOString(),a=ConsoleMethod$1[t];if(!a)throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`);console[a](`[${o}]  ${e.name}:`,...n)};let Logger$1=class{constructor(e){this.name=e,this._logLevel=defaultLogLevel$1,this._logHandler=defaultLogHandler$1,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in LogLevel$1))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?levelStringToEnum$1[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,LogLevel$1.DEBUG,...e),this._logHandler(this,LogLevel$1.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,LogLevel$1.VERBOSE,...e),this._logHandler(this,LogLevel$1.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,LogLevel$1.INFO,...e),this._logHandler(this,LogLevel$1.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,LogLevel$1.WARN,...e),this._logHandler(this,LogLevel$1.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,LogLevel$1.ERROR,...e),this._logHandler(this,LogLevel$1.ERROR,...e)}};const instanceOfAny=(e,t)=>t.some((t=>e instanceof t));let idbProxyableTypes,cursorAdvanceMethods;function getIdbProxyableTypes(){return idbProxyableTypes||(idbProxyableTypes=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function getCursorAdvanceMethods(){return cursorAdvanceMethods||(cursorAdvanceMethods=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const cursorRequestMap=new WeakMap,transactionDoneMap=new WeakMap,transactionStoreNamesMap=new WeakMap,transformCache=new WeakMap,reverseTransformCache=new WeakMap;function promisifyRequest(e){const t=new Promise(((t,n)=>{const o=()=>{e.removeEventListener("success",a),e.removeEventListener("error",r)},a=()=>{t(wrap(e.result)),o()},r=()=>{n(e.error),o()};e.addEventListener("success",a),e.addEventListener("error",r)}));return t.then((t=>{t instanceof IDBCursor&&cursorRequestMap.set(t,e)})).catch((()=>{})),reverseTransformCache.set(t,e),t}function cacheDonePromiseForTransaction(e){if(transactionDoneMap.has(e))return;const t=new Promise(((t,n)=>{const o=()=>{e.removeEventListener("complete",a),e.removeEventListener("error",r),e.removeEventListener("abort",r)},a=()=>{t(),o()},r=()=>{n(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",a),e.addEventListener("error",r),e.addEventListener("abort",r)}));transactionDoneMap.set(e,t)}let idbProxyTraps={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return transactionDoneMap.get(e);if("objectStoreNames"===t)return e.objectStoreNames||transactionStoreNamesMap.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return wrap(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function replaceTraps(e){idbProxyTraps=e(idbProxyTraps)}function wrapFunction(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?getCursorAdvanceMethods().includes(e)?function(...t){return e.apply(unwrap(this),t),wrap(cursorRequestMap.get(this))}:function(...t){return wrap(e.apply(unwrap(this),t))}:function(t,...n){const o=e.call(unwrap(this),t,...n);return transactionStoreNamesMap.set(o,t.sort?t.sort():[t]),wrap(o)}}function transformCachableValue(e){return"function"==typeof e?wrapFunction(e):(e instanceof IDBTransaction&&cacheDonePromiseForTransaction(e),instanceOfAny(e,getIdbProxyableTypes())?new Proxy(e,idbProxyTraps):e)}function wrap(e){if(e instanceof IDBRequest)return promisifyRequest(e);if(transformCache.has(e))return transformCache.get(e);const t=transformCachableValue(e);return t!==e&&(transformCache.set(e,t),reverseTransformCache.set(t,e)),t}const unwrap=e=>reverseTransformCache.get(e);function openDB(e,t,{blocked:n,upgrade:o,blocking:a,terminated:r}={}){const i=indexedDB.open(e,t),l=wrap(i);return o&&i.addEventListener("upgradeneeded",(e=>{o(wrap(i.result),e.oldVersion,e.newVersion,wrap(i.transaction),e)})),n&&i.addEventListener("blocked",(e=>n(e.oldVersion,e.newVersion,e))),l.then((e=>{r&&e.addEventListener("close",(()=>r())),a&&e.addEventListener("versionchange",(e=>a(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),l}const readMethods=["get","getKey","getAll","getAllKeys","count"],writeMethods=["put","add","delete","clear"],cachedMethods=new Map;function getMethod(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(cachedMethods.get(t))return cachedMethods.get(t);const n=t.replace(/FromIndex$/,""),o=t!==n,a=writeMethods.includes(n);if(!(n in(o?IDBIndex:IDBObjectStore).prototype)||!a&&!readMethods.includes(n))return;const r=async function(e,...t){const r=this.transaction(e,a?"readwrite":"readonly");let i=r.store;return o&&(i=i.index(t.shift())),(await Promise.all([i[n](...t),a&&r.done]))[0]};return cachedMethods.set(t,r),r}replaceTraps((e=>({...e,get:(t,n,o)=>getMethod(t,n)||e.get(t,n,o),has:(t,n)=>!!getMethod(t,n)||e.has(t,n)})));
/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
let PlatformLoggerServiceImpl$1=class{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map((e=>{if(isVersionServiceProvider$1(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null})).filter((e=>e)).join(" ")}};function isVersionServiceProvider$1(e){const t=e.getComponent();return"VERSION"===(null==t?void 0:t.type)}const name$o$1="@firebase/app",version$1$1="0.9.13",logger$1=new Logger$1("@firebase/app"),name$n$1="@firebase/app-compat",name$m$1="@firebase/analytics-compat",name$l$1="@firebase/analytics",name$k$1="@firebase/app-check-compat",name$j$1="@firebase/app-check",name$i$1="@firebase/auth",name$h$1="@firebase/auth-compat",name$g$1="@firebase/database",name$f$1="@firebase/database-compat",name$e$1="@firebase/functions",name$d$1="@firebase/functions-compat",name$c$1="@firebase/installations",name$b$1="@firebase/installations-compat",name$a$1="@firebase/messaging",name$9$1="@firebase/messaging-compat",name$8$1="@firebase/performance",name$7$1="@firebase/performance-compat",name$6$1="@firebase/remote-config",name$5$1="@firebase/remote-config-compat",name$4$1="@firebase/storage",name$3$1="@firebase/storage-compat",name$2$1="@firebase/firestore",name$1$1="@firebase/firestore-compat",name$t="firebase",version$3="9.23.0",PLATFORM_LOG_STRING$1={[name$o$1]:"fire-core",[name$n$1]:"fire-core-compat",[name$l$1]:"fire-analytics",[name$m$1]:"fire-analytics-compat",[name$j$1]:"fire-app-check",[name$k$1]:"fire-app-check-compat",[name$i$1]:"fire-auth",[name$h$1]:"fire-auth-compat",[name$g$1]:"fire-rtdb",[name$f$1]:"fire-rtdb-compat",[name$e$1]:"fire-fn",[name$d$1]:"fire-fn-compat",[name$c$1]:"fire-iid",[name$b$1]:"fire-iid-compat",[name$a$1]:"fire-fcm",[name$9$1]:"fire-fcm-compat",[name$8$1]:"fire-perf",[name$7$1]:"fire-perf-compat",[name$6$1]:"fire-rc",[name$5$1]:"fire-rc-compat",[name$4$1]:"fire-gcs",[name$3$1]:"fire-gcs-compat",[name$2$1]:"fire-fst",[name$1$1]:"fire-fst-compat","fire-js":"fire-js",[name$t]:"fire-js-all"},_apps$1=new Map,_components$1=new Map;function _addComponent$1(e,t){try{e.container.addComponent(t)}catch(n){logger$1.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function _registerComponent$1(e){const t=e.name;if(_components$1.has(t))return logger$1.debug(`There were multiple attempts to register component ${t}.`),!1;_components$1.set(t,e);for(const t of _apps$1.values())_addComponent$1(t,e);return!0}
/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const ERRORS$1={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."},ERROR_FACTORY$1=new ErrorFactory$1("app","Firebase",ERRORS$1),SDK_VERSION$1="9.23.0";function registerVersion$1(e,t,n){var o;let a=null!==(o=PLATFORM_LOG_STRING$1[e])&&void 0!==o?o:e;n&&(a+=`-${n}`);const r=a.match(/\s|\//),i=t.match(/\s|\//);if(r||i){const e=[`Unable to register library "${a}" with version "${t}":`];return r&&e.push(`library name "${a}" contains illegal characters (whitespace or "/")`),r&&i&&e.push("and"),i&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void logger$1.warn(e.join(" "))}_registerComponent$1(new Component$1(`${a}-version`,(()=>({library:a,version:t})),"VERSION"))}
/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const DB_NAME$1="firebase-heartbeat-database",DB_VERSION$1=1,STORE_NAME$1="firebase-heartbeat-store";let dbPromise$1=null;function getDbPromise$1(){return dbPromise$1||(dbPromise$1=openDB(DB_NAME$1,1,{upgrade:(e,t)=>{if(0===t)e.createObjectStore(STORE_NAME$1)}}).catch((e=>{throw ERROR_FACTORY$1.create("idb-open",{originalErrorMessage:e.message})}))),dbPromise$1}async function readHeartbeatsFromIndexedDB$1(e){try{const t=await getDbPromise$1();return await t.transaction(STORE_NAME$1).objectStore(STORE_NAME$1).get(computeKey$1(e))}catch(e){if(e instanceof FirebaseError$1)logger$1.warn(e.message);else{const t=ERROR_FACTORY$1.create("idb-get",{originalErrorMessage:null==e?void 0:e.message});logger$1.warn(t.message)}}}async function writeHeartbeatsToIndexedDB$1(e,t){try{const n=(await getDbPromise$1()).transaction(STORE_NAME$1,"readwrite"),o=n.objectStore(STORE_NAME$1);await o.put(t,computeKey$1(e)),await n.done}catch(e){if(e instanceof FirebaseError$1)logger$1.warn(e.message);else{const t=ERROR_FACTORY$1.create("idb-set",{originalErrorMessage:null==e?void 0:e.message});logger$1.warn(t.message)}}}function computeKey$1(e){return`${e.name}!${e.options.appId}`}
/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const MAX_HEADER_BYTES$1=1024,STORED_HEARTBEAT_RETENTION_MAX_MILLIS$1=2592e6;let HeartbeatServiceImpl$1=class{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new HeartbeatStorageImpl$1(t),this._heartbeatsCachePromise=this._storage.read().then((e=>(this._heartbeatsCache=e,e)))}async triggerHeartbeat(){const e=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),t=getUTCDateString$1();if(null===this._heartbeatsCache&&(this._heartbeatsCache=await this._heartbeatsCachePromise),this._heartbeatsCache.lastSentHeartbeatDate!==t&&!this._heartbeatsCache.heartbeats.some((e=>e.date===t)))return this._heartbeatsCache.heartbeats.push({date:t,agent:e}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter((e=>{const t=new Date(e.date).valueOf();return Date.now()-t<=2592e6})),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null===this._heartbeatsCache||0===this._heartbeatsCache.heartbeats.length)return"";const e=getUTCDateString$1(),{heartbeatsToSend:t,unsentEntries:n}=extractHeartbeatsForHeader$1(this._heartbeatsCache.heartbeats),o=base64urlEncodeWithoutPadding$1(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),o}};function getUTCDateString$1(){return(new Date).toISOString().substring(0,10)}function extractHeartbeatsForHeader$1(e,t=1024){const n=[];let o=e.slice();for(const a of e){const e=n.find((e=>e.agent===a.agent));if(e){if(e.dates.push(a.date),countBytes$1(n)>t){e.dates.pop();break}}else if(n.push({agent:a.agent,dates:[a.date]}),countBytes$1(n)>t){n.pop();break}o=o.slice(1)}return{heartbeatsToSend:n,unsentEntries:o}}let HeartbeatStorageImpl$1=class{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!isIndexedDBAvailable$1()&&validateIndexedDBOpenable$1().then((()=>!0)).catch((()=>!1))}async read(){if(await this._canUseIndexedDBPromise){return await readHeartbeatsFromIndexedDB$1(this.app)||{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return writeHeartbeatsToIndexedDB$1(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return writeHeartbeatsToIndexedDB$1(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}};function countBytes$1(e){return base64urlEncodeWithoutPadding$1(JSON.stringify({version:2,heartbeats:e})).length}
/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function registerCoreComponents$1(e){_registerComponent$1(new Component$1("platform-logger",(e=>new PlatformLoggerServiceImpl$1(e)),"PRIVATE")),_registerComponent$1(new Component$1("heartbeat",(e=>new HeartbeatServiceImpl$1(e)),"PRIVATE")),registerVersion$1(name$o$1,"0.9.13",e),registerVersion$1(name$o$1,"0.9.13","esm2017"),registerVersion$1("fire-js","")}registerCoreComponents$1("");var k$1,commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},goog=goog||{},l=commonjsGlobal||self;function aa(e){var t=typeof e;return"array"==(t="object"!=t?t:e?Array.isArray(e)?"array":t:"null")||"object"==t&&"number"==typeof e.length}function p(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function ba(e){return Object.prototype.hasOwnProperty.call(e,ca)&&e[ca]||(e[ca]=++da)}var ca="closure_uid_"+(1e9*Math.random()>>>0),da=0;function ea(e,t,n){return e.call.apply(e.bind,arguments)}function fa(e,t,n){if(!e)throw Error();if(2<arguments.length){var o=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,o),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function q$1(e,t,n){return(q$1=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ea:fa).apply(null,arguments)}function ha(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}function r(e,t){function n(){}n.prototype=t.prototype,e.$=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.ac=function(e,n,o){for(var a=Array(arguments.length-2),r=2;r<arguments.length;r++)a[r-2]=arguments[r];return t.prototype[n].apply(e,a)}}function v(){this.s=this.s,this.o=this.o}var ia=0;v.prototype.s=!1,v.prototype.sa=function(){this.s||(this.s=!0,this.N(),0==ia)||ba(this)},v.prototype.N=function(){if(this.o)for(;this.o.length;)this.o.shift()()};const ka=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if("string"==typeof e)return"string"!=typeof t||1!=t.length?-1:e.indexOf(t,0);for(let n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return-1};function ma(e){const t=e.length;if(0<t){const n=Array(t);for(let o=0;o<t;o++)n[o]=e[o];return n}return[]}function na(e,t){for(let t=1;t<arguments.length;t++){const n=arguments[t];if(aa(n)){const t=e.length||0,o=n.length||0;e.length=t+o;for(let a=0;a<o;a++)e[t+a]=n[a]}else e.push(n)}}function w(e,t){this.type=e,this.g=this.target=t,this.defaultPrevented=!1}w.prototype.h=function(){this.defaultPrevented=!0};var oa=function(){if(!l.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{l.addEventListener("test",(()=>{}),t),l.removeEventListener("test",(()=>{}),t)}catch(e){}return e}();function x(e){return/^[\s\xa0]*$/.test(e)}function pa(){var e=l.navigator;return e&&(e=e.userAgent)?e:""}function y(e){return-1!=pa().indexOf(e)}function qa(e){return qa[" "](e),e}function ra(e,t){var n=sa;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}qa[" "]=function(){};var ta=y("Opera"),z$1=y("Trident")||y("MSIE"),ua=y("Edge"),va=ua||z$1,wa=y("Gecko")&&!(-1!=pa().toLowerCase().indexOf("webkit")&&!y("Edge"))&&!(y("Trident")||y("MSIE"))&&!y("Edge"),xa$1=-1!=pa().toLowerCase().indexOf("webkit")&&!y("Edge");function ya(){var e=l.document;return e?e.documentMode:void 0}e:{var Aa="",Ba=function(){var e=pa();return wa?/rv:([^\);]+)(\)|;)/.exec(e):ua?/Edge\/([\d\.]+)/.exec(e):z$1?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e):xa$1?/WebKit\/(\S+)/.exec(e):ta?/(?:Version)[ \/]?(\S+)/.exec(e):void 0}();if(Ba&&(Aa=Ba?Ba[1]:""),z$1){var Ca=ya();if(null!=Ca&&Ca>parseFloat(Aa))break e}}function A$1(e,t){if(w.call(this,e?e.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,e){var n=this.type=e.type,o=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.g=t,t=e.relatedTarget){if(wa){e:{try{qa(t.nodeName);var a=!0;break e}catch(e){}a=!1}a||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,o?(this.clientX=void 0!==o.clientX?o.clientX:o.pageX,this.clientY=void 0!==o.clientY?o.clientY:o.pageY,this.screenX=o.screenX||0,this.screenY=o.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"==typeof e.pointerType?e.pointerType:Ga[e.pointerType]||"",this.state=e.state,this.i=e,e.defaultPrevented&&A$1.$.h.call(this)}}l.document&&z$1&&ya(),r(A$1,w);var Ga={2:"touch",3:"pen",4:"mouse"};A$1.prototype.h=function(){A$1.$.h.call(this);var e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var Ha="closure_listenable_"+(1e6*Math.random()|0),Ia=0;function Ja(e,t,n,o,a){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!o,this.la=a,this.key=++Ia,this.fa=this.ia=!1}function Ka(e){e.fa=!0,e.listener=null,e.proxy=null,e.src=null,e.la=null}function Na(e,t,n){for(const o in e)t.call(n,e[o],o,e)}function Oa(e,t){for(const n in e)t.call(void 0,e[n],n,e)}function Pa(e){const t={};for(const n in e)t[n]=e[n];return t}const Qa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Ra(e,t){let n,o;for(let t=1;t<arguments.length;t++){for(n in o=arguments[t],o)e[n]=o[n];for(let t=0;t<Qa.length;t++)n=Qa[t],Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}}function Sa(e){this.src=e,this.g={},this.h=0}function Ua(e,t){var n=t.type;if(n in e.g){var o,a=e.g[n],r=ka(a,t);(o=0<=r)&&Array.prototype.splice.call(a,r,1),o&&(Ka(t),0==e.g[n].length&&(delete e.g[n],e.h--))}}function Ta(e,t,n,o){for(var a=0;a<e.length;++a){var r=e[a];if(!r.fa&&r.listener==t&&r.capture==!!n&&r.la==o)return a}return-1}Sa.prototype.add=function(e,t,n,o,a){var r=e.toString();(e=this.g[r])||(e=this.g[r]=[],this.h++);var i=Ta(e,t,o,a);return-1<i?(t=e[i],n||(t.ia=!1)):((t=new Ja(t,this.src,r,!!o,a)).ia=n,e.push(t)),t};var Va="closure_lm_"+(1e6*Math.random()|0),Wa={};function Ya(e,t,n,o,a){if(o&&o.once)return Za(e,t,n,o,a);if(Array.isArray(t)){for(var r=0;r<t.length;r++)Ya(e,t[r],n,o,a);return null}return n=$a(n),e&&e[Ha]?e.O(t,n,p(o)?!!o.capture:!!o,a):ab(e,t,n,!1,o,a)}function ab(e,t,n,o,a,r){if(!t)throw Error("Invalid event type");var i=p(a)?!!a.capture:!!a,l=bb(e);if(l||(e[Va]=l=new Sa(e)),(n=l.add(t,n,o,i,r)).proxy)return n;if(o=cb(),n.proxy=o,o.src=e,o.listener=n,e.addEventListener)oa||(a=i),void 0===a&&(a=!1),e.addEventListener(t.toString(),o,a);else if(e.attachEvent)e.attachEvent(db(t.toString()),o);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(o)}return n}function cb(){const e=eb;return function t(n){return e.call(t.src,t.listener,n)}}function Za(e,t,n,o,a){if(Array.isArray(t)){for(var r=0;r<t.length;r++)Za(e,t[r],n,o,a);return null}return n=$a(n),e&&e[Ha]?e.P(t,n,p(o)?!!o.capture:!!o,a):ab(e,t,n,!0,o,a)}function fb(e,t,n,o,a){if(Array.isArray(t))for(var r=0;r<t.length;r++)fb(e,t[r],n,o,a);else o=p(o)?!!o.capture:!!o,n=$a(n),e&&e[Ha]?(e=e.i,(t=String(t).toString())in e.g&&(-1<(n=Ta(r=e.g[t],n,o,a))&&(Ka(r[n]),Array.prototype.splice.call(r,n,1),0==r.length&&(delete e.g[t],e.h--)))):e&&(e=bb(e))&&(t=e.g[t.toString()],e=-1,t&&(e=Ta(t,n,o,a)),(n=-1<e?t[e]:null)&&gb(n))}function gb(e){if("number"!=typeof e&&e&&!e.fa){var t=e.src;if(t&&t[Ha])Ua(t.i,e);else{var n=e.type,o=e.proxy;t.removeEventListener?t.removeEventListener(n,o,e.capture):t.detachEvent?t.detachEvent(db(n),o):t.addListener&&t.removeListener&&t.removeListener(o),(n=bb(t))?(Ua(n,e),0==n.h&&(n.src=null,t[Va]=null)):Ka(e)}}}function db(e){return e in Wa?Wa[e]:Wa[e]="on"+e}function eb(e,t){if(e.fa)e=!0;else{t=new A$1(t,this);var n=e.listener,o=e.la||e.src;e.ia&&gb(e),e=n.call(o,t)}return e}function bb(e){return(e=e[Va])instanceof Sa?e:null}var hb="__closure_events_fn_"+(1e9*Math.random()>>>0);function $a(e){return"function"==typeof e?e:(e[hb]||(e[hb]=function(t){return e.handleEvent(t)}),e[hb])}function B$1(){v.call(this),this.i=new Sa(this),this.S=this,this.J=null}function C$1(e,t){var n,o=e.J;if(o)for(n=[];o;o=o.J)n.push(o);if(e=e.S,o=t.type||t,"string"==typeof t)t=new w(t,e);else if(t instanceof w)t.target=t.target||e;else{var a=t;Ra(t=new w(o,e),a)}if(a=!0,n)for(var r=n.length-1;0<=r;r--){var i=t.g=n[r];a=ib(i,o,!0,t)&&a}if(a=ib(i=t.g=e,o,!0,t)&&a,a=ib(i,o,!1,t)&&a,n)for(r=0;r<n.length;r++)a=ib(i=t.g=n[r],o,!1,t)&&a}function ib(e,t,n,o){if(!(t=e.i.g[String(t)]))return!0;t=t.concat();for(var a=!0,r=0;r<t.length;++r){var i=t[r];if(i&&!i.fa&&i.capture==n){var l=i.listener,s=i.la||i.src;i.ia&&Ua(e.i,i),a=!1!==l.call(s,o)&&a}}return a&&!o.defaultPrevented}r(B$1,v),B$1.prototype[Ha]=!0,B$1.prototype.removeEventListener=function(e,t,n,o){fb(this,e,t,n,o)},B$1.prototype.N=function(){if(B$1.$.N.call(this),this.i){var e,t=this.i;for(e in t.g){for(var n=t.g[e],o=0;o<n.length;o++)Ka(n[o]);delete t.g[e],t.h--}}this.J=null},B$1.prototype.O=function(e,t,n,o){return this.i.add(String(e),t,!1,n,o)},B$1.prototype.P=function(e,t,n,o){return this.i.add(String(e),t,!0,n,o)};var jb=l.JSON.stringify;class kb{constructor(e,t){this.i=e,this.j=t,this.h=0,this.g=null}get(){let e;return 0<this.h?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}function lb(){var e=mb;let t=null;return e.g&&(t=e.g,e.g=e.g.next,e.g||(e.h=null),t.next=null),t}class nb{constructor(){this.h=this.g=null}add(e,t){const n=ob.get();n.set(e,t),this.h?this.h.next=n:this.g=n,this.h=n}}var ob=new kb((()=>new pb),(e=>e.reset()));class pb{constructor(){this.next=this.g=this.h=null}set(e,t){this.h=e,this.g=t,this.next=null}reset(){this.next=this.g=this.h=null}}function qb(e){var t=1;e=e.split(":");const n=[];for(;0<t&&e.length;)n.push(e.shift()),t--;return e.length&&n.push(e.join(":")),n}function rb(e){l.setTimeout((()=>{throw e}),0)}let sb,tb=!1,mb=new nb,vb=()=>{const e=l.Promise.resolve(void 0);sb=()=>{e.then(ub)}};var ub=()=>{for(var e;e=lb();){try{e.h.call(e.g)}catch(e){rb(e)}var t=ob;t.j(e),100>t.h&&(t.h++,e.next=t.g,t.g=e)}tb=!1};function wb(e,t){B$1.call(this),this.h=e||1,this.g=t||l,this.j=q$1(this.qb,this),this.l=Date.now()}function xb(e){e.ga=!1,e.T&&(e.g.clearTimeout(e.T),e.T=null)}function yb(e,t,n){if("function"==typeof e)n&&(e=q$1(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=q$1(e.handleEvent,e)}return 2147483647<Number(t)?-1:l.setTimeout(e,t||0)}function zb(e){e.g=yb((()=>{e.g=null,e.i&&(e.i=!1,zb(e))}),e.j);const t=e.h;e.h=null,e.m.apply(null,t)}r(wb,B$1),(k$1=wb.prototype).ga=!1,k$1.T=null,k$1.qb=function(){if(this.ga){var e=Date.now()-this.l;0<e&&e<.8*this.h?this.T=this.g.setTimeout(this.j,this.h-e):(this.T&&(this.g.clearTimeout(this.T),this.T=null),C$1(this,"tick"),this.ga&&(xb(this),this.start()))}},k$1.start=function(){this.ga=!0,this.T||(this.T=this.g.setTimeout(this.j,this.h),this.l=Date.now())},k$1.N=function(){wb.$.N.call(this),xb(this),delete this.g};class Ab extends v{constructor(e,t){super(),this.m=e,this.j=t,this.h=null,this.i=!1,this.g=null}l(e){this.h=arguments,this.g?this.i=!0:zb(this)}N(){super.N(),this.g&&(l.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function Bb(e){v.call(this),this.h=e,this.g={}}r(Bb,v);var Cb=[];function Db(e,t,n,o){Array.isArray(n)||(n&&(Cb[0]=n.toString()),n=Cb);for(var a=0;a<n.length;a++){var r=Ya(t,n[a],o||e.handleEvent,!1,e.h||e);if(!r)break;e.g[r.key]=r}}function Fb(e){Na(e.g,(function(e,t){this.g.hasOwnProperty(t)&&gb(e)}),e),e.g={}}function Gb(){this.g=!0}function Hb(e,t,n,o,a,r){e.info((function(){if(e.g)if(r)for(var i="",l=r.split("&"),s=0;s<l.length;s++){var u=l[s].split("=");if(1<u.length){var c=u[0];u=u[1];var d=c.split("_");i=2<=d.length&&"type"==d[1]?i+(c+"=")+u+"&":i+(c+"=redacted&")}}else i=null;else i=r;return"XMLHTTP REQ ("+o+") [attempt "+a+"]: "+t+"\n"+n+"\n"+i}))}function Ib(e,t,n,o,a,r,i){e.info((function(){return"XMLHTTP RESP ("+o+") [ attempt "+a+"]: "+t+"\n"+n+"\n"+r+" "+i}))}function D$2(e,t,n,o){e.info((function(){return"XMLHTTP TEXT ("+t+"): "+Jb(e,n)+(o?" "+o:"")}))}function Kb(e,t){e.info((function(){return"TIMEOUT: "+t}))}function Jb(e,t){if(!e.g)return t;if(!t)return null;try{var n=JSON.parse(t);if(n)for(e=0;e<n.length;e++)if(Array.isArray(n[e])){var o=n[e];if(!(2>o.length)){var a=o[1];if(Array.isArray(a)&&!(1>a.length)){var r=a[0];if("noop"!=r&&"stop"!=r&&"close"!=r)for(var i=1;i<a.length;i++)a[i]=""}}}return jb(n)}catch(e){return t}}Bb.prototype.N=function(){Bb.$.N.call(this),Fb(this)},Bb.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},Gb.prototype.Ea=function(){this.g=!1},Gb.prototype.info=function(){};var E$1={},Lb=null;function Mb(){return Lb=Lb||new B$1}function Nb(e){w.call(this,E$1.Ta,e)}function Ob(e){const t=Mb();C$1(t,new Nb(t))}function Pb(e,t){w.call(this,E$1.STAT_EVENT,e),this.stat=t}function F$1(e){const t=Mb();C$1(t,new Pb(t,e))}function Qb(e,t){w.call(this,E$1.Ua,e),this.size=t}function Rb(e,t){if("function"!=typeof e)throw Error("Fn must not be null and must be a function");return l.setTimeout((function(){e()}),t)}E$1.Ta="serverreachability",r(Nb,w),E$1.STAT_EVENT="statevent",r(Pb,w),E$1.Ua="timingevent",r(Qb,w);var Sb={NO_ERROR:0,rb:1,Eb:2,Db:3,yb:4,Cb:5,Fb:6,Qa:7,TIMEOUT:8,Ib:9},Tb={wb:"complete",Sb:"success",Ra:"error",Qa:"abort",Kb:"ready",Lb:"readystatechange",TIMEOUT:"timeout",Gb:"incrementaldata",Jb:"progress",zb:"downloadprogress",$b:"uploadprogress"};function Ub(){}function Vb(e){return e.h||(e.h=e.i())}function Wb(){}Ub.prototype.h=null;var $b,Xb={OPEN:"a",vb:"b",Ra:"c",Hb:"d"};function Yb(){w.call(this,"d")}function Zb(){w.call(this,"c")}function ac(){}function bc(e,t,n,o){this.l=e,this.j=t,this.m=n,this.W=o||1,this.U=new Bb(this),this.P=cc,e=va?125:void 0,this.V=new wb(e),this.I=null,this.i=!1,this.s=this.A=this.v=this.L=this.G=this.Y=this.B=null,this.F=[],this.g=null,this.C=0,this.o=this.u=null,this.ca=-1,this.J=!1,this.O=0,this.M=null,this.ba=this.K=this.aa=this.S=!1,this.h=new dc}function dc(){this.i=null,this.g="",this.h=!1}r(Yb,w),r(Zb,w),r(ac,Ub),ac.prototype.g=function(){return new XMLHttpRequest},ac.prototype.i=function(){return{}},$b=new ac;var cc=45e3,ec={},fc={};function gc(e,t,n){e.L=1,e.v=hc(G$1(t)),e.s=n,e.S=!0,ic(e,null)}function ic(e,t){e.G=Date.now(),jc(e),e.A=G$1(e.v);var n=e.A,o=e.W;Array.isArray(o)||(o=[String(o)]),kc(n.i,"t",o),e.C=0,n=e.l.J,e.h=new dc,e.g=lc(e.l,n?t:null,!e.s),0<e.O&&(e.M=new Ab(q$1(e.Pa,e,e.g),e.O)),Db(e.U,e.g,"readystatechange",e.nb),t=e.I?Pa(e.I):{},e.s?(e.u||(e.u="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.g.ha(e.A,e.u,e.s,t)):(e.u="GET",e.g.ha(e.A,e.u,null,t)),Ob(),Hb(e.j,e.u,e.A,e.m,e.W,e.s)}function oc(e){return!!e.g&&("GET"==e.u&&2!=e.L&&e.l.Ha)}function rc(e,t,n){let o,a=!0;for(;!e.J&&e.C<n.length;){if(o=uc(e,n),o==fc){4==t&&(e.o=4,F$1(14),a=!1),D$2(e.j,e.m,null,"[Incomplete Response]");break}if(o==ec){e.o=4,F$1(15),D$2(e.j,e.m,n,"[Invalid Chunk]"),a=!1;break}D$2(e.j,e.m,o,null),qc(e,o)}oc(e)&&o!=fc&&o!=ec&&(e.h.g="",e.C=0),4!=t||0!=n.length||e.h.h||(e.o=1,F$1(16),a=!1),e.i=e.i&&a,a?0<n.length&&!e.ba&&(e.ba=!0,(t=e.l).g==e&&t.ca&&!t.M&&(t.l.info("Great, no buffering proxy detected. Bytes received: "+n.length),vc(t),t.M=!0,F$1(11))):(D$2(e.j,e.m,n,"[Invalid Chunked Response]"),I(e),pc(e))}function uc(e,t){var n=e.C,o=t.indexOf("\n",n);return-1==o?fc:(n=Number(t.substring(n,o)),isNaN(n)?ec:(o+=1)+n>t.length?fc:(t=t.slice(o,o+n),e.C=o+n,t))}function jc(e){e.Y=Date.now()+e.P,wc(e,e.P)}function wc(e,t){if(null!=e.B)throw Error("WatchDog timer not null");e.B=Rb(q$1(e.lb,e),t)}function nc(e){e.B&&(l.clearTimeout(e.B),e.B=null)}function pc(e){0==e.l.H||e.J||sc(e.l,e)}function I(e){nc(e);var t=e.M;t&&"function"==typeof t.sa&&t.sa(),e.M=null,xb(e.V),Fb(e.U),e.g&&(t=e.g,e.g=null,t.abort(),t.sa())}function qc(e,t){try{var n=e.l;if(0!=n.H&&(n.g==e||xc(n.i,e)))if(!e.K&&xc(n.i,e)&&3==n.H){try{var o=n.Ja.g.parse(t)}catch(e){o=null}if(Array.isArray(o)&&3==o.length){var a=o;if(0==a[0]){e:if(!n.u){if(n.g){if(!(n.g.G+3e3<e.G))break e;yc(n),zc(n)}Ac(n),F$1(18)}}else n.Fa=a[1],0<n.Fa-n.V&&37500>a[2]&&n.G&&0==n.A&&!n.v&&(n.v=Rb(q$1(n.ib,n),6e3));if(1>=Bc(n.i)&&n.oa){try{n.oa()}catch(e){}n.oa=void 0}}else J$1(n,11)}else if((e.K||n.g==e)&&yc(n),!x(t))for(a=n.Ja.g.parse(t),t=0;t<a.length;t++){let u=a[t];if(n.V=u[0],u=u[1],2==n.H)if("c"==u[0]){n.K=u[1],n.pa=u[2];const t=u[3];null!=t&&(n.ra=t,n.l.info("VER="+n.ra));const a=u[4];null!=a&&(n.Ga=a,n.l.info("SVER="+n.Ga));const c=u[5];null!=c&&"number"==typeof c&&0<c&&(o=1.5*c,n.L=o,n.l.info("backChannelRequestTimeoutMs_="+o)),o=n;const d=e.g;if(d){const e=d.g?d.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(e){var r=o.i;r.g||-1==e.indexOf("spdy")&&-1==e.indexOf("quic")&&-1==e.indexOf("h2")||(r.j=r.l,r.g=new Set,r.h&&(Cc(r,r.h),r.h=null))}if(o.F){const e=d.g?d.g.getResponseHeader("X-HTTP-Session-Id"):null;e&&(o.Da=e,K$1(o.I,o.F,e))}}n.H=3,n.h&&n.h.Ba(),n.ca&&(n.S=Date.now()-e.G,n.l.info("Handshake RTT: "+n.S+"ms"));var i=e;if((o=n).wa=Dc(o,o.J?o.pa:null,o.Y),i.K){Ec$1(o.i,i);var l=i,s=o.L;s&&l.setTimeout(s),l.B&&(nc(l),jc(l)),o.g=i}else Fc(o);0<n.j.length&&Gc(n)}else"stop"!=u[0]&&"close"!=u[0]||J$1(n,7);else 3==n.H&&("stop"==u[0]||"close"==u[0]?"stop"==u[0]?J$1(n,7):Hc(n):"noop"!=u[0]&&n.h&&n.h.Aa(u),n.A=0)}Ob(4)}catch(e){}}function Ic(e){if(e.Z&&"function"==typeof e.Z)return e.Z();if("undefined"!=typeof Map&&e instanceof Map||"undefined"!=typeof Set&&e instanceof Set)return Array.from(e.values());if("string"==typeof e)return e.split("");if(aa(e)){for(var t=[],n=e.length,o=0;o<n;o++)t.push(e[o]);return t}for(o in t=[],n=0,e)t[n++]=e[o];return t}function Jc(e){if(e.ta&&"function"==typeof e.ta)return e.ta();if(!e.Z||"function"!=typeof e.Z){if("undefined"!=typeof Map&&e instanceof Map)return Array.from(e.keys());if(!("undefined"!=typeof Set&&e instanceof Set)){if(aa(e)||"string"==typeof e){var t=[];e=e.length;for(var n=0;n<e;n++)t.push(n);return t}t=[],n=0;for(const o in e)t[n++]=o;return t}}}function Kc(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(aa(e)||"string"==typeof e)Array.prototype.forEach.call(e,t,void 0);else for(var n=Jc(e),o=Ic(e),a=o.length,r=0;r<a;r++)t.call(void 0,o[r],n&&n[r],e)}(k$1=bc.prototype).setTimeout=function(e){this.P=e},k$1.nb=function(e){e=e.target;const t=this.M;t&&3==H$1(e)?t.l():this.Pa(e)},k$1.Pa=function(e){try{if(e==this.g)e:{const d=H$1(this.g);var t=this.g.Ia();const p=this.g.da();if(!(3>d)&&(3!=d||va||this.g&&(this.h.h||this.g.ja()||mc(this.g)))){this.J||4!=d||7==t||Ob(8==t||0>=p?3:2),nc(this);var n=this.g.da();this.ca=n;t:if(oc(this)){var o=mc(this.g);e="";var a=o.length,r=4==H$1(this.g);if(!this.h.i){if("undefined"==typeof TextDecoder){I(this),pc(this);var i="";break t}this.h.i=new l.TextDecoder}for(t=0;t<a;t++)this.h.h=!0,e+=this.h.i.decode(o[t],{stream:r&&t==a-1});o.splice(0,a),this.h.g+=e,this.C=0,i=this.h.g}else i=this.g.ja();if(this.i=200==n,Ib(this.j,this.u,this.A,this.m,this.W,d,n),this.i){if(this.aa&&!this.K){t:{if(this.g){var s,u=this.g;if((s=u.g?u.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!x(s)){var c=s;break t}}c=null}if(!(n=c)){this.i=!1,this.o=3,F$1(12),I(this),pc(this);break e}D$2(this.j,this.m,n,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,qc(this,n)}this.S?(rc(this,d,i),va&&this.i&&3==d&&(Db(this.U,this.V,"tick",this.mb),this.V.start())):(D$2(this.j,this.m,i,null),qc(this,i)),4==d&&I(this),this.i&&!this.J&&(4==d?sc(this.l,this):(this.i=!1,jc(this)))}else tc(this.g),400==n&&0<i.indexOf("Unknown SID")?(this.o=3,F$1(12)):(this.o=0,F$1(13)),I(this),pc(this)}}}catch(e){}},k$1.mb=function(){if(this.g){var e=H$1(this.g),t=this.g.ja();this.C<t.length&&(nc(this),rc(this,e,t),this.i&&4!=e&&jc(this))}},k$1.cancel=function(){this.J=!0,I(this)},k$1.lb=function(){this.B=null;const e=Date.now();0<=e-this.Y?(Kb(this.j,this.A),2!=this.L&&(Ob(),F$1(17)),I(this),this.o=2,pc(this)):wc(this,this.Y-e)};var Lc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Mc(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var o=e[n].indexOf("="),a=null;if(0<=o){var r=e[n].substring(0,o);a=e[n].substring(o+1)}else r=e[n];t(r,a?decodeURIComponent(a.replace(/\+/g," ")):"")}}}function M(e){if(this.g=this.s=this.j="",this.m=null,this.o=this.l="",this.h=!1,e instanceof M){this.h=e.h,Nc(this,e.j),this.s=e.s,this.g=e.g,Oc(this,e.m),this.l=e.l;var t=e.i,n=new Pc;n.i=t.i,t.g&&(n.g=new Map(t.g),n.h=t.h),Qc(this,n),this.o=e.o}else e&&(t=String(e).match(Lc))?(this.h=!1,Nc(this,t[1]||"",!0),this.s=Rc(t[2]||""),this.g=Rc(t[3]||"",!0),Oc(this,t[4]),this.l=Rc(t[5]||"",!0),Qc(this,t[6]||"",!0),this.o=Rc(t[7]||"")):(this.h=!1,this.i=new Pc(null,this.h))}function G$1(e){return new M(e)}function Nc(e,t,n){e.j=n?Rc(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function Oc(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.m=t}else e.m=null}function Qc(e,t,n){t instanceof Pc?(e.i=t,Xc(e.i,e.h)):(n||(t=Sc(t,Yc)),e.i=new Pc(t,e.h))}function K$1(e,t,n){e.i.set(t,n)}function hc(e){return K$1(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),e}function Rc(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function Sc(e,t,n){return"string"==typeof e?(e=encodeURI(e).replace(t,Zc),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Zc(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}M.prototype.toString=function(){var e=[],t=this.j;t&&e.push(Sc(t,Tc$1,!0),":");var n=this.g;return(n||"file"==t)&&(e.push("//"),(t=this.s)&&e.push(Sc(t,Tc$1,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.m)&&e.push(":",String(n))),(n=this.l)&&(this.g&&"/"!=n.charAt(0)&&e.push("/"),e.push(Sc(n,"/"==n.charAt(0)?Uc:Vc,!0))),(n=this.i.toString())&&e.push("?",n),(n=this.o)&&e.push("#",Sc(n,Wc)),e.join("")};var Tc$1=/[#\/\?@]/g,Vc=/[#\?:]/g,Uc=/[#\?]/g,Yc=/[#\?@]/g,Wc=/#/g;function Pc(e,t){this.h=this.g=null,this.i=e||null,this.j=!!t}function N$1(e){e.g||(e.g=new Map,e.h=0,e.i&&Mc(e.i,(function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)})))}function $c(e,t){N$1(e),t=O$1(e,t),e.g.has(t)&&(e.i=null,e.h-=e.g.get(t).length,e.g.delete(t))}function ad(e,t){return N$1(e),t=O$1(e,t),e.g.has(t)}function kc(e,t,n){$c(e,t),0<n.length&&(e.i=null,e.g.set(O$1(e,t),ma(n)),e.h+=n.length)}function O$1(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}function Xc(e,t){t&&!e.j&&(N$1(e),e.i=null,e.g.forEach((function(e,t){var n=t.toLowerCase();t!=n&&($c(this,t),kc(this,n,e))}),e)),e.j=t}(k$1=Pc.prototype).add=function(e,t){N$1(this),this.i=null,e=O$1(this,e);var n=this.g.get(e);return n||this.g.set(e,n=[]),n.push(t),this.h+=1,this},k$1.forEach=function(e,t){N$1(this),this.g.forEach((function(n,o){n.forEach((function(n){e.call(t,n,o,this)}),this)}),this)},k$1.ta=function(){N$1(this);const e=Array.from(this.g.values()),t=Array.from(this.g.keys()),n=[];for(let o=0;o<t.length;o++){const a=e[o];for(let e=0;e<a.length;e++)n.push(t[o])}return n},k$1.Z=function(e){N$1(this);let t=[];if("string"==typeof e)ad(this,e)&&(t=t.concat(this.g.get(O$1(this,e))));else{e=Array.from(this.g.values());for(let n=0;n<e.length;n++)t=t.concat(e[n])}return t},k$1.set=function(e,t){return N$1(this),this.i=null,ad(this,e=O$1(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[t]),this.h+=1,this},k$1.get=function(e,t){return e&&0<(e=this.Z(e)).length?String(e[0]):t},k$1.toString=function(){if(this.i)return this.i;if(!this.g)return"";const e=[],t=Array.from(this.g.keys());for(var n=0;n<t.length;n++){var o=t[n];const r=encodeURIComponent(String(o)),i=this.Z(o);for(o=0;o<i.length;o++){var a=r;""!==i[o]&&(a+="="+encodeURIComponent(String(i[o]))),e.push(a)}}return this.i=e.join("&")};var bd=class{constructor(e,t){this.g=e,this.map=t}};function cd(e){this.l=e||dd,l.PerformanceNavigationTiming?e=0<(e=l.performance.getEntriesByType("navigation")).length&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):e=!!(l.g&&l.g.Ka&&l.g.Ka()&&l.g.Ka().ec),this.j=e?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}var dd=10;function ed(e){return!!e.h||!!e.g&&e.g.size>=e.j}function Bc(e){return e.h?1:e.g?e.g.size:0}function xc(e,t){return e.h?e.h==t:!!e.g&&e.g.has(t)}function Cc(e,t){e.g?e.g.add(t):e.h=t}function Ec$1(e,t){e.h&&e.h==t?e.h=null:e.g&&e.g.has(t)&&e.g.delete(t)}function fd(e){if(null!=e.h)return e.i.concat(e.h.F);if(null!=e.g&&0!==e.g.size){let t=e.i;for(const n of e.g.values())t=t.concat(n.F);return t}return ma(e.i)}cd.prototype.cancel=function(){if(this.i=fd(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(const e of this.g.values())e.cancel();this.g.clear()}};var gd=class{stringify(e){return l.JSON.stringify(e,void 0)}parse(e){return l.JSON.parse(e,void 0)}};function hd(){this.g=new gd}function id$2(e,t,n){const o=n||"";try{Kc(e,(function(e,n){let a=e;p(e)&&(a=jb(e)),t.push(o+n+"="+encodeURIComponent(a))}))}catch(e){throw t.push(o+"type="+encodeURIComponent("_badmap")),e}}function jd(e,t){const n=new Gb;if(l.Image){const o=new Image;o.onload=ha(kd,n,o,"TestLoadImage: loaded",!0,t),o.onerror=ha(kd,n,o,"TestLoadImage: error",!1,t),o.onabort=ha(kd,n,o,"TestLoadImage: abort",!1,t),o.ontimeout=ha(kd,n,o,"TestLoadImage: timeout",!1,t),l.setTimeout((function(){o.ontimeout&&o.ontimeout()}),1e4),o.src=e}else t(!1)}function kd(e,t,n,o,a){try{t.onload=null,t.onerror=null,t.onabort=null,t.ontimeout=null,a(o)}catch(e){}}function ld(e){this.l=e.fc||null,this.j=e.ob||!1}function md(e,t){B$1.call(this),this.F=e,this.u=t,this.m=void 0,this.readyState=nd,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.v=new Headers,this.h=null,this.C="GET",this.B="",this.g=!1,this.A=this.j=this.l=null}r(ld,Ub),ld.prototype.g=function(){return new md(this.l,this.j)},ld.prototype.i=function(e){return function(){return e}}({}),r(md,B$1);var nd=0;function qd(e){e.j.read().then(e.Xa.bind(e)).catch(e.ka.bind(e))}function pd(e){e.readyState=4,e.l=null,e.j=null,e.A=null,od(e)}function od(e){e.onreadystatechange&&e.onreadystatechange.call(e)}(k$1=md.prototype).open=function(e,t){if(this.readyState!=nd)throw this.abort(),Error("Error reopening a connection");this.C=e,this.B=t,this.readyState=1,od(this)},k$1.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;const t={headers:this.v,method:this.C,credentials:this.m,cache:void 0};e&&(t.body=e),(this.F||l).fetch(new Request(this.B,t)).then(this.$a.bind(this),this.ka.bind(this))},k$1.abort=function(){this.response=this.responseText="",this.v=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch((()=>{})),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,pd(this)),this.readyState=nd},k$1.$a=function(e){if(this.g&&(this.l=e,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=e.headers,this.readyState=2,od(this)),this.g&&(this.readyState=3,od(this),this.g)))if("arraybuffer"===this.responseType)e.arrayBuffer().then(this.Ya.bind(this),this.ka.bind(this));else if(void 0!==l.ReadableStream&&"body"in e){if(this.j=e.body.getReader(),this.u){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.A=new TextDecoder;qd(this)}else e.text().then(this.Za.bind(this),this.ka.bind(this))},k$1.Xa=function(e){if(this.g){if(this.u&&e.value)this.response.push(e.value);else if(!this.u){var t=e.value?e.value:new Uint8Array(0);(t=this.A.decode(t,{stream:!e.done}))&&(this.response=this.responseText+=t)}e.done?pd(this):od(this),3==this.readyState&&qd(this)}},k$1.Za=function(e){this.g&&(this.response=this.responseText=e,pd(this))},k$1.Ya=function(e){this.g&&(this.response=e,pd(this))},k$1.ka=function(){this.g&&pd(this)},k$1.setRequestHeader=function(e,t){this.v.append(e,t)},k$1.getResponseHeader=function(e){return this.h&&this.h.get(e.toLowerCase())||""},k$1.getAllResponseHeaders=function(){if(!this.h)return"";const e=[],t=this.h.entries();for(var n=t.next();!n.done;)n=n.value,e.push(n[0]+": "+n[1]),n=t.next();return e.join("\r\n")},Object.defineProperty(md.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(e){this.m=e?"include":"same-origin"}});var rd=l.JSON.parse;function P(e){B$1.call(this),this.headers=new Map,this.u=e||null,this.h=!1,this.C=this.g=null,this.I="",this.m=0,this.j="",this.l=this.G=this.v=this.F=!1,this.B=0,this.A=null,this.K=sd,this.L=this.M=!1}r(P,B$1);var sd="",td=/^https?$/i,ud=["POST","PUT"];function xd(e){return z$1&&"number"==typeof e.timeout&&void 0!==e.ontimeout}function vd(e,t){e.h=!1,e.g&&(e.l=!0,e.g.abort(),e.l=!1),e.j=t,e.m=5,yd(e),zd(e)}function yd(e){e.F||(e.F=!0,C$1(e,"complete"),C$1(e,"error"))}function Ad(e){if(e.h&&void 0!==goog&&(!e.C[1]||4!=H$1(e)||2!=e.da()))if(e.v&&4==H$1(e))yb(e.La,0,e);else if(C$1(e,"readystatechange"),4==H$1(e)){e.h=!1;try{const i=e.da();e:switch(i){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var t=!0;break e;default:t=!1}var n;if(!(n=t)){var o;if(o=0===i){var a=String(e.I).match(Lc)[1]||null;!a&&l.self&&l.self.location&&(a=l.self.location.protocol.slice(0,-1)),o=!td.test(a?a.toLowerCase():"")}n=o}if(n)C$1(e,"complete"),C$1(e,"success");else{e.m=6;try{var r=2<H$1(e)?e.g.statusText:""}catch(e){r=""}e.j=r+" ["+e.da()+"]",yd(e)}}finally{zd(e)}}}function zd(e,t){if(e.g){wd(e);const n=e.g,o=e.C[0]?()=>{}:null;e.g=null,e.C=null,t||C$1(e,"ready");try{n.onreadystatechange=o}catch(e){}}}function wd(e){e.g&&e.L&&(e.g.ontimeout=null),e.A&&(l.clearTimeout(e.A),e.A=null)}function H$1(e){return e.g?e.g.readyState:0}function mc(e){try{if(!e.g)return null;if("response"in e.g)return e.g.response;switch(e.K){case sd:case"text":return e.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.g)return e.g.mozResponseArrayBuffer}return null}catch(e){return null}}function tc(e){const t={};e=(e.g&&2<=H$1(e)&&e.g.getAllResponseHeaders()||"").split("\r\n");for(let o=0;o<e.length;o++){if(x(e[o]))continue;var n=qb(e[o]);const a=n[0];if("string"!=typeof(n=n[1]))continue;n=n.trim();const r=t[a]||[];t[a]=r,r.push(n)}Oa(t,(function(e){return e.join(", ")}))}function Bd(e){let t="";return Na(e,(function(e,n){t+=n,t+=":",t+=e,t+="\r\n"})),t}function Cd(e,t,n){e:{for(o in n){var o=!1;break e}o=!0}o||(n=Bd(n),"string"==typeof e?null!=n&&encodeURIComponent(String(n)):K$1(e,t,n))}function Dd(e,t,n){return n&&n.internalChannelParams&&n.internalChannelParams[e]||t}function Ed(e){this.Ga=0,this.j=[],this.l=new Gb,this.pa=this.wa=this.I=this.Y=this.g=this.Da=this.F=this.na=this.o=this.U=this.s=null,this.fb=this.W=0,this.cb=Dd("failFast",!1,e),this.G=this.v=this.u=this.m=this.h=null,this.aa=!0,this.Fa=this.V=-1,this.ba=this.A=this.C=0,this.ab=Dd("baseRetryDelayMs",5e3,e),this.hb=Dd("retryDelaySeedMs",1e4,e),this.eb=Dd("forwardChannelMaxRetries",2,e),this.xa=Dd("forwardChannelRequestTimeoutMs",2e4,e),this.va=e&&e.xmlHttpFactory||void 0,this.Ha=e&&e.dc||!1,this.L=void 0,this.J=e&&e.supportsCrossDomainXhr||!1,this.K="",this.i=new cd(e&&e.concurrentRequestLimit),this.Ja=new hd,this.P=e&&e.fastHandshake||!1,this.O=e&&e.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.bb=e&&e.bc||!1,e&&e.Ea&&this.l.Ea(),e&&e.forceLongPolling&&(this.aa=!1),this.ca=!this.P&&this.aa&&e&&e.detectBufferingProxy||!1,this.qa=void 0,e&&e.longPollingTimeout&&0<e.longPollingTimeout&&(this.qa=e.longPollingTimeout),this.oa=void 0,this.S=0,this.M=!1,this.ma=this.B=null}function Hc(e){if(Fd(e),3==e.H){var t=e.W++,n=G$1(e.I);if(K$1(n,"SID",e.K),K$1(n,"RID",t),K$1(n,"TYPE","terminate"),Gd(e,n),(t=new bc(e,e.l,t)).L=2,t.v=hc(G$1(n)),n=!1,l.navigator&&l.navigator.sendBeacon)try{n=l.navigator.sendBeacon(t.v.toString(),"")}catch(e){}!n&&l.Image&&((new Image).src=t.v,n=!0),n||(t.g=lc(t.l,null),t.g.ha(t.v)),t.G=Date.now(),jc(t)}Hd(e)}function zc(e){e.g&&(vc(e),e.g.cancel(),e.g=null)}function Fd(e){zc(e),e.u&&(l.clearTimeout(e.u),e.u=null),yc(e),e.i.cancel(),e.m&&("number"==typeof e.m&&l.clearTimeout(e.m),e.m=null)}function Gc(e){if(!ed(e.i)&&!e.m){e.m=!0;var t=e.Na;sb||vb(),tb||(sb(),tb=!0),mb.add(t,e),e.C=0}}function Id(e,t){return!(Bc(e.i)>=e.i.j-(e.m?1:0))&&(e.m?(e.j=t.F.concat(e.j),!0):!(1==e.H||2==e.H||e.C>=(e.cb?0:e.eb))&&(e.m=Rb(q$1(e.Na,e,t),Jd(e,e.C)),e.C++,!0))}function Ld(e,t){var n;n=t?t.m:e.W++;const o=G$1(e.I);K$1(o,"SID",e.K),K$1(o,"RID",n),K$1(o,"AID",e.V),Gd(e,o),e.o&&e.s&&Cd(o,e.o,e.s),n=new bc(e,e.l,n,e.C+1),null===e.o&&(n.I=e.s),t&&(e.j=t.F.concat(e.j)),t=Kd(e,n,1e3),n.setTimeout(Math.round(.5*e.xa)+Math.round(.5*e.xa*Math.random())),Cc(e.i,n),gc(n,o,t)}function Gd(e,t){e.na&&Na(e.na,(function(e,n){K$1(t,n,e)})),e.h&&Kc({},(function(e,n){K$1(t,n,e)}))}function Kd(e,t,n){n=Math.min(e.j.length,n);var o=e.h?q$1(e.h.Va,e.h,e):null;e:{var a=e.j;let t=-1;for(;;){const e=["count="+n];-1==t?0<n?(t=a[0].g,e.push("ofs="+t)):t=0:e.push("ofs="+t);let r=!0;for(let i=0;i<n;i++){let n=a[i].g;const l=a[i].map;if(n-=t,0>n)t=Math.max(0,a[i].g-100),r=!1;else try{id$2(l,e,"req"+n+"_")}catch(e){o&&o(l)}}if(r){o=e.join("&");break e}}}return e=e.j.splice(0,n),t.F=e,o}function Fc(e){if(!e.g&&!e.u){e.ba=1;var t=e.Ma;sb||vb(),tb||(sb(),tb=!0),mb.add(t,e),e.A=0}}function Ac(e){return!(e.g||e.u||3<=e.A)&&(e.ba++,e.u=Rb(q$1(e.Ma,e),Jd(e,e.A)),e.A++,!0)}function vc(e){null!=e.B&&(l.clearTimeout(e.B),e.B=null)}function Md(e){e.g=new bc(e,e.l,"rpc",e.ba),null===e.o&&(e.g.I=e.s),e.g.O=0;var t=G$1(e.wa);K$1(t,"RID","rpc"),K$1(t,"SID",e.K),K$1(t,"AID",e.V),K$1(t,"CI",e.G?"0":"1"),!e.G&&e.qa&&K$1(t,"TO",e.qa),K$1(t,"TYPE","xmlhttp"),Gd(e,t),e.o&&e.s&&Cd(t,e.o,e.s),e.L&&e.g.setTimeout(e.L);var n=e.g;e=e.pa,n.L=1,n.v=hc(G$1(t)),n.s=null,n.S=!0,ic(n,e)}function yc(e){null!=e.v&&(l.clearTimeout(e.v),e.v=null)}function sc(e,t){var n=null;if(e.g==t){yc(e),vc(e),e.g=null;var o=2}else{if(!xc(e.i,t))return;n=t.F,Ec$1(e.i,t),o=1}if(0!=e.H)if(t.i)if(1==o){n=t.s?t.s.length:0,t=Date.now()-t.G;var a=e.C;C$1(o=Mb(),new Qb(o,n)),Gc(e)}else Fc(e);else if(3==(a=t.o)||0==a&&0<t.ca||!(1==o&&Id(e,t)||2==o&&Ac(e)))switch(n&&0<n.length&&(t=e.i,t.i=t.i.concat(n)),a){case 1:J$1(e,5);break;case 4:J$1(e,10);break;case 3:J$1(e,6);break;default:J$1(e,2)}}function Jd(e,t){let n=e.ab+Math.floor(Math.random()*e.hb);return e.isActive()||(n*=2),n*t}function J$1(e,t){if(e.l.info("Error code "+t),2==t){var n=null;e.h&&(n=null);var o=q$1(e.pb,e);n||(n=new M("//www.google.com/images/cleardot.gif"),l.location&&"http"==l.location.protocol||Nc(n,"https"),hc(n)),jd(n.toString(),o)}else F$1(2);e.H=0,e.h&&e.h.za(t),Hd(e),Fd(e)}function Hd(e){if(e.H=0,e.ma=[],e.h){const t=fd(e.i);0==t.length&&0==e.j.length||(na(e.ma,t),na(e.ma,e.j),e.i.i.length=0,ma(e.j),e.j.length=0),e.h.ya()}}function Dc(e,t,n){var o=n instanceof M?G$1(n):new M(n);if(""!=o.g)t&&(o.g=t+"."+o.g),Oc(o,o.m);else{var a=l.location;o=a.protocol,t=t?t+"."+a.hostname:a.hostname,a=+a.port;var r=new M(null);o&&Nc(r,o),t&&(r.g=t),a&&Oc(r,a),n&&(r.l=n),o=r}return n=e.F,t=e.Da,n&&t&&K$1(o,n,t),K$1(o,"VER",e.ra),Gd(e,o),o}function lc(e,t,n){if(t&&!e.J)throw Error("Can't create secondary domain capable XhrIo object.");return(t=n&&e.Ha&&!e.va?new P(new ld({ob:!0})):new P(e.va)).Oa(e.J),t}function Nd(){}function Q$1(e,t){B$1.call(this),this.g=new Ed(t),this.l=e,this.h=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.g.s=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e["X-WebChannel-Content-Type"]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.Ca&&(e?e["X-WebChannel-Client-Profile"]=t.Ca:e={"X-WebChannel-Client-Profile":t.Ca}),this.g.U=e,(e=t&&t.cc)&&!x(e)&&(this.g.o=e),this.A=t&&t.supportsCrossDomainXhr||!1,this.v=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!x(t)&&(this.g.F=t,null!==(e=this.h)&&t in e&&(t in(e=this.h)&&delete e[t])),this.j=new R(this)}function Pd(e){Yb.call(this),e.__headers__&&(this.headers=e.__headers__,this.statusCode=e.__status__,delete e.__headers__,delete e.__status__);var t=e.__sm__;if(t){e:{for(const n in t){e=n;break e}e=void 0}(this.i=e)&&(e=this.i,t=null!==t&&e in t?t[e]:void 0),this.data=t}else this.data=e}function Qd(){Zb.call(this),this.status=1}function R(e){this.g=e}function Rd(){this.blockSize=-1}function S$1(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.m=Array(this.blockSize),this.i=this.h=0,this.reset()}function Sd(e,t,n){n||(n=0);var o=Array(16);if("string"==typeof t)for(var a=0;16>a;++a)o[a]=t.charCodeAt(n++)|t.charCodeAt(n++)<<8|t.charCodeAt(n++)<<16|t.charCodeAt(n++)<<24;else for(a=0;16>a;++a)o[a]=t[n++]|t[n++]<<8|t[n++]<<16|t[n++]<<24;t=e.g[0],n=e.g[1],a=e.g[2];var r=e.g[3],i=t+(r^n&(a^r))+o[0]+3614090360&4294967295;i=(n=(a=(r=(t=(n=(a=(r=(t=(n=(a=(r=(t=(n=(a=(r=(t=(n=(a=(r=(t=(n=(a=(r=(t=(n=(a=(r=(t=(n=(a=(r=(t=(n=(a=(r=(t=(n=(a=(r=(t=(n=(a=(r=(t=(n=(a=(r=(t=(n=(a=(r=(t=(n=(a=(r=(t=(n=(a=(r=(t=n+(i<<7&4294967295|i>>>25))+((i=r+(a^t&(n^a))+o[1]+3905402710&4294967295)<<12&4294967295|i>>>20))+((i=a+(n^r&(t^n))+o[2]+606105819&4294967295)<<17&4294967295|i>>>15))+((i=n+(t^a&(r^t))+o[3]+3250441966&4294967295)<<22&4294967295|i>>>10))+((i=t+(r^n&(a^r))+o[4]+4118548399&4294967295)<<7&4294967295|i>>>25))+((i=r+(a^t&(n^a))+o[5]+1200080426&4294967295)<<12&4294967295|i>>>20))+((i=a+(n^r&(t^n))+o[6]+2821735955&4294967295)<<17&4294967295|i>>>15))+((i=n+(t^a&(r^t))+o[7]+4249261313&4294967295)<<22&4294967295|i>>>10))+((i=t+(r^n&(a^r))+o[8]+1770035416&4294967295)<<7&4294967295|i>>>25))+((i=r+(a^t&(n^a))+o[9]+2336552879&4294967295)<<12&4294967295|i>>>20))+((i=a+(n^r&(t^n))+o[10]+4294925233&4294967295)<<17&4294967295|i>>>15))+((i=n+(t^a&(r^t))+o[11]+2304563134&4294967295)<<22&4294967295|i>>>10))+((i=t+(r^n&(a^r))+o[12]+1804603682&4294967295)<<7&4294967295|i>>>25))+((i=r+(a^t&(n^a))+o[13]+4254626195&4294967295)<<12&4294967295|i>>>20))+((i=a+(n^r&(t^n))+o[14]+2792965006&4294967295)<<17&4294967295|i>>>15))+((i=n+(t^a&(r^t))+o[15]+1236535329&4294967295)<<22&4294967295|i>>>10))+((i=t+(a^r&(n^a))+o[1]+4129170786&4294967295)<<5&4294967295|i>>>27))+((i=r+(n^a&(t^n))+o[6]+3225465664&4294967295)<<9&4294967295|i>>>23))+((i=a+(t^n&(r^t))+o[11]+643717713&4294967295)<<14&4294967295|i>>>18))+((i=n+(r^t&(a^r))+o[0]+3921069994&4294967295)<<20&4294967295|i>>>12))+((i=t+(a^r&(n^a))+o[5]+3593408605&4294967295)<<5&4294967295|i>>>27))+((i=r+(n^a&(t^n))+o[10]+38016083&4294967295)<<9&4294967295|i>>>23))+((i=a+(t^n&(r^t))+o[15]+3634488961&4294967295)<<14&4294967295|i>>>18))+((i=n+(r^t&(a^r))+o[4]+3889429448&4294967295)<<20&4294967295|i>>>12))+((i=t+(a^r&(n^a))+o[9]+568446438&4294967295)<<5&4294967295|i>>>27))+((i=r+(n^a&(t^n))+o[14]+3275163606&4294967295)<<9&4294967295|i>>>23))+((i=a+(t^n&(r^t))+o[3]+4107603335&4294967295)<<14&4294967295|i>>>18))+((i=n+(r^t&(a^r))+o[8]+1163531501&4294967295)<<20&4294967295|i>>>12))+((i=t+(a^r&(n^a))+o[13]+2850285829&4294967295)<<5&4294967295|i>>>27))+((i=r+(n^a&(t^n))+o[2]+4243563512&4294967295)<<9&4294967295|i>>>23))+((i=a+(t^n&(r^t))+o[7]+1735328473&4294967295)<<14&4294967295|i>>>18))+((i=n+(r^t&(a^r))+o[12]+2368359562&4294967295)<<20&4294967295|i>>>12))+((i=t+(n^a^r)+o[5]+4294588738&4294967295)<<4&4294967295|i>>>28))+((i=r+(t^n^a)+o[8]+2272392833&4294967295)<<11&4294967295|i>>>21))+((i=a+(r^t^n)+o[11]+1839030562&4294967295)<<16&4294967295|i>>>16))+((i=n+(a^r^t)+o[14]+4259657740&4294967295)<<23&4294967295|i>>>9))+((i=t+(n^a^r)+o[1]+2763975236&4294967295)<<4&4294967295|i>>>28))+((i=r+(t^n^a)+o[4]+1272893353&4294967295)<<11&4294967295|i>>>21))+((i=a+(r^t^n)+o[7]+4139469664&4294967295)<<16&4294967295|i>>>16))+((i=n+(a^r^t)+o[10]+3200236656&4294967295)<<23&4294967295|i>>>9))+((i=t+(n^a^r)+o[13]+681279174&4294967295)<<4&4294967295|i>>>28))+((i=r+(t^n^a)+o[0]+3936430074&4294967295)<<11&4294967295|i>>>21))+((i=a+(r^t^n)+o[3]+3572445317&4294967295)<<16&4294967295|i>>>16))+((i=n+(a^r^t)+o[6]+76029189&4294967295)<<23&4294967295|i>>>9))+((i=t+(n^a^r)+o[9]+3654602809&4294967295)<<4&4294967295|i>>>28))+((i=r+(t^n^a)+o[12]+3873151461&4294967295)<<11&4294967295|i>>>21))+((i=a+(r^t^n)+o[15]+530742520&4294967295)<<16&4294967295|i>>>16))+((i=n+(a^r^t)+o[2]+3299628645&4294967295)<<23&4294967295|i>>>9))+((i=t+(a^(n|~r))+o[0]+4096336452&4294967295)<<6&4294967295|i>>>26))+((i=r+(n^(t|~a))+o[7]+1126891415&4294967295)<<10&4294967295|i>>>22))+((i=a+(t^(r|~n))+o[14]+2878612391&4294967295)<<15&4294967295|i>>>17))+((i=n+(r^(a|~t))+o[5]+4237533241&4294967295)<<21&4294967295|i>>>11))+((i=t+(a^(n|~r))+o[12]+1700485571&4294967295)<<6&4294967295|i>>>26))+((i=r+(n^(t|~a))+o[3]+2399980690&4294967295)<<10&4294967295|i>>>22))+((i=a+(t^(r|~n))+o[10]+4293915773&4294967295)<<15&4294967295|i>>>17))+((i=n+(r^(a|~t))+o[1]+2240044497&4294967295)<<21&4294967295|i>>>11))+((i=t+(a^(n|~r))+o[8]+1873313359&4294967295)<<6&4294967295|i>>>26))+((i=r+(n^(t|~a))+o[15]+4264355552&4294967295)<<10&4294967295|i>>>22))+((i=a+(t^(r|~n))+o[6]+2734768916&4294967295)<<15&4294967295|i>>>17))+((i=n+(r^(a|~t))+o[13]+1309151649&4294967295)<<21&4294967295|i>>>11))+((r=(t=n+((i=t+(a^(n|~r))+o[4]+4149444226&4294967295)<<6&4294967295|i>>>26))+((i=r+(n^(t|~a))+o[11]+3174756917&4294967295)<<10&4294967295|i>>>22))^((a=r+((i=a+(t^(r|~n))+o[2]+718787259&4294967295)<<15&4294967295|i>>>17))|~t))+o[9]+3951481745&4294967295,e.g[0]=e.g[0]+t&4294967295,e.g[1]=e.g[1]+(a+(i<<21&4294967295|i>>>11))&4294967295,e.g[2]=e.g[2]+a&4294967295,e.g[3]=e.g[3]+r&4294967295}function T(e,t){this.h=t;for(var n=[],o=!0,a=e.length-1;0<=a;a--){var r=0|e[a];o&&r==t||(n[a]=r,o=!1)}this.g=n}(k$1=P.prototype).Oa=function(e){this.M=e},k$1.ha=function(e,t,n,o){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.I+"; newUri="+e);t=t?t.toUpperCase():"GET",this.I=e,this.j="",this.m=0,this.F=!1,this.h=!0,this.g=this.u?this.u.g():$b.g(),this.C=this.u?Vb(this.u):Vb($b),this.g.onreadystatechange=q$1(this.La,this);try{this.G=!0,this.g.open(t,String(e),!0),this.G=!1}catch(e){return void vd(this,e)}if(e=n||"",n=new Map(this.headers),o)if(Object.getPrototypeOf(o)===Object.prototype)for(var a in o)n.set(a,o[a]);else{if("function"!=typeof o.keys||"function"!=typeof o.get)throw Error("Unknown input type for opt_headers: "+String(o));for(const e of o.keys())n.set(e,o.get(e))}o=Array.from(n.keys()).find((e=>"content-type"==e.toLowerCase())),a=l.FormData&&e instanceof l.FormData,!(0<=ka(ud,t))||o||a||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[e,t]of n)this.g.setRequestHeader(e,t);this.K&&(this.g.responseType=this.K),"withCredentials"in this.g&&this.g.withCredentials!==this.M&&(this.g.withCredentials=this.M);try{wd(this),0<this.B&&((this.L=xd(this.g))?(this.g.timeout=this.B,this.g.ontimeout=q$1(this.ua,this)):this.A=yb(this.ua,this.B,this)),this.v=!0,this.g.send(e),this.v=!1}catch(e){vd(this,e)}},k$1.ua=function(){void 0!==goog&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,C$1(this,"timeout"),this.abort(8))},k$1.abort=function(e){this.g&&this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1,this.m=e||7,C$1(this,"complete"),C$1(this,"abort"),zd(this))},k$1.N=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),zd(this,!0)),P.$.N.call(this)},k$1.La=function(){this.s||(this.G||this.v||this.l?Ad(this):this.kb())},k$1.kb=function(){Ad(this)},k$1.isActive=function(){return!!this.g},k$1.da=function(){try{return 2<H$1(this)?this.g.status:-1}catch(e){return-1}},k$1.ja=function(){try{return this.g?this.g.responseText:""}catch(e){return""}},k$1.Wa=function(e){if(this.g){var t=this.g.responseText;return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),rd(t)}},k$1.Ia=function(){return this.m},k$1.Sa=function(){return"string"==typeof this.j?this.j:String(this.j)},(k$1=Ed.prototype).ra=8,k$1.H=1,k$1.Na=function(e){if(this.m)if(this.m=null,1==this.H){if(!e){this.W=Math.floor(1e5*Math.random()),e=this.W++;const a=new bc(this,this.l,e);let r=this.s;if(this.U&&(r?(r=Pa(r),Ra(r,this.U)):r=this.U),null!==this.o||this.O||(a.I=r,r=null),this.P)e:{for(var t=0,n=0;n<this.j.length;n++){var o=this.j[n];if(void 0===(o="__data__"in o.map&&"string"==typeof(o=o.map.__data__)?o.length:void 0))break;if(4096<(t+=o)){t=n;break e}if(4096===t||n===this.j.length-1){t=n+1;break e}}t=1e3}else t=1e3;t=Kd(this,a,t),K$1(n=G$1(this.I),"RID",e),K$1(n,"CVER",22),this.F&&K$1(n,"X-HTTP-Session-Id",this.F),Gd(this,n),r&&(this.O?t="headers="+encodeURIComponent(String(Bd(r)))+"&"+t:this.o&&Cd(n,this.o,r)),Cc(this.i,a),this.bb&&K$1(n,"TYPE","init"),this.P?(K$1(n,"$req",t),K$1(n,"SID","null"),a.aa=!0,gc(a,n,null)):gc(a,n,t),this.H=2}}else 3==this.H&&(e?Ld(this,e):0==this.j.length||ed(this.i)||Ld(this))},k$1.Ma=function(){if(this.u=null,Md(this),this.ca&&!(this.M||null==this.g||0>=this.S)){var e=2*this.S;this.l.info("BP detection timer enabled: "+e),this.B=Rb(q$1(this.jb,this),e)}},k$1.jb=function(){this.B&&(this.B=null,this.l.info("BP detection timeout reached."),this.l.info("Buffering proxy detected and switch to long-polling!"),this.G=!1,this.M=!0,F$1(10),zc(this),Md(this))},k$1.ib=function(){null!=this.v&&(this.v=null,zc(this),Ac(this),F$1(19))},k$1.pb=function(e){e?(this.l.info("Successfully pinged google.com"),F$1(2)):(this.l.info("Failed to ping google.com"),F$1(1))},k$1.isActive=function(){return!!this.h&&this.h.isActive(this)},(k$1=Nd.prototype).Ba=function(){},k$1.Aa=function(){},k$1.za=function(){},k$1.ya=function(){},k$1.isActive=function(){return!0},k$1.Va=function(){},r(Q$1,B$1),Q$1.prototype.m=function(){this.g.h=this.j,this.A&&(this.g.J=!0);var e=this.g,t=this.l,n=this.h||void 0;F$1(0),e.Y=t,e.na=n||{},e.G=e.aa,e.I=Dc(e,null,e.Y),Gc(e)},Q$1.prototype.close=function(){Hc(this.g)},Q$1.prototype.u=function(e){var t=this.g;if("string"==typeof e){var n={};n.__data__=e,e=n}else this.v&&((n={}).__data__=jb(e),e=n);t.j.push(new bd(t.fb++,e)),3==t.H&&Gc(t)},Q$1.prototype.N=function(){this.g.h=null,delete this.j,Hc(this.g),delete this.g,Q$1.$.N.call(this)},r(Pd,Yb),r(Qd,Zb),r(R,Nd),R.prototype.Ba=function(){C$1(this.g,"a")},R.prototype.Aa=function(e){C$1(this.g,new Pd(e))},R.prototype.za=function(e){C$1(this.g,new Qd)},R.prototype.ya=function(){C$1(this.g,"b")},r(S$1,Rd),S$1.prototype.reset=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.i=this.h=0},S$1.prototype.j=function(e,t){void 0===t&&(t=e.length);for(var n=t-this.blockSize,o=this.m,a=this.h,r=0;r<t;){if(0==a)for(;r<=n;)Sd(this,e,r),r+=this.blockSize;if("string"==typeof e){for(;r<t;)if(o[a++]=e.charCodeAt(r++),a==this.blockSize){Sd(this,o),a=0;break}}else for(;r<t;)if(o[a++]=e[r++],a==this.blockSize){Sd(this,o),a=0;break}}this.h=a,this.i+=t},S$1.prototype.l=function(){var e=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);e[0]=128;for(var t=1;t<e.length-8;++t)e[t]=0;var n=8*this.i;for(t=e.length-8;t<e.length;++t)e[t]=255&n,n/=256;for(this.j(e),e=Array(16),t=n=0;4>t;++t)for(var o=0;32>o;o+=8)e[n++]=this.g[t]>>>o&255;return e};var sa={};function Td(e){return-128<=e&&128>e?ra(e,(function(e){return new T([0|e],0>e?-1:0)})):new T([0|e],0>e?-1:0)}function U$1(e){if(isNaN(e)||!isFinite(e))return V$1;if(0>e)return W$1(U$1(-e));for(var t=[],n=1,o=0;e>=n;o++)t[o]=e/n|0,n*=Ud;return new T(t,0)}function Vd(e,t){if(0==e.length)throw Error("number format error: empty string");if(2>(t=t||10)||36<t)throw Error("radix out of range: "+t);if("-"==e.charAt(0))return W$1(Vd(e.substring(1),t));if(0<=e.indexOf("-"))throw Error('number format error: interior "-" character');for(var n=U$1(Math.pow(t,8)),o=V$1,a=0;a<e.length;a+=8){var r=Math.min(8,e.length-a),i=parseInt(e.substring(a,a+r),t);8>r?(r=U$1(Math.pow(t,r)),o=o.R(r).add(U$1(i))):o=(o=o.R(n)).add(U$1(i))}return o}var Ud=4294967296,V$1=Td(0),Wd=Td(1),Xd=Td(16777216);function Y$1(e){if(0!=e.h)return!1;for(var t=0;t<e.g.length;t++)if(0!=e.g[t])return!1;return!0}function X(e){return-1==e.h}function W$1(e){for(var t=e.g.length,n=[],o=0;o<t;o++)n[o]=~e.g[o];return new T(n,~e.h).add(Wd)}function Zd(e,t){return e.add(W$1(t))}function $d(e,t){for(;(65535&e[t])!=e[t];)e[t+1]+=e[t]>>>16,e[t]&=65535,t++}function ae(e,t){this.g=e,this.h=t}function Yd(e,t){if(Y$1(t))throw Error("division by zero");if(Y$1(e))return new ae(V$1,V$1);if(X(e))return t=Yd(W$1(e),t),new ae(W$1(t.g),W$1(t.h));if(X(t))return t=Yd(e,W$1(t)),new ae(W$1(t.g),t.h);if(30<e.g.length){if(X(e)||X(t))throw Error("slowDivide_ only works with positive integers.");for(var n=Wd,o=t;0>=o.X(e);)n=be(n),o=be(o);var a=Z$1(n,1),r=Z$1(o,1);for(o=Z$1(o,2),n=Z$1(n,2);!Y$1(o);){var i=r.add(o);0>=i.X(e)&&(a=a.add(n),r=i),o=Z$1(o,1),n=Z$1(n,1)}return t=Zd(e,a.R(t)),new ae(a,t)}for(a=V$1;0<=e.X(t);){for(n=Math.max(1,Math.floor(e.ea()/t.ea())),o=48>=(o=Math.ceil(Math.log(n)/Math.LN2))?1:Math.pow(2,o-48),i=(r=U$1(n)).R(t);X(i)||0<i.X(e);)i=(r=U$1(n-=o)).R(t);Y$1(r)&&(r=Wd),a=a.add(r),e=Zd(e,i)}return new ae(a,e)}function be(e){for(var t=e.g.length+1,n=[],o=0;o<t;o++)n[o]=e.D(o)<<1|e.D(o-1)>>>31;return new T(n,e.h)}function Z$1(e,t){var n=t>>5;t%=32;for(var o=e.g.length-n,a=[],r=0;r<o;r++)a[r]=0<t?e.D(r+n)>>>t|e.D(r+n+1)<<32-t:e.D(r+n);return new T(a,e.h)}(k$1=T.prototype).ea=function(){if(X(this))return-W$1(this).ea();for(var e=0,t=1,n=0;n<this.g.length;n++){var o=this.D(n);e+=(0<=o?o:Ud+o)*t,t*=Ud}return e},k$1.toString=function(e){if(2>(e=e||10)||36<e)throw Error("radix out of range: "+e);if(Y$1(this))return"0";if(X(this))return"-"+W$1(this).toString(e);for(var t=U$1(Math.pow(e,6)),n=this,o="";;){var a=Yd(n,t).g,r=((0<(n=Zd(n,a.R(t))).g.length?n.g[0]:n.h)>>>0).toString(e);if(Y$1(n=a))return r+o;for(;6>r.length;)r="0"+r;o=r+o}},k$1.D=function(e){return 0>e?0:e<this.g.length?this.g[e]:this.h},k$1.X=function(e){return X(e=Zd(this,e))?-1:Y$1(e)?0:1},k$1.abs=function(){return X(this)?W$1(this):this},k$1.add=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],o=0,a=0;a<=t;a++){var r=o+(65535&this.D(a))+(65535&e.D(a)),i=(r>>>16)+(this.D(a)>>>16)+(e.D(a)>>>16);o=i>>>16,r&=65535,i&=65535,n[a]=i<<16|r}return new T(n,-2147483648&n[n.length-1]?-1:0)},k$1.R=function(e){if(Y$1(this)||Y$1(e))return V$1;if(X(this))return X(e)?W$1(this).R(W$1(e)):W$1(W$1(this).R(e));if(X(e))return W$1(this.R(W$1(e)));if(0>this.X(Xd)&&0>e.X(Xd))return U$1(this.ea()*e.ea());for(var t=this.g.length+e.g.length,n=[],o=0;o<2*t;o++)n[o]=0;for(o=0;o<this.g.length;o++)for(var a=0;a<e.g.length;a++){var r=this.D(o)>>>16,i=65535&this.D(o),l=e.D(a)>>>16,s=65535&e.D(a);n[2*o+2*a]+=i*s,$d(n,2*o+2*a),n[2*o+2*a+1]+=r*s,$d(n,2*o+2*a+1),n[2*o+2*a+1]+=i*l,$d(n,2*o+2*a+1),n[2*o+2*a+2]+=r*l,$d(n,2*o+2*a+2)}for(o=0;o<t;o++)n[o]=n[2*o+1]<<16|n[2*o];for(o=t;o<2*t;o++)n[o]=0;return new T(n,0)},k$1.gb=function(e){return Yd(this,e).h},k$1.and=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],o=0;o<t;o++)n[o]=this.D(o)&e.D(o);return new T(n,this.h&e.h)},k$1.or=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],o=0;o<t;o++)n[o]=this.D(o)|e.D(o);return new T(n,this.h|e.h)},k$1.xor=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],o=0;o<t;o++)n[o]=this.D(o)^e.D(o);return new T(n,this.h^e.h)},Q$1.prototype.send=Q$1.prototype.u,Q$1.prototype.open=Q$1.prototype.m,Q$1.prototype.close=Q$1.prototype.close,Sb.NO_ERROR=0,Sb.TIMEOUT=8,Sb.HTTP_ERROR=6,Tb.COMPLETE="complete",Wb.EventType=Xb,Xb.OPEN="a",Xb.CLOSE="b",Xb.ERROR="c",Xb.MESSAGE="d",B$1.prototype.listen=B$1.prototype.O,P.prototype.listenOnce=P.prototype.P,P.prototype.getLastError=P.prototype.Sa,P.prototype.getLastErrorCode=P.prototype.Ia,P.prototype.getStatus=P.prototype.da,P.prototype.getResponseJson=P.prototype.Wa,P.prototype.getResponseText=P.prototype.ja,P.prototype.send=P.prototype.ha,P.prototype.setWithCredentials=P.prototype.Oa,S$1.prototype.digest=S$1.prototype.l,S$1.prototype.reset=S$1.prototype.reset,S$1.prototype.update=S$1.prototype.j,T.prototype.add=T.prototype.add,T.prototype.multiply=T.prototype.R,T.prototype.modulo=T.prototype.gb,T.prototype.compare=T.prototype.X,T.prototype.toNumber=T.prototype.ea,T.prototype.toString=T.prototype.toString,T.prototype.getBits=T.prototype.D,T.fromNumber=U$1,T.fromString=Vd;var Integer=T;const b="@firebase/firestore";
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class V{constructor(e){this.uid=e}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(e){return e.uid===this.uid}}V.UNAUTHENTICATED=new V(null),V.GOOGLE_CREDENTIALS=new V("google-credentials-uid"),V.FIRST_PARTY=new V("first-party-uid"),V.MOCK_USER=new V("mock-user");
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
let S="9.23.0";
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const D$1=new Logger$1("@firebase/firestore");function N(e,...t){if(D$1.logLevel<=LogLevel$1.DEBUG){const n=t.map($);D$1.debug(`Firestore (${S}): ${e}`,...n)}}function k(e,...t){if(D$1.logLevel<=LogLevel$1.ERROR){const n=t.map($);D$1.error(`Firestore (${S}): ${e}`,...n)}}function $(e){if("string"==typeof e)return e;try{return t=e,JSON.stringify(t)}catch(t){return e}
/**
  * @license
  * Copyright 2020 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *   http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */var t}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function O(e="Unexpected state"){const t=`FIRESTORE (${S}) INTERNAL ASSERTION FAILED: `+e;throw k(t),new Error(t)}function F(e,t){e||O()}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const q={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class U extends FirebaseError$1{constructor(e,t){super(e,t),this.code=e,this.message=t,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class K{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class G{constructor(e,t){this.user=t,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class Q{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,t){e.enqueueRetryable((()=>t(V.UNAUTHENTICATED)))}shutdown(){}}class z{constructor(e){this.t=e,this.currentUser=V.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,t){let n=this.i;const o=e=>this.i!==n?(n=this.i,t(e)):Promise.resolve();let a=new K;this.o=()=>{this.i++,this.currentUser=this.u(),a.resolve(),a=new K,e.enqueueRetryable((()=>o(this.currentUser)))};const r=()=>{const t=a;e.enqueueRetryable((async()=>{await t.promise,await o(this.currentUser)}))},i=e=>{N("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=e,this.auth.addAuthTokenListener(this.o),r()};this.t.onInit((e=>i(e))),setTimeout((()=>{if(!this.auth){const e=this.t.getImmediate({optional:!0});e?i(e):(N("FirebaseAuthCredentialsProvider","Auth not yet detected"),a.resolve(),a=new K)}}),0),r()}getToken(){const e=this.i,t=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(t).then((t=>this.i!==e?(N("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):t?(F("string"==typeof t.accessToken),new G(t.accessToken,this.currentUser)):null)):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.auth.removeAuthTokenListener(this.o)}u(){const e=this.auth&&this.auth.getUid();return F(null===e||"string"==typeof e),new V(e)}}class W{constructor(e,t,n){this.h=e,this.l=t,this.m=n,this.type="FirstParty",this.user=V.FIRST_PARTY,this.g=new Map}p(){return this.m?this.m():null}get headers(){this.g.set("X-Goog-AuthUser",this.h);const e=this.p();return e&&this.g.set("Authorization",e),this.l&&this.g.set("X-Goog-Iam-Authorization-Token",this.l),this.g}}class H{constructor(e,t,n){this.h=e,this.l=t,this.m=n}getToken(){return Promise.resolve(new W(this.h,this.l,this.m))}start(e,t){e.enqueueRetryable((()=>t(V.FIRST_PARTY)))}shutdown(){}invalidateToken(){}}class J{constructor(e){this.value=e,this.type="AppCheck",this.headers=new Map,e&&e.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class Y{constructor(e){this.I=e,this.forceRefresh=!1,this.appCheck=null,this.T=null}start(e,t){const n=e=>{null!=e.error&&N("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${e.error.message}`);const n=e.token!==this.T;return this.T=e.token,N("FirebaseAppCheckTokenProvider",`Received ${n?"new":"existing"} token.`),n?t(e.token):Promise.resolve()};this.o=t=>{e.enqueueRetryable((()=>n(t)))};const o=e=>{N("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=e,this.appCheck.addTokenListener(this.o)};this.I.onInit((e=>o(e))),setTimeout((()=>{if(!this.appCheck){const e=this.I.getImmediate({optional:!0});e?o(e):N("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}}),0)}getToken(){const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then((e=>e?(F("string"==typeof e.token),this.T=e.token,new J(e.token)):null)):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}
/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Z(e){const t="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(e);if(t&&"function"==typeof t.getRandomValues)t.getRandomValues(n);else for(let t=0;t<e;t++)n[t]=Math.floor(256*Math.random());return n}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class tt{static A(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=62*Math.floor(256/62);let n="";for(;n.length<20;){const o=Z(40);for(let a=0;a<o.length;++a)n.length<20&&o[a]<t&&(n+=e.charAt(o[a]%62))}return n}}function et(e,t){return e<t?-1:e>t?1:0}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class it{constructor(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new U(q.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new U(q.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<-62135596800)throw new U(q.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new U(q.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}static now(){return it.fromMillis(Date.now())}static fromDate(e){return it.fromMillis(e.getTime())}static fromMillis(e){const t=Math.floor(e/1e3),n=Math.floor(1e6*(e-1e3*t));return new it(t,n)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(e){return this.seconds===e.seconds?et(this.nanoseconds,e.nanoseconds):et(this.seconds,e.seconds)}isEqual(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){const e=this.seconds- -62135596800;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}function Dt(e){return"IndexedDbTransactionError"===e.name}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class $e{constructor(e,t,n,o,a,r,i,l,s){this.databaseId=e,this.appId=t,this.persistenceKey=n,this.host=o,this.ssl=a,this.forceLongPolling=r,this.autoDetectLongPolling=i,this.longPollingOptions=l,this.useFetchStreams=s}}class Oe{constructor(e,t){this.projectId=e,this.database=t||"(default)"}static empty(){return new Oe("","")}get isDefaultDatabase(){return"(default)"===this.database}isEqual(e){return e instanceof Oe&&e.projectId===this.projectId&&e.database===this.database}}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var ii,ri;function Ou(){return"undefined"!=typeof document?document:null}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */(ri=ii||(ii={}))[ri.OK=0]="OK",ri[ri.CANCELLED=1]="CANCELLED",ri[ri.UNKNOWN=2]="UNKNOWN",ri[ri.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",ri[ri.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",ri[ri.NOT_FOUND=5]="NOT_FOUND",ri[ri.ALREADY_EXISTS=6]="ALREADY_EXISTS",ri[ri.PERMISSION_DENIED=7]="PERMISSION_DENIED",ri[ri.UNAUTHENTICATED=16]="UNAUTHENTICATED",ri[ri.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",ri[ri.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",ri[ri.ABORTED=10]="ABORTED",ri[ri.OUT_OF_RANGE=11]="OUT_OF_RANGE",ri[ri.UNIMPLEMENTED=12]="UNIMPLEMENTED",ri[ri.INTERNAL=13]="INTERNAL",ri[ri.UNAVAILABLE=14]="UNAVAILABLE",ri[ri.DATA_LOSS=15]="DATA_LOSS",
/**
 * @license
 * Copyright 2022 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
new Integer([4294967295,4294967295],0);class Bu{constructor(e,t,n=1e3,o=1.5,a=6e4){this.ii=e,this.timerId=t,this.Po=n,this.bo=o,this.Vo=a,this.So=0,this.Do=null,this.Co=Date.now(),this.reset()}reset(){this.So=0}xo(){this.So=this.Vo}No(e){this.cancel();const t=Math.floor(this.So+this.ko()),n=Math.max(0,Date.now()-this.Co),o=Math.max(0,t-n);o>0&&N("ExponentialBackoff",`Backing off for ${o} ms (base delay: ${this.So} ms, delay with jitter: ${t} ms, last attempt: ${n} ms ago)`),this.Do=this.ii.enqueueAfterDelay(this.timerId,o,(()=>(this.Co=Date.now(),e()))),this.So*=this.bo,this.So<this.Po&&(this.So=this.Po),this.So>this.Vo&&(this.So=this.Vo)}Mo(){null!==this.Do&&(this.Do.skipDelay(),this.Do=null)}cancel(){null!==this.Do&&(this.Do.cancel(),this.Do=null)}ko(){return(Math.random()-.5)*this.So}}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Tc{constructor(e,t,n,o,a){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=n,this.op=o,this.removalCallback=a,this.deferred=new K,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch((e=>{}))}static createAndSchedule(e,t,n,o,a){const r=Date.now()+n,i=new Tc(e,t,r,o,a);return i.start(n),i}start(e){this.timerHandle=setTimeout((()=>this.handleDelayElapsed()),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new U(q.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget((()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then((e=>this.deferred.resolve(e)))):Promise.resolve()))}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function Ec(e,t){if(k("AsyncQueue",`${t}: ${e}`),Dt(e))return new U(q.UNAVAILABLE,`${t}: ${e}`);throw e}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class xa{constructor(e,t,n,o){this.authCredentials=e,this.appCheckCredentials=t,this.asyncQueue=n,this.databaseInfo=o,this.user=V.UNAUTHENTICATED,this.clientId=tt.A(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(n,(async e=>{N("FirestoreClient","Received user=",e.uid),await this.authCredentialListener(e),this.user=e})),this.appCheckCredentials.start(n,(e=>(N("FirestoreClient","Received new app check token=",e),this.appCheckCredentialListener(e,this.user))))}async getConfiguration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(e){this.authCredentialListener=e}setAppCheckTokenChangeListener(e){this.appCheckCredentialListener=e}verifyNotTerminated(){if(this.asyncQueue.isShuttingDown)throw new U(q.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){this.asyncQueue.enterRestrictedMode();const e=new K;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((async()=>{try{this._onlineComponents&&await this._onlineComponents.terminate(),this._offlineComponents&&await this._offlineComponents.terminate(),this.authCredentials.shutdown(),this.appCheckCredentials.shutdown(),e.resolve()}catch(t){const n=Ec(t,"Failed to shutdown persistence");e.reject(n)}})),e.promise}}
/**
 * @license
 * Copyright 2023 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function th(e){const t={};return void 0!==e.timeoutSeconds&&(t.timeoutSeconds=e.timeoutSeconds),t
/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */}const eh=new Map;function sh(e,t,n,o){if(!0===t&&!0===o)throw new U(q.INVALID_ARGUMENT,`${e} and ${n} cannot be used together.`)}
/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class ah{constructor(e){var t,n;if(void 0===e.host){if(void 0!==e.ssl)throw new U(q.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=e.host,this.ssl=null===(t=e.ssl)||void 0===t||t;if(this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.cache=e.localCache,void 0===e.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==e.cacheSizeBytes&&e.cacheSizeBytes<1048576)throw new U(q.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}sh("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalForceLongPolling?this.experimentalAutoDetectLongPolling=!1:void 0===e.experimentalAutoDetectLongPolling?this.experimentalAutoDetectLongPolling=!0:this.experimentalAutoDetectLongPolling=!!e.experimentalAutoDetectLongPolling,this.experimentalLongPollingOptions=th(null!==(n=e.experimentalLongPollingOptions)&&void 0!==n?n:{}),function(e){if(void 0!==e.timeoutSeconds){if(isNaN(e.timeoutSeconds))throw new U(q.INVALID_ARGUMENT,`invalid long polling timeout: ${e.timeoutSeconds} (must not be NaN)`);if(e.timeoutSeconds<5)throw new U(q.INVALID_ARGUMENT,`invalid long polling timeout: ${e.timeoutSeconds} (minimum allowed value is 5)`);if(e.timeoutSeconds>30)throw new U(q.INVALID_ARGUMENT,`invalid long polling timeout: ${e.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!e.useFetchStreams}isEqual(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&(t=this.experimentalLongPollingOptions,n=e.experimentalLongPollingOptions,t.timeoutSeconds===n.timeoutSeconds)&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams;var t,n}}class hh{constructor(e,t,n,o){this._authCredentials=e,this._appCheckCredentials=t,this._databaseId=n,this._app=o,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new ah({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new U(q.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return void 0!==this._terminateTask}_setSettings(e){if(this._settingsFrozen)throw new U(q.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new ah(e),void 0!==e.credentials&&(this._authCredentials=function(e){if(!e)return new Q;switch(e.type){case"firstParty":return new H(e.sessionIndex||"0",e.iamToken||null,e.authTokenFactory||null);case"provider":return e.client;default:throw new U(q.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(e.credentials))}_getSettings(){return this._settings}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(e){const t=eh.get(e);t&&(N("ComponentProvider","Removing Datastore"),eh.delete(e),t.terminate())}(this),Promise.resolve()}}
/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Ih{constructor(){this.Gc=Promise.resolve(),this.Qc=[],this.jc=!1,this.zc=[],this.Wc=null,this.Hc=!1,this.Jc=!1,this.Yc=[],this.qo=new Bu(this,"async_queue_retry"),this.Xc=()=>{const e=Ou();e&&N("AsyncQueue","Visibility state changed to "+e.visibilityState),this.qo.Mo()};const e=Ou();e&&"function"==typeof e.addEventListener&&e.addEventListener("visibilitychange",this.Xc)}get isShuttingDown(){return this.jc}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.Zc(),this.ta(e)}enterRestrictedMode(e){if(!this.jc){this.jc=!0,this.Jc=e||!1;const t=Ou();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.Xc)}}enqueue(e){if(this.Zc(),this.jc)return new Promise((()=>{}));const t=new K;return this.ta((()=>this.jc&&this.Jc?Promise.resolve():(e().then(t.resolve,t.reject),t.promise))).then((()=>t.promise))}enqueueRetryable(e){this.enqueueAndForget((()=>(this.Qc.push(e),this.ea())))}async ea(){if(0!==this.Qc.length){try{await this.Qc[0](),this.Qc.shift(),this.qo.reset()}catch(e){if(!Dt(e))throw e;N("AsyncQueue","Operation failed with retryable error: "+e)}this.Qc.length>0&&this.qo.No((()=>this.ea()))}}ta(e){const t=this.Gc.then((()=>(this.Hc=!0,e().catch((e=>{this.Wc=e,this.Hc=!1;throw k("INTERNAL UNHANDLED ERROR: ",function(e){let t=e.message||"";return e.stack&&(t=e.stack.includes(e.message)?e.stack:e.message+"\n"+e.stack),t}(e)),e})).then((e=>(this.Hc=!1,e))))));return this.Gc=t,t}enqueueAfterDelay(e,t,n){this.Zc(),this.Yc.indexOf(e)>-1&&(t=0);const o=Tc.createAndSchedule(this,e,t,n,(e=>this.na(e)));return this.zc.push(o),o}Zc(){this.Wc&&O()}verifyOperationInProgress(){}async sa(){let e;do{e=this.Gc,await e}while(e!==this.Gc)}ia(e){for(const t of this.zc)if(t.timerId===e)return!0;return!1}ra(e){return this.sa().then((()=>{this.zc.sort(((e,t)=>e.targetTimeMs-t.targetTimeMs));for(const t of this.zc)if(t.skipDelay(),"all"!==e&&t.timerId===e)break;return this.sa()}))}oa(e){this.Yc.push(e)}na(e){const t=this.zc.indexOf(e);this.zc.splice(t,1)}}class vh extends hh{constructor(e,t,n,o){super(e,t,n,o),this.type="firestore",this._queue=new Ih,this._persistenceKey=(null==o?void 0:o.name)||"[DEFAULT]"}_terminate(){return this._firestoreClient||Vh(this),this._firestoreClient.terminate()}}function Vh(e){var t,n,o;const a=e._freezeSettings(),r=(i=e._databaseId,l=(null===(t=e._app)||void 0===t?void 0:t.options.appId)||"",s=e._persistenceKey,new $e(i,l,s,(u=a).host,u.ssl,u.experimentalForceLongPolling,u.experimentalAutoDetectLongPolling,th(u.experimentalLongPollingOptions),u.useFetchStreams));var i,l,s,u;e._firestoreClient=new xa(e._authCredentials,e._appCheckCredentials,e._queue,r),(null===(n=a.cache)||void 0===n?void 0:n._offlineComponentProvider)&&(null===(o=a.cache)||void 0===o?void 0:o._onlineComponentProvider)&&(e._firestoreClient._uninitializedComponentsProvider={_offlineKind:a.cache.kind,_offline:a.cache._offlineComponentProvider,_online:a.cache._onlineComponentProvider})}!function(e,t=!0){S="9.23.0",_registerComponent$1(new Component$1("firestore",((e,{instanceIdentifier:n,options:o})=>{const a=e.getProvider("app").getImmediate(),r=new vh(new z(e.getProvider("auth-internal")),new Y(e.getProvider("app-check-internal")),function(e,t){if(!Object.prototype.hasOwnProperty.apply(e.options,["projectId"]))throw new U(q.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Oe(e.options.projectId,t)}(a,n),a);return o=Object.assign({useFetchStreams:t},o),r._setSettings(o),r}),"PUBLIC").setMultipleInstances(!0)),registerVersion$1(b,"3.13.0",e),registerVersion$1(b,"3.13.0","esm2017")}();const dateFormat=(e,t)=>{let n=copy$1(e);if(!n)return"";if("string"==typeof n){if(/^(\d{6})$/.test(n)&&(n=n.replace(/^(\d{4})(\d{2}).*$/,"$1-$2-01")),/^(\d{8})$/.test(n)&&(n=n.replace(/^(\d{4})(\d{2})(\d{2}).*$/,"$1-$2-$3")),!/^(\d{4}).([0-1]\d).([0-3]\d).*$/.test(n))return"error";const e=Number(n.slice(0,4)),t=Number(n.slice(5,7))-1,o=Number(n.slice(8,10));n=new Date(e,t,o)}return n instanceof it&&(n=n.toDate()),t=(t=(t=(t=(t=(t=(t=t.replace(/YYYY/g,n.getFullYear().toString())).replace(/MM/g,("0"+(n.getMonth()+1)).slice(-2))).replace(/DD/g,("0"+n.getDate()).slice(-2))).replace(/hh/g,("0"+n.getHours()).slice(-2))).replace(/mm/g,("0"+n.getMinutes()).slice(-2))).replace(/ss/g,("0"+n.getSeconds()).slice(-2))).replace(/SSS/g,("00"+n.getMilliseconds()).slice(-3))},_hoisted_1$6={class:"_back_ground"},_hoisted_2$6={class:"_feature_container"},_hoisted_3$4={key:0,class:"_form_container"},_hoisted_4$4=["onClick"],_hoisted_5$3=["onClick"],_hoisted_6$3={key:2,class:"_form_container"},_hoisted_7$3={class:"_button_container"},_sfc_main$7=defineComponent({__name:"CCFilterDrawer",props:{allTableDetailObj:{type:Array,default:[]},tableTitleObj:{type:Array,default:()=>[]}},emits:["searchData","allData"],setup(e,{emit:t}){const n=e,o=t,a=ref(!1),r=ref(!1),i=ref(!1),l=ref(!1),s=ref([]),u=ref([]),c=ref([]),d=ref([]),p=ref([]),h=ref([]),f=ref("");onMounted((()=>{n.tableTitleObj.map((e=>{"calendar"===e.type&&(r.value=!0),"select"===e.type&&(i.value=!0),"text"===e.type&&(l.value=!0)})),s.value=n.tableTitleObj.filter((e=>"calendar"===e.type)),u.value=n.tableTitleObj.filter((e=>"select"===e.type));const e=u.value.map((e=>e.name));for(let t=0;t<u.value.length;t++){const o=[];n.allTableDetailObj.forEach((n=>{const a=n[e[t]];"-"===a||o.includes(a)||o.push(a)})),h.value.push(o)}document.addEventListener("click",(e=>{!e.target.closest("#menuArea")&&a.value&&m()}))}));const v=e=>{e.stopPropagation(),a.value=!0},m=()=>{a.value=!1};return(e,t)=>(openBlock(),createElementBlock(Fragment,null,[createElementVNode("div",{class:"_serch_container",onClick:v},[t[4]||(t[4]=createElementVNode("span",{class:"_serch_text"},"search",-1)),createVNode(unref(CCMDIcon),{name:"manage_search",class:"_search_icon"})]),createVNode(Transition$1,{name:"slide"},{default:withCtx((()=>[withDirectives(createElementVNode("div",_hoisted_1$6,[createVNode(unref(CCCard),{id:"menuArea",class:"_menu_container"},{default:withCtx((()=>[createVNode(unref(CCMDIcon),{onClick:m,name:"arrow_forward",class:"_arrow_icon"}),createElementVNode("div",_hoisted_2$6,[r.value?(openBlock(),createElementBlock("div",_hoisted_3$4,[(openBlock(!0),createElementBlock(Fragment,null,renderList(s.value,((e,t)=>(openBlock(),createElementBlock("div",{key:t,class:"_calendar_form"},[createElementVNode("div",{onClick:e=>(e=>{c.value[e]="",d.value[e]=""})(t),class:"_clear_button"},"× クリア",8,_hoisted_4$4),createVNode(unref(CCInput),{modelValue:c.value[t],"onUpdate:modelValue":e=>c.value[t]=e,label:e.label,shadow:"",date:"",placeholder:"開始する年月を選択"},null,8,["modelValue","onUpdate:modelValue","label"]),createVNode(unref(CCInput),{modelValue:d.value[t],"onUpdate:modelValue":e=>d.value[t]=e,shadow:"",date:"",placeholder:"終了する年月を選択"},null,8,["modelValue","onUpdate:modelValue"])])))),128))])):createCommentVNode("",!0),i.value?(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(u.value,((e,t)=>(openBlock(),createElementBlock("div",{key:t,class:"_form_container",style:{width:"92%"}},[createElementVNode("div",{onClick:e=>(e=>{p.value[e]=""})(t),class:"_clear_button"},"× クリア",8,_hoisted_5$3),createVNode(unref(CCSelect),{modelValue:p.value[t],"onUpdate:modelValue":e=>p.value[t]=e,options:h.value[t],label:e.label,shadow:"",placeholder:"選択してください"},null,8,["modelValue","onUpdate:modelValue","options","label"])])))),128)):createCommentVNode("",!0),i.value?(openBlock(),createElementBlock("div",_hoisted_6$3,[createElementVNode("div",{onClick:t[0]||(t[0]=e=>{f.value=""}),class:"_clear_button"},"× クリア"),createVNode(unref(CCInput),{modelValue:f.value,"onUpdate:modelValue":t[1]||(t[1]=e=>f.value=e),label:"フリーワード",shadow:"",placeholder:"フリーワードを入れてください"},null,8,["modelValue"])])):createCommentVNode("",!0),createElementVNode("div",_hoisted_7$3,[createVNode(unref(CCButton),{onClick:t[2]||(t[2]=e=>(c.value=[],d.value=[],p.value=[],f.value="",void o("allData",!1))),style:{background:"#333333"},label:"全ての条件をクリア"}),createVNode(unref(CCButton),{onClick:t[3]||(t[3]=e=>(()=>{let e=n.allTableDetailObj;const t=[],a=[],r=f.value.toLowerCase().replace(/[Ａ-Ｚａ-ｚ０-９]/g,(e=>String.fromCharCode(e.charCodeAt(0)-65248)));s.value.forEach(((e,n)=>{const o={start:c.value[n],end:d.value[n]};t.push({label:e.name,data:o})})),u.value.forEach(((e,t)=>{const n={value:p.value[t]};a.push({label:e.name,data:n})})),e=n.allTableDetailObj.filter((e=>t.every((t=>{const n=t.data.start?dateFormat(new Date(t.data.start.replace(/\/(\d)\//,"-0$1-")),"YYYY-MM-DD"):null,o=t.data.end?dateFormat(new Date(t.data.end.replace(/\/(\d)\//,"-0$1-")),"YYYY-MM-DD"):null,a=e[t.label]?dateFormat(new Date(e[t.label].replace(/\/(\d)\//,"-0$1-")),"YYYY-MM-DD"):"";return n&&o?n<=a&&a<=o:n?n<=a:!o||a<=o})))),e=e.filter((e=>a.every((t=>!t.data.value||e[t.label]===t.data.value)))),e=e.filter((e=>{const t=Object.values(e).map((e=>String(e).toLowerCase().replace(/[Ａ-Ｚａ-ｚ０-９]/g,(e=>String.fromCharCode(e.charCodeAt(0)-65248)))));return!r||t.some((e=>e.includes(r)))})),o("searchData",{searchResults:e,flag:!0})})()),style:{background:"#00bbc9"},label:"検索"})])])])),_:1})],512),[[vShow,a.value]])])),_:1})],64))}}),CCFilterDrawer_vue_vue_type_style_index_0_scoped_eb4fc059_lang="",CCFilterDrawer=_export_sfc(_sfc_main$7,[["__scopeId","data-v-eb4fc059"]]),pdfIcon="data:image/svg+xml;base64,PCEtLT94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPy0tPgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTguMS4xLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+Cgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9Il94MzJfIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDUxMiA1MTIiIHN0eWxlPSJ3aWR0aDogMTZweDsgaGVpZ2h0OiAxNnB4OyBvcGFjaXR5OiAxOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+Cgkuc3Qwe2ZpbGw6I0QyMDAwMDt9Cjwvc3R5bGU+CjxnPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTM0Ny43NDYsMzQ2LjIwNGMtOC4zOTgtMC41MDUtMjguNTg5LDAuNjkxLTQ4LjgxLDQuNTMzYy0xMS42OTctMTEuODM5LTIxLjgyNi0yNi43NTMtMjkuMzQtMzkuMDUzCgkJYzI0LjA3OC02OS4yMzIsOC44MjktODguOTEtMTEuNjk3LTg4LjkxYy0xNi4xMTksMC0yNC4xNjcsMTcuMDExLTIyLjM3NiwzNS44MDVjMC45MDYsOS40NjEsOC45MTgsMjkuMzQsMTguNzgsNDguMjIzCgkJYy02LjA1LDE1LjkxMi0xNi44NDcsNDIuODA2LTI3LjU2NCw2Mi4yNjljLTEyLjU0NSwzLjgxMi0yMy4zMDUsOC4wNDgtMzEuMDI3LDExLjYyMmMtMzguNDY1LDE3Ljg4OC00MS41NTYsNDEuNzczLTMzLjU1Miw1MS44OTQKCQljMTUuMTk3LDE5LjIyNiw0Ny41NzYsMi42MzgsODAuMDY2LTU1LjQ2OGMyMi4yNDMtNi4zMjUsNTEuNTA4LTE0Ljc1Miw1NC4xNDYtMTQuNzUyYzAuMzA0LDAsMC43MjEsMC4wOTcsMS4yMDQsMC4yNTMKCQljMTYuMjE1LDE0LjI5OCwzNS4zNjYsMzAuNjcsNTEuMTI4LDMyLjgyNWMyMi44MDgsMy4xMzYsMzUuNzkxLTEzLjQwNiwzNC44OTEtMjMuNjkyCgkJQzM4Mi43MDMsMzYxLjQ2MSwzNzYuNjkxLDM0Ny45NDIsMzQ3Ljc0NiwzNDYuMjA0eiBNMjAzLjc2MSw0MDguODhjLTkuNDAxLDExLjE3OC0yNC42MDYsMjEuOS0yOS45NzIsMTguMzM0CgkJYy01LjM3My0zLjU3NC02LjI2NS0xMy44Niw1LjgxOS0yNS40OTdjMTIuMDc2LTExLjYyMywzMi4yOS0xNy42NTcsMzUuMzI5LTE4Ljc4N2MzLjU5LTEuMzM3LDQuNDgyLDAsNC40ODIsMS43OTEKCQlDMjE5LjQxOSwzODYuNTEyLDIxMy4xNTQsMzk3LjY4OSwyMDMuNzYxLDQwOC44OHogTTI0NC45MjMsMjU4LjU3MWMtMC44OTktMTEuMTkyLDEuMzMtMjEuOTIyLDEwLjczMS0yMy4yNgoJCWM5LjM4Ni0xLjM1MiwxMy44NjgsOS4zODYsMTAuMjkyLDI2LjgyOGMtMy41ODIsMTcuNDY0LTUuMzgsMjkuMDgtNy4xNjQsMzAuNDRjLTEuNzksMS4zMzgtMy41NjctMy4xNDQtMy41NjctMy4xNDQKCQlDMjUxLjYyNywyODIuMjcsMjQ1LjgxNSwyNjkuNzQ4LDI0NC45MjMsMjU4LjU3MXogTTI0OC41MDUsMzYzLjY5N2M0LjkxMi04LjA2NCwxNy40NDItNDAuNzAyLDE3LjQ0Mi00MC43MDIKCQljMi42ODMsNC45MjYsMjMuNjk5LDI5Ljk1NiwyMy42OTksMjkuOTU2UzI1Ny40MzgsMzYwLjEyMywyNDguNTA1LDM2My42OTd6IE0zNDUuOTk5LDM3Ny45OTUKCQljLTEzLjQxNC0xLjc2OC0zNi4yMjEtMTcuODk1LTM2LjIyMS0xNy44OTVjLTMuMTI4LTEuMzM3LDI0Ljk5Mi01LjE1NywzNS43OS00LjQ2NmMxMy44NzUsMC45LDE4Ljc5NCw2LjcxOCwxOC43OTQsMTIuNTMKCQlDMzY0LjM2MiwzNzMuOTgyLDM1OS40NDMsMzc5Ljc4NywzNDUuOTk5LDM3Ny45OTV6IiBzdHlsZT0iZmlsbDogcmdiKDIxMCwgMCwgMCk7Ij48L3BhdGg+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDYxLjMzNiwxMDcuNjZsLTk4LjM0LTk4LjM0OEwzNTMuNjgzLDBIMzQwLjVIMTM5Ljk0NkM5Mi41OTMsMCw1NC4wNjksMzguNTMyLDU0LjA2OSw4NS45MDF2Ni41N0g0MS4zNTMKCQl2MTAyLjczM2gxMi43MTZ2MjMwLjkwNGMwLDQ3LjM2MSwzOC41MjUsODUuODkzLDg1Ljg3OCw4NS44OTNoMjQ0LjgwOGM0Ny4zNjgsMCw4NS44OTMtMzguNTMyLDg1Ljg5My04NS44OTNWMTMwLjE1NXYtMTMuMTc2CgkJTDQ2MS4zMzYsMTA3LjY2eiBNMzg0Ljc1NCw0ODAuMTkzSDEzOS45NDZjLTI5Ljg3NSwwLTU0LjA4Ni0yNC4yMTItNTQuMDg2LTU0LjA4NlYxOTUuMjAzaDE1Ny4zMVY5Mi40N0g4NS44NnYtNi41NwoJCWMwLTI5Ljg4MiwyNC4yMTEtNTQuMTAyLDU0LjA4Ni01NC4xMDJIMzMyLjg5djYwLjg5NGMwLDI0Ljg4OCwyMC4xOTEsNDUuMDY1LDQ1LjA3OSw0NS4wNjVoNjAuODg2djI4OC4zNDkKCQlDNDM4Ljg1NSw0NTUuOTgyLDQxNC42MzYsNDgwLjE5MywzODQuNzU0LDQ4MC4xOTN6IE04OC4wOSwxNjYuMDg2di00Ny41NTRjMC0wLjgzOSwwLjY4My0xLjUyNCwxLjUyNC0xLjUyNGgxNS4xMDgKCQljMi40OSwwLDQuNzg2LDAuNDA5LDYuODM3LDEuMjEyYzIuMDI5LDAuNzk1LDMuODEyLDEuOTEsNS4yOTksMy4zMjJjMS41MDEsMS40MTksMi42NTMsMy4xNDQsMy40MzMsNS4xMjEKCQljMC43OCwxLjkzOSwxLjE4Miw0LjA1OCwxLjE4Miw2LjI5NGMwLDIuMjgyLTAuNDAyLDQuNDE0LTEuMTksNi4zMzJjLTAuNzgsMS45MTgtMS45MzIsMy42MTktMy40MTgsNS4wNTQKCQljLTEuNDc5LDEuNDI3LTMuMjcsMi41NDktNS4zMjEsMy4zMjljLTIuMDM2LDAuNzgtNC4zMzIsMS4xNzQtNi44MjIsMS4xNzRoLTYuMzc2djE3LjI0MWMwLDAuODQtMC42ODMsMS41MjMtMS41MjMsMS41MjNoLTcuMjA4CgkJQzg4Ljc3MywxNjcuNjEsODguMDksMTY2LjkyNiw4OC4wOSwxNjYuMDg2eiBNMTM0LjY4NSwxNjYuMDg2di00Ny41NTRjMC0wLjgzOSwwLjY4NC0xLjUyNCwxLjUyNC0xLjUyNGgxNi42OTgKCQljMy4xNzMsMCw1Ljk2OCwwLjUyOCw4LjMyNCwxLjU2OGMyLjM4NiwxLjA2Miw0LjUxOCwyLjc1LDYuMzQ3LDUuMDA5YzAuOTQ0LDEuMTg5LDEuNjk0LDIuNTA0LDIuMjM2LDMuOTE2CgkJYzAuNTI4LDEuMzc1LDAuOTI5LDIuODYyLDEuMTg5LDQuNDA3YzAuMjUzLDEuNTMxLDAuNDAxLDMuMTgxLDAuNDUzLDQuOTU3YzAuMDQ1LDEuNjk0LDAuMDY3LDMuNTE1LDAuMDY3LDUuNDQ3CgkJYzAsMS45MjQtMC4wMjIsMy43NDYtMC4wNjcsNS40NGMtMC4wNTIsMS43NjktMC4yLDMuNDI2LTAuNDUzLDQuOTY0Yy0wLjI2LDEuNTQ2LTAuNjYxLDMuMDI1LTEuMTg5LDQuMzk5CgkJYy0wLjU1LDEuNDI3LTEuMywyLjc0My0yLjIzLDMuOTA5Yy0xLjg0MiwyLjI4Mi0zLjk3NiwzLjk2OS02LjM1NCw1LjAxNmMtMi4zMzQsMS4wNC01LjEzNSwxLjU2OC04LjMyNCwxLjU2OGgtMTYuNjk4CgkJQzEzNS4zNjgsMTY3LjYxLDEzNC42ODUsMTY2LjkyNiwxMzQuNjg1LDE2Ni4wODZ6IE0yMTQuMjY5LDEzNy45ODFjMC44NCwwLDEuNTIzLDAuNjg0LDEuNTIzLDEuNTI0djYuNDgKCQljMCwwLjg0LTAuNjgzLDEuNTI0LTEuNTIzLDEuNTI0aC0xOC4yNDR2MTguNTc5YzAsMC44NC0wLjY4NCwxLjUyMy0xLjUyNCwxLjUyM2gtNy4yMDljLTAuODQsMC0xLjUyMy0wLjY4My0xLjUyMy0xLjUyM3YtNDcuNTU0CgkJYzAtMC44MzksMC42ODMtMS41MjQsMS41MjMtMS41MjRoMjcuNjUzYzAuODM5LDAsMS41MjQsMC42ODQsMS41MjQsMS41MjR2Ni40OGMwLDAuODQtMC42ODQsMS41MjQtMS41MjQsMS41MjRoLTE4LjkydjExLjQ0NAoJCUgyMTQuMjY5eiIgc3R5bGU9ImZpbGw6IHJnYigyMTAsIDAsIDApOyI+PC9wYXRoPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTEwOS40MTgsMTM3LjcwNmMxLjIxMi0xLjA5MiwxLjc5OC0yLjY0NSwxLjc5OC00Ljc0OWMwLTIuMDk2LTAuNTg3LTMuNjQ5LTEuNzk4LTQuNzQxCgkJYy0xLjI2My0xLjEzLTIuOTI4LTEuNjgtNS4wOTgtMS42OGgtNS45NzV2MTIuODQ4aDUuOTc1QzEwNi40ODksMTM5LjM4NSwxMDguMTU1LDEzOC44MzYsMTA5LjQxOCwxMzcuNzA2eiIgc3R5bGU9ImZpbGw6IHJnYigyMTAsIDAsIDApOyI+PC9wYXRoPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTE1Ni4xMzksMTU3LjQ4MWMxLjEzLTAuNDI0LDIuMTAzLTEuMTA3LDIuOTczLTIuMDg4YzAuOTQ0LTEuMDU1LDEuNTM4LTIuNTcxLDEuNzY5LTQuNTExCgkJYzAuMjYtMi4yMDgsMC4zODYtNS4wOTEsMC4zODYtOC41NjljMC0zLjQ4NS0wLjEyNi02LjM2OS0wLjM4Ni04LjU2OWMtMC4yMzEtMS45NDYtMC44MjUtMy40NjItMS43NjItNC41MQoJCWMtMC44NjktMC45ODItMS44NzMtMS42NzktMi45NzItMi4wODljLTEuMTgyLTAuNDUzLTIuNTM0LTAuNjc2LTQuMDQyLTAuNjc2aC03LjE2NHYzMS42OGg3LjE2NAoJCUMxNTMuNjA1LDE1OC4xNSwxNTQuOTY1LDE1Ny45MjcsMTU2LjEzOSwxNTcuNDgxeiIgc3R5bGU9ImZpbGw6IHJnYigyMTAsIDAsIDApOyI+PC9wYXRoPgo8L2c+Cjwvc3ZnPgo=",_hoisted_1$5={key:0,style:{"user-select":"none"}},_hoisted_2$5=["accept"],_hoisted_3$3=["src"],_hoisted_4$3={key:0,class:"_menu_button"},_hoisted_5$2={key:0,class:"_modal"},_hoisted_6$2=["src"],_hoisted_7$2={key:1,style:{"user-select":"none"}},_hoisted_8$2=["accept"],_hoisted_9$2=["src"],_hoisted_10$2={key:0,class:"_menu_button"},_hoisted_11$1={key:0,class:"_modal"},_hoisted_12$1=["src"],_hoisted_13$1={key:2,style:{"user-select":"none"}},_hoisted_14=["accept"],_hoisted_15=["src"],_hoisted_16={key:0,class:"_menu_button"},_hoisted_17={key:0,class:"_modal"},_hoisted_18=["src"],_hoisted_19=["accept"],_hoisted_20={key:0},_sfc_main$6=defineComponent({__name:"CCImageUploader",props:{modelValue:{type:Object},label:{type:String,default:"ファイルを選択"},outline:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},square:{type:Boolean,default:!1},size:{type:String,default:"xs"},imageWidth:{type:String,default:"260px"},imageHeight:{type:String,default:"175px"},allMiniSize:{type:Boolean,default:!1},color:{type:String,default:"secondary"},url:{type:String,default:""},uploaded:{type:Boolean,default:!0},showCustomMenu:{type:Object,default:{download:!0,delete:!0,shareUrl:!0,edit:!0,close:!0}},isNotMenu:{type:Boolean,default:!1},pdfTitle:{type:String,default:""},mime:{type:String,default:""},accept:{type:String,default:""},isNotUpload:{type:Boolean,default:!1},isSingleDrop:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","onSelect","storageToFile","fileObjDelete","shareUrl","download"],setup(e,{emit:t}){useCssVars((t=>({db993cda:e.imageWidth,cb2c520c:e.imageHeight})));const n=e,o=ref(null),a=ref(null),r=ref(null),i=ref(null),l=ref(null),s=ref(null),u=ref(null),c=ref(!1),d=ref(!1),p=ref(!1),h=ref(!1),f=ref(!1),v=t,m=()=>{n.isNotUpload||u.value&&u.value.click()};watch((()=>[n.url,n.mime]),(()=>{n.url&&n.mime.includes("image")?o.value=n.url:n.url&&n.mime.includes("pdf")?r.value=n.url:n.url&&n.mime.includes("video")?l.value=n.url:n.url&&(o.value=n.url)}),{immediate:!0});const g=e=>{if(n.accept)return((e,t)=>{var n;const o=null==(n=e.split("/").pop())?void 0:n.toLowerCase(),a=t.split(",").map((e=>e.trim().toLowerCase()));for(const t of a){if("*"===t)return!0;if(t.startsWith("image/")&&e.startsWith("image/"))return!0;if(a.includes(`${o}`)||a.includes(`.${o}`))return!0;if("svg"===t&&"image/svg+xml"===e)return!0}return!1})(e.type,n.accept)&&e.type.startsWith("image/")?(o.value=URL.createObjectURL(e),a.value=e,r.value=null,i.value=null,l.value=null,s.value=null,v("storageToFile",a.value),void v("update:modelValue",a.value)):"application/pdf"===e.type&&n.accept.includes("pdf")?(r.value=URL.createObjectURL(e),i.value=e,o.value=null,a.value=null,l.value=null,s.value=null,v("storageToFile",i.value),void v("update:modelValue",i.value)):e.type.startsWith("video/")&&n.accept.includes("video")?(l.value=URL.createObjectURL(e),s.value=e,o.value=null,a.value=null,r.value=null,i.value=null,v("storageToFile",s.value),void v("update:modelValue",s.value)):void alert("設定された拡張子以外のファイルが選択されました。許可されている拡張子のファイルを選択してください。");e.type.startsWith("image/")?(o.value=URL.createObjectURL(e),a.value=e,r.value=null,i.value=null,l.value=null,s.value=null,v("storageToFile",a.value),v("update:modelValue",a.value)):"application/pdf"===e.type?(r.value=URL.createObjectURL(e),i.value=e,o.value=null,a.value=null,l.value=null,s.value=null,v("storageToFile",i.value),v("update:modelValue",i.value)):e.type.startsWith("video/")?(l.value=URL.createObjectURL(e),s.value=e,o.value=null,a.value=null,r.value=null,i.value=null,v("storageToFile",s.value),v("update:modelValue",s.value)):alert("画像・PDF・動画ファイルを選択してください。")},_=e=>{var t,o,a,r;if(n.isSingleDrop){if(e.target instanceof HTMLInputElement&&1!==(null==(t=e.target.files)?void 0:t.length))return void alert("複数のファイルが選択されました。単一のファイルを選択してください。");if(e instanceof DragEvent&&1!==(null==(o=e.dataTransfer)?void 0:o.files.length))return void alert("複数のファイルが選択されました。単一のファイルを選択してください。")}if(!n.isNotUpload){if(e.target instanceof HTMLInputElement){const t=null==(a=e.target.files)?void 0:a[0];g(t)}if(e instanceof DragEvent){const t=null==(r=e.dataTransfer)?void 0:r.files[0];g(t)}}},b=e=>{"delete"===e&&(o.value=null,a.value=null,r.value=null,i.value=null,l.value=null,s.value=null,c.value=!1,v("fileObjDelete")),"edit"===e&&m(),"shareUrl"===e&&v("shareUrl"),"download"===e&&v("download"),f.value=!1},y=e=>{g(e)},w=()=>{n.isNotUpload||(c.value=!0)},C=()=>{n.isNotUpload||(c.value=!1)},S=e=>{"image"===e?d.value=!0:"pdf"===e?p.value=!0:"video"===e&&(h.value=!0),document.body.style.overflow="hidden"},k=e=>{"image"===e?d.value=!1:"pdf"===e?p.value=!1:"video"===e&&(h.value=!1),document.body.style.overflow="auto"};return(t,a)=>{var s;return o.value?(openBlock(),createElementBlock("div",_hoisted_1$5,[createElementVNode("input",{type:"file",ref_key:"fileInput",ref:u,style:{display:"none"},onChange:_,accept:e.accept},null,40,_hoisted_2$5),createElementVNode("div",{class:normalizeClass({_preview_container_mini:e.allMiniSize,_preview_container:!e.allMiniSize})},[createElementVNode("img",{src:o.value,class:"_preview_image",onClick:a[0]||(a[0]=e=>S("image"))},null,8,_hoisted_3$3),e.isNotMenu?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_4$3,[createVNode(unref(CCImageMenuButton),{uploaded:!0,color:e.color,miniSize:e.allMiniSize,showCustomMenu:e.showCustomMenu,opacity:"",modelValue:f.value,"onUpdate:modelValue":a[1]||(a[1]=e=>f.value=e),onOnClick:b,onFileChange:y},null,8,["color","miniSize","showCustomMenu","modelValue"])]))],2),(openBlock(),createBlock(Teleport,{to:"body"},[d.value?(openBlock(),createElementBlock("div",_hoisted_5$2,[createElementVNode("div",{class:"_modal_background",onClick:a[2]||(a[2]=e=>k("image"))}),createElementVNode("img",{src:o.value,class:"_modal_image"},null,8,_hoisted_6$2),createVNode(unref(CCMDIcon),{name:"close",onClick:a[3]||(a[3]=e=>k("image")),class:"_modal_close"})])):createCommentVNode("",!0)]))])):r.value?(openBlock(),createElementBlock("div",_hoisted_7$2,[createElementVNode("input",{type:"file",ref_key:"fileInput",ref:u,style:{display:"none"},onChange:_,accept:e.accept},null,40,_hoisted_8$2),createElementVNode("div",{class:normalizeClass({_preview_container:!e.allMiniSize,_preview_container_mini:e.allMiniSize})},[createElementVNode("div",{class:normalizeClass({_preview_image:!e.allMiniSize,_preview_image_mini:e.allMiniSize}),onClick:a[4]||(a[4]=e=>S("pdf"))},[createElementVNode("div",{class:normalizeClass({_pdf_container:!e.allMiniSize,_pdf_container_mini:e.allMiniSize})},[createElementVNode("div",null,toDisplayString((null==(s=i.value)?void 0:s.name)??e.pdfTitle),1),createElementVNode("img",{src:unref(pdfIcon)},null,8,_hoisted_9$2)],2)],2),e.isNotMenu?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_10$2,[createVNode(unref(CCImageMenuButton),{uploaded:e.uploaded,color:e.color,miniSize:e.allMiniSize,modelValue:f.value,"onUpdate:modelValue":a[5]||(a[5]=e=>f.value=e),opacity:"",showCustomMenu:e.showCustomMenu,onOnClick:b,onFileChange:y},null,8,["uploaded","color","miniSize","modelValue","showCustomMenu"])]))],2),(openBlock(),createBlock(Teleport,{to:"body"},[p.value?(openBlock(),createElementBlock("div",_hoisted_11$1,[createElementVNode("div",{class:"_modal_background",onClick:a[6]||(a[6]=e=>k("pdf"))}),createElementVNode("embed",{src:r.value??n.url,class:"_modal_image",width:"85%",height:"85%"},null,8,_hoisted_12$1),createVNode(unref(CCMDIcon),{name:"close",onClick:a[7]||(a[7]=e=>k("pdf")),class:"_modal_close"})])):createCommentVNode("",!0)]))])):l.value?(openBlock(),createElementBlock("div",_hoisted_13$1,[createElementVNode("input",{type:"file",ref_key:"fileInput",ref:u,style:{display:"none"},onChange:_,accept:e.accept},null,40,_hoisted_14),createElementVNode("div",{class:normalizeClass({_preview_container:!e.allMiniSize,_preview_container_mini:e.allMiniSize})},[createElementVNode("div",{class:normalizeClass([{_preview_video:!e.allMiniSize,_preview_video_mini:e.allMiniSize},"_video_thumb"]),onClick:a[8]||(a[8]=e=>S("video"))},[createElementVNode("video",{src:l.value,class:"_video_thumb",controls:"",muted:""},null,8,_hoisted_15)],2),e.isNotMenu?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_16,[createVNode(unref(CCImageMenuButton),{uploaded:e.uploaded,color:e.color,miniSize:e.allMiniSize,modelValue:f.value,"onUpdate:modelValue":a[9]||(a[9]=e=>f.value=e),opacity:"",showCustomMenu:e.showCustomMenu,onOnClick:b,onFileChange:y},null,8,["uploaded","color","miniSize","modelValue","showCustomMenu"])]))],2),(openBlock(),createBlock(Teleport,{to:"body"},[h.value?(openBlock(),createElementBlock("div",_hoisted_17,[createElementVNode("div",{class:"_modal_background",onClick:a[10]||(a[10]=e=>k("video"))}),createElementVNode("video",{src:l.value,class:"_modal_video",controls:""},null,8,_hoisted_18),createVNode(unref(CCMDIcon),{name:"close",onClick:a[11]||(a[11]=e=>k("video")),class:"_modal_close"})])):createCommentVNode("",!0)]))])):(openBlock(),createElementBlock("div",{key:3,onClick:a[12]||(a[12]=t=>e.allMiniSize?m():void 0)},[createElementVNode("div",{class:normalizeClass(["_drop_area",{_drag:c.value,_drop_area_mini:e.allMiniSize}]),onDragover:withModifiers(w,["prevent"]),onDragleave:C,onDrop:withModifiers(_,["prevent"]),style:normalizeStyle(e.isNotUpload?{display:"flex",alignItems:"center",justifyContent:"center"}:{})},[createElementVNode("input",{type:"file",ref_key:"fileInput",ref:u,style:{display:"none"},onChange:_,accept:e.accept},null,40,_hoisted_19),e.isNotUpload?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_20,a[13]||(a[13]=[createTextVNode("ドラッグ＆ドロップで"),createElementVNode("br",null,null,-1),createTextVNode("ファイルをアップロード")]))),createVNode(unref(CCMDIcon),{name:"image_not_supported",style:{"align-items":"center"},class:normalizeClass({_image_not_supported:!e.allMiniSize,_image_not_supported_mini:e.allMiniSize,_not_upload:e.isNotUpload})},null,8,["class"]),e.allMiniSize?createCommentVNode("",!0):(openBlock(),createBlock(unref(CCButton),{key:1,onClick:m,label:e.label,size:e.size,color:e.color,square:e.square,rounded:e.rounded,outline:e.outline,class:"_file_select_button",disabled:e.disabled},null,8,["label","size","color","square","rounded","outline","disabled"]))],38)]))}}}),CCImageUploader_vue_vue_type_style_index_0_scoped_436fa35f_lang="",CCImageUploader=_export_sfc(_sfc_main$6,[["__scopeId","data-v-436fa35f"]]),_hoisted_1$4={key:0},_hoisted_2$4={key:1},_sfc_main$5=defineComponent({__name:"CCImageMenuButton",props:{color:{type:String,default:"secondary"},miniSize:{type:Boolean,default:!1},uploaded:{type:Boolean,default:!0},opacity:{type:Boolean,default:!1},modelValue:{type:Boolean},showCustomMenu:{type:Object,default:{download:!0,delete:!0,shareUrl:!0,edit:!0,close:!0}}},emits:["update:modelValue","onClick","fileChange"],setup(e,{emit:t}){useCssVars((e=>({"8ea34adc":u.value})));const n=e,o=t;onMounted((()=>{const e=document.getElementById("menuButton");if(e){const t=e.getBoundingClientRect();c.value={top:t.top+window.scrollY,left:t.left+window.scrollX}}}));const a=computed({get:()=>n.modelValue,set(e){o("update:modelValue",e)}}),r=()=>{a.value=!a.value,d()},i=ref(null),l=ref(null),s=e=>{i.value&&l.value&&(i.value.contains(e.target)||l.value.contains(e.target)||!a.value||(a.value=!1))};onMounted((()=>{document.addEventListener("click",s)})),onBeforeUnmount((()=>{document.removeEventListener("click",s)}));const u=computed((()=>"primary"===n.color?"var(--c-primary)":"secondary"===n.color?"var(--c-secondary)":"positive"===n.color?"var(--c-positive)":"negative"===n.color?"var(--c-negative)":"warning"===n.color?"var(--c-warning)":void 0)),c=ref({top:0,left:0}),d=()=>{const e=i.value;if(e){const t=e.getBoundingClientRect(),o=130,a=200,r=window.innerWidth,i=window.innerHeight,l=n.miniSize?30:50,s=n.miniSize?160:80,u=t.top+window.scrollY,d=t.left+window.scrollX;d+o>r?c.value={top:u-120,left:d-o}:t.bottom+a>i?c.value={top:u-a+s,left:d-150}:c.value={top:u+l,left:d}}};return window.addEventListener("resize",d),onMounted((()=>{d()})),onBeforeUnmount((()=>{window.removeEventListener("resize",d)})),(t,n)=>(openBlock(),createElementBlock(Fragment,null,[createElementVNode("div",{ref_key:"menuButtonRef",ref:i,class:normalizeClass(["_circle",{_opacity:e.opacity,_circle_mini:e.miniSize}]),onClick:n[0]||(n[0]=e=>r())},[createElementVNode("div",{class:normalizeClass(["_line",{_line_mini:e.miniSize}])},null,2),createElementVNode("div",{class:normalizeClass(["_line",{_line_mini:e.miniSize}])},null,2),createElementVNode("div",{class:normalizeClass(["_line",{_line_mini:e.miniSize}])},null,2)],2),(openBlock(),createBlock(Teleport,{to:"body",ref_key:"menuCardRef",ref:l},[createVNode(Transition$1,{name:"fade"},{default:withCtx((()=>[withDirectives(createVNode(unref(CCCard),{class:"_card",style:normalizeStyle({top:c.value.top+"px",left:c.value.left+"px"})},{default:withCtx((()=>[e.uploaded?(openBlock(),createElementBlock("div",_hoisted_1$4,[e.showCustomMenu.download?(openBlock(),createElementBlock("div",{key:0,class:"_button",onClick:n[1]||(n[1]=()=>o("onClick","download"))}," ダウンロード ")):createCommentVNode("",!0),e.showCustomMenu.edit?(openBlock(),createElementBlock("div",{key:1,class:"_button",onClick:n[2]||(n[2]=()=>o("onClick","edit"))}," 編集 ")):createCommentVNode("",!0),e.showCustomMenu.delete?(openBlock(),createElementBlock("div",{key:2,class:"_button",onClick:n[3]||(n[3]=()=>o("onClick","delete"))}," 削除 ")):createCommentVNode("",!0),e.showCustomMenu.shareUrl?(openBlock(),createElementBlock("div",{key:3,class:"_button",onClick:n[4]||(n[4]=()=>o("onClick","shareUrl"))}," 共有用URL ")):createCommentVNode("",!0)])):(openBlock(),createElementBlock("div",_hoisted_2$4,[e.showCustomMenu.edit?(openBlock(),createElementBlock("div",{key:0,class:"_button",onClick:n[5]||(n[5]=()=>o("onClick","edit"))}," 編集 ")):createCommentVNode("",!0),e.showCustomMenu.delete?(openBlock(),createElementBlock("div",{key:1,class:"_button",onClick:n[6]||(n[6]=()=>o("onClick","delete"))}," 削除 ")):createCommentVNode("",!0)])),createElementVNode("div",{class:"_button",onClick:n[7]||(n[7]=e=>r())},"閉じる")])),_:1},8,["style"]),[[vShow,a.value]])])),_:1})],512))],64))}}),CCImageMenuButton_vue_vue_type_style_index_0_scoped_b854d7ad_lang="",CCImageMenuButton=_export_sfc(_sfc_main$5,[["__scopeId","data-v-b854d7ad"]]),defaultData=[{title:"Subject1Subject1",icon:"rocket_launch",path:"/a",subtitle:[]},{title:"Subject2",icon:"diamond",path:"/Test",subtitle:[{title:"Subtitle1",icon:"public",path:"/Test1",subjectIndex:1,infoNumber:87},{title:"Subtitle2",icon:"emoji_nature",path:"/Test2",subjectIndex:1},{title:"Subtitle3",icon:"sunny",path:"/Test3",subjectIndex:1}]},{title:"Subject3",icon:"grade",image:"https://firebasestorage.googleapis.com/v0/b/testafterfollowconcierge.appspot.com/o/pointItem%2F0dj4fSgjuHwKSLT9hgqy%2F1.jpg?alt=media&token=9d6ac2d8-878a-4133-9570-dbccdada91f9",path:"/Test3",subtitle:[]},{title:"Subject4",icon:"thumb_up",path:"/Test4",subtitle:[{title:"Subtitle4",icon:"handshake",path:"/Test41",subjectIndex:3},{title:"Subtitle5",icon:"eco",path:"/Test42",subjectIndex:3},{title:"Subtitle6",icon:"emoji_people",path:"/Test43",subjectIndex:3},{title:"Subtitle7",icon:"recycling",path:"/Test44",subjectIndex:3},{title:"Subtitle8",icon:"wc",path:"/Test45",subjectIndex:3},{title:"顧客情報",icon:"emoji_people",path:"/customer/setting",subjectIndex:3},{title:"管理者情報",icon:"recycling",path:"/admin/setting",subjectIndex:3},{title:"Subtitle11",icon:"wc",path:"/Test46",subjectIndex:3}]}],_hoisted_1$3={class:"_button_container"},_hoisted_2$3={class:"_left_contain"},_hoisted_3$2=["onClick"],_hoisted_4$2=["src","alt"],_hoisted_5$1=["innerHTML"],_hoisted_6$1={class:"_right_area"},_hoisted_7$1=["onClick"],_hoisted_8$1={key:0,class:"_select_sign"},_hoisted_9$1=["innerHTML"],_hoisted_10$1={key:1,class:"_submenu_badge"},_sfc_main$4=defineComponent({__name:"CCGlobalNavi",props:{fullPath:{type:String,default:"/"},subjects:{type:Array,default:defaultData}},emits:["update:fullPath","push"],setup(e,{emit:t}){const n=e,o=t,a=computed({get:()=>n.fullPath,set:e=>{o("update:fullPath",e)}}),r=ref(0),i=ref(copy$1(n.subjects));watch((()=>n.subjects),(()=>{i.value=copy$1(n.subjects)}),{deep:!0}),watch((()=>a.value),(()=>{a.value||((e,t)=>{const n=e.split("/"),o=n[n.length-1];t.map(((e,t)=>{e.subtitle.length?e.subtitle.map(((e,n)=>{e.path===`/${o}`&&(r.value=t)})):e.path===`/${o}`&&(r.value=t)}))})(a.value,i.value)}),{immediate:!0}),onMounted((()=>{l(a.value)}));const l=e=>{i.value.forEach(((t,n)=>{t.subtitle.length?t.subtitle.some((t=>e===t.path))&&(r.value=n):e===t.path&&(r.value=n)}))};return(e,t)=>{var n;return openBlock(),createElementBlock(Fragment,null,[createElementVNode("div",_hoisted_1$3,[createElementVNode("div",_hoisted_2$3,[(openBlock(!0),createElementBlock(Fragment,null,renderList(i.value,((e,t)=>(openBlock(),createElementBlock("div",{key:e.title,class:"_left_area"},[createElementVNode("button",{class:normalizeClass(["_subject_button",{_subject_button_active:t===r.value}]),onClick:n=>((e,t)=>{let n="";e.subtitle[0]?r.value!==t&&(n=e.subtitle[0].path):n=e.path,o("push",n),a.value=n,r.value=t})(e,t)},[e.image?(openBlock(),createElementBlock("img",{key:1,src:e.image,alt:e.title,class:"_subject_image"},null,8,_hoisted_4$2)):(openBlock(),createBlock(unref(CCMDIcon),{key:0,name:e.icon,class:"_subject_icon"},null,8,["name"])),createElementVNode("div",{innerHTML:e.title},null,8,_hoisted_5$1)],10,_hoisted_3$2)])))),128)),t[0]||(t[0]=createElementVNode("div",{class:"_design1_space"},null,-1))]),createElementVNode("div",_hoisted_6$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList((null==(n=i.value[r.value])?void 0:n.subtitle)??[],(e=>(openBlock(),createElementBlock("button",{key:e.path,onClick:t=>{return n=e.path,a.value=n,void o("push",n);var n},class:normalizeClass(["_submenu_button",{_submenu_button_active:e.path===a.value}])},[e.path===a.value?(openBlock(),createElementBlock("div",_hoisted_8$1)):createCommentVNode("",!0),createElementVNode("div",{innerHTML:e.title,style:normalizeStyle("margin-left: "+(e.path===a.value?"15px":"20px"))},null,12,_hoisted_9$1),e.infoNumber?(openBlock(),createElementBlock("div",_hoisted_10$1,toDisplayString(e.infoNumber),1)):createCommentVNode("",!0)],10,_hoisted_7$1)))),128)),t[1]||(t[1]=createElementVNode("div",{class:"_submenu_space"},null,-1))])]),t[2]||(t[2]=createElementVNode("div",{class:"_design1_space"},[createElementVNode("div",{class:"_submenu_space _submenu_width"})],-1))],64)}}}),CCGlobalNavi_vue_vue_type_style_index_0_scoped_48b95bf7_lang="",CCGlobalNavi=_export_sfc(_sfc_main$4,[["__scopeId","data-v-48b95bf7"]]),_hoisted_1$2={class:"_back_ground"},_hoisted_2$2={class:"_feature_container"},_hoisted_3$1=["onClick"],_hoisted_4$1=["onClick"],_hoisted_5={class:"_checbox_label"},_hoisted_6=["onClick"],_hoisted_7={class:"_check_radio_content"},_hoisted_8={class:"_checbox_label"},_hoisted_9=["onClick"],_hoisted_10={class:"_check_radio_content"},_hoisted_11={class:"_calendar_form"},_hoisted_12=["onClick"],_hoisted_13={class:"_button_container"},_sfc_main$3=defineComponent({__name:"CCFilterDrawerForMagnetarTabel",props:{modelValue:{type:Array,default:()=>[]}},emits:["filter","update:modelValue"],setup(e,{emit:t}){const n=e,o=t,a=computed({get:()=>n.modelValue,set:e=>{o("update:modelValue",e)}}),r=ref(!1),i=ref(!1),l=ref([]),s=ref([]),u=ref(!1),c=ref([]),d=ref([]),p=ref([]),h=ref(!1),f=ref([]),v=ref([]),m=ref([]),g=ref(!1),_=ref([]),b=ref([]),y=ref([]),w=ref(!1),C=ref([]),S=ref([]),k=ref([]);onMounted((()=>{if(a.value.forEach((e=>{"input"===e.filterType&&(i.value=!0),"select"===e.filterType&&(u.value=!0),"checkboxes"===e.filterType&&(h.value=!0),"radio"===e.filterType&&(g.value=!0),"calendar"===e.filterType&&(w.value=!0)})),i.value&&(l.value=a.value.filter((e=>"input"===e.filterType))),u.value){c.value=a.value.filter((e=>"select"===e.filterType));const e=c.value.map((e=>e.options??[]));d.value.push(...e)}if(h.value){f.value=a.value.filter((e=>"checkboxes"===e.filterType));const e=f.value.map((e=>e.options??[]));v.value.push(...e),f.value.forEach(((e,t)=>{m.value[t]=((null==e?void 0:e.options)??[]).map((()=>!1))}))}if(g.value){_.value=a.value.filter((e=>"radio"===e.filterType));const e=_.value.map((e=>e.options??[]));b.value.push(...e)}w.value&&(C.value=a.value.filter((e=>"calendar"===e.filterType))),document.addEventListener("click",(e=>{!e.target.closest("#menuArea")&&r.value&&M()})),$()})),watch(s,(e=>{l.value.forEach(((t,n)=>{const o=e[n]||"";t.search=o}))}),{deep:!0}),watch(p,(e=>{c.value.forEach(((t,n)=>{t.search=e[n]||""}))}),{deep:!0}),watch(m,(e=>{const t=v.value.map(((t,n)=>t.filter(((t,o)=>e[n][o]))));f.value.forEach(((e,n)=>{e.search=t[n]||[]}))}),{deep:!0}),watch(y,(e=>{_.value.forEach(((t,n)=>{t.search=e[n]||""}))}),{deep:!0}),watch([S,k],(([e,t])=>{C.value.forEach(((n,o)=>{n.search={start:e[o]||"",end:t[o]||""}}))}),{deep:!0});const x=e=>{e.stopPropagation(),r.value=!0},M=()=>{r.value=!1},T=(e,t)=>{"input"===e&&(s.value[t]=""),"select"===e&&(p.value[t]=""),"checkboxes"===e&&m.value[t].fill(!1),"radio"===e&&(y.value[t]=""),"calendar"===e&&(S.value=new Array(C.value.length).fill(""),k.value=new Array(C.value.length).fill(""))},$=()=>{S.value=new Array(C.value.length).fill(""),k.value=new Array(C.value.length).fill(""),p.value=[],m.value.forEach((e=>{e.fill(!1)})),y.value=[],s.value=[],o("filter",!1)},E=e=>{if(""===e)return"";if(!/^\d{4}\/\d{1,2}\/\d{1,2}$/.test(e))return"YYYY/MM/DD形式で入力してください";const[t,n,o]=e.split("/"),a=Number(t),r=Number(n),i=Number(o);if(r<1||r>12)return"月は1〜12の間で入力してください";if(i<1||i>31)return"日は1〜31の間で入力してください";const l=new Date(a,r-1,i);return l.getFullYear()!==a||l.getMonth()!==r-1||l.getDate()!==i?"存在しない日付です":""};return(e,t)=>(openBlock(),createElementBlock("div",null,[createElementVNode("div",{class:"_serch_container",onClick:x},[t[2]||(t[2]=createElementVNode("span",{class:"_serch_text"},"search",-1)),createVNode(unref(CCMDIcon),{name:"manage_search",class:"_search_icon"})]),createVNode(Transition$1,{name:"slide"},{default:withCtx((()=>[withDirectives(createElementVNode("div",_hoisted_1$2,[createVNode(unref(CCCard),{id:"menuArea",class:"_menu_container"},{default:withCtx((()=>[createVNode(unref(CCMDIcon),{onClick:M,name:"arrow_forward",class:"_arrow_icon"}),createElementVNode("div",_hoisted_2$2,[i.value?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(l.value,((e,t)=>(openBlock(),createElementBlock("div",{key:t,class:"_form_container"},[createElementVNode("div",{onClick:n=>T(e.filterType,t),class:"_clear_button"}," × クリア ",8,_hoisted_3$1),createVNode(unref(CCInput),{modelValue:s.value[t],"onUpdate:modelValue":e=>s.value[t]=e,label:e.label,placeholder:e.placeholder,type:"text",shadow:""},null,8,["modelValue","onUpdate:modelValue","label","placeholder"])])))),128)):createCommentVNode("",!0),u.value?(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(c.value,((e,t)=>(openBlock(),createElementBlock("div",{key:t,class:"_form_container"},[createElementVNode("div",{onClick:n=>T(e.filterType,t),class:"_clear_button"}," × クリア ",8,_hoisted_4$1),createVNode(unref(CCSelect),{modelValue:p.value[t],"onUpdate:modelValue":e=>p.value[t]=e,options:d.value[t],label:e.label,shadow:"",placeholder:e.placeholder},null,8,["modelValue","onUpdate:modelValue","options","label","placeholder"])])))),128)):createCommentVNode("",!0),h.value?(openBlock(!0),createElementBlock(Fragment,{key:2},renderList(f.value,((e,t)=>(openBlock(),createElementBlock("div",{key:t,class:"_checkbox_radio_container"},[createElementVNode("div",_hoisted_5,toDisplayString(e.label),1),createElementVNode("div",{onClick:n=>T(e.filterType,t),class:"_clear_button"}," × クリア ",8,_hoisted_6),createElementVNode("div",_hoisted_7,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.options,((e,n)=>(openBlock(),createElementBlock("div",{key:e},[createVNode(unref(CCCheckbox),{label:e,modelValue:m.value[t][n],"onUpdate:modelValue":e=>m.value[t][n]=e,labelColor:"black"},null,8,["label","modelValue","onUpdate:modelValue"])])))),128))])])))),128)):createCommentVNode("",!0),g.value?(openBlock(!0),createElementBlock(Fragment,{key:3},renderList(_.value,((e,t)=>(openBlock(),createElementBlock("div",{key:t,class:"_checkbox_radio_container"},[createElementVNode("div",_hoisted_8,toDisplayString(e.label),1),createElementVNode("div",{onClick:n=>T(e.filterType,t),class:"_clear_button"}," × クリア ",8,_hoisted_9),createElementVNode("div",_hoisted_10,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.options,(e=>(openBlock(),createElementBlock("div",{key:e},[createVNode(unref(CCRadio),{value:e,modelValue:y.value[t],"onUpdate:modelValue":e=>y.value[t]=e},null,8,["value","modelValue","onUpdate:modelValue"])])))),128))])])))),128)):createCommentVNode("",!0),w.value?(openBlock(!0),createElementBlock(Fragment,{key:4},renderList(C.value,((e,t)=>(openBlock(),createElementBlock("div",{key:t,class:"_form_container"},[createElementVNode("div",_hoisted_11,[createElementVNode("div",{onClick:n=>T(e.filterType,t),class:"_clear_button"}," × クリア ",8,_hoisted_12),createVNode(unref(CCInput),{modelValue:S.value[t],"onUpdate:modelValue":e=>S.value[t]=e,label:e.label,shadow:"",date:"",placeholder:"開始する日を選択",error4:E(S.value[t])},null,8,["modelValue","onUpdate:modelValue","label","error4"]),createVNode(unref(CCInput),{modelValue:k.value[t],"onUpdate:modelValue":e=>k.value[t]=e,shadow:"",date:"",placeholder:"終了する日を選択",error4:E(k.value[t])},null,8,["modelValue","onUpdate:modelValue","error4"])])])))),128)):createCommentVNode("",!0),createElementVNode("div",_hoisted_13,[createVNode(unref(CCButton),{onClick:t[0]||(t[0]=e=>$()),style:{background:"#333333"},label:"全ての条件をクリア"}),createVNode(unref(CCButton),{onClick:t[1]||(t[1]=e=>{S.value.some(((e,t)=>{const n=k.value[t];return""!==E(e)||""!==E(n)}))||o("filter",!0)}),style:{background:"#00bbc9"},label:"検索"})])])])),_:1})],512),[[vShow,r.value]])])),_:1})]))}}),CCFilterDrawerForMagnetarTabel_vue_vue_type_style_index_0_scoped_d6348905_lang="",CCFilterDrawerForMagnetarTabel=_export_sfc(_sfc_main$3,[["__scopeId","data-v-d6348905"]]);function ascending$1(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function bisector(e){return 1===e.length&&(e=ascendingComparator(e)),{left:function(t,n,o,a){for(null==o&&(o=0),null==a&&(a=t.length);o<a;){var r=o+a>>>1;e(t[r],n)<0?o=r+1:a=r}return o},right:function(t,n,o,a){for(null==o&&(o=0),null==a&&(a=t.length);o<a;){var r=o+a>>>1;e(t[r],n)>0?a=r:o=r+1}return o}}}function ascendingComparator(e){return function(t,n){return ascending$1(e(t),n)}}var ascendingBisect=bisector(ascending$1),bisectRight=ascendingBisect.right,e10=Math.sqrt(50),e5=Math.sqrt(10),e2=Math.sqrt(2);function ticks(e,t,n){var o,a,r,i,l=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((o=t<e)&&(a=e,e=t,t=a),0===(i=tickIncrement(e,t,n))||!isFinite(i))return[];if(i>0)for(e=Math.ceil(e/i),t=Math.floor(t/i),r=new Array(a=Math.ceil(t-e+1));++l<a;)r[l]=(e+l)*i;else for(e=Math.floor(e*i),t=Math.ceil(t*i),r=new Array(a=Math.ceil(e-t+1));++l<a;)r[l]=(e-l)/i;return o&&r.reverse(),r}function tickIncrement(e,t,n){var o=(t-e)/Math.max(0,n),a=Math.floor(Math.log(o)/Math.LN10),r=o/Math.pow(10,a);return a>=0?(r>=e10?10:r>=e5?5:r>=e2?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(r>=e10?10:r>=e5?5:r>=e2?2:1)}function tickStep(e,t,n){var o=Math.abs(t-e)/Math.max(0,n),a=Math.pow(10,Math.floor(Math.log(o)/Math.LN10)),r=o/a;return r>=e10?a*=10:r>=e5?a*=5:r>=e2&&(a*=2),t<e?-a:a}function max$1(e,t){var n,o,a=e.length,r=-1;if(null==t){for(;++r<a;)if(null!=(n=e[r])&&n>=n)for(o=n;++r<a;)null!=(n=e[r])&&n>o&&(o=n)}else for(;++r<a;)if(null!=(n=t(e[r],r,e))&&n>=n)for(o=n;++r<a;)null!=(n=t(e[r],r,e))&&n>o&&(o=n);return o}var noop$2={value:function(){}};function dispatch(){for(var e,t=0,n=arguments.length,o={};t<n;++t){if(!(e=arguments[t]+"")||e in o)throw new Error("illegal type: "+e);o[e]=[]}return new Dispatch(o)}function Dispatch(e){this._=e}function parseTypenames$1(e,t){return e.trim().split(/^|\s+/).map((function(e){var n="",o=e.indexOf(".");if(o>=0&&(n=e.slice(o+1),e=e.slice(0,o)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function get$2(e,t){for(var n,o=0,a=e.length;o<a;++o)if((n=e[o]).name===t)return n.value}function set$2(e,t,n){for(var o=0,a=e.length;o<a;++o)if(e[o].name===t){e[o]=noop$2,e=e.slice(0,o).concat(e.slice(o+1));break}return null!=n&&e.push({name:t,value:n}),e}Dispatch.prototype=dispatch.prototype={constructor:Dispatch,on:function(e,t){var n,o=this._,a=parseTypenames$1(e+"",o),r=-1,i=a.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++r<i;)if(n=(e=a[r]).type)o[n]=set$2(o[n],e.name,t);else if(null==t)for(n in o)o[n]=set$2(o[n],e.name,null);return this}for(;++r<i;)if((n=(e=a[r]).type)&&(n=get$2(o[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Dispatch(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,o,a=new Array(n),r=0;r<n;++r)a[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(r=0,n=(o=this._[e]).length;r<n;++r)o[r].value.apply(t,a)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],a=0,r=o.length;a<r;++a)o[a].value.apply(t,n)}};var xhtml="http://www.w3.org/1999/xhtml";const namespaces={svg:"http://www.w3.org/2000/svg",xhtml:xhtml,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function namespace(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),namespaces.hasOwnProperty(t)?{space:namespaces[t],local:e}:e}function creatorInherit(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===xhtml&&t.documentElement.namespaceURI===xhtml?t.createElement(e):t.createElementNS(n,e)}}function creatorFixed(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function creator(e){var t=namespace(e);return(t.local?creatorFixed:creatorInherit)(t)}function none(){}function selector(e){return null==e?none:function(){return this.querySelector(e)}}function selection_select(e){"function"!=typeof e&&(e=selector(e));for(var t=this._groups,n=t.length,o=new Array(n),a=0;a<n;++a)for(var r,i,l=t[a],s=l.length,u=o[a]=new Array(s),c=0;c<s;++c)(r=l[c])&&(i=e.call(r,r.__data__,c,l))&&("__data__"in r&&(i.__data__=r.__data__),u[c]=i);return new Selection$1(o,this._parents)}function empty(){return[]}function selectorAll(e){return null==e?empty:function(){return this.querySelectorAll(e)}}function selection_selectAll(e){"function"!=typeof e&&(e=selectorAll(e));for(var t=this._groups,n=t.length,o=[],a=[],r=0;r<n;++r)for(var i,l=t[r],s=l.length,u=0;u<s;++u)(i=l[u])&&(o.push(e.call(i,i.__data__,u,l)),a.push(i));return new Selection$1(o,a)}var matcher=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var element$1=document.documentElement;if(!element$1.matches){var vendorMatches=element$1.webkitMatchesSelector||element$1.msMatchesSelector||element$1.mozMatchesSelector||element$1.oMatchesSelector;matcher=function(e){return function(){return vendorMatches.call(this,e)}}}}const matcher$1=matcher;function selection_filter(e){"function"!=typeof e&&(e=matcher$1(e));for(var t=this._groups,n=t.length,o=new Array(n),a=0;a<n;++a)for(var r,i=t[a],l=i.length,s=o[a]=[],u=0;u<l;++u)(r=i[u])&&e.call(r,r.__data__,u,i)&&s.push(r);return new Selection$1(o,this._parents)}function sparse(e){return new Array(e.length)}function selection_enter(){return new Selection$1(this._enter||this._groups.map(sparse),this._parents)}function EnterNode(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function constant$3(e){return function(){return e}}EnterNode.prototype={constructor:EnterNode,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var keyPrefix="$";function bindIndex(e,t,n,o,a,r){for(var i,l=0,s=t.length,u=r.length;l<u;++l)(i=t[l])?(i.__data__=r[l],o[l]=i):n[l]=new EnterNode(e,r[l]);for(;l<s;++l)(i=t[l])&&(a[l]=i)}function bindKey(e,t,n,o,a,r,i){var l,s,u,c={},d=t.length,p=r.length,h=new Array(d);for(l=0;l<d;++l)(s=t[l])&&(h[l]=u=keyPrefix+i.call(s,s.__data__,l,t),u in c?a[l]=s:c[u]=s);for(l=0;l<p;++l)(s=c[u=keyPrefix+i.call(e,r[l],l,r)])?(o[l]=s,s.__data__=r[l],c[u]=null):n[l]=new EnterNode(e,r[l]);for(l=0;l<d;++l)(s=t[l])&&c[h[l]]===s&&(a[l]=s)}function selection_data(e,t){if(!e)return h=new Array(this.size()),u=-1,this.each((function(e){h[++u]=e})),h;var n=t?bindKey:bindIndex,o=this._parents,a=this._groups;"function"!=typeof e&&(e=constant$3(e));for(var r=a.length,i=new Array(r),l=new Array(r),s=new Array(r),u=0;u<r;++u){var c=o[u],d=a[u],p=d.length,h=e.call(c,c&&c.__data__,u,o),f=h.length,v=l[u]=new Array(f),m=i[u]=new Array(f);n(c,d,v,m,s[u]=new Array(p),h,t);for(var g,_,b=0,y=0;b<f;++b)if(g=v[b]){for(b>=y&&(y=b+1);!(_=m[y])&&++y<f;);g._next=_||null}}return(i=new Selection$1(i,o))._enter=l,i._exit=s,i}function selection_exit(){return new Selection$1(this._exit||this._groups.map(sparse),this._parents)}function selection_merge(e){for(var t=this._groups,n=e._groups,o=t.length,a=n.length,r=Math.min(o,a),i=new Array(o),l=0;l<r;++l)for(var s,u=t[l],c=n[l],d=u.length,p=i[l]=new Array(d),h=0;h<d;++h)(s=u[h]||c[h])&&(p[h]=s);for(;l<o;++l)i[l]=t[l];return new Selection$1(i,this._parents)}function selection_order(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var o,a=e[t],r=a.length-1,i=a[r];--r>=0;)(o=a[r])&&(i&&i!==o.nextSibling&&i.parentNode.insertBefore(o,i),i=o);return this}function selection_sort(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=ascending);for(var n=this._groups,o=n.length,a=new Array(o),r=0;r<o;++r){for(var i,l=n[r],s=l.length,u=a[r]=new Array(s),c=0;c<s;++c)(i=l[c])&&(u[c]=i);u.sort(t)}return new Selection$1(a,this._parents).order()}function ascending(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function selection_call(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function selection_nodes(){var e=new Array(this.size()),t=-1;return this.each((function(){e[++t]=this})),e}function selection_node(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var o=e[t],a=0,r=o.length;a<r;++a){var i=o[a];if(i)return i}return null}function selection_size(){var e=0;return this.each((function(){++e})),e}function selection_empty(){return!this.node()}function selection_each(e){for(var t=this._groups,n=0,o=t.length;n<o;++n)for(var a,r=t[n],i=0,l=r.length;i<l;++i)(a=r[i])&&e.call(a,a.__data__,i,r);return this}function attrRemove$1(e){return function(){this.removeAttribute(e)}}function attrRemoveNS$1(e){return function(){this.removeAttributeNS(e.space,e.local)}}function attrConstant$1(e,t){return function(){this.setAttribute(e,t)}}function attrConstantNS$1(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function attrFunction$1(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function attrFunctionNS$1(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function selection_attr(e,t){var n=namespace(e);if(arguments.length<2){var o=this.node();return n.local?o.getAttributeNS(n.space,n.local):o.getAttribute(n)}return this.each((null==t?n.local?attrRemoveNS$1:attrRemove$1:"function"==typeof t?n.local?attrFunctionNS$1:attrFunction$1:n.local?attrConstantNS$1:attrConstant$1)(n,t))}function defaultView(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function styleRemove$1(e){return function(){this.style.removeProperty(e)}}function styleConstant$1(e,t,n){return function(){this.style.setProperty(e,t,n)}}function styleFunction$1(e,t,n){return function(){var o=t.apply(this,arguments);null==o?this.style.removeProperty(e):this.style.setProperty(e,o,n)}}function selection_style(e,t,n){return arguments.length>1?this.each((null==t?styleRemove$1:"function"==typeof t?styleFunction$1:styleConstant$1)(e,t,null==n?"":n)):styleValue(this.node(),e)}function styleValue(e,t){return e.style.getPropertyValue(t)||defaultView(e).getComputedStyle(e,null).getPropertyValue(t)}function propertyRemove(e){return function(){delete this[e]}}function propertyConstant(e,t){return function(){this[e]=t}}function propertyFunction(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function selection_property(e,t){return arguments.length>1?this.each((null==t?propertyRemove:"function"==typeof t?propertyFunction:propertyConstant)(e,t)):this.node()[e]}function classArray(e){return e.trim().split(/^|\s+/)}function classList(e){return e.classList||new ClassList(e)}function ClassList(e){this._node=e,this._names=classArray(e.getAttribute("class")||"")}function classedAdd(e,t){for(var n=classList(e),o=-1,a=t.length;++o<a;)n.add(t[o])}function classedRemove(e,t){for(var n=classList(e),o=-1,a=t.length;++o<a;)n.remove(t[o])}function classedTrue(e){return function(){classedAdd(this,e)}}function classedFalse(e){return function(){classedRemove(this,e)}}function classedFunction(e,t){return function(){(t.apply(this,arguments)?classedAdd:classedRemove)(this,e)}}function selection_classed(e,t){var n=classArray(e+"");if(arguments.length<2){for(var o=classList(this.node()),a=-1,r=n.length;++a<r;)if(!o.contains(n[a]))return!1;return!0}return this.each(("function"==typeof t?classedFunction:t?classedTrue:classedFalse)(n,t))}function textRemove(){this.textContent=""}function textConstant$1(e){return function(){this.textContent=e}}function textFunction$1(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function selection_text(e){return arguments.length?this.each(null==e?textRemove:("function"==typeof e?textFunction$1:textConstant$1)(e)):this.node().textContent}function htmlRemove(){this.innerHTML=""}function htmlConstant(e){return function(){this.innerHTML=e}}function htmlFunction(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function selection_html(e){return arguments.length?this.each(null==e?htmlRemove:("function"==typeof e?htmlFunction:htmlConstant)(e)):this.node().innerHTML}function raise(){this.nextSibling&&this.parentNode.appendChild(this)}function selection_raise(){return this.each(raise)}function lower(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function selection_lower(){return this.each(lower)}function selection_append(e){var t="function"==typeof e?e:creator(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))}function constantNull(){return null}function selection_insert(e,t){var n="function"==typeof e?e:creator(e),o=null==t?constantNull:"function"==typeof t?t:selector(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),o.apply(this,arguments)||null)}))}function remove$1(){var e=this.parentNode;e&&e.removeChild(this)}function selection_remove(){return this.each(remove$1)}function selection_cloneShallow(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function selection_cloneDeep(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}function selection_clone(e){return this.select(e?selection_cloneDeep:selection_cloneShallow)}function selection_datum(e){return arguments.length?this.property("__data__",e):this.node().__data__}ClassList.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var filterEvents={};if("undefined"!=typeof document){var element=document.documentElement;"onmouseenter"in element||(filterEvents={mouseenter:"mouseover",mouseleave:"mouseout"})}function filterContextListener(e,t,n){return e=contextListener(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function contextListener(e,t,n){return function(o){try{e.call(this,this.__data__,t,n)}finally{}}}function parseTypenames(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function onRemove(e){return function(){var t=this.__on;if(t){for(var n,o=0,a=-1,r=t.length;o<r;++o)n=t[o],e.type&&n.type!==e.type||n.name!==e.name?t[++a]=n:this.removeEventListener(n.type,n.listener,n.capture);++a?t.length=a:delete this.__on}}}function onAdd(e,t,n){var o=filterEvents.hasOwnProperty(e.type)?filterContextListener:contextListener;return function(a,r,i){var l,s=this.__on,u=o(t,r,i);if(s)for(var c=0,d=s.length;c<d;++c)if((l=s[c]).type===e.type&&l.name===e.name)return this.removeEventListener(l.type,l.listener,l.capture),this.addEventListener(l.type,l.listener=u,l.capture=n),void(l.value=t);this.addEventListener(e.type,u,n),l={type:e.type,name:e.name,value:t,listener:u,capture:n},s?s.push(l):this.__on=[l]}}function selection_on(e,t,n){var o,a,r=parseTypenames(e+""),i=r.length;if(!(arguments.length<2)){for(l=t?onAdd:onRemove,null==n&&(n=!1),o=0;o<i;++o)this.each(l(r[o],t,n));return this}var l=this.node().__on;if(l)for(var s,u=0,c=l.length;u<c;++u)for(o=0,s=l[u];o<i;++o)if((a=r[o]).type===s.type&&a.name===s.name)return s.value}function dispatchEvent(e,t,n){var o=defaultView(e),a=o.CustomEvent;"function"==typeof a?a=new a(t,n):(a=o.document.createEvent("Event"),n?(a.initEvent(t,n.bubbles,n.cancelable),a.detail=n.detail):a.initEvent(t,!1,!1)),e.dispatchEvent(a)}function dispatchConstant(e,t){return function(){return dispatchEvent(this,e,t)}}function dispatchFunction(e,t){return function(){return dispatchEvent(this,e,t.apply(this,arguments))}}function selection_dispatch(e,t){return this.each(("function"==typeof t?dispatchFunction:dispatchConstant)(e,t))}var root=[null];function Selection$1(e,t){this._groups=e,this._parents=t}function selection(){return new Selection$1([[document.documentElement]],root)}function select(e){return"string"==typeof e?new Selection$1([[document.querySelector(e)]],[document.documentElement]):new Selection$1([[e]],root)}Selection$1.prototype=selection.prototype={constructor:Selection$1,select:selection_select,selectAll:selection_selectAll,filter:selection_filter,data:selection_data,enter:selection_enter,exit:selection_exit,merge:selection_merge,order:selection_order,sort:selection_sort,call:selection_call,nodes:selection_nodes,node:selection_node,size:selection_size,empty:selection_empty,each:selection_each,attr:selection_attr,style:selection_style,property:selection_property,classed:selection_classed,text:selection_text,html:selection_html,raise:selection_raise,lower:selection_lower,append:selection_append,insert:selection_insert,remove:selection_remove,clone:selection_clone,datum:selection_datum,on:selection_on,dispatch:selection_dispatch};var nextId=0;function Local(){this._="@"+(++nextId).toString(36)}function define(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function extend$1(e,t){var n=Object.create(e.prototype);for(var o in t)n[o]=t[o];return n}function Color(){}Local.prototype={constructor:Local,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var darker=.7,brighter=1/darker,reI="\\s*([+-]?\\d+)\\s*",reN="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",reP="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",reHex3=/^#([0-9a-f]{3})$/,reHex6=/^#([0-9a-f]{6})$/,reRgbInteger=new RegExp("^rgb\\("+[reI,reI,reI]+"\\)$"),reRgbPercent=new RegExp("^rgb\\("+[reP,reP,reP]+"\\)$"),reRgbaInteger=new RegExp("^rgba\\("+[reI,reI,reI,reN]+"\\)$"),reRgbaPercent=new RegExp("^rgba\\("+[reP,reP,reP,reN]+"\\)$"),reHslPercent=new RegExp("^hsl\\("+[reN,reP,reP]+"\\)$"),reHslaPercent=new RegExp("^hsla\\("+[reN,reP,reP,reN]+"\\)$"),named={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function color(e){var t;return e=(e+"").trim().toLowerCase(),(t=reHex3.exec(e))?new Rgb((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=reHex6.exec(e))?rgbn(parseInt(t[1],16)):(t=reRgbInteger.exec(e))?new Rgb(t[1],t[2],t[3],1):(t=reRgbPercent.exec(e))?new Rgb(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=reRgbaInteger.exec(e))?rgba$1(t[1],t[2],t[3],t[4]):(t=reRgbaPercent.exec(e))?rgba$1(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=reHslPercent.exec(e))?hsla(t[1],t[2]/100,t[3]/100,1):(t=reHslaPercent.exec(e))?hsla(t[1],t[2]/100,t[3]/100,t[4]):named.hasOwnProperty(e)?rgbn(named[e]):"transparent"===e?new Rgb(NaN,NaN,NaN,0):null}function rgbn(e){return new Rgb(e>>16&255,e>>8&255,255&e,1)}function rgba$1(e,t,n,o){return o<=0&&(e=t=n=NaN),new Rgb(e,t,n,o)}function rgbConvert(e){return e instanceof Color||(e=color(e)),e?new Rgb((e=e.rgb()).r,e.g,e.b,e.opacity):new Rgb}function rgb$1(e,t,n,o){return 1===arguments.length?rgbConvert(e):new Rgb(e,t,n,null==o?1:o)}function Rgb(e,t,n,o){this.r=+e,this.g=+t,this.b=+n,this.opacity=+o}function hsla(e,t,n,o){return o<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Hsl(e,t,n,o)}function hslConvert(e){if(e instanceof Hsl)return new Hsl(e.h,e.s,e.l,e.opacity);if(e instanceof Color||(e=color(e)),!e)return new Hsl;if(e instanceof Hsl)return e;var t=(e=e.rgb()).r/255,n=e.g/255,o=e.b/255,a=Math.min(t,n,o),r=Math.max(t,n,o),i=NaN,l=r-a,s=(r+a)/2;return l?(i=t===r?(n-o)/l+6*(n<o):n===r?(o-t)/l+2:(t-n)/l+4,l/=s<.5?r+a:2-r-a,i*=60):l=s>0&&s<1?0:i,new Hsl(i,l,s,e.opacity)}function hsl(e,t,n,o){return 1===arguments.length?hslConvert(e):new Hsl(e,t,n,null==o?1:o)}function Hsl(e,t,n,o){this.h=+e,this.s=+t,this.l=+n,this.opacity=+o}function hsl2rgb(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}define(Color,color,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),define(Rgb,rgb$1,extend$1(Color,{brighter:function(e){return e=null==e?brighter:Math.pow(brighter,e),new Rgb(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?darker:Math.pow(darker,e),new Rgb(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),define(Hsl,hsl,extend$1(Color,{brighter:function(e){return e=null==e?brighter:Math.pow(brighter,e),new Hsl(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?darker:Math.pow(darker,e),new Hsl(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,o=n+(n<.5?n:1-n)*t,a=2*n-o;return new Rgb(hsl2rgb(e>=240?e-240:e+120,a,o),hsl2rgb(e,a,o),hsl2rgb(e<120?e+240:e-120,a,o),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var deg2rad=Math.PI/180,rad2deg=180/Math.PI,Kn=18,Xn=.95047,Yn=1,Zn=1.08883,t0$1=4/29,t1$1=6/29,t2=3*t1$1*t1$1,t3=t1$1*t1$1*t1$1;function labConvert(e){if(e instanceof Lab)return new Lab(e.l,e.a,e.b,e.opacity);if(e instanceof Hcl){var t=e.h*deg2rad;return new Lab(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof Rgb||(e=rgbConvert(e));var n=rgb2xyz(e.r),o=rgb2xyz(e.g),a=rgb2xyz(e.b),r=xyz2lab((.4124564*n+.3575761*o+.1804375*a)/Xn),i=xyz2lab((.2126729*n+.7151522*o+.072175*a)/Yn);return new Lab(116*i-16,500*(r-i),200*(i-xyz2lab((.0193339*n+.119192*o+.9503041*a)/Zn)),e.opacity)}function lab(e,t,n,o){return 1===arguments.length?labConvert(e):new Lab(e,t,n,null==o?1:o)}function Lab(e,t,n,o){this.l=+e,this.a=+t,this.b=+n,this.opacity=+o}function xyz2lab(e){return e>t3?Math.pow(e,1/3):e/t2+t0$1}function lab2xyz(e){return e>t1$1?e*e*e:t2*(e-t0$1)}function xyz2rgb(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function rgb2xyz(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function hclConvert(e){if(e instanceof Hcl)return new Hcl(e.h,e.c,e.l,e.opacity);e instanceof Lab||(e=labConvert(e));var t=Math.atan2(e.b,e.a)*rad2deg;return new Hcl(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function hcl(e,t,n,o){return 1===arguments.length?hclConvert(e):new Hcl(e,t,n,null==o?1:o)}function Hcl(e,t,n,o){this.h=+e,this.c=+t,this.l=+n,this.opacity=+o}define(Lab,lab,extend$1(Color,{brighter:function(e){return new Lab(this.l+Kn*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Lab(this.l-Kn*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return e=Yn*lab2xyz(e),new Rgb(xyz2rgb(3.2404542*(t=Xn*lab2xyz(t))-1.5371385*e-.4985314*(n=Zn*lab2xyz(n))),xyz2rgb(-.969266*t+1.8760108*e+.041556*n),xyz2rgb(.0556434*t-.2040259*e+1.0572252*n),this.opacity)}})),define(Hcl,hcl,extend$1(Color,{brighter:function(e){return new Hcl(this.h,this.c,this.l+Kn*(null==e?1:e),this.opacity)},darker:function(e){return new Hcl(this.h,this.c,this.l-Kn*(null==e?1:e),this.opacity)},rgb:function(){return labConvert(this).rgb()}}));var A=-.14861,B=1.78277,C=-.29227,D=-.90649,E=1.97294,ED=E*D,EB=E*B,BC_DA=B*C-D*A;function cubehelixConvert(e){if(e instanceof Cubehelix)return new Cubehelix(e.h,e.s,e.l,e.opacity);e instanceof Rgb||(e=rgbConvert(e));var t=e.r/255,n=e.g/255,o=e.b/255,a=(BC_DA*o+ED*t-EB*n)/(BC_DA+ED-EB),r=o-a,i=(E*(n-a)-C*r)/D,l=Math.sqrt(i*i+r*r)/(E*a*(1-a)),s=l?Math.atan2(i,r)*rad2deg-120:NaN;return new Cubehelix(s<0?s+360:s,l,a,e.opacity)}function cubehelix$1(e,t,n,o){return 1===arguments.length?cubehelixConvert(e):new Cubehelix(e,t,n,null==o?1:o)}function Cubehelix(e,t,n,o){this.h=+e,this.s=+t,this.l=+n,this.opacity=+o}function constant$2(e){return function(){return e}}function linear$1(e,t){return function(n){return e+n*t}}function exponential(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(o){return Math.pow(e+o*t,n)}}function hue(e,t){var n=t-e;return n?linear$1(e,n>180||n<-180?n-360*Math.round(n/360):n):constant$2(isNaN(e)?t:e)}function gamma(e){return 1==(e=+e)?nogamma:function(t,n){return n-t?exponential(t,n,e):constant$2(isNaN(t)?n:t)}}function nogamma(e,t){var n=t-e;return n?linear$1(e,n):constant$2(isNaN(e)?t:e)}define(Cubehelix,cubehelix$1,extend$1(Color,{brighter:function(e){return e=null==e?brighter:Math.pow(brighter,e),new Cubehelix(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?darker:Math.pow(darker,e),new Cubehelix(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*deg2rad,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),o=Math.cos(e),a=Math.sin(e);return new Rgb(255*(t+n*(A*o+B*a)),255*(t+n*(C*o+D*a)),255*(t+n*(E*o)),this.opacity)}}));const interpolateRgb=function e(t){var n=gamma(t);function o(e,t){var o=n((e=rgb$1(e)).r,(t=rgb$1(t)).r),a=n(e.g,t.g),r=n(e.b,t.b),i=nogamma(e.opacity,t.opacity);return function(t){return e.r=o(t),e.g=a(t),e.b=r(t),e.opacity=i(t),e+""}}return o.gamma=e,o}(1);function array$1(e,t){var n,o=t?t.length:0,a=e?Math.min(o,e.length):0,r=new Array(a),i=new Array(o);for(n=0;n<a;++n)r[n]=interpolateValue(e[n],t[n]);for(;n<o;++n)i[n]=t[n];return function(e){for(n=0;n<a;++n)i[n]=r[n](e);return i}}function date(e,t){var n=new Date;return t-=e=+e,function(o){return n.setTime(e+t*o),n}}function reinterpolate(e,t){return t-=e=+e,function(n){return e+t*n}}function object(e,t){var n,o={},a={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?o[n]=interpolateValue(e[n],t[n]):a[n]=t[n];return function(e){for(n in o)a[n]=o[n](e);return a}}var reA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,reB=new RegExp(reA.source,"g");function zero(e){return function(){return e}}function one(e){return function(t){return e(t)+""}}function interpolateString(e,t){var n,o,a,r=reA.lastIndex=reB.lastIndex=0,i=-1,l=[],s=[];for(e+="",t+="";(n=reA.exec(e))&&(o=reB.exec(t));)(a=o.index)>r&&(a=t.slice(r,a),l[i]?l[i]+=a:l[++i]=a),(n=n[0])===(o=o[0])?l[i]?l[i]+=o:l[++i]=o:(l[++i]=null,s.push({i:i,x:reinterpolate(n,o)})),r=reB.lastIndex;return r<t.length&&(a=t.slice(r),l[i]?l[i]+=a:l[++i]=a),l.length<2?s[0]?one(s[0].x):zero(t):(t=s.length,function(e){for(var n,o=0;o<t;++o)l[(n=s[o]).i]=n.x(e);return l.join("")})}function interpolateValue(e,t){var n,o=typeof t;return null==t||"boolean"===o?constant$2(t):("number"===o?reinterpolate:"string"===o?(n=color(t))?(t=n,interpolateRgb):interpolateString:t instanceof color?interpolateRgb:t instanceof Date?date:Array.isArray(t)?array$1:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?object:reinterpolate)(e,t)}function interpolateRound(e,t){return t-=e=+e,function(n){return Math.round(e+t*n)}}var cssNode,cssRoot,cssView,svgNode,degrees=180/Math.PI,identity$2={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function decompose(e,t,n,o,a,r){var i,l,s;return(i=Math.sqrt(e*e+t*t))&&(e/=i,t/=i),(s=e*n+t*o)&&(n-=e*s,o-=t*s),(l=Math.sqrt(n*n+o*o))&&(n/=l,o/=l,s/=l),e*o<t*n&&(e=-e,t=-t,s=-s,i=-i),{translateX:a,translateY:r,rotate:Math.atan2(t,e)*degrees,skewX:Math.atan(s)*degrees,scaleX:i,scaleY:l}}function parseCss(e){return"none"===e?identity$2:(cssNode||(cssNode=document.createElement("DIV"),cssRoot=document.documentElement,cssView=document.defaultView),cssNode.style.transform=e,e=cssView.getComputedStyle(cssRoot.appendChild(cssNode),null).getPropertyValue("transform"),cssRoot.removeChild(cssNode),decompose(+(e=e.slice(7,-1).split(","))[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}function parseSvg(e){return null==e?identity$2:(svgNode||(svgNode=document.createElementNS("http://www.w3.org/2000/svg","g")),svgNode.setAttribute("transform",e),(e=svgNode.transform.baseVal.consolidate())?decompose((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):identity$2)}function interpolateTransform(e,t,n,o){function a(e){return e.length?e.pop()+" ":""}return function(r,i){var l=[],s=[];return r=e(r),i=e(i),function(e,o,a,r,i,l){if(e!==a||o!==r){var s=i.push("translate(",null,t,null,n);l.push({i:s-4,x:reinterpolate(e,a)},{i:s-2,x:reinterpolate(o,r)})}else(a||r)&&i.push("translate("+a+t+r+n)}(r.translateX,r.translateY,i.translateX,i.translateY,l,s),function(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(a(n)+"rotate(",null,o)-2,x:reinterpolate(e,t)})):t&&n.push(a(n)+"rotate("+t+o)}(r.rotate,i.rotate,l,s),function(e,t,n,r){e!==t?r.push({i:n.push(a(n)+"skewX(",null,o)-2,x:reinterpolate(e,t)}):t&&n.push(a(n)+"skewX("+t+o)}(r.skewX,i.skewX,l,s),function(e,t,n,o,r,i){if(e!==n||t!==o){var l=r.push(a(r)+"scale(",null,",",null,")");i.push({i:l-4,x:reinterpolate(e,n)},{i:l-2,x:reinterpolate(t,o)})}else 1===n&&1===o||r.push(a(r)+"scale("+n+","+o+")")}(r.scaleX,r.scaleY,i.scaleX,i.scaleY,l,s),r=i=null,function(e){for(var t,n=-1,o=s.length;++n<o;)l[(t=s[n]).i]=t.x(e);return l.join("")}}}var interpolateTransformCss=interpolateTransform(parseCss,"px, ","px)","deg)"),interpolateTransformSvg=interpolateTransform(parseSvg,", ",")",")");function cubehelix(e){return function t(n){function o(t,o){var a=e((t=cubehelix$1(t)).h,(o=cubehelix$1(o)).h),r=nogamma(t.s,o.s),i=nogamma(t.l,o.l),l=nogamma(t.opacity,o.opacity);return function(e){return t.h=a(e),t.s=r(e),t.l=i(Math.pow(e,n)),t.opacity=l(e),t+""}}return n=+n,o.gamma=t,o}(1)}cubehelix(hue);var taskHead,taskTail,cubehelixLong=cubehelix(nogamma),frame=0,timeout$2=0,interval=0,pokeDelay=1e3,clockLast=0,clockNow=0,clockSkew=0,clock="object"==typeof performance&&performance.now?performance:Date,setFrame="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function now(){return clockNow||(setFrame(clearNow),clockNow=clock.now()+clockSkew)}function clearNow(){clockNow=0}function Timer(){this._call=this._time=this._next=null}function timer(e,t,n){var o=new Timer;return o.restart(e,t,n),o}function timerFlush(){now(),++frame;for(var e,t=taskHead;t;)(e=clockNow-t._time)>=0&&t._call.call(null,e),t=t._next;--frame}function wake(){clockNow=(clockLast=clock.now())+clockSkew,frame=timeout$2=0;try{timerFlush()}finally{frame=0,nap(),clockNow=0}}function poke$1(){var e=clock.now(),t=e-clockLast;t>pokeDelay&&(clockSkew-=t,clockLast=e)}function nap(){for(var e,t,n=taskHead,o=1/0;n;)n._call?(o>n._time&&(o=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:taskHead=t);taskTail=e,sleep(o)}function sleep(e){frame||(timeout$2&&(timeout$2=clearTimeout(timeout$2)),e-clockNow>24?(e<1/0&&(timeout$2=setTimeout(wake,e-clock.now()-clockSkew)),interval&&(interval=clearInterval(interval))):(interval||(clockLast=clock.now(),interval=setInterval(poke$1,pokeDelay)),frame=1,setFrame(wake)))}function timeout$1(e,t,n){var o=new Timer;return t=null==t?0:+t,o.restart((function(n){o.stop(),e(n+t)}),t,n),o}Timer.prototype=timer.prototype={constructor:Timer,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?now():+n)+(null==t?0:+t),this._next||taskTail===this||(taskTail?taskTail._next=this:taskHead=this,taskTail=this),this._call=e,this._time=n,sleep()},stop:function(){this._call&&(this._call=null,this._time=1/0,sleep())}};var emptyOn=dispatch("start","end","interrupt"),emptyTween=[],CREATED=0,SCHEDULED=1,STARTING=2,STARTED=3,RUNNING=4,ENDING=5,ENDED=6;function schedule(e,t,n,o,a,r){var i=e.__transition;if(i){if(n in i)return}else e.__transition={};create(e,n,{name:t,index:o,group:a,on:emptyOn,tween:emptyTween,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:CREATED})}function init(e,t){var n=get$1(e,t);if(n.state>CREATED)throw new Error("too late; already scheduled");return n}function set$1(e,t){var n=get$1(e,t);if(n.state>STARTING)throw new Error("too late; already started");return n}function get$1(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function create(e,t,n){var o,a=e.__transition;function r(s){var u,c,d,p;if(n.state!==SCHEDULED)return l();for(u in a)if((p=a[u]).name===n.name){if(p.state===STARTED)return timeout$1(r);p.state===RUNNING?(p.state=ENDED,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete a[u]):+u<t&&(p.state=ENDED,p.timer.stop(),delete a[u])}if(timeout$1((function(){n.state===STARTED&&(n.state=RUNNING,n.timer.restart(i,n.delay,n.time),i(s))})),n.state=STARTING,n.on.call("start",e,e.__data__,n.index,n.group),n.state===STARTING){for(n.state=STARTED,o=new Array(d=n.tween.length),u=0,c=-1;u<d;++u)(p=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(o[++c]=p);o.length=c+1}}function i(t){for(var a=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=ENDING,1),r=-1,i=o.length;++r<i;)o[r].call(null,a);n.state===ENDING&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var o in n.state=ENDED,n.timer.stop(),delete a[t],a)return;delete e.__transition}a[t]=n,n.timer=timer((function(e){n.state=SCHEDULED,n.timer.restart(r,n.delay,n.time),n.delay<=e&&r(e-n.delay)}),0,n.time)}function interrupt(e,t){var n,o,a,r=e.__transition,i=!0;if(r){for(a in t=null==t?null:t+"",r)(n=r[a]).name===t?(o=n.state>STARTING&&n.state<ENDING,n.state=ENDED,n.timer.stop(),o&&n.on.call("interrupt",e,e.__data__,n.index,n.group),delete r[a]):i=!1;i&&delete e.__transition}}function selection_interrupt(e){return this.each((function(){interrupt(this,e)}))}function tweenRemove(e,t){var n,o;return function(){var a=set$1(this,e),r=a.tween;if(r!==n)for(var i=0,l=(o=n=r).length;i<l;++i)if(o[i].name===t){(o=o.slice()).splice(i,1);break}a.tween=o}}function tweenFunction(e,t,n){var o,a;if("function"!=typeof n)throw new Error;return function(){var r=set$1(this,e),i=r.tween;if(i!==o){a=(o=i).slice();for(var l={name:t,value:n},s=0,u=a.length;s<u;++s)if(a[s].name===t){a[s]=l;break}s===u&&a.push(l)}r.tween=a}}function transition_tween(e,t){var n=this._id;if(e+="",arguments.length<2){for(var o,a=get$1(this.node(),n).tween,r=0,i=a.length;r<i;++r)if((o=a[r]).name===e)return o.value;return null}return this.each((null==t?tweenRemove:tweenFunction)(n,e,t))}function tweenValue(e,t,n){var o=e._id;return e.each((function(){var e=set$1(this,o);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return get$1(e,o).value[t]}}function interpolate(e,t){var n;return("number"==typeof t?reinterpolate:t instanceof color?interpolateRgb:(n=color(t))?(t=n,interpolateRgb):interpolateString)(e,t)}function attrRemove(e){return function(){this.removeAttribute(e)}}function attrRemoveNS(e){return function(){this.removeAttributeNS(e.space,e.local)}}function attrConstant(e,t,n){var o,a;return function(){var r=this.getAttribute(e);return r===n?null:r===o?a:a=t(o=r,n)}}function attrConstantNS(e,t,n){var o,a;return function(){var r=this.getAttributeNS(e.space,e.local);return r===n?null:r===o?a:a=t(o=r,n)}}function attrFunction(e,t,n){var o,a,r;return function(){var i,l=n(this);if(null!=l)return(i=this.getAttribute(e))===l?null:i===o&&l===a?r:r=t(o=i,a=l);this.removeAttribute(e)}}function attrFunctionNS(e,t,n){var o,a,r;return function(){var i,l=n(this);if(null!=l)return(i=this.getAttributeNS(e.space,e.local))===l?null:i===o&&l===a?r:r=t(o=i,a=l);this.removeAttributeNS(e.space,e.local)}}function transition_attr(e,t){var n=namespace(e),o="transform"===n?interpolateTransformSvg:interpolate;return this.attrTween(e,"function"==typeof t?(n.local?attrFunctionNS:attrFunction)(n,o,tweenValue(this,"attr."+e,t)):null==t?(n.local?attrRemoveNS:attrRemove)(n):(n.local?attrConstantNS:attrConstant)(n,o,t+""))}function attrTweenNS(e,t){function n(){var n=this,o=t.apply(n,arguments);return o&&function(t){n.setAttributeNS(e.space,e.local,o(t))}}return n._value=t,n}function attrTween(e,t){function n(){var n=this,o=t.apply(n,arguments);return o&&function(t){n.setAttribute(e,o(t))}}return n._value=t,n}function transition_attrTween(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var o=namespace(e);return this.tween(n,(o.local?attrTweenNS:attrTween)(o,t))}function delayFunction(e,t){return function(){init(this,e).delay=+t.apply(this,arguments)}}function delayConstant(e,t){return t=+t,function(){init(this,e).delay=t}}function transition_delay(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?delayFunction:delayConstant)(t,e)):get$1(this.node(),t).delay}function durationFunction(e,t){return function(){set$1(this,e).duration=+t.apply(this,arguments)}}function durationConstant(e,t){return t=+t,function(){set$1(this,e).duration=t}}function transition_duration(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?durationFunction:durationConstant)(t,e)):get$1(this.node(),t).duration}function easeConstant(e,t){if("function"!=typeof t)throw new Error;return function(){set$1(this,e).ease=t}}function transition_ease(e){var t=this._id;return arguments.length?this.each(easeConstant(t,e)):get$1(this.node(),t).ease}function transition_filter(e){"function"!=typeof e&&(e=matcher$1(e));for(var t=this._groups,n=t.length,o=new Array(n),a=0;a<n;++a)for(var r,i=t[a],l=i.length,s=o[a]=[],u=0;u<l;++u)(r=i[u])&&e.call(r,r.__data__,u,i)&&s.push(r);return new Transition(o,this._parents,this._name,this._id)}function transition_merge(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,o=t.length,a=n.length,r=Math.min(o,a),i=new Array(o),l=0;l<r;++l)for(var s,u=t[l],c=n[l],d=u.length,p=i[l]=new Array(d),h=0;h<d;++h)(s=u[h]||c[h])&&(p[h]=s);for(;l<o;++l)i[l]=t[l];return new Transition(i,this._parents,this._name,this._id)}function start$2(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}function onFunction(e,t,n){var o,a,r=start$2(t)?init:set$1;return function(){var i=r(this,e),l=i.on;l!==o&&(a=(o=l).copy()).on(t,n),i.on=a}}function transition_on(e,t){var n=this._id;return arguments.length<2?get$1(this.node(),n).on.on(e):this.each(onFunction(n,e,t))}function removeFunction(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function transition_remove(){return this.on("end.remove",removeFunction(this._id))}function transition_select(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=selector(e));for(var o=this._groups,a=o.length,r=new Array(a),i=0;i<a;++i)for(var l,s,u=o[i],c=u.length,d=r[i]=new Array(c),p=0;p<c;++p)(l=u[p])&&(s=e.call(l,l.__data__,p,u))&&("__data__"in l&&(s.__data__=l.__data__),d[p]=s,schedule(d[p],t,n,p,d,get$1(l,n)));return new Transition(r,this._parents,t,n)}function transition_selectAll(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=selectorAll(e));for(var o=this._groups,a=o.length,r=[],i=[],l=0;l<a;++l)for(var s,u=o[l],c=u.length,d=0;d<c;++d)if(s=u[d]){for(var p,h=e.call(s,s.__data__,d,u),f=get$1(s,n),v=0,m=h.length;v<m;++v)(p=h[v])&&schedule(p,t,n,v,h,f);r.push(h),i.push(s)}return new Transition(r,i,t,n)}var Selection=selection.prototype.constructor;function transition_selection(){return new Selection(this._groups,this._parents)}function styleRemove(e,t){var n,o,a;return function(){var r=styleValue(this,e),i=(this.style.removeProperty(e),styleValue(this,e));return r===i?null:r===n&&i===o?a:a=t(n=r,o=i)}}function styleRemoveEnd(e){return function(){this.style.removeProperty(e)}}function styleConstant(e,t,n){var o,a;return function(){var r=styleValue(this,e);return r===n?null:r===o?a:a=t(o=r,n)}}function styleFunction(e,t,n){var o,a,r;return function(){var i=styleValue(this,e),l=n(this);return null==l&&(this.style.removeProperty(e),l=styleValue(this,e)),i===l?null:i===o&&l===a?r:r=t(o=i,a=l)}}function transition_style(e,t,n){var o="transform"==(e+="")?interpolateTransformCss:interpolate;return null==t?this.styleTween(e,styleRemove(e,o)).on("end.style."+e,styleRemoveEnd(e)):this.styleTween(e,"function"==typeof t?styleFunction(e,o,tweenValue(this,"style."+e,t)):styleConstant(e,o,t+""),n)}function styleTween(e,t,n){function o(){var o=this,a=t.apply(o,arguments);return a&&function(t){o.style.setProperty(e,a(t),n)}}return o._value=t,o}function transition_styleTween(e,t,n){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(null==t)return this.tween(o,null);if("function"!=typeof t)throw new Error;return this.tween(o,styleTween(e,t,null==n?"":n))}function textConstant(e){return function(){this.textContent=e}}function textFunction(e){return function(){var t=e(this);this.textContent=null==t?"":t}}function transition_text(e){return this.tween("text","function"==typeof e?textFunction(tweenValue(this,"text",e)):textConstant(null==e?"":e+""))}function transition_transition(){for(var e=this._name,t=this._id,n=newId(),o=this._groups,a=o.length,r=0;r<a;++r)for(var i,l=o[r],s=l.length,u=0;u<s;++u)if(i=l[u]){var c=get$1(i,t);schedule(i,e,n,u,l,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Transition(o,this._parents,e,n)}var id$1=0;function Transition(e,t,n,o){this._groups=e,this._parents=t,this._name=n,this._id=o}function newId(){return++id$1}var selection_prototype=selection.prototype;function cubicInOut(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}Transition.prototype={constructor:Transition,select:transition_select,selectAll:transition_selectAll,filter:transition_filter,merge:transition_merge,selection:transition_selection,transition:transition_transition,call:selection_prototype.call,nodes:selection_prototype.nodes,node:selection_prototype.node,size:selection_prototype.size,empty:selection_prototype.empty,each:selection_prototype.each,on:transition_on,attr:transition_attr,attrTween:transition_attrTween,style:transition_style,styleTween:transition_styleTween,text:transition_text,remove:transition_remove,tween:transition_tween,delay:transition_delay,duration:transition_duration,ease:transition_ease};var exponent$1=3;!function e(t){function n(e){return Math.pow(e,t)}return t=+t,n.exponent=e,n}(exponent$1),function e(t){function n(e){return 1-Math.pow(1-e,t)}return t=+t,n.exponent=e,n}(exponent$1),function e(t){function n(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t=+t,n.exponent=e,n}(exponent$1);var overshoot=1.70158;!function e(t){function n(e){return e*e*((t+1)*e-t)}return t=+t,n.overshoot=e,n}(overshoot),function e(t){function n(e){return--e*e*((t+1)*e+t)+1}return t=+t,n.overshoot=e,n}(overshoot),function e(t){function n(e){return((e*=2)<1?e*e*((t+1)*e-t):(e-=2)*e*((t+1)*e+t)+2)/2}return t=+t,n.overshoot=e,n}(overshoot);var tau$3=2*Math.PI,amplitude=1,period=.3;!function e(t,n){var o=Math.asin(1/(t=Math.max(1,t)))*(n/=tau$3);function a(e){return t*Math.pow(2,10*--e)*Math.sin((o-e)/n)}return a.amplitude=function(t){return e(t,n*tau$3)},a.period=function(n){return e(t,n)},a}(amplitude,period),function e(t,n){var o=Math.asin(1/(t=Math.max(1,t)))*(n/=tau$3);function a(e){return 1-t*Math.pow(2,-10*(e=+e))*Math.sin((e+o)/n)}return a.amplitude=function(t){return e(t,n*tau$3)},a.period=function(n){return e(t,n)},a}(amplitude,period),function e(t,n){var o=Math.asin(1/(t=Math.max(1,t)))*(n/=tau$3);function a(e){return((e=2*e-1)<0?t*Math.pow(2,10*e)*Math.sin((o-e)/n):2-t*Math.pow(2,-10*e)*Math.sin((o+e)/n))/2}return a.amplitude=function(t){return e(t,n*tau$3)},a.period=function(n){return e(t,n)},a}(amplitude,period);var defaultTiming={time:null,delay:0,duration:250,ease:cubicInOut};function inherit(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))return defaultTiming.time=now(),defaultTiming;return n}function selection_transition(e){var t,n;e instanceof Transition?(t=e._id,e=e._name):(t=newId(),(n=defaultTiming).time=now(),e=null==e?null:e+"");for(var o=this._groups,a=o.length,r=0;r<a;++r)for(var i,l=o[r],s=l.length,u=0;u<s;++u)(i=l[u])&&schedule(i,e,t,u,l,n||inherit(i,t));return new Transition(o,this._parents,e,t)}selection.prototype.interrupt=selection_interrupt,selection.prototype.transition=selection_transition;var pi$2=Math.PI,tau$2=2*pi$2,epsilon$2=1e-6,tauEpsilon=tau$2-epsilon$2;function Path(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function path(){return new Path}Path.prototype=path.prototype={constructor:Path,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,o){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+o)},bezierCurveTo:function(e,t,n,o,a,r){this._+="C"+ +e+","+ +t+","+ +n+","+ +o+","+(this._x1=+a)+","+(this._y1=+r)},arcTo:function(e,t,n,o,a){e=+e,t=+t,n=+n,o=+o,a=+a;var r=this._x1,i=this._y1,l=n-e,s=o-t,u=r-e,c=i-t,d=u*u+c*c;if(a<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>epsilon$2)if(Math.abs(c*l-s*u)>epsilon$2&&a){var p=n-r,h=o-i,f=l*l+s*s,v=p*p+h*h,m=Math.sqrt(f),g=Math.sqrt(d),_=a*Math.tan((pi$2-Math.acos((f+d-v)/(2*m*g)))/2),b=_/g,y=_/m;Math.abs(b-1)>epsilon$2&&(this._+="L"+(e+b*u)+","+(t+b*c)),this._+="A"+a+","+a+",0,0,"+ +(c*p>u*h)+","+(this._x1=e+y*l)+","+(this._y1=t+y*s)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,o,a,r){e=+e,t=+t;var i=(n=+n)*Math.cos(o),l=n*Math.sin(o),s=e+i,u=t+l,c=1^r,d=r?o-a:a-o;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+s+","+u:(Math.abs(this._x1-s)>epsilon$2||Math.abs(this._y1-u)>epsilon$2)&&(this._+="L"+s+","+u),n&&(d<0&&(d=d%tau$2+tau$2),d>tauEpsilon?this._+="A"+n+","+n+",0,1,"+c+","+(e-i)+","+(t-l)+"A"+n+","+n+",0,1,"+c+","+(this._x1=s)+","+(this._y1=u):d>epsilon$2&&(this._+="A"+n+","+n+",0,"+ +(d>=pi$2)+","+c+","+(this._x1=e+n*Math.cos(a))+","+(this._y1=t+n*Math.sin(a))))},rect:function(e,t,n,o){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +o+"h"+-n+"Z"},toString:function(){return this._}};var prefix="$";function Map$1(){}function map$1(e,t){var n=new Map$1;if(e instanceof Map$1)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var o,a=-1,r=e.length;if(null==t)for(;++a<r;)n.set(a,e[a]);else for(;++a<r;)n.set(t(o=e[a],a,e),o)}else if(e)for(var i in e)n.set(i,e[i]);return n}function Set$1(){}Map$1.prototype=map$1.prototype={constructor:Map$1,has:function(e){return prefix+e in this},get:function(e){return this[prefix+e]},set:function(e,t){return this[prefix+e]=t,this},remove:function(e){var t=prefix+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===prefix&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===prefix&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===prefix&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===prefix&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===prefix&&++e;return e},empty:function(){for(var e in this)if(e[0]===prefix)return!1;return!0},each:function(e){for(var t in this)t[0]===prefix&&e(this[t],t.slice(1),this)}};var proto=map$1.prototype;Set$1.prototype={constructor:Set$1,has:proto.has,add:function(e){return this[prefix+(e+="")]=e,this},remove:proto.remove,clear:proto.clear,values:proto.keys,size:proto.size,empty:proto.empty,each:proto.each};var EOL={},EOF={},QUOTE=34,NEWLINE=10,RETURN=13;function objectConverter(e){return new Function("d","return {"+e.map((function(e,t){return JSON.stringify(e)+": d["+t+"]"})).join(",")+"}")}function customConverter(e,t){var n=objectConverter(e);return function(o,a){return t(n(o),a,e)}}function inferColumns(e){var t=Object.create(null),n=[];return e.forEach((function(e){for(var o in e)o in t||n.push(t[o]=o)})),n}function dsv(e){var t=new RegExp('["'+e+"\n\r]"),n=e.charCodeAt(0);function o(e,t){var o,a=[],r=e.length,i=0,l=0,s=r<=0,u=!1;function c(){if(s)return EOF;if(u)return u=!1,EOL;var t,o,a=i;if(e.charCodeAt(a)===QUOTE){for(;i++<r&&e.charCodeAt(i)!==QUOTE||e.charCodeAt(++i)===QUOTE;);return(t=i)>=r?s=!0:(o=e.charCodeAt(i++))===NEWLINE?u=!0:o===RETURN&&(u=!0,e.charCodeAt(i)===NEWLINE&&++i),e.slice(a+1,t-1).replace(/""/g,'"')}for(;i<r;){if((o=e.charCodeAt(t=i++))===NEWLINE)u=!0;else if(o===RETURN)u=!0,e.charCodeAt(i)===NEWLINE&&++i;else if(o!==n)continue;return e.slice(a,t)}return s=!0,e.slice(a,r)}for(e.charCodeAt(r-1)===NEWLINE&&--r,e.charCodeAt(r-1)===RETURN&&--r;(o=c())!==EOF;){for(var d=[];o!==EOL&&o!==EOF;)d.push(o),o=c();t&&null==(d=t(d,l++))||a.push(d)}return a}function a(t){return t.map(r).join(e)}function r(e){return null==e?"":t.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e}return{parse:function(e,t){var n,a,r=o(e,(function(e,o){if(n)return n(e,o-1);a=e,n=t?customConverter(e,t):objectConverter(e)}));return r.columns=a||[],r},parseRows:o,format:function(t,n){return null==n&&(n=inferColumns(t)),[n.map(r).join(e)].concat(t.map((function(t){return n.map((function(e){return r(t[e])})).join(e)}))).join("\n")},formatRows:function(e){return e.map(a).join("\n")}}}function tree_add(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return add$1(this.cover(t,n),t,n,e)}function add$1(e,t,n,o){if(isNaN(t)||isNaN(n))return e;var a,r,i,l,s,u,c,d,p,h=e._root,f={data:o},v=e._x0,m=e._y0,g=e._x1,_=e._y1;if(!h)return e._root=f,e;for(;h.length;)if((u=t>=(r=(v+g)/2))?v=r:g=r,(c=n>=(i=(m+_)/2))?m=i:_=i,a=h,!(h=h[d=c<<1|u]))return a[d]=f,e;if(l=+e._x.call(null,h.data),s=+e._y.call(null,h.data),t===l&&n===s)return f.next=h,a?a[d]=f:e._root=f,e;do{a=a?a[d]=new Array(4):e._root=new Array(4),(u=t>=(r=(v+g)/2))?v=r:g=r,(c=n>=(i=(m+_)/2))?m=i:_=i}while((d=c<<1|u)==(p=(s>=i)<<1|l>=r));return a[p]=h,a[d]=f,e}function addAll(e){var t,n,o,a,r=e.length,i=new Array(r),l=new Array(r),s=1/0,u=1/0,c=-1/0,d=-1/0;for(n=0;n<r;++n)isNaN(o=+this._x.call(null,t=e[n]))||isNaN(a=+this._y.call(null,t))||(i[n]=o,l[n]=a,o<s&&(s=o),o>c&&(c=o),a<u&&(u=a),a>d&&(d=a));for(c<s&&(s=this._x0,c=this._x1),d<u&&(u=this._y0,d=this._y1),this.cover(s,u).cover(c,d),n=0;n<r;++n)add$1(this,i[n],l[n],e[n]);return this}function tree_cover(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,o=this._y0,a=this._x1,r=this._y1;if(isNaN(n))a=(n=Math.floor(e))+1,r=(o=Math.floor(t))+1;else{if(!(n>e||e>a||o>t||t>r))return this;var i,l,s=a-n,u=this._root;switch(l=(t<(o+r)/2)<<1|e<(n+a)/2){case 0:do{(i=new Array(4))[l]=u,u=i}while(r=o+(s*=2),e>(a=n+s)||t>r);break;case 1:do{(i=new Array(4))[l]=u,u=i}while(r=o+(s*=2),(n=a-s)>e||t>r);break;case 2:do{(i=new Array(4))[l]=u,u=i}while(o=r-(s*=2),e>(a=n+s)||o>t);break;case 3:do{(i=new Array(4))[l]=u,u=i}while(o=r-(s*=2),(n=a-s)>e||o>t)}this._root&&this._root.length&&(this._root=u)}return this._x0=n,this._y0=o,this._x1=a,this._y1=r,this}function tree_data(){var e=[];return this.visit((function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)})),e}function tree_extent(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function Quad(e,t,n,o,a){this.node=e,this.x0=t,this.y0=n,this.x1=o,this.y1=a}function tree_find(e,t,n){var o,a,r,i,l,s,u,c=this._x0,d=this._y0,p=this._x1,h=this._y1,f=[],v=this._root;for(v&&f.push(new Quad(v,c,d,p,h)),null==n?n=1/0:(c=e-n,d=t-n,p=e+n,h=t+n,n*=n);s=f.pop();)if(!(!(v=s.node)||(a=s.x0)>p||(r=s.y0)>h||(i=s.x1)<c||(l=s.y1)<d))if(v.length){var m=(a+i)/2,g=(r+l)/2;f.push(new Quad(v[3],m,g,i,l),new Quad(v[2],a,g,m,l),new Quad(v[1],m,r,i,g),new Quad(v[0],a,r,m,g)),(u=(t>=g)<<1|e>=m)&&(s=f[f.length-1],f[f.length-1]=f[f.length-1-u],f[f.length-1-u]=s)}else{var _=e-+this._x.call(null,v.data),b=t-+this._y.call(null,v.data),y=_*_+b*b;if(y<n){var w=Math.sqrt(n=y);c=e-w,d=t-w,p=e+w,h=t+w,o=v.data}}return o}function tree_remove(e){if(isNaN(r=+this._x.call(null,e))||isNaN(i=+this._y.call(null,e)))return this;var t,n,o,a,r,i,l,s,u,c,d,p,h=this._root,f=this._x0,v=this._y0,m=this._x1,g=this._y1;if(!h)return this;if(h.length)for(;;){if((u=r>=(l=(f+m)/2))?f=l:m=l,(c=i>=(s=(v+g)/2))?v=s:g=s,t=h,!(h=h[d=c<<1|u]))return this;if(!h.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,p=d)}for(;h.data!==e;)if(o=h,!(h=h.next))return this;return(a=h.next)&&delete h.next,o?(a?o.next=a:delete o.next,this):t?(a?t[d]=a:delete t[d],(h=t[0]||t[1]||t[2]||t[3])&&h===(t[3]||t[2]||t[1]||t[0])&&!h.length&&(n?n[p]=h:this._root=h),this):(this._root=a,this)}function removeAll(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function tree_root(){return this._root}function tree_size(){var e=0;return this.visit((function(t){if(!t.length)do{++e}while(t=t.next)})),e}function tree_visit(e){var t,n,o,a,r,i,l=[],s=this._root;for(s&&l.push(new Quad(s,this._x0,this._y0,this._x1,this._y1));t=l.pop();)if(!e(s=t.node,o=t.x0,a=t.y0,r=t.x1,i=t.y1)&&s.length){var u=(o+r)/2,c=(a+i)/2;(n=s[3])&&l.push(new Quad(n,u,c,r,i)),(n=s[2])&&l.push(new Quad(n,o,c,u,i)),(n=s[1])&&l.push(new Quad(n,u,a,r,c)),(n=s[0])&&l.push(new Quad(n,o,a,u,c))}return this}function tree_visitAfter(e){var t,n=[],o=[];for(this._root&&n.push(new Quad(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var a=t.node;if(a.length){var r,i=t.x0,l=t.y0,s=t.x1,u=t.y1,c=(i+s)/2,d=(l+u)/2;(r=a[0])&&n.push(new Quad(r,i,l,c,d)),(r=a[1])&&n.push(new Quad(r,c,l,s,d)),(r=a[2])&&n.push(new Quad(r,i,d,c,u)),(r=a[3])&&n.push(new Quad(r,c,d,s,u))}o.push(t)}for(;t=o.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this}function tree_x(e){return arguments.length?(this._x=e,this):this._x}function tree_y(e){return arguments.length?(this._y=e,this):this._y}function Quadtree(e,t,n,o,a,r){this._x=e,this._y=t,this._x0=n,this._y0=o,this._x1=a,this._y1=r,this._root=void 0}function leaf_copy(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}dsv(","),dsv("\t");var prefixExponent,treeProto=Quadtree.prototype;function formatDecimal(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,o=e.slice(0,n);return[o.length>1?o[0]+o.slice(2):o,+e.slice(n+1)]}function exponent(e){return(e=formatDecimal(Math.abs(e)))?e[1]:NaN}function formatGroup(e,t){return function(n,o){for(var a=n.length,r=[],i=0,l=e[0],s=0;a>0&&l>0&&(s+l+1>o&&(l=Math.max(1,o-s)),r.push(n.substring(a-=l,a+l)),!((s+=l+1)>o));)l=e[i=(i+1)%e.length];return r.reverse().join(t)}}function formatNumerals(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}function formatDefault(e,t){e:for(var n,o=(e=e.toPrecision(t)).length,a=1,r=-1;a<o;++a)switch(e[a]){case".":r=n=a;break;case"0":0===r&&(r=a),n=a;break;case"e":break e;default:r>0&&(r=0)}return r>0?e.slice(0,r)+e.slice(n+1):e}function formatPrefixAuto(e,t){var n=formatDecimal(e,t);if(!n)return e+"";var o=n[0],a=n[1],r=a-(prefixExponent=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,i=o.length;return r===i?o:r>i?o+new Array(r-i+1).join("0"):r>0?o.slice(0,r)+"."+o.slice(r):"0."+new Array(1-r).join("0")+formatDecimal(e,Math.max(0,t+r-1))[0]}function formatRounded(e,t){var n=formatDecimal(e,t);if(!n)return e+"";var o=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+o:o.length>a+1?o.slice(0,a+1)+"."+o.slice(a+1):o+new Array(a-o.length+2).join("0")}treeProto.copy=function(){var e,t,n=new Quadtree(this._x,this._y,this._x0,this._y0,this._x1,this._y1),o=this._root;if(!o)return n;if(!o.length)return n._root=leaf_copy(o),n;for(e=[{source:o,target:n._root=new Array(4)}];o=e.pop();)for(var a=0;a<4;++a)(t=o.source[a])&&(t.length?e.push({source:t,target:o.target[a]=new Array(4)}):o.target[a]=leaf_copy(t));return n},treeProto.add=tree_add,treeProto.addAll=addAll,treeProto.cover=tree_cover,treeProto.data=tree_data,treeProto.extent=tree_extent,treeProto.find=tree_find,treeProto.remove=tree_remove,treeProto.removeAll=removeAll,treeProto.root=tree_root,treeProto.size=tree_size,treeProto.visit=tree_visit,treeProto.visitAfter=tree_visitAfter,treeProto.x=tree_x,treeProto.y=tree_y;const formatTypes={"":formatDefault,"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return formatRounded(100*e,t)},r:formatRounded,s:formatPrefixAuto,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};var re=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function formatSpecifier(e){return new FormatSpecifier(e)}function FormatSpecifier(e){if(!(t=re.exec(e)))throw new Error("invalid format: "+e);var t,n=t[1]||" ",o=t[2]||">",a=t[3]||"-",r=t[4]||"",i=!!t[5],l=t[6]&&+t[6],s=!!t[7],u=t[8]&&+t[8].slice(1),c=t[9]||"";"n"===c?(s=!0,c="g"):formatTypes[c]||(c=""),(i||"0"===n&&"="===o)&&(i=!0,n="0",o="="),this.fill=n,this.align=o,this.sign=a,this.symbol=r,this.zero=i,this.width=l,this.comma=s,this.precision=u,this.type=c}function identity$1(e){return e}formatSpecifier.prototype=FormatSpecifier.prototype,FormatSpecifier.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var locale$1,format,formatPrefix,prefixes$1=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function formatLocale$1(e){var t=e.grouping&&e.thousands?formatGroup(e.grouping,e.thousands):identity$1,n=e.currency,o=e.decimal,a=e.numerals?formatNumerals(e.numerals):identity$1,r=e.percent||"%";function i(e){var i=(e=formatSpecifier(e)).fill,l=e.align,s=e.sign,u=e.symbol,c=e.zero,d=e.width,p=e.comma,h=e.precision,f=e.type,v="$"===u?n[0]:"#"===u&&/[boxX]/.test(f)?"0"+f.toLowerCase():"",m="$"===u?n[1]:/[%p]/.test(f)?r:"",g=formatTypes[f],_=!f||/[defgprs%]/.test(f);function b(e){var n,r,u,b=v,y=m;if("c"===f)y=g(e)+y,e="";else{var w=(e=+e)<0;if(e=g(Math.abs(e),h),w&&0==+e&&(w=!1),b=(w?"("===s?s:"-":"-"===s||"("===s?"":s)+b,y=("s"===f?prefixes$1[8+prefixExponent/3]:"")+y+(w&&"("===s?")":""),_)for(n=-1,r=e.length;++n<r;)if(48>(u=e.charCodeAt(n))||u>57){y=(46===u?o+e.slice(n+1):e.slice(n))+y,e=e.slice(0,n);break}}p&&!c&&(e=t(e,1/0));var C=b.length+e.length+y.length,S=C<d?new Array(d-C+1).join(i):"";switch(p&&c&&(e=t(S+e,S.length?d-y.length:1/0),S=""),l){case"<":e=b+e+y+S;break;case"=":e=b+S+e+y;break;case"^":e=S.slice(0,C=S.length>>1)+b+e+y+S.slice(C);break;default:e=S+b+e+y}return a(e)}return h=null==h?f?6:12:/[gprs]/.test(f)?Math.max(1,Math.min(21,h)):Math.max(0,Math.min(20,h)),b.toString=function(){return e+""},b}return{format:i,formatPrefix:function(e,t){var n=i(((e=formatSpecifier(e)).type="f",e)),o=3*Math.max(-8,Math.min(8,Math.floor(exponent(t)/3))),a=Math.pow(10,-o),r=prefixes$1[8+o/3];return function(e){return n(a*e)+r}}}}function defaultLocale$1(e){return locale$1=formatLocale$1(e),format=locale$1.format,formatPrefix=locale$1.formatPrefix,locale$1}function precisionFixed(e){return Math.max(0,-exponent(Math.abs(e)))}function precisionPrefix(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(exponent(t)/3)))-exponent(Math.abs(e)))}function precisionRound(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,exponent(t)-exponent(e))+1}function adder(){return new Adder}function Adder(){this.reset()}defaultLocale$1({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),Adder.prototype={constructor:Adder,reset:function(){this.s=this.t=0},add:function(e){add(temp,e,this.t),add(this,temp.s,this.s),this.s?this.t+=temp.t:this.s=temp.t},valueOf:function(){return this.s}};var temp=new Adder;function add(e,t,n){var o=e.s=t+n,a=o-t,r=o-a;e.t=t-r+(n-a)}var pi$1=Math.PI,tau$1=2*pi$1;function rotationIdentity(e,t){return[e>pi$1?e-tau$1:e<-pi$1?e+tau$1:e,t]}function TransformStream(){}function equirectangularRaw(e,t){return[e,t]}function count(e){var t=0,n=e.children,o=n&&n.length;if(o)for(;--o>=0;)t+=n[o].value;else t=1;e.value=t}function node_count(){return this.eachAfter(count)}function node_each(e){var t,n,o,a,r=this,i=[r];do{for(t=i.reverse(),i=[];r=t.pop();)if(e(r),n=r.children)for(o=0,a=n.length;o<a;++o)i.push(n[o])}while(i.length);return this}function node_eachBefore(e){for(var t,n,o=this,a=[o];o=a.pop();)if(e(o),t=o.children)for(n=t.length-1;n>=0;--n)a.push(t[n]);return this}function node_eachAfter(e){for(var t,n,o,a=this,r=[a],i=[];a=r.pop();)if(i.push(a),t=a.children)for(n=0,o=t.length;n<o;++n)r.push(t[n]);for(;a=i.pop();)e(a);return this}function node_sum(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,o=t.children,a=o&&o.length;--a>=0;)n+=o[a].value;t.value=n}))}function node_sort(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))}function node_path(e){for(var t=this,n=leastCommonAncestor(t,e),o=[t];t!==n;)t=t.parent,o.push(t);for(var a=o.length;e!==n;)o.splice(a,0,e),e=e.parent;return o}function leastCommonAncestor(e,t){if(e===t)return e;var n=e.ancestors(),o=t.ancestors(),a=null;for(e=n.pop(),t=o.pop();e===t;)a=e,e=n.pop(),t=o.pop();return a}function node_ancestors(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function node_descendants(){var e=[];return this.each((function(t){e.push(t)})),e}function node_leaves(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e}function node_links(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t}function hierarchy(e,t){var n,o,a,r,i,l=new Node$1(e),s=+e.value&&(l.value=e.value),u=[l];for(null==t&&(t=defaultChildren);n=u.pop();)if(s&&(n.value=+n.data.value),(a=t(n.data))&&(i=a.length))for(n.children=new Array(i),r=i-1;r>=0;--r)u.push(o=n.children[r]=new Node$1(a[r])),o.parent=n,o.depth=n.depth+1;return l.eachBefore(computeHeight)}function node_copy(){return hierarchy(this).eachBefore(copyData)}function defaultChildren(e){return e.children}function copyData(e){e.data=e.data.data}function computeHeight(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Node$1(e){this.data=e,this.depth=this.height=0,this.parent=null}function treemapDice(e,t,n,o,a){for(var r,i=e.children,l=-1,s=i.length,u=e.value&&(o-t)/e.value;++l<s;)(r=i[l]).y0=n,r.y1=a,r.x0=t,r.x1=t+=r.value*u}function treemapSlice(e,t,n,o,a){for(var r,i=e.children,l=-1,s=i.length,u=e.value&&(a-n)/e.value;++l<s;)(r=i[l]).x0=t,r.x1=o,r.y0=n,r.y1=n+=r.value*u}adder(),adder(),adder(),rotationIdentity.invert=rotationIdentity,adder(),adder(),adder(),adder(),adder(),TransformStream.prototype={constructor:TransformStream,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},equirectangularRaw.invert=equirectangularRaw,Node$1.prototype=hierarchy.prototype={constructor:Node$1,count:node_count,each:node_each,eachAfter:node_eachAfter,eachBefore:node_eachBefore,sum:node_sum,sort:node_sort,path:node_path,ancestors:node_ancestors,descendants:node_descendants,leaves:node_leaves,links:node_links,copy:node_copy},Object.create(Node$1.prototype);var phi=(1+Math.sqrt(5))/2;function squarifyRatio(e,t,n,o,a,r){for(var i,l,s,u,c,d,p,h,f,v,m,g=[],_=t.children,b=0,y=0,w=_.length,C=t.value;b<w;){s=a-n,u=r-o;do{c=_[y++].value}while(!c&&y<w);for(d=p=c,m=c*c*(v=Math.max(u/s,s/u)/(C*e)),f=Math.max(p/m,m/d);y<w;++y){if(c+=l=_[y].value,l<d&&(d=l),l>p&&(p=l),m=c*c*v,(h=Math.max(p/m,m/d))>f){c-=l;break}f=h}g.push(i={value:c,dice:s<u,children:_.slice(b,y)}),i.dice?treemapDice(i,n,o,a,C?o+=u*c/C:r):treemapSlice(i,n,o,C?n+=s*c/C:a,r),C-=c,b=y}return g}!function e(t){function n(e,n,o,a,r){squarifyRatio(t,e,n,o,a,r)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(phi),function e(t){function n(e,n,o,a,r){if((i=e._squarify)&&i.ratio===t)for(var i,l,s,u,c,d=-1,p=i.length,h=e.value;++d<p;){for(s=(l=i[d]).children,u=l.value=0,c=s.length;u<c;++u)l.value+=s[u].value;l.dice?treemapDice(l,n,o,a,o+=(r-o)*l.value/h):treemapSlice(l,n,o,n+=(a-n)*l.value/h,r),h-=l.value}else e._squarify=i=squarifyRatio(t,e,n,o,a,r),i.ratio=t}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(phi);var slice$1=[].slice,noabort={};function Queue(e){this._size=e,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function poke(e){if(!e._start)try{start$1(e)}catch(t){if(e._tasks[e._ended+e._active-1])abort(e,t);else if(!e._data)throw t}}function start$1(e){for(;e._start=e._waiting&&e._active<e._size;){var t=e._ended+e._active,n=e._tasks[t],o=n.length-1,a=n[o];n[o]=end(e,t),--e._waiting,++e._active,n=a.apply(null,n),e._tasks[t]&&(e._tasks[t]=n||noabort)}}function end(e,t){return function(n,o){e._tasks[t]&&(--e._active,++e._ended,e._tasks[t]=null,null==e._error&&(null!=n?abort(e,n):(e._data[t]=o,e._waiting?poke(e):maybeNotify(e))))}}function abort(e,t){var n,o=e._tasks.length;for(e._error=t,e._data=void 0,e._waiting=NaN;--o>=0;)if((n=e._tasks[o])&&(e._tasks[o]=null,n.abort))try{n.abort()}catch(e){}e._active=NaN,maybeNotify(e)}function maybeNotify(e){if(!e._active&&e._call){var t=e._data;e._data=void 0,e._call(e._error,t)}}function defaultSource(){return Math.random()}Queue.prototype={constructor:Queue,defer:function(e){if("function"!=typeof e)throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(null!=this._error)return this;var t=slice$1.call(arguments,1);return t.push(e),++this._waiting,this._tasks.push(t),poke(this),this},abort:function(){return null==this._error&&abort(this,new Error("abort")),this},await:function(e){if("function"!=typeof e)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=function(t,n){e.apply(null,[t].concat(n))},maybeNotify(this),this},awaitAll:function(e){if("function"!=typeof e)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=e,maybeNotify(this),this}},function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,1===arguments.length?(n=e,e=0):n-=e,function(){return t()*n+e}}return n.source=e,n}(defaultSource);const normal=function e(t){function n(e,n){var o,a;return e=null==e?0:+e,n=null==n?1:+n,function(){var r;if(null!=o)r=o,o=null;else do{o=2*t()-1,r=2*t()-1,a=o*o+r*r}while(!a||a>1);return e+n*r*Math.sqrt(-2*Math.log(a)/a)}}return n.source=e,n}(defaultSource);!function e(t){function n(){var e=normal.source(t).apply(this,arguments);return function(){return Math.exp(e())}}return n.source=e,n}(defaultSource);const irwinHall=function e(t){function n(e){return function(){for(var n=0,o=0;o<e;++o)n+=t();return n}}return n.source=e,n}(defaultSource);!function e(t){function n(e){var n=irwinHall.source(t)(e);return function(){return n()/e}}return n.source=e,n}(defaultSource),function e(t){function n(e){return function(){return-Math.log(1-t())/e}}return n.source=e,n}(defaultSource);var array=Array.prototype,map=array.map,slice=array.slice,implicit={name:"implicit"};function ordinal(e){var t=map$1(),n=[],o=implicit;function a(a){var r=a+"",i=t.get(r);if(!i){if(o!==implicit)return o;t.set(r,i=n.push(a))}return e[(i-1)%e.length]}return e=null==e?[]:slice.call(e),a.domain=function(e){if(!arguments.length)return n.slice();n=[],t=map$1();for(var o,r,i=-1,l=e.length;++i<l;)t.has(r=(o=e[i])+"")||t.set(r,n.push(o));return a},a.range=function(t){return arguments.length?(e=slice.call(t),a):e.slice()},a.unknown=function(e){return arguments.length?(o=e,a):o},a.copy=function(){return ordinal().domain(n).range(e).unknown(o)},a}function constant$1(e){return function(){return e}}function number(e){return+e}var unit=[0,1];function deinterpolateLinear(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:constant$1(t)}function deinterpolateClamp(e){return function(t,n){var o=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:o(e)}}}function reinterpolateClamp(e){return function(t,n){var o=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:o(e)}}}function bimap(e,t,n,o){var a=e[0],r=e[1],i=t[0],l=t[1];return r<a?(a=n(r,a),i=o(l,i)):(a=n(a,r),i=o(i,l)),function(e){return i(a(e))}}function polymap(e,t,n,o){var a=Math.min(e.length,t.length)-1,r=new Array(a),i=new Array(a),l=-1;for(e[a]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<a;)r[l]=n(e[l],e[l+1]),i[l]=o(t[l],t[l+1]);return function(t){var n=bisectRight(e,t,1,a)-1;return i[n](r[n](t))}}function copy(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp())}function continuous(e,t){var n,o,a,r=unit,i=unit,l=interpolateValue,s=!1;function u(){return n=Math.min(r.length,i.length)>2?polymap:bimap,o=a=null,c}function c(t){return(o||(o=n(r,i,s?deinterpolateClamp(e):e,l)))(+t)}return c.invert=function(e){return(a||(a=n(i,r,deinterpolateLinear,s?reinterpolateClamp(t):t)))(+e)},c.domain=function(e){return arguments.length?(r=map.call(e,number),u()):r.slice()},c.range=function(e){return arguments.length?(i=slice.call(e),u()):i.slice()},c.rangeRound=function(e){return i=slice.call(e),l=interpolateRound,u()},c.clamp=function(e){return arguments.length?(s=!!e,u()):s},c.interpolate=function(e){return arguments.length?(l=e,u()):l},u()}function tickFormat(e,t,n){var o,a=e[0],r=e[e.length-1],i=tickStep(a,r,null==t?10:t);switch((n=formatSpecifier(null==n?",f":n)).type){case"s":var l=Math.max(Math.abs(a),Math.abs(r));return null!=n.precision||isNaN(o=precisionPrefix(i,l))||(n.precision=o),formatPrefix(n,l);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(o=precisionRound(i,Math.max(Math.abs(a),Math.abs(r))))||(n.precision=o-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(o=precisionFixed(i))||(n.precision=o-2*("%"===n.type))}return format(n)}function linearish(e){var t=e.domain;return e.ticks=function(e){var n=t();return ticks(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){return tickFormat(t(),e,n)},e.nice=function(n){null==n&&(n=10);var o,a=t(),r=0,i=a.length-1,l=a[r],s=a[i];return s<l&&(o=l,l=s,s=o,o=r,r=i,i=o),(o=tickIncrement(l,s,n))>0?o=tickIncrement(l=Math.floor(l/o)*o,s=Math.ceil(s/o)*o,n):o<0&&(o=tickIncrement(l=Math.ceil(l*o)/o,s=Math.floor(s*o)/o,n)),o>0?(a[r]=Math.floor(l/o)*o,a[i]=Math.ceil(s/o)*o,t(a)):o<0&&(a[r]=Math.ceil(l*o)/o,a[i]=Math.floor(s*o)/o,t(a)),e},e}function linear(){var e=continuous(deinterpolateLinear,reinterpolate);return e.copy=function(){return copy(e,linear())},linearish(e)}var t0=new Date,t1=new Date;function newInterval(e,t,n,o){function a(t){return e(t=new Date(+t)),t}return a.floor=a,a.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},a.round=function(e){var t=a(e),n=a.ceil(e);return e-t<n-e?t:n},a.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},a.range=function(n,o,r){var i,l=[];if(n=a.ceil(n),r=null==r?1:Math.floor(r),!(n<o&&r>0))return l;do{l.push(i=new Date(+n)),t(n,r),e(n)}while(i<n&&n<o);return l},a.filter=function(n){return newInterval((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,o){if(e>=e)if(o<0)for(;++o<=0;)for(;t(e,-1),!n(e););else for(;--o>=0;)for(;t(e,1),!n(e););}))},n&&(a.count=function(t,o){return t0.setTime(+t),t1.setTime(+o),e(t0),e(t1),Math.floor(n(t0,t1))},a.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?a.filter(o?function(t){return o(t)%e==0}:function(t){return a.count(0,t)%e==0}):a:null}),a}var millisecond=newInterval((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));millisecond.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?newInterval((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):millisecond:null},millisecond.range;var durationSecond=1e3,durationMinute=6e4,durationHour=36e5,durationDay=864e5,durationWeek=6048e5,second=newInterval((function(e){e.setTime(Math.floor(e/durationSecond)*durationSecond)}),(function(e,t){e.setTime(+e+t*durationSecond)}),(function(e,t){return(t-e)/durationSecond}),(function(e){return e.getUTCSeconds()}));second.range;var minute=newInterval((function(e){e.setTime(Math.floor(e/durationMinute)*durationMinute)}),(function(e,t){e.setTime(+e+t*durationMinute)}),(function(e,t){return(t-e)/durationMinute}),(function(e){return e.getMinutes()}));minute.range;var hour=newInterval((function(e){var t=e.getTimezoneOffset()*durationMinute%durationHour;t<0&&(t+=durationHour),e.setTime(Math.floor((+e-t)/durationHour)*durationHour+t)}),(function(e,t){e.setTime(+e+t*durationHour)}),(function(e,t){return(t-e)/durationHour}),(function(e){return e.getHours()}));hour.range;var day=newInterval((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*durationMinute)/durationDay}),(function(e){return e.getDate()-1}));function weekday(e){return newInterval((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*durationMinute)/durationWeek}))}day.range;var sunday=weekday(0),monday=weekday(1),tuesday=weekday(2),wednesday=weekday(3),thursday=weekday(4),friday=weekday(5),saturday=weekday(6);sunday.range,monday.range,tuesday.range,wednesday.range,thursday.range,friday.range,saturday.range;var month=newInterval((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}));month.range;var year=newInterval((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));year.every=function(e){return isFinite(e=Math.floor(e))&&e>0?newInterval((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},year.range;var utcMinute=newInterval((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*durationMinute)}),(function(e,t){return(t-e)/durationMinute}),(function(e){return e.getUTCMinutes()}));utcMinute.range;var utcHour=newInterval((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*durationHour)}),(function(e,t){return(t-e)/durationHour}),(function(e){return e.getUTCHours()}));utcHour.range;var utcDay=newInterval((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/durationDay}),(function(e){return e.getUTCDate()-1}));function utcWeekday(e){return newInterval((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/durationWeek}))}utcDay.range;var utcSunday=utcWeekday(0),utcMonday=utcWeekday(1),utcTuesday=utcWeekday(2),utcWednesday=utcWeekday(3),utcThursday=utcWeekday(4),utcFriday=utcWeekday(5),utcSaturday=utcWeekday(6);utcSunday.range,utcMonday.range,utcTuesday.range,utcWednesday.range,utcThursday.range,utcFriday.range,utcSaturday.range;var utcMonth=newInterval((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}));utcMonth.range;var utcYear=newInterval((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));function localDate(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function utcDate(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function newYear(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function formatLocale(e){var t=e.dateTime,n=e.date,o=e.time,a=e.periods,r=e.days,i=e.shortDays,l=e.months,s=e.shortMonths,u=formatRe(a),c=formatLookup(a),d=formatRe(r),p=formatLookup(r),h=formatRe(i),f=formatLookup(i),v=formatRe(l),m=formatLookup(l),g=formatRe(s),_=formatLookup(s),b={a:function(e){return i[e.getDay()]},A:function(e){return r[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:formatDayOfMonth,e:formatDayOfMonth,f:formatMicroseconds,H:formatHour24,I:formatHour12,j:formatDayOfYear,L:formatMilliseconds,m:formatMonthNumber,M:formatMinutes,p:function(e){return a[+(e.getHours()>=12)]},Q:formatUnixTimestamp,s:formatUnixTimestampSeconds,S:formatSeconds,u:formatWeekdayNumberMonday,U:formatWeekNumberSunday,V:formatWeekNumberISO,w:formatWeekdayNumberSunday,W:formatWeekNumberMonday,x:null,X:null,y:formatYear,Y:formatFullYear,Z:formatZone,"%":formatLiteralPercent},y={a:function(e){return i[e.getUTCDay()]},A:function(e){return r[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:formatUTCDayOfMonth,e:formatUTCDayOfMonth,f:formatUTCMicroseconds,H:formatUTCHour24,I:formatUTCHour12,j:formatUTCDayOfYear,L:formatUTCMilliseconds,m:formatUTCMonthNumber,M:formatUTCMinutes,p:function(e){return a[+(e.getUTCHours()>=12)]},Q:formatUnixTimestamp,s:formatUnixTimestampSeconds,S:formatUTCSeconds,u:formatUTCWeekdayNumberMonday,U:formatUTCWeekNumberSunday,V:formatUTCWeekNumberISO,w:formatUTCWeekdayNumberSunday,W:formatUTCWeekNumberMonday,x:null,X:null,y:formatUTCYear,Y:formatUTCFullYear,Z:formatUTCZone,"%":formatLiteralPercent},w={a:function(e,t,n){var o=h.exec(t.slice(n));return o?(e.w=f[o[0].toLowerCase()],n+o[0].length):-1},A:function(e,t,n){var o=d.exec(t.slice(n));return o?(e.w=p[o[0].toLowerCase()],n+o[0].length):-1},b:function(e,t,n){var o=g.exec(t.slice(n));return o?(e.m=_[o[0].toLowerCase()],n+o[0].length):-1},B:function(e,t,n){var o=v.exec(t.slice(n));return o?(e.m=m[o[0].toLowerCase()],n+o[0].length):-1},c:function(e,n,o){return k(e,t,n,o)},d:parseDayOfMonth,e:parseDayOfMonth,f:parseMicroseconds,H:parseHour24,I:parseHour24,j:parseDayOfYear,L:parseMilliseconds,m:parseMonthNumber,M:parseMinutes,p:function(e,t,n){var o=u.exec(t.slice(n));return o?(e.p=c[o[0].toLowerCase()],n+o[0].length):-1},Q:parseUnixTimestamp,s:parseUnixTimestampSeconds,S:parseSeconds,u:parseWeekdayNumberMonday,U:parseWeekNumberSunday,V:parseWeekNumberISO,w:parseWeekdayNumberSunday,W:parseWeekNumberMonday,x:function(e,t,o){return k(e,n,t,o)},X:function(e,t,n){return k(e,o,t,n)},y:parseYear,Y:parseFullYear,Z:parseZone,"%":parseLiteralPercent};function C(e,t){return function(n){var o,a,r,i=[],l=-1,s=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++l<u;)37===e.charCodeAt(l)&&(i.push(e.slice(s,l)),null!=(a=pads[o=e.charAt(++l)])?o=e.charAt(++l):a="e"===o?" ":"0",(r=t[o])&&(o=r(n,a)),i.push(o),s=l+1);return i.push(e.slice(s,l)),i.join("")}}function S(e,t){return function(n){var o,a,r=newYear(1900);if(k(r,e,n+="",0)!=n.length)return null;if("Q"in r)return new Date(r.Q);if("p"in r&&(r.H=r.H%12+12*r.p),"V"in r){if(r.V<1||r.V>53)return null;"w"in r||(r.w=1),"Z"in r?(a=(o=utcDate(newYear(r.y))).getUTCDay(),o=a>4||0===a?utcMonday.ceil(o):utcMonday(o),o=utcDay.offset(o,7*(r.V-1)),r.y=o.getUTCFullYear(),r.m=o.getUTCMonth(),r.d=o.getUTCDate()+(r.w+6)%7):(a=(o=t(newYear(r.y))).getDay(),o=a>4||0===a?monday.ceil(o):monday(o),o=day.offset(o,7*(r.V-1)),r.y=o.getFullYear(),r.m=o.getMonth(),r.d=o.getDate()+(r.w+6)%7)}else("W"in r||"U"in r)&&("w"in r||(r.w="u"in r?r.u%7:"W"in r?1:0),a="Z"in r?utcDate(newYear(r.y)).getUTCDay():t(newYear(r.y)).getDay(),r.m=0,r.d="W"in r?(r.w+6)%7+7*r.W-(a+5)%7:r.w+7*r.U-(a+6)%7);return"Z"in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,utcDate(r)):t(r)}}function k(e,t,n,o){for(var a,r,i=0,l=t.length,s=n.length;i<l;){if(o>=s)return-1;if(37===(a=t.charCodeAt(i++))){if(a=t.charAt(i++),!(r=w[a in pads?t.charAt(i++):a])||(o=r(e,n,o))<0)return-1}else if(a!=n.charCodeAt(o++))return-1}return o}return b.x=C(n,b),b.X=C(o,b),b.c=C(t,b),y.x=C(n,y),y.X=C(o,y),y.c=C(t,y),{format:function(e){var t=C(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",localDate);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+="",y);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e,utcDate);return t.toString=function(){return e},t}}}utcYear.every=function(e){return isFinite(e=Math.floor(e))&&e>0?newInterval((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},utcYear.range;var locale,utcFormat,utcParse,pads={"-":"",_:" ",0:"0"},numberRe=/^\s*\d+/,percentRe=/^%/,requoteRe=/[\\^$*+?|[\]().{}]/g;function pad$1(e,t,n){var o=e<0?"-":"",a=(o?-e:e)+"",r=a.length;return o+(r<n?new Array(n-r+1).join(t)+a:a)}function requote(e){return e.replace(requoteRe,"\\$&")}function formatRe(e){return new RegExp("^(?:"+e.map(requote).join("|")+")","i")}function formatLookup(e){for(var t={},n=-1,o=e.length;++n<o;)t[e[n].toLowerCase()]=n;return t}function parseWeekdayNumberSunday(e,t,n){var o=numberRe.exec(t.slice(n,n+1));return o?(e.w=+o[0],n+o[0].length):-1}function parseWeekdayNumberMonday(e,t,n){var o=numberRe.exec(t.slice(n,n+1));return o?(e.u=+o[0],n+o[0].length):-1}function parseWeekNumberSunday(e,t,n){var o=numberRe.exec(t.slice(n,n+2));return o?(e.U=+o[0],n+o[0].length):-1}function parseWeekNumberISO(e,t,n){var o=numberRe.exec(t.slice(n,n+2));return o?(e.V=+o[0],n+o[0].length):-1}function parseWeekNumberMonday(e,t,n){var o=numberRe.exec(t.slice(n,n+2));return o?(e.W=+o[0],n+o[0].length):-1}function parseFullYear(e,t,n){var o=numberRe.exec(t.slice(n,n+4));return o?(e.y=+o[0],n+o[0].length):-1}function parseYear(e,t,n){var o=numberRe.exec(t.slice(n,n+2));return o?(e.y=+o[0]+(+o[0]>68?1900:2e3),n+o[0].length):-1}function parseZone(e,t,n){var o=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return o?(e.Z=o[1]?0:-(o[2]+(o[3]||"00")),n+o[0].length):-1}function parseMonthNumber(e,t,n){var o=numberRe.exec(t.slice(n,n+2));return o?(e.m=o[0]-1,n+o[0].length):-1}function parseDayOfMonth(e,t,n){var o=numberRe.exec(t.slice(n,n+2));return o?(e.d=+o[0],n+o[0].length):-1}function parseDayOfYear(e,t,n){var o=numberRe.exec(t.slice(n,n+3));return o?(e.m=0,e.d=+o[0],n+o[0].length):-1}function parseHour24(e,t,n){var o=numberRe.exec(t.slice(n,n+2));return o?(e.H=+o[0],n+o[0].length):-1}function parseMinutes(e,t,n){var o=numberRe.exec(t.slice(n,n+2));return o?(e.M=+o[0],n+o[0].length):-1}function parseSeconds(e,t,n){var o=numberRe.exec(t.slice(n,n+2));return o?(e.S=+o[0],n+o[0].length):-1}function parseMilliseconds(e,t,n){var o=numberRe.exec(t.slice(n,n+3));return o?(e.L=+o[0],n+o[0].length):-1}function parseMicroseconds(e,t,n){var o=numberRe.exec(t.slice(n,n+6));return o?(e.L=Math.floor(o[0]/1e3),n+o[0].length):-1}function parseLiteralPercent(e,t,n){var o=percentRe.exec(t.slice(n,n+1));return o?n+o[0].length:-1}function parseUnixTimestamp(e,t,n){var o=numberRe.exec(t.slice(n));return o?(e.Q=+o[0],n+o[0].length):-1}function parseUnixTimestampSeconds(e,t,n){var o=numberRe.exec(t.slice(n));return o?(e.Q=1e3*+o[0],n+o[0].length):-1}function formatDayOfMonth(e,t){return pad$1(e.getDate(),t,2)}function formatHour24(e,t){return pad$1(e.getHours(),t,2)}function formatHour12(e,t){return pad$1(e.getHours()%12||12,t,2)}function formatDayOfYear(e,t){return pad$1(1+day.count(year(e),e),t,3)}function formatMilliseconds(e,t){return pad$1(e.getMilliseconds(),t,3)}function formatMicroseconds(e,t){return formatMilliseconds(e,t)+"000"}function formatMonthNumber(e,t){return pad$1(e.getMonth()+1,t,2)}function formatMinutes(e,t){return pad$1(e.getMinutes(),t,2)}function formatSeconds(e,t){return pad$1(e.getSeconds(),t,2)}function formatWeekdayNumberMonday(e){var t=e.getDay();return 0===t?7:t}function formatWeekNumberSunday(e,t){return pad$1(sunday.count(year(e),e),t,2)}function formatWeekNumberISO(e,t){var n=e.getDay();return e=n>=4||0===n?thursday(e):thursday.ceil(e),pad$1(thursday.count(year(e),e)+(4===year(e).getDay()),t,2)}function formatWeekdayNumberSunday(e){return e.getDay()}function formatWeekNumberMonday(e,t){return pad$1(monday.count(year(e),e),t,2)}function formatYear(e,t){return pad$1(e.getFullYear()%100,t,2)}function formatFullYear(e,t){return pad$1(e.getFullYear()%1e4,t,4)}function formatZone(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+pad$1(t/60|0,"0",2)+pad$1(t%60,"0",2)}function formatUTCDayOfMonth(e,t){return pad$1(e.getUTCDate(),t,2)}function formatUTCHour24(e,t){return pad$1(e.getUTCHours(),t,2)}function formatUTCHour12(e,t){return pad$1(e.getUTCHours()%12||12,t,2)}function formatUTCDayOfYear(e,t){return pad$1(1+utcDay.count(utcYear(e),e),t,3)}function formatUTCMilliseconds(e,t){return pad$1(e.getUTCMilliseconds(),t,3)}function formatUTCMicroseconds(e,t){return formatUTCMilliseconds(e,t)+"000"}function formatUTCMonthNumber(e,t){return pad$1(e.getUTCMonth()+1,t,2)}function formatUTCMinutes(e,t){return pad$1(e.getUTCMinutes(),t,2)}function formatUTCSeconds(e,t){return pad$1(e.getUTCSeconds(),t,2)}function formatUTCWeekdayNumberMonday(e){var t=e.getUTCDay();return 0===t?7:t}function formatUTCWeekNumberSunday(e,t){return pad$1(utcSunday.count(utcYear(e),e),t,2)}function formatUTCWeekNumberISO(e,t){var n=e.getUTCDay();return e=n>=4||0===n?utcThursday(e):utcThursday.ceil(e),pad$1(utcThursday.count(utcYear(e),e)+(4===utcYear(e).getUTCDay()),t,2)}function formatUTCWeekdayNumberSunday(e){return e.getUTCDay()}function formatUTCWeekNumberMonday(e,t){return pad$1(utcMonday.count(utcYear(e),e),t,2)}function formatUTCYear(e,t){return pad$1(e.getUTCFullYear()%100,t,2)}function formatUTCFullYear(e,t){return pad$1(e.getUTCFullYear()%1e4,t,4)}function formatUTCZone(){return"+0000"}function formatLiteralPercent(){return"%"}function formatUnixTimestamp(e){return+e}function formatUnixTimestampSeconds(e){return Math.floor(+e/1e3)}function defaultLocale(e){return(locale=formatLocale(e)).format,locale.parse,utcFormat=locale.utcFormat,utcParse=locale.utcParse,locale}defaultLocale({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var isoSpecifier="%Y-%m-%dT%H:%M:%S.%LZ";function formatIsoNative(e){return e.toISOString()}function parseIsoNative(e){var t=new Date(e);return isNaN(t)?null:t}function colors(e){return e.match(/.{6}/g).map((function(e){return"#"+e}))}function ramp(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}function constant(e){return function(){return e}}Date.prototype.toISOString||utcFormat(isoSpecifier),+new Date("2000-01-01T00:00:00.000Z")||utcParse(isoSpecifier),colors("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),colors("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),colors("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),colors("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),cubehelixLong(cubehelix$1(300,.5,0),cubehelix$1(-240,.5,1)),cubehelixLong(cubehelix$1(-100,.75,.35),cubehelix$1(80,1.5,.8)),cubehelixLong(cubehelix$1(260,.75,.35),cubehelix$1(80,1.5,.8)),cubehelix$1(),ramp(colors("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),ramp(colors("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),ramp(colors("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),ramp(colors("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));var abs=Math.abs,atan2=Math.atan2,cos=Math.cos,max=Math.max,min=Math.min,sin=Math.sin,sqrt=Math.sqrt,epsilon$1=1e-12,pi=Math.PI,halfPi=pi/2,tau=2*pi;function acos(e){return e>1?0:e<-1?pi:Math.acos(e)}function asin(e){return e>=1?halfPi:e<=-1?-halfPi:Math.asin(e)}function arcInnerRadius(e){return e.innerRadius}function arcOuterRadius(e){return e.outerRadius}function arcStartAngle(e){return e.startAngle}function arcEndAngle(e){return e.endAngle}function arcPadAngle(e){return e&&e.padAngle}function intersect(e,t,n,o,a,r,i,l){var s=n-e,u=o-t,c=i-a,d=l-r,p=(c*(t-r)-d*(e-a))/(d*s-c*u);return[e+p*s,t+p*u]}function cornerTangents(e,t,n,o,a,r,i){var l=e-n,s=t-o,u=(i?r:-r)/sqrt(l*l+s*s),c=u*s,d=-u*l,p=e+c,h=t+d,f=n+c,v=o+d,m=(p+f)/2,g=(h+v)/2,_=f-p,b=v-h,y=_*_+b*b,w=a-r,C=p*v-f*h,S=(b<0?-1:1)*sqrt(max(0,w*w*y-C*C)),k=(C*b-_*S)/y,x=(-C*_-b*S)/y,M=(C*b+_*S)/y,T=(-C*_+b*S)/y,$=k-m,E=x-g,N=M-m,L=T-g;return $*$+E*E>N*N+L*L&&(k=M,x=T),{cx:k,cy:x,x01:-c,y01:-d,x11:k*(a/w-1),y11:x*(a/w-1)}}function arc(){var e=arcInnerRadius,t=arcOuterRadius,n=constant(0),o=null,a=arcStartAngle,r=arcEndAngle,i=arcPadAngle,l=null;function s(){var s,u,c=+e.apply(this,arguments),d=+t.apply(this,arguments),p=a.apply(this,arguments)-halfPi,h=r.apply(this,arguments)-halfPi,f=abs(h-p),v=h>p;if(l||(l=s=path()),d<c&&(u=d,d=c,c=u),d>epsilon$1)if(f>tau-epsilon$1)l.moveTo(d*cos(p),d*sin(p)),l.arc(0,0,d,p,h,!v),c>epsilon$1&&(l.moveTo(c*cos(h),c*sin(h)),l.arc(0,0,c,h,p,v));else{var m,g,_=p,b=h,y=p,w=h,C=f,S=f,k=i.apply(this,arguments)/2,x=k>epsilon$1&&(o?+o.apply(this,arguments):sqrt(c*c+d*d)),M=min(abs(d-c)/2,+n.apply(this,arguments)),T=M,$=M;if(x>epsilon$1){var E=asin(x/c*sin(k)),N=asin(x/d*sin(k));(C-=2*E)>epsilon$1?(y+=E*=v?1:-1,w-=E):(C=0,y=w=(p+h)/2),(S-=2*N)>epsilon$1?(_+=N*=v?1:-1,b-=N):(S=0,_=b=(p+h)/2)}var L=d*cos(_),D=d*sin(_),B=c*cos(w),q=c*sin(w);if(M>epsilon$1){var P=d*cos(b),A=d*sin(b),I=c*cos(y),R=c*sin(y);if(f<pi){var O=C>epsilon$1?intersect(L,D,I,R,P,A,B,q):[B,q],V=L-O[0],z=D-O[1],F=P-O[0],j=A-O[1],H=1/sin(acos((V*F+z*j)/(sqrt(V*V+z*z)*sqrt(F*F+j*j)))/2),U=sqrt(O[0]*O[0]+O[1]*O[1]);T=min(M,(c-U)/(H-1)),$=min(M,(d-U)/(H+1))}}S>epsilon$1?$>epsilon$1?(m=cornerTangents(I,R,L,D,d,$,v),g=cornerTangents(P,A,B,q,d,$,v),l.moveTo(m.cx+m.x01,m.cy+m.y01),$<M?l.arc(m.cx,m.cy,$,atan2(m.y01,m.x01),atan2(g.y01,g.x01),!v):(l.arc(m.cx,m.cy,$,atan2(m.y01,m.x01),atan2(m.y11,m.x11),!v),l.arc(0,0,d,atan2(m.cy+m.y11,m.cx+m.x11),atan2(g.cy+g.y11,g.cx+g.x11),!v),l.arc(g.cx,g.cy,$,atan2(g.y11,g.x11),atan2(g.y01,g.x01),!v))):(l.moveTo(L,D),l.arc(0,0,d,_,b,!v)):l.moveTo(L,D),c>epsilon$1&&C>epsilon$1?T>epsilon$1?(m=cornerTangents(B,q,P,A,c,-T,v),g=cornerTangents(L,D,I,R,c,-T,v),l.lineTo(m.cx+m.x01,m.cy+m.y01),T<M?l.arc(m.cx,m.cy,T,atan2(m.y01,m.x01),atan2(g.y01,g.x01),!v):(l.arc(m.cx,m.cy,T,atan2(m.y01,m.x01),atan2(m.y11,m.x11),!v),l.arc(0,0,c,atan2(m.cy+m.y11,m.cx+m.x11),atan2(g.cy+g.y11,g.cx+g.x11),v),l.arc(g.cx,g.cy,T,atan2(g.y11,g.x11),atan2(g.y01,g.x01),!v))):l.arc(0,0,c,w,y,v):l.lineTo(B,q)}else l.moveTo(0,0);if(l.closePath(),s)return l=null,s+""||null}return s.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,o=(+a.apply(this,arguments)+ +r.apply(this,arguments))/2-pi/2;return[cos(o)*n,sin(o)*n]},s.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:constant(+t),s):e},s.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:constant(+e),s):t},s.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:constant(+e),s):n},s.padRadius=function(e){return arguments.length?(o=null==e?null:"function"==typeof e?e:constant(+e),s):o},s.startAngle=function(e){return arguments.length?(a="function"==typeof e?e:constant(+e),s):a},s.endAngle=function(e){return arguments.length?(r="function"==typeof e?e:constant(+e),s):r},s.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:constant(+e),s):i},s.context=function(e){return arguments.length?(l=null==e?null:e,s):l},s}function descending(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function identity(e){return e}function pie(){var e=identity,t=descending,n=null,o=constant(0),a=constant(tau),r=constant(0);function i(i){var l,s,u,c,d,p=i.length,h=0,f=new Array(p),v=new Array(p),m=+o.apply(this,arguments),g=Math.min(tau,Math.max(-tau,a.apply(this,arguments)-m)),_=Math.min(Math.abs(g)/p,r.apply(this,arguments)),b=_*(g<0?-1:1);for(l=0;l<p;++l)(d=v[f[l]=l]=+e(i[l],l,i))>0&&(h+=d);for(null!=t?f.sort((function(e,n){return t(v[e],v[n])})):null!=n&&f.sort((function(e,t){return n(i[e],i[t])})),l=0,u=h?(g-p*b)/h:0;l<p;++l,m=c)s=f[l],c=m+((d=v[s])>0?d*u:0)+b,v[s]={data:i[s],index:l,value:d,startAngle:m,endAngle:c,padAngle:_};return v}return i.value=function(t){return arguments.length?(e="function"==typeof t?t:constant(+t),i):e},i.sortValues=function(e){return arguments.length?(t=e,n=null,i):t},i.sort=function(e){return arguments.length?(n=e,t=null,i):n},i.startAngle=function(e){return arguments.length?(o="function"==typeof e?e:constant(+e),i):o},i.endAngle=function(e){return arguments.length?(a="function"==typeof e?e:constant(+e),i):a},i.padAngle=function(e){return arguments.length?(r="function"==typeof e?e:constant(+e),i):r},i}function noop$1(){}function point$3(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Basis(e){this._context=e}function Bundle(e,t){this._basis=new Basis(e),this._beta=t}function point$2(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Cardinal(e,t){this._context=e,this._k=(1-t)/6}function CardinalClosed(e,t){this._context=e,this._k=(1-t)/6}function CardinalOpen(e,t){this._context=e,this._k=(1-t)/6}function point$1(e,t,n){var o=e._x1,a=e._y1,r=e._x2,i=e._y2;if(e._l01_a>epsilon$1){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,s=3*e._l01_a*(e._l01_a+e._l12_a);o=(o*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,a=(a*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>epsilon$1){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);r=(r*u+e._x1*e._l23_2a-t*e._l12_2a)/c,i=(i*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(o,a,r,i,e._x2,e._y2)}function CatmullRom(e,t){this._context=e,this._alpha=t}function CatmullRomClosed(e,t){this._context=e,this._alpha=t}function CatmullRomOpen(e,t){this._context=e,this._alpha=t}function sign(e){return e<0?-1:1}function slope3(e,t,n){var o=e._x1-e._x0,a=t-e._x1,r=(e._y1-e._y0)/(o||a<0&&-0),i=(n-e._y1)/(a||o<0&&-0),l=(r*a+i*o)/(o+a);return(sign(r)+sign(i))*Math.min(Math.abs(r),Math.abs(i),.5*Math.abs(l))||0}function slope2(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function point(e,t,n){var o=e._x0,a=e._y0,r=e._x1,i=e._y1,l=(r-o)/3;e._context.bezierCurveTo(o+l,a+l*t,r-l,i-l*n,r,i)}function MonotoneX(e){this._context=e}function RedBlackTree(){this._=null}function RedBlackNode(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function RedBlackRotateLeft(e,t){var n=t,o=t.R,a=n.U;a?a.L===n?a.L=o:a.R=o:e._=o,o.U=a,n.U=o,n.R=o.L,n.R&&(n.R.U=n),o.L=n}function RedBlackRotateRight(e,t){var n=t,o=t.L,a=n.U;a?a.L===n?a.L=o:a.R=o:e._=o,o.U=a,n.U=o,n.L=o.R,n.L&&(n.L.U=n),o.R=n}function RedBlackFirst(e){for(;e.L;)e=e.L;return e}function createEdge(e,t,n,o){var a=[null,null],r=edges.push(a)-1;return a.left=e,a.right=t,n&&setEdgeEnd(a,e,t,n),o&&setEdgeEnd(a,t,e,o),cells[e.index].halfedges.push(r),cells[t.index].halfedges.push(r),a}function createBorderEdge(e,t,n){var o=[t,n];return o.left=e,o}function setEdgeEnd(e,t,n,o){e[0]||e[1]?e.left===n?e[1]=o:e[0]=o:(e[0]=o,e.left=t,e.right=n)}function clipEdge(e,t,n,o,a){var r,i=e[0],l=e[1],s=i[0],u=i[1],c=0,d=1,p=l[0]-s,h=l[1]-u;if(r=t-s,p||!(r>0)){if(r/=p,p<0){if(r<c)return;r<d&&(d=r)}else if(p>0){if(r>d)return;r>c&&(c=r)}if(r=o-s,p||!(r<0)){if(r/=p,p<0){if(r>d)return;r>c&&(c=r)}else if(p>0){if(r<c)return;r<d&&(d=r)}if(r=n-u,h||!(r>0)){if(r/=h,h<0){if(r<c)return;r<d&&(d=r)}else if(h>0){if(r>d)return;r>c&&(c=r)}if(r=a-u,h||!(r<0)){if(r/=h,h<0){if(r>d)return;r>c&&(c=r)}else if(h>0){if(r<c)return;r<d&&(d=r)}return!(c>0||d<1)||(c>0&&(e[0]=[s+c*p,u+c*h]),d<1&&(e[1]=[s+d*p,u+d*h]),!0)}}}}}function connectEdge(e,t,n,o,a){var r=e[1];if(r)return!0;var i,l,s=e[0],u=e.left,c=e.right,d=u[0],p=u[1],h=c[0],f=c[1],v=(d+h)/2,m=(p+f)/2;if(f===p){if(v<t||v>=o)return;if(d>h){if(s){if(s[1]>=a)return}else s=[v,n];r=[v,a]}else{if(s){if(s[1]<n)return}else s=[v,a];r=[v,n]}}else if(l=m-(i=(d-h)/(f-p))*v,i<-1||i>1)if(d>h){if(s){if(s[1]>=a)return}else s=[(n-l)/i,n];r=[(a-l)/i,a]}else{if(s){if(s[1]<n)return}else s=[(a-l)/i,a];r=[(n-l)/i,n]}else if(p<f){if(s){if(s[0]>=o)return}else s=[t,i*t+l];r=[o,i*o+l]}else{if(s){if(s[0]<t)return}else s=[o,i*o+l];r=[t,i*t+l]}return e[0]=s,e[1]=r,!0}function clipEdges(e,t,n,o){for(var a,r=edges.length;r--;)connectEdge(a=edges[r],e,t,n,o)&&clipEdge(a,e,t,n,o)&&(Math.abs(a[0][0]-a[1][0])>epsilon||Math.abs(a[0][1]-a[1][1])>epsilon)||delete edges[r]}function createCell(e){return cells[e.index]={site:e,halfedges:[]}}function cellHalfedgeAngle(e,t){var n=e.site,o=t.left,a=t.right;return n===a&&(a=o,o=n),a?Math.atan2(a[1]-o[1],a[0]-o[0]):(n===o?(o=t[1],a=t[0]):(o=t[0],a=t[1]),Math.atan2(o[0]-a[0],a[1]-o[1]))}function cellHalfedgeStart(e,t){return t[+(t.left!==e.site)]}function cellHalfedgeEnd(e,t){return t[+(t.left===e.site)]}function sortCellHalfedges(){for(var e,t,n,o,a=0,r=cells.length;a<r;++a)if((e=cells[a])&&(o=(t=e.halfedges).length)){var i=new Array(o),l=new Array(o);for(n=0;n<o;++n)i[n]=n,l[n]=cellHalfedgeAngle(e,edges[t[n]]);for(i.sort((function(e,t){return l[t]-l[e]})),n=0;n<o;++n)l[n]=t[i[n]];for(n=0;n<o;++n)t[n]=l[n]}}function clipCells(e,t,n,o){var a,r,i,l,s,u,c,d,p,h,f,v,m=cells.length,g=!0;for(a=0;a<m;++a)if(r=cells[a]){for(i=r.site,l=(s=r.halfedges).length;l--;)edges[s[l]]||s.splice(l,1);for(l=0,u=s.length;l<u;)f=(h=cellHalfedgeEnd(r,edges[s[l]]))[0],v=h[1],d=(c=cellHalfedgeStart(r,edges[s[++l%u]]))[0],p=c[1],(Math.abs(f-d)>epsilon||Math.abs(v-p)>epsilon)&&(s.splice(l,0,edges.push(createBorderEdge(i,h,Math.abs(f-e)<epsilon&&o-v>epsilon?[e,Math.abs(d-e)<epsilon?p:o]:Math.abs(v-o)<epsilon&&n-f>epsilon?[Math.abs(p-o)<epsilon?d:n,o]:Math.abs(f-n)<epsilon&&v-t>epsilon?[n,Math.abs(d-n)<epsilon?p:t]:Math.abs(v-t)<epsilon&&f-e>epsilon?[Math.abs(p-t)<epsilon?d:e,t]:null))-1),++u);u&&(g=!1)}if(g){var _,b,y,w=1/0;for(a=0,g=null;a<m;++a)(r=cells[a])&&(y=(_=(i=r.site)[0]-e)*_+(b=i[1]-t)*b)<w&&(w=y,g=r);if(g){var C=[e,t],S=[e,o],k=[n,o],x=[n,t];g.halfedges.push(edges.push(createBorderEdge(i=g.site,C,S))-1,edges.push(createBorderEdge(i,S,k))-1,edges.push(createBorderEdge(i,k,x))-1,edges.push(createBorderEdge(i,x,C))-1)}}for(a=0;a<m;++a)(r=cells[a])&&(r.halfedges.length||delete cells[a])}Basis.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:point$3(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:point$3(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Bundle.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var o,a=e[0],r=t[0],i=e[n]-a,l=t[n]-r,s=-1;++s<=n;)o=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(a+o*i),this._beta*t[s]+(1-this._beta)*(r+o*l));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}},function e(t){function n(e){return 1===t?new Basis(e):new Bundle(e,t)}return n.beta=function(t){return e(+t)},n}(.85),Cardinal.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:point$2(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:point$2(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},function e(t){function n(e){return new Cardinal(e,t)}return n.tension=function(t){return e(+t)},n}(0),CardinalClosed.prototype={areaStart:noop$1,areaEnd:noop$1,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:point$2(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},function e(t){function n(e){return new CardinalClosed(e,t)}return n.tension=function(t){return e(+t)},n}(0),CardinalOpen.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:point$2(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},function e(t){function n(e){return new CardinalOpen(e,t)}return n.tension=function(t){return e(+t)},n}(0),CatmullRom.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,o=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:point$1(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},function e(t){function n(e){return t?new CatmullRom(e,t):new Cardinal(e,0)}return n.alpha=function(t){return e(+t)},n}(.5),CatmullRomClosed.prototype={areaStart:noop$1,areaEnd:noop$1,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,o=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:point$1(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},function e(t){function n(e){return t?new CatmullRomClosed(e,t):new CardinalClosed(e,0)}return n.alpha=function(t){return e(+t)},n}(.5),CatmullRomOpen.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,o=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+o*o,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:point$1(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},function e(t){function n(e){return t?new CatmullRomOpen(e,t):new CardinalOpen(e,0)}return n.alpha=function(t){return e(+t)},n}(.5),MonotoneX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:point(this,this._t0,slope2(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,point(this,slope2(this,n=slope3(this,e,t)),n);break;default:point(this,this._t0,n=slope3(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},Object.create(MonotoneX.prototype).point=function(e,t){MonotoneX.prototype.point.call(this,t,e)},RedBlackTree.prototype={constructor:RedBlackTree,insert:function(e,t){var n,o,a;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=RedBlackFirst(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)n===(o=n.U).L?(a=o.R)&&a.C?(n.C=a.C=!1,o.C=!0,e=o):(e===n.R&&(RedBlackRotateLeft(this,n),n=(e=n).U),n.C=!1,o.C=!0,RedBlackRotateRight(this,o)):(a=o.L)&&a.C?(n.C=a.C=!1,o.C=!0,e=o):(e===n.L&&(RedBlackRotateRight(this,n),n=(e=n).U),n.C=!1,o.C=!0,RedBlackRotateLeft(this,o)),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,o,a=e.U,r=e.L,i=e.R;if(n=r?i?RedBlackFirst(i):r:i,a?a.L===e?a.L=n:a.R=n:this._=n,r&&i?(o=n.C,n.C=e.C,n.L=r,r.U=n,n!==i?(a=n.U,n.U=e.U,e=n.R,a.L=e,n.R=i,i.U=n):(n.U=a,a=n,e=n.R)):(o=e.C,e=n),e&&(e.U=a),!o)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===a.L){if((t=a.R).C&&(t.C=!1,a.C=!0,RedBlackRotateLeft(this,a),t=a.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,RedBlackRotateRight(this,t),t=a.R),t.C=a.C,a.C=t.R.C=!1,RedBlackRotateLeft(this,a),e=this._;break}}else if((t=a.L).C&&(t.C=!1,a.C=!0,RedBlackRotateRight(this,a),t=a.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,RedBlackRotateLeft(this,t),t=a.L),t.C=a.C,a.C=t.L.C=!1,RedBlackRotateRight(this,a),e=this._;break}t.C=!0,e=a,a=a.U}while(!e.C);e&&(e.C=!1)}}};var firstCircle,circlePool=[];function Circle(){RedBlackNode(this),this.x=this.y=this.arc=this.site=this.cy=null}function attachCircle(e){var t=e.P,n=e.N;if(t&&n){var o=t.site,a=e.site,r=n.site;if(o!==r){var i=a[0],l=a[1],s=o[0]-i,u=o[1]-l,c=r[0]-i,d=r[1]-l,p=2*(s*d-u*c);if(!(p>=-epsilon2)){var h=s*s+u*u,f=c*c+d*d,v=(d*h-u*f)/p,m=(s*f-c*h)/p,g=circlePool.pop()||new Circle;g.arc=e,g.site=a,g.x=v+i,g.y=(g.cy=m+l)+Math.sqrt(v*v+m*m),e.circle=g;for(var _=null,b=circles._;b;)if(g.y<b.y||g.y===b.y&&g.x<=b.x){if(!b.L){_=b.P;break}b=b.L}else{if(!b.R){_=b;break}b=b.R}circles.insert(_,g),_||(firstCircle=g)}}}}function detachCircle(e){var t=e.circle;t&&(t.P||(firstCircle=t.N),circles.remove(t),circlePool.push(t),RedBlackNode(t),e.circle=null)}var beachPool=[];function Beach(){RedBlackNode(this),this.edge=this.site=this.circle=null}function createBeach(e){var t=beachPool.pop()||new Beach;return t.site=e,t}function detachBeach(e){detachCircle(e),beaches.remove(e),beachPool.push(e),RedBlackNode(e)}function removeBeach(e){var t=e.circle,n=t.x,o=t.cy,a=[n,o],r=e.P,i=e.N,l=[e];detachBeach(e);for(var s=r;s.circle&&Math.abs(n-s.circle.x)<epsilon&&Math.abs(o-s.circle.cy)<epsilon;)r=s.P,l.unshift(s),detachBeach(s),s=r;l.unshift(s),detachCircle(s);for(var u=i;u.circle&&Math.abs(n-u.circle.x)<epsilon&&Math.abs(o-u.circle.cy)<epsilon;)i=u.N,l.push(u),detachBeach(u),u=i;l.push(u),detachCircle(u);var c,d=l.length;for(c=1;c<d;++c)u=l[c],s=l[c-1],setEdgeEnd(u.edge,s.site,u.site,a);s=l[0],(u=l[d-1]).edge=createEdge(s.site,u.site,null,a),attachCircle(s),attachCircle(u)}function addBeach(e){for(var t,n,o,a,r=e[0],i=e[1],l=beaches._;l;)if((o=leftBreakPoint(l,i)-r)>epsilon)l=l.L;else{if(!((a=r-rightBreakPoint(l,i))>epsilon)){o>-epsilon?(t=l.P,n=l):a>-epsilon?(t=l,n=l.N):t=n=l;break}if(!l.R){t=l;break}l=l.R}createCell(e);var s=createBeach(e);if(beaches.insert(t,s),t||n){if(t===n)return detachCircle(t),n=createBeach(t.site),beaches.insert(s,n),s.edge=n.edge=createEdge(t.site,s.site),attachCircle(t),void attachCircle(n);if(n){detachCircle(t),detachCircle(n);var u=t.site,c=u[0],d=u[1],p=e[0]-c,h=e[1]-d,f=n.site,v=f[0]-c,m=f[1]-d,g=2*(p*m-h*v),_=p*p+h*h,b=v*v+m*m,y=[(m*_-h*b)/g+c,(p*b-v*_)/g+d];setEdgeEnd(n.edge,u,f,y),s.edge=createEdge(u,e,null,y),n.edge=createEdge(e,f,null,y),attachCircle(t),attachCircle(n)}else s.edge=createEdge(t.site,s.site)}}function leftBreakPoint(e,t){var n=e.site,o=n[0],a=n[1],r=a-t;if(!r)return o;var i=e.P;if(!i)return-1/0;var l=(n=i.site)[0],s=n[1],u=s-t;if(!u)return l;var c=l-o,d=1/r-1/u,p=c/u;return d?(-p+Math.sqrt(p*p-2*d*(c*c/(-2*u)-s+u/2+a-r/2)))/d+o:(o+l)/2}function rightBreakPoint(e,t){var n=e.N;if(n)return leftBreakPoint(n,t);var o=e.site;return o[1]===t?o[0]:1/0}var beaches,cells,circles,edges,epsilon=1e-6,epsilon2=1e-12;function triangleArea(e,t,n){return(e[0]-n[0])*(t[1]-e[1])-(e[0]-t[0])*(n[1]-e[1])}function lexicographic(e,t){return t[1]-e[1]||t[0]-e[0]}function Diagram(e,t){var n,o,a,r=e.sort(lexicographic).pop();for(edges=[],cells=new Array(e.length),beaches=new RedBlackTree,circles=new RedBlackTree;;)if(a=firstCircle,r&&(!a||r[1]<a.y||r[1]===a.y&&r[0]<a.x))r[0]===n&&r[1]===o||(addBeach(r),n=r[0],o=r[1]),r=e.pop();else{if(!a)break;removeBeach(a.arc)}if(sortCellHalfedges(),t){var i=+t[0][0],l=+t[0][1],s=+t[1][0],u=+t[1][1];clipEdges(i,l,s,u),clipCells(i,l,s,u)}this.edges=edges,this.cells=cells,beaches=circles=edges=cells=null}function Transform(e,t,n){this.k=e,this.x=t,this.y=n}Diagram.prototype={constructor:Diagram,polygons:function(){var e=this.edges;return this.cells.map((function(t){var n=t.halfedges.map((function(n){return cellHalfedgeStart(t,e[n])}));return n.data=t.site.data,n}))},triangles:function(){var e=[],t=this.edges;return this.cells.forEach((function(n,o){if(r=(a=n.halfedges).length)for(var a,r,i,l=n.site,s=-1,u=t[a[r-1]],c=u.left===l?u.right:u.left;++s<r;)i=c,c=(u=t[a[s]]).left===l?u.right:u.left,i&&c&&o<i.index&&o<c.index&&triangleArea(l,i,c)<0&&e.push([l.data,i.data,c.data])})),e},links:function(){return this.edges.filter((function(e){return e.right})).map((function(e){return{source:e.left.data,target:e.right.data}}))},find:function(e,t,n){for(var o,a,r=this,i=r._found||0,l=r.cells.length;!(a=r.cells[i]);)if(++i>=l)return null;var s=e-a.site[0],u=t-a.site[1],c=s*s+u*u;do{a=r.cells[o=i],i=null,a.halfedges.forEach((function(n){var o=r.edges[n],l=o.left;if(l!==a.site&&l||(l=o.right)){var s=e-l[0],u=t-l[1],d=s*s+u*u;d<c&&(c=d,i=l.index)}}))}while(null!==i);return r._found=o,null==n||c<=n*n?a.site:null}},Transform.prototype={constructor:Transform,scale:function(e){return 1===e?this:new Transform(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new Transform(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},Transform.prototype;const _sfc_main$2=defineComponent({__name:"CCPaymentRatePieChart",props:{standardAmount:{type:Number,default:0},comparisonAmount:{type:Number,default:0},standardLabel:{type:String,default:"請求額"},comparisonLabel:{type:String,default:"支払額"},pieChartLabel:{type:String,default:"支払率"},color:{type:String,default:"#00BBC9"}},setup(e){const t=e,n=computed((()=>t.standardAmount)),o=computed((()=>t.comparisonAmount)),a=ref(null),r=ref(0!==n.value?o.value/n.value*100:0),i=reactive([r.value,100-r.value]),l=reactive({width:90,height:90}),s=ordinal([t.color,"#D5D5D5"]).range(r.value>100?["#D20000","#D5D5D5"]:[t.color,"#D5D5D5"]),u=reactive([{label:`${t.standardLabel}　${n.value.toLocaleString()}円`,value:n.value},{label:`${t.comparisonLabel}　${o.value.toLocaleString()}円`,value:o.value}]),c=reactive({width:150,height:90}),d=ordinal(["#D5D5D5",t.color]).range(r.value>100?["#D5D5D5","#D20000"]:["#D5D5D5",t.color]);return onMounted((()=>{(()=>{const e=select(a.value).append("svg").attr("width",l.width+c.width).attr("height",Math.max(l.height,c.height)).append("g").attr("transform","translate(10, 0)"),n=e.append("g").attr("transform",`translate(${l.width/2-10},${l.height/2})`),o=e.append("g").attr("transform",`translate(${l.width}, 25)`),p=pie().sort(null),h=arc().innerRadius(l.width/2-5).outerRadius(l.width/2);n.selectAll("path").data(p(i)).enter().append("path").attr("d",h).attr("fill",((e,t)=>s(t))),n.append("text").text(t.pieChartLabel).attr("text-anchor","middle").attr("dy","-1.5em").style("font-size","12px").style("fill","#707070"),n.append("text").text(`${r.value.toFixed(0)}`).attr("text-anchor","middle").attr("dy","0.4em").style("font-size","30px").style("font-weight","bold").style("fill",s(0)),n.append("text").text("％").attr("dy","1.9em").attr("dx","0.5em").style("font-size","14px").style("fill","#707070");const f=linear().domain([0,max$1(u,(e=>e.value))]).range([0,c.width-10]);o.selectAll("rect").data(u).enter().append("rect").attr("y",((e,t)=>50*t)).attr("width",(e=>f(e.value))).attr("height","15px").attr("fill",((e,t)=>d(t))),o.selectAll("text").data(u).enter().append("text").text((e=>e.label)).attr("y",((e,t)=>50*t-10)).attr("dy","4px").style("font-size","12px").style("fill","#333333")})()})),(e,t)=>(openBlock(),createElementBlock("div",{style:{width:"fit-content"},ref_key:"chart",ref:a},null,512))}}),_hoisted_1$1={key:0,class:"_toast"},_hoisted_2$1={class:"_toast_text"},_sfc_main$1=defineComponent({__name:"CCToast",props:{toastSwitch:{type:Boolean,default:!1,required:!0},toastText:{type:String,default:"登録完了"},toastMovingTime:{type:Number,default:4}},emits:["update:toastSwitch"],setup(e,{emit:t}){useCssVars((e=>({"08afd9b8":i.value})));const n=t,o=e,a=computed((()=>!0===r.value?setTimeout((()=>{r.value=!1,o.toastMovingTime})):void 0)),r=computed({get:()=>o.toastSwitch,set:e=>{n("update:toastSwitch",e)}}),i=ref();return i.value=`${String(o.toastMovingTime)}s`,(t,n)=>(openBlock(),createElementBlock("div",null,[(openBlock(),createBlock(Teleport,{to:"body"},[createElementVNode("div",null,[createVNode(Transition$1,{name:"toast"},{default:withCtx((()=>[a.value?(openBlock(),createElementBlock("div",_hoisted_1$1,[createElementVNode("div",_hoisted_2$1,toDisplayString(e.toastText),1)])):createCommentVNode("",!0)])),_:1})])]))]))}}),CCToast_vue_vue_type_style_index_0_scoped_7eb6bc2e_lang="",CCToast=_export_sfc(_sfc_main$1,[["__scopeId","data-v-7eb6bc2e"]]);
/*!
 * Quasar Framework v2.17.5
 * (c) 2015-present Razvan Stoenescu
 * Released under the MIT License.
 */
function injectProp(e,t,n,o){return Object.defineProperty(e,t,{get:n,set:o,enumerable:!0}),e}function injectMultipleProps(e,t){for(const n in t)injectProp(e,n,t[n]);return e}var preHydrationBrowser,isRuntimeSsrPreHydration=ref(!1);function getMatch(e,t){const n=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:n[5]||n[3]||n[1]||"",version:n[4]||n[2]||"0",platform:t[0]||""}}function getPlatformMatch(e){return/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[]}var hasTouch="ontouchstart"in window||window.navigator.maxTouchPoints>0;function getPlatform(e){const t=e.toLowerCase(),n=getMatch(t,getPlatformMatch(t)),o={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,blackberry:!1,playbook:!1,silk:!1};n.browser&&(o[n.browser]=!0,o.version=n.version,o.versionNumber=parseInt(n.version,10)),n.platform&&(o[n.platform]=!0);const a=o.android||o.ios||o.bb||o.blackberry||o.ipad||o.iphone||o.ipod||o.kindle||o.playbook||o.silk||o["windows phone"];if(!0===a||-1!==t.indexOf("mobile")?o.mobile=!0:o.desktop=!0,o["windows phone"]&&(o.winphone=!0,delete o["windows phone"]),o.edga||o.edgios||o.edg?(o.edge=!0,n.browser="edge"):o.crios?(o.chrome=!0,n.browser="chrome"):o.fxios&&(o.firefox=!0,n.browser="firefox"),(o.ipod||o.ipad||o.iphone)&&(o.ios=!0),o.vivaldi&&(n.browser="vivaldi",o.vivaldi=!0),(o.chrome||o.opr||o.safari||o.vivaldi||!0===o.mobile&&!0!==o.ios&&!0!==a)&&(o.webkit=!0),o.opr&&(n.browser="opera",o.opera=!0),o.safari&&(o.blackberry||o.bb?(n.browser="blackberry",o.blackberry=!0):o.playbook?(n.browser="playbook",o.playbook=!0):o.android?(n.browser="android",o.android=!0):o.kindle?(n.browser="kindle",o.kindle=!0):o.silk&&(n.browser="silk",o.silk=!0)),o.name=n.browser,o.platform=n.platform,-1!==t.indexOf("electron"))o.electron=!0;else if(-1!==document.location.href.indexOf("-extension://"))o.bex=!0;else{if(void 0!==window.Capacitor?(o.capacitor=!0,o.nativeMobile=!0,o.nativeMobileWrapper="capacitor"):void 0===window._cordovaNative&&void 0===window.cordova||(o.cordova=!0,o.nativeMobile=!0,o.nativeMobileWrapper="cordova"),!0===isRuntimeSsrPreHydration.value&&(preHydrationBrowser={is:{...o}}),!0===hasTouch&&!0===o.mac&&(!0===o.desktop&&!0===o.safari||!0===o.nativeMobile&&!0!==o.android&&!0!==o.ios&&!0!==o.ipad)){delete o.mac,delete o.desktop;const e=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(o,{mobile:!0,ios:!0,platform:e,[e]:!0})}!0!==o.mobile&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete o.desktop,o.mobile=!0)}return o}var userAgent=navigator.userAgent||navigator.vendor||window.opera,ssrClient={has:{touch:!1,webStorage:!1},within:{iframe:!1}},client={userAgent:userAgent,is:getPlatform(userAgent),has:{touch:hasTouch},within:{iframe:window.self!==window.top}},Platform={install(e){const{$q:t}=e;!0===isRuntimeSsrPreHydration.value?(e.onSSRHydrated.push((()=>{Object.assign(t.platform,client),isRuntimeSsrPreHydration.value=!1})),t.platform=reactive(this)):t.platform=this}};{let e;injectProp(client.has,"webStorage",(()=>{if(void 0!==e)return e;try{if(window.localStorage)return e=!0,!0}catch(e){}return e=!1,!1})),Object.assign(Platform,client),!0===isRuntimeSsrPreHydration.value&&(Object.assign(Platform,preHydrationBrowser,ssrClient),preHydrationBrowser=null)}var Platform_default=Platform;function createComponent(e){return markRaw(defineComponent(e))}function createDirective(e){return markRaw(e)}var createReactivePlugin=(e,t)=>{const n=reactive(e);for(const o in e)injectProp(t,o,(()=>n[o]),(e=>{n[o]=e}));return t},listenOpts={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(listenOpts,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch(e){}function noop(){}function leftClick(e){return 0===e.button}function position(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function getEventPath(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let n=e.target;for(;n;){if(t.push(n),"HTML"===n.tagName)return t.push(document),t.push(window),t;n=n.parentElement}}function stop$1(e){e.stopPropagation()}function prevent(e){!1!==e.cancelable&&e.preventDefault()}function stopAndPrevent(e){!1!==e.cancelable&&e.preventDefault(),e.stopPropagation()}function preventDraggable(e,t){if(void 0===e||!0===t&&!0===e.__dragPrevented)return;const n=!0===t?e=>{e.__dragPrevented=!0,e.addEventListener("dragstart",prevent,listenOpts.notPassiveCapture)}:e=>{delete e.__dragPrevented,e.removeEventListener("dragstart",prevent,listenOpts.notPassiveCapture)};e.querySelectorAll("a, img").forEach(n)}function addEvt(e,t,n){const o=`__q_${t}_evt`;e[o]=void 0!==e[o]?e[o].concat(n):n,n.forEach((t=>{t[0].addEventListener(t[1],e[t[2]],listenOpts[t[3]])}))}function cleanEvt(e,t){const n=`__q_${t}_evt`;void 0!==e[n]&&(e[n].forEach((t=>{t[0].removeEventListener(t[1],e[t[2]],listenOpts[t[3]])})),e[n]=void 0)}function debounce_default(e,t=250,n){let o=null;function a(){const a=arguments;null!==o?clearTimeout(o):!0===n&&e.apply(this,a),o=setTimeout((()=>{o=null,!0!==n&&e.apply(this,a)}),t)}return a.cancel=()=>{null!==o&&clearTimeout(o)},a}var SIZE_LIST=["sm","md","lg","xl"],{passive:passive}=listenOpts;createReactivePlugin({width:0,height:0,name:"xs",sizes:{sm:600,md:1024,lg:1440,xl:1920},lt:{sm:!0,md:!0,lg:!0,xl:!0},gt:{xs:!1,sm:!1,md:!1,lg:!1},xs:!0,sm:!1,md:!1,lg:!1,xl:!1},{setSizes:noop,setDebounce:noop,install({$q:e,onSSRHydrated:t}){if(e.screen=this,!0===this.__installed)return void(void 0!==e.config.screen&&(!1===e.config.screen.bodyClasses?document.body.classList.remove(`screen--${this.name}`):this.__update(!0)));const{visualViewport:n}=window,o=n||window,a=document.scrollingElement||document.documentElement,r=void 0===n||!0===client.is.mobile?()=>[Math.max(window.innerWidth,a.clientWidth),Math.max(window.innerHeight,a.clientHeight)]:()=>[n.width*n.scale+window.innerWidth-a.clientWidth,n.height*n.scale+window.innerHeight-a.clientHeight],i=void 0!==e.config.screen&&!0===e.config.screen.bodyClasses;this.__update=e=>{const[t,n]=r();if(n!==this.height&&(this.height=n),t!==this.width)this.width=t;else if(!0!==e)return;let o=this.sizes;this.gt.xs=t>=o.sm,this.gt.sm=t>=o.md,this.gt.md=t>=o.lg,this.gt.lg=t>=o.xl,this.lt.sm=t<o.sm,this.lt.md=t<o.md,this.lt.lg=t<o.lg,this.lt.xl=t<o.xl,this.xs=this.lt.sm,this.sm=!0===this.gt.xs&&!0===this.lt.md,this.md=!0===this.gt.sm&&!0===this.lt.lg,this.lg=!0===this.gt.md&&!0===this.lt.xl,this.xl=this.gt.lg,o=(!0===this.xs?"xs":!0===this.sm&&"sm")||!0===this.md&&"md"||!0===this.lg&&"lg"||"xl",o!==this.name&&(!0===i&&(document.body.classList.remove(`screen--${this.name}`),document.body.classList.add(`screen--${o}`)),this.name=o)};let l,s={},u=16;this.setSizes=e=>{SIZE_LIST.forEach((t=>{void 0!==e[t]&&(s[t]=e[t])}))},this.setDebounce=e=>{u=e};const c=()=>{const e=getComputedStyle(document.body);e.getPropertyValue("--q-size-sm")&&SIZE_LIST.forEach((t=>{this.sizes[t]=parseInt(e.getPropertyValue(`--q-size-${t}`),10)})),this.setSizes=e=>{SIZE_LIST.forEach((t=>{e[t]&&(this.sizes[t]=e[t])})),this.__update(!0)},this.setDebounce=e=>{void 0!==l&&o.removeEventListener("resize",l,passive),l=e>0?debounce_default(this.__update,e):this.__update,o.addEventListener("resize",l,passive)},this.setDebounce(u),0!==Object.keys(s).length?(this.setSizes(s),s=void 0):this.__update(),!0===i&&"xs"===this.name&&document.body.classList.add("screen--xs")};!0===isRuntimeSsrPreHydration.value?t.push(c):c()}});var Plugin=createReactivePlugin({isActive:!1,mode:!1},{__media:void 0,set(e){Plugin.mode=e,"auto"===e?(void 0===Plugin.__media&&(Plugin.__media=window.matchMedia("(prefers-color-scheme: dark)"),Plugin.__updateMedia=()=>{Plugin.set("auto")},Plugin.__media.addListener(Plugin.__updateMedia)),e=Plugin.__media.matches):void 0!==Plugin.__media&&(Plugin.__media.removeListener(Plugin.__updateMedia),Plugin.__media=void 0),Plugin.isActive=!0===e,document.body.classList.remove("body--"+(!0===e?"light":"dark")),document.body.classList.add("body--"+(!0===e?"dark":"light"))},toggle(){Plugin.set(!1===Plugin.isActive)},install({$q:e,ssrContext:t}){const{dark:n}=e.config;e.dark=this,!0!==this.__installed&&this.set(void 0!==n&&n)}});function shouldIgnoreKey(e){return e!==Object(e)||!0===e.isComposing||!0===e.qKeyEvent}function isKeyCode(e,t){return!0!==shouldIgnoreKey(e)&&[].concat(t).includes(e.keyCode)}var en_US_default={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh",expand:e=>e?`Expand "${e}"`:"Expand",collapse:e=>e?`Collapse "${e}"`:"Collapse"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days"},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:e=>1===e?"1 record selected.":(0===e?"No":e)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(e,t,n)=>e+"-"+t+" of "+n,columns:"Columns"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}};function getLocale(){const e=!0===Array.isArray(navigator.languages)&&0!==navigator.languages.length?navigator.languages[0]:navigator.language;if("string"==typeof e)return e.split(/[-_]/).map(((e,t)=>0===t?e.toLowerCase():t>1||e.length<4?e.toUpperCase():e[0].toUpperCase()+e.slice(1).toLowerCase())).join("-")}var Plugin2=createReactivePlugin({__qLang:{}},{getLocale:getLocale,set(e=en_US_default,t){const n={...e,rtl:!0===e.rtl,getLocale:getLocale};if(n.set=Plugin2.set,void 0===Plugin2.__langConfig||!0!==Plugin2.__langConfig.noHtmlAttrs){const e=document.documentElement;e.setAttribute("dir",!0===n.rtl?"rtl":"ltr"),e.setAttribute("lang",n.isoName)}Object.assign(Plugin2.__qLang,n)},install({$q:e,lang:t,ssrContext:n}){e.lang=Plugin2.__qLang,Plugin2.__langConfig=e.config.lang,!0===this.__installed?void 0!==t&&this.set(t):(this.props=new Proxy(this.__qLang,{get(){return Reflect.get(...arguments)},ownKeys:e=>Reflect.ownKeys(e).filter((e=>"set"!==e&&"getLocale"!==e))}),this.set(t||en_US_default))}}),Lang_default=Plugin2,material_icons_default={name:"material-icons",type:{positive:"check_circle",negative:"warning",info:"info",warning:"priority_high"},arrow:{up:"arrow_upward",right:"arrow_forward",down:"arrow_downward",left:"arrow_back",dropdown:"arrow_drop_down"},chevron:{left:"chevron_left",right:"chevron_right"},colorPicker:{spectrum:"gradient",tune:"tune",palette:"style"},pullToRefresh:{icon:"refresh"},carousel:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down",navigationIcon:"lens"},chip:{remove:"cancel",selected:"check"},datetime:{arrowLeft:"chevron_left",arrowRight:"chevron_right",now:"access_time",today:"today"},editor:{bold:"format_bold",italic:"format_italic",strikethrough:"strikethrough_s",underline:"format_underlined",unorderedList:"format_list_bulleted",orderedList:"format_list_numbered",subscript:"vertical_align_bottom",superscript:"vertical_align_top",hyperlink:"link",toggleFullscreen:"fullscreen",quote:"format_quote",left:"format_align_left",center:"format_align_center",right:"format_align_right",justify:"format_align_justify",print:"print",outdent:"format_indent_decrease",indent:"format_indent_increase",removeFormat:"format_clear",formatting:"text_format",fontSize:"format_size",align:"format_align_left",hr:"remove",undo:"undo",redo:"redo",heading:"format_size",code:"code",size:"format_size",font:"font_download",viewSource:"code"},expansionItem:{icon:"keyboard_arrow_down",denseIcon:"arrow_drop_down"},fab:{icon:"add",activeIcon:"close"},field:{clear:"cancel",error:"error"},pagination:{first:"first_page",prev:"keyboard_arrow_left",next:"keyboard_arrow_right",last:"last_page"},rating:{icon:"grade"},stepper:{done:"check",active:"edit",error:"warning"},tabs:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down"},table:{arrowUp:"arrow_upward",warning:"warning",firstPage:"first_page",prevPage:"chevron_left",nextPage:"chevron_right",lastPage:"last_page"},tree:{icon:"play_arrow"},uploader:{done:"done",clear:"clear",add:"add_box",upload:"cloud_upload",removeQueue:"clear_all",removeUploaded:"done_all"}},Plugin3=createReactivePlugin({iconMapFn:null,__qIconSet:{}},{set(e,t){const n={...e};n.set=Plugin3.set,Object.assign(Plugin3.__qIconSet,n)},install({$q:e,iconSet:t,ssrContext:n}){void 0!==e.config.iconMapFn&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__qIconSet,injectProp(e,"iconMapFn",(()=>this.iconMapFn),(e=>{this.iconMapFn=e})),!0===this.__installed?void 0!==t&&this.set(t):(this.props=new Proxy(this.__qIconSet,{get(){return Reflect.get(...arguments)},ownKeys:e=>Reflect.ownKeys(e).filter((e=>"set"!==e))}),this.set(t||material_icons_default))}}),timelineKey="_q_t_",stepperKey="_q_s_",layoutKey="_q_l_",pageContainerKey="_q_pc_",fabKey="_q_f_",formKey="_q_fo_",tabsKey="_q_tabs_",uploaderKey="_q_u_";function emptyRenderFn(){}var globalConfig={};function isDeepEqual(e,t){if(e===t)return!0;if(null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;let n,o;if(e.constructor===Array){if(n=e.length,n!==t.length)return!1;for(o=n;0!=o--;)if(!0!==isDeepEqual(e[o],t[o]))return!1;return!0}if(e.constructor===Map){if(e.size!==t.size)return!1;let n=e.entries();for(o=n.next();!0!==o.done;){if(!0!==t.has(o.value[0]))return!1;o=n.next()}for(n=e.entries(),o=n.next();!0!==o.done;){if(!0!==isDeepEqual(o.value[1],t.get(o.value[0])))return!1;o=n.next()}return!0}if(e.constructor===Set){if(e.size!==t.size)return!1;const n=e.entries();for(o=n.next();!0!==o.done;){if(!0!==t.has(o.value[0]))return!1;o=n.next()}return!0}if(null!=e.buffer&&e.buffer.constructor===ArrayBuffer){if(n=e.length,n!==t.length)return!1;for(o=n;0!=o--;)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const a=Object.keys(e).filter((t=>void 0!==e[t]));if(n=a.length,n!==Object.keys(t).filter((e=>void 0!==t[e])).length)return!1;for(o=n;0!=o--;){const n=a[o];if(!0!==isDeepEqual(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function isObject(e){return null!==e&&"object"==typeof e&&!0!==Array.isArray(e)}function isDate(e){return"[object Date]"===Object.prototype.toString.call(e)}function isRegexp(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function isNumber(e){return"number"==typeof e&&isFinite(e)}function createChildApp(e,t){const n=createApp(e);n.config.globalProperties=t.config.globalProperties;const{reload:o,...a}=t._context;return Object.assign(n._context,a),n}var units=["B","KB","MB","GB","TB","PB"];function humanStorageSize(e,t=1){let n=0;for(;parseInt(e,10)>=1024&&n<units.length-1;)e/=1024,++n;return`${e.toFixed(t)}${units[n]}`}function between(e,t,n){return n<=t?t:Math.min(n,Math.max(t,e))}function normalizeToInterval(e,t,n){if(n<=t)return t;const o=n-t+1;let a=t+(e-t)%o;return a<t&&(a=o+a),0===a?0:a}function pad(e,t=2,n="0"){if(null==e)return e;const o=""+e;return o.length>=t?o:new Array(t-o.length+1).join(n)+o}var xhr=XMLHttpRequest,open=xhr.prototype.open,positionValues=["top","right","bottom","left"],stack=[],highjackCount=0;function translate({p:e,pos:t,active:n,horiz:o,reverse:a,dir:r}){let i=1,l=1;return!0===o?(!0===a&&(i=-1),"bottom"===t&&(l=-1),{transform:`translate3d(${i*(e-100)}%,${n?0:-200*l}%,0)`}):(!0===a&&(l=-1),"right"===t&&(i=-1),{transform:`translate3d(${n?0:r*i*-200}%,${l*(e-100)}%,0)`})}function inc(e,t){return"number"!=typeof t&&(t=e<25?3*Math.random()+3:e<65?3*Math.random():e<85?2*Math.random():e<99?.6:0),between(e+t,0,100)}function highjackAjax(e){highjackCount++,stack.push(e),highjackCount>1||(xhr.prototype.open=function(e,t){const n=[];this.addEventListener("loadstart",(()=>{stack.forEach((e=>{null!==e.hijackFilter.value&&!0!==e.hijackFilter.value(t)||(e.start(),n.push(e.stop))}))}),{once:!0}),this.addEventListener("loadend",(()=>{n.forEach((e=>{e()}))}),{once:!0}),open.apply(this,arguments)})}function restoreAjax(e){stack=stack.filter((t=>t.start!==e)),0===(highjackCount=Math.max(0,highjackCount-1))&&(xhr.prototype.open=open)}var QAjaxBar_default=createComponent({name:"QAjaxBar",props:{position:{type:String,default:"top",validator:e=>positionValues.includes(e)},size:{type:String,default:"2px"},color:String,skipHijack:Boolean,reverse:Boolean,hijackFilter:Function},emits:["start","stop"],setup(e,{emit:t}){const{proxy:n}=getCurrentInstance(),o=ref(0),a=ref(!1),r=ref(!0);let i,l=0,s=null;const u=computed((()=>`q-loading-bar q-loading-bar--${e.position}`+(void 0!==e.color?` bg-${e.color}`:"")+(!0===r.value?"":" no-transition"))),c=computed((()=>"top"===e.position||"bottom"===e.position)),d=computed((()=>!0===c.value?"height":"width")),p=computed((()=>{const t=a.value,r=translate({p:o.value,pos:e.position,active:t,horiz:c.value,reverse:!0===n.$q.lang.rtl&&["top","bottom"].includes(e.position)?!1===e.reverse:e.reverse,dir:!0===n.$q.lang.rtl?-1:1});return r[d.value]=e.size,r.opacity=t?1:0,r})),f=computed((()=>!0===a.value?{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o.value}:{"aria-hidden":"true"}));function v(e=300){const n=i;return i=Math.max(0,e)||0,l++,l>1?(0===n&&e>0?_():null!==s&&n>0&&e<=0&&(clearTimeout(s),s=null),l):(null!==s&&clearTimeout(s),t("start"),o.value=0,s=setTimeout((()=>{s=null,r.value=!0,e>0&&_()}),!0===a._value?500:1),!0!==a._value&&(a.value=!0,r.value=!1),l)}function m(e){return l>0&&(o.value=inc(o.value,e)),l}function g(){if(l=Math.max(0,l-1),l>0)return l;null!==s&&(clearTimeout(s),s=null),t("stop");const e=()=>{r.value=!0,o.value=100,s=setTimeout((()=>{s=null,a.value=!1}),1e3)};return 0===o.value?s=setTimeout(e,1):e(),l}function _(){o.value<100&&(s=setTimeout((()=>{s=null,m(),_()}),i))}let b;return onMounted((()=>{!0!==e.skipHijack&&(b=!0,highjackAjax({start:v,stop:g,hijackFilter:computed((()=>e.hijackFilter||null))}))})),onBeforeUnmount((()=>{null!==s&&clearTimeout(s),!0===b&&restoreAjax(v)})),Object.assign(n,{start:v,stop:g,increment:m}),()=>h("div",{class:u.value,style:p.value,...f.value})}}),useSizeDefaults={xs:18,sm:24,md:32,lg:38,xl:46},useSizeProps={size:String};function use_size_default(e,t=useSizeDefaults){return computed((()=>void 0!==e.size?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null))}function hSlot(e,t){return void 0!==e&&e()||t}function hUniqueSlot(e,t){if(void 0!==e){const t=e();if(null!=t)return t.slice()}return t}function hMergeSlot(e,t){return void 0!==e?t.concat(e()):t}function hMergeSlotSafely(e,t){return void 0===e?t:void 0!==t?t.concat(e()):e()}function hDir(e,t,n,o,a,r){t.key=o+a;const i=h(e,t,n);return!0===a?withDirectives(i,r()):i}var defaultViewBox="0 0 24 24",sameFn=e=>e,ionFn=e=>`ionicons ${e}`,libMap={"mdi-":e=>`mdi ${e}`,"icon-":sameFn,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":ionFn,"ion-ios":ionFn,"ion-logo":ionFn,"iconfont ":sameFn,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},matMap={o_:"-outlined",r_:"-round",s_:"-sharp"},symMap={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},libRE=new RegExp("^("+Object.keys(libMap).join("|")+")"),matRE=new RegExp("^("+Object.keys(matMap).join("|")+")"),symRE=new RegExp("^("+Object.keys(symMap).join("|")+")"),mRE=/^[Mm]\s?[-+]?\.?\d/,imgRE=/^img:/,svgUseRE=/^svguse:/,ionRE=/^ion-/,faRE=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,QIcon_default=createComponent({name:"QIcon",props:{...useSizeProps,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=getCurrentInstance(),o=use_size_default(e),a=computed((()=>"q-icon"+(!0===e.left?" on-left":"")+(!0===e.right?" on-right":"")+(void 0!==e.color?` text-${e.color}`:""))),r=computed((()=>{let t,o=e.name;if("none"===o||!o)return{none:!0};if(null!==n.iconMapFn){const e=n.iconMapFn(o);if(void 0!==e){if(void 0===e.icon)return{cls:e.cls,content:void 0!==e.content?e.content:" "};if(o=e.icon,"none"===o||!o)return{none:!0}}}if(!0===mRE.test(o)){const[e,t=defaultViewBox]=o.split("|");return{svg:!0,viewBox:t,nodes:e.split("&&").map((e=>{const[t,n,o]=e.split("@@");return h("path",{style:n,d:t,transform:o})}))}}if(!0===imgRE.test(o))return{img:!0,src:o.substring(4)};if(!0===svgUseRE.test(o)){const[e,t=defaultViewBox]=o.split("|");return{svguse:!0,src:e.substring(7),viewBox:t}}let a=" ";const r=o.match(libRE);if(null!==r)t=libMap[r[1]](o);else if(!0===faRE.test(o))t=o;else if(!0===ionRE.test(o))t=`ionicons ion-${!0===n.platform.is.ios?"ios":"md"}${o.substring(3)}`;else if(!0===symRE.test(o)){t="notranslate material-symbols";const e=o.match(symRE);null!==e&&(o=o.substring(6),t+=symMap[e[1]]),a=o}else{t="notranslate material-icons";const e=o.match(matRE);null!==e&&(o=o.substring(2),t+=matMap[e[1]]),a=o}return{cls:t,content:a}}));return()=>{const n={class:a.value,style:o.value,"aria-hidden":"true",role:"presentation"};return!0===r.value.none?h(e.tag,n,hSlot(t.default)):!0===r.value.img?h(e.tag,n,hMergeSlot(t.default,[h("img",{src:r.value.src})])):!0===r.value.svg?h(e.tag,n,hMergeSlot(t.default,[h("svg",{viewBox:r.value.viewBox||"0 0 24 24"},r.value.nodes)])):!0===r.value.svguse?h(e.tag,n,hMergeSlot(t.default,[h("svg",{viewBox:r.value.viewBox},[h("use",{"xlink:href":r.value.src})])])):(void 0!==r.value.cls&&(n.class+=" "+r.value.cls),h(e.tag,n,hMergeSlot(t.default,[r.value.content])))}}});createComponent({name:"QAvatar",props:{...useSizeProps,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(e,{slots:t}){const n=use_size_default(e),o=computed((()=>"q-avatar"+(e.color?` bg-${e.color}`:"")+(e.textColor?` text-${e.textColor} q-chip--colored`:"")+(!0===e.square?" q-avatar--square":!0===e.rounded?" rounded-borders":""))),a=computed((()=>e.fontSize?{fontSize:e.fontSize}:null));return()=>{const r=void 0!==e.icon?[h(QIcon_default,{name:e.icon})]:void 0;return h("div",{class:o.value,style:n.value},[h("div",{class:"q-avatar__content row flex-center overflow-hidden",style:a.value},hMergeSlotSafely(t.default,r))])}}});var alignValues=["top","middle","bottom"];createComponent({name:"QBadge",props:{color:String,textColor:String,floating:Boolean,transparent:Boolean,multiLine:Boolean,outline:Boolean,rounded:Boolean,label:[Number,String],align:{type:String,validator:e=>alignValues.includes(e)}},setup(e,{slots:t}){const n=computed((()=>void 0!==e.align?{verticalAlign:e.align}:null)),o=computed((()=>{const t=!0===e.outline&&e.color||e.textColor;return`q-badge flex inline items-center no-wrap q-badge--${!0===e.multiLine?"multi":"single"}-line`+(!0===e.outline?" q-badge--outline":void 0!==e.color?` bg-${e.color}`:"")+(void 0!==t?` text-${t}`:"")+(!0===e.floating?" q-badge--floating":"")+(!0===e.rounded?" q-badge--rounded":"")+(!0===e.transparent?" q-badge--transparent":"")}));return()=>h("div",{class:o.value,style:n.value,role:"status","aria-label":e.label},hMergeSlot(t.default,void 0!==e.label?[e.label]:[]))}});var useDarkProps={dark:{type:Boolean,default:null}};function use_dark_default(e,t){return computed((()=>null===e.dark?t.dark.isActive:e.dark))}createComponent({name:"QBanner",props:{...useDarkProps,inlineActions:Boolean,dense:Boolean,rounded:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=getCurrentInstance(),o=use_dark_default(e,n),a=computed((()=>"q-banner row items-center"+(!0===e.dense?" q-banner--dense":"")+(!0===o.value?" q-banner--dark q-dark":"")+(!0===e.rounded?" rounded-borders":""))),r=computed((()=>"q-banner__actions row items-center justify-end col-"+(!0===e.inlineActions?"auto":"all")));return()=>{const n=[h("div",{class:"q-banner__avatar col-auto row items-center self-start"},hSlot(t.avatar)),h("div",{class:"q-banner__content col text-body2"},hSlot(t.default))],o=hSlot(t.action);return void 0!==o&&n.push(h("div",{class:r.value},o)),h("div",{class:a.value+(!1===e.inlineActions&&void 0!==o?" q-banner--top-padding":""),role:"alert"},n)}}}),createComponent({name:"QBar",props:{...useDarkProps,dense:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=getCurrentInstance(),o=use_dark_default(e,n),a=computed((()=>`q-bar row no-wrap items-center q-bar--${!0===e.dense?"dense":"standard"}  q-bar--${!0===o.value?"dark":"light"}`));return()=>h("div",{class:a.value,role:"toolbar"},hSlot(t.default))}});var alignMap={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},alignValues2=Object.keys(alignMap),useAlignProps={align:{type:String,validator:e=>alignValues2.includes(e)}};function use_align_default(e){return computed((()=>{const t=void 0===e.align?!0===e.vertical?"stretch":"left":e.align;return`${!0===e.vertical?"items":"justify"}-${alignMap[t]}`}))}function getParentProxy(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:t}=e.$;for(;Object(t)===t;){if(Object(t.proxy)===t.proxy)return t.proxy;t=t.parent}}function fillNormalizedVNodes(e,t){"symbol"==typeof t.type?!0===Array.isArray(t.children)&&t.children.forEach((t=>{fillNormalizedVNodes(e,t)})):e.add(t)}function getNormalizedVNodes(e){const t=new Set;return e.forEach((e=>{fillNormalizedVNodes(t,e)})),Array.from(t)}function vmHasRouter(e){return void 0!==e.appContext.config.globalProperties.$router}function vmIsDestroyed(e){return!0===e.isUnmounted||!0===e.isDeactivated}var disabledValues=["",!0];function getOriginalPath(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function isSameRouteRecord(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function includesParams(e,t){for(const n in t){const o=t[n],a=e[n];if("string"==typeof o){if(o!==a)return!1}else if(!1===Array.isArray(a)||a.length!==o.length||o.some(((e,t)=>e!==a[t])))return!1}return!0}function isEquivalentArray(e,t){return!0===Array.isArray(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}function isSameRouteLocationParamsValue(e,t){return!0===Array.isArray(e)?isEquivalentArray(e,t):!0===Array.isArray(t)?isEquivalentArray(t,e):e===t}function isSameRouteLocationParams(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!1===isSameRouteLocationParamsValue(e[n],t[n]))return!1;return!0}createComponent({name:"QBreadcrumbs",props:{...useAlignProps,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:e=>["none","xs","sm","md","lg","xl"].includes(e),default:"sm"}},setup(e,{slots:t}){const n=use_align_default(e),o=computed((()=>`flex items-center ${n.value}${"none"===e.gutter?"":` q-gutter-${e.gutter}`}`)),a=computed((()=>e.separatorColor?` text-${e.separatorColor}`:"")),r=computed((()=>` text-${e.activeColor}`));return()=>{if(void 0===t.default)return;const n=getNormalizedVNodes(hSlot(t.default));if(0===n.length)return;let i=1;const l=[],s=n.filter((e=>void 0!==e.type&&"QBreadcrumbsEl"===e.type.name)).length,u=void 0!==t.separator?t.separator:()=>e.separator;return n.forEach((e=>{if(void 0!==e.type&&"QBreadcrumbsEl"===e.type.name){const t=i<s,n=(!0===t?"":" q-breadcrumbs--last")+(!0!==(null!==e.props&&disabledValues.includes(e.props.disable))&&!0===t?r.value:"");i++,l.push(h("div",{class:`flex items-center${n}`},[e])),!0===t&&l.push(h("div",{class:"q-breadcrumbs__separator"+a.value},u()))}else l.push(e)})),h("div",{class:"q-breadcrumbs"},[h("div",{class:o.value},l)])}}});var useRouterLinkNonMatchingProps={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},useRouterLinkProps={...useRouterLinkNonMatchingProps,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function use_router_link_default({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const n=getCurrentInstance(),{props:o,proxy:a,emit:r}=n,i=vmHasRouter(n),l=computed((()=>!0!==o.disable&&void 0!==o.href)),s=computed(!0===t?()=>!0===i&&!0!==o.disable&&!0!==l.value&&void 0!==o.to&&null!==o.to&&""!==o.to:()=>!0===i&&!0!==l.value&&void 0!==o.to&&null!==o.to&&""!==o.to),u=computed((()=>!0===s.value?_(o.to):null)),c=computed((()=>null!==u.value)),d=computed((()=>!0===l.value||!0===c.value)),p=computed((()=>"a"===o.type||!0===d.value?"a":o.tag||e||"div")),h=computed((()=>!0===l.value?{href:o.href,target:o.target}:!0===c.value?{href:u.value.href,target:o.target}:{})),f=computed((()=>{if(!1===c.value)return-1;const{matched:e}=u.value,{length:t}=e,n=e[t-1];if(void 0===n)return-1;const o=a.$route.matched;if(0===o.length)return-1;const r=o.findIndex(isSameRouteRecord.bind(null,n));if(-1!==r)return r;const i=getOriginalPath(e[t-2]);return t>1&&getOriginalPath(n)===i&&o[o.length-1].path!==i?o.findIndex(isSameRouteRecord.bind(null,e[t-2])):r})),v=computed((()=>!0===c.value&&-1!==f.value&&includesParams(a.$route.params,u.value.params))),m=computed((()=>!0===v.value&&f.value===a.$route.matched.length-1&&isSameRouteLocationParams(a.$route.params,u.value.params))),g=computed((()=>!0===c.value?!0===m.value?` ${o.exactActiveClass} ${o.activeClass}`:!0===o.exact?"":!0===v.value?` ${o.activeClass}`:"":""));function _(e){try{return a.$router.resolve(e)}catch(e){}return null}function b(e,{returnRouterError:t,to:n=o.to,replace:r=o.replace}={}){if(!0===o.disable)return e.preventDefault(),Promise.resolve(!1);if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||void 0!==e.button&&0!==e.button||"_blank"===o.target)return Promise.resolve(!1);e.preventDefault();const i=a.$router[!0===r?"replace":"push"](n);return!0===t?i:i.then((()=>{})).catch((()=>{}))}return{hasRouterLink:c,hasHrefLink:l,hasLink:d,linkTag:p,resolvedLink:u,linkIsActive:v,linkIsExactActive:m,linkClass:g,linkAttrs:h,getLink:_,navigateToRouterLink:b,navigateOnClick:function(e){if(!0===c.value){const t=t=>b(e,t);r("click",e,t),!0!==e.defaultPrevented&&t()}else r("click",e)}}}createComponent({name:"QBreadcrumbsEl",props:{...useRouterLinkProps,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(e,{slots:t}){const{linkTag:n,linkAttrs:o,linkClass:a,navigateOnClick:r}=use_router_link_default(),i=computed((()=>({class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(!0!==e.disable?"q-link--focusable"+a.value:"q-breadcrumbs__el--disable"),...o.value,onClick:r}))),l=computed((()=>"q-breadcrumbs__el-icon"+(void 0!==e.label?" q-breadcrumbs__el-icon--with-label":"")));return()=>{const o=[];return void 0!==e.icon&&o.push(h(QIcon_default,{class:l.value,name:e.icon})),void 0!==e.label&&o.push(e.label),h(n.value,{...i.value},hMergeSlot(t.default,o))}}});var useSpinnerProps={size:{type:[String,Number],default:"1em"},color:String};function useSpinner(e){return{cSize:computed((()=>e.size in useSizeDefaults?`${useSizeDefaults[e.size]}px`:e.size)),classes:computed((()=>"q-spinner"+(e.color?` text-${e.color}`:"")))}}var QSpinner_default=createComponent({name:"QSpinner",props:{...useSpinnerProps,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=useSpinner(e);return()=>h("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function offset(e){if(e===window)return{top:0,left:0};const{top:t,left:n}=e.getBoundingClientRect();return{top:t,left:n}}function height(e){return e===window?window.innerHeight:e.getBoundingClientRect().height}function css(e,t){const n=e.style;for(const e in t)n[e]=t[e]}function getElement(e){if(null==e)return;if("string"==typeof e)try{return document.querySelector(e)||void 0}catch(e){return}const t=unref(e);return t?t.$el||t:void 0}function childHasFocus(e,t){if(null==e||!0===e.contains(t))return!0;for(let n=e.nextElementSibling;null!==n;n=n.nextElementSibling)if(n.contains(t))return!0;return!1}function throttle_default(e,t=250){let n,o=!1;return function(){return!1===o&&(o=!0,setTimeout((()=>{o=!1}),t),n=e.apply(this,arguments)),n}}function showRipple(e,t,n,o){!0===n.modifiers.stop&&stop$1(e);const a=n.modifiers.color;let r=n.modifiers.center;r=!0===r||!0===o;const i=document.createElement("span"),l=document.createElement("span"),s=position(e),{left:u,top:c,width:d,height:p}=t.getBoundingClientRect(),h=Math.sqrt(d*d+p*p),f=h/2,v=(d-h)/2+"px",m=r?v:s.left-u-f+"px",g=(p-h)/2+"px",_=r?g:s.top-c-f+"px";l.className="q-ripple__inner",css(l,{height:`${h}px`,width:`${h}px`,transform:`translate3d(${m},${_},0) scale3d(.2,.2,1)`,opacity:0}),i.className="q-ripple"+(a?" text-"+a:""),i.setAttribute("dir","ltr"),i.appendChild(l),t.appendChild(i);const b=()=>{i.remove(),clearTimeout(y)};n.abort.push(b);let y=setTimeout((()=>{l.classList.add("q-ripple__inner--enter"),l.style.transform=`translate3d(${v},${g},0) scale3d(1,1,1)`,l.style.opacity=.2,y=setTimeout((()=>{l.classList.remove("q-ripple__inner--enter"),l.classList.add("q-ripple__inner--leave"),l.style.opacity=0,y=setTimeout((()=>{i.remove(),n.abort.splice(n.abort.indexOf(b),1)}),275)}),250)}),50)}function updateModifiers(e,{modifiers:t,value:n,arg:o}){const a=Object.assign({},e.cfg.ripple,t,n);e.modifiers={early:!0===a.early,stop:!0===a.stop,center:!0===a.center,color:a.color||o,keyCodes:[].concat(a.keyCodes||13)}}var Ripple_default=createDirective({name:"ripple",beforeMount(e,t){const n=t.instance.$.appContext.config.globalProperties.$q.config||{};if(!1===n.ripple)return;const o={cfg:n,enabled:!1!==t.value,modifiers:{},abort:[],start(t){!0===o.enabled&&!0!==t.qSkipRipple&&t.type===(!0===o.modifiers.early?"pointerdown":"click")&&showRipple(t,e,o,!0===t.qKeyEvent)},keystart:throttle_default((t=>{!0===o.enabled&&!0!==t.qSkipRipple&&!0===isKeyCode(t,o.modifiers.keyCodes)&&t.type==="key"+(!0===o.modifiers.early?"down":"up")&&showRipple(t,e,o,!0)}),300)};updateModifiers(o,t),e.__qripple=o,addEvt(o,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const n=e.__qripple;void 0!==n&&(n.enabled=!1!==t.value,!0===n.enabled&&Object(t.value)===t.value&&updateModifiers(n,t))}},beforeUnmount(e){const t=e.__qripple;void 0!==t&&(t.abort.forEach((e=>{e()})),cleanEvt(t,"main"),delete e._qripple)}}),btnPadding={none:0,xs:4,sm:8,md:16,lg:24,xl:32},defaultSizes={xs:8,sm:10,md:14,lg:20,xl:24},formTypes=["button","submit","reset"],mediaTypeRE=/[^\s]\/[^\s]/,btnDesignOptions=["flat","outline","push","unelevated"];function getBtnDesign(e,t){return!0===e.flat?"flat":!0===e.outline?"outline":!0===e.push?"push":!0===e.unelevated?"unelevated":t}function getBtnDesignAttr(e){const t=getBtnDesign(e);return void 0!==t?{[t]:!0}:{}}var nonRoundBtnProps={...useSizeProps,...useRouterLinkNonMatchingProps,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...btnDesignOptions.reduce(((e,t)=>(e[t]=Boolean)&&e),{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...useAlignProps.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},useBtnProps={...nonRoundBtnProps,round:Boolean};function use_btn_default(e){const t=use_size_default(e,defaultSizes),n=use_align_default(e),{hasRouterLink:o,hasLink:a,linkTag:r,linkAttrs:i,navigateOnClick:l}=use_router_link_default({fallbackTag:"button"}),s=computed((()=>{const n=!1===e.fab&&!1===e.fabMini?t.value:{};return void 0!==e.padding?Object.assign({},n,{padding:e.padding.split(/\s+/).map((e=>e in btnPadding?btnPadding[e]+"px":e)).join(" "),minWidth:"0",minHeight:"0"}):n})),u=computed((()=>!0===e.rounded||!0===e.fab||!0===e.fabMini)),c=computed((()=>!0!==e.disable&&!0!==e.loading)),d=computed((()=>!0===c.value?e.tabindex||0:-1)),p=computed((()=>getBtnDesign(e,"standard"))),h=computed((()=>{const t={tabindex:d.value};return!0===a.value?Object.assign(t,i.value):!0===formTypes.includes(e.type)&&(t.type=e.type),"a"===r.value?(!0===e.disable?t["aria-disabled"]="true":void 0===t.href&&(t.role="button"),!0!==o.value&&!0===mediaTypeRE.test(e.type)&&(t.type=e.type)):!0===e.disable&&(t.disabled="",t["aria-disabled"]="true"),!0===e.loading&&void 0!==e.percentage&&Object.assign(t,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),t}));return{classes:computed((()=>{let t;void 0!==e.color?t=!0===e.flat||!0===e.outline?`text-${e.textColor||e.color}`:`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(t=`text-${e.textColor}`);const n=!0===e.round?"round":"rectangle"+(!0===u.value?" q-btn--rounded":!0===e.square?" q-btn--square":"");return`q-btn--${p.value} q-btn--${n}`+(void 0!==t?" "+t:"")+(!0===c.value?" q-btn--actionable q-focusable q-hoverable":!0===e.disable?" disabled":"")+(!0===e.fab?" q-btn--fab":!0===e.fabMini?" q-btn--fab-mini":"")+(!0===e.noCaps?" q-btn--no-uppercase":"")+(!0===e.dense?" q-btn--dense":"")+(!0===e.stretch?" no-border-radius self-stretch":"")+(!0===e.glossy?" glossy":"")+(e.square?" q-btn--square":"")})),style:s,innerClasses:computed((()=>n.value+(!0===e.stack?" column":" row")+(!0===e.noWrap?" no-wrap text-no-wrap":"")+(!0===e.loading?" q-btn__content--hidden":""))),attributes:h,hasLink:a,linkTag:r,navigateOnClick:l,isActionable:c}}var{passiveCapture:passiveCapture}=listenOpts,touchTarget=null,keyboardTarget=null,mouseTarget=null,QBtn_default=createComponent({name:"QBtn",props:{...useBtnProps,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:o}=getCurrentInstance(),{classes:a,style:r,innerClasses:i,attributes:l,hasLink:s,linkTag:u,navigateOnClick:c,isActionable:d}=use_btn_default(e),p=ref(null),f=ref(null);let v,m=null,g=null;const _=computed((()=>void 0!==e.label&&null!==e.label&&""!==e.label)),b=computed((()=>!0!==e.disable&&!1!==e.ripple&&{keyCodes:!0===s.value?[13,32]:[13],...!0===e.ripple?{}:e.ripple})),y=computed((()=>({center:e.round}))),w=computed((()=>{const t=Math.max(0,Math.min(100,e.percentage));return t>0?{transition:"transform 0.6s",transform:`translateX(${t-100}%)`}:{}})),C=computed((()=>{if(!0===e.loading)return{onMousedown:N,onTouchstart:N,onClick:N,onKeydown:N,onKeyup:N};if(!0===d.value){const t={onClick:k,onKeydown:x,onMousedown:T};if(!0===o.$q.platform.has.touch){t[`onTouchstart${void 0!==e.onTouchstart?"":"Passive"}`]=M}return t}return{onClick:stopAndPrevent}})),S=computed((()=>({ref:p,class:"q-btn q-btn-item non-selectable no-outline "+a.value,style:r.value,...l.value,...C.value})));function k(t){if(null!==p.value){if(void 0!==t){if(!0===t.defaultPrevented)return;const n=document.activeElement;if("submit"===e.type&&n!==document.body&&!1===p.value.contains(n)&&!1===n.contains(p.value)){p.value.focus();const e=()=>{document.removeEventListener("keydown",stopAndPrevent,!0),document.removeEventListener("keyup",e,passiveCapture),null!==p.value&&p.value.removeEventListener("blur",e,passiveCapture)};document.addEventListener("keydown",stopAndPrevent,!0),document.addEventListener("keyup",e,passiveCapture),p.value.addEventListener("blur",e,passiveCapture)}}c(t)}}function x(e){null!==p.value&&(n("keydown",e),!0===isKeyCode(e,[13,32])&&keyboardTarget!==p.value&&(null!==keyboardTarget&&E(),!0!==e.defaultPrevented&&(p.value.focus(),keyboardTarget=p.value,p.value.classList.add("q-btn--active"),document.addEventListener("keyup",$,!0),p.value.addEventListener("blur",$,passiveCapture)),stopAndPrevent(e)))}function M(e){null!==p.value&&(n("touchstart",e),!0!==e.defaultPrevented&&(touchTarget!==p.value&&(null!==touchTarget&&E(),touchTarget=p.value,m=e.target,m.addEventListener("touchcancel",$,passiveCapture),m.addEventListener("touchend",$,passiveCapture)),v=!0,null!==g&&clearTimeout(g),g=setTimeout((()=>{g=null,v=!1}),200)))}function T(e){null!==p.value&&(e.qSkipRipple=!0===v,n("mousedown",e),!0!==e.defaultPrevented&&mouseTarget!==p.value&&(null!==mouseTarget&&E(),mouseTarget=p.value,p.value.classList.add("q-btn--active"),document.addEventListener("mouseup",$,passiveCapture)))}function $(e){if(null!==p.value&&(void 0===e||"blur"!==e.type||document.activeElement!==p.value)){if(void 0!==e&&"keyup"===e.type){if(keyboardTarget===p.value&&!0===isKeyCode(e,[13,32])){const t=new MouseEvent("click",e);t.qKeyEvent=!0,!0===e.defaultPrevented&&prevent(t),!0===e.cancelBubble&&stop$1(t),p.value.dispatchEvent(t),stopAndPrevent(e),e.qKeyEvent=!0}n("keyup",e)}E()}}function E(e){const t=f.value;!0===e||touchTarget!==p.value&&mouseTarget!==p.value||null===t||t===document.activeElement||(t.setAttribute("tabindex",-1),t.focus()),touchTarget===p.value&&(null!==m&&(m.removeEventListener("touchcancel",$,passiveCapture),m.removeEventListener("touchend",$,passiveCapture)),touchTarget=m=null),mouseTarget===p.value&&(document.removeEventListener("mouseup",$,passiveCapture),mouseTarget=null),keyboardTarget===p.value&&(document.removeEventListener("keyup",$,!0),null!==p.value&&p.value.removeEventListener("blur",$,passiveCapture),keyboardTarget=null),null!==p.value&&p.value.classList.remove("q-btn--active")}function N(e){stopAndPrevent(e),e.qSkipRipple=!0}return onBeforeUnmount((()=>{E(!0)})),Object.assign(o,{click:e=>{!0===d.value&&k(e)}}),()=>{let n=[];void 0!==e.icon&&n.push(h(QIcon_default,{name:e.icon,left:!0!==e.stack&&!0===_.value,role:"img"})),!0===_.value&&n.push(h("span",{class:"block"},[e.label])),n=hMergeSlot(t.default,n),void 0!==e.iconRight&&!1===e.round&&n.push(h(QIcon_default,{name:e.iconRight,right:!0!==e.stack&&!0===_.value,role:"img"}));const o=[h("span",{class:"q-focus-helper",ref:f})];return!0===e.loading&&void 0!==e.percentage&&o.push(h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(!0===e.darkPercentage?" q-btn__progress--dark":"")},[h("span",{class:"q-btn__progress-indicator fit block",style:w.value})])),o.push(h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+i.value},n)),null!==e.loading&&o.push(h(Transition$1,{name:"q-transition--fade"},(()=>!0===e.loading?[h("span",{key:"loading",class:"absolute-full flex flex-center"},void 0!==t.loading?t.loading():[h(QSpinner_default)])]:null))),withDirectives(h(u.value,S.value,o),[[Ripple_default,b.value,void 0,y.value]])}}}),QBtnGroup_default=createComponent({name:"QBtnGroup",props:{unelevated:Boolean,outline:Boolean,flat:Boolean,rounded:Boolean,square:Boolean,push:Boolean,stretch:Boolean,glossy:Boolean,spread:Boolean},setup(e,{slots:t}){const n=computed((()=>{const t=["unelevated","outline","flat","rounded","square","push","stretch","glossy"].filter((t=>!0===e[t])).map((e=>`q-btn-group--${e}`)).join(" ");return"q-btn-group row no-wrap"+(0!==t.length?" "+t:"")+(!0===e.spread?" q-btn-group--spread":" inline")}));return()=>h("div",{class:n.value},hSlot(t.default))}});function clearSelection(){if(void 0!==window.getSelection){const e=window.getSelection();void 0!==e.empty?e.empty():void 0!==e.removeAllRanges&&(e.removeAllRanges(),!0!==Platform_default.is.mobile&&e.addRange(document.createRange()))}else void 0!==document.selection&&document.selection.empty()}var useAnchorStaticProps={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},useAnchorProps={...useAnchorStaticProps,contextMenu:Boolean};function use_anchor_default({showing:e,avoidEmit:t,configureAnchorEl:n}){const{props:o,proxy:a,emit:r}=getCurrentInstance(),i=ref(null);let l=null;function s(e){return null!==i.value&&(void 0===e||void 0===e.touches||e.touches.length<=1)}const u={};function c(){cleanEvt(u,"anchor")}function d(){if(!1===o.target||""===o.target||null===a.$el.parentNode)i.value=null;else if(!0===o.target)!function(e){for(i.value=e;i.value.classList.contains("q-anchor--skip");)i.value=i.value.parentNode;n()}(a.$el.parentNode);else{let e=o.target;if("string"==typeof o.target)try{e=document.querySelector(o.target)}catch(t){e=void 0}null!=e?(i.value=e.$el||e,n()):(i.value=null,console.error(`Anchor: target "${o.target}" not found`))}}return void 0===n&&(Object.assign(u,{hide(e){a.hide(e)},toggle(e){a.toggle(e),e.qAnchorHandled=!0},toggleKey(e){!0===isKeyCode(e,13)&&u.toggle(e)},contextClick(e){a.hide(e),prevent(e),nextTick((()=>{a.show(e),e.qAnchorHandled=!0}))},prevent:prevent,mobileTouch(e){if(u.mobileCleanup(e),!0!==s(e))return;a.hide(e),i.value.classList.add("non-selectable");const t=e.target;addEvt(u,"anchor",[[t,"touchmove","mobileCleanup","passive"],[t,"touchend","mobileCleanup","passive"],[t,"touchcancel","mobileCleanup","passive"],[i.value,"contextmenu","prevent","notPassive"]]),l=setTimeout((()=>{l=null,a.show(e),e.qAnchorHandled=!0}),300)},mobileCleanup(t){i.value.classList.remove("non-selectable"),null!==l&&(clearTimeout(l),l=null),!0===e.value&&void 0!==t&&clearSelection()}}),n=function(e=o.contextMenu){if(!0===o.noParentEvent||null===i.value)return;let t;t=!0===e?!0===a.$q.platform.is.mobile?[[i.value,"touchstart","mobileTouch","passive"]]:[[i.value,"mousedown","hide","passive"],[i.value,"contextmenu","contextClick","notPassive"]]:[[i.value,"click","toggle","passive"],[i.value,"keyup","toggleKey","passive"]],addEvt(u,"anchor",t)}),watch((()=>o.contextMenu),(e=>{null!==i.value&&(c(),n(e))})),watch((()=>o.target),(()=>{null!==i.value&&c(),d()})),watch((()=>o.noParentEvent),(e=>{null!==i.value&&(!0===e?c():n())})),onMounted((()=>{d(),!0!==t&&!0===o.modelValue&&null===i.value&&r("update:modelValue",!1)})),onBeforeUnmount((()=>{null!==l&&clearTimeout(l),c()})),{anchorEl:i,canShow:s,anchorEvents:u}}function use_scroll_target_default(e,t){const n=ref(null);let o;function a(e,t){const n=(void 0!==t?"add":"remove")+"EventListener",a=void 0!==t?t:o;e!==window&&e[n]("scroll",a,listenOpts.passive),window[n]("scroll",a,listenOpts.passive),o=t}function r(){null!==n.value&&(a(n.value),n.value=null)}const i=watch((()=>e.noParentEvent),(()=>{null!==n.value&&(r(),t())}));return onBeforeUnmount(i),{localScrollTarget:n,unconfigureScrollTarget:r,changeScrollEvent:a}}var useModelToggleProps={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},useModelToggleEmits=["beforeShow","show","beforeHide","hide"];function use_model_toggle_default({showing:e,canShow:t,hideOnRouteChange:n,handleShow:o,handleHide:a,processOnMount:r}){const i=getCurrentInstance(),{props:l,emit:s,proxy:u}=i;let c;function d(e){if(!0===l.disable||void 0!==e&&!0===e.qAnchorHandled||void 0!==t&&!0!==t(e))return;const n=void 0!==l["onUpdate:modelValue"];!0===n&&(s("update:modelValue",!0),c=e,nextTick((()=>{c===e&&(c=void 0)}))),null!==l.modelValue&&!1!==n||p(e)}function p(t){!0!==e.value&&(e.value=!0,s("beforeShow",t),void 0!==o?o(t):s("show",t))}function h(e){if(!0===l.disable)return;const t=void 0!==l["onUpdate:modelValue"];!0===t&&(s("update:modelValue",!1),c=e,nextTick((()=>{c===e&&(c=void 0)}))),null!==l.modelValue&&!1!==t||f(e)}function f(t){!1!==e.value&&(e.value=!1,s("beforeHide",t),void 0!==a?a(t):s("hide",t))}function v(t){if(!0===l.disable&&!0===t)void 0!==l["onUpdate:modelValue"]&&s("update:modelValue",!1);else if(!0===t!==e.value){(!0===t?p:f)(c)}}watch((()=>l.modelValue),v),void 0!==n&&!0===vmHasRouter(i)&&watch((()=>u.$route.fullPath),(()=>{!0===n.value&&!0===e.value&&h()})),!0===r&&onMounted((()=>{v(l.modelValue)}));const m={show:d,hide:h,toggle:function(t){!0===e.value?h(t):d(t)}};return Object.assign(u,m),m}var queue=[],waitFlags=[];function clearFlag(e){waitFlags=waitFlags.filter((t=>t!==e))}function addFocusWaitFlag(e){clearFlag(e),waitFlags.push(e)}function removeFocusWaitFlag(e){clearFlag(e),0===waitFlags.length&&0!==queue.length&&(queue[queue.length-1](),queue=[])}function addFocusFn(e){0===waitFlags.length?e():queue.push(e)}function removeFocusFn(e){queue=queue.filter((t=>t!==e))}var nodesList=[],portalTypeList=[],portalIndex=1,target=document.body;function createGlobalNode(e,t){const n=document.createElement("div");if(n.id=void 0!==t?`q-portal--${t}--${portalIndex++}`:e,void 0!==globalConfig.globalNodes){const e=globalConfig.globalNodes.class;void 0!==e&&(n.className=e)}return target.appendChild(n),nodesList.push(n),portalTypeList.push(t),n}function removeGlobalNode(e){const t=nodesList.indexOf(e);nodesList.splice(t,1),portalTypeList.splice(t,1),e.remove()}function changeGlobalNodesTarget(e){if(e===target)return;if((target=e)===document.body||portalTypeList.reduce(((e,t)=>"dialog"===t?e+1:e),0)<2)return void nodesList.forEach((e=>{!1===e.contains(target)&&target.appendChild(e)}));const t=portalTypeList.lastIndexOf("dialog");for(let e=0;e<nodesList.length;e++){const n=nodesList[e];e!==t&&"dialog"===portalTypeList[e]||!1!==n.contains(target)||target.appendChild(n)}}var portalProxyList=[];function getPortalProxy(e){return portalProxyList.find((t=>null!==t.contentEl&&t.contentEl.contains(e)))}function closePortalMenus(e,t){do{if("QMenu"===e.$options.name){if(e.hide(t),!0===e.$props.separateClosePopup)return getParentProxy(e)}else if(!0===e.__qPortal){const n=getParentProxy(e);return void 0!==n&&"QPopupProxy"===n.$options.name?(e.hide(t),n):e}e=getParentProxy(e)}while(null!=e)}function closePortals(e,t,n){for(;0!==n&&null!=e;){if(!0===e.__qPortal){if(n--,"QMenu"===e.$options.name){e=closePortalMenus(e,t);continue}e.hide(t)}e=getParentProxy(e)}}var QPortal=createComponent({name:"QPortal",setup:(e,{slots:t})=>()=>t.default()});function isOnGlobalDialog(e){for(e=e.parent;null!=e;){if("QGlobalDialog"===e.type.name)return!0;if("QDialog"===e.type.name||"QMenu"===e.type.name)return!1;e=e.parent}return!1}function use_portal_default(e,t,n,o){const a=ref(!1),r=ref(!1);let i=null;const l={},s="dialog"===o&&isOnGlobalDialog(e);function u(t){if(r.value=!1,!0!==t)return;removeFocusWaitFlag(l),a.value=!1;const n=portalProxyList.indexOf(e.proxy);-1!==n&&portalProxyList.splice(n,1),null!==i&&(removeGlobalNode(i),i=null)}return onUnmounted((()=>{u(!0)})),e.proxy.__qPortal=!0,injectProp(e.proxy,"contentEl",(()=>t.value)),{showPortal:function(t){if(!0===t)return removeFocusWaitFlag(l),void(r.value=!0);r.value=!1,!1===a.value&&(!1===s&&null===i&&(i=createGlobalNode(!1,o)),a.value=!0,portalProxyList.push(e.proxy),addFocusWaitFlag(l))},hidePortal:u,portalIsActive:a,portalIsAccessible:r,renderPortal:()=>!0===s?n():!0===a.value?[h(Teleport,{to:i},h(QPortal,n))]:void 0}}var useTransitionProps={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function use_transition_default(e,t=()=>{},n=()=>{}){return{transitionProps:computed((()=>{const o=`q-transition--${e.transitionShow||t()}`,a=`q-transition--${e.transitionHide||n()}`;return{appear:!0,enterFromClass:`${o}-enter-from`,enterActiveClass:`${o}-enter-active`,enterToClass:`${o}-enter-to`,leaveFromClass:`${a}-leave-from`,leaveActiveClass:`${a}-leave-active`,leaveToClass:`${a}-leave-to`}})),transitionStyle:computed((()=>`--q-transition-duration: ${e.transitionDuration}ms`))}}function use_tick_default(){let e;const t=getCurrentInstance();function n(){e=void 0}return onDeactivated(n),onBeforeUnmount(n),{removeTick:n,registerTick(n){e=n,nextTick((()=>{e===n&&(!1===vmIsDestroyed(t)&&e(),e=void 0)}))}}}function use_timeout_default(){let e=null;const t=getCurrentInstance();function n(){null!==e&&(clearTimeout(e),e=null)}return onDeactivated(n),onBeforeUnmount(n),{removeTimeout:n,registerTimeout(o,a){n(),!1===vmIsDestroyed(t)&&(e=setTimeout((()=>{e=null,o()}),a))}}}var size,scrollTargetProp=[Element,String],scrollTargets=[null,document,document.body,document.scrollingElement,document.documentElement];function getScrollTarget(e,t){let n=getElement(t);if(void 0===n){if(null==e)return window;n=e.closest(".scroll,.scroll-y,.overflow-auto")}return scrollTargets.includes(n)?window:n}function getScrollHeight(e){return(e===window?document.body:e).scrollHeight}function getVerticalScrollPosition(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function getHorizontalScrollPosition(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}function animVerticalScrollTo(e,t,n=0){const o=void 0===arguments[3]?performance.now():arguments[3],a=getVerticalScrollPosition(e);n<=0?a!==t&&setScroll(e,t):requestAnimationFrame((r=>{const i=r-o,l=a+(t-a)/Math.max(i,n)*i;setScroll(e,l),l!==t&&animVerticalScrollTo(e,t,n-i,r)}))}function animHorizontalScrollTo(e,t,n=0){const o=void 0===arguments[3]?performance.now():arguments[3],a=getHorizontalScrollPosition(e);n<=0?a!==t&&setHorizontalScroll(e,t):requestAnimationFrame((r=>{const i=r-o,l=a+(t-a)/Math.max(i,n)*i;setHorizontalScroll(e,l),l!==t&&animHorizontalScrollTo(e,t,n-i,r)}))}function setScroll(e,t){e!==window?e.scrollTop=t:window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t)}function setHorizontalScroll(e,t){e!==window?e.scrollLeft=t:window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)}function setVerticalScrollPosition(e,t,n){n?animVerticalScrollTo(e,t,n):setScroll(e,t)}function setHorizontalScrollPosition(e,t,n){n?animHorizontalScrollTo(e,t,n):setHorizontalScroll(e,t)}function getScrollbarWidth(){if(void 0!==size)return size;const e=document.createElement("p"),t=document.createElement("div");css(e,{width:"100%",height:"200px"}),css(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const n=e.offsetWidth;t.style.overflow="scroll";let o=e.offsetWidth;return n===o&&(o=t.clientWidth),t.remove(),size=n-o}function hasScrollbar(e,t=!0){return!(!e||e.nodeType!==Node.ELEMENT_NODE)&&(t?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"])))}var escDown,handlers=[];function onKeydown(e){escDown=27===e.keyCode}function onBlur(){!0===escDown&&(escDown=!1)}function onKeyup(e){!0===escDown&&(escDown=!1,!0===isKeyCode(e,27)&&handlers[handlers.length-1](e))}function update(e){window[e]("keydown",onKeydown),window[e]("blur",onBlur),window[e]("keyup",onKeyup),escDown=!1}function addEscapeKey(e){!0===client.is.desktop&&(handlers.push(e),1===handlers.length&&update("addEventListener"))}function removeEscapeKey(e){const t=handlers.indexOf(e);-1!==t&&(handlers.splice(t,1),0===handlers.length&&update("removeEventListener"))}var handlers2=[];function trigger(e){handlers2[handlers2.length-1](e)}function addFocusout(e){!0===client.is.desktop&&(handlers2.push(e),1===handlers2.length&&document.body.addEventListener("focusin",trigger))}function removeFocusout(e){const t=handlers2.indexOf(e);-1!==t&&(handlers2.splice(t,1),0===handlers2.length&&document.body.removeEventListener("focusin",trigger))}var vpLeft,vpTop,{notPassiveCapture:notPassiveCapture}=listenOpts,registeredList=[];function globalHandler(e){const t=e.target;if(void 0===t||8===t.nodeType||!0===t.classList.contains("no-pointer-events"))return;let n=portalProxyList.length-1;for(;n>=0;){const e=portalProxyList[n].$;if("QTooltip"!==e.type.name){if("QDialog"!==e.type.name)break;if(!0!==e.props.seamless)return;n--}else n--}for(let n=registeredList.length-1;n>=0;n--){const o=registeredList[n];if(null!==o.anchorEl.value&&!1!==o.anchorEl.value.contains(t)||t!==document.body&&(null===o.innerRef.value||!1!==o.innerRef.value.contains(t)))return;e.qClickOutside=!0,o.onClickOutside(e)}}function addClickOutside(e){registeredList.push(e),1===registeredList.length&&(document.addEventListener("mousedown",globalHandler,notPassiveCapture),document.addEventListener("touchstart",globalHandler,notPassiveCapture))}function removeClickOutside(e){const t=registeredList.findIndex((t=>t===e));-1!==t&&(registeredList.splice(t,1),0===registeredList.length&&(document.removeEventListener("mousedown",globalHandler,notPassiveCapture),document.removeEventListener("touchstart",globalHandler,notPassiveCapture)))}function validatePosition(e){const t=e.split(" ");return 2===t.length&&(!0!==["top","center","bottom"].includes(t[0])?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):!0===["left","middle","right","start","end"].includes(t[1])||(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1))}function validateOffset(e){return!e||2===e.length&&("number"==typeof e[0]&&"number"==typeof e[1])}var horizontalPos={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};function parsePosition(e,t){const n=e.split(" ");return{vertical:n[0],horizontal:horizontalPos[`${n[1]}#${!0===t?"rtl":"ltr"}`]}}function getAnchorProps(e,t){let{top:n,left:o,right:a,bottom:r,width:i,height:l}=e.getBoundingClientRect();return void 0!==t&&(n-=t[1],o-=t[0],r+=t[1],a+=t[0],i+=t[0],l+=t[1]),{top:n,bottom:r,height:l,left:o,right:a,width:i,middle:o+(a-o)/2,center:n+(r-n)/2}}function getAbsoluteAnchorProps(e,t,n){let{top:o,left:a}=e.getBoundingClientRect();return o+=t.top,a+=t.left,void 0!==n&&(o+=n[1],a+=n[0]),{top:o,bottom:o+1,height:1,left:a,right:a+1,width:1,middle:a,center:o}}function getTargetProps(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function getTopLeftProps(e,t,n,o){return{top:e[n.vertical]-t[o.vertical],left:e[n.horizontal]-t[o.horizontal]}}function setPosition(e,t=0){if(null===e.targetEl||null===e.anchorEl||t>5)return;if(0===e.targetEl.offsetHeight||0===e.targetEl.offsetWidth)return void setTimeout((()=>{setPosition(e,t+1)}),10);const{targetEl:n,offset:o,anchorEl:a,anchorOrigin:r,selfOrigin:i,absoluteOffset:l,fit:s,cover:u,maxHeight:c,maxWidth:d}=e;if(!0===client.is.ios&&void 0!==window.visualViewport){const e=document.body.style,{offsetLeft:t,offsetTop:n}=window.visualViewport;t!==vpLeft&&(e.setProperty("--q-pe-left",t+"px"),vpLeft=t),n!==vpTop&&(e.setProperty("--q-pe-top",n+"px"),vpTop=n)}const{scrollLeft:p,scrollTop:h}=n,f=void 0===l?getAnchorProps(a,!0===u?[0,0]:o):getAbsoluteAnchorProps(a,l,o);Object.assign(n.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:d,maxHeight:c,visibility:"visible"});const{offsetWidth:v,offsetHeight:m}=n,{elWidth:g,elHeight:_}=!0===s||!0===u?{elWidth:Math.max(f.width,v),elHeight:!0===u?Math.max(f.height,m):m}:{elWidth:v,elHeight:m};let b={maxWidth:d,maxHeight:c};!0!==s&&!0!==u||(b.minWidth=f.width+"px",!0===u&&(b.minHeight=f.height+"px")),Object.assign(n.style,b);const y=getTargetProps(g,_);let w=getTopLeftProps(f,y,r,i);if(void 0===l||void 0===o)applyBoundaries(w,f,y,r,i);else{const{top:e,left:t}=w;applyBoundaries(w,f,y,r,i);let n=!1;if(w.top!==e){n=!0;const e=2*o[1];f.center=f.top-=e,f.bottom-=e+2}if(w.left!==t){n=!0;const e=2*o[0];f.middle=f.left-=e,f.right-=e+2}!0===n&&(w=getTopLeftProps(f,y,r,i),applyBoundaries(w,f,y,r,i))}b={top:w.top+"px",left:w.left+"px"},void 0!==w.maxHeight&&(b.maxHeight=w.maxHeight+"px",f.height>w.maxHeight&&(b.minHeight=b.maxHeight)),void 0!==w.maxWidth&&(b.maxWidth=w.maxWidth+"px",f.width>w.maxWidth&&(b.minWidth=b.maxWidth)),Object.assign(n.style,b),n.scrollTop!==h&&(n.scrollTop=h),n.scrollLeft!==p&&(n.scrollLeft=p)}function applyBoundaries(e,t,n,o,a){const r=n.bottom,i=n.right,l=getScrollbarWidth(),s=window.innerHeight-l,u=document.body.clientWidth;if(e.top<0||e.top+r>s)if("center"===a.vertical)e.top=t[o.vertical]>s/2?Math.max(0,s-r):0,e.maxHeight=Math.min(r,s);else if(t[o.vertical]>s/2){const n=Math.min(s,"center"===o.vertical?t.center:o.vertical===a.vertical?t.bottom:t.top);e.maxHeight=Math.min(r,n),e.top=Math.max(0,n-r)}else e.top=Math.max(0,"center"===o.vertical?t.center:o.vertical===a.vertical?t.top:t.bottom),e.maxHeight=Math.min(r,s-e.top);if(e.left<0||e.left+i>u)if(e.maxWidth=Math.min(i,u),"middle"===a.horizontal)e.left=t[o.horizontal]>u/2?Math.max(0,u-i):0;else if(t[o.horizontal]>u/2){const n=Math.min(u,"middle"===o.horizontal?t.middle:o.horizontal===a.horizontal?t.right:t.left);e.maxWidth=Math.min(i,n),e.left=Math.max(0,n-e.maxWidth)}else e.left=Math.max(0,"middle"===o.horizontal?t.middle:o.horizontal===a.horizontal?t.left:t.right),e.maxWidth=Math.min(i,u-e.left)}["left","middle","right"].forEach((e=>{horizontalPos[`${e}#ltr`]=e,horizontalPos[`${e}#rtl`]=e}));var buf,QMenu_default=createComponent({name:"QMenu",inheritAttrs:!1,props:{...useAnchorProps,...useModelToggleProps,...useDarkProps,...useTransitionProps,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:validatePosition},self:{type:String,validator:validatePosition},offset:{type:Array,validator:validateOffset},scrollTarget:scrollTargetProp,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...useModelToggleEmits,"click","escapeKey"],setup(e,{slots:t,emit:n,attrs:o}){let a,r,i,l=null;const s=getCurrentInstance(),{proxy:u}=s,{$q:c}=u,d=ref(null),p=ref(!1),f=computed((()=>!0!==e.persistent&&!0!==e.noRouteDismiss)),v=use_dark_default(e,c),{registerTick:m,removeTick:g}=use_tick_default(),{registerTimeout:_}=use_timeout_default(),{transitionProps:b,transitionStyle:y}=use_transition_default(e),{localScrollTarget:w,changeScrollEvent:C,unconfigureScrollTarget:S}=use_scroll_target_default(e,R),{anchorEl:k,canShow:x}=use_anchor_default({showing:p}),{hide:M}=use_model_toggle_default({showing:p,canShow:x,handleShow:function(t){if(l=!1===e.noRefocus?document.activeElement:null,addFocusout(V),T(),R(),a=void 0,void 0!==t&&(e.touchPosition||e.contextMenu)){const e=position(t);if(void 0!==e.left){const{top:t,left:n}=k.value.getBoundingClientRect();a={left:e.left-n,top:e.top-t}}}void 0===r&&(r=watch((()=>c.screen.width+"|"+c.screen.height+"|"+e.self+"|"+e.anchor+"|"+c.lang.rtl),F));!0!==e.noFocus&&document.activeElement.blur();m((()=>{F(),!0!==e.noFocus&&A()})),_((()=>{!0===c.platform.is.ios&&(i=e.autoClose,d.value.click()),F(),T(!0),n("show",t)}),e.transitionDuration)},handleHide:function(t){g(),$(),I(!0),null===l||void 0!==t&&!0===t.qClickOutside||(((t&&0===t.type.indexOf("key")?l.closest('[tabindex]:not([tabindex^="-"])'):void 0)||l).focus(),l=null);_((()=>{$(!0),n("hide",t)}),e.transitionDuration)},hideOnRouteChange:f,processOnMount:!0}),{showPortal:T,hidePortal:$,renderPortal:E}=use_portal_default(s,d,(function(){return h(Transition$1,b.value,(()=>!0===p.value?h("div",{role:"menu",...o,ref:d,tabindex:-1,class:["q-menu q-position-engine scroll"+B.value,o.class],style:[o.style,y.value],...q.value},hSlot(t.default)):null))}),"menu"),N={anchorEl:k,innerRef:d,onClickOutside(t){if(!0!==e.persistent&&!0===p.value)return M(t),("touchstart"===t.type||t.target.classList.contains("q-dialog__backdrop"))&&stopAndPrevent(t),!0}},L=computed((()=>parsePosition(e.anchor||(!0===e.cover?"center middle":"bottom start"),c.lang.rtl))),D=computed((()=>!0===e.cover?L.value:parsePosition(e.self||"top start",c.lang.rtl))),B=computed((()=>(!0===e.square?" q-menu--square":"")+(!0===v.value?" q-menu--dark q-dark":""))),q=computed((()=>!0===e.autoClose?{onClick:O}:{})),P=computed((()=>!0===p.value&&!0!==e.persistent));function A(){addFocusFn((()=>{let e=d.value;e&&!0!==e.contains(document.activeElement)&&(e=e.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||e.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||e.querySelector("[autofocus], [data-autofocus]")||e,e.focus({preventScroll:!0}))}))}function I(e){a=void 0,void 0!==r&&(r(),r=void 0),!0!==e&&!0!==p.value||(removeFocusout(V),S(),removeClickOutside(N),removeEscapeKey(z)),!0!==e&&(l=null)}function R(){null===k.value&&void 0===e.scrollTarget||(w.value=getScrollTarget(k.value,e.scrollTarget),C(w.value,F))}function O(e){!0!==i?(closePortalMenus(u,e),n("click",e)):i=!1}function V(t){!0===P.value&&!0!==e.noFocus&&!0!==childHasFocus(d.value,t.target)&&A()}function z(e){n("escapeKey"),M(e)}function F(){setPosition({targetEl:d.value,offset:e.offset,anchorEl:k.value,anchorOrigin:L.value,selfOrigin:D.value,absoluteOffset:a,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}return watch(P,(e=>{!0===e?(addEscapeKey(z),addClickOutside(N)):(removeEscapeKey(z),removeClickOutside(N))})),onBeforeUnmount(I),Object.assign(u,{focus:A,updatePosition:F}),E}}),bufIdx=0,hexBytes=new Array(256);for(let e=0;e<256;e++)hexBytes[e]=(e+256).toString(16).substring(1);var randomBytes=(()=>{const e="undefined"!=typeof crypto?crypto:"undefined"!=typeof window?window.crypto||window.msCrypto:void 0;if(void 0!==e){if(void 0!==e.randomBytes)return e.randomBytes;if(void 0!==e.getRandomValues)return t=>{const n=new Uint8Array(t);return e.getRandomValues(n),n}}return e=>{const t=[];for(let n=e;n>0;n--)t.push(Math.floor(256*Math.random()));return t}})(),BUFFER_SIZE=4096;function uid_default(){(void 0===buf||bufIdx+16>BUFFER_SIZE)&&(bufIdx=0,buf=randomBytes(BUFFER_SIZE));const e=Array.prototype.slice.call(buf,bufIdx,bufIdx+=16);return e[6]=15&e[6]|64,e[8]=63&e[8]|128,hexBytes[e[0]]+hexBytes[e[1]]+hexBytes[e[2]]+hexBytes[e[3]]+"-"+hexBytes[e[4]]+hexBytes[e[5]]+"-"+hexBytes[e[6]]+hexBytes[e[7]]+"-"+hexBytes[e[8]]+hexBytes[e[9]]+"-"+hexBytes[e[10]]+hexBytes[e[11]]+hexBytes[e[12]]+hexBytes[e[13]]+hexBytes[e[14]]+hexBytes[e[15]]}function parseValue(e){return null==e?null:e}function getId(e,t){return null==e?!0===t?`f_${uid_default()}`:null:e}function use_id_default({getValue:e,required:t=!0}={}){if(!0===isRuntimeSsrPreHydration.value){const n=ref(void 0!==e?parseValue(e()):null);return!0===t&&null===n.value&&onMounted((()=>{n.value=`f_${uid_default()}`})),void 0!==e&&watch(e,(e=>{n.value=getId(e,t)})),n}return void 0!==e?computed((()=>getId(e(),t))):ref(`f_${uid_default()}`)}var btnPropsList=Object.keys(nonRoundBtnProps);function passBtnProps(e){return btnPropsList.reduce(((t,n)=>{const o=e[n];return void 0!==o&&(t[n]=o),t}),{})}var QBtnDropdown_default=createComponent({name:"QBtnDropdown",props:{...nonRoundBtnProps,...useTransitionProps,modelValue:Boolean,split:Boolean,dropdownIcon:String,contentClass:[Array,String,Object],contentStyle:[Array,String,Object],cover:Boolean,persistent:Boolean,noRouteDismiss:Boolean,autoClose:Boolean,menuAnchor:{type:String,default:"bottom end"},menuSelf:{type:String,default:"top end"},menuOffset:Array,disableMainBtn:Boolean,disableDropdown:Boolean,noIconAnimation:Boolean,toggleAriaLabel:String},emits:["update:modelValue","click","beforeShow","show","beforeHide","hide"],setup(e,{slots:t,emit:n}){const{proxy:o}=getCurrentInstance(),a=ref(e.modelValue),r=ref(null),i=use_id_default(),l=computed((()=>{const t={"aria-expanded":!0===a.value?"true":"false","aria-haspopup":"true","aria-controls":i.value,"aria-label":e.toggleAriaLabel||o.$q.lang.label[!0===a.value?"collapse":"expand"](e.label)};return(!0===e.disable||!1===e.split&&!0===e.disableMainBtn||!0===e.disableDropdown)&&(t["aria-disabled"]="true"),t})),s=computed((()=>"q-btn-dropdown__arrow"+(!0===a.value&&!1===e.noIconAnimation?" rotate-180":"")+(!1===e.split?" q-btn-dropdown__arrow-container":""))),u=computed((()=>getBtnDesignAttr(e))),c=computed((()=>passBtnProps(e)));function d(e){a.value=!0,n("beforeShow",e)}function p(e){n("show",e),n("update:modelValue",!0)}function f(e){a.value=!1,n("beforeHide",e)}function v(e){n("hide",e),n("update:modelValue",!1)}function m(e){n("click",e)}function g(e){stop$1(e),b(),n("click",e)}function _(e){null!==r.value&&r.value.show(e)}function b(e){null!==r.value&&r.value.hide(e)}return watch((()=>e.modelValue),(e=>{null!==r.value&&r.value[e?"show":"hide"]()})),watch((()=>e.split),b),Object.assign(o,{show:_,hide:b,toggle:function(e){null!==r.value&&r.value.toggle(e)}}),onMounted((()=>{!0===e.modelValue&&_()})),()=>{const n=[h(QIcon_default,{class:s.value,name:e.dropdownIcon||o.$q.iconSet.arrow.dropdown})];return!0!==e.disableDropdown&&n.push(h(QMenu_default,{ref:r,id:i.value,class:e.contentClass,style:e.contentStyle,cover:e.cover,fit:!0,persistent:e.persistent,noRouteDismiss:e.noRouteDismiss,autoClose:e.autoClose,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,separateClosePopup:!0,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,onBeforeShow:d,onShow:p,onBeforeHide:f,onHide:v},t.default)),!1===e.split?h(QBtn_default,{class:"q-btn-dropdown q-btn-dropdown--simple",...c.value,...l.value,disable:!0===e.disable||!0===e.disableMainBtn,noWrap:!0,round:!1,onClick:m},{default:()=>hSlot(t.label,[]).concat(n),loading:t.loading}):h(QBtnGroup_default,{class:"q-btn-dropdown q-btn-dropdown--split no-wrap q-btn-item",rounded:e.rounded,square:e.square,...u.value,glossy:e.glossy,stretch:e.stretch},(()=>[h(QBtn_default,{class:"q-btn-dropdown--current",...c.value,disable:!0===e.disable||!0===e.disableMainBtn,noWrap:!0,round:!1,onClick:g},{default:t.label,loading:t.loading}),h(QBtn_default,{class:"q-btn-dropdown__arrow-container q-anchor--skip",...l.value,...u.value,disable:!0===e.disable||!0===e.disableDropdown,rounded:e.rounded,color:e.color,textColor:e.textColor,dense:e.dense,size:e.size,padding:e.padding,ripple:e.ripple},(()=>n))]))}}}),useFormProps={name:String};function useFormAttrs(e){return computed((()=>({type:"hidden",name:e.name,value:e.modelValue})))}function useFormInject(e={}){return(t,n,o)=>{t[n](h("input",{class:"hidden"+(o||""),...e.value}))}}function useFormInputNameAttr(e){return computed((()=>e.name||e.for))}createComponent({name:"QBtnToggle",props:{...useFormProps,modelValue:{required:!0},options:{type:Array,required:!0,validator:e=>e.every((e=>("label"in e||"icon"in e||"slot"in e)&&"value"in e))},color:String,textColor:String,toggleColor:{type:String,default:"primary"},toggleTextColor:String,outline:Boolean,flat:Boolean,unelevated:Boolean,rounded:Boolean,push:Boolean,glossy:Boolean,size:String,padding:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,readonly:Boolean,disable:Boolean,stack:Boolean,stretch:Boolean,spread:Boolean,clearable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","clear","click"],setup(e,{slots:t,emit:n}){const o=computed((()=>void 0!==e.options.find((t=>t.value===e.modelValue)))),a=useFormInject(computed((()=>({type:"hidden",name:e.name,value:e.modelValue})))),r=computed((()=>getBtnDesignAttr(e))),i=computed((()=>({rounded:e.rounded,dense:e.dense,...r.value}))),l=computed((()=>e.options.map(((t,o)=>{const{attrs:a,value:r,slot:l,...u}=t;return{slot:l,props:{key:o,"aria-pressed":r===e.modelValue?"true":"false",...a,...u,...i.value,disable:!0===e.disable||!0===u.disable,color:r===e.modelValue?s(u,"toggleColor"):s(u,"color"),textColor:r===e.modelValue?s(u,"toggleTextColor"):s(u,"textColor"),noCaps:!0===s(u,"noCaps"),noWrap:!0===s(u,"noWrap"),size:s(u,"size"),padding:s(u,"padding"),ripple:s(u,"ripple"),stack:!0===s(u,"stack"),stretch:!0===s(u,"stretch"),onClick(o){!function(t,o,a){!0!==e.readonly&&(e.modelValue===t?!0===e.clearable&&(n("update:modelValue",null,null),n("clear")):n("update:modelValue",t,o),n("click",a))}(r,t,o)}}}}))));function s(t,n){return void 0===t[n]?e[n]:t[n]}function u(){const n=l.value.map((e=>h(QBtn_default,e.props,void 0!==e.slot?t[e.slot]:void 0)));return void 0!==e.name&&!0!==e.disable&&!0===o.value&&a(n,"push"),hMergeSlot(t.default,n)}return()=>h(QBtnGroup_default,{class:"q-btn-toggle",...r.value,rounded:e.rounded,stretch:e.stretch,glossy:e.glossy,spread:e.spread},u)}});var QCard_default=createComponent({name:"QCard",props:{...useDarkProps,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=getCurrentInstance(),o=use_dark_default(e,n),a=computed((()=>"q-card"+(!0===o.value?" q-card--dark q-dark":"")+(!0===e.bordered?" q-card--bordered":"")+(!0===e.square?" q-card--square no-border-radius":"")+(!0===e.flat?" q-card--flat no-shadow":"")));return()=>h(e.tag,{class:a.value},hSlot(t.default))}}),QCardSection_default=createComponent({name:"QCardSection",props:{tag:{type:String,default:"div"},horizontal:Boolean},setup(e,{slots:t}){const n=computed((()=>"q-card__section q-card__section--"+(!0===e.horizontal?"horiz row no-wrap":"vert")));return()=>h(e.tag,{class:n.value},hSlot(t.default))}}),QCardActions_default=createComponent({name:"QCardActions",props:{...useAlignProps,vertical:Boolean},setup(e,{slots:t}){const n=use_align_default(e),o=computed((()=>`q-card__actions ${n.value} q-card__actions--${!0===e.vertical?"vert column":"horiz row"}`));return()=>h("div",{class:o.value},hSlot(t.default))}}),modifiersAll={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},directionList=Object.keys(modifiersAll);function getModifierDirections(e){const t={};for(const n of directionList)!0===e[n]&&(t[n]=!0);return 0===Object.keys(t).length?modifiersAll:(!0===t.horizontal?t.left=t.right=!0:!0===t.left&&!0===t.right&&(t.horizontal=!0),!0===t.vertical?t.up=t.down=!0:!0===t.up&&!0===t.down&&(t.vertical=!0),!0===t.horizontal&&!0===t.vertical&&(t.all=!0),t)}modifiersAll.all=!0;var avoidNodeNamesList=["INPUT","TEXTAREA"];function shouldStart(e,t){return void 0===t.event&&void 0!==e.target&&!0!==e.target.draggable&&"function"==typeof t.handler&&!1===avoidNodeNamesList.includes(e.target.nodeName.toUpperCase())&&(void 0===e.qClonedBy||-1===e.qClonedBy.indexOf(t.uid))}function parseArg(e){const t=[.06,6,50];return"string"==typeof e&&e.length&&e.split(":").forEach(((e,n)=>{const o=parseFloat(e);o&&(t[n]=o)})),t}var TouchSwipe_default=createDirective({name:"touch-swipe",beforeMount(e,{value:t,arg:n,modifiers:o}){if(!0!==o.mouse&&!0!==client.has.touch)return;const a=!0===o.mouseCapture?"Capture":"",r={handler:t,sensitivity:parseArg(n),direction:getModifierDirections(o),noop:noop,mouseStart(e){shouldStart(e,r)&&leftClick(e)&&(addEvt(r,"temp",[[document,"mousemove","move",`notPassive${a}`],[document,"mouseup","end","notPassiveCapture"]]),r.start(e,!0))},touchStart(e){if(shouldStart(e,r)){const t=e.target;addEvt(r,"temp",[[t,"touchmove","move","notPassiveCapture"],[t,"touchcancel","end","notPassiveCapture"],[t,"touchend","end","notPassiveCapture"]]),r.start(e)}},start(t,n){!0===client.is.firefox&&preventDraggable(e,!0);const o=position(t);r.event={x:o.left,y:o.top,time:Date.now(),mouse:!0===n,dir:!1}},move(e){if(void 0===r.event)return;if(!1!==r.event.dir)return void stopAndPrevent(e);const t=Date.now()-r.event.time;if(0===t)return;const n=position(e),o=n.left-r.event.x,a=Math.abs(o),i=n.top-r.event.y,l=Math.abs(i);if(!0!==r.event.mouse){if(a<r.sensitivity[1]&&l<r.sensitivity[1])return void r.end(e)}else{if(""!==window.getSelection().toString())return void r.end(e);if(a<r.sensitivity[2]&&l<r.sensitivity[2])return}const s=a/t,u=l/t;!0===r.direction.vertical&&a<l&&a<100&&u>r.sensitivity[0]&&(r.event.dir=i<0?"up":"down"),!0===r.direction.horizontal&&a>l&&l<100&&s>r.sensitivity[0]&&(r.event.dir=o<0?"left":"right"),!0===r.direction.up&&a<l&&i<0&&a<100&&u>r.sensitivity[0]&&(r.event.dir="up"),!0===r.direction.down&&a<l&&i>0&&a<100&&u>r.sensitivity[0]&&(r.event.dir="down"),!0===r.direction.left&&a>l&&o<0&&l<100&&s>r.sensitivity[0]&&(r.event.dir="left"),!0===r.direction.right&&a>l&&o>0&&l<100&&s>r.sensitivity[0]&&(r.event.dir="right"),!1!==r.event.dir?(stopAndPrevent(e),!0===r.event.mouse&&(document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),clearSelection(),r.styleCleanup=e=>{r.styleCleanup=void 0,document.body.classList.remove("non-selectable");const t=()=>{document.body.classList.remove("no-pointer-events--children")};!0===e?setTimeout(t,50):t()}),r.handler({evt:e,touch:!0!==r.event.mouse,mouse:r.event.mouse,direction:r.event.dir,duration:t,distance:{x:a,y:l}})):r.end(e)},end(t){void 0!==r.event&&(cleanEvt(r,"temp"),!0===client.is.firefox&&preventDraggable(e,!1),void 0!==r.styleCleanup&&r.styleCleanup(!0),void 0!==t&&!1!==r.event.dir&&stopAndPrevent(t),r.event=void 0)}};if(e.__qtouchswipe=r,!0===o.mouse){const t=!0===o.mouseCapture||!0===o.mousecapture?"Capture":"";addEvt(r,"main",[[e,"mousedown","mouseStart",`passive${t}`]])}!0===client.has.touch&&addEvt(r,"main",[[e,"touchstart","touchStart","passive"+(!0===o.capture?"Capture":"")],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const n=e.__qtouchswipe;void 0!==n&&(t.oldValue!==t.value&&("function"!=typeof t.value&&n.end(),n.handler=t.value),n.direction=getModifierDirections(t.modifiers))},beforeUnmount(e){const t=e.__qtouchswipe;void 0!==t&&(cleanEvt(t,"main"),cleanEvt(t,"temp"),!0===client.is.firefox&&preventDraggable(e,!1),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchswipe)}});function use_render_cache_default(){let e=Object.create(null);return{getCache:(t,n)=>void 0===e[t]?e[t]="function"==typeof n?n():n:e[t],setCache(t,n){e[t]=n},hasCache:t=>Object.hasOwnProperty.call(e,t),clearCache(t){void 0!==t?delete e[t]:e=Object.create(null)}}}var usePanelChildProps={name:{required:!0},disable:Boolean},PanelWrapper={setup:(e,{slots:t})=>()=>h("div",{class:"q-panel scroll",role:"tabpanel"},hSlot(t.default))},usePanelProps={modelValue:{required:!0},animated:Boolean,infinite:Boolean,swipeable:Boolean,vertical:Boolean,transitionPrev:String,transitionNext:String,transitionDuration:{type:[String,Number],default:300},keepAlive:Boolean,keepAliveInclude:[String,Array,RegExp],keepAliveExclude:[String,Array,RegExp],keepAliveMax:Number},usePanelEmits=["update:modelValue","beforeTransition","transition"];function use_panel_default(){const{props:e,emit:t,proxy:n}=getCurrentInstance(),{getCache:o}=use_render_cache_default(),{registerTimeout:a}=use_timeout_default();let r,i;const l=ref(null),s={value:null};function u(t){const o=!0===e.vertical?"up":"left";k((!0===n.$q.lang.rtl?-1:1)*(t.direction===o?1:-1))}const c=computed((()=>[[TouchSwipe_default,u,void 0,{horizontal:!0!==e.vertical,vertical:e.vertical,mouse:!0}]])),d=computed((()=>e.transitionPrev||"slide-"+(!0===e.vertical?"down":"right"))),p=computed((()=>e.transitionNext||"slide-"+(!0===e.vertical?"up":"left"))),f=computed((()=>`--q-transition-duration: ${e.transitionDuration}ms`)),v=computed((()=>"string"==typeof e.modelValue||"number"==typeof e.modelValue?e.modelValue:String(e.modelValue))),m=computed((()=>({include:e.keepAliveInclude,exclude:e.keepAliveExclude,max:e.keepAliveMax}))),g=computed((()=>void 0!==e.keepAliveInclude||void 0!==e.keepAliveExclude));function _(){k(1)}function b(){k(-1)}function y(e){t("update:modelValue",e)}function w(e){return null!=e&&""!==e}function C(e){return r.findIndex((t=>t.props.name===e&&""!==t.props.disable&&!0!==t.props.disable))}function S(t){const n=0!==t&&!0===e.animated&&-1!==s.value?"q-transition--"+(-1===t?d.value:p.value):null;l.value!==n&&(l.value=n)}function k(n,o=s.value){let a=o+n;for(;-1!==a&&a<r.length;){const e=r[a];if(void 0!==e&&""!==e.props.disable&&!0!==e.props.disable)return S(n),i=!0,t("update:modelValue",e.props.name),void setTimeout((()=>{i=!1}));a+=n}!0===e.infinite&&0!==r.length&&-1!==o&&o!==r.length&&k(n,-1===n?r.length:-1)}function x(){const t=C(e.modelValue);return s.value!==t&&(s.value=t),!0}function M(){const t=!0===w(e.modelValue)&&x()&&r[s.value];return!0===e.keepAlive?[h(KeepAlive,m.value,[h(!0===g.value?o(v.value,(()=>({...PanelWrapper,name:v.value}))):PanelWrapper,{key:v.value,style:f.value},(()=>t))])]:[h("div",{class:"q-panel scroll",style:f.value,key:v.value,role:"tabpanel"},[t])]}return watch((()=>e.modelValue),((n,o)=>{const r=!0===w(n)?C(n):-1;!0!==i&&S(-1===r?0:r<C(o)?-1:1),s.value!==r&&(s.value=r,t("beforeTransition",n,o),a((()=>{t("transition",n,o)}),e.transitionDuration))})),Object.assign(n,{next:_,previous:b,goTo:y}),{panelIndex:s,panelDirectives:c,updatePanelsList:function(e){return r=getNormalizedVNodes(hSlot(e.default,[])).filter((e=>null!==e.props&&void 0===e.props.slot&&!0===w(e.props.name))),r.length},updatePanelIndex:x,getPanelContent:function(){if(0!==r.length)return!0===e.animated?[h(Transition$1,{name:l.value},M)]:M()},getEnabledPanels:function(){return r.filter((e=>""!==e.props.disable&&!0!==e.props.disable))},getPanels:function(){return r},isValidPanelName:w,keepAliveProps:m,needsUniqueKeepAliveWrapper:g,goToPanelByOffset:k,goToPanel:y,nextPanel:_,previousPanel:b}}var counter=0,useFullscreenProps={fullscreen:Boolean,noRouteFullscreenExit:Boolean},useFullscreenEmits=["update:fullscreen","fullscreen"];function use_fullscreen_default(){const e=getCurrentInstance(),{props:t,emit:n,proxy:o}=e;let a,r;const i=ref(!1);function l(){!0===i.value?u():s()}function s(){!0!==i.value&&(i.value=!0,r=o.$el.parentNode,r.replaceChild(a,o.$el),document.body.appendChild(o.$el),1===++counter&&document.body.classList.add("q-body--fullscreen-mixin"))}function u(){!0===i.value&&(r.replaceChild(o.$el,a),i.value=!1,0===(counter=Math.max(0,counter-1))&&(document.body.classList.remove("q-body--fullscreen-mixin"),void 0!==o.$el.scrollIntoView&&setTimeout((()=>{o.$el.scrollIntoView()}))))}return!0===vmHasRouter(e)&&watch((()=>o.$route.fullPath),(()=>{!0!==t.noRouteFullscreenExit&&u()})),watch((()=>t.fullscreen),(e=>{i.value!==e&&l()})),watch(i,(e=>{n("update:fullscreen",e),n("fullscreen",e)})),onBeforeMount((()=>{a=document.createElement("span")})),onMounted((()=>{!0===t.fullscreen&&s()})),onBeforeUnmount(u),Object.assign(o,{toggleFullscreen:l,setFullscreen:s,exitFullscreen:u}),{inFullscreen:i,toggleFullscreen:l}}var navigationPositionOptions=["top","right","bottom","left"],controlTypeOptions=["regular","flat","outline","push","unelevated"];function use_refocus_target_default(e,t){const n=ref(null);return{refocusTargetEl:computed((()=>!0===e.disable?null:h("span",{ref:n,class:"no-outline",tabindex:-1}))),refocusTarget:function(e){const o=t.value;void 0!==e&&0===e.type.indexOf("key")?null!==o&&document.activeElement!==o&&!0===o.contains(document.activeElement)&&o.focus():null!==n.value&&(void 0===e||null!==o&&!0===o.contains(e.target))&&n.value.focus()}}}createComponent({name:"QCarousel",props:{...useDarkProps,...usePanelProps,...useFullscreenProps,transitionPrev:{type:String,default:"fade"},transitionNext:{type:String,default:"fade"},height:String,padding:Boolean,controlColor:String,controlTextColor:String,controlType:{type:String,validator:e=>controlTypeOptions.includes(e),default:"flat"},autoplay:[Number,Boolean],arrows:Boolean,prevIcon:String,nextIcon:String,navigation:Boolean,navigationPosition:{type:String,validator:e=>navigationPositionOptions.includes(e)},navigationIcon:String,navigationActiveIcon:String,thumbnails:Boolean},emits:[...useFullscreenEmits,...usePanelEmits],setup(e,{slots:t}){const{proxy:{$q:n}}=getCurrentInstance(),o=use_dark_default(e,n);let a,r=null;const{updatePanelsList:i,getPanelContent:l,panelDirectives:s,goToPanel:u,previousPanel:c,nextPanel:d,getEnabledPanels:p,panelIndex:f}=use_panel_default(),{inFullscreen:v}=use_fullscreen_default(),m=computed((()=>!0!==v.value&&void 0!==e.height?{height:e.height}:{})),g=computed((()=>!0===e.vertical?"vertical":"horizontal")),_=computed((()=>e.navigationPosition||(!0===e.vertical?"right":"bottom"))),b=computed((()=>`q-carousel q-panel-parent q-carousel--with${!0===e.padding?"":"out"}-padding`+(!0===v.value?" fullscreen":"")+(!0===o.value?" q-carousel--dark q-dark":"")+(!0===e.arrows?` q-carousel--arrows-${g.value}`:"")+(!0===e.navigation?` q-carousel--navigation-${_.value}`:""))),y=computed((()=>{const t=[e.prevIcon||n.iconSet.carousel[!0===e.vertical?"up":"left"],e.nextIcon||n.iconSet.carousel[!0===e.vertical?"down":"right"]];return!1===e.vertical&&!0===n.lang.rtl?t.reverse():t})),w=computed((()=>e.navigationIcon||n.iconSet.carousel.navigationIcon)),C=computed((()=>e.navigationActiveIcon||w.value)),S=computed((()=>({color:e.controlColor,textColor:e.controlTextColor,round:!0,[e.controlType]:!0,dense:!0})));function k(){const t=!0===isNumber(e.autoplay)?Math.abs(e.autoplay):5e3;null!==r&&clearTimeout(r),r=setTimeout((()=>{r=null,t>=0?d():c()}),t)}function x(t,n){return h("div",{class:`q-carousel__control q-carousel__navigation no-wrap absolute flex q-carousel__navigation--${t} q-carousel__navigation--${_.value}`+(void 0!==e.controlColor?` text-${e.controlColor}`:"")},[h("div",{class:"q-carousel__navigation-inner flex flex-center no-wrap"},p().map(n))])}return watch((()=>e.modelValue),(()=>{e.autoplay&&k()})),watch((()=>e.autoplay),(e=>{e?k():null!==r&&(clearTimeout(r),r=null)})),onMounted((()=>{e.autoplay&&k()})),onBeforeUnmount((()=>{null!==r&&clearTimeout(r)})),()=>(a=i(t),h("div",{class:b.value,style:m.value},[hDir("div",{class:"q-carousel__slides-container"},l(),"sl-cont",e.swipeable,(()=>s.value))].concat(function(){const n=[];if(!0===e.navigation){const e=void 0!==t["navigation-icon"]?t["navigation-icon"]:e=>h(QBtn_default,{key:"nav"+e.name,class:`q-carousel__navigation-icon q-carousel__navigation-icon--${!0===e.active?"":"in"}active`,...e.btnProps,onClick:e.onClick}),o=a-1;n.push(x("buttons",((t,n)=>{const a=t.props.name,r=f.value===n;return e({index:n,maxIndex:o,name:a,active:r,btnProps:{icon:!0===r?C.value:w.value,size:"sm",...S.value},onClick:()=>{u(a)}})})))}else if(!0===e.thumbnails){const t=void 0!==e.controlColor?` text-${e.controlColor}`:"";n.push(x("thumbnails",(n=>{const o=n.props;return h("img",{key:"tmb#"+o.name,class:`q-carousel__thumbnail q-carousel__thumbnail--${o.name===e.modelValue?"":"in"}active`+t,src:o.imgSrc||o["img-src"],onClick:()=>{u(o.name)}})})))}return!0===e.arrows&&f.value>=0&&((!0===e.infinite||f.value>0)&&n.push(h("div",{key:"prev",class:`q-carousel__control q-carousel__arrow q-carousel__prev-arrow q-carousel__prev-arrow--${g.value} absolute flex flex-center`},[h(QBtn_default,{icon:y.value[0],...S.value,onClick:c})])),(!0===e.infinite||f.value<a-1)&&n.push(h("div",{key:"next",class:`q-carousel__control q-carousel__arrow q-carousel__next-arrow q-carousel__next-arrow--${g.value} absolute flex flex-center`},[h(QBtn_default,{icon:y.value[1],...S.value,onClick:d})]))),hMergeSlot(t.control,n)}())))}}),createComponent({name:"QCarouselSlide",props:{...usePanelChildProps,imgSrc:String},setup(e,{slots:t}){const n=computed((()=>e.imgSrc?{backgroundImage:`url("${e.imgSrc}")`}:{}));return()=>h("div",{class:"q-carousel__slide",style:n.value},hSlot(t.default))}}),createComponent({name:"QCarouselControl",props:{position:{type:String,default:"bottom-right",validator:e=>["top-right","top-left","bottom-right","bottom-left","top","right","bottom","left"].includes(e)},offset:{type:Array,default:()=>[18,18],validator:e=>2===e.length}},setup(e,{slots:t}){const n=computed((()=>`q-carousel__control absolute absolute-${e.position}`)),o=computed((()=>({margin:`${e.offset[1]}px ${e.offset[0]}px`})));return()=>h("div",{class:n.value,style:o.value},hSlot(t.default))}}),createComponent({name:"QChatMessage",props:{sent:Boolean,label:String,bgColor:String,textColor:String,name:String,avatar:String,text:Array,stamp:String,size:String,labelHtml:Boolean,nameHtml:Boolean,textHtml:Boolean,stampHtml:Boolean},setup(e,{slots:t}){const n=computed((()=>!0===e.sent?"sent":"received")),o=computed((()=>`q-message-text-content q-message-text-content--${n.value}`+(void 0!==e.textColor?` text-${e.textColor}`:""))),a=computed((()=>`q-message-text q-message-text--${n.value}`+(void 0!==e.bgColor?` text-${e.bgColor}`:""))),r=computed((()=>"q-message-container row items-end no-wrap"+(!0===e.sent?" reverse":""))),i=computed((()=>void 0!==e.size?`col-${e.size}`:"")),l=computed((()=>({msg:!0===e.textHtml?"innerHTML":"textContent",stamp:!0===e.stampHtml?"innerHTML":"textContent",name:!0===e.nameHtml?"innerHTML":"textContent",label:!0===e.labelHtml?"innerHTML":"textContent"})));function s(n,r){const i=!0===r?n.length>1?e=>e:e=>h("div",[e]):e=>h("div",{[l.value.msg]:e});return n.map(((n,r)=>{return h("div",{key:r,class:a.value},[h("div",{class:o.value},(s=i(n),void 0!==t.stamp?[s,h("div",{class:"q-message-stamp"},t.stamp())]:e.stamp?[s,h("div",{class:"q-message-stamp",[l.value.stamp]:e.stamp})]:[s]))]);var s}))}return()=>{const o=[];void 0!==t.avatar?o.push(t.avatar()):void 0!==e.avatar&&o.push(h("img",{class:`q-message-avatar q-message-avatar--${n.value}`,src:e.avatar,"aria-hidden":"true"}));const a=[];void 0!==t.name?a.push(h("div",{class:`q-message-name q-message-name--${n.value}`},t.name())):void 0!==e.name&&a.push(h("div",{class:`q-message-name q-message-name--${n.value}`,[l.value.name]:e.name})),void 0!==t.default?a.push(s(getNormalizedVNodes(t.default()),!0)):void 0!==e.text&&a.push(s(e.text)),o.push(h("div",{class:i.value},a));const u=[];return void 0!==t.label?u.push(h("div",{class:"q-message-label"},t.label())):void 0!==e.label&&u.push(h("div",{class:"q-message-label",[l.value.label]:e.label})),u.push(h("div",{class:r.value},o)),h("div",{class:`q-message q-message-${n.value}`},u)}}});var option_sizes_default={xs:30,sm:35,md:40,lg:50,xl:60},useCheckboxProps={...useDarkProps,...useSizeProps,...useFormProps,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:e=>"tf"===e||"ft"===e},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},useCheckboxEmits=["update:modelValue"];function use_checkbox_default(e,t){const{props:n,slots:o,emit:a,proxy:r}=getCurrentInstance(),{$q:i}=r,l=use_dark_default(n,i),s=ref(null),{refocusTargetEl:u,refocusTarget:c}=use_refocus_target_default(n,s),d=use_size_default(n,option_sizes_default),p=computed((()=>void 0!==n.val&&Array.isArray(n.modelValue))),f=computed((()=>{const e=toRaw(n.val);return!0===p.value?n.modelValue.findIndex((t=>toRaw(t)===e)):-1})),v=computed((()=>!0===p.value?-1!==f.value:toRaw(n.modelValue)===toRaw(n.trueValue))),m=computed((()=>!0===p.value?-1===f.value:toRaw(n.modelValue)===toRaw(n.falseValue))),g=computed((()=>!1===v.value&&!1===m.value)),_=computed((()=>!0===n.disable?-1:n.tabindex||0)),b=computed((()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(!0===n.disable?" disabled":"")+(!0===l.value?` q-${e}--dark`:"")+(!0===n.dense?` q-${e}--dense`:"")+(!0===n.leftLabel?" reverse":""))),y=computed((()=>{const t=!0===v.value?"truthy":!0===m.value?"falsy":"indet",o=void 0===n.color||!0!==n.keepColor&&("toggle"===e?!0!==v.value:!0===m.value)?"":` text-${n.color}`;return`q-${e}__inner relative-position non-selectable q-${e}__inner--${t}${o}`})),w=useFormInject(computed((()=>{const e={type:"checkbox"};return void 0!==n.name&&Object.assign(e,{".checked":v.value,"^checked":!0===v.value?"checked":void 0,name:n.name,value:!0===p.value?n.val:n.trueValue}),e}))),C=computed((()=>{const t={tabindex:_.value,role:"toggle"===e?"switch":"checkbox","aria-label":n.label,"aria-checked":!0===g.value?"mixed":!0===v.value?"true":"false"};return!0===n.disable&&(t["aria-disabled"]="true"),t}));function S(e){void 0!==e&&(stopAndPrevent(e),c(e)),!0!==n.disable&&a("update:modelValue",function(){if(!0===p.value){if(!0===v.value){const e=n.modelValue.slice();return e.splice(f.value,1),e}return n.modelValue.concat([n.val])}if(!0===v.value){if("ft"!==n.toggleOrder||!1===n.toggleIndeterminate)return n.falseValue}else{if(!0!==m.value)return"ft"!==n.toggleOrder?n.trueValue:n.falseValue;if("ft"===n.toggleOrder||!1===n.toggleIndeterminate)return n.trueValue}return n.indeterminateValue}(),e)}function k(e){13!==e.keyCode&&32!==e.keyCode||stopAndPrevent(e)}function x(e){13!==e.keyCode&&32!==e.keyCode||S(e)}const M=t(v,g);return Object.assign(r,{toggle:S}),()=>{const t=M();!0!==n.disable&&w(t,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const a=[h("div",{class:y.value,style:d.value,"aria-hidden":"true"},t)];null!==u.value&&a.push(u.value);const r=void 0!==n.label?hMergeSlot(o.default,[n.label]):hSlot(o.default);return void 0!==r&&a.push(h("div",{class:`q-${e}__label q-anchor--skip`},r)),h("div",{ref:s,class:b.value,...C.value,onClick:S,onKeydown:k,onKeyup:x},a)}}var createBgNode=()=>h("div",{key:"svg",class:"q-checkbox__bg absolute"},[h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),QCheckbox_default=createComponent({name:"QCheckbox",props:useCheckboxProps,emits:useCheckboxEmits,setup(e){const t=createBgNode();return use_checkbox_default("checkbox",(function(n,o){const a=computed((()=>(!0===n.value?e.checkedIcon:!0===o.value?e.indeterminateIcon:e.uncheckedIcon)||null));return()=>null!==a.value?[h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[h(QIcon_default,{class:"q-checkbox__icon",name:a.value})])]:[t]}))}}),defaultSizes2={xs:8,sm:10,md:14,lg:20,xl:24},QChip_default=createComponent({name:"QChip",props:{...useDarkProps,...useSizeProps,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=getCurrentInstance(),a=use_dark_default(e,o),r=use_size_default(e,defaultSizes2),i=computed((()=>!0===e.selected||void 0!==e.icon)),l=computed((()=>!0===e.selected?e.iconSelected||o.iconSet.chip.selected:e.icon)),s=computed((()=>e.iconRemove||o.iconSet.chip.remove)),u=computed((()=>!1===e.disable&&(!0===e.clickable||null!==e.selected))),c=computed((()=>{const t=!0===e.outline&&e.color||e.textColor;return"q-chip row inline no-wrap items-center"+(!1===e.outline&&void 0!==e.color?` bg-${e.color}`:"")+(t?` text-${t} q-chip--colored`:"")+(!0===e.disable?" disabled":"")+(!0===e.dense?" q-chip--dense":"")+(!0===e.outline?" q-chip--outline":"")+(!0===e.selected?" q-chip--selected":"")+(!0===u.value?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(!0===e.square?" q-chip--square":"")+(!0===a.value?" q-chip--dark q-dark":"")})),d=computed((()=>{const t=!0===e.disable?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0};return{chip:t,remove:{...t,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||o.lang.label.remove}}}));function p(e){13===e.keyCode&&f(e)}function f(t){e.disable||(n("update:selected",!e.selected),n("click",t))}function v(t){void 0!==t.keyCode&&13!==t.keyCode||(stopAndPrevent(t),!1===e.disable&&(n("update:modelValue",!1),n("remove")))}return()=>{if(!1===e.modelValue)return;const n={class:c.value,style:r.value};return!0===u.value&&Object.assign(n,d.value.chip,{onClick:f,onKeyup:p}),hDir("div",n,function(){const n=[];!0===u.value&&n.push(h("div",{class:"q-focus-helper"})),!0===i.value&&n.push(h(QIcon_default,{class:"q-chip__icon q-chip__icon--left",name:l.value}));const o=void 0!==e.label?[h("div",{class:"ellipsis"},[e.label])]:void 0;return n.push(h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},hMergeSlotSafely(t.default,o))),e.iconRight&&n.push(h(QIcon_default,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),!0===e.removable&&n.push(h(QIcon_default,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:s.value,...d.value.remove,onClick:v,onKeyup:v})),n}(),"ripple",!1!==e.ripple&&!0!==e.disable,(()=>[[Ripple_default,e.ripple]]))}}}),useCircularCommonProps={...useSizeProps,min:{type:Number,default:0},max:{type:Number,default:100},color:String,centerColor:String,trackColor:String,fontSize:String,rounded:Boolean,thickness:{type:Number,default:.2,validator:e=>e>=0&&e<=1},angle:{type:Number,default:0},showValue:Boolean,reverse:Boolean,instantFeedback:Boolean},radius=50,diameter=2*radius,circumference=diameter*Math.PI,strokeDashArray=Math.round(1e3*circumference)/1e3,QCircularProgress_default=createComponent({name:"QCircularProgress",props:{...useCircularCommonProps,value:{type:Number,default:0},animationSpeed:{type:[String,Number],default:600},indeterminate:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=getCurrentInstance(),o=use_size_default(e),a=computed((()=>{const t=(!0===n.lang.rtl?-1:1)*e.angle;return{transform:e.reverse!==(!0===n.lang.rtl)?`scale3d(-1, 1, 1) rotate3d(0, 0, 1, ${-90-t}deg)`:`rotate3d(0, 0, 1, ${t-90}deg)`}})),r=computed((()=>!0!==e.instantFeedback&&!0!==e.indeterminate?{transition:`stroke-dashoffset ${e.animationSpeed}ms ease 0s, stroke ${e.animationSpeed}ms ease`}:"")),i=computed((()=>diameter/(1-e.thickness/2))),l=computed((()=>`${i.value/2} ${i.value/2} ${i.value} ${i.value}`)),s=computed((()=>between(e.value,e.min,e.max))),u=computed((()=>e.max-e.min)),c=computed((()=>e.thickness/2*i.value)),d=computed((()=>{const t=(e.max-s.value)/u.value,n=!0===e.rounded&&s.value<e.max&&t<.25?c.value/2*(1-t/.25):0;return circumference*t+n}));function p({thickness:e,offset:t,color:n,cls:o,rounded:a}){return h("circle",{class:"q-circular-progress__"+o+(void 0!==n?` text-${n}`:""),style:r.value,fill:"transparent",stroke:"currentColor","stroke-width":e,"stroke-dasharray":strokeDashArray,"stroke-dashoffset":t,"stroke-linecap":a,cx:i.value,cy:i.value,r:radius})}return()=>{const n=[];void 0!==e.centerColor&&"transparent"!==e.centerColor&&n.push(h("circle",{class:`q-circular-progress__center text-${e.centerColor}`,fill:"currentColor",r:radius-c.value/2,cx:i.value,cy:i.value})),void 0!==e.trackColor&&"transparent"!==e.trackColor&&n.push(p({cls:"track",thickness:c.value,offset:0,color:e.trackColor})),n.push(p({cls:"circle",thickness:c.value,offset:d.value,color:e.color,rounded:!0===e.rounded?"round":void 0}));const r=[h("svg",{class:"q-circular-progress__svg",style:a.value,viewBox:l.value,"aria-hidden":"true"},n)];return!0===e.showValue&&r.push(h("div",{class:"q-circular-progress__text absolute-full row flex-center content-center",style:{fontSize:e.fontSize}},void 0!==t.default?t.default():[h("div",s.value)])),h("div",{class:`q-circular-progress q-circular-progress--${!0===e.indeterminate?"in":""}determinate`,style:o.value,role:"progressbar","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":!0===e.indeterminate?void 0:s.value},hMergeSlotSafely(t.internal,r))}}});function getChanges(e,t,n){const o=position(e);let a,r=o.left-t.event.x,i=o.top-t.event.y,l=Math.abs(r),s=Math.abs(i);const u=t.direction;!0===u.horizontal&&!0!==u.vertical?a=r<0?"left":"right":!0!==u.horizontal&&!0===u.vertical?a=i<0?"up":"down":!0===u.up&&i<0?(a="up",l>s&&(!0===u.left&&r<0?a="left":!0===u.right&&r>0&&(a="right"))):!0===u.down&&i>0?(a="down",l>s&&(!0===u.left&&r<0?a="left":!0===u.right&&r>0&&(a="right"))):!0===u.left&&r<0?(a="left",l<s&&(!0===u.up&&i<0?a="up":!0===u.down&&i>0&&(a="down"))):!0===u.right&&r>0&&(a="right",l<s&&(!0===u.up&&i<0?a="up":!0===u.down&&i>0&&(a="down")));let c=!1;if(void 0===a&&!1===n){if(!0===t.event.isFirst||void 0===t.event.lastDir)return{};a=t.event.lastDir,c=!0,"left"===a||"right"===a?(o.left-=r,l=0,r=0):(o.top-=i,s=0,i=0)}return{synthetic:c,payload:{evt:e,touch:!0!==t.event.mouse,mouse:!0===t.event.mouse,position:o,direction:a,isFirst:t.event.isFirst,isFinal:!0===n,duration:Date.now()-t.event.time,distance:{x:l,y:s},offset:{x:r,y:i},delta:{x:o.left-t.event.lastX,y:o.top-t.event.lastY}}}}var uid=0,TouchPan_default=createDirective({name:"touch-pan",beforeMount(e,{value:t,modifiers:n}){if(!0!==n.mouse&&!0!==client.has.touch)return;function o(e,t){!0===n.mouse&&!0===t?stopAndPrevent(e):(!0===n.stop&&stop$1(e),!0===n.prevent&&prevent(e))}const a={uid:"qvtp_"+uid++,handler:t,modifiers:n,direction:getModifierDirections(n),noop:noop,mouseStart(e){shouldStart(e,a)&&leftClick(e)&&(addEvt(a,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),a.start(e,!0))},touchStart(e){if(shouldStart(e,a)){const t=e.target;addEvt(a,"temp",[[t,"touchmove","move","notPassiveCapture"],[t,"touchcancel","end","passiveCapture"],[t,"touchend","end","passiveCapture"]]),a.start(e)}},start(t,o){if(!0===client.is.firefox&&preventDraggable(e,!0),a.lastEvt=t,!0===o||!0===n.stop){if(!0!==a.direction.all&&(!0!==o||!0!==a.modifiers.mouseAllDir&&!0!==a.modifiers.mousealldir)){const e=-1!==t.type.indexOf("mouse")?new MouseEvent(t.type,t):new TouchEvent(t.type,t);!0===t.defaultPrevented&&prevent(e),!0===t.cancelBubble&&stop$1(e),Object.assign(e,{qKeyEvent:t.qKeyEvent,qClickOutside:t.qClickOutside,qAnchorHandled:t.qAnchorHandled,qClonedBy:void 0===t.qClonedBy?[a.uid]:t.qClonedBy.concat(a.uid)}),a.initialEvent={target:t.target,event:e}}stop$1(t)}const{left:r,top:i}=position(t);a.event={x:r,y:i,time:Date.now(),mouse:!0===o,detected:!1,isFirst:!0,isFinal:!1,lastX:r,lastY:i}},move(e){if(void 0===a.event)return;const t=position(e),r=t.left-a.event.x,i=t.top-a.event.y;if(0===r&&0===i)return;a.lastEvt=e;const l=!0===a.event.mouse,s=()=>{let t;o(e,l),!0!==n.preserveCursor&&!0!==n.preservecursor&&(t=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),!0===l&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),clearSelection(),a.styleCleanup=e=>{if(a.styleCleanup=void 0,void 0!==t&&(document.documentElement.style.cursor=t),document.body.classList.remove("non-selectable"),!0===l){const t=()=>{document.body.classList.remove("no-pointer-events--children")};void 0!==e?setTimeout((()=>{t(),e()}),50):t()}else void 0!==e&&e()}};if(!0===a.event.detected){!0!==a.event.isFirst&&o(e,a.event.mouse);const{payload:t,synthetic:n}=getChanges(e,a,!1);return void(void 0!==t&&(!1===a.handler(t)?a.end(e):(void 0===a.styleCleanup&&!0===a.event.isFirst&&s(),a.event.lastX=t.position.left,a.event.lastY=t.position.top,a.event.lastDir=!0===n?void 0:t.direction,a.event.isFirst=!1)))}if(!0===a.direction.all||!0===l&&(!0===a.modifiers.mouseAllDir||!0===a.modifiers.mousealldir))return s(),a.event.detected=!0,void a.move(e);const u=Math.abs(r),c=Math.abs(i);u!==c&&(!0===a.direction.horizontal&&u>c||!0===a.direction.vertical&&u<c||!0===a.direction.up&&u<c&&i<0||!0===a.direction.down&&u<c&&i>0||!0===a.direction.left&&u>c&&r<0||!0===a.direction.right&&u>c&&r>0?(a.event.detected=!0,a.move(e)):a.end(e,!0))},end(t,n){if(void 0!==a.event){if(cleanEvt(a,"temp"),!0===client.is.firefox&&preventDraggable(e,!1),!0===n)void 0!==a.styleCleanup&&a.styleCleanup(),!0!==a.event.detected&&void 0!==a.initialEvent&&a.initialEvent.target.dispatchEvent(a.initialEvent.event);else if(!0===a.event.detected){!0===a.event.isFirst&&a.handler(getChanges(void 0===t?a.lastEvt:t,a).payload);const{payload:e}=getChanges(void 0===t?a.lastEvt:t,a,!0),n=()=>{a.handler(e)};void 0!==a.styleCleanup?a.styleCleanup(n):n()}a.event=void 0,a.initialEvent=void 0,a.lastEvt=void 0}}};if(e.__qtouchpan=a,!0===n.mouse){const t=!0===n.mouseCapture||!0===n.mousecapture?"Capture":"";addEvt(a,"main",[[e,"mousedown","mouseStart",`passive${t}`]])}!0===client.has.touch&&addEvt(a,"main",[[e,"touchstart","touchStart","passive"+(!0===n.capture?"Capture":"")],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const n=e.__qtouchpan;void 0!==n&&(t.oldValue!==t.value&&("function"!=typeof value&&n.end(),n.handler=t.value),n.direction=getModifierDirections(t.modifiers))},beforeUnmount(e){const t=e.__qtouchpan;void 0!==t&&(void 0!==t.event&&t.end(),cleanEvt(t,"main"),cleanEvt(t,"temp"),!0===client.is.firefox&&preventDraggable(e,!1),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchpan)}}),markerPrefixClass="q-slider__marker-labels",defaultMarkerConvertFn=e=>({value:e}),defaultMarkerLabelRenderFn=({marker:e})=>h("div",{key:e.value,style:e.style,class:e.classes},e.label),keyCodes=[34,37,40,33,39,38],useSliderProps={...useDarkProps,...useFormProps,min:{type:Number,default:0},max:{type:Number,default:100},innerMin:Number,innerMax:Number,step:{type:Number,default:1,validator:e=>e>=0},snap:Boolean,vertical:Boolean,reverse:Boolean,color:String,markerLabelsClass:String,label:Boolean,labelColor:String,labelTextColor:String,labelAlways:Boolean,switchLabelSide:Boolean,markers:[Boolean,Number],markerLabels:[Boolean,Array,Object,Function],switchMarkerLabelsSide:Boolean,trackImg:String,trackColor:String,innerTrackImg:String,innerTrackColor:String,selectionColor:String,selectionImg:String,thumbSize:{type:String,default:"20px"},trackSize:{type:String,default:"4px"},disable:Boolean,readonly:Boolean,dense:Boolean,tabindex:[String,Number],thumbColor:String,thumbPath:{type:String,default:"M 4, 10 a 6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"}},useSliderEmits=["pan","update:modelValue","change"];function use_slider_default({updateValue:e,updatePosition:t,getDragging:n,formAttrs:o}){const{props:a,emit:r,slots:i,proxy:{$q:l}}=getCurrentInstance(),s=use_dark_default(a,l),u=useFormInject(o),c=ref(!1),d=ref(!1),p=ref(!1),f=ref(!1),v=computed((()=>!0===a.vertical?"--v":"--h")),m=computed((()=>"-"+(!0===a.switchLabelSide?"switched":"standard"))),g=computed((()=>!0===a.vertical?!0===a.reverse:a.reverse!==(!0===l.lang.rtl))),_=computed((()=>!0===isNaN(a.innerMin)||a.innerMin<a.min?a.min:a.innerMin)),b=computed((()=>!0===isNaN(a.innerMax)||a.innerMax>a.max?a.max:a.innerMax)),y=computed((()=>!0!==a.disable&&!0!==a.readonly&&_.value<b.value)),w=computed((()=>{if(0===a.step)return e=>e;const e=(String(a.step).trim().split(".")[1]||"").length;return t=>parseFloat(t.toFixed(e))})),C=computed((()=>0===a.step?1:a.step)),S=computed((()=>!0===y.value?a.tabindex||0:-1)),k=computed((()=>a.max-a.min)),x=computed((()=>b.value-_.value)),M=computed((()=>Y(_.value))),T=computed((()=>Y(b.value))),$=computed((()=>!0===a.vertical?!0===g.value?"bottom":"top":!0===g.value?"right":"left")),E=computed((()=>!0===a.vertical?"height":"width")),N=computed((()=>!0===a.vertical?"width":"height")),L=computed((()=>!0===a.vertical?"vertical":"horizontal")),D=computed((()=>{const e={role:"slider","aria-valuemin":_.value,"aria-valuemax":b.value,"aria-orientation":L.value,"data-step":a.step};return!0===a.disable?e["aria-disabled"]="true":!0===a.readonly&&(e["aria-readonly"]="true"),e})),B=computed((()=>`q-slider q-slider${v.value} q-slider--${!0===c.value?"":"in"}active inline no-wrap `+(!0===a.vertical?"row":"column")+(!0===a.disable?" disabled":" q-slider--enabled"+(!0===y.value?" q-slider--editable":""))+("both"===p.value?" q-slider--focus":"")+(a.label||!0===a.labelAlways?" q-slider--label":"")+(!0===a.labelAlways?" q-slider--label-always":"")+(!0===s.value?" q-slider--dark":"")+(!0===a.dense?" q-slider--dense q-slider--dense"+v.value:"")));function q(e){const t="q-slider__"+e;return`${t} ${t}${v.value} ${t}${v.value}${m.value}`}function P(e){const t="q-slider__"+e;return`${t} ${t}${v.value}`}const A=computed((()=>{const e=a.selectionColor||a.color;return"q-slider__selection absolute"+(void 0!==e?` text-${e}`:"")})),I=computed((()=>P("markers")+" absolute overflow-hidden")),R=computed((()=>P("track-container"))),O=computed((()=>q("pin"))),V=computed((()=>q("label"))),z=computed((()=>q("text-container"))),F=computed((()=>q("marker-labels-container")+(void 0!==a.markerLabelsClass?` ${a.markerLabelsClass}`:""))),j=computed((()=>"q-slider__track relative-position no-outline"+(void 0!==a.trackColor?` bg-${a.trackColor}`:""))),H=computed((()=>{const e={[N.value]:a.trackSize};return void 0!==a.trackImg&&(e.backgroundImage=`url(${a.trackImg}) !important`),e})),U=computed((()=>"q-slider__inner absolute"+(void 0!==a.innerTrackColor?` bg-${a.innerTrackColor}`:""))),Q=computed((()=>{const e=T.value-M.value,t={[$.value]:100*M.value+"%",[E.value]:0===e?"2px":100*e+"%"};return void 0!==a.innerTrackImg&&(t.backgroundImage=`url(${a.innerTrackImg}) !important`),t}));function Y(e){return 0===k.value?0:(e-a.min)/k.value}const W=computed((()=>!0===isNumber(a.markers)?a.markers:C.value)),K=computed((()=>{const e=[],t=W.value,n=a.max;let o=a.min;do{e.push(o),o+=t}while(o<n);return e.push(n),e})),G=computed((()=>{const e=` ${markerPrefixClass}${v.value}-`;return markerPrefixClass+`${e}${!0===a.switchMarkerLabelsSide?"switched":"standard"}${e}${!0===g.value?"rtl":"ltr"}`})),X=computed((()=>!1===a.markerLabels?null:function(e){if(!1===e)return null;if(!0===e)return K.value.map(defaultMarkerConvertFn);if("function"==typeof e)return K.value.map((t=>{const n=e(t);return!0===isObject(n)?{...n,value:t}:{value:t,label:n}}));const t=({value:e})=>e>=a.min&&e<=a.max;if(!0===Array.isArray(e))return e.map((e=>!0===isObject(e)?e:{value:e})).filter(t);return Object.keys(e).map((t=>{const n=e[t],o=Number(t);return!0===isObject(n)?{...n,value:o}:{value:o,label:n}})).filter(t)}(a.markerLabels).map(((e,t)=>({index:t,value:e.value,label:e.label||e.value,classes:G.value+(void 0!==e.classes?" "+e.classes:""),style:{...ee(e.value),...e.style||{}}}))))),Z=computed((()=>({markerList:X.value,markerMap:te.value,classes:G.value,getStyle:ee}))),J=computed((()=>{const e=0===x.value?"2px":100*W.value/x.value;return{...Q.value,backgroundSize:!0===a.vertical?`2px ${e}%`:`${e}% 2px`}}));function ee(e){return{[$.value]:100*(e-a.min)/k.value+"%"}}const te=computed((()=>{if(!1===a.markerLabels)return null;const e={};return X.value.forEach((t=>{e[t.value]=t})),e}));const ne=computed((()=>[[TouchPan_default,oe,void 0,{[L.value]:!0,prevent:!0,stop:!0,mouse:!0,mouseAllDir:!0}]]));function oe(o){!0===o.isFinal?(void 0!==f.value&&(t(o.evt),!0===o.touch&&e(!0),f.value=void 0,r("pan","end")),c.value=!1,p.value=!1):!0===o.isFirst?(f.value=n(o.evt),t(o.evt),e(),c.value=!0,r("pan","start")):(t(o.evt),e())}function ae(){p.value=!1}function re(){d.value=!1,c.value=!1,e(!0),ae(),document.removeEventListener("mouseup",re,!0)}return onBeforeUnmount((()=>{document.removeEventListener("mouseup",re,!0)})),{state:{active:c,focus:p,preventFocus:d,dragging:f,editable:y,classes:B,tabindex:S,attributes:D,roundValueFn:w,keyStep:C,trackLen:k,innerMin:_,innerMinRatio:M,innerMax:b,innerMaxRatio:T,positionProp:$,sizeProp:E,isReversed:g},methods:{onActivate:function(o){t(o,n(o)),e(),d.value=!0,c.value=!0,document.addEventListener("mouseup",re,!0)},onMobileClick:function(o){t(o,n(o)),e(!0)},onBlur:ae,onKeyup:function(t){keyCodes.includes(t.keyCode)&&e(!0)},getContent:function(e,t,n,o){const r=[];"transparent"!==a.innerTrackColor&&r.push(h("div",{key:"inner",class:U.value,style:Q.value})),"transparent"!==a.selectionColor&&r.push(h("div",{key:"selection",class:A.value,style:e.value})),!1!==a.markers&&r.push(h("div",{key:"marker",class:I.value,style:J.value})),o(r);const l=[hDir("div",{key:"trackC",class:R.value,tabindex:t.value,...n.value},[h("div",{class:j.value,style:H.value},r)],"slide",y.value,(()=>ne.value))];if(!1!==a.markerLabels){l[!0===a.switchMarkerLabelsSide?"unshift":"push"](h("div",{key:"markerL",class:F.value},function(){if(void 0!==i["marker-label-group"])return i["marker-label-group"](Z.value);const e=i["marker-label"]||defaultMarkerLabelRenderFn;return X.value.map((t=>e({marker:t,...Z.value})))}()))}return l},getThumbRenderFn:function(e){const t=computed((()=>!1!==d.value||p.value!==e.focusValue&&"both"!==p.value?"":" q-slider--focus")),n=computed((()=>`q-slider__thumb q-slider__thumb${v.value} q-slider__thumb${v.value}-${!0===g.value?"rtl":"ltr"} absolute non-selectable`+t.value+(void 0!==e.thumbColor.value?` text-${e.thumbColor.value}`:""))),o=computed((()=>({width:a.thumbSize,height:a.thumbSize,[$.value]:100*e.ratio.value+"%",zIndex:p.value===e.focusValue?2:void 0}))),r=computed((()=>void 0!==e.labelColor.value?` text-${e.labelColor.value}`:"")),i=computed((()=>function(e){if(!0===a.vertical)return null;const t=l.lang.rtl!==a.reverse?1-e:e;return{transform:`translateX(calc(${2*t-1} * ${a.thumbSize} / 2 + ${50-100*t}%))`}}(e.ratio.value))),s=computed((()=>"q-slider__text"+(void 0!==e.labelTextColor.value?` text-${e.labelTextColor.value}`:"")));return()=>{const t=[h("svg",{class:"q-slider__thumb-shape absolute-full",viewBox:"0 0 20 20","aria-hidden":"true"},[h("path",{d:a.thumbPath})]),h("div",{class:"q-slider__focus-ring fit"})];return!0!==a.label&&!0!==a.labelAlways||(t.push(h("div",{class:O.value+" absolute fit no-pointer-events"+r.value},[h("div",{class:V.value,style:{minWidth:a.thumbSize}},[h("div",{class:z.value,style:i.value},[h("span",{class:s.value},e.label.value)])])])),void 0!==a.name&&!0!==a.disable&&u(t,"push")),h("div",{class:n.value,style:o.value,...e.getNodeData()},t)}},convertRatioToModel:function(e){const{min:t,max:n,step:o}=a;let r=t+e*(n-t);if(o>0){const e=(r-_.value)%o;r+=(Math.abs(e)>=o/2?(e<0?-1:1)*o:0)-e}return r=w.value(r),between(r,_.value,b.value)},convertModelToRatio:Y,getDraggingRatio:function(e,t){const n=position(e),o=!0===a.vertical?between((n.top-t.top)/t.height,0,1):between((n.left-t.left)/t.width,0,1);return between(!0===g.value?1-o:o,M.value,T.value)}}}}var getNodeData=()=>({}),QSlider_default=createComponent({name:"QSlider",props:{...useSliderProps,modelValue:{required:!0,default:null,validator:e=>"number"==typeof e||null===e},labelValue:[String,Number]},emits:useSliderEmits,setup(e,{emit:t}){const{proxy:{$q:n}}=getCurrentInstance(),{state:o,methods:a}=use_slider_default({updateValue:v,updatePosition:function(t,n=o.dragging.value){const r=a.getDraggingRatio(t,n);l.value=a.convertRatioToModel(r),i.value=!0!==e.snap||0===e.step?r:a.convertModelToRatio(l.value)},getDragging:function(){return r.value.getBoundingClientRect()},formAttrs:useFormAttrs(e)}),r=ref(null),i=ref(0),l=ref(0);function s(){l.value=null===e.modelValue?o.innerMin.value:between(e.modelValue,o.innerMin.value,o.innerMax.value)}watch((()=>`${e.modelValue}|${o.innerMin.value}|${o.innerMax.value}`),s),s();const u=computed((()=>a.convertModelToRatio(l.value))),c=computed((()=>!0===o.active.value?i.value:u.value)),d=computed((()=>{const t={[o.positionProp.value]:100*o.innerMinRatio.value+"%",[o.sizeProp.value]:100*(c.value-o.innerMinRatio.value)+"%"};return void 0!==e.selectionImg&&(t.backgroundImage=`url(${e.selectionImg}) !important`),t})),p=a.getThumbRenderFn({focusValue:!0,getNodeData:getNodeData,ratio:c,label:computed((()=>void 0!==e.labelValue?e.labelValue:l.value)),thumbColor:computed((()=>e.thumbColor||e.color)),labelColor:computed((()=>e.labelColor)),labelTextColor:computed((()=>e.labelTextColor))}),f=computed((()=>!0!==o.editable.value?{}:!0===n.platform.is.mobile?{onClick:a.onMobileClick}:{onMousedown:a.onActivate,onFocus:m,onBlur:a.onBlur,onKeydown:g,onKeyup:a.onKeyup}));function v(n){l.value!==e.modelValue&&t("update:modelValue",l.value),!0===n&&t("change",l.value)}function m(){o.focus.value=!0}function g(t){if(!1===keyCodes.includes(t.keyCode))return;stopAndPrevent(t);const n=([34,33].includes(t.keyCode)?10:1)*o.keyStep.value,a=([34,37,40].includes(t.keyCode)?-1:1)*(!0===o.isReversed.value?-1:1)*(!0===e.vertical?-1:1)*n;l.value=between(o.roundValueFn.value(l.value+a),o.innerMin.value,o.innerMax.value),v()}return()=>{const t=a.getContent(d,o.tabindex,f,(e=>{e.push(p())}));return h("div",{ref:r,class:o.classes.value+(null===e.modelValue?" q-slider--no-value":""),...o.attributes.value,"aria-valuenow":e.modelValue},t)}}});function use_hydration_default(){const e=ref(!isRuntimeSsrPreHydration.value);return!1===e.value&&onMounted((()=>{e.value=!0})),{isHydrated:e}}var hasObserver="undefined"!=typeof ResizeObserver,resizeProps=!0===hasObserver?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"},QResizeObserver_default=createComponent({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:t}){let n,o=null,a={width:-1,height:-1};function r(t){!0===t||0===e.debounce||"0"===e.debounce?i():null===o&&(o=setTimeout(i,e.debounce))}function i(){if(null!==o&&(clearTimeout(o),o=null),n){const{offsetWidth:e,offsetHeight:o}=n;e===a.width&&o===a.height||(a={width:e,height:o},t("resize",a))}}const{proxy:l}=getCurrentInstance();if(l.trigger=r,!0===hasObserver){let e;const t=o=>{n=l.$el.parentNode,n?(e=new ResizeObserver(r),e.observe(n),i()):!0!==o&&nextTick((()=>{t(!0)}))};return onMounted((()=>{t()})),onBeforeUnmount((()=>{null!==o&&clearTimeout(o),void 0!==e&&(void 0!==e.disconnect?e.disconnect():n&&e.unobserve(n))})),noop}{let e=function(){null!==o&&(clearTimeout(o),o=null),void 0!==s&&(void 0!==s.removeEventListener&&s.removeEventListener("resize",r,listenOpts.passive),s=void 0)},t=function(){e(),n&&n.contentDocument&&(s=n.contentDocument.defaultView,s.addEventListener("resize",r,listenOpts.passive),i())};const{isHydrated:a}=use_hydration_default();let s;return onMounted((()=>{nextTick((()=>{n=l.$el,n&&t()}))})),onBeforeUnmount(e),()=>{if(!0===a.value)return h("object",{class:"q--avoid-card-border",style:resizeProps.style,tabindex:-1,type:"text/html",data:resizeProps.url,"aria-hidden":"true",onLoad:t})}}}}),rtlHasScrollBug=!1;{const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const t=document.createElement("div");Object.assign(t.style,{width:"1000px",height:"1px"}),document.body.appendChild(e),e.appendChild(t),e.scrollLeft=-1e3,rtlHasScrollBug=e.scrollLeft>=0,e.remove()}function getIndicatorClass(e,t,n){const o=!0===n?["left","right"]:["top","bottom"];return`absolute-${!0===t?o[0]:o[1]}${e?` text-${e}`:""}`}var alignValues3=["left","center","right","justify"],QTabs_default=createComponent({name:"QTabs",props:{modelValue:[Number,String],align:{type:String,default:"center",validator:e=>alignValues3.includes(e)},breakpoint:{type:[String,Number],default:600},vertical:Boolean,shrink:Boolean,stretch:Boolean,activeClass:String,activeColor:String,activeBgColor:String,indicatorColor:String,leftIcon:String,rightIcon:String,outsideArrows:Boolean,mobileArrows:Boolean,switchIndicator:Boolean,narrowIndicator:Boolean,inlineLabel:Boolean,noCaps:Boolean,dense:Boolean,contentClass:String,"onUpdate:modelValue":[Function,Array]},setup(e,{slots:t,emit:n}){const{proxy:o}=getCurrentInstance(),{$q:a}=o,{registerTick:r}=use_tick_default(),{registerTick:i}=use_tick_default(),{registerTick:l}=use_tick_default(),{registerTimeout:s,removeTimeout:u}=use_timeout_default(),{registerTimeout:c,removeTimeout:d}=use_timeout_default(),p=ref(null),f=ref(null),v=ref(e.modelValue),m=ref(!1),g=ref(!0),_=ref(!1),b=ref(!1),y=[],w=ref(0),C=ref(!1);let S,k=null,x=null;const M=computed((()=>({activeClass:e.activeClass,activeColor:e.activeColor,activeBgColor:e.activeBgColor,indicatorClass:getIndicatorClass(e.indicatorColor,e.switchIndicator,e.vertical),narrowIndicator:e.narrowIndicator,inlineLabel:e.inlineLabel,noCaps:e.noCaps}))),T=computed((()=>{const e=w.value,t=v.value;for(let n=0;n<e;n++)if(y[n].name.value===t)return!0;return!1})),$=computed((()=>`q-tabs__content--align-${!0===m.value?"left":!0===b.value?"justify":e.align}`)),E=computed((()=>`q-tabs row no-wrap items-center q-tabs--${!0===m.value?"":"not-"}scrollable q-tabs--${!0===e.vertical?"vertical":"horizontal"} q-tabs__arrows--${!0===e.outsideArrows?"outside":"inside"} q-tabs--mobile-with${!0===e.mobileArrows?"":"out"}-arrows`+(!0===e.dense?" q-tabs--dense":"")+(!0===e.shrink?" col-shrink":"")+(!0===e.stretch?" self-stretch":""))),N=computed((()=>"q-tabs__content scroll--mobile row no-wrap items-center self-stretch hide-scrollbar relative-position "+$.value+(void 0!==e.contentClass?` ${e.contentClass}`:""))),L=computed((()=>!0===e.vertical?{container:"height",content:"offsetHeight",scroll:"scrollHeight"}:{container:"width",content:"offsetWidth",scroll:"scrollWidth"})),D=computed((()=>!0!==e.vertical&&!0===a.lang.rtl)),B=computed((()=>!1===rtlHasScrollBug&&!0===D.value));function q({name:t,setCurrent:o,skipEmit:a}){v.value!==t&&(!0!==a&&void 0!==e["onUpdate:modelValue"]&&n("update:modelValue",t),!0!==o&&void 0!==e["onUpdate:modelValue"]||(!function(t,n){const o=null!=t&&""!==t?y.find((e=>e.name.value===t)):null,a=null!=n&&""!==n?y.find((e=>e.name.value===n)):null;if(!0===J)J=!1;else if(o&&a){const t=o.tabIndicatorRef.value,n=a.tabIndicatorRef.value;null!==k&&(clearTimeout(k),k=null),t.style.transition="none",t.style.transform="none",n.style.transition="none",n.style.transform="none";const r=t.getBoundingClientRect(),i=n.getBoundingClientRect();n.style.transform=!0===e.vertical?`translate3d(0,${r.top-i.top}px,0) scale3d(1,${i.height?r.height/i.height:1},1)`:`translate3d(${r.left-i.left}px,0,0) scale3d(${i.width?r.width/i.width:1},1,1)`,l((()=>{k=setTimeout((()=>{k=null,n.style.transition="transform .25s cubic-bezier(.4, 0, .2, 1)",n.style.transform="none"}),70)}))}a&&!0===m.value&&I(a.rootRef.value)}(v.value,t),v.value=t))}function P(){r((()=>{p.value&&A({width:p.value.offsetWidth,height:p.value.offsetHeight})}))}function A(t){if(void 0===L.value||null===f.value)return;const n=t[L.value.container],o=Math.min(f.value[L.value.scroll],Array.prototype.reduce.call(f.value.children,((e,t)=>e+(t[L.value.content]||0)),0)),a=n>0&&o>n;m.value=a,!0===a&&i(R),b.value=n<parseInt(e.breakpoint,10)}function I(t){const{left:n,width:o,top:a,height:r}=f.value.getBoundingClientRect(),i=t.getBoundingClientRect();let l=!0===e.vertical?i.top-a:i.left-n;if(l<0)return f.value[!0===e.vertical?"scrollTop":"scrollLeft"]+=Math.floor(l),void R();l+=!0===e.vertical?i.height-r:i.width-o,l>0&&(f.value[!0===e.vertical?"scrollTop":"scrollLeft"]+=Math.ceil(l),R())}function R(){const t=f.value;if(null===t)return;const n=t.getBoundingClientRect(),o=!0===e.vertical?t.scrollTop:Math.abs(t.scrollLeft);!0===D.value?(g.value=Math.ceil(o+n.width)<t.scrollWidth-1,_.value=o>0):(g.value=o>0,_.value=!0===e.vertical?Math.ceil(o+n.height)<t.scrollHeight:Math.ceil(o+n.width)<t.scrollWidth)}function O(e){null!==x&&clearInterval(x),x=setInterval((()=>{!0===function(e){const t=f.value,{get:n,set:o}=j.value;let a=!1,r=n(t);const i=e<r?-1:1;r+=5*i,r<0?(a=!0,r=0):(-1===i&&r<=e||1===i&&r>=e)&&(a=!0,r=e);return o(t,r),R(),a}(e)&&F()}),5)}function V(){O(!0===B.value?Number.MAX_SAFE_INTEGER:0)}function z(){O(!0===B.value?0:Number.MAX_SAFE_INTEGER)}function F(){null!==x&&(clearInterval(x),x=null)}watch(D,R),watch((()=>e.modelValue),(e=>{q({name:e,setCurrent:!0,skipEmit:!0})})),watch((()=>e.outsideArrows),P);const j=computed((()=>!0===B.value?{get:e=>Math.abs(e.scrollLeft),set:(e,t)=>{e.scrollLeft=-t}}:!0===e.vertical?{get:e=>e.scrollTop,set:(e,t)=>{e.scrollTop=t}}:{get:e=>e.scrollLeft,set:(e,t)=>{e.scrollLeft=t}}));function H(e,t){for(const n in e)if(e[n]!==t[n])return!1;return!0}function U(){let e=null,t={matchedLen:0,queryDiff:9999,hrefLen:0};const n=y.filter((e=>void 0!==e.routeData&&!0===e.routeData.hasRouterLink.value)),{hash:a,query:r}=o.$route,i=Object.keys(r).length;for(const o of n){const n=!0===o.routeData.exact.value;if(!0!==o.routeData[!0===n?"linkIsExactActive":"linkIsActive"].value)continue;const{hash:l,query:s,matched:u,href:c}=o.routeData.resolvedLink.value,d=Object.keys(s).length;if(!0===n){if(l!==a)continue;if(d!==i||!1===H(r,s))continue;e=o.name.value;break}if(""!==l&&l!==a)continue;if(0!==d&&!1===H(s,r))continue;const p={matchedLen:u.length,queryDiff:i-d,hrefLen:c.length-l.length};if(p.matchedLen>t.matchedLen)e=o.name.value,t=p;else if(p.matchedLen===t.matchedLen){if(p.queryDiff<t.queryDiff)e=o.name.value,t=p;else if(p.queryDiff!==t.queryDiff)continue;p.hrefLen>t.hrefLen&&(e=o.name.value,t=p)}}null!==e||!0!==y.some((e=>void 0===e.routeData&&e.name.value===v.value))?q({name:e,setCurrent:!0}):J=!1}function Q(e){if(u(),!0!==C.value&&null!==p.value&&e.target&&"function"==typeof e.target.closest){const t=e.target.closest(".q-tab");t&&!0===p.value.contains(t)&&(C.value=!0,!0===m.value&&I(t))}}function Y(){s((()=>{C.value=!1}),30)}function W(){!1===G.avoidRouteWatcher?c(U):d()}function K(){if(void 0===S){const e=watch((()=>o.$route.fullPath),W);S=()=>{e(),S=void 0}}}const G={currentModel:v,tabProps:M,hasFocus:C,hasActiveTab:T,registerTab:function(e){y.push(e),w.value++,P(),void 0===e.routeData||void 0===o.$route?c((()=>{if(!0===m.value){const e=v.value,t=null!=e&&""!==e?y.find((t=>t.name.value===e)):null;t&&I(t.rootRef.value)}})):(K(),!0===e.routeData.hasRouterLink.value&&W())},unregisterTab:function(e){y.splice(y.indexOf(e),1),w.value--,P(),void 0!==S&&void 0!==e.routeData&&(!0===y.every((e=>void 0===e.routeData))&&S(),W())},verifyRouteModel:W,updateModel:q,onKbdNavigate:function(t,n){const o=Array.prototype.filter.call(f.value.children,(e=>e===n||e.matches&&!0===e.matches(".q-tab.q-focusable"))),a=o.length;if(0===a)return;if(36===t)return I(o[0]),o[0].focus(),!0;if(35===t)return I(o[a-1]),o[a-1].focus(),!0;const r=t===(!0===e.vertical?38:37),i=t===(!0===e.vertical?40:39),l=!0===r?-1:!0===i?1:void 0;if(void 0!==l){const e=!0===D.value?-1:1,t=o.indexOf(n)+l*e;return t>=0&&t<a&&(I(o[t]),o[t].focus({preventScroll:!0})),!0}},avoidRouteWatcher:!1};function X(){null!==k&&clearTimeout(k),F(),void 0!==S&&S()}let Z,J;return provide(tabsKey,G),onBeforeUnmount(X),onDeactivated((()=>{Z=void 0!==S,X()})),onActivated((()=>{!0===Z&&(K(),J=!0,W()),P()})),()=>h("div",{ref:p,class:E.value,role:"tablist",onFocusin:Q,onFocusout:Y},[h(QResizeObserver_default,{onResize:A}),h("div",{ref:f,class:N.value,onScroll:R},hSlot(t.default)),h(QIcon_default,{class:"q-tabs__arrow q-tabs__arrow--left absolute q-tab__icon"+(!0===g.value?"":" q-tabs__arrow--faded"),name:e.leftIcon||a.iconSet.tabs[!0===e.vertical?"up":"left"],onMousedownPassive:V,onTouchstartPassive:V,onMouseupPassive:F,onMouseleavePassive:F,onTouchendPassive:F}),h(QIcon_default,{class:"q-tabs__arrow q-tabs__arrow--right absolute q-tab__icon"+(!0===_.value?"":" q-tabs__arrow--faded"),name:e.rightIcon||a.iconSet.tabs[!0===e.vertical?"down":"right"],onMousedownPassive:z,onTouchstartPassive:z,onMouseupPassive:F,onMouseleavePassive:F,onTouchendPassive:F})])}}),id=0,useTabEmits=["click","keydown"],useTabProps={icon:String,label:[Number,String],alert:[Boolean,String],alertIcon:String,name:{type:[Number,String],default:()=>"t_"+id++},noCaps:Boolean,tabindex:[String,Number],disable:Boolean,contentClass:String,ripple:{type:[Boolean,Object],default:!0}};function use_tab_default(e,t,n,o){const a=inject(tabsKey,emptyRenderFn);if(a===emptyRenderFn)return console.error("QTab/QRouteTab component needs to be child of QTabs"),emptyRenderFn;const{proxy:r}=getCurrentInstance(),i=ref(null),l=ref(null),s=ref(null),u=computed((()=>!0!==e.disable&&!1!==e.ripple&&Object.assign({keyCodes:[13,32],early:!0},!0===e.ripple?{}:e.ripple))),c=computed((()=>a.currentModel.value===e.name)),d=computed((()=>"q-tab relative-position self-stretch flex flex-center text-center"+(!0===c.value?" q-tab--active"+(a.tabProps.value.activeClass?" "+a.tabProps.value.activeClass:"")+(a.tabProps.value.activeColor?` text-${a.tabProps.value.activeColor}`:"")+(a.tabProps.value.activeBgColor?` bg-${a.tabProps.value.activeBgColor}`:""):" q-tab--inactive")+(e.icon&&e.label&&!1===a.tabProps.value.inlineLabel?" q-tab--full":"")+(!0===e.noCaps||!0===a.tabProps.value.noCaps?" q-tab--no-caps":"")+(!0===e.disable?" disabled":" q-focusable q-hoverable cursor-pointer")+(void 0!==o?o.linkClass.value:""))),p=computed((()=>"q-tab__content self-stretch flex-center relative-position q-anchor--skip non-selectable "+(!0===a.tabProps.value.inlineLabel?"row no-wrap q-tab__content--inline":"column")+(void 0!==e.contentClass?` ${e.contentClass}`:""))),f=computed((()=>!0===e.disable||!0===a.hasFocus.value||!1===c.value&&!0===a.hasActiveTab.value?-1:e.tabindex||0));function v(t,r){if(!0!==r&&null!==i.value&&i.value.focus(),!0!==e.disable){if(void 0===o)return a.updateModel({name:e.name}),void n("click",t);if(!0===o.hasRouterLink.value){const r=(n={})=>{let r;const i=void 0===n.to||!0===isDeepEqual(n.to,e.to)?a.avoidRouteWatcher=uid_default():null;return o.navigateToRouterLink(t,{...n,returnRouterError:!0}).catch((e=>{r=e})).then((t=>{if(i===a.avoidRouteWatcher&&(a.avoidRouteWatcher=!1,void 0===r&&(void 0===t||void 0!==t.message&&!0===t.message.startsWith("Avoided redundant navigation"))&&a.updateModel({name:e.name})),!0===n.returnRouterError)return void 0!==r?Promise.reject(r):t}))};return n("click",t,r),void(!0!==t.defaultPrevented&&r())}n("click",t)}else void 0!==o&&!0===o.hasRouterLink.value&&stopAndPrevent(t)}function m(e){isKeyCode(e,[13,32])?v(e,!0):!0!==shouldIgnoreKey(e)&&e.keyCode>=35&&e.keyCode<=40&&!0!==e.altKey&&!0!==e.metaKey&&!0===a.onKbdNavigate(e.keyCode,r.$el)&&stopAndPrevent(e),n("keydown",e)}const g={name:computed((()=>e.name)),rootRef:l,tabIndicatorRef:s,routeData:o};return onBeforeUnmount((()=>{a.unregisterTab(g)})),onMounted((()=>{a.registerTab(g)})),{renderTab:function(n,o){const r={ref:l,class:d.value,tabindex:f.value,role:"tab","aria-selected":!0===c.value?"true":"false","aria-disabled":!0===e.disable?"true":void 0,onClick:v,onKeydown:m,...o};return withDirectives(h(n,r,function(){const n=a.tabProps.value.narrowIndicator,o=[],r=h("div",{ref:s,class:["q-tab__indicator",a.tabProps.value.indicatorClass]});void 0!==e.icon&&o.push(h(QIcon_default,{class:"q-tab__icon",name:e.icon})),void 0!==e.label&&o.push(h("div",{class:"q-tab__label"},e.label)),!1!==e.alert&&o.push(void 0!==e.alertIcon?h(QIcon_default,{class:"q-tab__alert-icon",color:!0!==e.alert?e.alert:void 0,name:e.alertIcon}):h("div",{class:"q-tab__alert"+(!0!==e.alert?` text-${e.alert}`:"")})),!0===n&&o.push(r);const l=[h("div",{class:"q-focus-helper",tabindex:-1,ref:i}),h("div",{class:p.value},hMergeSlot(t.default,o))];return!1===n&&l.push(r),l}()),[[Ripple_default,u.value]])},$tabs:a}}var QTab_default=createComponent({name:"QTab",props:useTabProps,emits:useTabEmits,setup(e,{slots:t,emit:n}){const{renderTab:o}=use_tab_default(e,t,n);return()=>o("div")}}),QTabPanels_default=createComponent({name:"QTabPanels",props:{...usePanelProps,...useDarkProps},emits:usePanelEmits,setup(e,{slots:t}){const n=getCurrentInstance(),o=use_dark_default(e,n.proxy.$q),{updatePanelsList:a,getPanelContent:r,panelDirectives:i}=use_panel_default(),l=computed((()=>"q-tab-panels q-panel-parent"+(!0===o.value?" q-tab-panels--dark q-dark":"")));return()=>(a(t),hDir("div",{class:l.value},r(),"pan",e.swipeable,(()=>i.value)))}}),QTabPanel_default=createComponent({name:"QTabPanel",props:usePanelChildProps,setup:(e,{slots:t})=>()=>h("div",{class:"q-tab-panel",role:"tabpanel"},hSlot(t.default))}),hex=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,hexa=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,hexOrHexa=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,rgb=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,rgba=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,testPattern={date:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),time:e=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),fulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),timeOrFulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(e),email:e=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e),hexColor:e=>hex.test(e),hexaColor:e=>hexa.test(e),hexOrHexaColor:e=>hexOrHexa.test(e),rgbColor:e=>rgb.test(e),rgbaColor:e=>rgba.test(e),rgbOrRgbaColor:e=>rgb.test(e)||rgba.test(e),hexOrRgbColor:e=>hex.test(e)||rgb.test(e),hexaOrRgbaColor:e=>hexa.test(e)||rgba.test(e),anyColor:e=>hexOrHexa.test(e)||rgb.test(e)||rgba.test(e)},reRGBA=/^rgb(a)?\((\d{1,3}),(\d{1,3}),(\d{1,3}),?([01]?\.?\d*?)?\)$/;function rgbToHex({r:e,g:t,b:n,a:o}){const a=void 0!==o;if(e=Math.round(e),t=Math.round(t),n=Math.round(n),e>255||t>255||n>255||a&&o>100)throw new TypeError("Expected 3 numbers below 256 (and optionally one below 100)");return o=a?(256|Math.round(255*o/100)).toString(16).slice(1):"","#"+(n|t<<8|e<<16|1<<24).toString(16).slice(1)+o}function rgbToString({r:e,g:t,b:n,a:o}){return`rgb${void 0!==o?"a":""}(${e},${t},${n}${void 0!==o?","+o/100:""})`}function hexToRgb(e){if("string"!=typeof e)throw new TypeError("Expected a string");3===(e=e.replace(/^#/,"")).length?e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:4===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const t=parseInt(e,16);return e.length>6?{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:Math.round((255&t)/2.55)}:{r:t>>16,g:t>>8&255,b:255&t}}function hsvToRgb({h:e,s:t,v:n,a:o}){let a,r,i;t/=100,n/=100,e/=360;const l=Math.floor(6*e),s=6*e-l,u=n*(1-t),c=n*(1-s*t),d=n*(1-(1-s)*t);switch(l%6){case 0:a=n,r=d,i=u;break;case 1:a=c,r=n,i=u;break;case 2:a=u,r=n,i=d;break;case 3:a=u,r=c,i=n;break;case 4:a=d,r=u,i=n;break;case 5:a=n,r=u,i=c}return{r:Math.round(255*a),g:Math.round(255*r),b:Math.round(255*i),a:o}}function rgbToHsv({r:e,g:t,b:n,a:o}){const a=Math.max(e,t,n),r=Math.min(e,t,n),i=a-r,l=0===a?0:i/a,s=a/255;let u;switch(a){case r:u=0;break;case e:u=t-n+i*(t<n?6:0),u/=6*i;break;case t:u=n-e+2*i,u/=6*i;break;case n:u=e-t+4*i,u/=6*i}return{h:Math.round(360*u),s:Math.round(100*l),v:Math.round(100*s),a:o}}function textToRgb(e){if("string"!=typeof e)throw new TypeError("Expected a string");const t=e.replace(/ /g,""),n=reRGBA.exec(t);if(null===n)return hexToRgb(t);const o={r:Math.min(255,parseInt(n[2],10)),g:Math.min(255,parseInt(n[3],10)),b:Math.min(255,parseInt(n[4],10))};if(n[1]){const e=parseFloat(n[5]);o.a=100*Math.min(1,!0===isNaN(e)?1:e)}return o}function luminosity(e){if("string"!=typeof e&&(!e||void 0===e.r))throw new TypeError("Expected a string or a {r, g, b} object as color");const t="string"==typeof e?textToRgb(e):e,n=t.r/255,o=t.g/255,a=t.b/255;return.2126*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.7152*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))+.0722*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))}var palette=["rgb(255,204,204)","rgb(255,230,204)","rgb(255,255,204)","rgb(204,255,204)","rgb(204,255,230)","rgb(204,255,255)","rgb(204,230,255)","rgb(204,204,255)","rgb(230,204,255)","rgb(255,204,255)","rgb(255,153,153)","rgb(255,204,153)","rgb(255,255,153)","rgb(153,255,153)","rgb(153,255,204)","rgb(153,255,255)","rgb(153,204,255)","rgb(153,153,255)","rgb(204,153,255)","rgb(255,153,255)","rgb(255,102,102)","rgb(255,179,102)","rgb(255,255,102)","rgb(102,255,102)","rgb(102,255,179)","rgb(102,255,255)","rgb(102,179,255)","rgb(102,102,255)","rgb(179,102,255)","rgb(255,102,255)","rgb(255,51,51)","rgb(255,153,51)","rgb(255,255,51)","rgb(51,255,51)","rgb(51,255,153)","rgb(51,255,255)","rgb(51,153,255)","rgb(51,51,255)","rgb(153,51,255)","rgb(255,51,255)","rgb(255,0,0)","rgb(255,128,0)","rgb(255,255,0)","rgb(0,255,0)","rgb(0,255,128)","rgb(0,255,255)","rgb(0,128,255)","rgb(0,0,255)","rgb(128,0,255)","rgb(255,0,255)","rgb(245,0,0)","rgb(245,123,0)","rgb(245,245,0)","rgb(0,245,0)","rgb(0,245,123)","rgb(0,245,245)","rgb(0,123,245)","rgb(0,0,245)","rgb(123,0,245)","rgb(245,0,245)","rgb(214,0,0)","rgb(214,108,0)","rgb(214,214,0)","rgb(0,214,0)","rgb(0,214,108)","rgb(0,214,214)","rgb(0,108,214)","rgb(0,0,214)","rgb(108,0,214)","rgb(214,0,214)","rgb(163,0,0)","rgb(163,82,0)","rgb(163,163,0)","rgb(0,163,0)","rgb(0,163,82)","rgb(0,163,163)","rgb(0,82,163)","rgb(0,0,163)","rgb(82,0,163)","rgb(163,0,163)","rgb(92,0,0)","rgb(92,46,0)","rgb(92,92,0)","rgb(0,92,0)","rgb(0,92,46)","rgb(0,92,92)","rgb(0,46,92)","rgb(0,0,92)","rgb(46,0,92)","rgb(92,0,92)","rgb(255,255,255)","rgb(205,205,205)","rgb(178,178,178)","rgb(153,153,153)","rgb(127,127,127)","rgb(102,102,102)","rgb(76,76,76)","rgb(51,51,51)","rgb(25,25,25)","rgb(0,0,0)"],thumbPath="M5 5 h10 v10 h-10 v-10 z",alphaTrackImg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAH0lEQVQoU2NkYGAwZkAFZ5G5jPRRgOYEVDeB3EBjBQBOZwTVugIGyAAAAABJRU5ErkJggg==";createComponent({name:"QColor",props:{...useDarkProps,...useFormProps,modelValue:String,defaultValue:String,defaultView:{type:String,default:"spectrum",validator:e=>["spectrum","tune","palette"].includes(e)},formatModel:{type:String,default:"auto",validator:e=>["auto","hex","rgb","hexa","rgba"].includes(e)},palette:Array,noHeader:Boolean,noHeaderTabs:Boolean,noFooter:Boolean,square:Boolean,flat:Boolean,bordered:Boolean,disable:Boolean,readonly:Boolean},emits:["update:modelValue","change"],setup(e,{emit:t}){const{proxy:n}=getCurrentInstance(),{$q:o}=n,a=use_dark_default(e,o),{getCache:r}=use_render_cache_default(),i=ref(null),l=ref(null),s=computed((()=>"auto"===e.formatModel?null:-1!==e.formatModel.indexOf("hex"))),u=computed((()=>"auto"===e.formatModel?null:-1!==e.formatModel.indexOf("a"))),c=ref("auto"===e.formatModel?void 0===e.modelValue||null===e.modelValue||""===e.modelValue||e.modelValue.startsWith("#")?"hex":"rgb":e.formatModel.startsWith("hex")?"hex":"rgb"),d=ref(e.defaultView),p=ref($(e.modelValue||e.defaultValue)),f=computed((()=>!0!==e.disable&&!0!==e.readonly)),v=computed((()=>void 0===e.modelValue||null===e.modelValue||""===e.modelValue||e.modelValue.startsWith("#"))),m=computed((()=>null!==s.value?s.value:v.value)),g=useFormInject(computed((()=>({type:"hidden",name:e.name,value:p.value[!0===m.value?"hex":"rgb"]})))),_=computed((()=>null!==u.value?u.value:void 0!==p.value.a)),b=computed((()=>({backgroundColor:p.value.rgb||"#000"}))),y=computed((()=>"q-color-picker__header-content q-color-picker__header-content--"+(void 0!==p.value.a&&p.value.a<65||luminosity(p.value)>.4?"light":"dark"))),w=computed((()=>({background:`hsl(${p.value.h},100%,50%)`}))),C=computed((()=>({top:100-p.value.v+"%",[!0===o.lang.rtl?"right":"left"]:`${p.value.s}%`}))),S=computed((()=>void 0!==e.palette&&0!==e.palette.length?e.palette:palette)),k=computed((()=>"q-color-picker"+(!0===e.bordered?" q-color-picker--bordered":"")+(!0===e.square?" q-color-picker--square no-border-radius":"")+(!0===e.flat?" q-color-picker--flat no-shadow":"")+(!0===e.disable?" disabled":"")+(!0===a.value?" q-color-picker--dark q-dark":""))),x=computed((()=>!0===e.disable?{"aria-disabled":"true"}:{})),M=computed((()=>[[TouchPan_default,q,void 0,{prevent:!0,stop:!0,mouse:!0}]]));function T(e,n){p.value.hex=rgbToHex(e),p.value.rgb=rgbToString(e),p.value.r=e.r,p.value.g=e.g,p.value.b=e.b,p.value.a=e.a;const o=p.value[!0===m.value?"hex":"rgb"];t("update:modelValue",o),!0===n&&t("change",o)}function $(t){const n=void 0!==u.value?u.value:"auto"===e.formatModel?null:-1!==e.formatModel.indexOf("a");if("string"!=typeof t||0===t.length||!0!==testPattern.anyColor(t.replace(/ /g,"")))return{h:0,s:0,v:0,r:0,g:0,b:0,a:!0===n?100:void 0,hex:void 0,rgb:void 0};const o=textToRgb(t);return!0===n&&void 0===o.a&&(o.a=100),o.hex=rgbToHex(o),o.rgb=rgbToString(o),Object.assign(o,rgbToHsv(o))}function E(e,t,n){const a=i.value;if(null===a)return;const r=a.clientWidth,l=a.clientHeight,s=a.getBoundingClientRect();let u=Math.min(r,Math.max(0,e-s.left));!0===o.lang.rtl&&(u=r-u);const c=Math.min(l,Math.max(0,t-s.top)),d=Math.round(100*u/r),h=Math.round(100*Math.max(0,Math.min(1,-c/l+1))),f=hsvToRgb({h:p.value.h,s:d,v:h,a:!0===_.value?p.value.a:void 0});p.value.s=d,p.value.v=h,T(f,n)}function N(e,t){const n=Math.round(e),o=hsvToRgb({h:n,s:p.value.s,v:p.value.v,a:!0===_.value?p.value.a:void 0});p.value.h=n,T(o,t)}function L(e){N(e,!0)}function D(e,t,o,a,r){if(void 0!==a&&stop$1(a),!/^[0-9]+$/.test(e))return void(!0===r&&n.$forceUpdate());const i=Math.floor(Number(e));if(i<0||i>o)return void(!0===r&&n.$forceUpdate());const l={r:"r"===t?i:p.value.r,g:"g"===t?i:p.value.g,b:"b"===t?i:p.value.b,a:!0===_.value?"a"===t?i:p.value.a:void 0};if("a"!==t){const e=rgbToHsv(l);p.value.h=e.h,p.value.s=e.s,p.value.v=e.v}if(T(l,r),void 0!==a&&!0!==r&&void 0!==a.target.selectionEnd){const e=a.target.selectionEnd;nextTick((()=>{a.target.setSelectionRange(e,e)}))}}function B(e,t){let n;const o=e.target.value;if(stop$1(e),"hex"===c.value){if(o.length!==(!0===_.value?9:7)||!/^#[0-9A-Fa-f]+$/.test(o))return!0;n=hexToRgb(o)}else{let e;if(!o.endsWith(")"))return!0;if(!0!==_.value&&o.startsWith("rgb(")){if(e=o.substring(4,o.length-1).split(",").map((e=>parseInt(e,10))),3!==e.length||!/^rgb\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3}\)$/.test(o))return!0}else{if(!0!==_.value||!o.startsWith("rgba("))return!0;{if(e=o.substring(5,o.length-1).split(","),4!==e.length||!/^rgba\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/.test(o))return!0;for(let t=0;t<3;t++){const n=parseInt(e[t],10);if(n<0||n>255)return!0;e[t]=n}const t=parseFloat(e[3]);if(t<0||t>1)return!0;e[3]=t}}if(e[0]<0||e[0]>255||e[1]<0||e[1]>255||e[2]<0||e[2]>255||!0===_.value&&(e[3]<0||e[3]>1))return!0;n={r:e[0],g:e[1],b:e[2],a:!0===_.value?100*e[3]:void 0}}const a=rgbToHsv(n);if(p.value.h=a.h,p.value.s=a.s,p.value.v=a.v,T(n,t),!0!==t){const t=e.target.selectionEnd;nextTick((()=>{e.target.setSelectionRange(t,t)}))}}function q(e){e.isFinal?E(e.position.left,e.position.top,!0):P(e)}watch((()=>e.modelValue),(t=>{const n=$(t||e.defaultValue);n.hex!==p.value.hex&&(p.value=n)})),watch((()=>e.defaultValue),(t=>{if(!e.modelValue&&t){const e=$(t);e.hex!==p.value.hex&&(p.value=e)}}));const P=throttle_default((e=>{E(e.position.left,e.position.top)}),20);function A(e){E(e.pageX-window.pageXOffset,e.pageY-window.pageYOffset,!0)}function I(e){E(e.pageX-window.pageXOffset,e.pageY-window.pageYOffset)}function R(e){null!==l.value&&(l.value.$el.style.opacity=e?1:0)}function O(e){c.value=e}function V(e){d.value=e}function z(){const e={ref:i,class:"q-color-picker__spectrum non-selectable relative-position cursor-pointer"+(!0!==f.value?" readonly":""),style:w.value,...!0===f.value?{onClick:A,onMousedown:I}:{}},t=[h("div",{style:{paddingBottom:"100%"}}),h("div",{class:"q-color-picker__spectrum-white absolute-full"}),h("div",{class:"q-color-picker__spectrum-black absolute-full"}),h("div",{class:"absolute",style:C.value},[void 0!==p.value.hex?h("div",{class:"q-color-picker__spectrum-circle"}):null])],n=[h(QSlider_default,{class:"q-color-picker__hue non-selectable",modelValue:p.value.h,min:0,max:360,trackSize:"8px",innerTrackColor:"transparent",selectionColor:"transparent",readonly:!0!==f.value,thumbPath:thumbPath,"onUpdate:modelValue":N,onChange:L})];return!0===_.value&&n.push(h(QSlider_default,{class:"q-color-picker__alpha non-selectable",modelValue:p.value.a,min:0,max:100,trackSize:"8px",trackColor:"white",innerTrackColor:"transparent",selectionColor:"transparent",trackImg:alphaTrackImg,readonly:!0!==f.value,hideSelection:!0,thumbPath:thumbPath,...r("alphaSlide",{"onUpdate:modelValue":e=>D(e,"a",100),onChange:e=>D(e,"a",100,void 0,!0)})})),[hDir("div",e,t,"spec",f.value,(()=>M.value)),h("div",{class:"q-color-picker__sliders"},n)]}function F(){return[h("div",{class:"row items-center no-wrap"},[h("div","R"),h(QSlider_default,{modelValue:p.value.r,min:0,max:255,color:"red",dark:a.value,readonly:!0!==f.value,...r("rSlide",{"onUpdate:modelValue":e=>D(e,"r",255),onChange:e=>D(e,"r",255,void 0,!0)})}),h("input",{value:p.value.r,maxlength:3,readonly:!0!==f.value,onChange:stop$1,...r("rIn",{onInput:e=>D(e.target.value,"r",255,e),onBlur:e=>D(e.target.value,"r",255,e,!0)})})]),h("div",{class:"row items-center no-wrap"},[h("div","G"),h(QSlider_default,{modelValue:p.value.g,min:0,max:255,color:"green",dark:a.value,readonly:!0!==f.value,...r("gSlide",{"onUpdate:modelValue":e=>D(e,"g",255),onChange:e=>D(e,"g",255,void 0,!0)})}),h("input",{value:p.value.g,maxlength:3,readonly:!0!==f.value,onChange:stop$1,...r("gIn",{onInput:e=>D(e.target.value,"g",255,e),onBlur:e=>D(e.target.value,"g",255,e,!0)})})]),h("div",{class:"row items-center no-wrap"},[h("div","B"),h(QSlider_default,{modelValue:p.value.b,min:0,max:255,color:"blue",readonly:!0!==f.value,dark:a.value,...r("bSlide",{"onUpdate:modelValue":e=>D(e,"b",255),onChange:e=>D(e,"b",255,void 0,!0)})}),h("input",{value:p.value.b,maxlength:3,readonly:!0!==f.value,onChange:stop$1,...r("bIn",{onInput:e=>D(e.target.value,"b",255,e),onBlur:e=>D(e.target.value,"b",255,e,!0)})})]),!0===_.value?h("div",{class:"row items-center no-wrap"},[h("div","A"),h(QSlider_default,{modelValue:p.value.a,color:"grey",readonly:!0!==f.value,dark:a.value,...r("aSlide",{"onUpdate:modelValue":e=>D(e,"a",100),onChange:e=>D(e,"a",100,void 0,!0)})}),h("input",{value:p.value.a,maxlength:3,readonly:!0!==f.value,onChange:stop$1,...r("aIn",{onInput:e=>D(e.target.value,"a",100,e),onBlur:e=>D(e.target.value,"a",100,e,!0)})})]):null]}function j(){return[h("div",{class:"row items-center q-color-picker__palette-rows"+(!0===f.value?" q-color-picker__palette-rows--editable":"")},S.value.map((e=>h("div",{class:"q-color-picker__cube col-auto",style:{backgroundColor:e},...!0===f.value?r("palette#"+e,{onClick:()=>{!function(e){const t=$(e),n={r:t.r,g:t.g,b:t.b,a:t.a};void 0===n.a&&(n.a=p.value.a),p.value.h=t.h,p.value.s=t.s,p.value.v=t.v,T(n,!0)}(e)}}):{}}))))]}return()=>{const t=[h(QTabPanels_default,{modelValue:d.value,animated:!0},(()=>[h(QTabPanel_default,{class:"q-color-picker__spectrum-tab overflow-hidden",name:"spectrum"},z),h(QTabPanel_default,{class:"q-pa-md q-color-picker__tune-tab",name:"tune"},F),h(QTabPanel_default,{class:"q-color-picker__palette-tab",name:"palette"},j)]))];return void 0!==e.name&&!0!==e.disable&&g(t,"push"),!0!==e.noHeader&&t.unshift(function(){const t=[];return!0!==e.noHeaderTabs&&t.push(h(QTabs_default,{class:"q-color-picker__header-tabs",modelValue:c.value,dense:!0,align:"justify","onUpdate:modelValue":O},(()=>[h(QTab_default,{label:"HEX"+(!0===_.value?"A":""),name:"hex",ripple:!1}),h(QTab_default,{label:"RGB"+(!0===_.value?"A":""),name:"rgb",ripple:!1})]))),t.push(h("div",{class:"q-color-picker__header-banner row flex-center no-wrap"},[h("input",{class:"fit",value:p.value[c.value],...!0!==f.value?{readonly:!0}:{},...r("topIn",{onInput:e=>{R(!0===B(e))},onChange:stop$1,onBlur:e=>{!0===B(e,!0)&&n.$forceUpdate(),R(!1)}})}),h(QIcon_default,{ref:l,class:"q-color-picker__error-icon absolute no-pointer-events",name:o.iconSet.type.negative})])),h("div",{class:"q-color-picker__header relative-position overflow-hidden"},[h("div",{class:"q-color-picker__header-bg absolute-full"}),h("div",{class:y.value,style:b.value},t)])}()),!0!==e.noFooter&&t.push(h("div",{class:"q-color-picker__footer relative-position overflow-hidden"},[h(QTabs_default,{class:"absolute-full",modelValue:d.value,dense:!0,align:"justify","onUpdate:modelValue":V},(()=>[h(QTab_default,{icon:o.iconSet.colorPicker.spectrum,name:"spectrum",ripple:!1}),h(QTab_default,{icon:o.iconSet.colorPicker.tune,name:"tune",ripple:!1}),h(QTab_default,{icon:o.iconSet.colorPicker.palette,name:"palette",ripple:!1})]))])),h("div",{class:k.value,...x.value},t)}}});var breaks=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];function toJalaali(e,t,n){return"[object Date]"===Object.prototype.toString.call(e)&&(n=e.getDate(),t=e.getMonth()+1,e=e.getFullYear()),d2j(g2d(e,t,n))}function toGregorian(e,t,n){return d2g(j2d(e,t,n))}function isLeapJalaaliYear(e){return 0===jalCalLeap(e)}function jalaaliMonthLength(e,t){return t<=6?31:t<=11||isLeapJalaaliYear(e)?30:29}function jalCalLeap(e){const t=breaks.length;let n,o,a,r,i,l=breaks[0];if(e<l||e>=breaks[t-1])throw new Error("Invalid Jalaali year "+e);for(i=1;i<t&&(n=breaks[i],o=n-l,!(e<n));i+=1)l=n;return r=e-l,o-r<6&&(r=r-o+33*div(o+4,33)),a=mod(mod(r+1,33)-1,4),-1===a&&(a=4),a}function jalCal(e,t){const n=breaks.length,o=e+621;let a,r,i,l,s,u=-14,c=breaks[0];if(e<c||e>=breaks[n-1])throw new Error("Invalid Jalaali year "+e);for(s=1;s<n&&(a=breaks[s],r=a-c,!(e<a));s+=1)u=u+8*div(r,33)+div(mod(r,33),4),c=a;l=e-c,u=u+8*div(l,33)+div(mod(l,33)+3,4),4===mod(r,33)&&r-l==4&&(u+=1);const d=20+u-(div(o,4)-div(3*(div(o,100)+1),4)-150);return t||(r-l<6&&(l=l-r+33*div(r+4,33)),i=mod(mod(l+1,33)-1,4),-1===i&&(i=4)),{leap:i,gy:o,march:d}}function j2d(e,t,n){const o=jalCal(e,!0);return g2d(o.gy,3,o.march)+31*(t-1)-div(t,7)*(t-7)+n-1}function d2j(e){const t=d2g(e).gy;let n,o,a,r=t-621;const i=jalCal(r,!1);if(a=e-g2d(t,3,i.march),a>=0){if(a<=185)return o=1+div(a,31),n=mod(a,31)+1,{jy:r,jm:o,jd:n};a-=186}else r-=1,a+=179,1===i.leap&&(a+=1);return o=7+div(a,30),n=mod(a,30)+1,{jy:r,jm:o,jd:n}}function g2d(e,t,n){let o=div(1461*(e+div(t-8,6)+100100),4)+div(153*mod(t+9,12)+2,5)+n-34840408;return o=o-div(3*div(e+100100+div(t-8,6),100),4)+752,o}function d2g(e){let t=4*e+139361631;t=t+4*div(3*div(4*e+183187720,146097),4)-3908;const n=5*div(mod(t,1461),4)+308,o=div(mod(n,153),5)+1,a=mod(div(n,153),12)+1;return{gy:div(t,1461)-100100+div(8-a,6),gm:a,gd:o}}function div(e,t){return~~(e/t)}function mod(e,t){return e-~~(e/t)*t}var calendars=["gregorian","persian"],useDatetimeProps={mask:{type:String},locale:Object,calendar:{type:String,validator:e=>calendars.includes(e),default:"gregorian"},landscape:Boolean,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,readonly:Boolean,disable:Boolean},useDatetimeEmits=["update:modelValue"];function getDayHash(e){return e.year+"/"+pad(e.month)+"/"+pad(e.day)}function use_datetime_default(e,t){const n=computed((()=>!0!==e.disable&&!0!==e.readonly)),o=computed((()=>!0===n.value?0:-1)),a=computed((()=>{const t=[];return void 0!==e.color&&t.push(`bg-${e.color}`),void 0!==e.textColor&&t.push(`text-${e.textColor}`),t.join(" ")}));return{editable:n,tabindex:o,headerClass:a,getLocale:function(){return void 0!==e.locale?{...t.lang.date,...e.locale}:t.lang.date},getCurrentDate:function(t){const n=new Date,o=!0===t?null:0;if("persian"===e.calendar){const e=toJalaali(n);return{year:e.jy,month:e.jm,day:e.jd}}return{year:n.getFullYear(),month:n.getMonth()+1,day:n.getDate(),hour:o,minute:o,second:o,millisecond:o}}}}var MILLISECONDS_IN_DAY=864e5,MILLISECONDS_IN_HOUR=36e5,MILLISECONDS_IN_MINUTE=6e4,defaultMask="YYYY-MM-DDTHH:mm:ss.SSSZ",token=/\[((?:[^\]\\]|\\]|\\)*)\]|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]/g,reverseToken=/(\[[^\]]*\])|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]|([.*+:?^,\s${}()|\\]+)/g,regexStore={};function getRegexData(e,t){const n="("+t.days.join("|")+")",o=e+n;if(void 0!==regexStore[o])return regexStore[o];const a="("+t.daysShort.join("|")+")",r="("+t.months.join("|")+")",i="("+t.monthsShort.join("|")+")",l={};let s=0;const u=e.replace(reverseToken,(e=>{switch(s++,e){case"YY":return l.YY=s,"(-?\\d{1,2})";case"YYYY":return l.YYYY=s,"(-?\\d{1,4})";case"M":return l.M=s,"(\\d{1,2})";case"Mo":return l.M=s++,"(\\d{1,2}(st|nd|rd|th))";case"MM":return l.M=s,"(\\d{2})";case"MMM":return l.MMM=s,i;case"MMMM":return l.MMMM=s,r;case"D":return l.D=s,"(\\d{1,2})";case"Do":return l.D=s++,"(\\d{1,2}(st|nd|rd|th))";case"DD":return l.D=s,"(\\d{2})";case"H":return l.H=s,"(\\d{1,2})";case"HH":return l.H=s,"(\\d{2})";case"h":return l.h=s,"(\\d{1,2})";case"hh":return l.h=s,"(\\d{2})";case"m":return l.m=s,"(\\d{1,2})";case"mm":return l.m=s,"(\\d{2})";case"s":return l.s=s,"(\\d{1,2})";case"ss":return l.s=s,"(\\d{2})";case"S":return l.S=s,"(\\d{1})";case"SS":return l.S=s,"(\\d{2})";case"SSS":return l.S=s,"(\\d{3})";case"A":return l.A=s,"(AM|PM)";case"a":return l.a=s,"(am|pm)";case"aa":return l.aa=s,"(a\\.m\\.|p\\.m\\.)";case"ddd":return a;case"dddd":return n;case"Q":case"d":case"E":return"(\\d{1})";case"do":return s++,"(\\d{1}(st|nd|rd|th))";case"Qo":return"(1st|2nd|3rd|4th)";case"DDD":case"DDDD":return"(\\d{1,3})";case"DDDo":return s++,"(\\d{1,3}(st|nd|rd|th))";case"w":return"(\\d{1,2})";case"wo":return s++,"(\\d{1,2}(st|nd|rd|th))";case"ww":return"(\\d{2})";case"Z":return l.Z=s,"(Z|[+-]\\d{2}:\\d{2})";case"ZZ":return l.ZZ=s,"(Z|[+-]\\d{2}\\d{2})";case"X":return l.X=s,"(-?\\d+)";case"x":return l.x=s,"(-?\\d{4,})";default:return s--,"["===e[0]&&(e=e.substring(1,e.length-1)),e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}})),c={map:l,regex:new RegExp("^"+u)};return regexStore[o]=c,c}function getDateLocale(e,t){return void 0!==e?e:void 0!==t?t.date:en_US_default.date}function formatTimezone(e,t=""){const n=e>0?"-":"+",o=Math.abs(e),a=o%60;return n+pad(Math.floor(o/60))+t+pad(a)}function __splitDate(e,t,n,o,a){const r={year:null,month:null,day:null,hour:null,minute:null,second:null,millisecond:null,timezoneOffset:null,dateHash:null,timeHash:null};if(void 0!==a&&Object.assign(r,a),null==e||""===e||"string"!=typeof e)return r;void 0===t&&(t=defaultMask);const i=getDateLocale(n,Lang_default.props),l=i.months,s=i.monthsShort,{regex:u,map:c}=getRegexData(t,i),d=e.match(u);if(null===d)return r;let p="";if(void 0!==c.X||void 0!==c.x){const e=parseInt(d[void 0!==c.X?c.X:c.x],10);if(!0===isNaN(e)||e<0)return r;const t=new Date(e*(void 0!==c.X?1e3:1));r.year=t.getFullYear(),r.month=t.getMonth()+1,r.day=t.getDate(),r.hour=t.getHours(),r.minute=t.getMinutes(),r.second=t.getSeconds(),r.millisecond=t.getMilliseconds()}else{if(void 0!==c.YYYY)r.year=parseInt(d[c.YYYY],10);else if(void 0!==c.YY){const e=parseInt(d[c.YY],10);r.year=e<0?e:2e3+e}if(void 0!==c.M){if(r.month=parseInt(d[c.M],10),r.month<1||r.month>12)return r}else void 0!==c.MMM?r.month=s.indexOf(d[c.MMM])+1:void 0!==c.MMMM&&(r.month=l.indexOf(d[c.MMMM])+1);if(void 0!==c.D){if(r.day=parseInt(d[c.D],10),null===r.year||null===r.month||r.day<1)return r;const e="persian"!==o?new Date(r.year,r.month,0).getDate():jalaaliMonthLength(r.year,r.month);if(r.day>e)return r}void 0!==c.H?r.hour=parseInt(d[c.H],10)%24:void 0!==c.h&&(r.hour=parseInt(d[c.h],10)%12,(c.A&&"PM"===d[c.A]||c.a&&"pm"===d[c.a]||c.aa&&"p.m."===d[c.aa])&&(r.hour+=12),r.hour=r.hour%24),void 0!==c.m&&(r.minute=parseInt(d[c.m],10)%60),void 0!==c.s&&(r.second=parseInt(d[c.s],10)%60),void 0!==c.S&&(r.millisecond=parseInt(d[c.S],10)*10**(3-d[c.S].length)),void 0===c.Z&&void 0===c.ZZ||(p=void 0!==c.Z?d[c.Z].replace(":",""):d[c.ZZ],r.timezoneOffset=("+"===p[0]?-1:1)*(60*p.slice(1,3)+1*p.slice(3,5)))}return r.dateHash=pad(r.year,6)+"/"+pad(r.month)+"/"+pad(r.day),r.timeHash=pad(r.hour)+":"+pad(r.minute)+":"+pad(r.second)+p,r}function getWeekOfYear(e){const t=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);const n=new Date(t.getFullYear(),0,4);n.setDate(n.getDate()-(n.getDay()+6)%7+3);const o=t.getTimezoneOffset()-n.getTimezoneOffset();t.setHours(t.getHours()-o);const a=(t-n)/(7*MILLISECONDS_IN_DAY);return 1+Math.floor(a)}function startOfDate(e,t,n){const o=new Date(e),a="set"+(!0===n?"UTC":"");switch(t){case"year":case"years":o[`${a}Month`](0);case"month":case"months":o[`${a}Date`](1);case"day":case"days":case"date":o[`${a}Hours`](0);case"hour":case"hours":o[`${a}Minutes`](0);case"minute":case"minutes":o[`${a}Seconds`](0);case"second":case"seconds":o[`${a}Milliseconds`](0)}return o}function getDiff(e,t,n){return(e.getTime()-e.getTimezoneOffset()*MILLISECONDS_IN_MINUTE-(t.getTime()-t.getTimezoneOffset()*MILLISECONDS_IN_MINUTE))/n}function getDateDiff(e,t,n="days"){const o=new Date(e),a=new Date(t);switch(n){case"years":case"year":return o.getFullYear()-a.getFullYear();case"months":case"month":return 12*(o.getFullYear()-a.getFullYear())+o.getMonth()-a.getMonth();case"days":case"day":case"date":return getDiff(startOfDate(o,"day"),startOfDate(a,"day"),MILLISECONDS_IN_DAY);case"hours":case"hour":return getDiff(startOfDate(o,"hour"),startOfDate(a,"hour"),MILLISECONDS_IN_HOUR);case"minutes":case"minute":return getDiff(startOfDate(o,"minute"),startOfDate(a,"minute"),MILLISECONDS_IN_MINUTE);case"seconds":case"second":return getDiff(startOfDate(o,"second"),startOfDate(a,"second"),1e3)}}function getDayOfYear(e){return getDateDiff(e,startOfDate(e,"year"),"days")+1}function getOrdinal(e){if(e>=11&&e<=13)return`${e}th`;switch(e%10){case 1:return`${e}st`;case 2:return`${e}nd`;case 3:return`${e}rd`}return`${e}th`}var formatter={YY(e,t,n){const o=this.YYYY(e,t,n)%100;return o>=0?pad(o):"-"+pad(Math.abs(o))},YYYY:(e,t,n)=>null!=n?n:e.getFullYear(),M:e=>e.getMonth()+1,Mo:e=>getOrdinal(e.getMonth()+1),MM:e=>pad(e.getMonth()+1),MMM:(e,t)=>t.monthsShort[e.getMonth()],MMMM:(e,t)=>t.months[e.getMonth()],Q:e=>Math.ceil((e.getMonth()+1)/3),Qo(e){return getOrdinal(this.Q(e))},D:e=>e.getDate(),Do:e=>getOrdinal(e.getDate()),DD:e=>pad(e.getDate()),DDD:e=>getDayOfYear(e),DDDo:e=>getOrdinal(getDayOfYear(e)),DDDD:e=>pad(getDayOfYear(e),3),d:e=>e.getDay(),do:e=>getOrdinal(e.getDay()),dd:(e,t)=>t.days[e.getDay()].slice(0,2),ddd:(e,t)=>t.daysShort[e.getDay()],dddd:(e,t)=>t.days[e.getDay()],E:e=>e.getDay()||7,w:e=>getWeekOfYear(e),wo:e=>getOrdinal(getWeekOfYear(e)),ww:e=>pad(getWeekOfYear(e)),H:e=>e.getHours(),HH:e=>pad(e.getHours()),h(e){const t=e.getHours();return 0===t?12:t>12?t%12:t},hh(e){return pad(this.h(e))},m:e=>e.getMinutes(),mm:e=>pad(e.getMinutes()),s:e=>e.getSeconds(),ss:e=>pad(e.getSeconds()),S:e=>Math.floor(e.getMilliseconds()/100),SS:e=>pad(Math.floor(e.getMilliseconds()/10)),SSS:e=>pad(e.getMilliseconds(),3),A:e=>e.getHours()<12?"AM":"PM",a:e=>e.getHours()<12?"am":"pm",aa:e=>e.getHours()<12?"a.m.":"p.m.",Z:(e,t,n,o)=>formatTimezone(null==o?e.getTimezoneOffset():o,":"),ZZ:(e,t,n,o)=>formatTimezone(null==o?e.getTimezoneOffset():o),X:e=>Math.floor(e.getTime()/1e3),x:e=>e.getTime()};function formatDate(e,t,n,o,a){if(0!==e&&!e||e===1/0||e===-1/0)return;const r=new Date(e);if(isNaN(r))return;void 0===t&&(t=defaultMask);const i=getDateLocale(n,Lang_default.props);return t.replace(token,((e,t)=>e in formatter?formatter[e](r,i,o,a):void 0===t?e:t.split("\\]").join("]")))}var yearsInterval=20,views=["Calendar","Years","Months"],viewIsValid=e=>views.includes(e),yearMonthValidator=e=>/^-?[\d]+\/[0-1]\d$/.test(e),lineStr=" — ";function getMonthHash(e){return e.year+"/"+pad(e.month)}function use_history_default(e,t,n){function o(){}return onBeforeUnmount((()=>{e.value})),{removeFromHistory:o,addToHistory(){}}}createComponent({name:"QDate",props:{...useDatetimeProps,...useFormProps,...useDarkProps,modelValue:{required:!0,validator:e=>"string"==typeof e||!0===Array.isArray(e)||Object(e)===e||null===e},multiple:Boolean,range:Boolean,title:String,subtitle:String,mask:{...useDatetimeProps.mask,default:"YYYY/MM/DD"},defaultYearMonth:{type:String,validator:yearMonthValidator},yearsInMonthView:Boolean,events:[Array,Function],eventColor:[String,Function],emitImmediately:Boolean,options:[Array,Function],navigationMinYearMonth:{type:String,validator:yearMonthValidator},navigationMaxYearMonth:{type:String,validator:yearMonthValidator},noUnset:Boolean,firstDayOfWeek:[String,Number],todayBtn:Boolean,minimal:Boolean,defaultView:{type:String,default:"Calendar",validator:viewIsValid}},emits:[...useDatetimeEmits,"rangeStart","rangeEnd","navigation"],setup(e,{slots:t,emit:n}){const{proxy:o}=getCurrentInstance(),{$q:a}=o,r=use_dark_default(e,a),{getCache:i}=use_render_cache_default(),{tabindex:l,headerClass:s,getLocale:u,getCurrentDate:c}=use_datetime_default(e,a);let d;const p=useFormInject(useFormAttrs(e)),f=ref(null),v=ref(le()),m=ref(u()),g=computed((()=>le())),_=computed((()=>u())),b=computed((()=>c())),y=ref(ue(v.value,m.value)),w=ref(e.defaultView),C=computed((()=>!0===a.lang.rtl?"right":"left")),S=ref(C.value),k=ref(C.value),x=y.value.year,M=ref(x-x%yearsInterval-(x<0?yearsInterval:0)),T=ref(null),$=computed((()=>{const t=!0===e.landscape?"landscape":"portrait";return`q-date q-date--${t} q-date--${t}-${!0===e.minimal?"minimal":"standard"}`+(!0===r.value?" q-date--dark q-dark":"")+(!0===e.bordered?" q-date--bordered":"")+(!0===e.square?" q-date--square no-border-radius":"")+(!0===e.flat?" q-date--flat no-shadow":"")+(!0===e.disable?" disabled":!0===e.readonly?" q-date--readonly":"")})),E=computed((()=>e.color||"primary")),N=computed((()=>e.textColor||"white")),L=computed((()=>!0===e.emitImmediately&&!0!==e.multiple&&!0!==e.range)),D=computed((()=>!0===Array.isArray(e.modelValue)?e.modelValue:null!==e.modelValue&&void 0!==e.modelValue?[e.modelValue]:[])),B=computed((()=>D.value.filter((e=>"string"==typeof e)).map((e=>se(e,v.value,m.value))).filter((e=>null!==e.dateHash&&null!==e.day&&null!==e.month&&null!==e.year)))),q=computed((()=>{const e=e=>se(e,v.value,m.value);return D.value.filter((e=>!0===isObject(e)&&void 0!==e.from&&void 0!==e.to)).map((t=>({from:e(t.from),to:e(t.to)}))).filter((e=>null!==e.from.dateHash&&null!==e.to.dateHash&&e.from.dateHash<e.to.dateHash))})),P=computed((()=>"persian"!==e.calendar?e=>new Date(e.year,e.month-1,e.day):e=>{const t=toGregorian(e.year,e.month,e.day);return new Date(t.gy,t.gm-1,t.gd)})),A=computed((()=>"persian"===e.calendar?getDayHash:(e,t,n)=>formatDate(new Date(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond),void 0===t?v.value:t,void 0===n?m.value:n,e.year,e.timezoneOffset))),I=computed((()=>B.value.length+q.value.reduce(((e,t)=>e+1+getDateDiff(P.value(t.to),P.value(t.from))),0))),R=computed((()=>{if(void 0!==e.title&&null!==e.title&&0!==e.title.length)return e.title;if(null!==T.value){const e=T.value.init,t=P.value(e);return m.value.daysShort[t.getDay()]+", "+m.value.monthsShort[e.month-1]+" "+e.day+lineStr+"?"}if(0===I.value)return lineStr;if(I.value>1)return`${I.value} ${m.value.pluralDay}`;const t=B.value[0],n=P.value(t);return!0===isNaN(n.valueOf())?lineStr:void 0!==m.value.headerTitle?m.value.headerTitle(n,t):m.value.daysShort[n.getDay()]+", "+m.value.monthsShort[t.month-1]+" "+t.day})),O=computed((()=>B.value.concat(q.value.map((e=>e.from))).sort(((e,t)=>e.year-t.year||e.month-t.month))[0])),V=computed((()=>B.value.concat(q.value.map((e=>e.to))).sort(((e,t)=>t.year-e.year||t.month-e.month))[0])),z=computed((()=>{if(void 0!==e.subtitle&&null!==e.subtitle&&0!==e.subtitle.length)return e.subtitle;if(0===I.value)return lineStr;if(I.value>1){const e=O.value,t=V.value,n=m.value.monthsShort;return n[e.month-1]+(e.year!==t.year?" "+e.year+lineStr+n[t.month-1]+" ":e.month!==t.month?lineStr+n[t.month-1]:"")+" "+t.year}return B.value[0].year})),F=computed((()=>{const e=[a.iconSet.datetime.arrowLeft,a.iconSet.datetime.arrowRight];return!0===a.lang.rtl?e.reverse():e})),j=computed((()=>void 0!==e.firstDayOfWeek?Number(e.firstDayOfWeek):m.value.firstDayOfWeek)),H=computed((()=>{const e=m.value.daysShort,t=j.value;return t>0?e.slice(t,7).concat(e.slice(0,t)):e})),U=computed((()=>{const t=y.value;return"persian"!==e.calendar?new Date(t.year,t.month,0).getDate():jalaaliMonthLength(t.year,t.month)})),Q=computed((()=>"function"==typeof e.eventColor?e.eventColor:()=>e.eventColor)),Y=computed((()=>{if(void 0===e.navigationMinYearMonth)return null;const t=e.navigationMinYearMonth.split("/");return{year:parseInt(t[0],10),month:parseInt(t[1],10)}})),W=computed((()=>{if(void 0===e.navigationMaxYearMonth)return null;const t=e.navigationMaxYearMonth.split("/");return{year:parseInt(t[0],10),month:parseInt(t[1],10)}})),K=computed((()=>{const e={month:{prev:!0,next:!0},year:{prev:!0,next:!0}};return null!==Y.value&&Y.value.year>=y.value.year&&(e.year.prev=!1,Y.value.year===y.value.year&&Y.value.month>=y.value.month&&(e.month.prev=!1)),null!==W.value&&W.value.year<=y.value.year&&(e.year.next=!1,W.value.year===y.value.year&&W.value.month<=y.value.month&&(e.month.next=!1)),e})),G=computed((()=>{const e={};return B.value.forEach((t=>{const n=getMonthHash(t);void 0===e[n]&&(e[n]=[]),e[n].push(t.day)})),e})),X=computed((()=>{const e={};return q.value.forEach((t=>{const n=getMonthHash(t.from),o=getMonthHash(t.to);if(void 0===e[n]&&(e[n]=[]),e[n].push({from:t.from.day,to:n===o?t.to.day:void 0,range:t}),n<o){let n;const{year:a,month:r}=t.from,i=r<12?{year:a,month:r+1}:{year:a+1,month:1};for(;(n=getMonthHash(i))<=o;)void 0===e[n]&&(e[n]=[]),e[n].push({from:void 0,to:n===o?t.to.day:void 0,range:t}),i.month++,i.month>12&&(i.year++,i.month=1)}})),e})),Z=computed((()=>{if(null===T.value)return;const{init:e,initHash:t,final:n,finalHash:o}=T.value,[a,r]=t<=o?[e,n]:[n,e],i=getMonthHash(a),l=getMonthHash(r);if(i!==J.value&&l!==J.value)return;const s={};return i===J.value?(s.from=a.day,s.includeFrom=!0):s.from=1,l===J.value?(s.to=r.day,s.includeTo=!0):s.to=U.value,s})),J=computed((()=>getMonthHash(y.value))),ee=computed((()=>{const t={};if(void 0===e.options){for(let e=1;e<=U.value;e++)t[e]=!0;return t}const n="function"==typeof e.options?e.options:t=>e.options.includes(t);for(let e=1;e<=U.value;e++){const o=J.value+"/"+pad(e);t[e]=n(o)}return t})),te=computed((()=>{const t={};if(void 0===e.events)for(let e=1;e<=U.value;e++)t[e]=!1;else{const n="function"==typeof e.events?e.events:t=>e.events.includes(t);for(let e=1;e<=U.value;e++){const o=J.value+"/"+pad(e);t[e]=!0===n(o)&&Q.value(o)}}return t})),ne=computed((()=>{let t,n;const{year:o,month:a}=y.value;if("persian"!==e.calendar)t=new Date(o,a-1,1),n=new Date(o,a-1,0).getDate();else{const e=toGregorian(o,a,1);t=new Date(e.gy,e.gm-1,e.gd);let r=a-1,i=o;0===r&&(r=12,i--),n=jalaaliMonthLength(i,r)}return{days:t.getDay()-j.value-1,endDay:n}})),oe=computed((()=>{const e=[],{days:t,endDay:n}=ne.value,o=t<0?t+7:t;if(o<6)for(let t=n-o;t<=n;t++)e.push({i:t,fill:!0});const a=e.length;for(let t=1;t<=U.value;t++){const n={i:t,event:te.value[t],classes:[]};!0===ee.value[t]&&(n.in=!0,n.flat=!0),e.push(n)}if(void 0!==G.value[J.value]&&G.value[J.value].forEach((t=>{const n=a+t-1;Object.assign(e[n],{selected:!0,unelevated:!0,flat:!1,color:E.value,textColor:N.value})})),void 0!==X.value[J.value]&&X.value[J.value].forEach((t=>{if(void 0!==t.from){const n=a+t.from-1,o=a+(t.to||U.value)-1;for(let a=n;a<=o;a++)Object.assign(e[a],{range:t.range,unelevated:!0,color:E.value,textColor:N.value});Object.assign(e[n],{rangeFrom:!0,flat:!1}),void 0!==t.to&&Object.assign(e[o],{rangeTo:!0,flat:!1})}else if(void 0!==t.to){const n=a+t.to-1;for(let o=a;o<=n;o++)Object.assign(e[o],{range:t.range,unelevated:!0,color:E.value,textColor:N.value});Object.assign(e[n],{flat:!1,rangeTo:!0})}else{const n=a+U.value-1;for(let o=a;o<=n;o++)Object.assign(e[o],{range:t.range,unelevated:!0,color:E.value,textColor:N.value})}})),void 0!==Z.value){const t=a+Z.value.from-1,n=a+Z.value.to-1;for(let o=t;o<=n;o++)e[o].color=E.value,e[o].editRange=!0;!0===Z.value.includeFrom&&(e[t].editRangeFrom=!0),!0===Z.value.includeTo&&(e[n].editRangeTo=!0)}y.value.year===b.value.year&&y.value.month===b.value.month&&(e[a+b.value.day-1].today=!0);const r=e.length%7;if(r>0){const t=7-r;for(let n=1;n<=t;n++)e.push({i:n,fill:!0})}return e.forEach((e=>{let t="q-date__calendar-item ";!0===e.fill?t+="q-date__calendar-item--fill":(t+="q-date__calendar-item--"+(!0===e.in?"in":"out"),void 0!==e.range&&(t+=" q-date__range"+(!0===e.rangeTo?"-to":!0===e.rangeFrom?"-from":"")),!0===e.editRange&&(t+=` q-date__edit-range${!0===e.editRangeFrom?"-from":""}${!0===e.editRangeTo?"-to":""}`),void 0===e.range&&!0!==e.editRange||(t+=` text-${e.color}`)),e.classes=t})),e})),ae=computed((()=>!0===e.disable?{"aria-disabled":"true"}:{}));function re(){const{year:e,month:t,day:n}=b.value,o={...y.value,year:e,month:t,day:n},a=G.value[getMonthHash(o)];void 0!==a&&!1!==a.includes(o.day)||be(o),ie(o.year,o.month)}function ie(e,t){w.value="Calendar",fe(e,t)}function le(){return"persian"===e.calendar?"YYYY/MM/DD":e.mask}function se(t,n,o){return __splitDate(t,n,o,e.calendar,{hour:0,minute:0,second:0,millisecond:0})}function ue(t,n){const o=!0===Array.isArray(e.modelValue)?e.modelValue:e.modelValue?[e.modelValue]:[];if(0===o.length)return ce();const a=o[o.length-1],r=se(void 0!==a.from?a.from:a,t,n);return null===r.dateHash?ce():r}function ce(){let t,n;if(void 0!==e.defaultYearMonth){const o=e.defaultYearMonth.split("/");t=parseInt(o[0],10),n=parseInt(o[1],10)}else{const e=void 0!==b.value?b.value:c();t=e.year,n=e.month}return{year:t,month:n,day:1,hour:0,minute:0,second:0,millisecond:0,dateHash:t+"/"+pad(n)+"/01"}}function de(e){let t=y.value.year,n=Number(y.value.month)+e;13===n?(n=1,t++):0===n&&(n=12,t--),fe(t,n),!0===L.value&&me("month")}function pe(e){fe(Number(y.value.year)+e,y.value.month),!0===L.value&&me("year")}function he(e){return{year:e.year,month:e.month,day:e.day}}function fe(e,t,n){if(null!==Y.value&&e<=Y.value.year&&((t<Y.value.month||e<Y.value.year)&&(t=Y.value.month),e=Y.value.year),null!==W.value&&e>=W.value.year&&((t>W.value.month||e>W.value.year)&&(t=W.value.month),e=W.value.year),void 0!==n){const{hour:e,minute:t,second:o,millisecond:a,timezoneOffset:r,timeHash:i}=n;Object.assign(y.value,{hour:e,minute:t,second:o,millisecond:a,timezoneOffset:r,timeHash:i})}const o=e+"/"+pad(t)+"/01";o!==y.value.dateHash&&(S.value=y.value.dateHash<o==(!0!==a.lang.rtl)?"left":"right",e!==y.value.year&&(k.value=S.value),nextTick((()=>{M.value=e-e%yearsInterval-(e<0?yearsInterval:0),Object.assign(y.value,{year:e,month:t,day:1,dateHash:o})})))}function ve(t,o,a){const r=null!==t&&1===t.length&&!1===e.multiple?t[0]:t;d=r;const{reason:i,details:l}=ge(o,a);n("update:modelValue",r,i,l)}function me(t){const o=void 0!==B.value[0]&&null!==B.value[0].dateHash?{...B.value[0]}:{...y.value};nextTick((()=>{o.year=y.value.year,o.month=y.value.month;const a="persian"!==e.calendar?new Date(o.year,o.month,0).getDate():jalaaliMonthLength(o.year,o.month);o.day=Math.min(Math.max(1,o.day),a);const r=_e(o);d=r;const{details:i}=ge("",o);n("update:modelValue",r,t,i)}))}function ge(e,t){return void 0!==t.from?{reason:`${e}-range`,details:{...he(t.target),from:he(t.from),to:he(t.to)}}:{reason:`${e}-day`,details:he(t)}}function _e(e,t,n){return void 0!==e.from?{from:A.value(e.from,t,n),to:A.value(e.to,t,n)}:A.value(e,t,n)}function be(t){let n;if(!0===e.multiple)if(void 0!==t.from){const e=getDayHash(t.from),o=getDayHash(t.to),a=B.value.filter((t=>t.dateHash<e||t.dateHash>o)),r=q.value.filter((({from:t,to:n})=>n.dateHash<e||t.dateHash>o));n=a.concat(r).concat(t).map((e=>_e(e)))}else{const e=D.value.slice();e.push(_e(t)),n=e}else n=_e(t);ve(n,"add",t)}function ye(t){if(!0===e.noUnset)return;let n=null;if(!0===e.multiple&&!0===Array.isArray(e.modelValue)){const o=_e(t);n=void 0!==t.from?e.modelValue.filter((e=>void 0===e.from||e.from!==o.from&&e.to!==o.to)):e.modelValue.filter((e=>e!==o)),0===n.length&&(n=null)}ve(n,"remove",t)}function we(t,o,a){const r=B.value.concat(q.value).map((e=>_e(e,t,o))).filter((e=>void 0!==e.from?null!==e.from.dateHash&&null!==e.to.dateHash:null!==e.dateHash));n("update:modelValue",(!0===e.multiple?r:r[0])||null,a)}function Ce(){if(!0!==e.minimal)return h("div",{class:"q-date__header "+s.value},[h("div",{class:"relative-position"},[h(Transition$1,{name:"q-transition--fade"},(()=>h("div",{key:"h-yr-"+z.value,class:"q-date__header-subtitle q-date__header-link "+("Years"===w.value?"q-date__header-link--active":"cursor-pointer"),tabindex:l.value,...i("vY",{onClick(){w.value="Years"},onKeyup(e){13===e.keyCode&&(w.value="Years")}})},[z.value])))]),h("div",{class:"q-date__header-title relative-position flex no-wrap"},[h("div",{class:"relative-position col"},[h(Transition$1,{name:"q-transition--fade"},(()=>h("div",{key:"h-sub"+R.value,class:"q-date__header-title-label q-date__header-link "+("Calendar"===w.value?"q-date__header-link--active":"cursor-pointer"),tabindex:l.value,...i("vC",{onClick(){w.value="Calendar"},onKeyup(e){13===e.keyCode&&(w.value="Calendar")}})},[R.value])))]),!0===e.todayBtn?h(QBtn_default,{class:"q-date__header-today self-start",icon:a.iconSet.datetime.today,flat:!0,size:"sm",round:!0,tabindex:l.value,onClick:re}):null])])}function Se({label:e,type:t,key:n,dir:o,goTo:a,boundaries:r,cls:s}){return[h("div",{class:"row items-center q-date__arrow"},[h(QBtn_default,{round:!0,dense:!0,size:"sm",flat:!0,icon:F.value[0],tabindex:l.value,disable:!1===r.prev,...i("go-#"+t,{onClick(){a(-1)}})})]),h("div",{class:"relative-position overflow-hidden flex flex-center"+s},[h(Transition$1,{name:"q-transition--jump-"+o},(()=>h("div",{key:n},[h(QBtn_default,{flat:!0,dense:!0,noCaps:!0,label:e,tabindex:l.value,...i("view#"+t,{onClick:()=>{w.value=t}})})])))]),h("div",{class:"row items-center q-date__arrow"},[h(QBtn_default,{round:!0,dense:!0,size:"sm",flat:!0,icon:F.value[1],tabindex:l.value,disable:!1===r.next,...i("go+#"+t,{onClick(){a(1)}})})])]}watch((()=>e.modelValue),(e=>{if(d===e)d=0;else{const e=ue(v.value,m.value);fe(e.year,e.month,e)}})),watch(w,(()=>{null!==f.value&&!0===o.$el.contains(document.activeElement)&&f.value.focus()})),watch((()=>y.value.year+"|"+y.value.month),(()=>{n("navigation",{year:y.value.year,month:y.value.month})})),watch(g,(e=>{we(e,m.value,"mask"),v.value=e})),watch(_,(e=>{we(v.value,e,"locale"),m.value=e}));const ke={Calendar:()=>[h("div",{key:"calendar-view",class:"q-date__view q-date__calendar"},[h("div",{class:"q-date__navigation row items-center no-wrap"},Se({label:m.value.months[y.value.month-1],type:"Months",key:y.value.month,dir:S.value,goTo:de,boundaries:K.value.month,cls:" col"}).concat(Se({label:y.value.year,type:"Years",key:y.value.year,dir:k.value,goTo:pe,boundaries:K.value.year,cls:""}))),h("div",{class:"q-date__calendar-weekdays row items-center no-wrap"},H.value.map((e=>h("div",{class:"q-date__calendar-item"},[h("div",e)])))),h("div",{class:"q-date__calendar-days-container relative-position overflow-hidden"},[h(Transition$1,{name:"q-transition--slide-"+S.value},(()=>h("div",{key:J.value,class:"q-date__calendar-days fit"},oe.value.map((t=>h("div",{class:t.classes},[!0===t.in?h(QBtn_default,{class:!0===t.today?"q-date__today":"",dense:!0,flat:t.flat,unelevated:t.unelevated,color:t.color,textColor:t.textColor,label:t.i,tabindex:l.value,...i("day#"+t.i,{onClick:()=>{!function(t){const o={...y.value,day:t};if(!1===e.range)return void function(e,t){const n=G.value[t];(void 0!==n&&!0===n.includes(e.day)?ye:be)(e)}(o,J.value);if(null===T.value){const a=oe.value.find((e=>!0!==e.fill&&e.i===t));if(!0!==e.noUnset&&void 0!==a.range)return void ye({target:o,from:a.range.from,to:a.range.to});if(!0===a.selected)return void ye(o);const r=getDayHash(o);T.value={init:o,initHash:r,final:o,finalHash:r},n("rangeStart",he(o))}else{const e=T.value.initHash,t=getDayHash(o),a=e<=t?{from:T.value.init,to:o}:{from:o,to:T.value.init};T.value=null,be(e===t?o:{target:o,...a}),n("rangeEnd",{from:he(a.from),to:he(a.to)})}}(t.i)},onMouseover:()=>{!function(e){if(null!==T.value){const t={...y.value,day:e};Object.assign(T.value,{final:t,finalHash:getDayHash(t)})}}(t.i)}})},!1!==t.event?()=>h("div",{class:"q-date__event bg-"+t.event}):null):h("div",""+t.i)]))))))])])],Months(){const t=y.value.year===b.value.year,n=e=>null!==Y.value&&y.value.year===Y.value.year&&Y.value.month>e||null!==W.value&&y.value.year===W.value.year&&W.value.month<e,o=m.value.monthsShort.map(((e,o)=>{const a=y.value.month===o+1;return h("div",{class:"q-date__months-item flex flex-center"},[h(QBtn_default,{class:!0===t&&b.value.month===o+1?"q-date__today":null,flat:!0!==a,label:e,unelevated:a,color:!0===a?E.value:null,textColor:!0===a?N.value:null,tabindex:l.value,disable:n(o+1),...i("month#"+o,{onClick:()=>{!function(e){fe(y.value.year,e),w.value="Calendar",!0===L.value&&me("month")}(o+1)}})})])}));return!0===e.yearsInMonthView&&o.unshift(h("div",{class:"row no-wrap full-width"},[Se({label:y.value.year,type:"Years",key:y.value.year,dir:k.value,goTo:pe,boundaries:K.value.year,cls:" col"})])),h("div",{key:"months-view",class:"q-date__view q-date__months flex flex-center"},o)},Years(){const t=M.value,n=t+yearsInterval,o=[],a=e=>null!==Y.value&&Y.value.year>e||null!==W.value&&W.value.year<e;for(let r=t;r<=n;r++){const t=y.value.year===r;o.push(h("div",{class:"q-date__years-item flex flex-center"},[h(QBtn_default,{key:"yr"+r,class:b.value.year===r?"q-date__today":null,flat:!t,label:r,dense:!0,unelevated:t,color:!0===t?E.value:null,textColor:!0===t?N.value:null,tabindex:l.value,disable:a(r),...i("yr#"+r,{onClick:()=>{fe(r,y.value.month),w.value="Years"===e.defaultView?"Months":"Calendar",!0===L.value&&me("year")}})})]))}return h("div",{class:"q-date__view q-date__years flex flex-center"},[h("div",{class:"col-auto"},[h(QBtn_default,{round:!0,dense:!0,flat:!0,icon:F.value[0],tabindex:l.value,disable:a(t),...i("y-",{onClick:()=>{M.value-=yearsInterval}})})]),h("div",{class:"q-date__years-content col self-stretch row items-center"},o),h("div",{class:"col-auto"},[h(QBtn_default,{round:!0,dense:!0,flat:!0,icon:F.value[1],tabindex:l.value,disable:a(n),...i("y+",{onClick:()=>{M.value+=yearsInterval}})})])])}};return Object.assign(o,{setToday:re,setView:function(e){!0===viewIsValid(e)&&(w.value=e)},offsetCalendar:function(e,t){if(["month","year"].includes(e)){("month"===e?de:pe)(!0===t?-1:1)}},setCalendarTo:ie,setEditingRange:function(t,n){if(!1===e.range||!t)return void(T.value=null);const o=Object.assign({...y.value},t),a=void 0!==n?Object.assign({...y.value},n):o;T.value={init:o,initHash:getDayHash(o),final:a,finalHash:getDayHash(a)},ie(o.year,o.month)}}),()=>{const n=[h("div",{class:"q-date__content col relative-position"},[h(Transition$1,{name:"q-transition--fade"},ke[w.value])])],o=hSlot(t.default);return void 0!==o&&n.push(h("div",{class:"q-date__actions"},o)),void 0!==e.name&&!0!==e.disable&&p(n,"push"),h("div",{class:$.value,...ae.value},[Ce(),h("div",{ref:f,class:"q-date__main col column",tabindex:-1},n)])}}});var scrollPositionX,scrollPositionY,maxScrollTop,bodyLeft,bodyTop,href,registered=0,vpPendingUpdate=!1,closeTimer=null;function onWheel(e){shouldPreventScroll(e)&&stopAndPrevent(e)}function shouldPreventScroll(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=getEventPath(e),n=e.shiftKey&&!e.deltaX,o=!n&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),a=n||o?e.deltaY:e.deltaX;for(let e=0;e<t.length;e++){const n=t[e];if(hasScrollbar(n,o))return o?a<0&&0===n.scrollTop||a>0&&n.scrollTop+n.clientHeight===n.scrollHeight:a<0&&0===n.scrollLeft||a>0&&n.scrollLeft+n.clientWidth===n.scrollWidth}return!0}function onAppleScroll(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function onAppleResize(e){!0!==vpPendingUpdate&&(vpPendingUpdate=!0,requestAnimationFrame((()=>{vpPendingUpdate=!1;const{height:t}=e.target,{clientHeight:n,scrollTop:o}=document.scrollingElement;void 0!==maxScrollTop&&t===window.innerHeight||(maxScrollTop=n-t,document.scrollingElement.scrollTop=o),o>maxScrollTop&&(document.scrollingElement.scrollTop-=Math.ceil((o-maxScrollTop)/8))})))}function apply(e){const t=document.body,n=void 0!==window.visualViewport;if("add"===e){const{overflowY:e,overflowX:o}=window.getComputedStyle(t);scrollPositionX=getHorizontalScrollPosition(window),scrollPositionY=getVerticalScrollPosition(window),bodyLeft=t.style.left,bodyTop=t.style.top,href=window.location.href,t.style.left=`-${scrollPositionX}px`,t.style.top=`-${scrollPositionY}px`,"hidden"!==o&&("scroll"===o||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),"hidden"!==e&&("scroll"===e||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,!0===client.is.ios&&(!0===n?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",onAppleResize,listenOpts.passiveCapture),window.visualViewport.addEventListener("scroll",onAppleResize,listenOpts.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",onAppleScroll,listenOpts.passiveCapture))}!0===client.is.desktop&&!0===client.is.mac&&window[`${e}EventListener`]("wheel",onWheel,listenOpts.notPassive),"remove"===e&&(!0===client.is.ios&&(!0===n?(window.visualViewport.removeEventListener("resize",onAppleResize,listenOpts.passiveCapture),window.visualViewport.removeEventListener("scroll",onAppleResize,listenOpts.passiveCapture)):window.removeEventListener("scroll",onAppleScroll,listenOpts.passiveCapture)),t.classList.remove("q-body--prevent-scroll"),t.classList.remove("q-body--force-scrollbar-x"),t.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,t.style.left=bodyLeft,t.style.top=bodyTop,window.location.href===href&&window.scrollTo(scrollPositionX,scrollPositionY),maxScrollTop=void 0)}function prevent_scroll_default(e){let t="add";if(!0===e){if(registered++,null!==closeTimer)return clearTimeout(closeTimer),void(closeTimer=null);if(registered>1)return}else{if(0===registered)return;if(--registered>0)return;if(t="remove",!0===client.is.ios&&!0===client.is.nativeMobile)return null!==closeTimer&&clearTimeout(closeTimer),void(closeTimer=setTimeout((()=>{apply(t),closeTimer=null}),100))}apply(t)}function use_prevent_scroll_default(){let e;return{preventBodyScroll(t){t===e||void 0===e&&!0!==t||(e=t,prevent_scroll_default(t))}}}var maximizedModals=0,positionClass={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},defaultTransitions={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},QDialog_default=createComponent({name:"QDialog",inheritAttrs:!1,props:{...useModelToggleProps,...useTransitionProps,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:"standard",validator:e=>["standard","top","bottom","left","right"].includes(e)}},emits:[...useModelToggleEmits,"shake","click","escapeKey"],setup(e,{slots:t,emit:n,attrs:o}){const a=getCurrentInstance(),r=ref(null),i=ref(!1),l=ref(!1);let s,u,c=null,d=null;const p=computed((()=>!0!==e.persistent&&!0!==e.noRouteDismiss&&!0!==e.seamless)),{preventBodyScroll:f}=use_prevent_scroll_default(),{registerTimeout:v}=use_timeout_default(),{registerTick:m,removeTick:g}=use_tick_default(),{transitionProps:_,transitionStyle:b}=use_transition_default(e,(()=>defaultTransitions[e.position][0]),(()=>defaultTransitions[e.position][1])),y=computed((()=>b.value+(void 0!==e.backdropFilter?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:""))),{showPortal:w,hidePortal:C,portalIsAccessible:S,renderPortal:k}=use_portal_default(a,r,(function(){return h("div",{role:"dialog","aria-modal":!0===E.value?"true":"false",...o,class:L.value},[h(Transition$1,{name:"q-transition--fade",appear:!0},(()=>!0===E.value?h("div",{class:"q-dialog__backdrop fixed-full",style:y.value,"aria-hidden":"true",tabindex:-1,onClick:R}):null)),h(Transition$1,_.value,(()=>!0===i.value?h("div",{ref:r,class:$.value,style:b.value,tabindex:-1,...N.value},hSlot(t.default)):null))])}),"dialog"),{hide:x}=use_model_toggle_default({showing:i,hideOnRouteChange:p,handleShow:function(t){M(),d=!1===e.noRefocus&&null!==document.activeElement?document.activeElement:null,A(e.maximized),w(),l.value=!0,!0!==e.noFocus?(null!==document.activeElement&&document.activeElement.blur(),m(D)):g();v((()=>{if(!0===a.proxy.$q.platform.is.ios){if(!0!==e.seamless&&document.activeElement){const{top:e,bottom:t}=document.activeElement.getBoundingClientRect(),{innerHeight:n}=window,o=void 0!==window.visualViewport?window.visualViewport.height:n;e>0&&t>o/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-o,t>=n?1/0:Math.ceil(document.scrollingElement.scrollTop+t-o/2))),document.activeElement.scrollIntoView()}u=!0,r.value.click(),u=!1}w(!0),l.value=!1,n("show",t)}),e.transitionDuration)},handleHide:function(t){g(),T(),P(!0),l.value=!0,C(),null!==d&&(((t&&0===t.type.indexOf("key")?d.closest('[tabindex]:not([tabindex^="-"])'):void 0)||d).focus(),d=null);v((()=>{C(!0),l.value=!1,n("hide",t)}),e.transitionDuration)},processOnMount:!0}),{addToHistory:M,removeFromHistory:T}=use_history_default(i),$=computed((()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${!0===e.maximized?"maximized":"minimized"} q-dialog__inner--${e.position} ${positionClass[e.position]}`+(!0===l.value?" q-dialog__inner--animating":"")+(!0===e.fullWidth?" q-dialog__inner--fullwidth":"")+(!0===e.fullHeight?" q-dialog__inner--fullheight":"")+(!0===e.square?" q-dialog__inner--square":""))),E=computed((()=>!0===i.value&&!0!==e.seamless)),N=computed((()=>!0===e.autoClose?{onClick:I}:{})),L=computed((()=>["q-dialog fullscreen no-pointer-events q-dialog--"+(!0===E.value?"modal":"seamless"),o.class]));function D(e){addFocusFn((()=>{let t=r.value;if(null!==t){if(void 0!==e){const n=t.querySelector(e);if(null!==n)return void n.focus({preventScroll:!0})}!0!==t.contains(document.activeElement)&&(t=t.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||t.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||t.querySelector("[autofocus], [data-autofocus]")||t,t.focus({preventScroll:!0}))}}))}function B(e){e&&"function"==typeof e.focus?e.focus({preventScroll:!0}):D(),n("shake");const t=r.value;null!==t&&(t.classList.remove("q-animate--scale"),t.classList.add("q-animate--scale"),null!==c&&clearTimeout(c),c=setTimeout((()=>{c=null,null!==r.value&&(t.classList.remove("q-animate--scale"),D())}),170))}function q(){!0!==e.seamless&&(!0===e.persistent||!0===e.noEscDismiss?!0!==e.maximized&&!0!==e.noShake&&B():(n("escapeKey"),x()))}function P(t){null!==c&&(clearTimeout(c),c=null),!0!==t&&!0!==i.value||(A(!1),!0!==e.seamless&&(f(!1),removeFocusout(O),removeEscapeKey(q))),!0!==t&&(d=null)}function A(e){!0===e?!0!==s&&(maximizedModals<1&&document.body.classList.add("q-body--dialog"),maximizedModals++,s=!0):!0===s&&(maximizedModals<2&&document.body.classList.remove("q-body--dialog"),maximizedModals--,s=!1)}function I(e){!0!==u&&(x(e),n("click",e))}function R(t){!0!==e.persistent&&!0!==e.noBackdropDismiss?x(t):!0!==e.noShake&&B()}function O(t){!0!==e.allowFocusOutside&&!0===S.value&&!0!==childHasFocus(r.value,t.target)&&D('[tabindex]:not([tabindex="-1"])')}return watch((()=>e.maximized),(e=>{!0===i.value&&A(e)})),watch(E,(e=>{f(e),!0===e?(addFocusout(O),addEscapeKey(q)):(removeFocusout(O),removeEscapeKey(q))})),Object.assign(a.proxy,{focus:D,shake:B,__updateRefocusTarget(e){d=e||null}}),onBeforeUnmount(P),k}}),duration=150;function getBlockElement(e,t){if(t&&e===t)return null;const n=e.nodeName.toLowerCase();if(!0===["div","li","ul","ol","blockquote"].includes(n))return e;const o=(window.getComputedStyle?window.getComputedStyle(e):e.currentStyle).display;return"block"===o||"table"===o?e:getBlockElement(e.parentNode)}function isChildOf(e,t,n){return!(!e||e===document.body)&&(!0===n&&e===t||(t===document?document.body:t).contains(e.parentNode))}function createRange(e,t,n){if(n||((n=document.createRange()).selectNode(e),n.setStart(e,0)),0===t.count)n.setEnd(e,t.count);else if(t.count>0)if(e.nodeType===Node.TEXT_NODE)e.textContent.length<t.count?t.count-=e.textContent.length:(n.setEnd(e,t.count),t.count=0);else for(let o=0;0!==t.count&&o<e.childNodes.length;o++)n=createRange(e.childNodes[o],t,n);return n}createComponent({name:"QDrawer",inheritAttrs:!1,props:{...useModelToggleProps,...useDarkProps,side:{type:String,default:"left",validator:e=>["left","right"].includes(e)},width:{type:Number,default:300},mini:Boolean,miniToOverlay:Boolean,miniWidth:{type:Number,default:57},noMiniAnimation:Boolean,breakpoint:{type:Number,default:1023},showIfAbove:Boolean,behavior:{type:String,validator:e=>["default","desktop","mobile"].includes(e),default:"default"},bordered:Boolean,elevated:Boolean,overlay:Boolean,persistent:Boolean,noSwipeOpen:Boolean,noSwipeClose:Boolean,noSwipeBackdrop:Boolean},emits:[...useModelToggleEmits,"onLayout","miniState"],setup(e,{slots:t,emit:n,attrs:o}){const a=getCurrentInstance(),{proxy:{$q:r}}=a,i=use_dark_default(e,r),{preventBodyScroll:l}=use_prevent_scroll_default(),{registerTimeout:s,removeTimeout:u}=use_timeout_default(),c=inject(layoutKey,emptyRenderFn);if(c===emptyRenderFn)return console.error("QDrawer needs to be child of QLayout"),emptyRenderFn;let d,p,f=null;const v=ref("mobile"===e.behavior||"desktop"!==e.behavior&&c.totalWidth.value<=e.breakpoint),m=computed((()=>!0===e.mini&&!0!==v.value)),g=computed((()=>!0===m.value?e.miniWidth:e.width)),_=ref(!0===e.showIfAbove&&!1===v.value||!0===e.modelValue),b=computed((()=>!0!==e.persistent&&(!0===v.value||!0===I.value)));function y(e,t){if(k(),!1!==e&&c.animate(),G(0),!0===v.value){const e=c.instances[B.value];void 0!==e&&!0===e.belowBreakpoint&&e.hide(!1),X(1),!0!==c.isContainer.value&&l(!0)}else X(0),!1!==e&&Z(!1);s((()=>{!1!==e&&Z(!0),!0!==t&&n("show",e)}),duration)}function w(e,t){x(),!1!==e&&c.animate(),X(0),G($.value*g.value),te(),!0!==t?s((()=>{n("hide",e)}),duration):u()}const{show:C,hide:S}=use_model_toggle_default({showing:_,hideOnRouteChange:b,handleShow:y,handleHide:w}),{addToHistory:k,removeFromHistory:x}=use_history_default(_),M={belowBreakpoint:v,hide:S},T=computed((()=>"right"===e.side)),$=computed((()=>(!0===r.lang.rtl?-1:1)*(!0===T.value?1:-1))),E=ref(0),N=ref(!1),L=ref(!1),D=ref(g.value*$.value),B=computed((()=>!0===T.value?"left":"right")),q=computed((()=>!0===_.value&&!1===v.value&&!1===e.overlay?!0===e.miniToOverlay?e.miniWidth:g.value:0)),P=computed((()=>!0===e.overlay||!0===e.miniToOverlay||-1!==c.view.value.indexOf(T.value?"R":"L")||!0===r.platform.is.ios&&!0===c.isContainer.value)),A=computed((()=>!1===e.overlay&&!0===_.value&&!1===v.value)),I=computed((()=>!0===e.overlay&&!0===_.value&&!1===v.value)),R=computed((()=>"fullscreen q-drawer__backdrop"+(!1===_.value&&!1===N.value?" hidden":""))),O=computed((()=>({backgroundColor:`rgba(0,0,0,${.4*E.value})`}))),V=computed((()=>!0===T.value?"r"===c.rows.value.top[2]:"l"===c.rows.value.top[0])),z=computed((()=>!0===T.value?"r"===c.rows.value.bottom[2]:"l"===c.rows.value.bottom[0])),F=computed((()=>{const e={};return!0===c.header.space&&!1===V.value&&(!0===P.value?e.top=`${c.header.offset}px`:!0===c.header.space&&(e.top=`${c.header.size}px`)),!0===c.footer.space&&!1===z.value&&(!0===P.value?e.bottom=`${c.footer.offset}px`:!0===c.footer.space&&(e.bottom=`${c.footer.size}px`)),e})),j=computed((()=>{const e={width:`${g.value}px`,transform:`translateX(${D.value}px)`};return!0===v.value?e:Object.assign(e,F.value)})),H=computed((()=>"q-drawer__content fit "+(!0!==c.isContainer.value?"scroll":"overflow-auto"))),U=computed((()=>`q-drawer q-drawer--${e.side}`+(!0===L.value?" q-drawer--mini-animate":"")+(!0===e.bordered?" q-drawer--bordered":"")+(!0===i.value?" q-drawer--dark q-dark":"")+(!0===N.value?" no-transition":!0===_.value?"":" q-layout--prevent-focus")+(!0===v.value?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":" q-drawer--"+(!0===m.value?"mini":"standard")+(!0===P.value||!0!==A.value?" fixed":"")+(!0===e.overlay||!0===e.miniToOverlay?" q-drawer--on-top":"")+(!0===V.value?" q-drawer--top-padding":"")))),Q=computed((()=>{const t=!0===r.lang.rtl?e.side:B.value;return[[TouchPan_default,J,void 0,{[t]:!0,mouse:!0}]]})),Y=computed((()=>{const t=!0===r.lang.rtl?B.value:e.side;return[[TouchPan_default,ee,void 0,{[t]:!0,mouse:!0}]]})),W=computed((()=>{const t=!0===r.lang.rtl?B.value:e.side;return[[TouchPan_default,ee,void 0,{[t]:!0,mouse:!0,mouseAllDir:!0}]]}));function K(){var t,n;t=v,n="mobile"===e.behavior||"desktop"!==e.behavior&&c.totalWidth.value<=e.breakpoint,t.value!==n&&(t.value=n)}function G(e){void 0===e?nextTick((()=>{e=!0===_.value?0:g.value,G($.value*e)})):(!0!==c.isContainer.value||!0!==T.value||!0!==v.value&&Math.abs(e)!==g.value||(e+=$.value*c.scrollbarWidth.value),D.value=e)}function X(e){E.value=e}function Z(e){const t=!0===e?"remove":!0!==c.isContainer.value?"add":"";""!==t&&document.body.classList[t]("q-body--drawer-toggle")}function J(e){if(!1!==_.value)return;const t=g.value,n=between(e.distance.x,0,t);if(!0===e.isFinal){return!0===n>=Math.min(75,t)?C():(c.animate(),X(0),G($.value*t)),void(N.value=!1)}G((!0===r.lang.rtl?!0!==T.value:T.value)?Math.max(t-n,0):Math.min(0,n-t)),X(between(n/t,0,1)),!0===e.isFirst&&(N.value=!0)}function ee(t){if(!0!==_.value)return;const n=g.value,o=t.direction===e.side,a=(!0===r.lang.rtl?!0!==o:o)?between(t.distance.x,0,n):0;if(!0===t.isFinal){return!0===Math.abs(a)<Math.min(75,n)?(c.animate(),X(1),G(0)):S(),void(N.value=!1)}G($.value*a),X(between(1-a/n,0,1)),!0===t.isFirst&&(N.value=!0)}function te(){l(!1),Z(!0)}function ne(t,n){c.update(e.side,t,n)}function oe(t,n){ne("size",!0===t?e.miniWidth:n)}return watch(v,(t=>{!0===t?(d=_.value,!0===_.value&&S(!1)):!1===e.overlay&&"mobile"!==e.behavior&&!1!==d&&(!0===_.value?(G(0),X(0),te()):C(!1))})),watch((()=>e.side),((e,t)=>{c.instances[t]===M&&(c.instances[t]=void 0,c[t].space=!1,c[t].offset=0),c.instances[e]=M,c[e].size=g.value,c[e].space=A.value,c[e].offset=q.value})),watch(c.totalWidth,(()=>{!0!==c.isContainer.value&&!0===document.qScrollPrevented||K()})),watch((()=>e.behavior+e.breakpoint),K),watch(c.isContainer,(e=>{!0===_.value&&l(!0!==e),!0===e&&K()})),watch(c.scrollbarWidth,(()=>{G(!0===_.value?0:void 0)})),watch(q,(e=>{ne("offset",e)})),watch(A,(e=>{n("onLayout",e),ne("space",e)})),watch(T,(()=>{G()})),watch(g,(t=>{G(),oe(e.miniToOverlay,t)})),watch((()=>e.miniToOverlay),(e=>{oe(e,g.value)})),watch((()=>r.lang.rtl),(()=>{G()})),watch((()=>e.mini),(()=>{e.noMiniAnimation||!0===e.modelValue&&(!function(){null!==f&&clearTimeout(f),a.proxy&&a.proxy.$el&&a.proxy.$el.classList.add("q-drawer--mini-animate");L.value=!0,f=setTimeout((()=>{f=null,L.value=!1,a&&a.proxy&&a.proxy.$el&&a.proxy.$el.classList.remove("q-drawer--mini-animate")}),150)}(),c.animate())})),watch(m,(e=>{n("miniState",e)})),c.instances[e.side]=M,oe(e.miniToOverlay,g.value),ne("space",A.value),ne("offset",q.value),!0===e.showIfAbove&&!0!==e.modelValue&&!0===_.value&&void 0!==e["onUpdate:modelValue"]&&n("update:modelValue",!0),onMounted((()=>{n("onLayout",A.value),n("miniState",m.value),d=!0===e.showIfAbove;const t=()=>{(!0===_.value?y:w)(!1,!0)};0===c.totalWidth.value?p=watch(c.totalWidth,(()=>{p(),p=void 0,!1===_.value&&!0===e.showIfAbove&&!1===v.value?C(!1):t()})):nextTick(t)})),onBeforeUnmount((()=>{void 0!==p&&p(),null!==f&&(clearTimeout(f),f=null),!0===_.value&&te(),c.instances[e.side]===M&&(c.instances[e.side]=void 0,ne("size",0),ne("offset",0),ne("space",!1))})),()=>{const n=[];!0===v.value&&(!1===e.noSwipeOpen&&n.push(withDirectives(h("div",{key:"open",class:`q-drawer__opener fixed-${e.side}`,"aria-hidden":"true"}),Q.value)),n.push(hDir("div",{ref:"backdrop",class:R.value,style:O.value,"aria-hidden":"true",onClick:S},void 0,"backdrop",!0!==e.noSwipeBackdrop&&!0===_.value,(()=>W.value))));const a=!0===m.value&&void 0!==t.mini,r=[h("div",{...o,key:""+a,class:[H.value,o.class]},!0===a?t.mini():hSlot(t.default))];return!0===e.elevated&&!0===_.value&&r.push(h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),n.push(hDir("aside",{ref:"content",class:U.value,style:j.value},r,"contentclose",!0!==e.noSwipeClose&&!0===v.value,(()=>Y.value))),h("div",{class:"q-drawer-container"},n)}}});var urlRegex=/^https?:\/\//,Caret=class{constructor(e,t){this.el=e,this.eVm=t,this._range=null}get selection(){if(this.el){const e=document.getSelection();if(isChildOf(e.anchorNode,this.el,!0)&&isChildOf(e.focusNode,this.el,!0))return e}return null}get hasSelection(){return null!==this.selection&&0!==this.selection.toString().length}get range(){const e=this.selection;return null!==e&&e.rangeCount?e.getRangeAt(0):this._range}get parent(){const e=this.range;if(null!==e){const t=e.startContainer;return t.nodeType===document.ELEMENT_NODE?t:t.parentNode}return null}get blockParent(){const e=this.parent;return null!==e?getBlockElement(e,this.el):null}save(e=this.range){null!==e&&(this._range=e)}restore(e=this._range){const t=document.createRange(),n=document.getSelection();null!==e?(t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),n.removeAllRanges(),n.addRange(t)):(n.selectAllChildren(this.el),n.collapseToEnd())}savePosition(){let e,t=-1;const n=document.getSelection(),o=this.el.parentNode;if(n.focusNode&&isChildOf(n.focusNode,o))for(e=n.focusNode,t=n.focusOffset;e&&e!==o;)e!==this.el&&e.previousSibling?(e=e.previousSibling,t+=e.textContent.length):e=e.parentNode;this.savedPos=t}restorePosition(e=0){if(this.savedPos>0&&this.savedPos<e){const e=window.getSelection(),t=createRange(this.el,{count:this.savedPos});t&&(t.collapse(!1),e.removeAllRanges(),e.addRange(t))}}hasParent(e,t){const n=t?this.parent:this.blockParent;return null!==n&&n.nodeName.toLowerCase()===e.toLowerCase()}hasParents(e,t,n=this.parent){return null!==n&&(!0===e.includes(n.nodeName.toLowerCase())||!0===t&&this.hasParents(e,t,n.parentNode))}is(e,t){if(null===this.selection)return!1;switch(e){case"formatBlock":return"DIV"===t&&this.parent===this.el||this.hasParent(t,"PRE"===t);case"link":return this.hasParent("A",!0);case"fontSize":return document.queryCommandValue(e)===t;case"fontName":const n=document.queryCommandValue(e);return n===`"${t}"`||n===t;case"fullscreen":return this.eVm.inFullscreen.value;case"viewsource":return this.eVm.isViewingSource.value;case void 0:return!1;default:const o=document.queryCommandState(e);return void 0!==t?o===t:o}}getParentAttribute(e){return null!==this.parent?this.parent.getAttribute(e):null}can(e){return"outdent"===e?this.hasParents(["blockquote","li"],!0):"indent"===e?this.hasParents(["li"],!0):"link"===e?null!==this.selection||this.is("link"):void 0}apply(e,t,n=noop){if("formatBlock"===e)["BLOCKQUOTE","H1","H2","H3","H4","H5","H6"].includes(t)&&this.is(e,t)&&(e="outdent",t=null),"PRE"===t&&this.is(e,"PRE")&&(t="P");else{if("print"===e){n();const e=window.open();return e.document.write(`\n        <!doctype html>\n        <html>\n          <head>\n            <title>Print - ${document.title}</title>\n          </head>\n          <body>\n            <div>${this.el.innerHTML}</div>\n          </body>\n        </html>\n      `),e.print(),void e.close()}if("link"===e){const e=this.getParentAttribute("href");if(null===e){const e=this.selectWord(this.selection),t=e?e.toString():"";if(!(t.length||this.range&&this.range.cloneContents().querySelector("img")))return;this.eVm.editLinkUrl.value=urlRegex.test(t)?t:"https://",document.execCommand("createLink",!1,this.eVm.editLinkUrl.value),this.save(e.getRangeAt(0))}else this.eVm.editLinkUrl.value=e,this.range.selectNodeContents(this.parent),this.save();return}if("fullscreen"===e)return this.eVm.toggleFullscreen(),void n();if("viewsource"===e)return this.eVm.isViewingSource.value=!1===this.eVm.isViewingSource.value,this.eVm.setContent(this.eVm.props.modelValue),void n()}document.execCommand(e,!1,t),n()}selectWord(e){if(null===e||!0!==e.isCollapsed||void 0===e.modify)return e;const t=document.createRange();t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset);const n=t.collapsed?["backward","forward"]:["forward","backward"];t.detach();const o=e.focusNode,a=e.focusOffset;return e.collapse(e.anchorNode,e.anchorOffset),e.modify("move",n[0],"character"),e.modify("move",n[1],"word"),e.extend(o,a),e.modify("extend",n[1],"character"),e.modify("extend",n[0],"word"),e}},QTooltip_default=createComponent({name:"QTooltip",inheritAttrs:!1,props:{...useAnchorStaticProps,...useModelToggleProps,...useTransitionProps,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...useTransitionProps.transitionShow,default:"jump-down"},transitionHide:{...useTransitionProps.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:validatePosition},self:{type:String,default:"top middle",validator:validatePosition},offset:{type:Array,default:()=>[14,14],validator:validateOffset},scrollTarget:scrollTargetProp,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...useModelToggleEmits],setup(e,{slots:t,emit:n,attrs:o}){let a,r;const i=getCurrentInstance(),{proxy:{$q:l}}=i,s=ref(null),u=ref(!1),c=computed((()=>parsePosition(e.anchor,l.lang.rtl))),d=computed((()=>parsePosition(e.self,l.lang.rtl))),p=computed((()=>!0!==e.persistent)),{registerTick:f,removeTick:v}=use_tick_default(),{registerTimeout:m}=use_timeout_default(),{transitionProps:g,transitionStyle:_}=use_transition_default(e),{localScrollTarget:b,changeScrollEvent:y,unconfigureScrollTarget:w}=use_scroll_target_default(e,D),{anchorEl:C,canShow:S,anchorEvents:k}=use_anchor_default({showing:u,configureAnchorEl:function(){if(!0===e.noParentEvent||null===C.value)return;const t=!0===l.platform.is.mobile?[[C.value,"touchstart","delayShow","passive"]]:[[C.value,"mouseenter","delayShow","passive"],[C.value,"mouseleave","delayHide","passive"]];addEvt(k,"anchor",t)}}),{show:x,hide:M}=use_model_toggle_default({showing:u,canShow:S,handleShow:function(t){T(),f((()=>{r=new MutationObserver((()=>L())),r.observe(s.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),L(),D()})),void 0===a&&(a=watch((()=>l.screen.width+"|"+l.screen.height+"|"+e.self+"|"+e.anchor+"|"+l.lang.rtl),L));m((()=>{T(!0),n("show",t)}),e.transitionDuration)},handleHide:function(t){v(),$(),N(),m((()=>{$(!0),n("hide",t)}),e.transitionDuration)},hideOnRouteChange:p,processOnMount:!0});Object.assign(k,{delayShow:function(t){if(!0===l.platform.is.mobile){clearSelection(),document.body.classList.add("non-selectable");const e=C.value,t=["touchmove","touchcancel","touchend","click"].map((t=>[e,t,"delayHide","passiveCapture"]));addEvt(k,"tooltipTemp",t)}m((()=>{x(t)}),e.delay)},delayHide:function(t){!0===l.platform.is.mobile&&(cleanEvt(k,"tooltipTemp"),clearSelection(),setTimeout((()=>{document.body.classList.remove("non-selectable")}),10));m((()=>{M(t)}),e.hideDelay)}});const{showPortal:T,hidePortal:$,renderPortal:E}=use_portal_default(i,s,(function(){return h(Transition$1,g.value,B)}),"tooltip");if(!0===l.platform.is.mobile){const t={anchorEl:C,innerRef:s,onClickOutside:e=>(M(e),e.target.classList.contains("q-dialog__backdrop")&&stopAndPrevent(e),!0)},n=computed((()=>null===e.modelValue&&!0!==e.persistent&&!0===u.value));watch(n,(e=>{(!0===e?addClickOutside:removeClickOutside)(t)})),onBeforeUnmount((()=>{removeClickOutside(t)}))}function N(){void 0!==r&&(r.disconnect(),r=void 0),void 0!==a&&(a(),a=void 0),w(),cleanEvt(k,"tooltipTemp")}function L(){setPosition({targetEl:s.value,offset:e.offset,anchorEl:C.value,anchorOrigin:c.value,selfOrigin:d.value,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function D(){if(null!==C.value||void 0!==e.scrollTarget){b.value=getScrollTarget(C.value,e.scrollTarget);const t=!0===e.noParentEvent?L:M;y(b.value,t)}}function B(){return!0===u.value?h("div",{...o,ref:s,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",o.class],style:[o.style,_.value],role:"tooltip"},hSlot(t.default)):null}return onBeforeUnmount(N),Object.assign(i.proxy,{updatePosition:L}),E}}),QItem_default=createComponent({name:"QItem",props:{...useDarkProps,...useRouterLinkProps,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=getCurrentInstance(),a=use_dark_default(e,o),{hasLink:r,linkAttrs:i,linkClass:l,linkTag:s,navigateOnClick:u}=use_router_link_default(),c=ref(null),d=ref(null),p=computed((()=>!0===e.clickable||!0===r.value||"label"===e.tag)),f=computed((()=>!0!==e.disable&&!0===p.value)),v=computed((()=>"q-item q-item-type row no-wrap"+(!0===e.dense?" q-item--dense":"")+(!0===a.value?" q-item--dark":"")+(!0===r.value&&null===e.active?l.value:!0===e.active?" q-item--active"+(void 0!==e.activeClass?` ${e.activeClass}`:""):"")+(!0===e.disable?" disabled":"")+(!0===f.value?" q-item--clickable q-link cursor-pointer "+(!0===e.manualFocus?"q-manual-focusable":"q-focusable q-hoverable")+(!0===e.focused?" q-manual-focusable--focused":""):""))),m=computed((()=>{if(void 0===e.insetLevel)return null;const t=!0===o.lang.rtl?"Right":"Left";return{["padding"+t]:16+56*e.insetLevel+"px"}}));function g(e){!0===f.value&&(null!==d.value&&(!0!==e.qKeyEvent&&document.activeElement===c.value?d.value.focus():document.activeElement===d.value&&c.value.focus()),u(e))}function _(e){if(!0===f.value&&!0===isKeyCode(e,[13,32])){stopAndPrevent(e),e.qKeyEvent=!0;const t=new MouseEvent("click",e);t.qKeyEvent=!0,c.value.dispatchEvent(t)}n("keyup",e)}return()=>{const n={ref:c,class:v.value,style:m.value,role:"listitem",onClick:g,onKeyup:_};return!0===f.value?(n.tabindex=e.tabindex||"0",Object.assign(n,i.value)):!0===p.value&&(n["aria-disabled"]="true"),h(s.value,n,function(){const e=hUniqueSlot(t.default,[]);return!0===f.value&&e.unshift(h("div",{class:"q-focus-helper",tabindex:-1,ref:d})),e}())}}}),QItemSection_default=createComponent({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const n=computed((()=>"q-item__section column q-item__section--"+(!0===e.avatar||!0===e.side||!0===e.thumbnail?"side":"main")+(!0===e.top?" q-item__section--top justify-start":" justify-center")+(!0===e.avatar?" q-item__section--avatar":"")+(!0===e.thumbnail?" q-item__section--thumbnail":"")+(!0===e.noWrap?" q-item__section--nowrap":"")));return()=>h("div",{class:n.value},hSlot(t.default))}});function run(e,t,n){t.handler?t.handler(e,n,n.caret):n.runCmd(t.cmd,t.param)}function getGroup(e){return h("div",{class:"q-editor__toolbar-group"},e)}function getBtn(e,t,n,o=!1){const a=o||"toggle"===t.type&&(t.toggled?t.toggled(e):t.cmd&&e.caret.is(t.cmd,t.param)),r=[];if(t.tip&&e.$q.platform.is.desktop){const e=t.key?h("div",[h("small",`(CTRL + ${String.fromCharCode(t.key)})`)]):null;r.push(h(QTooltip_default,{delay:1e3},(()=>[h("div",{innerHTML:t.tip}),e])))}return h(QBtn_default,{...e.buttonProps.value,icon:null!==t.icon?t.icon:void 0,color:a?t.toggleColor||e.props.toolbarToggleColor:t.color||e.props.toolbarColor,textColor:a&&!e.props.toolbarPush?null:t.textColor||e.props.toolbarTextColor,label:t.label,disable:!!t.disable&&("function"!=typeof t.disable||t.disable(e)),size:"sm",onClick(o){n&&n(),run(o,t,e)}},(()=>r))}function getDropdown(e,t){const n="only-icons"===t.list;let o,a,r=t.label,i=null!==t.icon?t.icon:void 0;function l(){u.component.proxy.hide()}if(n)a=t.options.map((t=>{const n=void 0===t.type&&e.caret.is(t.cmd,t.param);return n&&(r=t.tip,i=null!==t.icon?t.icon:void 0),getBtn(e,t,l,n)})),o=e.toolbarBackgroundClass.value,a=[getGroup(a)];else{const n=void 0!==e.props.toolbarToggleColor?`text-${e.props.toolbarToggleColor}`:null,s=void 0!==e.props.toolbarTextColor?`text-${e.props.toolbarTextColor}`:null,u="no-icons"===t.list;a=t.options.map((t=>{const o=!!t.disable&&t.disable(e),a=void 0===t.type&&e.caret.is(t.cmd,t.param);a&&(r=t.tip,i=null!==t.icon?t.icon:void 0);const c=t.htmlTip;return h(QItem_default,{active:a,activeClass:n,clickable:!0,disable:o,dense:!0,onClick(n){l(),null!==e.contentRef.value&&e.contentRef.value.focus(),e.caret.restore(),run(n,t,e)}},(()=>[!0===u?null:h(QItemSection_default,{class:a?n:s,side:!0},(()=>h(QIcon_default,{name:null!==t.icon?t.icon:void 0}))),h(QItemSection_default,c?()=>h("div",{class:"text-no-wrap",innerHTML:t.htmlTip}):t.tip?()=>h("div",{class:"text-no-wrap"},t.tip):void 0)]))})),o=[e.toolbarBackgroundClass.value,s]}const s=t.highlight&&r!==t.label,u=h(QBtnDropdown_default,{...e.buttonProps.value,noCaps:!0,noWrap:!0,color:s?e.props.toolbarToggleColor:e.props.toolbarColor,textColor:s&&!e.props.toolbarPush?null:e.props.toolbarTextColor,label:t.fixedLabel?t.label:r,icon:t.fixedIcon?null!==t.icon?t.icon:void 0:i,contentClass:o,onShow:t=>e.emit("dropdownShow",t),onHide:t=>e.emit("dropdownHide",t),onBeforeShow:t=>e.emit("dropdownBeforeShow",t),onBeforeHide:t=>e.emit("dropdownBeforeHide",t)},(()=>a));return u}function getToolbar(e){if(e.caret)return e.buttons.value.filter((t=>!e.isViewingSource.value||t.find((e=>"viewsource"===e.cmd)))).map((t=>getGroup(t.map((t=>(!e.isViewingSource.value||"viewsource"===t.cmd)&&("slot"===t.type?hSlot(e.slots[t.slot]):"dropdown"===t.type?getDropdown(e,t):getBtn(e,t)))))))}function getFonts(e,t,n,o={}){const a=Object.keys(o);if(0===a.length)return{};const r={default_font:{cmd:"fontName",param:e,icon:n,tip:t}};return a.forEach((e=>{const t=o[e];r[e]={cmd:"fontName",param:t,icon:n,tip:t,htmlTip:`<font face="${t}">${t}</font>`}})),r}function getLinkEditor(e){if(e.caret){const t=e.props.toolbarColor||e.props.toolbarTextColor;let n=e.editLinkUrl.value;const o=()=>{e.caret.restore(),n!==e.editLinkUrl.value&&document.execCommand("createLink",!1,""===n?" ":n),e.editLinkUrl.value=null};return[h("div",{class:`q-mx-xs text-${t}`},`${e.$q.lang.editor.url}: `),h("input",{key:"qedt_btm_input",class:"col q-editor__link-input",value:n,onInput:e=>{stop$1(e),n=e.target.value},onKeydown:t=>{if(!0!==shouldIgnoreKey(t))switch(t.keyCode){case 13:return prevent(t),o();case 27:prevent(t),e.caret.restore(),e.editLinkUrl.value&&"https://"!==e.editLinkUrl.value||document.execCommand("unlink"),e.editLinkUrl.value=null}}}),getGroup([h(QBtn_default,{key:"qedt_btm_rem",tabindex:-1,...e.buttonProps.value,label:e.$q.lang.label.remove,noCaps:!0,onClick:()=>{e.caret.restore(),document.execCommand("unlink"),e.editLinkUrl.value=null}}),h(QBtn_default,{key:"qedt_btm_upd",...e.buttonProps.value,label:e.$q.lang.label.update,noCaps:!0,onClick:o})])]}}var listenerRE=/^on[A-Z]/;function use_split_attrs_default(){const{attrs:e,vnode:t}=getCurrentInstance(),n={listeners:ref({}),attributes:ref({})};function o(){const o={},a={};for(const t in e)"class"!==t&&"style"!==t&&!1===listenerRE.test(t)&&(o[t]=e[t]);for(const e in t.props)!0===listenerRE.test(e)&&(a[e]=t.props[e]);n.attributes.value=o,n.listeners.value=a}return onBeforeUpdate(o),o(),n}var toString=Object.prototype.toString,hasOwn=Object.prototype.hasOwnProperty,notPlainObject=new Set(["Boolean","Number","String","Function","Array","Date","RegExp"].map((e=>"[object "+e+"]")));function isPlainObject(e){if(e!==Object(e)||!0===notPlainObject.has(toString.call(e)))return!1;if(e.constructor&&!1===hasOwn.call(e,"constructor")&&!1===hasOwn.call(e.constructor.prototype,"isPrototypeOf"))return!1;let t;for(t in e);return void 0===t||hasOwn.call(e,t)}function extend(){let e,t,n,o,a,r,i=arguments[0]||{},l=1,s=!1;const u=arguments.length;for("boolean"==typeof i&&(s=i,i=arguments[1]||{},l=2),Object(i)!==i&&"function"!=typeof i&&(i={}),u===l&&(i=this,l--);l<u;l++)if(null!==(e=arguments[l]))for(t in e)n=i[t],o=e[t],i!==o&&(!0===s&&o&&((a=Array.isArray(o))||!0===isPlainObject(o))?(r=!0===a?!0===Array.isArray(n)?n:[]:!0===isPlainObject(n)?n:{},i[t]=extend(s,r,o)):void 0!==o&&(i[t]=o));return i}createComponent({name:"QEditor",props:{...useDarkProps,...useFullscreenProps,modelValue:{type:String,required:!0},readonly:Boolean,disable:Boolean,minHeight:{type:String,default:"10rem"},maxHeight:String,height:String,definitions:Object,fonts:Object,placeholder:String,toolbar:{type:Array,validator:e=>0===e.length||e.every((e=>e.length)),default:()=>[["left","center","right","justify"],["bold","italic","underline","strike"],["undo","redo"]]},toolbarColor:String,toolbarBg:String,toolbarTextColor:String,toolbarToggleColor:{type:String,default:"primary"},toolbarOutline:Boolean,toolbarPush:Boolean,toolbarRounded:Boolean,paragraphTag:{type:String,validator:e=>["div","p"].includes(e),default:"div"},contentStyle:Object,contentClass:[Object,Array,String],square:Boolean,flat:Boolean,dense:Boolean},emits:[...useFullscreenEmits,"update:modelValue","keydown","click","focus","blur","dropdownShow","dropdownHide","dropdownBeforeShow","dropdownBeforeHide","linkShow","linkHide"],setup(e,{slots:t,emit:n}){const{proxy:o}=getCurrentInstance(),{$q:a}=o,r=use_dark_default(e,a),{inFullscreen:i,toggleFullscreen:l}=use_fullscreen_default(),s=use_split_attrs_default(),u=ref(null),c=ref(null),d=ref(null),p=ref(!1),f=computed((()=>!e.readonly&&!e.disable));let v,m,g=e.modelValue;document.execCommand("defaultParagraphSeparator",!1,e.paragraphTag),v=window.getComputedStyle(document.body).fontFamily;const _=computed((()=>e.toolbarBg?` bg-${e.toolbarBg}`:"")),b=computed((()=>({type:"a",flat:!0!==e.toolbarOutline&&!0!==e.toolbarPush,noWrap:!0,outline:e.toolbarOutline,push:e.toolbarPush,rounded:e.toolbarRounded,dense:!0,color:e.toolbarColor,disable:!f.value,size:"sm"}))),y=computed((()=>{const t=a.lang.editor,n=a.iconSet.editor;return{bold:{cmd:"bold",icon:n.bold,tip:t.bold,key:66},italic:{cmd:"italic",icon:n.italic,tip:t.italic,key:73},strike:{cmd:"strikeThrough",icon:n.strikethrough,tip:t.strikethrough,key:83},underline:{cmd:"underline",icon:n.underline,tip:t.underline,key:85},unordered:{cmd:"insertUnorderedList",icon:n.unorderedList,tip:t.unorderedList},ordered:{cmd:"insertOrderedList",icon:n.orderedList,tip:t.orderedList},subscript:{cmd:"subscript",icon:n.subscript,tip:t.subscript,htmlTip:"x<subscript>2</subscript>"},superscript:{cmd:"superscript",icon:n.superscript,tip:t.superscript,htmlTip:"x<superscript>2</superscript>"},link:{cmd:"link",disable:e=>e.caret&&!e.caret.can("link"),icon:n.hyperlink,tip:t.hyperlink,key:76},fullscreen:{cmd:"fullscreen",icon:n.toggleFullscreen,tip:t.toggleFullscreen,key:70},viewsource:{cmd:"viewsource",icon:n.viewSource,tip:t.viewSource},quote:{cmd:"formatBlock",param:"BLOCKQUOTE",icon:n.quote,tip:t.quote,key:81},left:{cmd:"justifyLeft",icon:n.left,tip:t.left},center:{cmd:"justifyCenter",icon:n.center,tip:t.center},right:{cmd:"justifyRight",icon:n.right,tip:t.right},justify:{cmd:"justifyFull",icon:n.justify,tip:t.justify},print:{type:"no-state",cmd:"print",icon:n.print,tip:t.print,key:80},outdent:{type:"no-state",disable:e=>e.caret&&!e.caret.can("outdent"),cmd:"outdent",icon:n.outdent,tip:t.outdent},indent:{type:"no-state",disable:e=>e.caret&&!e.caret.can("indent"),cmd:"indent",icon:n.indent,tip:t.indent},removeFormat:{type:"no-state",cmd:"removeFormat",icon:n.removeFormat,tip:t.removeFormat},hr:{type:"no-state",cmd:"insertHorizontalRule",icon:n.hr,tip:t.hr},undo:{type:"no-state",cmd:"undo",icon:n.undo,tip:t.undo,key:90},redo:{type:"no-state",cmd:"redo",icon:n.redo,tip:t.redo,key:89},h1:{cmd:"formatBlock",param:"H1",icon:n.heading1||n.heading,tip:t.heading1,htmlTip:`<h1 class="q-ma-none">${t.heading1}</h1>`},h2:{cmd:"formatBlock",param:"H2",icon:n.heading2||n.heading,tip:t.heading2,htmlTip:`<h2 class="q-ma-none">${t.heading2}</h2>`},h3:{cmd:"formatBlock",param:"H3",icon:n.heading3||n.heading,tip:t.heading3,htmlTip:`<h3 class="q-ma-none">${t.heading3}</h3>`},h4:{cmd:"formatBlock",param:"H4",icon:n.heading4||n.heading,tip:t.heading4,htmlTip:`<h4 class="q-ma-none">${t.heading4}</h4>`},h5:{cmd:"formatBlock",param:"H5",icon:n.heading5||n.heading,tip:t.heading5,htmlTip:`<h5 class="q-ma-none">${t.heading5}</h5>`},h6:{cmd:"formatBlock",param:"H6",icon:n.heading6||n.heading,tip:t.heading6,htmlTip:`<h6 class="q-ma-none">${t.heading6}</h6>`},p:{cmd:"formatBlock",param:e.paragraphTag,icon:n.heading,tip:t.paragraph},code:{cmd:"formatBlock",param:"PRE",icon:n.code,htmlTip:`<code>${t.code}</code>`},"size-1":{cmd:"fontSize",param:"1",icon:n.size1||n.size,tip:t.size1,htmlTip:`<font size="1">${t.size1}</font>`},"size-2":{cmd:"fontSize",param:"2",icon:n.size2||n.size,tip:t.size2,htmlTip:`<font size="2">${t.size2}</font>`},"size-3":{cmd:"fontSize",param:"3",icon:n.size3||n.size,tip:t.size3,htmlTip:`<font size="3">${t.size3}</font>`},"size-4":{cmd:"fontSize",param:"4",icon:n.size4||n.size,tip:t.size4,htmlTip:`<font size="4">${t.size4}</font>`},"size-5":{cmd:"fontSize",param:"5",icon:n.size5||n.size,tip:t.size5,htmlTip:`<font size="5">${t.size5}</font>`},"size-6":{cmd:"fontSize",param:"6",icon:n.size6||n.size,tip:t.size6,htmlTip:`<font size="6">${t.size6}</font>`},"size-7":{cmd:"fontSize",param:"7",icon:n.size7||n.size,tip:t.size7,htmlTip:`<font size="7">${t.size7}</font>`}}})),w=computed((()=>{const t=e.definitions||{},n=e.definitions||e.fonts?extend(!0,{},y.value,t,getFonts(v,a.lang.editor.defaultFont,a.iconSet.editor.font,e.fonts)):y.value;return e.toolbar.map((e=>e.map((e=>{if(e.options)return{type:"dropdown",icon:e.icon,label:e.label,size:"sm",dense:!0,fixedLabel:e.fixedLabel,fixedIcon:e.fixedIcon,highlight:e.highlight,list:e.list,options:e.options.map((e=>n[e]))};const o=n[e];return o?"no-state"===o.type||t[e]&&(void 0===o.cmd||y.value[o.cmd]&&"no-state"===y.value[o.cmd].type)?o:Object.assign({type:"toggle"},o):{type:"slot",slot:e}}))))})),C={$q:a,props:e,slots:t,emit:n,inFullscreen:i,toggleFullscreen:l,runCmd:O,isViewingSource:p,editLinkUrl:d,toolbarBackgroundClass:_,buttonProps:b,contentRef:c,buttons:w,setContent:R};watch((()=>e.modelValue),(e=>{g!==e&&(g=e,R(e,!0))})),watch(d,(e=>{n("link"+(e?"Show":"Hide"))}));const S=computed((()=>e.toolbar&&0!==e.toolbar.length)),k=computed((()=>{const e={},t=t=>{t.key&&(e[t.key]={cmd:t.cmd,param:t.param})};return w.value.forEach((e=>{e.forEach((e=>{e.options?e.options.forEach(t):t(e)}))})),e})),x=computed((()=>i.value?e.contentStyle:[{minHeight:e.minHeight,height:e.height,maxHeight:e.maxHeight},e.contentStyle])),M=computed((()=>"q-editor q-editor--"+(!0===p.value?"source":"default")+(!0===e.disable?" disabled":"")+(!0===i.value?" fullscreen column":"")+(!0===e.square?" q-editor--square no-border-radius":"")+(!0===e.flat?" q-editor--flat":"")+(!0===e.dense?" q-editor--dense":"")+(!0===r.value?" q-editor--dark q-dark":""))),T=computed((()=>[e.contentClass,"q-editor__content",{col:i.value,"overflow-auto":i.value||e.maxHeight}])),$=computed((()=>!0===e.disable?{"aria-disabled":"true"}:{}));function E(){if(null!==c.value){const t="inner"+(!0===p.value?"Text":"HTML"),o=c.value[t];o!==e.modelValue&&(g=o,n("update:modelValue",o))}}function N(e){if(n("keydown",e),!0!==e.ctrlKey||!0===shouldIgnoreKey(e))return void V();const t=e.keyCode,o=k.value[t];if(void 0!==o){const{cmd:t,param:n}=o;stopAndPrevent(e),O(t,n,!1)}}function L(e){V(),n("click",e)}function D(e){if(null!==c.value){const{scrollTop:e,scrollHeight:t}=c.value;m=t-e}C.caret.save(),n("blur",e)}function B(e){nextTick((()=>{null!==c.value&&void 0!==m&&(c.value.scrollTop=c.value.scrollHeight-m)})),n("focus",e)}function q(e){const t=u.value;if(null!==t&&!0===t.contains(e.target)&&(null===e.relatedTarget||!0!==t.contains(e.relatedTarget))){const e="inner"+(!0===p.value?"Text":"HTML");C.caret.restorePosition(c.value[e].length),V()}}function P(e){const t=u.value;null===t||!0!==t.contains(e.target)||null!==e.relatedTarget&&!0===t.contains(e.relatedTarget)||(C.caret.savePosition(),V())}function A(){m=void 0}function I(e){C.caret.save()}function R(e,t){if(null!==c.value){!0===t&&C.caret.savePosition();const n="inner"+(!0===p.value?"Text":"HTML");c.value[n]=e,!0===t&&(C.caret.restorePosition(c.value[n].length),V())}}function O(e,t,n=!0){z(),C.caret.restore(),C.caret.apply(e,t,(()=>{z(),C.caret.save(),n&&V()}))}function V(){setTimeout((()=>{d.value=null,o.$forceUpdate()}),1)}function z(){addFocusFn((()=>{null!==c.value&&c.value.focus({preventScroll:!0})}))}return onMounted((()=>{C.caret=o.caret=new Caret(c.value,C),R(e.modelValue),V(),document.addEventListener("selectionchange",I)})),onBeforeUnmount((()=>{document.removeEventListener("selectionchange",I)})),Object.assign(o,{runCmd:O,refreshToolbar:V,focus:z,getContentEl:function(){return c.value}}),()=>{let t;if(S.value){const e=[h("div",{key:"qedt_top",class:"q-editor__toolbar row no-wrap scroll-x"+_.value},getToolbar(C))];null!==d.value&&e.push(h("div",{key:"qedt_btm",class:"q-editor__toolbar row no-wrap items-center scroll-x"+_.value},getLinkEditor(C))),t=h("div",{key:"toolbar_ctainer",class:"q-editor__toolbars-container"},e)}return h("div",{ref:u,class:M.value,style:{height:!0===i.value?"100%":null},...$.value,onFocusin:q,onFocusout:P},[t,h("div",{ref:c,style:x.value,class:T.value,contenteditable:f.value,placeholder:e.placeholder,...s.listeners.value,onInput:E,onKeydown:N,onClick:L,onBlur:D,onFocus:B,onMousedown:A,onTouchstartPassive:A})])}}});var QItemLabel_default=createComponent({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const n=computed((()=>parseInt(e.lines,10))),o=computed((()=>"q-item__label"+(!0===e.overline?" q-item__label--overline text-overline":"")+(!0===e.caption?" q-item__label--caption text-caption":"")+(!0===e.header?" q-item__label--header":"")+(1===n.value?" ellipsis":""))),a=computed((()=>void 0!==e.lines&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null));return()=>h("div",{style:a.value,class:o.value},hSlot(t.default))}}),QSlideTransition_default=createComponent({name:"QSlideTransition",props:{appear:Boolean,duration:{type:Number,default:300}},emits:["show","hide"],setup(e,{slots:t,emit:n}){let o,a,r,i,l=!1,s=null,u=null;function c(){o&&o(),o=null,l=!1,null!==s&&(clearTimeout(s),s=null),null!==u&&(clearTimeout(u),u=null),void 0!==a&&a.removeEventListener("transitionend",r),r=null}function d(t,n,a){void 0!==n&&(t.style.height=`${n}px`),t.style.transition=`height ${e.duration}ms cubic-bezier(.25, .8, .50, 1)`,l=!0,o=a}function p(e,t){e.style.overflowY=null,e.style.height=null,e.style.transition=null,c(),t!==i&&n(t)}function f(t,n){let o=0;a=t,!0===l?(c(),o=t.offsetHeight===t.scrollHeight?0:void 0):(i="hide",t.style.overflowY="hidden"),d(t,o,n),s=setTimeout((()=>{s=null,t.style.height=`${t.scrollHeight}px`,r=e=>{u=null,Object(e)===e&&e.target!==t||p(t,"show")},t.addEventListener("transitionend",r),u=setTimeout(r,1.1*e.duration)}),100)}function v(t,n){let o;a=t,!0===l?c():(i="show",t.style.overflowY="hidden",o=t.scrollHeight),d(t,o,n),s=setTimeout((()=>{s=null,t.style.height=0,r=e=>{u=null,Object(e)===e&&e.target!==t||p(t,"hide")},t.addEventListener("transitionend",r),u=setTimeout(r,1.1*e.duration)}),100)}return onBeforeUnmount((()=>{!0===l&&c()})),()=>h(Transition$1,{css:!1,appear:e.appear,onEnter:f,onLeave:v},t.default)}}),insetMap={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},margins={xs:2,sm:4,md:8,lg:16,xl:24},QSeparator_default=createComponent({name:"QSeparator",props:{...useDarkProps,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const t=getCurrentInstance(),n=use_dark_default(e,t.proxy.$q),o=computed((()=>!0===e.vertical?"vertical":"horizontal")),a=computed((()=>` q-separator--${o.value}`)),r=computed((()=>!1!==e.inset?`${a.value}-${insetMap[e.inset]}`:"")),i=computed((()=>`q-separator${a.value}${r.value}`+(void 0!==e.color?` bg-${e.color}`:"")+(!0===n.value?" q-separator--dark":""))),l=computed((()=>{const t={};if(void 0!==e.size&&(t[!0===e.vertical?"width":"height"]=e.size),!1!==e.spaced){const n=!0===e.spaced?`${margins.md}px`:e.spaced in margins?`${margins[e.spaced]}px`:e.spaced,o=!0===e.vertical?["Left","Right"]:["Top","Bottom"];t[`margin${o[0]}`]=t[`margin${o[1]}`]=n}return t}));return()=>h("hr",{class:i.value,style:l.value,"aria-orientation":o.value})}}),itemGroups=shallowReactive({}),LINK_PROPS=Object.keys(useRouterLinkProps);createComponent({name:"QExpansionItem",props:{...useRouterLinkProps,...useModelToggleProps,...useDarkProps,icon:String,label:String,labelLines:[Number,String],caption:String,captionLines:[Number,String],dense:Boolean,toggleAriaLabel:String,expandIcon:String,expandedIcon:String,expandIconClass:[Array,String,Object],duration:{},headerInsetLevel:Number,contentInsetLevel:Number,expandSeparator:Boolean,defaultOpened:Boolean,hideExpandIcon:Boolean,expandIconToggle:Boolean,switchToggleSide:Boolean,denseToggle:Boolean,group:String,popup:Boolean,headerStyle:[Array,String,Object],headerClass:[Array,String,Object]},emits:[...useModelToggleEmits,"click","afterShow","afterHide"],setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=getCurrentInstance(),a=use_dark_default(e,o),r=ref(null!==e.modelValue?e.modelValue:e.defaultOpened),i=ref(null),l=use_id_default(),{show:s,hide:u,toggle:c}=use_model_toggle_default({showing:r});let d,p;const f=computed((()=>`q-expansion-item q-item-type q-expansion-item--${!0===r.value?"expanded":"collapsed"} q-expansion-item--${!0===e.popup?"popup":"standard"}`)),v=computed((()=>{if(void 0===e.contentInsetLevel)return null;const t=!0===o.lang.rtl?"Right":"Left";return{["padding"+t]:56*e.contentInsetLevel+"px"}})),m=computed((()=>!0!==e.disable&&(void 0!==e.href||void 0!==e.to&&null!==e.to&&""!==e.to))),g=computed((()=>{const t={};return LINK_PROPS.forEach((n=>{t[n]=e[n]})),t})),_=computed((()=>!0===m.value||!0!==e.expandIconToggle)),b=computed((()=>void 0!==e.expandedIcon&&!0===r.value?e.expandedIcon:e.expandIcon||o.iconSet.expansionItem[!0===e.denseToggle?"denseIcon":"icon"])),y=computed((()=>!0!==e.disable&&(!0===m.value||!0===e.expandIconToggle))),w=computed((()=>({expanded:!0===r.value,detailsId:l.value,toggle:c,show:s,hide:u}))),C=computed((()=>{const t=void 0!==e.toggleAriaLabel?e.toggleAriaLabel:o.lang.label[!0===r.value?"collapse":"expand"](e.label);return{role:"button","aria-expanded":!0===r.value?"true":"false","aria-controls":l.value,"aria-label":t}}));function S(e){!0!==m.value&&c(e),n("click",e)}function k(e){13===e.keyCode&&x(e,!0)}function x(e,t){!0!==t&&null!==i.value&&i.value.focus(),c(e),stopAndPrevent(e)}function M(){n("afterShow")}function T(){n("afterHide")}function $(){void 0===d&&(d=uid_default()),!0===r.value&&(itemGroups[e.group]=d);const t=watch(r,(t=>{!0===t?itemGroups[e.group]=d:itemGroups[e.group]===d&&delete itemGroups[e.group]})),n=watch((()=>itemGroups[e.group]),((e,t)=>{t===d&&void 0!==e&&e!==d&&u()}));p=()=>{t(),n(),itemGroups[e.group]===d&&delete itemGroups[e.group],p=void 0}}function E(){let n;return void 0!==t.header?n=[].concat(t.header(w.value)):(n=[h(QItemSection_default,(()=>[h(QItemLabel_default,{lines:e.labelLines},(()=>e.label||"")),e.caption?h(QItemLabel_default,{lines:e.captionLines,caption:!0},(()=>e.caption)):null]))],e.icon&&n[!0===e.switchToggleSide?"push":"unshift"](h(QItemSection_default,{side:!0===e.switchToggleSide,avatar:!0!==e.switchToggleSide},(()=>h(QIcon_default,{name:e.icon}))))),!0!==e.disable&&!0!==e.hideExpandIcon&&n[!0===e.switchToggleSide?"unshift":"push"](function(){const t={class:["q-focusable relative-position cursor-pointer"+(!0===e.denseToggle&&!0===e.switchToggleSide?" items-end":""),e.expandIconClass],side:!0!==e.switchToggleSide,avatar:e.switchToggleSide},n=[h(QIcon_default,{class:"q-expansion-item__toggle-icon"+(void 0===e.expandedIcon&&!0===r.value?" q-expansion-item__toggle-icon--rotated":""),name:b.value})];return!0===y.value&&(Object.assign(t,{tabindex:0,...C.value,onClick:x,onKeyup:k}),n.unshift(h("div",{ref:i,class:"q-expansion-item__toggle-focus q-icon q-focus-helper q-focus-helper--rounded",tabindex:-1}))),h(QItemSection_default,t,(()=>n))}()),n}function N(){const t={ref:"item",style:e.headerStyle,class:e.headerClass,dark:a.value,disable:e.disable,dense:e.dense,insetLevel:e.headerInsetLevel};return!0===_.value&&(t.clickable=!0,t.onClick=S,Object.assign(t,!0===m.value?g.value:C.value)),h(QItem_default,t,E)}function L(){return withDirectives(h("div",{key:"e-content",class:"q-expansion-item__content relative-position",style:v.value,id:l.value},hSlot(t.default)),[[vShow,r.value]])}function D(){const t=[N(),h(QSlideTransition_default,{duration:e.duration,onShow:M,onHide:T},L)];return!0===e.expandSeparator&&t.push(h(QSeparator_default,{class:"q-expansion-item__border q-expansion-item__border--top absolute-top",dark:a.value}),h(QSeparator_default,{class:"q-expansion-item__border q-expansion-item__border--bottom absolute-bottom",dark:a.value})),t}return watch((()=>e.group),(e=>{void 0!==p&&p(),void 0!==e&&$()})),void 0!==e.group&&$(),onBeforeUnmount((()=>{void 0!==p&&p()})),()=>h("div",{class:f.value},[h("div",{class:"q-expansion-item__container relative-position"},D())])}});var labelPositions=["top","right","bottom","left"],useFabProps={type:{type:String,default:"a"},outline:Boolean,push:Boolean,flat:Boolean,unelevated:Boolean,color:String,textColor:String,glossy:Boolean,square:Boolean,padding:String,label:{type:[String,Number],default:""},labelPosition:{type:String,default:"right",validator:e=>labelPositions.includes(e)},externalLabel:Boolean,hideLabel:{type:Boolean},labelClass:[Array,String,Object],labelStyle:[Array,String,Object],disable:Boolean,tabindex:[Number,String]};function use_fab_default(e,t){return{formClass:computed((()=>"q-fab--form-"+(!0===e.square?"square":"rounded"))),stacked:computed((()=>!1===e.externalLabel&&["top","bottom"].includes(e.labelPosition))),labelProps:computed((()=>{if(!0===e.externalLabel){const n=null===e.hideLabel?!1===t.value:e.hideLabel;return{action:"push",data:{class:[e.labelClass,`q-fab__label q-tooltip--style q-fab__label--external q-fab__label--external-${e.labelPosition}`+(!0===n?" q-fab__label--external-hidden":"")],style:e.labelStyle}}}return{action:["left","top"].includes(e.labelPosition)?"unshift":"push",data:{class:[e.labelClass,`q-fab__label q-fab__label--internal q-fab__label--internal-${e.labelPosition}`+(!0===e.hideLabel?" q-fab__label--internal-hidden":"")],style:e.labelStyle}}}))}}var directions=["up","right","down","left"],alignValues4=["left","center","right"];createComponent({name:"QFab",props:{...useFabProps,...useModelToggleProps,icon:String,activeIcon:String,hideIcon:Boolean,hideLabel:{...useFabProps.hideLabel,default:null},direction:{type:String,default:"right",validator:e=>directions.includes(e)},persistent:Boolean,verticalActionsAlign:{type:String,default:"center",validator:e=>alignValues4.includes(e)}},emits:useModelToggleEmits,setup(e,{slots:t}){const n=ref(null),o=ref(!0===e.modelValue),a=use_id_default(),{proxy:{$q:r}}=getCurrentInstance(),{formClass:i,labelProps:l}=use_fab_default(e,o),s=computed((()=>!0!==e.persistent)),{hide:u,toggle:c}=use_model_toggle_default({showing:o,hideOnRouteChange:s}),d=computed((()=>({opened:o.value}))),p=computed((()=>`q-fab z-fab row inline justify-center q-fab--align-${e.verticalActionsAlign} ${i.value}`+(!0===o.value?" q-fab--opened":" q-fab--closed"))),f=computed((()=>`q-fab__actions flex no-wrap inline q-fab__actions--${e.direction} q-fab__actions--${!0===o.value?"opened":"closed"}`)),v=computed((()=>{const e={id:a.value,role:"menu"};return!0!==o.value&&(e["aria-hidden"]="true"),e})),m=computed((()=>"q-fab__icon-holder  q-fab__icon-holder--"+(!0===o.value?"opened":"closed")));function g(n,o){const a=t[n],i=`q-fab__${n} absolute-full`;return void 0===a?h(QIcon_default,{class:i,name:e[o]||r.iconSet.fab[o]}):h("div",{class:i},a(d.value))}function _(){const n=[];return!0!==e.hideIcon&&n.push(h("div",{class:m.value},[g("icon","icon"),g("active-icon","activeIcon")])),""===e.label&&void 0===t.label||n[l.value.action](h("div",l.value.data,void 0!==t.label?t.label(d.value):[e.label])),hMergeSlot(t.tooltip,n)}return provide(fabKey,{showing:o,onChildClick(e){u(e),null!==n.value&&n.value.$el.focus()}}),()=>h("div",{class:p.value},[h(QBtn_default,{ref:n,class:i.value,...e,noWrap:!0,stack:e.stacked,align:void 0,icon:void 0,label:void 0,noCaps:!0,fab:!0,"aria-expanded":!0===o.value?"true":"false","aria-haspopup":"true","aria-controls":a.value,onClick:c},_),h("div",{class:f.value,...v.value},hSlot(t.default))])}});var anchorMap={start:"self-end",center:"self-center",end:"self-start"},anchorValues=Object.keys(anchorMap);function use_form_child_default({validate:e,resetValidation:t,requiresQForm:n}){const o=inject(formKey,!1);if(!1!==o){const{props:n,proxy:a}=getCurrentInstance();Object.assign(a,{validate:e,resetValidation:t}),watch((()=>n.disable),(e=>{!0===e?("function"==typeof t&&t(),o.unbindComponent(a)):o.bindComponent(a)})),onMounted((()=>{!0!==n.disable&&o.bindComponent(a)})),onBeforeUnmount((()=>{!0!==n.disable&&o.unbindComponent(a)}))}else!0===n&&console.error("Parent QForm not found on useFormChild()!")}createComponent({name:"QFabAction",props:{...useFabProps,icon:{type:String,default:""},anchor:{type:String,validator:e=>anchorValues.includes(e)},to:[String,Object],replace:Boolean},emits:["click"],setup(e,{slots:t,emit:n}){const o=inject(fabKey,(()=>({showing:{value:!0},onChildClick:noop}))),{formClass:a,labelProps:r}=use_fab_default(e,o.showing),i=computed((()=>{const t=anchorMap[e.anchor];return a.value+(void 0!==t?` ${t}`:"")})),l=computed((()=>!0===e.disable||!0!==o.showing.value));function s(e){o.onChildClick(e),n("click",e)}function u(){const n=[];return void 0!==t.icon?n.push(t.icon()):""!==e.icon&&n.push(h(QIcon_default,{name:e.icon})),""===e.label&&void 0===t.label||n[r.value.action](h("div",r.value.data,void 0!==t.label?t.label():[e.label])),hMergeSlot(t.default,n)}const c=getCurrentInstance();return Object.assign(c.proxy,{click:s}),()=>h(QBtn_default,{class:i.value,...e,noWrap:!0,stack:e.stacked,icon:void 0,label:void 0,noCaps:!0,fabMini:!0,disable:l.value,onClick:s},u)}});var lazyRulesValues=[!0,!1,"ondemand"],useValidateProps={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>lazyRulesValues.includes(e)}};function use_validate_default(e,t){const{props:n,proxy:o}=getCurrentInstance(),a=ref(!1),r=ref(null),i=ref(!1);use_form_child_default({validate:v,resetValidation:f});let l,s=0;const u=computed((()=>void 0!==n.rules&&null!==n.rules&&0!==n.rules.length)),c=computed((()=>!0!==n.disable&&!0===u.value&&!1===t.value)),d=computed((()=>!0===n.error||!0===a.value)),p=computed((()=>"string"==typeof n.errorMessage&&0!==n.errorMessage.length?n.errorMessage:r.value));function h(){"ondemand"!==n.lazyRules&&!0===c.value&&!0===i.value&&m()}function f(){s++,t.value=!1,i.value=!1,a.value=!1,r.value=null,m.cancel()}function v(e=n.modelValue){if(!0===n.disable||!1===u.value)return!0;const o=++s,l=!0!==t.value?()=>{i.value=!0}:()=>{},c=(e,n)=>{!0===e&&l(),a.value=e,r.value=n||null,t.value=!1},d=[];for(let t=0;t<n.rules.length;t++){const o=n.rules[t];let a;if("function"==typeof o?a=o(e,testPattern):"string"==typeof o&&void 0!==testPattern[o]&&(a=testPattern[o](e)),!1===a||"string"==typeof a)return c(!0,a),!1;!0!==a&&void 0!==a&&d.push(a)}return 0===d.length?(c(!1),!0):(t.value=!0,Promise.all(d).then((e=>{if(void 0===e||!1===Array.isArray(e)||0===e.length)return o===s&&c(!1),!0;const t=e.find((e=>!1===e||"string"==typeof e));return o===s&&c(void 0!==t,t),void 0===t}),(e=>(o===s&&(console.error(e),c(!0)),!1))))}watch((()=>n.modelValue),(()=>{i.value=!0,!0===c.value&&!1===n.lazyRules&&m()})),watch((()=>n.reactiveRules),(e=>{!0===e?void 0===l&&(l=watch((()=>n.rules),h,{immediate:!0,deep:!0})):void 0!==l&&(l(),l=void 0)}),{immediate:!0}),watch((()=>n.lazyRules),h),watch(e,(e=>{!0===e?i.value=!0:!0===c.value&&"ondemand"!==n.lazyRules&&m()}));const m=debounce_default(v,0);return onBeforeUnmount((()=>{void 0!==l&&l(),m.cancel()})),Object.assign(o,{resetValidation:f,validate:v}),injectProp(o,"hasError",(()=>d.value)),{isDirtyModel:i,hasRules:u,hasError:d,errorMessage:p,validate:v,resetValidation:f}}function fieldValueIsFilled(e){return null!=e&&0!==(""+e).length}var useNonInputFieldProps={...useDarkProps,...useValidateProps,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String},useFieldProps={...useNonInputFieldProps,maxlength:[Number,String]},useFieldEmits=["update:modelValue","clear","focus","blur"];function useFieldState({requiredForAttr:e=!0,tagProp:t,changeEvent:n=!1}={}){const{props:o,proxy:a}=getCurrentInstance(),r=use_dark_default(o,a.$q),i=use_id_default({required:e,getValue:()=>o.for});return{requiredForAttr:e,changeEvent:n,tag:!0===t?computed((()=>o.tag)):{value:"label"},isDark:r,editable:computed((()=>!0!==o.disable&&!0!==o.readonly)),innerLoading:ref(!1),focused:ref(!1),hasPopupOpen:!1,splitAttrs:use_split_attrs_default(),targetUid:i,rootRef:ref(null),targetRef:ref(null),controlRef:ref(null)}}function use_field_default(e){const{props:t,emit:n,slots:o,attrs:a,proxy:r}=getCurrentInstance(),{$q:i}=r;let l=null;void 0===e.hasValue&&(e.hasValue=computed((()=>fieldValueIsFilled(t.modelValue)))),void 0===e.emitValue&&(e.emitValue=e=>{n("update:modelValue",e)}),void 0===e.controlEvents&&(e.controlEvents={onFocusin:x,onFocusout:M}),Object.assign(e,{clearValue:T,onControlFocusin:x,onControlFocusout:M,focus:k}),void 0===e.computedCounter&&(e.computedCounter=computed((()=>{if(!1!==t.counter){const e="string"==typeof t.modelValue||"number"==typeof t.modelValue?(""+t.modelValue).length:!0===Array.isArray(t.modelValue)?t.modelValue.length:0,n=void 0!==t.maxlength?t.maxlength:t.maxValues;return e+(void 0!==n?" / "+n:"")}})));const{isDirtyModel:s,hasRules:u,hasError:c,errorMessage:d,resetValidation:p}=use_validate_default(e.focused,e.innerLoading),f=void 0!==e.floatingLabel?computed((()=>!0===t.stackLabel||!0===e.focused.value||!0===e.floatingLabel.value)):computed((()=>!0===t.stackLabel||!0===e.focused.value||!0===e.hasValue.value)),v=computed((()=>!0===t.bottomSlots||void 0!==t.hint||!0===u.value||!0===t.counter||null!==t.error)),m=computed((()=>!0===t.filled?"filled":!0===t.outlined?"outlined":!0===t.borderless?"borderless":t.standout?"standout":"standard")),g=computed((()=>`q-field row no-wrap items-start q-field--${m.value}`+(void 0!==e.fieldClass?` ${e.fieldClass.value}`:"")+(!0===t.rounded?" q-field--rounded":"")+(!0===t.square?" q-field--square":"")+(!0===f.value?" q-field--float":"")+(!0===b.value?" q-field--labeled":"")+(!0===t.dense?" q-field--dense":"")+(!0===t.itemAligned?" q-field--item-aligned q-item-type":"")+(!0===e.isDark.value?" q-field--dark":"")+(void 0===e.getControl?" q-field--auto-height":"")+(!0===e.focused.value?" q-field--focused":"")+(!0===c.value?" q-field--error":"")+(!0===c.value||!0===e.focused.value?" q-field--highlighted":"")+(!0!==t.hideBottomSpace&&!0===v.value?" q-field--with-bottom":"")+(!0===t.disable?" q-field--disabled":!0===t.readonly?" q-field--readonly":""))),_=computed((()=>"q-field__control relative-position row no-wrap"+(void 0!==t.bgColor?` bg-${t.bgColor}`:"")+(!0===c.value?" text-negative":"string"==typeof t.standout&&0!==t.standout.length&&!0===e.focused.value?` ${t.standout}`:void 0!==t.color?` text-${t.color}`:""))),b=computed((()=>!0===t.labelSlot||void 0!==t.label)),y=computed((()=>"q-field__label no-pointer-events absolute ellipsis"+(void 0!==t.labelColor&&!0!==c.value?` text-${t.labelColor}`:""))),w=computed((()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:f.value,modelValue:t.modelValue,emitValue:e.emitValue}))),C=computed((()=>{const n={};return e.targetUid.value&&(n.for=e.targetUid.value),!0===t.disable&&(n["aria-disabled"]="true"),n}));function S(){const t=document.activeElement;let n=void 0!==e.targetRef&&e.targetRef.value;!n||null!==t&&t.id===e.targetUid.value||(!0===n.hasAttribute("tabindex")||(n=n.querySelector("[tabindex]")),n&&n!==t&&n.focus({preventScroll:!0}))}function k(){addFocusFn(S)}function x(t){null!==l&&(clearTimeout(l),l=null),!0===e.editable.value&&!1===e.focused.value&&(e.focused.value=!0,n("focus",t))}function M(t,o){null!==l&&clearTimeout(l),l=setTimeout((()=>{l=null,(!0!==document.hasFocus()||!0!==e.hasPopupOpen&&void 0!==e.controlRef&&null!==e.controlRef.value&&!1===e.controlRef.value.contains(document.activeElement))&&(!0===e.focused.value&&(e.focused.value=!1,n("blur",t)),void 0!==o&&o())}))}function T(o){if(stopAndPrevent(o),!0!==i.platform.is.mobile){(void 0!==e.targetRef&&e.targetRef.value||e.rootRef.value).focus()}else!0===e.rootRef.value.contains(document.activeElement)&&document.activeElement.blur();"file"===t.type&&(e.inputRef.value.value=null),n("update:modelValue",null),!0===e.changeEvent&&n("change",null),n("clear",t.modelValue),nextTick((()=>{const e=s.value;p(),s.value=e}))}function $(e){[13,32].includes(e.keyCode)&&T(e)}function E(){const n=[];return void 0!==o.prepend&&n.push(h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:prevent},o.prepend())),n.push(h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},function(){const n=[];void 0!==t.prefix&&null!==t.prefix&&n.push(h("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),void 0!==e.getShadowControl&&!0===e.hasShadow.value&&n.push(e.getShadowControl());void 0!==e.getControl?n.push(e.getControl()):void 0!==o.rawControl?n.push(o.rawControl()):void 0!==o.control&&n.push(h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":!0===t.autofocus||void 0},o.control(w.value)));return!0===b.value&&n.push(h("div",{class:y.value},hSlot(o.label,t.label))),void 0!==t.suffix&&null!==t.suffix&&n.push(h("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),n.concat(hSlot(o.default))}())),!0===c.value&&!1===t.noErrorIcon&&n.push(L("error",[h(QIcon_default,{name:i.iconSet.field.error,color:"negative"})])),!0===t.loading||!0===e.innerLoading.value?n.push(L("inner-loading-append",void 0!==o.loading?o.loading():[h(QSpinner_default,{color:t.color})])):!0===t.clearable&&!0===e.hasValue.value&&!0===e.editable.value&&n.push(L("inner-clearable-append",[h(QIcon_default,{class:"q-field__focusable-action",name:t.clearIcon||i.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":i.lang.label.clear,onKeyup:$,onClick:T})])),void 0!==o.append&&n.push(h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:prevent},o.append())),void 0!==e.getInnerAppend&&n.push(L("inner-append",e.getInnerAppend())),void 0!==e.getControlChild&&n.push(e.getControlChild()),n}function N(){let n,a;!0===c.value?null!==d.value?(n=[h("div",{role:"alert"},d.value)],a=`q--slot-error-${d.value}`):(n=hSlot(o.error),a="q--slot-error"):!0===t.hideHint&&!0!==e.focused.value||(void 0!==t.hint?(n=[h("div",t.hint)],a=`q--slot-hint-${t.hint}`):(n=hSlot(o.hint),a="q--slot-hint"));const r=!0===t.counter||void 0!==o.counter;if(!0===t.hideBottomSpace&&!1===r&&void 0===n)return;const i=h("div",{key:a,class:"q-field__messages col"},n);return h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(!0!==t.hideBottomSpace?"animated":"stale"),onClick:prevent},[!0===t.hideBottomSpace?i:h(Transition$1,{name:"q-transition--field-message"},(()=>i)),!0===r?h("div",{class:"q-field__counter"},void 0!==o.counter?o.counter():e.computedCounter.value):null])}function L(e,t){return null===t?null:h("div",{key:e,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},t)}let D=!1;return onDeactivated((()=>{D=!0})),onActivated((()=>{!0===D&&!0===t.autofocus&&r.focus()})),!0===t.autofocus&&onMounted((()=>{r.focus()})),onBeforeUnmount((()=>{null!==l&&clearTimeout(l)})),Object.assign(r,{focus:k,blur:function(){removeFocusFn(S);const t=document.activeElement;null!==t&&e.rootRef.value.contains(t)&&t.blur()}}),function(){const n=void 0===e.getControl&&void 0===o.control?{...e.splitAttrs.attributes.value,"data-autofocus":!0===t.autofocus||void 0,...C.value}:C.value;return h(e.tag.value,{ref:e.rootRef,class:[g.value,a.class],style:a.style,...n},[void 0!==o.before?h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:prevent},o.before()):null,h("div",{class:"q-field__inner relative-position col self-stretch"},[h("div",{ref:e.controlRef,class:_.value,tabindex:-1,...e.controlEvents},E()),!0===v.value?N():null]),void 0!==o.after?h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:prevent},o.after()):null])}}var QField_default=createComponent({name:"QField",inheritAttrs:!1,props:{...useFieldProps,tag:{type:String,default:"label"}},emits:useFieldEmits,setup:()=>use_field_default(useFieldState({tagProp:!0}))});function filterFiles(e,t,n,o){const a=[];return e.forEach((e=>{!0===o(e)?a.push(e):t.push({failedPropValidation:n,file:e})})),a}function stopAndPreventDrag(e){e&&e.dataTransfer&&(e.dataTransfer.dropEffect="copy"),stopAndPrevent(e)}var useFileProps={multiple:Boolean,accept:String,capture:String,maxFileSize:[Number,String],maxTotalSize:[Number,String],maxFiles:[Number,String],filter:Function},useFileEmits=["rejected"];function use_file_default({editable:e,dnd:t,getFileInput:n,addFilesToQueue:o}){const{props:a,emit:r,proxy:i}=getCurrentInstance(),l=ref(null),s=computed((()=>void 0!==a.accept?a.accept.split(",").map((e=>"*"===(e=e.trim())?"*/":(e.endsWith("/*")&&(e=e.slice(0,e.length-1)),e.toUpperCase()))):null)),u=computed((()=>parseInt(a.maxFiles,10))),c=computed((()=>parseInt(a.maxTotalSize,10)));function d(t){if(e.value)if(t!==Object(t)&&(t={target:null}),null!==t.target&&!0===t.target.matches('input[type="file"]'))0===t.clientX&&0===t.clientY&&stop$1(t);else{const e=n();e&&e!==t.target&&e.click(t)}}function p(t){e.value&&t&&o(null,t)}function f(e){stopAndPrevent(e);!0===(null!==e.relatedTarget||!0!==client.is.safari?e.relatedTarget!==l.value:!1===document.elementsFromPoint(e.clientX,e.clientY).includes(l.value))&&(t.value=!1)}function v(e){stopAndPreventDrag(e);const n=e.dataTransfer.files;0!==n.length&&o(null,n),t.value=!1}return Object.assign(i,{pickFiles:d,addFiles:p}),{pickFiles:d,addFiles:p,onDragover:function(e){stopAndPreventDrag(e),!0!==t.value&&(t.value=!0)},onDragleave:f,processFiles:function(e,t,n,o){let i=Array.from(t||e.target.files);const l=[],d=()=>{0!==l.length&&r("rejected",l)};if(void 0!==a.accept&&-1===s.value.indexOf("*/")&&(i=filterFiles(i,l,"accept",(e=>s.value.some((t=>e.type.toUpperCase().startsWith(t)||e.name.toUpperCase().endsWith(t))))),0===i.length))return d();if(void 0!==a.maxFileSize){const e=parseInt(a.maxFileSize,10);if(i=filterFiles(i,l,"max-file-size",(t=>t.size<=e)),0===i.length)return d()}if(!0!==a.multiple&&0!==i.length&&(i=[i[0]]),i.forEach((e=>{e.__key=e.webkitRelativePath+e.lastModified+e.name+e.size})),!0===o){const e=n.map((e=>e.__key));i=filterFiles(i,l,"duplicate",(t=>!1===e.includes(t.__key)))}if(0===i.length)return d();if(void 0!==a.maxTotalSize){let e=!0===o?n.reduce(((e,t)=>e+t.size),0):0;if(i=filterFiles(i,l,"max-total-size",(t=>(e+=t.size,e<=c.value))),0===i.length)return d()}if("function"==typeof a.filter){const e=a.filter(i);i=filterFiles(i,l,"filter",(t=>e.includes(t)))}if(void 0!==a.maxFiles){let e=!0===o?n.length:0;if(i=filterFiles(i,l,"max-files",(()=>(e++,e<=u.value))),0===i.length)return d()}return d(),0!==i.length?i:void 0},getDndNode:function(e){if(!0===t.value)return h("div",{ref:l,class:`q-${e}__dnd absolute-full`,onDragenter:stopAndPreventDrag,onDragover:stopAndPreventDrag,onDragleave:f,onDrop:v})},maxFilesNumber:u,maxTotalSizeNumber:c}}function use_file_dom_props_default(e,t){function n(){const t=e.modelValue;try{const e="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(t)===t&&("length"in t?Array.from(t):[t]).forEach((t=>{e.items.add(t)})),{files:e.files}}catch(e){return{files:void 0}}}return computed(!0===t?()=>{if("file"===e.type)return n()}:n)}createComponent({name:"QFile",inheritAttrs:!1,props:{...useNonInputFieldProps,...useFormProps,...useFileProps,modelValue:[File,FileList,Array],append:Boolean,useChips:Boolean,displayValue:[String,Number],tabindex:{type:[String,Number],default:0},counterLabel:Function,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...useFieldEmits,...useFileEmits],setup(e,{slots:t,emit:n,attrs:o}){const{proxy:a}=getCurrentInstance(),r=useFieldState(),i=ref(null),l=ref(!1),s=useFormInputNameAttr(e),{pickFiles:u,onDragover:c,onDragleave:d,processFiles:p,getDndNode:f}=use_file_default({editable:r.editable,dnd:l,getFileInput:$,addFilesToQueue:E}),v=use_file_dom_props_default(e),m=computed((()=>Object(e.modelValue)===e.modelValue?"length"in e.modelValue?Array.from(e.modelValue):[e.modelValue]:[])),g=computed((()=>fieldValueIsFilled(m.value))),_=computed((()=>m.value.map((e=>e.name)).join(", "))),b=computed((()=>humanStorageSize(m.value.reduce(((e,t)=>e+t.size),0)))),y=computed((()=>({totalSize:b.value,filesNumber:m.value.length,maxFiles:e.maxFiles}))),w=computed((()=>({tabindex:-1,type:"file",title:"",accept:e.accept,capture:e.capture,name:s.value,...o,id:r.targetUid.value,disabled:!0!==r.editable.value}))),C=computed((()=>"q-file q-field--auto-height"+(!0===l.value?" q-file--dnd":""))),S=computed((()=>!0===e.multiple&&!0===e.append));function k(e){const t=m.value.slice();t.splice(e,1),x(t)}function x(t){n("update:modelValue",!0===e.multiple?t:t[0])}function M(e){13===e.keyCode&&prevent(e)}function T(e){13!==e.keyCode&&32!==e.keyCode||u(e)}function $(){return i.value}function E(t,n){const o=p(t,n,m.value,S.value),a=$();null!=a&&(a.value=""),void 0!==o&&((!0===e.multiple?e.modelValue&&o.every((e=>m.value.includes(e))):e.modelValue===o[0])||x(!0===S.value?m.value.concat(o):o))}function N(){return[h("input",{class:[e.inputClass,"q-file__filler"],style:e.inputStyle})]}function L(){const t={ref:i,...w.value,...v.value,class:"q-field__input fit absolute-full cursor-pointer",onChange:E};return!0===e.multiple&&(t.multiple=!0),h("input",t)}return Object.assign(r,{fieldClass:C,emitValue:x,hasValue:g,inputRef:i,innerValue:m,floatingLabel:computed((()=>!0===g.value||fieldValueIsFilled(e.displayValue))),computedCounter:computed((()=>{if(void 0!==e.counterLabel)return e.counterLabel(y.value);const t=e.maxFiles;return`${m.value.length}${void 0!==t?" / "+t:""} (${b.value})`})),getControlChild:()=>f("file"),getControl:()=>{const n={ref:r.targetRef,class:"q-field__native row items-center cursor-pointer",tabindex:e.tabindex};return!0===r.editable.value&&Object.assign(n,{onDragover:c,onDragleave:d,onKeydown:M,onKeyup:T}),h("div",n,[L()].concat(function(){if(void 0!==t.file)return 0===m.value.length?N():m.value.map(((e,n)=>t.file({index:n,file:e,ref:this})));if(void 0!==t.selected)return 0===m.value.length?N():t.selected({files:m.value,ref:this});if(!0===e.useChips)return 0===m.value.length?N():m.value.map(((t,n)=>h(QChip_default,{key:"file-"+n,removable:r.editable.value,dense:!0,textColor:e.color,tabindex:e.tabindex,onRemove:()=>{k(n)}},(()=>h("span",{class:"ellipsis",textContent:t.name})))));const n=void 0!==e.displayValue?e.displayValue:_.value;return 0!==n.length?[h("div",{class:e.inputClass,style:e.inputStyle,textContent:n})]:N()}()))}}),Object.assign(a,{removeAtIndex:k,removeFile:function(e){const t=m.value.indexOf(e);-1!==t&&k(t)},getNativeElement:()=>i.value}),injectProp(a,"nativeEl",(()=>i.value)),use_field_default(r)}}),createComponent({name:"QFooter",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=getCurrentInstance(),a=inject(layoutKey,emptyRenderFn);if(a===emptyRenderFn)return console.error("QFooter needs to be child of QLayout"),emptyRenderFn;const r=ref(parseInt(e.heightHint,10)),i=ref(!0),l=ref(!0===isRuntimeSsrPreHydration.value||!0===a.isContainer.value?0:window.innerHeight),s=computed((()=>!0===e.reveal||-1!==a.view.value.indexOf("F")||o.platform.is.ios&&!0===a.isContainer.value)),u=computed((()=>!0===a.isContainer.value?a.containerHeight.value:l.value)),c=computed((()=>{if(!0!==e.modelValue)return 0;if(!0===s.value)return!0===i.value?r.value:0;const t=a.scroll.value.position+u.value+r.value-a.height.value;return t>0?t:0})),d=computed((()=>!0!==e.modelValue||!0===s.value&&!0!==i.value)),p=computed((()=>!0===e.modelValue&&!0===d.value&&!0===e.reveal)),f=computed((()=>"q-footer q-layout__section--marginal "+(!0===s.value?"fixed":"absolute")+"-bottom"+(!0===e.bordered?" q-footer--bordered":"")+(!0===d.value?" q-footer--hidden":"")+(!0!==e.modelValue?" q-layout--prevent-focus"+(!0!==s.value?" hidden":""):""))),v=computed((()=>{const e=a.rows.value.bottom,t={};return"l"===e[0]&&!0===a.left.space&&(t[!0===o.lang.rtl?"right":"left"]=`${a.left.size}px`),"r"===e[2]&&!0===a.right.space&&(t[!0===o.lang.rtl?"left":"right"]=`${a.right.size}px`),t}));function m(e,t){a.update("footer",e,t)}function g(e,t){e.value!==t&&(e.value=t)}function _({height:e}){g(r,e),m("size",e)}function b(e){!0===p.value&&g(i,!0),n("focusin",e)}watch((()=>e.modelValue),(e=>{m("space",e),g(i,!0),a.animate()})),watch(c,(e=>{m("offset",e)})),watch((()=>e.reveal),(t=>{!1===t&&g(i,e.modelValue)})),watch(i,(e=>{a.animate(),n("reveal",e)})),watch([r,a.scroll,a.height],(function(){if(!0!==e.reveal)return;const{direction:t,position:n,inflectionPoint:o}=a.scroll.value;g(i,"up"===t||n-o<100||a.height.value-u.value-n-r.value<300)})),watch((()=>o.screen.height),(e=>{!0!==a.isContainer.value&&g(l,e)}));const y={};return a.instances.footer=y,!0===e.modelValue&&m("size",r.value),m("space",e.modelValue),m("offset",c.value),onBeforeUnmount((()=>{a.instances.footer===y&&(a.instances.footer=void 0,m("size",0),m("offset",0),m("space",!1))})),()=>{const n=hMergeSlot(t.default,[h(QResizeObserver_default,{debounce:0,onResize:_})]);return!0===e.elevated&&n.push(h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),h("footer",{class:f.value,style:v.value,onFocusin:b},n)}}}),createComponent({name:"QForm",props:{autofocus:Boolean,noErrorFocus:Boolean,noResetFocus:Boolean,greedy:Boolean,onSubmit:Function},emits:["reset","validationSuccess","validationError"],setup(e,{slots:t,emit:n}){const o=getCurrentInstance(),a=ref(null);let r=0;const i=[];function l(t){const o="boolean"==typeof t?t:!0!==e.noErrorFocus,a=++r,l=(e,t)=>{n("validation"+(!0===e?"Success":"Error"),t)},s=e=>{const t=e.validate();return"function"==typeof t.then?t.then((t=>({valid:t,comp:e})),(t=>({valid:!1,comp:e,err:t}))):Promise.resolve({valid:t,comp:e})};return(!0===e.greedy?Promise.all(i.map(s)).then((e=>e.filter((e=>!0!==e.valid)))):i.reduce(((e,t)=>e.then((()=>s(t).then((e=>{if(!1===e.valid)return Promise.reject(e)}))))),Promise.resolve()).catch((e=>[e]))).then((e=>{if(void 0===e||0===e.length)return a===r&&l(!0),!0;if(a===r){const{comp:t,err:n}=e[0];if(void 0!==n&&console.error(n),l(!1,t),!0===o){const t=e.find((({comp:e})=>"function"==typeof e.focus&&!1===vmIsDestroyed(e.$)));void 0!==t&&t.comp.focus()}}return!1}))}function s(){r++,i.forEach((e=>{"function"==typeof e.resetValidation&&e.resetValidation()}))}function u(t){void 0!==t&&stopAndPrevent(t);const o=r+1;l().then((a=>{o===r&&!0===a&&(void 0!==e.onSubmit?n("submit",t):void 0!==t&&void 0!==t.target&&"function"==typeof t.target.submit&&t.target.submit())}))}function c(t){void 0!==t&&stopAndPrevent(t),n("reset"),nextTick((()=>{s(),!0===e.autofocus&&!0!==e.noResetFocus&&d()}))}function d(){addFocusFn((()=>{if(null===a.value)return;const e=a.value.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||a.value.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||a.value.querySelector("[autofocus], [data-autofocus]")||Array.prototype.find.call(a.value.querySelectorAll("[tabindex]"),(e=>-1!==e.tabIndex));null!=e&&e.focus({preventScroll:!0})}))}provide(formKey,{bindComponent(e){i.push(e)},unbindComponent(e){const t=i.indexOf(e);-1!==t&&i.splice(t,1)}});let p=!1;return onDeactivated((()=>{p=!0})),onActivated((()=>{!0===p&&!0===e.autofocus&&d()})),onMounted((()=>{!0===e.autofocus&&d()})),Object.assign(o.proxy,{validate:l,resetValidation:s,submit:u,reset:c,focus:d,getValidationComponents:()=>i}),()=>h("form",{class:"q-form",ref:a,onSubmit:u,onReset:c},hSlot(t.default))}}),createComponent({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=getCurrentInstance(),a=inject(layoutKey,emptyRenderFn);if(a===emptyRenderFn)return console.error("QHeader needs to be child of QLayout"),emptyRenderFn;const r=ref(parseInt(e.heightHint,10)),i=ref(!0),l=computed((()=>!0===e.reveal||-1!==a.view.value.indexOf("H")||o.platform.is.ios&&!0===a.isContainer.value)),s=computed((()=>{if(!0!==e.modelValue)return 0;if(!0===l.value)return!0===i.value?r.value:0;const t=r.value-a.scroll.value.position;return t>0?t:0})),u=computed((()=>!0!==e.modelValue||!0===l.value&&!0!==i.value)),c=computed((()=>!0===e.modelValue&&!0===u.value&&!0===e.reveal)),d=computed((()=>"q-header q-layout__section--marginal "+(!0===l.value?"fixed":"absolute")+"-top"+(!0===e.bordered?" q-header--bordered":"")+(!0===u.value?" q-header--hidden":"")+(!0!==e.modelValue?" q-layout--prevent-focus":""))),p=computed((()=>{const e=a.rows.value.top,t={};return"l"===e[0]&&!0===a.left.space&&(t[!0===o.lang.rtl?"right":"left"]=`${a.left.size}px`),"r"===e[2]&&!0===a.right.space&&(t[!0===o.lang.rtl?"left":"right"]=`${a.right.size}px`),t}));function f(e,t){a.update("header",e,t)}function v(e,t){e.value!==t&&(e.value=t)}function m({height:e}){v(r,e),f("size",e)}function g(e){!0===c.value&&v(i,!0),n("focusin",e)}watch((()=>e.modelValue),(e=>{f("space",e),v(i,!0),a.animate()})),watch(s,(e=>{f("offset",e)})),watch((()=>e.reveal),(t=>{!1===t&&v(i,e.modelValue)})),watch(i,(e=>{a.animate(),n("reveal",e)})),watch(a.scroll,(t=>{!0===e.reveal&&v(i,"up"===t.direction||t.position<=e.revealOffset||t.position-t.inflectionPoint<100)}));const _={};return a.instances.header=_,!0===e.modelValue&&f("size",r.value),f("space",e.modelValue),f("offset",s.value),onBeforeUnmount((()=>{a.instances.header===_&&(a.instances.header=void 0,f("size",0),f("offset",0),f("space",!1))})),()=>{const n=hUniqueSlot(t.default,[]);return!0===e.elevated&&n.push(h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),n.push(h(QResizeObserver_default,{debounce:0,onResize:m})),h("header",{class:d.value,style:p.value,onFocusin:g},n)}}});var useRatioProps={ratio:[String,Number]};function use_ratio_default(e,t){return computed((()=>{const n=Number(e.ratio||(void 0!==t?t.value:void 0));return!0!==isNaN(n)&&n>0?{paddingBottom:100/n+"%"}:null}))}var defaultRatio=1.7778;createComponent({name:"QImg",props:{...useRatioProps,src:String,srcset:String,sizes:String,alt:String,crossorigin:String,decoding:String,referrerpolicy:String,draggable:Boolean,loading:{type:String,default:"lazy"},loadingShowDelay:{type:[Number,String],default:0},fetchpriority:{type:String,default:"auto"},width:String,height:String,initialRatio:{type:[Number,String],default:defaultRatio},placeholderSrc:String,errorSrc:String,fit:{type:String,default:"cover"},position:{type:String,default:"50% 50%"},imgClass:String,imgStyle:Object,noSpinner:Boolean,noNativeMenu:Boolean,noTransition:Boolean,spinnerColor:String,spinnerSize:String},emits:["load","error"],setup(e,{slots:t,emit:n}){const o=ref(e.initialRatio),a=use_ratio_default(e,o),r=getCurrentInstance(),{registerTimeout:i,removeTimeout:l}=use_timeout_default(),{registerTimeout:s,removeTimeout:u}=use_timeout_default(),c=computed((()=>void 0!==e.placeholderSrc?{src:e.placeholderSrc}:null)),d=computed((()=>void 0!==e.errorSrc?{src:e.errorSrc,__qerror:!0}:null)),p=[ref(null),ref(c.value)],f=ref(0),v=ref(!1),m=ref(!1),g=computed((()=>`q-img q-img--${!0===e.noNativeMenu?"no-":""}menu`)),_=computed((()=>({width:e.width,height:e.height}))),b=computed((()=>`q-img__image ${void 0!==e.imgClass?e.imgClass+" ":""}q-img__image--with${!0===e.noTransition?"out":""}-transition q-img__image--`)),y=computed((()=>({...e.imgStyle,objectFit:e.fit,objectPosition:e.position})));function w(){u(),v.value=!1}function C({target:e}){!1===vmIsDestroyed(r)&&(l(),o.value=0===e.naturalHeight?.5:e.naturalWidth/e.naturalHeight,S(e,1))}function S(e,t){1e3!==t&&!0!==vmIsDestroyed(r)&&(!0===e.complete?function(e){if(!0===vmIsDestroyed(r))return;f.value=1^f.value,p[f.value].value=null,w(),"true"!==e.getAttribute("__qerror")&&(m.value=!1);n("load",e.currentSrc||e.src)}(e):i((()=>{S(e,t+1)}),50))}function k(e){l(),w(),m.value=!0,p[f.value].value=d.value,p[1^f.value].value=c.value,n("error",e)}function x(t){const n=p[t].value,o={key:"img_"+t,class:b.value,style:y.value,alt:e.alt,crossorigin:e.crossorigin,decoding:e.decoding,referrerpolicy:e.referrerpolicy,height:e.height,width:e.width,loading:e.loading,fetchpriority:e.fetchpriority,"aria-hidden":"true",draggable:e.draggable,...n};return f.value===t?Object.assign(o,{class:o.class+"current",onLoad:C,onError:k}):o.class+="loaded",h("div",{class:"q-img__container absolute-full",key:"img"+t},h("img",o))}function M(){return!1===v.value?h("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},hSlot(t[!0===m.value?"error":"default"])):h("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},void 0!==t.loading?t.loading():!0===e.noSpinner?void 0:[h(QSpinner_default,{color:e.spinnerColor,size:e.spinnerSize})])}{let t=function(){watch((()=>e.src||e.srcset||e.sizes?{src:e.src,srcset:e.srcset,sizes:e.sizes}:null),(t=>{l(),m.value=!1,null===t?(w(),p[1^f.value].value=c.value):(u(),0!==e.loadingShowDelay?s((()=>{v.value=!0}),e.loadingShowDelay):v.value=!0),p[f.value].value=t}),{immediate:!0})};!0===isRuntimeSsrPreHydration.value?onMounted(t):t()}return()=>{const t=[];return null!==a.value&&t.push(h("div",{key:"filler",style:a.value})),null!==p[0].value&&t.push(x(0)),null!==p[1].value&&t.push(x(1)),t.push(h(Transition$1,{name:"q-transition--fade"},M)),h("div",{key:"main",class:g.value,style:_.value,role:"img","aria-label":e.alt},t)}}});var{passive:passive2}=listenOpts;createComponent({name:"QInfiniteScroll",props:{offset:{type:Number,default:500},debounce:{type:[String,Number],default:100},scrollTarget:scrollTargetProp,initialIndex:{type:Number,default:0},disable:Boolean,reverse:Boolean},emits:["load"],setup(e,{slots:t,emit:n}){const o=ref(!1),a=ref(!0),r=ref(null),i=ref(null);let l,s,u=e.initialIndex;const c=computed((()=>"q-infinite-scroll__loading"+(!0===o.value?"":" invisible")));function d(){if(!0===e.disable||!0===o.value||!1===a.value)return;const t=getScrollHeight(l),n=getVerticalScrollPosition(l),r=height(l);!1===e.reverse?Math.round(n+r+e.offset)>=Math.round(t)&&p():Math.round(n)<=e.offset&&p()}function p(){if(!0===e.disable||!0===o.value||!1===a.value)return;u++,o.value=!0;const t=getScrollHeight(l);n("load",u,(n=>{!0===a.value&&(o.value=!1,nextTick((()=>{if(!0===e.reverse){const e=getScrollHeight(l),n=getVerticalScrollPosition(l);setVerticalScrollPosition(l,n+(e-t))}!0===n?v():r.value&&r.value.closest("body")&&s()})))}))}function f(){!1===a.value&&(a.value=!0,l.addEventListener("scroll",s,passive2)),d()}function v(){!0===a.value&&(a.value=!1,o.value=!1,l.removeEventListener("scroll",s,passive2),void 0!==s&&void 0!==s.cancel&&s.cancel())}function m(){if(l&&!0===a.value&&l.removeEventListener("scroll",s,passive2),l=getScrollTarget(r.value,e.scrollTarget),!0===a.value){if(l.addEventListener("scroll",s,passive2),!0===e.reverse){const e=getScrollHeight(l),t=height(l);setVerticalScrollPosition(l,e-t)}d()}}function g(e){e=parseInt(e,10);const t=s;s=e<=0?d:debounce_default(d,!0===isNaN(e)?100:e),l&&!0===a.value&&(void 0!==t&&l.removeEventListener("scroll",t,passive2),l.addEventListener("scroll",s,passive2))}function _(e){if(!0===b.value){if(null===i.value)return void(!0!==e&&nextTick((()=>{_(!0)})));const t=(!0===o.value?"un":"")+"pauseAnimations";Array.from(i.value.getElementsByTagName("svg")).forEach((e=>{e[t]()}))}}const b=computed((()=>!0!==e.disable&&!0===a.value));watch([o,b],(()=>{_()})),watch((()=>e.disable),(e=>{!0===e?v():f()})),watch((()=>e.reverse),(()=>{!1===o.value&&!0===a.value&&d()})),watch((()=>e.scrollTarget),m),watch((()=>e.debounce),g);let y=!1;onActivated((()=>{!1!==y&&l&&setVerticalScrollPosition(l,y)})),onDeactivated((()=>{y=!!l&&getVerticalScrollPosition(l)})),onBeforeUnmount((()=>{!0===a.value&&l.removeEventListener("scroll",s,passive2)})),onMounted((()=>{g(e.debounce),m(),!1===o.value&&_()}));const w=getCurrentInstance();return Object.assign(w.proxy,{poll:()=>{void 0!==s&&s()},trigger:p,stop:v,reset:function(){u=0},resume:f,setIndex:function(e){u=e},updateScrollTarget:m}),()=>{const n=hUniqueSlot(t.default,[]);return!0===b.value&&n[!1===e.reverse?"push":"unshift"](h("div",{ref:i,class:c.value},hSlot(t.loading))),h("div",{class:"q-infinite-scroll",ref:r},n)}}}),createComponent({name:"QInnerLoading",props:{...useDarkProps,...useTransitionProps,showing:Boolean,color:String,size:{type:[String,Number],default:"42px"},label:String,labelClass:String,labelStyle:[String,Array,Object]},setup(e,{slots:t}){const n=getCurrentInstance(),o=use_dark_default(e,n.proxy.$q),{transitionProps:a,transitionStyle:r}=use_transition_default(e),i=computed((()=>"q-inner-loading q--avoid-card-border absolute-full column flex-center"+(!0===o.value?" q-inner-loading--dark":""))),l=computed((()=>"q-inner-loading__label"+(void 0!==e.labelClass?` ${e.labelClass}`:"")));function s(){return!0===e.showing?h("div",{class:i.value,style:r.value},void 0!==t.default?t.default():function(){const t=[h(QSpinner_default,{size:e.size,color:e.color})];return void 0!==e.label&&t.push(h("div",{class:l.value,style:e.labelStyle},[e.label])),t}()):null}return()=>h(Transition$1,a.value,s)}});var NAMED_MASKS={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},TOKENS={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleLowerCase()}},KEYS=Object.keys(TOKENS);KEYS.forEach((e=>{TOKENS[e].regex=new RegExp(TOKENS[e].pattern)}));var tokenRegexMask=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+KEYS.join("")+"])|(.)","g"),escRegex=/[.*+?^${}()|[\]\\]/g,MARKER=String.fromCharCode(1),useMaskProps={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function use_mask_default(e,t,n,o){let a,r,i,l,s,u;const c=ref(null),d=ref(function(){if(h(),!0===c.value){const t=m(g(e.modelValue));return!1!==e.fillMask?_(t):t}return e.modelValue}());function p(e){if(e<a.length)return a.slice(-e);let t="",n=a;const o=n.indexOf(MARKER);if(-1!==o){for(let o=e-n.length;o>0;o--)t+=MARKER;n=n.slice(0,o)+t+n.slice(o)}return n}function h(){if(c.value=void 0!==e.mask&&0!==e.mask.length&&(!0===e.autogrow||["textarea","text","search","url","tel","password"].includes(e.type)),!1===c.value)return l=void 0,a="",void(r="");const t=void 0===NAMED_MASKS[e.mask]?e.mask:NAMED_MASKS[e.mask],n="string"==typeof e.fillMask&&0!==e.fillMask.length?e.fillMask.slice(0,1):"_",o=n.replace(escRegex,"\\$&"),s=[],u=[],d=[];let p=!0===e.reverseFillMask,h="",f="";t.replace(tokenRegexMask,((e,t,n,o,a)=>{if(void 0!==o){const e=TOKENS[o];d.push(e),f=e.negate,!0===p&&(u.push("(?:"+f+"+)?("+e.pattern+"+)?(?:"+f+"+)?("+e.pattern+"+)?"),p=!1),u.push("(?:"+f+"+)?("+e.pattern+")?")}else if(void 0!==n)h="\\"+("\\"===n?"":n),d.push(n),s.push("([^"+h+"]+)?"+h+"?");else{const e=void 0!==t?t:a;h="\\"===e?"\\\\\\\\":e.replace(escRegex,"\\\\$&"),d.push(e),s.push("([^"+h+"]+)?"+h+"?")}}));const v=new RegExp("^"+s.join("")+"("+(""===h?".":"[^"+h+"]")+"+)?"+(""===h?"":"["+h+"]*")+"$"),m=u.length-1,g=u.map(((t,n)=>0===n&&!0===e.reverseFillMask?new RegExp("^"+o+"*"+t):n===m?new RegExp("^"+t+"("+(""===f?".":f)+"+)?"+(!0===e.reverseFillMask?"$":o+"*")):new RegExp("^"+t)));i=d,l=t=>{const n=v.exec(!0===e.reverseFillMask?t:t.slice(0,d.length+1));null!==n&&(t=n.slice(1).join(""));const o=[],a=g.length;for(let e=0,n=t;e<a;e++){const t=g[e].exec(n);if(null===t)break;n=n.slice(t.shift().length),o.push(...t)}return 0!==o.length?o.join(""):t},a=d.map((e=>"string"==typeof e?e:MARKER)).join(""),r=a.split(MARKER).join(n)}function f(t,i,l){const u=o.value,c=u.selectionEnd,p=u.value.length-c,f=g(t);!0===i&&h();const b=m(f),y=!1!==e.fillMask?_(b):b,w=d.value!==y;u.value!==y&&(u.value=y),!0===w&&(d.value=y),document.activeElement===u&&nextTick((()=>{if(y!==r)if("insertFromPaste"!==l||!0===e.reverseFillMask)if(-1===["deleteContentBackward","deleteContentForward"].indexOf(l))if(!0===e.reverseFillMask)if(!0===w){const e=Math.max(0,y.length-(y===r?0:Math.min(b.length,p+1)));1===e&&1===c?u.setSelectionRange(e,e,"forward"):v.rightReverse(u,e)}else{const e=y.length-p;u.setSelectionRange(e,e,"backward")}else if(!0===w){const e=Math.max(0,a.indexOf(MARKER),Math.min(b.length,c)-1);v.right(u,e)}else{const e=c-1;v.right(u,e)}else{const t=!0===e.reverseFillMask?0===c?y.length>b.length?1:0:Math.max(0,y.length-(y===r?0:Math.min(b.length,p)+1))+1:c;u.setSelectionRange(t,t,"forward")}else{const e=u.selectionEnd;let t=c-1;for(let n=s;n<=t&&n<e;n++)a[n]!==MARKER&&t++;v.right(u,t)}else{const t=!0===e.reverseFillMask?r.length:0;u.setSelectionRange(t,t,"forward")}}));const C=!0===e.unmaskedValue?g(y):y;String(e.modelValue)===C||null===e.modelValue&&""===C||n(C,!0)}watch((()=>e.type+e.autogrow),h),watch((()=>e.mask),(n=>{if(void 0!==n)f(d.value,!0);else{const n=g(d.value);h(),e.modelValue!==n&&t("update:modelValue",n)}})),watch((()=>e.fillMask+e.reverseFillMask),(()=>{!0===c.value&&f(d.value,!0)})),watch((()=>e.unmaskedValue),(()=>{!0===c.value&&f(d.value)}));const v={left(e,t){const n=-1===a.slice(t-1).indexOf(MARKER);let o=Math.max(0,t-1);for(;o>=0;o--)if(a[o]===MARKER){t=o,!0===n&&t++;break}if(o<0&&void 0!==a[t]&&a[t]!==MARKER)return v.right(e,0);t>=0&&e.setSelectionRange(t,t,"backward")},right(e,t){const n=e.value.length;let o=Math.min(n,t+1);for(;o<=n;o++){if(a[o]===MARKER){t=o;break}a[o-1]===MARKER&&(t=o)}if(o>n&&void 0!==a[t-1]&&a[t-1]!==MARKER)return v.left(e,n);e.setSelectionRange(t,t,"forward")},leftReverse(e,t){const n=p(e.value.length);let o=Math.max(0,t-1);for(;o>=0;o--){if(n[o-1]===MARKER){t=o;break}if(n[o]===MARKER&&(t=o,0===o))break}if(o<0&&void 0!==n[t]&&n[t]!==MARKER)return v.rightReverse(e,0);t>=0&&e.setSelectionRange(t,t,"backward")},rightReverse(e,t){const n=e.value.length,o=p(n),a=-1===o.slice(0,t+1).indexOf(MARKER);let r=Math.min(n,t+1);for(;r<=n;r++)if(o[r-1]===MARKER){(t=r)>0&&!0===a&&t--;break}if(r>n&&void 0!==o[t-1]&&o[t-1]!==MARKER)return v.leftReverse(e,n);e.setSelectionRange(t,t,"forward")}};function m(t){if(null==t||""===t)return"";if(!0===e.reverseFillMask)return function(e){const t=i,n=a.indexOf(MARKER);let o=e.length-1,r="";for(let a=t.length-1;a>=0&&-1!==o;a--){const i=t[a];let l=e[o];if("string"==typeof i)r=i+r,l===i&&o--;else{if(void 0===l||!i.regex.test(l))return r;do{r=(void 0!==i.transform?i.transform(l):l)+r,o--,l=e[o]}while(n===a&&void 0!==l&&i.regex.test(l))}}return r}(t);const n=i;let o=0,r="";for(let e=0;e<n.length;e++){const a=t[o],i=n[e];if("string"==typeof i)r+=i,a===i&&o++;else{if(void 0===a||!i.regex.test(a))return r;r+=void 0!==i.transform?i.transform(a):a,o++}}return r}function g(e){return"string"!=typeof e||void 0===l?"number"==typeof e?l(""+e):e:l(e)}function _(t){return r.length-t.length<=0?t:!0===e.reverseFillMask&&0!==t.length?r.slice(0,-t.length)+t:t+r.slice(t.length)}return{innerValue:d,hasMask:c,moveCursorForPaste:function(e,t,n){const o=m(g(e.value));t=Math.max(0,a.indexOf(MARKER),Math.min(o.length,t)),s=t,e.setSelectionRange(t,n,"forward")},updateMaskValue:f,onMaskedKeydown:function(n){if(t("keydown",n),!0===shouldIgnoreKey(n)||!0===n.altKey)return;const a=o.value,r=a.selectionStart,i=a.selectionEnd;if(n.shiftKey||(u=void 0),37===n.keyCode||39===n.keyCode){n.shiftKey&&void 0===u&&(u="forward"===a.selectionDirection?r:i);const t=v[(39===n.keyCode?"right":"left")+(!0===e.reverseFillMask?"Reverse":"")];if(n.preventDefault(),t(a,u===r?i:r),n.shiftKey){const e=a.selectionStart;a.setSelectionRange(Math.min(u,e),Math.max(u,e),"forward")}}else 8===n.keyCode&&!0!==e.reverseFillMask&&r===i?(v.left(a,r),a.setSelectionRange(a.selectionStart,i,"backward")):46===n.keyCode&&!0===e.reverseFillMask&&r===i&&(v.rightReverse(a,i),a.setSelectionRange(r,a.selectionEnd,"forward"))},onMaskedClick:function(e){t("click",e),u=void 0}}}var isJapanese=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,isChinese=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,isKorean=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,isPlainText=/[a-z0-9_ -]$/i;function use_key_composition_default(e){return function(t){if("compositionend"===t.type||"change"===t.type){if(!0!==t.target.qComposing)return;t.target.qComposing=!1,e(t)}else if("compositionupdate"===t.type&&!0!==t.target.qComposing&&"string"==typeof t.data){!0===(!0===client.is.firefox?!1===isPlainText.test(t.data):!0===isJapanese.test(t.data)||!0===isChinese.test(t.data)||!0===isKorean.test(t.data))&&(t.target.qComposing=!0)}}}var QInput_default=createComponent({name:"QInput",inheritAttrs:!1,props:{...useFieldProps,...useMaskProps,...useFormProps,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...useFieldEmits,"paste","change","keydown","click","animationend"],setup(e,{emit:t,attrs:n}){const{proxy:o}=getCurrentInstance(),{$q:a}=o,r={};let i,l,s,u=NaN,c=null;const d=ref(null),p=useFormInputNameAttr(e),{innerValue:f,hasMask:v,moveCursorForPaste:m,updateMaskValue:g,onMaskedKeydown:_,onMaskedClick:b}=use_mask_default(e,t,L,d),y=use_file_dom_props_default(e,!0),w=computed((()=>fieldValueIsFilled(f.value))),C=use_key_composition_default(E),S=useFieldState({changeEvent:!0}),k=computed((()=>"textarea"===e.type||!0===e.autogrow)),x=computed((()=>!0===k.value||["text","search","url","tel","password"].includes(e.type))),M=computed((()=>{const t={...S.splitAttrs.listeners.value,onInput:E,onPaste:$,onChange:B,onBlur:q,onFocus:stop$1};return t.onCompositionstart=t.onCompositionupdate=t.onCompositionend=C,!0===v.value&&(t.onKeydown=_,t.onClick=b),!0===e.autogrow&&(t.onAnimationend=N),t})),T=computed((()=>{const t={tabindex:0,"data-autofocus":!0===e.autofocus||void 0,rows:"textarea"===e.type?6:void 0,"aria-label":e.label,name:p.value,...S.splitAttrs.attributes.value,id:S.targetUid.value,maxlength:e.maxlength,disabled:!0===e.disable,readonly:!0===e.readonly};return!1===k.value&&(t.type=e.type),!0===e.autogrow&&(t.rows=1),t}));function $(n){if(!0===v.value&&!0!==e.reverseFillMask){const e=n.target;m(e,e.selectionStart,e.selectionEnd)}t("paste",n)}function E(n){if(!n||!n.target)return;if("file"===e.type)return void t("update:modelValue",n.target.files);const o=n.target.value;if(!0!==n.target.qComposing){if(!0===v.value)g(o,!1,n.inputType);else if(L(o),!0===x.value&&n.target===document.activeElement){const{selectionStart:e,selectionEnd:t}=n.target;void 0!==e&&void 0!==t&&nextTick((()=>{n.target===document.activeElement&&0===o.indexOf(n.target.value)&&n.target.setSelectionRange(e,t)}))}!0===e.autogrow&&D()}else r.value=o}function N(e){t("animationend",e),D()}function L(n,o){s=()=>{c=null,"number"!==e.type&&!0===r.hasOwnProperty("value")&&delete r.value,e.modelValue!==n&&u!==n&&(u=n,!0===o&&(l=!0),t("update:modelValue",n),nextTick((()=>{u===n&&(u=NaN)}))),s=void 0},"number"===e.type&&(i=!0,r.value=n),void 0!==e.debounce?(null!==c&&clearTimeout(c),r.value=n,c=setTimeout(s,e.debounce)):s()}function D(){requestAnimationFrame((()=>{const e=d.value;if(null!==e){const t=e.parentNode.style,{scrollTop:n}=e,{overflowY:o,maxHeight:r}=!0===a.platform.is.firefox?{}:window.getComputedStyle(e),i=void 0!==o&&"scroll"!==o;!0===i&&(e.style.overflowY="hidden"),t.marginBottom=e.scrollHeight-1+"px",e.style.height="1px",e.style.height=e.scrollHeight+"px",!0===i&&(e.style.overflowY=parseInt(r,10)<e.scrollHeight?"auto":"hidden"),t.marginBottom="",e.scrollTop=n}}))}function B(e){C(e),null!==c&&(clearTimeout(c),c=null),void 0!==s&&s(),t("change",e.target.value)}function q(t){void 0!==t&&stop$1(t),null!==c&&(clearTimeout(c),c=null),void 0!==s&&s(),i=!1,l=!1,delete r.value,"file"!==e.type&&setTimeout((()=>{null!==d.value&&(d.value.value=void 0!==f.value?f.value:"")}))}function P(){return!0===r.hasOwnProperty("value")?r.value:void 0!==f.value?f.value:""}watch((()=>e.type),(()=>{d.value&&(d.value.value=e.modelValue)})),watch((()=>e.modelValue),(t=>{if(!0===v.value){if(!0===l&&(l=!1,String(t)===u))return;g(t)}else f.value!==t&&(f.value=t,"number"===e.type&&!0===r.hasOwnProperty("value")&&(!0===i?i=!1:delete r.value));!0===e.autogrow&&nextTick(D)})),watch((()=>e.autogrow),(e=>{!0===e?nextTick(D):null!==d.value&&n.rows>0&&(d.value.style.height="auto")})),watch((()=>e.dense),(()=>{!0===e.autogrow&&nextTick(D)})),onBeforeUnmount((()=>{q()})),onMounted((()=>{!0===e.autogrow&&D()})),Object.assign(S,{innerValue:f,fieldClass:computed((()=>"q-"+(!0===k.value?"textarea":"input")+(!0===e.autogrow?" q-textarea--autogrow":""))),hasShadow:computed((()=>"file"!==e.type&&"string"==typeof e.shadowText&&0!==e.shadowText.length)),inputRef:d,emitValue:L,hasValue:w,floatingLabel:computed((()=>!0===w.value&&("number"!==e.type||!1===isNaN(f.value))||fieldValueIsFilled(e.displayValue))),getControl:()=>h(!0===k.value?"textarea":"input",{ref:d,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...T.value,...M.value,..."file"!==e.type?{value:P()}:y.value}),getShadowControl:()=>h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(!0===k.value?"":" text-no-wrap")},[h("span",{class:"invisible"},P()),h("span",e.shadowText)])});const A=use_field_default(S);return Object.assign(o,{focus:function(){addFocusFn((()=>{const e=document.activeElement;null===d.value||d.value===e||null!==e&&e.id===S.targetUid.value||d.value.focus({preventScroll:!0})}))},select:function(){null!==d.value&&d.value.select()},getNativeElement:()=>d.value}),injectProp(o,"nativeEl",(()=>d.value)),A}}),defaultCfg={threshold:0,root:null,rootMargin:"0px"};function update2(e,t,n){let o,a,r;"function"==typeof n?(o=n,a=defaultCfg,r=void 0===t.cfg):(o=n.handler,a=Object.assign({},defaultCfg,n.cfg),r=void 0===t.cfg||!1===isDeepEqual(t.cfg,a)),t.handler!==o&&(t.handler=o),!0===r&&(t.cfg=a,void 0!==t.observer&&t.observer.unobserve(e),t.observer=new IntersectionObserver((([n])=>{if("function"==typeof t.handler){if(null===n.rootBounds&&!0===document.body.contains(e))return t.observer.unobserve(e),void t.observer.observe(e);(!1===t.handler(n,t.observer)||!0===t.once&&!0===n.isIntersecting)&&destroy(e)}}),a),t.observer.observe(e))}function destroy(e){const t=e.__qvisible;void 0!==t&&(void 0!==t.observer&&t.observer.unobserve(e),delete e.__qvisible)}var Intersection_default=createDirective({name:"intersection",mounted(e,{modifiers:t,value:n}){const o={once:!0===t.once};update2(e,o,n),e.__qvisible=o},updated(e,t){const n=e.__qvisible;void 0!==n&&update2(e,n,t.value)},beforeUnmount:destroy});createComponent({name:"QIntersection",props:{tag:{type:String,default:"div"},once:Boolean,transition:String,transitionDuration:{type:[String,Number],default:300},ssrPrerender:Boolean,margin:String,threshold:[Number,Array],root:{default:null},disable:Boolean,onVisibility:Function},setup(e,{slots:t,emit:n}){const o=ref(!0===isRuntimeSsrPreHydration.value&&e.ssrPrerender),a=computed((()=>void 0!==e.root||void 0!==e.margin||void 0!==e.threshold?{handler:s,cfg:{root:e.root,rootMargin:e.margin,threshold:e.threshold}}:s)),r=computed((()=>!0!==e.disable&&(!0!==isRuntimeSsrPreHydration.value||!0!==e.once||!0!==e.ssrPrerender))),i=computed((()=>[[Intersection_default,a.value,void 0,{once:e.once}]])),l=computed((()=>`--q-transition-duration: ${e.transitionDuration}ms`));function s(t){o.value!==t.isIntersecting&&(o.value=t.isIntersecting,void 0!==e.onVisibility&&n("visibility",o.value))}function u(){return!0===o.value?[h("div",{key:"content",style:l.value},hSlot(t.default))]:void 0!==t.hidden?[h("div",{key:"hidden",style:l.value},t.hidden())]:void 0}return()=>{const t=e.transition?[h(Transition$1,{name:"q-transition--"+e.transition},u)]:u();return hDir(e.tag,{class:"q-intersection"},t,"main",r.value,(()=>i.value))}}});var roleAttrExceptions=["ul","ol"],QList_default=createComponent({name:"QList",props:{...useDarkProps,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(e,{slots:t}){const n=getCurrentInstance(),o=use_dark_default(e,n.proxy.$q),a=computed((()=>roleAttrExceptions.includes(e.tag)?null:"list")),r=computed((()=>"q-list"+(!0===e.bordered?" q-list--bordered":"")+(!0===e.dense?" q-list--dense":"")+(!0===e.separator?" q-list--separator":"")+(!0===o.value?" q-list--dark":"")+(!0===e.padding?" q-list--padding":"")));return()=>h(e.tag,{class:r.value,role:a.value},hSlot(t.default))}}),keyCodes2=[34,37,40,33,39,38],commonPropsName=Object.keys(useCircularCommonProps);createComponent({name:"QKnob",props:{...useFormProps,...useCircularCommonProps,modelValue:{type:Number,required:!0},innerMin:Number,innerMax:Number,step:{type:Number,default:1,validator:e=>e>=0},tabindex:{type:[Number,String],default:0},disable:Boolean,readonly:Boolean},emits:["update:modelValue","change","dragValue"],setup(e,{slots:t,emit:n}){const{proxy:o}=getCurrentInstance(),{$q:a}=o,r=ref(e.modelValue),i=ref(!1),l=computed((()=>!0===isNaN(e.innerMin)||e.innerMin<e.min?e.min:e.innerMin)),s=computed((()=>!0===isNaN(e.innerMax)||e.innerMax>e.max?e.max:e.innerMax));let u;function c(){r.value=null===e.modelValue?l.value:between(e.modelValue,l.value,s.value),$(!0)}watch((()=>`${e.modelValue}|${l.value}|${s.value}`),c),c();const d=computed((()=>!1===e.disable&&!1===e.readonly)),p=computed((()=>"q-knob non-selectable"+(!0===d.value?" q-knob--editable":!0===e.disable?" disabled":""))),f=computed((()=>(String(e.step).trim().split(".")[1]||"").length)),v=computed((()=>0===e.step?1:e.step)),m=computed((()=>!0===e.instantFeedback||!0===i.value)),g=!0===a.platform.is.mobile?computed((()=>!0===d.value?{onClick:k}:{})):computed((()=>!0===d.value?{onMousedown:S,onClick:k,onKeydown:x,onKeyup:T}:{})),_=computed((()=>!0===d.value?{tabindex:e.tabindex}:{["aria-"+(!0===e.disable?"disabled":"readonly")]:"true"})),b=computed((()=>{const t={};return commonPropsName.forEach((n=>{t[n]=e[n]})),t}));function y(e){e.isFinal?(M(e.evt,!0),i.value=!1):e.isFirst?(C(),i.value=!0,M(e.evt)):M(e.evt)}const w=computed((()=>[[TouchPan_default,y,void 0,{prevent:!0,stop:!0,mouse:!0}]]));function C(){const{top:e,left:t,width:n,height:a}=o.$el.getBoundingClientRect();u={top:e+a/2,left:t+n/2}}function S(e){C(),M(e)}function k(e){C(),M(e,!0)}function x(e){if(!1===keyCodes2.includes(e.keyCode))return;stopAndPrevent(e);const t=([34,33].includes(e.keyCode)?10:1)*v.value,n=[34,37,40].includes(e.keyCode)?-t:t;r.value=between(parseFloat((r.value+n).toFixed(f.value)),l.value,s.value),$()}function M(t,o){const i=position(t),c=Math.abs(i.top-u.top),d=Math.sqrt(c**2+Math.abs(i.left-u.left)**2);let p=Math.asin(c/d)*(180/Math.PI);p=i.top<u.top?u.left<i.left?90-p:270+p:u.left<i.left?p+90:270-p,!0===a.lang.rtl?p=normalizeToInterval(-p-e.angle,0,360):e.angle&&(p=normalizeToInterval(p-e.angle,0,360)),!0===e.reverse&&(p=360-p);let h=e.min+p/360*(e.max-e.min);if(0!==v.value){const e=h%v.value;h=h-e+(Math.abs(e)>=v.value/2?(e<0?-1:1)*v.value:0),h=parseFloat(h.toFixed(f.value))}h=between(h,l.value,s.value),n("dragValue",h),r.value!==h&&(r.value=h),$(o)}function T(e){keyCodes2.includes(e.keyCode)&&$(!0)}function $(t){e.modelValue!==r.value&&n("update:modelValue",r.value),!0===t&&n("change",r.value)}const E=useFormAttrs(e);function N(){return h("input",E.value)}return()=>{const n={class:p.value,role:"slider","aria-valuemin":l.value,"aria-valuemax":s.value,"aria-valuenow":e.modelValue,..._.value,...b.value,value:r.value,instantFeedback:m.value,...g.value},o={default:t.default};return!0===d.value&&void 0!==e.name&&(o.internal=N),hDir(QCircularProgress_default,n,o,"knob",d.value,(()=>w.value))}}});var{passive:passive3}=listenOpts,axisValues=["both","horizontal","vertical"],QScrollObserver_default=createComponent({name:"QScrollObserver",props:{axis:{type:String,validator:e=>axisValues.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:scrollTargetProp},emits:["scroll"],setup(e,{emit:t}){const n={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let o,a,r=null;function i(){null!==r&&r();const a=Math.max(0,getVerticalScrollPosition(o)),i=getHorizontalScrollPosition(o),l={top:a-n.position.top,left:i-n.position.left};if("vertical"===e.axis&&0===l.top||"horizontal"===e.axis&&0===l.left)return;const s=Math.abs(l.top)>=Math.abs(l.left)?l.top<0?"up":"down":l.left<0?"left":"right";n.position={top:a,left:i},n.directionChanged=n.direction!==s,n.delta=l,!0===n.directionChanged&&(n.direction=s,n.inflectionPoint=n.position),t("scroll",{...n})}function l(){o=getScrollTarget(a,e.scrollTarget),o.addEventListener("scroll",u,passive3),u(!0)}function s(){void 0!==o&&(o.removeEventListener("scroll",u,passive3),o=void 0)}function u(t){if(!0===t||0===e.debounce||"0"===e.debounce)i();else if(null===r){const[t,n]=e.debounce?[setTimeout(i,e.debounce),clearTimeout]:[requestAnimationFrame(i),cancelAnimationFrame];r=()=>{n(t),r=null}}}watch((()=>e.scrollTarget),(()=>{s(),l()}));const{proxy:c}=getCurrentInstance();return watch((()=>c.$q.lang.rtl),i),onMounted((()=>{a=c.$el.parentNode,l()})),onBeforeUnmount((()=>{null!==r&&r(),s()})),Object.assign(c,{trigger:u,getPosition:()=>n}),noop}});createComponent({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=getCurrentInstance(),a=ref(null),r=ref(o.screen.height),i=ref(!0===e.container?0:o.screen.width),l=ref({position:0,direction:"down",inflectionPoint:0}),s=ref(0),u=ref(!0===isRuntimeSsrPreHydration.value?0:getScrollbarWidth()),c=computed((()=>"q-layout q-layout--"+(!0===e.container?"containerized":"standard"))),d=computed((()=>!1===e.container?{minHeight:o.screen.height+"px"}:null)),p=computed((()=>0!==u.value?{[!0===o.lang.rtl?"left":"right"]:`${u.value}px`}:null)),f=computed((()=>0!==u.value?{[!0===o.lang.rtl?"right":"left"]:0,[!0===o.lang.rtl?"left":"right"]:`-${u.value}px`,width:`calc(100% + ${u.value}px)`}:null));function v(t){if(!0===e.container||!0!==document.qScrollPrevented){const o={position:t.position.top,direction:t.direction,directionChanged:t.directionChanged,inflectionPoint:t.inflectionPoint.top,delta:t.delta.top};l.value=o,void 0!==e.onScroll&&n("scroll",o)}}function m(t){const{height:o,width:a}=t;let l=!1;r.value!==o&&(l=!0,r.value=o,void 0!==e.onScrollHeight&&n("scrollHeight",o),_()),i.value!==a&&(l=!0,i.value=a),!0===l&&void 0!==e.onResize&&n("resize",t)}function g({height:e}){s.value!==e&&(s.value=e,_())}function _(){if(!0===e.container){const e=r.value>s.value?getScrollbarWidth():0;u.value!==e&&(u.value=e)}}let b=null;const y={instances:{},view:computed((()=>e.view)),isContainer:computed((()=>e.container)),rootRef:a,height:r,containerHeight:s,scrollbarWidth:u,totalWidth:computed((()=>i.value+u.value)),rows:computed((()=>{const t=e.view.toLowerCase().split(" ");return{top:t[0].split(""),middle:t[1].split(""),bottom:t[2].split("")}})),header:reactive({size:0,offset:0,space:!1}),right:reactive({size:300,offset:0,space:!1}),footer:reactive({size:0,offset:0,space:!1}),left:reactive({size:300,offset:0,space:!1}),scroll:l,animate(){null!==b?clearTimeout(b):document.body.classList.add("q-body--layout-animate"),b=setTimeout((()=>{b=null,document.body.classList.remove("q-body--layout-animate")}),155)},update(e,t,n){y[e][t]=n}};if(provide(layoutKey,y),getScrollbarWidth()>0){let t=function(){r=null,i.classList.remove("hide-scrollbar")},n=function(){if(null===r){if(i.scrollHeight>o.screen.height)return;i.classList.add("hide-scrollbar")}else clearTimeout(r);r=setTimeout(t,300)},a=function(e){null!==r&&"remove"===e&&(clearTimeout(r),t()),window[`${e}EventListener`]("resize",n)},r=null;const i=document.body;watch((()=>!0!==e.container?"add":"remove"),a),!0!==e.container&&a("add"),onUnmounted((()=>{a("remove")}))}return()=>{const n=hMergeSlot(t.default,[h(QScrollObserver_default,{onScroll:v}),h(QResizeObserver_default,{onResize:m})]),o=h("div",{class:c.value,style:d.value,ref:!0===e.container?void 0:a,tabindex:-1},n);return!0===e.container?h("div",{class:"q-layout-container overflow-hidden",ref:a},[h(QResizeObserver_default,{onResize:g}),h("div",{class:"absolute-full",style:p.value},[h("div",{class:"scroll",style:f.value},[o])])]):o}}});var separatorValues=["horizontal","vertical","cell","none"],QMarkupTable_default=createComponent({name:"QMarkupTable",props:{...useDarkProps,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:e=>separatorValues.includes(e)}},setup(e,{slots:t}){const n=getCurrentInstance(),o=use_dark_default(e,n.proxy.$q),a=computed((()=>`q-markup-table q-table__container q-table__card q-table--${e.separator}-separator`+(!0===o.value?" q-table--dark q-table__card--dark q-dark":"")+(!0===e.dense?" q-table--dense":"")+(!0===e.flat?" q-table--flat":"")+(!0===e.bordered?" q-table--bordered":"")+(!0===e.square?" q-table--square":"")+(!1===e.wrapCells?" q-table--no-wrap":"")));return()=>h("div",{class:a.value},[h("table",{class:"q-table"},hSlot(t.default))])}});createComponent({name:"QNoSsr",props:{tag:{type:String,default:"div"},placeholder:String},setup(e,{slots:t}){const{isHydrated:n}=use_hydration_default();return()=>{if(!0===n.value){const n=hSlot(t.default);return void 0===n?n:n.length>1?h(e.tag,{},n):n[0]}const o={class:"q-no-ssr-placeholder"},a=hSlot(t.placeholder);return void 0!==a?a.length>1?h(e.tag,o,a):a[0]:void 0!==e.placeholder?h(e.tag,o,e.placeholder):void 0}}});var createSvg=()=>h("svg",{key:"svg",class:"q-radio__bg absolute non-selectable",viewBox:"0 0 24 24"},[h("path",{d:"M12,22a10,10 0 0 1 -10,-10a10,10 0 0 1 10,-10a10,10 0 0 1 10,10a10,10 0 0 1 -10,10m0,-22a12,12 0 0 0 -12,12a12,12 0 0 0 12,12a12,12 0 0 0 12,-12a12,12 0 0 0 -12,-12"}),h("path",{class:"q-radio__check",d:"M12,6a6,6 0 0 0 -6,6a6,6 0 0 0 6,6a6,6 0 0 0 6,-6a6,6 0 0 0 -6,-6"})]),QRadio_default=createComponent({name:"QRadio",props:{...useDarkProps,...useSizeProps,...useFormProps,modelValue:{required:!0},val:{required:!0},label:String,leftLabel:Boolean,checkedIcon:String,uncheckedIcon:String,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},emits:["update:modelValue"],setup(e,{slots:t,emit:n}){const{proxy:o}=getCurrentInstance(),a=use_dark_default(e,o.$q),r=use_size_default(e,option_sizes_default),i=ref(null),{refocusTargetEl:l,refocusTarget:s}=use_refocus_target_default(e,i),u=computed((()=>toRaw(e.modelValue)===toRaw(e.val))),c=computed((()=>"q-radio cursor-pointer no-outline row inline no-wrap items-center"+(!0===e.disable?" disabled":"")+(!0===a.value?" q-radio--dark":"")+(!0===e.dense?" q-radio--dense":"")+(!0===e.leftLabel?" reverse":""))),d=computed((()=>{const t=void 0===e.color||!0!==e.keepColor&&!0!==u.value?"":` text-${e.color}`;return`q-radio__inner relative-position q-radio__inner--${!0===u.value?"truthy":"falsy"}${t}`})),p=computed((()=>(!0===u.value?e.checkedIcon:e.uncheckedIcon)||null)),f=computed((()=>!0===e.disable?-1:e.tabindex||0)),v=useFormInject(computed((()=>{const t={type:"radio"};return void 0!==e.name&&Object.assign(t,{".checked":!0===u.value,"^checked":!0===u.value?"checked":void 0,name:e.name,value:e.val}),t})));function m(t){void 0!==t&&(stopAndPrevent(t),s(t)),!0!==e.disable&&!0!==u.value&&n("update:modelValue",e.val,t)}function g(e){13!==e.keyCode&&32!==e.keyCode||stopAndPrevent(e)}function _(e){13!==e.keyCode&&32!==e.keyCode||m(e)}Object.assign(o,{set:m});const b=createSvg();return()=>{const n=null!==p.value?[h("div",{key:"icon",class:"q-radio__icon-container absolute-full flex flex-center no-wrap"},[h(QIcon_default,{class:"q-radio__icon",name:p.value})])]:[b];!0!==e.disable&&v(n,"unshift"," q-radio__native q-ma-none q-pa-none");const o=[h("div",{class:d.value,style:r.value,"aria-hidden":"true"},n)];null!==l.value&&o.push(l.value);const a=void 0!==e.label?hMergeSlot(t.default,[e.label]):hSlot(t.default);return void 0!==a&&o.push(h("div",{class:"q-radio__label q-anchor--skip"},a)),h("div",{ref:i,class:c.value,tabindex:f.value,role:"radio","aria-label":e.label,"aria-checked":!0===u.value?"true":"false","aria-disabled":!0===e.disable?"true":void 0,onClick:m,onKeydown:g,onKeyup:_},o)}}}),QToggle_default=createComponent({name:"QToggle",props:{...useCheckboxProps,icon:String,iconColor:String},emits:useCheckboxEmits,setup:e=>use_checkbox_default("toggle",(function(t,n){const o=computed((()=>(!0===t.value?e.checkedIcon:!0===n.value?e.indeterminateIcon:e.uncheckedIcon)||e.icon)),a=computed((()=>!0===t.value?e.iconColor:null));return()=>[h("div",{class:"q-toggle__track"}),h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},void 0!==o.value?[h(QIcon_default,{name:o.value,color:a.value})]:void 0)]}))}),components={radio:QRadio_default,checkbox:QCheckbox_default,toggle:QToggle_default},typeValues=Object.keys(components);function getPropValueFn(e,t){if("function"==typeof e)return e;const n=void 0!==e?e:t;return e=>e[n]}var QOptionGroup_default=createComponent({name:"QOptionGroup",props:{...useDarkProps,modelValue:{required:!0},options:{type:Array,validator:e=>e.every(isObject),default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],name:String,type:{type:String,default:"radio",validator:e=>typeValues.includes(e)},color:String,keepColor:Boolean,dense:Boolean,size:String,leftLabel:Boolean,inline:Boolean,disable:Boolean},emits:["update:modelValue"],setup(e,{emit:t,slots:n}){const{proxy:{$q:o}}=getCurrentInstance(),a=Array.isArray(e.modelValue);"radio"===e.type?!0===a&&console.error("q-option-group: model should not be array"):!1===a&&console.error("q-option-group: model should be array in your case");const r=use_dark_default(e,o),i=computed((()=>components[e.type])),l=computed((()=>getPropValueFn(e.optionValue,"value"))),s=computed((()=>getPropValueFn(e.optionLabel,"label"))),u=computed((()=>getPropValueFn(e.optionDisable,"disable"))),c=computed((()=>e.options.map((t=>({val:l.value(t),name:void 0===t.name?e.name:t.name,disable:e.disable||u.value(t),leftLabel:void 0===t.leftLabel?e.leftLabel:t.leftLabel,color:void 0===t.color?e.color:t.color,checkedIcon:t.checkedIcon,uncheckedIcon:t.uncheckedIcon,dark:void 0===t.dark?r.value:t.dark,size:void 0===t.size?e.size:t.size,dense:e.dense,keepColor:void 0===t.keepColor?e.keepColor:t.keepColor}))))),d=computed((()=>"q-option-group q-gutter-x-sm"+(!0===e.inline?" q-option-group--inline":""))),p=computed((()=>{const t={role:"group"};return"radio"===e.type&&(t.role="radiogroup",!0===e.disable&&(t["aria-disabled"]="true")),t}));function f(e){t("update:modelValue",e)}return()=>h("div",{class:d.value,...p.value},e.options.map(((t,o)=>{const a=void 0!==n["label-"+o]?()=>n["label-"+o](t):void 0!==n.label?()=>n.label(t):void 0;return h("div",[h(i.value,{label:void 0===a?s.value(t):null,modelValue:e.modelValue,"onUpdate:modelValue":f,...c.value[o]},a)])})))}});createComponent({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(e,{slots:t}){const{proxy:{$q:n}}=getCurrentInstance(),o=inject(layoutKey,emptyRenderFn);if(o===emptyRenderFn)return console.error("QPage needs to be a deep child of QLayout"),emptyRenderFn;if(inject(pageContainerKey,emptyRenderFn)===emptyRenderFn)return console.error("QPage needs to be child of QPageContainer"),emptyRenderFn;const a=computed((()=>{const t=(!0===o.header.space?o.header.size:0)+(!0===o.footer.space?o.footer.size:0);if("function"==typeof e.styleFn){const a=!0===o.isContainer.value?o.containerHeight.value:n.screen.height;return e.styleFn(t,a)}return{minHeight:!0===o.isContainer.value?o.containerHeight.value-t+"px":0===n.screen.height?0!==t?`calc(100vh - ${t}px)`:"100vh":n.screen.height-t+"px"}})),r=computed((()=>"q-page"+(!0===e.padding?" q-layout-padding":"")));return()=>h("main",{class:r.value,style:a.value},hSlot(t.default))}}),createComponent({name:"QPageContainer",setup(e,{slots:t}){const{proxy:{$q:n}}=getCurrentInstance(),o=inject(layoutKey,emptyRenderFn);if(o===emptyRenderFn)return console.error("QPageContainer needs to be child of QLayout"),emptyRenderFn;provide(pageContainerKey,!0);const a=computed((()=>{const e={};return!0===o.header.space&&(e.paddingTop=`${o.header.size}px`),!0===o.right.space&&(e["padding"+(!0===n.lang.rtl?"Left":"Right")]=`${o.right.size}px`),!0===o.footer.space&&(e.paddingBottom=`${o.footer.size}px`),!0===o.left.space&&(e["padding"+(!0===n.lang.rtl?"Right":"Left")]=`${o.left.size}px`),e}));return()=>h("div",{class:"q-page-container",style:a.value},hSlot(t.default))}});var usePageStickyProps={position:{type:String,default:"bottom-right",validator:e=>["top-right","top-left","bottom-right","bottom-left","top","right","bottom","left"].includes(e)},offset:{type:Array,validator:e=>2===e.length},expand:Boolean};function use_page_sticky_default(){const{props:e,proxy:{$q:t}}=getCurrentInstance(),n=inject(layoutKey,emptyRenderFn);if(n===emptyRenderFn)return console.error("QPageSticky needs to be child of QLayout"),emptyRenderFn;const o=computed((()=>{const t=e.position;return{top:-1!==t.indexOf("top"),right:-1!==t.indexOf("right"),bottom:-1!==t.indexOf("bottom"),left:-1!==t.indexOf("left"),vertical:"top"===t||"bottom"===t,horizontal:"left"===t||"right"===t}})),a=computed((()=>n.header.offset)),r=computed((()=>n.right.offset)),i=computed((()=>n.footer.offset)),l=computed((()=>n.left.offset)),s=computed((()=>{let n=0,s=0;const u=o.value,c=!0===t.lang.rtl?-1:1;!0===u.top&&0!==a.value?s=`${a.value}px`:!0===u.bottom&&0!==i.value&&(s=-i.value+"px"),!0===u.left&&0!==l.value?n=c*l.value+"px":!0===u.right&&0!==r.value&&(n=-c*r.value+"px");const d={transform:`translate(${n}, ${s})`};return e.offset&&(d.margin=`${e.offset[1]}px ${e.offset[0]}px`),!0===u.vertical?(0!==l.value&&(d[!0===t.lang.rtl?"right":"left"]=`${l.value}px`),0!==r.value&&(d[!0===t.lang.rtl?"left":"right"]=`${r.value}px`)):!0===u.horizontal&&(0!==a.value&&(d.top=`${a.value}px`),0!==i.value&&(d.bottom=`${i.value}px`)),d})),u=computed((()=>`q-page-sticky row flex-center fixed-${e.position} q-page-sticky--${!0===e.expand?"expand":"shrink"}`));return{$layout:n,getStickyContent:function(t){const n=hSlot(t.default);return h("div",{class:u.value,style:s.value},!0===e.expand?n:[h("div",n)])}}}function getBool(e,t){return[!0,!1].includes(e)?e:t}function frame_debounce_default(e){let t,n,o=!1;function a(){n=arguments,!0!==o&&(o=!0,t=window.requestAnimationFrame((()=>{e.apply(this,n),n=void 0,o=!1})))}return a.cancel=()=>{window.cancelAnimationFrame(t),o=!1},a}createComponent({name:"QPageScroller",props:{...usePageStickyProps,scrollOffset:{type:Number,default:1e3},reverse:Boolean,duration:{type:Number,default:300},offset:{...usePageStickyProps.offset,default:()=>[18,18]}},emits:["click"],setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=getCurrentInstance(),{$layout:a,getStickyContent:r}=use_page_sticky_default(),i=ref(null);let l;const s=computed((()=>a.height.value-(!0===a.isContainer.value?a.containerHeight.value:o.screen.height)));function u(){return!0===e.reverse?s.value-a.scroll.value.position>e.scrollOffset:a.scroll.value.position>e.scrollOffset}const c=ref(u());function d(){const e=u();c.value!==e&&(c.value=e)}function p(){!0===e.reverse?void 0===l&&(l=watch(s,d)):f()}function f(){void 0!==l&&(l(),l=void 0)}function v(t){setVerticalScrollPosition(getScrollTarget(!0===a.isContainer.value?i.value:a.rootRef.value),!0===e.reverse?a.height.value:0,e.duration),n("click",t)}function m(){return!0===c.value?h("div",{ref:i,class:"q-page-scroller",onClick:v},r(t)):null}return watch(a.scroll,d),watch((()=>e.reverse),p),p(),onBeforeUnmount(f),()=>h(Transition$1,{name:"q-transition--fade"},m)}}),createComponent({name:"QPageSticky",props:usePageStickyProps,setup(e,{slots:t}){const{getStickyContent:n}=use_page_sticky_default();return()=>n(t)}}),createComponent({name:"QPagination",props:{...useDarkProps,modelValue:{type:Number,required:!0},min:{type:[Number,String],default:1},max:{type:[Number,String],required:!0},maxPages:{type:[Number,String],default:0,validator:e=>("string"==typeof e?parseInt(e,10):e)>=0},inputStyle:[Array,String,Object],inputClass:[Array,String,Object],size:String,disable:Boolean,input:Boolean,iconPrev:String,iconNext:String,iconFirst:String,iconLast:String,toFn:Function,boundaryLinks:{type:Boolean,default:null},boundaryNumbers:{type:Boolean,default:null},directionLinks:{type:Boolean,default:null},ellipses:{type:Boolean,default:null},ripple:{type:[Boolean,Object],default:null},round:Boolean,rounded:Boolean,flat:Boolean,outline:Boolean,unelevated:Boolean,push:Boolean,glossy:Boolean,color:{type:String,default:"primary"},textColor:String,activeDesign:{type:String,default:"",values:e=>""===e||btnDesignOptions.includes(e)},activeColor:String,activeTextColor:String,gutter:String,padding:{type:String,default:"3px 2px"}},emits:["update:modelValue"],setup(e,{emit:t}){const{proxy:n}=getCurrentInstance(),{$q:o}=n,a=use_dark_default(e,o),r=computed((()=>parseInt(e.min,10))),i=computed((()=>parseInt(e.max,10))),l=computed((()=>parseInt(e.maxPages,10))),s=computed((()=>v.value+" / "+i.value)),u=computed((()=>getBool(e.boundaryLinks,e.input))),c=computed((()=>getBool(e.boundaryNumbers,!e.input))),d=computed((()=>getBool(e.directionLinks,e.input))),p=computed((()=>getBool(e.ellipses,!e.input))),f=ref(null),v=computed({get:()=>e.modelValue,set:n=>{if(n=parseInt(n,10),e.disable||isNaN(n))return;const o=between(n,r.value,i.value);e.modelValue!==o&&t("update:modelValue",o)}});watch((()=>`${r.value}|${i.value}`),(()=>{v.value=e.modelValue}));const m=computed((()=>"q-pagination row no-wrap items-center"+(!0===e.disable?" disabled":""))),g=computed((()=>e.gutter in btnPadding?`${btnPadding[e.gutter]}px`:e.gutter||null)),_=computed((()=>null!==g.value?`--q-pagination-gutter-parent:-${g.value};--q-pagination-gutter-child:${g.value}`:null)),b=computed((()=>{const t=[e.iconFirst||o.iconSet.pagination.first,e.iconPrev||o.iconSet.pagination.prev,e.iconNext||o.iconSet.pagination.next,e.iconLast||o.iconSet.pagination.last];return!0===o.lang.rtl?t.reverse():t})),y=computed((()=>({"aria-disabled":!0===e.disable?"true":"false",role:"navigation"}))),w=computed((()=>getBtnDesign(e,"flat"))),C=computed((()=>({[w.value]:!0,round:e.round,rounded:e.rounded,padding:e.padding,color:e.color,textColor:e.textColor,size:e.size,ripple:null===e.ripple||e.ripple}))),S=computed((()=>{const t={[w.value]:!1};return""!==e.activeDesign&&(t[e.activeDesign]=!0),t})),k=computed((()=>({...S.value,color:e.activeColor||e.color,textColor:e.activeTextColor||e.textColor}))),x=computed((()=>{let t=Math.max(l.value,1+(p.value?2:0)+(c.value?2:0));const n={pgFrom:r.value,pgTo:i.value,ellipsesStart:!1,ellipsesEnd:!1,boundaryStart:!1,boundaryEnd:!1,marginalStyle:{minWidth:`${Math.max(2,String(i.value).length)}em`}};return l.value&&t<i.value-r.value+1&&(t=1+2*Math.floor(t/2),n.pgFrom=Math.max(r.value,Math.min(i.value-t+1,e.modelValue-Math.floor(t/2))),n.pgTo=Math.min(i.value,n.pgFrom+t-1),c.value&&(n.boundaryStart=!0,n.pgFrom++),p.value&&n.pgFrom>r.value+(c.value?1:0)&&(n.ellipsesStart=!0,n.pgFrom++),c.value&&(n.boundaryEnd=!0,n.pgTo--),p.value&&n.pgTo<i.value-(c.value?1:0)&&(n.ellipsesEnd=!0,n.pgTo--)),n}));function M(e){v.value=e}const T=computed((()=>{function e(){v.value=f.value,f.value=null}return{"onUpdate:modelValue":e=>{f.value=e},onKeyup:t=>{!0===isKeyCode(t,13)&&e()},onBlur:e}}));function $(t,n,o){const a={"aria-label":n,"aria-current":"false",...C.value,...t};return!0===o&&Object.assign(a,{"aria-current":"true",...k.value}),void 0!==n&&(void 0!==e.toFn?a.to=e.toFn(n):a.onClick=()=>{M(n)}),h(QBtn_default,a)}return Object.assign(n,{set:M,setByOffset:function(e){v.value=v.value+e}}),()=>{const t=[],n=[];let o;if(!0===u.value&&(t.push($({key:"bls",disable:e.disable||e.modelValue<=r.value,icon:b.value[0]},r.value)),n.unshift($({key:"ble",disable:e.disable||e.modelValue>=i.value,icon:b.value[3]},i.value))),!0===d.value&&(t.push($({key:"bdp",disable:e.disable||e.modelValue<=r.value,icon:b.value[1]},e.modelValue-1)),n.unshift($({key:"bdn",disable:e.disable||e.modelValue>=i.value,icon:b.value[2]},e.modelValue+1))),!0!==e.input){o=[];const{pgFrom:a,pgTo:l,marginalStyle:s}=x.value;if(!0===x.value.boundaryStart){const n=r.value===e.modelValue;t.push($({key:"bns",style:s,disable:e.disable,label:r.value},r.value,n))}if(!0===x.value.boundaryEnd){const t=i.value===e.modelValue;n.unshift($({key:"bne",style:s,disable:e.disable,label:i.value},i.value,t))}!0===x.value.ellipsesStart&&t.push($({key:"bes",style:s,disable:e.disable,label:"…",ripple:!1},a-1)),!0===x.value.ellipsesEnd&&n.unshift($({key:"bee",style:s,disable:e.disable,label:"…",ripple:!1},l+1));for(let t=a;t<=l;t++)o.push($({key:`bpg${t}`,style:s,disable:e.disable,label:t},t,t===e.modelValue))}return h("div",{class:m.value,...y.value},[h("div",{class:"q-pagination__content row no-wrap items-center",style:_.value},[...t,!0===e.input?h(QInput_default,{class:"inline",style:{width:s.value.length/1.5+"em"},type:"number",dense:!0,value:f.value,disable:e.disable,dark:a.value,borderless:!0,inputClass:e.inputClass,inputStyle:e.inputStyle,placeholder:s.value,min:r.value,max:i.value,...T.value}):h("div",{class:"q-pagination__middle row justify-center"},o),...n])])}}});var{passive:passive4}=listenOpts;function cloneDeep(e,t=new WeakMap){if(Object(e)!==e)return e;if(t.has(e))return t.get(e);const n=e instanceof Date?new Date(e):e instanceof RegExp?new RegExp(e.source,e.flags):e instanceof Set?new Set:e instanceof Map?new Map:"function"!=typeof e.constructor?Object.create(null):void 0!==e.prototype&&"function"==typeof e.prototype.constructor?e:new e.constructor;if("function"==typeof e.constructor&&"function"==typeof e.valueOf){const n=e.valueOf();if(Object(n)!==n){const o=new e.constructor(n);return t.set(e,o),o}}return t.set(e,n),e instanceof Set?e.forEach((e=>{n.add(cloneDeep(e,t))})):e instanceof Map&&e.forEach(((e,o)=>{n.set(o,cloneDeep(e,t))})),Object.assign(n,...Object.keys(e).map((n=>({[n]:cloneDeep(e[n],t)}))))}createComponent({name:"QParallax",props:{src:String,height:{type:Number,default:500},speed:{type:Number,default:1,validator:e=>e>=0&&e<=1},scrollTarget:scrollTargetProp,onScroll:Function},setup(e,{slots:t,emit:n}){const o=ref(0),a=ref(null),r=ref(null),i=ref(null);let l,s,u,c,d,p;watch((()=>e.height),(()=>{!0===l&&v()})),watch((()=>e.scrollTarget),(()=>{!0===l&&(b(),_())}));let f=t=>{o.value=t,void 0!==e.onScroll&&n("scroll",t)};function v(){let t,n,o;p===window?(t=0,o=n=window.innerHeight):(t=offset(p).top,n=height(p),o=t+n);const r=offset(a.value).top,i=r+e.height;if(void 0!==d||i>t&&r<o){const t=(o-r)/(e.height+n);m((u-e.height)*t*e.speed),f(t)}}let m=e=>{s.style.transform=`translate3d(-50%,${Math.round(e)}px,0)`};function g(){u=s.naturalHeight||s.videoHeight||height(s),!0===l&&v()}function _(){l=!0,p=getScrollTarget(a.value,e.scrollTarget),p.addEventListener("scroll",v,passive4),window.addEventListener("resize",c,passive4),v()}function b(){!0===l&&(l=!1,p.removeEventListener("scroll",v,passive4),window.removeEventListener("resize",c,passive4),p=void 0,m.cancel(),f.cancel(),c.cancel())}return onMounted((()=>{m=frame_debounce_default(m),f=frame_debounce_default(f),c=frame_debounce_default(g),s=void 0!==t.media?r.value.children[0]:i.value,s.onload=s.onloadstart=s.loadedmetadata=g,g(),s.style.display="initial",void 0!==window.IntersectionObserver?(d=new IntersectionObserver((e=>{(!0===e[0].isIntersecting?_:b)()})),d.observe(a.value)):_()})),onBeforeUnmount((()=>{b(),void 0!==d&&d.disconnect(),s.onload=s.onloadstart=s.loadedmetadata=null})),()=>h("div",{ref:a,class:"q-parallax",style:{height:`${e.height}px`}},[h("div",{ref:r,class:"q-parallax__media absolute-full"},void 0!==t.media?t.media():[h("img",{ref:i,src:e.src})]),h("div",{class:"q-parallax__content absolute-full column flex-center"},void 0!==t.content?t.content({percentScrolled:o.value}):hSlot(t.default))])}}),createComponent({name:"QPopupEdit",props:{modelValue:{required:!0},title:String,buttons:Boolean,labelSet:String,labelCancel:String,color:{type:String,default:"primary"},validate:{type:Function,default:()=>!0},autoSave:Boolean,cover:{type:Boolean,default:!0},disable:Boolean},emits:["update:modelValue","save","cancel","beforeShow","show","beforeHide","hide"],setup(e,{slots:t,emit:n}){const{proxy:o}=getCurrentInstance(),{$q:a}=o,r=ref(null),i=ref(""),l=ref("");let s=!1;const u=computed((()=>injectProp({initialValue:i.value,validate:e.validate,set:c,cancel:d,updatePosition:p},"value",(()=>l.value),(e=>{l.value=e}))));function c(){!1!==e.validate(l.value)&&(!0===f()&&(n("save",l.value,i.value),n("update:modelValue",l.value)),v())}function d(){!0===f()&&n("cancel",l.value,i.value),v()}function p(){nextTick((()=>{r.value.updatePosition()}))}function f(){return!1===isDeepEqual(l.value,i.value)}function v(){s=!0,r.value.hide()}function m(){s=!1,i.value=cloneDeep(e.modelValue),l.value=cloneDeep(e.modelValue),n("beforeShow")}function g(){n("show")}function _(){!1===s&&!0===f()&&(!0===e.autoSave&&!0===e.validate(l.value)?(n("save",l.value,i.value),n("update:modelValue",l.value)):n("cancel",l.value,i.value)),n("beforeHide")}function b(){n("hide")}function y(){const n=void 0!==t.default?[].concat(t.default(u.value)):[];return e.title&&n.unshift(h("div",{class:"q-dialog__title q-mt-sm q-mb-sm"},e.title)),!0===e.buttons&&n.push(h("div",{class:"q-popup-edit__buttons row justify-center no-wrap"},[h(QBtn_default,{flat:!0,color:e.color,label:e.labelCancel||a.lang.label.cancel,onClick:d}),h(QBtn_default,{flat:!0,color:e.color,label:e.labelSet||a.lang.label.set,onClick:c})])),n}return Object.assign(o,{set:c,cancel:d,show(e){null!==r.value&&r.value.show(e)},hide(e){null!==r.value&&r.value.hide(e)},updatePosition:p}),()=>{if(!0!==e.disable)return h(QMenu_default,{ref:r,class:"q-popup-edit",cover:e.cover,onBeforeShow:m,onShow:g,onBeforeHide:_,onHide:b,onEscapeKey:d},y)}}}),createComponent({name:"QPopupProxy",props:{...useAnchorProps,breakpoint:{type:[String,Number],default:450}},emits:["show","hide"],setup(e,{slots:t,emit:n,attrs:o}){const{proxy:a}=getCurrentInstance(),{$q:r}=a,i=ref(!1),l=ref(null),s=computed((()=>parseInt(e.breakpoint,10))),{canShow:u}=use_anchor_default({showing:i});function c(){return r.screen.width<s.value||r.screen.height<s.value?"dialog":"menu"}const d=ref(c()),p=computed((()=>"menu"===d.value?{maxHeight:"99vh"}:{}));function f(e){i.value=!0,n("show",e)}function v(e){i.value=!1,d.value=c(),n("hide",e)}return watch((()=>c()),(e=>{!0!==i.value&&(d.value=e)})),Object.assign(a,{show(e){!0===u(e)&&l.value.show(e)},hide(e){l.value.hide(e)},toggle(e){l.value.toggle(e)}}),injectProp(a,"currentComponent",(()=>({type:d.value,ref:l.value}))),()=>{const n={ref:l,...p.value,...o,onShow:f,onHide:v};let a;return"dialog"===d.value?a=QDialog_default:(a=QMenu_default,Object.assign(n,{target:e.target,contextMenu:e.contextMenu,noParentEvent:!0,separateClosePopup:!0})),h(a,n,t.default)}}});var defaultSizes3={xs:2,sm:4,md:6,lg:10,xl:14};function width2(e,t,n){return{transform:!0===t?`translateX(${!0===n.lang.rtl?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}var QLinearProgress_default=createComponent({name:"QLinearProgress",props:{...useDarkProps,...useSizeProps,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(e,{slots:t}){const{proxy:n}=getCurrentInstance(),o=use_dark_default(e,n.$q),a=use_size_default(e,defaultSizes3),r=computed((()=>!0===e.indeterminate||!0===e.query)),i=computed((()=>e.reverse!==e.query)),l=computed((()=>({...null!==a.value?a.value:{},"--q-linear-progress-speed":`${e.animationSpeed}ms`}))),s=computed((()=>"q-linear-progress"+(void 0!==e.color?` text-${e.color}`:"")+(!0===e.reverse||!0===e.query?" q-linear-progress--reverse":"")+(!0===e.rounded?" rounded-borders":""))),u=computed((()=>width2(void 0!==e.buffer?e.buffer:1,i.value,n.$q))),c=computed((()=>`with${!0===e.instantFeedback?"out":""}-transition`)),d=computed((()=>`q-linear-progress__track absolute-full q-linear-progress__track--${c.value} q-linear-progress__track--${!0===o.value?"dark":"light"}`+(void 0!==e.trackColor?` bg-${e.trackColor}`:""))),p=computed((()=>width2(!0===r.value?1:e.value,i.value,n.$q))),f=computed((()=>`q-linear-progress__model absolute-full q-linear-progress__model--${c.value} q-linear-progress__model--${!0===r.value?"in":""}determinate`)),v=computed((()=>({width:100*e.value+"%"}))),m=computed((()=>`q-linear-progress__stripe absolute-${!0===e.reverse?"right":"left"} q-linear-progress__stripe--${c.value}`));return()=>{const n=[h("div",{class:d.value,style:u.value}),h("div",{class:f.value,style:p.value})];return!0===e.stripe&&!1===r.value&&n.push(h("div",{class:m.value,style:v.value})),h("div",{class:s.value,style:l.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":!0===e.indeterminate?void 0:e.value},hMergeSlot(t.default,n))}}}),PULLER_HEIGHT=40,OFFSET_TOP=20;createComponent({name:"QPullToRefresh",props:{color:String,bgColor:String,icon:String,noMouse:Boolean,disable:Boolean,scrollTarget:scrollTargetProp},emits:["refresh"],setup(e,{slots:t,emit:n}){const{proxy:o}=getCurrentInstance(),{$q:a}=o,r=ref("pull"),i=ref(0),l=ref(!1),s=ref(-PULLER_HEIGHT),u=ref(!1),c=ref({}),d=computed((()=>({opacity:i.value,transform:`translateY(${s.value}px) rotate(${360*i.value}deg)`}))),p=computed((()=>"q-pull-to-refresh__puller row flex-center"+(!0===u.value?" q-pull-to-refresh__puller--animating":"")+(void 0!==e.bgColor?` bg-${e.bgColor}`:"")));function f(e){if(!0===e.isFinal)return void(!0===l.value&&(l.value=!1,"pulled"===r.value?(r.value="refreshing",y({pos:OFFSET_TOP}),g()):"pull"===r.value&&y({pos:-PULLER_HEIGHT,ratio:0})));if(!0===u.value||"refreshing"===r.value)return!1;if(!0===e.isFirst){if(0!==getVerticalScrollPosition(_)||"down"!==e.direction)return!0===l.value&&(l.value=!1,r.value="pull",y({pos:-PULLER_HEIGHT,ratio:0})),!1;l.value=!0;const{top:t,left:n}=o.$el.getBoundingClientRect();c.value={top:t+"px",left:n+"px",width:window.getComputedStyle(o.$el).getPropertyValue("width")}}prevent(e.evt);const t=Math.min(140,Math.max(0,e.distance.y));s.value=t-PULLER_HEIGHT,i.value=between(t/(OFFSET_TOP+PULLER_HEIGHT),0,1);const n=s.value>OFFSET_TOP?"pulled":"pull";r.value!==n&&(r.value=n)}const v=computed((()=>{const t={down:!0};return!0!==e.noMouse&&(t.mouse=!0),[[TouchPan_default,f,void 0,t]]})),m=computed((()=>"q-pull-to-refresh__content"+(!0===l.value?" no-pointer-events":"")));function g(){n("refresh",(()=>{y({pos:-PULLER_HEIGHT,ratio:0},(()=>{r.value="pull"}))}))}let _,b=null;function y({pos:e,ratio:t},n){u.value=!0,s.value=e,void 0!==t&&(i.value=t),null!==b&&clearTimeout(b),b=setTimeout((()=>{b=null,u.value=!1,n&&n()}),300)}function w(){_=getScrollTarget(o.$el,e.scrollTarget)}return watch((()=>e.scrollTarget),w),onMounted(w),onBeforeUnmount((()=>{null!==b&&clearTimeout(b)})),Object.assign(o,{trigger:g,updateScrollTarget:w}),()=>hDir("div",{class:"q-pull-to-refresh"},[h("div",{class:m.value},hSlot(t.default)),h("div",{class:"q-pull-to-refresh__puller-container fixed row flex-center no-pointer-events z-top",style:c.value},[h("div",{class:p.value,style:d.value},["refreshing"!==r.value?h(QIcon_default,{name:e.icon||a.iconSet.pullToRefresh.icon,color:e.color,size:"32px"}):h(QSpinner_default,{size:"24px",color:e.color})])])],"main",!1===e.disable,(()=>v.value))}});var dragType={MIN:0,RANGE:1,MAX:2};createComponent({name:"QRange",props:{...useSliderProps,modelValue:{type:Object,default:()=>({min:null,max:null}),validator:e=>"min"in e&&"max"in e},dragRange:Boolean,dragOnlyRange:Boolean,leftLabelColor:String,leftLabelTextColor:String,rightLabelColor:String,rightLabelTextColor:String,leftLabelValue:[String,Number],rightLabelValue:[String,Number],leftThumbColor:String,rightThumbColor:String},emits:useSliderEmits,setup(e,{emit:t}){const{proxy:{$q:n}}=getCurrentInstance(),{state:o,methods:a}=use_slider_default({updateValue:x,updatePosition:function(t,n=o.dragging.value){let r;const u=a.getDraggingRatio(t,n),c=a.convertRatioToModel(u);switch(n.type){case dragType.MIN:u<=n.ratioMax?(r={minR:u,maxR:n.ratioMax,min:c,max:n.valueMax},o.focus.value="min"):(r={minR:n.ratioMax,maxR:u,min:n.valueMax,max:c},o.focus.value="max");break;case dragType.MAX:u>=n.ratioMin?(r={minR:n.ratioMin,maxR:u,min:n.valueMin,max:c},o.focus.value="max"):(r={minR:u,maxR:n.ratioMin,min:c,max:n.valueMin},o.focus.value="min");break;case dragType.RANGE:const e=u-n.offsetRatio,t=between(n.ratioMin+e,o.innerMinRatio.value,o.innerMaxRatio.value-n.rangeRatio),a=c-n.offsetModel,i=between(n.valueMin+a,o.innerMin.value,o.innerMax.value-n.rangeValue);r={minR:t,maxR:t+n.rangeRatio,min:o.roundValueFn.value(i),max:o.roundValueFn.value(i+n.rangeValue)},o.focus.value="both"}s.value=null===s.value.min||null===s.value.max?{min:r.min||e.min,max:r.max||e.max}:{min:r.min,max:r.max},!0!==e.snap||0===e.step?(i.value=r.minR,l.value=r.maxR):(i.value=a.convertModelToRatio(s.value.min),l.value=a.convertModelToRatio(s.value.max))},getDragging:function(t){const{left:n,top:o,width:i,height:l}=r.value.getBoundingClientRect(),u=!0===e.dragOnlyRange?0:!0===e.vertical?y.value.offsetHeight/(2*l):y.value.offsetWidth/(2*i),p={left:n,top:o,width:i,height:l,valueMin:s.value.min,valueMax:s.value.max,ratioMin:c.value,ratioMax:d.value},h=a.getDraggingRatio(t,p);!0!==e.dragOnlyRange&&h<p.ratioMin+u?p.type=dragType.MIN:!0===e.dragOnlyRange||h<p.ratioMax-u?!0===e.dragRange||!0===e.dragOnlyRange?(p.type=dragType.RANGE,Object.assign(p,{offsetRatio:h,offsetModel:a.convertRatioToModel(h),rangeValue:p.valueMax-p.valueMin,rangeRatio:p.ratioMax-p.ratioMin})):p.type=p.ratioMax-h<h-p.ratioMin?dragType.MAX:dragType.MIN:p.type=dragType.MAX;return p},formAttrs:computed((()=>({type:"hidden",name:e.name,value:`${e.modelValue.min}|${e.modelValue.max}`})))}),r=ref(null),i=ref(0),l=ref(0),s=ref({min:0,max:0});function u(){s.value.min=null===e.modelValue.min?o.innerMin.value:between(e.modelValue.min,o.innerMin.value,o.innerMax.value),s.value.max=null===e.modelValue.max?o.innerMax.value:between(e.modelValue.max,o.innerMin.value,o.innerMax.value)}watch((()=>`${e.modelValue.min}|${e.modelValue.max}|${o.innerMin.value}|${o.innerMax.value}`),u),u();const c=computed((()=>a.convertModelToRatio(s.value.min))),d=computed((()=>a.convertModelToRatio(s.value.max))),p=computed((()=>!0===o.active.value?i.value:c.value)),f=computed((()=>!0===o.active.value?l.value:d.value)),v=computed((()=>{const t={[o.positionProp.value]:100*p.value+"%",[o.sizeProp.value]:100*(f.value-p.value)+"%"};return void 0!==e.selectionImg&&(t.backgroundImage=`url(${e.selectionImg}) !important`),t})),m=computed((()=>{if(!0!==o.editable.value)return{};if(!0===n.platform.is.mobile)return{onClick:a.onMobileClick};const t={onMousedown:a.onActivate};return!0!==e.dragRange&&!0!==e.dragOnlyRange||Object.assign(t,{onFocus:()=>{o.focus.value="both"},onBlur:a.onBlur,onKeydown:M,onKeyup:a.onKeyup}),t}));function g(t){return!0!==n.platform.is.mobile&&!0===o.editable.value&&!0!==e.dragOnlyRange?{onFocus:()=>{o.focus.value=t},onBlur:a.onBlur,onKeydown:M,onKeyup:a.onKeyup}:{}}const _=computed((()=>!0!==e.dragOnlyRange?o.tabindex.value:null)),b=computed((()=>!0===n.platform.is.mobile||!e.dragRange&&!0!==e.dragOnlyRange?null:o.tabindex.value)),y=ref(null),w=computed((()=>g("min"))),C=a.getThumbRenderFn({focusValue:"min",getNodeData:()=>({ref:y,key:"tmin",...w.value,tabindex:_.value}),ratio:p,label:computed((()=>void 0!==e.leftLabelValue?e.leftLabelValue:s.value.min)),thumbColor:computed((()=>e.leftThumbColor||e.thumbColor||e.color)),labelColor:computed((()=>e.leftLabelColor||e.labelColor)),labelTextColor:computed((()=>e.leftLabelTextColor||e.labelTextColor))}),S=computed((()=>g("max"))),k=a.getThumbRenderFn({focusValue:"max",getNodeData:()=>({...S.value,key:"tmax",tabindex:_.value}),ratio:f,label:computed((()=>void 0!==e.rightLabelValue?e.rightLabelValue:s.value.max)),thumbColor:computed((()=>e.rightThumbColor||e.thumbColor||e.color)),labelColor:computed((()=>e.rightLabelColor||e.labelColor)),labelTextColor:computed((()=>e.rightLabelTextColor||e.labelTextColor))});function x(n){s.value.min===e.modelValue.min&&s.value.max===e.modelValue.max||t("update:modelValue",{...s.value}),!0===n&&t("change",{...s.value})}function M(t){if(!1===keyCodes.includes(t.keyCode))return;stopAndPrevent(t);const n=([34,33].includes(t.keyCode)?10:1)*o.keyStep.value,a=([34,37,40].includes(t.keyCode)?-1:1)*(!0===o.isReversed.value?-1:1)*(!0===e.vertical?-1:1)*n;if("both"===o.focus.value){const e=s.value.max-s.value.min,t=between(o.roundValueFn.value(s.value.min+a),o.innerMin.value,o.innerMax.value-e);s.value={min:t,max:o.roundValueFn.value(t+e)}}else{if(!1===o.focus.value)return;{const e=o.focus.value;s.value={...s.value,[e]:between(o.roundValueFn.value(s.value[e]+a),"min"===e?o.innerMin.value:s.value.min,"max"===e?o.innerMax.value:s.value.max)}}}x()}return()=>{const t=a.getContent(v,b,m,(e=>{e.push(C(),k())}));return h("div",{ref:r,class:"q-range "+o.classes.value+(null===e.modelValue.min||null===e.modelValue.max?" q-slider--no-value":""),...o.attributes.value,"aria-valuenow":e.modelValue.min+"|"+e.modelValue.max},t)}}}),createComponent({name:"QRating",props:{...useSizeProps,...useFormProps,modelValue:{type:Number,required:!0},max:{type:[String,Number],default:5},icon:[String,Array],iconHalf:[String,Array],iconSelected:[String,Array],iconAriaLabel:[String,Array],color:[String,Array],colorHalf:[String,Array],colorSelected:[String,Array],noReset:Boolean,noDimming:Boolean,readonly:Boolean,disable:Boolean},emits:["update:modelValue"],setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=getCurrentInstance(),a=use_size_default(e),r=useFormInject(useFormAttrs(e)),i=ref(0);let l={};const s=computed((()=>!0!==e.readonly&&!0!==e.disable)),u=computed((()=>`q-rating row inline items-center q-rating--${!0===s.value?"":"non-"}editable`+(!0===e.noDimming?" q-rating--no-dimming":"")+(!0===e.disable?" disabled":"")+(void 0!==e.color&&!1===Array.isArray(e.color)?` text-${e.color}`:""))),c=computed((()=>{const t=!0===Array.isArray(e.icon)?e.icon.length:0,n=!0===Array.isArray(e.iconSelected)?e.iconSelected.length:0,o=!0===Array.isArray(e.iconHalf)?e.iconHalf.length:0,a=!0===Array.isArray(e.color)?e.color.length:0,r=!0===Array.isArray(e.colorSelected)?e.colorSelected.length:0,i=!0===Array.isArray(e.colorHalf)?e.colorHalf.length:0;return{iconLen:t,icon:t>0?e.icon[t-1]:e.icon,selIconLen:n,selIcon:n>0?e.iconSelected[n-1]:e.iconSelected,halfIconLen:o,halfIcon:o>0?e.iconHalf[n-1]:e.iconHalf,colorLen:a,color:a>0?e.color[a-1]:e.color,selColorLen:r,selColor:r>0?e.colorSelected[r-1]:e.colorSelected,halfColorLen:i,halfColor:i>0?e.colorHalf[i-1]:e.colorHalf}})),d=computed((()=>{if("string"==typeof e.iconAriaLabel){const t=0!==e.iconAriaLabel.length?`${e.iconAriaLabel} `:"";return e=>`${t}${e}`}if(!0===Array.isArray(e.iconAriaLabel)){const t=e.iconAriaLabel.length;if(t>0)return n=>e.iconAriaLabel[Math.min(n,t)-1]}return(e,t)=>`${t} ${e}`})),p=computed((()=>{const t=[],n=c.value,a=Math.ceil(e.modelValue),r=!0===s.value?0:null,l=void 0===e.iconHalf||a===e.modelValue?-1:a;for(let s=1;s<=e.max;s++){const u=0===i.value&&e.modelValue>=s||i.value>0&&i.value>=s,c=l===s&&i.value<s,p=i.value>0&&(!0===c?a:e.modelValue)>=s&&i.value<s,h=!0===c?s<=n.halfColorLen?e.colorHalf[s-1]:n.halfColor:void 0!==n.selColor&&!0===u?s<=n.selColorLen?e.colorSelected[s-1]:n.selColor:s<=n.colorLen?e.color[s-1]:n.color,f=(!0===c?s<=n.halfIconLen?e.iconHalf[s-1]:n.halfIcon:void 0===n.selIcon||!0!==u&&!0!==p?s<=n.iconLen?e.icon[s-1]:n.icon:s<=n.selIconLen?e.iconSelected[s-1]:n.selIcon)||o.iconSet.rating.icon;t.push({name:(!0===c?s<=n.halfIconLen?e.iconHalf[s-1]:n.halfIcon:void 0===n.selIcon||!0!==u&&!0!==p?s<=n.iconLen?e.icon[s-1]:n.icon:s<=n.selIconLen?e.iconSelected[s-1]:n.selIcon)||o.iconSet.rating.icon,attrs:{tabindex:r,role:"radio","aria-checked":e.modelValue===s?"true":"false","aria-label":d.value(s,f)},iconClass:"q-rating__icon"+(!0===u||!0===c?" q-rating__icon--active":"")+(!0===p?" q-rating__icon--exselected":"")+(i.value===s?" q-rating__icon--hovered":"")+(void 0!==h?` text-${h}`:"")})}return t})),f=computed((()=>{const t={role:"radiogroup"};return!0===e.disable&&(t["aria-disabled"]="true"),!0===e.readonly&&(t["aria-readonly"]="true"),t}));function v(t){if(!0===s.value){const o=between(parseInt(t,10),1,parseInt(e.max,10)),a=!0!==e.noReset&&e.modelValue===o?0:o;a!==e.modelValue&&n("update:modelValue",a),i.value=0}}function m(e){!0===s.value&&(i.value=e)}function g(){i.value=0}return onBeforeUpdate((()=>{l={}})),()=>{const n=[];return p.value.forEach((({iconClass:e,name:o,attrs:a},r)=>{const i=r+1;n.push(h("div",{key:i,ref:e=>{l[`rt${i}`]=e},class:"q-rating__icon-container flex flex-center",...a,onClick(){v(i)},onMouseover(){m(i)},onMouseout:g,onFocus(){m(i)},onBlur:g,onKeyup(e){!function(e,t){switch(e.keyCode){case 13:case 32:return v(t),stopAndPrevent(e);case 37:case 40:return l["rt"+(t-1)]&&l["rt"+(t-1)].focus(),stopAndPrevent(e);case 39:case 38:l[`rt${t+1}`]&&l[`rt${t+1}`].focus(),stopAndPrevent(e)}}(e,i)}},hMergeSlot(t[`tip-${i}`],[h(QIcon_default,{class:e,name:o})])))})),void 0!==e.name&&!0!==e.disable&&r(n,"push"),h("div",{class:u.value,style:a.value,...f.value},n)}}}),createComponent({name:"QResponsive",props:useRatioProps,setup(e,{slots:t}){const n=use_ratio_default(e);return()=>h("div",{class:"q-responsive"},[h("div",{class:"q-responsive__filler overflow-hidden"},[h("div",{style:n.value})]),h("div",{class:"q-responsive__content absolute-full fit"},hSlot(t.default))])}});var ScrollAreaControls_default=createComponent({props:["store","barStyle","verticalBarStyle","horizontalBarStyle"],setup:e=>()=>[h("div",{class:e.store.scroll.vertical.barClass.value,style:[e.barStyle,e.verticalBarStyle],"aria-hidden":"true",onMousedown:e.store.onVerticalMousedown}),h("div",{class:e.store.scroll.horizontal.barClass.value,style:[e.barStyle,e.horizontalBarStyle],"aria-hidden":"true",onMousedown:e.store.onHorizontalMousedown}),withDirectives(h("div",{ref:e.store.scroll.vertical.ref,class:e.store.scroll.vertical.thumbClass.value,style:e.store.scroll.vertical.style.value,"aria-hidden":"true"}),e.store.thumbVertDir),withDirectives(h("div",{ref:e.store.scroll.horizontal.ref,class:e.store.scroll.horizontal.thumbClass.value,style:e.store.scroll.horizontal.style.value,"aria-hidden":"true"}),e.store.thumbHorizDir)]}),axisList=["vertical","horizontal"],dirProps={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}},panOpts={prevent:!0,mouse:!0,mouseAllDir:!0},getMinThumbSize=e=>e>=250?50:Math.ceil(e/5);createComponent({name:"QScrollArea",props:{...useDarkProps,thumbStyle:Object,verticalThumbStyle:Object,horizontalThumbStyle:Object,barStyle:[Array,String,Object],verticalBarStyle:[Array,String,Object],horizontalBarStyle:[Array,String,Object],verticalOffset:{type:Array,default:[0,0]},horizontalOffset:{type:Array,default:[0,0]},contentStyle:[Array,String,Object],contentActiveStyle:[Array,String,Object],delay:{type:[String,Number],default:1e3},visible:{type:Boolean,default:null},tabindex:[String,Number],onScroll:Function},setup(e,{slots:t,emit:n}){const o=ref(!1),a=ref(!1),r=ref(!1),i={vertical:ref(0),horizontal:ref(0)},l={vertical:{ref:ref(null),position:ref(0),size:ref(0)},horizontal:{ref:ref(null),position:ref(0),size:ref(0)}},{proxy:s}=getCurrentInstance(),u=use_dark_default(e,s.$q);let c,d=null;const p=ref(null),f=computed((()=>"q-scrollarea"+(!0===u.value?" q-scrollarea--dark":"")));Object.assign(i,{verticalInner:computed((()=>i.vertical.value-e.verticalOffset[0]-e.verticalOffset[1])),horizontalInner:computed((()=>i.horizontal.value-e.horizontalOffset[0]-e.horizontalOffset[1]))}),l.vertical.percentage=computed((()=>{const e=l.vertical.size.value-i.vertical.value;if(e<=0)return 0;const t=between(l.vertical.position.value/e,0,1);return Math.round(1e4*t)/1e4})),l.vertical.thumbHidden=computed((()=>!0!==(null===e.visible?r.value:e.visible)&&!1===o.value&&!1===a.value||l.vertical.size.value<=i.vertical.value+1)),l.vertical.thumbStart=computed((()=>e.verticalOffset[0]+l.vertical.percentage.value*(i.verticalInner.value-l.vertical.thumbSize.value))),l.vertical.thumbSize=computed((()=>Math.round(between(i.verticalInner.value*i.verticalInner.value/l.vertical.size.value,getMinThumbSize(i.verticalInner.value),i.verticalInner.value)))),l.vertical.style=computed((()=>({...e.thumbStyle,...e.verticalThumbStyle,top:`${l.vertical.thumbStart.value}px`,height:`${l.vertical.thumbSize.value}px`,right:`${e.horizontalOffset[1]}px`}))),l.vertical.thumbClass=computed((()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(!0===l.vertical.thumbHidden.value?" q-scrollarea__thumb--invisible":""))),l.vertical.barClass=computed((()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(!0===l.vertical.thumbHidden.value?" q-scrollarea__bar--invisible":""))),l.horizontal.percentage=computed((()=>{const e=l.horizontal.size.value-i.horizontal.value;if(e<=0)return 0;const t=between(Math.abs(l.horizontal.position.value)/e,0,1);return Math.round(1e4*t)/1e4})),l.horizontal.thumbHidden=computed((()=>!0!==(null===e.visible?r.value:e.visible)&&!1===o.value&&!1===a.value||l.horizontal.size.value<=i.horizontal.value+1)),l.horizontal.thumbStart=computed((()=>e.horizontalOffset[0]+l.horizontal.percentage.value*(i.horizontalInner.value-l.horizontal.thumbSize.value))),l.horizontal.thumbSize=computed((()=>Math.round(between(i.horizontalInner.value*i.horizontalInner.value/l.horizontal.size.value,getMinThumbSize(i.horizontalInner.value),i.horizontalInner.value)))),l.horizontal.style=computed((()=>({...e.thumbStyle,...e.horizontalThumbStyle,[!0===s.$q.lang.rtl?"right":"left"]:`${l.horizontal.thumbStart.value}px`,width:`${l.horizontal.thumbSize.value}px`,bottom:`${e.verticalOffset[1]}px`}))),l.horizontal.thumbClass=computed((()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(!0===l.horizontal.thumbHidden.value?" q-scrollarea__thumb--invisible":""))),l.horizontal.barClass=computed((()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(!0===l.horizontal.thumbHidden.value?" q-scrollarea__bar--invisible":"")));const v=computed((()=>!0===l.vertical.thumbHidden.value&&!0===l.horizontal.thumbHidden.value?e.contentStyle:e.contentActiveStyle));function m(){const e={};return axisList.forEach((t=>{const n=l[t];Object.assign(e,{[t+"Position"]:n.position.value,[t+"Percentage"]:n.percentage.value,[t+"Size"]:n.size.value,[t+"ContainerSize"]:i[t].value,[t+"ContainerInnerSize"]:i[t+"Inner"].value})})),e}const g=debounce_default((()=>{const e=m();e.ref=s,n("scroll",e)}),0);function _(e,t,n){if(!1===axisList.includes(e))return void console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");("vertical"===e?setVerticalScrollPosition:setHorizontalScrollPosition)(p.value,t,n)}function b({height:e,width:t}){let n=!1;i.vertical.value!==e&&(i.vertical.value=e,n=!0),i.horizontal.value!==t&&(i.horizontal.value=t,n=!0),!0===n&&k()}function y({position:e}){let t=!1;l.vertical.position.value!==e.top&&(l.vertical.position.value=e.top,t=!0),l.horizontal.position.value!==e.left&&(l.horizontal.position.value=e.left,t=!0),!0===t&&k()}function w({height:e,width:t}){l.horizontal.size.value!==t&&(l.horizontal.size.value=t,k()),l.vertical.size.value!==e&&(l.vertical.size.value=e,k())}function C(e,t){const n=l[t];if(!0===e.isFirst){if(!0===n.thumbHidden.value)return;c=n.position.value,a.value=!0}else if(!0!==a.value)return;!0===e.isFinal&&(a.value=!1);const o=dirProps[t],r=(n.size.value-i[t].value)/(i[t+"Inner"].value-n.thumbSize.value),s=e.distance[o.dist];x(c+(e.direction===o.dir?1:-1)*s*r,t)}function S(t,n){const o=l[n];if(!0!==o.thumbHidden.value){const a="vertical"===n?e.verticalOffset[0]:e.horizontalOffset[0],r=t[dirProps[n].offset]-a,l=o.thumbStart.value-a;if(r<l||r>l+o.thumbSize.value){x(between((r-o.thumbSize.value/2)/(i[n+"Inner"].value-o.thumbSize.value),0,1)*Math.max(0,o.size.value-i[n].value),n)}null!==o.ref.value&&o.ref.value.dispatchEvent(new MouseEvent(t.type,t))}}function k(){o.value=!0,null!==d&&clearTimeout(d),d=setTimeout((()=>{d=null,o.value=!1}),e.delay),void 0!==e.onScroll&&g()}function x(e,t){p.value[dirProps[t].scroll]=e}let M=null;function T(){null!==M&&clearTimeout(M),M=setTimeout((()=>{M=null,r.value=!0}),s.$q.platform.is.ios?50:0)}function $(){null!==M&&(clearTimeout(M),M=null),r.value=!1}let E=null;watch((()=>s.$q.lang.rtl),(e=>{null!==p.value&&setHorizontalScrollPosition(p.value,Math.abs(l.horizontal.position.value)*(!0===e?-1:1))})),onDeactivated((()=>{E={top:l.vertical.position.value,left:l.horizontal.position.value}})),onActivated((()=>{if(null===E)return;const e=p.value;null!==e&&(setHorizontalScrollPosition(e,E.left),setVerticalScrollPosition(e,E.top))})),onBeforeUnmount(g.cancel),Object.assign(s,{getScrollTarget:()=>p.value,getScroll:m,getScrollPosition:()=>({top:l.vertical.position.value,left:l.horizontal.position.value}),getScrollPercentage:()=>({top:l.vertical.percentage.value,left:l.horizontal.percentage.value}),setScrollPosition:_,setScrollPercentage(e,t,n){_(e,t*(l[e].size.value-i[e].value)*("horizontal"===e&&!0===s.$q.lang.rtl?-1:1),n)}});const N={scroll:l,thumbVertDir:[[TouchPan_default,e=>{C(e,"vertical")},void 0,{vertical:!0,...panOpts}]],thumbHorizDir:[[TouchPan_default,e=>{C(e,"horizontal")},void 0,{horizontal:!0,...panOpts}]],onVerticalMousedown(e){S(e,"vertical")},onHorizontalMousedown(e){S(e,"horizontal")}};return()=>h("div",{class:f.value,onMouseenter:T,onMouseleave:$},[h("div",{ref:p,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:void 0!==e.tabindex?e.tabindex:void 0},[h("div",{class:"q-scrollarea__content absolute",style:v.value},hMergeSlot(t.default,[h(QResizeObserver_default,{debounce:0,onResize:w})])),h(QScrollObserver_default,{axis:"both",onScroll:y})]),h(QResizeObserver_default,{debounce:0,onResize:b}),h(ScrollAreaControls_default,{store:N,barStyle:e.barStyle,verticalBarStyle:e.verticalBarStyle,horizontalBarStyle:e.horizontalBarStyle})])}});var aggBucketSize=1e3,scrollToEdges=["start","center","end","start-force","center-force","end-force"],filterProto=Array.prototype.filter,setOverflowAnchor=void 0===window.getComputedStyle(document.body).overflowAnchor?noop:function(e,t){null!==e&&(void 0!==e._qOverflowAnimationFrame&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame((()=>{if(null===e)return;e._qOverflowAnimationFrame=void 0;const n=e.children||[];filterProto.call(n,(e=>e.dataset&&void 0!==e.dataset.qVsAnchor)).forEach((e=>{delete e.dataset.qVsAnchor}));const o=n[t];o&&o.dataset&&(o.dataset.qVsAnchor="")})))};function sumFn(e,t){return e+t}function getScrollDetails(e,t,n,o,a,r,i,l){const s=e===window?document.scrollingElement||document.documentElement:e,u=!0===a?"offsetWidth":"offsetHeight",c={scrollStart:0,scrollViewSize:-i-l,scrollMaxSize:0,offsetStart:-i,offsetEnd:-l};if(!0===a?(e===window?(c.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,c.scrollViewSize+=document.documentElement.clientWidth):(c.scrollStart=s.scrollLeft,c.scrollViewSize+=s.clientWidth),c.scrollMaxSize=s.scrollWidth,!0===r&&(c.scrollStart=(!0===rtlHasScrollBug?c.scrollMaxSize-c.scrollViewSize:0)-c.scrollStart)):(e===window?(c.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,c.scrollViewSize+=document.documentElement.clientHeight):(c.scrollStart=s.scrollTop,c.scrollViewSize+=s.clientHeight),c.scrollMaxSize=s.scrollHeight),null!==n)for(let e=n.previousElementSibling;null!==e;e=e.previousElementSibling)!1===e.classList.contains("q-virtual-scroll--skip")&&(c.offsetStart+=e[u]);if(null!==o)for(let e=o.nextElementSibling;null!==e;e=e.nextElementSibling)!1===e.classList.contains("q-virtual-scroll--skip")&&(c.offsetEnd+=e[u]);if(t!==e){const n=s.getBoundingClientRect(),o=t.getBoundingClientRect();!0===a?(c.offsetStart+=o.left-n.left,c.offsetEnd-=o.width):(c.offsetStart+=o.top-n.top,c.offsetEnd-=o.height),e!==window&&(c.offsetStart+=c.scrollStart),c.offsetEnd+=c.scrollMaxSize-c.offsetStart}return c}function setScroll2(e,t,n,o){"end"===t&&(t=(e===window?document.body:e)[!0===n?"scrollWidth":"scrollHeight"]),e===window?!0===n?(!0===o&&(t=(!0===rtlHasScrollBug?document.body.scrollWidth-document.documentElement.clientWidth:0)-t),window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t):!0===n?(!0===o&&(t=(!0===rtlHasScrollBug?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function sumSize(e,t,n,o){if(n>=o)return 0;const a=t.length,r=Math.floor(n/aggBucketSize),i=Math.floor((o-1)/aggBucketSize)+1;let l=e.slice(r,i).reduce(sumFn,0);return n%aggBucketSize!=0&&(l-=t.slice(r*aggBucketSize,n).reduce(sumFn,0)),o%aggBucketSize!=0&&o!==a&&(l-=t.slice(o,i*aggBucketSize).reduce(sumFn,0)),l}var commonVirtScrollProps={virtualScrollSliceSize:{type:[Number,String],default:10},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]},commonVirtScrollPropsList=Object.keys(commonVirtScrollProps),useVirtualScrollProps={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...commonVirtScrollProps};function useVirtualScroll({virtualScrollLength:e,getVirtualScrollTarget:t,getVirtualScrollEl:n,virtualScrollItemSizeComputed:o}){const a=getCurrentInstance(),{props:r,emit:i,proxy:l}=a,{$q:s}=l;let u,c,d,p,f=[];const v=ref(0),m=ref(0),g=ref({}),_=ref(null),b=ref(null),y=ref(null),w=ref({from:0,to:0}),C=computed((()=>void 0!==r.tableColspan?r.tableColspan:100));void 0===o&&(o=computed((()=>r.virtualScrollItemSize)));const S=computed((()=>o.value+";"+r.virtualScrollHorizontal)),k=computed((()=>S.value+";"+r.virtualScrollSliceRatioBefore+";"+r.virtualScrollSliceRatioAfter));function x(){L(c,!0)}function M(e){L(void 0===e?c:e)}function T(o,a){const i=t();if(null==i||8===i.nodeType)return;const l=getScrollDetails(i,n(),_.value,b.value,r.virtualScrollHorizontal,s.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd);d!==l.scrollViewSize&&D(l.scrollViewSize),$(i,l,Math.min(e.value-1,Math.max(0,parseInt(o,10)||0)),0,-1!==scrollToEdges.indexOf(a)?a:-1!==c&&o>c?"end":"start")}function $(t,n,o,a,i){const l="string"==typeof i&&-1!==i.indexOf("-force"),c=!0===l?i.replace("-force",""):i,d=void 0!==c?c:"start";let h=Math.max(0,o-g.value[d]),_=h+g.value.total;_>e.value&&(_=e.value,h=Math.max(0,_-g.value.total)),u=n.scrollStart;const b=h!==w.value.from||_!==w.value.to;if(!1===b&&void 0===c)return void B(o);const{activeElement:C}=document,S=y.value;!0===b&&null!==S&&S!==C&&!0===S.contains(C)&&(S.addEventListener("focusout",N),setTimeout((()=>{null!==S&&S.removeEventListener("focusout",N)}))),setOverflowAnchor(S,o-h);const k=void 0!==c?p.slice(h,o).reduce(sumFn,0):0;if(!0===b){const t=_>=w.value.from&&h<=w.value.to?w.value.to:_;w.value={from:h,to:t},v.value=sumSize(f,p,0,h),m.value=sumSize(f,p,_,e.value),requestAnimationFrame((()=>{w.value.to!==_&&u===n.scrollStart&&(w.value={from:w.value.from,to:_},m.value=sumSize(f,p,_,e.value))}))}requestAnimationFrame((()=>{if(u!==n.scrollStart)return;!0===b&&E(h);const e=p.slice(h,o).reduce(sumFn,0),i=e+n.offsetStart+v.value,d=i+p[o];let f=i+a;if(void 0!==c){const t=e-k,a=n.scrollStart+t;f=!0!==l&&a<i&&d<a+n.scrollViewSize?a:"end"===c?d-n.scrollViewSize:i-("start"===c?0:Math.round((n.scrollViewSize-p[o])/2))}u=f,setScroll2(t,f,r.virtualScrollHorizontal,s.lang.rtl),B(o)}))}function E(e){const t=y.value;if(t){const n=filterProto.call(t.children,(e=>e.classList&&!1===e.classList.contains("q-virtual-scroll--skip"))),o=n.length,a=!0===r.virtualScrollHorizontal?e=>e.getBoundingClientRect().width:e=>e.offsetHeight;let i,l,s=e;for(let e=0;e<o;){for(i=a(n[e]),e++;e<o&&!0===n[e].classList.contains("q-virtual-scroll--with-prev");)i+=a(n[e]),e++;l=i-p[s],0!==l&&(p[s]+=l,f[Math.floor(s/aggBucketSize)]+=l),s++}}}function N(){null!==y.value&&void 0!==y.value&&y.value.focus()}function L(t,n){const a=1*o.value;!0!==n&&!1!==Array.isArray(p)||(p=[]);const r=p.length;p.length=e.value;for(let t=e.value-1;t>=r;t--)p[t]=a;const i=Math.floor((e.value-1)/aggBucketSize);f=[];for(let t=0;t<=i;t++){let n=0;const o=Math.min((t+1)*aggBucketSize,e.value);for(let e=t*aggBucketSize;e<o;e++)n+=p[e];f.push(n)}c=-1,u=void 0,v.value=sumSize(f,p,0,w.value.from),m.value=sumSize(f,p,w.value.to,e.value),t>=0?(E(w.value.from),nextTick((()=>{T(t)}))):q()}function D(e){if(void 0===e&&"undefined"!=typeof window){const o=t();null!=o&&8!==o.nodeType&&(e=getScrollDetails(o,n(),_.value,b.value,r.virtualScrollHorizontal,s.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd).scrollViewSize)}d=e;const a=parseFloat(r.virtualScrollSliceRatioBefore)||0,i=1+a+(parseFloat(r.virtualScrollSliceRatioAfter)||0),l=void 0===e||e<=0?1:Math.ceil(e/o.value),u=Math.max(1,l,Math.ceil((r.virtualScrollSliceSize>0?r.virtualScrollSliceSize:10)/i));g.value={total:Math.ceil(u*i),start:Math.ceil(u*a),center:Math.ceil(u*(.5+a)),end:Math.ceil(u*(1+a)),view:l}}function B(e){c!==e&&(void 0!==r.onVirtualScroll&&i("virtualScroll",{index:e,from:w.value.from,to:w.value.to-1,direction:e<c?"decrease":"increase",ref:l}),c=e)}watch(k,(()=>{D()})),watch(S,x),D();const q=debounce_default((function(){const o=t();if(null==o||8===o.nodeType)return;const a=getScrollDetails(o,n(),_.value,b.value,r.virtualScrollHorizontal,s.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd),i=e.value-1,l=a.scrollMaxSize-a.offsetStart-a.offsetEnd-m.value;if(u===a.scrollStart)return;if(a.scrollMaxSize<=0)return void $(o,a,0,0);d!==a.scrollViewSize&&D(a.scrollViewSize),E(w.value.from);const c=Math.floor(a.scrollMaxSize-Math.max(a.scrollViewSize,a.offsetEnd)-Math.min(p[i],a.scrollViewSize/2));if(c>0&&Math.ceil(a.scrollStart)>=c)return void $(o,a,i,a.scrollMaxSize-a.offsetEnd-f.reduce(sumFn,0));let h=0,g=a.scrollStart-a.offsetStart,y=g;if(g<=l&&g+a.scrollViewSize>=v.value)g-=v.value,h=w.value.from,y=g;else for(let e=0;g>=f[e]&&h<i;e++)g-=f[e],h+=aggBucketSize;for(;g>0&&h<i;)g-=p[h],g>-a.scrollViewSize?(h++,y=g):y=p[h]+g;$(o,a,h,y)}),!0===s.platform.is.ios?120:35);onBeforeMount((()=>{D()}));let P=!1;return onDeactivated((()=>{P=!0})),onActivated((()=>{if(!0!==P)return;const e=t();void 0!==u&&null!=e&&8!==e.nodeType?setScroll2(e,u,r.virtualScrollHorizontal,s.lang.rtl):T(c)})),onBeforeUnmount((()=>{q.cancel()})),Object.assign(l,{scrollTo:T,reset:x,refresh:M}),{virtualScrollSliceRange:w,virtualScrollSliceSizeComputed:g,setVirtualScrollSize:D,onVirtualScrollEvt:q,localResetVirtualScroll:L,padVirtualScroll:function(e,t){const n=!0===r.virtualScrollHorizontal?"width":"height",a={["--q-virtual-scroll-item-"+n]:o.value+"px"};return["tbody"===e?h(e,{class:"q-virtual-scroll__padding",key:"before",ref:_},[h("tr",[h("td",{style:{[n]:`${v.value}px`,...a},colspan:C.value})])]):h(e,{class:"q-virtual-scroll__padding",key:"before",ref:_,style:{[n]:`${v.value}px`,...a}}),h(e,{class:"q-virtual-scroll__content",key:"content",ref:y,tabindex:-1},t.flat()),"tbody"===e?h(e,{class:"q-virtual-scroll__padding",key:"after",ref:b},[h("tr",[h("td",{style:{[n]:`${m.value}px`,...a},colspan:C.value})])]):h(e,{class:"q-virtual-scroll__padding",key:"after",ref:b,style:{[n]:`${m.value}px`,...a}})]},scrollTo:T,reset:x,refresh:M}}var validateNewValueMode=e=>["add","add-unique","toggle"].includes(e),reEscapeList=".*+?^${}()|[]\\",fieldPropsList=Object.keys(useFieldProps);function getPropValueFn2(e,t){if("function"==typeof e)return e;const n=void 0!==e?e:t;return e=>null!==e&&"object"==typeof e&&n in e?e[n]:e}var QSelect_default=createComponent({name:"QSelect",inheritAttrs:!1,props:{...useVirtualScrollProps,...useFormProps,...useFieldProps,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:validateNewValueMode},mapOptions:Boolean,emitValue:Boolean,disableTabSelection:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{type:String,validator:e=>["default","menu","dialog"].includes(e),default:"default"},virtualScrollItemSize:useVirtualScrollProps.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...useFieldEmits,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:t,emit:n}){const{proxy:o}=getCurrentInstance(),{$q:a}=o,r=ref(!1),i=ref(!1),l=ref(-1),s=ref(""),u=ref(!1),c=ref(!1);let d,p,f,v,m,g,_,b=null,y=null,w=null;const C=ref(null),S=ref(null),k=ref(null),x=ref(null),M=ref(null),T=useFormInputNameAttr(e),$=use_key_composition_default(ke),E=computed((()=>Array.isArray(e.options)?e.options.length:0)),N=computed((()=>void 0===e.virtualScrollItemSize?!0===e.optionsDense?24:48:e.virtualScrollItemSize)),{virtualScrollSliceRange:L,virtualScrollSliceSizeComputed:D,localResetVirtualScroll:B,padVirtualScroll:q,onVirtualScrollEvt:P,scrollTo:A,setVirtualScrollSize:I}=useVirtualScroll({virtualScrollLength:E,getVirtualScrollTarget:function(){return Ce()},getVirtualScrollEl:Ce,virtualScrollItemSizeComputed:N}),R=useFieldState(),O=computed((()=>{const t=!0===e.mapOptions&&!0!==e.multiple,n=void 0===e.modelValue||null===e.modelValue&&!0!==t?[]:!0===e.multiple&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue];if(!0===e.mapOptions&&!0===Array.isArray(e.options)){const o=!0===e.mapOptions&&void 0!==d?d:[],a=n.map((t=>function(t,n){const o=e=>isDeepEqual(ae.value(e),t);return e.options.find(o)||n.find(o)||t}(t,o)));return null===e.modelValue&&!0===t?a.filter((e=>null!==e)):a}return n})),V=computed((()=>{const t={};return fieldPropsList.forEach((n=>{const o=e[n];void 0!==o&&(t[n]=o)})),t})),z=computed((()=>null===e.optionsDark?R.isDark.value:e.optionsDark)),F=computed((()=>fieldValueIsFilled(O.value))),j=computed((()=>{let t="q-field__input q-placeholder col";return!0===e.hideSelected||0===O.value.length?[t,e.inputClass]:(t+=" q-field__input--padding",void 0===e.inputClass?t:[t,e.inputClass])})),H=computed((()=>(!0===e.virtualScrollHorizontal?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:""))),U=computed((()=>0===E.value)),Q=computed((()=>O.value.map((e=>re.value(e))).join(", "))),Y=computed((()=>void 0!==e.displayValue?e.displayValue:Q.value)),W=computed((()=>!0===e.optionsHtml?()=>!0:e=>null!=e&&!0===e.html)),K=computed((()=>!0===e.displayValueHtml||void 0===e.displayValue&&(!0===e.optionsHtml||O.value.some(W.value)))),G=computed((()=>!0===R.focused.value?e.tabindex:-1)),X=computed((()=>{const t={tabindex:e.tabindex,role:"combobox","aria-label":e.label,"aria-readonly":!0===e.readonly?"true":"false","aria-autocomplete":!0===e.useInput?"list":"none","aria-expanded":!0===r.value?"true":"false","aria-controls":`${R.targetUid.value}_lb`};return l.value>=0&&(t["aria-activedescendant"]=`${R.targetUid.value}_${l.value}`),t})),Z=computed((()=>({id:`${R.targetUid.value}_lb`,role:"listbox","aria-multiselectable":!0===e.multiple?"true":"false"}))),J=computed((()=>O.value.map(((e,t)=>({index:t,opt:e,html:W.value(e),selected:!0,removeAtIndex:de,toggleOption:he,tabindex:G.value}))))),ee=computed((()=>{if(0===E.value)return[];const{from:t,to:n}=L.value;return e.options.slice(t,n).map(((n,o)=>{const i=!0===ie.value(n),s=!0===me(n),u=t+o,c={clickable:!0,active:s,activeClass:oe.value,manualFocus:!0,focused:!1,disable:i,tabindex:-1,dense:e.optionsDense,dark:z.value,role:"option","aria-selected":!0===s?"true":"false",id:`${R.targetUid.value}_${u}`,onClick:()=>{he(n)}};return!0!==i&&(l.value===u&&(c.focused=!0),!0===a.platform.is.desktop&&(c.onMousemove=()=>{!0===r.value&&fe(u)})),{index:u,opt:n,html:W.value(n),label:re.value(n),selected:c.active,focused:c.focused,toggleOption:he,setOptionIndex:fe,itemProps:c}}))})),te=computed((()=>void 0!==e.dropdownIcon?e.dropdownIcon:a.iconSet.arrow.dropdown)),ne=computed((()=>!1===e.optionsCover&&!0!==e.outlined&&!0!==e.standout&&!0!==e.borderless&&!0!==e.rounded)),oe=computed((()=>void 0!==e.optionsSelectedClass?e.optionsSelectedClass:void 0!==e.color?`text-${e.color}`:"")),ae=computed((()=>getPropValueFn2(e.optionValue,"value"))),re=computed((()=>getPropValueFn2(e.optionLabel,"label"))),ie=computed((()=>getPropValueFn2(e.optionDisable,"disable"))),le=computed((()=>O.value.map(ae.value))),se=computed((()=>{const e={onInput:ke,onChange:$,onKeydown:we,onKeyup:be,onKeypress:ye,onFocus:ge,onClick(e){!0===p&&stop$1(e)}};return e.onCompositionstart=e.onCompositionupdate=e.onCompositionend=$,e}));function ue(t){return!0===e.emitValue?ae.value(t):t}function ce(t){if(-1!==t&&t<O.value.length)if(!0===e.multiple){const o=e.modelValue.slice();n("remove",{index:t,value:o.splice(t,1)[0]}),n("update:modelValue",o)}else n("update:modelValue",null)}function de(e){ce(e),R.focus()}function pe(t,o){const a=ue(t);if(!0!==e.multiple)return!0===e.fillInput&&Me(re.value(t),!0,!0),void n("update:modelValue",a);if(0===O.value.length)return n("add",{index:0,value:a}),void n("update:modelValue",!0===e.multiple?[a]:a);if(!0===o&&!0===me(t))return;if(void 0!==e.maxValues&&e.modelValue.length>=e.maxValues)return;const r=e.modelValue.slice();n("add",{index:r.length,value:a}),r.push(a),n("update:modelValue",r)}function he(t,o){if(!0!==R.editable.value||void 0===t||!0===ie.value(t))return;const a=ae.value(t);if(!0!==e.multiple)return!0!==o&&(Me(!0===e.fillInput?re.value(t):"",!0,!0),Ie()),null!==S.value&&S.value.focus(),void(0!==O.value.length&&!0===isDeepEqual(ae.value(O.value[0]),a)||n("update:modelValue",!0===e.emitValue?a:t));if((!0!==p||!0===u.value)&&R.focus(),ge(),0===O.value.length){const o=!0===e.emitValue?a:t;return n("add",{index:0,value:o}),void n("update:modelValue",!0===e.multiple?[o]:o)}const r=e.modelValue.slice(),i=le.value.findIndex((e=>isDeepEqual(e,a)));if(-1!==i)n("remove",{index:i,value:r.splice(i,1)[0]});else{if(void 0!==e.maxValues&&r.length>=e.maxValues)return;const o=!0===e.emitValue?a:t;n("add",{index:r.length,value:o}),r.push(o)}n("update:modelValue",r)}function fe(e){if(!0!==a.platform.is.desktop)return;const t=-1!==e&&e<E.value?e:-1;l.value!==t&&(l.value=t)}function ve(t=1,n){if(!0===r.value){let o=l.value;do{o=normalizeToInterval(o+t,-1,E.value-1)}while(-1!==o&&o!==l.value&&!0===ie.value(e.options[o]));l.value!==o&&(fe(o),A(o),!0!==n&&!0===e.useInput&&!0===e.fillInput&&xe(o>=0?re.value(e.options[o]):v,!0))}}function me(e){const t=ae.value(e);return void 0!==le.value.find((e=>isDeepEqual(e,t)))}function ge(t){!0===e.useInput&&null!==S.value&&(void 0===t||S.value===t.target&&t.target.value===Q.value)&&S.value.select()}function _e(e){!0===isKeyCode(e,27)&&!0===r.value&&(stop$1(e),Ie(),Re()),n("keyup",e)}function be(t){const{value:n}=t.target;if(void 0===t.keyCode)if(t.target.value="",null!==b&&(clearTimeout(b),b=null),null!==y&&(clearTimeout(y),y=null),Re(),"string"==typeof n&&0!==n.length){const t=n.toLocaleLowerCase(),o=n=>{const o=e.options.find((e=>String(n.value(e)).toLocaleLowerCase()===t));return void 0!==o&&(-1===O.value.indexOf(o)?he(o):Ie(),!0)},a=e=>{!0!==o(ae)&&!0!==e&&!0!==o(re)&&Te(n,!0,(()=>a(!0)))};a()}else R.clearValue(t);else _e(t)}function ye(e){n("keypress",e)}function we(t){if(n("keydown",t),!0===shouldIgnoreKey(t))return;const o=0!==s.value.length&&(void 0!==e.newValueMode||void 0!==e.onNewValue),a=!0!==t.shiftKey&&!0!==e.disableTabSelection&&!0!==e.multiple&&(-1!==l.value||!0===o);if(27===t.keyCode)return void prevent(t);if(9===t.keyCode&&!1===a)return void Pe();if(void 0===t.target||t.target.id!==R.targetUid.value||!0!==R.editable.value)return;if(40===t.keyCode&&!0!==R.innerLoading.value&&!1===r.value)return stopAndPrevent(t),void Ae();if(8===t.keyCode&&(!0===e.useChips||!0===e.clearable)&&!0!==e.hideSelected&&0===s.value.length)return void(!0===e.multiple&&!0===Array.isArray(e.modelValue)?ce(e.modelValue.length-1):!0!==e.multiple&&null!==e.modelValue&&n("update:modelValue",null));35!==t.keyCode&&36!==t.keyCode||"string"==typeof s.value&&0!==s.value.length||(stopAndPrevent(t),l.value=-1,ve(36===t.keyCode?1:-1,e.multiple)),33!==t.keyCode&&34!==t.keyCode||void 0===D.value||(stopAndPrevent(t),l.value=Math.max(-1,Math.min(E.value,l.value+(33===t.keyCode?-1:1)*D.value.view)),ve(33===t.keyCode?1:-1,e.multiple)),38!==t.keyCode&&40!==t.keyCode||(stopAndPrevent(t),ve(38===t.keyCode?-1:1,e.multiple));const i=E.value;if((void 0===g||_<Date.now())&&(g=""),i>0&&!0!==e.useInput&&void 0!==t.key&&1===t.key.length&&!1===t.altKey&&!1===t.ctrlKey&&!1===t.metaKey&&(32!==t.keyCode||0!==g.length)){!0!==r.value&&Ae(t);const n=t.key.toLocaleLowerCase(),o=1===g.length&&g[0]===n;_=Date.now()+1500,!1===o&&(stopAndPrevent(t),g+=n);const a=new RegExp("^"+g.split("").map((e=>-1!==reEscapeList.indexOf(e)?"\\"+e:e)).join(".*"),"i");let s=l.value;if(!0===o||s<0||!0!==a.test(re.value(e.options[s])))do{s=normalizeToInterval(s+1,-1,i-1)}while(s!==l.value&&(!0===ie.value(e.options[s])||!0!==a.test(re.value(e.options[s]))));l.value!==s&&nextTick((()=>{fe(s),A(s),s>=0&&!0===e.useInput&&!0===e.fillInput&&xe(re.value(e.options[s]),!0)}))}else if(13===t.keyCode||32===t.keyCode&&!0!==e.useInput&&""===g||9===t.keyCode&&!1!==a)if(9!==t.keyCode&&stopAndPrevent(t),-1!==l.value&&l.value<i)he(e.options[l.value]);else{if(!0===o){const t=(t,n)=>{if(n){if(!0!==validateNewValueMode(n))return}else n=e.newValueMode;if(Me("",!0!==e.multiple,!0),null==t)return;("toggle"===n?he:pe)(t,"add-unique"===n),!0!==e.multiple&&(null!==S.value&&S.value.focus(),Ie())};if(void 0!==e.onNewValue?n("newValue",s.value,t):t(s.value),!0!==e.multiple)return}!0===r.value?Pe():!0!==R.innerLoading.value&&Ae()}}function Ce(){return!0===p?M.value:null!==k.value&&null!==k.value.contentEl?k.value.contentEl:void 0}function Se(){if(!0===U.value)return void 0!==t["no-option"]?t["no-option"]({inputValue:s.value}):void 0;const e=void 0!==t.option?t.option:e=>h(QItem_default,{key:e.index,...e.itemProps},(()=>h(QItemSection_default,(()=>h(QItemLabel_default,(()=>h("span",{[!0===e.html?"innerHTML":"textContent"]:e.label})))))));let n=q("div",ee.value.map(e));return void 0!==t["before-options"]&&(n=t["before-options"]().concat(n)),hMergeSlot(t["after-options"],n)}function ke(t){null!==b&&(clearTimeout(b),b=null),null!==y&&(clearTimeout(y),y=null),t&&t.target&&!0===t.target.qComposing||(xe(t.target.value||""),f=!0,v=s.value,!0===R.focused.value||!0===p&&!0!==u.value||R.focus(),void 0!==e.onFilter&&(b=setTimeout((()=>{b=null,Te(s.value)}),e.inputDebounce)))}function xe(t,o){s.value!==t&&(s.value=t,!0===o||0===e.inputDebounce||"0"===e.inputDebounce?n("inputValue",t):y=setTimeout((()=>{y=null,n("inputValue",t)}),e.inputDebounce))}function Me(t,n,o){f=!0!==o,!0===e.useInput&&(xe(t,!0),!0!==n&&!0===o||(v=t),!0!==n&&Te(t))}function Te(t,a,i){if(void 0===e.onFilter||!0!==a&&!0!==R.focused.value)return;!0===R.innerLoading.value?n("filterAbort"):(R.innerLoading.value=!0,c.value=!0),""!==t&&!0!==e.multiple&&0!==O.value.length&&!0!==f&&t===re.value(O.value[0])&&(t="");const l=setTimeout((()=>{!0===r.value&&(r.value=!1)}),10);null!==w&&clearTimeout(w),w=l,n("filter",t,((e,t)=>{!0!==a&&!0!==R.focused.value||w!==l||(clearTimeout(w),"function"==typeof e&&e(),c.value=!1,nextTick((()=>{R.innerLoading.value=!1,!0===R.editable.value&&(!0===a?!0===r.value&&Ie():!0===r.value?Oe(!0):r.value=!0),"function"==typeof t&&nextTick((()=>{t(o)})),"function"==typeof i&&nextTick((()=>{i(o)}))})))}),(()=>{!0===R.focused.value&&w===l&&(clearTimeout(w),R.innerLoading.value=!1,c.value=!1),!0===r.value&&(r.value=!1)}))}function $e(e){Fe(e),Pe()}function Ee(){I()}function Ne(e){stop$1(e),null!==S.value&&S.value.focus(),u.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function Le(e){stop$1(e),nextTick((()=>{u.value=!1}))}function De(e){Fe(e),null!==x.value&&x.value.__updateRefocusTarget(R.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),R.focused.value=!1}function Be(e){Ie(),!1===R.focused.value&&n("blur",e),Re()}function qe(){const e=document.activeElement;null!==e&&e.id===R.targetUid.value||null===S.value||S.value===e||S.value.focus(),I()}function Pe(){!0!==i.value&&(l.value=-1,!0===r.value&&(r.value=!1),!1===R.focused.value&&(null!==w&&(clearTimeout(w),w=null),!0===R.innerLoading.value&&(n("filterAbort"),R.innerLoading.value=!1,c.value=!1)))}function Ae(n){!0===R.editable.value&&(!0===p?(R.onControlFocusin(n),i.value=!0,nextTick((()=>{R.focus()}))):R.focus(),void 0!==e.onFilter?Te(s.value):!0===U.value&&void 0===t["no-option"]||(r.value=!0))}function Ie(){i.value=!1,Pe()}function Re(){!0===e.useInput&&Me(!0!==e.multiple&&!0===e.fillInput&&0!==O.value.length&&re.value(O.value[0])||"",!0,!0)}function Oe(t){let n=-1;if(!0===t){if(0!==O.value.length){const t=ae.value(O.value[0]);n=e.options.findIndex((e=>isDeepEqual(ae.value(e),t)))}B(n)}fe(n)}function Ve(){!1===i.value&&null!==k.value&&k.value.updatePosition()}function ze(e){void 0!==e&&stop$1(e),n("popupShow",e),R.hasPopupOpen=!0,R.onControlFocusin(e)}function Fe(e){void 0!==e&&stop$1(e),n("popupHide",e),R.hasPopupOpen=!1,R.onControlFocusout(e)}function je(){p=(!0===a.platform.is.mobile||"dialog"===e.behavior)&&("menu"!==e.behavior&&(!0!==e.useInput||(void 0!==t["no-option"]||void 0!==e.onFilter||!1===U.value))),m=!0===a.platform.is.ios&&!0===p&&!0===e.useInput?"fade":e.transitionShow}return watch(O,(t=>{d=t,!0===e.useInput&&!0===e.fillInput&&!0!==e.multiple&&!0!==R.innerLoading.value&&(!0!==i.value&&!0!==r.value||!0!==F.value)&&(!0!==f&&Re(),!0!==i.value&&!0!==r.value||Te(""))}),{immediate:!0}),watch((()=>e.fillInput),Re),watch(r,Oe),watch(E,(function(e,t){!0===r.value&&!1===R.innerLoading.value&&(B(-1,!0),nextTick((()=>{!0===r.value&&!1===R.innerLoading.value&&(e>t?B():Oe(!0))})))})),onBeforeUpdate(je),onUpdated(Ve),je(),onBeforeUnmount((()=>{null!==b&&clearTimeout(b),null!==y&&clearTimeout(y)})),Object.assign(o,{showPopup:Ae,hidePopup:Ie,removeAtIndex:ce,add:pe,toggleOption:he,getOptionIndex:()=>l.value,setOptionIndex:fe,moveOptionSelection:ve,filter:Te,updateMenuPosition:Ve,updateInputValue:Me,isOptionSelected:me,getEmittingOptionValue:ue,isOptionDisabled:(...e)=>!0===ie.value.apply(null,e),getOptionValue:(...e)=>ae.value.apply(null,e),getOptionLabel:(...e)=>re.value.apply(null,e)}),Object.assign(R,{innerValue:O,fieldClass:computed((()=>`q-select q-field--auto-height q-select--with${!0!==e.useInput?"out":""}-input q-select--with${!0!==e.useChips?"out":""}-chips q-select--${!0===e.multiple?"multiple":"single"}`)),inputRef:C,targetRef:S,hasValue:F,showPopup:Ae,floatingLabel:computed((()=>!0!==e.hideSelected&&!0===F.value||"number"==typeof s.value||0!==s.value.length||fieldValueIsFilled(e.displayValue))),getControlChild:()=>{if(!1!==R.editable.value&&(!0===i.value||!0!==U.value||void 0!==t["no-option"]))return!0===p?function(){const n=[h(QField_default,{class:`col-auto ${R.fieldClass.value}`,...V.value,for:R.targetUid.value,dark:z.value,square:!0,loading:c.value,itemAligned:!1,filled:!0,stackLabel:0!==s.value.length,...R.splitAttrs.listeners.value,onFocus:Ne,onBlur:Le},{...t,rawControl:()=>R.getControl(!0),before:void 0,after:void 0})];return!0===r.value&&n.push(h("div",{ref:M,class:H.value+" scroll",style:e.popupContentStyle,...Z.value,onClick:prevent,onScrollPassive:P},Se())),h(QDialog_default,{ref:x,modelValue:i.value,position:!0===e.useInput?"top":void 0,transitionShow:m,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:ze,onBeforeHide:De,onHide:Be,onShow:qe},(()=>h("div",{class:"q-select__dialog"+(!0===z.value?" q-select__dialog--dark q-dark":"")+(!0===u.value?" q-select__dialog--focused":"")},n)))}():h(QMenu_default,{ref:k,class:H.value,style:e.popupContentStyle,modelValue:r.value,fit:!0!==e.menuShrink,cover:!0===e.optionsCover&&!0!==U.value&&!0!==e.useInput,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:z.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:ne.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...Z.value,onScrollPassive:P,onBeforeShow:ze,onBeforeHide:$e,onShow:Ee},Se);!0===R.hasPopupOpen&&(R.hasPopupOpen=!1)},controlEvents:{onFocusin(e){R.onControlFocusin(e)},onFocusout(e){R.onControlFocusout(e,(()=>{Re(),Pe()}))},onClick(e){if(prevent(e),!0!==p&&!0===r.value)return Pe(),void(null!==S.value&&S.value.focus());Ae(e)}},getControl:n=>{const o=!0===e.hideSelected?[]:void 0!==t["selected-item"]?J.value.map((e=>t["selected-item"](e))).slice():void 0!==t.selected?[].concat(t.selected()):!0===e.useChips?J.value.map(((t,n)=>h(QChip_default,{key:"option-"+n,removable:!0===R.editable.value&&!0!==ie.value(t.opt),dense:!0,textColor:e.color,tabindex:G.value,onRemove(){t.removeAtIndex(n)}},(()=>h("span",{class:"ellipsis",[!0===t.html?"innerHTML":"textContent"]:re.value(t.opt)}))))):[h("span",{[!0===K.value?"innerHTML":"textContent"]:Y.value})],a=!0===n||!0!==i.value||!0!==p;if(!0===e.useInput)o.push(function(t,n){const o=!0===n?{...X.value,...R.splitAttrs.attributes.value}:void 0,a={ref:!0===n?S:void 0,key:"i_t",class:j.value,style:e.inputStyle,value:void 0!==s.value?s.value:"",type:"search",...o,id:!0===n?R.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":!0===t||!0===e.autofocus||void 0,disabled:!0===e.disable,readonly:!0===e.readonly,...se.value};return!0!==t&&!0===p&&(!0===Array.isArray(a.class)?a.class=[...a.class,"no-pointer-events"]:a.class+=" no-pointer-events"),h("input",a)}(n,a));else if(!0===R.editable.value){const t=!0===a?X.value:void 0;o.push(h("input",{ref:!0===a?S:void 0,key:"d_t",class:"q-select__focus-target",id:!0===a?R.targetUid.value:void 0,value:Y.value,readonly:!0,"data-autofocus":!0===n||!0===e.autofocus||void 0,...t,onKeydown:we,onKeyup:_e,onKeypress:ye})),!0===a&&"string"==typeof e.autocomplete&&0!==e.autocomplete.length&&o.push(h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:be}))}if(void 0!==T.value&&!0!==e.disable&&0!==le.value.length){const t=le.value.map((e=>h("option",{value:e,selected:!0})));o.push(h("select",{class:"hidden",name:T.value,multiple:e.multiple},t))}const r=!0===e.useInput||!0!==a?void 0:R.splitAttrs.attributes.value;return h("div",{class:"q-field__native row items-center",...r,...R.splitAttrs.listeners.value},o)},getInnerAppend:()=>!0!==e.loading&&!0!==c.value&&!0!==e.hideDropdownIcon?[h(QIcon_default,{class:"q-select__dropdown-icon"+(!0===r.value?" rotate-180":""),name:te.value})]:null}),use_field_default(R)}}),skeletonTypes=["text","rect","circle","QBtn","QBadge","QChip","QToolbar","QCheckbox","QRadio","QToggle","QSlider","QRange","QInput","QAvatar"],skeletonAnimations=["wave","pulse","pulse-x","pulse-y","fade","blink","none"];createComponent({name:"QSkeleton",props:{...useDarkProps,tag:{type:String,default:"div"},type:{type:String,validator:e=>skeletonTypes.includes(e),default:"rect"},animation:{type:String,validator:e=>skeletonAnimations.includes(e),default:"wave"},animationSpeed:{type:[String,Number],default:1500},square:Boolean,bordered:Boolean,size:String,width:String,height:String},setup(e,{slots:t}){const n=getCurrentInstance(),o=use_dark_default(e,n.proxy.$q),a=computed((()=>{const t=void 0!==e.size?[e.size,e.size]:[e.width,e.height];return{"--q-skeleton-speed":`${e.animationSpeed}ms`,width:t[0],height:t[1]}})),r=computed((()=>`q-skeleton q-skeleton--${!0===o.value?"dark":"light"} q-skeleton--type-${e.type}`+("none"!==e.animation?` q-skeleton--anim q-skeleton--anim-${e.animation}`:"")+(!0===e.square?" q-skeleton--square":"")+(!0===e.bordered?" q-skeleton--bordered":"")));return()=>h(e.tag,{class:r.value,style:a.value},hSlot(t.default))}});var slotsDef=[["left","center","start","width"],["right","center","end","width"],["top","start","center","height"],["bottom","end","center","height"]];createComponent({name:"QSlideItem",props:{...useDarkProps,leftColor:String,rightColor:String,topColor:String,bottomColor:String,onSlide:Function},emits:["action","top","right","bottom","left"],setup(e,{slots:t,emit:n}){const{proxy:o}=getCurrentInstance(),{$q:a}=o,r=use_dark_default(e,a),{getCache:i}=use_render_cache_default(),l=ref(null);let s=null,u={},c={},d={};const p=computed((()=>!0===a.lang.rtl?{left:"right",right:"left"}:{left:"left",right:"right"})),f=computed((()=>"q-slide-item q-item-type overflow-hidden"+(!0===r.value?" q-slide-item--dark q-dark":"")));function v(){l.value.style.transform="translate(0,0)"}function m(t,o,a){void 0!==e.onSlide&&n("slide",{side:t,ratio:o,isReset:a})}function g(e){const o=l.value;if(e.isFirst)u={dir:null,size:{left:0,right:0,top:0,bottom:0},scale:0},o.classList.add("no-transition"),slotsDef.forEach((e=>{if(void 0!==t[e[0]]){const t=d[e[0]];t.style.transform="scale(1)",u.size[e[0]]=t.getBoundingClientRect()[e[3]]}})),u.axis="up"===e.direction||"down"===e.direction?"Y":"X";else{if(e.isFinal)return o.classList.remove("no-transition"),void(1===u.scale?(o.style.transform=`translate${u.axis}(${100*u.dir}%)`,null!==s&&clearTimeout(s),s=setTimeout((()=>{s=null,n(u.showing,{reset:v}),n("action",{side:u.showing,reset:v})}),230)):(o.style.transform="translate(0,0)",m(u.showing,0,!0)));e.direction="X"===u.axis?e.offset.x<0?"left":"right":e.offset.y<0?"up":"down"}if(void 0===t.left&&e.direction===p.value.right||void 0===t.right&&e.direction===p.value.left||void 0===t.top&&"down"===e.direction||void 0===t.bottom&&"up"===e.direction)return void(o.style.transform="translate(0,0)");let a,r,i;"X"===u.axis?(r="left"===e.direction?-1:1,a=1===r?p.value.left:p.value.right,i=e.distance.x):(r="up"===e.direction?-2:2,a=2===r?"top":"bottom",i=e.distance.y),null!==u.dir&&Math.abs(r)!==Math.abs(u.dir)||(u.dir!==r&&(["left","right","top","bottom"].forEach((e=>{c[e]&&(c[e].style.visibility=a===e?"visible":"hidden")})),u.showing=a,u.dir=r),u.scale=Math.max(0,Math.min(1,(i-40)/u.size[a])),o.style.transform=`translate${u.axis}(${i*r/Math.abs(r)}px)`,d[a].style.transform=`scale(${u.scale})`,m(a,u.scale,!1))}return onBeforeUpdate((()=>{c={},d={}})),onBeforeUnmount((()=>{null!==s&&clearTimeout(s)})),Object.assign(o,{reset:v}),()=>{const n=[],o={left:void 0!==t[p.value.right],right:void 0!==t[p.value.left],up:void 0!==t.bottom,down:void 0!==t.top},a=Object.keys(o).filter((e=>!0===o[e]));slotsDef.forEach((o=>{const a=o[0];void 0!==t[a]&&n.push(h("div",{key:a,ref:e=>{c[a]=e},class:`q-slide-item__${a} absolute-full row no-wrap items-${o[1]} justify-${o[2]}`+(void 0!==e[a+"Color"]?` bg-${e[a+"Color"]}`:"")},[h("div",{ref:e=>{d[a]=e}},t[a]())]))}));const r=h("div",{key:(0===a.length?"only-":"")+" content",ref:l,class:"q-slide-item__content"},hSlot(t.default));return 0===a.length?n.push(r):n.push(withDirectives(r,i("dir#"+a.join(""),(()=>{const e={prevent:!0,stop:!0,mouse:!0};return a.forEach((t=>{e[t]=!0})),[[TouchPan_default,g,void 0,e]]})))),h("div",{class:f.value},n)}}});var QSpace_default=createComponent({name:"QSpace",setup(){const e=h("div",{class:"q-space"});return()=>e}}),innerHTML='<g transform="matrix(1 0 0 -1 0 80)"><rect width="10" height="20" rx="3"><animate attributeName="height" begin="0s" dur="4.3s" values="20;45;57;80;64;32;66;45;64;23;66;13;64;56;34;34;2;23;76;79;20" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="15" width="10" height="80" rx="3"><animate attributeName="height" begin="0s" dur="2s" values="80;55;33;5;75;23;73;33;12;14;60;80" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="30" width="10" height="50" rx="3"><animate attributeName="height" begin="0s" dur="1.4s" values="50;34;78;23;56;23;34;76;80;54;21;50" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="45" width="10" height="30" rx="3"><animate attributeName="height" begin="0s" dur="2s" values="30;45;13;80;56;72;45;76;34;23;67;30" calcMode="linear" repeatCount="indefinite"></animate></rect></g>';createComponent({name:"QSpinnerAudio",props:useSpinnerProps,setup(e){const{cSize:t,classes:n}=useSpinner(e);return()=>h("svg",{class:n.value,fill:"currentColor",width:t.value,height:t.value,viewBox:"0 0 55 80",xmlns:"http://www.w3.org/2000/svg",innerHTML:innerHTML})}});var innerHTML2='<g transform="translate(1 1)" stroke-width="2" fill="none" fill-rule="evenodd"><circle cx="5" cy="50" r="5"><animate attributeName="cy" begin="0s" dur="2.2s" values="50;5;50;50" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="cx" begin="0s" dur="2.2s" values="5;27;49;5" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="27" cy="5" r="5"><animate attributeName="cy" begin="0s" dur="2.2s" from="5" to="5" values="5;50;50;5" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="cx" begin="0s" dur="2.2s" from="27" to="27" values="27;49;5;27" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="49" cy="50" r="5"><animate attributeName="cy" begin="0s" dur="2.2s" values="50;50;5;50" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="cx" from="49" to="49" begin="0s" dur="2.2s" values="49;5;27;49" calcMode="linear" repeatCount="indefinite"></animate></circle></g>';createComponent({name:"QSpinnerBall",props:useSpinnerProps,setup(e){const{cSize:t,classes:n}=useSpinner(e);return()=>h("svg",{class:n.value,stroke:"currentColor",width:t.value,height:t.value,viewBox:"0 0 57 57",xmlns:"http://www.w3.org/2000/svg",innerHTML:innerHTML2})}});var innerHTML3='<rect y="10" width="15" height="120" rx="6"><animate attributeName="height" begin="0.5s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="y" begin="0.5s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="30" y="10" width="15" height="120" rx="6"><animate attributeName="height" begin="0.25s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="y" begin="0.25s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="60" width="15" height="140" rx="6"><animate attributeName="height" begin="0s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="y" begin="0s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="90" y="10" width="15" height="120" rx="6"><animate attributeName="height" begin="0.25s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="y" begin="0.25s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="120" y="10" width="15" height="120" rx="6"><animate attributeName="height" begin="0.5s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="y" begin="0.5s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" repeatCount="indefinite"></animate></rect>';createComponent({name:"QSpinnerBars",props:useSpinnerProps,setup(e){const{cSize:t,classes:n}=useSpinner(e);return()=>h("svg",{class:n.value,fill:"currentColor",width:t.value,height:t.value,viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",innerHTML:innerHTML3})}});var innerHTML4='<rect x="25" y="25" width="50" height="50" fill="none" stroke-width="4" stroke="currentColor"><animateTransform id="spinnerBox" attributeName="transform" type="rotate" from="0 50 50" to="180 50 50" dur="0.5s" begin="rectBox.end"></animateTransform></rect><rect x="27" y="27" width="46" height="50" fill="currentColor"><animate id="rectBox" attributeName="height" begin="0s;spinnerBox.end" dur="1.3s" from="50" to="0" fill="freeze"></animate></rect>';createComponent({name:"QSpinnerBox",props:useSpinnerProps,setup(e){const{cSize:t,classes:n}=useSpinner(e);return()=>h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",innerHTML:innerHTML4})}});var innerHTML5='<circle cx="50" cy="50" r="48" fill="none" stroke-width="4" stroke-miterlimit="10" stroke="currentColor"></circle><line stroke-linecap="round" stroke-width="4" stroke-miterlimit="10" stroke="currentColor" x1="50" y1="50" x2="85" y2="50.5"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="360 50 50" dur="2s" repeatCount="indefinite"></animateTransform></line><line stroke-linecap="round" stroke-width="4" stroke-miterlimit="10" stroke="currentColor" x1="50" y1="50" x2="49.5" y2="74"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="360 50 50" dur="15s" repeatCount="indefinite"></animateTransform></line>';createComponent({name:"QSpinnerClock",props:useSpinnerProps,setup(e){const{cSize:t,classes:n}=useSpinner(e);return()=>h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",innerHTML:innerHTML5})}});var innerHTML6='<rect x="0" y="0" width="100" height="100" fill="none"></rect><path d="M78,19H22c-6.6,0-12,5.4-12,12v31c0,6.6,5.4,12,12,12h37.2c0.4,3,1.8,5.6,3.7,7.6c2.4,2.5,5.1,4.1,9.1,4 c-1.4-2.1-2-7.2-2-10.3c0-0.4,0-0.8,0-1.3h8c6.6,0,12-5.4,12-12V31C90,24.4,84.6,19,78,19z" fill="currentColor"></path><circle cx="30" cy="47" r="5" fill="#fff"><animate attributeName="opacity" from="0" to="1" values="0;1;1" keyTimes="0;0.2;1" dur="1s" repeatCount="indefinite"></animate></circle><circle cx="50" cy="47" r="5" fill="#fff"><animate attributeName="opacity" from="0" to="1" values="0;0;1;1" keyTimes="0;0.2;0.4;1" dur="1s" repeatCount="indefinite"></animate></circle><circle cx="70" cy="47" r="5" fill="#fff"><animate attributeName="opacity" from="0" to="1" values="0;0;1;1" keyTimes="0;0.4;0.6;1" dur="1s" repeatCount="indefinite"></animate></circle>';createComponent({name:"QSpinnerComment",props:useSpinnerProps,setup(e){const{cSize:t,classes:n}=useSpinner(e);return()=>h("svg",{class:n.value,width:t.value,height:t.value,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",innerHTML:innerHTML6})}});var innerHTML7='<rect x="0" y="0" width="100" height="100" fill="none"></rect><g transform="translate(25 25)"><rect x="-20" y="-20" width="40" height="40" fill="currentColor" opacity="0.9"><animateTransform attributeName="transform" type="scale" from="1.5" to="1" repeatCount="indefinite" begin="0s" dur="1s" calcMode="spline" keySplines="0.2 0.8 0.2 0.8" keyTimes="0;1"></animateTransform></rect></g><g transform="translate(75 25)"><rect x="-20" y="-20" width="40" height="40" fill="currentColor" opacity="0.8"><animateTransform attributeName="transform" type="scale" from="1.5" to="1" repeatCount="indefinite" begin="0.1s" dur="1s" calcMode="spline" keySplines="0.2 0.8 0.2 0.8" keyTimes="0;1"></animateTransform></rect></g><g transform="translate(25 75)"><rect x="-20" y="-20" width="40" height="40" fill="currentColor" opacity="0.7"><animateTransform attributeName="transform" type="scale" from="1.5" to="1" repeatCount="indefinite" begin="0.3s" dur="1s" calcMode="spline" keySplines="0.2 0.8 0.2 0.8" keyTimes="0;1"></animateTransform></rect></g><g transform="translate(75 75)"><rect x="-20" y="-20" width="40" height="40" fill="currentColor" opacity="0.6"><animateTransform attributeName="transform" type="scale" from="1.5" to="1" repeatCount="indefinite" begin="0.2s" dur="1s" calcMode="spline" keySplines="0.2 0.8 0.2 0.8" keyTimes="0;1"></animateTransform></rect></g>';createComponent({name:"QSpinnerCube",props:useSpinnerProps,setup(e){const{cSize:t,classes:n}=useSpinner(e);return()=>h("svg",{class:n.value,width:t.value,height:t.value,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",innerHTML:innerHTML7})}});var innerHTML8='<circle cx="15" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="60" cy="15" r="9" fill-opacity=".3"><animate attributeName="r" from="9" to="9" begin="0s" dur="0.8s" values="9;15;9" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from=".5" to=".5" begin="0s" dur="0.8s" values=".5;1;.5" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="105" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle>';createComponent({name:"QSpinnerDots",props:useSpinnerProps,setup(e){const{cSize:t,classes:n}=useSpinner(e);return()=>h("svg",{class:n.value,fill:"currentColor",width:t.value,height:t.value,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",innerHTML:innerHTML8})}});var innerHTML9='<g transform="translate(20 50)"><rect x="-10" y="-30" width="20" height="60" fill="currentColor" opacity="0.6"><animateTransform attributeName="transform" type="scale" from="2" to="1" begin="0s" repeatCount="indefinite" dur="1s" calcMode="spline" keySplines="0.1 0.9 0.4 1" keyTimes="0;1" values="2;1"></animateTransform></rect></g><g transform="translate(50 50)"><rect x="-10" y="-30" width="20" height="60" fill="currentColor" opacity="0.8"><animateTransform attributeName="transform" type="scale" from="2" to="1" begin="0.1s" repeatCount="indefinite" dur="1s" calcMode="spline" keySplines="0.1 0.9 0.4 1" keyTimes="0;1" values="2;1"></animateTransform></rect></g><g transform="translate(80 50)"><rect x="-10" y="-30" width="20" height="60" fill="currentColor" opacity="0.9"><animateTransform attributeName="transform" type="scale" from="2" to="1" begin="0.2s" repeatCount="indefinite" dur="1s" calcMode="spline" keySplines="0.1 0.9 0.4 1" keyTimes="0;1" values="2;1"></animateTransform></rect></g>';createComponent({name:"QSpinnerFacebook",props:useSpinnerProps,setup(e){const{cSize:t,classes:n}=useSpinner(e);return()=>h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",innerHTML:innerHTML9})}});var innerHTML10='<g transform="translate(-20,-20)"><path d="M79.9,52.6C80,51.8,80,50.9,80,50s0-1.8-0.1-2.6l-5.1-0.4c-0.3-2.4-0.9-4.6-1.8-6.7l4.2-2.9c-0.7-1.6-1.6-3.1-2.6-4.5 L70,35c-1.4-1.9-3.1-3.5-4.9-4.9l2.2-4.6c-1.4-1-2.9-1.9-4.5-2.6L59.8,27c-2.1-0.9-4.4-1.5-6.7-1.8l-0.4-5.1C51.8,20,50.9,20,50,20 s-1.8,0-2.6,0.1l-0.4,5.1c-2.4,0.3-4.6,0.9-6.7,1.8l-2.9-4.1c-1.6,0.7-3.1,1.6-4.5,2.6l2.1,4.6c-1.9,1.4-3.5,3.1-5,4.9l-4.5-2.1 c-1,1.4-1.9,2.9-2.6,4.5l4.1,2.9c-0.9,2.1-1.5,4.4-1.8,6.8l-5,0.4C20,48.2,20,49.1,20,50s0,1.8,0.1,2.6l5,0.4 c0.3,2.4,0.9,4.7,1.8,6.8l-4.1,2.9c0.7,1.6,1.6,3.1,2.6,4.5l4.5-2.1c1.4,1.9,3.1,3.5,5,4.9l-2.1,4.6c1.4,1,2.9,1.9,4.5,2.6l2.9-4.1 c2.1,0.9,4.4,1.5,6.7,1.8l0.4,5.1C48.2,80,49.1,80,50,80s1.8,0,2.6-0.1l0.4-5.1c2.3-0.3,4.6-0.9,6.7-1.8l2.9,4.2 c1.6-0.7,3.1-1.6,4.5-2.6L65,69.9c1.9-1.4,3.5-3,4.9-4.9l4.6,2.2c1-1.4,1.9-2.9,2.6-4.5L73,59.8c0.9-2.1,1.5-4.4,1.8-6.7L79.9,52.6 z M50,65c-8.3,0-15-6.7-15-15c0-8.3,6.7-15,15-15s15,6.7,15,15C65,58.3,58.3,65,50,65z" fill="currentColor"><animateTransform attributeName="transform" type="rotate" from="90 50 50" to="0 50 50" dur="1s" repeatCount="indefinite"></animateTransform></path></g><g transform="translate(20,20) rotate(15 50 50)"><path d="M79.9,52.6C80,51.8,80,50.9,80,50s0-1.8-0.1-2.6l-5.1-0.4c-0.3-2.4-0.9-4.6-1.8-6.7l4.2-2.9c-0.7-1.6-1.6-3.1-2.6-4.5 L70,35c-1.4-1.9-3.1-3.5-4.9-4.9l2.2-4.6c-1.4-1-2.9-1.9-4.5-2.6L59.8,27c-2.1-0.9-4.4-1.5-6.7-1.8l-0.4-5.1C51.8,20,50.9,20,50,20 s-1.8,0-2.6,0.1l-0.4,5.1c-2.4,0.3-4.6,0.9-6.7,1.8l-2.9-4.1c-1.6,0.7-3.1,1.6-4.5,2.6l2.1,4.6c-1.9,1.4-3.5,3.1-5,4.9l-4.5-2.1 c-1,1.4-1.9,2.9-2.6,4.5l4.1,2.9c-0.9,2.1-1.5,4.4-1.8,6.8l-5,0.4C20,48.2,20,49.1,20,50s0,1.8,0.1,2.6l5,0.4 c0.3,2.4,0.9,4.7,1.8,6.8l-4.1,2.9c0.7,1.6,1.6,3.1,2.6,4.5l4.5-2.1c1.4,1.9,3.1,3.5,5,4.9l-2.1,4.6c1.4,1,2.9,1.9,4.5,2.6l2.9-4.1 c2.1,0.9,4.4,1.5,6.7,1.8l0.4,5.1C48.2,80,49.1,80,50,80s1.8,0,2.6-0.1l0.4-5.1c2.3-0.3,4.6-0.9,6.7-1.8l2.9,4.2 c1.6-0.7,3.1-1.6,4.5-2.6L65,69.9c1.9-1.4,3.5-3,4.9-4.9l4.6,2.2c1-1.4,1.9-2.9,2.6-4.5L73,59.8c0.9-2.1,1.5-4.4,1.8-6.7L79.9,52.6 z M50,65c-8.3,0-15-6.7-15-15c0-8.3,6.7-15,15-15s15,6.7,15,15C65,58.3,58.3,65,50,65z" fill="currentColor"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="90 50 50" dur="1s" repeatCount="indefinite"></animateTransform></path></g>';createComponent({name:"QSpinnerGears",props:useSpinnerProps,setup(e){const{cSize:t,classes:n}=useSpinner(e);return()=>h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",innerHTML:innerHTML10})}});var innerHTML11='<circle cx="12.5" cy="12.5" r="12.5"><animate attributeName="fill-opacity" begin="0s" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="12.5" cy="52.5" r="12.5" fill-opacity=".5"><animate attributeName="fill-opacity" begin="100ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="52.5" cy="12.5" r="12.5"><animate attributeName="fill-opacity" begin="300ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="52.5" cy="52.5" r="12.5"><animate attributeName="fill-opacity" begin="600ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="92.5" cy="12.5" r="12.5"><animate attributeName="fill-opacity" begin="800ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="92.5" cy="52.5" r="12.5"><animate attributeName="fill-opacity" begin="400ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="12.5" cy="92.5" r="12.5"><animate attributeName="fill-opacity" begin="700ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="52.5" cy="92.5" r="12.5"><animate attributeName="fill-opacity" begin="500ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="92.5" cy="92.5" r="12.5"><animate attributeName="fill-opacity" begin="200ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle>';createComponent({name:"QSpinnerGrid",props:useSpinnerProps,setup(e){const{cSize:t,classes:n}=useSpinner(e);return()=>h("svg",{class:n.value,fill:"currentColor",width:t.value,height:t.value,viewBox:"0 0 105 105",xmlns:"http://www.w3.org/2000/svg",innerHTML:innerHTML11})}});var innerHTML12='<path d="M30.262 57.02L7.195 40.723c-5.84-3.976-7.56-12.06-3.842-18.063 3.715-6 11.467-7.65 17.306-3.68l4.52 3.76 2.6-5.274c3.716-6.002 11.47-7.65 17.304-3.68 5.84 3.97 7.56 12.054 3.842 18.062L34.49 56.118c-.897 1.512-2.793 1.915-4.228.9z" fill-opacity=".5"><animate attributeName="fill-opacity" begin="0s" dur="1.4s" values="0.5;1;0.5" calcMode="linear" repeatCount="indefinite"></animate></path><path d="M105.512 56.12l-14.44-24.272c-3.716-6.008-1.996-14.093 3.843-18.062 5.835-3.97 13.588-2.322 17.306 3.68l2.6 5.274 4.52-3.76c5.84-3.97 13.593-2.32 17.308 3.68 3.718 6.003 1.998 14.088-3.842 18.064L109.74 57.02c-1.434 1.014-3.33.61-4.228-.9z" fill-opacity=".5"><animate attributeName="fill-opacity" begin="0.7s" dur="1.4s" values="0.5;1;0.5" calcMode="linear" repeatCount="indefinite"></animate></path><path d="M67.408 57.834l-23.01-24.98c-5.864-6.15-5.864-16.108 0-22.248 5.86-6.14 15.37-6.14 21.234 0L70 16.168l4.368-5.562c5.863-6.14 15.375-6.14 21.235 0 5.863 6.14 5.863 16.098 0 22.247l-23.007 24.98c-1.43 1.556-3.757 1.556-5.188 0z"></path>';createComponent({name:"QSpinnerHearts",props:useSpinnerProps,setup(e){const{cSize:t,classes:n}=useSpinner(e);return()=>h("svg",{class:n.value,fill:"currentColor",width:t.value,height:t.value,viewBox:"0 0 140 64",xmlns:"http://www.w3.org/2000/svg",innerHTML:innerHTML12})}});var innerHTML13='<g><path fill="none" stroke="currentColor" stroke-width="5" stroke-miterlimit="10" d="M58.4,51.7c-0.9-0.9-1.4-2-1.4-2.3s0.5-0.4,1.4-1.4 C70.8,43.8,79.8,30.5,80,15.5H70H30H20c0.2,15,9.2,28.1,21.6,32.3c0.9,0.9,1.4,1.2,1.4,1.5s-0.5,1.6-1.4,2.5 C29.2,56.1,20.2,69.5,20,85.5h10h40h10C79.8,69.5,70.8,55.9,58.4,51.7z"></path><clipPath id="uil-hourglass-clip1"><rect x="15" y="20" width="70" height="25"><animate attributeName="height" from="25" to="0" dur="1s" repeatCount="indefinite" values="25;0;0" keyTimes="0;0.5;1"></animate><animate attributeName="y" from="20" to="45" dur="1s" repeatCount="indefinite" values="20;45;45" keyTimes="0;0.5;1"></animate></rect></clipPath><clipPath id="uil-hourglass-clip2"><rect x="15" y="55" width="70" height="25"><animate attributeName="height" from="0" to="25" dur="1s" repeatCount="indefinite" values="0;25;25" keyTimes="0;0.5;1"></animate><animate attributeName="y" from="80" to="55" dur="1s" repeatCount="indefinite" values="80;55;55" keyTimes="0;0.5;1"></animate></rect></clipPath><path d="M29,23c3.1,11.4,11.3,19.5,21,19.5S67.9,34.4,71,23H29z" clip-path="url(#uil-hourglass-clip1)" fill="currentColor"></path><path d="M71.6,78c-3-11.6-11.5-20-21.5-20s-18.5,8.4-21.5,20H71.6z" clip-path="url(#uil-hourglass-clip2)" fill="currentColor"></path><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="180 50 50" repeatCount="indefinite" dur="1s" values="0 50 50;0 50 50;180 50 50" keyTimes="0;0.7;1"></animateTransform></g>';createComponent({name:"QSpinnerHourglass",props:useSpinnerProps,setup(e){const{cSize:t,classes:n}=useSpinner(e);return()=>h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",innerHTML:innerHTML13})}});var innerHTML14='<path d="M24.3,30C11.4,30,5,43.3,5,50s6.4,20,19.3,20c19.3,0,32.1-40,51.4-40C88.6,30,95,43.3,95,50s-6.4,20-19.3,20C56.4,70,43.6,30,24.3,30z" fill="none" stroke="currentColor" stroke-width="8" stroke-dasharray="10.691205342610678 10.691205342610678" stroke-dashoffset="0"><animate attributeName="stroke-dashoffset" from="0" to="21.382410685221355" begin="0" dur="2s" repeatCount="indefinite" fill="freeze"></animate></path>';createComponent({name:"QSpinnerInfinity",props:useSpinnerProps,setup(e){const{cSize:t,classes:n}=useSpinner(e);return()=>h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",innerHTML:innerHTML14})}});var innerHTML15='<g stroke-width="4" stroke-linecap="round"><line y1="17" y2="29" transform="translate(32,32) rotate(180)"><animate attributeName="stroke-opacity" dur="750ms" values="1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0;1" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(210)"><animate attributeName="stroke-opacity" dur="750ms" values="0;1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(240)"><animate attributeName="stroke-opacity" dur="750ms" values=".1;0;1;.85;.7;.65;.55;.45;.35;.25;.15;.1" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(270)"><animate attributeName="stroke-opacity" dur="750ms" values=".15;.1;0;1;.85;.7;.65;.55;.45;.35;.25;.15" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(300)"><animate attributeName="stroke-opacity" dur="750ms" values=".25;.15;.1;0;1;.85;.7;.65;.55;.45;.35;.25" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(330)"><animate attributeName="stroke-opacity" dur="750ms" values=".35;.25;.15;.1;0;1;.85;.7;.65;.55;.45;.35" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(0)"><animate attributeName="stroke-opacity" dur="750ms" values=".45;.35;.25;.15;.1;0;1;.85;.7;.65;.55;.45" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(30)"><animate attributeName="stroke-opacity" dur="750ms" values=".55;.45;.35;.25;.15;.1;0;1;.85;.7;.65;.55" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(60)"><animate attributeName="stroke-opacity" dur="750ms" values=".65;.55;.45;.35;.25;.15;.1;0;1;.85;.7;.65" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(90)"><animate attributeName="stroke-opacity" dur="750ms" values=".7;.65;.55;.45;.35;.25;.15;.1;0;1;.85;.7" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(120)"><animate attributeName="stroke-opacity" dur="750ms" values=".85;.7;.65;.55;.45;.35;.25;.15;.1;0;1;.85" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(150)"><animate attributeName="stroke-opacity" dur="750ms" values="1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0;1" repeatCount="indefinite"></animate></line></g>';createComponent({name:"QSpinnerIos",props:useSpinnerProps,setup(e){const{cSize:t,classes:n}=useSpinner(e);return()=>h("svg",{class:n.value,width:t.value,height:t.value,stroke:"currentColor",fill:"currentColor",viewBox:"0 0 64 64",innerHTML:innerHTML15})}});var innerHTML16='<circle cx="50" cy="50" r="44" fill="none" stroke-width="4" stroke-opacity=".5" stroke="currentColor"></circle><circle cx="8" cy="54" r="6" fill="currentColor" stroke-width="3" stroke="currentColor"><animateTransform attributeName="transform" type="rotate" from="0 50 48" to="360 50 52" dur="2s" repeatCount="indefinite"></animateTransform></circle>';createComponent({name:"QSpinnerOrbit",props:useSpinnerProps,setup(e){const{cSize:t,classes:n}=useSpinner(e);return()=>h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",innerHTML:innerHTML16})}});var innerHTML17='<g transform="translate(1 1)" stroke-width="2" fill="none" fill-rule="evenodd"><circle stroke-opacity=".5" cx="18" cy="18" r="18"></circle><path d="M36 18c0-9.94-8.06-18-18-18"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="1s" repeatCount="indefinite"></animateTransform></path></g>';createComponent({name:"QSpinnerOval",props:useSpinnerProps,setup(e){const{cSize:t,classes:n}=useSpinner(e);return()=>h("svg",{class:n.value,stroke:"currentColor",width:t.value,height:t.value,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",innerHTML:innerHTML17})}});var innerHTML18='<path d="M0 50A50 50 0 0 1 50 0L50 50L0 50" fill="currentColor" opacity="0.5"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="360 50 50" dur="0.8s" repeatCount="indefinite"></animateTransform></path><path d="M50 0A50 50 0 0 1 100 50L50 50L50 0" fill="currentColor" opacity="0.5"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="360 50 50" dur="1.6s" repeatCount="indefinite"></animateTransform></path><path d="M100 50A50 50 0 0 1 50 100L50 50L100 50" fill="currentColor" opacity="0.5"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="360 50 50" dur="2.4s" repeatCount="indefinite"></animateTransform></path><path d="M50 100A50 50 0 0 1 0 50L50 50L50 100" fill="currentColor" opacity="0.5"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="360 50 50" dur="3.2s" repeatCount="indefinite"></animateTransform></path>';createComponent({name:"QSpinnerPie",props:useSpinnerProps,setup(e){const{cSize:t,classes:n}=useSpinner(e);return()=>h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",innerHTML:innerHTML18})}});var innerHTML19='<g fill="none" fill-rule="evenodd" stroke-width="2"><circle cx="22" cy="22" r="1"><animate attributeName="r" begin="0s" dur="1.8s" values="1; 20" calcMode="spline" keyTimes="0; 1" keySplines="0.165, 0.84, 0.44, 1" repeatCount="indefinite"></animate><animate attributeName="stroke-opacity" begin="0s" dur="1.8s" values="1; 0" calcMode="spline" keyTimes="0; 1" keySplines="0.3, 0.61, 0.355, 1" repeatCount="indefinite"></animate></circle><circle cx="22" cy="22" r="1"><animate attributeName="r" begin="-0.9s" dur="1.8s" values="1; 20" calcMode="spline" keyTimes="0; 1" keySplines="0.165, 0.84, 0.44, 1" repeatCount="indefinite"></animate><animate attributeName="stroke-opacity" begin="-0.9s" dur="1.8s" values="1; 0" calcMode="spline" keyTimes="0; 1" keySplines="0.3, 0.61, 0.355, 1" repeatCount="indefinite"></animate></circle></g>';createComponent({name:"QSpinnerPuff",props:useSpinnerProps,setup(e){const{cSize:t,classes:n}=useSpinner(e);return()=>h("svg",{class:n.value,stroke:"currentColor",width:t.value,height:t.value,viewBox:"0 0 44 44",xmlns:"http://www.w3.org/2000/svg",innerHTML:innerHTML19})}});var innerHTML20='<g transform="scale(0.55)"><circle cx="30" cy="150" r="30" fill="currentColor"><animate attributeName="opacity" from="0" to="1" dur="1s" begin="0" repeatCount="indefinite" keyTimes="0;0.5;1" values="0;1;1"></animate></circle><path d="M90,150h30c0-49.7-40.3-90-90-90v30C63.1,90,90,116.9,90,150z" fill="currentColor"><animate attributeName="opacity" from="0" to="1" dur="1s" begin="0.1" repeatCount="indefinite" keyTimes="0;0.5;1" values="0;1;1"></animate></path><path d="M150,150h30C180,67.2,112.8,0,30,0v30C96.3,30,150,83.7,150,150z" fill="currentColor"><animate attributeName="opacity" from="0" to="1" dur="1s" begin="0.2" repeatCount="indefinite" keyTimes="0;0.5;1" values="0;1;1"></animate></path></g>';createComponent({name:"QSpinnerRadio",props:useSpinnerProps,setup(e){const{cSize:t,classes:n}=useSpinner(e);return()=>h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",innerHTML:innerHTML20})}});var innerHTML21='<g fill="none" fill-rule="evenodd" transform="translate(1 1)" stroke-width="2"><circle cx="22" cy="22" r="6"><animate attributeName="r" begin="1.5s" dur="3s" values="6;22" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="stroke-opacity" begin="1.5s" dur="3s" values="1;0" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="stroke-width" begin="1.5s" dur="3s" values="2;0" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="22" cy="22" r="6"><animate attributeName="r" begin="3s" dur="3s" values="6;22" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="stroke-opacity" begin="3s" dur="3s" values="1;0" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="stroke-width" begin="3s" dur="3s" values="2;0" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="22" cy="22" r="8"><animate attributeName="r" begin="0s" dur="1.5s" values="6;1;2;3;4;5;6" calcMode="linear" repeatCount="indefinite"></animate></circle></g>';createComponent({name:"QSpinnerRings",props:useSpinnerProps,setup(e){const{cSize:t,classes:n}=useSpinner(e);return()=>h("svg",{class:n.value,stroke:"currentColor",width:t.value,height:t.value,viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",innerHTML:innerHTML21})}});var innerHTML22='<defs><linearGradient x1="8.042%" y1="0%" x2="65.682%" y2="23.865%" id="a"><stop stop-color="currentColor" stop-opacity="0" offset="0%"></stop><stop stop-color="currentColor" stop-opacity=".631" offset="63.146%"></stop><stop stop-color="currentColor" offset="100%"></stop></linearGradient></defs><g transform="translate(1 1)" fill="none" fill-rule="evenodd"><path d="M36 18c0-9.94-8.06-18-18-18" stroke="url(#a)" stroke-width="2"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="0.9s" repeatCount="indefinite"></animateTransform></path><circle fill="currentColor" cx="36" cy="18" r="1"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="0.9s" repeatCount="indefinite"></animateTransform></circle></g>';createComponent({name:"QSpinnerTail",props:useSpinnerProps,setup(e){const{cSize:t,classes:n}=useSpinner(e);return()=>h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",innerHTML:innerHTML22})}}),createComponent({name:"QSplitter",props:{...useDarkProps,modelValue:{type:Number,required:!0},reverse:Boolean,unit:{type:String,default:"%",validator:e=>["%","px"].includes(e)},limits:{type:Array,validator:e=>2===e.length&&("number"==typeof e[0]&&"number"==typeof e[1]&&(e[0]>=0&&e[0]<=e[1]))},emitImmediately:Boolean,horizontal:Boolean,disable:Boolean,beforeClass:[Array,String,Object],afterClass:[Array,String,Object],separatorClass:[Array,String,Object],separatorStyle:[Array,String,Object]},emits:["update:modelValue"],setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=getCurrentInstance(),a=use_dark_default(e,o),r=ref(null),i={before:ref(null),after:ref(null)},l=computed((()=>`q-splitter no-wrap ${!0===e.horizontal?"q-splitter--horizontal column":"q-splitter--vertical row"} q-splitter--${!0===e.disable?"disabled":"workable"}`+(!0===a.value?" q-splitter--dark":""))),s=computed((()=>!0===e.horizontal?"height":"width")),u=computed((()=>!0!==e.reverse?"before":"after")),c=computed((()=>void 0!==e.limits?e.limits:"%"===e.unit?[10,90]:[50,1/0]));function d(t){return("%"===e.unit?t:Math.round(t))+e.unit}const p=computed((()=>({[u.value]:{[s.value]:d(e.modelValue)}})));let f,v,m,g,_;function b(t){if(!0===t.isFirst){const t=r.value.getBoundingClientRect()[s.value];return f=!0===e.horizontal?"up":"left",v="%"===e.unit?100:t,m=Math.min(v,c.value[1],Math.max(c.value[0],e.modelValue)),g=(!0!==e.reverse?1:-1)*(!0===e.horizontal?1:!0===o.lang.rtl?-1:1)*("%"===e.unit?0===t?0:100/t:1),void r.value.classList.add("q-splitter--active")}if(!0===t.isFinal)return _!==e.modelValue&&n("update:modelValue",_),void r.value.classList.remove("q-splitter--active");const a=m+g*(t.direction===f?-1:1)*t.distance[!0===e.horizontal?"y":"x"];_=Math.min(v,c.value[1],Math.max(c.value[0],a)),i[u.value].value.style[s.value]=d(_),!0===e.emitImmediately&&e.modelValue!==_&&n("update:modelValue",_)}const y=computed((()=>[[TouchPan_default,b,void 0,{[!0===e.horizontal?"vertical":"horizontal"]:!0,prevent:!0,stop:!0,mouse:!0,mouseAllDir:!0}]]));function w(e,t){e<t[0]?n("update:modelValue",t[0]):e>t[1]&&n("update:modelValue",t[1])}return watch((()=>e.modelValue),(e=>{w(e,c.value)})),watch((()=>e.limits),(()=>{nextTick((()=>{w(e.modelValue,c.value)}))})),()=>{const n=[h("div",{ref:i.before,class:["q-splitter__panel q-splitter__before"+(!0===e.reverse?" col":""),e.beforeClass],style:p.value.before},hSlot(t.before)),h("div",{class:["q-splitter__separator",e.separatorClass],style:e.separatorStyle,"aria-disabled":!0===e.disable?"true":void 0},[hDir("div",{class:"q-splitter__separator-area absolute-full"},hSlot(t.separator),"sep",!0!==e.disable,(()=>y.value))]),h("div",{ref:i.after,class:["q-splitter__panel q-splitter__after"+(!0===e.reverse?"":" col"),e.afterClass],style:p.value.after},hSlot(t.after))];return h("div",{class:l.value,ref:r},hMergeSlot(t.default,n))}}});var StepHeader_default=createComponent({name:"StepHeader",props:{stepper:{},step:{},goToPanel:Function},setup(e,{attrs:t}){const{proxy:{$q:n}}=getCurrentInstance(),o=ref(null),a=computed((()=>e.stepper.modelValue===e.step.name)),r=computed((()=>{const t=e.step.disable;return!0===t||""===t})),i=computed((()=>{const t=e.step.error;return!0===t||""===t})),l=computed((()=>{const t=e.step.done;return!1===r.value&&(!0===t||""===t)})),s=computed((()=>{const t=e.step.headerNav,n=!0===t||""===t||void 0===t;return!1===r.value&&e.stepper.headerNav&&n})),u=computed((()=>e.step.prefix&&(!1===a.value||"none"===e.stepper.activeIcon)&&(!1===i.value||"none"===e.stepper.errorIcon)&&(!1===l.value||"none"===e.stepper.doneIcon))),c=computed((()=>{const t=e.step.icon||e.stepper.inactiveIcon;if(!0===a.value){const o=e.step.activeIcon||e.stepper.activeIcon;return"none"===o?t:o||n.iconSet.stepper.active}if(!0===i.value){const o=e.step.errorIcon||e.stepper.errorIcon;return"none"===o?t:o||n.iconSet.stepper.error}if(!1===r.value&&!0===l.value){const o=e.step.doneIcon||e.stepper.doneIcon;return"none"===o?t:o||n.iconSet.stepper.done}return t})),d=computed((()=>{const t=!0===i.value?e.step.errorColor||e.stepper.errorColor:void 0;if(!0===a.value){const n=e.step.activeColor||e.stepper.activeColor||e.step.color;return void 0!==n?n:t}return void 0!==t?t:!1===r.value&&!0===l.value?e.step.doneColor||e.stepper.doneColor||e.step.color||e.stepper.inactiveColor:e.step.color||e.stepper.inactiveColor})),p=computed((()=>"q-stepper__tab col-grow flex items-center no-wrap relative-position"+(void 0!==d.value?` text-${d.value}`:"")+(!0===i.value?" q-stepper__tab--error q-stepper__tab--error-with-"+(!0===u.value?"prefix":"icon"):"")+(!0===a.value?" q-stepper__tab--active":"")+(!0===l.value?" q-stepper__tab--done":"")+(!0===s.value?" q-stepper__tab--navigation q-focusable q-hoverable":"")+(!0===r.value?" q-stepper__tab--disabled":""))),f=computed((()=>!0===e.stepper.headerNav&&s.value));function v(){null!==o.value&&o.value.focus(),!1===a.value&&e.goToPanel(e.step.name)}function m(t){13===t.keyCode&&!1===a.value&&e.goToPanel(e.step.name)}return()=>{const n={class:p.value};!0===s.value&&(n.onClick=v,n.onKeyup=m,Object.assign(n,!0===r.value?{tabindex:-1,"aria-disabled":"true"}:{tabindex:t.tabindex||0}));const a=[h("div",{class:"q-focus-helper",tabindex:-1,ref:o}),h("div",{class:"q-stepper__dot row flex-center q-stepper__line relative-position"},[h("span",{class:"row flex-center"},[!0===u.value?e.step.prefix:h(QIcon_default,{name:c.value})])])];if(void 0!==e.step.title&&null!==e.step.title){const t=[h("div",{class:"q-stepper__title"},e.step.title)];void 0!==e.step.caption&&null!==e.step.caption&&t.push(h("div",{class:"q-stepper__caption"},e.step.caption)),a.push(h("div",{class:"q-stepper__label q-stepper__line relative-position"},t))}return withDirectives(h("div",n,a),[[Ripple_default,f.value]])}}});function getStepWrapper(e){return h("div",{class:"q-stepper__step-content"},[h("div",{class:"q-stepper__step-inner"},hSlot(e.default))])}var PanelWrapper2={setup:(e,{slots:t})=>()=>getStepWrapper(t)};createComponent({name:"QStep",props:{...usePanelChildProps,icon:String,color:String,title:{type:String,required:!0},caption:String,prefix:[String,Number],doneIcon:String,doneColor:String,activeIcon:String,activeColor:String,errorIcon:String,errorColor:String,headerNav:{type:Boolean,default:!0},done:Boolean,error:Boolean,onScroll:[Function,Array]},setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=getCurrentInstance(),a=inject(stepperKey,emptyRenderFn);if(a===emptyRenderFn)return console.error("QStep needs to be a child of QStepper"),emptyRenderFn;const{getCache:r}=use_render_cache_default(),i=ref(null),l=computed((()=>a.value.modelValue===e.name)),s=computed((()=>!0!==o.platform.is.ios&&!0===o.platform.is.chrome||!0!==l.value||!0!==a.value.vertical?{}:{onScroll(t){const{target:o}=t;o.scrollTop>0&&(o.scrollTop=0),void 0!==e.onScroll&&n("scroll",t)}})),u=computed((()=>"string"==typeof e.name||"number"==typeof e.name?e.name:String(e.name)));function c(){const e=a.value.vertical;return!0===e&&!0===a.value.keepAlive?h(KeepAlive,a.value.keepAliveProps.value,!0===l.value?[h(!0===a.value.needsUniqueKeepAliveWrapper.value?r(u.value,(()=>({...PanelWrapper2,name:u.value}))):PanelWrapper2,{key:u.value},t.default)]:void 0):!0!==e||!0===l.value?getStepWrapper(t):void 0}return()=>h("div",{ref:i,class:"q-stepper__step",role:"tabpanel",...s.value},!0===a.value.vertical?[h(StepHeader_default,{stepper:a.value,step:e,goToPanel:a.value.goToPanel}),!0===a.value.animated?h(QSlideTransition_default,c):c()]:[c()])}});var camelRE=/(-\w)/g;function camelizeProps(e){const t={};for(const n in e){t[n.replace(camelRE,(e=>e[1].toUpperCase()))]=e[n]}return t}createComponent({name:"QStepper",props:{...useDarkProps,...usePanelProps,flat:Boolean,bordered:Boolean,alternativeLabels:Boolean,headerNav:Boolean,contracted:Boolean,headerClass:String,inactiveColor:String,inactiveIcon:String,doneIcon:String,doneColor:String,activeIcon:String,activeColor:String,errorIcon:String,errorColor:String},emits:usePanelEmits,setup(e,{slots:t}){const n=getCurrentInstance(),o=use_dark_default(e,n.proxy.$q),{updatePanelsList:a,isValidPanelName:r,updatePanelIndex:i,getPanelContent:l,getPanels:s,panelDirectives:u,goToPanel:c,keepAliveProps:d,needsUniqueKeepAliveWrapper:p}=use_panel_default();provide(stepperKey,computed((()=>({goToPanel:c,keepAliveProps:d,needsUniqueKeepAliveWrapper:p,...e}))));const f=computed((()=>"q-stepper q-stepper--"+(!0===e.vertical?"vertical":"horizontal")+(!0===e.flat?" q-stepper--flat":"")+(!0===e.bordered?" q-stepper--bordered":"")+(!0===o.value?" q-stepper--dark q-dark":""))),v=computed((()=>`q-stepper__header row items-stretch justify-between q-stepper__header--${!0===e.alternativeLabels?"alternative":"standard"}-labels`+(!1===e.flat||!0===e.bordered?" q-stepper__header--border":"")+(!0===e.contracted?" q-stepper__header--contracted":"")+(void 0!==e.headerClass?` ${e.headerClass}`:"")));return()=>(a(t),h("div",{class:f.value},hMergeSlot(t.navigation,function(){const n=hSlot(t.message,[]);if(!0===e.vertical){r(e.modelValue)&&i();const o=h("div",{class:"q-stepper__content"},hSlot(t.default));return void 0===n?[o]:n.concat(o)}return[h("div",{class:v.value},s().map((t=>{const n=camelizeProps(t.props);return h(StepHeader_default,{key:n.name,stepper:e,step:n,goToPanel:c})}))),n,hDir("div",{class:"q-stepper__content q-panel-parent"},l(),"cont",e.swipeable,(()=>u.value))]}())))}}),createComponent({name:"QStepperNavigation",setup:(e,{slots:t})=>()=>h("div",{class:"q-stepper__nav"},hSlot(t.default))});var QTh_default=createComponent({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(e,{slots:t,emit:n}){const o=getCurrentInstance(),{proxy:{$q:a}}=o,r=e=>{n("click",e)};return()=>{if(void 0===e.props)return h("th",{class:!0===e.autoWidth?"q-table--col-auto-width":"",onClick:r},hSlot(t.default));let n,i;const l=o.vnode.key;if(l){if(n=e.props.colsMap[l],void 0===n)return}else n=e.props.col;if(!0===n.sortable){const e="right"===n.align?"unshift":"push";i=hUniqueSlot(t.default,[]),i[e](h(QIcon_default,{class:n.__iconClass,name:a.iconSet.table.arrowUp}))}else i=hSlot(t.default);const s={class:n.__thClass+(!0===e.autoWidth?" q-table--col-auto-width":""),style:n.headerStyle,onClick:t=>{!0===n.sortable&&e.props.sort(n),r(t)}};return h("th",s,i)}}});function get_table_middle_default(e,t){return h("div",e,[h("table",{class:"q-table"},t)])}var comps={list:QList_default,table:QMarkupTable_default},typeOptions=["list","table","__qtable"],QVirtualScroll_default=createComponent({name:"QVirtualScroll",props:{...useVirtualScrollProps,type:{type:String,default:"list",validator:e=>typeOptions.includes(e)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:scrollTargetProp},setup(e,{slots:t,attrs:n}){let o;const a=ref(null),r=computed((()=>e.itemsSize>=0&&void 0!==e.itemsFn?parseInt(e.itemsSize,10):Array.isArray(e.items)?e.items.length:0)),{virtualScrollSliceRange:i,localResetVirtualScroll:l,padVirtualScroll:s,onVirtualScrollEvt:u}=useVirtualScroll({virtualScrollLength:r,getVirtualScrollTarget:function(){return o},getVirtualScrollEl:f}),c=computed((()=>{if(0===r.value)return[];const t=(e,t)=>({index:i.value.from+t,item:e});return void 0===e.itemsFn?e.items.slice(i.value.from,i.value.to).map(t):e.itemsFn(i.value.from,i.value.to-i.value.from).map(t)})),d=computed((()=>"q-virtual-scroll q-virtual-scroll"+(!0===e.virtualScrollHorizontal?"--horizontal":"--vertical")+(void 0!==e.scrollTarget?"":" scroll"))),p=computed((()=>void 0!==e.scrollTarget?{}:{tabindex:0}));function f(){return a.value.$el||a.value}function v(){o=getScrollTarget(f(),e.scrollTarget),o.addEventListener("scroll",u,listenOpts.passive)}function m(){void 0!==o&&(o.removeEventListener("scroll",u,listenOpts.passive),o=void 0)}function g(){let n=s("list"===e.type?"div":"tbody",c.value.map(t.default));return void 0!==t.before&&(n=t.before().concat(n)),hMergeSlot(t.after,n)}return watch(r,(()=>{l()})),watch((()=>e.scrollTarget),(()=>{m(),v()})),onBeforeMount((()=>{l()})),onMounted((()=>{v()})),onActivated((()=>{v()})),onDeactivated((()=>{m()})),onBeforeUnmount((()=>{m()})),()=>{if(void 0!==t.default)return"__qtable"===e.type?get_table_middle_default({ref:a,class:"q-table__middle "+d.value},g()):h(comps[e.type],{...n,ref:a,class:[n.class,d.value],...p.value},g);console.error("QVirtualScroll: default scoped slot is required for rendering")}}});function sortDate(e,t){return new Date(e)-new Date(t)}var useTableSortProps={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:e=>"ad"===e||"da"===e,default:"ad"}};function useTableSort(e,t,n,o){return{columnToSort:computed((()=>{const{sortBy:e}=t.value;return e&&n.value.find((t=>t.name===e))||null})),computedSortMethod:computed((()=>void 0!==e.sortMethod?e.sortMethod:(e,t,o)=>{const a=n.value.find((e=>e.name===t));if(void 0===a||void 0===a.field)return e;const r=!0===o?-1:1,i="function"==typeof a.field?e=>a.field(e):e=>e[a.field];return e.sort(((e,t)=>{let n=i(e),o=i(t);return void 0!==a.rawSort?a.rawSort(n,o,e,t)*r:null==n?-1*r:null==o?1*r:void 0!==a.sort?a.sort(n,o,e,t)*r:!0===isNumber(n)&&!0===isNumber(o)?(n-o)*r:!0===isDate(n)&&!0===isDate(o)?sortDate(n,o)*r:"boolean"==typeof n&&"boolean"==typeof o?(n-o)*r:([n,o]=[n,o].map((e=>(e+"").toLocaleString().toLowerCase())),n<o?-1*r:n===o?0:r)}))})),sort:function(a){let r=e.columnSortOrder;if(!0===isObject(a))a.sortOrder&&(r=a.sortOrder),a=a.name;else{const e=n.value.find((e=>e.name===a));void 0!==e&&e.sortOrder&&(r=e.sortOrder)}let{sortBy:i,descending:l}=t.value;i!==a?(i=a,l="da"===r):!0===e.binaryStateSort?l=!l:!0===l?"ad"===r?i=null:l=!1:"ad"===r?l=!0:i=null,o({sortBy:i,descending:l,page:1})}}}var useTableFilterProps={filter:[String,Object],filterMethod:Function};function useTableFilter(e,t){const n=computed((()=>void 0!==e.filterMethod?e.filterMethod:(e,t,n,o)=>{const a=t?t.toLowerCase():"";return e.filter((e=>n.some((t=>{const n=o(t,e)+"";return-1!==("undefined"===n||"null"===n?"":n.toLowerCase()).indexOf(a)}))))}));return watch((()=>e.filter),(()=>{nextTick((()=>{t({page:1},!0)}))}),{deep:!0}),{computedFilterMethod:n}}function samePagination(e,t){for(const n in t)if(t[n]!==e[n])return!1;return!0}function fixPagination(e){return e.page<1&&(e.page=1),void 0!==e.rowsPerPage&&e.rowsPerPage<1&&(e.rowsPerPage=0),e}var useTablePaginationProps={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function useTablePaginationState(e,t){const{props:n,emit:o}=e,a=ref(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:0!==n.rowsPerPageOptions.length?n.rowsPerPageOptions[0]:5},n.pagination)),r=computed((()=>fixPagination(void 0!==n["onUpdate:pagination"]?{...a.value,...n.pagination}:a.value))),i=computed((()=>void 0!==r.value.rowsNumber));function l(e){s({pagination:e,filter:n.filter})}function s(e={}){nextTick((()=>{o("request",{pagination:e.pagination||r.value,filter:e.filter||n.filter,getCellValue:t})}))}return{innerPagination:a,computedPagination:r,isServerSide:i,requestServerInteraction:s,setPagination:function(e,t){const s=fixPagination({...r.value,...e});!0!==samePagination(r.value,s)?!0!==i.value?void 0!==n.pagination&&void 0!==n["onUpdate:pagination"]?o("update:pagination",s):a.value=s:l(s):!0===i.value&&!0===t&&l(s)}}}function useTablePagination(e,t,n,o,a,r){const{props:i,emit:l,proxy:{$q:s}}=e,u=computed((()=>!0===o.value?n.value.rowsNumber||0:r.value)),c=computed((()=>{const{page:e,rowsPerPage:t}=n.value;return(e-1)*t})),d=computed((()=>{const{page:e,rowsPerPage:t}=n.value;return e*t})),p=computed((()=>1===n.value.page)),h=computed((()=>0===n.value.rowsPerPage?1:Math.max(1,Math.ceil(u.value/n.value.rowsPerPage)))),f=computed((()=>0===d.value||n.value.page>=h.value)),v=computed((()=>(i.rowsPerPageOptions.includes(t.value.rowsPerPage)?i.rowsPerPageOptions:[t.value.rowsPerPage].concat(i.rowsPerPageOptions)).map((e=>({label:0===e?s.lang.table.allRows:""+e,value:e})))));return watch(h,((e,t)=>{if(e===t)return;const o=n.value.page;e&&!o?a({page:1}):e<o&&a({page:e})})),void 0!==i["onUpdate:pagination"]&&l("update:pagination",{...n.value}),{firstRowIndex:c,lastRowIndex:d,isFirstPage:p,isLastPage:f,pagesNumber:h,computedRowsPerPageOptions:v,computedRowsNumber:u,firstPage:function(){a({page:1})},prevPage:function(){const{page:e}=n.value;e>1&&a({page:e-1})},nextPage:function(){const{page:e,rowsPerPage:t}=n.value;d.value>0&&e*t<u.value&&a({page:e+1})},lastPage:function(){a({page:h.value})}}}var useTableRowSelectionProps={selection:{type:String,default:"none",validator:e=>["single","multiple","none"].includes(e)},selected:{type:Array,default:()=>[]}},useTableRowSelectionEmits=["update:selected","selection"];function useTableRowSelection(e,t,n,o){const a=computed((()=>{const t={};return e.selected.map(o.value).forEach((e=>{t[e]=!0})),t})),r=computed((()=>"none"!==e.selection)),i=computed((()=>"single"===e.selection)),l=computed((()=>"multiple"===e.selection)),s=computed((()=>0!==n.value.length&&n.value.every((e=>!0===a.value[o.value(e)])))),u=computed((()=>!0!==s.value&&n.value.some((e=>!0===a.value[o.value(e)])))),c=computed((()=>e.selected.length));return{hasSelectionMode:r,singleSelection:i,multipleSelection:l,allRowsSelected:s,someRowsSelected:u,rowsSelectedNumber:c,isRowSelected:function(e){return!0===a.value[e]},clearSelection:function(){t("update:selected",[])},updateSelection:function(n,a,r,l){t("selection",{rows:a,added:r,keys:n,evt:l});const s=!0===i.value?!0===r?a:[]:!0===r?e.selected.concat(a):e.selected.filter((e=>!1===n.includes(o.value(e))));t("update:selected",s)}}}function getVal(e){return Array.isArray(e)?e.slice():[]}var useTableRowExpandProps={expanded:Array},useTableRowExpandEmits=["update:expanded"];function useTableRowExpand(e,t){const n=ref(getVal(e.expanded));function o(o){void 0!==e.expanded?t("update:expanded",o):n.value=o}return watch((()=>e.expanded),(e=>{n.value=getVal(e)})),{isRowExpanded:function(e){return n.value.includes(e)},setExpanded:o,updateExpanded:function(e,t){const a=n.value.slice(),r=a.indexOf(e);!0===t?-1===r&&(a.push(e),o(a)):-1!==r&&(a.splice(r,1),o(a))}}}var useTableColumnSelectionProps={visibleColumns:Array};function useTableColumnSelection(e,t,n){const o=computed((()=>{if(void 0!==e.columns)return e.columns;const t=e.rows[0];return void 0!==t?Object.keys(t).map((e=>({name:e,label:e.toUpperCase(),field:e,align:isNumber(t[e])?"right":"left",sortable:!0}))):[]})),a=computed((()=>{const{sortBy:n,descending:a}=t.value;return(void 0!==e.visibleColumns?o.value.filter((t=>!0===t.required||!0===e.visibleColumns.includes(t.name))):o.value).map((e=>{const t=e.align||"right",o=`text-${t}`;return{...e,align:t,__iconClass:`q-table__sort-icon q-table__sort-icon--${t}`,__thClass:o+(void 0!==e.headerClasses?" "+e.headerClasses:"")+(!0===e.sortable?" sortable":"")+(e.name===n?" sorted "+(!0===a?"sort-desc":""):""),__tdStyle:void 0!==e.style?"function"!=typeof e.style?()=>e.style:e.style:()=>null,__tdClass:void 0!==e.classes?"function"!=typeof e.classes?()=>o+" "+e.classes:t=>o+" "+e.classes(t):()=>o}}))})),r=computed((()=>{const e={};return a.value.forEach((t=>{e[t.name]=t})),e})),i=computed((()=>void 0!==e.tableColspan?e.tableColspan:a.value.length+(!0===n.value?1:0)));return{colList:o,computedCols:a,computedColsMap:r,computedColspan:i}}var bottomClass="q-table__bottom row items-center",virtScrollPassthroughProps={};function getViewByModel(e,t){if(null!==e.hour){if(null===e.minute)return"minute";if(!0===t&&null===e.second)return"second"}return"hour"}function getCurrentTime(){const e=new Date;return{hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds(),millisecond:e.getMilliseconds()}}commonVirtScrollPropsList.forEach((e=>{virtScrollPassthroughProps[e]={}})),createComponent({name:"QTable",props:{rows:{type:Array,required:!0},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:e=>["horizontal","vertical","cell","none"].includes(e)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{},...virtScrollPassthroughProps,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...useDarkProps,...useFullscreenProps,...useTableColumnSelectionProps,...useTableFilterProps,...useTablePaginationProps,...useTableRowExpandProps,...useTableRowSelectionProps,...useTableSortProps},emits:["request","virtualScroll",...useFullscreenEmits,...useTableRowExpandEmits,...useTableRowSelectionEmits],setup(e,{slots:t,emit:n}){const o=getCurrentInstance(),{proxy:{$q:a}}=o,r=use_dark_default(e,a),{inFullscreen:i,toggleFullscreen:l}=use_fullscreen_default(),s=computed((()=>"function"==typeof e.rowKey?e.rowKey:t=>t[e.rowKey])),u=ref(null),c=ref(null),d=computed((()=>!0!==e.grid&&!0===e.virtualScroll)),p=computed((()=>" q-table__card"+(!0===r.value?" q-table__card--dark q-dark":"")+(!0===e.square?" q-table--square":"")+(!0===e.flat?" q-table--flat":"")+(!0===e.bordered?" q-table--bordered":""))),f=computed((()=>`q-table__container q-table--${e.separator}-separator column no-wrap`+(!0===e.grid?" q-table--grid":p.value)+(!0===r.value?" q-table--dark":"")+(!0===e.dense?" q-table--dense":"")+(!1===e.wrapCells?" q-table--no-wrap":"")+(!0===i.value?" fullscreen scroll":""))),v=computed((()=>f.value+(!0===e.loading?" q-table--loading":"")));watch((()=>e.tableStyle+e.tableClass+e.tableHeaderStyle+e.tableHeaderClass+f.value),(()=>{!0===d.value&&null!==c.value&&c.value.reset()}));const{innerPagination:m,computedPagination:g,isServerSide:_,requestServerInteraction:b,setPagination:y}=useTablePaginationState(o,ce),{computedFilterMethod:w}=useTableFilter(e,y),{isRowExpanded:C,setExpanded:S,updateExpanded:k}=useTableRowExpand(e,n),x=computed((()=>{let t=e.rows;if(!0===_.value||0===t.length)return t;const{sortBy:n,descending:o}=g.value;return e.filter&&(t=w.value(t,e.filter,R.value,ce)),null!==z.value&&(t=F.value(e.rows===t?t.slice():t,n,o)),t})),M=computed((()=>x.value.length)),T=computed((()=>{let t=x.value;if(!0===_.value)return t;const{rowsPerPage:n}=g.value;return 0!==n&&(0===H.value&&e.rows!==t?t.length>U.value&&(t=t.slice(0,U.value)):t=t.slice(H.value,U.value)),t})),{hasSelectionMode:$,singleSelection:E,multipleSelection:N,allRowsSelected:L,someRowsSelected:D,rowsSelectedNumber:B,isRowSelected:q,clearSelection:P,updateSelection:A}=useTableRowSelection(e,n,T,s),{colList:I,computedCols:R,computedColsMap:O,computedColspan:V}=useTableColumnSelection(e,g,$),{columnToSort:z,computedSortMethod:F,sort:j}=useTableSort(e,g,I,y),{firstRowIndex:H,lastRowIndex:U,isFirstPage:Q,isLastPage:Y,pagesNumber:W,computedRowsPerPageOptions:K,computedRowsNumber:G,firstPage:X,prevPage:Z,nextPage:J,lastPage:ee}=useTablePagination(o,m,g,_,y,M),te=computed((()=>0===T.value.length)),ne=computed((()=>{const t={};return commonVirtScrollPropsList.forEach((n=>{t[n]=e[n]})),void 0===t.virtualScrollItemSize&&(t.virtualScrollItemSize=!0===e.dense?28:48),t}));function oe(){if(!0===e.grid)return function(){const o=void 0!==t.item?t.item:o=>{const a=o.cols.map((e=>h("div",{class:"q-table__grid-item-row"},[h("div",{class:"q-table__grid-item-title"},[e.label]),h("div",{class:"q-table__grid-item-value"},[e.value])])));if(!0===$.value){const n=t["body-selection"],i=void 0!==n?n(o):[h(QCheckbox_default,{modelValue:o.selected,color:e.color,dark:r.value,dense:e.dense,"onUpdate:modelValue":(e,t)=>{A([o.key],[o.row],e,t)}})];a.unshift(h("div",{class:"q-table__grid-item-row"},i),h(QSeparator_default,{dark:r.value}))}const i={class:["q-table__grid-item-card"+p.value,e.cardClass],style:e.cardStyle};return void 0===e.onRowClick&&void 0===e.onRowDblclick||(i.class[0]+=" cursor-pointer",void 0!==e.onRowClick&&(i.onClick=e=>{n("RowClick",e,o.row,o.pageIndex)}),void 0!==e.onRowDblclick&&(i.onDblclick=e=>{n("RowDblclick",e,o.row,o.pageIndex)})),h("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(!0===o.selected?" q-table__grid-item--selected":"")},[h("div",i,a)])};return h("div",{class:["q-table__grid-content row",e.cardContainerClass],style:e.cardContainerStyle},T.value.map(((e,t)=>o(se({key:s.value(e),row:e,pageIndex:t})))))}();const o=!0!==e.hideHeader?fe:null;if(!0===d.value){const n=t["top-row"],a=t["bottom-row"],r={default:e=>ie(e.item,t.body,e.index)};if(void 0!==n){const e=h("tbody",n({cols:R.value}));r.before=null===o?()=>e:()=>[o()].concat(e)}else null!==o&&(r.before=o);return void 0!==a&&(r.after=()=>h("tbody",a({cols:R.value}))),h(QVirtualScroll_default,{ref:c,class:e.tableClass,style:e.tableStyle,...ne.value,scrollTarget:e.virtualScrollTarget,items:T.value,type:"__qtable",tableColspan:V.value,onVirtualScroll:ae},r)}const a=[le()];return null!==o&&a.unshift(o()),get_table_middle_default({class:["q-table__middle scroll",e.tableClass],style:e.tableStyle},a)}function ae(e){n("virtualScroll",e)}function re(){return[h(QLinearProgress_default,{class:"q-table__linear-progress",color:e.color,dark:r.value,indeterminate:!0,trackColor:"transparent"})]}function ie(o,a,i){const l=s.value(o),u=q(l);if(void 0!==a)return a(se({key:l,row:o,pageIndex:i,__trClass:u?"selected":""}));const c=t["body-cell"],d=R.value.map((e=>{const n=t[`body-cell-${e.name}`],a=void 0!==n?n:c;return void 0!==a?a(function(e){return ue(e),injectProp(e,"value",(()=>ce(e.col,e.row))),e}({key:l,row:o,pageIndex:i,col:e})):h("td",{class:e.__tdClass(o),style:e.__tdStyle(o)},ce(e,o))}));if(!0===$.value){const n=t["body-selection"],a=void 0!==n?n(function(e){return ue(e),e}({key:l,row:o,pageIndex:i})):[h(QCheckbox_default,{modelValue:u,color:e.color,dark:r.value,dense:e.dense,"onUpdate:modelValue":(e,t)=>{A([l],[o],e,t)}})];d.unshift(h("td",{class:"q-table--col-auto-width"},a))}const p={key:l,class:{selected:u}};return void 0!==e.onRowClick&&(p.class["cursor-pointer"]=!0,p.onClick=e=>{n("rowClick",e,o,i)}),void 0!==e.onRowDblclick&&(p.class["cursor-pointer"]=!0,p.onDblclick=e=>{n("rowDblclick",e,o,i)}),void 0!==e.onRowContextmenu&&(p.class["cursor-pointer"]=!0,p.onContextmenu=e=>{n("rowContextmenu",e,o,i)}),h("tr",p,d)}function le(){const e=t.body,n=t["top-row"],o=t["bottom-row"];let a=T.value.map(((t,n)=>ie(t,e,n)));return void 0!==n&&(a=n({cols:R.value}).concat(a)),void 0!==o&&(a=a.concat(o({cols:R.value}))),h("tbody",a)}function se(e){return ue(e),e.cols=e.cols.map((t=>injectProp({...t},"value",(()=>ce(t,e.row))))),e}function ue(t){Object.assign(t,{cols:R.value,colsMap:O.value,sort:j,rowIndex:H.value+t.pageIndex,color:e.color,dark:r.value,dense:e.dense}),!0===$.value&&injectProp(t,"selected",(()=>q(t.key)),((e,n)=>{A([t.key],[t.row],e,n)})),injectProp(t,"expand",(()=>C(t.key)),(e=>{k(t.key,e)}))}function ce(e,t){const n="function"==typeof e.field?e.field(t):t[e.field];return void 0!==e.format?e.format(n,t):n}const de=computed((()=>({pagination:g.value,pagesNumber:W.value,isFirstPage:Q.value,isLastPage:Y.value,firstPage:X,prevPage:Z,nextPage:J,lastPage:ee,inFullscreen:i.value,toggleFullscreen:l})));function pe(){const n=t.top,o=t["top-left"],a=t["top-right"],r=t["top-selection"],i=!0===$.value&&void 0!==r&&B.value>0,l="q-table__top relative-position row items-center";if(void 0!==n)return h("div",{class:l},[n(de.value)]);let s;return!0===i?s=r(de.value).slice():(s=[],void 0!==o?s.push(h("div",{class:"q-table__control"},[o(de.value)])):e.title&&s.push(h("div",{class:"q-table__control"},[h("div",{class:["q-table__title",e.titleClass]},e.title)]))),void 0!==a&&(s.push(h("div",{class:"q-table__separator col"})),s.push(h("div",{class:"q-table__control"},[a(de.value)]))),0!==s.length?h("div",{class:l},s):void 0}const he=computed((()=>!0===D.value?null:L.value));function fe(){const n=function(){const n=t.header,o=t["header-cell"];if(void 0!==n)return n(ve({header:!0})).slice();const a=R.value.map((e=>{const n=t[`header-cell-${e.name}`],a=void 0!==n?n:o,r=ve({col:e});return void 0!==a?a(r):h(QTh_default,{key:e.name,props:r},(()=>e.label))}));if(!0===E.value&&!0!==e.grid)a.unshift(h("th",{class:"q-table--col-auto-width"}," "));else if(!0===N.value){const n=t["header-selection"],o=void 0!==n?n(ve({})):[h(QCheckbox_default,{color:e.color,modelValue:he.value,dark:r.value,dense:e.dense,"onUpdate:modelValue":me})];a.unshift(h("th",{class:"q-table--col-auto-width"},o))}return[h("tr",{class:e.tableHeaderClass,style:e.tableHeaderStyle},a)]}();return!0===e.loading&&void 0===t.loading&&n.push(h("tr",{class:"q-table__progress"},[h("th",{class:"relative-position",colspan:V.value},re())])),h("thead",n)}function ve(t){return Object.assign(t,{cols:R.value,sort:j,colsMap:O.value,color:e.color,dark:r.value,dense:e.dense}),!0===N.value&&injectProp(t,"selected",(()=>he.value),me),t}function me(e){!0===D.value&&(e=!1),A(T.value.map(s.value),T.value,e)}const ge=computed((()=>{const t=[e.iconFirstPage||a.iconSet.table.firstPage,e.iconPrevPage||a.iconSet.table.prevPage,e.iconNextPage||a.iconSet.table.nextPage,e.iconLastPage||a.iconSet.table.lastPage];return!0===a.lang.rtl?t.reverse():t}));function _e(){if(!0===e.hideBottom)return;if(!0===te.value){if(!0===e.hideNoData)return;const n=!0===e.loading?e.loadingLabel||a.lang.table.loading:e.filter?e.noResultsLabel||a.lang.table.noResults:e.noDataLabel||a.lang.table.noData,o=t["no-data"],r=void 0!==o?[o({message:n,icon:a.iconSet.table.warning,filter:e.filter})]:[h(QIcon_default,{class:"q-table__bottom-nodata-icon",name:a.iconSet.table.warning}),n];return h("div",{class:bottomClass+" q-table__bottom--nodata"},r)}const n=t.bottom;if(void 0!==n)return h("div",{class:bottomClass},[n(de.value)]);const o=!0!==e.hideSelectedBanner&&!0===$.value&&B.value>0?[h("div",{class:"q-table__control"},[h("div",[(e.selectedRowsLabel||a.lang.table.selectedRecords)(B.value)])])]:[];return!0!==e.hidePagination?h("div",{class:bottomClass+" justify-end"},function(n){let o;const{rowsPerPage:i}=g.value,l=e.paginationLabel||a.lang.table.pagination,s=t.pagination,u=e.rowsPerPageOptions.length>1;n.push(h("div",{class:"q-table__separator col"})),!0===u&&n.push(h("div",{class:"q-table__control"},[h("span",{class:"q-table__bottom-item"},[e.rowsPerPageLabel||a.lang.table.recordsPerPage]),h(QSelect_default,{class:"q-table__select inline q-table__bottom-item",color:e.color,modelValue:i,options:K.value,displayValue:0===i?a.lang.table.allRows:i,dark:r.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":be})]));if(void 0!==s)o=s(de.value);else if(o=[h("span",0!==i?{class:"q-table__bottom-item"}:{},[i?l(H.value+1,Math.min(U.value,G.value),G.value):l(1,M.value,G.value)])],0!==i&&W.value>1){const t={color:e.color,round:!0,dense:!0,flat:!0};!0===e.dense&&(t.size="sm"),W.value>2&&o.push(h(QBtn_default,{key:"pgFirst",...t,icon:ge.value[0],disable:Q.value,onClick:X})),o.push(h(QBtn_default,{key:"pgPrev",...t,icon:ge.value[1],disable:Q.value,onClick:Z}),h(QBtn_default,{key:"pgNext",...t,icon:ge.value[2],disable:Y.value,onClick:J})),W.value>2&&o.push(h(QBtn_default,{key:"pgLast",...t,icon:ge.value[3],disable:Y.value,onClick:ee}))}return n.push(h("div",{class:"q-table__control"},o)),n}(o)):0!==o.length?h("div",{class:bottomClass},o):void 0}function be(e){y({page:1,rowsPerPage:e.value})}return Object.assign(o.proxy,{requestServerInteraction:b,setPagination:y,firstPage:X,prevPage:Z,nextPage:J,lastPage:ee,isRowSelected:q,clearSelection:P,isRowExpanded:C,setExpanded:S,sort:j,resetVirtualScroll:function(){!0===d.value&&c.value.reset()},scrollTo:function(t,o){if(null!==c.value)return void c.value.scrollTo(t,o);t=parseInt(t,10);const a=u.value.querySelector(`tbody tr:nth-of-type(${t+1})`);if(null!==a){const o=u.value.querySelector(".q-table__middle.scroll"),r=a.offsetTop-e.virtualScrollStickySizeStart,i=r<o.scrollTop?"decrease":"increase";o.scrollTop=r,n("virtualScroll",{index:t,from:0,to:m.value.rowsPerPage-1,direction:i})}},getCellValue:ce}),injectMultipleProps(o.proxy,{filteredSortedRows:()=>x.value,computedRows:()=>T.value,computedRowsNumber:()=>G.value}),()=>{const n=[pe()],o={ref:u,class:v.value};return!0===e.grid?n.push(function(){const n=!0===e.gridHeader?[h("table",{class:"q-table"},[fe()])]:!0===e.loading&&void 0===t.loading?re():void 0;return h("div",{class:"q-table__middle"},n)}()):Object.assign(o,{class:[o.class,e.cardClass],style:e.cardStyle}),n.push(oe(),_e()),!0===e.loading&&void 0!==t.loading&&n.push(t.loading()),h("div",o,n)}}}),createComponent({name:"QTr",props:{props:Object,noHover:Boolean},setup(e,{slots:t}){const n=computed((()=>"q-tr"+(void 0===e.props||!0===e.props.header?"":" "+e.props.__trClass)+(!0===e.noHover?" q-tr--no-hover":"")));return()=>h("tr",{class:n.value},hSlot(t.default))}}),createComponent({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(e,{slots:t}){const n=getCurrentInstance(),o=computed((()=>"q-td"+(!0===e.autoWidth?" q-table--col-auto-width":"")+(!0===e.noHover?" q-td--no-hover":"")+" "));return()=>{if(void 0===e.props)return h("td",{class:o.value},hSlot(t.default));const a=n.vnode.key,r=(void 0!==e.props.colsMap?e.props.colsMap[a]:null)||e.props.col;if(void 0===r)return;const{row:i}=e.props;return h("td",{class:o.value+r.__tdClass(i),style:r.__tdStyle(i)},hSlot(t.default))}}}),createComponent({name:"QRouteTab",props:{...useRouterLinkProps,...useTabProps},emits:useTabEmits,setup(e,{slots:t,emit:n}){const o=use_router_link_default({useDisableForRouterLinkProps:!1}),{renderTab:a,$tabs:r}=use_tab_default(e,t,n,{exact:computed((()=>e.exact)),...o});return watch((()=>`${e.name} | ${e.exact} | ${(o.resolvedLink.value||{}).href}`),r.verifyRouteModel),()=>a(o.linkTag.value,o.linkAttrs.value)}}),createComponent({name:"QTime",props:{...useDarkProps,...useFormProps,...useDatetimeProps,modelValue:{required:!0,validator:e=>"string"==typeof e||null===e},mask:{...useDatetimeProps.mask,default:null},format24h:{type:Boolean,default:null},defaultDate:{type:String,validator:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e)},options:Function,hourOptions:Array,minuteOptions:Array,secondOptions:Array,withSeconds:Boolean,nowBtn:Boolean},emits:useDatetimeEmits,setup(e,{slots:t,emit:n}){const o=getCurrentInstance(),{$q:a}=o.proxy,r=use_dark_default(e,a),{tabindex:i,headerClass:l,getLocale:s,getCurrentDate:u}=use_datetime_default(e,a),c=useFormInject(useFormAttrs(e));let d,p;const f=ref(null),v=computed((()=>"persian"!==e.calendar&&null!==e.mask?e.mask:"HH:mm"+(!0===e.withSeconds?":ss":""))),m=computed((()=>s())),g=computed((()=>function(){if("string"!=typeof e.defaultDate){const e=u(!0);return e.dateHash=getDayHash(e),e}return __splitDate(e.defaultDate,"YYYY/MM/DD",void 0,e.calendar)}())),_=__splitDate(e.modelValue,v.value,m.value,e.calendar,g.value),b=ref(getViewByModel(_)),y=ref(_),w=ref(null===_.hour||_.hour<12),C=computed((()=>"q-time q-time--"+(!0===e.landscape?"landscape":"portrait")+(!0===r.value?" q-time--dark q-dark":"")+(!0===e.disable?" disabled":!0===e.readonly?" q-time--readonly":"")+(!0===e.bordered?" q-time--bordered":"")+(!0===e.square?" q-time--square no-border-radius":"")+(!0===e.flat?" q-time--flat no-shadow":""))),S=computed((()=>{const e=y.value;return{hour:null===e.hour?"--":!0===k.value?pad(e.hour):String(!0===w.value?0===e.hour?12:e.hour:e.hour>12?e.hour-12:e.hour),minute:null===e.minute?"--":pad(e.minute),second:null===e.second?"--":pad(e.second)}})),k=computed((()=>null!==e.format24h?e.format24h:a.lang.date.format24h)),x=computed((()=>{const e="hour"===b.value,t=!0===e?12:60,n=y.value[b.value];let o=`rotate(${Math.round(n*(360/t))-180}deg) translateX(-50%)`;return!0===e&&!0===k.value&&y.value.hour>=12&&(o+=" scale(.7)"),{transform:o}})),M=computed((()=>null!==y.value.hour)),T=computed((()=>!0===M.value&&null!==y.value.minute)),$=computed((()=>void 0!==e.hourOptions?t=>e.hourOptions.includes(t):void 0!==e.options?t=>e.options(t,null,null):null)),E=computed((()=>void 0!==e.minuteOptions?t=>e.minuteOptions.includes(t):void 0!==e.options?t=>e.options(y.value.hour,t,null):null)),N=computed((()=>void 0!==e.secondOptions?t=>e.secondOptions.includes(t):void 0!==e.options?t=>e.options(y.value.hour,y.value.minute,t):null)),L=computed((()=>{if(null===$.value)return null;const e=R(0,11,$.value),t=R(12,11,$.value);return{am:e,pm:t,values:e.values.concat(t.values)}})),D=computed((()=>null!==E.value?R(0,59,E.value):null)),B=computed((()=>null!==N.value?R(0,59,N.value):null)),q=computed((()=>{switch(b.value){case"hour":return L.value;case"minute":return D.value;case"second":return B.value}})),P=computed((()=>{let e,t,n=0,o=1;const a=null!==q.value?q.value.values:void 0;"hour"===b.value?!0===k.value?(e=0,t=23):(e=0,t=11,!1===w.value&&(n=12)):(e=0,t=55,o=5);const r=[];for(let i=e,l=e;i<=t;i+=o,l++){const e=i+n,t=void 0!==a&&!1===a.includes(e),o="hour"===b.value&&0===i?!0===k.value?"00":"12":i;r.push({val:e,index:l,disable:t,label:o})}return r})),A=computed((()=>[[TouchPan_default,j,void 0,{stop:!0,prevent:!0,mouse:!0}]]));function I(){const e={...u(),...getCurrentTime()};se(e),Object.assign(y.value,e),b.value="hour"}function R(e,t,n){const o=Array.apply(null,{length:t+1}).map(((t,o)=>{const a=o+e;return{index:a,val:!0===n(a)}})).filter((e=>!0===e.val)).map((e=>e.index));return{min:o[0],max:o[o.length-1],values:o,threshold:t+1}}function O(e,t,n){const o=Math.abs(e-t);return Math.min(o,n-o)}function V(e,{min:t,max:n,values:o,threshold:a}){if(e===t)return t;if(e<t||e>n)return O(e,t,a)<=O(e,n,a)?t:n;const r=o.findIndex((t=>e<=t)),i=o[r-1],l=o[r];return e-i<=l-e?i:l}function z(){return!0===vmIsDestroyed(o)||null!==q.value&&(0===q.value.values.length||"hour"===b.value&&!0!==k.value&&0===L.value[!0===w.value?"am":"pm"].values.length)}function F(){const e=f.value,{top:t,left:n,width:o}=e.getBoundingClientRect(),a=o/2;return{top:t+a,left:n+a,dist:.7*a}}function j(e){if(!0!==z()){if(!0===e.isFirst)return d=F(),void(p=U(e.evt,d));p=U(e.evt,d,p),!0===e.isFinal&&(d=!1,p=null,H())}}function H(){"hour"===b.value?b.value="minute":e.withSeconds&&"minute"===b.value&&(b.value="second")}function U(e,t,n){const o=position(e),a=Math.abs(o.top-t.top),r=Math.sqrt(Math.pow(Math.abs(o.top-t.top),2)+Math.pow(Math.abs(o.left-t.left),2));let i,l=Math.asin(a/r)*(180/Math.PI);if(l=o.top<t.top?t.left<o.left?90-l:270+l:t.left<o.left?l+90:270-l,"hour"===b.value){if(i=l/30,null!==L.value){const e=!0!==k.value?!0===w.value:0!==L.value.am.values.length&&0!==L.value.pm.values.length?r>=t.dist:0!==L.value.am.values.length;i=V(i+(!0===e?0:12),L.value[!0===e?"am":"pm"])}else i=Math.round(i),!0===k.value?r<t.dist?i<12&&(i+=12):12===i&&(i=0):!0===w.value&&12===i?i=0:!1===w.value&&12!==i&&(i+=12);!0===k.value&&(w.value=i<12)}else i=Math.round(l/6)%60,"minute"===b.value&&null!==D.value?i=V(i,D.value):"second"===b.value&&null!==B.value&&(i=V(i,B.value));return n!==i&&oe[b.value](i),i}watch((()=>e.modelValue),(t=>{const n=__splitDate(t,v.value,m.value,e.calendar,g.value);n.dateHash===y.value.dateHash&&n.timeHash===y.value.timeHash||(y.value=n,null===n.hour?b.value="hour":w.value=n.hour<12)})),watch([v,m],(()=>{nextTick((()=>{se()}))}));const Q={hour(){b.value="hour"},minute(){b.value="minute"},second(){b.value="second"}};function Y(e){13===e.keyCode&&ae()}function W(e){13===e.keyCode&&re()}function K(e){!0!==z()&&(!0!==a.platform.is.desktop&&U(e,F()),H())}function G(e){!0!==z()&&U(e,F())}function X(e){if(13===e.keyCode)b.value="hour";else if([37,39].includes(e.keyCode)){const t=37===e.keyCode?-1:1;if(null!==L.value){const e=!0===k.value?L.value.values:L.value[!0===w.value?"am":"pm"].values;if(0===e.length)return;if(null===y.value.hour)ee(e[0]);else{const n=(e.length+e.indexOf(y.value.hour)+t)%e.length;ee(e[n])}}else{const e=!0===k.value?24:12;ee((!0!==k.value&&!1===w.value?12:0)+(24+(null===y.value.hour?-t:y.value.hour)+t)%e)}}}function Z(e){if(13===e.keyCode)b.value="minute";else if([37,39].includes(e.keyCode)){const t=37===e.keyCode?-1:1;if(null!==D.value){const e=D.value.values;if(0===e.length)return;if(null===y.value.minute)te(e[0]);else{const n=(e.length+e.indexOf(y.value.minute)+t)%e.length;te(e[n])}}else{te((60+(null===y.value.minute?-t:y.value.minute)+t)%60)}}}function J(e){if(13===e.keyCode)b.value="second";else if([37,39].includes(e.keyCode)){const t=37===e.keyCode?-1:1;if(null!==B.value){const e=B.value.values;if(0===e.length)return;if(null===y.value.seconds)ne(e[0]);else{const n=(e.length+e.indexOf(y.value.second)+t)%e.length;ne(e[n])}}else{ne((60+(null===y.value.second?-t:y.value.second)+t)%60)}}}function ee(e){y.value.hour!==e&&(y.value.hour=e,le())}function te(e){y.value.minute!==e&&(y.value.minute=e,le())}function ne(e){y.value.second!==e&&(y.value.second=e,le())}const oe={hour:ee,minute:te,second:ne};function ae(){!1===w.value&&(w.value=!0,null!==y.value.hour&&(y.value.hour-=12,le()))}function re(){!0===w.value&&(w.value=!1,null!==y.value.hour&&(y.value.hour+=12,le()))}function ie(t){const n=e.modelValue;b.value!==t&&null!=n&&""!==n&&"string"!=typeof n&&(b.value=t)}function le(){return null!==$.value&&!0!==$.value(y.value.hour)?(y.value=__splitDate(),void ie("hour")):null!==E.value&&!0!==E.value(y.value.minute)?(y.value.minute=null,y.value.second=null,void ie("minute")):!0===e.withSeconds&&null!==N.value&&!0!==N.value(y.value.second)?(y.value.second=null,void ie("second")):void(null===y.value.hour||null===y.value.minute||!0===e.withSeconds&&null===y.value.second||se())}function se(t){const o=Object.assign({...y.value},t),a="persian"===e.calendar?pad(o.hour)+":"+pad(o.minute)+(!0===e.withSeconds?":"+pad(o.second):""):formatDate(new Date(o.year,null===o.month?null:o.month-1,o.day,o.hour,o.minute,o.second,o.millisecond),v.value,m.value,o.year,o.timezoneOffset);o.changed=a!==e.modelValue,n("update:modelValue",a,o)}function ue(){const t=[h("div",{class:"q-time__link "+("hour"===b.value?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onClick:Q.hour,onKeyup:X},S.value.hour),h("div",":"),h("div",!0===M.value?{class:"q-time__link "+("minute"===b.value?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onKeyup:Z,onClick:Q.minute}:{class:"q-time__link"},S.value.minute)];!0===e.withSeconds&&t.push(h("div",":"),h("div",!0===T.value?{class:"q-time__link "+("second"===b.value?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onKeyup:J,onClick:Q.second}:{class:"q-time__link"},S.value.second));const n=[h("div",{class:"q-time__header-label row items-center no-wrap",dir:"ltr"},t)];return!1===k.value&&n.push(h("div",{class:"q-time__header-ampm column items-between no-wrap"},[h("div",{class:"q-time__link "+(!0===w.value?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onClick:ae,onKeyup:Y},"AM"),h("div",{class:"q-time__link "+(!0!==w.value?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onClick:re,onKeyup:W},"PM")])),h("div",{class:"q-time__header flex flex-center no-wrap "+l.value},n)}function ce(){const t=y.value[b.value];return h("div",{class:"q-time__content col relative-position"},[h(Transition$1,{name:"q-transition--scale"},(()=>h("div",{key:"clock"+b.value,class:"q-time__container-parent absolute-full"},[h("div",{ref:f,class:"q-time__container-child fit overflow-hidden"},[withDirectives(h("div",{class:"q-time__clock cursor-pointer non-selectable",onClick:K,onMousedown:G},[h("div",{class:"q-time__clock-circle fit"},[h("div",{class:"q-time__clock-pointer"+(null===y.value[b.value]?" hidden":void 0!==e.color?` text-${e.color}`:""),style:x.value}),P.value.map((e=>h("div",{class:`q-time__clock-position row flex-center q-time__clock-pos-${e.index}`+(e.val===t?" q-time__clock-position--active "+l.value:!0===e.disable?" q-time__clock-position--disable":"")},[h("span",e.label)])))])]),A.value)])]))),!0===e.nowBtn?h(QBtn_default,{class:"q-time__now-button absolute",icon:a.iconSet.datetime.now,unelevated:!0,size:"sm",round:!0,color:e.color,textColor:e.textColor,tabindex:i.value,onClick:I}):null])}return o.proxy.setNow=I,()=>{const n=[ce()],o=hSlot(t.default);return void 0!==o&&n.push(h("div",{class:"q-time__actions"},o)),void 0!==e.name&&!0!==e.disable&&c(n,"push"),h("div",{class:C.value,tabindex:-1},[ue(),h("div",{class:"q-time__main col overflow-auto"},n)])}}}),createComponent({name:"QTimeline",props:{...useDarkProps,color:{type:String,default:"primary"},side:{type:String,default:"right",validator:e=>["left","right"].includes(e)},layout:{type:String,default:"dense",validator:e=>["dense","comfortable","loose"].includes(e)}},setup(e,{slots:t}){const n=getCurrentInstance(),o=use_dark_default(e,n.proxy.$q);provide(timelineKey,e);const a=computed((()=>`q-timeline q-timeline--${e.layout} q-timeline--${e.layout}--${e.side}`+(!0===o.value?" q-timeline--dark":"")));return()=>h("ul",{class:a.value},hSlot(t.default))}}),createComponent({name:"QTimelineEntry",props:{heading:Boolean,tag:{type:String,default:"h3"},side:{type:String,default:"right",validator:e=>["left","right"].includes(e)},icon:String,avatar:String,color:String,title:String,subtitle:String,body:String},setup(e,{slots:t}){const n=inject(timelineKey,emptyRenderFn);if(n===emptyRenderFn)return console.error("QTimelineEntry needs to be child of QTimeline"),emptyRenderFn;const o=computed((()=>`q-timeline__entry q-timeline__entry--${e.side}`+(void 0!==e.icon||void 0!==e.avatar?" q-timeline__entry--icon":""))),a=computed((()=>`q-timeline__dot text-${e.color||n.color}`)),r=computed((()=>"comfortable"===n.layout&&"left"===n.side));return()=>{const n=hUniqueSlot(t.default,[]);if(void 0!==e.body&&n.unshift(e.body),!0===e.heading){const t=[h("div"),h("div"),h(e.tag,{class:"q-timeline__heading-title"},n)];return h("div",{class:"q-timeline__heading"},!0===r.value?t.reverse():t)}let i;void 0!==e.icon?i=[h(QIcon_default,{class:"row items-center justify-center",name:e.icon})]:void 0!==e.avatar&&(i=[h("img",{class:"q-timeline__dot-img",src:e.avatar})]);const l=[h("div",{class:"q-timeline__subtitle"},[h("span",{},hSlot(t.subtitle,[e.subtitle]))]),h("div",{class:a.value},i),h("div",{class:"q-timeline__content"},[h("h6",{class:"q-timeline__title"},hSlot(t.title,[e.title]))].concat(n))];return h("li",{class:o.value},!0===r.value?l.reverse():l)}}}),createComponent({name:"QToolbar",props:{inset:Boolean},setup(e,{slots:t}){const n=computed((()=>"q-toolbar row no-wrap items-center"+(!0===e.inset?" q-toolbar--inset":"")));return()=>h("div",{class:n.value,role:"toolbar"},hSlot(t.default))}}),createComponent({name:"QToolbarTitle",props:{shrink:Boolean},setup(e,{slots:t}){const n=computed((()=>"q-toolbar__title ellipsis"+(!0===e.shrink?" col-shrink":"")));return()=>h("div",{class:n.value},hSlot(t.default))}});var tickStrategyOptions=["none","strict","leaf","leaf-filtered"];function getProgressLabel(e){return(100*e).toFixed(2)+"%"}createComponent({name:"QTree",props:{...useDarkProps,nodes:{type:Array,required:!0},nodeKey:{type:String,required:!0},labelKey:{type:String,default:"label"},childrenKey:{type:String,default:"children"},dense:Boolean,color:String,controlColor:String,textColor:String,selectedColor:String,icon:String,tickStrategy:{type:String,default:"none",validator:e=>tickStrategyOptions.includes(e)},ticked:Array,expanded:Array,selected:{},noSelectionUnset:Boolean,defaultExpandAll:Boolean,accordion:Boolean,filter:String,filterMethod:Function,duration:{},noConnectors:Boolean,noTransition:Boolean,noNodesLabel:String,noResultsLabel:String},emits:["update:expanded","update:ticked","update:selected","lazyLoad","afterShow","afterHide"],setup(e,{slots:t,emit:n}){const{proxy:o}=getCurrentInstance(),{$q:a}=o,r=use_dark_default(e,a),i=ref({}),l=ref(e.ticked||[]),s=ref(e.expanded||[]);let u={};onBeforeUpdate((()=>{u={}}));const c=computed((()=>"q-tree q-tree--"+(!0===e.dense?"dense":"standard")+(!0===e.noConnectors?" q-tree--no-connectors":"")+(!0===r.value?" q-tree--dark":"")+(void 0!==e.color?` text-${e.color}`:""))),d=computed((()=>void 0!==e.selected)),p=computed((()=>e.icon||a.iconSet.tree.icon)),f=computed((()=>e.controlColor||e.color)),v=computed((()=>void 0!==e.textColor?` text-${e.textColor}`:"")),m=computed((()=>{const t=e.selectedColor||e.color;return t?` text-${t}`:""})),g=computed((()=>void 0!==e.filterMethod?e.filterMethod:(t,n)=>{const o=n.toLowerCase();return t[e.labelKey]&&-1!==t[e.labelKey].toLowerCase().indexOf(o)})),_=computed((()=>{const t={},n=(o,a)=>{const r=o.tickStrategy||(a?a.tickStrategy:e.tickStrategy),u=o[e.nodeKey],c=o[e.childrenKey]&&Array.isArray(o[e.childrenKey])&&0!==o[e.childrenKey].length,p=!0!==o.disabled&&!0===d.value&&!1!==o.selectable,h=!0!==o.disabled&&!1!==o.expandable,f="none"!==r,v="strict"===r,m="leaf-filtered"===r,_="leaf"===r||"leaf-filtered"===r;let b=!0!==o.disabled&&!1!==o.tickable;!0===_&&!0===b&&a&&!0!==a.tickable&&(b=!1);let y=o.lazy;!0===y&&void 0!==i.value[u]&&!0===Array.isArray(o[e.childrenKey])&&(y=i.value[u]);const w={key:u,parent:a,isParent:c,lazy:y,disabled:o.disabled,link:!0!==o.disabled&&(!0===p||!0===h&&(!0===c||!0===y)),children:[],matchesFilter:!e.filter||g.value(o,e.filter),selected:u===e.selected&&!0===p,selectable:p,expanded:!0===c&&s.value.includes(u),expandable:h,noTick:!0===o.noTick||!0!==v&&y&&"loaded"!==y,tickable:b,tickStrategy:r,hasTicking:f,strictTicking:v,leafFilteredTicking:m,leafTicking:_,ticked:(!0===v||!0!==c)&&l.value.includes(u)};if(t[u]=w,!0===c&&(w.children=o[e.childrenKey].map((e=>n(e,w))),e.filter&&(!0!==w.matchesFilter?w.matchesFilter=w.children.some((e=>e.matchesFilter)):!0!==w.noTick&&!0!==w.disabled&&!0===w.tickable&&!0===m&&!0===w.children.every((e=>!0!==e.matchesFilter||!0===e.noTick||!0!==e.tickable))&&(w.tickable=!1)),!0===w.matchesFilter&&(!0!==w.noTick&&!0!==v&&!0===w.children.every((e=>e.noTick))&&(w.noTick=!0),_))){if(w.ticked=!1,w.indeterminate=w.children.some((e=>!0===e.indeterminate)),w.tickable=!0===w.tickable&&w.children.some((e=>e.tickable)),!0!==w.indeterminate){const e=w.children.reduce(((e,t)=>!0===t.ticked?e+1:e),0);e===w.children.length?w.ticked=!0:e>0&&(w.indeterminate=!0)}!0===w.indeterminate&&(w.indeterminateNextState=w.children.every((e=>!0!==e.tickable||!0!==e.ticked)))}return w};return e.nodes.forEach((e=>n(e,null))),t}));function b(t){const n=[].reduce,o=(a,r)=>a||!r?a:!0===Array.isArray(r)?n.call(Object(r),o,a):r[e.nodeKey]===t?r:r[e.childrenKey]?o(null,r[e.childrenKey]):void 0;return o(null,e.nodes)}function y(){const t=[],o=n=>{n[e.childrenKey]&&0!==n[e.childrenKey].length&&!1!==n.expandable&&!0!==n.disabled&&(t.push(n[e.nodeKey]),n[e.childrenKey].forEach(o))};e.nodes.forEach(o),void 0!==e.expanded?n("update:expanded",t):s.value=t}function w(t,o,a=b(t),r=_.value[t]){if(r.lazy&&"loaded"!==r.lazy){if("loading"===r.lazy)return;i.value[t]="loading",!0!==Array.isArray(a[e.childrenKey])&&(a[e.childrenKey]=[]),n("lazyLoad",{node:a,key:t,done:n=>{i.value[t]="loaded",a[e.childrenKey]=!0===Array.isArray(n)?n:[],nextTick((()=>{const e=_.value[t];e&&!0===e.isParent&&C(t,!0)}))},fail:()=>{delete i.value[t],0===a[e.childrenKey].length&&delete a[e.childrenKey]}})}else!0===r.isParent&&!0===r.expandable&&C(t,o)}function C(t,o){let a=s.value;const r=void 0!==e.expanded;if(!0===r&&(a=a.slice()),o){if(e.accordion&&_.value[t]){const n=[];_.value[t].parent?_.value[t].parent.children.forEach((e=>{e.key!==t&&!0===e.expandable&&n.push(e.key)})):e.nodes.forEach((o=>{const a=o[e.nodeKey];a!==t&&n.push(a)})),0!==n.length&&(a=a.filter((e=>!1===n.includes(e))))}a=a.concat([t]).filter(((e,t,n)=>n.indexOf(e)===t))}else a=a.filter((e=>e!==t));!0===r?n("update:expanded",a):s.value=a}function S(t,o){let a=l.value;const r=void 0!==e.ticked;!0===r&&(a=a.slice()),a=o?a.concat(t).filter(((e,t,n)=>n.indexOf(e)===t)):a.filter((e=>!1===t.includes(e))),!0===r&&n("update:ticked",a)}function k(n){return(e.filter?n.filter((t=>_.value[t[e.nodeKey]].matchesFilter)):n).map((n=>function(n){const a=n[e.nodeKey],i=_.value[a],l=n.header&&t[`header-${n.header}`]||t["default-header"],s=!0===i.isParent?k(n[e.childrenKey]):[],c=0!==s.length||i.lazy&&"loaded"!==i.lazy;let d=n.body&&t[`body-${n.body}`]||t["default-body"];const g=void 0!==l||void 0!==d?function(t,n,a){const i={tree:o,node:t,key:a,color:e.color,dark:r.value};return injectProp(i,"expanded",(()=>n.expanded),(e=>{e!==n.expanded&&w(a,e)})),injectProp(i,"ticked",(()=>n.ticked),(e=>{e!==n.ticked&&S([a],e)})),i}(n,i,a):null;void 0!==d&&(d=h("div",{class:"q-tree__node-body relative-position"},[h("div",{class:v.value},[d(g)])]));return h("div",{key:a,class:"q-tree__node relative-position q-tree__node--"+(!0===c?"parent":"child")},[h("div",{class:"q-tree__node-header relative-position row no-wrap items-center"+(!0===i.link?" q-tree__node--link q-hoverable q-focusable":"")+(!0===i.selected?" q-tree__node--selected":"")+(!0===i.disabled?" q-tree__node--disabled":""),tabindex:!0===i.link?0:-1,ariaExpanded:s.length>0?i.expanded:null,role:"treeitem",onClick:e=>{E(n,i,e)},onKeypress(e){!0!==shouldIgnoreKey(e)&&(13===e.keyCode?E(n,i,e,!0):32===e.keyCode&&N(n,i,e,!0))}},[h("div",{class:"q-focus-helper",tabindex:-1,ref:e=>{u[i.key]=e}}),"loading"===i.lazy?h(QSpinner_default,{class:"q-tree__spinner",color:f.value}):!0===c?h(QIcon_default,{class:"q-tree__arrow"+(!0===i.expanded?" q-tree__arrow--rotate":""),name:p.value,onClick(e){N(n,i,e)}}):null,!0===i.hasTicking&&!0!==i.noTick?h(QCheckbox_default,{class:"q-tree__tickbox",modelValue:!0===i.indeterminate?null:i.ticked,color:f.value,dark:r.value,dense:!0,keepColor:!0,disable:!0!==i.tickable,onKeydown:stopAndPrevent,"onUpdate:modelValue":e=>{!function(e,t){!0===e.indeterminate&&(t=e.indeterminateNextState);if(e.strictTicking)S([e.key],t);else if(e.leafTicking){const n=[],o=e=>{e.isParent?(!0!==t&&!0!==e.noTick&&!0===e.tickable&&n.push(e.key),!0===e.leafTicking&&e.children.forEach(o)):!0===e.noTick||!0!==e.tickable||!0===e.leafFilteredTicking&&!0!==e.matchesFilter||n.push(e.key)};o(e),S(n,t)}}(i,e)}}):null,h("div",{class:"q-tree__node-header-content col row no-wrap items-center"+(!0===i.selected?m.value:v.value)},[l?l(g):[x(n),h("div",n[e.labelKey])]])]),!0===c?!0===e.noTransition?!0===i.expanded?h("div",{class:"q-tree__node-collapsible"+v.value,key:`${a}__q`},[d,h("div",{class:"q-tree__children"+(!0===i.disabled?" q-tree__node--disabled":""),role:"group"},s)]):null:h(QSlideTransition_default,{duration:e.duration,onShow:M,onHide:T},(()=>withDirectives(h("div",{class:"q-tree__node-collapsible"+v.value,key:`${a}__q`},[d,h("div",{class:"q-tree__children"+(!0===i.disabled?" q-tree__node--disabled":""),role:"group"},s)]),[[vShow,i.expanded]]))):d])}(n)))}function x(e){if(void 0!==e.icon)return h(QIcon_default,{class:"q-tree__icon q-mr-sm",name:e.icon,color:e.iconColor});const t=e.img||e.avatar;return t?h("img",{class:`q-tree__${e.img?"img":"avatar"} q-mr-sm`,src:t}):void 0}function M(){n("afterShow")}function T(){n("afterHide")}function $(e){const t=u[e];t&&t.focus()}function E(t,o,a,r){!0!==r&&!1!==o.selectable&&$(o.key),d.value&&o.selectable?!1===e.noSelectionUnset?n("update:selected",o.key!==e.selected?o.key:null):o.key!==e.selected&&n("update:selected",void 0===o.key?null:o.key):N(t,o,a,r),"function"==typeof t.handler&&t.handler(t)}function N(e,t,n,o){void 0!==n&&stopAndPrevent(n),!0!==o&&!1!==t.selectable&&$(t.key),w(t.key,!t.expanded,e,t)}return watch((()=>e.ticked),(e=>{l.value=e})),watch((()=>e.expanded),(e=>{s.value=e})),!0===e.defaultExpandAll&&y(),Object.assign(o,{getNodeByKey:b,getTickedNodes:function(){return l.value.map((e=>b(e)))},getExpandedNodes:function(){return s.value.map((e=>b(e)))},isExpanded:function(e){return!(!e||!_.value[e])&&_.value[e].expanded},collapseAll:function(){void 0!==e.expanded?n("update:expanded",[]):s.value=[]},expandAll:y,setExpanded:w,isTicked:function(e){return!(!e||!_.value[e])&&_.value[e].ticked},setTicked:S}),()=>{const t=k(e.nodes);return h("div",{class:c.value,role:"tree"},0===t.length?e.filter?e.noResultsLabel||a.lang.tree.noResults:e.noNodesLabel||a.lang.tree.noNodes:t)}}});var coreProps={...useDarkProps,...useFileProps,label:String,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,noThumbnails:Boolean,thumbnailFit:{type:String,default:"cover"},autoUpload:Boolean,hideUploadBtn:Boolean,disable:Boolean,readonly:Boolean},coreEmits=[...useFileEmits,"start","finish","added","removed"];function getRenderer(e,t){const n=getCurrentInstance(),{props:o,slots:a,emit:r,proxy:i}=n,{$q:l}=i,s=use_dark_default(o,l);const u=computed((()=>!0!==o.disable&&!0!==o.readonly)),c=ref(!1),d=ref(null),p=ref(null),f={files:ref([]),queuedFiles:ref([]),uploadedFiles:ref([]),uploadedSize:ref(0),updateFileStatus:function(e,t,n){if(e.__status=t,"idle"===t)return e.__uploaded=0,e.__progress=0,e.__sizeLabel=humanStorageSize(e.size),void(e.__progressLabel="0.00%");"failed"!==t?(e.__uploaded="uploaded"===t?e.size:n,e.__progress="uploaded"===t?1:Math.min(.9999,e.__uploaded/e.size),e.__progressLabel=getProgressLabel(e.__progress),i.$forceUpdate()):i.$forceUpdate()},isAlive:()=>!1===vmIsDestroyed(n)},{pickFiles:v,addFiles:m,onDragover:g,onDragleave:_,processFiles:b,getDndNode:y,maxFilesNumber:w,maxTotalSizeNumber:C}=use_file_default({editable:u,dnd:c,getFileInput:I,addFilesToQueue:R});Object.assign(f,e({props:o,slots:a,emit:r,helpers:f,exposeApi:e=>{Object.assign(f,e)}})),void 0===f.isBusy&&(f.isBusy=ref(!1));const S=ref(0),k=computed((()=>0===S.value?0:f.uploadedSize.value/S.value)),x=computed((()=>getProgressLabel(k.value))),M=computed((()=>humanStorageSize(S.value))),T=computed((()=>!0===u.value&&!0!==f.isUploading.value&&(!0===o.multiple||0===f.queuedFiles.value.length)&&(void 0===o.maxFiles||f.files.value.length<w.value)&&(void 0===o.maxTotalSize||S.value<C.value))),$=computed((()=>!0===u.value&&!0!==f.isBusy.value&&!0!==f.isUploading.value&&0!==f.queuedFiles.value.length));provide(uploaderKey,z);const E=computed((()=>"q-uploader column no-wrap"+(!0===s.value?" q-uploader--dark q-dark":"")+(!0===o.bordered?" q-uploader--bordered":"")+(!0===o.square?" q-uploader--square no-border-radius":"")+(!0===o.flat?" q-uploader--flat no-shadow":"")+(!0===o.disable?" disabled q-uploader--disable":"")+(!0===c.value?" q-uploader--dnd":""))),N=computed((()=>"q-uploader__header"+(void 0!==o.color?` bg-${o.color}`:"")+(void 0!==o.textColor?` text-${o.textColor}`:"")));function L(){!1===o.disable&&(f.abort(),f.uploadedSize.value=0,S.value=0,A(),f.files.value=[],f.queuedFiles.value=[],f.uploadedFiles.value=[])}function D(){!1===o.disable&&q(["uploaded"],(()=>{f.uploadedFiles.value=[]}))}function B(){q(["idle","failed"],(({size:e})=>{S.value-=e,f.queuedFiles.value=[]}))}function q(e,t){if(!0===o.disable)return;const n={files:[],size:0},a=f.files.value.filter((t=>-1===e.indexOf(t.__status)||(n.size+=t.size,n.files.push(t),void 0!==t.__img&&window.URL.revokeObjectURL(t.__img.src),!1)));0!==n.files.length&&(f.files.value=a,t(n),r("removed",n.files))}function P(e){o.disable||("uploaded"===e.__status?f.uploadedFiles.value=f.uploadedFiles.value.filter((t=>t.__key!==e.__key)):"uploading"===e.__status?e.__abort():S.value-=e.size,f.files.value=f.files.value.filter((t=>t.__key!==e.__key||(void 0!==t.__img&&window.URL.revokeObjectURL(t.__img.src),!1))),f.queuedFiles.value=f.queuedFiles.value.filter((t=>t.__key!==e.__key)),r("removed",[e]))}function A(){f.files.value.forEach((e=>{void 0!==e.__img&&window.URL.revokeObjectURL(e.__img.src)}))}function I(){return p.value||d.value.getElementsByClassName("q-uploader__input")[0]}function R(e,t){const n=b(e,t,f.files.value,!0),a=I();null!=a&&(a.value=""),void 0!==n&&(n.forEach((e=>{if(f.updateFileStatus(e,"idle"),S.value+=e.size,!0!==o.noThumbnails&&e.type.toUpperCase().startsWith("IMAGE")){const t=new Image;t.src=window.URL.createObjectURL(e),e.__img=t}})),f.files.value=f.files.value.concat(n),f.queuedFiles.value=f.queuedFiles.value.concat(n),r("added",n),!0===o.autoUpload&&f.upload())}function O(){!0===$.value&&f.upload()}function V(e,t,n){if(!0===e){const e={type:"a",key:t,icon:l.iconSet.uploader[t],flat:!0,dense:!0};let o;return"add"===t?(e.onClick=v,o=z):e.onClick=n,h(QBtn_default,e,o)}}function z(){return h("input",{ref:p,class:"q-uploader__input overflow-hidden absolute-full",tabindex:-1,type:"file",title:"",accept:o.accept,multiple:!0===o.multiple?"multiple":void 0,capture:o.capture,onMousedown:stop$1,onClick:v,onChange:R})}watch(f.isUploading,((e,t)=>{!1===t&&!0===e?r("start"):!0===t&&!1===e&&r("finish")})),onBeforeUnmount((()=>{!0===f.isUploading.value&&f.abort(),0!==f.files.value.length&&A()}));const F={};for(const e in f)!0===isRef(f[e])?injectProp(F,e,(()=>f[e].value)):F[e]=f[e];return Object.assign(F,{upload:O,reset:L,removeUploadedFiles:D,removeQueuedFiles:B,removeFile:P,pickFiles:v,addFiles:m}),injectMultipleProps(F,{canAddFiles:()=>T.value,canUpload:()=>$.value,uploadSizeLabel:()=>M.value,uploadProgressLabel:()=>x.value}),t({...f,upload:O,reset:L,removeUploadedFiles:D,removeQueuedFiles:B,removeFile:P,pickFiles:v,addFiles:m,canAddFiles:T,canUpload:$,uploadSizeLabel:M,uploadProgressLabel:x}),()=>{const e=[h("div",{class:N.value},void 0!==a.header?a.header(F):[h("div",{class:"q-uploader__header-content column"},[h("div",{class:"flex flex-center no-wrap q-gutter-xs"},[V(0!==f.queuedFiles.value.length,"removeQueue",B),V(0!==f.uploadedFiles.value.length,"removeUploaded",D),!0===f.isUploading.value?h(QSpinner_default,{class:"q-uploader__spinner"}):null,h("div",{class:"col column justify-center"},[void 0!==o.label?h("div",{class:"q-uploader__title"},[o.label]):null,h("div",{class:"q-uploader__subtitle"},[M.value+" / "+x.value])]),V(T.value,"add"),V(!1===o.hideUploadBtn&&!0===$.value,"upload",f.upload),V(f.isUploading.value,"clear",f.abort)])])]),h("div",{class:"q-uploader__list scroll"},void 0!==a.list?a.list(F):f.files.value.map((e=>h("div",{key:e.__key,class:"q-uploader__file relative-position"+(!0!==o.noThumbnails&&void 0!==e.__img?" q-uploader__file--img":"")+("failed"===e.__status?" q-uploader__file--failed":"uploaded"===e.__status?" q-uploader__file--uploaded":""),style:!0!==o.noThumbnails&&void 0!==e.__img?{backgroundImage:'url("'+e.__img.src+'")',backgroundSize:o.thumbnailFit}:null},[h("div",{class:"q-uploader__file-header row flex-center no-wrap"},["failed"===e.__status?h(QIcon_default,{class:"q-uploader__file-status",name:l.iconSet.type.negative,color:"negative"}):null,h("div",{class:"q-uploader__file-header-content col"},[h("div",{class:"q-uploader__title"},[e.name]),h("div",{class:"q-uploader__subtitle row items-center no-wrap"},[e.__sizeLabel+" / "+e.__progressLabel])]),"uploading"===e.__status?h(QCircularProgress_default,{value:e.__progress,min:0,max:1,indeterminate:0===e.__progress}):h(QBtn_default,{round:!0,dense:!0,flat:!0,icon:l.iconSet.uploader["uploaded"===e.__status?"done":"clear"],onClick:()=>{P(e)}})])])))),y("uploader")];!0===f.isBusy.value&&e.push(h("div",{class:"q-uploader__overlay absolute-full flex flex-center"},[h(QSpinner_default)]));const t={ref:d,class:E.value};return!0===T.value&&Object.assign(t,{onDragover:g,onDragleave:_}),h("div",t,e)}}var trueFn=()=>!0;function get_emits_object_default(e){const t={};return e.forEach((e=>{t[e]=trueFn})),t}var coreEmitsObject=get_emits_object_default(coreEmits),create_uploader_component_default=({name:e,props:t,emits:n,injectPlugin:o})=>createComponent({name:e,props:{...coreProps,...t},emits:!0===isObject(n)?{...coreEmitsObject,...n}:[...coreEmits,...n],setup:(e,{expose:t})=>getRenderer(o,t)});function getFn(e){return"function"==typeof e?e:()=>e}var name$s="QUploader",props={url:[Function,String],method:{type:[Function,String],default:"POST"},fieldName:{type:[Function,String],default:()=>e=>e.name},headers:[Function,Array],formFields:[Function,Array],withCredentials:[Function,Boolean],sendRaw:[Function,Boolean],batch:[Function,Boolean],factory:Function},emits=["factoryFailed","uploaded","failed","uploading"];function injectPlugin({props:e,emit:t,helpers:n}){const o=ref([]),a=ref([]),r=ref(0),i=computed((()=>({url:getFn(e.url),method:getFn(e.method),headers:getFn(e.headers),formFields:getFn(e.formFields),fieldName:getFn(e.fieldName),withCredentials:getFn(e.withCredentials),sendRaw:getFn(e.sendRaw),batch:getFn(e.batch)})));let l;function s(o){if(r.value++,"function"!=typeof e.factory)return void u(o,{});const i=e.factory(o);if(i)if("function"==typeof i.catch&&"function"==typeof i.then){a.value.push(i);const e=e=>{!0===n.isAlive()&&(a.value=a.value.filter((e=>e!==i)),0===a.value.length&&(l=!1),n.queuedFiles.value=n.queuedFiles.value.concat(o),o.forEach((e=>{n.updateFileStatus(e,"failed")})),t("factoryFailed",e,o),r.value--)};i.then((t=>{!0===l?e(new Error("Aborted")):!0===n.isAlive()&&(a.value=a.value.filter((e=>e!==i)),u(o,t))})).catch(e)}else u(o,i||{});else t("factoryFailed",new Error("QUploader: factory() does not return properly"),o),r.value--}function u(e,a){const l=new FormData,s=new XMLHttpRequest,u=(e,t)=>void 0!==a[e]?getFn(a[e])(t):i.value[e](t),c=u("url",e);if(!c)return console.error("q-uploader: invalid or no URL specified"),void r.value--;const d=u("formFields",e);void 0!==d&&d.forEach((e=>{l.append(e.name,e.value)}));let p,h=0,f=0,v=0,m=0;s.upload.addEventListener("progress",(t=>{if(!0===p)return;const o=Math.min(m,t.loaded);n.uploadedSize.value+=o-v,v=o;let a=v-f;for(let t=h;a>0&&t<e.length;t++){const o=e[t];if(!(a>o.size))return void n.updateFileStatus(o,"uploading",a);a-=o.size,h++,f+=o.size,n.updateFileStatus(o,"uploading",o.size)}}),!1),s.onreadystatechange=()=>{s.readyState<4||(s.status&&s.status<400?(n.uploadedFiles.value=n.uploadedFiles.value.concat(e),e.forEach((e=>{n.updateFileStatus(e,"uploaded")})),t("uploaded",{files:e,xhr:s})):(p=!0,n.uploadedSize.value-=v,n.queuedFiles.value=n.queuedFiles.value.concat(e),e.forEach((e=>{n.updateFileStatus(e,"failed")})),t("failed",{files:e,xhr:s})),r.value--,o.value=o.value.filter((e=>e!==s)))},s.open(u("method",e),c),!0===u("withCredentials",e)&&(s.withCredentials=!0);const g=u("headers",e);void 0!==g&&g.forEach((e=>{s.setRequestHeader(e.name,e.value)}));const _=u("sendRaw",e);e.forEach((e=>{n.updateFileStatus(e,"uploading",0),!0!==_&&l.append(u("fieldName",e),e,e.name),e.xhr=s,e.__abort=()=>{s.abort()},m+=e.size})),t("uploading",{files:e,xhr:s}),o.value.push(s),!0===_?s.send(new Blob(e)):s.send(l)}return{isUploading:computed((()=>r.value>0)),isBusy:computed((()=>0!==a.value.length)),abort:function(){o.value.forEach((e=>{e.abort()})),0!==a.value.length&&(l=!0)},upload:function(){const e=n.queuedFiles.value.slice(0);n.queuedFiles.value=[],i.value.batch(e)?s(e):e.forEach((e=>{s([e])}))}}}var xhr_uploader_plugin_default={name:name$s,props:props,emits:emits,injectPlugin:injectPlugin};function getDepth(e){if(!1===e)return 0;if(!0===e||void 0===e)return 1;const t=parseInt(e,10);return isNaN(t)?0:t}create_uploader_component_default(xhr_uploader_plugin_default),createComponent({name:"QUploaderAddTrigger",setup(){const e=inject(uploaderKey,emptyRenderFn);return e===emptyRenderFn&&console.error("QUploaderAddTrigger needs to be child of QUploader"),e}}),createComponent({name:"QVideo",props:{...useRatioProps,src:{type:String,required:!0},title:String,fetchpriority:{type:String,default:"auto"},loading:{type:String,default:"eager"},referrerpolicy:{type:String,default:"strict-origin-when-cross-origin"}},setup(e){const t=use_ratio_default(e),n=computed((()=>"q-video"+(void 0!==e.ratio?" q-video--responsive":"")));return()=>h("div",{class:n.value,style:t.value},[h("iframe",{src:e.src,title:e.title,fetchpriority:e.fetchpriority,loading:e.loading,referrerpolicy:e.referrerpolicy,frameborder:"0",allowfullscreen:!0})])}});var ClosePopup_default=createDirective({name:"close-popup",beforeMount(e,{value:t}){const n={depth:getDepth(t),handler(t){0!==n.depth&&setTimeout((()=>{const o=getPortalProxy(e);void 0!==o&&closePortals(o,t,n.depth)}))},handlerKey(e){!0===isKeyCode(e,13)&&n.handler(e)}};e.__qclosepopup=n,e.addEventListener("click",n.handler),e.addEventListener("keyup",n.handlerKey)},updated(e,{value:t,oldValue:n}){t!==n&&(e.__qclosepopup.depth=getDepth(t))},beforeUnmount(e){const t=e.__qclosepopup;e.removeEventListener("click",t.handler),e.removeEventListener("keyup",t.handlerKey),delete e.__qclosepopup}}),id2=0,offsetBase=void 0;function getAbsolutePosition(e,t){void 0===offsetBase&&((offsetBase=document.createElement("div")).style.cssText="position: absolute; left: 0; top: 0",document.body.appendChild(offsetBase));const n=e.getBoundingClientRect(),o=offsetBase.getBoundingClientRect(),{marginLeft:a,marginRight:r,marginTop:i,marginBottom:l}=window.getComputedStyle(e),s=parseInt(a,10)+parseInt(r,10),u=parseInt(i,10)+parseInt(l,10);return{left:n.left-o.left,top:n.top-o.top,width:n.right-n.left,height:n.bottom-n.top,widthM:n.right-n.left+(!0===t?0:s),heightM:n.bottom-n.top+(!0===t?0:u),marginH:!0===t?s:0,marginV:!0===t?u:0}}function getAbsoluteSize(e){return{width:e.scrollWidth,height:e.scrollHeight}}var styleEdges=["Top","Right","Bottom","Left"],styleBorderRadiuses=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],reStyleSkipKey=/-block|-inline|block-|inline-/,reStyleSkipRule=/(-block|-inline|block-|inline-).*:/;function getComputedStyle2(e,t){const n=window.getComputedStyle(e),o={};for(let e=0;e<t.length;e++){const a=t[e];if(""===n[a])if("cssText"===a){const e=n.length;let t="";for(let o=0;o<e;o++)!0!==reStyleSkipKey.test(n[o])&&(t+=n[o]+": "+n[n[o]]+"; ");o[a]=t}else if(-1!==["borderWidth","borderStyle","borderColor"].indexOf(a)){const e=a.replace("border","");let t="";for(let o=0;o<styleEdges.length;o++){t+=n["border"+styleEdges[o]+e]+" "}o[a]=t}else if("borderRadius"===a){let e="",t="";for(let o=0;o<styleBorderRadiuses.length;o++){const a=n[styleBorderRadiuses[o]].split(" ");e+=a[0]+" ",t+=(void 0===a[1]?a[0]:a[1])+" "}o[a]=e+"/ "+t}else o[a]=n[a];else o[a]="cssText"===a?n[a].split(";").filter((e=>!0!==reStyleSkipRule.test(e))).join(";"):n[a]}return o}var zIndexPositions=["absolute","fixed","relative","sticky"];function getMaxZIndex(e){let t=e,n=0;for(;null!==t&&t!==document;){const{position:o,zIndex:a}=window.getComputedStyle(t),r=Number(a);r>n&&(t===e||!0===zIndexPositions.includes(o))&&(n=r),t=t.parentNode}return n}function normalizeElements(e){return{from:e.from,to:void 0!==e.to?e.to:e.from}}function normalizeOptions(e){return"number"==typeof e?e={duration:e}:"function"==typeof e&&(e={onEnd:e}),{...e,waitFor:void 0===e.waitFor?0:e.waitFor,duration:!0===isNaN(e.duration)?300:parseInt(e.duration,10),easing:"string"==typeof e.easing&&0!==e.easing.length?e.easing:"ease-in-out",delay:!0===isNaN(e.delay)?0:parseInt(e.delay,10),fill:"string"==typeof e.fill&&0!==e.fill.length?e.fill:"none",resize:!0===e.resize,useCSS:!0===e.useCSS||!0===e.usecss,hideFromClone:!0===e.hideFromClone||!0===e.hidefromclone,keepToClone:!0===e.keepToClone||!0===e.keeptoclone,tween:!0===e.tween,tweenFromOpacity:!0===isNaN(e.tweenFromOpacity)?.6:parseFloat(e.tweenFromOpacity),tweenToOpacity:!0===isNaN(e.tweenToOpacity)?.5:parseFloat(e.tweenToOpacity)}}function getElement2(e){const t=typeof e;return"function"===t?e():"string"===t?document.querySelector(e):e}function isValidElement(e){return e&&e.ownerDocument===document&&null!==e.parentNode}function morph(e){let t=()=>!1,n=!1,o=!0;const a=normalizeElements(e),r=normalizeOptions(e),i=getElement2(a.from);if(!0!==isValidElement(i))return t;let l,s,u,c;"function"==typeof i.qMorphCancel&&i.qMorphCancel();const d=i.parentNode,p=i.nextElementSibling,h=getAbsolutePosition(i,r.resize),{width:f,height:v}=getAbsoluteSize(d),{borderWidth:m,borderStyle:g,borderColor:_,borderRadius:b,backgroundColor:y,transform:w,position:C,cssText:S}=getComputedStyle2(i,["borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","transform","position","cssText"]),k=i.classList.toString(),x=i.style.cssText,M=i.cloneNode(!0),T=!0===r.tween?i.cloneNode(!0):void 0;void 0!==T&&(T.className=T.classList.toString().split(" ").filter((e=>!1===/^bg-/.test(e))).join(" ")),!0===r.hideFromClone&&M.classList.add("q-morph--internal"),M.setAttribute("aria-hidden","true"),M.style.transition="none",M.style.animation="none",M.style.pointerEvents="none",d.insertBefore(M,p),i.qMorphCancel=()=>{n=!0,M.remove(),void 0!==T&&T.remove(),!0===r.hideFromClone&&M.classList.remove("q-morph--internal"),i.qMorphCancel=void 0};return"function"==typeof e.onToggle&&e.onToggle(),requestAnimationFrame((()=>{const e=getElement2(a.to);if(!0===n||!0!==isValidElement(e))return void("function"==typeof i.qMorphCancel&&i.qMorphCancel());i!==e&&"function"==typeof e.qMorphCancel&&e.qMorphCancel(),!0!==r.keepToClone&&e.classList.add("q-morph--internal"),M.classList.add("q-morph--internal");const{width:p,height:$}=getAbsoluteSize(d),{width:E,height:N}=getAbsoluteSize(e.parentNode);!0!==r.hideFromClone&&M.classList.remove("q-morph--internal"),e.qMorphCancel=()=>{n=!0,M.remove(),void 0!==T&&T.remove(),!0===r.hideFromClone&&M.classList.remove("q-morph--internal"),!0!==r.keepToClone&&e.classList.remove("q-morph--internal"),i.qMorphCancel=void 0,e.qMorphCancel=void 0};const L=()=>{if(!0===n)return void("function"==typeof e.qMorphCancel&&e.qMorphCancel());!0!==r.hideFromClone&&(M.classList.add("q-morph--internal"),M.innerHTML="",M.style.left=0,M.style.right="unset",M.style.top=0,M.style.bottom="unset",M.style.transform="none"),!0!==r.keepToClone&&e.classList.remove("q-morph--internal");const a=e.parentNode,{width:L,height:D}=getAbsoluteSize(a),B=e.cloneNode(r.keepToClone);B.setAttribute("aria-hidden","true"),!0!==r.keepToClone&&(B.style.left=0,B.style.right="unset",B.style.top=0,B.style.bottom="unset",B.style.transform="none",B.style.pointerEvents="none"),B.classList.add("q-morph--internal");const q=e===i&&d===a?M:e.nextElementSibling;a.insertBefore(B,q);const{borderWidth:P,borderStyle:A,borderColor:I,borderRadius:R,backgroundColor:O,transform:V,position:z,cssText:F}=getComputedStyle2(e,["borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","transform","position","cssText"]),j=e.classList.toString(),H=e.style.cssText;e.style.cssText=F,e.style.transform="none",e.style.animation="none",e.style.transition="none",e.className=j.split(" ").filter((e=>!1===/^bg-/.test(e))).join(" ");const U=getAbsolutePosition(e,r.resize),Q=h.left-U.left,Y=h.top-U.top,W=h.width/(U.width>0?U.width:10),K=h.height/(U.height>0?U.height:100),G=f-p,X=v-$,Z=L-E,J=D-N,ee=Math.max(h.widthM,G),te=Math.max(h.heightM,X),ne=Math.max(U.widthM,Z),oe=Math.max(U.heightM,J),ae=i===e&&!1===["absolute","fixed"].includes(z)&&!1===["absolute","fixed"].includes(C);let re="fixed"===z,ie=a;for(;!0!==re&&ie!==document;)re="fixed"===window.getComputedStyle(ie).position,ie=ie.parentNode;if(!0!==r.hideFromClone&&(M.style.display="block",M.style.flex="0 0 auto",M.style.opacity=0,M.style.minWidth="unset",M.style.maxWidth="unset",M.style.minHeight="unset",M.style.maxHeight="unset",M.classList.remove("q-morph--internal")),!0!==r.keepToClone&&(B.style.display="block",B.style.flex="0 0 auto",B.style.opacity=0,B.style.minWidth="unset",B.style.maxWidth="unset",B.style.minHeight="unset",B.style.maxHeight="unset"),B.classList.remove("q-morph--internal"),"string"==typeof r.classes&&(e.className+=" "+r.classes),"string"==typeof r.style)e.style.cssText+=" "+r.style;else if(!0===isObject(r.style))for(const t in r.style)e.style[t]=r.style[t];const le=getMaxZIndex(M),se=getMaxZIndex(e),ue=!0===re?document.documentElement:{scrollLeft:0,scrollTop:0};e.style.position=!0===re?"fixed":"absolute",e.style.left=U.left-ue.scrollLeft+"px",e.style.right="unset",e.style.top=U.top-ue.scrollTop+"px",e.style.margin=0,!0===r.resize&&(e.style.minWidth="unset",e.style.maxWidth="unset",e.style.minHeight="unset",e.style.maxHeight="unset",e.style.overflow="hidden",e.style.overflowX="hidden",e.style.overflowY="hidden"),document.body.appendChild(e),void 0!==T&&(T.style.cssText=S,T.style.transform="none",T.style.animation="none",T.style.transition="none",T.style.position=e.style.position,T.style.left=h.left-ue.scrollLeft+"px",T.style.right="unset",T.style.top=h.top-ue.scrollTop+"px",T.style.margin=0,T.style.pointerEvents="none",!0===r.resize&&(T.style.minWidth="unset",T.style.maxWidth="unset",T.style.minHeight="unset",T.style.maxHeight="unset",T.style.overflow="hidden",T.style.overflowX="hidden",T.style.overflowY="hidden"),document.body.appendChild(T));const ce=n=>{i===e&&!0!==o?(e.style.cssText=x,e.className=k):(e.style.cssText=H,e.className=j),B.parentNode===a&&a.insertBefore(e,B),M.remove(),B.remove(),void 0!==T&&T.remove(),t=()=>!1,i.qMorphCancel=void 0,e.qMorphCancel=void 0,"function"==typeof r.onEnd&&r.onEnd(!0===o?"to":"from",!0===n)};if(!0!==r.useCSS&&"function"==typeof e.animate){const a=!0===r.resize?{transform:`translate(${Q}px, ${Y}px)`,width:`${ee}px`,height:`${te}px`}:{transform:`translate(${Q}px, ${Y}px) scale(${W}, ${K})`},d=!0===r.resize?{width:`${ne}px`,height:`${oe}px`}:{},p=!0===r.resize?{width:`${ee}px`,height:`${te}px`}:{},f=!0===r.resize?{transform:`translate(${-1*Q}px, ${-1*Y}px)`,width:`${ne}px`,height:`${oe}px`}:{transform:`translate(${-1*Q}px, ${-1*Y}px) scale(${1/W}, ${1/K})`},v=void 0!==T?{opacity:r.tweenToOpacity}:{backgroundColor:y},C=void 0!==T?{opacity:1}:{backgroundColor:O};c=e.animate([{margin:0,borderWidth:m,borderStyle:g,borderColor:_,borderRadius:b,zIndex:le,transformOrigin:"0 0",...a,...v},{margin:0,borderWidth:P,borderStyle:A,borderColor:I,borderRadius:R,zIndex:se,transformOrigin:"0 0",transform:V,...d,...C}],{duration:r.duration,easing:r.easing,fill:r.fill,delay:r.delay}),s=void 0===T?void 0:T.animate([{opacity:r.tweenFromOpacity,margin:0,borderWidth:m,borderStyle:g,borderColor:_,borderRadius:b,zIndex:le,transformOrigin:"0 0",transform:w,...p},{opacity:0,margin:0,borderWidth:P,borderStyle:A,borderColor:I,borderRadius:R,zIndex:se,transformOrigin:"0 0",...f}],{duration:r.duration,easing:r.easing,fill:r.fill,delay:r.delay}),l=!0===r.hideFromClone||!0===ae?void 0:M.animate([{margin:`${X<0?X/2:0}px ${G<0?G/2:0}px`,width:`${ee+h.marginH}px`,height:`${te+h.marginV}px`},{margin:0,width:0,height:0}],{duration:r.duration,easing:r.easing,fill:r.fill,delay:r.delay}),u=!0===r.keepToClone?void 0:B.animate([!0===ae?{margin:`${X<0?X/2:0}px ${G<0?G/2:0}px`,width:`${ee+h.marginH}px`,height:`${te+h.marginV}px`}:{margin:0,width:0,height:0},{margin:`${J<0?J/2:0}px ${Z<0?Z/2:0}px`,width:`${ne+U.marginH}px`,height:`${oe+U.marginV}px`}],{duration:r.duration,easing:r.easing,fill:r.fill,delay:r.delay});const S=e=>{void 0!==l&&l.cancel(),void 0!==s&&s.cancel(),void 0!==u&&u.cancel(),c.cancel(),c.removeEventListener("finish",S),c.removeEventListener("cancel",S),ce(e),l=void 0,s=void 0,u=void 0,c=void 0};i.qMorphCancel=()=>{i.qMorphCancel=void 0,n=!0,S()},e.qMorphCancel=()=>{e.qMorphCancel=void 0,n=!0,S()},c.addEventListener("finish",S),c.addEventListener("cancel",S),t=e=>!0!==n&&void 0!==c&&(!0===e?(S(!0),!0):(o=!0!==o,void 0!==l&&l.reverse(),void 0!==s&&s.reverse(),void 0!==u&&u.reverse(),c.reverse(),!0))}else{const a="q-morph-anim-"+ ++id2,l=document.createElement("style"),s=!0===r.resize?`\n            transform: translate(${Q}px, ${Y}px);\n            width: ${ee}px;\n            height: ${te}px;\n          `:`transform: translate(${Q}px, ${Y}px) scale(${W}, ${K});`,u=!0===r.resize?`\n            width: ${ne}px;\n            height: ${oe}px;\n          `:"",c=!0===r.resize?`\n            width: ${ee}px;\n            height: ${te}px;\n          `:"",d=!0===r.resize?`\n            transform: translate(${-1*Q}px, ${-1*Y}px);\n            width: ${ne}px;\n            height: ${oe}px;\n          `:`transform: translate(${-1*Q}px, ${-1*Y}px) scale(${1/W}, ${1/K});`,p=void 0!==T?`opacity: ${r.tweenToOpacity};`:`background-color: ${y};`,f=void 0!==T?"opacity: 1;":`background-color: ${O};`,v=void 0===T?"":`\n            @keyframes ${a}-from-tween {\n              0% {\n                opacity: ${r.tweenFromOpacity};\n                margin: 0;\n                border-width: ${m};\n                border-style: ${g};\n                border-color: ${_};\n                border-radius: ${b};\n                z-index: ${le};\n                transform-origin: 0 0;\n                transform: ${w};\n                ${c}\n              }\n\n              100% {\n                opacity: 0;\n                margin: 0;\n                border-width: ${P};\n                border-style: ${A};\n                border-color: ${I};\n                border-radius: ${R};\n                z-index: ${se};\n                transform-origin: 0 0;\n                ${d}\n              }\n            }\n          `,C=!0===r.hideFromClone||!0===ae?"":`\n            @keyframes ${a}-from {\n              0% {\n                margin: ${X<0?X/2:0}px ${G<0?G/2:0}px;\n                width: ${ee+h.marginH}px;\n                height: ${te+h.marginV}px;\n              }\n\n              100% {\n                margin: 0;\n                width: 0;\n                height: 0;\n              }\n            }\n          `,S=!0===ae?`\n            margin: ${X<0?X/2:0}px ${G<0?G/2:0}px;\n            width: ${ee+h.marginH}px;\n            height: ${te+h.marginV}px;\n          `:"\n            margin: 0;\n            width: 0;\n            height: 0;\n          ",k=!0===r.keepToClone?"":`\n            @keyframes ${a}-to {\n              0% {\n                ${S}\n              }\n\n              100% {\n                margin: ${J<0?J/2:0}px ${Z<0?Z/2:0}px;\n                width: ${ne+U.marginH}px;\n                height: ${oe+U.marginV}px;\n              }\n            }\n          `;l.innerHTML=`\n          @keyframes ${a} {\n            0% {\n              margin: 0;\n              border-width: ${m};\n              border-style: ${g};\n              border-color: ${_};\n              border-radius: ${b};\n              background-color: ${y};\n              z-index: ${le};\n              transform-origin: 0 0;\n              ${s}\n              ${p}\n            }\n\n            100% {\n              margin: 0;\n              border-width: ${P};\n              border-style: ${A};\n              border-color: ${I};\n              border-radius: ${R};\n              background-color: ${O};\n              z-index: ${se};\n              transform-origin: 0 0;\n              transform: ${V};\n              ${u}\n              ${f}\n            }\n          }\n\n          ${C}\n\n          ${v}\n\n          ${k}\n        `,document.head.appendChild(l);let x="normal";M.style.animation=`${r.duration}ms ${r.easing} ${r.delay}ms ${x} ${r.fill} ${a}-from`,void 0!==T&&(T.style.animation=`${r.duration}ms ${r.easing} ${r.delay}ms ${x} ${r.fill} ${a}-from-tween`),B.style.animation=`${r.duration}ms ${r.easing} ${r.delay}ms ${x} ${r.fill} ${a}-to`,e.style.animation=`${r.duration}ms ${r.easing} ${r.delay}ms ${x} ${r.fill} ${a}`;const $=t=>{t===Object(t)&&t.animationName!==a||(e.removeEventListener("animationend",$),e.removeEventListener("animationcancel",$),ce(),l.remove())};i.qMorphCancel=()=>{i.qMorphCancel=void 0,n=!0,$()},e.qMorphCancel=()=>{e.qMorphCancel=void 0,n=!0,$()},e.addEventListener("animationend",$),e.addEventListener("animationcancel",$),t=t=>!!(!0!==n&&e&&M&&B)&&(!0===t?($(),!0):(o=!0!==o,x="normal"===x?"reverse":"normal",M.style.animationDirection=x,T.style.animationDirection=x,B.style.animationDirection=x,e.style.animationDirection=x,!0))}};if(r.waitFor>0||"transitionend"===r.waitFor||r.waitFor===Object(r.waitFor)&&"function"==typeof r.waitFor.then){(r.waitFor>0?new Promise((e=>setTimeout(e,r.waitFor))):"transitionend"===r.waitFor?new Promise((t=>{const n=()=>{null!==o&&(clearTimeout(o),o=null),e&&(e.removeEventListener("transitionend",n),e.removeEventListener("transitioncancel",n)),t()};let o=setTimeout(n,400);e.addEventListener("transitionend",n),e.addEventListener("transitioncancel",n)})):r.waitFor).then(L).catch((()=>{"function"==typeof e.qMorphCancel&&e.qMorphCancel()}))}else L()})),e=>t(e)}var morphGroups={},props2=["duration","delay","easing","fill","classes","style","duration","resize","useCSS","hideFromClone","keepToClone","tween","tweenFromOpacity","tweenToOpacity","waitFor","onEnd"],mods=["resize","useCSS","hideFromClone","keepToClone","tween"];function changeClass(e,t){e.clsAction!==t&&(e.clsAction=t,e.el.classList[t]("q-morph--invisible"))}function trigger2(e){if(!0===e.animating||e.queue.length<2)return;const[t,n]=e.queue;e.animating=!0,t.animating=!0,n.animating=!0,changeClass(t,"remove"),changeClass(n,"remove");const o=morph({from:t.el,to:n.el,onToggle(){changeClass(t,"add"),changeClass(n,"remove")},...n.opts,onEnd(o,a){void 0!==n.opts.onEnd&&n.opts.onEnd(o,a),!0!==a&&(t.animating=!1,n.animating=!1,e.animating=!1,e.cancel=void 0,e.queue.shift(),trigger2(e))}});e.cancel=()=>{o(!0),e.cancel=void 0}}function updateModifiers2(e,t){const n=t.opts;mods.forEach((t=>{n[t]=!0===e[t]}))}function insertArgs(e,t){const n="string"==typeof e&&0!==e.length?e.split(":"):[];t.name=n[0],t.group=n[1],Object.assign(t.opts,{duration:!0===isNaN(n[2])?300:parseFloat(n[2]),waitFor:n[3]})}function updateArgs(e,t){void 0!==e.group&&(t.group=e.group),void 0!==e.name&&(t.name=e.name);const n=t.opts;props2.forEach((t=>{void 0!==e[t]&&(n[t]=e[t])}))}function updateModel(e,t){if(t.name!==e)!1===t.animating&&changeClass(t,"add");else{const n=morphGroups[t.group];void 0===n?(morphGroups[t.group]={name:t.group,model:e,queue:[t],animating:!1},changeClass(t,"remove")):n.model!==e&&(n.model=e,n.queue.push(t),!1===n.animating&&2===n.queue.length&&trigger2(n))}}function updateValue(e,t){let n;Object(t)===t?(n=""+t.model,updateArgs(t,e),updateModifiers2(t,e)):n=""+t,n!==e.model?(e.model=n,updateModel(n,e)):!1===e.animating&&void 0!==e.clsAction&&e.el.classList[e.clsAction]("q-morph--invisible")}createDirective({name:"morph",mounted(e,t){const n={el:e,animating:!1,opts:{}};updateModifiers2(t.modifiers,n),insertArgs(t.arg,n),updateValue(n,t.value),e.__qmorph=n},updated(e,t){updateValue(e.__qmorph,t.value)},beforeUnmount(e){const t=e.__qmorph,n=morphGroups[t.group];if(void 0!==n){-1!==n.queue.indexOf(t)&&(n.queue=n.queue.filter((e=>e!==t)),0===n.queue.length&&(void 0!==n.cancel&&n.cancel(),delete morphGroups[t.group]))}"add"===t.clsAction&&e.classList.remove("q-morph--invisible"),delete e.__qmorph}});var defaultCfg2={childList:!0,subtree:!0,attributes:!0,characterData:!0,attributeOldValue:!0,characterDataOldValue:!0};function update3(e,t,n){t.handler=n,void 0!==t.observer&&t.observer.disconnect(),t.observer=new MutationObserver((n=>{if("function"==typeof t.handler){!1!==t.handler(n)&&!0!==t.once||destroy2(e)}})),t.observer.observe(e,t.opts)}function destroy2(e){const t=e.__qmutation;void 0!==t&&(void 0!==t.observer&&t.observer.disconnect(),delete e.__qmutation)}createDirective({name:"mutation",mounted(e,{modifiers:{once:t,...n},value:o}){const a={once:t,opts:0===Object.keys(n).length?defaultCfg2:n};update3(e,a,o),e.__qmutation=a},updated(e,{oldValue:t,value:n}){const o=e.__qmutation;void 0!==o&&t!==n&&update3(e,o,n)},beforeUnmount:destroy2});var{passive:passive5}=listenOpts;function update4(e,{value:t,oldValue:n}){"function"==typeof t?(e.handler=t,"function"!=typeof n&&(e.scrollTarget.addEventListener("scroll",e.scroll,passive5),e.scroll())):e.scrollTarget.removeEventListener("scroll",e.scroll,passive5)}function update5(e,{value:t,oldValue:n}){"function"==typeof t?(e.handler=t,"function"!=typeof n&&e.scrollTarget.addEventListener("scroll",e.scroll,listenOpts.passive)):e.scrollTarget.removeEventListener("scroll",e.scroll,listenOpts.passive)}createDirective({name:"scroll-fire",mounted(e,t){const n={scrollTarget:getScrollTarget(e),scroll:debounce_default((()=>{let t,o;n.scrollTarget===window?(o=e.getBoundingClientRect().bottom,t=window.innerHeight):(o=offset(e).top+height(e),t=offset(n.scrollTarget).top+height(n.scrollTarget)),o>0&&o<t&&(n.scrollTarget.removeEventListener("scroll",n.scroll,passive5),n.handler(e))}),25)};update4(n,t),e.__qscrollfire=n},updated(e,t){t.value!==t.oldValue&&update4(e.__qscrollfire,t)},beforeUnmount(e){const t=e.__qscrollfire;t.scrollTarget.removeEventListener("scroll",t.scroll,passive5),t.scroll.cancel(),delete e.__qscrollfire}}),createDirective({name:"scroll",mounted(e,t){const n={scrollTarget:getScrollTarget(e),scroll(){n.handler(getVerticalScrollPosition(n.scrollTarget),getHorizontalScrollPosition(n.scrollTarget))}};update5(n,t),e.__qscroll=n},updated(e,t){void 0!==e.__qscroll&&t.oldValue!==t.value&&update5(e.__qscroll,t)},beforeUnmount(e){const t=e.__qscroll;t.scrollTarget.removeEventListener("scroll",t.scroll,listenOpts.passive),delete e.__qscroll}}),createDirective({name:"touch-hold",beforeMount(e,t){const{modifiers:n}=t;if(!0!==n.mouse&&!0!==client.has.touch)return;const o={handler:t.value,noop:noop,mouseStart(e){"function"==typeof o.handler&&!0===leftClick(e)&&(addEvt(o,"temp",[[document,"mousemove","move","passiveCapture"],[document,"click","end","notPassiveCapture"]]),o.start(e,!0))},touchStart(e){if(void 0!==e.target&&"function"==typeof o.handler){const t=e.target;addEvt(o,"temp",[[t,"touchmove","move","passiveCapture"],[t,"touchcancel","end","notPassiveCapture"],[t,"touchend","end","notPassiveCapture"]]),o.start(e)}},start(e,t){o.origin=position(e);const n=Date.now();!0===client.is.mobile&&(document.body.classList.add("non-selectable"),clearSelection(),o.styleCleanup=e=>{o.styleCleanup=void 0;const t=()=>{document.body.classList.remove("non-selectable")};!0===e?(clearSelection(),setTimeout(t,10)):t()}),o.triggered=!1,o.sensitivity=!0===t?o.mouseSensitivity:o.touchSensitivity,o.timer=setTimeout((()=>{o.timer=void 0,clearSelection(),o.triggered=!0,o.handler({evt:e,touch:!0!==t,mouse:!0===t,position:o.origin,duration:Date.now()-n})}),o.duration)},move(e){const{top:t,left:n}=position(e);void 0!==o.timer&&(Math.abs(n-o.origin.left)>=o.sensitivity||Math.abs(t-o.origin.top)>=o.sensitivity)&&(clearTimeout(o.timer),o.timer=void 0)},end(e){cleanEvt(o,"temp"),void 0!==o.styleCleanup&&o.styleCleanup(o.triggered),!0===o.triggered?void 0!==e&&stopAndPrevent(e):void 0!==o.timer&&(clearTimeout(o.timer),o.timer=void 0)}},a=[600,5,7];if("string"==typeof t.arg&&0!==t.arg.length&&t.arg.split(":").forEach(((e,t)=>{const n=parseInt(e,10);n&&(a[t]=n)})),[o.duration,o.touchSensitivity,o.mouseSensitivity]=a,e.__qtouchhold=o,!0===n.mouse){const t=!0===n.mouseCapture||!0===n.mousecapture?"Capture":"";addEvt(o,"main",[[e,"mousedown","mouseStart",`passive${t}`]])}!0===client.has.touch&&addEvt(o,"main",[[e,"touchstart","touchStart","passive"+(!0===n.capture?"Capture":"")],[e,"touchend","noop","notPassiveCapture"]])},updated(e,t){const n=e.__qtouchhold;void 0!==n&&t.oldValue!==t.value&&("function"!=typeof t.value&&n.end(),n.handler=t.value)},beforeUnmount(e){const t=e.__qtouchhold;void 0!==t&&(cleanEvt(t,"main"),cleanEvt(t,"temp"),void 0!==t.timer&&clearTimeout(t.timer),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchhold)}});var metaValue,keyCodes3={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},keyRegex=new RegExp(`^([\\d+]+|${Object.keys(keyCodes3).join("|")})$`,"i");function shouldEnd(e,t){const{top:n,left:o}=position(e);return Math.abs(o-t.left)>=7||Math.abs(n-t.top)>=7}function getCssVar(e,t=document.body){if("string"!=typeof e)throw new TypeError("Expected a string as propName");if(!(t instanceof Element))throw new TypeError("Expected a DOM element");return getComputedStyle(t).getPropertyValue(`--q-${e}`).trim()||null}function getProp(){return client.is.winphone?"msapplication-navbutton-color":client.is.safari?"apple-mobile-web-app-status-bar-style":"theme-color"}function getMetaTag(e){const t=document.getElementsByTagName("META");for(const n in t)if(t[n].name===e)return t[n]}function setColor(e){void 0===metaValue&&(metaValue=getProp());let t=getMetaTag(metaValue);const n=void 0===t;n&&(t=document.createElement("meta"),t.setAttribute("name",metaValue)),t.setAttribute("content",e),n&&document.head.appendChild(t)}createDirective({name:"touch-repeat",beforeMount(e,{modifiers:t,value:n,arg:o}){const a=Object.keys(t).reduce(((e,t)=>{if(!0===keyRegex.test(t)){const n=isNaN(parseInt(t,10))?keyCodes3[t.toLowerCase()]:parseInt(t,10);n>=0&&e.push(n)}return e}),[]);if(!0!==t.mouse&&!0!==client.has.touch&&0===a.length)return;const r="string"==typeof o&&0!==o.length?o.split(":").map((e=>parseInt(e,10))):[0,600,300],i=r.length-1,l={keyboard:a,handler:n,noop:noop,mouseStart(e){void 0===l.event&&"function"==typeof l.handler&&!0===leftClick(e)&&(addEvt(l,"temp",[[document,"mousemove","move","passiveCapture"],[document,"click","end","notPassiveCapture"]]),l.start(e,!0))},keyboardStart(t){if("function"==typeof l.handler&&!0===isKeyCode(t,a)){if((0===r[0]||void 0!==l.event)&&(stopAndPrevent(t),e.focus(),void 0!==l.event))return;addEvt(l,"temp",[[document,"keyup","end","notPassiveCapture"],[document,"click","end","notPassiveCapture"]]),l.start(t,!1,!0)}},touchStart(e){if(void 0!==e.target&&"function"==typeof l.handler){const t=e.target;addEvt(l,"temp",[[t,"touchmove","move","passiveCapture"],[t,"touchcancel","end","notPassiveCapture"],[t,"touchend","end","notPassiveCapture"]]),l.start(e)}},start(e,t,n){function o(e){l.styleCleanup=void 0,document.documentElement.style.cursor="";const t=()=>{document.body.classList.remove("non-selectable")};!0===e?(clearSelection(),setTimeout(t,10)):t()}!0!==n&&(l.origin=position(e)),!0===client.is.mobile&&(document.body.classList.add("non-selectable"),clearSelection(),l.styleCleanup=o),l.event={touch:!0!==t&&!0!==n,mouse:!0===t,keyboard:!0===n,startTime:Date.now(),repeatCount:0};const a=()=>{if(l.timer=void 0,void 0===l.event)return;0===l.event.repeatCount&&(l.event.evt=e,!0===n?l.event.keyCode=e.keyCode:l.event.position=position(e),!0!==client.is.mobile&&(document.documentElement.style.cursor="pointer",document.body.classList.add("non-selectable"),clearSelection(),l.styleCleanup=o)),l.event.duration=Date.now()-l.event.startTime,l.event.repeatCount+=1,l.handler(l.event);const t=i<l.event.repeatCount?i:l.event.repeatCount;l.timer=setTimeout(a,r[t])};0===r[0]?a():l.timer=setTimeout(a,r[0])},move(e){void 0!==l.event&&void 0!==l.timer&&!0===shouldEnd(e,l.origin)&&(clearTimeout(l.timer),l.timer=void 0)},end(e){void 0!==l.event&&(void 0!==l.styleCleanup&&l.styleCleanup(!0),void 0!==e&&l.event.repeatCount>0&&stopAndPrevent(e),cleanEvt(l,"temp"),void 0!==l.timer&&(clearTimeout(l.timer),l.timer=void 0),l.event=void 0)}};if(e.__qtouchrepeat=l,!0===t.mouse){const n=!0===t.mouseCapture||!0===t.mousecapture?"Capture":"";addEvt(l,"main",[[e,"mousedown","mouseStart",`passive${n}`]])}if(!0===client.has.touch&&addEvt(l,"main",[[e,"touchstart","touchStart","passive"+(!0===t.capture?"Capture":"")],[e,"touchend","noop","passiveCapture"]]),0!==a.length){const n=!0===t.keyCapture||!0===t.keycapture?"Capture":"";addEvt(l,"main",[[e,"keydown","keyboardStart",`notPassive${n}`]])}},updated(e,{oldValue:t,value:n}){const o=e.__qtouchrepeat;void 0!==o&&t!==n&&("function"!=typeof n&&o.end(),o.handler=n)},beforeUnmount(e){const t=e.__qtouchrepeat;void 0!==t&&(void 0!==t.timer&&clearTimeout(t.timer),cleanEvt(t,"main"),cleanEvt(t,"temp"),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchrepeat)}}),!0!==client.is.mobile||!0!==client.is.nativeMobile&&!0!==client.is.winphone&&!0!==client.is.safari&&!0!==client.is.webkit&&client.is.vivaldi;var prefixes={};function assignFn(e){Object.assign(Plugin4,{request:e,exit:e,toggle:e})}function getFullscreenElement(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement||null}function updateEl(){const e=Plugin4.activeEl=!1===Plugin4.isActive?null:getFullscreenElement();changeGlobalNodesTarget(null===e||e===document.documentElement?document.body:e)}function togglePluginState(){Plugin4.isActive=!1===Plugin4.isActive,updateEl()}function promisify(e,t){try{const n=e[t]();return void 0===n?Promise.resolve():n}catch(e){return Promise.reject(e)}}var Plugin4=createReactivePlugin({isActive:!1,activeEl:null},{isCapable:!1,install({$q:e}){e.fullscreen=this}});prefixes.request=["requestFullscreen","msRequestFullscreen","mozRequestFullScreen","webkitRequestFullscreen"].find((e=>void 0!==document.documentElement[e])),Plugin4.isCapable=void 0!==prefixes.request,!1===Plugin4.isCapable?assignFn((()=>Promise.reject("Not capable"))):(Object.assign(Plugin4,{request(e){const t=e||document.documentElement,{activeEl:n}=Plugin4;if(t===n)return Promise.resolve();return(null!==n&&!0===t.contains(n)?Plugin4.exit():Promise.resolve()).finally((()=>promisify(t,prefixes.request)))},exit:()=>!0===Plugin4.isActive?promisify(document,prefixes.exit):Promise.resolve(),toggle:e=>!0===Plugin4.isActive?Plugin4.exit():Plugin4.request(e)}),prefixes.exit=["exitFullscreen","msExitFullscreen","mozCancelFullScreen","webkitExitFullscreen"].find((e=>document[e])),Plugin4.isActive=Boolean(getFullscreenElement()),!0===Plugin4.isActive&&updateEl(),["onfullscreenchange","onmsfullscreenchange","onwebkitfullscreenchange"].forEach((e=>{document[e]=togglePluginState})));var Plugin5=createReactivePlugin({appVisible:!0},{install({$q:e}){injectProp(e,"appVisible",(()=>this.appVisible))}});{let e,t;if(void 0!==document.hidden?(e="hidden",t="visibilitychange"):void 0!==document.msHidden?(e="msHidden",t="msvisibilitychange"):void 0!==document.webkitHidden&&(e="webkitHidden",t="webkitvisibilitychange"),t&&void 0!==document[e]){const n=()=>{Plugin5.appVisible=!document[e]};document.addEventListener(t,n,!1)}}function encode(e){return encodeURIComponent(e)}function decode(e){return decodeURIComponent(e)}function stringifyCookieValue(e){return encode(e===Object(e)?JSON.stringify(e):""+e)}function read(e){if(""===e)return e;0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")),e=decode(e.replace(/\+/g," "));try{const t=JSON.parse(e);t!==Object(t)&&!0!==Array.isArray(t)||(e=t)}catch(e){}return e}function getString(e){const t=new Date;return t.setMilliseconds(t.getMilliseconds()+e),t.toUTCString()}function parseExpireString(e){let t=0;const n=e.match(/(\d+)d/),o=e.match(/(\d+)h/),a=e.match(/(\d+)m/),r=e.match(/(\d+)s/);return n&&(t+=864e5*n[1]),o&&(t+=36e5*o[1]),a&&(t+=6e4*a[1]),r&&(t+=1e3*r[1]),0===t?e:getString(t)}function set(e,t,n={},o){let a,r;void 0!==n.expires&&("[object Date]"===Object.prototype.toString.call(n.expires)?a=n.expires.toUTCString():"string"==typeof n.expires?a=parseExpireString(n.expires):(r=parseFloat(n.expires),a=!1===isNaN(r)?getString(864e5*r):n.expires));const i=`${encode(e)}=${stringifyCookieValue(t)}`,l=[i,void 0!==a?"; Expires="+a:"",n.path?"; Path="+n.path:"",n.domain?"; Domain="+n.domain:"",n.sameSite?"; SameSite="+n.sameSite:"",n.httpOnly?"; HttpOnly":"",n.secure?"; Secure":"",n.other?"; "+n.other:""].join("");if(o){o.req.qCookies?o.req.qCookies.push(l):o.req.qCookies=[l],o.res.setHeader("Set-Cookie",o.req.qCookies);let t=o.req.headers.cookie||"";if(void 0!==a&&r<0){const n=get(e,o);void 0!==n&&(t=t.replace(`${e}=${n}; `,"").replace(`; ${e}=${n}`,"").replace(`${e}=${n}`,""))}else t=t?`${i}; ${t}`:l;o.req.headers.cookie=t}else document.cookie=l}function get(e,t){const n=t?t.req.headers:document,o=n.cookie?n.cookie.split("; "):[],a=o.length;let r,i,l,s=e?null:{},u=0;for(;u<a;u++)if(r=o[u].split("="),i=decode(r.shift()),l=r.join("="),e){if(e===i){s=read(l);break}}else s[i]=l;return s}function remove(e,t,n){set(e,"",{expires:-1,...t},n)}function has(e,t){return null!==get(e,t)}function getObject(e){return{get:t=>get(t,e),set:(t,n,o)=>set(t,n,o,e),has:t=>has(t,e),remove:(t,n)=>remove(t,n,e),getAll:()=>get(null,e)}}createComponent({name:"BottomSheetComponent",props:{...useDarkProps,title:String,message:String,actions:Array,grid:Boolean,cardClass:[String,Array,Object],cardStyle:[String,Array,Object]},emits:["ok","hide"],setup(e,{emit:t}){const{proxy:n}=getCurrentInstance(),o=use_dark_default(e,n.$q),a=ref(null);function r(){a.value.hide()}function i(e){t("ok",e),r()}function l(){t("hide")}function s(){const t=[];return e.title&&t.push(h(QCardSection_default,{class:"q-dialog__title"},(()=>e.title))),e.message&&t.push(h(QCardSection_default,{class:"q-dialog__message"},(()=>e.message))),t.push(!0===e.grid?h("div",{class:"row items-stretch justify-start",role:"list"},e.actions.map((e=>{const t=e.avatar||e.img;return void 0===e.label?h(QSeparator_default,{class:"col-all",dark:o.value}):h("div",{class:["q-bottom-sheet__item q-hoverable q-focusable cursor-pointer relative-position",e.class],style:e.style,tabindex:0,role:"listitem",onClick(){i(e)},onKeyup(t){13===t.keyCode&&i(e)}},[h("div",{class:"q-focus-helper"}),e.icon?h(QIcon_default,{name:e.icon,color:e.color}):t?h("img",{class:e.avatar?"q-bottom-sheet__avatar":"",src:t}):h("div",{class:"q-bottom-sheet__empty-icon"}),h("div",e.label)])}))):h("div",{role:"list"},e.actions.map((e=>{const t=e.avatar||e.img;return void 0===e.label?h(QSeparator_default,{spaced:!0,dark:o.value}):h(QItem_default,{class:["q-bottom-sheet__item",e.classes],style:e.style,tabindex:0,clickable:!0,dark:o.value,onClick(){i(e)}},(()=>[h(QItemSection_default,{avatar:!0},(()=>e.icon?h(QIcon_default,{name:e.icon,color:e.color}):t?h("img",{class:e.avatar?"q-bottom-sheet__avatar":"",src:t}):null)),h(QItemSection_default,(()=>e.label))]))})))),t}function u(){return[h(QCard_default,{class:["q-bottom-sheet q-bottom-sheet--"+(!0===e.grid?"grid":"list")+(!0===o.value?" q-bottom-sheet--dark q-dark":""),e.cardClass],style:e.cardStyle},s)]}return Object.assign(n,{show:function(){a.value.show()},hide:r}),()=>h(QDialog_default,{ref:a,position:"bottom",onHide:l},u)}});var app,vm,Plugin6={install({$q:e,ssrContext:t}){e.cookies=this}};Object.assign(Plugin6,getObject()),createComponent({name:"DialogPluginComponent",props:{...useDarkProps,title:String,message:String,prompt:Object,options:Object,progress:[Boolean,Object],html:Boolean,ok:{type:[String,Object,Boolean],default:!0},cancel:[String,Object,Boolean],focus:{type:String,default:"ok",validator:e=>["ok","cancel","none"].includes(e)},stackButtons:Boolean,color:String,cardClass:[String,Array,Object],cardStyle:[String,Array,Object]},emits:["ok","hide"],setup(e,{emit:t}){const{proxy:n}=getCurrentInstance(),{$q:o}=n,a=use_dark_default(e,o),r=ref(null),i=ref(void 0!==e.prompt?e.prompt.model:void 0!==e.options?e.options.model:void 0),l=computed((()=>"q-dialog-plugin"+(!0===a.value?" q-dialog-plugin--dark q-dark":"")+(!1!==e.progress?" q-dialog-plugin--progress":""))),s=computed((()=>e.color||(!0===a.value?"amber":"primary"))),u=computed((()=>!1===e.progress?null:!0===isObject(e.progress)?{component:e.progress.spinner||QSpinner_default,props:{color:e.progress.color||s.value}}:{component:QSpinner_default,props:{color:s.value}})),c=computed((()=>void 0!==e.prompt||void 0!==e.options)),d=computed((()=>{if(!0!==c.value)return{};const{model:t,isValid:n,items:o,...a}=void 0!==e.prompt?e.prompt:e.options;return a})),p=computed((()=>!0===isObject(e.ok)||!0===e.ok?o.lang.label.ok:e.ok)),f=computed((()=>!0===isObject(e.cancel)||!0===e.cancel?o.lang.label.cancel:e.cancel)),v=computed((()=>void 0!==e.prompt?void 0!==e.prompt.isValid&&!0!==e.prompt.isValid(i.value):void 0!==e.options&&(void 0!==e.options.isValid&&!0!==e.options.isValid(i.value)))),m=computed((()=>({color:s.value,label:p.value,ripple:!1,disable:v.value,...!0===isObject(e.ok)?e.ok:{flat:!0},"data-autofocus":"ok"===e.focus&&!0!==c.value||void 0,onClick:b}))),g=computed((()=>({color:s.value,label:f.value,ripple:!1,...!0===isObject(e.cancel)?e.cancel:{flat:!0},"data-autofocus":"cancel"===e.focus&&!0!==c.value||void 0,onClick:y})));function _(){r.value.hide()}function b(){t("ok",toRaw(i.value)),_()}function y(){_()}function w(){t("hide")}function C(e){i.value=e}function S(t){!0!==v.value&&"textarea"!==e.prompt.type&&!0===isKeyCode(t,13)&&b()}function k(t,n){return!0===e.html?h(QCardSection_default,{class:t,innerHTML:n}):h(QCardSection_default,{class:t},(()=>n))}function x(){return[h(QInput_default,{color:s.value,dense:!0,autofocus:!0,dark:a.value,...d.value,modelValue:i.value,"onUpdate:modelValue":C,onKeyup:S})]}function M(){return[h(QOptionGroup_default,{color:s.value,options:e.options.items,dark:a.value,...d.value,modelValue:i.value,"onUpdate:modelValue":C})]}function T(){const t=[];return e.title&&t.push(k("q-dialog__title",e.title)),!1!==e.progress&&t.push(h(QCardSection_default,{class:"q-dialog__progress"},(()=>h(u.value.component,u.value.props)))),e.message&&t.push(k("q-dialog__message",e.message)),void 0!==e.prompt?t.push(h(QCardSection_default,{class:"scroll q-dialog-plugin__form"},x)):void 0!==e.options&&t.push(h(QSeparator_default,{dark:a.value}),h(QCardSection_default,{class:"scroll q-dialog-plugin__form"},M),h(QSeparator_default,{dark:a.value})),(e.ok||e.cancel)&&t.push(function(){const t=[];return e.cancel&&t.push(h(QBtn_default,g.value)),e.ok&&t.push(h(QBtn_default,m.value)),h(QCardActions_default,{class:!0===e.stackButtons?"items-end":"",vertical:e.stackButtons,align:"right"},(()=>t))}()),t}function $(){return[h(QCard_default,{class:[l.value,e.cardClass],style:e.cardStyle,dark:a.value},T)]}return watch((()=>e.prompt&&e.prompt.model),C),watch((()=>e.options&&e.options.model),C),Object.assign(n,{show:function(){r.value.show()},hide:_}),()=>h(QDialog_default,{ref:r,onHide:w},$)}});var uid2=0,timeout=null,props3={},activeGroups={},originalDefaults={group:"__default_quasar_group__",delay:0,message:!1,html:!1,spinnerSize:80,spinnerColor:"",messageColor:"",backgroundColor:"",boxClass:"",spinner:QSpinner_default,customClass:""},defaults={...originalDefaults};function registerProps(e){if(e&&void 0!==e.group&&void 0!==activeGroups[e.group])return Object.assign(activeGroups[e.group],e);const t=!0===isObject(e)&&!0===e.ignoreDefaults?{...originalDefaults,...e}:{...defaults,...e};return activeGroups[t.group]=t,t}var Plugin7=createReactivePlugin({isActive:!1},{show(e){props3=registerProps(e);const{group:t}=props3;return Plugin7.isActive=!0,void 0!==app?(props3.uid=uid2,vm.$forceUpdate()):(props3.uid=++uid2,null!==timeout&&clearTimeout(timeout),timeout=setTimeout((()=>{timeout=null;const e=createGlobalNode("q-loading");app=createChildApp({name:"QLoading",setup(){function t(){!0!==Plugin7.isActive&&void 0!==app&&(prevent_scroll_default(!1),app.unmount(e),removeGlobalNode(e),app=void 0,vm=void 0)}function n(){if(!0!==Plugin7.isActive)return null;const e=[h(props3.spinner,{class:"q-loading__spinner",color:props3.spinnerColor,size:props3.spinnerSize})];return props3.message&&e.push(h("div",{class:"q-loading__message"+(props3.messageColor?` text-${props3.messageColor}`:""),[!0===props3.html?"innerHTML":"textContent"]:props3.message})),h("div",{class:"q-loading fullscreen flex flex-center z-max "+props3.customClass.trim(),key:props3.uid},[h("div",{class:"q-loading__backdrop"+(props3.backgroundColor?` bg-${props3.backgroundColor}`:"")}),h("div",{class:"q-loading__box column items-center "+props3.boxClass},e)])}return onMounted((()=>{prevent_scroll_default(!0)})),()=>h(Transition$1,{name:"q-transition--fade",appear:!0,onAfterLeave:t},n)}},Plugin7.__parentApp),vm=app.mount(e)}),props3.delay)),e=>{void 0!==e&&Object(e)===e?Plugin7.show({...e,group:t}):Plugin7.hide(t)}},hide(e){if(!0===Plugin7.isActive){if(void 0===e)activeGroups={};else{if(void 0===activeGroups[e])return;{delete activeGroups[e];const t=Object.keys(activeGroups);if(0!==t.length){const e=t[t.length-1];return void Plugin7.show({group:e})}}}null!==timeout&&(clearTimeout(timeout),timeout=null),Plugin7.isActive=!1}},setDefaults(e){!0===isObject(e)&&Object.assign(defaults,e)},install({$q:e,parentApp:t}){e.loading=this,Plugin7.__parentApp=t,void 0!==e.config.loading&&this.setDefaults(e.config.loading)}}),barRef=ref(null),Plugin8=createReactivePlugin({isActive:!1},{start:noop,stop:noop,increment:noop,setDefaults:noop,install({$q:e,parentApp:t}){if(e.loadingBar=this,!0===this.__installed)return void(void 0!==e.config.loadingBar&&this.setDefaults(e.config.loadingBar));const n=ref(void 0!==e.config.loadingBar?{...e.config.loadingBar}:{});function o(){Plugin8.isActive=!0}function a(){Plugin8.isActive=!1}const r=createGlobalNode("q-loading-bar");createChildApp({name:"LoadingBar",devtools:{hide:!0},setup:()=>()=>h(QAjaxBar_default,{...n.value,onStart:o,onStop:a,ref:barRef})},t).mount(r),Object.assign(this,{start(e){barRef.value.start(e)},stop(){barRef.value.stop()},increment(){barRef.value.increment.apply(null,arguments)},setDefaults(e){!0===isObject(e)&&Object.assign(n.value,e)}})}});function encode2(e){return!0===isDate(e)?"__q_date|"+e.getTime():!0===isRegexp(e)?"__q_expr|"+e.source:"number"==typeof e?"__q_numb|"+e:"boolean"==typeof e?"__q_bool|"+(e?"1":"0"):"string"==typeof e?"__q_strn|"+e:"function"==typeof e?"__q_strn|"+e.toString():e===Object(e)?"__q_objt|"+JSON.stringify(e):e}function decode2(e){if(e.length<9)return e;const t=e.substring(0,8),n=e.substring(9);switch(t){case"__q_date":const t=Number(n);return new Date(!0===Number.isNaN(t)?n:t);case"__q_expr":return new RegExp(n);case"__q_numb":return Number(n);case"__q_bool":return Boolean("1"===n);case"__q_strn":return""+n;case"__q_objt":return JSON.parse(n);default:return e}}function getEmptyStorage(){const e=()=>null;return{has:()=>!1,hasItem:()=>!1,getLength:()=>0,getItem:e,getIndex:e,getKey:e,getAll:()=>{},getAllKeys:()=>[],set:noop,setItem:noop,remove:noop,removeItem:noop,clear:noop,isEmpty:()=>!0}}function getStorage(e){const t=window[e+"Storage"],n=e=>{const n=t.getItem(e);return n?decode2(n):null},o=e=>null!==t.getItem(e),a=(e,n)=>{t.setItem(e,encode2(n))},r=e=>{t.removeItem(e)};return{has:o,hasItem:o,getLength:()=>t.length,getItem:n,getIndex:e=>e<t.length?n(t.key(e)):null,getKey:e=>e<t.length?t.key(e):null,getAll:()=>{let e;const o={},a=t.length;for(let r=0;r<a;r++)e=t.key(r),o[e]=n(e);return o},getAllKeys:()=>{const e=[],n=t.length;for(let o=0;o<n;o++)e.push(t.key(o));return e},set:a,setItem:a,remove:r,removeItem:r,clear:()=>{t.clear()},isEmpty:()=>0===t.length}}var storage=!1===client.has.webStorage?getEmptyStorage():getStorage("local"),Plugin9={install({$q:e}){e.localStorage=storage}};Object.assign(Plugin9,storage);var storage2=!1===client.has.webStorage?getEmptyStorage():getStorage("session"),Plugin10={install({$q:e}){e.sessionStorage=storage2}};Object.assign(Plugin10,storage2);var emits2=["ok","hide"];get_emits_object_default(emits2);const index="",funDateformat=(e,t)=>e?(e instanceof it&&(e=e.toDate()),t=(t=(t=(t=(t=(t=(t=t.replace(/YYYY/g,e.getFullYear().toString())).replace(/MM/g,("0"+(e.getMonth()+1)).slice(-2))).replace(/DD/g,("0"+e.getDate()).slice(-2))).replace(/hh/g,("0"+e.getHours()).slice(-2))).replace(/mm/g,("0"+e.getMinutes()).slice(-2))).replace(/ss/g,("0"+e.getSeconds()).slice(-2))).replace(/SSS/g,("00"+e.getMilliseconds()).slice(-3))):"",isSpinner=ref(!1),numProgress=ref(0),fileToBlobUrl=e=>window.URL.createObjectURL(e),imageDataURLToFile=(e,t,n)=>fetch(e).then((e=>e.arrayBuffer())).then((e=>new File([e],t,{type:n}))),generateThumbnailFromPDF=async(e,t)=>{const n=await import("./pdf-a06b7450.js").then((e=>e.p)),o=await import("./pdf.worker.entry-9502d09e.js").then((e=>e.p));n.GlobalWorkerOptions.workerSrc=o;const a=await n.getDocument(fileToBlobUrl(e)).promise,r=await a.getPage(1),i=r.getViewport({scale:1}),l=document.createElement("canvas");l.id=`pdf_thumbnail${t}`;const s=l.getContext("2d");l.height=i.height,l.width=i.width;const u={canvasContext:s,viewport:i};await r.render(u).promise;const c=await imageDataURLToFile(l.toDataURL(),"temp_thumbnail.png","image/png");return URL.createObjectURL(c)},stringToByteArray$1=function(e){const t=[];let n=0;for(let o=0;o<e.length;o++){let a=e.charCodeAt(o);a<128?t[n++]=a:a<2048?(t[n++]=a>>6|192,t[n++]=63&a|128):55296==(64512&a)&&o+1<e.length&&56320==(64512&e.charCodeAt(o+1))?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++o)),t[n++]=a>>18|240,t[n++]=a>>12&63|128,t[n++]=a>>6&63|128,t[n++]=63&a|128):(t[n++]=a>>12|224,t[n++]=a>>6&63|128,t[n++]=63&a|128)}return t},byteArrayToString=function(e){const t=[];let n=0,o=0;for(;n<e.length;){const a=e[n++];if(a<128)t[o++]=String.fromCharCode(a);else if(a>191&&a<224){const r=e[n++];t[o++]=String.fromCharCode((31&a)<<6|63&r)}else if(a>239&&a<365){const r=((7&a)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[o++]=String.fromCharCode(55296+(r>>10)),t[o++]=String.fromCharCode(56320+(1023&r))}else{const r=e[n++],i=e[n++];t[o++]=String.fromCharCode((15&a)<<12|(63&r)<<6|63&i)}}return t.join("")},base64={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,o=[];for(let t=0;t<e.length;t+=3){const a=e[t],r=t+1<e.length,i=r?e[t+1]:0,l=t+2<e.length,s=l?e[t+2]:0,u=a>>2,c=(3&a)<<4|i>>4;let d=(15&i)<<2|s>>6,p=63&s;l||(p=64,r||(d=64)),o.push(n[u],n[c],n[d],n[p])}return o.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(stringToByteArray$1(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):byteArrayToString(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,o=[];for(let t=0;t<e.length;){const a=n[e.charAt(t++)],r=t<e.length?n[e.charAt(t)]:0;++t;const i=t<e.length?n[e.charAt(t)]:64;++t;const l=t<e.length?n[e.charAt(t)]:64;if(++t,null==a||null==r||null==i||null==l)throw new DecodeBase64StringError2;const s=a<<2|r>>4;if(o.push(s),64!==i){const e=r<<4&240|i>>2;if(o.push(e),64!==l){const e=i<<6&192|l;o.push(e)}}}return o},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class DecodeBase64StringError2 extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const base64Encode=function(e){const t=stringToByteArray$1(e);return base64.encodeByteArray(t,!0)},base64urlEncodeWithoutPadding=function(e){return base64Encode(e).replace(/\./g,"")};function isIndexedDBAvailable(){try{return"object"==typeof indexedDB}catch(e){return!1}}function validateIndexedDBOpenable(){return new Promise(((e,t)=>{try{let n=!0;const o="validate-browser-context-for-indexeddb-analytics-module",a=self.indexedDB.open(o);a.onsuccess=()=>{a.result.close(),n||self.indexedDB.deleteDatabase(o),e(!0)},a.onupgradeneeded=()=>{n=!1},a.onerror=()=>{var e;t((null===(e=a.error)||void 0===e?void 0:e.message)||"")}}catch(e){t(e)}}))}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const ERROR_NAME="FirebaseError";class FirebaseError2 extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name=ERROR_NAME,Object.setPrototypeOf(this,FirebaseError2.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ErrorFactory2.prototype.create)}}class ErrorFactory2{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){const n=t[0]||{},o=`${this.service}/${e}`,a=this.errors[e],r=a?replaceTemplate(a,n):"Error",i=`${this.serviceName}: ${r} (${o}).`;return new FirebaseError2(o,i,n)}}function replaceTemplate(e,t){return e.replace(PATTERN,((e,n)=>{const o=t[n];return null!=o?String(o):`<${n}?>`}))}const PATTERN=/\{\$([^}]+)}/g;class Component2{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var LogLevel;!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(LogLevel||(LogLevel={}));const levelStringToEnum={debug:LogLevel.DEBUG,verbose:LogLevel.VERBOSE,info:LogLevel.INFO,warn:LogLevel.WARN,error:LogLevel.ERROR,silent:LogLevel.SILENT},defaultLogLevel=LogLevel.INFO,ConsoleMethod={[LogLevel.DEBUG]:"log",[LogLevel.VERBOSE]:"log",[LogLevel.INFO]:"info",[LogLevel.WARN]:"warn",[LogLevel.ERROR]:"error"},defaultLogHandler=(e,t,...n)=>{if(t<e.logLevel)return;const o=(new Date).toISOString(),a=ConsoleMethod[t];if(!a)throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`);console[a](`[${o}]  ${e.name}:`,...n)};class Logger2{constructor(e){this.name=e,this._logLevel=defaultLogLevel,this._logHandler=defaultLogHandler,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in LogLevel))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?levelStringToEnum[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,LogLevel.DEBUG,...e),this._logHandler(this,LogLevel.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,LogLevel.VERBOSE,...e),this._logHandler(this,LogLevel.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,LogLevel.INFO,...e),this._logHandler(this,LogLevel.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,LogLevel.WARN,...e),this._logHandler(this,LogLevel.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,LogLevel.ERROR,...e),this._logHandler(this,LogLevel.ERROR,...e)}}
/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class PlatformLoggerServiceImpl2{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map((e=>{if(isVersionServiceProvider(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null})).filter((e=>e)).join(" ")}}function isVersionServiceProvider(e){const t=e.getComponent();return"VERSION"===(null==t?void 0:t.type)}const name$q="@firebase/app",version$1="0.10.13",logger=new Logger2("@firebase/app"),name$p="@firebase/app-compat",name$o="@firebase/analytics-compat",name$n="@firebase/analytics",name$m="@firebase/app-check-compat",name$l="@firebase/app-check",name$k="@firebase/auth",name$j="@firebase/auth-compat",name$i="@firebase/database",name$h="@firebase/data-connect",name$g="@firebase/database-compat",name$f="@firebase/functions",name$e="@firebase/functions-compat",name$d="@firebase/installations",name$c="@firebase/installations-compat",name$b="@firebase/messaging",name$a="@firebase/messaging-compat",name$9="@firebase/performance",name$8="@firebase/performance-compat",name$7="@firebase/remote-config",name$6="@firebase/remote-config-compat",name$5="@firebase/storage",name$4="@firebase/storage-compat",name$3="@firebase/firestore",name$2="@firebase/vertexai-preview",name$1="@firebase/firestore-compat",name$r="firebase",version$2="10.14.1",PLATFORM_LOG_STRING={[name$q]:"fire-core",[name$p]:"fire-core-compat",[name$n]:"fire-analytics",[name$o]:"fire-analytics-compat",[name$l]:"fire-app-check",[name$m]:"fire-app-check-compat",[name$k]:"fire-auth",[name$j]:"fire-auth-compat",[name$i]:"fire-rtdb",[name$h]:"fire-data-connect",[name$g]:"fire-rtdb-compat",[name$f]:"fire-fn",[name$e]:"fire-fn-compat",[name$d]:"fire-iid",[name$c]:"fire-iid-compat",[name$b]:"fire-fcm",[name$a]:"fire-fcm-compat",[name$9]:"fire-perf",[name$8]:"fire-perf-compat",[name$7]:"fire-rc",[name$6]:"fire-rc-compat",[name$5]:"fire-gcs",[name$4]:"fire-gcs-compat",[name$3]:"fire-fst",[name$1]:"fire-fst-compat",[name$2]:"fire-vertex","fire-js":"fire-js",[name$r]:"fire-js-all"},_apps=new Map,_serverApps=new Map,_components=new Map;function _addComponent(e,t){try{e.container.addComponent(t)}catch(n){logger.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function _registerComponent(e){const t=e.name;if(_components.has(t))return logger.debug(`There were multiple attempts to register component ${t}.`),!1;_components.set(t,e);for(const t of _apps.values())_addComponent(t,e);for(const t of _serverApps.values())_addComponent(t,e);return!0}
/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const ERRORS={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},ERROR_FACTORY=new ErrorFactory2("app","Firebase",ERRORS),SDK_VERSION="10.14.1";function registerVersion(e,t,n){var o;let a=null!==(o=PLATFORM_LOG_STRING[e])&&void 0!==o?o:e;n&&(a+=`-${n}`);const r=a.match(/\s|\//),i=t.match(/\s|\//);if(r||i){const e=[`Unable to register library "${a}" with version "${t}":`];return r&&e.push(`library name "${a}" contains illegal characters (whitespace or "/")`),r&&i&&e.push("and"),i&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void logger.warn(e.join(" "))}_registerComponent(new Component2(`${a}-version`,(()=>({library:a,version:t})),"VERSION"))}
/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const DB_NAME="firebase-heartbeat-database",DB_VERSION=1,STORE_NAME="firebase-heartbeat-store";let dbPromise=null;function getDbPromise(){return dbPromise||(dbPromise=openDB(DB_NAME,1,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(STORE_NAME)}catch(e){console.warn(e)}}}).catch((e=>{throw ERROR_FACTORY.create("idb-open",{originalErrorMessage:e.message})}))),dbPromise}async function readHeartbeatsFromIndexedDB(e){try{const t=(await getDbPromise()).transaction(STORE_NAME),n=await t.objectStore(STORE_NAME).get(computeKey(e));return await t.done,n}catch(e){if(e instanceof FirebaseError2)logger.warn(e.message);else{const t=ERROR_FACTORY.create("idb-get",{originalErrorMessage:null==e?void 0:e.message});logger.warn(t.message)}}}async function writeHeartbeatsToIndexedDB(e,t){try{const n=(await getDbPromise()).transaction(STORE_NAME,"readwrite"),o=n.objectStore(STORE_NAME);await o.put(t,computeKey(e)),await n.done}catch(e){if(e instanceof FirebaseError2)logger.warn(e.message);else{const t=ERROR_FACTORY.create("idb-set",{originalErrorMessage:null==e?void 0:e.message});logger.warn(t.message)}}}function computeKey(e){return`${e.name}!${e.options.appId}`}
/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const MAX_HEADER_BYTES=1024,STORED_HEARTBEAT_RETENTION_MAX_MILLIS=2592e6;class HeartbeatServiceImpl2{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new HeartbeatStorageImpl2(t),this._heartbeatsCachePromise=this._storage.read().then((e=>(this._heartbeatsCache=e,e)))}async triggerHeartbeat(){var e,t;try{const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),o=getUTCDateString();if(null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)&&(this._heartbeatsCache=await this._heartbeatsCachePromise,null==(null===(t=this._heartbeatsCache)||void 0===t?void 0:t.heartbeats)))return;if(this._heartbeatsCache.lastSentHeartbeatDate===o||this._heartbeatsCache.heartbeats.some((e=>e.date===o)))return;return this._heartbeatsCache.heartbeats.push({date:o,agent:n}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter((e=>{const t=new Date(e.date).valueOf();return Date.now()-t<=2592e6})),this._storage.overwrite(this._heartbeatsCache)}catch(e){logger.warn(e)}}async getHeartbeatsHeader(){var e;try{if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||0===this._heartbeatsCache.heartbeats.length)return"";const t=getUTCDateString(),{heartbeatsToSend:n,unsentEntries:o}=extractHeartbeatsForHeader(this._heartbeatsCache.heartbeats),a=base64urlEncodeWithoutPadding(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=t,o.length>0?(this._heartbeatsCache.heartbeats=o,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),a}catch(e){return logger.warn(e),""}}}function getUTCDateString(){return(new Date).toISOString().substring(0,10)}function extractHeartbeatsForHeader(e,t=1024){const n=[];let o=e.slice();for(const a of e){const e=n.find((e=>e.agent===a.agent));if(e){if(e.dates.push(a.date),countBytes(n)>t){e.dates.pop();break}}else if(n.push({agent:a.agent,dates:[a.date]}),countBytes(n)>t){n.pop();break}o=o.slice(1)}return{heartbeatsToSend:n,unsentEntries:o}}class HeartbeatStorageImpl2{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!isIndexedDBAvailable()&&validateIndexedDBOpenable().then((()=>!0)).catch((()=>!1))}async read(){if(await this._canUseIndexedDBPromise){const e=await readHeartbeatsFromIndexedDB(this.app);return(null==e?void 0:e.heartbeats)?e:{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return writeHeartbeatsToIndexedDB(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return writeHeartbeatsToIndexedDB(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function countBytes(e){return base64urlEncodeWithoutPadding(JSON.stringify({version:2,heartbeats:e})).length}
/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function registerCoreComponents(e){_registerComponent(new Component2("platform-logger",(e=>new PlatformLoggerServiceImpl2(e)),"PRIVATE")),_registerComponent(new Component2("heartbeat",(e=>new HeartbeatServiceImpl2(e)),"PRIVATE")),registerVersion(name$q,"0.10.13",e),registerVersion(name$q,"0.10.13","esm2017"),registerVersion("fire-js","")}registerCoreComponents("");
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
const DEFAULT_HOST="firebasestorage.googleapis.com",CONFIG_STORAGE_BUCKET_KEY="storageBucket",DEFAULT_MAX_OPERATION_RETRY_TIME=12e4,DEFAULT_MAX_UPLOAD_RETRY_TIME=6e5;
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
class StorageError extends FirebaseError2{constructor(e,t,n=0){super(prependCode(e),`Firebase Storage: ${t} (${prependCode(e)})`),this.status_=n,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,StorageError.prototype)}get status(){return this.status_}set status(e){this.status_=e}_codeEquals(e){return prependCode(e)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(e){this.customData.serverResponse=e,this.customData.serverResponse?this.message=`${this._baseMessage}\n${this.customData.serverResponse}`:this.message=this._baseMessage}}var StorageErrorCode,ErrorCode;function prependCode(e){return"storage/"+e}function unknown(){return new StorageError(StorageErrorCode.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function retryLimitExceeded(){return new StorageError(StorageErrorCode.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function canceled(){return new StorageError(StorageErrorCode.CANCELED,"User canceled the upload/download.")}function invalidUrl(e){return new StorageError(StorageErrorCode.INVALID_URL,"Invalid URL '"+e+"'.")}function invalidDefaultBucket(e){return new StorageError(StorageErrorCode.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+e+"'.")}function invalidArgument(e){return new StorageError(StorageErrorCode.INVALID_ARGUMENT,e)}function appDeleted(){return new StorageError(StorageErrorCode.APP_DELETED,"The Firebase app was deleted.")}function invalidRootOperation(e){return new StorageError(StorageErrorCode.INVALID_ROOT_OPERATION,"The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */!function(e){e.UNKNOWN="unknown",e.OBJECT_NOT_FOUND="object-not-found",e.BUCKET_NOT_FOUND="bucket-not-found",e.PROJECT_NOT_FOUND="project-not-found",e.QUOTA_EXCEEDED="quota-exceeded",e.UNAUTHENTICATED="unauthenticated",e.UNAUTHORIZED="unauthorized",e.UNAUTHORIZED_APP="unauthorized-app",e.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",e.INVALID_CHECKSUM="invalid-checksum",e.CANCELED="canceled",e.INVALID_EVENT_NAME="invalid-event-name",e.INVALID_URL="invalid-url",e.INVALID_DEFAULT_BUCKET="invalid-default-bucket",e.NO_DEFAULT_BUCKET="no-default-bucket",e.CANNOT_SLICE_BLOB="cannot-slice-blob",e.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",e.NO_DOWNLOAD_URL="no-download-url",e.INVALID_ARGUMENT="invalid-argument",e.INVALID_ARGUMENT_COUNT="invalid-argument-count",e.APP_DELETED="app-deleted",e.INVALID_ROOT_OPERATION="invalid-root-operation",e.INVALID_FORMAT="invalid-format",e.INTERNAL_ERROR="internal-error",e.UNSUPPORTED_ENVIRONMENT="unsupported-environment"}(StorageErrorCode||(StorageErrorCode={}));class Location{constructor(e,t){this.bucket=e,this.path_=t}get path(){return this.path_}get isRoot(){return 0===this.path.length}fullServerUrl(){const e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(e,t){let n;try{n=Location.makeFromUrl(e,t)}catch(t){return new Location(e,"")}if(""===n.path)return n;throw invalidDefaultBucket(e)}static makeFromUrl(e,t){let n=null;const o="([A-Za-z0-9.\\-_]+)";const a=new RegExp("^gs://"+o+"(/(.*))?$","i");function r(e){e.path_=decodeURIComponent(e.path)}const i=t.replace(/[.]/g,"\\."),l=[{regex:a,indices:{bucket:1,path:3},postModify:function(e){"/"===e.path.charAt(e.path.length-1)&&(e.path_=e.path_.slice(0,-1))}},{regex:new RegExp(`^https?://${i}/v[A-Za-z0-9_]+/b/${o}/o(/([^?#]*).*)?$`,"i"),indices:{bucket:1,path:3},postModify:r},{regex:new RegExp(`^https?://${t===DEFAULT_HOST?"(?:storage.googleapis.com|storage.cloud.google.com)":t}/${o}/([^?#]*)`,"i"),indices:{bucket:1,path:2},postModify:r}];for(let t=0;t<l.length;t++){const o=l[t],a=o.regex.exec(e);if(a){const e=a[o.indices.bucket];let t=a[o.indices.path];t||(t=""),n=new Location(e,t),o.postModify(n);break}}if(null==n)throw invalidUrl(e);return n}}class FailRequest{constructor(e){this.promise_=Promise.reject(e)}getPromise(){return this.promise_}cancel(e=!1){}}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function start(e,t,n){let o=1,a=null,r=null,i=!1,l=0;function s(){return 2===l}let u=!1;function c(...e){u||(u=!0,t.apply(null,e))}function d(t){a=setTimeout((()=>{a=null,e(h,s())}),t)}function p(){r&&clearTimeout(r)}function h(e,...t){if(u)return void p();if(e)return p(),void c.call(null,e,...t);if(s()||i)return p(),void c.call(null,e,...t);let n;o<64&&(o*=2),1===l?(l=2,n=0):n=1e3*(o+Math.random()),d(n)}let f=!1;function v(e){f||(f=!0,p(),u||(null!==a?(e||(l=2),clearTimeout(a),d(0)):e||(l=1)))}return d(0),r=setTimeout((()=>{i=!0,v(!0)}),n),v}function stop(e){e(!1)}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function isJustDef(e){return void 0!==e}function validateNumber(e,t,n,o){if(o<t)throw invalidArgument(`Invalid value for '${e}'. Expected ${t} or greater.`);if(o>n)throw invalidArgument(`Invalid value for '${e}'. Expected ${n} or less.`)}function makeQueryString(e){const t=encodeURIComponent;let n="?";for(const o in e)if(e.hasOwnProperty(o)){n=n+(t(o)+"="+t(e[o]))+"&"}return n=n.slice(0,-1),n}
/**
 * @license
 * Copyright 2022 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
function isRetryStatusCode(e,t){const n=e>=500&&e<600,o=-1!==[408,429].indexOf(e),a=-1!==t.indexOf(e);return n||o||a}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */!function(e){e[e.NO_ERROR=0]="NO_ERROR",e[e.NETWORK_ERROR=1]="NETWORK_ERROR",e[e.ABORT=2]="ABORT"}(ErrorCode||(ErrorCode={}));class NetworkRequest{constructor(e,t,n,o,a,r,i,l,s,u,c,d=!0){this.url_=e,this.method_=t,this.headers_=n,this.body_=o,this.successCodes_=a,this.additionalRetryCodes_=r,this.callback_=i,this.errorCallback_=l,this.timeout_=s,this.progressCallback_=u,this.connectionFactory_=c,this.retry=d,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise(((e,t)=>{this.resolve_=e,this.reject_=t,this.start_()}))}start_(){const e=(e,t)=>{if(t)return void e(!1,new RequestEndStatus(!1,null,!0));const n=this.connectionFactory_();this.pendingConnection_=n;const o=e=>{const t=e.loaded,n=e.lengthComputable?e.total:-1;null!==this.progressCallback_&&this.progressCallback_(t,n)};null!==this.progressCallback_&&n.addUploadProgressListener(o),n.send(this.url_,this.method_,this.body_,this.headers_).then((()=>{null!==this.progressCallback_&&n.removeUploadProgressListener(o),this.pendingConnection_=null;const t=n.getErrorCode()===ErrorCode.NO_ERROR,a=n.getStatus();if(!t||isRetryStatusCode(a,this.additionalRetryCodes_)&&this.retry){const t=n.getErrorCode()===ErrorCode.ABORT;return void e(!1,new RequestEndStatus(!1,null,t))}const r=-1!==this.successCodes_.indexOf(a);e(!0,new RequestEndStatus(r,n))}))},t=(e,t)=>{const n=this.resolve_,o=this.reject_,a=t.connection;if(t.wasSuccessCode)try{const e=this.callback_(a,a.getResponse());isJustDef(e)?n(e):n()}catch(e){o(e)}else if(null!==a){const e=unknown();e.serverResponse=a.getErrorText(),this.errorCallback_?o(this.errorCallback_(a,e)):o(e)}else if(t.canceled){o(this.appDelete_?appDeleted():canceled())}else{o(retryLimitExceeded())}};this.canceled_?t(0,new RequestEndStatus(!1,null,!0)):this.backoffId_=start(e,t,this.timeout_)}getPromise(){return this.promise_}cancel(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&stop(this.backoffId_),null!==this.pendingConnection_&&this.pendingConnection_.abort()}}class RequestEndStatus{constructor(e,t,n){this.wasSuccessCode=e,this.connection=t,this.canceled=!!n}}function addAuthHeader_(e,t){null!==t&&t.length>0&&(e.Authorization="Firebase "+t)}function addVersionHeader_(e,t){e["X-Firebase-Storage-Version"]="webjs/"+(null!=t?t:"AppManager")}function addGmpidHeader_(e,t){t&&(e["X-Firebase-GMPID"]=t)}function addAppCheckHeader_(e,t){null!==t&&(e["X-Firebase-AppCheck"]=t)}function makeRequest(e,t,n,o,a,r,i=!0){const l=makeQueryString(e.urlParams),s=e.url+l,u=Object.assign({},e.headers);return addGmpidHeader_(u,t),addAuthHeader_(u,n),addVersionHeader_(u,r),addAppCheckHeader_(u,o),new NetworkRequest(s,e.method,u,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,a,i)}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function parent(e){if(0===e.length)return null;const t=e.lastIndexOf("/");if(-1===t)return"";return e.slice(0,t)}function lastComponent(e){const t=e.lastIndexOf("/",e.length-2);return-1===t?e:e.slice(t+1)}
/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Reference{constructor(e,t){this._service=e,this._location=t instanceof Location?t:Location.makeFromUrl(t,e.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(e,t){return new Reference(e,t)}get root(){const e=new Location(this._location.bucket,"");return this._newRef(this._service,e)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return lastComponent(this._location.path)}get storage(){return this._service}get parent(){const e=parent(this._location.path);if(null===e)return null;const t=new Location(this._location.bucket,e);return new Reference(this._service,t)}_throwIfRoot(e){if(""===this._location.path)throw invalidRootOperation(e)}}function extractBucket(e,t){const n=null==t?void 0:t.storageBucket;return null==n?null:Location.makeFromBucketSpec(n,e)}class FirebaseStorageImpl{constructor(e,t,n,o,a){this.app=e,this._authProvider=t,this._appCheckProvider=n,this._url=o,this._firebaseVersion=a,this._bucket=null,this._host=DEFAULT_HOST,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,this._bucket=null!=o?Location.makeFromBucketSpec(o,this._host):extractBucket(this._host,this.app.options)}get host(){return this._host}set host(e){this._host=e,null!=this._url?this._bucket=Location.makeFromBucketSpec(this._url,e):this._bucket=extractBucket(e,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(e){validateNumber("time",0,Number.POSITIVE_INFINITY,e),this._maxUploadRetryTime=e}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(e){validateNumber("time",0,Number.POSITIVE_INFINITY,e),this._maxOperationRetryTime=e}async _getAuthToken(){if(this._overrideAuthToken)return this._overrideAuthToken;const e=this._authProvider.getImmediate({optional:!0});if(e){const t=await e.getToken();if(null!==t)return t.accessToken}return null}async _getAppCheckToken(){const e=this._appCheckProvider.getImmediate({optional:!0});if(e){return(await e.getToken()).token}return null}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach((e=>e.cancel())),this._requests.clear()),Promise.resolve()}_makeStorageReference(e){return new Reference(this,e)}_makeRequest(e,t,n,o,a=!0){if(this._deleted)return new FailRequest(appDeleted());{const r=makeRequest(e,this._appId,n,o,t,this._firebaseVersion,a);return this._requests.add(r),r.getPromise().then((()=>this._requests.delete(r)),(()=>this._requests.delete(r))),r}}async makeRequestWithTokens(e,t){const[n,o]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(e,t,n,o).getPromise()}}const name="@firebase/storage",version="0.13.2",STORAGE_TYPE="storage";function factory(e,{instanceIdentifier:t}){const n=e.getProvider("app").getImmediate(),o=e.getProvider("auth-internal"),a=e.getProvider("app-check-internal");return new FirebaseStorageImpl(n,o,a,t,"10.14.1")}function registerStorage(){_registerComponent(new Component2("storage",factory,"PUBLIC").setMultipleInstances(!0)),registerVersion(name,version,""),registerVersion(name,version,"esm2017")}function randomName(e,t){void 0===e&&(e=20);for(var n="",o="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",a=o+o.toUpperCase()+"0123456789",r=0;r<e;r++)n+=a.charAt(Math.floor(Math.random()*a.length));if(t){var i=t.name.split("."),l=i[i.length-1];n="".concat(n,".").concat(l)}return n}function easyDownload(e,t,n){var o=new XMLHttpRequest;return o.open("GET",e,!0),o.onprogress=function(e){var t=100*e.loaded/e.total||0;n&&n(t)},o.responseType="blob",new Promise((function(e,n){o.addEventListener("error",(function(){n("Cannot download from this URL")})),o.onload=function(n){var a=o.response,r=window.URL.createObjectURL(a),i=document.createElement("a");document.body.appendChild(i),i.href=r,t?i.setAttribute("download",t):i.setAttribute("download",randomName(10)),i.click(),i.remove(),e("success")},o.send()}))}registerStorage();const _hoisted_1={class:"_title"},_hoisted_2={style:{width:"100%"}},_hoisted_3={class:"_hidden"},_hoisted_4={class:"_update"},_sfc_main=defineComponent({__name:"CCCardDownload",props:{data:{type:Object},isPc:{type:Boolean,default:!0}},setup(e){const t=useQuasar();console.log(t);const n=e,o=ref(null),a=ref("");onMounted((async()=>{if(!n.data)return;const e=await fetch(n.data.urlDocThumbnail),t=await e.blob();if("image/svg+xml"===t.type){const e=new Blob([t],{type:"image/svg+xml"});o.value=new File([e],"fileInfo",{type:t.type})}else if(!n.data.urlDocThumbnail&&n.data.urlDoc.includes(".pdf")){const e=await fetch(n.data.urlDoc),t=await e.blob(),o=new File([t],n.data.docName,{type:"application/pdf"});a.value=await generateThumbnailFromPDF(o,r.value)}else o.value=new File([t],"fileInfo")}));const r=computed((()=>{const e=n.data;return(null==e?void 0:e.individualDocId)?e.individualDocId:(null==e?void 0:e.commonDocId)?e.commonDocId:""}));return(o,a)=>(openBlock(),createBlock(QCard_default,{class:"_card",flat:"",bordered:""},{default:withCtx((()=>[createElementVNode("div",null,[createVNode(QCardSection_default,{class:"_card_header"},{default:withCtx((()=>{var r,i;return[createElementVNode("div",_hoisted_1,[createElementVNode("div",_hoisted_2,[createElementVNode("div",_hoisted_3,toDisplayString(null==(r=n.data)?void 0:r.docName),1),e.isPc?(openBlock(),createBlock(QTooltip_default,{key:0,anchor:"center left",offset:[10,10]},{default:withCtx((()=>{var e;return[createTextVNode(toDisplayString(null==(e=n.data)?void 0:e.docName),1)]})),_:1})):createCommentVNode("",!0),createElementVNode("div",null,[createElementVNode("span",_hoisted_4,"更新:"+toDisplayString(unref(funDateformat)(null==(i=n.data)?void 0:i.docUpdDate,"YYYY年MM月DD日")),1)])])]),createVNode(QSpace_default),createVNode(QBtn_default,{round:"",flat:"",icon:"more_vert",class:"_menu_btn"},{default:withCtx((()=>[createVNode(QMenu_default,null,{default:withCtx((()=>[createVNode(QList_default,{style:{"min-width":"100px"}},{default:withCtx((()=>[withDirectives((openBlock(),createBlock(QItem_default,{clickable:"",onClick:a[0]||(a[0]=e=>(async()=>{var e,t;(null==(e=n.data)?void 0:e.urlDoc)&&(isSpinner.value=!0,easyDownload(null==(t=n.data)?void 0:t.urlDoc,n.data.docName,(e=>{numProgress.value=e/100,e>=100&&(numProgress.value=0)})),isSpinner.value=!1)})())},{default:withCtx((()=>[createVNode(QItemSection_default,null,{default:withCtx((()=>a[4]||(a[4]=[createTextVNode("ダウンロード")]))),_:1})])),_:1})),[[ClosePopup_default]]),createVNode(QSeparator_default),withDirectives((openBlock(),createBlock(QItem_default,{clickable:"",onClick:a[1]||(a[1]=e=>o.$emit("onEdit"))},{default:withCtx((()=>[createVNode(QItemSection_default,null,{default:withCtx((()=>a[5]||(a[5]=[createTextVNode("編集")]))),_:1})])),_:1})),[[ClosePopup_default]]),createElementVNode("div",null,[createVNode(QSeparator_default)]),withDirectives((openBlock(),createBlock(QItem_default,{clickable:"",onClick:a[2]||(a[2]=e=>o.$emit("onDelete"))},{default:withCtx((()=>[createVNode(QItemSection_default,null,{default:withCtx((()=>a[6]||(a[6]=[createTextVNode("削除")]))),_:1})])),_:1})),[[ClosePopup_default]]),createElementVNode("div",null,[createVNode(QSeparator_default)]),withDirectives((openBlock(),createBlock(QItem_default,{clickable:"",onClick:a[3]||(a[3]=e=>{var o,a;return a=(a=(null==(o=n.data)?void 0:o.urlDoc)||"").replace("location.origin",`${location.origin}/`),void copyToClipboard(a).then((()=>{t.notify({position:"top",message:`${a}をクリップボードに保存`,badgeStyle:"display: none;"})}))})},{default:withCtx((()=>[createVNode(QItemSection_default,null,{default:withCtx((()=>a[7]||(a[7]=[createTextVNode("共有用URL")]))),_:1})])),_:1})),[[ClosePopup_default]]),createElementVNode("div",null,[createVNode(QSeparator_default)]),withDirectives((openBlock(),createBlock(QItem_default,{clickable:""},{default:withCtx((()=>[createVNode(QItemSection_default,null,{default:withCtx((()=>a[8]||(a[8]=[createTextVNode("閉じる")]))),_:1})])),_:1})),[[ClosePopup_default]])])),_:1})])),_:1})])),_:1})]})),_:1})])])),_:1}))}}),CCCardDownload_vue_vue_type_style_index_0_scoped_634f04a4_lang="",CCCardDownload=_export_sfc(_sfc_main,[["__scopeId","data-v-634f04a4"]]);function getPankuzuItemFromRoute(e){var t;return(null==(t=null==e?void 0:e.meta)?void 0:t.items)??[]}export{CCButton,CCButtonSet,CCCalendar,CCCard,CCCardDownload,CCCheckbox,CCDialogConfirmation,CCFilterDrawerForMagnetarTabel,CCFilterDrawer as CCFilterDrawerVue,CCGlobalNavi,CCHeader,CCImageMenuButton,CCImageUploader,CCInput,CCMDIcon,CCModal,CCPagination,CCPankuzu,_sfc_main$2 as CCPaymentRatePieChart,CCRadio,CCSelect,CCSpinner,CCTab,CCTextarea,CCToast,CCToggle,CCWheelMultiPicker,CCWheelPicker,getPankuzuItemFromRoute};
//# sourceMappingURL=/sm/b8d7ee8714d545e6af0afc503d46694dc6032c9e0e221d8fb5533239f0619046.map