Skip to content

Firefly III: a personal finances manager

Finalize create transaction form.

James Colec00be92f9745
diff --git a/public/build/assets/create-409a9a86.js b/public/build/assets/create-409a9a86.js
new file mode 100644
index 0000000000..62bfa20cca
--- /dev/null
+++ b/public/build/assets/create-409a9a86.js
@@ -0,0 +1 @@
+import{a as _,d as P,g as x,l as E}from"./load-translations-9dfbf635.js";import{f as T,k as I,l as m,I as L,m as A}from"./vendor-97200597.js";import{a as D,G as O,f as y}from"./get-35a1642f.js";function b(){return{id:"",name:"",alpine_name:""}}function C(){return{description:[],amount:[],currency_code:[],foreign_amount:[],foreign_currency_code:[],source_account:[],destination_account:[],budget_id:[],category_name:[],piggy_bank_id:[],bill_id:[],tags:[],notes:[],internal_reference:[],external_url:[],latitude:[],longitude:[],zoom_level:[],date:[],interest_date:[],book_date:[],process_date:[],due_date:[],payment_date:[],invoice_date:[]}}function B(){let t=T(new Date,"yyyy-MM-dd HH:mm");return{description:"",amount:"",currency_code:"EUR",foreign_amount:"",foreign_currency_code:"",source_account:b(),destination_account:b(),budget_id:null,category_name:"",piggy_bank_id:null,bill_id:null,tags:[],notes:"",internal_reference:"",external_url:"",hasLocation:!1,map:null,latitude:null,longitude:null,zoomLevel:null,marker:null,date:t,interest_date:"",book_date:"",process_date:"",due_date:"",payment_date:"",invoice_date:"",errors:C()}}function F(e,t){let n=[];for(let r in e)if(e.hasOwnProperty(r)){const o=e[r];let a={};a.description=o.description,a.source_name=o.source_account.name,a.destination_name=o.destination_account.name,a.amount=o.amount,a.currency_code=o.currency_code,a.date=o.date,a.interest_date=o.interest_date,a.book_date=o.book_date,a.process_date=o.process_date,a.due_date=o.due_date,a.payment_date=o.payment_date,a.invoice_date=o.invoice_date,a.budget_id=o.budget_id,a.category_name=o.category_name,a.piggy_bank_id=o.piggy_bank_id,a.bill_id=o.bill_id,a.tags=o.tags,a.notes=o.notes,a.internal_reference=o.internal_reference,a.external_url=o.external_url,a.store_location=!1,o.hasLocation&&(a.store_location=!0,a.longitude=o.longitude.toString(),a.latitude=o.latitude.toString(),a.zoom_level=o.zoomLevel),typeof o.foreign_currency_code<"u"&&o.foreign_currency_code.toString()!==""&&(a.foreign_currency_code=o.foreign_currency_code,typeof o.foreign_amount<"u"&&o.foreign_amount.toString()!==""&&(a.foreign_amount=o.foreign_amount),(typeof o.foreign_amount>"u"||o.foreign_amount.toString()==="")&&(delete a.foreign_amount,delete a.foreign_currency_code)),typeof o.source_account.id<"u"&&o.source_account.id.toString()!==""&&(a.source_id=o.source_account.id),typeof o.destination_account.id<"u"&&o.destination_account.id.toString()!==""&&(a.destination_id=o.destination_account.id),a.type=t,n.push(a)}return n}let $=class{post(t){let n="/api/v2/transactions";return _.post(n,t)}},j=class{list(t){return _.get("/api/v2/currencies",{params:t})}};function q(){let e={page:1,limit:1337};return new j().list(e).then(n=>{let r={defaultCurrency:{},nativeCurrencies:[],foreignCurrencies:[],enabledCurrencies:[]};r.foreignCurrencies.push({id:0,name:"(no foreign currency)",code:"",default:!1,symbol:"",decimal_places:2});for(let o in n.data.data)if(n.data.data.hasOwnProperty(o)){let a=n.data.data[o];if(a.attributes.enabled){let i={id:a.id,name:a.attributes.name,code:a.attributes.code,default:a.attributes.default,symbol:a.attributes.symbol,decimal_places:a.attributes.decimal_places};i.default&&(r.defaultCurrency=i),r.enabledCurrencies.push(i),r.nativeCurrencies.push(i),r.foreignCurrencies.push(i)}}return r})}class R{list(t){return _.get("/api/v2/budgets",{params:t})}}function z(){let e={page:1,limit:1337};return new R().list(e).then(n=>{let r=[{id:0,name:"(no budget)"}];for(let o in n.data.data)if(n.data.data.hasOwnProperty(o)){let a=n.data.data[o],i={id:a.id,name:a.attributes.name};r.push(i)}return r})}function M(){let e={page:1,limit:1337};return new D().list(e).then(n=>{let r={0:{id:0,name:"(no group)",order:0,piggyBanks:[{id:0,name:"(no piggy bank)",order:0}]}};for(let o in n.data.data)if(n.data.data.hasOwnProperty(o)){let a=n.data.data[o],i=a.attributes.object_group_id??"0",s=a.attributes.object_group_title??"(no group)",c={id:a.id,name:a.attributes.name,order:a.attributes.order};r.hasOwnProperty(i)||(r[i]={id:i,name:s,order:a.attributes.object_group_order??0,piggyBanks:[]}),r[i].piggyBanks.push(c),r[i].piggyBanks.sort((u,p)=>u.order-p.order)}return Object.keys(r).sort().reduce((o,a)=>(o[a]=r[a],o),{})})}function U(){let e={page:1,limit:1337};return new O().list(e).then(n=>{let r={0:{id:0,name:"(no group)",order:0,subscriptions:[{id:0,name:"(no subscription)",order:0}]}};for(let o in n.data.data)if(n.data.data.hasOwnProperty(o)){let a=n.data.data[o],i=a.attributes.object_group_id??"0",s=a.attributes.object_group_title??"(no group)",c={id:a.id,name:a.attributes.name,order:a.attributes.order};r.hasOwnProperty(i)||(r[i]={id:i,name:s,order:a.attributes.object_group_order??0,subscriptions:[]}),r[i].subscriptions.push(c),r[i].subscriptions.sort((u,p)=>u.order-p.order)}return Object.keys(r).sort().reduce((o,a)=>(o[a]=r[a],o),{})})}function h(e){const t={server:e.serverUrl,serverParams:{},fetchOptions:{headers:{"X-CSRF-TOKEN":document.head.querySelector('meta[name="csrf-token"]').content}},hiddenInput:!0,preventBrowserAutocomplete:!0,highlightTyped:!0,liveServer:!0};typeof e.filters<"u"&&e.filters.length>0&&(t.serverParams.types=e.filters),typeof e.onRenderItem<"u"&&e.onRenderItem!==null&&(console.log("add on render item"),t.onRenderItem=e.onRenderItem),e.valueField&&(t.valueField=e.valueField),e.labelField&&(t.labelField=e.labelField),e.onSelectItem&&(t.onSelectItem=e.onSelectItem),e.onChange&&(t.onChange=e.onChange),I.init(e.selector,t)}function w(e,t){const n=parseInt(t._searchInput.attributes["data-index"].value);if(typeof e<"u"&&e.name){document.querySelector("#form")._x_dataStack[0].$data.entries[n].category_name=e.name;return}document.querySelector("#form")._x_dataStack[0].$data.entries[n].category_name=t._searchInput.value}function v(e,t){const n=parseInt(t._searchInput.attributes["data-index"].value);if(typeof e<"u"&&e.description){document.querySelector("#form")._x_dataStack[0].$data.entries[n].description=e.description;return}document.querySelector("#form")._x_dataStack[0].$data.entries[n].description=t._searchInput.value}function N(e,t){if(typeof e>"u"){const n=parseInt(t._searchInput.attributes["data-index"].value);if(document.querySelector("#form")._x_dataStack[0].$data.entries[n].destination_account.name===t._searchInput.value){console.warn('Ignore hallucinated destination account name change to "'+t._searchInput.value+'"');return}document.querySelector("#form")._x_dataStack[0].$data.entries[n].destination_account={name:t._searchInput.value,alpine_name:t._searchInput.value},document.querySelector("#form")._x_dataStack[0].changedDestinationAccount()}}function G(e,t){const n=parseInt(t._searchInput.attributes["data-index"].value);document.querySelector("#form")._x_dataStack[0].$data.entries[n].destination_account={id:e.id,name:e.name,alpine_name:e.name,type:e.type,currency_code:e.currency_code},document.querySelector("#form")._x_dataStack[0].changedDestinationAccount()}function H(e,t){if(typeof e>"u"){const n=parseInt(t._searchInput.attributes["data-index"].value);if(document.querySelector("#form")._x_dataStack[0].$data.entries[n].source_account.name===t._searchInput.value)return;document.querySelector("#form")._x_dataStack[0].$data.entries[n].source_account={name:t._searchInput.value,alpine_name:t._searchInput.value},document.querySelector("#form")._x_dataStack[0].changedSourceAccount()}}function Z(e,t){const n=parseInt(t._searchInput.attributes["data-index"].value);document.querySelector("#form")._x_dataStack[0].$data.entries[n].source_account={id:e.id,name:e.name,alpine_name:e.name,type:e.type,currency_code:e.currency_code},document.querySelector("#form")._x_dataStack[0].changedSourceAccount()}class K{post(t,n,r){let o="/api/v1/attachments";return _.post(o,{filename:t,attachable_type:n,attachable_id:r})}upload(t,n){let r="./api/v1/attachments/"+t+"/upload";return axios.post(r,n)}}let V=function(e){let t=e.length,n=0,r=!1;for(const o in e)if(e.hasOwnProperty(o)&&/^0$|^[1-9]\d*$/.test(o)&&o<=4294967294&&r===!1){let a=new K;a.post(e[o].name,"TransactionJournal",e[o].journal).then(i=>{let s=parseInt(i.data.data.id);a.upload(s,e[o].content).then(c=>{if(n++,n===t){const u=new CustomEvent("upload-success",{some:"details"});document.dispatchEvent(u)}}).catch(c=>{console.error("Could not upload"),console.error(c),n++;const u=new CustomEvent("upload-failed",{error:c});document.dispatchEvent(u),r=!0})}).catch(i=>{console.error("Could not create upload."),console.error(i),n++;const s=new CustomEvent("upload-failed",{error:i});document.dispatchEvent(s),r=!0})}};function X(e,t){t=t.reverse();let n=[],r=0,o=[],a=document.querySelectorAll('input[name="attachments[]"]');for(const i in a)if(a.hasOwnProperty(i)&&/^0$|^[1-9]\d*$/.test(i)&&i<=4294967294)for(const s in a[i].files)a[i].files.hasOwnProperty(s)&&/^0$|^[1-9]\d*$/.test(s)&&s<=4294967294&&(n.push({journal:t[i].transaction_journal_id,file:a[i].files[s]}),r++);for(const i in n)n.hasOwnProperty(i)&&/^0$|^[1-9]\d*$/.test(i)&&i<=4294967294&&function(s,c){let u=new FileReader;u.onloadend=function(p){p.target.readyState===FileReader.DONE&&(o.push({name:n[c].file.name,journal:n[c].journal,content:new Blob([p.target.result])}),o.length===r&&V(o))},u.readAsArrayBuffer(s.file)}(n[i],i);return r}function J(e,t,n){let r=[];for(let o in n)n.hasOwnProperty(o)&&r.push(n[o].replace(e,t));return r}function Q(e,t,n){let r,o,a;for(const i in t)if(t.hasOwnProperty(i)){if(i==="group_title"){console.error("Cannot handle error in group title.");continue}if(r=parseInt(i.split(".")[1]),o=i.split(".")[2],a=J(i,o,t[i]),!n.hasOwnProperty(r)){console.error("Cannot handle errors in index #"+r);continue}switch(o){case"currency_code":case"foreign_currency_code":case"category_name":case"piggy_bank_id":case"notes":case"internal_reference":case"external_url":case"latitude":case"longitude":case"zoom_level":case"interest_date":case"book_date":case"process_date":case"due_date":case"payment_date":case"invoice_date":case"amount":case"date":case"budget_id":case"bill_id":case"description":case"tags":n[r].errors[o]=a;break;case"source_name":case"source_id":n[r].errors.source_account=n[r].errors.source_account.concat(a);break;case"type":n[r].errors.source_account=n[r].errors.source_account.concat([e.t("validation.bad_type_source")]),n[r].errors.destination_account=n[r].errors.destination_account.concat([e.t("validation.bad_type_destination")]);break;case"destination_name":case"destination_id":n[r].errors.destination_account=n[r].errors.destination_account.concat(a);break;case"foreign_amount":case"foreign_currency_id":n[r].errors.foreign_amount=n[r].errors.foreign_amount.concat(a);break}typeof n[r]<"u"&&(n[r].errors.source_account=Array.from(new Set(n[r].errors.source_account)),n[r].errors.destination_account=Array.from(new Set(n[r].errors.destination_account)))}return console.log(n[0].errors),n}let d=[],g=[];document.addEventListener("location-remove",e=>{g[e.detail.index].remove()});function W(e){let t=0;if(document.querySelector("#form")._x_dataStack[0].$data.entries[t].hasLocation===!1){g[t]=new m.marker(e.latlng,{draggable:!0}),g[t].on("dragend",ee),g[t].addTo(d[t]);const r=new CustomEvent("location-set",{detail:{latitude:e.latlng.lat,longitude:e.latlng.lng,index:t,zoomLevel:d[t].getZoom()}});document.dispatchEvent(r)}}function Y(e){let t=0;const n=new CustomEvent("location-zoom",{detail:{index:t,zoomLevel:d[t].getZoom()}});document.dispatchEvent(n)}function ee(e){let t=e.target,n=t.getLatLng();t.setLatLng(new m.LatLng(n.lat,n.lng),{draggable:"true"});const r=new CustomEvent("location-move",{detail:{latitude:n.lat,longitude:n.lng,index:0}});document.dispatchEvent(r)}function te(e){if(e>0){console.warn("Corwardly refuse to add a map on split #"+(e+1));return}if(typeof d[e]>"u"){let t=document.getElementById("location_map");d[e]=m.map(t).setView([t.dataset.latitude,t.dataset.longitude],t.dataset.zoomLevel),m.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19,attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'}).addTo(d[e]),d[e].on("click",W),d[e].on("zoomend",Y)}}let l;const f={description:"/api/v2/autocomplete/transaction-descriptions",account:"/api/v2/autocomplete/accounts",category:"/api/v2/autocomplete/categories",tag:"/api/v2/autocomplete/tags"};let ne=function(){return{entries:[],formStates:{loadingCurrencies:!0,loadingBudgets:!0,loadingPiggyBanks:!0,loadingSubscriptions:!0,isSubmitting:!1,returnHereButton:!1,saveAsNewButton:!1,resetButton:!0,rulesButton:!0,webhooksButton:!0},formBehaviour:{formType:"create",foreignCurrencyEnabled:!0},formData:{defaultCurrency:null,enabledCurrencies:[],nativeCurrencies:[],foreignCurrencies:[],budgets:[],piggyBanks:[],subscriptions:[]},groupProperties:{transactionType:"unknown",title:null,id:null,totalAmount:0},notifications:{error:{show:!1,text:"",url:""},success:{show:!1,text:"",url:""},wait:{show:!1,text:""}},filters:{source:[],destination:[]},changedDateTime(e){console.warn("changedDateTime, event is not used")},changedDescription(e){console.warn("changedDescription, event is not used")},changedDestinationAccount(e){this.detectTransactionType()},changedSourceAccount(e){this.detectTransactionType()},detectTransactionType(){const e=this.entries[0].source_account.type??"unknown",t=this.entries[0].destination_account.type??"unknown";if(e==="unknown"&&t==="unknown"){this.groupProperties.transactionType="unknown",console.warn("Cannot infer transaction type from two unknown accounts.");return}if(e===t&&["Asset account","Loan","Debt","Mortgage"].includes(e)){this.groupProperties.transactionType="transfer",console.log('Transaction type is detected to be "'+this.groupProperties.transactionType+'".'),console.log("filter down currencies for transfer."),this.filterNativeCurrencies(this.entries[0].source_account.currency_code),this.filterForeignCurrencies(this.entries[0].destination_account.currency_code);return}if(e==="Asset account"&&["Expense account","Debt","Loan","Mortgage"].includes(t)){this.groupProperties.transactionType="withdrawal",console.log('[a] Transaction type is detected to be "'+this.groupProperties.transactionType+'".'),this.filterNativeCurrencies(this.entries[0].source_account.currency_code);return}if(e==="Asset account"&&t==="unknown"){this.groupProperties.transactionType="withdrawal",console.log('[b] Transaction type is detected to be "'+this.groupProperties.transactionType+'".'),console.log(this.entries[0].source_account),this.filterNativeCurrencies(this.entries[0].source_account.currency_code);return}if(["Debt","Loan","Mortgage"].includes(e)&&t==="Expense account"){this.groupProperties.transactionType="withdrawal",console.log('[c] Transaction type is detected to be "'+this.groupProperties.transactionType+'".'),this.filterNativeCurrencies(this.entries[0].source_account.currency_code);return}if(e==="Revenue account"&&["Asset account","Debt","Loan","Mortgage"].includes(t)){this.groupProperties.transactionType="deposit",console.log('Transaction type is detected to be "'+this.groupProperties.transactionType+'".');return}if(["Debt","Loan","Mortgage"].includes(e)&&t==="Asset account"){this.groupProperties.transactionType="deposit",console.log('Transaction type is detected to be "'+this.groupProperties.transactionType+'".');return}console.warn('Unknown account combination between "'+e+'" and "'+t+'".')},formattedTotalAmount(){return this.entries.length===0?y(this.groupProperties.totalAmount,"EUR"):y(this.groupProperties.totalAmount,this.entries[0].currency_code??"EUR")},filterForeignCurrencies(e){let t=[],n;for(let r in this.formData.enabledCurrencies)if(this.formData.enabledCurrencies.hasOwnProperty(r)){let o=this.formData.enabledCurrencies[r];o.code===e&&(n=o)}t.push(n),this.formData.foreignCurrencies=t,t.length===1&&t[0].code===this.entries[0].source_account.currency_code&&(console.log("Foreign currency is same as source currency. Disable foreign amount."),this.formBehaviour.foreignCurrencyEnabled=!1),t.length===1&&t[0].code!==this.entries[0].source_account.currency_code&&(console.log("Foreign currency is NOT same as source currency. Enable foreign amount."),this.formBehaviour.foreignCurrencyEnabled=!0);for(let r in this.entries)this.entries.hasOwnProperty(r)&&(this.entries[r].foreign_currency_code=e)},filterNativeCurrencies(e){let t=[],n;for(let r in this.formData.enabledCurrencies)if(this.formData.enabledCurrencies.hasOwnProperty(r)){let o=this.formData.enabledCurrencies[r];o.code===e&&(n=o)}t.push(n),this.formData.nativeCurrencies=t;for(let r in this.entries)this.entries.hasOwnProperty(r)&&(this.entries[r].currency_code=e)},changedAmount(e){const t=parseInt(e.target.dataset.index);this.entries[t].amount=parseFloat(e.target.value),this.groupProperties.totalAmount=0;for(let n in this.entries)this.entries.hasOwnProperty(n)&&(this.groupProperties.totalAmount=this.groupProperties.totalAmount+parseFloat(this.entries[n].amount))},addedSplit(){const e=function(t,n,r){return t.name_with_balance+'<br><small class="text-muted">'+l.t("firefly.account_type_"+t.type)+"</small>"};console.log(this.filters),h({selector:"input.ac-source",serverUrl:f.account,filters:this.filters.source,onRenderItem:e,onChange:H,onSelectItem:Z}),h({selector:"input.ac-dest",serverUrl:f.account,filters:this.filters.destination,onRenderItem:e,onChange:N,onSelectItem:G}),h({selector:"input.ac-category",serverUrl:f.category,valueField:"id",labelField:"name",onChange:w,onSelectItem:w}),h({selector:"input.ac-description",serverUrl:f.description,valueField:"id",labelField:"description",onChange:v,onSelectItem:v})},processUpload(e){this.showMessageOrRedirectUser()},processUploadError(e){this.notifications.success.show=!1,this.notifications.wait.show=!1,this.notifications.error.show=!0,this.formStates.isSubmitting=!1,this.notifications.error.text=l.t("firefly.errors_upload"),console.error(e)},init(){Promise.all([x("language","en_US")]).then(e=>{l=new L;const t=e[0].replace("-","_");l.locale=t,E(l,t).then(()=>{this.addSplit()})}),q().then(e=>{this.formStates.loadingCurrencies=!1,this.formData.defaultCurrency=e.defaultCurrency,this.formData.enabledCurrencies=e.enabledCurrencies,this.formData.nativeCurrencies=e.nativeCurrencies,this.formData.foreignCurrencies=e.foreignCurrencies}),z().then(e=>{this.formData.budgets=e,this.formStates.loadingBudgets=!1}),M().then(e=>{this.formData.piggyBanks=e,this.formStates.loadingPiggyBanks=!1}),U().then(e=>{this.formData.subscriptions=e,this.formStates.loadingSubscriptions=!1}),document.addEventListener("upload-success",e=>{this.processUpload(e),document.querySelectorAll("input[type=file]").value=""}),document.addEventListener("upload-error",e=>{this.processUploadError(e)}),document.addEventListener("location-move",e=>{this.entries[e.detail.index].latitude=e.detail.latitude,this.entries[e.detail.index].longitude=e.detail.longitude}),document.addEventListener("location-set",e=>{this.entries[e.detail.index].hasLocation=!0,this.entries[e.detail.index].latitude=e.detail.latitude,this.entries[e.detail.index].longitude=e.detail.longitude,this.entries[e.detail.index].zoomLevel=e.detail.zoomLevel}),document.addEventListener("location-zoom",e=>{this.entries[e.detail.index].hasLocation=!0,this.entries[e.detail.index].zoomLevel=e.detail.zoomLevel}),this.filters.source=["Asset account","Loan","Debt","Mortgage","Revenue account"],this.filters.destination=["Expense account","Loan","Debt","Mortgage","Asset account"]},submitTransaction(){this.notifications.error.show=!1,this.notifications.success.show=!1,this.notifications.wait.show=!1;for(let r in this.entries)this.entries.hasOwnProperty(r)&&(this.entries[r].errors=C());this.formStates.isSubmitting=!0,this.detectTransactionType();let e=F(this.entries,this.groupProperties.transactionType),t={group_title:this.groupProperties.title,fire_webhooks:this.formStates.webhooksButton,apply_rules:this.formStates.rulesButton,transactions:e};this.groupProperties.title===null&&e.length>1&&(t.group_title=e[0].description);let n=new $;console.log(t),n.post(t).then(r=>{const o=r.data.data;if(this.groupProperties.id=parseInt(o.id),this.groupProperties.title=o.attributes.group_title??o.attributes.transactions[0].description,X(this.groupProperties.id,o.attributes.transactions)>0){this.notifications.wait.show=!0,this.notifications.wait.text=l.t("firefly.wait_attachments");return}this.showMessageOrRedirectUser()}).catch(r=>{this.submitting=!1,console.log(r),typeof r.response<"u"&&this.parseErrors(r.response.data)})},showMessageOrRedirectUser(){if(this.notifications.error.show=!1,this.notifications.success.show=!1,this.notifications.wait.show=!1,this.formStates.returnHereButton){this.notifications.success.show=!0,this.notifications.success.url="transactions/show/"+this.groupProperties.id,this.notifications.success.text=l.t("firefly.stored_journal_js",{description:this.groupProperties.title}),this.formStates.resetButton&&(this.entries=[],this.addSplit(),this.groupProperties.totalAmount=0);return}window.location="transactions/show/"+this.groupProperties.id+"?transaction_group_id="+this.groupProperties.id+"&message=created"},parseErrors(e){this.notifications.error.show=!0,this.notifications.success.show=!1,this.notifications.wait.show=!1,this.formStates.isSubmitting=!1,this.notifications.error.text=l.t("firefly.errors_submission",{errorMessage:e.message}),e.hasOwnProperty("errors")&&(this.entries=Q(l,e.errors,this.entries))},addSplit(){this.entries.push(B()),setTimeout(()=>{A.init("select.ac-tags",{allowClear:!0,server:f.tag,liveServer:!0,clearEnd:!0,allowNew:!0,notFoundMessage:l.t("firefly.nothing_found"),noCache:!0,fetchOptions:{headers:{"X-CSRF-TOKEN":document.head.querySelector('meta[name="csrf-token"]').content}}});const e=this.entries.length-1;te(e)},150)},removeSplit(e){this.entries.splice(e,1),document.querySelector("#split-0-tab").click()},clearLocation(e){e.preventDefault();const t=e.currentTarget,n=parseInt(t.attributes["data-index"].value);this.entries[n].hasLocation=!1,this.entries[n].latitude=null,this.entries[n].longitude=null,this.entries[n].zoomLevel=null;const r=new CustomEvent("location-remove",{detail:{index:n}});return document.dispatchEvent(r),!1}}},S={transactions:ne,dates:P};function k(){Object.keys(S).forEach(e=>{console.log(`Loading page component "${e}"`);let t=S[e]();Alpine.data(e,()=>t)}),Alpine.start()}document.addEventListener("firefly-iii-bootstrapped",()=>{console.log("Loaded through event listener."),k()});window.bootstrapped&&(console.log("Loaded through window variable."),k());
diff --git a/public/build/assets/create-77b1cf47.js b/public/build/assets/create-77b1cf47.js
deleted file mode 100644
index c36181154c..0000000000
--- a/public/build/assets/create-77b1cf47.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as g,d as k,g as x,l as P}from"./load-translations-23553922.js";import{f as C,k as I,I as T,l as h}from"./vendor-e194ad60.js";import{a as A,G as E,f as m}from"./get-748a816c.js";function _(){return{id:"",name:"",alpine_name:""}}function S(){return{description:[],amount:[],currency_code:[],foreign_amount:[],foreign_currency_code:[],source_account:[],destination_account:[],budget_id:[],category_name:[],piggy_bank_id:[],bill_id:[],tags:[],notes:[],internal_reference:[],external_url:[],latitude:[],longitude:[],zoom_level:[],date:[],interest_date:[],book_date:[],process_date:[],due_date:[],payment_date:[],invoice_date:[]}}function D(){let t=C(new Date,"yyyy-MM-dd HH:mm");return{description:"",amount:"",currency_code:"EUR",foreign_amount:"",foreign_currency_code:"",source_account:_(),destination_account:_(),budget_id:null,category_name:"",piggy_bank_id:null,bill_id:null,tags:[],notes:"",internal_reference:"",external_url:"",hasLocation:!1,map:null,latitude:null,longitude:null,zoomLevel:null,marker:null,date:t,interest_date:"",book_date:"",process_date:"",due_date:"",payment_date:"",invoice_date:"",errors:S()}}function $(e,t){let r=[];for(let o in e)if(e.hasOwnProperty(o)){const n=e[o];let a={};a.description=n.description,a.source_name=n.source_account.name,a.destination_name=n.destination_account.name,a.amount=n.amount,a.currency_code=n.currency_code,a.date=n.date,a.interest_date=n.interest_date,a.book_date=n.book_date,a.process_date=n.process_date,a.due_date=n.due_date,a.payment_date=n.payment_date,a.invoice_date=n.invoice_date,a.budget_id=n.budget_id,a.category_name=n.category_name,a.piggy_bank_id=n.piggy_bank_id,a.bill_id=n.bill_id,a.tags=n.tags,a.notes=n.notes,a.internal_reference=n.internal_reference,a.external_url=n.external_url,a.store_location=!1,n.hasLocation&&(a.store_location=!0,a.longitude=n.longitude.toString(),a.latitude=n.latitude.toString(),a.zoom_level=n.zoomLevel),typeof n.foreign_currency_code<"u"&&n.foreign_currency_code.toString()!==""&&(a.foreign_currency_code=n.foreign_currency_code,typeof n.foreign_amount<"u"&&n.foreign_amount.toString()!==""&&(a.foreign_amount=n.foreign_amount),(typeof n.foreign_amount>"u"||n.foreign_amount.toString()==="")&&(delete a.foreign_amount,delete a.foreign_currency_code)),typeof n.source_account.id<"u"&&n.source_account.id.toString()!==""&&(a.source_id=n.source_account.id),typeof n.destination_account.id<"u"&&n.destination_account.id.toString()!==""&&(a.destination_id=n.destination_account.id),a.type=t,r.push(a)}return r}let O=class{post(t){let r="/api/v2/transactions";return g.post(r,t)}},B=class{list(t){return g.get("/api/v2/currencies",{params:t})}};function L(){let e={page:1,limit:1337};return new B().list(e).then(r=>{let o={defaultCurrency:{},nativeCurrencies:[],foreignCurrencies:[],enabledCurrencies:[]};o.foreignCurrencies.push({id:0,name:"(no foreign currency)",code:"",default:!1,symbol:"",decimal_places:2});for(let n in r.data.data)if(r.data.data.hasOwnProperty(n)){let a=r.data.data[n];if(a.attributes.enabled){let i={id:a.id,name:a.attributes.name,code:a.attributes.code,default:a.attributes.default,symbol:a.attributes.symbol,decimal_places:a.attributes.decimal_places};i.default&&(o.defaultCurrency=i),o.enabledCurrencies.push(i),o.nativeCurrencies.push(i),o.foreignCurrencies.push(i)}}return o})}class q{list(t){return g.get("/api/v2/budgets",{params:t})}}function F(){let e={page:1,limit:1337};return new q().list(e).then(r=>{let o=[{id:0,name:"(no budget)"}];for(let n in r.data.data)if(r.data.data.hasOwnProperty(n)){let a=r.data.data[n],i={id:a.id,name:a.attributes.name};o.push(i)}return o})}function j(){let e={page:1,limit:1337};return new A().list(e).then(r=>{let o={0:{id:0,name:"(no group)",order:0,piggyBanks:[{id:0,name:"(no piggy bank)",order:0}]}};for(let n in r.data.data)if(r.data.data.hasOwnProperty(n)){let a=r.data.data[n],i=a.attributes.object_group_id??"0",s=a.attributes.object_group_title??"(no group)",c={id:a.id,name:a.attributes.name,order:a.attributes.order};o.hasOwnProperty(i)||(o[i]={id:i,name:s,order:a.attributes.object_group_order??0,piggyBanks:[]}),o[i].piggyBanks.push(c),o[i].piggyBanks.sort((u,d)=>u.order-d.order)}return Object.keys(o).sort().reduce((n,a)=>(n[a]=o[a],n),{})})}function R(){let e={page:1,limit:1337};return new E().list(e).then(r=>{let o={0:{id:0,name:"(no group)",order:0,subscriptions:[{id:0,name:"(no subscription)",order:0}]}};for(let n in r.data.data)if(r.data.data.hasOwnProperty(n)){let a=r.data.data[n],i=a.attributes.object_group_id??"0",s=a.attributes.object_group_title??"(no group)",c={id:a.id,name:a.attributes.name,order:a.attributes.order};o.hasOwnProperty(i)||(o[i]={id:i,name:s,order:a.attributes.object_group_order??0,subscriptions:[]}),o[i].subscriptions.push(c),o[i].subscriptions.sort((u,d)=>u.order-d.order)}return Object.keys(o).sort().reduce((n,a)=>(n[a]=o[a],n),{})})}function p(e){const t={server:e.serverUrl,serverParams:{},fetchOptions:{headers:{"X-CSRF-TOKEN":document.head.querySelector('meta[name="csrf-token"]').content}},hiddenInput:!0,preventBrowserAutocomplete:!0,highlightTyped:!0,liveServer:!0};typeof e.filters<"u"&&e.filters.length>0&&(t.serverParams.types=e.filters),typeof e.onRenderItem<"u"&&e.onRenderItem!==null&&(console.log("add on render item"),t.onRenderItem=e.onRenderItem),e.valueField&&(t.valueField=e.valueField),e.labelField&&(t.labelField=e.labelField),e.onSelectItem&&(t.onSelectItem=e.onSelectItem),e.onChange&&(t.onChange=e.onChange),I.init(e.selector,t)}function y(e,t){const r=parseInt(t._searchInput.attributes["data-index"].value);if(typeof e<"u"&&e.name){document.querySelector("#form")._x_dataStack[0].$data.entries[r].category_name=e.name;return}document.querySelector("#form")._x_dataStack[0].$data.entries[r].category_name=t._searchInput.value}function b(e,t){const r=parseInt(t._searchInput.attributes["data-index"].value);if(typeof e<"u"&&e.description){document.querySelector("#form")._x_dataStack[0].$data.entries[r].description=e.description;return}document.querySelector("#form")._x_dataStack[0].$data.entries[r].description=t._searchInput.value}function U(e,t){if(typeof e>"u"){const r=parseInt(t._searchInput.attributes["data-index"].value);if(document.querySelector("#form")._x_dataStack[0].$data.entries[r].destination_account.name===t._searchInput.value){console.warn('Ignore hallucinated destination account name change to "'+t._searchInput.value+'"');return}document.querySelector("#form")._x_dataStack[0].$data.entries[r].destination_account={name:t._searchInput.value,alpine_name:t._searchInput.value},document.querySelector("#form")._x_dataStack[0].changedDestinationAccount()}}function M(e,t){const r=parseInt(t._searchInput.attributes["data-index"].value);document.querySelector("#form")._x_dataStack[0].$data.entries[r].destination_account={id:e.id,name:e.name,alpine_name:e.name,type:e.type,currency_code:e.currency_code},document.querySelector("#form")._x_dataStack[0].changedDestinationAccount()}function N(e,t){if(typeof e>"u"){const r=parseInt(t._searchInput.attributes["data-index"].value);if(document.querySelector("#form")._x_dataStack[0].$data.entries[r].source_account.name===t._searchInput.value)return;document.querySelector("#form")._x_dataStack[0].$data.entries[r].source_account={name:t._searchInput.value,alpine_name:t._searchInput.value},document.querySelector("#form")._x_dataStack[0].changedSourceAccount()}}function G(e,t){const r=parseInt(t._searchInput.attributes["data-index"].value);document.querySelector("#form")._x_dataStack[0].$data.entries[r].source_account={id:e.id,name:e.name,alpine_name:e.name,type:e.type,currency_code:e.currency_code},document.querySelector("#form")._x_dataStack[0].changedSourceAccount()}class z{post(t,r,o){let n="/api/v1/attachments";return g.post(n,{filename:t,attachable_type:r,attachable_id:o})}upload(t,r){let o="./api/v1/attachments/"+t+"/upload";return axios.post(o,r)}}let H=function(e){let t=e.length,r=0,o=!1;for(const n in e)if(e.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294&&o===!1){let a=new z;a.post(e[n].name,"TransactionJournal",e[n].journal).then(i=>{let s=parseInt(i.data.data.id);a.upload(s,e[n].content).then(c=>{if(r++,r===t){const u=new CustomEvent("upload-success",{some:"details"});document.dispatchEvent(u)}}).catch(c=>{console.error("Could not upload"),console.error(c),r++;const u=new CustomEvent("upload-failed",{error:c});document.dispatchEvent(u),o=!0})}).catch(i=>{console.error("Could not create upload."),console.error(i),r++;const s=new CustomEvent("upload-failed",{error:i});document.dispatchEvent(s),o=!0})}};function Z(e,t){t=t.reverse();let r=[],o=0,n=[],a=document.querySelectorAll('input[name="attachments[]"]');for(const i in a)if(a.hasOwnProperty(i)&&/^0$|^[1-9]\d*$/.test(i)&&i<=4294967294)for(const s in a[i].files)a[i].files.hasOwnProperty(s)&&/^0$|^[1-9]\d*$/.test(s)&&s<=4294967294&&(r.push({journal:t[i].transaction_journal_id,file:a[i].files[s]}),o++);for(const i in r)r.hasOwnProperty(i)&&/^0$|^[1-9]\d*$/.test(i)&&i<=4294967294&&function(s,c){let u=new FileReader;u.onloadend=function(d){d.target.readyState===FileReader.DONE&&(n.push({name:r[c].file.name,journal:r[c].journal,content:new Blob([d.target.result])}),n.length===o&&H(n))},u.readAsArrayBuffer(s.file)}(r[i],i);return o}function K(e,t,r){let o=[];for(let n in r)r.hasOwnProperty(n)&&o.push(r[n].replace(e,t));return o}function J(e,t,r){let o,n,a;for(const i in t)if(t.hasOwnProperty(i)){if(i==="group_title"){console.error("Cannot handle error in group title.");continue}if(o=parseInt(i.split(".")[1]),n=i.split(".")[2],a=K(i,n,t[i]),!r.hasOwnProperty(o)){console.error("Cannot handle errors in index #"+o);continue}switch(n){case"currency_code":case"foreign_currency_code":case"category_name":case"piggy_bank_id":case"notes":case"internal_reference":case"external_url":case"latitude":case"longitude":case"zoom_level":case"interest_date":case"book_date":case"process_date":case"due_date":case"payment_date":case"invoice_date":case"amount":case"date":case"budget_id":case"bill_id":case"description":case"tags":r[o].errors[n]=a;break;case"source_name":case"source_id":r[o].errors.source_account=r[o].errors.source_account.concat(a);break;case"type":r[o].errors.source_account=r[o].errors.source_account.concat([e.t("validation.bad_type_source")]),r[o].errors.destination_account=r[o].errors.destination_account.concat([e.t("validation.bad_type_destination")]);break;case"destination_name":case"destination_id":r[o].errors.destination_account=r[o].errors.destination_account.concat(a);break;case"foreign_amount":case"foreign_currency_id":r[o].errors.foreign_amount=r[o].errors.foreign_amount.concat(a);break}typeof r[o]<"u"&&(r[o].errors.source_account=Array.from(new Set(r[o].errors.source_account)),r[o].errors.destination_account=Array.from(new Set(r[o].errors.destination_account)))}return console.log(r[0].errors),r}let l;const f={description:"/api/v2/autocomplete/transaction-descriptions",account:"/api/v2/autocomplete/accounts",category:"/api/v2/autocomplete/categories",tag:"/api/v2/autocomplete/tags"};let V=function(){return{entries:[],formStates:{loadingCurrencies:!0,loadingBudgets:!0,loadingPiggyBanks:!0,loadingSubscriptions:!0,isSubmitting:!1,returnHereButton:!1,saveAsNewButton:!1,resetButton:!0,rulesButton:!0,webhooksButton:!0},formBehaviour:{formType:"create",foreignCurrencyEnabled:!0},formData:{defaultCurrency:null,enabledCurrencies:[],nativeCurrencies:[],foreignCurrencies:[],budgets:[],piggyBanks:[],subscriptions:[]},groupProperties:{transactionType:"unknown",title:null,id:null,totalAmount:0},notifications:{error:{show:!1,text:"",url:""},success:{show:!1,text:"",url:""},wait:{show:!1,text:""}},filters:{source:[],destination:[]},changedDateTime(e){console.log("changedDateTime")},changedDescription(e){console.log("changedDescription")},changedDestinationAccount(e){this.detectTransactionType()},changedSourceAccount(e){this.detectTransactionType()},detectTransactionType(){const e=this.entries[0].source_account.type??"unknown",t=this.entries[0].destination_account.type??"unknown";if(e==="unknown"&&t==="unknown"){this.groupProperties.transactionType="unknown",console.warn("Cannot infer transaction type from two unknown accounts.");return}if(e===t&&["Asset account","Loan","Debt","Mortgage"].includes(e)){this.groupProperties.transactionType="transfer",console.log('Transaction type is detected to be "'+this.groupProperties.transactionType+'".'),console.log("filter down currencies for transfer."),this.filterNativeCurrencies(this.entries[0].source_account.currency_code),this.filterForeignCurrencies(this.entries[0].destination_account.currency_code);return}if(e==="Asset account"&&["Expense account","Debt","Loan","Mortgage"].includes(t)){this.groupProperties.transactionType="withdrawal",console.log('[a] Transaction type is detected to be "'+this.groupProperties.transactionType+'".'),this.filterNativeCurrencies(this.entries[0].source_account.currency_code);return}if(e==="Asset account"&&t==="unknown"){this.groupProperties.transactionType="withdrawal",console.log('[b] Transaction type is detected to be "'+this.groupProperties.transactionType+'".'),console.log(this.entries[0].source_account),this.filterNativeCurrencies(this.entries[0].source_account.currency_code);return}if(["Debt","Loan","Mortgage"].includes(e)&&t==="Expense account"){this.groupProperties.transactionType="withdrawal",console.log('[c] Transaction type is detected to be "'+this.groupProperties.transactionType+'".'),this.filterNativeCurrencies(this.entries[0].source_account.currency_code);return}if(e==="Revenue account"&&["Asset account","Debt","Loan","Mortgage"].includes(t)){this.groupProperties.transactionType="deposit",console.log('Transaction type is detected to be "'+this.groupProperties.transactionType+'".');return}if(["Debt","Loan","Mortgage"].includes(e)&&t==="Asset account"){this.groupProperties.transactionType="deposit",console.log('Transaction type is detected to be "'+this.groupProperties.transactionType+'".');return}console.warn('Unknown account combination between "'+e+'" and "'+t+'".')},formattedTotalAmount(){return this.entries.length===0?m(this.groupProperties.totalAmount,"EUR"):m(this.groupProperties.totalAmount,this.entries[0].currency_code??"EUR")},filterForeignCurrencies(e){let t=[],r;for(let o in this.formData.enabledCurrencies)if(this.formData.enabledCurrencies.hasOwnProperty(o)){let n=this.formData.enabledCurrencies[o];n.code===e&&(r=n)}t.push(r),this.formData.foreignCurrencies=t,t.length===1&&t[0].code===this.entries[0].source_account.currency_code&&(console.log("Foreign currency is same as source currency. Disable foreign amount."),this.formBehaviour.foreignCurrencyEnabled=!1),t.length===1&&t[0].code!==this.entries[0].source_account.currency_code&&(console.log("Foreign currency is NOT same as source currency. Enable foreign amount."),this.formBehaviour.foreignCurrencyEnabled=!0);for(let o in this.entries)this.entries.hasOwnProperty(o)&&(this.entries[o].foreign_currency_code=e)},filterNativeCurrencies(e){let t=[],r;for(let o in this.formData.enabledCurrencies)if(this.formData.enabledCurrencies.hasOwnProperty(o)){let n=this.formData.enabledCurrencies[o];n.code===e&&(r=n)}t.push(r),this.formData.nativeCurrencies=t;for(let o in this.entries)this.entries.hasOwnProperty(o)&&(this.entries[o].currency_code=e)},changedAmount(e){const t=parseInt(e.target.dataset.index);this.entries[t].amount=parseFloat(e.target.value),this.groupProperties.totalAmount=0;for(let r in this.entries)this.entries.hasOwnProperty(r)&&(this.groupProperties.totalAmount=this.groupProperties.totalAmount+parseFloat(this.entries[r].amount))},addedSplit(){const e=function(t,r,o){return t.name_with_balance+'<br><small class="text-muted">'+l.t("firefly.account_type_"+t.type)+"</small>"};console.log(this.filters),p({selector:"input.ac-source",serverUrl:f.account,filters:this.filters.source,onRenderItem:e,onChange:N,onSelectItem:G}),p({selector:"input.ac-dest",serverUrl:f.account,filters:this.filters.destination,onRenderItem:e,onChange:U,onSelectItem:M}),p({selector:"input.ac-category",serverUrl:f.category,valueField:"id",labelField:"name",onChange:y,onSelectItem:y}),p({selector:"input.ac-description",serverUrl:f.description,valueField:"id",labelField:"description",onChange:b,onSelectItem:b})},processUpload(e){this.showMessageOrRedirectUser()},processUploadError(e){this.notifications.success.show=!1,this.notifications.wait.show=!1,this.notifications.error.show=!0,this.formStates.isSubmitting=!1,this.notifications.error.text=l.t("firefly.errors_upload"),console.error(e)},init(){Promise.all([x("language","en_US")]).then(e=>{l=new T;const t=e[0].replace("-","_");l.locale=t,P(l,t).then(()=>{this.addSplit()})}),L().then(e=>{this.formStates.loadingCurrencies=!1,this.formData.defaultCurrency=e.defaultCurrency,this.formData.enabledCurrencies=e.enabledCurrencies,this.formData.nativeCurrencies=e.nativeCurrencies,this.formData.foreignCurrencies=e.foreignCurrencies}),F().then(e=>{this.formData.budgets=e,this.formStates.loadingBudgets=!1}),j().then(e=>{this.formData.piggyBanks=e,this.formStates.loadingPiggyBanks=!1}),R().then(e=>{this.formData.subscriptions=e,this.formStates.loadingSubscriptions=!1}),document.addEventListener("upload-success",e=>{this.processUpload(e),document.querySelectorAll("input[type=file]").value=""}),document.addEventListener("upload-error",e=>{this.processUploadError(e)}),this.filters.source=["Asset account","Loan","Debt","Mortgage","Revenue account"],this.filters.destination=["Expense account","Loan","Debt","Mortgage","Asset account"]},submitTransaction(){this.notifications.error.show=!1,this.notifications.success.show=!1,this.notifications.wait.show=!1;for(let o in this.entries)this.entries.hasOwnProperty(o)&&(this.entries[o].errors=S());this.formStates.isSubmitting=!0,this.detectTransactionType();let e=$(this.entries,this.groupProperties.transactionType),t={group_title:this.groupProperties.title,fire_webhooks:this.formStates.webhooksButton,apply_rules:this.formStates.rulesButton,transactions:e};this.groupProperties.title===null&&e.length>1&&(t.group_title=e[0].description);let r=new O;console.log(t),r.post(t).then(o=>{const n=o.data.data;if(this.groupProperties.id=parseInt(n.id),this.groupProperties.title=n.attributes.group_title??n.attributes.transactions[0].description,Z(this.groupProperties.id,n.attributes.transactions)>0){this.notifications.wait.show=!0,this.notifications.wait.text=l.t("firefly.wait_attachments");return}this.showMessageOrRedirectUser()}).catch(o=>{this.submitting=!1,console.log(o),typeof o.response<"u"&&this.parseErrors(o.response.data)})},showMessageOrRedirectUser(){if(this.notifications.error.show=!1,this.notifications.success.show=!1,this.notifications.wait.show=!1,this.formStates.returnHereButton){this.notifications.success.show=!0,this.notifications.success.url="transactions/show/"+this.groupProperties.id,this.notifications.success.text=l.t("firefly.stored_journal_js",{description:this.groupProperties.title}),this.formStates.resetButton&&(this.entries=[],this.addSplit(),this.groupProperties.totalAmount=0);return}window.location="transactions/show/"+this.groupProperties.id+"?transaction_group_id="+this.groupProperties.id+"&message=created"},parseErrors(e){this.notifications.error.show=!0,this.notifications.success.show=!1,this.notifications.wait.show=!1,this.formStates.isSubmitting=!1,this.notifications.error.text=l.t("firefly.errors_submission",{errorMessage:e.message}),e.hasOwnProperty("errors")&&(this.entries=J(l,e.errors,this.entries))},addSplit(){this.entries.push(D())},removeSplit(e){this.entries.splice(e,1),document.querySelector("#split-0-tab").click()},clearLocation(e){e.preventDefault();const t=e.currentTarget,r=parseInt(t.attributes["data-index"].value);return this.entries[r].hasLocation=!1,this.entries[r].marker.remove(),!1},saveZoomOfMap(e){let t=parseInt(e.sourceTarget._container.attributes["data-index"].value),r=document.querySelector("#form")._x_dataStack[0].$data.entries[t].map;document.querySelector("#form")._x_dataStack[0].$data.entries[t].zoomLevel=r.getZoom(),console.log("New zoom level: "+r.getZoom())},addPointToMap(e){let t=parseInt(e.originalEvent.currentTarget.attributes["data-index"].value),r=document.querySelector("#form")._x_dataStack[0].$data.entries[t].map,o=document.querySelector("#form")._x_dataStack[0].$data.entries[t].hasLocation;if(console.log("Has location: "+o),o===!1){console.log("False!");const n=new h.marker(e.latlng,{draggable:!0});n.on("dragend",function(a){var i=a.target,s=i.getLatLng();i.setLatLng(new h.LatLng(s.lat,s.lng),{draggable:"true"}),document.querySelector("#form")._x_dataStack[0].$data.entries[t].latitude=s.lat,document.querySelector("#form")._x_dataStack[0].$data.entries[t].longitude=s.lng}),n.addTo(r),document.querySelector("#form")._x_dataStack[0].$data.entries[t].hasLocation=!0,document.querySelector("#form")._x_dataStack[0].$data.entries[t].marker=n,document.querySelector("#form")._x_dataStack[0].$data.entries[t].latitude=e.latlng.lat,document.querySelector("#form")._x_dataStack[0].$data.entries[t].longitude=e.latlng.lng,document.querySelector("#form")._x_dataStack[0].$data.entries[t].zoomLevel=r.getZoom()}}}},w={transactions:V,dates:k};function v(){Object.keys(w).forEach(e=>{console.log(`Loading page component "${e}"`);let t=w[e]();Alpine.data(e,()=>t)}),Alpine.start()}document.addEventListener("firefly-iii-bootstrapped",()=>{console.log("Loaded through event listener."),v()});window.bootstrapped&&(console.log("Loaded through window variable."),v());
diff --git a/public/build/assets/dashboard-a55f7472.js b/public/build/assets/dashboard-4afa5a98.js
similarity index 99%
rename from public/build/assets/dashboard-a55f7472.js
rename to public/build/assets/dashboard-4afa5a98.js
index 26f99c1023..9f2c6dd20d 100644
--- a/public/build/assets/dashboard-a55f7472.js
+++ b/public/build/assets/dashboard-4afa5a98.js
@@ -1 +1 @@
-import{a as k,g as b,P as Pt,l as z,d as kt}from"./load-translations-23553922.js";import{f as g,G as Dt,a as xt}from"./get-748a816c.js";import{f,C as m,a as A,I as H,S as Ot,F as Mt,L as St,b as Ft,A as At,B as Bt,T as $t,P as jt,c as It,i as Wt,p as Vt,d as Kt,e as Et,g as Lt,h as Gt,j as Tt}from"./vendor-e194ad60.js";class Rt{get(t,n,a){return k.get("/api/v2/summary/basic",{params:{start:t,end:n,code:a}})}}function D(e,t,n){const a=f(t,"y-MM-dd")+"_"+f(n,"y-MM-dd")+"_"+e;return console.log("getCacheKey: "+a),String(a)}let Q=!1;const Ut=()=>({balanceBox:{amounts:[],subtitles:[]},billBox:{paid:[],unpaid:[]},leftBox:{left:[],perDay:[]},netBox:{net:[]},autoConversion:!1,loading:!1,boxData:null,boxOptions:null,getFreshData(){const e=new Date(window.store.get("start")),t=new Date(window.store.get("end")),n=D("dashboard-boxes-data",e,t),a=window.store.get("cacheValid");let o=window.store.get(n);if(a&&typeof o<"u"){this.boxData=o,this.generateOptions(this.boxData);return}new Rt().get(f(e,"yyyy-MM-dd"),f(t,"yyyy-MM-dd"),null).then(i=>{this.boxData=i.data,window.store.set(n,i.data),this.generateOptions(this.boxData)})},generateOptions(e){this.balanceBox={amounts:[],subtitles:[]},this.billBox={paid:[],unpaid:[]},this.leftBox={left:[],perDay:[]},this.netBox={net:[]};let t={};for(const n in e)if(e.hasOwnProperty(n)){const a=e[n];if(!a.hasOwnProperty("key"))continue;let o=a.key;if(this.autoConversion){if(o.startsWith("balance-in-native")){this.balanceBox.amounts.push(g(a.value,a.currency_code)),t.hasOwnProperty(a.currency_code)||(t[a.currency_code]="");continue}if(o.startsWith("spent-in-native")){t.hasOwnProperty(a.currency_code)||(t[a.currency_code]=""),t[a.currency_code]=t[a.currency_code]+g(a.value,a.currency_code);continue}if(o.startsWith("earned-in-native")){t.hasOwnProperty(a.currency_code)||(t[a.currency_code]=""),t[a.currency_code]=g(a.value,a.currency_code)+" + "+t[a.currency_code];continue}if(o.startsWith("bills-unpaid-in-native")){this.billBox.unpaid.push(g(a.value,a.currency_code));continue}if(o.startsWith("bills-paid-in-native")){this.billBox.paid.push(g(a.value,a.currency_code));continue}if(o.startsWith("left-to-spend-in-native")){this.leftBox.left.push(g(a.value,a.currency_code));continue}if(o.startsWith("left-per-day-to-spend-in-native")){this.leftBox.perDay.push(g(a.value,a.currency_code));continue}if(o.startsWith("net-worth-in-native")){this.netBox.net.push(g(a.value,a.currency_code));continue}}if(!this.autoConversion&&!o.endsWith("native")){if(o.startsWith("balance-in-")){this.balanceBox.amounts.push(g(a.value,a.currency_code));continue}if(o.startsWith("spent-in-")){t.hasOwnProperty(a.currency_code)||(t[a.currency_code]=""),t[a.currency_code]=t[a.currency_code]+g(a.value,a.currency_code);continue}if(o.startsWith("earned-in-")){t.hasOwnProperty(a.currency_code)||(t[a.currency_code]=""),t[a.currency_code]=g(a.value,a.currency_code)+" + "+t[a.currency_code];continue}if(o.startsWith("bills-unpaid-in-")){this.billBox.unpaid.push(g(a.value,a.currency_code));continue}if(o.startsWith("bills-paid-in-")){this.billBox.paid.push(g(a.value,a.currency_code));continue}if(o.startsWith("left-to-spend-in-")){this.leftBox.left.push(g(a.value,a.currency_code));continue}if(o.startsWith("left-per-day-to-spend-in-")){this.leftBox.perDay.push(g(a.value,a.currency_code));continue}o.startsWith("net-worth-in-")&&this.netBox.net.push(g(a.value,a.currency_code))}}for(let n in t)t.hasOwnProperty(n)&&this.balanceBox.subtitles.push(t[n]);this.loading=!1},loadBoxes(){if(this.loading!==!0){if(this.loading=!0,this.boxData===null){this.getFreshData();return}this.generateOptions(this.boxData),this.loading=!1}},init(){Promise.all([b("viewRange"),b("autoConversion",!1)]).then(e=>{Q=!0,this.autoConversion=e[1],this.loadBoxes()}),window.store.observe("end",()=>{Q&&(this.boxData=null,this.loadBoxes())}),window.store.observe("autoConversion",e=>{Q&&(this.autoConversion=e,this.loadBoxes())})}});class qt{put(t,n){let a="/api/v1/preferences/"+t;return k.put(a,{data:n})}}function Nt(e,t=null){window.store.set(e,t),new qt().put(e,t).then(a=>{}).catch(()=>{new Pt().post(e,t).then(o=>{})})}let Yt=class{dashboard(t,n){let a=f(t,"y-MM-dd"),o=f(n,"y-MM-dd");return k.get("/api/v2/chart/account/dashboard",{params:{start:a,end:o}})}expense(t,n){let a=f(t,"y-MM-dd"),o=f(n,"y-MM-dd");return k.get("/api/v2/chart/account/expense-dashboard",{params:{start:a,end:o}})}},ht=class{get(t,n){let a={date:f(n,"y-MM-dd").slice(0,10)};return n?k.get("/api/v2/accounts/"+t,{params:a}):k.get("/api/v2/accounts/"+t)}transactions(t,n){const a={page:n.page??1};return n.hasOwnProperty("start")&&(a.start=f(n.start,"y-MM-dd")),n.hasOwnProperty("end")&&(a.end=f(n.end,"y-MM-dd")),k.get("/api/v2/accounts/"+t+"/transactions",{params:a})}};function J(e){return e==="sankey"?{type:"sankey",data:{datasets:[]},options:{animations:!1}}:e==="pie"?{type:"pie",data:{datasets:[]}}:e==="column"?{type:"bar",data:{labels:[],datasets:[]},options:{plugins:{tooltip:{callbacks:{label:function(t){let n=t.dataset.currency_code;return g(t.raw,n)}}}},maintainAspectRatio:!1,scales:{}}}:e==="line"?{options:{plugins:{tooltip:{callbacks:{label:function(t){let n=t.dataset.currency_code;return g(t.raw,n)}}}},maintainAspectRatio:!1,scales:{x:{type:"time",time:{tooltipFormat:"PP"}}}},type:"line",data:{labels:[],datasets:[]}}:{}}let Y=new m("#36a2eb"),V=new m("#ff6384"),R=new m("#4bc0c0"),bt=new m("#ff9f40"),zt=new m("#9966ff"),Ht=new m("#ffcd56"),Jt=new m("#c9cbcf"),gt=0;window.theme==="dark"&&(V.darken(.3).desaturate(.3),R.darken(.3).desaturate(.3),Y.darken(.3).desaturate(.3),bt.darken(.3).desaturate(.3));let X=[V,bt,Y,R,zt,Ht,Jt,R];function j(e,t){let n={borderColor:V.rgbString(),backgroundColor:V.rgbString()},a;switch(e){default:let r=Math.floor(gt/2)%X.length;a=new m(X[r].rgbString()),a.lighten(.38),n={borderColor:X[r].hexString(),backgroundColor:a.hexString()};break;case"spent":a=new m(Y.rgbString()),a.lighten(.38),n={borderColor:Y.rgbString(),backgroundColor:a.rgbString()};break;case"left":a=new m(R.rgbString()),a.lighten(.38),n={borderColor:R.rgbString(),backgroundColor:a.rgbString()};break;case"overspent":a=new m(V.rgbString()),a.lighten(.22),n={borderColor:V.rgbString(),backgroundColor:a.rgbString()};break}return gt++,t==="border"?n.borderColor:t==="background"?n.backgroundColor:"#FF0000"}let B=[],K=null,tt=null,et=!1;const Zt=()=>({loading:!1,loadingAccounts:!1,accountList:[],autoConversion:!1,chartOptions:null,switchAutoConversion(){this.autoConversion=!this.autoConversion,Nt("autoConversion",this.autoConversion)},getFreshData(){const e=new Date(window.store.get("start")),t=new Date(window.store.get("end")),n=D("dashboard-accounts-chart",e,t),a=window.store.get("cacheValid");let o=window.store.get(n);if(a&&typeof o<"u"){console.log(o),this.drawChart(this.generateOptions(o)),this.loading=!1;return}new Yt().dashboard(e,t,null).then(i=>{this.chartData=i.data,window.store.set(n,i.data),console.log(i.data),this.drawChart(this.generateOptions(this.chartData)),this.loading=!1})},generateOptions(e){B=[];let t=J("line");for(let n=0;n<e.length;n++)if(e.hasOwnProperty(n)){let a="y",o=e[n],r={},i=[];n===0&&(t.data.labels=Object.keys(o.entries)),r.label=o.label,this.autoConversion&&(B.push(o.native_currency_code),r.currency_code=o.native_currency_code,i=Object.values(o.native_entries),a="y"+o.native_currency_code),this.autoConversion||(a="y"+o.currency_code,r.currency_code=o.currency_code,B.push(o.currency_code),i=Object.values(o.entries)),r.yAxisID=a,r.data=i,t.data.datasets.push(r)}for(let n in B)if(B.hasOwnProperty(n)){let a="y"+B[n];t.options.scales.hasOwnProperty(a)||(t.options.scales[a]={id:n,type:"linear",position:parseInt(n)===1?"right":"left",ticks:{callback:function(o,r,i){return g(o,B[n])}}})}return t},loadChart(){if(this.loading!==!0){if(this.loading=!0,tt===null){this.getFreshData();return}this.drawChart(this.generateOptions(tt)),this.loading=!1}},drawChart(e){if(K!==null){K.options=e.options,K.data=e.data,K.update();return}K=new A(document.querySelector("#account-chart"),e)},loadAccounts(){if(this.loadingAccounts===!0)return;if(this.loadingAccounts=!0,this.accountList.length>0){this.loadingAccounts=!1;return}const e=new Date(window.store.get("start")),t=new Date(window.store.get("end")),n=D("dashboard-accounts-data",e,t),a=window.store.get("cacheValid");let o=window.store.get(n);if(a&&typeof o<"u"){this.accountList=o,this.loadingAccounts=!1;return}const r=10;let i=0,l=0,u=[];Promise.all([b("frontpageAccounts")]).then(d=>{i=d[0].length;for(let h in d[0]){let c=d[0];if(c.hasOwnProperty(h)){let p=c[h];new ht().get(p,new Date(window.store.get("end"))).then(v=>{let C=v.data.data;const Ct={page:1,start:new Date(window.store.get("start")),end:new Date(window.store.get("end"))};new ht().transactions(C.id,Ct).then(st=>{let lt=[];for(let $=0;$<st.data.data.length&&!($>=r);$++){let M=st.data.data[$],ut={title:M.attributes.group_title===null?"":M.attributes.group_title,id:M.id,transactions:[]};for(let Z=0;Z<M.attributes.transactions.length;Z++){let P=M.attributes.transactions[Z];const ct=P.type==="withdrawal"?parseFloat(P.native_amount)*-1:parseFloat(P.native_amount),dt=P.type==="withdrawal"?parseFloat(P.amount)*-1:parseFloat(P.amount);ut.transactions.push({description:P.description,id:M.id,type:P.type,amount_raw:dt,amount:g(dt,P.currency_code),native_amount_raw:ct,native_amount:g(ct,P.native_currency_code)})}lt.push(ut)}u.push({name:C.attributes.name,order:C.attributes.order,id:C.id,balance_raw:parseFloat(C.attributes.current_balance),balance:g(C.attributes.current_balance,C.attributes.currency_code),native_balance_raw:parseFloat(C.attributes.native_current_balance),native_balance:g(C.attributes.native_current_balance,C.attributes.native_currency_code),groups:lt}),l++,l===i&&(u.sort(($,M)=>$.order-M.order),this.accountList=u,this.loadingAccounts=!1,window.store.set(n,u))})})}}})},init(){Promise.all([b("viewRange","1M"),b("autoConversion",!1),b("language","en_US")]).then(e=>{this.autoConversion=e[1],et=!0,this.loadChart(),this.loadAccounts()}),window.store.observe("end",()=>{et&&(tt=null,this.accountList=[],this.loadChart(),this.loadAccounts())}),window.store.observe("autoConversion",()=>{et&&(this.loadChart(),this.loadAccounts())})}});let Qt=class{dashboard(t,n){let a=f(t,"y-MM-dd"),o=f(n,"y-MM-dd");return k.get("/api/v2/chart/budget/dashboard",{params:{start:a,end:o}})}},E=[],U=null,S=null,at=!1,I;const Xt=()=>({loading:!1,autoConversion:!1,loadChart(){if(this.loading!==!0){if(this.loading=!0,S!==null){this.drawChart(this.generateOptions(S)),this.loading=!1;return}this.getFreshData()}},drawChart(e){if(U!==null){U.data.datasets=e.data.datasets,U.update();return}U=new A(document.querySelector("#budget-chart"),e)},getFreshData(){const e=new Date(window.store.get("start")),t=new Date(window.store.get("end")),n=D("dashboard-budgets-chart",e,t),a=window.store.get("cacheValid");let o=window.store.get(n);if(a&&typeof o<"u"){S=o,this.drawChart(this.generateOptions(S)),this.loading=!1;return}new Qt().dashboard(e,t,null).then(i=>{S=i.data,this.drawChart(this.generateOptions(S)),window.store.set(n,S),this.loading=!1})},generateOptions(e){E=[];let t=J("column");t.options.locale=window.store.get("locale").replace("_","-"),t.options.plugins={tooltip:{callbacks:{title:function(n){return n.label},label:function(n){let a=n.dataset.label||"";return a&&(a+=": "),a+" "+g(n.parsed.y,E[n.parsed.x]??"EUR")}}}},t.data={labels:[],datasets:[{label:I.t("firefly.spent"),data:[],borderWidth:1,stack:1,backgroundColor:j("spent","background"),borderColor:j("spent","border")},{label:I.t("firefly.left"),data:[],borderWidth:1,stack:1,backgroundColor:j("left","background"),borderColor:j("left","border")},{label:I.t("firefly.overspent"),data:[],borderWidth:1,stack:1,backgroundColor:j("overspent","background"),borderColor:j("overspent","border")}]};for(const n in e)if(e.hasOwnProperty(n)){let a=e[n],o=a.label+" ("+a.currency_code+")";t.data.labels.push(o),this.autoConversion&&(E.push(a.native_currency_code),t.data.datasets[0].data.push(parseFloat(a.native_entries.spent)*-1),t.data.datasets[1].data.push(parseFloat(a.native_entries.left)),t.data.datasets[2].data.push(parseFloat(a.native_entries.overspent))),this.autoConversion||(E.push(a.currency_code),t.data.datasets[0].data.push(parseFloat(a.entries.spent)*-1),t.data.datasets[1].data.push(parseFloat(a.entries.left)),t.data.datasets[2].data.push(parseFloat(a.entries.overspent)))}return t.options.scales={y:{ticks:{callback:function(n){return g(n,E[0]??"EUR")}}}},t},init(){Promise.all([b("autoConversion",!1),b("language","en_US")]).then(e=>{I=new H;const t=e[1].replace("-","_");I.locale=t,z(I,t).then(()=>{this.autoConversion=e[0],at=!0,this.loading===!1&&this.loadChart()})}),window.store.observe("end",()=>{at&&this.loading===!1&&(S=null,this.loadChart())}),window.store.observe("autoConversion",e=>{at&&(this.autoConversion=e,this.loading===!1&&this.loadChart())})}});class te{dashboard(t,n){let a=f(t,"y-MM-dd"),o=f(n,"y-MM-dd");return k.get("/api/v2/chart/category/dashboard",{params:{start:a,end:o}})}}let ft=[],L=null,W=null,nt=!1;const ee=()=>({loading:!1,autoConversion:!1,generateOptions(e){ft=[];let t=J("column"),n={};for(const o in e)if(e.hasOwnProperty(o)){let r=e[o],i=r.currency_code;this.autoConversion&&(i=r.native_currency_code),n.hasOwnProperty(i)||(n[i]={name:i,yAxisID:"",data:{}},ft.push(i))}for(const o in e)if(e.hasOwnProperty(o)){let r=e[o],i=r.currency_code;this.autoConversion&&(i=r.native_currency_code);for(const l in n)if(n.hasOwnProperty(l)){let u=0;i===l&&(u=parseFloat(r.amount),""+r.currency_code,this.autoConversion&&(u=parseFloat(r.native_amount),""+r.native_currency_code)),n[l].data.hasOwnProperty(r.label)&&(n[l].data[r.label]=n[l].data[r.label]+u),n[l].data.hasOwnProperty(r.label)||(n[l].data[r.label]=u)}t.data.labels.includes(r.label)||t.data.labels.push(r.label)}let a=0;for(const o in n){let r="y"+o,i={label:o,currency_code:o,yAxisID:r,data:[]};for(const l in n[o].data)i.data.push(n[o].data[l]);t.data.datasets.push(i),t.options.scales.hasOwnProperty(r)||(t.options.scales[r]={beginAtZero:!0,type:"linear",position:a===1?"right":"left",ticks:{callback:function(l,u,d){return g(l,o)}}},a++)}return t},drawChart(e){if(L!==null){L.options=e.options,L.data=e.data,L.update();return}L=new A(document.querySelector("#category-chart"),e)},getFreshData(){const e=new Date(window.store.get("start")),t=new Date(window.store.get("end")),n=D("dashboard-categories-chart",e,t),a=window.store.get("cacheValid");let o=window.store.get(n);if(a&&typeof o<"u"){W=o,this.drawChart(this.generateOptions(W)),this.loading=!1;return}new te().dashboard(e,t,null).then(i=>{W=i.data,this.drawChart(this.generateOptions(i.data)),window.store.set(n,W),this.loading=!1})},loadChart(){if(this.loading!==!0){if(this.loading=!0,W!==null){this.drawChart(this.generateOptions(W)),this.loading=!1;return}this.getFreshData()}},init(){Promise.all([b("autoConversion",!1)]).then(e=>{this.autoConversion=e[0],nt=!0,this.loadChart()}),window.store.observe("end",()=>{nt&&(this.chartData=null,this.loadChart())}),window.store.observe("autoConversion",e=>{nt&&(this.autoConversion=e,this.loadChart())})}});class ae{list(t){return k.get("/api/v2/transactions",{params:t})}}A.register({SankeyController:Ot,Flow:Mt});const pt="dashboard-sankey-data";let y,ot=!1,q=null,x=[],_=!1,s={category:null,unknown_category:null,in:null,out:null,unknown_source:null,unknown_dest:null,unknown_account:null,expense_account:null,revenue_account:null,budget:null,unknown_budget:null,all_money:null};const _t=function(e){return e.includes(s.revenue_account)?"forestgreen":e.includes("("+s.in+",")?"green":e.includes(s.budget)||e.includes(s.unknown_budget)?"Orchid":e.includes("("+s.out+",")?"MediumOrchid":e.includes(s.all_money)?"blue":"red"};function G(e,t,n,a){if(e==="category"&&t!==null&&n==="in")return s.category+' "'+t+'" ('+s.in+(_?", "+a+")":")");if(e==="category"&&t===null&&n==="in")return s.unknown_category+" ("+s.in+(_?", "+a+")":")");if(e==="category"&&t!==null&&n==="out")return s.category+' "'+t+'" ('+s.out+(_?", "+a+")":")");if(e==="category"&&t===null&&n==="out")return s.unknown_category+" ("+s.out+(_?", "+a+")":")");if(e==="account"&&t===null&&n==="in")return s.unknown_source+(_?" ("+a+")":"");if(e==="account"&&t!==null&&n==="in")return s.revenue_account+'"'+t+'"'+(_?" ("+a+")":"");if(e==="account"&&t===null&&n==="out")return s.unknown_dest+(_?" ("+a+")":"");if(e==="account"&&t!==null&&n==="out")return s.expense_account+' "'+t+'"'+(_?" ("+a+")":"");if(e==="budget"&&t!==null)return s.budget+' "'+t+'"'+(_?" ("+a+")":"");if(e==="budget"&&t===null)return s.unknown_budget+(_?" ("+a+")":"");console.error('Cannot handle: type:"'+e+'", dir: "'+n+'"')}function T(e,t,n){if(e==="category"&&t!==null)return s.category+' "'+t+'"'+(_?" ("+n+")":"");if(e==="category"&&t===null)return s.unknown_category+(_?" ("+n+")":"");if(e==="account"&&t===null)return s.unknown_account+(_?" ("+n+")":"");if(e==="account"&&t!==null)return t+(_?" ("+n+")":"");if(e==="budget"&&t!==null)return s.budget+' "'+t+'"'+(_?" ("+n+")":"");if(e==="budget"&&t===null)return s.unknown_budget+(_?" ("+n+")":"");console.error('Cannot handle: type:"'+e+'"')}const ne=()=>({loading:!1,autoConversion:!1,generateOptions(){let e=J("sankey"),t={},n={};for(let o in x)if(x.hasOwnProperty(o)){let r=x[o];for(let i in r.attributes.transactions)if(r.attributes.transactions.hasOwnProperty(i)){let l=r.attributes.transactions[i],u=this.autoConversion?l.native_currency_code:l.currency_code,d=this.autoConversion?parseFloat(l.native_amount):parseFloat(l.amount),h;if(l.type==="deposit"){let c=G("category",l.category_name,"in",u),p=G("account",l.source_name,"in",u);n[c]=T("category",l.category_name,u),n[p]=T("account",l.source_name,u),h=p+"-"+c+"-"+u,t.hasOwnProperty(h)||(t[h]={from:p,to:c,amount:0}),t[h].amount+=d,h=c+"-"+s.all_money+"-"+u,t.hasOwnProperty(h)||(t[h]={from:c,to:s.all_money+(this.autoConversion?" ("+u+")":""),amount:0}),t[h].amount+=d}if(l.type==="withdrawal"){let c=G("budget",l.budget_name,"out",u);n[c]=T("budget",l.budget_name,u),h=s.all_money+"-"+c+"-"+u,t.hasOwnProperty(h)||(t[h]={from:s.all_money+(this.autoConversion?" ("+u+")":""),to:c,amount:0}),t[h].amount+=d;let p=G("category",l.category_name,"out",u);n[p]=T("category",l.category_name,u),h=c+"-"+p+"-"+u,t.hasOwnProperty(h)||(t[h]={from:c,to:p,amount:0}),t[h].amount+=d;let v=G("account",l.destination_name,"out",u);n[v]=T("account",l.destination_name,u),h=p+"-"+v+"-"+u,t.hasOwnProperty(h)||(t[h]={from:p,to:v,amount:0}),t[h].amount+=d}}}let a={label:"Firefly III dashboard sankey chart",data:[],colorFrom:o=>_t(o.dataset.data[o.dataIndex]?o.dataset.data[o.dataIndex].from:""),colorTo:o=>_t(o.dataset.data[o.dataIndex]?o.dataset.data[o.dataIndex].to:""),colorMode:"gradient",labels:n,size:"min"};for(let o in t)if(t.hasOwnProperty(o)){let r=t[o];a.data.push({from:r.from,to:r.to,flow:r.amount})}return e.data.datasets.push(a),e},drawChart(e){if(q!==null){q.data.datasets=e.data.datasets,q.update();return}q=new A(document.querySelector("#sankey-chart"),e)},getFreshData(){const e=new Date(window.store.get("start")),t=new Date(window.store.get("end")),n=D(pt,e,t),a=window.store.get("cacheValid");let o=window.store.get(n);if(a&&typeof o<"u"){x=o,this.drawChart(this.generateOptions()),this.loading=!1;return}let r={start:f(e,"y-MM-dd"),end:f(t,"y-MM-dd"),type:"withdrawal,deposit",page:1};this.downloadTransactions(r)},downloadTransactions(e){const t=new Date(window.store.get("start")),n=new Date(window.store.get("end")),a=D(pt,t,n);new ae().list(e).then(r=>{if(x=[...x,...r.data.data],parseInt(r.data.meta.pagination.total_pages)>e.page){e.page++,this.downloadTransactions(e);return}window.store.set(a,x),this.drawChart(this.generateOptions()),this.loading=!1})},loadChart(){if(this.loading!==!0){if(this.loading=!0,x.length!==0){this.drawChart(this.generateOptions()),this.loading=!1;return}this.getFreshData()}},init(){x=[],Promise.all([b("autoConversion",!1),b("language","en_US")]).then(e=>{this.autoConversion=e[0],_=e[0],y=new H;const t=e[1].replace("-","_");y.locale=t,z(y,t).then(()=>{s.all_money=y.t("firefly.all_money"),s.category=y.t("firefly.category"),s.in=y.t("firefly.money_flowing_in"),s.out=y.t("firefly.money_flowing_out"),s.unknown_category=y.t("firefly.unknown_category_plain"),s.unknown_source=y.t("firefly.unknown_source_plain"),s.unknown_dest=y.t("firefly.unknown_dest_plain"),s.unknown_account=y.t("firefly.unknown_any_plain"),s.unknown_budget=y.t("firefly.unknown_budget_plain"),s.expense_account=y.t("firefly.expense_account"),s.revenue_account=y.t("firefly.revenue_account"),s.budget=y.t("firefly.budget"),ot=!0,this.loadChart()})}),window.store.observe("end",()=>{ot&&(this.transactions=[],this.loadChart())}),window.store.observe("autoConversion",e=>{ot&&(this.autoConversion=e,this.loadChart())})}});let rt=!1,F,w={};function wt(e){return new Dt().list(e).then(n=>{let a=n.data.data;for(let o in a)if(a.hasOwnProperty(o)){let r=a[o];if(r.attributes.active&&r.attributes.pay_dates.length>0){let i=r.attributes.object_group_id===null?0:r.attributes.object_group_id,l=r.attributes.object_group_title===null?F.t("firefly.default_group_title_name_plain"):r.attributes.object_group_title,u=r.attributes.object_group_order===null?0:r.attributes.object_group_order;w.hasOwnProperty(i)||(w[i]={id:i,title:l,order:u,payment_info:{},bills:[]});let d={id:r.id,name:r.attributes.name,amount_min:r.attributes.amount_min,amount_max:r.attributes.amount_max,amount:(parseFloat(r.attributes.amount_max)+parseFloat(r.attributes.amount_min))/2,currency_code:r.attributes.currency_code,native_amount_min:r.attributes.native_amount_min,native_amount_max:r.attributes.native_amount_max,native_amount:(parseFloat(r.attributes.native_amount_max)+parseFloat(r.attributes.native_amount_min))/2,native_currency_code:r.attributes.native_currency_code,transactions:[],pay_dates:r.attributes.pay_dates,paid:r.attributes.paid_dates.length>0};d.expected_amount=e.autoConversion?g(d.native_amount,d.native_currency_code):g(d.amount,d.currency_code),d.expected_times=F.t("firefly.subscr_expected_x_times",{times:r.attributes.pay_dates.length,amount:d.expected_amount});for(let h in r.attributes.paid_dates)if(r.attributes.paid_dates.hasOwnProperty(h)){const c=r.attributes.paid_dates[h];let p=100;e.autoConversion&&(p=Math.round(-100+parseFloat(c.native_amount)*-1/parseFloat(d.native_amount)*100)),e.autoConversion||(p=Math.round(-100+parseFloat(c.amount)*-1/parseFloat(d.amount)*100));let v={amount:e.autoConversion?g(c.native_amount,c.native_currency_code):g(c.amount,c.currency_code),percentage:p,date:f(new Date(c.date),"PP"),foreign_amount:null};c.foreign_currency_code!==null&&(v.foreign_amount=e.autoConversion?c.foreign_native_amount:c.foreign_amount,v.foreign_currency_code=e.autoConversion?c.native_currency_code:c.foreign_currency_code),d.transactions.push(v)}if(w[i].bills.push(d),r.attributes.paid_dates.length===0){const h=r.attributes.pay_dates.length*d.amount,c=r.attributes.pay_dates.length*d.native_amount;w[i].payment_info.hasOwnProperty(d.currency_code)||(w[i].payment_info[d.currency_code]={currency_code:d.currency_code,paid:0,unpaid:0,native_currency_code:d.native_currency_code,native_paid:0,native_unpaid:0}),w[i].payment_info[d.currency_code].unpaid+=h,w[i].payment_info[d.currency_code].native_unpaid+=c}if(r.attributes.paid_dates.length>0){for(let h in r.attributes.paid_dates)if(r.attributes.paid_dates.hasOwnProperty(h)){let c=r.attributes.paid_dates[h];w[i].payment_info.hasOwnProperty(c.currency_code)||(w[i].payment_info[c.currency_code]={currency_code:d.currency_code,paid:0,unpaid:0,native_currency_code:d.native_currency_code,native_paid:0,native_unpaid:0});const p=parseFloat(c.amount)*-1,v=parseFloat(c.native_amount)*-1;w[i].payment_info[c.currency_code].paid+=p,w[i].payment_info[c.currency_code].native_paid+=v}}}}return parseInt(n.data.meta.pagination.total_pages)>e.page?(e.page++,wt(e)):Promise.resolve()})}const oe=()=>({loading:!1,autoConversion:!1,subscriptions:[],startSubscriptions(){this.loading=!0;let e=new Date(window.store.get("start")),t=new Date(window.store.get("end"));const n=window.store.get("cacheValid");let a=window.store.get(D("subscriptions-data-dashboard",e,t));n&&typeof a<"u",w={},this.subscriptions=[],console.log("cache is invalid, must download");let o={start:f(e,"y-MM-dd"),end:f(t,"y-MM-dd"),autoConversion:this.autoConversion,page:1};wt(o).then(()=>{console.log("Done with download!");let r=Object.values(w);for(let i in r)if(r.hasOwnProperty(i)){let l=r[i];const u=Object.keys(l.payment_info);l.col_size=u.length===1?"col-6 offset-3":"col-6",l.chart_width=u.length===1?"50%":"100%",l.payment_length=u.length,this.subscriptions.push(l)}this.loading=!1})},drawPieChart(e,t,n){let a="#pie_"+e+"_"+n.currency_code;const o=this.autoConversion?n.native_unpaid:n.unpaid,r=this.autoConversion?n.native_paid:n.paid,i=this.autoConversion?n.native_currency_code:n.currency_code,u={type:"doughnut",data:{labels:[F.t("firefly.paid"),F.t("firefly.unpaid")],datasets:[{label:F.t("firefly.subscriptions_in_group",{title:t}),data:[r,o],backgroundColor:["rgb(54, 162, 235)","rgb(255, 99, 132)"],hoverOffset:4}]},options:{plugins:{tooltip:{callbacks:{label:function(h){return h.dataset.label+": "+g(h.raw,i)}}}}}};var d=A.getChart(document.querySelector(a));typeof d<"u"&&d.destroy(),new A(document.querySelector(a),u)},init(){console.log("subscriptions init"),Promise.all([b("autoConversion",!1),b("language","en_US")]).then(e=>{console.log("subscriptions after promises"),this.autoConversion=e[0],rt=!0,F=new H;const t=e[1].replace("-","_");F.locale=t,z(F,t).then(()=>{this.loading===!1&&this.startSubscriptions()})}),window.store.observe("end",()=>{rt&&(console.log("subscriptions observe end"),this.loading===!1&&this.startSubscriptions())}),window.store.observe("autoConversion",e=>{rt&&(console.log("subscriptions observe autoConversion"),this.autoConversion=e,this.loading===!1&&this.startSubscriptions())})}});let O={},it=!1,N;const yt="dashboard-piggies-data",re=()=>({loading:!1,autoConversion:!1,sankeyGrouping:"account",piggies:[],getFreshData(){const e=new Date(window.store.get("start")),t=new Date(window.store.get("end")),n=D(yt,e,t),a=window.store.get("cacheValid");let o=window.store.get(n);if(a&&typeof o<"u"){O=o,this.parsePiggies(),this.loading=!1;return}let r={start:f(e,"y-MM-dd"),end:f(t,"y-MM-dd"),page:1};this.downloadPiggyBanks(r)},downloadPiggyBanks(e){const t=new Date(window.store.get("start")),n=new Date(window.store.get("end")),a=D(yt,t,n);new xt().list(e).then(r=>{if(O=[...O,...r.data.data],parseInt(r.data.meta.pagination.total_pages)>e.page){e.page++,this.downloadPiggyBanks(e);return}window.store.set(a,O),this.parsePiggies(),this.loading=!1})},parsePiggies(){let e=[];for(let t in O)if(O.hasOwnProperty(t)){let n=O[t];if(n.attributes.percentage>=100||n.attributes.percentage===0)continue;let a=n.object_group_title??N.t("firefly.default_group_title_name_plain");e.hasOwnProperty(a)||(e[a]={id:n.object_group_id??0,title:a,order:n.object_group_order??0,piggies:[]});let o={id:n.id,name:n.attributes.name,percentage:parseInt(n.attributes.percentage),amount:this.autoConversion?n.attributes.native_current_amount:n.attributes.current_amount,left_to_save:this.autoConversion?n.attributes.native_left_to_save:n.attributes.left_to_save,target_amount:this.autoConversion?n.attributes.native_target_amount:n.attributes.target_amount,save_per_month:this.autoConversion?n.attributes.native_save_per_month:n.attributes.save_per_month,currency_code:this.autoConversion?n.attributes.native_currency_code:n.attributes.currency_code};e[a].piggies.push(o)}this.piggies=Object.values(e)},loadPiggyBanks(){if(this.loading!==!0){if(this.loading=!0,this.piggies.length!==0){this.parsePiggies(),this.loading=!1;return}this.getFreshData()}},init(){O=[],Promise.all([b("autoConversion",!1),b("language","en_US")]).then(e=>{N=new H;const t=e[1].replace("-","_");N.locale=t,z(N,t).then(()=>{it=!0,this.autoConversion=e[0],this.loadPiggyBanks()})}),window.store.observe("end",()=>{it&&(O=[],this.loadPiggyBanks())}),window.store.observe("autoConversion",e=>{it&&(this.autoConversion=e,this.loadPiggyBanks())})}});A.register({LineController:St,LineElement:Ft,ArcElement:At,BarController:Bt,TimeScale:$t,PieController:jt,BarElement:It,Filler:Wt,Colors:Vt,LinearScale:Kt,CategoryScale:Et,PointElement:Lt,Tooltip:Gt,Legend:Tt});const vt={dates:kt,boxes:Ut,accounts:Zt,budgets:Xt,categories:ee,sankey:ne,subscriptions:oe,piggies:re};function mt(e){Object.keys(e).forEach(t=>{console.log(`Loading page component "${t}"`);let n=e[t]();Alpine.data(t,()=>n)}),Alpine.start()}document.addEventListener("firefly-iii-bootstrapped",()=>{mt(vt)});window.bootstrapped&&mt(vt);
+import{a as k,g as b,P as Pt,l as z,d as kt}from"./load-translations-9dfbf635.js";import{f as g,G as Dt,a as xt}from"./get-35a1642f.js";import{f,C as m,a as A,I as H,S as Ot,F as Mt,L as St,b as Ft,A as At,B as Bt,T as $t,P as jt,c as It,i as Wt,p as Vt,d as Kt,e as Et,g as Lt,h as Gt,j as Tt}from"./vendor-97200597.js";class Rt{get(t,n,a){return k.get("/api/v2/summary/basic",{params:{start:t,end:n,code:a}})}}function D(e,t,n){const a=f(t,"y-MM-dd")+"_"+f(n,"y-MM-dd")+"_"+e;return console.log("getCacheKey: "+a),String(a)}let Q=!1;const Ut=()=>({balanceBox:{amounts:[],subtitles:[]},billBox:{paid:[],unpaid:[]},leftBox:{left:[],perDay:[]},netBox:{net:[]},autoConversion:!1,loading:!1,boxData:null,boxOptions:null,getFreshData(){const e=new Date(window.store.get("start")),t=new Date(window.store.get("end")),n=D("dashboard-boxes-data",e,t),a=window.store.get("cacheValid");let o=window.store.get(n);if(a&&typeof o<"u"){this.boxData=o,this.generateOptions(this.boxData);return}new Rt().get(f(e,"yyyy-MM-dd"),f(t,"yyyy-MM-dd"),null).then(i=>{this.boxData=i.data,window.store.set(n,i.data),this.generateOptions(this.boxData)})},generateOptions(e){this.balanceBox={amounts:[],subtitles:[]},this.billBox={paid:[],unpaid:[]},this.leftBox={left:[],perDay:[]},this.netBox={net:[]};let t={};for(const n in e)if(e.hasOwnProperty(n)){const a=e[n];if(!a.hasOwnProperty("key"))continue;let o=a.key;if(this.autoConversion){if(o.startsWith("balance-in-native")){this.balanceBox.amounts.push(g(a.value,a.currency_code)),t.hasOwnProperty(a.currency_code)||(t[a.currency_code]="");continue}if(o.startsWith("spent-in-native")){t.hasOwnProperty(a.currency_code)||(t[a.currency_code]=""),t[a.currency_code]=t[a.currency_code]+g(a.value,a.currency_code);continue}if(o.startsWith("earned-in-native")){t.hasOwnProperty(a.currency_code)||(t[a.currency_code]=""),t[a.currency_code]=g(a.value,a.currency_code)+" + "+t[a.currency_code];continue}if(o.startsWith("bills-unpaid-in-native")){this.billBox.unpaid.push(g(a.value,a.currency_code));continue}if(o.startsWith("bills-paid-in-native")){this.billBox.paid.push(g(a.value,a.currency_code));continue}if(o.startsWith("left-to-spend-in-native")){this.leftBox.left.push(g(a.value,a.currency_code));continue}if(o.startsWith("left-per-day-to-spend-in-native")){this.leftBox.perDay.push(g(a.value,a.currency_code));continue}if(o.startsWith("net-worth-in-native")){this.netBox.net.push(g(a.value,a.currency_code));continue}}if(!this.autoConversion&&!o.endsWith("native")){if(o.startsWith("balance-in-")){this.balanceBox.amounts.push(g(a.value,a.currency_code));continue}if(o.startsWith("spent-in-")){t.hasOwnProperty(a.currency_code)||(t[a.currency_code]=""),t[a.currency_code]=t[a.currency_code]+g(a.value,a.currency_code);continue}if(o.startsWith("earned-in-")){t.hasOwnProperty(a.currency_code)||(t[a.currency_code]=""),t[a.currency_code]=g(a.value,a.currency_code)+" + "+t[a.currency_code];continue}if(o.startsWith("bills-unpaid-in-")){this.billBox.unpaid.push(g(a.value,a.currency_code));continue}if(o.startsWith("bills-paid-in-")){this.billBox.paid.push(g(a.value,a.currency_code));continue}if(o.startsWith("left-to-spend-in-")){this.leftBox.left.push(g(a.value,a.currency_code));continue}if(o.startsWith("left-per-day-to-spend-in-")){this.leftBox.perDay.push(g(a.value,a.currency_code));continue}o.startsWith("net-worth-in-")&&this.netBox.net.push(g(a.value,a.currency_code))}}for(let n in t)t.hasOwnProperty(n)&&this.balanceBox.subtitles.push(t[n]);this.loading=!1},loadBoxes(){if(this.loading!==!0){if(this.loading=!0,this.boxData===null){this.getFreshData();return}this.generateOptions(this.boxData),this.loading=!1}},init(){Promise.all([b("viewRange"),b("autoConversion",!1)]).then(e=>{Q=!0,this.autoConversion=e[1],this.loadBoxes()}),window.store.observe("end",()=>{Q&&(this.boxData=null,this.loadBoxes())}),window.store.observe("autoConversion",e=>{Q&&(this.autoConversion=e,this.loadBoxes())})}});class qt{put(t,n){let a="/api/v1/preferences/"+t;return k.put(a,{data:n})}}function Nt(e,t=null){window.store.set(e,t),new qt().put(e,t).then(a=>{}).catch(()=>{new Pt().post(e,t).then(o=>{})})}let Yt=class{dashboard(t,n){let a=f(t,"y-MM-dd"),o=f(n,"y-MM-dd");return k.get("/api/v2/chart/account/dashboard",{params:{start:a,end:o}})}expense(t,n){let a=f(t,"y-MM-dd"),o=f(n,"y-MM-dd");return k.get("/api/v2/chart/account/expense-dashboard",{params:{start:a,end:o}})}},ht=class{get(t,n){let a={date:f(n,"y-MM-dd").slice(0,10)};return n?k.get("/api/v2/accounts/"+t,{params:a}):k.get("/api/v2/accounts/"+t)}transactions(t,n){const a={page:n.page??1};return n.hasOwnProperty("start")&&(a.start=f(n.start,"y-MM-dd")),n.hasOwnProperty("end")&&(a.end=f(n.end,"y-MM-dd")),k.get("/api/v2/accounts/"+t+"/transactions",{params:a})}};function J(e){return e==="sankey"?{type:"sankey",data:{datasets:[]},options:{animations:!1}}:e==="pie"?{type:"pie",data:{datasets:[]}}:e==="column"?{type:"bar",data:{labels:[],datasets:[]},options:{plugins:{tooltip:{callbacks:{label:function(t){let n=t.dataset.currency_code;return g(t.raw,n)}}}},maintainAspectRatio:!1,scales:{}}}:e==="line"?{options:{plugins:{tooltip:{callbacks:{label:function(t){let n=t.dataset.currency_code;return g(t.raw,n)}}}},maintainAspectRatio:!1,scales:{x:{type:"time",time:{tooltipFormat:"PP"}}}},type:"line",data:{labels:[],datasets:[]}}:{}}let Y=new m("#36a2eb"),V=new m("#ff6384"),R=new m("#4bc0c0"),bt=new m("#ff9f40"),zt=new m("#9966ff"),Ht=new m("#ffcd56"),Jt=new m("#c9cbcf"),gt=0;window.theme==="dark"&&(V.darken(.3).desaturate(.3),R.darken(.3).desaturate(.3),Y.darken(.3).desaturate(.3),bt.darken(.3).desaturate(.3));let X=[V,bt,Y,R,zt,Ht,Jt,R];function j(e,t){let n={borderColor:V.rgbString(),backgroundColor:V.rgbString()},a;switch(e){default:let r=Math.floor(gt/2)%X.length;a=new m(X[r].rgbString()),a.lighten(.38),n={borderColor:X[r].hexString(),backgroundColor:a.hexString()};break;case"spent":a=new m(Y.rgbString()),a.lighten(.38),n={borderColor:Y.rgbString(),backgroundColor:a.rgbString()};break;case"left":a=new m(R.rgbString()),a.lighten(.38),n={borderColor:R.rgbString(),backgroundColor:a.rgbString()};break;case"overspent":a=new m(V.rgbString()),a.lighten(.22),n={borderColor:V.rgbString(),backgroundColor:a.rgbString()};break}return gt++,t==="border"?n.borderColor:t==="background"?n.backgroundColor:"#FF0000"}let B=[],K=null,tt=null,et=!1;const Zt=()=>({loading:!1,loadingAccounts:!1,accountList:[],autoConversion:!1,chartOptions:null,switchAutoConversion(){this.autoConversion=!this.autoConversion,Nt("autoConversion",this.autoConversion)},getFreshData(){const e=new Date(window.store.get("start")),t=new Date(window.store.get("end")),n=D("dashboard-accounts-chart",e,t),a=window.store.get("cacheValid");let o=window.store.get(n);if(a&&typeof o<"u"){console.log(o),this.drawChart(this.generateOptions(o)),this.loading=!1;return}new Yt().dashboard(e,t,null).then(i=>{this.chartData=i.data,window.store.set(n,i.data),console.log(i.data),this.drawChart(this.generateOptions(this.chartData)),this.loading=!1})},generateOptions(e){B=[];let t=J("line");for(let n=0;n<e.length;n++)if(e.hasOwnProperty(n)){let a="y",o=e[n],r={},i=[];n===0&&(t.data.labels=Object.keys(o.entries)),r.label=o.label,this.autoConversion&&(B.push(o.native_currency_code),r.currency_code=o.native_currency_code,i=Object.values(o.native_entries),a="y"+o.native_currency_code),this.autoConversion||(a="y"+o.currency_code,r.currency_code=o.currency_code,B.push(o.currency_code),i=Object.values(o.entries)),r.yAxisID=a,r.data=i,t.data.datasets.push(r)}for(let n in B)if(B.hasOwnProperty(n)){let a="y"+B[n];t.options.scales.hasOwnProperty(a)||(t.options.scales[a]={id:n,type:"linear",position:parseInt(n)===1?"right":"left",ticks:{callback:function(o,r,i){return g(o,B[n])}}})}return t},loadChart(){if(this.loading!==!0){if(this.loading=!0,tt===null){this.getFreshData();return}this.drawChart(this.generateOptions(tt)),this.loading=!1}},drawChart(e){if(K!==null){K.options=e.options,K.data=e.data,K.update();return}K=new A(document.querySelector("#account-chart"),e)},loadAccounts(){if(this.loadingAccounts===!0)return;if(this.loadingAccounts=!0,this.accountList.length>0){this.loadingAccounts=!1;return}const e=new Date(window.store.get("start")),t=new Date(window.store.get("end")),n=D("dashboard-accounts-data",e,t),a=window.store.get("cacheValid");let o=window.store.get(n);if(a&&typeof o<"u"){this.accountList=o,this.loadingAccounts=!1;return}const r=10;let i=0,l=0,u=[];Promise.all([b("frontpageAccounts")]).then(d=>{i=d[0].length;for(let h in d[0]){let c=d[0];if(c.hasOwnProperty(h)){let p=c[h];new ht().get(p,new Date(window.store.get("end"))).then(v=>{let C=v.data.data;const Ct={page:1,start:new Date(window.store.get("start")),end:new Date(window.store.get("end"))};new ht().transactions(C.id,Ct).then(st=>{let lt=[];for(let $=0;$<st.data.data.length&&!($>=r);$++){let M=st.data.data[$],ut={title:M.attributes.group_title===null?"":M.attributes.group_title,id:M.id,transactions:[]};for(let Z=0;Z<M.attributes.transactions.length;Z++){let P=M.attributes.transactions[Z];const ct=P.type==="withdrawal"?parseFloat(P.native_amount)*-1:parseFloat(P.native_amount),dt=P.type==="withdrawal"?parseFloat(P.amount)*-1:parseFloat(P.amount);ut.transactions.push({description:P.description,id:M.id,type:P.type,amount_raw:dt,amount:g(dt,P.currency_code),native_amount_raw:ct,native_amount:g(ct,P.native_currency_code)})}lt.push(ut)}u.push({name:C.attributes.name,order:C.attributes.order,id:C.id,balance_raw:parseFloat(C.attributes.current_balance),balance:g(C.attributes.current_balance,C.attributes.currency_code),native_balance_raw:parseFloat(C.attributes.native_current_balance),native_balance:g(C.attributes.native_current_balance,C.attributes.native_currency_code),groups:lt}),l++,l===i&&(u.sort(($,M)=>$.order-M.order),this.accountList=u,this.loadingAccounts=!1,window.store.set(n,u))})})}}})},init(){Promise.all([b("viewRange","1M"),b("autoConversion",!1),b("language","en_US")]).then(e=>{this.autoConversion=e[1],et=!0,this.loadChart(),this.loadAccounts()}),window.store.observe("end",()=>{et&&(tt=null,this.accountList=[],this.loadChart(),this.loadAccounts())}),window.store.observe("autoConversion",()=>{et&&(this.loadChart(),this.loadAccounts())})}});let Qt=class{dashboard(t,n){let a=f(t,"y-MM-dd"),o=f(n,"y-MM-dd");return k.get("/api/v2/chart/budget/dashboard",{params:{start:a,end:o}})}},E=[],U=null,S=null,at=!1,I;const Xt=()=>({loading:!1,autoConversion:!1,loadChart(){if(this.loading!==!0){if(this.loading=!0,S!==null){this.drawChart(this.generateOptions(S)),this.loading=!1;return}this.getFreshData()}},drawChart(e){if(U!==null){U.data.datasets=e.data.datasets,U.update();return}U=new A(document.querySelector("#budget-chart"),e)},getFreshData(){const e=new Date(window.store.get("start")),t=new Date(window.store.get("end")),n=D("dashboard-budgets-chart",e,t),a=window.store.get("cacheValid");let o=window.store.get(n);if(a&&typeof o<"u"){S=o,this.drawChart(this.generateOptions(S)),this.loading=!1;return}new Qt().dashboard(e,t,null).then(i=>{S=i.data,this.drawChart(this.generateOptions(S)),window.store.set(n,S),this.loading=!1})},generateOptions(e){E=[];let t=J("column");t.options.locale=window.store.get("locale").replace("_","-"),t.options.plugins={tooltip:{callbacks:{title:function(n){return n.label},label:function(n){let a=n.dataset.label||"";return a&&(a+=": "),a+" "+g(n.parsed.y,E[n.parsed.x]??"EUR")}}}},t.data={labels:[],datasets:[{label:I.t("firefly.spent"),data:[],borderWidth:1,stack:1,backgroundColor:j("spent","background"),borderColor:j("spent","border")},{label:I.t("firefly.left"),data:[],borderWidth:1,stack:1,backgroundColor:j("left","background"),borderColor:j("left","border")},{label:I.t("firefly.overspent"),data:[],borderWidth:1,stack:1,backgroundColor:j("overspent","background"),borderColor:j("overspent","border")}]};for(const n in e)if(e.hasOwnProperty(n)){let a=e[n],o=a.label+" ("+a.currency_code+")";t.data.labels.push(o),this.autoConversion&&(E.push(a.native_currency_code),t.data.datasets[0].data.push(parseFloat(a.native_entries.spent)*-1),t.data.datasets[1].data.push(parseFloat(a.native_entries.left)),t.data.datasets[2].data.push(parseFloat(a.native_entries.overspent))),this.autoConversion||(E.push(a.currency_code),t.data.datasets[0].data.push(parseFloat(a.entries.spent)*-1),t.data.datasets[1].data.push(parseFloat(a.entries.left)),t.data.datasets[2].data.push(parseFloat(a.entries.overspent)))}return t.options.scales={y:{ticks:{callback:function(n){return g(n,E[0]??"EUR")}}}},t},init(){Promise.all([b("autoConversion",!1),b("language","en_US")]).then(e=>{I=new H;const t=e[1].replace("-","_");I.locale=t,z(I,t).then(()=>{this.autoConversion=e[0],at=!0,this.loading===!1&&this.loadChart()})}),window.store.observe("end",()=>{at&&this.loading===!1&&(S=null,this.loadChart())}),window.store.observe("autoConversion",e=>{at&&(this.autoConversion=e,this.loading===!1&&this.loadChart())})}});class te{dashboard(t,n){let a=f(t,"y-MM-dd"),o=f(n,"y-MM-dd");return k.get("/api/v2/chart/category/dashboard",{params:{start:a,end:o}})}}let ft=[],L=null,W=null,nt=!1;const ee=()=>({loading:!1,autoConversion:!1,generateOptions(e){ft=[];let t=J("column"),n={};for(const o in e)if(e.hasOwnProperty(o)){let r=e[o],i=r.currency_code;this.autoConversion&&(i=r.native_currency_code),n.hasOwnProperty(i)||(n[i]={name:i,yAxisID:"",data:{}},ft.push(i))}for(const o in e)if(e.hasOwnProperty(o)){let r=e[o],i=r.currency_code;this.autoConversion&&(i=r.native_currency_code);for(const l in n)if(n.hasOwnProperty(l)){let u=0;i===l&&(u=parseFloat(r.amount),""+r.currency_code,this.autoConversion&&(u=parseFloat(r.native_amount),""+r.native_currency_code)),n[l].data.hasOwnProperty(r.label)&&(n[l].data[r.label]=n[l].data[r.label]+u),n[l].data.hasOwnProperty(r.label)||(n[l].data[r.label]=u)}t.data.labels.includes(r.label)||t.data.labels.push(r.label)}let a=0;for(const o in n){let r="y"+o,i={label:o,currency_code:o,yAxisID:r,data:[]};for(const l in n[o].data)i.data.push(n[o].data[l]);t.data.datasets.push(i),t.options.scales.hasOwnProperty(r)||(t.options.scales[r]={beginAtZero:!0,type:"linear",position:a===1?"right":"left",ticks:{callback:function(l,u,d){return g(l,o)}}},a++)}return t},drawChart(e){if(L!==null){L.options=e.options,L.data=e.data,L.update();return}L=new A(document.querySelector("#category-chart"),e)},getFreshData(){const e=new Date(window.store.get("start")),t=new Date(window.store.get("end")),n=D("dashboard-categories-chart",e,t),a=window.store.get("cacheValid");let o=window.store.get(n);if(a&&typeof o<"u"){W=o,this.drawChart(this.generateOptions(W)),this.loading=!1;return}new te().dashboard(e,t,null).then(i=>{W=i.data,this.drawChart(this.generateOptions(i.data)),window.store.set(n,W),this.loading=!1})},loadChart(){if(this.loading!==!0){if(this.loading=!0,W!==null){this.drawChart(this.generateOptions(W)),this.loading=!1;return}this.getFreshData()}},init(){Promise.all([b("autoConversion",!1)]).then(e=>{this.autoConversion=e[0],nt=!0,this.loadChart()}),window.store.observe("end",()=>{nt&&(this.chartData=null,this.loadChart())}),window.store.observe("autoConversion",e=>{nt&&(this.autoConversion=e,this.loadChart())})}});class ae{list(t){return k.get("/api/v2/transactions",{params:t})}}A.register({SankeyController:Ot,Flow:Mt});const pt="dashboard-sankey-data";let y,ot=!1,q=null,x=[],_=!1,s={category:null,unknown_category:null,in:null,out:null,unknown_source:null,unknown_dest:null,unknown_account:null,expense_account:null,revenue_account:null,budget:null,unknown_budget:null,all_money:null};const _t=function(e){return e.includes(s.revenue_account)?"forestgreen":e.includes("("+s.in+",")?"green":e.includes(s.budget)||e.includes(s.unknown_budget)?"Orchid":e.includes("("+s.out+",")?"MediumOrchid":e.includes(s.all_money)?"blue":"red"};function G(e,t,n,a){if(e==="category"&&t!==null&&n==="in")return s.category+' "'+t+'" ('+s.in+(_?", "+a+")":")");if(e==="category"&&t===null&&n==="in")return s.unknown_category+" ("+s.in+(_?", "+a+")":")");if(e==="category"&&t!==null&&n==="out")return s.category+' "'+t+'" ('+s.out+(_?", "+a+")":")");if(e==="category"&&t===null&&n==="out")return s.unknown_category+" ("+s.out+(_?", "+a+")":")");if(e==="account"&&t===null&&n==="in")return s.unknown_source+(_?" ("+a+")":"");if(e==="account"&&t!==null&&n==="in")return s.revenue_account+'"'+t+'"'+(_?" ("+a+")":"");if(e==="account"&&t===null&&n==="out")return s.unknown_dest+(_?" ("+a+")":"");if(e==="account"&&t!==null&&n==="out")return s.expense_account+' "'+t+'"'+(_?" ("+a+")":"");if(e==="budget"&&t!==null)return s.budget+' "'+t+'"'+(_?" ("+a+")":"");if(e==="budget"&&t===null)return s.unknown_budget+(_?" ("+a+")":"");console.error('Cannot handle: type:"'+e+'", dir: "'+n+'"')}function T(e,t,n){if(e==="category"&&t!==null)return s.category+' "'+t+'"'+(_?" ("+n+")":"");if(e==="category"&&t===null)return s.unknown_category+(_?" ("+n+")":"");if(e==="account"&&t===null)return s.unknown_account+(_?" ("+n+")":"");if(e==="account"&&t!==null)return t+(_?" ("+n+")":"");if(e==="budget"&&t!==null)return s.budget+' "'+t+'"'+(_?" ("+n+")":"");if(e==="budget"&&t===null)return s.unknown_budget+(_?" ("+n+")":"");console.error('Cannot handle: type:"'+e+'"')}const ne=()=>({loading:!1,autoConversion:!1,generateOptions(){let e=J("sankey"),t={},n={};for(let o in x)if(x.hasOwnProperty(o)){let r=x[o];for(let i in r.attributes.transactions)if(r.attributes.transactions.hasOwnProperty(i)){let l=r.attributes.transactions[i],u=this.autoConversion?l.native_currency_code:l.currency_code,d=this.autoConversion?parseFloat(l.native_amount):parseFloat(l.amount),h;if(l.type==="deposit"){let c=G("category",l.category_name,"in",u),p=G("account",l.source_name,"in",u);n[c]=T("category",l.category_name,u),n[p]=T("account",l.source_name,u),h=p+"-"+c+"-"+u,t.hasOwnProperty(h)||(t[h]={from:p,to:c,amount:0}),t[h].amount+=d,h=c+"-"+s.all_money+"-"+u,t.hasOwnProperty(h)||(t[h]={from:c,to:s.all_money+(this.autoConversion?" ("+u+")":""),amount:0}),t[h].amount+=d}if(l.type==="withdrawal"){let c=G("budget",l.budget_name,"out",u);n[c]=T("budget",l.budget_name,u),h=s.all_money+"-"+c+"-"+u,t.hasOwnProperty(h)||(t[h]={from:s.all_money+(this.autoConversion?" ("+u+")":""),to:c,amount:0}),t[h].amount+=d;let p=G("category",l.category_name,"out",u);n[p]=T("category",l.category_name,u),h=c+"-"+p+"-"+u,t.hasOwnProperty(h)||(t[h]={from:c,to:p,amount:0}),t[h].amount+=d;let v=G("account",l.destination_name,"out",u);n[v]=T("account",l.destination_name,u),h=p+"-"+v+"-"+u,t.hasOwnProperty(h)||(t[h]={from:p,to:v,amount:0}),t[h].amount+=d}}}let a={label:"Firefly III dashboard sankey chart",data:[],colorFrom:o=>_t(o.dataset.data[o.dataIndex]?o.dataset.data[o.dataIndex].from:""),colorTo:o=>_t(o.dataset.data[o.dataIndex]?o.dataset.data[o.dataIndex].to:""),colorMode:"gradient",labels:n,size:"min"};for(let o in t)if(t.hasOwnProperty(o)){let r=t[o];a.data.push({from:r.from,to:r.to,flow:r.amount})}return e.data.datasets.push(a),e},drawChart(e){if(q!==null){q.data.datasets=e.data.datasets,q.update();return}q=new A(document.querySelector("#sankey-chart"),e)},getFreshData(){const e=new Date(window.store.get("start")),t=new Date(window.store.get("end")),n=D(pt,e,t),a=window.store.get("cacheValid");let o=window.store.get(n);if(a&&typeof o<"u"){x=o,this.drawChart(this.generateOptions()),this.loading=!1;return}let r={start:f(e,"y-MM-dd"),end:f(t,"y-MM-dd"),type:"withdrawal,deposit",page:1};this.downloadTransactions(r)},downloadTransactions(e){const t=new Date(window.store.get("start")),n=new Date(window.store.get("end")),a=D(pt,t,n);new ae().list(e).then(r=>{if(x=[...x,...r.data.data],parseInt(r.data.meta.pagination.total_pages)>e.page){e.page++,this.downloadTransactions(e);return}window.store.set(a,x),this.drawChart(this.generateOptions()),this.loading=!1})},loadChart(){if(this.loading!==!0){if(this.loading=!0,x.length!==0){this.drawChart(this.generateOptions()),this.loading=!1;return}this.getFreshData()}},init(){x=[],Promise.all([b("autoConversion",!1),b("language","en_US")]).then(e=>{this.autoConversion=e[0],_=e[0],y=new H;const t=e[1].replace("-","_");y.locale=t,z(y,t).then(()=>{s.all_money=y.t("firefly.all_money"),s.category=y.t("firefly.category"),s.in=y.t("firefly.money_flowing_in"),s.out=y.t("firefly.money_flowing_out"),s.unknown_category=y.t("firefly.unknown_category_plain"),s.unknown_source=y.t("firefly.unknown_source_plain"),s.unknown_dest=y.t("firefly.unknown_dest_plain"),s.unknown_account=y.t("firefly.unknown_any_plain"),s.unknown_budget=y.t("firefly.unknown_budget_plain"),s.expense_account=y.t("firefly.expense_account"),s.revenue_account=y.t("firefly.revenue_account"),s.budget=y.t("firefly.budget"),ot=!0,this.loadChart()})}),window.store.observe("end",()=>{ot&&(this.transactions=[],this.loadChart())}),window.store.observe("autoConversion",e=>{ot&&(this.autoConversion=e,this.loadChart())})}});let rt=!1,F,w={};function wt(e){return new Dt().list(e).then(n=>{let a=n.data.data;for(let o in a)if(a.hasOwnProperty(o)){let r=a[o];if(r.attributes.active&&r.attributes.pay_dates.length>0){let i=r.attributes.object_group_id===null?0:r.attributes.object_group_id,l=r.attributes.object_group_title===null?F.t("firefly.default_group_title_name_plain"):r.attributes.object_group_title,u=r.attributes.object_group_order===null?0:r.attributes.object_group_order;w.hasOwnProperty(i)||(w[i]={id:i,title:l,order:u,payment_info:{},bills:[]});let d={id:r.id,name:r.attributes.name,amount_min:r.attributes.amount_min,amount_max:r.attributes.amount_max,amount:(parseFloat(r.attributes.amount_max)+parseFloat(r.attributes.amount_min))/2,currency_code:r.attributes.currency_code,native_amount_min:r.attributes.native_amount_min,native_amount_max:r.attributes.native_amount_max,native_amount:(parseFloat(r.attributes.native_amount_max)+parseFloat(r.attributes.native_amount_min))/2,native_currency_code:r.attributes.native_currency_code,transactions:[],pay_dates:r.attributes.pay_dates,paid:r.attributes.paid_dates.length>0};d.expected_amount=e.autoConversion?g(d.native_amount,d.native_currency_code):g(d.amount,d.currency_code),d.expected_times=F.t("firefly.subscr_expected_x_times",{times:r.attributes.pay_dates.length,amount:d.expected_amount});for(let h in r.attributes.paid_dates)if(r.attributes.paid_dates.hasOwnProperty(h)){const c=r.attributes.paid_dates[h];let p=100;e.autoConversion&&(p=Math.round(-100+parseFloat(c.native_amount)*-1/parseFloat(d.native_amount)*100)),e.autoConversion||(p=Math.round(-100+parseFloat(c.amount)*-1/parseFloat(d.amount)*100));let v={amount:e.autoConversion?g(c.native_amount,c.native_currency_code):g(c.amount,c.currency_code),percentage:p,date:f(new Date(c.date),"PP"),foreign_amount:null};c.foreign_currency_code!==null&&(v.foreign_amount=e.autoConversion?c.foreign_native_amount:c.foreign_amount,v.foreign_currency_code=e.autoConversion?c.native_currency_code:c.foreign_currency_code),d.transactions.push(v)}if(w[i].bills.push(d),r.attributes.paid_dates.length===0){const h=r.attributes.pay_dates.length*d.amount,c=r.attributes.pay_dates.length*d.native_amount;w[i].payment_info.hasOwnProperty(d.currency_code)||(w[i].payment_info[d.currency_code]={currency_code:d.currency_code,paid:0,unpaid:0,native_currency_code:d.native_currency_code,native_paid:0,native_unpaid:0}),w[i].payment_info[d.currency_code].unpaid+=h,w[i].payment_info[d.currency_code].native_unpaid+=c}if(r.attributes.paid_dates.length>0){for(let h in r.attributes.paid_dates)if(r.attributes.paid_dates.hasOwnProperty(h)){let c=r.attributes.paid_dates[h];w[i].payment_info.hasOwnProperty(c.currency_code)||(w[i].payment_info[c.currency_code]={currency_code:d.currency_code,paid:0,unpaid:0,native_currency_code:d.native_currency_code,native_paid:0,native_unpaid:0});const p=parseFloat(c.amount)*-1,v=parseFloat(c.native_amount)*-1;w[i].payment_info[c.currency_code].paid+=p,w[i].payment_info[c.currency_code].native_paid+=v}}}}return parseInt(n.data.meta.pagination.total_pages)>e.page?(e.page++,wt(e)):Promise.resolve()})}const oe=()=>({loading:!1,autoConversion:!1,subscriptions:[],startSubscriptions(){this.loading=!0;let e=new Date(window.store.get("start")),t=new Date(window.store.get("end"));const n=window.store.get("cacheValid");let a=window.store.get(D("subscriptions-data-dashboard",e,t));n&&typeof a<"u",w={},this.subscriptions=[],console.log("cache is invalid, must download");let o={start:f(e,"y-MM-dd"),end:f(t,"y-MM-dd"),autoConversion:this.autoConversion,page:1};wt(o).then(()=>{console.log("Done with download!");let r=Object.values(w);for(let i in r)if(r.hasOwnProperty(i)){let l=r[i];const u=Object.keys(l.payment_info);l.col_size=u.length===1?"col-6 offset-3":"col-6",l.chart_width=u.length===1?"50%":"100%",l.payment_length=u.length,this.subscriptions.push(l)}this.loading=!1})},drawPieChart(e,t,n){let a="#pie_"+e+"_"+n.currency_code;const o=this.autoConversion?n.native_unpaid:n.unpaid,r=this.autoConversion?n.native_paid:n.paid,i=this.autoConversion?n.native_currency_code:n.currency_code,u={type:"doughnut",data:{labels:[F.t("firefly.paid"),F.t("firefly.unpaid")],datasets:[{label:F.t("firefly.subscriptions_in_group",{title:t}),data:[r,o],backgroundColor:["rgb(54, 162, 235)","rgb(255, 99, 132)"],hoverOffset:4}]},options:{plugins:{tooltip:{callbacks:{label:function(h){return h.dataset.label+": "+g(h.raw,i)}}}}}};var d=A.getChart(document.querySelector(a));typeof d<"u"&&d.destroy(),new A(document.querySelector(a),u)},init(){console.log("subscriptions init"),Promise.all([b("autoConversion",!1),b("language","en_US")]).then(e=>{console.log("subscriptions after promises"),this.autoConversion=e[0],rt=!0,F=new H;const t=e[1].replace("-","_");F.locale=t,z(F,t).then(()=>{this.loading===!1&&this.startSubscriptions()})}),window.store.observe("end",()=>{rt&&(console.log("subscriptions observe end"),this.loading===!1&&this.startSubscriptions())}),window.store.observe("autoConversion",e=>{rt&&(console.log("subscriptions observe autoConversion"),this.autoConversion=e,this.loading===!1&&this.startSubscriptions())})}});let O={},it=!1,N;const yt="dashboard-piggies-data",re=()=>({loading:!1,autoConversion:!1,sankeyGrouping:"account",piggies:[],getFreshData(){const e=new Date(window.store.get("start")),t=new Date(window.store.get("end")),n=D(yt,e,t),a=window.store.get("cacheValid");let o=window.store.get(n);if(a&&typeof o<"u"){O=o,this.parsePiggies(),this.loading=!1;return}let r={start:f(e,"y-MM-dd"),end:f(t,"y-MM-dd"),page:1};this.downloadPiggyBanks(r)},downloadPiggyBanks(e){const t=new Date(window.store.get("start")),n=new Date(window.store.get("end")),a=D(yt,t,n);new xt().list(e).then(r=>{if(O=[...O,...r.data.data],parseInt(r.data.meta.pagination.total_pages)>e.page){e.page++,this.downloadPiggyBanks(e);return}window.store.set(a,O),this.parsePiggies(),this.loading=!1})},parsePiggies(){let e=[];for(let t in O)if(O.hasOwnProperty(t)){let n=O[t];if(n.attributes.percentage>=100||n.attributes.percentage===0)continue;let a=n.object_group_title??N.t("firefly.default_group_title_name_plain");e.hasOwnProperty(a)||(e[a]={id:n.object_group_id??0,title:a,order:n.object_group_order??0,piggies:[]});let o={id:n.id,name:n.attributes.name,percentage:parseInt(n.attributes.percentage),amount:this.autoConversion?n.attributes.native_current_amount:n.attributes.current_amount,left_to_save:this.autoConversion?n.attributes.native_left_to_save:n.attributes.left_to_save,target_amount:this.autoConversion?n.attributes.native_target_amount:n.attributes.target_amount,save_per_month:this.autoConversion?n.attributes.native_save_per_month:n.attributes.save_per_month,currency_code:this.autoConversion?n.attributes.native_currency_code:n.attributes.currency_code};e[a].piggies.push(o)}this.piggies=Object.values(e)},loadPiggyBanks(){if(this.loading!==!0){if(this.loading=!0,this.piggies.length!==0){this.parsePiggies(),this.loading=!1;return}this.getFreshData()}},init(){O=[],Promise.all([b("autoConversion",!1),b("language","en_US")]).then(e=>{N=new H;const t=e[1].replace("-","_");N.locale=t,z(N,t).then(()=>{it=!0,this.autoConversion=e[0],this.loadPiggyBanks()})}),window.store.observe("end",()=>{it&&(O=[],this.loadPiggyBanks())}),window.store.observe("autoConversion",e=>{it&&(this.autoConversion=e,this.loadPiggyBanks())})}});A.register({LineController:St,LineElement:Ft,ArcElement:At,BarController:Bt,TimeScale:$t,PieController:jt,BarElement:It,Filler:Wt,Colors:Vt,LinearScale:Kt,CategoryScale:Et,PointElement:Lt,Tooltip:Gt,Legend:Tt});const vt={dates:kt,boxes:Ut,accounts:Zt,budgets:Xt,categories:ee,sankey:ne,subscriptions:oe,piggies:re};function mt(e){Object.keys(e).forEach(t=>{console.log(`Loading page component "${t}"`);let n=e[t]();Alpine.data(t,()=>n)}),Alpine.start()}document.addEventListener("firefly-iii-bootstrapped",()=>{mt(vt)});window.bootstrapped&&mt(vt);
diff --git a/public/build/assets/edit-83707812.js b/public/build/assets/edit-81edf6b9.js
similarity index 79%
rename from public/build/assets/edit-83707812.js
rename to public/build/assets/edit-81edf6b9.js
index f05edc5eab..2eff13283e 100644
--- a/public/build/assets/edit-83707812.js
+++ b/public/build/assets/edit-81edf6b9.js
@@ -1 +1 @@
-import{d as l,g as i,l as r}from"./load-translations-23553922.js";import{I as s}from"./vendor-e194ad60.js";let t,d=function(){return{entries:[],init(){Promise.all([i("language","en_US")]).then(e=>{t=new s;const o=e[0].replace("-","_");t.locale=o,r(t,o).then(()=>{})})}}},a={transactions:d,dates:l};function n(){Object.keys(a).forEach(e=>{console.log(`Loading page component "${e}"`);let o=a[e]();Alpine.data(e,()=>o)}),Alpine.start()}document.addEventListener("firefly-iii-bootstrapped",()=>{console.log("Loaded through event listener."),n()});window.bootstrapped&&(console.log("Loaded through window variable."),n());
+import{d as l,g as i,l as r}from"./load-translations-9dfbf635.js";import{I as s}from"./vendor-97200597.js";let t,d=function(){return{entries:[],init(){Promise.all([i("language","en_US")]).then(e=>{t=new s;const o=e[0].replace("-","_");t.locale=o,r(t,o).then(()=>{})})}}},a={transactions:d,dates:l};function n(){Object.keys(a).forEach(e=>{console.log(`Loading page component "${e}"`);let o=a[e]();Alpine.data(e,()=>o)}),Alpine.start()}document.addEventListener("firefly-iii-bootstrapped",()=>{console.log("Loaded through event listener."),n()});window.bootstrapped&&(console.log("Loaded through window variable."),n());
diff --git a/public/build/assets/get-748a816c.js b/public/build/assets/get-35a1642f.js
similarity index 86%
rename from public/build/assets/get-748a816c.js
rename to public/build/assets/get-35a1642f.js
index 70975bcf9c..b2714cdcdd 100644
--- a/public/build/assets/get-748a816c.js
+++ b/public/build/assets/get-35a1642f.js
@@ -1 +1 @@
-import{a as r}from"./load-translations-23553922.js";function i(s,a){let t=window.__localeId__.replace("_","-");return Intl.NumberFormat(t,{style:"currency",currency:a}).format(s)}let p=class{list(a){return r.get("/api/v2/subscriptions",{params:a})}paid(a){return r.get("/api/v2/subscriptions/sum/paid",{params:a})}unpaid(a){return r.get("/api/v2/subscriptions/sum/unpaid",{params:a})}};class u{list(a){return r.get("/api/v2/piggy-banks",{params:a})}}export{p as G,u as a,i as f};
+import{a as r}from"./load-translations-9dfbf635.js";function i(s,a){let t=window.__localeId__.replace("_","-");return Intl.NumberFormat(t,{style:"currency",currency:a}).format(s)}let p=class{list(a){return r.get("/api/v2/subscriptions",{params:a})}paid(a){return r.get("/api/v2/subscriptions/sum/paid",{params:a})}unpaid(a){return r.get("/api/v2/subscriptions/sum/unpaid",{params:a})}};class u{list(a){return r.get("/api/v2/piggy-banks",{params:a})}}export{p as G,u as a,i as f};
diff --git a/public/build/assets/load-translations-23553922.js b/public/build/assets/load-translations-23553922.js
deleted file mode 100644
index 5170a6cf8b..0000000000
--- a/public/build/assets/load-translations-23553922.js
+++ /dev/null
@@ -1 +0,0 @@
-import{m as y,s as l,n as d,o as b,q as k,r as c,t as f,u as N,v as C,w as D,x as g,y as i,z as P,D as _,f as B,E as x,G as O,H as E,J as S,K as T,M as U,N as W,O as q,Q as L,R as Q,U as V,V as Y,W as $,X as j,Y as z,Z as I,_ as X,$ as G,a0 as H,a1 as F,a2 as J,a3 as K,a4 as Z,a5 as tt,a6 as et,a7 as at,a8 as st,a9 as nt,aa as rt,ab as dt,ac as lt,ad as it,ae as ot,af as ut}from"./vendor-e194ad60.js";const v="/",h=y.create({baseURL:v,withCredentials:!0});y.defaults.withCredentials=!0;y.defaults.baseURL=v;class R{getByName(t){return h.get("/api/v1/preferences/"+t)}getByNameNow(t){return h.get("/api/v1/preferences/"+t)}postByName(t,e){return h.post("/api/v1/preferences",{name:t,data:e})}}class A{post(t,e){let s="/api/v1/preferences";return h.post(s,{name:t,data:e})}}function gt(a,t=null){return new R().getByName(a).then(s=>Promise.resolve(p(a,s))).catch(()=>{new A().post(a,t).then(o=>Promise.resolve(p(a,o)))})}function p(a,t){return t.data.data.attributes.data}function w(a,t=null){const e=window.store.get("cacheValid");if(e&&window.hasOwnProperty(a))return Promise.resolve(window[a]);const s=window.store.get(a);return e&&typeof s<"u"?Promise.resolve(s):new R().getByName(a).then(u=>Promise.resolve(m(a,u))).catch(()=>{new A().post(a,t).then(n=>Promise.resolve(m(a,n)))})}function m(a,t){let e=t.data.data.attributes.data;return window.store.set(a,e),e}function ct(a,t){let e,s;switch(a){case"last365":e=l(g(t,365)),s=d(t);break;case"last90":e=l(g(t,90)),s=d(t);break;case"last30":e=l(g(t,30)),s=d(t);break;case"last7":e=l(g(t,7)),s=d(t);break;case"YTD":e=D(t),s=d(t);break;case"QTD":e=b(t),s=d(t);break;case"MTD":e=c(t),s=d(t);break;case"1D":e=l(t),s=d(t);break;case"1W":e=l(N(t,{weekStartsOn:1})),s=d(C(t,{weekStartsOn:1}));break;case"1M":e=l(c(t)),s=d(f(t));break;case"3M":e=l(b(t)),s=d(k(t));break;case"6M":t.getMonth()<=5&&(e=new Date(t),e.setMonth(0),e.setDate(1),e=l(e),s=new Date(t),s.setMonth(5),s.setDate(30),s=d(e)),t.getMonth()>5&&(e=new Date(t),e.setMonth(6),e.setDate(1),e=l(e),s=new Date(t),s.setMonth(11),s.setDate(31),s=d(e));break;case"1Y":e=new Date(t),e.setMonth(0),e.setDate(1),e=l(e),s=new Date(t),s.setMonth(11),s.setDate(31),s=d(s);break}return{start:e,end:s}}i.addPlugin(P);window.bootstrapped=!1;window.store=i;gt("lastActivity").then(a=>{const t=i.get("lastActivity");i.set("cacheValid",t===a),i.set("lastActivity",a),console.log("Server value: "+a),console.log("Local value: "+t),console.log("Cache valid: "+(t===a))}).then(()=>{Promise.all([w("viewRange"),w("darkMode"),w("locale"),w("language")]).then(a=>{if(!i.get("start")||!i.get("end")){const e=ct(a[0],new Date);i.set("start",e.start),i.set("end",e.end)}window.__localeId__=a[2],i.set("language",a[3]),i.set("locale",a[3]);const t=new Event("firefly-iii-bootstrapped");document.dispatchEvent(t),window.bootstrapped=!0})});window.axios=y;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";window.Alpine=_;const M={bg:x,cs:O,da:E,de:S,el:T,enGB:U,enUS:W,es:q,ca:L,fi:Q,fr:V,hu:Y,id:$,it:j,ja:z,ko:I,nb:X,nn:G,nl:H,pl:F,ptBR:J,pt:K,ro:Z,ru:tt,sk:et,sl:at,sv:st,tr:nt,uk:rt,vi:dt,zhTW:lt,zhCN:it};function r(a,t="PP"){let e=window.__localeId__.replace("_","");return B(a,t,{locale:M[e]??M[e.slice(0,2)]??M.enUS})}const ht=()=>({range:{start:null,end:null},defaultRange:{start:null,end:null},language:"en_US",init(){this.range={start:new Date(window.store.get("start")),end:new Date(window.store.get("end"))},this.defaultRange={start:new Date(window.store.get("start")),end:new Date(window.store.get("end"))},this.language=window.store.get("language"),this.locale=window.store.get("locale"),this.locale=this.locale==="equal"?this.language:this.locale,window.__localeId__=this.language,this.buildDateRange(),window.store.observe("start",a=>{this.range.start=new Date(a)}),window.store.observe("end",a=>{this.range.end=new Date(a),this.buildDateRange()})},buildDateRange(){let a=this.getNextRange(),t=this.getPrevRange(),e=this.lastDays(7),s=this.lastDays(30),o=this.mtd(),u=this.ytd(),n=document.getElementsByClassName("daterange-holder")[0];n.textContent=r(this.range.start)+" - "+r(this.range.end),n.setAttribute("data-start",r(this.range.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(this.range.end,"yyyy-MM-dd")),n=document.getElementsByClassName("daterange-current")[0],n.textContent=r(this.defaultRange.start)+" - "+r(this.defaultRange.end),n.setAttribute("data-start",r(this.defaultRange.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(this.defaultRange.end,"yyyy-MM-dd")),n=document.getElementsByClassName("daterange-next")[0],n.textContent=r(a.start)+" - "+r(a.end),n.setAttribute("data-start",r(a.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(a.end,"yyyy-MM-dd")),n=document.getElementsByClassName("daterange-prev")[0],n.textContent=r(t.start)+" - "+r(t.end),n.setAttribute("data-start",r(t.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(t.end,"yyyy-MM-dd")),n=document.getElementsByClassName("daterange-7d")[0],n.setAttribute("data-start",r(e.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(e.end,"yyyy-MM-dd")),n=document.getElementsByClassName("daterange-90d")[0],n.setAttribute("data-start",r(s.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(s.end,"yyyy-MM-dd")),n=document.getElementsByClassName("daterange-mtd")[0],n.setAttribute("data-start",r(o.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(o.end,"yyyy-MM-dd")),n=document.getElementsByClassName("daterange-ytd")[0],n.setAttribute("data-start",r(u.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(u.end,"yyyy-MM-dd"))},getNextRange(){let a=c(this.range.start),t=ot(a,1),e=f(t);return{start:t,end:e}},getPrevRange(){let a=c(this.range.start),t=ut(a,1),e=f(t);return{start:t,end:e}},ytd(){let a=new Date;return{start:D(this.range.start),end:a}},mtd(){let a=new Date;return{start:c(this.range.start),end:a}},lastDays(a){let t=new Date;return{start:g(t,a),end:t}},changeDateRange(a){a.preventDefault();let t=a.currentTarget,e=new Date(t.getAttribute("data-start")),s=new Date(t.getAttribute("data-end"));return window.store.set("start",e),window.store.set("end",s),!1}});async function yt(a,t){{t=t.replace("-","_");const s=await(await fetch(`./v2/i18n/${t}.json`)).json();a.store(s)}}export{A as P,h as a,ht as d,w as g,yt as l};
diff --git a/public/build/assets/load-translations-9dfbf635.js b/public/build/assets/load-translations-9dfbf635.js
new file mode 100644
index 0000000000..76816dd532
--- /dev/null
+++ b/public/build/assets/load-translations-9dfbf635.js
@@ -0,0 +1 @@
+import{n as y,s as l,o as d,q as b,r as k,t as c,u as f,v as N,w as C,x as D,y as g,z as i,D as P,E as _,f as B,G as x,H as O,J as E,K as S,M as T,N as U,O as W,Q as q,R as L,U as Q,V,W as Y,X as $,Y as j,Z as z,_ as I,$ as X,a0 as G,a1 as H,a2 as F,a3 as J,a4 as K,a5 as Z,a6 as tt,a7 as et,a8 as at,a9 as st,aa as nt,ab as rt,ac as dt,ad as lt,ae as it,af as ot,ag as ut}from"./vendor-97200597.js";const v="/",h=y.create({baseURL:v,withCredentials:!0});y.defaults.withCredentials=!0;y.defaults.baseURL=v;class R{getByName(t){return h.get("/api/v1/preferences/"+t)}getByNameNow(t){return h.get("/api/v1/preferences/"+t)}postByName(t,e){return h.post("/api/v1/preferences",{name:t,data:e})}}class A{post(t,e){let s="/api/v1/preferences";return h.post(s,{name:t,data:e})}}function gt(a,t=null){return new R().getByName(a).then(s=>Promise.resolve(p(a,s))).catch(()=>{new A().post(a,t).then(o=>Promise.resolve(p(a,o)))})}function p(a,t){return t.data.data.attributes.data}function w(a,t=null){const e=window.store.get("cacheValid");if(e&&window.hasOwnProperty(a))return Promise.resolve(window[a]);const s=window.store.get(a);return e&&typeof s<"u"?Promise.resolve(s):new R().getByName(a).then(u=>Promise.resolve(m(a,u))).catch(()=>{new A().post(a,t).then(n=>Promise.resolve(m(a,n)))})}function m(a,t){let e=t.data.data.attributes.data;return window.store.set(a,e),e}function ct(a,t){let e,s;switch(a){case"last365":e=l(g(t,365)),s=d(t);break;case"last90":e=l(g(t,90)),s=d(t);break;case"last30":e=l(g(t,30)),s=d(t);break;case"last7":e=l(g(t,7)),s=d(t);break;case"YTD":e=D(t),s=d(t);break;case"QTD":e=b(t),s=d(t);break;case"MTD":e=c(t),s=d(t);break;case"1D":e=l(t),s=d(t);break;case"1W":e=l(N(t,{weekStartsOn:1})),s=d(C(t,{weekStartsOn:1}));break;case"1M":e=l(c(t)),s=d(f(t));break;case"3M":e=l(b(t)),s=d(k(t));break;case"6M":t.getMonth()<=5&&(e=new Date(t),e.setMonth(0),e.setDate(1),e=l(e),s=new Date(t),s.setMonth(5),s.setDate(30),s=d(e)),t.getMonth()>5&&(e=new Date(t),e.setMonth(6),e.setDate(1),e=l(e),s=new Date(t),s.setMonth(11),s.setDate(31),s=d(e));break;case"1Y":e=new Date(t),e.setMonth(0),e.setDate(1),e=l(e),s=new Date(t),s.setMonth(11),s.setDate(31),s=d(s);break}return{start:e,end:s}}i.addPlugin(P);window.bootstrapped=!1;window.store=i;gt("lastActivity").then(a=>{const t=i.get("lastActivity");i.set("cacheValid",t===a),i.set("lastActivity",a),console.log("Server value: "+a),console.log("Local value: "+t),console.log("Cache valid: "+(t===a))}).then(()=>{Promise.all([w("viewRange"),w("darkMode"),w("locale"),w("language")]).then(a=>{if(!i.get("start")||!i.get("end")){const e=ct(a[0],new Date);i.set("start",e.start),i.set("end",e.end)}window.__localeId__=a[2],i.set("language",a[3]),i.set("locale",a[3]);const t=new Event("firefly-iii-bootstrapped");document.dispatchEvent(t),window.bootstrapped=!0})});window.axios=y;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";window.Alpine=_;const M={bg:x,cs:O,da:E,de:S,el:T,enGB:U,enUS:W,es:q,ca:L,fi:Q,fr:V,hu:Y,id:$,it:j,ja:z,ko:I,nb:X,nn:G,nl:H,pl:F,ptBR:J,pt:K,ro:Z,ru:tt,sk:et,sl:at,sv:st,tr:nt,uk:rt,vi:dt,zhTW:lt,zhCN:it};function r(a,t="PP"){let e=window.__localeId__.replace("_","");return B(a,t,{locale:M[e]??M[e.slice(0,2)]??M.enUS})}const ht=()=>({range:{start:null,end:null},defaultRange:{start:null,end:null},language:"en_US",init(){this.range={start:new Date(window.store.get("start")),end:new Date(window.store.get("end"))},this.defaultRange={start:new Date(window.store.get("start")),end:new Date(window.store.get("end"))},this.language=window.store.get("language"),this.locale=window.store.get("locale"),this.locale=this.locale==="equal"?this.language:this.locale,window.__localeId__=this.language,this.buildDateRange(),window.store.observe("start",a=>{this.range.start=new Date(a)}),window.store.observe("end",a=>{this.range.end=new Date(a),this.buildDateRange()})},buildDateRange(){let a=this.getNextRange(),t=this.getPrevRange(),e=this.lastDays(7),s=this.lastDays(30),o=this.mtd(),u=this.ytd(),n=document.getElementsByClassName("daterange-holder")[0];n.textContent=r(this.range.start)+" - "+r(this.range.end),n.setAttribute("data-start",r(this.range.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(this.range.end,"yyyy-MM-dd")),n=document.getElementsByClassName("daterange-current")[0],n.textContent=r(this.defaultRange.start)+" - "+r(this.defaultRange.end),n.setAttribute("data-start",r(this.defaultRange.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(this.defaultRange.end,"yyyy-MM-dd")),n=document.getElementsByClassName("daterange-next")[0],n.textContent=r(a.start)+" - "+r(a.end),n.setAttribute("data-start",r(a.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(a.end,"yyyy-MM-dd")),n=document.getElementsByClassName("daterange-prev")[0],n.textContent=r(t.start)+" - "+r(t.end),n.setAttribute("data-start",r(t.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(t.end,"yyyy-MM-dd")),n=document.getElementsByClassName("daterange-7d")[0],n.setAttribute("data-start",r(e.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(e.end,"yyyy-MM-dd")),n=document.getElementsByClassName("daterange-90d")[0],n.setAttribute("data-start",r(s.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(s.end,"yyyy-MM-dd")),n=document.getElementsByClassName("daterange-mtd")[0],n.setAttribute("data-start",r(o.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(o.end,"yyyy-MM-dd")),n=document.getElementsByClassName("daterange-ytd")[0],n.setAttribute("data-start",r(u.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(u.end,"yyyy-MM-dd"))},getNextRange(){let a=c(this.range.start),t=ot(a,1),e=f(t);return{start:t,end:e}},getPrevRange(){let a=c(this.range.start),t=ut(a,1),e=f(t);return{start:t,end:e}},ytd(){let a=new Date;return{start:D(this.range.start),end:a}},mtd(){let a=new Date;return{start:c(this.range.start),end:a}},lastDays(a){let t=new Date;return{start:g(t,a),end:t}},changeDateRange(a){a.preventDefault();let t=a.currentTarget,e=new Date(t.getAttribute("data-start")),s=new Date(t.getAttribute("data-end"));return window.store.set("start",e),window.store.set("end",s),!1}});async function yt(a,t){{t=t.replace("-","_");const s=await(await fetch(`./v2/i18n/${t}.json`)).json();a.store(s)}}export{A as P,h as a,ht as d,w as g,yt as l};
diff --git a/public/build/assets/vendor-e194ad60.js b/public/build/assets/vendor-97200597.js
similarity index 81%
rename from public/build/assets/vendor-e194ad60.js
rename to public/build/assets/vendor-97200597.js
index d459cd3e55..dba3675f7e 100644
--- a/public/build/assets/vendor-e194ad60.js
+++ b/public/build/assets/vendor-97200597.js
@@ -1,52 +1,52 @@
-var ia=Object.defineProperty;var ra=(e,t,n)=>t in e?ia(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Y=(e,t,n)=>(ra(e,typeof t!="symbol"?t+"":t,n),n);function bind$4(e,t){return function(){return e.apply(t,arguments)}}const{toString:toString$7}=Object.prototype,{getPrototypeOf}=Object,kindOf=(e=>t=>{const n=toString$7.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=e=>(e=e.toLowerCase(),t=>kindOf(t)===e),typeOfTest=e=>t=>typeof t===e,{isArray:isArray$d}=Array,isUndefined=typeOfTest("undefined");function isBuffer$3(e){return e!==null&&!isUndefined(e)&&e.constructor!==null&&!isUndefined(e.constructor)&&isFunction$6(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&isArrayBuffer(e.buffer),t}const isString$1=typeOfTest("string"),isFunction$6=typeOfTest("function"),isNumber$1=typeOfTest("number"),isObject$c=e=>e!==null&&typeof e=="object",isBoolean=e=>e===!0||e===!1,isPlainObject=e=>{if(kindOf(e)!=="object")return!1;const t=getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},isDate$1=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=e=>isObject$c(e)&&isFunction$6(e.pipe),isFormData=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||isFunction$6(e.append)&&((t=kindOf(e))==="formdata"||t==="object"&&isFunction$6(e.toString)&&e.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),trim$2=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,r;if(typeof e!="object"&&(e=[e]),isArray$d(e))for(i=0,r=e.length;i<r;i++)t.call(null,e[i],i,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let l;for(i=0;i<o;i++)l=a[i],t.call(null,e[l],l,e)}}function findKey$1(e,t){t=t.toLowerCase();const n=Object.keys(e);let i=n.length,r;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const _global=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),isContextDefined=e=>!isUndefined(e)&&e!==_global;function merge$1(){const{caseless:e}=isContextDefined(this)&&this||{},t={},n=(i,r)=>{const a=e&&findKey$1(t,r)||r;isPlainObject(t[a])&&isPlainObject(i)?t[a]=merge$1(t[a],i):isPlainObject(i)?t[a]=merge$1({},i):isArray$d(i)?t[a]=i.slice():t[a]=i};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&forEach(arguments[i],n);return t}const extend=(e,t,n,{allOwnKeys:i}={})=>(forEach(t,(r,a)=>{n&&isFunction$6(r)?e[a]=bind$4(r,n):e[a]=r},{allOwnKeys:i}),e),stripBOM=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),inherits=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject=(e,t,n,i)=>{let r,a,o;const l={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),a=r.length;a-- >0;)o=r[a],(!i||i(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=n!==!1&&getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},endsWith=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},toArray=e=>{if(!e)return null;if(isArray$d(e))return e;let t=e.length;if(!isNumber$1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},isTypedArray$3=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=i.next())&&!r.done;){const a=r.value;t.call(e,a[0],a[1])}},matchAll=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,r){return i.toUpperCase()+r}),hasOwnProperty$c=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};forEach(n,(r,a)=>{let o;(o=t(r,a,e))!==!1&&(i[a]=o||r)}),Object.defineProperties(e,i)},freezeMethods=e=>{reduceDescriptors(e,(t,n)=>{if(isFunction$6(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(isFunction$6(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet=(e,t)=>{const n={},i=r=>{r.forEach(a=>{n[a]=!0})};return isArray$d(e)?i(e):i(String(e).split(t)),n},noop$4=()=>{},toFiniteNumber=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(e=16,t=ALPHABET.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function isSpecCompliantForm(e){return!!(e&&isFunction$6(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const toJSONObject=e=>{const t=new Array(10),n=(i,r)=>{if(isObject$c(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[r]=i;const a=isArray$d(i)?[]:{};return forEach(i,(o,l)=>{const u=n(o,r+1);!isUndefined(u)&&(a[l]=u)}),t[r]=void 0,a}}return i};return n(e,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=e=>e&&(isObject$c(e)||isFunction$6(e))&&isFunction$6(e.then)&&isFunction$6(e.catch),utils$1={isArray:isArray$d,isArrayBuffer,isBuffer:isBuffer$3,isFormData,isArrayBufferView,isString:isString$1,isNumber:isNumber$1,isBoolean,isObject:isObject$c,isPlainObject,isUndefined,isDate:isDate$1,isFile,isBlob,isRegExp,isFunction:isFunction$6,isStream,isURLSearchParams,isTypedArray:isTypedArray$3,isFileList,forEach,merge:merge$1,extend,trim:trim$2,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty:hasOwnProperty$c,hasOwnProp:hasOwnProperty$c,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop:noop$4,toFiniteNumber,findKey:findKey$1,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable};function AxiosError(e,t,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}utils$1.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors$1={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{descriptors$1[e]={value:e}});Object.defineProperties(AxiosError,descriptors$1);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(e,t,n,i,r,a)=>{const o=Object.create(prototype$1);return utils$1.toFlatObject(e,o,function(u){return u!==Error.prototype},l=>l!=="isAxiosError"),AxiosError.call(o,e.message,t,n,i,r),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const httpAdapter=null;function isVisitable(e){return utils$1.isPlainObject(e)||utils$1.isArray(e)}function removeBrackets(e){return utils$1.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,t,n){return e?e.concat(t).map(function(r,a){return r=removeBrackets(r),!n&&a?"["+r+"]":r}).join(n?".":""):t}function isFlatArray(e){return utils$1.isArray(e)&&!e.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function(t){return/^is[A-Z]/.test(t)});function toFormData(e,t,n){if(!utils$1.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=utils$1.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function($,x){return!utils$1.isUndefined(x[$])});const i=n.metaTokens,r=n.visitor||m,a=n.dots,o=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&utils$1.isSpecCompliantForm(t);if(!utils$1.isFunction(r))throw new TypeError("visitor must be a function");function h(w){if(w===null)return"";if(utils$1.isDate(w))return w.toISOString();if(!u&&utils$1.isBlob(w))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(w)||utils$1.isTypedArray(w)?u&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function m(w,$,x){let M=w;if(w&&!x&&typeof w=="object"){if(utils$1.endsWith($,"{}"))$=i?$:$.slice(0,-2),w=JSON.stringify(w);else if(utils$1.isArray(w)&&isFlatArray(w)||(utils$1.isFileList(w)||utils$1.endsWith($,"[]"))&&(M=utils$1.toArray(w)))return $=removeBrackets($),M.forEach(function(R,W){!(utils$1.isUndefined(R)||R===null)&&t.append(o===!0?renderKey([$],W,a):o===null?$:$+"[]",h(R))}),!1}return isVisitable(w)?!0:(t.append(renderKey(x,$,a),h(w)),!1)}const g=[],_=Object.assign(predicates,{defaultVisitor:m,convertValue:h,isVisitable});function v(w,$){if(!utils$1.isUndefined(w)){if(g.indexOf(w)!==-1)throw Error("Circular reference detected in "+$.join("."));g.push(w),utils$1.forEach(w,function(M,T){(!(utils$1.isUndefined(M)||M===null)&&r.call(t,M,utils$1.isString(T)?T.trim():T,$,_))===!0&&v(M,$?$.concat(T):[T])}),g.pop()}}if(!utils$1.isObject(e))throw new TypeError("data must be an object");return v(e),t}function encode$1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function AxiosURLSearchParams(e,t){this._pairs=[],e&&toFormData(e,this,t)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(t,n){this._pairs.push([t,n])};prototype.toString=function(t){const n=t?function(i){return t.call(this,i,encode$1)}:encode$1;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(e,t,n){if(!t)return e;const i=n&&n.encode||encode,r=n&&n.serialize;let a;if(r?a=r(t,n):a=utils$1.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams(t,n).toString(i),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class InterceptorManager{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){utils$1.forEach(this.handlers,function(i){i!==null&&t(i)})}}const InterceptorManager$1=InterceptorManager,transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",hasStandardBrowserEnv=(e=>hasBrowserEnv&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),hasStandardBrowserWebWorkerEnv=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm(e,t){return toFormData(e,new platform.classes.URLSearchParams,Object.assign({visitor:function(n,i,r,a){return platform.isNode&&utils$1.isBuffer(n)?(this.append(i,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function parsePropPath(e){return utils$1.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function arrayToObject(e){const t={},n=Object.keys(e);let i;const r=n.length;let a;for(i=0;i<r;i++)a=n[i],t[a]=e[a];return t}function formDataToJSON(e){function t(n,i,r,a){let o=n[a++];const l=Number.isFinite(+o),u=a>=n.length;return o=!o&&utils$1.isArray(r)?r.length:o,u?(utils$1.hasOwnProp(r,o)?r[o]=[r[o],i]:r[o]=i,!l):((!r[o]||!utils$1.isObject(r[o]))&&(r[o]=[]),t(n,i,r[o],a)&&utils$1.isArray(r[o])&&(r[o]=arrayToObject(r[o])),!l)}if(utils$1.isFormData(e)&&utils$1.isFunction(e.entries)){const n={};return utils$1.forEachEntry(e,(i,r)=>{t(parsePropPath(i),r,n,0)}),n}return null}function stringifySafely(e,t,n){if(utils$1.isString(e))try{return(t||JSON.parse)(e),utils$1.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const defaults$1={transitional:transitionalDefaults,adapter:["xhr","http"],transformRequest:[function(t,n){const i=n.getContentType()||"",r=i.indexOf("application/json")>-1,a=utils$1.isObject(t);if(a&&utils$1.isHTMLForm(t)&&(t=new FormData(t)),utils$1.isFormData(t))return r&&r?JSON.stringify(formDataToJSON(t)):t;if(utils$1.isArrayBuffer(t)||utils$1.isBuffer(t)||utils$1.isStream(t)||utils$1.isFile(t)||utils$1.isBlob(t))return t;if(utils$1.isArrayBufferView(t))return t.buffer;if(utils$1.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(t,this.formSerializer).toString();if((l=utils$1.isFileList(t))||i.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return toFormData(l?{"files[]":t}:t,u&&new u,this.formSerializer)}}return a||r?(n.setContentType("application/json",!1),stringifySafely(t)):t}],transformResponse:[function(t){const n=this.transitional||defaults$1.transitional,i=n&&n.forcedJSONParsing,r=this.responseType==="json";if(t&&utils$1.isString(t)&&(i&&!this.responseType||r)){const o=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(l){if(o)throw l.name==="SyntaxError"?AxiosError.from(l,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],e=>{defaults$1.headers[e]={}});const defaults$2=defaults$1,ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=e=>{const t={};let n,i,r;return e&&e.split(`
-`).forEach(function(o){r=o.indexOf(":"),n=o.substring(0,r).trim().toLowerCase(),i=o.substring(r+1).trim(),!(!n||t[n]&&ignoreDuplicateOf[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},$internals=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return e===!1||e==null?e:utils$1.isArray(e)?e.map(normalizeValue):String(e)}function parseTokens(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}const isValidHeaderName=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue(e,t,n,i,r){if(utils$1.isFunction(i))return i.call(this,t,n);if(r&&(t=n),!!utils$1.isString(t)){if(utils$1.isString(i))return t.indexOf(i)!==-1;if(utils$1.isRegExp(i))return i.test(t)}}function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function buildAccessors(e,t){const n=utils$1.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(r,a,o){return this[i].call(this,t,r,a,o)},configurable:!0})})}class AxiosHeaders{constructor(t){t&&this.set(t)}set(t,n,i){const r=this;function a(l,u,h){const m=normalizeHeader(u);if(!m)throw new Error("header name must be a non-empty string");const g=utils$1.findKey(r,m);(!g||r[g]===void 0||h===!0||h===void 0&&r[g]!==!1)&&(r[g||u]=normalizeValue(l))}const o=(l,u)=>utils$1.forEach(l,(h,m)=>a(h,m,u));return utils$1.isPlainObject(t)||t instanceof this.constructor?o(t,n):utils$1.isString(t)&&(t=t.trim())&&!isValidHeaderName(t)?o(parseHeaders(t),n):t!=null&&a(n,t,i),this}get(t,n){if(t=normalizeHeader(t),t){const i=utils$1.findKey(this,t);if(i){const r=this[i];if(!n)return r;if(n===!0)return parseTokens(r);if(utils$1.isFunction(n))return n.call(this,r,i);if(utils$1.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=normalizeHeader(t),t){const i=utils$1.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||matchHeaderValue(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let r=!1;function a(o){if(o=normalizeHeader(o),o){const l=utils$1.findKey(i,o);l&&(!n||matchHeaderValue(i,i[l],l,n))&&(delete i[l],r=!0)}}return utils$1.isArray(t)?t.forEach(a):a(t),r}clear(t){const n=Object.keys(this);let i=n.length,r=!1;for(;i--;){const a=n[i];(!t||matchHeaderValue(this,this[a],a,t,!0))&&(delete this[a],r=!0)}return r}normalize(t){const n=this,i={};return utils$1.forEach(this,(r,a)=>{const o=utils$1.findKey(i,a);if(o){n[o]=normalizeValue(r),delete n[a];return}const l=t?formatHeader(a):String(a).trim();l!==a&&delete n[a],n[l]=normalizeValue(r),i[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return utils$1.forEach(this,(i,r)=>{i!=null&&i!==!1&&(n[r]=t&&utils$1.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
-`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(r=>i.set(r)),i}static accessor(t){const i=(this[$internals]=this[$internals]={accessors:{}}).accessors,r=this.prototype;function a(o){const l=normalizeHeader(o);i[l]||(buildAccessors(r,o),i[l]=!0)}return utils$1.isArray(t)?t.forEach(a):a(t),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}});utils$1.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData(e,t){const n=this||defaults$2,i=t||n,r=AxiosHeaders$1.from(i.headers);let a=i.data;return utils$1.forEach(e,function(l){a=l.call(n,a,r.normalize(),t?t.status:void 0)}),r.normalize(),a}function isCancel(e){return!!(e&&e.__CANCEL__)}function CanceledError(e,t,n){AxiosError.call(this,e??"canceled",AxiosError.ERR_CANCELED,t,n),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new AxiosError("Request failed with status code "+n.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const cookies=platform.hasStandardBrowserEnv?{write(e,t,n,i,r,a){const o=[e+"="+encodeURIComponent(t)];utils$1.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),utils$1.isString(i)&&o.push("path="+i),utils$1.isString(r)&&o.push("domain="+r),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function buildFullPath(e,t){return e&&!isAbsoluteURL(t)?combineURLs(e,t):t}const isURLSameOrigin=platform.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function r(a){let o=a;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=r(window.location.href),function(o){const l=utils$1.isString(o)?r(o):o;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}();function parseProtocol(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function speedometer(e,t){e=e||10;const n=new Array(e),i=new Array(e);let r=0,a=0,o;return t=t!==void 0?t:1e3,function(u){const h=Date.now(),m=i[a];o||(o=h),n[r]=u,i[r]=h;let g=a,_=0;for(;g!==r;)_+=n[g++],g=g%e;if(r=(r+1)%e,r===a&&(a=(a+1)%e),h-o<t)return;const v=m&&h-m;return v?Math.round(_*1e3/v):void 0}}function progressEventReducer(e,t){let n=0;const i=speedometer(50,250);return r=>{const a=r.loaded,o=r.lengthComputable?r.total:void 0,l=a-n,u=i(l),h=a<=o;n=a;const m={loaded:a,total:o,progress:o?a/o:void 0,bytes:l,rate:u||void 0,estimated:u&&o&&h?(o-a)/u:void 0,event:r};m[t?"download":"upload"]=!0,e(m)}}const isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(e){return new Promise(function(n,i){let r=e.data;const a=AxiosHeaders$1.from(e.headers).normalize();let{responseType:o,withXSRFToken:l}=e,u;function h(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}let m;if(utils$1.isFormData(r)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)a.setContentType(!1);else if((m=a.getContentType())!==!1){const[$,...x]=m?m.split(";").map(M=>M.trim()).filter(Boolean):[];a.setContentType([$||"multipart/form-data",...x].join("; "))}}let g=new XMLHttpRequest;if(e.auth){const $=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa($+":"+x))}const _=buildFullPath(e.baseURL,e.url);g.open(e.method.toUpperCase(),buildURL(_,e.params,e.paramsSerializer),!0),g.timeout=e.timeout;function v(){if(!g)return;const $=AxiosHeaders$1.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),M={data:!o||o==="text"||o==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:$,config:e,request:g};settle(function(R){n(R),h()},function(R){i(R),h()},M),g=null}if("onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(v)},g.onabort=function(){g&&(i(new AxiosError("Request aborted",AxiosError.ECONNABORTED,e,g)),g=null)},g.onerror=function(){i(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let x=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const M=e.transitional||transitionalDefaults;e.timeoutErrorMessage&&(x=e.timeoutErrorMessage),i(new AxiosError(x,M.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,e,g)),g=null},platform.hasStandardBrowserEnv&&(l&&utils$1.isFunction(l)&&(l=l(e)),l||l!==!1&&isURLSameOrigin(_))){const $=e.xsrfHeaderName&&e.xsrfCookieName&&cookies.read(e.xsrfCookieName);$&&a.set(e.xsrfHeaderName,$)}r===void 0&&a.setContentType(null),"setRequestHeader"in g&&utils$1.forEach(a.toJSON(),function(x,M){g.setRequestHeader(M,x)}),utils$1.isUndefined(e.withCredentials)||(g.withCredentials=!!e.withCredentials),o&&o!=="json"&&(g.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&g.addEventListener("progress",progressEventReducer(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&g.upload&&g.upload.addEventListener("progress",progressEventReducer(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=$=>{g&&(i(!$||$.type?new CanceledError(null,e,g):$),g.abort(),g=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const w=parseProtocol(_);if(w&&platform.protocols.indexOf(w)===-1){i(new AxiosError("Unsupported protocol "+w+":",AxiosError.ERR_BAD_REQUEST,e));return}g.send(r||null)})},knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils$1.forEach(knownAdapters,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const renderReason=e=>`- ${e}`,isResolvedHandle=e=>utils$1.isFunction(e)||e===null||e===!1,adapters$1={getAdapter:e=>{e=utils$1.isArray(e)?e:[e];const{length:t}=e;let n,i;const r={};for(let a=0;a<t;a++){n=e[a];let o;if(i=n,!isResolvedHandle(n)&&(i=knownAdapters[(o=String(n)).toLowerCase()],i===void 0))throw new AxiosError(`Unknown adapter '${o}'`);if(i)break;r[o||"#"+a]=i}if(!i){const a=Object.entries(r).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since :
+var ra=Object.defineProperty;var aa=(e,t,n)=>t in e?ra(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Y=(e,t,n)=>(aa(e,typeof t!="symbol"?t+"":t,n),n);function bind$4(e,t){return function(){return e.apply(t,arguments)}}const{toString:toString$7}=Object.prototype,{getPrototypeOf}=Object,kindOf=(e=>t=>{const n=toString$7.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=e=>(e=e.toLowerCase(),t=>kindOf(t)===e),typeOfTest=e=>t=>typeof t===e,{isArray:isArray$d}=Array,isUndefined=typeOfTest("undefined");function isBuffer$3(e){return e!==null&&!isUndefined(e)&&e.constructor!==null&&!isUndefined(e.constructor)&&isFunction$6(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&isArrayBuffer(e.buffer),t}const isString$1=typeOfTest("string"),isFunction$6=typeOfTest("function"),isNumber$1=typeOfTest("number"),isObject$c=e=>e!==null&&typeof e=="object",isBoolean=e=>e===!0||e===!1,isPlainObject=e=>{if(kindOf(e)!=="object")return!1;const t=getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},isDate$1=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=e=>isObject$c(e)&&isFunction$6(e.pipe),isFormData=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||isFunction$6(e.append)&&((t=kindOf(e))==="formdata"||t==="object"&&isFunction$6(e.toString)&&e.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),trim$2=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,r;if(typeof e!="object"&&(e=[e]),isArray$d(e))for(i=0,r=e.length;i<r;i++)t.call(null,e[i],i,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let l;for(i=0;i<o;i++)l=a[i],t.call(null,e[l],l,e)}}function findKey$1(e,t){t=t.toLowerCase();const n=Object.keys(e);let i=n.length,r;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const _global=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),isContextDefined=e=>!isUndefined(e)&&e!==_global;function merge$1(){const{caseless:e}=isContextDefined(this)&&this||{},t={},n=(i,r)=>{const a=e&&findKey$1(t,r)||r;isPlainObject(t[a])&&isPlainObject(i)?t[a]=merge$1(t[a],i):isPlainObject(i)?t[a]=merge$1({},i):isArray$d(i)?t[a]=i.slice():t[a]=i};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&forEach(arguments[i],n);return t}const extend=(e,t,n,{allOwnKeys:i}={})=>(forEach(t,(r,a)=>{n&&isFunction$6(r)?e[a]=bind$4(r,n):e[a]=r},{allOwnKeys:i}),e),stripBOM=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),inherits=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject=(e,t,n,i)=>{let r,a,o;const l={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),a=r.length;a-- >0;)o=r[a],(!i||i(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=n!==!1&&getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},endsWith=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},toArray=e=>{if(!e)return null;if(isArray$d(e))return e;let t=e.length;if(!isNumber$1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},isTypedArray$3=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=i.next())&&!r.done;){const a=r.value;t.call(e,a[0],a[1])}},matchAll=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,r){return i.toUpperCase()+r}),hasOwnProperty$c=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};forEach(n,(r,a)=>{let o;(o=t(r,a,e))!==!1&&(i[a]=o||r)}),Object.defineProperties(e,i)},freezeMethods=e=>{reduceDescriptors(e,(t,n)=>{if(isFunction$6(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(isFunction$6(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet=(e,t)=>{const n={},i=r=>{r.forEach(a=>{n[a]=!0})};return isArray$d(e)?i(e):i(String(e).split(t)),n},noop$4=()=>{},toFiniteNumber=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(e=16,t=ALPHABET.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function isSpecCompliantForm(e){return!!(e&&isFunction$6(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const toJSONObject=e=>{const t=new Array(10),n=(i,r)=>{if(isObject$c(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[r]=i;const a=isArray$d(i)?[]:{};return forEach(i,(o,l)=>{const u=n(o,r+1);!isUndefined(u)&&(a[l]=u)}),t[r]=void 0,a}}return i};return n(e,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=e=>e&&(isObject$c(e)||isFunction$6(e))&&isFunction$6(e.then)&&isFunction$6(e.catch),utils$1={isArray:isArray$d,isArrayBuffer,isBuffer:isBuffer$3,isFormData,isArrayBufferView,isString:isString$1,isNumber:isNumber$1,isBoolean,isObject:isObject$c,isPlainObject,isUndefined,isDate:isDate$1,isFile,isBlob,isRegExp,isFunction:isFunction$6,isStream,isURLSearchParams,isTypedArray:isTypedArray$3,isFileList,forEach,merge:merge$1,extend,trim:trim$2,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty:hasOwnProperty$c,hasOwnProp:hasOwnProperty$c,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop:noop$4,toFiniteNumber,findKey:findKey$1,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable};function AxiosError(e,t,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}utils$1.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors$1={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{descriptors$1[e]={value:e}});Object.defineProperties(AxiosError,descriptors$1);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(e,t,n,i,r,a)=>{const o=Object.create(prototype$1);return utils$1.toFlatObject(e,o,function(u){return u!==Error.prototype},l=>l!=="isAxiosError"),AxiosError.call(o,e.message,t,n,i,r),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const httpAdapter=null;function isVisitable(e){return utils$1.isPlainObject(e)||utils$1.isArray(e)}function removeBrackets(e){return utils$1.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,t,n){return e?e.concat(t).map(function(r,a){return r=removeBrackets(r),!n&&a?"["+r+"]":r}).join(n?".":""):t}function isFlatArray(e){return utils$1.isArray(e)&&!e.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function(t){return/^is[A-Z]/.test(t)});function toFormData(e,t,n){if(!utils$1.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=utils$1.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,x){return!utils$1.isUndefined(x[E])});const i=n.metaTokens,r=n.visitor||m,a=n.dots,o=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&utils$1.isSpecCompliantForm(t);if(!utils$1.isFunction(r))throw new TypeError("visitor must be a function");function d(w){if(w===null)return"";if(utils$1.isDate(w))return w.toISOString();if(!u&&utils$1.isBlob(w))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(w)||utils$1.isTypedArray(w)?u&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function m(w,E,x){let M=w;if(w&&!x&&typeof w=="object"){if(utils$1.endsWith(E,"{}"))E=i?E:E.slice(0,-2),w=JSON.stringify(w);else if(utils$1.isArray(w)&&isFlatArray(w)||(utils$1.isFileList(w)||utils$1.endsWith(E,"[]"))&&(M=utils$1.toArray(w)))return E=removeBrackets(E),M.forEach(function(R,W){!(utils$1.isUndefined(R)||R===null)&&t.append(o===!0?renderKey([E],W,a):o===null?E:E+"[]",d(R))}),!1}return isVisitable(w)?!0:(t.append(renderKey(x,E,a),d(w)),!1)}const g=[],_=Object.assign(predicates,{defaultVisitor:m,convertValue:d,isVisitable});function v(w,E){if(!utils$1.isUndefined(w)){if(g.indexOf(w)!==-1)throw Error("Circular reference detected in "+E.join("."));g.push(w),utils$1.forEach(w,function(M,S){(!(utils$1.isUndefined(M)||M===null)&&r.call(t,M,utils$1.isString(S)?S.trim():S,E,_))===!0&&v(M,E?E.concat(S):[S])}),g.pop()}}if(!utils$1.isObject(e))throw new TypeError("data must be an object");return v(e),t}function encode$1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function AxiosURLSearchParams(e,t){this._pairs=[],e&&toFormData(e,this,t)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(t,n){this._pairs.push([t,n])};prototype.toString=function(t){const n=t?function(i){return t.call(this,i,encode$1)}:encode$1;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(e,t,n){if(!t)return e;const i=n&&n.encode||encode,r=n&&n.serialize;let a;if(r?a=r(t,n):a=utils$1.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams(t,n).toString(i),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class InterceptorManager{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){utils$1.forEach(this.handlers,function(i){i!==null&&t(i)})}}const InterceptorManager$1=InterceptorManager,transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",hasStandardBrowserEnv=(e=>hasBrowserEnv&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),hasStandardBrowserWebWorkerEnv=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm(e,t){return toFormData(e,new platform.classes.URLSearchParams,Object.assign({visitor:function(n,i,r,a){return platform.isNode&&utils$1.isBuffer(n)?(this.append(i,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function parsePropPath(e){return utils$1.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function arrayToObject(e){const t={},n=Object.keys(e);let i;const r=n.length;let a;for(i=0;i<r;i++)a=n[i],t[a]=e[a];return t}function formDataToJSON(e){function t(n,i,r,a){let o=n[a++];const l=Number.isFinite(+o),u=a>=n.length;return o=!o&&utils$1.isArray(r)?r.length:o,u?(utils$1.hasOwnProp(r,o)?r[o]=[r[o],i]:r[o]=i,!l):((!r[o]||!utils$1.isObject(r[o]))&&(r[o]=[]),t(n,i,r[o],a)&&utils$1.isArray(r[o])&&(r[o]=arrayToObject(r[o])),!l)}if(utils$1.isFormData(e)&&utils$1.isFunction(e.entries)){const n={};return utils$1.forEachEntry(e,(i,r)=>{t(parsePropPath(i),r,n,0)}),n}return null}function stringifySafely(e,t,n){if(utils$1.isString(e))try{return(t||JSON.parse)(e),utils$1.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const defaults$1={transitional:transitionalDefaults,adapter:["xhr","http"],transformRequest:[function(t,n){const i=n.getContentType()||"",r=i.indexOf("application/json")>-1,a=utils$1.isObject(t);if(a&&utils$1.isHTMLForm(t)&&(t=new FormData(t)),utils$1.isFormData(t))return r&&r?JSON.stringify(formDataToJSON(t)):t;if(utils$1.isArrayBuffer(t)||utils$1.isBuffer(t)||utils$1.isStream(t)||utils$1.isFile(t)||utils$1.isBlob(t))return t;if(utils$1.isArrayBufferView(t))return t.buffer;if(utils$1.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(t,this.formSerializer).toString();if((l=utils$1.isFileList(t))||i.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return toFormData(l?{"files[]":t}:t,u&&new u,this.formSerializer)}}return a||r?(n.setContentType("application/json",!1),stringifySafely(t)):t}],transformResponse:[function(t){const n=this.transitional||defaults$1.transitional,i=n&&n.forcedJSONParsing,r=this.responseType==="json";if(t&&utils$1.isString(t)&&(i&&!this.responseType||r)){const o=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(l){if(o)throw l.name==="SyntaxError"?AxiosError.from(l,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],e=>{defaults$1.headers[e]={}});const defaults$2=defaults$1,ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=e=>{const t={};let n,i,r;return e&&e.split(`
+`).forEach(function(o){r=o.indexOf(":"),n=o.substring(0,r).trim().toLowerCase(),i=o.substring(r+1).trim(),!(!n||t[n]&&ignoreDuplicateOf[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},$internals=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return e===!1||e==null?e:utils$1.isArray(e)?e.map(normalizeValue):String(e)}function parseTokens(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}const isValidHeaderName=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue(e,t,n,i,r){if(utils$1.isFunction(i))return i.call(this,t,n);if(r&&(t=n),!!utils$1.isString(t)){if(utils$1.isString(i))return t.indexOf(i)!==-1;if(utils$1.isRegExp(i))return i.test(t)}}function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function buildAccessors(e,t){const n=utils$1.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(r,a,o){return this[i].call(this,t,r,a,o)},configurable:!0})})}class AxiosHeaders{constructor(t){t&&this.set(t)}set(t,n,i){const r=this;function a(l,u,d){const m=normalizeHeader(u);if(!m)throw new Error("header name must be a non-empty string");const g=utils$1.findKey(r,m);(!g||r[g]===void 0||d===!0||d===void 0&&r[g]!==!1)&&(r[g||u]=normalizeValue(l))}const o=(l,u)=>utils$1.forEach(l,(d,m)=>a(d,m,u));return utils$1.isPlainObject(t)||t instanceof this.constructor?o(t,n):utils$1.isString(t)&&(t=t.trim())&&!isValidHeaderName(t)?o(parseHeaders(t),n):t!=null&&a(n,t,i),this}get(t,n){if(t=normalizeHeader(t),t){const i=utils$1.findKey(this,t);if(i){const r=this[i];if(!n)return r;if(n===!0)return parseTokens(r);if(utils$1.isFunction(n))return n.call(this,r,i);if(utils$1.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=normalizeHeader(t),t){const i=utils$1.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||matchHeaderValue(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let r=!1;function a(o){if(o=normalizeHeader(o),o){const l=utils$1.findKey(i,o);l&&(!n||matchHeaderValue(i,i[l],l,n))&&(delete i[l],r=!0)}}return utils$1.isArray(t)?t.forEach(a):a(t),r}clear(t){const n=Object.keys(this);let i=n.length,r=!1;for(;i--;){const a=n[i];(!t||matchHeaderValue(this,this[a],a,t,!0))&&(delete this[a],r=!0)}return r}normalize(t){const n=this,i={};return utils$1.forEach(this,(r,a)=>{const o=utils$1.findKey(i,a);if(o){n[o]=normalizeValue(r),delete n[a];return}const l=t?formatHeader(a):String(a).trim();l!==a&&delete n[a],n[l]=normalizeValue(r),i[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return utils$1.forEach(this,(i,r)=>{i!=null&&i!==!1&&(n[r]=t&&utils$1.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
+`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(r=>i.set(r)),i}static accessor(t){const i=(this[$internals]=this[$internals]={accessors:{}}).accessors,r=this.prototype;function a(o){const l=normalizeHeader(o);i[l]||(buildAccessors(r,o),i[l]=!0)}return utils$1.isArray(t)?t.forEach(a):a(t),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}});utils$1.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData(e,t){const n=this||defaults$2,i=t||n,r=AxiosHeaders$1.from(i.headers);let a=i.data;return utils$1.forEach(e,function(l){a=l.call(n,a,r.normalize(),t?t.status:void 0)}),r.normalize(),a}function isCancel(e){return!!(e&&e.__CANCEL__)}function CanceledError(e,t,n){AxiosError.call(this,e??"canceled",AxiosError.ERR_CANCELED,t,n),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new AxiosError("Request failed with status code "+n.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const cookies=platform.hasStandardBrowserEnv?{write(e,t,n,i,r,a){const o=[e+"="+encodeURIComponent(t)];utils$1.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),utils$1.isString(i)&&o.push("path="+i),utils$1.isString(r)&&o.push("domain="+r),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function buildFullPath(e,t){return e&&!isAbsoluteURL(t)?combineURLs(e,t):t}const isURLSameOrigin=platform.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function r(a){let o=a;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=r(window.location.href),function(o){const l=utils$1.isString(o)?r(o):o;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}();function parseProtocol(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function speedometer(e,t){e=e||10;const n=new Array(e),i=new Array(e);let r=0,a=0,o;return t=t!==void 0?t:1e3,function(u){const d=Date.now(),m=i[a];o||(o=d),n[r]=u,i[r]=d;let g=a,_=0;for(;g!==r;)_+=n[g++],g=g%e;if(r=(r+1)%e,r===a&&(a=(a+1)%e),d-o<t)return;const v=m&&d-m;return v?Math.round(_*1e3/v):void 0}}function progressEventReducer(e,t){let n=0;const i=speedometer(50,250);return r=>{const a=r.loaded,o=r.lengthComputable?r.total:void 0,l=a-n,u=i(l),d=a<=o;n=a;const m={loaded:a,total:o,progress:o?a/o:void 0,bytes:l,rate:u||void 0,estimated:u&&o&&d?(o-a)/u:void 0,event:r};m[t?"download":"upload"]=!0,e(m)}}const isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(e){return new Promise(function(n,i){let r=e.data;const a=AxiosHeaders$1.from(e.headers).normalize();let{responseType:o,withXSRFToken:l}=e,u;function d(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}let m;if(utils$1.isFormData(r)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)a.setContentType(!1);else if((m=a.getContentType())!==!1){const[E,...x]=m?m.split(";").map(M=>M.trim()).filter(Boolean):[];a.setContentType([E||"multipart/form-data",...x].join("; "))}}let g=new XMLHttpRequest;if(e.auth){const E=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(E+":"+x))}const _=buildFullPath(e.baseURL,e.url);g.open(e.method.toUpperCase(),buildURL(_,e.params,e.paramsSerializer),!0),g.timeout=e.timeout;function v(){if(!g)return;const E=AxiosHeaders$1.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),M={data:!o||o==="text"||o==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:E,config:e,request:g};settle(function(R){n(R),d()},function(R){i(R),d()},M),g=null}if("onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(v)},g.onabort=function(){g&&(i(new AxiosError("Request aborted",AxiosError.ECONNABORTED,e,g)),g=null)},g.onerror=function(){i(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let x=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const M=e.transitional||transitionalDefaults;e.timeoutErrorMessage&&(x=e.timeoutErrorMessage),i(new AxiosError(x,M.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,e,g)),g=null},platform.hasStandardBrowserEnv&&(l&&utils$1.isFunction(l)&&(l=l(e)),l||l!==!1&&isURLSameOrigin(_))){const E=e.xsrfHeaderName&&e.xsrfCookieName&&cookies.read(e.xsrfCookieName);E&&a.set(e.xsrfHeaderName,E)}r===void 0&&a.setContentType(null),"setRequestHeader"in g&&utils$1.forEach(a.toJSON(),function(x,M){g.setRequestHeader(M,x)}),utils$1.isUndefined(e.withCredentials)||(g.withCredentials=!!e.withCredentials),o&&o!=="json"&&(g.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&g.addEventListener("progress",progressEventReducer(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&g.upload&&g.upload.addEventListener("progress",progressEventReducer(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=E=>{g&&(i(!E||E.type?new CanceledError(null,e,g):E),g.abort(),g=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const w=parseProtocol(_);if(w&&platform.protocols.indexOf(w)===-1){i(new AxiosError("Unsupported protocol "+w+":",AxiosError.ERR_BAD_REQUEST,e));return}g.send(r||null)})},knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils$1.forEach(knownAdapters,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const renderReason=e=>`- ${e}`,isResolvedHandle=e=>utils$1.isFunction(e)||e===null||e===!1,adapters$1={getAdapter:e=>{e=utils$1.isArray(e)?e:[e];const{length:t}=e;let n,i;const r={};for(let a=0;a<t;a++){n=e[a];let o;if(i=n,!isResolvedHandle(n)&&(i=knownAdapters[(o=String(n)).toLowerCase()],i===void 0))throw new AxiosError(`Unknown adapter '${o}'`);if(i)break;r[o||"#"+a]=i}if(!i){const a=Object.entries(r).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since :
`+a.map(renderReason).join(`
-`):" "+renderReason(a[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return i},adapters:knownAdapters};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError(null,e)}function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=AxiosHeaders$1.from(e.headers),e.data=transformData.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),adapters$1.getAdapter(e.adapter||defaults$2.adapter)(e).then(function(i){return throwIfCancellationRequested(e),i.data=transformData.call(e,e.transformResponse,i),i.headers=AxiosHeaders$1.from(i.headers),i},function(i){return isCancel(i)||(throwIfCancellationRequested(e),i&&i.response&&(i.response.data=transformData.call(e,e.transformResponse,i.response),i.response.headers=AxiosHeaders$1.from(i.response.headers))),Promise.reject(i)})}const headersToObject=e=>e instanceof AxiosHeaders$1?e.toJSON():e;function mergeConfig(e,t){t=t||{};const n={};function i(h,m,g){return utils$1.isPlainObject(h)&&utils$1.isPlainObject(m)?utils$1.merge.call({caseless:g},h,m):utils$1.isPlainObject(m)?utils$1.merge({},m):utils$1.isArray(m)?m.slice():m}function r(h,m,g){if(utils$1.isUndefined(m)){if(!utils$1.isUndefined(h))return i(void 0,h,g)}else return i(h,m,g)}function a(h,m){if(!utils$1.isUndefined(m))return i(void 0,m)}function o(h,m){if(utils$1.isUndefined(m)){if(!utils$1.isUndefined(h))return i(void 0,h)}else return i(void 0,m)}function l(h,m,g){if(g in t)return i(h,m);if(g in e)return i(void 0,h)}const u={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(h,m)=>r(headersToObject(h),headersToObject(m),!0)};return utils$1.forEach(Object.keys(Object.assign({},e,t)),function(m){const g=u[m]||r,_=g(e[m],t[m],m);utils$1.isUndefined(_)&&g!==l||(n[m]=_)}),n}const VERSION$1="1.6.3",validators$1={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{validators$1[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const deprecatedWarnings={};validators$1.transitional=function(t,n,i){function r(a,o){return"[Axios v"+VERSION$1+"] Transitional option '"+a+"'"+o+(i?". "+i:"")}return(a,o,l)=>{if(t===!1)throw new AxiosError(r(o," has been removed"+(n?" in "+n:"")),AxiosError.ERR_DEPRECATED);return n&&!deprecatedWarnings[o]&&(deprecatedWarnings[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,l):!0}};function assertOptions(e,t,n){if(typeof e!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let r=i.length;for(;r-- >0;){const a=i[r],o=t[a];if(o){const l=e[a],u=l===void 0||o(l,a,e);if(u!==!0)throw new AxiosError("option "+a+" must be "+u,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new AxiosError("Unknown option "+a,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(t){this.defaults=t,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=mergeConfig(this.defaults,n);const{transitional:i,paramsSerializer:r,headers:a}=n;i!==void 0&&validator.assertOptions(i,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),r!=null&&(utils$1.isFunction(r)?n.paramsSerializer={serialize:r}:validator.assertOptions(r,{encode:validators.function,serialize:validators.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&utils$1.merge(a.common,a[n.method]);a&&utils$1.forEach(["delete","get","head","post","put","patch","common"],w=>{delete a[w]}),n.headers=AxiosHeaders$1.concat(o,a);const l=[];let u=!0;this.interceptors.request.forEach(function($){typeof $.runWhen=="function"&&$.runWhen(n)===!1||(u=u&&$.synchronous,l.unshift($.fulfilled,$.rejected))});const h=[];this.interceptors.response.forEach(function($){h.push($.fulfilled,$.rejected)});let m,g=0,_;if(!u){const w=[dispatchRequest.bind(this),void 0];for(w.unshift.apply(w,l),w.push.apply(w,h),_=w.length,m=Promise.resolve(n);g<_;)m=m.then(w[g++],w[g++]);return m}_=l.length;let v=n;for(g=0;g<_;){const w=l[g++],$=l[g++];try{v=w(v)}catch(x){$.call(this,x);break}}try{m=dispatchRequest.call(this,v)}catch(w){return Promise.reject(w)}for(g=0,_=h.length;g<_;)m=m.then(h[g++],h[g++]);return m}getUri(t){t=mergeConfig(this.defaults,t);const n=buildFullPath(t.baseURL,t.url);return buildURL(n,t.params,t.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],function(t){Axios.prototype[t]=function(n,i){return this.request(mergeConfig(i||{},{method:t,url:n,data:(i||{}).data}))}});utils$1.forEach(["post","put","patch"],function(t){function n(i){return function(a,o,l){return this.request(mergeConfig(l||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Axios.prototype[t]=n(),Axios.prototype[t+"Form"]=n(!0)});const Axios$1=Axios;class CancelToken{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const i=this;this.promise.then(r=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](r);i._listeners=null}),this.promise.then=r=>{let a;const o=new Promise(l=>{i.subscribe(l),a=l}).then(r);return o.cancel=function(){i.unsubscribe(a)},o},t(function(a,o,l){i.reason||(i.reason=new CanceledError(a,o,l),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new CancelToken(function(r){t=r}),cancel:t}}}const CancelToken$1=CancelToken;function spread(e){return function(n){return e.apply(null,n)}}function isAxiosError(e){return utils$1.isObject(e)&&e.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([e,t])=>{HttpStatusCode[t]=e});const HttpStatusCode$1=HttpStatusCode;function createInstance(e){const t=new Axios$1(e),n=bind$4(Axios$1.prototype.request,t);return utils$1.extend(n,Axios$1.prototype,t,{allOwnKeys:!0}),utils$1.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return createInstance(mergeConfig(e,r))},n}const axios=createInstance(defaults$2);axios.Axios=Axios$1;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken$1;axios.isCancel=isCancel;axios.VERSION=VERSION$1;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function(t){return Promise.all(t)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=e=>formDataToJSON(utils$1.isHTMLForm(e)?new FormData(e):e);axios.getAdapter=adapters$1.getAdapter;axios.HttpStatusCode=HttpStatusCode$1;axios.default=axios;const axios$1=axios;var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var assign=make_assign(),create$2=make_create(),trim$1=make_trim(),Global$5=typeof window<"u"?window:commonjsGlobal,util$7={assign,create:create$2,trim:trim$1,bind:bind$3,slice:slice$2,each:each$9,map:map$2,pluck:pluck$1,isList:isList$1,isFunction:isFunction$5,isObject:isObject$b,Global:Global$5};function make_assign(){return Object.assign?Object.assign:function(t,n,i,r){for(var a=1;a<arguments.length;a++)each$9(Object(arguments[a]),function(o,l){t[l]=o});return t}}function make_create(){if(Object.create)return function(t,n,i,r){var a=slice$2(arguments,1);return assign.apply(this,[Object.create(t)].concat(a))};{let e=function(){};return function(n,i,r,a){var o=slice$2(arguments,1);return e.prototype=n,assign.apply(this,[new e].concat(o))}}}function make_trim(){return String.prototype.trim?function(t){return String.prototype.trim.call(t)}:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function bind$3(e,t){return function(){return t.apply(e,Array.prototype.slice.call(arguments,0))}}function slice$2(e,t){return Array.prototype.slice.call(e,t||0)}function each$9(e,t){pluck$1(e,function(n,i){return t(n,i),!1})}function map$2(e,t){var n=isList$1(e)?[]:{};return pluck$1(e,function(i,r){return n[r]=t(i,r),!1}),n}function pluck$1(e,t){if(isList$1(e)){for(var n=0;n<e.length;n++)if(t(e[n],n))return e[n]}else for(var i in e)if(e.hasOwnProperty(i)&&t(e[i],i))return e[i]}function isList$1(e){return e!=null&&typeof e!="function"&&typeof e.length=="number"}function isFunction$5(e){return e&&{}.toString.call(e)==="[object Function]"}function isObject$b(e){return e&&{}.toString.call(e)==="[object Object]"}var util$6=util$7,slice$1=util$6.slice,pluck=util$6.pluck,each$8=util$6.each,bind$2=util$6.bind,create$1=util$6.create,isList=util$6.isList,isFunction$4=util$6.isFunction,isObject$a=util$6.isObject,storeEngine={createStore},storeAPI={version:"2.0.12",enabled:!1,get:function(e,t){var n=this.storage.read(this._namespacePrefix+e);return this._deserialize(n,t)},set:function(e,t){return t===void 0?this.remove(e):(this.storage.write(this._namespacePrefix+e,this._serialize(t)),t)},remove:function(e){this.storage.remove(this._namespacePrefix+e)},each:function(e){var t=this;this.storage.each(function(n,i){e.call(t,t._deserialize(n),(i||"").replace(t._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(e){return this._namespacePrefix=="__storejs_"+e+"_"},createStore:function(){return createStore.apply(this,arguments)},addPlugin:function(e){this._addPlugin(e)},namespace:function(e){return createStore(this.storage,this.plugins,e)}};function _warn(){var e=typeof console>"u"?null:console;if(e){var t=e.warn?e.warn:e.log;t.apply(e,arguments)}}function createStore(e,t,n){n||(n=""),e&&!isList(e)&&(e=[e]),t&&!isList(t)&&(t=[t]);var i=n?"__storejs_"+n+"_":"",r=n?new RegExp("^"+i):null,a=/^[a-zA-Z0-9_\-]*$/;if(!a.test(n))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var o={_namespacePrefix:i,_namespaceRegexp:r,_testStorage:function(u){try{var h="__storejs__test__";u.write(h,h);var m=u.read(h)===h;return u.remove(h),m}catch{return!1}},_assignPluginFnProp:function(u,h){var m=this[h];this[h]=function(){var _=slice$1(arguments,0),v=this;function w(){if(m)return each$8(arguments,function(x,M){_[M]=x}),m.apply(v,_)}var $=[w].concat(_);return u.apply(v,$)}},_serialize:function(u){return JSON.stringify(u)},_deserialize:function(u,h){if(!u)return h;var m="";try{m=JSON.parse(u)}catch{m=u}return m!==void 0?m:h},_addStorage:function(u){this.enabled||this._testStorage(u)&&(this.storage=u,this.enabled=!0)},_addPlugin:function(u){var h=this;if(isList(u)){each$8(u,function(_){h._addPlugin(_)});return}var m=pluck(this.plugins,function(_){return u===_});if(!m){if(this.plugins.push(u),!isFunction$4(u))throw new Error("Plugins must be function values that return objects");var g=u.call(this);if(!isObject$a(g))throw new Error("Plugins must return an object of function properties");each$8(g,function(_,v){if(!isFunction$4(_))throw new Error("Bad plugin property: "+v+" from plugin "+u.name+". Plugins should only return functions.");h._assignPluginFnProp(_,v)})}},addStorage:function(u){_warn("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(u)}},l=create$1(o,storeAPI,{plugins:[]});return l.raw={},each$8(l,function(u,h){isFunction$4(u)&&(l.raw[h]=bind$2(l,u))}),each$8(e,function(u){l._addStorage(u)}),each$8(t,function(u){l._addPlugin(u)}),l}var util$5=util$7,Global$4=util$5.Global,localStorage_1={name:"localStorage",read:read$6,write:write$6,each:each$7,remove:remove$5,clearAll:clearAll$5};function localStorage(){return Global$4.localStorage}function read$6(e){return localStorage().getItem(e)}function write$6(e,t){return localStorage().setItem(e,t)}function each$7(e){for(var t=localStorage().length-1;t>=0;t--){var n=localStorage().key(t);e(read$6(n),n)}}function remove$5(e){return localStorage().removeItem(e)}function clearAll$5(){return localStorage().clear()}var util$4=util$7,Global$3=util$4.Global,oldFFGlobalStorage={name:"oldFF-globalStorage",read:read$5,write:write$5,each:each$6,remove:remove$4,clearAll:clearAll$4},globalStorage=Global$3.globalStorage;function read$5(e){return globalStorage[e]}function write$5(e,t){globalStorage[e]=t}function each$6(e){for(var t=globalStorage.length-1;t>=0;t--){var n=globalStorage.key(t);e(globalStorage[n],n)}}function remove$4(e){return globalStorage.removeItem(e)}function clearAll$4(){each$6(function(e,t){delete globalStorage[e]})}var util$3=util$7,Global$2=util$3.Global,oldIEUserDataStorage={name:"oldIE-userDataStorage",write:write$4,read:read$4,each:each$5,remove:remove$3,clearAll:clearAll$3},storageName="storejs",doc$1=Global$2.document,_withStorageEl=_makeIEStorageElFunction(),disable=(Global$2.navigator?Global$2.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function write$4(e,t){if(!disable){var n=fixKey(e);_withStorageEl(function(i){i.setAttribute(n,t),i.save(storageName)})}}function read$4(e){if(!disable){var t=fixKey(e),n=null;return _withStorageEl(function(i){n=i.getAttribute(t)}),n}}function each$5(e){_withStorageEl(function(t){for(var n=t.XMLDocument.documentElement.attributes,i=n.length-1;i>=0;i--){var r=n[i];e(t.getAttribute(r.name),r.name)}})}function remove$3(e){var t=fixKey(e);_withStorageEl(function(n){n.removeAttribute(t),n.save(storageName)})}function clearAll$3(){_withStorageEl(function(e){var t=e.XMLDocument.documentElement.attributes;e.load(storageName);for(var n=t.length-1;n>=0;n--)e.removeAttribute(t[n].name);e.save(storageName)})}var forbiddenCharsRegex=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function fixKey(e){return e.replace(/^\d/,"___$&").replace(forbiddenCharsRegex,"___")}function _makeIEStorageElFunction(){if(!doc$1||!doc$1.documentElement||!doc$1.documentElement.addBehavior)return null;var e="script",t,n,i;try{n=new ActiveXObject("htmlfile"),n.open(),n.write("<"+e+">document.w=window</"+e+'><iframe src="/favicon.ico"></iframe>'),n.close(),t=n.w.frames[0].document,i=t.createElement("div")}catch{i=doc$1.createElement("div"),t=doc$1.body}return function(r){var a=[].slice.call(arguments,0);a.unshift(i),t.appendChild(i),i.addBehavior("#default#userData"),i.load(storageName),r.apply(this,a),t.removeChild(i)}}var util$2=util$7,Global$1=util$2.Global,trim=util$2.trim,cookieStorage={name:"cookieStorage",read:read$3,write:write$3,each:each$4,remove:remove$2,clearAll:clearAll$2},doc=Global$1.document;function read$3(e){if(!e||!_has(e))return null;var t="(?:^|.*;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(doc.cookie.replace(new RegExp(t),"$1"))}function each$4(e){for(var t=doc.cookie.split(/; ?/g),n=t.length-1;n>=0;n--)if(trim(t[n])){var i=t[n].split("="),r=unescape(i[0]),a=unescape(i[1]);e(a,r)}}function write$3(e,t){e&&(doc.cookie=escape(e)+"="+escape(t)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function remove$2(e){!e||!_has(e)||(doc.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function clearAll$2(){each$4(function(e,t){remove$2(t)})}function _has(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(doc.cookie)}var util$1=util$7,Global=util$1.Global,sessionStorage_1={name:"sessionStorage",read:read$2,write:write$2,each:each$3,remove:remove$1,clearAll:clearAll$1};function sessionStorage(){return Global.sessionStorage}function read$2(e){return sessionStorage().getItem(e)}function write$2(e,t){return sessionStorage().setItem(e,t)}function each$3(e){for(var t=sessionStorage().length-1;t>=0;t--){var n=sessionStorage().key(t);e(read$2(n),n)}}function remove$1(e){return sessionStorage().removeItem(e)}function clearAll$1(){return sessionStorage().clear()}var memoryStorage_1={name:"memoryStorage",read:read$1,write:write$1,each:each$2,remove,clearAll},memoryStorage={};function read$1(e){return memoryStorage[e]}function write$1(e,t){memoryStorage[e]=t}function each$2(e){for(var t in memoryStorage)memoryStorage.hasOwnProperty(t)&&e(memoryStorage[t],t)}function remove(e){delete memoryStorage[e]}function clearAll(e){memoryStorage={}}var all=[localStorage_1,oldFFGlobalStorage,oldIEUserDataStorage,cookieStorage,sessionStorage_1,memoryStorage_1],json2$1={},hasRequiredJson2;function requireJson2(){return hasRequiredJson2||(hasRequiredJson2=1,typeof JSON!="object"&&(JSON={}),function(){var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(e){return e<10?"0"+e:e}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(e){return rx_escapable.lastIndex=0,rx_escapable.test(e)?'"'+e.replace(rx_escapable,function(t){var n=meta[t];return typeof n=="string"?n:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var n,i,r,a,o=gap,l,u=t[e];switch(u&&typeof u=="object"&&typeof u.toJSON=="function"&&(u=u.toJSON(e)),typeof rep=="function"&&(u=rep.call(t,e,u)),typeof u){case"string":return quote(u);case"number":return isFinite(u)?String(u):"null";case"boolean":case"null":return String(u);case"object":if(!u)return"null";if(gap+=indent,l=[],Object.prototype.toString.apply(u)==="[object Array]"){for(a=u.length,n=0;n<a;n+=1)l[n]=str(n,u)||"null";return r=l.length===0?"[]":gap?`[
+`):" "+renderReason(a[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return i},adapters:knownAdapters};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError(null,e)}function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=AxiosHeaders$1.from(e.headers),e.data=transformData.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),adapters$1.getAdapter(e.adapter||defaults$2.adapter)(e).then(function(i){return throwIfCancellationRequested(e),i.data=transformData.call(e,e.transformResponse,i),i.headers=AxiosHeaders$1.from(i.headers),i},function(i){return isCancel(i)||(throwIfCancellationRequested(e),i&&i.response&&(i.response.data=transformData.call(e,e.transformResponse,i.response),i.response.headers=AxiosHeaders$1.from(i.response.headers))),Promise.reject(i)})}const headersToObject=e=>e instanceof AxiosHeaders$1?e.toJSON():e;function mergeConfig(e,t){t=t||{};const n={};function i(d,m,g){return utils$1.isPlainObject(d)&&utils$1.isPlainObject(m)?utils$1.merge.call({caseless:g},d,m):utils$1.isPlainObject(m)?utils$1.merge({},m):utils$1.isArray(m)?m.slice():m}function r(d,m,g){if(utils$1.isUndefined(m)){if(!utils$1.isUndefined(d))return i(void 0,d,g)}else return i(d,m,g)}function a(d,m){if(!utils$1.isUndefined(m))return i(void 0,m)}function o(d,m){if(utils$1.isUndefined(m)){if(!utils$1.isUndefined(d))return i(void 0,d)}else return i(void 0,m)}function l(d,m,g){if(g in t)return i(d,m);if(g in e)return i(void 0,d)}const u={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(d,m)=>r(headersToObject(d),headersToObject(m),!0)};return utils$1.forEach(Object.keys(Object.assign({},e,t)),function(m){const g=u[m]||r,_=g(e[m],t[m],m);utils$1.isUndefined(_)&&g!==l||(n[m]=_)}),n}const VERSION$1="1.6.3",validators$1={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{validators$1[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const deprecatedWarnings={};validators$1.transitional=function(t,n,i){function r(a,o){return"[Axios v"+VERSION$1+"] Transitional option '"+a+"'"+o+(i?". "+i:"")}return(a,o,l)=>{if(t===!1)throw new AxiosError(r(o," has been removed"+(n?" in "+n:"")),AxiosError.ERR_DEPRECATED);return n&&!deprecatedWarnings[o]&&(deprecatedWarnings[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,l):!0}};function assertOptions(e,t,n){if(typeof e!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let r=i.length;for(;r-- >0;){const a=i[r],o=t[a];if(o){const l=e[a],u=l===void 0||o(l,a,e);if(u!==!0)throw new AxiosError("option "+a+" must be "+u,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new AxiosError("Unknown option "+a,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(t){this.defaults=t,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=mergeConfig(this.defaults,n);const{transitional:i,paramsSerializer:r,headers:a}=n;i!==void 0&&validator.assertOptions(i,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),r!=null&&(utils$1.isFunction(r)?n.paramsSerializer={serialize:r}:validator.assertOptions(r,{encode:validators.function,serialize:validators.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&utils$1.merge(a.common,a[n.method]);a&&utils$1.forEach(["delete","get","head","post","put","patch","common"],w=>{delete a[w]}),n.headers=AxiosHeaders$1.concat(o,a);const l=[];let u=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(n)===!1||(u=u&&E.synchronous,l.unshift(E.fulfilled,E.rejected))});const d=[];this.interceptors.response.forEach(function(E){d.push(E.fulfilled,E.rejected)});let m,g=0,_;if(!u){const w=[dispatchRequest.bind(this),void 0];for(w.unshift.apply(w,l),w.push.apply(w,d),_=w.length,m=Promise.resolve(n);g<_;)m=m.then(w[g++],w[g++]);return m}_=l.length;let v=n;for(g=0;g<_;){const w=l[g++],E=l[g++];try{v=w(v)}catch(x){E.call(this,x);break}}try{m=dispatchRequest.call(this,v)}catch(w){return Promise.reject(w)}for(g=0,_=d.length;g<_;)m=m.then(d[g++],d[g++]);return m}getUri(t){t=mergeConfig(this.defaults,t);const n=buildFullPath(t.baseURL,t.url);return buildURL(n,t.params,t.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],function(t){Axios.prototype[t]=function(n,i){return this.request(mergeConfig(i||{},{method:t,url:n,data:(i||{}).data}))}});utils$1.forEach(["post","put","patch"],function(t){function n(i){return function(a,o,l){return this.request(mergeConfig(l||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Axios.prototype[t]=n(),Axios.prototype[t+"Form"]=n(!0)});const Axios$1=Axios;class CancelToken{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const i=this;this.promise.then(r=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](r);i._listeners=null}),this.promise.then=r=>{let a;const o=new Promise(l=>{i.subscribe(l),a=l}).then(r);return o.cancel=function(){i.unsubscribe(a)},o},t(function(a,o,l){i.reason||(i.reason=new CanceledError(a,o,l),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new CancelToken(function(r){t=r}),cancel:t}}}const CancelToken$1=CancelToken;function spread(e){return function(n){return e.apply(null,n)}}function isAxiosError(e){return utils$1.isObject(e)&&e.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([e,t])=>{HttpStatusCode[t]=e});const HttpStatusCode$1=HttpStatusCode;function createInstance(e){const t=new Axios$1(e),n=bind$4(Axios$1.prototype.request,t);return utils$1.extend(n,Axios$1.prototype,t,{allOwnKeys:!0}),utils$1.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return createInstance(mergeConfig(e,r))},n}const axios=createInstance(defaults$2);axios.Axios=Axios$1;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken$1;axios.isCancel=isCancel;axios.VERSION=VERSION$1;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function(t){return Promise.all(t)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=e=>formDataToJSON(utils$1.isHTMLForm(e)?new FormData(e):e);axios.getAdapter=adapters$1.getAdapter;axios.HttpStatusCode=HttpStatusCode$1;axios.default=axios;const axios$1=axios;var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var assign=make_assign(),create$2=make_create(),trim$1=make_trim(),Global$5=typeof window<"u"?window:commonjsGlobal,util$7={assign,create:create$2,trim:trim$1,bind:bind$3,slice:slice$2,each:each$9,map:map$2,pluck:pluck$1,isList:isList$1,isFunction:isFunction$5,isObject:isObject$b,Global:Global$5};function make_assign(){return Object.assign?Object.assign:function(t,n,i,r){for(var a=1;a<arguments.length;a++)each$9(Object(arguments[a]),function(o,l){t[l]=o});return t}}function make_create(){if(Object.create)return function(t,n,i,r){var a=slice$2(arguments,1);return assign.apply(this,[Object.create(t)].concat(a))};{let e=function(){};return function(n,i,r,a){var o=slice$2(arguments,1);return e.prototype=n,assign.apply(this,[new e].concat(o))}}}function make_trim(){return String.prototype.trim?function(t){return String.prototype.trim.call(t)}:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function bind$3(e,t){return function(){return t.apply(e,Array.prototype.slice.call(arguments,0))}}function slice$2(e,t){return Array.prototype.slice.call(e,t||0)}function each$9(e,t){pluck$1(e,function(n,i){return t(n,i),!1})}function map$2(e,t){var n=isList$1(e)?[]:{};return pluck$1(e,function(i,r){return n[r]=t(i,r),!1}),n}function pluck$1(e,t){if(isList$1(e)){for(var n=0;n<e.length;n++)if(t(e[n],n))return e[n]}else for(var i in e)if(e.hasOwnProperty(i)&&t(e[i],i))return e[i]}function isList$1(e){return e!=null&&typeof e!="function"&&typeof e.length=="number"}function isFunction$5(e){return e&&{}.toString.call(e)==="[object Function]"}function isObject$b(e){return e&&{}.toString.call(e)==="[object Object]"}var util$6=util$7,slice$1=util$6.slice,pluck=util$6.pluck,each$8=util$6.each,bind$2=util$6.bind,create$1=util$6.create,isList=util$6.isList,isFunction$4=util$6.isFunction,isObject$a=util$6.isObject,storeEngine={createStore},storeAPI={version:"2.0.12",enabled:!1,get:function(e,t){var n=this.storage.read(this._namespacePrefix+e);return this._deserialize(n,t)},set:function(e,t){return t===void 0?this.remove(e):(this.storage.write(this._namespacePrefix+e,this._serialize(t)),t)},remove:function(e){this.storage.remove(this._namespacePrefix+e)},each:function(e){var t=this;this.storage.each(function(n,i){e.call(t,t._deserialize(n),(i||"").replace(t._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(e){return this._namespacePrefix=="__storejs_"+e+"_"},createStore:function(){return createStore.apply(this,arguments)},addPlugin:function(e){this._addPlugin(e)},namespace:function(e){return createStore(this.storage,this.plugins,e)}};function _warn(){var e=typeof console>"u"?null:console;if(e){var t=e.warn?e.warn:e.log;t.apply(e,arguments)}}function createStore(e,t,n){n||(n=""),e&&!isList(e)&&(e=[e]),t&&!isList(t)&&(t=[t]);var i=n?"__storejs_"+n+"_":"",r=n?new RegExp("^"+i):null,a=/^[a-zA-Z0-9_\-]*$/;if(!a.test(n))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var o={_namespacePrefix:i,_namespaceRegexp:r,_testStorage:function(u){try{var d="__storejs__test__";u.write(d,d);var m=u.read(d)===d;return u.remove(d),m}catch{return!1}},_assignPluginFnProp:function(u,d){var m=this[d];this[d]=function(){var _=slice$1(arguments,0),v=this;function w(){if(m)return each$8(arguments,function(x,M){_[M]=x}),m.apply(v,_)}var E=[w].concat(_);return u.apply(v,E)}},_serialize:function(u){return JSON.stringify(u)},_deserialize:function(u,d){if(!u)return d;var m="";try{m=JSON.parse(u)}catch{m=u}return m!==void 0?m:d},_addStorage:function(u){this.enabled||this._testStorage(u)&&(this.storage=u,this.enabled=!0)},_addPlugin:function(u){var d=this;if(isList(u)){each$8(u,function(_){d._addPlugin(_)});return}var m=pluck(this.plugins,function(_){return u===_});if(!m){if(this.plugins.push(u),!isFunction$4(u))throw new Error("Plugins must be function values that return objects");var g=u.call(this);if(!isObject$a(g))throw new Error("Plugins must return an object of function properties");each$8(g,function(_,v){if(!isFunction$4(_))throw new Error("Bad plugin property: "+v+" from plugin "+u.name+". Plugins should only return functions.");d._assignPluginFnProp(_,v)})}},addStorage:function(u){_warn("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(u)}},l=create$1(o,storeAPI,{plugins:[]});return l.raw={},each$8(l,function(u,d){isFunction$4(u)&&(l.raw[d]=bind$2(l,u))}),each$8(e,function(u){l._addStorage(u)}),each$8(t,function(u){l._addPlugin(u)}),l}var util$5=util$7,Global$4=util$5.Global,localStorage_1={name:"localStorage",read:read$6,write:write$6,each:each$7,remove:remove$5,clearAll:clearAll$5};function localStorage(){return Global$4.localStorage}function read$6(e){return localStorage().getItem(e)}function write$6(e,t){return localStorage().setItem(e,t)}function each$7(e){for(var t=localStorage().length-1;t>=0;t--){var n=localStorage().key(t);e(read$6(n),n)}}function remove$5(e){return localStorage().removeItem(e)}function clearAll$5(){return localStorage().clear()}var util$4=util$7,Global$3=util$4.Global,oldFFGlobalStorage={name:"oldFF-globalStorage",read:read$5,write:write$5,each:each$6,remove:remove$4,clearAll:clearAll$4},globalStorage=Global$3.globalStorage;function read$5(e){return globalStorage[e]}function write$5(e,t){globalStorage[e]=t}function each$6(e){for(var t=globalStorage.length-1;t>=0;t--){var n=globalStorage.key(t);e(globalStorage[n],n)}}function remove$4(e){return globalStorage.removeItem(e)}function clearAll$4(){each$6(function(e,t){delete globalStorage[e]})}var util$3=util$7,Global$2=util$3.Global,oldIEUserDataStorage={name:"oldIE-userDataStorage",write:write$4,read:read$4,each:each$5,remove:remove$3,clearAll:clearAll$3},storageName="storejs",doc$1=Global$2.document,_withStorageEl=_makeIEStorageElFunction(),disable=(Global$2.navigator?Global$2.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function write$4(e,t){if(!disable){var n=fixKey(e);_withStorageEl(function(i){i.setAttribute(n,t),i.save(storageName)})}}function read$4(e){if(!disable){var t=fixKey(e),n=null;return _withStorageEl(function(i){n=i.getAttribute(t)}),n}}function each$5(e){_withStorageEl(function(t){for(var n=t.XMLDocument.documentElement.attributes,i=n.length-1;i>=0;i--){var r=n[i];e(t.getAttribute(r.name),r.name)}})}function remove$3(e){var t=fixKey(e);_withStorageEl(function(n){n.removeAttribute(t),n.save(storageName)})}function clearAll$3(){_withStorageEl(function(e){var t=e.XMLDocument.documentElement.attributes;e.load(storageName);for(var n=t.length-1;n>=0;n--)e.removeAttribute(t[n].name);e.save(storageName)})}var forbiddenCharsRegex=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function fixKey(e){return e.replace(/^\d/,"___$&").replace(forbiddenCharsRegex,"___")}function _makeIEStorageElFunction(){if(!doc$1||!doc$1.documentElement||!doc$1.documentElement.addBehavior)return null;var e="script",t,n,i;try{n=new ActiveXObject("htmlfile"),n.open(),n.write("<"+e+">document.w=window</"+e+'><iframe src="/favicon.ico"></iframe>'),n.close(),t=n.w.frames[0].document,i=t.createElement("div")}catch{i=doc$1.createElement("div"),t=doc$1.body}return function(r){var a=[].slice.call(arguments,0);a.unshift(i),t.appendChild(i),i.addBehavior("#default#userData"),i.load(storageName),r.apply(this,a),t.removeChild(i)}}var util$2=util$7,Global$1=util$2.Global,trim=util$2.trim,cookieStorage={name:"cookieStorage",read:read$3,write:write$3,each:each$4,remove:remove$2,clearAll:clearAll$2},doc=Global$1.document;function read$3(e){if(!e||!_has(e))return null;var t="(?:^|.*;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(doc.cookie.replace(new RegExp(t),"$1"))}function each$4(e){for(var t=doc.cookie.split(/; ?/g),n=t.length-1;n>=0;n--)if(trim(t[n])){var i=t[n].split("="),r=unescape(i[0]),a=unescape(i[1]);e(a,r)}}function write$3(e,t){e&&(doc.cookie=escape(e)+"="+escape(t)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function remove$2(e){!e||!_has(e)||(doc.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function clearAll$2(){each$4(function(e,t){remove$2(t)})}function _has(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(doc.cookie)}var util$1=util$7,Global=util$1.Global,sessionStorage_1={name:"sessionStorage",read:read$2,write:write$2,each:each$3,remove:remove$1,clearAll:clearAll$1};function sessionStorage(){return Global.sessionStorage}function read$2(e){return sessionStorage().getItem(e)}function write$2(e,t){return sessionStorage().setItem(e,t)}function each$3(e){for(var t=sessionStorage().length-1;t>=0;t--){var n=sessionStorage().key(t);e(read$2(n),n)}}function remove$1(e){return sessionStorage().removeItem(e)}function clearAll$1(){return sessionStorage().clear()}var memoryStorage_1={name:"memoryStorage",read:read$1,write:write$1,each:each$2,remove,clearAll},memoryStorage={};function read$1(e){return memoryStorage[e]}function write$1(e,t){memoryStorage[e]=t}function each$2(e){for(var t in memoryStorage)memoryStorage.hasOwnProperty(t)&&e(memoryStorage[t],t)}function remove(e){delete memoryStorage[e]}function clearAll(e){memoryStorage={}}var all=[localStorage_1,oldFFGlobalStorage,oldIEUserDataStorage,cookieStorage,sessionStorage_1,memoryStorage_1],json2$1={},hasRequiredJson2;function requireJson2(){return hasRequiredJson2||(hasRequiredJson2=1,typeof JSON!="object"&&(JSON={}),function(){var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(e){return e<10?"0"+e:e}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(e){return rx_escapable.lastIndex=0,rx_escapable.test(e)?'"'+e.replace(rx_escapable,function(t){var n=meta[t];return typeof n=="string"?n:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var n,i,r,a,o=gap,l,u=t[e];switch(u&&typeof u=="object"&&typeof u.toJSON=="function"&&(u=u.toJSON(e)),typeof rep=="function"&&(u=rep.call(t,e,u)),typeof u){case"string":return quote(u);case"number":return isFinite(u)?String(u):"null";case"boolean":case"null":return String(u);case"object":if(!u)return"null";if(gap+=indent,l=[],Object.prototype.toString.apply(u)==="[object Array]"){for(a=u.length,n=0;n<a;n+=1)l[n]=str(n,u)||"null";return r=l.length===0?"[]":gap?`[
`+gap+l.join(`,
`+gap)+`
`+o+"]":"["+l.join(",")+"]",gap=o,r}if(rep&&typeof rep=="object")for(a=rep.length,n=0;n<a;n+=1)typeof rep[n]=="string"&&(i=rep[n],r=str(i,u),r&&l.push(quote(i)+(gap?": ":":")+r));else for(i in u)Object.prototype.hasOwnProperty.call(u,i)&&(r=str(i,u),r&&l.push(quote(i)+(gap?": ":":")+r));return r=l.length===0?"{}":gap?`{
`+gap+l.join(`,
`+gap)+`
-`+o+"}":"{"+l.join(",")+"}",gap=o,r}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(e,t,n){var i;if(gap="",indent="",typeof n=="number")for(i=0;i<n;i+=1)indent+=" ";else typeof n=="string"&&(indent=n);if(rep=t,t&&typeof t!="function"&&(typeof t!="object"||typeof t.length!="number"))throw new Error("JSON.stringify");return str("",{"":e})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(e,t){var n,i,r=e[t];if(r&&typeof r=="object")for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i=walk(r,n),i!==void 0?r[n]=i:delete r[n]);return reviver.call(e,t,r)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()),json2$1}var json2=json2Plugin;function json2Plugin(){return requireJson2(),{}}var engine=storeEngine,storages=all,plugins=[json2],store_legacy=engine.createStore(storages,plugins);const store$1=getDefaultExportFromCjs(store_legacy);var util=util$7,bind$1=util.bind,each$1=util.each,create=util.create,slice=util.slice,events=eventsPlugin$1;function eventsPlugin$1(){var e=_newPubSub();return{watch:t,unwatch:n,once:i,set:r,remove:a,clearAll:o};function t(l,u,h){return e.on(u,bind$1(this,h))}function n(l,u){e.off(u)}function i(l,u,h){e.once(u,bind$1(this,h))}function r(l,u,h){var m=this.get(u);l(),e.fire(u,h,m)}function a(l,u){var h=this.get(u);l(),e.fire(u,void 0,h)}function o(l){var u={};this.each(function(h,m){u[m]=h}),l(),each$1(u,function(h,m){e.fire(m,void 0,h)})}}function _newPubSub(){return create(_pubSubBase,{_id:0,_subSignals:{},_subCallbacks:{}})}var _pubSubBase={_id:null,_subCallbacks:null,_subSignals:null,on:function(e,t){return this._subCallbacks[e]||(this._subCallbacks[e]={}),this._id+=1,this._subCallbacks[e][this._id]=t,this._subSignals[this._id]=e,this._id},off:function(e){var t=this._subSignals[e];delete this._subCallbacks[t][e],delete this._subSignals[e]},once:function(e,t){var n=this.on(e,bind$1(this,function(){t.apply(this,arguments),this.off(n)}))},fire:function(e){var t=slice(arguments,1);each$1(this._subCallbacks[e],function(n){n.apply(this,t)})}},eventsPlugin=events,observe=[eventsPlugin,observePlugin];function observePlugin(){return{observe:e,unobserve:t};function e(n,i,r){var a=this.watch(i,r);return r(this.get(i)),a}function t(n,i){this.unwatch(i)}}const observePlugin$1=getDefaultExportFromCjs(observe);var flushPending=!1,flushing=!1,queue=[],lastFlushedIndex=-1;function scheduler(e){queueJob(e)}function queueJob(e){queue.includes(e)||queue.push(e),queueFlush()}function dequeueJob(e){let t=queue.indexOf(e);t!==-1&&t>lastFlushedIndex&&queue.splice(t,1)}function queueFlush(){!flushing&&!flushPending&&(flushPending=!0,queueMicrotask(flushJobs))}function flushJobs(){flushPending=!1,flushing=!0;for(let e=0;e<queue.length;e++)queue[e](),lastFlushedIndex=e;queue.length=0,lastFlushedIndex=-1,flushing=!1}var reactive,effect$3,release,raw,shouldSchedule=!0;function disableEffectScheduling(e){shouldSchedule=!1,e(),shouldSchedule=!0}function setReactivityEngine(e){reactive=e.reactive,release=e.release,effect$3=t=>e.effect(t,{scheduler:n=>{shouldSchedule?scheduler(n):n()}}),raw=e.raw}function overrideEffect(e){effect$3=e}function elementBoundEffect(e){let t=()=>{};return[i=>{let r=effect$3(i);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(a=>a())}),e._x_effects.add(r),t=()=>{r!==void 0&&(e._x_effects.delete(r),release(r))},r},()=>{t()}]}function dispatch(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function walk(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(r=>walk(r,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let i=e.firstElementChild;for(;i;)walk(i,t),i=i.nextElementSibling}function warn(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var started=!1;function start$1(){started&&warn("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),started=!0,document.body||warn("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),dispatch(document,"alpine:init"),dispatch(document,"alpine:initializing"),startObservingMutations(),onElAdded(t=>initTree(t,walk)),onElRemoved(t=>destroyTree(t)),onAttributesAdded((t,n)=>{directives(t,n).forEach(i=>i())});let e=t=>!closestRoot(t.parentElement,!0);Array.from(document.querySelectorAll(allSelectors().join(","))).filter(e).forEach(t=>{initTree(t)}),dispatch(document,"alpine:initialized")}var rootSelectorCallbacks=[],initSelectorCallbacks=[];function rootSelectors(){return rootSelectorCallbacks.map(e=>e())}function allSelectors(){return rootSelectorCallbacks.concat(initSelectorCallbacks).map(e=>e())}function addRootSelector(e){rootSelectorCallbacks.push(e)}function addInitSelector(e){initSelectorCallbacks.push(e)}function closestRoot(e,t=!1){return findClosest(e,n=>{if((t?allSelectors():rootSelectors()).some(r=>n.matches(r)))return!0})}function findClosest(e,t){if(e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),!!e.parentElement)return findClosest(e.parentElement,t)}}function isRoot(e){return rootSelectors().some(t=>e.matches(t))}var initInterceptors=[];function interceptInit(e){initInterceptors.push(e)}function initTree(e,t=walk,n=()=>{}){deferHandlingDirectives(()=>{t(e,(i,r)=>{n(i,r),initInterceptors.forEach(a=>a(i,r)),directives(i,i.attributes).forEach(a=>a()),i._x_ignore&&r()})})}function destroyTree(e){walk(e,t=>{cleanupAttributes(t),cleanupElement(t)})}var onAttributeAddeds=[],onElRemoveds=[],onElAddeds=[];function onElAdded(e){onElAddeds.push(e)}function onElRemoved(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,onElRemoveds.push(t))}function onAttributesAdded(e){onAttributeAddeds.push(e)}function onAttributeRemoved(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function cleanupAttributes(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,i])=>{(t===void 0||t.includes(n))&&(i.forEach(r=>r()),delete e._x_attributeCleanups[n])})}function cleanupElement(e){if(e._x_cleanups)for(;e._x_cleanups.length;)e._x_cleanups.pop()()}var observer=new MutationObserver(onMutate),currentlyObserving=!1;function startObservingMutations(){observer.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),currentlyObserving=!0}function stopObservingMutations(){flushObserver(),observer.disconnect(),currentlyObserving=!1}var recordQueue=[],willProcessRecordQueue=!1;function flushObserver(){recordQueue=recordQueue.concat(observer.takeRecords()),recordQueue.length&&!willProcessRecordQueue&&(willProcessRecordQueue=!0,queueMicrotask(()=>{processRecordQueue(),willProcessRecordQueue=!1}))}function processRecordQueue(){onMutate(recordQueue),recordQueue.length=0}function mutateDom(e){if(!currentlyObserving)return e();stopObservingMutations();let t=e();return startObservingMutations(),t}var isCollecting=!1,deferredMutations=[];function deferMutations(){isCollecting=!0}function flushAndStopDeferringMutations(){isCollecting=!1,onMutate(deferredMutations),deferredMutations=[]}function onMutate(e){if(isCollecting){deferredMutations=deferredMutations.concat(e);return}let t=[],n=[],i=new Map,r=new Map;for(let a=0;a<e.length;a++)if(!e[a].target._x_ignoreMutationObserver&&(e[a].type==="childList"&&(e[a].addedNodes.forEach(o=>o.nodeType===1&&t.push(o)),e[a].removedNodes.forEach(o=>o.nodeType===1&&n.push(o))),e[a].type==="attributes")){let o=e[a].target,l=e[a].attributeName,u=e[a].oldValue,h=()=>{i.has(o)||i.set(o,[]),i.get(o).push({name:l,value:o.getAttribute(l)})},m=()=>{r.has(o)||r.set(o,[]),r.get(o).push(l)};o.hasAttribute(l)&&u===null?h():o.hasAttribute(l)?(m(),h()):m()}r.forEach((a,o)=>{cleanupAttributes(o,a)}),i.forEach((a,o)=>{onAttributeAddeds.forEach(l=>l(o,a))});for(let a of n)t.includes(a)||(onElRemoveds.forEach(o=>o(a)),destroyTree(a));t.forEach(a=>{a._x_ignoreSelf=!0,a._x_ignore=!0});for(let a of t)n.includes(a)||a.isConnected&&(delete a._x_ignoreSelf,delete a._x_ignore,onElAddeds.forEach(o=>o(a)),a._x_ignore=!0,a._x_ignoreSelf=!0);t.forEach(a=>{delete a._x_ignoreSelf,delete a._x_ignore}),t=null,n=null,i=null,r=null}function scope(e){return mergeProxies(closestDataStack(e))}function addScopeToNode(e,t,n){return e._x_dataStack=[t,...closestDataStack(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(i=>i!==t)}}function closestDataStack(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?closestDataStack(e.host):e.parentNode?closestDataStack(e.parentNode):[]}function mergeProxies(e){return new Proxy({objects:e},mergeProxyTrap)}var mergeProxyTrap={ownKeys({objects:e}){return Array.from(new Set(e.flatMap(t=>Object.keys(t))))},has({objects:e},t){return t==Symbol.unscopables?!1:e.some(n=>Object.prototype.hasOwnProperty.call(n,t))},get({objects:e},t,n){return t=="toJSON"?collapseProxies:Reflect.get(e.find(i=>Object.prototype.hasOwnProperty.call(i,t))||{},t,n)},set({objects:e},t,n,i){const r=e.find(o=>Object.prototype.hasOwnProperty.call(o,t))||e[e.length-1],a=Object.getOwnPropertyDescriptor(r,t);return a!=null&&a.set&&(a!=null&&a.get)?Reflect.set(r,t,n,i):Reflect.set(r,t,n)}};function collapseProxies(){return Reflect.ownKeys(this).reduce((t,n)=>(t[n]=Reflect.get(this,n),t),{})}function initInterceptors2(e){let t=i=>typeof i=="object"&&!Array.isArray(i)&&i!==null,n=(i,r="")=>{Object.entries(Object.getOwnPropertyDescriptors(i)).forEach(([a,{value:o,enumerable:l}])=>{if(l===!1||o===void 0)return;let u=r===""?a:`${r}.${a}`;typeof o=="object"&&o!==null&&o._x_interceptor?i[a]=o.initialize(e,u,a):t(o)&&o!==i&&!(o instanceof Element)&&n(o,u)})};return n(e)}function interceptor(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(i,r,a){return e(this.initialValue,()=>get$3(i,r),o=>set$3(i,r,o),r,a)}};return t(n),i=>{if(typeof i=="object"&&i!==null&&i._x_interceptor){let r=n.initialize.bind(n);n.initialize=(a,o,l)=>{let u=i.initialize(a,o,l);return n.initialValue=u,r(a,o,l)}}else n.initialValue=i;return n}}function get$3(e,t){return t.split(".").reduce((n,i)=>n[i],e)}function set$3(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=n;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),set$3(e[t[0]],t.slice(1),n)}}var magics={};function magic(e,t){magics[e]=t}function injectMagics(e,t){return Object.entries(magics).forEach(([n,i])=>{let r=null;function a(){if(r)return r;{let[o,l]=getElementBoundUtilities(t);return r={interceptor,...o},onElRemoved(t,l),r}}Object.defineProperty(e,`$${n}`,{get(){return i(t,a())},enumerable:!1})}),e}function tryCatch(e,t,n,...i){try{return n(...i)}catch(r){handleError(r,e,t)}}function handleError(e,t,n=void 0){Object.assign(e,{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message}
+`+o+"}":"{"+l.join(",")+"}",gap=o,r}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(e,t,n){var i;if(gap="",indent="",typeof n=="number")for(i=0;i<n;i+=1)indent+=" ";else typeof n=="string"&&(indent=n);if(rep=t,t&&typeof t!="function"&&(typeof t!="object"||typeof t.length!="number"))throw new Error("JSON.stringify");return str("",{"":e})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(e,t){var n,i,r=e[t];if(r&&typeof r=="object")for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i=walk(r,n),i!==void 0?r[n]=i:delete r[n]);return reviver.call(e,t,r)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()),json2$1}var json2=json2Plugin;function json2Plugin(){return requireJson2(),{}}var engine=storeEngine,storages=all,plugins=[json2],store_legacy=engine.createStore(storages,plugins);const store$1=getDefaultExportFromCjs(store_legacy);var util=util$7,bind$1=util.bind,each$1=util.each,create=util.create,slice=util.slice,events=eventsPlugin$1;function eventsPlugin$1(){var e=_newPubSub();return{watch:t,unwatch:n,once:i,set:r,remove:a,clearAll:o};function t(l,u,d){return e.on(u,bind$1(this,d))}function n(l,u){e.off(u)}function i(l,u,d){e.once(u,bind$1(this,d))}function r(l,u,d){var m=this.get(u);l(),e.fire(u,d,m)}function a(l,u){var d=this.get(u);l(),e.fire(u,void 0,d)}function o(l){var u={};this.each(function(d,m){u[m]=d}),l(),each$1(u,function(d,m){e.fire(m,void 0,d)})}}function _newPubSub(){return create(_pubSubBase,{_id:0,_subSignals:{},_subCallbacks:{}})}var _pubSubBase={_id:null,_subCallbacks:null,_subSignals:null,on:function(e,t){return this._subCallbacks[e]||(this._subCallbacks[e]={}),this._id+=1,this._subCallbacks[e][this._id]=t,this._subSignals[this._id]=e,this._id},off:function(e){var t=this._subSignals[e];delete this._subCallbacks[t][e],delete this._subSignals[e]},once:function(e,t){var n=this.on(e,bind$1(this,function(){t.apply(this,arguments),this.off(n)}))},fire:function(e){var t=slice(arguments,1);each$1(this._subCallbacks[e],function(n){n.apply(this,t)})}},eventsPlugin=events,observe=[eventsPlugin,observePlugin];function observePlugin(){return{observe:e,unobserve:t};function e(n,i,r){var a=this.watch(i,r);return r(this.get(i)),a}function t(n,i){this.unwatch(i)}}const observePlugin$1=getDefaultExportFromCjs(observe);var flushPending=!1,flushing=!1,queue=[],lastFlushedIndex=-1;function scheduler(e){queueJob(e)}function queueJob(e){queue.includes(e)||queue.push(e),queueFlush()}function dequeueJob(e){let t=queue.indexOf(e);t!==-1&&t>lastFlushedIndex&&queue.splice(t,1)}function queueFlush(){!flushing&&!flushPending&&(flushPending=!0,queueMicrotask(flushJobs))}function flushJobs(){flushPending=!1,flushing=!0;for(let e=0;e<queue.length;e++)queue[e](),lastFlushedIndex=e;queue.length=0,lastFlushedIndex=-1,flushing=!1}var reactive,effect$3,release,raw,shouldSchedule=!0;function disableEffectScheduling(e){shouldSchedule=!1,e(),shouldSchedule=!0}function setReactivityEngine(e){reactive=e.reactive,release=e.release,effect$3=t=>e.effect(t,{scheduler:n=>{shouldSchedule?scheduler(n):n()}}),raw=e.raw}function overrideEffect(e){effect$3=e}function elementBoundEffect(e){let t=()=>{};return[i=>{let r=effect$3(i);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(a=>a())}),e._x_effects.add(r),t=()=>{r!==void 0&&(e._x_effects.delete(r),release(r))},r},()=>{t()}]}function dispatch(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function walk(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(r=>walk(r,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let i=e.firstElementChild;for(;i;)walk(i,t),i=i.nextElementSibling}function warn(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var started=!1;function start$1(){started&&warn("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),started=!0,document.body||warn("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),dispatch(document,"alpine:init"),dispatch(document,"alpine:initializing"),startObservingMutations(),onElAdded(t=>initTree(t,walk)),onElRemoved(t=>destroyTree(t)),onAttributesAdded((t,n)=>{directives(t,n).forEach(i=>i())});let e=t=>!closestRoot(t.parentElement,!0);Array.from(document.querySelectorAll(allSelectors().join(","))).filter(e).forEach(t=>{initTree(t)}),dispatch(document,"alpine:initialized")}var rootSelectorCallbacks=[],initSelectorCallbacks=[];function rootSelectors(){return rootSelectorCallbacks.map(e=>e())}function allSelectors(){return rootSelectorCallbacks.concat(initSelectorCallbacks).map(e=>e())}function addRootSelector(e){rootSelectorCallbacks.push(e)}function addInitSelector(e){initSelectorCallbacks.push(e)}function closestRoot(e,t=!1){return findClosest(e,n=>{if((t?allSelectors():rootSelectors()).some(r=>n.matches(r)))return!0})}function findClosest(e,t){if(e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),!!e.parentElement)return findClosest(e.parentElement,t)}}function isRoot(e){return rootSelectors().some(t=>e.matches(t))}var initInterceptors=[];function interceptInit(e){initInterceptors.push(e)}function initTree(e,t=walk,n=()=>{}){deferHandlingDirectives(()=>{t(e,(i,r)=>{n(i,r),initInterceptors.forEach(a=>a(i,r)),directives(i,i.attributes).forEach(a=>a()),i._x_ignore&&r()})})}function destroyTree(e){walk(e,t=>{cleanupAttributes(t),cleanupElement(t)})}var onAttributeAddeds=[],onElRemoveds=[],onElAddeds=[];function onElAdded(e){onElAddeds.push(e)}function onElRemoved(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,onElRemoveds.push(t))}function onAttributesAdded(e){onAttributeAddeds.push(e)}function onAttributeRemoved(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function cleanupAttributes(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,i])=>{(t===void 0||t.includes(n))&&(i.forEach(r=>r()),delete e._x_attributeCleanups[n])})}function cleanupElement(e){if(e._x_cleanups)for(;e._x_cleanups.length;)e._x_cleanups.pop()()}var observer=new MutationObserver(onMutate),currentlyObserving=!1;function startObservingMutations(){observer.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),currentlyObserving=!0}function stopObservingMutations(){flushObserver(),observer.disconnect(),currentlyObserving=!1}var recordQueue=[],willProcessRecordQueue=!1;function flushObserver(){recordQueue=recordQueue.concat(observer.takeRecords()),recordQueue.length&&!willProcessRecordQueue&&(willProcessRecordQueue=!0,queueMicrotask(()=>{processRecordQueue(),willProcessRecordQueue=!1}))}function processRecordQueue(){onMutate(recordQueue),recordQueue.length=0}function mutateDom(e){if(!currentlyObserving)return e();stopObservingMutations();let t=e();return startObservingMutations(),t}var isCollecting=!1,deferredMutations=[];function deferMutations(){isCollecting=!0}function flushAndStopDeferringMutations(){isCollecting=!1,onMutate(deferredMutations),deferredMutations=[]}function onMutate(e){if(isCollecting){deferredMutations=deferredMutations.concat(e);return}let t=[],n=[],i=new Map,r=new Map;for(let a=0;a<e.length;a++)if(!e[a].target._x_ignoreMutationObserver&&(e[a].type==="childList"&&(e[a].addedNodes.forEach(o=>o.nodeType===1&&t.push(o)),e[a].removedNodes.forEach(o=>o.nodeType===1&&n.push(o))),e[a].type==="attributes")){let o=e[a].target,l=e[a].attributeName,u=e[a].oldValue,d=()=>{i.has(o)||i.set(o,[]),i.get(o).push({name:l,value:o.getAttribute(l)})},m=()=>{r.has(o)||r.set(o,[]),r.get(o).push(l)};o.hasAttribute(l)&&u===null?d():o.hasAttribute(l)?(m(),d()):m()}r.forEach((a,o)=>{cleanupAttributes(o,a)}),i.forEach((a,o)=>{onAttributeAddeds.forEach(l=>l(o,a))});for(let a of n)t.includes(a)||(onElRemoveds.forEach(o=>o(a)),destroyTree(a));t.forEach(a=>{a._x_ignoreSelf=!0,a._x_ignore=!0});for(let a of t)n.includes(a)||a.isConnected&&(delete a._x_ignoreSelf,delete a._x_ignore,onElAddeds.forEach(o=>o(a)),a._x_ignore=!0,a._x_ignoreSelf=!0);t.forEach(a=>{delete a._x_ignoreSelf,delete a._x_ignore}),t=null,n=null,i=null,r=null}function scope(e){return mergeProxies(closestDataStack(e))}function addScopeToNode(e,t,n){return e._x_dataStack=[t,...closestDataStack(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(i=>i!==t)}}function closestDataStack(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?closestDataStack(e.host):e.parentNode?closestDataStack(e.parentNode):[]}function mergeProxies(e){return new Proxy({objects:e},mergeProxyTrap)}var mergeProxyTrap={ownKeys({objects:e}){return Array.from(new Set(e.flatMap(t=>Object.keys(t))))},has({objects:e},t){return t==Symbol.unscopables?!1:e.some(n=>Object.prototype.hasOwnProperty.call(n,t))},get({objects:e},t,n){return t=="toJSON"?collapseProxies:Reflect.get(e.find(i=>Object.prototype.hasOwnProperty.call(i,t))||{},t,n)},set({objects:e},t,n,i){const r=e.find(o=>Object.prototype.hasOwnProperty.call(o,t))||e[e.length-1],a=Object.getOwnPropertyDescriptor(r,t);return a!=null&&a.set&&(a!=null&&a.get)?Reflect.set(r,t,n,i):Reflect.set(r,t,n)}};function collapseProxies(){return Reflect.ownKeys(this).reduce((t,n)=>(t[n]=Reflect.get(this,n),t),{})}function initInterceptors2(e){let t=i=>typeof i=="object"&&!Array.isArray(i)&&i!==null,n=(i,r="")=>{Object.entries(Object.getOwnPropertyDescriptors(i)).forEach(([a,{value:o,enumerable:l}])=>{if(l===!1||o===void 0)return;let u=r===""?a:`${r}.${a}`;typeof o=="object"&&o!==null&&o._x_interceptor?i[a]=o.initialize(e,u,a):t(o)&&o!==i&&!(o instanceof Element)&&n(o,u)})};return n(e)}function interceptor(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(i,r,a){return e(this.initialValue,()=>get$3(i,r),o=>set$3(i,r,o),r,a)}};return t(n),i=>{if(typeof i=="object"&&i!==null&&i._x_interceptor){let r=n.initialize.bind(n);n.initialize=(a,o,l)=>{let u=i.initialize(a,o,l);return n.initialValue=u,r(a,o,l)}}else n.initialValue=i;return n}}function get$3(e,t){return t.split(".").reduce((n,i)=>n[i],e)}function set$3(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=n;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),set$3(e[t[0]],t.slice(1),n)}}var magics={};function magic(e,t){magics[e]=t}function injectMagics(e,t){return Object.entries(magics).forEach(([n,i])=>{let r=null;function a(){if(r)return r;{let[o,l]=getElementBoundUtilities(t);return r={interceptor,...o},onElRemoved(t,l),r}}Object.defineProperty(e,`$${n}`,{get(){return i(t,a())},enumerable:!1})}),e}function tryCatch(e,t,n,...i){try{return n(...i)}catch(r){handleError(r,e,t)}}function handleError(e,t,n=void 0){Object.assign(e,{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message}
${n?'Expression: "'+n+`"
-`:""}`,t),setTimeout(()=>{throw e},0)}var shouldAutoEvaluateFunctions=!0;function dontAutoEvaluateFunctions(e){let t=shouldAutoEvaluateFunctions;shouldAutoEvaluateFunctions=!1;let n=e();return shouldAutoEvaluateFunctions=t,n}function evaluate(e,t,n={}){let i;return evaluateLater(e,t)(r=>i=r,n),i}function evaluateLater(...e){return theEvaluatorFunction(...e)}var theEvaluatorFunction=normalEvaluator;function setEvaluator(e){theEvaluatorFunction=e}function normalEvaluator(e,t){let n={};injectMagics(n,e);let i=[n,...closestDataStack(e)],r=typeof t=="function"?generateEvaluatorFromFunction(i,t):generateEvaluatorFromString(i,t,e);return tryCatch.bind(null,e,t,r)}function generateEvaluatorFromFunction(e,t){return(n=()=>{},{scope:i={},params:r=[]}={})=>{let a=t.apply(mergeProxies([i,...e]),r);runIfTypeOfFunction(n,a)}}var evaluatorMemo={};function generateFunctionFromString(e,t){if(evaluatorMemo[e])return evaluatorMemo[e];let n=Object.getPrototypeOf(async function(){}).constructor,i=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,a=(()=>{try{let o=new n(["__self","scope"],`with (scope) { __self.result = ${i} }; __self.finished = true; return __self.result;`);return Object.defineProperty(o,"name",{value:`[Alpine] ${e}`}),o}catch(o){return handleError(o,t,e),Promise.resolve()}})();return evaluatorMemo[e]=a,a}function generateEvaluatorFromString(e,t,n){let i=generateFunctionFromString(t,n);return(r=()=>{},{scope:a={},params:o=[]}={})=>{i.result=void 0,i.finished=!1;let l=mergeProxies([a,...e]);if(typeof i=="function"){let u=i(i,l).catch(h=>handleError(h,n,t));i.finished?(runIfTypeOfFunction(r,i.result,l,o,n),i.result=void 0):u.then(h=>{runIfTypeOfFunction(r,h,l,o,n)}).catch(h=>handleError(h,n,t)).finally(()=>i.result=void 0)}}}function runIfTypeOfFunction(e,t,n,i,r){if(shouldAutoEvaluateFunctions&&typeof t=="function"){let a=t.apply(n,i);a instanceof Promise?a.then(o=>runIfTypeOfFunction(e,o,n,i)).catch(o=>handleError(o,r,t)):e(a)}else typeof t=="object"&&t instanceof Promise?t.then(a=>e(a)):e(t)}var prefixAsString="x-";function prefix(e=""){return prefixAsString+e}function setPrefix(e){prefixAsString=e}var directiveHandlers={};function directive(e,t){return directiveHandlers[e]=t,{before(n){if(!directiveHandlers[n]){console.warn("Cannot find directive `${directive}`. `${name}` will use the default order of execution");return}const i=directiveOrder.indexOf(n);directiveOrder.splice(i>=0?i:directiveOrder.indexOf("DEFAULT"),0,e)}}}function directives(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let a=Object.entries(e._x_virtualDirectives).map(([l,u])=>({name:l,value:u})),o=attributesOnly(a);a=a.map(l=>o.find(u=>u.name===l.name)?{name:`x-bind:${l.name}`,value:`"${l.value}"`}:l),t=t.concat(a)}let i={};return t.map(toTransformedAttributes((a,o)=>i[a]=o)).filter(outNonAlpineAttributes).map(toParsedDirectives(i,n)).sort(byPriority).map(a=>getDirectiveHandler(e,a))}function attributesOnly(e){return Array.from(e).map(toTransformedAttributes()).filter(t=>!outNonAlpineAttributes(t))}var isDeferringHandlers=!1,directiveHandlerStacks=new Map,currentHandlerStackKey=Symbol();function deferHandlingDirectives(e){isDeferringHandlers=!0;let t=Symbol();currentHandlerStackKey=t,directiveHandlerStacks.set(t,[]);let n=()=>{for(;directiveHandlerStacks.get(t).length;)directiveHandlerStacks.get(t).shift()();directiveHandlerStacks.delete(t)},i=()=>{isDeferringHandlers=!1,n()};e(n),i()}function getElementBoundUtilities(e){let t=[],n=l=>t.push(l),[i,r]=elementBoundEffect(e);return t.push(r),[{Alpine:alpine_default,effect:i,cleanup:n,evaluateLater:evaluateLater.bind(evaluateLater,e),evaluate:evaluate.bind(evaluate,e)},()=>t.forEach(l=>l())]}function getDirectiveHandler(e,t){let n=()=>{},i=directiveHandlers[t.type]||n,[r,a]=getElementBoundUtilities(e);onAttributeRemoved(e,t.original,a);let o=()=>{e._x_ignore||e._x_ignoreSelf||(i.inline&&i.inline(e,t,r),i=i.bind(i,e,t,r),isDeferringHandlers?directiveHandlerStacks.get(currentHandlerStackKey).push(i):i())};return o.runCleanups=a,o}var startingWith=(e,t)=>({name:n,value:i})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:i}),into=e=>e;function toTransformedAttributes(e=()=>{}){return({name:t,value:n})=>{let{name:i,value:r}=attributeTransformers.reduce((a,o)=>o(a),{name:t,value:n});return i!==t&&e(i,t),{name:i,value:r}}}var attributeTransformers=[];function mapAttributes(e){attributeTransformers.push(e)}function outNonAlpineAttributes({name:e}){return alpineAttributeRegex().test(e)}var alpineAttributeRegex=()=>new RegExp(`^${prefixAsString}([^:^.]+)\\b`);function toParsedDirectives(e,t){return({name:n,value:i})=>{let r=n.match(alpineAttributeRegex()),a=n.match(/:([a-zA-Z0-9\-_:]+)/),o=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],l=t||e[n]||n;return{type:r?r[1]:null,value:a?a[1]:null,modifiers:o.map(u=>u.replace(".","")),expression:i,original:l}}}var DEFAULT="DEFAULT",directiveOrder=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",DEFAULT,"teleport"];function byPriority(e,t){let n=directiveOrder.indexOf(e.type)===-1?DEFAULT:e.type,i=directiveOrder.indexOf(t.type)===-1?DEFAULT:t.type;return directiveOrder.indexOf(n)-directiveOrder.indexOf(i)}var tickStack=[],isHolding=!1;function nextTick(e=()=>{}){return queueMicrotask(()=>{isHolding||setTimeout(()=>{releaseNextTicks()})}),new Promise(t=>{tickStack.push(()=>{e(),t()})})}function releaseNextTicks(){for(isHolding=!1;tickStack.length;)tickStack.shift()()}function holdNextTicks(){isHolding=!0}function setClasses(e,t){return Array.isArray(t)?setClassesFromString(e,t.join(" ")):typeof t=="object"&&t!==null?setClassesFromObject(e,t):typeof t=="function"?setClasses(e,t()):setClassesFromString(e,t)}function setClassesFromString(e,t){let n=r=>r.split(" ").filter(a=>!e.classList.contains(a)).filter(Boolean),i=r=>(e.classList.add(...r),()=>{e.classList.remove(...r)});return t=t===!0?t="":t||"",i(n(t))}function setClassesFromObject(e,t){let n=l=>l.split(" ").filter(Boolean),i=Object.entries(t).flatMap(([l,u])=>u?n(l):!1).filter(Boolean),r=Object.entries(t).flatMap(([l,u])=>u?!1:n(l)).filter(Boolean),a=[],o=[];return r.forEach(l=>{e.classList.contains(l)&&(e.classList.remove(l),o.push(l))}),i.forEach(l=>{e.classList.contains(l)||(e.classList.add(l),a.push(l))}),()=>{o.forEach(l=>e.classList.add(l)),a.forEach(l=>e.classList.remove(l))}}function setStyles(e,t){return typeof t=="object"&&t!==null?setStylesFromObject(e,t):setStylesFromString(e,t)}function setStylesFromObject(e,t){let n={};return Object.entries(t).forEach(([i,r])=>{n[i]=e.style[i],i.startsWith("--")||(i=kebabCase(i)),e.style.setProperty(i,r)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{setStyles(e,n)}}function setStylesFromString(e,t){let n=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",n||"")}}function kebabCase(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function once(e,t=()=>{}){let n=!1;return function(){n?t.apply(this,arguments):(n=!0,e.apply(this,arguments))}}directive("transition",(e,{value:t,modifiers:n,expression:i},{evaluate:r})=>{typeof i=="function"&&(i=r(i)),i!==!1&&(!i||typeof i=="boolean"?registerTransitionsFromHelper(e,n,t):registerTransitionsFromClassString(e,i,t))});function registerTransitionsFromClassString(e,t,n){registerTransitionObject(e,setClasses,""),{enter:r=>{e._x_transition.enter.during=r},"enter-start":r=>{e._x_transition.enter.start=r},"enter-end":r=>{e._x_transition.enter.end=r},leave:r=>{e._x_transition.leave.during=r},"leave-start":r=>{e._x_transition.leave.start=r},"leave-end":r=>{e._x_transition.leave.end=r}}[n](t)}function registerTransitionsFromHelper(e,t,n){registerTransitionObject(e,setStyles);let i=!t.includes("in")&&!t.includes("out")&&!n,r=i||t.includes("in")||["enter"].includes(n),a=i||t.includes("out")||["leave"].includes(n);t.includes("in")&&!i&&(t=t.filter((M,T)=>T<t.indexOf("out"))),t.includes("out")&&!i&&(t=t.filter((M,T)=>T>t.indexOf("out")));let o=!t.includes("opacity")&&!t.includes("scale"),l=o||t.includes("opacity"),u=o||t.includes("scale"),h=l?0:1,m=u?modifierValue(t,"scale",95)/100:1,g=modifierValue(t,"delay",0)/1e3,_=modifierValue(t,"origin","center"),v="opacity, transform",w=modifierValue(t,"duration",150)/1e3,$=modifierValue(t,"duration",75)/1e3,x="cubic-bezier(0.4, 0.0, 0.2, 1)";r&&(e._x_transition.enter.during={transformOrigin:_,transitionDelay:`${g}s`,transitionProperty:v,transitionDuration:`${w}s`,transitionTimingFunction:x},e._x_transition.enter.start={opacity:h,transform:`scale(${m})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),a&&(e._x_transition.leave.during={transformOrigin:_,transitionDelay:`${g}s`,transitionProperty:v,transitionDuration:`${$}s`,transitionTimingFunction:x},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:h,transform:`scale(${m})`})}function registerTransitionObject(e,t,n={}){e._x_transition||(e._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(i=()=>{},r=()=>{}){transition(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},i,r)},out(i=()=>{},r=()=>{}){transition(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},i,r)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,n,i){const r=document.visibilityState==="visible"?requestAnimationFrame:setTimeout;let a=()=>r(n);if(t){e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(n):a():e._x_transition?e._x_transition.in(n):a();return}e._x_hidePromise=e._x_transition?new Promise((o,l)=>{e._x_transition.out(()=>{},()=>o(i)),e._x_transitioning&&e._x_transitioning.beforeCancel(()=>l({isFromCancelledTransition:!0}))}):Promise.resolve(i),queueMicrotask(()=>{let o=closestHide(e);o?(o._x_hideChildren||(o._x_hideChildren=[]),o._x_hideChildren.push(e)):r(()=>{let l=u=>{let h=Promise.all([u._x_hidePromise,...(u._x_hideChildren||[]).map(l)]).then(([m])=>m());return delete u._x_hidePromise,delete u._x_hideChildren,h};l(e).catch(u=>{if(!u.isFromCancelledTransition)throw u})})})};function closestHide(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:closestHide(t)}function transition(e,t,{during:n,start:i,end:r}={},a=()=>{},o=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(n).length===0&&Object.keys(i).length===0&&Object.keys(r).length===0){a(),o();return}let l,u,h;performTransition(e,{start(){l=t(e,i)},during(){u=t(e,n)},before:a,end(){l(),h=t(e,r)},after:o,cleanup(){u(),h()}})}function performTransition(e,t){let n,i,r,a=once(()=>{mutateDom(()=>{n=!0,i||t.before(),r||(t.end(),releaseNextTicks()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(o){this.beforeCancels.push(o)},cancel:once(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();a()}),finish:a},mutateDom(()=>{t.start(),t.during()}),holdNextTicks(),requestAnimationFrame(()=>{if(n)return;let o=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,l=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;o===0&&(o=Number(getComputedStyle(e).animationDuration.replace("s",""))*1e3),mutateDom(()=>{t.before()}),i=!0,requestAnimationFrame(()=>{n||(mutateDom(()=>{t.end()}),releaseNextTicks(),setTimeout(e._x_transitioning.finish,o+l),r=!0)})})}function modifierValue(e,t,n){if(e.indexOf(t)===-1)return n;const i=e[e.indexOf(t)+1];if(!i||t==="scale"&&isNaN(i))return n;if(t==="duration"||t==="delay"){let r=i.match(/([0-9]+)ms/);if(r)return r[1]}return t==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[i,e[e.indexOf(t)+2]].join(" "):i}var isCloning=!1;function skipDuringClone(e,t=()=>{}){return(...n)=>isCloning?t(...n):e(...n)}function onlyDuringClone(e){return(...t)=>isCloning&&e(...t)}var interceptors=[];function interceptClone(e){interceptors.push(e)}function cloneNode(e,t){interceptors.forEach(n=>n(e,t)),isCloning=!0,dontRegisterReactiveSideEffects(()=>{initTree(t,(n,i)=>{i(n,()=>{})})}),isCloning=!1}var isCloningLegacy=!1;function clone$3(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),isCloning=!0,isCloningLegacy=!0,dontRegisterReactiveSideEffects(()=>{cloneTree(t)}),isCloning=!1,isCloningLegacy=!1}function cloneTree(e){let t=!1;initTree(e,(i,r)=>{walk(i,(a,o)=>{if(t&&isRoot(a))return o();t=!0,r(a,o)})})}function dontRegisterReactiveSideEffects(e){let t=effect$3;overrideEffect((n,i)=>{let r=t(n);return release(r),()=>{}}),e(),overrideEffect(t)}function bind(e,t,n,i=[]){switch(e._x_bindings||(e._x_bindings=reactive({})),e._x_bindings[t]=n,t=i.includes("camel")?camelCase$2(t):t,t){case"value":bindInputValue(e,n);break;case"style":bindStyles(e,n);break;case"class":bindClasses(e,n);break;case"selected":case"checked":bindAttributeAndProperty(e,t,n);break;default:bindAttribute(e,t,n);break}}function bindInputValue(e,t){if(e.type==="radio")e.attributes.value===void 0&&(e.value=t),window.fromModel&&(typeof t=="boolean"?e.checked=safeParseBoolean(e.value)===t:e.checked=checkedAttrLooseCompare(e.value,t));else if(e.type==="checkbox")Number.isInteger(t)?e.value=t:!Array.isArray(t)&&typeof t!="boolean"&&![null,void 0].includes(t)?e.value=String(t):Array.isArray(t)?e.checked=t.some(n=>checkedAttrLooseCompare(n,e.value)):e.checked=!!t;else if(e.tagName==="SELECT")updateSelect(e,t);else{if(e.value===t)return;e.value=t===void 0?"":t}}function bindClasses(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=setClasses(e,t)}function bindStyles(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=setStyles(e,t)}function bindAttributeAndProperty(e,t,n){bindAttribute(e,t,n),setPropertyIfChanged(e,t,n)}function bindAttribute(e,t,n){[null,void 0,!1].includes(n)&&attributeShouldntBePreservedIfFalsy(t)?e.removeAttribute(t):(isBooleanAttr(t)&&(n=t),setIfChanged(e,t,n))}function setIfChanged(e,t,n){e.getAttribute(t)!=n&&e.setAttribute(t,n)}function setPropertyIfChanged(e,t,n){e[t]!==n&&(e[t]=n)}function updateSelect(e,t){const n=[].concat(t).map(i=>i+"");Array.from(e.options).forEach(i=>{i.selected=n.includes(i.value)})}function camelCase$2(e){return e.toLowerCase().replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function checkedAttrLooseCompare(e,t){return e==t}function safeParseBoolean(e){return[1,"1","true","on","yes",!0].includes(e)?!0:[0,"0","false","off","no",!1].includes(e)?!1:e?!!e:null}function isBooleanAttr(e){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(e)}function attributeShouldntBePreservedIfFalsy(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}function getBinding(e,t,n){return e._x_bindings&&e._x_bindings[t]!==void 0?e._x_bindings[t]:getAttributeBinding(e,t,n)}function extractProp(e,t,n,i=!0){if(e._x_bindings&&e._x_bindings[t]!==void 0)return e._x_bindings[t];if(e._x_inlineBindings&&e._x_inlineBindings[t]!==void 0){let r=e._x_inlineBindings[t];return r.extract=i,dontAutoEvaluateFunctions(()=>evaluate(e,r.expression))}return getAttributeBinding(e,t,n)}function getAttributeBinding(e,t,n){let i=e.getAttribute(t);return i===null?typeof n=="function"?n():n:i===""?!0:isBooleanAttr(t)?!![t,"true"].includes(i):i}function debounce$3(e,t){var n;return function(){var i=this,r=arguments,a=function(){n=null,e.apply(i,r)};clearTimeout(n),n=setTimeout(a,t)}}function throttle(e,t){let n;return function(){let i=this,r=arguments;n||(e.apply(i,r),n=!0,setTimeout(()=>n=!1,t))}}function entangle({get:e,set:t},{get:n,set:i}){let r=!0,a,o=effect$3(()=>{const l=e(),u=n();if(r)i(cloneIfObject(l)),r=!1,a=JSON.stringify(l);else{const h=JSON.stringify(l);h!==a?(i(cloneIfObject(l)),a=h):(t(cloneIfObject(u)),a=JSON.stringify(u))}JSON.stringify(n()),JSON.stringify(e())});return()=>{release(o)}}function cloneIfObject(e){return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function plugin(e){(Array.isArray(e)?e:[e]).forEach(n=>n(alpine_default))}var stores={},isReactive=!1;function store(e,t){if(isReactive||(stores=reactive(stores),isReactive=!0),t===void 0)return stores[e];stores[e]=t,typeof t=="object"&&t!==null&&t.hasOwnProperty("init")&&typeof t.init=="function"&&stores[e].init(),initInterceptors2(stores[e])}function getStores(){return stores}var binds={};function bind2(e,t){let n=typeof t!="function"?()=>t:t;return e instanceof Element?applyBindingsObject(e,n()):(binds[e]=n,()=>{})}function injectBindingProviders(e){return Object.entries(binds).forEach(([t,n])=>{Object.defineProperty(e,t,{get(){return(...i)=>n(...i)}})}),e}function applyBindingsObject(e,t,n){let i=[];for(;i.length;)i.pop()();let r=Object.entries(t).map(([o,l])=>({name:o,value:l})),a=attributesOnly(r);return r=r.map(o=>a.find(l=>l.name===o.name)?{name:`x-bind:${o.name}`,value:`"${o.value}"`}:o),directives(e,r,n).map(o=>{i.push(o.runCleanups),o()}),()=>{for(;i.length;)i.pop()()}}var datas={};function data(e,t){datas[e]=t}function injectDataProviders(e,t){return Object.entries(datas).forEach(([n,i])=>{Object.defineProperty(e,n,{get(){return(...r)=>i.bind(t)(...r)},enumerable:!1})}),e}var Alpine={get reactive(){return reactive},get release(){return release},get effect(){return effect$3},get raw(){return raw},version:"3.13.3",flushAndStopDeferringMutations,dontAutoEvaluateFunctions,disableEffectScheduling,startObservingMutations,stopObservingMutations,setReactivityEngine,onAttributeRemoved,onAttributesAdded,closestDataStack,skipDuringClone,onlyDuringClone,addRootSelector,addInitSelector,interceptClone,addScopeToNode,deferMutations,mapAttributes,evaluateLater,interceptInit,setEvaluator,mergeProxies,extractProp,findClosest,onElRemoved,closestRoot,destroyTree,interceptor,transition,setStyles,mutateDom,directive,entangle,throttle,debounce:debounce$3,evaluate,initTree,nextTick,prefixed:prefix,prefix:setPrefix,plugin,magic,store,start:start$1,clone:clone$3,cloneNode,bound:getBinding,$data:scope,walk,data,bind:bind2},alpine_default=Alpine;function makeMap(e,t){const n=Object.create(null),i=e.split(",");for(let r=0;r<i.length;r++)n[i[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}var EMPTY_OBJ=Object.freeze({}),hasOwnProperty$b=Object.prototype.hasOwnProperty,hasOwn=(e,t)=>hasOwnProperty$b.call(e,t),isArray$c=Array.isArray,isMap=e=>toTypeString(e)==="[object Map]",isString=e=>typeof e=="string",isSymbol$6=e=>typeof e=="symbol",isObject$9=e=>e!==null&&typeof e=="object",objectToString$2=Object.prototype.toString,toTypeString=e=>objectToString$2.call(e),toRawType=e=>toTypeString(e).slice(8,-1),isIntegerKey=e=>isString(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,cacheStringFunction=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},capitalize$2=cacheStringFunction(e=>e.charAt(0).toUpperCase()+e.slice(1)),hasChanged=(e,t)=>e!==t&&(e===e||t===t),targetMap=new WeakMap,effectStack=[],activeEffect,ITERATE_KEY=Symbol("iterate"),MAP_KEY_ITERATE_KEY=Symbol("Map key iterate");function isEffect(e){return e&&e._isEffect===!0}function effect2(e,t=EMPTY_OBJ){isEffect(e)&&(e=e.raw);const n=createReactiveEffect(e,t);return t.lazy||n(),n}function stop(e){e.active&&(cleanup(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var uid$1=0;function createReactiveEffect(e,t){const n=function(){if(!n.active)return e();if(!effectStack.includes(n)){cleanup(n);try{return enableTracking(),effectStack.push(n),activeEffect=n,e()}finally{effectStack.pop(),resetTracking(),activeEffect=effectStack[effectStack.length-1]}}};return n.id=uid$1++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}function cleanup(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}var shouldTrack=!0,trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function enableTracking(){trackStack.push(shouldTrack),shouldTrack=!0}function resetTracking(){const e=trackStack.pop();shouldTrack=e===void 0?!0:e}function track(e,t,n){if(!shouldTrack||activeEffect===void 0)return;let i=targetMap.get(e);i||targetMap.set(e,i=new Map);let r=i.get(n);r||i.set(n,r=new Set),r.has(activeEffect)||(r.add(activeEffect),activeEffect.deps.push(r),activeEffect.options.onTrack&&activeEffect.options.onTrack({effect:activeEffect,target:e,type:t,key:n}))}function trigger(e,t,n,i,r,a){const o=targetMap.get(e);if(!o)return;const l=new Set,u=m=>{m&&m.forEach(g=>{(g!==activeEffect||g.allowRecurse)&&l.add(g)})};if(t==="clear")o.forEach(u);else if(n==="length"&&isArray$c(e))o.forEach((m,g)=>{(g==="length"||g>=i)&&u(m)});else switch(n!==void 0&&u(o.get(n)),t){case"add":isArray$c(e)?isIntegerKey(n)&&u(o.get("length")):(u(o.get(ITERATE_KEY)),isMap(e)&&u(o.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$c(e)||(u(o.get(ITERATE_KEY)),isMap(e)&&u(o.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(e)&&u(o.get(ITERATE_KEY));break}const h=m=>{m.options.onTrigger&&m.options.onTrigger({effect:m,target:e,key:n,type:t,newValue:i,oldValue:r,oldTarget:a}),m.options.scheduler?m.options.scheduler(m):m()};l.forEach(h)}var isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(isSymbol$6)),get2=createGetter(),readonlyGet=createGetter(!0),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=toRaw(this);for(let a=0,o=this.length;a<o;a++)track(i,"get",a+"");const r=i[t](...n);return r===-1||r===!1?i[t](...n.map(toRaw)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){pauseTracking();const i=toRaw(this)[t].apply(this,n);return resetTracking(),i}}),e}function createGetter(e=!1,t=!1){return function(i,r,a){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_raw"&&a===(e?t?shallowReadonlyMap:readonlyMap:t?shallowReactiveMap:reactiveMap).get(i))return i;const o=isArray$c(i);if(!e&&o&&hasOwn(arrayInstrumentations,r))return Reflect.get(arrayInstrumentations,r,a);const l=Reflect.get(i,r,a);return(isSymbol$6(r)?builtInSymbols.has(r):isNonTrackableKeys(r))||(e||track(i,"get",r),t)?l:isRef(l)?!o||!isIntegerKey(r)?l.value:l:isObject$9(l)?e?readonly(l):reactive2(l):l}}var set2=createSetter();function createSetter(e=!1){return function(n,i,r,a){let o=n[i];if(!e&&(r=toRaw(r),o=toRaw(o),!isArray$c(n)&&isRef(o)&&!isRef(r)))return o.value=r,!0;const l=isArray$c(n)&&isIntegerKey(i)?Number(i)<n.length:hasOwn(n,i),u=Reflect.set(n,i,r,a);return n===toRaw(a)&&(l?hasChanged(r,o)&&trigger(n,"set",i,r,o):trigger(n,"add",i,r)),u}}function deleteProperty(e,t){const n=hasOwn(e,t),i=e[t],r=Reflect.deleteProperty(e,t);return r&&n&&trigger(e,"delete",t,void 0,i),r}function has$2(e,t){const n=Reflect.has(e,t);return(!isSymbol$6(t)||!builtInSymbols.has(t))&&track(e,"has",t),n}function ownKeys(e){return track(e,"iterate",isArray$c(e)?"length":ITERATE_KEY),Reflect.ownKeys(e)}var mutableHandlers={get:get2,set:set2,deleteProperty,has:has$2,ownKeys},readonlyHandlers={get:readonlyGet,set(e,t){return console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},toReactive=e=>isObject$9(e)?reactive2(e):e,toReadonly=e=>isObject$9(e)?readonly(e):e,toShallow=e=>e,getProto=e=>Reflect.getPrototypeOf(e);function get$1$1(e,t,n=!1,i=!1){e=e.__v_raw;const r=toRaw(e),a=toRaw(t);t!==a&&!n&&track(r,"get",t),!n&&track(r,"get",a);const{has:o}=getProto(r),l=i?toShallow:n?toReadonly:toReactive;if(o.call(r,t))return l(e.get(t));if(o.call(r,a))return l(e.get(a));e!==r&&e.get(t)}function has$1$1(e,t=!1){const n=this.__v_raw,i=toRaw(n),r=toRaw(e);return e!==r&&!t&&track(i,"has",e),!t&&track(i,"has",r),e===r?n.has(e):n.has(e)||n.has(r)}function size(e,t=!1){return e=e.__v_raw,!t&&track(toRaw(e),"iterate",ITERATE_KEY),Reflect.get(e,"size",e)}function add(e){e=toRaw(e);const t=toRaw(this);return getProto(t).has.call(t,e)||(t.add(e),trigger(t,"add",e,e)),this}function set$1$1(e,t){t=toRaw(t);const n=toRaw(this),{has:i,get:r}=getProto(n);let a=i.call(n,e);a?checkIdentityKeys(n,i,e):(e=toRaw(e),a=i.call(n,e));const o=r.call(n,e);return n.set(e,t),a?hasChanged(t,o)&&trigger(n,"set",e,t,o):trigger(n,"add",e,t),this}function deleteEntry(e){const t=toRaw(this),{has:n,get:i}=getProto(t);let r=n.call(t,e);r?checkIdentityKeys(t,n,e):(e=toRaw(e),r=n.call(t,e));const a=i?i.call(t,e):void 0,o=t.delete(e);return r&&trigger(t,"delete",e,void 0,a),o}function clear(){const e=toRaw(this),t=e.size!==0,n=isMap(e)?new Map(e):new Set(e),i=e.clear();return t&&trigger(e,"clear",void 0,void 0,n),i}function createForEach(e,t){return function(i,r){const a=this,o=a.__v_raw,l=toRaw(o),u=t?toShallow:e?toReadonly:toReactive;return!e&&track(l,"iterate",ITERATE_KEY),o.forEach((h,m)=>i.call(r,u(h),u(m),a))}}function createIterableMethod(e,t,n){return function(...i){const r=this.__v_raw,a=toRaw(r),o=isMap(a),l=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,h=r[e](...i),m=n?toShallow:t?toReadonly:toReactive;return!t&&track(a,"iterate",u?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:g,done:_}=h.next();return _?{value:g,done:_}:{value:l?[m(g[0]),m(g[1])]:m(g),done:_}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${capitalize$2(e)} operation ${n}failed: target is readonly.`,toRaw(this))}return e==="delete"?!1:this}}function createInstrumentations(){const e={get(a){return get$1$1(this,a)},get size(){return size(this)},has:has$1$1,add,set:set$1$1,delete:deleteEntry,clear,forEach:createForEach(!1,!1)},t={get(a){return get$1$1(this,a,!1,!0)},get size(){return size(this)},has:has$1$1,add,set:set$1$1,delete:deleteEntry,clear,forEach:createForEach(!1,!0)},n={get(a){return get$1$1(this,a,!0)},get size(){return size(this,!0)},has(a){return has$1$1.call(this,a,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},i={get(a){return get$1$1(this,a,!0,!0)},get size(){return size(this,!0)},has(a){return has$1$1.call(this,a,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=createIterableMethod(a,!1,!1),n[a]=createIterableMethod(a,!0,!1),t[a]=createIterableMethod(a,!1,!0),i[a]=createIterableMethod(a,!0,!0)}),[e,n,t,i]}var[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(e,t){const n=t?e?shallowReadonlyInstrumentations:shallowInstrumentations:e?readonlyInstrumentations:mutableInstrumentations;return(i,r,a)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?i:Reflect.get(hasOwn(n,r)&&r in i?n:i,r,a)}var mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)};function checkIdentityKeys(e,t,n){const i=toRaw(n);if(i!==n&&t.call(e,i)){const r=toRawType(e);console.warn(`Reactive ${r} contains both the raw and reactive versions of the same object${r==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(e){return e.__v_skip||!Object.isExtensible(e)?0:targetTypeMap(toRawType(e))}function reactive2(e){return e&&e.__v_isReadonly?e:createReactiveObject(e,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function readonly(e){return createReactiveObject(e,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function createReactiveObject(e,t,n,i,r){if(!isObject$9(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=r.get(e);if(a)return a;const o=getTargetType(e);if(o===0)return e;const l=new Proxy(e,o===2?i:n);return r.set(e,l),l}function toRaw(e){return e&&toRaw(e.__v_raw)||e}function isRef(e){return!!(e&&e.__v_isRef===!0)}magic("nextTick",()=>nextTick);magic("dispatch",e=>dispatch.bind(dispatch,e));magic("watch",(e,{evaluateLater:t,effect:n})=>(i,r)=>{let a=t(i),o=!0,l,u=n(()=>a(h=>{JSON.stringify(h),o?l=h:queueMicrotask(()=>{r(h,l),l=h}),o=!1}));e._x_effects.delete(u)});magic("store",getStores);magic("data",e=>scope(e));magic("root",e=>closestRoot(e));magic("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=mergeProxies(getArrayOfRefObject(e))),e._x_refs_proxy));function getArrayOfRefObject(e){let t=[],n=e;for(;n;)n._x_refs&&t.push(n._x_refs),n=n.parentNode;return t}var globalIdMemo={};function findAndIncrementId(e){return globalIdMemo[e]||(globalIdMemo[e]=0),++globalIdMemo[e]}function closestIdRoot(e,t){return findClosest(e,n=>{if(n._x_ids&&n._x_ids[t])return!0})}function setIdRoot(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=findAndIncrementId(t))}magic("id",e=>(t,n=null)=>{let i=closestIdRoot(e,t),r=i?i._x_ids[t]:findAndIncrementId(t);return n?`${t}-${r}-${n}`:`${t}-${r}`});magic("el",e=>e);warnMissingPluginMagic("Focus","focus","focus");warnMissingPluginMagic("Persist","persist","persist");function warnMissingPluginMagic(e,t,n){magic(t,i=>warn(`You can't use [$${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,i))}directive("modelable",(e,{expression:t},{effect:n,evaluateLater:i,cleanup:r})=>{let a=i(t),o=()=>{let m;return a(g=>m=g),m},l=i(`${t} = __placeholder`),u=m=>l(()=>{},{scope:{__placeholder:m}}),h=o();u(h),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let m=e._x_model.get,g=e._x_model.set,_=entangle({get(){return m()},set(v){g(v)}},{get(){return o()},set(v){u(v)}});r(_)})});directive("teleport",(e,{modifiers:t,expression:n},{cleanup:i})=>{e.tagName.toLowerCase()!=="template"&&warn("x-teleport can only be used on a <template> tag",e);let r=getTarget(n),a=e.content.cloneNode(!0).firstElementChild;e._x_teleport=a,a._x_teleportBack=e,e.setAttribute("data-teleport-template",!0),a.setAttribute("data-teleport-target",!0),e._x_forwardEvents&&e._x_forwardEvents.forEach(l=>{a.addEventListener(l,u=>{u.stopPropagation(),e.dispatchEvent(new u.constructor(u.type,u))})}),addScopeToNode(a,{},e);let o=(l,u,h)=>{h.includes("prepend")?u.parentNode.insertBefore(l,u):h.includes("append")?u.parentNode.insertBefore(l,u.nextSibling):u.appendChild(l)};mutateDom(()=>{o(a,r,t),initTree(a),a._x_ignore=!0}),e._x_teleportPutBack=()=>{let l=getTarget(n);mutateDom(()=>{o(e._x_teleport,l,t)})},i(()=>a.remove())});var teleportContainerDuringClone=document.createElement("div");function getTarget(e){let t=skipDuringClone(()=>document.querySelector(e),()=>teleportContainerDuringClone)();return t||warn(`Cannot find x-teleport element for selector: "${e}"`),t}var handler=()=>{};handler.inline=(e,{modifiers:t},{cleanup:n})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,n(()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})};directive("ignore",handler);directive("effect",skipDuringClone((e,{expression:t},{effect:n})=>{n(evaluateLater(e,t))}));function on(e,t,n,i){let r=e,a=u=>i(u),o={},l=(u,h)=>m=>h(u,m);if(n.includes("dot")&&(t=dotSyntax(t)),n.includes("camel")&&(t=camelCase2(t)),n.includes("passive")&&(o.passive=!0),n.includes("capture")&&(o.capture=!0),n.includes("window")&&(r=window),n.includes("document")&&(r=document),n.includes("debounce")){let u=n[n.indexOf("debounce")+1]||"invalid-wait",h=isNumeric$1(u.split("ms")[0])?Number(u.split("ms")[0]):250;a=debounce$3(a,h)}if(n.includes("throttle")){let u=n[n.indexOf("throttle")+1]||"invalid-wait",h=isNumeric$1(u.split("ms")[0])?Number(u.split("ms")[0]):250;a=throttle(a,h)}return n.includes("prevent")&&(a=l(a,(u,h)=>{h.preventDefault(),u(h)})),n.includes("stop")&&(a=l(a,(u,h)=>{h.stopPropagation(),u(h)})),n.includes("self")&&(a=l(a,(u,h)=>{h.target===e&&u(h)})),(n.includes("away")||n.includes("outside"))&&(r=document,a=l(a,(u,h)=>{e.contains(h.target)||h.target.isConnected!==!1&&(e.offsetWidth<1&&e.offsetHeight<1||e._x_isShown!==!1&&u(h))})),n.includes("once")&&(a=l(a,(u,h)=>{u(h),r.removeEventListener(t,a,o)})),a=l(a,(u,h)=>{isKeyEvent(t)&&isListeningForASpecificKeyThatHasntBeenPressed(h,n)||u(h)}),r.addEventListener(t,a,o),()=>{r.removeEventListener(t,a,o)}}function dotSyntax(e){return e.replace(/-/g,".")}function camelCase2(e){return e.toLowerCase().replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function isNumeric$1(e){return!Array.isArray(e)&&!isNaN(e)}function kebabCase2(e){return[" ","_"].includes(e)?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function isKeyEvent(e){return["keydown","keyup"].includes(e)}function isListeningForASpecificKeyThatHasntBeenPressed(e,t){let n=t.filter(a=>!["window","document","prevent","stop","once","capture"].includes(a));if(n.includes("debounce")){let a=n.indexOf("debounce");n.splice(a,isNumeric$1((n[a+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.includes("throttle")){let a=n.indexOf("throttle");n.splice(a,isNumeric$1((n[a+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.length===0||n.length===1&&keyToModifiers(e.key).includes(n[0]))return!1;const r=["ctrl","shift","alt","meta","cmd","super"].filter(a=>n.includes(a));return n=n.filter(a=>!r.includes(a)),!(r.length>0&&r.filter(o=>((o==="cmd"||o==="super")&&(o="meta"),e[`${o}Key`])).length===r.length&&keyToModifiers(e.key).includes(n[0]))}function keyToModifiers(e){if(!e)return[];e=kebabCase2(e);let t={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",equal:"=",minus:"-",underscore:"_"};return t[e]=e,Object.keys(t).map(n=>{if(t[n]===e)return n}).filter(n=>n)}directive("model",(e,{modifiers:t,expression:n},{effect:i,cleanup:r})=>{let a=e;t.includes("parent")&&(a=e.parentNode);let o=evaluateLater(a,n),l;typeof n=="string"?l=evaluateLater(a,`${n} = __placeholder`):typeof n=="function"&&typeof n()=="string"?l=evaluateLater(a,`${n()} = __placeholder`):l=()=>{};let u=()=>{let _;return o(v=>_=v),isGetterSetter(_)?_.get():_},h=_=>{let v;o(w=>v=w),isGetterSetter(v)?v.set(_):l(()=>{},{scope:{__placeholder:_}})};typeof n=="string"&&e.type==="radio"&&mutateDom(()=>{e.hasAttribute("name")||e.setAttribute("name",n)});var m=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)||t.includes("lazy")?"change":"input";let g=isCloning?()=>{}:on(e,m,t,_=>{h(getInputValue(e,t,_,u()))});if(t.includes("fill")&&([null,""].includes(u())||e.type==="checkbox"&&Array.isArray(u()))&&e.dispatchEvent(new Event(m,{})),e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=g,r(()=>e._x_removeModelListeners.default()),e.form){let _=on(e.form,"reset",[],v=>{nextTick(()=>e._x_model&&e._x_model.set(e.value))});r(()=>_())}e._x_model={get(){return u()},set(_){h(_)}},e._x_forceModelUpdate=_=>{_===void 0&&typeof n=="string"&&n.match(/\./)&&(_=""),window.fromModel=!0,mutateDom(()=>bind(e,"value",_)),delete window.fromModel},i(()=>{let _=u();t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(_)})});function getInputValue(e,t,n,i){return mutateDom(()=>{if(n instanceof CustomEvent&&n.detail!==void 0)return n.detail!==null&&n.detail!==void 0?n.detail:n.target.value;if(e.type==="checkbox")if(Array.isArray(i)){let r=null;return t.includes("number")?r=safeParseNumber(n.target.value):t.includes("boolean")?r=safeParseBoolean(n.target.value):r=n.target.value,n.target.checked?i.concat([r]):i.filter(a=>!checkedAttrLooseCompare2(a,r))}else return n.target.checked;else return e.tagName.toLowerCase()==="select"&&e.multiple?t.includes("number")?Array.from(n.target.selectedOptions).map(r=>{let a=r.value||r.text;return safeParseNumber(a)}):t.includes("boolean")?Array.from(n.target.selectedOptions).map(r=>{let a=r.value||r.text;return safeParseBoolean(a)}):Array.from(n.target.selectedOptions).map(r=>r.value||r.text):t.includes("number")?safeParseNumber(n.target.value):t.includes("boolean")?safeParseBoolean(n.target.value):t.includes("trim")?n.target.value.trim():n.target.value})}function safeParseNumber(e){let t=e?parseFloat(e):null;return isNumeric2(t)?t:e}function checkedAttrLooseCompare2(e,t){return e==t}function isNumeric2(e){return!Array.isArray(e)&&!isNaN(e)}function isGetterSetter(e){return e!==null&&typeof e=="object"&&typeof e.get=="function"&&typeof e.set=="function"}directive("cloak",e=>queueMicrotask(()=>mutateDom(()=>e.removeAttribute(prefix("cloak")))));addInitSelector(()=>`[${prefix("init")}]`);directive("init",skipDuringClone((e,{expression:t},{evaluate:n})=>typeof t=="string"?!!t.trim()&&n(t,{},!1):n(t,{},!1)));directive("text",(e,{expression:t},{effect:n,evaluateLater:i})=>{let r=i(t);n(()=>{r(a=>{mutateDom(()=>{e.textContent=a})})})});directive("html",(e,{expression:t},{effect:n,evaluateLater:i})=>{let r=i(t);n(()=>{r(a=>{mutateDom(()=>{e.innerHTML=a,e._x_ignoreSelf=!0,initTree(e),delete e._x_ignoreSelf})})})});mapAttributes(startingWith(":",into(prefix("bind:"))));var handler2=(e,{value:t,modifiers:n,expression:i,original:r},{effect:a})=>{if(!t){let l={};injectBindingProviders(l),evaluateLater(e,i)(h=>{applyBindingsObject(e,h,r)},{scope:l});return}if(t==="key")return storeKeyForXFor(e,i);if(e._x_inlineBindings&&e._x_inlineBindings[t]&&e._x_inlineBindings[t].extract)return;let o=evaluateLater(e,i);a(()=>o(l=>{l===void 0&&typeof i=="string"&&i.match(/\./)&&(l=""),mutateDom(()=>bind(e,t,l,n))}))};handler2.inline=(e,{value:t,modifiers:n,expression:i})=>{t&&(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[t]={expression:i,extract:!1})};directive("bind",handler2);function storeKeyForXFor(e,t){e._x_keyExpression=t}addRootSelector(()=>`[${prefix("data")}]`);directive("data",(e,{expression:t},{cleanup:n})=>{if(shouldSkipRegisteringDataDuringClone(e))return;t=t===""?"{}":t;let i={};injectMagics(i,e);let r={};injectDataProviders(r,i);let a=evaluate(e,t,{scope:r});(a===void 0||a===!0)&&(a={}),injectMagics(a,e);let o=reactive(a);initInterceptors2(o);let l=addScopeToNode(e,o);o.init&&evaluate(e,o.init),n(()=>{o.destroy&&evaluate(e,o.destroy),l()})});interceptClone((e,t)=>{e._x_dataStack&&(t._x_dataStack=e._x_dataStack,t.setAttribute("data-has-alpine-state",!0))});function shouldSkipRegisteringDataDuringClone(e){return isCloning?isCloningLegacy?!0:e.hasAttribute("data-has-alpine-state"):!1}directive("show",(e,{modifiers:t,expression:n},{effect:i})=>{let r=evaluateLater(e,n);e._x_doHide||(e._x_doHide=()=>{mutateDom(()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{mutateDom(()=>{e.style.length===1&&e.style.display==="none"?e.removeAttribute("style"):e.style.removeProperty("display")})});let a=()=>{e._x_doHide(),e._x_isShown=!1},o=()=>{e._x_doShow(),e._x_isShown=!0},l=()=>setTimeout(o),u=once(g=>g?o():a(),g=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,g,o,a):g?l():a()}),h,m=!0;i(()=>r(g=>{!m&&g===h||(t.includes("immediate")&&(g?l():a()),u(g),h=g,m=!1)}))});directive("for",(e,{expression:t},{effect:n,cleanup:i})=>{let r=parseForExpression(t),a=evaluateLater(e,r.items),o=evaluateLater(e,e._x_keyExpression||"index");e._x_prevKeys=[],e._x_lookup={},n(()=>loop(e,r,a,o)),i(()=>{Object.values(e._x_lookup).forEach(l=>l.remove()),delete e._x_prevKeys,delete e._x_lookup})});function loop(e,t,n,i){let r=o=>typeof o=="object"&&!Array.isArray(o),a=e;n(o=>{isNumeric3(o)&&o>=0&&(o=Array.from(Array(o).keys(),x=>x+1)),o===void 0&&(o=[]);let l=e._x_lookup,u=e._x_prevKeys,h=[],m=[];if(r(o))o=Object.entries(o).map(([x,M])=>{let T=getIterationScopeVariables(t,M,x,o);i(R=>m.push(R),{scope:{index:x,...T}}),h.push(T)});else for(let x=0;x<o.length;x++){let M=getIterationScopeVariables(t,o[x],x,o);i(T=>m.push(T),{scope:{index:x,...M}}),h.push(M)}let g=[],_=[],v=[],w=[];for(let x=0;x<u.length;x++){let M=u[x];m.indexOf(M)===-1&&v.push(M)}u=u.filter(x=>!v.includes(x));let $="template";for(let x=0;x<m.length;x++){let M=m[x],T=u.indexOf(M);if(T===-1)u.splice(x,0,M),g.push([$,x]);else if(T!==x){let R=u.splice(x,1)[0],W=u.splice(T-1,1)[0];u.splice(x,0,W),u.splice(T,0,R),_.push([R,W])}else w.push(M);$=M}for(let x=0;x<v.length;x++){let M=v[x];l[M]._x_effects&&l[M]._x_effects.forEach(dequeueJob),l[M].remove(),l[M]=null,delete l[M]}for(let x=0;x<_.length;x++){let[M,T]=_[x],R=l[M],W=l[T],V=document.createElement("div");mutateDom(()=>{W||warn('x-for ":key" is undefined or invalid',a),W.after(V),R.after(W),W._x_currentIfEl&&W.after(W._x_currentIfEl),V.before(R),R._x_currentIfEl&&R.after(R._x_currentIfEl),V.remove()}),W._x_refreshXForScope(h[m.indexOf(T)])}for(let x=0;x<g.length;x++){let[M,T]=g[x],R=M==="template"?a:l[M];R._x_currentIfEl&&(R=R._x_currentIfEl);let W=h[T],V=m[T],K=document.importNode(a.content,!0).firstElementChild,U=reactive(W);addScopeToNode(K,U,a),K._x_refreshXForScope=y=>{Object.entries(y).forEach(([E,S])=>{U[E]=S})},mutateDom(()=>{R.after(K),initTree(K)}),typeof V=="object"&&warn("x-for key cannot be an object, it must be a string or an integer",a),l[V]=K}for(let x=0;x<w.length;x++)l[w[x]]._x_refreshXForScope(h[m.indexOf(w[x])]);a._x_prevKeys=m})}function parseForExpression(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,n=/^\s*\(|\)\s*$/g,i=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,r=e.match(i);if(!r)return;let a={};a.items=r[2].trim();let o=r[1].replace(n,"").trim(),l=o.match(t);return l?(a.item=o.replace(t,"").trim(),a.index=l[1].trim(),l[2]&&(a.collection=l[2].trim())):a.item=o,a}function getIterationScopeVariables(e,t,n,i){let r={};return/^\[.*\]$/.test(e.item)&&Array.isArray(t)?e.item.replace("[","").replace("]","").split(",").map(o=>o.trim()).forEach((o,l)=>{r[o]=t[l]}):/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&typeof t=="object"?e.item.replace("{","").replace("}","").split(",").map(o=>o.trim()).forEach(o=>{r[o]=t[o]}):r[e.item]=t,e.index&&(r[e.index]=n),e.collection&&(r[e.collection]=i),r}function isNumeric3(e){return!Array.isArray(e)&&!isNaN(e)}function handler3(){}handler3.inline=(e,{expression:t},{cleanup:n})=>{let i=closestRoot(e);i._x_refs||(i._x_refs={}),i._x_refs[t]=e,n(()=>delete i._x_refs[t])};directive("ref",handler3);directive("if",(e,{expression:t},{effect:n,cleanup:i})=>{e.tagName.toLowerCase()!=="template"&&warn("x-if can only be used on a <template> tag",e);let r=evaluateLater(e,t),a=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let l=e.content.cloneNode(!0).firstElementChild;return addScopeToNode(l,{},e),mutateDom(()=>{e.after(l),initTree(l)}),e._x_currentIfEl=l,e._x_undoIf=()=>{walk(l,u=>{u._x_effects&&u._x_effects.forEach(dequeueJob)}),l.remove(),delete e._x_currentIfEl},l},o=()=>{e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)};n(()=>r(l=>{l?a():o()})),i(()=>e._x_undoIf&&e._x_undoIf())});directive("id",(e,{expression:t},{evaluate:n})=>{n(t).forEach(r=>setIdRoot(e,r))});mapAttributes(startingWith("@",into(prefix("on:"))));directive("on",skipDuringClone((e,{value:t,modifiers:n,expression:i},{cleanup:r})=>{let a=i?evaluateLater(e,i):()=>{};e.tagName.toLowerCase()==="template"&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let o=on(e,t,n,l=>{a(()=>{},{scope:{$event:l},params:[l]})});r(()=>o())}));warnMissingPluginDirective("Collapse","collapse","collapse");warnMissingPluginDirective("Intersect","intersect","intersect");warnMissingPluginDirective("Focus","trap","focus");warnMissingPluginDirective("Mask","mask","mask");function warnMissingPluginDirective(e,t,n){directive(t,i=>warn(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,i))}alpine_default.setEvaluator(normalEvaluator);alpine_default.setReactivityEngine({reactive:reactive2,effect:effect2,release:stop,raw:toRaw});var src_default=alpine_default,module_default=src_default,top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(e,t){return e.concat([t+"-"+start,t+"-"+end])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(e,t){return e.concat([t,t+"-"+start,t+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(e){return e?(e.nodeName||"").toLowerCase():null}function getWindow(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function isElement$1(e){var t=getWindow(e).Element;return e instanceof t||e instanceof Element}function isHTMLElement(e){var t=getWindow(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function isShadowRoot(e){if(typeof ShadowRoot>"u")return!1;var t=getWindow(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function applyStyles(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var i=t.styles[n]||{},r=t.attributes[n]||{},a=t.elements[n];!isHTMLElement(a)||!getNodeName(a)||(Object.assign(a.style,i),Object.keys(r).forEach(function(o){var l=r[o];l===!1?a.removeAttribute(o):a.setAttribute(o,l===!0?"":l)}))})}function effect$2(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(i){var r=t.elements[i],a=t.attributes[i]||{},o=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:n[i]),l=o.reduce(function(u,h){return u[h]="",u},{});!isHTMLElement(r)||!getNodeName(r)||(Object.assign(r.style,l),Object.keys(a).forEach(function(u){r.removeAttribute(u)}))})}}const applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(e){return e.split("-")[0]}var max=Math.max,min=Math.min,round$1=Math.round;function getUAString(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),r=1,a=1;t&&isHTMLElement(e)&&(r=e.offsetWidth>0&&round$1(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&round$1(i.height)/e.offsetHeight||1);var o=isElement$1(e)?getWindow(e):window,l=o.visualViewport,u=!isLayoutViewport()&&n,h=(i.left+(u&&l?l.offsetLeft:0))/r,m=(i.top+(u&&l?l.offsetTop:0))/a,g=i.width/r,_=i.height/a;return{width:g,height:_,top:m,right:h+g,bottom:m+_,left:h,x:h,y:m}}function getLayoutRect(e){var t=getBoundingClientRect(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function contains(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&isShadowRoot(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function getComputedStyle$2(e){return getWindow(e).getComputedStyle(e)}function isTableElement(e){return["table","td","th"].indexOf(getNodeName(e))>=0}function getDocumentElement(e){return((isElement$1(e)?e.ownerDocument:e.document)||window.document).documentElement}function getParentNode(e){return getNodeName(e)==="html"?e:e.assignedSlot||e.parentNode||(isShadowRoot(e)?e.host:null)||getDocumentElement(e)}function getTrueOffsetParent(e){return!isHTMLElement(e)||getComputedStyle$2(e).position==="fixed"?null:e.offsetParent}function getContainingBlock(e){var t=/firefox/i.test(getUAString()),n=/Trident/i.test(getUAString());if(n&&isHTMLElement(e)){var i=getComputedStyle$2(e);if(i.position==="fixed")return null}var r=getParentNode(e);for(isShadowRoot(r)&&(r=r.host);isHTMLElement(r)&&["html","body"].indexOf(getNodeName(r))<0;){var a=getComputedStyle$2(r);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return r;r=r.parentNode}return null}function getOffsetParent(e){for(var t=getWindow(e),n=getTrueOffsetParent(e);n&&isTableElement(n)&&getComputedStyle$2(n).position==="static";)n=getTrueOffsetParent(n);return n&&(getNodeName(n)==="html"||getNodeName(n)==="body"&&getComputedStyle$2(n).position==="static")?t:n||getContainingBlock(e)||t}function getMainAxisFromPlacement(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function within$1(e,t,n){return max(e,min(t,n))}function withinMaxClamp(e,t,n){var i=within$1(e,t,n);return i>n?n:i}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(e){return Object.assign({},getFreshSideObject(),e)}function expandToHashMap(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var toPaddingObject=function e(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,mergePaddingObject(typeof t!="number"?t:expandToHashMap(t,basePlacements))};function arrow(e){var t,n=e.state,i=e.name,r=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,l=getBasePlacement(n.placement),u=getMainAxisFromPlacement(l),h=[left,right].indexOf(l)>=0,m=h?"height":"width";if(!(!a||!o)){var g=toPaddingObject(r.padding,n),_=getLayoutRect(a),v=u==="y"?top:left,w=u==="y"?bottom:right,$=n.rects.reference[m]+n.rects.reference[u]-o[u]-n.rects.popper[m],x=o[u]-n.rects.reference[u],M=getOffsetParent(a),T=M?u==="y"?M.clientHeight||0:M.clientWidth||0:0,R=$/2-x/2,W=g[v],V=T-_[m]-g[w],K=T/2-_[m]/2+R,U=within$1(W,K,V),y=u;n.modifiersData[i]=(t={},t[y]=U,t.centerOffset=U-K,t)}}function effect$1(e){var t=e.state,n=e.options,i=n.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||contains(t.elements.popper,r)&&(t.elements.arrow=r))}const arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(e){return e.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(e,t){var n=e.x,i=e.y,r=t.devicePixelRatio||1;return{x:round$1(n*r)/r||0,y:round$1(i*r)/r||0}}function mapToStyles(e){var t,n=e.popper,i=e.popperRect,r=e.placement,a=e.variation,o=e.offsets,l=e.position,u=e.gpuAcceleration,h=e.adaptive,m=e.roundOffsets,g=e.isFixed,_=o.x,v=_===void 0?0:_,w=o.y,$=w===void 0?0:w,x=typeof m=="function"?m({x:v,y:$}):{x:v,y:$};v=x.x,$=x.y;var M=o.hasOwnProperty("x"),T=o.hasOwnProperty("y"),R=left,W=top,V=window;if(h){var K=getOffsetParent(n),U="clientHeight",y="clientWidth";if(K===getWindow(n)&&(K=getDocumentElement(n),getComputedStyle$2(K).position!=="static"&&l==="absolute"&&(U="scrollHeight",y="scrollWidth")),K=K,r===top||(r===left||r===right)&&a===end){W=bottom;var E=g&&K===V&&V.visualViewport?V.visualViewport.height:K[U];$-=E-i.height,$*=u?1:-1}if(r===left||(r===top||r===bottom)&&a===end){R=right;var S=g&&K===V&&V.visualViewport?V.visualViewport.width:K[y];v-=S-i.width,v*=u?1:-1}}var O=Object.assign({position:l},h&&unsetSides),A=m===!0?roundOffsetsByDPR({x:v,y:$},getWindow(n)):{x:v,y:$};if(v=A.x,$=A.y,u){var F;return Object.assign({},O,(F={},F[W]=T?"0":"",F[R]=M?"0":"",F.transform=(V.devicePixelRatio||1)<=1?"translate("+v+"px, "+$+"px)":"translate3d("+v+"px, "+$+"px, 0)",F))}return Object.assign({},O,(t={},t[W]=T?$+"px":"",t[R]=M?v+"px":"",t.transform="",t))}function computeStyles(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=i===void 0?!0:i,a=n.adaptive,o=a===void 0?!0:a,l=n.roundOffsets,u=l===void 0?!0:l,h={placement:getBasePlacement(t.placement),variation:getVariation(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,mapToStyles(Object.assign({},h,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,mapToStyles(Object.assign({},h,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:!0};function effect(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,a=r===void 0?!0:r,o=i.resize,l=o===void 0?!0:o,u=getWindow(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&h.forEach(function(m){m.addEventListener("scroll",n.update,passive)}),l&&u.addEventListener("resize",n.update,passive),function(){a&&h.forEach(function(m){m.removeEventListener("scroll",n.update,passive)}),l&&u.removeEventListener("resize",n.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function e(){},effect,data:{}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,function(t){return hash$1[t]})}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(e){return e.replace(/start|end/g,function(t){return hash[t]})}function getWindowScroll(e){var t=getWindow(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getWindowScroll(e).scrollLeft}function getViewportRect(e,t){var n=getWindow(e),i=getDocumentElement(e),r=n.visualViewport,a=i.clientWidth,o=i.clientHeight,l=0,u=0;if(r){a=r.width,o=r.height;var h=isLayoutViewport();(h||!h&&t==="fixed")&&(l=r.offsetLeft,u=r.offsetTop)}return{width:a,height:o,x:l+getWindowScrollBarX(e),y:u}}function getDocumentRect(e){var t,n=getDocumentElement(e),i=getWindowScroll(e),r=(t=e.ownerDocument)==null?void 0:t.body,a=max(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=max(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-i.scrollLeft+getWindowScrollBarX(e),u=-i.scrollTop;return getComputedStyle$2(r||n).direction==="rtl"&&(l+=max(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:o,x:l,y:u}}function isScrollParent(e){var t=getComputedStyle$2(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function getScrollParent(e){return["html","body","#document"].indexOf(getNodeName(e))>=0?e.ownerDocument.body:isHTMLElement(e)&&isScrollParent(e)?e:getScrollParent(getParentNode(e))}function listScrollParents(e,t){var n;t===void 0&&(t=[]);var i=getScrollParent(e),r=i===((n=e.ownerDocument)==null?void 0:n.body),a=getWindow(i),o=r?[a].concat(a.visualViewport||[],isScrollParent(i)?i:[]):i,l=t.concat(o);return r?l:l.concat(listScrollParents(getParentNode(o)))}function rectToClientRect(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function getInnerBoundingClientRect(e,t){var n=getBoundingClientRect(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function getClientRectFromMixedType(e,t,n){return t===viewport?rectToClientRect(getViewportRect(e,n)):isElement$1(t)?getInnerBoundingClientRect(t,n):rectToClientRect(getDocumentRect(getDocumentElement(e)))}function getClippingParents(e){var t=listScrollParents(getParentNode(e)),n=["absolute","fixed"].indexOf(getComputedStyle$2(e).position)>=0,i=n&&isHTMLElement(e)?getOffsetParent(e):e;return isElement$1(i)?t.filter(function(r){return isElement$1(r)&&contains(r,i)&&getNodeName(r)!=="body"}):[]}function getClippingRect(e,t,n,i){var r=t==="clippingParents"?getClippingParents(e):[].concat(t),a=[].concat(r,[n]),o=a[0],l=a.reduce(function(u,h){var m=getClientRectFromMixedType(e,h,i);return u.top=max(m.top,u.top),u.right=min(m.right,u.right),u.bottom=min(m.bottom,u.bottom),u.left=max(m.left,u.left),u},getClientRectFromMixedType(e,o,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function computeOffsets(e){var t=e.reference,n=e.element,i=e.placement,r=i?getBasePlacement(i):null,a=i?getVariation(i):null,o=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(r){case top:u={x:o,y:t.y-n.height};break;case bottom:u={x:o,y:t.y+t.height};break;case right:u={x:t.x+t.width,y:l};break;case left:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var h=r?getMainAxisFromPlacement(r):null;if(h!=null){var m=h==="y"?"height":"width";switch(a){case start:u[h]=u[h]-(t[m]/2-n[m]/2);break;case end:u[h]=u[h]+(t[m]/2-n[m]/2);break}}return u}function detectOverflow(e,t){t===void 0&&(t={});var n=t,i=n.placement,r=i===void 0?e.placement:i,a=n.strategy,o=a===void 0?e.strategy:a,l=n.boundary,u=l===void 0?clippingParents:l,h=n.rootBoundary,m=h===void 0?viewport:h,g=n.elementContext,_=g===void 0?popper:g,v=n.altBoundary,w=v===void 0?!1:v,$=n.padding,x=$===void 0?0:$,M=mergePaddingObject(typeof x!="number"?x:expandToHashMap(x,basePlacements)),T=_===popper?reference:popper,R=e.rects.popper,W=e.elements[w?T:_],V=getClippingRect(isElement$1(W)?W:W.contextElement||getDocumentElement(e.elements.popper),u,m,o),K=getBoundingClientRect(e.elements.reference),U=computeOffsets({reference:K,element:R,strategy:"absolute",placement:r}),y=rectToClientRect(Object.assign({},R,U)),E=_===popper?y:K,S={top:V.top-E.top+M.top,bottom:E.bottom-V.bottom+M.bottom,left:V.left-E.left+M.left,right:E.right-V.right+M.right},O=e.modifiersData.offset;if(_===popper&&O){var A=O[r];Object.keys(S).forEach(function(F){var z=[right,bottom].indexOf(F)>=0?1:-1,C=[top,bottom].indexOf(F)>=0?"y":"x";S[F]+=A[C]*z})}return S}function computeAutoPlacement(e,t){t===void 0&&(t={});var n=t,i=n.placement,r=n.boundary,a=n.rootBoundary,o=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,h=u===void 0?placements:u,m=getVariation(i),g=m?l?variationPlacements:variationPlacements.filter(function(w){return getVariation(w)===m}):basePlacements,_=g.filter(function(w){return h.indexOf(w)>=0});_.length===0&&(_=g);var v=_.reduce(function(w,$){return w[$]=detectOverflow(e,{placement:$,boundary:r,rootBoundary:a,padding:o})[getBasePlacement($)],w},{});return Object.keys(v).sort(function(w,$){return v[w]-v[$]})}function getExpandedFallbackPlacements(e){if(getBasePlacement(e)===auto)return[];var t=getOppositePlacement(e);return[getOppositeVariationPlacement(e),t,getOppositeVariationPlacement(t)]}function flip(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,a=r===void 0?!0:r,o=n.altAxis,l=o===void 0?!0:o,u=n.fallbackPlacements,h=n.padding,m=n.boundary,g=n.rootBoundary,_=n.altBoundary,v=n.flipVariations,w=v===void 0?!0:v,$=n.allowedAutoPlacements,x=t.options.placement,M=getBasePlacement(x),T=M===x,R=u||(T||!w?[getOppositePlacement(x)]:getExpandedFallbackPlacements(x)),W=[x].concat(R).reduce(function(rt,Q){return rt.concat(getBasePlacement(Q)===auto?computeAutoPlacement(t,{placement:Q,boundary:m,rootBoundary:g,padding:h,flipVariations:w,allowedAutoPlacements:$}):Q)},[]),V=t.rects.reference,K=t.rects.popper,U=new Map,y=!0,E=W[0],S=0;S<W.length;S++){var O=W[S],A=getBasePlacement(O),F=getVariation(O)===start,z=[top,bottom].indexOf(A)>=0,C=z?"width":"height",D=detectOverflow(t,{placement:O,boundary:m,rootBoundary:g,altBoundary:_,padding:h}),I=z?F?right:left:F?bottom:top;V[C]>K[C]&&(I=getOppositePlacement(I));var N=getOppositePlacement(I),G=[];if(a&&G.push(D[A]<=0),l&&G.push(D[I]<=0,D[N]<=0),G.every(function(rt){return rt})){E=O,y=!1;break}U.set(O,G)}if(y)for(var q=w?3:1,Z=function(Q){var J=W.find(function(ht){var _t=U.get(ht);if(_t)return _t.slice(0,Q).every(function(Dt){return Dt})});if(J)return E=J,"break"},et=q;et>0;et--){var st=Z(et);if(st==="break")break}t.placement!==E&&(t.modifiersData[i]._skip=!0,t.placement=E,t.reset=!0)}}const flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function isAnySideFullyClipped(e){return[top,right,bottom,left].some(function(t){return e[t]>=0})}function hide(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,a=t.modifiersData.preventOverflow,o=detectOverflow(t,{elementContext:"reference"}),l=detectOverflow(t,{altBoundary:!0}),u=getSideOffsets(o,i),h=getSideOffsets(l,r,a),m=isAnySideFullyClipped(u),g=isAnySideFullyClipped(h);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:h,isReferenceHidden:m,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":g})}const hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(e,t,n){var i=getBasePlacement(e),r=[left,top].indexOf(i)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=a[0],l=a[1];return o=o||0,l=(l||0)*r,[left,right].indexOf(i)>=0?{x:l,y:o}:{x:o,y:l}}function offset(e){var t=e.state,n=e.options,i=e.name,r=n.offset,a=r===void 0?[0,0]:r,o=placements.reduce(function(m,g){return m[g]=distanceAndSkiddingToXY(g,t.rects,a),m},{}),l=o[t.placement],u=l.x,h=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=h),t.modifiersData[i]=o}const offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(e){var t=e.state,n=e.name;t.modifiersData[n]=computeOffsets({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(e){return e==="x"?"y":"x"}function preventOverflow(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,a=r===void 0?!0:r,o=n.altAxis,l=o===void 0?!1:o,u=n.boundary,h=n.rootBoundary,m=n.altBoundary,g=n.padding,_=n.tether,v=_===void 0?!0:_,w=n.tetherOffset,$=w===void 0?0:w,x=detectOverflow(t,{boundary:u,rootBoundary:h,padding:g,altBoundary:m}),M=getBasePlacement(t.placement),T=getVariation(t.placement),R=!T,W=getMainAxisFromPlacement(M),V=getAltAxis(W),K=t.modifiersData.popperOffsets,U=t.rects.reference,y=t.rects.popper,E=typeof $=="function"?$(Object.assign({},t.rects,{placement:t.placement})):$,S=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(K){if(a){var F,z=W==="y"?top:left,C=W==="y"?bottom:right,D=W==="y"?"height":"width",I=K[W],N=I+x[z],G=I-x[C],q=v?-y[D]/2:0,Z=T===start?U[D]:y[D],et=T===start?-y[D]:-U[D],st=t.elements.arrow,rt=v&&st?getLayoutRect(st):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:getFreshSideObject(),J=Q[z],ht=Q[C],_t=within$1(0,U[D],rt[D]),Dt=R?U[D]/2-q-_t-J-S.mainAxis:Z-_t-J-S.mainAxis,Wt=R?-U[D]/2+q+_t+ht+S.mainAxis:et+_t+ht+S.mainAxis,$t=t.elements.arrow&&getOffsetParent(t.elements.arrow),Mt=$t?W==="y"?$t.clientTop||0:$t.clientLeft||0:0,wt=(F=O==null?void 0:O[W])!=null?F:0,Pt=I+Dt-wt-Mt,ft=I+Wt-wt,he=within$1(v?min(N,Pt):N,I,v?max(G,ft):G);K[W]=he,A[W]=he-I}if(l){var Jt,te=W==="x"?top:left,Ze=W==="x"?bottom:right,Nt=K[V],Yt=V==="y"?"height":"width",fe=Nt+x[te],me=Nt-x[Ze],pe=[top,left].indexOf(M)!==-1,Oe=(Jt=O==null?void 0:O[V])!=null?Jt:0,ee=pe?fe:Nt-U[Yt]-y[Yt]-Oe+S.altAxis,ge=pe?Nt+U[Yt]+y[Yt]-Oe-S.altAxis:me,_e=v&&pe?withinMaxClamp(ee,Nt,ge):within$1(v?ee:fe,Nt,v?ge:me);K[V]=_e,A[V]=_e-Nt}t.modifiersData[i]=A}}const preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function getNodeScroll(e){return e===getWindow(e)||!isHTMLElement(e)?getWindowScroll(e):getHTMLElementScroll(e)}function isElementScaled(e){var t=e.getBoundingClientRect(),n=round$1(t.width)/e.offsetWidth||1,i=round$1(t.height)/e.offsetHeight||1;return n!==1||i!==1}function getCompositeRect(e,t,n){n===void 0&&(n=!1);var i=isHTMLElement(t),r=isHTMLElement(t)&&isElementScaled(t),a=getDocumentElement(t),o=getBoundingClientRect(e,r,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&((getNodeName(t)!=="body"||isScrollParent(a))&&(l=getNodeScroll(t)),isHTMLElement(t)?(u=getBoundingClientRect(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=getWindowScrollBarX(a))),{x:o.left+l.scrollLeft-u.x,y:o.top+l.scrollTop-u.y,width:o.width,height:o.height}}function order(e){var t=new Map,n=new Set,i=[];e.forEach(function(a){t.set(a.name,a)});function r(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(l){if(!n.has(l)){var u=t.get(l);u&&r(u)}}),i.push(a)}return e.forEach(function(a){n.has(a.name)||r(a)}),i}function orderModifiers(e){var t=order(e);return modifierPhases.reduce(function(n,i){return n.concat(t.filter(function(r){return r.phase===i}))},[])}function debounce$2(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function mergeByName(e){var t=e.reduce(function(n,i){var r=n[i.name];return n[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var DEFAULT_OPTIONS$1={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function popperGenerator(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,r=t.defaultOptions,a=r===void 0?DEFAULT_OPTIONS$1:r;return function(l,u,h){h===void 0&&(h=a);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS$1,a),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},g=[],_=!1,v={state:m,setOptions:function(M){var T=typeof M=="function"?M(m.options):M;$(),m.options=Object.assign({},a,m.options,T),m.scrollParents={reference:isElement$1(l)?listScrollParents(l):l.contextElement?listScrollParents(l.contextElement):[],popper:listScrollParents(u)};var R=orderModifiers(mergeByName([].concat(i,m.options.modifiers)));return m.orderedModifiers=R.filter(function(W){return W.enabled}),w(),v.update()},forceUpdate:function(){if(!_){var M=m.elements,T=M.reference,R=M.popper;if(areValidElements(T,R)){m.rects={reference:getCompositeRect(T,getOffsetParent(R),m.options.strategy==="fixed"),popper:getLayoutRect(R)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach(function(S){return m.modifiersData[S.name]=Object.assign({},S.data)});for(var W=0;W<m.orderedModifiers.length;W++){if(m.reset===!0){m.reset=!1,W=-1;continue}var V=m.orderedModifiers[W],K=V.fn,U=V.options,y=U===void 0?{}:U,E=V.name;typeof K=="function"&&(m=K({state:m,options:y,name:E,instance:v})||m)}}}},update:debounce$2(function(){return new Promise(function(x){v.forceUpdate(),x(m)})}),destroy:function(){$(),_=!0}};if(!areValidElements(l,u))return v;v.setOptions(h).then(function(x){!_&&h.onFirstUpdate&&h.onFirstUpdate(x)});function w(){m.orderedModifiers.forEach(function(x){var M=x.name,T=x.options,R=T===void 0?{}:T,W=x.effect;if(typeof W=="function"){var V=W({state:m,name:M,instance:v,options:R}),K=function(){};g.push(V||K)}})}function $(){g.forEach(function(x){return x()}),g=[]}return v}}var createPopper$2=popperGenerator(),defaultModifiers$1=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1],createPopper$1=popperGenerator({defaultModifiers:defaultModifiers$1}),defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1],createPopper=popperGenerator({defaultModifiers});const Popper=Object.freeze(Object.defineProperty({__proto__:null,afterMain,afterRead,afterWrite,applyStyles:applyStyles$1,arrow:arrow$1,auto,basePlacements,beforeMain,beforeRead,beforeWrite,bottom,clippingParents,computeStyles:computeStyles$1,createPopper,createPopperBase:createPopper$2,createPopperLite:createPopper$1,detectOverflow,end,eventListeners,flip:flip$1,hide:hide$1,left,main,modifierPhases,offset:offset$1,placements,popper,popperGenerator,popperOffsets:popperOffsets$1,preventOverflow:preventOverflow$1,read,reference,right,start,top,variationPlacements,viewport,write},Symbol.toStringTag,{value:"Module"}));/*!
+`:""}`,t),setTimeout(()=>{throw e},0)}var shouldAutoEvaluateFunctions=!0;function dontAutoEvaluateFunctions(e){let t=shouldAutoEvaluateFunctions;shouldAutoEvaluateFunctions=!1;let n=e();return shouldAutoEvaluateFunctions=t,n}function evaluate(e,t,n={}){let i;return evaluateLater(e,t)(r=>i=r,n),i}function evaluateLater(...e){return theEvaluatorFunction(...e)}var theEvaluatorFunction=normalEvaluator;function setEvaluator(e){theEvaluatorFunction=e}function normalEvaluator(e,t){let n={};injectMagics(n,e);let i=[n,...closestDataStack(e)],r=typeof t=="function"?generateEvaluatorFromFunction(i,t):generateEvaluatorFromString(i,t,e);return tryCatch.bind(null,e,t,r)}function generateEvaluatorFromFunction(e,t){return(n=()=>{},{scope:i={},params:r=[]}={})=>{let a=t.apply(mergeProxies([i,...e]),r);runIfTypeOfFunction(n,a)}}var evaluatorMemo={};function generateFunctionFromString(e,t){if(evaluatorMemo[e])return evaluatorMemo[e];let n=Object.getPrototypeOf(async function(){}).constructor,i=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,a=(()=>{try{let o=new n(["__self","scope"],`with (scope) { __self.result = ${i} }; __self.finished = true; return __self.result;`);return Object.defineProperty(o,"name",{value:`[Alpine] ${e}`}),o}catch(o){return handleError(o,t,e),Promise.resolve()}})();return evaluatorMemo[e]=a,a}function generateEvaluatorFromString(e,t,n){let i=generateFunctionFromString(t,n);return(r=()=>{},{scope:a={},params:o=[]}={})=>{i.result=void 0,i.finished=!1;let l=mergeProxies([a,...e]);if(typeof i=="function"){let u=i(i,l).catch(d=>handleError(d,n,t));i.finished?(runIfTypeOfFunction(r,i.result,l,o,n),i.result=void 0):u.then(d=>{runIfTypeOfFunction(r,d,l,o,n)}).catch(d=>handleError(d,n,t)).finally(()=>i.result=void 0)}}}function runIfTypeOfFunction(e,t,n,i,r){if(shouldAutoEvaluateFunctions&&typeof t=="function"){let a=t.apply(n,i);a instanceof Promise?a.then(o=>runIfTypeOfFunction(e,o,n,i)).catch(o=>handleError(o,r,t)):e(a)}else typeof t=="object"&&t instanceof Promise?t.then(a=>e(a)):e(t)}var prefixAsString="x-";function prefix(e=""){return prefixAsString+e}function setPrefix(e){prefixAsString=e}var directiveHandlers={};function directive(e,t){return directiveHandlers[e]=t,{before(n){if(!directiveHandlers[n]){console.warn("Cannot find directive `${directive}`. `${name}` will use the default order of execution");return}const i=directiveOrder.indexOf(n);directiveOrder.splice(i>=0?i:directiveOrder.indexOf("DEFAULT"),0,e)}}}function directives(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let a=Object.entries(e._x_virtualDirectives).map(([l,u])=>({name:l,value:u})),o=attributesOnly(a);a=a.map(l=>o.find(u=>u.name===l.name)?{name:`x-bind:${l.name}`,value:`"${l.value}"`}:l),t=t.concat(a)}let i={};return t.map(toTransformedAttributes((a,o)=>i[a]=o)).filter(outNonAlpineAttributes).map(toParsedDirectives(i,n)).sort(byPriority).map(a=>getDirectiveHandler(e,a))}function attributesOnly(e){return Array.from(e).map(toTransformedAttributes()).filter(t=>!outNonAlpineAttributes(t))}var isDeferringHandlers=!1,directiveHandlerStacks=new Map,currentHandlerStackKey=Symbol();function deferHandlingDirectives(e){isDeferringHandlers=!0;let t=Symbol();currentHandlerStackKey=t,directiveHandlerStacks.set(t,[]);let n=()=>{for(;directiveHandlerStacks.get(t).length;)directiveHandlerStacks.get(t).shift()();directiveHandlerStacks.delete(t)},i=()=>{isDeferringHandlers=!1,n()};e(n),i()}function getElementBoundUtilities(e){let t=[],n=l=>t.push(l),[i,r]=elementBoundEffect(e);return t.push(r),[{Alpine:alpine_default,effect:i,cleanup:n,evaluateLater:evaluateLater.bind(evaluateLater,e),evaluate:evaluate.bind(evaluate,e)},()=>t.forEach(l=>l())]}function getDirectiveHandler(e,t){let n=()=>{},i=directiveHandlers[t.type]||n,[r,a]=getElementBoundUtilities(e);onAttributeRemoved(e,t.original,a);let o=()=>{e._x_ignore||e._x_ignoreSelf||(i.inline&&i.inline(e,t,r),i=i.bind(i,e,t,r),isDeferringHandlers?directiveHandlerStacks.get(currentHandlerStackKey).push(i):i())};return o.runCleanups=a,o}var startingWith=(e,t)=>({name:n,value:i})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:i}),into=e=>e;function toTransformedAttributes(e=()=>{}){return({name:t,value:n})=>{let{name:i,value:r}=attributeTransformers.reduce((a,o)=>o(a),{name:t,value:n});return i!==t&&e(i,t),{name:i,value:r}}}var attributeTransformers=[];function mapAttributes(e){attributeTransformers.push(e)}function outNonAlpineAttributes({name:e}){return alpineAttributeRegex().test(e)}var alpineAttributeRegex=()=>new RegExp(`^${prefixAsString}([^:^.]+)\\b`);function toParsedDirectives(e,t){return({name:n,value:i})=>{let r=n.match(alpineAttributeRegex()),a=n.match(/:([a-zA-Z0-9\-_:]+)/),o=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],l=t||e[n]||n;return{type:r?r[1]:null,value:a?a[1]:null,modifiers:o.map(u=>u.replace(".","")),expression:i,original:l}}}var DEFAULT="DEFAULT",directiveOrder=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",DEFAULT,"teleport"];function byPriority(e,t){let n=directiveOrder.indexOf(e.type)===-1?DEFAULT:e.type,i=directiveOrder.indexOf(t.type)===-1?DEFAULT:t.type;return directiveOrder.indexOf(n)-directiveOrder.indexOf(i)}var tickStack=[],isHolding=!1;function nextTick(e=()=>{}){return queueMicrotask(()=>{isHolding||setTimeout(()=>{releaseNextTicks()})}),new Promise(t=>{tickStack.push(()=>{e(),t()})})}function releaseNextTicks(){for(isHolding=!1;tickStack.length;)tickStack.shift()()}function holdNextTicks(){isHolding=!0}function setClasses(e,t){return Array.isArray(t)?setClassesFromString(e,t.join(" ")):typeof t=="object"&&t!==null?setClassesFromObject(e,t):typeof t=="function"?setClasses(e,t()):setClassesFromString(e,t)}function setClassesFromString(e,t){let n=r=>r.split(" ").filter(a=>!e.classList.contains(a)).filter(Boolean),i=r=>(e.classList.add(...r),()=>{e.classList.remove(...r)});return t=t===!0?t="":t||"",i(n(t))}function setClassesFromObject(e,t){let n=l=>l.split(" ").filter(Boolean),i=Object.entries(t).flatMap(([l,u])=>u?n(l):!1).filter(Boolean),r=Object.entries(t).flatMap(([l,u])=>u?!1:n(l)).filter(Boolean),a=[],o=[];return r.forEach(l=>{e.classList.contains(l)&&(e.classList.remove(l),o.push(l))}),i.forEach(l=>{e.classList.contains(l)||(e.classList.add(l),a.push(l))}),()=>{o.forEach(l=>e.classList.add(l)),a.forEach(l=>e.classList.remove(l))}}function setStyles(e,t){return typeof t=="object"&&t!==null?setStylesFromObject(e,t):setStylesFromString(e,t)}function setStylesFromObject(e,t){let n={};return Object.entries(t).forEach(([i,r])=>{n[i]=e.style[i],i.startsWith("--")||(i=kebabCase(i)),e.style.setProperty(i,r)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{setStyles(e,n)}}function setStylesFromString(e,t){let n=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",n||"")}}function kebabCase(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function once(e,t=()=>{}){let n=!1;return function(){n?t.apply(this,arguments):(n=!0,e.apply(this,arguments))}}directive("transition",(e,{value:t,modifiers:n,expression:i},{evaluate:r})=>{typeof i=="function"&&(i=r(i)),i!==!1&&(!i||typeof i=="boolean"?registerTransitionsFromHelper(e,n,t):registerTransitionsFromClassString(e,i,t))});function registerTransitionsFromClassString(e,t,n){registerTransitionObject(e,setClasses,""),{enter:r=>{e._x_transition.enter.during=r},"enter-start":r=>{e._x_transition.enter.start=r},"enter-end":r=>{e._x_transition.enter.end=r},leave:r=>{e._x_transition.leave.during=r},"leave-start":r=>{e._x_transition.leave.start=r},"leave-end":r=>{e._x_transition.leave.end=r}}[n](t)}function registerTransitionsFromHelper(e,t,n){registerTransitionObject(e,setStyles);let i=!t.includes("in")&&!t.includes("out")&&!n,r=i||t.includes("in")||["enter"].includes(n),a=i||t.includes("out")||["leave"].includes(n);t.includes("in")&&!i&&(t=t.filter((M,S)=>S<t.indexOf("out"))),t.includes("out")&&!i&&(t=t.filter((M,S)=>S>t.indexOf("out")));let o=!t.includes("opacity")&&!t.includes("scale"),l=o||t.includes("opacity"),u=o||t.includes("scale"),d=l?0:1,m=u?modifierValue(t,"scale",95)/100:1,g=modifierValue(t,"delay",0)/1e3,_=modifierValue(t,"origin","center"),v="opacity, transform",w=modifierValue(t,"duration",150)/1e3,E=modifierValue(t,"duration",75)/1e3,x="cubic-bezier(0.4, 0.0, 0.2, 1)";r&&(e._x_transition.enter.during={transformOrigin:_,transitionDelay:`${g}s`,transitionProperty:v,transitionDuration:`${w}s`,transitionTimingFunction:x},e._x_transition.enter.start={opacity:d,transform:`scale(${m})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),a&&(e._x_transition.leave.during={transformOrigin:_,transitionDelay:`${g}s`,transitionProperty:v,transitionDuration:`${E}s`,transitionTimingFunction:x},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:d,transform:`scale(${m})`})}function registerTransitionObject(e,t,n={}){e._x_transition||(e._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(i=()=>{},r=()=>{}){transition(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},i,r)},out(i=()=>{},r=()=>{}){transition(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},i,r)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,n,i){const r=document.visibilityState==="visible"?requestAnimationFrame:setTimeout;let a=()=>r(n);if(t){e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(n):a():e._x_transition?e._x_transition.in(n):a();return}e._x_hidePromise=e._x_transition?new Promise((o,l)=>{e._x_transition.out(()=>{},()=>o(i)),e._x_transitioning&&e._x_transitioning.beforeCancel(()=>l({isFromCancelledTransition:!0}))}):Promise.resolve(i),queueMicrotask(()=>{let o=closestHide(e);o?(o._x_hideChildren||(o._x_hideChildren=[]),o._x_hideChildren.push(e)):r(()=>{let l=u=>{let d=Promise.all([u._x_hidePromise,...(u._x_hideChildren||[]).map(l)]).then(([m])=>m());return delete u._x_hidePromise,delete u._x_hideChildren,d};l(e).catch(u=>{if(!u.isFromCancelledTransition)throw u})})})};function closestHide(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:closestHide(t)}function transition(e,t,{during:n,start:i,end:r}={},a=()=>{},o=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(n).length===0&&Object.keys(i).length===0&&Object.keys(r).length===0){a(),o();return}let l,u,d;performTransition(e,{start(){l=t(e,i)},during(){u=t(e,n)},before:a,end(){l(),d=t(e,r)},after:o,cleanup(){u(),d()}})}function performTransition(e,t){let n,i,r,a=once(()=>{mutateDom(()=>{n=!0,i||t.before(),r||(t.end(),releaseNextTicks()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(o){this.beforeCancels.push(o)},cancel:once(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();a()}),finish:a},mutateDom(()=>{t.start(),t.during()}),holdNextTicks(),requestAnimationFrame(()=>{if(n)return;let o=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,l=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;o===0&&(o=Number(getComputedStyle(e).animationDuration.replace("s",""))*1e3),mutateDom(()=>{t.before()}),i=!0,requestAnimationFrame(()=>{n||(mutateDom(()=>{t.end()}),releaseNextTicks(),setTimeout(e._x_transitioning.finish,o+l),r=!0)})})}function modifierValue(e,t,n){if(e.indexOf(t)===-1)return n;const i=e[e.indexOf(t)+1];if(!i||t==="scale"&&isNaN(i))return n;if(t==="duration"||t==="delay"){let r=i.match(/([0-9]+)ms/);if(r)return r[1]}return t==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[i,e[e.indexOf(t)+2]].join(" "):i}var isCloning=!1;function skipDuringClone(e,t=()=>{}){return(...n)=>isCloning?t(...n):e(...n)}function onlyDuringClone(e){return(...t)=>isCloning&&e(...t)}var interceptors=[];function interceptClone(e){interceptors.push(e)}function cloneNode(e,t){interceptors.forEach(n=>n(e,t)),isCloning=!0,dontRegisterReactiveSideEffects(()=>{initTree(t,(n,i)=>{i(n,()=>{})})}),isCloning=!1}var isCloningLegacy=!1;function clone$3(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),isCloning=!0,isCloningLegacy=!0,dontRegisterReactiveSideEffects(()=>{cloneTree(t)}),isCloning=!1,isCloningLegacy=!1}function cloneTree(e){let t=!1;initTree(e,(i,r)=>{walk(i,(a,o)=>{if(t&&isRoot(a))return o();t=!0,r(a,o)})})}function dontRegisterReactiveSideEffects(e){let t=effect$3;overrideEffect((n,i)=>{let r=t(n);return release(r),()=>{}}),e(),overrideEffect(t)}function bind(e,t,n,i=[]){switch(e._x_bindings||(e._x_bindings=reactive({})),e._x_bindings[t]=n,t=i.includes("camel")?camelCase$2(t):t,t){case"value":bindInputValue(e,n);break;case"style":bindStyles(e,n);break;case"class":bindClasses(e,n);break;case"selected":case"checked":bindAttributeAndProperty(e,t,n);break;default:bindAttribute(e,t,n);break}}function bindInputValue(e,t){if(e.type==="radio")e.attributes.value===void 0&&(e.value=t),window.fromModel&&(typeof t=="boolean"?e.checked=safeParseBoolean(e.value)===t:e.checked=checkedAttrLooseCompare(e.value,t));else if(e.type==="checkbox")Number.isInteger(t)?e.value=t:!Array.isArray(t)&&typeof t!="boolean"&&![null,void 0].includes(t)?e.value=String(t):Array.isArray(t)?e.checked=t.some(n=>checkedAttrLooseCompare(n,e.value)):e.checked=!!t;else if(e.tagName==="SELECT")updateSelect(e,t);else{if(e.value===t)return;e.value=t===void 0?"":t}}function bindClasses(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=setClasses(e,t)}function bindStyles(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=setStyles(e,t)}function bindAttributeAndProperty(e,t,n){bindAttribute(e,t,n),setPropertyIfChanged(e,t,n)}function bindAttribute(e,t,n){[null,void 0,!1].includes(n)&&attributeShouldntBePreservedIfFalsy(t)?e.removeAttribute(t):(isBooleanAttr(t)&&(n=t),setIfChanged(e,t,n))}function setIfChanged(e,t,n){e.getAttribute(t)!=n&&e.setAttribute(t,n)}function setPropertyIfChanged(e,t,n){e[t]!==n&&(e[t]=n)}function updateSelect(e,t){const n=[].concat(t).map(i=>i+"");Array.from(e.options).forEach(i=>{i.selected=n.includes(i.value)})}function camelCase$2(e){return e.toLowerCase().replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function checkedAttrLooseCompare(e,t){return e==t}function safeParseBoolean(e){return[1,"1","true","on","yes",!0].includes(e)?!0:[0,"0","false","off","no",!1].includes(e)?!1:e?!!e:null}function isBooleanAttr(e){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(e)}function attributeShouldntBePreservedIfFalsy(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}function getBinding(e,t,n){return e._x_bindings&&e._x_bindings[t]!==void 0?e._x_bindings[t]:getAttributeBinding(e,t,n)}function extractProp(e,t,n,i=!0){if(e._x_bindings&&e._x_bindings[t]!==void 0)return e._x_bindings[t];if(e._x_inlineBindings&&e._x_inlineBindings[t]!==void 0){let r=e._x_inlineBindings[t];return r.extract=i,dontAutoEvaluateFunctions(()=>evaluate(e,r.expression))}return getAttributeBinding(e,t,n)}function getAttributeBinding(e,t,n){let i=e.getAttribute(t);return i===null?typeof n=="function"?n():n:i===""?!0:isBooleanAttr(t)?!![t,"true"].includes(i):i}function debounce$4(e,t){var n;return function(){var i=this,r=arguments,a=function(){n=null,e.apply(i,r)};clearTimeout(n),n=setTimeout(a,t)}}function throttle(e,t){let n;return function(){let i=this,r=arguments;n||(e.apply(i,r),n=!0,setTimeout(()=>n=!1,t))}}function entangle({get:e,set:t},{get:n,set:i}){let r=!0,a,o=effect$3(()=>{const l=e(),u=n();if(r)i(cloneIfObject(l)),r=!1,a=JSON.stringify(l);else{const d=JSON.stringify(l);d!==a?(i(cloneIfObject(l)),a=d):(t(cloneIfObject(u)),a=JSON.stringify(u))}JSON.stringify(n()),JSON.stringify(e())});return()=>{release(o)}}function cloneIfObject(e){return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function plugin(e){(Array.isArray(e)?e:[e]).forEach(n=>n(alpine_default))}var stores={},isReactive=!1;function store(e,t){if(isReactive||(stores=reactive(stores),isReactive=!0),t===void 0)return stores[e];stores[e]=t,typeof t=="object"&&t!==null&&t.hasOwnProperty("init")&&typeof t.init=="function"&&stores[e].init(),initInterceptors2(stores[e])}function getStores(){return stores}var binds={};function bind2(e,t){let n=typeof t!="function"?()=>t:t;return e instanceof Element?applyBindingsObject(e,n()):(binds[e]=n,()=>{})}function injectBindingProviders(e){return Object.entries(binds).forEach(([t,n])=>{Object.defineProperty(e,t,{get(){return(...i)=>n(...i)}})}),e}function applyBindingsObject(e,t,n){let i=[];for(;i.length;)i.pop()();let r=Object.entries(t).map(([o,l])=>({name:o,value:l})),a=attributesOnly(r);return r=r.map(o=>a.find(l=>l.name===o.name)?{name:`x-bind:${o.name}`,value:`"${o.value}"`}:o),directives(e,r,n).map(o=>{i.push(o.runCleanups),o()}),()=>{for(;i.length;)i.pop()()}}var datas={};function data(e,t){datas[e]=t}function injectDataProviders(e,t){return Object.entries(datas).forEach(([n,i])=>{Object.defineProperty(e,n,{get(){return(...r)=>i.bind(t)(...r)},enumerable:!1})}),e}var Alpine={get reactive(){return reactive},get release(){return release},get effect(){return effect$3},get raw(){return raw},version:"3.13.3",flushAndStopDeferringMutations,dontAutoEvaluateFunctions,disableEffectScheduling,startObservingMutations,stopObservingMutations,setReactivityEngine,onAttributeRemoved,onAttributesAdded,closestDataStack,skipDuringClone,onlyDuringClone,addRootSelector,addInitSelector,interceptClone,addScopeToNode,deferMutations,mapAttributes,evaluateLater,interceptInit,setEvaluator,mergeProxies,extractProp,findClosest,onElRemoved,closestRoot,destroyTree,interceptor,transition,setStyles,mutateDom,directive,entangle,throttle,debounce:debounce$4,evaluate,initTree,nextTick,prefixed:prefix,prefix:setPrefix,plugin,magic,store,start:start$1,clone:clone$3,cloneNode,bound:getBinding,$data:scope,walk,data,bind:bind2},alpine_default=Alpine;function makeMap(e,t){const n=Object.create(null),i=e.split(",");for(let r=0;r<i.length;r++)n[i[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}var EMPTY_OBJ=Object.freeze({}),hasOwnProperty$b=Object.prototype.hasOwnProperty,hasOwn=(e,t)=>hasOwnProperty$b.call(e,t),isArray$c=Array.isArray,isMap=e=>toTypeString(e)==="[object Map]",isString=e=>typeof e=="string",isSymbol$6=e=>typeof e=="symbol",isObject$9=e=>e!==null&&typeof e=="object",objectToString$2=Object.prototype.toString,toTypeString=e=>objectToString$2.call(e),toRawType=e=>toTypeString(e).slice(8,-1),isIntegerKey=e=>isString(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,cacheStringFunction=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},capitalize$2=cacheStringFunction(e=>e.charAt(0).toUpperCase()+e.slice(1)),hasChanged=(e,t)=>e!==t&&(e===e||t===t),targetMap=new WeakMap,effectStack=[],activeEffect,ITERATE_KEY=Symbol("iterate"),MAP_KEY_ITERATE_KEY=Symbol("Map key iterate");function isEffect(e){return e&&e._isEffect===!0}function effect2(e,t=EMPTY_OBJ){isEffect(e)&&(e=e.raw);const n=createReactiveEffect(e,t);return t.lazy||n(),n}function stop(e){e.active&&(cleanup(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var uid$1=0;function createReactiveEffect(e,t){const n=function(){if(!n.active)return e();if(!effectStack.includes(n)){cleanup(n);try{return enableTracking(),effectStack.push(n),activeEffect=n,e()}finally{effectStack.pop(),resetTracking(),activeEffect=effectStack[effectStack.length-1]}}};return n.id=uid$1++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}function cleanup(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}var shouldTrack=!0,trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function enableTracking(){trackStack.push(shouldTrack),shouldTrack=!0}function resetTracking(){const e=trackStack.pop();shouldTrack=e===void 0?!0:e}function track(e,t,n){if(!shouldTrack||activeEffect===void 0)return;let i=targetMap.get(e);i||targetMap.set(e,i=new Map);let r=i.get(n);r||i.set(n,r=new Set),r.has(activeEffect)||(r.add(activeEffect),activeEffect.deps.push(r),activeEffect.options.onTrack&&activeEffect.options.onTrack({effect:activeEffect,target:e,type:t,key:n}))}function trigger(e,t,n,i,r,a){const o=targetMap.get(e);if(!o)return;const l=new Set,u=m=>{m&&m.forEach(g=>{(g!==activeEffect||g.allowRecurse)&&l.add(g)})};if(t==="clear")o.forEach(u);else if(n==="length"&&isArray$c(e))o.forEach((m,g)=>{(g==="length"||g>=i)&&u(m)});else switch(n!==void 0&&u(o.get(n)),t){case"add":isArray$c(e)?isIntegerKey(n)&&u(o.get("length")):(u(o.get(ITERATE_KEY)),isMap(e)&&u(o.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$c(e)||(u(o.get(ITERATE_KEY)),isMap(e)&&u(o.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(e)&&u(o.get(ITERATE_KEY));break}const d=m=>{m.options.onTrigger&&m.options.onTrigger({effect:m,target:e,key:n,type:t,newValue:i,oldValue:r,oldTarget:a}),m.options.scheduler?m.options.scheduler(m):m()};l.forEach(d)}var isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(isSymbol$6)),get2=createGetter(),readonlyGet=createGetter(!0),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=toRaw(this);for(let a=0,o=this.length;a<o;a++)track(i,"get",a+"");const r=i[t](...n);return r===-1||r===!1?i[t](...n.map(toRaw)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){pauseTracking();const i=toRaw(this)[t].apply(this,n);return resetTracking(),i}}),e}function createGetter(e=!1,t=!1){return function(i,r,a){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_raw"&&a===(e?t?shallowReadonlyMap:readonlyMap:t?shallowReactiveMap:reactiveMap).get(i))return i;const o=isArray$c(i);if(!e&&o&&hasOwn(arrayInstrumentations,r))return Reflect.get(arrayInstrumentations,r,a);const l=Reflect.get(i,r,a);return(isSymbol$6(r)?builtInSymbols.has(r):isNonTrackableKeys(r))||(e||track(i,"get",r),t)?l:isRef(l)?!o||!isIntegerKey(r)?l.value:l:isObject$9(l)?e?readonly(l):reactive2(l):l}}var set2=createSetter();function createSetter(e=!1){return function(n,i,r,a){let o=n[i];if(!e&&(r=toRaw(r),o=toRaw(o),!isArray$c(n)&&isRef(o)&&!isRef(r)))return o.value=r,!0;const l=isArray$c(n)&&isIntegerKey(i)?Number(i)<n.length:hasOwn(n,i),u=Reflect.set(n,i,r,a);return n===toRaw(a)&&(l?hasChanged(r,o)&&trigger(n,"set",i,r,o):trigger(n,"add",i,r)),u}}function deleteProperty(e,t){const n=hasOwn(e,t),i=e[t],r=Reflect.deleteProperty(e,t);return r&&n&&trigger(e,"delete",t,void 0,i),r}function has$2(e,t){const n=Reflect.has(e,t);return(!isSymbol$6(t)||!builtInSymbols.has(t))&&track(e,"has",t),n}function ownKeys(e){return track(e,"iterate",isArray$c(e)?"length":ITERATE_KEY),Reflect.ownKeys(e)}var mutableHandlers={get:get2,set:set2,deleteProperty,has:has$2,ownKeys},readonlyHandlers={get:readonlyGet,set(e,t){return console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},toReactive=e=>isObject$9(e)?reactive2(e):e,toReadonly=e=>isObject$9(e)?readonly(e):e,toShallow=e=>e,getProto=e=>Reflect.getPrototypeOf(e);function get$1$1(e,t,n=!1,i=!1){e=e.__v_raw;const r=toRaw(e),a=toRaw(t);t!==a&&!n&&track(r,"get",t),!n&&track(r,"get",a);const{has:o}=getProto(r),l=i?toShallow:n?toReadonly:toReactive;if(o.call(r,t))return l(e.get(t));if(o.call(r,a))return l(e.get(a));e!==r&&e.get(t)}function has$1$1(e,t=!1){const n=this.__v_raw,i=toRaw(n),r=toRaw(e);return e!==r&&!t&&track(i,"has",e),!t&&track(i,"has",r),e===r?n.has(e):n.has(e)||n.has(r)}function size(e,t=!1){return e=e.__v_raw,!t&&track(toRaw(e),"iterate",ITERATE_KEY),Reflect.get(e,"size",e)}function add(e){e=toRaw(e);const t=toRaw(this);return getProto(t).has.call(t,e)||(t.add(e),trigger(t,"add",e,e)),this}function set$1$1(e,t){t=toRaw(t);const n=toRaw(this),{has:i,get:r}=getProto(n);let a=i.call(n,e);a?checkIdentityKeys(n,i,e):(e=toRaw(e),a=i.call(n,e));const o=r.call(n,e);return n.set(e,t),a?hasChanged(t,o)&&trigger(n,"set",e,t,o):trigger(n,"add",e,t),this}function deleteEntry(e){const t=toRaw(this),{has:n,get:i}=getProto(t);let r=n.call(t,e);r?checkIdentityKeys(t,n,e):(e=toRaw(e),r=n.call(t,e));const a=i?i.call(t,e):void 0,o=t.delete(e);return r&&trigger(t,"delete",e,void 0,a),o}function clear(){const e=toRaw(this),t=e.size!==0,n=isMap(e)?new Map(e):new Set(e),i=e.clear();return t&&trigger(e,"clear",void 0,void 0,n),i}function createForEach(e,t){return function(i,r){const a=this,o=a.__v_raw,l=toRaw(o),u=t?toShallow:e?toReadonly:toReactive;return!e&&track(l,"iterate",ITERATE_KEY),o.forEach((d,m)=>i.call(r,u(d),u(m),a))}}function createIterableMethod(e,t,n){return function(...i){const r=this.__v_raw,a=toRaw(r),o=isMap(a),l=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,d=r[e](...i),m=n?toShallow:t?toReadonly:toReactive;return!t&&track(a,"iterate",u?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:g,done:_}=d.next();return _?{value:g,done:_}:{value:l?[m(g[0]),m(g[1])]:m(g),done:_}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${capitalize$2(e)} operation ${n}failed: target is readonly.`,toRaw(this))}return e==="delete"?!1:this}}function createInstrumentations(){const e={get(a){return get$1$1(this,a)},get size(){return size(this)},has:has$1$1,add,set:set$1$1,delete:deleteEntry,clear,forEach:createForEach(!1,!1)},t={get(a){return get$1$1(this,a,!1,!0)},get size(){return size(this)},has:has$1$1,add,set:set$1$1,delete:deleteEntry,clear,forEach:createForEach(!1,!0)},n={get(a){return get$1$1(this,a,!0)},get size(){return size(this,!0)},has(a){return has$1$1.call(this,a,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},i={get(a){return get$1$1(this,a,!0,!0)},get size(){return size(this,!0)},has(a){return has$1$1.call(this,a,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=createIterableMethod(a,!1,!1),n[a]=createIterableMethod(a,!0,!1),t[a]=createIterableMethod(a,!1,!0),i[a]=createIterableMethod(a,!0,!0)}),[e,n,t,i]}var[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(e,t){const n=t?e?shallowReadonlyInstrumentations:shallowInstrumentations:e?readonlyInstrumentations:mutableInstrumentations;return(i,r,a)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?i:Reflect.get(hasOwn(n,r)&&r in i?n:i,r,a)}var mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)};function checkIdentityKeys(e,t,n){const i=toRaw(n);if(i!==n&&t.call(e,i)){const r=toRawType(e);console.warn(`Reactive ${r} contains both the raw and reactive versions of the same object${r==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(e){return e.__v_skip||!Object.isExtensible(e)?0:targetTypeMap(toRawType(e))}function reactive2(e){return e&&e.__v_isReadonly?e:createReactiveObject(e,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function readonly(e){return createReactiveObject(e,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function createReactiveObject(e,t,n,i,r){if(!isObject$9(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=r.get(e);if(a)return a;const o=getTargetType(e);if(o===0)return e;const l=new Proxy(e,o===2?i:n);return r.set(e,l),l}function toRaw(e){return e&&toRaw(e.__v_raw)||e}function isRef(e){return!!(e&&e.__v_isRef===!0)}magic("nextTick",()=>nextTick);magic("dispatch",e=>dispatch.bind(dispatch,e));magic("watch",(e,{evaluateLater:t,effect:n})=>(i,r)=>{let a=t(i),o=!0,l,u=n(()=>a(d=>{JSON.stringify(d),o?l=d:queueMicrotask(()=>{r(d,l),l=d}),o=!1}));e._x_effects.delete(u)});magic("store",getStores);magic("data",e=>scope(e));magic("root",e=>closestRoot(e));magic("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=mergeProxies(getArrayOfRefObject(e))),e._x_refs_proxy));function getArrayOfRefObject(e){let t=[],n=e;for(;n;)n._x_refs&&t.push(n._x_refs),n=n.parentNode;return t}var globalIdMemo={};function findAndIncrementId(e){return globalIdMemo[e]||(globalIdMemo[e]=0),++globalIdMemo[e]}function closestIdRoot(e,t){return findClosest(e,n=>{if(n._x_ids&&n._x_ids[t])return!0})}function setIdRoot(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=findAndIncrementId(t))}magic("id",e=>(t,n=null)=>{let i=closestIdRoot(e,t),r=i?i._x_ids[t]:findAndIncrementId(t);return n?`${t}-${r}-${n}`:`${t}-${r}`});magic("el",e=>e);warnMissingPluginMagic("Focus","focus","focus");warnMissingPluginMagic("Persist","persist","persist");function warnMissingPluginMagic(e,t,n){magic(t,i=>warn(`You can't use [$${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,i))}directive("modelable",(e,{expression:t},{effect:n,evaluateLater:i,cleanup:r})=>{let a=i(t),o=()=>{let m;return a(g=>m=g),m},l=i(`${t} = __placeholder`),u=m=>l(()=>{},{scope:{__placeholder:m}}),d=o();u(d),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let m=e._x_model.get,g=e._x_model.set,_=entangle({get(){return m()},set(v){g(v)}},{get(){return o()},set(v){u(v)}});r(_)})});directive("teleport",(e,{modifiers:t,expression:n},{cleanup:i})=>{e.tagName.toLowerCase()!=="template"&&warn("x-teleport can only be used on a <template> tag",e);let r=getTarget(n),a=e.content.cloneNode(!0).firstElementChild;e._x_teleport=a,a._x_teleportBack=e,e.setAttribute("data-teleport-template",!0),a.setAttribute("data-teleport-target",!0),e._x_forwardEvents&&e._x_forwardEvents.forEach(l=>{a.addEventListener(l,u=>{u.stopPropagation(),e.dispatchEvent(new u.constructor(u.type,u))})}),addScopeToNode(a,{},e);let o=(l,u,d)=>{d.includes("prepend")?u.parentNode.insertBefore(l,u):d.includes("append")?u.parentNode.insertBefore(l,u.nextSibling):u.appendChild(l)};mutateDom(()=>{o(a,r,t),initTree(a),a._x_ignore=!0}),e._x_teleportPutBack=()=>{let l=getTarget(n);mutateDom(()=>{o(e._x_teleport,l,t)})},i(()=>a.remove())});var teleportContainerDuringClone=document.createElement("div");function getTarget(e){let t=skipDuringClone(()=>document.querySelector(e),()=>teleportContainerDuringClone)();return t||warn(`Cannot find x-teleport element for selector: "${e}"`),t}var handler=()=>{};handler.inline=(e,{modifiers:t},{cleanup:n})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,n(()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})};directive("ignore",handler);directive("effect",skipDuringClone((e,{expression:t},{effect:n})=>{n(evaluateLater(e,t))}));function on(e,t,n,i){let r=e,a=u=>i(u),o={},l=(u,d)=>m=>d(u,m);if(n.includes("dot")&&(t=dotSyntax(t)),n.includes("camel")&&(t=camelCase2(t)),n.includes("passive")&&(o.passive=!0),n.includes("capture")&&(o.capture=!0),n.includes("window")&&(r=window),n.includes("document")&&(r=document),n.includes("debounce")){let u=n[n.indexOf("debounce")+1]||"invalid-wait",d=isNumeric$1(u.split("ms")[0])?Number(u.split("ms")[0]):250;a=debounce$4(a,d)}if(n.includes("throttle")){let u=n[n.indexOf("throttle")+1]||"invalid-wait",d=isNumeric$1(u.split("ms")[0])?Number(u.split("ms")[0]):250;a=throttle(a,d)}return n.includes("prevent")&&(a=l(a,(u,d)=>{d.preventDefault(),u(d)})),n.includes("stop")&&(a=l(a,(u,d)=>{d.stopPropagation(),u(d)})),n.includes("self")&&(a=l(a,(u,d)=>{d.target===e&&u(d)})),(n.includes("away")||n.includes("outside"))&&(r=document,a=l(a,(u,d)=>{e.contains(d.target)||d.target.isConnected!==!1&&(e.offsetWidth<1&&e.offsetHeight<1||e._x_isShown!==!1&&u(d))})),n.includes("once")&&(a=l(a,(u,d)=>{u(d),r.removeEventListener(t,a,o)})),a=l(a,(u,d)=>{isKeyEvent(t)&&isListeningForASpecificKeyThatHasntBeenPressed(d,n)||u(d)}),r.addEventListener(t,a,o),()=>{r.removeEventListener(t,a,o)}}function dotSyntax(e){return e.replace(/-/g,".")}function camelCase2(e){return e.toLowerCase().replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function isNumeric$1(e){return!Array.isArray(e)&&!isNaN(e)}function kebabCase2(e){return[" ","_"].includes(e)?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function isKeyEvent(e){return["keydown","keyup"].includes(e)}function isListeningForASpecificKeyThatHasntBeenPressed(e,t){let n=t.filter(a=>!["window","document","prevent","stop","once","capture"].includes(a));if(n.includes("debounce")){let a=n.indexOf("debounce");n.splice(a,isNumeric$1((n[a+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.includes("throttle")){let a=n.indexOf("throttle");n.splice(a,isNumeric$1((n[a+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.length===0||n.length===1&&keyToModifiers(e.key).includes(n[0]))return!1;const r=["ctrl","shift","alt","meta","cmd","super"].filter(a=>n.includes(a));return n=n.filter(a=>!r.includes(a)),!(r.length>0&&r.filter(o=>((o==="cmd"||o==="super")&&(o="meta"),e[`${o}Key`])).length===r.length&&keyToModifiers(e.key).includes(n[0]))}function keyToModifiers(e){if(!e)return[];e=kebabCase2(e);let t={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",equal:"=",minus:"-",underscore:"_"};return t[e]=e,Object.keys(t).map(n=>{if(t[n]===e)return n}).filter(n=>n)}directive("model",(e,{modifiers:t,expression:n},{effect:i,cleanup:r})=>{let a=e;t.includes("parent")&&(a=e.parentNode);let o=evaluateLater(a,n),l;typeof n=="string"?l=evaluateLater(a,`${n} = __placeholder`):typeof n=="function"&&typeof n()=="string"?l=evaluateLater(a,`${n()} = __placeholder`):l=()=>{};let u=()=>{let _;return o(v=>_=v),isGetterSetter(_)?_.get():_},d=_=>{let v;o(w=>v=w),isGetterSetter(v)?v.set(_):l(()=>{},{scope:{__placeholder:_}})};typeof n=="string"&&e.type==="radio"&&mutateDom(()=>{e.hasAttribute("name")||e.setAttribute("name",n)});var m=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)||t.includes("lazy")?"change":"input";let g=isCloning?()=>{}:on(e,m,t,_=>{d(getInputValue(e,t,_,u()))});if(t.includes("fill")&&([null,""].includes(u())||e.type==="checkbox"&&Array.isArray(u()))&&e.dispatchEvent(new Event(m,{})),e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=g,r(()=>e._x_removeModelListeners.default()),e.form){let _=on(e.form,"reset",[],v=>{nextTick(()=>e._x_model&&e._x_model.set(e.value))});r(()=>_())}e._x_model={get(){return u()},set(_){d(_)}},e._x_forceModelUpdate=_=>{_===void 0&&typeof n=="string"&&n.match(/\./)&&(_=""),window.fromModel=!0,mutateDom(()=>bind(e,"value",_)),delete window.fromModel},i(()=>{let _=u();t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(_)})});function getInputValue(e,t,n,i){return mutateDom(()=>{if(n instanceof CustomEvent&&n.detail!==void 0)return n.detail!==null&&n.detail!==void 0?n.detail:n.target.value;if(e.type==="checkbox")if(Array.isArray(i)){let r=null;return t.includes("number")?r=safeParseNumber(n.target.value):t.includes("boolean")?r=safeParseBoolean(n.target.value):r=n.target.value,n.target.checked?i.concat([r]):i.filter(a=>!checkedAttrLooseCompare2(a,r))}else return n.target.checked;else return e.tagName.toLowerCase()==="select"&&e.multiple?t.includes("number")?Array.from(n.target.selectedOptions).map(r=>{let a=r.value||r.text;return safeParseNumber(a)}):t.includes("boolean")?Array.from(n.target.selectedOptions).map(r=>{let a=r.value||r.text;return safeParseBoolean(a)}):Array.from(n.target.selectedOptions).map(r=>r.value||r.text):t.includes("number")?safeParseNumber(n.target.value):t.includes("boolean")?safeParseBoolean(n.target.value):t.includes("trim")?n.target.value.trim():n.target.value})}function safeParseNumber(e){let t=e?parseFloat(e):null;return isNumeric2(t)?t:e}function checkedAttrLooseCompare2(e,t){return e==t}function isNumeric2(e){return!Array.isArray(e)&&!isNaN(e)}function isGetterSetter(e){return e!==null&&typeof e=="object"&&typeof e.get=="function"&&typeof e.set=="function"}directive("cloak",e=>queueMicrotask(()=>mutateDom(()=>e.removeAttribute(prefix("cloak")))));addInitSelector(()=>`[${prefix("init")}]`);directive("init",skipDuringClone((e,{expression:t},{evaluate:n})=>typeof t=="string"?!!t.trim()&&n(t,{},!1):n(t,{},!1)));directive("text",(e,{expression:t},{effect:n,evaluateLater:i})=>{let r=i(t);n(()=>{r(a=>{mutateDom(()=>{e.textContent=a})})})});directive("html",(e,{expression:t},{effect:n,evaluateLater:i})=>{let r=i(t);n(()=>{r(a=>{mutateDom(()=>{e.innerHTML=a,e._x_ignoreSelf=!0,initTree(e),delete e._x_ignoreSelf})})})});mapAttributes(startingWith(":",into(prefix("bind:"))));var handler2=(e,{value:t,modifiers:n,expression:i,original:r},{effect:a})=>{if(!t){let l={};injectBindingProviders(l),evaluateLater(e,i)(d=>{applyBindingsObject(e,d,r)},{scope:l});return}if(t==="key")return storeKeyForXFor(e,i);if(e._x_inlineBindings&&e._x_inlineBindings[t]&&e._x_inlineBindings[t].extract)return;let o=evaluateLater(e,i);a(()=>o(l=>{l===void 0&&typeof i=="string"&&i.match(/\./)&&(l=""),mutateDom(()=>bind(e,t,l,n))}))};handler2.inline=(e,{value:t,modifiers:n,expression:i})=>{t&&(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[t]={expression:i,extract:!1})};directive("bind",handler2);function storeKeyForXFor(e,t){e._x_keyExpression=t}addRootSelector(()=>`[${prefix("data")}]`);directive("data",(e,{expression:t},{cleanup:n})=>{if(shouldSkipRegisteringDataDuringClone(e))return;t=t===""?"{}":t;let i={};injectMagics(i,e);let r={};injectDataProviders(r,i);let a=evaluate(e,t,{scope:r});(a===void 0||a===!0)&&(a={}),injectMagics(a,e);let o=reactive(a);initInterceptors2(o);let l=addScopeToNode(e,o);o.init&&evaluate(e,o.init),n(()=>{o.destroy&&evaluate(e,o.destroy),l()})});interceptClone((e,t)=>{e._x_dataStack&&(t._x_dataStack=e._x_dataStack,t.setAttribute("data-has-alpine-state",!0))});function shouldSkipRegisteringDataDuringClone(e){return isCloning?isCloningLegacy?!0:e.hasAttribute("data-has-alpine-state"):!1}directive("show",(e,{modifiers:t,expression:n},{effect:i})=>{let r=evaluateLater(e,n);e._x_doHide||(e._x_doHide=()=>{mutateDom(()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{mutateDom(()=>{e.style.length===1&&e.style.display==="none"?e.removeAttribute("style"):e.style.removeProperty("display")})});let a=()=>{e._x_doHide(),e._x_isShown=!1},o=()=>{e._x_doShow(),e._x_isShown=!0},l=()=>setTimeout(o),u=once(g=>g?o():a(),g=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,g,o,a):g?l():a()}),d,m=!0;i(()=>r(g=>{!m&&g===d||(t.includes("immediate")&&(g?l():a()),u(g),d=g,m=!1)}))});directive("for",(e,{expression:t},{effect:n,cleanup:i})=>{let r=parseForExpression(t),a=evaluateLater(e,r.items),o=evaluateLater(e,e._x_keyExpression||"index");e._x_prevKeys=[],e._x_lookup={},n(()=>loop(e,r,a,o)),i(()=>{Object.values(e._x_lookup).forEach(l=>l.remove()),delete e._x_prevKeys,delete e._x_lookup})});function loop(e,t,n,i){let r=o=>typeof o=="object"&&!Array.isArray(o),a=e;n(o=>{isNumeric3(o)&&o>=0&&(o=Array.from(Array(o).keys(),x=>x+1)),o===void 0&&(o=[]);let l=e._x_lookup,u=e._x_prevKeys,d=[],m=[];if(r(o))o=Object.entries(o).map(([x,M])=>{let S=getIterationScopeVariables(t,M,x,o);i(R=>m.push(R),{scope:{index:x,...S}}),d.push(S)});else for(let x=0;x<o.length;x++){let M=getIterationScopeVariables(t,o[x],x,o);i(S=>m.push(S),{scope:{index:x,...M}}),d.push(M)}let g=[],_=[],v=[],w=[];for(let x=0;x<u.length;x++){let M=u[x];m.indexOf(M)===-1&&v.push(M)}u=u.filter(x=>!v.includes(x));let E="template";for(let x=0;x<m.length;x++){let M=m[x],S=u.indexOf(M);if(S===-1)u.splice(x,0,M),g.push([E,x]);else if(S!==x){let R=u.splice(x,1)[0],W=u.splice(S-1,1)[0];u.splice(x,0,W),u.splice(S,0,R),_.push([R,W])}else w.push(M);E=M}for(let x=0;x<v.length;x++){let M=v[x];l[M]._x_effects&&l[M]._x_effects.forEach(dequeueJob),l[M].remove(),l[M]=null,delete l[M]}for(let x=0;x<_.length;x++){let[M,S]=_[x],R=l[M],W=l[S],V=document.createElement("div");mutateDom(()=>{W||warn('x-for ":key" is undefined or invalid',a),W.after(V),R.after(W),W._x_currentIfEl&&W.after(W._x_currentIfEl),V.before(R),R._x_currentIfEl&&R.after(R._x_currentIfEl),V.remove()}),W._x_refreshXForScope(d[m.indexOf(S)])}for(let x=0;x<g.length;x++){let[M,S]=g[x],R=M==="template"?a:l[M];R._x_currentIfEl&&(R=R._x_currentIfEl);let W=d[S],V=m[S],q=document.importNode(a.content,!0).firstElementChild,U=reactive(W);addScopeToNode(q,U,a),q._x_refreshXForScope=y=>{Object.entries(y).forEach(([$,T])=>{U[$]=T})},mutateDom(()=>{R.after(q),initTree(q)}),typeof V=="object"&&warn("x-for key cannot be an object, it must be a string or an integer",a),l[V]=q}for(let x=0;x<w.length;x++)l[w[x]]._x_refreshXForScope(d[m.indexOf(w[x])]);a._x_prevKeys=m})}function parseForExpression(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,n=/^\s*\(|\)\s*$/g,i=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,r=e.match(i);if(!r)return;let a={};a.items=r[2].trim();let o=r[1].replace(n,"").trim(),l=o.match(t);return l?(a.item=o.replace(t,"").trim(),a.index=l[1].trim(),l[2]&&(a.collection=l[2].trim())):a.item=o,a}function getIterationScopeVariables(e,t,n,i){let r={};return/^\[.*\]$/.test(e.item)&&Array.isArray(t)?e.item.replace("[","").replace("]","").split(",").map(o=>o.trim()).forEach((o,l)=>{r[o]=t[l]}):/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&typeof t=="object"?e.item.replace("{","").replace("}","").split(",").map(o=>o.trim()).forEach(o=>{r[o]=t[o]}):r[e.item]=t,e.index&&(r[e.index]=n),e.collection&&(r[e.collection]=i),r}function isNumeric3(e){return!Array.isArray(e)&&!isNaN(e)}function handler3(){}handler3.inline=(e,{expression:t},{cleanup:n})=>{let i=closestRoot(e);i._x_refs||(i._x_refs={}),i._x_refs[t]=e,n(()=>delete i._x_refs[t])};directive("ref",handler3);directive("if",(e,{expression:t},{effect:n,cleanup:i})=>{e.tagName.toLowerCase()!=="template"&&warn("x-if can only be used on a <template> tag",e);let r=evaluateLater(e,t),a=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let l=e.content.cloneNode(!0).firstElementChild;return addScopeToNode(l,{},e),mutateDom(()=>{e.after(l),initTree(l)}),e._x_currentIfEl=l,e._x_undoIf=()=>{walk(l,u=>{u._x_effects&&u._x_effects.forEach(dequeueJob)}),l.remove(),delete e._x_currentIfEl},l},o=()=>{e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)};n(()=>r(l=>{l?a():o()})),i(()=>e._x_undoIf&&e._x_undoIf())});directive("id",(e,{expression:t},{evaluate:n})=>{n(t).forEach(r=>setIdRoot(e,r))});mapAttributes(startingWith("@",into(prefix("on:"))));directive("on",skipDuringClone((e,{value:t,modifiers:n,expression:i},{cleanup:r})=>{let a=i?evaluateLater(e,i):()=>{};e.tagName.toLowerCase()==="template"&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let o=on(e,t,n,l=>{a(()=>{},{scope:{$event:l},params:[l]})});r(()=>o())}));warnMissingPluginDirective("Collapse","collapse","collapse");warnMissingPluginDirective("Intersect","intersect","intersect");warnMissingPluginDirective("Focus","trap","focus");warnMissingPluginDirective("Mask","mask","mask");function warnMissingPluginDirective(e,t,n){directive(t,i=>warn(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,i))}alpine_default.setEvaluator(normalEvaluator);alpine_default.setReactivityEngine({reactive:reactive2,effect:effect2,release:stop,raw:toRaw});var src_default=alpine_default,module_default=src_default,top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(e,t){return e.concat([t+"-"+start,t+"-"+end])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(e,t){return e.concat([t,t+"-"+start,t+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(e){return e?(e.nodeName||"").toLowerCase():null}function getWindow(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function isElement$1(e){var t=getWindow(e).Element;return e instanceof t||e instanceof Element}function isHTMLElement(e){var t=getWindow(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function isShadowRoot(e){if(typeof ShadowRoot>"u")return!1;var t=getWindow(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function applyStyles(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var i=t.styles[n]||{},r=t.attributes[n]||{},a=t.elements[n];!isHTMLElement(a)||!getNodeName(a)||(Object.assign(a.style,i),Object.keys(r).forEach(function(o){var l=r[o];l===!1?a.removeAttribute(o):a.setAttribute(o,l===!0?"":l)}))})}function effect$2(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(i){var r=t.elements[i],a=t.attributes[i]||{},o=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:n[i]),l=o.reduce(function(u,d){return u[d]="",u},{});!isHTMLElement(r)||!getNodeName(r)||(Object.assign(r.style,l),Object.keys(a).forEach(function(u){r.removeAttribute(u)}))})}}const applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(e){return e.split("-")[0]}var max=Math.max,min=Math.min,round$1=Math.round;function getUAString(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),r=1,a=1;t&&isHTMLElement(e)&&(r=e.offsetWidth>0&&round$1(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&round$1(i.height)/e.offsetHeight||1);var o=isElement$1(e)?getWindow(e):window,l=o.visualViewport,u=!isLayoutViewport()&&n,d=(i.left+(u&&l?l.offsetLeft:0))/r,m=(i.top+(u&&l?l.offsetTop:0))/a,g=i.width/r,_=i.height/a;return{width:g,height:_,top:m,right:d+g,bottom:m+_,left:d,x:d,y:m}}function getLayoutRect(e){var t=getBoundingClientRect(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function contains(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&isShadowRoot(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function getComputedStyle$2(e){return getWindow(e).getComputedStyle(e)}function isTableElement(e){return["table","td","th"].indexOf(getNodeName(e))>=0}function getDocumentElement(e){return((isElement$1(e)?e.ownerDocument:e.document)||window.document).documentElement}function getParentNode(e){return getNodeName(e)==="html"?e:e.assignedSlot||e.parentNode||(isShadowRoot(e)?e.host:null)||getDocumentElement(e)}function getTrueOffsetParent(e){return!isHTMLElement(e)||getComputedStyle$2(e).position==="fixed"?null:e.offsetParent}function getContainingBlock(e){var t=/firefox/i.test(getUAString()),n=/Trident/i.test(getUAString());if(n&&isHTMLElement(e)){var i=getComputedStyle$2(e);if(i.position==="fixed")return null}var r=getParentNode(e);for(isShadowRoot(r)&&(r=r.host);isHTMLElement(r)&&["html","body"].indexOf(getNodeName(r))<0;){var a=getComputedStyle$2(r);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return r;r=r.parentNode}return null}function getOffsetParent(e){for(var t=getWindow(e),n=getTrueOffsetParent(e);n&&isTableElement(n)&&getComputedStyle$2(n).position==="static";)n=getTrueOffsetParent(n);return n&&(getNodeName(n)==="html"||getNodeName(n)==="body"&&getComputedStyle$2(n).position==="static")?t:n||getContainingBlock(e)||t}function getMainAxisFromPlacement(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function within$1(e,t,n){return max(e,min(t,n))}function withinMaxClamp(e,t,n){var i=within$1(e,t,n);return i>n?n:i}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(e){return Object.assign({},getFreshSideObject(),e)}function expandToHashMap(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var toPaddingObject=function e(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,mergePaddingObject(typeof t!="number"?t:expandToHashMap(t,basePlacements))};function arrow(e){var t,n=e.state,i=e.name,r=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,l=getBasePlacement(n.placement),u=getMainAxisFromPlacement(l),d=[left,right].indexOf(l)>=0,m=d?"height":"width";if(!(!a||!o)){var g=toPaddingObject(r.padding,n),_=getLayoutRect(a),v=u==="y"?top:left,w=u==="y"?bottom:right,E=n.rects.reference[m]+n.rects.reference[u]-o[u]-n.rects.popper[m],x=o[u]-n.rects.reference[u],M=getOffsetParent(a),S=M?u==="y"?M.clientHeight||0:M.clientWidth||0:0,R=E/2-x/2,W=g[v],V=S-_[m]-g[w],q=S/2-_[m]/2+R,U=within$1(W,q,V),y=u;n.modifiersData[i]=(t={},t[y]=U,t.centerOffset=U-q,t)}}function effect$1(e){var t=e.state,n=e.options,i=n.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||contains(t.elements.popper,r)&&(t.elements.arrow=r))}const arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(e){return e.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(e,t){var n=e.x,i=e.y,r=t.devicePixelRatio||1;return{x:round$1(n*r)/r||0,y:round$1(i*r)/r||0}}function mapToStyles(e){var t,n=e.popper,i=e.popperRect,r=e.placement,a=e.variation,o=e.offsets,l=e.position,u=e.gpuAcceleration,d=e.adaptive,m=e.roundOffsets,g=e.isFixed,_=o.x,v=_===void 0?0:_,w=o.y,E=w===void 0?0:w,x=typeof m=="function"?m({x:v,y:E}):{x:v,y:E};v=x.x,E=x.y;var M=o.hasOwnProperty("x"),S=o.hasOwnProperty("y"),R=left,W=top,V=window;if(d){var q=getOffsetParent(n),U="clientHeight",y="clientWidth";if(q===getWindow(n)&&(q=getDocumentElement(n),getComputedStyle$2(q).position!=="static"&&l==="absolute"&&(U="scrollHeight",y="scrollWidth")),q=q,r===top||(r===left||r===right)&&a===end){W=bottom;var $=g&&q===V&&V.visualViewport?V.visualViewport.height:q[U];E-=$-i.height,E*=u?1:-1}if(r===left||(r===top||r===bottom)&&a===end){R=right;var T=g&&q===V&&V.visualViewport?V.visualViewport.width:q[y];v-=T-i.width,v*=u?1:-1}}var O=Object.assign({position:l},d&&unsetSides),A=m===!0?roundOffsetsByDPR({x:v,y:E},getWindow(n)):{x:v,y:E};if(v=A.x,E=A.y,u){var I;return Object.assign({},O,(I={},I[W]=S?"0":"",I[R]=M?"0":"",I.transform=(V.devicePixelRatio||1)<=1?"translate("+v+"px, "+E+"px)":"translate3d("+v+"px, "+E+"px, 0)",I))}return Object.assign({},O,(t={},t[W]=S?E+"px":"",t[R]=M?v+"px":"",t.transform="",t))}function computeStyles(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=i===void 0?!0:i,a=n.adaptive,o=a===void 0?!0:a,l=n.roundOffsets,u=l===void 0?!0:l,d={placement:getBasePlacement(t.placement),variation:getVariation(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,mapToStyles(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,mapToStyles(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:!0};function effect(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,a=r===void 0?!0:r,o=i.resize,l=o===void 0?!0:o,u=getWindow(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(m){m.addEventListener("scroll",n.update,passive)}),l&&u.addEventListener("resize",n.update,passive),function(){a&&d.forEach(function(m){m.removeEventListener("scroll",n.update,passive)}),l&&u.removeEventListener("resize",n.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function e(){},effect,data:{}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,function(t){return hash$1[t]})}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(e){return e.replace(/start|end/g,function(t){return hash[t]})}function getWindowScroll(e){var t=getWindow(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getWindowScroll(e).scrollLeft}function getViewportRect(e,t){var n=getWindow(e),i=getDocumentElement(e),r=n.visualViewport,a=i.clientWidth,o=i.clientHeight,l=0,u=0;if(r){a=r.width,o=r.height;var d=isLayoutViewport();(d||!d&&t==="fixed")&&(l=r.offsetLeft,u=r.offsetTop)}return{width:a,height:o,x:l+getWindowScrollBarX(e),y:u}}function getDocumentRect(e){var t,n=getDocumentElement(e),i=getWindowScroll(e),r=(t=e.ownerDocument)==null?void 0:t.body,a=max(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=max(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-i.scrollLeft+getWindowScrollBarX(e),u=-i.scrollTop;return getComputedStyle$2(r||n).direction==="rtl"&&(l+=max(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:o,x:l,y:u}}function isScrollParent(e){var t=getComputedStyle$2(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function getScrollParent(e){return["html","body","#document"].indexOf(getNodeName(e))>=0?e.ownerDocument.body:isHTMLElement(e)&&isScrollParent(e)?e:getScrollParent(getParentNode(e))}function listScrollParents(e,t){var n;t===void 0&&(t=[]);var i=getScrollParent(e),r=i===((n=e.ownerDocument)==null?void 0:n.body),a=getWindow(i),o=r?[a].concat(a.visualViewport||[],isScrollParent(i)?i:[]):i,l=t.concat(o);return r?l:l.concat(listScrollParents(getParentNode(o)))}function rectToClientRect(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function getInnerBoundingClientRect(e,t){var n=getBoundingClientRect(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function getClientRectFromMixedType(e,t,n){return t===viewport?rectToClientRect(getViewportRect(e,n)):isElement$1(t)?getInnerBoundingClientRect(t,n):rectToClientRect(getDocumentRect(getDocumentElement(e)))}function getClippingParents(e){var t=listScrollParents(getParentNode(e)),n=["absolute","fixed"].indexOf(getComputedStyle$2(e).position)>=0,i=n&&isHTMLElement(e)?getOffsetParent(e):e;return isElement$1(i)?t.filter(function(r){return isElement$1(r)&&contains(r,i)&&getNodeName(r)!=="body"}):[]}function getClippingRect(e,t,n,i){var r=t==="clippingParents"?getClippingParents(e):[].concat(t),a=[].concat(r,[n]),o=a[0],l=a.reduce(function(u,d){var m=getClientRectFromMixedType(e,d,i);return u.top=max(m.top,u.top),u.right=min(m.right,u.right),u.bottom=min(m.bottom,u.bottom),u.left=max(m.left,u.left),u},getClientRectFromMixedType(e,o,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function computeOffsets(e){var t=e.reference,n=e.element,i=e.placement,r=i?getBasePlacement(i):null,a=i?getVariation(i):null,o=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(r){case top:u={x:o,y:t.y-n.height};break;case bottom:u={x:o,y:t.y+t.height};break;case right:u={x:t.x+t.width,y:l};break;case left:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var d=r?getMainAxisFromPlacement(r):null;if(d!=null){var m=d==="y"?"height":"width";switch(a){case start:u[d]=u[d]-(t[m]/2-n[m]/2);break;case end:u[d]=u[d]+(t[m]/2-n[m]/2);break}}return u}function detectOverflow(e,t){t===void 0&&(t={});var n=t,i=n.placement,r=i===void 0?e.placement:i,a=n.strategy,o=a===void 0?e.strategy:a,l=n.boundary,u=l===void 0?clippingParents:l,d=n.rootBoundary,m=d===void 0?viewport:d,g=n.elementContext,_=g===void 0?popper:g,v=n.altBoundary,w=v===void 0?!1:v,E=n.padding,x=E===void 0?0:E,M=mergePaddingObject(typeof x!="number"?x:expandToHashMap(x,basePlacements)),S=_===popper?reference:popper,R=e.rects.popper,W=e.elements[w?S:_],V=getClippingRect(isElement$1(W)?W:W.contextElement||getDocumentElement(e.elements.popper),u,m,o),q=getBoundingClientRect(e.elements.reference),U=computeOffsets({reference:q,element:R,strategy:"absolute",placement:r}),y=rectToClientRect(Object.assign({},R,U)),$=_===popper?y:q,T={top:V.top-$.top+M.top,bottom:$.bottom-V.bottom+M.bottom,left:V.left-$.left+M.left,right:$.right-V.right+M.right},O=e.modifiersData.offset;if(_===popper&&O){var A=O[r];Object.keys(T).forEach(function(I){var z=[right,bottom].indexOf(I)>=0?1:-1,C=[top,bottom].indexOf(I)>=0?"y":"x";T[I]+=A[C]*z})}return T}function computeAutoPlacement(e,t){t===void 0&&(t={});var n=t,i=n.placement,r=n.boundary,a=n.rootBoundary,o=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,d=u===void 0?placements:u,m=getVariation(i),g=m?l?variationPlacements:variationPlacements.filter(function(w){return getVariation(w)===m}):basePlacements,_=g.filter(function(w){return d.indexOf(w)>=0});_.length===0&&(_=g);var v=_.reduce(function(w,E){return w[E]=detectOverflow(e,{placement:E,boundary:r,rootBoundary:a,padding:o})[getBasePlacement(E)],w},{});return Object.keys(v).sort(function(w,E){return v[w]-v[E]})}function getExpandedFallbackPlacements(e){if(getBasePlacement(e)===auto)return[];var t=getOppositePlacement(e);return[getOppositeVariationPlacement(e),t,getOppositeVariationPlacement(t)]}function flip(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,a=r===void 0?!0:r,o=n.altAxis,l=o===void 0?!0:o,u=n.fallbackPlacements,d=n.padding,m=n.boundary,g=n.rootBoundary,_=n.altBoundary,v=n.flipVariations,w=v===void 0?!0:v,E=n.allowedAutoPlacements,x=t.options.placement,M=getBasePlacement(x),S=M===x,R=u||(S||!w?[getOppositePlacement(x)]:getExpandedFallbackPlacements(x)),W=[x].concat(R).reduce(function(rt,Q){return rt.concat(getBasePlacement(Q)===auto?computeAutoPlacement(t,{placement:Q,boundary:m,rootBoundary:g,padding:d,flipVariations:w,allowedAutoPlacements:E}):Q)},[]),V=t.rects.reference,q=t.rects.popper,U=new Map,y=!0,$=W[0],T=0;T<W.length;T++){var O=W[T],A=getBasePlacement(O),I=getVariation(O)===start,z=[top,bottom].indexOf(A)>=0,C=z?"width":"height",D=detectOverflow(t,{placement:O,boundary:m,rootBoundary:g,altBoundary:_,padding:d}),F=z?I?right:left:I?bottom:top;V[C]>q[C]&&(F=getOppositePlacement(F));var N=getOppositePlacement(F),G=[];if(a&&G.push(D[A]<=0),l&&G.push(D[F]<=0,D[N]<=0),G.every(function(rt){return rt})){$=O,y=!1;break}U.set(O,G)}if(y)for(var K=w?3:1,Z=function(Q){var J=W.find(function(ht){var _t=U.get(ht);if(_t)return _t.slice(0,Q).every(function(Dt){return Dt})});if(J)return $=J,"break"},et=K;et>0;et--){var st=Z(et);if(st==="break")break}t.placement!==$&&(t.modifiersData[i]._skip=!0,t.placement=$,t.reset=!0)}}const flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function isAnySideFullyClipped(e){return[top,right,bottom,left].some(function(t){return e[t]>=0})}function hide(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,a=t.modifiersData.preventOverflow,o=detectOverflow(t,{elementContext:"reference"}),l=detectOverflow(t,{altBoundary:!0}),u=getSideOffsets(o,i),d=getSideOffsets(l,r,a),m=isAnySideFullyClipped(u),g=isAnySideFullyClipped(d);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:m,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":g})}const hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(e,t,n){var i=getBasePlacement(e),r=[left,top].indexOf(i)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=a[0],l=a[1];return o=o||0,l=(l||0)*r,[left,right].indexOf(i)>=0?{x:l,y:o}:{x:o,y:l}}function offset(e){var t=e.state,n=e.options,i=e.name,r=n.offset,a=r===void 0?[0,0]:r,o=placements.reduce(function(m,g){return m[g]=distanceAndSkiddingToXY(g,t.rects,a),m},{}),l=o[t.placement],u=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[i]=o}const offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(e){var t=e.state,n=e.name;t.modifiersData[n]=computeOffsets({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(e){return e==="x"?"y":"x"}function preventOverflow(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,a=r===void 0?!0:r,o=n.altAxis,l=o===void 0?!1:o,u=n.boundary,d=n.rootBoundary,m=n.altBoundary,g=n.padding,_=n.tether,v=_===void 0?!0:_,w=n.tetherOffset,E=w===void 0?0:w,x=detectOverflow(t,{boundary:u,rootBoundary:d,padding:g,altBoundary:m}),M=getBasePlacement(t.placement),S=getVariation(t.placement),R=!S,W=getMainAxisFromPlacement(M),V=getAltAxis(W),q=t.modifiersData.popperOffsets,U=t.rects.reference,y=t.rects.popper,$=typeof E=="function"?E(Object.assign({},t.rects,{placement:t.placement})):E,T=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(q){if(a){var I,z=W==="y"?top:left,C=W==="y"?bottom:right,D=W==="y"?"height":"width",F=q[W],N=F+x[z],G=F-x[C],K=v?-y[D]/2:0,Z=S===start?U[D]:y[D],et=S===start?-y[D]:-U[D],st=t.elements.arrow,rt=v&&st?getLayoutRect(st):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:getFreshSideObject(),J=Q[z],ht=Q[C],_t=within$1(0,U[D],rt[D]),Dt=R?U[D]/2-K-_t-J-T.mainAxis:Z-_t-J-T.mainAxis,Wt=R?-U[D]/2+K+_t+ht+T.mainAxis:et+_t+ht+T.mainAxis,Pt=t.elements.arrow&&getOffsetParent(t.elements.arrow),Mt=Pt?W==="y"?Pt.clientTop||0:Pt.clientLeft||0:0,wt=(I=O==null?void 0:O[W])!=null?I:0,Et=F+Dt-wt-Mt,ft=F+Wt-wt,fe=within$1(v?min(N,Et):N,F,v?max(G,ft):G);q[W]=fe,A[W]=fe-F}if(l){var Jt,te=W==="x"?top:left,Qe=W==="x"?bottom:right,Nt=q[V],Yt=V==="y"?"height":"width",me=Nt+x[te],pe=Nt-x[Qe],ge=[top,left].indexOf(M)!==-1,Ce=(Jt=O==null?void 0:O[V])!=null?Jt:0,ee=ge?me:Nt-U[Yt]-y[Yt]-Ce+T.altAxis,_e=ge?Nt+U[Yt]+y[Yt]-Ce-T.altAxis:pe,be=v&&ge?withinMaxClamp(ee,Nt,_e):within$1(v?ee:me,Nt,v?_e:pe);q[V]=be,A[V]=be-Nt}t.modifiersData[i]=A}}const preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function getNodeScroll(e){return e===getWindow(e)||!isHTMLElement(e)?getWindowScroll(e):getHTMLElementScroll(e)}function isElementScaled(e){var t=e.getBoundingClientRect(),n=round$1(t.width)/e.offsetWidth||1,i=round$1(t.height)/e.offsetHeight||1;return n!==1||i!==1}function getCompositeRect(e,t,n){n===void 0&&(n=!1);var i=isHTMLElement(t),r=isHTMLElement(t)&&isElementScaled(t),a=getDocumentElement(t),o=getBoundingClientRect(e,r,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&((getNodeName(t)!=="body"||isScrollParent(a))&&(l=getNodeScroll(t)),isHTMLElement(t)?(u=getBoundingClientRect(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=getWindowScrollBarX(a))),{x:o.left+l.scrollLeft-u.x,y:o.top+l.scrollTop-u.y,width:o.width,height:o.height}}function order(e){var t=new Map,n=new Set,i=[];e.forEach(function(a){t.set(a.name,a)});function r(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(l){if(!n.has(l)){var u=t.get(l);u&&r(u)}}),i.push(a)}return e.forEach(function(a){n.has(a.name)||r(a)}),i}function orderModifiers(e){var t=order(e);return modifierPhases.reduce(function(n,i){return n.concat(t.filter(function(r){return r.phase===i}))},[])}function debounce$3(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function mergeByName(e){var t=e.reduce(function(n,i){var r=n[i.name];return n[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var DEFAULT_OPTIONS$1={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function popperGenerator(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,r=t.defaultOptions,a=r===void 0?DEFAULT_OPTIONS$1:r;return function(l,u,d){d===void 0&&(d=a);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS$1,a),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},g=[],_=!1,v={state:m,setOptions:function(M){var S=typeof M=="function"?M(m.options):M;E(),m.options=Object.assign({},a,m.options,S),m.scrollParents={reference:isElement$1(l)?listScrollParents(l):l.contextElement?listScrollParents(l.contextElement):[],popper:listScrollParents(u)};var R=orderModifiers(mergeByName([].concat(i,m.options.modifiers)));return m.orderedModifiers=R.filter(function(W){return W.enabled}),w(),v.update()},forceUpdate:function(){if(!_){var M=m.elements,S=M.reference,R=M.popper;if(areValidElements(S,R)){m.rects={reference:getCompositeRect(S,getOffsetParent(R),m.options.strategy==="fixed"),popper:getLayoutRect(R)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach(function(T){return m.modifiersData[T.name]=Object.assign({},T.data)});for(var W=0;W<m.orderedModifiers.length;W++){if(m.reset===!0){m.reset=!1,W=-1;continue}var V=m.orderedModifiers[W],q=V.fn,U=V.options,y=U===void 0?{}:U,$=V.name;typeof q=="function"&&(m=q({state:m,options:y,name:$,instance:v})||m)}}}},update:debounce$3(function(){return new Promise(function(x){v.forceUpdate(),x(m)})}),destroy:function(){E(),_=!0}};if(!areValidElements(l,u))return v;v.setOptions(d).then(function(x){!_&&d.onFirstUpdate&&d.onFirstUpdate(x)});function w(){m.orderedModifiers.forEach(function(x){var M=x.name,S=x.options,R=S===void 0?{}:S,W=x.effect;if(typeof W=="function"){var V=W({state:m,name:M,instance:v,options:R}),q=function(){};g.push(V||q)}})}function E(){g.forEach(function(x){return x()}),g=[]}return v}}var createPopper$2=popperGenerator(),defaultModifiers$1=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1],createPopper$1=popperGenerator({defaultModifiers:defaultModifiers$1}),defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1],createPopper=popperGenerator({defaultModifiers});const Popper=Object.freeze(Object.defineProperty({__proto__:null,afterMain,afterRead,afterWrite,applyStyles:applyStyles$1,arrow:arrow$1,auto,basePlacements,beforeMain,beforeRead,beforeWrite,bottom,clippingParents,computeStyles:computeStyles$1,createPopper,createPopperBase:createPopper$2,createPopperLite:createPopper$1,detectOverflow,end,eventListeners,flip:flip$1,hide:hide$1,left,main,modifierPhases,offset:offset$1,placements,popper,popperGenerator,popperOffsets:popperOffsets$1,preventOverflow:preventOverflow$1,read,reference,right,start,top,variationPlacements,viewport,write},Symbol.toStringTag,{value:"Module"}));/*!
* Bootstrap v5.3.2 (https://getbootstrap.com/)
* Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
- */const elementMap=new Map,Data={set(e,t,n){elementMap.has(e)||elementMap.set(e,new Map);const i=elementMap.get(e);if(!i.has(t)&&i.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`);return}i.set(t,n)},get(e,t){return elementMap.has(e)&&elementMap.get(e).get(t)||null},remove(e,t){if(!elementMap.has(e))return;const n=elementMap.get(e);n.delete(t),n.size===0&&elementMap.delete(e)}},MAX_UID=1e6,MILLISECONDS_MULTIPLIER=1e3,TRANSITION_END="transitionend",parseSelector=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(t,n)=>`#${CSS.escape(n)}`)),e),toType=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),getUID=e=>{do e+=Math.floor(Math.random()*MAX_UID);while(document.getElementById(e));return e},getTransitionDurationFromElement=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const i=Number.parseFloat(t),r=Number.parseFloat(n);return!i&&!r?0:(t=t.split(",")[0],n=n.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(n))*MILLISECONDS_MULTIPLIER)},triggerTransitionEnd=e=>{e.dispatchEvent(new Event(TRANSITION_END))},isElement=e=>!e||typeof e!="object"?!1:(typeof e.jquery<"u"&&(e=e[0]),typeof e.nodeType<"u"),getElement=e=>isElement(e)?e.jquery?e[0]:e:typeof e=="string"&&e.length>0?document.querySelector(parseSelector(e)):null,isVisible=e=>{if(!isElement(e)||e.getClientRects().length===0)return!1;const t=getComputedStyle(e).getPropertyValue("visibility")==="visible",n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const i=e.closest("summary");if(i&&i.parentNode!==n||i===null)return!1}return t},isDisabled=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains("disabled")?!0:typeof e.disabled<"u"?e.disabled:e.hasAttribute("disabled")&&e.getAttribute("disabled")!=="false",findShadowRoot=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode=="function"){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?findShadowRoot(e.parentNode):null},noop$3=()=>{},reflow=e=>{e.offsetHeight},getjQuery=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,DOMContentLoadedCallbacks=[],onDOMContentLoaded=e=>{document.readyState==="loading"?(DOMContentLoadedCallbacks.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of DOMContentLoadedCallbacks)t()}),DOMContentLoadedCallbacks.push(e)):e()},isRTL=()=>document.documentElement.dir==="rtl",defineJQueryPlugin=e=>{onDOMContentLoaded(()=>{const t=getjQuery();if(t){const n=e.NAME,i=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=i,e.jQueryInterface)}})},execute=(e,t=[],n=e)=>typeof e=="function"?e(...t):n,executeAfterTransition=(e,t,n=!0)=>{if(!n){execute(e);return}const i=5,r=getTransitionDurationFromElement(t)+i;let a=!1;const o=({target:l})=>{l===t&&(a=!0,t.removeEventListener(TRANSITION_END,o),execute(e))};t.addEventListener(TRANSITION_END,o),setTimeout(()=>{a||triggerTransitionEnd(t)},r)},getNextActiveElement=(e,t,n,i)=>{const r=e.length;let a=e.indexOf(t);return a===-1?!n&&i?e[r-1]:e[0]:(a+=n?1:-1,i&&(a=(a+r)%r),e[Math.max(0,Math.min(a,r-1))])},namespaceRegex=/[^.]*(?=\..*)\.|.*/,stripNameRegex=/\..*/,stripUidRegex=/::\d+$/,eventRegistry={};let uidEvent=1;const customEvents={mouseenter:"mouseover",mouseleave:"mouseout"},nativeEvents=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function makeEventUid(e,t){return t&&`${t}::${uidEvent++}`||e.uidEvent||uidEvent++}function getElementEvents(e){const t=makeEventUid(e);return e.uidEvent=t,eventRegistry[t]=eventRegistry[t]||{},eventRegistry[t]}function bootstrapHandler(e,t){return function n(i){return hydrateObj(i,{delegateTarget:e}),n.oneOff&&EventHandler.off(e,i.type,t),t.apply(e,[i])}}function bootstrapDelegationHandler(e,t,n){return function i(r){const a=e.querySelectorAll(t);for(let{target:o}=r;o&&o!==this;o=o.parentNode)for(const l of a)if(l===o)return hydrateObj(r,{delegateTarget:o}),i.oneOff&&EventHandler.off(e,r.type,t,n),n.apply(o,[r])}}function findHandler(e,t,n=null){return Object.values(e).find(i=>i.callable===t&&i.delegationSelector===n)}function normalizeParameters(e,t,n){const i=typeof t=="string",r=i?n:t||n;let a=getTypeEvent(e);return nativeEvents.has(a)||(a=e),[i,r,a]}function addHandler(e,t,n,i,r){if(typeof t!="string"||!e)return;let[a,o,l]=normalizeParameters(t,n,i);t in customEvents&&(o=(w=>function($){if(!$.relatedTarget||$.relatedTarget!==$.delegateTarget&&!$.delegateTarget.contains($.relatedTarget))return w.call(this,$)})(o));const u=getElementEvents(e),h=u[l]||(u[l]={}),m=findHandler(h,o,a?n:null);if(m){m.oneOff=m.oneOff&&r;return}const g=makeEventUid(o,t.replace(namespaceRegex,"")),_=a?bootstrapDelegationHandler(e,n,o):bootstrapHandler(e,o);_.delegationSelector=a?n:null,_.callable=o,_.oneOff=r,_.uidEvent=g,h[g]=_,e.addEventListener(l,_,a)}function removeHandler(e,t,n,i,r){const a=findHandler(t[n],i,r);a&&(e.removeEventListener(n,a,!!r),delete t[n][a.uidEvent])}function removeNamespacedHandlers(e,t,n,i){const r=t[n]||{};for(const[a,o]of Object.entries(r))a.includes(i)&&removeHandler(e,t,n,o.callable,o.delegationSelector)}function getTypeEvent(e){return e=e.replace(stripNameRegex,""),customEvents[e]||e}const EventHandler={on(e,t,n,i){addHandler(e,t,n,i,!1)},one(e,t,n,i){addHandler(e,t,n,i,!0)},off(e,t,n,i){if(typeof t!="string"||!e)return;const[r,a,o]=normalizeParameters(t,n,i),l=o!==t,u=getElementEvents(e),h=u[o]||{},m=t.startsWith(".");if(typeof a<"u"){if(!Object.keys(h).length)return;removeHandler(e,u,o,a,r?n:null);return}if(m)for(const g of Object.keys(u))removeNamespacedHandlers(e,u,g,t.slice(1));for(const[g,_]of Object.entries(h)){const v=g.replace(stripUidRegex,"");(!l||t.includes(v))&&removeHandler(e,u,o,_.callable,_.delegationSelector)}},trigger(e,t,n){if(typeof t!="string"||!e)return null;const i=getjQuery(),r=getTypeEvent(t),a=t!==r;let o=null,l=!0,u=!0,h=!1;a&&i&&(o=i.Event(t,n),i(e).trigger(o),l=!o.isPropagationStopped(),u=!o.isImmediatePropagationStopped(),h=o.isDefaultPrevented());const m=hydrateObj(new Event(t,{bubbles:l,cancelable:!0}),n);return h&&m.preventDefault(),u&&e.dispatchEvent(m),m.defaultPrevented&&o&&o.preventDefault(),m}};function hydrateObj(e,t={}){for(const[n,i]of Object.entries(t))try{e[n]=i}catch{Object.defineProperty(e,n,{configurable:!0,get(){return i}})}return e}function normalizeData(e){if(e==="true")return!0;if(e==="false")return!1;if(e===Number(e).toString())return Number(e);if(e===""||e==="null")return null;if(typeof e!="string")return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function normalizeDataKey(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const Manipulator={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${normalizeDataKey(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${normalizeDataKey(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter(i=>i.startsWith("bs")&&!i.startsWith("bsConfig"));for(const i of n){let r=i.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),t[r]=normalizeData(e.dataset[i])}return t},getDataAttribute(e,t){return normalizeData(e.getAttribute(`data-bs-${normalizeDataKey(t)}`))}};let Config$1=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,n){const i=isElement(n)?Manipulator.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof i=="object"?i:{},...isElement(n)?Manipulator.getDataAttributes(n):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,n=this.constructor.DefaultType){for(const[i,r]of Object.entries(n)){const a=t[i],o=isElement(a)?"element":toType(a);if(!new RegExp(r).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${o}" but expected type "${r}".`)}}};const VERSION="5.3.2";class BaseComponent extends Config$1{constructor(t,n){super(),t=getElement(t),t&&(this._element=t,this._config=this._getConfig(n),Data.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Data.remove(this._element,this.constructor.DATA_KEY),EventHandler.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,n,i=!0){executeAfterTransition(t,n,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return Data.get(getElement(t),this.DATA_KEY)}static getOrCreateInstance(t,n={}){return this.getInstance(t)||new this(t,typeof n=="object"?n:null)}static get VERSION(){return VERSION}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const getSelector=e=>{let t=e.getAttribute("data-bs-target");if(!t||t==="#"){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&n!=="#"?parseSelector(n.trim()):null}return t},SelectorEngine={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(n=>n.matches(t))},parents(e,t){const n=[];let i=e.parentNode.closest(t);for(;i;)n.push(i),i=i.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(n=>`${n}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(n=>!isDisabled(n)&&isVisible(n))},getSelectorFromElement(e){const t=getSelector(e);return t&&SelectorEngine.findOne(t)?t:null},getElementFromSelector(e){const t=getSelector(e);return t?SelectorEngine.findOne(t):null},getMultipleElementsFromSelector(e){const t=getSelector(e);return t?SelectorEngine.find(t):[]}},enableDismissTrigger=(e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,i=e.NAME;EventHandler.on(document,n,`[data-bs-dismiss="${i}"]`,function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),isDisabled(this))return;const a=SelectorEngine.getElementFromSelector(this)||this.closest(`.${i}`);e.getOrCreateInstance(a)[t]()})},NAME$f="alert",DATA_KEY$a="bs.alert",EVENT_KEY$b=`.${DATA_KEY$a}`,EVENT_CLOSE=`close${EVENT_KEY$b}`,EVENT_CLOSED=`closed${EVENT_KEY$b}`,CLASS_NAME_FADE$5="fade",CLASS_NAME_SHOW$8="show";class Alert extends BaseComponent{static get NAME(){return NAME$f}close(){if(EventHandler.trigger(this._element,EVENT_CLOSE).defaultPrevented)return;this._element.classList.remove(CLASS_NAME_SHOW$8);const n=this._element.classList.contains(CLASS_NAME_FADE$5);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),EventHandler.trigger(this._element,EVENT_CLOSED),this.dispose()}static jQueryInterface(t){return this.each(function(){const n=Alert.getOrCreateInstance(this);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}enableDismissTrigger(Alert,"close");defineJQueryPlugin(Alert);const NAME$e="button",DATA_KEY$9="bs.button",EVENT_KEY$a=`.${DATA_KEY$9}`,DATA_API_KEY$6=".data-api",CLASS_NAME_ACTIVE$3="active",SELECTOR_DATA_TOGGLE$5='[data-bs-toggle="button"]',EVENT_CLICK_DATA_API$6=`click${EVENT_KEY$a}${DATA_API_KEY$6}`;class Button extends BaseComponent{static get NAME(){return NAME$e}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(CLASS_NAME_ACTIVE$3))}static jQueryInterface(t){return this.each(function(){const n=Button.getOrCreateInstance(this);t==="toggle"&&n[t]()})}}EventHandler.on(document,EVENT_CLICK_DATA_API$6,SELECTOR_DATA_TOGGLE$5,e=>{e.preventDefault();const t=e.target.closest(SELECTOR_DATA_TOGGLE$5);Button.getOrCreateInstance(t).toggle()});defineJQueryPlugin(Button);const NAME$d="swipe",EVENT_KEY$9=".bs.swipe",EVENT_TOUCHSTART=`touchstart${EVENT_KEY$9}`,EVENT_TOUCHMOVE=`touchmove${EVENT_KEY$9}`,EVENT_TOUCHEND=`touchend${EVENT_KEY$9}`,EVENT_POINTERDOWN=`pointerdown${EVENT_KEY$9}`,EVENT_POINTERUP=`pointerup${EVENT_KEY$9}`,POINTER_TYPE_TOUCH="touch",POINTER_TYPE_PEN="pen",CLASS_NAME_POINTER_EVENT="pointer-event",SWIPE_THRESHOLD=40,Default$c={endCallback:null,leftCallback:null,rightCallback:null},DefaultType$c={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Swipe extends Config$1{constructor(t,n){super(),this._element=t,!(!t||!Swipe.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Default$c}static get DefaultType(){return DefaultType$c}static get NAME(){return NAME$d}dispose(){EventHandler.off(this._element,EVENT_KEY$9)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),execute(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=SWIPE_THRESHOLD)return;const n=t/this._deltaX;this._deltaX=0,n&&execute(n>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(EventHandler.on(this._element,EVENT_POINTERDOWN,t=>this._start(t)),EventHandler.on(this._element,EVENT_POINTERUP,t=>this._end(t)),this._element.classList.add(CLASS_NAME_POINTER_EVENT)):(EventHandler.on(this._element,EVENT_TOUCHSTART,t=>this._start(t)),EventHandler.on(this._element,EVENT_TOUCHMOVE,t=>this._move(t)),EventHandler.on(this._element,EVENT_TOUCHEND,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===POINTER_TYPE_PEN||t.pointerType===POINTER_TYPE_TOUCH)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const NAME$c="carousel",DATA_KEY$8="bs.carousel",EVENT_KEY$8=`.${DATA_KEY$8}`,DATA_API_KEY$5=".data-api",ARROW_LEFT_KEY$1="ArrowLeft",ARROW_RIGHT_KEY$1="ArrowRight",TOUCHEVENT_COMPAT_WAIT=500,ORDER_NEXT="next",ORDER_PREV="prev",DIRECTION_LEFT="left",DIRECTION_RIGHT="right",EVENT_SLIDE=`slide${EVENT_KEY$8}`,EVENT_SLID=`slid${EVENT_KEY$8}`,EVENT_KEYDOWN$1=`keydown${EVENT_KEY$8}`,EVENT_MOUSEENTER$1=`mouseenter${EVENT_KEY$8}`,EVENT_MOUSELEAVE$1=`mouseleave${EVENT_KEY$8}`,EVENT_DRAG_START=`dragstart${EVENT_KEY$8}`,EVENT_LOAD_DATA_API$3=`load${EVENT_KEY$8}${DATA_API_KEY$5}`,EVENT_CLICK_DATA_API$5=`click${EVENT_KEY$8}${DATA_API_KEY$5}`,CLASS_NAME_CAROUSEL="carousel",CLASS_NAME_ACTIVE$2="active",CLASS_NAME_SLIDE="slide",CLASS_NAME_END="carousel-item-end",CLASS_NAME_START="carousel-item-start",CLASS_NAME_NEXT="carousel-item-next",CLASS_NAME_PREV="carousel-item-prev",SELECTOR_ACTIVE=".active",SELECTOR_ITEM=".carousel-item",SELECTOR_ACTIVE_ITEM=SELECTOR_ACTIVE+SELECTOR_ITEM,SELECTOR_ITEM_IMG=".carousel-item img",SELECTOR_INDICATORS=".carousel-indicators",SELECTOR_DATA_SLIDE="[data-bs-slide], [data-bs-slide-to]",SELECTOR_DATA_RIDE='[data-bs-ride="carousel"]',KEY_TO_DIRECTION={[ARROW_LEFT_KEY$1]:DIRECTION_RIGHT,[ARROW_RIGHT_KEY$1]:DIRECTION_LEFT},Default$b={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},DefaultType$b={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Carousel extends BaseComponent{constructor(t,n){super(t,n),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=SelectorEngine.findOne(SELECTOR_INDICATORS,this._element),this._addEventListeners(),this._config.ride===CLASS_NAME_CAROUSEL&&this.cycle()}static get Default(){return Default$b}static get DefaultType(){return DefaultType$b}static get NAME(){return NAME$c}next(){this._slide(ORDER_NEXT)}nextWhenVisible(){!document.hidden&&isVisible(this._element)&&this.next()}prev(){this._slide(ORDER_PREV)}pause(){this._isSliding&&triggerTransitionEnd(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){EventHandler.one(this._element,EVENT_SLID,()=>this.cycle());return}this.cycle()}}to(t){const n=this._getItems();if(t>n.length-1||t<0)return;if(this._isSliding){EventHandler.one(this._element,EVENT_SLID,()=>this.to(t));return}const i=this._getItemIndex(this._getActive());if(i===t)return;const r=t>i?ORDER_NEXT:ORDER_PREV;this._slide(r,n[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&EventHandler.on(this._element,EVENT_KEYDOWN$1,t=>this._keydown(t)),this._config.pause==="hover"&&(EventHandler.on(this._element,EVENT_MOUSEENTER$1,()=>this.pause()),EventHandler.on(this._element,EVENT_MOUSELEAVE$1,()=>this._maybeEnableCycle())),this._config.touch&&Swipe.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const i of SelectorEngine.find(SELECTOR_ITEM_IMG,this._element))EventHandler.on(i,EVENT_DRAG_START,r=>r.preventDefault());const n={leftCallback:()=>this._slide(this._directionToOrder(DIRECTION_LEFT)),rightCallback:()=>this._slide(this._directionToOrder(DIRECTION_RIGHT)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),TOUCHEVENT_COMPAT_WAIT+this._config.interval))}};this._swipeHelper=new Swipe(this._element,n)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const n=KEY_TO_DIRECTION[t.key];n&&(t.preventDefault(),this._slide(this._directionToOrder(n)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const n=SelectorEngine.findOne(SELECTOR_ACTIVE,this._indicatorsElement);n.classList.remove(CLASS_NAME_ACTIVE$2),n.removeAttribute("aria-current");const i=SelectorEngine.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(CLASS_NAME_ACTIVE$2),i.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const n=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=n||this._config.defaultInterval}_slide(t,n=null){if(this._isSliding)return;const i=this._getActive(),r=t===ORDER_NEXT,a=n||getNextActiveElement(this._getItems(),i,r,this._config.wrap);if(a===i)return;const o=this._getItemIndex(a),l=v=>EventHandler.trigger(this._element,v,{relatedTarget:a,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:o});if(l(EVENT_SLIDE).defaultPrevented||!i||!a)return;const h=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=a;const m=r?CLASS_NAME_START:CLASS_NAME_END,g=r?CLASS_NAME_NEXT:CLASS_NAME_PREV;a.classList.add(g),reflow(a),i.classList.add(m),a.classList.add(m);const _=()=>{a.classList.remove(m,g),a.classList.add(CLASS_NAME_ACTIVE$2),i.classList.remove(CLASS_NAME_ACTIVE$2,g,m),this._isSliding=!1,l(EVENT_SLID)};this._queueCallback(_,i,this._isAnimated()),h&&this.cycle()}_isAnimated(){return this._element.classList.contains(CLASS_NAME_SLIDE)}_getActive(){return SelectorEngine.findOne(SELECTOR_ACTIVE_ITEM,this._element)}_getItems(){return SelectorEngine.find(SELECTOR_ITEM,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return isRTL()?t===DIRECTION_LEFT?ORDER_PREV:ORDER_NEXT:t===DIRECTION_LEFT?ORDER_NEXT:ORDER_PREV}_orderToDirection(t){return isRTL()?t===ORDER_PREV?DIRECTION_LEFT:DIRECTION_RIGHT:t===ORDER_PREV?DIRECTION_RIGHT:DIRECTION_LEFT}static jQueryInterface(t){return this.each(function(){const n=Carousel.getOrCreateInstance(this,t);if(typeof t=="number"){n.to(t);return}if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t]()}})}}EventHandler.on(document,EVENT_CLICK_DATA_API$5,SELECTOR_DATA_SLIDE,function(e){const t=SelectorEngine.getElementFromSelector(this);if(!t||!t.classList.contains(CLASS_NAME_CAROUSEL))return;e.preventDefault();const n=Carousel.getOrCreateInstance(t),i=this.getAttribute("data-bs-slide-to");if(i){n.to(i),n._maybeEnableCycle();return}if(Manipulator.getDataAttribute(this,"slide")==="next"){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()});EventHandler.on(window,EVENT_LOAD_DATA_API$3,()=>{const e=SelectorEngine.find(SELECTOR_DATA_RIDE);for(const t of e)Carousel.getOrCreateInstance(t)});defineJQueryPlugin(Carousel);const NAME$b="collapse",DATA_KEY$7="bs.collapse",EVENT_KEY$7=`.${DATA_KEY$7}`,DATA_API_KEY$4=".data-api",EVENT_SHOW$6=`show${EVENT_KEY$7}`,EVENT_SHOWN$6=`shown${EVENT_KEY$7}`,EVENT_HIDE$6=`hide${EVENT_KEY$7}`,EVENT_HIDDEN$6=`hidden${EVENT_KEY$7}`,EVENT_CLICK_DATA_API$4=`click${EVENT_KEY$7}${DATA_API_KEY$4}`,CLASS_NAME_SHOW$7="show",CLASS_NAME_COLLAPSE="collapse",CLASS_NAME_COLLAPSING="collapsing",CLASS_NAME_COLLAPSED="collapsed",CLASS_NAME_DEEPER_CHILDREN=`:scope .${CLASS_NAME_COLLAPSE} .${CLASS_NAME_COLLAPSE}`,CLASS_NAME_HORIZONTAL="collapse-horizontal",WIDTH="width",HEIGHT="height",SELECTOR_ACTIVES=".collapse.show, .collapse.collapsing",SELECTOR_DATA_TOGGLE$4='[data-bs-toggle="collapse"]',Default$a={parent:null,toggle:!0},DefaultType$a={parent:"(null|element)",toggle:"boolean"};class Collapse extends BaseComponent{constructor(t,n){super(t,n),this._isTransitioning=!1,this._triggerArray=[];const i=SelectorEngine.find(SELECTOR_DATA_TOGGLE$4);for(const r of i){const a=SelectorEngine.getSelectorFromElement(r),o=SelectorEngine.find(a).filter(l=>l===this._element);a!==null&&o.length&&this._triggerArray.push(r)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Default$a}static get DefaultType(){return DefaultType$a}static get NAME(){return NAME$b}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(SELECTOR_ACTIVES).filter(l=>l!==this._element).map(l=>Collapse.getOrCreateInstance(l,{toggle:!1}))),t.length&&t[0]._isTransitioning||EventHandler.trigger(this._element,EVENT_SHOW$6).defaultPrevented)return;for(const l of t)l.hide();const i=this._getDimension();this._element.classList.remove(CLASS_NAME_COLLAPSE),this._element.classList.add(CLASS_NAME_COLLAPSING),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(CLASS_NAME_COLLAPSING),this._element.classList.add(CLASS_NAME_COLLAPSE,CLASS_NAME_SHOW$7),this._element.style[i]="",EventHandler.trigger(this._element,EVENT_SHOWN$6)},o=`scroll${i[0].toUpperCase()+i.slice(1)}`;this._queueCallback(r,this._element,!0),this._element.style[i]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown()||EventHandler.trigger(this._element,EVENT_HIDE$6).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,reflow(this._element),this._element.classList.add(CLASS_NAME_COLLAPSING),this._element.classList.remove(CLASS_NAME_COLLAPSE,CLASS_NAME_SHOW$7);for(const r of this._triggerArray){const a=SelectorEngine.getElementFromSelector(r);a&&!this._isShown(a)&&this._addAriaAndCollapsedClass([r],!1)}this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(CLASS_NAME_COLLAPSING),this._element.classList.add(CLASS_NAME_COLLAPSE),EventHandler.trigger(this._element,EVENT_HIDDEN$6)};this._element.style[n]="",this._queueCallback(i,this._element,!0)}_isShown(t=this._element){return t.classList.contains(CLASS_NAME_SHOW$7)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=getElement(t.parent),t}_getDimension(){return this._element.classList.contains(CLASS_NAME_HORIZONTAL)?WIDTH:HEIGHT}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(SELECTOR_DATA_TOGGLE$4);for(const n of t){const i=SelectorEngine.getElementFromSelector(n);i&&this._addAriaAndCollapsedClass([n],this._isShown(i))}}_getFirstLevelChildren(t){const n=SelectorEngine.find(CLASS_NAME_DEEPER_CHILDREN,this._config.parent);return SelectorEngine.find(t,this._config.parent).filter(i=>!n.includes(i))}_addAriaAndCollapsedClass(t,n){if(t.length)for(const i of t)i.classList.toggle(CLASS_NAME_COLLAPSED,!n),i.setAttribute("aria-expanded",n)}static jQueryInterface(t){const n={};return typeof t=="string"&&/show|hide/.test(t)&&(n.toggle=!1),this.each(function(){const i=Collapse.getOrCreateInstance(this,n);if(typeof t=="string"){if(typeof i[t]>"u")throw new TypeError(`No method named "${t}"`);i[t]()}})}}EventHandler.on(document,EVENT_CLICK_DATA_API$4,SELECTOR_DATA_TOGGLE$4,function(e){(e.target.tagName==="A"||e.delegateTarget&&e.delegateTarget.tagName==="A")&&e.preventDefault();for(const t of SelectorEngine.getMultipleElementsFromSelector(this))Collapse.getOrCreateInstance(t,{toggle:!1}).toggle()});defineJQueryPlugin(Collapse);const NAME$a="dropdown",DATA_KEY$6="bs.dropdown",EVENT_KEY$6=`.${DATA_KEY$6}`,DATA_API_KEY$3=".data-api",ESCAPE_KEY$2="Escape",TAB_KEY$1="Tab",ARROW_UP_KEY$1="ArrowUp",ARROW_DOWN_KEY$1="ArrowDown",RIGHT_MOUSE_BUTTON=2,EVENT_HIDE$5=`hide${EVENT_KEY$6}`,EVENT_HIDDEN$5=`hidden${EVENT_KEY$6}`,EVENT_SHOW$5=`show${EVENT_KEY$6}`,EVENT_SHOWN$5=`shown${EVENT_KEY$6}`,EVENT_CLICK_DATA_API$3=`click${EVENT_KEY$6}${DATA_API_KEY$3}`,EVENT_KEYDOWN_DATA_API=`keydown${EVENT_KEY$6}${DATA_API_KEY$3}`,EVENT_KEYUP_DATA_API=`keyup${EVENT_KEY$6}${DATA_API_KEY$3}`,CLASS_NAME_SHOW$6="show",CLASS_NAME_DROPUP="dropup",CLASS_NAME_DROPEND="dropend",CLASS_NAME_DROPSTART="dropstart",CLASS_NAME_DROPUP_CENTER="dropup-center",CLASS_NAME_DROPDOWN_CENTER="dropdown-center",SELECTOR_DATA_TOGGLE$3='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',SELECTOR_DATA_TOGGLE_SHOWN=`${SELECTOR_DATA_TOGGLE$3}.${CLASS_NAME_SHOW$6}`,SELECTOR_MENU=".dropdown-menu",SELECTOR_NAVBAR=".navbar",SELECTOR_NAVBAR_NAV=".navbar-nav",SELECTOR_VISIBLE_ITEMS=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",PLACEMENT_TOP=isRTL()?"top-end":"top-start",PLACEMENT_TOPEND=isRTL()?"top-start":"top-end",PLACEMENT_BOTTOM=isRTL()?"bottom-end":"bottom-start",PLACEMENT_BOTTOMEND=isRTL()?"bottom-start":"bottom-end",PLACEMENT_RIGHT=isRTL()?"left-start":"right-start",PLACEMENT_LEFT=isRTL()?"right-start":"left-start",PLACEMENT_TOPCENTER="top",PLACEMENT_BOTTOMCENTER="bottom",Default$9={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},DefaultType$9={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Dropdown extends BaseComponent{constructor(t,n){super(t,n),this._popper=null,this._parent=this._element.parentNode,this._menu=SelectorEngine.next(this._element,SELECTOR_MENU)[0]||SelectorEngine.prev(this._element,SELECTOR_MENU)[0]||SelectorEngine.findOne(SELECTOR_MENU,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Default$9}static get DefaultType(){return DefaultType$9}static get NAME(){return NAME$a}toggle(){return this._isShown()?this.hide():this.show()}show(){if(isDisabled(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!EventHandler.trigger(this._element,EVENT_SHOW$5,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(SELECTOR_NAVBAR_NAV))for(const i of[].concat(...document.body.children))EventHandler.on(i,"mouseover",noop$3);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(CLASS_NAME_SHOW$6),this._element.classList.add(CLASS_NAME_SHOW$6),EventHandler.trigger(this._element,EVENT_SHOWN$5,t)}}hide(){if(isDisabled(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!EventHandler.trigger(this._element,EVENT_HIDE$5,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))EventHandler.off(i,"mouseover",noop$3);this._popper&&this._popper.destroy(),this._menu.classList.remove(CLASS_NAME_SHOW$6),this._element.classList.remove(CLASS_NAME_SHOW$6),this._element.setAttribute("aria-expanded","false"),Manipulator.removeDataAttribute(this._menu,"popper"),EventHandler.trigger(this._element,EVENT_HIDDEN$5,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!isElement(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${NAME$a.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof Popper>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:isElement(this._config.reference)?t=getElement(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const n=this._getPopperConfig();this._popper=createPopper(t,this._menu,n)}_isShown(){return this._menu.classList.contains(CLASS_NAME_SHOW$6)}_getPlacement(){const t=this._parent;if(t.classList.contains(CLASS_NAME_DROPEND))return PLACEMENT_RIGHT;if(t.classList.contains(CLASS_NAME_DROPSTART))return PLACEMENT_LEFT;if(t.classList.contains(CLASS_NAME_DROPUP_CENTER))return PLACEMENT_TOPCENTER;if(t.classList.contains(CLASS_NAME_DROPDOWN_CENTER))return PLACEMENT_BOTTOMCENTER;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(CLASS_NAME_DROPUP)?n?PLACEMENT_TOPEND:PLACEMENT_TOP:n?PLACEMENT_BOTTOMEND:PLACEMENT_BOTTOM}_detectNavbar(){return this._element.closest(SELECTOR_NAVBAR)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(n=>Number.parseInt(n,10)):typeof t=="function"?n=>t(n,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Manipulator.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...execute(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:n}){const i=SelectorEngine.find(SELECTOR_VISIBLE_ITEMS,this._menu).filter(r=>isVisible(r));i.length&&getNextActiveElement(i,n,t===ARROW_DOWN_KEY$1,!i.includes(n)).focus()}static jQueryInterface(t){return this.each(function(){const n=Dropdown.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}static clearMenus(t){if(t.button===RIGHT_MOUSE_BUTTON||t.type==="keyup"&&t.key!==TAB_KEY$1)return;const n=SelectorEngine.find(SELECTOR_DATA_TOGGLE_SHOWN);for(const i of n){const r=Dropdown.getInstance(i);if(!r||r._config.autoClose===!1)continue;const a=t.composedPath(),o=a.includes(r._menu);if(a.includes(r._element)||r._config.autoClose==="inside"&&!o||r._config.autoClose==="outside"&&o||r._menu.contains(t.target)&&(t.type==="keyup"&&t.key===TAB_KEY$1||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const l={relatedTarget:r._element};t.type==="click"&&(l.clickEvent=t),r._completeHide(l)}}static dataApiKeydownHandler(t){const n=/input|textarea/i.test(t.target.tagName),i=t.key===ESCAPE_KEY$2,r=[ARROW_UP_KEY$1,ARROW_DOWN_KEY$1].includes(t.key);if(!r&&!i||n&&!i)return;t.preventDefault();const a=this.matches(SELECTOR_DATA_TOGGLE$3)?this:SelectorEngine.prev(this,SELECTOR_DATA_TOGGLE$3)[0]||SelectorEngine.next(this,SELECTOR_DATA_TOGGLE$3)[0]||SelectorEngine.findOne(SELECTOR_DATA_TOGGLE$3,t.delegateTarget.parentNode),o=Dropdown.getOrCreateInstance(a);if(r){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),a.focus())}}EventHandler.on(document,EVENT_KEYDOWN_DATA_API,SELECTOR_DATA_TOGGLE$3,Dropdown.dataApiKeydownHandler);EventHandler.on(document,EVENT_KEYDOWN_DATA_API,SELECTOR_MENU,Dropdown.dataApiKeydownHandler);EventHandler.on(document,EVENT_CLICK_DATA_API$3,Dropdown.clearMenus);EventHandler.on(document,EVENT_KEYUP_DATA_API,Dropdown.clearMenus);EventHandler.on(document,EVENT_CLICK_DATA_API$3,SELECTOR_DATA_TOGGLE$3,function(e){e.preventDefault(),Dropdown.getOrCreateInstance(this).toggle()});defineJQueryPlugin(Dropdown);const NAME$9="backdrop",CLASS_NAME_FADE$4="fade",CLASS_NAME_SHOW$5="show",EVENT_MOUSEDOWN=`mousedown.bs.${NAME$9}`,Default$8={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},DefaultType$8={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Backdrop extends Config$1{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Default$8}static get DefaultType(){return DefaultType$8}static get NAME(){return NAME$9}show(t){if(!this._config.isVisible){execute(t);return}this._append();const n=this._getElement();this._config.isAnimated&&reflow(n),n.classList.add(CLASS_NAME_SHOW$5),this._emulateAnimation(()=>{execute(t)})}hide(t){if(!this._config.isVisible){execute(t);return}this._getElement().classList.remove(CLASS_NAME_SHOW$5),this._emulateAnimation(()=>{this.dispose(),execute(t)})}dispose(){this._isAppended&&(EventHandler.off(this._element,EVENT_MOUSEDOWN),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(CLASS_NAME_FADE$4),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=getElement(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),EventHandler.on(t,EVENT_MOUSEDOWN,()=>{execute(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){executeAfterTransition(t,this._getElement(),this._config.isAnimated)}}const NAME$8="focustrap",DATA_KEY$5="bs.focustrap",EVENT_KEY$5=`.${DATA_KEY$5}`,EVENT_FOCUSIN$2=`focusin${EVENT_KEY$5}`,EVENT_KEYDOWN_TAB=`keydown.tab${EVENT_KEY$5}`,TAB_KEY="Tab",TAB_NAV_FORWARD="forward",TAB_NAV_BACKWARD="backward",Default$7={autofocus:!0,trapElement:null},DefaultType$7={autofocus:"boolean",trapElement:"element"};class FocusTrap extends Config$1{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Default$7}static get DefaultType(){return DefaultType$7}static get NAME(){return NAME$8}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),EventHandler.off(document,EVENT_KEY$5),EventHandler.on(document,EVENT_FOCUSIN$2,t=>this._handleFocusin(t)),EventHandler.on(document,EVENT_KEYDOWN_TAB,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,EventHandler.off(document,EVENT_KEY$5))}_handleFocusin(t){const{trapElement:n}=this._config;if(t.target===document||t.target===n||n.contains(t.target))return;const i=SelectorEngine.focusableChildren(n);i.length===0?n.focus():this._lastTabNavDirection===TAB_NAV_BACKWARD?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){t.key===TAB_KEY&&(this._lastTabNavDirection=t.shiftKey?TAB_NAV_BACKWARD:TAB_NAV_FORWARD)}}const SELECTOR_FIXED_CONTENT=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",SELECTOR_STICKY_CONTENT=".sticky-top",PROPERTY_PADDING="padding-right",PROPERTY_MARGIN="margin-right";class ScrollBarHelper{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,PROPERTY_PADDING,n=>n+t),this._setElementAttributes(SELECTOR_FIXED_CONTENT,PROPERTY_PADDING,n=>n+t),this._setElementAttributes(SELECTOR_STICKY_CONTENT,PROPERTY_MARGIN,n=>n-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,PROPERTY_PADDING),this._resetElementAttributes(SELECTOR_FIXED_CONTENT,PROPERTY_PADDING),this._resetElementAttributes(SELECTOR_STICKY_CONTENT,PROPERTY_MARGIN)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,n,i){const r=this.getWidth(),a=o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+r)return;this._saveInitialAttribute(o,n);const l=window.getComputedStyle(o).getPropertyValue(n);o.style.setProperty(n,`${i(Number.parseFloat(l))}px`)};this._applyManipulationCallback(t,a)}_saveInitialAttribute(t,n){const i=t.style.getPropertyValue(n);i&&Manipulator.setDataAttribute(t,n,i)}_resetElementAttributes(t,n){const i=r=>{const a=Manipulator.getDataAttribute(r,n);if(a===null){r.style.removeProperty(n);return}Manipulator.removeDataAttribute(r,n),r.style.setProperty(n,a)};this._applyManipulationCallback(t,i)}_applyManipulationCallback(t,n){if(isElement(t)){n(t);return}for(const i of SelectorEngine.find(t,this._element))n(i)}}const NAME$7="modal",DATA_KEY$4="bs.modal",EVENT_KEY$4=`.${DATA_KEY$4}`,DATA_API_KEY$2=".data-api",ESCAPE_KEY$1="Escape",EVENT_HIDE$4=`hide${EVENT_KEY$4}`,EVENT_HIDE_PREVENTED$1=`hidePrevented${EVENT_KEY$4}`,EVENT_HIDDEN$4=`hidden${EVENT_KEY$4}`,EVENT_SHOW$4=`show${EVENT_KEY$4}`,EVENT_SHOWN$4=`shown${EVENT_KEY$4}`,EVENT_RESIZE$1=`resize${EVENT_KEY$4}`,EVENT_CLICK_DISMISS=`click.dismiss${EVENT_KEY$4}`,EVENT_MOUSEDOWN_DISMISS=`mousedown.dismiss${EVENT_KEY$4}`,EVENT_KEYDOWN_DISMISS$1=`keydown.dismiss${EVENT_KEY$4}`,EVENT_CLICK_DATA_API$2=`click${EVENT_KEY$4}${DATA_API_KEY$2}`,CLASS_NAME_OPEN="modal-open",CLASS_NAME_FADE$3="fade",CLASS_NAME_SHOW$4="show",CLASS_NAME_STATIC="modal-static",OPEN_SELECTOR$1=".modal.show",SELECTOR_DIALOG=".modal-dialog",SELECTOR_MODAL_BODY=".modal-body",SELECTOR_DATA_TOGGLE$2='[data-bs-toggle="modal"]',Default$6={backdrop:!0,focus:!0,keyboard:!0},DefaultType$6={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Modal extends BaseComponent{constructor(t,n){super(t,n),this._dialog=SelectorEngine.findOne(SELECTOR_DIALOG,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ScrollBarHelper,this._addEventListeners()}static get Default(){return Default$6}static get DefaultType(){return DefaultType$6}static get NAME(){return NAME$7}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||EventHandler.trigger(this._element,EVENT_SHOW$4,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(CLASS_NAME_OPEN),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||EventHandler.trigger(this._element,EVENT_HIDE$4).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(CLASS_NAME_SHOW$4),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){EventHandler.off(window,EVENT_KEY$4),EventHandler.off(this._dialog,EVENT_KEY$4),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Backdrop({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new FocusTrap({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const n=SelectorEngine.findOne(SELECTOR_MODAL_BODY,this._dialog);n&&(n.scrollTop=0),reflow(this._element),this._element.classList.add(CLASS_NAME_SHOW$4);const i=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,EventHandler.trigger(this._element,EVENT_SHOWN$4,{relatedTarget:t})};this._queueCallback(i,this._dialog,this._isAnimated())}_addEventListeners(){EventHandler.on(this._element,EVENT_KEYDOWN_DISMISS$1,t=>{if(t.key===ESCAPE_KEY$1){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),EventHandler.on(window,EVENT_RESIZE$1,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),EventHandler.on(this._element,EVENT_MOUSEDOWN_DISMISS,t=>{EventHandler.one(this._element,EVENT_CLICK_DISMISS,n=>{if(!(this._element!==t.target||this._element!==n.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(CLASS_NAME_OPEN),this._resetAdjustments(),this._scrollBar.reset(),EventHandler.trigger(this._element,EVENT_HIDDEN$4)})}_isAnimated(){return this._element.classList.contains(CLASS_NAME_FADE$3)}_triggerBackdropTransition(){if(EventHandler.trigger(this._element,EVENT_HIDE_PREVENTED$1).defaultPrevented)return;const n=this._element.scrollHeight>document.documentElement.clientHeight,i=this._element.style.overflowY;i==="hidden"||this._element.classList.contains(CLASS_NAME_STATIC)||(n||(this._element.style.overflowY="hidden"),this._element.classList.add(CLASS_NAME_STATIC),this._queueCallback(()=>{this._element.classList.remove(CLASS_NAME_STATIC),this._queueCallback(()=>{this._element.style.overflowY=i},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,n=this._scrollBar.getWidth(),i=n>0;if(i&&!t){const r=isRTL()?"paddingLeft":"paddingRight";this._element.style[r]=`${n}px`}if(!i&&t){const r=isRTL()?"paddingRight":"paddingLeft";this._element.style[r]=`${n}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,n){return this.each(function(){const i=Modal.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof i[t]>"u")throw new TypeError(`No method named "${t}"`);i[t](n)}})}}EventHandler.on(document,EVENT_CLICK_DATA_API$2,SELECTOR_DATA_TOGGLE$2,function(e){const t=SelectorEngine.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),EventHandler.one(t,EVENT_SHOW$4,r=>{r.defaultPrevented||EventHandler.one(t,EVENT_HIDDEN$4,()=>{isVisible(this)&&this.focus()})});const n=SelectorEngine.findOne(OPEN_SELECTOR$1);n&&Modal.getInstance(n).hide(),Modal.getOrCreateInstance(t).toggle(this)});enableDismissTrigger(Modal);defineJQueryPlugin(Modal);const NAME$6="offcanvas",DATA_KEY$3="bs.offcanvas",EVENT_KEY$3=`.${DATA_KEY$3}`,DATA_API_KEY$1=".data-api",EVENT_LOAD_DATA_API$2=`load${EVENT_KEY$3}${DATA_API_KEY$1}`,ESCAPE_KEY="Escape",CLASS_NAME_SHOW$3="show",CLASS_NAME_SHOWING$1="showing",CLASS_NAME_HIDING="hiding",CLASS_NAME_BACKDROP="offcanvas-backdrop",OPEN_SELECTOR=".offcanvas.show",EVENT_SHOW$3=`show${EVENT_KEY$3}`,EVENT_SHOWN$3=`shown${EVENT_KEY$3}`,EVENT_HIDE$3=`hide${EVENT_KEY$3}`,EVENT_HIDE_PREVENTED=`hidePrevented${EVENT_KEY$3}`,EVENT_HIDDEN$3=`hidden${EVENT_KEY$3}`,EVENT_RESIZE=`resize${EVENT_KEY$3}`,EVENT_CLICK_DATA_API$1=`click${EVENT_KEY$3}${DATA_API_KEY$1}`,EVENT_KEYDOWN_DISMISS=`keydown.dismiss${EVENT_KEY$3}`,SELECTOR_DATA_TOGGLE$1='[data-bs-toggle="offcanvas"]',Default$5={backdrop:!0,keyboard:!0,scroll:!1},DefaultType$5={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Offcanvas extends BaseComponent{constructor(t,n){super(t,n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Default$5}static get DefaultType(){return DefaultType$5}static get NAME(){return NAME$6}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||EventHandler.trigger(this._element,EVENT_SHOW$3,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new ScrollBarHelper().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(CLASS_NAME_SHOWING$1);const i=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(CLASS_NAME_SHOW$3),this._element.classList.remove(CLASS_NAME_SHOWING$1),EventHandler.trigger(this._element,EVENT_SHOWN$3,{relatedTarget:t})};this._queueCallback(i,this._element,!0)}hide(){if(!this._isShown||EventHandler.trigger(this._element,EVENT_HIDE$3).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(CLASS_NAME_HIDING),this._backdrop.hide();const n=()=>{this._element.classList.remove(CLASS_NAME_SHOW$3,CLASS_NAME_HIDING),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new ScrollBarHelper().reset(),EventHandler.trigger(this._element,EVENT_HIDDEN$3)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){EventHandler.trigger(this._element,EVENT_HIDE_PREVENTED);return}this.hide()},n=!!this._config.backdrop;return new Backdrop({className:CLASS_NAME_BACKDROP,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?t:null})}_initializeFocusTrap(){return new FocusTrap({trapElement:this._element})}_addEventListeners(){EventHandler.on(this._element,EVENT_KEYDOWN_DISMISS,t=>{if(t.key===ESCAPE_KEY){if(this._config.keyboard){this.hide();return}EventHandler.trigger(this._element,EVENT_HIDE_PREVENTED)}})}static jQueryInterface(t){return this.each(function(){const n=Offcanvas.getOrCreateInstance(this,t);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}EventHandler.on(document,EVENT_CLICK_DATA_API$1,SELECTOR_DATA_TOGGLE$1,function(e){const t=SelectorEngine.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),isDisabled(this))return;EventHandler.one(t,EVENT_HIDDEN$3,()=>{isVisible(this)&&this.focus()});const n=SelectorEngine.findOne(OPEN_SELECTOR);n&&n!==t&&Offcanvas.getInstance(n).hide(),Offcanvas.getOrCreateInstance(t).toggle(this)});EventHandler.on(window,EVENT_LOAD_DATA_API$2,()=>{for(const e of SelectorEngine.find(OPEN_SELECTOR))Offcanvas.getOrCreateInstance(e).show()});EventHandler.on(window,EVENT_RESIZE,()=>{for(const e of SelectorEngine.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(e).position!=="fixed"&&Offcanvas.getOrCreateInstance(e).hide()});enableDismissTrigger(Offcanvas);defineJQueryPlugin(Offcanvas);const ARIA_ATTRIBUTE_PATTERN=/^aria-[\w-]*$/i,DefaultAllowlist={"*":["class","dir","id","lang","role",ARIA_ATTRIBUTE_PATTERN],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},uriAttributes=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),SAFE_URL_PATTERN=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,allowedAttribute=(e,t)=>{const n=e.nodeName.toLowerCase();return t.includes(n)?uriAttributes.has(n)?!!SAFE_URL_PATTERN.test(e.nodeValue):!0:t.filter(i=>i instanceof RegExp).some(i=>i.test(n))};function sanitizeHtml(e,t,n){if(!e.length)return e;if(n&&typeof n=="function")return n(e);const r=new window.DOMParser().parseFromString(e,"text/html"),a=[].concat(...r.body.querySelectorAll("*"));for(const o of a){const l=o.nodeName.toLowerCase();if(!Object.keys(t).includes(l)){o.remove();continue}const u=[].concat(...o.attributes),h=[].concat(t["*"]||[],t[l]||[]);for(const m of u)allowedAttribute(m,h)||o.removeAttribute(m.nodeName)}return r.body.innerHTML}const NAME$5="TemplateFactory",Default$4={allowList:DefaultAllowlist,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},DefaultType$4={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},DefaultContentType={entry:"(string|element|function|null)",selector:"(string|element)"};class TemplateFactory extends Config$1{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Default$4}static get DefaultType(){return DefaultType$4}static get NAME(){return NAME$5}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[r,a]of Object.entries(this._config.content))this._setContent(t,a,r);const n=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&n.classList.add(...i.split(" ")),n}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[n,i]of Object.entries(t))super._typeCheckConfig({selector:n,entry:i},DefaultContentType)}_setContent(t,n,i){const r=SelectorEngine.findOne(i,t);if(r){if(n=this._resolvePossibleFunction(n),!n){r.remove();return}if(isElement(n)){this._putElementInTemplate(getElement(n),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(n);return}r.textContent=n}}_maybeSanitize(t){return this._config.sanitize?sanitizeHtml(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return execute(t,[this])}_putElementInTemplate(t,n){if(this._config.html){n.innerHTML="",n.append(t);return}n.textContent=t.textContent}}const NAME$4="tooltip",DISALLOWED_ATTRIBUTES=new Set(["sanitize","allowList","sanitizeFn"]),CLASS_NAME_FADE$2="fade",CLASS_NAME_MODAL="modal",CLASS_NAME_SHOW$2="show",SELECTOR_TOOLTIP_INNER=".tooltip-inner",SELECTOR_MODAL=`.${CLASS_NAME_MODAL}`,EVENT_MODAL_HIDE="hide.bs.modal",TRIGGER_HOVER="hover",TRIGGER_FOCUS="focus",TRIGGER_CLICK="click",TRIGGER_MANUAL="manual",EVENT_HIDE$2="hide",EVENT_HIDDEN$2="hidden",EVENT_SHOW$2="show",EVENT_SHOWN$2="shown",EVENT_INSERTED="inserted",EVENT_CLICK$1="click",EVENT_FOCUSIN$1="focusin",EVENT_FOCUSOUT$1="focusout",EVENT_MOUSEENTER="mouseenter",EVENT_MOUSELEAVE="mouseleave",AttachmentMap={AUTO:"auto",TOP:"top",RIGHT:isRTL()?"left":"right",BOTTOM:"bottom",LEFT:isRTL()?"right":"left"},Default$3={allowList:DefaultAllowlist,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},DefaultType$3={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};let Tooltip$1=class Di extends BaseComponent{constructor(t,n){if(typeof Popper>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,n),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Default$3}static get DefaultType(){return DefaultType$3}static get NAME(){return NAME$4}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),EventHandler.off(this._element.closest(SELECTOR_MODAL),EVENT_MODAL_HIDE,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const t=EventHandler.trigger(this._element,this.constructor.eventName(EVENT_SHOW$2)),i=(findShadowRoot(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!i)return;this._disposePopper();const r=this._getTipElement();this._element.setAttribute("aria-describedby",r.getAttribute("id"));const{container:a}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(a.append(r),EventHandler.trigger(this._element,this.constructor.eventName(EVENT_INSERTED))),this._popper=this._createPopper(r),r.classList.add(CLASS_NAME_SHOW$2),"ontouchstart"in document.documentElement)for(const l of[].concat(...document.body.children))EventHandler.on(l,"mouseover",noop$3);const o=()=>{EventHandler.trigger(this._element,this.constructor.eventName(EVENT_SHOWN$2)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(o,this.tip,this._isAnimated())}hide(){if(!this._isShown()||EventHandler.trigger(this._element,this.constructor.eventName(EVENT_HIDE$2)).defaultPrevented)return;if(this._getTipElement().classList.remove(CLASS_NAME_SHOW$2),"ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))EventHandler.off(r,"mouseover",noop$3);this._activeTrigger[TRIGGER_CLICK]=!1,this._activeTrigger[TRIGGER_FOCUS]=!1,this._activeTrigger[TRIGGER_HOVER]=!1,this._isHovered=null;const i=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),EventHandler.trigger(this._element,this.constructor.eventName(EVENT_HIDDEN$2)))};this._queueCallback(i,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const n=this._getTemplateFactory(t).toHtml();if(!n)return null;n.classList.remove(CLASS_NAME_FADE$2,CLASS_NAME_SHOW$2),n.classList.add(`bs-${this.constructor.NAME}-auto`);const i=getUID(this.constructor.NAME).toString();return n.setAttribute("id",i),this._isAnimated()&&n.classList.add(CLASS_NAME_FADE$2),n}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new TemplateFactory({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[SELECTOR_TOOLTIP_INNER]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(CLASS_NAME_FADE$2)}_isShown(){return this.tip&&this.tip.classList.contains(CLASS_NAME_SHOW$2)}_createPopper(t){const n=execute(this._config.placement,[this,t,this._element]),i=AttachmentMap[n.toUpperCase()];return createPopper(this._element,t,this._getPopperConfig(i))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(n=>Number.parseInt(n,10)):typeof t=="function"?n=>t(n,this._element):t}_resolvePossibleFunction(t){return execute(t,[this._element])}_getPopperConfig(t){const n={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:i=>{this._getTipElement().setAttribute("data-popper-placement",i.state.placement)}}]};return{...n,...execute(this._config.popperConfig,[n])}}_setListeners(){const t=this._config.trigger.split(" ");for(const n of t)if(n==="click")EventHandler.on(this._element,this.constructor.eventName(EVENT_CLICK$1),this._config.selector,i=>{this._initializeOnDelegatedTarget(i).toggle()});else if(n!==TRIGGER_MANUAL){const i=n===TRIGGER_HOVER?this.constructor.eventName(EVENT_MOUSEENTER):this.constructor.eventName(EVENT_FOCUSIN$1),r=n===TRIGGER_HOVER?this.constructor.eventName(EVENT_MOUSELEAVE):this.constructor.eventName(EVENT_FOCUSOUT$1);EventHandler.on(this._element,i,this._config.selector,a=>{const o=this._initializeOnDelegatedTarget(a);o._activeTrigger[a.type==="focusin"?TRIGGER_FOCUS:TRIGGER_HOVER]=!0,o._enter()}),EventHandler.on(this._element,r,this._config.selector,a=>{const o=this._initializeOnDelegatedTarget(a);o._activeTrigger[a.type==="focusout"?TRIGGER_FOCUS:TRIGGER_HOVER]=o._element.contains(a.relatedTarget),o._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},EventHandler.on(this._element.closest(SELECTOR_MODAL),EVENT_MODAL_HIDE,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,n){clearTimeout(this._timeout),this._timeout=setTimeout(t,n)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const n=Manipulator.getDataAttributes(this._element);for(const i of Object.keys(n))DISALLOWED_ATTRIBUTES.has(i)&&delete n[i];return t={...n,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:getElement(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[n,i]of Object.entries(this._config))this.constructor.Default[n]!==i&&(t[n]=i);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const n=Di.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}};defineJQueryPlugin(Tooltip$1);const NAME$3="popover",SELECTOR_TITLE=".popover-header",SELECTOR_CONTENT=".popover-body",Default$2={...Tooltip$1.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},DefaultType$2={...Tooltip$1.DefaultType,content:"(null|string|element|function)"};class Popover extends Tooltip$1{static get Default(){return Default$2}static get DefaultType(){return DefaultType$2}static get NAME(){return NAME$3}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[SELECTOR_TITLE]:this._getTitle(),[SELECTOR_CONTENT]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const n=Popover.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}}defineJQueryPlugin(Popover);const NAME$2="scrollspy",DATA_KEY$2="bs.scrollspy",EVENT_KEY$2=`.${DATA_KEY$2}`,DATA_API_KEY=".data-api",EVENT_ACTIVATE=`activate${EVENT_KEY$2}`,EVENT_CLICK=`click${EVENT_KEY$2}`,EVENT_LOAD_DATA_API$1=`load${EVENT_KEY$2}${DATA_API_KEY}`,CLASS_NAME_DROPDOWN_ITEM="dropdown-item",CLASS_NAME_ACTIVE$1="active",SELECTOR_DATA_SPY='[data-bs-spy="scroll"]',SELECTOR_TARGET_LINKS="[href]",SELECTOR_NAV_LIST_GROUP=".nav, .list-group",SELECTOR_NAV_LINKS=".nav-link",SELECTOR_NAV_ITEMS=".nav-item",SELECTOR_LIST_ITEMS=".list-group-item",SELECTOR_LINK_ITEMS=`${SELECTOR_NAV_LINKS}, ${SELECTOR_NAV_ITEMS} > ${SELECTOR_NAV_LINKS}, ${SELECTOR_LIST_ITEMS}`,SELECTOR_DROPDOWN=".dropdown",SELECTOR_DROPDOWN_TOGGLE$1=".dropdown-toggle",Default$1={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},DefaultType$1={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class ScrollSpy extends BaseComponent{constructor(t,n){super(t,n),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Default$1}static get DefaultType(){return DefaultType$1}static get NAME(){return NAME$2}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=getElement(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(n=>Number.parseFloat(n))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(EventHandler.off(this._config.target,EVENT_CLICK),EventHandler.on(this._config.target,EVENT_CLICK,SELECTOR_TARGET_LINKS,t=>{const n=this._observableSections.get(t.target.hash);if(n){t.preventDefault();const i=this._rootElement||window,r=n.offsetTop-this._element.offsetTop;if(i.scrollTo){i.scrollTo({top:r,behavior:"smooth"});return}i.scrollTop=r}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(n=>this._observerCallback(n),t)}_observerCallback(t){const n=o=>this._targetLinks.get(`#${o.target.id}`),i=o=>{this._previousScrollData.visibleEntryTop=o.target.offsetTop,this._process(n(o))},r=(this._rootElement||document.documentElement).scrollTop,a=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(n(o));continue}const l=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(a&&l){if(i(o),!r)return;continue}!a&&!l&&i(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=SelectorEngine.find(SELECTOR_TARGET_LINKS,this._config.target);for(const n of t){if(!n.hash||isDisabled(n))continue;const i=SelectorEngine.findOne(decodeURI(n.hash),this._element);isVisible(i)&&(this._targetLinks.set(decodeURI(n.hash),n),this._observableSections.set(n.hash,i))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(CLASS_NAME_ACTIVE$1),this._activateParents(t),EventHandler.trigger(this._element,EVENT_ACTIVATE,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(CLASS_NAME_DROPDOWN_ITEM)){SelectorEngine.findOne(SELECTOR_DROPDOWN_TOGGLE$1,t.closest(SELECTOR_DROPDOWN)).classList.add(CLASS_NAME_ACTIVE$1);return}for(const n of SelectorEngine.parents(t,SELECTOR_NAV_LIST_GROUP))for(const i of SelectorEngine.prev(n,SELECTOR_LINK_ITEMS))i.classList.add(CLASS_NAME_ACTIVE$1)}_clearActiveClass(t){t.classList.remove(CLASS_NAME_ACTIVE$1);const n=SelectorEngine.find(`${SELECTOR_TARGET_LINKS}.${CLASS_NAME_ACTIVE$1}`,t);for(const i of n)i.classList.remove(CLASS_NAME_ACTIVE$1)}static jQueryInterface(t){return this.each(function(){const n=ScrollSpy.getOrCreateInstance(this,t);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t]()}})}}EventHandler.on(window,EVENT_LOAD_DATA_API$1,()=>{for(const e of SelectorEngine.find(SELECTOR_DATA_SPY))ScrollSpy.getOrCreateInstance(e)});defineJQueryPlugin(ScrollSpy);const NAME$1="tab",DATA_KEY$1="bs.tab",EVENT_KEY$1=`.${DATA_KEY$1}`,EVENT_HIDE$1=`hide${EVENT_KEY$1}`,EVENT_HIDDEN$1=`hidden${EVENT_KEY$1}`,EVENT_SHOW$1=`show${EVENT_KEY$1}`,EVENT_SHOWN$1=`shown${EVENT_KEY$1}`,EVENT_CLICK_DATA_API=`click${EVENT_KEY$1}`,EVENT_KEYDOWN=`keydown${EVENT_KEY$1}`,EVENT_LOAD_DATA_API=`load${EVENT_KEY$1}`,ARROW_LEFT_KEY="ArrowLeft",ARROW_RIGHT_KEY="ArrowRight",ARROW_UP_KEY="ArrowUp",ARROW_DOWN_KEY="ArrowDown",HOME_KEY="Home",END_KEY="End",CLASS_NAME_ACTIVE="active",CLASS_NAME_FADE$1="fade",CLASS_NAME_SHOW$1="show",CLASS_DROPDOWN="dropdown",SELECTOR_DROPDOWN_TOGGLE=".dropdown-toggle",SELECTOR_DROPDOWN_MENU=".dropdown-menu",NOT_SELECTOR_DROPDOWN_TOGGLE=`:not(${SELECTOR_DROPDOWN_TOGGLE})`,SELECTOR_TAB_PANEL='.list-group, .nav, [role="tablist"]',SELECTOR_OUTER=".nav-item, .list-group-item",SELECTOR_INNER=`.nav-link${NOT_SELECTOR_DROPDOWN_TOGGLE}, .list-group-item${NOT_SELECTOR_DROPDOWN_TOGGLE}, [role="tab"]${NOT_SELECTOR_DROPDOWN_TOGGLE}`,SELECTOR_DATA_TOGGLE='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',SELECTOR_INNER_ELEM=`${SELECTOR_INNER}, ${SELECTOR_DATA_TOGGLE}`,SELECTOR_DATA_TOGGLE_ACTIVE=`.${CLASS_NAME_ACTIVE}[data-bs-toggle="tab"], .${CLASS_NAME_ACTIVE}[data-bs-toggle="pill"], .${CLASS_NAME_ACTIVE}[data-bs-toggle="list"]`;class Tab extends BaseComponent{constructor(t){super(t),this._parent=this._element.closest(SELECTOR_TAB_PANEL),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),EventHandler.on(this._element,EVENT_KEYDOWN,n=>this._keydown(n)))}static get NAME(){return NAME$1}show(){const t=this._element;if(this._elemIsActive(t))return;const n=this._getActiveElem(),i=n?EventHandler.trigger(n,EVENT_HIDE$1,{relatedTarget:t}):null;EventHandler.trigger(t,EVENT_SHOW$1,{relatedTarget:n}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(n,t),this._activate(t,n))}_activate(t,n){if(!t)return;t.classList.add(CLASS_NAME_ACTIVE),this._activate(SelectorEngine.getElementFromSelector(t));const i=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(CLASS_NAME_SHOW$1);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),EventHandler.trigger(t,EVENT_SHOWN$1,{relatedTarget:n})};this._queueCallback(i,t,t.classList.contains(CLASS_NAME_FADE$1))}_deactivate(t,n){if(!t)return;t.classList.remove(CLASS_NAME_ACTIVE),t.blur(),this._deactivate(SelectorEngine.getElementFromSelector(t));const i=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(CLASS_NAME_SHOW$1);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),EventHandler.trigger(t,EVENT_HIDDEN$1,{relatedTarget:n})};this._queueCallback(i,t,t.classList.contains(CLASS_NAME_FADE$1))}_keydown(t){if(![ARROW_LEFT_KEY,ARROW_RIGHT_KEY,ARROW_UP_KEY,ARROW_DOWN_KEY,HOME_KEY,END_KEY].includes(t.key))return;t.stopPropagation(),t.preventDefault();const n=this._getChildren().filter(r=>!isDisabled(r));let i;if([HOME_KEY,END_KEY].includes(t.key))i=n[t.key===HOME_KEY?0:n.length-1];else{const r=[ARROW_RIGHT_KEY,ARROW_DOWN_KEY].includes(t.key);i=getNextActiveElement(n,t.target,r,!0)}i&&(i.focus({preventScroll:!0}),Tab.getOrCreateInstance(i).show())}_getChildren(){return SelectorEngine.find(SELECTOR_INNER_ELEM,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,n){this._setAttributeIfNotExists(t,"role","tablist");for(const i of n)this._setInitialAttributesOnChild(i)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const n=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",n),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),n||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const n=SelectorEngine.getElementFromSelector(t);n&&(this._setAttributeIfNotExists(n,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(n,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,n){const i=this._getOuterElement(t);if(!i.classList.contains(CLASS_DROPDOWN))return;const r=(a,o)=>{const l=SelectorEngine.findOne(a,i);l&&l.classList.toggle(o,n)};r(SELECTOR_DROPDOWN_TOGGLE,CLASS_NAME_ACTIVE),r(SELECTOR_DROPDOWN_MENU,CLASS_NAME_SHOW$1),i.setAttribute("aria-expanded",n)}_setAttributeIfNotExists(t,n,i){t.hasAttribute(n)||t.setAttribute(n,i)}_elemIsActive(t){return t.classList.contains(CLASS_NAME_ACTIVE)}_getInnerElement(t){return t.matches(SELECTOR_INNER_ELEM)?t:SelectorEngine.findOne(SELECTOR_INNER_ELEM,t)}_getOuterElement(t){return t.closest(SELECTOR_OUTER)||t}static jQueryInterface(t){return this.each(function(){const n=Tab.getOrCreateInstance(this);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t]()}})}}EventHandler.on(document,EVENT_CLICK_DATA_API,SELECTOR_DATA_TOGGLE,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),!isDisabled(this)&&Tab.getOrCreateInstance(this).show()});EventHandler.on(window,EVENT_LOAD_DATA_API,()=>{for(const e of SelectorEngine.find(SELECTOR_DATA_TOGGLE_ACTIVE))Tab.getOrCreateInstance(e)});defineJQueryPlugin(Tab);const NAME="toast",DATA_KEY="bs.toast",EVENT_KEY=`.${DATA_KEY}`,EVENT_MOUSEOVER=`mouseover${EVENT_KEY}`,EVENT_MOUSEOUT=`mouseout${EVENT_KEY}`,EVENT_FOCUSIN=`focusin${EVENT_KEY}`,EVENT_FOCUSOUT=`focusout${EVENT_KEY}`,EVENT_HIDE=`hide${EVENT_KEY}`,EVENT_HIDDEN=`hidden${EVENT_KEY}`,EVENT_SHOW=`show${EVENT_KEY}`,EVENT_SHOWN=`shown${EVENT_KEY}`,CLASS_NAME_FADE="fade",CLASS_NAME_HIDE="hide",CLASS_NAME_SHOW="show",CLASS_NAME_SHOWING="showing",DefaultType={animation:"boolean",autohide:"boolean",delay:"number"},Default={animation:!0,autohide:!0,delay:5e3};class Toast extends BaseComponent{constructor(t,n){super(t,n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Default}static get DefaultType(){return DefaultType}static get NAME(){return NAME}show(){if(EventHandler.trigger(this._element,EVENT_SHOW).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(CLASS_NAME_FADE);const n=()=>{this._element.classList.remove(CLASS_NAME_SHOWING),EventHandler.trigger(this._element,EVENT_SHOWN),this._maybeScheduleHide()};this._element.classList.remove(CLASS_NAME_HIDE),reflow(this._element),this._element.classList.add(CLASS_NAME_SHOW,CLASS_NAME_SHOWING),this._queueCallback(n,this._element,this._config.animation)}hide(){if(!this.isShown()||EventHandler.trigger(this._element,EVENT_HIDE).defaultPrevented)return;const n=()=>{this._element.classList.add(CLASS_NAME_HIDE),this._element.classList.remove(CLASS_NAME_SHOWING,CLASS_NAME_SHOW),EventHandler.trigger(this._element,EVENT_HIDDEN)};this._element.classList.add(CLASS_NAME_SHOWING),this._queueCallback(n,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(CLASS_NAME_SHOW),super.dispose()}isShown(){return this._element.classList.contains(CLASS_NAME_SHOW)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,n){switch(t.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=n;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=n;break}}if(n){this._clearTimeout();return}const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){EventHandler.on(this._element,EVENT_MOUSEOVER,t=>this._onInteraction(t,!0)),EventHandler.on(this._element,EVENT_MOUSEOUT,t=>this._onInteraction(t,!1)),EventHandler.on(this._element,EVENT_FOCUSIN,t=>this._onInteraction(t,!0)),EventHandler.on(this._element,EVENT_FOCUSOUT,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const n=Toast.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}enableDismissTrigger(Toast);defineJQueryPlugin(Toast);function toDate(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function constructFrom(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function addDays(e,t){const n=toDate(e);return isNaN(t)?constructFrom(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function addMonths(e,t){const n=toDate(e);if(isNaN(t))return constructFrom(e,NaN);if(!t)return n;const i=n.getDate(),r=constructFrom(e,n.getTime());r.setMonth(n.getMonth()+t+1,0);const a=r.getDate();return i>=a?r:(n.setFullYear(r.getFullYear(),r.getMonth(),i),n)}function addMilliseconds(e,t){const n=+toDate(e);return constructFrom(e,n+t)}const millisecondsInWeek=6048e5,millisecondsInDay=864e5,millisecondsInMinute=6e4,millisecondsInHour=36e5,millisecondsInSecond=1e3;function addHours(e,t){return addMilliseconds(e,t*millisecondsInHour)}let defaultOptions={};function getDefaultOptions$1(){return defaultOptions}function startOfWeek(e,t){var l,u,h,m;const n=getDefaultOptions$1(),i=(t==null?void 0:t.weekStartsOn)??((u=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??n.weekStartsOn??((m=(h=n.locale)==null?void 0:h.options)==null?void 0:m.weekStartsOn)??0,r=toDate(e),a=r.getDay(),o=(a<i?7:0)+a-i;return r.setDate(r.getDate()-o),r.setHours(0,0,0,0),r}function startOfISOWeek(e){return startOfWeek(e,{weekStartsOn:1})}function getISOWeekYear(e){const t=toDate(e),n=t.getFullYear(),i=constructFrom(e,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);const r=startOfISOWeek(i),a=constructFrom(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const o=startOfISOWeek(a);return t.getTime()>=r.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function startOfDay(e){const t=toDate(e);return t.setHours(0,0,0,0),t}function getTimezoneOffsetInMilliseconds(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function differenceInCalendarDays(e,t){const n=startOfDay(e),i=startOfDay(t),r=n.getTime()-getTimezoneOffsetInMilliseconds(n),a=i.getTime()-getTimezoneOffsetInMilliseconds(i);return Math.round((r-a)/millisecondsInDay)}function startOfISOWeekYear(e){const t=getISOWeekYear(e),n=constructFrom(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),startOfISOWeek(n)}function addMinutes(e,t){return addMilliseconds(e,t*millisecondsInMinute)}function addQuarters(e,t){const n=t*3;return addMonths(e,n)}function addSeconds(e,t){return addMilliseconds(e,t*1e3)}function addWeeks(e,t){const n=t*7;return addDays(e,n)}function addYears(e,t){return addMonths(e,t*12)}function compareAsc(e,t){const n=toDate(e),i=toDate(t),r=n.getTime()-i.getTime();return r<0?-1:r>0?1:r}function isDate(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function isValid(e){if(!isDate(e)&&typeof e!="number")return!1;const t=toDate(e);return!isNaN(Number(t))}function differenceInCalendarMonths(e,t){const n=toDate(e),i=toDate(t),r=n.getFullYear()-i.getFullYear(),a=n.getMonth()-i.getMonth();return r*12+a}function differenceInCalendarYears(e,t){const n=toDate(e),i=toDate(t);return n.getFullYear()-i.getFullYear()}function differenceInDays(e,t){const n=toDate(e),i=toDate(t),r=compareLocalAsc(n,i),a=Math.abs(differenceInCalendarDays(n,i));n.setDate(n.getDate()-r*a);const o=+(compareLocalAsc(n,i)===-r),l=r*(a-o);return l===0?0:l}function compareLocalAsc(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function differenceInMilliseconds(e,t){return toDate(e).getTime()-toDate(t).getTime()}function getRoundingMethod(e){return e?Math[e]:Math.trunc}function differenceInHours(e,t,n){const i=differenceInMilliseconds(e,t)/millisecondsInHour;return getRoundingMethod(n==null?void 0:n.roundingMethod)(i)}function differenceInMinutes(e,t,n){const i=differenceInMilliseconds(e,t)/millisecondsInMinute;return getRoundingMethod(n==null?void 0:n.roundingMethod)(i)}function endOfDay(e){const t=toDate(e);return t.setHours(23,59,59,999),t}function endOfMonth(e){const t=toDate(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function isLastDayOfMonth(e){const t=toDate(e);return+endOfDay(t)==+endOfMonth(t)}function differenceInMonths(e,t){const n=toDate(e),i=toDate(t),r=compareAsc(n,i),a=Math.abs(differenceInCalendarMonths(n,i));let o;if(a<1)o=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-r*a);let l=compareAsc(n,i)===-r;isLastDayOfMonth(toDate(e))&&a===1&&compareAsc(e,i)===1&&(l=!1),o=r*(a-Number(l))}return o===0?0:o}function differenceInQuarters(e,t,n){const i=differenceInMonths(e,t)/3;return getRoundingMethod(n==null?void 0:n.roundingMethod)(i)}function differenceInSeconds(e,t,n){const i=differenceInMilliseconds(e,t)/1e3;return getRoundingMethod(n==null?void 0:n.roundingMethod)(i)}function differenceInWeeks(e,t,n){const i=differenceInDays(e,t)/7;return getRoundingMethod(n==null?void 0:n.roundingMethod)(i)}function differenceInYears(e,t){const n=toDate(e),i=toDate(t),r=compareAsc(n,i),a=Math.abs(differenceInCalendarYears(n,i));n.setFullYear(1584),i.setFullYear(1584);const o=compareAsc(n,i)===-r,l=r*(a-+o);return l===0?0:l}function startOfMinute(e){const t=toDate(e);return t.setSeconds(0,0),t}function startOfQuarter(e){const t=toDate(e),n=t.getMonth(),i=n-n%3;return t.setMonth(i,1),t.setHours(0,0,0,0),t}function startOfMonth(e){const t=toDate(e);return t.setDate(1),t.setHours(0,0,0,0),t}function endOfYear(e){const t=toDate(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function startOfYear(e){const t=toDate(e),n=constructFrom(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function endOfHour(e){const t=toDate(e);return t.setMinutes(59,59,999),t}function endOfWeek(e,t){var l,u,h,m;const n=getDefaultOptions$1(),i=(t==null?void 0:t.weekStartsOn)??((u=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??n.weekStartsOn??((m=(h=n.locale)==null?void 0:h.options)==null?void 0:m.weekStartsOn)??0,r=toDate(e),a=r.getDay(),o=(a<i?-7:0)+6-(a-i);return r.setDate(r.getDate()+o),r.setHours(23,59,59,999),r}function endOfMinute(e){const t=toDate(e);return t.setSeconds(59,999),t}function endOfQuarter(e){const t=toDate(e),n=t.getMonth(),i=n-n%3+3;return t.setMonth(i,0),t.setHours(23,59,59,999),t}function endOfSecond(e){const t=toDate(e);return t.setMilliseconds(999),t}const formatDistanceLocale$t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},formatDistance$u=(e,t,n)=>{let i;const r=formatDistanceLocale$t[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function buildFormatLongFn(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const dateFormats$v={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},timeFormats$v={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats$v={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$v={date:buildFormatLongFn({formats:dateFormats$v,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$v,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$v,defaultWidth:"full"})},formatRelativeLocale$u={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},formatRelative$u=(e,t,n,i)=>formatRelativeLocale$u[e];function buildLocalizeFn(e){return(t,n)=>{const i=n!=null&&n.context?String(n.context):"standalone";let r;if(i==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):o;r=e.formattingValues[l]||e.formattingValues[o]}else{const o=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;r=e.values[l]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return r[a]}}const eraValues$u={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},quarterValues$u={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},monthValues$u={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},dayValues$u={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriodValues$u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},formattingDayPeriodValues$l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ordinalNumber$u=(e,t)=>{const n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},localize$u={ordinalNumber:ordinalNumber$u,era:buildLocalizeFn({values:eraValues$u,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$u,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$u,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$u,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$u,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$l,defaultFormattingWidth:"wide"})};function buildMatchFn(e){return(t,n={})=>{const i=n.width,r=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(r);if(!a)return null;const o=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?findIndex(l,g=>g.test(o)):findKey(l,g=>g.test(o));let h;h=e.valueCallback?e.valueCallback(u):u,h=n.valueCallback?n.valueCallback(h):h;const m=t.slice(o.length);return{value:h,rest:m}}}function findKey(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function findIndex(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function buildMatchPatternFn(e){return(t,n={})=>{const i=t.match(e.matchPattern);if(!i)return null;const r=i[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const l=t.slice(r.length);return{value:o,rest:l}}}const matchOrdinalNumberPattern$u=/^(\d+)(th|st|nd|rd)?/i,parseOrdinalNumberPattern$u=/\d+/i,matchEraPatterns$u={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},parseEraPatterns$u={any:[/^b/i,/^(a|c)/i]},matchQuarterPatterns$u={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},parseQuarterPatterns$u={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$u={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},parseMonthPatterns$u={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$u={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},parseDayPatterns$u={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},matchDayPeriodPatterns$u={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},parseDayPeriodPatterns$u={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},match$u={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$u,parsePattern:parseOrdinalNumberPattern$u,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$u,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$u,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$u,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$u,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$u,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$u,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$u,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$u,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$u,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$u,defaultParseWidth:"any"})},enUS={code:"en-US",formatDistance:formatDistance$u,formatLong:formatLong$v,formatRelative:formatRelative$u,localize:localize$u,match:match$u,options:{weekStartsOn:0,firstWeekContainsDate:1}};function getDayOfYear(e){const t=toDate(e);return differenceInCalendarDays(t,startOfYear(t))+1}function getISOWeek(e){const t=toDate(e),n=startOfISOWeek(t).getTime()-startOfISOWeekYear(t).getTime();return Math.round(n/millisecondsInWeek)+1}function getWeekYear(e,t){var m,g,_,v;const n=toDate(e),i=n.getFullYear(),r=getDefaultOptions$1(),a=(t==null?void 0:t.firstWeekContainsDate)??((g=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??r.firstWeekContainsDate??((v=(_=r.locale)==null?void 0:_.options)==null?void 0:v.firstWeekContainsDate)??1,o=constructFrom(e,0);o.setFullYear(i+1,0,a),o.setHours(0,0,0,0);const l=startOfWeek(o,t),u=constructFrom(e,0);u.setFullYear(i,0,a),u.setHours(0,0,0,0);const h=startOfWeek(u,t);return n.getTime()>=l.getTime()?i+1:n.getTime()>=h.getTime()?i:i-1}function startOfWeekYear(e,t){var l,u,h,m;const n=getDefaultOptions$1(),i=(t==null?void 0:t.firstWeekContainsDate)??((u=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:u.firstWeekContainsDate)??n.firstWeekContainsDate??((m=(h=n.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??1,r=getWeekYear(e,t),a=constructFrom(e,0);return a.setFullYear(r,0,i),a.setHours(0,0,0,0),startOfWeek(a,t)}function getWeek(e,t){const n=toDate(e),i=startOfWeek(n,t).getTime()-startOfWeekYear(n,t).getTime();return Math.round(i/millisecondsInWeek)+1}function addLeadingZeros(e,t){const n=e<0?"-":"",i=Math.abs(e).toString().padStart(t,"0");return n+i}const lightFormatters={y(e,t){const n=e.getFullYear(),i=n>0?n:1-n;return addLeadingZeros(t==="yy"?i%100:i,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):addLeadingZeros(n+1,2)},d(e,t){return addLeadingZeros(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return addLeadingZeros(e.getHours()%12||12,t.length)},H(e,t){return addLeadingZeros(e.getHours(),t.length)},m(e,t){return addLeadingZeros(e.getMinutes(),t.length)},s(e,t){return addLeadingZeros(e.getSeconds(),t.length)},S(e,t){const n=t.length,i=e.getMilliseconds(),r=Math.floor(i*Math.pow(10,n-3));return addLeadingZeros(r,t.length)}},dayPeriodEnum={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},formatters$1={G:function(e,t,n){const i=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const i=e.getFullYear(),r=i>0?i:1-i;return n.ordinalNumber(r,{unit:"year"})}return lightFormatters.y(e,t)},Y:function(e,t,n,i){const r=getWeekYear(e,i),a=r>0?r:1-r;if(t==="YY"){const o=a%100;return addLeadingZeros(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):addLeadingZeros(a,t.length)},R:function(e,t){const n=getISOWeekYear(e);return addLeadingZeros(n,t.length)},u:function(e,t){const n=e.getFullYear();return addLeadingZeros(n,t.length)},Q:function(e,t,n){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return addLeadingZeros(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return addLeadingZeros(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){const i=e.getMonth();switch(t){case"M":case"MM":return lightFormatters.M(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){const i=e.getMonth();switch(t){case"L":return String(i+1);case"LL":return addLeadingZeros(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){const r=getWeek(e,i);return t==="wo"?n.ordinalNumber(r,{unit:"week"}):addLeadingZeros(r,t.length)},I:function(e,t,n){const i=getISOWeek(e);return t==="Io"?n.ordinalNumber(i,{unit:"week"}):addLeadingZeros(i,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):lightFormatters.d(e,t)},D:function(e,t,n){const i=getDayOfYear(e);return t==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):addLeadingZeros(i,t.length)},E:function(e,t,n){const i=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){const r=e.getDay(),a=(r-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return addLeadingZeros(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});case"eeee":default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){const r=e.getDay(),a=(r-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return addLeadingZeros(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});case"cccc":default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){const i=e.getDay(),r=i===0?7:i;switch(t){case"i":return String(r);case"ii":return addLeadingZeros(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const i=e.getHours();let r;switch(i===12?r=dayPeriodEnum.noon:i===0?r=dayPeriodEnum.midnight:r=i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){const i=e.getHours();let r;switch(i>=17?r=dayPeriodEnum.evening:i>=12?r=dayPeriodEnum.afternoon:i>=4?r=dayPeriodEnum.morning:r=dayPeriodEnum.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let i=e.getHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return lightFormatters.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):lightFormatters.H(e,t)},K:function(e,t,n){const i=e.getHours()%12;return t==="Ko"?n.ordinalNumber(i,{unit:"hour"}):addLeadingZeros(i,t.length)},k:function(e,t,n){let i=e.getHours();return i===0&&(i=24),t==="ko"?n.ordinalNumber(i,{unit:"hour"}):addLeadingZeros(i,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):lightFormatters.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):lightFormatters.s(e,t)},S:function(e,t){return lightFormatters.S(e,t)},X:function(e,t,n,i){const a=(i._originalDate||e).getTimezoneOffset();if(a===0)return"Z";switch(t){case"X":return formatTimezoneWithOptionalMinutes(a);case"XXXX":case"XX":return formatTimezone(a);case"XXXXX":case"XXX":default:return formatTimezone(a,":")}},x:function(e,t,n,i){const a=(i._originalDate||e).getTimezoneOffset();switch(t){case"x":return formatTimezoneWithOptionalMinutes(a);case"xxxx":case"xx":return formatTimezone(a);case"xxxxx":case"xxx":default:return formatTimezone(a,":")}},O:function(e,t,n,i){const a=(i._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(a,":");case"OOOO":default:return"GMT"+formatTimezone(a,":")}},z:function(e,t,n,i){const a=(i._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort(a,":");case"zzzz":default:return"GMT"+formatTimezone(a,":")}},t:function(e,t,n,i){const r=i._originalDate||e,a=Math.floor(r.getTime()/1e3);return addLeadingZeros(a,t.length)},T:function(e,t,n,i){const a=(i._originalDate||e).getTime();return addLeadingZeros(a,t.length)}};function formatTimezoneShort(e,t=""){const n=e>0?"-":"+",i=Math.abs(e),r=Math.floor(i/60),a=i%60;return a===0?n+String(r):n+String(r)+t+addLeadingZeros(a,2)}function formatTimezoneWithOptionalMinutes(e,t){return e%60===0?(e>0?"-":"+")+addLeadingZeros(Math.abs(e)/60,2):formatTimezone(e,t)}function formatTimezone(e,t=""){const n=e>0?"-":"+",i=Math.abs(e),r=addLeadingZeros(Math.floor(i/60),2),a=addLeadingZeros(i%60,2);return n+r+t+a}const dateLongFormatter=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},timeLongFormatter=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},dateTimeLongFormatter=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],i=n[1],r=n[2];if(!r)return dateLongFormatter(e,t);let a;switch(i){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",dateLongFormatter(i,t)).replace("{{time}}",timeLongFormatter(r,t))},longFormatters={p:timeLongFormatter,P:dateTimeLongFormatter},protectedDayOfYearTokens=["D","DD"],protectedWeekYearTokens=["YY","YYYY"];function isProtectedDayOfYearToken(e){return protectedDayOfYearTokens.indexOf(e)!==-1}function isProtectedWeekYearToken(e){return protectedWeekYearTokens.indexOf(e)!==-1}function throwProtectedError(e,t,n){if(e==="YYYY")throw new RangeError(`Use \`yyyy\` instead of \`YYYY\` (in \`${t}\`) for formatting years to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(e==="YY")throw new RangeError(`Use \`yy\` instead of \`YY\` (in \`${t}\`) for formatting years to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(e==="D")throw new RangeError(`Use \`d\` instead of \`D\` (in \`${t}\`) for formatting days of the month to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(e==="DD")throw new RangeError(`Use \`dd\` instead of \`DD\` (in \`${t}\`) for formatting days of the month to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`)}const formattingTokensRegExp$1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp$1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp$1=/^'([^]*?)'?$/,doubleQuoteRegExp$1=/''/g,unescapedLatinCharacterRegExp$1=/[a-zA-Z]/;function format(e,t,n){var m,g,_,v,w,$,x,M;const i=getDefaultOptions$1(),r=(n==null?void 0:n.locale)??i.locale??enUS,a=(n==null?void 0:n.firstWeekContainsDate)??((g=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??i.firstWeekContainsDate??((v=(_=i.locale)==null?void 0:_.options)==null?void 0:v.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??(($=(w=n==null?void 0:n.locale)==null?void 0:w.options)==null?void 0:$.weekStartsOn)??i.weekStartsOn??((M=(x=i.locale)==null?void 0:x.options)==null?void 0:M.weekStartsOn)??0,l=toDate(e);if(!isValid(l))throw new RangeError("Invalid time value");const u={firstWeekContainsDate:a,weekStartsOn:o,locale:r,_originalDate:l};return t.match(longFormattingTokensRegExp$1).map(function(T){const R=T[0];if(R==="p"||R==="P"){const W=longFormatters[R];return W(T,r.formatLong)}return T}).join("").match(formattingTokensRegExp$1).map(function(T){if(T==="''")return"'";const R=T[0];if(R==="'")return cleanEscapedString$1(T);const W=formatters$1[R];if(W)return!(n!=null&&n.useAdditionalWeekYearTokens)&&isProtectedWeekYearToken(T)&&throwProtectedError(T,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&isProtectedDayOfYearToken(T)&&throwProtectedError(T,t,String(e)),W(l,T,r.localize,u);if(R.match(unescapedLatinCharacterRegExp$1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return T}).join("")}function cleanEscapedString$1(e){const t=e.match(escapedStringRegExp$1);return t?t[1].replace(doubleQuoteRegExp$1,"'"):e}function getDefaultOptions(){return Object.assign({},getDefaultOptions$1())}function getISODay(e){let n=toDate(e).getDay();return n===0&&(n=7),n}function transpose(e,t){const n=t instanceof Date?constructFrom(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}const TIMEZONE_UNIT_PRIORITY=10;class Setter{constructor(){Y(this,"subPriority",0)}validate(t,n){return!0}}class ValueSetter extends Setter{constructor(t,n,i,r,a){super(),this.value=t,this.validateValue=n,this.setValue=i,this.priority=r,a&&(this.subPriority=a)}validate(t,n){return this.validateValue(t,this.value,n)}set(t,n,i){return this.setValue(t,n,this.value,i)}}class DateToSystemTimezoneSetter extends Setter{constructor(){super(...arguments);Y(this,"priority",TIMEZONE_UNIT_PRIORITY);Y(this,"subPriority",-1)}set(n,i){return i.timestampIsSet?n:constructFrom(n,transpose(n,Date))}}class Parser{run(t,n,i,r){const a=this.parse(t,n,i,r);return a?{setter:new ValueSetter(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(t,n,i){return!0}}class EraParser extends Parser{constructor(){super(...arguments);Y(this,"priority",140);Y(this,"incompatibleTokens",["R","u","t","T"])}parse(n,i,r){switch(i){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"})||r.era(n,{width:"narrow"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})||r.era(n,{width:"abbreviated"})||r.era(n,{width:"narrow"})}}set(n,i,r){return i.era=r,n.setFullYear(r,0,1),n.setHours(0,0,0,0),n}}const numericPatterns={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},timezonePatterns={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function mapValue(e,t){return e&&{value:t(e.value),rest:e.rest}}function parseNumericPattern(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function parseTimezonePattern(e,t){const n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};const i=n[1]==="+"?1:-1,r=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:i*(r*millisecondsInHour+a*millisecondsInMinute+o*millisecondsInSecond),rest:t.slice(n[0].length)}}function parseAnyDigitsSigned(e){return parseNumericPattern(numericPatterns.anyDigitsSigned,e)}function parseNDigits(e,t){switch(e){case 1:return parseNumericPattern(numericPatterns.singleDigit,t);case 2:return parseNumericPattern(numericPatterns.twoDigits,t);case 3:return parseNumericPattern(numericPatterns.threeDigits,t);case 4:return parseNumericPattern(numericPatterns.fourDigits,t);default:return parseNumericPattern(new RegExp("^\\d{1,"+e+"}"),t)}}function parseNDigitsSigned(e,t){switch(e){case 1:return parseNumericPattern(numericPatterns.singleDigitSigned,t);case 2:return parseNumericPattern(numericPatterns.twoDigitsSigned,t);case 3:return parseNumericPattern(numericPatterns.threeDigitsSigned,t);case 4:return parseNumericPattern(numericPatterns.fourDigitsSigned,t);default:return parseNumericPattern(new RegExp("^-?\\d{1,"+e+"}"),t)}}function dayPeriodEnumToHours(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function normalizeTwoDigitYear(e,t){const n=t>0,i=n?t:1-t;let r;if(i<=50)r=e||100;else{const a=i+50,o=Math.floor(a/100)*100,l=e>=a%100;r=e+o-(l?100:0)}return n?r:1-r}function isLeapYearIndex$1(e){return e%400===0||e%4===0&&e%100!==0}class YearParser extends Parser{constructor(){super(...arguments);Y(this,"priority",130);Y(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,i,r){const a=o=>({year:o,isTwoDigitYear:i==="yy"});switch(i){case"y":return mapValue(parseNDigits(4,n),a);case"yo":return mapValue(r.ordinalNumber(n,{unit:"year"}),a);default:return mapValue(parseNDigits(i.length,n),a)}}validate(n,i){return i.isTwoDigitYear||i.year>0}set(n,i,r){const a=n.getFullYear();if(r.isTwoDigitYear){const l=normalizeTwoDigitYear(r.year,a);return n.setFullYear(l,0,1),n.setHours(0,0,0,0),n}const o=!("era"in i)||i.era===1?r.year:1-r.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}class LocalWeekYearParser extends Parser{constructor(){super(...arguments);Y(this,"priority",130);Y(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,i,r){const a=o=>({year:o,isTwoDigitYear:i==="YY"});switch(i){case"Y":return mapValue(parseNDigits(4,n),a);case"Yo":return mapValue(r.ordinalNumber(n,{unit:"year"}),a);default:return mapValue(parseNDigits(i.length,n),a)}}validate(n,i){return i.isTwoDigitYear||i.year>0}set(n,i,r,a){const o=getWeekYear(n,a);if(r.isTwoDigitYear){const u=normalizeTwoDigitYear(r.year,o);return n.setFullYear(u,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),startOfWeek(n,a)}const l=!("era"in i)||i.era===1?r.year:1-r.year;return n.setFullYear(l,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),startOfWeek(n,a)}}class ISOWeekYearParser extends Parser{constructor(){super(...arguments);Y(this,"priority",130);Y(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,i){return parseNDigitsSigned(i==="R"?4:i.length,n)}set(n,i,r){const a=constructFrom(n,0);return a.setFullYear(r,0,4),a.setHours(0,0,0,0),startOfISOWeek(a)}}class ExtendedYearParser extends Parser{constructor(){super(...arguments);Y(this,"priority",130);Y(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,i){return parseNDigitsSigned(i==="u"?4:i.length,n)}set(n,i,r){return n.setFullYear(r,0,1),n.setHours(0,0,0,0),n}}class QuarterParser extends Parser{constructor(){super(...arguments);Y(this,"priority",120);Y(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,i,r){switch(i){case"Q":case"QQ":return parseNDigits(i.length,n);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"})||r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})||r.quarter(n,{width:"abbreviated",context:"formatting"})||r.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,i){return i>=1&&i<=4}set(n,i,r){return n.setMonth((r-1)*3,1),n.setHours(0,0,0,0),n}}class StandAloneQuarterParser extends Parser{constructor(){super(...arguments);Y(this,"priority",120);Y(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,i,r){switch(i){case"q":case"qq":return parseNDigits(i.length,n);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"})||r.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})||r.quarter(n,{width:"abbreviated",context:"standalone"})||r.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,i){return i>=1&&i<=4}set(n,i,r){return n.setMonth((r-1)*3,1),n.setHours(0,0,0,0),n}}class MonthParser extends Parser{constructor(){super(...arguments);Y(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);Y(this,"priority",110)}parse(n,i,r){const a=o=>o-1;switch(i){case"M":return mapValue(parseNumericPattern(numericPatterns.month,n),a);case"MM":return mapValue(parseNDigits(2,n),a);case"Mo":return mapValue(r.ordinalNumber(n,{unit:"month"}),a);case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"})||r.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})||r.month(n,{width:"abbreviated",context:"formatting"})||r.month(n,{width:"narrow",context:"formatting"})}}validate(n,i){return i>=0&&i<=11}set(n,i,r){return n.setMonth(r,1),n.setHours(0,0,0,0),n}}class StandAloneMonthParser extends Parser{constructor(){super(...arguments);Y(this,"priority",110);Y(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,i,r){const a=o=>o-1;switch(i){case"L":return mapValue(parseNumericPattern(numericPatterns.month,n),a);case"LL":return mapValue(parseNDigits(2,n),a);case"Lo":return mapValue(r.ordinalNumber(n,{unit:"month"}),a);case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"})||r.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})||r.month(n,{width:"abbreviated",context:"standalone"})||r.month(n,{width:"narrow",context:"standalone"})}}validate(n,i){return i>=0&&i<=11}set(n,i,r){return n.setMonth(r,1),n.setHours(0,0,0,0),n}}function setWeek(e,t,n){const i=toDate(e),r=getWeek(i,n)-t;return i.setDate(i.getDate()-r*7),i}class LocalWeekParser extends Parser{constructor(){super(...arguments);Y(this,"priority",100);Y(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,i,r){switch(i){case"w":return parseNumericPattern(numericPatterns.week,n);case"wo":return r.ordinalNumber(n,{unit:"week"});default:return parseNDigits(i.length,n)}}validate(n,i){return i>=1&&i<=53}set(n,i,r,a){return startOfWeek(setWeek(n,r,a),a)}}function setISOWeek(e,t){const n=toDate(e),i=getISOWeek(n)-t;return n.setDate(n.getDate()-i*7),n}class ISOWeekParser extends Parser{constructor(){super(...arguments);Y(this,"priority",100);Y(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,i,r){switch(i){case"I":return parseNumericPattern(numericPatterns.week,n);case"Io":return r.ordinalNumber(n,{unit:"week"});default:return parseNDigits(i.length,n)}}validate(n,i){return i>=1&&i<=53}set(n,i,r){return startOfISOWeek(setISOWeek(n,r))}}const DAYS_IN_MONTH=[31,28,31,30,31,30,31,31,30,31,30,31],DAYS_IN_MONTH_LEAP_YEAR=[31,29,31,30,31,30,31,31,30,31,30,31];class DateParser extends Parser{constructor(){super(...arguments);Y(this,"priority",90);Y(this,"subPriority",1);Y(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,i,r){switch(i){case"d":return parseNumericPattern(numericPatterns.date,n);case"do":return r.ordinalNumber(n,{unit:"date"});default:return parseNDigits(i.length,n)}}validate(n,i){const r=n.getFullYear(),a=isLeapYearIndex$1(r),o=n.getMonth();return a?i>=1&&i<=DAYS_IN_MONTH_LEAP_YEAR[o]:i>=1&&i<=DAYS_IN_MONTH[o]}set(n,i,r){return n.setDate(r),n.setHours(0,0,0,0),n}}class DayOfYearParser extends Parser{constructor(){super(...arguments);Y(this,"priority",90);Y(this,"subpriority",1);Y(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,i,r){switch(i){case"D":case"DD":return parseNumericPattern(numericPatterns.dayOfYear,n);case"Do":return r.ordinalNumber(n,{unit:"date"});default:return parseNDigits(i.length,n)}}validate(n,i){const r=n.getFullYear();return isLeapYearIndex$1(r)?i>=1&&i<=366:i>=1&&i<=365}set(n,i,r){return n.setMonth(0,r),n.setHours(0,0,0,0),n}}function setDay(e,t,n){var g,_,v,w;const i=getDefaultOptions$1(),r=(n==null?void 0:n.weekStartsOn)??((_=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:_.weekStartsOn)??i.weekStartsOn??((w=(v=i.locale)==null?void 0:v.options)==null?void 0:w.weekStartsOn)??0,a=toDate(e),o=a.getDay(),u=(t%7+7)%7,h=7-r,m=t<0||t>6?t-(o+h)%7:(u+h)%7-(o+h)%7;return addDays(a,m)}class DayParser extends Parser{constructor(){super(...arguments);Y(this,"priority",90);Y(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,i,r){switch(i){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"})||r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})||r.day(n,{width:"abbreviated",context:"formatting"})||r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"})}}validate(n,i){return i>=0&&i<=6}set(n,i,r,a){return n=setDay(n,r,a),n.setHours(0,0,0,0),n}}class LocalDayParser extends Parser{constructor(){super(...arguments);Y(this,"priority",90);Y(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,i,r,a){const o=l=>{const u=Math.floor((l-1)/7)*7;return(l+a.weekStartsOn+6)%7+u};switch(i){case"e":case"ee":return mapValue(parseNDigits(i.length,n),o);case"eo":return mapValue(r.ordinalNumber(n,{unit:"day"}),o);case"eee":return r.day(n,{width:"abbreviated",context:"formatting"})||r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"});case"eeeee":return r.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(n,{width:"wide",context:"formatting"})||r.day(n,{width:"abbreviated",context:"formatting"})||r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"})}}validate(n,i){return i>=0&&i<=6}set(n,i,r,a){return n=setDay(n,r,a),n.setHours(0,0,0,0),n}}class StandAloneLocalDayParser extends Parser{constructor(){super(...arguments);Y(this,"priority",90);Y(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,i,r,a){const o=l=>{const u=Math.floor((l-1)/7)*7;return(l+a.weekStartsOn+6)%7+u};switch(i){case"c":case"cc":return mapValue(parseNDigits(i.length,n),o);case"co":return mapValue(r.ordinalNumber(n,{unit:"day"}),o);case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"})||r.day(n,{width:"short",context:"standalone"})||r.day(n,{width:"narrow",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"})||r.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(n,{width:"wide",context:"standalone"})||r.day(n,{width:"abbreviated",context:"standalone"})||r.day(n,{width:"short",context:"standalone"})||r.day(n,{width:"narrow",context:"standalone"})}}validate(n,i){return i>=0&&i<=6}set(n,i,r,a){return n=setDay(n,r,a),n.setHours(0,0,0,0),n}}function setISODay(e,t){const n=toDate(e),i=getISODay(n),r=t-i;return addDays(n,r)}class ISODayParser extends Parser{constructor(){super(...arguments);Y(this,"priority",90);Y(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,i,r){const a=o=>o===0?7:o;switch(i){case"i":case"ii":return parseNDigits(i.length,n);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return mapValue(r.day(n,{width:"abbreviated",context:"formatting"})||r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"}),a);case"iiiii":return mapValue(r.day(n,{width:"narrow",context:"formatting"}),a);case"iiiiii":return mapValue(r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"}),a);case"iiii":default:return mapValue(r.day(n,{width:"wide",context:"formatting"})||r.day(n,{width:"abbreviated",context:"formatting"})||r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"}),a)}}validate(n,i){return i>=1&&i<=7}set(n,i,r){return n=setISODay(n,r),n.setHours(0,0,0,0),n}}class AMPMParser extends Parser{constructor(){super(...arguments);Y(this,"priority",80);Y(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,i,r){switch(i){case"a":case"aa":case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"})||r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})||r.dayPeriod(n,{width:"abbreviated",context:"formatting"})||r.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,i,r){return n.setHours(dayPeriodEnumToHours(r),0,0,0),n}}class AMPMMidnightParser extends Parser{constructor(){super(...arguments);Y(this,"priority",80);Y(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,i,r){switch(i){case"b":case"bb":case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"})||r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})||r.dayPeriod(n,{width:"abbreviated",context:"formatting"})||r.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,i,r){return n.setHours(dayPeriodEnumToHours(r),0,0,0),n}}class DayPeriodParser extends Parser{constructor(){super(...arguments);Y(this,"priority",80);Y(this,"incompatibleTokens",["a","b","t","T"])}parse(n,i,r){switch(i){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"})||r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})||r.dayPeriod(n,{width:"abbreviated",context:"formatting"})||r.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,i,r){return n.setHours(dayPeriodEnumToHours(r),0,0,0),n}}class Hour1to12Parser extends Parser{constructor(){super(...arguments);Y(this,"priority",70);Y(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,i,r){switch(i){case"h":return parseNumericPattern(numericPatterns.hour12h,n);case"ho":return r.ordinalNumber(n,{unit:"hour"});default:return parseNDigits(i.length,n)}}validate(n,i){return i>=1&&i<=12}set(n,i,r){const a=n.getHours()>=12;return a&&r<12?n.setHours(r+12,0,0,0):!a&&r===12?n.setHours(0,0,0,0):n.setHours(r,0,0,0),n}}class Hour0to23Parser extends Parser{constructor(){super(...arguments);Y(this,"priority",70);Y(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,i,r){switch(i){case"H":return parseNumericPattern(numericPatterns.hour23h,n);case"Ho":return r.ordinalNumber(n,{unit:"hour"});default:return parseNDigits(i.length,n)}}validate(n,i){return i>=0&&i<=23}set(n,i,r){return n.setHours(r,0,0,0),n}}class Hour0To11Parser extends Parser{constructor(){super(...arguments);Y(this,"priority",70);Y(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,i,r){switch(i){case"K":return parseNumericPattern(numericPatterns.hour11h,n);case"Ko":return r.ordinalNumber(n,{unit:"hour"});default:return parseNDigits(i.length,n)}}validate(n,i){return i>=0&&i<=11}set(n,i,r){return n.getHours()>=12&&r<12?n.setHours(r+12,0,0,0):n.setHours(r,0,0,0),n}}class Hour1To24Parser extends Parser{constructor(){super(...arguments);Y(this,"priority",70);Y(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,i,r){switch(i){case"k":return parseNumericPattern(numericPatterns.hour24h,n);case"ko":return r.ordinalNumber(n,{unit:"hour"});default:return parseNDigits(i.length,n)}}validate(n,i){return i>=1&&i<=24}set(n,i,r){const a=r<=24?r%24:r;return n.setHours(a,0,0,0),n}}class MinuteParser extends Parser{constructor(){super(...arguments);Y(this,"priority",60);Y(this,"incompatibleTokens",["t","T"])}parse(n,i,r){switch(i){case"m":return parseNumericPattern(numericPatterns.minute,n);case"mo":return r.ordinalNumber(n,{unit:"minute"});default:return parseNDigits(i.length,n)}}validate(n,i){return i>=0&&i<=59}set(n,i,r){return n.setMinutes(r,0,0),n}}class SecondParser extends Parser{constructor(){super(...arguments);Y(this,"priority",50);Y(this,"incompatibleTokens",["t","T"])}parse(n,i,r){switch(i){case"s":return parseNumericPattern(numericPatterns.second,n);case"so":return r.ordinalNumber(n,{unit:"second"});default:return parseNDigits(i.length,n)}}validate(n,i){return i>=0&&i<=59}set(n,i,r){return n.setSeconds(r,0),n}}class FractionOfSecondParser extends Parser{constructor(){super(...arguments);Y(this,"priority",30);Y(this,"incompatibleTokens",["t","T"])}parse(n,i){const r=a=>Math.floor(a*Math.pow(10,-i.length+3));return mapValue(parseNDigits(i.length,n),r)}set(n,i,r){return n.setMilliseconds(r),n}}class ISOTimezoneWithZParser extends Parser{constructor(){super(...arguments);Y(this,"priority",10);Y(this,"incompatibleTokens",["t","T","x"])}parse(n,i){switch(i){case"X":return parseTimezonePattern(timezonePatterns.basicOptionalMinutes,n);case"XX":return parseTimezonePattern(timezonePatterns.basic,n);case"XXXX":return parseTimezonePattern(timezonePatterns.basicOptionalSeconds,n);case"XXXXX":return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds,n);case"XXX":default:return parseTimezonePattern(timezonePatterns.extended,n)}}set(n,i,r){return i.timestampIsSet?n:constructFrom(n,n.getTime()-getTimezoneOffsetInMilliseconds(n)-r)}}class ISOTimezoneParser extends Parser{constructor(){super(...arguments);Y(this,"priority",10);Y(this,"incompatibleTokens",["t","T","X"])}parse(n,i){switch(i){case"x":return parseTimezonePattern(timezonePatterns.basicOptionalMinutes,n);case"xx":return parseTimezonePattern(timezonePatterns.basic,n);case"xxxx":return parseTimezonePattern(timezonePatterns.basicOptionalSeconds,n);case"xxxxx":return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds,n);case"xxx":default:return parseTimezonePattern(timezonePatterns.extended,n)}}set(n,i,r){return i.timestampIsSet?n:constructFrom(n,n.getTime()-getTimezoneOffsetInMilliseconds(n)-r)}}class TimestampSecondsParser extends Parser{constructor(){super(...arguments);Y(this,"priority",40);Y(this,"incompatibleTokens","*")}parse(n){return parseAnyDigitsSigned(n)}set(n,i,r){return[constructFrom(n,r*1e3),{timestampIsSet:!0}]}}class TimestampMillisecondsParser extends Parser{constructor(){super(...arguments);Y(this,"priority",20);Y(this,"incompatibleTokens","*")}parse(n){return parseAnyDigitsSigned(n)}set(n,i,r){return[constructFrom(n,r),{timestampIsSet:!0}]}}const parsers={G:new EraParser,y:new YearParser,Y:new LocalWeekYearParser,R:new ISOWeekYearParser,u:new ExtendedYearParser,Q:new QuarterParser,q:new StandAloneQuarterParser,M:new MonthParser,L:new StandAloneMonthParser,w:new LocalWeekParser,I:new ISOWeekParser,d:new DateParser,D:new DayOfYearParser,E:new DayParser,e:new LocalDayParser,c:new StandAloneLocalDayParser,i:new ISODayParser,a:new AMPMParser,b:new AMPMMidnightParser,B:new DayPeriodParser,h:new Hour1to12Parser,H:new Hour0to23Parser,K:new Hour0To11Parser,k:new Hour1To24Parser,m:new MinuteParser,s:new SecondParser,S:new FractionOfSecondParser,X:new ISOTimezoneWithZParser,x:new ISOTimezoneParser,t:new TimestampSecondsParser,T:new TimestampMillisecondsParser},formattingTokensRegExp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp=/^'([^]*?)'?$/,doubleQuoteRegExp=/''/g,notWhitespaceRegExp=/\S/,unescapedLatinCharacterRegExp=/[a-zA-Z]/;function parse$1(e,t,n,i){var $,x,M,T,R,W,V,K;const r=getDefaultOptions(),a=(i==null?void 0:i.locale)??r.locale??enUS,o=(i==null?void 0:i.firstWeekContainsDate)??((x=($=i==null?void 0:i.locale)==null?void 0:$.options)==null?void 0:x.firstWeekContainsDate)??r.firstWeekContainsDate??((T=(M=r.locale)==null?void 0:M.options)==null?void 0:T.firstWeekContainsDate)??1,l=(i==null?void 0:i.weekStartsOn)??((W=(R=i==null?void 0:i.locale)==null?void 0:R.options)==null?void 0:W.weekStartsOn)??r.weekStartsOn??((K=(V=r.locale)==null?void 0:V.options)==null?void 0:K.weekStartsOn)??0;if(t==="")return e===""?toDate(n):constructFrom(n,NaN);const u={firstWeekContainsDate:o,weekStartsOn:l,locale:a},h=[new DateToSystemTimezoneSetter],m=t.match(longFormattingTokensRegExp).map(U=>{const y=U[0];if(y in longFormatters){const E=longFormatters[y];return E(U,a.formatLong)}return U}).join("").match(formattingTokensRegExp),g=[];for(let U of m){!(i!=null&&i.useAdditionalWeekYearTokens)&&isProtectedWeekYearToken(U)&&throwProtectedError(U,t,e),!(i!=null&&i.useAdditionalDayOfYearTokens)&&isProtectedDayOfYearToken(U)&&throwProtectedError(U,t,e);const y=U[0],E=parsers[y];if(E){const{incompatibleTokens:S}=E;if(Array.isArray(S)){const A=g.find(F=>S.includes(F.token)||F.token===y);if(A)throw new RangeError(`The format string mustn't contain \`${A.fullToken}\` and \`${U}\` at the same time`)}else if(E.incompatibleTokens==="*"&&g.length>0)throw new RangeError(`The format string mustn't contain \`${U}\` and any other token at the same time`);g.push({token:y,fullToken:U});const O=E.run(e,U,a.match,u);if(!O)return constructFrom(n,NaN);h.push(O.setter),e=O.rest}else{if(y.match(unescapedLatinCharacterRegExp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");if(U==="''"?U="'":y==="'"&&(U=cleanEscapedString(U)),e.indexOf(U)===0)e=e.slice(U.length);else return constructFrom(n,NaN)}}if(e.length>0&&notWhitespaceRegExp.test(e))return constructFrom(n,NaN);const _=h.map(U=>U.priority).sort((U,y)=>y-U).filter((U,y,E)=>E.indexOf(U)===y).map(U=>h.filter(y=>y.priority===U).sort((y,E)=>E.subPriority-y.subPriority)).map(U=>U[0]);let v=toDate(n);if(isNaN(v.getTime()))return constructFrom(n,NaN);const w={};for(const U of _){if(!U.validate(v,u))return constructFrom(n,NaN);const y=U.set(v,w,u);Array.isArray(y)?(v=y[0],Object.assign(w,y[1])):v=y}return constructFrom(n,v)}function cleanEscapedString(e){return e.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp,"'")}function startOfHour(e){const t=toDate(e);return t.setMinutes(0,0,0),t}function isSameWeek(e,t,n){const i=startOfWeek(e,n),r=startOfWeek(t,n);return+i==+r}function startOfSecond(e){const t=toDate(e);return t.setMilliseconds(0),t}function subDays(e,t){return addDays(e,-t)}function parseISO(e,t){const n=(t==null?void 0:t.additionalDigits)??2,i=splitDateString(e);let r;if(i.date){const u=parseYear(i.date,n);r=parseDate$1(u.restDateString,u.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);const a=r.getTime();let o=0,l;if(i.time&&(o=parseTime(i.time),isNaN(o)))return new Date(NaN);if(i.timezone){if(l=parseTimezone(i.timezone),isNaN(l))return new Date(NaN)}else{const u=new Date(a+o),h=new Date(0);return h.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),h.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),h}return new Date(a+o+l)}const patterns={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},dateRegex=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,timeRegex=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,timezoneRegex=/^([+-])(\d{2})(?::?(\d{2}))?$/;function splitDateString(e){const t={},n=e.split(patterns.dateTimeDelimiter);let i;if(n.length>2)return t;if(/:/.test(n[0])?i=n[0]:(t.date=n[0],i=n[1],patterns.timeZoneDelimiter.test(t.date)&&(t.date=e.split(patterns.timeZoneDelimiter)[0],i=e.substr(t.date.length,e.length))),i){const r=patterns.timezone.exec(i);r?(t.time=i.replace(r[1],""),t.timezone=r[1]):t.time=i}return t}function parseYear(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=e.match(n);if(!i)return{year:NaN,restDateString:""};const r=i[1]?parseInt(i[1]):null,a=i[2]?parseInt(i[2]):null;return{year:a===null?r:a*100,restDateString:e.slice((i[1]||i[2]).length)}}function parseDate$1(e,t){if(t===null)return new Date(NaN);const n=e.match(dateRegex);if(!n)return new Date(NaN);const i=!!n[4],r=parseDateUnit(n[1]),a=parseDateUnit(n[2])-1,o=parseDateUnit(n[3]),l=parseDateUnit(n[4]),u=parseDateUnit(n[5])-1;if(i)return validateWeekDate(t,l,u)?dayOfISOWeekYear(t,l,u):new Date(NaN);{const h=new Date(0);return!validateDate(t,a,o)||!validateDayOfYearDate(t,r)?new Date(NaN):(h.setUTCFullYear(t,a,Math.max(r,o)),h)}}function parseDateUnit(e){return e?parseInt(e):1}function parseTime(e){const t=e.match(timeRegex);if(!t)return NaN;const n=parseTimeUnit(t[1]),i=parseTimeUnit(t[2]),r=parseTimeUnit(t[3]);return validateTime(n,i,r)?n*millisecondsInHour+i*millisecondsInMinute+r*1e3:NaN}function parseTimeUnit(e){return e&&parseFloat(e.replace(",","."))||0}function parseTimezone(e){if(e==="Z")return 0;const t=e.match(timezoneRegex);if(!t)return 0;const n=t[1]==="+"?-1:1,i=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;return validateTimezone(i,r)?n*(i*millisecondsInHour+r*millisecondsInMinute):NaN}function dayOfISOWeekYear(e,t,n){const i=new Date(0);i.setUTCFullYear(e,0,4);const r=i.getUTCDay()||7,a=(t-1)*7+n+1-r;return i.setUTCDate(i.getUTCDate()+a),i}const daysInMonths=[31,null,31,30,31,30,31,31,30,31,30,31];function isLeapYearIndex(e){return e%400===0||e%4===0&&e%100!==0}function validateDate(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(daysInMonths[t]||(isLeapYearIndex(e)?29:28))}function validateDayOfYearDate(e,t){return t>=1&&t<=(isLeapYearIndex(e)?366:365)}function validateWeekDate(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function validateTime(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function validateTimezone(e,t){return t>=0&&t<=59}function subMonths(e,t){return addMonths(e,-t)}const formatDistanceLocale$s={lessThanXSeconds:{one:"по-малко от секунда",other:"по-малко от {{count}} секунди"},xSeconds:{one:"1 секунда",other:"{{count}} секунди"},halfAMinute:"половин минута",lessThanXMinutes:{one:"по-малко от минута",other:"по-малко от {{count}} минути"},xMinutes:{one:"1 минута",other:"{{count}} минути"},aboutXHours:{one:"около час",other:"около {{count}} часа"},xHours:{one:"1 час",other:"{{count}} часа"},xDays:{one:"1 ден",other:"{{count}} дни"},aboutXWeeks:{one:"около седмица",other:"около {{count}} седмици"},xWeeks:{one:"1 седмица",other:"{{count}} седмици"},aboutXMonths:{one:"около месец",other:"около {{count}} месеца"},xMonths:{one:"1 месец",other:"{{count}} месеца"},aboutXYears:{one:"около година",other:"около {{count}} години"},xYears:{one:"1 година",other:"{{count}} години"},overXYears:{one:"над година",other:"над {{count}} години"},almostXYears:{one:"почти година",other:"почти {{count}} години"}},formatDistance$t=(e,t,n)=>{let i;const r=formatDistanceLocale$s[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"след "+i:"преди "+i:i},dateFormats$u={full:"EEEE, dd MMMM yyyy",long:"dd MMMM yyyy",medium:"dd MMM yyyy",short:"dd/MM/yyyy"},timeFormats$u={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"H:mm"},dateTimeFormats$u={any:"{{date}} {{time}}"},formatLong$u={date:buildFormatLongFn({formats:dateFormats$u,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$u,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$u,defaultWidth:"any"})},weekdays$1=["неделя","понеделник","вторник","сряда","четвъртък","петък","събота"];function lastWeek$4(e){const t=weekdays$1[e];switch(e){case 0:case 3:case 6:return"'миналата "+t+" в' p";case 1:case 2:case 4:case 5:return"'миналия "+t+" в' p"}}function thisWeek$4(e){const t=weekdays$1[e];return e===2?"'във "+t+" в' p":"'в "+t+" в' p"}function nextWeek$4(e){const t=weekdays$1[e];switch(e){case 0:case 3:case 6:return"'следващата "+t+" в' p";case 1:case 2:case 4:case 5:return"'следващия "+t+" в' p"}}const lastWeekFormatToken=(e,t,n)=>{const i=toDate(e),r=i.getDay();return isSameWeek(i,t,n)?thisWeek$4(r):lastWeek$4(r)},nextWeekFormatToken=(e,t,n)=>{const i=toDate(e),r=i.getDay();return isSameWeek(i,t,n)?thisWeek$4(r):nextWeek$4(r)},formatRelativeLocale$t={lastWeek:lastWeekFormatToken,yesterday:"'вчера в' p",today:"'днес в' p",tomorrow:"'утре в' p",nextWeek:nextWeekFormatToken,other:"P"},formatRelative$t=(e,t,n,i)=>{const r=formatRelativeLocale$t[e];return typeof r=="function"?r(t,n,i):r},eraValues$t={narrow:["пр.н.е.","н.е."],abbreviated:["преди н. е.","н. е."],wide:["преди новата ера","новата ера"]},quarterValues$t={narrow:["1","2","3","4"],abbreviated:["1-во тримес.","2-ро тримес.","3-то тримес.","4-то тримес."],wide:["1-во тримесечие","2-ро тримесечие","3-то тримесечие","4-то тримесечие"]},monthValues$t={abbreviated:["яну","фев","мар","апр","май","юни","юли","авг","сеп","окт","ное","дек"],wide:["януари","февруари","март","април","май","юни","юли","август","септември","октомври","ноември","декември"]},dayValues$t={narrow:["Н","П","В","С","Ч","П","С"],short:["нд","пн","вт","ср","чт","пт","сб"],abbreviated:["нед","пон","вто","сря","чет","пет","съб"],wide:["неделя","понеделник","вторник","сряда","четвъртък","петък","събота"]},dayPeriodValues$t={wide:{am:"преди обяд",pm:"след обяд",midnight:"в полунощ",noon:"на обяд",morning:"сутринта",afternoon:"следобед",evening:"вечерта",night:"през нощта"}};function isFeminine(e){return e==="year"||e==="week"||e==="minute"||e==="second"}function isNeuter(e){return e==="quarter"}function numberWithSuffix(e,t,n,i,r){const a=isNeuter(t)?r:isFeminine(t)?i:n;return e+"-"+a}const ordinalNumber$t=(e,t)=>{const n=Number(e),i=t==null?void 0:t.unit;if(n===0)return numberWithSuffix(0,i,"ев","ева","ево");if(n%1e3===0)return numberWithSuffix(n,i,"ен","на","но");if(n%100===0)return numberWithSuffix(n,i,"тен","тна","тно");const r=n%100;if(r>20||r<10)switch(r%10){case 1:return numberWithSuffix(n,i,"ви","ва","во");case 2:return numberWithSuffix(n,i,"ри","ра","ро");case 7:case 8:return numberWithSuffix(n,i,"ми","ма","мо")}return numberWithSuffix(n,i,"ти","та","то")},localize$t={ordinalNumber:ordinalNumber$t,era:buildLocalizeFn({values:eraValues$t,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$t,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$t,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$t,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$t,defaultWidth:"wide"})},matchOrdinalNumberPattern$t=/^(\d+)(-?[врмт][аи]|-?т?(ен|на)|-?(ев|ева))?/i,parseOrdinalNumberPattern$t=/\d+/i,matchEraPatterns$t={narrow:/^((пр)?н\.?\s?е\.?)/i,abbreviated:/^((пр)?н\.?\s?е\.?)/i,wide:/^(преди новата ера|новата ера|нова ера)/i},parseEraPatterns$t={any:[/^п/i,/^н/i]},matchQuarterPatterns$t={narrow:/^[1234]/i,abbreviated:/^[1234](-?[врт]?o?)? тримес.?/i,wide:/^[1234](-?[врт]?о?)? тримесечие/i},parseQuarterPatterns$t={any:[/1/i,/2/i,/3/i,/4/i]},matchDayPatterns$t={narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)/i,abbreviated:/^(нед|пон|вто|сря|чет|пет|съб)/i,wide:/^(неделя|понеделник|вторник|сряда|четвъртък|петък|събота)/i},parseDayPatterns$t={narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н[ед]/i,/^п[он]/i,/^вт/i,/^ср/i,/^ч[ет]/i,/^п[ет]/i,/^с[ъб]/i]},matchMonthPatterns$t={abbreviated:/^(яну|фев|мар|апр|май|юни|юли|авг|сеп|окт|ное|дек)/i,wide:/^(януари|февруари|март|април|май|юни|юли|август|септември|октомври|ноември|декември)/i},parseMonthPatterns$t={any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^май/i,/^юн/i,/^юл/i,/^ав/i,/^се/i,/^окт/i,/^но/i,/^де/i]},matchDayPeriodPatterns$t={any:/^(преди о|след о|в по|на о|през|веч|сут|следо)/i},parseDayPeriodPatterns$t={any:{am:/^преди о/i,pm:/^след о/i,midnight:/^в пол/i,noon:/^на об/i,morning:/^сут/i,afternoon:/^следо/i,evening:/^веч/i,night:/^през н/i}},match$t={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$t,parsePattern:parseOrdinalNumberPattern$t,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$t,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$t,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$t,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$t,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$t,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$t,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$t,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$t,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$t,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$t,defaultParseWidth:"any"})},bg={code:"bg",formatDistance:formatDistance$t,formatLong:formatLong$u,formatRelative:formatRelative$t,localize:localize$t,match:match$t,options:{weekStartsOn:1,firstWeekContainsDate:1}},formatDistanceLocale$r={lessThanXSeconds:{one:"menys d'un segon",eleven:"menys d'onze segons",other:"menys de {{count}} segons"},xSeconds:{one:"1 segon",other:"{{count}} segons"},halfAMinute:"mig minut",lessThanXMinutes:{one:"menys d'un minut",eleven:"menys d'onze minuts",other:"menys de {{count}} minuts"},xMinutes:{one:"1 minut",other:"{{count}} minuts"},aboutXHours:{one:"aproximadament una hora",other:"aproximadament {{count}} hores"},xHours:{one:"1 hora",other:"{{count}} hores"},xDays:{one:"1 dia",other:"{{count}} dies"},aboutXWeeks:{one:"aproximadament una setmana",other:"aproximadament {{count}} setmanes"},xWeeks:{one:"1 setmana",other:"{{count}} setmanes"},aboutXMonths:{one:"aproximadament un mes",other:"aproximadament {{count}} mesos"},xMonths:{one:"1 mes",other:"{{count}} mesos"},aboutXYears:{one:"aproximadament un any",other:"aproximadament {{count}} anys"},xYears:{one:"1 any",other:"{{count}} anys"},overXYears:{one:"més d'un any",eleven:"més d'onze anys",other:"més de {{count}} anys"},almostXYears:{one:"gairebé un any",other:"gairebé {{count}} anys"}},formatDistance$s=(e,t,n)=>{let i;const r=formatDistanceLocale$r[e];return typeof r=="string"?i=r:t===1?i=r.one:t===11&&r.eleven?i=r.eleven:i=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+i:"fa "+i:i},dateFormats$t={full:"EEEE, d 'de' MMMM y",long:"d 'de' MMMM y",medium:"d MMM y",short:"dd/MM/y"},timeFormats$t={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$t={full:"{{date}} 'a les' {{time}}",long:"{{date}} 'a les' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$t={date:buildFormatLongFn({formats:dateFormats$t,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$t,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$t,defaultWidth:"full"})},formatRelativeLocale$s={lastWeek:"'el' eeee 'passat a la' LT",yesterday:"'ahir a la' p",today:"'avui a la' p",tomorrow:"'demà a la' p",nextWeek:"eeee 'a la' p",other:"P"},formatRelativeLocalePlural$1={lastWeek:"'el' eeee 'passat a les' p",yesterday:"'ahir a les' p",today:"'avui a les' p",tomorrow:"'demà a les' p",nextWeek:"eeee 'a les' p",other:"P"},formatRelative$s=(e,t,n,i)=>t.getHours()!==1?formatRelativeLocalePlural$1[e]:formatRelativeLocale$s[e],eraValues$s={narrow:["aC","dC"],abbreviated:["a. de C.","d. de C."],wide:["abans de Crist","després de Crist"]},quarterValues$s={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1r trimestre","2n trimestre","3r trimestre","4t trimestre"]},monthValues$s={narrow:["GN","FB","MÇ","AB","MG","JN","JL","AG","ST","OC","NV","DS"],abbreviated:["gen.","febr.","març","abr.","maig","juny","jul.","ag.","set.","oct.","nov.","des."],wide:["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre"]},dayValues$s={narrow:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],short:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],abbreviated:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],wide:["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"]},dayPeriodValues$s={narrow:{am:"am",pm:"pm",midnight:"mitjanit",noon:"migdia",morning:"matí",afternoon:"tarda",evening:"vespre",night:"nit"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"mitjanit",noon:"migdia",morning:"matí",afternoon:"tarda",evening:"vespre",night:"nit"},wide:{am:"ante meridiem",pm:"post meridiem",midnight:"mitjanit",noon:"migdia",morning:"matí",afternoon:"tarda",evening:"vespre",night:"nit"}},formattingDayPeriodValues$k={narrow:{am:"am",pm:"pm",midnight:"de la mitjanit",noon:"del migdia",morning:"del matí",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"},abbreviated:{am:"AM",pm:"PM",midnight:"de la mitjanit",noon:"del migdia",morning:"del matí",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"},wide:{am:"ante meridiem",pm:"post meridiem",midnight:"de la mitjanit",noon:"del migdia",morning:"del matí",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"}},ordinalNumber$s=(e,t)=>{const n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"r";case 2:return n+"n";case 3:return n+"r";case 4:return n+"t"}return n+"è"},localize$s={ordinalNumber:ordinalNumber$s,era:buildLocalizeFn({values:eraValues$s,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$s,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$s,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$s,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$s,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$k,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$s=/^(\d+)(è|r|n|r|t)?/i,parseOrdinalNumberPattern$s=/\d+/i,matchEraPatterns$s={narrow:/^(aC|dC)/i,abbreviated:/^(a. de C.|d. de C.)/i,wide:/^(abans de Crist|despr[eé]s de Crist)/i},parseEraPatterns$s={narrow:[/^aC/i,/^dC/i],abbreviated:[/^(a. de C.)/i,/^(d. de C.)/i],wide:[/^(abans de Crist)/i,/^(despr[eé]s de Crist)/i]},matchQuarterPatterns$s={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](è|r|n|r|t)? trimestre/i},parseQuarterPatterns$s={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$s={narrow:/^(GN|FB|MÇ|AB|MG|JN|JL|AG|ST|OC|NV|DS)/i,abbreviated:/^(gen.|febr.|març|abr.|maig|juny|jul.|ag.|set.|oct.|nov.|des.)/i,wide:/^(gener|febrer|març|abril|maig|juny|juliol|agost|setembre|octubre|novembre|desembre)/i},parseMonthPatterns$s={narrow:[/^GN/i,/^FB/i,/^MÇ/i,/^AB/i,/^MG/i,/^JN/i,/^JL/i,/^AG/i,/^ST/i,/^OC/i,/^NV/i,/^DS/i],abbreviated:[/^gen./i,/^febr./i,/^març/i,/^abr./i,/^maig/i,/^juny/i,/^jul./i,/^ag./i,/^set./i,/^oct./i,/^nov./i,/^des./i],wide:[/^gener/i,/^febrer/i,/^març/i,/^abril/i,/^maig/i,/^juny/i,/^juliol/i,/^agost/i,/^setembre/i,/^octubre/i,/^novembre/i,/^desembre/i]},matchDayPatterns$s={narrow:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,short:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,abbreviated:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,wide:/^(diumenge|dilluns|dimarts|dimecres|dijous|divendres|dissabte)/i},parseDayPatterns$s={narrow:[/^dg./i,/^dl./i,/^dt./i,/^dm./i,/^dj./i,/^dv./i,/^ds./i],abbreviated:[/^dg./i,/^dl./i,/^dt./i,/^dm./i,/^dj./i,/^dv./i,/^ds./i],wide:[/^diumenge/i,/^dilluns/i,/^dimarts/i,/^dimecres/i,/^dijous/i,/^divendres/i,/^disssabte/i]},matchDayPeriodPatterns$s={narrow:/^(a|p|mn|md|(del|de la) (matí|tarda|vespre|nit))/i,abbreviated:/^([ap]\.?\s?m\.?|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i,wide:/^(ante meridiem|post meridiem|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i},parseDayPeriodPatterns$s={any:{am:/^a/i,pm:/^p/i,midnight:/^mitjanit/i,noon:/^migdia/i,morning:/matí/i,afternoon:/tarda/i,evening:/vespre/i,night:/nit/i}},match$s={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$s,parsePattern:parseOrdinalNumberPattern$s,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$s,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$s,defaultParseWidth:"wide"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$s,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$s,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$s,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$s,defaultParseWidth:"wide"}),day:buildMatchFn({matchPatterns:matchDayPatterns$s,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$s,defaultParseWidth:"wide"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$s,defaultMatchWidth:"wide",parsePatterns:parseDayPeriodPatterns$s,defaultParseWidth:"any"})},ca={code:"ca",formatDistance:formatDistance$s,formatLong:formatLong$t,formatRelative:formatRelative$s,localize:localize$s,match:match$s,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale$q={lessThanXSeconds:{one:{regular:"méně než sekunda",past:"před méně než sekundou",future:"za méně než sekundu"},few:{regular:"méně než {{count}} sekundy",past:"před méně než {{count}} sekundami",future:"za méně než {{count}} sekundy"},many:{regular:"méně než {{count}} sekund",past:"před méně než {{count}} sekundami",future:"za méně než {{count}} sekund"}},xSeconds:{one:{regular:"sekunda",past:"před sekundou",future:"za sekundu"},few:{regular:"{{count}} sekundy",past:"před {{count}} sekundami",future:"za {{count}} sekundy"},many:{regular:"{{count}} sekund",past:"před {{count}} sekundami",future:"za {{count}} sekund"}},halfAMinute:{type:"other",other:{regular:"půl minuty",past:"před půl minutou",future:"za půl minuty"}},lessThanXMinutes:{one:{regular:"méně než minuta",past:"před méně než minutou",future:"za méně než minutu"},few:{regular:"méně než {{count}} minuty",past:"před méně než {{count}} minutami",future:"za méně než {{count}} minuty"},many:{regular:"méně než {{count}} minut",past:"před méně než {{count}} minutami",future:"za méně než {{count}} minut"}},xMinutes:{one:{regular:"minuta",past:"před minutou",future:"za minutu"},few:{regular:"{{count}} minuty",past:"před {{count}} minutami",future:"za {{count}} minuty"},many:{regular:"{{count}} minut",past:"před {{count}} minutami",future:"za {{count}} minut"}},aboutXHours:{one:{regular:"přibližně hodina",past:"přibližně před hodinou",future:"přibližně za hodinu"},few:{regular:"přibližně {{count}} hodiny",past:"přibližně před {{count}} hodinami",future:"přibližně za {{count}} hodiny"},many:{regular:"přibližně {{count}} hodin",past:"přibližně před {{count}} hodinami",future:"přibližně za {{count}} hodin"}},xHours:{one:{regular:"hodina",past:"před hodinou",future:"za hodinu"},few:{regular:"{{count}} hodiny",past:"před {{count}} hodinami",future:"za {{count}} hodiny"},many:{regular:"{{count}} hodin",past:"před {{count}} hodinami",future:"za {{count}} hodin"}},xDays:{one:{regular:"den",past:"před dnem",future:"za den"},few:{regular:"{{count}} dny",past:"před {{count}} dny",future:"za {{count}} dny"},many:{regular:"{{count}} dní",past:"před {{count}} dny",future:"za {{count}} dní"}},aboutXWeeks:{one:{regular:"přibližně týden",past:"přibližně před týdnem",future:"přibližně za týden"},few:{regular:"přibližně {{count}} týdny",past:"přibližně před {{count}} týdny",future:"přibližně za {{count}} týdny"},many:{regular:"přibližně {{count}} týdnů",past:"přibližně před {{count}} týdny",future:"přibližně za {{count}} týdnů"}},xWeeks:{one:{regular:"týden",past:"před týdnem",future:"za týden"},few:{regular:"{{count}} týdny",past:"před {{count}} týdny",future:"za {{count}} týdny"},many:{regular:"{{count}} týdnů",past:"před {{count}} týdny",future:"za {{count}} týdnů"}},aboutXMonths:{one:{regular:"přibližně měsíc",past:"přibližně před měsícem",future:"přibližně za měsíc"},few:{regular:"přibližně {{count}} měsíce",past:"přibližně před {{count}} měsíci",future:"přibližně za {{count}} měsíce"},many:{regular:"přibližně {{count}} měsíců",past:"přibližně před {{count}} měsíci",future:"přibližně za {{count}} měsíců"}},xMonths:{one:{regular:"měsíc",past:"před měsícem",future:"za měsíc"},few:{regular:"{{count}} měsíce",past:"před {{count}} měsíci",future:"za {{count}} měsíce"},many:{regular:"{{count}} měsíců",past:"před {{count}} měsíci",future:"za {{count}} měsíců"}},aboutXYears:{one:{regular:"přibližně rok",past:"přibližně před rokem",future:"přibližně za rok"},few:{regular:"přibližně {{count}} roky",past:"přibližně před {{count}} roky",future:"přibližně za {{count}} roky"},many:{regular:"přibližně {{count}} roků",past:"přibližně před {{count}} roky",future:"přibližně za {{count}} roků"}},xYears:{one:{regular:"rok",past:"před rokem",future:"za rok"},few:{regular:"{{count}} roky",past:"před {{count}} roky",future:"za {{count}} roky"},many:{regular:"{{count}} roků",past:"před {{count}} roky",future:"za {{count}} roků"}},overXYears:{one:{regular:"více než rok",past:"před více než rokem",future:"za více než rok"},few:{regular:"více než {{count}} roky",past:"před více než {{count}} roky",future:"za více než {{count}} roky"},many:{regular:"více než {{count}} roků",past:"před více než {{count}} roky",future:"za více než {{count}} roků"}},almostXYears:{one:{regular:"skoro rok",past:"skoro před rokem",future:"skoro za rok"},few:{regular:"skoro {{count}} roky",past:"skoro před {{count}} roky",future:"skoro za {{count}} roky"},many:{regular:"skoro {{count}} roků",past:"skoro před {{count}} roky",future:"skoro za {{count}} roků"}}},formatDistance$r=(e,t,n)=>{let i;const r=formatDistanceLocale$q[e];r.type==="other"?i=r.other:t===1?i=r.one:t>1&&t<5?i=r.few:i=r.many;const a=(n==null?void 0:n.addSuffix)===!0,o=n==null?void 0:n.comparison;let l;return a&&o===-1?l=i.past:a&&o===1?l=i.future:l=i.regular,l.replace("{{count}}",String(t))},dateFormats$s={full:"EEEE, d. MMMM yyyy",long:"d. MMMM yyyy",medium:"d. M. yyyy",short:"dd.MM.yyyy"},timeFormats$s={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},dateTimeFormats$s={full:"{{date}} 'v' {{time}}",long:"{{date}} 'v' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$s={date:buildFormatLongFn({formats:dateFormats$s,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$s,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$s,defaultWidth:"full"})},accusativeWeekdays$4=["neděli","pondělí","úterý","středu","čtvrtek","pátek","sobotu"],formatRelativeLocale$r={lastWeek:"'poslední' eeee 've' p",yesterday:"'včera v' p",today:"'dnes v' p",tomorrow:"'zítra v' p",nextWeek:e=>{const t=e.getDay();return"'v "+accusativeWeekdays$4[t]+" o' p"},other:"P"},formatRelative$r=(e,t)=>{const n=formatRelativeLocale$r[e];return typeof n=="function"?n(t):n},eraValues$r={narrow:["př. n. l.","n. l."],abbreviated:["př. n. l.","n. l."],wide:["před naším letopočtem","našeho letopočtu"]},quarterValues$r={narrow:["1","2","3","4"],abbreviated:["1. čtvrtletí","2. čtvrtletí","3. čtvrtletí","4. čtvrtletí"],wide:["1. čtvrtletí","2. čtvrtletí","3. čtvrtletí","4. čtvrtletí"]},monthValues$r={narrow:["L","Ú","B","D","K","Č","Č","S","Z","Ř","L","P"],abbreviated:["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],wide:["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"]},formattingMonthValues$7={narrow:["L","Ú","B","D","K","Č","Č","S","Z","Ř","L","P"],abbreviated:["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],wide:["ledna","února","března","dubna","května","června","července","srpna","září","října","listopadu","prosince"]},dayValues$r={narrow:["ne","po","út","st","čt","pá","so"],short:["ne","po","út","st","čt","pá","so"],abbreviated:["ned","pon","úte","stř","čtv","pát","sob"],wide:["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"]},dayPeriodValues$r={narrow:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"}},formattingDayPeriodValues$j={narrow:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"}},ordinalNumber$r=(e,t)=>Number(e)+".",localize$r={ordinalNumber:ordinalNumber$r,era:buildLocalizeFn({values:eraValues$r,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$r,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$r,defaultWidth:"wide",formattingValues:formattingMonthValues$7,defaultFormattingWidth:"wide"}),day:buildLocalizeFn({values:dayValues$r,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$r,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$j,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$r=/^(\d+)\.?/i,parseOrdinalNumberPattern$r=/\d+/i,matchEraPatterns$r={narrow:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(p[řr](\.|ed) Kristem|p[řr](\.|ed) na[šs][íi]m letopo[čc]tem|po Kristu|na[šs]eho letopo[čc]tu)/i},parseEraPatterns$r={any:[/^p[řr]/i,/^(po|n)/i]},matchQuarterPatterns$r={narrow:/^[1234]/i,abbreviated:/^[1234]\. [čc]tvrtlet[íi]/i,wide:/^[1234]\. [čc]tvrtlet[íi]/i},parseQuarterPatterns$r={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$r={narrow:/^[lúubdkčcszřrlp]/i,abbreviated:/^(led|[úu]no|b[řr]e|dub|kv[ěe]|[čc]vn|[čc]vc|srp|z[áa][řr]|[řr][íi]j|lis|pro)/i,wide:/^(leden|ledna|[úu]nora?|b[řr]ezen|b[řr]ezna|duben|dubna|kv[ěe]ten|kv[ěe]tna|[čc]erven(ec|ce)?|[čc]ervna|srpen|srpna|z[áa][řr][íi]|[řr][íi]jen|[řr][íi]jna|listopad(a|u)?|prosinec|prosince)/i},parseMonthPatterns$r={narrow:[/^l/i,/^[úu]/i,/^b/i,/^d/i,/^k/i,/^[čc]/i,/^[čc]/i,/^s/i,/^z/i,/^[řr]/i,/^l/i,/^p/i],any:[/^led/i,/^[úu]n/i,/^b[řr]e/i,/^dub/i,/^kv[ěe]/i,/^[čc]vn|[čc]erven(?!\w)|[čc]ervna/i,/^[čc]vc|[čc]erven(ec|ce)/i,/^srp/i,/^z[áa][řr]/i,/^[řr][íi]j/i,/^lis/i,/^pro/i]},matchDayPatterns$r={narrow:/^[npuúsčps]/i,short:/^(ne|po|[úu]t|st|[čc]t|p[áa]|so)/i,abbreviated:/^(ned|pon|[úu]te|st[rř]|[čc]tv|p[áa]t|sob)/i,wide:/^(ned[ěe]le|pond[ěe]l[íi]|[úu]ter[ýy]|st[řr]eda|[čc]tvrtek|p[áa]tek|sobota)/i},parseDayPatterns$r={narrow:[/^n/i,/^p/i,/^[úu]/i,/^s/i,/^[čc]/i,/^p/i,/^s/i],any:[/^ne/i,/^po/i,/^[úu]t/i,/^st/i,/^[čc]t/i,/^p[áa]/i,/^so/i]},matchDayPeriodPatterns$r={any:/^dopoledne|dop\.?|odpoledne|odp\.?|p[ůu]lnoc|poledne|r[áa]no|odpoledne|ve[čc]er|(v )?noci?/i},parseDayPeriodPatterns$r={any:{am:/^dop/i,pm:/^odp/i,midnight:/^p[ůu]lnoc/i,noon:/^poledne/i,morning:/r[áa]no/i,afternoon:/odpoledne/i,evening:/ve[čc]er/i,night:/noc/i}},match$r={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$r,parsePattern:parseOrdinalNumberPattern$r,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$r,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$r,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$r,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$r,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$r,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$r,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$r,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$r,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$r,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$r,defaultParseWidth:"any"})},cs={code:"cs",formatDistance:formatDistance$r,formatLong:formatLong$s,formatRelative:formatRelative$r,localize:localize$r,match:match$r,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale$p={lessThanXSeconds:{one:"mindre end ét sekund",other:"mindre end {{count}} sekunder"},xSeconds:{one:"1 sekund",other:"{{count}} sekunder"},halfAMinute:"ét halvt minut",lessThanXMinutes:{one:"mindre end ét minut",other:"mindre end {{count}} minutter"},xMinutes:{one:"1 minut",other:"{{count}} minutter"},aboutXHours:{one:"cirka 1 time",other:"cirka {{count}} timer"},xHours:{one:"1 time",other:"{{count}} timer"},xDays:{one:"1 dag",other:"{{count}} dage"},aboutXWeeks:{one:"cirka 1 uge",other:"cirka {{count}} uger"},xWeeks:{one:"1 uge",other:"{{count}} uger"},aboutXMonths:{one:"cirka 1 måned",other:"cirka {{count}} måneder"},xMonths:{one:"1 måned",other:"{{count}} måneder"},aboutXYears:{one:"cirka 1 år",other:"cirka {{count}} år"},xYears:{one:"1 år",other:"{{count}} år"},overXYears:{one:"over 1 år",other:"over {{count}} år"},almostXYears:{one:"næsten 1 år",other:"næsten {{count}} år"}},formatDistance$q=(e,t,n)=>{let i;const r=formatDistanceLocale$p[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"om "+i:i+" siden":i},dateFormats$r={full:"EEEE 'den' d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd/MM/y"},timeFormats$r={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$r={full:"{{date}} 'kl'. {{time}}",long:"{{date}} 'kl'. {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong$r={date:buildFormatLongFn({formats:dateFormats$r,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$r,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$r,defaultWidth:"full"})},formatRelativeLocale$q={lastWeek:"'sidste' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"'på' eeee 'kl.' p",other:"P"},formatRelative$q=(e,t,n,i)=>formatRelativeLocale$q[e],eraValues$q={narrow:["fvt","vt"],abbreviated:["f.v.t.","v.t."],wide:["før vesterlandsk tidsregning","vesterlandsk tidsregning"]},quarterValues$q={narrow:["1","2","3","4"],abbreviated:["1. kvt.","2. kvt.","3. kvt.","4. kvt."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},monthValues$q={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},dayValues$q={narrow:["S","M","T","O","T","F","L"],short:["sø","ma","ti","on","to","fr","lø"],abbreviated:["søn.","man.","tir.","ons.","tor.","fre.","lør."],wide:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},dayPeriodValues$q={narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"}},formattingDayPeriodValues$i={narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"}},ordinalNumber$q=(e,t)=>Number(e)+".",localize$q={ordinalNumber:ordinalNumber$q,era:buildLocalizeFn({values:eraValues$q,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$q,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$q,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$q,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$q,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$i,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$q=/^(\d+)(\.)?/i,parseOrdinalNumberPattern$q=/\d+/i,matchEraPatterns$q={narrow:/^(fKr|fvt|eKr|vt)/i,abbreviated:/^(f\.Kr\.?|f\.v\.t\.?|e\.Kr\.?|v\.t\.)/i,wide:/^(f.Kr.|før vesterlandsk tidsregning|e.Kr.|vesterlandsk tidsregning)/i},parseEraPatterns$q={any:[/^f/i,/^(v|e)/i]},matchQuarterPatterns$q={narrow:/^[1234]/i,abbreviated:/^[1234]. kvt\./i,wide:/^[1234]\.? kvartal/i},parseQuarterPatterns$q={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$q={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mar.|apr.|maj|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januar|februar|marts|april|maj|juni|juli|august|september|oktober|november|december)/i},parseMonthPatterns$q={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$q={narrow:/^[smtofl]/i,short:/^(søn.|man.|tir.|ons.|tor.|fre.|lør.)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},parseDayPatterns$q={narrow:[/^s/i,/^m/i,/^t/i,/^o/i,/^t/i,/^f/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},matchDayPeriodPatterns$q={narrow:/^(a|p|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i,any:/^([ap]\.?\s?m\.?|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i},parseDayPeriodPatterns$q={any:{am:/^a/i,pm:/^p/i,midnight:/midnat/i,noon:/middag/i,morning:/morgen/i,afternoon:/eftermiddag/i,evening:/aften/i,night:/nat/i}},match$q={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$q,parsePattern:parseOrdinalNumberPattern$q,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$q,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$q,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$q,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$q,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$q,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$q,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$q,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$q,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$q,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$q,defaultParseWidth:"any"})},da={code:"da",formatDistance:formatDistance$q,formatLong:formatLong$r,formatRelative:formatRelative$q,localize:localize$q,match:match$q,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale$o={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},formatDistance$p=(e,t,n)=>{let i;const r=n!=null&&n.addSuffix?formatDistanceLocale$o[e].withPreposition:formatDistanceLocale$o[e].standalone;return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:"vor "+i:i},dateFormats$q={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},timeFormats$q={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$q={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong$q={date:buildFormatLongFn({formats:dateFormats$q,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$q,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$q,defaultWidth:"full"})},formatRelativeLocale$p={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},formatRelative$p=(e,t,n,i)=>formatRelativeLocale$p[e],eraValues$p={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},quarterValues$p={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},monthValues$p={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},formattingMonthValues$6={narrow:monthValues$p.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:monthValues$p.wide},dayValues$p={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},dayPeriodValues$p={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},formattingDayPeriodValues$h={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},ordinalNumber$p=e=>Number(e)+".",localize$p={ordinalNumber:ordinalNumber$p,era:buildLocalizeFn({values:eraValues$p,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$p,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$p,formattingValues:formattingMonthValues$6,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$p,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$p,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$h,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$p=/^(\d+)(\.)?/i,parseOrdinalNumberPattern$p=/\d+/i,matchEraPatterns$p={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},parseEraPatterns$p={any:[/^v/i,/^n/i]},matchQuarterPatterns$p={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},parseQuarterPatterns$p={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$p={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},parseMonthPatterns$p={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$p={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},parseDayPatterns$p={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},matchDayPeriodPatterns$p={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},parseDayPeriodPatterns$p={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},match$p={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$p,parsePattern:parseOrdinalNumberPattern$p,valueCallback:e=>parseInt(e)}),era:buildMatchFn({matchPatterns:matchEraPatterns$p,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$p,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$p,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$p,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$p,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$p,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$p,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$p,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$p,defaultMatchWidth:"wide",parsePatterns:parseDayPeriodPatterns$p,defaultParseWidth:"any"})},de={code:"de",formatDistance:formatDistance$p,formatLong:formatLong$q,formatRelative:formatRelative$p,localize:localize$p,match:match$p,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale$n={lessThanXSeconds:{one:"λιγότερο από ένα δευτερόλεπτο",other:"λιγότερο από {{count}} δευτερόλεπτα"},xSeconds:{one:"1 δευτερόλεπτο",other:"{{count}} δευτερόλεπτα"},halfAMinute:"μισό λεπτό",lessThanXMinutes:{one:"λιγότερο από ένα λεπτό",other:"λιγότερο από {{count}} λεπτά"},xMinutes:{one:"1 λεπτό",other:"{{count}} λεπτά"},aboutXHours:{one:"περίπου 1 ώρα",other:"περίπου {{count}} ώρες"},xHours:{one:"1 ώρα",other:"{{count}} ώρες"},xDays:{one:"1 ημέρα",other:"{{count}} ημέρες"},aboutXWeeks:{one:"περίπου 1 εβδομάδα",other:"περίπου {{count}} εβδομάδες"},xWeeks:{one:"1 εβδομάδα",other:"{{count}} εβδομάδες"},aboutXMonths:{one:"περίπου 1 μήνας",other:"περίπου {{count}} μήνες"},xMonths:{one:"1 μήνας",other:"{{count}} μήνες"},aboutXYears:{one:"περίπου 1 χρόνο",other:"περίπου {{count}} χρόνια"},xYears:{one:"1 χρόνο",other:"{{count}} χρόνια"},overXYears:{one:"πάνω από 1 χρόνο",other:"πάνω από {{count}} χρόνια"},almostXYears:{one:"περίπου 1 χρόνο",other:"περίπου {{count}} χρόνια"}},formatDistance$o=(e,t,n)=>{let i;const r=formatDistanceLocale$n[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"σε "+i:i+" πριν":i},dateFormats$p={full:"EEEE, d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"d/M/yy"},timeFormats$p={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats$p={full:"{{date}} - {{time}}",long:"{{date}} - {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$p={date:buildFormatLongFn({formats:dateFormats$p,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$p,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$p,defaultWidth:"full"})},formatRelativeLocale$o={lastWeek:e=>{switch(e.getDay()){case 6:return"'το προηγούμενο' eeee 'στις' p";default:return"'την προηγούμενη' eeee 'στις' p"}},yesterday:"'χθες στις' p",today:"'σήμερα στις' p",tomorrow:"'αύριο στις' p",nextWeek:"eeee 'στις' p",other:"P"},formatRelative$o=(e,t)=>{const n=formatRelativeLocale$o[e];return typeof n=="function"?n(t):n},eraValues$o={narrow:["πΧ","μΧ"],abbreviated:["π.Χ.","μ.Χ."],wide:["προ Χριστού","μετά Χριστόν"]},quarterValues$o={narrow:["1","2","3","4"],abbreviated:["Τ1","Τ2","Τ3","Τ4"],wide:["1ο τρίμηνο","2ο τρίμηνο","3ο τρίμηνο","4ο τρίμηνο"]},monthValues$o={narrow:["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],abbreviated:["Ιαν","Φεβ","Μάρ","Απρ","Μάι","Ιούν","Ιούλ","Αύγ","Σεπ","Οκτ","Νοέ","Δεκ"],wide:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"]},formattingMonthValues$5={narrow:["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],abbreviated:["Ιαν","Φεβ","Μαρ","Απρ","Μαΐ","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ"],wide:["Ιανουαρίου","Φεβρουαρίου","Μαρτίου","Απριλίου","Μαΐου","Ιουνίου","Ιουλίου","Αυγούστου","Σεπτεμβρίου","Οκτωβρίου","Νοεμβρίου","Δεκεμβρίου"]},dayValues$o={narrow:["Κ","Δ","T","Τ","Π","Π","Σ"],short:["Κυ","Δε","Τρ","Τε","Πέ","Πα","Σά"],abbreviated:["Κυρ","Δευ","Τρί","Τετ","Πέμ","Παρ","Σάβ"],wide:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]},dayPeriodValues$o={narrow:{am:"πμ",pm:"μμ",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"},abbreviated:{am:"π.μ.",pm:"μ.μ.",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"},wide:{am:"π.μ.",pm:"μ.μ.",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"}},ordinalNumber$o=(e,t)=>{const n=Number(e),i=t==null?void 0:t.unit;let r;return i==="year"||i==="month"?r="ος":i==="week"||i==="dayOfYear"||i==="day"||i==="hour"||i==="date"?r="η":r="ο",n+r},localize$o={ordinalNumber:ordinalNumber$o,era:buildLocalizeFn({values:eraValues$o,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$o,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$o,defaultWidth:"wide",formattingValues:formattingMonthValues$5,defaultFormattingWidth:"wide"}),day:buildLocalizeFn({values:dayValues$o,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$o,defaultWidth:"wide"})},matchOrdinalNumberPattern$o=/^(\d+)(ος|η|ο)?/i,parseOrdinalNumberPattern$o=/\d+/i,matchEraPatterns$o={narrow:/^(πΧ|μΧ)/i,abbreviated:/^(π\.?\s?χ\.?|π\.?\s?κ\.?\s?χ\.?|μ\.?\s?χ\.?|κ\.?\s?χ\.?)/i,wide:/^(προ Χριστο(ύ|υ)|πριν απ(ό|ο) την Κοιν(ή|η) Χρονολογ(ί|ι)α|μετ(ά|α) Χριστ(ό|ο)ν|Κοιν(ή|η) Χρονολογ(ί|ι)α)/i},parseEraPatterns$o={any:[/^π/i,/^(μ|κ)/i]},matchQuarterPatterns$o={narrow:/^[1234]/i,abbreviated:/^τ[1234]/i,wide:/^[1234]ο? τρ(ί|ι)μηνο/i},parseQuarterPatterns$o={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$o={narrow:/^[ιφμαμιιασονδ]/i,abbreviated:/^(ιαν|φεβ|μ[άα]ρ|απρ|μ[άα][ιΐ]|ιο[ύυ]ν|ιο[ύυ]λ|α[ύυ]γ|σεπ|οκτ|νο[έε]|δεκ)/i,wide:/^(μ[άα][ιΐ]|α[ύυ]γο[υύ]στ)(ος|ου)|(ιανου[άα]ρ|φεβρου[άα]ρ|μ[άα]ρτ|απρ[ίι]λ|ιο[ύυ]ν|ιο[ύυ]λ|σεπτ[έε]μβρ|οκτ[ώω]βρ|νο[έε]μβρ|δεκ[έε]μβρ)(ιος|ίου)/i},parseMonthPatterns$o={narrow:[/^ι/i,/^φ/i,/^μ/i,/^α/i,/^μ/i,/^ι/i,/^ι/i,/^α/i,/^σ/i,/^ο/i,/^ν/i,/^δ/i],any:[/^ια/i,/^φ/i,/^μ[άα]ρ/i,/^απ/i,/^μ[άα][ιΐ]/i,/^ιο[ύυ]ν/i,/^ιο[ύυ]λ/i,/^α[ύυ]/i,/^σ/i,/^ο/i,/^ν/i,/^δ/i]},matchDayPatterns$o={narrow:/^[κδτπσ]/i,short:/^(κυ|δε|τρ|τε|π[εέ]|π[αά]|σ[αά])/i,abbreviated:/^(κυρ|δευ|τρι|τετ|πεμ|παρ|σαβ)/i,wide:/^(κυριακ(ή|η)|δευτ(έ|ε)ρα|τρ(ί|ι)τη|τετ(ά|α)ρτη|π(έ|ε)μπτη|παρασκευ(ή|η)|σ(ά|α)ββατο)/i},parseDayPatterns$o={narrow:[/^κ/i,/^δ/i,/^τ/i,/^τ/i,/^π/i,/^π/i,/^σ/i],any:[/^κ/i,/^δ/i,/^τρ/i,/^τε/i,/^π[εέ]/i,/^π[αά]/i,/^σ/i]},matchDayPeriodPatterns$o={narrow:/^(πμ|μμ|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i,any:/^([πμ]\.?\s?μ\.?|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i},parseDayPeriodPatterns$o={any:{am:/^πμ|π\.\s?μ\./i,pm:/^μμ|μ\.\s?μ\./i,midnight:/^μεσάν/i,noon:/^μεσημ(έ|ε)/i,morning:/πρω(ί|ι)/i,afternoon:/απ(ό|ο)γευμα/i,evening:/βρ(ά|α)δυ/i,night:/ν(ύ|υ)χτα/i}},match$o={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$o,parsePattern:parseOrdinalNumberPattern$o,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$o,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$o,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$o,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$o,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$o,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$o,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$o,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$o,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$o,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$o,defaultParseWidth:"any"})},el={code:"el",formatDistance:formatDistance$o,formatLong:formatLong$p,formatRelative:formatRelative$o,localize:localize$o,match:match$o,options:{weekStartsOn:1,firstWeekContainsDate:4}},dateFormats$o={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},timeFormats$o={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$o={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$o={date:buildFormatLongFn({formats:dateFormats$o,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$o,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$o,defaultWidth:"full"})},enGB={code:"en-GB",formatDistance:formatDistance$u,formatLong:formatLong$o,formatRelative:formatRelative$u,localize:localize$u,match:match$u,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale$m={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},formatDistance$n=(e,t,n)=>{let i;const r=formatDistanceLocale$m[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+i:"hace "+i:i},dateFormats$n={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},timeFormats$n={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$n={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$n={date:buildFormatLongFn({formats:dateFormats$n,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$n,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$n,defaultWidth:"full"})},formatRelativeLocale$n={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},formatRelativeLocalePlural={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},formatRelative$n=(e,t,n,i)=>t.getHours()!==1?formatRelativeLocalePlural[e]:formatRelativeLocale$n[e],eraValues$n={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},quarterValues$n={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},monthValues$n={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},dayValues$n={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},dayPeriodValues$n={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},formattingDayPeriodValues$g={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},ordinalNumber$n=(e,t)=>Number(e)+"º",localize$n={ordinalNumber:ordinalNumber$n,era:buildLocalizeFn({values:eraValues$n,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$n,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:buildLocalizeFn({values:monthValues$n,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$n,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$n,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$g,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$n=/^(\d+)(º)?/i,parseOrdinalNumberPattern$n=/\d+/i,matchEraPatterns$n={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},parseEraPatterns$n={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},matchQuarterPatterns$n={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},parseQuarterPatterns$n={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$n={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},parseMonthPatterns$n={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},matchDayPatterns$n={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},parseDayPatterns$n={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},matchDayPeriodPatterns$n={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},parseDayPeriodPatterns$n={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},match$n={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$n,parsePattern:parseOrdinalNumberPattern$n,valueCallback:function(e){return parseInt(e,10)}}),era:buildMatchFn({matchPatterns:matchEraPatterns$n,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$n,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$n,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$n,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$n,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$n,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$n,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$n,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$n,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$n,defaultParseWidth:"any"})},es={code:"es",formatDistance:formatDistance$n,formatLong:formatLong$n,formatRelative:formatRelative$n,localize:localize$n,match:match$n,options:{weekStartsOn:1,firstWeekContainsDate:1}};function futureSeconds(e){return e.replace(/sekuntia?/,"sekunnin")}function futureMinutes(e){return e.replace(/minuuttia?/,"minuutin")}function futureHours(e){return e.replace(/tuntia?/,"tunnin")}function futureDays(e){return e.replace(/päivää?/,"päivän")}function futureWeeks(e){return e.replace(/(viikko|viikkoa)/,"viikon")}function futureMonths(e){return e.replace(/(kuukausi|kuukautta)/,"kuukauden")}function futureYears(e){return e.replace(/(vuosi|vuotta)/,"vuoden")}const formatDistanceLocale$l={lessThanXSeconds:{one:"alle sekunti",other:"alle {{count}} sekuntia",futureTense:futureSeconds},xSeconds:{one:"sekunti",other:"{{count}} sekuntia",futureTense:futureSeconds},halfAMinute:{one:"puoli minuuttia",other:"puoli minuuttia",futureTense:e=>"puolen minuutin"},lessThanXMinutes:{one:"alle minuutti",other:"alle {{count}} minuuttia",futureTense:futureMinutes},xMinutes:{one:"minuutti",other:"{{count}} minuuttia",futureTense:futureMinutes},aboutXHours:{one:"noin tunti",other:"noin {{count}} tuntia",futureTense:futureHours},xHours:{one:"tunti",other:"{{count}} tuntia",futureTense:futureHours},xDays:{one:"päivä",other:"{{count}} päivää",futureTense:futureDays},aboutXWeeks:{one:"noin viikko",other:"noin {{count}} viikkoa",futureTense:futureWeeks},xWeeks:{one:"viikko",other:"{{count}} viikkoa",futureTense:futureWeeks},aboutXMonths:{one:"noin kuukausi",other:"noin {{count}} kuukautta",futureTense:futureMonths},xMonths:{one:"kuukausi",other:"{{count}} kuukautta",futureTense:futureMonths},aboutXYears:{one:"noin vuosi",other:"noin {{count}} vuotta",futureTense:futureYears},xYears:{one:"vuosi",other:"{{count}} vuotta",futureTense:futureYears},overXYears:{one:"yli vuosi",other:"yli {{count}} vuotta",futureTense:futureYears},almostXYears:{one:"lähes vuosi",other:"lähes {{count}} vuotta",futureTense:futureYears}},formatDistance$m=(e,t,n)=>{const i=formatDistanceLocale$l[e],r=t===1?i.one:i.other.replace("{{count}}",String(t));return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?i.futureTense(r)+" kuluttua":r+" sitten":r},dateFormats$m={full:"eeee d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"d.M.y"},timeFormats$m={full:"HH.mm.ss zzzz",long:"HH.mm.ss z",medium:"HH.mm.ss",short:"HH.mm"},dateTimeFormats$m={full:"{{date}} 'klo' {{time}}",long:"{{date}} 'klo' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong$m={date:buildFormatLongFn({formats:dateFormats$m,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$m,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$m,defaultWidth:"full"})},formatRelativeLocale$m={lastWeek:"'viime' eeee 'klo' p",yesterday:"'eilen klo' p",today:"'tänään klo' p",tomorrow:"'huomenna klo' p",nextWeek:"'ensi' eeee 'klo' p",other:"P"},formatRelative$m=(e,t,n,i)=>formatRelativeLocale$m[e],eraValues$m={narrow:["eaa.","jaa."],abbreviated:["eaa.","jaa."],wide:["ennen ajanlaskun alkua","jälkeen ajanlaskun alun"]},quarterValues$m={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartaali","2. kvartaali","3. kvartaali","4. kvartaali"]},monthValues$m={narrow:["T","H","M","H","T","K","H","E","S","L","M","J"],abbreviated:["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],wide:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]},formattingMonthValues$4={narrow:monthValues$m.narrow,abbreviated:monthValues$m.abbreviated,wide:["tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kesäkuuta","heinäkuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta"]},dayValues$m={narrow:["S","M","T","K","T","P","L"],short:["su","ma","ti","ke","to","pe","la"],abbreviated:["sunn.","maan.","tiis.","kesk.","torst.","perj.","la"],wide:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},formattingDayValues={narrow:dayValues$m.narrow,short:dayValues$m.short,abbreviated:dayValues$m.abbreviated,wide:["sunnuntaina","maanantaina","tiistaina","keskiviikkona","torstaina","perjantaina","lauantaina"]},dayPeriodValues$m={narrow:{am:"ap",pm:"ip",midnight:"keskiyö",noon:"keskipäivä",morning:"ap",afternoon:"ip",evening:"illalla",night:"yöllä"},abbreviated:{am:"ap",pm:"ip",midnight:"keskiyö",noon:"keskipäivä",morning:"ap",afternoon:"ip",evening:"illalla",night:"yöllä"},wide:{am:"ap",pm:"ip",midnight:"keskiyöllä",noon:"keskipäivällä",morning:"aamupäivällä",afternoon:"iltapäivällä",evening:"illalla",night:"yöllä"}},ordinalNumber$m=(e,t)=>Number(e)+".",localize$m={ordinalNumber:ordinalNumber$m,era:buildLocalizeFn({values:eraValues$m,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$m,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$m,defaultWidth:"wide",formattingValues:formattingMonthValues$4,defaultFormattingWidth:"wide"}),day:buildLocalizeFn({values:dayValues$m,defaultWidth:"wide",formattingValues:formattingDayValues,defaultFormattingWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$m,defaultWidth:"wide"})},matchOrdinalNumberPattern$m=/^(\d+)(\.)/i,parseOrdinalNumberPattern$m=/\d+/i,matchEraPatterns$m={narrow:/^(e|j)/i,abbreviated:/^(eaa.|jaa.)/i,wide:/^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i},parseEraPatterns$m={any:[/^e/i,/^j/i]},matchQuarterPatterns$m={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\.? kvartaali/i},parseQuarterPatterns$m={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$m={narrow:/^[thmkeslj]/i,abbreviated:/^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i,wide:/^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i},parseMonthPatterns$m={narrow:[/^t/i,/^h/i,/^m/i,/^h/i,/^t/i,/^k/i,/^h/i,/^e/i,/^s/i,/^l/i,/^m/i,/^j/i],any:[/^ta/i,/^hel/i,/^maa/i,/^hu/i,/^to/i,/^k/i,/^hei/i,/^e/i,/^s/i,/^l/i,/^mar/i,/^j/i]},matchDayPatterns$m={narrow:/^[smtkpl]/i,short:/^(su|ma|ti|ke|to|pe|la)/i,abbreviated:/^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i,wide:/^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i},parseDayPatterns$m={narrow:[/^s/i,/^m/i,/^t/i,/^k/i,/^t/i,/^p/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^k/i,/^to/i,/^p/i,/^l/i]},matchDayPeriodPatterns$m={narrow:/^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i,any:/^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i},parseDayPeriodPatterns$m={any:{am:/^ap/i,pm:/^ip/i,midnight:/^keskiyö/i,noon:/^keskipäivä/i,morning:/aamupäivällä/i,afternoon:/iltapäivällä/i,evening:/illalla/i,night:/yöllä/i}},match$m={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$m,parsePattern:parseOrdinalNumberPattern$m,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$m,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$m,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$m,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$m,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$m,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$m,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$m,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$m,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$m,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$m,defaultParseWidth:"any"})},fi={code:"fi",formatDistance:formatDistance$m,formatLong:formatLong$m,formatRelative:formatRelative$m,localize:localize$m,match:match$m,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale$k={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},formatDistance$l=(e,t,n)=>{let i;const r=formatDistanceLocale$k[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"dans "+i:"il y a "+i:i},dateFormats$l={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},timeFormats$l={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$l={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$l={date:buildFormatLongFn({formats:dateFormats$l,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$l,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$l,defaultWidth:"full"})},formatRelativeLocale$l={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},formatRelative$l=(e,t,n,i)=>formatRelativeLocale$l[e],eraValues$l={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},quarterValues$l={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},monthValues$l={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},dayValues$l={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},dayPeriodValues$l={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},ordinalNumber$l=(e,t)=>{const n=Number(e),i=t==null?void 0:t.unit;if(n===0)return"0";const r=["year","week","hour","minute","second"];let a;return n===1?a=i&&r.includes(i)?"ère":"er":a="ème",n+a},localize$l={ordinalNumber:ordinalNumber$l,era:buildLocalizeFn({values:eraValues$l,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$l,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$l,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$l,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$l,defaultWidth:"wide"})},matchOrdinalNumberPattern$l=/^(\d+)(ième|ère|ème|er|e)?/i,parseOrdinalNumberPattern$l=/\d+/i,matchEraPatterns$l={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},parseEraPatterns$l={any:[/^av/i,/^ap/i]},matchQuarterPatterns$l={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},parseQuarterPatterns$l={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$l={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},parseMonthPatterns$l={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$l={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},parseDayPatterns$l={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},matchDayPeriodPatterns$l={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},parseDayPeriodPatterns$l={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},match$l={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$l,parsePattern:parseOrdinalNumberPattern$l,valueCallback:e=>parseInt(e)}),era:buildMatchFn({matchPatterns:matchEraPatterns$l,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$l,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$l,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$l,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$l,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$l,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$l,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$l,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$l,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$l,defaultParseWidth:"any"})},fr={code:"fr",formatDistance:formatDistance$l,formatLong:formatLong$l,formatRelative:formatRelative$l,localize:localize$l,match:match$l,options:{weekStartsOn:1,firstWeekContainsDate:4}},translations={about:"körülbelül",over:"több mint",almost:"majdnem",lessthan:"kevesebb mint"},withoutSuffixes={xseconds:" másodperc",halfaminute:"fél perc",xminutes:" perc",xhours:" óra",xdays:" nap",xweeks:" hét",xmonths:" hónap",xyears:" év"},withSuffixes={xseconds:{"-1":" másodperccel ezelőtt",1:" másodperc múlva",0:" másodperce"},halfaminute:{"-1":"fél perccel ezelőtt",1:"fél perc múlva",0:"fél perce"},xminutes:{"-1":" perccel ezelőtt",1:" perc múlva",0:" perce"},xhours:{"-1":" órával ezelőtt",1:" óra múlva",0:" órája"},xdays:{"-1":" nappal ezelőtt",1:" nap múlva",0:" napja"},xweeks:{"-1":" héttel ezelőtt",1:" hét múlva",0:" hete"},xmonths:{"-1":" hónappal ezelőtt",1:" hónap múlva",0:" hónapja"},xyears:{"-1":" évvel ezelőtt",1:" év múlva",0:" éve"}},formatDistance$k=(e,t,n)=>{const i=e.match(/about|over|almost|lessthan/i),r=i?e.replace(i[0],""):e,a=(n==null?void 0:n.addSuffix)===!0,o=r.toLowerCase(),l=(n==null?void 0:n.comparison)||0,u=a?withSuffixes[o][l]:withoutSuffixes[o];let h=o==="halfaminute"?u:t+u;if(i){const m=i[0].toLowerCase();h=translations[m]+" "+h}return h},dateFormats$k={full:"y. MMMM d., EEEE",long:"y. MMMM d.",medium:"y. MMM d.",short:"y. MM. dd."},timeFormats$k={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},dateTimeFormats$k={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong$k={date:buildFormatLongFn({formats:dateFormats$k,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$k,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$k,defaultWidth:"full"})},accusativeWeekdays$3=["vasárnap","hétfőn","kedden","szerdán","csütörtökön","pénteken","szombaton"];function week(e){return t=>{const n=accusativeWeekdays$3[t.getDay()];return`${e?"":"'múlt' "}'${n}' p'-kor'`}}const formatRelativeLocale$k={lastWeek:week(!1),yesterday:"'tegnap' p'-kor'",today:"'ma' p'-kor'",tomorrow:"'holnap' p'-kor'",nextWeek:week(!0),other:"P"},formatRelative$k=(e,t)=>{const n=formatRelativeLocale$k[e];return typeof n=="function"?n(t):n},eraValues$k={narrow:["ie.","isz."],abbreviated:["i. e.","i. sz."],wide:["Krisztus előtt","időszámításunk szerint"]},quarterValues$k={narrow:["1.","2.","3.","4."],abbreviated:["1. n.év","2. n.év","3. n.év","4. n.év"],wide:["1. negyedév","2. negyedév","3. negyedév","4. negyedév"]},formattingQuarterValues$1={narrow:["I.","II.","III.","IV."],abbreviated:["I. n.év","II. n.év","III. n.év","IV. n.év"],wide:["I. negyedév","II. negyedév","III. negyedév","IV. negyedév"]},monthValues$k={narrow:["J","F","M","Á","M","J","J","A","Sz","O","N","D"],abbreviated:["jan.","febr.","márc.","ápr.","máj.","jún.","júl.","aug.","szept.","okt.","nov.","dec."],wide:["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"]},dayValues$k={narrow:["V","H","K","Sz","Cs","P","Sz"],short:["V","H","K","Sze","Cs","P","Szo"],abbreviated:["V","H","K","Sze","Cs","P","Szo"],wide:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},dayPeriodValues$k={narrow:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"du.",evening:"este",night:"éjjel"},abbreviated:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"du.",evening:"este",night:"éjjel"},wide:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"délután",evening:"este",night:"éjjel"}},ordinalNumber$k=(e,t)=>Number(e)+".",localize$k={ordinalNumber:ordinalNumber$k,era:buildLocalizeFn({values:eraValues$k,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$k,defaultWidth:"wide",argumentCallback:e=>e-1,formattingValues:formattingQuarterValues$1,defaultFormattingWidth:"wide"}),month:buildLocalizeFn({values:monthValues$k,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$k,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$k,defaultWidth:"wide"})},matchOrdinalNumberPattern$k=/^(\d+)\.?/i,parseOrdinalNumberPattern$k=/\d+/i,matchEraPatterns$k={narrow:/^(ie\.|isz\.)/i,abbreviated:/^(i\.\s?e\.?|b?\s?c\s?e|i\.\s?sz\.?)/i,wide:/^(Krisztus előtt|időszámításunk előtt|időszámításunk szerint|i\. sz\.)/i},parseEraPatterns$k={narrow:[/ie/i,/isz/i],abbreviated:[/^(i\.?\s?e\.?|b\s?ce)/i,/^(i\.?\s?sz\.?|c\s?e)/i],any:[/előtt/i,/(szerint|i. sz.)/i]},matchQuarterPatterns$k={narrow:/^[1234]\.?/i,abbreviated:/^[1234]?\.?\s?n\.év/i,wide:/^([1234]|I|II|III|IV)?\.?\s?negyedév/i},parseQuarterPatterns$k={any:[/1|I$/i,/2|II$/i,/3|III/i,/4|IV/i]},matchMonthPatterns$k={narrow:/^[jfmaásond]|sz/i,abbreviated:/^(jan\.?|febr\.?|márc\.?|ápr\.?|máj\.?|jún\.?|júl\.?|aug\.?|szept\.?|okt\.?|nov\.?|dec\.?)/i,wide:/^(január|február|március|április|május|június|július|augusztus|szeptember|október|november|december)/i},parseMonthPatterns$k={narrow:[/^j/i,/^f/i,/^m/i,/^a|á/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s|sz/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^már/i,/^áp/i,/^máj/i,/^jún/i,/^júl/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$k={narrow:/^([vhkpc]|sz|cs|sz)/i,short:/^([vhkp]|sze|cs|szo)/i,abbreviated:/^([vhkp]|sze|cs|szo)/i,wide:/^(vasárnap|hétfő|kedd|szerda|csütörtök|péntek|szombat)/i},parseDayPatterns$k={narrow:[/^v/i,/^h/i,/^k/i,/^sz/i,/^c/i,/^p/i,/^sz/i],any:[/^v/i,/^h/i,/^k/i,/^sze/i,/^c/i,/^p/i,/^szo/i]},matchDayPeriodPatterns$k={any:/^((de|du)\.?|éjfél|délután|dél|reggel|este|éjjel)/i},parseDayPeriodPatterns$k={any:{am:/^de\.?/i,pm:/^du\.?/i,midnight:/^éjf/i,noon:/^dé/i,morning:/reg/i,afternoon:/^délu\.?/i,evening:/es/i,night:/éjj/i}},match$k={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$k,parsePattern:parseOrdinalNumberPattern$k,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$k,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$k,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$k,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$k,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$k,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$k,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$k,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$k,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$k,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$k,defaultParseWidth:"any"})},hu={code:"hu",formatDistance:formatDistance$k,formatLong:formatLong$k,formatRelative:formatRelative$k,localize:localize$k,match:match$k,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale$j={lessThanXSeconds:{one:"kurang dari 1 detik",other:"kurang dari {{count}} detik"},xSeconds:{one:"1 detik",other:"{{count}} detik"},halfAMinute:"setengah menit",lessThanXMinutes:{one:"kurang dari 1 menit",other:"kurang dari {{count}} menit"},xMinutes:{one:"1 menit",other:"{{count}} menit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},formatDistance$j=(e,t,n)=>{let i;const r=formatDistanceLocale$j[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"dalam waktu "+i:i+" yang lalu":i},dateFormats$j={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},timeFormats$j={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},dateTimeFormats$j={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$j={date:buildFormatLongFn({formats:dateFormats$j,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$j,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$j,defaultWidth:"full"})},formatRelativeLocale$j={lastWeek:"eeee 'lalu pukul' p",yesterday:"'Kemarin pukul' p",today:"'Hari ini pukul' p",tomorrow:"'Besok pukul' p",nextWeek:"eeee 'pukul' p",other:"P"},formatRelative$j=(e,t,n,i)=>formatRelativeLocale$j[e],eraValues$j={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masehi","Masehi"]},quarterValues$j={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"]},monthValues$j={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agt","Sep","Okt","Nov","Des"],wide:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},dayValues$j={narrow:["M","S","S","R","K","J","S"],short:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],abbreviated:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],wide:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},dayPeriodValues$j={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},formattingDayPeriodValues$f={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},ordinalNumber$j=(e,t)=>"ke-"+Number(e),localize$j={ordinalNumber:ordinalNumber$j,era:buildLocalizeFn({values:eraValues$j,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$j,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$j,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$j,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$j,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$f,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$j=/^ke-(\d+)?/i,parseOrdinalNumberPattern$j=/\d+/i,matchEraPatterns$j={narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i},parseEraPatterns$j={any:[/^s/i,/^(m|e)/i]},matchQuarterPatterns$j={narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},parseQuarterPatterns$j={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$j={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i},parseMonthPatterns$j={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$j={narrow:/^[srkjm]/i,short:/^(min|sen|sel|rab|kam|jum|sab)/i,abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i,wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i},parseDayPatterns$j={narrow:[/^m/i,/^s/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^m/i,/^sen/i,/^sel/i,/^r/i,/^k/i,/^j/i,/^sa/i]},matchDayPeriodPatterns$j={narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i},parseDayPeriodPatterns$j={any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pagi/i,afternoon:/siang/i,evening:/sore/i,night:/malam/i}},match$j={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$j,parsePattern:parseOrdinalNumberPattern$j,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$j,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$j,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$j,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$j,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$j,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$j,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$j,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$j,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$j,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$j,defaultParseWidth:"any"})},id={code:"id",formatDistance:formatDistance$j,formatLong:formatLong$j,formatRelative:formatRelative$j,localize:localize$j,match:match$j,options:{weekStartsOn:1,firstWeekContainsDate:1}},formatDistanceLocale$i={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},formatDistance$i=(e,t,n)=>{let i;const r=formatDistanceLocale$i[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"tra "+i:i+" fa":i},dateFormats$i={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},timeFormats$i={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$i={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong$i={date:buildFormatLongFn({formats:dateFormats$i,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$i,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$i,defaultWidth:"full"})},weekdays=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function lastWeek$3(e){switch(e){case 0:return"'domenica scorsa alle' p";default:return"'"+weekdays[e]+" scorso alle' p"}}function thisWeek$3(e){return"'"+weekdays[e]+" alle' p"}function nextWeek$3(e){switch(e){case 0:return"'domenica prossima alle' p";default:return"'"+weekdays[e]+" prossimo alle' p"}}const formatRelativeLocale$i={lastWeek:(e,t,n)=>{const i=e.getDay();return isSameWeek(e,t,n)?thisWeek$3(i):lastWeek$3(i)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:(e,t,n)=>{const i=e.getDay();return isSameWeek(e,t,n)?thisWeek$3(i):nextWeek$3(i)},other:"P"},formatRelative$i=(e,t,n,i)=>{const r=formatRelativeLocale$i[e];return typeof r=="function"?r(t,n,i):r},eraValues$i={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},quarterValues$i={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},monthValues$i={narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},dayValues$i={narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},dayPeriodValues$i={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},formattingDayPeriodValues$e={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},ordinalNumber$i=(e,t)=>{const n=Number(e);return String(n)},localize$i={ordinalNumber:ordinalNumber$i,era:buildLocalizeFn({values:eraValues$i,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$i,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$i,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$i,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$i,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$e,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$i=/^(\d+)(º)?/i,parseOrdinalNumberPattern$i=/\d+/i,matchEraPatterns$i={narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},parseEraPatterns$i={any:[/^a/i,/^(d|e)/i]},matchQuarterPatterns$i={narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},parseQuarterPatterns$i={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$i={narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},parseMonthPatterns$i={narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$i={narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},parseDayPatterns$i={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},matchDayPeriodPatterns$i={narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},parseDayPeriodPatterns$i={any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},match$i={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$i,parsePattern:parseOrdinalNumberPattern$i,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$i,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$i,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$i,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$i,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$i,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$i,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$i,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$i,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$i,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$i,defaultParseWidth:"any"})},it={code:"it",formatDistance:formatDistance$i,formatLong:formatLong$i,formatRelative:formatRelative$i,localize:localize$i,match:match$i,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale$h={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},formatDistance$h=(e,t,n)=>{n=n||{};let i;const r=formatDistanceLocale$h[e];return typeof r=="string"?i=r:t===1?n.addSuffix&&r.oneWithSuffix?i=r.oneWithSuffix:i=r.one:n.addSuffix&&r.otherWithSuffix?i=r.otherWithSuffix.replace("{{count}}",String(t)):i=r.other.replace("{{count}}",String(t)),n.addSuffix?n.comparison&&n.comparison>0?i+"後":i+"前":i},dateFormats$h={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},timeFormats$h={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},dateTimeFormats$h={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong$h={date:buildFormatLongFn({formats:dateFormats$h,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$h,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$h,defaultWidth:"full"})},formatRelativeLocale$h={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},formatRelative$h=(e,t,n,i)=>formatRelativeLocale$h[e],eraValues$h={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},quarterValues$h={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},monthValues$h={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},dayValues$h={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},dayPeriodValues$h={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},formattingDayPeriodValues$d={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},ordinalNumber$h=(e,t)=>{const n=Number(e);switch(String(t==null?void 0:t.unit)){case"year":return`${n}年`;case"quarter":return`第${n}四半期`;case"month":return`${n}月`;case"week":return`第${n}週`;case"date":return`${n}日`;case"hour":return`${n}時`;case"minute":return`${n}分`;case"second":return`${n}秒`;default:return`${n}`}},localize$h={ordinalNumber:ordinalNumber$h,era:buildLocalizeFn({values:eraValues$h,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$h,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:buildLocalizeFn({values:monthValues$h,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$h,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$h,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$d,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$h=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,parseOrdinalNumberPattern$h=/\d+/i,matchEraPatterns$h={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},parseEraPatterns$h={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},matchQuarterPatterns$h={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},parseQuarterPatterns$h={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},matchMonthPatterns$h={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},parseMonthPatterns$h={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},matchDayPatterns$h={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},parseDayPatterns$h={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},matchDayPeriodPatterns$h={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},parseDayPeriodPatterns$h={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},match$h={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$h,parsePattern:parseOrdinalNumberPattern$h,valueCallback:function(e){return parseInt(e,10)}}),era:buildMatchFn({matchPatterns:matchEraPatterns$h,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$h,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$h,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$h,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$h,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$h,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$h,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$h,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$h,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$h,defaultParseWidth:"any"})},ja={code:"ja",formatDistance:formatDistance$h,formatLong:formatLong$h,formatRelative:formatRelative$h,localize:localize$h,match:match$h,options:{weekStartsOn:0,firstWeekContainsDate:1}},formatDistanceLocale$g={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},formatDistance$g=(e,t,n)=>{let i;const r=formatDistanceLocale$g[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?i+" 후":i+" 전":i},dateFormats$g={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},timeFormats$g={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$g={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong$g={date:buildFormatLongFn({formats:dateFormats$g,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$g,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$g,defaultWidth:"full"})},formatRelativeLocale$g={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},formatRelative$g=(e,t,n,i)=>formatRelativeLocale$g[e],eraValues$g={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},quarterValues$g={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},monthValues$g={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},dayValues$g={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},dayPeriodValues$g={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},formattingDayPeriodValues$c={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},ordinalNumber$g=(e,t)=>{const n=Number(e);switch(String(t==null?void 0:t.unit)){case"minute":case"second":return String(n);case"date":return n+"일";default:return n+"번째"}},localize$g={ordinalNumber:ordinalNumber$g,era:buildLocalizeFn({values:eraValues$g,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$g,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$g,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$g,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$g,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$c,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$g=/^(\d+)(일|번째)?/i,parseOrdinalNumberPattern$g=/\d+/i,matchEraPatterns$g={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},parseEraPatterns$g={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},matchQuarterPatterns$g={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},parseQuarterPatterns$g={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$g={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},parseMonthPatterns$g={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},matchDayPatterns$g={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},parseDayPatterns$g={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},matchDayPeriodPatterns$g={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},parseDayPeriodPatterns$g={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},match$g={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$g,parsePattern:parseOrdinalNumberPattern$g,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$g,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$g,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$g,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$g,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$g,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$g,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$g,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$g,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$g,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$g,defaultParseWidth:"any"})},ko={code:"ko",formatDistance:formatDistance$g,formatLong:formatLong$g,formatRelative:formatRelative$g,localize:localize$g,match:match$g,options:{weekStartsOn:0,firstWeekContainsDate:1}},formatDistanceLocale$f={lessThanXSeconds:{one:"mindre enn ett sekund",other:"mindre enn {{count}} sekunder"},xSeconds:{one:"ett sekund",other:"{{count}} sekunder"},halfAMinute:"et halvt minutt",lessThanXMinutes:{one:"mindre enn ett minutt",other:"mindre enn {{count}} minutter"},xMinutes:{one:"ett minutt",other:"{{count}} minutter"},aboutXHours:{one:"omtrent en time",other:"omtrent {{count}} timer"},xHours:{one:"en time",other:"{{count}} timer"},xDays:{one:"en dag",other:"{{count}} dager"},aboutXWeeks:{one:"omtrent en uke",other:"omtrent {{count}} uker"},xWeeks:{one:"en uke",other:"{{count}} uker"},aboutXMonths:{one:"omtrent en måned",other:"omtrent {{count}} måneder"},xMonths:{one:"en måned",other:"{{count}} måneder"},aboutXYears:{one:"omtrent ett år",other:"omtrent {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"over ett år",other:"over {{count}} år"},almostXYears:{one:"nesten ett år",other:"nesten {{count}} år"}},formatDistance$f=(e,t,n)=>{let i;const r=formatDistanceLocale$f[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"om "+i:i+" siden":i},dateFormats$f={full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},timeFormats$f={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$f={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong$f={date:buildFormatLongFn({formats:dateFormats$f,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$f,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$f,defaultWidth:"full"})},formatRelativeLocale$f={lastWeek:"'forrige' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},formatRelative$f=(e,t,n,i)=>formatRelativeLocale$f[e],eraValues$f={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["før Kristus","etter Kristus"]},quarterValues$f={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},monthValues$f={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","mai","juni","juli","aug.","sep.","okt.","nov.","des."],wide:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},dayValues$f={narrow:["S","M","T","O","T","F","L"],short:["sø","ma","ti","on","to","fr","lø"],abbreviated:["søn","man","tir","ons","tor","fre","lør"],wide:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},dayPeriodValues$f={narrow:{am:"a",pm:"p",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natten"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morgenen",afternoon:"på ettermiddagen",evening:"på kvelden",night:"på natten"}},ordinalNumber$f=(e,t)=>Number(e)+".",localize$f={ordinalNumber:ordinalNumber$f,era:buildLocalizeFn({values:eraValues$f,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$f,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$f,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$f,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$f,defaultWidth:"wide"})},matchOrdinalNumberPattern$f=/^(\d+)\.?/i,parseOrdinalNumberPattern$f=/\d+/i,matchEraPatterns$f={narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},parseEraPatterns$f={any:[/^f/i,/^e/i]},matchQuarterPatterns$f={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},parseQuarterPatterns$f={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$f={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},parseMonthPatterns$f={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$f={narrow:/^[smtofl]/i,short:/^(sø|ma|ti|on|to|fr|lø)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},parseDayPatterns$f={any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},matchDayPeriodPatterns$f={narrow:/^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i},parseDayPeriodPatterns$f={any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgen/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},match$f={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$f,parsePattern:parseOrdinalNumberPattern$f,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$f,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$f,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$f,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$f,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$f,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$f,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$f,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$f,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$f,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$f,defaultParseWidth:"any"})},nb={code:"nb",formatDistance:formatDistance$f,formatLong:formatLong$f,formatRelative:formatRelative$f,localize:localize$f,match:match$f,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale$e={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},formatDistance$e=(e,t,n)=>{let i;const r=formatDistanceLocale$e[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"over "+i:i+" geleden":i},dateFormats$e={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},timeFormats$e={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$e={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$e={date:buildFormatLongFn({formats:dateFormats$e,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$e,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$e,defaultWidth:"full"})},formatRelativeLocale$e={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},formatRelative$e=(e,t,n,i)=>formatRelativeLocale$e[e],eraValues$e={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},quarterValues$e={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},monthValues$e={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},dayValues$e={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},dayPeriodValues$e={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},ordinalNumber$e=(e,t)=>Number(e)+"e",localize$e={ordinalNumber:ordinalNumber$e,era:buildLocalizeFn({values:eraValues$e,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$e,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$e,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$e,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$e,defaultWidth:"wide"})},matchOrdinalNumberPattern$e=/^(\d+)e?/i,parseOrdinalNumberPattern$e=/\d+/i,matchEraPatterns$e={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},parseEraPatterns$e={any:[/^v/,/^n/]},matchQuarterPatterns$e={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},parseQuarterPatterns$e={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$e={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},parseMonthPatterns$e={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},matchDayPatterns$e={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},parseDayPatterns$e={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},matchDayPeriodPatterns$e={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},parseDayPeriodPatterns$e={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},match$e={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$e,parsePattern:parseOrdinalNumberPattern$e,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$e,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$e,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$e,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$e,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$e,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$e,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$e,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$e,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$e,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$e,defaultParseWidth:"any"})},nl={code:"nl",formatDistance:formatDistance$e,formatLong:formatLong$e,formatRelative:formatRelative$e,localize:localize$e,match:match$e,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale$d={lessThanXSeconds:{one:"mindre enn eitt sekund",other:"mindre enn {{count}} sekund"},xSeconds:{one:"eitt sekund",other:"{{count}} sekund"},halfAMinute:"eit halvt minutt",lessThanXMinutes:{one:"mindre enn eitt minutt",other:"mindre enn {{count}} minutt"},xMinutes:{one:"eitt minutt",other:"{{count}} minutt"},aboutXHours:{one:"omtrent ein time",other:"omtrent {{count}} timar"},xHours:{one:"ein time",other:"{{count}} timar"},xDays:{one:"ein dag",other:"{{count}} dagar"},aboutXWeeks:{one:"omtrent ei veke",other:"omtrent {{count}} veker"},xWeeks:{one:"ei veke",other:"{{count}} veker"},aboutXMonths:{one:"omtrent ein månad",other:"omtrent {{count}} månader"},xMonths:{one:"ein månad",other:"{{count}} månader"},aboutXYears:{one:"omtrent eitt år",other:"omtrent {{count}} år"},xYears:{one:"eitt år",other:"{{count}} år"},overXYears:{one:"over eitt år",other:"over {{count}} år"},almostXYears:{one:"nesten eitt år",other:"nesten {{count}} år"}},wordMapping$1=["null","ein","to","tre","fire","fem","seks","sju","åtte","ni","ti","elleve","tolv"],formatDistance$d=(e,t,n)=>{let i;const r=formatDistanceLocale$d[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",t<13?wordMapping$1[t]:String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"om "+i:i+" sidan":i},dateFormats$d={full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},timeFormats$d={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$d={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong$d={date:buildFormatLongFn({formats:dateFormats$d,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$d,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$d,defaultWidth:"full"})},formatRelativeLocale$d={lastWeek:"'førre' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},formatRelative$d=(e,t,n,i)=>formatRelativeLocale$d[e],eraValues$d={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["før Kristus","etter Kristus"]},quarterValues$d={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},monthValues$d={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","mai","juni","juli","aug.","sep.","okt.","nov.","des."],wide:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},dayValues$d={narrow:["S","M","T","O","T","F","L"],short:["su","må","ty","on","to","fr","lau"],abbreviated:["sun","mån","tys","ons","tor","fre","laur"],wide:["sundag","måndag","tysdag","onsdag","torsdag","fredag","laurdag"]},dayPeriodValues$d={narrow:{am:"a",pm:"p",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natta"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natta"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morgonen",afternoon:"på ettermiddagen",evening:"på kvelden",night:"på natta"}},ordinalNumber$d=(e,t)=>Number(e)+".",localize$d={ordinalNumber:ordinalNumber$d,era:buildLocalizeFn({values:eraValues$d,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$d,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$d,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$d,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$d,defaultWidth:"wide"})},matchOrdinalNumberPattern$d=/^(\d+)\.?/i,parseOrdinalNumberPattern$d=/\d+/i,matchEraPatterns$d={narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},parseEraPatterns$d={any:[/^f/i,/^e/i]},matchQuarterPatterns$d={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},parseQuarterPatterns$d={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$d={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},parseMonthPatterns$d={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$d={narrow:/^[smtofl]/i,short:/^(su|må|ty|on|to|fr|la)/i,abbreviated:/^(sun|mån|tys|ons|tor|fre|laur)/i,wide:/^(sundag|måndag|tysdag|onsdag|torsdag|fredag|laurdag)/i},parseDayPatterns$d={any:[/^s/i,/^m/i,/^ty/i,/^o/i,/^to/i,/^f/i,/^l/i]},matchDayPeriodPatterns$d={narrow:/^(midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta))/i},parseDayPeriodPatterns$d={any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},match$d={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$d,parsePattern:parseOrdinalNumberPattern$d,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$d,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$d,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$d,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$d,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$d,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$d,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$d,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$d,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$d,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$d,defaultParseWidth:"any"})},nn={code:"nn",formatDistance:formatDistance$d,formatLong:formatLong$d,formatRelative:formatRelative$d,localize:localize$d,match:match$d,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale$c={lessThanXSeconds:{one:{regular:"mniej niż sekunda",past:"mniej niż sekundę",future:"mniej niż sekundę"},twoFour:"mniej niż {{count}} sekundy",other:"mniej niż {{count}} sekund"},xSeconds:{one:{regular:"sekunda",past:"sekundę",future:"sekundę"},twoFour:"{{count}} sekundy",other:"{{count}} sekund"},halfAMinute:{one:"pół minuty",twoFour:"pół minuty",other:"pół minuty"},lessThanXMinutes:{one:{regular:"mniej niż minuta",past:"mniej niż minutę",future:"mniej niż minutę"},twoFour:"mniej niż {{count}} minuty",other:"mniej niż {{count}} minut"},xMinutes:{one:{regular:"minuta",past:"minutę",future:"minutę"},twoFour:"{{count}} minuty",other:"{{count}} minut"},aboutXHours:{one:{regular:"około godziny",past:"około godziny",future:"około godzinę"},twoFour:"około {{count}} godziny",other:"około {{count}} godzin"},xHours:{one:{regular:"godzina",past:"godzinę",future:"godzinę"},twoFour:"{{count}} godziny",other:"{{count}} godzin"},xDays:{one:{regular:"dzień",past:"dzień",future:"1 dzień"},twoFour:"{{count}} dni",other:"{{count}} dni"},aboutXWeeks:{one:"około tygodnia",twoFour:"około {{count}} tygodni",other:"około {{count}} tygodni"},xWeeks:{one:"tydzień",twoFour:"{{count}} tygodnie",other:"{{count}} tygodni"},aboutXMonths:{one:"około miesiąc",twoFour:"około {{count}} miesiące",other:"około {{count}} miesięcy"},xMonths:{one:"miesiąc",twoFour:"{{count}} miesiące",other:"{{count}} miesięcy"},aboutXYears:{one:"około rok",twoFour:"około {{count}} lata",other:"około {{count}} lat"},xYears:{one:"rok",twoFour:"{{count}} lata",other:"{{count}} lat"},overXYears:{one:"ponad rok",twoFour:"ponad {{count}} lata",other:"ponad {{count}} lat"},almostXYears:{one:"prawie rok",twoFour:"prawie {{count}} lata",other:"prawie {{count}} lat"}};function declensionGroup$1(e,t){if(t===1)return e.one;const n=t%100;if(n<=20&&n>10)return e.other;const i=n%10;return i>=2&&i<=4?e.twoFour:e.other}function declension$3(e,t,n){const i=declensionGroup$1(e,t);return(typeof i=="string"?i:i[n]).replace("{{count}}",String(t))}const formatDistance$c=(e,t,n)=>{const i=formatDistanceLocale$c[e];return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"za "+declension$3(i,t,"future"):declension$3(i,t,"past")+" temu":declension$3(i,t,"regular")},dateFormats$c={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},timeFormats$c={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$c={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$c={date:buildFormatLongFn({formats:dateFormats$c,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$c,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$c,defaultWidth:"full"})},adjectivesLastWeek={masculine:"ostatni",feminine:"ostatnia"},adjectivesThisWeek={masculine:"ten",feminine:"ta"},adjectivesNextWeek={masculine:"następny",feminine:"następna"},dayGrammaticalGender={0:"feminine",1:"masculine",2:"masculine",3:"feminine",4:"masculine",5:"masculine",6:"feminine"};function dayAndTimeWithAdjective(e,t,n,i){let r;if(isSameWeek(t,n,i))r=adjectivesThisWeek;else if(e==="lastWeek")r=adjectivesLastWeek;else if(e==="nextWeek")r=adjectivesNextWeek;else throw new Error(`Cannot determine adjectives for token ${e}`);const a=t.getDay(),o=dayGrammaticalGender[a];return`'${r[o]}' eeee 'o' p`}const formatRelativeLocale$c={lastWeek:dayAndTimeWithAdjective,yesterday:"'wczoraj o' p",today:"'dzisiaj o' p",tomorrow:"'jutro o' p",nextWeek:dayAndTimeWithAdjective,other:"P"},formatRelative$c=(e,t,n,i)=>{const r=formatRelativeLocale$c[e];return typeof r=="function"?r(e,t,n,i):r},eraValues$c={narrow:["p.n.e.","n.e."],abbreviated:["p.n.e.","n.e."],wide:["przed naszą erą","naszej ery"]},quarterValues$c={narrow:["1","2","3","4"],abbreviated:["I kw.","II kw.","III kw.","IV kw."],wide:["I kwartał","II kwartał","III kwartał","IV kwartał"]},monthValues$c={narrow:["S","L","M","K","M","C","L","S","W","P","L","G"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},monthFormattingValues={narrow:["s","l","m","k","m","c","l","s","w","p","l","g"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","września","października","listopada","grudnia"]},dayValues$c={narrow:["N","P","W","Ś","C","P","S"],short:["nie","pon","wto","śro","czw","pią","sob"],abbreviated:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],wide:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},dayFormattingValues={narrow:["n","p","w","ś","c","p","s"],short:["nie","pon","wto","śro","czw","pią","sob"],abbreviated:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],wide:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},dayPeriodValues$c={narrow:{am:"a",pm:"p",midnight:"półn.",noon:"poł",morning:"rano",afternoon:"popoł.",evening:"wiecz.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"północ",noon:"południe",morning:"rano",afternoon:"popołudnie",evening:"wieczór",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"północ",noon:"południe",morning:"rano",afternoon:"popołudnie",evening:"wieczór",night:"noc"}},dayPeriodFormattingValues={narrow:{am:"a",pm:"p",midnight:"o półn.",noon:"w poł.",morning:"rano",afternoon:"po poł.",evening:"wiecz.",night:"w nocy"},abbreviated:{am:"AM",pm:"PM",midnight:"o północy",noon:"w południe",morning:"rano",afternoon:"po południu",evening:"wieczorem",night:"w nocy"},wide:{am:"AM",pm:"PM",midnight:"o północy",noon:"w południe",morning:"rano",afternoon:"po południu",evening:"wieczorem",night:"w nocy"}},ordinalNumber$c=(e,t)=>String(e),localize$c={ordinalNumber:ordinalNumber$c,era:buildLocalizeFn({values:eraValues$c,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$c,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$c,defaultWidth:"wide",formattingValues:monthFormattingValues,defaultFormattingWidth:"wide"}),day:buildLocalizeFn({values:dayValues$c,defaultWidth:"wide",formattingValues:dayFormattingValues,defaultFormattingWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$c,defaultWidth:"wide",formattingValues:dayPeriodFormattingValues,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$c=/^(\d+)?/i,parseOrdinalNumberPattern$c=/\d+/i,matchEraPatterns$c={narrow:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,abbreviated:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,wide:/^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i},parseEraPatterns$c={any:[/^p/i,/^n/i]},matchQuarterPatterns$c={narrow:/^[1234]/i,abbreviated:/^(I|II|III|IV)\s*kw\.?/i,wide:/^(I|II|III|IV)\s*kwarta(ł|l)/i},parseQuarterPatterns$c={narrow:[/1/i,/2/i,/3/i,/4/i],any:[/^I kw/i,/^II kw/i,/^III kw/i,/^IV kw/i]},matchMonthPatterns$c={narrow:/^[slmkcwpg]/i,abbreviated:/^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i,wide:/^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i},parseMonthPatterns$c={narrow:[/^s/i,/^l/i,/^m/i,/^k/i,/^m/i,/^c/i,/^l/i,/^s/i,/^w/i,/^p/i,/^l/i,/^g/i],any:[/^st/i,/^lu/i,/^mar/i,/^k/i,/^maj/i,/^c/i,/^lip/i,/^si/i,/^w/i,/^p/i,/^lis/i,/^g/i]},matchDayPatterns$c={narrow:/^[npwścs]/i,short:/^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i,abbreviated:/^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i,wide:/^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i},parseDayPatterns$c={narrow:[/^n/i,/^p/i,/^w/i,/^ś/i,/^c/i,/^p/i,/^s/i],abbreviated:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pt/i,/^so/i],any:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pi/i,/^so/i]},matchDayPeriodPatterns$c={narrow:/^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i,any:/^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i},parseDayPeriodPatterns$c={narrow:{am:/^a$/i,pm:/^p$/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i},any:{am:/^am/i,pm:/^pm/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i}},match$c={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$c,parsePattern:parseOrdinalNumberPattern$c,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$c,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$c,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$c,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$c,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$c,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$c,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$c,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$c,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$c,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$c,defaultParseWidth:"any"})},pl={code:"pl",formatDistance:formatDistance$c,formatLong:formatLong$c,formatRelative:formatRelative$c,localize:localize$c,match:match$c,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale$b={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"aproximadamente 1 semana",other:"aproximadamente {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"aproximadamente 1 mês",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},formatDistance$b=(e,t,n)=>{let i;const r=formatDistanceLocale$b[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"daqui a "+i:"há "+i:i},dateFormats$b={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},timeFormats$b={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$b={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$b={date:buildFormatLongFn({formats:dateFormats$b,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$b,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$b,defaultWidth:"full"})},formatRelativeLocale$b={lastWeek:e=>{const t=e.getDay();return"'"+(t===0||t===6?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},formatRelative$b=(e,t,n,i)=>{const r=formatRelativeLocale$b[e];return typeof r=="function"?r(t):r},eraValues$b={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},quarterValues$b={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},monthValues$b={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},dayValues$b={narrow:["d","s","t","q","q","s","s"],short:["dom","seg","ter","qua","qui","sex","sáb"],abbreviated:["dom","seg","ter","qua","qui","sex","sáb"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},dayPeriodValues$b={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"}},formattingDayPeriodValues$b={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"}},ordinalNumber$b=(e,t)=>Number(e)+"º",localize$b={ordinalNumber:ordinalNumber$b,era:buildLocalizeFn({values:eraValues$b,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$b,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$b,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$b,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$b,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$b,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$b=/^(\d+)(º|ª)?/i,parseOrdinalNumberPattern$b=/\d+/i,matchEraPatterns$b={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},parseEraPatterns$b={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},matchQuarterPatterns$b={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},parseQuarterPatterns$b={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$b={narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},parseMonthPatterns$b={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$b={narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},parseDayPatterns$b={narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},matchDayPeriodPatterns$b={narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},parseDayPeriodPatterns$b={any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},match$b={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$b,parsePattern:parseOrdinalNumberPattern$b,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$b,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$b,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$b,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$b,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$b,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$b,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$b,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$b,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$b,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$b,defaultParseWidth:"any"})},pt={code:"pt",formatDistance:formatDistance$b,formatLong:formatLong$b,formatRelative:formatRelative$b,localize:localize$b,match:match$b,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale$a={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},formatDistance$a=(e,t,n)=>{let i;const r=formatDistanceLocale$a[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"em "+i:"há "+i:i},dateFormats$a={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},timeFormats$a={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$a={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$a={date:buildFormatLongFn({formats:dateFormats$a,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$a,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$a,defaultWidth:"full"})},formatRelativeLocale$a={lastWeek:e=>{const t=e.getDay();return"'"+(t===0||t===6?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},formatRelative$a=(e,t,n,i)=>{const r=formatRelativeLocale$a[e];return typeof r=="function"?r(t):r},eraValues$a={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},quarterValues$a={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},monthValues$a={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},dayValues$a={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},dayPeriodValues$a={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},formattingDayPeriodValues$a={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},ordinalNumber$a=(e,t)=>{const n=Number(e);return(t==null?void 0:t.unit)==="week"?n+"ª":n+"º"},localize$a={ordinalNumber:ordinalNumber$a,era:buildLocalizeFn({values:eraValues$a,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$a,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$a,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$a,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$a,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$a,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$a=/^(\d+)[ºªo]?/i,parseOrdinalNumberPattern$a=/\d+/i,matchEraPatterns$a={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},parseEraPatterns$a={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},matchQuarterPatterns$a={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},parseQuarterPatterns$a={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$a={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},parseMonthPatterns$a={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},matchDayPatterns$a={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},parseDayPatterns$a={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},matchDayPeriodPatterns$a={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},parseDayPeriodPatterns$a={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},match$a={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$a,parsePattern:parseOrdinalNumberPattern$a,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$a,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$a,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$a,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$a,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$a,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$a,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$a,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$a,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$a,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$a,defaultParseWidth:"any"})},ptBR={code:"pt-BR",formatDistance:formatDistance$a,formatLong:formatLong$a,formatRelative:formatRelative$a,localize:localize$a,match:match$a,options:{weekStartsOn:0,firstWeekContainsDate:1}},formatDistanceLocale$9={lessThanXSeconds:{one:"mai puțin de o secundă",other:"mai puțin de {{count}} secunde"},xSeconds:{one:"1 secundă",other:"{{count}} secunde"},halfAMinute:"jumătate de minut",lessThanXMinutes:{one:"mai puțin de un minut",other:"mai puțin de {{count}} minute"},xMinutes:{one:"1 minut",other:"{{count}} minute"},aboutXHours:{one:"circa 1 oră",other:"circa {{count}} ore"},xHours:{one:"1 oră",other:"{{count}} ore"},xDays:{one:"1 zi",other:"{{count}} zile"},aboutXWeeks:{one:"circa o săptămână",other:"circa {{count}} săptămâni"},xWeeks:{one:"1 săptămână",other:"{{count}} săptămâni"},aboutXMonths:{one:"circa 1 lună",other:"circa {{count}} luni"},xMonths:{one:"1 lună",other:"{{count}} luni"},aboutXYears:{one:"circa 1 an",other:"circa {{count}} ani"},xYears:{one:"1 an",other:"{{count}} ani"},overXYears:{one:"peste 1 an",other:"peste {{count}} ani"},almostXYears:{one:"aproape 1 an",other:"aproape {{count}} ani"}},formatDistance$9=(e,t,n)=>{let i;const r=formatDistanceLocale$9[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"în "+i:i+" în urmă":i},dateFormats$9={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd.MM.yyyy"},timeFormats$9={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$9={full:"{{date}} 'la' {{time}}",long:"{{date}} 'la' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$9={date:buildFormatLongFn({formats:dateFormats$9,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$9,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$9,defaultWidth:"full"})},formatRelativeLocale$9={lastWeek:"eeee 'trecută la' p",yesterday:"'ieri la' p",today:"'astăzi la' p",tomorrow:"'mâine la' p",nextWeek:"eeee 'viitoare la' p",other:"P"},formatRelative$9=(e,t,n,i)=>formatRelativeLocale$9[e],eraValues$9={narrow:["Î","D"],abbreviated:["Î.d.C.","D.C."],wide:["Înainte de Cristos","După Cristos"]},quarterValues$9={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["primul trimestru","al doilea trimestru","al treilea trimestru","al patrulea trimestru"]},monthValues$9={narrow:["I","F","M","A","M","I","I","A","S","O","N","D"],abbreviated:["ian","feb","mar","apr","mai","iun","iul","aug","sep","oct","noi","dec"],wide:["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"]},dayValues$9={narrow:["d","l","m","m","j","v","s"],short:["du","lu","ma","mi","jo","vi","sâ"],abbreviated:["dum","lun","mar","mie","joi","vin","sâm"],wide:["duminică","luni","marți","miercuri","joi","vineri","sâmbătă"]},dayPeriodValues$9={narrow:{am:"a",pm:"p",midnight:"mn",noon:"ami",morning:"dim",afternoon:"da",evening:"s",night:"n"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"}},formattingDayPeriodValues$9={narrow:{am:"a",pm:"p",midnight:"mn",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"}},ordinalNumber$9=(e,t)=>String(e),localize$9={ordinalNumber:ordinalNumber$9,era:buildLocalizeFn({values:eraValues$9,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$9,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$9,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$9,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$9,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$9,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$9=/^(\d+)?/i,parseOrdinalNumberPattern$9=/\d+/i,matchEraPatterns$9={narrow:/^(Î|D)/i,abbreviated:/^(Î\.?\s?d\.?\s?C\.?|Î\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i,wide:/^(Înainte de Cristos|Înaintea erei noastre|După Cristos|Era noastră)/i},parseEraPatterns$9={any:[/^ÎC/i,/^DC/i],wide:[/^(Înainte de Cristos|Înaintea erei noastre)/i,/^(După Cristos|Era noastră)/i]},matchQuarterPatterns$9={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^trimestrul [1234]/i},parseQuarterPatterns$9={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$9={narrow:/^[ifmaasond]/i,abbreviated:/^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i,wide:/^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i},parseMonthPatterns$9={narrow:[/^i/i,/^f/i,/^m/i,/^a/i,/^m/i,/^i/i,/^i/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ia/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^iun/i,/^iul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$9={narrow:/^[dlmjvs]/i,short:/^(d|l|ma|mi|j|v|s)/i,abbreviated:/^(dum|lun|mar|mie|jo|vi|sâ)/i,wide:/^(duminica|luni|marţi|miercuri|joi|vineri|sâmbătă)/i},parseDayPatterns$9={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^mi/i,/^j/i,/^v/i,/^s/i]},matchDayPeriodPatterns$9={narrow:/^(a|p|mn|a|(dimineaţa|după-amiaza|seara|noaptea))/i,any:/^([ap]\.?\s?m\.?|miezul nopții|amiaza|(dimineaţa|după-amiaza|seara|noaptea))/i},parseDayPeriodPatterns$9={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/amiaza/i,morning:/dimineaţa/i,afternoon:/după-amiaza/i,evening:/seara/i,night:/noaptea/i}},match$9={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$9,parsePattern:parseOrdinalNumberPattern$9,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$9,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$9,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$9,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$9,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$9,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$9,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$9,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$9,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$9,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$9,defaultParseWidth:"any"})},ro={code:"ro",formatDistance:formatDistance$9,formatLong:formatLong$9,formatRelative:formatRelative$9,localize:localize$9,match:match$9,options:{weekStartsOn:1,firstWeekContainsDate:1}};function declension$2(e,t){if(e.one!==void 0&&t===1)return e.one;const n=t%10,i=t%100;return n===1&&i!==11?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(i<10||i>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function buildLocalizeTokenFn$1(e){return(t,n)=>n!=null&&n.addSuffix?n.comparison&&n.comparison>0?e.future?declension$2(e.future,t):"через "+declension$2(e.regular,t):e.past?declension$2(e.past,t):declension$2(e.regular,t)+" назад":declension$2(e.regular,t)}const formatDistanceLocale$8={lessThanXSeconds:buildLocalizeTokenFn$1({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:buildLocalizeTokenFn$1({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:(e,t)=>t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"через полминуты":"полминуты назад":"полминуты",lessThanXMinutes:buildLocalizeTokenFn$1({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:buildLocalizeTokenFn$1({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:buildLocalizeTokenFn$1({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:buildLocalizeTokenFn$1({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:buildLocalizeTokenFn$1({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:buildLocalizeTokenFn$1({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:buildLocalizeTokenFn$1({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:buildLocalizeTokenFn$1({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:buildLocalizeTokenFn$1({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:buildLocalizeTokenFn$1({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:buildLocalizeTokenFn$1({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:buildLocalizeTokenFn$1({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:buildLocalizeTokenFn$1({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},formatDistance$8=(e,t,n)=>formatDistanceLocale$8[e](t,n),dateFormats$8={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},timeFormats$8={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},dateTimeFormats$8={any:"{{date}}, {{time}}"},formatLong$8={date:buildFormatLongFn({formats:dateFormats$8,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$8,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$8,defaultWidth:"any"})},accusativeWeekdays$2=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function lastWeek$2(e){const t=accusativeWeekdays$2[e];switch(e){case 0:return"'в прошлое "+t+" в' p";case 1:case 2:case 4:return"'в прошлый "+t+" в' p";case 3:case 5:case 6:return"'в прошлую "+t+" в' p"}}function thisWeek$2(e){const t=accusativeWeekdays$2[e];return e===2?"'во "+t+" в' p":"'в "+t+" в' p"}function nextWeek$2(e){const t=accusativeWeekdays$2[e];switch(e){case 0:return"'в следующее "+t+" в' p";case 1:case 2:case 4:return"'в следующий "+t+" в' p";case 3:case 5:case 6:return"'в следующую "+t+" в' p"}}const formatRelativeLocale$8={lastWeek:(e,t,n)=>{const i=e.getDay();return isSameWeek(e,t,n)?thisWeek$2(i):lastWeek$2(i)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:(e,t,n)=>{const i=e.getDay();return isSameWeek(e,t,n)?thisWeek$2(i):nextWeek$2(i)},other:"P"},formatRelative$8=(e,t,n,i)=>{const r=formatRelativeLocale$8[e];return typeof r=="function"?r(t,n,i):r},eraValues$8={narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},quarterValues$8={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},monthValues$8={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},formattingMonthValues$3={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},dayValues$8={narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},dayPeriodValues$8={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},formattingDayPeriodValues$8={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},ordinalNumber$8=(e,t)=>{const n=Number(e),i=t==null?void 0:t.unit;let r;return i==="date"?r="-е":i==="week"||i==="minute"||i==="second"?r="-я":r="-й",n+r},localize$8={ordinalNumber:ordinalNumber$8,era:buildLocalizeFn({values:eraValues$8,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$8,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$8,defaultWidth:"wide",formattingValues:formattingMonthValues$3,defaultFormattingWidth:"wide"}),day:buildLocalizeFn({values:dayValues$8,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$8,defaultWidth:"any",formattingValues:formattingDayPeriodValues$8,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$8=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,parseOrdinalNumberPattern$8=/\d+/i,matchEraPatterns$8={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},parseEraPatterns$8={any:[/^д/i,/^н/i]},matchQuarterPatterns$8={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},parseQuarterPatterns$8={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$8={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},parseMonthPatterns$8={narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},matchDayPatterns$8={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},parseDayPatterns$8={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},matchDayPeriodPatterns$8={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},parseDayPeriodPatterns$8={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},match$8={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$8,parsePattern:parseOrdinalNumberPattern$8,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$8,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$8,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$8,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$8,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$8,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$8,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$8,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$8,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$8,defaultMatchWidth:"wide",parsePatterns:parseDayPeriodPatterns$8,defaultParseWidth:"any"})},ru={code:"ru",formatDistance:formatDistance$8,formatLong:formatLong$8,formatRelative:formatRelative$8,localize:localize$8,match:match$8,options:{weekStartsOn:1,firstWeekContainsDate:1}};function declensionGroup(e,t){return t===1&&e.one?e.one:t>=2&&t<=4&&e.twoFour?e.twoFour:e.other}function declension$1(e,t,n){return declensionGroup(e,t)[n].replace("{{count}}",String(t))}function extractPreposition(e){return["lessThan","about","over","almost"].filter(function(n){return!!e.match(new RegExp("^"+n))})[0]}function prefixPreposition(e){let t="";return e==="almost"&&(t="takmer"),e==="about"&&(t="približne"),t.length>0?t+" ":""}function suffixPreposition(e){let t="";return e==="lessThan"&&(t="menej než"),e==="over"&&(t="viac než"),t.length>0?t+" ":""}function lowercaseFirstLetter(e){return e.charAt(0).toLowerCase()+e.slice(1)}const formatDistanceLocale$7={xSeconds:{one:{present:"sekunda",past:"sekundou",future:"sekundu"},twoFour:{present:"{{count}} sekundy",past:"{{count}} sekundami",future:"{{count}} sekundy"},other:{present:"{{count}} sekúnd",past:"{{count}} sekundami",future:"{{count}} sekúnd"}},halfAMinute:{other:{present:"pol minúty",past:"pol minútou",future:"pol minúty"}},xMinutes:{one:{present:"minúta",past:"minútou",future:"minútu"},twoFour:{present:"{{count}} minúty",past:"{{count}} minútami",future:"{{count}} minúty"},other:{present:"{{count}} minút",past:"{{count}} minútami",future:"{{count}} minút"}},xHours:{one:{present:"hodina",past:"hodinou",future:"hodinu"},twoFour:{present:"{{count}} hodiny",past:"{{count}} hodinami",future:"{{count}} hodiny"},other:{present:"{{count}} hodín",past:"{{count}} hodinami",future:"{{count}} hodín"}},xDays:{one:{present:"deň",past:"dňom",future:"deň"},twoFour:{present:"{{count}} dni",past:"{{count}} dňami",future:"{{count}} dni"},other:{present:"{{count}} dní",past:"{{count}} dňami",future:"{{count}} dní"}},xWeeks:{one:{present:"týždeň",past:"týždňom",future:"týždeň"},twoFour:{present:"{{count}} týždne",past:"{{count}} týždňami",future:"{{count}} týždne"},other:{present:"{{count}} týždňov",past:"{{count}} týždňami",future:"{{count}} týždňov"}},xMonths:{one:{present:"mesiac",past:"mesiacom",future:"mesiac"},twoFour:{present:"{{count}} mesiace",past:"{{count}} mesiacmi",future:"{{count}} mesiace"},other:{present:"{{count}} mesiacov",past:"{{count}} mesiacmi",future:"{{count}} mesiacov"}},xYears:{one:{present:"rok",past:"rokom",future:"rok"},twoFour:{present:"{{count}} roky",past:"{{count}} rokmi",future:"{{count}} roky"},other:{present:"{{count}} rokov",past:"{{count}} rokmi",future:"{{count}} rokov"}}},formatDistance$7=(e,t,n)=>{const i=extractPreposition(e)||"",r=lowercaseFirstLetter(e.substring(i.length)),a=formatDistanceLocale$7[r];return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?prefixPreposition(i)+"o "+suffixPreposition(i)+declension$1(a,t,"future"):prefixPreposition(i)+"pred "+suffixPreposition(i)+declension$1(a,t,"past"):prefixPreposition(i)+suffixPreposition(i)+declension$1(a,t,"present")},dateFormats$7={full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. M. y",short:"d. M. y"},timeFormats$7={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},dateTimeFormats$7={full:"{{date}}, {{time}}",long:"{{date}}, {{time}}",medium:"{{date}}, {{time}}",short:"{{date}} {{time}}"},formatLong$7={date:buildFormatLongFn({formats:dateFormats$7,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$7,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$7,defaultWidth:"full"})},accusativeWeekdays$1=["nedeľu","pondelok","utorok","stredu","štvrtok","piatok","sobotu"];function lastWeek$1(e){const t=accusativeWeekdays$1[e];switch(e){case 0:case 3:case 6:return"'minulú "+t+" o' p";default:return"'minulý' eeee 'o' p"}}function thisWeek$1(e){const t=accusativeWeekdays$1[e];return e===4?"'vo' eeee 'o' p":"'v "+t+" o' p"}function nextWeek$1(e){const t=accusativeWeekdays$1[e];switch(e){case 0:case 4:case 6:return"'budúcu "+t+" o' p";default:return"'budúci' eeee 'o' p"}}const formatRelativeLocale$7={lastWeek:(e,t,n)=>{const i=e.getDay();return isSameWeek(e,t,n)?thisWeek$1(i):lastWeek$1(i)},yesterday:"'včera o' p",today:"'dnes o' p",tomorrow:"'zajtra o' p",nextWeek:(e,t,n)=>{const i=e.getDay();return isSameWeek(e,t,n)?thisWeek$1(i):nextWeek$1(i)},other:"P"},formatRelative$7=(e,t,n,i)=>{const r=formatRelativeLocale$7[e];return typeof r=="function"?r(t,n,i):r},eraValues$7={narrow:["pred Kr.","po Kr."],abbreviated:["pred Kr.","po Kr."],wide:["pred Kristom","po Kristovi"]},quarterValues$7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. štvrťrok","2. štvrťrok","3. štvrťrok","4. štvrťrok"]},monthValues$7={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","feb","mar","apr","máj","jún","júl","aug","sep","okt","nov","dec"],wide:["január","február","marec","apríl","máj","jún","júl","august","september","október","november","december"]},formattingMonthValues$2={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","feb","mar","apr","máj","jún","júl","aug","sep","okt","nov","dec"],wide:["januára","februára","marca","apríla","mája","júna","júla","augusta","septembra","októbra","novembra","decembra"]},dayValues$7={narrow:["n","p","u","s","š","p","s"],short:["ne","po","ut","st","št","pi","so"],abbreviated:["ne","po","ut","st","št","pi","so"],wide:["nedeľa","pondelok","utorok","streda","štvrtok","piatok","sobota"]},dayPeriodValues$7={narrow:{am:"AM",pm:"PM",midnight:"poln.",noon:"pol.",morning:"ráno",afternoon:"pop.",evening:"več.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"poln.",noon:"pol.",morning:"ráno",afternoon:"popol.",evening:"večer",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"polnoc",noon:"poludnie",morning:"ráno",afternoon:"popoludnie",evening:"večer",night:"noc"}},formattingDayPeriodValues$7={narrow:{am:"AM",pm:"PM",midnight:"o poln.",noon:"nap.",morning:"ráno",afternoon:"pop.",evening:"več.",night:"v n."},abbreviated:{am:"AM",pm:"PM",midnight:"o poln.",noon:"napol.",morning:"ráno",afternoon:"popol.",evening:"večer",night:"v noci"},wide:{am:"AM",pm:"PM",midnight:"o polnoci",noon:"napoludnie",morning:"ráno",afternoon:"popoludní",evening:"večer",night:"v noci"}},ordinalNumber$7=(e,t)=>Number(e)+".",localize$7={ordinalNumber:ordinalNumber$7,era:buildLocalizeFn({values:eraValues$7,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$7,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$7,defaultWidth:"wide",formattingValues:formattingMonthValues$2,defaultFormattingWidth:"wide"}),day:buildLocalizeFn({values:dayValues$7,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$7,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$7,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$7=/^(\d+)\.?/i,parseOrdinalNumberPattern$7=/\d+/i,matchEraPatterns$7={narrow:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i},parseEraPatterns$7={any:[/^pr/i,/^(po|n)/i]},matchQuarterPatterns$7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\. [šs]tvr[ťt]rok/i},parseQuarterPatterns$7={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$7={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i,wide:/^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/i},parseMonthPatterns$7={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^m[áa]j/i,/^j[úu]n/i,/^j[úu]l/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$7={narrow:/^[npusšp]/i,short:/^(ne|po|ut|st|št|pi|so)/i,abbreviated:/^(ne|po|ut|st|št|pi|so)/i,wide:/^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i},parseDayPatterns$7={narrow:[/^n/i,/^p/i,/^u/i,/^s/i,/^š/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^u/i,/^st/i,/^(št|stv)/i,/^pi/i,/^so/i]},matchDayPeriodPatterns$7={narrow:/^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i,abbreviated:/^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i,any:/^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i},parseDayPeriodPatterns$7={any:{am:/^am/i,pm:/^pm/i,midnight:/poln/i,noon:/^(nap|(na)?pol(\.|u))/i,morning:/^r[áa]no/i,afternoon:/^pop/i,evening:/^ve[čc]/i,night:/^(noc|v n\.)/i}},match$7={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$7,parsePattern:parseOrdinalNumberPattern$7,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$7,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$7,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$7,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$7,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$7,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$7,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$7,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$7,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$7,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$7,defaultParseWidth:"any"})},sk={code:"sk",formatDistance:formatDistance$7,formatLong:formatLong$7,formatRelative:formatRelative$7,localize:localize$7,match:match$7,options:{weekStartsOn:1,firstWeekContainsDate:4}};function isPluralType(e){return e.one!==void 0}const formatDistanceLocale$6={lessThanXSeconds:{present:{one:"manj kot {{count}} sekunda",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"},past:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundama",few:"manj kot {{count}} sekundami",other:"manj kot {{count}} sekundami"},future:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"}},xSeconds:{present:{one:"{{count}} sekunda",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"},past:{one:"{{count}} sekundo",two:"{{count}} sekundama",few:"{{count}} sekundami",other:"{{count}} sekundami"},future:{one:"{{count}} sekundo",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"}},halfAMinute:"pol minute",lessThanXMinutes:{present:{one:"manj kot {{count}} minuta",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"},past:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minutama",few:"manj kot {{count}} minutami",other:"manj kot {{count}} minutami"},future:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"}},xMinutes:{present:{one:"{{count}} minuta",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"},past:{one:"{{count}} minuto",two:"{{count}} minutama",few:"{{count}} minutami",other:"{{count}} minutami"},future:{one:"{{count}} minuto",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"}},aboutXHours:{present:{one:"približno {{count}} ura",two:"približno {{count}} uri",few:"približno {{count}} ure",other:"približno {{count}} ur"},past:{one:"približno {{count}} uro",two:"približno {{count}} urama",few:"približno {{count}} urami",other:"približno {{count}} urami"},future:{one:"približno {{count}} uro",two:"približno {{count}} uri",few:"približno {{count}} ure",other:"približno {{count}} ur"}},xHours:{present:{one:"{{count}} ura",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"},past:{one:"{{count}} uro",two:"{{count}} urama",few:"{{count}} urami",other:"{{count}} urami"},future:{one:"{{count}} uro",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"}},xDays:{present:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"},past:{one:"{{count}} dnem",two:"{{count}} dnevoma",few:"{{count}} dnevi",other:"{{count}} dnevi"},future:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"}},aboutXWeeks:{one:"približno {{count}} teden",two:"približno {{count}} tedna",few:"približno {{count}} tedne",other:"približno {{count}} tednov"},xWeeks:{one:"{{count}} teden",two:"{{count}} tedna",few:"{{count}} tedne",other:"{{count}} tednov"},aboutXMonths:{present:{one:"približno {{count}} mesec",two:"približno {{count}} meseca",few:"približno {{count}} mesece",other:"približno {{count}} mesecev"},past:{one:"približno {{count}} mesecem",two:"približno {{count}} mesecema",few:"približno {{count}} meseci",other:"približno {{count}} meseci"},future:{one:"približno {{count}} mesec",two:"približno {{count}} meseca",few:"približno {{count}} mesece",other:"približno {{count}} mesecev"}},xMonths:{present:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} meseci",other:"{{count}} mesecev"},past:{one:"{{count}} mesecem",two:"{{count}} mesecema",few:"{{count}} meseci",other:"{{count}} meseci"},future:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} mesece",other:"{{count}} mesecev"}},aboutXYears:{present:{one:"približno {{count}} leto",two:"približno {{count}} leti",few:"približno {{count}} leta",other:"približno {{count}} let"},past:{one:"približno {{count}} letom",two:"približno {{count}} letoma",few:"približno {{count}} leti",other:"približno {{count}} leti"},future:{one:"približno {{count}} leto",two:"približno {{count}} leti",few:"približno {{count}} leta",other:"približno {{count}} let"}},xYears:{present:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"},past:{one:"{{count}} letom",two:"{{count}} letoma",few:"{{count}} leti",other:"{{count}} leti"},future:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"}},overXYears:{present:{one:"več kot {{count}} leto",two:"več kot {{count}} leti",few:"več kot {{count}} leta",other:"več kot {{count}} let"},past:{one:"več kot {{count}} letom",two:"več kot {{count}} letoma",few:"več kot {{count}} leti",other:"več kot {{count}} leti"},future:{one:"več kot {{count}} leto",two:"več kot {{count}} leti",few:"več kot {{count}} leta",other:"več kot {{count}} let"}},almostXYears:{present:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"},past:{one:"skoraj {{count}} letom",two:"skoraj {{count}} letoma",few:"skoraj {{count}} leti",other:"skoraj {{count}} leti"},future:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"}}};function getFormFromCount(e){switch(e%100){case 1:return"one";case 2:return"two";case 3:case 4:return"few";default:return"other"}}const formatDistance$6=(e,t,n)=>{let i="",r="present";n!=null&&n.addSuffix&&(n.comparison&&n.comparison>0?(r="future",i="čez "):(r="past",i="pred "));const a=formatDistanceLocale$6[e];if(typeof a=="string")i+=a;else{const o=getFormFromCount(t);isPluralType(a)?i+=a[o].replace("{{count}}",String(t)):i+=a[r][o].replace("{{count}}",String(t))}return i},dateFormats$6={full:"EEEE, dd. MMMM y",long:"dd. MMMM y",medium:"d. MMM y",short:"d. MM. yy"},timeFormats$6={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$6={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong$6={date:buildFormatLongFn({formats:dateFormats$6,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$6,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$6,defaultWidth:"full"})},formatRelativeLocale$6={lastWeek:e=>{switch(e.getDay()){case 0:return"'prejšnjo nedeljo ob' p";case 3:return"'prejšnjo sredo ob' p";case 6:return"'prejšnjo soboto ob' p";default:return"'prejšnji' EEEE 'ob' p"}},yesterday:"'včeraj ob' p",today:"'danes ob' p",tomorrow:"'jutri ob' p",nextWeek:e=>{switch(e.getDay()){case 0:return"'naslednjo nedeljo ob' p";case 3:return"'naslednjo sredo ob' p";case 6:return"'naslednjo soboto ob' p";default:return"'naslednji' EEEE 'ob' p"}},other:"P"},formatRelative$6=(e,t,n,i)=>{const r=formatRelativeLocale$6[e];return typeof r=="function"?r(t):r},eraValues$6={narrow:["pr. n. št.","po n. št."],abbreviated:["pr. n. št.","po n. št."],wide:["pred našim štetjem","po našem štetju"]},quarterValues$6={narrow:["1","2","3","4"],abbreviated:["1. čet.","2. čet.","3. čet.","4. čet."],wide:["1. četrtletje","2. četrtletje","3. četrtletje","4. četrtletje"]},monthValues$6={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","avg.","sep.","okt.","nov.","dec."],wide:["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december"]},dayValues$6={narrow:["n","p","t","s","č","p","s"],short:["ned.","pon.","tor.","sre.","čet.","pet.","sob."],abbreviated:["ned.","pon.","tor.","sre.","čet.","pet.","sob."],wide:["nedelja","ponedeljek","torek","sreda","četrtek","petek","sobota"]},dayPeriodValues$6={narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"j",afternoon:"p",evening:"v",night:"n"},abbreviated:{am:"dop.",pm:"pop.",midnight:"poln.",noon:"pold.",morning:"jut.",afternoon:"pop.",evening:"več.",night:"noč"},wide:{am:"dop.",pm:"pop.",midnight:"polnoč",noon:"poldne",morning:"jutro",afternoon:"popoldne",evening:"večer",night:"noč"}},formattingDayPeriodValues$6={narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"zj",afternoon:"p",evening:"zv",night:"po"},abbreviated:{am:"dop.",pm:"pop.",midnight:"opoln.",noon:"opold.",morning:"zjut.",afternoon:"pop.",evening:"zveč.",night:"ponoči"},wide:{am:"dop.",pm:"pop.",midnight:"opolnoči",noon:"opoldne",morning:"zjutraj",afternoon:"popoldan",evening:"zvečer",night:"ponoči"}},ordinalNumber$6=(e,t)=>Number(e)+".",localize$6={ordinalNumber:ordinalNumber$6,era:buildLocalizeFn({values:eraValues$6,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$6,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$6,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$6,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$6,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$6,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$6=/^(\d+)\./i,parseOrdinalNumberPattern$6=/\d+/i,matchEraPatterns$6={abbreviated:/^(pr\. n\. št\.|po n\. št\.)/i,wide:/^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i},parseEraPatterns$6={any:[/^pr/i,/^(po|na[sš]em)/i]},matchQuarterPatterns$6={narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?[čc]et\.?/i,wide:/^[1234]\. [čc]etrtletje/i},parseQuarterPatterns$6={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$6={narrow:/^[jfmasond]/i,abbreviated:/^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,wide:/^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i},parseMonthPatterns$6={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],abbreviated:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i],wide:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$6={narrow:/^[nptsčc]/i,short:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,abbreviated:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,wide:/^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i},parseDayPatterns$6={narrow:[/^n/i,/^p/i,/^t/i,/^s/i,/^[cč]/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^t/i,/^sr/i,/^[cč]/i,/^pe/i,/^so/i]},matchDayPeriodPatterns$6={narrow:/^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,any:/^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i},parseDayPeriodPatterns$6={narrow:{am:/^d/i,pm:/^p/i,midnight:/^24/i,noon:/^12/i,morning:/^(z?j)/i,afternoon:/^p/i,evening:/^(z?v)/i,night:/^(n|po)/i},any:{am:/^dop\./i,pm:/^pop\./i,midnight:/^o?poln/i,noon:/^o?pold/i,morning:/j/i,afternoon:/^pop\./i,evening:/^z?ve/i,night:/(po)?no/i}},match$6={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$6,parsePattern:parseOrdinalNumberPattern$6,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$6,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$6,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$6,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$6,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$6,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$6,defaultParseWidth:"wide"}),day:buildMatchFn({matchPatterns:matchDayPatterns$6,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$6,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$6,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$6,defaultParseWidth:"any"})},sl={code:"sl",formatDistance:formatDistance$6,formatLong:formatLong$6,formatRelative:formatRelative$6,localize:localize$6,match:match$6,options:{weekStartsOn:1,firstWeekContainsDate:1}},formatDistanceLocale$5={lessThanXSeconds:{one:"mindre än en sekund",other:"mindre än {{count}} sekunder"},xSeconds:{one:"en sekund",other:"{{count}} sekunder"},halfAMinute:"en halv minut",lessThanXMinutes:{one:"mindre än en minut",other:"mindre än {{count}} minuter"},xMinutes:{one:"en minut",other:"{{count}} minuter"},aboutXHours:{one:"ungefär en timme",other:"ungefär {{count}} timmar"},xHours:{one:"en timme",other:"{{count}} timmar"},xDays:{one:"en dag",other:"{{count}} dagar"},aboutXWeeks:{one:"ungefär en vecka",other:"ungefär {{count}} vecka"},xWeeks:{one:"en vecka",other:"{{count}} vecka"},aboutXMonths:{one:"ungefär en månad",other:"ungefär {{count}} månader"},xMonths:{one:"en månad",other:"{{count}} månader"},aboutXYears:{one:"ungefär ett år",other:"ungefär {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"över ett år",other:"över {{count}} år"},almostXYears:{one:"nästan ett år",other:"nästan {{count}} år"}},wordMapping=["noll","en","två","tre","fyra","fem","sex","sju","åtta","nio","tio","elva","tolv"],formatDistance$5=(e,t,n)=>{let i;const r=formatDistanceLocale$5[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",t<13?wordMapping[t]:String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"om "+i:i+" sedan":i},dateFormats$5={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"y-MM-dd"},timeFormats$5={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$5={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong$5={date:buildFormatLongFn({formats:dateFormats$5,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$5,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$5,defaultWidth:"full"})},formatRelativeLocale$5={lastWeek:"'i' EEEE's kl.' p",yesterday:"'igår kl.' p",today:"'idag kl.' p",tomorrow:"'imorgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},formatRelative$5=(e,t,n,i)=>formatRelativeLocale$5[e],eraValues$5={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["före Kristus","efter Kristus"]},quarterValues$5={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1:a kvartalet","2:a kvartalet","3:e kvartalet","4:e kvartalet"]},monthValues$5={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","maj","juni","juli","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},dayValues$5={narrow:["S","M","T","O","T","F","L"],short:["sö","må","ti","on","to","fr","lö"],abbreviated:["sön","mån","tis","ons","tors","fre","lör"],wide:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"]},dayPeriodValues$5={narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"morg.",afternoon:"efterm.",evening:"kväll",night:"natt"},abbreviated:{am:"f.m.",pm:"e.m.",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"efterm.",evening:"kväll",night:"natt"},wide:{am:"förmiddag",pm:"eftermiddag",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"eftermiddag",evening:"kväll",night:"natt"}},formattingDayPeriodValues$5={narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},abbreviated:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},wide:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morgonen",afternoon:"på eftermiddagen",evening:"på kvällen",night:"på natten"}},ordinalNumber$5=(e,t)=>{const n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:case 2:return n+":a"}return n+":e"},localize$5={ordinalNumber:ordinalNumber$5,era:buildLocalizeFn({values:eraValues$5,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$5,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$5,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$5,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$5,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$5,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$5=/^(\d+)(:a|:e)?/i,parseOrdinalNumberPattern$5=/\d+/i,matchEraPatterns$5={narrow:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,abbreviated:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,wide:/^(före Kristus|före vår tid|efter Kristus|vår tid)/i},parseEraPatterns$5={any:[/^f/i,/^[ev]/i]},matchQuarterPatterns$5={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](:a|:e)? kvartalet/i},parseQuarterPatterns$5={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$5={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i,wide:/^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i},parseMonthPatterns$5={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$5={narrow:/^[smtofl]/i,short:/^(sö|må|ti|on|to|fr|lö)/i,abbreviated:/^(sön|mån|tis|ons|tors|fre|lör)/i,wide:/^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i},parseDayPatterns$5={any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},matchDayPeriodPatterns$5={any:/^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i},parseDayPeriodPatterns$5={any:{am:/^f/i,pm:/^e/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/eftermiddag/i,evening:/kväll/i,night:/natt/i}},match$5={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$5,parsePattern:parseOrdinalNumberPattern$5,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$5,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$5,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$5,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$5,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$5,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$5,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$5,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$5,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$5,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$5,defaultParseWidth:"any"})},sv={code:"sv",formatDistance:formatDistance$5,formatLong:formatLong$5,formatRelative:formatRelative$5,localize:localize$5,match:match$5,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale$4={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yarım dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yaklaşık 1 saat",other:"yaklaşık {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 gün",other:"{{count}} gün"},aboutXWeeks:{one:"yaklaşık 1 hafta",other:"yaklaşık {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"yaklaşık 1 ay",other:"yaklaşık {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yaklaşık 1 yıl",other:"yaklaşık {{count}} yıl"},xYears:{one:"1 yıl",other:"{{count}} yıl"},overXYears:{one:"1 yıldan fazla",other:"{{count}} yıldan fazla"},almostXYears:{one:"neredeyse 1 yıl",other:"neredeyse {{count}} yıl"}},formatDistance$4=(e,t,n)=>{let i;const r=formatDistanceLocale$4[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?i+" sonra":i+" önce":i},dateFormats$4={full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},timeFormats$4={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$4={full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$4={date:buildFormatLongFn({formats:dateFormats$4,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$4,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$4,defaultWidth:"full"})},formatRelativeLocale$4={lastWeek:"'geçen hafta' eeee 'saat' p",yesterday:"'dün saat' p",today:"'bugün saat' p",tomorrow:"'yarın saat' p",nextWeek:"eeee 'saat' p",other:"P"},formatRelative$4=(e,t,n,i)=>formatRelativeLocale$4[e],eraValues$4={narrow:["MÖ","MS"],abbreviated:["MÖ","MS"],wide:["Milattan Önce","Milattan Sonra"]},quarterValues$4={narrow:["1","2","3","4"],abbreviated:["1Ç","2Ç","3Ç","4Ç"],wide:["İlk çeyrek","İkinci Çeyrek","Üçüncü çeyrek","Son çeyrek"]},monthValues$4={narrow:["O","Ş","M","N","M","H","T","A","E","E","K","A"],abbreviated:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],wide:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]},dayValues$4={narrow:["P","P","S","Ç","P","C","C"],short:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],abbreviated:["Paz","Pzt","Sal","Çar","Per","Cum","Cts"],wide:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},dayPeriodValues$4={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"},wide:{am:"Ö.Ö.",pm:"Ö.S.",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"}},formattingDayPeriodValues$4={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"},wide:{am:"ö.ö.",pm:"ö.s.",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"}},ordinalNumber$4=(e,t)=>Number(e)+".",localize$4={ordinalNumber:ordinalNumber$4,era:buildLocalizeFn({values:eraValues$4,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$4,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:buildLocalizeFn({values:monthValues$4,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$4,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$4,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$4,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$4=/^(\d+)(\.)?/i,parseOrdinalNumberPattern$4=/\d+/i,matchEraPatterns$4={narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},parseEraPatterns$4={any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},matchQuarterPatterns$4={narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},parseQuarterPatterns$4={any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1ç/i,/2ç/i,/3ç/i,/4ç/i],wide:[/^(i|İ)lk çeyrek/i,/(i|İ)kinci çeyrek/i,/üçüncü çeyrek/i,/son çeyrek/i]},matchMonthPatterns$4={narrow:/^[oşmnhtaek]/i,abbreviated:/^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,wide:/^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i},parseMonthPatterns$4={narrow:[/^o/i,/^ş/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^ş/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^ağ/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},matchDayPatterns$4={narrow:/^[psçc]/i,short:/^(pz|pt|sa|ça|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|çar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i},parseDayPatterns$4={narrow:[/^p/i,/^p/i,/^s/i,/^ç/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^ça/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^salı/i,/^çarşamba/i,/^perşembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},matchDayPeriodPatterns$4={narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},parseDayPeriodPatterns$4={any:{am:/^ö\.?ö\.?/i,pm:/^ö\.?s\.?/i,midnight:/^(gy|gece yarısı)/i,noon:/^öğ/i,morning:/^sa/i,afternoon:/^öğleden sonra/i,evening:/^ak/i,night:/^ge/i}},match$4={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$4,parsePattern:parseOrdinalNumberPattern$4,valueCallback:function(e){return parseInt(e,10)}}),era:buildMatchFn({matchPatterns:matchEraPatterns$4,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$4,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$4,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$4,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$4,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$4,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$4,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$4,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$4,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$4,defaultParseWidth:"any"})},tr={code:"tr",formatDistance:formatDistance$4,formatLong:formatLong$4,formatRelative:formatRelative$4,localize:localize$4,match:match$4,options:{weekStartsOn:1,firstWeekContainsDate:1}};function declension(e,t){if(e.one!==void 0&&t===1)return e.one;const n=t%10,i=t%100;return n===1&&i!==11?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(i<10||i>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function buildLocalizeTokenFn(e){return(t,n)=>n&&n.addSuffix?n.comparison&&n.comparison>0?e.future?declension(e.future,t):"за "+declension(e.regular,t):e.past?declension(e.past,t):declension(e.regular,t)+" тому":declension(e.regular,t)}const halfAtMinute=(e,t)=>t&&t.addSuffix?t.comparison&&t.comparison>0?"за півхвилини":"півхвилини тому":"півхвилини",formatDistanceLocale$3={lessThanXSeconds:buildLocalizeTokenFn({regular:{one:"менше секунди",singularNominative:"менше {{count}} секунди",singularGenitive:"менше {{count}} секунд",pluralGenitive:"менше {{count}} секунд"},future:{one:"менше, ніж за секунду",singularNominative:"менше, ніж за {{count}} секунду",singularGenitive:"менше, ніж за {{count}} секунди",pluralGenitive:"менше, ніж за {{count}} секунд"}}),xSeconds:buildLocalizeTokenFn({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунди",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду тому",singularGenitive:"{{count}} секунди тому",pluralGenitive:"{{count}} секунд тому"},future:{singularNominative:"за {{count}} секунду",singularGenitive:"за {{count}} секунди",pluralGenitive:"за {{count}} секунд"}}),halfAMinute:halfAtMinute,lessThanXMinutes:buildLocalizeTokenFn({regular:{one:"менше хвилини",singularNominative:"менше {{count}} хвилини",singularGenitive:"менше {{count}} хвилин",pluralGenitive:"менше {{count}} хвилин"},future:{one:"менше, ніж за хвилину",singularNominative:"менше, ніж за {{count}} хвилину",singularGenitive:"менше, ніж за {{count}} хвилини",pluralGenitive:"менше, ніж за {{count}} хвилин"}}),xMinutes:buildLocalizeTokenFn({regular:{singularNominative:"{{count}} хвилина",singularGenitive:"{{count}} хвилини",pluralGenitive:"{{count}} хвилин"},past:{singularNominative:"{{count}} хвилину тому",singularGenitive:"{{count}} хвилини тому",pluralGenitive:"{{count}} хвилин тому"},future:{singularNominative:"за {{count}} хвилину",singularGenitive:"за {{count}} хвилини",pluralGenitive:"за {{count}} хвилин"}}),aboutXHours:buildLocalizeTokenFn({regular:{singularNominative:"близько {{count}} години",singularGenitive:"близько {{count}} годин",pluralGenitive:"близько {{count}} годин"},future:{singularNominative:"приблизно за {{count}} годину",singularGenitive:"приблизно за {{count}} години",pluralGenitive:"приблизно за {{count}} годин"}}),xHours:buildLocalizeTokenFn({regular:{singularNominative:"{{count}} годину",singularGenitive:"{{count}} години",pluralGenitive:"{{count}} годин"}}),xDays:buildLocalizeTokenFn({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} днi",pluralGenitive:"{{count}} днів"}}),aboutXWeeks:buildLocalizeTokenFn({regular:{singularNominative:"близько {{count}} тижня",singularGenitive:"близько {{count}} тижнів",pluralGenitive:"близько {{count}} тижнів"},future:{singularNominative:"приблизно за {{count}} тиждень",singularGenitive:"приблизно за {{count}} тижні",pluralGenitive:"приблизно за {{count}} тижнів"}}),xWeeks:buildLocalizeTokenFn({regular:{singularNominative:"{{count}} тиждень",singularGenitive:"{{count}} тижні",pluralGenitive:"{{count}} тижнів"}}),aboutXMonths:buildLocalizeTokenFn({regular:{singularNominative:"близько {{count}} місяця",singularGenitive:"близько {{count}} місяців",pluralGenitive:"близько {{count}} місяців"},future:{singularNominative:"приблизно за {{count}} місяць",singularGenitive:"приблизно за {{count}} місяці",pluralGenitive:"приблизно за {{count}} місяців"}}),xMonths:buildLocalizeTokenFn({regular:{singularNominative:"{{count}} місяць",singularGenitive:"{{count}} місяці",pluralGenitive:"{{count}} місяців"}}),aboutXYears:buildLocalizeTokenFn({regular:{singularNominative:"близько {{count}} року",singularGenitive:"близько {{count}} років",pluralGenitive:"близько {{count}} років"},future:{singularNominative:"приблизно за {{count}} рік",singularGenitive:"приблизно за {{count}} роки",pluralGenitive:"приблизно за {{count}} років"}}),xYears:buildLocalizeTokenFn({regular:{singularNominative:"{{count}} рік",singularGenitive:"{{count}} роки",pluralGenitive:"{{count}} років"}}),overXYears:buildLocalizeTokenFn({regular:{singularNominative:"більше {{count}} року",singularGenitive:"більше {{count}} років",pluralGenitive:"більше {{count}} років"},future:{singularNominative:"більше, ніж за {{count}} рік",singularGenitive:"більше, ніж за {{count}} роки",pluralGenitive:"більше, ніж за {{count}} років"}}),almostXYears:buildLocalizeTokenFn({regular:{singularNominative:"майже {{count}} рік",singularGenitive:"майже {{count}} роки",pluralGenitive:"майже {{count}} років"},future:{singularNominative:"майже за {{count}} рік",singularGenitive:"майже за {{count}} роки",pluralGenitive:"майже за {{count}} років"}})},formatDistance$3=(e,t,n)=>(n=n||{},formatDistanceLocale$3[e](t,n)),dateFormats$3={full:"EEEE, do MMMM y 'р.'",long:"do MMMM y 'р.'",medium:"d MMM y 'р.'",short:"dd.MM.y"},timeFormats$3={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},dateTimeFormats$3={full:"{{date}} 'о' {{time}}",long:"{{date}} 'о' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$3={date:buildFormatLongFn({formats:dateFormats$3,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$3,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$3,defaultWidth:"full"})},accusativeWeekdays=["неділю","понеділок","вівторок","середу","четвер","п’ятницю","суботу"];function lastWeek(e){const t=accusativeWeekdays[e];switch(e){case 0:case 3:case 5:case 6:return"'у минулу "+t+" о' p";case 1:case 2:case 4:return"'у минулий "+t+" о' p"}}function thisWeek(e){return"'у "+accusativeWeekdays[e]+" о' p"}function nextWeek(e){const t=accusativeWeekdays[e];switch(e){case 0:case 3:case 5:case 6:return"'у наступну "+t+" о' p";case 1:case 2:case 4:return"'у наступний "+t+" о' p"}}const lastWeekFormat=(e,t,n)=>{const i=toDate(e),r=i.getDay();return isSameWeek(i,t,n)?thisWeek(r):lastWeek(r)},nextWeekFormat=(e,t,n)=>{const i=toDate(e),r=i.getDay();return isSameWeek(i,t,n)?thisWeek(r):nextWeek(r)},formatRelativeLocale$3={lastWeek:lastWeekFormat,yesterday:"'вчора о' p",today:"'сьогодні о' p",tomorrow:"'завтра о' p",nextWeek:nextWeekFormat,other:"P"},formatRelative$3=(e,t,n,i)=>{const r=formatRelativeLocale$3[e];return typeof r=="function"?r(t,n,i):r},eraValues$3={narrow:["до н.е.","н.е."],abbreviated:["до н. е.","н. е."],wide:["до нашої ери","нашої ери"]},quarterValues$3={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},monthValues$3={narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},formattingMonthValues$1={narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січня","лютого","березня","квітня","травня","червня","липня","серпня","вересня","жовтня","листопада","грудня"]},dayValues$3={narrow:["Н","П","В","С","Ч","П","С"],short:["нд","пн","вт","ср","чт","пт","сб"],abbreviated:["нед","пон","вів","сер","чтв","птн","суб"],wide:["неділя","понеділок","вівторок","середа","четвер","п’ятниця","субота"]},dayPeriodValues$3={narrow:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранок",afternoon:"день",evening:"веч.",night:"ніч"},abbreviated:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранок",afternoon:"день",evening:"веч.",night:"ніч"},wide:{am:"ДП",pm:"ПП",midnight:"північ",noon:"полудень",morning:"ранок",afternoon:"день",evening:"вечір",night:"ніч"}},formattingDayPeriodValues$3={narrow:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"},abbreviated:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"},wide:{am:"ДП",pm:"ПП",midnight:"північ",noon:"полудень",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"}},ordinalNumber$3=(e,t)=>{const n=String(t==null?void 0:t.unit),i=Number(e);let r;return n==="date"?i===3||i===23?r="-є":r="-е":n==="minute"||n==="second"||n==="hour"?r="-а":r="-й",i+r},localize$3={ordinalNumber:ordinalNumber$3,era:buildLocalizeFn({values:eraValues$3,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$3,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$3,defaultWidth:"wide",formattingValues:formattingMonthValues$1,defaultFormattingWidth:"wide"}),day:buildLocalizeFn({values:dayValues$3,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$3,defaultWidth:"any",formattingValues:formattingDayPeriodValues$3,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$3=/^(\d+)(-?(е|й|є|а|я))?/i,parseOrdinalNumberPattern$3=/\d+/i,matchEraPatterns$3={narrow:/^((до )?н\.?\s?е\.?)/i,abbreviated:/^((до )?н\.?\s?е\.?)/i,wide:/^(до нашої ери|нашої ери|наша ера)/i},parseEraPatterns$3={any:[/^д/i,/^н/i]},matchQuarterPatterns$3={narrow:/^[1234]/i,abbreviated:/^[1234](-?[иі]?й?)? кв.?/i,wide:/^[1234](-?[иі]?й?)? квартал/i},parseQuarterPatterns$3={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$3={narrow:/^[слбктчвжг]/i,abbreviated:/^(січ|лют|бер(ез)?|квіт|трав|черв|лип|серп|вер(ес)?|жовт|лис(топ)?|груд)\.?/i,wide:/^(січень|січня|лютий|лютого|березень|березня|квітень|квітня|травень|травня|червня|червень|липень|липня|серпень|серпня|вересень|вересня|жовтень|жовтня|листопад[а]?|грудень|грудня)/i},parseMonthPatterns$3={narrow:[/^с/i,/^л/i,/^б/i,/^к/i,/^т/i,/^ч/i,/^л/i,/^с/i,/^в/i,/^ж/i,/^л/i,/^г/i],any:[/^сі/i,/^лю/i,/^б/i,/^к/i,/^т/i,/^ч/i,/^лип/i,/^се/i,/^в/i,/^ж/i,/^лис/i,/^г/i]},matchDayPatterns$3={narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)\.?/i,abbreviated:/^(нед|пон|вів|сер|че?тв|птн?|суб)\.?/i,wide:/^(неділ[яі]|понеділ[ок][ка]|вівтор[ок][ка]|серед[аи]|четвер(га)?|п\W*?ятниц[яі]|субот[аи])/i},parseDayPatterns$3={narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[он]/i,/^в/i,/^с[ер]/i,/^ч/i,/^п\W*?[ят]/i,/^с[уб]/i]},matchDayPeriodPatterns$3={narrow:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,abbreviated:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,wide:/^([дп]п|північ|полудень|ранок|ранку|день|дня|вечір|вечора|ніч|ночі)/i},parseDayPeriodPatterns$3={any:{am:/^дп/i,pm:/^пп/i,midnight:/^півн/i,noon:/^пол/i,morning:/^р/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},match$3={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$3,parsePattern:parseOrdinalNumberPattern$3,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$3,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$3,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$3,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$3,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$3,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$3,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$3,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$3,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$3,defaultMatchWidth:"wide",parsePatterns:parseDayPeriodPatterns$3,defaultParseWidth:"any"})},uk={code:"uk",formatDistance:formatDistance$3,formatLong:formatLong$3,formatRelative:formatRelative$3,localize:localize$3,match:match$3,options:{weekStartsOn:1,firstWeekContainsDate:1}},formatDistanceLocale$2={lessThanXSeconds:{one:"dưới 1 giây",other:"dưới {{count}} giây"},xSeconds:{one:"1 giây",other:"{{count}} giây"},halfAMinute:"nửa phút",lessThanXMinutes:{one:"dưới 1 phút",other:"dưới {{count}} phút"},xMinutes:{one:"1 phút",other:"{{count}} phút"},aboutXHours:{one:"khoảng 1 giờ",other:"khoảng {{count}} giờ"},xHours:{one:"1 giờ",other:"{{count}} giờ"},xDays:{one:"1 ngày",other:"{{count}} ngày"},aboutXWeeks:{one:"khoảng 1 tuần",other:"khoảng {{count}} tuần"},xWeeks:{one:"1 tuần",other:"{{count}} tuần"},aboutXMonths:{one:"khoảng 1 tháng",other:"khoảng {{count}} tháng"},xMonths:{one:"1 tháng",other:"{{count}} tháng"},aboutXYears:{one:"khoảng 1 năm",other:"khoảng {{count}} năm"},xYears:{one:"1 năm",other:"{{count}} năm"},overXYears:{one:"hơn 1 năm",other:"hơn {{count}} năm"},almostXYears:{one:"gần 1 năm",other:"gần {{count}} năm"}},formatDistance$2=(e,t,n)=>{let i;const r=formatDistanceLocale$2[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?i+" nữa":i+" trước":i},dateFormats$2={full:"EEEE, 'ngày' d MMMM 'năm' y",long:"'ngày' d MMMM 'năm' y",medium:"d MMM 'năm' y",short:"dd/MM/y"},timeFormats$2={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$2={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong$2={date:buildFormatLongFn({formats:dateFormats$2,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$2,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$2,defaultWidth:"full"})},formatRelativeLocale$2={lastWeek:"eeee 'tuần trước vào lúc' p",yesterday:"'hôm qua vào lúc' p",today:"'hôm nay vào lúc' p",tomorrow:"'ngày mai vào lúc' p",nextWeek:"eeee 'tới vào lúc' p",other:"P"},formatRelative$2=(e,t,n,i)=>formatRelativeLocale$2[e],eraValues$2={narrow:["TCN","SCN"],abbreviated:["trước CN","sau CN"],wide:["trước Công Nguyên","sau Công Nguyên"]},quarterValues$2={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["Quý 1","Quý 2","Quý 3","Quý 4"]},formattingQuarterValues={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["quý I","quý II","quý III","quý IV"]},monthValues$2={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["Thg 1","Thg 2","Thg 3","Thg 4","Thg 5","Thg 6","Thg 7","Thg 8","Thg 9","Thg 10","Thg 11","Thg 12"],wide:["Tháng Một","Tháng Hai","Tháng Ba","Tháng Tư","Tháng Năm","Tháng Sáu","Tháng Bảy","Tháng Tám","Tháng Chín","Tháng Mười","Tháng Mười Một","Tháng Mười Hai"]},formattingMonthValues={narrow:["01","02","03","04","05","06","07","08","09","10","11","12"],abbreviated:["thg 1","thg 2","thg 3","thg 4","thg 5","thg 6","thg 7","thg 8","thg 9","thg 10","thg 11","thg 12"],wide:["tháng 01","tháng 02","tháng 03","tháng 04","tháng 05","tháng 06","tháng 07","tháng 08","tháng 09","tháng 10","tháng 11","tháng 12"]},dayValues$2={narrow:["CN","T2","T3","T4","T5","T6","T7"],short:["CN","Th 2","Th 3","Th 4","Th 5","Th 6","Th 7"],abbreviated:["CN","Thứ 2","Thứ 3","Thứ 4","Thứ 5","Thứ 6","Thứ 7"],wide:["Chủ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy"]},dayPeriodValues$2={narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"}},formattingDayPeriodValues$2={narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"giữa trưa",morning:"vào buổi sáng",afternoon:"vào buổi chiều",evening:"vào buổi tối",night:"vào ban đêm"}},ordinalNumber$2=(e,t)=>{const n=Number(e),i=t==null?void 0:t.unit;if(i==="quarter")switch(n){case 1:return"I";case 2:return"II";case 3:return"III";case 4:return"IV"}else if(i==="day")switch(n){case 1:return"thứ 2";case 2:return"thứ 3";case 3:return"thứ 4";case 4:return"thứ 5";case 5:return"thứ 6";case 6:return"thứ 7";case 7:return"chủ nhật"}else{if(i==="week")return n===1?"thứ nhất":"thứ "+n;if(i==="dayOfYear")return n===1?"đầu tiên":"thứ "+n}return String(n)},localize$2={ordinalNumber:ordinalNumber$2,era:buildLocalizeFn({values:eraValues$2,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$2,defaultWidth:"wide",formattingValues:formattingQuarterValues,defaultFormattingWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$2,defaultWidth:"wide",formattingValues:formattingMonthValues,defaultFormattingWidth:"wide"}),day:buildLocalizeFn({values:dayValues$2,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$2,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$2,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$2=/^(\d+)/i,parseOrdinalNumberPattern$2=/\d+/i,matchEraPatterns$2={narrow:/^(tcn|scn)/i,abbreviated:/^(trước CN|sau CN)/i,wide:/^(trước Công Nguyên|sau Công Nguyên)/i},parseEraPatterns$2={any:[/^t/i,/^s/i]},matchQuarterPatterns$2={narrow:/^([1234]|i{1,3}v?)/i,abbreviated:/^q([1234]|i{1,3}v?)/i,wide:/^quý ([1234]|i{1,3}v?)/i},parseQuarterPatterns$2={any:[/(1|i)$/i,/(2|ii)$/i,/(3|iii)$/i,/(4|iv)$/i]},matchMonthPatterns$2={narrow:/^(0?[2-9]|10|11|12|0?1)/i,abbreviated:/^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i,wide:/^tháng ?(Một|Hai|Ba|Tư|Năm|Sáu|Bảy|Tám|Chín|Mười|Mười ?Một|Mười ?Hai|0?[1-9](?!\d)|10|11|12)/i},parseMonthPatterns$2={narrow:[/0?1$/i,/0?2/i,/3/,/4/,/5/,/6/,/7/,/8/,/9/,/10/,/11/,/12/],abbreviated:[/^thg[ _]?0?1(?!\d)/i,/^thg[ _]?0?2/i,/^thg[ _]?0?3/i,/^thg[ _]?0?4/i,/^thg[ _]?0?5/i,/^thg[ _]?0?6/i,/^thg[ _]?0?7/i,/^thg[ _]?0?8/i,/^thg[ _]?0?9/i,/^thg[ _]?10/i,/^thg[ _]?11/i,/^thg[ _]?12/i],wide:[/^tháng ?(Một|0?1(?!\d))/i,/^tháng ?(Hai|0?2)/i,/^tháng ?(Ba|0?3)/i,/^tháng ?(Tư|0?4)/i,/^tháng ?(Năm|0?5)/i,/^tháng ?(Sáu|0?6)/i,/^tháng ?(Bảy|0?7)/i,/^tháng ?(Tám|0?8)/i,/^tháng ?(Chín|0?9)/i,/^tháng ?(Mười|10)/i,/^tháng ?(Mười ?Một|11)/i,/^tháng ?(Mười ?Hai|12)/i]},matchDayPatterns$2={narrow:/^(CN|T2|T3|T4|T5|T6|T7)/i,short:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,abbreviated:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,wide:/^(Chủ ?Nhật|Chúa ?Nhật|thứ ?Hai|thứ ?Ba|thứ ?Tư|thứ ?Năm|thứ ?Sáu|thứ ?Bảy)/i},parseDayPatterns$2={narrow:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],short:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],abbreviated:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],wide:[/(Chủ|Chúa) ?Nhật/i,/Hai/i,/Ba/i,/Tư/i,/Năm/i,/Sáu/i,/Bảy/i]},matchDayPeriodPatterns$2={narrow:/^(a|p|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,abbreviated:/^(am|pm|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,wide:/^(ch[^i]*|sa|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i},parseDayPeriodPatterns$2={any:{am:/^(a|sa)/i,pm:/^(p|ch[^i]*)/i,midnight:/nửa đêm/i,noon:/trưa/i,morning:/sáng/i,afternoon:/chiều/i,evening:/tối/i,night:/^đêm/i}},match$2={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$2,parsePattern:parseOrdinalNumberPattern$2,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$2,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$2,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$2,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$2,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$2,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$2,defaultParseWidth:"wide"}),day:buildMatchFn({matchPatterns:matchDayPatterns$2,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$2,defaultParseWidth:"wide"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$2,defaultMatchWidth:"wide",parsePatterns:parseDayPeriodPatterns$2,defaultParseWidth:"any"})},vi={code:"vi",formatDistance:formatDistance$2,formatLong:formatLong$2,formatRelative:formatRelative$2,localize:localize$2,match:match$2,options:{weekStartsOn:1,firstWeekContainsDate:1}},formatDistanceLocale$1={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},formatDistance$1=(e,t,n)=>{let i;const r=formatDistanceLocale$1[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?i+"内":i+"前":i},dateFormats$1={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},timeFormats$1={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},dateTimeFormats$1={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong$1={date:buildFormatLongFn({formats:dateFormats$1,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$1,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$1,defaultWidth:"full"})};function checkWeek(e,t,n){const i="eeee p";return isSameWeek(e,t,n)?i:e.getTime()>t.getTime()?"'下个'"+i:"'上个'"+i}const formatRelativeLocale$1={lastWeek:checkWeek,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:checkWeek,other:"PP p"},formatRelative$1=(e,t,n,i)=>{const r=formatRelativeLocale$1[e];return typeof r=="function"?r(t,n,i):r},eraValues$1={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},quarterValues$1={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},monthValues$1={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},dayValues$1={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},dayPeriodValues$1={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},formattingDayPeriodValues$1={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},ordinalNumber$1=(e,t)=>{const n=Number(e);switch(t==null?void 0:t.unit){case"date":return n.toString()+"日";case"hour":return n.toString()+"时";case"minute":return n.toString()+"分";case"second":return n.toString()+"秒";default:return"第 "+n.toString()}},localize$1={ordinalNumber:ordinalNumber$1,era:buildLocalizeFn({values:eraValues$1,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$1,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$1,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$1,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$1,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$1,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$1=/^(第\s*)?\d+(日|时|分|秒)?/i,parseOrdinalNumberPattern$1=/\d+/i,matchEraPatterns$1={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},parseEraPatterns$1={any:[/^(前)/i,/^(公元)/i]},matchQuarterPatterns$1={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},parseQuarterPatterns$1={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},matchMonthPatterns$1={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},parseMonthPatterns$1={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},matchDayPatterns$1={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},parseDayPatterns$1={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},matchDayPeriodPatterns$1={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},parseDayPeriodPatterns$1={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},match$1={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$1,parsePattern:parseOrdinalNumberPattern$1,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$1,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$1,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$1,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$1,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$1,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$1,defaultParseWidth:"any"})},zhCN={code:"zh-CN",formatDistance:formatDistance$1,formatLong:formatLong$1,formatRelative:formatRelative$1,localize:localize$1,match:match$1,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale={lessThanXSeconds:{one:"少於 1 秒",other:"少於 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分鐘",lessThanXMinutes:{one:"少於 1 分鐘",other:"少於 {{count}} 分鐘"},xMinutes:{one:"1 分鐘",other:"{{count}} 分鐘"},xHours:{one:"1 小時",other:"{{count}} 小時"},aboutXHours:{one:"大約 1 小時",other:"大約 {{count}} 小時"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大約 1 個星期",other:"大約 {{count}} 個星期"},xWeeks:{one:"1 個星期",other:"{{count}} 個星期"},aboutXMonths:{one:"大約 1 個月",other:"大約 {{count}} 個月"},xMonths:{one:"1 個月",other:"{{count}} 個月"},aboutXYears:{one:"大約 1 年",other:"大約 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超過 1 年",other:"超過 {{count}} 年"},almostXYears:{one:"將近 1 年",other:"將近 {{count}} 年"}},formatDistance=(e,t,n)=>{let i;const r=formatDistanceLocale[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?i+"內":i+"前":i},dateFormats={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},timeFormats={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},dateTimeFormats={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong={date:buildFormatLongFn({formats:dateFormats,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats,defaultWidth:"full"})},formatRelativeLocale={lastWeek:"'上個'eeee p",yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:"'下個'eeee p",other:"P"},formatRelative=(e,t,n,i)=>formatRelativeLocale[e],eraValues={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},quarterValues={narrow:["1","2","3","4"],abbreviated:["第一刻","第二刻","第三刻","第四刻"],wide:["第一刻鐘","第二刻鐘","第三刻鐘","第四刻鐘"]},monthValues={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},dayValues={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["週日","週一","週二","週三","週四","週五","週六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},dayPeriodValues={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},formattingDayPeriodValues={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},ordinalNumber=(e,t)=>{const n=Number(e);switch(t==null?void 0:t.unit){case"date":return n+"日";case"hour":return n+"時";case"minute":return n+"分";case"second":return n+"秒";default:return"第 "+n}},localize={ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues,defaultWidth:"wide",formattingValues:formattingDayPeriodValues,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern=/^(第\s*)?\d+(日|時|分|秒)?/i,parseOrdinalNumberPattern=/\d+/i,matchEraPatterns={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},parseEraPatterns={any:[/^(前)/i,/^(公元)/i]},matchQuarterPatterns={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},parseQuarterPatterns={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},matchMonthPatterns={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},parseMonthPatterns={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},matchDayPatterns={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},parseDayPatterns={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},matchDayPeriodPatterns={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},parseDayPeriodPatterns={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},match={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns,defaultParseWidth:"any"})},zhTW={code:"zh-TW",formatDistance,formatLong,formatRelative,localize,match,options:{weekStartsOn:1,firstWeekContainsDate:4}};/*!
+ */const elementMap=new Map,Data={set(e,t,n){elementMap.has(e)||elementMap.set(e,new Map);const i=elementMap.get(e);if(!i.has(t)&&i.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`);return}i.set(t,n)},get(e,t){return elementMap.has(e)&&elementMap.get(e).get(t)||null},remove(e,t){if(!elementMap.has(e))return;const n=elementMap.get(e);n.delete(t),n.size===0&&elementMap.delete(e)}},MAX_UID=1e6,MILLISECONDS_MULTIPLIER=1e3,TRANSITION_END="transitionend",parseSelector=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(t,n)=>`#${CSS.escape(n)}`)),e),toType=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),getUID=e=>{do e+=Math.floor(Math.random()*MAX_UID);while(document.getElementById(e));return e},getTransitionDurationFromElement=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const i=Number.parseFloat(t),r=Number.parseFloat(n);return!i&&!r?0:(t=t.split(",")[0],n=n.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(n))*MILLISECONDS_MULTIPLIER)},triggerTransitionEnd=e=>{e.dispatchEvent(new Event(TRANSITION_END))},isElement=e=>!e||typeof e!="object"?!1:(typeof e.jquery<"u"&&(e=e[0]),typeof e.nodeType<"u"),getElement=e=>isElement(e)?e.jquery?e[0]:e:typeof e=="string"&&e.length>0?document.querySelector(parseSelector(e)):null,isVisible=e=>{if(!isElement(e)||e.getClientRects().length===0)return!1;const t=getComputedStyle(e).getPropertyValue("visibility")==="visible",n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const i=e.closest("summary");if(i&&i.parentNode!==n||i===null)return!1}return t},isDisabled=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains("disabled")?!0:typeof e.disabled<"u"?e.disabled:e.hasAttribute("disabled")&&e.getAttribute("disabled")!=="false",findShadowRoot=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode=="function"){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?findShadowRoot(e.parentNode):null},noop$3=()=>{},reflow=e=>{e.offsetHeight},getjQuery=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,DOMContentLoadedCallbacks=[],onDOMContentLoaded=e=>{document.readyState==="loading"?(DOMContentLoadedCallbacks.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of DOMContentLoadedCallbacks)t()}),DOMContentLoadedCallbacks.push(e)):e()},isRTL=()=>document.documentElement.dir==="rtl",defineJQueryPlugin=e=>{onDOMContentLoaded(()=>{const t=getjQuery();if(t){const n=e.NAME,i=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=i,e.jQueryInterface)}})},execute=(e,t=[],n=e)=>typeof e=="function"?e(...t):n,executeAfterTransition=(e,t,n=!0)=>{if(!n){execute(e);return}const i=5,r=getTransitionDurationFromElement(t)+i;let a=!1;const o=({target:l})=>{l===t&&(a=!0,t.removeEventListener(TRANSITION_END,o),execute(e))};t.addEventListener(TRANSITION_END,o),setTimeout(()=>{a||triggerTransitionEnd(t)},r)},getNextActiveElement=(e,t,n,i)=>{const r=e.length;let a=e.indexOf(t);return a===-1?!n&&i?e[r-1]:e[0]:(a+=n?1:-1,i&&(a=(a+r)%r),e[Math.max(0,Math.min(a,r-1))])},namespaceRegex=/[^.]*(?=\..*)\.|.*/,stripNameRegex=/\..*/,stripUidRegex=/::\d+$/,eventRegistry={};let uidEvent=1;const customEvents={mouseenter:"mouseover",mouseleave:"mouseout"},nativeEvents=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function makeEventUid(e,t){return t&&`${t}::${uidEvent++}`||e.uidEvent||uidEvent++}function getElementEvents(e){const t=makeEventUid(e);return e.uidEvent=t,eventRegistry[t]=eventRegistry[t]||{},eventRegistry[t]}function bootstrapHandler(e,t){return function n(i){return hydrateObj(i,{delegateTarget:e}),n.oneOff&&EventHandler.off(e,i.type,t),t.apply(e,[i])}}function bootstrapDelegationHandler(e,t,n){return function i(r){const a=e.querySelectorAll(t);for(let{target:o}=r;o&&o!==this;o=o.parentNode)for(const l of a)if(l===o)return hydrateObj(r,{delegateTarget:o}),i.oneOff&&EventHandler.off(e,r.type,t,n),n.apply(o,[r])}}function findHandler(e,t,n=null){return Object.values(e).find(i=>i.callable===t&&i.delegationSelector===n)}function normalizeParameters(e,t,n){const i=typeof t=="string",r=i?n:t||n;let a=getTypeEvent(e);return nativeEvents.has(a)||(a=e),[i,r,a]}function addHandler(e,t,n,i,r){if(typeof t!="string"||!e)return;let[a,o,l]=normalizeParameters(t,n,i);t in customEvents&&(o=(w=>function(E){if(!E.relatedTarget||E.relatedTarget!==E.delegateTarget&&!E.delegateTarget.contains(E.relatedTarget))return w.call(this,E)})(o));const u=getElementEvents(e),d=u[l]||(u[l]={}),m=findHandler(d,o,a?n:null);if(m){m.oneOff=m.oneOff&&r;return}const g=makeEventUid(o,t.replace(namespaceRegex,"")),_=a?bootstrapDelegationHandler(e,n,o):bootstrapHandler(e,o);_.delegationSelector=a?n:null,_.callable=o,_.oneOff=r,_.uidEvent=g,d[g]=_,e.addEventListener(l,_,a)}function removeHandler(e,t,n,i,r){const a=findHandler(t[n],i,r);a&&(e.removeEventListener(n,a,!!r),delete t[n][a.uidEvent])}function removeNamespacedHandlers(e,t,n,i){const r=t[n]||{};for(const[a,o]of Object.entries(r))a.includes(i)&&removeHandler(e,t,n,o.callable,o.delegationSelector)}function getTypeEvent(e){return e=e.replace(stripNameRegex,""),customEvents[e]||e}const EventHandler={on(e,t,n,i){addHandler(e,t,n,i,!1)},one(e,t,n,i){addHandler(e,t,n,i,!0)},off(e,t,n,i){if(typeof t!="string"||!e)return;const[r,a,o]=normalizeParameters(t,n,i),l=o!==t,u=getElementEvents(e),d=u[o]||{},m=t.startsWith(".");if(typeof a<"u"){if(!Object.keys(d).length)return;removeHandler(e,u,o,a,r?n:null);return}if(m)for(const g of Object.keys(u))removeNamespacedHandlers(e,u,g,t.slice(1));for(const[g,_]of Object.entries(d)){const v=g.replace(stripUidRegex,"");(!l||t.includes(v))&&removeHandler(e,u,o,_.callable,_.delegationSelector)}},trigger(e,t,n){if(typeof t!="string"||!e)return null;const i=getjQuery(),r=getTypeEvent(t),a=t!==r;let o=null,l=!0,u=!0,d=!1;a&&i&&(o=i.Event(t,n),i(e).trigger(o),l=!o.isPropagationStopped(),u=!o.isImmediatePropagationStopped(),d=o.isDefaultPrevented());const m=hydrateObj(new Event(t,{bubbles:l,cancelable:!0}),n);return d&&m.preventDefault(),u&&e.dispatchEvent(m),m.defaultPrevented&&o&&o.preventDefault(),m}};function hydrateObj(e,t={}){for(const[n,i]of Object.entries(t))try{e[n]=i}catch{Object.defineProperty(e,n,{configurable:!0,get(){return i}})}return e}function normalizeData(e){if(e==="true")return!0;if(e==="false")return!1;if(e===Number(e).toString())return Number(e);if(e===""||e==="null")return null;if(typeof e!="string")return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function normalizeDataKey(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const Manipulator={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${normalizeDataKey(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${normalizeDataKey(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter(i=>i.startsWith("bs")&&!i.startsWith("bsConfig"));for(const i of n){let r=i.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),t[r]=normalizeData(e.dataset[i])}return t},getDataAttribute(e,t){return normalizeData(e.getAttribute(`data-bs-${normalizeDataKey(t)}`))}};let Config$1=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,n){const i=isElement(n)?Manipulator.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof i=="object"?i:{},...isElement(n)?Manipulator.getDataAttributes(n):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,n=this.constructor.DefaultType){for(const[i,r]of Object.entries(n)){const a=t[i],o=isElement(a)?"element":toType(a);if(!new RegExp(r).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${o}" but expected type "${r}".`)}}};const VERSION="5.3.2";class BaseComponent extends Config$1{constructor(t,n){super(),t=getElement(t),t&&(this._element=t,this._config=this._getConfig(n),Data.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Data.remove(this._element,this.constructor.DATA_KEY),EventHandler.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,n,i=!0){executeAfterTransition(t,n,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return Data.get(getElement(t),this.DATA_KEY)}static getOrCreateInstance(t,n={}){return this.getInstance(t)||new this(t,typeof n=="object"?n:null)}static get VERSION(){return VERSION}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const getSelector=e=>{let t=e.getAttribute("data-bs-target");if(!t||t==="#"){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&n!=="#"?parseSelector(n.trim()):null}return t},SelectorEngine={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(n=>n.matches(t))},parents(e,t){const n=[];let i=e.parentNode.closest(t);for(;i;)n.push(i),i=i.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(n=>`${n}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(n=>!isDisabled(n)&&isVisible(n))},getSelectorFromElement(e){const t=getSelector(e);return t&&SelectorEngine.findOne(t)?t:null},getElementFromSelector(e){const t=getSelector(e);return t?SelectorEngine.findOne(t):null},getMultipleElementsFromSelector(e){const t=getSelector(e);return t?SelectorEngine.find(t):[]}},enableDismissTrigger=(e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,i=e.NAME;EventHandler.on(document,n,`[data-bs-dismiss="${i}"]`,function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),isDisabled(this))return;const a=SelectorEngine.getElementFromSelector(this)||this.closest(`.${i}`);e.getOrCreateInstance(a)[t]()})},NAME$f="alert",DATA_KEY$a="bs.alert",EVENT_KEY$b=`.${DATA_KEY$a}`,EVENT_CLOSE=`close${EVENT_KEY$b}`,EVENT_CLOSED=`closed${EVENT_KEY$b}`,CLASS_NAME_FADE$5="fade",CLASS_NAME_SHOW$8="show";class Alert extends BaseComponent{static get NAME(){return NAME$f}close(){if(EventHandler.trigger(this._element,EVENT_CLOSE).defaultPrevented)return;this._element.classList.remove(CLASS_NAME_SHOW$8);const n=this._element.classList.contains(CLASS_NAME_FADE$5);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),EventHandler.trigger(this._element,EVENT_CLOSED),this.dispose()}static jQueryInterface(t){return this.each(function(){const n=Alert.getOrCreateInstance(this);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}enableDismissTrigger(Alert,"close");defineJQueryPlugin(Alert);const NAME$e="button",DATA_KEY$9="bs.button",EVENT_KEY$a=`.${DATA_KEY$9}`,DATA_API_KEY$6=".data-api",CLASS_NAME_ACTIVE$3="active",SELECTOR_DATA_TOGGLE$5='[data-bs-toggle="button"]',EVENT_CLICK_DATA_API$6=`click${EVENT_KEY$a}${DATA_API_KEY$6}`;class Button extends BaseComponent{static get NAME(){return NAME$e}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(CLASS_NAME_ACTIVE$3))}static jQueryInterface(t){return this.each(function(){const n=Button.getOrCreateInstance(this);t==="toggle"&&n[t]()})}}EventHandler.on(document,EVENT_CLICK_DATA_API$6,SELECTOR_DATA_TOGGLE$5,e=>{e.preventDefault();const t=e.target.closest(SELECTOR_DATA_TOGGLE$5);Button.getOrCreateInstance(t).toggle()});defineJQueryPlugin(Button);const NAME$d="swipe",EVENT_KEY$9=".bs.swipe",EVENT_TOUCHSTART=`touchstart${EVENT_KEY$9}`,EVENT_TOUCHMOVE=`touchmove${EVENT_KEY$9}`,EVENT_TOUCHEND=`touchend${EVENT_KEY$9}`,EVENT_POINTERDOWN=`pointerdown${EVENT_KEY$9}`,EVENT_POINTERUP=`pointerup${EVENT_KEY$9}`,POINTER_TYPE_TOUCH="touch",POINTER_TYPE_PEN="pen",CLASS_NAME_POINTER_EVENT="pointer-event",SWIPE_THRESHOLD=40,Default$c={endCallback:null,leftCallback:null,rightCallback:null},DefaultType$c={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Swipe extends Config$1{constructor(t,n){super(),this._element=t,!(!t||!Swipe.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Default$c}static get DefaultType(){return DefaultType$c}static get NAME(){return NAME$d}dispose(){EventHandler.off(this._element,EVENT_KEY$9)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),execute(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=SWIPE_THRESHOLD)return;const n=t/this._deltaX;this._deltaX=0,n&&execute(n>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(EventHandler.on(this._element,EVENT_POINTERDOWN,t=>this._start(t)),EventHandler.on(this._element,EVENT_POINTERUP,t=>this._end(t)),this._element.classList.add(CLASS_NAME_POINTER_EVENT)):(EventHandler.on(this._element,EVENT_TOUCHSTART,t=>this._start(t)),EventHandler.on(this._element,EVENT_TOUCHMOVE,t=>this._move(t)),EventHandler.on(this._element,EVENT_TOUCHEND,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===POINTER_TYPE_PEN||t.pointerType===POINTER_TYPE_TOUCH)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const NAME$c="carousel",DATA_KEY$8="bs.carousel",EVENT_KEY$8=`.${DATA_KEY$8}`,DATA_API_KEY$5=".data-api",ARROW_LEFT_KEY$1="ArrowLeft",ARROW_RIGHT_KEY$1="ArrowRight",TOUCHEVENT_COMPAT_WAIT=500,ORDER_NEXT="next",ORDER_PREV="prev",DIRECTION_LEFT="left",DIRECTION_RIGHT="right",EVENT_SLIDE=`slide${EVENT_KEY$8}`,EVENT_SLID=`slid${EVENT_KEY$8}`,EVENT_KEYDOWN$1=`keydown${EVENT_KEY$8}`,EVENT_MOUSEENTER$1=`mouseenter${EVENT_KEY$8}`,EVENT_MOUSELEAVE$1=`mouseleave${EVENT_KEY$8}`,EVENT_DRAG_START=`dragstart${EVENT_KEY$8}`,EVENT_LOAD_DATA_API$3=`load${EVENT_KEY$8}${DATA_API_KEY$5}`,EVENT_CLICK_DATA_API$5=`click${EVENT_KEY$8}${DATA_API_KEY$5}`,CLASS_NAME_CAROUSEL="carousel",CLASS_NAME_ACTIVE$2="active",CLASS_NAME_SLIDE="slide",CLASS_NAME_END="carousel-item-end",CLASS_NAME_START="carousel-item-start",CLASS_NAME_NEXT="carousel-item-next",CLASS_NAME_PREV="carousel-item-prev",SELECTOR_ACTIVE=".active",SELECTOR_ITEM=".carousel-item",SELECTOR_ACTIVE_ITEM=SELECTOR_ACTIVE+SELECTOR_ITEM,SELECTOR_ITEM_IMG=".carousel-item img",SELECTOR_INDICATORS=".carousel-indicators",SELECTOR_DATA_SLIDE="[data-bs-slide], [data-bs-slide-to]",SELECTOR_DATA_RIDE='[data-bs-ride="carousel"]',KEY_TO_DIRECTION={[ARROW_LEFT_KEY$1]:DIRECTION_RIGHT,[ARROW_RIGHT_KEY$1]:DIRECTION_LEFT},Default$b={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},DefaultType$b={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Carousel extends BaseComponent{constructor(t,n){super(t,n),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=SelectorEngine.findOne(SELECTOR_INDICATORS,this._element),this._addEventListeners(),this._config.ride===CLASS_NAME_CAROUSEL&&this.cycle()}static get Default(){return Default$b}static get DefaultType(){return DefaultType$b}static get NAME(){return NAME$c}next(){this._slide(ORDER_NEXT)}nextWhenVisible(){!document.hidden&&isVisible(this._element)&&this.next()}prev(){this._slide(ORDER_PREV)}pause(){this._isSliding&&triggerTransitionEnd(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){EventHandler.one(this._element,EVENT_SLID,()=>this.cycle());return}this.cycle()}}to(t){const n=this._getItems();if(t>n.length-1||t<0)return;if(this._isSliding){EventHandler.one(this._element,EVENT_SLID,()=>this.to(t));return}const i=this._getItemIndex(this._getActive());if(i===t)return;const r=t>i?ORDER_NEXT:ORDER_PREV;this._slide(r,n[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&EventHandler.on(this._element,EVENT_KEYDOWN$1,t=>this._keydown(t)),this._config.pause==="hover"&&(EventHandler.on(this._element,EVENT_MOUSEENTER$1,()=>this.pause()),EventHandler.on(this._element,EVENT_MOUSELEAVE$1,()=>this._maybeEnableCycle())),this._config.touch&&Swipe.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const i of SelectorEngine.find(SELECTOR_ITEM_IMG,this._element))EventHandler.on(i,EVENT_DRAG_START,r=>r.preventDefault());const n={leftCallback:()=>this._slide(this._directionToOrder(DIRECTION_LEFT)),rightCallback:()=>this._slide(this._directionToOrder(DIRECTION_RIGHT)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),TOUCHEVENT_COMPAT_WAIT+this._config.interval))}};this._swipeHelper=new Swipe(this._element,n)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const n=KEY_TO_DIRECTION[t.key];n&&(t.preventDefault(),this._slide(this._directionToOrder(n)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const n=SelectorEngine.findOne(SELECTOR_ACTIVE,this._indicatorsElement);n.classList.remove(CLASS_NAME_ACTIVE$2),n.removeAttribute("aria-current");const i=SelectorEngine.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(CLASS_NAME_ACTIVE$2),i.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const n=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=n||this._config.defaultInterval}_slide(t,n=null){if(this._isSliding)return;const i=this._getActive(),r=t===ORDER_NEXT,a=n||getNextActiveElement(this._getItems(),i,r,this._config.wrap);if(a===i)return;const o=this._getItemIndex(a),l=v=>EventHandler.trigger(this._element,v,{relatedTarget:a,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:o});if(l(EVENT_SLIDE).defaultPrevented||!i||!a)return;const d=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=a;const m=r?CLASS_NAME_START:CLASS_NAME_END,g=r?CLASS_NAME_NEXT:CLASS_NAME_PREV;a.classList.add(g),reflow(a),i.classList.add(m),a.classList.add(m);const _=()=>{a.classList.remove(m,g),a.classList.add(CLASS_NAME_ACTIVE$2),i.classList.remove(CLASS_NAME_ACTIVE$2,g,m),this._isSliding=!1,l(EVENT_SLID)};this._queueCallback(_,i,this._isAnimated()),d&&this.cycle()}_isAnimated(){return this._element.classList.contains(CLASS_NAME_SLIDE)}_getActive(){return SelectorEngine.findOne(SELECTOR_ACTIVE_ITEM,this._element)}_getItems(){return SelectorEngine.find(SELECTOR_ITEM,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return isRTL()?t===DIRECTION_LEFT?ORDER_PREV:ORDER_NEXT:t===DIRECTION_LEFT?ORDER_NEXT:ORDER_PREV}_orderToDirection(t){return isRTL()?t===ORDER_PREV?DIRECTION_LEFT:DIRECTION_RIGHT:t===ORDER_PREV?DIRECTION_RIGHT:DIRECTION_LEFT}static jQueryInterface(t){return this.each(function(){const n=Carousel.getOrCreateInstance(this,t);if(typeof t=="number"){n.to(t);return}if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t]()}})}}EventHandler.on(document,EVENT_CLICK_DATA_API$5,SELECTOR_DATA_SLIDE,function(e){const t=SelectorEngine.getElementFromSelector(this);if(!t||!t.classList.contains(CLASS_NAME_CAROUSEL))return;e.preventDefault();const n=Carousel.getOrCreateInstance(t),i=this.getAttribute("data-bs-slide-to");if(i){n.to(i),n._maybeEnableCycle();return}if(Manipulator.getDataAttribute(this,"slide")==="next"){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()});EventHandler.on(window,EVENT_LOAD_DATA_API$3,()=>{const e=SelectorEngine.find(SELECTOR_DATA_RIDE);for(const t of e)Carousel.getOrCreateInstance(t)});defineJQueryPlugin(Carousel);const NAME$b="collapse",DATA_KEY$7="bs.collapse",EVENT_KEY$7=`.${DATA_KEY$7}`,DATA_API_KEY$4=".data-api",EVENT_SHOW$6=`show${EVENT_KEY$7}`,EVENT_SHOWN$6=`shown${EVENT_KEY$7}`,EVENT_HIDE$6=`hide${EVENT_KEY$7}`,EVENT_HIDDEN$6=`hidden${EVENT_KEY$7}`,EVENT_CLICK_DATA_API$4=`click${EVENT_KEY$7}${DATA_API_KEY$4}`,CLASS_NAME_SHOW$7="show",CLASS_NAME_COLLAPSE="collapse",CLASS_NAME_COLLAPSING="collapsing",CLASS_NAME_COLLAPSED="collapsed",CLASS_NAME_DEEPER_CHILDREN=`:scope .${CLASS_NAME_COLLAPSE} .${CLASS_NAME_COLLAPSE}`,CLASS_NAME_HORIZONTAL="collapse-horizontal",WIDTH="width",HEIGHT="height",SELECTOR_ACTIVES=".collapse.show, .collapse.collapsing",SELECTOR_DATA_TOGGLE$4='[data-bs-toggle="collapse"]',Default$a={parent:null,toggle:!0},DefaultType$a={parent:"(null|element)",toggle:"boolean"};class Collapse extends BaseComponent{constructor(t,n){super(t,n),this._isTransitioning=!1,this._triggerArray=[];const i=SelectorEngine.find(SELECTOR_DATA_TOGGLE$4);for(const r of i){const a=SelectorEngine.getSelectorFromElement(r),o=SelectorEngine.find(a).filter(l=>l===this._element);a!==null&&o.length&&this._triggerArray.push(r)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Default$a}static get DefaultType(){return DefaultType$a}static get NAME(){return NAME$b}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(SELECTOR_ACTIVES).filter(l=>l!==this._element).map(l=>Collapse.getOrCreateInstance(l,{toggle:!1}))),t.length&&t[0]._isTransitioning||EventHandler.trigger(this._element,EVENT_SHOW$6).defaultPrevented)return;for(const l of t)l.hide();const i=this._getDimension();this._element.classList.remove(CLASS_NAME_COLLAPSE),this._element.classList.add(CLASS_NAME_COLLAPSING),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(CLASS_NAME_COLLAPSING),this._element.classList.add(CLASS_NAME_COLLAPSE,CLASS_NAME_SHOW$7),this._element.style[i]="",EventHandler.trigger(this._element,EVENT_SHOWN$6)},o=`scroll${i[0].toUpperCase()+i.slice(1)}`;this._queueCallback(r,this._element,!0),this._element.style[i]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown()||EventHandler.trigger(this._element,EVENT_HIDE$6).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,reflow(this._element),this._element.classList.add(CLASS_NAME_COLLAPSING),this._element.classList.remove(CLASS_NAME_COLLAPSE,CLASS_NAME_SHOW$7);for(const r of this._triggerArray){const a=SelectorEngine.getElementFromSelector(r);a&&!this._isShown(a)&&this._addAriaAndCollapsedClass([r],!1)}this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(CLASS_NAME_COLLAPSING),this._element.classList.add(CLASS_NAME_COLLAPSE),EventHandler.trigger(this._element,EVENT_HIDDEN$6)};this._element.style[n]="",this._queueCallback(i,this._element,!0)}_isShown(t=this._element){return t.classList.contains(CLASS_NAME_SHOW$7)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=getElement(t.parent),t}_getDimension(){return this._element.classList.contains(CLASS_NAME_HORIZONTAL)?WIDTH:HEIGHT}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(SELECTOR_DATA_TOGGLE$4);for(const n of t){const i=SelectorEngine.getElementFromSelector(n);i&&this._addAriaAndCollapsedClass([n],this._isShown(i))}}_getFirstLevelChildren(t){const n=SelectorEngine.find(CLASS_NAME_DEEPER_CHILDREN,this._config.parent);return SelectorEngine.find(t,this._config.parent).filter(i=>!n.includes(i))}_addAriaAndCollapsedClass(t,n){if(t.length)for(const i of t)i.classList.toggle(CLASS_NAME_COLLAPSED,!n),i.setAttribute("aria-expanded",n)}static jQueryInterface(t){const n={};return typeof t=="string"&&/show|hide/.test(t)&&(n.toggle=!1),this.each(function(){const i=Collapse.getOrCreateInstance(this,n);if(typeof t=="string"){if(typeof i[t]>"u")throw new TypeError(`No method named "${t}"`);i[t]()}})}}EventHandler.on(document,EVENT_CLICK_DATA_API$4,SELECTOR_DATA_TOGGLE$4,function(e){(e.target.tagName==="A"||e.delegateTarget&&e.delegateTarget.tagName==="A")&&e.preventDefault();for(const t of SelectorEngine.getMultipleElementsFromSelector(this))Collapse.getOrCreateInstance(t,{toggle:!1}).toggle()});defineJQueryPlugin(Collapse);const NAME$a="dropdown",DATA_KEY$6="bs.dropdown",EVENT_KEY$6=`.${DATA_KEY$6}`,DATA_API_KEY$3=".data-api",ESCAPE_KEY$2="Escape",TAB_KEY$1="Tab",ARROW_UP_KEY$1="ArrowUp",ARROW_DOWN_KEY$1="ArrowDown",RIGHT_MOUSE_BUTTON=2,EVENT_HIDE$5=`hide${EVENT_KEY$6}`,EVENT_HIDDEN$5=`hidden${EVENT_KEY$6}`,EVENT_SHOW$5=`show${EVENT_KEY$6}`,EVENT_SHOWN$5=`shown${EVENT_KEY$6}`,EVENT_CLICK_DATA_API$3=`click${EVENT_KEY$6}${DATA_API_KEY$3}`,EVENT_KEYDOWN_DATA_API=`keydown${EVENT_KEY$6}${DATA_API_KEY$3}`,EVENT_KEYUP_DATA_API=`keyup${EVENT_KEY$6}${DATA_API_KEY$3}`,CLASS_NAME_SHOW$6="show",CLASS_NAME_DROPUP="dropup",CLASS_NAME_DROPEND="dropend",CLASS_NAME_DROPSTART="dropstart",CLASS_NAME_DROPUP_CENTER="dropup-center",CLASS_NAME_DROPDOWN_CENTER="dropdown-center",SELECTOR_DATA_TOGGLE$3='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',SELECTOR_DATA_TOGGLE_SHOWN=`${SELECTOR_DATA_TOGGLE$3}.${CLASS_NAME_SHOW$6}`,SELECTOR_MENU=".dropdown-menu",SELECTOR_NAVBAR=".navbar",SELECTOR_NAVBAR_NAV=".navbar-nav",SELECTOR_VISIBLE_ITEMS=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",PLACEMENT_TOP=isRTL()?"top-end":"top-start",PLACEMENT_TOPEND=isRTL()?"top-start":"top-end",PLACEMENT_BOTTOM=isRTL()?"bottom-end":"bottom-start",PLACEMENT_BOTTOMEND=isRTL()?"bottom-start":"bottom-end",PLACEMENT_RIGHT=isRTL()?"left-start":"right-start",PLACEMENT_LEFT=isRTL()?"right-start":"left-start",PLACEMENT_TOPCENTER="top",PLACEMENT_BOTTOMCENTER="bottom",Default$9={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},DefaultType$9={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Dropdown extends BaseComponent{constructor(t,n){super(t,n),this._popper=null,this._parent=this._element.parentNode,this._menu=SelectorEngine.next(this._element,SELECTOR_MENU)[0]||SelectorEngine.prev(this._element,SELECTOR_MENU)[0]||SelectorEngine.findOne(SELECTOR_MENU,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Default$9}static get DefaultType(){return DefaultType$9}static get NAME(){return NAME$a}toggle(){return this._isShown()?this.hide():this.show()}show(){if(isDisabled(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!EventHandler.trigger(this._element,EVENT_SHOW$5,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(SELECTOR_NAVBAR_NAV))for(const i of[].concat(...document.body.children))EventHandler.on(i,"mouseover",noop$3);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(CLASS_NAME_SHOW$6),this._element.classList.add(CLASS_NAME_SHOW$6),EventHandler.trigger(this._element,EVENT_SHOWN$5,t)}}hide(){if(isDisabled(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!EventHandler.trigger(this._element,EVENT_HIDE$5,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))EventHandler.off(i,"mouseover",noop$3);this._popper&&this._popper.destroy(),this._menu.classList.remove(CLASS_NAME_SHOW$6),this._element.classList.remove(CLASS_NAME_SHOW$6),this._element.setAttribute("aria-expanded","false"),Manipulator.removeDataAttribute(this._menu,"popper"),EventHandler.trigger(this._element,EVENT_HIDDEN$5,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!isElement(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${NAME$a.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof Popper>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:isElement(this._config.reference)?t=getElement(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const n=this._getPopperConfig();this._popper=createPopper(t,this._menu,n)}_isShown(){return this._menu.classList.contains(CLASS_NAME_SHOW$6)}_getPlacement(){const t=this._parent;if(t.classList.contains(CLASS_NAME_DROPEND))return PLACEMENT_RIGHT;if(t.classList.contains(CLASS_NAME_DROPSTART))return PLACEMENT_LEFT;if(t.classList.contains(CLASS_NAME_DROPUP_CENTER))return PLACEMENT_TOPCENTER;if(t.classList.contains(CLASS_NAME_DROPDOWN_CENTER))return PLACEMENT_BOTTOMCENTER;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(CLASS_NAME_DROPUP)?n?PLACEMENT_TOPEND:PLACEMENT_TOP:n?PLACEMENT_BOTTOMEND:PLACEMENT_BOTTOM}_detectNavbar(){return this._element.closest(SELECTOR_NAVBAR)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(n=>Number.parseInt(n,10)):typeof t=="function"?n=>t(n,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Manipulator.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...execute(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:n}){const i=SelectorEngine.find(SELECTOR_VISIBLE_ITEMS,this._menu).filter(r=>isVisible(r));i.length&&getNextActiveElement(i,n,t===ARROW_DOWN_KEY$1,!i.includes(n)).focus()}static jQueryInterface(t){return this.each(function(){const n=Dropdown.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}static clearMenus(t){if(t.button===RIGHT_MOUSE_BUTTON||t.type==="keyup"&&t.key!==TAB_KEY$1)return;const n=SelectorEngine.find(SELECTOR_DATA_TOGGLE_SHOWN);for(const i of n){const r=Dropdown.getInstance(i);if(!r||r._config.autoClose===!1)continue;const a=t.composedPath(),o=a.includes(r._menu);if(a.includes(r._element)||r._config.autoClose==="inside"&&!o||r._config.autoClose==="outside"&&o||r._menu.contains(t.target)&&(t.type==="keyup"&&t.key===TAB_KEY$1||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const l={relatedTarget:r._element};t.type==="click"&&(l.clickEvent=t),r._completeHide(l)}}static dataApiKeydownHandler(t){const n=/input|textarea/i.test(t.target.tagName),i=t.key===ESCAPE_KEY$2,r=[ARROW_UP_KEY$1,ARROW_DOWN_KEY$1].includes(t.key);if(!r&&!i||n&&!i)return;t.preventDefault();const a=this.matches(SELECTOR_DATA_TOGGLE$3)?this:SelectorEngine.prev(this,SELECTOR_DATA_TOGGLE$3)[0]||SelectorEngine.next(this,SELECTOR_DATA_TOGGLE$3)[0]||SelectorEngine.findOne(SELECTOR_DATA_TOGGLE$3,t.delegateTarget.parentNode),o=Dropdown.getOrCreateInstance(a);if(r){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),a.focus())}}EventHandler.on(document,EVENT_KEYDOWN_DATA_API,SELECTOR_DATA_TOGGLE$3,Dropdown.dataApiKeydownHandler);EventHandler.on(document,EVENT_KEYDOWN_DATA_API,SELECTOR_MENU,Dropdown.dataApiKeydownHandler);EventHandler.on(document,EVENT_CLICK_DATA_API$3,Dropdown.clearMenus);EventHandler.on(document,EVENT_KEYUP_DATA_API,Dropdown.clearMenus);EventHandler.on(document,EVENT_CLICK_DATA_API$3,SELECTOR_DATA_TOGGLE$3,function(e){e.preventDefault(),Dropdown.getOrCreateInstance(this).toggle()});defineJQueryPlugin(Dropdown);const NAME$9="backdrop",CLASS_NAME_FADE$4="fade",CLASS_NAME_SHOW$5="show",EVENT_MOUSEDOWN=`mousedown.bs.${NAME$9}`,Default$8={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},DefaultType$8={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Backdrop extends Config$1{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Default$8}static get DefaultType(){return DefaultType$8}static get NAME(){return NAME$9}show(t){if(!this._config.isVisible){execute(t);return}this._append();const n=this._getElement();this._config.isAnimated&&reflow(n),n.classList.add(CLASS_NAME_SHOW$5),this._emulateAnimation(()=>{execute(t)})}hide(t){if(!this._config.isVisible){execute(t);return}this._getElement().classList.remove(CLASS_NAME_SHOW$5),this._emulateAnimation(()=>{this.dispose(),execute(t)})}dispose(){this._isAppended&&(EventHandler.off(this._element,EVENT_MOUSEDOWN),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(CLASS_NAME_FADE$4),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=getElement(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),EventHandler.on(t,EVENT_MOUSEDOWN,()=>{execute(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){executeAfterTransition(t,this._getElement(),this._config.isAnimated)}}const NAME$8="focustrap",DATA_KEY$5="bs.focustrap",EVENT_KEY$5=`.${DATA_KEY$5}`,EVENT_FOCUSIN$2=`focusin${EVENT_KEY$5}`,EVENT_KEYDOWN_TAB=`keydown.tab${EVENT_KEY$5}`,TAB_KEY="Tab",TAB_NAV_FORWARD="forward",TAB_NAV_BACKWARD="backward",Default$7={autofocus:!0,trapElement:null},DefaultType$7={autofocus:"boolean",trapElement:"element"};class FocusTrap extends Config$1{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Default$7}static get DefaultType(){return DefaultType$7}static get NAME(){return NAME$8}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),EventHandler.off(document,EVENT_KEY$5),EventHandler.on(document,EVENT_FOCUSIN$2,t=>this._handleFocusin(t)),EventHandler.on(document,EVENT_KEYDOWN_TAB,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,EventHandler.off(document,EVENT_KEY$5))}_handleFocusin(t){const{trapElement:n}=this._config;if(t.target===document||t.target===n||n.contains(t.target))return;const i=SelectorEngine.focusableChildren(n);i.length===0?n.focus():this._lastTabNavDirection===TAB_NAV_BACKWARD?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){t.key===TAB_KEY&&(this._lastTabNavDirection=t.shiftKey?TAB_NAV_BACKWARD:TAB_NAV_FORWARD)}}const SELECTOR_FIXED_CONTENT=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",SELECTOR_STICKY_CONTENT=".sticky-top",PROPERTY_PADDING="padding-right",PROPERTY_MARGIN="margin-right";class ScrollBarHelper{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,PROPERTY_PADDING,n=>n+t),this._setElementAttributes(SELECTOR_FIXED_CONTENT,PROPERTY_PADDING,n=>n+t),this._setElementAttributes(SELECTOR_STICKY_CONTENT,PROPERTY_MARGIN,n=>n-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,PROPERTY_PADDING),this._resetElementAttributes(SELECTOR_FIXED_CONTENT,PROPERTY_PADDING),this._resetElementAttributes(SELECTOR_STICKY_CONTENT,PROPERTY_MARGIN)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,n,i){const r=this.getWidth(),a=o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+r)return;this._saveInitialAttribute(o,n);const l=window.getComputedStyle(o).getPropertyValue(n);o.style.setProperty(n,`${i(Number.parseFloat(l))}px`)};this._applyManipulationCallback(t,a)}_saveInitialAttribute(t,n){const i=t.style.getPropertyValue(n);i&&Manipulator.setDataAttribute(t,n,i)}_resetElementAttributes(t,n){const i=r=>{const a=Manipulator.getDataAttribute(r,n);if(a===null){r.style.removeProperty(n);return}Manipulator.removeDataAttribute(r,n),r.style.setProperty(n,a)};this._applyManipulationCallback(t,i)}_applyManipulationCallback(t,n){if(isElement(t)){n(t);return}for(const i of SelectorEngine.find(t,this._element))n(i)}}const NAME$7="modal",DATA_KEY$4="bs.modal",EVENT_KEY$4=`.${DATA_KEY$4}`,DATA_API_KEY$2=".data-api",ESCAPE_KEY$1="Escape",EVENT_HIDE$4=`hide${EVENT_KEY$4}`,EVENT_HIDE_PREVENTED$1=`hidePrevented${EVENT_KEY$4}`,EVENT_HIDDEN$4=`hidden${EVENT_KEY$4}`,EVENT_SHOW$4=`show${EVENT_KEY$4}`,EVENT_SHOWN$4=`shown${EVENT_KEY$4}`,EVENT_RESIZE$1=`resize${EVENT_KEY$4}`,EVENT_CLICK_DISMISS=`click.dismiss${EVENT_KEY$4}`,EVENT_MOUSEDOWN_DISMISS=`mousedown.dismiss${EVENT_KEY$4}`,EVENT_KEYDOWN_DISMISS$1=`keydown.dismiss${EVENT_KEY$4}`,EVENT_CLICK_DATA_API$2=`click${EVENT_KEY$4}${DATA_API_KEY$2}`,CLASS_NAME_OPEN="modal-open",CLASS_NAME_FADE$3="fade",CLASS_NAME_SHOW$4="show",CLASS_NAME_STATIC="modal-static",OPEN_SELECTOR$1=".modal.show",SELECTOR_DIALOG=".modal-dialog",SELECTOR_MODAL_BODY=".modal-body",SELECTOR_DATA_TOGGLE$2='[data-bs-toggle="modal"]',Default$6={backdrop:!0,focus:!0,keyboard:!0},DefaultType$6={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Modal extends BaseComponent{constructor(t,n){super(t,n),this._dialog=SelectorEngine.findOne(SELECTOR_DIALOG,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ScrollBarHelper,this._addEventListeners()}static get Default(){return Default$6}static get DefaultType(){return DefaultType$6}static get NAME(){return NAME$7}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||EventHandler.trigger(this._element,EVENT_SHOW$4,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(CLASS_NAME_OPEN),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||EventHandler.trigger(this._element,EVENT_HIDE$4).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(CLASS_NAME_SHOW$4),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){EventHandler.off(window,EVENT_KEY$4),EventHandler.off(this._dialog,EVENT_KEY$4),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Backdrop({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new FocusTrap({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const n=SelectorEngine.findOne(SELECTOR_MODAL_BODY,this._dialog);n&&(n.scrollTop=0),reflow(this._element),this._element.classList.add(CLASS_NAME_SHOW$4);const i=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,EventHandler.trigger(this._element,EVENT_SHOWN$4,{relatedTarget:t})};this._queueCallback(i,this._dialog,this._isAnimated())}_addEventListeners(){EventHandler.on(this._element,EVENT_KEYDOWN_DISMISS$1,t=>{if(t.key===ESCAPE_KEY$1){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),EventHandler.on(window,EVENT_RESIZE$1,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),EventHandler.on(this._element,EVENT_MOUSEDOWN_DISMISS,t=>{EventHandler.one(this._element,EVENT_CLICK_DISMISS,n=>{if(!(this._element!==t.target||this._element!==n.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(CLASS_NAME_OPEN),this._resetAdjustments(),this._scrollBar.reset(),EventHandler.trigger(this._element,EVENT_HIDDEN$4)})}_isAnimated(){return this._element.classList.contains(CLASS_NAME_FADE$3)}_triggerBackdropTransition(){if(EventHandler.trigger(this._element,EVENT_HIDE_PREVENTED$1).defaultPrevented)return;const n=this._element.scrollHeight>document.documentElement.clientHeight,i=this._element.style.overflowY;i==="hidden"||this._element.classList.contains(CLASS_NAME_STATIC)||(n||(this._element.style.overflowY="hidden"),this._element.classList.add(CLASS_NAME_STATIC),this._queueCallback(()=>{this._element.classList.remove(CLASS_NAME_STATIC),this._queueCallback(()=>{this._element.style.overflowY=i},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,n=this._scrollBar.getWidth(),i=n>0;if(i&&!t){const r=isRTL()?"paddingLeft":"paddingRight";this._element.style[r]=`${n}px`}if(!i&&t){const r=isRTL()?"paddingRight":"paddingLeft";this._element.style[r]=`${n}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,n){return this.each(function(){const i=Modal.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof i[t]>"u")throw new TypeError(`No method named "${t}"`);i[t](n)}})}}EventHandler.on(document,EVENT_CLICK_DATA_API$2,SELECTOR_DATA_TOGGLE$2,function(e){const t=SelectorEngine.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),EventHandler.one(t,EVENT_SHOW$4,r=>{r.defaultPrevented||EventHandler.one(t,EVENT_HIDDEN$4,()=>{isVisible(this)&&this.focus()})});const n=SelectorEngine.findOne(OPEN_SELECTOR$1);n&&Modal.getInstance(n).hide(),Modal.getOrCreateInstance(t).toggle(this)});enableDismissTrigger(Modal);defineJQueryPlugin(Modal);const NAME$6="offcanvas",DATA_KEY$3="bs.offcanvas",EVENT_KEY$3=`.${DATA_KEY$3}`,DATA_API_KEY$1=".data-api",EVENT_LOAD_DATA_API$2=`load${EVENT_KEY$3}${DATA_API_KEY$1}`,ESCAPE_KEY="Escape",CLASS_NAME_SHOW$3="show",CLASS_NAME_SHOWING$1="showing",CLASS_NAME_HIDING="hiding",CLASS_NAME_BACKDROP="offcanvas-backdrop",OPEN_SELECTOR=".offcanvas.show",EVENT_SHOW$3=`show${EVENT_KEY$3}`,EVENT_SHOWN$3=`shown${EVENT_KEY$3}`,EVENT_HIDE$3=`hide${EVENT_KEY$3}`,EVENT_HIDE_PREVENTED=`hidePrevented${EVENT_KEY$3}`,EVENT_HIDDEN$3=`hidden${EVENT_KEY$3}`,EVENT_RESIZE=`resize${EVENT_KEY$3}`,EVENT_CLICK_DATA_API$1=`click${EVENT_KEY$3}${DATA_API_KEY$1}`,EVENT_KEYDOWN_DISMISS=`keydown.dismiss${EVENT_KEY$3}`,SELECTOR_DATA_TOGGLE$1='[data-bs-toggle="offcanvas"]',Default$5={backdrop:!0,keyboard:!0,scroll:!1},DefaultType$5={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Offcanvas extends BaseComponent{constructor(t,n){super(t,n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Default$5}static get DefaultType(){return DefaultType$5}static get NAME(){return NAME$6}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||EventHandler.trigger(this._element,EVENT_SHOW$3,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new ScrollBarHelper().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(CLASS_NAME_SHOWING$1);const i=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(CLASS_NAME_SHOW$3),this._element.classList.remove(CLASS_NAME_SHOWING$1),EventHandler.trigger(this._element,EVENT_SHOWN$3,{relatedTarget:t})};this._queueCallback(i,this._element,!0)}hide(){if(!this._isShown||EventHandler.trigger(this._element,EVENT_HIDE$3).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(CLASS_NAME_HIDING),this._backdrop.hide();const n=()=>{this._element.classList.remove(CLASS_NAME_SHOW$3,CLASS_NAME_HIDING),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new ScrollBarHelper().reset(),EventHandler.trigger(this._element,EVENT_HIDDEN$3)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){EventHandler.trigger(this._element,EVENT_HIDE_PREVENTED);return}this.hide()},n=!!this._config.backdrop;return new Backdrop({className:CLASS_NAME_BACKDROP,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?t:null})}_initializeFocusTrap(){return new FocusTrap({trapElement:this._element})}_addEventListeners(){EventHandler.on(this._element,EVENT_KEYDOWN_DISMISS,t=>{if(t.key===ESCAPE_KEY){if(this._config.keyboard){this.hide();return}EventHandler.trigger(this._element,EVENT_HIDE_PREVENTED)}})}static jQueryInterface(t){return this.each(function(){const n=Offcanvas.getOrCreateInstance(this,t);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}EventHandler.on(document,EVENT_CLICK_DATA_API$1,SELECTOR_DATA_TOGGLE$1,function(e){const t=SelectorEngine.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),isDisabled(this))return;EventHandler.one(t,EVENT_HIDDEN$3,()=>{isVisible(this)&&this.focus()});const n=SelectorEngine.findOne(OPEN_SELECTOR);n&&n!==t&&Offcanvas.getInstance(n).hide(),Offcanvas.getOrCreateInstance(t).toggle(this)});EventHandler.on(window,EVENT_LOAD_DATA_API$2,()=>{for(const e of SelectorEngine.find(OPEN_SELECTOR))Offcanvas.getOrCreateInstance(e).show()});EventHandler.on(window,EVENT_RESIZE,()=>{for(const e of SelectorEngine.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(e).position!=="fixed"&&Offcanvas.getOrCreateInstance(e).hide()});enableDismissTrigger(Offcanvas);defineJQueryPlugin(Offcanvas);const ARIA_ATTRIBUTE_PATTERN=/^aria-[\w-]*$/i,DefaultAllowlist={"*":["class","dir","id","lang","role",ARIA_ATTRIBUTE_PATTERN],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},uriAttributes=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),SAFE_URL_PATTERN=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,allowedAttribute=(e,t)=>{const n=e.nodeName.toLowerCase();return t.includes(n)?uriAttributes.has(n)?!!SAFE_URL_PATTERN.test(e.nodeValue):!0:t.filter(i=>i instanceof RegExp).some(i=>i.test(n))};function sanitizeHtml(e,t,n){if(!e.length)return e;if(n&&typeof n=="function")return n(e);const r=new window.DOMParser().parseFromString(e,"text/html"),a=[].concat(...r.body.querySelectorAll("*"));for(const o of a){const l=o.nodeName.toLowerCase();if(!Object.keys(t).includes(l)){o.remove();continue}const u=[].concat(...o.attributes),d=[].concat(t["*"]||[],t[l]||[]);for(const m of u)allowedAttribute(m,d)||o.removeAttribute(m.nodeName)}return r.body.innerHTML}const NAME$5="TemplateFactory",Default$4={allowList:DefaultAllowlist,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},DefaultType$4={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},DefaultContentType={entry:"(string|element|function|null)",selector:"(string|element)"};class TemplateFactory extends Config$1{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Default$4}static get DefaultType(){return DefaultType$4}static get NAME(){return NAME$5}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[r,a]of Object.entries(this._config.content))this._setContent(t,a,r);const n=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&n.classList.add(...i.split(" ")),n}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[n,i]of Object.entries(t))super._typeCheckConfig({selector:n,entry:i},DefaultContentType)}_setContent(t,n,i){const r=SelectorEngine.findOne(i,t);if(r){if(n=this._resolvePossibleFunction(n),!n){r.remove();return}if(isElement(n)){this._putElementInTemplate(getElement(n),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(n);return}r.textContent=n}}_maybeSanitize(t){return this._config.sanitize?sanitizeHtml(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return execute(t,[this])}_putElementInTemplate(t,n){if(this._config.html){n.innerHTML="",n.append(t);return}n.textContent=t.textContent}}const NAME$4="tooltip",DISALLOWED_ATTRIBUTES=new Set(["sanitize","allowList","sanitizeFn"]),CLASS_NAME_FADE$2="fade",CLASS_NAME_MODAL="modal",CLASS_NAME_SHOW$2="show",SELECTOR_TOOLTIP_INNER=".tooltip-inner",SELECTOR_MODAL=`.${CLASS_NAME_MODAL}`,EVENT_MODAL_HIDE="hide.bs.modal",TRIGGER_HOVER="hover",TRIGGER_FOCUS="focus",TRIGGER_CLICK="click",TRIGGER_MANUAL="manual",EVENT_HIDE$2="hide",EVENT_HIDDEN$2="hidden",EVENT_SHOW$2="show",EVENT_SHOWN$2="shown",EVENT_INSERTED="inserted",EVENT_CLICK$1="click",EVENT_FOCUSIN$1="focusin",EVENT_FOCUSOUT$1="focusout",EVENT_MOUSEENTER="mouseenter",EVENT_MOUSELEAVE="mouseleave",AttachmentMap={AUTO:"auto",TOP:"top",RIGHT:isRTL()?"left":"right",BOTTOM:"bottom",LEFT:isRTL()?"right":"left"},Default$3={allowList:DefaultAllowlist,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},DefaultType$3={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};let Tooltip$1=class Ni extends BaseComponent{constructor(t,n){if(typeof Popper>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,n),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Default$3}static get DefaultType(){return DefaultType$3}static get NAME(){return NAME$4}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),EventHandler.off(this._element.closest(SELECTOR_MODAL),EVENT_MODAL_HIDE,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const t=EventHandler.trigger(this._element,this.constructor.eventName(EVENT_SHOW$2)),i=(findShadowRoot(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!i)return;this._disposePopper();const r=this._getTipElement();this._element.setAttribute("aria-describedby",r.getAttribute("id"));const{container:a}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(a.append(r),EventHandler.trigger(this._element,this.constructor.eventName(EVENT_INSERTED))),this._popper=this._createPopper(r),r.classList.add(CLASS_NAME_SHOW$2),"ontouchstart"in document.documentElement)for(const l of[].concat(...document.body.children))EventHandler.on(l,"mouseover",noop$3);const o=()=>{EventHandler.trigger(this._element,this.constructor.eventName(EVENT_SHOWN$2)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(o,this.tip,this._isAnimated())}hide(){if(!this._isShown()||EventHandler.trigger(this._element,this.constructor.eventName(EVENT_HIDE$2)).defaultPrevented)return;if(this._getTipElement().classList.remove(CLASS_NAME_SHOW$2),"ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))EventHandler.off(r,"mouseover",noop$3);this._activeTrigger[TRIGGER_CLICK]=!1,this._activeTrigger[TRIGGER_FOCUS]=!1,this._activeTrigger[TRIGGER_HOVER]=!1,this._isHovered=null;const i=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),EventHandler.trigger(this._element,this.constructor.eventName(EVENT_HIDDEN$2)))};this._queueCallback(i,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const n=this._getTemplateFactory(t).toHtml();if(!n)return null;n.classList.remove(CLASS_NAME_FADE$2,CLASS_NAME_SHOW$2),n.classList.add(`bs-${this.constructor.NAME}-auto`);const i=getUID(this.constructor.NAME).toString();return n.setAttribute("id",i),this._isAnimated()&&n.classList.add(CLASS_NAME_FADE$2),n}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new TemplateFactory({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[SELECTOR_TOOLTIP_INNER]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(CLASS_NAME_FADE$2)}_isShown(){return this.tip&&this.tip.classList.contains(CLASS_NAME_SHOW$2)}_createPopper(t){const n=execute(this._config.placement,[this,t,this._element]),i=AttachmentMap[n.toUpperCase()];return createPopper(this._element,t,this._getPopperConfig(i))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(n=>Number.parseInt(n,10)):typeof t=="function"?n=>t(n,this._element):t}_resolvePossibleFunction(t){return execute(t,[this._element])}_getPopperConfig(t){const n={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:i=>{this._getTipElement().setAttribute("data-popper-placement",i.state.placement)}}]};return{...n,...execute(this._config.popperConfig,[n])}}_setListeners(){const t=this._config.trigger.split(" ");for(const n of t)if(n==="click")EventHandler.on(this._element,this.constructor.eventName(EVENT_CLICK$1),this._config.selector,i=>{this._initializeOnDelegatedTarget(i).toggle()});else if(n!==TRIGGER_MANUAL){const i=n===TRIGGER_HOVER?this.constructor.eventName(EVENT_MOUSEENTER):this.constructor.eventName(EVENT_FOCUSIN$1),r=n===TRIGGER_HOVER?this.constructor.eventName(EVENT_MOUSELEAVE):this.constructor.eventName(EVENT_FOCUSOUT$1);EventHandler.on(this._element,i,this._config.selector,a=>{const o=this._initializeOnDelegatedTarget(a);o._activeTrigger[a.type==="focusin"?TRIGGER_FOCUS:TRIGGER_HOVER]=!0,o._enter()}),EventHandler.on(this._element,r,this._config.selector,a=>{const o=this._initializeOnDelegatedTarget(a);o._activeTrigger[a.type==="focusout"?TRIGGER_FOCUS:TRIGGER_HOVER]=o._element.contains(a.relatedTarget),o._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},EventHandler.on(this._element.closest(SELECTOR_MODAL),EVENT_MODAL_HIDE,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,n){clearTimeout(this._timeout),this._timeout=setTimeout(t,n)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const n=Manipulator.getDataAttributes(this._element);for(const i of Object.keys(n))DISALLOWED_ATTRIBUTES.has(i)&&delete n[i];return t={...n,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:getElement(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[n,i]of Object.entries(this._config))this.constructor.Default[n]!==i&&(t[n]=i);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const n=Ni.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}};defineJQueryPlugin(Tooltip$1);const NAME$3="popover",SELECTOR_TITLE=".popover-header",SELECTOR_CONTENT=".popover-body",Default$2={...Tooltip$1.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},DefaultType$2={...Tooltip$1.DefaultType,content:"(null|string|element|function)"};class Popover extends Tooltip$1{static get Default(){return Default$2}static get DefaultType(){return DefaultType$2}static get NAME(){return NAME$3}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[SELECTOR_TITLE]:this._getTitle(),[SELECTOR_CONTENT]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const n=Popover.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}}defineJQueryPlugin(Popover);const NAME$2="scrollspy",DATA_KEY$2="bs.scrollspy",EVENT_KEY$2=`.${DATA_KEY$2}`,DATA_API_KEY=".data-api",EVENT_ACTIVATE=`activate${EVENT_KEY$2}`,EVENT_CLICK=`click${EVENT_KEY$2}`,EVENT_LOAD_DATA_API$1=`load${EVENT_KEY$2}${DATA_API_KEY}`,CLASS_NAME_DROPDOWN_ITEM="dropdown-item",CLASS_NAME_ACTIVE$1="active",SELECTOR_DATA_SPY='[data-bs-spy="scroll"]',SELECTOR_TARGET_LINKS="[href]",SELECTOR_NAV_LIST_GROUP=".nav, .list-group",SELECTOR_NAV_LINKS=".nav-link",SELECTOR_NAV_ITEMS=".nav-item",SELECTOR_LIST_ITEMS=".list-group-item",SELECTOR_LINK_ITEMS=`${SELECTOR_NAV_LINKS}, ${SELECTOR_NAV_ITEMS} > ${SELECTOR_NAV_LINKS}, ${SELECTOR_LIST_ITEMS}`,SELECTOR_DROPDOWN=".dropdown",SELECTOR_DROPDOWN_TOGGLE$1=".dropdown-toggle",Default$1={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},DefaultType$1={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class ScrollSpy extends BaseComponent{constructor(t,n){super(t,n),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Default$1}static get DefaultType(){return DefaultType$1}static get NAME(){return NAME$2}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=getElement(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(n=>Number.parseFloat(n))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(EventHandler.off(this._config.target,EVENT_CLICK),EventHandler.on(this._config.target,EVENT_CLICK,SELECTOR_TARGET_LINKS,t=>{const n=this._observableSections.get(t.target.hash);if(n){t.preventDefault();const i=this._rootElement||window,r=n.offsetTop-this._element.offsetTop;if(i.scrollTo){i.scrollTo({top:r,behavior:"smooth"});return}i.scrollTop=r}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(n=>this._observerCallback(n),t)}_observerCallback(t){const n=o=>this._targetLinks.get(`#${o.target.id}`),i=o=>{this._previousScrollData.visibleEntryTop=o.target.offsetTop,this._process(n(o))},r=(this._rootElement||document.documentElement).scrollTop,a=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(n(o));continue}const l=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(a&&l){if(i(o),!r)return;continue}!a&&!l&&i(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=SelectorEngine.find(SELECTOR_TARGET_LINKS,this._config.target);for(const n of t){if(!n.hash||isDisabled(n))continue;const i=SelectorEngine.findOne(decodeURI(n.hash),this._element);isVisible(i)&&(this._targetLinks.set(decodeURI(n.hash),n),this._observableSections.set(n.hash,i))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(CLASS_NAME_ACTIVE$1),this._activateParents(t),EventHandler.trigger(this._element,EVENT_ACTIVATE,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(CLASS_NAME_DROPDOWN_ITEM)){SelectorEngine.findOne(SELECTOR_DROPDOWN_TOGGLE$1,t.closest(SELECTOR_DROPDOWN)).classList.add(CLASS_NAME_ACTIVE$1);return}for(const n of SelectorEngine.parents(t,SELECTOR_NAV_LIST_GROUP))for(const i of SelectorEngine.prev(n,SELECTOR_LINK_ITEMS))i.classList.add(CLASS_NAME_ACTIVE$1)}_clearActiveClass(t){t.classList.remove(CLASS_NAME_ACTIVE$1);const n=SelectorEngine.find(`${SELECTOR_TARGET_LINKS}.${CLASS_NAME_ACTIVE$1}`,t);for(const i of n)i.classList.remove(CLASS_NAME_ACTIVE$1)}static jQueryInterface(t){return this.each(function(){const n=ScrollSpy.getOrCreateInstance(this,t);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t]()}})}}EventHandler.on(window,EVENT_LOAD_DATA_API$1,()=>{for(const e of SelectorEngine.find(SELECTOR_DATA_SPY))ScrollSpy.getOrCreateInstance(e)});defineJQueryPlugin(ScrollSpy);const NAME$1="tab",DATA_KEY$1="bs.tab",EVENT_KEY$1=`.${DATA_KEY$1}`,EVENT_HIDE$1=`hide${EVENT_KEY$1}`,EVENT_HIDDEN$1=`hidden${EVENT_KEY$1}`,EVENT_SHOW$1=`show${EVENT_KEY$1}`,EVENT_SHOWN$1=`shown${EVENT_KEY$1}`,EVENT_CLICK_DATA_API=`click${EVENT_KEY$1}`,EVENT_KEYDOWN=`keydown${EVENT_KEY$1}`,EVENT_LOAD_DATA_API=`load${EVENT_KEY$1}`,ARROW_LEFT_KEY="ArrowLeft",ARROW_RIGHT_KEY="ArrowRight",ARROW_UP_KEY="ArrowUp",ARROW_DOWN_KEY="ArrowDown",HOME_KEY="Home",END_KEY="End",CLASS_NAME_ACTIVE="active",CLASS_NAME_FADE$1="fade",CLASS_NAME_SHOW$1="show",CLASS_DROPDOWN="dropdown",SELECTOR_DROPDOWN_TOGGLE=".dropdown-toggle",SELECTOR_DROPDOWN_MENU=".dropdown-menu",NOT_SELECTOR_DROPDOWN_TOGGLE=`:not(${SELECTOR_DROPDOWN_TOGGLE})`,SELECTOR_TAB_PANEL='.list-group, .nav, [role="tablist"]',SELECTOR_OUTER=".nav-item, .list-group-item",SELECTOR_INNER=`.nav-link${NOT_SELECTOR_DROPDOWN_TOGGLE}, .list-group-item${NOT_SELECTOR_DROPDOWN_TOGGLE}, [role="tab"]${NOT_SELECTOR_DROPDOWN_TOGGLE}`,SELECTOR_DATA_TOGGLE='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',SELECTOR_INNER_ELEM=`${SELECTOR_INNER}, ${SELECTOR_DATA_TOGGLE}`,SELECTOR_DATA_TOGGLE_ACTIVE=`.${CLASS_NAME_ACTIVE}[data-bs-toggle="tab"], .${CLASS_NAME_ACTIVE}[data-bs-toggle="pill"], .${CLASS_NAME_ACTIVE}[data-bs-toggle="list"]`;class Tab extends BaseComponent{constructor(t){super(t),this._parent=this._element.closest(SELECTOR_TAB_PANEL),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),EventHandler.on(this._element,EVENT_KEYDOWN,n=>this._keydown(n)))}static get NAME(){return NAME$1}show(){const t=this._element;if(this._elemIsActive(t))return;const n=this._getActiveElem(),i=n?EventHandler.trigger(n,EVENT_HIDE$1,{relatedTarget:t}):null;EventHandler.trigger(t,EVENT_SHOW$1,{relatedTarget:n}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(n,t),this._activate(t,n))}_activate(t,n){if(!t)return;t.classList.add(CLASS_NAME_ACTIVE),this._activate(SelectorEngine.getElementFromSelector(t));const i=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(CLASS_NAME_SHOW$1);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),EventHandler.trigger(t,EVENT_SHOWN$1,{relatedTarget:n})};this._queueCallback(i,t,t.classList.contains(CLASS_NAME_FADE$1))}_deactivate(t,n){if(!t)return;t.classList.remove(CLASS_NAME_ACTIVE),t.blur(),this._deactivate(SelectorEngine.getElementFromSelector(t));const i=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(CLASS_NAME_SHOW$1);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),EventHandler.trigger(t,EVENT_HIDDEN$1,{relatedTarget:n})};this._queueCallback(i,t,t.classList.contains(CLASS_NAME_FADE$1))}_keydown(t){if(![ARROW_LEFT_KEY,ARROW_RIGHT_KEY,ARROW_UP_KEY,ARROW_DOWN_KEY,HOME_KEY,END_KEY].includes(t.key))return;t.stopPropagation(),t.preventDefault();const n=this._getChildren().filter(r=>!isDisabled(r));let i;if([HOME_KEY,END_KEY].includes(t.key))i=n[t.key===HOME_KEY?0:n.length-1];else{const r=[ARROW_RIGHT_KEY,ARROW_DOWN_KEY].includes(t.key);i=getNextActiveElement(n,t.target,r,!0)}i&&(i.focus({preventScroll:!0}),Tab.getOrCreateInstance(i).show())}_getChildren(){return SelectorEngine.find(SELECTOR_INNER_ELEM,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,n){this._setAttributeIfNotExists(t,"role","tablist");for(const i of n)this._setInitialAttributesOnChild(i)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const n=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",n),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),n||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const n=SelectorEngine.getElementFromSelector(t);n&&(this._setAttributeIfNotExists(n,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(n,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,n){const i=this._getOuterElement(t);if(!i.classList.contains(CLASS_DROPDOWN))return;const r=(a,o)=>{const l=SelectorEngine.findOne(a,i);l&&l.classList.toggle(o,n)};r(SELECTOR_DROPDOWN_TOGGLE,CLASS_NAME_ACTIVE),r(SELECTOR_DROPDOWN_MENU,CLASS_NAME_SHOW$1),i.setAttribute("aria-expanded",n)}_setAttributeIfNotExists(t,n,i){t.hasAttribute(n)||t.setAttribute(n,i)}_elemIsActive(t){return t.classList.contains(CLASS_NAME_ACTIVE)}_getInnerElement(t){return t.matches(SELECTOR_INNER_ELEM)?t:SelectorEngine.findOne(SELECTOR_INNER_ELEM,t)}_getOuterElement(t){return t.closest(SELECTOR_OUTER)||t}static jQueryInterface(t){return this.each(function(){const n=Tab.getOrCreateInstance(this);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t]()}})}}EventHandler.on(document,EVENT_CLICK_DATA_API,SELECTOR_DATA_TOGGLE,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),!isDisabled(this)&&Tab.getOrCreateInstance(this).show()});EventHandler.on(window,EVENT_LOAD_DATA_API,()=>{for(const e of SelectorEngine.find(SELECTOR_DATA_TOGGLE_ACTIVE))Tab.getOrCreateInstance(e)});defineJQueryPlugin(Tab);const NAME="toast",DATA_KEY="bs.toast",EVENT_KEY=`.${DATA_KEY}`,EVENT_MOUSEOVER=`mouseover${EVENT_KEY}`,EVENT_MOUSEOUT=`mouseout${EVENT_KEY}`,EVENT_FOCUSIN=`focusin${EVENT_KEY}`,EVENT_FOCUSOUT=`focusout${EVENT_KEY}`,EVENT_HIDE=`hide${EVENT_KEY}`,EVENT_HIDDEN=`hidden${EVENT_KEY}`,EVENT_SHOW=`show${EVENT_KEY}`,EVENT_SHOWN=`shown${EVENT_KEY}`,CLASS_NAME_FADE="fade",CLASS_NAME_HIDE="hide",CLASS_NAME_SHOW="show",CLASS_NAME_SHOWING="showing",DefaultType={animation:"boolean",autohide:"boolean",delay:"number"},Default={animation:!0,autohide:!0,delay:5e3};class Toast extends BaseComponent{constructor(t,n){super(t,n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Default}static get DefaultType(){return DefaultType}static get NAME(){return NAME}show(){if(EventHandler.trigger(this._element,EVENT_SHOW).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(CLASS_NAME_FADE);const n=()=>{this._element.classList.remove(CLASS_NAME_SHOWING),EventHandler.trigger(this._element,EVENT_SHOWN),this._maybeScheduleHide()};this._element.classList.remove(CLASS_NAME_HIDE),reflow(this._element),this._element.classList.add(CLASS_NAME_SHOW,CLASS_NAME_SHOWING),this._queueCallback(n,this._element,this._config.animation)}hide(){if(!this.isShown()||EventHandler.trigger(this._element,EVENT_HIDE).defaultPrevented)return;const n=()=>{this._element.classList.add(CLASS_NAME_HIDE),this._element.classList.remove(CLASS_NAME_SHOWING,CLASS_NAME_SHOW),EventHandler.trigger(this._element,EVENT_HIDDEN)};this._element.classList.add(CLASS_NAME_SHOWING),this._queueCallback(n,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(CLASS_NAME_SHOW),super.dispose()}isShown(){return this._element.classList.contains(CLASS_NAME_SHOW)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,n){switch(t.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=n;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=n;break}}if(n){this._clearTimeout();return}const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){EventHandler.on(this._element,EVENT_MOUSEOVER,t=>this._onInteraction(t,!0)),EventHandler.on(this._element,EVENT_MOUSEOUT,t=>this._onInteraction(t,!1)),EventHandler.on(this._element,EVENT_FOCUSIN,t=>this._onInteraction(t,!0)),EventHandler.on(this._element,EVENT_FOCUSOUT,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const n=Toast.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}enableDismissTrigger(Toast);defineJQueryPlugin(Toast);function toDate(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function constructFrom(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function addDays(e,t){const n=toDate(e);return isNaN(t)?constructFrom(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function addMonths(e,t){const n=toDate(e);if(isNaN(t))return constructFrom(e,NaN);if(!t)return n;const i=n.getDate(),r=constructFrom(e,n.getTime());r.setMonth(n.getMonth()+t+1,0);const a=r.getDate();return i>=a?r:(n.setFullYear(r.getFullYear(),r.getMonth(),i),n)}function addMilliseconds(e,t){const n=+toDate(e);return constructFrom(e,n+t)}const millisecondsInWeek=6048e5,millisecondsInDay=864e5,millisecondsInMinute=6e4,millisecondsInHour=36e5,millisecondsInSecond=1e3;function addHours(e,t){return addMilliseconds(e,t*millisecondsInHour)}let defaultOptions={};function getDefaultOptions$1(){return defaultOptions}function startOfWeek(e,t){var l,u,d,m;const n=getDefaultOptions$1(),i=(t==null?void 0:t.weekStartsOn)??((u=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??n.weekStartsOn??((m=(d=n.locale)==null?void 0:d.options)==null?void 0:m.weekStartsOn)??0,r=toDate(e),a=r.getDay(),o=(a<i?7:0)+a-i;return r.setDate(r.getDate()-o),r.setHours(0,0,0,0),r}function startOfISOWeek(e){return startOfWeek(e,{weekStartsOn:1})}function getISOWeekYear(e){const t=toDate(e),n=t.getFullYear(),i=constructFrom(e,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);const r=startOfISOWeek(i),a=constructFrom(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const o=startOfISOWeek(a);return t.getTime()>=r.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function startOfDay(e){const t=toDate(e);return t.setHours(0,0,0,0),t}function getTimezoneOffsetInMilliseconds(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function differenceInCalendarDays(e,t){const n=startOfDay(e),i=startOfDay(t),r=n.getTime()-getTimezoneOffsetInMilliseconds(n),a=i.getTime()-getTimezoneOffsetInMilliseconds(i);return Math.round((r-a)/millisecondsInDay)}function startOfISOWeekYear(e){const t=getISOWeekYear(e),n=constructFrom(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),startOfISOWeek(n)}function addMinutes(e,t){return addMilliseconds(e,t*millisecondsInMinute)}function addQuarters(e,t){const n=t*3;return addMonths(e,n)}function addSeconds(e,t){return addMilliseconds(e,t*1e3)}function addWeeks(e,t){const n=t*7;return addDays(e,n)}function addYears(e,t){return addMonths(e,t*12)}function compareAsc(e,t){const n=toDate(e),i=toDate(t),r=n.getTime()-i.getTime();return r<0?-1:r>0?1:r}function isDate(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function isValid(e){if(!isDate(e)&&typeof e!="number")return!1;const t=toDate(e);return!isNaN(Number(t))}function differenceInCalendarMonths(e,t){const n=toDate(e),i=toDate(t),r=n.getFullYear()-i.getFullYear(),a=n.getMonth()-i.getMonth();return r*12+a}function differenceInCalendarYears(e,t){const n=toDate(e),i=toDate(t);return n.getFullYear()-i.getFullYear()}function differenceInDays(e,t){const n=toDate(e),i=toDate(t),r=compareLocalAsc(n,i),a=Math.abs(differenceInCalendarDays(n,i));n.setDate(n.getDate()-r*a);const o=+(compareLocalAsc(n,i)===-r),l=r*(a-o);return l===0?0:l}function compareLocalAsc(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function differenceInMilliseconds(e,t){return toDate(e).getTime()-toDate(t).getTime()}function getRoundingMethod(e){return e?Math[e]:Math.trunc}function differenceInHours(e,t,n){const i=differenceInMilliseconds(e,t)/millisecondsInHour;return getRoundingMethod(n==null?void 0:n.roundingMethod)(i)}function differenceInMinutes(e,t,n){const i=differenceInMilliseconds(e,t)/millisecondsInMinute;return getRoundingMethod(n==null?void 0:n.roundingMethod)(i)}function endOfDay(e){const t=toDate(e);return t.setHours(23,59,59,999),t}function endOfMonth(e){const t=toDate(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function isLastDayOfMonth(e){const t=toDate(e);return+endOfDay(t)==+endOfMonth(t)}function differenceInMonths(e,t){const n=toDate(e),i=toDate(t),r=compareAsc(n,i),a=Math.abs(differenceInCalendarMonths(n,i));let o;if(a<1)o=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-r*a);let l=compareAsc(n,i)===-r;isLastDayOfMonth(toDate(e))&&a===1&&compareAsc(e,i)===1&&(l=!1),o=r*(a-Number(l))}return o===0?0:o}function differenceInQuarters(e,t,n){const i=differenceInMonths(e,t)/3;return getRoundingMethod(n==null?void 0:n.roundingMethod)(i)}function differenceInSeconds(e,t,n){const i=differenceInMilliseconds(e,t)/1e3;return getRoundingMethod(n==null?void 0:n.roundingMethod)(i)}function differenceInWeeks(e,t,n){const i=differenceInDays(e,t)/7;return getRoundingMethod(n==null?void 0:n.roundingMethod)(i)}function differenceInYears(e,t){const n=toDate(e),i=toDate(t),r=compareAsc(n,i),a=Math.abs(differenceInCalendarYears(n,i));n.setFullYear(1584),i.setFullYear(1584);const o=compareAsc(n,i)===-r,l=r*(a-+o);return l===0?0:l}function startOfMinute(e){const t=toDate(e);return t.setSeconds(0,0),t}function startOfQuarter(e){const t=toDate(e),n=t.getMonth(),i=n-n%3;return t.setMonth(i,1),t.setHours(0,0,0,0),t}function startOfMonth(e){const t=toDate(e);return t.setDate(1),t.setHours(0,0,0,0),t}function endOfYear(e){const t=toDate(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function startOfYear(e){const t=toDate(e),n=constructFrom(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function endOfHour(e){const t=toDate(e);return t.setMinutes(59,59,999),t}function endOfWeek(e,t){var l,u,d,m;const n=getDefaultOptions$1(),i=(t==null?void 0:t.weekStartsOn)??((u=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??n.weekStartsOn??((m=(d=n.locale)==null?void 0:d.options)==null?void 0:m.weekStartsOn)??0,r=toDate(e),a=r.getDay(),o=(a<i?-7:0)+6-(a-i);return r.setDate(r.getDate()+o),r.setHours(23,59,59,999),r}function endOfMinute(e){const t=toDate(e);return t.setSeconds(59,999),t}function endOfQuarter(e){const t=toDate(e),n=t.getMonth(),i=n-n%3+3;return t.setMonth(i,0),t.setHours(23,59,59,999),t}function endOfSecond(e){const t=toDate(e);return t.setMilliseconds(999),t}const formatDistanceLocale$t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},formatDistance$u=(e,t,n)=>{let i;const r=formatDistanceLocale$t[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function buildFormatLongFn(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const dateFormats$v={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},timeFormats$v={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats$v={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$v={date:buildFormatLongFn({formats:dateFormats$v,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$v,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$v,defaultWidth:"full"})},formatRelativeLocale$u={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},formatRelative$u=(e,t,n,i)=>formatRelativeLocale$u[e];function buildLocalizeFn(e){return(t,n)=>{const i=n!=null&&n.context?String(n.context):"standalone";let r;if(i==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):o;r=e.formattingValues[l]||e.formattingValues[o]}else{const o=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;r=e.values[l]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return r[a]}}const eraValues$u={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},quarterValues$u={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},monthValues$u={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},dayValues$u={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriodValues$u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},formattingDayPeriodValues$l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ordinalNumber$u=(e,t)=>{const n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},localize$u={ordinalNumber:ordinalNumber$u,era:buildLocalizeFn({values:eraValues$u,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$u,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$u,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$u,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$u,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$l,defaultFormattingWidth:"wide"})};function buildMatchFn(e){return(t,n={})=>{const i=n.width,r=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(r);if(!a)return null;const o=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?findIndex(l,g=>g.test(o)):findKey(l,g=>g.test(o));let d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;const m=t.slice(o.length);return{value:d,rest:m}}}function findKey(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function findIndex(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function buildMatchPatternFn(e){return(t,n={})=>{const i=t.match(e.matchPattern);if(!i)return null;const r=i[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const l=t.slice(r.length);return{value:o,rest:l}}}const matchOrdinalNumberPattern$u=/^(\d+)(th|st|nd|rd)?/i,parseOrdinalNumberPattern$u=/\d+/i,matchEraPatterns$u={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},parseEraPatterns$u={any:[/^b/i,/^(a|c)/i]},matchQuarterPatterns$u={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},parseQuarterPatterns$u={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$u={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},parseMonthPatterns$u={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$u={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},parseDayPatterns$u={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},matchDayPeriodPatterns$u={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},parseDayPeriodPatterns$u={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},match$u={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$u,parsePattern:parseOrdinalNumberPattern$u,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$u,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$u,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$u,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$u,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$u,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$u,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$u,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$u,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$u,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$u,defaultParseWidth:"any"})},enUS={code:"en-US",formatDistance:formatDistance$u,formatLong:formatLong$v,formatRelative:formatRelative$u,localize:localize$u,match:match$u,options:{weekStartsOn:0,firstWeekContainsDate:1}};function getDayOfYear(e){const t=toDate(e);return differenceInCalendarDays(t,startOfYear(t))+1}function getISOWeek(e){const t=toDate(e),n=startOfISOWeek(t).getTime()-startOfISOWeekYear(t).getTime();return Math.round(n/millisecondsInWeek)+1}function getWeekYear(e,t){var m,g,_,v;const n=toDate(e),i=n.getFullYear(),r=getDefaultOptions$1(),a=(t==null?void 0:t.firstWeekContainsDate)??((g=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??r.firstWeekContainsDate??((v=(_=r.locale)==null?void 0:_.options)==null?void 0:v.firstWeekContainsDate)??1,o=constructFrom(e,0);o.setFullYear(i+1,0,a),o.setHours(0,0,0,0);const l=startOfWeek(o,t),u=constructFrom(e,0);u.setFullYear(i,0,a),u.setHours(0,0,0,0);const d=startOfWeek(u,t);return n.getTime()>=l.getTime()?i+1:n.getTime()>=d.getTime()?i:i-1}function startOfWeekYear(e,t){var l,u,d,m;const n=getDefaultOptions$1(),i=(t==null?void 0:t.firstWeekContainsDate)??((u=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:u.firstWeekContainsDate)??n.firstWeekContainsDate??((m=(d=n.locale)==null?void 0:d.options)==null?void 0:m.firstWeekContainsDate)??1,r=getWeekYear(e,t),a=constructFrom(e,0);return a.setFullYear(r,0,i),a.setHours(0,0,0,0),startOfWeek(a,t)}function getWeek(e,t){const n=toDate(e),i=startOfWeek(n,t).getTime()-startOfWeekYear(n,t).getTime();return Math.round(i/millisecondsInWeek)+1}function addLeadingZeros(e,t){const n=e<0?"-":"",i=Math.abs(e).toString().padStart(t,"0");return n+i}const lightFormatters={y(e,t){const n=e.getFullYear(),i=n>0?n:1-n;return addLeadingZeros(t==="yy"?i%100:i,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):addLeadingZeros(n+1,2)},d(e,t){return addLeadingZeros(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return addLeadingZeros(e.getHours()%12||12,t.length)},H(e,t){return addLeadingZeros(e.getHours(),t.length)},m(e,t){return addLeadingZeros(e.getMinutes(),t.length)},s(e,t){return addLeadingZeros(e.getSeconds(),t.length)},S(e,t){const n=t.length,i=e.getMilliseconds(),r=Math.floor(i*Math.pow(10,n-3));return addLeadingZeros(r,t.length)}},dayPeriodEnum={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},formatters$1={G:function(e,t,n){const i=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const i=e.getFullYear(),r=i>0?i:1-i;return n.ordinalNumber(r,{unit:"year"})}return lightFormatters.y(e,t)},Y:function(e,t,n,i){const r=getWeekYear(e,i),a=r>0?r:1-r;if(t==="YY"){const o=a%100;return addLeadingZeros(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):addLeadingZeros(a,t.length)},R:function(e,t){const n=getISOWeekYear(e);return addLeadingZeros(n,t.length)},u:function(e,t){const n=e.getFullYear();return addLeadingZeros(n,t.length)},Q:function(e,t,n){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return addLeadingZeros(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return addLeadingZeros(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){const i=e.getMonth();switch(t){case"M":case"MM":return lightFormatters.M(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){const i=e.getMonth();switch(t){case"L":return String(i+1);case"LL":return addLeadingZeros(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){const r=getWeek(e,i);return t==="wo"?n.ordinalNumber(r,{unit:"week"}):addLeadingZeros(r,t.length)},I:function(e,t,n){const i=getISOWeek(e);return t==="Io"?n.ordinalNumber(i,{unit:"week"}):addLeadingZeros(i,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):lightFormatters.d(e,t)},D:function(e,t,n){const i=getDayOfYear(e);return t==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):addLeadingZeros(i,t.length)},E:function(e,t,n){const i=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){const r=e.getDay(),a=(r-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return addLeadingZeros(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});case"eeee":default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){const r=e.getDay(),a=(r-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return addLeadingZeros(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});case"cccc":default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){const i=e.getDay(),r=i===0?7:i;switch(t){case"i":return String(r);case"ii":return addLeadingZeros(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const i=e.getHours();let r;switch(i===12?r=dayPeriodEnum.noon:i===0?r=dayPeriodEnum.midnight:r=i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){const i=e.getHours();let r;switch(i>=17?r=dayPeriodEnum.evening:i>=12?r=dayPeriodEnum.afternoon:i>=4?r=dayPeriodEnum.morning:r=dayPeriodEnum.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let i=e.getHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return lightFormatters.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):lightFormatters.H(e,t)},K:function(e,t,n){const i=e.getHours()%12;return t==="Ko"?n.ordinalNumber(i,{unit:"hour"}):addLeadingZeros(i,t.length)},k:function(e,t,n){let i=e.getHours();return i===0&&(i=24),t==="ko"?n.ordinalNumber(i,{unit:"hour"}):addLeadingZeros(i,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):lightFormatters.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):lightFormatters.s(e,t)},S:function(e,t){return lightFormatters.S(e,t)},X:function(e,t,n,i){const a=(i._originalDate||e).getTimezoneOffset();if(a===0)return"Z";switch(t){case"X":return formatTimezoneWithOptionalMinutes(a);case"XXXX":case"XX":return formatTimezone(a);case"XXXXX":case"XXX":default:return formatTimezone(a,":")}},x:function(e,t,n,i){const a=(i._originalDate||e).getTimezoneOffset();switch(t){case"x":return formatTimezoneWithOptionalMinutes(a);case"xxxx":case"xx":return formatTimezone(a);case"xxxxx":case"xxx":default:return formatTimezone(a,":")}},O:function(e,t,n,i){const a=(i._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(a,":");case"OOOO":default:return"GMT"+formatTimezone(a,":")}},z:function(e,t,n,i){const a=(i._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort(a,":");case"zzzz":default:return"GMT"+formatTimezone(a,":")}},t:function(e,t,n,i){const r=i._originalDate||e,a=Math.floor(r.getTime()/1e3);return addLeadingZeros(a,t.length)},T:function(e,t,n,i){const a=(i._originalDate||e).getTime();return addLeadingZeros(a,t.length)}};function formatTimezoneShort(e,t=""){const n=e>0?"-":"+",i=Math.abs(e),r=Math.floor(i/60),a=i%60;return a===0?n+String(r):n+String(r)+t+addLeadingZeros(a,2)}function formatTimezoneWithOptionalMinutes(e,t){return e%60===0?(e>0?"-":"+")+addLeadingZeros(Math.abs(e)/60,2):formatTimezone(e,t)}function formatTimezone(e,t=""){const n=e>0?"-":"+",i=Math.abs(e),r=addLeadingZeros(Math.floor(i/60),2),a=addLeadingZeros(i%60,2);return n+r+t+a}const dateLongFormatter=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},timeLongFormatter=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},dateTimeLongFormatter=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],i=n[1],r=n[2];if(!r)return dateLongFormatter(e,t);let a;switch(i){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",dateLongFormatter(i,t)).replace("{{time}}",timeLongFormatter(r,t))},longFormatters={p:timeLongFormatter,P:dateTimeLongFormatter},protectedDayOfYearTokens=["D","DD"],protectedWeekYearTokens=["YY","YYYY"];function isProtectedDayOfYearToken(e){return protectedDayOfYearTokens.indexOf(e)!==-1}function isProtectedWeekYearToken(e){return protectedWeekYearTokens.indexOf(e)!==-1}function throwProtectedError(e,t,n){if(e==="YYYY")throw new RangeError(`Use \`yyyy\` instead of \`YYYY\` (in \`${t}\`) for formatting years to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(e==="YY")throw new RangeError(`Use \`yy\` instead of \`YY\` (in \`${t}\`) for formatting years to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(e==="D")throw new RangeError(`Use \`d\` instead of \`D\` (in \`${t}\`) for formatting days of the month to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(e==="DD")throw new RangeError(`Use \`dd\` instead of \`DD\` (in \`${t}\`) for formatting days of the month to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`)}const formattingTokensRegExp$1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp$1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp$1=/^'([^]*?)'?$/,doubleQuoteRegExp$1=/''/g,unescapedLatinCharacterRegExp$1=/[a-zA-Z]/;function format(e,t,n){var m,g,_,v,w,E,x,M;const i=getDefaultOptions$1(),r=(n==null?void 0:n.locale)??i.locale??enUS,a=(n==null?void 0:n.firstWeekContainsDate)??((g=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??i.firstWeekContainsDate??((v=(_=i.locale)==null?void 0:_.options)==null?void 0:v.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((E=(w=n==null?void 0:n.locale)==null?void 0:w.options)==null?void 0:E.weekStartsOn)??i.weekStartsOn??((M=(x=i.locale)==null?void 0:x.options)==null?void 0:M.weekStartsOn)??0,l=toDate(e);if(!isValid(l))throw new RangeError("Invalid time value");const u={firstWeekContainsDate:a,weekStartsOn:o,locale:r,_originalDate:l};return t.match(longFormattingTokensRegExp$1).map(function(S){const R=S[0];if(R==="p"||R==="P"){const W=longFormatters[R];return W(S,r.formatLong)}return S}).join("").match(formattingTokensRegExp$1).map(function(S){if(S==="''")return"'";const R=S[0];if(R==="'")return cleanEscapedString$1(S);const W=formatters$1[R];if(W)return!(n!=null&&n.useAdditionalWeekYearTokens)&&isProtectedWeekYearToken(S)&&throwProtectedError(S,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&isProtectedDayOfYearToken(S)&&throwProtectedError(S,t,String(e)),W(l,S,r.localize,u);if(R.match(unescapedLatinCharacterRegExp$1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return S}).join("")}function cleanEscapedString$1(e){const t=e.match(escapedStringRegExp$1);return t?t[1].replace(doubleQuoteRegExp$1,"'"):e}function getDefaultOptions(){return Object.assign({},getDefaultOptions$1())}function getISODay(e){let n=toDate(e).getDay();return n===0&&(n=7),n}function transpose(e,t){const n=t instanceof Date?constructFrom(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}const TIMEZONE_UNIT_PRIORITY=10;class Setter{constructor(){Y(this,"subPriority",0)}validate(t,n){return!0}}class ValueSetter extends Setter{constructor(t,n,i,r,a){super(),this.value=t,this.validateValue=n,this.setValue=i,this.priority=r,a&&(this.subPriority=a)}validate(t,n){return this.validateValue(t,this.value,n)}set(t,n,i){return this.setValue(t,n,this.value,i)}}class DateToSystemTimezoneSetter extends Setter{constructor(){super(...arguments);Y(this,"priority",TIMEZONE_UNIT_PRIORITY);Y(this,"subPriority",-1)}set(n,i){return i.timestampIsSet?n:constructFrom(n,transpose(n,Date))}}class Parser{run(t,n,i,r){const a=this.parse(t,n,i,r);return a?{setter:new ValueSetter(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(t,n,i){return!0}}class EraParser extends Parser{constructor(){super(...arguments);Y(this,"priority",140);Y(this,"incompatibleTokens",["R","u","t","T"])}parse(n,i,r){switch(i){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"})||r.era(n,{width:"narrow"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})||r.era(n,{width:"abbreviated"})||r.era(n,{width:"narrow"})}}set(n,i,r){return i.era=r,n.setFullYear(r,0,1),n.setHours(0,0,0,0),n}}const numericPatterns={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},timezonePatterns={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function mapValue(e,t){return e&&{value:t(e.value),rest:e.rest}}function parseNumericPattern(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function parseTimezonePattern(e,t){const n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};const i=n[1]==="+"?1:-1,r=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:i*(r*millisecondsInHour+a*millisecondsInMinute+o*millisecondsInSecond),rest:t.slice(n[0].length)}}function parseAnyDigitsSigned(e){return parseNumericPattern(numericPatterns.anyDigitsSigned,e)}function parseNDigits(e,t){switch(e){case 1:return parseNumericPattern(numericPatterns.singleDigit,t);case 2:return parseNumericPattern(numericPatterns.twoDigits,t);case 3:return parseNumericPattern(numericPatterns.threeDigits,t);case 4:return parseNumericPattern(numericPatterns.fourDigits,t);default:return parseNumericPattern(new RegExp("^\\d{1,"+e+"}"),t)}}function parseNDigitsSigned(e,t){switch(e){case 1:return parseNumericPattern(numericPatterns.singleDigitSigned,t);case 2:return parseNumericPattern(numericPatterns.twoDigitsSigned,t);case 3:return parseNumericPattern(numericPatterns.threeDigitsSigned,t);case 4:return parseNumericPattern(numericPatterns.fourDigitsSigned,t);default:return parseNumericPattern(new RegExp("^-?\\d{1,"+e+"}"),t)}}function dayPeriodEnumToHours(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function normalizeTwoDigitYear(e,t){const n=t>0,i=n?t:1-t;let r;if(i<=50)r=e||100;else{const a=i+50,o=Math.floor(a/100)*100,l=e>=a%100;r=e+o-(l?100:0)}return n?r:1-r}function isLeapYearIndex$1(e){return e%400===0||e%4===0&&e%100!==0}class YearParser extends Parser{constructor(){super(...arguments);Y(this,"priority",130);Y(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,i,r){const a=o=>({year:o,isTwoDigitYear:i==="yy"});switch(i){case"y":return mapValue(parseNDigits(4,n),a);case"yo":return mapValue(r.ordinalNumber(n,{unit:"year"}),a);default:return mapValue(parseNDigits(i.length,n),a)}}validate(n,i){return i.isTwoDigitYear||i.year>0}set(n,i,r){const a=n.getFullYear();if(r.isTwoDigitYear){const l=normalizeTwoDigitYear(r.year,a);return n.setFullYear(l,0,1),n.setHours(0,0,0,0),n}const o=!("era"in i)||i.era===1?r.year:1-r.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}class LocalWeekYearParser extends Parser{constructor(){super(...arguments);Y(this,"priority",130);Y(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,i,r){const a=o=>({year:o,isTwoDigitYear:i==="YY"});switch(i){case"Y":return mapValue(parseNDigits(4,n),a);case"Yo":return mapValue(r.ordinalNumber(n,{unit:"year"}),a);default:return mapValue(parseNDigits(i.length,n),a)}}validate(n,i){return i.isTwoDigitYear||i.year>0}set(n,i,r,a){const o=getWeekYear(n,a);if(r.isTwoDigitYear){const u=normalizeTwoDigitYear(r.year,o);return n.setFullYear(u,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),startOfWeek(n,a)}const l=!("era"in i)||i.era===1?r.year:1-r.year;return n.setFullYear(l,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),startOfWeek(n,a)}}class ISOWeekYearParser extends Parser{constructor(){super(...arguments);Y(this,"priority",130);Y(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,i){return parseNDigitsSigned(i==="R"?4:i.length,n)}set(n,i,r){const a=constructFrom(n,0);return a.setFullYear(r,0,4),a.setHours(0,0,0,0),startOfISOWeek(a)}}class ExtendedYearParser extends Parser{constructor(){super(...arguments);Y(this,"priority",130);Y(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,i){return parseNDigitsSigned(i==="u"?4:i.length,n)}set(n,i,r){return n.setFullYear(r,0,1),n.setHours(0,0,0,0),n}}class QuarterParser extends Parser{constructor(){super(...arguments);Y(this,"priority",120);Y(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,i,r){switch(i){case"Q":case"QQ":return parseNDigits(i.length,n);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"})||r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})||r.quarter(n,{width:"abbreviated",context:"formatting"})||r.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,i){return i>=1&&i<=4}set(n,i,r){return n.setMonth((r-1)*3,1),n.setHours(0,0,0,0),n}}class StandAloneQuarterParser extends Parser{constructor(){super(...arguments);Y(this,"priority",120);Y(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,i,r){switch(i){case"q":case"qq":return parseNDigits(i.length,n);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"})||r.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})||r.quarter(n,{width:"abbreviated",context:"standalone"})||r.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,i){return i>=1&&i<=4}set(n,i,r){return n.setMonth((r-1)*3,1),n.setHours(0,0,0,0),n}}class MonthParser extends Parser{constructor(){super(...arguments);Y(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);Y(this,"priority",110)}parse(n,i,r){const a=o=>o-1;switch(i){case"M":return mapValue(parseNumericPattern(numericPatterns.month,n),a);case"MM":return mapValue(parseNDigits(2,n),a);case"Mo":return mapValue(r.ordinalNumber(n,{unit:"month"}),a);case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"})||r.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})||r.month(n,{width:"abbreviated",context:"formatting"})||r.month(n,{width:"narrow",context:"formatting"})}}validate(n,i){return i>=0&&i<=11}set(n,i,r){return n.setMonth(r,1),n.setHours(0,0,0,0),n}}class StandAloneMonthParser extends Parser{constructor(){super(...arguments);Y(this,"priority",110);Y(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,i,r){const a=o=>o-1;switch(i){case"L":return mapValue(parseNumericPattern(numericPatterns.month,n),a);case"LL":return mapValue(parseNDigits(2,n),a);case"Lo":return mapValue(r.ordinalNumber(n,{unit:"month"}),a);case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"})||r.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})||r.month(n,{width:"abbreviated",context:"standalone"})||r.month(n,{width:"narrow",context:"standalone"})}}validate(n,i){return i>=0&&i<=11}set(n,i,r){return n.setMonth(r,1),n.setHours(0,0,0,0),n}}function setWeek(e,t,n){const i=toDate(e),r=getWeek(i,n)-t;return i.setDate(i.getDate()-r*7),i}class LocalWeekParser extends Parser{constructor(){super(...arguments);Y(this,"priority",100);Y(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,i,r){switch(i){case"w":return parseNumericPattern(numericPatterns.week,n);case"wo":return r.ordinalNumber(n,{unit:"week"});default:return parseNDigits(i.length,n)}}validate(n,i){return i>=1&&i<=53}set(n,i,r,a){return startOfWeek(setWeek(n,r,a),a)}}function setISOWeek(e,t){const n=toDate(e),i=getISOWeek(n)-t;return n.setDate(n.getDate()-i*7),n}class ISOWeekParser extends Parser{constructor(){super(...arguments);Y(this,"priority",100);Y(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,i,r){switch(i){case"I":return parseNumericPattern(numericPatterns.week,n);case"Io":return r.ordinalNumber(n,{unit:"week"});default:return parseNDigits(i.length,n)}}validate(n,i){return i>=1&&i<=53}set(n,i,r){return startOfISOWeek(setISOWeek(n,r))}}const DAYS_IN_MONTH=[31,28,31,30,31,30,31,31,30,31,30,31],DAYS_IN_MONTH_LEAP_YEAR=[31,29,31,30,31,30,31,31,30,31,30,31];class DateParser extends Parser{constructor(){super(...arguments);Y(this,"priority",90);Y(this,"subPriority",1);Y(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,i,r){switch(i){case"d":return parseNumericPattern(numericPatterns.date,n);case"do":return r.ordinalNumber(n,{unit:"date"});default:return parseNDigits(i.length,n)}}validate(n,i){const r=n.getFullYear(),a=isLeapYearIndex$1(r),o=n.getMonth();return a?i>=1&&i<=DAYS_IN_MONTH_LEAP_YEAR[o]:i>=1&&i<=DAYS_IN_MONTH[o]}set(n,i,r){return n.setDate(r),n.setHours(0,0,0,0),n}}class DayOfYearParser extends Parser{constructor(){super(...arguments);Y(this,"priority",90);Y(this,"subpriority",1);Y(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,i,r){switch(i){case"D":case"DD":return parseNumericPattern(numericPatterns.dayOfYear,n);case"Do":return r.ordinalNumber(n,{unit:"date"});default:return parseNDigits(i.length,n)}}validate(n,i){const r=n.getFullYear();return isLeapYearIndex$1(r)?i>=1&&i<=366:i>=1&&i<=365}set(n,i,r){return n.setMonth(0,r),n.setHours(0,0,0,0),n}}function setDay(e,t,n){var g,_,v,w;const i=getDefaultOptions$1(),r=(n==null?void 0:n.weekStartsOn)??((_=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:_.weekStartsOn)??i.weekStartsOn??((w=(v=i.locale)==null?void 0:v.options)==null?void 0:w.weekStartsOn)??0,a=toDate(e),o=a.getDay(),u=(t%7+7)%7,d=7-r,m=t<0||t>6?t-(o+d)%7:(u+d)%7-(o+d)%7;return addDays(a,m)}class DayParser extends Parser{constructor(){super(...arguments);Y(this,"priority",90);Y(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,i,r){switch(i){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"})||r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})||r.day(n,{width:"abbreviated",context:"formatting"})||r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"})}}validate(n,i){return i>=0&&i<=6}set(n,i,r,a){return n=setDay(n,r,a),n.setHours(0,0,0,0),n}}class LocalDayParser extends Parser{constructor(){super(...arguments);Y(this,"priority",90);Y(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,i,r,a){const o=l=>{const u=Math.floor((l-1)/7)*7;return(l+a.weekStartsOn+6)%7+u};switch(i){case"e":case"ee":return mapValue(parseNDigits(i.length,n),o);case"eo":return mapValue(r.ordinalNumber(n,{unit:"day"}),o);case"eee":return r.day(n,{width:"abbreviated",context:"formatting"})||r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"});case"eeeee":return r.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(n,{width:"wide",context:"formatting"})||r.day(n,{width:"abbreviated",context:"formatting"})||r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"})}}validate(n,i){return i>=0&&i<=6}set(n,i,r,a){return n=setDay(n,r,a),n.setHours(0,0,0,0),n}}class StandAloneLocalDayParser extends Parser{constructor(){super(...arguments);Y(this,"priority",90);Y(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,i,r,a){const o=l=>{const u=Math.floor((l-1)/7)*7;return(l+a.weekStartsOn+6)%7+u};switch(i){case"c":case"cc":return mapValue(parseNDigits(i.length,n),o);case"co":return mapValue(r.ordinalNumber(n,{unit:"day"}),o);case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"})||r.day(n,{width:"short",context:"standalone"})||r.day(n,{width:"narrow",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"})||r.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(n,{width:"wide",context:"standalone"})||r.day(n,{width:"abbreviated",context:"standalone"})||r.day(n,{width:"short",context:"standalone"})||r.day(n,{width:"narrow",context:"standalone"})}}validate(n,i){return i>=0&&i<=6}set(n,i,r,a){return n=setDay(n,r,a),n.setHours(0,0,0,0),n}}function setISODay(e,t){const n=toDate(e),i=getISODay(n),r=t-i;return addDays(n,r)}class ISODayParser extends Parser{constructor(){super(...arguments);Y(this,"priority",90);Y(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,i,r){const a=o=>o===0?7:o;switch(i){case"i":case"ii":return parseNDigits(i.length,n);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return mapValue(r.day(n,{width:"abbreviated",context:"formatting"})||r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"}),a);case"iiiii":return mapValue(r.day(n,{width:"narrow",context:"formatting"}),a);case"iiiiii":return mapValue(r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"}),a);case"iiii":default:return mapValue(r.day(n,{width:"wide",context:"formatting"})||r.day(n,{width:"abbreviated",context:"formatting"})||r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"}),a)}}validate(n,i){return i>=1&&i<=7}set(n,i,r){return n=setISODay(n,r),n.setHours(0,0,0,0),n}}class AMPMParser extends Parser{constructor(){super(...arguments);Y(this,"priority",80);Y(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,i,r){switch(i){case"a":case"aa":case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"})||r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})||r.dayPeriod(n,{width:"abbreviated",context:"formatting"})||r.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,i,r){return n.setHours(dayPeriodEnumToHours(r),0,0,0),n}}class AMPMMidnightParser extends Parser{constructor(){super(...arguments);Y(this,"priority",80);Y(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,i,r){switch(i){case"b":case"bb":case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"})||r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})||r.dayPeriod(n,{width:"abbreviated",context:"formatting"})||r.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,i,r){return n.setHours(dayPeriodEnumToHours(r),0,0,0),n}}class DayPeriodParser extends Parser{constructor(){super(...arguments);Y(this,"priority",80);Y(this,"incompatibleTokens",["a","b","t","T"])}parse(n,i,r){switch(i){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"})||r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})||r.dayPeriod(n,{width:"abbreviated",context:"formatting"})||r.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,i,r){return n.setHours(dayPeriodEnumToHours(r),0,0,0),n}}class Hour1to12Parser extends Parser{constructor(){super(...arguments);Y(this,"priority",70);Y(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,i,r){switch(i){case"h":return parseNumericPattern(numericPatterns.hour12h,n);case"ho":return r.ordinalNumber(n,{unit:"hour"});default:return parseNDigits(i.length,n)}}validate(n,i){return i>=1&&i<=12}set(n,i,r){const a=n.getHours()>=12;return a&&r<12?n.setHours(r+12,0,0,0):!a&&r===12?n.setHours(0,0,0,0):n.setHours(r,0,0,0),n}}class Hour0to23Parser extends Parser{constructor(){super(...arguments);Y(this,"priority",70);Y(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,i,r){switch(i){case"H":return parseNumericPattern(numericPatterns.hour23h,n);case"Ho":return r.ordinalNumber(n,{unit:"hour"});default:return parseNDigits(i.length,n)}}validate(n,i){return i>=0&&i<=23}set(n,i,r){return n.setHours(r,0,0,0),n}}class Hour0To11Parser extends Parser{constructor(){super(...arguments);Y(this,"priority",70);Y(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,i,r){switch(i){case"K":return parseNumericPattern(numericPatterns.hour11h,n);case"Ko":return r.ordinalNumber(n,{unit:"hour"});default:return parseNDigits(i.length,n)}}validate(n,i){return i>=0&&i<=11}set(n,i,r){return n.getHours()>=12&&r<12?n.setHours(r+12,0,0,0):n.setHours(r,0,0,0),n}}class Hour1To24Parser extends Parser{constructor(){super(...arguments);Y(this,"priority",70);Y(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,i,r){switch(i){case"k":return parseNumericPattern(numericPatterns.hour24h,n);case"ko":return r.ordinalNumber(n,{unit:"hour"});default:return parseNDigits(i.length,n)}}validate(n,i){return i>=1&&i<=24}set(n,i,r){const a=r<=24?r%24:r;return n.setHours(a,0,0,0),n}}class MinuteParser extends Parser{constructor(){super(...arguments);Y(this,"priority",60);Y(this,"incompatibleTokens",["t","T"])}parse(n,i,r){switch(i){case"m":return parseNumericPattern(numericPatterns.minute,n);case"mo":return r.ordinalNumber(n,{unit:"minute"});default:return parseNDigits(i.length,n)}}validate(n,i){return i>=0&&i<=59}set(n,i,r){return n.setMinutes(r,0,0),n}}class SecondParser extends Parser{constructor(){super(...arguments);Y(this,"priority",50);Y(this,"incompatibleTokens",["t","T"])}parse(n,i,r){switch(i){case"s":return parseNumericPattern(numericPatterns.second,n);case"so":return r.ordinalNumber(n,{unit:"second"});default:return parseNDigits(i.length,n)}}validate(n,i){return i>=0&&i<=59}set(n,i,r){return n.setSeconds(r,0),n}}class FractionOfSecondParser extends Parser{constructor(){super(...arguments);Y(this,"priority",30);Y(this,"incompatibleTokens",["t","T"])}parse(n,i){const r=a=>Math.floor(a*Math.pow(10,-i.length+3));return mapValue(parseNDigits(i.length,n),r)}set(n,i,r){return n.setMilliseconds(r),n}}class ISOTimezoneWithZParser extends Parser{constructor(){super(...arguments);Y(this,"priority",10);Y(this,"incompatibleTokens",["t","T","x"])}parse(n,i){switch(i){case"X":return parseTimezonePattern(timezonePatterns.basicOptionalMinutes,n);case"XX":return parseTimezonePattern(timezonePatterns.basic,n);case"XXXX":return parseTimezonePattern(timezonePatterns.basicOptionalSeconds,n);case"XXXXX":return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds,n);case"XXX":default:return parseTimezonePattern(timezonePatterns.extended,n)}}set(n,i,r){return i.timestampIsSet?n:constructFrom(n,n.getTime()-getTimezoneOffsetInMilliseconds(n)-r)}}class ISOTimezoneParser extends Parser{constructor(){super(...arguments);Y(this,"priority",10);Y(this,"incompatibleTokens",["t","T","X"])}parse(n,i){switch(i){case"x":return parseTimezonePattern(timezonePatterns.basicOptionalMinutes,n);case"xx":return parseTimezonePattern(timezonePatterns.basic,n);case"xxxx":return parseTimezonePattern(timezonePatterns.basicOptionalSeconds,n);case"xxxxx":return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds,n);case"xxx":default:return parseTimezonePattern(timezonePatterns.extended,n)}}set(n,i,r){return i.timestampIsSet?n:constructFrom(n,n.getTime()-getTimezoneOffsetInMilliseconds(n)-r)}}class TimestampSecondsParser extends Parser{constructor(){super(...arguments);Y(this,"priority",40);Y(this,"incompatibleTokens","*")}parse(n){return parseAnyDigitsSigned(n)}set(n,i,r){return[constructFrom(n,r*1e3),{timestampIsSet:!0}]}}class TimestampMillisecondsParser extends Parser{constructor(){super(...arguments);Y(this,"priority",20);Y(this,"incompatibleTokens","*")}parse(n){return parseAnyDigitsSigned(n)}set(n,i,r){return[constructFrom(n,r),{timestampIsSet:!0}]}}const parsers={G:new EraParser,y:new YearParser,Y:new LocalWeekYearParser,R:new ISOWeekYearParser,u:new ExtendedYearParser,Q:new QuarterParser,q:new StandAloneQuarterParser,M:new MonthParser,L:new StandAloneMonthParser,w:new LocalWeekParser,I:new ISOWeekParser,d:new DateParser,D:new DayOfYearParser,E:new DayParser,e:new LocalDayParser,c:new StandAloneLocalDayParser,i:new ISODayParser,a:new AMPMParser,b:new AMPMMidnightParser,B:new DayPeriodParser,h:new Hour1to12Parser,H:new Hour0to23Parser,K:new Hour0To11Parser,k:new Hour1To24Parser,m:new MinuteParser,s:new SecondParser,S:new FractionOfSecondParser,X:new ISOTimezoneWithZParser,x:new ISOTimezoneParser,t:new TimestampSecondsParser,T:new TimestampMillisecondsParser},formattingTokensRegExp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp=/^'([^]*?)'?$/,doubleQuoteRegExp=/''/g,notWhitespaceRegExp=/\S/,unescapedLatinCharacterRegExp=/[a-zA-Z]/;function parse$1(e,t,n,i){var E,x,M,S,R,W,V,q;const r=getDefaultOptions(),a=(i==null?void 0:i.locale)??r.locale??enUS,o=(i==null?void 0:i.firstWeekContainsDate)??((x=(E=i==null?void 0:i.locale)==null?void 0:E.options)==null?void 0:x.firstWeekContainsDate)??r.firstWeekContainsDate??((S=(M=r.locale)==null?void 0:M.options)==null?void 0:S.firstWeekContainsDate)??1,l=(i==null?void 0:i.weekStartsOn)??((W=(R=i==null?void 0:i.locale)==null?void 0:R.options)==null?void 0:W.weekStartsOn)??r.weekStartsOn??((q=(V=r.locale)==null?void 0:V.options)==null?void 0:q.weekStartsOn)??0;if(t==="")return e===""?toDate(n):constructFrom(n,NaN);const u={firstWeekContainsDate:o,weekStartsOn:l,locale:a},d=[new DateToSystemTimezoneSetter],m=t.match(longFormattingTokensRegExp).map(U=>{const y=U[0];if(y in longFormatters){const $=longFormatters[y];return $(U,a.formatLong)}return U}).join("").match(formattingTokensRegExp),g=[];for(let U of m){!(i!=null&&i.useAdditionalWeekYearTokens)&&isProtectedWeekYearToken(U)&&throwProtectedError(U,t,e),!(i!=null&&i.useAdditionalDayOfYearTokens)&&isProtectedDayOfYearToken(U)&&throwProtectedError(U,t,e);const y=U[0],$=parsers[y];if($){const{incompatibleTokens:T}=$;if(Array.isArray(T)){const A=g.find(I=>T.includes(I.token)||I.token===y);if(A)throw new RangeError(`The format string mustn't contain \`${A.fullToken}\` and \`${U}\` at the same time`)}else if($.incompatibleTokens==="*"&&g.length>0)throw new RangeError(`The format string mustn't contain \`${U}\` and any other token at the same time`);g.push({token:y,fullToken:U});const O=$.run(e,U,a.match,u);if(!O)return constructFrom(n,NaN);d.push(O.setter),e=O.rest}else{if(y.match(unescapedLatinCharacterRegExp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");if(U==="''"?U="'":y==="'"&&(U=cleanEscapedString(U)),e.indexOf(U)===0)e=e.slice(U.length);else return constructFrom(n,NaN)}}if(e.length>0&&notWhitespaceRegExp.test(e))return constructFrom(n,NaN);const _=d.map(U=>U.priority).sort((U,y)=>y-U).filter((U,y,$)=>$.indexOf(U)===y).map(U=>d.filter(y=>y.priority===U).sort((y,$)=>$.subPriority-y.subPriority)).map(U=>U[0]);let v=toDate(n);if(isNaN(v.getTime()))return constructFrom(n,NaN);const w={};for(const U of _){if(!U.validate(v,u))return constructFrom(n,NaN);const y=U.set(v,w,u);Array.isArray(y)?(v=y[0],Object.assign(w,y[1])):v=y}return constructFrom(n,v)}function cleanEscapedString(e){return e.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp,"'")}function startOfHour(e){const t=toDate(e);return t.setMinutes(0,0,0),t}function isSameWeek(e,t,n){const i=startOfWeek(e,n),r=startOfWeek(t,n);return+i==+r}function startOfSecond(e){const t=toDate(e);return t.setMilliseconds(0),t}function subDays(e,t){return addDays(e,-t)}function parseISO(e,t){const n=(t==null?void 0:t.additionalDigits)??2,i=splitDateString(e);let r;if(i.date){const u=parseYear(i.date,n);r=parseDate$1(u.restDateString,u.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);const a=r.getTime();let o=0,l;if(i.time&&(o=parseTime(i.time),isNaN(o)))return new Date(NaN);if(i.timezone){if(l=parseTimezone(i.timezone),isNaN(l))return new Date(NaN)}else{const u=new Date(a+o),d=new Date(0);return d.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),d.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),d}return new Date(a+o+l)}const patterns={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},dateRegex=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,timeRegex=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,timezoneRegex=/^([+-])(\d{2})(?::?(\d{2}))?$/;function splitDateString(e){const t={},n=e.split(patterns.dateTimeDelimiter);let i;if(n.length>2)return t;if(/:/.test(n[0])?i=n[0]:(t.date=n[0],i=n[1],patterns.timeZoneDelimiter.test(t.date)&&(t.date=e.split(patterns.timeZoneDelimiter)[0],i=e.substr(t.date.length,e.length))),i){const r=patterns.timezone.exec(i);r?(t.time=i.replace(r[1],""),t.timezone=r[1]):t.time=i}return t}function parseYear(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=e.match(n);if(!i)return{year:NaN,restDateString:""};const r=i[1]?parseInt(i[1]):null,a=i[2]?parseInt(i[2]):null;return{year:a===null?r:a*100,restDateString:e.slice((i[1]||i[2]).length)}}function parseDate$1(e,t){if(t===null)return new Date(NaN);const n=e.match(dateRegex);if(!n)return new Date(NaN);const i=!!n[4],r=parseDateUnit(n[1]),a=parseDateUnit(n[2])-1,o=parseDateUnit(n[3]),l=parseDateUnit(n[4]),u=parseDateUnit(n[5])-1;if(i)return validateWeekDate(t,l,u)?dayOfISOWeekYear(t,l,u):new Date(NaN);{const d=new Date(0);return!validateDate(t,a,o)||!validateDayOfYearDate(t,r)?new Date(NaN):(d.setUTCFullYear(t,a,Math.max(r,o)),d)}}function parseDateUnit(e){return e?parseInt(e):1}function parseTime(e){const t=e.match(timeRegex);if(!t)return NaN;const n=parseTimeUnit(t[1]),i=parseTimeUnit(t[2]),r=parseTimeUnit(t[3]);return validateTime(n,i,r)?n*millisecondsInHour+i*millisecondsInMinute+r*1e3:NaN}function parseTimeUnit(e){return e&&parseFloat(e.replace(",","."))||0}function parseTimezone(e){if(e==="Z")return 0;const t=e.match(timezoneRegex);if(!t)return 0;const n=t[1]==="+"?-1:1,i=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;return validateTimezone(i,r)?n*(i*millisecondsInHour+r*millisecondsInMinute):NaN}function dayOfISOWeekYear(e,t,n){const i=new Date(0);i.setUTCFullYear(e,0,4);const r=i.getUTCDay()||7,a=(t-1)*7+n+1-r;return i.setUTCDate(i.getUTCDate()+a),i}const daysInMonths=[31,null,31,30,31,30,31,31,30,31,30,31];function isLeapYearIndex(e){return e%400===0||e%4===0&&e%100!==0}function validateDate(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(daysInMonths[t]||(isLeapYearIndex(e)?29:28))}function validateDayOfYearDate(e,t){return t>=1&&t<=(isLeapYearIndex(e)?366:365)}function validateWeekDate(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function validateTime(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function validateTimezone(e,t){return t>=0&&t<=59}function subMonths(e,t){return addMonths(e,-t)}const formatDistanceLocale$s={lessThanXSeconds:{one:"по-малко от секунда",other:"по-малко от {{count}} секунди"},xSeconds:{one:"1 секунда",other:"{{count}} секунди"},halfAMinute:"половин минута",lessThanXMinutes:{one:"по-малко от минута",other:"по-малко от {{count}} минути"},xMinutes:{one:"1 минута",other:"{{count}} минути"},aboutXHours:{one:"около час",other:"около {{count}} часа"},xHours:{one:"1 час",other:"{{count}} часа"},xDays:{one:"1 ден",other:"{{count}} дни"},aboutXWeeks:{one:"около седмица",other:"около {{count}} седмици"},xWeeks:{one:"1 седмица",other:"{{count}} седмици"},aboutXMonths:{one:"около месец",other:"около {{count}} месеца"},xMonths:{one:"1 месец",other:"{{count}} месеца"},aboutXYears:{one:"около година",other:"около {{count}} години"},xYears:{one:"1 година",other:"{{count}} години"},overXYears:{one:"над година",other:"над {{count}} години"},almostXYears:{one:"почти година",other:"почти {{count}} години"}},formatDistance$t=(e,t,n)=>{let i;const r=formatDistanceLocale$s[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"след "+i:"преди "+i:i},dateFormats$u={full:"EEEE, dd MMMM yyyy",long:"dd MMMM yyyy",medium:"dd MMM yyyy",short:"dd/MM/yyyy"},timeFormats$u={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"H:mm"},dateTimeFormats$u={any:"{{date}} {{time}}"},formatLong$u={date:buildFormatLongFn({formats:dateFormats$u,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$u,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$u,defaultWidth:"any"})},weekdays$1=["неделя","понеделник","вторник","сряда","четвъртък","петък","събота"];function lastWeek$4(e){const t=weekdays$1[e];switch(e){case 0:case 3:case 6:return"'миналата "+t+" в' p";case 1:case 2:case 4:case 5:return"'миналия "+t+" в' p"}}function thisWeek$4(e){const t=weekdays$1[e];return e===2?"'във "+t+" в' p":"'в "+t+" в' p"}function nextWeek$4(e){const t=weekdays$1[e];switch(e){case 0:case 3:case 6:return"'следващата "+t+" в' p";case 1:case 2:case 4:case 5:return"'следващия "+t+" в' p"}}const lastWeekFormatToken=(e,t,n)=>{const i=toDate(e),r=i.getDay();return isSameWeek(i,t,n)?thisWeek$4(r):lastWeek$4(r)},nextWeekFormatToken=(e,t,n)=>{const i=toDate(e),r=i.getDay();return isSameWeek(i,t,n)?thisWeek$4(r):nextWeek$4(r)},formatRelativeLocale$t={lastWeek:lastWeekFormatToken,yesterday:"'вчера в' p",today:"'днес в' p",tomorrow:"'утре в' p",nextWeek:nextWeekFormatToken,other:"P"},formatRelative$t=(e,t,n,i)=>{const r=formatRelativeLocale$t[e];return typeof r=="function"?r(t,n,i):r},eraValues$t={narrow:["пр.н.е.","н.е."],abbreviated:["преди н. е.","н. е."],wide:["преди новата ера","новата ера"]},quarterValues$t={narrow:["1","2","3","4"],abbreviated:["1-во тримес.","2-ро тримес.","3-то тримес.","4-то тримес."],wide:["1-во тримесечие","2-ро тримесечие","3-то тримесечие","4-то тримесечие"]},monthValues$t={abbreviated:["яну","фев","мар","апр","май","юни","юли","авг","сеп","окт","ное","дек"],wide:["януари","февруари","март","април","май","юни","юли","август","септември","октомври","ноември","декември"]},dayValues$t={narrow:["Н","П","В","С","Ч","П","С"],short:["нд","пн","вт","ср","чт","пт","сб"],abbreviated:["нед","пон","вто","сря","чет","пет","съб"],wide:["неделя","понеделник","вторник","сряда","четвъртък","петък","събота"]},dayPeriodValues$t={wide:{am:"преди обяд",pm:"след обяд",midnight:"в полунощ",noon:"на обяд",morning:"сутринта",afternoon:"следобед",evening:"вечерта",night:"през нощта"}};function isFeminine(e){return e==="year"||e==="week"||e==="minute"||e==="second"}function isNeuter(e){return e==="quarter"}function numberWithSuffix(e,t,n,i,r){const a=isNeuter(t)?r:isFeminine(t)?i:n;return e+"-"+a}const ordinalNumber$t=(e,t)=>{const n=Number(e),i=t==null?void 0:t.unit;if(n===0)return numberWithSuffix(0,i,"ев","ева","ево");if(n%1e3===0)return numberWithSuffix(n,i,"ен","на","но");if(n%100===0)return numberWithSuffix(n,i,"тен","тна","тно");const r=n%100;if(r>20||r<10)switch(r%10){case 1:return numberWithSuffix(n,i,"ви","ва","во");case 2:return numberWithSuffix(n,i,"ри","ра","ро");case 7:case 8:return numberWithSuffix(n,i,"ми","ма","мо")}return numberWithSuffix(n,i,"ти","та","то")},localize$t={ordinalNumber:ordinalNumber$t,era:buildLocalizeFn({values:eraValues$t,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$t,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$t,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$t,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$t,defaultWidth:"wide"})},matchOrdinalNumberPattern$t=/^(\d+)(-?[врмт][аи]|-?т?(ен|на)|-?(ев|ева))?/i,parseOrdinalNumberPattern$t=/\d+/i,matchEraPatterns$t={narrow:/^((пр)?н\.?\s?е\.?)/i,abbreviated:/^((пр)?н\.?\s?е\.?)/i,wide:/^(преди новата ера|новата ера|нова ера)/i},parseEraPatterns$t={any:[/^п/i,/^н/i]},matchQuarterPatterns$t={narrow:/^[1234]/i,abbreviated:/^[1234](-?[врт]?o?)? тримес.?/i,wide:/^[1234](-?[врт]?о?)? тримесечие/i},parseQuarterPatterns$t={any:[/1/i,/2/i,/3/i,/4/i]},matchDayPatterns$t={narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)/i,abbreviated:/^(нед|пон|вто|сря|чет|пет|съб)/i,wide:/^(неделя|понеделник|вторник|сряда|четвъртък|петък|събота)/i},parseDayPatterns$t={narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н[ед]/i,/^п[он]/i,/^вт/i,/^ср/i,/^ч[ет]/i,/^п[ет]/i,/^с[ъб]/i]},matchMonthPatterns$t={abbreviated:/^(яну|фев|мар|апр|май|юни|юли|авг|сеп|окт|ное|дек)/i,wide:/^(януари|февруари|март|април|май|юни|юли|август|септември|октомври|ноември|декември)/i},parseMonthPatterns$t={any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^май/i,/^юн/i,/^юл/i,/^ав/i,/^се/i,/^окт/i,/^но/i,/^де/i]},matchDayPeriodPatterns$t={any:/^(преди о|след о|в по|на о|през|веч|сут|следо)/i},parseDayPeriodPatterns$t={any:{am:/^преди о/i,pm:/^след о/i,midnight:/^в пол/i,noon:/^на об/i,morning:/^сут/i,afternoon:/^следо/i,evening:/^веч/i,night:/^през н/i}},match$t={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$t,parsePattern:parseOrdinalNumberPattern$t,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$t,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$t,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$t,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$t,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$t,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$t,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$t,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$t,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$t,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$t,defaultParseWidth:"any"})},bg={code:"bg",formatDistance:formatDistance$t,formatLong:formatLong$u,formatRelative:formatRelative$t,localize:localize$t,match:match$t,options:{weekStartsOn:1,firstWeekContainsDate:1}},formatDistanceLocale$r={lessThanXSeconds:{one:"menys d'un segon",eleven:"menys d'onze segons",other:"menys de {{count}} segons"},xSeconds:{one:"1 segon",other:"{{count}} segons"},halfAMinute:"mig minut",lessThanXMinutes:{one:"menys d'un minut",eleven:"menys d'onze minuts",other:"menys de {{count}} minuts"},xMinutes:{one:"1 minut",other:"{{count}} minuts"},aboutXHours:{one:"aproximadament una hora",other:"aproximadament {{count}} hores"},xHours:{one:"1 hora",other:"{{count}} hores"},xDays:{one:"1 dia",other:"{{count}} dies"},aboutXWeeks:{one:"aproximadament una setmana",other:"aproximadament {{count}} setmanes"},xWeeks:{one:"1 setmana",other:"{{count}} setmanes"},aboutXMonths:{one:"aproximadament un mes",other:"aproximadament {{count}} mesos"},xMonths:{one:"1 mes",other:"{{count}} mesos"},aboutXYears:{one:"aproximadament un any",other:"aproximadament {{count}} anys"},xYears:{one:"1 any",other:"{{count}} anys"},overXYears:{one:"més d'un any",eleven:"més d'onze anys",other:"més de {{count}} anys"},almostXYears:{one:"gairebé un any",other:"gairebé {{count}} anys"}},formatDistance$s=(e,t,n)=>{let i;const r=formatDistanceLocale$r[e];return typeof r=="string"?i=r:t===1?i=r.one:t===11&&r.eleven?i=r.eleven:i=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+i:"fa "+i:i},dateFormats$t={full:"EEEE, d 'de' MMMM y",long:"d 'de' MMMM y",medium:"d MMM y",short:"dd/MM/y"},timeFormats$t={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$t={full:"{{date}} 'a les' {{time}}",long:"{{date}} 'a les' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$t={date:buildFormatLongFn({formats:dateFormats$t,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$t,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$t,defaultWidth:"full"})},formatRelativeLocale$s={lastWeek:"'el' eeee 'passat a la' LT",yesterday:"'ahir a la' p",today:"'avui a la' p",tomorrow:"'demà a la' p",nextWeek:"eeee 'a la' p",other:"P"},formatRelativeLocalePlural$1={lastWeek:"'el' eeee 'passat a les' p",yesterday:"'ahir a les' p",today:"'avui a les' p",tomorrow:"'demà a les' p",nextWeek:"eeee 'a les' p",other:"P"},formatRelative$s=(e,t,n,i)=>t.getHours()!==1?formatRelativeLocalePlural$1[e]:formatRelativeLocale$s[e],eraValues$s={narrow:["aC","dC"],abbreviated:["a. de C.","d. de C."],wide:["abans de Crist","després de Crist"]},quarterValues$s={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1r trimestre","2n trimestre","3r trimestre","4t trimestre"]},monthValues$s={narrow:["GN","FB","MÇ","AB","MG","JN","JL","AG","ST","OC","NV","DS"],abbreviated:["gen.","febr.","març","abr.","maig","juny","jul.","ag.","set.","oct.","nov.","des."],wide:["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre"]},dayValues$s={narrow:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],short:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],abbreviated:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],wide:["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"]},dayPeriodValues$s={narrow:{am:"am",pm:"pm",midnight:"mitjanit",noon:"migdia",morning:"matí",afternoon:"tarda",evening:"vespre",night:"nit"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"mitjanit",noon:"migdia",morning:"matí",afternoon:"tarda",evening:"vespre",night:"nit"},wide:{am:"ante meridiem",pm:"post meridiem",midnight:"mitjanit",noon:"migdia",morning:"matí",afternoon:"tarda",evening:"vespre",night:"nit"}},formattingDayPeriodValues$k={narrow:{am:"am",pm:"pm",midnight:"de la mitjanit",noon:"del migdia",morning:"del matí",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"},abbreviated:{am:"AM",pm:"PM",midnight:"de la mitjanit",noon:"del migdia",morning:"del matí",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"},wide:{am:"ante meridiem",pm:"post meridiem",midnight:"de la mitjanit",noon:"del migdia",morning:"del matí",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"}},ordinalNumber$s=(e,t)=>{const n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"r";case 2:return n+"n";case 3:return n+"r";case 4:return n+"t"}return n+"è"},localize$s={ordinalNumber:ordinalNumber$s,era:buildLocalizeFn({values:eraValues$s,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$s,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$s,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$s,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$s,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$k,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$s=/^(\d+)(è|r|n|r|t)?/i,parseOrdinalNumberPattern$s=/\d+/i,matchEraPatterns$s={narrow:/^(aC|dC)/i,abbreviated:/^(a. de C.|d. de C.)/i,wide:/^(abans de Crist|despr[eé]s de Crist)/i},parseEraPatterns$s={narrow:[/^aC/i,/^dC/i],abbreviated:[/^(a. de C.)/i,/^(d. de C.)/i],wide:[/^(abans de Crist)/i,/^(despr[eé]s de Crist)/i]},matchQuarterPatterns$s={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](è|r|n|r|t)? trimestre/i},parseQuarterPatterns$s={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$s={narrow:/^(GN|FB|MÇ|AB|MG|JN|JL|AG|ST|OC|NV|DS)/i,abbreviated:/^(gen.|febr.|març|abr.|maig|juny|jul.|ag.|set.|oct.|nov.|des.)/i,wide:/^(gener|febrer|març|abril|maig|juny|juliol|agost|setembre|octubre|novembre|desembre)/i},parseMonthPatterns$s={narrow:[/^GN/i,/^FB/i,/^MÇ/i,/^AB/i,/^MG/i,/^JN/i,/^JL/i,/^AG/i,/^ST/i,/^OC/i,/^NV/i,/^DS/i],abbreviated:[/^gen./i,/^febr./i,/^març/i,/^abr./i,/^maig/i,/^juny/i,/^jul./i,/^ag./i,/^set./i,/^oct./i,/^nov./i,/^des./i],wide:[/^gener/i,/^febrer/i,/^març/i,/^abril/i,/^maig/i,/^juny/i,/^juliol/i,/^agost/i,/^setembre/i,/^octubre/i,/^novembre/i,/^desembre/i]},matchDayPatterns$s={narrow:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,short:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,abbreviated:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,wide:/^(diumenge|dilluns|dimarts|dimecres|dijous|divendres|dissabte)/i},parseDayPatterns$s={narrow:[/^dg./i,/^dl./i,/^dt./i,/^dm./i,/^dj./i,/^dv./i,/^ds./i],abbreviated:[/^dg./i,/^dl./i,/^dt./i,/^dm./i,/^dj./i,/^dv./i,/^ds./i],wide:[/^diumenge/i,/^dilluns/i,/^dimarts/i,/^dimecres/i,/^dijous/i,/^divendres/i,/^disssabte/i]},matchDayPeriodPatterns$s={narrow:/^(a|p|mn|md|(del|de la) (matí|tarda|vespre|nit))/i,abbreviated:/^([ap]\.?\s?m\.?|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i,wide:/^(ante meridiem|post meridiem|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i},parseDayPeriodPatterns$s={any:{am:/^a/i,pm:/^p/i,midnight:/^mitjanit/i,noon:/^migdia/i,morning:/matí/i,afternoon:/tarda/i,evening:/vespre/i,night:/nit/i}},match$s={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$s,parsePattern:parseOrdinalNumberPattern$s,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$s,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$s,defaultParseWidth:"wide"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$s,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$s,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$s,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$s,defaultParseWidth:"wide"}),day:buildMatchFn({matchPatterns:matchDayPatterns$s,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$s,defaultParseWidth:"wide"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$s,defaultMatchWidth:"wide",parsePatterns:parseDayPeriodPatterns$s,defaultParseWidth:"any"})},ca={code:"ca",formatDistance:formatDistance$s,formatLong:formatLong$t,formatRelative:formatRelative$s,localize:localize$s,match:match$s,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale$q={lessThanXSeconds:{one:{regular:"méně než sekunda",past:"před méně než sekundou",future:"za méně než sekundu"},few:{regular:"méně než {{count}} sekundy",past:"před méně než {{count}} sekundami",future:"za méně než {{count}} sekundy"},many:{regular:"méně než {{count}} sekund",past:"před méně než {{count}} sekundami",future:"za méně než {{count}} sekund"}},xSeconds:{one:{regular:"sekunda",past:"před sekundou",future:"za sekundu"},few:{regular:"{{count}} sekundy",past:"před {{count}} sekundami",future:"za {{count}} sekundy"},many:{regular:"{{count}} sekund",past:"před {{count}} sekundami",future:"za {{count}} sekund"}},halfAMinute:{type:"other",other:{regular:"půl minuty",past:"před půl minutou",future:"za půl minuty"}},lessThanXMinutes:{one:{regular:"méně než minuta",past:"před méně než minutou",future:"za méně než minutu"},few:{regular:"méně než {{count}} minuty",past:"před méně než {{count}} minutami",future:"za méně než {{count}} minuty"},many:{regular:"méně než {{count}} minut",past:"před méně než {{count}} minutami",future:"za méně než {{count}} minut"}},xMinutes:{one:{regular:"minuta",past:"před minutou",future:"za minutu"},few:{regular:"{{count}} minuty",past:"před {{count}} minutami",future:"za {{count}} minuty"},many:{regular:"{{count}} minut",past:"před {{count}} minutami",future:"za {{count}} minut"}},aboutXHours:{one:{regular:"přibližně hodina",past:"přibližně před hodinou",future:"přibližně za hodinu"},few:{regular:"přibližně {{count}} hodiny",past:"přibližně před {{count}} hodinami",future:"přibližně za {{count}} hodiny"},many:{regular:"přibližně {{count}} hodin",past:"přibližně před {{count}} hodinami",future:"přibližně za {{count}} hodin"}},xHours:{one:{regular:"hodina",past:"před hodinou",future:"za hodinu"},few:{regular:"{{count}} hodiny",past:"před {{count}} hodinami",future:"za {{count}} hodiny"},many:{regular:"{{count}} hodin",past:"před {{count}} hodinami",future:"za {{count}} hodin"}},xDays:{one:{regular:"den",past:"před dnem",future:"za den"},few:{regular:"{{count}} dny",past:"před {{count}} dny",future:"za {{count}} dny"},many:{regular:"{{count}} dní",past:"před {{count}} dny",future:"za {{count}} dní"}},aboutXWeeks:{one:{regular:"přibližně týden",past:"přibližně před týdnem",future:"přibližně za týden"},few:{regular:"přibližně {{count}} týdny",past:"přibližně před {{count}} týdny",future:"přibližně za {{count}} týdny"},many:{regular:"přibližně {{count}} týdnů",past:"přibližně před {{count}} týdny",future:"přibližně za {{count}} týdnů"}},xWeeks:{one:{regular:"týden",past:"před týdnem",future:"za týden"},few:{regular:"{{count}} týdny",past:"před {{count}} týdny",future:"za {{count}} týdny"},many:{regular:"{{count}} týdnů",past:"před {{count}} týdny",future:"za {{count}} týdnů"}},aboutXMonths:{one:{regular:"přibližně měsíc",past:"přibližně před měsícem",future:"přibližně za měsíc"},few:{regular:"přibližně {{count}} měsíce",past:"přibližně před {{count}} měsíci",future:"přibližně za {{count}} měsíce"},many:{regular:"přibližně {{count}} měsíců",past:"přibližně před {{count}} měsíci",future:"přibližně za {{count}} měsíců"}},xMonths:{one:{regular:"měsíc",past:"před měsícem",future:"za měsíc"},few:{regular:"{{count}} měsíce",past:"před {{count}} měsíci",future:"za {{count}} měsíce"},many:{regular:"{{count}} měsíců",past:"před {{count}} měsíci",future:"za {{count}} měsíců"}},aboutXYears:{one:{regular:"přibližně rok",past:"přibližně před rokem",future:"přibližně za rok"},few:{regular:"přibližně {{count}} roky",past:"přibližně před {{count}} roky",future:"přibližně za {{count}} roky"},many:{regular:"přibližně {{count}} roků",past:"přibližně před {{count}} roky",future:"přibližně za {{count}} roků"}},xYears:{one:{regular:"rok",past:"před rokem",future:"za rok"},few:{regular:"{{count}} roky",past:"před {{count}} roky",future:"za {{count}} roky"},many:{regular:"{{count}} roků",past:"před {{count}} roky",future:"za {{count}} roků"}},overXYears:{one:{regular:"více než rok",past:"před více než rokem",future:"za více než rok"},few:{regular:"více než {{count}} roky",past:"před více než {{count}} roky",future:"za více než {{count}} roky"},many:{regular:"více než {{count}} roků",past:"před více než {{count}} roky",future:"za více než {{count}} roků"}},almostXYears:{one:{regular:"skoro rok",past:"skoro před rokem",future:"skoro za rok"},few:{regular:"skoro {{count}} roky",past:"skoro před {{count}} roky",future:"skoro za {{count}} roky"},many:{regular:"skoro {{count}} roků",past:"skoro před {{count}} roky",future:"skoro za {{count}} roků"}}},formatDistance$r=(e,t,n)=>{let i;const r=formatDistanceLocale$q[e];r.type==="other"?i=r.other:t===1?i=r.one:t>1&&t<5?i=r.few:i=r.many;const a=(n==null?void 0:n.addSuffix)===!0,o=n==null?void 0:n.comparison;let l;return a&&o===-1?l=i.past:a&&o===1?l=i.future:l=i.regular,l.replace("{{count}}",String(t))},dateFormats$s={full:"EEEE, d. MMMM yyyy",long:"d. MMMM yyyy",medium:"d. M. yyyy",short:"dd.MM.yyyy"},timeFormats$s={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},dateTimeFormats$s={full:"{{date}} 'v' {{time}}",long:"{{date}} 'v' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$s={date:buildFormatLongFn({formats:dateFormats$s,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$s,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$s,defaultWidth:"full"})},accusativeWeekdays$4=["neděli","pondělí","úterý","středu","čtvrtek","pátek","sobotu"],formatRelativeLocale$r={lastWeek:"'poslední' eeee 've' p",yesterday:"'včera v' p",today:"'dnes v' p",tomorrow:"'zítra v' p",nextWeek:e=>{const t=e.getDay();return"'v "+accusativeWeekdays$4[t]+" o' p"},other:"P"},formatRelative$r=(e,t)=>{const n=formatRelativeLocale$r[e];return typeof n=="function"?n(t):n},eraValues$r={narrow:["př. n. l.","n. l."],abbreviated:["př. n. l.","n. l."],wide:["před naším letopočtem","našeho letopočtu"]},quarterValues$r={narrow:["1","2","3","4"],abbreviated:["1. čtvrtletí","2. čtvrtletí","3. čtvrtletí","4. čtvrtletí"],wide:["1. čtvrtletí","2. čtvrtletí","3. čtvrtletí","4. čtvrtletí"]},monthValues$r={narrow:["L","Ú","B","D","K","Č","Č","S","Z","Ř","L","P"],abbreviated:["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],wide:["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"]},formattingMonthValues$7={narrow:["L","Ú","B","D","K","Č","Č","S","Z","Ř","L","P"],abbreviated:["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],wide:["ledna","února","března","dubna","května","června","července","srpna","září","října","listopadu","prosince"]},dayValues$r={narrow:["ne","po","út","st","čt","pá","so"],short:["ne","po","út","st","čt","pá","so"],abbreviated:["ned","pon","úte","stř","čtv","pát","sob"],wide:["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"]},dayPeriodValues$r={narrow:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"}},formattingDayPeriodValues$j={narrow:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"}},ordinalNumber$r=(e,t)=>Number(e)+".",localize$r={ordinalNumber:ordinalNumber$r,era:buildLocalizeFn({values:eraValues$r,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$r,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$r,defaultWidth:"wide",formattingValues:formattingMonthValues$7,defaultFormattingWidth:"wide"}),day:buildLocalizeFn({values:dayValues$r,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$r,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$j,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$r=/^(\d+)\.?/i,parseOrdinalNumberPattern$r=/\d+/i,matchEraPatterns$r={narrow:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(p[řr](\.|ed) Kristem|p[řr](\.|ed) na[šs][íi]m letopo[čc]tem|po Kristu|na[šs]eho letopo[čc]tu)/i},parseEraPatterns$r={any:[/^p[řr]/i,/^(po|n)/i]},matchQuarterPatterns$r={narrow:/^[1234]/i,abbreviated:/^[1234]\. [čc]tvrtlet[íi]/i,wide:/^[1234]\. [čc]tvrtlet[íi]/i},parseQuarterPatterns$r={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$r={narrow:/^[lúubdkčcszřrlp]/i,abbreviated:/^(led|[úu]no|b[řr]e|dub|kv[ěe]|[čc]vn|[čc]vc|srp|z[áa][řr]|[řr][íi]j|lis|pro)/i,wide:/^(leden|ledna|[úu]nora?|b[řr]ezen|b[řr]ezna|duben|dubna|kv[ěe]ten|kv[ěe]tna|[čc]erven(ec|ce)?|[čc]ervna|srpen|srpna|z[áa][řr][íi]|[řr][íi]jen|[řr][íi]jna|listopad(a|u)?|prosinec|prosince)/i},parseMonthPatterns$r={narrow:[/^l/i,/^[úu]/i,/^b/i,/^d/i,/^k/i,/^[čc]/i,/^[čc]/i,/^s/i,/^z/i,/^[řr]/i,/^l/i,/^p/i],any:[/^led/i,/^[úu]n/i,/^b[řr]e/i,/^dub/i,/^kv[ěe]/i,/^[čc]vn|[čc]erven(?!\w)|[čc]ervna/i,/^[čc]vc|[čc]erven(ec|ce)/i,/^srp/i,/^z[áa][řr]/i,/^[řr][íi]j/i,/^lis/i,/^pro/i]},matchDayPatterns$r={narrow:/^[npuúsčps]/i,short:/^(ne|po|[úu]t|st|[čc]t|p[áa]|so)/i,abbreviated:/^(ned|pon|[úu]te|st[rř]|[čc]tv|p[áa]t|sob)/i,wide:/^(ned[ěe]le|pond[ěe]l[íi]|[úu]ter[ýy]|st[řr]eda|[čc]tvrtek|p[áa]tek|sobota)/i},parseDayPatterns$r={narrow:[/^n/i,/^p/i,/^[úu]/i,/^s/i,/^[čc]/i,/^p/i,/^s/i],any:[/^ne/i,/^po/i,/^[úu]t/i,/^st/i,/^[čc]t/i,/^p[áa]/i,/^so/i]},matchDayPeriodPatterns$r={any:/^dopoledne|dop\.?|odpoledne|odp\.?|p[ůu]lnoc|poledne|r[áa]no|odpoledne|ve[čc]er|(v )?noci?/i},parseDayPeriodPatterns$r={any:{am:/^dop/i,pm:/^odp/i,midnight:/^p[ůu]lnoc/i,noon:/^poledne/i,morning:/r[áa]no/i,afternoon:/odpoledne/i,evening:/ve[čc]er/i,night:/noc/i}},match$r={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$r,parsePattern:parseOrdinalNumberPattern$r,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$r,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$r,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$r,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$r,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$r,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$r,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$r,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$r,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$r,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$r,defaultParseWidth:"any"})},cs={code:"cs",formatDistance:formatDistance$r,formatLong:formatLong$s,formatRelative:formatRelative$r,localize:localize$r,match:match$r,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale$p={lessThanXSeconds:{one:"mindre end ét sekund",other:"mindre end {{count}} sekunder"},xSeconds:{one:"1 sekund",other:"{{count}} sekunder"},halfAMinute:"ét halvt minut",lessThanXMinutes:{one:"mindre end ét minut",other:"mindre end {{count}} minutter"},xMinutes:{one:"1 minut",other:"{{count}} minutter"},aboutXHours:{one:"cirka 1 time",other:"cirka {{count}} timer"},xHours:{one:"1 time",other:"{{count}} timer"},xDays:{one:"1 dag",other:"{{count}} dage"},aboutXWeeks:{one:"cirka 1 uge",other:"cirka {{count}} uger"},xWeeks:{one:"1 uge",other:"{{count}} uger"},aboutXMonths:{one:"cirka 1 måned",other:"cirka {{count}} måneder"},xMonths:{one:"1 måned",other:"{{count}} måneder"},aboutXYears:{one:"cirka 1 år",other:"cirka {{count}} år"},xYears:{one:"1 år",other:"{{count}} år"},overXYears:{one:"over 1 år",other:"over {{count}} år"},almostXYears:{one:"næsten 1 år",other:"næsten {{count}} år"}},formatDistance$q=(e,t,n)=>{let i;const r=formatDistanceLocale$p[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"om "+i:i+" siden":i},dateFormats$r={full:"EEEE 'den' d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd/MM/y"},timeFormats$r={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$r={full:"{{date}} 'kl'. {{time}}",long:"{{date}} 'kl'. {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong$r={date:buildFormatLongFn({formats:dateFormats$r,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$r,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$r,defaultWidth:"full"})},formatRelativeLocale$q={lastWeek:"'sidste' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"'på' eeee 'kl.' p",other:"P"},formatRelative$q=(e,t,n,i)=>formatRelativeLocale$q[e],eraValues$q={narrow:["fvt","vt"],abbreviated:["f.v.t.","v.t."],wide:["før vesterlandsk tidsregning","vesterlandsk tidsregning"]},quarterValues$q={narrow:["1","2","3","4"],abbreviated:["1. kvt.","2. kvt.","3. kvt.","4. kvt."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},monthValues$q={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},dayValues$q={narrow:["S","M","T","O","T","F","L"],short:["sø","ma","ti","on","to","fr","lø"],abbreviated:["søn.","man.","tir.","ons.","tor.","fre.","lør."],wide:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},dayPeriodValues$q={narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"}},formattingDayPeriodValues$i={narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"}},ordinalNumber$q=(e,t)=>Number(e)+".",localize$q={ordinalNumber:ordinalNumber$q,era:buildLocalizeFn({values:eraValues$q,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$q,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$q,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$q,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$q,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$i,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$q=/^(\d+)(\.)?/i,parseOrdinalNumberPattern$q=/\d+/i,matchEraPatterns$q={narrow:/^(fKr|fvt|eKr|vt)/i,abbreviated:/^(f\.Kr\.?|f\.v\.t\.?|e\.Kr\.?|v\.t\.)/i,wide:/^(f.Kr.|før vesterlandsk tidsregning|e.Kr.|vesterlandsk tidsregning)/i},parseEraPatterns$q={any:[/^f/i,/^(v|e)/i]},matchQuarterPatterns$q={narrow:/^[1234]/i,abbreviated:/^[1234]. kvt\./i,wide:/^[1234]\.? kvartal/i},parseQuarterPatterns$q={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$q={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mar.|apr.|maj|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januar|februar|marts|april|maj|juni|juli|august|september|oktober|november|december)/i},parseMonthPatterns$q={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$q={narrow:/^[smtofl]/i,short:/^(søn.|man.|tir.|ons.|tor.|fre.|lør.)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},parseDayPatterns$q={narrow:[/^s/i,/^m/i,/^t/i,/^o/i,/^t/i,/^f/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},matchDayPeriodPatterns$q={narrow:/^(a|p|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i,any:/^([ap]\.?\s?m\.?|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i},parseDayPeriodPatterns$q={any:{am:/^a/i,pm:/^p/i,midnight:/midnat/i,noon:/middag/i,morning:/morgen/i,afternoon:/eftermiddag/i,evening:/aften/i,night:/nat/i}},match$q={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$q,parsePattern:parseOrdinalNumberPattern$q,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$q,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$q,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$q,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$q,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$q,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$q,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$q,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$q,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$q,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$q,defaultParseWidth:"any"})},da={code:"da",formatDistance:formatDistance$q,formatLong:formatLong$r,formatRelative:formatRelative$q,localize:localize$q,match:match$q,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale$o={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},formatDistance$p=(e,t,n)=>{let i;const r=n!=null&&n.addSuffix?formatDistanceLocale$o[e].withPreposition:formatDistanceLocale$o[e].standalone;return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:"vor "+i:i},dateFormats$q={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},timeFormats$q={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$q={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong$q={date:buildFormatLongFn({formats:dateFormats$q,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$q,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$q,defaultWidth:"full"})},formatRelativeLocale$p={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},formatRelative$p=(e,t,n,i)=>formatRelativeLocale$p[e],eraValues$p={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},quarterValues$p={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},monthValues$p={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},formattingMonthValues$6={narrow:monthValues$p.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:monthValues$p.wide},dayValues$p={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},dayPeriodValues$p={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},formattingDayPeriodValues$h={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},ordinalNumber$p=e=>Number(e)+".",localize$p={ordinalNumber:ordinalNumber$p,era:buildLocalizeFn({values:eraValues$p,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$p,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$p,formattingValues:formattingMonthValues$6,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$p,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$p,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$h,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$p=/^(\d+)(\.)?/i,parseOrdinalNumberPattern$p=/\d+/i,matchEraPatterns$p={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},parseEraPatterns$p={any:[/^v/i,/^n/i]},matchQuarterPatterns$p={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},parseQuarterPatterns$p={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$p={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},parseMonthPatterns$p={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$p={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},parseDayPatterns$p={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},matchDayPeriodPatterns$p={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},parseDayPeriodPatterns$p={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},match$p={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$p,parsePattern:parseOrdinalNumberPattern$p,valueCallback:e=>parseInt(e)}),era:buildMatchFn({matchPatterns:matchEraPatterns$p,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$p,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$p,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$p,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$p,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$p,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$p,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$p,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$p,defaultMatchWidth:"wide",parsePatterns:parseDayPeriodPatterns$p,defaultParseWidth:"any"})},de={code:"de",formatDistance:formatDistance$p,formatLong:formatLong$q,formatRelative:formatRelative$p,localize:localize$p,match:match$p,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale$n={lessThanXSeconds:{one:"λιγότερο από ένα δευτερόλεπτο",other:"λιγότερο από {{count}} δευτερόλεπτα"},xSeconds:{one:"1 δευτερόλεπτο",other:"{{count}} δευτερόλεπτα"},halfAMinute:"μισό λεπτό",lessThanXMinutes:{one:"λιγότερο από ένα λεπτό",other:"λιγότερο από {{count}} λεπτά"},xMinutes:{one:"1 λεπτό",other:"{{count}} λεπτά"},aboutXHours:{one:"περίπου 1 ώρα",other:"περίπου {{count}} ώρες"},xHours:{one:"1 ώρα",other:"{{count}} ώρες"},xDays:{one:"1 ημέρα",other:"{{count}} ημέρες"},aboutXWeeks:{one:"περίπου 1 εβδομάδα",other:"περίπου {{count}} εβδομάδες"},xWeeks:{one:"1 εβδομάδα",other:"{{count}} εβδομάδες"},aboutXMonths:{one:"περίπου 1 μήνας",other:"περίπου {{count}} μήνες"},xMonths:{one:"1 μήνας",other:"{{count}} μήνες"},aboutXYears:{one:"περίπου 1 χρόνο",other:"περίπου {{count}} χρόνια"},xYears:{one:"1 χρόνο",other:"{{count}} χρόνια"},overXYears:{one:"πάνω από 1 χρόνο",other:"πάνω από {{count}} χρόνια"},almostXYears:{one:"περίπου 1 χρόνο",other:"περίπου {{count}} χρόνια"}},formatDistance$o=(e,t,n)=>{let i;const r=formatDistanceLocale$n[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"σε "+i:i+" πριν":i},dateFormats$p={full:"EEEE, d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"d/M/yy"},timeFormats$p={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats$p={full:"{{date}} - {{time}}",long:"{{date}} - {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$p={date:buildFormatLongFn({formats:dateFormats$p,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$p,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$p,defaultWidth:"full"})},formatRelativeLocale$o={lastWeek:e=>{switch(e.getDay()){case 6:return"'το προηγούμενο' eeee 'στις' p";default:return"'την προηγούμενη' eeee 'στις' p"}},yesterday:"'χθες στις' p",today:"'σήμερα στις' p",tomorrow:"'αύριο στις' p",nextWeek:"eeee 'στις' p",other:"P"},formatRelative$o=(e,t)=>{const n=formatRelativeLocale$o[e];return typeof n=="function"?n(t):n},eraValues$o={narrow:["πΧ","μΧ"],abbreviated:["π.Χ.","μ.Χ."],wide:["προ Χριστού","μετά Χριστόν"]},quarterValues$o={narrow:["1","2","3","4"],abbreviated:["Τ1","Τ2","Τ3","Τ4"],wide:["1ο τρίμηνο","2ο τρίμηνο","3ο τρίμηνο","4ο τρίμηνο"]},monthValues$o={narrow:["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],abbreviated:["Ιαν","Φεβ","Μάρ","Απρ","Μάι","Ιούν","Ιούλ","Αύγ","Σεπ","Οκτ","Νοέ","Δεκ"],wide:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"]},formattingMonthValues$5={narrow:["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],abbreviated:["Ιαν","Φεβ","Μαρ","Απρ","Μαΐ","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ"],wide:["Ιανουαρίου","Φεβρουαρίου","Μαρτίου","Απριλίου","Μαΐου","Ιουνίου","Ιουλίου","Αυγούστου","Σεπτεμβρίου","Οκτωβρίου","Νοεμβρίου","Δεκεμβρίου"]},dayValues$o={narrow:["Κ","Δ","T","Τ","Π","Π","Σ"],short:["Κυ","Δε","Τρ","Τε","Πέ","Πα","Σά"],abbreviated:["Κυρ","Δευ","Τρί","Τετ","Πέμ","Παρ","Σάβ"],wide:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]},dayPeriodValues$o={narrow:{am:"πμ",pm:"μμ",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"},abbreviated:{am:"π.μ.",pm:"μ.μ.",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"},wide:{am:"π.μ.",pm:"μ.μ.",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"}},ordinalNumber$o=(e,t)=>{const n=Number(e),i=t==null?void 0:t.unit;let r;return i==="year"||i==="month"?r="ος":i==="week"||i==="dayOfYear"||i==="day"||i==="hour"||i==="date"?r="η":r="ο",n+r},localize$o={ordinalNumber:ordinalNumber$o,era:buildLocalizeFn({values:eraValues$o,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$o,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$o,defaultWidth:"wide",formattingValues:formattingMonthValues$5,defaultFormattingWidth:"wide"}),day:buildLocalizeFn({values:dayValues$o,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$o,defaultWidth:"wide"})},matchOrdinalNumberPattern$o=/^(\d+)(ος|η|ο)?/i,parseOrdinalNumberPattern$o=/\d+/i,matchEraPatterns$o={narrow:/^(πΧ|μΧ)/i,abbreviated:/^(π\.?\s?χ\.?|π\.?\s?κ\.?\s?χ\.?|μ\.?\s?χ\.?|κ\.?\s?χ\.?)/i,wide:/^(προ Χριστο(ύ|υ)|πριν απ(ό|ο) την Κοιν(ή|η) Χρονολογ(ί|ι)α|μετ(ά|α) Χριστ(ό|ο)ν|Κοιν(ή|η) Χρονολογ(ί|ι)α)/i},parseEraPatterns$o={any:[/^π/i,/^(μ|κ)/i]},matchQuarterPatterns$o={narrow:/^[1234]/i,abbreviated:/^τ[1234]/i,wide:/^[1234]ο? τρ(ί|ι)μηνο/i},parseQuarterPatterns$o={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$o={narrow:/^[ιφμαμιιασονδ]/i,abbreviated:/^(ιαν|φεβ|μ[άα]ρ|απρ|μ[άα][ιΐ]|ιο[ύυ]ν|ιο[ύυ]λ|α[ύυ]γ|σεπ|οκτ|νο[έε]|δεκ)/i,wide:/^(μ[άα][ιΐ]|α[ύυ]γο[υύ]στ)(ος|ου)|(ιανου[άα]ρ|φεβρου[άα]ρ|μ[άα]ρτ|απρ[ίι]λ|ιο[ύυ]ν|ιο[ύυ]λ|σεπτ[έε]μβρ|οκτ[ώω]βρ|νο[έε]μβρ|δεκ[έε]μβρ)(ιος|ίου)/i},parseMonthPatterns$o={narrow:[/^ι/i,/^φ/i,/^μ/i,/^α/i,/^μ/i,/^ι/i,/^ι/i,/^α/i,/^σ/i,/^ο/i,/^ν/i,/^δ/i],any:[/^ια/i,/^φ/i,/^μ[άα]ρ/i,/^απ/i,/^μ[άα][ιΐ]/i,/^ιο[ύυ]ν/i,/^ιο[ύυ]λ/i,/^α[ύυ]/i,/^σ/i,/^ο/i,/^ν/i,/^δ/i]},matchDayPatterns$o={narrow:/^[κδτπσ]/i,short:/^(κυ|δε|τρ|τε|π[εέ]|π[αά]|σ[αά])/i,abbreviated:/^(κυρ|δευ|τρι|τετ|πεμ|παρ|σαβ)/i,wide:/^(κυριακ(ή|η)|δευτ(έ|ε)ρα|τρ(ί|ι)τη|τετ(ά|α)ρτη|π(έ|ε)μπτη|παρασκευ(ή|η)|σ(ά|α)ββατο)/i},parseDayPatterns$o={narrow:[/^κ/i,/^δ/i,/^τ/i,/^τ/i,/^π/i,/^π/i,/^σ/i],any:[/^κ/i,/^δ/i,/^τρ/i,/^τε/i,/^π[εέ]/i,/^π[αά]/i,/^σ/i]},matchDayPeriodPatterns$o={narrow:/^(πμ|μμ|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i,any:/^([πμ]\.?\s?μ\.?|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i},parseDayPeriodPatterns$o={any:{am:/^πμ|π\.\s?μ\./i,pm:/^μμ|μ\.\s?μ\./i,midnight:/^μεσάν/i,noon:/^μεσημ(έ|ε)/i,morning:/πρω(ί|ι)/i,afternoon:/απ(ό|ο)γευμα/i,evening:/βρ(ά|α)δυ/i,night:/ν(ύ|υ)χτα/i}},match$o={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$o,parsePattern:parseOrdinalNumberPattern$o,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$o,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$o,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$o,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$o,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$o,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$o,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$o,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$o,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$o,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$o,defaultParseWidth:"any"})},el={code:"el",formatDistance:formatDistance$o,formatLong:formatLong$p,formatRelative:formatRelative$o,localize:localize$o,match:match$o,options:{weekStartsOn:1,firstWeekContainsDate:4}},dateFormats$o={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},timeFormats$o={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$o={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$o={date:buildFormatLongFn({formats:dateFormats$o,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$o,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$o,defaultWidth:"full"})},enGB={code:"en-GB",formatDistance:formatDistance$u,formatLong:formatLong$o,formatRelative:formatRelative$u,localize:localize$u,match:match$u,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale$m={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},formatDistance$n=(e,t,n)=>{let i;const r=formatDistanceLocale$m[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+i:"hace "+i:i},dateFormats$n={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},timeFormats$n={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$n={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$n={date:buildFormatLongFn({formats:dateFormats$n,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$n,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$n,defaultWidth:"full"})},formatRelativeLocale$n={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},formatRelativeLocalePlural={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},formatRelative$n=(e,t,n,i)=>t.getHours()!==1?formatRelativeLocalePlural[e]:formatRelativeLocale$n[e],eraValues$n={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},quarterValues$n={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},monthValues$n={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},dayValues$n={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},dayPeriodValues$n={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},formattingDayPeriodValues$g={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},ordinalNumber$n=(e,t)=>Number(e)+"º",localize$n={ordinalNumber:ordinalNumber$n,era:buildLocalizeFn({values:eraValues$n,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$n,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:buildLocalizeFn({values:monthValues$n,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$n,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$n,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$g,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$n=/^(\d+)(º)?/i,parseOrdinalNumberPattern$n=/\d+/i,matchEraPatterns$n={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},parseEraPatterns$n={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},matchQuarterPatterns$n={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},parseQuarterPatterns$n={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$n={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},parseMonthPatterns$n={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},matchDayPatterns$n={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},parseDayPatterns$n={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},matchDayPeriodPatterns$n={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},parseDayPeriodPatterns$n={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},match$n={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$n,parsePattern:parseOrdinalNumberPattern$n,valueCallback:function(e){return parseInt(e,10)}}),era:buildMatchFn({matchPatterns:matchEraPatterns$n,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$n,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$n,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$n,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$n,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$n,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$n,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$n,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$n,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$n,defaultParseWidth:"any"})},es={code:"es",formatDistance:formatDistance$n,formatLong:formatLong$n,formatRelative:formatRelative$n,localize:localize$n,match:match$n,options:{weekStartsOn:1,firstWeekContainsDate:1}};function futureSeconds(e){return e.replace(/sekuntia?/,"sekunnin")}function futureMinutes(e){return e.replace(/minuuttia?/,"minuutin")}function futureHours(e){return e.replace(/tuntia?/,"tunnin")}function futureDays(e){return e.replace(/päivää?/,"päivän")}function futureWeeks(e){return e.replace(/(viikko|viikkoa)/,"viikon")}function futureMonths(e){return e.replace(/(kuukausi|kuukautta)/,"kuukauden")}function futureYears(e){return e.replace(/(vuosi|vuotta)/,"vuoden")}const formatDistanceLocale$l={lessThanXSeconds:{one:"alle sekunti",other:"alle {{count}} sekuntia",futureTense:futureSeconds},xSeconds:{one:"sekunti",other:"{{count}} sekuntia",futureTense:futureSeconds},halfAMinute:{one:"puoli minuuttia",other:"puoli minuuttia",futureTense:e=>"puolen minuutin"},lessThanXMinutes:{one:"alle minuutti",other:"alle {{count}} minuuttia",futureTense:futureMinutes},xMinutes:{one:"minuutti",other:"{{count}} minuuttia",futureTense:futureMinutes},aboutXHours:{one:"noin tunti",other:"noin {{count}} tuntia",futureTense:futureHours},xHours:{one:"tunti",other:"{{count}} tuntia",futureTense:futureHours},xDays:{one:"päivä",other:"{{count}} päivää",futureTense:futureDays},aboutXWeeks:{one:"noin viikko",other:"noin {{count}} viikkoa",futureTense:futureWeeks},xWeeks:{one:"viikko",other:"{{count}} viikkoa",futureTense:futureWeeks},aboutXMonths:{one:"noin kuukausi",other:"noin {{count}} kuukautta",futureTense:futureMonths},xMonths:{one:"kuukausi",other:"{{count}} kuukautta",futureTense:futureMonths},aboutXYears:{one:"noin vuosi",other:"noin {{count}} vuotta",futureTense:futureYears},xYears:{one:"vuosi",other:"{{count}} vuotta",futureTense:futureYears},overXYears:{one:"yli vuosi",other:"yli {{count}} vuotta",futureTense:futureYears},almostXYears:{one:"lähes vuosi",other:"lähes {{count}} vuotta",futureTense:futureYears}},formatDistance$m=(e,t,n)=>{const i=formatDistanceLocale$l[e],r=t===1?i.one:i.other.replace("{{count}}",String(t));return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?i.futureTense(r)+" kuluttua":r+" sitten":r},dateFormats$m={full:"eeee d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"d.M.y"},timeFormats$m={full:"HH.mm.ss zzzz",long:"HH.mm.ss z",medium:"HH.mm.ss",short:"HH.mm"},dateTimeFormats$m={full:"{{date}} 'klo' {{time}}",long:"{{date}} 'klo' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong$m={date:buildFormatLongFn({formats:dateFormats$m,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$m,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$m,defaultWidth:"full"})},formatRelativeLocale$m={lastWeek:"'viime' eeee 'klo' p",yesterday:"'eilen klo' p",today:"'tänään klo' p",tomorrow:"'huomenna klo' p",nextWeek:"'ensi' eeee 'klo' p",other:"P"},formatRelative$m=(e,t,n,i)=>formatRelativeLocale$m[e],eraValues$m={narrow:["eaa.","jaa."],abbreviated:["eaa.","jaa."],wide:["ennen ajanlaskun alkua","jälkeen ajanlaskun alun"]},quarterValues$m={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartaali","2. kvartaali","3. kvartaali","4. kvartaali"]},monthValues$m={narrow:["T","H","M","H","T","K","H","E","S","L","M","J"],abbreviated:["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],wide:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]},formattingMonthValues$4={narrow:monthValues$m.narrow,abbreviated:monthValues$m.abbreviated,wide:["tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kesäkuuta","heinäkuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta"]},dayValues$m={narrow:["S","M","T","K","T","P","L"],short:["su","ma","ti","ke","to","pe","la"],abbreviated:["sunn.","maan.","tiis.","kesk.","torst.","perj.","la"],wide:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},formattingDayValues={narrow:dayValues$m.narrow,short:dayValues$m.short,abbreviated:dayValues$m.abbreviated,wide:["sunnuntaina","maanantaina","tiistaina","keskiviikkona","torstaina","perjantaina","lauantaina"]},dayPeriodValues$m={narrow:{am:"ap",pm:"ip",midnight:"keskiyö",noon:"keskipäivä",morning:"ap",afternoon:"ip",evening:"illalla",night:"yöllä"},abbreviated:{am:"ap",pm:"ip",midnight:"keskiyö",noon:"keskipäivä",morning:"ap",afternoon:"ip",evening:"illalla",night:"yöllä"},wide:{am:"ap",pm:"ip",midnight:"keskiyöllä",noon:"keskipäivällä",morning:"aamupäivällä",afternoon:"iltapäivällä",evening:"illalla",night:"yöllä"}},ordinalNumber$m=(e,t)=>Number(e)+".",localize$m={ordinalNumber:ordinalNumber$m,era:buildLocalizeFn({values:eraValues$m,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$m,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$m,defaultWidth:"wide",formattingValues:formattingMonthValues$4,defaultFormattingWidth:"wide"}),day:buildLocalizeFn({values:dayValues$m,defaultWidth:"wide",formattingValues:formattingDayValues,defaultFormattingWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$m,defaultWidth:"wide"})},matchOrdinalNumberPattern$m=/^(\d+)(\.)/i,parseOrdinalNumberPattern$m=/\d+/i,matchEraPatterns$m={narrow:/^(e|j)/i,abbreviated:/^(eaa.|jaa.)/i,wide:/^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i},parseEraPatterns$m={any:[/^e/i,/^j/i]},matchQuarterPatterns$m={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\.? kvartaali/i},parseQuarterPatterns$m={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$m={narrow:/^[thmkeslj]/i,abbreviated:/^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i,wide:/^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i},parseMonthPatterns$m={narrow:[/^t/i,/^h/i,/^m/i,/^h/i,/^t/i,/^k/i,/^h/i,/^e/i,/^s/i,/^l/i,/^m/i,/^j/i],any:[/^ta/i,/^hel/i,/^maa/i,/^hu/i,/^to/i,/^k/i,/^hei/i,/^e/i,/^s/i,/^l/i,/^mar/i,/^j/i]},matchDayPatterns$m={narrow:/^[smtkpl]/i,short:/^(su|ma|ti|ke|to|pe|la)/i,abbreviated:/^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i,wide:/^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i},parseDayPatterns$m={narrow:[/^s/i,/^m/i,/^t/i,/^k/i,/^t/i,/^p/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^k/i,/^to/i,/^p/i,/^l/i]},matchDayPeriodPatterns$m={narrow:/^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i,any:/^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i},parseDayPeriodPatterns$m={any:{am:/^ap/i,pm:/^ip/i,midnight:/^keskiyö/i,noon:/^keskipäivä/i,morning:/aamupäivällä/i,afternoon:/iltapäivällä/i,evening:/illalla/i,night:/yöllä/i}},match$m={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$m,parsePattern:parseOrdinalNumberPattern$m,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$m,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$m,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$m,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$m,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$m,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$m,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$m,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$m,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$m,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$m,defaultParseWidth:"any"})},fi={code:"fi",formatDistance:formatDistance$m,formatLong:formatLong$m,formatRelative:formatRelative$m,localize:localize$m,match:match$m,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale$k={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},formatDistance$l=(e,t,n)=>{let i;const r=formatDistanceLocale$k[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"dans "+i:"il y a "+i:i},dateFormats$l={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},timeFormats$l={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$l={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$l={date:buildFormatLongFn({formats:dateFormats$l,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$l,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$l,defaultWidth:"full"})},formatRelativeLocale$l={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},formatRelative$l=(e,t,n,i)=>formatRelativeLocale$l[e],eraValues$l={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},quarterValues$l={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},monthValues$l={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},dayValues$l={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},dayPeriodValues$l={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},ordinalNumber$l=(e,t)=>{const n=Number(e),i=t==null?void 0:t.unit;if(n===0)return"0";const r=["year","week","hour","minute","second"];let a;return n===1?a=i&&r.includes(i)?"ère":"er":a="ème",n+a},localize$l={ordinalNumber:ordinalNumber$l,era:buildLocalizeFn({values:eraValues$l,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$l,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$l,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$l,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$l,defaultWidth:"wide"})},matchOrdinalNumberPattern$l=/^(\d+)(ième|ère|ème|er|e)?/i,parseOrdinalNumberPattern$l=/\d+/i,matchEraPatterns$l={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},parseEraPatterns$l={any:[/^av/i,/^ap/i]},matchQuarterPatterns$l={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},parseQuarterPatterns$l={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$l={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},parseMonthPatterns$l={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$l={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},parseDayPatterns$l={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},matchDayPeriodPatterns$l={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},parseDayPeriodPatterns$l={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},match$l={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$l,parsePattern:parseOrdinalNumberPattern$l,valueCallback:e=>parseInt(e)}),era:buildMatchFn({matchPatterns:matchEraPatterns$l,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$l,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$l,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$l,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$l,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$l,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$l,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$l,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$l,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$l,defaultParseWidth:"any"})},fr={code:"fr",formatDistance:formatDistance$l,formatLong:formatLong$l,formatRelative:formatRelative$l,localize:localize$l,match:match$l,options:{weekStartsOn:1,firstWeekContainsDate:4}},translations={about:"körülbelül",over:"több mint",almost:"majdnem",lessthan:"kevesebb mint"},withoutSuffixes={xseconds:" másodperc",halfaminute:"fél perc",xminutes:" perc",xhours:" óra",xdays:" nap",xweeks:" hét",xmonths:" hónap",xyears:" év"},withSuffixes={xseconds:{"-1":" másodperccel ezelőtt",1:" másodperc múlva",0:" másodperce"},halfaminute:{"-1":"fél perccel ezelőtt",1:"fél perc múlva",0:"fél perce"},xminutes:{"-1":" perccel ezelőtt",1:" perc múlva",0:" perce"},xhours:{"-1":" órával ezelőtt",1:" óra múlva",0:" órája"},xdays:{"-1":" nappal ezelőtt",1:" nap múlva",0:" napja"},xweeks:{"-1":" héttel ezelőtt",1:" hét múlva",0:" hete"},xmonths:{"-1":" hónappal ezelőtt",1:" hónap múlva",0:" hónapja"},xyears:{"-1":" évvel ezelőtt",1:" év múlva",0:" éve"}},formatDistance$k=(e,t,n)=>{const i=e.match(/about|over|almost|lessthan/i),r=i?e.replace(i[0],""):e,a=(n==null?void 0:n.addSuffix)===!0,o=r.toLowerCase(),l=(n==null?void 0:n.comparison)||0,u=a?withSuffixes[o][l]:withoutSuffixes[o];let d=o==="halfaminute"?u:t+u;if(i){const m=i[0].toLowerCase();d=translations[m]+" "+d}return d},dateFormats$k={full:"y. MMMM d., EEEE",long:"y. MMMM d.",medium:"y. MMM d.",short:"y. MM. dd."},timeFormats$k={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},dateTimeFormats$k={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong$k={date:buildFormatLongFn({formats:dateFormats$k,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$k,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$k,defaultWidth:"full"})},accusativeWeekdays$3=["vasárnap","hétfőn","kedden","szerdán","csütörtökön","pénteken","szombaton"];function week(e){return t=>{const n=accusativeWeekdays$3[t.getDay()];return`${e?"":"'múlt' "}'${n}' p'-kor'`}}const formatRelativeLocale$k={lastWeek:week(!1),yesterday:"'tegnap' p'-kor'",today:"'ma' p'-kor'",tomorrow:"'holnap' p'-kor'",nextWeek:week(!0),other:"P"},formatRelative$k=(e,t)=>{const n=formatRelativeLocale$k[e];return typeof n=="function"?n(t):n},eraValues$k={narrow:["ie.","isz."],abbreviated:["i. e.","i. sz."],wide:["Krisztus előtt","időszámításunk szerint"]},quarterValues$k={narrow:["1.","2.","3.","4."],abbreviated:["1. n.év","2. n.év","3. n.év","4. n.év"],wide:["1. negyedév","2. negyedév","3. negyedév","4. negyedév"]},formattingQuarterValues$1={narrow:["I.","II.","III.","IV."],abbreviated:["I. n.év","II. n.év","III. n.év","IV. n.év"],wide:["I. negyedév","II. negyedév","III. negyedév","IV. negyedév"]},monthValues$k={narrow:["J","F","M","Á","M","J","J","A","Sz","O","N","D"],abbreviated:["jan.","febr.","márc.","ápr.","máj.","jún.","júl.","aug.","szept.","okt.","nov.","dec."],wide:["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"]},dayValues$k={narrow:["V","H","K","Sz","Cs","P","Sz"],short:["V","H","K","Sze","Cs","P","Szo"],abbreviated:["V","H","K","Sze","Cs","P","Szo"],wide:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},dayPeriodValues$k={narrow:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"du.",evening:"este",night:"éjjel"},abbreviated:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"du.",evening:"este",night:"éjjel"},wide:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"délután",evening:"este",night:"éjjel"}},ordinalNumber$k=(e,t)=>Number(e)+".",localize$k={ordinalNumber:ordinalNumber$k,era:buildLocalizeFn({values:eraValues$k,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$k,defaultWidth:"wide",argumentCallback:e=>e-1,formattingValues:formattingQuarterValues$1,defaultFormattingWidth:"wide"}),month:buildLocalizeFn({values:monthValues$k,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$k,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$k,defaultWidth:"wide"})},matchOrdinalNumberPattern$k=/^(\d+)\.?/i,parseOrdinalNumberPattern$k=/\d+/i,matchEraPatterns$k={narrow:/^(ie\.|isz\.)/i,abbreviated:/^(i\.\s?e\.?|b?\s?c\s?e|i\.\s?sz\.?)/i,wide:/^(Krisztus előtt|időszámításunk előtt|időszámításunk szerint|i\. sz\.)/i},parseEraPatterns$k={narrow:[/ie/i,/isz/i],abbreviated:[/^(i\.?\s?e\.?|b\s?ce)/i,/^(i\.?\s?sz\.?|c\s?e)/i],any:[/előtt/i,/(szerint|i. sz.)/i]},matchQuarterPatterns$k={narrow:/^[1234]\.?/i,abbreviated:/^[1234]?\.?\s?n\.év/i,wide:/^([1234]|I|II|III|IV)?\.?\s?negyedév/i},parseQuarterPatterns$k={any:[/1|I$/i,/2|II$/i,/3|III/i,/4|IV/i]},matchMonthPatterns$k={narrow:/^[jfmaásond]|sz/i,abbreviated:/^(jan\.?|febr\.?|márc\.?|ápr\.?|máj\.?|jún\.?|júl\.?|aug\.?|szept\.?|okt\.?|nov\.?|dec\.?)/i,wide:/^(január|február|március|április|május|június|július|augusztus|szeptember|október|november|december)/i},parseMonthPatterns$k={narrow:[/^j/i,/^f/i,/^m/i,/^a|á/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s|sz/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^már/i,/^áp/i,/^máj/i,/^jún/i,/^júl/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$k={narrow:/^([vhkpc]|sz|cs|sz)/i,short:/^([vhkp]|sze|cs|szo)/i,abbreviated:/^([vhkp]|sze|cs|szo)/i,wide:/^(vasárnap|hétfő|kedd|szerda|csütörtök|péntek|szombat)/i},parseDayPatterns$k={narrow:[/^v/i,/^h/i,/^k/i,/^sz/i,/^c/i,/^p/i,/^sz/i],any:[/^v/i,/^h/i,/^k/i,/^sze/i,/^c/i,/^p/i,/^szo/i]},matchDayPeriodPatterns$k={any:/^((de|du)\.?|éjfél|délután|dél|reggel|este|éjjel)/i},parseDayPeriodPatterns$k={any:{am:/^de\.?/i,pm:/^du\.?/i,midnight:/^éjf/i,noon:/^dé/i,morning:/reg/i,afternoon:/^délu\.?/i,evening:/es/i,night:/éjj/i}},match$k={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$k,parsePattern:parseOrdinalNumberPattern$k,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$k,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$k,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$k,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$k,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$k,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$k,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$k,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$k,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$k,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$k,defaultParseWidth:"any"})},hu={code:"hu",formatDistance:formatDistance$k,formatLong:formatLong$k,formatRelative:formatRelative$k,localize:localize$k,match:match$k,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale$j={lessThanXSeconds:{one:"kurang dari 1 detik",other:"kurang dari {{count}} detik"},xSeconds:{one:"1 detik",other:"{{count}} detik"},halfAMinute:"setengah menit",lessThanXMinutes:{one:"kurang dari 1 menit",other:"kurang dari {{count}} menit"},xMinutes:{one:"1 menit",other:"{{count}} menit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},formatDistance$j=(e,t,n)=>{let i;const r=formatDistanceLocale$j[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"dalam waktu "+i:i+" yang lalu":i},dateFormats$j={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},timeFormats$j={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},dateTimeFormats$j={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$j={date:buildFormatLongFn({formats:dateFormats$j,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$j,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$j,defaultWidth:"full"})},formatRelativeLocale$j={lastWeek:"eeee 'lalu pukul' p",yesterday:"'Kemarin pukul' p",today:"'Hari ini pukul' p",tomorrow:"'Besok pukul' p",nextWeek:"eeee 'pukul' p",other:"P"},formatRelative$j=(e,t,n,i)=>formatRelativeLocale$j[e],eraValues$j={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masehi","Masehi"]},quarterValues$j={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"]},monthValues$j={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agt","Sep","Okt","Nov","Des"],wide:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},dayValues$j={narrow:["M","S","S","R","K","J","S"],short:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],abbreviated:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],wide:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},dayPeriodValues$j={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},formattingDayPeriodValues$f={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},ordinalNumber$j=(e,t)=>"ke-"+Number(e),localize$j={ordinalNumber:ordinalNumber$j,era:buildLocalizeFn({values:eraValues$j,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$j,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$j,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$j,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$j,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$f,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$j=/^ke-(\d+)?/i,parseOrdinalNumberPattern$j=/\d+/i,matchEraPatterns$j={narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i},parseEraPatterns$j={any:[/^s/i,/^(m|e)/i]},matchQuarterPatterns$j={narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},parseQuarterPatterns$j={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$j={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i},parseMonthPatterns$j={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$j={narrow:/^[srkjm]/i,short:/^(min|sen|sel|rab|kam|jum|sab)/i,abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i,wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i},parseDayPatterns$j={narrow:[/^m/i,/^s/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^m/i,/^sen/i,/^sel/i,/^r/i,/^k/i,/^j/i,/^sa/i]},matchDayPeriodPatterns$j={narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i},parseDayPeriodPatterns$j={any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pagi/i,afternoon:/siang/i,evening:/sore/i,night:/malam/i}},match$j={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$j,parsePattern:parseOrdinalNumberPattern$j,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$j,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$j,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$j,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$j,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$j,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$j,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$j,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$j,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$j,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$j,defaultParseWidth:"any"})},id={code:"id",formatDistance:formatDistance$j,formatLong:formatLong$j,formatRelative:formatRelative$j,localize:localize$j,match:match$j,options:{weekStartsOn:1,firstWeekContainsDate:1}},formatDistanceLocale$i={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},formatDistance$i=(e,t,n)=>{let i;const r=formatDistanceLocale$i[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"tra "+i:i+" fa":i},dateFormats$i={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},timeFormats$i={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$i={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong$i={date:buildFormatLongFn({formats:dateFormats$i,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$i,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$i,defaultWidth:"full"})},weekdays=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function lastWeek$3(e){switch(e){case 0:return"'domenica scorsa alle' p";default:return"'"+weekdays[e]+" scorso alle' p"}}function thisWeek$3(e){return"'"+weekdays[e]+" alle' p"}function nextWeek$3(e){switch(e){case 0:return"'domenica prossima alle' p";default:return"'"+weekdays[e]+" prossimo alle' p"}}const formatRelativeLocale$i={lastWeek:(e,t,n)=>{const i=e.getDay();return isSameWeek(e,t,n)?thisWeek$3(i):lastWeek$3(i)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:(e,t,n)=>{const i=e.getDay();return isSameWeek(e,t,n)?thisWeek$3(i):nextWeek$3(i)},other:"P"},formatRelative$i=(e,t,n,i)=>{const r=formatRelativeLocale$i[e];return typeof r=="function"?r(t,n,i):r},eraValues$i={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},quarterValues$i={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},monthValues$i={narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},dayValues$i={narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},dayPeriodValues$i={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},formattingDayPeriodValues$e={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},ordinalNumber$i=(e,t)=>{const n=Number(e);return String(n)},localize$i={ordinalNumber:ordinalNumber$i,era:buildLocalizeFn({values:eraValues$i,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$i,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$i,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$i,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$i,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$e,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$i=/^(\d+)(º)?/i,parseOrdinalNumberPattern$i=/\d+/i,matchEraPatterns$i={narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},parseEraPatterns$i={any:[/^a/i,/^(d|e)/i]},matchQuarterPatterns$i={narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},parseQuarterPatterns$i={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$i={narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},parseMonthPatterns$i={narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$i={narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},parseDayPatterns$i={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},matchDayPeriodPatterns$i={narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},parseDayPeriodPatterns$i={any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},match$i={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$i,parsePattern:parseOrdinalNumberPattern$i,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$i,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$i,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$i,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$i,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$i,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$i,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$i,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$i,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$i,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$i,defaultParseWidth:"any"})},it={code:"it",formatDistance:formatDistance$i,formatLong:formatLong$i,formatRelative:formatRelative$i,localize:localize$i,match:match$i,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale$h={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},formatDistance$h=(e,t,n)=>{n=n||{};let i;const r=formatDistanceLocale$h[e];return typeof r=="string"?i=r:t===1?n.addSuffix&&r.oneWithSuffix?i=r.oneWithSuffix:i=r.one:n.addSuffix&&r.otherWithSuffix?i=r.otherWithSuffix.replace("{{count}}",String(t)):i=r.other.replace("{{count}}",String(t)),n.addSuffix?n.comparison&&n.comparison>0?i+"後":i+"前":i},dateFormats$h={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},timeFormats$h={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},dateTimeFormats$h={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong$h={date:buildFormatLongFn({formats:dateFormats$h,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$h,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$h,defaultWidth:"full"})},formatRelativeLocale$h={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},formatRelative$h=(e,t,n,i)=>formatRelativeLocale$h[e],eraValues$h={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},quarterValues$h={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},monthValues$h={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},dayValues$h={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},dayPeriodValues$h={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},formattingDayPeriodValues$d={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},ordinalNumber$h=(e,t)=>{const n=Number(e);switch(String(t==null?void 0:t.unit)){case"year":return`${n}年`;case"quarter":return`第${n}四半期`;case"month":return`${n}月`;case"week":return`第${n}週`;case"date":return`${n}日`;case"hour":return`${n}時`;case"minute":return`${n}分`;case"second":return`${n}秒`;default:return`${n}`}},localize$h={ordinalNumber:ordinalNumber$h,era:buildLocalizeFn({values:eraValues$h,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$h,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:buildLocalizeFn({values:monthValues$h,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$h,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$h,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$d,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$h=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,parseOrdinalNumberPattern$h=/\d+/i,matchEraPatterns$h={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},parseEraPatterns$h={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},matchQuarterPatterns$h={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},parseQuarterPatterns$h={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},matchMonthPatterns$h={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},parseMonthPatterns$h={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},matchDayPatterns$h={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},parseDayPatterns$h={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},matchDayPeriodPatterns$h={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},parseDayPeriodPatterns$h={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},match$h={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$h,parsePattern:parseOrdinalNumberPattern$h,valueCallback:function(e){return parseInt(e,10)}}),era:buildMatchFn({matchPatterns:matchEraPatterns$h,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$h,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$h,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$h,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$h,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$h,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$h,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$h,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$h,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$h,defaultParseWidth:"any"})},ja={code:"ja",formatDistance:formatDistance$h,formatLong:formatLong$h,formatRelative:formatRelative$h,localize:localize$h,match:match$h,options:{weekStartsOn:0,firstWeekContainsDate:1}},formatDistanceLocale$g={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},formatDistance$g=(e,t,n)=>{let i;const r=formatDistanceLocale$g[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?i+" 후":i+" 전":i},dateFormats$g={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},timeFormats$g={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$g={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong$g={date:buildFormatLongFn({formats:dateFormats$g,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$g,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$g,defaultWidth:"full"})},formatRelativeLocale$g={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},formatRelative$g=(e,t,n,i)=>formatRelativeLocale$g[e],eraValues$g={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},quarterValues$g={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},monthValues$g={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},dayValues$g={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},dayPeriodValues$g={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},formattingDayPeriodValues$c={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},ordinalNumber$g=(e,t)=>{const n=Number(e);switch(String(t==null?void 0:t.unit)){case"minute":case"second":return String(n);case"date":return n+"일";default:return n+"번째"}},localize$g={ordinalNumber:ordinalNumber$g,era:buildLocalizeFn({values:eraValues$g,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$g,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$g,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$g,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$g,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$c,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$g=/^(\d+)(일|번째)?/i,parseOrdinalNumberPattern$g=/\d+/i,matchEraPatterns$g={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},parseEraPatterns$g={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},matchQuarterPatterns$g={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},parseQuarterPatterns$g={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$g={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},parseMonthPatterns$g={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},matchDayPatterns$g={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},parseDayPatterns$g={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},matchDayPeriodPatterns$g={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},parseDayPeriodPatterns$g={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},match$g={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$g,parsePattern:parseOrdinalNumberPattern$g,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$g,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$g,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$g,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$g,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$g,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$g,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$g,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$g,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$g,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$g,defaultParseWidth:"any"})},ko={code:"ko",formatDistance:formatDistance$g,formatLong:formatLong$g,formatRelative:formatRelative$g,localize:localize$g,match:match$g,options:{weekStartsOn:0,firstWeekContainsDate:1}},formatDistanceLocale$f={lessThanXSeconds:{one:"mindre enn ett sekund",other:"mindre enn {{count}} sekunder"},xSeconds:{one:"ett sekund",other:"{{count}} sekunder"},halfAMinute:"et halvt minutt",lessThanXMinutes:{one:"mindre enn ett minutt",other:"mindre enn {{count}} minutter"},xMinutes:{one:"ett minutt",other:"{{count}} minutter"},aboutXHours:{one:"omtrent en time",other:"omtrent {{count}} timer"},xHours:{one:"en time",other:"{{count}} timer"},xDays:{one:"en dag",other:"{{count}} dager"},aboutXWeeks:{one:"omtrent en uke",other:"omtrent {{count}} uker"},xWeeks:{one:"en uke",other:"{{count}} uker"},aboutXMonths:{one:"omtrent en måned",other:"omtrent {{count}} måneder"},xMonths:{one:"en måned",other:"{{count}} måneder"},aboutXYears:{one:"omtrent ett år",other:"omtrent {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"over ett år",other:"over {{count}} år"},almostXYears:{one:"nesten ett år",other:"nesten {{count}} år"}},formatDistance$f=(e,t,n)=>{let i;const r=formatDistanceLocale$f[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"om "+i:i+" siden":i},dateFormats$f={full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},timeFormats$f={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$f={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong$f={date:buildFormatLongFn({formats:dateFormats$f,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$f,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$f,defaultWidth:"full"})},formatRelativeLocale$f={lastWeek:"'forrige' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},formatRelative$f=(e,t,n,i)=>formatRelativeLocale$f[e],eraValues$f={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["før Kristus","etter Kristus"]},quarterValues$f={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},monthValues$f={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","mai","juni","juli","aug.","sep.","okt.","nov.","des."],wide:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},dayValues$f={narrow:["S","M","T","O","T","F","L"],short:["sø","ma","ti","on","to","fr","lø"],abbreviated:["søn","man","tir","ons","tor","fre","lør"],wide:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},dayPeriodValues$f={narrow:{am:"a",pm:"p",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natten"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morgenen",afternoon:"på ettermiddagen",evening:"på kvelden",night:"på natten"}},ordinalNumber$f=(e,t)=>Number(e)+".",localize$f={ordinalNumber:ordinalNumber$f,era:buildLocalizeFn({values:eraValues$f,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$f,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$f,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$f,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$f,defaultWidth:"wide"})},matchOrdinalNumberPattern$f=/^(\d+)\.?/i,parseOrdinalNumberPattern$f=/\d+/i,matchEraPatterns$f={narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},parseEraPatterns$f={any:[/^f/i,/^e/i]},matchQuarterPatterns$f={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},parseQuarterPatterns$f={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$f={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},parseMonthPatterns$f={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$f={narrow:/^[smtofl]/i,short:/^(sø|ma|ti|on|to|fr|lø)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},parseDayPatterns$f={any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},matchDayPeriodPatterns$f={narrow:/^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i},parseDayPeriodPatterns$f={any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgen/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},match$f={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$f,parsePattern:parseOrdinalNumberPattern$f,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$f,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$f,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$f,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$f,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$f,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$f,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$f,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$f,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$f,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$f,defaultParseWidth:"any"})},nb={code:"nb",formatDistance:formatDistance$f,formatLong:formatLong$f,formatRelative:formatRelative$f,localize:localize$f,match:match$f,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale$e={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},formatDistance$e=(e,t,n)=>{let i;const r=formatDistanceLocale$e[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"over "+i:i+" geleden":i},dateFormats$e={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},timeFormats$e={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$e={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$e={date:buildFormatLongFn({formats:dateFormats$e,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$e,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$e,defaultWidth:"full"})},formatRelativeLocale$e={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},formatRelative$e=(e,t,n,i)=>formatRelativeLocale$e[e],eraValues$e={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},quarterValues$e={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},monthValues$e={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},dayValues$e={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},dayPeriodValues$e={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},ordinalNumber$e=(e,t)=>Number(e)+"e",localize$e={ordinalNumber:ordinalNumber$e,era:buildLocalizeFn({values:eraValues$e,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$e,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$e,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$e,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$e,defaultWidth:"wide"})},matchOrdinalNumberPattern$e=/^(\d+)e?/i,parseOrdinalNumberPattern$e=/\d+/i,matchEraPatterns$e={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},parseEraPatterns$e={any:[/^v/,/^n/]},matchQuarterPatterns$e={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},parseQuarterPatterns$e={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$e={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},parseMonthPatterns$e={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},matchDayPatterns$e={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},parseDayPatterns$e={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},matchDayPeriodPatterns$e={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},parseDayPeriodPatterns$e={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},match$e={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$e,parsePattern:parseOrdinalNumberPattern$e,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$e,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$e,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$e,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$e,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$e,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$e,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$e,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$e,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$e,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$e,defaultParseWidth:"any"})},nl={code:"nl",formatDistance:formatDistance$e,formatLong:formatLong$e,formatRelative:formatRelative$e,localize:localize$e,match:match$e,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale$d={lessThanXSeconds:{one:"mindre enn eitt sekund",other:"mindre enn {{count}} sekund"},xSeconds:{one:"eitt sekund",other:"{{count}} sekund"},halfAMinute:"eit halvt minutt",lessThanXMinutes:{one:"mindre enn eitt minutt",other:"mindre enn {{count}} minutt"},xMinutes:{one:"eitt minutt",other:"{{count}} minutt"},aboutXHours:{one:"omtrent ein time",other:"omtrent {{count}} timar"},xHours:{one:"ein time",other:"{{count}} timar"},xDays:{one:"ein dag",other:"{{count}} dagar"},aboutXWeeks:{one:"omtrent ei veke",other:"omtrent {{count}} veker"},xWeeks:{one:"ei veke",other:"{{count}} veker"},aboutXMonths:{one:"omtrent ein månad",other:"omtrent {{count}} månader"},xMonths:{one:"ein månad",other:"{{count}} månader"},aboutXYears:{one:"omtrent eitt år",other:"omtrent {{count}} år"},xYears:{one:"eitt år",other:"{{count}} år"},overXYears:{one:"over eitt år",other:"over {{count}} år"},almostXYears:{one:"nesten eitt år",other:"nesten {{count}} år"}},wordMapping$1=["null","ein","to","tre","fire","fem","seks","sju","åtte","ni","ti","elleve","tolv"],formatDistance$d=(e,t,n)=>{let i;const r=formatDistanceLocale$d[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",t<13?wordMapping$1[t]:String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"om "+i:i+" sidan":i},dateFormats$d={full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},timeFormats$d={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$d={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong$d={date:buildFormatLongFn({formats:dateFormats$d,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$d,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$d,defaultWidth:"full"})},formatRelativeLocale$d={lastWeek:"'førre' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},formatRelative$d=(e,t,n,i)=>formatRelativeLocale$d[e],eraValues$d={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["før Kristus","etter Kristus"]},quarterValues$d={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},monthValues$d={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","mai","juni","juli","aug.","sep.","okt.","nov.","des."],wide:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},dayValues$d={narrow:["S","M","T","O","T","F","L"],short:["su","må","ty","on","to","fr","lau"],abbreviated:["sun","mån","tys","ons","tor","fre","laur"],wide:["sundag","måndag","tysdag","onsdag","torsdag","fredag","laurdag"]},dayPeriodValues$d={narrow:{am:"a",pm:"p",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natta"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natta"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morgonen",afternoon:"på ettermiddagen",evening:"på kvelden",night:"på natta"}},ordinalNumber$d=(e,t)=>Number(e)+".",localize$d={ordinalNumber:ordinalNumber$d,era:buildLocalizeFn({values:eraValues$d,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$d,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$d,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$d,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$d,defaultWidth:"wide"})},matchOrdinalNumberPattern$d=/^(\d+)\.?/i,parseOrdinalNumberPattern$d=/\d+/i,matchEraPatterns$d={narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},parseEraPatterns$d={any:[/^f/i,/^e/i]},matchQuarterPatterns$d={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},parseQuarterPatterns$d={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$d={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},parseMonthPatterns$d={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$d={narrow:/^[smtofl]/i,short:/^(su|må|ty|on|to|fr|la)/i,abbreviated:/^(sun|mån|tys|ons|tor|fre|laur)/i,wide:/^(sundag|måndag|tysdag|onsdag|torsdag|fredag|laurdag)/i},parseDayPatterns$d={any:[/^s/i,/^m/i,/^ty/i,/^o/i,/^to/i,/^f/i,/^l/i]},matchDayPeriodPatterns$d={narrow:/^(midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta))/i},parseDayPeriodPatterns$d={any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},match$d={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$d,parsePattern:parseOrdinalNumberPattern$d,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$d,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$d,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$d,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$d,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$d,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$d,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$d,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$d,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$d,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$d,defaultParseWidth:"any"})},nn={code:"nn",formatDistance:formatDistance$d,formatLong:formatLong$d,formatRelative:formatRelative$d,localize:localize$d,match:match$d,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale$c={lessThanXSeconds:{one:{regular:"mniej niż sekunda",past:"mniej niż sekundę",future:"mniej niż sekundę"},twoFour:"mniej niż {{count}} sekundy",other:"mniej niż {{count}} sekund"},xSeconds:{one:{regular:"sekunda",past:"sekundę",future:"sekundę"},twoFour:"{{count}} sekundy",other:"{{count}} sekund"},halfAMinute:{one:"pół minuty",twoFour:"pół minuty",other:"pół minuty"},lessThanXMinutes:{one:{regular:"mniej niż minuta",past:"mniej niż minutę",future:"mniej niż minutę"},twoFour:"mniej niż {{count}} minuty",other:"mniej niż {{count}} minut"},xMinutes:{one:{regular:"minuta",past:"minutę",future:"minutę"},twoFour:"{{count}} minuty",other:"{{count}} minut"},aboutXHours:{one:{regular:"około godziny",past:"około godziny",future:"około godzinę"},twoFour:"około {{count}} godziny",other:"około {{count}} godzin"},xHours:{one:{regular:"godzina",past:"godzinę",future:"godzinę"},twoFour:"{{count}} godziny",other:"{{count}} godzin"},xDays:{one:{regular:"dzień",past:"dzień",future:"1 dzień"},twoFour:"{{count}} dni",other:"{{count}} dni"},aboutXWeeks:{one:"około tygodnia",twoFour:"około {{count}} tygodni",other:"około {{count}} tygodni"},xWeeks:{one:"tydzień",twoFour:"{{count}} tygodnie",other:"{{count}} tygodni"},aboutXMonths:{one:"około miesiąc",twoFour:"około {{count}} miesiące",other:"około {{count}} miesięcy"},xMonths:{one:"miesiąc",twoFour:"{{count}} miesiące",other:"{{count}} miesięcy"},aboutXYears:{one:"około rok",twoFour:"około {{count}} lata",other:"około {{count}} lat"},xYears:{one:"rok",twoFour:"{{count}} lata",other:"{{count}} lat"},overXYears:{one:"ponad rok",twoFour:"ponad {{count}} lata",other:"ponad {{count}} lat"},almostXYears:{one:"prawie rok",twoFour:"prawie {{count}} lata",other:"prawie {{count}} lat"}};function declensionGroup$1(e,t){if(t===1)return e.one;const n=t%100;if(n<=20&&n>10)return e.other;const i=n%10;return i>=2&&i<=4?e.twoFour:e.other}function declension$3(e,t,n){const i=declensionGroup$1(e,t);return(typeof i=="string"?i:i[n]).replace("{{count}}",String(t))}const formatDistance$c=(e,t,n)=>{const i=formatDistanceLocale$c[e];return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"za "+declension$3(i,t,"future"):declension$3(i,t,"past")+" temu":declension$3(i,t,"regular")},dateFormats$c={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},timeFormats$c={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$c={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$c={date:buildFormatLongFn({formats:dateFormats$c,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$c,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$c,defaultWidth:"full"})},adjectivesLastWeek={masculine:"ostatni",feminine:"ostatnia"},adjectivesThisWeek={masculine:"ten",feminine:"ta"},adjectivesNextWeek={masculine:"następny",feminine:"następna"},dayGrammaticalGender={0:"feminine",1:"masculine",2:"masculine",3:"feminine",4:"masculine",5:"masculine",6:"feminine"};function dayAndTimeWithAdjective(e,t,n,i){let r;if(isSameWeek(t,n,i))r=adjectivesThisWeek;else if(e==="lastWeek")r=adjectivesLastWeek;else if(e==="nextWeek")r=adjectivesNextWeek;else throw new Error(`Cannot determine adjectives for token ${e}`);const a=t.getDay(),o=dayGrammaticalGender[a];return`'${r[o]}' eeee 'o' p`}const formatRelativeLocale$c={lastWeek:dayAndTimeWithAdjective,yesterday:"'wczoraj o' p",today:"'dzisiaj o' p",tomorrow:"'jutro o' p",nextWeek:dayAndTimeWithAdjective,other:"P"},formatRelative$c=(e,t,n,i)=>{const r=formatRelativeLocale$c[e];return typeof r=="function"?r(e,t,n,i):r},eraValues$c={narrow:["p.n.e.","n.e."],abbreviated:["p.n.e.","n.e."],wide:["przed naszą erą","naszej ery"]},quarterValues$c={narrow:["1","2","3","4"],abbreviated:["I kw.","II kw.","III kw.","IV kw."],wide:["I kwartał","II kwartał","III kwartał","IV kwartał"]},monthValues$c={narrow:["S","L","M","K","M","C","L","S","W","P","L","G"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},monthFormattingValues={narrow:["s","l","m","k","m","c","l","s","w","p","l","g"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","września","października","listopada","grudnia"]},dayValues$c={narrow:["N","P","W","Ś","C","P","S"],short:["nie","pon","wto","śro","czw","pią","sob"],abbreviated:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],wide:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},dayFormattingValues={narrow:["n","p","w","ś","c","p","s"],short:["nie","pon","wto","śro","czw","pią","sob"],abbreviated:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],wide:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},dayPeriodValues$c={narrow:{am:"a",pm:"p",midnight:"półn.",noon:"poł",morning:"rano",afternoon:"popoł.",evening:"wiecz.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"północ",noon:"południe",morning:"rano",afternoon:"popołudnie",evening:"wieczór",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"północ",noon:"południe",morning:"rano",afternoon:"popołudnie",evening:"wieczór",night:"noc"}},dayPeriodFormattingValues={narrow:{am:"a",pm:"p",midnight:"o półn.",noon:"w poł.",morning:"rano",afternoon:"po poł.",evening:"wiecz.",night:"w nocy"},abbreviated:{am:"AM",pm:"PM",midnight:"o północy",noon:"w południe",morning:"rano",afternoon:"po południu",evening:"wieczorem",night:"w nocy"},wide:{am:"AM",pm:"PM",midnight:"o północy",noon:"w południe",morning:"rano",afternoon:"po południu",evening:"wieczorem",night:"w nocy"}},ordinalNumber$c=(e,t)=>String(e),localize$c={ordinalNumber:ordinalNumber$c,era:buildLocalizeFn({values:eraValues$c,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$c,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$c,defaultWidth:"wide",formattingValues:monthFormattingValues,defaultFormattingWidth:"wide"}),day:buildLocalizeFn({values:dayValues$c,defaultWidth:"wide",formattingValues:dayFormattingValues,defaultFormattingWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$c,defaultWidth:"wide",formattingValues:dayPeriodFormattingValues,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$c=/^(\d+)?/i,parseOrdinalNumberPattern$c=/\d+/i,matchEraPatterns$c={narrow:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,abbreviated:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,wide:/^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i},parseEraPatterns$c={any:[/^p/i,/^n/i]},matchQuarterPatterns$c={narrow:/^[1234]/i,abbreviated:/^(I|II|III|IV)\s*kw\.?/i,wide:/^(I|II|III|IV)\s*kwarta(ł|l)/i},parseQuarterPatterns$c={narrow:[/1/i,/2/i,/3/i,/4/i],any:[/^I kw/i,/^II kw/i,/^III kw/i,/^IV kw/i]},matchMonthPatterns$c={narrow:/^[slmkcwpg]/i,abbreviated:/^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i,wide:/^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i},parseMonthPatterns$c={narrow:[/^s/i,/^l/i,/^m/i,/^k/i,/^m/i,/^c/i,/^l/i,/^s/i,/^w/i,/^p/i,/^l/i,/^g/i],any:[/^st/i,/^lu/i,/^mar/i,/^k/i,/^maj/i,/^c/i,/^lip/i,/^si/i,/^w/i,/^p/i,/^lis/i,/^g/i]},matchDayPatterns$c={narrow:/^[npwścs]/i,short:/^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i,abbreviated:/^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i,wide:/^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i},parseDayPatterns$c={narrow:[/^n/i,/^p/i,/^w/i,/^ś/i,/^c/i,/^p/i,/^s/i],abbreviated:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pt/i,/^so/i],any:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pi/i,/^so/i]},matchDayPeriodPatterns$c={narrow:/^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i,any:/^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i},parseDayPeriodPatterns$c={narrow:{am:/^a$/i,pm:/^p$/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i},any:{am:/^am/i,pm:/^pm/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i}},match$c={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$c,parsePattern:parseOrdinalNumberPattern$c,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$c,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$c,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$c,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$c,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$c,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$c,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$c,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$c,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$c,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$c,defaultParseWidth:"any"})},pl={code:"pl",formatDistance:formatDistance$c,formatLong:formatLong$c,formatRelative:formatRelative$c,localize:localize$c,match:match$c,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale$b={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"aproximadamente 1 semana",other:"aproximadamente {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"aproximadamente 1 mês",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},formatDistance$b=(e,t,n)=>{let i;const r=formatDistanceLocale$b[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"daqui a "+i:"há "+i:i},dateFormats$b={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},timeFormats$b={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$b={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$b={date:buildFormatLongFn({formats:dateFormats$b,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$b,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$b,defaultWidth:"full"})},formatRelativeLocale$b={lastWeek:e=>{const t=e.getDay();return"'"+(t===0||t===6?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},formatRelative$b=(e,t,n,i)=>{const r=formatRelativeLocale$b[e];return typeof r=="function"?r(t):r},eraValues$b={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},quarterValues$b={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},monthValues$b={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},dayValues$b={narrow:["d","s","t","q","q","s","s"],short:["dom","seg","ter","qua","qui","sex","sáb"],abbreviated:["dom","seg","ter","qua","qui","sex","sáb"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},dayPeriodValues$b={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"}},formattingDayPeriodValues$b={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"}},ordinalNumber$b=(e,t)=>Number(e)+"º",localize$b={ordinalNumber:ordinalNumber$b,era:buildLocalizeFn({values:eraValues$b,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$b,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$b,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$b,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$b,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$b,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$b=/^(\d+)(º|ª)?/i,parseOrdinalNumberPattern$b=/\d+/i,matchEraPatterns$b={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},parseEraPatterns$b={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},matchQuarterPatterns$b={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},parseQuarterPatterns$b={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$b={narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},parseMonthPatterns$b={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$b={narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},parseDayPatterns$b={narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},matchDayPeriodPatterns$b={narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},parseDayPeriodPatterns$b={any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},match$b={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$b,parsePattern:parseOrdinalNumberPattern$b,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$b,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$b,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$b,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$b,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$b,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$b,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$b,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$b,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$b,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$b,defaultParseWidth:"any"})},pt={code:"pt",formatDistance:formatDistance$b,formatLong:formatLong$b,formatRelative:formatRelative$b,localize:localize$b,match:match$b,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale$a={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},formatDistance$a=(e,t,n)=>{let i;const r=formatDistanceLocale$a[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"em "+i:"há "+i:i},dateFormats$a={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},timeFormats$a={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$a={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$a={date:buildFormatLongFn({formats:dateFormats$a,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$a,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$a,defaultWidth:"full"})},formatRelativeLocale$a={lastWeek:e=>{const t=e.getDay();return"'"+(t===0||t===6?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},formatRelative$a=(e,t,n,i)=>{const r=formatRelativeLocale$a[e];return typeof r=="function"?r(t):r},eraValues$a={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},quarterValues$a={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},monthValues$a={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},dayValues$a={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},dayPeriodValues$a={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},formattingDayPeriodValues$a={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},ordinalNumber$a=(e,t)=>{const n=Number(e);return(t==null?void 0:t.unit)==="week"?n+"ª":n+"º"},localize$a={ordinalNumber:ordinalNumber$a,era:buildLocalizeFn({values:eraValues$a,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$a,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$a,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$a,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$a,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$a,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$a=/^(\d+)[ºªo]?/i,parseOrdinalNumberPattern$a=/\d+/i,matchEraPatterns$a={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},parseEraPatterns$a={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},matchQuarterPatterns$a={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},parseQuarterPatterns$a={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$a={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},parseMonthPatterns$a={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},matchDayPatterns$a={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},parseDayPatterns$a={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},matchDayPeriodPatterns$a={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},parseDayPeriodPatterns$a={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},match$a={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$a,parsePattern:parseOrdinalNumberPattern$a,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$a,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$a,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$a,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$a,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$a,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$a,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$a,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$a,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$a,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$a,defaultParseWidth:"any"})},ptBR={code:"pt-BR",formatDistance:formatDistance$a,formatLong:formatLong$a,formatRelative:formatRelative$a,localize:localize$a,match:match$a,options:{weekStartsOn:0,firstWeekContainsDate:1}},formatDistanceLocale$9={lessThanXSeconds:{one:"mai puțin de o secundă",other:"mai puțin de {{count}} secunde"},xSeconds:{one:"1 secundă",other:"{{count}} secunde"},halfAMinute:"jumătate de minut",lessThanXMinutes:{one:"mai puțin de un minut",other:"mai puțin de {{count}} minute"},xMinutes:{one:"1 minut",other:"{{count}} minute"},aboutXHours:{one:"circa 1 oră",other:"circa {{count}} ore"},xHours:{one:"1 oră",other:"{{count}} ore"},xDays:{one:"1 zi",other:"{{count}} zile"},aboutXWeeks:{one:"circa o săptămână",other:"circa {{count}} săptămâni"},xWeeks:{one:"1 săptămână",other:"{{count}} săptămâni"},aboutXMonths:{one:"circa 1 lună",other:"circa {{count}} luni"},xMonths:{one:"1 lună",other:"{{count}} luni"},aboutXYears:{one:"circa 1 an",other:"circa {{count}} ani"},xYears:{one:"1 an",other:"{{count}} ani"},overXYears:{one:"peste 1 an",other:"peste {{count}} ani"},almostXYears:{one:"aproape 1 an",other:"aproape {{count}} ani"}},formatDistance$9=(e,t,n)=>{let i;const r=formatDistanceLocale$9[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"în "+i:i+" în urmă":i},dateFormats$9={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd.MM.yyyy"},timeFormats$9={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$9={full:"{{date}} 'la' {{time}}",long:"{{date}} 'la' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$9={date:buildFormatLongFn({formats:dateFormats$9,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$9,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$9,defaultWidth:"full"})},formatRelativeLocale$9={lastWeek:"eeee 'trecută la' p",yesterday:"'ieri la' p",today:"'astăzi la' p",tomorrow:"'mâine la' p",nextWeek:"eeee 'viitoare la' p",other:"P"},formatRelative$9=(e,t,n,i)=>formatRelativeLocale$9[e],eraValues$9={narrow:["Î","D"],abbreviated:["Î.d.C.","D.C."],wide:["Înainte de Cristos","După Cristos"]},quarterValues$9={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["primul trimestru","al doilea trimestru","al treilea trimestru","al patrulea trimestru"]},monthValues$9={narrow:["I","F","M","A","M","I","I","A","S","O","N","D"],abbreviated:["ian","feb","mar","apr","mai","iun","iul","aug","sep","oct","noi","dec"],wide:["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"]},dayValues$9={narrow:["d","l","m","m","j","v","s"],short:["du","lu","ma","mi","jo","vi","sâ"],abbreviated:["dum","lun","mar","mie","joi","vin","sâm"],wide:["duminică","luni","marți","miercuri","joi","vineri","sâmbătă"]},dayPeriodValues$9={narrow:{am:"a",pm:"p",midnight:"mn",noon:"ami",morning:"dim",afternoon:"da",evening:"s",night:"n"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"}},formattingDayPeriodValues$9={narrow:{am:"a",pm:"p",midnight:"mn",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"}},ordinalNumber$9=(e,t)=>String(e),localize$9={ordinalNumber:ordinalNumber$9,era:buildLocalizeFn({values:eraValues$9,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$9,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$9,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$9,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$9,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$9,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$9=/^(\d+)?/i,parseOrdinalNumberPattern$9=/\d+/i,matchEraPatterns$9={narrow:/^(Î|D)/i,abbreviated:/^(Î\.?\s?d\.?\s?C\.?|Î\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i,wide:/^(Înainte de Cristos|Înaintea erei noastre|După Cristos|Era noastră)/i},parseEraPatterns$9={any:[/^ÎC/i,/^DC/i],wide:[/^(Înainte de Cristos|Înaintea erei noastre)/i,/^(După Cristos|Era noastră)/i]},matchQuarterPatterns$9={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^trimestrul [1234]/i},parseQuarterPatterns$9={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$9={narrow:/^[ifmaasond]/i,abbreviated:/^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i,wide:/^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i},parseMonthPatterns$9={narrow:[/^i/i,/^f/i,/^m/i,/^a/i,/^m/i,/^i/i,/^i/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ia/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^iun/i,/^iul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$9={narrow:/^[dlmjvs]/i,short:/^(d|l|ma|mi|j|v|s)/i,abbreviated:/^(dum|lun|mar|mie|jo|vi|sâ)/i,wide:/^(duminica|luni|marţi|miercuri|joi|vineri|sâmbătă)/i},parseDayPatterns$9={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^mi/i,/^j/i,/^v/i,/^s/i]},matchDayPeriodPatterns$9={narrow:/^(a|p|mn|a|(dimineaţa|după-amiaza|seara|noaptea))/i,any:/^([ap]\.?\s?m\.?|miezul nopții|amiaza|(dimineaţa|după-amiaza|seara|noaptea))/i},parseDayPeriodPatterns$9={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/amiaza/i,morning:/dimineaţa/i,afternoon:/după-amiaza/i,evening:/seara/i,night:/noaptea/i}},match$9={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$9,parsePattern:parseOrdinalNumberPattern$9,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$9,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$9,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$9,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$9,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$9,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$9,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$9,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$9,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$9,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$9,defaultParseWidth:"any"})},ro={code:"ro",formatDistance:formatDistance$9,formatLong:formatLong$9,formatRelative:formatRelative$9,localize:localize$9,match:match$9,options:{weekStartsOn:1,firstWeekContainsDate:1}};function declension$2(e,t){if(e.one!==void 0&&t===1)return e.one;const n=t%10,i=t%100;return n===1&&i!==11?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(i<10||i>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function buildLocalizeTokenFn$1(e){return(t,n)=>n!=null&&n.addSuffix?n.comparison&&n.comparison>0?e.future?declension$2(e.future,t):"через "+declension$2(e.regular,t):e.past?declension$2(e.past,t):declension$2(e.regular,t)+" назад":declension$2(e.regular,t)}const formatDistanceLocale$8={lessThanXSeconds:buildLocalizeTokenFn$1({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:buildLocalizeTokenFn$1({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:(e,t)=>t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"через полминуты":"полминуты назад":"полминуты",lessThanXMinutes:buildLocalizeTokenFn$1({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:buildLocalizeTokenFn$1({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:buildLocalizeTokenFn$1({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:buildLocalizeTokenFn$1({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:buildLocalizeTokenFn$1({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:buildLocalizeTokenFn$1({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:buildLocalizeTokenFn$1({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:buildLocalizeTokenFn$1({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:buildLocalizeTokenFn$1({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:buildLocalizeTokenFn$1({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:buildLocalizeTokenFn$1({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:buildLocalizeTokenFn$1({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:buildLocalizeTokenFn$1({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},formatDistance$8=(e,t,n)=>formatDistanceLocale$8[e](t,n),dateFormats$8={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},timeFormats$8={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},dateTimeFormats$8={any:"{{date}}, {{time}}"},formatLong$8={date:buildFormatLongFn({formats:dateFormats$8,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$8,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$8,defaultWidth:"any"})},accusativeWeekdays$2=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function lastWeek$2(e){const t=accusativeWeekdays$2[e];switch(e){case 0:return"'в прошлое "+t+" в' p";case 1:case 2:case 4:return"'в прошлый "+t+" в' p";case 3:case 5:case 6:return"'в прошлую "+t+" в' p"}}function thisWeek$2(e){const t=accusativeWeekdays$2[e];return e===2?"'во "+t+" в' p":"'в "+t+" в' p"}function nextWeek$2(e){const t=accusativeWeekdays$2[e];switch(e){case 0:return"'в следующее "+t+" в' p";case 1:case 2:case 4:return"'в следующий "+t+" в' p";case 3:case 5:case 6:return"'в следующую "+t+" в' p"}}const formatRelativeLocale$8={lastWeek:(e,t,n)=>{const i=e.getDay();return isSameWeek(e,t,n)?thisWeek$2(i):lastWeek$2(i)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:(e,t,n)=>{const i=e.getDay();return isSameWeek(e,t,n)?thisWeek$2(i):nextWeek$2(i)},other:"P"},formatRelative$8=(e,t,n,i)=>{const r=formatRelativeLocale$8[e];return typeof r=="function"?r(t,n,i):r},eraValues$8={narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},quarterValues$8={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},monthValues$8={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},formattingMonthValues$3={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},dayValues$8={narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},dayPeriodValues$8={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},formattingDayPeriodValues$8={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},ordinalNumber$8=(e,t)=>{const n=Number(e),i=t==null?void 0:t.unit;let r;return i==="date"?r="-е":i==="week"||i==="minute"||i==="second"?r="-я":r="-й",n+r},localize$8={ordinalNumber:ordinalNumber$8,era:buildLocalizeFn({values:eraValues$8,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$8,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$8,defaultWidth:"wide",formattingValues:formattingMonthValues$3,defaultFormattingWidth:"wide"}),day:buildLocalizeFn({values:dayValues$8,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$8,defaultWidth:"any",formattingValues:formattingDayPeriodValues$8,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$8=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,parseOrdinalNumberPattern$8=/\d+/i,matchEraPatterns$8={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},parseEraPatterns$8={any:[/^д/i,/^н/i]},matchQuarterPatterns$8={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},parseQuarterPatterns$8={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$8={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},parseMonthPatterns$8={narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},matchDayPatterns$8={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},parseDayPatterns$8={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},matchDayPeriodPatterns$8={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},parseDayPeriodPatterns$8={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},match$8={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$8,parsePattern:parseOrdinalNumberPattern$8,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$8,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$8,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$8,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$8,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$8,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$8,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$8,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$8,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$8,defaultMatchWidth:"wide",parsePatterns:parseDayPeriodPatterns$8,defaultParseWidth:"any"})},ru={code:"ru",formatDistance:formatDistance$8,formatLong:formatLong$8,formatRelative:formatRelative$8,localize:localize$8,match:match$8,options:{weekStartsOn:1,firstWeekContainsDate:1}};function declensionGroup(e,t){return t===1&&e.one?e.one:t>=2&&t<=4&&e.twoFour?e.twoFour:e.other}function declension$1(e,t,n){return declensionGroup(e,t)[n].replace("{{count}}",String(t))}function extractPreposition(e){return["lessThan","about","over","almost"].filter(function(n){return!!e.match(new RegExp("^"+n))})[0]}function prefixPreposition(e){let t="";return e==="almost"&&(t="takmer"),e==="about"&&(t="približne"),t.length>0?t+" ":""}function suffixPreposition(e){let t="";return e==="lessThan"&&(t="menej než"),e==="over"&&(t="viac než"),t.length>0?t+" ":""}function lowercaseFirstLetter(e){return e.charAt(0).toLowerCase()+e.slice(1)}const formatDistanceLocale$7={xSeconds:{one:{present:"sekunda",past:"sekundou",future:"sekundu"},twoFour:{present:"{{count}} sekundy",past:"{{count}} sekundami",future:"{{count}} sekundy"},other:{present:"{{count}} sekúnd",past:"{{count}} sekundami",future:"{{count}} sekúnd"}},halfAMinute:{other:{present:"pol minúty",past:"pol minútou",future:"pol minúty"}},xMinutes:{one:{present:"minúta",past:"minútou",future:"minútu"},twoFour:{present:"{{count}} minúty",past:"{{count}} minútami",future:"{{count}} minúty"},other:{present:"{{count}} minút",past:"{{count}} minútami",future:"{{count}} minút"}},xHours:{one:{present:"hodina",past:"hodinou",future:"hodinu"},twoFour:{present:"{{count}} hodiny",past:"{{count}} hodinami",future:"{{count}} hodiny"},other:{present:"{{count}} hodín",past:"{{count}} hodinami",future:"{{count}} hodín"}},xDays:{one:{present:"deň",past:"dňom",future:"deň"},twoFour:{present:"{{count}} dni",past:"{{count}} dňami",future:"{{count}} dni"},other:{present:"{{count}} dní",past:"{{count}} dňami",future:"{{count}} dní"}},xWeeks:{one:{present:"týždeň",past:"týždňom",future:"týždeň"},twoFour:{present:"{{count}} týždne",past:"{{count}} týždňami",future:"{{count}} týždne"},other:{present:"{{count}} týždňov",past:"{{count}} týždňami",future:"{{count}} týždňov"}},xMonths:{one:{present:"mesiac",past:"mesiacom",future:"mesiac"},twoFour:{present:"{{count}} mesiace",past:"{{count}} mesiacmi",future:"{{count}} mesiace"},other:{present:"{{count}} mesiacov",past:"{{count}} mesiacmi",future:"{{count}} mesiacov"}},xYears:{one:{present:"rok",past:"rokom",future:"rok"},twoFour:{present:"{{count}} roky",past:"{{count}} rokmi",future:"{{count}} roky"},other:{present:"{{count}} rokov",past:"{{count}} rokmi",future:"{{count}} rokov"}}},formatDistance$7=(e,t,n)=>{const i=extractPreposition(e)||"",r=lowercaseFirstLetter(e.substring(i.length)),a=formatDistanceLocale$7[r];return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?prefixPreposition(i)+"o "+suffixPreposition(i)+declension$1(a,t,"future"):prefixPreposition(i)+"pred "+suffixPreposition(i)+declension$1(a,t,"past"):prefixPreposition(i)+suffixPreposition(i)+declension$1(a,t,"present")},dateFormats$7={full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. M. y",short:"d. M. y"},timeFormats$7={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},dateTimeFormats$7={full:"{{date}}, {{time}}",long:"{{date}}, {{time}}",medium:"{{date}}, {{time}}",short:"{{date}} {{time}}"},formatLong$7={date:buildFormatLongFn({formats:dateFormats$7,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$7,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$7,defaultWidth:"full"})},accusativeWeekdays$1=["nedeľu","pondelok","utorok","stredu","štvrtok","piatok","sobotu"];function lastWeek$1(e){const t=accusativeWeekdays$1[e];switch(e){case 0:case 3:case 6:return"'minulú "+t+" o' p";default:return"'minulý' eeee 'o' p"}}function thisWeek$1(e){const t=accusativeWeekdays$1[e];return e===4?"'vo' eeee 'o' p":"'v "+t+" o' p"}function nextWeek$1(e){const t=accusativeWeekdays$1[e];switch(e){case 0:case 4:case 6:return"'budúcu "+t+" o' p";default:return"'budúci' eeee 'o' p"}}const formatRelativeLocale$7={lastWeek:(e,t,n)=>{const i=e.getDay();return isSameWeek(e,t,n)?thisWeek$1(i):lastWeek$1(i)},yesterday:"'včera o' p",today:"'dnes o' p",tomorrow:"'zajtra o' p",nextWeek:(e,t,n)=>{const i=e.getDay();return isSameWeek(e,t,n)?thisWeek$1(i):nextWeek$1(i)},other:"P"},formatRelative$7=(e,t,n,i)=>{const r=formatRelativeLocale$7[e];return typeof r=="function"?r(t,n,i):r},eraValues$7={narrow:["pred Kr.","po Kr."],abbreviated:["pred Kr.","po Kr."],wide:["pred Kristom","po Kristovi"]},quarterValues$7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. štvrťrok","2. štvrťrok","3. štvrťrok","4. štvrťrok"]},monthValues$7={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","feb","mar","apr","máj","jún","júl","aug","sep","okt","nov","dec"],wide:["január","február","marec","apríl","máj","jún","júl","august","september","október","november","december"]},formattingMonthValues$2={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","feb","mar","apr","máj","jún","júl","aug","sep","okt","nov","dec"],wide:["januára","februára","marca","apríla","mája","júna","júla","augusta","septembra","októbra","novembra","decembra"]},dayValues$7={narrow:["n","p","u","s","š","p","s"],short:["ne","po","ut","st","št","pi","so"],abbreviated:["ne","po","ut","st","št","pi","so"],wide:["nedeľa","pondelok","utorok","streda","štvrtok","piatok","sobota"]},dayPeriodValues$7={narrow:{am:"AM",pm:"PM",midnight:"poln.",noon:"pol.",morning:"ráno",afternoon:"pop.",evening:"več.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"poln.",noon:"pol.",morning:"ráno",afternoon:"popol.",evening:"večer",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"polnoc",noon:"poludnie",morning:"ráno",afternoon:"popoludnie",evening:"večer",night:"noc"}},formattingDayPeriodValues$7={narrow:{am:"AM",pm:"PM",midnight:"o poln.",noon:"nap.",morning:"ráno",afternoon:"pop.",evening:"več.",night:"v n."},abbreviated:{am:"AM",pm:"PM",midnight:"o poln.",noon:"napol.",morning:"ráno",afternoon:"popol.",evening:"večer",night:"v noci"},wide:{am:"AM",pm:"PM",midnight:"o polnoci",noon:"napoludnie",morning:"ráno",afternoon:"popoludní",evening:"večer",night:"v noci"}},ordinalNumber$7=(e,t)=>Number(e)+".",localize$7={ordinalNumber:ordinalNumber$7,era:buildLocalizeFn({values:eraValues$7,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$7,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$7,defaultWidth:"wide",formattingValues:formattingMonthValues$2,defaultFormattingWidth:"wide"}),day:buildLocalizeFn({values:dayValues$7,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$7,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$7,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$7=/^(\d+)\.?/i,parseOrdinalNumberPattern$7=/\d+/i,matchEraPatterns$7={narrow:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i},parseEraPatterns$7={any:[/^pr/i,/^(po|n)/i]},matchQuarterPatterns$7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\. [šs]tvr[ťt]rok/i},parseQuarterPatterns$7={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$7={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i,wide:/^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/i},parseMonthPatterns$7={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^m[áa]j/i,/^j[úu]n/i,/^j[úu]l/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$7={narrow:/^[npusšp]/i,short:/^(ne|po|ut|st|št|pi|so)/i,abbreviated:/^(ne|po|ut|st|št|pi|so)/i,wide:/^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i},parseDayPatterns$7={narrow:[/^n/i,/^p/i,/^u/i,/^s/i,/^š/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^u/i,/^st/i,/^(št|stv)/i,/^pi/i,/^so/i]},matchDayPeriodPatterns$7={narrow:/^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i,abbreviated:/^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i,any:/^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i},parseDayPeriodPatterns$7={any:{am:/^am/i,pm:/^pm/i,midnight:/poln/i,noon:/^(nap|(na)?pol(\.|u))/i,morning:/^r[áa]no/i,afternoon:/^pop/i,evening:/^ve[čc]/i,night:/^(noc|v n\.)/i}},match$7={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$7,parsePattern:parseOrdinalNumberPattern$7,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$7,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$7,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$7,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$7,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$7,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$7,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$7,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$7,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$7,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$7,defaultParseWidth:"any"})},sk={code:"sk",formatDistance:formatDistance$7,formatLong:formatLong$7,formatRelative:formatRelative$7,localize:localize$7,match:match$7,options:{weekStartsOn:1,firstWeekContainsDate:4}};function isPluralType(e){return e.one!==void 0}const formatDistanceLocale$6={lessThanXSeconds:{present:{one:"manj kot {{count}} sekunda",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"},past:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundama",few:"manj kot {{count}} sekundami",other:"manj kot {{count}} sekundami"},future:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"}},xSeconds:{present:{one:"{{count}} sekunda",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"},past:{one:"{{count}} sekundo",two:"{{count}} sekundama",few:"{{count}} sekundami",other:"{{count}} sekundami"},future:{one:"{{count}} sekundo",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"}},halfAMinute:"pol minute",lessThanXMinutes:{present:{one:"manj kot {{count}} minuta",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"},past:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minutama",few:"manj kot {{count}} minutami",other:"manj kot {{count}} minutami"},future:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"}},xMinutes:{present:{one:"{{count}} minuta",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"},past:{one:"{{count}} minuto",two:"{{count}} minutama",few:"{{count}} minutami",other:"{{count}} minutami"},future:{one:"{{count}} minuto",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"}},aboutXHours:{present:{one:"približno {{count}} ura",two:"približno {{count}} uri",few:"približno {{count}} ure",other:"približno {{count}} ur"},past:{one:"približno {{count}} uro",two:"približno {{count}} urama",few:"približno {{count}} urami",other:"približno {{count}} urami"},future:{one:"približno {{count}} uro",two:"približno {{count}} uri",few:"približno {{count}} ure",other:"približno {{count}} ur"}},xHours:{present:{one:"{{count}} ura",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"},past:{one:"{{count}} uro",two:"{{count}} urama",few:"{{count}} urami",other:"{{count}} urami"},future:{one:"{{count}} uro",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"}},xDays:{present:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"},past:{one:"{{count}} dnem",two:"{{count}} dnevoma",few:"{{count}} dnevi",other:"{{count}} dnevi"},future:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"}},aboutXWeeks:{one:"približno {{count}} teden",two:"približno {{count}} tedna",few:"približno {{count}} tedne",other:"približno {{count}} tednov"},xWeeks:{one:"{{count}} teden",two:"{{count}} tedna",few:"{{count}} tedne",other:"{{count}} tednov"},aboutXMonths:{present:{one:"približno {{count}} mesec",two:"približno {{count}} meseca",few:"približno {{count}} mesece",other:"približno {{count}} mesecev"},past:{one:"približno {{count}} mesecem",two:"približno {{count}} mesecema",few:"približno {{count}} meseci",other:"približno {{count}} meseci"},future:{one:"približno {{count}} mesec",two:"približno {{count}} meseca",few:"približno {{count}} mesece",other:"približno {{count}} mesecev"}},xMonths:{present:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} meseci",other:"{{count}} mesecev"},past:{one:"{{count}} mesecem",two:"{{count}} mesecema",few:"{{count}} meseci",other:"{{count}} meseci"},future:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} mesece",other:"{{count}} mesecev"}},aboutXYears:{present:{one:"približno {{count}} leto",two:"približno {{count}} leti",few:"približno {{count}} leta",other:"približno {{count}} let"},past:{one:"približno {{count}} letom",two:"približno {{count}} letoma",few:"približno {{count}} leti",other:"približno {{count}} leti"},future:{one:"približno {{count}} leto",two:"približno {{count}} leti",few:"približno {{count}} leta",other:"približno {{count}} let"}},xYears:{present:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"},past:{one:"{{count}} letom",two:"{{count}} letoma",few:"{{count}} leti",other:"{{count}} leti"},future:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"}},overXYears:{present:{one:"več kot {{count}} leto",two:"več kot {{count}} leti",few:"več kot {{count}} leta",other:"več kot {{count}} let"},past:{one:"več kot {{count}} letom",two:"več kot {{count}} letoma",few:"več kot {{count}} leti",other:"več kot {{count}} leti"},future:{one:"več kot {{count}} leto",two:"več kot {{count}} leti",few:"več kot {{count}} leta",other:"več kot {{count}} let"}},almostXYears:{present:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"},past:{one:"skoraj {{count}} letom",two:"skoraj {{count}} letoma",few:"skoraj {{count}} leti",other:"skoraj {{count}} leti"},future:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"}}};function getFormFromCount(e){switch(e%100){case 1:return"one";case 2:return"two";case 3:case 4:return"few";default:return"other"}}const formatDistance$6=(e,t,n)=>{let i="",r="present";n!=null&&n.addSuffix&&(n.comparison&&n.comparison>0?(r="future",i="čez "):(r="past",i="pred "));const a=formatDistanceLocale$6[e];if(typeof a=="string")i+=a;else{const o=getFormFromCount(t);isPluralType(a)?i+=a[o].replace("{{count}}",String(t)):i+=a[r][o].replace("{{count}}",String(t))}return i},dateFormats$6={full:"EEEE, dd. MMMM y",long:"dd. MMMM y",medium:"d. MMM y",short:"d. MM. yy"},timeFormats$6={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$6={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong$6={date:buildFormatLongFn({formats:dateFormats$6,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$6,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$6,defaultWidth:"full"})},formatRelativeLocale$6={lastWeek:e=>{switch(e.getDay()){case 0:return"'prejšnjo nedeljo ob' p";case 3:return"'prejšnjo sredo ob' p";case 6:return"'prejšnjo soboto ob' p";default:return"'prejšnji' EEEE 'ob' p"}},yesterday:"'včeraj ob' p",today:"'danes ob' p",tomorrow:"'jutri ob' p",nextWeek:e=>{switch(e.getDay()){case 0:return"'naslednjo nedeljo ob' p";case 3:return"'naslednjo sredo ob' p";case 6:return"'naslednjo soboto ob' p";default:return"'naslednji' EEEE 'ob' p"}},other:"P"},formatRelative$6=(e,t,n,i)=>{const r=formatRelativeLocale$6[e];return typeof r=="function"?r(t):r},eraValues$6={narrow:["pr. n. št.","po n. št."],abbreviated:["pr. n. št.","po n. št."],wide:["pred našim štetjem","po našem štetju"]},quarterValues$6={narrow:["1","2","3","4"],abbreviated:["1. čet.","2. čet.","3. čet.","4. čet."],wide:["1. četrtletje","2. četrtletje","3. četrtletje","4. četrtletje"]},monthValues$6={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","avg.","sep.","okt.","nov.","dec."],wide:["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december"]},dayValues$6={narrow:["n","p","t","s","č","p","s"],short:["ned.","pon.","tor.","sre.","čet.","pet.","sob."],abbreviated:["ned.","pon.","tor.","sre.","čet.","pet.","sob."],wide:["nedelja","ponedeljek","torek","sreda","četrtek","petek","sobota"]},dayPeriodValues$6={narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"j",afternoon:"p",evening:"v",night:"n"},abbreviated:{am:"dop.",pm:"pop.",midnight:"poln.",noon:"pold.",morning:"jut.",afternoon:"pop.",evening:"več.",night:"noč"},wide:{am:"dop.",pm:"pop.",midnight:"polnoč",noon:"poldne",morning:"jutro",afternoon:"popoldne",evening:"večer",night:"noč"}},formattingDayPeriodValues$6={narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"zj",afternoon:"p",evening:"zv",night:"po"},abbreviated:{am:"dop.",pm:"pop.",midnight:"opoln.",noon:"opold.",morning:"zjut.",afternoon:"pop.",evening:"zveč.",night:"ponoči"},wide:{am:"dop.",pm:"pop.",midnight:"opolnoči",noon:"opoldne",morning:"zjutraj",afternoon:"popoldan",evening:"zvečer",night:"ponoči"}},ordinalNumber$6=(e,t)=>Number(e)+".",localize$6={ordinalNumber:ordinalNumber$6,era:buildLocalizeFn({values:eraValues$6,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$6,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$6,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$6,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$6,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$6,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$6=/^(\d+)\./i,parseOrdinalNumberPattern$6=/\d+/i,matchEraPatterns$6={abbreviated:/^(pr\. n\. št\.|po n\. št\.)/i,wide:/^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i},parseEraPatterns$6={any:[/^pr/i,/^(po|na[sš]em)/i]},matchQuarterPatterns$6={narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?[čc]et\.?/i,wide:/^[1234]\. [čc]etrtletje/i},parseQuarterPatterns$6={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$6={narrow:/^[jfmasond]/i,abbreviated:/^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,wide:/^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i},parseMonthPatterns$6={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],abbreviated:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i],wide:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$6={narrow:/^[nptsčc]/i,short:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,abbreviated:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,wide:/^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i},parseDayPatterns$6={narrow:[/^n/i,/^p/i,/^t/i,/^s/i,/^[cč]/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^t/i,/^sr/i,/^[cč]/i,/^pe/i,/^so/i]},matchDayPeriodPatterns$6={narrow:/^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,any:/^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i},parseDayPeriodPatterns$6={narrow:{am:/^d/i,pm:/^p/i,midnight:/^24/i,noon:/^12/i,morning:/^(z?j)/i,afternoon:/^p/i,evening:/^(z?v)/i,night:/^(n|po)/i},any:{am:/^dop\./i,pm:/^pop\./i,midnight:/^o?poln/i,noon:/^o?pold/i,morning:/j/i,afternoon:/^pop\./i,evening:/^z?ve/i,night:/(po)?no/i}},match$6={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$6,parsePattern:parseOrdinalNumberPattern$6,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$6,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$6,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$6,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$6,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$6,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$6,defaultParseWidth:"wide"}),day:buildMatchFn({matchPatterns:matchDayPatterns$6,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$6,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$6,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$6,defaultParseWidth:"any"})},sl={code:"sl",formatDistance:formatDistance$6,formatLong:formatLong$6,formatRelative:formatRelative$6,localize:localize$6,match:match$6,options:{weekStartsOn:1,firstWeekContainsDate:1}},formatDistanceLocale$5={lessThanXSeconds:{one:"mindre än en sekund",other:"mindre än {{count}} sekunder"},xSeconds:{one:"en sekund",other:"{{count}} sekunder"},halfAMinute:"en halv minut",lessThanXMinutes:{one:"mindre än en minut",other:"mindre än {{count}} minuter"},xMinutes:{one:"en minut",other:"{{count}} minuter"},aboutXHours:{one:"ungefär en timme",other:"ungefär {{count}} timmar"},xHours:{one:"en timme",other:"{{count}} timmar"},xDays:{one:"en dag",other:"{{count}} dagar"},aboutXWeeks:{one:"ungefär en vecka",other:"ungefär {{count}} vecka"},xWeeks:{one:"en vecka",other:"{{count}} vecka"},aboutXMonths:{one:"ungefär en månad",other:"ungefär {{count}} månader"},xMonths:{one:"en månad",other:"{{count}} månader"},aboutXYears:{one:"ungefär ett år",other:"ungefär {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"över ett år",other:"över {{count}} år"},almostXYears:{one:"nästan ett år",other:"nästan {{count}} år"}},wordMapping=["noll","en","två","tre","fyra","fem","sex","sju","åtta","nio","tio","elva","tolv"],formatDistance$5=(e,t,n)=>{let i;const r=formatDistanceLocale$5[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",t<13?wordMapping[t]:String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"om "+i:i+" sedan":i},dateFormats$5={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"y-MM-dd"},timeFormats$5={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$5={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong$5={date:buildFormatLongFn({formats:dateFormats$5,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$5,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$5,defaultWidth:"full"})},formatRelativeLocale$5={lastWeek:"'i' EEEE's kl.' p",yesterday:"'igår kl.' p",today:"'idag kl.' p",tomorrow:"'imorgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},formatRelative$5=(e,t,n,i)=>formatRelativeLocale$5[e],eraValues$5={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["före Kristus","efter Kristus"]},quarterValues$5={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1:a kvartalet","2:a kvartalet","3:e kvartalet","4:e kvartalet"]},monthValues$5={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","maj","juni","juli","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},dayValues$5={narrow:["S","M","T","O","T","F","L"],short:["sö","må","ti","on","to","fr","lö"],abbreviated:["sön","mån","tis","ons","tors","fre","lör"],wide:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"]},dayPeriodValues$5={narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"morg.",afternoon:"efterm.",evening:"kväll",night:"natt"},abbreviated:{am:"f.m.",pm:"e.m.",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"efterm.",evening:"kväll",night:"natt"},wide:{am:"förmiddag",pm:"eftermiddag",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"eftermiddag",evening:"kväll",night:"natt"}},formattingDayPeriodValues$5={narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},abbreviated:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},wide:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morgonen",afternoon:"på eftermiddagen",evening:"på kvällen",night:"på natten"}},ordinalNumber$5=(e,t)=>{const n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:case 2:return n+":a"}return n+":e"},localize$5={ordinalNumber:ordinalNumber$5,era:buildLocalizeFn({values:eraValues$5,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$5,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$5,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$5,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$5,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$5,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$5=/^(\d+)(:a|:e)?/i,parseOrdinalNumberPattern$5=/\d+/i,matchEraPatterns$5={narrow:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,abbreviated:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,wide:/^(före Kristus|före vår tid|efter Kristus|vår tid)/i},parseEraPatterns$5={any:[/^f/i,/^[ev]/i]},matchQuarterPatterns$5={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](:a|:e)? kvartalet/i},parseQuarterPatterns$5={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$5={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i,wide:/^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i},parseMonthPatterns$5={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$5={narrow:/^[smtofl]/i,short:/^(sö|må|ti|on|to|fr|lö)/i,abbreviated:/^(sön|mån|tis|ons|tors|fre|lör)/i,wide:/^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i},parseDayPatterns$5={any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},matchDayPeriodPatterns$5={any:/^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i},parseDayPeriodPatterns$5={any:{am:/^f/i,pm:/^e/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/eftermiddag/i,evening:/kväll/i,night:/natt/i}},match$5={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$5,parsePattern:parseOrdinalNumberPattern$5,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$5,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$5,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$5,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$5,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$5,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$5,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$5,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$5,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$5,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$5,defaultParseWidth:"any"})},sv={code:"sv",formatDistance:formatDistance$5,formatLong:formatLong$5,formatRelative:formatRelative$5,localize:localize$5,match:match$5,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale$4={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yarım dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yaklaşık 1 saat",other:"yaklaşık {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 gün",other:"{{count}} gün"},aboutXWeeks:{one:"yaklaşık 1 hafta",other:"yaklaşık {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"yaklaşık 1 ay",other:"yaklaşık {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yaklaşık 1 yıl",other:"yaklaşık {{count}} yıl"},xYears:{one:"1 yıl",other:"{{count}} yıl"},overXYears:{one:"1 yıldan fazla",other:"{{count}} yıldan fazla"},almostXYears:{one:"neredeyse 1 yıl",other:"neredeyse {{count}} yıl"}},formatDistance$4=(e,t,n)=>{let i;const r=formatDistanceLocale$4[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?i+" sonra":i+" önce":i},dateFormats$4={full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},timeFormats$4={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$4={full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$4={date:buildFormatLongFn({formats:dateFormats$4,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$4,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$4,defaultWidth:"full"})},formatRelativeLocale$4={lastWeek:"'geçen hafta' eeee 'saat' p",yesterday:"'dün saat' p",today:"'bugün saat' p",tomorrow:"'yarın saat' p",nextWeek:"eeee 'saat' p",other:"P"},formatRelative$4=(e,t,n,i)=>formatRelativeLocale$4[e],eraValues$4={narrow:["MÖ","MS"],abbreviated:["MÖ","MS"],wide:["Milattan Önce","Milattan Sonra"]},quarterValues$4={narrow:["1","2","3","4"],abbreviated:["1Ç","2Ç","3Ç","4Ç"],wide:["İlk çeyrek","İkinci Çeyrek","Üçüncü çeyrek","Son çeyrek"]},monthValues$4={narrow:["O","Ş","M","N","M","H","T","A","E","E","K","A"],abbreviated:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],wide:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]},dayValues$4={narrow:["P","P","S","Ç","P","C","C"],short:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],abbreviated:["Paz","Pzt","Sal","Çar","Per","Cum","Cts"],wide:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},dayPeriodValues$4={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"},wide:{am:"Ö.Ö.",pm:"Ö.S.",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"}},formattingDayPeriodValues$4={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"},wide:{am:"ö.ö.",pm:"ö.s.",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"}},ordinalNumber$4=(e,t)=>Number(e)+".",localize$4={ordinalNumber:ordinalNumber$4,era:buildLocalizeFn({values:eraValues$4,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$4,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:buildLocalizeFn({values:monthValues$4,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$4,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$4,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$4,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$4=/^(\d+)(\.)?/i,parseOrdinalNumberPattern$4=/\d+/i,matchEraPatterns$4={narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},parseEraPatterns$4={any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},matchQuarterPatterns$4={narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},parseQuarterPatterns$4={any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1ç/i,/2ç/i,/3ç/i,/4ç/i],wide:[/^(i|İ)lk çeyrek/i,/(i|İ)kinci çeyrek/i,/üçüncü çeyrek/i,/son çeyrek/i]},matchMonthPatterns$4={narrow:/^[oşmnhtaek]/i,abbreviated:/^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,wide:/^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i},parseMonthPatterns$4={narrow:[/^o/i,/^ş/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^ş/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^ağ/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},matchDayPatterns$4={narrow:/^[psçc]/i,short:/^(pz|pt|sa|ça|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|çar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i},parseDayPatterns$4={narrow:[/^p/i,/^p/i,/^s/i,/^ç/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^ça/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^salı/i,/^çarşamba/i,/^perşembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},matchDayPeriodPatterns$4={narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},parseDayPeriodPatterns$4={any:{am:/^ö\.?ö\.?/i,pm:/^ö\.?s\.?/i,midnight:/^(gy|gece yarısı)/i,noon:/^öğ/i,morning:/^sa/i,afternoon:/^öğleden sonra/i,evening:/^ak/i,night:/^ge/i}},match$4={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$4,parsePattern:parseOrdinalNumberPattern$4,valueCallback:function(e){return parseInt(e,10)}}),era:buildMatchFn({matchPatterns:matchEraPatterns$4,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$4,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$4,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$4,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$4,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$4,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$4,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$4,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$4,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$4,defaultParseWidth:"any"})},tr={code:"tr",formatDistance:formatDistance$4,formatLong:formatLong$4,formatRelative:formatRelative$4,localize:localize$4,match:match$4,options:{weekStartsOn:1,firstWeekContainsDate:1}};function declension(e,t){if(e.one!==void 0&&t===1)return e.one;const n=t%10,i=t%100;return n===1&&i!==11?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(i<10||i>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function buildLocalizeTokenFn(e){return(t,n)=>n&&n.addSuffix?n.comparison&&n.comparison>0?e.future?declension(e.future,t):"за "+declension(e.regular,t):e.past?declension(e.past,t):declension(e.regular,t)+" тому":declension(e.regular,t)}const halfAtMinute=(e,t)=>t&&t.addSuffix?t.comparison&&t.comparison>0?"за півхвилини":"півхвилини тому":"півхвилини",formatDistanceLocale$3={lessThanXSeconds:buildLocalizeTokenFn({regular:{one:"менше секунди",singularNominative:"менше {{count}} секунди",singularGenitive:"менше {{count}} секунд",pluralGenitive:"менше {{count}} секунд"},future:{one:"менше, ніж за секунду",singularNominative:"менше, ніж за {{count}} секунду",singularGenitive:"менше, ніж за {{count}} секунди",pluralGenitive:"менше, ніж за {{count}} секунд"}}),xSeconds:buildLocalizeTokenFn({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунди",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду тому",singularGenitive:"{{count}} секунди тому",pluralGenitive:"{{count}} секунд тому"},future:{singularNominative:"за {{count}} секунду",singularGenitive:"за {{count}} секунди",pluralGenitive:"за {{count}} секунд"}}),halfAMinute:halfAtMinute,lessThanXMinutes:buildLocalizeTokenFn({regular:{one:"менше хвилини",singularNominative:"менше {{count}} хвилини",singularGenitive:"менше {{count}} хвилин",pluralGenitive:"менше {{count}} хвилин"},future:{one:"менше, ніж за хвилину",singularNominative:"менше, ніж за {{count}} хвилину",singularGenitive:"менше, ніж за {{count}} хвилини",pluralGenitive:"менше, ніж за {{count}} хвилин"}}),xMinutes:buildLocalizeTokenFn({regular:{singularNominative:"{{count}} хвилина",singularGenitive:"{{count}} хвилини",pluralGenitive:"{{count}} хвилин"},past:{singularNominative:"{{count}} хвилину тому",singularGenitive:"{{count}} хвилини тому",pluralGenitive:"{{count}} хвилин тому"},future:{singularNominative:"за {{count}} хвилину",singularGenitive:"за {{count}} хвилини",pluralGenitive:"за {{count}} хвилин"}}),aboutXHours:buildLocalizeTokenFn({regular:{singularNominative:"близько {{count}} години",singularGenitive:"близько {{count}} годин",pluralGenitive:"близько {{count}} годин"},future:{singularNominative:"приблизно за {{count}} годину",singularGenitive:"приблизно за {{count}} години",pluralGenitive:"приблизно за {{count}} годин"}}),xHours:buildLocalizeTokenFn({regular:{singularNominative:"{{count}} годину",singularGenitive:"{{count}} години",pluralGenitive:"{{count}} годин"}}),xDays:buildLocalizeTokenFn({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} днi",pluralGenitive:"{{count}} днів"}}),aboutXWeeks:buildLocalizeTokenFn({regular:{singularNominative:"близько {{count}} тижня",singularGenitive:"близько {{count}} тижнів",pluralGenitive:"близько {{count}} тижнів"},future:{singularNominative:"приблизно за {{count}} тиждень",singularGenitive:"приблизно за {{count}} тижні",pluralGenitive:"приблизно за {{count}} тижнів"}}),xWeeks:buildLocalizeTokenFn({regular:{singularNominative:"{{count}} тиждень",singularGenitive:"{{count}} тижні",pluralGenitive:"{{count}} тижнів"}}),aboutXMonths:buildLocalizeTokenFn({regular:{singularNominative:"близько {{count}} місяця",singularGenitive:"близько {{count}} місяців",pluralGenitive:"близько {{count}} місяців"},future:{singularNominative:"приблизно за {{count}} місяць",singularGenitive:"приблизно за {{count}} місяці",pluralGenitive:"приблизно за {{count}} місяців"}}),xMonths:buildLocalizeTokenFn({regular:{singularNominative:"{{count}} місяць",singularGenitive:"{{count}} місяці",pluralGenitive:"{{count}} місяців"}}),aboutXYears:buildLocalizeTokenFn({regular:{singularNominative:"близько {{count}} року",singularGenitive:"близько {{count}} років",pluralGenitive:"близько {{count}} років"},future:{singularNominative:"приблизно за {{count}} рік",singularGenitive:"приблизно за {{count}} роки",pluralGenitive:"приблизно за {{count}} років"}}),xYears:buildLocalizeTokenFn({regular:{singularNominative:"{{count}} рік",singularGenitive:"{{count}} роки",pluralGenitive:"{{count}} років"}}),overXYears:buildLocalizeTokenFn({regular:{singularNominative:"більше {{count}} року",singularGenitive:"більше {{count}} років",pluralGenitive:"більше {{count}} років"},future:{singularNominative:"більше, ніж за {{count}} рік",singularGenitive:"більше, ніж за {{count}} роки",pluralGenitive:"більше, ніж за {{count}} років"}}),almostXYears:buildLocalizeTokenFn({regular:{singularNominative:"майже {{count}} рік",singularGenitive:"майже {{count}} роки",pluralGenitive:"майже {{count}} років"},future:{singularNominative:"майже за {{count}} рік",singularGenitive:"майже за {{count}} роки",pluralGenitive:"майже за {{count}} років"}})},formatDistance$3=(e,t,n)=>(n=n||{},formatDistanceLocale$3[e](t,n)),dateFormats$3={full:"EEEE, do MMMM y 'р.'",long:"do MMMM y 'р.'",medium:"d MMM y 'р.'",short:"dd.MM.y"},timeFormats$3={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},dateTimeFormats$3={full:"{{date}} 'о' {{time}}",long:"{{date}} 'о' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$3={date:buildFormatLongFn({formats:dateFormats$3,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$3,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$3,defaultWidth:"full"})},accusativeWeekdays=["неділю","понеділок","вівторок","середу","четвер","п’ятницю","суботу"];function lastWeek(e){const t=accusativeWeekdays[e];switch(e){case 0:case 3:case 5:case 6:return"'у минулу "+t+" о' p";case 1:case 2:case 4:return"'у минулий "+t+" о' p"}}function thisWeek(e){return"'у "+accusativeWeekdays[e]+" о' p"}function nextWeek(e){const t=accusativeWeekdays[e];switch(e){case 0:case 3:case 5:case 6:return"'у наступну "+t+" о' p";case 1:case 2:case 4:return"'у наступний "+t+" о' p"}}const lastWeekFormat=(e,t,n)=>{const i=toDate(e),r=i.getDay();return isSameWeek(i,t,n)?thisWeek(r):lastWeek(r)},nextWeekFormat=(e,t,n)=>{const i=toDate(e),r=i.getDay();return isSameWeek(i,t,n)?thisWeek(r):nextWeek(r)},formatRelativeLocale$3={lastWeek:lastWeekFormat,yesterday:"'вчора о' p",today:"'сьогодні о' p",tomorrow:"'завтра о' p",nextWeek:nextWeekFormat,other:"P"},formatRelative$3=(e,t,n,i)=>{const r=formatRelativeLocale$3[e];return typeof r=="function"?r(t,n,i):r},eraValues$3={narrow:["до н.е.","н.е."],abbreviated:["до н. е.","н. е."],wide:["до нашої ери","нашої ери"]},quarterValues$3={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},monthValues$3={narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},formattingMonthValues$1={narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січня","лютого","березня","квітня","травня","червня","липня","серпня","вересня","жовтня","листопада","грудня"]},dayValues$3={narrow:["Н","П","В","С","Ч","П","С"],short:["нд","пн","вт","ср","чт","пт","сб"],abbreviated:["нед","пон","вів","сер","чтв","птн","суб"],wide:["неділя","понеділок","вівторок","середа","четвер","п’ятниця","субота"]},dayPeriodValues$3={narrow:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранок",afternoon:"день",evening:"веч.",night:"ніч"},abbreviated:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранок",afternoon:"день",evening:"веч.",night:"ніч"},wide:{am:"ДП",pm:"ПП",midnight:"північ",noon:"полудень",morning:"ранок",afternoon:"день",evening:"вечір",night:"ніч"}},formattingDayPeriodValues$3={narrow:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"},abbreviated:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"},wide:{am:"ДП",pm:"ПП",midnight:"північ",noon:"полудень",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"}},ordinalNumber$3=(e,t)=>{const n=String(t==null?void 0:t.unit),i=Number(e);let r;return n==="date"?i===3||i===23?r="-є":r="-е":n==="minute"||n==="second"||n==="hour"?r="-а":r="-й",i+r},localize$3={ordinalNumber:ordinalNumber$3,era:buildLocalizeFn({values:eraValues$3,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$3,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$3,defaultWidth:"wide",formattingValues:formattingMonthValues$1,defaultFormattingWidth:"wide"}),day:buildLocalizeFn({values:dayValues$3,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$3,defaultWidth:"any",formattingValues:formattingDayPeriodValues$3,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$3=/^(\d+)(-?(е|й|є|а|я))?/i,parseOrdinalNumberPattern$3=/\d+/i,matchEraPatterns$3={narrow:/^((до )?н\.?\s?е\.?)/i,abbreviated:/^((до )?н\.?\s?е\.?)/i,wide:/^(до нашої ери|нашої ери|наша ера)/i},parseEraPatterns$3={any:[/^д/i,/^н/i]},matchQuarterPatterns$3={narrow:/^[1234]/i,abbreviated:/^[1234](-?[иі]?й?)? кв.?/i,wide:/^[1234](-?[иі]?й?)? квартал/i},parseQuarterPatterns$3={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$3={narrow:/^[слбктчвжг]/i,abbreviated:/^(січ|лют|бер(ез)?|квіт|трав|черв|лип|серп|вер(ес)?|жовт|лис(топ)?|груд)\.?/i,wide:/^(січень|січня|лютий|лютого|березень|березня|квітень|квітня|травень|травня|червня|червень|липень|липня|серпень|серпня|вересень|вересня|жовтень|жовтня|листопад[а]?|грудень|грудня)/i},parseMonthPatterns$3={narrow:[/^с/i,/^л/i,/^б/i,/^к/i,/^т/i,/^ч/i,/^л/i,/^с/i,/^в/i,/^ж/i,/^л/i,/^г/i],any:[/^сі/i,/^лю/i,/^б/i,/^к/i,/^т/i,/^ч/i,/^лип/i,/^се/i,/^в/i,/^ж/i,/^лис/i,/^г/i]},matchDayPatterns$3={narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)\.?/i,abbreviated:/^(нед|пон|вів|сер|че?тв|птн?|суб)\.?/i,wide:/^(неділ[яі]|понеділ[ок][ка]|вівтор[ок][ка]|серед[аи]|четвер(га)?|п\W*?ятниц[яі]|субот[аи])/i},parseDayPatterns$3={narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[он]/i,/^в/i,/^с[ер]/i,/^ч/i,/^п\W*?[ят]/i,/^с[уб]/i]},matchDayPeriodPatterns$3={narrow:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,abbreviated:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,wide:/^([дп]п|північ|полудень|ранок|ранку|день|дня|вечір|вечора|ніч|ночі)/i},parseDayPeriodPatterns$3={any:{am:/^дп/i,pm:/^пп/i,midnight:/^півн/i,noon:/^пол/i,morning:/^р/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},match$3={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$3,parsePattern:parseOrdinalNumberPattern$3,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$3,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$3,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$3,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$3,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$3,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$3,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$3,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$3,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$3,defaultMatchWidth:"wide",parsePatterns:parseDayPeriodPatterns$3,defaultParseWidth:"any"})},uk={code:"uk",formatDistance:formatDistance$3,formatLong:formatLong$3,formatRelative:formatRelative$3,localize:localize$3,match:match$3,options:{weekStartsOn:1,firstWeekContainsDate:1}},formatDistanceLocale$2={lessThanXSeconds:{one:"dưới 1 giây",other:"dưới {{count}} giây"},xSeconds:{one:"1 giây",other:"{{count}} giây"},halfAMinute:"nửa phút",lessThanXMinutes:{one:"dưới 1 phút",other:"dưới {{count}} phút"},xMinutes:{one:"1 phút",other:"{{count}} phút"},aboutXHours:{one:"khoảng 1 giờ",other:"khoảng {{count}} giờ"},xHours:{one:"1 giờ",other:"{{count}} giờ"},xDays:{one:"1 ngày",other:"{{count}} ngày"},aboutXWeeks:{one:"khoảng 1 tuần",other:"khoảng {{count}} tuần"},xWeeks:{one:"1 tuần",other:"{{count}} tuần"},aboutXMonths:{one:"khoảng 1 tháng",other:"khoảng {{count}} tháng"},xMonths:{one:"1 tháng",other:"{{count}} tháng"},aboutXYears:{one:"khoảng 1 năm",other:"khoảng {{count}} năm"},xYears:{one:"1 năm",other:"{{count}} năm"},overXYears:{one:"hơn 1 năm",other:"hơn {{count}} năm"},almostXYears:{one:"gần 1 năm",other:"gần {{count}} năm"}},formatDistance$2=(e,t,n)=>{let i;const r=formatDistanceLocale$2[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?i+" nữa":i+" trước":i},dateFormats$2={full:"EEEE, 'ngày' d MMMM 'năm' y",long:"'ngày' d MMMM 'năm' y",medium:"d MMM 'năm' y",short:"dd/MM/y"},timeFormats$2={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$2={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong$2={date:buildFormatLongFn({formats:dateFormats$2,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$2,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$2,defaultWidth:"full"})},formatRelativeLocale$2={lastWeek:"eeee 'tuần trước vào lúc' p",yesterday:"'hôm qua vào lúc' p",today:"'hôm nay vào lúc' p",tomorrow:"'ngày mai vào lúc' p",nextWeek:"eeee 'tới vào lúc' p",other:"P"},formatRelative$2=(e,t,n,i)=>formatRelativeLocale$2[e],eraValues$2={narrow:["TCN","SCN"],abbreviated:["trước CN","sau CN"],wide:["trước Công Nguyên","sau Công Nguyên"]},quarterValues$2={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["Quý 1","Quý 2","Quý 3","Quý 4"]},formattingQuarterValues={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["quý I","quý II","quý III","quý IV"]},monthValues$2={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["Thg 1","Thg 2","Thg 3","Thg 4","Thg 5","Thg 6","Thg 7","Thg 8","Thg 9","Thg 10","Thg 11","Thg 12"],wide:["Tháng Một","Tháng Hai","Tháng Ba","Tháng Tư","Tháng Năm","Tháng Sáu","Tháng Bảy","Tháng Tám","Tháng Chín","Tháng Mười","Tháng Mười Một","Tháng Mười Hai"]},formattingMonthValues={narrow:["01","02","03","04","05","06","07","08","09","10","11","12"],abbreviated:["thg 1","thg 2","thg 3","thg 4","thg 5","thg 6","thg 7","thg 8","thg 9","thg 10","thg 11","thg 12"],wide:["tháng 01","tháng 02","tháng 03","tháng 04","tháng 05","tháng 06","tháng 07","tháng 08","tháng 09","tháng 10","tháng 11","tháng 12"]},dayValues$2={narrow:["CN","T2","T3","T4","T5","T6","T7"],short:["CN","Th 2","Th 3","Th 4","Th 5","Th 6","Th 7"],abbreviated:["CN","Thứ 2","Thứ 3","Thứ 4","Thứ 5","Thứ 6","Thứ 7"],wide:["Chủ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy"]},dayPeriodValues$2={narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"}},formattingDayPeriodValues$2={narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"giữa trưa",morning:"vào buổi sáng",afternoon:"vào buổi chiều",evening:"vào buổi tối",night:"vào ban đêm"}},ordinalNumber$2=(e,t)=>{const n=Number(e),i=t==null?void 0:t.unit;if(i==="quarter")switch(n){case 1:return"I";case 2:return"II";case 3:return"III";case 4:return"IV"}else if(i==="day")switch(n){case 1:return"thứ 2";case 2:return"thứ 3";case 3:return"thứ 4";case 4:return"thứ 5";case 5:return"thứ 6";case 6:return"thứ 7";case 7:return"chủ nhật"}else{if(i==="week")return n===1?"thứ nhất":"thứ "+n;if(i==="dayOfYear")return n===1?"đầu tiên":"thứ "+n}return String(n)},localize$2={ordinalNumber:ordinalNumber$2,era:buildLocalizeFn({values:eraValues$2,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$2,defaultWidth:"wide",formattingValues:formattingQuarterValues,defaultFormattingWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$2,defaultWidth:"wide",formattingValues:formattingMonthValues,defaultFormattingWidth:"wide"}),day:buildLocalizeFn({values:dayValues$2,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$2,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$2,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$2=/^(\d+)/i,parseOrdinalNumberPattern$2=/\d+/i,matchEraPatterns$2={narrow:/^(tcn|scn)/i,abbreviated:/^(trước CN|sau CN)/i,wide:/^(trước Công Nguyên|sau Công Nguyên)/i},parseEraPatterns$2={any:[/^t/i,/^s/i]},matchQuarterPatterns$2={narrow:/^([1234]|i{1,3}v?)/i,abbreviated:/^q([1234]|i{1,3}v?)/i,wide:/^quý ([1234]|i{1,3}v?)/i},parseQuarterPatterns$2={any:[/(1|i)$/i,/(2|ii)$/i,/(3|iii)$/i,/(4|iv)$/i]},matchMonthPatterns$2={narrow:/^(0?[2-9]|10|11|12|0?1)/i,abbreviated:/^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i,wide:/^tháng ?(Một|Hai|Ba|Tư|Năm|Sáu|Bảy|Tám|Chín|Mười|Mười ?Một|Mười ?Hai|0?[1-9](?!\d)|10|11|12)/i},parseMonthPatterns$2={narrow:[/0?1$/i,/0?2/i,/3/,/4/,/5/,/6/,/7/,/8/,/9/,/10/,/11/,/12/],abbreviated:[/^thg[ _]?0?1(?!\d)/i,/^thg[ _]?0?2/i,/^thg[ _]?0?3/i,/^thg[ _]?0?4/i,/^thg[ _]?0?5/i,/^thg[ _]?0?6/i,/^thg[ _]?0?7/i,/^thg[ _]?0?8/i,/^thg[ _]?0?9/i,/^thg[ _]?10/i,/^thg[ _]?11/i,/^thg[ _]?12/i],wide:[/^tháng ?(Một|0?1(?!\d))/i,/^tháng ?(Hai|0?2)/i,/^tháng ?(Ba|0?3)/i,/^tháng ?(Tư|0?4)/i,/^tháng ?(Năm|0?5)/i,/^tháng ?(Sáu|0?6)/i,/^tháng ?(Bảy|0?7)/i,/^tháng ?(Tám|0?8)/i,/^tháng ?(Chín|0?9)/i,/^tháng ?(Mười|10)/i,/^tháng ?(Mười ?Một|11)/i,/^tháng ?(Mười ?Hai|12)/i]},matchDayPatterns$2={narrow:/^(CN|T2|T3|T4|T5|T6|T7)/i,short:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,abbreviated:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,wide:/^(Chủ ?Nhật|Chúa ?Nhật|thứ ?Hai|thứ ?Ba|thứ ?Tư|thứ ?Năm|thứ ?Sáu|thứ ?Bảy)/i},parseDayPatterns$2={narrow:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],short:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],abbreviated:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],wide:[/(Chủ|Chúa) ?Nhật/i,/Hai/i,/Ba/i,/Tư/i,/Năm/i,/Sáu/i,/Bảy/i]},matchDayPeriodPatterns$2={narrow:/^(a|p|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,abbreviated:/^(am|pm|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,wide:/^(ch[^i]*|sa|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i},parseDayPeriodPatterns$2={any:{am:/^(a|sa)/i,pm:/^(p|ch[^i]*)/i,midnight:/nửa đêm/i,noon:/trưa/i,morning:/sáng/i,afternoon:/chiều/i,evening:/tối/i,night:/^đêm/i}},match$2={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$2,parsePattern:parseOrdinalNumberPattern$2,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$2,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$2,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$2,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$2,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$2,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$2,defaultParseWidth:"wide"}),day:buildMatchFn({matchPatterns:matchDayPatterns$2,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$2,defaultParseWidth:"wide"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$2,defaultMatchWidth:"wide",parsePatterns:parseDayPeriodPatterns$2,defaultParseWidth:"any"})},vi={code:"vi",formatDistance:formatDistance$2,formatLong:formatLong$2,formatRelative:formatRelative$2,localize:localize$2,match:match$2,options:{weekStartsOn:1,firstWeekContainsDate:1}},formatDistanceLocale$1={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},formatDistance$1=(e,t,n)=>{let i;const r=formatDistanceLocale$1[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?i+"内":i+"前":i},dateFormats$1={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},timeFormats$1={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},dateTimeFormats$1={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong$1={date:buildFormatLongFn({formats:dateFormats$1,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$1,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$1,defaultWidth:"full"})};function checkWeek(e,t,n){const i="eeee p";return isSameWeek(e,t,n)?i:e.getTime()>t.getTime()?"'下个'"+i:"'上个'"+i}const formatRelativeLocale$1={lastWeek:checkWeek,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:checkWeek,other:"PP p"},formatRelative$1=(e,t,n,i)=>{const r=formatRelativeLocale$1[e];return typeof r=="function"?r(t,n,i):r},eraValues$1={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},quarterValues$1={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},monthValues$1={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},dayValues$1={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},dayPeriodValues$1={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},formattingDayPeriodValues$1={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},ordinalNumber$1=(e,t)=>{const n=Number(e);switch(t==null?void 0:t.unit){case"date":return n.toString()+"日";case"hour":return n.toString()+"时";case"minute":return n.toString()+"分";case"second":return n.toString()+"秒";default:return"第 "+n.toString()}},localize$1={ordinalNumber:ordinalNumber$1,era:buildLocalizeFn({values:eraValues$1,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$1,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues$1,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$1,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$1,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$1,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern$1=/^(第\s*)?\d+(日|时|分|秒)?/i,parseOrdinalNumberPattern$1=/\d+/i,matchEraPatterns$1={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},parseEraPatterns$1={any:[/^(前)/i,/^(公元)/i]},matchQuarterPatterns$1={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},parseQuarterPatterns$1={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},matchMonthPatterns$1={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},parseMonthPatterns$1={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},matchDayPatterns$1={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},parseDayPatterns$1={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},matchDayPeriodPatterns$1={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},parseDayPeriodPatterns$1={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},match$1={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$1,parsePattern:parseOrdinalNumberPattern$1,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$1,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$1,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$1,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$1,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$1,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$1,defaultParseWidth:"any"})},zhCN={code:"zh-CN",formatDistance:formatDistance$1,formatLong:formatLong$1,formatRelative:formatRelative$1,localize:localize$1,match:match$1,options:{weekStartsOn:1,firstWeekContainsDate:4}},formatDistanceLocale={lessThanXSeconds:{one:"少於 1 秒",other:"少於 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分鐘",lessThanXMinutes:{one:"少於 1 分鐘",other:"少於 {{count}} 分鐘"},xMinutes:{one:"1 分鐘",other:"{{count}} 分鐘"},xHours:{one:"1 小時",other:"{{count}} 小時"},aboutXHours:{one:"大約 1 小時",other:"大約 {{count}} 小時"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大約 1 個星期",other:"大約 {{count}} 個星期"},xWeeks:{one:"1 個星期",other:"{{count}} 個星期"},aboutXMonths:{one:"大約 1 個月",other:"大約 {{count}} 個月"},xMonths:{one:"1 個月",other:"{{count}} 個月"},aboutXYears:{one:"大約 1 年",other:"大約 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超過 1 年",other:"超過 {{count}} 年"},almostXYears:{one:"將近 1 年",other:"將近 {{count}} 年"}},formatDistance=(e,t,n)=>{let i;const r=formatDistanceLocale[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?i+"內":i+"前":i},dateFormats={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},timeFormats={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},dateTimeFormats={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong={date:buildFormatLongFn({formats:dateFormats,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats,defaultWidth:"full"})},formatRelativeLocale={lastWeek:"'上個'eeee p",yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:"'下個'eeee p",other:"P"},formatRelative=(e,t,n,i)=>formatRelativeLocale[e],eraValues={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},quarterValues={narrow:["1","2","3","4"],abbreviated:["第一刻","第二刻","第三刻","第四刻"],wide:["第一刻鐘","第二刻鐘","第三刻鐘","第四刻鐘"]},monthValues={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},dayValues={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["週日","週一","週二","週三","週四","週五","週六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},dayPeriodValues={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},formattingDayPeriodValues={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},ordinalNumber=(e,t)=>{const n=Number(e);switch(t==null?void 0:t.unit){case"date":return n+"日";case"hour":return n+"時";case"minute":return n+"分";case"second":return n+"秒";default:return"第 "+n}},localize={ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues,defaultWidth:"wide",formattingValues:formattingDayPeriodValues,defaultFormattingWidth:"wide"})},matchOrdinalNumberPattern=/^(第\s*)?\d+(日|時|分|秒)?/i,parseOrdinalNumberPattern=/\d+/i,matchEraPatterns={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},parseEraPatterns={any:[/^(前)/i,/^(公元)/i]},matchQuarterPatterns={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},parseQuarterPatterns={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},matchMonthPatterns={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},parseMonthPatterns={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},matchDayPatterns={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},parseDayPatterns={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},matchDayPeriodPatterns={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},parseDayPeriodPatterns={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},match={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns,defaultParseWidth:"any"})},zhTW={code:"zh-TW",formatDistance,formatLong,formatRelative,localize,match,options:{weekStartsOn:1,firstWeekContainsDate:4}};/*!
* @kurkle/color v0.3.2
* https://github.com/kurkle/color#readme
* (c) 2023 Jukka Kurkela
* Released under the MIT License
- */function round(e){return e+.5|0}const lim=(e,t,n)=>Math.max(Math.min(e,n),t);function p2b(e){return lim(round(e*2.55),0,255)}function n2b(e){return lim(round(e*255),0,255)}function b2n(e){return lim(round(e/2.55)/100,0,1)}function n2p(e){return lim(round(e*100),0,100)}const map$1={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},hex=[..."0123456789ABCDEF"],h1=e=>hex[e&15],h2=e=>hex[(e&240)>>4]+hex[e&15],eq$5=e=>(e&240)>>4===(e&15),isShort=e=>eq$5(e.r)&&eq$5(e.g)&&eq$5(e.b)&&eq$5(e.a);function hexParse(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&map$1[e[1]]*17,g:255&map$1[e[2]]*17,b:255&map$1[e[3]]*17,a:t===5?map$1[e[4]]*17:255}:(t===7||t===9)&&(n={r:map$1[e[1]]<<4|map$1[e[2]],g:map$1[e[3]]<<4|map$1[e[4]],b:map$1[e[5]]<<4|map$1[e[6]],a:t===9?map$1[e[7]]<<4|map$1[e[8]]:255})),n}const alpha=(e,t)=>e<255?t(e):"";function hexString(e){var t=isShort(e)?h1:h2;return e?"#"+t(e.r)+t(e.g)+t(e.b)+alpha(e.a,t):void 0}const HUE_RE=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function hsl2rgbn(e,t,n){const i=t*Math.min(n,1-n),r=(a,o=(a+e/30)%12)=>n-i*Math.max(Math.min(o-3,9-o,1),-1);return[r(0),r(8),r(4)]}function hsv2rgbn(e,t,n){const i=(r,a=(r+e/60)%6)=>n-n*t*Math.max(Math.min(a,4-a,1),0);return[i(5),i(3),i(1)]}function hwb2rgbn(e,t,n){const i=hsl2rgbn(e,1,.5);let r;for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function hueValue(e,t,n,i,r){return e===r?(t-n)/i+(t<n?6:0):t===r?(n-e)/i+2:(e-t)/i+4}function rgb2hsl(e){const n=e.r/255,i=e.g/255,r=e.b/255,a=Math.max(n,i,r),o=Math.min(n,i,r),l=(a+o)/2;let u,h,m;return a!==o&&(m=a-o,h=l>.5?m/(2-a-o):m/(a+o),u=hueValue(n,i,r,m,a),u=u*60+.5),[u|0,h||0,l]}function calln(e,t,n,i){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,i)).map(n2b)}function hsl2rgb(e,t,n){return calln(hsl2rgbn,e,t,n)}function hwb2rgb(e,t,n){return calln(hwb2rgbn,e,t,n)}function hsv2rgb(e,t,n){return calln(hsv2rgbn,e,t,n)}function hue(e){return(e%360+360)%360}function hueParse(e){const t=HUE_RE.exec(e);let n=255,i;if(!t)return;t[5]!==i&&(n=t[6]?p2b(+t[5]):n2b(+t[5]));const r=hue(+t[2]),a=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?i=hwb2rgb(r,a,o):t[1]==="hsv"?i=hsv2rgb(r,a,o):i=hsl2rgb(r,a,o),{r:i[0],g:i[1],b:i[2],a:n}}function rotate(e,t){var n=rgb2hsl(e);n[0]=hue(n[0]+t),n=hsl2rgb(n),e.r=n[0],e.g=n[1],e.b=n[2]}function hslString(e){if(!e)return;const t=rgb2hsl(e),n=t[0],i=n2p(t[1]),r=n2p(t[2]);return e.a<255?`hsla(${n}, ${i}%, ${r}%, ${b2n(e.a)})`:`hsl(${n}, ${i}%, ${r}%)`}const map={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},names$1={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function unpack(){const e={},t=Object.keys(names$1),n=Object.keys(map);let i,r,a,o,l;for(i=0;i<t.length;i++){for(o=l=t[i],r=0;r<n.length;r++)a=n[r],l=l.replace(a,map[a]);a=parseInt(names$1[o],16),e[l]=[a>>16&255,a>>8&255,a&255]}return e}let names;function nameParse(e){names||(names=unpack(),names.transparent=[0,0,0,0]);const t=names[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const RGB_RE=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function rgbParse(e){const t=RGB_RE.exec(e);let n=255,i,r,a;if(t){if(t[7]!==i){const o=+t[7];n=t[8]?p2b(o):lim(o*255,0,255)}return i=+t[1],r=+t[3],a=+t[5],i=255&(t[2]?p2b(i):lim(i,0,255)),r=255&(t[4]?p2b(r):lim(r,0,255)),a=255&(t[6]?p2b(a):lim(a,0,255)),{r:i,g:r,b:a,a:n}}}function rgbString(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${b2n(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const to=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,from=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function interpolate$2(e,t,n){const i=from(b2n(e.r)),r=from(b2n(e.g)),a=from(b2n(e.b));return{r:n2b(to(i+n*(from(b2n(t.r))-i))),g:n2b(to(r+n*(from(b2n(t.g))-r))),b:n2b(to(a+n*(from(b2n(t.b))-a))),a:e.a+n*(t.a-e.a)}}function modHSL(e,t,n){if(e){let i=rgb2hsl(e);i[t]=Math.max(0,Math.min(i[t]+i[t]*n,t===0?360:1)),i=hsl2rgb(i),e.r=i[0],e.g=i[1],e.b=i[2]}}function clone$2(e,t){return e&&Object.assign(t||{},e)}function fromObject(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=n2b(e[3]))):(t=clone$2(e,{r:0,g:0,b:0,a:1}),t.a=n2b(t.a)),t}function functionParse(e){return e.charAt(0)==="r"?rgbParse(e):hueParse(e)}class Color{constructor(t){if(t instanceof Color)return t;const n=typeof t;let i;n==="object"?i=fromObject(t):n==="string"&&(i=hexParse(t)||nameParse(t)||functionParse(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=clone$2(this._rgb);return t&&(t.a=b2n(t.a)),t}set rgb(t){this._rgb=fromObject(t)}rgbString(){return this._valid?rgbString(this._rgb):void 0}hexString(){return this._valid?hexString(this._rgb):void 0}hslString(){return this._valid?hslString(this._rgb):void 0}mix(t,n){if(t){const i=this.rgb,r=t.rgb;let a;const o=n===a?.5:n,l=2*o-1,u=i.a-r.a,h=((l*u===-1?l:(l+u)/(1+l*u))+1)/2;a=1-h,i.r=255&h*i.r+a*r.r+.5,i.g=255&h*i.g+a*r.g+.5,i.b=255&h*i.b+a*r.b+.5,i.a=o*i.a+(1-o)*r.a,this.rgb=i}return this}interpolate(t,n){return t&&(this._rgb=interpolate$2(this._rgb,t._rgb,n)),this}clone(){return new Color(this.rgb)}alpha(t){return this._rgb.a=n2b(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=round(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return modHSL(this._rgb,2,t),this}darken(t){return modHSL(this._rgb,2,-t),this}saturate(t){return modHSL(this._rgb,1,t),this}desaturate(t){return modHSL(this._rgb,1,-t),this}rotate(t){return rotate(this._rgb,t),this}}/*!
+ */function round(e){return e+.5|0}const lim=(e,t,n)=>Math.max(Math.min(e,n),t);function p2b(e){return lim(round(e*2.55),0,255)}function n2b(e){return lim(round(e*255),0,255)}function b2n(e){return lim(round(e/2.55)/100,0,1)}function n2p(e){return lim(round(e*100),0,100)}const map$1={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},hex=[..."0123456789ABCDEF"],h1=e=>hex[e&15],h2=e=>hex[(e&240)>>4]+hex[e&15],eq$5=e=>(e&240)>>4===(e&15),isShort=e=>eq$5(e.r)&&eq$5(e.g)&&eq$5(e.b)&&eq$5(e.a);function hexParse(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&map$1[e[1]]*17,g:255&map$1[e[2]]*17,b:255&map$1[e[3]]*17,a:t===5?map$1[e[4]]*17:255}:(t===7||t===9)&&(n={r:map$1[e[1]]<<4|map$1[e[2]],g:map$1[e[3]]<<4|map$1[e[4]],b:map$1[e[5]]<<4|map$1[e[6]],a:t===9?map$1[e[7]]<<4|map$1[e[8]]:255})),n}const alpha=(e,t)=>e<255?t(e):"";function hexString(e){var t=isShort(e)?h1:h2;return e?"#"+t(e.r)+t(e.g)+t(e.b)+alpha(e.a,t):void 0}const HUE_RE=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function hsl2rgbn(e,t,n){const i=t*Math.min(n,1-n),r=(a,o=(a+e/30)%12)=>n-i*Math.max(Math.min(o-3,9-o,1),-1);return[r(0),r(8),r(4)]}function hsv2rgbn(e,t,n){const i=(r,a=(r+e/60)%6)=>n-n*t*Math.max(Math.min(a,4-a,1),0);return[i(5),i(3),i(1)]}function hwb2rgbn(e,t,n){const i=hsl2rgbn(e,1,.5);let r;for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function hueValue(e,t,n,i,r){return e===r?(t-n)/i+(t<n?6:0):t===r?(n-e)/i+2:(e-t)/i+4}function rgb2hsl(e){const n=e.r/255,i=e.g/255,r=e.b/255,a=Math.max(n,i,r),o=Math.min(n,i,r),l=(a+o)/2;let u,d,m;return a!==o&&(m=a-o,d=l>.5?m/(2-a-o):m/(a+o),u=hueValue(n,i,r,m,a),u=u*60+.5),[u|0,d||0,l]}function calln(e,t,n,i){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,i)).map(n2b)}function hsl2rgb(e,t,n){return calln(hsl2rgbn,e,t,n)}function hwb2rgb(e,t,n){return calln(hwb2rgbn,e,t,n)}function hsv2rgb(e,t,n){return calln(hsv2rgbn,e,t,n)}function hue(e){return(e%360+360)%360}function hueParse(e){const t=HUE_RE.exec(e);let n=255,i;if(!t)return;t[5]!==i&&(n=t[6]?p2b(+t[5]):n2b(+t[5]));const r=hue(+t[2]),a=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?i=hwb2rgb(r,a,o):t[1]==="hsv"?i=hsv2rgb(r,a,o):i=hsl2rgb(r,a,o),{r:i[0],g:i[1],b:i[2],a:n}}function rotate(e,t){var n=rgb2hsl(e);n[0]=hue(n[0]+t),n=hsl2rgb(n),e.r=n[0],e.g=n[1],e.b=n[2]}function hslString(e){if(!e)return;const t=rgb2hsl(e),n=t[0],i=n2p(t[1]),r=n2p(t[2]);return e.a<255?`hsla(${n}, ${i}%, ${r}%, ${b2n(e.a)})`:`hsl(${n}, ${i}%, ${r}%)`}const map={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},names$1={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function unpack(){const e={},t=Object.keys(names$1),n=Object.keys(map);let i,r,a,o,l;for(i=0;i<t.length;i++){for(o=l=t[i],r=0;r<n.length;r++)a=n[r],l=l.replace(a,map[a]);a=parseInt(names$1[o],16),e[l]=[a>>16&255,a>>8&255,a&255]}return e}let names;function nameParse(e){names||(names=unpack(),names.transparent=[0,0,0,0]);const t=names[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const RGB_RE=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function rgbParse(e){const t=RGB_RE.exec(e);let n=255,i,r,a;if(t){if(t[7]!==i){const o=+t[7];n=t[8]?p2b(o):lim(o*255,0,255)}return i=+t[1],r=+t[3],a=+t[5],i=255&(t[2]?p2b(i):lim(i,0,255)),r=255&(t[4]?p2b(r):lim(r,0,255)),a=255&(t[6]?p2b(a):lim(a,0,255)),{r:i,g:r,b:a,a:n}}}function rgbString(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${b2n(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const to=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,from=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function interpolate$2(e,t,n){const i=from(b2n(e.r)),r=from(b2n(e.g)),a=from(b2n(e.b));return{r:n2b(to(i+n*(from(b2n(t.r))-i))),g:n2b(to(r+n*(from(b2n(t.g))-r))),b:n2b(to(a+n*(from(b2n(t.b))-a))),a:e.a+n*(t.a-e.a)}}function modHSL(e,t,n){if(e){let i=rgb2hsl(e);i[t]=Math.max(0,Math.min(i[t]+i[t]*n,t===0?360:1)),i=hsl2rgb(i),e.r=i[0],e.g=i[1],e.b=i[2]}}function clone$2(e,t){return e&&Object.assign(t||{},e)}function fromObject(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=n2b(e[3]))):(t=clone$2(e,{r:0,g:0,b:0,a:1}),t.a=n2b(t.a)),t}function functionParse(e){return e.charAt(0)==="r"?rgbParse(e):hueParse(e)}class Color{constructor(t){if(t instanceof Color)return t;const n=typeof t;let i;n==="object"?i=fromObject(t):n==="string"&&(i=hexParse(t)||nameParse(t)||functionParse(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=clone$2(this._rgb);return t&&(t.a=b2n(t.a)),t}set rgb(t){this._rgb=fromObject(t)}rgbString(){return this._valid?rgbString(this._rgb):void 0}hexString(){return this._valid?hexString(this._rgb):void 0}hslString(){return this._valid?hslString(this._rgb):void 0}mix(t,n){if(t){const i=this.rgb,r=t.rgb;let a;const o=n===a?.5:n,l=2*o-1,u=i.a-r.a,d=((l*u===-1?l:(l+u)/(1+l*u))+1)/2;a=1-d,i.r=255&d*i.r+a*r.r+.5,i.g=255&d*i.g+a*r.g+.5,i.b=255&d*i.b+a*r.b+.5,i.a=o*i.a+(1-o)*r.a,this.rgb=i}return this}interpolate(t,n){return t&&(this._rgb=interpolate$2(this._rgb,t._rgb,n)),this}clone(){return new Color(this.rgb)}alpha(t){return this._rgb.a=n2b(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=round(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return modHSL(this._rgb,2,t),this}darken(t){return modHSL(this._rgb,2,-t),this}saturate(t){return modHSL(this._rgb,1,t),this}desaturate(t){return modHSL(this._rgb,1,-t),this}rotate(t){return rotate(this._rgb,t),this}}/*!
* Chart.js v4.4.1
* https://www.chartjs.org
* (c) 2023 Chart.js Contributors
* Released under the MIT License
- */function noop$2(){}const uid=(()=>{let e=0;return()=>e++})();function isNullOrUndef(e){return e===null||typeof e>"u"}function isArray$b(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function isObject$8(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function isNumberFinite(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function finiteOrDefault(e,t){return isNumberFinite(e)?e:t}function valueOrDefault(e,t){return typeof e>"u"?t:e}const toPercentage=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,toDimension=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function callback(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function each(e,t,n,i){let r,a,o;if(isArray$b(e))if(a=e.length,i)for(r=a-1;r>=0;r--)t.call(n,e[r],r);else for(r=0;r<a;r++)t.call(n,e[r],r);else if(isObject$8(e))for(o=Object.keys(e),a=o.length,r=0;r<a;r++)t.call(n,e[o[r]],o[r])}function _elementsEqual(e,t){let n,i,r,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(r=e[n],a=t[n],r.datasetIndex!==a.datasetIndex||r.index!==a.index)return!1;return!0}function clone$1(e){if(isArray$b(e))return e.map(clone$1);if(isObject$8(e)){const t=Object.create(null),n=Object.keys(e),i=n.length;let r=0;for(;r<i;++r)t[n[r]]=clone$1(e[n[r]]);return t}return e}function isValidKey(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function _merger(e,t,n,i){if(!isValidKey(e))return;const r=t[e],a=n[e];isObject$8(r)&&isObject$8(a)?merge(r,a,i):t[e]=clone$1(a)}function merge(e,t,n){const i=isArray$b(t)?t:[t],r=i.length;if(!isObject$8(e))return e;n=n||{};const a=n.merger||_merger;let o;for(let l=0;l<r;++l){if(o=i[l],!isObject$8(o))continue;const u=Object.keys(o);for(let h=0,m=u.length;h<m;++h)a(u[h],e,o,n)}return e}function mergeIf(e,t){return merge(e,t,{merger:_mergerIf})}function _mergerIf(e,t,n){if(!isValidKey(e))return;const i=t[e],r=n[e];isObject$8(i)&&isObject$8(r)?mergeIf(i,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=clone$1(r))}const keyResolvers={"":e=>e,x:e=>e.x,y:e=>e.y};function _splitKey(e){const t=e.split("."),n=[];let i="";for(const r of t)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function _getKeyResolver(e){const t=_splitKey(e);return n=>{for(const i of t){if(i==="")break;n=n&&n[i]}return n}}function resolveObjectKey(e,t){return(keyResolvers[t]||(keyResolvers[t]=_getKeyResolver(t)))(e)}function _capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)}const defined$1=e=>typeof e<"u",isFunction$3=e=>typeof e=="function",setsEqual=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function _isClickEvent(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const PI=Math.PI,TAU=2*PI,PITAU=TAU+PI,INFINITY$5=Number.POSITIVE_INFINITY,RAD_PER_DEG=PI/180,HALF_PI=PI/2,QUARTER_PI=PI/4,TWO_THIRDS_PI=PI*2/3,log10=Math.log10,sign=Math.sign;function almostEquals(e,t,n){return Math.abs(e-t)<n}function niceNum(e){const t=Math.round(e);e=almostEquals(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(log10(e))),i=e/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function _factorize(e){const t=[],n=Math.sqrt(e);let i;for(i=1;i<n;i++)e%i===0&&(t.push(i),t.push(e/i));return n===(n|0)&&t.push(n),t.sort((r,a)=>r-a).pop(),t}function isNumber(e){return!isNaN(parseFloat(e))&&isFinite(e)}function almostWhole(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function _setMinAndMaxByKey(e,t,n){let i,r,a;for(i=0,r=e.length;i<r;i++)a=e[i][n],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function toRadians(e){return e*(PI/180)}function toDegrees(e){return e*(180/PI)}function _decimalPlaces(e){if(!isNumberFinite(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function getAngleFromPoint(e,t){const n=t.x-e.x,i=t.y-e.y,r=Math.sqrt(n*n+i*i);let a=Math.atan2(i,n);return a<-.5*PI&&(a+=TAU),{angle:a,distance:r}}function distanceBetweenPoints(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function _angleDiff(e,t){return(e-t+PITAU)%TAU-PI}function _normalizeAngle(e){return(e%TAU+TAU)%TAU}function _angleBetween(e,t,n,i){const r=_normalizeAngle(e),a=_normalizeAngle(t),o=_normalizeAngle(n),l=_normalizeAngle(a-r),u=_normalizeAngle(o-r),h=_normalizeAngle(r-a),m=_normalizeAngle(r-o);return r===a||r===o||i&&a===o||l>u&&h<m}function _limitValue(e,t,n){return Math.max(t,Math.min(n,e))}function _int16Range(e){return _limitValue(e,-32768,32767)}function _isBetween(e,t,n,i=1e-6){return e>=Math.min(t,n)-i&&e<=Math.max(t,n)+i}function _lookup(e,t,n){n=n||(o=>e[o]<t);let i=e.length-1,r=0,a;for(;i-r>1;)a=r+i>>1,n(a)?r=a:i=a;return{lo:r,hi:i}}const _lookupByKey=(e,t,n,i)=>_lookup(e,n,i?r=>{const a=e[r][t];return a<n||a===n&&e[r+1][t]===n}:r=>e[r][t]<n),_rlookupByKey=(e,t,n)=>_lookup(e,n,i=>e[i][t]>=n);function _filterBetween(e,t,n){let i=0,r=e.length;for(;i<r&&e[i]<t;)i++;for(;r>i&&e[r-1]>n;)r--;return i>0||r<e.length?e.slice(i,r):e}const arrayEvents=["push","pop","shift","splice","unshift"];function listenArrayEvents(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),arrayEvents.forEach(n=>{const i="_onData"+_capitalize(n),r=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...a){const o=r.apply(this,a);return e._chartjs.listeners.forEach(l=>{typeof l[i]=="function"&&l[i](...a)}),o}})})}function unlistenArrayEvents(e,t){const n=e._chartjs;if(!n)return;const i=n.listeners,r=i.indexOf(t);r!==-1&&i.splice(r,1),!(i.length>0)&&(arrayEvents.forEach(a=>{delete e[a]}),delete e._chartjs)}function _arrayUnique(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const requestAnimFrame=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function throttled(e,t){let n=[],i=!1;return function(...r){n=r,i||(i=!0,requestAnimFrame.call(window,()=>{i=!1,e.apply(t,n)}))}}function debounce$1(e,t){let n;return function(...i){return t?(clearTimeout(n),n=setTimeout(e,t,i)):e.apply(this,i),t}}const _toLeftRightCenter=e=>e==="start"?"left":e==="end"?"right":"center",_alignStartEnd=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,_textX=(e,t,n,i)=>e===(i?"left":"right")?n:e==="center"?(t+n)/2:t;function _getStartAndCountOfVisiblePoints(e,t,n){const i=t.length;let r=0,a=i;if(e._sorted){const{iScale:o,_parsed:l}=e,u=o.axis,{min:h,max:m,minDefined:g,maxDefined:_}=o.getUserBounds();g&&(r=_limitValue(Math.min(_lookupByKey(l,u,h).lo,n?i:_lookupByKey(t,u,o.getPixelForValue(h)).lo),0,i-1)),_?a=_limitValue(Math.max(_lookupByKey(l,o.axis,m,!0).hi+1,n?0:_lookupByKey(t,u,o.getPixelForValue(m),!0).hi+1),r,i)-r:a=i-r}return{start:r,count:a}}function _scaleRangesChanged(e){const{xScale:t,yScale:n,_scaleRanges:i}=e,r={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!i)return e._scaleRanges=r,!0;const a=i.xmin!==t.min||i.xmax!==t.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,r),a}const atEdge=e=>e===0||e===1,elasticIn=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*TAU/n)),elasticOut=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*TAU/n)+1,effects={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*HALF_PI)+1,easeOutSine:e=>Math.sin(e*HALF_PI),easeInOutSine:e=>-.5*(Math.cos(PI*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>atEdge(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>atEdge(e)?e:elasticIn(e,.075,.3),easeOutElastic:e=>atEdge(e)?e:elasticOut(e,.075,.3),easeInOutElastic(e){return atEdge(e)?e:e<.5?.5*elasticIn(e*2,.1125,.45):.5+.5*elasticOut(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-effects.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?effects.easeInBounce(e*2)*.5:effects.easeOutBounce(e*2-1)*.5+.5};function isPatternOrGradient(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function color(e){return isPatternOrGradient(e)?e:new Color(e)}function getHoverColor(e){return isPatternOrGradient(e)?e:new Color(e).saturate(.5).darken(.1).hexString()}const numbers=["x","y","borderWidth","radius","tension"],colors=["color","borderColor","backgroundColor"];function applyAnimationsDefaults(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:colors},numbers:{type:"number",properties:numbers}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function applyLayoutsDefaults(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const intlCache=new Map;function getNumberFormat(e,t){t=t||{};const n=e+JSON.stringify(t);let i=intlCache.get(n);return i||(i=new Intl.NumberFormat(e,t),intlCache.set(n,i)),i}function formatNumber$1(e,t,n){return getNumberFormat(t,n).format(e)}const formatters={values(e){return isArray$b(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const i=this.chart.options.locale;let r,a=e;if(n.length>1){const h=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(h<1e-4||h>1e15)&&(r="scientific"),a=calculateDelta(e,n)}const o=log10(Math.abs(a)),l=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),u={notation:r,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(u,this.options.ticks.format),formatNumber$1(e,i,u)},logarithmic(e,t,n){if(e===0)return"0";const i=n[t].significand||e/Math.pow(10,Math.floor(log10(e)));return[1,2,3,5,10,15].includes(i)||t>.8*n.length?formatters.numeric.call(this,e,t,n):""}};function calculateDelta(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Ticks={formatters};function applyScaleDefaults(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Ticks.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const overrides=Object.create(null),descriptors=Object.create(null);function getScope$1(e,t){if(!t)return e;const n=t.split(".");for(let i=0,r=n.length;i<r;++i){const a=n[i];e=e[a]||(e[a]=Object.create(null))}return e}function set$2(e,t,n){return typeof t=="string"?merge(getScope$1(e,t),n):merge(getScope$1(e,""),t)}class Defaults{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=i=>i.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,r)=>getHoverColor(r.backgroundColor),this.hoverBorderColor=(i,r)=>getHoverColor(r.borderColor),this.hoverColor=(i,r)=>getHoverColor(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return set$2(this,t,n)}get(t){return getScope$1(this,t)}describe(t,n){return set$2(descriptors,t,n)}override(t,n){return set$2(overrides,t,n)}route(t,n,i,r){const a=getScope$1(this,t),o=getScope$1(this,i),l="_"+n;Object.defineProperties(a,{[l]:{value:a[n],writable:!0},[n]:{enumerable:!0,get(){const u=this[l],h=o[r];return isObject$8(u)?Object.assign({},h,u):valueOrDefault(u,h)},set(u){this[l]=u}}})}apply(t){t.forEach(n=>n(this))}}var defaults=new Defaults({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[applyAnimationsDefaults,applyLayoutsDefaults,applyScaleDefaults]);function toFontString(e){return!e||isNullOrUndef(e.size)||isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function _measureText(e,t,n,i,r){let a=t[r];return a||(a=t[r]=e.measureText(r).width,n.push(r)),a>i&&(i=a),i}function _longestText(e,t,n,i){i=i||{};let r=i.data=i.data||{},a=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(r=i.data={},a=i.garbageCollect=[],i.font=t),e.save(),e.font=t;let o=0;const l=n.length;let u,h,m,g,_;for(u=0;u<l;u++)if(g=n[u],g!=null&&!isArray$b(g))o=_measureText(e,r,a,o,g);else if(isArray$b(g))for(h=0,m=g.length;h<m;h++)_=g[h],_!=null&&!isArray$b(_)&&(o=_measureText(e,r,a,o,_));e.restore();const v=a.length/2;if(v>n.length){for(u=0;u<v;u++)delete r[a[u]];a.splice(0,v)}return o}function _alignPixel(e,t,n){const i=e.currentDevicePixelRatio,r=n!==0?Math.max(n/2,.5):0;return Math.round((t-r)*i)/i+r}function clearCanvas(e,t){t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function drawPoint(e,t,n,i){drawPointLegend(e,t,n,i,null)}function drawPointLegend(e,t,n,i,r){let a,o,l,u,h,m,g,_;const v=t.pointStyle,w=t.rotation,$=t.radius;let x=(w||0)*RAD_PER_DEG;if(v&&typeof v=="object"&&(a=v.toString(),a==="[object HTMLImageElement]"||a==="[object HTMLCanvasElement]")){e.save(),e.translate(n,i),e.rotate(x),e.drawImage(v,-v.width/2,-v.height/2,v.width,v.height),e.restore();return}if(!(isNaN($)||$<=0)){switch(e.beginPath(),v){default:r?e.ellipse(n,i,r/2,$,0,0,TAU):e.arc(n,i,$,0,TAU),e.closePath();break;case"triangle":m=r?r/2:$,e.moveTo(n+Math.sin(x)*m,i-Math.cos(x)*$),x+=TWO_THIRDS_PI,e.lineTo(n+Math.sin(x)*m,i-Math.cos(x)*$),x+=TWO_THIRDS_PI,e.lineTo(n+Math.sin(x)*m,i-Math.cos(x)*$),e.closePath();break;case"rectRounded":h=$*.516,u=$-h,o=Math.cos(x+QUARTER_PI)*u,g=Math.cos(x+QUARTER_PI)*(r?r/2-h:u),l=Math.sin(x+QUARTER_PI)*u,_=Math.sin(x+QUARTER_PI)*(r?r/2-h:u),e.arc(n-g,i-l,h,x-PI,x-HALF_PI),e.arc(n+_,i-o,h,x-HALF_PI,x),e.arc(n+g,i+l,h,x,x+HALF_PI),e.arc(n-_,i+o,h,x+HALF_PI,x+PI),e.closePath();break;case"rect":if(!w){u=Math.SQRT1_2*$,m=r?r/2:u,e.rect(n-m,i-u,2*m,2*u);break}x+=QUARTER_PI;case"rectRot":g=Math.cos(x)*(r?r/2:$),o=Math.cos(x)*$,l=Math.sin(x)*$,_=Math.sin(x)*(r?r/2:$),e.moveTo(n-g,i-l),e.lineTo(n+_,i-o),e.lineTo(n+g,i+l),e.lineTo(n-_,i+o),e.closePath();break;case"crossRot":x+=QUARTER_PI;case"cross":g=Math.cos(x)*(r?r/2:$),o=Math.cos(x)*$,l=Math.sin(x)*$,_=Math.sin(x)*(r?r/2:$),e.moveTo(n-g,i-l),e.lineTo(n+g,i+l),e.moveTo(n+_,i-o),e.lineTo(n-_,i+o);break;case"star":g=Math.cos(x)*(r?r/2:$),o=Math.cos(x)*$,l=Math.sin(x)*$,_=Math.sin(x)*(r?r/2:$),e.moveTo(n-g,i-l),e.lineTo(n+g,i+l),e.moveTo(n+_,i-o),e.lineTo(n-_,i+o),x+=QUARTER_PI,g=Math.cos(x)*(r?r/2:$),o=Math.cos(x)*$,l=Math.sin(x)*$,_=Math.sin(x)*(r?r/2:$),e.moveTo(n-g,i-l),e.lineTo(n+g,i+l),e.moveTo(n+_,i-o),e.lineTo(n-_,i+o);break;case"line":o=r?r/2:Math.cos(x)*$,l=Math.sin(x)*$,e.moveTo(n-o,i-l),e.lineTo(n+o,i+l);break;case"dash":e.moveTo(n,i),e.lineTo(n+Math.cos(x)*(r?r/2:$),i+Math.sin(x)*$);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function _isPointInArea(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function clipArea(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function unclipArea(e){e.restore()}function _steppedLineTo(e,t,n,i,r){if(!t)return e.lineTo(n.x,n.y);if(r==="middle"){const a=(t.x+n.x)/2;e.lineTo(a,t.y),e.lineTo(a,n.y)}else r==="after"!=!!i?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function _bezierCurveTo(e,t,n,i){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(i?t.cp1x:t.cp2x,i?t.cp1y:t.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function setRenderOpts(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),isNullOrUndef(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function decorateText(e,t,n,i,r){if(r.strikethrough||r.underline){const a=e.measureText(i),o=t-a.actualBoundingBoxLeft,l=t+a.actualBoundingBoxRight,u=n-a.actualBoundingBoxAscent,h=n+a.actualBoundingBoxDescent,m=r.strikethrough?(u+h)/2:h;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=r.decorationWidth||2,e.moveTo(o,m),e.lineTo(l,m),e.stroke()}}function drawBackdrop(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function renderText(e,t,n,i,r,a={}){const o=isArray$b(t)?t:[t],l=a.strokeWidth>0&&a.strokeColor!=="";let u,h;for(e.save(),e.font=r.string,setRenderOpts(e,a),u=0;u<o.length;++u)h=o[u],a.backdrop&&drawBackdrop(e,a.backdrop),l&&(a.strokeColor&&(e.strokeStyle=a.strokeColor),isNullOrUndef(a.strokeWidth)||(e.lineWidth=a.strokeWidth),e.strokeText(h,n,i,a.maxWidth)),e.fillText(h,n,i,a.maxWidth),decorateText(e,n,i,h,a),i+=Number(r.lineHeight);e.restore()}function addRoundedRectPath(e,t){const{x:n,y:i,w:r,h:a,radius:o}=t;e.arc(n+o.topLeft,i+o.topLeft,o.topLeft,1.5*PI,PI,!0),e.lineTo(n,i+a-o.bottomLeft),e.arc(n+o.bottomLeft,i+a-o.bottomLeft,o.bottomLeft,PI,HALF_PI,!0),e.lineTo(n+r-o.bottomRight,i+a),e.arc(n+r-o.bottomRight,i+a-o.bottomRight,o.bottomRight,HALF_PI,0,!0),e.lineTo(n+r,i+o.topRight),e.arc(n+r-o.topRight,i+o.topRight,o.topRight,0,-HALF_PI,!0),e.lineTo(n+o.topLeft,i)}const LINE_HEIGHT=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,FONT_STYLE=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function toLineHeight(e,t){const n=(""+e).match(LINE_HEIGHT);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const numberOrZero=e=>+e||0;function _readValueToProps(e,t){const n={},i=isObject$8(t),r=i?Object.keys(t):t,a=isObject$8(e)?i?o=>valueOrDefault(e[o],e[t[o]]):o=>e[o]:()=>e;for(const o of r)n[o]=numberOrZero(a(o));return n}function toTRBL(e){return _readValueToProps(e,{top:"y",right:"x",bottom:"y",left:"x"})}function toTRBLCorners(e){return _readValueToProps(e,["topLeft","topRight","bottomLeft","bottomRight"])}function toPadding(e){const t=toTRBL(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function toFont(e,t){e=e||{},t=t||defaults.font;let n=valueOrDefault(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let i=valueOrDefault(e.style,t.style);i&&!(""+i).match(FONT_STYLE)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const r={family:valueOrDefault(e.family,t.family),lineHeight:toLineHeight(valueOrDefault(e.lineHeight,t.lineHeight),n),size:n,style:i,weight:valueOrDefault(e.weight,t.weight),string:""};return r.string=toFontString(r),r}function resolve(e,t,n,i){let r=!0,a,o,l;for(a=0,o=e.length;a<o;++a)if(l=e[a],l!==void 0&&(t!==void 0&&typeof l=="function"&&(l=l(t),r=!1),n!==void 0&&isArray$b(l)&&(l=l[n%l.length],r=!1),l!==void 0))return i&&!r&&(i.cacheable=!1),l}function _addGrace(e,t,n){const{min:i,max:r}=e,a=toDimension(t,(r-i)/2),o=(l,u)=>n&&l===0?0:l+u;return{min:o(i,-Math.abs(a)),max:o(r,a)}}function createContext(e,t){return Object.assign(Object.create(e),t)}function _createResolver(e,t=[""],n,i,r=()=>e[0]){const a=n||e;typeof i>"u"&&(i=_resolve("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:i,_getTarget:r,override:l=>_createResolver([l,...e],t,a,i)};return new Proxy(o,{deleteProperty(l,u){return delete l[u],delete l._keys,delete e[0][u],!0},get(l,u){return _cached(l,u,()=>_resolveWithPrefixes(u,t,e,l))},getOwnPropertyDescriptor(l,u){return Reflect.getOwnPropertyDescriptor(l._scopes[0],u)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(l,u){return getKeysFromAllScopes(l).includes(u)},ownKeys(l){return getKeysFromAllScopes(l)},set(l,u,h){const m=l._storage||(l._storage=r());return l[u]=m[u]=h,delete l._keys,!0}})}function _attachContext(e,t,n,i){const r={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:_descriptors(e,i),setContext:a=>_attachContext(e,a,n,i),override:a=>_attachContext(e.override(a),t,n,i)};return new Proxy(r,{deleteProperty(a,o){return delete a[o],delete e[o],!0},get(a,o,l){return _cached(a,o,()=>_resolveWithContext(a,o,l))},getOwnPropertyDescriptor(a,o){return a._descriptors.allKeys?Reflect.has(e,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,o)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(a,o){return Reflect.has(e,o)},ownKeys(){return Reflect.ownKeys(e)},set(a,o,l){return e[o]=l,delete a[o],!0}})}function _descriptors(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:i=t.indexable,_allKeys:r=t.allKeys}=e;return{allKeys:r,scriptable:n,indexable:i,isScriptable:isFunction$3(n)?n:()=>n,isIndexable:isFunction$3(i)?i:()=>i}}const readKey=(e,t)=>e?e+_capitalize(t):t,needsSubResolver=(e,t)=>isObject$8(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function _cached(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const i=n();return e[t]=i,i}function _resolveWithContext(e,t,n){const{_proxy:i,_context:r,_subProxy:a,_descriptors:o}=e;let l=i[t];return isFunction$3(l)&&o.isScriptable(t)&&(l=_resolveScriptable(t,l,e,n)),isArray$b(l)&&l.length&&(l=_resolveArray(t,l,e,o.isIndexable)),needsSubResolver(t,l)&&(l=_attachContext(l,r,a&&a[t],o)),l}function _resolveScriptable(e,t,n,i){const{_proxy:r,_context:a,_subProxy:o,_stack:l}=n;if(l.has(e))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+e);l.add(e);let u=t(a,o||i);return l.delete(e),needsSubResolver(e,u)&&(u=createSubResolver(r._scopes,r,e,u)),u}function _resolveArray(e,t,n,i){const{_proxy:r,_context:a,_subProxy:o,_descriptors:l}=n;if(typeof a.index<"u"&&i(e))return t[a.index%t.length];if(isObject$8(t[0])){const u=t,h=r._scopes.filter(m=>m!==u);t=[];for(const m of u){const g=createSubResolver(h,r,e,m);t.push(_attachContext(g,a,o&&o[e],l))}}return t}function resolveFallback(e,t,n){return isFunction$3(e)?e(t,n):e}const getScope=(e,t)=>e===!0?t:typeof e=="string"?resolveObjectKey(t,e):void 0;function addScopes(e,t,n,i,r){for(const a of t){const o=getScope(n,a);if(o){e.add(o);const l=resolveFallback(o._fallback,n,r);if(typeof l<"u"&&l!==n&&l!==i)return l}else if(o===!1&&typeof i<"u"&&n!==i)return null}return!1}function createSubResolver(e,t,n,i){const r=t._rootScopes,a=resolveFallback(t._fallback,n,i),o=[...e,...r],l=new Set;l.add(i);let u=addScopesFromKey(l,o,n,a||n,i);return u===null||typeof a<"u"&&a!==n&&(u=addScopesFromKey(l,o,a,u,i),u===null)?!1:_createResolver(Array.from(l),[""],r,a,()=>subGetTarget(t,n,i))}function addScopesFromKey(e,t,n,i,r){for(;n;)n=addScopes(e,t,n,i,r);return n}function subGetTarget(e,t,n){const i=e._getTarget();t in i||(i[t]={});const r=i[t];return isArray$b(r)&&isObject$8(n)?n:r||{}}function _resolveWithPrefixes(e,t,n,i){let r;for(const a of t)if(r=_resolve(readKey(a,e),n),typeof r<"u")return needsSubResolver(e,r)?createSubResolver(n,i,e,r):r}function _resolve(e,t){for(const n of t){if(!n)continue;const i=n[e];if(typeof i<"u")return i}}function getKeysFromAllScopes(e){let t=e._keys;return t||(t=e._keys=resolveKeysFromAllScopes(e._scopes)),t}function resolveKeysFromAllScopes(e){const t=new Set;for(const n of e)for(const i of Object.keys(n).filter(r=>!r.startsWith("_")))t.add(i);return Array.from(t)}function _parseObjectDataRadialScale(e,t,n,i){const{iScale:r}=e,{key:a="r"}=this._parsing,o=new Array(i);let l,u,h,m;for(l=0,u=i;l<u;++l)h=l+n,m=t[h],o[l]={r:r.parse(resolveObjectKey(m,a),h)};return o}const EPSILON=Number.EPSILON||1e-14,getPoint=(e,t)=>t<e.length&&!e[t].skip&&e[t],getValueAxis=e=>e==="x"?"y":"x";function splineCurve(e,t,n,i){const r=e.skip?t:e,a=t,o=n.skip?t:n,l=distanceBetweenPoints(a,r),u=distanceBetweenPoints(o,a);let h=l/(l+u),m=u/(l+u);h=isNaN(h)?0:h,m=isNaN(m)?0:m;const g=i*h,_=i*m;return{previous:{x:a.x-g*(o.x-r.x),y:a.y-g*(o.y-r.y)},next:{x:a.x+_*(o.x-r.x),y:a.y+_*(o.y-r.y)}}}function monotoneAdjust(e,t,n){const i=e.length;let r,a,o,l,u,h=getPoint(e,0);for(let m=0;m<i-1;++m)if(u=h,h=getPoint(e,m+1),!(!u||!h)){if(almostEquals(t[m],0,EPSILON)){n[m]=n[m+1]=0;continue}r=n[m]/t[m],a=n[m+1]/t[m],l=Math.pow(r,2)+Math.pow(a,2),!(l<=9)&&(o=3/Math.sqrt(l),n[m]=r*o*t[m],n[m+1]=a*o*t[m])}}function monotoneCompute(e,t,n="x"){const i=getValueAxis(n),r=e.length;let a,o,l,u=getPoint(e,0);for(let h=0;h<r;++h){if(o=l,l=u,u=getPoint(e,h+1),!l)continue;const m=l[n],g=l[i];o&&(a=(m-o[n])/3,l[`cp1${n}`]=m-a,l[`cp1${i}`]=g-a*t[h]),u&&(a=(u[n]-m)/3,l[`cp2${n}`]=m+a,l[`cp2${i}`]=g+a*t[h])}}function splineCurveMonotone(e,t="x"){const n=getValueAxis(t),i=e.length,r=Array(i).fill(0),a=Array(i);let o,l,u,h=getPoint(e,0);for(o=0;o<i;++o)if(l=u,u=h,h=getPoint(e,o+1),!!u){if(h){const m=h[t]-u[t];r[o]=m!==0?(h[n]-u[n])/m:0}a[o]=l?h?sign(r[o-1])!==sign(r[o])?0:(r[o-1]+r[o])/2:r[o-1]:r[o]}monotoneAdjust(e,r,a),monotoneCompute(e,a,t)}function capControlPoint(e,t,n){return Math.max(Math.min(e,n),t)}function capBezierPoints(e,t){let n,i,r,a,o,l=_isPointInArea(e[0],t);for(n=0,i=e.length;n<i;++n)o=a,a=l,l=n<i-1&&_isPointInArea(e[n+1],t),a&&(r=e[n],o&&(r.cp1x=capControlPoint(r.cp1x,t.left,t.right),r.cp1y=capControlPoint(r.cp1y,t.top,t.bottom)),l&&(r.cp2x=capControlPoint(r.cp2x,t.left,t.right),r.cp2y=capControlPoint(r.cp2y,t.top,t.bottom)))}function _updateBezierControlPoints(e,t,n,i,r){let a,o,l,u;if(t.spanGaps&&(e=e.filter(h=>!h.skip)),t.cubicInterpolationMode==="monotone")splineCurveMonotone(e,r);else{let h=i?e[e.length-1]:e[0];for(a=0,o=e.length;a<o;++a)l=e[a],u=splineCurve(h,l,e[Math.min(a+1,o-(i?0:1))%o],t.tension),l.cp1x=u.previous.x,l.cp1y=u.previous.y,l.cp2x=u.next.x,l.cp2y=u.next.y,h=l}t.capBezierPoints&&capBezierPoints(e,n)}function _isDomSupported(){return typeof window<"u"&&typeof document<"u"}function _getParentNode(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function parseMaxStyle(e,t,n){let i;return typeof e=="string"?(i=parseInt(e,10),e.indexOf("%")!==-1&&(i=i/100*t.parentNode[n])):i=e,i}const getComputedStyle$1=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function getStyle(e,t){return getComputedStyle$1(e).getPropertyValue(t)}const positions=["top","right","bottom","left"];function getPositionedStyle(e,t,n){const i={};n=n?"-"+n:"";for(let r=0;r<4;r++){const a=positions[r];i[a]=parseFloat(e[t+"-"+a+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const useOffsetPos=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function getCanvasPosition(e,t){const n=e.touches,i=n&&n.length?n[0]:e,{offsetX:r,offsetY:a}=i;let o=!1,l,u;if(useOffsetPos(r,a,e.target))l=r,u=a;else{const h=t.getBoundingClientRect();l=i.clientX-h.left,u=i.clientY-h.top,o=!0}return{x:l,y:u,box:o}}function getRelativePosition(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:i}=t,r=getComputedStyle$1(n),a=r.boxSizing==="border-box",o=getPositionedStyle(r,"padding"),l=getPositionedStyle(r,"border","width"),{x:u,y:h,box:m}=getCanvasPosition(e,n),g=o.left+(m&&l.left),_=o.top+(m&&l.top);let{width:v,height:w}=t;return a&&(v-=o.width+l.width,w-=o.height+l.height),{x:Math.round((u-g)/v*n.width/i),y:Math.round((h-_)/w*n.height/i)}}function getContainerSize(e,t,n){let i,r;if(t===void 0||n===void 0){const a=_getParentNode(e);if(!a)t=e.clientWidth,n=e.clientHeight;else{const o=a.getBoundingClientRect(),l=getComputedStyle$1(a),u=getPositionedStyle(l,"border","width"),h=getPositionedStyle(l,"padding");t=o.width-h.width-u.width,n=o.height-h.height-u.height,i=parseMaxStyle(l.maxWidth,a,"clientWidth"),r=parseMaxStyle(l.maxHeight,a,"clientHeight")}}return{width:t,height:n,maxWidth:i||INFINITY$5,maxHeight:r||INFINITY$5}}const round1=e=>Math.round(e*10)/10;function getMaximumSize(e,t,n,i){const r=getComputedStyle$1(e),a=getPositionedStyle(r,"margin"),o=parseMaxStyle(r.maxWidth,e,"clientWidth")||INFINITY$5,l=parseMaxStyle(r.maxHeight,e,"clientHeight")||INFINITY$5,u=getContainerSize(e,t,n);let{width:h,height:m}=u;if(r.boxSizing==="content-box"){const _=getPositionedStyle(r,"border","width"),v=getPositionedStyle(r,"padding");h-=v.width+_.width,m-=v.height+_.height}return h=Math.max(0,h-a.width),m=Math.max(0,i?h/i:m-a.height),h=round1(Math.min(h,o,u.maxWidth)),m=round1(Math.min(m,l,u.maxHeight)),h&&!m&&(m=round1(h/2)),(t!==void 0||n!==void 0)&&i&&u.height&&m>u.height&&(m=u.height,h=round1(Math.floor(m*i))),{width:h,height:m}}function retinaScale(e,t,n){const i=t||1,r=Math.floor(e.height*i),a=Math.floor(e.width*i);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==i||o.height!==r||o.width!==a?(e.currentDevicePixelRatio=i,o.height=r,o.width=a,e.ctx.setTransform(i,0,0,i,0,0),!0):!1}const supportsEventListenerOptions=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};_isDomSupported()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function readUsedSize(e,t){const n=getStyle(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function _pointInLine(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function _steppedInterpolation(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:i==="middle"?n<.5?e.y:t.y:i==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function _bezierInterpolation(e,t,n,i){const r={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=_pointInLine(e,r,n),l=_pointInLine(r,a,n),u=_pointInLine(a,t,n),h=_pointInLine(o,l,n),m=_pointInLine(l,u,n);return _pointInLine(h,m,n)}const getRightToLeftAdapter=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,i){return n-i},leftForLtr(n,i){return n-i}}},getLeftToRightAdapter=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function getRtlAdapter(e,t,n){return e?getRightToLeftAdapter(t,n):getLeftToRightAdapter()}function overrideTextDirection(e,t){let n,i;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=i)}function restoreTextDirection(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function propertyFn(e){return e==="angle"?{between:_angleBetween,compare:_angleDiff,normalize:_normalizeAngle}:{between:_isBetween,compare:(t,n)=>t-n,normalize:t=>t}}function normalizeSegment({start:e,end:t,count:n,loop:i,style:r}){return{start:e%n,end:t%n,loop:i&&(t-e+1)%n===0,style:r}}function getSegment(e,t,n){const{property:i,start:r,end:a}=n,{between:o,normalize:l}=propertyFn(i),u=t.length;let{start:h,end:m,loop:g}=e,_,v;if(g){for(h+=u,m+=u,_=0,v=u;_<v&&o(l(t[h%u][i]),r,a);++_)h--,m--;h%=u,m%=u}return m<h&&(m+=u),{start:h,end:m,loop:g,style:e.style}}function _boundSegment(e,t,n){if(!n)return[e];const{property:i,start:r,end:a}=n,o=t.length,{compare:l,between:u,normalize:h}=propertyFn(i),{start:m,end:g,loop:_,style:v}=getSegment(e,t,n),w=[];let $=!1,x=null,M,T,R;const W=()=>u(r,R,M)&&l(r,R)!==0,V=()=>l(a,M)===0||u(a,R,M),K=()=>$||W(),U=()=>!$||V();for(let y=m,E=m;y<=g;++y)T=t[y%o],!T.skip&&(M=h(T[i]),M!==R&&($=u(M,r,a),x===null&&K()&&(x=l(M,r)===0?y:E),x!==null&&U()&&(w.push(normalizeSegment({start:x,end:y,loop:_,count:o,style:v})),x=null),E=y,R=M));return x!==null&&w.push(normalizeSegment({start:x,end:g,loop:_,count:o,style:v})),w}function _boundSegments(e,t){const n=[],i=e.segments;for(let r=0;r<i.length;r++){const a=_boundSegment(i[r],e.points,t);a.length&&n.push(...a)}return n}function findStartAndEnd(e,t,n,i){let r=0,a=t-1;if(n&&!i)for(;r<t&&!e[r].skip;)r++;for(;r<t&&e[r].skip;)r++;for(r%=t,n&&(a+=r);a>r&&e[a%t].skip;)a--;return a%=t,{start:r,end:a}}function solidSegments(e,t,n,i){const r=e.length,a=[];let o=t,l=e[t],u;for(u=t+1;u<=n;++u){const h=e[u%r];h.skip||h.stop?l.skip||(i=!1,a.push({start:t%r,end:(u-1)%r,loop:i}),t=o=h.stop?u:null):(o=u,l.skip&&(t=u)),l=h}return o!==null&&a.push({start:t%r,end:o%r,loop:i}),a}function _computeSegments(e,t){const n=e.points,i=e.options.spanGaps,r=n.length;if(!r)return[];const a=!!e._loop,{start:o,end:l}=findStartAndEnd(n,r,a,i);if(i===!0)return splitByStyles(e,[{start:o,end:l,loop:a}],n,t);const u=l<o?l+r:l,h=!!e._fullLoop&&o===0&&l===r-1;return splitByStyles(e,solidSegments(n,o,u,h),n,t)}function splitByStyles(e,t,n,i){return!i||!i.setContext||!n?t:doSplitByStyles(e,t,n,i)}function doSplitByStyles(e,t,n,i){const r=e._chart.getContext(),a=readStyle(e.options),{_datasetIndex:o,options:{spanGaps:l}}=e,u=n.length,h=[];let m=a,g=t[0].start,_=g;function v(w,$,x,M){const T=l?-1:1;if(w!==$){for(w+=u;n[w%u].skip;)w-=T;for(;n[$%u].skip;)$+=T;w%u!==$%u&&(h.push({start:w%u,end:$%u,loop:x,style:M}),m=M,g=$%u)}}for(const w of t){g=l?g:w.start;let $=n[g%u],x;for(_=g+1;_<=w.end;_++){const M=n[_%u];x=readStyle(i.setContext(createContext(r,{type:"segment",p0:$,p1:M,p0DataIndex:(_-1)%u,p1DataIndex:_%u,datasetIndex:o}))),styleChanged(x,m)&&v(g,_-1,w.loop,m),$=M,m=x}g<_-1&&v(g,_-1,w.loop,m)}return h}function readStyle(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function styleChanged(e,t){if(!t)return!1;const n=[],i=function(r,a){return isPatternOrGradient(a)?(n.includes(a)||n.push(a),n.indexOf(a)):a};return JSON.stringify(e,i)!==JSON.stringify(t,i)}/*!
+ */function noop$2(){}const uid=(()=>{let e=0;return()=>e++})();function isNullOrUndef(e){return e===null||typeof e>"u"}function isArray$b(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function isObject$8(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function isNumberFinite(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function finiteOrDefault(e,t){return isNumberFinite(e)?e:t}function valueOrDefault(e,t){return typeof e>"u"?t:e}const toPercentage=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,toDimension=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function callback(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function each(e,t,n,i){let r,a,o;if(isArray$b(e))if(a=e.length,i)for(r=a-1;r>=0;r--)t.call(n,e[r],r);else for(r=0;r<a;r++)t.call(n,e[r],r);else if(isObject$8(e))for(o=Object.keys(e),a=o.length,r=0;r<a;r++)t.call(n,e[o[r]],o[r])}function _elementsEqual(e,t){let n,i,r,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(r=e[n],a=t[n],r.datasetIndex!==a.datasetIndex||r.index!==a.index)return!1;return!0}function clone$1(e){if(isArray$b(e))return e.map(clone$1);if(isObject$8(e)){const t=Object.create(null),n=Object.keys(e),i=n.length;let r=0;for(;r<i;++r)t[n[r]]=clone$1(e[n[r]]);return t}return e}function isValidKey(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function _merger(e,t,n,i){if(!isValidKey(e))return;const r=t[e],a=n[e];isObject$8(r)&&isObject$8(a)?merge(r,a,i):t[e]=clone$1(a)}function merge(e,t,n){const i=isArray$b(t)?t:[t],r=i.length;if(!isObject$8(e))return e;n=n||{};const a=n.merger||_merger;let o;for(let l=0;l<r;++l){if(o=i[l],!isObject$8(o))continue;const u=Object.keys(o);for(let d=0,m=u.length;d<m;++d)a(u[d],e,o,n)}return e}function mergeIf(e,t){return merge(e,t,{merger:_mergerIf})}function _mergerIf(e,t,n){if(!isValidKey(e))return;const i=t[e],r=n[e];isObject$8(i)&&isObject$8(r)?mergeIf(i,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=clone$1(r))}const keyResolvers={"":e=>e,x:e=>e.x,y:e=>e.y};function _splitKey(e){const t=e.split("."),n=[];let i="";for(const r of t)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function _getKeyResolver(e){const t=_splitKey(e);return n=>{for(const i of t){if(i==="")break;n=n&&n[i]}return n}}function resolveObjectKey(e,t){return(keyResolvers[t]||(keyResolvers[t]=_getKeyResolver(t)))(e)}function _capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)}const defined$1=e=>typeof e<"u",isFunction$3=e=>typeof e=="function",setsEqual=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function _isClickEvent(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const PI=Math.PI,TAU=2*PI,PITAU=TAU+PI,INFINITY$5=Number.POSITIVE_INFINITY,RAD_PER_DEG=PI/180,HALF_PI=PI/2,QUARTER_PI=PI/4,TWO_THIRDS_PI=PI*2/3,log10=Math.log10,sign=Math.sign;function almostEquals(e,t,n){return Math.abs(e-t)<n}function niceNum(e){const t=Math.round(e);e=almostEquals(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(log10(e))),i=e/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function _factorize(e){const t=[],n=Math.sqrt(e);let i;for(i=1;i<n;i++)e%i===0&&(t.push(i),t.push(e/i));return n===(n|0)&&t.push(n),t.sort((r,a)=>r-a).pop(),t}function isNumber(e){return!isNaN(parseFloat(e))&&isFinite(e)}function almostWhole(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function _setMinAndMaxByKey(e,t,n){let i,r,a;for(i=0,r=e.length;i<r;i++)a=e[i][n],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function toRadians(e){return e*(PI/180)}function toDegrees(e){return e*(180/PI)}function _decimalPlaces(e){if(!isNumberFinite(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function getAngleFromPoint(e,t){const n=t.x-e.x,i=t.y-e.y,r=Math.sqrt(n*n+i*i);let a=Math.atan2(i,n);return a<-.5*PI&&(a+=TAU),{angle:a,distance:r}}function distanceBetweenPoints(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function _angleDiff(e,t){return(e-t+PITAU)%TAU-PI}function _normalizeAngle(e){return(e%TAU+TAU)%TAU}function _angleBetween(e,t,n,i){const r=_normalizeAngle(e),a=_normalizeAngle(t),o=_normalizeAngle(n),l=_normalizeAngle(a-r),u=_normalizeAngle(o-r),d=_normalizeAngle(r-a),m=_normalizeAngle(r-o);return r===a||r===o||i&&a===o||l>u&&d<m}function _limitValue(e,t,n){return Math.max(t,Math.min(n,e))}function _int16Range(e){return _limitValue(e,-32768,32767)}function _isBetween(e,t,n,i=1e-6){return e>=Math.min(t,n)-i&&e<=Math.max(t,n)+i}function _lookup(e,t,n){n=n||(o=>e[o]<t);let i=e.length-1,r=0,a;for(;i-r>1;)a=r+i>>1,n(a)?r=a:i=a;return{lo:r,hi:i}}const _lookupByKey=(e,t,n,i)=>_lookup(e,n,i?r=>{const a=e[r][t];return a<n||a===n&&e[r+1][t]===n}:r=>e[r][t]<n),_rlookupByKey=(e,t,n)=>_lookup(e,n,i=>e[i][t]>=n);function _filterBetween(e,t,n){let i=0,r=e.length;for(;i<r&&e[i]<t;)i++;for(;r>i&&e[r-1]>n;)r--;return i>0||r<e.length?e.slice(i,r):e}const arrayEvents=["push","pop","shift","splice","unshift"];function listenArrayEvents(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),arrayEvents.forEach(n=>{const i="_onData"+_capitalize(n),r=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...a){const o=r.apply(this,a);return e._chartjs.listeners.forEach(l=>{typeof l[i]=="function"&&l[i](...a)}),o}})})}function unlistenArrayEvents(e,t){const n=e._chartjs;if(!n)return;const i=n.listeners,r=i.indexOf(t);r!==-1&&i.splice(r,1),!(i.length>0)&&(arrayEvents.forEach(a=>{delete e[a]}),delete e._chartjs)}function _arrayUnique(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const requestAnimFrame=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function throttled(e,t){let n=[],i=!1;return function(...r){n=r,i||(i=!0,requestAnimFrame.call(window,()=>{i=!1,e.apply(t,n)}))}}function debounce$2(e,t){let n;return function(...i){return t?(clearTimeout(n),n=setTimeout(e,t,i)):e.apply(this,i),t}}const _toLeftRightCenter=e=>e==="start"?"left":e==="end"?"right":"center",_alignStartEnd=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,_textX=(e,t,n,i)=>e===(i?"left":"right")?n:e==="center"?(t+n)/2:t;function _getStartAndCountOfVisiblePoints(e,t,n){const i=t.length;let r=0,a=i;if(e._sorted){const{iScale:o,_parsed:l}=e,u=o.axis,{min:d,max:m,minDefined:g,maxDefined:_}=o.getUserBounds();g&&(r=_limitValue(Math.min(_lookupByKey(l,u,d).lo,n?i:_lookupByKey(t,u,o.getPixelForValue(d)).lo),0,i-1)),_?a=_limitValue(Math.max(_lookupByKey(l,o.axis,m,!0).hi+1,n?0:_lookupByKey(t,u,o.getPixelForValue(m),!0).hi+1),r,i)-r:a=i-r}return{start:r,count:a}}function _scaleRangesChanged(e){const{xScale:t,yScale:n,_scaleRanges:i}=e,r={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!i)return e._scaleRanges=r,!0;const a=i.xmin!==t.min||i.xmax!==t.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,r),a}const atEdge=e=>e===0||e===1,elasticIn=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*TAU/n)),elasticOut=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*TAU/n)+1,effects={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*HALF_PI)+1,easeOutSine:e=>Math.sin(e*HALF_PI),easeInOutSine:e=>-.5*(Math.cos(PI*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>atEdge(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>atEdge(e)?e:elasticIn(e,.075,.3),easeOutElastic:e=>atEdge(e)?e:elasticOut(e,.075,.3),easeInOutElastic(e){return atEdge(e)?e:e<.5?.5*elasticIn(e*2,.1125,.45):.5+.5*elasticOut(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-effects.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?effects.easeInBounce(e*2)*.5:effects.easeOutBounce(e*2-1)*.5+.5};function isPatternOrGradient(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function color(e){return isPatternOrGradient(e)?e:new Color(e)}function getHoverColor(e){return isPatternOrGradient(e)?e:new Color(e).saturate(.5).darken(.1).hexString()}const numbers=["x","y","borderWidth","radius","tension"],colors=["color","borderColor","backgroundColor"];function applyAnimationsDefaults(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:colors},numbers:{type:"number",properties:numbers}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function applyLayoutsDefaults(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const intlCache=new Map;function getNumberFormat(e,t){t=t||{};const n=e+JSON.stringify(t);let i=intlCache.get(n);return i||(i=new Intl.NumberFormat(e,t),intlCache.set(n,i)),i}function formatNumber$1(e,t,n){return getNumberFormat(t,n).format(e)}const formatters={values(e){return isArray$b(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const i=this.chart.options.locale;let r,a=e;if(n.length>1){const d=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(d<1e-4||d>1e15)&&(r="scientific"),a=calculateDelta(e,n)}const o=log10(Math.abs(a)),l=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),u={notation:r,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(u,this.options.ticks.format),formatNumber$1(e,i,u)},logarithmic(e,t,n){if(e===0)return"0";const i=n[t].significand||e/Math.pow(10,Math.floor(log10(e)));return[1,2,3,5,10,15].includes(i)||t>.8*n.length?formatters.numeric.call(this,e,t,n):""}};function calculateDelta(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Ticks={formatters};function applyScaleDefaults(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Ticks.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const overrides=Object.create(null),descriptors=Object.create(null);function getScope$1(e,t){if(!t)return e;const n=t.split(".");for(let i=0,r=n.length;i<r;++i){const a=n[i];e=e[a]||(e[a]=Object.create(null))}return e}function set$2(e,t,n){return typeof t=="string"?merge(getScope$1(e,t),n):merge(getScope$1(e,""),t)}class Defaults{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=i=>i.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,r)=>getHoverColor(r.backgroundColor),this.hoverBorderColor=(i,r)=>getHoverColor(r.borderColor),this.hoverColor=(i,r)=>getHoverColor(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return set$2(this,t,n)}get(t){return getScope$1(this,t)}describe(t,n){return set$2(descriptors,t,n)}override(t,n){return set$2(overrides,t,n)}route(t,n,i,r){const a=getScope$1(this,t),o=getScope$1(this,i),l="_"+n;Object.defineProperties(a,{[l]:{value:a[n],writable:!0},[n]:{enumerable:!0,get(){const u=this[l],d=o[r];return isObject$8(u)?Object.assign({},d,u):valueOrDefault(u,d)},set(u){this[l]=u}}})}apply(t){t.forEach(n=>n(this))}}var defaults=new Defaults({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[applyAnimationsDefaults,applyLayoutsDefaults,applyScaleDefaults]);function toFontString(e){return!e||isNullOrUndef(e.size)||isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function _measureText(e,t,n,i,r){let a=t[r];return a||(a=t[r]=e.measureText(r).width,n.push(r)),a>i&&(i=a),i}function _longestText(e,t,n,i){i=i||{};let r=i.data=i.data||{},a=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(r=i.data={},a=i.garbageCollect=[],i.font=t),e.save(),e.font=t;let o=0;const l=n.length;let u,d,m,g,_;for(u=0;u<l;u++)if(g=n[u],g!=null&&!isArray$b(g))o=_measureText(e,r,a,o,g);else if(isArray$b(g))for(d=0,m=g.length;d<m;d++)_=g[d],_!=null&&!isArray$b(_)&&(o=_measureText(e,r,a,o,_));e.restore();const v=a.length/2;if(v>n.length){for(u=0;u<v;u++)delete r[a[u]];a.splice(0,v)}return o}function _alignPixel(e,t,n){const i=e.currentDevicePixelRatio,r=n!==0?Math.max(n/2,.5):0;return Math.round((t-r)*i)/i+r}function clearCanvas(e,t){t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function drawPoint(e,t,n,i){drawPointLegend(e,t,n,i,null)}function drawPointLegend(e,t,n,i,r){let a,o,l,u,d,m,g,_;const v=t.pointStyle,w=t.rotation,E=t.radius;let x=(w||0)*RAD_PER_DEG;if(v&&typeof v=="object"&&(a=v.toString(),a==="[object HTMLImageElement]"||a==="[object HTMLCanvasElement]")){e.save(),e.translate(n,i),e.rotate(x),e.drawImage(v,-v.width/2,-v.height/2,v.width,v.height),e.restore();return}if(!(isNaN(E)||E<=0)){switch(e.beginPath(),v){default:r?e.ellipse(n,i,r/2,E,0,0,TAU):e.arc(n,i,E,0,TAU),e.closePath();break;case"triangle":m=r?r/2:E,e.moveTo(n+Math.sin(x)*m,i-Math.cos(x)*E),x+=TWO_THIRDS_PI,e.lineTo(n+Math.sin(x)*m,i-Math.cos(x)*E),x+=TWO_THIRDS_PI,e.lineTo(n+Math.sin(x)*m,i-Math.cos(x)*E),e.closePath();break;case"rectRounded":d=E*.516,u=E-d,o=Math.cos(x+QUARTER_PI)*u,g=Math.cos(x+QUARTER_PI)*(r?r/2-d:u),l=Math.sin(x+QUARTER_PI)*u,_=Math.sin(x+QUARTER_PI)*(r?r/2-d:u),e.arc(n-g,i-l,d,x-PI,x-HALF_PI),e.arc(n+_,i-o,d,x-HALF_PI,x),e.arc(n+g,i+l,d,x,x+HALF_PI),e.arc(n-_,i+o,d,x+HALF_PI,x+PI),e.closePath();break;case"rect":if(!w){u=Math.SQRT1_2*E,m=r?r/2:u,e.rect(n-m,i-u,2*m,2*u);break}x+=QUARTER_PI;case"rectRot":g=Math.cos(x)*(r?r/2:E),o=Math.cos(x)*E,l=Math.sin(x)*E,_=Math.sin(x)*(r?r/2:E),e.moveTo(n-g,i-l),e.lineTo(n+_,i-o),e.lineTo(n+g,i+l),e.lineTo(n-_,i+o),e.closePath();break;case"crossRot":x+=QUARTER_PI;case"cross":g=Math.cos(x)*(r?r/2:E),o=Math.cos(x)*E,l=Math.sin(x)*E,_=Math.sin(x)*(r?r/2:E),e.moveTo(n-g,i-l),e.lineTo(n+g,i+l),e.moveTo(n+_,i-o),e.lineTo(n-_,i+o);break;case"star":g=Math.cos(x)*(r?r/2:E),o=Math.cos(x)*E,l=Math.sin(x)*E,_=Math.sin(x)*(r?r/2:E),e.moveTo(n-g,i-l),e.lineTo(n+g,i+l),e.moveTo(n+_,i-o),e.lineTo(n-_,i+o),x+=QUARTER_PI,g=Math.cos(x)*(r?r/2:E),o=Math.cos(x)*E,l=Math.sin(x)*E,_=Math.sin(x)*(r?r/2:E),e.moveTo(n-g,i-l),e.lineTo(n+g,i+l),e.moveTo(n+_,i-o),e.lineTo(n-_,i+o);break;case"line":o=r?r/2:Math.cos(x)*E,l=Math.sin(x)*E,e.moveTo(n-o,i-l),e.lineTo(n+o,i+l);break;case"dash":e.moveTo(n,i),e.lineTo(n+Math.cos(x)*(r?r/2:E),i+Math.sin(x)*E);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function _isPointInArea(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function clipArea(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function unclipArea(e){e.restore()}function _steppedLineTo(e,t,n,i,r){if(!t)return e.lineTo(n.x,n.y);if(r==="middle"){const a=(t.x+n.x)/2;e.lineTo(a,t.y),e.lineTo(a,n.y)}else r==="after"!=!!i?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function _bezierCurveTo(e,t,n,i){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(i?t.cp1x:t.cp2x,i?t.cp1y:t.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function setRenderOpts(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),isNullOrUndef(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function decorateText(e,t,n,i,r){if(r.strikethrough||r.underline){const a=e.measureText(i),o=t-a.actualBoundingBoxLeft,l=t+a.actualBoundingBoxRight,u=n-a.actualBoundingBoxAscent,d=n+a.actualBoundingBoxDescent,m=r.strikethrough?(u+d)/2:d;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=r.decorationWidth||2,e.moveTo(o,m),e.lineTo(l,m),e.stroke()}}function drawBackdrop(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function renderText(e,t,n,i,r,a={}){const o=isArray$b(t)?t:[t],l=a.strokeWidth>0&&a.strokeColor!=="";let u,d;for(e.save(),e.font=r.string,setRenderOpts(e,a),u=0;u<o.length;++u)d=o[u],a.backdrop&&drawBackdrop(e,a.backdrop),l&&(a.strokeColor&&(e.strokeStyle=a.strokeColor),isNullOrUndef(a.strokeWidth)||(e.lineWidth=a.strokeWidth),e.strokeText(d,n,i,a.maxWidth)),e.fillText(d,n,i,a.maxWidth),decorateText(e,n,i,d,a),i+=Number(r.lineHeight);e.restore()}function addRoundedRectPath(e,t){const{x:n,y:i,w:r,h:a,radius:o}=t;e.arc(n+o.topLeft,i+o.topLeft,o.topLeft,1.5*PI,PI,!0),e.lineTo(n,i+a-o.bottomLeft),e.arc(n+o.bottomLeft,i+a-o.bottomLeft,o.bottomLeft,PI,HALF_PI,!0),e.lineTo(n+r-o.bottomRight,i+a),e.arc(n+r-o.bottomRight,i+a-o.bottomRight,o.bottomRight,HALF_PI,0,!0),e.lineTo(n+r,i+o.topRight),e.arc(n+r-o.topRight,i+o.topRight,o.topRight,0,-HALF_PI,!0),e.lineTo(n+o.topLeft,i)}const LINE_HEIGHT=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,FONT_STYLE=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function toLineHeight(e,t){const n=(""+e).match(LINE_HEIGHT);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const numberOrZero=e=>+e||0;function _readValueToProps(e,t){const n={},i=isObject$8(t),r=i?Object.keys(t):t,a=isObject$8(e)?i?o=>valueOrDefault(e[o],e[t[o]]):o=>e[o]:()=>e;for(const o of r)n[o]=numberOrZero(a(o));return n}function toTRBL(e){return _readValueToProps(e,{top:"y",right:"x",bottom:"y",left:"x"})}function toTRBLCorners(e){return _readValueToProps(e,["topLeft","topRight","bottomLeft","bottomRight"])}function toPadding(e){const t=toTRBL(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function toFont(e,t){e=e||{},t=t||defaults.font;let n=valueOrDefault(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let i=valueOrDefault(e.style,t.style);i&&!(""+i).match(FONT_STYLE)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const r={family:valueOrDefault(e.family,t.family),lineHeight:toLineHeight(valueOrDefault(e.lineHeight,t.lineHeight),n),size:n,style:i,weight:valueOrDefault(e.weight,t.weight),string:""};return r.string=toFontString(r),r}function resolve(e,t,n,i){let r=!0,a,o,l;for(a=0,o=e.length;a<o;++a)if(l=e[a],l!==void 0&&(t!==void 0&&typeof l=="function"&&(l=l(t),r=!1),n!==void 0&&isArray$b(l)&&(l=l[n%l.length],r=!1),l!==void 0))return i&&!r&&(i.cacheable=!1),l}function _addGrace(e,t,n){const{min:i,max:r}=e,a=toDimension(t,(r-i)/2),o=(l,u)=>n&&l===0?0:l+u;return{min:o(i,-Math.abs(a)),max:o(r,a)}}function createContext(e,t){return Object.assign(Object.create(e),t)}function _createResolver(e,t=[""],n,i,r=()=>e[0]){const a=n||e;typeof i>"u"&&(i=_resolve("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:i,_getTarget:r,override:l=>_createResolver([l,...e],t,a,i)};return new Proxy(o,{deleteProperty(l,u){return delete l[u],delete l._keys,delete e[0][u],!0},get(l,u){return _cached(l,u,()=>_resolveWithPrefixes(u,t,e,l))},getOwnPropertyDescriptor(l,u){return Reflect.getOwnPropertyDescriptor(l._scopes[0],u)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(l,u){return getKeysFromAllScopes(l).includes(u)},ownKeys(l){return getKeysFromAllScopes(l)},set(l,u,d){const m=l._storage||(l._storage=r());return l[u]=m[u]=d,delete l._keys,!0}})}function _attachContext(e,t,n,i){const r={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:_descriptors(e,i),setContext:a=>_attachContext(e,a,n,i),override:a=>_attachContext(e.override(a),t,n,i)};return new Proxy(r,{deleteProperty(a,o){return delete a[o],delete e[o],!0},get(a,o,l){return _cached(a,o,()=>_resolveWithContext(a,o,l))},getOwnPropertyDescriptor(a,o){return a._descriptors.allKeys?Reflect.has(e,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,o)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(a,o){return Reflect.has(e,o)},ownKeys(){return Reflect.ownKeys(e)},set(a,o,l){return e[o]=l,delete a[o],!0}})}function _descriptors(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:i=t.indexable,_allKeys:r=t.allKeys}=e;return{allKeys:r,scriptable:n,indexable:i,isScriptable:isFunction$3(n)?n:()=>n,isIndexable:isFunction$3(i)?i:()=>i}}const readKey=(e,t)=>e?e+_capitalize(t):t,needsSubResolver=(e,t)=>isObject$8(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function _cached(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const i=n();return e[t]=i,i}function _resolveWithContext(e,t,n){const{_proxy:i,_context:r,_subProxy:a,_descriptors:o}=e;let l=i[t];return isFunction$3(l)&&o.isScriptable(t)&&(l=_resolveScriptable(t,l,e,n)),isArray$b(l)&&l.length&&(l=_resolveArray(t,l,e,o.isIndexable)),needsSubResolver(t,l)&&(l=_attachContext(l,r,a&&a[t],o)),l}function _resolveScriptable(e,t,n,i){const{_proxy:r,_context:a,_subProxy:o,_stack:l}=n;if(l.has(e))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+e);l.add(e);let u=t(a,o||i);return l.delete(e),needsSubResolver(e,u)&&(u=createSubResolver(r._scopes,r,e,u)),u}function _resolveArray(e,t,n,i){const{_proxy:r,_context:a,_subProxy:o,_descriptors:l}=n;if(typeof a.index<"u"&&i(e))return t[a.index%t.length];if(isObject$8(t[0])){const u=t,d=r._scopes.filter(m=>m!==u);t=[];for(const m of u){const g=createSubResolver(d,r,e,m);t.push(_attachContext(g,a,o&&o[e],l))}}return t}function resolveFallback(e,t,n){return isFunction$3(e)?e(t,n):e}const getScope=(e,t)=>e===!0?t:typeof e=="string"?resolveObjectKey(t,e):void 0;function addScopes(e,t,n,i,r){for(const a of t){const o=getScope(n,a);if(o){e.add(o);const l=resolveFallback(o._fallback,n,r);if(typeof l<"u"&&l!==n&&l!==i)return l}else if(o===!1&&typeof i<"u"&&n!==i)return null}return!1}function createSubResolver(e,t,n,i){const r=t._rootScopes,a=resolveFallback(t._fallback,n,i),o=[...e,...r],l=new Set;l.add(i);let u=addScopesFromKey(l,o,n,a||n,i);return u===null||typeof a<"u"&&a!==n&&(u=addScopesFromKey(l,o,a,u,i),u===null)?!1:_createResolver(Array.from(l),[""],r,a,()=>subGetTarget(t,n,i))}function addScopesFromKey(e,t,n,i,r){for(;n;)n=addScopes(e,t,n,i,r);return n}function subGetTarget(e,t,n){const i=e._getTarget();t in i||(i[t]={});const r=i[t];return isArray$b(r)&&isObject$8(n)?n:r||{}}function _resolveWithPrefixes(e,t,n,i){let r;for(const a of t)if(r=_resolve(readKey(a,e),n),typeof r<"u")return needsSubResolver(e,r)?createSubResolver(n,i,e,r):r}function _resolve(e,t){for(const n of t){if(!n)continue;const i=n[e];if(typeof i<"u")return i}}function getKeysFromAllScopes(e){let t=e._keys;return t||(t=e._keys=resolveKeysFromAllScopes(e._scopes)),t}function resolveKeysFromAllScopes(e){const t=new Set;for(const n of e)for(const i of Object.keys(n).filter(r=>!r.startsWith("_")))t.add(i);return Array.from(t)}function _parseObjectDataRadialScale(e,t,n,i){const{iScale:r}=e,{key:a="r"}=this._parsing,o=new Array(i);let l,u,d,m;for(l=0,u=i;l<u;++l)d=l+n,m=t[d],o[l]={r:r.parse(resolveObjectKey(m,a),d)};return o}const EPSILON=Number.EPSILON||1e-14,getPoint=(e,t)=>t<e.length&&!e[t].skip&&e[t],getValueAxis=e=>e==="x"?"y":"x";function splineCurve(e,t,n,i){const r=e.skip?t:e,a=t,o=n.skip?t:n,l=distanceBetweenPoints(a,r),u=distanceBetweenPoints(o,a);let d=l/(l+u),m=u/(l+u);d=isNaN(d)?0:d,m=isNaN(m)?0:m;const g=i*d,_=i*m;return{previous:{x:a.x-g*(o.x-r.x),y:a.y-g*(o.y-r.y)},next:{x:a.x+_*(o.x-r.x),y:a.y+_*(o.y-r.y)}}}function monotoneAdjust(e,t,n){const i=e.length;let r,a,o,l,u,d=getPoint(e,0);for(let m=0;m<i-1;++m)if(u=d,d=getPoint(e,m+1),!(!u||!d)){if(almostEquals(t[m],0,EPSILON)){n[m]=n[m+1]=0;continue}r=n[m]/t[m],a=n[m+1]/t[m],l=Math.pow(r,2)+Math.pow(a,2),!(l<=9)&&(o=3/Math.sqrt(l),n[m]=r*o*t[m],n[m+1]=a*o*t[m])}}function monotoneCompute(e,t,n="x"){const i=getValueAxis(n),r=e.length;let a,o,l,u=getPoint(e,0);for(let d=0;d<r;++d){if(o=l,l=u,u=getPoint(e,d+1),!l)continue;const m=l[n],g=l[i];o&&(a=(m-o[n])/3,l[`cp1${n}`]=m-a,l[`cp1${i}`]=g-a*t[d]),u&&(a=(u[n]-m)/3,l[`cp2${n}`]=m+a,l[`cp2${i}`]=g+a*t[d])}}function splineCurveMonotone(e,t="x"){const n=getValueAxis(t),i=e.length,r=Array(i).fill(0),a=Array(i);let o,l,u,d=getPoint(e,0);for(o=0;o<i;++o)if(l=u,u=d,d=getPoint(e,o+1),!!u){if(d){const m=d[t]-u[t];r[o]=m!==0?(d[n]-u[n])/m:0}a[o]=l?d?sign(r[o-1])!==sign(r[o])?0:(r[o-1]+r[o])/2:r[o-1]:r[o]}monotoneAdjust(e,r,a),monotoneCompute(e,a,t)}function capControlPoint(e,t,n){return Math.max(Math.min(e,n),t)}function capBezierPoints(e,t){let n,i,r,a,o,l=_isPointInArea(e[0],t);for(n=0,i=e.length;n<i;++n)o=a,a=l,l=n<i-1&&_isPointInArea(e[n+1],t),a&&(r=e[n],o&&(r.cp1x=capControlPoint(r.cp1x,t.left,t.right),r.cp1y=capControlPoint(r.cp1y,t.top,t.bottom)),l&&(r.cp2x=capControlPoint(r.cp2x,t.left,t.right),r.cp2y=capControlPoint(r.cp2y,t.top,t.bottom)))}function _updateBezierControlPoints(e,t,n,i,r){let a,o,l,u;if(t.spanGaps&&(e=e.filter(d=>!d.skip)),t.cubicInterpolationMode==="monotone")splineCurveMonotone(e,r);else{let d=i?e[e.length-1]:e[0];for(a=0,o=e.length;a<o;++a)l=e[a],u=splineCurve(d,l,e[Math.min(a+1,o-(i?0:1))%o],t.tension),l.cp1x=u.previous.x,l.cp1y=u.previous.y,l.cp2x=u.next.x,l.cp2y=u.next.y,d=l}t.capBezierPoints&&capBezierPoints(e,n)}function _isDomSupported(){return typeof window<"u"&&typeof document<"u"}function _getParentNode(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function parseMaxStyle(e,t,n){let i;return typeof e=="string"?(i=parseInt(e,10),e.indexOf("%")!==-1&&(i=i/100*t.parentNode[n])):i=e,i}const getComputedStyle$1=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function getStyle(e,t){return getComputedStyle$1(e).getPropertyValue(t)}const positions=["top","right","bottom","left"];function getPositionedStyle(e,t,n){const i={};n=n?"-"+n:"";for(let r=0;r<4;r++){const a=positions[r];i[a]=parseFloat(e[t+"-"+a+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const useOffsetPos=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function getCanvasPosition(e,t){const n=e.touches,i=n&&n.length?n[0]:e,{offsetX:r,offsetY:a}=i;let o=!1,l,u;if(useOffsetPos(r,a,e.target))l=r,u=a;else{const d=t.getBoundingClientRect();l=i.clientX-d.left,u=i.clientY-d.top,o=!0}return{x:l,y:u,box:o}}function getRelativePosition(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:i}=t,r=getComputedStyle$1(n),a=r.boxSizing==="border-box",o=getPositionedStyle(r,"padding"),l=getPositionedStyle(r,"border","width"),{x:u,y:d,box:m}=getCanvasPosition(e,n),g=o.left+(m&&l.left),_=o.top+(m&&l.top);let{width:v,height:w}=t;return a&&(v-=o.width+l.width,w-=o.height+l.height),{x:Math.round((u-g)/v*n.width/i),y:Math.round((d-_)/w*n.height/i)}}function getContainerSize(e,t,n){let i,r;if(t===void 0||n===void 0){const a=_getParentNode(e);if(!a)t=e.clientWidth,n=e.clientHeight;else{const o=a.getBoundingClientRect(),l=getComputedStyle$1(a),u=getPositionedStyle(l,"border","width"),d=getPositionedStyle(l,"padding");t=o.width-d.width-u.width,n=o.height-d.height-u.height,i=parseMaxStyle(l.maxWidth,a,"clientWidth"),r=parseMaxStyle(l.maxHeight,a,"clientHeight")}}return{width:t,height:n,maxWidth:i||INFINITY$5,maxHeight:r||INFINITY$5}}const round1=e=>Math.round(e*10)/10;function getMaximumSize(e,t,n,i){const r=getComputedStyle$1(e),a=getPositionedStyle(r,"margin"),o=parseMaxStyle(r.maxWidth,e,"clientWidth")||INFINITY$5,l=parseMaxStyle(r.maxHeight,e,"clientHeight")||INFINITY$5,u=getContainerSize(e,t,n);let{width:d,height:m}=u;if(r.boxSizing==="content-box"){const _=getPositionedStyle(r,"border","width"),v=getPositionedStyle(r,"padding");d-=v.width+_.width,m-=v.height+_.height}return d=Math.max(0,d-a.width),m=Math.max(0,i?d/i:m-a.height),d=round1(Math.min(d,o,u.maxWidth)),m=round1(Math.min(m,l,u.maxHeight)),d&&!m&&(m=round1(d/2)),(t!==void 0||n!==void 0)&&i&&u.height&&m>u.height&&(m=u.height,d=round1(Math.floor(m*i))),{width:d,height:m}}function retinaScale(e,t,n){const i=t||1,r=Math.floor(e.height*i),a=Math.floor(e.width*i);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==i||o.height!==r||o.width!==a?(e.currentDevicePixelRatio=i,o.height=r,o.width=a,e.ctx.setTransform(i,0,0,i,0,0),!0):!1}const supportsEventListenerOptions=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};_isDomSupported()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function readUsedSize(e,t){const n=getStyle(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function _pointInLine(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function _steppedInterpolation(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:i==="middle"?n<.5?e.y:t.y:i==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function _bezierInterpolation(e,t,n,i){const r={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=_pointInLine(e,r,n),l=_pointInLine(r,a,n),u=_pointInLine(a,t,n),d=_pointInLine(o,l,n),m=_pointInLine(l,u,n);return _pointInLine(d,m,n)}const getRightToLeftAdapter=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,i){return n-i},leftForLtr(n,i){return n-i}}},getLeftToRightAdapter=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function getRtlAdapter(e,t,n){return e?getRightToLeftAdapter(t,n):getLeftToRightAdapter()}function overrideTextDirection(e,t){let n,i;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=i)}function restoreTextDirection(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function propertyFn(e){return e==="angle"?{between:_angleBetween,compare:_angleDiff,normalize:_normalizeAngle}:{between:_isBetween,compare:(t,n)=>t-n,normalize:t=>t}}function normalizeSegment({start:e,end:t,count:n,loop:i,style:r}){return{start:e%n,end:t%n,loop:i&&(t-e+1)%n===0,style:r}}function getSegment(e,t,n){const{property:i,start:r,end:a}=n,{between:o,normalize:l}=propertyFn(i),u=t.length;let{start:d,end:m,loop:g}=e,_,v;if(g){for(d+=u,m+=u,_=0,v=u;_<v&&o(l(t[d%u][i]),r,a);++_)d--,m--;d%=u,m%=u}return m<d&&(m+=u),{start:d,end:m,loop:g,style:e.style}}function _boundSegment(e,t,n){if(!n)return[e];const{property:i,start:r,end:a}=n,o=t.length,{compare:l,between:u,normalize:d}=propertyFn(i),{start:m,end:g,loop:_,style:v}=getSegment(e,t,n),w=[];let E=!1,x=null,M,S,R;const W=()=>u(r,R,M)&&l(r,R)!==0,V=()=>l(a,M)===0||u(a,R,M),q=()=>E||W(),U=()=>!E||V();for(let y=m,$=m;y<=g;++y)S=t[y%o],!S.skip&&(M=d(S[i]),M!==R&&(E=u(M,r,a),x===null&&q()&&(x=l(M,r)===0?y:$),x!==null&&U()&&(w.push(normalizeSegment({start:x,end:y,loop:_,count:o,style:v})),x=null),$=y,R=M));return x!==null&&w.push(normalizeSegment({start:x,end:g,loop:_,count:o,style:v})),w}function _boundSegments(e,t){const n=[],i=e.segments;for(let r=0;r<i.length;r++){const a=_boundSegment(i[r],e.points,t);a.length&&n.push(...a)}return n}function findStartAndEnd(e,t,n,i){let r=0,a=t-1;if(n&&!i)for(;r<t&&!e[r].skip;)r++;for(;r<t&&e[r].skip;)r++;for(r%=t,n&&(a+=r);a>r&&e[a%t].skip;)a--;return a%=t,{start:r,end:a}}function solidSegments(e,t,n,i){const r=e.length,a=[];let o=t,l=e[t],u;for(u=t+1;u<=n;++u){const d=e[u%r];d.skip||d.stop?l.skip||(i=!1,a.push({start:t%r,end:(u-1)%r,loop:i}),t=o=d.stop?u:null):(o=u,l.skip&&(t=u)),l=d}return o!==null&&a.push({start:t%r,end:o%r,loop:i}),a}function _computeSegments(e,t){const n=e.points,i=e.options.spanGaps,r=n.length;if(!r)return[];const a=!!e._loop,{start:o,end:l}=findStartAndEnd(n,r,a,i);if(i===!0)return splitByStyles(e,[{start:o,end:l,loop:a}],n,t);const u=l<o?l+r:l,d=!!e._fullLoop&&o===0&&l===r-1;return splitByStyles(e,solidSegments(n,o,u,d),n,t)}function splitByStyles(e,t,n,i){return!i||!i.setContext||!n?t:doSplitByStyles(e,t,n,i)}function doSplitByStyles(e,t,n,i){const r=e._chart.getContext(),a=readStyle(e.options),{_datasetIndex:o,options:{spanGaps:l}}=e,u=n.length,d=[];let m=a,g=t[0].start,_=g;function v(w,E,x,M){const S=l?-1:1;if(w!==E){for(w+=u;n[w%u].skip;)w-=S;for(;n[E%u].skip;)E+=S;w%u!==E%u&&(d.push({start:w%u,end:E%u,loop:x,style:M}),m=M,g=E%u)}}for(const w of t){g=l?g:w.start;let E=n[g%u],x;for(_=g+1;_<=w.end;_++){const M=n[_%u];x=readStyle(i.setContext(createContext(r,{type:"segment",p0:E,p1:M,p0DataIndex:(_-1)%u,p1DataIndex:_%u,datasetIndex:o}))),styleChanged(x,m)&&v(g,_-1,w.loop,m),E=M,m=x}g<_-1&&v(g,_-1,w.loop,m)}return d}function readStyle(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function styleChanged(e,t){if(!t)return!1;const n=[],i=function(r,a){return isPatternOrGradient(a)?(n.includes(a)||n.push(a),n.indexOf(a)):a};return JSON.stringify(e,i)!==JSON.stringify(t,i)}/*!
* Chart.js v4.4.1
* https://www.chartjs.org
* (c) 2023 Chart.js Contributors
* Released under the MIT License
- */class Animator{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,i,r){const a=n.listeners[r],o=n.duration;a.forEach(l=>l({chart:t,initial:n.initial,numSteps:o,currentStep:Math.min(i-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=requestAnimFrame.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((i,r)=>{if(!i.running||!i.items.length)return;const a=i.items;let o=a.length-1,l=!1,u;for(;o>=0;--o)u=a[o],u._active?(u._total>i.duration&&(i.duration=u._total),u.tick(t),l=!0):(a[o]=a[a.length-1],a.pop());l&&(r.draw(),this._notify(r,i,t,"progress")),a.length||(i.running=!1,this._notify(r,i,t,"complete"),i.initial=!1),n+=a.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let i=n.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,i)),i}listen(t,n,i){this._getAnims(t).listeners[n].push(i)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((i,r)=>Math.max(i,r._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const i=n.items;let r=i.length-1;for(;r>=0;--r)i[r].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var animator=new Animator;const transparent="transparent",interpolators={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const i=color(e||transparent),r=i.valid&&color(t||transparent);return r&&r.valid?r.mix(i,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class Animation{constructor(t,n,i,r){const a=n[i];r=resolve([t.to,r,a,t.from]);const o=resolve([t.from,a,r]);this._active=!0,this._fn=t.fn||interpolators[t.type||typeof o],this._easing=effects[t.easing]||effects.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=i,this._from=o,this._to=r,this._promises=void 0}active(){return this._active}update(t,n,i){if(this._active){this._notify(!1);const r=this._target[this._prop],a=i-this._start,o=this._duration-a;this._start=i,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=resolve([t.to,n,r,t.from]),this._from=resolve([t.from,r,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,i=this._duration,r=this._prop,a=this._from,o=this._loop,l=this._to;let u;if(this._active=a!==l&&(o||n<i),!this._active){this._target[r]=l,this._notify(!0);return}if(n<0){this._target[r]=a;return}u=n/i%2,u=o&&u>1?2-u:u,u=this._easing(Math.min(1,Math.max(0,u))),this._target[r]=this._fn(a,l,u)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,i)=>{t.push({res:n,rej:i})})}_notify(t){const n=t?"res":"rej",i=this._promises||[];for(let r=0;r<i.length;r++)i[r][n]()}}class Animations{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!isObject$8(t))return;const n=Object.keys(defaults.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach(r=>{const a=t[r];if(!isObject$8(a))return;const o={};for(const l of n)o[l]=a[l];(isArray$b(a.properties)&&a.properties||[r]).forEach(l=>{(l===r||!i.has(l))&&i.set(l,o)})})}_animateOptions(t,n){const i=n.options,r=resolveTargetOptions(t,i);if(!r)return[];const a=this._createAnimations(r,i);return i.$shared&&awaitAll(t.options.$animations,i).then(()=>{t.options=i},()=>{}),a}_createAnimations(t,n){const i=this._properties,r=[],a=t.$animations||(t.$animations={}),o=Object.keys(n),l=Date.now();let u;for(u=o.length-1;u>=0;--u){const h=o[u];if(h.charAt(0)==="$")continue;if(h==="options"){r.push(...this._animateOptions(t,n));continue}const m=n[h];let g=a[h];const _=i.get(h);if(g)if(_&&g.active()){g.update(_,m,l);continue}else g.cancel();if(!_||!_.duration){t[h]=m;continue}a[h]=g=new Animation(_,t,h,m),r.push(g)}return r}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const i=this._createAnimations(t,n);if(i.length)return animator.add(this._chart,i),!0}}function awaitAll(e,t){const n=[],i=Object.keys(t);for(let r=0;r<i.length;r++){const a=e[i[r]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}function resolveTargetOptions(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function scaleClip(e,t){const n=e&&e.options||{},i=n.reverse,r=n.min===void 0?t:0,a=n.max===void 0?t:0;return{start:i?a:r,end:i?r:a}}function defaultClip(e,t,n){if(n===!1)return!1;const i=scaleClip(e,n),r=scaleClip(t,n);return{top:r.end,right:i.end,bottom:r.start,left:i.start}}function toClip(e){let t,n,i,r;return isObject$8(e)?(t=e.top,n=e.right,i=e.bottom,r=e.left):t=n=i=r=e,{top:t,right:n,bottom:i,left:r,disabled:e===!1}}function getSortedDatasetIndices(e,t){const n=[],i=e._getSortedDatasetMetas(t);let r,a;for(r=0,a=i.length;r<a;++r)n.push(i[r].index);return n}function applyStack(e,t,n,i={}){const r=e.keys,a=i.mode==="single";let o,l,u,h;if(t!==null){for(o=0,l=r.length;o<l;++o){if(u=+r[o],u===n){if(i.all)continue;break}h=e.values[u],isNumberFinite(h)&&(a||t===0||sign(t)===sign(h))&&(t+=h)}return t}}function convertObjectDataToArray(e){const t=Object.keys(e),n=new Array(t.length);let i,r,a;for(i=0,r=t.length;i<r;++i)a=t[i],n[i]={x:a,y:e[a]};return n}function isStacked(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function getStackKey(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function getUserBounds(e){const{min:t,max:n,minDefined:i,maxDefined:r}=e.getUserBounds();return{min:i?t:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}function getOrCreateStack(e,t,n){const i=e[t]||(e[t]={});return i[n]||(i[n]={})}function getLastIndexInStack(e,t,n,i){for(const r of t.getMatchingVisibleMetas(i).reverse()){const a=e[r.index];if(n&&a>0||!n&&a<0)return r.index}return null}function updateStacks(e,t){const{chart:n,_cachedMeta:i}=e,r=n._stacks||(n._stacks={}),{iScale:a,vScale:o,index:l}=i,u=a.axis,h=o.axis,m=getStackKey(a,o,i),g=t.length;let _;for(let v=0;v<g;++v){const w=t[v],{[u]:$,[h]:x}=w,M=w._stacks||(w._stacks={});_=M[h]=getOrCreateStack(r,m,$),_[l]=x,_._top=getLastIndexInStack(_,o,!0,i.type),_._bottom=getLastIndexInStack(_,o,!1,i.type);const T=_._visualValues||(_._visualValues={});T[l]=x}}function getFirstScaleId(e,t){const n=e.scales;return Object.keys(n).filter(i=>n[i].axis===t).shift()}function createDatasetContext(e,t){return createContext(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function createDataContext(e,t,n){return createContext(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function clearStacks(e,t){const n=e.controller.index,i=e.vScale&&e.vScale.axis;if(i){t=t||e._parsed;for(const r of t){const a=r._stacks;if(!a||a[i]===void 0||a[i][n]===void 0)return;delete a[i][n],a[i]._visualValues!==void 0&&a[i]._visualValues[n]!==void 0&&delete a[i]._visualValues[n]}}}const isDirectUpdateMode=e=>e==="reset"||e==="none",cloneIfNotShared=(e,t)=>t?e:Object.assign({},e),createStack=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:getSortedDatasetIndices(n,!0),values:null};class DatasetController{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=isStacked(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&clearStacks(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,i=this.getDataset(),r=(g,_,v,w)=>g==="x"?_:g==="r"?w:v,a=n.xAxisID=valueOrDefault(i.xAxisID,getFirstScaleId(t,"x")),o=n.yAxisID=valueOrDefault(i.yAxisID,getFirstScaleId(t,"y")),l=n.rAxisID=valueOrDefault(i.rAxisID,getFirstScaleId(t,"r")),u=n.indexAxis,h=n.iAxisID=r(u,a,o,l),m=n.vAxisID=r(u,o,a,l);n.xScale=this.getScaleForId(a),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(h),n.vScale=this.getScaleForId(m)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&unlistenArrayEvents(this._data,this),t._stacked&&clearStacks(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),i=this._data;if(isObject$8(n))this._data=convertObjectDataToArray(n);else if(i!==n){if(i){unlistenArrayEvents(i,this);const r=this._cachedMeta;clearStacks(r),r._parsed=[]}n&&Object.isExtensible(n)&&listenArrayEvents(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,i=this.getDataset();let r=!1;this._dataCheck();const a=n._stacked;n._stacked=isStacked(n.vScale,n),n.stack!==i.stack&&(r=!0,clearStacks(n),n.stack=i.stack),this._resyncElements(t),(r||a!==n._stacked)&&updateStacks(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:i,_data:r}=this,{iScale:a,_stacked:o}=i,l=a.axis;let u=t===0&&n===r.length?!0:i._sorted,h=t>0&&i._parsed[t-1],m,g,_;if(this._parsing===!1)i._parsed=r,i._sorted=!0,_=r;else{isArray$b(r[t])?_=this.parseArrayData(i,r,t,n):isObject$8(r[t])?_=this.parseObjectData(i,r,t,n):_=this.parsePrimitiveData(i,r,t,n);const v=()=>g[l]===null||h&&g[l]<h[l];for(m=0;m<n;++m)i._parsed[m+t]=g=_[m],u&&(v()&&(u=!1),h=g);i._sorted=u}o&&updateStacks(this,_)}parsePrimitiveData(t,n,i,r){const{iScale:a,vScale:o}=t,l=a.axis,u=o.axis,h=a.getLabels(),m=a===o,g=new Array(r);let _,v,w;for(_=0,v=r;_<v;++_)w=_+i,g[_]={[l]:m||a.parse(h[w],w),[u]:o.parse(n[w],w)};return g}parseArrayData(t,n,i,r){const{xScale:a,yScale:o}=t,l=new Array(r);let u,h,m,g;for(u=0,h=r;u<h;++u)m=u+i,g=n[m],l[u]={x:a.parse(g[0],m),y:o.parse(g[1],m)};return l}parseObjectData(t,n,i,r){const{xScale:a,yScale:o}=t,{xAxisKey:l="x",yAxisKey:u="y"}=this._parsing,h=new Array(r);let m,g,_,v;for(m=0,g=r;m<g;++m)_=m+i,v=n[_],h[m]={x:a.parse(resolveObjectKey(v,l),_),y:o.parse(resolveObjectKey(v,u),_)};return h}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,i){const r=this.chart,a=this._cachedMeta,o=n[t.axis],l={keys:getSortedDatasetIndices(r,!0),values:n._stacks[t.axis]._visualValues};return applyStack(l,o,a.index,{mode:i})}updateRangeFromParsed(t,n,i,r){const a=i[n.axis];let o=a===null?NaN:a;const l=r&&i._stacks[n.axis];r&&l&&(r.values=l,o=applyStack(r,a,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,n){const i=this._cachedMeta,r=i._parsed,a=i._sorted&&t===i.iScale,o=r.length,l=this._getOtherScale(t),u=createStack(n,i,this.chart),h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:m,max:g}=getUserBounds(l);let _,v;function w(){v=r[_];const $=v[l.axis];return!isNumberFinite(v[t.axis])||m>$||g<$}for(_=0;_<o&&!(!w()&&(this.updateRangeFromParsed(h,t,v,u),a));++_);if(a){for(_=o-1;_>=0;--_)if(!w()){this.updateRangeFromParsed(h,t,v,u);break}}return h}getAllParsedValues(t){const n=this._cachedMeta._parsed,i=[];let r,a,o;for(r=0,a=n.length;r<a;++r)o=n[r][t.axis],isNumberFinite(o)&&i.push(o);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,i=n.iScale,r=n.vScale,a=this.getParsed(t);return{label:i?""+i.getLabelForValue(a[i.axis]):"",value:r?""+r.getLabelForValue(a[r.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=toClip(valueOrDefault(this.options.clip,defaultClip(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,i=this._cachedMeta,r=i.data||[],a=n.chartArea,o=[],l=this._drawStart||0,u=this._drawCount||r.length-l,h=this.options.drawActiveElementsOnTop;let m;for(i.dataset&&i.dataset.draw(t,a,l,u),m=l;m<l+u;++m){const g=r[m];g.hidden||(g.active&&h?o.push(g):g.draw(t,a))}for(m=0;m<o.length;++m)o[m].draw(t,a)}getStyle(t,n){const i=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,n,i){const r=this.getDataset();let a;if(t>=0&&t<this._cachedMeta.data.length){const o=this._cachedMeta.data[t];a=o.$context||(o.$context=createDataContext(this.getContext(),t,o)),a.parsed=this.getParsed(t),a.raw=r.data[t],a.index=a.dataIndex=t}else a=this.$context||(this.$context=createDatasetContext(this.chart.getContext(),this.index)),a.dataset=r,a.index=a.datasetIndex=this.index;return a.active=!!n,a.mode=i,a}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",i){const r=n==="active",a=this._cachedDataOpts,o=t+"-"+n,l=a[o],u=this.enableOptionSharing&&defined$1(i);if(l)return cloneIfNotShared(l,u);const h=this.chart.config,m=h.datasetElementScopeKeys(this._type,t),g=r?[`${t}Hover`,"hover",t,""]:[t,""],_=h.getOptionScopes(this.getDataset(),m),v=Object.keys(defaults.elements[t]),w=()=>this.getContext(i,r,n),$=h.resolveNamedOptions(_,v,w,g);return $.$shared&&($.$shared=u,a[o]=Object.freeze(cloneIfNotShared($,u))),$}_resolveAnimations(t,n,i){const r=this.chart,a=this._cachedDataOpts,o=`animation-${n}`,l=a[o];if(l)return l;let u;if(r.options.animation!==!1){const m=this.chart.config,g=m.datasetAnimationScopeKeys(this._type,n),_=m.getOptionScopes(this.getDataset(),g);u=m.createResolver(_,this.getContext(t,i,n))}const h=new Animations(r,u&&u.animations);return u&&u._cacheable&&(a[o]=Object.freeze(h)),h}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||isDirectUpdateMode(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const i=this.resolveDataElementOptions(t,n),r=this._sharedOptions,a=this.getSharedOptions(i),o=this.includeOptions(n,a)||a!==r;return this.updateSharedOptions(a,n,i),{sharedOptions:a,includeOptions:o}}updateElement(t,n,i,r){isDirectUpdateMode(r)?Object.assign(t,i):this._resolveAnimations(n,r).update(t,i)}updateSharedOptions(t,n,i){t&&!isDirectUpdateMode(n)&&this._resolveAnimations(void 0,n).update(t,i)}_setStyle(t,n,i,r){t.active=r;const a=this.getStyle(n,r);this._resolveAnimations(n,i,r).update(t,{options:!r&&this.getSharedOptions(a)||a})}removeHoverStyle(t,n,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,n,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,i=this._cachedMeta.data;for(const[l,u,h]of this._syncList)this[l](u,h);this._syncList=[];const r=i.length,a=n.length,o=Math.min(a,r);o&&this.parse(0,o),a>r?this._insertElements(r,a-r,t):a<r&&this._removeElements(a,r-a)}_insertElements(t,n,i=!0){const r=this._cachedMeta,a=r.data,o=t+n;let l;const u=h=>{for(h.length+=n,l=h.length-1;l>=o;l--)h[l]=h[l-n]};for(u(a),l=t;l<o;++l)a[l]=new this.dataElementType;this._parsing&&u(r._parsed),this.parse(t,n),i&&this.updateElements(a,t,n,"reset")}updateElements(t,n,i,r){}_removeElements(t,n){const i=this._cachedMeta;if(this._parsing){const r=i._parsed.splice(t,n);i._stacked&&clearStacks(i,r)}i.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,i,r]=t;this[n](i,r)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}Y(DatasetController,"defaults",{}),Y(DatasetController,"datasetElementType",null),Y(DatasetController,"dataElementType",null);function getAllScaleValues(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let i=[];for(let r=0,a=n.length;r<a;r++)i=i.concat(n[r].controller.getAllParsedValues(e));e._cache.$bar=_arrayUnique(i.sort((r,a)=>r-a))}return e._cache.$bar}function computeMinSampleSize(e){const t=e.iScale,n=getAllScaleValues(t,e.type);let i=t._length,r,a,o,l;const u=()=>{o===32767||o===-32768||(defined$1(l)&&(i=Math.min(i,Math.abs(o-l)||i)),l=o)};for(r=0,a=n.length;r<a;++r)o=t.getPixelForValue(n[r]),u();for(l=void 0,r=0,a=t.ticks.length;r<a;++r)o=t.getPixelForTick(r),u();return i}function computeFitCategoryTraits(e,t,n,i){const r=n.barThickness;let a,o;return isNullOrUndef(r)?(a=t.min*n.categoryPercentage,o=n.barPercentage):(a=r*i,o=1),{chunk:a/i,ratio:o,start:t.pixels[e]-a/2}}function computeFlexCategoryTraits(e,t,n,i){const r=t.pixels,a=r[e];let o=e>0?r[e-1]:null,l=e<r.length-1?r[e+1]:null;const u=n.categoryPercentage;o===null&&(o=a-(l===null?t.end-t.start:l-a)),l===null&&(l=a+a-o);const h=a-(a-Math.min(o,l))/2*u;return{chunk:Math.abs(l-o)/2*u/i,ratio:n.barPercentage,start:h}}function parseFloatBar(e,t,n,i){const r=n.parse(e[0],i),a=n.parse(e[1],i),o=Math.min(r,a),l=Math.max(r,a);let u=o,h=l;Math.abs(o)>Math.abs(l)&&(u=l,h=o),t[n.axis]=h,t._custom={barStart:u,barEnd:h,start:r,end:a,min:o,max:l}}function parseValue(e,t,n,i){return isArray$b(e)?parseFloatBar(e,t,n,i):t[n.axis]=n.parse(e,i),t}function parseArrayOrPrimitive(e,t,n,i){const r=e.iScale,a=e.vScale,o=r.getLabels(),l=r===a,u=[];let h,m,g,_;for(h=n,m=n+i;h<m;++h)_=t[h],g={},g[r.axis]=l||r.parse(o[h],h),u.push(parseValue(_,g,a,h));return u}function isFloatBar(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function barSign(e,t,n){return e!==0?sign(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function borderProps(e){let t,n,i,r,a;return e.horizontal?(t=e.base>e.x,n="left",i="right"):(t=e.base<e.y,n="bottom",i="top"),t?(r="end",a="start"):(r="start",a="end"),{start:n,end:i,reverse:t,top:r,bottom:a}}function setBorderSkipped(e,t,n,i){let r=t.borderSkipped;const a={};if(!r){e.borderSkipped=a;return}if(r===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:o,end:l,reverse:u,top:h,bottom:m}=borderProps(e);r==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===i?r=h:(n._bottom||0)===i?r=m:(a[parseEdge(m,o,l,u)]=!0,r=h)),a[parseEdge(r,o,l,u)]=!0,e.borderSkipped=a}function parseEdge(e,t,n,i){return i?(e=swap(e,t,n),e=startEnd(e,n,t)):e=startEnd(e,t,n),e}function swap(e,t,n){return e===t?n:e===n?t:e}function startEnd(e,t,n){return e==="start"?t:e==="end"?n:e}function setInflateAmount(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class BarController extends DatasetController{parsePrimitiveData(t,n,i,r){return parseArrayOrPrimitive(t,n,i,r)}parseArrayData(t,n,i,r){return parseArrayOrPrimitive(t,n,i,r)}parseObjectData(t,n,i,r){const{iScale:a,vScale:o}=t,{xAxisKey:l="x",yAxisKey:u="y"}=this._parsing,h=a.axis==="x"?l:u,m=o.axis==="x"?l:u,g=[];let _,v,w,$;for(_=i,v=i+r;_<v;++_)$=n[_],w={},w[a.axis]=a.parse(resolveObjectKey($,h),_),g.push(parseValue(resolveObjectKey($,m),w,o,_));return g}updateRangeFromParsed(t,n,i,r){super.updateRangeFromParsed(t,n,i,r);const a=i._custom;a&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,a.min),t.max=Math.max(t.max,a.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:i,vScale:r}=n,a=this.getParsed(t),o=a._custom,l=isFloatBar(o)?"["+o.start+", "+o.end+"]":""+r.getLabelForValue(a[r.axis]);return{label:""+i.getLabelForValue(a[i.axis]),value:l}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,i,r){const a=r==="reset",{index:o,_cachedMeta:{vScale:l}}=this,u=l.getBasePixel(),h=l.isHorizontal(),m=this._getRuler(),{sharedOptions:g,includeOptions:_}=this._getSharedOptions(n,r);for(let v=n;v<n+i;v++){const w=this.getParsed(v),$=a||isNullOrUndef(w[l.axis])?{base:u,head:u}:this._calculateBarValuePixels(v),x=this._calculateBarIndexPixels(v,m),M=(w._stacks||{})[l.axis],T={horizontal:h,base:$.base,enableBorderRadius:!M||isFloatBar(w._custom)||o===M._top||o===M._bottom,x:h?$.head:x.center,y:h?x.center:$.head,height:h?x.size:Math.abs($.size),width:h?Math.abs($.size):x.size};_&&(T.options=g||this.resolveDataElementOptions(v,t[v].active?"active":r));const R=T.options||t[v].options;setBorderSkipped(T,R,M,o),setInflateAmount(T,R,m.ratio),this.updateElement(t[v],v,T,r)}}_getStacks(t,n){const{iScale:i}=this._cachedMeta,r=i.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),a=i.options.stacked,o=[],l=u=>{const h=u.controller.getParsed(n),m=h&&h[u.vScale.axis];if(isNullOrUndef(m)||isNaN(m))return!0};for(const u of r)if(!(n!==void 0&&l(u))&&((a===!1||o.indexOf(u.stack)===-1||a===void 0&&u.stack===void 0)&&o.push(u.stack),u.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,i){const r=this._getStacks(t,i),a=n!==void 0?r.indexOf(n):-1;return a===-1?r.length-1:a}_getRuler(){const t=this.options,n=this._cachedMeta,i=n.iScale,r=[];let a,o;for(a=0,o=n.data.length;a<o;++a)r.push(i.getPixelForValue(this.getParsed(a)[i.axis],a));const l=t.barThickness;return{min:l||computeMinSampleSize(n),pixels:r,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:l?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:i,index:r},options:{base:a,minBarLength:o}}=this,l=a||0,u=this.getParsed(t),h=u._custom,m=isFloatBar(h);let g=u[n.axis],_=0,v=i?this.applyStack(n,u,i):g,w,$;v!==g&&(_=v-g,v=g),m&&(g=h.barStart,v=h.barEnd-h.barStart,g!==0&&sign(g)!==sign(h.barEnd)&&(_=0),_+=g);const x=!isNullOrUndef(a)&&!m?a:_;let M=n.getPixelForValue(x);if(this.chart.getDataVisibility(t)?w=n.getPixelForValue(_+v):w=M,$=w-M,Math.abs($)<o){$=barSign($,n,l)*o,g===l&&(M-=$/2);const T=n.getPixelForDecimal(0),R=n.getPixelForDecimal(1),W=Math.min(T,R),V=Math.max(T,R);M=Math.max(Math.min(M,V),W),w=M+$,i&&!m&&(u._stacks[n.axis]._visualValues[r]=n.getValueForPixel(w)-n.getValueForPixel(M))}if(M===n.getPixelForValue(l)){const T=sign($)*n.getLineWidthForValue(l)/2;M+=T,$-=T}return{size:$,base:M,head:w,center:w+$/2}}_calculateBarIndexPixels(t,n){const i=n.scale,r=this.options,a=r.skipNull,o=valueOrDefault(r.maxBarThickness,1/0);let l,u;if(n.grouped){const h=a?this._getStackCount(t):n.stackCount,m=r.barThickness==="flex"?computeFlexCategoryTraits(t,n,r,h):computeFitCategoryTraits(t,n,r,h),g=this._getStackIndex(this.index,this._cachedMeta.stack,a?t:void 0);l=m.start+m.chunk*g+m.chunk/2,u=Math.min(o,m.chunk*m.ratio)}else l=i.getPixelForValue(this.getParsed(t)[i.axis],t),u=Math.min(o,n.min*n.ratio);return{base:l-u/2,head:l+u/2,center:l,size:u}}draw(){const t=this._cachedMeta,n=t.vScale,i=t.data,r=i.length;let a=0;for(;a<r;++a)this.getParsed(a)[n.axis]!==null&&i[a].draw(this._ctx)}}Y(BarController,"id","bar"),Y(BarController,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),Y(BarController,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});function getRatioAndOffset(e,t,n){let i=1,r=1,a=0,o=0;if(t<TAU){const l=e,u=l+t,h=Math.cos(l),m=Math.sin(l),g=Math.cos(u),_=Math.sin(u),v=(R,W,V)=>_angleBetween(R,l,u,!0)?1:Math.max(W,W*n,V,V*n),w=(R,W,V)=>_angleBetween(R,l,u,!0)?-1:Math.min(W,W*n,V,V*n),$=v(0,h,g),x=v(HALF_PI,m,_),M=w(PI,h,g),T=w(PI+HALF_PI,m,_);i=($-M)/2,r=(x-T)/2,a=-($+M)/2,o=-(x+T)/2}return{ratioX:i,ratioY:r,offsetX:a,offsetY:o}}class DoughnutController extends DatasetController{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const i=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=i;else{let a=u=>+i[u];if(isObject$8(i[t])){const{key:u="value"}=this._parsing;a=h=>+resolveObjectKey(i[h],u)}let o,l;for(o=t,l=t+n;o<l;++o)r._parsed[o]=a(o)}}_getRotation(){return toRadians(this.options.rotation-90)}_getCircumference(){return toRadians(this.options.circumference)}_getRotationExtents(){let t=TAU,n=-TAU;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){const r=this.chart.getDatasetMeta(i).controller,a=r._getRotation(),o=r._getCircumference();t=Math.min(t,a),n=Math.max(n,a+o)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:i}=n,r=this._cachedMeta,a=r.data,o=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,l=Math.max((Math.min(i.width,i.height)-o)/2,0),u=Math.min(toPercentage(this.options.cutout,l),1),h=this._getRingWeight(this.index),{circumference:m,rotation:g}=this._getRotationExtents(),{ratioX:_,ratioY:v,offsetX:w,offsetY:$}=getRatioAndOffset(g,m,u),x=(i.width-o)/_,M=(i.height-o)/v,T=Math.max(Math.min(x,M)/2,0),R=toDimension(this.options.radius,T),W=Math.max(R*u,0),V=(R-W)/this._getVisibleDatasetWeightTotal();this.offsetX=w*R,this.offsetY=$*R,r.total=this.calculateTotal(),this.outerRadius=R-V*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-V*h,0),this.updateElements(a,0,a.length,t)}_circumference(t,n){const i=this.options,r=this._cachedMeta,a=this._getCircumference();return n&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||r._parsed[t]===null||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*a/TAU)}updateElements(t,n,i,r){const a=r==="reset",o=this.chart,l=o.chartArea,h=o.options.animation,m=(l.left+l.right)/2,g=(l.top+l.bottom)/2,_=a&&h.animateScale,v=_?0:this.innerRadius,w=_?0:this.outerRadius,{sharedOptions:$,includeOptions:x}=this._getSharedOptions(n,r);let M=this._getRotation(),T;for(T=0;T<n;++T)M+=this._circumference(T,a);for(T=n;T<n+i;++T){const R=this._circumference(T,a),W=t[T],V={x:m+this.offsetX,y:g+this.offsetY,startAngle:M,endAngle:M+R,circumference:R,outerRadius:w,innerRadius:v};x&&(V.options=$||this.resolveDataElementOptions(T,W.active?"active":r)),M+=R,this.updateElement(W,T,V,r)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let i=0,r;for(r=0;r<n.length;r++){const a=t._parsed[r];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(r)&&!n[r].hidden&&(i+=Math.abs(a))}return i}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?TAU*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,i=this.chart,r=i.data.labels||[],a=formatNumber$1(n._parsed[t],i.options.locale);return{label:r[t]||"",value:a}}getMaxBorderWidth(t){let n=0;const i=this.chart;let r,a,o,l,u;if(!t){for(r=0,a=i.data.datasets.length;r<a;++r)if(i.isDatasetVisible(r)){o=i.getDatasetMeta(r),t=o.data,l=o.controller;break}}if(!t)return 0;for(r=0,a=t.length;r<a;++r)u=l.resolveDataElementOptions(r),u.borderAlign!=="inner"&&(n=Math.max(n,u.borderWidth||0,u.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let i=0,r=t.length;i<r;++i){const a=this.resolveDataElementOptions(i);n=Math.max(n,a.offset||0,a.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(n+=this._getRingWeight(i));return n}_getRingWeight(t){return Math.max(valueOrDefault(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Y(DoughnutController,"id","doughnut"),Y(DoughnutController,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),Y(DoughnutController,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),Y(DoughnutController,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:i,color:r}}=t.legend.options;return n.labels.map((a,o)=>{const u=t.getDatasetMeta(0).controller.getStyle(o);return{text:a,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,fontColor:r,lineWidth:u.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}}});class LineController extends DatasetController{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:i,data:r=[],_dataset:a}=n,o=this.chart._animationsDisabled;let{start:l,count:u}=_getStartAndCountOfVisiblePoints(n,r,o);this._drawStart=l,this._drawCount=u,_scaleRangesChanged(n)&&(l=0,u=r.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!a._decimated,i.points=r;const h=this.resolveDatasetElementOptions(t);this.options.showLine||(h.borderWidth=0),h.segment=this.options.segment,this.updateElement(i,void 0,{animated:!o,options:h},t),this.updateElements(r,l,u,t)}updateElements(t,n,i,r){const a=r==="reset",{iScale:o,vScale:l,_stacked:u,_dataset:h}=this._cachedMeta,{sharedOptions:m,includeOptions:g}=this._getSharedOptions(n,r),_=o.axis,v=l.axis,{spanGaps:w,segment:$}=this.options,x=isNumber(w)?w:Number.POSITIVE_INFINITY,M=this.chart._animationsDisabled||a||r==="none",T=n+i,R=t.length;let W=n>0&&this.getParsed(n-1);for(let V=0;V<R;++V){const K=t[V],U=M?K:{};if(V<n||V>=T){U.skip=!0;continue}const y=this.getParsed(V),E=isNullOrUndef(y[v]),S=U[_]=o.getPixelForValue(y[_],V),O=U[v]=a||E?l.getBasePixel():l.getPixelForValue(u?this.applyStack(l,y,u):y[v],V);U.skip=isNaN(S)||isNaN(O)||E,U.stop=V>0&&Math.abs(y[_]-W[_])>x,$&&(U.parsed=y,U.raw=h.data[V]),g&&(U.options=m||this.resolveDataElementOptions(V,K.active?"active":r)),M||this.updateElement(K,V,U,r),W=y}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,i=n.options&&n.options.borderWidth||0,r=t.data||[];if(!r.length)return i;const a=r[0].size(this.resolveDataElementOptions(0)),o=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(i,a,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Y(LineController,"id","line"),Y(LineController,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),Y(LineController,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class PolarAreaController extends DatasetController{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,i=this.chart,r=i.data.labels||[],a=formatNumber$1(n._parsed[t].r,i.options.locale);return{label:r[t]||"",value:a}}parseObjectData(t,n,i,r){return _parseObjectDataRadialScale.bind(this)(t,n,i,r)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((i,r)=>{const a=this.getParsed(r).r;!isNaN(a)&&this.chart.getDataVisibility(r)&&(a<n.min&&(n.min=a),a>n.max&&(n.max=a))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,i=t.options,r=Math.min(n.right-n.left,n.bottom-n.top),a=Math.max(r/2,0),o=Math.max(i.cutoutPercentage?a/100*i.cutoutPercentage:1,0),l=(a-o)/t.getVisibleDatasetCount();this.outerRadius=a-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(t,n,i,r){const a=r==="reset",o=this.chart,u=o.options.animation,h=this._cachedMeta.rScale,m=h.xCenter,g=h.yCenter,_=h.getIndexAngle(0)-.5*PI;let v=_,w;const $=360/this.countVisibleElements();for(w=0;w<n;++w)v+=this._computeAngle(w,r,$);for(w=n;w<n+i;w++){const x=t[w];let M=v,T=v+this._computeAngle(w,r,$),R=o.getDataVisibility(w)?h.getDistanceFromCenterForValue(this.getParsed(w).r):0;v=T,a&&(u.animateScale&&(R=0),u.animateRotate&&(M=T=_));const W={x:m,y:g,innerRadius:0,outerRadius:R,startAngle:M,endAngle:T,options:this.resolveDataElementOptions(w,x.active?"active":r)};this.updateElement(x,w,W,r)}}countVisibleElements(){const t=this._cachedMeta;let n=0;return t.data.forEach((i,r)=>{!isNaN(this.getParsed(r).r)&&this.chart.getDataVisibility(r)&&n++}),n}_computeAngle(t,n,i){return this.chart.getDataVisibility(t)?toRadians(this.resolveDataElementOptions(t,n).angle||i):0}}Y(PolarAreaController,"id","polarArea"),Y(PolarAreaController,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),Y(PolarAreaController,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:i,color:r}}=t.legend.options;return n.labels.map((a,o)=>{const u=t.getDatasetMeta(0).controller.getStyle(o);return{text:a,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,fontColor:r,lineWidth:u.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class PieController extends DoughnutController{}Y(PieController,"id","pie"),Y(PieController,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});function abstract(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class DateAdapterBase{constructor(t){Y(this,"options");this.options=t||{}}static override(t){Object.assign(DateAdapterBase.prototype,t)}init(){}formats(){return abstract()}parse(){return abstract()}format(){return abstract()}add(){return abstract()}diff(){return abstract()}startOf(){return abstract()}endOf(){return abstract()}}var adapters={_date:DateAdapterBase};function binarySearch(e,t,n,i){const{controller:r,data:a,_sorted:o}=e,l=r._cachedMeta.iScale;if(l&&t===l.axis&&t!=="r"&&o&&a.length){const u=l._reversePixels?_rlookupByKey:_lookupByKey;if(i){if(r._sharedOptions){const h=a[0],m=typeof h.getRange=="function"&&h.getRange(t);if(m){const g=u(a,t,n-m),_=u(a,t,n+m);return{lo:g.lo,hi:_.hi}}}}else return u(a,t,n)}return{lo:0,hi:a.length-1}}function evaluateInteractionItems(e,t,n,i,r){const a=e.getSortedVisibleDatasetMetas(),o=n[t];for(let l=0,u=a.length;l<u;++l){const{index:h,data:m}=a[l],{lo:g,hi:_}=binarySearch(a[l],t,o,r);for(let v=g;v<=_;++v){const w=m[v];w.skip||i(w,h,v)}}}function getDistanceMetricForAxis(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(i,r){const a=t?Math.abs(i.x-r.x):0,o=n?Math.abs(i.y-r.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(o,2))}}function getIntersectItems(e,t,n,i,r){const a=[];return!r&&!e.isPointInArea(t)||evaluateInteractionItems(e,n,t,function(l,u,h){!r&&!_isPointInArea(l,e.chartArea,0)||l.inRange(t.x,t.y,i)&&a.push({element:l,datasetIndex:u,index:h})},!0),a}function getNearestRadialItems(e,t,n,i){let r=[];function a(o,l,u){const{startAngle:h,endAngle:m}=o.getProps(["startAngle","endAngle"],i),{angle:g}=getAngleFromPoint(o,{x:t.x,y:t.y});_angleBetween(g,h,m)&&r.push({element:o,datasetIndex:l,index:u})}return evaluateInteractionItems(e,n,t,a),r}function getNearestCartesianItems(e,t,n,i,r,a){let o=[];const l=getDistanceMetricForAxis(n);let u=Number.POSITIVE_INFINITY;function h(m,g,_){const v=m.inRange(t.x,t.y,r);if(i&&!v)return;const w=m.getCenterPoint(r);if(!(!!a||e.isPointInArea(w))&&!v)return;const x=l(t,w);x<u?(o=[{element:m,datasetIndex:g,index:_}],u=x):x===u&&o.push({element:m,datasetIndex:g,index:_})}return evaluateInteractionItems(e,n,t,h),o}function getNearestItems(e,t,n,i,r,a){return!a&&!e.isPointInArea(t)?[]:n==="r"&&!i?getNearestRadialItems(e,t,n,r):getNearestCartesianItems(e,t,n,i,r,a)}function getAxisItems(e,t,n,i,r){const a=[],o=n==="x"?"inXRange":"inYRange";let l=!1;return evaluateInteractionItems(e,n,t,(u,h,m)=>{u[o](t[n],r)&&(a.push({element:u,datasetIndex:h,index:m}),l=l||u.inRange(t.x,t.y,r))}),i&&!l?[]:a}var Interaction={evaluateInteractionItems,modes:{index(e,t,n,i){const r=getRelativePosition(t,e),a=n.axis||"x",o=n.includeInvisible||!1,l=n.intersect?getIntersectItems(e,r,a,i,o):getNearestItems(e,r,a,!1,i,o),u=[];return l.length?(e.getSortedVisibleDatasetMetas().forEach(h=>{const m=l[0].index,g=h.data[m];g&&!g.skip&&u.push({element:g,datasetIndex:h.index,index:m})}),u):[]},dataset(e,t,n,i){const r=getRelativePosition(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;let l=n.intersect?getIntersectItems(e,r,a,i,o):getNearestItems(e,r,a,!1,i,o);if(l.length>0){const u=l[0].datasetIndex,h=e.getDatasetMeta(u).data;l=[];for(let m=0;m<h.length;++m)l.push({element:h[m],datasetIndex:u,index:m})}return l},point(e,t,n,i){const r=getRelativePosition(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;return getIntersectItems(e,r,a,i,o)},nearest(e,t,n,i){const r=getRelativePosition(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;return getNearestItems(e,r,a,n.intersect,i,o)},x(e,t,n,i){const r=getRelativePosition(t,e);return getAxisItems(e,r,"x",n.intersect,i)},y(e,t,n,i){const r=getRelativePosition(t,e);return getAxisItems(e,r,"y",n.intersect,i)}}};const STATIC_POSITIONS=["left","top","right","bottom"];function filterByPosition(e,t){return e.filter(n=>n.pos===t)}function filterDynamicPositionByAxis(e,t){return e.filter(n=>STATIC_POSITIONS.indexOf(n.pos)===-1&&n.box.axis===t)}function sortByWeight(e,t){return e.sort((n,i)=>{const r=t?i:n,a=t?n:i;return r.weight===a.weight?r.index-a.index:r.weight-a.weight})}function wrapBoxes(e){const t=[];let n,i,r,a,o,l;for(n=0,i=(e||[]).length;n<i;++n)r=e[n],{position:a,options:{stack:o,stackWeight:l=1}}=r,t.push({index:n,box:r,pos:a,horizontal:r.isHorizontal(),weight:r.weight,stack:o&&a+o,stackWeight:l});return t}function buildStacks(e){const t={};for(const n of e){const{stack:i,pos:r,stackWeight:a}=n;if(!i||!STATIC_POSITIONS.includes(r))continue;const o=t[i]||(t[i]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=a}return t}function setLayoutDims(e,t){const n=buildStacks(e),{vBoxMaxWidth:i,hBoxMaxHeight:r}=t;let a,o,l;for(a=0,o=e.length;a<o;++a){l=e[a];const{fullSize:u}=l.box,h=n[l.stack],m=h&&l.stackWeight/h.weight;l.horizontal?(l.width=m?m*i:u&&t.availableWidth,l.height=r):(l.width=i,l.height=m?m*r:u&&t.availableHeight)}return n}function buildLayoutBoxes(e){const t=wrapBoxes(e),n=sortByWeight(t.filter(h=>h.box.fullSize),!0),i=sortByWeight(filterByPosition(t,"left"),!0),r=sortByWeight(filterByPosition(t,"right")),a=sortByWeight(filterByPosition(t,"top"),!0),o=sortByWeight(filterByPosition(t,"bottom")),l=filterDynamicPositionByAxis(t,"x"),u=filterDynamicPositionByAxis(t,"y");return{fullSize:n,leftAndTop:i.concat(a),rightAndBottom:r.concat(u).concat(o).concat(l),chartArea:filterByPosition(t,"chartArea"),vertical:i.concat(r).concat(u),horizontal:a.concat(o).concat(l)}}function getCombinedMax(e,t,n,i){return Math.max(e[n],t[n])+Math.max(e[i],t[i])}function updateMaxPadding(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function updateDims(e,t,n,i){const{pos:r,box:a}=n,o=e.maxPadding;if(!isObject$8(r)){n.size&&(e[r]-=n.size);const g=i[n.stack]||{size:0,count:1};g.size=Math.max(g.size,n.horizontal?a.height:a.width),n.size=g.size/g.count,e[r]+=n.size}a.getPadding&&updateMaxPadding(o,a.getPadding());const l=Math.max(0,t.outerWidth-getCombinedMax(o,e,"left","right")),u=Math.max(0,t.outerHeight-getCombinedMax(o,e,"top","bottom")),h=l!==e.w,m=u!==e.h;return e.w=l,e.h=u,n.horizontal?{same:h,other:m}:{same:m,other:h}}function handleMaxPadding(e){const t=e.maxPadding;function n(i){const r=Math.max(t[i]-e[i],0);return e[i]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function getMargins(e,t){const n=t.maxPadding;function i(r){const a={left:0,top:0,right:0,bottom:0};return r.forEach(o=>{a[o]=Math.max(t[o],n[o])}),a}return i(e?["left","right"]:["top","bottom"])}function fitBoxes(e,t,n,i){const r=[];let a,o,l,u,h,m;for(a=0,o=e.length,h=0;a<o;++a){l=e[a],u=l.box,u.update(l.width||t.w,l.height||t.h,getMargins(l.horizontal,t));const{same:g,other:_}=updateDims(t,n,l,i);h|=g&&r.length,m=m||_,u.fullSize||r.push(l)}return h&&fitBoxes(r,t,n,i)||m}function setBoxDims(e,t,n,i,r){e.top=n,e.left=t,e.right=t+i,e.bottom=n+r,e.width=i,e.height=r}function placeBoxes(e,t,n,i){const r=n.padding;let{x:a,y:o}=t;for(const l of e){const u=l.box,h=i[l.stack]||{count:1,placed:0,weight:1},m=l.stackWeight/h.weight||1;if(l.horizontal){const g=t.w*m,_=h.size||u.height;defined$1(h.start)&&(o=h.start),u.fullSize?setBoxDims(u,r.left,o,n.outerWidth-r.right-r.left,_):setBoxDims(u,t.left+h.placed,o,g,_),h.start=o,h.placed+=g,o=u.bottom}else{const g=t.h*m,_=h.size||u.width;defined$1(h.start)&&(a=h.start),u.fullSize?setBoxDims(u,a,r.top,_,n.outerHeight-r.bottom-r.top):setBoxDims(u,a,t.top+h.placed,_,g),h.start=a,h.placed+=g,a=u.right}}t.x=a,t.y=o}var layouts={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,i){if(!e)return;const r=toPadding(e.options.layout.padding),a=Math.max(t-r.width,0),o=Math.max(n-r.height,0),l=buildLayoutBoxes(e.boxes),u=l.vertical,h=l.horizontal;each(e.boxes,$=>{typeof $.beforeLayout=="function"&&$.beforeLayout()});const m=u.reduce(($,x)=>x.box.options&&x.box.options.display===!1?$:$+1,0)||1,g=Object.freeze({outerWidth:t,outerHeight:n,padding:r,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/m,hBoxMaxHeight:o/2}),_=Object.assign({},r);updateMaxPadding(_,toPadding(i));const v=Object.assign({maxPadding:_,w:a,h:o,x:r.left,y:r.top},r),w=setLayoutDims(u.concat(h),g);fitBoxes(l.fullSize,v,g,w),fitBoxes(u,v,g,w),fitBoxes(h,v,g,w)&&fitBoxes(u,v,g,w),handleMaxPadding(v),placeBoxes(l.leftAndTop,v,g,w),v.x+=v.w,v.y+=v.h,placeBoxes(l.rightAndBottom,v,g,w),e.chartArea={left:v.left,top:v.top,right:v.left+v.w,bottom:v.top+v.h,height:v.h,width:v.w},each(l.chartArea,$=>{const x=$.box;Object.assign(x,e.chartArea),x.update(v.w,v.h,{left:0,top:0,right:0,bottom:0})})}};class BasePlatform{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,i){}removeEventListener(t,n,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,i,r){return n=Math.max(0,n||t.width),i=i||t.height,{width:n,height:Math.max(0,r?Math.floor(n/r):i)}}isAttached(t){return!0}updateConfig(t){}}class BasicPlatform extends BasePlatform{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const EXPANDO_KEY="$chartjs",EVENT_TYPES={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},isNullOrEmpty=e=>e===null||e==="";function initCanvas(e,t){const n=e.style,i=e.getAttribute("height"),r=e.getAttribute("width");if(e[EXPANDO_KEY]={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",isNullOrEmpty(r)){const a=readUsedSize(e,"width");a!==void 0&&(e.width=a)}if(isNullOrEmpty(i))if(e.style.height==="")e.height=e.width/(t||2);else{const a=readUsedSize(e,"height");a!==void 0&&(e.height=a)}return e}const eventListenerOptions=supportsEventListenerOptions?{passive:!0}:!1;function addListener(e,t,n){e.addEventListener(t,n,eventListenerOptions)}function removeListener(e,t,n){e.canvas.removeEventListener(t,n,eventListenerOptions)}function fromNativeEvent(e,t){const n=EVENT_TYPES[e.type]||e.type,{x:i,y:r}=getRelativePosition(e,t);return{type:n,chart:t,native:e,x:i!==void 0?i:null,y:r!==void 0?r:null}}function nodeListContains(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function createAttachObserver(e,t,n){const i=e.canvas,r=new MutationObserver(a=>{let o=!1;for(const l of a)o=o||nodeListContains(l.addedNodes,i),o=o&&!nodeListContains(l.removedNodes,i);o&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}function createDetachObserver(e,t,n){const i=e.canvas,r=new MutationObserver(a=>{let o=!1;for(const l of a)o=o||nodeListContains(l.removedNodes,i),o=o&&!nodeListContains(l.addedNodes,i);o&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}const drpListeningCharts=new Map;let oldDevicePixelRatio=0;function onWindowResize(){const e=window.devicePixelRatio;e!==oldDevicePixelRatio&&(oldDevicePixelRatio=e,drpListeningCharts.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function listenDevicePixelRatioChanges(e,t){drpListeningCharts.size||window.addEventListener("resize",onWindowResize),drpListeningCharts.set(e,t)}function unlistenDevicePixelRatioChanges(e){drpListeningCharts.delete(e),drpListeningCharts.size||window.removeEventListener("resize",onWindowResize)}function createResizeObserver(e,t,n){const i=e.canvas,r=i&&_getParentNode(i);if(!r)return;const a=throttled((l,u)=>{const h=r.clientWidth;n(l,u),h<r.clientWidth&&n()},window),o=new ResizeObserver(l=>{const u=l[0],h=u.contentRect.width,m=u.contentRect.height;h===0&&m===0||a(h,m)});return o.observe(r),listenDevicePixelRatioChanges(e,a),o}function releaseObserver(e,t,n){n&&n.disconnect(),t==="resize"&&unlistenDevicePixelRatioChanges(e)}function createProxyAndListen(e,t,n){const i=e.canvas,r=throttled(a=>{e.ctx!==null&&n(fromNativeEvent(a,e))},e);return addListener(i,t,r),r}class DomPlatform extends BasePlatform{acquireContext(t,n){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(initCanvas(t,n),i):null}releaseContext(t){const n=t.canvas;if(!n[EXPANDO_KEY])return!1;const i=n[EXPANDO_KEY].initial;["height","width"].forEach(a=>{const o=i[a];isNullOrUndef(o)?n.removeAttribute(a):n.setAttribute(a,o)});const r=i.style||{};return Object.keys(r).forEach(a=>{n.style[a]=r[a]}),n.width=n.width,delete n[EXPANDO_KEY],!0}addEventListener(t,n,i){this.removeEventListener(t,n);const r=t.$proxies||(t.$proxies={}),o={attach:createAttachObserver,detach:createDetachObserver,resize:createResizeObserver}[n]||createProxyAndListen;r[n]=o(t,n,i)}removeEventListener(t,n){const i=t.$proxies||(t.$proxies={}),r=i[n];if(!r)return;({attach:releaseObserver,detach:releaseObserver,resize:releaseObserver}[n]||removeListener)(t,n,r),i[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,i,r){return getMaximumSize(t,n,i,r)}isAttached(t){const n=_getParentNode(t);return!!(n&&n.isConnected)}}function _detectPlatform(e){return!_isDomSupported()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?BasicPlatform:DomPlatform}var Xe;let Element$1=(Xe=class{constructor(){Y(this,"x");Y(this,"y");Y(this,"active",!1);Y(this,"options");Y(this,"$animations")}tooltipPosition(t){const{x:n,y:i}=this.getProps(["x","y"],t);return{x:n,y:i}}hasValue(){return isNumber(this.x)&&isNumber(this.y)}getProps(t,n){const i=this.$animations;if(!n||!i)return this;const r={};return t.forEach(a=>{r[a]=i[a]&&i[a].active()?i[a]._to:this[a]}),r}},Y(Xe,"defaults",{}),Y(Xe,"defaultRoutes"),Xe);function autoSkip(e,t){const n=e.options.ticks,i=determineMaxTicks(e),r=Math.min(n.maxTicksLimit||i,i),a=n.major.enabled?getMajorIndices(t):[],o=a.length,l=a[0],u=a[o-1],h=[];if(o>r)return skipMajors(t,h,a,o/r),h;const m=calculateSpacing(a,t,r);if(o>0){let g,_;const v=o>1?Math.round((u-l)/(o-1)):null;for(skip(t,h,m,isNullOrUndef(v)?0:l-v,l),g=0,_=o-1;g<_;g++)skip(t,h,m,a[g],a[g+1]);return skip(t,h,m,u,isNullOrUndef(v)?t.length:u+v),h}return skip(t,h,m),h}function determineMaxTicks(e){const t=e.options.offset,n=e._tickSize(),i=e._length/n+(t?0:1),r=e._maxLength/n;return Math.floor(Math.min(i,r))}function calculateSpacing(e,t,n){const i=getEvenSpacing(e),r=t.length/n;if(!i)return Math.max(r,1);const a=_factorize(i);for(let o=0,l=a.length-1;o<l;o++){const u=a[o];if(u>r)return u}return Math.max(r,1)}function getMajorIndices(e){const t=[];let n,i;for(n=0,i=e.length;n<i;n++)e[n].major&&t.push(n);return t}function skipMajors(e,t,n,i){let r=0,a=n[0],o;for(i=Math.ceil(i),o=0;o<e.length;o++)o===a&&(t.push(e[o]),r++,a=n[r*i])}function skip(e,t,n,i,r){const a=valueOrDefault(i,0),o=Math.min(valueOrDefault(r,e.length),e.length);let l=0,u,h,m;for(n=Math.ceil(n),r&&(u=r-i,n=u/Math.floor(u/n)),m=a;m<0;)l++,m=Math.round(a+l*n);for(h=Math.max(a,0);h<o;h++)h===m&&(t.push(e[h]),l++,m=Math.round(a+l*n))}function getEvenSpacing(e){const t=e.length;let n,i;if(t<2)return!1;for(i=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==i)return!1;return i}const reverseAlign=e=>e==="left"?"right":e==="right"?"left":e,offsetFromEdge=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,getTicksLimit=(e,t)=>Math.min(t||e,e);function sample(e,t){const n=[],i=e.length/t,r=e.length;let a=0;for(;a<r;a+=i)n.push(e[Math.floor(a)]);return n}function getPixelForGridLine(e,t,n){const i=e.ticks.length,r=Math.min(t,i-1),a=e._startPixel,o=e._endPixel,l=1e-6;let u=e.getPixelForTick(r),h;if(!(n&&(i===1?h=Math.max(u-a,o-u):t===0?h=(e.getPixelForTick(1)-u)/2:h=(u-e.getPixelForTick(r-1))/2,u+=r<t?h:-h,u<a-l||u>o+l)))return u}function garbageCollect(e,t){each(e,n=>{const i=n.gc,r=i.length/2;let a;if(r>t){for(a=0;a<r;++a)delete n.data[i[a]];i.splice(0,r)}})}function getTickMarkLength(e){return e.drawTicks?e.tickLength:0}function getTitleHeight(e,t){if(!e.display)return 0;const n=toFont(e.font,t),i=toPadding(e.padding);return(isArray$b(e.text)?e.text.length:1)*n.lineHeight+i.height}function createScaleContext(e,t){return createContext(e,{scale:t,type:"scale"})}function createTickContext(e,t,n){return createContext(e,{tick:n,index:t,type:"tick"})}function titleAlign(e,t,n){let i=_toLeftRightCenter(e);return(n&&t!=="right"||!n&&t==="right")&&(i=reverseAlign(i)),i}function titleArgs(e,t,n,i){const{top:r,left:a,bottom:o,right:l,chart:u}=e,{chartArea:h,scales:m}=u;let g=0,_,v,w;const $=o-r,x=l-a;if(e.isHorizontal()){if(v=_alignStartEnd(i,a,l),isObject$8(n)){const M=Object.keys(n)[0],T=n[M];w=m[M].getPixelForValue(T)+$-t}else n==="center"?w=(h.bottom+h.top)/2+$-t:w=offsetFromEdge(e,n,t);_=l-a}else{if(isObject$8(n)){const M=Object.keys(n)[0],T=n[M];v=m[M].getPixelForValue(T)-x+t}else n==="center"?v=(h.left+h.right)/2-x+t:v=offsetFromEdge(e,n,t);w=_alignStartEnd(i,o,r),g=n==="left"?-HALF_PI:HALF_PI}return{titleX:v,titleY:w,maxWidth:_,rotation:g}}class Scale extends Element$1{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:i,_suggestedMax:r}=this;return t=finiteOrDefault(t,Number.POSITIVE_INFINITY),n=finiteOrDefault(n,Number.NEGATIVE_INFINITY),i=finiteOrDefault(i,Number.POSITIVE_INFINITY),r=finiteOrDefault(r,Number.NEGATIVE_INFINITY),{min:finiteOrDefault(t,i),max:finiteOrDefault(n,r),minDefined:isNumberFinite(t),maxDefined:isNumberFinite(n)}}getMinMax(t){let{min:n,max:i,minDefined:r,maxDefined:a}=this.getUserBounds(),o;if(r&&a)return{min:n,max:i};const l=this.getMatchingVisibleMetas();for(let u=0,h=l.length;u<h;++u)o=l[u].controller.getMinMax(this,t),r||(n=Math.min(n,o.min)),a||(i=Math.max(i,o.max));return n=a&&n>i?i:n,i=r&&n>i?n:i,{min:finiteOrDefault(n,finiteOrDefault(i,n)),max:finiteOrDefault(i,finiteOrDefault(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){callback(this.options.beforeUpdate,[this])}update(t,n,i){const{beginAtZero:r,grace:a,ticks:o}=this.options,l=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=_addGrace(this,a,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const u=l<this.ticks.length;this._convertTicksToLabels(u?sample(this.ticks,l):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=autoSkip(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),u&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,i;this.isHorizontal()?(n=this.left,i=this.right):(n=this.top,i=this.bottom,t=!t),this._startPixel=n,this._endPixel=i,this._reversePixels=t,this._length=i-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){callback(this.options.afterUpdate,[this])}beforeSetDimensions(){callback(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){callback(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),callback(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){callback(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let i,r,a;for(i=0,r=t.length;i<r;i++)a=t[i],a.label=callback(n.callback,[a.value,i,t],this)}afterTickToLabelConversion(){callback(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){callback(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,i=getTicksLimit(this.ticks.length,t.ticks.maxTicksLimit),r=n.minRotation||0,a=n.maxRotation;let o=r,l,u,h;if(!this._isVisible()||!n.display||r>=a||i<=1||!this.isHorizontal()){this.labelRotation=r;return}const m=this._getLabelSizes(),g=m.widest.width,_=m.highest.height,v=_limitValue(this.chart.width-g,0,this.maxWidth);l=t.offset?this.maxWidth/i:v/(i-1),g+6>l&&(l=v/(i-(t.offset?.5:1)),u=this.maxHeight-getTickMarkLength(t.grid)-n.padding-getTitleHeight(t.title,this.chart.options.font),h=Math.sqrt(g*g+_*_),o=toDegrees(Math.min(Math.asin(_limitValue((m.highest.height+6)/l,-1,1)),Math.asin(_limitValue(u/h,-1,1))-Math.asin(_limitValue(_/h,-1,1)))),o=Math.max(r,Math.min(a,o))),this.labelRotation=o}afterCalculateLabelRotation(){callback(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){callback(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:i,title:r,grid:a}}=this,o=this._isVisible(),l=this.isHorizontal();if(o){const u=getTitleHeight(r,n.options.font);if(l?(t.width=this.maxWidth,t.height=getTickMarkLength(a)+u):(t.height=this.maxHeight,t.width=getTickMarkLength(a)+u),i.display&&this.ticks.length){const{first:h,last:m,widest:g,highest:_}=this._getLabelSizes(),v=i.padding*2,w=toRadians(this.labelRotation),$=Math.cos(w),x=Math.sin(w);if(l){const M=i.mirror?0:x*g.width+$*_.height;t.height=Math.min(this.maxHeight,t.height+M+v)}else{const M=i.mirror?0:$*g.width+x*_.height;t.width=Math.min(this.maxWidth,t.width+M+v)}this._calculatePadding(h,m,x,$)}}this._handleMargins(),l?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,i,r){const{ticks:{align:a,padding:o},position:l}=this.options,u=this.labelRotation!==0,h=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const m=this.getPixelForTick(0)-this.left,g=this.right-this.getPixelForTick(this.ticks.length-1);let _=0,v=0;u?h?(_=r*t.width,v=i*n.height):(_=i*t.height,v=r*n.width):a==="start"?v=n.width:a==="end"?_=t.width:a!=="inner"&&(_=t.width/2,v=n.width/2),this.paddingLeft=Math.max((_-m+o)*this.width/(this.width-m),0),this.paddingRight=Math.max((v-g+o)*this.width/(this.width-g),0)}else{let m=n.height/2,g=t.height/2;a==="start"?(m=0,g=t.height):a==="end"&&(m=n.height,g=0),this.paddingTop=m+o,this.paddingBottom=g+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){callback(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,i;for(n=0,i=t.length;n<i;n++)isNullOrUndef(t[n].label)&&(t.splice(n,1),i--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let i=this.ticks;n<i.length&&(i=sample(i,n)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,i){const{ctx:r,_longestTextCache:a}=this,o=[],l=[],u=Math.floor(n/getTicksLimit(n,i));let h=0,m=0,g,_,v,w,$,x,M,T,R,W,V;for(g=0;g<n;g+=u){if(w=t[g].label,$=this._resolveTickFontOptions(g),r.font=x=$.string,M=a[x]=a[x]||{data:{},gc:[]},T=$.lineHeight,R=W=0,!isNullOrUndef(w)&&!isArray$b(w))R=_measureText(r,M.data,M.gc,R,w),W=T;else if(isArray$b(w))for(_=0,v=w.length;_<v;++_)V=w[_],!isNullOrUndef(V)&&!isArray$b(V)&&(R=_measureText(r,M.data,M.gc,R,V),W+=T);o.push(R),l.push(W),h=Math.max(R,h),m=Math.max(W,m)}garbageCollect(a,n);const K=o.indexOf(h),U=l.indexOf(m),y=E=>({width:o[E]||0,height:l[E]||0});return{first:y(0),last:y(n-1),widest:y(K),highest:y(U),widths:o,heights:l}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return _int16Range(this._alignToPixels?_alignPixel(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const i=n[t];return i.$context||(i.$context=createTickContext(this.getContext(),t,i))}return this.$context||(this.$context=createScaleContext(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=toRadians(this.labelRotation),i=Math.abs(Math.cos(n)),r=Math.abs(Math.sin(n)),a=this._getLabelSizes(),o=t.autoSkipPadding||0,l=a?a.widest.width+o:0,u=a?a.highest.height+o:0;return this.isHorizontal()?u*i>l*r?l/i:u/r:u*r<l*i?u/i:l/r}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,i=this.chart,r=this.options,{grid:a,position:o,border:l}=r,u=a.offset,h=this.isHorizontal(),g=this.ticks.length+(u?1:0),_=getTickMarkLength(a),v=[],w=l.setContext(this.getContext()),$=w.display?w.width:0,x=$/2,M=function(D){return _alignPixel(i,D,$)};let T,R,W,V,K,U,y,E,S,O,A,F;if(o==="top")T=M(this.bottom),U=this.bottom-_,E=T-x,O=M(t.top)+x,F=t.bottom;else if(o==="bottom")T=M(this.top),O=t.top,F=M(t.bottom)-x,U=T+x,E=this.top+_;else if(o==="left")T=M(this.right),K=this.right-_,y=T-x,S=M(t.left)+x,A=t.right;else if(o==="right")T=M(this.left),S=t.left,A=M(t.right)-x,K=T+x,y=this.left+_;else if(n==="x"){if(o==="center")T=M((t.top+t.bottom)/2+.5);else if(isObject$8(o)){const D=Object.keys(o)[0],I=o[D];T=M(this.chart.scales[D].getPixelForValue(I))}O=t.top,F=t.bottom,U=T+x,E=U+_}else if(n==="y"){if(o==="center")T=M((t.left+t.right)/2);else if(isObject$8(o)){const D=Object.keys(o)[0],I=o[D];T=M(this.chart.scales[D].getPixelForValue(I))}K=T-x,y=K-_,S=t.left,A=t.right}const z=valueOrDefault(r.ticks.maxTicksLimit,g),C=Math.max(1,Math.ceil(g/z));for(R=0;R<g;R+=C){const D=this.getContext(R),I=a.setContext(D),N=l.setContext(D),G=I.lineWidth,q=I.color,Z=N.dash||[],et=N.dashOffset,st=I.tickWidth,rt=I.tickColor,Q=I.tickBorderDash||[],J=I.tickBorderDashOffset;W=getPixelForGridLine(this,R,u),W!==void 0&&(V=_alignPixel(i,W,G),h?K=y=S=A=V:U=E=O=F=V,v.push({tx1:K,ty1:U,tx2:y,ty2:E,x1:S,y1:O,x2:A,y2:F,width:G,color:q,borderDash:Z,borderDashOffset:et,tickWidth:st,tickColor:rt,tickBorderDash:Q,tickBorderDashOffset:J}))}return this._ticksLength=g,this._borderValue=T,v}_computeLabelItems(t){const n=this.axis,i=this.options,{position:r,ticks:a}=i,o=this.isHorizontal(),l=this.ticks,{align:u,crossAlign:h,padding:m,mirror:g}=a,_=getTickMarkLength(i.grid),v=_+m,w=g?-m:v,$=-toRadians(this.labelRotation),x=[];let M,T,R,W,V,K,U,y,E,S,O,A,F="middle";if(r==="top")K=this.bottom-w,U=this._getXAxisLabelAlignment();else if(r==="bottom")K=this.top+w,U=this._getXAxisLabelAlignment();else if(r==="left"){const C=this._getYAxisLabelAlignment(_);U=C.textAlign,V=C.x}else if(r==="right"){const C=this._getYAxisLabelAlignment(_);U=C.textAlign,V=C.x}else if(n==="x"){if(r==="center")K=(t.top+t.bottom)/2+v;else if(isObject$8(r)){const C=Object.keys(r)[0],D=r[C];K=this.chart.scales[C].getPixelForValue(D)+v}U=this._getXAxisLabelAlignment()}else if(n==="y"){if(r==="center")V=(t.left+t.right)/2-v;else if(isObject$8(r)){const C=Object.keys(r)[0],D=r[C];V=this.chart.scales[C].getPixelForValue(D)}U=this._getYAxisLabelAlignment(_).textAlign}n==="y"&&(u==="start"?F="top":u==="end"&&(F="bottom"));const z=this._getLabelSizes();for(M=0,T=l.length;M<T;++M){R=l[M],W=R.label;const C=a.setContext(this.getContext(M));y=this.getPixelForTick(M)+a.labelOffset,E=this._resolveTickFontOptions(M),S=E.lineHeight,O=isArray$b(W)?W.length:1;const D=O/2,I=C.color,N=C.textStrokeColor,G=C.textStrokeWidth;let q=U;o?(V=y,U==="inner"&&(M===T-1?q=this.options.reverse?"left":"right":M===0?q=this.options.reverse?"right":"left":q="center"),r==="top"?h==="near"||$!==0?A=-O*S+S/2:h==="center"?A=-z.highest.height/2-D*S+S:A=-z.highest.height+S/2:h==="near"||$!==0?A=S/2:h==="center"?A=z.highest.height/2-D*S:A=z.highest.height-O*S,g&&(A*=-1),$!==0&&!C.showLabelBackdrop&&(V+=S/2*Math.sin($))):(K=y,A=(1-O)*S/2);let Z;if(C.showLabelBackdrop){const et=toPadding(C.backdropPadding),st=z.heights[M],rt=z.widths[M];let Q=A-et.top,J=0-et.left;switch(F){case"middle":Q-=st/2;break;case"bottom":Q-=st;break}switch(U){case"center":J-=rt/2;break;case"right":J-=rt;break;case"inner":M===T-1?J-=rt:M>0&&(J-=rt/2);break}Z={left:J,top:Q,width:rt+et.width,height:st+et.height,color:C.backdropColor}}x.push({label:W,font:E,textOffset:A,options:{rotation:$,color:I,strokeColor:N,strokeWidth:G,textAlign:q,textBaseline:F,translation:[V,K],backdrop:Z}})}return x}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-toRadians(this.labelRotation))return t==="top"?"left":"right";let r="center";return n.align==="start"?r="left":n.align==="end"?r="right":n.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:i,mirror:r,padding:a}}=this.options,o=this._getLabelSizes(),l=t+a,u=o.widest.width;let h,m;return n==="left"?r?(m=this.right+a,i==="near"?h="left":i==="center"?(h="center",m+=u/2):(h="right",m+=u)):(m=this.right-l,i==="near"?h="right":i==="center"?(h="center",m-=u/2):(h="left",m=this.left)):n==="right"?r?(m=this.left+a,i==="near"?h="right":i==="center"?(h="center",m-=u/2):(h="left",m-=u)):(m=this.left+l,i==="near"?h="left":i==="center"?(h="center",m+=u/2):(h="right",m=this.right)):h="right",{textAlign:h,x:m}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:i,top:r,width:a,height:o}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(i,r,a,o),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const r=this.ticks.findIndex(a=>a.value===t);return r>=0?n.setContext(this.getContext(r)).lineWidth:0}drawGrid(t){const n=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let a,o;const l=(u,h,m)=>{!m.width||!m.color||(i.save(),i.lineWidth=m.width,i.strokeStyle=m.color,i.setLineDash(m.borderDash||[]),i.lineDashOffset=m.borderDashOffset,i.beginPath(),i.moveTo(u.x,u.y),i.lineTo(h.x,h.y),i.stroke(),i.restore())};if(n.display)for(a=0,o=r.length;a<o;++a){const u=r[a];n.drawOnChartArea&&l({x:u.x1,y:u.y1},{x:u.x2,y:u.y2},u),n.drawTicks&&l({x:u.tx1,y:u.ty1},{x:u.tx2,y:u.ty2},{color:u.tickColor,width:u.tickWidth,borderDash:u.tickBorderDash,borderDashOffset:u.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:i,grid:r}}=this,a=i.setContext(this.getContext()),o=i.display?a.width:0;if(!o)return;const l=r.setContext(this.getContext(0)).lineWidth,u=this._borderValue;let h,m,g,_;this.isHorizontal()?(h=_alignPixel(t,this.left,o)-o/2,m=_alignPixel(t,this.right,l)+l/2,g=_=u):(g=_alignPixel(t,this.top,o)-o/2,_=_alignPixel(t,this.bottom,l)+l/2,h=m=u),n.save(),n.lineWidth=a.width,n.strokeStyle=a.color,n.beginPath(),n.moveTo(h,g),n.lineTo(m,_),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const i=this.ctx,r=this._computeLabelArea();r&&clipArea(i,r);const a=this.getLabelItems(t);for(const o of a){const l=o.options,u=o.font,h=o.label,m=o.textOffset;renderText(i,h,0,m,u,l)}r&&unclipArea(i)}drawTitle(){const{ctx:t,options:{position:n,title:i,reverse:r}}=this;if(!i.display)return;const a=toFont(i.font),o=toPadding(i.padding),l=i.align;let u=a.lineHeight/2;n==="bottom"||n==="center"||isObject$8(n)?(u+=o.bottom,isArray$b(i.text)&&(u+=a.lineHeight*(i.text.length-1))):u+=o.top;const{titleX:h,titleY:m,maxWidth:g,rotation:_}=titleArgs(this,u,n,l);renderText(t,i.text,0,0,a,{color:i.color,maxWidth:g,rotation:_,textAlign:titleAlign(l,n,r),textBaseline:"middle",translation:[h,m]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,i=valueOrDefault(t.grid&&t.grid.z,-1),r=valueOrDefault(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Scale.prototype.draw?[{z:n,draw:a=>{this.draw(a)}}]:[{z:i,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:n,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[];let a,o;for(a=0,o=n.length;a<o;++a){const l=n[a];l[i]===this.id&&(!t||l.type===t)&&r.push(l)}return r}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return toFont(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class TypedRegistry{constructor(t,n,i){this.type=t,this.scope=n,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let i;isIChartComponent(n)&&(i=this.register(n));const r=this.items,a=t.id,o=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+t);return a in r||(r[a]=t,registerDefaults(t,o,i),this.override&&defaults.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const n=this.items,i=t.id,r=this.scope;i in n&&delete n[i],r&&i in defaults[r]&&(delete defaults[r][i],this.override&&delete overrides[i])}}function registerDefaults(e,t,n){const i=merge(Object.create(null),[n?defaults.get(n):{},defaults.get(t),e.defaults]);defaults.set(t,i),e.defaultRoutes&&routeDefaults(t,e.defaultRoutes),e.descriptors&&defaults.describe(t,e.descriptors)}function routeDefaults(e,t){Object.keys(t).forEach(n=>{const i=n.split("."),r=i.pop(),a=[e].concat(i).join("."),o=t[n].split("."),l=o.pop(),u=o.join(".");defaults.route(a,r,u,l)})}function isIChartComponent(e){return"id"in e&&"defaults"in e}class Registry{constructor(){this.controllers=new TypedRegistry(DatasetController,"datasets",!0),this.elements=new TypedRegistry(Element$1,"elements"),this.plugins=new TypedRegistry(Object,"plugins"),this.scales=new TypedRegistry(Scale,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,i){[...n].forEach(r=>{const a=i||this._getRegistryForType(r);i||a.isForType(r)||a===this.plugins&&r.id?this._exec(t,a,r):each(r,o=>{const l=i||this._getRegistryForType(o);this._exec(t,l,o)})})}_exec(t,n,i){const r=_capitalize(t);callback(i["before"+r],[],i),n[t](i),callback(i["after"+r],[],i)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const i=this._typedRegistries[n];if(i.isForType(t))return i}return this.plugins}_get(t,n,i){const r=n.get(t);if(r===void 0)throw new Error('"'+t+'" is not a registered '+i+".");return r}}var registry=new Registry;class PluginService{constructor(){this._init=[]}notify(t,n,i,r){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const a=r?this._descriptors(t).filter(r):this._descriptors(t),o=this._notify(a,t,n,i);return n==="afterDestroy"&&(this._notify(a,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,n,i,r){r=r||{};for(const a of t){const o=a.plugin,l=o[i],u=[n,r,a.options];if(callback(l,u,o)===!1&&r.cancelable)return!1}return!0}invalidate(){isNullOrUndef(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const i=t&&t.config,r=valueOrDefault(i.options&&i.options.plugins,{}),a=allPlugins(i);return r===!1&&!n?[]:createDescriptors(t,a,r,n)}_notifyStateChanges(t){const n=this._oldCache||[],i=this._cache,r=(a,o)=>a.filter(l=>!o.some(u=>l.plugin.id===u.plugin.id));this._notify(r(n,i),t,"stop"),this._notify(r(i,n),t,"start")}}function allPlugins(e){const t={},n=[],i=Object.keys(registry.plugins.items);for(let a=0;a<i.length;a++)n.push(registry.getPlugin(i[a]));const r=e.plugins||[];for(let a=0;a<r.length;a++){const o=r[a];n.indexOf(o)===-1&&(n.push(o),t[o.id]=!0)}return{plugins:n,localIds:t}}function getOpts(e,t){return!t&&e===!1?null:e===!0?{}:e}function createDescriptors(e,{plugins:t,localIds:n},i,r){const a=[],o=e.getContext();for(const l of t){const u=l.id,h=getOpts(i[u],r);h!==null&&a.push({plugin:l,options:pluginOpts(e.config,{plugin:l,local:n[u]},h,o)})}return a}function pluginOpts(e,{plugin:t,local:n},i,r){const a=e.pluginScopeKeys(t),o=e.getOptionScopes(i,a);return n&&t.defaults&&o.push(t.defaults),e.createResolver(o,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function getIndexAxis(e,t){const n=defaults.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function getAxisFromDefaultScaleID(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function getDefaultScaleIDFromAxis(e,t){return e===t?"_index_":"_value_"}function idMatchesAxis(e){if(e==="x"||e==="y"||e==="r")return e}function axisFromPosition(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function determineAxis(e,...t){if(idMatchesAxis(e))return e;for(const n of t){const i=n.axis||axisFromPosition(n.position)||e.length>1&&idMatchesAxis(e[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function getAxisFromDataset(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function retrieveAxisFromDatasets(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(i=>i.xAxisID===e||i.yAxisID===e);if(n.length)return getAxisFromDataset(e,"x",n[0])||getAxisFromDataset(e,"y",n[0])}return{}}function mergeScaleConfig(e,t){const n=overrides[e.type]||{scales:{}},i=t.scales||{},r=getIndexAxis(e.type,t),a=Object.create(null);return Object.keys(i).forEach(o=>{const l=i[o];if(!isObject$8(l))return console.error(`Invalid scale configuration for scale: ${o}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const u=determineAxis(o,l,retrieveAxisFromDatasets(o,e),defaults.scales[l.type]),h=getDefaultScaleIDFromAxis(u,r),m=n.scales||{};a[o]=mergeIf(Object.create(null),[{axis:u},l,m[u],m[h]])}),e.data.datasets.forEach(o=>{const l=o.type||e.type,u=o.indexAxis||getIndexAxis(l,t),m=(overrides[l]||{}).scales||{};Object.keys(m).forEach(g=>{const _=getAxisFromDefaultScaleID(g,u),v=o[_+"AxisID"]||_;a[v]=a[v]||Object.create(null),mergeIf(a[v],[{axis:_},i[v],m[g]])})}),Object.keys(a).forEach(o=>{const l=a[o];mergeIf(l,[defaults.scales[l.type],defaults.scale])}),a}function initOptions(e){const t=e.options||(e.options={});t.plugins=valueOrDefault(t.plugins,{}),t.scales=mergeScaleConfig(e,t)}function initData(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function initConfig(e){return e=e||{},e.data=initData(e.data),initOptions(e),e}const keyCache=new Map,keysCached=new Set;function cachedKeys(e,t){let n=keyCache.get(e);return n||(n=t(),keyCache.set(e,n),keysCached.add(n)),n}const addIfFound=(e,t,n)=>{const i=resolveObjectKey(t,n);i!==void 0&&e.add(i)};class Config{constructor(t){this._config=initConfig(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=initData(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),initOptions(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return cachedKeys(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return cachedKeys(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return cachedKeys(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,i=this.type;return cachedKeys(`${i}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const i=this._scopeCache;let r=i.get(t);return(!r||n)&&(r=new Map,i.set(t,r)),r}getOptionScopes(t,n,i){const{options:r,type:a}=this,o=this._cachedScopes(t,i),l=o.get(n);if(l)return l;const u=new Set;n.forEach(m=>{t&&(u.add(t),m.forEach(g=>addIfFound(u,t,g))),m.forEach(g=>addIfFound(u,r,g)),m.forEach(g=>addIfFound(u,overrides[a]||{},g)),m.forEach(g=>addIfFound(u,defaults,g)),m.forEach(g=>addIfFound(u,descriptors,g))});const h=Array.from(u);return h.length===0&&h.push(Object.create(null)),keysCached.has(n)&&o.set(n,h),h}chartOptionScopes(){const{options:t,type:n}=this;return[t,overrides[n]||{},defaults.datasets[n]||{},{type:n},defaults,descriptors]}resolveNamedOptions(t,n,i,r=[""]){const a={$shared:!0},{resolver:o,subPrefixes:l}=getResolver(this._resolverCache,t,r);let u=o;if(needContext(o,n)){a.$shared=!1,i=isFunction$3(i)?i():i;const h=this.createResolver(t,i,l);u=_attachContext(o,i,h)}for(const h of n)a[h]=u[h];return a}createResolver(t,n,i=[""],r){const{resolver:a}=getResolver(this._resolverCache,t,i);return isObject$8(n)?_attachContext(a,n,void 0,r):a}}function getResolver(e,t,n){let i=e.get(t);i||(i=new Map,e.set(t,i));const r=n.join();let a=i.get(r);return a||(a={resolver:_createResolver(t,n),subPrefixes:n.filter(l=>!l.toLowerCase().includes("hover"))},i.set(r,a)),a}const hasFunction=e=>isObject$8(e)&&Object.getOwnPropertyNames(e).some(t=>isFunction$3(e[t]));function needContext(e,t){const{isScriptable:n,isIndexable:i}=_descriptors(e);for(const r of t){const a=n(r),o=i(r),l=(o||a)&&e[r];if(a&&(isFunction$3(l)||hasFunction(l))||o&&isArray$b(l))return!0}return!1}var version="4.4.1";const KNOWN_POSITIONS=["top","bottom","left","right","chartArea"];function positionIsHorizontal(e,t){return e==="top"||e==="bottom"||KNOWN_POSITIONS.indexOf(e)===-1&&t==="x"}function compare2Level(e,t){return function(n,i){return n[e]===i[e]?n[t]-i[t]:n[e]-i[e]}}function onAnimationsComplete(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),callback(n&&n.onComplete,[e],t)}function onAnimationProgress(e){const t=e.chart,n=t.options.animation;callback(n&&n.onProgress,[e],t)}function getCanvas(e){return _isDomSupported()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const instances={},getChart=e=>{const t=getCanvas(e);return Object.values(instances).filter(n=>n.canvas===t).pop()};function moveNumericKeys(e,t,n){const i=Object.keys(e);for(const r of i){const a=+r;if(a>=t){const o=e[r];delete e[r],(n>0||a>t)&&(e[a+n]=o)}}}function determineLastEvent(e,t,n,i){return!n||e.type==="mouseout"?null:i?t:e}function getSizeForArea(e,t,n){return e.options.clip?e[n]:t[n]}function getDatasetArea(e,t){const{xScale:n,yScale:i}=e;return n&&i?{left:getSizeForArea(n,t,"left"),right:getSizeForArea(n,t,"right"),top:getSizeForArea(i,t,"top"),bottom:getSizeForArea(i,t,"bottom")}:t}class Chart{static register(...t){registry.add(...t),invalidatePlugins()}static unregister(...t){registry.remove(...t),invalidatePlugins()}constructor(t,n){const i=this.config=new Config(n),r=getCanvas(t),a=getChart(r);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||_detectPlatform(r)),this.platform.updateConfig(i);const l=this.platform.acquireContext(r,o.aspectRatio),u=l&&l.canvas,h=u&&u.height,m=u&&u.width;if(this.id=uid(),this.ctx=l,this.canvas=u,this.width=m,this.height=h,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new PluginService,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=debounce$1(g=>this.update(g),o.resizeDelay||0),this._dataChanges=[],instances[this.id]=this,!l||!u){console.error("Failed to create chart: can't acquire context from the given item");return}animator.listen(this,"complete",onAnimationsComplete),animator.listen(this,"progress",onAnimationProgress),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:i,height:r,_aspectRatio:a}=this;return isNullOrUndef(t)?n&&a?a:r?i/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return registry}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():retinaScale(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return clearCanvas(this.canvas,this.ctx),this}stop(){return animator.stop(this),this}resize(t,n){animator.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const i=this.options,r=this.canvas,a=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(r,t,n,a),l=i.devicePixelRatio||this.platform.getDevicePixelRatio(),u=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,retinaScale(this,l,!0)&&(this.notifyPlugins("resize",{size:o}),callback(i.onResize,[this,o],this),this.attached&&this._doResize(u)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};each(n,(i,r)=>{i.id=r})}buildOrUpdateScales(){const t=this.options,n=t.scales,i=this.scales,r=Object.keys(i).reduce((o,l)=>(o[l]=!1,o),{});let a=[];n&&(a=a.concat(Object.keys(n).map(o=>{const l=n[o],u=determineAxis(o,l),h=u==="r",m=u==="x";return{options:l,dposition:h?"chartArea":m?"bottom":"left",dtype:h?"radialLinear":m?"category":"linear"}}))),each(a,o=>{const l=o.options,u=l.id,h=determineAxis(u,l),m=valueOrDefault(l.type,o.dtype);(l.position===void 0||positionIsHorizontal(l.position,h)!==positionIsHorizontal(o.dposition))&&(l.position=o.dposition),r[u]=!0;let g=null;if(u in i&&i[u].type===m)g=i[u];else{const _=registry.getScale(m);g=new _({id:u,type:m,ctx:this.ctx,chart:this}),i[g.id]=g}g.init(l,t)}),each(r,(o,l)=>{o||delete i[l]}),each(i,o=>{layouts.configure(this,o,o.options),layouts.addBox(this,o)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,i=t.length;if(t.sort((r,a)=>r.index-a.index),i>n){for(let r=n;r<i;++r)this._destroyDatasetMeta(r);t.splice(n,i-n)}this._sortedMetasets=t.slice(0).sort(compare2Level("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((i,r)=>{n.filter(a=>a===i._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let i,r;for(this._removeUnreferencedMetasets(),i=0,r=n.length;i<r;i++){const a=n[i];let o=this.getDatasetMeta(i);const l=a.type||this.config.type;if(o.type&&o.type!==l&&(this._destroyDatasetMeta(i),o=this.getDatasetMeta(i)),o.type=l,o.indexAxis=a.indexAxis||getIndexAxis(l,this.options),o.order=a.order||0,o.index=i,o.label=""+a.label,o.visible=this.isDatasetVisible(i),o.controller)o.controller.updateIndex(i),o.controller.linkScales();else{const u=registry.getController(l),{datasetElementType:h,dataElementType:m}=defaults.datasets[l];Object.assign(u,{dataElementType:registry.getElement(m),datasetElementType:h&&registry.getElement(h)}),o.controller=new u(this,i),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){each(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const i=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let h=0,m=this.data.datasets.length;h<m;h++){const{controller:g}=this.getDatasetMeta(h),_=!r&&a.indexOf(g)===-1;g.buildOrUpdateElements(_),o=Math.max(+g.getMaxOverflow(),o)}o=this._minPadding=i.layout.autoPadding?o:0,this._updateLayout(o),r||each(a,h=>{h.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(compare2Level("z","_idx"));const{_active:l,_lastEvent:u}=this;u?this._eventHandler(u,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){each(this.scales,t=>{layouts.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(t.events);(!setsEqual(n,i)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:i,start:r,count:a}of n){const o=i==="_removeElements"?-a:a;moveNumericKeys(t,r,o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,i=a=>new Set(t.filter(o=>o[0]===a).map((o,l)=>l+","+o.splice(1).join(","))),r=i(0);for(let a=1;a<n;a++)if(!setsEqual(r,i(a)))return;return Array.from(r).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;layouts.update(this,this.width,this.height,t);const n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],each(this.boxes,r=>{i&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,a)=>{r._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,i=this.data.datasets.length;n<i;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,i=this.data.datasets.length;n<i;++n)this._updateDataset(n,isFunction$3(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const i=this.getDatasetMeta(t),r={meta:i,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",r)!==!1&&(i.controller._update(n),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(animator.has(this)?this.attached&&!animator.running(this)&&animator.start(this):(this.draw(),onAnimationsComplete({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:i,height:r}=this._resizeBeforeDraw;this._resize(i,r),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,i=[];let r,a;for(r=0,a=n.length;r<a;++r){const o=n[r];(!t||o.visible)&&i.push(o)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,i=t._clip,r=!i.disabled,a=getDatasetArea(t,this.chartArea),o={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(r&&clipArea(n,{left:i.left===!1?0:a.left-i.left,right:i.right===!1?this.width:a.right+i.right,top:i.top===!1?0:a.top-i.top,bottom:i.bottom===!1?this.height:a.bottom+i.bottom}),t.controller.draw(),r&&unclipArea(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return _isPointInArea(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,i,r){const a=Interaction.modes[n];return typeof a=="function"?a(this,t,i,r):[]}getDatasetMeta(t){const n=this.data.datasets[t],i=this._metasets;let r=i.filter(a=>a&&a._dataset===n).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},i.push(r)),r}getContext(){return this.$context||(this.$context=createContext(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const i=this.getDatasetMeta(t);return typeof i.hidden=="boolean"?!i.hidden:!n.hidden}setDatasetVisibility(t,n){const i=this.getDatasetMeta(t);i.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,i){const r=i?"show":"hide",a=this.getDatasetMeta(t),o=a.controller._resolveAnimations(void 0,r);defined$1(n)?(a.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),o.update(a,{visible:i}),this.update(l=>l.datasetIndex===t?r:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),animator.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),clearCanvas(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete instances[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,i=(a,o)=>{n.addEventListener(this,a,o),t[a]=o},r=(a,o,l)=>{a.offsetX=o,a.offsetY=l,this._eventHandler(a)};each(this.options.events,a=>i(a,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,i=(u,h)=>{n.addEventListener(this,u,h),t[u]=h},r=(u,h)=>{t[u]&&(n.removeEventListener(this,u,h),delete t[u])},a=(u,h)=>{this.canvas&&this.resize(u,h)};let o;const l=()=>{r("attach",l),this.attached=!0,this.resize(),i("resize",a),i("detach",o)};o=()=>{this.attached=!1,r("resize",a),this._stop(),this._resize(0,0),i("attach",l)},n.isAttached(this.canvas)?l():o()}unbindEvents(){each(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},each(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,i){const r=i?"set":"remove";let a,o,l,u;for(n==="dataset"&&(a=this.getDatasetMeta(t[0].datasetIndex),a.controller["_"+r+"DatasetHoverStyle"]()),l=0,u=t.length;l<u;++l){o=t[l];const h=o&&this.getDatasetMeta(o.datasetIndex).controller;h&&h[r+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],i=t.map(({datasetIndex:a,index:o})=>{const l=this.getDatasetMeta(a);if(!l)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:l.data[o],index:o}});!_elementsEqual(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(t,n,i){return this._plugins.notify(this,t,n,i)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,i){const r=this.options.hover,a=(u,h)=>u.filter(m=>!h.some(g=>m.datasetIndex===g.datasetIndex&&m.index===g.index)),o=a(n,t),l=i?t:a(t,n);o.length&&this.updateHoverStyle(o,r.mode,!1),l.length&&r.mode&&this.updateHoverStyle(l,r.mode,!0)}_eventHandler(t,n){const i={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},r=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",i,r)===!1)return;const a=this._handleEvent(t,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,r),(a||i.changed)&&this.render(),this}_handleEvent(t,n,i){const{_active:r=[],options:a}=this,o=n,l=this._getActiveElements(t,r,i,o),u=_isClickEvent(t),h=determineLastEvent(t,this._lastEvent,i,u);i&&(this._lastEvent=null,callback(a.onHover,[t,l,this],this),u&&callback(a.onClick,[t,l,this],this));const m=!_elementsEqual(l,r);return(m||n)&&(this._active=l,this._updateHoverStyles(l,r,n)),this._lastEvent=h,m}_getActiveElements(t,n,i,r){if(t.type==="mouseout")return[];if(!i)return n;const a=this.options.hover;return this.getElementsAtEventForMode(t,a.mode,a,r)}}Y(Chart,"defaults",defaults),Y(Chart,"instances",instances),Y(Chart,"overrides",overrides),Y(Chart,"registry",registry),Y(Chart,"version",version),Y(Chart,"getChart",getChart);function invalidatePlugins(){return each(Chart.instances,e=>e._plugins.invalidate())}function clipArc(e,t,n){const{startAngle:i,pixelMargin:r,x:a,y:o,outerRadius:l,innerRadius:u}=t;let h=r/l;e.beginPath(),e.arc(a,o,l,i-h,n+h),u>r?(h=r/u,e.arc(a,o,u,n+h,i-h,!0)):e.arc(a,o,r,n+HALF_PI,i-HALF_PI),e.closePath(),e.clip()}function toRadiusCorners(e){return _readValueToProps(e,["outerStart","outerEnd","innerStart","innerEnd"])}function parseBorderRadius$1(e,t,n,i){const r=toRadiusCorners(e.options.borderRadius),a=(n-t)/2,o=Math.min(a,i*t/2),l=u=>{const h=(n-Math.min(a,u))*i/2;return _limitValue(u,0,Math.min(a,h))};return{outerStart:l(r.outerStart),outerEnd:l(r.outerEnd),innerStart:_limitValue(r.innerStart,0,o),innerEnd:_limitValue(r.innerEnd,0,o)}}function rThetaToXY(e,t,n,i){return{x:n+e*Math.cos(t),y:i+e*Math.sin(t)}}function pathArc(e,t,n,i,r,a){const{x:o,y:l,startAngle:u,pixelMargin:h,innerRadius:m}=t,g=Math.max(t.outerRadius+i+n-h,0),_=m>0?m+i+n+h:0;let v=0;const w=r-u;if(i){const C=m>0?m-i:0,D=g>0?g-i:0,I=(C+D)/2,N=I!==0?w*I/(I+i):w;v=(w-N)/2}const $=Math.max(.001,w*g-n/PI)/g,x=(w-$)/2,M=u+x+v,T=r-x-v,{outerStart:R,outerEnd:W,innerStart:V,innerEnd:K}=parseBorderRadius$1(t,_,g,T-M),U=g-R,y=g-W,E=M+R/U,S=T-W/y,O=_+V,A=_+K,F=M+V/O,z=T-K/A;if(e.beginPath(),a){const C=(E+S)/2;if(e.arc(o,l,g,E,C),e.arc(o,l,g,C,S),W>0){const G=rThetaToXY(y,S,o,l);e.arc(G.x,G.y,W,S,T+HALF_PI)}const D=rThetaToXY(A,T,o,l);if(e.lineTo(D.x,D.y),K>0){const G=rThetaToXY(A,z,o,l);e.arc(G.x,G.y,K,T+HALF_PI,z+Math.PI)}const I=(T-K/_+(M+V/_))/2;if(e.arc(o,l,_,T-K/_,I,!0),e.arc(o,l,_,I,M+V/_,!0),V>0){const G=rThetaToXY(O,F,o,l);e.arc(G.x,G.y,V,F+Math.PI,M-HALF_PI)}const N=rThetaToXY(U,M,o,l);if(e.lineTo(N.x,N.y),R>0){const G=rThetaToXY(U,E,o,l);e.arc(G.x,G.y,R,M-HALF_PI,E)}}else{e.moveTo(o,l);const C=Math.cos(E)*g+o,D=Math.sin(E)*g+l;e.lineTo(C,D);const I=Math.cos(S)*g+o,N=Math.sin(S)*g+l;e.lineTo(I,N)}e.closePath()}function drawArc(e,t,n,i,r){const{fullCircles:a,startAngle:o,circumference:l}=t;let u=t.endAngle;if(a){pathArc(e,t,n,i,u,r);for(let h=0;h<a;++h)e.fill();isNaN(l)||(u=o+(l%TAU||TAU))}return pathArc(e,t,n,i,u,r),e.fill(),u}function drawBorder(e,t,n,i,r){const{fullCircles:a,startAngle:o,circumference:l,options:u}=t,{borderWidth:h,borderJoinStyle:m,borderDash:g,borderDashOffset:_}=u,v=u.borderAlign==="inner";if(!h)return;e.setLineDash(g||[]),e.lineDashOffset=_,v?(e.lineWidth=h*2,e.lineJoin=m||"round"):(e.lineWidth=h,e.lineJoin=m||"bevel");let w=t.endAngle;if(a){pathArc(e,t,n,i,w,r);for(let $=0;$<a;++$)e.stroke();isNaN(l)||(w=o+(l%TAU||TAU))}v&&clipArc(e,t,w),a||(pathArc(e,t,n,i,w,r),e.stroke())}class ArcElement extends Element$1{constructor(n){super();Y(this,"circumference");Y(this,"endAngle");Y(this,"fullCircles");Y(this,"innerRadius");Y(this,"outerRadius");Y(this,"pixelMargin");Y(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,i,r){const a=this.getProps(["x","y"],r),{angle:o,distance:l}=getAngleFromPoint(a,{x:n,y:i}),{startAngle:u,endAngle:h,innerRadius:m,outerRadius:g,circumference:_}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),v=(this.options.spacing+this.options.borderWidth)/2,$=valueOrDefault(_,h-u)>=TAU||_angleBetween(o,u,h),x=_isBetween(l,m+v,g+v);return $&&x}getCenterPoint(n){const{x:i,y:r,startAngle:a,endAngle:o,innerRadius:l,outerRadius:u}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:h,spacing:m}=this.options,g=(a+o)/2,_=(l+u+m+h)/2;return{x:i+Math.cos(g)*_,y:r+Math.sin(g)*_}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:i,circumference:r}=this,a=(i.offset||0)/4,o=(i.spacing||0)/2,l=i.circular;if(this.pixelMargin=i.borderAlign==="inner"?.33:0,this.fullCircles=r>TAU?Math.floor(r/TAU):0,r===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const u=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(u)*a,Math.sin(u)*a);const h=1-Math.sin(Math.min(PI,r||0)),m=a*h;n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,drawArc(n,this,m,o,l),drawBorder(n,this,m,o,l),n.restore()}}Y(ArcElement,"id","arc"),Y(ArcElement,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),Y(ArcElement,"defaultRoutes",{backgroundColor:"backgroundColor"}),Y(ArcElement,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function setStyle$1(e,t,n=t){e.lineCap=valueOrDefault(n.borderCapStyle,t.borderCapStyle),e.setLineDash(valueOrDefault(n.borderDash,t.borderDash)),e.lineDashOffset=valueOrDefault(n.borderDashOffset,t.borderDashOffset),e.lineJoin=valueOrDefault(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=valueOrDefault(n.borderWidth,t.borderWidth),e.strokeStyle=valueOrDefault(n.borderColor,t.borderColor)}function lineTo(e,t,n){e.lineTo(n.x,n.y)}function getLineMethod(e){return e.stepped?_steppedLineTo:e.tension||e.cubicInterpolationMode==="monotone"?_bezierCurveTo:lineTo}function pathVars(e,t,n={}){const i=e.length,{start:r=0,end:a=i-1}=n,{start:o,end:l}=t,u=Math.max(r,o),h=Math.min(a,l),m=r<o&&a<o||r>l&&a>l;return{count:i,start:u,loop:t.loop,ilen:h<u&&!m?i+h-u:h-u}}function pathSegment(e,t,n,i){const{points:r,options:a}=t,{count:o,start:l,loop:u,ilen:h}=pathVars(r,n,i),m=getLineMethod(a);let{move:g=!0,reverse:_}=i||{},v,w,$;for(v=0;v<=h;++v)w=r[(l+(_?h-v:v))%o],!w.skip&&(g?(e.moveTo(w.x,w.y),g=!1):m(e,$,w,_,a.stepped),$=w);return u&&(w=r[(l+(_?h:0))%o],m(e,$,w,_,a.stepped)),!!u}function fastPathSegment(e,t,n,i){const r=t.points,{count:a,start:o,ilen:l}=pathVars(r,n,i),{move:u=!0,reverse:h}=i||{};let m=0,g=0,_,v,w,$,x,M;const T=W=>(o+(h?l-W:W))%a,R=()=>{$!==x&&(e.lineTo(m,x),e.lineTo(m,$),e.lineTo(m,M))};for(u&&(v=r[T(0)],e.moveTo(v.x,v.y)),_=0;_<=l;++_){if(v=r[T(_)],v.skip)continue;const W=v.x,V=v.y,K=W|0;K===w?(V<$?$=V:V>x&&(x=V),m=(g*m+W)/++g):(R(),e.lineTo(W,V),w=K,g=0,$=x=V),M=V}R()}function _getSegmentMethod(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?fastPathSegment:pathSegment}function _getInterpolationMethod(e){return e.stepped?_steppedInterpolation:e.tension||e.cubicInterpolationMode==="monotone"?_bezierInterpolation:_pointInLine}function strokePathWithCache(e,t,n,i){let r=t._path;r||(r=t._path=new Path2D,t.path(r,n,i)&&r.closePath()),setStyle$1(e,t.options),e.stroke(r)}function strokePathDirect(e,t,n,i){const{segments:r,options:a}=t,o=_getSegmentMethod(t);for(const l of r)setStyle$1(e,a,l.style),e.beginPath(),o(e,t,l,{start:n,end:n+i-1})&&e.closePath(),e.stroke()}const usePath2D=typeof Path2D=="function";function draw(e,t,n,i){usePath2D&&!t.options.segment?strokePathWithCache(e,t,n,i):strokePathDirect(e,t,n,i)}class LineElement extends Element$1{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const r=i.spanGaps?this._loop:this._fullLoop;_updateBezierControlPoints(this._points,i,t,r,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=_computeSegments(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,i=t.length;return i&&n[t[i-1].end]}interpolate(t,n){const i=this.options,r=t[n],a=this.points,o=_boundSegments(this,{property:n,start:r,end:r});if(!o.length)return;const l=[],u=_getInterpolationMethod(i);let h,m;for(h=0,m=o.length;h<m;++h){const{start:g,end:_}=o[h],v=a[g],w=a[_];if(v===w){l.push(v);continue}const $=Math.abs((r-v[n])/(w[n]-v[n])),x=u(v,w,$,i.stepped);x[n]=t[n],l.push(x)}return l.length===1?l[0]:l}pathSegment(t,n,i){return _getSegmentMethod(this)(t,this,n,i)}path(t,n,i){const r=this.segments,a=_getSegmentMethod(this);let o=this._loop;n=n||0,i=i||this.points.length-n;for(const l of r)o&=a(t,this,l,{start:n,end:n+i-1});return!!o}draw(t,n,i,r){const a=this.options||{};(this.points||[]).length&&a.borderWidth&&(t.save(),draw(t,this,i,r),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}Y(LineElement,"id","line"),Y(LineElement,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),Y(LineElement,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),Y(LineElement,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function inRange$1(e,t,n,i){const r=e.options,{[n]:a}=e.getProps([n],i);return Math.abs(t-a)<r.radius+r.hitRadius}class PointElement extends Element$1{constructor(n){super();Y(this,"parsed");Y(this,"skip");Y(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,i,r){const a=this.options,{x:o,y:l}=this.getProps(["x","y"],r);return Math.pow(n-o,2)+Math.pow(i-l,2)<Math.pow(a.hitRadius+a.radius,2)}inXRange(n,i){return inRange$1(this,n,"x",i)}inYRange(n,i){return inRange$1(this,n,"y",i)}getCenterPoint(n){const{x:i,y:r}=this.getProps(["x","y"],n);return{x:i,y:r}}size(n){n=n||this.options||{};let i=n.radius||0;i=Math.max(i,i&&n.hoverRadius||0);const r=i&&n.borderWidth||0;return(i+r)*2}draw(n,i){const r=this.options;this.skip||r.radius<.1||!_isPointInArea(this,i,this.size(r)/2)||(n.strokeStyle=r.borderColor,n.lineWidth=r.borderWidth,n.fillStyle=r.backgroundColor,drawPoint(n,r,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}Y(PointElement,"id","point"),Y(PointElement,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),Y(PointElement,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function getBarBounds(e,t){const{x:n,y:i,base:r,width:a,height:o}=e.getProps(["x","y","base","width","height"],t);let l,u,h,m,g;return e.horizontal?(g=o/2,l=Math.min(n,r),u=Math.max(n,r),h=i-g,m=i+g):(g=a/2,l=n-g,u=n+g,h=Math.min(i,r),m=Math.max(i,r)),{left:l,top:h,right:u,bottom:m}}function skipOrLimit(e,t,n,i){return e?0:_limitValue(t,n,i)}function parseBorderWidth(e,t,n){const i=e.options.borderWidth,r=e.borderSkipped,a=toTRBL(i);return{t:skipOrLimit(r.top,a.top,0,n),r:skipOrLimit(r.right,a.right,0,t),b:skipOrLimit(r.bottom,a.bottom,0,n),l:skipOrLimit(r.left,a.left,0,t)}}function parseBorderRadius(e,t,n){const{enableBorderRadius:i}=e.getProps(["enableBorderRadius"]),r=e.options.borderRadius,a=toTRBLCorners(r),o=Math.min(t,n),l=e.borderSkipped,u=i||isObject$8(r);return{topLeft:skipOrLimit(!u||l.top||l.left,a.topLeft,0,o),topRight:skipOrLimit(!u||l.top||l.right,a.topRight,0,o),bottomLeft:skipOrLimit(!u||l.bottom||l.left,a.bottomLeft,0,o),bottomRight:skipOrLimit(!u||l.bottom||l.right,a.bottomRight,0,o)}}function boundingRects(e){const t=getBarBounds(e),n=t.right-t.left,i=t.bottom-t.top,r=parseBorderWidth(e,n/2,i/2),a=parseBorderRadius(e,n/2,i/2);return{outer:{x:t.left,y:t.top,w:n,h:i,radius:a},inner:{x:t.left+r.l,y:t.top+r.t,w:n-r.l-r.r,h:i-r.t-r.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,a.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(r.b,r.r))}}}}function inRange(e,t,n,i){const r=t===null,a=n===null,l=e&&!(r&&a)&&getBarBounds(e,i);return l&&(r||_isBetween(t,l.left,l.right))&&(a||_isBetween(n,l.top,l.bottom))}function hasRadius(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function addNormalRectPath(e,t){e.rect(t.x,t.y,t.w,t.h)}function inflateRect(e,t,n={}){const i=e.x!==n.x?-t:0,r=e.y!==n.y?-t:0,a=(e.x+e.w!==n.x+n.w?t:0)-i,o=(e.y+e.h!==n.y+n.h?t:0)-r;return{x:e.x+i,y:e.y+r,w:e.w+a,h:e.h+o,radius:e.radius}}class BarElement extends Element$1{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:i,backgroundColor:r}}=this,{inner:a,outer:o}=boundingRects(this),l=hasRadius(o.radius)?addRoundedRectPath:addNormalRectPath;t.save(),(o.w!==a.w||o.h!==a.h)&&(t.beginPath(),l(t,inflateRect(o,n,a)),t.clip(),l(t,inflateRect(a,-n,o)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),l(t,inflateRect(a,n)),t.fillStyle=r,t.fill(),t.restore()}inRange(t,n,i){return inRange(this,t,n,i)}inXRange(t,n){return inRange(this,t,null,n)}inYRange(t,n){return inRange(this,null,t,n)}getCenterPoint(t){const{x:n,y:i,base:r,horizontal:a}=this.getProps(["x","y","base","horizontal"],t);return{x:a?(n+r)/2:n,y:a?i:(i+r)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}Y(BarElement,"id","bar"),Y(BarElement,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),Y(BarElement,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const BORDER_COLORS=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],BACKGROUND_COLORS=BORDER_COLORS.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function getBorderColor(e){return BORDER_COLORS[e%BORDER_COLORS.length]}function getBackgroundColor(e){return BACKGROUND_COLORS[e%BACKGROUND_COLORS.length]}function colorizeDefaultDataset(e,t){return e.borderColor=getBorderColor(t),e.backgroundColor=getBackgroundColor(t),++t}function colorizeDoughnutDataset(e,t){return e.backgroundColor=e.data.map(()=>getBorderColor(t++)),t}function colorizePolarAreaDataset(e,t){return e.backgroundColor=e.data.map(()=>getBackgroundColor(t++)),t}function getColorizer(e){let t=0;return(n,i)=>{const r=e.getDatasetMeta(i).controller;r instanceof DoughnutController?t=colorizeDoughnutDataset(n,t):r instanceof PolarAreaController?t=colorizePolarAreaDataset(n,t):r&&(t=colorizeDefaultDataset(n,t))}}function containsColorsDefinitions(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function containsColorsDefinition(e){return e&&(e.borderColor||e.backgroundColor)}var plugin_colors={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:i},options:r}=e.config,{elements:a}=r;if(!n.forceOverride&&(containsColorsDefinitions(i)||containsColorsDefinition(r)||a&&containsColorsDefinitions(a)))return;const o=getColorizer(e);i.forEach(o)}};function _segments(e,t,n){const i=e.segments,r=e.points,a=t.points,o=[];for(const l of i){let{start:u,end:h}=l;h=_findSegmentEnd(u,h,r);const m=_getBounds(n,r[u],r[h],l.loop);if(!t.segments){o.push({source:l,target:m,start:r[u],end:r[h]});continue}const g=_boundSegments(t,m);for(const _ of g){const v=_getBounds(n,a[_.start],a[_.end],_.loop),w=_boundSegment(l,r,v);for(const $ of w)o.push({source:$,target:_,start:{[n]:_getEdge(m,v,"start",Math.max)},end:{[n]:_getEdge(m,v,"end",Math.min)}})}}return o}function _getBounds(e,t,n,i){if(i)return;let r=t[e],a=n[e];return e==="angle"&&(r=_normalizeAngle(r),a=_normalizeAngle(a)),{property:e,start:r,end:a}}function _pointsFromSegments(e,t){const{x:n=null,y:i=null}=e||{},r=t.points,a=[];return t.segments.forEach(({start:o,end:l})=>{l=_findSegmentEnd(o,l,r);const u=r[o],h=r[l];i!==null?(a.push({x:u.x,y:i}),a.push({x:h.x,y:i})):n!==null&&(a.push({x:n,y:u.y}),a.push({x:n,y:h.y}))}),a}function _findSegmentEnd(e,t,n){for(;t>e;t--){const i=n[t];if(!isNaN(i.x)&&!isNaN(i.y))break}return t}function _getEdge(e,t,n,i){return e&&t?i(e[n],t[n]):e?e[n]:t?t[n]:0}function _createBoundaryLine(e,t){let n=[],i=!1;return isArray$b(e)?(i=!0,n=e):n=_pointsFromSegments(e,t),n.length?new LineElement({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function _shouldApplyFill(e){return e&&e.fill!==!1}function _resolveTarget(e,t,n){let r=e[t].fill;const a=[t];let o;if(!n)return r;for(;r!==!1&&a.indexOf(r)===-1;){if(!isNumberFinite(r))return r;if(o=e[r],!o)return!1;if(o.visible)return r;a.push(r),r=o.fill}return!1}function _decodeFill(e,t,n){const i=parseFillOption(e);if(isObject$8(i))return isNaN(i.value)?!1:i;let r=parseFloat(i);return isNumberFinite(r)&&Math.floor(r)===r?decodeTargetIndex(i[0],t,r,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function decodeTargetIndex(e,t,n,i){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=i?!1:n}function _getTargetPixel(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:isObject$8(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function _getTargetValue(e,t,n){let i;return e==="start"?i=n:e==="end"?i=t.options.reverse?t.min:t.max:isObject$8(e)?i=e.value:i=t.getBaseValue(),i}function parseFillOption(e){const t=e.options,n=t.fill;let i=valueOrDefault(n&&n.target,n);return i===void 0&&(i=!!t.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function _buildStackLine(e){const{scale:t,index:n,line:i}=e,r=[],a=i.segments,o=i.points,l=getLinesBelow(t,n);l.push(_createBoundaryLine({x:null,y:t.bottom},i));for(let u=0;u<a.length;u++){const h=a[u];for(let m=h.start;m<=h.end;m++)addPointsBelow(r,o[m],l)}return new LineElement({points:r,options:{}})}function getLinesBelow(e,t){const n=[],i=e.getMatchingVisibleMetas("line");for(let r=0;r<i.length;r++){const a=i[r];if(a.index===t)break;a.hidden||n.unshift(a.dataset)}return n}function addPointsBelow(e,t,n){const i=[];for(let r=0;r<n.length;r++){const a=n[r],{first:o,last:l,point:u}=findPoint(a,t,"x");if(!(!u||o&&l)){if(o)i.unshift(u);else if(e.push(u),!l)break}}e.push(...i)}function findPoint(e,t,n){const i=e.interpolate(t,n);if(!i)return{};const r=i[n],a=e.segments,o=e.points;let l=!1,u=!1;for(let h=0;h<a.length;h++){const m=a[h],g=o[m.start][n],_=o[m.end][n];if(_isBetween(r,g,_)){l=r===g,u=r===_;break}}return{first:l,last:u,point:i}}class simpleArc{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,i){const{x:r,y:a,radius:o}=this;return n=n||{start:0,end:TAU},t.arc(r,a,o,n.end,n.start,!0),!i.bounds}interpolate(t){const{x:n,y:i,radius:r}=this,a=t.angle;return{x:n+Math.cos(a)*r,y:i+Math.sin(a)*r,angle:a}}}function _getTarget(e){const{chart:t,fill:n,line:i}=e;if(isNumberFinite(n))return getLineByIndex(t,n);if(n==="stack")return _buildStackLine(e);if(n==="shape")return!0;const r=computeBoundary(e);return r instanceof simpleArc?r:_createBoundaryLine(r,i)}function getLineByIndex(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function computeBoundary(e){return(e.scale||{}).getPointPositionForValue?computeCircularBoundary(e):computeLinearBoundary(e)}function computeLinearBoundary(e){const{scale:t={},fill:n}=e,i=_getTargetPixel(n,t);if(isNumberFinite(i)){const r=t.isHorizontal();return{x:r?i:null,y:r?null:i}}return null}function computeCircularBoundary(e){const{scale:t,fill:n}=e,i=t.options,r=t.getLabels().length,a=i.reverse?t.max:t.min,o=_getTargetValue(n,t,a),l=[];if(i.grid.circular){const u=t.getPointPositionForValue(0,a);return new simpleArc({x:u.x,y:u.y,radius:t.getDistanceFromCenterForValue(o)})}for(let u=0;u<r;++u)l.push(t.getPointPositionForValue(u,o));return l}function _drawfill(e,t,n){const i=_getTarget(t),{line:r,scale:a,axis:o}=t,l=r.options,u=l.fill,h=l.backgroundColor,{above:m=h,below:g=h}=u||{};i&&r.points.length&&(clipArea(e,n),doFill(e,{line:r,target:i,above:m,below:g,area:n,scale:a,axis:o}),unclipArea(e))}function doFill(e,t){const{line:n,target:i,above:r,below:a,area:o,scale:l}=t,u=n._loop?"angle":t.axis;e.save(),u==="x"&&a!==r&&(clipVertical(e,i,o.top),fill(e,{line:n,target:i,color:r,scale:l,property:u}),e.restore(),e.save(),clipVertical(e,i,o.bottom)),fill(e,{line:n,target:i,color:a,scale:l,property:u}),e.restore()}function clipVertical(e,t,n){const{segments:i,points:r}=t;let a=!0,o=!1;e.beginPath();for(const l of i){const{start:u,end:h}=l,m=r[u],g=r[_findSegmentEnd(u,h,r)];a?(e.moveTo(m.x,m.y),a=!1):(e.lineTo(m.x,n),e.lineTo(m.x,m.y)),o=!!t.pathSegment(e,l,{move:o}),o?e.closePath():e.lineTo(g.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function fill(e,t){const{line:n,target:i,property:r,color:a,scale:o}=t,l=_segments(n,i,r);for(const{source:u,target:h,start:m,end:g}of l){const{style:{backgroundColor:_=a}={}}=u,v=i!==!0;e.save(),e.fillStyle=_,clipBounds(e,o,v&&_getBounds(r,m,g)),e.beginPath();const w=!!n.pathSegment(e,u);let $;if(v){w?e.closePath():interpolatedLineTo(e,i,g,r);const x=!!i.pathSegment(e,h,{move:w,reverse:!0});$=w&&x,$||interpolatedLineTo(e,i,m,r)}e.closePath(),e.fill($?"evenodd":"nonzero"),e.restore()}}function clipBounds(e,t,n){const{top:i,bottom:r}=t.chart.chartArea,{property:a,start:o,end:l}=n||{};a==="x"&&(e.beginPath(),e.rect(o,i,l-o,r-i),e.clip())}function interpolatedLineTo(e,t,n,i){const r=t.interpolate(n,i);r&&e.lineTo(r.x,r.y)}var index={id:"filler",afterDatasetsUpdate(e,t,n){const i=(e.data.datasets||[]).length,r=[];let a,o,l,u;for(o=0;o<i;++o)a=e.getDatasetMeta(o),l=a.dataset,u=null,l&&l.options&&l instanceof LineElement&&(u={visible:e.isDatasetVisible(o),index:o,fill:_decodeFill(l,o,i),chart:e,axis:a.controller.options.indexAxis,scale:a.vScale,line:l}),a.$filler=u,r.push(u);for(o=0;o<i;++o)u=r[o],!(!u||u.fill===!1)&&(u.fill=_resolveTarget(r,o,n.propagate))},beforeDraw(e,t,n){const i=n.drawTime==="beforeDraw",r=e.getSortedVisibleDatasetMetas(),a=e.chartArea;for(let o=r.length-1;o>=0;--o){const l=r[o].$filler;l&&(l.line.updateControlPoints(a,l.axis),i&&l.fill&&_drawfill(e.ctx,l,a))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const i=e.getSortedVisibleDatasetMetas();for(let r=i.length-1;r>=0;--r){const a=i[r].$filler;_shouldApplyFill(a)&&_drawfill(e.ctx,a,e.chartArea)}},beforeDatasetDraw(e,t,n){const i=t.meta.$filler;!_shouldApplyFill(i)||n.drawTime!=="beforeDatasetDraw"||_drawfill(e.ctx,i,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const getBoxSize=(e,t)=>{let{boxHeight:n=t,boxWidth:i=t}=e;return e.usePointStyle&&(n=Math.min(n,t),i=e.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(t,n)}},itemsEqual=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Legend extends Element$1{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,i){this.maxWidth=t,this.maxHeight=n,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=callback(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(i=>t.filter(i,this.chart.data))),t.sort&&(n=n.sort((i,r)=>t.sort(i,r,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const i=t.labels,r=toFont(i.font),a=r.size,o=this._computeTitleHeight(),{boxWidth:l,itemHeight:u}=getBoxSize(i,a);let h,m;n.font=r.string,this.isHorizontal()?(h=this.maxWidth,m=this._fitRows(o,a,l,u)+10):(m=this.maxHeight,h=this._fitCols(o,r,l,u)+10),this.width=Math.min(h,t.maxWidth||this.maxWidth),this.height=Math.min(m,t.maxHeight||this.maxHeight)}_fitRows(t,n,i,r){const{ctx:a,maxWidth:o,options:{labels:{padding:l}}}=this,u=this.legendHitBoxes=[],h=this.lineWidths=[0],m=r+l;let g=t;a.textAlign="left",a.textBaseline="middle";let _=-1,v=-m;return this.legendItems.forEach((w,$)=>{const x=i+n/2+a.measureText(w.text).width;($===0||h[h.length-1]+x+2*l>o)&&(g+=m,h[h.length-($>0?0:1)]=0,v+=m,_++),u[$]={left:0,top:v,row:_,width:x,height:r},h[h.length-1]+=x+l}),g}_fitCols(t,n,i,r){const{ctx:a,maxHeight:o,options:{labels:{padding:l}}}=this,u=this.legendHitBoxes=[],h=this.columnSizes=[],m=o-t;let g=l,_=0,v=0,w=0,$=0;return this.legendItems.forEach((x,M)=>{const{itemWidth:T,itemHeight:R}=calculateItemSize(i,n,a,x,r);M>0&&v+R+2*l>m&&(g+=_+l,h.push({width:_,height:v}),w+=_+l,$++,_=v=0),u[M]={left:w,top:v,col:$,width:T,height:R},_=Math.max(_,T),v+=R+l}),g+=_,h.push({width:_,height:v}),g}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:i,labels:{padding:r},rtl:a}}=this,o=getRtlAdapter(a,this.left,this.width);if(this.isHorizontal()){let l=0,u=_alignStartEnd(i,this.left+r,this.right-this.lineWidths[l]);for(const h of n)l!==h.row&&(l=h.row,u=_alignStartEnd(i,this.left+r,this.right-this.lineWidths[l])),h.top+=this.top+t+r,h.left=o.leftForLtr(o.x(u),h.width),u+=h.width+r}else{let l=0,u=_alignStartEnd(i,this.top+t+r,this.bottom-this.columnSizes[l].height);for(const h of n)h.col!==l&&(l=h.col,u=_alignStartEnd(i,this.top+t+r,this.bottom-this.columnSizes[l].height)),h.top=u,h.left+=this.left+r,h.left=o.leftForLtr(o.x(h.left),h.width),u+=h.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;clipArea(t,this),this._draw(),unclipArea(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:i,ctx:r}=this,{align:a,labels:o}=t,l=defaults.color,u=getRtlAdapter(t.rtl,this.left,this.width),h=toFont(o.font),{padding:m}=o,g=h.size,_=g/2;let v;this.drawTitle(),r.textAlign=u.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=h.string;const{boxWidth:w,boxHeight:$,itemHeight:x}=getBoxSize(o,g),M=function(K,U,y){if(isNaN(w)||w<=0||isNaN($)||$<0)return;r.save();const E=valueOrDefault(y.lineWidth,1);if(r.fillStyle=valueOrDefault(y.fillStyle,l),r.lineCap=valueOrDefault(y.lineCap,"butt"),r.lineDashOffset=valueOrDefault(y.lineDashOffset,0),r.lineJoin=valueOrDefault(y.lineJoin,"miter"),r.lineWidth=E,r.strokeStyle=valueOrDefault(y.strokeStyle,l),r.setLineDash(valueOrDefault(y.lineDash,[])),o.usePointStyle){const S={radius:$*Math.SQRT2/2,pointStyle:y.pointStyle,rotation:y.rotation,borderWidth:E},O=u.xPlus(K,w/2),A=U+_;drawPointLegend(r,S,O,A,o.pointStyleWidth&&w)}else{const S=U+Math.max((g-$)/2,0),O=u.leftForLtr(K,w),A=toTRBLCorners(y.borderRadius);r.beginPath(),Object.values(A).some(F=>F!==0)?addRoundedRectPath(r,{x:O,y:S,w,h:$,radius:A}):r.rect(O,S,w,$),r.fill(),E!==0&&r.stroke()}r.restore()},T=function(K,U,y){renderText(r,y.text,K,U+x/2,h,{strikethrough:y.hidden,textAlign:u.textAlign(y.textAlign)})},R=this.isHorizontal(),W=this._computeTitleHeight();R?v={x:_alignStartEnd(a,this.left+m,this.right-i[0]),y:this.top+m+W,line:0}:v={x:this.left+m,y:_alignStartEnd(a,this.top+W+m,this.bottom-n[0].height),line:0},overrideTextDirection(this.ctx,t.textDirection);const V=x+m;this.legendItems.forEach((K,U)=>{r.strokeStyle=K.fontColor,r.fillStyle=K.fontColor;const y=r.measureText(K.text).width,E=u.textAlign(K.textAlign||(K.textAlign=o.textAlign)),S=w+_+y;let O=v.x,A=v.y;u.setWidth(this.width),R?U>0&&O+S+m>this.right&&(A=v.y+=V,v.line++,O=v.x=_alignStartEnd(a,this.left+m,this.right-i[v.line])):U>0&&A+V>this.bottom&&(O=v.x=O+n[v.line].width+m,v.line++,A=v.y=_alignStartEnd(a,this.top+W+m,this.bottom-n[v.line].height));const F=u.x(O);if(M(F,A,K),O=_textX(E,O+w+_,R?O+S:this.right,t.rtl),T(u.x(O),A,K),R)v.x+=S+m;else if(typeof K.text!="string"){const z=h.lineHeight;v.y+=calculateLegendItemHeight(K,z)+m}else v.y+=V}),restoreTextDirection(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,i=toFont(n.font),r=toPadding(n.padding);if(!n.display)return;const a=getRtlAdapter(t.rtl,this.left,this.width),o=this.ctx,l=n.position,u=i.size/2,h=r.top+u;let m,g=this.left,_=this.width;if(this.isHorizontal())_=Math.max(...this.lineWidths),m=this.top+h,g=_alignStartEnd(t.align,g,this.right-_);else{const w=this.columnSizes.reduce(($,x)=>Math.max($,x.height),0);m=h+_alignStartEnd(t.align,this.top,this.bottom-w-t.labels.padding-this._computeTitleHeight())}const v=_alignStartEnd(l,g,g+_);o.textAlign=a.textAlign(_toLeftRightCenter(l)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=i.string,renderText(o,n.text,v,m,i)}_computeTitleHeight(){const t=this.options.title,n=toFont(t.font),i=toPadding(t.padding);return t.display?n.lineHeight+i.height:0}_getLegendItemAt(t,n){let i,r,a;if(_isBetween(t,this.left,this.right)&&_isBetween(n,this.top,this.bottom)){for(a=this.legendHitBoxes,i=0;i<a.length;++i)if(r=a[i],_isBetween(t,r.left,r.left+r.width)&&_isBetween(n,r.top,r.top+r.height))return this.legendItems[i]}return null}handleEvent(t){const n=this.options;if(!isListened(t.type,n))return;const i=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const r=this._hoveredItem,a=itemsEqual(r,i);r&&!a&&callback(n.onLeave,[t,r,this],this),this._hoveredItem=i,i&&!a&&callback(n.onHover,[t,i,this],this)}else i&&callback(n.onClick,[t,i,this],this)}}function calculateItemSize(e,t,n,i,r){const a=calculateItemWidth(i,e,t,n),o=calculateItemHeight(r,i,t.lineHeight);return{itemWidth:a,itemHeight:o}}function calculateItemWidth(e,t,n,i){let r=e.text;return r&&typeof r!="string"&&(r=r.reduce((a,o)=>a.length>o.length?a:o)),t+n.size/2+i.measureText(r).width}function calculateItemHeight(e,t,n){let i=e;return typeof t.text!="string"&&(i=calculateLegendItemHeight(t,n)),i}function calculateLegendItemHeight(e,t){const n=e.text?e.text.length:0;return t*n}function isListened(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var plugin_legend={id:"legend",_element:Legend,start(e,t,n){const i=e.legend=new Legend({ctx:e.ctx,options:n,chart:e});layouts.configure(e,i,n),layouts.addBox(e,i)},stop(e){layouts.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const i=e.legend;layouts.configure(e,i,n),i.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const i=t.datasetIndex,r=n.chart;r.isDatasetVisible(i)?(r.hide(i),t.hidden=!0):(r.show(i),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:r,color:a,useBorderRadius:o,borderRadius:l}}=e.legend.options;return e._getSortedDatasetMetas().map(u=>{const h=u.controller.getStyle(n?0:void 0),m=toPadding(h.borderWidth);return{text:t[u.index].label,fillStyle:h.backgroundColor,fontColor:a,hidden:!u.visible,lineCap:h.borderCapStyle,lineDash:h.borderDash,lineDashOffset:h.borderDashOffset,lineJoin:h.borderJoinStyle,lineWidth:(m.width+m.height)/4,strokeStyle:h.borderColor,pointStyle:i||h.pointStyle,rotation:h.rotation,textAlign:r||h.textAlign,borderRadius:o&&(l||h.borderRadius),datasetIndex:u.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};const positioners={average(e){if(!e.length)return!1;let t,n,i=0,r=0,a=0;for(t=0,n=e.length;t<n;++t){const o=e[t].element;if(o&&o.hasValue()){const l=o.tooltipPosition();i+=l.x,r+=l.y,++a}}return{x:i/a,y:r/a}},nearest(e,t){if(!e.length)return!1;let n=t.x,i=t.y,r=Number.POSITIVE_INFINITY,a,o,l;for(a=0,o=e.length;a<o;++a){const u=e[a].element;if(u&&u.hasValue()){const h=u.getCenterPoint(),m=distanceBetweenPoints(t,h);m<r&&(r=m,l=u)}}if(l){const u=l.tooltipPosition();n=u.x,i=u.y}return{x:n,y:i}}};function pushOrConcat(e,t){return t&&(isArray$b(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function splitNewlines(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
+ */class Animator{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,i,r){const a=n.listeners[r],o=n.duration;a.forEach(l=>l({chart:t,initial:n.initial,numSteps:o,currentStep:Math.min(i-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=requestAnimFrame.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((i,r)=>{if(!i.running||!i.items.length)return;const a=i.items;let o=a.length-1,l=!1,u;for(;o>=0;--o)u=a[o],u._active?(u._total>i.duration&&(i.duration=u._total),u.tick(t),l=!0):(a[o]=a[a.length-1],a.pop());l&&(r.draw(),this._notify(r,i,t,"progress")),a.length||(i.running=!1,this._notify(r,i,t,"complete"),i.initial=!1),n+=a.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let i=n.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,i)),i}listen(t,n,i){this._getAnims(t).listeners[n].push(i)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((i,r)=>Math.max(i,r._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const i=n.items;let r=i.length-1;for(;r>=0;--r)i[r].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var animator=new Animator;const transparent="transparent",interpolators={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const i=color(e||transparent),r=i.valid&&color(t||transparent);return r&&r.valid?r.mix(i,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class Animation{constructor(t,n,i,r){const a=n[i];r=resolve([t.to,r,a,t.from]);const o=resolve([t.from,a,r]);this._active=!0,this._fn=t.fn||interpolators[t.type||typeof o],this._easing=effects[t.easing]||effects.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=i,this._from=o,this._to=r,this._promises=void 0}active(){return this._active}update(t,n,i){if(this._active){this._notify(!1);const r=this._target[this._prop],a=i-this._start,o=this._duration-a;this._start=i,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=resolve([t.to,n,r,t.from]),this._from=resolve([t.from,r,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,i=this._duration,r=this._prop,a=this._from,o=this._loop,l=this._to;let u;if(this._active=a!==l&&(o||n<i),!this._active){this._target[r]=l,this._notify(!0);return}if(n<0){this._target[r]=a;return}u=n/i%2,u=o&&u>1?2-u:u,u=this._easing(Math.min(1,Math.max(0,u))),this._target[r]=this._fn(a,l,u)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,i)=>{t.push({res:n,rej:i})})}_notify(t){const n=t?"res":"rej",i=this._promises||[];for(let r=0;r<i.length;r++)i[r][n]()}}class Animations{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!isObject$8(t))return;const n=Object.keys(defaults.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach(r=>{const a=t[r];if(!isObject$8(a))return;const o={};for(const l of n)o[l]=a[l];(isArray$b(a.properties)&&a.properties||[r]).forEach(l=>{(l===r||!i.has(l))&&i.set(l,o)})})}_animateOptions(t,n){const i=n.options,r=resolveTargetOptions(t,i);if(!r)return[];const a=this._createAnimations(r,i);return i.$shared&&awaitAll(t.options.$animations,i).then(()=>{t.options=i},()=>{}),a}_createAnimations(t,n){const i=this._properties,r=[],a=t.$animations||(t.$animations={}),o=Object.keys(n),l=Date.now();let u;for(u=o.length-1;u>=0;--u){const d=o[u];if(d.charAt(0)==="$")continue;if(d==="options"){r.push(...this._animateOptions(t,n));continue}const m=n[d];let g=a[d];const _=i.get(d);if(g)if(_&&g.active()){g.update(_,m,l);continue}else g.cancel();if(!_||!_.duration){t[d]=m;continue}a[d]=g=new Animation(_,t,d,m),r.push(g)}return r}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const i=this._createAnimations(t,n);if(i.length)return animator.add(this._chart,i),!0}}function awaitAll(e,t){const n=[],i=Object.keys(t);for(let r=0;r<i.length;r++){const a=e[i[r]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}function resolveTargetOptions(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function scaleClip(e,t){const n=e&&e.options||{},i=n.reverse,r=n.min===void 0?t:0,a=n.max===void 0?t:0;return{start:i?a:r,end:i?r:a}}function defaultClip(e,t,n){if(n===!1)return!1;const i=scaleClip(e,n),r=scaleClip(t,n);return{top:r.end,right:i.end,bottom:r.start,left:i.start}}function toClip(e){let t,n,i,r;return isObject$8(e)?(t=e.top,n=e.right,i=e.bottom,r=e.left):t=n=i=r=e,{top:t,right:n,bottom:i,left:r,disabled:e===!1}}function getSortedDatasetIndices(e,t){const n=[],i=e._getSortedDatasetMetas(t);let r,a;for(r=0,a=i.length;r<a;++r)n.push(i[r].index);return n}function applyStack(e,t,n,i={}){const r=e.keys,a=i.mode==="single";let o,l,u,d;if(t!==null){for(o=0,l=r.length;o<l;++o){if(u=+r[o],u===n){if(i.all)continue;break}d=e.values[u],isNumberFinite(d)&&(a||t===0||sign(t)===sign(d))&&(t+=d)}return t}}function convertObjectDataToArray(e){const t=Object.keys(e),n=new Array(t.length);let i,r,a;for(i=0,r=t.length;i<r;++i)a=t[i],n[i]={x:a,y:e[a]};return n}function isStacked(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function getStackKey(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function getUserBounds(e){const{min:t,max:n,minDefined:i,maxDefined:r}=e.getUserBounds();return{min:i?t:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}function getOrCreateStack(e,t,n){const i=e[t]||(e[t]={});return i[n]||(i[n]={})}function getLastIndexInStack(e,t,n,i){for(const r of t.getMatchingVisibleMetas(i).reverse()){const a=e[r.index];if(n&&a>0||!n&&a<0)return r.index}return null}function updateStacks(e,t){const{chart:n,_cachedMeta:i}=e,r=n._stacks||(n._stacks={}),{iScale:a,vScale:o,index:l}=i,u=a.axis,d=o.axis,m=getStackKey(a,o,i),g=t.length;let _;for(let v=0;v<g;++v){const w=t[v],{[u]:E,[d]:x}=w,M=w._stacks||(w._stacks={});_=M[d]=getOrCreateStack(r,m,E),_[l]=x,_._top=getLastIndexInStack(_,o,!0,i.type),_._bottom=getLastIndexInStack(_,o,!1,i.type);const S=_._visualValues||(_._visualValues={});S[l]=x}}function getFirstScaleId(e,t){const n=e.scales;return Object.keys(n).filter(i=>n[i].axis===t).shift()}function createDatasetContext(e,t){return createContext(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function createDataContext(e,t,n){return createContext(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function clearStacks(e,t){const n=e.controller.index,i=e.vScale&&e.vScale.axis;if(i){t=t||e._parsed;for(const r of t){const a=r._stacks;if(!a||a[i]===void 0||a[i][n]===void 0)return;delete a[i][n],a[i]._visualValues!==void 0&&a[i]._visualValues[n]!==void 0&&delete a[i]._visualValues[n]}}}const isDirectUpdateMode=e=>e==="reset"||e==="none",cloneIfNotShared=(e,t)=>t?e:Object.assign({},e),createStack=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:getSortedDatasetIndices(n,!0),values:null};class DatasetController{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=isStacked(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&clearStacks(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,i=this.getDataset(),r=(g,_,v,w)=>g==="x"?_:g==="r"?w:v,a=n.xAxisID=valueOrDefault(i.xAxisID,getFirstScaleId(t,"x")),o=n.yAxisID=valueOrDefault(i.yAxisID,getFirstScaleId(t,"y")),l=n.rAxisID=valueOrDefault(i.rAxisID,getFirstScaleId(t,"r")),u=n.indexAxis,d=n.iAxisID=r(u,a,o,l),m=n.vAxisID=r(u,o,a,l);n.xScale=this.getScaleForId(a),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(d),n.vScale=this.getScaleForId(m)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&unlistenArrayEvents(this._data,this),t._stacked&&clearStacks(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),i=this._data;if(isObject$8(n))this._data=convertObjectDataToArray(n);else if(i!==n){if(i){unlistenArrayEvents(i,this);const r=this._cachedMeta;clearStacks(r),r._parsed=[]}n&&Object.isExtensible(n)&&listenArrayEvents(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,i=this.getDataset();let r=!1;this._dataCheck();const a=n._stacked;n._stacked=isStacked(n.vScale,n),n.stack!==i.stack&&(r=!0,clearStacks(n),n.stack=i.stack),this._resyncElements(t),(r||a!==n._stacked)&&updateStacks(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:i,_data:r}=this,{iScale:a,_stacked:o}=i,l=a.axis;let u=t===0&&n===r.length?!0:i._sorted,d=t>0&&i._parsed[t-1],m,g,_;if(this._parsing===!1)i._parsed=r,i._sorted=!0,_=r;else{isArray$b(r[t])?_=this.parseArrayData(i,r,t,n):isObject$8(r[t])?_=this.parseObjectData(i,r,t,n):_=this.parsePrimitiveData(i,r,t,n);const v=()=>g[l]===null||d&&g[l]<d[l];for(m=0;m<n;++m)i._parsed[m+t]=g=_[m],u&&(v()&&(u=!1),d=g);i._sorted=u}o&&updateStacks(this,_)}parsePrimitiveData(t,n,i,r){const{iScale:a,vScale:o}=t,l=a.axis,u=o.axis,d=a.getLabels(),m=a===o,g=new Array(r);let _,v,w;for(_=0,v=r;_<v;++_)w=_+i,g[_]={[l]:m||a.parse(d[w],w),[u]:o.parse(n[w],w)};return g}parseArrayData(t,n,i,r){const{xScale:a,yScale:o}=t,l=new Array(r);let u,d,m,g;for(u=0,d=r;u<d;++u)m=u+i,g=n[m],l[u]={x:a.parse(g[0],m),y:o.parse(g[1],m)};return l}parseObjectData(t,n,i,r){const{xScale:a,yScale:o}=t,{xAxisKey:l="x",yAxisKey:u="y"}=this._parsing,d=new Array(r);let m,g,_,v;for(m=0,g=r;m<g;++m)_=m+i,v=n[_],d[m]={x:a.parse(resolveObjectKey(v,l),_),y:o.parse(resolveObjectKey(v,u),_)};return d}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,i){const r=this.chart,a=this._cachedMeta,o=n[t.axis],l={keys:getSortedDatasetIndices(r,!0),values:n._stacks[t.axis]._visualValues};return applyStack(l,o,a.index,{mode:i})}updateRangeFromParsed(t,n,i,r){const a=i[n.axis];let o=a===null?NaN:a;const l=r&&i._stacks[n.axis];r&&l&&(r.values=l,o=applyStack(r,a,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,n){const i=this._cachedMeta,r=i._parsed,a=i._sorted&&t===i.iScale,o=r.length,l=this._getOtherScale(t),u=createStack(n,i,this.chart),d={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:m,max:g}=getUserBounds(l);let _,v;function w(){v=r[_];const E=v[l.axis];return!isNumberFinite(v[t.axis])||m>E||g<E}for(_=0;_<o&&!(!w()&&(this.updateRangeFromParsed(d,t,v,u),a));++_);if(a){for(_=o-1;_>=0;--_)if(!w()){this.updateRangeFromParsed(d,t,v,u);break}}return d}getAllParsedValues(t){const n=this._cachedMeta._parsed,i=[];let r,a,o;for(r=0,a=n.length;r<a;++r)o=n[r][t.axis],isNumberFinite(o)&&i.push(o);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,i=n.iScale,r=n.vScale,a=this.getParsed(t);return{label:i?""+i.getLabelForValue(a[i.axis]):"",value:r?""+r.getLabelForValue(a[r.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=toClip(valueOrDefault(this.options.clip,defaultClip(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,i=this._cachedMeta,r=i.data||[],a=n.chartArea,o=[],l=this._drawStart||0,u=this._drawCount||r.length-l,d=this.options.drawActiveElementsOnTop;let m;for(i.dataset&&i.dataset.draw(t,a,l,u),m=l;m<l+u;++m){const g=r[m];g.hidden||(g.active&&d?o.push(g):g.draw(t,a))}for(m=0;m<o.length;++m)o[m].draw(t,a)}getStyle(t,n){const i=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,n,i){const r=this.getDataset();let a;if(t>=0&&t<this._cachedMeta.data.length){const o=this._cachedMeta.data[t];a=o.$context||(o.$context=createDataContext(this.getContext(),t,o)),a.parsed=this.getParsed(t),a.raw=r.data[t],a.index=a.dataIndex=t}else a=this.$context||(this.$context=createDatasetContext(this.chart.getContext(),this.index)),a.dataset=r,a.index=a.datasetIndex=this.index;return a.active=!!n,a.mode=i,a}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",i){const r=n==="active",a=this._cachedDataOpts,o=t+"-"+n,l=a[o],u=this.enableOptionSharing&&defined$1(i);if(l)return cloneIfNotShared(l,u);const d=this.chart.config,m=d.datasetElementScopeKeys(this._type,t),g=r?[`${t}Hover`,"hover",t,""]:[t,""],_=d.getOptionScopes(this.getDataset(),m),v=Object.keys(defaults.elements[t]),w=()=>this.getContext(i,r,n),E=d.resolveNamedOptions(_,v,w,g);return E.$shared&&(E.$shared=u,a[o]=Object.freeze(cloneIfNotShared(E,u))),E}_resolveAnimations(t,n,i){const r=this.chart,a=this._cachedDataOpts,o=`animation-${n}`,l=a[o];if(l)return l;let u;if(r.options.animation!==!1){const m=this.chart.config,g=m.datasetAnimationScopeKeys(this._type,n),_=m.getOptionScopes(this.getDataset(),g);u=m.createResolver(_,this.getContext(t,i,n))}const d=new Animations(r,u&&u.animations);return u&&u._cacheable&&(a[o]=Object.freeze(d)),d}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||isDirectUpdateMode(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const i=this.resolveDataElementOptions(t,n),r=this._sharedOptions,a=this.getSharedOptions(i),o=this.includeOptions(n,a)||a!==r;return this.updateSharedOptions(a,n,i),{sharedOptions:a,includeOptions:o}}updateElement(t,n,i,r){isDirectUpdateMode(r)?Object.assign(t,i):this._resolveAnimations(n,r).update(t,i)}updateSharedOptions(t,n,i){t&&!isDirectUpdateMode(n)&&this._resolveAnimations(void 0,n).update(t,i)}_setStyle(t,n,i,r){t.active=r;const a=this.getStyle(n,r);this._resolveAnimations(n,i,r).update(t,{options:!r&&this.getSharedOptions(a)||a})}removeHoverStyle(t,n,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,n,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,i=this._cachedMeta.data;for(const[l,u,d]of this._syncList)this[l](u,d);this._syncList=[];const r=i.length,a=n.length,o=Math.min(a,r);o&&this.parse(0,o),a>r?this._insertElements(r,a-r,t):a<r&&this._removeElements(a,r-a)}_insertElements(t,n,i=!0){const r=this._cachedMeta,a=r.data,o=t+n;let l;const u=d=>{for(d.length+=n,l=d.length-1;l>=o;l--)d[l]=d[l-n]};for(u(a),l=t;l<o;++l)a[l]=new this.dataElementType;this._parsing&&u(r._parsed),this.parse(t,n),i&&this.updateElements(a,t,n,"reset")}updateElements(t,n,i,r){}_removeElements(t,n){const i=this._cachedMeta;if(this._parsing){const r=i._parsed.splice(t,n);i._stacked&&clearStacks(i,r)}i.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,i,r]=t;this[n](i,r)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}Y(DatasetController,"defaults",{}),Y(DatasetController,"datasetElementType",null),Y(DatasetController,"dataElementType",null);function getAllScaleValues(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let i=[];for(let r=0,a=n.length;r<a;r++)i=i.concat(n[r].controller.getAllParsedValues(e));e._cache.$bar=_arrayUnique(i.sort((r,a)=>r-a))}return e._cache.$bar}function computeMinSampleSize(e){const t=e.iScale,n=getAllScaleValues(t,e.type);let i=t._length,r,a,o,l;const u=()=>{o===32767||o===-32768||(defined$1(l)&&(i=Math.min(i,Math.abs(o-l)||i)),l=o)};for(r=0,a=n.length;r<a;++r)o=t.getPixelForValue(n[r]),u();for(l=void 0,r=0,a=t.ticks.length;r<a;++r)o=t.getPixelForTick(r),u();return i}function computeFitCategoryTraits(e,t,n,i){const r=n.barThickness;let a,o;return isNullOrUndef(r)?(a=t.min*n.categoryPercentage,o=n.barPercentage):(a=r*i,o=1),{chunk:a/i,ratio:o,start:t.pixels[e]-a/2}}function computeFlexCategoryTraits(e,t,n,i){const r=t.pixels,a=r[e];let o=e>0?r[e-1]:null,l=e<r.length-1?r[e+1]:null;const u=n.categoryPercentage;o===null&&(o=a-(l===null?t.end-t.start:l-a)),l===null&&(l=a+a-o);const d=a-(a-Math.min(o,l))/2*u;return{chunk:Math.abs(l-o)/2*u/i,ratio:n.barPercentage,start:d}}function parseFloatBar(e,t,n,i){const r=n.parse(e[0],i),a=n.parse(e[1],i),o=Math.min(r,a),l=Math.max(r,a);let u=o,d=l;Math.abs(o)>Math.abs(l)&&(u=l,d=o),t[n.axis]=d,t._custom={barStart:u,barEnd:d,start:r,end:a,min:o,max:l}}function parseValue(e,t,n,i){return isArray$b(e)?parseFloatBar(e,t,n,i):t[n.axis]=n.parse(e,i),t}function parseArrayOrPrimitive(e,t,n,i){const r=e.iScale,a=e.vScale,o=r.getLabels(),l=r===a,u=[];let d,m,g,_;for(d=n,m=n+i;d<m;++d)_=t[d],g={},g[r.axis]=l||r.parse(o[d],d),u.push(parseValue(_,g,a,d));return u}function isFloatBar(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function barSign(e,t,n){return e!==0?sign(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function borderProps(e){let t,n,i,r,a;return e.horizontal?(t=e.base>e.x,n="left",i="right"):(t=e.base<e.y,n="bottom",i="top"),t?(r="end",a="start"):(r="start",a="end"),{start:n,end:i,reverse:t,top:r,bottom:a}}function setBorderSkipped(e,t,n,i){let r=t.borderSkipped;const a={};if(!r){e.borderSkipped=a;return}if(r===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:o,end:l,reverse:u,top:d,bottom:m}=borderProps(e);r==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===i?r=d:(n._bottom||0)===i?r=m:(a[parseEdge(m,o,l,u)]=!0,r=d)),a[parseEdge(r,o,l,u)]=!0,e.borderSkipped=a}function parseEdge(e,t,n,i){return i?(e=swap(e,t,n),e=startEnd(e,n,t)):e=startEnd(e,t,n),e}function swap(e,t,n){return e===t?n:e===n?t:e}function startEnd(e,t,n){return e==="start"?t:e==="end"?n:e}function setInflateAmount(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class BarController extends DatasetController{parsePrimitiveData(t,n,i,r){return parseArrayOrPrimitive(t,n,i,r)}parseArrayData(t,n,i,r){return parseArrayOrPrimitive(t,n,i,r)}parseObjectData(t,n,i,r){const{iScale:a,vScale:o}=t,{xAxisKey:l="x",yAxisKey:u="y"}=this._parsing,d=a.axis==="x"?l:u,m=o.axis==="x"?l:u,g=[];let _,v,w,E;for(_=i,v=i+r;_<v;++_)E=n[_],w={},w[a.axis]=a.parse(resolveObjectKey(E,d),_),g.push(parseValue(resolveObjectKey(E,m),w,o,_));return g}updateRangeFromParsed(t,n,i,r){super.updateRangeFromParsed(t,n,i,r);const a=i._custom;a&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,a.min),t.max=Math.max(t.max,a.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:i,vScale:r}=n,a=this.getParsed(t),o=a._custom,l=isFloatBar(o)?"["+o.start+", "+o.end+"]":""+r.getLabelForValue(a[r.axis]);return{label:""+i.getLabelForValue(a[i.axis]),value:l}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,i,r){const a=r==="reset",{index:o,_cachedMeta:{vScale:l}}=this,u=l.getBasePixel(),d=l.isHorizontal(),m=this._getRuler(),{sharedOptions:g,includeOptions:_}=this._getSharedOptions(n,r);for(let v=n;v<n+i;v++){const w=this.getParsed(v),E=a||isNullOrUndef(w[l.axis])?{base:u,head:u}:this._calculateBarValuePixels(v),x=this._calculateBarIndexPixels(v,m),M=(w._stacks||{})[l.axis],S={horizontal:d,base:E.base,enableBorderRadius:!M||isFloatBar(w._custom)||o===M._top||o===M._bottom,x:d?E.head:x.center,y:d?x.center:E.head,height:d?x.size:Math.abs(E.size),width:d?Math.abs(E.size):x.size};_&&(S.options=g||this.resolveDataElementOptions(v,t[v].active?"active":r));const R=S.options||t[v].options;setBorderSkipped(S,R,M,o),setInflateAmount(S,R,m.ratio),this.updateElement(t[v],v,S,r)}}_getStacks(t,n){const{iScale:i}=this._cachedMeta,r=i.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),a=i.options.stacked,o=[],l=u=>{const d=u.controller.getParsed(n),m=d&&d[u.vScale.axis];if(isNullOrUndef(m)||isNaN(m))return!0};for(const u of r)if(!(n!==void 0&&l(u))&&((a===!1||o.indexOf(u.stack)===-1||a===void 0&&u.stack===void 0)&&o.push(u.stack),u.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,i){const r=this._getStacks(t,i),a=n!==void 0?r.indexOf(n):-1;return a===-1?r.length-1:a}_getRuler(){const t=this.options,n=this._cachedMeta,i=n.iScale,r=[];let a,o;for(a=0,o=n.data.length;a<o;++a)r.push(i.getPixelForValue(this.getParsed(a)[i.axis],a));const l=t.barThickness;return{min:l||computeMinSampleSize(n),pixels:r,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:l?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:i,index:r},options:{base:a,minBarLength:o}}=this,l=a||0,u=this.getParsed(t),d=u._custom,m=isFloatBar(d);let g=u[n.axis],_=0,v=i?this.applyStack(n,u,i):g,w,E;v!==g&&(_=v-g,v=g),m&&(g=d.barStart,v=d.barEnd-d.barStart,g!==0&&sign(g)!==sign(d.barEnd)&&(_=0),_+=g);const x=!isNullOrUndef(a)&&!m?a:_;let M=n.getPixelForValue(x);if(this.chart.getDataVisibility(t)?w=n.getPixelForValue(_+v):w=M,E=w-M,Math.abs(E)<o){E=barSign(E,n,l)*o,g===l&&(M-=E/2);const S=n.getPixelForDecimal(0),R=n.getPixelForDecimal(1),W=Math.min(S,R),V=Math.max(S,R);M=Math.max(Math.min(M,V),W),w=M+E,i&&!m&&(u._stacks[n.axis]._visualValues[r]=n.getValueForPixel(w)-n.getValueForPixel(M))}if(M===n.getPixelForValue(l)){const S=sign(E)*n.getLineWidthForValue(l)/2;M+=S,E-=S}return{size:E,base:M,head:w,center:w+E/2}}_calculateBarIndexPixels(t,n){const i=n.scale,r=this.options,a=r.skipNull,o=valueOrDefault(r.maxBarThickness,1/0);let l,u;if(n.grouped){const d=a?this._getStackCount(t):n.stackCount,m=r.barThickness==="flex"?computeFlexCategoryTraits(t,n,r,d):computeFitCategoryTraits(t,n,r,d),g=this._getStackIndex(this.index,this._cachedMeta.stack,a?t:void 0);l=m.start+m.chunk*g+m.chunk/2,u=Math.min(o,m.chunk*m.ratio)}else l=i.getPixelForValue(this.getParsed(t)[i.axis],t),u=Math.min(o,n.min*n.ratio);return{base:l-u/2,head:l+u/2,center:l,size:u}}draw(){const t=this._cachedMeta,n=t.vScale,i=t.data,r=i.length;let a=0;for(;a<r;++a)this.getParsed(a)[n.axis]!==null&&i[a].draw(this._ctx)}}Y(BarController,"id","bar"),Y(BarController,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),Y(BarController,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});function getRatioAndOffset(e,t,n){let i=1,r=1,a=0,o=0;if(t<TAU){const l=e,u=l+t,d=Math.cos(l),m=Math.sin(l),g=Math.cos(u),_=Math.sin(u),v=(R,W,V)=>_angleBetween(R,l,u,!0)?1:Math.max(W,W*n,V,V*n),w=(R,W,V)=>_angleBetween(R,l,u,!0)?-1:Math.min(W,W*n,V,V*n),E=v(0,d,g),x=v(HALF_PI,m,_),M=w(PI,d,g),S=w(PI+HALF_PI,m,_);i=(E-M)/2,r=(x-S)/2,a=-(E+M)/2,o=-(x+S)/2}return{ratioX:i,ratioY:r,offsetX:a,offsetY:o}}class DoughnutController extends DatasetController{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const i=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=i;else{let a=u=>+i[u];if(isObject$8(i[t])){const{key:u="value"}=this._parsing;a=d=>+resolveObjectKey(i[d],u)}let o,l;for(o=t,l=t+n;o<l;++o)r._parsed[o]=a(o)}}_getRotation(){return toRadians(this.options.rotation-90)}_getCircumference(){return toRadians(this.options.circumference)}_getRotationExtents(){let t=TAU,n=-TAU;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){const r=this.chart.getDatasetMeta(i).controller,a=r._getRotation(),o=r._getCircumference();t=Math.min(t,a),n=Math.max(n,a+o)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:i}=n,r=this._cachedMeta,a=r.data,o=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,l=Math.max((Math.min(i.width,i.height)-o)/2,0),u=Math.min(toPercentage(this.options.cutout,l),1),d=this._getRingWeight(this.index),{circumference:m,rotation:g}=this._getRotationExtents(),{ratioX:_,ratioY:v,offsetX:w,offsetY:E}=getRatioAndOffset(g,m,u),x=(i.width-o)/_,M=(i.height-o)/v,S=Math.max(Math.min(x,M)/2,0),R=toDimension(this.options.radius,S),W=Math.max(R*u,0),V=(R-W)/this._getVisibleDatasetWeightTotal();this.offsetX=w*R,this.offsetY=E*R,r.total=this.calculateTotal(),this.outerRadius=R-V*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-V*d,0),this.updateElements(a,0,a.length,t)}_circumference(t,n){const i=this.options,r=this._cachedMeta,a=this._getCircumference();return n&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||r._parsed[t]===null||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*a/TAU)}updateElements(t,n,i,r){const a=r==="reset",o=this.chart,l=o.chartArea,d=o.options.animation,m=(l.left+l.right)/2,g=(l.top+l.bottom)/2,_=a&&d.animateScale,v=_?0:this.innerRadius,w=_?0:this.outerRadius,{sharedOptions:E,includeOptions:x}=this._getSharedOptions(n,r);let M=this._getRotation(),S;for(S=0;S<n;++S)M+=this._circumference(S,a);for(S=n;S<n+i;++S){const R=this._circumference(S,a),W=t[S],V={x:m+this.offsetX,y:g+this.offsetY,startAngle:M,endAngle:M+R,circumference:R,outerRadius:w,innerRadius:v};x&&(V.options=E||this.resolveDataElementOptions(S,W.active?"active":r)),M+=R,this.updateElement(W,S,V,r)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let i=0,r;for(r=0;r<n.length;r++){const a=t._parsed[r];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(r)&&!n[r].hidden&&(i+=Math.abs(a))}return i}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?TAU*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,i=this.chart,r=i.data.labels||[],a=formatNumber$1(n._parsed[t],i.options.locale);return{label:r[t]||"",value:a}}getMaxBorderWidth(t){let n=0;const i=this.chart;let r,a,o,l,u;if(!t){for(r=0,a=i.data.datasets.length;r<a;++r)if(i.isDatasetVisible(r)){o=i.getDatasetMeta(r),t=o.data,l=o.controller;break}}if(!t)return 0;for(r=0,a=t.length;r<a;++r)u=l.resolveDataElementOptions(r),u.borderAlign!=="inner"&&(n=Math.max(n,u.borderWidth||0,u.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let i=0,r=t.length;i<r;++i){const a=this.resolveDataElementOptions(i);n=Math.max(n,a.offset||0,a.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(n+=this._getRingWeight(i));return n}_getRingWeight(t){return Math.max(valueOrDefault(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Y(DoughnutController,"id","doughnut"),Y(DoughnutController,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),Y(DoughnutController,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),Y(DoughnutController,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:i,color:r}}=t.legend.options;return n.labels.map((a,o)=>{const u=t.getDatasetMeta(0).controller.getStyle(o);return{text:a,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,fontColor:r,lineWidth:u.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}}});class LineController extends DatasetController{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:i,data:r=[],_dataset:a}=n,o=this.chart._animationsDisabled;let{start:l,count:u}=_getStartAndCountOfVisiblePoints(n,r,o);this._drawStart=l,this._drawCount=u,_scaleRangesChanged(n)&&(l=0,u=r.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!a._decimated,i.points=r;const d=this.resolveDatasetElementOptions(t);this.options.showLine||(d.borderWidth=0),d.segment=this.options.segment,this.updateElement(i,void 0,{animated:!o,options:d},t),this.updateElements(r,l,u,t)}updateElements(t,n,i,r){const a=r==="reset",{iScale:o,vScale:l,_stacked:u,_dataset:d}=this._cachedMeta,{sharedOptions:m,includeOptions:g}=this._getSharedOptions(n,r),_=o.axis,v=l.axis,{spanGaps:w,segment:E}=this.options,x=isNumber(w)?w:Number.POSITIVE_INFINITY,M=this.chart._animationsDisabled||a||r==="none",S=n+i,R=t.length;let W=n>0&&this.getParsed(n-1);for(let V=0;V<R;++V){const q=t[V],U=M?q:{};if(V<n||V>=S){U.skip=!0;continue}const y=this.getParsed(V),$=isNullOrUndef(y[v]),T=U[_]=o.getPixelForValue(y[_],V),O=U[v]=a||$?l.getBasePixel():l.getPixelForValue(u?this.applyStack(l,y,u):y[v],V);U.skip=isNaN(T)||isNaN(O)||$,U.stop=V>0&&Math.abs(y[_]-W[_])>x,E&&(U.parsed=y,U.raw=d.data[V]),g&&(U.options=m||this.resolveDataElementOptions(V,q.active?"active":r)),M||this.updateElement(q,V,U,r),W=y}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,i=n.options&&n.options.borderWidth||0,r=t.data||[];if(!r.length)return i;const a=r[0].size(this.resolveDataElementOptions(0)),o=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(i,a,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Y(LineController,"id","line"),Y(LineController,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),Y(LineController,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class PolarAreaController extends DatasetController{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,i=this.chart,r=i.data.labels||[],a=formatNumber$1(n._parsed[t].r,i.options.locale);return{label:r[t]||"",value:a}}parseObjectData(t,n,i,r){return _parseObjectDataRadialScale.bind(this)(t,n,i,r)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((i,r)=>{const a=this.getParsed(r).r;!isNaN(a)&&this.chart.getDataVisibility(r)&&(a<n.min&&(n.min=a),a>n.max&&(n.max=a))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,i=t.options,r=Math.min(n.right-n.left,n.bottom-n.top),a=Math.max(r/2,0),o=Math.max(i.cutoutPercentage?a/100*i.cutoutPercentage:1,0),l=(a-o)/t.getVisibleDatasetCount();this.outerRadius=a-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(t,n,i,r){const a=r==="reset",o=this.chart,u=o.options.animation,d=this._cachedMeta.rScale,m=d.xCenter,g=d.yCenter,_=d.getIndexAngle(0)-.5*PI;let v=_,w;const E=360/this.countVisibleElements();for(w=0;w<n;++w)v+=this._computeAngle(w,r,E);for(w=n;w<n+i;w++){const x=t[w];let M=v,S=v+this._computeAngle(w,r,E),R=o.getDataVisibility(w)?d.getDistanceFromCenterForValue(this.getParsed(w).r):0;v=S,a&&(u.animateScale&&(R=0),u.animateRotate&&(M=S=_));const W={x:m,y:g,innerRadius:0,outerRadius:R,startAngle:M,endAngle:S,options:this.resolveDataElementOptions(w,x.active?"active":r)};this.updateElement(x,w,W,r)}}countVisibleElements(){const t=this._cachedMeta;let n=0;return t.data.forEach((i,r)=>{!isNaN(this.getParsed(r).r)&&this.chart.getDataVisibility(r)&&n++}),n}_computeAngle(t,n,i){return this.chart.getDataVisibility(t)?toRadians(this.resolveDataElementOptions(t,n).angle||i):0}}Y(PolarAreaController,"id","polarArea"),Y(PolarAreaController,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),Y(PolarAreaController,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:i,color:r}}=t.legend.options;return n.labels.map((a,o)=>{const u=t.getDatasetMeta(0).controller.getStyle(o);return{text:a,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,fontColor:r,lineWidth:u.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class PieController extends DoughnutController{}Y(PieController,"id","pie"),Y(PieController,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});function abstract(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class DateAdapterBase{constructor(t){Y(this,"options");this.options=t||{}}static override(t){Object.assign(DateAdapterBase.prototype,t)}init(){}formats(){return abstract()}parse(){return abstract()}format(){return abstract()}add(){return abstract()}diff(){return abstract()}startOf(){return abstract()}endOf(){return abstract()}}var adapters={_date:DateAdapterBase};function binarySearch(e,t,n,i){const{controller:r,data:a,_sorted:o}=e,l=r._cachedMeta.iScale;if(l&&t===l.axis&&t!=="r"&&o&&a.length){const u=l._reversePixels?_rlookupByKey:_lookupByKey;if(i){if(r._sharedOptions){const d=a[0],m=typeof d.getRange=="function"&&d.getRange(t);if(m){const g=u(a,t,n-m),_=u(a,t,n+m);return{lo:g.lo,hi:_.hi}}}}else return u(a,t,n)}return{lo:0,hi:a.length-1}}function evaluateInteractionItems(e,t,n,i,r){const a=e.getSortedVisibleDatasetMetas(),o=n[t];for(let l=0,u=a.length;l<u;++l){const{index:d,data:m}=a[l],{lo:g,hi:_}=binarySearch(a[l],t,o,r);for(let v=g;v<=_;++v){const w=m[v];w.skip||i(w,d,v)}}}function getDistanceMetricForAxis(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(i,r){const a=t?Math.abs(i.x-r.x):0,o=n?Math.abs(i.y-r.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(o,2))}}function getIntersectItems(e,t,n,i,r){const a=[];return!r&&!e.isPointInArea(t)||evaluateInteractionItems(e,n,t,function(l,u,d){!r&&!_isPointInArea(l,e.chartArea,0)||l.inRange(t.x,t.y,i)&&a.push({element:l,datasetIndex:u,index:d})},!0),a}function getNearestRadialItems(e,t,n,i){let r=[];function a(o,l,u){const{startAngle:d,endAngle:m}=o.getProps(["startAngle","endAngle"],i),{angle:g}=getAngleFromPoint(o,{x:t.x,y:t.y});_angleBetween(g,d,m)&&r.push({element:o,datasetIndex:l,index:u})}return evaluateInteractionItems(e,n,t,a),r}function getNearestCartesianItems(e,t,n,i,r,a){let o=[];const l=getDistanceMetricForAxis(n);let u=Number.POSITIVE_INFINITY;function d(m,g,_){const v=m.inRange(t.x,t.y,r);if(i&&!v)return;const w=m.getCenterPoint(r);if(!(!!a||e.isPointInArea(w))&&!v)return;const x=l(t,w);x<u?(o=[{element:m,datasetIndex:g,index:_}],u=x):x===u&&o.push({element:m,datasetIndex:g,index:_})}return evaluateInteractionItems(e,n,t,d),o}function getNearestItems(e,t,n,i,r,a){return!a&&!e.isPointInArea(t)?[]:n==="r"&&!i?getNearestRadialItems(e,t,n,r):getNearestCartesianItems(e,t,n,i,r,a)}function getAxisItems(e,t,n,i,r){const a=[],o=n==="x"?"inXRange":"inYRange";let l=!1;return evaluateInteractionItems(e,n,t,(u,d,m)=>{u[o](t[n],r)&&(a.push({element:u,datasetIndex:d,index:m}),l=l||u.inRange(t.x,t.y,r))}),i&&!l?[]:a}var Interaction={evaluateInteractionItems,modes:{index(e,t,n,i){const r=getRelativePosition(t,e),a=n.axis||"x",o=n.includeInvisible||!1,l=n.intersect?getIntersectItems(e,r,a,i,o):getNearestItems(e,r,a,!1,i,o),u=[];return l.length?(e.getSortedVisibleDatasetMetas().forEach(d=>{const m=l[0].index,g=d.data[m];g&&!g.skip&&u.push({element:g,datasetIndex:d.index,index:m})}),u):[]},dataset(e,t,n,i){const r=getRelativePosition(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;let l=n.intersect?getIntersectItems(e,r,a,i,o):getNearestItems(e,r,a,!1,i,o);if(l.length>0){const u=l[0].datasetIndex,d=e.getDatasetMeta(u).data;l=[];for(let m=0;m<d.length;++m)l.push({element:d[m],datasetIndex:u,index:m})}return l},point(e,t,n,i){const r=getRelativePosition(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;return getIntersectItems(e,r,a,i,o)},nearest(e,t,n,i){const r=getRelativePosition(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;return getNearestItems(e,r,a,n.intersect,i,o)},x(e,t,n,i){const r=getRelativePosition(t,e);return getAxisItems(e,r,"x",n.intersect,i)},y(e,t,n,i){const r=getRelativePosition(t,e);return getAxisItems(e,r,"y",n.intersect,i)}}};const STATIC_POSITIONS=["left","top","right","bottom"];function filterByPosition(e,t){return e.filter(n=>n.pos===t)}function filterDynamicPositionByAxis(e,t){return e.filter(n=>STATIC_POSITIONS.indexOf(n.pos)===-1&&n.box.axis===t)}function sortByWeight(e,t){return e.sort((n,i)=>{const r=t?i:n,a=t?n:i;return r.weight===a.weight?r.index-a.index:r.weight-a.weight})}function wrapBoxes(e){const t=[];let n,i,r,a,o,l;for(n=0,i=(e||[]).length;n<i;++n)r=e[n],{position:a,options:{stack:o,stackWeight:l=1}}=r,t.push({index:n,box:r,pos:a,horizontal:r.isHorizontal(),weight:r.weight,stack:o&&a+o,stackWeight:l});return t}function buildStacks(e){const t={};for(const n of e){const{stack:i,pos:r,stackWeight:a}=n;if(!i||!STATIC_POSITIONS.includes(r))continue;const o=t[i]||(t[i]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=a}return t}function setLayoutDims(e,t){const n=buildStacks(e),{vBoxMaxWidth:i,hBoxMaxHeight:r}=t;let a,o,l;for(a=0,o=e.length;a<o;++a){l=e[a];const{fullSize:u}=l.box,d=n[l.stack],m=d&&l.stackWeight/d.weight;l.horizontal?(l.width=m?m*i:u&&t.availableWidth,l.height=r):(l.width=i,l.height=m?m*r:u&&t.availableHeight)}return n}function buildLayoutBoxes(e){const t=wrapBoxes(e),n=sortByWeight(t.filter(d=>d.box.fullSize),!0),i=sortByWeight(filterByPosition(t,"left"),!0),r=sortByWeight(filterByPosition(t,"right")),a=sortByWeight(filterByPosition(t,"top"),!0),o=sortByWeight(filterByPosition(t,"bottom")),l=filterDynamicPositionByAxis(t,"x"),u=filterDynamicPositionByAxis(t,"y");return{fullSize:n,leftAndTop:i.concat(a),rightAndBottom:r.concat(u).concat(o).concat(l),chartArea:filterByPosition(t,"chartArea"),vertical:i.concat(r).concat(u),horizontal:a.concat(o).concat(l)}}function getCombinedMax(e,t,n,i){return Math.max(e[n],t[n])+Math.max(e[i],t[i])}function updateMaxPadding(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function updateDims(e,t,n,i){const{pos:r,box:a}=n,o=e.maxPadding;if(!isObject$8(r)){n.size&&(e[r]-=n.size);const g=i[n.stack]||{size:0,count:1};g.size=Math.max(g.size,n.horizontal?a.height:a.width),n.size=g.size/g.count,e[r]+=n.size}a.getPadding&&updateMaxPadding(o,a.getPadding());const l=Math.max(0,t.outerWidth-getCombinedMax(o,e,"left","right")),u=Math.max(0,t.outerHeight-getCombinedMax(o,e,"top","bottom")),d=l!==e.w,m=u!==e.h;return e.w=l,e.h=u,n.horizontal?{same:d,other:m}:{same:m,other:d}}function handleMaxPadding(e){const t=e.maxPadding;function n(i){const r=Math.max(t[i]-e[i],0);return e[i]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function getMargins(e,t){const n=t.maxPadding;function i(r){const a={left:0,top:0,right:0,bottom:0};return r.forEach(o=>{a[o]=Math.max(t[o],n[o])}),a}return i(e?["left","right"]:["top","bottom"])}function fitBoxes(e,t,n,i){const r=[];let a,o,l,u,d,m;for(a=0,o=e.length,d=0;a<o;++a){l=e[a],u=l.box,u.update(l.width||t.w,l.height||t.h,getMargins(l.horizontal,t));const{same:g,other:_}=updateDims(t,n,l,i);d|=g&&r.length,m=m||_,u.fullSize||r.push(l)}return d&&fitBoxes(r,t,n,i)||m}function setBoxDims(e,t,n,i,r){e.top=n,e.left=t,e.right=t+i,e.bottom=n+r,e.width=i,e.height=r}function placeBoxes(e,t,n,i){const r=n.padding;let{x:a,y:o}=t;for(const l of e){const u=l.box,d=i[l.stack]||{count:1,placed:0,weight:1},m=l.stackWeight/d.weight||1;if(l.horizontal){const g=t.w*m,_=d.size||u.height;defined$1(d.start)&&(o=d.start),u.fullSize?setBoxDims(u,r.left,o,n.outerWidth-r.right-r.left,_):setBoxDims(u,t.left+d.placed,o,g,_),d.start=o,d.placed+=g,o=u.bottom}else{const g=t.h*m,_=d.size||u.width;defined$1(d.start)&&(a=d.start),u.fullSize?setBoxDims(u,a,r.top,_,n.outerHeight-r.bottom-r.top):setBoxDims(u,a,t.top+d.placed,_,g),d.start=a,d.placed+=g,a=u.right}}t.x=a,t.y=o}var layouts={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,i){if(!e)return;const r=toPadding(e.options.layout.padding),a=Math.max(t-r.width,0),o=Math.max(n-r.height,0),l=buildLayoutBoxes(e.boxes),u=l.vertical,d=l.horizontal;each(e.boxes,E=>{typeof E.beforeLayout=="function"&&E.beforeLayout()});const m=u.reduce((E,x)=>x.box.options&&x.box.options.display===!1?E:E+1,0)||1,g=Object.freeze({outerWidth:t,outerHeight:n,padding:r,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/m,hBoxMaxHeight:o/2}),_=Object.assign({},r);updateMaxPadding(_,toPadding(i));const v=Object.assign({maxPadding:_,w:a,h:o,x:r.left,y:r.top},r),w=setLayoutDims(u.concat(d),g);fitBoxes(l.fullSize,v,g,w),fitBoxes(u,v,g,w),fitBoxes(d,v,g,w)&&fitBoxes(u,v,g,w),handleMaxPadding(v),placeBoxes(l.leftAndTop,v,g,w),v.x+=v.w,v.y+=v.h,placeBoxes(l.rightAndBottom,v,g,w),e.chartArea={left:v.left,top:v.top,right:v.left+v.w,bottom:v.top+v.h,height:v.h,width:v.w},each(l.chartArea,E=>{const x=E.box;Object.assign(x,e.chartArea),x.update(v.w,v.h,{left:0,top:0,right:0,bottom:0})})}};class BasePlatform{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,i){}removeEventListener(t,n,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,i,r){return n=Math.max(0,n||t.width),i=i||t.height,{width:n,height:Math.max(0,r?Math.floor(n/r):i)}}isAttached(t){return!0}updateConfig(t){}}class BasicPlatform extends BasePlatform{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const EXPANDO_KEY="$chartjs",EVENT_TYPES={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},isNullOrEmpty=e=>e===null||e==="";function initCanvas(e,t){const n=e.style,i=e.getAttribute("height"),r=e.getAttribute("width");if(e[EXPANDO_KEY]={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",isNullOrEmpty(r)){const a=readUsedSize(e,"width");a!==void 0&&(e.width=a)}if(isNullOrEmpty(i))if(e.style.height==="")e.height=e.width/(t||2);else{const a=readUsedSize(e,"height");a!==void 0&&(e.height=a)}return e}const eventListenerOptions=supportsEventListenerOptions?{passive:!0}:!1;function addListener(e,t,n){e.addEventListener(t,n,eventListenerOptions)}function removeListener(e,t,n){e.canvas.removeEventListener(t,n,eventListenerOptions)}function fromNativeEvent(e,t){const n=EVENT_TYPES[e.type]||e.type,{x:i,y:r}=getRelativePosition(e,t);return{type:n,chart:t,native:e,x:i!==void 0?i:null,y:r!==void 0?r:null}}function nodeListContains(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function createAttachObserver(e,t,n){const i=e.canvas,r=new MutationObserver(a=>{let o=!1;for(const l of a)o=o||nodeListContains(l.addedNodes,i),o=o&&!nodeListContains(l.removedNodes,i);o&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}function createDetachObserver(e,t,n){const i=e.canvas,r=new MutationObserver(a=>{let o=!1;for(const l of a)o=o||nodeListContains(l.removedNodes,i),o=o&&!nodeListContains(l.addedNodes,i);o&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}const drpListeningCharts=new Map;let oldDevicePixelRatio=0;function onWindowResize(){const e=window.devicePixelRatio;e!==oldDevicePixelRatio&&(oldDevicePixelRatio=e,drpListeningCharts.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function listenDevicePixelRatioChanges(e,t){drpListeningCharts.size||window.addEventListener("resize",onWindowResize),drpListeningCharts.set(e,t)}function unlistenDevicePixelRatioChanges(e){drpListeningCharts.delete(e),drpListeningCharts.size||window.removeEventListener("resize",onWindowResize)}function createResizeObserver(e,t,n){const i=e.canvas,r=i&&_getParentNode(i);if(!r)return;const a=throttled((l,u)=>{const d=r.clientWidth;n(l,u),d<r.clientWidth&&n()},window),o=new ResizeObserver(l=>{const u=l[0],d=u.contentRect.width,m=u.contentRect.height;d===0&&m===0||a(d,m)});return o.observe(r),listenDevicePixelRatioChanges(e,a),o}function releaseObserver(e,t,n){n&&n.disconnect(),t==="resize"&&unlistenDevicePixelRatioChanges(e)}function createProxyAndListen(e,t,n){const i=e.canvas,r=throttled(a=>{e.ctx!==null&&n(fromNativeEvent(a,e))},e);return addListener(i,t,r),r}class DomPlatform extends BasePlatform{acquireContext(t,n){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(initCanvas(t,n),i):null}releaseContext(t){const n=t.canvas;if(!n[EXPANDO_KEY])return!1;const i=n[EXPANDO_KEY].initial;["height","width"].forEach(a=>{const o=i[a];isNullOrUndef(o)?n.removeAttribute(a):n.setAttribute(a,o)});const r=i.style||{};return Object.keys(r).forEach(a=>{n.style[a]=r[a]}),n.width=n.width,delete n[EXPANDO_KEY],!0}addEventListener(t,n,i){this.removeEventListener(t,n);const r=t.$proxies||(t.$proxies={}),o={attach:createAttachObserver,detach:createDetachObserver,resize:createResizeObserver}[n]||createProxyAndListen;r[n]=o(t,n,i)}removeEventListener(t,n){const i=t.$proxies||(t.$proxies={}),r=i[n];if(!r)return;({attach:releaseObserver,detach:releaseObserver,resize:releaseObserver}[n]||removeListener)(t,n,r),i[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,i,r){return getMaximumSize(t,n,i,r)}isAttached(t){const n=_getParentNode(t);return!!(n&&n.isConnected)}}function _detectPlatform(e){return!_isDomSupported()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?BasicPlatform:DomPlatform}var Ze;let Element$1=(Ze=class{constructor(){Y(this,"x");Y(this,"y");Y(this,"active",!1);Y(this,"options");Y(this,"$animations")}tooltipPosition(t){const{x:n,y:i}=this.getProps(["x","y"],t);return{x:n,y:i}}hasValue(){return isNumber(this.x)&&isNumber(this.y)}getProps(t,n){const i=this.$animations;if(!n||!i)return this;const r={};return t.forEach(a=>{r[a]=i[a]&&i[a].active()?i[a]._to:this[a]}),r}},Y(Ze,"defaults",{}),Y(Ze,"defaultRoutes"),Ze);function autoSkip(e,t){const n=e.options.ticks,i=determineMaxTicks(e),r=Math.min(n.maxTicksLimit||i,i),a=n.major.enabled?getMajorIndices(t):[],o=a.length,l=a[0],u=a[o-1],d=[];if(o>r)return skipMajors(t,d,a,o/r),d;const m=calculateSpacing(a,t,r);if(o>0){let g,_;const v=o>1?Math.round((u-l)/(o-1)):null;for(skip(t,d,m,isNullOrUndef(v)?0:l-v,l),g=0,_=o-1;g<_;g++)skip(t,d,m,a[g],a[g+1]);return skip(t,d,m,u,isNullOrUndef(v)?t.length:u+v),d}return skip(t,d,m),d}function determineMaxTicks(e){const t=e.options.offset,n=e._tickSize(),i=e._length/n+(t?0:1),r=e._maxLength/n;return Math.floor(Math.min(i,r))}function calculateSpacing(e,t,n){const i=getEvenSpacing(e),r=t.length/n;if(!i)return Math.max(r,1);const a=_factorize(i);for(let o=0,l=a.length-1;o<l;o++){const u=a[o];if(u>r)return u}return Math.max(r,1)}function getMajorIndices(e){const t=[];let n,i;for(n=0,i=e.length;n<i;n++)e[n].major&&t.push(n);return t}function skipMajors(e,t,n,i){let r=0,a=n[0],o;for(i=Math.ceil(i),o=0;o<e.length;o++)o===a&&(t.push(e[o]),r++,a=n[r*i])}function skip(e,t,n,i,r){const a=valueOrDefault(i,0),o=Math.min(valueOrDefault(r,e.length),e.length);let l=0,u,d,m;for(n=Math.ceil(n),r&&(u=r-i,n=u/Math.floor(u/n)),m=a;m<0;)l++,m=Math.round(a+l*n);for(d=Math.max(a,0);d<o;d++)d===m&&(t.push(e[d]),l++,m=Math.round(a+l*n))}function getEvenSpacing(e){const t=e.length;let n,i;if(t<2)return!1;for(i=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==i)return!1;return i}const reverseAlign=e=>e==="left"?"right":e==="right"?"left":e,offsetFromEdge=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,getTicksLimit=(e,t)=>Math.min(t||e,e);function sample(e,t){const n=[],i=e.length/t,r=e.length;let a=0;for(;a<r;a+=i)n.push(e[Math.floor(a)]);return n}function getPixelForGridLine(e,t,n){const i=e.ticks.length,r=Math.min(t,i-1),a=e._startPixel,o=e._endPixel,l=1e-6;let u=e.getPixelForTick(r),d;if(!(n&&(i===1?d=Math.max(u-a,o-u):t===0?d=(e.getPixelForTick(1)-u)/2:d=(u-e.getPixelForTick(r-1))/2,u+=r<t?d:-d,u<a-l||u>o+l)))return u}function garbageCollect(e,t){each(e,n=>{const i=n.gc,r=i.length/2;let a;if(r>t){for(a=0;a<r;++a)delete n.data[i[a]];i.splice(0,r)}})}function getTickMarkLength(e){return e.drawTicks?e.tickLength:0}function getTitleHeight(e,t){if(!e.display)return 0;const n=toFont(e.font,t),i=toPadding(e.padding);return(isArray$b(e.text)?e.text.length:1)*n.lineHeight+i.height}function createScaleContext(e,t){return createContext(e,{scale:t,type:"scale"})}function createTickContext(e,t,n){return createContext(e,{tick:n,index:t,type:"tick"})}function titleAlign(e,t,n){let i=_toLeftRightCenter(e);return(n&&t!=="right"||!n&&t==="right")&&(i=reverseAlign(i)),i}function titleArgs(e,t,n,i){const{top:r,left:a,bottom:o,right:l,chart:u}=e,{chartArea:d,scales:m}=u;let g=0,_,v,w;const E=o-r,x=l-a;if(e.isHorizontal()){if(v=_alignStartEnd(i,a,l),isObject$8(n)){const M=Object.keys(n)[0],S=n[M];w=m[M].getPixelForValue(S)+E-t}else n==="center"?w=(d.bottom+d.top)/2+E-t:w=offsetFromEdge(e,n,t);_=l-a}else{if(isObject$8(n)){const M=Object.keys(n)[0],S=n[M];v=m[M].getPixelForValue(S)-x+t}else n==="center"?v=(d.left+d.right)/2-x+t:v=offsetFromEdge(e,n,t);w=_alignStartEnd(i,o,r),g=n==="left"?-HALF_PI:HALF_PI}return{titleX:v,titleY:w,maxWidth:_,rotation:g}}class Scale extends Element$1{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:i,_suggestedMax:r}=this;return t=finiteOrDefault(t,Number.POSITIVE_INFINITY),n=finiteOrDefault(n,Number.NEGATIVE_INFINITY),i=finiteOrDefault(i,Number.POSITIVE_INFINITY),r=finiteOrDefault(r,Number.NEGATIVE_INFINITY),{min:finiteOrDefault(t,i),max:finiteOrDefault(n,r),minDefined:isNumberFinite(t),maxDefined:isNumberFinite(n)}}getMinMax(t){let{min:n,max:i,minDefined:r,maxDefined:a}=this.getUserBounds(),o;if(r&&a)return{min:n,max:i};const l=this.getMatchingVisibleMetas();for(let u=0,d=l.length;u<d;++u)o=l[u].controller.getMinMax(this,t),r||(n=Math.min(n,o.min)),a||(i=Math.max(i,o.max));return n=a&&n>i?i:n,i=r&&n>i?n:i,{min:finiteOrDefault(n,finiteOrDefault(i,n)),max:finiteOrDefault(i,finiteOrDefault(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){callback(this.options.beforeUpdate,[this])}update(t,n,i){const{beginAtZero:r,grace:a,ticks:o}=this.options,l=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=_addGrace(this,a,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const u=l<this.ticks.length;this._convertTicksToLabels(u?sample(this.ticks,l):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=autoSkip(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),u&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,i;this.isHorizontal()?(n=this.left,i=this.right):(n=this.top,i=this.bottom,t=!t),this._startPixel=n,this._endPixel=i,this._reversePixels=t,this._length=i-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){callback(this.options.afterUpdate,[this])}beforeSetDimensions(){callback(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){callback(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),callback(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){callback(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let i,r,a;for(i=0,r=t.length;i<r;i++)a=t[i],a.label=callback(n.callback,[a.value,i,t],this)}afterTickToLabelConversion(){callback(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){callback(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,i=getTicksLimit(this.ticks.length,t.ticks.maxTicksLimit),r=n.minRotation||0,a=n.maxRotation;let o=r,l,u,d;if(!this._isVisible()||!n.display||r>=a||i<=1||!this.isHorizontal()){this.labelRotation=r;return}const m=this._getLabelSizes(),g=m.widest.width,_=m.highest.height,v=_limitValue(this.chart.width-g,0,this.maxWidth);l=t.offset?this.maxWidth/i:v/(i-1),g+6>l&&(l=v/(i-(t.offset?.5:1)),u=this.maxHeight-getTickMarkLength(t.grid)-n.padding-getTitleHeight(t.title,this.chart.options.font),d=Math.sqrt(g*g+_*_),o=toDegrees(Math.min(Math.asin(_limitValue((m.highest.height+6)/l,-1,1)),Math.asin(_limitValue(u/d,-1,1))-Math.asin(_limitValue(_/d,-1,1)))),o=Math.max(r,Math.min(a,o))),this.labelRotation=o}afterCalculateLabelRotation(){callback(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){callback(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:i,title:r,grid:a}}=this,o=this._isVisible(),l=this.isHorizontal();if(o){const u=getTitleHeight(r,n.options.font);if(l?(t.width=this.maxWidth,t.height=getTickMarkLength(a)+u):(t.height=this.maxHeight,t.width=getTickMarkLength(a)+u),i.display&&this.ticks.length){const{first:d,last:m,widest:g,highest:_}=this._getLabelSizes(),v=i.padding*2,w=toRadians(this.labelRotation),E=Math.cos(w),x=Math.sin(w);if(l){const M=i.mirror?0:x*g.width+E*_.height;t.height=Math.min(this.maxHeight,t.height+M+v)}else{const M=i.mirror?0:E*g.width+x*_.height;t.width=Math.min(this.maxWidth,t.width+M+v)}this._calculatePadding(d,m,x,E)}}this._handleMargins(),l?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,i,r){const{ticks:{align:a,padding:o},position:l}=this.options,u=this.labelRotation!==0,d=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const m=this.getPixelForTick(0)-this.left,g=this.right-this.getPixelForTick(this.ticks.length-1);let _=0,v=0;u?d?(_=r*t.width,v=i*n.height):(_=i*t.height,v=r*n.width):a==="start"?v=n.width:a==="end"?_=t.width:a!=="inner"&&(_=t.width/2,v=n.width/2),this.paddingLeft=Math.max((_-m+o)*this.width/(this.width-m),0),this.paddingRight=Math.max((v-g+o)*this.width/(this.width-g),0)}else{let m=n.height/2,g=t.height/2;a==="start"?(m=0,g=t.height):a==="end"&&(m=n.height,g=0),this.paddingTop=m+o,this.paddingBottom=g+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){callback(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,i;for(n=0,i=t.length;n<i;n++)isNullOrUndef(t[n].label)&&(t.splice(n,1),i--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let i=this.ticks;n<i.length&&(i=sample(i,n)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,i){const{ctx:r,_longestTextCache:a}=this,o=[],l=[],u=Math.floor(n/getTicksLimit(n,i));let d=0,m=0,g,_,v,w,E,x,M,S,R,W,V;for(g=0;g<n;g+=u){if(w=t[g].label,E=this._resolveTickFontOptions(g),r.font=x=E.string,M=a[x]=a[x]||{data:{},gc:[]},S=E.lineHeight,R=W=0,!isNullOrUndef(w)&&!isArray$b(w))R=_measureText(r,M.data,M.gc,R,w),W=S;else if(isArray$b(w))for(_=0,v=w.length;_<v;++_)V=w[_],!isNullOrUndef(V)&&!isArray$b(V)&&(R=_measureText(r,M.data,M.gc,R,V),W+=S);o.push(R),l.push(W),d=Math.max(R,d),m=Math.max(W,m)}garbageCollect(a,n);const q=o.indexOf(d),U=l.indexOf(m),y=$=>({width:o[$]||0,height:l[$]||0});return{first:y(0),last:y(n-1),widest:y(q),highest:y(U),widths:o,heights:l}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return _int16Range(this._alignToPixels?_alignPixel(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const i=n[t];return i.$context||(i.$context=createTickContext(this.getContext(),t,i))}return this.$context||(this.$context=createScaleContext(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=toRadians(this.labelRotation),i=Math.abs(Math.cos(n)),r=Math.abs(Math.sin(n)),a=this._getLabelSizes(),o=t.autoSkipPadding||0,l=a?a.widest.width+o:0,u=a?a.highest.height+o:0;return this.isHorizontal()?u*i>l*r?l/i:u/r:u*r<l*i?u/i:l/r}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,i=this.chart,r=this.options,{grid:a,position:o,border:l}=r,u=a.offset,d=this.isHorizontal(),g=this.ticks.length+(u?1:0),_=getTickMarkLength(a),v=[],w=l.setContext(this.getContext()),E=w.display?w.width:0,x=E/2,M=function(D){return _alignPixel(i,D,E)};let S,R,W,V,q,U,y,$,T,O,A,I;if(o==="top")S=M(this.bottom),U=this.bottom-_,$=S-x,O=M(t.top)+x,I=t.bottom;else if(o==="bottom")S=M(this.top),O=t.top,I=M(t.bottom)-x,U=S+x,$=this.top+_;else if(o==="left")S=M(this.right),q=this.right-_,y=S-x,T=M(t.left)+x,A=t.right;else if(o==="right")S=M(this.left),T=t.left,A=M(t.right)-x,q=S+x,y=this.left+_;else if(n==="x"){if(o==="center")S=M((t.top+t.bottom)/2+.5);else if(isObject$8(o)){const D=Object.keys(o)[0],F=o[D];S=M(this.chart.scales[D].getPixelForValue(F))}O=t.top,I=t.bottom,U=S+x,$=U+_}else if(n==="y"){if(o==="center")S=M((t.left+t.right)/2);else if(isObject$8(o)){const D=Object.keys(o)[0],F=o[D];S=M(this.chart.scales[D].getPixelForValue(F))}q=S-x,y=q-_,T=t.left,A=t.right}const z=valueOrDefault(r.ticks.maxTicksLimit,g),C=Math.max(1,Math.ceil(g/z));for(R=0;R<g;R+=C){const D=this.getContext(R),F=a.setContext(D),N=l.setContext(D),G=F.lineWidth,K=F.color,Z=N.dash||[],et=N.dashOffset,st=F.tickWidth,rt=F.tickColor,Q=F.tickBorderDash||[],J=F.tickBorderDashOffset;W=getPixelForGridLine(this,R,u),W!==void 0&&(V=_alignPixel(i,W,G),d?q=y=T=A=V:U=$=O=I=V,v.push({tx1:q,ty1:U,tx2:y,ty2:$,x1:T,y1:O,x2:A,y2:I,width:G,color:K,borderDash:Z,borderDashOffset:et,tickWidth:st,tickColor:rt,tickBorderDash:Q,tickBorderDashOffset:J}))}return this._ticksLength=g,this._borderValue=S,v}_computeLabelItems(t){const n=this.axis,i=this.options,{position:r,ticks:a}=i,o=this.isHorizontal(),l=this.ticks,{align:u,crossAlign:d,padding:m,mirror:g}=a,_=getTickMarkLength(i.grid),v=_+m,w=g?-m:v,E=-toRadians(this.labelRotation),x=[];let M,S,R,W,V,q,U,y,$,T,O,A,I="middle";if(r==="top")q=this.bottom-w,U=this._getXAxisLabelAlignment();else if(r==="bottom")q=this.top+w,U=this._getXAxisLabelAlignment();else if(r==="left"){const C=this._getYAxisLabelAlignment(_);U=C.textAlign,V=C.x}else if(r==="right"){const C=this._getYAxisLabelAlignment(_);U=C.textAlign,V=C.x}else if(n==="x"){if(r==="center")q=(t.top+t.bottom)/2+v;else if(isObject$8(r)){const C=Object.keys(r)[0],D=r[C];q=this.chart.scales[C].getPixelForValue(D)+v}U=this._getXAxisLabelAlignment()}else if(n==="y"){if(r==="center")V=(t.left+t.right)/2-v;else if(isObject$8(r)){const C=Object.keys(r)[0],D=r[C];V=this.chart.scales[C].getPixelForValue(D)}U=this._getYAxisLabelAlignment(_).textAlign}n==="y"&&(u==="start"?I="top":u==="end"&&(I="bottom"));const z=this._getLabelSizes();for(M=0,S=l.length;M<S;++M){R=l[M],W=R.label;const C=a.setContext(this.getContext(M));y=this.getPixelForTick(M)+a.labelOffset,$=this._resolveTickFontOptions(M),T=$.lineHeight,O=isArray$b(W)?W.length:1;const D=O/2,F=C.color,N=C.textStrokeColor,G=C.textStrokeWidth;let K=U;o?(V=y,U==="inner"&&(M===S-1?K=this.options.reverse?"left":"right":M===0?K=this.options.reverse?"right":"left":K="center"),r==="top"?d==="near"||E!==0?A=-O*T+T/2:d==="center"?A=-z.highest.height/2-D*T+T:A=-z.highest.height+T/2:d==="near"||E!==0?A=T/2:d==="center"?A=z.highest.height/2-D*T:A=z.highest.height-O*T,g&&(A*=-1),E!==0&&!C.showLabelBackdrop&&(V+=T/2*Math.sin(E))):(q=y,A=(1-O)*T/2);let Z;if(C.showLabelBackdrop){const et=toPadding(C.backdropPadding),st=z.heights[M],rt=z.widths[M];let Q=A-et.top,J=0-et.left;switch(I){case"middle":Q-=st/2;break;case"bottom":Q-=st;break}switch(U){case"center":J-=rt/2;break;case"right":J-=rt;break;case"inner":M===S-1?J-=rt:M>0&&(J-=rt/2);break}Z={left:J,top:Q,width:rt+et.width,height:st+et.height,color:C.backdropColor}}x.push({label:W,font:$,textOffset:A,options:{rotation:E,color:F,strokeColor:N,strokeWidth:G,textAlign:K,textBaseline:I,translation:[V,q],backdrop:Z}})}return x}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-toRadians(this.labelRotation))return t==="top"?"left":"right";let r="center";return n.align==="start"?r="left":n.align==="end"?r="right":n.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:i,mirror:r,padding:a}}=this.options,o=this._getLabelSizes(),l=t+a,u=o.widest.width;let d,m;return n==="left"?r?(m=this.right+a,i==="near"?d="left":i==="center"?(d="center",m+=u/2):(d="right",m+=u)):(m=this.right-l,i==="near"?d="right":i==="center"?(d="center",m-=u/2):(d="left",m=this.left)):n==="right"?r?(m=this.left+a,i==="near"?d="right":i==="center"?(d="center",m-=u/2):(d="left",m-=u)):(m=this.left+l,i==="near"?d="left":i==="center"?(d="center",m+=u/2):(d="right",m=this.right)):d="right",{textAlign:d,x:m}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:i,top:r,width:a,height:o}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(i,r,a,o),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const r=this.ticks.findIndex(a=>a.value===t);return r>=0?n.setContext(this.getContext(r)).lineWidth:0}drawGrid(t){const n=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let a,o;const l=(u,d,m)=>{!m.width||!m.color||(i.save(),i.lineWidth=m.width,i.strokeStyle=m.color,i.setLineDash(m.borderDash||[]),i.lineDashOffset=m.borderDashOffset,i.beginPath(),i.moveTo(u.x,u.y),i.lineTo(d.x,d.y),i.stroke(),i.restore())};if(n.display)for(a=0,o=r.length;a<o;++a){const u=r[a];n.drawOnChartArea&&l({x:u.x1,y:u.y1},{x:u.x2,y:u.y2},u),n.drawTicks&&l({x:u.tx1,y:u.ty1},{x:u.tx2,y:u.ty2},{color:u.tickColor,width:u.tickWidth,borderDash:u.tickBorderDash,borderDashOffset:u.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:i,grid:r}}=this,a=i.setContext(this.getContext()),o=i.display?a.width:0;if(!o)return;const l=r.setContext(this.getContext(0)).lineWidth,u=this._borderValue;let d,m,g,_;this.isHorizontal()?(d=_alignPixel(t,this.left,o)-o/2,m=_alignPixel(t,this.right,l)+l/2,g=_=u):(g=_alignPixel(t,this.top,o)-o/2,_=_alignPixel(t,this.bottom,l)+l/2,d=m=u),n.save(),n.lineWidth=a.width,n.strokeStyle=a.color,n.beginPath(),n.moveTo(d,g),n.lineTo(m,_),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const i=this.ctx,r=this._computeLabelArea();r&&clipArea(i,r);const a=this.getLabelItems(t);for(const o of a){const l=o.options,u=o.font,d=o.label,m=o.textOffset;renderText(i,d,0,m,u,l)}r&&unclipArea(i)}drawTitle(){const{ctx:t,options:{position:n,title:i,reverse:r}}=this;if(!i.display)return;const a=toFont(i.font),o=toPadding(i.padding),l=i.align;let u=a.lineHeight/2;n==="bottom"||n==="center"||isObject$8(n)?(u+=o.bottom,isArray$b(i.text)&&(u+=a.lineHeight*(i.text.length-1))):u+=o.top;const{titleX:d,titleY:m,maxWidth:g,rotation:_}=titleArgs(this,u,n,l);renderText(t,i.text,0,0,a,{color:i.color,maxWidth:g,rotation:_,textAlign:titleAlign(l,n,r),textBaseline:"middle",translation:[d,m]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,i=valueOrDefault(t.grid&&t.grid.z,-1),r=valueOrDefault(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Scale.prototype.draw?[{z:n,draw:a=>{this.draw(a)}}]:[{z:i,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:n,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[];let a,o;for(a=0,o=n.length;a<o;++a){const l=n[a];l[i]===this.id&&(!t||l.type===t)&&r.push(l)}return r}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return toFont(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class TypedRegistry{constructor(t,n,i){this.type=t,this.scope=n,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let i;isIChartComponent(n)&&(i=this.register(n));const r=this.items,a=t.id,o=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+t);return a in r||(r[a]=t,registerDefaults(t,o,i),this.override&&defaults.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const n=this.items,i=t.id,r=this.scope;i in n&&delete n[i],r&&i in defaults[r]&&(delete defaults[r][i],this.override&&delete overrides[i])}}function registerDefaults(e,t,n){const i=merge(Object.create(null),[n?defaults.get(n):{},defaults.get(t),e.defaults]);defaults.set(t,i),e.defaultRoutes&&routeDefaults(t,e.defaultRoutes),e.descriptors&&defaults.describe(t,e.descriptors)}function routeDefaults(e,t){Object.keys(t).forEach(n=>{const i=n.split("."),r=i.pop(),a=[e].concat(i).join("."),o=t[n].split("."),l=o.pop(),u=o.join(".");defaults.route(a,r,u,l)})}function isIChartComponent(e){return"id"in e&&"defaults"in e}class Registry{constructor(){this.controllers=new TypedRegistry(DatasetController,"datasets",!0),this.elements=new TypedRegistry(Element$1,"elements"),this.plugins=new TypedRegistry(Object,"plugins"),this.scales=new TypedRegistry(Scale,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,i){[...n].forEach(r=>{const a=i||this._getRegistryForType(r);i||a.isForType(r)||a===this.plugins&&r.id?this._exec(t,a,r):each(r,o=>{const l=i||this._getRegistryForType(o);this._exec(t,l,o)})})}_exec(t,n,i){const r=_capitalize(t);callback(i["before"+r],[],i),n[t](i),callback(i["after"+r],[],i)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const i=this._typedRegistries[n];if(i.isForType(t))return i}return this.plugins}_get(t,n,i){const r=n.get(t);if(r===void 0)throw new Error('"'+t+'" is not a registered '+i+".");return r}}var registry=new Registry;class PluginService{constructor(){this._init=[]}notify(t,n,i,r){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const a=r?this._descriptors(t).filter(r):this._descriptors(t),o=this._notify(a,t,n,i);return n==="afterDestroy"&&(this._notify(a,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,n,i,r){r=r||{};for(const a of t){const o=a.plugin,l=o[i],u=[n,r,a.options];if(callback(l,u,o)===!1&&r.cancelable)return!1}return!0}invalidate(){isNullOrUndef(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const i=t&&t.config,r=valueOrDefault(i.options&&i.options.plugins,{}),a=allPlugins(i);return r===!1&&!n?[]:createDescriptors(t,a,r,n)}_notifyStateChanges(t){const n=this._oldCache||[],i=this._cache,r=(a,o)=>a.filter(l=>!o.some(u=>l.plugin.id===u.plugin.id));this._notify(r(n,i),t,"stop"),this._notify(r(i,n),t,"start")}}function allPlugins(e){const t={},n=[],i=Object.keys(registry.plugins.items);for(let a=0;a<i.length;a++)n.push(registry.getPlugin(i[a]));const r=e.plugins||[];for(let a=0;a<r.length;a++){const o=r[a];n.indexOf(o)===-1&&(n.push(o),t[o.id]=!0)}return{plugins:n,localIds:t}}function getOpts(e,t){return!t&&e===!1?null:e===!0?{}:e}function createDescriptors(e,{plugins:t,localIds:n},i,r){const a=[],o=e.getContext();for(const l of t){const u=l.id,d=getOpts(i[u],r);d!==null&&a.push({plugin:l,options:pluginOpts(e.config,{plugin:l,local:n[u]},d,o)})}return a}function pluginOpts(e,{plugin:t,local:n},i,r){const a=e.pluginScopeKeys(t),o=e.getOptionScopes(i,a);return n&&t.defaults&&o.push(t.defaults),e.createResolver(o,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function getIndexAxis(e,t){const n=defaults.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function getAxisFromDefaultScaleID(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function getDefaultScaleIDFromAxis(e,t){return e===t?"_index_":"_value_"}function idMatchesAxis(e){if(e==="x"||e==="y"||e==="r")return e}function axisFromPosition(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function determineAxis(e,...t){if(idMatchesAxis(e))return e;for(const n of t){const i=n.axis||axisFromPosition(n.position)||e.length>1&&idMatchesAxis(e[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function getAxisFromDataset(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function retrieveAxisFromDatasets(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(i=>i.xAxisID===e||i.yAxisID===e);if(n.length)return getAxisFromDataset(e,"x",n[0])||getAxisFromDataset(e,"y",n[0])}return{}}function mergeScaleConfig(e,t){const n=overrides[e.type]||{scales:{}},i=t.scales||{},r=getIndexAxis(e.type,t),a=Object.create(null);return Object.keys(i).forEach(o=>{const l=i[o];if(!isObject$8(l))return console.error(`Invalid scale configuration for scale: ${o}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const u=determineAxis(o,l,retrieveAxisFromDatasets(o,e),defaults.scales[l.type]),d=getDefaultScaleIDFromAxis(u,r),m=n.scales||{};a[o]=mergeIf(Object.create(null),[{axis:u},l,m[u],m[d]])}),e.data.datasets.forEach(o=>{const l=o.type||e.type,u=o.indexAxis||getIndexAxis(l,t),m=(overrides[l]||{}).scales||{};Object.keys(m).forEach(g=>{const _=getAxisFromDefaultScaleID(g,u),v=o[_+"AxisID"]||_;a[v]=a[v]||Object.create(null),mergeIf(a[v],[{axis:_},i[v],m[g]])})}),Object.keys(a).forEach(o=>{const l=a[o];mergeIf(l,[defaults.scales[l.type],defaults.scale])}),a}function initOptions(e){const t=e.options||(e.options={});t.plugins=valueOrDefault(t.plugins,{}),t.scales=mergeScaleConfig(e,t)}function initData(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function initConfig(e){return e=e||{},e.data=initData(e.data),initOptions(e),e}const keyCache=new Map,keysCached=new Set;function cachedKeys(e,t){let n=keyCache.get(e);return n||(n=t(),keyCache.set(e,n),keysCached.add(n)),n}const addIfFound=(e,t,n)=>{const i=resolveObjectKey(t,n);i!==void 0&&e.add(i)};class Config{constructor(t){this._config=initConfig(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=initData(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),initOptions(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return cachedKeys(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return cachedKeys(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return cachedKeys(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,i=this.type;return cachedKeys(`${i}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const i=this._scopeCache;let r=i.get(t);return(!r||n)&&(r=new Map,i.set(t,r)),r}getOptionScopes(t,n,i){const{options:r,type:a}=this,o=this._cachedScopes(t,i),l=o.get(n);if(l)return l;const u=new Set;n.forEach(m=>{t&&(u.add(t),m.forEach(g=>addIfFound(u,t,g))),m.forEach(g=>addIfFound(u,r,g)),m.forEach(g=>addIfFound(u,overrides[a]||{},g)),m.forEach(g=>addIfFound(u,defaults,g)),m.forEach(g=>addIfFound(u,descriptors,g))});const d=Array.from(u);return d.length===0&&d.push(Object.create(null)),keysCached.has(n)&&o.set(n,d),d}chartOptionScopes(){const{options:t,type:n}=this;return[t,overrides[n]||{},defaults.datasets[n]||{},{type:n},defaults,descriptors]}resolveNamedOptions(t,n,i,r=[""]){const a={$shared:!0},{resolver:o,subPrefixes:l}=getResolver(this._resolverCache,t,r);let u=o;if(needContext(o,n)){a.$shared=!1,i=isFunction$3(i)?i():i;const d=this.createResolver(t,i,l);u=_attachContext(o,i,d)}for(const d of n)a[d]=u[d];return a}createResolver(t,n,i=[""],r){const{resolver:a}=getResolver(this._resolverCache,t,i);return isObject$8(n)?_attachContext(a,n,void 0,r):a}}function getResolver(e,t,n){let i=e.get(t);i||(i=new Map,e.set(t,i));const r=n.join();let a=i.get(r);return a||(a={resolver:_createResolver(t,n),subPrefixes:n.filter(l=>!l.toLowerCase().includes("hover"))},i.set(r,a)),a}const hasFunction=e=>isObject$8(e)&&Object.getOwnPropertyNames(e).some(t=>isFunction$3(e[t]));function needContext(e,t){const{isScriptable:n,isIndexable:i}=_descriptors(e);for(const r of t){const a=n(r),o=i(r),l=(o||a)&&e[r];if(a&&(isFunction$3(l)||hasFunction(l))||o&&isArray$b(l))return!0}return!1}var version="4.4.1";const KNOWN_POSITIONS=["top","bottom","left","right","chartArea"];function positionIsHorizontal(e,t){return e==="top"||e==="bottom"||KNOWN_POSITIONS.indexOf(e)===-1&&t==="x"}function compare2Level(e,t){return function(n,i){return n[e]===i[e]?n[t]-i[t]:n[e]-i[e]}}function onAnimationsComplete(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),callback(n&&n.onComplete,[e],t)}function onAnimationProgress(e){const t=e.chart,n=t.options.animation;callback(n&&n.onProgress,[e],t)}function getCanvas(e){return _isDomSupported()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const instances={},getChart=e=>{const t=getCanvas(e);return Object.values(instances).filter(n=>n.canvas===t).pop()};function moveNumericKeys(e,t,n){const i=Object.keys(e);for(const r of i){const a=+r;if(a>=t){const o=e[r];delete e[r],(n>0||a>t)&&(e[a+n]=o)}}}function determineLastEvent(e,t,n,i){return!n||e.type==="mouseout"?null:i?t:e}function getSizeForArea(e,t,n){return e.options.clip?e[n]:t[n]}function getDatasetArea(e,t){const{xScale:n,yScale:i}=e;return n&&i?{left:getSizeForArea(n,t,"left"),right:getSizeForArea(n,t,"right"),top:getSizeForArea(i,t,"top"),bottom:getSizeForArea(i,t,"bottom")}:t}class Chart{static register(...t){registry.add(...t),invalidatePlugins()}static unregister(...t){registry.remove(...t),invalidatePlugins()}constructor(t,n){const i=this.config=new Config(n),r=getCanvas(t),a=getChart(r);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||_detectPlatform(r)),this.platform.updateConfig(i);const l=this.platform.acquireContext(r,o.aspectRatio),u=l&&l.canvas,d=u&&u.height,m=u&&u.width;if(this.id=uid(),this.ctx=l,this.canvas=u,this.width=m,this.height=d,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new PluginService,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=debounce$2(g=>this.update(g),o.resizeDelay||0),this._dataChanges=[],instances[this.id]=this,!l||!u){console.error("Failed to create chart: can't acquire context from the given item");return}animator.listen(this,"complete",onAnimationsComplete),animator.listen(this,"progress",onAnimationProgress),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:i,height:r,_aspectRatio:a}=this;return isNullOrUndef(t)?n&&a?a:r?i/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return registry}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():retinaScale(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return clearCanvas(this.canvas,this.ctx),this}stop(){return animator.stop(this),this}resize(t,n){animator.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const i=this.options,r=this.canvas,a=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(r,t,n,a),l=i.devicePixelRatio||this.platform.getDevicePixelRatio(),u=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,retinaScale(this,l,!0)&&(this.notifyPlugins("resize",{size:o}),callback(i.onResize,[this,o],this),this.attached&&this._doResize(u)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};each(n,(i,r)=>{i.id=r})}buildOrUpdateScales(){const t=this.options,n=t.scales,i=this.scales,r=Object.keys(i).reduce((o,l)=>(o[l]=!1,o),{});let a=[];n&&(a=a.concat(Object.keys(n).map(o=>{const l=n[o],u=determineAxis(o,l),d=u==="r",m=u==="x";return{options:l,dposition:d?"chartArea":m?"bottom":"left",dtype:d?"radialLinear":m?"category":"linear"}}))),each(a,o=>{const l=o.options,u=l.id,d=determineAxis(u,l),m=valueOrDefault(l.type,o.dtype);(l.position===void 0||positionIsHorizontal(l.position,d)!==positionIsHorizontal(o.dposition))&&(l.position=o.dposition),r[u]=!0;let g=null;if(u in i&&i[u].type===m)g=i[u];else{const _=registry.getScale(m);g=new _({id:u,type:m,ctx:this.ctx,chart:this}),i[g.id]=g}g.init(l,t)}),each(r,(o,l)=>{o||delete i[l]}),each(i,o=>{layouts.configure(this,o,o.options),layouts.addBox(this,o)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,i=t.length;if(t.sort((r,a)=>r.index-a.index),i>n){for(let r=n;r<i;++r)this._destroyDatasetMeta(r);t.splice(n,i-n)}this._sortedMetasets=t.slice(0).sort(compare2Level("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((i,r)=>{n.filter(a=>a===i._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let i,r;for(this._removeUnreferencedMetasets(),i=0,r=n.length;i<r;i++){const a=n[i];let o=this.getDatasetMeta(i);const l=a.type||this.config.type;if(o.type&&o.type!==l&&(this._destroyDatasetMeta(i),o=this.getDatasetMeta(i)),o.type=l,o.indexAxis=a.indexAxis||getIndexAxis(l,this.options),o.order=a.order||0,o.index=i,o.label=""+a.label,o.visible=this.isDatasetVisible(i),o.controller)o.controller.updateIndex(i),o.controller.linkScales();else{const u=registry.getController(l),{datasetElementType:d,dataElementType:m}=defaults.datasets[l];Object.assign(u,{dataElementType:registry.getElement(m),datasetElementType:d&&registry.getElement(d)}),o.controller=new u(this,i),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){each(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const i=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let d=0,m=this.data.datasets.length;d<m;d++){const{controller:g}=this.getDatasetMeta(d),_=!r&&a.indexOf(g)===-1;g.buildOrUpdateElements(_),o=Math.max(+g.getMaxOverflow(),o)}o=this._minPadding=i.layout.autoPadding?o:0,this._updateLayout(o),r||each(a,d=>{d.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(compare2Level("z","_idx"));const{_active:l,_lastEvent:u}=this;u?this._eventHandler(u,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){each(this.scales,t=>{layouts.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(t.events);(!setsEqual(n,i)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:i,start:r,count:a}of n){const o=i==="_removeElements"?-a:a;moveNumericKeys(t,r,o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,i=a=>new Set(t.filter(o=>o[0]===a).map((o,l)=>l+","+o.splice(1).join(","))),r=i(0);for(let a=1;a<n;a++)if(!setsEqual(r,i(a)))return;return Array.from(r).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;layouts.update(this,this.width,this.height,t);const n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],each(this.boxes,r=>{i&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,a)=>{r._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,i=this.data.datasets.length;n<i;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,i=this.data.datasets.length;n<i;++n)this._updateDataset(n,isFunction$3(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const i=this.getDatasetMeta(t),r={meta:i,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",r)!==!1&&(i.controller._update(n),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(animator.has(this)?this.attached&&!animator.running(this)&&animator.start(this):(this.draw(),onAnimationsComplete({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:i,height:r}=this._resizeBeforeDraw;this._resize(i,r),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,i=[];let r,a;for(r=0,a=n.length;r<a;++r){const o=n[r];(!t||o.visible)&&i.push(o)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,i=t._clip,r=!i.disabled,a=getDatasetArea(t,this.chartArea),o={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(r&&clipArea(n,{left:i.left===!1?0:a.left-i.left,right:i.right===!1?this.width:a.right+i.right,top:i.top===!1?0:a.top-i.top,bottom:i.bottom===!1?this.height:a.bottom+i.bottom}),t.controller.draw(),r&&unclipArea(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return _isPointInArea(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,i,r){const a=Interaction.modes[n];return typeof a=="function"?a(this,t,i,r):[]}getDatasetMeta(t){const n=this.data.datasets[t],i=this._metasets;let r=i.filter(a=>a&&a._dataset===n).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},i.push(r)),r}getContext(){return this.$context||(this.$context=createContext(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const i=this.getDatasetMeta(t);return typeof i.hidden=="boolean"?!i.hidden:!n.hidden}setDatasetVisibility(t,n){const i=this.getDatasetMeta(t);i.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,i){const r=i?"show":"hide",a=this.getDatasetMeta(t),o=a.controller._resolveAnimations(void 0,r);defined$1(n)?(a.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),o.update(a,{visible:i}),this.update(l=>l.datasetIndex===t?r:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),animator.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),clearCanvas(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete instances[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,i=(a,o)=>{n.addEventListener(this,a,o),t[a]=o},r=(a,o,l)=>{a.offsetX=o,a.offsetY=l,this._eventHandler(a)};each(this.options.events,a=>i(a,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,i=(u,d)=>{n.addEventListener(this,u,d),t[u]=d},r=(u,d)=>{t[u]&&(n.removeEventListener(this,u,d),delete t[u])},a=(u,d)=>{this.canvas&&this.resize(u,d)};let o;const l=()=>{r("attach",l),this.attached=!0,this.resize(),i("resize",a),i("detach",o)};o=()=>{this.attached=!1,r("resize",a),this._stop(),this._resize(0,0),i("attach",l)},n.isAttached(this.canvas)?l():o()}unbindEvents(){each(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},each(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,i){const r=i?"set":"remove";let a,o,l,u;for(n==="dataset"&&(a=this.getDatasetMeta(t[0].datasetIndex),a.controller["_"+r+"DatasetHoverStyle"]()),l=0,u=t.length;l<u;++l){o=t[l];const d=o&&this.getDatasetMeta(o.datasetIndex).controller;d&&d[r+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],i=t.map(({datasetIndex:a,index:o})=>{const l=this.getDatasetMeta(a);if(!l)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:l.data[o],index:o}});!_elementsEqual(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(t,n,i){return this._plugins.notify(this,t,n,i)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,i){const r=this.options.hover,a=(u,d)=>u.filter(m=>!d.some(g=>m.datasetIndex===g.datasetIndex&&m.index===g.index)),o=a(n,t),l=i?t:a(t,n);o.length&&this.updateHoverStyle(o,r.mode,!1),l.length&&r.mode&&this.updateHoverStyle(l,r.mode,!0)}_eventHandler(t,n){const i={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},r=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",i,r)===!1)return;const a=this._handleEvent(t,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,r),(a||i.changed)&&this.render(),this}_handleEvent(t,n,i){const{_active:r=[],options:a}=this,o=n,l=this._getActiveElements(t,r,i,o),u=_isClickEvent(t),d=determineLastEvent(t,this._lastEvent,i,u);i&&(this._lastEvent=null,callback(a.onHover,[t,l,this],this),u&&callback(a.onClick,[t,l,this],this));const m=!_elementsEqual(l,r);return(m||n)&&(this._active=l,this._updateHoverStyles(l,r,n)),this._lastEvent=d,m}_getActiveElements(t,n,i,r){if(t.type==="mouseout")return[];if(!i)return n;const a=this.options.hover;return this.getElementsAtEventForMode(t,a.mode,a,r)}}Y(Chart,"defaults",defaults),Y(Chart,"instances",instances),Y(Chart,"overrides",overrides),Y(Chart,"registry",registry),Y(Chart,"version",version),Y(Chart,"getChart",getChart);function invalidatePlugins(){return each(Chart.instances,e=>e._plugins.invalidate())}function clipArc(e,t,n){const{startAngle:i,pixelMargin:r,x:a,y:o,outerRadius:l,innerRadius:u}=t;let d=r/l;e.beginPath(),e.arc(a,o,l,i-d,n+d),u>r?(d=r/u,e.arc(a,o,u,n+d,i-d,!0)):e.arc(a,o,r,n+HALF_PI,i-HALF_PI),e.closePath(),e.clip()}function toRadiusCorners(e){return _readValueToProps(e,["outerStart","outerEnd","innerStart","innerEnd"])}function parseBorderRadius$1(e,t,n,i){const r=toRadiusCorners(e.options.borderRadius),a=(n-t)/2,o=Math.min(a,i*t/2),l=u=>{const d=(n-Math.min(a,u))*i/2;return _limitValue(u,0,Math.min(a,d))};return{outerStart:l(r.outerStart),outerEnd:l(r.outerEnd),innerStart:_limitValue(r.innerStart,0,o),innerEnd:_limitValue(r.innerEnd,0,o)}}function rThetaToXY(e,t,n,i){return{x:n+e*Math.cos(t),y:i+e*Math.sin(t)}}function pathArc(e,t,n,i,r,a){const{x:o,y:l,startAngle:u,pixelMargin:d,innerRadius:m}=t,g=Math.max(t.outerRadius+i+n-d,0),_=m>0?m+i+n+d:0;let v=0;const w=r-u;if(i){const C=m>0?m-i:0,D=g>0?g-i:0,F=(C+D)/2,N=F!==0?w*F/(F+i):w;v=(w-N)/2}const E=Math.max(.001,w*g-n/PI)/g,x=(w-E)/2,M=u+x+v,S=r-x-v,{outerStart:R,outerEnd:W,innerStart:V,innerEnd:q}=parseBorderRadius$1(t,_,g,S-M),U=g-R,y=g-W,$=M+R/U,T=S-W/y,O=_+V,A=_+q,I=M+V/O,z=S-q/A;if(e.beginPath(),a){const C=($+T)/2;if(e.arc(o,l,g,$,C),e.arc(o,l,g,C,T),W>0){const G=rThetaToXY(y,T,o,l);e.arc(G.x,G.y,W,T,S+HALF_PI)}const D=rThetaToXY(A,S,o,l);if(e.lineTo(D.x,D.y),q>0){const G=rThetaToXY(A,z,o,l);e.arc(G.x,G.y,q,S+HALF_PI,z+Math.PI)}const F=(S-q/_+(M+V/_))/2;if(e.arc(o,l,_,S-q/_,F,!0),e.arc(o,l,_,F,M+V/_,!0),V>0){const G=rThetaToXY(O,I,o,l);e.arc(G.x,G.y,V,I+Math.PI,M-HALF_PI)}const N=rThetaToXY(U,M,o,l);if(e.lineTo(N.x,N.y),R>0){const G=rThetaToXY(U,$,o,l);e.arc(G.x,G.y,R,M-HALF_PI,$)}}else{e.moveTo(o,l);const C=Math.cos($)*g+o,D=Math.sin($)*g+l;e.lineTo(C,D);const F=Math.cos(T)*g+o,N=Math.sin(T)*g+l;e.lineTo(F,N)}e.closePath()}function drawArc(e,t,n,i,r){const{fullCircles:a,startAngle:o,circumference:l}=t;let u=t.endAngle;if(a){pathArc(e,t,n,i,u,r);for(let d=0;d<a;++d)e.fill();isNaN(l)||(u=o+(l%TAU||TAU))}return pathArc(e,t,n,i,u,r),e.fill(),u}function drawBorder(e,t,n,i,r){const{fullCircles:a,startAngle:o,circumference:l,options:u}=t,{borderWidth:d,borderJoinStyle:m,borderDash:g,borderDashOffset:_}=u,v=u.borderAlign==="inner";if(!d)return;e.setLineDash(g||[]),e.lineDashOffset=_,v?(e.lineWidth=d*2,e.lineJoin=m||"round"):(e.lineWidth=d,e.lineJoin=m||"bevel");let w=t.endAngle;if(a){pathArc(e,t,n,i,w,r);for(let E=0;E<a;++E)e.stroke();isNaN(l)||(w=o+(l%TAU||TAU))}v&&clipArc(e,t,w),a||(pathArc(e,t,n,i,w,r),e.stroke())}class ArcElement extends Element$1{constructor(n){super();Y(this,"circumference");Y(this,"endAngle");Y(this,"fullCircles");Y(this,"innerRadius");Y(this,"outerRadius");Y(this,"pixelMargin");Y(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,i,r){const a=this.getProps(["x","y"],r),{angle:o,distance:l}=getAngleFromPoint(a,{x:n,y:i}),{startAngle:u,endAngle:d,innerRadius:m,outerRadius:g,circumference:_}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),v=(this.options.spacing+this.options.borderWidth)/2,E=valueOrDefault(_,d-u)>=TAU||_angleBetween(o,u,d),x=_isBetween(l,m+v,g+v);return E&&x}getCenterPoint(n){const{x:i,y:r,startAngle:a,endAngle:o,innerRadius:l,outerRadius:u}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:d,spacing:m}=this.options,g=(a+o)/2,_=(l+u+m+d)/2;return{x:i+Math.cos(g)*_,y:r+Math.sin(g)*_}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:i,circumference:r}=this,a=(i.offset||0)/4,o=(i.spacing||0)/2,l=i.circular;if(this.pixelMargin=i.borderAlign==="inner"?.33:0,this.fullCircles=r>TAU?Math.floor(r/TAU):0,r===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const u=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(u)*a,Math.sin(u)*a);const d=1-Math.sin(Math.min(PI,r||0)),m=a*d;n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,drawArc(n,this,m,o,l),drawBorder(n,this,m,o,l),n.restore()}}Y(ArcElement,"id","arc"),Y(ArcElement,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),Y(ArcElement,"defaultRoutes",{backgroundColor:"backgroundColor"}),Y(ArcElement,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function setStyle$1(e,t,n=t){e.lineCap=valueOrDefault(n.borderCapStyle,t.borderCapStyle),e.setLineDash(valueOrDefault(n.borderDash,t.borderDash)),e.lineDashOffset=valueOrDefault(n.borderDashOffset,t.borderDashOffset),e.lineJoin=valueOrDefault(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=valueOrDefault(n.borderWidth,t.borderWidth),e.strokeStyle=valueOrDefault(n.borderColor,t.borderColor)}function lineTo(e,t,n){e.lineTo(n.x,n.y)}function getLineMethod(e){return e.stepped?_steppedLineTo:e.tension||e.cubicInterpolationMode==="monotone"?_bezierCurveTo:lineTo}function pathVars(e,t,n={}){const i=e.length,{start:r=0,end:a=i-1}=n,{start:o,end:l}=t,u=Math.max(r,o),d=Math.min(a,l),m=r<o&&a<o||r>l&&a>l;return{count:i,start:u,loop:t.loop,ilen:d<u&&!m?i+d-u:d-u}}function pathSegment(e,t,n,i){const{points:r,options:a}=t,{count:o,start:l,loop:u,ilen:d}=pathVars(r,n,i),m=getLineMethod(a);let{move:g=!0,reverse:_}=i||{},v,w,E;for(v=0;v<=d;++v)w=r[(l+(_?d-v:v))%o],!w.skip&&(g?(e.moveTo(w.x,w.y),g=!1):m(e,E,w,_,a.stepped),E=w);return u&&(w=r[(l+(_?d:0))%o],m(e,E,w,_,a.stepped)),!!u}function fastPathSegment(e,t,n,i){const r=t.points,{count:a,start:o,ilen:l}=pathVars(r,n,i),{move:u=!0,reverse:d}=i||{};let m=0,g=0,_,v,w,E,x,M;const S=W=>(o+(d?l-W:W))%a,R=()=>{E!==x&&(e.lineTo(m,x),e.lineTo(m,E),e.lineTo(m,M))};for(u&&(v=r[S(0)],e.moveTo(v.x,v.y)),_=0;_<=l;++_){if(v=r[S(_)],v.skip)continue;const W=v.x,V=v.y,q=W|0;q===w?(V<E?E=V:V>x&&(x=V),m=(g*m+W)/++g):(R(),e.lineTo(W,V),w=q,g=0,E=x=V),M=V}R()}function _getSegmentMethod(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?fastPathSegment:pathSegment}function _getInterpolationMethod(e){return e.stepped?_steppedInterpolation:e.tension||e.cubicInterpolationMode==="monotone"?_bezierInterpolation:_pointInLine}function strokePathWithCache(e,t,n,i){let r=t._path;r||(r=t._path=new Path2D,t.path(r,n,i)&&r.closePath()),setStyle$1(e,t.options),e.stroke(r)}function strokePathDirect(e,t,n,i){const{segments:r,options:a}=t,o=_getSegmentMethod(t);for(const l of r)setStyle$1(e,a,l.style),e.beginPath(),o(e,t,l,{start:n,end:n+i-1})&&e.closePath(),e.stroke()}const usePath2D=typeof Path2D=="function";function draw(e,t,n,i){usePath2D&&!t.options.segment?strokePathWithCache(e,t,n,i):strokePathDirect(e,t,n,i)}class LineElement extends Element$1{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const r=i.spanGaps?this._loop:this._fullLoop;_updateBezierControlPoints(this._points,i,t,r,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=_computeSegments(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,i=t.length;return i&&n[t[i-1].end]}interpolate(t,n){const i=this.options,r=t[n],a=this.points,o=_boundSegments(this,{property:n,start:r,end:r});if(!o.length)return;const l=[],u=_getInterpolationMethod(i);let d,m;for(d=0,m=o.length;d<m;++d){const{start:g,end:_}=o[d],v=a[g],w=a[_];if(v===w){l.push(v);continue}const E=Math.abs((r-v[n])/(w[n]-v[n])),x=u(v,w,E,i.stepped);x[n]=t[n],l.push(x)}return l.length===1?l[0]:l}pathSegment(t,n,i){return _getSegmentMethod(this)(t,this,n,i)}path(t,n,i){const r=this.segments,a=_getSegmentMethod(this);let o=this._loop;n=n||0,i=i||this.points.length-n;for(const l of r)o&=a(t,this,l,{start:n,end:n+i-1});return!!o}draw(t,n,i,r){const a=this.options||{};(this.points||[]).length&&a.borderWidth&&(t.save(),draw(t,this,i,r),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}Y(LineElement,"id","line"),Y(LineElement,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),Y(LineElement,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),Y(LineElement,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function inRange$1(e,t,n,i){const r=e.options,{[n]:a}=e.getProps([n],i);return Math.abs(t-a)<r.radius+r.hitRadius}class PointElement extends Element$1{constructor(n){super();Y(this,"parsed");Y(this,"skip");Y(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,i,r){const a=this.options,{x:o,y:l}=this.getProps(["x","y"],r);return Math.pow(n-o,2)+Math.pow(i-l,2)<Math.pow(a.hitRadius+a.radius,2)}inXRange(n,i){return inRange$1(this,n,"x",i)}inYRange(n,i){return inRange$1(this,n,"y",i)}getCenterPoint(n){const{x:i,y:r}=this.getProps(["x","y"],n);return{x:i,y:r}}size(n){n=n||this.options||{};let i=n.radius||0;i=Math.max(i,i&&n.hoverRadius||0);const r=i&&n.borderWidth||0;return(i+r)*2}draw(n,i){const r=this.options;this.skip||r.radius<.1||!_isPointInArea(this,i,this.size(r)/2)||(n.strokeStyle=r.borderColor,n.lineWidth=r.borderWidth,n.fillStyle=r.backgroundColor,drawPoint(n,r,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}Y(PointElement,"id","point"),Y(PointElement,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),Y(PointElement,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function getBarBounds(e,t){const{x:n,y:i,base:r,width:a,height:o}=e.getProps(["x","y","base","width","height"],t);let l,u,d,m,g;return e.horizontal?(g=o/2,l=Math.min(n,r),u=Math.max(n,r),d=i-g,m=i+g):(g=a/2,l=n-g,u=n+g,d=Math.min(i,r),m=Math.max(i,r)),{left:l,top:d,right:u,bottom:m}}function skipOrLimit(e,t,n,i){return e?0:_limitValue(t,n,i)}function parseBorderWidth(e,t,n){const i=e.options.borderWidth,r=e.borderSkipped,a=toTRBL(i);return{t:skipOrLimit(r.top,a.top,0,n),r:skipOrLimit(r.right,a.right,0,t),b:skipOrLimit(r.bottom,a.bottom,0,n),l:skipOrLimit(r.left,a.left,0,t)}}function parseBorderRadius(e,t,n){const{enableBorderRadius:i}=e.getProps(["enableBorderRadius"]),r=e.options.borderRadius,a=toTRBLCorners(r),o=Math.min(t,n),l=e.borderSkipped,u=i||isObject$8(r);return{topLeft:skipOrLimit(!u||l.top||l.left,a.topLeft,0,o),topRight:skipOrLimit(!u||l.top||l.right,a.topRight,0,o),bottomLeft:skipOrLimit(!u||l.bottom||l.left,a.bottomLeft,0,o),bottomRight:skipOrLimit(!u||l.bottom||l.right,a.bottomRight,0,o)}}function boundingRects(e){const t=getBarBounds(e),n=t.right-t.left,i=t.bottom-t.top,r=parseBorderWidth(e,n/2,i/2),a=parseBorderRadius(e,n/2,i/2);return{outer:{x:t.left,y:t.top,w:n,h:i,radius:a},inner:{x:t.left+r.l,y:t.top+r.t,w:n-r.l-r.r,h:i-r.t-r.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,a.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(r.b,r.r))}}}}function inRange(e,t,n,i){const r=t===null,a=n===null,l=e&&!(r&&a)&&getBarBounds(e,i);return l&&(r||_isBetween(t,l.left,l.right))&&(a||_isBetween(n,l.top,l.bottom))}function hasRadius(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function addNormalRectPath(e,t){e.rect(t.x,t.y,t.w,t.h)}function inflateRect(e,t,n={}){const i=e.x!==n.x?-t:0,r=e.y!==n.y?-t:0,a=(e.x+e.w!==n.x+n.w?t:0)-i,o=(e.y+e.h!==n.y+n.h?t:0)-r;return{x:e.x+i,y:e.y+r,w:e.w+a,h:e.h+o,radius:e.radius}}class BarElement extends Element$1{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:i,backgroundColor:r}}=this,{inner:a,outer:o}=boundingRects(this),l=hasRadius(o.radius)?addRoundedRectPath:addNormalRectPath;t.save(),(o.w!==a.w||o.h!==a.h)&&(t.beginPath(),l(t,inflateRect(o,n,a)),t.clip(),l(t,inflateRect(a,-n,o)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),l(t,inflateRect(a,n)),t.fillStyle=r,t.fill(),t.restore()}inRange(t,n,i){return inRange(this,t,n,i)}inXRange(t,n){return inRange(this,t,null,n)}inYRange(t,n){return inRange(this,null,t,n)}getCenterPoint(t){const{x:n,y:i,base:r,horizontal:a}=this.getProps(["x","y","base","horizontal"],t);return{x:a?(n+r)/2:n,y:a?i:(i+r)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}Y(BarElement,"id","bar"),Y(BarElement,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),Y(BarElement,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const BORDER_COLORS=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],BACKGROUND_COLORS=BORDER_COLORS.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function getBorderColor(e){return BORDER_COLORS[e%BORDER_COLORS.length]}function getBackgroundColor(e){return BACKGROUND_COLORS[e%BACKGROUND_COLORS.length]}function colorizeDefaultDataset(e,t){return e.borderColor=getBorderColor(t),e.backgroundColor=getBackgroundColor(t),++t}function colorizeDoughnutDataset(e,t){return e.backgroundColor=e.data.map(()=>getBorderColor(t++)),t}function colorizePolarAreaDataset(e,t){return e.backgroundColor=e.data.map(()=>getBackgroundColor(t++)),t}function getColorizer(e){let t=0;return(n,i)=>{const r=e.getDatasetMeta(i).controller;r instanceof DoughnutController?t=colorizeDoughnutDataset(n,t):r instanceof PolarAreaController?t=colorizePolarAreaDataset(n,t):r&&(t=colorizeDefaultDataset(n,t))}}function containsColorsDefinitions(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function containsColorsDefinition(e){return e&&(e.borderColor||e.backgroundColor)}var plugin_colors={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:i},options:r}=e.config,{elements:a}=r;if(!n.forceOverride&&(containsColorsDefinitions(i)||containsColorsDefinition(r)||a&&containsColorsDefinitions(a)))return;const o=getColorizer(e);i.forEach(o)}};function _segments(e,t,n){const i=e.segments,r=e.points,a=t.points,o=[];for(const l of i){let{start:u,end:d}=l;d=_findSegmentEnd(u,d,r);const m=_getBounds(n,r[u],r[d],l.loop);if(!t.segments){o.push({source:l,target:m,start:r[u],end:r[d]});continue}const g=_boundSegments(t,m);for(const _ of g){const v=_getBounds(n,a[_.start],a[_.end],_.loop),w=_boundSegment(l,r,v);for(const E of w)o.push({source:E,target:_,start:{[n]:_getEdge(m,v,"start",Math.max)},end:{[n]:_getEdge(m,v,"end",Math.min)}})}}return o}function _getBounds(e,t,n,i){if(i)return;let r=t[e],a=n[e];return e==="angle"&&(r=_normalizeAngle(r),a=_normalizeAngle(a)),{property:e,start:r,end:a}}function _pointsFromSegments(e,t){const{x:n=null,y:i=null}=e||{},r=t.points,a=[];return t.segments.forEach(({start:o,end:l})=>{l=_findSegmentEnd(o,l,r);const u=r[o],d=r[l];i!==null?(a.push({x:u.x,y:i}),a.push({x:d.x,y:i})):n!==null&&(a.push({x:n,y:u.y}),a.push({x:n,y:d.y}))}),a}function _findSegmentEnd(e,t,n){for(;t>e;t--){const i=n[t];if(!isNaN(i.x)&&!isNaN(i.y))break}return t}function _getEdge(e,t,n,i){return e&&t?i(e[n],t[n]):e?e[n]:t?t[n]:0}function _createBoundaryLine(e,t){let n=[],i=!1;return isArray$b(e)?(i=!0,n=e):n=_pointsFromSegments(e,t),n.length?new LineElement({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function _shouldApplyFill(e){return e&&e.fill!==!1}function _resolveTarget(e,t,n){let r=e[t].fill;const a=[t];let o;if(!n)return r;for(;r!==!1&&a.indexOf(r)===-1;){if(!isNumberFinite(r))return r;if(o=e[r],!o)return!1;if(o.visible)return r;a.push(r),r=o.fill}return!1}function _decodeFill(e,t,n){const i=parseFillOption(e);if(isObject$8(i))return isNaN(i.value)?!1:i;let r=parseFloat(i);return isNumberFinite(r)&&Math.floor(r)===r?decodeTargetIndex(i[0],t,r,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function decodeTargetIndex(e,t,n,i){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=i?!1:n}function _getTargetPixel(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:isObject$8(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function _getTargetValue(e,t,n){let i;return e==="start"?i=n:e==="end"?i=t.options.reverse?t.min:t.max:isObject$8(e)?i=e.value:i=t.getBaseValue(),i}function parseFillOption(e){const t=e.options,n=t.fill;let i=valueOrDefault(n&&n.target,n);return i===void 0&&(i=!!t.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function _buildStackLine(e){const{scale:t,index:n,line:i}=e,r=[],a=i.segments,o=i.points,l=getLinesBelow(t,n);l.push(_createBoundaryLine({x:null,y:t.bottom},i));for(let u=0;u<a.length;u++){const d=a[u];for(let m=d.start;m<=d.end;m++)addPointsBelow(r,o[m],l)}return new LineElement({points:r,options:{}})}function getLinesBelow(e,t){const n=[],i=e.getMatchingVisibleMetas("line");for(let r=0;r<i.length;r++){const a=i[r];if(a.index===t)break;a.hidden||n.unshift(a.dataset)}return n}function addPointsBelow(e,t,n){const i=[];for(let r=0;r<n.length;r++){const a=n[r],{first:o,last:l,point:u}=findPoint(a,t,"x");if(!(!u||o&&l)){if(o)i.unshift(u);else if(e.push(u),!l)break}}e.push(...i)}function findPoint(e,t,n){const i=e.interpolate(t,n);if(!i)return{};const r=i[n],a=e.segments,o=e.points;let l=!1,u=!1;for(let d=0;d<a.length;d++){const m=a[d],g=o[m.start][n],_=o[m.end][n];if(_isBetween(r,g,_)){l=r===g,u=r===_;break}}return{first:l,last:u,point:i}}class simpleArc{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,i){const{x:r,y:a,radius:o}=this;return n=n||{start:0,end:TAU},t.arc(r,a,o,n.end,n.start,!0),!i.bounds}interpolate(t){const{x:n,y:i,radius:r}=this,a=t.angle;return{x:n+Math.cos(a)*r,y:i+Math.sin(a)*r,angle:a}}}function _getTarget(e){const{chart:t,fill:n,line:i}=e;if(isNumberFinite(n))return getLineByIndex(t,n);if(n==="stack")return _buildStackLine(e);if(n==="shape")return!0;const r=computeBoundary(e);return r instanceof simpleArc?r:_createBoundaryLine(r,i)}function getLineByIndex(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function computeBoundary(e){return(e.scale||{}).getPointPositionForValue?computeCircularBoundary(e):computeLinearBoundary(e)}function computeLinearBoundary(e){const{scale:t={},fill:n}=e,i=_getTargetPixel(n,t);if(isNumberFinite(i)){const r=t.isHorizontal();return{x:r?i:null,y:r?null:i}}return null}function computeCircularBoundary(e){const{scale:t,fill:n}=e,i=t.options,r=t.getLabels().length,a=i.reverse?t.max:t.min,o=_getTargetValue(n,t,a),l=[];if(i.grid.circular){const u=t.getPointPositionForValue(0,a);return new simpleArc({x:u.x,y:u.y,radius:t.getDistanceFromCenterForValue(o)})}for(let u=0;u<r;++u)l.push(t.getPointPositionForValue(u,o));return l}function _drawfill(e,t,n){const i=_getTarget(t),{line:r,scale:a,axis:o}=t,l=r.options,u=l.fill,d=l.backgroundColor,{above:m=d,below:g=d}=u||{};i&&r.points.length&&(clipArea(e,n),doFill(e,{line:r,target:i,above:m,below:g,area:n,scale:a,axis:o}),unclipArea(e))}function doFill(e,t){const{line:n,target:i,above:r,below:a,area:o,scale:l}=t,u=n._loop?"angle":t.axis;e.save(),u==="x"&&a!==r&&(clipVertical(e,i,o.top),fill(e,{line:n,target:i,color:r,scale:l,property:u}),e.restore(),e.save(),clipVertical(e,i,o.bottom)),fill(e,{line:n,target:i,color:a,scale:l,property:u}),e.restore()}function clipVertical(e,t,n){const{segments:i,points:r}=t;let a=!0,o=!1;e.beginPath();for(const l of i){const{start:u,end:d}=l,m=r[u],g=r[_findSegmentEnd(u,d,r)];a?(e.moveTo(m.x,m.y),a=!1):(e.lineTo(m.x,n),e.lineTo(m.x,m.y)),o=!!t.pathSegment(e,l,{move:o}),o?e.closePath():e.lineTo(g.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function fill(e,t){const{line:n,target:i,property:r,color:a,scale:o}=t,l=_segments(n,i,r);for(const{source:u,target:d,start:m,end:g}of l){const{style:{backgroundColor:_=a}={}}=u,v=i!==!0;e.save(),e.fillStyle=_,clipBounds(e,o,v&&_getBounds(r,m,g)),e.beginPath();const w=!!n.pathSegment(e,u);let E;if(v){w?e.closePath():interpolatedLineTo(e,i,g,r);const x=!!i.pathSegment(e,d,{move:w,reverse:!0});E=w&&x,E||interpolatedLineTo(e,i,m,r)}e.closePath(),e.fill(E?"evenodd":"nonzero"),e.restore()}}function clipBounds(e,t,n){const{top:i,bottom:r}=t.chart.chartArea,{property:a,start:o,end:l}=n||{};a==="x"&&(e.beginPath(),e.rect(o,i,l-o,r-i),e.clip())}function interpolatedLineTo(e,t,n,i){const r=t.interpolate(n,i);r&&e.lineTo(r.x,r.y)}var index={id:"filler",afterDatasetsUpdate(e,t,n){const i=(e.data.datasets||[]).length,r=[];let a,o,l,u;for(o=0;o<i;++o)a=e.getDatasetMeta(o),l=a.dataset,u=null,l&&l.options&&l instanceof LineElement&&(u={visible:e.isDatasetVisible(o),index:o,fill:_decodeFill(l,o,i),chart:e,axis:a.controller.options.indexAxis,scale:a.vScale,line:l}),a.$filler=u,r.push(u);for(o=0;o<i;++o)u=r[o],!(!u||u.fill===!1)&&(u.fill=_resolveTarget(r,o,n.propagate))},beforeDraw(e,t,n){const i=n.drawTime==="beforeDraw",r=e.getSortedVisibleDatasetMetas(),a=e.chartArea;for(let o=r.length-1;o>=0;--o){const l=r[o].$filler;l&&(l.line.updateControlPoints(a,l.axis),i&&l.fill&&_drawfill(e.ctx,l,a))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const i=e.getSortedVisibleDatasetMetas();for(let r=i.length-1;r>=0;--r){const a=i[r].$filler;_shouldApplyFill(a)&&_drawfill(e.ctx,a,e.chartArea)}},beforeDatasetDraw(e,t,n){const i=t.meta.$filler;!_shouldApplyFill(i)||n.drawTime!=="beforeDatasetDraw"||_drawfill(e.ctx,i,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const getBoxSize=(e,t)=>{let{boxHeight:n=t,boxWidth:i=t}=e;return e.usePointStyle&&(n=Math.min(n,t),i=e.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(t,n)}},itemsEqual=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Legend extends Element$1{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,i){this.maxWidth=t,this.maxHeight=n,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=callback(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(i=>t.filter(i,this.chart.data))),t.sort&&(n=n.sort((i,r)=>t.sort(i,r,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const i=t.labels,r=toFont(i.font),a=r.size,o=this._computeTitleHeight(),{boxWidth:l,itemHeight:u}=getBoxSize(i,a);let d,m;n.font=r.string,this.isHorizontal()?(d=this.maxWidth,m=this._fitRows(o,a,l,u)+10):(m=this.maxHeight,d=this._fitCols(o,r,l,u)+10),this.width=Math.min(d,t.maxWidth||this.maxWidth),this.height=Math.min(m,t.maxHeight||this.maxHeight)}_fitRows(t,n,i,r){const{ctx:a,maxWidth:o,options:{labels:{padding:l}}}=this,u=this.legendHitBoxes=[],d=this.lineWidths=[0],m=r+l;let g=t;a.textAlign="left",a.textBaseline="middle";let _=-1,v=-m;return this.legendItems.forEach((w,E)=>{const x=i+n/2+a.measureText(w.text).width;(E===0||d[d.length-1]+x+2*l>o)&&(g+=m,d[d.length-(E>0?0:1)]=0,v+=m,_++),u[E]={left:0,top:v,row:_,width:x,height:r},d[d.length-1]+=x+l}),g}_fitCols(t,n,i,r){const{ctx:a,maxHeight:o,options:{labels:{padding:l}}}=this,u=this.legendHitBoxes=[],d=this.columnSizes=[],m=o-t;let g=l,_=0,v=0,w=0,E=0;return this.legendItems.forEach((x,M)=>{const{itemWidth:S,itemHeight:R}=calculateItemSize(i,n,a,x,r);M>0&&v+R+2*l>m&&(g+=_+l,d.push({width:_,height:v}),w+=_+l,E++,_=v=0),u[M]={left:w,top:v,col:E,width:S,height:R},_=Math.max(_,S),v+=R+l}),g+=_,d.push({width:_,height:v}),g}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:i,labels:{padding:r},rtl:a}}=this,o=getRtlAdapter(a,this.left,this.width);if(this.isHorizontal()){let l=0,u=_alignStartEnd(i,this.left+r,this.right-this.lineWidths[l]);for(const d of n)l!==d.row&&(l=d.row,u=_alignStartEnd(i,this.left+r,this.right-this.lineWidths[l])),d.top+=this.top+t+r,d.left=o.leftForLtr(o.x(u),d.width),u+=d.width+r}else{let l=0,u=_alignStartEnd(i,this.top+t+r,this.bottom-this.columnSizes[l].height);for(const d of n)d.col!==l&&(l=d.col,u=_alignStartEnd(i,this.top+t+r,this.bottom-this.columnSizes[l].height)),d.top=u,d.left+=this.left+r,d.left=o.leftForLtr(o.x(d.left),d.width),u+=d.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;clipArea(t,this),this._draw(),unclipArea(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:i,ctx:r}=this,{align:a,labels:o}=t,l=defaults.color,u=getRtlAdapter(t.rtl,this.left,this.width),d=toFont(o.font),{padding:m}=o,g=d.size,_=g/2;let v;this.drawTitle(),r.textAlign=u.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=d.string;const{boxWidth:w,boxHeight:E,itemHeight:x}=getBoxSize(o,g),M=function(q,U,y){if(isNaN(w)||w<=0||isNaN(E)||E<0)return;r.save();const $=valueOrDefault(y.lineWidth,1);if(r.fillStyle=valueOrDefault(y.fillStyle,l),r.lineCap=valueOrDefault(y.lineCap,"butt"),r.lineDashOffset=valueOrDefault(y.lineDashOffset,0),r.lineJoin=valueOrDefault(y.lineJoin,"miter"),r.lineWidth=$,r.strokeStyle=valueOrDefault(y.strokeStyle,l),r.setLineDash(valueOrDefault(y.lineDash,[])),o.usePointStyle){const T={radius:E*Math.SQRT2/2,pointStyle:y.pointStyle,rotation:y.rotation,borderWidth:$},O=u.xPlus(q,w/2),A=U+_;drawPointLegend(r,T,O,A,o.pointStyleWidth&&w)}else{const T=U+Math.max((g-E)/2,0),O=u.leftForLtr(q,w),A=toTRBLCorners(y.borderRadius);r.beginPath(),Object.values(A).some(I=>I!==0)?addRoundedRectPath(r,{x:O,y:T,w,h:E,radius:A}):r.rect(O,T,w,E),r.fill(),$!==0&&r.stroke()}r.restore()},S=function(q,U,y){renderText(r,y.text,q,U+x/2,d,{strikethrough:y.hidden,textAlign:u.textAlign(y.textAlign)})},R=this.isHorizontal(),W=this._computeTitleHeight();R?v={x:_alignStartEnd(a,this.left+m,this.right-i[0]),y:this.top+m+W,line:0}:v={x:this.left+m,y:_alignStartEnd(a,this.top+W+m,this.bottom-n[0].height),line:0},overrideTextDirection(this.ctx,t.textDirection);const V=x+m;this.legendItems.forEach((q,U)=>{r.strokeStyle=q.fontColor,r.fillStyle=q.fontColor;const y=r.measureText(q.text).width,$=u.textAlign(q.textAlign||(q.textAlign=o.textAlign)),T=w+_+y;let O=v.x,A=v.y;u.setWidth(this.width),R?U>0&&O+T+m>this.right&&(A=v.y+=V,v.line++,O=v.x=_alignStartEnd(a,this.left+m,this.right-i[v.line])):U>0&&A+V>this.bottom&&(O=v.x=O+n[v.line].width+m,v.line++,A=v.y=_alignStartEnd(a,this.top+W+m,this.bottom-n[v.line].height));const I=u.x(O);if(M(I,A,q),O=_textX($,O+w+_,R?O+T:this.right,t.rtl),S(u.x(O),A,q),R)v.x+=T+m;else if(typeof q.text!="string"){const z=d.lineHeight;v.y+=calculateLegendItemHeight(q,z)+m}else v.y+=V}),restoreTextDirection(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,i=toFont(n.font),r=toPadding(n.padding);if(!n.display)return;const a=getRtlAdapter(t.rtl,this.left,this.width),o=this.ctx,l=n.position,u=i.size/2,d=r.top+u;let m,g=this.left,_=this.width;if(this.isHorizontal())_=Math.max(...this.lineWidths),m=this.top+d,g=_alignStartEnd(t.align,g,this.right-_);else{const w=this.columnSizes.reduce((E,x)=>Math.max(E,x.height),0);m=d+_alignStartEnd(t.align,this.top,this.bottom-w-t.labels.padding-this._computeTitleHeight())}const v=_alignStartEnd(l,g,g+_);o.textAlign=a.textAlign(_toLeftRightCenter(l)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=i.string,renderText(o,n.text,v,m,i)}_computeTitleHeight(){const t=this.options.title,n=toFont(t.font),i=toPadding(t.padding);return t.display?n.lineHeight+i.height:0}_getLegendItemAt(t,n){let i,r,a;if(_isBetween(t,this.left,this.right)&&_isBetween(n,this.top,this.bottom)){for(a=this.legendHitBoxes,i=0;i<a.length;++i)if(r=a[i],_isBetween(t,r.left,r.left+r.width)&&_isBetween(n,r.top,r.top+r.height))return this.legendItems[i]}return null}handleEvent(t){const n=this.options;if(!isListened(t.type,n))return;const i=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const r=this._hoveredItem,a=itemsEqual(r,i);r&&!a&&callback(n.onLeave,[t,r,this],this),this._hoveredItem=i,i&&!a&&callback(n.onHover,[t,i,this],this)}else i&&callback(n.onClick,[t,i,this],this)}}function calculateItemSize(e,t,n,i,r){const a=calculateItemWidth(i,e,t,n),o=calculateItemHeight(r,i,t.lineHeight);return{itemWidth:a,itemHeight:o}}function calculateItemWidth(e,t,n,i){let r=e.text;return r&&typeof r!="string"&&(r=r.reduce((a,o)=>a.length>o.length?a:o)),t+n.size/2+i.measureText(r).width}function calculateItemHeight(e,t,n){let i=e;return typeof t.text!="string"&&(i=calculateLegendItemHeight(t,n)),i}function calculateLegendItemHeight(e,t){const n=e.text?e.text.length:0;return t*n}function isListened(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var plugin_legend={id:"legend",_element:Legend,start(e,t,n){const i=e.legend=new Legend({ctx:e.ctx,options:n,chart:e});layouts.configure(e,i,n),layouts.addBox(e,i)},stop(e){layouts.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const i=e.legend;layouts.configure(e,i,n),i.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const i=t.datasetIndex,r=n.chart;r.isDatasetVisible(i)?(r.hide(i),t.hidden=!0):(r.show(i),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:r,color:a,useBorderRadius:o,borderRadius:l}}=e.legend.options;return e._getSortedDatasetMetas().map(u=>{const d=u.controller.getStyle(n?0:void 0),m=toPadding(d.borderWidth);return{text:t[u.index].label,fillStyle:d.backgroundColor,fontColor:a,hidden:!u.visible,lineCap:d.borderCapStyle,lineDash:d.borderDash,lineDashOffset:d.borderDashOffset,lineJoin:d.borderJoinStyle,lineWidth:(m.width+m.height)/4,strokeStyle:d.borderColor,pointStyle:i||d.pointStyle,rotation:d.rotation,textAlign:r||d.textAlign,borderRadius:o&&(l||d.borderRadius),datasetIndex:u.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};const positioners={average(e){if(!e.length)return!1;let t,n,i=0,r=0,a=0;for(t=0,n=e.length;t<n;++t){const o=e[t].element;if(o&&o.hasValue()){const l=o.tooltipPosition();i+=l.x,r+=l.y,++a}}return{x:i/a,y:r/a}},nearest(e,t){if(!e.length)return!1;let n=t.x,i=t.y,r=Number.POSITIVE_INFINITY,a,o,l;for(a=0,o=e.length;a<o;++a){const u=e[a].element;if(u&&u.hasValue()){const d=u.getCenterPoint(),m=distanceBetweenPoints(t,d);m<r&&(r=m,l=u)}}if(l){const u=l.tooltipPosition();n=u.x,i=u.y}return{x:n,y:i}}};function pushOrConcat(e,t){return t&&(isArray$b(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function splitNewlines(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
`)>-1?e.split(`
-`):e}function createTooltipItem(e,t){const{element:n,datasetIndex:i,index:r}=t,a=e.getDatasetMeta(i).controller,{label:o,value:l}=a.getLabelAndValue(r);return{chart:e,label:o,parsed:a.getParsed(r),raw:e.data.datasets[i].data[r],formattedValue:l,dataset:a.getDataset(),dataIndex:r,datasetIndex:i,element:n}}function getTooltipSize(e,t){const n=e.chart.ctx,{body:i,footer:r,title:a}=e,{boxWidth:o,boxHeight:l}=t,u=toFont(t.bodyFont),h=toFont(t.titleFont),m=toFont(t.footerFont),g=a.length,_=r.length,v=i.length,w=toPadding(t.padding);let $=w.height,x=0,M=i.reduce((W,V)=>W+V.before.length+V.lines.length+V.after.length,0);if(M+=e.beforeBody.length+e.afterBody.length,g&&($+=g*h.lineHeight+(g-1)*t.titleSpacing+t.titleMarginBottom),M){const W=t.displayColors?Math.max(l,u.lineHeight):u.lineHeight;$+=v*W+(M-v)*u.lineHeight+(M-1)*t.bodySpacing}_&&($+=t.footerMarginTop+_*m.lineHeight+(_-1)*t.footerSpacing);let T=0;const R=function(W){x=Math.max(x,n.measureText(W).width+T)};return n.save(),n.font=h.string,each(e.title,R),n.font=u.string,each(e.beforeBody.concat(e.afterBody),R),T=t.displayColors?o+2+t.boxPadding:0,each(i,W=>{each(W.before,R),each(W.lines,R),each(W.after,R)}),T=0,n.font=m.string,each(e.footer,R),n.restore(),x+=w.width,{width:x,height:$}}function determineYAlign(e,t){const{y:n,height:i}=t;return n<i/2?"top":n>e.height-i/2?"bottom":"center"}function doesNotFitWithAlign(e,t,n,i){const{x:r,width:a}=i,o=n.caretSize+n.caretPadding;if(e==="left"&&r+a+o>t.width||e==="right"&&r-a-o<0)return!0}function determineXAlign(e,t,n,i){const{x:r,width:a}=n,{width:o,chartArea:{left:l,right:u}}=e;let h="center";return i==="center"?h=r<=(l+u)/2?"left":"right":r<=a/2?h="left":r>=o-a/2&&(h="right"),doesNotFitWithAlign(h,e,t,n)&&(h="center"),h}function determineAlignment(e,t,n){const i=n.yAlign||t.yAlign||determineYAlign(e,n);return{xAlign:n.xAlign||t.xAlign||determineXAlign(e,t,n,i),yAlign:i}}function alignX(e,t){let{x:n,width:i}=e;return t==="right"?n-=i:t==="center"&&(n-=i/2),n}function alignY(e,t,n){let{y:i,height:r}=e;return t==="top"?i+=n:t==="bottom"?i-=r+n:i-=r/2,i}function getBackgroundPoint(e,t,n,i){const{caretSize:r,caretPadding:a,cornerRadius:o}=e,{xAlign:l,yAlign:u}=n,h=r+a,{topLeft:m,topRight:g,bottomLeft:_,bottomRight:v}=toTRBLCorners(o);let w=alignX(t,l);const $=alignY(t,u,h);return u==="center"?l==="left"?w+=h:l==="right"&&(w-=h):l==="left"?w-=Math.max(m,_)+r:l==="right"&&(w+=Math.max(g,v)+r),{x:_limitValue(w,0,i.width-t.width),y:_limitValue($,0,i.height-t.height)}}function getAlignedX(e,t,n){const i=toPadding(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-i.right:e.x+i.left}function getBeforeAfterBodyLines(e){return pushOrConcat([],splitNewlines(e))}function createTooltipContext(e,t,n){return createContext(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function overrideCallbacks(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const defaultCallbacks={beforeTitle:noop$2,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return n[t.dataIndex]}return""},afterTitle:noop$2,beforeBody:noop$2,beforeLabel:noop$2,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return isNullOrUndef(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:noop$2,afterBody:noop$2,beforeFooter:noop$2,footer:noop$2,afterFooter:noop$2};function invokeCallbackWithFallback(e,t,n,i){const r=e[t].call(n,i);return typeof r>"u"?defaultCallbacks[t].call(n,i):r}class Tooltip extends Element$1{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,i=this.options.setContext(this.getContext()),r=i.enabled&&n.options.animation&&i.animations,a=new Animations(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=createTooltipContext(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:i}=n,r=invokeCallbackWithFallback(i,"beforeTitle",this,t),a=invokeCallbackWithFallback(i,"title",this,t),o=invokeCallbackWithFallback(i,"afterTitle",this,t);let l=[];return l=pushOrConcat(l,splitNewlines(r)),l=pushOrConcat(l,splitNewlines(a)),l=pushOrConcat(l,splitNewlines(o)),l}getBeforeBody(t,n){return getBeforeAfterBodyLines(invokeCallbackWithFallback(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:i}=n,r=[];return each(t,a=>{const o={before:[],lines:[],after:[]},l=overrideCallbacks(i,a);pushOrConcat(o.before,splitNewlines(invokeCallbackWithFallback(l,"beforeLabel",this,a))),pushOrConcat(o.lines,invokeCallbackWithFallback(l,"label",this,a)),pushOrConcat(o.after,splitNewlines(invokeCallbackWithFallback(l,"afterLabel",this,a))),r.push(o)}),r}getAfterBody(t,n){return getBeforeAfterBodyLines(invokeCallbackWithFallback(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:i}=n,r=invokeCallbackWithFallback(i,"beforeFooter",this,t),a=invokeCallbackWithFallback(i,"footer",this,t),o=invokeCallbackWithFallback(i,"afterFooter",this,t);let l=[];return l=pushOrConcat(l,splitNewlines(r)),l=pushOrConcat(l,splitNewlines(a)),l=pushOrConcat(l,splitNewlines(o)),l}_createItems(t){const n=this._active,i=this.chart.data,r=[],a=[],o=[];let l=[],u,h;for(u=0,h=n.length;u<h;++u)l.push(createTooltipItem(this.chart,n[u]));return t.filter&&(l=l.filter((m,g,_)=>t.filter(m,g,_,i))),t.itemSort&&(l=l.sort((m,g)=>t.itemSort(m,g,i))),each(l,m=>{const g=overrideCallbacks(t.callbacks,m);r.push(invokeCallbackWithFallback(g,"labelColor",this,m)),a.push(invokeCallbackWithFallback(g,"labelPointStyle",this,m)),o.push(invokeCallbackWithFallback(g,"labelTextColor",this,m))}),this.labelColors=r,this.labelPointStyles=a,this.labelTextColors=o,this.dataPoints=l,l}update(t,n){const i=this.options.setContext(this.getContext()),r=this._active;let a,o=[];if(!r.length)this.opacity!==0&&(a={opacity:0});else{const l=positioners[i.position].call(this,r,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const u=this._size=getTooltipSize(this,i),h=Object.assign({},l,u),m=determineAlignment(this.chart,i,h),g=getBackgroundPoint(i,h,m,this.chart);this.xAlign=m.xAlign,this.yAlign=m.yAlign,a={opacity:1,x:g.x,y:g.y,width:u.width,height:u.height,caretX:l.x,caretY:l.y}}this._tooltipItems=o,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,i,r){const a=this.getCaretPosition(t,i,r);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)}getCaretPosition(t,n,i){const{xAlign:r,yAlign:a}=this,{caretSize:o,cornerRadius:l}=i,{topLeft:u,topRight:h,bottomLeft:m,bottomRight:g}=toTRBLCorners(l),{x:_,y:v}=t,{width:w,height:$}=n;let x,M,T,R,W,V;return a==="center"?(W=v+$/2,r==="left"?(x=_,M=x-o,R=W+o,V=W-o):(x=_+w,M=x+o,R=W-o,V=W+o),T=x):(r==="left"?M=_+Math.max(u,m)+o:r==="right"?M=_+w-Math.max(h,g)-o:M=this.caretX,a==="top"?(R=v,W=R-o,x=M-o,T=M+o):(R=v+$,W=R+o,x=M+o,T=M-o),V=R),{x1:x,x2:M,x3:T,y1:R,y2:W,y3:V}}drawTitle(t,n,i){const r=this.title,a=r.length;let o,l,u;if(a){const h=getRtlAdapter(i.rtl,this.x,this.width);for(t.x=getAlignedX(this,i.titleAlign,i),n.textAlign=h.textAlign(i.titleAlign),n.textBaseline="middle",o=toFont(i.titleFont),l=i.titleSpacing,n.fillStyle=i.titleColor,n.font=o.string,u=0;u<a;++u)n.fillText(r[u],h.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+l,u+1===a&&(t.y+=i.titleMarginBottom-l)}}_drawColorBox(t,n,i,r,a){const o=this.labelColors[i],l=this.labelPointStyles[i],{boxHeight:u,boxWidth:h}=a,m=toFont(a.bodyFont),g=getAlignedX(this,"left",a),_=r.x(g),v=u<m.lineHeight?(m.lineHeight-u)/2:0,w=n.y+v;if(a.usePointStyle){const $={radius:Math.min(h,u)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},x=r.leftForLtr(_,h)+h/2,M=w+u/2;t.strokeStyle=a.multiKeyBackground,t.fillStyle=a.multiKeyBackground,drawPoint(t,$,x,M),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,drawPoint(t,$,x,M)}else{t.lineWidth=isObject$8(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const $=r.leftForLtr(_,h),x=r.leftForLtr(r.xPlus(_,1),h-2),M=toTRBLCorners(o.borderRadius);Object.values(M).some(T=>T!==0)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,addRoundedRectPath(t,{x:$,y:w,w:h,h:u,radius:M}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),addRoundedRectPath(t,{x,y:w+1,w:h-2,h:u-2,radius:M}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect($,w,h,u),t.strokeRect($,w,h,u),t.fillStyle=o.backgroundColor,t.fillRect(x,w+1,h-2,u-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,n,i){const{body:r}=this,{bodySpacing:a,bodyAlign:o,displayColors:l,boxHeight:u,boxWidth:h,boxPadding:m}=i,g=toFont(i.bodyFont);let _=g.lineHeight,v=0;const w=getRtlAdapter(i.rtl,this.x,this.width),$=function(y){n.fillText(y,w.x(t.x+v),t.y+_/2),t.y+=_+a},x=w.textAlign(o);let M,T,R,W,V,K,U;for(n.textAlign=o,n.textBaseline="middle",n.font=g.string,t.x=getAlignedX(this,x,i),n.fillStyle=i.bodyColor,each(this.beforeBody,$),v=l&&x!=="right"?o==="center"?h/2+m:h+2+m:0,W=0,K=r.length;W<K;++W){for(M=r[W],T=this.labelTextColors[W],n.fillStyle=T,each(M.before,$),R=M.lines,l&&R.length&&(this._drawColorBox(n,t,W,w,i),_=Math.max(g.lineHeight,u)),V=0,U=R.length;V<U;++V)$(R[V]),_=g.lineHeight;each(M.after,$)}v=0,_=g.lineHeight,each(this.afterBody,$),t.y-=a}drawFooter(t,n,i){const r=this.footer,a=r.length;let o,l;if(a){const u=getRtlAdapter(i.rtl,this.x,this.width);for(t.x=getAlignedX(this,i.footerAlign,i),t.y+=i.footerMarginTop,n.textAlign=u.textAlign(i.footerAlign),n.textBaseline="middle",o=toFont(i.footerFont),n.fillStyle=i.footerColor,n.font=o.string,l=0;l<a;++l)n.fillText(r[l],u.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+i.footerSpacing}}drawBackground(t,n,i,r){const{xAlign:a,yAlign:o}=this,{x:l,y:u}=t,{width:h,height:m}=i,{topLeft:g,topRight:_,bottomLeft:v,bottomRight:w}=toTRBLCorners(r.cornerRadius);n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,n.lineWidth=r.borderWidth,n.beginPath(),n.moveTo(l+g,u),o==="top"&&this.drawCaret(t,n,i,r),n.lineTo(l+h-_,u),n.quadraticCurveTo(l+h,u,l+h,u+_),o==="center"&&a==="right"&&this.drawCaret(t,n,i,r),n.lineTo(l+h,u+m-w),n.quadraticCurveTo(l+h,u+m,l+h-w,u+m),o==="bottom"&&this.drawCaret(t,n,i,r),n.lineTo(l+v,u+m),n.quadraticCurveTo(l,u+m,l,u+m-v),o==="center"&&a==="left"&&this.drawCaret(t,n,i,r),n.lineTo(l,u+g),n.quadraticCurveTo(l,u,l+g,u),n.closePath(),n.fill(),r.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,i=this.$animations,r=i&&i.x,a=i&&i.y;if(r||a){const o=positioners[t.position].call(this,this._active,this._eventPosition);if(!o)return;const l=this._size=getTooltipSize(this,t),u=Object.assign({},o,this._size),h=determineAlignment(n,t,u),m=getBackgroundPoint(t,u,h,n);(r._to!==m.x||a._to!==m.y)&&(this.xAlign=h.xAlign,this.yAlign=h.yAlign,this.width=l.width,this.height=l.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,m))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const r={width:this.width,height:this.height},a={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=toPadding(n.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&l&&(t.save(),t.globalAlpha=i,this.drawBackground(a,t,r,n),overrideTextDirection(t,n.textDirection),a.y+=o.top,this.drawTitle(a,t,n),this.drawBody(a,t,n),this.drawFooter(a,t,n),restoreTextDirection(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const i=this._active,r=t.map(({datasetIndex:l,index:u})=>{const h=this.chart.getDatasetMeta(l);if(!h)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:h.data[u],index:u}}),a=!_elementsEqual(i,r),o=this._positionChanged(r,n);(a||o)&&(this._active=r,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,a=this._active||[],o=this._getActiveElements(t,a,n,i),l=this._positionChanged(o,t),u=n||!_elementsEqual(o,a)||l;return u&&(this._active=o,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),u}_getActiveElements(t,n,i,r){const a=this.options;if(t.type==="mouseout")return[];if(!r)return n.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);const o=this.chart.getElementsAtEventForMode(t,a.mode,a,i);return a.reverse&&o.reverse(),o}_positionChanged(t,n){const{caretX:i,caretY:r,options:a}=this,o=positioners[a.position].call(this,t,n);return o!==!1&&(i!==o.x||r!==o.y)}}Y(Tooltip,"positioners",positioners);var plugin_tooltip={id:"tooltip",_element:Tooltip,positioners,afterInit(e,t,n){n&&(e.tooltip=new Tooltip({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:defaultCallbacks},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const addIfString=(e,t,n,i)=>(typeof t=="string"?(n=e.push(t)-1,i.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function findOrAddLabel(e,t,n,i){const r=e.indexOf(t);if(r===-1)return addIfString(e,t,n,i);const a=e.lastIndexOf(t);return r!==a?n:r}const validIndex=(e,t)=>e===null?null:_limitValue(Math.round(e),0,t);function _getLabelForValue(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class CategoryScale extends Scale{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const i=this.getLabels();for(const{index:r,label:a}of n)i[r]===a&&i.splice(r,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(isNullOrUndef(t))return null;const i=this.getLabels();return n=isFinite(n)&&i[n]===t?n:findOrAddLabel(i,t,valueOrDefault(n,t),this._addedLabels),validIndex(n,i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:i,max:r}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(i=0),n||(r=this.getLabels().length-1)),this.min=i,this.max=r}buildTicks(){const t=this.min,n=this.max,i=this.options.offset,r=[];let a=this.getLabels();a=t===0&&n===a.length-1?a:a.slice(t,n+1),this._valueRange=Math.max(a.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let o=t;o<=n;o++)r.push({value:o});return r}getLabelForValue(t){return _getLabelForValue.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}Y(CategoryScale,"id","category"),Y(CategoryScale,"defaults",{ticks:{callback:_getLabelForValue}});function generateTicks$1(e,t){const n=[],{bounds:r,step:a,min:o,max:l,precision:u,count:h,maxTicks:m,maxDigits:g,includeBounds:_}=e,v=a||1,w=m-1,{min:$,max:x}=t,M=!isNullOrUndef(o),T=!isNullOrUndef(l),R=!isNullOrUndef(h),W=(x-$)/(g+1);let V=niceNum((x-$)/w/v)*v,K,U,y,E;if(V<1e-14&&!M&&!T)return[{value:$},{value:x}];E=Math.ceil(x/V)-Math.floor($/V),E>w&&(V=niceNum(E*V/w/v)*v),isNullOrUndef(u)||(K=Math.pow(10,u),V=Math.ceil(V*K)/K),r==="ticks"?(U=Math.floor($/V)*V,y=Math.ceil(x/V)*V):(U=$,y=x),M&&T&&a&&almostWhole((l-o)/a,V/1e3)?(E=Math.round(Math.min((l-o)/V,m)),V=(l-o)/E,U=o,y=l):R?(U=M?o:U,y=T?l:y,E=h-1,V=(y-U)/E):(E=(y-U)/V,almostEquals(E,Math.round(E),V/1e3)?E=Math.round(E):E=Math.ceil(E));const S=Math.max(_decimalPlaces(V),_decimalPlaces(U));K=Math.pow(10,isNullOrUndef(u)?S:u),U=Math.round(U*K)/K,y=Math.round(y*K)/K;let O=0;for(M&&(_&&U!==o?(n.push({value:o}),U<o&&O++,almostEquals(Math.round((U+O*V)*K)/K,o,relativeLabelSize(o,W,e))&&O++):U<o&&O++);O<E;++O){const A=Math.round((U+O*V)*K)/K;if(T&&A>l)break;n.push({value:A})}return T&&_&&y!==l?n.length&&almostEquals(n[n.length-1].value,l,relativeLabelSize(l,W,e))?n[n.length-1].value=l:n.push({value:l}):(!T||y===l)&&n.push({value:y}),n}function relativeLabelSize(e,t,{horizontal:n,minRotation:i}){const r=toRadians(i),a=(n?Math.sin(r):Math.cos(r))||.001,o=.75*t*(""+e).length;return Math.min(t/a,o)}class LinearScaleBase extends Scale{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return isNullOrUndef(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:i}=this.getUserBounds();let{min:r,max:a}=this;const o=u=>r=n?r:u,l=u=>a=i?a:u;if(t){const u=sign(r),h=sign(a);u<0&&h<0?l(0):u>0&&h>0&&o(0)}if(r===a){let u=a===0?1:Math.abs(a*.05);l(a+u),t||o(r-u)}this.min=r,this.max=a}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=t,r;return i?(r=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),n=n||11),n&&(r=Math.min(n,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const r={maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},a=this._range||this,o=generateTicks$1(r,a);return t.bounds==="ticks"&&_setMinAndMaxByKey(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let n=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const r=(i-n)/Math.max(t.length-1,1)/2;n-=r,i+=r}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(t){return formatNumber$1(t,this.chart.options.locale,this.options.ticks.format)}}class LinearScale extends LinearScaleBase{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=isNumberFinite(t)?t:0,this.max=isNumberFinite(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,i=toRadians(this.options.ticks.minRotation),r=(t?Math.sin(i):Math.cos(i))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,a.lineHeight/r))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Y(LinearScale,"id","linear"),Y(LinearScale,"defaults",{ticks:{callback:Ticks.formatters.numeric}});const log10Floor=e=>Math.floor(log10(e)),changeExponent=(e,t)=>Math.pow(10,log10Floor(e)+t);function isMajor(e){return e/Math.pow(10,log10Floor(e))===1}function steps(e,t,n){const i=Math.pow(10,n),r=Math.floor(e/i);return Math.ceil(t/i)-r}function startExp(e,t){const n=t-e;let i=log10Floor(n);for(;steps(e,t,i)>10;)i++;for(;steps(e,t,i)<10;)i--;return Math.min(i,log10Floor(e))}function generateTicks(e,{min:t,max:n}){t=finiteOrDefault(e.min,t);const i=[],r=log10Floor(t);let a=startExp(t,n),o=a<0?Math.pow(10,Math.abs(a)):1;const l=Math.pow(10,a),u=r>a?Math.pow(10,r):0,h=Math.round((t-u)*o)/o,m=Math.floor((t-u)/l/10)*l*10;let g=Math.floor((h-m)/Math.pow(10,a)),_=finiteOrDefault(e.min,Math.round((u+m+g*Math.pow(10,a))*o)/o);for(;_<n;)i.push({value:_,major:isMajor(_),significand:g}),g>=10?g=g<15?15:20:g++,g>=20&&(a++,g=2,o=a>=0?1:o),_=Math.round((u+m+g*Math.pow(10,a))*o)/o;const v=finiteOrDefault(e.max,_);return i.push({value:v,major:isMajor(v),significand:g}),i}class LogarithmicScale extends Scale{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const i=LinearScaleBase.prototype.parse.apply(this,[t,n]);if(i===0){this._zero=!0;return}return isNumberFinite(i)&&i>0?i:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=isNumberFinite(t)?Math.max(0,t):null,this.max=isNumberFinite(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!isNumberFinite(this._userMin)&&(this.min=t===changeExponent(this.min,0)?changeExponent(this.min,-1):changeExponent(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let i=this.min,r=this.max;const a=l=>i=t?i:l,o=l=>r=n?r:l;i===r&&(i<=0?(a(1),o(10)):(a(changeExponent(i,-1)),o(changeExponent(r,1)))),i<=0&&a(changeExponent(r,-1)),r<=0&&o(changeExponent(i,1)),this.min=i,this.max=r}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},i=generateTicks(n,this);return t.bounds==="ticks"&&_setMinAndMaxByKey(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(t){return t===void 0?"0":formatNumber$1(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=log10(t),this._valueRange=log10(this.max)-log10(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(log10(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}Y(LogarithmicScale,"id","logarithmic"),Y(LogarithmicScale,"defaults",{ticks:{callback:Ticks.formatters.logarithmic,major:{enabled:!0}}});function getTickBackdropHeight(e){const t=e.ticks;if(t.display&&e.display){const n=toPadding(t.backdropPadding);return valueOrDefault(t.font&&t.font.size,defaults.font.size)+n.height}return 0}function measureLabelSize(e,t,n){return n=isArray$b(n)?n:[n],{w:_longestText(e,t.string,n),h:n.length*t.lineHeight}}function determineLimits(e,t,n,i,r){return e===i||e===r?{start:t-n/2,end:t+n/2}:e<i||e>r?{start:t-n,end:t}:{start:t,end:t+n}}function fitWithPointLabels(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),i=[],r=[],a=e._pointLabels.length,o=e.options.pointLabels,l=o.centerPointLabels?PI/a:0;for(let u=0;u<a;u++){const h=o.setContext(e.getPointLabelContext(u));r[u]=h.padding;const m=e.getPointPosition(u,e.drawingArea+r[u],l),g=toFont(h.font),_=measureLabelSize(e.ctx,g,e._pointLabels[u]);i[u]=_;const v=_normalizeAngle(e.getIndexAngle(u)+l),w=Math.round(toDegrees(v)),$=determineLimits(w,m.x,_.w,0,180),x=determineLimits(w,m.y,_.h,90,270);updateLimits(n,t,v,$,x)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=buildPointLabelItems(e,i,r)}function updateLimits(e,t,n,i,r){const a=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n));let l=0,u=0;i.start<t.l?(l=(t.l-i.start)/a,e.l=Math.min(e.l,t.l-l)):i.end>t.r&&(l=(i.end-t.r)/a,e.r=Math.max(e.r,t.r+l)),r.start<t.t?(u=(t.t-r.start)/o,e.t=Math.min(e.t,t.t-u)):r.end>t.b&&(u=(r.end-t.b)/o,e.b=Math.max(e.b,t.b+u))}function createPointLabelItem(e,t,n){const i=e.drawingArea,{extra:r,additionalAngle:a,padding:o,size:l}=n,u=e.getPointPosition(t,i+r+o,a),h=Math.round(toDegrees(_normalizeAngle(u.angle+HALF_PI))),m=yForAngle(u.y,l.h,h),g=getTextAlignForAngle(h),_=leftForTextAlign(u.x,l.w,g);return{visible:!0,x:u.x,y:m,textAlign:g,left:_,top:m,right:_+l.w,bottom:m+l.h}}function isNotOverlapped(e,t){if(!t)return!0;const{left:n,top:i,right:r,bottom:a}=e;return!(_isPointInArea({x:n,y:i},t)||_isPointInArea({x:n,y:a},t)||_isPointInArea({x:r,y:i},t)||_isPointInArea({x:r,y:a},t))}function buildPointLabelItems(e,t,n){const i=[],r=e._pointLabels.length,a=e.options,{centerPointLabels:o,display:l}=a.pointLabels,u={extra:getTickBackdropHeight(a)/2,additionalAngle:o?PI/r:0};let h;for(let m=0;m<r;m++){u.padding=n[m],u.size=t[m];const g=createPointLabelItem(e,m,u);i.push(g),l==="auto"&&(g.visible=isNotOverlapped(g,h),g.visible&&(h=g))}return i}function getTextAlignForAngle(e){return e===0||e===180?"center":e<180?"left":"right"}function leftForTextAlign(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function yForAngle(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function drawPointLabelBox(e,t,n){const{left:i,top:r,right:a,bottom:o}=n,{backdropColor:l}=t;if(!isNullOrUndef(l)){const u=toTRBLCorners(t.borderRadius),h=toPadding(t.backdropPadding);e.fillStyle=l;const m=i-h.left,g=r-h.top,_=a-i+h.width,v=o-r+h.height;Object.values(u).some(w=>w!==0)?(e.beginPath(),addRoundedRectPath(e,{x:m,y:g,w:_,h:v,radius:u}),e.fill()):e.fillRect(m,g,_,v)}}function drawPointLabels(e,t){const{ctx:n,options:{pointLabels:i}}=e;for(let r=t-1;r>=0;r--){const a=e._pointLabelItems[r];if(!a.visible)continue;const o=i.setContext(e.getPointLabelContext(r));drawPointLabelBox(n,o,a);const l=toFont(o.font),{x:u,y:h,textAlign:m}=a;renderText(n,e._pointLabels[r],u,h+l.lineHeight/2,l,{color:o.color,textAlign:m,textBaseline:"middle"})}}function pathRadiusLine(e,t,n,i){const{ctx:r}=e;if(n)r.arc(e.xCenter,e.yCenter,t,0,TAU);else{let a=e.getPointPosition(0,t);r.moveTo(a.x,a.y);for(let o=1;o<i;o++)a=e.getPointPosition(o,t),r.lineTo(a.x,a.y)}}function drawRadiusLine(e,t,n,i,r){const a=e.ctx,o=t.circular,{color:l,lineWidth:u}=t;!o&&!i||!l||!u||n<0||(a.save(),a.strokeStyle=l,a.lineWidth=u,a.setLineDash(r.dash),a.lineDashOffset=r.dashOffset,a.beginPath(),pathRadiusLine(e,n,o,i),a.closePath(),a.stroke(),a.restore())}function createPointLabelContext(e,t,n){return createContext(e,{label:n,index:t,type:"pointLabel"})}class RadialLinearScale extends LinearScaleBase{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=toPadding(getTickBackdropHeight(this.options)/2),n=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(n,i)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=isNumberFinite(t)&&!isNaN(t)?t:0,this.max=isNumberFinite(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/getTickBackdropHeight(this.options))}generateTickLabels(t){LinearScaleBase.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,i)=>{const r=callback(this.options.pointLabels.callback,[n,i],this);return r||r===0?r:""}).filter((n,i)=>this.chart.getDataVisibility(i))}fit(){const t=this.options;t.display&&t.pointLabels.display?fitWithPointLabels(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,i,r){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((i-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,i,r))}getIndexAngle(t){const n=TAU/(this._pointLabels.length||1),i=this.options.startAngle||0;return _normalizeAngle(t*n+toRadians(i))}getDistanceFromCenterForValue(t){if(isNullOrUndef(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(isNullOrUndef(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const i=n[t];return createPointLabelContext(this.getContext(),t,i)}}getPointPosition(t,n,i=0){const r=this.getIndexAngle(t)-HALF_PI+i;return{x:Math.cos(r)*n+this.xCenter,y:Math.sin(r)*n+this.yCenter,angle:r}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:i,right:r,bottom:a}=this._pointLabelItems[t];return{left:n,top:i,right:r,bottom:a}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),pathRadiusLine(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:i,grid:r,border:a}=n,o=this._pointLabels.length;let l,u,h;if(n.pointLabels.display&&drawPointLabels(this,o),r.display&&this.ticks.forEach((m,g)=>{if(g!==0){u=this.getDistanceFromCenterForValue(m.value);const _=this.getContext(g),v=r.setContext(_),w=a.setContext(_);drawRadiusLine(this,v,u,o,w)}}),i.display){for(t.save(),l=o-1;l>=0;l--){const m=i.setContext(this.getPointLabelContext(l)),{color:g,lineWidth:_}=m;!_||!g||(t.lineWidth=_,t.strokeStyle=g,t.setLineDash(m.borderDash),t.lineDashOffset=m.borderDashOffset,u=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),h=this.getPointPosition(l,u),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(h.x,h.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,i=n.ticks;if(!i.display)return;const r=this.getIndexAngle(0);let a,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(r),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((l,u)=>{if(u===0&&!n.reverse)return;const h=i.setContext(this.getContext(u)),m=toFont(h.font);if(a=this.getDistanceFromCenterForValue(this.ticks[u].value),h.showLabelBackdrop){t.font=m.string,o=t.measureText(l.label).width,t.fillStyle=h.backdropColor;const g=toPadding(h.backdropPadding);t.fillRect(-o/2-g.left,-a-m.size/2-g.top,o+g.width,m.size+g.height)}renderText(t,l.label,0,-a,m,{color:h.color,strokeColor:h.textStrokeColor,strokeWidth:h.textStrokeWidth})}),t.restore()}drawTitle(){}}Y(RadialLinearScale,"id","radialLinear"),Y(RadialLinearScale,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ticks.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),Y(RadialLinearScale,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),Y(RadialLinearScale,"descriptors",{angleLines:{_fallback:"grid"}});const INTERVALS={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},UNITS=Object.keys(INTERVALS);function sorter(e,t){return e-t}function parse(e,t){if(isNullOrUndef(t))return null;const n=e._adapter,{parser:i,round:r,isoWeekday:a}=e._parseOpts;let o=t;return typeof i=="function"&&(o=i(o)),isNumberFinite(o)||(o=typeof i=="string"?n.parse(o,i):n.parse(o)),o===null?null:(r&&(o=r==="week"&&(isNumber(a)||a===!0)?n.startOf(o,"isoWeek",a):n.startOf(o,r)),+o)}function determineUnitForAutoTicks(e,t,n,i){const r=UNITS.length;for(let a=UNITS.indexOf(e);a<r-1;++a){const o=INTERVALS[UNITS[a]],l=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-t)/(l*o.size))<=i)return UNITS[a]}return UNITS[r-1]}function determineUnitForFormatting(e,t,n,i,r){for(let a=UNITS.length-1;a>=UNITS.indexOf(n);a--){const o=UNITS[a];if(INTERVALS[o].common&&e._adapter.diff(r,i,o)>=t-1)return o}return UNITS[n?UNITS.indexOf(n):0]}function determineMajorUnit(e){for(let t=UNITS.indexOf(e)+1,n=UNITS.length;t<n;++t)if(INTERVALS[UNITS[t]].common)return UNITS[t]}function addTick(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:i,hi:r}=_lookup(n,t),a=n[i]>=t?n[i]:n[r];e[a]=!0}}function setMajorTicks(e,t,n,i){const r=e._adapter,a=+r.startOf(t[0].value,i),o=t[t.length-1].value;let l,u;for(l=a;l<=o;l=+r.add(l,1,i))u=n[l],u>=0&&(t[u].major=!0);return t}function ticksFromTimestamps(e,t,n){const i=[],r={},a=t.length;let o,l;for(o=0;o<a;++o)l=t[o],r[l]=o,i.push({value:l,major:!1});return a===0||!n?i:setMajorTicks(e,i,r,n)}class TimeScale extends Scale{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const i=t.time||(t.time={}),r=this._adapter=new adapters._date(t.adapters.date);r.init(n),mergeIf(i.displayFormats,r.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:parse(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,i=t.time.unit||"day";let{min:r,max:a,minDefined:o,maxDefined:l}=this.getUserBounds();function u(h){!o&&!isNaN(h.min)&&(r=Math.min(r,h.min)),!l&&!isNaN(h.max)&&(a=Math.max(a,h.max))}(!o||!l)&&(u(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&u(this.getMinMax(!1))),r=isNumberFinite(r)&&!isNaN(r)?r:+n.startOf(Date.now(),i),a=isNumberFinite(a)&&!isNaN(a)?a:+n.endOf(Date.now(),i)+1,this.min=Math.min(r,a-1),this.max=Math.max(r+1,a)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],i=t[t.length-1]),{min:n,max:i}}buildTicks(){const t=this.options,n=t.time,i=t.ticks,r=i.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const a=this.min,o=this.max,l=_filterBetween(r,a,o);return this._unit=n.unit||(i.autoSkip?determineUnitForAutoTicks(n.minUnit,this.min,this.max,this._getLabelCapacity(a)):determineUnitForFormatting(this,l.length,n.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:determineMajorUnit(this._unit),this.initOffsets(r),t.reverse&&l.reverse(),ticksFromTimestamps(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,i=0,r,a;this.options.offset&&t.length&&(r=this.getDecimalForValue(t[0]),t.length===1?n=1-r:n=(this.getDecimalForValue(t[1])-r)/2,a=this.getDecimalForValue(t[t.length-1]),t.length===1?i=a:i=(a-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=_limitValue(n,0,o),i=_limitValue(i,0,o),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const t=this._adapter,n=this.min,i=this.max,r=this.options,a=r.time,o=a.unit||determineUnitForAutoTicks(a.minUnit,n,i,this._getLabelCapacity(n)),l=valueOrDefault(r.ticks.stepSize,1),u=o==="week"?a.isoWeekday:!1,h=isNumber(u)||u===!0,m={};let g=n,_,v;if(h&&(g=+t.startOf(g,"isoWeek",u)),g=+t.startOf(g,h?"day":o),t.diff(i,n,o)>1e5*l)throw new Error(n+" and "+i+" are too far apart with stepSize of "+l+" "+o);const w=r.ticks.source==="data"&&this.getDataTimestamps();for(_=g,v=0;_<i;_=+t.add(_,l,o),v++)addTick(m,_,w);return(_===i||r.bounds==="ticks"||v===1)&&addTick(m,_,w),Object.keys(m).sort(sorter).map($=>+$)}getLabelForValue(t){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(t,i.tooltipFormat):n.format(t,i.displayFormats.datetime)}format(t,n){const r=this.options.time.displayFormats,a=this._unit,o=n||r[a];return this._adapter.format(t,o)}_tickFormatFunction(t,n,i,r){const a=this.options,o=a.ticks.callback;if(o)return callback(o,[t,n,i],this);const l=a.time.displayFormats,u=this._unit,h=this._majorUnit,m=u&&l[u],g=h&&l[h],_=i[n],v=h&&g&&_&&_.major;return this._adapter.format(t,r||(v?g:m))}generateTickLabels(t){let n,i,r;for(n=0,i=t.length;n<i;++n)r=t[n],r.label=this._tickFormatFunction(r.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+i)*n.factor)}getValueForPixel(t){const n=this._offsets,i=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,i=this.ctx.measureText(t).width,r=toRadians(this.isHorizontal()?n.maxRotation:n.minRotation),a=Math.cos(r),o=Math.sin(r),l=this._resolveTickFontOptions(0).size;return{w:i*a+l*o,h:i*o+l*a}}_getLabelCapacity(t){const n=this.options.time,i=n.displayFormats,r=i[n.unit]||i.millisecond,a=this._tickFormatFunction(t,0,ticksFromTimestamps(this,[t],this._majorUnit),r),o=this._getLabelSize(a),l=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return l>0?l:1}getDataTimestamps(){let t=this._cache.data||[],n,i;if(t.length)return t;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(n=0,i=r.length;n<i;++n)t=t.concat(r[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,i;if(t.length)return t;const r=this.getLabels();for(n=0,i=r.length;n<i;++n)t.push(parse(this,r[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return _arrayUnique(t.sort(sorter))}}Y(TimeScale,"id","time"),Y(TimeScale,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function interpolate$1(e,t,n){let i=0,r=e.length-1,a,o,l,u;n?(t>=e[i].pos&&t<=e[r].pos&&({lo:i,hi:r}=_lookupByKey(e,"pos",t)),{pos:a,time:l}=e[i],{pos:o,time:u}=e[r]):(t>=e[i].time&&t<=e[r].time&&({lo:i,hi:r}=_lookupByKey(e,"time",t)),{time:a,pos:l}=e[i],{time:o,pos:u}=e[r]);const h=o-a;return h?l+(u-l)*(t-a)/h:l}class TimeSeriesScale extends TimeScale{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=interpolate$1(n,this.min),this._tableRange=interpolate$1(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:i}=this,r=[],a=[];let o,l,u,h,m;for(o=0,l=t.length;o<l;++o)h=t[o],h>=n&&h<=i&&r.push(h);if(r.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(o=0,l=r.length;o<l;++o)m=r[o+1],u=r[o-1],h=r[o],Math.round((m+u)/2)!==h&&a.push({time:h,pos:o/(l-1)});return a}_generate(){const t=this.min,n=this.max;let i=super.getDataTimestamps();return(!i.includes(t)||!i.length)&&i.splice(0,0,t),(!i.includes(n)||i.length===1)&&i.push(n),i.sort((r,a)=>r-a)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),i=this.getLabelTimestamps();return n.length&&i.length?t=this.normalize(n.concat(i)):t=n.length?n:i,t=this._cache.all=t,t}getDecimalForValue(t){return(interpolate$1(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,i=this.getDecimalForPixel(t)/n.factor-n.end;return interpolate$1(this._table,i*this._tableRange+this._minPos,!0)}}Y(TimeSeriesScale,"id","timeseries"),Y(TimeSeriesScale,"defaults",TimeScale.defaults);var isArray$a=Array.isArray,isArray_1=isArray$a,freeGlobal$1=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$8=freeGlobal||freeSelf||Function("return this")(),_root=root$8,root$7=_root,Symbol$6=root$7.Symbol,_Symbol=Symbol$6,Symbol$5=_Symbol,objectProto$d=Object.prototype,hasOwnProperty$a=objectProto$d.hasOwnProperty,nativeObjectToString$1=objectProto$d.toString,symToStringTag$1=Symbol$5?Symbol$5.toStringTag:void 0;function getRawTag$1(e){var t=hasOwnProperty$a.call(e,symToStringTag$1),n=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var i=!0}catch{}var r=nativeObjectToString$1.call(e);return i&&(t?e[symToStringTag$1]=n:delete e[symToStringTag$1]),r}var _getRawTag=getRawTag$1,objectProto$c=Object.prototype,nativeObjectToString=objectProto$c.toString;function objectToString$1(e){return nativeObjectToString.call(e)}var _objectToString=objectToString$1,Symbol$4=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$4?Symbol$4.toStringTag:void 0;function baseGetTag$5(e){return e==null?e===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}var _baseGetTag=baseGetTag$5;function isObjectLike$5(e){return e!=null&&typeof e=="object"}var isObjectLike_1=isObjectLike$5,baseGetTag$4=_baseGetTag,isObjectLike$4=isObjectLike_1,symbolTag$1="[object Symbol]";function isSymbol$5(e){return typeof e=="symbol"||isObjectLike$4(e)&&baseGetTag$4(e)==symbolTag$1}var isSymbol_1=isSymbol$5,isArray$9=isArray_1,isSymbol$4=isSymbol_1,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey$3(e,t){if(isArray$9(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||isSymbol$4(e)?!0:reIsPlainProp.test(e)||!reIsDeepProp.test(e)||t!=null&&e in Object(t)}var _isKey=isKey$3;function isObject$6(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var isObject_1=isObject$6;const isObject$7=getDefaultExportFromCjs(isObject_1);var baseGetTag$3=_baseGetTag,isObject$5=isObject_1,asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(e){if(!isObject$5(e))return!1;var t=baseGetTag$3(e);return t==funcTag$1||t==genTag||t==asyncTag||t==proxyTag}var isFunction_1=isFunction$2,root$6=_root,coreJsData$1=root$6["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=function(){var e=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked$1(e){return!!maskSrcKey&&maskSrcKey in e}var _isMasked=isMasked$1,funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource$2(e){if(e!=null){try{return funcToString$1.call(e)}catch{}try{return e+""}catch{}}return""}var _toSource=toSource$2,isFunction$1=isFunction_1,isMasked=_isMasked,isObject$4=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$b=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$9=objectProto$b.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$9).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(e){if(!isObject$4(e)||isMasked(e))return!1;var t=isFunction$1(e)?reIsNative:reIsHostCtor;return t.test(toSource$1(e))}var _baseIsNative=baseIsNative$1;function getValue$1(e,t){return e==null?void 0:e[t]}var _getValue=getValue$1,baseIsNative=_baseIsNative,getValue=_getValue;function getNative$7(e,t){var n=getValue(e,t);return baseIsNative(n)?n:void 0}var _getNative=getNative$7,getNative$6=_getNative,nativeCreate$4=getNative$6(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$a=Object.prototype,hasOwnProperty$8=objectProto$a.hasOwnProperty;function hashGet$1(e){var t=this.__data__;if(nativeCreate$2){var n=t[e];return n===HASH_UNDEFINED$2?void 0:n}return hasOwnProperty$8.call(t,e)?t[e]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$9=Object.prototype,hasOwnProperty$7=objectProto$9.hasOwnProperty;function hashHas$1(e){var t=this.__data__;return nativeCreate$1?t[e]!==void 0:hasOwnProperty$7.call(t,e)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nativeCreate&&t===void 0?HASH_UNDEFINED$1:t,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Hash$1.prototype.clear=hashClear;Hash$1.prototype.delete=hashDelete;Hash$1.prototype.get=hashGet;Hash$1.prototype.has=hashHas;Hash$1.prototype.set=hashSet;var _Hash=Hash$1;function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$4(e,t){return e===t||e!==e&&t!==t}var eq_1=eq$4,eq$3=eq_1;function assocIndexOf$4(e,t){for(var n=e.length;n--;)if(eq$3(e[n][0],t))return n;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(e){var t=this.__data__,n=assocIndexOf$3(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():splice.call(t,n,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(e){var t=this.__data__,n=assocIndexOf$2(t,e);return n<0?void 0:t[n][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(e){return assocIndexOf$1(this.__data__,e)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(e,t){var n=this.__data__,i=assocIndexOf(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}ListCache$4.prototype.clear=listCacheClear;ListCache$4.prototype.delete=listCacheDelete;ListCache$4.prototype.get=listCacheGet;ListCache$4.prototype.has=listCacheHas;ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,getNative$5=_getNative,root$5=_root,Map$4=getNative$5(root$5,"Map"),_Map=Map$4,Hash=_Hash,ListCache$3=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$3),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(e,t){var n=e.__data__;return isKeyable(t)?n[typeof t=="string"?"string":"hash"]:n.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(e){var t=getMapData$3(this,e).delete(e);return this.size-=t?1:0,t}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(e){return getMapData$2(this,e).get(e)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(e){return getMapData$1(this,e).has(e)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(e,t){var n=getMapData(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$3(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}MapCache$3.prototype.clear=mapCacheClear;MapCache$3.prototype.delete=mapCacheDelete;MapCache$3.prototype.get=mapCacheGet;MapCache$3.prototype.has=mapCacheHas;MapCache$3.prototype.set=mapCacheSet;var _MapCache=MapCache$3,MapCache$2=_MapCache,FUNC_ERROR_TEXT="Expected a function";function memoize$1(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(FUNC_ERROR_TEXT);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],a=n.cache;if(a.has(r))return a.get(r);var o=e.apply(this,i);return n.cache=a.set(r,o)||a,o};return n.cache=new(memoize$1.Cache||MapCache$2),n}memoize$1.Cache=MapCache$2;var memoize_1=memoize$1,memoize=memoize_1,MAX_MEMOIZE_SIZE=500;function memoizeCapped$1(e){var t=memoize(e,function(i){return n.size===MAX_MEMOIZE_SIZE&&n.clear(),i}),n=t.cache;return t}var _memoizeCapped=memoizeCapped$1,memoizeCapped=_memoizeCapped,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=memoizeCapped(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(rePropName,function(n,i,r,a){t.push(r?a.replace(reEscapeChar,"$1"):i||n)}),t}),_stringToPath=stringToPath$1;function arrayMap$2(e,t){for(var n=-1,i=e==null?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}var _arrayMap=arrayMap$2,Symbol$3=_Symbol,arrayMap$1=_arrayMap,isArray$8=isArray_1,isSymbol$3=isSymbol_1,INFINITY$4=1/0,symbolProto$1=Symbol$3?Symbol$3.prototype:void 0,symbolToString=symbolProto$1?symbolProto$1.toString:void 0;function baseToString$1(e){if(typeof e=="string")return e;if(isArray$8(e))return arrayMap$1(e,baseToString$1)+"";if(isSymbol$3(e))return symbolToString?symbolToString.call(e):"";var t=e+"";return t=="0"&&1/e==-INFINITY$4?"-0":t}var _baseToString=baseToString$1,baseToString=_baseToString;function toString$6(e){return e==null?"":baseToString(e)}var toString_1=toString$6,isArray$7=isArray_1,isKey$2=_isKey,stringToPath=_stringToPath,toString$5=toString_1;function castPath$3(e,t){return isArray$7(e)?e:isKey$2(e,t)?[e]:stringToPath(toString$5(e))}var _castPath=castPath$3,isSymbol$2=isSymbol_1,INFINITY$3=1/0;function toKey$5(e){if(typeof e=="string"||isSymbol$2(e))return e;var t=e+"";return t=="0"&&1/e==-INFINITY$3?"-0":t}var _toKey=toKey$5,castPath$2=_castPath,toKey$4=_toKey;function baseGet$3(e,t){t=castPath$2(t,e);for(var n=0,i=t.length;e!=null&&n<i;)e=e[toKey$4(t[n++])];return n&&n==i?e:void 0}var _baseGet=baseGet$3,baseGet$2=_baseGet;function get$1(e,t,n){var i=e==null?void 0:baseGet$2(e,t);return i===void 0?n:i}var get_1=get$1;const get$2=getDefaultExportFromCjs(get_1);var objectProto$8=Object.prototype,hasOwnProperty$6=objectProto$8.hasOwnProperty;function baseHas$1(e,t){return e!=null&&hasOwnProperty$6.call(e,t)}var _baseHas=baseHas$1,baseGetTag$2=_baseGetTag,isObjectLike$3=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(e){return isObjectLike$3(e)&&baseGetTag$2(e)==argsTag$2}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$2=isObjectLike_1,objectProto$7=Object.prototype,hasOwnProperty$5=objectProto$7.hasOwnProperty,propertyIsEnumerable$1=objectProto$7.propertyIsEnumerable,isArguments$3=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike$2(e)&&hasOwnProperty$5.call(e,"callee")&&!propertyIsEnumerable$1.call(e,"callee")},isArguments_1=isArguments$3,MAX_SAFE_INTEGER$3=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$4(e,t){var n=typeof e;return t=t??MAX_SAFE_INTEGER$3,!!t&&(n=="number"||n!="symbol"&&reIsUint.test(e))&&e>-1&&e%1==0&&e<t}var _isIndex=isIndex$4,MAX_SAFE_INTEGER$2=9007199254740991;function isLength$3(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=MAX_SAFE_INTEGER$2}var isLength_1=isLength$3,castPath$1=_castPath,isArguments$2=isArguments_1,isArray$6=isArray_1,isIndex$3=_isIndex,isLength$2=isLength_1,toKey$3=_toKey;function hasPath$2(e,t,n){t=castPath$1(t,e);for(var i=-1,r=t.length,a=!1;++i<r;){var o=toKey$3(t[i]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++i!=r?a:(r=e==null?0:e.length,!!r&&isLength$2(r)&&isIndex$3(o,r)&&(isArray$6(e)||isArguments$2(e)))}var _hasPath=hasPath$2,baseHas=_baseHas,hasPath$1=_hasPath;function has(e,t){return e!=null&&hasPath$1(e,t,baseHas)}var has_1=has;const has$1=getDefaultExportFromCjs(has_1);var getNative$4=_getNative,defineProperty$2=function(){try{var e=getNative$4(Object,"defineProperty");return e({},"",{}),e}catch{}}(),_defineProperty=defineProperty$2,defineProperty$1=_defineProperty;function baseAssignValue$1(e,t,n){t=="__proto__"&&defineProperty$1?defineProperty$1(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var _baseAssignValue=baseAssignValue$1,baseAssignValue=_baseAssignValue,eq$2=eq_1,objectProto$6=Object.prototype,hasOwnProperty$4=objectProto$6.hasOwnProperty;function assignValue$2(e,t,n){var i=e[t];(!(hasOwnProperty$4.call(e,t)&&eq$2(i,n))||n===void 0&&!(t in e))&&baseAssignValue(e,t,n)}var _assignValue=assignValue$2,assignValue$1=_assignValue,castPath=_castPath,isIndex$2=_isIndex,isObject$3=isObject_1,toKey$2=_toKey;function baseSet$2(e,t,n,i){if(!isObject$3(e))return e;t=castPath(t,e);for(var r=-1,a=t.length,o=a-1,l=e;l!=null&&++r<a;){var u=toKey$2(t[r]),h=n;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(r!=o){var m=l[u];h=i?i(m,u,l):void 0,h===void 0&&(h=isObject$3(m)?m:isIndex$2(t[r+1])?[]:{})}assignValue$1(l,u,h),l=l[u]}return e}var _baseSet=baseSet$2,baseSet$1=_baseSet;function set(e,t,n){return e==null?e:baseSet$1(e,t,n)}var set_1=set;const set$1=getDefaultExportFromCjs(set_1);var baseSet=_baseSet;function setWith(e,t,n,i){return i=typeof i=="function"?i:void 0,e==null?e:baseSet(e,t,n,i)}var setWith_1=setWith;const setWith$1=getDefaultExportFromCjs(setWith_1);var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd$1(e){return this.__data__.set(e,HASH_UNDEFINED),this}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(e){return this.__data__.has(e)}var _setCacheHas=setCacheHas$1,MapCache$1=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$2(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new MapCache$1;++t<n;)this.add(e[t])}SetCache$2.prototype.add=SetCache$2.prototype.push=setCacheAdd;SetCache$2.prototype.has=setCacheHas;var _SetCache=SetCache$2;function baseFindIndex$1(e,t,n,i){for(var r=e.length,a=n+(i?1:-1);i?a--:++a<r;)if(t(e[a],a,e))return a;return-1}var _baseFindIndex=baseFindIndex$1;function baseIsNaN$1(e){return e!==e}var _baseIsNaN=baseIsNaN$1;function strictIndexOf$1(e,t,n){for(var i=n-1,r=e.length;++i<r;)if(e[i]===t)return i;return-1}var _strictIndexOf=strictIndexOf$1,baseFindIndex=_baseFindIndex,baseIsNaN=_baseIsNaN,strictIndexOf=_strictIndexOf;function baseIndexOf$1(e,t,n){return t===t?strictIndexOf(e,t,n):baseFindIndex(e,baseIsNaN,n)}var _baseIndexOf=baseIndexOf$1,baseIndexOf=_baseIndexOf;function arrayIncludes$1(e,t){var n=e==null?0:e.length;return!!n&&baseIndexOf(e,t,0)>-1}var _arrayIncludes=arrayIncludes$1;function arrayIncludesWith$1(e,t,n){for(var i=-1,r=e==null?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}var _arrayIncludesWith=arrayIncludesWith$1;function cacheHas$2(e,t){return e.has(t)}var _cacheHas=cacheHas$2,getNative$3=_getNative,root$4=_root,Set$3=getNative$3(root$4,"Set"),_Set=Set$3;function noop$1(){}var noop_1=noop$1;function setToArray$3(e){var t=-1,n=Array(e.size);return e.forEach(function(i){n[++t]=i}),n}var _setToArray=setToArray$3,Set$2=_Set,noop=noop_1,setToArray$2=_setToArray,INFINITY$2=1/0,createSet$1=Set$2&&1/setToArray$2(new Set$2([,-0]))[1]==INFINITY$2?function(e){return new Set$2(e)}:noop,_createSet=createSet$1,SetCache$1=_SetCache,arrayIncludes=_arrayIncludes,arrayIncludesWith=_arrayIncludesWith,cacheHas$1=_cacheHas,createSet=_createSet,setToArray$1=_setToArray,LARGE_ARRAY_SIZE$1=200;function baseUniq$1(e,t,n){var i=-1,r=arrayIncludes,a=e.length,o=!0,l=[],u=l;if(n)o=!1,r=arrayIncludesWith;else if(a>=LARGE_ARRAY_SIZE$1){var h=t?null:createSet(e);if(h)return setToArray$1(h);o=!1,r=cacheHas$1,u=new SetCache$1}else u=t?[]:l;t:for(;++i<a;){var m=e[i],g=t?t(m):m;if(m=n||m!==0?m:0,o&&g===g){for(var _=u.length;_--;)if(u[_]===g)continue t;t&&u.push(g),l.push(m)}else r(u,g,n)||(u!==l&&u.push(g),l.push(m))}return l}var _baseUniq=baseUniq$1,baseUniq=_baseUniq;function uniq(e){return e&&e.length?baseUniq(e):[]}var uniq_1=uniq;const uniq$1=getDefaultExportFromCjs(uniq_1),defaultLocaleResolver=(e,t)=>{const n=[],i=[];return n.push(t),t||n.push(e.locale),e.enableFallback&&n.push(e.defaultLocale),n.filter(Boolean).map(r=>r.toString()).forEach(function(r){if(i.includes(r)||i.push(r),!e.enableFallback)return;const a=r.split("-");a.length===3&&i.push(`${a[0]}-${a[1]}`),i.push(a[0])}),uniq$1(i)};class Locales{constructor(t){this.i18n=t,this.registry={},this.register("default",defaultLocaleResolver)}register(t,n){if(typeof n!="function"){const i=n;n=()=>i}this.registry[t]=n}get(t){let n=this.registry[t]||this.registry[this.i18n.locale]||this.registry.default;return typeof n=="function"&&(n=n(this.i18n,t)),n instanceof Array||(n=[n]),n}}const en=(e,t)=>{const n=String(e).split("."),i=!n[1],r=Number(n[0])==e,a=r&&n[0].slice(-1),o=r&&n[0].slice(-2);return t?a==1&&o!=11?"one":a==2&&o!=12?"two":a==3&&o!=13?"few":"other":e==1&&i?"one":"other"};function useMakePlural({pluralizer:e,includeZero:t=!0,ordinal:n=!1}){return function(i,r){return[t&&r===0?"zero":"",e(r,n)].filter(Boolean)}}const defaultPluralizer=useMakePlural({pluralizer:en,includeZero:!0});class Pluralization{constructor(t){this.i18n=t,this.registry={},this.register("default",defaultPluralizer)}register(t,n){this.registry[t]=n}get(t){return this.registry[t]||this.registry[this.i18n.locale]||this.registry.default}}function baseSlice$1(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(r);++i<r;)a[i]=e[i+t];return a}var _baseSlice=baseSlice$1,baseSlice=_baseSlice;function castSlice$1(e,t,n){var i=e.length;return n=n===void 0?i:n,!t&&n>=i?e:baseSlice(e,t,n)}var _castSlice=castSlice$1,rsAstralRange$2="\\ud800-\\udfff",rsComboMarksRange$3="\\u0300-\\u036f",reComboHalfMarksRange$3="\\ufe20-\\ufe2f",rsComboSymbolsRange$3="\\u20d0-\\u20ff",rsComboRange$3=rsComboMarksRange$3+reComboHalfMarksRange$3+rsComboSymbolsRange$3,rsVarRange$2="\\ufe0e\\ufe0f",rsZWJ$2="\\u200d",reHasUnicode=RegExp("["+rsZWJ$2+rsAstralRange$2+rsComboRange$3+rsVarRange$2+"]");function hasUnicode$2(e){return reHasUnicode.test(e)}var _hasUnicode=hasUnicode$2;function asciiToArray$1(e){return e.split("")}var _asciiToArray=asciiToArray$1,rsAstralRange$1="\\ud800-\\udfff",rsComboMarksRange$2="\\u0300-\\u036f",reComboHalfMarksRange$2="\\ufe20-\\ufe2f",rsComboSymbolsRange$2="\\u20d0-\\u20ff",rsComboRange$2=rsComboMarksRange$2+reComboHalfMarksRange$2+rsComboSymbolsRange$2,rsVarRange$1="\\ufe0e\\ufe0f",rsAstral="["+rsAstralRange$1+"]",rsCombo$2="["+rsComboRange$2+"]",rsFitz$1="\\ud83c[\\udffb-\\udfff]",rsModifier$1="(?:"+rsCombo$2+"|"+rsFitz$1+")",rsNonAstral$1="[^"+rsAstralRange$1+"]",rsRegional$1="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair$1="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ$1="\\u200d",reOptMod$1=rsModifier$1+"?",rsOptVar$1="["+rsVarRange$1+"]?",rsOptJoin$1="(?:"+rsZWJ$1+"(?:"+[rsNonAstral$1,rsRegional$1,rsSurrPair$1].join("|")+")"+rsOptVar$1+reOptMod$1+")*",rsSeq$1=rsOptVar$1+reOptMod$1+rsOptJoin$1,rsSymbol="(?:"+[rsNonAstral$1+rsCombo$2+"?",rsCombo$2,rsRegional$1,rsSurrPair$1,rsAstral].join("|")+")",reUnicode=RegExp(rsFitz$1+"(?="+rsFitz$1+")|"+rsSymbol+rsSeq$1,"g");function unicodeToArray$1(e){return e.match(reUnicode)||[]}var _unicodeToArray=unicodeToArray$1,asciiToArray=_asciiToArray,hasUnicode$1=_hasUnicode,unicodeToArray=_unicodeToArray;function stringToArray$1(e){return hasUnicode$1(e)?unicodeToArray(e):asciiToArray(e)}var _stringToArray=stringToArray$1,castSlice=_castSlice,hasUnicode=_hasUnicode,stringToArray=_stringToArray,toString$4=toString_1;function createCaseFirst$1(e){return function(t){t=toString$4(t);var n=hasUnicode(t)?stringToArray(t):void 0,i=n?n[0]:t.charAt(0),r=n?castSlice(n,1).join(""):t.slice(1);return i[e]()+r}}var _createCaseFirst=createCaseFirst$1,createCaseFirst=_createCaseFirst,upperFirst$1=createCaseFirst("toUpperCase"),upperFirst_1=upperFirst$1,toString$3=toString_1,upperFirst=upperFirst_1;function capitalize$1(e){return upperFirst(toString$3(e).toLowerCase())}var capitalize_1=capitalize$1;function arrayReduce$1(e,t,n,i){var r=-1,a=e==null?0:e.length;for(i&&a&&(n=e[++r]);++r<a;)n=t(n,e[r],r,e);return n}var _arrayReduce=arrayReduce$1;function basePropertyOf$1(e){return function(t){return e==null?void 0:e[t]}}var _basePropertyOf=basePropertyOf$1,basePropertyOf=_basePropertyOf,deburredLetters={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},deburrLetter$1=basePropertyOf(deburredLetters),_deburrLetter=deburrLetter$1,deburrLetter=_deburrLetter,toString$2=toString_1,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rsComboMarksRange$1="\\u0300-\\u036f",reComboHalfMarksRange$1="\\ufe20-\\ufe2f",rsComboSymbolsRange$1="\\u20d0-\\u20ff",rsComboRange$1=rsComboMarksRange$1+reComboHalfMarksRange$1+rsComboSymbolsRange$1,rsCombo$1="["+rsComboRange$1+"]",reComboMark=RegExp(rsCombo$1,"g");function deburr$1(e){return e=toString$2(e),e&&e.replace(reLatin,deburrLetter).replace(reComboMark,"")}var deburr_1=deburr$1,reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function asciiWords$1(e){return e.match(reAsciiWord)||[]}var _asciiWords=asciiWords$1,reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hasUnicodeWord$1(e){return reHasUnicodeWord.test(e)}var _hasUnicodeWord=hasUnicodeWord$1,rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsDingbatRange="\\u2700-\\u27bf",rsLowerRange="a-z\\xdf-\\xf6\\xf8-\\xff",rsMathOpRange="\\xac\\xb1\\xd7\\xf7",rsNonCharRange="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rsPunctuationRange="\\u2000-\\u206f",rsSpaceRange=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rsUpperRange="A-Z\\xc0-\\xd6\\xd8-\\xde",rsVarRange="\\ufe0e\\ufe0f",rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange,rsApos$1="['’]",rsBreak="["+rsBreakRange+"]",rsCombo="["+rsComboRange+"]",rsDigits="\\d+",rsDingbat="["+rsDingbatRange+"]",rsLower="["+rsLowerRange+"]",rsMisc="[^"+rsAstralRange+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper="["+rsUpperRange+"]",rsZWJ="\\u200d",rsMiscLower="(?:"+rsLower+"|"+rsMisc+")",rsMiscUpper="(?:"+rsUpper+"|"+rsMisc+")",rsOptContrLower="(?:"+rsApos$1+"(?:d|ll|m|re|s|t|ve))?",rsOptContrUpper="(?:"+rsApos$1+"(?:D|LL|M|RE|S|T|VE))?",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsOrdLower="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rsOrdUpper="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsEmoji="(?:"+[rsDingbat,rsRegional,rsSurrPair].join("|")+")"+rsSeq,reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+"+rsOptContrLower+"(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsMiscUpper+"+"+rsOptContrUpper+"(?="+[rsBreak,rsUpper+rsMiscLower,"$"].join("|")+")",rsUpper+"?"+rsMiscLower+"+"+rsOptContrLower,rsUpper+"+"+rsOptContrUpper,rsOrdUpper,rsOrdLower,rsDigits,rsEmoji].join("|"),"g");function unicodeWords$1(e){return e.match(reUnicodeWord)||[]}var _unicodeWords=unicodeWords$1,asciiWords=_asciiWords,hasUnicodeWord=_hasUnicodeWord,toString$1=toString_1,unicodeWords=_unicodeWords;function words$1(e,t,n){return e=toString$1(e),t=n?void 0:t,t===void 0?hasUnicodeWord(e)?unicodeWords(e):asciiWords(e):e.match(t)||[]}var words_1=words$1,arrayReduce=_arrayReduce,deburr=deburr_1,words=words_1,rsApos="['’]",reApos=RegExp(rsApos,"g");function createCompounder$1(e){return function(t){return arrayReduce(words(deburr(t).replace(reApos,"")),e,"")}}var _createCompounder=createCompounder$1,capitalize=capitalize_1,createCompounder=_createCompounder,camelCase=createCompounder(function(e,t,n){return t=t.toLowerCase(),e+(n?capitalize(t):t)}),camelCase_1=camelCase;const camelCase$1=getDefaultExportFromCjs(camelCase_1);function camelCaseKeys(e){return e?Object.keys(e).reduce((t,n)=>(t[camelCase$1(n)]=e[n],t),{}):{}}function isSet(e){return e!=null}function createTranslationOptions(e,t,n){let i=[{scope:t}];if(isSet(n.defaults)&&(i=i.concat(n.defaults)),isSet(n.defaultValue)){const r=typeof n.defaultValue=="function"?n.defaultValue(e,t,n):n.defaultValue;i.push({message:r}),delete n.defaultValue}return i}var isNumeric=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,mathceil=Math.ceil,mathfloor=Math.floor,bignumberError="[BigNumber Error] ",tooManyDigits=bignumberError+"Number primitive has more than 15 significant digits: ",BASE=1e14,LOG_BASE=14,MAX_SAFE_INTEGER$1=9007199254740991,POWS_TEN=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],SQRT_BASE=1e7,MAX=1e9;function clone(e){var t,n,i,r=T.prototype={constructor:T,toString:null,valueOf:null},a=new T(1),o=20,l=4,u=-7,h=21,m=-1e7,g=1e7,_=!1,v=1,w=0,$={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},x="0123456789abcdefghijklmnopqrstuvwxyz",M=!0;function T(y,E){var S,O,A,F,z,C,D,I,N=this;if(!(N instanceof T))return new T(y,E);if(E==null){if(y&&y._isBigNumber===!0){N.s=y.s,!y.c||y.e>g?N.c=N.e=null:y.e<m?N.c=[N.e=0]:(N.e=y.e,N.c=y.c.slice());return}if((C=typeof y=="number")&&y*0==0){if(N.s=1/y<0?(y=-y,-1):1,y===~~y){for(F=0,z=y;z>=10;z/=10,F++);F>g?N.c=N.e=null:(N.e=F,N.c=[y]);return}I=String(y)}else{if(!isNumeric.test(I=String(y)))return i(N,I,C);N.s=I.charCodeAt(0)==45?(I=I.slice(1),-1):1}(F=I.indexOf("."))>-1&&(I=I.replace(".","")),(z=I.search(/e/i))>0?(F<0&&(F=z),F+=+I.slice(z+1),I=I.substring(0,z)):F<0&&(F=I.length)}else{if(intCheck(E,2,x.length,"Base"),E==10&&M)return N=new T(y),K(N,o+N.e+1,l);if(I=String(y),C=typeof y=="number"){if(y*0!=0)return i(N,I,C,E);if(N.s=1/y<0?(I=I.slice(1),-1):1,T.DEBUG&&I.replace(/^0\.0*|\./,"").length>15)throw Error(tooManyDigits+y)}else N.s=I.charCodeAt(0)===45?(I=I.slice(1),-1):1;for(S=x.slice(0,E),F=z=0,D=I.length;z<D;z++)if(S.indexOf(O=I.charAt(z))<0){if(O=="."){if(z>F){F=D;continue}}else if(!A&&(I==I.toUpperCase()&&(I=I.toLowerCase())||I==I.toLowerCase()&&(I=I.toUpperCase()))){A=!0,z=-1,F=0;continue}return i(N,String(y),C,E)}C=!1,I=n(I,E,10,N.s),(F=I.indexOf("."))>-1?I=I.replace(".",""):F=I.length}for(z=0;I.charCodeAt(z)===48;z++);for(D=I.length;I.charCodeAt(--D)===48;);if(I=I.slice(z,++D)){if(D-=z,C&&T.DEBUG&&D>15&&(y>MAX_SAFE_INTEGER$1||y!==mathfloor(y)))throw Error(tooManyDigits+N.s*y);if((F=F-z-1)>g)N.c=N.e=null;else if(F<m)N.c=[N.e=0];else{if(N.e=F,N.c=[],z=(F+1)%LOG_BASE,F<0&&(z+=LOG_BASE),z<D){for(z&&N.c.push(+I.slice(0,z)),D-=LOG_BASE;z<D;)N.c.push(+I.slice(z,z+=LOG_BASE));z=LOG_BASE-(I=I.slice(z)).length}else z-=D;for(;z--;I+="0");N.c.push(+I)}}else N.c=[N.e=0]}T.clone=clone,T.ROUND_UP=0,T.ROUND_DOWN=1,T.ROUND_CEIL=2,T.ROUND_FLOOR=3,T.ROUND_HALF_UP=4,T.ROUND_HALF_DOWN=5,T.ROUND_HALF_EVEN=6,T.ROUND_HALF_CEIL=7,T.ROUND_HALF_FLOOR=8,T.EUCLID=9,T.config=T.set=function(y){var E,S;if(y!=null)if(typeof y=="object"){if(y.hasOwnProperty(E="DECIMAL_PLACES")&&(S=y[E],intCheck(S,0,MAX,E),o=S),y.hasOwnProperty(E="ROUNDING_MODE")&&(S=y[E],intCheck(S,0,8,E),l=S),y.hasOwnProperty(E="EXPONENTIAL_AT")&&(S=y[E],S&&S.pop?(intCheck(S[0],-MAX,0,E),intCheck(S[1],0,MAX,E),u=S[0],h=S[1]):(intCheck(S,-MAX,MAX,E),u=-(h=S<0?-S:S))),y.hasOwnProperty(E="RANGE"))if(S=y[E],S&&S.pop)intCheck(S[0],-MAX,-1,E),intCheck(S[1],1,MAX,E),m=S[0],g=S[1];else if(intCheck(S,-MAX,MAX,E),S)m=-(g=S<0?-S:S);else throw Error(bignumberError+E+" cannot be zero: "+S);if(y.hasOwnProperty(E="CRYPTO"))if(S=y[E],S===!!S)if(S)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))_=S;else throw _=!S,Error(bignumberError+"crypto unavailable");else _=S;else throw Error(bignumberError+E+" not true or false: "+S);if(y.hasOwnProperty(E="MODULO_MODE")&&(S=y[E],intCheck(S,0,9,E),v=S),y.hasOwnProperty(E="POW_PRECISION")&&(S=y[E],intCheck(S,0,MAX,E),w=S),y.hasOwnProperty(E="FORMAT"))if(S=y[E],typeof S=="object")$=S;else throw Error(bignumberError+E+" not an object: "+S);if(y.hasOwnProperty(E="ALPHABET"))if(S=y[E],typeof S=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(S))M=S.slice(0,10)=="0123456789",x=S;else throw Error(bignumberError+E+" invalid: "+S)}else throw Error(bignumberError+"Object expected: "+y);return{DECIMAL_PLACES:o,ROUNDING_MODE:l,EXPONENTIAL_AT:[u,h],RANGE:[m,g],CRYPTO:_,MODULO_MODE:v,POW_PRECISION:w,FORMAT:$,ALPHABET:x}},T.isBigNumber=function(y){if(!y||y._isBigNumber!==!0)return!1;if(!T.DEBUG)return!0;var E,S,O=y.c,A=y.e,F=y.s;t:if({}.toString.call(O)=="[object Array]"){if((F===1||F===-1)&&A>=-MAX&&A<=MAX&&A===mathfloor(A)){if(O[0]===0){if(A===0&&O.length===1)return!0;break t}if(E=(A+1)%LOG_BASE,E<1&&(E+=LOG_BASE),String(O[0]).length==E){for(E=0;E<O.length;E++)if(S=O[E],S<0||S>=BASE||S!==mathfloor(S))break t;if(S!==0)return!0}}}else if(O===null&&A===null&&(F===null||F===1||F===-1))return!0;throw Error(bignumberError+"Invalid BigNumber: "+y)},T.maximum=T.max=function(){return W(arguments,-1)},T.minimum=T.min=function(){return W(arguments,1)},T.random=function(){var y=9007199254740992,E=Math.random()*y&2097151?function(){return mathfloor(Math.random()*y)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(S){var O,A,F,z,C,D=0,I=[],N=new T(a);if(S==null?S=o:intCheck(S,0,MAX),z=mathceil(S/LOG_BASE),_)if(crypto.getRandomValues){for(O=crypto.getRandomValues(new Uint32Array(z*=2));D<z;)C=O[D]*131072+(O[D+1]>>>11),C>=9e15?(A=crypto.getRandomValues(new Uint32Array(2)),O[D]=A[0],O[D+1]=A[1]):(I.push(C%1e14),D+=2);D=z/2}else if(crypto.randomBytes){for(O=crypto.randomBytes(z*=7);D<z;)C=(O[D]&31)*281474976710656+O[D+1]*1099511627776+O[D+2]*4294967296+O[D+3]*16777216+(O[D+4]<<16)+(O[D+5]<<8)+O[D+6],C>=9e15?crypto.randomBytes(7).copy(O,D):(I.push(C%1e14),D+=7);D=z/7}else throw _=!1,Error(bignumberError+"crypto unavailable");if(!_)for(;D<z;)C=E(),C<9e15&&(I[D++]=C%1e14);for(z=I[--D],S%=LOG_BASE,z&&S&&(C=POWS_TEN[LOG_BASE-S],I[D]=mathfloor(z/C)*C);I[D]===0;I.pop(),D--);if(D<0)I=[F=0];else{for(F=-1;I[0]===0;I.splice(0,1),F-=LOG_BASE);for(D=1,C=I[0];C>=10;C/=10,D++);D<LOG_BASE&&(F-=LOG_BASE-D)}return N.e=F,N.c=I,N}}(),T.sum=function(){for(var y=1,E=arguments,S=new T(E[0]);y<E.length;)S=S.plus(E[y++]);return S},n=function(){var y="0123456789";function E(S,O,A,F){for(var z,C=[0],D,I=0,N=S.length;I<N;){for(D=C.length;D--;C[D]*=O);for(C[0]+=F.indexOf(S.charAt(I++)),z=0;z<C.length;z++)C[z]>A-1&&(C[z+1]==null&&(C[z+1]=0),C[z+1]+=C[z]/A|0,C[z]%=A)}return C.reverse()}return function(S,O,A,F,z){var C,D,I,N,G,q,Z,et,st=S.indexOf("."),rt=o,Q=l;for(st>=0&&(N=w,w=0,S=S.replace(".",""),et=new T(O),q=et.pow(S.length-st),w=N,et.c=E(toFixedPoint(coeffToString(q.c),q.e,"0"),10,A,y),et.e=et.c.length),Z=E(S,O,A,z?(C=x,y):(C=y,x)),I=N=Z.length;Z[--N]==0;Z.pop());if(!Z[0])return C.charAt(0);if(st<0?--I:(q.c=Z,q.e=I,q.s=F,q=t(q,et,rt,Q,A),Z=q.c,G=q.r,I=q.e),D=I+rt+1,st=Z[D],N=A/2,G=G||D<0||Z[D+1]!=null,G=Q<4?(st!=null||G)&&(Q==0||Q==(q.s<0?3:2)):st>N||st==N&&(Q==4||G||Q==6&&Z[D-1]&1||Q==(q.s<0?8:7)),D<1||!Z[0])S=G?toFixedPoint(C.charAt(1),-rt,C.charAt(0)):C.charAt(0);else{if(Z.length=D,G)for(--A;++Z[--D]>A;)Z[D]=0,D||(++I,Z=[1].concat(Z));for(N=Z.length;!Z[--N];);for(st=0,S="";st<=N;S+=C.charAt(Z[st++]));S=toFixedPoint(S,I,C.charAt(0))}return S}}(),t=function(){function y(O,A,F){var z,C,D,I,N=0,G=O.length,q=A%SQRT_BASE,Z=A/SQRT_BASE|0;for(O=O.slice();G--;)D=O[G]%SQRT_BASE,I=O[G]/SQRT_BASE|0,z=Z*D+I*q,C=q*D+z%SQRT_BASE*SQRT_BASE+N,N=(C/F|0)+(z/SQRT_BASE|0)+Z*I,O[G]=C%F;return N&&(O=[N].concat(O)),O}function E(O,A,F,z){var C,D;if(F!=z)D=F>z?1:-1;else for(C=D=0;C<F;C++)if(O[C]!=A[C]){D=O[C]>A[C]?1:-1;break}return D}function S(O,A,F,z){for(var C=0;F--;)O[F]-=C,C=O[F]<A[F]?1:0,O[F]=C*z+O[F]-A[F];for(;!O[0]&&O.length>1;O.splice(0,1));}return function(O,A,F,z,C){var D,I,N,G,q,Z,et,st,rt,Q,J,ht,_t,Dt,Wt,$t,Mt,wt=O.s==A.s?1:-1,Pt=O.c,ft=A.c;if(!Pt||!Pt[0]||!ft||!ft[0])return new T(!O.s||!A.s||(Pt?ft&&Pt[0]==ft[0]:!ft)?NaN:Pt&&Pt[0]==0||!ft?wt*0:wt/0);for(st=new T(wt),rt=st.c=[],I=O.e-A.e,wt=F+I+1,C||(C=BASE,I=bitFloor(O.e/LOG_BASE)-bitFloor(A.e/LOG_BASE),wt=wt/LOG_BASE|0),N=0;ft[N]==(Pt[N]||0);N++);if(ft[N]>(Pt[N]||0)&&I--,wt<0)rt.push(1),G=!0;else{for(Dt=Pt.length,$t=ft.length,N=0,wt+=2,q=mathfloor(C/(ft[0]+1)),q>1&&(ft=y(ft,q,C),Pt=y(Pt,q,C),$t=ft.length,Dt=Pt.length),_t=$t,Q=Pt.slice(0,$t),J=Q.length;J<$t;Q[J++]=0);Mt=ft.slice(),Mt=[0].concat(Mt),Wt=ft[0],ft[1]>=C/2&&Wt++;do{if(q=0,D=E(ft,Q,$t,J),D<0){if(ht=Q[0],$t!=J&&(ht=ht*C+(Q[1]||0)),q=mathfloor(ht/Wt),q>1)for(q>=C&&(q=C-1),Z=y(ft,q,C),et=Z.length,J=Q.length;E(Z,Q,et,J)==1;)q--,S(Z,$t<et?Mt:ft,et,C),et=Z.length,D=1;else q==0&&(D=q=1),Z=ft.slice(),et=Z.length;if(et<J&&(Z=[0].concat(Z)),S(Q,Z,J,C),J=Q.length,D==-1)for(;E(ft,Q,$t,J)<1;)q++,S(Q,$t<J?Mt:ft,J,C),J=Q.length}else D===0&&(q++,Q=[0]);rt[N++]=q,Q[0]?Q[J++]=Pt[_t]||0:(Q=[Pt[_t]],J=1)}while((_t++<Dt||Q[0]!=null)&&wt--);G=Q[0]!=null,rt[0]||rt.splice(0,1)}if(C==BASE){for(N=1,wt=rt[0];wt>=10;wt/=10,N++);K(st,F+(st.e=N+I*LOG_BASE-1)+1,z,G)}else st.e=I,st.r=+G;return st}}();function R(y,E,S,O){var A,F,z,C,D;if(S==null?S=l:intCheck(S,0,8),!y.c)return y.toString();if(A=y.c[0],z=y.e,E==null)D=coeffToString(y.c),D=O==1||O==2&&(z<=u||z>=h)?toExponential(D,z):toFixedPoint(D,z,"0");else if(y=K(new T(y),E,S),F=y.e,D=coeffToString(y.c),C=D.length,O==1||O==2&&(E<=F||F<=u)){for(;C<E;D+="0",C++);D=toExponential(D,F)}else if(E-=z,D=toFixedPoint(D,F,"0"),F+1>C){if(--E>0)for(D+=".";E--;D+="0");}else if(E+=F-C,E>0)for(F+1==C&&(D+=".");E--;D+="0");return y.s<0&&A?"-"+D:D}function W(y,E){for(var S,O,A=1,F=new T(y[0]);A<y.length;A++)O=new T(y[A]),(!O.s||(S=compare(F,O))===E||S===0&&F.s===E)&&(F=O);return F}function V(y,E,S){for(var O=1,A=E.length;!E[--A];E.pop());for(A=E[0];A>=10;A/=10,O++);return(S=O+S*LOG_BASE-1)>g?y.c=y.e=null:S<m?y.c=[y.e=0]:(y.e=S,y.c=E),y}i=function(){var y=/^(-?)0([xbo])(?=\w[\w.]*$)/i,E=/^([^.]+)\.$/,S=/^\.([^.]+)$/,O=/^-?(Infinity|NaN)$/,A=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(F,z,C,D){var I,N=C?z:z.replace(A,"");if(O.test(N))F.s=isNaN(N)?null:N<0?-1:1;else{if(!C&&(N=N.replace(y,function(G,q,Z){return I=(Z=Z.toLowerCase())=="x"?16:Z=="b"?2:8,!D||D==I?q:G}),D&&(I=D,N=N.replace(E,"$1").replace(S,"0.$1")),z!=N))return new T(N,I);if(T.DEBUG)throw Error(bignumberError+"Not a"+(D?" base "+D:"")+" number: "+z);F.s=null}F.c=F.e=null}}();function K(y,E,S,O){var A,F,z,C,D,I,N,G=y.c,q=POWS_TEN;if(G){t:{for(A=1,C=G[0];C>=10;C/=10,A++);if(F=E-A,F<0)F+=LOG_BASE,z=E,D=G[I=0],N=mathfloor(D/q[A-z-1]%10);else if(I=mathceil((F+1)/LOG_BASE),I>=G.length)if(O){for(;G.length<=I;G.push(0));D=N=0,A=1,F%=LOG_BASE,z=F-LOG_BASE+1}else break t;else{for(D=C=G[I],A=1;C>=10;C/=10,A++);F%=LOG_BASE,z=F-LOG_BASE+A,N=z<0?0:mathfloor(D/q[A-z-1]%10)}if(O=O||E<0||G[I+1]!=null||(z<0?D:D%q[A-z-1]),O=S<4?(N||O)&&(S==0||S==(y.s<0?3:2)):N>5||N==5&&(S==4||O||S==6&&(F>0?z>0?D/q[A-z]:0:G[I-1])%10&1||S==(y.s<0?8:7)),E<1||!G[0])return G.length=0,O?(E-=y.e+1,G[0]=q[(LOG_BASE-E%LOG_BASE)%LOG_BASE],y.e=-E||0):G[0]=y.e=0,y;if(F==0?(G.length=I,C=1,I--):(G.length=I+1,C=q[LOG_BASE-F],G[I]=z>0?mathfloor(D/q[A-z]%q[z])*C:0),O)for(;;)if(I==0){for(F=1,z=G[0];z>=10;z/=10,F++);for(z=G[0]+=C,C=1;z>=10;z/=10,C++);F!=C&&(y.e++,G[0]==BASE&&(G[0]=1));break}else{if(G[I]+=C,G[I]!=BASE)break;G[I--]=0,C=1}for(F=G.length;G[--F]===0;G.pop());}y.e>g?y.c=y.e=null:y.e<m&&(y.c=[y.e=0])}return y}function U(y){var E,S=y.e;return S===null?y.toString():(E=coeffToString(y.c),E=S<=u||S>=h?toExponential(E,S):toFixedPoint(E,S,"0"),y.s<0?"-"+E:E)}return r.absoluteValue=r.abs=function(){var y=new T(this);return y.s<0&&(y.s=1),y},r.comparedTo=function(y,E){return compare(this,new T(y,E))},r.decimalPlaces=r.dp=function(y,E){var S,O,A,F=this;if(y!=null)return intCheck(y,0,MAX),E==null?E=l:intCheck(E,0,8),K(new T(F),y+F.e+1,E);if(!(S=F.c))return null;if(O=((A=S.length-1)-bitFloor(this.e/LOG_BASE))*LOG_BASE,A=S[A])for(;A%10==0;A/=10,O--);return O<0&&(O=0),O},r.dividedBy=r.div=function(y,E){return t(this,new T(y,E),o,l)},r.dividedToIntegerBy=r.idiv=function(y,E){return t(this,new T(y,E),0,1)},r.exponentiatedBy=r.pow=function(y,E){var S,O,A,F,z,C,D,I,N,G=this;if(y=new T(y),y.c&&!y.isInteger())throw Error(bignumberError+"Exponent not an integer: "+U(y));if(E!=null&&(E=new T(E)),C=y.e>14,!G.c||!G.c[0]||G.c[0]==1&&!G.e&&G.c.length==1||!y.c||!y.c[0])return N=new T(Math.pow(+U(G),C?y.s*(2-isOdd(y)):+U(y))),E?N.mod(E):N;if(D=y.s<0,E){if(E.c?!E.c[0]:!E.s)return new T(NaN);O=!D&&G.isInteger()&&E.isInteger(),O&&(G=G.mod(E))}else{if(y.e>9&&(G.e>0||G.e<-1||(G.e==0?G.c[0]>1||C&&G.c[1]>=24e7:G.c[0]<8e13||C&&G.c[0]<=9999975e7)))return F=G.s<0&&isOdd(y)?-0:0,G.e>-1&&(F=1/F),new T(D?1/F:F);w&&(F=mathceil(w/LOG_BASE+2))}for(C?(S=new T(.5),D&&(y.s=1),I=isOdd(y)):(A=Math.abs(+U(y)),I=A%2),N=new T(a);;){if(I){if(N=N.times(G),!N.c)break;F?N.c.length>F&&(N.c.length=F):O&&(N=N.mod(E))}if(A){if(A=mathfloor(A/2),A===0)break;I=A%2}else if(y=y.times(S),K(y,y.e+1,1),y.e>14)I=isOdd(y);else{if(A=+U(y),A===0)break;I=A%2}G=G.times(G),F?G.c&&G.c.length>F&&(G.c.length=F):O&&(G=G.mod(E))}return O?N:(D&&(N=a.div(N)),E?N.mod(E):F?K(N,w,l,z):N)},r.integerValue=function(y){var E=new T(this);return y==null?y=l:intCheck(y,0,8),K(E,E.e+1,y)},r.isEqualTo=r.eq=function(y,E){return compare(this,new T(y,E))===0},r.isFinite=function(){return!!this.c},r.isGreaterThan=r.gt=function(y,E){return compare(this,new T(y,E))>0},r.isGreaterThanOrEqualTo=r.gte=function(y,E){return(E=compare(this,new T(y,E)))===1||E===0},r.isInteger=function(){return!!this.c&&bitFloor(this.e/LOG_BASE)>this.c.length-2},r.isLessThan=r.lt=function(y,E){return compare(this,new T(y,E))<0},r.isLessThanOrEqualTo=r.lte=function(y,E){return(E=compare(this,new T(y,E)))===-1||E===0},r.isNaN=function(){return!this.s},r.isNegative=function(){return this.s<0},r.isPositive=function(){return this.s>0},r.isZero=function(){return!!this.c&&this.c[0]==0},r.minus=function(y,E){var S,O,A,F,z=this,C=z.s;if(y=new T(y,E),E=y.s,!C||!E)return new T(NaN);if(C!=E)return y.s=-E,z.plus(y);var D=z.e/LOG_BASE,I=y.e/LOG_BASE,N=z.c,G=y.c;if(!D||!I){if(!N||!G)return N?(y.s=-E,y):new T(G?z:NaN);if(!N[0]||!G[0])return G[0]?(y.s=-E,y):new T(N[0]?z:l==3?-0:0)}if(D=bitFloor(D),I=bitFloor(I),N=N.slice(),C=D-I){for((F=C<0)?(C=-C,A=N):(I=D,A=G),A.reverse(),E=C;E--;A.push(0));A.reverse()}else for(O=(F=(C=N.length)<(E=G.length))?C:E,C=E=0;E<O;E++)if(N[E]!=G[E]){F=N[E]<G[E];break}if(F&&(A=N,N=G,G=A,y.s=-y.s),E=(O=G.length)-(S=N.length),E>0)for(;E--;N[S++]=0);for(E=BASE-1;O>C;){if(N[--O]<G[O]){for(S=O;S&&!N[--S];N[S]=E);--N[S],N[O]+=BASE}N[O]-=G[O]}for(;N[0]==0;N.splice(0,1),--I);return N[0]?V(y,N,I):(y.s=l==3?-1:1,y.c=[y.e=0],y)},r.modulo=r.mod=function(y,E){var S,O,A=this;return y=new T(y,E),!A.c||!y.s||y.c&&!y.c[0]?new T(NaN):!y.c||A.c&&!A.c[0]?new T(A):(v==9?(O=y.s,y.s=1,S=t(A,y,0,3),y.s=O,S.s*=O):S=t(A,y,0,v),y=A.minus(S.times(y)),!y.c[0]&&v==1&&(y.s=A.s),y)},r.multipliedBy=r.times=function(y,E){var S,O,A,F,z,C,D,I,N,G,q,Z,et,st,rt,Q=this,J=Q.c,ht=(y=new T(y,E)).c;if(!J||!ht||!J[0]||!ht[0])return!Q.s||!y.s||J&&!J[0]&&!ht||ht&&!ht[0]&&!J?y.c=y.e=y.s=null:(y.s*=Q.s,!J||!ht?y.c=y.e=null:(y.c=[0],y.e=0)),y;for(O=bitFloor(Q.e/LOG_BASE)+bitFloor(y.e/LOG_BASE),y.s*=Q.s,D=J.length,G=ht.length,D<G&&(et=J,J=ht,ht=et,A=D,D=G,G=A),A=D+G,et=[];A--;et.push(0));for(st=BASE,rt=SQRT_BASE,A=G;--A>=0;){for(S=0,q=ht[A]%rt,Z=ht[A]/rt|0,z=D,F=A+z;F>A;)I=J[--z]%rt,N=J[z]/rt|0,C=Z*I+N*q,I=q*I+C%rt*rt+et[F]+S,S=(I/st|0)+(C/rt|0)+Z*N,et[F--]=I%st;et[F]=S}return S?++O:et.splice(0,1),V(y,et,O)},r.negated=function(){var y=new T(this);return y.s=-y.s||null,y},r.plus=function(y,E){var S,O=this,A=O.s;if(y=new T(y,E),E=y.s,!A||!E)return new T(NaN);if(A!=E)return y.s=-E,O.minus(y);var F=O.e/LOG_BASE,z=y.e/LOG_BASE,C=O.c,D=y.c;if(!F||!z){if(!C||!D)return new T(A/0);if(!C[0]||!D[0])return D[0]?y:new T(C[0]?O:A*0)}if(F=bitFloor(F),z=bitFloor(z),C=C.slice(),A=F-z){for(A>0?(z=F,S=D):(A=-A,S=C),S.reverse();A--;S.push(0));S.reverse()}for(A=C.length,E=D.length,A-E<0&&(S=D,D=C,C=S,E=A),A=0;E;)A=(C[--E]=C[E]+D[E]+A)/BASE|0,C[E]=BASE===C[E]?0:C[E]%BASE;return A&&(C=[A].concat(C),++z),V(y,C,z)},r.precision=r.sd=function(y,E){var S,O,A,F=this;if(y!=null&&y!==!!y)return intCheck(y,1,MAX),E==null?E=l:intCheck(E,0,8),K(new T(F),y,E);if(!(S=F.c))return null;if(A=S.length-1,O=A*LOG_BASE+1,A=S[A]){for(;A%10==0;A/=10,O--);for(A=S[0];A>=10;A/=10,O++);}return y&&F.e+1>O&&(O=F.e+1),O},r.shiftedBy=function(y){return intCheck(y,-MAX_SAFE_INTEGER$1,MAX_SAFE_INTEGER$1),this.times("1e"+y)},r.squareRoot=r.sqrt=function(){var y,E,S,O,A,F=this,z=F.c,C=F.s,D=F.e,I=o+4,N=new T("0.5");if(C!==1||!z||!z[0])return new T(!C||C<0&&(!z||z[0])?NaN:z?F:1/0);if(C=Math.sqrt(+U(F)),C==0||C==1/0?(E=coeffToString(z),(E.length+D)%2==0&&(E+="0"),C=Math.sqrt(+E),D=bitFloor((D+1)/2)-(D<0||D%2),C==1/0?E="5e"+D:(E=C.toExponential(),E=E.slice(0,E.indexOf("e")+1)+D),S=new T(E)):S=new T(C+""),S.c[0]){for(D=S.e,C=D+I,C<3&&(C=0);;)if(A=S,S=N.times(A.plus(t(F,A,I,1))),coeffToString(A.c).slice(0,C)===(E=coeffToString(S.c)).slice(0,C))if(S.e<D&&--C,E=E.slice(C-3,C+1),E=="9999"||!O&&E=="4999"){if(!O&&(K(A,A.e+o+2,0),A.times(A).eq(F))){S=A;break}I+=4,C+=4,O=1}else{(!+E||!+E.slice(1)&&E.charAt(0)=="5")&&(K(S,S.e+o+2,1),y=!S.times(S).eq(F));break}}return K(S,S.e+o+1,l,y)},r.toExponential=function(y,E){return y!=null&&(intCheck(y,0,MAX),y++),R(this,y,E,1)},r.toFixed=function(y,E){return y!=null&&(intCheck(y,0,MAX),y=y+this.e+1),R(this,y,E)},r.toFormat=function(y,E,S){var O,A=this;if(S==null)y!=null&&E&&typeof E=="object"?(S=E,E=null):y&&typeof y=="object"?(S=y,y=E=null):S=$;else if(typeof S!="object")throw Error(bignumberError+"Argument not an object: "+S);if(O=A.toFixed(y,E),A.c){var F,z=O.split("."),C=+S.groupSize,D=+S.secondaryGroupSize,I=S.groupSeparator||"",N=z[0],G=z[1],q=A.s<0,Z=q?N.slice(1):N,et=Z.length;if(D&&(F=C,C=D,D=F,et-=F),C>0&&et>0){for(F=et%C||C,N=Z.substr(0,F);F<et;F+=C)N+=I+Z.substr(F,C);D>0&&(N+=I+Z.slice(F)),q&&(N="-"+N)}O=G?N+(S.decimalSeparator||"")+((D=+S.fractionGroupSize)?G.replace(new RegExp("\\d{"+D+"}\\B","g"),"$&"+(S.fractionGroupSeparator||"")):G):N}return(S.prefix||"")+O+(S.suffix||"")},r.toFraction=function(y){var E,S,O,A,F,z,C,D,I,N,G,q,Z=this,et=Z.c;if(y!=null&&(C=new T(y),!C.isInteger()&&(C.c||C.s!==1)||C.lt(a)))throw Error(bignumberError+"Argument "+(C.isInteger()?"out of range: ":"not an integer: ")+U(C));if(!et)return new T(Z);for(E=new T(a),I=S=new T(a),O=D=new T(a),q=coeffToString(et),F=E.e=q.length-Z.e-1,E.c[0]=POWS_TEN[(z=F%LOG_BASE)<0?LOG_BASE+z:z],y=!y||C.comparedTo(E)>0?F>0?E:I:C,z=g,g=1/0,C=new T(q),D.c[0]=0;N=t(C,E,0,1),A=S.plus(N.times(O)),A.comparedTo(y)!=1;)S=O,O=A,I=D.plus(N.times(A=I)),D=A,E=C.minus(N.times(A=E)),C=A;return A=t(y.minus(S),O,0,1),D=D.plus(A.times(I)),S=S.plus(A.times(O)),D.s=I.s=Z.s,F=F*2,G=t(I,O,F,l).minus(Z).abs().comparedTo(t(D,S,F,l).minus(Z).abs())<1?[I,O]:[D,S],g=z,G},r.toNumber=function(){return+U(this)},r.toPrecision=function(y,E){return y!=null&&intCheck(y,1,MAX),R(this,y,E,2)},r.toString=function(y){var E,S=this,O=S.s,A=S.e;return A===null?O?(E="Infinity",O<0&&(E="-"+E)):E="NaN":(y==null?E=A<=u||A>=h?toExponential(coeffToString(S.c),A):toFixedPoint(coeffToString(S.c),A,"0"):y===10&&M?(S=K(new T(S),o+A+1,l),E=toFixedPoint(coeffToString(S.c),S.e,"0")):(intCheck(y,2,x.length,"Base"),E=n(toFixedPoint(coeffToString(S.c),A,"0"),10,y,O,!0)),O<0&&S.c[0]&&(E="-"+E)),E},r.valueOf=r.toJSON=function(){return U(this)},r._isBigNumber=!0,r[Symbol.toStringTag]="BigNumber",r[Symbol.for("nodejs.util.inspect.custom")]=r.valueOf,e!=null&&T.set(e),T}function bitFloor(e){var t=e|0;return e>0||e===t?t:t-1}function coeffToString(e){for(var t,n,i=1,r=e.length,a=e[0]+"";i<r;){for(t=e[i++]+"",n=LOG_BASE-t.length;n--;t="0"+t);a+=t}for(r=a.length;a.charCodeAt(--r)===48;);return a.slice(0,r+1||1)}function compare(e,t){var n,i,r=e.c,a=t.c,o=e.s,l=t.s,u=e.e,h=t.e;if(!o||!l)return null;if(n=r&&!r[0],i=a&&!a[0],n||i)return n?i?0:-l:o;if(o!=l)return o;if(n=o<0,i=u==h,!r||!a)return i?0:!r^n?1:-1;if(!i)return u>h^n?1:-1;for(l=(u=r.length)<(h=a.length)?u:h,o=0;o<l;o++)if(r[o]!=a[o])return r[o]>a[o]^n?1:-1;return u==h?0:u>h^n?1:-1}function intCheck(e,t,n,i){if(e<t||e>n||e!==mathfloor(e))throw Error(bignumberError+(i||"Argument")+(typeof e=="number"?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function isOdd(e){var t=e.c.length-1;return bitFloor(e.e/LOG_BASE)==t&&e.c[t]%2!=0}function toExponential(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function toFixedPoint(e,t,n){var i,r;if(t<0){for(r=n+".";++t;r+=n);e=r+e}else if(i=e.length,++t>i){for(r=n,t-=i;--t;r+=n);e+=r}else t<i&&(e=e.slice(0,t)+"."+e.slice(t));return e}var BigNumber=clone(),RoundingModeMap;(function(e){e[e.up=BigNumber.ROUND_UP]="up",e[e.down=BigNumber.ROUND_DOWN]="down",e[e.truncate=BigNumber.ROUND_DOWN]="truncate",e[e.halfUp=BigNumber.ROUND_HALF_UP]="halfUp",e[e.default=BigNumber.ROUND_HALF_UP]="default",e[e.halfDown=BigNumber.ROUND_HALF_DOWN]="halfDown",e[e.halfEven=BigNumber.ROUND_HALF_EVEN]="halfEven",e[e.banker=BigNumber.ROUND_HALF_EVEN]="banker",e[e.ceiling=BigNumber.ROUND_CEIL]="ceiling",e[e.ceil=BigNumber.ROUND_CEIL]="ceil",e[e.floor=BigNumber.ROUND_FLOOR]="floor"})(RoundingModeMap||(RoundingModeMap={}));function expandRoundMode(e){var t;return(t=RoundingModeMap[e])!==null&&t!==void 0?t:RoundingModeMap.default}var MAX_SAFE_INTEGER=9007199254740991,nativeFloor=Math.floor;function baseRepeat$1(e,t){var n="";if(!e||t<1||t>MAX_SAFE_INTEGER)return n;do t%2&&(n+=e),t=nativeFloor(t/2),t&&(e+=e);while(t);return n}var _baseRepeat=baseRepeat$1,isFunction=isFunction_1,isLength$1=isLength_1;function isArrayLike$4(e){return e!=null&&isLength$1(e.length)&&!isFunction(e)}var isArrayLike_1=isArrayLike$4,eq$1=eq_1,isArrayLike$3=isArrayLike_1,isIndex$1=_isIndex,isObject$2=isObject_1;function isIterateeCall$3(e,t,n){if(!isObject$2(n))return!1;var i=typeof t;return(i=="number"?isArrayLike$3(n)&&isIndex$1(t,n.length):i=="string"&&t in n)?eq$1(n[t],e):!1}var _isIterateeCall=isIterateeCall$3,reWhitespace=/\s/;function trimmedEndIndex$1(e){for(var t=e.length;t--&&reWhitespace.test(e.charAt(t)););return t}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(e){return e&&e.slice(0,trimmedEndIndex(e)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,baseTrim=_baseTrim,isObject$1=isObject_1,isSymbol$1=isSymbol_1,NAN=0/0,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$1(e){if(typeof e=="number")return e;if(isSymbol$1(e))return NAN;if(isObject$1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=isObject$1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=baseTrim(e);var n=reIsBinary.test(e);return n||reIsOctal.test(e)?freeParseInt(e.slice(2),n?2:8):reIsBadHex.test(e)?NAN:+e}var toNumber_1=toNumber$1,toNumber=toNumber_1,INFINITY$1=1/0,MAX_INTEGER=17976931348623157e292;function toFinite$2(e){if(!e)return e===0?e:0;if(e=toNumber(e),e===INFINITY$1||e===-INFINITY$1){var t=e<0?-1:1;return t*MAX_INTEGER}return e===e?e:0}var toFinite_1=toFinite$2,toFinite$1=toFinite_1;function toInteger$1(e){var t=toFinite$1(e),n=t%1;return t===t?n?t-n:t:0}var toInteger_1=toInteger$1,baseRepeat=_baseRepeat,isIterateeCall$2=_isIterateeCall,toInteger=toInteger_1,toString=toString_1;function repeat(e,t,n){return(n?isIterateeCall$2(e,t,n):t===void 0)?t=1:t=toInteger(t),baseRepeat(toString(e),t)}var repeat_1=repeat;const repeat$1=getDefaultExportFromCjs(repeat_1);function digitCount(e){return e.isZero()?1:Math.floor(Math.log10(e.abs().toNumber())+1)}function getAbsolutePrecision(e,{precision:t,significant:n}){return n&&t!==null&&t>0?t-digitCount(e):t}function roundNumber(e,t){const n=getAbsolutePrecision(e,t);if(n===null)return e.toString();const i=expandRoundMode(t.roundMode);if(n>=0)return e.toFixed(n,i);const r=Math.pow(10,Math.abs(n));return e=new BigNumber(e.div(r).toFixed(0,i)).times(r),e.toString()}function replaceInFormat(e,{formattedNumber:t,unit:n}){return e.replace("%n",t).replace("%u",n)}function computeSignificand({significand:e,whole:t,precision:n}){if(t==="0"||n===null)return e;const i=Math.max(0,n-t.length);return(e??"").substr(0,i)}function formatNumber(e,t){var n,i,r;const a=new BigNumber(e);if(t.raise&&!a.isFinite())throw new Error(`"${e}" is not a valid numeric value`);const o=roundNumber(a,t),l=new BigNumber(o),u=l.lt(0),h=l.isZero();let[m,g]=o.split(".");const _=[];let v;const w=(n=t.format)!==null&&n!==void 0?n:"%n",$=(i=t.negativeFormat)!==null&&i!==void 0?i:`-${w}`,x=u&&!h?$:w;for(m=m.replace("-","");m.length>0;)_.unshift(m.substr(Math.max(0,m.length-3),3)),m=m.substr(0,m.length-3);return m=_.join(""),v=_.join(t.delimiter),t.significant?g=computeSignificand({whole:m,significand:g,precision:t.precision}):g=g??repeat$1("0",(r=t.precision)!==null&&r!==void 0?r:0),t.stripInsignificantZeros&&g&&(g=g.replace(/0+$/,"")),a.isNaN()&&(v=e.toString()),g&&a.isFinite()&&(v+=(t.separator||".")+g),replaceInFormat(x,{formattedNumber:v,unit:t.unit})}function getFullScope(e,t,n){let i="";return(t instanceof String||typeof t=="string")&&(i=t),t instanceof Array&&(i=t.join(e.defaultSeparator)),n.scope&&(i=[n.scope,i].join(e.defaultSeparator)),i}function inferType(e){var t,n;if(e===null)return"null";const i=typeof e;return i!=="object"?i:((n=(t=e==null?void 0:e.constructor)===null||t===void 0?void 0:t.name)===null||n===void 0?void 0:n.toLowerCase())||"object"}function interpolate(e,t,n){n=Object.keys(n).reduce((r,a)=>(r[e.transformKey(a)]=n[a],r),{});const i=t.match(e.placeholder);if(!i)return t;for(;i.length;){let r;const a=i.shift(),o=a.replace(e.placeholder,"$1");isSet(n[o])?r=n[o].toString().replace(/\$/gm,"_#$#_"):o in n?r=e.nullPlaceholder(e,a,t,n):r=e.missingPlaceholder(e,a,t,n);const l=new RegExp(a.replace(/\{/gm,"\\{").replace(/\}/gm,"\\}"));t=t.replace(l,r)}return t.replace(/_#\$#_/g,"$")}function lookup(e,t,n={}){n=Object.assign({},n);const i="locale"in n?n.locale:e.locale,r=inferType(i),a=e.locales.get(r==="string"?i:typeof i).slice();t=getFullScope(e,t,n).split(e.defaultSeparator).map(l=>e.transformKey(l)).join(".");const o=a.map(l=>get$2(e.translations,[l,t].join(".")));return o.push(n.defaultValue),o.find(l=>isSet(l))}function numberToDelimited(e,t){const n=new BigNumber(e);if(!n.isFinite())return e.toString();if(!t.delimiterPattern.global)throw new Error(`options.delimiterPattern must be a global regular expression; received ${t.delimiterPattern}`);let[i,r]=n.toString().split(".");return i=i.replace(t.delimiterPattern,a=>`${a}${t.delimiter}`),[i,r].filter(Boolean).join(t.separator)}function arrayPush$2(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}var _arrayPush=arrayPush$2,Symbol$2=_Symbol,isArguments$1=isArguments_1,isArray$5=isArray_1,spreadableSymbol=Symbol$2?Symbol$2.isConcatSpreadable:void 0;function isFlattenable$1(e){return isArray$5(e)||isArguments$1(e)||!!(spreadableSymbol&&e&&e[spreadableSymbol])}var _isFlattenable=isFlattenable$1,arrayPush$1=_arrayPush,isFlattenable=_isFlattenable;function baseFlatten$2(e,t,n,i,r){var a=-1,o=e.length;for(n||(n=isFlattenable),r||(r=[]);++a<o;){var l=e[a];t>0&&n(l)?t>1?baseFlatten$2(l,t-1,n,i,r):arrayPush$1(r,l):i||(r[r.length]=l)}return r}var _baseFlatten=baseFlatten$2,ListCache$2=_ListCache;function stackClear$1(){this.__data__=new ListCache$2,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var _stackDelete=stackDelete$1;function stackGet$1(e){return this.__data__.get(e)}var _stackGet=stackGet$1;function stackHas$1(e){return this.__data__.has(e)}var _stackHas=stackHas$1,ListCache$1=_ListCache,Map$2=_Map,MapCache=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(e,t){var n=this.__data__;if(n instanceof ListCache$1){var i=n.__data__;if(!Map$2||i.length<LARGE_ARRAY_SIZE-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new MapCache(i)}return n.set(e,t),this.size=n.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$2(e){var t=this.__data__=new ListCache(e);this.size=t.size}Stack$2.prototype.clear=stackClear;Stack$2.prototype.delete=stackDelete;Stack$2.prototype.get=stackGet;Stack$2.prototype.has=stackHas;Stack$2.prototype.set=stackSet;var _Stack=Stack$2;function arraySome$1(e,t){for(var n=-1,i=e==null?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var _arraySome=arraySome$1,SetCache=_SetCache,arraySome=_arraySome,cacheHas=_cacheHas,COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays$2(e,t,n,i,r,a){var o=n&COMPARE_PARTIAL_FLAG$5,l=e.length,u=t.length;if(l!=u&&!(o&&u>l))return!1;var h=a.get(e),m=a.get(t);if(h&&m)return h==t&&m==e;var g=-1,_=!0,v=n&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(a.set(e,t),a.set(t,e);++g<l;){var w=e[g],$=t[g];if(i)var x=o?i($,w,g,t,e,a):i(w,$,g,e,t,a);if(x!==void 0){if(x)continue;_=!1;break}if(v){if(!arraySome(t,function(M,T){if(!cacheHas(v,T)&&(w===M||r(w,M,n,i,a)))return v.push(T)})){_=!1;break}}else if(!(w===$||r(w,$,n,i,a))){_=!1;break}}return a.delete(e),a.delete(t),_}var _equalArrays=equalArrays$2,root$3=_root,Uint8Array$2=root$3.Uint8Array,_Uint8Array=Uint8Array$2;function mapToArray$1(e){var t=-1,n=Array(e.size);return e.forEach(function(i,r){n[++t]=[r,i]}),n}var _mapToArray=mapToArray$1,Symbol$1=_Symbol,Uint8Array$1=_Uint8Array,eq=eq_1,equalArrays$1=_equalArrays,mapToArray=_mapToArray,setToArray=_setToArray,COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",mapTag$2="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag="[object Symbol]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]",symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag$1(e,t,n,i,r,a,o){switch(n){case dataViewTag$2:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case arrayBufferTag$1:return!(e.byteLength!=t.byteLength||!a(new Uint8Array$1(e),new Uint8Array$1(t)));case boolTag$1:case dateTag$1:case numberTag$1:return eq(+e,+t);case errorTag$1:return e.name==t.name&&e.message==t.message;case regexpTag$1:case stringTag$1:return e==t+"";case mapTag$2:var l=mapToArray;case setTag$2:var u=i&COMPARE_PARTIAL_FLAG$4;if(l||(l=setToArray),e.size!=t.size&&!u)return!1;var h=o.get(e);if(h)return h==t;i|=COMPARE_UNORDERED_FLAG$2,o.set(e,t);var m=equalArrays$1(l(e),l(t),i,r,a,o);return o.delete(e),m;case symbolTag:if(symbolValueOf)return symbolValueOf.call(e)==symbolValueOf.call(t)}return!1}var _equalByTag=equalByTag$1,arrayPush=_arrayPush,isArray$4=isArray_1;function baseGetAllKeys$1(e,t,n){var i=t(e);return isArray$4(e)?i:arrayPush(i,n(e))}var _baseGetAllKeys=baseGetAllKeys$1;function arrayFilter$1(e,t){for(var n=-1,i=e==null?0:e.length,r=0,a=[];++n<i;){var o=e[n];t(o,n,e)&&(a[r++]=o)}return a}var _arrayFilter=arrayFilter$1;function stubArray$1(){return[]}var stubArray_1=stubArray$1,arrayFilter=_arrayFilter,stubArray=stubArray_1,objectProto$5=Object.prototype,propertyIsEnumerable=objectProto$5.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols$1=nativeGetSymbols?function(e){return e==null?[]:(e=Object(e),arrayFilter(nativeGetSymbols(e),function(t){return propertyIsEnumerable.call(e,t)}))}:stubArray,_getSymbols=getSymbols$1;function baseTimes$1(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}var _baseTimes=baseTimes$1,isBuffer$2={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse;isBuffer$2.exports;(function(e,t){var n=_root,i=stubFalse_1,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===r,l=o?n.Buffer:void 0,u=l?l.isBuffer:void 0,h=u||i;e.exports=h})(isBuffer$2,isBuffer$2.exports);var isBufferExports=isBuffer$2.exports,baseGetTag$1=_baseGetTag,isLength=isLength_1,isObjectLike$1=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag$1="[object Map]",numberTag="[object Number]",objectTag$2="[object Object]",regexpTag="[object RegExp]",setTag$1="[object Set]",stringTag="[object String]",weakMapTag$1="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag$1]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag$1]=typedArrayTags[numberTag]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag]=typedArrayTags[setTag$1]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag$1]=!1;function baseIsTypedArray$1(e){return isObjectLike$1(e)&&isLength(e.length)&&!!typedArrayTags[baseGetTag$1(e)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$2(e){return function(t){return e(t)}}var _baseUnary=baseUnary$2,_nodeUtil={exports:{}};_nodeUtil.exports;(function(e,t){var n=_freeGlobal,i=t&&!t.nodeType&&t,r=i&&!0&&e&&!e.nodeType&&e,a=r&&r.exports===i,o=a&&n.process,l=function(){try{var u=r&&r.require&&r.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary$1=_baseUnary,nodeUtil=_nodeUtilExports,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray$2=nodeIsTypedArray?baseUnary$1(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$2,baseTimes=_baseTimes,isArguments=isArguments_1,isArray$3=isArray_1,isBuffer$1=isBufferExports,isIndex=_isIndex,isTypedArray$1=isTypedArray_1,objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty;function arrayLikeKeys$1(e,t){var n=isArray$3(e),i=!n&&isArguments(e),r=!n&&!i&&isBuffer$1(e),a=!n&&!i&&!r&&isTypedArray$1(e),o=n||i||r||a,l=o?baseTimes(e.length,String):[],u=l.length;for(var h in e)(t||hasOwnProperty$3.call(e,h))&&!(o&&(h=="length"||r&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||isIndex(h,u)))&&l.push(h);return l}var _arrayLikeKeys=arrayLikeKeys$1,objectProto$3=Object.prototype;function isPrototype$1(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||objectProto$3;return e===n}var _isPrototype=isPrototype$1;function overArg$1(e,t){return function(n){return e(t(n))}}var _overArg=overArg$1,overArg=_overArg,nativeKeys$1=overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype=_isPrototype,nativeKeys=_nativeKeys,objectProto$2=Object.prototype,hasOwnProperty$2=objectProto$2.hasOwnProperty;function baseKeys$1(e){if(!isPrototype(e))return nativeKeys(e);var t=[];for(var n in Object(e))hasOwnProperty$2.call(e,n)&&n!="constructor"&&t.push(n);return t}var _baseKeys=baseKeys$1,arrayLikeKeys=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$2=isArrayLike_1;function keys$3(e){return isArrayLike$2(e)?arrayLikeKeys(e):baseKeys(e)}var keys_1=keys$3,baseGetAllKeys=_baseGetAllKeys,getSymbols=_getSymbols,keys$2=keys_1;function getAllKeys$1(e){return baseGetAllKeys(e,keys$2,getSymbols)}var _getAllKeys=getAllKeys$1,getAllKeys=_getAllKeys,COMPARE_PARTIAL_FLAG$3=1,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function equalObjects$1(e,t,n,i,r,a){var o=n&COMPARE_PARTIAL_FLAG$3,l=getAllKeys(e),u=l.length,h=getAllKeys(t),m=h.length;if(u!=m&&!o)return!1;for(var g=u;g--;){var _=l[g];if(!(o?_ in t:hasOwnProperty$1.call(t,_)))return!1}var v=a.get(e),w=a.get(t);if(v&&w)return v==t&&w==e;var $=!0;a.set(e,t),a.set(t,e);for(var x=o;++g<u;){_=l[g];var M=e[_],T=t[_];if(i)var R=o?i(T,M,_,t,e,a):i(M,T,_,e,t,a);if(!(R===void 0?M===T||r(M,T,n,i,a):R)){$=!1;break}x||(x=_=="constructor")}if($&&!x){var W=e.constructor,V=t.constructor;W!=V&&"constructor"in e&&"constructor"in t&&!(typeof W=="function"&&W instanceof W&&typeof V=="function"&&V instanceof V)&&($=!1)}return a.delete(e),a.delete(t),$}var _equalObjects=equalObjects$1,getNative$2=_getNative,root$2=_root,DataView$1=getNative$2(root$2,"DataView"),_DataView=DataView$1,getNative$1=_getNative,root$1=_root,Promise$2=getNative$1(root$1,"Promise"),_Promise=Promise$2,getNative=_getNative,root=_root,WeakMap$2=getNative(root,"WeakMap"),_WeakMap=WeakMap$2,DataView=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap$1=_WeakMap,baseGetTag=_baseGetTag,toSource=_toSource,mapTag="[object Map]",objectTag$1="[object Object]",promiseTag="[object Promise]",setTag="[object Set]",weakMapTag="[object WeakMap]",dataViewTag="[object DataView]",dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag$1=baseGetTag;(DataView&&getTag$1(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map$1&&getTag$1(new Map$1)!=mapTag||Promise$1&&getTag$1(Promise$1.resolve())!=promiseTag||Set$1&&getTag$1(new Set$1)!=setTag||WeakMap$1&&getTag$1(new WeakMap$1)!=weakMapTag)&&(getTag$1=function(e){var t=baseGetTag(e),n=t==objectTag$1?e.constructor:void 0,i=n?toSource(n):"";if(i)switch(i){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag}return t});var _getTag=getTag$1,Stack$1=_Stack,equalArrays=_equalArrays,equalByTag=_equalByTag,equalObjects=_equalObjects,getTag=_getTag,isArray$2=isArray_1,isBuffer=isBufferExports,isTypedArray=isTypedArray_1,COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function baseIsEqualDeep$1(e,t,n,i,r,a){var o=isArray$2(e),l=isArray$2(t),u=o?arrayTag:getTag(e),h=l?arrayTag:getTag(t);u=u==argsTag?objectTag:u,h=h==argsTag?objectTag:h;var m=u==objectTag,g=h==objectTag,_=u==h;if(_&&isBuffer(e)){if(!isBuffer(t))return!1;o=!0,m=!1}if(_&&!m)return a||(a=new Stack$1),o||isTypedArray(e)?equalArrays(e,t,n,i,r,a):equalByTag(e,t,u,n,i,r,a);if(!(n&COMPARE_PARTIAL_FLAG$2)){var v=m&&hasOwnProperty.call(e,"__wrapped__"),w=g&&hasOwnProperty.call(t,"__wrapped__");if(v||w){var $=v?e.value():e,x=w?t.value():t;return a||(a=new Stack$1),r($,x,n,i,a)}}return _?(a||(a=new Stack$1),equalObjects(e,t,n,i,r,a)):!1}var _baseIsEqualDeep=baseIsEqualDeep$1,baseIsEqualDeep=_baseIsEqualDeep,isObjectLike=isObjectLike_1;function baseIsEqual$2(e,t,n,i,r){return e===t?!0:e==null||t==null||!isObjectLike(e)&&!isObjectLike(t)?e!==e&&t!==t:baseIsEqualDeep(e,t,n,i,baseIsEqual$2,r)}var _baseIsEqual=baseIsEqual$2,Stack=_Stack,baseIsEqual$1=_baseIsEqual,COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch$1(e,t,n,i){var r=n.length,a=r,o=!i;if(e==null)return!a;for(e=Object(e);r--;){var l=n[r];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++r<a;){l=n[r];var u=l[0],h=e[u],m=l[1];if(o&&l[2]){if(h===void 0&&!(u in e))return!1}else{var g=new Stack;if(i)var _=i(h,m,u,e,t,g);if(!(_===void 0?baseIsEqual$1(m,h,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,i,g):_))return!1}}return!0}var _baseIsMatch=baseIsMatch$1,isObject=isObject_1;function isStrictComparable$2(e){return e===e&&!isObject(e)}var _isStrictComparable=isStrictComparable$2,isStrictComparable$1=_isStrictComparable,keys$1=keys_1;function getMatchData$1(e){for(var t=keys$1(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,isStrictComparable$1(r)]}return t}var _getMatchData=getMatchData$1;function matchesStrictComparable$2(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var _matchesStrictComparable=matchesStrictComparable$2,baseIsMatch=_baseIsMatch,getMatchData=_getMatchData,matchesStrictComparable$1=_matchesStrictComparable;function baseMatches$1(e){var t=getMatchData(e);return t.length==1&&t[0][2]?matchesStrictComparable$1(t[0][0],t[0][1]):function(n){return n===e||baseIsMatch(n,e,t)}}var _baseMatches=baseMatches$1;function baseHasIn$1(e,t){return e!=null&&t in Object(e)}var _baseHasIn=baseHasIn$1,baseHasIn=_baseHasIn,hasPath=_hasPath;function hasIn$1(e,t){return e!=null&&hasPath(e,t,baseHasIn)}var hasIn_1=hasIn$1,baseIsEqual=_baseIsEqual,get=get_1,hasIn=hasIn_1,isKey$1=_isKey,isStrictComparable=_isStrictComparable,matchesStrictComparable=_matchesStrictComparable,toKey$1=_toKey,COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty$1(e,t){return isKey$1(e)&&isStrictComparable(t)?matchesStrictComparable(toKey$1(e),t):function(n){var i=get(n,e);return i===void 0&&i===t?hasIn(n,e):baseIsEqual(t,i,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}var _baseMatchesProperty=baseMatchesProperty$1;function identity$4(e){return e}var identity_1=identity$4;function baseProperty$1(e){return function(t){return t==null?void 0:t[e]}}var _baseProperty=baseProperty$1,baseGet$1=_baseGet;function basePropertyDeep$1(e){return function(t){return baseGet$1(t,e)}}var _basePropertyDeep=basePropertyDeep$1,baseProperty=_baseProperty,basePropertyDeep=_basePropertyDeep,isKey=_isKey,toKey=_toKey;function property$1(e){return isKey(e)?baseProperty(toKey(e)):basePropertyDeep(e)}var property_1=property$1,baseMatches=_baseMatches,baseMatchesProperty=_baseMatchesProperty,identity$3=identity_1,isArray$1=isArray_1,property=property_1;function baseIteratee$1(e){return typeof e=="function"?e:e==null?identity$3:typeof e=="object"?isArray$1(e)?baseMatchesProperty(e[0],e[1]):baseMatches(e):property(e)}var _baseIteratee=baseIteratee$1;function createBaseFor$1(e){return function(t,n,i){for(var r=-1,a=Object(t),o=i(t),l=o.length;l--;){var u=o[e?l:++r];if(n(a[u],u,a)===!1)break}return t}}var _createBaseFor=createBaseFor$1,createBaseFor=_createBaseFor,baseFor$1=createBaseFor(),_baseFor=baseFor$1,baseFor=_baseFor,keys=keys_1;function baseForOwn$1(e,t){return e&&baseFor(e,t,keys)}var _baseForOwn=baseForOwn$1,isArrayLike$1=isArrayLike_1;function createBaseEach$1(e,t){return function(n,i){if(n==null)return n;if(!isArrayLike$1(n))return e(n,i);for(var r=n.length,a=t?r:-1,o=Object(n);(t?a--:++a<r)&&i(o[a],a,o)!==!1;);return n}}var _createBaseEach=createBaseEach$1,baseForOwn=_baseForOwn,createBaseEach=_createBaseEach,baseEach$1=createBaseEach(baseForOwn),_baseEach=baseEach$1,baseEach=_baseEach,isArrayLike=isArrayLike_1;function baseMap$1(e,t){var n=-1,i=isArrayLike(e)?Array(e.length):[];return baseEach(e,function(r,a,o){i[++n]=t(r,a,o)}),i}var _baseMap=baseMap$1;function baseSortBy$1(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var _baseSortBy=baseSortBy$1,isSymbol=isSymbol_1;function compareAscending$1(e,t){if(e!==t){var n=e!==void 0,i=e===null,r=e===e,a=isSymbol(e),o=t!==void 0,l=t===null,u=t===t,h=isSymbol(t);if(!l&&!h&&!a&&e>t||a&&o&&u&&!l&&!h||i&&o&&u||!n&&u||!r)return 1;if(!i&&!a&&!h&&e<t||h&&n&&r&&!i&&!a||l&&n&&r||!o&&r||!u)return-1}return 0}var _compareAscending=compareAscending$1,compareAscending=_compareAscending;function compareMultiple$1(e,t,n){for(var i=-1,r=e.criteria,a=t.criteria,o=r.length,l=n.length;++i<o;){var u=compareAscending(r[i],a[i]);if(u){if(i>=l)return u;var h=n[i];return u*(h=="desc"?-1:1)}}return e.index-t.index}var _compareMultiple=compareMultiple$1,arrayMap=_arrayMap,baseGet=_baseGet,baseIteratee=_baseIteratee,baseMap=_baseMap,baseSortBy=_baseSortBy,baseUnary=_baseUnary,compareMultiple=_compareMultiple,identity$2=identity_1,isArray=isArray_1;function baseOrderBy$1(e,t,n){t.length?t=arrayMap(t,function(a){return isArray(a)?function(o){return baseGet(o,a.length===1?a[0]:a)}:a}):t=[identity$2];var i=-1;t=arrayMap(t,baseUnary(baseIteratee));var r=baseMap(e,function(a,o,l){var u=arrayMap(t,function(h){return h(a)});return{criteria:u,index:++i,value:a}});return baseSortBy(r,function(a,o){return compareMultiple(a,o,n)})}var _baseOrderBy=baseOrderBy$1;function apply$1(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var _apply=apply$1,apply=_apply,nativeMax$1=Math.max;function overRest$1(e,t,n){return t=nativeMax$1(t===void 0?e.length-1:t,0),function(){for(var i=arguments,r=-1,a=nativeMax$1(i.length-t,0),o=Array(a);++r<a;)o[r]=i[t+r];r=-1;for(var l=Array(t+1);++r<t;)l[r]=i[r];return l[t]=n(o),apply(e,this,l)}}var _overRest=overRest$1;function constant$1(e){return function(){return e}}var constant_1=constant$1,constant=constant_1,defineProperty=_defineProperty,identity$1=identity_1,baseSetToString$1=defineProperty?function(e,t){return defineProperty(e,"toString",{configurable:!0,enumerable:!1,value:constant(t),writable:!0})}:identity$1,_baseSetToString=baseSetToString$1,HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut$1(e){var t=0,n=0;return function(){var i=nativeNow(),r=HOT_SPAN-(i-n);if(n=i,r>0){if(++t>=HOT_COUNT)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var _shortOut=shortOut$1,baseSetToString=_baseSetToString,shortOut=_shortOut,setToString$1=shortOut(baseSetToString),_setToString=setToString$1,identity=identity_1,overRest=_overRest,setToString=_setToString;function baseRest$1(e,t){return setToString(overRest(e,t,identity),e+"")}var _baseRest=baseRest$1,baseFlatten$1=_baseFlatten,baseOrderBy=_baseOrderBy,baseRest=_baseRest,isIterateeCall$1=_isIterateeCall,sortBy=baseRest(function(e,t){if(e==null)return[];var n=t.length;return n>1&&isIterateeCall$1(e,t[0],t[1])?t=[]:n>2&&isIterateeCall$1(t[0],t[1],t[2])&&(t=[t[0]]),baseOrderBy(e,baseFlatten$1(t,1),[])}),sortBy_1=sortBy;const sortBy$1=getDefaultExportFromCjs(sortBy_1);function baseZipObject$1(e,t,n){for(var i=-1,r=e.length,a=t.length,o={};++i<r;){var l=i<a?t[i]:void 0;n(o,e[i],l)}return o}var _baseZipObject=baseZipObject$1,assignValue=_assignValue,baseZipObject=_baseZipObject;function zipObject(e,t){return baseZipObject(e||[],t||[],assignValue)}var zipObject_1=zipObject;const zipObject$1=getDefaultExportFromCjs(zipObject_1),DECIMAL_UNITS={0:"unit",1:"ten",2:"hundred",3:"thousand",6:"million",9:"billion",12:"trillion",15:"quadrillion","-1":"deci","-2":"centi","-3":"mili","-6":"micro","-9":"nano","-12":"pico","-15":"femto"},INVERTED_DECIMAL_UNITS=zipObject$1(Object.values(DECIMAL_UNITS),Object.keys(DECIMAL_UNITS).map(e=>parseInt(e,10)));function numberToHuman(e,t,n){const i={roundMode:n.roundMode,precision:n.precision,significant:n.significant};let r;if(inferType(n.units)==="string"){const g=n.units;if(r=lookup(e,g),!r)throw new Error(`The scope "${e.locale}${e.defaultSeparator}${getFullScope(e,g,{})}" couldn't be found`)}else r=n.units;let a=roundNumber(new BigNumber(t),i);const o=g=>sortBy$1(Object.keys(g).map(_=>INVERTED_DECIMAL_UNITS[_]),_=>_*-1),l=(g,_)=>{const v=g.isZero()?0:Math.floor(Math.log10(g.abs().toNumber()));return o(_).find(w=>v>=w)||0},u=(g,_)=>{const v=DECIMAL_UNITS[_.toString()];return g[v]||""},h=l(new BigNumber(a),r),m=u(r,h);if(a=roundNumber(new BigNumber(a).div(Math.pow(10,h)),i),n.stripInsignificantZeros){let[g,_]=a.split(".");_=(_||"").replace(/0+$/,""),a=g,_&&(a+=`${n.separator}${_}`)}return n.format.replace("%n",a||"0").replace("%u",m).trim()}const STORAGE_UNITS=["byte","kb","mb","gb","tb","pb","eb"];function numberToHumanSize(e,t,n){const i=expandRoundMode(n.roundMode),r=1024,a=new BigNumber(t).abs(),o=a.lt(r);let l;const u=(w,$)=>{const x=$.length-1,M=new BigNumber(Math.log(w.toNumber())).div(Math.log(r)).integerValue(BigNumber.ROUND_DOWN).toNumber();return Math.min(x,M)},h=w=>`number.human.storage_units.units.${o?"byte":w[m]}`,m=u(a,STORAGE_UNITS);o?l=a.integerValue():l=new BigNumber(roundNumber(a.div(Math.pow(r,m)),{significant:n.significant,precision:n.precision,roundMode:n.roundMode}));const g=e.translate("number.human.storage_units.format",{defaultValue:"%n %u"}),_=e.translate(h(STORAGE_UNITS),{count:a.integerValue().toNumber()});let v=l.toFixed(n.precision,i);return n.stripInsignificantZeros&&(v=v.replace(/(\..*?)0+$/,"$1").replace(/\.$/,"")),g.replace("%n",v).replace("%u",_)}function parseDate(e){if(e instanceof Date)return e;if(typeof e=="number"){const i=new Date;return i.setTime(e),i}const t=new String(e).match(/(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}):(\d{2})(?:[.,](\d{1,3}))?)?(Z|\+00:?00)?/);if(t){const i=t.slice(1,8).map(_=>parseInt(_,10)||0);i[1]-=1;const[r,a,o,l,u,h,m]=i;return t[8]?new Date(Date.UTC(r,a,o,l,u,h,m)):new Date(r,a,o,l,u,h,m)}e.match(/([A-Z][a-z]{2}) ([A-Z][a-z]{2}) (\d+) (\d+:\d+:\d+) ([+-]\d+) (\d+)/)&&new Date().setTime(Date.parse([RegExp.$1,RegExp.$2,RegExp.$3,RegExp.$6,RegExp.$4,RegExp.$5].join(" ")));const n=new Date;return n.setTime(Date.parse(e)),n}function pluralize({i18n:e,count:t,scope:n,options:i,baseScope:r}){i=Object.assign({},i);let a,o;if(typeof n=="object"&&n?a=n:a=lookup(e,n,i),!a)return e.missingTranslation.get(n,i);const u=e.pluralization.get(i.locale)(e,t),h=[];for(;u.length;){const m=u.shift();if(isSet(a[m])){o=a[m];break}h.push(m)}return isSet(o)?(i.count=t,e.interpolate(e,o,i)):e.missingTranslation.get(r.split(e.defaultSeparator).concat([h[0]]),i)}var baseFlatten=_baseFlatten,INFINITY=1/0;function flattenDeep(e){var t=e==null?0:e.length;return t?baseFlatten(e,INFINITY):[]}var flattenDeep_1=flattenDeep;const flattenDeep$1=getDefaultExportFromCjs(flattenDeep_1);class PropertyFlatList{constructor(t){this.target=t}call(){const t=flattenDeep$1(Object.keys(this.target).map(n=>this.compute(this.target[n],n)));return t.sort(),t}compute(t,n){return!Array.isArray(t)&&isObject$7(t)?Object.keys(t).map(i=>this.compute(t[i],`${n}.${i}`)):n}}function propertyFlatList(e){return new PropertyFlatList(e).call()}const DEFAULT_OPTIONS={meridian:{am:"AM",pm:"PM"},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbrDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],monthNames:[null,"January","February","March","April","May","June","July","August","September","October","November","December"],abbrMonthNames:[null,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]};function strftime(e,t,n={}){const{abbrDayNames:i,dayNames:r,abbrMonthNames:a,monthNames:o,meridian:l}=Object.assign(Object.assign({},DEFAULT_OPTIONS),n);if(isNaN(e.getTime()))throw new Error("strftime() requires a valid date object, but received an invalid date.");const u=e.getDay(),h=e.getDate(),m=e.getFullYear(),g=e.getMonth()+1,_=e.getHours();let v=_;const w=_>11?"pm":"am",$=e.getSeconds(),x=e.getMinutes(),M=e.getTimezoneOffset(),T=Math.floor(Math.abs(M/60)),R=Math.abs(M)-T*60,W=(M>0?"-":"+")+(T.toString().length<2?"0"+T:T)+(R.toString().length<2?"0"+R:R);return v>12?v=v-12:v===0&&(v=12),t=t.replace("%a",i[u]),t=t.replace("%A",r[u]),t=t.replace("%b",a[g]),t=t.replace("%B",o[g]),t=t.replace("%d",h.toString().padStart(2,"0")),t=t.replace("%e",h.toString()),t=t.replace("%-d",h.toString()),t=t.replace("%H",_.toString().padStart(2,"0")),t=t.replace("%-H",_.toString()),t=t.replace("%k",_.toString()),t=t.replace("%I",v.toString().padStart(2,"0")),t=t.replace("%-I",v.toString()),t=t.replace("%l",v.toString()),t=t.replace("%m",g.toString().padStart(2,"0")),t=t.replace("%-m",g.toString()),t=t.replace("%M",x.toString().padStart(2,"0")),t=t.replace("%-M",x.toString()),t=t.replace("%p",l[w]),t=t.replace("%P",l[w].toLowerCase()),t=t.replace("%S",$.toString().padStart(2,"0")),t=t.replace("%-S",$.toString()),t=t.replace("%w",u.toString()),t=t.replace("%y",m.toString().padStart(2,"0").substr(-2)),t=t.replace("%-y",m.toString().padStart(2,"0").substr(-2).replace(/^0+/,"")),t=t.replace("%Y",m.toString()),t=t.replace(/%z/i,W),t}var nativeCeil=Math.ceil,nativeMax=Math.max;function baseRange$1(e,t,n,i){for(var r=-1,a=nativeMax(nativeCeil((t-e)/(n||1)),0),o=Array(a);a--;)o[i?a:++r]=e,e+=n;return o}var _baseRange=baseRange$1,baseRange=_baseRange,isIterateeCall=_isIterateeCall,toFinite=toFinite_1;function createRange$1(e){return function(t,n,i){return i&&typeof i!="number"&&isIterateeCall(t,n,i)&&(n=i=void 0),t=toFinite(t),n===void 0?(n=t,t=0):n=toFinite(n),i=i===void 0?t<n?1:-1:toFinite(i),baseRange(t,n,i,e)}}var _createRange=createRange$1,createRange=_createRange,range=createRange(),range_1=range;const range$1=getDefaultExportFromCjs(range_1),within=(e,t,n)=>n>=e&&n<=t;function timeAgoInWords(e,t,n,i={}){const r=i.scope||"datetime.distance_in_words",a=(U,y=0)=>e.t(U,{count:y,scope:r});t=parseDate(t),n=parseDate(n);let o=t.getTime()/1e3,l=n.getTime()/1e3;o>l&&([t,n,o,l]=[n,t,l,o]);const u=Math.round(l-o),h=Math.round((l-o)/60),g=h/60/24,_=Math.round(h/60),v=Math.round(g),w=Math.round(v/30);if(within(0,1,h))return i.includeSeconds?within(0,4,u)?a("less_than_x_seconds",5):within(5,9,u)?a("less_than_x_seconds",10):within(10,19,u)?a("less_than_x_seconds",20):within(20,39,u)?a("half_a_minute"):within(40,59,u)?a("less_than_x_minutes",1):a("x_minutes",1):h===0?a("less_than_x_minutes",1):a("x_minutes",h);if(within(2,44,h))return a("x_minutes",h);if(within(45,89,h))return a("about_x_hours",1);if(within(90,1439,h))return a("about_x_hours",_);if(within(1440,2519,h))return a("x_days",1);if(within(2520,43199,h))return a("x_days",v);if(within(43200,86399,h))return a("about_x_months",Math.round(h/43200));if(within(86400,525599,h))return a("x_months",w);let $=t.getFullYear();t.getMonth()+1>=3&&($+=1);let x=n.getFullYear();n.getMonth()+1<3&&(x-=1);const M=$>x?0:range$1($,x).filter(U=>new Date(U,1,29).getMonth()==1).length,T=525600,R=M*1440,W=h-R,V=Math.trunc(W/T),K=parseFloat((W/T-V).toPrecision(3));return K<.25?a("about_x_years",V):K<.75?a("over_x_years",V):a("almost_x_years",V+1)}const guessStrategy=function(e,t){t instanceof Array&&(t=t.join(e.defaultSeparator));const n=t.split(e.defaultSeparator).slice(-1)[0];return e.missingTranslationPrefix+n.replace("_"," ").replace(/([a-z])([A-Z])/g,(i,r,a)=>`${r} ${a.toLowerCase()}`)},messageStrategy=(e,t,n)=>{const i=getFullScope(e,t,n),r="locale"in n?n.locale:e.locale,a=inferType(r);return`[missing "${[a=="string"?r:a,i].join(e.defaultSeparator)}" translation]`},errorStrategy=(e,t,n)=>{const i=getFullScope(e,t,n),r=[e.locale,i].join(e.defaultSeparator);throw new Error(`Missing translation: ${r}`)};class MissingTranslation{constructor(t){this.i18n=t,this.registry={},this.register("guess",guessStrategy),this.register("message",messageStrategy),this.register("error",errorStrategy)}register(t,n){this.registry[t]=n}get(t,n){var i;return this.registry[(i=n.missingBehavior)!==null&&i!==void 0?i:this.i18n.missingBehavior](this.i18n,t,n)}}var __awaiter=globalThis&&globalThis.__awaiter||function(e,t,n,i){function r(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function l(m){try{h(i.next(m))}catch(g){o(g)}}function u(m){try{h(i.throw(m))}catch(g){o(g)}}function h(m){m.done?a(m.value):r(m.value).then(l,u)}h((i=i.apply(e,t||[])).next())})};const DEFAULT_I18N_OPTIONS={defaultLocale:"en",availableLocales:["en"],locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,enableFallback:!1,missingBehavior:"message",missingTranslationPrefix:"",missingPlaceholder:(e,t)=>`[missing "${t}" value]`,nullPlaceholder:(e,t,n,i)=>e.missingPlaceholder(e,t,n,i),transformKey:e=>e};class I18n{constructor(t={},n={}){this._locale=DEFAULT_I18N_OPTIONS.locale,this._defaultLocale=DEFAULT_I18N_OPTIONS.defaultLocale,this._version=0,this.onChangeHandlers=[],this.translations={},this.availableLocales=[],this.t=this.translate,this.p=this.pluralize,this.l=this.localize,this.distanceOfTimeInWords=this.timeAgoInWords;const{locale:i,enableFallback:r,missingBehavior:a,missingTranslationPrefix:o,missingPlaceholder:l,nullPlaceholder:u,defaultLocale:h,defaultSeparator:m,placeholder:g,transformKey:_}=Object.assign(Object.assign({},DEFAULT_I18N_OPTIONS),n);this.locale=i,this.defaultLocale=h,this.defaultSeparator=m,this.enableFallback=r,this.locale=i,this.missingBehavior=a,this.missingTranslationPrefix=o,this.missingPlaceholder=l,this.nullPlaceholder=u,this.placeholder=g,this.pluralization=new Pluralization(this),this.locales=new Locales(this),this.missingTranslation=new MissingTranslation(this),this.transformKey=_,this.interpolate=interpolate,this.store(t)}store(t){propertyFlatList(t).forEach(i=>setWith$1(this.translations,i,get$2(t,i),Object)),this.hasChanged()}get locale(){return this._locale||this.defaultLocale||"en"}set locale(t){if(typeof t!="string")throw new Error(`Expected newLocale to be a string; got ${inferType(t)}`);const n=this._locale!==t;this._locale=t,n&&this.hasChanged()}get defaultLocale(){return this._defaultLocale||"en"}set defaultLocale(t){if(typeof t!="string")throw new Error(`Expected newLocale to be a string; got ${inferType(t)}`);const n=this._defaultLocale!==t;this._defaultLocale=t,n&&this.hasChanged()}translate(t,n){n=Object.assign({},n);const i=createTranslationOptions(this,t,n);let r;return i.some(o=>(isSet(o.scope)?r=lookup(this,o.scope,n):isSet(o.message)&&(r=o.message),r!=null))?(typeof r=="string"?r=this.interpolate(this,r,n):typeof r=="object"&&r&&isSet(n.count)&&(r=pluralize({i18n:this,count:n.count||0,scope:r,options:n,baseScope:getFullScope(this,t,n)})),n&&r instanceof Array&&(r=r.map(o=>typeof o=="string"?interpolate(this,o,n):o)),r):this.missingTranslation.get(t,n)}pluralize(t,n,i){return pluralize({i18n:this,count:t,scope:n,options:Object.assign({},i),baseScope:getFullScope(this,n,i??{})})}localize(t,n,i){if(i=Object.assign({},i),n==null)return"";switch(t){case"currency":return this.numberToCurrency(n);case"number":return formatNumber(n,Object.assign({delimiter:",",precision:3,separator:".",significant:!1,stripInsignificantZeros:!1},lookup(this,"number.format")));case"percentage":return this.numberToPercentage(n);default:{let r;return t.match(/^(date|time)/)?r=this.toTime(t,n):r=n.toString(),interpolate(this,r,i)}}}toTime(t,n){const i=parseDate(n),r=lookup(this,t);return i.toString().match(/invalid/i)||!r?i.toString():this.strftime(i,r)}numberToCurrency(t,n={}){return formatNumber(t,Object.assign(Object.assign(Object.assign({delimiter:",",format:"%u%n",precision:2,separator:".",significant:!1,stripInsignificantZeros:!1,unit:"$"},camelCaseKeys(this.get("number.format"))),camelCaseKeys(this.get("number.currency.format"))),n))}numberToPercentage(t,n={}){return formatNumber(t,Object.assign(Object.assign(Object.assign({delimiter:"",format:"%n%",precision:3,stripInsignificantZeros:!1,separator:".",significant:!1},camelCaseKeys(this.get("number.format"))),camelCaseKeys(this.get("number.percentage.format"))),n))}numberToHumanSize(t,n={}){return numberToHumanSize(this,t,Object.assign(Object.assign(Object.assign({delimiter:"",precision:3,significant:!0,stripInsignificantZeros:!0,units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},camelCaseKeys(this.get("number.human.format"))),camelCaseKeys(this.get("number.human.storage_units"))),n))}numberToHuman(t,n={}){return numberToHuman(this,t,Object.assign(Object.assign(Object.assign({delimiter:"",separator:".",precision:3,significant:!0,stripInsignificantZeros:!0,format:"%n %u",roundMode:"default",units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},camelCaseKeys(this.get("number.human.format"))),camelCaseKeys(this.get("number.human.decimal_units"))),n))}numberToRounded(t,n){return formatNumber(t,Object.assign({unit:"",precision:3,significant:!1,separator:".",delimiter:"",stripInsignificantZeros:!1},n))}numberToDelimited(t,n={}){return numberToDelimited(t,Object.assign({delimiterPattern:/(\d)(?=(\d\d\d)+(?!\d))/g,delimiter:",",separator:"."},n))}withLocale(t,n){return __awaiter(this,void 0,void 0,function*(){const i=this.locale;try{this.locale=t,yield n()}finally{this.locale=i}})}strftime(t,n,i={}){return strftime(t,n,Object.assign(Object.assign(Object.assign({},camelCaseKeys(lookup(this,"date"))),{meridian:{am:lookup(this,"time.am")||"AM",pm:lookup(this,"time.pm")||"PM"}}),i))}update(t,n,i={strict:!1}){if(i.strict&&!has$1(this.translations,t))throw new Error(`The path "${t}" is not currently defined`);const r=get$2(this.translations,t),a=inferType(r),o=inferType(n);if(i.strict&&a!==o)throw new Error(`The current type for "${t}" is "${a}", but you're trying to override it with "${o}"`);let l;o==="object"?l=Object.assign(Object.assign({},r),n):l=n,set$1(this.translations,t,l),this.hasChanged()}toSentence(t,n={}){const{wordsConnector:i,twoWordsConnector:r,lastWordConnector:a}=Object.assign(Object.assign({wordsConnector:", ",twoWordsConnector:" and ",lastWordConnector:", and "},camelCaseKeys(lookup(this,"support.array"))),n),o=t.length;switch(o){case 0:return"";case 1:return`${t[0]}`;case 2:return t.join(r);default:return[t.slice(0,o-1).join(i),a,t[o-1]].join("")}}timeAgoInWords(t,n,i={}){return timeAgoInWords(this,t,n,i)}onChange(t){return this.onChangeHandlers.push(t),()=>{this.onChangeHandlers.splice(this.onChangeHandlers.indexOf(t),1)}}get version(){return this._version}formatNumber(t,n){return formatNumber(t,n)}get(t){return lookup(this,t)}runCallbacks(){this.onChangeHandlers.forEach(t=>t(this))}hasChanged(){this._version+=1,this.runCallbacks()}}/*!
+`):e}function createTooltipItem(e,t){const{element:n,datasetIndex:i,index:r}=t,a=e.getDatasetMeta(i).controller,{label:o,value:l}=a.getLabelAndValue(r);return{chart:e,label:o,parsed:a.getParsed(r),raw:e.data.datasets[i].data[r],formattedValue:l,dataset:a.getDataset(),dataIndex:r,datasetIndex:i,element:n}}function getTooltipSize(e,t){const n=e.chart.ctx,{body:i,footer:r,title:a}=e,{boxWidth:o,boxHeight:l}=t,u=toFont(t.bodyFont),d=toFont(t.titleFont),m=toFont(t.footerFont),g=a.length,_=r.length,v=i.length,w=toPadding(t.padding);let E=w.height,x=0,M=i.reduce((W,V)=>W+V.before.length+V.lines.length+V.after.length,0);if(M+=e.beforeBody.length+e.afterBody.length,g&&(E+=g*d.lineHeight+(g-1)*t.titleSpacing+t.titleMarginBottom),M){const W=t.displayColors?Math.max(l,u.lineHeight):u.lineHeight;E+=v*W+(M-v)*u.lineHeight+(M-1)*t.bodySpacing}_&&(E+=t.footerMarginTop+_*m.lineHeight+(_-1)*t.footerSpacing);let S=0;const R=function(W){x=Math.max(x,n.measureText(W).width+S)};return n.save(),n.font=d.string,each(e.title,R),n.font=u.string,each(e.beforeBody.concat(e.afterBody),R),S=t.displayColors?o+2+t.boxPadding:0,each(i,W=>{each(W.before,R),each(W.lines,R),each(W.after,R)}),S=0,n.font=m.string,each(e.footer,R),n.restore(),x+=w.width,{width:x,height:E}}function determineYAlign(e,t){const{y:n,height:i}=t;return n<i/2?"top":n>e.height-i/2?"bottom":"center"}function doesNotFitWithAlign(e,t,n,i){const{x:r,width:a}=i,o=n.caretSize+n.caretPadding;if(e==="left"&&r+a+o>t.width||e==="right"&&r-a-o<0)return!0}function determineXAlign(e,t,n,i){const{x:r,width:a}=n,{width:o,chartArea:{left:l,right:u}}=e;let d="center";return i==="center"?d=r<=(l+u)/2?"left":"right":r<=a/2?d="left":r>=o-a/2&&(d="right"),doesNotFitWithAlign(d,e,t,n)&&(d="center"),d}function determineAlignment(e,t,n){const i=n.yAlign||t.yAlign||determineYAlign(e,n);return{xAlign:n.xAlign||t.xAlign||determineXAlign(e,t,n,i),yAlign:i}}function alignX(e,t){let{x:n,width:i}=e;return t==="right"?n-=i:t==="center"&&(n-=i/2),n}function alignY(e,t,n){let{y:i,height:r}=e;return t==="top"?i+=n:t==="bottom"?i-=r+n:i-=r/2,i}function getBackgroundPoint(e,t,n,i){const{caretSize:r,caretPadding:a,cornerRadius:o}=e,{xAlign:l,yAlign:u}=n,d=r+a,{topLeft:m,topRight:g,bottomLeft:_,bottomRight:v}=toTRBLCorners(o);let w=alignX(t,l);const E=alignY(t,u,d);return u==="center"?l==="left"?w+=d:l==="right"&&(w-=d):l==="left"?w-=Math.max(m,_)+r:l==="right"&&(w+=Math.max(g,v)+r),{x:_limitValue(w,0,i.width-t.width),y:_limitValue(E,0,i.height-t.height)}}function getAlignedX(e,t,n){const i=toPadding(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-i.right:e.x+i.left}function getBeforeAfterBodyLines(e){return pushOrConcat([],splitNewlines(e))}function createTooltipContext(e,t,n){return createContext(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function overrideCallbacks(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const defaultCallbacks={beforeTitle:noop$2,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return n[t.dataIndex]}return""},afterTitle:noop$2,beforeBody:noop$2,beforeLabel:noop$2,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return isNullOrUndef(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:noop$2,afterBody:noop$2,beforeFooter:noop$2,footer:noop$2,afterFooter:noop$2};function invokeCallbackWithFallback(e,t,n,i){const r=e[t].call(n,i);return typeof r>"u"?defaultCallbacks[t].call(n,i):r}class Tooltip extends Element$1{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,i=this.options.setContext(this.getContext()),r=i.enabled&&n.options.animation&&i.animations,a=new Animations(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=createTooltipContext(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:i}=n,r=invokeCallbackWithFallback(i,"beforeTitle",this,t),a=invokeCallbackWithFallback(i,"title",this,t),o=invokeCallbackWithFallback(i,"afterTitle",this,t);let l=[];return l=pushOrConcat(l,splitNewlines(r)),l=pushOrConcat(l,splitNewlines(a)),l=pushOrConcat(l,splitNewlines(o)),l}getBeforeBody(t,n){return getBeforeAfterBodyLines(invokeCallbackWithFallback(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:i}=n,r=[];return each(t,a=>{const o={before:[],lines:[],after:[]},l=overrideCallbacks(i,a);pushOrConcat(o.before,splitNewlines(invokeCallbackWithFallback(l,"beforeLabel",this,a))),pushOrConcat(o.lines,invokeCallbackWithFallback(l,"label",this,a)),pushOrConcat(o.after,splitNewlines(invokeCallbackWithFallback(l,"afterLabel",this,a))),r.push(o)}),r}getAfterBody(t,n){return getBeforeAfterBodyLines(invokeCallbackWithFallback(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:i}=n,r=invokeCallbackWithFallback(i,"beforeFooter",this,t),a=invokeCallbackWithFallback(i,"footer",this,t),o=invokeCallbackWithFallback(i,"afterFooter",this,t);let l=[];return l=pushOrConcat(l,splitNewlines(r)),l=pushOrConcat(l,splitNewlines(a)),l=pushOrConcat(l,splitNewlines(o)),l}_createItems(t){const n=this._active,i=this.chart.data,r=[],a=[],o=[];let l=[],u,d;for(u=0,d=n.length;u<d;++u)l.push(createTooltipItem(this.chart,n[u]));return t.filter&&(l=l.filter((m,g,_)=>t.filter(m,g,_,i))),t.itemSort&&(l=l.sort((m,g)=>t.itemSort(m,g,i))),each(l,m=>{const g=overrideCallbacks(t.callbacks,m);r.push(invokeCallbackWithFallback(g,"labelColor",this,m)),a.push(invokeCallbackWithFallback(g,"labelPointStyle",this,m)),o.push(invokeCallbackWithFallback(g,"labelTextColor",this,m))}),this.labelColors=r,this.labelPointStyles=a,this.labelTextColors=o,this.dataPoints=l,l}update(t,n){const i=this.options.setContext(this.getContext()),r=this._active;let a,o=[];if(!r.length)this.opacity!==0&&(a={opacity:0});else{const l=positioners[i.position].call(this,r,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const u=this._size=getTooltipSize(this,i),d=Object.assign({},l,u),m=determineAlignment(this.chart,i,d),g=getBackgroundPoint(i,d,m,this.chart);this.xAlign=m.xAlign,this.yAlign=m.yAlign,a={opacity:1,x:g.x,y:g.y,width:u.width,height:u.height,caretX:l.x,caretY:l.y}}this._tooltipItems=o,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,i,r){const a=this.getCaretPosition(t,i,r);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)}getCaretPosition(t,n,i){const{xAlign:r,yAlign:a}=this,{caretSize:o,cornerRadius:l}=i,{topLeft:u,topRight:d,bottomLeft:m,bottomRight:g}=toTRBLCorners(l),{x:_,y:v}=t,{width:w,height:E}=n;let x,M,S,R,W,V;return a==="center"?(W=v+E/2,r==="left"?(x=_,M=x-o,R=W+o,V=W-o):(x=_+w,M=x+o,R=W-o,V=W+o),S=x):(r==="left"?M=_+Math.max(u,m)+o:r==="right"?M=_+w-Math.max(d,g)-o:M=this.caretX,a==="top"?(R=v,W=R-o,x=M-o,S=M+o):(R=v+E,W=R+o,x=M+o,S=M-o),V=R),{x1:x,x2:M,x3:S,y1:R,y2:W,y3:V}}drawTitle(t,n,i){const r=this.title,a=r.length;let o,l,u;if(a){const d=getRtlAdapter(i.rtl,this.x,this.width);for(t.x=getAlignedX(this,i.titleAlign,i),n.textAlign=d.textAlign(i.titleAlign),n.textBaseline="middle",o=toFont(i.titleFont),l=i.titleSpacing,n.fillStyle=i.titleColor,n.font=o.string,u=0;u<a;++u)n.fillText(r[u],d.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+l,u+1===a&&(t.y+=i.titleMarginBottom-l)}}_drawColorBox(t,n,i,r,a){const o=this.labelColors[i],l=this.labelPointStyles[i],{boxHeight:u,boxWidth:d}=a,m=toFont(a.bodyFont),g=getAlignedX(this,"left",a),_=r.x(g),v=u<m.lineHeight?(m.lineHeight-u)/2:0,w=n.y+v;if(a.usePointStyle){const E={radius:Math.min(d,u)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},x=r.leftForLtr(_,d)+d/2,M=w+u/2;t.strokeStyle=a.multiKeyBackground,t.fillStyle=a.multiKeyBackground,drawPoint(t,E,x,M),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,drawPoint(t,E,x,M)}else{t.lineWidth=isObject$8(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const E=r.leftForLtr(_,d),x=r.leftForLtr(r.xPlus(_,1),d-2),M=toTRBLCorners(o.borderRadius);Object.values(M).some(S=>S!==0)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,addRoundedRectPath(t,{x:E,y:w,w:d,h:u,radius:M}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),addRoundedRectPath(t,{x,y:w+1,w:d-2,h:u-2,radius:M}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(E,w,d,u),t.strokeRect(E,w,d,u),t.fillStyle=o.backgroundColor,t.fillRect(x,w+1,d-2,u-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,n,i){const{body:r}=this,{bodySpacing:a,bodyAlign:o,displayColors:l,boxHeight:u,boxWidth:d,boxPadding:m}=i,g=toFont(i.bodyFont);let _=g.lineHeight,v=0;const w=getRtlAdapter(i.rtl,this.x,this.width),E=function(y){n.fillText(y,w.x(t.x+v),t.y+_/2),t.y+=_+a},x=w.textAlign(o);let M,S,R,W,V,q,U;for(n.textAlign=o,n.textBaseline="middle",n.font=g.string,t.x=getAlignedX(this,x,i),n.fillStyle=i.bodyColor,each(this.beforeBody,E),v=l&&x!=="right"?o==="center"?d/2+m:d+2+m:0,W=0,q=r.length;W<q;++W){for(M=r[W],S=this.labelTextColors[W],n.fillStyle=S,each(M.before,E),R=M.lines,l&&R.length&&(this._drawColorBox(n,t,W,w,i),_=Math.max(g.lineHeight,u)),V=0,U=R.length;V<U;++V)E(R[V]),_=g.lineHeight;each(M.after,E)}v=0,_=g.lineHeight,each(this.afterBody,E),t.y-=a}drawFooter(t,n,i){const r=this.footer,a=r.length;let o,l;if(a){const u=getRtlAdapter(i.rtl,this.x,this.width);for(t.x=getAlignedX(this,i.footerAlign,i),t.y+=i.footerMarginTop,n.textAlign=u.textAlign(i.footerAlign),n.textBaseline="middle",o=toFont(i.footerFont),n.fillStyle=i.footerColor,n.font=o.string,l=0;l<a;++l)n.fillText(r[l],u.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+i.footerSpacing}}drawBackground(t,n,i,r){const{xAlign:a,yAlign:o}=this,{x:l,y:u}=t,{width:d,height:m}=i,{topLeft:g,topRight:_,bottomLeft:v,bottomRight:w}=toTRBLCorners(r.cornerRadius);n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,n.lineWidth=r.borderWidth,n.beginPath(),n.moveTo(l+g,u),o==="top"&&this.drawCaret(t,n,i,r),n.lineTo(l+d-_,u),n.quadraticCurveTo(l+d,u,l+d,u+_),o==="center"&&a==="right"&&this.drawCaret(t,n,i,r),n.lineTo(l+d,u+m-w),n.quadraticCurveTo(l+d,u+m,l+d-w,u+m),o==="bottom"&&this.drawCaret(t,n,i,r),n.lineTo(l+v,u+m),n.quadraticCurveTo(l,u+m,l,u+m-v),o==="center"&&a==="left"&&this.drawCaret(t,n,i,r),n.lineTo(l,u+g),n.quadraticCurveTo(l,u,l+g,u),n.closePath(),n.fill(),r.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,i=this.$animations,r=i&&i.x,a=i&&i.y;if(r||a){const o=positioners[t.position].call(this,this._active,this._eventPosition);if(!o)return;const l=this._size=getTooltipSize(this,t),u=Object.assign({},o,this._size),d=determineAlignment(n,t,u),m=getBackgroundPoint(t,u,d,n);(r._to!==m.x||a._to!==m.y)&&(this.xAlign=d.xAlign,this.yAlign=d.yAlign,this.width=l.width,this.height=l.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,m))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const r={width:this.width,height:this.height},a={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=toPadding(n.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&l&&(t.save(),t.globalAlpha=i,this.drawBackground(a,t,r,n),overrideTextDirection(t,n.textDirection),a.y+=o.top,this.drawTitle(a,t,n),this.drawBody(a,t,n),this.drawFooter(a,t,n),restoreTextDirection(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const i=this._active,r=t.map(({datasetIndex:l,index:u})=>{const d=this.chart.getDatasetMeta(l);if(!d)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:d.data[u],index:u}}),a=!_elementsEqual(i,r),o=this._positionChanged(r,n);(a||o)&&(this._active=r,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,a=this._active||[],o=this._getActiveElements(t,a,n,i),l=this._positionChanged(o,t),u=n||!_elementsEqual(o,a)||l;return u&&(this._active=o,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),u}_getActiveElements(t,n,i,r){const a=this.options;if(t.type==="mouseout")return[];if(!r)return n.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);const o=this.chart.getElementsAtEventForMode(t,a.mode,a,i);return a.reverse&&o.reverse(),o}_positionChanged(t,n){const{caretX:i,caretY:r,options:a}=this,o=positioners[a.position].call(this,t,n);return o!==!1&&(i!==o.x||r!==o.y)}}Y(Tooltip,"positioners",positioners);var plugin_tooltip={id:"tooltip",_element:Tooltip,positioners,afterInit(e,t,n){n&&(e.tooltip=new Tooltip({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:defaultCallbacks},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const addIfString=(e,t,n,i)=>(typeof t=="string"?(n=e.push(t)-1,i.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function findOrAddLabel(e,t,n,i){const r=e.indexOf(t);if(r===-1)return addIfString(e,t,n,i);const a=e.lastIndexOf(t);return r!==a?n:r}const validIndex=(e,t)=>e===null?null:_limitValue(Math.round(e),0,t);function _getLabelForValue(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class CategoryScale extends Scale{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const i=this.getLabels();for(const{index:r,label:a}of n)i[r]===a&&i.splice(r,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(isNullOrUndef(t))return null;const i=this.getLabels();return n=isFinite(n)&&i[n]===t?n:findOrAddLabel(i,t,valueOrDefault(n,t),this._addedLabels),validIndex(n,i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:i,max:r}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(i=0),n||(r=this.getLabels().length-1)),this.min=i,this.max=r}buildTicks(){const t=this.min,n=this.max,i=this.options.offset,r=[];let a=this.getLabels();a=t===0&&n===a.length-1?a:a.slice(t,n+1),this._valueRange=Math.max(a.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let o=t;o<=n;o++)r.push({value:o});return r}getLabelForValue(t){return _getLabelForValue.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}Y(CategoryScale,"id","category"),Y(CategoryScale,"defaults",{ticks:{callback:_getLabelForValue}});function generateTicks$1(e,t){const n=[],{bounds:r,step:a,min:o,max:l,precision:u,count:d,maxTicks:m,maxDigits:g,includeBounds:_}=e,v=a||1,w=m-1,{min:E,max:x}=t,M=!isNullOrUndef(o),S=!isNullOrUndef(l),R=!isNullOrUndef(d),W=(x-E)/(g+1);let V=niceNum((x-E)/w/v)*v,q,U,y,$;if(V<1e-14&&!M&&!S)return[{value:E},{value:x}];$=Math.ceil(x/V)-Math.floor(E/V),$>w&&(V=niceNum($*V/w/v)*v),isNullOrUndef(u)||(q=Math.pow(10,u),V=Math.ceil(V*q)/q),r==="ticks"?(U=Math.floor(E/V)*V,y=Math.ceil(x/V)*V):(U=E,y=x),M&&S&&a&&almostWhole((l-o)/a,V/1e3)?($=Math.round(Math.min((l-o)/V,m)),V=(l-o)/$,U=o,y=l):R?(U=M?o:U,y=S?l:y,$=d-1,V=(y-U)/$):($=(y-U)/V,almostEquals($,Math.round($),V/1e3)?$=Math.round($):$=Math.ceil($));const T=Math.max(_decimalPlaces(V),_decimalPlaces(U));q=Math.pow(10,isNullOrUndef(u)?T:u),U=Math.round(U*q)/q,y=Math.round(y*q)/q;let O=0;for(M&&(_&&U!==o?(n.push({value:o}),U<o&&O++,almostEquals(Math.round((U+O*V)*q)/q,o,relativeLabelSize(o,W,e))&&O++):U<o&&O++);O<$;++O){const A=Math.round((U+O*V)*q)/q;if(S&&A>l)break;n.push({value:A})}return S&&_&&y!==l?n.length&&almostEquals(n[n.length-1].value,l,relativeLabelSize(l,W,e))?n[n.length-1].value=l:n.push({value:l}):(!S||y===l)&&n.push({value:y}),n}function relativeLabelSize(e,t,{horizontal:n,minRotation:i}){const r=toRadians(i),a=(n?Math.sin(r):Math.cos(r))||.001,o=.75*t*(""+e).length;return Math.min(t/a,o)}class LinearScaleBase extends Scale{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return isNullOrUndef(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:i}=this.getUserBounds();let{min:r,max:a}=this;const o=u=>r=n?r:u,l=u=>a=i?a:u;if(t){const u=sign(r),d=sign(a);u<0&&d<0?l(0):u>0&&d>0&&o(0)}if(r===a){let u=a===0?1:Math.abs(a*.05);l(a+u),t||o(r-u)}this.min=r,this.max=a}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=t,r;return i?(r=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),n=n||11),n&&(r=Math.min(n,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const r={maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},a=this._range||this,o=generateTicks$1(r,a);return t.bounds==="ticks"&&_setMinAndMaxByKey(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let n=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const r=(i-n)/Math.max(t.length-1,1)/2;n-=r,i+=r}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(t){return formatNumber$1(t,this.chart.options.locale,this.options.ticks.format)}}class LinearScale extends LinearScaleBase{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=isNumberFinite(t)?t:0,this.max=isNumberFinite(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,i=toRadians(this.options.ticks.minRotation),r=(t?Math.sin(i):Math.cos(i))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,a.lineHeight/r))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Y(LinearScale,"id","linear"),Y(LinearScale,"defaults",{ticks:{callback:Ticks.formatters.numeric}});const log10Floor=e=>Math.floor(log10(e)),changeExponent=(e,t)=>Math.pow(10,log10Floor(e)+t);function isMajor(e){return e/Math.pow(10,log10Floor(e))===1}function steps(e,t,n){const i=Math.pow(10,n),r=Math.floor(e/i);return Math.ceil(t/i)-r}function startExp(e,t){const n=t-e;let i=log10Floor(n);for(;steps(e,t,i)>10;)i++;for(;steps(e,t,i)<10;)i--;return Math.min(i,log10Floor(e))}function generateTicks(e,{min:t,max:n}){t=finiteOrDefault(e.min,t);const i=[],r=log10Floor(t);let a=startExp(t,n),o=a<0?Math.pow(10,Math.abs(a)):1;const l=Math.pow(10,a),u=r>a?Math.pow(10,r):0,d=Math.round((t-u)*o)/o,m=Math.floor((t-u)/l/10)*l*10;let g=Math.floor((d-m)/Math.pow(10,a)),_=finiteOrDefault(e.min,Math.round((u+m+g*Math.pow(10,a))*o)/o);for(;_<n;)i.push({value:_,major:isMajor(_),significand:g}),g>=10?g=g<15?15:20:g++,g>=20&&(a++,g=2,o=a>=0?1:o),_=Math.round((u+m+g*Math.pow(10,a))*o)/o;const v=finiteOrDefault(e.max,_);return i.push({value:v,major:isMajor(v),significand:g}),i}class LogarithmicScale extends Scale{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const i=LinearScaleBase.prototype.parse.apply(this,[t,n]);if(i===0){this._zero=!0;return}return isNumberFinite(i)&&i>0?i:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=isNumberFinite(t)?Math.max(0,t):null,this.max=isNumberFinite(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!isNumberFinite(this._userMin)&&(this.min=t===changeExponent(this.min,0)?changeExponent(this.min,-1):changeExponent(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let i=this.min,r=this.max;const a=l=>i=t?i:l,o=l=>r=n?r:l;i===r&&(i<=0?(a(1),o(10)):(a(changeExponent(i,-1)),o(changeExponent(r,1)))),i<=0&&a(changeExponent(r,-1)),r<=0&&o(changeExponent(i,1)),this.min=i,this.max=r}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},i=generateTicks(n,this);return t.bounds==="ticks"&&_setMinAndMaxByKey(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(t){return t===void 0?"0":formatNumber$1(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=log10(t),this._valueRange=log10(this.max)-log10(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(log10(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}Y(LogarithmicScale,"id","logarithmic"),Y(LogarithmicScale,"defaults",{ticks:{callback:Ticks.formatters.logarithmic,major:{enabled:!0}}});function getTickBackdropHeight(e){const t=e.ticks;if(t.display&&e.display){const n=toPadding(t.backdropPadding);return valueOrDefault(t.font&&t.font.size,defaults.font.size)+n.height}return 0}function measureLabelSize(e,t,n){return n=isArray$b(n)?n:[n],{w:_longestText(e,t.string,n),h:n.length*t.lineHeight}}function determineLimits(e,t,n,i,r){return e===i||e===r?{start:t-n/2,end:t+n/2}:e<i||e>r?{start:t-n,end:t}:{start:t,end:t+n}}function fitWithPointLabels(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),i=[],r=[],a=e._pointLabels.length,o=e.options.pointLabels,l=o.centerPointLabels?PI/a:0;for(let u=0;u<a;u++){const d=o.setContext(e.getPointLabelContext(u));r[u]=d.padding;const m=e.getPointPosition(u,e.drawingArea+r[u],l),g=toFont(d.font),_=measureLabelSize(e.ctx,g,e._pointLabels[u]);i[u]=_;const v=_normalizeAngle(e.getIndexAngle(u)+l),w=Math.round(toDegrees(v)),E=determineLimits(w,m.x,_.w,0,180),x=determineLimits(w,m.y,_.h,90,270);updateLimits(n,t,v,E,x)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=buildPointLabelItems(e,i,r)}function updateLimits(e,t,n,i,r){const a=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n));let l=0,u=0;i.start<t.l?(l=(t.l-i.start)/a,e.l=Math.min(e.l,t.l-l)):i.end>t.r&&(l=(i.end-t.r)/a,e.r=Math.max(e.r,t.r+l)),r.start<t.t?(u=(t.t-r.start)/o,e.t=Math.min(e.t,t.t-u)):r.end>t.b&&(u=(r.end-t.b)/o,e.b=Math.max(e.b,t.b+u))}function createPointLabelItem(e,t,n){const i=e.drawingArea,{extra:r,additionalAngle:a,padding:o,size:l}=n,u=e.getPointPosition(t,i+r+o,a),d=Math.round(toDegrees(_normalizeAngle(u.angle+HALF_PI))),m=yForAngle(u.y,l.h,d),g=getTextAlignForAngle(d),_=leftForTextAlign(u.x,l.w,g);return{visible:!0,x:u.x,y:m,textAlign:g,left:_,top:m,right:_+l.w,bottom:m+l.h}}function isNotOverlapped(e,t){if(!t)return!0;const{left:n,top:i,right:r,bottom:a}=e;return!(_isPointInArea({x:n,y:i},t)||_isPointInArea({x:n,y:a},t)||_isPointInArea({x:r,y:i},t)||_isPointInArea({x:r,y:a},t))}function buildPointLabelItems(e,t,n){const i=[],r=e._pointLabels.length,a=e.options,{centerPointLabels:o,display:l}=a.pointLabels,u={extra:getTickBackdropHeight(a)/2,additionalAngle:o?PI/r:0};let d;for(let m=0;m<r;m++){u.padding=n[m],u.size=t[m];const g=createPointLabelItem(e,m,u);i.push(g),l==="auto"&&(g.visible=isNotOverlapped(g,d),g.visible&&(d=g))}return i}function getTextAlignForAngle(e){return e===0||e===180?"center":e<180?"left":"right"}function leftForTextAlign(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function yForAngle(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function drawPointLabelBox(e,t,n){const{left:i,top:r,right:a,bottom:o}=n,{backdropColor:l}=t;if(!isNullOrUndef(l)){const u=toTRBLCorners(t.borderRadius),d=toPadding(t.backdropPadding);e.fillStyle=l;const m=i-d.left,g=r-d.top,_=a-i+d.width,v=o-r+d.height;Object.values(u).some(w=>w!==0)?(e.beginPath(),addRoundedRectPath(e,{x:m,y:g,w:_,h:v,radius:u}),e.fill()):e.fillRect(m,g,_,v)}}function drawPointLabels(e,t){const{ctx:n,options:{pointLabels:i}}=e;for(let r=t-1;r>=0;r--){const a=e._pointLabelItems[r];if(!a.visible)continue;const o=i.setContext(e.getPointLabelContext(r));drawPointLabelBox(n,o,a);const l=toFont(o.font),{x:u,y:d,textAlign:m}=a;renderText(n,e._pointLabels[r],u,d+l.lineHeight/2,l,{color:o.color,textAlign:m,textBaseline:"middle"})}}function pathRadiusLine(e,t,n,i){const{ctx:r}=e;if(n)r.arc(e.xCenter,e.yCenter,t,0,TAU);else{let a=e.getPointPosition(0,t);r.moveTo(a.x,a.y);for(let o=1;o<i;o++)a=e.getPointPosition(o,t),r.lineTo(a.x,a.y)}}function drawRadiusLine(e,t,n,i,r){const a=e.ctx,o=t.circular,{color:l,lineWidth:u}=t;!o&&!i||!l||!u||n<0||(a.save(),a.strokeStyle=l,a.lineWidth=u,a.setLineDash(r.dash),a.lineDashOffset=r.dashOffset,a.beginPath(),pathRadiusLine(e,n,o,i),a.closePath(),a.stroke(),a.restore())}function createPointLabelContext(e,t,n){return createContext(e,{label:n,index:t,type:"pointLabel"})}class RadialLinearScale extends LinearScaleBase{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=toPadding(getTickBackdropHeight(this.options)/2),n=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(n,i)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=isNumberFinite(t)&&!isNaN(t)?t:0,this.max=isNumberFinite(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/getTickBackdropHeight(this.options))}generateTickLabels(t){LinearScaleBase.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,i)=>{const r=callback(this.options.pointLabels.callback,[n,i],this);return r||r===0?r:""}).filter((n,i)=>this.chart.getDataVisibility(i))}fit(){const t=this.options;t.display&&t.pointLabels.display?fitWithPointLabels(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,i,r){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((i-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,i,r))}getIndexAngle(t){const n=TAU/(this._pointLabels.length||1),i=this.options.startAngle||0;return _normalizeAngle(t*n+toRadians(i))}getDistanceFromCenterForValue(t){if(isNullOrUndef(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(isNullOrUndef(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const i=n[t];return createPointLabelContext(this.getContext(),t,i)}}getPointPosition(t,n,i=0){const r=this.getIndexAngle(t)-HALF_PI+i;return{x:Math.cos(r)*n+this.xCenter,y:Math.sin(r)*n+this.yCenter,angle:r}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:i,right:r,bottom:a}=this._pointLabelItems[t];return{left:n,top:i,right:r,bottom:a}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),pathRadiusLine(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:i,grid:r,border:a}=n,o=this._pointLabels.length;let l,u,d;if(n.pointLabels.display&&drawPointLabels(this,o),r.display&&this.ticks.forEach((m,g)=>{if(g!==0){u=this.getDistanceFromCenterForValue(m.value);const _=this.getContext(g),v=r.setContext(_),w=a.setContext(_);drawRadiusLine(this,v,u,o,w)}}),i.display){for(t.save(),l=o-1;l>=0;l--){const m=i.setContext(this.getPointLabelContext(l)),{color:g,lineWidth:_}=m;!_||!g||(t.lineWidth=_,t.strokeStyle=g,t.setLineDash(m.borderDash),t.lineDashOffset=m.borderDashOffset,u=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),d=this.getPointPosition(l,u),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(d.x,d.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,i=n.ticks;if(!i.display)return;const r=this.getIndexAngle(0);let a,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(r),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((l,u)=>{if(u===0&&!n.reverse)return;const d=i.setContext(this.getContext(u)),m=toFont(d.font);if(a=this.getDistanceFromCenterForValue(this.ticks[u].value),d.showLabelBackdrop){t.font=m.string,o=t.measureText(l.label).width,t.fillStyle=d.backdropColor;const g=toPadding(d.backdropPadding);t.fillRect(-o/2-g.left,-a-m.size/2-g.top,o+g.width,m.size+g.height)}renderText(t,l.label,0,-a,m,{color:d.color,strokeColor:d.textStrokeColor,strokeWidth:d.textStrokeWidth})}),t.restore()}drawTitle(){}}Y(RadialLinearScale,"id","radialLinear"),Y(RadialLinearScale,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ticks.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),Y(RadialLinearScale,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),Y(RadialLinearScale,"descriptors",{angleLines:{_fallback:"grid"}});const INTERVALS={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},UNITS=Object.keys(INTERVALS);function sorter(e,t){return e-t}function parse(e,t){if(isNullOrUndef(t))return null;const n=e._adapter,{parser:i,round:r,isoWeekday:a}=e._parseOpts;let o=t;return typeof i=="function"&&(o=i(o)),isNumberFinite(o)||(o=typeof i=="string"?n.parse(o,i):n.parse(o)),o===null?null:(r&&(o=r==="week"&&(isNumber(a)||a===!0)?n.startOf(o,"isoWeek",a):n.startOf(o,r)),+o)}function determineUnitForAutoTicks(e,t,n,i){const r=UNITS.length;for(let a=UNITS.indexOf(e);a<r-1;++a){const o=INTERVALS[UNITS[a]],l=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-t)/(l*o.size))<=i)return UNITS[a]}return UNITS[r-1]}function determineUnitForFormatting(e,t,n,i,r){for(let a=UNITS.length-1;a>=UNITS.indexOf(n);a--){const o=UNITS[a];if(INTERVALS[o].common&&e._adapter.diff(r,i,o)>=t-1)return o}return UNITS[n?UNITS.indexOf(n):0]}function determineMajorUnit(e){for(let t=UNITS.indexOf(e)+1,n=UNITS.length;t<n;++t)if(INTERVALS[UNITS[t]].common)return UNITS[t]}function addTick(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:i,hi:r}=_lookup(n,t),a=n[i]>=t?n[i]:n[r];e[a]=!0}}function setMajorTicks(e,t,n,i){const r=e._adapter,a=+r.startOf(t[0].value,i),o=t[t.length-1].value;let l,u;for(l=a;l<=o;l=+r.add(l,1,i))u=n[l],u>=0&&(t[u].major=!0);return t}function ticksFromTimestamps(e,t,n){const i=[],r={},a=t.length;let o,l;for(o=0;o<a;++o)l=t[o],r[l]=o,i.push({value:l,major:!1});return a===0||!n?i:setMajorTicks(e,i,r,n)}class TimeScale extends Scale{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const i=t.time||(t.time={}),r=this._adapter=new adapters._date(t.adapters.date);r.init(n),mergeIf(i.displayFormats,r.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:parse(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,i=t.time.unit||"day";let{min:r,max:a,minDefined:o,maxDefined:l}=this.getUserBounds();function u(d){!o&&!isNaN(d.min)&&(r=Math.min(r,d.min)),!l&&!isNaN(d.max)&&(a=Math.max(a,d.max))}(!o||!l)&&(u(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&u(this.getMinMax(!1))),r=isNumberFinite(r)&&!isNaN(r)?r:+n.startOf(Date.now(),i),a=isNumberFinite(a)&&!isNaN(a)?a:+n.endOf(Date.now(),i)+1,this.min=Math.min(r,a-1),this.max=Math.max(r+1,a)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],i=t[t.length-1]),{min:n,max:i}}buildTicks(){const t=this.options,n=t.time,i=t.ticks,r=i.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const a=this.min,o=this.max,l=_filterBetween(r,a,o);return this._unit=n.unit||(i.autoSkip?determineUnitForAutoTicks(n.minUnit,this.min,this.max,this._getLabelCapacity(a)):determineUnitForFormatting(this,l.length,n.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:determineMajorUnit(this._unit),this.initOffsets(r),t.reverse&&l.reverse(),ticksFromTimestamps(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,i=0,r,a;this.options.offset&&t.length&&(r=this.getDecimalForValue(t[0]),t.length===1?n=1-r:n=(this.getDecimalForValue(t[1])-r)/2,a=this.getDecimalForValue(t[t.length-1]),t.length===1?i=a:i=(a-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=_limitValue(n,0,o),i=_limitValue(i,0,o),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const t=this._adapter,n=this.min,i=this.max,r=this.options,a=r.time,o=a.unit||determineUnitForAutoTicks(a.minUnit,n,i,this._getLabelCapacity(n)),l=valueOrDefault(r.ticks.stepSize,1),u=o==="week"?a.isoWeekday:!1,d=isNumber(u)||u===!0,m={};let g=n,_,v;if(d&&(g=+t.startOf(g,"isoWeek",u)),g=+t.startOf(g,d?"day":o),t.diff(i,n,o)>1e5*l)throw new Error(n+" and "+i+" are too far apart with stepSize of "+l+" "+o);const w=r.ticks.source==="data"&&this.getDataTimestamps();for(_=g,v=0;_<i;_=+t.add(_,l,o),v++)addTick(m,_,w);return(_===i||r.bounds==="ticks"||v===1)&&addTick(m,_,w),Object.keys(m).sort(sorter).map(E=>+E)}getLabelForValue(t){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(t,i.tooltipFormat):n.format(t,i.displayFormats.datetime)}format(t,n){const r=this.options.time.displayFormats,a=this._unit,o=n||r[a];return this._adapter.format(t,o)}_tickFormatFunction(t,n,i,r){const a=this.options,o=a.ticks.callback;if(o)return callback(o,[t,n,i],this);const l=a.time.displayFormats,u=this._unit,d=this._majorUnit,m=u&&l[u],g=d&&l[d],_=i[n],v=d&&g&&_&&_.major;return this._adapter.format(t,r||(v?g:m))}generateTickLabels(t){let n,i,r;for(n=0,i=t.length;n<i;++n)r=t[n],r.label=this._tickFormatFunction(r.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+i)*n.factor)}getValueForPixel(t){const n=this._offsets,i=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,i=this.ctx.measureText(t).width,r=toRadians(this.isHorizontal()?n.maxRotation:n.minRotation),a=Math.cos(r),o=Math.sin(r),l=this._resolveTickFontOptions(0).size;return{w:i*a+l*o,h:i*o+l*a}}_getLabelCapacity(t){const n=this.options.time,i=n.displayFormats,r=i[n.unit]||i.millisecond,a=this._tickFormatFunction(t,0,ticksFromTimestamps(this,[t],this._majorUnit),r),o=this._getLabelSize(a),l=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return l>0?l:1}getDataTimestamps(){let t=this._cache.data||[],n,i;if(t.length)return t;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(n=0,i=r.length;n<i;++n)t=t.concat(r[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,i;if(t.length)return t;const r=this.getLabels();for(n=0,i=r.length;n<i;++n)t.push(parse(this,r[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return _arrayUnique(t.sort(sorter))}}Y(TimeScale,"id","time"),Y(TimeScale,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function interpolate$1(e,t,n){let i=0,r=e.length-1,a,o,l,u;n?(t>=e[i].pos&&t<=e[r].pos&&({lo:i,hi:r}=_lookupByKey(e,"pos",t)),{pos:a,time:l}=e[i],{pos:o,time:u}=e[r]):(t>=e[i].time&&t<=e[r].time&&({lo:i,hi:r}=_lookupByKey(e,"time",t)),{time:a,pos:l}=e[i],{time:o,pos:u}=e[r]);const d=o-a;return d?l+(u-l)*(t-a)/d:l}class TimeSeriesScale extends TimeScale{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=interpolate$1(n,this.min),this._tableRange=interpolate$1(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:i}=this,r=[],a=[];let o,l,u,d,m;for(o=0,l=t.length;o<l;++o)d=t[o],d>=n&&d<=i&&r.push(d);if(r.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(o=0,l=r.length;o<l;++o)m=r[o+1],u=r[o-1],d=r[o],Math.round((m+u)/2)!==d&&a.push({time:d,pos:o/(l-1)});return a}_generate(){const t=this.min,n=this.max;let i=super.getDataTimestamps();return(!i.includes(t)||!i.length)&&i.splice(0,0,t),(!i.includes(n)||i.length===1)&&i.push(n),i.sort((r,a)=>r-a)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),i=this.getLabelTimestamps();return n.length&&i.length?t=this.normalize(n.concat(i)):t=n.length?n:i,t=this._cache.all=t,t}getDecimalForValue(t){return(interpolate$1(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,i=this.getDecimalForPixel(t)/n.factor-n.end;return interpolate$1(this._table,i*this._tableRange+this._minPos,!0)}}Y(TimeSeriesScale,"id","timeseries"),Y(TimeSeriesScale,"defaults",TimeScale.defaults);var isArray$a=Array.isArray,isArray_1=isArray$a,freeGlobal$1=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$8=freeGlobal||freeSelf||Function("return this")(),_root=root$8,root$7=_root,Symbol$6=root$7.Symbol,_Symbol=Symbol$6,Symbol$5=_Symbol,objectProto$d=Object.prototype,hasOwnProperty$a=objectProto$d.hasOwnProperty,nativeObjectToString$1=objectProto$d.toString,symToStringTag$1=Symbol$5?Symbol$5.toStringTag:void 0;function getRawTag$1(e){var t=hasOwnProperty$a.call(e,symToStringTag$1),n=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var i=!0}catch{}var r=nativeObjectToString$1.call(e);return i&&(t?e[symToStringTag$1]=n:delete e[symToStringTag$1]),r}var _getRawTag=getRawTag$1,objectProto$c=Object.prototype,nativeObjectToString=objectProto$c.toString;function objectToString$1(e){return nativeObjectToString.call(e)}var _objectToString=objectToString$1,Symbol$4=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$4?Symbol$4.toStringTag:void 0;function baseGetTag$5(e){return e==null?e===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}var _baseGetTag=baseGetTag$5;function isObjectLike$5(e){return e!=null&&typeof e=="object"}var isObjectLike_1=isObjectLike$5,baseGetTag$4=_baseGetTag,isObjectLike$4=isObjectLike_1,symbolTag$1="[object Symbol]";function isSymbol$5(e){return typeof e=="symbol"||isObjectLike$4(e)&&baseGetTag$4(e)==symbolTag$1}var isSymbol_1=isSymbol$5,isArray$9=isArray_1,isSymbol$4=isSymbol_1,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey$3(e,t){if(isArray$9(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||isSymbol$4(e)?!0:reIsPlainProp.test(e)||!reIsDeepProp.test(e)||t!=null&&e in Object(t)}var _isKey=isKey$3;function isObject$6(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var isObject_1=isObject$6;const isObject$7=getDefaultExportFromCjs(isObject_1);var baseGetTag$3=_baseGetTag,isObject$5=isObject_1,asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(e){if(!isObject$5(e))return!1;var t=baseGetTag$3(e);return t==funcTag$1||t==genTag||t==asyncTag||t==proxyTag}var isFunction_1=isFunction$2,root$6=_root,coreJsData$1=root$6["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=function(){var e=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked$1(e){return!!maskSrcKey&&maskSrcKey in e}var _isMasked=isMasked$1,funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource$2(e){if(e!=null){try{return funcToString$1.call(e)}catch{}try{return e+""}catch{}}return""}var _toSource=toSource$2,isFunction$1=isFunction_1,isMasked=_isMasked,isObject$4=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$b=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$9=objectProto$b.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$9).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(e){if(!isObject$4(e)||isMasked(e))return!1;var t=isFunction$1(e)?reIsNative:reIsHostCtor;return t.test(toSource$1(e))}var _baseIsNative=baseIsNative$1;function getValue$1(e,t){return e==null?void 0:e[t]}var _getValue=getValue$1,baseIsNative=_baseIsNative,getValue=_getValue;function getNative$7(e,t){var n=getValue(e,t);return baseIsNative(n)?n:void 0}var _getNative=getNative$7,getNative$6=_getNative,nativeCreate$4=getNative$6(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$a=Object.prototype,hasOwnProperty$8=objectProto$a.hasOwnProperty;function hashGet$1(e){var t=this.__data__;if(nativeCreate$2){var n=t[e];return n===HASH_UNDEFINED$2?void 0:n}return hasOwnProperty$8.call(t,e)?t[e]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$9=Object.prototype,hasOwnProperty$7=objectProto$9.hasOwnProperty;function hashHas$1(e){var t=this.__data__;return nativeCreate$1?t[e]!==void 0:hasOwnProperty$7.call(t,e)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nativeCreate&&t===void 0?HASH_UNDEFINED$1:t,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Hash$1.prototype.clear=hashClear;Hash$1.prototype.delete=hashDelete;Hash$1.prototype.get=hashGet;Hash$1.prototype.has=hashHas;Hash$1.prototype.set=hashSet;var _Hash=Hash$1;function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$4(e,t){return e===t||e!==e&&t!==t}var eq_1=eq$4,eq$3=eq_1;function assocIndexOf$4(e,t){for(var n=e.length;n--;)if(eq$3(e[n][0],t))return n;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(e){var t=this.__data__,n=assocIndexOf$3(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():splice.call(t,n,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(e){var t=this.__data__,n=assocIndexOf$2(t,e);return n<0?void 0:t[n][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(e){return assocIndexOf$1(this.__data__,e)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(e,t){var n=this.__data__,i=assocIndexOf(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}ListCache$4.prototype.clear=listCacheClear;ListCache$4.prototype.delete=listCacheDelete;ListCache$4.prototype.get=listCacheGet;ListCache$4.prototype.has=listCacheHas;ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,getNative$5=_getNative,root$5=_root,Map$4=getNative$5(root$5,"Map"),_Map=Map$4,Hash=_Hash,ListCache$3=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$3),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(e,t){var n=e.__data__;return isKeyable(t)?n[typeof t=="string"?"string":"hash"]:n.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(e){var t=getMapData$3(this,e).delete(e);return this.size-=t?1:0,t}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(e){return getMapData$2(this,e).get(e)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(e){return getMapData$1(this,e).has(e)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(e,t){var n=getMapData(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$3(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}MapCache$3.prototype.clear=mapCacheClear;MapCache$3.prototype.delete=mapCacheDelete;MapCache$3.prototype.get=mapCacheGet;MapCache$3.prototype.has=mapCacheHas;MapCache$3.prototype.set=mapCacheSet;var _MapCache=MapCache$3,MapCache$2=_MapCache,FUNC_ERROR_TEXT="Expected a function";function memoize$1(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(FUNC_ERROR_TEXT);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],a=n.cache;if(a.has(r))return a.get(r);var o=e.apply(this,i);return n.cache=a.set(r,o)||a,o};return n.cache=new(memoize$1.Cache||MapCache$2),n}memoize$1.Cache=MapCache$2;var memoize_1=memoize$1,memoize=memoize_1,MAX_MEMOIZE_SIZE=500;function memoizeCapped$1(e){var t=memoize(e,function(i){return n.size===MAX_MEMOIZE_SIZE&&n.clear(),i}),n=t.cache;return t}var _memoizeCapped=memoizeCapped$1,memoizeCapped=_memoizeCapped,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=memoizeCapped(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(rePropName,function(n,i,r,a){t.push(r?a.replace(reEscapeChar,"$1"):i||n)}),t}),_stringToPath=stringToPath$1;function arrayMap$2(e,t){for(var n=-1,i=e==null?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}var _arrayMap=arrayMap$2,Symbol$3=_Symbol,arrayMap$1=_arrayMap,isArray$8=isArray_1,isSymbol$3=isSymbol_1,INFINITY$4=1/0,symbolProto$1=Symbol$3?Symbol$3.prototype:void 0,symbolToString=symbolProto$1?symbolProto$1.toString:void 0;function baseToString$1(e){if(typeof e=="string")return e;if(isArray$8(e))return arrayMap$1(e,baseToString$1)+"";if(isSymbol$3(e))return symbolToString?symbolToString.call(e):"";var t=e+"";return t=="0"&&1/e==-INFINITY$4?"-0":t}var _baseToString=baseToString$1,baseToString=_baseToString;function toString$6(e){return e==null?"":baseToString(e)}var toString_1=toString$6,isArray$7=isArray_1,isKey$2=_isKey,stringToPath=_stringToPath,toString$5=toString_1;function castPath$3(e,t){return isArray$7(e)?e:isKey$2(e,t)?[e]:stringToPath(toString$5(e))}var _castPath=castPath$3,isSymbol$2=isSymbol_1,INFINITY$3=1/0;function toKey$5(e){if(typeof e=="string"||isSymbol$2(e))return e;var t=e+"";return t=="0"&&1/e==-INFINITY$3?"-0":t}var _toKey=toKey$5,castPath$2=_castPath,toKey$4=_toKey;function baseGet$3(e,t){t=castPath$2(t,e);for(var n=0,i=t.length;e!=null&&n<i;)e=e[toKey$4(t[n++])];return n&&n==i?e:void 0}var _baseGet=baseGet$3,baseGet$2=_baseGet;function get$1(e,t,n){var i=e==null?void 0:baseGet$2(e,t);return i===void 0?n:i}var get_1=get$1;const get$2=getDefaultExportFromCjs(get_1);var objectProto$8=Object.prototype,hasOwnProperty$6=objectProto$8.hasOwnProperty;function baseHas$1(e,t){return e!=null&&hasOwnProperty$6.call(e,t)}var _baseHas=baseHas$1,baseGetTag$2=_baseGetTag,isObjectLike$3=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(e){return isObjectLike$3(e)&&baseGetTag$2(e)==argsTag$2}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$2=isObjectLike_1,objectProto$7=Object.prototype,hasOwnProperty$5=objectProto$7.hasOwnProperty,propertyIsEnumerable$1=objectProto$7.propertyIsEnumerable,isArguments$3=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike$2(e)&&hasOwnProperty$5.call(e,"callee")&&!propertyIsEnumerable$1.call(e,"callee")},isArguments_1=isArguments$3,MAX_SAFE_INTEGER$3=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$4(e,t){var n=typeof e;return t=t??MAX_SAFE_INTEGER$3,!!t&&(n=="number"||n!="symbol"&&reIsUint.test(e))&&e>-1&&e%1==0&&e<t}var _isIndex=isIndex$4,MAX_SAFE_INTEGER$2=9007199254740991;function isLength$3(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=MAX_SAFE_INTEGER$2}var isLength_1=isLength$3,castPath$1=_castPath,isArguments$2=isArguments_1,isArray$6=isArray_1,isIndex$3=_isIndex,isLength$2=isLength_1,toKey$3=_toKey;function hasPath$2(e,t,n){t=castPath$1(t,e);for(var i=-1,r=t.length,a=!1;++i<r;){var o=toKey$3(t[i]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++i!=r?a:(r=e==null?0:e.length,!!r&&isLength$2(r)&&isIndex$3(o,r)&&(isArray$6(e)||isArguments$2(e)))}var _hasPath=hasPath$2,baseHas=_baseHas,hasPath$1=_hasPath;function has(e,t){return e!=null&&hasPath$1(e,t,baseHas)}var has_1=has;const has$1=getDefaultExportFromCjs(has_1);var getNative$4=_getNative,defineProperty$2=function(){try{var e=getNative$4(Object,"defineProperty");return e({},"",{}),e}catch{}}(),_defineProperty=defineProperty$2,defineProperty$1=_defineProperty;function baseAssignValue$1(e,t,n){t=="__proto__"&&defineProperty$1?defineProperty$1(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var _baseAssignValue=baseAssignValue$1,baseAssignValue=_baseAssignValue,eq$2=eq_1,objectProto$6=Object.prototype,hasOwnProperty$4=objectProto$6.hasOwnProperty;function assignValue$2(e,t,n){var i=e[t];(!(hasOwnProperty$4.call(e,t)&&eq$2(i,n))||n===void 0&&!(t in e))&&baseAssignValue(e,t,n)}var _assignValue=assignValue$2,assignValue$1=_assignValue,castPath=_castPath,isIndex$2=_isIndex,isObject$3=isObject_1,toKey$2=_toKey;function baseSet$2(e,t,n,i){if(!isObject$3(e))return e;t=castPath(t,e);for(var r=-1,a=t.length,o=a-1,l=e;l!=null&&++r<a;){var u=toKey$2(t[r]),d=n;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(r!=o){var m=l[u];d=i?i(m,u,l):void 0,d===void 0&&(d=isObject$3(m)?m:isIndex$2(t[r+1])?[]:{})}assignValue$1(l,u,d),l=l[u]}return e}var _baseSet=baseSet$2,baseSet$1=_baseSet;function set(e,t,n){return e==null?e:baseSet$1(e,t,n)}var set_1=set;const set$1=getDefaultExportFromCjs(set_1);var baseSet=_baseSet;function setWith(e,t,n,i){return i=typeof i=="function"?i:void 0,e==null?e:baseSet(e,t,n,i)}var setWith_1=setWith;const setWith$1=getDefaultExportFromCjs(setWith_1);var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd$1(e){return this.__data__.set(e,HASH_UNDEFINED),this}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(e){return this.__data__.has(e)}var _setCacheHas=setCacheHas$1,MapCache$1=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$2(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new MapCache$1;++t<n;)this.add(e[t])}SetCache$2.prototype.add=SetCache$2.prototype.push=setCacheAdd;SetCache$2.prototype.has=setCacheHas;var _SetCache=SetCache$2;function baseFindIndex$1(e,t,n,i){for(var r=e.length,a=n+(i?1:-1);i?a--:++a<r;)if(t(e[a],a,e))return a;return-1}var _baseFindIndex=baseFindIndex$1;function baseIsNaN$1(e){return e!==e}var _baseIsNaN=baseIsNaN$1;function strictIndexOf$1(e,t,n){for(var i=n-1,r=e.length;++i<r;)if(e[i]===t)return i;return-1}var _strictIndexOf=strictIndexOf$1,baseFindIndex=_baseFindIndex,baseIsNaN=_baseIsNaN,strictIndexOf=_strictIndexOf;function baseIndexOf$1(e,t,n){return t===t?strictIndexOf(e,t,n):baseFindIndex(e,baseIsNaN,n)}var _baseIndexOf=baseIndexOf$1,baseIndexOf=_baseIndexOf;function arrayIncludes$1(e,t){var n=e==null?0:e.length;return!!n&&baseIndexOf(e,t,0)>-1}var _arrayIncludes=arrayIncludes$1;function arrayIncludesWith$1(e,t,n){for(var i=-1,r=e==null?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}var _arrayIncludesWith=arrayIncludesWith$1;function cacheHas$2(e,t){return e.has(t)}var _cacheHas=cacheHas$2,getNative$3=_getNative,root$4=_root,Set$3=getNative$3(root$4,"Set"),_Set=Set$3;function noop$1(){}var noop_1=noop$1;function setToArray$3(e){var t=-1,n=Array(e.size);return e.forEach(function(i){n[++t]=i}),n}var _setToArray=setToArray$3,Set$2=_Set,noop=noop_1,setToArray$2=_setToArray,INFINITY$2=1/0,createSet$1=Set$2&&1/setToArray$2(new Set$2([,-0]))[1]==INFINITY$2?function(e){return new Set$2(e)}:noop,_createSet=createSet$1,SetCache$1=_SetCache,arrayIncludes=_arrayIncludes,arrayIncludesWith=_arrayIncludesWith,cacheHas$1=_cacheHas,createSet=_createSet,setToArray$1=_setToArray,LARGE_ARRAY_SIZE$1=200;function baseUniq$1(e,t,n){var i=-1,r=arrayIncludes,a=e.length,o=!0,l=[],u=l;if(n)o=!1,r=arrayIncludesWith;else if(a>=LARGE_ARRAY_SIZE$1){var d=t?null:createSet(e);if(d)return setToArray$1(d);o=!1,r=cacheHas$1,u=new SetCache$1}else u=t?[]:l;t:for(;++i<a;){var m=e[i],g=t?t(m):m;if(m=n||m!==0?m:0,o&&g===g){for(var _=u.length;_--;)if(u[_]===g)continue t;t&&u.push(g),l.push(m)}else r(u,g,n)||(u!==l&&u.push(g),l.push(m))}return l}var _baseUniq=baseUniq$1,baseUniq=_baseUniq;function uniq(e){return e&&e.length?baseUniq(e):[]}var uniq_1=uniq;const uniq$1=getDefaultExportFromCjs(uniq_1),defaultLocaleResolver=(e,t)=>{const n=[],i=[];return n.push(t),t||n.push(e.locale),e.enableFallback&&n.push(e.defaultLocale),n.filter(Boolean).map(r=>r.toString()).forEach(function(r){if(i.includes(r)||i.push(r),!e.enableFallback)return;const a=r.split("-");a.length===3&&i.push(`${a[0]}-${a[1]}`),i.push(a[0])}),uniq$1(i)};class Locales{constructor(t){this.i18n=t,this.registry={},this.register("default",defaultLocaleResolver)}register(t,n){if(typeof n!="function"){const i=n;n=()=>i}this.registry[t]=n}get(t){let n=this.registry[t]||this.registry[this.i18n.locale]||this.registry.default;return typeof n=="function"&&(n=n(this.i18n,t)),n instanceof Array||(n=[n]),n}}const en=(e,t)=>{const n=String(e).split("."),i=!n[1],r=Number(n[0])==e,a=r&&n[0].slice(-1),o=r&&n[0].slice(-2);return t?a==1&&o!=11?"one":a==2&&o!=12?"two":a==3&&o!=13?"few":"other":e==1&&i?"one":"other"};function useMakePlural({pluralizer:e,includeZero:t=!0,ordinal:n=!1}){return function(i,r){return[t&&r===0?"zero":"",e(r,n)].filter(Boolean)}}const defaultPluralizer=useMakePlural({pluralizer:en,includeZero:!0});class Pluralization{constructor(t){this.i18n=t,this.registry={},this.register("default",defaultPluralizer)}register(t,n){this.registry[t]=n}get(t){return this.registry[t]||this.registry[this.i18n.locale]||this.registry.default}}function baseSlice$1(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(r);++i<r;)a[i]=e[i+t];return a}var _baseSlice=baseSlice$1,baseSlice=_baseSlice;function castSlice$1(e,t,n){var i=e.length;return n=n===void 0?i:n,!t&&n>=i?e:baseSlice(e,t,n)}var _castSlice=castSlice$1,rsAstralRange$2="\\ud800-\\udfff",rsComboMarksRange$3="\\u0300-\\u036f",reComboHalfMarksRange$3="\\ufe20-\\ufe2f",rsComboSymbolsRange$3="\\u20d0-\\u20ff",rsComboRange$3=rsComboMarksRange$3+reComboHalfMarksRange$3+rsComboSymbolsRange$3,rsVarRange$2="\\ufe0e\\ufe0f",rsZWJ$2="\\u200d",reHasUnicode=RegExp("["+rsZWJ$2+rsAstralRange$2+rsComboRange$3+rsVarRange$2+"]");function hasUnicode$2(e){return reHasUnicode.test(e)}var _hasUnicode=hasUnicode$2;function asciiToArray$1(e){return e.split("")}var _asciiToArray=asciiToArray$1,rsAstralRange$1="\\ud800-\\udfff",rsComboMarksRange$2="\\u0300-\\u036f",reComboHalfMarksRange$2="\\ufe20-\\ufe2f",rsComboSymbolsRange$2="\\u20d0-\\u20ff",rsComboRange$2=rsComboMarksRange$2+reComboHalfMarksRange$2+rsComboSymbolsRange$2,rsVarRange$1="\\ufe0e\\ufe0f",rsAstral="["+rsAstralRange$1+"]",rsCombo$2="["+rsComboRange$2+"]",rsFitz$1="\\ud83c[\\udffb-\\udfff]",rsModifier$1="(?:"+rsCombo$2+"|"+rsFitz$1+")",rsNonAstral$1="[^"+rsAstralRange$1+"]",rsRegional$1="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair$1="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ$1="\\u200d",reOptMod$1=rsModifier$1+"?",rsOptVar$1="["+rsVarRange$1+"]?",rsOptJoin$1="(?:"+rsZWJ$1+"(?:"+[rsNonAstral$1,rsRegional$1,rsSurrPair$1].join("|")+")"+rsOptVar$1+reOptMod$1+")*",rsSeq$1=rsOptVar$1+reOptMod$1+rsOptJoin$1,rsSymbol="(?:"+[rsNonAstral$1+rsCombo$2+"?",rsCombo$2,rsRegional$1,rsSurrPair$1,rsAstral].join("|")+")",reUnicode=RegExp(rsFitz$1+"(?="+rsFitz$1+")|"+rsSymbol+rsSeq$1,"g");function unicodeToArray$1(e){return e.match(reUnicode)||[]}var _unicodeToArray=unicodeToArray$1,asciiToArray=_asciiToArray,hasUnicode$1=_hasUnicode,unicodeToArray=_unicodeToArray;function stringToArray$1(e){return hasUnicode$1(e)?unicodeToArray(e):asciiToArray(e)}var _stringToArray=stringToArray$1,castSlice=_castSlice,hasUnicode=_hasUnicode,stringToArray=_stringToArray,toString$4=toString_1;function createCaseFirst$1(e){return function(t){t=toString$4(t);var n=hasUnicode(t)?stringToArray(t):void 0,i=n?n[0]:t.charAt(0),r=n?castSlice(n,1).join(""):t.slice(1);return i[e]()+r}}var _createCaseFirst=createCaseFirst$1,createCaseFirst=_createCaseFirst,upperFirst$1=createCaseFirst("toUpperCase"),upperFirst_1=upperFirst$1,toString$3=toString_1,upperFirst=upperFirst_1;function capitalize$1(e){return upperFirst(toString$3(e).toLowerCase())}var capitalize_1=capitalize$1;function arrayReduce$1(e,t,n,i){var r=-1,a=e==null?0:e.length;for(i&&a&&(n=e[++r]);++r<a;)n=t(n,e[r],r,e);return n}var _arrayReduce=arrayReduce$1;function basePropertyOf$1(e){return function(t){return e==null?void 0:e[t]}}var _basePropertyOf=basePropertyOf$1,basePropertyOf=_basePropertyOf,deburredLetters={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},deburrLetter$1=basePropertyOf(deburredLetters),_deburrLetter=deburrLetter$1,deburrLetter=_deburrLetter,toString$2=toString_1,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rsComboMarksRange$1="\\u0300-\\u036f",reComboHalfMarksRange$1="\\ufe20-\\ufe2f",rsComboSymbolsRange$1="\\u20d0-\\u20ff",rsComboRange$1=rsComboMarksRange$1+reComboHalfMarksRange$1+rsComboSymbolsRange$1,rsCombo$1="["+rsComboRange$1+"]",reComboMark=RegExp(rsCombo$1,"g");function deburr$1(e){return e=toString$2(e),e&&e.replace(reLatin,deburrLetter).replace(reComboMark,"")}var deburr_1=deburr$1,reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function asciiWords$1(e){return e.match(reAsciiWord)||[]}var _asciiWords=asciiWords$1,reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hasUnicodeWord$1(e){return reHasUnicodeWord.test(e)}var _hasUnicodeWord=hasUnicodeWord$1,rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsDingbatRange="\\u2700-\\u27bf",rsLowerRange="a-z\\xdf-\\xf6\\xf8-\\xff",rsMathOpRange="\\xac\\xb1\\xd7\\xf7",rsNonCharRange="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rsPunctuationRange="\\u2000-\\u206f",rsSpaceRange=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rsUpperRange="A-Z\\xc0-\\xd6\\xd8-\\xde",rsVarRange="\\ufe0e\\ufe0f",rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange,rsApos$1="['’]",rsBreak="["+rsBreakRange+"]",rsCombo="["+rsComboRange+"]",rsDigits="\\d+",rsDingbat="["+rsDingbatRange+"]",rsLower="["+rsLowerRange+"]",rsMisc="[^"+rsAstralRange+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper="["+rsUpperRange+"]",rsZWJ="\\u200d",rsMiscLower="(?:"+rsLower+"|"+rsMisc+")",rsMiscUpper="(?:"+rsUpper+"|"+rsMisc+")",rsOptContrLower="(?:"+rsApos$1+"(?:d|ll|m|re|s|t|ve))?",rsOptContrUpper="(?:"+rsApos$1+"(?:D|LL|M|RE|S|T|VE))?",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsOrdLower="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rsOrdUpper="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsEmoji="(?:"+[rsDingbat,rsRegional,rsSurrPair].join("|")+")"+rsSeq,reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+"+rsOptContrLower+"(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsMiscUpper+"+"+rsOptContrUpper+"(?="+[rsBreak,rsUpper+rsMiscLower,"$"].join("|")+")",rsUpper+"?"+rsMiscLower+"+"+rsOptContrLower,rsUpper+"+"+rsOptContrUpper,rsOrdUpper,rsOrdLower,rsDigits,rsEmoji].join("|"),"g");function unicodeWords$1(e){return e.match(reUnicodeWord)||[]}var _unicodeWords=unicodeWords$1,asciiWords=_asciiWords,hasUnicodeWord=_hasUnicodeWord,toString$1=toString_1,unicodeWords=_unicodeWords;function words$1(e,t,n){return e=toString$1(e),t=n?void 0:t,t===void 0?hasUnicodeWord(e)?unicodeWords(e):asciiWords(e):e.match(t)||[]}var words_1=words$1,arrayReduce=_arrayReduce,deburr=deburr_1,words=words_1,rsApos="['’]",reApos=RegExp(rsApos,"g");function createCompounder$1(e){return function(t){return arrayReduce(words(deburr(t).replace(reApos,"")),e,"")}}var _createCompounder=createCompounder$1,capitalize=capitalize_1,createCompounder=_createCompounder,camelCase=createCompounder(function(e,t,n){return t=t.toLowerCase(),e+(n?capitalize(t):t)}),camelCase_1=camelCase;const camelCase$1=getDefaultExportFromCjs(camelCase_1);function camelCaseKeys(e){return e?Object.keys(e).reduce((t,n)=>(t[camelCase$1(n)]=e[n],t),{}):{}}function isSet(e){return e!=null}function createTranslationOptions(e,t,n){let i=[{scope:t}];if(isSet(n.defaults)&&(i=i.concat(n.defaults)),isSet(n.defaultValue)){const r=typeof n.defaultValue=="function"?n.defaultValue(e,t,n):n.defaultValue;i.push({message:r}),delete n.defaultValue}return i}var isNumeric=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,mathceil=Math.ceil,mathfloor=Math.floor,bignumberError="[BigNumber Error] ",tooManyDigits=bignumberError+"Number primitive has more than 15 significant digits: ",BASE=1e14,LOG_BASE=14,MAX_SAFE_INTEGER$1=9007199254740991,POWS_TEN=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],SQRT_BASE=1e7,MAX=1e9;function clone(e){var t,n,i,r=S.prototype={constructor:S,toString:null,valueOf:null},a=new S(1),o=20,l=4,u=-7,d=21,m=-1e7,g=1e7,_=!1,v=1,w=0,E={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},x="0123456789abcdefghijklmnopqrstuvwxyz",M=!0;function S(y,$){var T,O,A,I,z,C,D,F,N=this;if(!(N instanceof S))return new S(y,$);if($==null){if(y&&y._isBigNumber===!0){N.s=y.s,!y.c||y.e>g?N.c=N.e=null:y.e<m?N.c=[N.e=0]:(N.e=y.e,N.c=y.c.slice());return}if((C=typeof y=="number")&&y*0==0){if(N.s=1/y<0?(y=-y,-1):1,y===~~y){for(I=0,z=y;z>=10;z/=10,I++);I>g?N.c=N.e=null:(N.e=I,N.c=[y]);return}F=String(y)}else{if(!isNumeric.test(F=String(y)))return i(N,F,C);N.s=F.charCodeAt(0)==45?(F=F.slice(1),-1):1}(I=F.indexOf("."))>-1&&(F=F.replace(".","")),(z=F.search(/e/i))>0?(I<0&&(I=z),I+=+F.slice(z+1),F=F.substring(0,z)):I<0&&(I=F.length)}else{if(intCheck($,2,x.length,"Base"),$==10&&M)return N=new S(y),q(N,o+N.e+1,l);if(F=String(y),C=typeof y=="number"){if(y*0!=0)return i(N,F,C,$);if(N.s=1/y<0?(F=F.slice(1),-1):1,S.DEBUG&&F.replace(/^0\.0*|\./,"").length>15)throw Error(tooManyDigits+y)}else N.s=F.charCodeAt(0)===45?(F=F.slice(1),-1):1;for(T=x.slice(0,$),I=z=0,D=F.length;z<D;z++)if(T.indexOf(O=F.charAt(z))<0){if(O=="."){if(z>I){I=D;continue}}else if(!A&&(F==F.toUpperCase()&&(F=F.toLowerCase())||F==F.toLowerCase()&&(F=F.toUpperCase()))){A=!0,z=-1,I=0;continue}return i(N,String(y),C,$)}C=!1,F=n(F,$,10,N.s),(I=F.indexOf("."))>-1?F=F.replace(".",""):I=F.length}for(z=0;F.charCodeAt(z)===48;z++);for(D=F.length;F.charCodeAt(--D)===48;);if(F=F.slice(z,++D)){if(D-=z,C&&S.DEBUG&&D>15&&(y>MAX_SAFE_INTEGER$1||y!==mathfloor(y)))throw Error(tooManyDigits+N.s*y);if((I=I-z-1)>g)N.c=N.e=null;else if(I<m)N.c=[N.e=0];else{if(N.e=I,N.c=[],z=(I+1)%LOG_BASE,I<0&&(z+=LOG_BASE),z<D){for(z&&N.c.push(+F.slice(0,z)),D-=LOG_BASE;z<D;)N.c.push(+F.slice(z,z+=LOG_BASE));z=LOG_BASE-(F=F.slice(z)).length}else z-=D;for(;z--;F+="0");N.c.push(+F)}}else N.c=[N.e=0]}S.clone=clone,S.ROUND_UP=0,S.ROUND_DOWN=1,S.ROUND_CEIL=2,S.ROUND_FLOOR=3,S.ROUND_HALF_UP=4,S.ROUND_HALF_DOWN=5,S.ROUND_HALF_EVEN=6,S.ROUND_HALF_CEIL=7,S.ROUND_HALF_FLOOR=8,S.EUCLID=9,S.config=S.set=function(y){var $,T;if(y!=null)if(typeof y=="object"){if(y.hasOwnProperty($="DECIMAL_PLACES")&&(T=y[$],intCheck(T,0,MAX,$),o=T),y.hasOwnProperty($="ROUNDING_MODE")&&(T=y[$],intCheck(T,0,8,$),l=T),y.hasOwnProperty($="EXPONENTIAL_AT")&&(T=y[$],T&&T.pop?(intCheck(T[0],-MAX,0,$),intCheck(T[1],0,MAX,$),u=T[0],d=T[1]):(intCheck(T,-MAX,MAX,$),u=-(d=T<0?-T:T))),y.hasOwnProperty($="RANGE"))if(T=y[$],T&&T.pop)intCheck(T[0],-MAX,-1,$),intCheck(T[1],1,MAX,$),m=T[0],g=T[1];else if(intCheck(T,-MAX,MAX,$),T)m=-(g=T<0?-T:T);else throw Error(bignumberError+$+" cannot be zero: "+T);if(y.hasOwnProperty($="CRYPTO"))if(T=y[$],T===!!T)if(T)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))_=T;else throw _=!T,Error(bignumberError+"crypto unavailable");else _=T;else throw Error(bignumberError+$+" not true or false: "+T);if(y.hasOwnProperty($="MODULO_MODE")&&(T=y[$],intCheck(T,0,9,$),v=T),y.hasOwnProperty($="POW_PRECISION")&&(T=y[$],intCheck(T,0,MAX,$),w=T),y.hasOwnProperty($="FORMAT"))if(T=y[$],typeof T=="object")E=T;else throw Error(bignumberError+$+" not an object: "+T);if(y.hasOwnProperty($="ALPHABET"))if(T=y[$],typeof T=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(T))M=T.slice(0,10)=="0123456789",x=T;else throw Error(bignumberError+$+" invalid: "+T)}else throw Error(bignumberError+"Object expected: "+y);return{DECIMAL_PLACES:o,ROUNDING_MODE:l,EXPONENTIAL_AT:[u,d],RANGE:[m,g],CRYPTO:_,MODULO_MODE:v,POW_PRECISION:w,FORMAT:E,ALPHABET:x}},S.isBigNumber=function(y){if(!y||y._isBigNumber!==!0)return!1;if(!S.DEBUG)return!0;var $,T,O=y.c,A=y.e,I=y.s;t:if({}.toString.call(O)=="[object Array]"){if((I===1||I===-1)&&A>=-MAX&&A<=MAX&&A===mathfloor(A)){if(O[0]===0){if(A===0&&O.length===1)return!0;break t}if($=(A+1)%LOG_BASE,$<1&&($+=LOG_BASE),String(O[0]).length==$){for($=0;$<O.length;$++)if(T=O[$],T<0||T>=BASE||T!==mathfloor(T))break t;if(T!==0)return!0}}}else if(O===null&&A===null&&(I===null||I===1||I===-1))return!0;throw Error(bignumberError+"Invalid BigNumber: "+y)},S.maximum=S.max=function(){return W(arguments,-1)},S.minimum=S.min=function(){return W(arguments,1)},S.random=function(){var y=9007199254740992,$=Math.random()*y&2097151?function(){return mathfloor(Math.random()*y)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(T){var O,A,I,z,C,D=0,F=[],N=new S(a);if(T==null?T=o:intCheck(T,0,MAX),z=mathceil(T/LOG_BASE),_)if(crypto.getRandomValues){for(O=crypto.getRandomValues(new Uint32Array(z*=2));D<z;)C=O[D]*131072+(O[D+1]>>>11),C>=9e15?(A=crypto.getRandomValues(new Uint32Array(2)),O[D]=A[0],O[D+1]=A[1]):(F.push(C%1e14),D+=2);D=z/2}else if(crypto.randomBytes){for(O=crypto.randomBytes(z*=7);D<z;)C=(O[D]&31)*281474976710656+O[D+1]*1099511627776+O[D+2]*4294967296+O[D+3]*16777216+(O[D+4]<<16)+(O[D+5]<<8)+O[D+6],C>=9e15?crypto.randomBytes(7).copy(O,D):(F.push(C%1e14),D+=7);D=z/7}else throw _=!1,Error(bignumberError+"crypto unavailable");if(!_)for(;D<z;)C=$(),C<9e15&&(F[D++]=C%1e14);for(z=F[--D],T%=LOG_BASE,z&&T&&(C=POWS_TEN[LOG_BASE-T],F[D]=mathfloor(z/C)*C);F[D]===0;F.pop(),D--);if(D<0)F=[I=0];else{for(I=-1;F[0]===0;F.splice(0,1),I-=LOG_BASE);for(D=1,C=F[0];C>=10;C/=10,D++);D<LOG_BASE&&(I-=LOG_BASE-D)}return N.e=I,N.c=F,N}}(),S.sum=function(){for(var y=1,$=arguments,T=new S($[0]);y<$.length;)T=T.plus($[y++]);return T},n=function(){var y="0123456789";function $(T,O,A,I){for(var z,C=[0],D,F=0,N=T.length;F<N;){for(D=C.length;D--;C[D]*=O);for(C[0]+=I.indexOf(T.charAt(F++)),z=0;z<C.length;z++)C[z]>A-1&&(C[z+1]==null&&(C[z+1]=0),C[z+1]+=C[z]/A|0,C[z]%=A)}return C.reverse()}return function(T,O,A,I,z){var C,D,F,N,G,K,Z,et,st=T.indexOf("."),rt=o,Q=l;for(st>=0&&(N=w,w=0,T=T.replace(".",""),et=new S(O),K=et.pow(T.length-st),w=N,et.c=$(toFixedPoint(coeffToString(K.c),K.e,"0"),10,A,y),et.e=et.c.length),Z=$(T,O,A,z?(C=x,y):(C=y,x)),F=N=Z.length;Z[--N]==0;Z.pop());if(!Z[0])return C.charAt(0);if(st<0?--F:(K.c=Z,K.e=F,K.s=I,K=t(K,et,rt,Q,A),Z=K.c,G=K.r,F=K.e),D=F+rt+1,st=Z[D],N=A/2,G=G||D<0||Z[D+1]!=null,G=Q<4?(st!=null||G)&&(Q==0||Q==(K.s<0?3:2)):st>N||st==N&&(Q==4||G||Q==6&&Z[D-1]&1||Q==(K.s<0?8:7)),D<1||!Z[0])T=G?toFixedPoint(C.charAt(1),-rt,C.charAt(0)):C.charAt(0);else{if(Z.length=D,G)for(--A;++Z[--D]>A;)Z[D]=0,D||(++F,Z=[1].concat(Z));for(N=Z.length;!Z[--N];);for(st=0,T="";st<=N;T+=C.charAt(Z[st++]));T=toFixedPoint(T,F,C.charAt(0))}return T}}(),t=function(){function y(O,A,I){var z,C,D,F,N=0,G=O.length,K=A%SQRT_BASE,Z=A/SQRT_BASE|0;for(O=O.slice();G--;)D=O[G]%SQRT_BASE,F=O[G]/SQRT_BASE|0,z=Z*D+F*K,C=K*D+z%SQRT_BASE*SQRT_BASE+N,N=(C/I|0)+(z/SQRT_BASE|0)+Z*F,O[G]=C%I;return N&&(O=[N].concat(O)),O}function $(O,A,I,z){var C,D;if(I!=z)D=I>z?1:-1;else for(C=D=0;C<I;C++)if(O[C]!=A[C]){D=O[C]>A[C]?1:-1;break}return D}function T(O,A,I,z){for(var C=0;I--;)O[I]-=C,C=O[I]<A[I]?1:0,O[I]=C*z+O[I]-A[I];for(;!O[0]&&O.length>1;O.splice(0,1));}return function(O,A,I,z,C){var D,F,N,G,K,Z,et,st,rt,Q,J,ht,_t,Dt,Wt,Pt,Mt,wt=O.s==A.s?1:-1,Et=O.c,ft=A.c;if(!Et||!Et[0]||!ft||!ft[0])return new S(!O.s||!A.s||(Et?ft&&Et[0]==ft[0]:!ft)?NaN:Et&&Et[0]==0||!ft?wt*0:wt/0);for(st=new S(wt),rt=st.c=[],F=O.e-A.e,wt=I+F+1,C||(C=BASE,F=bitFloor(O.e/LOG_BASE)-bitFloor(A.e/LOG_BASE),wt=wt/LOG_BASE|0),N=0;ft[N]==(Et[N]||0);N++);if(ft[N]>(Et[N]||0)&&F--,wt<0)rt.push(1),G=!0;else{for(Dt=Et.length,Pt=ft.length,N=0,wt+=2,K=mathfloor(C/(ft[0]+1)),K>1&&(ft=y(ft,K,C),Et=y(Et,K,C),Pt=ft.length,Dt=Et.length),_t=Pt,Q=Et.slice(0,Pt),J=Q.length;J<Pt;Q[J++]=0);Mt=ft.slice(),Mt=[0].concat(Mt),Wt=ft[0],ft[1]>=C/2&&Wt++;do{if(K=0,D=$(ft,Q,Pt,J),D<0){if(ht=Q[0],Pt!=J&&(ht=ht*C+(Q[1]||0)),K=mathfloor(ht/Wt),K>1)for(K>=C&&(K=C-1),Z=y(ft,K,C),et=Z.length,J=Q.length;$(Z,Q,et,J)==1;)K--,T(Z,Pt<et?Mt:ft,et,C),et=Z.length,D=1;else K==0&&(D=K=1),Z=ft.slice(),et=Z.length;if(et<J&&(Z=[0].concat(Z)),T(Q,Z,J,C),J=Q.length,D==-1)for(;$(ft,Q,Pt,J)<1;)K++,T(Q,Pt<J?Mt:ft,J,C),J=Q.length}else D===0&&(K++,Q=[0]);rt[N++]=K,Q[0]?Q[J++]=Et[_t]||0:(Q=[Et[_t]],J=1)}while((_t++<Dt||Q[0]!=null)&&wt--);G=Q[0]!=null,rt[0]||rt.splice(0,1)}if(C==BASE){for(N=1,wt=rt[0];wt>=10;wt/=10,N++);q(st,I+(st.e=N+F*LOG_BASE-1)+1,z,G)}else st.e=F,st.r=+G;return st}}();function R(y,$,T,O){var A,I,z,C,D;if(T==null?T=l:intCheck(T,0,8),!y.c)return y.toString();if(A=y.c[0],z=y.e,$==null)D=coeffToString(y.c),D=O==1||O==2&&(z<=u||z>=d)?toExponential(D,z):toFixedPoint(D,z,"0");else if(y=q(new S(y),$,T),I=y.e,D=coeffToString(y.c),C=D.length,O==1||O==2&&($<=I||I<=u)){for(;C<$;D+="0",C++);D=toExponential(D,I)}else if($-=z,D=toFixedPoint(D,I,"0"),I+1>C){if(--$>0)for(D+=".";$--;D+="0");}else if($+=I-C,$>0)for(I+1==C&&(D+=".");$--;D+="0");return y.s<0&&A?"-"+D:D}function W(y,$){for(var T,O,A=1,I=new S(y[0]);A<y.length;A++)O=new S(y[A]),(!O.s||(T=compare(I,O))===$||T===0&&I.s===$)&&(I=O);return I}function V(y,$,T){for(var O=1,A=$.length;!$[--A];$.pop());for(A=$[0];A>=10;A/=10,O++);return(T=O+T*LOG_BASE-1)>g?y.c=y.e=null:T<m?y.c=[y.e=0]:(y.e=T,y.c=$),y}i=function(){var y=/^(-?)0([xbo])(?=\w[\w.]*$)/i,$=/^([^.]+)\.$/,T=/^\.([^.]+)$/,O=/^-?(Infinity|NaN)$/,A=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(I,z,C,D){var F,N=C?z:z.replace(A,"");if(O.test(N))I.s=isNaN(N)?null:N<0?-1:1;else{if(!C&&(N=N.replace(y,function(G,K,Z){return F=(Z=Z.toLowerCase())=="x"?16:Z=="b"?2:8,!D||D==F?K:G}),D&&(F=D,N=N.replace($,"$1").replace(T,"0.$1")),z!=N))return new S(N,F);if(S.DEBUG)throw Error(bignumberError+"Not a"+(D?" base "+D:"")+" number: "+z);I.s=null}I.c=I.e=null}}();function q(y,$,T,O){var A,I,z,C,D,F,N,G=y.c,K=POWS_TEN;if(G){t:{for(A=1,C=G[0];C>=10;C/=10,A++);if(I=$-A,I<0)I+=LOG_BASE,z=$,D=G[F=0],N=mathfloor(D/K[A-z-1]%10);else if(F=mathceil((I+1)/LOG_BASE),F>=G.length)if(O){for(;G.length<=F;G.push(0));D=N=0,A=1,I%=LOG_BASE,z=I-LOG_BASE+1}else break t;else{for(D=C=G[F],A=1;C>=10;C/=10,A++);I%=LOG_BASE,z=I-LOG_BASE+A,N=z<0?0:mathfloor(D/K[A-z-1]%10)}if(O=O||$<0||G[F+1]!=null||(z<0?D:D%K[A-z-1]),O=T<4?(N||O)&&(T==0||T==(y.s<0?3:2)):N>5||N==5&&(T==4||O||T==6&&(I>0?z>0?D/K[A-z]:0:G[F-1])%10&1||T==(y.s<0?8:7)),$<1||!G[0])return G.length=0,O?($-=y.e+1,G[0]=K[(LOG_BASE-$%LOG_BASE)%LOG_BASE],y.e=-$||0):G[0]=y.e=0,y;if(I==0?(G.length=F,C=1,F--):(G.length=F+1,C=K[LOG_BASE-I],G[F]=z>0?mathfloor(D/K[A-z]%K[z])*C:0),O)for(;;)if(F==0){for(I=1,z=G[0];z>=10;z/=10,I++);for(z=G[0]+=C,C=1;z>=10;z/=10,C++);I!=C&&(y.e++,G[0]==BASE&&(G[0]=1));break}else{if(G[F]+=C,G[F]!=BASE)break;G[F--]=0,C=1}for(I=G.length;G[--I]===0;G.pop());}y.e>g?y.c=y.e=null:y.e<m&&(y.c=[y.e=0])}return y}function U(y){var $,T=y.e;return T===null?y.toString():($=coeffToString(y.c),$=T<=u||T>=d?toExponential($,T):toFixedPoint($,T,"0"),y.s<0?"-"+$:$)}return r.absoluteValue=r.abs=function(){var y=new S(this);return y.s<0&&(y.s=1),y},r.comparedTo=function(y,$){return compare(this,new S(y,$))},r.decimalPlaces=r.dp=function(y,$){var T,O,A,I=this;if(y!=null)return intCheck(y,0,MAX),$==null?$=l:intCheck($,0,8),q(new S(I),y+I.e+1,$);if(!(T=I.c))return null;if(O=((A=T.length-1)-bitFloor(this.e/LOG_BASE))*LOG_BASE,A=T[A])for(;A%10==0;A/=10,O--);return O<0&&(O=0),O},r.dividedBy=r.div=function(y,$){return t(this,new S(y,$),o,l)},r.dividedToIntegerBy=r.idiv=function(y,$){return t(this,new S(y,$),0,1)},r.exponentiatedBy=r.pow=function(y,$){var T,O,A,I,z,C,D,F,N,G=this;if(y=new S(y),y.c&&!y.isInteger())throw Error(bignumberError+"Exponent not an integer: "+U(y));if($!=null&&($=new S($)),C=y.e>14,!G.c||!G.c[0]||G.c[0]==1&&!G.e&&G.c.length==1||!y.c||!y.c[0])return N=new S(Math.pow(+U(G),C?y.s*(2-isOdd(y)):+U(y))),$?N.mod($):N;if(D=y.s<0,$){if($.c?!$.c[0]:!$.s)return new S(NaN);O=!D&&G.isInteger()&&$.isInteger(),O&&(G=G.mod($))}else{if(y.e>9&&(G.e>0||G.e<-1||(G.e==0?G.c[0]>1||C&&G.c[1]>=24e7:G.c[0]<8e13||C&&G.c[0]<=9999975e7)))return I=G.s<0&&isOdd(y)?-0:0,G.e>-1&&(I=1/I),new S(D?1/I:I);w&&(I=mathceil(w/LOG_BASE+2))}for(C?(T=new S(.5),D&&(y.s=1),F=isOdd(y)):(A=Math.abs(+U(y)),F=A%2),N=new S(a);;){if(F){if(N=N.times(G),!N.c)break;I?N.c.length>I&&(N.c.length=I):O&&(N=N.mod($))}if(A){if(A=mathfloor(A/2),A===0)break;F=A%2}else if(y=y.times(T),q(y,y.e+1,1),y.e>14)F=isOdd(y);else{if(A=+U(y),A===0)break;F=A%2}G=G.times(G),I?G.c&&G.c.length>I&&(G.c.length=I):O&&(G=G.mod($))}return O?N:(D&&(N=a.div(N)),$?N.mod($):I?q(N,w,l,z):N)},r.integerValue=function(y){var $=new S(this);return y==null?y=l:intCheck(y,0,8),q($,$.e+1,y)},r.isEqualTo=r.eq=function(y,$){return compare(this,new S(y,$))===0},r.isFinite=function(){return!!this.c},r.isGreaterThan=r.gt=function(y,$){return compare(this,new S(y,$))>0},r.isGreaterThanOrEqualTo=r.gte=function(y,$){return($=compare(this,new S(y,$)))===1||$===0},r.isInteger=function(){return!!this.c&&bitFloor(this.e/LOG_BASE)>this.c.length-2},r.isLessThan=r.lt=function(y,$){return compare(this,new S(y,$))<0},r.isLessThanOrEqualTo=r.lte=function(y,$){return($=compare(this,new S(y,$)))===-1||$===0},r.isNaN=function(){return!this.s},r.isNegative=function(){return this.s<0},r.isPositive=function(){return this.s>0},r.isZero=function(){return!!this.c&&this.c[0]==0},r.minus=function(y,$){var T,O,A,I,z=this,C=z.s;if(y=new S(y,$),$=y.s,!C||!$)return new S(NaN);if(C!=$)return y.s=-$,z.plus(y);var D=z.e/LOG_BASE,F=y.e/LOG_BASE,N=z.c,G=y.c;if(!D||!F){if(!N||!G)return N?(y.s=-$,y):new S(G?z:NaN);if(!N[0]||!G[0])return G[0]?(y.s=-$,y):new S(N[0]?z:l==3?-0:0)}if(D=bitFloor(D),F=bitFloor(F),N=N.slice(),C=D-F){for((I=C<0)?(C=-C,A=N):(F=D,A=G),A.reverse(),$=C;$--;A.push(0));A.reverse()}else for(O=(I=(C=N.length)<($=G.length))?C:$,C=$=0;$<O;$++)if(N[$]!=G[$]){I=N[$]<G[$];break}if(I&&(A=N,N=G,G=A,y.s=-y.s),$=(O=G.length)-(T=N.length),$>0)for(;$--;N[T++]=0);for($=BASE-1;O>C;){if(N[--O]<G[O]){for(T=O;T&&!N[--T];N[T]=$);--N[T],N[O]+=BASE}N[O]-=G[O]}for(;N[0]==0;N.splice(0,1),--F);return N[0]?V(y,N,F):(y.s=l==3?-1:1,y.c=[y.e=0],y)},r.modulo=r.mod=function(y,$){var T,O,A=this;return y=new S(y,$),!A.c||!y.s||y.c&&!y.c[0]?new S(NaN):!y.c||A.c&&!A.c[0]?new S(A):(v==9?(O=y.s,y.s=1,T=t(A,y,0,3),y.s=O,T.s*=O):T=t(A,y,0,v),y=A.minus(T.times(y)),!y.c[0]&&v==1&&(y.s=A.s),y)},r.multipliedBy=r.times=function(y,$){var T,O,A,I,z,C,D,F,N,G,K,Z,et,st,rt,Q=this,J=Q.c,ht=(y=new S(y,$)).c;if(!J||!ht||!J[0]||!ht[0])return!Q.s||!y.s||J&&!J[0]&&!ht||ht&&!ht[0]&&!J?y.c=y.e=y.s=null:(y.s*=Q.s,!J||!ht?y.c=y.e=null:(y.c=[0],y.e=0)),y;for(O=bitFloor(Q.e/LOG_BASE)+bitFloor(y.e/LOG_BASE),y.s*=Q.s,D=J.length,G=ht.length,D<G&&(et=J,J=ht,ht=et,A=D,D=G,G=A),A=D+G,et=[];A--;et.push(0));for(st=BASE,rt=SQRT_BASE,A=G;--A>=0;){for(T=0,K=ht[A]%rt,Z=ht[A]/rt|0,z=D,I=A+z;I>A;)F=J[--z]%rt,N=J[z]/rt|0,C=Z*F+N*K,F=K*F+C%rt*rt+et[I]+T,T=(F/st|0)+(C/rt|0)+Z*N,et[I--]=F%st;et[I]=T}return T?++O:et.splice(0,1),V(y,et,O)},r.negated=function(){var y=new S(this);return y.s=-y.s||null,y},r.plus=function(y,$){var T,O=this,A=O.s;if(y=new S(y,$),$=y.s,!A||!$)return new S(NaN);if(A!=$)return y.s=-$,O.minus(y);var I=O.e/LOG_BASE,z=y.e/LOG_BASE,C=O.c,D=y.c;if(!I||!z){if(!C||!D)return new S(A/0);if(!C[0]||!D[0])return D[0]?y:new S(C[0]?O:A*0)}if(I=bitFloor(I),z=bitFloor(z),C=C.slice(),A=I-z){for(A>0?(z=I,T=D):(A=-A,T=C),T.reverse();A--;T.push(0));T.reverse()}for(A=C.length,$=D.length,A-$<0&&(T=D,D=C,C=T,$=A),A=0;$;)A=(C[--$]=C[$]+D[$]+A)/BASE|0,C[$]=BASE===C[$]?0:C[$]%BASE;return A&&(C=[A].concat(C),++z),V(y,C,z)},r.precision=r.sd=function(y,$){var T,O,A,I=this;if(y!=null&&y!==!!y)return intCheck(y,1,MAX),$==null?$=l:intCheck($,0,8),q(new S(I),y,$);if(!(T=I.c))return null;if(A=T.length-1,O=A*LOG_BASE+1,A=T[A]){for(;A%10==0;A/=10,O--);for(A=T[0];A>=10;A/=10,O++);}return y&&I.e+1>O&&(O=I.e+1),O},r.shiftedBy=function(y){return intCheck(y,-MAX_SAFE_INTEGER$1,MAX_SAFE_INTEGER$1),this.times("1e"+y)},r.squareRoot=r.sqrt=function(){var y,$,T,O,A,I=this,z=I.c,C=I.s,D=I.e,F=o+4,N=new S("0.5");if(C!==1||!z||!z[0])return new S(!C||C<0&&(!z||z[0])?NaN:z?I:1/0);if(C=Math.sqrt(+U(I)),C==0||C==1/0?($=coeffToString(z),($.length+D)%2==0&&($+="0"),C=Math.sqrt(+$),D=bitFloor((D+1)/2)-(D<0||D%2),C==1/0?$="5e"+D:($=C.toExponential(),$=$.slice(0,$.indexOf("e")+1)+D),T=new S($)):T=new S(C+""),T.c[0]){for(D=T.e,C=D+F,C<3&&(C=0);;)if(A=T,T=N.times(A.plus(t(I,A,F,1))),coeffToString(A.c).slice(0,C)===($=coeffToString(T.c)).slice(0,C))if(T.e<D&&--C,$=$.slice(C-3,C+1),$=="9999"||!O&&$=="4999"){if(!O&&(q(A,A.e+o+2,0),A.times(A).eq(I))){T=A;break}F+=4,C+=4,O=1}else{(!+$||!+$.slice(1)&&$.charAt(0)=="5")&&(q(T,T.e+o+2,1),y=!T.times(T).eq(I));break}}return q(T,T.e+o+1,l,y)},r.toExponential=function(y,$){return y!=null&&(intCheck(y,0,MAX),y++),R(this,y,$,1)},r.toFixed=function(y,$){return y!=null&&(intCheck(y,0,MAX),y=y+this.e+1),R(this,y,$)},r.toFormat=function(y,$,T){var O,A=this;if(T==null)y!=null&&$&&typeof $=="object"?(T=$,$=null):y&&typeof y=="object"?(T=y,y=$=null):T=E;else if(typeof T!="object")throw Error(bignumberError+"Argument not an object: "+T);if(O=A.toFixed(y,$),A.c){var I,z=O.split("."),C=+T.groupSize,D=+T.secondaryGroupSize,F=T.groupSeparator||"",N=z[0],G=z[1],K=A.s<0,Z=K?N.slice(1):N,et=Z.length;if(D&&(I=C,C=D,D=I,et-=I),C>0&&et>0){for(I=et%C||C,N=Z.substr(0,I);I<et;I+=C)N+=F+Z.substr(I,C);D>0&&(N+=F+Z.slice(I)),K&&(N="-"+N)}O=G?N+(T.decimalSeparator||"")+((D=+T.fractionGroupSize)?G.replace(new RegExp("\\d{"+D+"}\\B","g"),"$&"+(T.fractionGroupSeparator||"")):G):N}return(T.prefix||"")+O+(T.suffix||"")},r.toFraction=function(y){var $,T,O,A,I,z,C,D,F,N,G,K,Z=this,et=Z.c;if(y!=null&&(C=new S(y),!C.isInteger()&&(C.c||C.s!==1)||C.lt(a)))throw Error(bignumberError+"Argument "+(C.isInteger()?"out of range: ":"not an integer: ")+U(C));if(!et)return new S(Z);for($=new S(a),F=T=new S(a),O=D=new S(a),K=coeffToString(et),I=$.e=K.length-Z.e-1,$.c[0]=POWS_TEN[(z=I%LOG_BASE)<0?LOG_BASE+z:z],y=!y||C.comparedTo($)>0?I>0?$:F:C,z=g,g=1/0,C=new S(K),D.c[0]=0;N=t(C,$,0,1),A=T.plus(N.times(O)),A.comparedTo(y)!=1;)T=O,O=A,F=D.plus(N.times(A=F)),D=A,$=C.minus(N.times(A=$)),C=A;return A=t(y.minus(T),O,0,1),D=D.plus(A.times(F)),T=T.plus(A.times(O)),D.s=F.s=Z.s,I=I*2,G=t(F,O,I,l).minus(Z).abs().comparedTo(t(D,T,I,l).minus(Z).abs())<1?[F,O]:[D,T],g=z,G},r.toNumber=function(){return+U(this)},r.toPrecision=function(y,$){return y!=null&&intCheck(y,1,MAX),R(this,y,$,2)},r.toString=function(y){var $,T=this,O=T.s,A=T.e;return A===null?O?($="Infinity",O<0&&($="-"+$)):$="NaN":(y==null?$=A<=u||A>=d?toExponential(coeffToString(T.c),A):toFixedPoint(coeffToString(T.c),A,"0"):y===10&&M?(T=q(new S(T),o+A+1,l),$=toFixedPoint(coeffToString(T.c),T.e,"0")):(intCheck(y,2,x.length,"Base"),$=n(toFixedPoint(coeffToString(T.c),A,"0"),10,y,O,!0)),O<0&&T.c[0]&&($="-"+$)),$},r.valueOf=r.toJSON=function(){return U(this)},r._isBigNumber=!0,r[Symbol.toStringTag]="BigNumber",r[Symbol.for("nodejs.util.inspect.custom")]=r.valueOf,e!=null&&S.set(e),S}function bitFloor(e){var t=e|0;return e>0||e===t?t:t-1}function coeffToString(e){for(var t,n,i=1,r=e.length,a=e[0]+"";i<r;){for(t=e[i++]+"",n=LOG_BASE-t.length;n--;t="0"+t);a+=t}for(r=a.length;a.charCodeAt(--r)===48;);return a.slice(0,r+1||1)}function compare(e,t){var n,i,r=e.c,a=t.c,o=e.s,l=t.s,u=e.e,d=t.e;if(!o||!l)return null;if(n=r&&!r[0],i=a&&!a[0],n||i)return n?i?0:-l:o;if(o!=l)return o;if(n=o<0,i=u==d,!r||!a)return i?0:!r^n?1:-1;if(!i)return u>d^n?1:-1;for(l=(u=r.length)<(d=a.length)?u:d,o=0;o<l;o++)if(r[o]!=a[o])return r[o]>a[o]^n?1:-1;return u==d?0:u>d^n?1:-1}function intCheck(e,t,n,i){if(e<t||e>n||e!==mathfloor(e))throw Error(bignumberError+(i||"Argument")+(typeof e=="number"?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function isOdd(e){var t=e.c.length-1;return bitFloor(e.e/LOG_BASE)==t&&e.c[t]%2!=0}function toExponential(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function toFixedPoint(e,t,n){var i,r;if(t<0){for(r=n+".";++t;r+=n);e=r+e}else if(i=e.length,++t>i){for(r=n,t-=i;--t;r+=n);e+=r}else t<i&&(e=e.slice(0,t)+"."+e.slice(t));return e}var BigNumber=clone(),RoundingModeMap;(function(e){e[e.up=BigNumber.ROUND_UP]="up",e[e.down=BigNumber.ROUND_DOWN]="down",e[e.truncate=BigNumber.ROUND_DOWN]="truncate",e[e.halfUp=BigNumber.ROUND_HALF_UP]="halfUp",e[e.default=BigNumber.ROUND_HALF_UP]="default",e[e.halfDown=BigNumber.ROUND_HALF_DOWN]="halfDown",e[e.halfEven=BigNumber.ROUND_HALF_EVEN]="halfEven",e[e.banker=BigNumber.ROUND_HALF_EVEN]="banker",e[e.ceiling=BigNumber.ROUND_CEIL]="ceiling",e[e.ceil=BigNumber.ROUND_CEIL]="ceil",e[e.floor=BigNumber.ROUND_FLOOR]="floor"})(RoundingModeMap||(RoundingModeMap={}));function expandRoundMode(e){var t;return(t=RoundingModeMap[e])!==null&&t!==void 0?t:RoundingModeMap.default}var MAX_SAFE_INTEGER=9007199254740991,nativeFloor=Math.floor;function baseRepeat$1(e,t){var n="";if(!e||t<1||t>MAX_SAFE_INTEGER)return n;do t%2&&(n+=e),t=nativeFloor(t/2),t&&(e+=e);while(t);return n}var _baseRepeat=baseRepeat$1,isFunction=isFunction_1,isLength$1=isLength_1;function isArrayLike$4(e){return e!=null&&isLength$1(e.length)&&!isFunction(e)}var isArrayLike_1=isArrayLike$4,eq$1=eq_1,isArrayLike$3=isArrayLike_1,isIndex$1=_isIndex,isObject$2=isObject_1;function isIterateeCall$3(e,t,n){if(!isObject$2(n))return!1;var i=typeof t;return(i=="number"?isArrayLike$3(n)&&isIndex$1(t,n.length):i=="string"&&t in n)?eq$1(n[t],e):!1}var _isIterateeCall=isIterateeCall$3,reWhitespace=/\s/;function trimmedEndIndex$1(e){for(var t=e.length;t--&&reWhitespace.test(e.charAt(t)););return t}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(e){return e&&e.slice(0,trimmedEndIndex(e)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,baseTrim=_baseTrim,isObject$1=isObject_1,isSymbol$1=isSymbol_1,NAN=0/0,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$1(e){if(typeof e=="number")return e;if(isSymbol$1(e))return NAN;if(isObject$1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=isObject$1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=baseTrim(e);var n=reIsBinary.test(e);return n||reIsOctal.test(e)?freeParseInt(e.slice(2),n?2:8):reIsBadHex.test(e)?NAN:+e}var toNumber_1=toNumber$1,toNumber=toNumber_1,INFINITY$1=1/0,MAX_INTEGER=17976931348623157e292;function toFinite$2(e){if(!e)return e===0?e:0;if(e=toNumber(e),e===INFINITY$1||e===-INFINITY$1){var t=e<0?-1:1;return t*MAX_INTEGER}return e===e?e:0}var toFinite_1=toFinite$2,toFinite$1=toFinite_1;function toInteger$1(e){var t=toFinite$1(e),n=t%1;return t===t?n?t-n:t:0}var toInteger_1=toInteger$1,baseRepeat=_baseRepeat,isIterateeCall$2=_isIterateeCall,toInteger=toInteger_1,toString=toString_1;function repeat(e,t,n){return(n?isIterateeCall$2(e,t,n):t===void 0)?t=1:t=toInteger(t),baseRepeat(toString(e),t)}var repeat_1=repeat;const repeat$1=getDefaultExportFromCjs(repeat_1);function digitCount(e){return e.isZero()?1:Math.floor(Math.log10(e.abs().toNumber())+1)}function getAbsolutePrecision(e,{precision:t,significant:n}){return n&&t!==null&&t>0?t-digitCount(e):t}function roundNumber(e,t){const n=getAbsolutePrecision(e,t);if(n===null)return e.toString();const i=expandRoundMode(t.roundMode);if(n>=0)return e.toFixed(n,i);const r=Math.pow(10,Math.abs(n));return e=new BigNumber(e.div(r).toFixed(0,i)).times(r),e.toString()}function replaceInFormat(e,{formattedNumber:t,unit:n}){return e.replace("%n",t).replace("%u",n)}function computeSignificand({significand:e,whole:t,precision:n}){if(t==="0"||n===null)return e;const i=Math.max(0,n-t.length);return(e??"").substr(0,i)}function formatNumber(e,t){var n,i,r;const a=new BigNumber(e);if(t.raise&&!a.isFinite())throw new Error(`"${e}" is not a valid numeric value`);const o=roundNumber(a,t),l=new BigNumber(o),u=l.lt(0),d=l.isZero();let[m,g]=o.split(".");const _=[];let v;const w=(n=t.format)!==null&&n!==void 0?n:"%n",E=(i=t.negativeFormat)!==null&&i!==void 0?i:`-${w}`,x=u&&!d?E:w;for(m=m.replace("-","");m.length>0;)_.unshift(m.substr(Math.max(0,m.length-3),3)),m=m.substr(0,m.length-3);return m=_.join(""),v=_.join(t.delimiter),t.significant?g=computeSignificand({whole:m,significand:g,precision:t.precision}):g=g??repeat$1("0",(r=t.precision)!==null&&r!==void 0?r:0),t.stripInsignificantZeros&&g&&(g=g.replace(/0+$/,"")),a.isNaN()&&(v=e.toString()),g&&a.isFinite()&&(v+=(t.separator||".")+g),replaceInFormat(x,{formattedNumber:v,unit:t.unit})}function getFullScope(e,t,n){let i="";return(t instanceof String||typeof t=="string")&&(i=t),t instanceof Array&&(i=t.join(e.defaultSeparator)),n.scope&&(i=[n.scope,i].join(e.defaultSeparator)),i}function inferType(e){var t,n;if(e===null)return"null";const i=typeof e;return i!=="object"?i:((n=(t=e==null?void 0:e.constructor)===null||t===void 0?void 0:t.name)===null||n===void 0?void 0:n.toLowerCase())||"object"}function interpolate(e,t,n){n=Object.keys(n).reduce((r,a)=>(r[e.transformKey(a)]=n[a],r),{});const i=t.match(e.placeholder);if(!i)return t;for(;i.length;){let r;const a=i.shift(),o=a.replace(e.placeholder,"$1");isSet(n[o])?r=n[o].toString().replace(/\$/gm,"_#$#_"):o in n?r=e.nullPlaceholder(e,a,t,n):r=e.missingPlaceholder(e,a,t,n);const l=new RegExp(a.replace(/\{/gm,"\\{").replace(/\}/gm,"\\}"));t=t.replace(l,r)}return t.replace(/_#\$#_/g,"$")}function lookup(e,t,n={}){n=Object.assign({},n);const i="locale"in n?n.locale:e.locale,r=inferType(i),a=e.locales.get(r==="string"?i:typeof i).slice();t=getFullScope(e,t,n).split(e.defaultSeparator).map(l=>e.transformKey(l)).join(".");const o=a.map(l=>get$2(e.translations,[l,t].join(".")));return o.push(n.defaultValue),o.find(l=>isSet(l))}function numberToDelimited(e,t){const n=new BigNumber(e);if(!n.isFinite())return e.toString();if(!t.delimiterPattern.global)throw new Error(`options.delimiterPattern must be a global regular expression; received ${t.delimiterPattern}`);let[i,r]=n.toString().split(".");return i=i.replace(t.delimiterPattern,a=>`${a}${t.delimiter}`),[i,r].filter(Boolean).join(t.separator)}function arrayPush$2(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}var _arrayPush=arrayPush$2,Symbol$2=_Symbol,isArguments$1=isArguments_1,isArray$5=isArray_1,spreadableSymbol=Symbol$2?Symbol$2.isConcatSpreadable:void 0;function isFlattenable$1(e){return isArray$5(e)||isArguments$1(e)||!!(spreadableSymbol&&e&&e[spreadableSymbol])}var _isFlattenable=isFlattenable$1,arrayPush$1=_arrayPush,isFlattenable=_isFlattenable;function baseFlatten$2(e,t,n,i,r){var a=-1,o=e.length;for(n||(n=isFlattenable),r||(r=[]);++a<o;){var l=e[a];t>0&&n(l)?t>1?baseFlatten$2(l,t-1,n,i,r):arrayPush$1(r,l):i||(r[r.length]=l)}return r}var _baseFlatten=baseFlatten$2,ListCache$2=_ListCache;function stackClear$1(){this.__data__=new ListCache$2,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var _stackDelete=stackDelete$1;function stackGet$1(e){return this.__data__.get(e)}var _stackGet=stackGet$1;function stackHas$1(e){return this.__data__.has(e)}var _stackHas=stackHas$1,ListCache$1=_ListCache,Map$2=_Map,MapCache=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(e,t){var n=this.__data__;if(n instanceof ListCache$1){var i=n.__data__;if(!Map$2||i.length<LARGE_ARRAY_SIZE-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new MapCache(i)}return n.set(e,t),this.size=n.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$2(e){var t=this.__data__=new ListCache(e);this.size=t.size}Stack$2.prototype.clear=stackClear;Stack$2.prototype.delete=stackDelete;Stack$2.prototype.get=stackGet;Stack$2.prototype.has=stackHas;Stack$2.prototype.set=stackSet;var _Stack=Stack$2;function arraySome$1(e,t){for(var n=-1,i=e==null?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var _arraySome=arraySome$1,SetCache=_SetCache,arraySome=_arraySome,cacheHas=_cacheHas,COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays$2(e,t,n,i,r,a){var o=n&COMPARE_PARTIAL_FLAG$5,l=e.length,u=t.length;if(l!=u&&!(o&&u>l))return!1;var d=a.get(e),m=a.get(t);if(d&&m)return d==t&&m==e;var g=-1,_=!0,v=n&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(a.set(e,t),a.set(t,e);++g<l;){var w=e[g],E=t[g];if(i)var x=o?i(E,w,g,t,e,a):i(w,E,g,e,t,a);if(x!==void 0){if(x)continue;_=!1;break}if(v){if(!arraySome(t,function(M,S){if(!cacheHas(v,S)&&(w===M||r(w,M,n,i,a)))return v.push(S)})){_=!1;break}}else if(!(w===E||r(w,E,n,i,a))){_=!1;break}}return a.delete(e),a.delete(t),_}var _equalArrays=equalArrays$2,root$3=_root,Uint8Array$2=root$3.Uint8Array,_Uint8Array=Uint8Array$2;function mapToArray$1(e){var t=-1,n=Array(e.size);return e.forEach(function(i,r){n[++t]=[r,i]}),n}var _mapToArray=mapToArray$1,Symbol$1=_Symbol,Uint8Array$1=_Uint8Array,eq=eq_1,equalArrays$1=_equalArrays,mapToArray=_mapToArray,setToArray=_setToArray,COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",mapTag$2="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag="[object Symbol]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]",symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag$1(e,t,n,i,r,a,o){switch(n){case dataViewTag$2:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case arrayBufferTag$1:return!(e.byteLength!=t.byteLength||!a(new Uint8Array$1(e),new Uint8Array$1(t)));case boolTag$1:case dateTag$1:case numberTag$1:return eq(+e,+t);case errorTag$1:return e.name==t.name&&e.message==t.message;case regexpTag$1:case stringTag$1:return e==t+"";case mapTag$2:var l=mapToArray;case setTag$2:var u=i&COMPARE_PARTIAL_FLAG$4;if(l||(l=setToArray),e.size!=t.size&&!u)return!1;var d=o.get(e);if(d)return d==t;i|=COMPARE_UNORDERED_FLAG$2,o.set(e,t);var m=equalArrays$1(l(e),l(t),i,r,a,o);return o.delete(e),m;case symbolTag:if(symbolValueOf)return symbolValueOf.call(e)==symbolValueOf.call(t)}return!1}var _equalByTag=equalByTag$1,arrayPush=_arrayPush,isArray$4=isArray_1;function baseGetAllKeys$1(e,t,n){var i=t(e);return isArray$4(e)?i:arrayPush(i,n(e))}var _baseGetAllKeys=baseGetAllKeys$1;function arrayFilter$1(e,t){for(var n=-1,i=e==null?0:e.length,r=0,a=[];++n<i;){var o=e[n];t(o,n,e)&&(a[r++]=o)}return a}var _arrayFilter=arrayFilter$1;function stubArray$1(){return[]}var stubArray_1=stubArray$1,arrayFilter=_arrayFilter,stubArray=stubArray_1,objectProto$5=Object.prototype,propertyIsEnumerable=objectProto$5.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols$1=nativeGetSymbols?function(e){return e==null?[]:(e=Object(e),arrayFilter(nativeGetSymbols(e),function(t){return propertyIsEnumerable.call(e,t)}))}:stubArray,_getSymbols=getSymbols$1;function baseTimes$1(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}var _baseTimes=baseTimes$1,isBuffer$2={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse;isBuffer$2.exports;(function(e,t){var n=_root,i=stubFalse_1,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===r,l=o?n.Buffer:void 0,u=l?l.isBuffer:void 0,d=u||i;e.exports=d})(isBuffer$2,isBuffer$2.exports);var isBufferExports=isBuffer$2.exports,baseGetTag$1=_baseGetTag,isLength=isLength_1,isObjectLike$1=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag$1="[object Map]",numberTag="[object Number]",objectTag$2="[object Object]",regexpTag="[object RegExp]",setTag$1="[object Set]",stringTag="[object String]",weakMapTag$1="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag$1]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag$1]=typedArrayTags[numberTag]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag]=typedArrayTags[setTag$1]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag$1]=!1;function baseIsTypedArray$1(e){return isObjectLike$1(e)&&isLength(e.length)&&!!typedArrayTags[baseGetTag$1(e)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$2(e){return function(t){return e(t)}}var _baseUnary=baseUnary$2,_nodeUtil={exports:{}};_nodeUtil.exports;(function(e,t){var n=_freeGlobal,i=t&&!t.nodeType&&t,r=i&&!0&&e&&!e.nodeType&&e,a=r&&r.exports===i,o=a&&n.process,l=function(){try{var u=r&&r.require&&r.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary$1=_baseUnary,nodeUtil=_nodeUtilExports,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray$2=nodeIsTypedArray?baseUnary$1(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$2,baseTimes=_baseTimes,isArguments=isArguments_1,isArray$3=isArray_1,isBuffer$1=isBufferExports,isIndex=_isIndex,isTypedArray$1=isTypedArray_1,objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty;function arrayLikeKeys$1(e,t){var n=isArray$3(e),i=!n&&isArguments(e),r=!n&&!i&&isBuffer$1(e),a=!n&&!i&&!r&&isTypedArray$1(e),o=n||i||r||a,l=o?baseTimes(e.length,String):[],u=l.length;for(var d in e)(t||hasOwnProperty$3.call(e,d))&&!(o&&(d=="length"||r&&(d=="offset"||d=="parent")||a&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||isIndex(d,u)))&&l.push(d);return l}var _arrayLikeKeys=arrayLikeKeys$1,objectProto$3=Object.prototype;function isPrototype$1(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||objectProto$3;return e===n}var _isPrototype=isPrototype$1;function overArg$1(e,t){return function(n){return e(t(n))}}var _overArg=overArg$1,overArg=_overArg,nativeKeys$1=overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype=_isPrototype,nativeKeys=_nativeKeys,objectProto$2=Object.prototype,hasOwnProperty$2=objectProto$2.hasOwnProperty;function baseKeys$1(e){if(!isPrototype(e))return nativeKeys(e);var t=[];for(var n in Object(e))hasOwnProperty$2.call(e,n)&&n!="constructor"&&t.push(n);return t}var _baseKeys=baseKeys$1,arrayLikeKeys=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$2=isArrayLike_1;function keys$3(e){return isArrayLike$2(e)?arrayLikeKeys(e):baseKeys(e)}var keys_1=keys$3,baseGetAllKeys=_baseGetAllKeys,getSymbols=_getSymbols,keys$2=keys_1;function getAllKeys$1(e){return baseGetAllKeys(e,keys$2,getSymbols)}var _getAllKeys=getAllKeys$1,getAllKeys=_getAllKeys,COMPARE_PARTIAL_FLAG$3=1,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function equalObjects$1(e,t,n,i,r,a){var o=n&COMPARE_PARTIAL_FLAG$3,l=getAllKeys(e),u=l.length,d=getAllKeys(t),m=d.length;if(u!=m&&!o)return!1;for(var g=u;g--;){var _=l[g];if(!(o?_ in t:hasOwnProperty$1.call(t,_)))return!1}var v=a.get(e),w=a.get(t);if(v&&w)return v==t&&w==e;var E=!0;a.set(e,t),a.set(t,e);for(var x=o;++g<u;){_=l[g];var M=e[_],S=t[_];if(i)var R=o?i(S,M,_,t,e,a):i(M,S,_,e,t,a);if(!(R===void 0?M===S||r(M,S,n,i,a):R)){E=!1;break}x||(x=_=="constructor")}if(E&&!x){var W=e.constructor,V=t.constructor;W!=V&&"constructor"in e&&"constructor"in t&&!(typeof W=="function"&&W instanceof W&&typeof V=="function"&&V instanceof V)&&(E=!1)}return a.delete(e),a.delete(t),E}var _equalObjects=equalObjects$1,getNative$2=_getNative,root$2=_root,DataView$1=getNative$2(root$2,"DataView"),_DataView=DataView$1,getNative$1=_getNative,root$1=_root,Promise$2=getNative$1(root$1,"Promise"),_Promise=Promise$2,getNative=_getNative,root=_root,WeakMap$2=getNative(root,"WeakMap"),_WeakMap=WeakMap$2,DataView=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap$1=_WeakMap,baseGetTag=_baseGetTag,toSource=_toSource,mapTag="[object Map]",objectTag$1="[object Object]",promiseTag="[object Promise]",setTag="[object Set]",weakMapTag="[object WeakMap]",dataViewTag="[object DataView]",dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag$1=baseGetTag;(DataView&&getTag$1(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map$1&&getTag$1(new Map$1)!=mapTag||Promise$1&&getTag$1(Promise$1.resolve())!=promiseTag||Set$1&&getTag$1(new Set$1)!=setTag||WeakMap$1&&getTag$1(new WeakMap$1)!=weakMapTag)&&(getTag$1=function(e){var t=baseGetTag(e),n=t==objectTag$1?e.constructor:void 0,i=n?toSource(n):"";if(i)switch(i){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag}return t});var _getTag=getTag$1,Stack$1=_Stack,equalArrays=_equalArrays,equalByTag=_equalByTag,equalObjects=_equalObjects,getTag=_getTag,isArray$2=isArray_1,isBuffer=isBufferExports,isTypedArray=isTypedArray_1,COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function baseIsEqualDeep$1(e,t,n,i,r,a){var o=isArray$2(e),l=isArray$2(t),u=o?arrayTag:getTag(e),d=l?arrayTag:getTag(t);u=u==argsTag?objectTag:u,d=d==argsTag?objectTag:d;var m=u==objectTag,g=d==objectTag,_=u==d;if(_&&isBuffer(e)){if(!isBuffer(t))return!1;o=!0,m=!1}if(_&&!m)return a||(a=new Stack$1),o||isTypedArray(e)?equalArrays(e,t,n,i,r,a):equalByTag(e,t,u,n,i,r,a);if(!(n&COMPARE_PARTIAL_FLAG$2)){var v=m&&hasOwnProperty.call(e,"__wrapped__"),w=g&&hasOwnProperty.call(t,"__wrapped__");if(v||w){var E=v?e.value():e,x=w?t.value():t;return a||(a=new Stack$1),r(E,x,n,i,a)}}return _?(a||(a=new Stack$1),equalObjects(e,t,n,i,r,a)):!1}var _baseIsEqualDeep=baseIsEqualDeep$1,baseIsEqualDeep=_baseIsEqualDeep,isObjectLike=isObjectLike_1;function baseIsEqual$2(e,t,n,i,r){return e===t?!0:e==null||t==null||!isObjectLike(e)&&!isObjectLike(t)?e!==e&&t!==t:baseIsEqualDeep(e,t,n,i,baseIsEqual$2,r)}var _baseIsEqual=baseIsEqual$2,Stack=_Stack,baseIsEqual$1=_baseIsEqual,COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch$1(e,t,n,i){var r=n.length,a=r,o=!i;if(e==null)return!a;for(e=Object(e);r--;){var l=n[r];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++r<a;){l=n[r];var u=l[0],d=e[u],m=l[1];if(o&&l[2]){if(d===void 0&&!(u in e))return!1}else{var g=new Stack;if(i)var _=i(d,m,u,e,t,g);if(!(_===void 0?baseIsEqual$1(m,d,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,i,g):_))return!1}}return!0}var _baseIsMatch=baseIsMatch$1,isObject=isObject_1;function isStrictComparable$2(e){return e===e&&!isObject(e)}var _isStrictComparable=isStrictComparable$2,isStrictComparable$1=_isStrictComparable,keys$1=keys_1;function getMatchData$1(e){for(var t=keys$1(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,isStrictComparable$1(r)]}return t}var _getMatchData=getMatchData$1;function matchesStrictComparable$2(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var _matchesStrictComparable=matchesStrictComparable$2,baseIsMatch=_baseIsMatch,getMatchData=_getMatchData,matchesStrictComparable$1=_matchesStrictComparable;function baseMatches$1(e){var t=getMatchData(e);return t.length==1&&t[0][2]?matchesStrictComparable$1(t[0][0],t[0][1]):function(n){return n===e||baseIsMatch(n,e,t)}}var _baseMatches=baseMatches$1;function baseHasIn$1(e,t){return e!=null&&t in Object(e)}var _baseHasIn=baseHasIn$1,baseHasIn=_baseHasIn,hasPath=_hasPath;function hasIn$1(e,t){return e!=null&&hasPath(e,t,baseHasIn)}var hasIn_1=hasIn$1,baseIsEqual=_baseIsEqual,get=get_1,hasIn=hasIn_1,isKey$1=_isKey,isStrictComparable=_isStrictComparable,matchesStrictComparable=_matchesStrictComparable,toKey$1=_toKey,COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty$1(e,t){return isKey$1(e)&&isStrictComparable(t)?matchesStrictComparable(toKey$1(e),t):function(n){var i=get(n,e);return i===void 0&&i===t?hasIn(n,e):baseIsEqual(t,i,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}var _baseMatchesProperty=baseMatchesProperty$1;function identity$4(e){return e}var identity_1=identity$4;function baseProperty$1(e){return function(t){return t==null?void 0:t[e]}}var _baseProperty=baseProperty$1,baseGet$1=_baseGet;function basePropertyDeep$1(e){return function(t){return baseGet$1(t,e)}}var _basePropertyDeep=basePropertyDeep$1,baseProperty=_baseProperty,basePropertyDeep=_basePropertyDeep,isKey=_isKey,toKey=_toKey;function property$1(e){return isKey(e)?baseProperty(toKey(e)):basePropertyDeep(e)}var property_1=property$1,baseMatches=_baseMatches,baseMatchesProperty=_baseMatchesProperty,identity$3=identity_1,isArray$1=isArray_1,property=property_1;function baseIteratee$1(e){return typeof e=="function"?e:e==null?identity$3:typeof e=="object"?isArray$1(e)?baseMatchesProperty(e[0],e[1]):baseMatches(e):property(e)}var _baseIteratee=baseIteratee$1;function createBaseFor$1(e){return function(t,n,i){for(var r=-1,a=Object(t),o=i(t),l=o.length;l--;){var u=o[e?l:++r];if(n(a[u],u,a)===!1)break}return t}}var _createBaseFor=createBaseFor$1,createBaseFor=_createBaseFor,baseFor$1=createBaseFor(),_baseFor=baseFor$1,baseFor=_baseFor,keys=keys_1;function baseForOwn$1(e,t){return e&&baseFor(e,t,keys)}var _baseForOwn=baseForOwn$1,isArrayLike$1=isArrayLike_1;function createBaseEach$1(e,t){return function(n,i){if(n==null)return n;if(!isArrayLike$1(n))return e(n,i);for(var r=n.length,a=t?r:-1,o=Object(n);(t?a--:++a<r)&&i(o[a],a,o)!==!1;);return n}}var _createBaseEach=createBaseEach$1,baseForOwn=_baseForOwn,createBaseEach=_createBaseEach,baseEach$1=createBaseEach(baseForOwn),_baseEach=baseEach$1,baseEach=_baseEach,isArrayLike=isArrayLike_1;function baseMap$1(e,t){var n=-1,i=isArrayLike(e)?Array(e.length):[];return baseEach(e,function(r,a,o){i[++n]=t(r,a,o)}),i}var _baseMap=baseMap$1;function baseSortBy$1(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var _baseSortBy=baseSortBy$1,isSymbol=isSymbol_1;function compareAscending$1(e,t){if(e!==t){var n=e!==void 0,i=e===null,r=e===e,a=isSymbol(e),o=t!==void 0,l=t===null,u=t===t,d=isSymbol(t);if(!l&&!d&&!a&&e>t||a&&o&&u&&!l&&!d||i&&o&&u||!n&&u||!r)return 1;if(!i&&!a&&!d&&e<t||d&&n&&r&&!i&&!a||l&&n&&r||!o&&r||!u)return-1}return 0}var _compareAscending=compareAscending$1,compareAscending=_compareAscending;function compareMultiple$1(e,t,n){for(var i=-1,r=e.criteria,a=t.criteria,o=r.length,l=n.length;++i<o;){var u=compareAscending(r[i],a[i]);if(u){if(i>=l)return u;var d=n[i];return u*(d=="desc"?-1:1)}}return e.index-t.index}var _compareMultiple=compareMultiple$1,arrayMap=_arrayMap,baseGet=_baseGet,baseIteratee=_baseIteratee,baseMap=_baseMap,baseSortBy=_baseSortBy,baseUnary=_baseUnary,compareMultiple=_compareMultiple,identity$2=identity_1,isArray=isArray_1;function baseOrderBy$1(e,t,n){t.length?t=arrayMap(t,function(a){return isArray(a)?function(o){return baseGet(o,a.length===1?a[0]:a)}:a}):t=[identity$2];var i=-1;t=arrayMap(t,baseUnary(baseIteratee));var r=baseMap(e,function(a,o,l){var u=arrayMap(t,function(d){return d(a)});return{criteria:u,index:++i,value:a}});return baseSortBy(r,function(a,o){return compareMultiple(a,o,n)})}var _baseOrderBy=baseOrderBy$1;function apply$1(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var _apply=apply$1,apply=_apply,nativeMax$1=Math.max;function overRest$1(e,t,n){return t=nativeMax$1(t===void 0?e.length-1:t,0),function(){for(var i=arguments,r=-1,a=nativeMax$1(i.length-t,0),o=Array(a);++r<a;)o[r]=i[t+r];r=-1;for(var l=Array(t+1);++r<t;)l[r]=i[r];return l[t]=n(o),apply(e,this,l)}}var _overRest=overRest$1;function constant$1(e){return function(){return e}}var constant_1=constant$1,constant=constant_1,defineProperty=_defineProperty,identity$1=identity_1,baseSetToString$1=defineProperty?function(e,t){return defineProperty(e,"toString",{configurable:!0,enumerable:!1,value:constant(t),writable:!0})}:identity$1,_baseSetToString=baseSetToString$1,HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut$1(e){var t=0,n=0;return function(){var i=nativeNow(),r=HOT_SPAN-(i-n);if(n=i,r>0){if(++t>=HOT_COUNT)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var _shortOut=shortOut$1,baseSetToString=_baseSetToString,shortOut=_shortOut,setToString$1=shortOut(baseSetToString),_setToString=setToString$1,identity=identity_1,overRest=_overRest,setToString=_setToString;function baseRest$1(e,t){return setToString(overRest(e,t,identity),e+"")}var _baseRest=baseRest$1,baseFlatten$1=_baseFlatten,baseOrderBy=_baseOrderBy,baseRest=_baseRest,isIterateeCall$1=_isIterateeCall,sortBy=baseRest(function(e,t){if(e==null)return[];var n=t.length;return n>1&&isIterateeCall$1(e,t[0],t[1])?t=[]:n>2&&isIterateeCall$1(t[0],t[1],t[2])&&(t=[t[0]]),baseOrderBy(e,baseFlatten$1(t,1),[])}),sortBy_1=sortBy;const sortBy$1=getDefaultExportFromCjs(sortBy_1);function baseZipObject$1(e,t,n){for(var i=-1,r=e.length,a=t.length,o={};++i<r;){var l=i<a?t[i]:void 0;n(o,e[i],l)}return o}var _baseZipObject=baseZipObject$1,assignValue=_assignValue,baseZipObject=_baseZipObject;function zipObject(e,t){return baseZipObject(e||[],t||[],assignValue)}var zipObject_1=zipObject;const zipObject$1=getDefaultExportFromCjs(zipObject_1),DECIMAL_UNITS={0:"unit",1:"ten",2:"hundred",3:"thousand",6:"million",9:"billion",12:"trillion",15:"quadrillion","-1":"deci","-2":"centi","-3":"mili","-6":"micro","-9":"nano","-12":"pico","-15":"femto"},INVERTED_DECIMAL_UNITS=zipObject$1(Object.values(DECIMAL_UNITS),Object.keys(DECIMAL_UNITS).map(e=>parseInt(e,10)));function numberToHuman(e,t,n){const i={roundMode:n.roundMode,precision:n.precision,significant:n.significant};let r;if(inferType(n.units)==="string"){const g=n.units;if(r=lookup(e,g),!r)throw new Error(`The scope "${e.locale}${e.defaultSeparator}${getFullScope(e,g,{})}" couldn't be found`)}else r=n.units;let a=roundNumber(new BigNumber(t),i);const o=g=>sortBy$1(Object.keys(g).map(_=>INVERTED_DECIMAL_UNITS[_]),_=>_*-1),l=(g,_)=>{const v=g.isZero()?0:Math.floor(Math.log10(g.abs().toNumber()));return o(_).find(w=>v>=w)||0},u=(g,_)=>{const v=DECIMAL_UNITS[_.toString()];return g[v]||""},d=l(new BigNumber(a),r),m=u(r,d);if(a=roundNumber(new BigNumber(a).div(Math.pow(10,d)),i),n.stripInsignificantZeros){let[g,_]=a.split(".");_=(_||"").replace(/0+$/,""),a=g,_&&(a+=`${n.separator}${_}`)}return n.format.replace("%n",a||"0").replace("%u",m).trim()}const STORAGE_UNITS=["byte","kb","mb","gb","tb","pb","eb"];function numberToHumanSize(e,t,n){const i=expandRoundMode(n.roundMode),r=1024,a=new BigNumber(t).abs(),o=a.lt(r);let l;const u=(w,E)=>{const x=E.length-1,M=new BigNumber(Math.log(w.toNumber())).div(Math.log(r)).integerValue(BigNumber.ROUND_DOWN).toNumber();return Math.min(x,M)},d=w=>`number.human.storage_units.units.${o?"byte":w[m]}`,m=u(a,STORAGE_UNITS);o?l=a.integerValue():l=new BigNumber(roundNumber(a.div(Math.pow(r,m)),{significant:n.significant,precision:n.precision,roundMode:n.roundMode}));const g=e.translate("number.human.storage_units.format",{defaultValue:"%n %u"}),_=e.translate(d(STORAGE_UNITS),{count:a.integerValue().toNumber()});let v=l.toFixed(n.precision,i);return n.stripInsignificantZeros&&(v=v.replace(/(\..*?)0+$/,"$1").replace(/\.$/,"")),g.replace("%n",v).replace("%u",_)}function parseDate(e){if(e instanceof Date)return e;if(typeof e=="number"){const i=new Date;return i.setTime(e),i}const t=new String(e).match(/(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}):(\d{2})(?:[.,](\d{1,3}))?)?(Z|\+00:?00)?/);if(t){const i=t.slice(1,8).map(_=>parseInt(_,10)||0);i[1]-=1;const[r,a,o,l,u,d,m]=i;return t[8]?new Date(Date.UTC(r,a,o,l,u,d,m)):new Date(r,a,o,l,u,d,m)}e.match(/([A-Z][a-z]{2}) ([A-Z][a-z]{2}) (\d+) (\d+:\d+:\d+) ([+-]\d+) (\d+)/)&&new Date().setTime(Date.parse([RegExp.$1,RegExp.$2,RegExp.$3,RegExp.$6,RegExp.$4,RegExp.$5].join(" ")));const n=new Date;return n.setTime(Date.parse(e)),n}function pluralize({i18n:e,count:t,scope:n,options:i,baseScope:r}){i=Object.assign({},i);let a,o;if(typeof n=="object"&&n?a=n:a=lookup(e,n,i),!a)return e.missingTranslation.get(n,i);const u=e.pluralization.get(i.locale)(e,t),d=[];for(;u.length;){const m=u.shift();if(isSet(a[m])){o=a[m];break}d.push(m)}return isSet(o)?(i.count=t,e.interpolate(e,o,i)):e.missingTranslation.get(r.split(e.defaultSeparator).concat([d[0]]),i)}var baseFlatten=_baseFlatten,INFINITY=1/0;function flattenDeep(e){var t=e==null?0:e.length;return t?baseFlatten(e,INFINITY):[]}var flattenDeep_1=flattenDeep;const flattenDeep$1=getDefaultExportFromCjs(flattenDeep_1);class PropertyFlatList{constructor(t){this.target=t}call(){const t=flattenDeep$1(Object.keys(this.target).map(n=>this.compute(this.target[n],n)));return t.sort(),t}compute(t,n){return!Array.isArray(t)&&isObject$7(t)?Object.keys(t).map(i=>this.compute(t[i],`${n}.${i}`)):n}}function propertyFlatList(e){return new PropertyFlatList(e).call()}const DEFAULT_OPTIONS={meridian:{am:"AM",pm:"PM"},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbrDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],monthNames:[null,"January","February","March","April","May","June","July","August","September","October","November","December"],abbrMonthNames:[null,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]};function strftime(e,t,n={}){const{abbrDayNames:i,dayNames:r,abbrMonthNames:a,monthNames:o,meridian:l}=Object.assign(Object.assign({},DEFAULT_OPTIONS),n);if(isNaN(e.getTime()))throw new Error("strftime() requires a valid date object, but received an invalid date.");const u=e.getDay(),d=e.getDate(),m=e.getFullYear(),g=e.getMonth()+1,_=e.getHours();let v=_;const w=_>11?"pm":"am",E=e.getSeconds(),x=e.getMinutes(),M=e.getTimezoneOffset(),S=Math.floor(Math.abs(M/60)),R=Math.abs(M)-S*60,W=(M>0?"-":"+")+(S.toString().length<2?"0"+S:S)+(R.toString().length<2?"0"+R:R);return v>12?v=v-12:v===0&&(v=12),t=t.replace("%a",i[u]),t=t.replace("%A",r[u]),t=t.replace("%b",a[g]),t=t.replace("%B",o[g]),t=t.replace("%d",d.toString().padStart(2,"0")),t=t.replace("%e",d.toString()),t=t.replace("%-d",d.toString()),t=t.replace("%H",_.toString().padStart(2,"0")),t=t.replace("%-H",_.toString()),t=t.replace("%k",_.toString()),t=t.replace("%I",v.toString().padStart(2,"0")),t=t.replace("%-I",v.toString()),t=t.replace("%l",v.toString()),t=t.replace("%m",g.toString().padStart(2,"0")),t=t.replace("%-m",g.toString()),t=t.replace("%M",x.toString().padStart(2,"0")),t=t.replace("%-M",x.toString()),t=t.replace("%p",l[w]),t=t.replace("%P",l[w].toLowerCase()),t=t.replace("%S",E.toString().padStart(2,"0")),t=t.replace("%-S",E.toString()),t=t.replace("%w",u.toString()),t=t.replace("%y",m.toString().padStart(2,"0").substr(-2)),t=t.replace("%-y",m.toString().padStart(2,"0").substr(-2).replace(/^0+/,"")),t=t.replace("%Y",m.toString()),t=t.replace(/%z/i,W),t}var nativeCeil=Math.ceil,nativeMax=Math.max;function baseRange$1(e,t,n,i){for(var r=-1,a=nativeMax(nativeCeil((t-e)/(n||1)),0),o=Array(a);a--;)o[i?a:++r]=e,e+=n;return o}var _baseRange=baseRange$1,baseRange=_baseRange,isIterateeCall=_isIterateeCall,toFinite=toFinite_1;function createRange$1(e){return function(t,n,i){return i&&typeof i!="number"&&isIterateeCall(t,n,i)&&(n=i=void 0),t=toFinite(t),n===void 0?(n=t,t=0):n=toFinite(n),i=i===void 0?t<n?1:-1:toFinite(i),baseRange(t,n,i,e)}}var _createRange=createRange$1,createRange=_createRange,range=createRange(),range_1=range;const range$1=getDefaultExportFromCjs(range_1),within=(e,t,n)=>n>=e&&n<=t;function timeAgoInWords(e,t,n,i={}){const r=i.scope||"datetime.distance_in_words",a=(U,y=0)=>e.t(U,{count:y,scope:r});t=parseDate(t),n=parseDate(n);let o=t.getTime()/1e3,l=n.getTime()/1e3;o>l&&([t,n,o,l]=[n,t,l,o]);const u=Math.round(l-o),d=Math.round((l-o)/60),g=d/60/24,_=Math.round(d/60),v=Math.round(g),w=Math.round(v/30);if(within(0,1,d))return i.includeSeconds?within(0,4,u)?a("less_than_x_seconds",5):within(5,9,u)?a("less_than_x_seconds",10):within(10,19,u)?a("less_than_x_seconds",20):within(20,39,u)?a("half_a_minute"):within(40,59,u)?a("less_than_x_minutes",1):a("x_minutes",1):d===0?a("less_than_x_minutes",1):a("x_minutes",d);if(within(2,44,d))return a("x_minutes",d);if(within(45,89,d))return a("about_x_hours",1);if(within(90,1439,d))return a("about_x_hours",_);if(within(1440,2519,d))return a("x_days",1);if(within(2520,43199,d))return a("x_days",v);if(within(43200,86399,d))return a("about_x_months",Math.round(d/43200));if(within(86400,525599,d))return a("x_months",w);let E=t.getFullYear();t.getMonth()+1>=3&&(E+=1);let x=n.getFullYear();n.getMonth()+1<3&&(x-=1);const M=E>x?0:range$1(E,x).filter(U=>new Date(U,1,29).getMonth()==1).length,S=525600,R=M*1440,W=d-R,V=Math.trunc(W/S),q=parseFloat((W/S-V).toPrecision(3));return q<.25?a("about_x_years",V):q<.75?a("over_x_years",V):a("almost_x_years",V+1)}const guessStrategy=function(e,t){t instanceof Array&&(t=t.join(e.defaultSeparator));const n=t.split(e.defaultSeparator).slice(-1)[0];return e.missingTranslationPrefix+n.replace("_"," ").replace(/([a-z])([A-Z])/g,(i,r,a)=>`${r} ${a.toLowerCase()}`)},messageStrategy=(e,t,n)=>{const i=getFullScope(e,t,n),r="locale"in n?n.locale:e.locale,a=inferType(r);return`[missing "${[a=="string"?r:a,i].join(e.defaultSeparator)}" translation]`},errorStrategy=(e,t,n)=>{const i=getFullScope(e,t,n),r=[e.locale,i].join(e.defaultSeparator);throw new Error(`Missing translation: ${r}`)};class MissingTranslation{constructor(t){this.i18n=t,this.registry={},this.register("guess",guessStrategy),this.register("message",messageStrategy),this.register("error",errorStrategy)}register(t,n){this.registry[t]=n}get(t,n){var i;return this.registry[(i=n.missingBehavior)!==null&&i!==void 0?i:this.i18n.missingBehavior](this.i18n,t,n)}}var __awaiter=globalThis&&globalThis.__awaiter||function(e,t,n,i){function r(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function l(m){try{d(i.next(m))}catch(g){o(g)}}function u(m){try{d(i.throw(m))}catch(g){o(g)}}function d(m){m.done?a(m.value):r(m.value).then(l,u)}d((i=i.apply(e,t||[])).next())})};const DEFAULT_I18N_OPTIONS={defaultLocale:"en",availableLocales:["en"],locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,enableFallback:!1,missingBehavior:"message",missingTranslationPrefix:"",missingPlaceholder:(e,t)=>`[missing "${t}" value]`,nullPlaceholder:(e,t,n,i)=>e.missingPlaceholder(e,t,n,i),transformKey:e=>e};class I18n{constructor(t={},n={}){this._locale=DEFAULT_I18N_OPTIONS.locale,this._defaultLocale=DEFAULT_I18N_OPTIONS.defaultLocale,this._version=0,this.onChangeHandlers=[],this.translations={},this.availableLocales=[],this.t=this.translate,this.p=this.pluralize,this.l=this.localize,this.distanceOfTimeInWords=this.timeAgoInWords;const{locale:i,enableFallback:r,missingBehavior:a,missingTranslationPrefix:o,missingPlaceholder:l,nullPlaceholder:u,defaultLocale:d,defaultSeparator:m,placeholder:g,transformKey:_}=Object.assign(Object.assign({},DEFAULT_I18N_OPTIONS),n);this.locale=i,this.defaultLocale=d,this.defaultSeparator=m,this.enableFallback=r,this.locale=i,this.missingBehavior=a,this.missingTranslationPrefix=o,this.missingPlaceholder=l,this.nullPlaceholder=u,this.placeholder=g,this.pluralization=new Pluralization(this),this.locales=new Locales(this),this.missingTranslation=new MissingTranslation(this),this.transformKey=_,this.interpolate=interpolate,this.store(t)}store(t){propertyFlatList(t).forEach(i=>setWith$1(this.translations,i,get$2(t,i),Object)),this.hasChanged()}get locale(){return this._locale||this.defaultLocale||"en"}set locale(t){if(typeof t!="string")throw new Error(`Expected newLocale to be a string; got ${inferType(t)}`);const n=this._locale!==t;this._locale=t,n&&this.hasChanged()}get defaultLocale(){return this._defaultLocale||"en"}set defaultLocale(t){if(typeof t!="string")throw new Error(`Expected newLocale to be a string; got ${inferType(t)}`);const n=this._defaultLocale!==t;this._defaultLocale=t,n&&this.hasChanged()}translate(t,n){n=Object.assign({},n);const i=createTranslationOptions(this,t,n);let r;return i.some(o=>(isSet(o.scope)?r=lookup(this,o.scope,n):isSet(o.message)&&(r=o.message),r!=null))?(typeof r=="string"?r=this.interpolate(this,r,n):typeof r=="object"&&r&&isSet(n.count)&&(r=pluralize({i18n:this,count:n.count||0,scope:r,options:n,baseScope:getFullScope(this,t,n)})),n&&r instanceof Array&&(r=r.map(o=>typeof o=="string"?interpolate(this,o,n):o)),r):this.missingTranslation.get(t,n)}pluralize(t,n,i){return pluralize({i18n:this,count:t,scope:n,options:Object.assign({},i),baseScope:getFullScope(this,n,i??{})})}localize(t,n,i){if(i=Object.assign({},i),n==null)return"";switch(t){case"currency":return this.numberToCurrency(n);case"number":return formatNumber(n,Object.assign({delimiter:",",precision:3,separator:".",significant:!1,stripInsignificantZeros:!1},lookup(this,"number.format")));case"percentage":return this.numberToPercentage(n);default:{let r;return t.match(/^(date|time)/)?r=this.toTime(t,n):r=n.toString(),interpolate(this,r,i)}}}toTime(t,n){const i=parseDate(n),r=lookup(this,t);return i.toString().match(/invalid/i)||!r?i.toString():this.strftime(i,r)}numberToCurrency(t,n={}){return formatNumber(t,Object.assign(Object.assign(Object.assign({delimiter:",",format:"%u%n",precision:2,separator:".",significant:!1,stripInsignificantZeros:!1,unit:"$"},camelCaseKeys(this.get("number.format"))),camelCaseKeys(this.get("number.currency.format"))),n))}numberToPercentage(t,n={}){return formatNumber(t,Object.assign(Object.assign(Object.assign({delimiter:"",format:"%n%",precision:3,stripInsignificantZeros:!1,separator:".",significant:!1},camelCaseKeys(this.get("number.format"))),camelCaseKeys(this.get("number.percentage.format"))),n))}numberToHumanSize(t,n={}){return numberToHumanSize(this,t,Object.assign(Object.assign(Object.assign({delimiter:"",precision:3,significant:!0,stripInsignificantZeros:!0,units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},camelCaseKeys(this.get("number.human.format"))),camelCaseKeys(this.get("number.human.storage_units"))),n))}numberToHuman(t,n={}){return numberToHuman(this,t,Object.assign(Object.assign(Object.assign({delimiter:"",separator:".",precision:3,significant:!0,stripInsignificantZeros:!0,format:"%n %u",roundMode:"default",units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},camelCaseKeys(this.get("number.human.format"))),camelCaseKeys(this.get("number.human.decimal_units"))),n))}numberToRounded(t,n){return formatNumber(t,Object.assign({unit:"",precision:3,significant:!1,separator:".",delimiter:"",stripInsignificantZeros:!1},n))}numberToDelimited(t,n={}){return numberToDelimited(t,Object.assign({delimiterPattern:/(\d)(?=(\d\d\d)+(?!\d))/g,delimiter:",",separator:"."},n))}withLocale(t,n){return __awaiter(this,void 0,void 0,function*(){const i=this.locale;try{this.locale=t,yield n()}finally{this.locale=i}})}strftime(t,n,i={}){return strftime(t,n,Object.assign(Object.assign(Object.assign({},camelCaseKeys(lookup(this,"date"))),{meridian:{am:lookup(this,"time.am")||"AM",pm:lookup(this,"time.pm")||"PM"}}),i))}update(t,n,i={strict:!1}){if(i.strict&&!has$1(this.translations,t))throw new Error(`The path "${t}" is not currently defined`);const r=get$2(this.translations,t),a=inferType(r),o=inferType(n);if(i.strict&&a!==o)throw new Error(`The current type for "${t}" is "${a}", but you're trying to override it with "${o}"`);let l;o==="object"?l=Object.assign(Object.assign({},r),n):l=n,set$1(this.translations,t,l),this.hasChanged()}toSentence(t,n={}){const{wordsConnector:i,twoWordsConnector:r,lastWordConnector:a}=Object.assign(Object.assign({wordsConnector:", ",twoWordsConnector:" and ",lastWordConnector:", and "},camelCaseKeys(lookup(this,"support.array"))),n),o=t.length;switch(o){case 0:return"";case 1:return`${t[0]}`;case 2:return t.join(r);default:return[t.slice(0,o-1).join(i),a,t[o-1]].join("")}}timeAgoInWords(t,n,i={}){return timeAgoInWords(this,t,n,i)}onChange(t){return this.onChangeHandlers.push(t),()=>{this.onChangeHandlers.splice(this.onChangeHandlers.indexOf(t),1)}}get version(){return this._version}formatNumber(t,n){return formatNumber(t,n)}get(t){return lookup(this,t)}runCallbacks(){this.onChangeHandlers.forEach(t=>t(this))}hasChanged(){this._version+=1,this.runCallbacks()}}/*!
* chartjs-chart-sankey v0.12.0
* https://github.com/kurkle/chartjs-chart-sankey#readme
* (c) 2022 Jukka Kurkela
* Released under the MIT license
*/function toTextLines(e){const t=[],n=isArray$b(e)?e:isNullOrUndef(e)?[]:[e];for(;n.length;){const i=n.pop();typeof i=="string"?t.unshift.apply(t,i.split(`
-`)):Array.isArray(i)?n.push.apply(n,i):isNullOrUndef(n)||t.unshift(""+i)}return t}function validateSizeValue(e){return!e||["min","max"].indexOf(e)===-1?"max":e}const defined=e=>e!==void 0;function calculateX(e,t){const n=new Set(t.map(o=>o.to)),i=new Set(t.map(o=>o.from)),r=new Set([...e.keys()]);let a=0;for(;r.size;){const o=nextColumn([...r],n);for(const l of o){const u=e.get(l);defined(u.x)||(u.x=a),r.delete(l)}r.size&&(n.clear(),t.filter(l=>r.has(l.from)).forEach(l=>n.add(l.to)),a++)}return[...e.keys()].filter(o=>!i.has(o)).forEach(o=>{const l=e.get(o);l.column||(l.x=a)}),a}function nextColumn(e,t){const n=e.filter(i=>!t.has(i));return n.length?n:e.slice(0,1)}const nodeByXY=(e,t)=>e.x!==t.x?e.x-t.x:e.y-t.y;let prevCountId=-1;function getCountId(){return prevCountId=prevCountId<100?prevCountId+1:0,prevCountId}function nodeCount(e,t,n=getCountId()){let i=0;for(const r of e)r.node._visited!==n&&(r.node._visited=n,i+=r.node[t].length+nodeCount(r.node[t],t,n));return i}const flowByNodeCount=e=>(t,n)=>nodeCount(t.node[e],e)-nodeCount(n.node[e],e)||t.node[e].length-n.node[e].length;function processFrom(e,t){e.from.sort(flowByNodeCount("from"));for(const n of e.from){const i=n.node;defined(i.y)||(i.y=t,processFrom(i,t)),t=Math.max(i.y+i.out,t)}return t}function processTo(e,t){e.to.sort(flowByNodeCount("to"));for(const n of e.to){const i=n.node;defined(i.y)||(i.y=t,processTo(i,t)),t=Math.max(i.y+i.in,t)}return t}function setOrGetY(e,t){return defined(e.y)?e.y:(e.y=t,t)}function processRest(e,t){const n=e.filter(m=>m.x===0),i=e.filter(m=>m.x===t),r=n.filter(m=>!defined(m.y)),a=i.filter(m=>!defined(m.y)),o=e.filter(m=>m.x>0&&m.x<t&&!defined(m.y));let l=n.reduce((m,g)=>Math.max(m,g.y+g.out||0),0),u=i.reduce((m,g)=>Math.max(m,g.y+g.in||0),0),h=0;return l>=u?(r.forEach(m=>{l=setOrGetY(m,l),l=Math.max(l+m.out,processTo(m,l))}),a.forEach(m=>{u=setOrGetY(m,u),u=Math.max(u+m.in,processTo(m,u))})):(a.forEach(m=>{u=setOrGetY(m,u),u=Math.max(u+m.in,processTo(m,u))}),r.forEach(m=>{l=setOrGetY(m,l),l=Math.max(l+m.out,processTo(m,l))})),o.forEach(m=>{let g=e.filter(_=>_.x===m.x&&defined(_.y)).reduce((_,v)=>Math.max(_,v.y+Math.max(v.in,v.out)),0);g=setOrGetY(m,g),g=Math.max(g+m.in,processFrom(m,g)),g=Math.max(g+m.out,processTo(m,g)),h=Math.max(h,g)}),Math.max(l,u,h)}function calculateY(e,t){e.sort((o,l)=>Math.max(l.in,l.out)-Math.max(o.in,o.out));const n=e[0];n.y=0;const i=processFrom(n,0),r=processTo(n,0),a=processRest(e,t);return Math.max(i,r,a)}function calculateYUsingPriority(e,t){let n=0,i=0;for(let r=0;r<=t;r++){let a=i;const o=e.filter(l=>l.x===r).sort((l,u)=>l.priority-u.priority);i=o[0].to.filter(l=>l.node.x>r+1).reduce((l,u)=>l+u.flow,0)||0;for(const l of o)l.y=a,a+=Math.max(l.out,l.in);n=Math.max(a,n)}return n}function addPadding(e,t){let n=1,i=0,r=0,a=0;const o=[];e.sort(nodeByXY);for(const l of e){if(l.y){if(l.x===0)o.push(l.y);else{for(i!==l.x&&(i=l.x,r=0),n=r+1;n<o.length&&!(o[n]>l.y);n++);r=n}l.y+=n*t,n++}a=Math.max(a,l.y+Math.max(l.in,l.out))}return a}function sortFlows(e,t){e.forEach(n=>{const i=Math[t](n.in||n.out,n.out||n.in),r=i<n.in,a=i<n.out;let o=0,l=n.from.length;n.from.sort((u,h)=>u.node.y+u.node.out/2-(h.node.y+h.node.out/2)).forEach((u,h)=>{r?u.addY=h*(i-u.flow)/(l-1):(u.addY=o,o+=u.flow)}),o=0,l=n.to.length,n.to.sort((u,h)=>u.node.y+u.node.in/2-(h.node.y+h.node.in/2)).forEach((u,h)=>{a?u.addY=h*(i-u.flow)/(l-1):(u.addY=o,o+=u.flow)})})}function layout(e,t,n,i){const r=[...e.values()],a=calculateX(e,t),l=(n?calculateYUsingPriority(r,a):calculateY(r,a))*.03,u=addPadding(r,l);return sortFlows(r,i),{maxX:a,maxY:u}}function buildNodesFromRawData(e){const t=new Map;for(let i=0;i<e.length;i++){const{from:r,to:a,flow:o}=e[i];if(!t.has(r))t.set(r,{key:r,in:0,out:o,from:[],to:[{key:a,flow:o,index:i}]});else{const l=t.get(r);l.out+=o,l.to.push({key:a,flow:o,index:i})}if(!t.has(a))t.set(a,{key:a,in:o,out:0,from:[{key:r,flow:o,index:i}],to:[]});else{const l=t.get(a);l.in+=o,l.from.push({key:r,flow:o,index:i})}}const n=(i,r)=>r.flow-i.flow;return[...t.values()].forEach(i=>{i.from=i.from.sort(n),i.from.forEach(r=>{r.node=t.get(r.key)}),i.to=i.to.sort(n),i.to.forEach(r=>{r.node=t.get(r.key)})}),t}function getAddY(e,t,n){for(const i of e)if(i.key===t&&i.index===n)return i.addY;return 0}class SankeyController extends DatasetController{parseObjectData(t,n,i,r){const{from:a="from",to:o="to",flow:l="flow"}=this.options.parsing,u=n.map(({[a]:T,[o]:R,[l]:W})=>({from:T,to:R,flow:W})),{xScale:h,yScale:m}=t,g=[],_=this._nodes=buildNodesFromRawData(u),{column:v,priority:w,size:$}=this.getDataset();if(w)for(const T of _.values())T.key in w&&(T.priority=w[T.key]);if(v)for(const T of _.values())T.key in v&&(T.column=!0,T.x=v[T.key]);const{maxX:x,maxY:M}=layout(_,u,!!w,validateSizeValue($));this._maxX=x,this._maxY=M;for(let T=0,R=u.length;T<R;++T){const W=u[T],V=_.get(W.from),K=_.get(W.to),U=V.y+getAddY(V.to,W.to,T),y=K.y+getAddY(K.from,W.from,T);g.push({x:h.parse(V.x,T),y:m.parse(U,T),_custom:{from:V,to:K,x:h.parse(K.x,T),y:m.parse(y,T),height:m.parse(W.flow,T)}})}return g.slice(i,i+r)}getMinMax(t){return{min:0,max:t===this._cachedMeta.xScale?this._maxX:this._maxY}}update(t){const{data:n}=this._cachedMeta;this.updateElements(n,0,n.length,t)}updateElements(t,n,i,r){const{xScale:a,yScale:o}=this._cachedMeta,l=this.resolveDataElementOptions(n,r),u=this.getSharedOptions(r,t[n],l),h=this.getDataset(),m=valueOrDefault(h.borderWidth,1)/2+.5,g=valueOrDefault(h.nodeWidth,10);for(let _=n;_<n+i;_++){const v=this.getParsed(_),w=v._custom,$=o.getPixelForValue(v.y);this.updateElement(t[_],_,{x:a.getPixelForValue(v.x)+g+m,y:$,x2:a.getPixelForValue(w.x)-m,y2:o.getPixelForValue(w.y),from:w.from,to:w.to,progress:r==="reset"?0:1,height:Math.abs(o.getPixelForValue(v.y+w.height)-$),options:this.resolveDataElementOptions(_,r)},r)}this.updateSharedOptions(u,r)}_drawLabels(){const t=this._ctx,n=this._nodes||new Map,i=this.getDataset(),r=validateSizeValue(i.size),a=valueOrDefault(i.borderWidth,1),o=valueOrDefault(i.nodeWidth,10),l=i.labels,{xScale:u,yScale:h}=this._cachedMeta;t.save();const m=this.chart.chartArea;for(const g of n.values()){const _=u.getPixelForValue(g.x),v=h.getPixelForValue(g.y),w=Math[r](g.in||g.out,g.out||g.in),$=Math.abs(h.getPixelForValue(g.y+w)-v),x=l&&l[g.key]||g.key;let M=_;t.fillStyle=i.color||"black",t.textBaseline="middle",_<m.width/2?(t.textAlign="left",M+=o+a+4):(t.textAlign="right",M-=a+4),this._drawLabel(x,v,$,t,M)}t.restore()}_drawLabel(t,n,i,r,a){const o=toFont(this.options.font,this.chart.options.font),l=isNullOrUndef(t)?[]:toTextLines(t),u=l.length,h=n+i/2,m=o.lineHeight,g=valueOrDefault(this.options.padding,m/2);if(r.font=o.string,u>1){const _=h-m*u/2+g;for(let v=0;v<u;v++)r.fillText(l[v],a,_+v*m)}else r.fillText(t,a,h)}_drawNodes(){const t=this._ctx,n=this._nodes||new Map,i=this.getDataset(),r=validateSizeValue(i.size),{xScale:a,yScale:o}=this._cachedMeta,l=valueOrDefault(i.borderWidth,1),u=valueOrDefault(i.nodeWidth,10);t.save(),t.strokeStyle=i.borderColor||"black",t.lineWidth=l;for(const h of n.values()){t.fillStyle=h.color;const m=a.getPixelForValue(h.x),g=o.getPixelForValue(h.y),_=Math[r](h.in||h.out,h.out||h.in),v=Math.abs(o.getPixelForValue(h.y+_)-g);l&&t.strokeRect(m,g,u,v),t.fillRect(m,g,u,v)}t.restore()}draw(){const t=this._ctx,n=this.getMeta().data||[],i=[];for(let r=0,a=n.length;r<a;++r){const o=n[r];o.from.color=o.options.colorFrom,o.to.color=o.options.colorTo,o.active&&i.push(o)}for(const r of i)r.from.color=r.options.colorFrom,r.to.color=r.options.colorTo;this._drawNodes();for(let r=0,a=n.length;r<a;++r)n[r].draw(t);this._drawLabels()}}SankeyController.id="sankey";SankeyController.defaults={dataElementType:"flow",animations:{numbers:{type:"number",properties:["x","y","x2","y2","height"]},progress:{easing:"linear",duration:e=>e.type==="data"?(e.parsed._custom.x-e.parsed.x)*200:void 0,delay:e=>e.type==="data"?e.parsed.x*500+e.dataIndex*20:void 0},colors:{type:"color",properties:["colorFrom","colorTo"]}},transitions:{hide:{animations:{colors:{type:"color",properties:["colorFrom","colorTo"],to:"transparent"}}},show:{animations:{colors:{type:"color",properties:["colorFrom","colorTo"],from:"transparent"}}}}};SankeyController.overrides={interaction:{mode:"nearest",intersect:!0},datasets:{clip:!1,parsing:!0},plugins:{tooltip:{callbacks:{title(){return""},label(e){const t=e.dataset.data[e.dataIndex];return t.from+" -> "+t.to+": "+t.flow}}},legend:{display:!1}},scales:{x:{type:"linear",bounds:"data",display:!1,min:0,offset:!1},y:{type:"linear",bounds:"data",display:!1,min:0,reverse:!0,offset:!1}},layout:{padding:{top:3,left:3,right:13,bottom:3}}};const controlPoints=(e,t,n,i)=>e<n?{cp1:{x:e+(n-e)/3*2,y:t},cp2:{x:e+(n-e)/3,y:i}}:{cp1:{x:e-(e-n)/3,y:0},cp2:{x:n+(e-n)/3,y:0}},pointInLine=(e,t,n)=>({x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)});function setStyle(e,{x:t,x2:n,options:i}){let r;i.colorMode==="from"?r=color(i.colorFrom).alpha(.5).rgbString():i.colorMode==="to"?r=color(i.colorTo).alpha(.5).rgbString():(r=e.createLinearGradient(t,0,n,0),r.addColorStop(0,color(i.colorFrom).alpha(.5).rgbString()),r.addColorStop(1,color(i.colorTo).alpha(.5).rgbString())),e.fillStyle=r,e.strokeStyle=r,e.lineWidth=.5}class Flow extends Element$1{constructor(t){super(),this.options=void 0,this.x=void 0,this.y=void 0,this.x2=void 0,this.y2=void 0,this.height=void 0,t&&Object.assign(this,t)}draw(t){const n=this,{x:i,x2:r,y:a,y2:o,height:l,progress:u}=n,{cp1:h,cp2:m}=controlPoints(i,a,r,o);u!==0&&(t.save(),u<1&&(t.beginPath(),t.rect(i,Math.min(a,o),(r-i)*u+1,Math.abs(o-a)+l+1),t.clip()),setStyle(t,n),t.beginPath(),t.moveTo(i,a),t.bezierCurveTo(h.x,h.y,m.x,m.y,r,o),t.lineTo(r,o+l),t.bezierCurveTo(m.x,m.y+l,h.x,h.y+l,i,a+l),t.lineTo(i,a),t.stroke(),t.closePath(),t.fill(),t.restore())}inRange(t,n,i){const{x:r,y:a,x2:o,y2:l,height:u}=this.getProps(["x","y","x2","y2","height"],i);if(t<r||t>o)return!1;const{cp1:h,cp2:m}=controlPoints(r,a,o,l),g=(t-r)/(o-r),_={x:r,y:a},v={x:o,y:l},w=pointInLine(_,h,g),$=pointInLine(h,m,g),x=pointInLine(m,v,g),M=pointInLine(w,$,g),T=pointInLine($,x,g),R=pointInLine(M,T,g).y;return n>=R&&n<=R+u}inXRange(t,n){const{x:i,x2:r}=this.getProps(["x","x2"],n);return t>=i&&t<=r}inYRange(t,n){const{y:i,y2:r,height:a}=this.getProps(["y","y2","height"],n),o=Math.min(i,r),l=Math.max(i,r)+a;return t>=o&&t<=l}getCenterPoint(t){const{x:n,y:i,x2:r,y2:a,height:o}=this.getProps(["x","y","x2","y2","height"],t);return{x:(n+r)/2,y:(i+a+o)/2}}tooltipPosition(t){return this.getCenterPoint(t)}getRange(t){return t==="x"?this.width/2:this.height/2}}Flow.id="flow";Flow.defaults={colorFrom:"red",colorTo:"green",colorMode:"gradient",hoverColorFrom:(e,t)=>getHoverColor(t.colorFrom),hoverColorTo:(e,t)=>getHoverColor(t.colorTo)};/*!
+`)):Array.isArray(i)?n.push.apply(n,i):isNullOrUndef(n)||t.unshift(""+i)}return t}function validateSizeValue(e){return!e||["min","max"].indexOf(e)===-1?"max":e}const defined=e=>e!==void 0;function calculateX(e,t){const n=new Set(t.map(o=>o.to)),i=new Set(t.map(o=>o.from)),r=new Set([...e.keys()]);let a=0;for(;r.size;){const o=nextColumn([...r],n);for(const l of o){const u=e.get(l);defined(u.x)||(u.x=a),r.delete(l)}r.size&&(n.clear(),t.filter(l=>r.has(l.from)).forEach(l=>n.add(l.to)),a++)}return[...e.keys()].filter(o=>!i.has(o)).forEach(o=>{const l=e.get(o);l.column||(l.x=a)}),a}function nextColumn(e,t){const n=e.filter(i=>!t.has(i));return n.length?n:e.slice(0,1)}const nodeByXY=(e,t)=>e.x!==t.x?e.x-t.x:e.y-t.y;let prevCountId=-1;function getCountId(){return prevCountId=prevCountId<100?prevCountId+1:0,prevCountId}function nodeCount(e,t,n=getCountId()){let i=0;for(const r of e)r.node._visited!==n&&(r.node._visited=n,i+=r.node[t].length+nodeCount(r.node[t],t,n));return i}const flowByNodeCount=e=>(t,n)=>nodeCount(t.node[e],e)-nodeCount(n.node[e],e)||t.node[e].length-n.node[e].length;function processFrom(e,t){e.from.sort(flowByNodeCount("from"));for(const n of e.from){const i=n.node;defined(i.y)||(i.y=t,processFrom(i,t)),t=Math.max(i.y+i.out,t)}return t}function processTo(e,t){e.to.sort(flowByNodeCount("to"));for(const n of e.to){const i=n.node;defined(i.y)||(i.y=t,processTo(i,t)),t=Math.max(i.y+i.in,t)}return t}function setOrGetY(e,t){return defined(e.y)?e.y:(e.y=t,t)}function processRest(e,t){const n=e.filter(m=>m.x===0),i=e.filter(m=>m.x===t),r=n.filter(m=>!defined(m.y)),a=i.filter(m=>!defined(m.y)),o=e.filter(m=>m.x>0&&m.x<t&&!defined(m.y));let l=n.reduce((m,g)=>Math.max(m,g.y+g.out||0),0),u=i.reduce((m,g)=>Math.max(m,g.y+g.in||0),0),d=0;return l>=u?(r.forEach(m=>{l=setOrGetY(m,l),l=Math.max(l+m.out,processTo(m,l))}),a.forEach(m=>{u=setOrGetY(m,u),u=Math.max(u+m.in,processTo(m,u))})):(a.forEach(m=>{u=setOrGetY(m,u),u=Math.max(u+m.in,processTo(m,u))}),r.forEach(m=>{l=setOrGetY(m,l),l=Math.max(l+m.out,processTo(m,l))})),o.forEach(m=>{let g=e.filter(_=>_.x===m.x&&defined(_.y)).reduce((_,v)=>Math.max(_,v.y+Math.max(v.in,v.out)),0);g=setOrGetY(m,g),g=Math.max(g+m.in,processFrom(m,g)),g=Math.max(g+m.out,processTo(m,g)),d=Math.max(d,g)}),Math.max(l,u,d)}function calculateY(e,t){e.sort((o,l)=>Math.max(l.in,l.out)-Math.max(o.in,o.out));const n=e[0];n.y=0;const i=processFrom(n,0),r=processTo(n,0),a=processRest(e,t);return Math.max(i,r,a)}function calculateYUsingPriority(e,t){let n=0,i=0;for(let r=0;r<=t;r++){let a=i;const o=e.filter(l=>l.x===r).sort((l,u)=>l.priority-u.priority);i=o[0].to.filter(l=>l.node.x>r+1).reduce((l,u)=>l+u.flow,0)||0;for(const l of o)l.y=a,a+=Math.max(l.out,l.in);n=Math.max(a,n)}return n}function addPadding(e,t){let n=1,i=0,r=0,a=0;const o=[];e.sort(nodeByXY);for(const l of e){if(l.y){if(l.x===0)o.push(l.y);else{for(i!==l.x&&(i=l.x,r=0),n=r+1;n<o.length&&!(o[n]>l.y);n++);r=n}l.y+=n*t,n++}a=Math.max(a,l.y+Math.max(l.in,l.out))}return a}function sortFlows(e,t){e.forEach(n=>{const i=Math[t](n.in||n.out,n.out||n.in),r=i<n.in,a=i<n.out;let o=0,l=n.from.length;n.from.sort((u,d)=>u.node.y+u.node.out/2-(d.node.y+d.node.out/2)).forEach((u,d)=>{r?u.addY=d*(i-u.flow)/(l-1):(u.addY=o,o+=u.flow)}),o=0,l=n.to.length,n.to.sort((u,d)=>u.node.y+u.node.in/2-(d.node.y+d.node.in/2)).forEach((u,d)=>{a?u.addY=d*(i-u.flow)/(l-1):(u.addY=o,o+=u.flow)})})}function layout(e,t,n,i){const r=[...e.values()],a=calculateX(e,t),l=(n?calculateYUsingPriority(r,a):calculateY(r,a))*.03,u=addPadding(r,l);return sortFlows(r,i),{maxX:a,maxY:u}}function buildNodesFromRawData(e){const t=new Map;for(let i=0;i<e.length;i++){const{from:r,to:a,flow:o}=e[i];if(!t.has(r))t.set(r,{key:r,in:0,out:o,from:[],to:[{key:a,flow:o,index:i}]});else{const l=t.get(r);l.out+=o,l.to.push({key:a,flow:o,index:i})}if(!t.has(a))t.set(a,{key:a,in:o,out:0,from:[{key:r,flow:o,index:i}],to:[]});else{const l=t.get(a);l.in+=o,l.from.push({key:r,flow:o,index:i})}}const n=(i,r)=>r.flow-i.flow;return[...t.values()].forEach(i=>{i.from=i.from.sort(n),i.from.forEach(r=>{r.node=t.get(r.key)}),i.to=i.to.sort(n),i.to.forEach(r=>{r.node=t.get(r.key)})}),t}function getAddY(e,t,n){for(const i of e)if(i.key===t&&i.index===n)return i.addY;return 0}class SankeyController extends DatasetController{parseObjectData(t,n,i,r){const{from:a="from",to:o="to",flow:l="flow"}=this.options.parsing,u=n.map(({[a]:S,[o]:R,[l]:W})=>({from:S,to:R,flow:W})),{xScale:d,yScale:m}=t,g=[],_=this._nodes=buildNodesFromRawData(u),{column:v,priority:w,size:E}=this.getDataset();if(w)for(const S of _.values())S.key in w&&(S.priority=w[S.key]);if(v)for(const S of _.values())S.key in v&&(S.column=!0,S.x=v[S.key]);const{maxX:x,maxY:M}=layout(_,u,!!w,validateSizeValue(E));this._maxX=x,this._maxY=M;for(let S=0,R=u.length;S<R;++S){const W=u[S],V=_.get(W.from),q=_.get(W.to),U=V.y+getAddY(V.to,W.to,S),y=q.y+getAddY(q.from,W.from,S);g.push({x:d.parse(V.x,S),y:m.parse(U,S),_custom:{from:V,to:q,x:d.parse(q.x,S),y:m.parse(y,S),height:m.parse(W.flow,S)}})}return g.slice(i,i+r)}getMinMax(t){return{min:0,max:t===this._cachedMeta.xScale?this._maxX:this._maxY}}update(t){const{data:n}=this._cachedMeta;this.updateElements(n,0,n.length,t)}updateElements(t,n,i,r){const{xScale:a,yScale:o}=this._cachedMeta,l=this.resolveDataElementOptions(n,r),u=this.getSharedOptions(r,t[n],l),d=this.getDataset(),m=valueOrDefault(d.borderWidth,1)/2+.5,g=valueOrDefault(d.nodeWidth,10);for(let _=n;_<n+i;_++){const v=this.getParsed(_),w=v._custom,E=o.getPixelForValue(v.y);this.updateElement(t[_],_,{x:a.getPixelForValue(v.x)+g+m,y:E,x2:a.getPixelForValue(w.x)-m,y2:o.getPixelForValue(w.y),from:w.from,to:w.to,progress:r==="reset"?0:1,height:Math.abs(o.getPixelForValue(v.y+w.height)-E),options:this.resolveDataElementOptions(_,r)},r)}this.updateSharedOptions(u,r)}_drawLabels(){const t=this._ctx,n=this._nodes||new Map,i=this.getDataset(),r=validateSizeValue(i.size),a=valueOrDefault(i.borderWidth,1),o=valueOrDefault(i.nodeWidth,10),l=i.labels,{xScale:u,yScale:d}=this._cachedMeta;t.save();const m=this.chart.chartArea;for(const g of n.values()){const _=u.getPixelForValue(g.x),v=d.getPixelForValue(g.y),w=Math[r](g.in||g.out,g.out||g.in),E=Math.abs(d.getPixelForValue(g.y+w)-v),x=l&&l[g.key]||g.key;let M=_;t.fillStyle=i.color||"black",t.textBaseline="middle",_<m.width/2?(t.textAlign="left",M+=o+a+4):(t.textAlign="right",M-=a+4),this._drawLabel(x,v,E,t,M)}t.restore()}_drawLabel(t,n,i,r,a){const o=toFont(this.options.font,this.chart.options.font),l=isNullOrUndef(t)?[]:toTextLines(t),u=l.length,d=n+i/2,m=o.lineHeight,g=valueOrDefault(this.options.padding,m/2);if(r.font=o.string,u>1){const _=d-m*u/2+g;for(let v=0;v<u;v++)r.fillText(l[v],a,_+v*m)}else r.fillText(t,a,d)}_drawNodes(){const t=this._ctx,n=this._nodes||new Map,i=this.getDataset(),r=validateSizeValue(i.size),{xScale:a,yScale:o}=this._cachedMeta,l=valueOrDefault(i.borderWidth,1),u=valueOrDefault(i.nodeWidth,10);t.save(),t.strokeStyle=i.borderColor||"black",t.lineWidth=l;for(const d of n.values()){t.fillStyle=d.color;const m=a.getPixelForValue(d.x),g=o.getPixelForValue(d.y),_=Math[r](d.in||d.out,d.out||d.in),v=Math.abs(o.getPixelForValue(d.y+_)-g);l&&t.strokeRect(m,g,u,v),t.fillRect(m,g,u,v)}t.restore()}draw(){const t=this._ctx,n=this.getMeta().data||[],i=[];for(let r=0,a=n.length;r<a;++r){const o=n[r];o.from.color=o.options.colorFrom,o.to.color=o.options.colorTo,o.active&&i.push(o)}for(const r of i)r.from.color=r.options.colorFrom,r.to.color=r.options.colorTo;this._drawNodes();for(let r=0,a=n.length;r<a;++r)n[r].draw(t);this._drawLabels()}}SankeyController.id="sankey";SankeyController.defaults={dataElementType:"flow",animations:{numbers:{type:"number",properties:["x","y","x2","y2","height"]},progress:{easing:"linear",duration:e=>e.type==="data"?(e.parsed._custom.x-e.parsed.x)*200:void 0,delay:e=>e.type==="data"?e.parsed.x*500+e.dataIndex*20:void 0},colors:{type:"color",properties:["colorFrom","colorTo"]}},transitions:{hide:{animations:{colors:{type:"color",properties:["colorFrom","colorTo"],to:"transparent"}}},show:{animations:{colors:{type:"color",properties:["colorFrom","colorTo"],from:"transparent"}}}}};SankeyController.overrides={interaction:{mode:"nearest",intersect:!0},datasets:{clip:!1,parsing:!0},plugins:{tooltip:{callbacks:{title(){return""},label(e){const t=e.dataset.data[e.dataIndex];return t.from+" -> "+t.to+": "+t.flow}}},legend:{display:!1}},scales:{x:{type:"linear",bounds:"data",display:!1,min:0,offset:!1},y:{type:"linear",bounds:"data",display:!1,min:0,reverse:!0,offset:!1}},layout:{padding:{top:3,left:3,right:13,bottom:3}}};const controlPoints=(e,t,n,i)=>e<n?{cp1:{x:e+(n-e)/3*2,y:t},cp2:{x:e+(n-e)/3,y:i}}:{cp1:{x:e-(e-n)/3,y:0},cp2:{x:n+(e-n)/3,y:0}},pointInLine=(e,t,n)=>({x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)});function setStyle(e,{x:t,x2:n,options:i}){let r;i.colorMode==="from"?r=color(i.colorFrom).alpha(.5).rgbString():i.colorMode==="to"?r=color(i.colorTo).alpha(.5).rgbString():(r=e.createLinearGradient(t,0,n,0),r.addColorStop(0,color(i.colorFrom).alpha(.5).rgbString()),r.addColorStop(1,color(i.colorTo).alpha(.5).rgbString())),e.fillStyle=r,e.strokeStyle=r,e.lineWidth=.5}class Flow extends Element$1{constructor(t){super(),this.options=void 0,this.x=void 0,this.y=void 0,this.x2=void 0,this.y2=void 0,this.height=void 0,t&&Object.assign(this,t)}draw(t){const n=this,{x:i,x2:r,y:a,y2:o,height:l,progress:u}=n,{cp1:d,cp2:m}=controlPoints(i,a,r,o);u!==0&&(t.save(),u<1&&(t.beginPath(),t.rect(i,Math.min(a,o),(r-i)*u+1,Math.abs(o-a)+l+1),t.clip()),setStyle(t,n),t.beginPath(),t.moveTo(i,a),t.bezierCurveTo(d.x,d.y,m.x,m.y,r,o),t.lineTo(r,o+l),t.bezierCurveTo(m.x,m.y+l,d.x,d.y+l,i,a+l),t.lineTo(i,a),t.stroke(),t.closePath(),t.fill(),t.restore())}inRange(t,n,i){const{x:r,y:a,x2:o,y2:l,height:u}=this.getProps(["x","y","x2","y2","height"],i);if(t<r||t>o)return!1;const{cp1:d,cp2:m}=controlPoints(r,a,o,l),g=(t-r)/(o-r),_={x:r,y:a},v={x:o,y:l},w=pointInLine(_,d,g),E=pointInLine(d,m,g),x=pointInLine(m,v,g),M=pointInLine(w,E,g),S=pointInLine(E,x,g),R=pointInLine(M,S,g).y;return n>=R&&n<=R+u}inXRange(t,n){const{x:i,x2:r}=this.getProps(["x","x2"],n);return t>=i&&t<=r}inYRange(t,n){const{y:i,y2:r,height:a}=this.getProps(["y","y2","height"],n),o=Math.min(i,r),l=Math.max(i,r)+a;return t>=o&&t<=l}getCenterPoint(t){const{x:n,y:i,x2:r,y2:a,height:o}=this.getProps(["x","y","x2","y2","height"],t);return{x:(n+r)/2,y:(i+a+o)/2}}tooltipPosition(t){return this.getCenterPoint(t)}getRange(t){return t==="x"?this.width/2:this.height/2}}Flow.id="flow";Flow.defaults={colorFrom:"red",colorTo:"green",colorMode:"gradient",hoverColorFrom:(e,t)=>getHoverColor(t.colorFrom),hoverColorTo:(e,t)=>getHoverColor(t.colorTo)};/*!
* chartjs-adapter-date-fns v3.0.0
* https://www.chartjs.org
* (c) 2022 chartjs-adapter-date-fns Contributors
* Released under the MIT license
- */const FORMATS={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};adapters._date.override({_id:"date-fns",formats:function(){return FORMATS},parse:function(e,t){if(e===null||typeof e>"u")return null;const n=typeof e;return n==="number"||e instanceof Date?e=toDate(e):n==="string"&&(typeof t=="string"?e=parse$1(e,t,new Date,this.options):e=parseISO(e,this.options)),isValid(e)?e.getTime():null},format:function(e,t){return format(e,t,this.options)},add:function(e,t,n){switch(n){case"millisecond":return addMilliseconds(e,t);case"second":return addSeconds(e,t);case"minute":return addMinutes(e,t);case"hour":return addHours(e,t);case"day":return addDays(e,t);case"week":return addWeeks(e,t);case"month":return addMonths(e,t);case"quarter":return addQuarters(e,t);case"year":return addYears(e,t);default:return e}},diff:function(e,t,n){switch(n){case"millisecond":return differenceInMilliseconds(e,t);case"second":return differenceInSeconds(e,t);case"minute":return differenceInMinutes(e,t);case"hour":return differenceInHours(e,t);case"day":return differenceInDays(e,t);case"week":return differenceInWeeks(e,t);case"month":return differenceInMonths(e,t);case"quarter":return differenceInQuarters(e,t);case"year":return differenceInYears(e,t);default:return 0}},startOf:function(e,t,n){switch(t){case"second":return startOfSecond(e);case"minute":return startOfMinute(e);case"hour":return startOfHour(e);case"day":return startOfDay(e);case"week":return startOfWeek(e);case"isoWeek":return startOfWeek(e,{weekStartsOn:+n});case"month":return startOfMonth(e);case"quarter":return startOfQuarter(e);case"year":return startOfYear(e);default:return e}},endOf:function(e,t){switch(t){case"second":return endOfSecond(e);case"minute":return endOfMinute(e);case"hour":return endOfHour(e);case"day":return endOfDay(e);case"week":return endOfWeek(e);case"month":return endOfMonth(e);case"quarter":return endOfQuarter(e);case"year":return endOfYear(e);default:return e}}});var leafletSrc={exports:{}};/* @preserve
+ */const FORMATS={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};adapters._date.override({_id:"date-fns",formats:function(){return FORMATS},parse:function(e,t){if(e===null||typeof e>"u")return null;const n=typeof e;return n==="number"||e instanceof Date?e=toDate(e):n==="string"&&(typeof t=="string"?e=parse$1(e,t,new Date,this.options):e=parseISO(e,this.options)),isValid(e)?e.getTime():null},format:function(e,t){return format(e,t,this.options)},add:function(e,t,n){switch(n){case"millisecond":return addMilliseconds(e,t);case"second":return addSeconds(e,t);case"minute":return addMinutes(e,t);case"hour":return addHours(e,t);case"day":return addDays(e,t);case"week":return addWeeks(e,t);case"month":return addMonths(e,t);case"quarter":return addQuarters(e,t);case"year":return addYears(e,t);default:return e}},diff:function(e,t,n){switch(n){case"millisecond":return differenceInMilliseconds(e,t);case"second":return differenceInSeconds(e,t);case"minute":return differenceInMinutes(e,t);case"hour":return differenceInHours(e,t);case"day":return differenceInDays(e,t);case"week":return differenceInWeeks(e,t);case"month":return differenceInMonths(e,t);case"quarter":return differenceInQuarters(e,t);case"year":return differenceInYears(e,t);default:return 0}},startOf:function(e,t,n){switch(t){case"second":return startOfSecond(e);case"minute":return startOfMinute(e);case"hour":return startOfHour(e);case"day":return startOfDay(e);case"week":return startOfWeek(e);case"isoWeek":return startOfWeek(e,{weekStartsOn:+n});case"month":return startOfMonth(e);case"quarter":return startOfQuarter(e);case"year":return startOfYear(e);default:return e}},endOf:function(e,t){switch(t){case"second":return endOfSecond(e);case"minute":return endOfMinute(e);case"hour":return endOfHour(e);case"day":return endOfDay(e);case"week":return endOfWeek(e);case"month":return endOfMonth(e);case"quarter":return endOfQuarter(e);case"year":return endOfYear(e);default:return e}}});const leaflet="",DEFAULTS$1={showAllSuggestions:!1,suggestionsThreshold:1,maximumItems:0,autoselectFirst:!0,ignoreEnter:!1,updateOnSelect:!1,highlightTyped:!1,highlightClass:"",fullWidth:!1,fixed:!1,fuzzy:!1,startsWith:!1,fillIn:!1,preventBrowserAutocomplete:!1,itemClass:"",activeClasses:["bg-primary","text-white"],labelField:"label",valueField:"value",searchFields:["label"],queryParam:"query",items:[],source:null,hiddenInput:!1,hiddenValue:"",clearControl:"",datalist:"",server:"",serverMethod:"GET",serverParams:{},serverDataKey:"data",fetchOptions:{},liveServer:!1,noCache:!0,debounceTime:300,notFoundMessage:"",onRenderItem:(e,t,n)=>t,onSelectItem:(e,t)=>{},onServerResponse:(e,t)=>e.json(),onChange:(e,t)=>{},onBeforeFetch:e=>{},onAfterFetch:e=>{}},LOADING_CLASS$1="is-loading",ACTIVE_CLASS$1="is-active",SHOW_CLASS$1="show",NEXT$1="next",PREV$1="prev",INSTANCE_MAP$1=new WeakMap;let counter$1=0,activeCounter=0;function debounce$1(e,t=300){let n;return(...i)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(this,i)},t)}}function removeDiacritics$1(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function normalize$1(e){return e?removeDiacritics$1(e.toString()).toLowerCase():""}function fuzzyMatch$1(e,t){if(e.indexOf(t)>=0)return!0;let n=0;for(let i=0;i<t.length;i++){const r=t[i];if(r!=" "&&(n=e.indexOf(r,n)+1,n<=0))return!1}return!0}function insertAfter(e,t){return e.parentNode.insertBefore(t,e.nextSibling)}function decodeHtml(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value}function attrs$1(e,t){for(const[n,i]of Object.entries(t))e.setAttribute(n,i)}function zwijit(e){e.ariaLabel=e.innerText,e.innerHTML=e.innerText.split("").map(t=>t+"&zwj;").join("")}function nested$1(e,t="window"){return e.split(".").reduce((n,i)=>n[i],t)}class Autocomplete{constructor(t,n={}){Y(this,"handleEvent",t=>{["scroll","resize"].includes(t.type)?(this._timer&&window.cancelAnimationFrame(this._timer),this._timer=window.requestAnimationFrame(()=>{this[`on${t.type}`](t)})):this[`on${t.type}`](t)});if(!(t instanceof HTMLElement)){console.error("Invalid element",t);return}INSTANCE_MAP$1.set(t,this),counter$1++,activeCounter++,this._searchInput=t,this._configure(n),this._preventInput=!1,this._keyboardNavigation=!1,this._searchFunc=debounce$1(()=>{this._loadFromServer(!0)},this._config.debounceTime),this._configureSearchInput(),this._configureDropElement(),this._config.fixed&&(document.addEventListener("scroll",this,!0),window.addEventListener("resize",this));const i=this._getClearControl();i&&i.addEventListener("click",this),["focus","change","blur","input","keydown"].forEach(r=>{this._searchInput.addEventListener(r,this)}),["mousemove","mouseleave"].forEach(r=>{this._dropElement.addEventListener(r,this)}),this._fetchData()}static init(t="input.autocomplete",n={}){document.querySelectorAll(t).forEach(r=>{this.getOrCreateInstance(r,n)})}static getInstance(t){return INSTANCE_MAP$1.has(t)?INSTANCE_MAP$1.get(t):null}static getOrCreateInstance(t,n={}){return this.getInstance(t)||new this(t,n)}dispose(){activeCounter--,["focus","change","blur","input","keydown"].forEach(n=>{this._searchInput.removeEventListener(n,this)}),["mousemove","mouseleave"].forEach(n=>{this._dropElement.removeEventListener(n,this)});const t=this._getClearControl();t&&t.removeEventListener("click",this),this._config.fixed&&activeCounter<=0&&(document.removeEventListener("scroll",this,!0),window.removeEventListener("resize",this)),this._dropElement.parentElement.removeChild(this._dropElement),INSTANCE_MAP$1.delete(this._searchInput)}_getClearControl(){if(this._config.clearControl)return document.querySelector(this._config.clearControl)}_configure(t={}){this._config=Object.assign({},DEFAULTS$1);const n={...t,...this._searchInput.dataset},i=r=>["true","false","1","0",!0,!1].includes(r)&&!!JSON.parse(r);for(const[r,a]of Object.entries(DEFAULTS$1)){if(n[r]===void 0)continue;const o=n[r];switch(typeof a){case"number":this._config[r]=parseInt(o);break;case"boolean":this._config[r]=i(o);break;case"string":this._config[r]=o.toString();break;case"object":if(Array.isArray(a))if(typeof o=="string"){const l=o.includes("|")?"|":",";this._config[r]=o.split(l)}else this._config[r]=o;else this._config[r]=typeof o=="string"?JSON.parse(o):o;break;case"function":this._config[r]=typeof o=="string"?window[o]:o;break;default:this._config[r]=o;break}}}_configureSearchInput(){if(this._searchInput.autocomplete="off",this._searchInput.spellcheck=!1,attrs$1(this._searchInput,{"aria-autocomplete":"list","aria-haspopup":"menu","aria-expanded":"false",role:"combobox"}),this._searchInput.id&&this._config.preventBrowserAutocomplete){const t=document.querySelector(`[for="${this._searchInput.id}"]`);t&&zwijit(t)}this._hiddenInput=null,this._config.hiddenInput&&(this._hiddenInput=document.createElement("input"),this._hiddenInput.type="hidden",this._hiddenInput.value=this._config.hiddenValue,this._hiddenInput.name=this._searchInput.name,this._searchInput.name="_"+this._searchInput.name,insertAfter(this._searchInput,this._hiddenInput))}_configureDropElement(){this._dropElement=document.createElement("ul"),this._dropElement.id="ac-menu-"+counter$1,this._dropElement.classList.add("dropdown-menu","autocomplete-menu","p-0"),this._dropElement.style.maxHeight="280px",this._config.fullWidth||(this._dropElement.style.maxWidth="360px"),this._config.fixed&&(this._dropElement.style.position="fixed"),this._dropElement.style.overflowY="auto",this._dropElement.style.overscrollBehavior="contain",this._dropElement.style.textAlign="unset",insertAfter(this._searchInput,this._dropElement),this._searchInput.setAttribute("aria-controls",this._dropElement.id)}onclick(t){t.target.matches(this._config.clearControl)&&this.clear()}oninput(t){this._preventInput||(this._hiddenInput&&(this._hiddenInput.value=null),this.showOrSearch())}onchange(t){const n=this._searchInput.value,i=Object.values(this._items).find(r=>r.label===n);this._config.onChange(i,this)}onblur(t){if(t.relatedTarget&&t.relatedTarget.classList.contains("modal")){this._searchInput.focus();return}setTimeout(()=>{this.hideSuggestions()},100)}onfocus(t){this.showOrSearch()}onkeydown(t){switch(t.keyCode||t.key){case 13:case"Enter":if(this.isDropdownVisible()){const i=this.getSelection();i&&i.click(),(i||!this._config.ignoreEnter)&&t.preventDefault()}break;case 38:case"ArrowUp":t.preventDefault(),this._keyboardNavigation=!0,this._moveSelection(PREV$1);break;case 40:case"ArrowDown":t.preventDefault(),this._keyboardNavigation=!0,this.isDropdownVisible()?this._moveSelection(NEXT$1):this.showOrSearch(!1);break;case 27:case"Escape":this.isDropdownVisible()&&(this._searchInput.focus(),this.hideSuggestions());break}}onmousemove(t){this._keyboardNavigation=!1}onmouseleave(t){this.removeSelection()}onscroll(t){this._positionMenu()}onresize(t){this._positionMenu()}getConfig(t=null){return t!==null?this._config[t]:this._config}setConfig(t,n){this._config[t]=n}setData(t){this._items={},this._addItems(t)}enable(){this._searchInput.setAttribute("disabled","")}disable(){this._searchInput.removeAttribute("disabled")}isDisabled(){return this._searchInput.hasAttribute("disabled")||this._searchInput.disabled||this._searchInput.hasAttribute("readonly")}isDropdownVisible(){return this._dropElement.classList.contains(SHOW_CLASS$1)}clear(){this._searchInput.value="",this._hiddenInput&&(this._hiddenInput.value="")}getSelection(){return this._dropElement.querySelector("a."+ACTIVE_CLASS$1)}removeSelection(){const t=this.getSelection();t&&t.classList.remove(...this._activeClasses())}_activeClasses(){return[...this._config.activeClasses,ACTIVE_CLASS$1]}_isItemEnabled(t){if(t.style.display==="none")return!1;const n=t.firstElementChild;return n.tagName==="A"&&!n.classList.contains("disabled")}_moveSelection(t=NEXT$1,n=null){const i=this.getSelection();if(i){const r=t===NEXT$1?"nextSibling":"previousSibling";n=i.parentNode;do n=n[r];while(n&&!this._isItemEnabled(n));n?(i.classList.remove(...this._activeClasses()),t===PREV$1?n.parentNode.scrollTop=n.offsetTop-n.parentNode.offsetTop:n.offsetTop>n.parentNode.offsetHeight-n.offsetHeight&&(n.parentNode.scrollTop+=n.offsetHeight)):i&&(n=i.parentElement)}else{if(t===PREV$1)return n;if(!n)for(n=this._dropElement.firstChild;n&&!this._isItemEnabled(n);)n=n.nextSibling}if(n){const r=n.querySelector("a");r.classList.add(...this._activeClasses()),this._searchInput.setAttribute("aria-activedescendant",r.id),this._config.updateOnSelect&&(this._searchInput.value=r.dataset.label)}else this._searchInput.setAttribute("aria-activedescendant","");return n}_shouldShow(){return this.isDisabled()?!1:this._searchInput.value.length>=this._config.suggestionsThreshold}showOrSearch(t=!0){if(t&&!this._shouldShow()){this.hideSuggestions();return}this._config.liveServer?this._searchFunc():this._config.source?this._config.source(this._searchInput.value,n=>{this.setData(n),this._showSuggestions()}):this._showSuggestions()}_createGroup(t){const n=this._createLi(),i=document.createElement("span");return n.append(i),i.classList.add("dropdown-header","text-truncate"),i.innerHTML=t,n}_createItem(t,n){let i=n.label;if(this._config.highlightTyped){const o=normalize$1(i).indexOf(t);o!==-1&&(i=i.substring(0,o)+`<mark class="${this._config.highlightClass}">${i.substring(o,o+t.length)}</mark>`+i.substring(o+t.length,i.length))}i=this._config.onRenderItem(n,i,this);const r=this._createLi(),a=document.createElement("a");if(r.append(a),a.id=this._dropElement.id+"-"+this._dropElement.children.length,a.classList.add("dropdown-item","text-truncate"),this._config.itemClass&&a.classList.add(...this._config.itemClass.split(" ")),a.setAttribute("data-value",n.value),a.setAttribute("data-label",n.label),a.setAttribute("tabindex","-1"),a.setAttribute("role","menuitem"),a.setAttribute("href","#"),a.innerHTML=i,n.data)for(const[o,l]of Object.entries(n.data))a.dataset[o]=l;if(this._config.fillIn){const o=document.createElement("button");o.type="button",o.classList.add("btn","btn-link","border-0"),o.innerHTML=`<svg width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
+ <path fill-rule="evenodd" d="M2 2.5a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1H3.707l10.147 10.146a.5.5 0 0 1-.708.708L3 3.707V8.5a.5.5 0 0 1-1 0z"/>
+ </svg>`,r.append(o),r.classList.add("d-flex","justify-content-between"),o.addEventListener("click",l=>{this._searchInput.value=n.label,this._searchInput.focus()})}return a.addEventListener("mouseenter",o=>{this._keyboardNavigation||(this.removeSelection(),r.querySelector("a").classList.add(...this._activeClasses()))}),a.addEventListener("mousedown",o=>{o.preventDefault()}),a.addEventListener("click",o=>{o.preventDefault(),this._preventInput=!0,this._searchInput.value=decodeHtml(n.label),this._hiddenInput&&(this._hiddenInput.value=n.value),this._config.onSelectItem(n,this),this.hideSuggestions(),this._preventInput=!1}),r}_showSuggestions(){if(document.activeElement!=this._searchInput)return;const t=normalize$1(this._searchInput.value);this._dropElement.innerHTML="";const n=Object.keys(this._items);let i=0,r=null;const a=[];for(let o=0;o<n.length;o++){const l=n[o],u=this._items[l],d=this._config.showAllSuggestions||t.length===0;let m=t.length==0&&this._config.suggestionsThreshold===0;!d&&t.length>0&&this._config.searchFields.forEach(_=>{const v=normalize$1(u[_]);let w=!1;if(this._config.fuzzy)w=fuzzyMatch$1(v,t);else{const E=v.indexOf(t);w=this._config.startsWith?E===0:E>=0}w&&(m=!0)});const g=m||t.length===0;if(d||m){if(i++,u.group&&!a.includes(u.group)){const v=this._createGroup(u.group);this._dropElement.appendChild(v),a.push(u.group)}const _=this._createItem(t,u);if(!r&&g&&(r=_),this._dropElement.appendChild(_),this._config.maximumItems>0&&i>=this._config.maximumItems)break}}if(r&&this._config.autoselectFirst&&(this.removeSelection(),this._moveSelection(NEXT$1,r)),i===0)if(this._config.notFoundMessage){const o=this._createLi();o.innerHTML=`<span class="dropdown-item">${this._config.notFoundMessage}</span>`,this._dropElement.appendChild(o),this._showDropdown()}else this.hideSuggestions();else this._showDropdown()}_createLi(){const t=document.createElement("li");return t.setAttribute("role","presentation"),t}_showDropdown(){this._dropElement.classList.add(SHOW_CLASS$1),this._dropElement.setAttribute("role","menu"),attrs$1(this._searchInput,{"aria-expanded":"true"}),this._positionMenu()}toggleSuggestions(t=!0){this._dropElement.classList.contains(SHOW_CLASS$1)?this.hideSuggestions():this.showOrSearch(t)}hideSuggestions(){this._dropElement.classList.remove(SHOW_CLASS$1),attrs$1(this._searchInput,{"aria-expanded":"false"}),this.removeSelection()}getInput(){return this._searchInput}getDropMenu(){return this._dropElement}_positionMenu(){const t=window.getComputedStyle(this._searchInput),n=this._searchInput.getBoundingClientRect(),i=t.direction==="rtl",r=this._config.fullWidth,a=this._config.fixed;let o=null,l=null;a&&(o=n.x,l=n.y+n.height,i&&!r&&(o-=this._dropElement.offsetWidth-n.width)),this._dropElement.style.transform="unset",r&&(this._dropElement.style.width=this._searchInput.offsetWidth+"px"),o!==null&&(this._dropElement.style.left=o+"px"),l!==null&&(this._dropElement.style.top=l+"px");const u=this._dropElement.getBoundingClientRect(),d=window.innerHeight;if(u.y+u.height>d){const m=r?n.height+4:n.height;this._dropElement.style.transform="translateY(calc(-100.1% - "+m+"px))"}}_fetchData(){this._items={},this._addItems(this._config.items);const t=this._config.datalist;if(t){const n=document.querySelector(`#${t}`);if(n){const i=Array.from(n.children).map(r=>{const a=r.getAttribute("value")??r.innerHTML.toLowerCase(),o=r.innerHTML;return{value:a,label:o}});this._addItems(i)}else console.error(`Datalist not found ${t}`)}this._setHiddenVal(),this._config.server&&!this._config.liveServer&&this._loadFromServer()}_setHiddenVal(){if(this._config.hiddenInput&&!this._config.hiddenValue)for(const[t,n]of Object.entries(this._items))n.label==this._searchInput.value&&(this._hiddenInput.value=t)}_addItems(t){const n=Object.keys(t);for(let i=0;i<n.length;i++){const r=n[i],a=t[r];if(a.group&&a.items){a.items.forEach(u=>u.group=a.group),this._addItems(a.items);continue}const o=typeof a=="string"?a:a.label,l=typeof a!="object"?{}:a;l.label=a[this._config.labelField]??o,l.value=a[this._config.valueField]??r,l.label&&(this._items[l.value]=l)}}_loadFromServer(t=!1){this._abortController&&this._abortController.abort(),this._abortController=new AbortController;let n=this._searchInput.dataset.serverParams||{};typeof n=="string"&&(n=JSON.parse(n));const i=Object.assign({},this._config.serverParams,n);if(i[this._config.queryParam]=this._searchInput.value,this._config.noCache&&(i.t=Date.now()),i.related){const l=document.getElementById(i.related);if(l){i.related=l.value;const u=l.getAttribute("name");u&&(i[u]=l.value)}}const r=new URLSearchParams(i);let a=this._config.server,o=Object.assign(this._config.fetchOptions,{method:this._config.serverMethod||"GET",signal:this._abortController.signal});o.method==="POST"?o.body=r:a+="?"+r.toString(),this._searchInput.classList.add(LOADING_CLASS$1),this._config.onBeforeFetch(this),fetch(a,o).then(l=>this._config.onServerResponse(l,this)).then(l=>{const u=nested$1(this._config.serverDataKey,l)||l;this.setData(u),this._setHiddenVal(),this._abortController=null,t&&this._showSuggestions()}).catch(l=>{l.name==="AbortError"||this._abortController.signal.aborted||console.error(l)}).finally(l=>{this._searchInput.classList.remove(LOADING_CLASS$1),this._config.onAfterFetch(this)})}}const DEFAULTS={items:[],allowNew:!1,showAllSuggestions:!1,badgeStyle:"primary",allowClear:!1,clearEnd:!1,selected:[],regex:"",separator:[],max:0,clearLabel:"Clear",searchLabel:"Type a value",showDropIcon:!0,keepOpen:!1,allowSame:!1,baseClass:"",placeholder:"",addOnBlur:!1,showDisabled:!1,hideNativeValidation:!1,suggestionsThreshold:-1,maximumItems:0,autoselectFirst:!0,updateOnSelect:!1,highlightTyped:!1,highlightClass:"",fullWidth:!0,fixed:!1,fuzzy:!1,startsWith:!1,singleBadge:!1,activeClasses:["bg-primary","text-white"],labelField:"label",valueField:"value",searchFields:["label"],queryParam:"query",server:"",serverMethod:"GET",serverParams:{},serverDataKey:"data",fetchOptions:{},liveServer:!1,noCache:!0,debounceTime:300,notFoundMessage:"",onRenderItem:(e,t,n)=>t,onSelectItem:(e,t)=>{},onClearItem:(e,t)=>{},onCreateItem:(e,t)=>{},onBlur:(e,t)=>{},onFocus:(e,t)=>{},onCanAdd:(e,t,n)=>{},confirmClear:(e,t)=>Promise.resolve(),confirmAdd:(e,t)=>Promise.resolve(),onServerResponse:(e,t)=>e.json()},CLASS_PREFIX="tags-",LOADING_CLASS="is-loading",ACTIVE_CLASS="is-active",INVALID_CLASS="is-invalid",MAX_REACHED_CLASS="is-max-reached",SHOW_CLASS="show",VALUE_ATTRIBUTE="data-value",NEXT="next",PREV="prev",FOCUS_CLASS="form-control-focus",PLACEHOLDER_CLASS="form-placeholder-shown",DISABLED_CLASS="form-control-disabled",INSTANCE_MAP=new WeakMap;let counter=0,tooltip=window.bootstrap&&window.bootstrap.Tooltip;function debounce(e,t=300){let n;return(...i)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(this,i)},t)}}function calcTextWidth(e,t=null){const n=ce("span");document.body.appendChild(n),n.style.fontSize=t||"inherit",n.style.height="auto",n.style.width="auto",n.style.position="absolute",n.style.whiteSpace="no-wrap",n.innerHTML=e;const i=Math.ceil(n.clientWidth);return document.body.removeChild(n),i}function removeDiacritics(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function normalize(e){return e?removeDiacritics(e.toString()).toLowerCase():""}function fuzzyMatch(e,t){if(e.indexOf(t)>=0)return!0;let n=0;for(let i=0;i<t.length;i++){const r=t[i];if(r!=" "&&(n=e.indexOf(r,n)+1,n<=0))return!1}return!0}function hideItem(e){e.style.display="none",attrs(e,{"aria-hidden":"true"})}function showItem(e){e.style.display="list-item",attrs(e,{"aria-hidden":"false"})}function attrs(e,t){for(const[n,i]of Object.entries(t))e.setAttribute(n,i)}function rmAttr(e,t){e.hasAttribute(t)&&e.removeAttribute(t)}function parseBool(e){return["true","false","1","0",!0,!1].includes(e)&&!!JSON.parse(e)}function ce(e){return document.createElement(e)}function splitMulti(e,t){let n=t[0];for(let i=1;i<t.length;i++)e=e.split(t[i]).join(n);return e.split(n)}function nested(e,t="window"){return e.split(".").reduce((n,i)=>n[i],t)}const elementsToBlur=new Set,documentEventHandler={handleEvent:e=>{elementsToBlur.forEach(t=>{let n=!1;e.type=="click"&&!e.composedPath().includes(t.getHolder())&&(n=!0),e.type=="focusin"&&["input","select","textarea"].includes(e.target.tagName.toLowerCase())&&(n=!0),n&&(t.afteronblur(e),elementsToBlur.delete(t))})}};class Tags{constructor(t,n={}){if(!(t instanceof HTMLElement)){console.error("Invalid element",t);return}INSTANCE_MAP.set(t,this),counter++,this._selectElement=t,this._configure(n),this._keyboardNavigation=!1,this._searchFunc=debounce(()=>{this._loadFromServer(!0)},this._config.debounceTime),this._fireEvents=!0,this._configureParent(),this._holderElement=ce("div"),this._containerElement=ce("div"),this._dropElement=ce("ul"),this._searchInput=ce("input"),this._holderElement.appendChild(this._containerElement),this._selectElement.parentElement.insertBefore(this._holderElement,this._selectElement),this._configureHolderElement(),this._configureContainerElement(),this._configureSelectElement(),this._configureSearchInput(),this._configureDropElement(),this.resetState(),this.handleEvent=i=>{this._handleEvent(i)},this._config.fixed&&(document.addEventListener("scroll",this,!0),window.addEventListener("resize",this)),["focus","blur","input","keydown","paste"].forEach(i=>{this._searchInput.addEventListener(i,this)}),["mousemove","mouseleave"].forEach(i=>{this._dropElement.addEventListener(i,this)}),["click","focusin"].forEach(i=>{document.addEventListener(i,documentEventHandler)}),this.loadData(!0)}static init(t="select[multiple]",n={},i=!1){let r=document.querySelectorAll(t);for(let a=0;a<r.length;a++){const o=Tags.getInstance(r[a]);o&&!i||(o&&o.dispose(),new Tags(r[a],n))}}static getInstance(t){if(INSTANCE_MAP.has(t))return INSTANCE_MAP.get(t)}dispose(){["focus","blur","input","keydown","paste"].forEach(t=>{this._searchInput.removeEventListener(t,this)}),["mousemove","mouseleave"].forEach(t=>{this._dropElement.removeEventListener(t,this)}),["click","focusin"].forEach(t=>{document.removeEventListener(t,documentEventHandler)}),this._config.fixed&&(document.removeEventListener("scroll",this,!0),window.removeEventListener("resize",this)),this._selectElement.style.display="block",this._holderElement.parentElement.removeChild(this._holderElement),this.parentForm&&this.parentForm.removeEventListener("reset",this),elementsToBlur.has(this)&&elementsToBlur.delete(this),INSTANCE_MAP.delete(this._selectElement)}handleEvent(t){this._handleEvent(t)}_handleEvent(t){["scroll","resize"].includes(t.type)?(this._timer&&window.cancelAnimationFrame(this._timer),this._timer=window.requestAnimationFrame(()=>{this[`on${t.type}`](t)})):this[`on${t.type}`](t)}_configure(t={}){this._config=Object.assign({},DEFAULTS,{showDropIcon:!!this._findOption()});const n=this._selectElement.dataset.config?JSON.parse(this._selectElement.dataset.config):{},i={...t,...n,...this._selectElement.dataset};for(const[r,a]of Object.entries(DEFAULTS)){if(r=="config"||i[r]===void 0)continue;const o=i[r];switch(typeof a){case"number":this._config[r]=parseInt(o);break;case"boolean":this._config[r]=parseBool(o);break;case"string":this._config[r]=o.toString();break;case"object":this._config[r]=o,typeof o=="string"&&(["{","["].includes(o[0])?this._config[r]=JSON.parse(o):this._config[r]=o.split(o.includes("|")?"|":","));break;case"function":this._config[r]=typeof o=="string"?o.split(".").reduce((l,u)=>l[u],window):o,this._config[r]||console.error("Invalid function",o);break;default:this._config[r]=o;break}}this._config.placeholder||(this._config.placeholder=this._getPlaceholder()),this._config.suggestionsThreshold==-1&&(this._config.suggestionsThreshold=this._config.liveServer?1:0)}config(t=null){return t?this._config[t]:this._config}setConfig(t,n){this._config[t]=n}_configureParent(){for(this.overflowParent=null,this.parentForm=this._selectElement.parentElement;this.parentForm&&(this.parentForm.style.overflow==="hidden"&&(this.overflowParent=this.parentForm),this.parentForm=this.parentForm.parentElement,!(this.parentForm&&this.parentForm.nodeName=="FORM")););this.parentForm&&this.parentForm.addEventListener("reset",this)}_getPlaceholder(){if(this._selectElement.hasAttribute("placeholder"))return this._selectElement.getAttribute("placeholder");if(this._selectElement.dataset.placeholder)return this._selectElement.dataset.placeholder;let t=this._selectElement.querySelector("option");return!t||!this._config.autoselectFirst?"":(rmAttr(t,"selected"),t.selected=!1,t.value?"":t.textContent)}_configureSelectElement(){const t=this._selectElement;this._config.hideNativeValidation?(t.style.position="absolute",t.style.left="-9999px"):t.style.cssText="height:1px;width:1px;opacity:0;padding:0;margin:0;border:0;float:left;flex-basis:100%;min-height:unset;",t.tabIndex=-1,t.addEventListener("focus",n=>{this.onclick(n)}),t.addEventListener("invalid",n=>{this._holderElement.classList.add(INVALID_CLASS)})}_configureDropElement(){const t=this._dropElement;t.classList.add("dropdown-menu",CLASS_PREFIX+"menu"),t.id=CLASS_PREFIX+"menu-"+counter,t.setAttribute("role","menu");const n=t.style;n.padding="0",n.maxHeight="280px",this._config.fullWidth||(n.maxWidth="360px"),this._config.fixed&&(n.position="fixed"),n.overflowY="auto",n.overscrollBehavior="contain",n.textAlign="unset",t.addEventListener("mouseenter",i=>{this._keyboardNavigation=!1}),this._holderElement.appendChild(t),this._searchInput.setAttribute("aria-controls",t.id)}_configureHolderElement(){const t=this._holderElement;t.classList.add("form-control","dropdown"),["form-select-lg","form-select-sm","is-invalid","is-valid"].forEach(n=>{this._selectElement.classList.contains(n)&&t.classList.add(n)}),this._config.suggestionsThreshold==0&&this._config.showDropIcon&&t.classList.add("form-select"),this.overflowParent&&(t.style.position="inherit"),t.style.height="auto",t.addEventListener("click",this)}_configureContainerElement(){this._containerElement.addEventListener("click",n=>{this.isDisabled()||this._searchInput.style.visibility!="hidden"&&this._searchInput.focus()});const t=this._containerElement.style;t.display="flex",t.alignItems="center",t.flexWrap="wrap"}_configureSearchInput(){const t=this._searchInput;t.type="text",t.autocomplete="off",t.spellcheck=!1,attrs(t,{"aria-autocomplete":"list","aria-haspopup":"menu","aria-expanded":"false","aria-label":this._config.searchLabel,role:"combobox"}),t.style.cssText="background-color:transparent;color:currentColor;border:0;padding:0;outline:0;max-width:100%",this.resetSearchInput(!0),this._containerElement.appendChild(t),this._rtl=window.getComputedStyle(t).direction==="rtl"}onfocus(t){elementsToBlur.has(this)&&elementsToBlur.delete(this),this._holderElement.classList.add(FOCUS_CLASS),this.showOrSearch(),this._config.onFocus(t,this)}onblur(t){elementsToBlur.add(this)}afteronblur(t){this._abortController&&this._abortController.abort();let n=!0;if(this._config.addOnBlur&&this._searchInput.value&&(n=this._enterValue()),this._holderElement.classList.remove(FOCUS_CLASS),this.hideSuggestions(n),this._fireEvents){const i=this.getSelection(),r={selection:i?i.dataset.value:null,input:this._searchInput.value};this._config.onBlur(t,this),this._selectElement.dispatchEvent(new CustomEvent("tags.blur",{bubbles:!0,detail:r}))}}onpaste(t){const i=(t.clipboardData||window.clipboardData).getData("text/plain").replace(/\r\n|\n/g," ");if(i.length>2&&this._config.separator.length){const r=splitMulti(i,this._config.separator).filter(a=>a);r.length>1&&(t.preventDefault(),r.forEach(a=>{this._addPastedValue(a)}))}}_addPastedValue(t){let n=t,i={};if(this._config.allowNew)i.new=1;else{const r=this.getSelection();if(!r)return;t=r.getAttribute(VALUE_ATTRIBUTE),n=r.dataset.label}this._config.confirmAdd(t,this).then(()=>{this._add(n,t,i)}).catch(()=>{})}oninput(t){const n=this._searchInput.value;if(n){const i=n.slice(-1);if(this._config.separator.length&&this._config.separator.includes(i)){this._searchInput.value=this._searchInput.value.slice(0,-1);let r=this._searchInput.value;this._addPastedValue(r);return}}setTimeout(()=>{this._adjustWidth()}),this.showOrSearch()}onkeydown(t){let n=t.keyCode||t.key;const i=t.target;switch(t.keyCode==229&&(n=i.value.charAt(i.selectionStart-1).charCodeAt(0)),n){case 13:case"Enter":t.preventDefault(),this._enterValue();break;case 38:case"ArrowUp":t.preventDefault(),this._keyboardNavigation=!0,this._moveSelection(PREV);break;case 40:case"ArrowDown":t.preventDefault(),this._keyboardNavigation=!0,this.isDropdownVisible()?this._moveSelection(NEXT):this.showOrSearch(!1);break;case 8:case"Backspace":const r=this.getLastItem();this._searchInput.value.length==0&&r&&this._config.confirmClear(r,this).then(()=>{this.removeLastItem(),this._adjustWidth(),this.showOrSearch()}).catch(()=>{});break;case 27:case"Escape":this._searchInput.focus(),this.hideSuggestions();break}}onmousemove(t){this._keyboardNavigation=!1}onmouseleave(t){this.removeSelection()}onscroll(t){this._positionMenu()}onresize(t){this._positionMenu()}onclick(t=null){!this.isSingle()&&this.isMaxReached()||this._searchInput.focus()}onreset(t){this.reset()}loadData(t=!1){Object.keys(this._config.items).length>0?this.setData(this._config.items,!0):this.resetSuggestions(!0),this._config.server&&(this._config.liveServer||this._loadFromServer(!t))}_setSelectedAttributes(){const t=this._selectElement.selectedOptions||[];for(let n=0;n<t.length;n++)t[n].value&&!t[n].hasAttribute("selected")&&t[n].setAttribute("selected","selected")}resetState(){this.isDisabled()?(this._holderElement.setAttribute("readonly",""),this._searchInput.setAttribute("disabled",""),this._holderElement.classList.add(DISABLED_CLASS)):(rmAttr(this._holderElement,"readonly"),rmAttr(this._searchInput,"disabled"),this._holderElement.classList.remove(DISABLED_CLASS))}resetSuggestions(t=!1){this._setSelectedAttributes();const n=r=>({value:r.getAttribute("value"),label:r.textContent,disabled:r.disabled,selected:r.selected,data:Object.assign({disabled:r.disabled},r.dataset)});let i=Array.from(this._selectElement.children).filter(r=>r.hasAttribute("label")||!r.disabled||this._config.showDisabled).map(r=>r.hasAttribute("label")?{group:r.getAttribute("label"),items:Array.from(r.children).map(a=>n(a))}:n(r));this.setData(i,t)}_enterValue(){let t=this.getSelection();if(t)return t.click(),!0;if(this._config.allowNew&&this._searchInput.value){let n=this._searchInput.value;return this._config.confirmAdd(n,this).then(()=>{this._add(n,n,{new:1})}).catch(()=>{}),!0}return!1}_loadFromServer(t=!1){this._abortController&&this._abortController.abort(),this._abortController=new AbortController;let n=this._selectElement.dataset.serverParams||{};typeof n=="string"&&(n=JSON.parse(n));const i=Object.assign({},this._config.serverParams,n);if(i[this._config.queryParam]=this._searchInput.value,this._config.noCache&&(i.t=Date.now()),i.related){const l=document.getElementById(i.related);if(l){i.related=l.value;const u=l.getAttribute("name");u&&(i[u]=l.value)}}const r=new URLSearchParams(i);let a=this._config.server,o=Object.assign(this._config.fetchOptions,{method:this._config.serverMethod||"GET",signal:this._abortController.signal});o.method==="POST"?o.body=r:a+="?"+r.toString(),this._holderElement.classList.add(LOADING_CLASS),fetch(a,o).then(l=>this._config.onServerResponse(l,this)).then(l=>{const u=nested(this._config.serverDataKey,l)||l;this.setData(u,!t),this._abortController=null,t&&this._showSuggestions()}).catch(l=>{l.name==="AbortError"||this._abortController.signal.aborted||console.error(l)}).finally(l=>{this._holderElement.classList.remove(LOADING_CLASS)})}_add(t,n=null,i={}){if(!this.canAdd(t,i))return null;const r=this.addItem(t,n,i);return this._resetHtmlState(),this._config.keepOpen?this._showSuggestions():this.resetSearchInput(),r}_isItemEnabled(t){if(t.style.display==="none")return!1;const n=t.firstElementChild;return n.tagName==="A"&&!n.classList.contains("disabled")}_moveSelection(t=NEXT,n=null){const i=this.getSelection();if(i){const r=t===NEXT?"nextSibling":"previousSibling";n=i.parentNode;do n=n[r];while(n&&!this._isItemEnabled(n));n?i.classList.remove(...this._activeClasses()):i&&(n=i.parentElement)}else{if(t===PREV)return n;if(!n)for(n=this._dropElement.firstChild;n&&!this._isItemEnabled(n);)n=n.nextSibling}if(n){const r=n.offsetHeight,a=n.offsetTop,o=n.parentNode,l=o.offsetHeight,u=o.scrollHeight,d=o.offsetTop;if(r===0&&setTimeout(()=>{o.scrollTop=0}),t===PREV){const g=a-d>10?a-d:0;o.scrollTop=g}else a+r-(l+o.scrollTop)>0&&r>0&&(o.scrollTop=a+r-l+1,o.scrollTop+l>=u-10&&(o.scrollTop=a-d));const m=n.querySelector("a");m.classList.add(...this._activeClasses()),this._searchInput.setAttribute("aria-activedescendant",m.id),this._config.updateOnSelect&&(this._searchInput.value=m.dataset.label,this._adjustWidth())}else this._searchInput.setAttribute("aria-activedescendant","");return n}_adjustWidth(){this._holderElement.classList.remove(PLACEHOLDER_CLASS),this._searchInput.value?this._searchInput.size=this._searchInput.value.length:this.getSelectedValues().length?(this._searchInput.placeholder="",this._searchInput.size=1):(this._searchInput.size=this._config.placeholder.length>0?this._config.placeholder.length:1,this._searchInput.placeholder=this._config.placeholder,this._holderElement.classList.add(PLACEHOLDER_CLASS));const t=this._searchInput.value||this._searchInput.placeholder,n=window.getComputedStyle(this._holderElement).fontSize,i=calcTextWidth(t,n)+16;this._searchInput.style.width=i+"px"}_buildSuggestions(t){for(;this._dropElement.lastChild;)this._dropElement.removeChild(this._dropElement.lastChild);let n=0,i=1;for(let r=0;r<t.length;r++){const a=t[r];if(a){if(a.group&&a.items){const o=ce("li");o.setAttribute("role","presentation"),o.dataset.id=""+i;const l=ce("span");if(o.append(l),l.classList.add("dropdown-header","text-truncate"),l.innerHTML=a.group,this._dropElement.appendChild(o),a.items)for(let u=0;u<a.items.length;u++){const d=a.items[u];d.group_id=i,this._buildSuggestionsItem(a.items[u],n),n++}i++}this._buildSuggestionsItem(a,n),n++}}if(this._config.notFoundMessage){const r=ce("li");r.setAttribute("role","presentation"),r.classList.add(CLASS_PREFIX+"not-found"),r.innerHTML='<span class="dropdown-item"></span>',this._dropElement.appendChild(r)}}_buildSuggestionsItem(t,n){if(!t[this._config.valueField])return;const i=t[this._config.valueField],r=t[this._config.labelField];let a=this._config.onRenderItem(t,r,this);const o=ce("li");o.setAttribute("role","presentation"),t.group_id&&o.setAttribute("data-group-id",""+t.group_id);const l=ce("a");o.append(l),l.id=this._dropElement.id+"-"+n,l.classList.add("dropdown-item","text-truncate"),t.disabled&&l.classList.add("disabled"),l.setAttribute(VALUE_ATTRIBUTE,i),l.dataset.label=r;const u={};this._config.searchFields.forEach(d=>{u[d]=t[d]}),l.dataset.searchData=JSON.stringify(u),l.setAttribute("href","#"),l.innerHTML=a,this._dropElement.appendChild(o),l.addEventListener("mouseenter",d=>{this._keyboardNavigation||(this.removeSelection(),o.querySelector("a").classList.add(...this._activeClasses()))}),l.addEventListener("mousedown",d=>{d.preventDefault()}),l.addEventListener("click",d=>{d.preventDefault(),d.stopPropagation(),this._config.confirmAdd(i,this).then(()=>{this._add(r,i,t.data),this._config.onSelectItem(t,this)}).catch(()=>{})})}initialOptions(){return this._selectElement.querySelectorAll("option[data-init]")}_removeSelectedAttrs(){this._selectElement.querySelectorAll("option").forEach(t=>{rmAttr(t,"selected")})}reset(){this.removeAll(),this._fireEvents=!1;const t=this.initialOptions();this._removeSelectedAttrs();for(let n=0;n<t.length;n++){const i=t[n],r=Object.assign({},{disabled:i.hasAttribute("disabled")},i.dataset);this.addItem(i.textContent,i.value,r)}this._resetHtmlState(),this._fireEvents=!0}resetSearchInput(t=!1){if(this._searchInput.value="",this._adjustWidth(),this._checkMax(),this.isSingle()&&!t){document.activeElement.blur(),this.hideSuggestions();return}t||(this._shouldShow()||this.hideSuggestions(),this._searchInput===document.activeElement&&this._searchInput.dispatchEvent(new Event("input")))}_checkMax(){this.isMaxReached()?(this._holderElement.classList.add(MAX_REACHED_CLASS),this._searchInput.style.visibility="hidden"):this._searchInput.style.visibility=="hidden"&&(this._searchInput.style.visibility="visible")}getSelectedValues(){const t=this._selectElement.querySelectorAll("option[selected]");return Array.from(t).map(n=>n.value)}getAvailableValues(){const t=this._selectElement.querySelectorAll("option");return Array.from(t).map(n=>n.value)}showOrSearch(t=!0){if(t&&!this._shouldShow()){this.hideSuggestions(!1);return}this._config.liveServer?this._searchFunc():this._showSuggestions()}hideSuggestions(t=!0){this._dropElement.classList.remove(SHOW_CLASS),attrs(this._searchInput,{"aria-expanded":"false"}),this.removeSelection(),t&&this._holderElement.classList.remove(INVALID_CLASS)}toggleSuggestions(t=!0,n=!0){this._dropElement.classList.contains(SHOW_CLASS)?this.hideSuggestions(n):this.showOrSearch(t)}_shouldShow(){return this.isDisabled()||this.isMaxReached()?!1:this._searchInput.value.length>=this._config.suggestionsThreshold}_showSuggestions(){if(this._searchInput.style.visibility=="hidden")return;setTimeout(()=>{elementsToBlur.has(this)||elementsToBlur.add(this)},0);const t=normalize(this._searchInput.value),n={},i=this._dropElement.querySelectorAll("li");let r=0,a=null,o=!1,l={};for(let u=0;u<i.length;u++){let d=i[u],m=d.firstElementChild;if(m instanceof HTMLSpanElement){d.dataset.id&&(l[d.dataset.id]=!1),hideItem(d);continue}if(m.classList.remove(...this._activeClasses()),!this._config.allowSame){const w=m.getAttribute(VALUE_ATTRIBUTE);if(n[w]=n[w]||0,this._findOption(m.getAttribute(VALUE_ATTRIBUTE),"[selected]",n[w]++)){hideItem(d);continue}}const g=this._config.showAllSuggestions||t.length===0;let _=t.length==0&&this._config.suggestionsThreshold===0;if(!g&&t.length>0){const w=JSON.parse(m.dataset.searchData);this._config.searchFields.forEach(E=>{const x=normalize(w[E]);let M=!1;if(this._config.fuzzy)M=fuzzyMatch(x,t);else{const S=x.indexOf(t);M=this._config.startsWith?S===0:S>=0}M&&(_=!0)})}const v=_||t.length===0;if(g||_?(r++,showItem(d),d.dataset.groupId&&(l[d.dataset.groupId]=!0),!a&&this._isItemEnabled(d)&&v&&(a=d),this._config.maximumItems>0&&r>this._config.maximumItems&&hideItem(d)):hideItem(d),this._config.highlightTyped){const w=m.textContent,E=normalize(w).indexOf(t),x=w.substring(0,E)+`<mark class="${this._config.highlightClass}">${w.substring(E,E+t.length)}</mark>`+w.substring(E+t.length,w.length);m.innerHTML=x}this._isItemEnabled(d)&&(o=!0)}if(!this._config.allowNew&&!(t.length===0&&!o)&&this._holderElement.classList.add(INVALID_CLASS),this._config.allowNew&&this._config.regex&&this.isInvalid()&&this._holderElement.classList.remove(INVALID_CLASS),Array.from(i).filter(u=>u.dataset.id).forEach(u=>{l[u.dataset.id]===!0&&showItem(u)}),o&&(this._holderElement.classList.remove(INVALID_CLASS),a&&this._config.autoselectFirst&&(this.removeSelection(),this._moveSelection(NEXT,a))),r===0)if(this._config.notFoundMessage){const u=this._dropElement.querySelector("."+CLASS_PREFIX+"not-found");u.style.display="block";const d=this._config.notFoundMessage.replace("{{tag}}",this._searchInput.value);u.innerHTML=`<span class="dropdown-item">${d}</span>`,this._showDropdown()}else this.hideSuggestions(!1);else this._showDropdown()}_showDropdown(){const t=this._dropElement.classList.contains(SHOW_CLASS);t||(this._dropElement.classList.add(SHOW_CLASS),attrs(this._searchInput,{"aria-expanded":"true"})),this._positionMenu(t)}_positionMenu(t=!1){const n=this._rtl,i=this._config.fixed,r=this._config.fullWidth,a=this._searchInput.getBoundingClientRect(),o=this._holderElement.getBoundingClientRect();let l=0,u=0;if(i?r?(l=o.x,u=o.y+o.height+2):(l=a.x,u=a.y+a.height):r?(l=0,u=o.height+2):(l=this._searchInput.offsetLeft,u=this._searchInput.offsetHeight+this._searchInput.offsetTop),n&&!r&&(l-=this._dropElement.offsetWidth-a.width),!r){const g=Math.min(window.innerWidth,document.body.offsetWidth),_=n?a.x+a.width-this._dropElement.offsetWidth-1:g-1-(a.x+this._dropElement.offsetWidth);_<0&&(l=n?l-_:l+_)}r&&(this._dropElement.style.width=this._holderElement.offsetWidth+"px"),t||(this._dropElement.style.transform="unset"),Object.assign(this._dropElement.style,{left:l+"px",top:u+"px"});const d=this._dropElement.getBoundingClientRect(),m=window.innerHeight;if(d.y+d.height>m||this._dropElement.style.transform.includes("translateY")){const g=r?o.height+4:a.height;this._dropElement.style.transform="translateY(calc(-100.1% - "+g+"px))"}}_getBootstrapVersion(){let t=5,n=window.jQuery;return n&&n.fn.tooltip&&n.fn.tooltip.Constructor&&(t=parseInt(n.fn.tooltip.Constructor.VERSION.charAt(0))),t}_isSelected(t){return!!Array.from(this._selectElement.querySelectorAll("option")).find(r=>r.textContent==t&&r.getAttribute("selected"))}_isSelectable(t){const i=Array.from(this._selectElement.querySelectorAll("option")).filter(r=>r.textContent==t);return!(i.length>0&&!i.find(a=>!a.getAttribute("selected")))}hasItem(t){for(let n of this._config.items){const i=n.items||[n];for(let r of i)if(r[this._config.labelField]==t)return!0}return!1}getItem(t){for(let n of this._config.items){const i=n.items||[n];for(let r of i)if(r[this._config.valueField]==t)return r}return null}_validateRegex(t){return new RegExp(this._config.regex.trim()).test(t)}getSelection(){return this._dropElement.querySelector("a."+ACTIVE_CLASS)}removeSelection(){const t=this.getSelection();t&&t.classList.remove(...this._activeClasses())}_activeClasses(){return[...this._config.activeClasses,ACTIVE_CLASS]}getActiveSelection(){return this.getSelection()}removeActiveSelection(){return this.removeSelection()}removeAll(){this.getSelectedValues().forEach(n=>{this.removeItem(n,!0)}),this._adjustWidth()}removeLastItem(t=!1){let n=this.getLastItem();n&&this.removeItem(n,t)}getLastItem(){let t=this._containerElement.querySelectorAll("span."+CLASS_PREFIX+"badge");return t.length?t[t.length-1].getAttribute(VALUE_ATTRIBUTE):void 0}enable(){this._selectElement.setAttribute("disabled",""),this.resetState()}disable(){rmAttr(this._selectElement,"disabled"),this.resetState()}isDisabled(){return this._selectElement.hasAttribute("disabled")||this._selectElement.disabled||this._selectElement.hasAttribute("readonly")}isDropdownVisible(){return this._dropElement.classList.contains(SHOW_CLASS)}isInvalid(){return this._holderElement.classList.contains(INVALID_CLASS)}isSingle(){return!this._selectElement.hasAttribute("multiple")}isMaxReached(){return this._config.max&&this.getSelectedValues().length>=this._config.max}canAdd(t,n={}){if(!t||n.new&&!this._config.allowNew||!n.new&&!this.hasItem(t)||this.isDisabled())return!1;if(!this.isSingle()&&!this._config.allowSame){if(n.new){if(this._isSelected(t))return!1}else if(!this._isSelectable(t))return!1}return this.isMaxReached()?!1:this._config.regex&&n.new&&!this._validateRegex(t)?(this._holderElement.classList.add(INVALID_CLASS),!1):this._config.onCanAdd&&this._config.onCanAdd(t,n,this)===!1?(this._holderElement.classList.add(INVALID_CLASS),!1):!0}getData(){return this._config.items}setData(t,n=!1){Array.isArray(t)||(t=Object.entries(t).map(([i,r])=>({value:i,label:r}))),this._config.items!=t&&(this._config.items=t),n&&(this._removeSelectedAttrs(),t.forEach(i=>{const r=i[this._config.valueField],a=i[this._config.labelField];if(r&&(i.selected||this._config.selected.includes(r))){const o=this.addItem(a,r,i.data);o&&o.setAttribute("data-init","true")}})),this._buildSuggestions(t),this._resetHtmlState()}_findOption(t=null,n="",i=0){const a="option"+(t===null?"":'[value="'+CSS.escape(t)+'"]')+n;return this._selectElement.querySelectorAll(a)[i]||null}setItem(t,n={}){let i=null,r=this._findOption(t,":not([selected])");r&&(i=this.addItem(r.textContent,r.value,n));let a=this.getItem(t);if(a){const o=a[this._config.valueField],l=a[this._config.labelField];i=this.addItem(l,o,n)}return this._adjustWidth(),this._checkMax(),i}addItem(t,n=null,i={}){n||(n=t),this.isSingle()&&this.getSelectedValues().length&&this.removeLastItem(!0);let r=this._findOption(n,":not([selected])");if(!r){r=ce("option"),r.value=n,r.textContent=t;for(const[a,o]of Object.entries(i))r.dataset[a]=o;this._selectElement.appendChild(r),this._config.onCreateItem(r,this)}return r&&(i=Object.assign({title:r.getAttribute("title")},i,r.dataset)),r.setAttribute("selected","selected"),r.selected=!0,this._createBadge(t,n,i),this._fireEvents&&this._selectElement.dispatchEvent(new Event("change",{bubbles:!0})),r}_resetHtmlState(){const t=this._selectElement.innerHTML;this._selectElement.innerHTML="",this._selectElement.innerHTML=t,this._adjustWidth()}_createBadge(t,n=null,i={}){const r=this._getBootstrapVersion()===5,a=i.disabled&&parseBool(i.disabled),o=this._config.allowClear&&!a;let l=t,u=ce("span"),d=[CLASS_PREFIX+"badge"];const m=this.isSingle()&&!this._config.singleBadge;if(!m){d.push("badge");let _=this._config.badgeStyle;i.badgeStyle&&(_=i.badgeStyle),i.badgeClass&&d.push(...i.badgeClass.split(" ")),this._config.baseClass?d.push(...this._config.baseClass.split(" ")):r?d=[...d,"bg-"+_,"text-truncate"]:d=[...d,"badge-"+_],u.style.maxWidth="100%"}a&&d.push("disabled","opacity-50");const g=m?0:2;if(u.style.margin=g+"px 6px "+g+"px 0px",u.style.marginBlock=g+"px",u.style.marginInline="0px 6px",u.style.display="flex",u.style.alignItems="center",u.classList.add(...d),u.setAttribute(VALUE_ATTRIBUTE,n),i.title&&u.setAttribute("title",i.title),o){const _=d.includes("text-dark")||m?"btn-close":"btn-close btn-close-white";let v="margin-inline: 0px 6px;",w="left";this._config.clearEnd&&(w="right"),w=="right"&&(v="margin-inline: 6px 0px;");const E=r?'<button type="button" style="font-size:0.65em;'+v+'" class="'+_+'" aria-label="'+this._config.clearLabel+'"></button>':'<button type="button" style="font-size:1em;'+v+'text-shadow:none;color:currentColor;transform:scale(1.2);float:none" class="close" aria-label="'+this._config.clearLabel+'"><span aria-hidden="true">&times;</span></button>';l=w=="left"?E+l:l+E}u.innerHTML=l,this._containerElement.insertBefore(u,this._searchInput),i.title&&tooltip&&r&&tooltip.getOrCreateInstance(u),o&&u.querySelector("button").addEventListener("click",_=>{_.preventDefault(),_.stopPropagation(),this.isDisabled()||this._config.confirmClear(n,this).then(()=>{this.removeItem(n),document.activeElement.blur(),this._adjustWidth()}).catch(()=>{})})}getHolder(){return this._holderElement}clear(){this.hideSuggestions(),this.reset()}updateData(t){this.setData(t,!1),this.reset()}removeItem(t,n=!1){const i=CSS.escape(t);let r=this._containerElement.querySelectorAll("span["+VALUE_ATTRIBUTE+'="'+i+'"]');if(!r.length)return;const a=r.length-1,o=r[a];o&&(o.dataset.bsOriginalTitle&&tooltip.getOrCreateInstance(o).dispose(),o.remove());let l=this._findOption(t,"[selected]",a);l&&(rmAttr(l,"selected"),l.selected=!1,this._fireEvents&&!n&&this._selectElement.dispatchEvent(new Event("change",{bubbles:!0}))),this._searchInput.style.visibility=="hidden"&&!this.isMaxReached()&&(this._searchInput.style.visibility="visible",this._holderElement.classList.remove(MAX_REACHED_CLASS)),n||this._config.onClearItem(t,this)}}var leafletSrc={exports:{}};/* @preserve
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
- */(function(e,t){(function(n,i){i(t)})(commonjsGlobal,function(n){var i="1.9.4";function r(s){var c,d,p,b;for(d=1,p=arguments.length;d<p;d++){b=arguments[d];for(c in b)s[c]=b[c]}return s}var a=Object.create||function(){function s(){}return function(c){return s.prototype=c,new s}}();function o(s,c){var d=Array.prototype.slice;if(s.bind)return s.bind.apply(s,d.call(arguments,1));var p=d.call(arguments,2);return function(){return s.apply(c,p.length?p.concat(d.call(arguments)):arguments)}}var l=0;function u(s){return"_leaflet_id"in s||(s._leaflet_id=++l),s._leaflet_id}function h(s,c,d){var p,b,P,k;return k=function(){p=!1,b&&(P.apply(d,b),b=!1)},P=function(){p?b=arguments:(s.apply(d,arguments),setTimeout(k,c),p=!0)},P}function m(s,c,d){var p=c[1],b=c[0],P=p-b;return s===p&&d?s:((s-b)%P+P)%P+b}function g(){return!1}function _(s,c){if(c===!1)return s;var d=Math.pow(10,c===void 0?6:c);return Math.round(s*d)/d}function v(s){return s.trim?s.trim():s.replace(/^\s+|\s+$/g,"")}function w(s){return v(s).split(/\s+/)}function $(s,c){Object.prototype.hasOwnProperty.call(s,"options")||(s.options=s.options?a(s.options):{});for(var d in c)s.options[d]=c[d];return s.options}function x(s,c,d){var p=[];for(var b in s)p.push(encodeURIComponent(d?b.toUpperCase():b)+"="+encodeURIComponent(s[b]));return(!c||c.indexOf("?")===-1?"?":"&")+p.join("&")}var M=/\{ *([\w_ -]+) *\}/g;function T(s,c){return s.replace(M,function(d,p){var b=c[p];if(b===void 0)throw new Error("No value provided for variable "+d);return typeof b=="function"&&(b=b(c)),b})}var R=Array.isArray||function(s){return Object.prototype.toString.call(s)==="[object Array]"};function W(s,c){for(var d=0;d<s.length;d++)if(s[d]===c)return d;return-1}var V="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function K(s){return window["webkit"+s]||window["moz"+s]||window["ms"+s]}var U=0;function y(s){var c=+new Date,d=Math.max(0,16-(c-U));return U=c+d,window.setTimeout(s,d)}var E=window.requestAnimationFrame||K("RequestAnimationFrame")||y,S=window.cancelAnimationFrame||K("CancelAnimationFrame")||K("CancelRequestAnimationFrame")||function(s){window.clearTimeout(s)};function O(s,c,d){if(d&&E===y)s.call(c);else return E.call(window,o(s,c))}function A(s){s&&S.call(window,s)}var F={__proto__:null,extend:r,create:a,bind:o,get lastId(){return l},stamp:u,throttle:h,wrapNum:m,falseFn:g,formatNum:_,trim:v,splitWords:w,setOptions:$,getParamString:x,template:T,isArray:R,indexOf:W,emptyImageUrl:V,requestFn:E,cancelFn:S,requestAnimFrame:O,cancelAnimFrame:A};function z(){}z.extend=function(s){var c=function(){$(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},d=c.__super__=this.prototype,p=a(d);p.constructor=c,c.prototype=p;for(var b in this)Object.prototype.hasOwnProperty.call(this,b)&&b!=="prototype"&&b!=="__super__"&&(c[b]=this[b]);return s.statics&&r(c,s.statics),s.includes&&(C(s.includes),r.apply(null,[p].concat(s.includes))),r(p,s),delete p.statics,delete p.includes,p.options&&(p.options=d.options?a(d.options):{},r(p.options,s.options)),p._initHooks=[],p.callInitHooks=function(){if(!this._initHooksCalled){d.callInitHooks&&d.callInitHooks.call(this),this._initHooksCalled=!0;for(var P=0,k=p._initHooks.length;P<k;P++)p._initHooks[P].call(this)}},c},z.include=function(s){var c=this.prototype.options;return r(this.prototype,s),s.options&&(this.prototype.options=c,this.mergeOptions(s.options)),this},z.mergeOptions=function(s){return r(this.prototype.options,s),this},z.addInitHook=function(s){var c=Array.prototype.slice.call(arguments,1),d=typeof s=="function"?s:function(){this[s].apply(this,c)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(d),this};function C(s){if(!(typeof L>"u"||!L||!L.Mixin)){s=R(s)?s:[s];for(var c=0;c<s.length;c++)s[c]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var D={on:function(s,c,d){if(typeof s=="object")for(var p in s)this._on(p,s[p],c);else{s=w(s);for(var b=0,P=s.length;b<P;b++)this._on(s[b],c,d)}return this},off:function(s,c,d){if(!arguments.length)delete this._events;else if(typeof s=="object")for(var p in s)this._off(p,s[p],c);else{s=w(s);for(var b=arguments.length===1,P=0,k=s.length;P<k;P++)b?this._off(s[P]):this._off(s[P],c,d)}return this},_on:function(s,c,d,p){if(typeof c!="function"){console.warn("wrong listener type: "+typeof c);return}if(this._listens(s,c,d)===!1){d===this&&(d=void 0);var b={fn:c,ctx:d};p&&(b.once=!0),this._events=this._events||{},this._events[s]=this._events[s]||[],this._events[s].push(b)}},_off:function(s,c,d){var p,b,P;if(this._events&&(p=this._events[s],!!p)){if(arguments.length===1){if(this._firingCount)for(b=0,P=p.length;b<P;b++)p[b].fn=g;delete this._events[s];return}if(typeof c!="function"){console.warn("wrong listener type: "+typeof c);return}var k=this._listens(s,c,d);if(k!==!1){var H=p[k];this._firingCount&&(H.fn=g,this._events[s]=p=p.slice()),p.splice(k,1)}}},fire:function(s,c,d){if(!this.listens(s,d))return this;var p=r({},c,{type:s,target:this,sourceTarget:c&&c.sourceTarget||this});if(this._events){var b=this._events[s];if(b){this._firingCount=this._firingCount+1||1;for(var P=0,k=b.length;P<k;P++){var H=b[P],B=H.fn;H.once&&this.off(s,B,H.ctx),B.call(H.ctx||this,p)}this._firingCount--}}return d&&this._propagateEvent(p),this},listens:function(s,c,d,p){typeof s!="string"&&console.warn('"string" type argument expected');var b=c;typeof c!="function"&&(p=!!c,b=void 0,d=void 0);var P=this._events&&this._events[s];if(P&&P.length&&this._listens(s,b,d)!==!1)return!0;if(p){for(var k in this._eventParents)if(this._eventParents[k].listens(s,c,d,p))return!0}return!1},_listens:function(s,c,d){if(!this._events)return!1;var p=this._events[s]||[];if(!c)return!!p.length;d===this&&(d=void 0);for(var b=0,P=p.length;b<P;b++)if(p[b].fn===c&&p[b].ctx===d)return b;return!1},once:function(s,c,d){if(typeof s=="object")for(var p in s)this._on(p,s[p],c,!0);else{s=w(s);for(var b=0,P=s.length;b<P;b++)this._on(s[b],c,d,!0)}return this},addEventParent:function(s){return this._eventParents=this._eventParents||{},this._eventParents[u(s)]=s,this},removeEventParent:function(s){return this._eventParents&&delete this._eventParents[u(s)],this},_propagateEvent:function(s){for(var c in this._eventParents)this._eventParents[c].fire(s.type,r({layer:s.target,propagatedFrom:s.target},s),!0)}};D.addEventListener=D.on,D.removeEventListener=D.clearAllEventListeners=D.off,D.addOneTimeEventListener=D.once,D.fireEvent=D.fire,D.hasEventListeners=D.listens;var I=z.extend(D);function N(s,c,d){this.x=d?Math.round(s):s,this.y=d?Math.round(c):c}var G=Math.trunc||function(s){return s>0?Math.floor(s):Math.ceil(s)};N.prototype={clone:function(){return new N(this.x,this.y)},add:function(s){return this.clone()._add(q(s))},_add:function(s){return this.x+=s.x,this.y+=s.y,this},subtract:function(s){return this.clone()._subtract(q(s))},_subtract:function(s){return this.x-=s.x,this.y-=s.y,this},divideBy:function(s){return this.clone()._divideBy(s)},_divideBy:function(s){return this.x/=s,this.y/=s,this},multiplyBy:function(s){return this.clone()._multiplyBy(s)},_multiplyBy:function(s){return this.x*=s,this.y*=s,this},scaleBy:function(s){return new N(this.x*s.x,this.y*s.y)},unscaleBy:function(s){return new N(this.x/s.x,this.y/s.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=G(this.x),this.y=G(this.y),this},distanceTo:function(s){s=q(s);var c=s.x-this.x,d=s.y-this.y;return Math.sqrt(c*c+d*d)},equals:function(s){return s=q(s),s.x===this.x&&s.y===this.y},contains:function(s){return s=q(s),Math.abs(s.x)<=Math.abs(this.x)&&Math.abs(s.y)<=Math.abs(this.y)},toString:function(){return"Point("+_(this.x)+", "+_(this.y)+")"}};function q(s,c,d){return s instanceof N?s:R(s)?new N(s[0],s[1]):s==null?s:typeof s=="object"&&"x"in s&&"y"in s?new N(s.x,s.y):new N(s,c,d)}function Z(s,c){if(s)for(var d=c?[s,c]:s,p=0,b=d.length;p<b;p++)this.extend(d[p])}Z.prototype={extend:function(s){var c,d;if(!s)return this;if(s instanceof N||typeof s[0]=="number"||"x"in s)c=d=q(s);else if(s=et(s),c=s.min,d=s.max,!c||!d)return this;return!this.min&&!this.max?(this.min=c.clone(),this.max=d.clone()):(this.min.x=Math.min(c.x,this.min.x),this.max.x=Math.max(d.x,this.max.x),this.min.y=Math.min(c.y,this.min.y),this.max.y=Math.max(d.y,this.max.y)),this},getCenter:function(s){return q((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,s)},getBottomLeft:function(){return q(this.min.x,this.max.y)},getTopRight:function(){return q(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(s){var c,d;return typeof s[0]=="number"||s instanceof N?s=q(s):s=et(s),s instanceof Z?(c=s.min,d=s.max):c=d=s,c.x>=this.min.x&&d.x<=this.max.x&&c.y>=this.min.y&&d.y<=this.max.y},intersects:function(s){s=et(s);var c=this.min,d=this.max,p=s.min,b=s.max,P=b.x>=c.x&&p.x<=d.x,k=b.y>=c.y&&p.y<=d.y;return P&&k},overlaps:function(s){s=et(s);var c=this.min,d=this.max,p=s.min,b=s.max,P=b.x>c.x&&p.x<d.x,k=b.y>c.y&&p.y<d.y;return P&&k},isValid:function(){return!!(this.min&&this.max)},pad:function(s){var c=this.min,d=this.max,p=Math.abs(c.x-d.x)*s,b=Math.abs(c.y-d.y)*s;return et(q(c.x-p,c.y-b),q(d.x+p,d.y+b))},equals:function(s){return s?(s=et(s),this.min.equals(s.getTopLeft())&&this.max.equals(s.getBottomRight())):!1}};function et(s,c){return!s||s instanceof Z?s:new Z(s,c)}function st(s,c){if(s)for(var d=c?[s,c]:s,p=0,b=d.length;p<b;p++)this.extend(d[p])}st.prototype={extend:function(s){var c=this._southWest,d=this._northEast,p,b;if(s instanceof Q)p=s,b=s;else if(s instanceof st){if(p=s._southWest,b=s._northEast,!p||!b)return this}else return s?this.extend(J(s)||rt(s)):this;return!c&&!d?(this._southWest=new Q(p.lat,p.lng),this._northEast=new Q(b.lat,b.lng)):(c.lat=Math.min(p.lat,c.lat),c.lng=Math.min(p.lng,c.lng),d.lat=Math.max(b.lat,d.lat),d.lng=Math.max(b.lng,d.lng)),this},pad:function(s){var c=this._southWest,d=this._northEast,p=Math.abs(c.lat-d.lat)*s,b=Math.abs(c.lng-d.lng)*s;return new st(new Q(c.lat-p,c.lng-b),new Q(d.lat+p,d.lng+b))},getCenter:function(){return new Q((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new Q(this.getNorth(),this.getWest())},getSouthEast:function(){return new Q(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(s){typeof s[0]=="number"||s instanceof Q||"lat"in s?s=J(s):s=rt(s);var c=this._southWest,d=this._northEast,p,b;return s instanceof st?(p=s.getSouthWest(),b=s.getNorthEast()):p=b=s,p.lat>=c.lat&&b.lat<=d.lat&&p.lng>=c.lng&&b.lng<=d.lng},intersects:function(s){s=rt(s);var c=this._southWest,d=this._northEast,p=s.getSouthWest(),b=s.getNorthEast(),P=b.lat>=c.lat&&p.lat<=d.lat,k=b.lng>=c.lng&&p.lng<=d.lng;return P&&k},overlaps:function(s){s=rt(s);var c=this._southWest,d=this._northEast,p=s.getSouthWest(),b=s.getNorthEast(),P=b.lat>c.lat&&p.lat<d.lat,k=b.lng>c.lng&&p.lng<d.lng;return P&&k},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(s,c){return s?(s=rt(s),this._southWest.equals(s.getSouthWest(),c)&&this._northEast.equals(s.getNorthEast(),c)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function rt(s,c){return s instanceof st?s:new st(s,c)}function Q(s,c,d){if(isNaN(s)||isNaN(c))throw new Error("Invalid LatLng object: ("+s+", "+c+")");this.lat=+s,this.lng=+c,d!==void 0&&(this.alt=+d)}Q.prototype={equals:function(s,c){if(!s)return!1;s=J(s);var d=Math.max(Math.abs(this.lat-s.lat),Math.abs(this.lng-s.lng));return d<=(c===void 0?1e-9:c)},toString:function(s){return"LatLng("+_(this.lat,s)+", "+_(this.lng,s)+")"},distanceTo:function(s){return _t.distance(this,J(s))},wrap:function(){return _t.wrapLatLng(this)},toBounds:function(s){var c=180*s/40075017,d=c/Math.cos(Math.PI/180*this.lat);return rt([this.lat-c,this.lng-d],[this.lat+c,this.lng+d])},clone:function(){return new Q(this.lat,this.lng,this.alt)}};function J(s,c,d){return s instanceof Q?s:R(s)&&typeof s[0]!="object"?s.length===3?new Q(s[0],s[1],s[2]):s.length===2?new Q(s[0],s[1]):null:s==null?s:typeof s=="object"&&"lat"in s?new Q(s.lat,"lng"in s?s.lng:s.lon,s.alt):c===void 0?null:new Q(s,c,d)}var ht={latLngToPoint:function(s,c){var d=this.projection.project(s),p=this.scale(c);return this.transformation._transform(d,p)},pointToLatLng:function(s,c){var d=this.scale(c),p=this.transformation.untransform(s,d);return this.projection.unproject(p)},project:function(s){return this.projection.project(s)},unproject:function(s){return this.projection.unproject(s)},scale:function(s){return 256*Math.pow(2,s)},zoom:function(s){return Math.log(s/256)/Math.LN2},getProjectedBounds:function(s){if(this.infinite)return null;var c=this.projection.bounds,d=this.scale(s),p=this.transformation.transform(c.min,d),b=this.transformation.transform(c.max,d);return new Z(p,b)},infinite:!1,wrapLatLng:function(s){var c=this.wrapLng?m(s.lng,this.wrapLng,!0):s.lng,d=this.wrapLat?m(s.lat,this.wrapLat,!0):s.lat,p=s.alt;return new Q(d,c,p)},wrapLatLngBounds:function(s){var c=s.getCenter(),d=this.wrapLatLng(c),p=c.lat-d.lat,b=c.lng-d.lng;if(p===0&&b===0)return s;var P=s.getSouthWest(),k=s.getNorthEast(),H=new Q(P.lat-p,P.lng-b),B=new Q(k.lat-p,k.lng-b);return new st(H,B)}},_t=r({},ht,{wrapLng:[-180,180],R:6371e3,distance:function(s,c){var d=Math.PI/180,p=s.lat*d,b=c.lat*d,P=Math.sin((c.lat-s.lat)*d/2),k=Math.sin((c.lng-s.lng)*d/2),H=P*P+Math.cos(p)*Math.cos(b)*k*k,B=2*Math.atan2(Math.sqrt(H),Math.sqrt(1-H));return this.R*B}}),Dt=6378137,Wt={R:Dt,MAX_LATITUDE:85.0511287798,project:function(s){var c=Math.PI/180,d=this.MAX_LATITUDE,p=Math.max(Math.min(d,s.lat),-d),b=Math.sin(p*c);return new N(this.R*s.lng*c,this.R*Math.log((1+b)/(1-b))/2)},unproject:function(s){var c=180/Math.PI;return new Q((2*Math.atan(Math.exp(s.y/this.R))-Math.PI/2)*c,s.x*c/this.R)},bounds:function(){var s=Dt*Math.PI;return new Z([-s,-s],[s,s])}()};function $t(s,c,d,p){if(R(s)){this._a=s[0],this._b=s[1],this._c=s[2],this._d=s[3];return}this._a=s,this._b=c,this._c=d,this._d=p}$t.prototype={transform:function(s,c){return this._transform(s.clone(),c)},_transform:function(s,c){return c=c||1,s.x=c*(this._a*s.x+this._b),s.y=c*(this._c*s.y+this._d),s},untransform:function(s,c){return c=c||1,new N((s.x/c-this._b)/this._a,(s.y/c-this._d)/this._c)}};function Mt(s,c,d,p){return new $t(s,c,d,p)}var wt=r({},_t,{code:"EPSG:3857",projection:Wt,transformation:function(){var s=.5/(Math.PI*Wt.R);return Mt(s,.5,-s,.5)}()}),Pt=r({},wt,{code:"EPSG:900913"});function ft(s){return document.createElementNS("http://www.w3.org/2000/svg",s)}function he(s,c){var d="",p,b,P,k,H,B;for(p=0,P=s.length;p<P;p++){for(H=s[p],b=0,k=H.length;b<k;b++)B=H[b],d+=(b?"L":"M")+B.x+" "+B.y;d+=c?nt.svg?"z":"x":""}return d||"M0 0"}var Jt=document.documentElement.style,te="ActiveXObject"in window,Ze=te&&!document.addEventListener,Nt="msLaunchUri"in navigator&&!("documentMode"in document),Yt=Ft("webkit"),fe=Ft("android"),me=Ft("android 2")||Ft("android 3"),pe=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Oe=fe&&Ft("Google")&&pe<537&&!("AudioNode"in window),ee=!!window.opera,ge=!Nt&&Ft("chrome"),_e=Ft("gecko")&&!Yt&&!ee&&!te,Ni=!ge&&Ft("safari"),kn=Ft("phantom"),On="OTransition"in Jt,Fi=navigator.platform.indexOf("Win")===0,Cn=te&&"transition"in Jt,Qe="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!me,Ln="MozPerspective"in Jt,Ii=!window.L_DISABLE_3D&&(Cn||Qe||Ln)&&!On&&!kn,be=typeof orientation<"u"||Ft("mobile"),Ri=be&&Yt,zi=be&&Qe,Dn=!window.PointerEvent&&window.MSPointerEvent,Nn=!!(window.PointerEvent||Dn),Fn="ontouchstart"in window||!!window.TouchEvent,Wi=!window.L_NO_TOUCH&&(Fn||Nn),ji=be&&ee,Hi=be&&_e,Vi=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Bi=function(){var s=!1;try{var c=Object.defineProperty({},"passive",{get:function(){s=!0}});window.addEventListener("testPassiveEventSupport",g,c),window.removeEventListener("testPassiveEventSupport",g,c)}catch{}return s}(),Yi=function(){return!!document.createElement("canvas").getContext}(),Je=!!(document.createElementNS&&ft("svg").createSVGRect),Ui=!!Je&&function(){var s=document.createElement("div");return s.innerHTML="<svg/>",(s.firstChild&&s.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Gi=!Je&&function(){try{var s=document.createElement("div");s.innerHTML='<v:shape adj="1"/>';var c=s.firstChild;return c.style.behavior="url(#default#VML)",c&&typeof c.adj=="object"}catch{return!1}}(),Ki=navigator.platform.indexOf("Mac")===0,qi=navigator.platform.indexOf("Linux")===0;function Ft(s){return navigator.userAgent.toLowerCase().indexOf(s)>=0}var nt={ie:te,ielt9:Ze,edge:Nt,webkit:Yt,android:fe,android23:me,androidStock:Oe,opera:ee,chrome:ge,gecko:_e,safari:Ni,phantom:kn,opera12:On,win:Fi,ie3d:Cn,webkit3d:Qe,gecko3d:Ln,any3d:Ii,mobile:be,mobileWebkit:Ri,mobileWebkit3d:zi,msPointer:Dn,pointer:Nn,touch:Wi,touchNative:Fn,mobileOpera:ji,mobileGecko:Hi,retina:Vi,passiveEvents:Bi,canvas:Yi,svg:Je,vml:Gi,inlineSvg:Ui,mac:Ki,linux:qi},In=nt.msPointer?"MSPointerDown":"pointerdown",Rn=nt.msPointer?"MSPointerMove":"pointermove",zn=nt.msPointer?"MSPointerUp":"pointerup",Wn=nt.msPointer?"MSPointerCancel":"pointercancel",tn={touchstart:In,touchmove:Rn,touchend:zn,touchcancel:Wn},jn={touchstart:nr,touchmove:Ce,touchend:Ce,touchcancel:Ce},ne={},Hn=!1;function Xi(s,c,d){return c==="touchstart"&&er(),jn[c]?(d=jn[c].bind(this,d),s.addEventListener(tn[c],d,!1),d):(console.warn("wrong event specified:",c),g)}function Zi(s,c,d){if(!tn[c]){console.warn("wrong event specified:",c);return}s.removeEventListener(tn[c],d,!1)}function Qi(s){ne[s.pointerId]=s}function Ji(s){ne[s.pointerId]&&(ne[s.pointerId]=s)}function Vn(s){delete ne[s.pointerId]}function er(){Hn||(document.addEventListener(In,Qi,!0),document.addEventListener(Rn,Ji,!0),document.addEventListener(zn,Vn,!0),document.addEventListener(Wn,Vn,!0),Hn=!0)}function Ce(s,c){if(c.pointerType!==(c.MSPOINTER_TYPE_MOUSE||"mouse")){c.touches=[];for(var d in ne)c.touches.push(ne[d]);c.changedTouches=[c],s(c)}}function nr(s,c){c.MSPOINTER_TYPE_TOUCH&&c.pointerType===c.MSPOINTER_TYPE_TOUCH&&xt(c),Ce(s,c)}function ir(s){var c={},d,p;for(p in s)d=s[p],c[p]=d&&d.bind?d.bind(s):d;return s=c,c.type="dblclick",c.detail=2,c.isTrusted=!1,c._simulated=!0,c}var rr=200;function ar(s,c){s.addEventListener("dblclick",c);var d=0,p;function b(P){if(P.detail!==1){p=P.detail;return}if(!(P.pointerType==="mouse"||P.sourceCapabilities&&!P.sourceCapabilities.firesTouchEvents)){var k=Kn(P);if(!(k.some(function(B){return B instanceof HTMLLabelElement&&B.attributes.for})&&!k.some(function(B){return B instanceof HTMLInputElement||B instanceof HTMLSelectElement}))){var H=Date.now();H-d<=rr?(p++,p===2&&c(ir(P))):p=1,d=H}}}return s.addEventListener("click",b),{dblclick:c,simDblclick:b}}function sr(s,c){s.removeEventListener("dblclick",c.dblclick),s.removeEventListener("click",c.simDblclick)}var rn=Ne(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ve=Ne(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Bn=ve==="webkitTransition"||ve==="OTransition"?ve+"End":"transitionend";function Yn(s){return typeof s=="string"?document.getElementById(s):s}function ye(s,c){var d=s.style[c]||s.currentStyle&&s.currentStyle[c];if((!d||d==="auto")&&document.defaultView){var p=document.defaultView.getComputedStyle(s,null);d=p?p[c]:null}return d==="auto"?null:d}function dt(s,c,d){var p=document.createElement(s);return p.className=c||"",d&&d.appendChild(p),p}function gt(s){var c=s.parentNode;c&&c.removeChild(s)}function Le(s){for(;s.firstChild;)s.removeChild(s.firstChild)}function ie(s){var c=s.parentNode;c&&c.lastChild!==s&&c.appendChild(s)}function re(s){var c=s.parentNode;c&&c.firstChild!==s&&c.insertBefore(s,c.firstChild)}function an(s,c){if(s.classList!==void 0)return s.classList.contains(c);var d=De(s);return d.length>0&&new RegExp("(^|\\s)"+c+"(\\s|$)").test(d)}function lt(s,c){if(s.classList!==void 0)for(var d=w(c),p=0,b=d.length;p<b;p++)s.classList.add(d[p]);else if(!an(s,c)){var P=De(s);sn(s,(P?P+" ":"")+c)}}function bt(s,c){s.classList!==void 0?s.classList.remove(c):sn(s,v((" "+De(s)+" ").replace(" "+c+" "," ")))}function sn(s,c){s.className.baseVal===void 0?s.className=c:s.className.baseVal=c}function De(s){return s.correspondingElement&&(s=s.correspondingElement),s.className.baseVal===void 0?s.className:s.className.baseVal}function At(s,c){"opacity"in s.style?s.style.opacity=c:"filter"in s.style&&or(s,c)}function or(s,c){var d=!1,p="DXImageTransform.Microsoft.Alpha";try{d=s.filters.item(p)}catch{if(c===1)return}c=Math.round(c*100),d?(d.Enabled=c!==100,d.Opacity=c):s.style.filter+=" progid:"+p+"(opacity="+c+")"}function Ne(s){for(var c=document.documentElement.style,d=0;d<s.length;d++)if(s[d]in c)return s[d];return!1}function Kt(s,c,d){var p=c||new N(0,0);s.style[rn]=(nt.ie3d?"translate("+p.x+"px,"+p.y+"px)":"translate3d("+p.x+"px,"+p.y+"px,0)")+(d?" scale("+d+")":"")}function vt(s,c){s._leaflet_pos=c,nt.any3d?Kt(s,c):(s.style.left=c.x+"px",s.style.top=c.y+"px")}function qt(s){return s._leaflet_pos||new N(0,0)}var we,Pe,ln;if("onselectstart"in document)we=function(){ot(window,"selectstart",xt)},Pe=function(){mt(window,"selectstart",xt)};else{var $e=Ne(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);we=function(){if($e){var s=document.documentElement.style;ln=s[$e],s[$e]="none"}},Pe=function(){$e&&(document.documentElement.style[$e]=ln,ln=void 0)}}function cn(){ot(window,"dragstart",xt)}function un(){mt(window,"dragstart",xt)}var Fe,dn;function hn(s){for(;s.tabIndex===-1;)s=s.parentNode;s.style&&(Ie(),Fe=s,dn=s.style.outlineStyle,s.style.outlineStyle="none",ot(window,"keydown",Ie))}function Ie(){Fe&&(Fe.style.outlineStyle=dn,Fe=void 0,dn=void 0,mt(window,"keydown",Ie))}function Un(s){do s=s.parentNode;while((!s.offsetWidth||!s.offsetHeight)&&s!==document.body);return s}function fn(s){var c=s.getBoundingClientRect();return{x:c.width/s.offsetWidth||1,y:c.height/s.offsetHeight||1,boundingClientRect:c}}var lr={__proto__:null,TRANSFORM:rn,TRANSITION:ve,TRANSITION_END:Bn,get:Yn,getStyle:ye,create:dt,remove:gt,empty:Le,toFront:ie,toBack:re,hasClass:an,addClass:lt,removeClass:bt,setClass:sn,getClass:De,setOpacity:At,testProp:Ne,setTransform:Kt,setPosition:vt,getPosition:qt,get disableTextSelection(){return we},get enableTextSelection(){return Pe},disableImageDrag:cn,enableImageDrag:un,preventOutline:hn,restoreOutline:Ie,getSizedParentNode:Un,getScale:fn};function ot(s,c,d,p){if(c&&typeof c=="object")for(var b in c)pn(s,b,c[b],d);else{c=w(c);for(var P=0,k=c.length;P<k;P++)pn(s,c[P],d,p)}return this}var It="_leaflet_events";function mt(s,c,d,p){if(arguments.length===1)Gn(s),delete s[It];else if(c&&typeof c=="object")for(var b in c)gn(s,b,c[b],d);else if(c=w(c),arguments.length===2)Gn(s,function(H){return W(c,H)!==-1});else for(var P=0,k=c.length;P<k;P++)gn(s,c[P],d,p);return this}function Gn(s,c){for(var d in s[It]){var p=d.split(/\d/)[0];(!c||c(p))&&gn(s,p,null,null,d)}}var mn={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function pn(s,c,d,p){var b=c+u(d)+(p?"_"+u(p):"");if(s[It]&&s[It][b])return this;var P=function(H){return d.call(p||s,H||window.event)},k=P;!nt.touchNative&&nt.pointer&&c.indexOf("touch")===0?P=Xi(s,c,P):nt.touch&&c==="dblclick"?P=ar(s,P):"addEventListener"in s?c==="touchstart"||c==="touchmove"||c==="wheel"||c==="mousewheel"?s.addEventListener(mn[c]||c,P,nt.passiveEvents?{passive:!1}:!1):c==="mouseenter"||c==="mouseleave"?(P=function(H){H=H||window.event,bn(s,H)&&k(H)},s.addEventListener(mn[c],P,!1)):s.addEventListener(c,k,!1):s.attachEvent("on"+c,P),s[It]=s[It]||{},s[It][b]=P}function gn(s,c,d,p,b){b=b||c+u(d)+(p?"_"+u(p):"");var P=s[It]&&s[It][b];if(!P)return this;!nt.touchNative&&nt.pointer&&c.indexOf("touch")===0?Zi(s,c,P):nt.touch&&c==="dblclick"?sr(s,P):"removeEventListener"in s?s.removeEventListener(mn[c]||c,P,!1):s.detachEvent("on"+c,P),s[It][b]=null}function Xt(s){return s.stopPropagation?s.stopPropagation():s.originalEvent?s.originalEvent._stopped=!0:s.cancelBubble=!0,this}function _n(s){return pn(s,"wheel",Xt),this}function Ee(s){return ot(s,"mousedown touchstart dblclick contextmenu",Xt),s._leaflet_disable_click=!0,this}function xt(s){return s.preventDefault?s.preventDefault():s.returnValue=!1,this}function Zt(s){return xt(s),Xt(s),this}function Kn(s){if(s.composedPath)return s.composedPath();for(var c=[],d=s.target;d;)c.push(d),d=d.parentNode;return c}function qn(s,c){if(!c)return new N(s.clientX,s.clientY);var d=fn(c),p=d.boundingClientRect;return new N((s.clientX-p.left)/d.x-c.clientLeft,(s.clientY-p.top)/d.y-c.clientTop)}var cr=nt.linux&&nt.chrome?window.devicePixelRatio:nt.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Xn(s){return nt.edge?s.wheelDeltaY/2:s.deltaY&&s.deltaMode===0?-s.deltaY/cr:s.deltaY&&s.deltaMode===1?-s.deltaY*20:s.deltaY&&s.deltaMode===2?-s.deltaY*60:s.deltaX||s.deltaZ?0:s.wheelDelta?(s.wheelDeltaY||s.wheelDelta)/2:s.detail&&Math.abs(s.detail)<32765?-s.detail*20:s.detail?s.detail/-32765*60:0}function bn(s,c){var d=c.relatedTarget;if(!d)return!0;try{for(;d&&d!==s;)d=d.parentNode}catch{return!1}return d!==s}var ur={__proto__:null,on:ot,off:mt,stopPropagation:Xt,disableScrollPropagation:_n,disableClickPropagation:Ee,preventDefault:xt,stop:Zt,getPropagationPath:Kn,getMousePosition:qn,getWheelDelta:Xn,isExternalTarget:bn,addListener:ot,removeListener:mt},Zn=I.extend({run:function(s,c,d,p){this.stop(),this._el=s,this._inProgress=!0,this._duration=d||.25,this._easeOutPower=1/Math.max(p||.5,.2),this._startPos=qt(s),this._offset=c.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=O(this._animate,this),this._step()},_step:function(s){var c=+new Date-this._startTime,d=this._duration*1e3;c<d?this._runFrame(this._easeOut(c/d),s):(this._runFrame(1),this._complete())},_runFrame:function(s,c){var d=this._startPos.add(this._offset.multiplyBy(s));c&&d._round(),vt(this._el,d),this.fire("step")},_complete:function(){A(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(s){return 1-Math.pow(1-s,this._easeOutPower)}}),ut=I.extend({options:{crs:wt,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(s,c){c=$(this,c),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(s),this._initLayout(),this._onResize=o(this._onResize,this),this._initEvents(),c.maxBounds&&this.setMaxBounds(c.maxBounds),c.zoom!==void 0&&(this._zoom=this._limitZoom(c.zoom)),c.center&&c.zoom!==void 0&&this.setView(J(c.center),c.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ve&&nt.any3d&&!nt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),ot(this._proxy,Bn,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(s,c,d){if(c=c===void 0?this._zoom:this._limitZoom(c),s=this._limitCenter(J(s),c,this.options.maxBounds),d=d||{},this._stop(),this._loaded&&!d.reset&&d!==!0){d.animate!==void 0&&(d.zoom=r({animate:d.animate},d.zoom),d.pan=r({animate:d.animate,duration:d.duration},d.pan));var p=this._zoom!==c?this._tryAnimatedZoom&&this._tryAnimatedZoom(s,c,d.zoom):this._tryAnimatedPan(s,d.pan);if(p)return clearTimeout(this._sizeTimer),this}return this._resetView(s,c,d.pan&&d.pan.noMoveStart),this},setZoom:function(s,c){return this._loaded?this.setView(this.getCenter(),s,{zoom:c}):(this._zoom=s,this)},zoomIn:function(s,c){return s=s||(nt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+s,c)},zoomOut:function(s,c){return s=s||(nt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-s,c)},setZoomAround:function(s,c,d){var p=this.getZoomScale(c),b=this.getSize().divideBy(2),P=s instanceof N?s:this.latLngToContainerPoint(s),k=P.subtract(b).multiplyBy(1-1/p),H=this.containerPointToLatLng(b.add(k));return this.setView(H,c,{zoom:d})},_getBoundsCenterZoom:function(s,c){c=c||{},s=s.getBounds?s.getBounds():rt(s);var d=q(c.paddingTopLeft||c.padding||[0,0]),p=q(c.paddingBottomRight||c.padding||[0,0]),b=this.getBoundsZoom(s,!1,d.add(p));if(b=typeof c.maxZoom=="number"?Math.min(c.maxZoom,b):b,b===1/0)return{center:s.getCenter(),zoom:b};var P=p.subtract(d).divideBy(2),k=this.project(s.getSouthWest(),b),H=this.project(s.getNorthEast(),b),B=this.unproject(k.add(H).divideBy(2).add(P),b);return{center:B,zoom:b}},fitBounds:function(s,c){if(s=rt(s),!s.isValid())throw new Error("Bounds are not valid.");var d=this._getBoundsCenterZoom(s,c);return this.setView(d.center,d.zoom,c)},fitWorld:function(s){return this.fitBounds([[-90,-180],[90,180]],s)},panTo:function(s,c){return this.setView(s,this._zoom,{pan:c})},panBy:function(s,c){if(s=q(s).round(),c=c||{},!s.x&&!s.y)return this.fire("moveend");if(c.animate!==!0&&!this.getSize().contains(s))return this._resetView(this.unproject(this.project(this.getCenter()).add(s)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Zn,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),c.noMoveStart||this.fire("movestart"),c.animate!==!1){lt(this._mapPane,"leaflet-pan-anim");var d=this._getMapPanePos().subtract(s).round();this._panAnim.run(this._mapPane,d,c.duration||.25,c.easeLinearity)}else this._rawPanBy(s),this.fire("move").fire("moveend");return this},flyTo:function(s,c,d){if(d=d||{},d.animate===!1||!nt.any3d)return this.setView(s,c,d);this._stop();var p=this.project(this.getCenter()),b=this.project(s),P=this.getSize(),k=this._zoom;s=J(s),c=c===void 0?k:c;var H=Math.max(P.x,P.y),B=H*this.getZoomScale(k,c),X=b.distanceTo(p)||1,tt=1.42,at=tt*tt;function ct(yt){var qe=yt?-1:1,Jr=yt?B:H,ta=B*B-H*H+qe*at*at*X*X,ea=2*Jr*at*X,An=ta/ea,Li=Math.sqrt(An*An+1)-An,na=Li<1e-9?-18:Math.log(Li);return na}function Tt(yt){return(Math.exp(yt)-Math.exp(-yt))/2}function Et(yt){return(Math.exp(yt)+Math.exp(-yt))/2}function Ot(yt){return Tt(yt)/Et(yt)}var St=ct(0);function ue(yt){return H*(Et(St)/Et(St+tt*yt))}function qr(yt){return H*(Et(St)*Ot(St+tt*yt)-Tt(St))/at}function Xr(yt){return 1-Math.pow(1-yt,1.5)}var Zr=Date.now(),Oi=(ct(1)-St)/tt,Qr=d.duration?1e3*d.duration:1e3*Oi*.8;function Ci(){var yt=(Date.now()-Zr)/Qr,qe=Xr(yt)*Oi;yt<=1?(this._flyToFrame=O(Ci,this),this._move(this.unproject(p.add(b.subtract(p).multiplyBy(qr(qe)/X)),k),this.getScaleZoom(H/ue(qe),k),{flyTo:!0})):this._move(s,c)._moveEnd(!0)}return this._moveStart(!0,d.noMoveStart),Ci.call(this),this},flyToBounds:function(s,c){var d=this._getBoundsCenterZoom(s,c);return this.flyTo(d.center,d.zoom,c)},setMaxBounds:function(s){return s=rt(s),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),s.isValid()?(this.options.maxBounds=s,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(s){var c=this.options.minZoom;return this.options.minZoom=s,this._loaded&&c!==s&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(s):this},setMaxZoom:function(s){var c=this.options.maxZoom;return this.options.maxZoom=s,this._loaded&&c!==s&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(s):this},panInsideBounds:function(s,c){this._enforcingBounds=!0;var d=this.getCenter(),p=this._limitCenter(d,this._zoom,rt(s));return d.equals(p)||this.panTo(p,c),this._enforcingBounds=!1,this},panInside:function(s,c){c=c||{};var d=q(c.paddingTopLeft||c.padding||[0,0]),p=q(c.paddingBottomRight||c.padding||[0,0]),b=this.project(this.getCenter()),P=this.project(s),k=this.getPixelBounds(),H=et([k.min.add(d),k.max.subtract(p)]),B=H.getSize();if(!H.contains(P)){this._enforcingBounds=!0;var X=P.subtract(H.getCenter()),tt=H.extend(P).getSize().subtract(B);b.x+=X.x<0?-tt.x:tt.x,b.y+=X.y<0?-tt.y:tt.y,this.panTo(this.unproject(b),c),this._enforcingBounds=!1}return this},invalidateSize:function(s){if(!this._loaded)return this;s=r({animate:!1,pan:!0},s===!0?{animate:!0}:s);var c=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var d=this.getSize(),p=c.divideBy(2).round(),b=d.divideBy(2).round(),P=p.subtract(b);return!P.x&&!P.y?this:(s.animate&&s.pan?this.panBy(P):(s.pan&&this._rawPanBy(P),this.fire("move"),s.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:c,newSize:d}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(s){if(s=this._locateOptions=r({timeout:1e4,watch:!1},s),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var c=o(this._handleGeolocationResponse,this),d=o(this._handleGeolocationError,this);return s.watch?this._locationWatchId=navigator.geolocation.watchPosition(c,d,s):navigator.geolocation.getCurrentPosition(c,d,s),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(s){if(this._container._leaflet_id){var c=s.code,d=s.message||(c===1?"permission denied":c===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:c,message:"Geolocation error: "+d+"."})}},_handleGeolocationResponse:function(s){if(this._container._leaflet_id){var c=s.coords.latitude,d=s.coords.longitude,p=new Q(c,d),b=p.toBounds(s.coords.accuracy*2),P=this._locateOptions;if(P.setView){var k=this.getBoundsZoom(b);this.setView(p,P.maxZoom?Math.min(k,P.maxZoom):k)}var H={latlng:p,bounds:b,timestamp:s.timestamp};for(var B in s.coords)typeof s.coords[B]=="number"&&(H[B]=s.coords[B]);this.fire("locationfound",H)}},addHandler:function(s,c){if(!c)return this;var d=this[s]=new c(this);return this._handlers.push(d),this.options[s]&&d.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),gt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(A(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var s;for(s in this._layers)this._layers[s].remove();for(s in this._panes)gt(this._panes[s]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(s,c){var d="leaflet-pane"+(s?" leaflet-"+s.replace("Pane","")+"-pane":""),p=dt("div",d,c||this._mapPane);return s&&(this._panes[s]=p),p},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var s=this.getPixelBounds(),c=this.unproject(s.getBottomLeft()),d=this.unproject(s.getTopRight());return new st(c,d)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(s,c,d){s=rt(s),d=q(d||[0,0]);var p=this.getZoom()||0,b=this.getMinZoom(),P=this.getMaxZoom(),k=s.getNorthWest(),H=s.getSouthEast(),B=this.getSize().subtract(d),X=et(this.project(H,p),this.project(k,p)).getSize(),tt=nt.any3d?this.options.zoomSnap:1,at=B.x/X.x,ct=B.y/X.y,Tt=c?Math.max(at,ct):Math.min(at,ct);return p=this.getScaleZoom(Tt,p),tt&&(p=Math.round(p/(tt/100))*(tt/100),p=c?Math.ceil(p/tt)*tt:Math.floor(p/tt)*tt),Math.max(b,Math.min(P,p))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new N(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(s,c){var d=this._getTopLeftPoint(s,c);return new Z(d,d.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(s){return this.options.crs.getProjectedBounds(s===void 0?this.getZoom():s)},getPane:function(s){return typeof s=="string"?this._panes[s]:s},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(s,c){var d=this.options.crs;return c=c===void 0?this._zoom:c,d.scale(s)/d.scale(c)},getScaleZoom:function(s,c){var d=this.options.crs;c=c===void 0?this._zoom:c;var p=d.zoom(s*d.scale(c));return isNaN(p)?1/0:p},project:function(s,c){return c=c===void 0?this._zoom:c,this.options.crs.latLngToPoint(J(s),c)},unproject:function(s,c){return c=c===void 0?this._zoom:c,this.options.crs.pointToLatLng(q(s),c)},layerPointToLatLng:function(s){var c=q(s).add(this.getPixelOrigin());return this.unproject(c)},latLngToLayerPoint:function(s){var c=this.project(J(s))._round();return c._subtract(this.getPixelOrigin())},wrapLatLng:function(s){return this.options.crs.wrapLatLng(J(s))},wrapLatLngBounds:function(s){return this.options.crs.wrapLatLngBounds(rt(s))},distance:function(s,c){return this.options.crs.distance(J(s),J(c))},containerPointToLayerPoint:function(s){return q(s).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(s){return q(s).add(this._getMapPanePos())},containerPointToLatLng:function(s){var c=this.containerPointToLayerPoint(q(s));return this.layerPointToLatLng(c)},latLngToContainerPoint:function(s){return this.layerPointToContainerPoint(this.latLngToLayerPoint(J(s)))},mouseEventToContainerPoint:function(s){return qn(s,this._container)},mouseEventToLayerPoint:function(s){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(s))},mouseEventToLatLng:function(s){return this.layerPointToLatLng(this.mouseEventToLayerPoint(s))},_initContainer:function(s){var c=this._container=Yn(s);if(c){if(c._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");ot(c,"scroll",this._onScroll,this),this._containerId=u(c)},_initLayout:function(){var s=this._container;this._fadeAnimated=this.options.fadeAnimation&&nt.any3d,lt(s,"leaflet-container"+(nt.touch?" leaflet-touch":"")+(nt.retina?" leaflet-retina":"")+(nt.ielt9?" leaflet-oldie":"")+(nt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var c=ye(s,"position");c!=="absolute"&&c!=="relative"&&c!=="fixed"&&c!=="sticky"&&(s.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var s=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),vt(this._mapPane,new N(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(lt(s.markerPane,"leaflet-zoom-hide"),lt(s.shadowPane,"leaflet-zoom-hide"))},_resetView:function(s,c,d){vt(this._mapPane,new N(0,0));var p=!this._loaded;this._loaded=!0,c=this._limitZoom(c),this.fire("viewprereset");var b=this._zoom!==c;this._moveStart(b,d)._move(s,c)._moveEnd(b),this.fire("viewreset"),p&&this.fire("load")},_moveStart:function(s,c){return s&&this.fire("zoomstart"),c||this.fire("movestart"),this},_move:function(s,c,d,p){c===void 0&&(c=this._zoom);var b=this._zoom!==c;return this._zoom=c,this._lastCenter=s,this._pixelOrigin=this._getNewPixelOrigin(s),p?d&&d.pinch&&this.fire("zoom",d):((b||d&&d.pinch)&&this.fire("zoom",d),this.fire("move",d)),this},_moveEnd:function(s){return s&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return A(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(s){vt(this._mapPane,this._getMapPanePos().subtract(s))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(s){this._targets={},this._targets[u(this._container)]=this;var c=s?mt:ot;c(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&c(window,"resize",this._onResize,this),nt.any3d&&this.options.transform3DLimit&&(s?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){A(this._resizeRequest),this._resizeRequest=O(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var s=this._getMapPanePos();Math.max(Math.abs(s.x),Math.abs(s.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(s,c){for(var d=[],p,b=c==="mouseout"||c==="mouseover",P=s.target||s.srcElement,k=!1;P;){if(p=this._targets[u(P)],p&&(c==="click"||c==="preclick")&&this._draggableMoved(p)){k=!0;break}if(p&&p.listens(c,!0)&&(b&&!bn(P,s)||(d.push(p),b))||P===this._container)break;P=P.parentNode}return!d.length&&!k&&!b&&this.listens(c,!0)&&(d=[this]),d},_isClickDisabled:function(s){for(;s&&s!==this._container;){if(s._leaflet_disable_click)return!0;s=s.parentNode}},_handleDOMEvent:function(s){var c=s.target||s.srcElement;if(!(!this._loaded||c._leaflet_disable_events||s.type==="click"&&this._isClickDisabled(c))){var d=s.type;d==="mousedown"&&hn(c),this._fireDOMEvent(s,d)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(s,c,d){if(s.type==="click"){var p=r({},s);p.type="preclick",this._fireDOMEvent(p,p.type,d)}var b=this._findEventTargets(s,c);if(d){for(var P=[],k=0;k<d.length;k++)d[k].listens(c,!0)&&P.push(d[k]);b=P.concat(b)}if(b.length){c==="contextmenu"&&xt(s);var H=b[0],B={originalEvent:s};if(s.type!=="keypress"&&s.type!=="keydown"&&s.type!=="keyup"){var X=H.getLatLng&&(!H._radius||H._radius<=10);B.containerPoint=X?this.latLngToContainerPoint(H.getLatLng()):this.mouseEventToContainerPoint(s),B.layerPoint=this.containerPointToLayerPoint(B.containerPoint),B.latlng=X?H.getLatLng():this.layerPointToLatLng(B.layerPoint)}for(k=0;k<b.length;k++)if(b[k].fire(c,B,!0),B.originalEvent._stopped||b[k].options.bubblingMouseEvents===!1&&W(this._mouseEvents,c)!==-1)return}},_draggableMoved:function(s){return s=s.dragging&&s.dragging.enabled()?s:this,s.dragging&&s.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var s=0,c=this._handlers.length;s<c;s++)this._handlers[s].disable()},whenReady:function(s,c){return this._loaded?s.call(c||this,{target:this}):this.on("load",s,c),this},_getMapPanePos:function(){return qt(this._mapPane)||new N(0,0)},_moved:function(){var s=this._getMapPanePos();return s&&!s.equals([0,0])},_getTopLeftPoint:function(s,c){var d=s&&c!==void 0?this._getNewPixelOrigin(s,c):this.getPixelOrigin();return d.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(s,c){var d=this.getSize()._divideBy(2);return this.project(s,c)._subtract(d)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(s,c,d){var p=this._getNewPixelOrigin(d,c);return this.project(s,c)._subtract(p)},_latLngBoundsToNewLayerBounds:function(s,c,d){var p=this._getNewPixelOrigin(d,c);return et([this.project(s.getSouthWest(),c)._subtract(p),this.project(s.getNorthWest(),c)._subtract(p),this.project(s.getSouthEast(),c)._subtract(p),this.project(s.getNorthEast(),c)._subtract(p)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(s){return this.latLngToLayerPoint(s).subtract(this._getCenterLayerPoint())},_limitCenter:function(s,c,d){if(!d)return s;var p=this.project(s,c),b=this.getSize().divideBy(2),P=new Z(p.subtract(b),p.add(b)),k=this._getBoundsOffset(P,d,c);return Math.abs(k.x)<=1&&Math.abs(k.y)<=1?s:this.unproject(p.add(k),c)},_limitOffset:function(s,c){if(!c)return s;var d=this.getPixelBounds(),p=new Z(d.min.add(s),d.max.add(s));return s.add(this._getBoundsOffset(p,c))},_getBoundsOffset:function(s,c,d){var p=et(this.project(c.getNorthEast(),d),this.project(c.getSouthWest(),d)),b=p.min.subtract(s.min),P=p.max.subtract(s.max),k=this._rebound(b.x,-P.x),H=this._rebound(b.y,-P.y);return new N(k,H)},_rebound:function(s,c){return s+c>0?Math.round(s-c)/2:Math.max(0,Math.ceil(s))-Math.max(0,Math.floor(c))},_limitZoom:function(s){var c=this.getMinZoom(),d=this.getMaxZoom(),p=nt.any3d?this.options.zoomSnap:1;return p&&(s=Math.round(s/p)*p),Math.max(c,Math.min(d,s))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){bt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(s,c){var d=this._getCenterOffset(s)._trunc();return(c&&c.animate)!==!0&&!this.getSize().contains(d)?!1:(this.panBy(d,c),!0)},_createAnimProxy:function(){var s=this._proxy=dt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(s),this.on("zoomanim",function(c){var d=rn,p=this._proxy.style[d];Kt(this._proxy,this.project(c.center,c.zoom),this.getZoomScale(c.zoom,1)),p===this._proxy.style[d]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){gt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var s=this.getCenter(),c=this.getZoom();Kt(this._proxy,this.project(s,c),this.getZoomScale(c,1))},_catchTransitionEnd:function(s){this._animatingZoom&&s.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(s,c,d){if(this._animatingZoom)return!0;if(d=d||{},!this._zoomAnimated||d.animate===!1||this._nothingToAnimate()||Math.abs(c-this._zoom)>this.options.zoomAnimationThreshold)return!1;var p=this.getZoomScale(c),b=this._getCenterOffset(s)._divideBy(1-1/p);return d.animate!==!0&&!this.getSize().contains(b)?!1:(O(function(){this._moveStart(!0,d.noMoveStart||!1)._animateZoom(s,c,!0)},this),!0)},_animateZoom:function(s,c,d,p){this._mapPane&&(d&&(this._animatingZoom=!0,this._animateToCenter=s,this._animateToZoom=c,lt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:s,zoom:c,noUpdate:p}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&bt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function dr(s,c){return new ut(s,c)}var Ct=z.extend({options:{position:"topright"},initialize:function(s){$(this,s)},getPosition:function(){return this.options.position},setPosition:function(s){var c=this._map;return c&&c.removeControl(this),this.options.position=s,c&&c.addControl(this),this},getContainer:function(){return this._container},addTo:function(s){this.remove(),this._map=s;var c=this._container=this.onAdd(s),d=this.getPosition(),p=s._controlCorners[d];return lt(c,"leaflet-control"),d.indexOf("bottom")!==-1?p.insertBefore(c,p.firstChild):p.appendChild(c),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(gt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(s){this._map&&s&&s.screenX>0&&s.screenY>0&&this._map.getContainer().focus()}}),xe=function(s){return new Ct(s)};ut.include({addControl:function(s){return s.addTo(this),this},removeControl:function(s){return s.remove(),this},_initControlPos:function(){var s=this._controlCorners={},c="leaflet-",d=this._controlContainer=dt("div",c+"control-container",this._container);function p(b,P){var k=c+b+" "+c+P;s[b+P]=dt("div",k,d)}p("top","left"),p("top","right"),p("bottom","left"),p("bottom","right")},_clearControlPos:function(){for(var s in this._controlCorners)gt(this._controlCorners[s]);gt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Qn=Ct.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(s,c,d,p){return d<p?-1:p<d?1:0}},initialize:function(s,c,d){$(this,d),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var p in s)this._addLayer(s[p],p);for(p in c)this._addLayer(c[p],p,!0)},onAdd:function(s){this._initLayout(),this._update(),this._map=s,s.on("zoomend",this._checkDisabledLayers,this);for(var c=0;c<this._layers.length;c++)this._layers[c].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(s){return Ct.prototype.addTo.call(this,s),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var s=0;s<this._layers.length;s++)this._layers[s].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(s,c){return this._addLayer(s,c),this._map?this._update():this},addOverlay:function(s,c){return this._addLayer(s,c,!0),this._map?this._update():this},removeLayer:function(s){s.off("add remove",this._onLayerChange,this);var c=this._getLayer(u(s));return c&&this._layers.splice(this._layers.indexOf(c),1),this._map?this._update():this},expand:function(){lt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var s=this._map.getSize().y-(this._container.offsetTop+50);return s<this._section.clientHeight?(lt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=s+"px"):bt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return bt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var s="leaflet-control-layers",c=this._container=dt("div",s),d=this.options.collapsed;c.setAttribute("aria-haspopup",!0),Ee(c),_n(c);var p=this._section=dt("section",s+"-list");d&&(this._map.on("click",this.collapse,this),ot(c,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var b=this._layersLink=dt("a",s+"-toggle",c);b.href="#",b.title="Layers",b.setAttribute("role","button"),ot(b,{keydown:function(P){P.keyCode===13&&this._expandSafely()},click:function(P){xt(P),this._expandSafely()}},this),d||this.expand(),this._baseLayersList=dt("div",s+"-base",p),this._separator=dt("div",s+"-separator",p),this._overlaysList=dt("div",s+"-overlays",p),c.appendChild(p)},_getLayer:function(s){for(var c=0;c<this._layers.length;c++)if(this._layers[c]&&u(this._layers[c].layer)===s)return this._layers[c]},_addLayer:function(s,c,d){this._map&&s.on("add remove",this._onLayerChange,this),this._layers.push({layer:s,name:c,overlay:d}),this.options.sortLayers&&this._layers.sort(o(function(p,b){return this.options.sortFunction(p.layer,b.layer,p.name,b.name)},this)),this.options.autoZIndex&&s.setZIndex&&(this._lastZIndex++,s.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Le(this._baseLayersList),Le(this._overlaysList),this._layerControlInputs=[];var s,c,d,p,b=0;for(d=0;d<this._layers.length;d++)p=this._layers[d],this._addItem(p),c=c||p.overlay,s=s||!p.overlay,b+=p.overlay?0:1;return this.options.hideSingleBase&&(s=s&&b>1,this._baseLayersList.style.display=s?"":"none"),this._separator.style.display=c&&s?"":"none",this},_onLayerChange:function(s){this._handlingClick||this._update();var c=this._getLayer(u(s.target)),d=c.overlay?s.type==="add"?"overlayadd":"overlayremove":s.type==="add"?"baselayerchange":null;d&&this._map.fire(d,c)},_createRadioElement:function(s,c){var d='<input type="radio" class="leaflet-control-layers-selector" name="'+s+'"'+(c?' checked="checked"':"")+"/>",p=document.createElement("div");return p.innerHTML=d,p.firstChild},_addItem:function(s){var c=document.createElement("label"),d=this._map.hasLayer(s.layer),p;s.overlay?(p=document.createElement("input"),p.type="checkbox",p.className="leaflet-control-layers-selector",p.defaultChecked=d):p=this._createRadioElement("leaflet-base-layers_"+u(this),d),this._layerControlInputs.push(p),p.layerId=u(s.layer),ot(p,"click",this._onInputClick,this);var b=document.createElement("span");b.innerHTML=" "+s.name;var P=document.createElement("span");c.appendChild(P),P.appendChild(p),P.appendChild(b);var k=s.overlay?this._overlaysList:this._baseLayersList;return k.appendChild(c),this._checkDisabledLayers(),c},_onInputClick:function(){if(!this._preventClick){var s=this._layerControlInputs,c,d,p=[],b=[];this._handlingClick=!0;for(var P=s.length-1;P>=0;P--)c=s[P],d=this._getLayer(c.layerId).layer,c.checked?p.push(d):c.checked||b.push(d);for(P=0;P<b.length;P++)this._map.hasLayer(b[P])&&this._map.removeLayer(b[P]);for(P=0;P<p.length;P++)this._map.hasLayer(p[P])||this._map.addLayer(p[P]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var s=this._layerControlInputs,c,d,p=this._map.getZoom(),b=s.length-1;b>=0;b--)c=s[b],d=this._getLayer(c.layerId).layer,c.disabled=d.options.minZoom!==void 0&&p<d.options.minZoom||d.options.maxZoom!==void 0&&p>d.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var s=this._section;this._preventClick=!0,ot(s,"click",xt),this.expand();var c=this;setTimeout(function(){mt(s,"click",xt),c._preventClick=!1})}}),hr=function(s,c,d){return new Qn(s,c,d)},vn=Ct.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(s){var c="leaflet-control-zoom",d=dt("div",c+" leaflet-bar"),p=this.options;return this._zoomInButton=this._createButton(p.zoomInText,p.zoomInTitle,c+"-in",d,this._zoomIn),this._zoomOutButton=this._createButton(p.zoomOutText,p.zoomOutTitle,c+"-out",d,this._zoomOut),this._updateDisabled(),s.on("zoomend zoomlevelschange",this._updateDisabled,this),d},onRemove:function(s){s.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(s){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(s.shiftKey?3:1))},_zoomOut:function(s){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(s.shiftKey?3:1))},_createButton:function(s,c,d,p,b){var P=dt("a",d,p);return P.innerHTML=s,P.href="#",P.title=c,P.setAttribute("role","button"),P.setAttribute("aria-label",c),Ee(P),ot(P,"click",Zt),ot(P,"click",b,this),ot(P,"click",this._refocusOnMap,this),P},_updateDisabled:function(){var s=this._map,c="leaflet-disabled";bt(this._zoomInButton,c),bt(this._zoomOutButton,c),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||s._zoom===s.getMinZoom())&&(lt(this._zoomOutButton,c),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||s._zoom===s.getMaxZoom())&&(lt(this._zoomInButton,c),this._zoomInButton.setAttribute("aria-disabled","true"))}});ut.mergeOptions({zoomControl:!0}),ut.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new vn,this.addControl(this.zoomControl))});var mr=function(s){return new vn(s)},Jn=Ct.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(s){var c="leaflet-control-scale",d=dt("div",c),p=this.options;return this._addScales(p,c+"-line",d),s.on(p.updateWhenIdle?"moveend":"move",this._update,this),s.whenReady(this._update,this),d},onRemove:function(s){s.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(s,c,d){s.metric&&(this._mScale=dt("div",c,d)),s.imperial&&(this._iScale=dt("div",c,d))},_update:function(){var s=this._map,c=s.getSize().y/2,d=s.distance(s.containerPointToLatLng([0,c]),s.containerPointToLatLng([this.options.maxWidth,c]));this._updateScales(d)},_updateScales:function(s){this.options.metric&&s&&this._updateMetric(s),this.options.imperial&&s&&this._updateImperial(s)},_updateMetric:function(s){var c=this._getRoundNum(s),d=c<1e3?c+" m":c/1e3+" km";this._updateScale(this._mScale,d,c/s)},_updateImperial:function(s){var c=s*3.2808399,d,p,b;c>5280?(d=c/5280,p=this._getRoundNum(d),this._updateScale(this._iScale,p+" mi",p/d)):(b=this._getRoundNum(c),this._updateScale(this._iScale,b+" ft",b/c))},_updateScale:function(s,c,d){s.style.width=Math.round(this.options.maxWidth*d)+"px",s.innerHTML=c},_getRoundNum:function(s){var c=Math.pow(10,(Math.floor(s)+"").length-1),d=s/c;return d=d>=10?10:d>=5?5:d>=3?3:d>=2?2:1,c*d}}),pr=function(s){return new Jn(s)},gr='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',yn=Ct.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(nt.inlineSvg?gr+" ":"")+"Leaflet</a>"},initialize:function(s){$(this,s),this._attributions={}},onAdd:function(s){s.attributionControl=this,this._container=dt("div","leaflet-control-attribution"),Ee(this._container);for(var c in s._layers)s._layers[c].getAttribution&&this.addAttribution(s._layers[c].getAttribution());return this._update(),s.on("layeradd",this._addAttribution,this),this._container},onRemove:function(s){s.off("layeradd",this._addAttribution,this)},_addAttribution:function(s){s.layer.getAttribution&&(this.addAttribution(s.layer.getAttribution()),s.layer.once("remove",function(){this.removeAttribution(s.layer.getAttribution())},this))},setPrefix:function(s){return this.options.prefix=s,this._update(),this},addAttribution:function(s){return s?(this._attributions[s]||(this._attributions[s]=0),this._attributions[s]++,this._update(),this):this},removeAttribution:function(s){return s?(this._attributions[s]&&(this._attributions[s]--,this._update()),this):this},_update:function(){if(this._map){var s=[];for(var c in this._attributions)this._attributions[c]&&s.push(c);var d=[];this.options.prefix&&d.push(this.options.prefix),s.length&&d.push(s.join(", ")),this._container.innerHTML=d.join(' <span aria-hidden="true">|</span> ')}}});ut.mergeOptions({attributionControl:!0}),ut.addInitHook(function(){this.options.attributionControl&&new yn().addTo(this)});var _r=function(s){return new yn(s)};Ct.Layers=Qn,Ct.Zoom=vn,Ct.Scale=Jn,Ct.Attribution=yn,xe.layers=hr,xe.zoom=mr,xe.scale=pr,xe.attribution=_r;var Rt=z.extend({initialize:function(s){this._map=s},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Rt.addTo=function(s,c){return s.addHandler(c,this),this};var br={Events:D},ti=nt.touch?"touchstart mousedown":"mousedown",Ut=I.extend({options:{clickTolerance:3},initialize:function(s,c,d,p){$(this,p),this._element=s,this._dragStartTarget=c||s,this._preventOutline=d},enable:function(){this._enabled||(ot(this._dragStartTarget,ti,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Ut._dragging===this&&this.finishDrag(!0),mt(this._dragStartTarget,ti,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(s){if(this._enabled&&(this._moved=!1,!an(this._element,"leaflet-zoom-anim"))){if(s.touches&&s.touches.length!==1){Ut._dragging===this&&this.finishDrag();return}if(!(Ut._dragging||s.shiftKey||s.which!==1&&s.button!==1&&!s.touches)&&(Ut._dragging=this,this._preventOutline&&hn(this._element),cn(),we(),!this._moving)){this.fire("down");var c=s.touches?s.touches[0]:s,d=Un(this._element);this._startPoint=new N(c.clientX,c.clientY),this._startPos=qt(this._element),this._parentScale=fn(d);var p=s.type==="mousedown";ot(document,p?"mousemove":"touchmove",this._onMove,this),ot(document,p?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(s){if(this._enabled){if(s.touches&&s.touches.length>1){this._moved=!0;return}var c=s.touches&&s.touches.length===1?s.touches[0]:s,d=new N(c.clientX,c.clientY)._subtract(this._startPoint);!d.x&&!d.y||Math.abs(d.x)+Math.abs(d.y)<this.options.clickTolerance||(d.x/=this._parentScale.x,d.y/=this._parentScale.y,xt(s),this._moved||(this.fire("dragstart"),this._moved=!0,lt(document.body,"leaflet-dragging"),this._lastTarget=s.target||s.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),lt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(d),this._moving=!0,this._lastEvent=s,this._updatePosition())}},_updatePosition:function(){var s={originalEvent:this._lastEvent};this.fire("predrag",s),vt(this._element,this._newPos),this.fire("drag",s)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(s){bt(document.body,"leaflet-dragging"),this._lastTarget&&(bt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),mt(document,"mousemove touchmove",this._onMove,this),mt(document,"mouseup touchend touchcancel",this._onUp,this),un(),Pe();var c=this._moved&&this._moving;this._moving=!1,Ut._dragging=!1,c&&this.fire("dragend",{noInertia:s,distance:this._newPos.distanceTo(this._startPos)})}});function ei(s,c,d){var p,b=[1,4,2,8],P,k,H,B,X,tt,at,ct;for(P=0,tt=s.length;P<tt;P++)s[P]._code=Qt(s[P],c);for(H=0;H<4;H++){for(at=b[H],p=[],P=0,tt=s.length,k=tt-1;P<tt;k=P++)B=s[P],X=s[k],B._code&at?X._code&at||(ct=Re(X,B,at,c,d),ct._code=Qt(ct,c),p.push(ct)):(X._code&at&&(ct=Re(X,B,at,c,d),ct._code=Qt(ct,c),p.push(ct)),p.push(B));s=p}return s}function ni(s,c){var d,p,b,P,k,H,B,X,tt;if(!s||s.length===0)throw new Error("latlngs not passed");kt(s)||(console.warn("latlngs are not flat! Only the first ring will be used"),s=s[0]);var at=J([0,0]),ct=rt(s),Tt=ct.getNorthWest().distanceTo(ct.getSouthWest())*ct.getNorthEast().distanceTo(ct.getNorthWest());Tt<1700&&(at=wn(s));var Et=s.length,Ot=[];for(d=0;d<Et;d++){var St=J(s[d]);Ot.push(c.project(J([St.lat-at.lat,St.lng-at.lng])))}for(H=B=X=0,d=0,p=Et-1;d<Et;p=d++)b=Ot[d],P=Ot[p],k=b.y*P.x-P.y*b.x,B+=(b.x+P.x)*k,X+=(b.y+P.y)*k,H+=k*3;H===0?tt=Ot[0]:tt=[B/H,X/H];var ue=c.unproject(q(tt));return J([ue.lat+at.lat,ue.lng+at.lng])}function wn(s){for(var c=0,d=0,p=0,b=0;b<s.length;b++){var P=J(s[b]);c+=P.lat,d+=P.lng,p++}return J([c/p,d/p])}var vr={__proto__:null,clipPolygon:ei,polygonCenter:ni,centroid:wn};function ii(s,c){if(!c||!s.length)return s.slice();var d=c*c;return s=Pr(s,d),s=wr(s,d),s}function ri(s,c,d){return Math.sqrt(Te(s,c,d,!0))}function yr(s,c,d){return Te(s,c,d)}function wr(s,c){var d=s.length,p=typeof Uint8Array!=void 0+""?Uint8Array:Array,b=new p(d);b[0]=b[d-1]=1,Pn(s,b,c,0,d-1);var P,k=[];for(P=0;P<d;P++)b[P]&&k.push(s[P]);return k}function Pn(s,c,d,p,b){var P=0,k,H,B;for(H=p+1;H<=b-1;H++)B=Te(s[H],s[p],s[b],!0),B>P&&(k=H,P=B);P>d&&(c[k]=1,Pn(s,c,d,p,k),Pn(s,c,d,k,b))}function Pr(s,c){for(var d=[s[0]],p=1,b=0,P=s.length;p<P;p++)$r(s[p],s[b])>c&&(d.push(s[p]),b=p);return b<P-1&&d.push(s[P-1]),d}var ai;function si(s,c,d,p,b){var P=p?ai:Qt(s,d),k=Qt(c,d),H,B,X;for(ai=k;;){if(!(P|k))return[s,c];if(P&k)return!1;H=P||k,B=Re(s,c,H,d,b),X=Qt(B,d),H===P?(s=B,P=X):(c=B,k=X)}}function Re(s,c,d,p,b){var P=c.x-s.x,k=c.y-s.y,H=p.min,B=p.max,X,tt;return d&8?(X=s.x+P*(B.y-s.y)/k,tt=B.y):d&4?(X=s.x+P*(H.y-s.y)/k,tt=H.y):d&2?(X=B.x,tt=s.y+k*(B.x-s.x)/P):d&1&&(X=H.x,tt=s.y+k*(H.x-s.x)/P),new N(X,tt,b)}function Qt(s,c){var d=0;return s.x<c.min.x?d|=1:s.x>c.max.x&&(d|=2),s.y<c.min.y?d|=4:s.y>c.max.y&&(d|=8),d}function $r(s,c){var d=c.x-s.x,p=c.y-s.y;return d*d+p*p}function Te(s,c,d,p){var b=c.x,P=c.y,k=d.x-b,H=d.y-P,B=k*k+H*H,X;return B>0&&(X=((s.x-b)*k+(s.y-P)*H)/B,X>1?(b=d.x,P=d.y):X>0&&(b+=k*X,P+=H*X)),k=s.x-b,H=s.y-P,p?k*k+H*H:new N(b,P)}function kt(s){return!R(s[0])||typeof s[0][0]!="object"&&typeof s[0][0]<"u"}function oi(s){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),kt(s)}function li(s,c){var d,p,b,P,k,H,B,X;if(!s||s.length===0)throw new Error("latlngs not passed");kt(s)||(console.warn("latlngs are not flat! Only the first ring will be used"),s=s[0]);var tt=J([0,0]),at=rt(s),ct=at.getNorthWest().distanceTo(at.getSouthWest())*at.getNorthEast().distanceTo(at.getNorthWest());ct<1700&&(tt=wn(s));var Tt=s.length,Et=[];for(d=0;d<Tt;d++){var Ot=J(s[d]);Et.push(c.project(J([Ot.lat-tt.lat,Ot.lng-tt.lng])))}for(d=0,p=0;d<Tt-1;d++)p+=Et[d].distanceTo(Et[d+1])/2;if(p===0)X=Et[0];else for(d=0,P=0;d<Tt-1;d++)if(k=Et[d],H=Et[d+1],b=k.distanceTo(H),P+=b,P>p){B=(P-p)/b,X=[H.x-B*(H.x-k.x),H.y-B*(H.y-k.y)];break}var St=c.unproject(q(X));return J([St.lat+tt.lat,St.lng+tt.lng])}var Er={__proto__:null,simplify:ii,pointToSegmentDistance:ri,closestPointOnSegment:yr,clipSegment:si,_getEdgeIntersection:Re,_getBitCode:Qt,_sqClosestPointOnSegment:Te,isFlat:kt,_flat:oi,polylineCenter:li},$n={project:function(s){return new N(s.lng,s.lat)},unproject:function(s){return new Q(s.y,s.x)},bounds:new Z([-180,-90],[180,90])},En={R:6378137,R_MINOR:6356752314245179e-9,bounds:new Z([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(s){var c=Math.PI/180,d=this.R,p=s.lat*c,b=this.R_MINOR/d,P=Math.sqrt(1-b*b),k=P*Math.sin(p),H=Math.tan(Math.PI/4-p/2)/Math.pow((1-k)/(1+k),P/2);return p=-d*Math.log(Math.max(H,1e-10)),new N(s.lng*c*d,p)},unproject:function(s){for(var c=180/Math.PI,d=this.R,p=this.R_MINOR/d,b=Math.sqrt(1-p*p),P=Math.exp(-s.y/d),k=Math.PI/2-2*Math.atan(P),H=0,B=.1,X;H<15&&Math.abs(B)>1e-7;H++)X=b*Math.sin(k),X=Math.pow((1-X)/(1+X),b/2),B=Math.PI/2-2*Math.atan(P*X)-k,k+=B;return new Q(k*c,s.x*c/d)}},xr={__proto__:null,LonLat:$n,Mercator:En,SphericalMercator:Wt},Tr=r({},_t,{code:"EPSG:3395",projection:En,transformation:function(){var s=.5/(Math.PI*En.R);return Mt(s,.5,-s,.5)}()}),ci=r({},_t,{code:"EPSG:4326",projection:$n,transformation:Mt(1/180,1,-1/180,.5)}),Sr=r({},ht,{projection:$n,transformation:Mt(1,0,-1,0),scale:function(s){return Math.pow(2,s)},zoom:function(s){return Math.log(s)/Math.LN2},distance:function(s,c){var d=c.lng-s.lng,p=c.lat-s.lat;return Math.sqrt(d*d+p*p)},infinite:!0});ht.Earth=_t,ht.EPSG3395=Tr,ht.EPSG3857=wt,ht.EPSG900913=Pt,ht.EPSG4326=ci,ht.Simple=Sr;var Lt=I.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(s){return s.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(s){return s&&s.removeLayer(this),this},getPane:function(s){return this._map.getPane(s?this.options[s]||s:this.options.pane)},addInteractiveTarget:function(s){return this._map._targets[u(s)]=this,this},removeInteractiveTarget:function(s){return delete this._map._targets[u(s)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(s){var c=s.target;if(c.hasLayer(this)){if(this._map=c,this._zoomAnimated=c._zoomAnimated,this.getEvents){var d=this.getEvents();c.on(d,this),this.once("remove",function(){c.off(d,this)},this)}this.onAdd(c),this.fire("add"),c.fire("layeradd",{layer:this})}}});ut.include({addLayer:function(s){if(!s._layerAdd)throw new Error("The provided object is not a Layer.");var c=u(s);return this._layers[c]?this:(this._layers[c]=s,s._mapToAdd=this,s.beforeAdd&&s.beforeAdd(this),this.whenReady(s._layerAdd,s),this)},removeLayer:function(s){var c=u(s);return this._layers[c]?(this._loaded&&s.onRemove(this),delete this._layers[c],this._loaded&&(this.fire("layerremove",{layer:s}),s.fire("remove")),s._map=s._mapToAdd=null,this):this},hasLayer:function(s){return u(s)in this._layers},eachLayer:function(s,c){for(var d in this._layers)s.call(c,this._layers[d]);return this},_addLayers:function(s){s=s?R(s)?s:[s]:[];for(var c=0,d=s.length;c<d;c++)this.addLayer(s[c])},_addZoomLimit:function(s){(!isNaN(s.options.maxZoom)||!isNaN(s.options.minZoom))&&(this._zoomBoundLayers[u(s)]=s,this._updateZoomLevels())},_removeZoomLimit:function(s){var c=u(s);this._zoomBoundLayers[c]&&(delete this._zoomBoundLayers[c],this._updateZoomLevels())},_updateZoomLevels:function(){var s=1/0,c=-1/0,d=this._getZoomSpan();for(var p in this._zoomBoundLayers){var b=this._zoomBoundLayers[p].options;s=b.minZoom===void 0?s:Math.min(s,b.minZoom),c=b.maxZoom===void 0?c:Math.max(c,b.maxZoom)}this._layersMaxZoom=c===-1/0?void 0:c,this._layersMinZoom=s===1/0?void 0:s,d!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var ae=Lt.extend({initialize:function(s,c){$(this,c),this._layers={};var d,p;if(s)for(d=0,p=s.length;d<p;d++)this.addLayer(s[d])},addLayer:function(s){var c=this.getLayerId(s);return this._layers[c]=s,this._map&&this._map.addLayer(s),this},removeLayer:function(s){var c=s in this._layers?s:this.getLayerId(s);return this._map&&this._layers[c]&&this._map.removeLayer(this._layers[c]),delete this._layers[c],this},hasLayer:function(s){var c=typeof s=="number"?s:this.getLayerId(s);return c in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(s){var c=Array.prototype.slice.call(arguments,1),d,p;for(d in this._layers)p=this._layers[d],p[s]&&p[s].apply(p,c);return this},onAdd:function(s){this.eachLayer(s.addLayer,s)},onRemove:function(s){this.eachLayer(s.removeLayer,s)},eachLayer:function(s,c){for(var d in this._layers)s.call(c,this._layers[d]);return this},getLayer:function(s){return this._layers[s]},getLayers:function(){var s=[];return this.eachLayer(s.push,s),s},setZIndex:function(s){return this.invoke("setZIndex",s)},getLayerId:function(s){return u(s)}}),Mr=function(s,c){return new ae(s,c)},jt=ae.extend({addLayer:function(s){return this.hasLayer(s)?this:(s.addEventParent(this),ae.prototype.addLayer.call(this,s),this.fire("layeradd",{layer:s}))},removeLayer:function(s){return this.hasLayer(s)?(s in this._layers&&(s=this._layers[s]),s.removeEventParent(this),ae.prototype.removeLayer.call(this,s),this.fire("layerremove",{layer:s})):this},setStyle:function(s){return this.invoke("setStyle",s)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var s=new st;for(var c in this._layers){var d=this._layers[c];s.extend(d.getBounds?d.getBounds():d.getLatLng())}return s}}),Ar=function(s,c){return new jt(s,c)},se=z.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(s){$(this,s)},createIcon:function(s){return this._createIcon("icon",s)},createShadow:function(s){return this._createIcon("shadow",s)},_createIcon:function(s,c){var d=this._getIconUrl(s);if(!d){if(s==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var p=this._createImg(d,c&&c.tagName==="IMG"?c:null);return this._setIconStyles(p,s),(this.options.crossOrigin||this.options.crossOrigin==="")&&(p.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),p},_setIconStyles:function(s,c){var d=this.options,p=d[c+"Size"];typeof p=="number"&&(p=[p,p]);var b=q(p),P=q(c==="shadow"&&d.shadowAnchor||d.iconAnchor||b&&b.divideBy(2,!0));s.className="leaflet-marker-"+c+" "+(d.className||""),P&&(s.style.marginLeft=-P.x+"px",s.style.marginTop=-P.y+"px"),b&&(s.style.width=b.x+"px",s.style.height=b.y+"px")},_createImg:function(s,c){return c=c||document.createElement("img"),c.src=s,c},_getIconUrl:function(s){return nt.retina&&this.options[s+"RetinaUrl"]||this.options[s+"Url"]}});function kr(s){return new se(s)}var Se=se.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(s){return typeof Se.imagePath!="string"&&(Se.imagePath=this._detectIconPath()),(this.options.imagePath||Se.imagePath)+se.prototype._getIconUrl.call(this,s)},_stripUrl:function(s){var c=function(d,p,b){var P=p.exec(d);return P&&P[b]};return s=c(s,/^url\((['"])?(.+)\1\)$/,2),s&&c(s,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var s=dt("div","leaflet-default-icon-path",document.body),c=ye(s,"background-image")||ye(s,"backgroundImage");if(document.body.removeChild(s),c=this._stripUrl(c),c)return c;var d=document.querySelector('link[href$="leaflet.css"]');return d?d.href.substring(0,d.href.length-11-1):""}}),ui=Rt.extend({initialize:function(s){this._marker=s},addHooks:function(){var s=this._marker._icon;this._draggable||(this._draggable=new Ut(s,s,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),lt(s,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&bt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(s){var c=this._marker,d=c._map,p=this._marker.options.autoPanSpeed,b=this._marker.options.autoPanPadding,P=qt(c._icon),k=d.getPixelBounds(),H=d.getPixelOrigin(),B=et(k.min._subtract(H).add(b),k.max._subtract(H).subtract(b));if(!B.contains(P)){var X=q((Math.max(B.max.x,P.x)-B.max.x)/(k.max.x-B.max.x)-(Math.min(B.min.x,P.x)-B.min.x)/(k.min.x-B.min.x),(Math.max(B.max.y,P.y)-B.max.y)/(k.max.y-B.max.y)-(Math.min(B.min.y,P.y)-B.min.y)/(k.min.y-B.min.y)).multiplyBy(p);d.panBy(X,{animate:!1}),this._draggable._newPos._add(X),this._draggable._startPos._add(X),vt(c._icon,this._draggable._newPos),this._onDrag(s),this._panRequest=O(this._adjustPan.bind(this,s))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(s){this._marker.options.autoPan&&(A(this._panRequest),this._panRequest=O(this._adjustPan.bind(this,s)))},_onDrag:function(s){var c=this._marker,d=c._shadow,p=qt(c._icon),b=c._map.layerPointToLatLng(p);d&&vt(d,p),c._latlng=b,s.latlng=b,s.oldLatLng=this._oldLatLng,c.fire("move",s).fire("drag",s)},_onDragEnd:function(s){A(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",s)}}),ze=Lt.extend({options:{icon:new Se,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(s,c){$(this,c),this._latlng=J(s)},onAdd:function(s){this._zoomAnimated=this._zoomAnimated&&s.options.markerZoomAnimation,this._zoomAnimated&&s.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(s){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&s.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(s){var c=this._latlng;return this._latlng=J(s),this.update(),this.fire("move",{oldLatLng:c,latlng:this._latlng})},setZIndexOffset:function(s){return this.options.zIndexOffset=s,this.update()},getIcon:function(){return this.options.icon},setIcon:function(s){return this.options.icon=s,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var s=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(s)}return this},_initIcon:function(){var s=this.options,c="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),d=s.icon.createIcon(this._icon),p=!1;d!==this._icon&&(this._icon&&this._removeIcon(),p=!0,s.title&&(d.title=s.title),d.tagName==="IMG"&&(d.alt=s.alt||"")),lt(d,c),s.keyboard&&(d.tabIndex="0",d.setAttribute("role","button")),this._icon=d,s.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&ot(d,"focus",this._panOnFocus,this);var b=s.icon.createShadow(this._shadow),P=!1;b!==this._shadow&&(this._removeShadow(),P=!0),b&&(lt(b,c),b.alt=""),this._shadow=b,s.opacity<1&&this._updateOpacity(),p&&this.getPane().appendChild(this._icon),this._initInteraction(),b&&P&&this.getPane(s.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&mt(this._icon,"focus",this._panOnFocus,this),gt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&gt(this._shadow),this._shadow=null},_setPos:function(s){this._icon&&vt(this._icon,s),this._shadow&&vt(this._shadow,s),this._zIndex=s.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(s){this._icon&&(this._icon.style.zIndex=this._zIndex+s)},_animateZoom:function(s){var c=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center).round();this._setPos(c)},_initInteraction:function(){if(this.options.interactive&&(lt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),ui)){var s=this.options.draggable;this.dragging&&(s=this.dragging.enabled(),this.dragging.disable()),this.dragging=new ui(this),s&&this.dragging.enable()}},setOpacity:function(s){return this.options.opacity=s,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var s=this.options.opacity;this._icon&&At(this._icon,s),this._shadow&&At(this._shadow,s)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var s=this._map;if(s){var c=this.options.icon.options,d=c.iconSize?q(c.iconSize):q(0,0),p=c.iconAnchor?q(c.iconAnchor):q(0,0);s.panInside(this._latlng,{paddingTopLeft:p,paddingBottomRight:d.subtract(p)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Or(s,c){return new ze(s,c)}var Gt=Lt.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(s){this._renderer=s.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(s){return $(this,s),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&s&&Object.prototype.hasOwnProperty.call(s,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),We=Gt.extend({options:{fill:!0,radius:10},initialize:function(s,c){$(this,c),this._latlng=J(s),this._radius=this.options.radius},setLatLng:function(s){var c=this._latlng;return this._latlng=J(s),this.redraw(),this.fire("move",{oldLatLng:c,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(s){return this.options.radius=this._radius=s,this.redraw()},getRadius:function(){return this._radius},setStyle:function(s){var c=s&&s.radius||this._radius;return Gt.prototype.setStyle.call(this,s),this.setRadius(c),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var s=this._radius,c=this._radiusY||s,d=this._clickTolerance(),p=[s+d,c+d];this._pxBounds=new Z(this._point.subtract(p),this._point.add(p))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(s){return s.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Cr(s,c){return new We(s,c)}var xn=We.extend({initialize:function(s,c,d){if(typeof c=="number"&&(c=r({},d,{radius:c})),$(this,c),this._latlng=J(s),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(s){return this._mRadius=s,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var s=[this._radius,this._radiusY||this._radius];return new st(this._map.layerPointToLatLng(this._point.subtract(s)),this._map.layerPointToLatLng(this._point.add(s)))},setStyle:Gt.prototype.setStyle,_project:function(){var s=this._latlng.lng,c=this._latlng.lat,d=this._map,p=d.options.crs;if(p.distance===_t.distance){var b=Math.PI/180,P=this._mRadius/_t.R/b,k=d.project([c+P,s]),H=d.project([c-P,s]),B=k.add(H).divideBy(2),X=d.unproject(B).lat,tt=Math.acos((Math.cos(P*b)-Math.sin(c*b)*Math.sin(X*b))/(Math.cos(c*b)*Math.cos(X*b)))/b;(isNaN(tt)||tt===0)&&(tt=P/Math.cos(Math.PI/180*c)),this._point=B.subtract(d.getPixelOrigin()),this._radius=isNaN(tt)?0:B.x-d.project([X,s-tt]).x,this._radiusY=B.y-k.y}else{var at=p.unproject(p.project(this._latlng).subtract([this._mRadius,0]));this._point=d.latLngToLayerPoint(this._latlng),this._radius=this._point.x-d.latLngToLayerPoint(at).x}this._updateBounds()}});function Lr(s,c,d){return new xn(s,c,d)}var Ht=Gt.extend({options:{smoothFactor:1,noClip:!1},initialize:function(s,c){$(this,c),this._setLatLngs(s)},getLatLngs:function(){return this._latlngs},setLatLngs:function(s){return this._setLatLngs(s),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(s){for(var c=1/0,d=null,p=Te,b,P,k=0,H=this._parts.length;k<H;k++)for(var B=this._parts[k],X=1,tt=B.length;X<tt;X++){b=B[X-1],P=B[X];var at=p(s,b,P,!0);at<c&&(c=at,d=p(s,b,P))}return d&&(d.distance=Math.sqrt(c)),d},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return li(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(s,c){return c=c||this._defaultShape(),s=J(s),c.push(s),this._bounds.extend(s),this.redraw()},_setLatLngs:function(s){this._bounds=new st,this._latlngs=this._convertLatLngs(s)},_defaultShape:function(){return kt(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(s){for(var c=[],d=kt(s),p=0,b=s.length;p<b;p++)d?(c[p]=J(s[p]),this._bounds.extend(c[p])):c[p]=this._convertLatLngs(s[p]);return c},_project:function(){var s=new Z;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,s),this._bounds.isValid()&&s.isValid()&&(this._rawPxBounds=s,this._updateBounds())},_updateBounds:function(){var s=this._clickTolerance(),c=new N(s,s);this._rawPxBounds&&(this._pxBounds=new Z([this._rawPxBounds.min.subtract(c),this._rawPxBounds.max.add(c)]))},_projectLatlngs:function(s,c,d){var p=s[0]instanceof Q,b=s.length,P,k;if(p){for(k=[],P=0;P<b;P++)k[P]=this._map.latLngToLayerPoint(s[P]),d.extend(k[P]);c.push(k)}else for(P=0;P<b;P++)this._projectLatlngs(s[P],c,d)},_clipPoints:function(){var s=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(s))){if(this.options.noClip){this._parts=this._rings;return}var c=this._parts,d,p,b,P,k,H,B;for(d=0,b=0,P=this._rings.length;d<P;d++)for(B=this._rings[d],p=0,k=B.length;p<k-1;p++)H=si(B[p],B[p+1],s,p,!0),H&&(c[b]=c[b]||[],c[b].push(H[0]),(H[1]!==B[p+1]||p===k-2)&&(c[b].push(H[1]),b++))}},_simplifyPoints:function(){for(var s=this._parts,c=this.options.smoothFactor,d=0,p=s.length;d<p;d++)s[d]=ii(s[d],c)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(s,c){var d,p,b,P,k,H,B=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(s))return!1;for(d=0,P=this._parts.length;d<P;d++)for(H=this._parts[d],p=0,k=H.length,b=k-1;p<k;b=p++)if(!(!c&&p===0)&&ri(s,H[b],H[p])<=B)return!0;return!1}});function Dr(s,c){return new Ht(s,c)}Ht._flat=oi;var oe=Ht.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return ni(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(s){var c=Ht.prototype._convertLatLngs.call(this,s),d=c.length;return d>=2&&c[0]instanceof Q&&c[0].equals(c[d-1])&&c.pop(),c},_setLatLngs:function(s){Ht.prototype._setLatLngs.call(this,s),kt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return kt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var s=this._renderer._bounds,c=this.options.weight,d=new N(c,c);if(s=new Z(s.min.subtract(d),s.max.add(d)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(s))){if(this.options.noClip){this._parts=this._rings;return}for(var p=0,b=this._rings.length,P;p<b;p++)P=ei(this._rings[p],s,!0),P.length&&this._parts.push(P)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(s){var c=!1,d,p,b,P,k,H,B,X;if(!this._pxBounds||!this._pxBounds.contains(s))return!1;for(P=0,B=this._parts.length;P<B;P++)for(d=this._parts[P],k=0,X=d.length,H=X-1;k<X;H=k++)p=d[k],b=d[H],p.y>s.y!=b.y>s.y&&s.x<(b.x-p.x)*(s.y-p.y)/(b.y-p.y)+p.x&&(c=!c);return c||Ht.prototype._containsPoint.call(this,s,!0)}});function Nr(s,c){return new oe(s,c)}var Vt=jt.extend({initialize:function(s,c){$(this,c),this._layers={},s&&this.addData(s)},addData:function(s){var c=R(s)?s:s.features,d,p,b;if(c){for(d=0,p=c.length;d<p;d++)b=c[d],(b.geometries||b.geometry||b.features||b.coordinates)&&this.addData(b);return this}var P=this.options;if(P.filter&&!P.filter(s))return this;var k=je(s,P);return k?(k.feature=Be(s),k.defaultOptions=k.options,this.resetStyle(k),P.onEachFeature&&P.onEachFeature(s,k),this.addLayer(k)):this},resetStyle:function(s){return s===void 0?this.eachLayer(this.resetStyle,this):(s.options=r({},s.defaultOptions),this._setLayerStyle(s,this.options.style),this)},setStyle:function(s){return this.eachLayer(function(c){this._setLayerStyle(c,s)},this)},_setLayerStyle:function(s,c){s.setStyle&&(typeof c=="function"&&(c=c(s.feature)),s.setStyle(c))}});function je(s,c){var d=s.type==="Feature"?s.geometry:s,p=d?d.coordinates:null,b=[],P=c&&c.pointToLayer,k=c&&c.coordsToLatLng||Tn,H,B,X,tt;if(!p&&!d)return null;switch(d.type){case"Point":return H=k(p),di(P,s,H,c);case"MultiPoint":for(X=0,tt=p.length;X<tt;X++)H=k(p[X]),b.push(di(P,s,H,c));return new jt(b);case"LineString":case"MultiLineString":return B=He(p,d.type==="LineString"?0:1,k),new Ht(B,c);case"Polygon":case"MultiPolygon":return B=He(p,d.type==="Polygon"?1:2,k),new oe(B,c);case"GeometryCollection":for(X=0,tt=d.geometries.length;X<tt;X++){var at=je({geometry:d.geometries[X],type:"Feature",properties:s.properties},c);at&&b.push(at)}return new jt(b);case"FeatureCollection":for(X=0,tt=d.features.length;X<tt;X++){var ct=je(d.features[X],c);ct&&b.push(ct)}return new jt(b);default:throw new Error("Invalid GeoJSON object.")}}function di(s,c,d,p){return s?s(c,d):new ze(d,p&&p.markersInheritOptions&&p)}function Tn(s){return new Q(s[1],s[0],s[2])}function He(s,c,d){for(var p=[],b=0,P=s.length,k;b<P;b++)k=c?He(s[b],c-1,d):(d||Tn)(s[b]),p.push(k);return p}function Sn(s,c){return s=J(s),s.alt!==void 0?[_(s.lng,c),_(s.lat,c),_(s.alt,c)]:[_(s.lng,c),_(s.lat,c)]}function Ve(s,c,d,p){for(var b=[],P=0,k=s.length;P<k;P++)b.push(c?Ve(s[P],kt(s[P])?0:c-1,d,p):Sn(s[P],p));return!c&&d&&b.length>0&&b.push(b[0].slice()),b}function le(s,c){return s.feature?r({},s.feature,{geometry:c}):Be(c)}function Be(s){return s.type==="Feature"||s.type==="FeatureCollection"?s:{type:"Feature",properties:{},geometry:s}}var Mn={toGeoJSON:function(s){return le(this,{type:"Point",coordinates:Sn(this.getLatLng(),s)})}};ze.include(Mn),xn.include(Mn),We.include(Mn),Ht.include({toGeoJSON:function(s){var c=!kt(this._latlngs),d=Ve(this._latlngs,c?1:0,!1,s);return le(this,{type:(c?"Multi":"")+"LineString",coordinates:d})}}),oe.include({toGeoJSON:function(s){var c=!kt(this._latlngs),d=c&&!kt(this._latlngs[0]),p=Ve(this._latlngs,d?2:c?1:0,!0,s);return c||(p=[p]),le(this,{type:(d?"Multi":"")+"Polygon",coordinates:p})}}),ae.include({toMultiPoint:function(s){var c=[];return this.eachLayer(function(d){c.push(d.toGeoJSON(s).geometry.coordinates)}),le(this,{type:"MultiPoint",coordinates:c})},toGeoJSON:function(s){var c=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(c==="MultiPoint")return this.toMultiPoint(s);var d=c==="GeometryCollection",p=[];return this.eachLayer(function(b){if(b.toGeoJSON){var P=b.toGeoJSON(s);if(d)p.push(P.geometry);else{var k=Be(P);k.type==="FeatureCollection"?p.push.apply(p,k.features):p.push(k)}}}),d?le(this,{geometries:p,type:"GeometryCollection"}):{type:"FeatureCollection",features:p}}});function hi(s,c){return new Vt(s,c)}var Fr=hi,Ye=Lt.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(s,c,d){this._url=s,this._bounds=rt(c),$(this,d)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(lt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){gt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(s){return this.options.opacity=s,this._image&&this._updateOpacity(),this},setStyle:function(s){return s.opacity&&this.setOpacity(s.opacity),this},bringToFront:function(){return this._map&&ie(this._image),this},bringToBack:function(){return this._map&&re(this._image),this},setUrl:function(s){return this._url=s,this._image&&(this._image.src=s),this},setBounds:function(s){return this._bounds=rt(s),this._map&&this._reset(),this},getEvents:function(){var s={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},setZIndex:function(s){return this.options.zIndex=s,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var s=this._url.tagName==="IMG",c=this._image=s?this._url:dt("img");if(lt(c,"leaflet-image-layer"),this._zoomAnimated&&lt(c,"leaflet-zoom-animated"),this.options.className&&lt(c,this.options.className),c.onselectstart=g,c.onmousemove=g,c.onload=o(this.fire,this,"load"),c.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(c.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),s){this._url=c.src;return}c.src=this._url,c.alt=this.options.alt},_animateZoom:function(s){var c=this._map.getZoomScale(s.zoom),d=this._map._latLngBoundsToNewLayerBounds(this._bounds,s.zoom,s.center).min;Kt(this._image,d,c)},_reset:function(){var s=this._image,c=new Z(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),d=c.getSize();vt(s,c.min),s.style.width=d.x+"px",s.style.height=d.y+"px"},_updateOpacity:function(){At(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var s=this.options.errorOverlayUrl;s&&this._url!==s&&(this._url=s,this._image.src=s)},getCenter:function(){return this._bounds.getCenter()}}),Ir=function(s,c,d){return new Ye(s,c,d)},mi=Ye.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var s=this._url.tagName==="VIDEO",c=this._image=s?this._url:dt("video");if(lt(c,"leaflet-image-layer"),this._zoomAnimated&&lt(c,"leaflet-zoom-animated"),this.options.className&&lt(c,this.options.className),c.onselectstart=g,c.onmousemove=g,c.onloadeddata=o(this.fire,this,"load"),s){for(var d=c.getElementsByTagName("source"),p=[],b=0;b<d.length;b++)p.push(d[b].src);this._url=d.length>0?p:[c.src];return}R(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(c.style,"objectFit")&&(c.style.objectFit="fill"),c.autoplay=!!this.options.autoplay,c.loop=!!this.options.loop,c.muted=!!this.options.muted,c.playsInline=!!this.options.playsInline;for(var P=0;P<this._url.length;P++){var k=dt("source");k.src=this._url[P],c.appendChild(k)}}});function Rr(s,c,d){return new mi(s,c,d)}var pi=Ye.extend({_initImage:function(){var s=this._image=this._url;lt(s,"leaflet-image-layer"),this._zoomAnimated&&lt(s,"leaflet-zoom-animated"),this.options.className&&lt(s,this.options.className),s.onselectstart=g,s.onmousemove=g}});function zr(s,c,d){return new pi(s,c,d)}var zt=Lt.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(s,c){s&&(s instanceof Q||R(s))?(this._latlng=J(s),$(this,c)):($(this,s),this._source=c),this.options.content&&(this._content=this.options.content)},openOn:function(s){return s=arguments.length?s:this._source._map,s.hasLayer(this)||s.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(s){return this._map?this.close():(arguments.length?this._source=s:s=this._source,this._prepareOpen(),this.openOn(s._map)),this},onAdd:function(s){this._zoomAnimated=s._zoomAnimated,this._container||this._initLayout(),s._fadeAnimated&&At(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),s._fadeAnimated&&At(this._container,1),this.bringToFront(),this.options.interactive&&(lt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(s){s._fadeAnimated?(At(this._container,0),this._removeTimeout=setTimeout(o(gt,void 0,this._container),200)):gt(this._container),this.options.interactive&&(bt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(s){return this._latlng=J(s),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(s){return this._content=s,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var s={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ie(this._container),this},bringToBack:function(){return this._map&&re(this._container),this},_prepareOpen:function(s){var c=this._source;if(!c._map)return!1;if(c instanceof jt){c=null;var d=this._source._layers;for(var p in d)if(d[p]._map){c=d[p];break}if(!c)return!1;this._source=c}if(!s)if(c.getCenter)s=c.getCenter();else if(c.getLatLng)s=c.getLatLng();else if(c.getBounds)s=c.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(s),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var s=this._contentNode,c=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof c=="string")s.innerHTML=c;else{for(;s.hasChildNodes();)s.removeChild(s.firstChild);s.appendChild(c)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var s=this._map.latLngToLayerPoint(this._latlng),c=q(this.options.offset),d=this._getAnchor();this._zoomAnimated?vt(this._container,s.add(d)):c=c.add(s).add(d);var p=this._containerBottom=-c.y,b=this._containerLeft=-Math.round(this._containerWidth/2)+c.x;this._container.style.bottom=p+"px",this._container.style.left=b+"px"}},_getAnchor:function(){return[0,0]}});ut.include({_initOverlay:function(s,c,d,p){var b=c;return b instanceof s||(b=new s(p).setContent(c)),d&&b.setLatLng(d),b}}),Lt.include({_initOverlay:function(s,c,d,p){var b=d;return b instanceof s?($(b,p),b._source=this):(b=c&&!p?c:new s(p,this),b.setContent(d)),b}});var Ue=zt.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(s){return s=arguments.length?s:this._source._map,!s.hasLayer(this)&&s._popup&&s._popup.options.autoClose&&s.removeLayer(s._popup),s._popup=this,zt.prototype.openOn.call(this,s)},onAdd:function(s){zt.prototype.onAdd.call(this,s),s.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Gt||this._source.on("preclick",Xt))},onRemove:function(s){zt.prototype.onRemove.call(this,s),s.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Gt||this._source.off("preclick",Xt))},getEvents:function(){var s=zt.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(s.preclick=this.close),this.options.keepInView&&(s.moveend=this._adjustPan),s},_initLayout:function(){var s="leaflet-popup",c=this._container=dt("div",s+" "+(this.options.className||"")+" leaflet-zoom-animated"),d=this._wrapper=dt("div",s+"-content-wrapper",c);if(this._contentNode=dt("div",s+"-content",d),Ee(c),_n(this._contentNode),ot(c,"contextmenu",Xt),this._tipContainer=dt("div",s+"-tip-container",c),this._tip=dt("div",s+"-tip",this._tipContainer),this.options.closeButton){var p=this._closeButton=dt("a",s+"-close-button",c);p.setAttribute("role","button"),p.setAttribute("aria-label","Close popup"),p.href="#close",p.innerHTML='<span aria-hidden="true">&#215;</span>',ot(p,"click",function(b){xt(b),this.close()},this)}},_updateLayout:function(){var s=this._contentNode,c=s.style;c.width="",c.whiteSpace="nowrap";var d=s.offsetWidth;d=Math.min(d,this.options.maxWidth),d=Math.max(d,this.options.minWidth),c.width=d+1+"px",c.whiteSpace="",c.height="";var p=s.offsetHeight,b=this.options.maxHeight,P="leaflet-popup-scrolled";b&&p>b?(c.height=b+"px",lt(s,P)):bt(s,P),this._containerWidth=this._container.offsetWidth},_animateZoom:function(s){var c=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center),d=this._getAnchor();vt(this._container,c.add(d))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var s=this._map,c=parseInt(ye(this._container,"marginBottom"),10)||0,d=this._container.offsetHeight+c,p=this._containerWidth,b=new N(this._containerLeft,-d-this._containerBottom);b._add(qt(this._container));var P=s.layerPointToContainerPoint(b),k=q(this.options.autoPanPadding),H=q(this.options.autoPanPaddingTopLeft||k),B=q(this.options.autoPanPaddingBottomRight||k),X=s.getSize(),tt=0,at=0;P.x+p+B.x>X.x&&(tt=P.x+p-X.x+B.x),P.x-tt-H.x<0&&(tt=P.x-H.x),P.y+d+B.y>X.y&&(at=P.y+d-X.y+B.y),P.y-at-H.y<0&&(at=P.y-H.y),(tt||at)&&(this.options.keepInView&&(this._autopanning=!0),s.fire("autopanstart").panBy([tt,at]))}},_getAnchor:function(){return q(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Wr=function(s,c){return new Ue(s,c)};ut.mergeOptions({closePopupOnClick:!0}),ut.include({openPopup:function(s,c,d){return this._initOverlay(Ue,s,c,d).openOn(this),this},closePopup:function(s){return s=arguments.length?s:this._popup,s&&s.close(),this}}),Lt.include({bindPopup:function(s,c){return this._popup=this._initOverlay(Ue,this._popup,s,c),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(s){return this._popup&&(this instanceof jt||(this._popup._source=this),this._popup._prepareOpen(s||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(s){return this._popup&&this._popup.setContent(s),this},getPopup:function(){return this._popup},_openPopup:function(s){if(!(!this._popup||!this._map)){Zt(s);var c=s.layer||s.target;if(this._popup._source===c&&!(c instanceof Gt)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(s.latlng);return}this._popup._source=c,this.openPopup(s.latlng)}},_movePopup:function(s){this._popup.setLatLng(s.latlng)},_onKeyPress:function(s){s.originalEvent.keyCode===13&&this._openPopup(s)}});var Ge=zt.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(s){zt.prototype.onAdd.call(this,s),this.setOpacity(this.options.opacity),s.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(s){zt.prototype.onRemove.call(this,s),s.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var s=zt.prototype.getEvents.call(this);return this.options.permanent||(s.preclick=this.close),s},_initLayout:function(){var s="leaflet-tooltip",c=s+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=dt("div",c),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+u(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(s){var c,d,p=this._map,b=this._container,P=p.latLngToContainerPoint(p.getCenter()),k=p.layerPointToContainerPoint(s),H=this.options.direction,B=b.offsetWidth,X=b.offsetHeight,tt=q(this.options.offset),at=this._getAnchor();H==="top"?(c=B/2,d=X):H==="bottom"?(c=B/2,d=0):H==="center"?(c=B/2,d=X/2):H==="right"?(c=0,d=X/2):H==="left"?(c=B,d=X/2):k.x<P.x?(H="right",c=0,d=X/2):(H="left",c=B+(tt.x+at.x)*2,d=X/2),s=s.subtract(q(c,d,!0)).add(tt).add(at),bt(b,"leaflet-tooltip-right"),bt(b,"leaflet-tooltip-left"),bt(b,"leaflet-tooltip-top"),bt(b,"leaflet-tooltip-bottom"),lt(b,"leaflet-tooltip-"+H),vt(b,s)},_updatePosition:function(){var s=this._map.latLngToLayerPoint(this._latlng);this._setPosition(s)},setOpacity:function(s){this.options.opacity=s,this._container&&At(this._container,s)},_animateZoom:function(s){var c=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center);this._setPosition(c)},_getAnchor:function(){return q(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),jr=function(s,c){return new Ge(s,c)};ut.include({openTooltip:function(s,c,d){return this._initOverlay(Ge,s,c,d).openOn(this),this},closeTooltip:function(s){return s.close(),this}}),Lt.include({bindTooltip:function(s,c){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Ge,this._tooltip,s,c),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(s){if(!(!s&&this._tooltipHandlersAdded)){var c=s?"off":"on",d={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?d.add=this._openTooltip:(d.mouseover=this._openTooltip,d.mouseout=this.closeTooltip,d.click=this._openTooltip,this._map?this._addFocusListeners():d.add=this._addFocusListeners),this._tooltip.options.sticky&&(d.mousemove=this._moveTooltip),this[c](d),this._tooltipHandlersAdded=!s}},openTooltip:function(s){return this._tooltip&&(this instanceof jt||(this._tooltip._source=this),this._tooltip._prepareOpen(s)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(s){return this._tooltip&&this._tooltip.setContent(s),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(s){var c=typeof s.getElement=="function"&&s.getElement();c&&(ot(c,"focus",function(){this._tooltip._source=s,this.openTooltip()},this),ot(c,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(s){var c=typeof s.getElement=="function"&&s.getElement();c&&c.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(s){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var c=this;this._map.once("moveend",function(){c._openOnceFlag=!1,c._openTooltip(s)});return}this._tooltip._source=s.layer||s.target,this.openTooltip(this._tooltip.options.sticky?s.latlng:void 0)}},_moveTooltip:function(s){var c=s.latlng,d,p;this._tooltip.options.sticky&&s.originalEvent&&(d=this._map.mouseEventToContainerPoint(s.originalEvent),p=this._map.containerPointToLayerPoint(d),c=this._map.layerPointToLatLng(p)),this._tooltip.setLatLng(c)}});var gi=se.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(s){var c=s&&s.tagName==="DIV"?s:document.createElement("div"),d=this.options;if(d.html instanceof Element?(Le(c),c.appendChild(d.html)):c.innerHTML=d.html!==!1?d.html:"",d.bgPos){var p=q(d.bgPos);c.style.backgroundPosition=-p.x+"px "+-p.y+"px"}return this._setIconStyles(c,"icon"),c},createShadow:function(){return null}});function Hr(s){return new gi(s)}se.Default=Se;var Me=Lt.extend({options:{tileSize:256,opacity:1,updateWhenIdle:nt.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(s){$(this,s)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(s){s._addZoomLimit(this)},onRemove:function(s){this._removeAllTiles(),gt(this._container),s._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ie(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(re(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(s){return this.options.opacity=s,this._updateOpacity(),this},setZIndex:function(s){return this.options.zIndex=s,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var s=this._clampZoom(this._map.getZoom());s!==this._tileZoom&&(this._tileZoom=s,this._updateLevels()),this._update()}return this},getEvents:function(){var s={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=h(this._onMoveEnd,this.options.updateInterval,this)),s.move=this._onMove),this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},createTile:function(){return document.createElement("div")},getTileSize:function(){var s=this.options.tileSize;return s instanceof N?s:new N(s,s)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(s){for(var c=this.getPane().children,d=-s(-1/0,1/0),p=0,b=c.length,P;p<b;p++)P=c[p].style.zIndex,c[p]!==this._container&&P&&(d=s(d,+P));isFinite(d)&&(this.options.zIndex=d+s(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!nt.ielt9){At(this._container,this.options.opacity);var s=+new Date,c=!1,d=!1;for(var p in this._tiles){var b=this._tiles[p];if(!(!b.current||!b.loaded)){var P=Math.min(1,(s-b.loaded)/200);At(b.el,P),P<1?c=!0:(b.active?d=!0:this._onOpaqueTile(b),b.active=!0)}}d&&!this._noPrune&&this._pruneTiles(),c&&(A(this._fadeFrame),this._fadeFrame=O(this._updateOpacity,this))}},_onOpaqueTile:g,_initContainer:function(){this._container||(this._container=dt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var s=this._tileZoom,c=this.options.maxZoom;if(s!==void 0){for(var d in this._levels)d=Number(d),this._levels[d].el.children.length||d===s?(this._levels[d].el.style.zIndex=c-Math.abs(s-d),this._onUpdateLevel(d)):(gt(this._levels[d].el),this._removeTilesAtZoom(d),this._onRemoveLevel(d),delete this._levels[d]);var p=this._levels[s],b=this._map;return p||(p=this._levels[s]={},p.el=dt("div","leaflet-tile-container leaflet-zoom-animated",this._container),p.el.style.zIndex=c,p.origin=b.project(b.unproject(b.getPixelOrigin()),s).round(),p.zoom=s,this._setZoomTransform(p,b.getCenter(),b.getZoom()),g(p.el.offsetWidth),this._onCreateLevel(p)),this._level=p,p}},_onUpdateLevel:g,_onRemoveLevel:g,_onCreateLevel:g,_pruneTiles:function(){if(this._map){var s,c,d=this._map.getZoom();if(d>this.options.maxZoom||d<this.options.minZoom){this._removeAllTiles();return}for(s in this._tiles)c=this._tiles[s],c.retain=c.current;for(s in this._tiles)if(c=this._tiles[s],c.current&&!c.active){var p=c.coords;this._retainParent(p.x,p.y,p.z,p.z-5)||this._retainChildren(p.x,p.y,p.z,p.z+2)}for(s in this._tiles)this._tiles[s].retain||this._removeTile(s)}},_removeTilesAtZoom:function(s){for(var c in this._tiles)this._tiles[c].coords.z===s&&this._removeTile(c)},_removeAllTiles:function(){for(var s in this._tiles)this._removeTile(s)},_invalidateAll:function(){for(var s in this._levels)gt(this._levels[s].el),this._onRemoveLevel(Number(s)),delete this._levels[s];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(s,c,d,p){var b=Math.floor(s/2),P=Math.floor(c/2),k=d-1,H=new N(+b,+P);H.z=+k;var B=this._tileCoordsToKey(H),X=this._tiles[B];return X&&X.active?(X.retain=!0,!0):(X&&X.loaded&&(X.retain=!0),k>p?this._retainParent(b,P,k,p):!1)},_retainChildren:function(s,c,d,p){for(var b=2*s;b<2*s+2;b++)for(var P=2*c;P<2*c+2;P++){var k=new N(b,P);k.z=d+1;var H=this._tileCoordsToKey(k),B=this._tiles[H];if(B&&B.active){B.retain=!0;continue}else B&&B.loaded&&(B.retain=!0);d+1<p&&this._retainChildren(b,P,d+1,p)}},_resetView:function(s){var c=s&&(s.pinch||s.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),c,c)},_animateZoom:function(s){this._setView(s.center,s.zoom,!0,s.noUpdate)},_clampZoom:function(s){var c=this.options;return c.minNativeZoom!==void 0&&s<c.minNativeZoom?c.minNativeZoom:c.maxNativeZoom!==void 0&&c.maxNativeZoom<s?c.maxNativeZoom:s},_setView:function(s,c,d,p){var b=Math.round(c);this.options.maxZoom!==void 0&&b>this.options.maxZoom||this.options.minZoom!==void 0&&b<this.options.minZoom?b=void 0:b=this._clampZoom(b);var P=this.options.updateWhenZooming&&b!==this._tileZoom;(!p||P)&&(this._tileZoom=b,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),b!==void 0&&this._update(s),d||this._pruneTiles(),this._noPrune=!!d),this._setZoomTransforms(s,c)},_setZoomTransforms:function(s,c){for(var d in this._levels)this._setZoomTransform(this._levels[d],s,c)},_setZoomTransform:function(s,c,d){var p=this._map.getZoomScale(d,s.zoom),b=s.origin.multiplyBy(p).subtract(this._map._getNewPixelOrigin(c,d)).round();nt.any3d?Kt(s.el,b,p):vt(s.el,b)},_resetGrid:function(){var s=this._map,c=s.options.crs,d=this._tileSize=this.getTileSize(),p=this._tileZoom,b=this._map.getPixelWorldBounds(this._tileZoom);b&&(this._globalTileRange=this._pxBoundsToTileRange(b)),this._wrapX=c.wrapLng&&!this.options.noWrap&&[Math.floor(s.project([0,c.wrapLng[0]],p).x/d.x),Math.ceil(s.project([0,c.wrapLng[1]],p).x/d.y)],this._wrapY=c.wrapLat&&!this.options.noWrap&&[Math.floor(s.project([c.wrapLat[0],0],p).y/d.x),Math.ceil(s.project([c.wrapLat[1],0],p).y/d.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(s){var c=this._map,d=c._animatingZoom?Math.max(c._animateToZoom,c.getZoom()):c.getZoom(),p=c.getZoomScale(d,this._tileZoom),b=c.project(s,this._tileZoom).floor(),P=c.getSize().divideBy(p*2);return new Z(b.subtract(P),b.add(P))},_update:function(s){var c=this._map;if(c){var d=this._clampZoom(c.getZoom());if(s===void 0&&(s=c.getCenter()),this._tileZoom!==void 0){var p=this._getTiledPixelBounds(s),b=this._pxBoundsToTileRange(p),P=b.getCenter(),k=[],H=this.options.keepBuffer,B=new Z(b.getBottomLeft().subtract([H,-H]),b.getTopRight().add([H,-H]));if(!(isFinite(b.min.x)&&isFinite(b.min.y)&&isFinite(b.max.x)&&isFinite(b.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var X in this._tiles){var tt=this._tiles[X].coords;(tt.z!==this._tileZoom||!B.contains(new N(tt.x,tt.y)))&&(this._tiles[X].current=!1)}if(Math.abs(d-this._tileZoom)>1){this._setView(s,d);return}for(var at=b.min.y;at<=b.max.y;at++)for(var ct=b.min.x;ct<=b.max.x;ct++){var Tt=new N(ct,at);if(Tt.z=this._tileZoom,!!this._isValidTile(Tt)){var Et=this._tiles[this._tileCoordsToKey(Tt)];Et?Et.current=!0:k.push(Tt)}}if(k.sort(function(St,ue){return St.distanceTo(P)-ue.distanceTo(P)}),k.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Ot=document.createDocumentFragment();for(ct=0;ct<k.length;ct++)this._addTile(k[ct],Ot);this._level.el.appendChild(Ot)}}}},_isValidTile:function(s){var c=this._map.options.crs;if(!c.infinite){var d=this._globalTileRange;if(!c.wrapLng&&(s.x<d.min.x||s.x>d.max.x)||!c.wrapLat&&(s.y<d.min.y||s.y>d.max.y))return!1}if(!this.options.bounds)return!0;var p=this._tileCoordsToBounds(s);return rt(this.options.bounds).overlaps(p)},_keyToBounds:function(s){return this._tileCoordsToBounds(this._keyToTileCoords(s))},_tileCoordsToNwSe:function(s){var c=this._map,d=this.getTileSize(),p=s.scaleBy(d),b=p.add(d),P=c.unproject(p,s.z),k=c.unproject(b,s.z);return[P,k]},_tileCoordsToBounds:function(s){var c=this._tileCoordsToNwSe(s),d=new st(c[0],c[1]);return this.options.noWrap||(d=this._map.wrapLatLngBounds(d)),d},_tileCoordsToKey:function(s){return s.x+":"+s.y+":"+s.z},_keyToTileCoords:function(s){var c=s.split(":"),d=new N(+c[0],+c[1]);return d.z=+c[2],d},_removeTile:function(s){var c=this._tiles[s];c&&(gt(c.el),delete this._tiles[s],this.fire("tileunload",{tile:c.el,coords:this._keyToTileCoords(s)}))},_initTile:function(s){lt(s,"leaflet-tile");var c=this.getTileSize();s.style.width=c.x+"px",s.style.height=c.y+"px",s.onselectstart=g,s.onmousemove=g,nt.ielt9&&this.options.opacity<1&&At(s,this.options.opacity)},_addTile:function(s,c){var d=this._getTilePos(s),p=this._tileCoordsToKey(s),b=this.createTile(this._wrapCoords(s),o(this._tileReady,this,s));this._initTile(b),this.createTile.length<2&&O(o(this._tileReady,this,s,null,b)),vt(b,d),this._tiles[p]={el:b,coords:s,current:!0},c.appendChild(b),this.fire("tileloadstart",{tile:b,coords:s})},_tileReady:function(s,c,d){c&&this.fire("tileerror",{error:c,tile:d,coords:s});var p=this._tileCoordsToKey(s);d=this._tiles[p],d&&(d.loaded=+new Date,this._map._fadeAnimated?(At(d.el,0),A(this._fadeFrame),this._fadeFrame=O(this._updateOpacity,this)):(d.active=!0,this._pruneTiles()),c||(lt(d.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:d.el,coords:s})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),nt.ielt9||!this._map._fadeAnimated?O(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(s){return s.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(s){var c=new N(this._wrapX?m(s.x,this._wrapX):s.x,this._wrapY?m(s.y,this._wrapY):s.y);return c.z=s.z,c},_pxBoundsToTileRange:function(s){var c=this.getTileSize();return new Z(s.min.unscaleBy(c).floor(),s.max.unscaleBy(c).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var s in this._tiles)if(!this._tiles[s].loaded)return!1;return!0}});function Vr(s){return new Me(s)}var ce=Me.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(s,c){this._url=s,c=$(this,c),c.detectRetina&&nt.retina&&c.maxZoom>0?(c.tileSize=Math.floor(c.tileSize/2),c.zoomReverse?(c.zoomOffset--,c.minZoom=Math.min(c.maxZoom,c.minZoom+1)):(c.zoomOffset++,c.maxZoom=Math.max(c.minZoom,c.maxZoom-1)),c.minZoom=Math.max(0,c.minZoom)):c.zoomReverse?c.minZoom=Math.min(c.maxZoom,c.minZoom):c.maxZoom=Math.max(c.minZoom,c.maxZoom),typeof c.subdomains=="string"&&(c.subdomains=c.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(s,c){return this._url===s&&c===void 0&&(c=!0),this._url=s,c||this.redraw(),this},createTile:function(s,c){var d=document.createElement("img");return ot(d,"load",o(this._tileOnLoad,this,c,d)),ot(d,"error",o(this._tileOnError,this,c,d)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(d.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(d.referrerPolicy=this.options.referrerPolicy),d.alt="",d.src=this.getTileUrl(s),d},getTileUrl:function(s){var c={r:nt.retina?"@2x":"",s:this._getSubdomain(s),x:s.x,y:s.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var d=this._globalTileRange.max.y-s.y;this.options.tms&&(c.y=d),c["-y"]=d}return T(this._url,r(c,this.options))},_tileOnLoad:function(s,c){nt.ielt9?setTimeout(o(s,this,null,c),0):s(null,c)},_tileOnError:function(s,c,d){var p=this.options.errorTileUrl;p&&c.getAttribute("src")!==p&&(c.src=p),s(d,c)},_onTileRemove:function(s){s.tile.onload=null},_getZoomForUrl:function(){var s=this._tileZoom,c=this.options.maxZoom,d=this.options.zoomReverse,p=this.options.zoomOffset;return d&&(s=c-s),s+p},_getSubdomain:function(s){var c=Math.abs(s.x+s.y)%this.options.subdomains.length;return this.options.subdomains[c]},_abortLoading:function(){var s,c;for(s in this._tiles)if(this._tiles[s].coords.z!==this._tileZoom&&(c=this._tiles[s].el,c.onload=g,c.onerror=g,!c.complete)){c.src=V;var d=this._tiles[s].coords;gt(c),delete this._tiles[s],this.fire("tileabort",{tile:c,coords:d})}},_removeTile:function(s){var c=this._tiles[s];if(c)return c.el.setAttribute("src",V),Me.prototype._removeTile.call(this,s)},_tileReady:function(s,c,d){if(!(!this._map||d&&d.getAttribute("src")===V))return Me.prototype._tileReady.call(this,s,c,d)}});function _i(s,c){return new ce(s,c)}var bi=ce.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(s,c){this._url=s;var d=r({},this.defaultWmsParams);for(var p in c)p in this.options||(d[p]=c[p]);c=$(this,c);var b=c.detectRetina&&nt.retina?2:1,P=this.getTileSize();d.width=P.x*b,d.height=P.y*b,this.wmsParams=d},onAdd:function(s){this._crs=this.options.crs||s.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var c=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[c]=this._crs.code,ce.prototype.onAdd.call(this,s)},getTileUrl:function(s){var c=this._tileCoordsToNwSe(s),d=this._crs,p=et(d.project(c[0]),d.project(c[1])),b=p.min,P=p.max,k=(this._wmsVersion>=1.3&&this._crs===ci?[b.y,b.x,P.y,P.x]:[b.x,b.y,P.x,P.y]).join(","),H=ce.prototype.getTileUrl.call(this,s);return H+x(this.wmsParams,H,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+k},setParams:function(s,c){return r(this.wmsParams,s),c||this.redraw(),this}});function Br(s,c){return new bi(s,c)}ce.WMS=bi,_i.wms=Br;var Bt=Lt.extend({options:{padding:.1},initialize:function(s){$(this,s),u(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),lt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var s={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(s.zoomanim=this._onAnimZoom),s},_onAnimZoom:function(s){this._updateTransform(s.center,s.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(s,c){var d=this._map.getZoomScale(c,this._zoom),p=this._map.getSize().multiplyBy(.5+this.options.padding),b=this._map.project(this._center,c),P=p.multiplyBy(-d).add(b).subtract(this._map._getNewPixelOrigin(s,c));nt.any3d?Kt(this._container,P,d):vt(this._container,P)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var s in this._layers)this._layers[s]._reset()},_onZoomEnd:function(){for(var s in this._layers)this._layers[s]._project()},_updatePaths:function(){for(var s in this._layers)this._layers[s]._update()},_update:function(){var s=this.options.padding,c=this._map.getSize(),d=this._map.containerPointToLayerPoint(c.multiplyBy(-s)).round();this._bounds=new Z(d,d.add(c.multiplyBy(1+s*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),yi=Bt.extend({options:{tolerance:0},getEvents:function(){var s=Bt.prototype.getEvents.call(this);return s.viewprereset=this._onViewPreReset,s},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Bt.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var s=this._container=document.createElement("canvas");ot(s,"mousemove",this._onMouseMove,this),ot(s,"click dblclick mousedown mouseup contextmenu",this._onClick,this),ot(s,"mouseout",this._handleMouseOut,this),s._leaflet_disable_events=!0,this._ctx=s.getContext("2d")},_destroyContainer:function(){A(this._redrawRequest),delete this._ctx,gt(this._container),mt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var s;this._redrawBounds=null;for(var c in this._layers)s=this._layers[c],s._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Bt.prototype._update.call(this);var s=this._bounds,c=this._container,d=s.getSize(),p=nt.retina?2:1;vt(c,s.min),c.width=p*d.x,c.height=p*d.y,c.style.width=d.x+"px",c.style.height=d.y+"px",nt.retina&&this._ctx.scale(2,2),this._ctx.translate(-s.min.x,-s.min.y),this.fire("update")}},_reset:function(){Bt.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(s){this._updateDashArray(s),this._layers[u(s)]=s;var c=s._order={layer:s,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=c),this._drawLast=c,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(s){this._requestRedraw(s)},_removePath:function(s){var c=s._order,d=c.next,p=c.prev;d?d.prev=p:this._drawLast=p,p?p.next=d:this._drawFirst=d,delete s._order,delete this._layers[u(s)],this._requestRedraw(s)},_updatePath:function(s){this._extendRedrawBounds(s),s._project(),s._update(),this._requestRedraw(s)},_updateStyle:function(s){this._updateDashArray(s),this._requestRedraw(s)},_updateDashArray:function(s){if(typeof s.options.dashArray=="string"){var c=s.options.dashArray.split(/[, ]+/),d=[],p,b;for(b=0;b<c.length;b++){if(p=Number(c[b]),isNaN(p))return;d.push(p)}s.options._dashArray=d}else s.options._dashArray=s.options.dashArray},_requestRedraw:function(s){this._map&&(this._extendRedrawBounds(s),this._redrawRequest=this._redrawRequest||O(this._redraw,this))},_extendRedrawBounds:function(s){if(s._pxBounds){var c=(s.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new Z,this._redrawBounds.extend(s._pxBounds.min.subtract([c,c])),this._redrawBounds.extend(s._pxBounds.max.add([c,c]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var s=this._redrawBounds;if(s){var c=s.getSize();this._ctx.clearRect(s.min.x,s.min.y,c.x,c.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var s,c=this._redrawBounds;if(this._ctx.save(),c){var d=c.getSize();this._ctx.beginPath(),this._ctx.rect(c.min.x,c.min.y,d.x,d.y),this._ctx.clip()}this._drawing=!0;for(var p=this._drawFirst;p;p=p.next)s=p.layer,(!c||s._pxBounds&&s._pxBounds.intersects(c))&&s._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(s,c){if(this._drawing){var d,p,b,P,k=s._parts,H=k.length,B=this._ctx;if(H){for(B.beginPath(),d=0;d<H;d++){for(p=0,b=k[d].length;p<b;p++)P=k[d][p],B[p?"lineTo":"moveTo"](P.x,P.y);c&&B.closePath()}this._fillStroke(B,s)}}},_updateCircle:function(s){if(!(!this._drawing||s._empty())){var c=s._point,d=this._ctx,p=Math.max(Math.round(s._radius),1),b=(Math.max(Math.round(s._radiusY),1)||p)/p;b!==1&&(d.save(),d.scale(1,b)),d.beginPath(),d.arc(c.x,c.y/b,p,0,Math.PI*2,!1),b!==1&&d.restore(),this._fillStroke(d,s)}},_fillStroke:function(s,c){var d=c.options;d.fill&&(s.globalAlpha=d.fillOpacity,s.fillStyle=d.fillColor||d.color,s.fill(d.fillRule||"evenodd")),d.stroke&&d.weight!==0&&(s.setLineDash&&s.setLineDash(c.options&&c.options._dashArray||[]),s.globalAlpha=d.opacity,s.lineWidth=d.weight,s.strokeStyle=d.color,s.lineCap=d.lineCap,s.lineJoin=d.lineJoin,s.stroke())},_onClick:function(s){for(var c=this._map.mouseEventToLayerPoint(s),d,p,b=this._drawFirst;b;b=b.next)d=b.layer,d.options.interactive&&d._containsPoint(c)&&(!(s.type==="click"||s.type==="preclick")||!this._map._draggableMoved(d))&&(p=d);this._fireEvent(p?[p]:!1,s)},_onMouseMove:function(s){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var c=this._map.mouseEventToLayerPoint(s);this._handleMouseHover(s,c)}},_handleMouseOut:function(s){var c=this._hoveredLayer;c&&(bt(this._container,"leaflet-interactive"),this._fireEvent([c],s,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(s,c){if(!this._mouseHoverThrottled){for(var d,p,b=this._drawFirst;b;b=b.next)d=b.layer,d.options.interactive&&d._containsPoint(c)&&(p=d);p!==this._hoveredLayer&&(this._handleMouseOut(s),p&&(lt(this._container,"leaflet-interactive"),this._fireEvent([p],s,"mouseover"),this._hoveredLayer=p)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,s),this._mouseHoverThrottled=!0,setTimeout(o(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(s,c,d){this._map._fireDOMEvent(c,d||c.type,s)},_bringToFront:function(s){var c=s._order;if(c){var d=c.next,p=c.prev;if(d)d.prev=p;else return;p?p.next=d:d&&(this._drawFirst=d),c.prev=this._drawLast,this._drawLast.next=c,c.next=null,this._drawLast=c,this._requestRedraw(s)}},_bringToBack:function(s){var c=s._order;if(c){var d=c.next,p=c.prev;if(p)p.next=d;else return;d?d.prev=p:p&&(this._drawLast=p),c.prev=null,c.next=this._drawFirst,this._drawFirst.prev=c,this._drawFirst=c,this._requestRedraw(s)}}});function wi(s){return nt.canvas?new yi(s):null}var Ae=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(s){return document.createElement("<lvml:"+s+' class="lvml">')}}catch{}return function(s){return document.createElement("<"+s+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Yr={_initContainer:function(){this._container=dt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Bt.prototype._update.call(this),this.fire("update"))},_initPath:function(s){var c=s._container=Ae("shape");lt(c,"leaflet-vml-shape "+(this.options.className||"")),c.coordsize="1 1",s._path=Ae("path"),c.appendChild(s._path),this._updateStyle(s),this._layers[u(s)]=s},_addPath:function(s){var c=s._container;this._container.appendChild(c),s.options.interactive&&s.addInteractiveTarget(c)},_removePath:function(s){var c=s._container;gt(c),s.removeInteractiveTarget(c),delete this._layers[u(s)]},_updateStyle:function(s){var c=s._stroke,d=s._fill,p=s.options,b=s._container;b.stroked=!!p.stroke,b.filled=!!p.fill,p.stroke?(c||(c=s._stroke=Ae("stroke")),b.appendChild(c),c.weight=p.weight+"px",c.color=p.color,c.opacity=p.opacity,p.dashArray?c.dashStyle=R(p.dashArray)?p.dashArray.join(" "):p.dashArray.replace(/( *, *)/g," "):c.dashStyle="",c.endcap=p.lineCap.replace("butt","flat"),c.joinstyle=p.lineJoin):c&&(b.removeChild(c),s._stroke=null),p.fill?(d||(d=s._fill=Ae("fill")),b.appendChild(d),d.color=p.fillColor||p.color,d.opacity=p.fillOpacity):d&&(b.removeChild(d),s._fill=null)},_updateCircle:function(s){var c=s._point.round(),d=Math.round(s._radius),p=Math.round(s._radiusY||d);this._setPath(s,s._empty()?"M0 0":"AL "+c.x+","+c.y+" "+d+","+p+" 0,"+65535*360)},_setPath:function(s,c){s._path.v=c},_bringToFront:function(s){ie(s._container)},_bringToBack:function(s){re(s._container)}},Ke=nt.vml?Ae:ft,ke=Bt.extend({_initContainer:function(){this._container=Ke("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Ke("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){gt(this._container),mt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Bt.prototype._update.call(this);var s=this._bounds,c=s.getSize(),d=this._container;(!this._svgSize||!this._svgSize.equals(c))&&(this._svgSize=c,d.setAttribute("width",c.x),d.setAttribute("height",c.y)),vt(d,s.min),d.setAttribute("viewBox",[s.min.x,s.min.y,c.x,c.y].join(" ")),this.fire("update")}},_initPath:function(s){var c=s._path=Ke("path");s.options.className&&lt(c,s.options.className),s.options.interactive&&lt(c,"leaflet-interactive"),this._updateStyle(s),this._layers[u(s)]=s},_addPath:function(s){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(s._path),s.addInteractiveTarget(s._path)},_removePath:function(s){gt(s._path),s.removeInteractiveTarget(s._path),delete this._layers[u(s)]},_updatePath:function(s){s._project(),s._update()},_updateStyle:function(s){var c=s._path,d=s.options;c&&(d.stroke?(c.setAttribute("stroke",d.color),c.setAttribute("stroke-opacity",d.opacity),c.setAttribute("stroke-width",d.weight),c.setAttribute("stroke-linecap",d.lineCap),c.setAttribute("stroke-linejoin",d.lineJoin),d.dashArray?c.setAttribute("stroke-dasharray",d.dashArray):c.removeAttribute("stroke-dasharray"),d.dashOffset?c.setAttribute("stroke-dashoffset",d.dashOffset):c.removeAttribute("stroke-dashoffset")):c.setAttribute("stroke","none"),d.fill?(c.setAttribute("fill",d.fillColor||d.color),c.setAttribute("fill-opacity",d.fillOpacity),c.setAttribute("fill-rule",d.fillRule||"evenodd")):c.setAttribute("fill","none"))},_updatePoly:function(s,c){this._setPath(s,he(s._parts,c))},_updateCircle:function(s){var c=s._point,d=Math.max(Math.round(s._radius),1),p=Math.max(Math.round(s._radiusY),1)||d,b="a"+d+","+p+" 0 1,0 ",P=s._empty()?"M0 0":"M"+(c.x-d)+","+c.y+b+d*2+",0 "+b+-d*2+",0 ";this._setPath(s,P)},_setPath:function(s,c){s._path.setAttribute("d",c)},_bringToFront:function(s){ie(s._path)},_bringToBack:function(s){re(s._path)}});nt.vml&&ke.include(Yr);function Pi(s){return nt.svg||nt.vml?new ke(s):null}ut.include({getRenderer:function(s){var c=s.options.renderer||this._getPaneRenderer(s.options.pane)||this.options.renderer||this._renderer;return c||(c=this._renderer=this._createRenderer()),this.hasLayer(c)||this.addLayer(c),c},_getPaneRenderer:function(s){if(s==="overlayPane"||s===void 0)return!1;var c=this._paneRenderers[s];return c===void 0&&(c=this._createRenderer({pane:s}),this._paneRenderers[s]=c),c},_createRenderer:function(s){return this.options.preferCanvas&&wi(s)||Pi(s)}});var $i=oe.extend({initialize:function(s,c){oe.prototype.initialize.call(this,this._boundsToLatLngs(s),c)},setBounds:function(s){return this.setLatLngs(this._boundsToLatLngs(s))},_boundsToLatLngs:function(s){return s=rt(s),[s.getSouthWest(),s.getNorthWest(),s.getNorthEast(),s.getSouthEast()]}});function Ur(s,c){return new $i(s,c)}ke.create=Ke,ke.pointsToPath=he,Vt.geometryToLayer=je,Vt.coordsToLatLng=Tn,Vt.coordsToLatLngs=He,Vt.latLngToCoords=Sn,Vt.latLngsToCoords=Ve,Vt.getFeature=le,Vt.asFeature=Be,ut.mergeOptions({boxZoom:!0});var Ei=Rt.extend({initialize:function(s){this._map=s,this._container=s._container,this._pane=s._panes.overlayPane,this._resetStateTimeout=0,s.on("unload",this._destroy,this)},addHooks:function(){ot(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){mt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){gt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(s){if(!s.shiftKey||s.which!==1&&s.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),we(),cn(),this._startPoint=this._map.mouseEventToContainerPoint(s),ot(document,{contextmenu:Zt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(s){this._moved||(this._moved=!0,this._box=dt("div","leaflet-zoom-box",this._container),lt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(s);var c=new Z(this._point,this._startPoint),d=c.getSize();vt(this._box,c.min),this._box.style.width=d.x+"px",this._box.style.height=d.y+"px"},_finish:function(){this._moved&&(gt(this._box),bt(this._container,"leaflet-crosshair")),Pe(),un(),mt(document,{contextmenu:Zt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(s){if(!(s.which!==1&&s.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var c=new st(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(c).fire("boxzoomend",{boxZoomBounds:c})}},_onKeyDown:function(s){s.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});ut.addInitHook("addHandler","boxZoom",Ei),ut.mergeOptions({doubleClickZoom:!0});var xi=Rt.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(s){var c=this._map,d=c.getZoom(),p=c.options.zoomDelta,b=s.originalEvent.shiftKey?d-p:d+p;c.options.doubleClickZoom==="center"?c.setZoom(b):c.setZoomAround(s.containerPoint,b)}});ut.addInitHook("addHandler","doubleClickZoom",xi),ut.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Ti=Rt.extend({addHooks:function(){if(!this._draggable){var s=this._map;this._draggable=new Ut(s._mapPane,s._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),s.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),s.on("zoomend",this._onZoomEnd,this),s.whenReady(this._onZoomEnd,this))}lt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){bt(this._map._container,"leaflet-grab"),bt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var s=this._map;if(s._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var c=rt(this._map.options.maxBounds);this._offsetLimit=et(this._map.latLngToContainerPoint(c.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(c.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;s.fire("movestart").fire("dragstart"),s.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(s){if(this._map.options.inertia){var c=this._lastTime=+new Date,d=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(d),this._times.push(c),this._prunePositions(c)}this._map.fire("move",s).fire("drag",s)},_prunePositions:function(s){for(;this._positions.length>1&&s-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var s=this._map.getSize().divideBy(2),c=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=c.subtract(s).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(s,c){return s-(s-c)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var s=this._draggable._newPos.subtract(this._draggable._startPos),c=this._offsetLimit;s.x<c.min.x&&(s.x=this._viscousLimit(s.x,c.min.x)),s.y<c.min.y&&(s.y=this._viscousLimit(s.y,c.min.y)),s.x>c.max.x&&(s.x=this._viscousLimit(s.x,c.max.x)),s.y>c.max.y&&(s.y=this._viscousLimit(s.y,c.max.y)),this._draggable._newPos=this._draggable._startPos.add(s)}},_onPreDragWrap:function(){var s=this._worldWidth,c=Math.round(s/2),d=this._initialWorldOffset,p=this._draggable._newPos.x,b=(p-c+d)%s+c-d,P=(p+c+d)%s-c-d,k=Math.abs(b+d)<Math.abs(P+d)?b:P;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=k},_onDragEnd:function(s){var c=this._map,d=c.options,p=!d.inertia||s.noInertia||this._times.length<2;if(c.fire("dragend",s),p)c.fire("moveend");else{this._prunePositions(+new Date);var b=this._lastPos.subtract(this._positions[0]),P=(this._lastTime-this._times[0])/1e3,k=d.easeLinearity,H=b.multiplyBy(k/P),B=H.distanceTo([0,0]),X=Math.min(d.inertiaMaxSpeed,B),tt=H.multiplyBy(X/B),at=X/(d.inertiaDeceleration*k),ct=tt.multiplyBy(-at/2).round();!ct.x&&!ct.y?c.fire("moveend"):(ct=c._limitOffset(ct,c.options.maxBounds),O(function(){c.panBy(ct,{duration:at,easeLinearity:k,noMoveStart:!0,animate:!0})}))}}});ut.addInitHook("addHandler","dragging",Ti),ut.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Si=Rt.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(s){this._map=s,this._setPanDelta(s.options.keyboardPanDelta),this._setZoomDelta(s.options.zoomDelta)},addHooks:function(){var s=this._map._container;s.tabIndex<=0&&(s.tabIndex="0"),ot(s,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),mt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var s=document.body,c=document.documentElement,d=s.scrollTop||c.scrollTop,p=s.scrollLeft||c.scrollLeft;this._map._container.focus(),window.scrollTo(p,d)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(s){var c=this._panKeys={},d=this.keyCodes,p,b;for(p=0,b=d.left.length;p<b;p++)c[d.left[p]]=[-1*s,0];for(p=0,b=d.right.length;p<b;p++)c[d.right[p]]=[s,0];for(p=0,b=d.down.length;p<b;p++)c[d.down[p]]=[0,s];for(p=0,b=d.up.length;p<b;p++)c[d.up[p]]=[0,-1*s]},_setZoomDelta:function(s){var c=this._zoomKeys={},d=this.keyCodes,p,b;for(p=0,b=d.zoomIn.length;p<b;p++)c[d.zoomIn[p]]=s;for(p=0,b=d.zoomOut.length;p<b;p++)c[d.zoomOut[p]]=-s},_addHooks:function(){ot(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){mt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(s){if(!(s.altKey||s.ctrlKey||s.metaKey)){var c=s.keyCode,d=this._map,p;if(c in this._panKeys){if(!d._panAnim||!d._panAnim._inProgress)if(p=this._panKeys[c],s.shiftKey&&(p=q(p).multiplyBy(3)),d.options.maxBounds&&(p=d._limitOffset(q(p),d.options.maxBounds)),d.options.worldCopyJump){var b=d.wrapLatLng(d.unproject(d.project(d.getCenter()).add(p)));d.panTo(b)}else d.panBy(p)}else if(c in this._zoomKeys)d.setZoom(d.getZoom()+(s.shiftKey?3:1)*this._zoomKeys[c]);else if(c===27&&d._popup&&d._popup.options.closeOnEscapeKey)d.closePopup();else return;Zt(s)}}});ut.addInitHook("addHandler","keyboard",Si),ut.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Mi=Rt.extend({addHooks:function(){ot(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){mt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(s){var c=Xn(s),d=this._map.options.wheelDebounceTime;this._delta+=c,this._lastMousePos=this._map.mouseEventToContainerPoint(s),this._startTime||(this._startTime=+new Date);var p=Math.max(d-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),p),Zt(s)},_performZoom:function(){var s=this._map,c=s.getZoom(),d=this._map.options.zoomSnap||0;s._stop();var p=this._delta/(this._map.options.wheelPxPerZoomLevel*4),b=4*Math.log(2/(1+Math.exp(-Math.abs(p))))/Math.LN2,P=d?Math.ceil(b/d)*d:b,k=s._limitZoom(c+(this._delta>0?P:-P))-c;this._delta=0,this._startTime=null,k&&(s.options.scrollWheelZoom==="center"?s.setZoom(c+k):s.setZoomAround(this._lastMousePos,c+k))}});ut.addInitHook("addHandler","scrollWheelZoom",Mi);var Gr=600;ut.mergeOptions({tapHold:nt.touchNative&&nt.safari&&nt.mobile,tapTolerance:15});var Ai=Rt.extend({addHooks:function(){ot(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){mt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(s){if(clearTimeout(this._holdTimeout),s.touches.length===1){var c=s.touches[0];this._startPos=this._newPos=new N(c.clientX,c.clientY),this._holdTimeout=setTimeout(o(function(){this._cancel(),this._isTapValid()&&(ot(document,"touchend",xt),ot(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",c))},this),Gr),ot(document,"touchend touchcancel contextmenu",this._cancel,this),ot(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function s(){mt(document,"touchend",xt),mt(document,"touchend touchcancel",s)},_cancel:function(){clearTimeout(this._holdTimeout),mt(document,"touchend touchcancel contextmenu",this._cancel,this),mt(document,"touchmove",this._onMove,this)},_onMove:function(s){var c=s.touches[0];this._newPos=new N(c.clientX,c.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(s,c){var d=new MouseEvent(s,{bubbles:!0,cancelable:!0,view:window,screenX:c.screenX,screenY:c.screenY,clientX:c.clientX,clientY:c.clientY});d._simulated=!0,c.target.dispatchEvent(d)}});ut.addInitHook("addHandler","tapHold",Ai),ut.mergeOptions({touchZoom:nt.touch,bounceAtZoomLimits:!0});var ki=Rt.extend({addHooks:function(){lt(this._map._container,"leaflet-touch-zoom"),ot(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){bt(this._map._container,"leaflet-touch-zoom"),mt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(s){var c=this._map;if(!(!s.touches||s.touches.length!==2||c._animatingZoom||this._zooming)){var d=c.mouseEventToContainerPoint(s.touches[0]),p=c.mouseEventToContainerPoint(s.touches[1]);this._centerPoint=c.getSize()._divideBy(2),this._startLatLng=c.containerPointToLatLng(this._centerPoint),c.options.touchZoom!=="center"&&(this._pinchStartLatLng=c.containerPointToLatLng(d.add(p)._divideBy(2))),this._startDist=d.distanceTo(p),this._startZoom=c.getZoom(),this._moved=!1,this._zooming=!0,c._stop(),ot(document,"touchmove",this._onTouchMove,this),ot(document,"touchend touchcancel",this._onTouchEnd,this),xt(s)}},_onTouchMove:function(s){if(!(!s.touches||s.touches.length!==2||!this._zooming)){var c=this._map,d=c.mouseEventToContainerPoint(s.touches[0]),p=c.mouseEventToContainerPoint(s.touches[1]),b=d.distanceTo(p)/this._startDist;if(this._zoom=c.getScaleZoom(b,this._startZoom),!c.options.bounceAtZoomLimits&&(this._zoom<c.getMinZoom()&&b<1||this._zoom>c.getMaxZoom()&&b>1)&&(this._zoom=c._limitZoom(this._zoom)),c.options.touchZoom==="center"){if(this._center=this._startLatLng,b===1)return}else{var P=d._add(p)._divideBy(2)._subtract(this._centerPoint);if(b===1&&P.x===0&&P.y===0)return;this._center=c.unproject(c.project(this._pinchStartLatLng,this._zoom).subtract(P),this._zoom)}this._moved||(c._moveStart(!0,!1),this._moved=!0),A(this._animRequest);var k=o(c._move,c,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=O(k,this,!0),xt(s)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,A(this._animRequest),mt(document,"touchmove",this._onTouchMove,this),mt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});ut.addInitHook("addHandler","touchZoom",ki),ut.BoxZoom=Ei,ut.DoubleClickZoom=xi,ut.Drag=Ti,ut.Keyboard=Si,ut.ScrollWheelZoom=Mi,ut.TapHold=Ai,ut.TouchZoom=ki,n.Bounds=Z,n.Browser=nt,n.CRS=ht,n.Canvas=yi,n.Circle=xn,n.CircleMarker=We,n.Class=z,n.Control=Ct,n.DivIcon=gi,n.DivOverlay=zt,n.DomEvent=ur,n.DomUtil=lr,n.Draggable=Ut,n.Evented=I,n.FeatureGroup=jt,n.GeoJSON=Vt,n.GridLayer=Me,n.Handler=Rt,n.Icon=se,n.ImageOverlay=Ye,n.LatLng=Q,n.LatLngBounds=st,n.Layer=Lt,n.LayerGroup=ae,n.LineUtil=Er,n.Map=ut,n.Marker=ze,n.Mixin=br,n.Path=Gt,n.Point=N,n.PolyUtil=vr,n.Polygon=oe,n.Polyline=Ht,n.Popup=Ue,n.PosAnimation=Zn,n.Projection=xr,n.Rectangle=$i,n.Renderer=Bt,n.SVG=ke,n.SVGOverlay=pi,n.TileLayer=ce,n.Tooltip=Ge,n.Transformation=$t,n.Util=F,n.VideoOverlay=mi,n.bind=o,n.bounds=et,n.canvas=wi,n.circle=Lr,n.circleMarker=Cr,n.control=xe,n.divIcon=Hr,n.extend=r,n.featureGroup=Ar,n.geoJSON=hi,n.geoJson=Fr,n.gridLayer=Vr,n.icon=kr,n.imageOverlay=Ir,n.latLng=J,n.latLngBounds=rt,n.layerGroup=Mr,n.map=dr,n.marker=Or,n.point=q,n.polygon=Nr,n.polyline=Dr,n.popup=Wr,n.rectangle=Ur,n.setOptions=$,n.stamp=u,n.svg=Pi,n.svgOverlay=zr,n.tileLayer=_i,n.tooltip=jr,n.transformation=Mt,n.version=i,n.videoOverlay=Rr;var Kr=window.L;n.noConflict=function(){return window.L=Kr,this},window.L=n})})(leafletSrc,leafletSrc.exports);var leafletSrcExports=leafletSrc.exports;const L$1=getDefaultExportFromCjs(leafletSrcExports),leaflet="",DEFAULTS={showAllSuggestions:!1,suggestionsThreshold:1,maximumItems:0,autoselectFirst:!0,ignoreEnter:!1,updateOnSelect:!1,highlightTyped:!1,highlightClass:"",fullWidth:!1,fixed:!1,fuzzy:!1,startsWith:!1,fillIn:!1,preventBrowserAutocomplete:!1,itemClass:"",activeClasses:["bg-primary","text-white"],labelField:"label",valueField:"value",searchFields:["label"],queryParam:"query",items:[],source:null,hiddenInput:!1,hiddenValue:"",clearControl:"",datalist:"",server:"",serverMethod:"GET",serverParams:{},serverDataKey:"data",fetchOptions:{},liveServer:!1,noCache:!0,debounceTime:300,notFoundMessage:"",onRenderItem:(e,t,n)=>t,onSelectItem:(e,t)=>{},onServerResponse:(e,t)=>e.json(),onChange:(e,t)=>{},onBeforeFetch:e=>{},onAfterFetch:e=>{}},LOADING_CLASS="is-loading",ACTIVE_CLASS="is-active",SHOW_CLASS="show",NEXT="next",PREV="prev",INSTANCE_MAP=new WeakMap;let counter=0,activeCounter=0;function debounce(e,t=300){let n;return(...i)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(this,i)},t)}}function removeDiacritics(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function normalize(e){return e?removeDiacritics(e.toString()).toLowerCase():""}function fuzzyMatch(e,t){if(e.indexOf(t)>=0)return!0;let n=0;for(let i=0;i<t.length;i++){const r=t[i];if(r!=" "&&(n=e.indexOf(r,n)+1,n<=0))return!1}return!0}function insertAfter(e,t){return e.parentNode.insertBefore(t,e.nextSibling)}function decodeHtml(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value}function attrs(e,t){for(const[n,i]of Object.entries(t))e.setAttribute(n,i)}function zwijit(e){e.ariaLabel=e.innerText,e.innerHTML=e.innerText.split("").map(t=>t+"&zwj;").join("")}function nested(e,t="window"){return e.split(".").reduce((n,i)=>n[i],t)}class Autocomplete{constructor(t,n={}){Y(this,"handleEvent",t=>{["scroll","resize"].includes(t.type)?(this._timer&&window.cancelAnimationFrame(this._timer),this._timer=window.requestAnimationFrame(()=>{this[`on${t.type}`](t)})):this[`on${t.type}`](t)});if(!(t instanceof HTMLElement)){console.error("Invalid element",t);return}INSTANCE_MAP.set(t,this),counter++,activeCounter++,this._searchInput=t,this._configure(n),this._preventInput=!1,this._keyboardNavigation=!1,this._searchFunc=debounce(()=>{this._loadFromServer(!0)},this._config.debounceTime),this._configureSearchInput(),this._configureDropElement(),this._config.fixed&&(document.addEventListener("scroll",this,!0),window.addEventListener("resize",this));const i=this._getClearControl();i&&i.addEventListener("click",this),["focus","change","blur","input","keydown"].forEach(r=>{this._searchInput.addEventListener(r,this)}),["mousemove","mouseleave"].forEach(r=>{this._dropElement.addEventListener(r,this)}),this._fetchData()}static init(t="input.autocomplete",n={}){document.querySelectorAll(t).forEach(r=>{this.getOrCreateInstance(r,n)})}static getInstance(t){return INSTANCE_MAP.has(t)?INSTANCE_MAP.get(t):null}static getOrCreateInstance(t,n={}){return this.getInstance(t)||new this(t,n)}dispose(){activeCounter--,["focus","change","blur","input","keydown"].forEach(n=>{this._searchInput.removeEventListener(n,this)}),["mousemove","mouseleave"].forEach(n=>{this._dropElement.removeEventListener(n,this)});const t=this._getClearControl();t&&t.removeEventListener("click",this),this._config.fixed&&activeCounter<=0&&(document.removeEventListener("scroll",this,!0),window.removeEventListener("resize",this)),this._dropElement.parentElement.removeChild(this._dropElement),INSTANCE_MAP.delete(this._searchInput)}_getClearControl(){if(this._config.clearControl)return document.querySelector(this._config.clearControl)}_configure(t={}){this._config=Object.assign({},DEFAULTS);const n={...t,...this._searchInput.dataset},i=r=>["true","false","1","0",!0,!1].includes(r)&&!!JSON.parse(r);for(const[r,a]of Object.entries(DEFAULTS)){if(n[r]===void 0)continue;const o=n[r];switch(typeof a){case"number":this._config[r]=parseInt(o);break;case"boolean":this._config[r]=i(o);break;case"string":this._config[r]=o.toString();break;case"object":if(Array.isArray(a))if(typeof o=="string"){const l=o.includes("|")?"|":",";this._config[r]=o.split(l)}else this._config[r]=o;else this._config[r]=typeof o=="string"?JSON.parse(o):o;break;case"function":this._config[r]=typeof o=="string"?window[o]:o;break;default:this._config[r]=o;break}}}_configureSearchInput(){if(this._searchInput.autocomplete="off",this._searchInput.spellcheck=!1,attrs(this._searchInput,{"aria-autocomplete":"list","aria-haspopup":"menu","aria-expanded":"false",role:"combobox"}),this._searchInput.id&&this._config.preventBrowserAutocomplete){const t=document.querySelector(`[for="${this._searchInput.id}"]`);t&&zwijit(t)}this._hiddenInput=null,this._config.hiddenInput&&(this._hiddenInput=document.createElement("input"),this._hiddenInput.type="hidden",this._hiddenInput.value=this._config.hiddenValue,this._hiddenInput.name=this._searchInput.name,this._searchInput.name="_"+this._searchInput.name,insertAfter(this._searchInput,this._hiddenInput))}_configureDropElement(){this._dropElement=document.createElement("ul"),this._dropElement.id="ac-menu-"+counter,this._dropElement.classList.add("dropdown-menu","autocomplete-menu","p-0"),this._dropElement.style.maxHeight="280px",this._config.fullWidth||(this._dropElement.style.maxWidth="360px"),this._config.fixed&&(this._dropElement.style.position="fixed"),this._dropElement.style.overflowY="auto",this._dropElement.style.overscrollBehavior="contain",this._dropElement.style.textAlign="unset",insertAfter(this._searchInput,this._dropElement),this._searchInput.setAttribute("aria-controls",this._dropElement.id)}onclick(t){t.target.matches(this._config.clearControl)&&this.clear()}oninput(t){this._preventInput||(this._hiddenInput&&(this._hiddenInput.value=null),this.showOrSearch())}onchange(t){const n=this._searchInput.value,i=Object.values(this._items).find(r=>r.label===n);this._config.onChange(i,this)}onblur(t){if(t.relatedTarget&&t.relatedTarget.classList.contains("modal")){this._searchInput.focus();return}setTimeout(()=>{this.hideSuggestions()},100)}onfocus(t){this.showOrSearch()}onkeydown(t){switch(t.keyCode||t.key){case 13:case"Enter":if(this.isDropdownVisible()){const i=this.getSelection();i&&i.click(),(i||!this._config.ignoreEnter)&&t.preventDefault()}break;case 38:case"ArrowUp":t.preventDefault(),this._keyboardNavigation=!0,this._moveSelection(PREV);break;case 40:case"ArrowDown":t.preventDefault(),this._keyboardNavigation=!0,this.isDropdownVisible()?this._moveSelection(NEXT):this.showOrSearch(!1);break;case 27:case"Escape":this.isDropdownVisible()&&(this._searchInput.focus(),this.hideSuggestions());break}}onmousemove(t){this._keyboardNavigation=!1}onmouseleave(t){this.removeSelection()}onscroll(t){this._positionMenu()}onresize(t){this._positionMenu()}getConfig(t=null){return t!==null?this._config[t]:this._config}setConfig(t,n){this._config[t]=n}setData(t){this._items={},this._addItems(t)}enable(){this._searchInput.setAttribute("disabled","")}disable(){this._searchInput.removeAttribute("disabled")}isDisabled(){return this._searchInput.hasAttribute("disabled")||this._searchInput.disabled||this._searchInput.hasAttribute("readonly")}isDropdownVisible(){return this._dropElement.classList.contains(SHOW_CLASS)}clear(){this._searchInput.value="",this._hiddenInput&&(this._hiddenInput.value="")}getSelection(){return this._dropElement.querySelector("a."+ACTIVE_CLASS)}removeSelection(){const t=this.getSelection();t&&t.classList.remove(...this._activeClasses())}_activeClasses(){return[...this._config.activeClasses,ACTIVE_CLASS]}_isItemEnabled(t){if(t.style.display==="none")return!1;const n=t.firstElementChild;return n.tagName==="A"&&!n.classList.contains("disabled")}_moveSelection(t=NEXT,n=null){const i=this.getSelection();if(i){const r=t===NEXT?"nextSibling":"previousSibling";n=i.parentNode;do n=n[r];while(n&&!this._isItemEnabled(n));n?(i.classList.remove(...this._activeClasses()),t===PREV?n.parentNode.scrollTop=n.offsetTop-n.parentNode.offsetTop:n.offsetTop>n.parentNode.offsetHeight-n.offsetHeight&&(n.parentNode.scrollTop+=n.offsetHeight)):i&&(n=i.parentElement)}else{if(t===PREV)return n;if(!n)for(n=this._dropElement.firstChild;n&&!this._isItemEnabled(n);)n=n.nextSibling}if(n){const r=n.querySelector("a");r.classList.add(...this._activeClasses()),this._searchInput.setAttribute("aria-activedescendant",r.id),this._config.updateOnSelect&&(this._searchInput.value=r.dataset.label)}else this._searchInput.setAttribute("aria-activedescendant","");return n}_shouldShow(){return this.isDisabled()?!1:this._searchInput.value.length>=this._config.suggestionsThreshold}showOrSearch(t=!0){if(t&&!this._shouldShow()){this.hideSuggestions();return}this._config.liveServer?this._searchFunc():this._config.source?this._config.source(this._searchInput.value,n=>{this.setData(n),this._showSuggestions()}):this._showSuggestions()}_createGroup(t){const n=this._createLi(),i=document.createElement("span");return n.append(i),i.classList.add("dropdown-header","text-truncate"),i.innerHTML=t,n}_createItem(t,n){let i=n.label;if(this._config.highlightTyped){const o=normalize(i).indexOf(t);o!==-1&&(i=i.substring(0,o)+`<mark class="${this._config.highlightClass}">${i.substring(o,o+t.length)}</mark>`+i.substring(o+t.length,i.length))}i=this._config.onRenderItem(n,i,this);const r=this._createLi(),a=document.createElement("a");if(r.append(a),a.id=this._dropElement.id+"-"+this._dropElement.children.length,a.classList.add("dropdown-item","text-truncate"),this._config.itemClass&&a.classList.add(...this._config.itemClass.split(" ")),a.setAttribute("data-value",n.value),a.setAttribute("data-label",n.label),a.setAttribute("tabindex","-1"),a.setAttribute("role","menuitem"),a.setAttribute("href","#"),a.innerHTML=i,n.data)for(const[o,l]of Object.entries(n.data))a.dataset[o]=l;if(this._config.fillIn){const o=document.createElement("button");o.type="button",o.classList.add("btn","btn-link","border-0"),o.innerHTML=`<svg width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
- <path fill-rule="evenodd" d="M2 2.5a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1H3.707l10.147 10.146a.5.5 0 0 1-.708.708L3 3.707V8.5a.5.5 0 0 1-1 0z"/>
- </svg>`,r.append(o),r.classList.add("d-flex","justify-content-between"),o.addEventListener("click",l=>{this._searchInput.value=n.label,this._searchInput.focus()})}return a.addEventListener("mouseenter",o=>{this._keyboardNavigation||(this.removeSelection(),r.querySelector("a").classList.add(...this._activeClasses()))}),a.addEventListener("mousedown",o=>{o.preventDefault()}),a.addEventListener("click",o=>{o.preventDefault(),this._preventInput=!0,this._searchInput.value=decodeHtml(n.label),this._hiddenInput&&(this._hiddenInput.value=n.value),this._config.onSelectItem(n,this),this.hideSuggestions(),this._preventInput=!1}),r}_showSuggestions(){if(document.activeElement!=this._searchInput)return;const t=normalize(this._searchInput.value);this._dropElement.innerHTML="";const n=Object.keys(this._items);let i=0,r=null;const a=[];for(let o=0;o<n.length;o++){const l=n[o],u=this._items[l],h=this._config.showAllSuggestions||t.length===0;let m=t.length==0&&this._config.suggestionsThreshold===0;!h&&t.length>0&&this._config.searchFields.forEach(_=>{const v=normalize(u[_]);let w=!1;if(this._config.fuzzy)w=fuzzyMatch(v,t);else{const $=v.indexOf(t);w=this._config.startsWith?$===0:$>=0}w&&(m=!0)});const g=m||t.length===0;if(h||m){if(i++,u.group&&!a.includes(u.group)){const v=this._createGroup(u.group);this._dropElement.appendChild(v),a.push(u.group)}const _=this._createItem(t,u);if(!r&&g&&(r=_),this._dropElement.appendChild(_),this._config.maximumItems>0&&i>=this._config.maximumItems)break}}if(r&&this._config.autoselectFirst&&(this.removeSelection(),this._moveSelection(NEXT,r)),i===0)if(this._config.notFoundMessage){const o=this._createLi();o.innerHTML=`<span class="dropdown-item">${this._config.notFoundMessage}</span>`,this._dropElement.appendChild(o),this._showDropdown()}else this.hideSuggestions();else this._showDropdown()}_createLi(){const t=document.createElement("li");return t.setAttribute("role","presentation"),t}_showDropdown(){this._dropElement.classList.add(SHOW_CLASS),this._dropElement.setAttribute("role","menu"),attrs(this._searchInput,{"aria-expanded":"true"}),this._positionMenu()}toggleSuggestions(t=!0){this._dropElement.classList.contains(SHOW_CLASS)?this.hideSuggestions():this.showOrSearch(t)}hideSuggestions(){this._dropElement.classList.remove(SHOW_CLASS),attrs(this._searchInput,{"aria-expanded":"false"}),this.removeSelection()}getInput(){return this._searchInput}getDropMenu(){return this._dropElement}_positionMenu(){const t=window.getComputedStyle(this._searchInput),n=this._searchInput.getBoundingClientRect(),i=t.direction==="rtl",r=this._config.fullWidth,a=this._config.fixed;let o=null,l=null;a&&(o=n.x,l=n.y+n.height,i&&!r&&(o-=this._dropElement.offsetWidth-n.width)),this._dropElement.style.transform="unset",r&&(this._dropElement.style.width=this._searchInput.offsetWidth+"px"),o!==null&&(this._dropElement.style.left=o+"px"),l!==null&&(this._dropElement.style.top=l+"px");const u=this._dropElement.getBoundingClientRect(),h=window.innerHeight;if(u.y+u.height>h){const m=r?n.height+4:n.height;this._dropElement.style.transform="translateY(calc(-100.1% - "+m+"px))"}}_fetchData(){this._items={},this._addItems(this._config.items);const t=this._config.datalist;if(t){const n=document.querySelector(`#${t}`);if(n){const i=Array.from(n.children).map(r=>{const a=r.getAttribute("value")??r.innerHTML.toLowerCase(),o=r.innerHTML;return{value:a,label:o}});this._addItems(i)}else console.error(`Datalist not found ${t}`)}this._setHiddenVal(),this._config.server&&!this._config.liveServer&&this._loadFromServer()}_setHiddenVal(){if(this._config.hiddenInput&&!this._config.hiddenValue)for(const[t,n]of Object.entries(this._items))n.label==this._searchInput.value&&(this._hiddenInput.value=t)}_addItems(t){const n=Object.keys(t);for(let i=0;i<n.length;i++){const r=n[i],a=t[r];if(a.group&&a.items){a.items.forEach(u=>u.group=a.group),this._addItems(a.items);continue}const o=typeof a=="string"?a:a.label,l=typeof a!="object"?{}:a;l.label=a[this._config.labelField]??o,l.value=a[this._config.valueField]??r,l.label&&(this._items[l.value]=l)}}_loadFromServer(t=!1){this._abortController&&this._abortController.abort(),this._abortController=new AbortController;let n=this._searchInput.dataset.serverParams||{};typeof n=="string"&&(n=JSON.parse(n));const i=Object.assign({},this._config.serverParams,n);if(i[this._config.queryParam]=this._searchInput.value,this._config.noCache&&(i.t=Date.now()),i.related){const l=document.getElementById(i.related);if(l){i.related=l.value;const u=l.getAttribute("name");u&&(i[u]=l.value)}}const r=new URLSearchParams(i);let a=this._config.server,o=Object.assign(this._config.fetchOptions,{method:this._config.serverMethod||"GET",signal:this._abortController.signal});o.method==="POST"?o.body=r:a+="?"+r.toString(),this._searchInput.classList.add(LOADING_CLASS),this._config.onBeforeFetch(this),fetch(a,o).then(l=>this._config.onServerResponse(l,this)).then(l=>{const u=nested(this._config.serverDataKey,l)||l;this.setData(u),this._setHiddenVal(),this._abortController=null,t&&this._showSuggestions()}).catch(l=>{l.name==="AbortError"||this._abortController.signal.aborted||console.error(l)}).finally(l=>{this._searchInput.classList.remove(LOADING_CLASS),this._config.onAfterFetch(this)})}}export{nn as $,ArcElement as A,BarController as B,Color as C,module_default as D,bg as E,Flow as F,cs as G,da as H,I18n as I,de as J,el as K,LineController as L,enGB as M,enUS as N,es as O,PieController as P,ca as Q,fi as R,SankeyController as S,TimeScale as T,fr as U,hu as V,id as W,it as X,ja as Y,ko as Z,nb as _,Chart as a,nl as a0,pl as a1,ptBR as a2,pt as a3,ro as a4,ru as a5,sk as a6,sl as a7,sv as a8,tr as a9,uk as aa,vi as ab,zhTW as ac,zhCN as ad,addMonths as ae,subMonths as af,LineElement as b,BarElement as c,LinearScale as d,CategoryScale as e,format as f,PointElement as g,plugin_tooltip as h,index as i,plugin_legend as j,Autocomplete as k,L$1 as l,axios$1 as m,endOfDay as n,startOfQuarter as o,plugin_colors as p,endOfQuarter as q,startOfMonth as r,startOfDay as s,endOfMonth as t,startOfWeek as u,endOfWeek as v,startOfYear as w,subDays as x,store$1 as y,observePlugin$1 as z};
+ */(function(e,t){(function(n,i){i(t)})(commonjsGlobal,function(n){var i="1.9.4";function r(s){var c,h,p,b;for(h=1,p=arguments.length;h<p;h++){b=arguments[h];for(c in b)s[c]=b[c]}return s}var a=Object.create||function(){function s(){}return function(c){return s.prototype=c,new s}}();function o(s,c){var h=Array.prototype.slice;if(s.bind)return s.bind.apply(s,h.call(arguments,1));var p=h.call(arguments,2);return function(){return s.apply(c,p.length?p.concat(h.call(arguments)):arguments)}}var l=0;function u(s){return"_leaflet_id"in s||(s._leaflet_id=++l),s._leaflet_id}function d(s,c,h){var p,b,P,k;return k=function(){p=!1,b&&(P.apply(h,b),b=!1)},P=function(){p?b=arguments:(s.apply(h,arguments),setTimeout(k,c),p=!0)},P}function m(s,c,h){var p=c[1],b=c[0],P=p-b;return s===p&&h?s:((s-b)%P+P)%P+b}function g(){return!1}function _(s,c){if(c===!1)return s;var h=Math.pow(10,c===void 0?6:c);return Math.round(s*h)/h}function v(s){return s.trim?s.trim():s.replace(/^\s+|\s+$/g,"")}function w(s){return v(s).split(/\s+/)}function E(s,c){Object.prototype.hasOwnProperty.call(s,"options")||(s.options=s.options?a(s.options):{});for(var h in c)s.options[h]=c[h];return s.options}function x(s,c,h){var p=[];for(var b in s)p.push(encodeURIComponent(h?b.toUpperCase():b)+"="+encodeURIComponent(s[b]));return(!c||c.indexOf("?")===-1?"?":"&")+p.join("&")}var M=/\{ *([\w_ -]+) *\}/g;function S(s,c){return s.replace(M,function(h,p){var b=c[p];if(b===void 0)throw new Error("No value provided for variable "+h);return typeof b=="function"&&(b=b(c)),b})}var R=Array.isArray||function(s){return Object.prototype.toString.call(s)==="[object Array]"};function W(s,c){for(var h=0;h<s.length;h++)if(s[h]===c)return h;return-1}var V="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function q(s){return window["webkit"+s]||window["moz"+s]||window["ms"+s]}var U=0;function y(s){var c=+new Date,h=Math.max(0,16-(c-U));return U=c+h,window.setTimeout(s,h)}var $=window.requestAnimationFrame||q("RequestAnimationFrame")||y,T=window.cancelAnimationFrame||q("CancelAnimationFrame")||q("CancelRequestAnimationFrame")||function(s){window.clearTimeout(s)};function O(s,c,h){if(h&&$===y)s.call(c);else return $.call(window,o(s,c))}function A(s){s&&T.call(window,s)}var I={__proto__:null,extend:r,create:a,bind:o,get lastId(){return l},stamp:u,throttle:d,wrapNum:m,falseFn:g,formatNum:_,trim:v,splitWords:w,setOptions:E,getParamString:x,template:S,isArray:R,indexOf:W,emptyImageUrl:V,requestFn:$,cancelFn:T,requestAnimFrame:O,cancelAnimFrame:A};function z(){}z.extend=function(s){var c=function(){E(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},h=c.__super__=this.prototype,p=a(h);p.constructor=c,c.prototype=p;for(var b in this)Object.prototype.hasOwnProperty.call(this,b)&&b!=="prototype"&&b!=="__super__"&&(c[b]=this[b]);return s.statics&&r(c,s.statics),s.includes&&(C(s.includes),r.apply(null,[p].concat(s.includes))),r(p,s),delete p.statics,delete p.includes,p.options&&(p.options=h.options?a(h.options):{},r(p.options,s.options)),p._initHooks=[],p.callInitHooks=function(){if(!this._initHooksCalled){h.callInitHooks&&h.callInitHooks.call(this),this._initHooksCalled=!0;for(var P=0,k=p._initHooks.length;P<k;P++)p._initHooks[P].call(this)}},c},z.include=function(s){var c=this.prototype.options;return r(this.prototype,s),s.options&&(this.prototype.options=c,this.mergeOptions(s.options)),this},z.mergeOptions=function(s){return r(this.prototype.options,s),this},z.addInitHook=function(s){var c=Array.prototype.slice.call(arguments,1),h=typeof s=="function"?s:function(){this[s].apply(this,c)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(h),this};function C(s){if(!(typeof L>"u"||!L||!L.Mixin)){s=R(s)?s:[s];for(var c=0;c<s.length;c++)s[c]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var D={on:function(s,c,h){if(typeof s=="object")for(var p in s)this._on(p,s[p],c);else{s=w(s);for(var b=0,P=s.length;b<P;b++)this._on(s[b],c,h)}return this},off:function(s,c,h){if(!arguments.length)delete this._events;else if(typeof s=="object")for(var p in s)this._off(p,s[p],c);else{s=w(s);for(var b=arguments.length===1,P=0,k=s.length;P<k;P++)b?this._off(s[P]):this._off(s[P],c,h)}return this},_on:function(s,c,h,p){if(typeof c!="function"){console.warn("wrong listener type: "+typeof c);return}if(this._listens(s,c,h)===!1){h===this&&(h=void 0);var b={fn:c,ctx:h};p&&(b.once=!0),this._events=this._events||{},this._events[s]=this._events[s]||[],this._events[s].push(b)}},_off:function(s,c,h){var p,b,P;if(this._events&&(p=this._events[s],!!p)){if(arguments.length===1){if(this._firingCount)for(b=0,P=p.length;b<P;b++)p[b].fn=g;delete this._events[s];return}if(typeof c!="function"){console.warn("wrong listener type: "+typeof c);return}var k=this._listens(s,c,h);if(k!==!1){var H=p[k];this._firingCount&&(H.fn=g,this._events[s]=p=p.slice()),p.splice(k,1)}}},fire:function(s,c,h){if(!this.listens(s,h))return this;var p=r({},c,{type:s,target:this,sourceTarget:c&&c.sourceTarget||this});if(this._events){var b=this._events[s];if(b){this._firingCount=this._firingCount+1||1;for(var P=0,k=b.length;P<k;P++){var H=b[P],B=H.fn;H.once&&this.off(s,B,H.ctx),B.call(H.ctx||this,p)}this._firingCount--}}return h&&this._propagateEvent(p),this},listens:function(s,c,h,p){typeof s!="string"&&console.warn('"string" type argument expected');var b=c;typeof c!="function"&&(p=!!c,b=void 0,h=void 0);var P=this._events&&this._events[s];if(P&&P.length&&this._listens(s,b,h)!==!1)return!0;if(p){for(var k in this._eventParents)if(this._eventParents[k].listens(s,c,h,p))return!0}return!1},_listens:function(s,c,h){if(!this._events)return!1;var p=this._events[s]||[];if(!c)return!!p.length;h===this&&(h=void 0);for(var b=0,P=p.length;b<P;b++)if(p[b].fn===c&&p[b].ctx===h)return b;return!1},once:function(s,c,h){if(typeof s=="object")for(var p in s)this._on(p,s[p],c,!0);else{s=w(s);for(var b=0,P=s.length;b<P;b++)this._on(s[b],c,h,!0)}return this},addEventParent:function(s){return this._eventParents=this._eventParents||{},this._eventParents[u(s)]=s,this},removeEventParent:function(s){return this._eventParents&&delete this._eventParents[u(s)],this},_propagateEvent:function(s){for(var c in this._eventParents)this._eventParents[c].fire(s.type,r({layer:s.target,propagatedFrom:s.target},s),!0)}};D.addEventListener=D.on,D.removeEventListener=D.clearAllEventListeners=D.off,D.addOneTimeEventListener=D.once,D.fireEvent=D.fire,D.hasEventListeners=D.listens;var F=z.extend(D);function N(s,c,h){this.x=h?Math.round(s):s,this.y=h?Math.round(c):c}var G=Math.trunc||function(s){return s>0?Math.floor(s):Math.ceil(s)};N.prototype={clone:function(){return new N(this.x,this.y)},add:function(s){return this.clone()._add(K(s))},_add:function(s){return this.x+=s.x,this.y+=s.y,this},subtract:function(s){return this.clone()._subtract(K(s))},_subtract:function(s){return this.x-=s.x,this.y-=s.y,this},divideBy:function(s){return this.clone()._divideBy(s)},_divideBy:function(s){return this.x/=s,this.y/=s,this},multiplyBy:function(s){return this.clone()._multiplyBy(s)},_multiplyBy:function(s){return this.x*=s,this.y*=s,this},scaleBy:function(s){return new N(this.x*s.x,this.y*s.y)},unscaleBy:function(s){return new N(this.x/s.x,this.y/s.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=G(this.x),this.y=G(this.y),this},distanceTo:function(s){s=K(s);var c=s.x-this.x,h=s.y-this.y;return Math.sqrt(c*c+h*h)},equals:function(s){return s=K(s),s.x===this.x&&s.y===this.y},contains:function(s){return s=K(s),Math.abs(s.x)<=Math.abs(this.x)&&Math.abs(s.y)<=Math.abs(this.y)},toString:function(){return"Point("+_(this.x)+", "+_(this.y)+")"}};function K(s,c,h){return s instanceof N?s:R(s)?new N(s[0],s[1]):s==null?s:typeof s=="object"&&"x"in s&&"y"in s?new N(s.x,s.y):new N(s,c,h)}function Z(s,c){if(s)for(var h=c?[s,c]:s,p=0,b=h.length;p<b;p++)this.extend(h[p])}Z.prototype={extend:function(s){var c,h;if(!s)return this;if(s instanceof N||typeof s[0]=="number"||"x"in s)c=h=K(s);else if(s=et(s),c=s.min,h=s.max,!c||!h)return this;return!this.min&&!this.max?(this.min=c.clone(),this.max=h.clone()):(this.min.x=Math.min(c.x,this.min.x),this.max.x=Math.max(h.x,this.max.x),this.min.y=Math.min(c.y,this.min.y),this.max.y=Math.max(h.y,this.max.y)),this},getCenter:function(s){return K((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,s)},getBottomLeft:function(){return K(this.min.x,this.max.y)},getTopRight:function(){return K(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(s){var c,h;return typeof s[0]=="number"||s instanceof N?s=K(s):s=et(s),s instanceof Z?(c=s.min,h=s.max):c=h=s,c.x>=this.min.x&&h.x<=this.max.x&&c.y>=this.min.y&&h.y<=this.max.y},intersects:function(s){s=et(s);var c=this.min,h=this.max,p=s.min,b=s.max,P=b.x>=c.x&&p.x<=h.x,k=b.y>=c.y&&p.y<=h.y;return P&&k},overlaps:function(s){s=et(s);var c=this.min,h=this.max,p=s.min,b=s.max,P=b.x>c.x&&p.x<h.x,k=b.y>c.y&&p.y<h.y;return P&&k},isValid:function(){return!!(this.min&&this.max)},pad:function(s){var c=this.min,h=this.max,p=Math.abs(c.x-h.x)*s,b=Math.abs(c.y-h.y)*s;return et(K(c.x-p,c.y-b),K(h.x+p,h.y+b))},equals:function(s){return s?(s=et(s),this.min.equals(s.getTopLeft())&&this.max.equals(s.getBottomRight())):!1}};function et(s,c){return!s||s instanceof Z?s:new Z(s,c)}function st(s,c){if(s)for(var h=c?[s,c]:s,p=0,b=h.length;p<b;p++)this.extend(h[p])}st.prototype={extend:function(s){var c=this._southWest,h=this._northEast,p,b;if(s instanceof Q)p=s,b=s;else if(s instanceof st){if(p=s._southWest,b=s._northEast,!p||!b)return this}else return s?this.extend(J(s)||rt(s)):this;return!c&&!h?(this._southWest=new Q(p.lat,p.lng),this._northEast=new Q(b.lat,b.lng)):(c.lat=Math.min(p.lat,c.lat),c.lng=Math.min(p.lng,c.lng),h.lat=Math.max(b.lat,h.lat),h.lng=Math.max(b.lng,h.lng)),this},pad:function(s){var c=this._southWest,h=this._northEast,p=Math.abs(c.lat-h.lat)*s,b=Math.abs(c.lng-h.lng)*s;return new st(new Q(c.lat-p,c.lng-b),new Q(h.lat+p,h.lng+b))},getCenter:function(){return new Q((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new Q(this.getNorth(),this.getWest())},getSouthEast:function(){return new Q(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(s){typeof s[0]=="number"||s instanceof Q||"lat"in s?s=J(s):s=rt(s);var c=this._southWest,h=this._northEast,p,b;return s instanceof st?(p=s.getSouthWest(),b=s.getNorthEast()):p=b=s,p.lat>=c.lat&&b.lat<=h.lat&&p.lng>=c.lng&&b.lng<=h.lng},intersects:function(s){s=rt(s);var c=this._southWest,h=this._northEast,p=s.getSouthWest(),b=s.getNorthEast(),P=b.lat>=c.lat&&p.lat<=h.lat,k=b.lng>=c.lng&&p.lng<=h.lng;return P&&k},overlaps:function(s){s=rt(s);var c=this._southWest,h=this._northEast,p=s.getSouthWest(),b=s.getNorthEast(),P=b.lat>c.lat&&p.lat<h.lat,k=b.lng>c.lng&&p.lng<h.lng;return P&&k},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(s,c){return s?(s=rt(s),this._southWest.equals(s.getSouthWest(),c)&&this._northEast.equals(s.getNorthEast(),c)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function rt(s,c){return s instanceof st?s:new st(s,c)}function Q(s,c,h){if(isNaN(s)||isNaN(c))throw new Error("Invalid LatLng object: ("+s+", "+c+")");this.lat=+s,this.lng=+c,h!==void 0&&(this.alt=+h)}Q.prototype={equals:function(s,c){if(!s)return!1;s=J(s);var h=Math.max(Math.abs(this.lat-s.lat),Math.abs(this.lng-s.lng));return h<=(c===void 0?1e-9:c)},toString:function(s){return"LatLng("+_(this.lat,s)+", "+_(this.lng,s)+")"},distanceTo:function(s){return _t.distance(this,J(s))},wrap:function(){return _t.wrapLatLng(this)},toBounds:function(s){var c=180*s/40075017,h=c/Math.cos(Math.PI/180*this.lat);return rt([this.lat-c,this.lng-h],[this.lat+c,this.lng+h])},clone:function(){return new Q(this.lat,this.lng,this.alt)}};function J(s,c,h){return s instanceof Q?s:R(s)&&typeof s[0]!="object"?s.length===3?new Q(s[0],s[1],s[2]):s.length===2?new Q(s[0],s[1]):null:s==null?s:typeof s=="object"&&"lat"in s?new Q(s.lat,"lng"in s?s.lng:s.lon,s.alt):c===void 0?null:new Q(s,c,h)}var ht={latLngToPoint:function(s,c){var h=this.projection.project(s),p=this.scale(c);return this.transformation._transform(h,p)},pointToLatLng:function(s,c){var h=this.scale(c),p=this.transformation.untransform(s,h);return this.projection.unproject(p)},project:function(s){return this.projection.project(s)},unproject:function(s){return this.projection.unproject(s)},scale:function(s){return 256*Math.pow(2,s)},zoom:function(s){return Math.log(s/256)/Math.LN2},getProjectedBounds:function(s){if(this.infinite)return null;var c=this.projection.bounds,h=this.scale(s),p=this.transformation.transform(c.min,h),b=this.transformation.transform(c.max,h);return new Z(p,b)},infinite:!1,wrapLatLng:function(s){var c=this.wrapLng?m(s.lng,this.wrapLng,!0):s.lng,h=this.wrapLat?m(s.lat,this.wrapLat,!0):s.lat,p=s.alt;return new Q(h,c,p)},wrapLatLngBounds:function(s){var c=s.getCenter(),h=this.wrapLatLng(c),p=c.lat-h.lat,b=c.lng-h.lng;if(p===0&&b===0)return s;var P=s.getSouthWest(),k=s.getNorthEast(),H=new Q(P.lat-p,P.lng-b),B=new Q(k.lat-p,k.lng-b);return new st(H,B)}},_t=r({},ht,{wrapLng:[-180,180],R:6371e3,distance:function(s,c){var h=Math.PI/180,p=s.lat*h,b=c.lat*h,P=Math.sin((c.lat-s.lat)*h/2),k=Math.sin((c.lng-s.lng)*h/2),H=P*P+Math.cos(p)*Math.cos(b)*k*k,B=2*Math.atan2(Math.sqrt(H),Math.sqrt(1-H));return this.R*B}}),Dt=6378137,Wt={R:Dt,MAX_LATITUDE:85.0511287798,project:function(s){var c=Math.PI/180,h=this.MAX_LATITUDE,p=Math.max(Math.min(h,s.lat),-h),b=Math.sin(p*c);return new N(this.R*s.lng*c,this.R*Math.log((1+b)/(1-b))/2)},unproject:function(s){var c=180/Math.PI;return new Q((2*Math.atan(Math.exp(s.y/this.R))-Math.PI/2)*c,s.x*c/this.R)},bounds:function(){var s=Dt*Math.PI;return new Z([-s,-s],[s,s])}()};function Pt(s,c,h,p){if(R(s)){this._a=s[0],this._b=s[1],this._c=s[2],this._d=s[3];return}this._a=s,this._b=c,this._c=h,this._d=p}Pt.prototype={transform:function(s,c){return this._transform(s.clone(),c)},_transform:function(s,c){return c=c||1,s.x=c*(this._a*s.x+this._b),s.y=c*(this._c*s.y+this._d),s},untransform:function(s,c){return c=c||1,new N((s.x/c-this._b)/this._a,(s.y/c-this._d)/this._c)}};function Mt(s,c,h,p){return new Pt(s,c,h,p)}var wt=r({},_t,{code:"EPSG:3857",projection:Wt,transformation:function(){var s=.5/(Math.PI*Wt.R);return Mt(s,.5,-s,.5)}()}),Et=r({},wt,{code:"EPSG:900913"});function ft(s){return document.createElementNS("http://www.w3.org/2000/svg",s)}function fe(s,c){var h="",p,b,P,k,H,B;for(p=0,P=s.length;p<P;p++){for(H=s[p],b=0,k=H.length;b<k;b++)B=H[b],h+=(b?"L":"M")+B.x+" "+B.y;h+=c?nt.svg?"z":"x":""}return h||"M0 0"}var Jt=document.documentElement.style,te="ActiveXObject"in window,Qe=te&&!document.addEventListener,Nt="msLaunchUri"in navigator&&!("documentMode"in document),Yt=It("webkit"),me=It("android"),pe=It("android 2")||It("android 3"),ge=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Ce=me&&It("Google")&&ge<537&&!("AudioNode"in window),ee=!!window.opera,_e=!Nt&&It("chrome"),be=It("gecko")&&!Yt&&!ee&&!te,Ii=!_e&&It("safari"),On=It("phantom"),Cn="OTransition"in Jt,Fi=navigator.platform.indexOf("Win")===0,Ln=te&&"transition"in Jt,Je="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!pe,Dn="MozPerspective"in Jt,Ri=!window.L_DISABLE_3D&&(Ln||Je||Dn)&&!Cn&&!On,ve=typeof orientation<"u"||It("mobile"),zi=ve&&Yt,Wi=ve&&Je,Nn=!window.PointerEvent&&window.MSPointerEvent,In=!!(window.PointerEvent||Nn),Fn="ontouchstart"in window||!!window.TouchEvent,ji=!window.L_NO_TOUCH&&(Fn||In),Hi=ve&&ee,Vi=ve&&be,Bi=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Yi=function(){var s=!1;try{var c=Object.defineProperty({},"passive",{get:function(){s=!0}});window.addEventListener("testPassiveEventSupport",g,c),window.removeEventListener("testPassiveEventSupport",g,c)}catch{}return s}(),Ui=function(){return!!document.createElement("canvas").getContext}(),tn=!!(document.createElementNS&&ft("svg").createSVGRect),Gi=!!tn&&function(){var s=document.createElement("div");return s.innerHTML="<svg/>",(s.firstChild&&s.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),qi=!tn&&function(){try{var s=document.createElement("div");s.innerHTML='<v:shape adj="1"/>';var c=s.firstChild;return c.style.behavior="url(#default#VML)",c&&typeof c.adj=="object"}catch{return!1}}(),Ki=navigator.platform.indexOf("Mac")===0,Xi=navigator.platform.indexOf("Linux")===0;function It(s){return navigator.userAgent.toLowerCase().indexOf(s)>=0}var nt={ie:te,ielt9:Qe,edge:Nt,webkit:Yt,android:me,android23:pe,androidStock:Ce,opera:ee,chrome:_e,gecko:be,safari:Ii,phantom:On,opera12:Cn,win:Fi,ie3d:Ln,webkit3d:Je,gecko3d:Dn,any3d:Ri,mobile:ve,mobileWebkit:zi,mobileWebkit3d:Wi,msPointer:Nn,pointer:In,touch:ji,touchNative:Fn,mobileOpera:Hi,mobileGecko:Vi,retina:Bi,passiveEvents:Yi,canvas:Ui,svg:tn,vml:qi,inlineSvg:Gi,mac:Ki,linux:Xi},Rn=nt.msPointer?"MSPointerDown":"pointerdown",zn=nt.msPointer?"MSPointerMove":"pointermove",Wn=nt.msPointer?"MSPointerUp":"pointerup",jn=nt.msPointer?"MSPointerCancel":"pointercancel",rn={touchstart:Rn,touchmove:zn,touchend:Wn,touchcancel:jn},Hn={touchstart:ir,touchmove:Le,touchend:Le,touchcancel:Le},ne={},Vn=!1;function Zi(s,c,h){return c==="touchstart"&&nr(),Hn[c]?(h=Hn[c].bind(this,h),s.addEventListener(rn[c],h,!1),h):(console.warn("wrong event specified:",c),g)}function Qi(s,c,h){if(!rn[c]){console.warn("wrong event specified:",c);return}s.removeEventListener(rn[c],h,!1)}function Ji(s){ne[s.pointerId]=s}function er(s){ne[s.pointerId]&&(ne[s.pointerId]=s)}function Bn(s){delete ne[s.pointerId]}function nr(){Vn||(document.addEventListener(Rn,Ji,!0),document.addEventListener(zn,er,!0),document.addEventListener(Wn,Bn,!0),document.addEventListener(jn,Bn,!0),Vn=!0)}function Le(s,c){if(c.pointerType!==(c.MSPOINTER_TYPE_MOUSE||"mouse")){c.touches=[];for(var h in ne)c.touches.push(ne[h]);c.changedTouches=[c],s(c)}}function ir(s,c){c.MSPOINTER_TYPE_TOUCH&&c.pointerType===c.MSPOINTER_TYPE_TOUCH&&xt(c),Le(s,c)}function rr(s){var c={},h,p;for(p in s)h=s[p],c[p]=h&&h.bind?h.bind(s):h;return s=c,c.type="dblclick",c.detail=2,c.isTrusted=!1,c._simulated=!0,c}var ar=200;function sr(s,c){s.addEventListener("dblclick",c);var h=0,p;function b(P){if(P.detail!==1){p=P.detail;return}if(!(P.pointerType==="mouse"||P.sourceCapabilities&&!P.sourceCapabilities.firesTouchEvents)){var k=Kn(P);if(!(k.some(function(B){return B instanceof HTMLLabelElement&&B.attributes.for})&&!k.some(function(B){return B instanceof HTMLInputElement||B instanceof HTMLSelectElement}))){var H=Date.now();H-h<=ar?(p++,p===2&&c(rr(P))):p=1,h=H}}}return s.addEventListener("click",b),{dblclick:c,simDblclick:b}}function or(s,c){s.removeEventListener("dblclick",c.dblclick),s.removeEventListener("click",c.simDblclick)}var an=Ie(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ye=Ie(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Yn=ye==="webkitTransition"||ye==="OTransition"?ye+"End":"transitionend";function Un(s){return typeof s=="string"?document.getElementById(s):s}function we(s,c){var h=s.style[c]||s.currentStyle&&s.currentStyle[c];if((!h||h==="auto")&&document.defaultView){var p=document.defaultView.getComputedStyle(s,null);h=p?p[c]:null}return h==="auto"?null:h}function dt(s,c,h){var p=document.createElement(s);return p.className=c||"",h&&h.appendChild(p),p}function gt(s){var c=s.parentNode;c&&c.removeChild(s)}function De(s){for(;s.firstChild;)s.removeChild(s.firstChild)}function ie(s){var c=s.parentNode;c&&c.lastChild!==s&&c.appendChild(s)}function re(s){var c=s.parentNode;c&&c.firstChild!==s&&c.insertBefore(s,c.firstChild)}function sn(s,c){if(s.classList!==void 0)return s.classList.contains(c);var h=Ne(s);return h.length>0&&new RegExp("(^|\\s)"+c+"(\\s|$)").test(h)}function lt(s,c){if(s.classList!==void 0)for(var h=w(c),p=0,b=h.length;p<b;p++)s.classList.add(h[p]);else if(!sn(s,c)){var P=Ne(s);ln(s,(P?P+" ":"")+c)}}function bt(s,c){s.classList!==void 0?s.classList.remove(c):ln(s,v((" "+Ne(s)+" ").replace(" "+c+" "," ")))}function ln(s,c){s.className.baseVal===void 0?s.className=c:s.className.baseVal=c}function Ne(s){return s.correspondingElement&&(s=s.correspondingElement),s.className.baseVal===void 0?s.className:s.className.baseVal}function At(s,c){"opacity"in s.style?s.style.opacity=c:"filter"in s.style&&lr(s,c)}function lr(s,c){var h=!1,p="DXImageTransform.Microsoft.Alpha";try{h=s.filters.item(p)}catch{if(c===1)return}c=Math.round(c*100),h?(h.Enabled=c!==100,h.Opacity=c):s.style.filter+=" progid:"+p+"(opacity="+c+")"}function Ie(s){for(var c=document.documentElement.style,h=0;h<s.length;h++)if(s[h]in c)return s[h];return!1}function qt(s,c,h){var p=c||new N(0,0);s.style[an]=(nt.ie3d?"translate("+p.x+"px,"+p.y+"px)":"translate3d("+p.x+"px,"+p.y+"px,0)")+(h?" scale("+h+")":"")}function vt(s,c){s._leaflet_pos=c,nt.any3d?qt(s,c):(s.style.left=c.x+"px",s.style.top=c.y+"px")}function Kt(s){return s._leaflet_pos||new N(0,0)}var Ee,Pe,cn;if("onselectstart"in document)Ee=function(){ot(window,"selectstart",xt)},Pe=function(){mt(window,"selectstart",xt)};else{var $e=Ie(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Ee=function(){if($e){var s=document.documentElement.style;cn=s[$e],s[$e]="none"}},Pe=function(){$e&&(document.documentElement.style[$e]=cn,cn=void 0)}}function un(){ot(window,"dragstart",xt)}function dn(){mt(window,"dragstart",xt)}var Fe,hn;function fn(s){for(;s.tabIndex===-1;)s=s.parentNode;s.style&&(Re(),Fe=s,hn=s.style.outlineStyle,s.style.outlineStyle="none",ot(window,"keydown",Re))}function Re(){Fe&&(Fe.style.outlineStyle=hn,Fe=void 0,hn=void 0,mt(window,"keydown",Re))}function Gn(s){do s=s.parentNode;while((!s.offsetWidth||!s.offsetHeight)&&s!==document.body);return s}function mn(s){var c=s.getBoundingClientRect();return{x:c.width/s.offsetWidth||1,y:c.height/s.offsetHeight||1,boundingClientRect:c}}var cr={__proto__:null,TRANSFORM:an,TRANSITION:ye,TRANSITION_END:Yn,get:Un,getStyle:we,create:dt,remove:gt,empty:De,toFront:ie,toBack:re,hasClass:sn,addClass:lt,removeClass:bt,setClass:ln,getClass:Ne,setOpacity:At,testProp:Ie,setTransform:qt,setPosition:vt,getPosition:Kt,get disableTextSelection(){return Ee},get enableTextSelection(){return Pe},disableImageDrag:un,enableImageDrag:dn,preventOutline:fn,restoreOutline:Re,getSizedParentNode:Gn,getScale:mn};function ot(s,c,h,p){if(c&&typeof c=="object")for(var b in c)gn(s,b,c[b],h);else{c=w(c);for(var P=0,k=c.length;P<k;P++)gn(s,c[P],h,p)}return this}var Ft="_leaflet_events";function mt(s,c,h,p){if(arguments.length===1)qn(s),delete s[Ft];else if(c&&typeof c=="object")for(var b in c)_n(s,b,c[b],h);else if(c=w(c),arguments.length===2)qn(s,function(H){return W(c,H)!==-1});else for(var P=0,k=c.length;P<k;P++)_n(s,c[P],h,p);return this}function qn(s,c){for(var h in s[Ft]){var p=h.split(/\d/)[0];(!c||c(p))&&_n(s,p,null,null,h)}}var pn={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function gn(s,c,h,p){var b=c+u(h)+(p?"_"+u(p):"");if(s[Ft]&&s[Ft][b])return this;var P=function(H){return h.call(p||s,H||window.event)},k=P;!nt.touchNative&&nt.pointer&&c.indexOf("touch")===0?P=Zi(s,c,P):nt.touch&&c==="dblclick"?P=sr(s,P):"addEventListener"in s?c==="touchstart"||c==="touchmove"||c==="wheel"||c==="mousewheel"?s.addEventListener(pn[c]||c,P,nt.passiveEvents?{passive:!1}:!1):c==="mouseenter"||c==="mouseleave"?(P=function(H){H=H||window.event,vn(s,H)&&k(H)},s.addEventListener(pn[c],P,!1)):s.addEventListener(c,k,!1):s.attachEvent("on"+c,P),s[Ft]=s[Ft]||{},s[Ft][b]=P}function _n(s,c,h,p,b){b=b||c+u(h)+(p?"_"+u(p):"");var P=s[Ft]&&s[Ft][b];if(!P)return this;!nt.touchNative&&nt.pointer&&c.indexOf("touch")===0?Qi(s,c,P):nt.touch&&c==="dblclick"?or(s,P):"removeEventListener"in s?s.removeEventListener(pn[c]||c,P,!1):s.detachEvent("on"+c,P),s[Ft][b]=null}function Xt(s){return s.stopPropagation?s.stopPropagation():s.originalEvent?s.originalEvent._stopped=!0:s.cancelBubble=!0,this}function bn(s){return gn(s,"wheel",Xt),this}function xe(s){return ot(s,"mousedown touchstart dblclick contextmenu",Xt),s._leaflet_disable_click=!0,this}function xt(s){return s.preventDefault?s.preventDefault():s.returnValue=!1,this}function Zt(s){return xt(s),Xt(s),this}function Kn(s){if(s.composedPath)return s.composedPath();for(var c=[],h=s.target;h;)c.push(h),h=h.parentNode;return c}function Xn(s,c){if(!c)return new N(s.clientX,s.clientY);var h=mn(c),p=h.boundingClientRect;return new N((s.clientX-p.left)/h.x-c.clientLeft,(s.clientY-p.top)/h.y-c.clientTop)}var ur=nt.linux&&nt.chrome?window.devicePixelRatio:nt.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Zn(s){return nt.edge?s.wheelDeltaY/2:s.deltaY&&s.deltaMode===0?-s.deltaY/ur:s.deltaY&&s.deltaMode===1?-s.deltaY*20:s.deltaY&&s.deltaMode===2?-s.deltaY*60:s.deltaX||s.deltaZ?0:s.wheelDelta?(s.wheelDeltaY||s.wheelDelta)/2:s.detail&&Math.abs(s.detail)<32765?-s.detail*20:s.detail?s.detail/-32765*60:0}function vn(s,c){var h=c.relatedTarget;if(!h)return!0;try{for(;h&&h!==s;)h=h.parentNode}catch{return!1}return h!==s}var dr={__proto__:null,on:ot,off:mt,stopPropagation:Xt,disableScrollPropagation:bn,disableClickPropagation:xe,preventDefault:xt,stop:Zt,getPropagationPath:Kn,getMousePosition:Xn,getWheelDelta:Zn,isExternalTarget:vn,addListener:ot,removeListener:mt},Qn=F.extend({run:function(s,c,h,p){this.stop(),this._el=s,this._inProgress=!0,this._duration=h||.25,this._easeOutPower=1/Math.max(p||.5,.2),this._startPos=Kt(s),this._offset=c.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=O(this._animate,this),this._step()},_step:function(s){var c=+new Date-this._startTime,h=this._duration*1e3;c<h?this._runFrame(this._easeOut(c/h),s):(this._runFrame(1),this._complete())},_runFrame:function(s,c){var h=this._startPos.add(this._offset.multiplyBy(s));c&&h._round(),vt(this._el,h),this.fire("step")},_complete:function(){A(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(s){return 1-Math.pow(1-s,this._easeOutPower)}}),ut=F.extend({options:{crs:wt,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(s,c){c=E(this,c),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(s),this._initLayout(),this._onResize=o(this._onResize,this),this._initEvents(),c.maxBounds&&this.setMaxBounds(c.maxBounds),c.zoom!==void 0&&(this._zoom=this._limitZoom(c.zoom)),c.center&&c.zoom!==void 0&&this.setView(J(c.center),c.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ye&&nt.any3d&&!nt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),ot(this._proxy,Yn,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(s,c,h){if(c=c===void 0?this._zoom:this._limitZoom(c),s=this._limitCenter(J(s),c,this.options.maxBounds),h=h||{},this._stop(),this._loaded&&!h.reset&&h!==!0){h.animate!==void 0&&(h.zoom=r({animate:h.animate},h.zoom),h.pan=r({animate:h.animate,duration:h.duration},h.pan));var p=this._zoom!==c?this._tryAnimatedZoom&&this._tryAnimatedZoom(s,c,h.zoom):this._tryAnimatedPan(s,h.pan);if(p)return clearTimeout(this._sizeTimer),this}return this._resetView(s,c,h.pan&&h.pan.noMoveStart),this},setZoom:function(s,c){return this._loaded?this.setView(this.getCenter(),s,{zoom:c}):(this._zoom=s,this)},zoomIn:function(s,c){return s=s||(nt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+s,c)},zoomOut:function(s,c){return s=s||(nt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-s,c)},setZoomAround:function(s,c,h){var p=this.getZoomScale(c),b=this.getSize().divideBy(2),P=s instanceof N?s:this.latLngToContainerPoint(s),k=P.subtract(b).multiplyBy(1-1/p),H=this.containerPointToLatLng(b.add(k));return this.setView(H,c,{zoom:h})},_getBoundsCenterZoom:function(s,c){c=c||{},s=s.getBounds?s.getBounds():rt(s);var h=K(c.paddingTopLeft||c.padding||[0,0]),p=K(c.paddingBottomRight||c.padding||[0,0]),b=this.getBoundsZoom(s,!1,h.add(p));if(b=typeof c.maxZoom=="number"?Math.min(c.maxZoom,b):b,b===1/0)return{center:s.getCenter(),zoom:b};var P=p.subtract(h).divideBy(2),k=this.project(s.getSouthWest(),b),H=this.project(s.getNorthEast(),b),B=this.unproject(k.add(H).divideBy(2).add(P),b);return{center:B,zoom:b}},fitBounds:function(s,c){if(s=rt(s),!s.isValid())throw new Error("Bounds are not valid.");var h=this._getBoundsCenterZoom(s,c);return this.setView(h.center,h.zoom,c)},fitWorld:function(s){return this.fitBounds([[-90,-180],[90,180]],s)},panTo:function(s,c){return this.setView(s,this._zoom,{pan:c})},panBy:function(s,c){if(s=K(s).round(),c=c||{},!s.x&&!s.y)return this.fire("moveend");if(c.animate!==!0&&!this.getSize().contains(s))return this._resetView(this.unproject(this.project(this.getCenter()).add(s)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Qn,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),c.noMoveStart||this.fire("movestart"),c.animate!==!1){lt(this._mapPane,"leaflet-pan-anim");var h=this._getMapPanePos().subtract(s).round();this._panAnim.run(this._mapPane,h,c.duration||.25,c.easeLinearity)}else this._rawPanBy(s),this.fire("move").fire("moveend");return this},flyTo:function(s,c,h){if(h=h||{},h.animate===!1||!nt.any3d)return this.setView(s,c,h);this._stop();var p=this.project(this.getCenter()),b=this.project(s),P=this.getSize(),k=this._zoom;s=J(s),c=c===void 0?k:c;var H=Math.max(P.x,P.y),B=H*this.getZoomScale(k,c),X=b.distanceTo(p)||1,tt=1.42,at=tt*tt;function ct(yt){var Xe=yt?-1:1,ta=yt?B:H,ea=B*B-H*H+Xe*at*at*X*X,na=2*ta*at*X,kn=ea/na,Di=Math.sqrt(kn*kn+1)-kn,ia=Di<1e-9?-18:Math.log(Di);return ia}function St(yt){return(Math.exp(yt)-Math.exp(-yt))/2}function $t(yt){return(Math.exp(yt)+Math.exp(-yt))/2}function Ot(yt){return St(yt)/$t(yt)}var Tt=ct(0);function he(yt){return H*($t(Tt)/$t(Tt+tt*yt))}function Xr(yt){return H*($t(Tt)*Ot(Tt+tt*yt)-St(Tt))/at}function Zr(yt){return 1-Math.pow(1-yt,1.5)}var Qr=Date.now(),Ci=(ct(1)-Tt)/tt,Jr=h.duration?1e3*h.duration:1e3*Ci*.8;function Li(){var yt=(Date.now()-Qr)/Jr,Xe=Zr(yt)*Ci;yt<=1?(this._flyToFrame=O(Li,this),this._move(this.unproject(p.add(b.subtract(p).multiplyBy(Xr(Xe)/X)),k),this.getScaleZoom(H/he(Xe),k),{flyTo:!0})):this._move(s,c)._moveEnd(!0)}return this._moveStart(!0,h.noMoveStart),Li.call(this),this},flyToBounds:function(s,c){var h=this._getBoundsCenterZoom(s,c);return this.flyTo(h.center,h.zoom,c)},setMaxBounds:function(s){return s=rt(s),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),s.isValid()?(this.options.maxBounds=s,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(s){var c=this.options.minZoom;return this.options.minZoom=s,this._loaded&&c!==s&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(s):this},setMaxZoom:function(s){var c=this.options.maxZoom;return this.options.maxZoom=s,this._loaded&&c!==s&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(s):this},panInsideBounds:function(s,c){this._enforcingBounds=!0;var h=this.getCenter(),p=this._limitCenter(h,this._zoom,rt(s));return h.equals(p)||this.panTo(p,c),this._enforcingBounds=!1,this},panInside:function(s,c){c=c||{};var h=K(c.paddingTopLeft||c.padding||[0,0]),p=K(c.paddingBottomRight||c.padding||[0,0]),b=this.project(this.getCenter()),P=this.project(s),k=this.getPixelBounds(),H=et([k.min.add(h),k.max.subtract(p)]),B=H.getSize();if(!H.contains(P)){this._enforcingBounds=!0;var X=P.subtract(H.getCenter()),tt=H.extend(P).getSize().subtract(B);b.x+=X.x<0?-tt.x:tt.x,b.y+=X.y<0?-tt.y:tt.y,this.panTo(this.unproject(b),c),this._enforcingBounds=!1}return this},invalidateSize:function(s){if(!this._loaded)return this;s=r({animate:!1,pan:!0},s===!0?{animate:!0}:s);var c=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var h=this.getSize(),p=c.divideBy(2).round(),b=h.divideBy(2).round(),P=p.subtract(b);return!P.x&&!P.y?this:(s.animate&&s.pan?this.panBy(P):(s.pan&&this._rawPanBy(P),this.fire("move"),s.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:c,newSize:h}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(s){if(s=this._locateOptions=r({timeout:1e4,watch:!1},s),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var c=o(this._handleGeolocationResponse,this),h=o(this._handleGeolocationError,this);return s.watch?this._locationWatchId=navigator.geolocation.watchPosition(c,h,s):navigator.geolocation.getCurrentPosition(c,h,s),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(s){if(this._container._leaflet_id){var c=s.code,h=s.message||(c===1?"permission denied":c===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:c,message:"Geolocation error: "+h+"."})}},_handleGeolocationResponse:function(s){if(this._container._leaflet_id){var c=s.coords.latitude,h=s.coords.longitude,p=new Q(c,h),b=p.toBounds(s.coords.accuracy*2),P=this._locateOptions;if(P.setView){var k=this.getBoundsZoom(b);this.setView(p,P.maxZoom?Math.min(k,P.maxZoom):k)}var H={latlng:p,bounds:b,timestamp:s.timestamp};for(var B in s.coords)typeof s.coords[B]=="number"&&(H[B]=s.coords[B]);this.fire("locationfound",H)}},addHandler:function(s,c){if(!c)return this;var h=this[s]=new c(this);return this._handlers.push(h),this.options[s]&&h.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),gt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(A(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var s;for(s in this._layers)this._layers[s].remove();for(s in this._panes)gt(this._panes[s]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(s,c){var h="leaflet-pane"+(s?" leaflet-"+s.replace("Pane","")+"-pane":""),p=dt("div",h,c||this._mapPane);return s&&(this._panes[s]=p),p},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var s=this.getPixelBounds(),c=this.unproject(s.getBottomLeft()),h=this.unproject(s.getTopRight());return new st(c,h)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(s,c,h){s=rt(s),h=K(h||[0,0]);var p=this.getZoom()||0,b=this.getMinZoom(),P=this.getMaxZoom(),k=s.getNorthWest(),H=s.getSouthEast(),B=this.getSize().subtract(h),X=et(this.project(H,p),this.project(k,p)).getSize(),tt=nt.any3d?this.options.zoomSnap:1,at=B.x/X.x,ct=B.y/X.y,St=c?Math.max(at,ct):Math.min(at,ct);return p=this.getScaleZoom(St,p),tt&&(p=Math.round(p/(tt/100))*(tt/100),p=c?Math.ceil(p/tt)*tt:Math.floor(p/tt)*tt),Math.max(b,Math.min(P,p))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new N(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(s,c){var h=this._getTopLeftPoint(s,c);return new Z(h,h.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(s){return this.options.crs.getProjectedBounds(s===void 0?this.getZoom():s)},getPane:function(s){return typeof s=="string"?this._panes[s]:s},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(s,c){var h=this.options.crs;return c=c===void 0?this._zoom:c,h.scale(s)/h.scale(c)},getScaleZoom:function(s,c){var h=this.options.crs;c=c===void 0?this._zoom:c;var p=h.zoom(s*h.scale(c));return isNaN(p)?1/0:p},project:function(s,c){return c=c===void 0?this._zoom:c,this.options.crs.latLngToPoint(J(s),c)},unproject:function(s,c){return c=c===void 0?this._zoom:c,this.options.crs.pointToLatLng(K(s),c)},layerPointToLatLng:function(s){var c=K(s).add(this.getPixelOrigin());return this.unproject(c)},latLngToLayerPoint:function(s){var c=this.project(J(s))._round();return c._subtract(this.getPixelOrigin())},wrapLatLng:function(s){return this.options.crs.wrapLatLng(J(s))},wrapLatLngBounds:function(s){return this.options.crs.wrapLatLngBounds(rt(s))},distance:function(s,c){return this.options.crs.distance(J(s),J(c))},containerPointToLayerPoint:function(s){return K(s).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(s){return K(s).add(this._getMapPanePos())},containerPointToLatLng:function(s){var c=this.containerPointToLayerPoint(K(s));return this.layerPointToLatLng(c)},latLngToContainerPoint:function(s){return this.layerPointToContainerPoint(this.latLngToLayerPoint(J(s)))},mouseEventToContainerPoint:function(s){return Xn(s,this._container)},mouseEventToLayerPoint:function(s){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(s))},mouseEventToLatLng:function(s){return this.layerPointToLatLng(this.mouseEventToLayerPoint(s))},_initContainer:function(s){var c=this._container=Un(s);if(c){if(c._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");ot(c,"scroll",this._onScroll,this),this._containerId=u(c)},_initLayout:function(){var s=this._container;this._fadeAnimated=this.options.fadeAnimation&&nt.any3d,lt(s,"leaflet-container"+(nt.touch?" leaflet-touch":"")+(nt.retina?" leaflet-retina":"")+(nt.ielt9?" leaflet-oldie":"")+(nt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var c=we(s,"position");c!=="absolute"&&c!=="relative"&&c!=="fixed"&&c!=="sticky"&&(s.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var s=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),vt(this._mapPane,new N(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(lt(s.markerPane,"leaflet-zoom-hide"),lt(s.shadowPane,"leaflet-zoom-hide"))},_resetView:function(s,c,h){vt(this._mapPane,new N(0,0));var p=!this._loaded;this._loaded=!0,c=this._limitZoom(c),this.fire("viewprereset");var b=this._zoom!==c;this._moveStart(b,h)._move(s,c)._moveEnd(b),this.fire("viewreset"),p&&this.fire("load")},_moveStart:function(s,c){return s&&this.fire("zoomstart"),c||this.fire("movestart"),this},_move:function(s,c,h,p){c===void 0&&(c=this._zoom);var b=this._zoom!==c;return this._zoom=c,this._lastCenter=s,this._pixelOrigin=this._getNewPixelOrigin(s),p?h&&h.pinch&&this.fire("zoom",h):((b||h&&h.pinch)&&this.fire("zoom",h),this.fire("move",h)),this},_moveEnd:function(s){return s&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return A(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(s){vt(this._mapPane,this._getMapPanePos().subtract(s))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(s){this._targets={},this._targets[u(this._container)]=this;var c=s?mt:ot;c(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&c(window,"resize",this._onResize,this),nt.any3d&&this.options.transform3DLimit&&(s?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){A(this._resizeRequest),this._resizeRequest=O(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var s=this._getMapPanePos();Math.max(Math.abs(s.x),Math.abs(s.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(s,c){for(var h=[],p,b=c==="mouseout"||c==="mouseover",P=s.target||s.srcElement,k=!1;P;){if(p=this._targets[u(P)],p&&(c==="click"||c==="preclick")&&this._draggableMoved(p)){k=!0;break}if(p&&p.listens(c,!0)&&(b&&!vn(P,s)||(h.push(p),b))||P===this._container)break;P=P.parentNode}return!h.length&&!k&&!b&&this.listens(c,!0)&&(h=[this]),h},_isClickDisabled:function(s){for(;s&&s!==this._container;){if(s._leaflet_disable_click)return!0;s=s.parentNode}},_handleDOMEvent:function(s){var c=s.target||s.srcElement;if(!(!this._loaded||c._leaflet_disable_events||s.type==="click"&&this._isClickDisabled(c))){var h=s.type;h==="mousedown"&&fn(c),this._fireDOMEvent(s,h)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(s,c,h){if(s.type==="click"){var p=r({},s);p.type="preclick",this._fireDOMEvent(p,p.type,h)}var b=this._findEventTargets(s,c);if(h){for(var P=[],k=0;k<h.length;k++)h[k].listens(c,!0)&&P.push(h[k]);b=P.concat(b)}if(b.length){c==="contextmenu"&&xt(s);var H=b[0],B={originalEvent:s};if(s.type!=="keypress"&&s.type!=="keydown"&&s.type!=="keyup"){var X=H.getLatLng&&(!H._radius||H._radius<=10);B.containerPoint=X?this.latLngToContainerPoint(H.getLatLng()):this.mouseEventToContainerPoint(s),B.layerPoint=this.containerPointToLayerPoint(B.containerPoint),B.latlng=X?H.getLatLng():this.layerPointToLatLng(B.layerPoint)}for(k=0;k<b.length;k++)if(b[k].fire(c,B,!0),B.originalEvent._stopped||b[k].options.bubblingMouseEvents===!1&&W(this._mouseEvents,c)!==-1)return}},_draggableMoved:function(s){return s=s.dragging&&s.dragging.enabled()?s:this,s.dragging&&s.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var s=0,c=this._handlers.length;s<c;s++)this._handlers[s].disable()},whenReady:function(s,c){return this._loaded?s.call(c||this,{target:this}):this.on("load",s,c),this},_getMapPanePos:function(){return Kt(this._mapPane)||new N(0,0)},_moved:function(){var s=this._getMapPanePos();return s&&!s.equals([0,0])},_getTopLeftPoint:function(s,c){var h=s&&c!==void 0?this._getNewPixelOrigin(s,c):this.getPixelOrigin();return h.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(s,c){var h=this.getSize()._divideBy(2);return this.project(s,c)._subtract(h)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(s,c,h){var p=this._getNewPixelOrigin(h,c);return this.project(s,c)._subtract(p)},_latLngBoundsToNewLayerBounds:function(s,c,h){var p=this._getNewPixelOrigin(h,c);return et([this.project(s.getSouthWest(),c)._subtract(p),this.project(s.getNorthWest(),c)._subtract(p),this.project(s.getSouthEast(),c)._subtract(p),this.project(s.getNorthEast(),c)._subtract(p)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(s){return this.latLngToLayerPoint(s).subtract(this._getCenterLayerPoint())},_limitCenter:function(s,c,h){if(!h)return s;var p=this.project(s,c),b=this.getSize().divideBy(2),P=new Z(p.subtract(b),p.add(b)),k=this._getBoundsOffset(P,h,c);return Math.abs(k.x)<=1&&Math.abs(k.y)<=1?s:this.unproject(p.add(k),c)},_limitOffset:function(s,c){if(!c)return s;var h=this.getPixelBounds(),p=new Z(h.min.add(s),h.max.add(s));return s.add(this._getBoundsOffset(p,c))},_getBoundsOffset:function(s,c,h){var p=et(this.project(c.getNorthEast(),h),this.project(c.getSouthWest(),h)),b=p.min.subtract(s.min),P=p.max.subtract(s.max),k=this._rebound(b.x,-P.x),H=this._rebound(b.y,-P.y);return new N(k,H)},_rebound:function(s,c){return s+c>0?Math.round(s-c)/2:Math.max(0,Math.ceil(s))-Math.max(0,Math.floor(c))},_limitZoom:function(s){var c=this.getMinZoom(),h=this.getMaxZoom(),p=nt.any3d?this.options.zoomSnap:1;return p&&(s=Math.round(s/p)*p),Math.max(c,Math.min(h,s))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){bt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(s,c){var h=this._getCenterOffset(s)._trunc();return(c&&c.animate)!==!0&&!this.getSize().contains(h)?!1:(this.panBy(h,c),!0)},_createAnimProxy:function(){var s=this._proxy=dt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(s),this.on("zoomanim",function(c){var h=an,p=this._proxy.style[h];qt(this._proxy,this.project(c.center,c.zoom),this.getZoomScale(c.zoom,1)),p===this._proxy.style[h]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){gt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var s=this.getCenter(),c=this.getZoom();qt(this._proxy,this.project(s,c),this.getZoomScale(c,1))},_catchTransitionEnd:function(s){this._animatingZoom&&s.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(s,c,h){if(this._animatingZoom)return!0;if(h=h||{},!this._zoomAnimated||h.animate===!1||this._nothingToAnimate()||Math.abs(c-this._zoom)>this.options.zoomAnimationThreshold)return!1;var p=this.getZoomScale(c),b=this._getCenterOffset(s)._divideBy(1-1/p);return h.animate!==!0&&!this.getSize().contains(b)?!1:(O(function(){this._moveStart(!0,h.noMoveStart||!1)._animateZoom(s,c,!0)},this),!0)},_animateZoom:function(s,c,h,p){this._mapPane&&(h&&(this._animatingZoom=!0,this._animateToCenter=s,this._animateToZoom=c,lt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:s,zoom:c,noUpdate:p}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&bt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function hr(s,c){return new ut(s,c)}var Ct=z.extend({options:{position:"topright"},initialize:function(s){E(this,s)},getPosition:function(){return this.options.position},setPosition:function(s){var c=this._map;return c&&c.removeControl(this),this.options.position=s,c&&c.addControl(this),this},getContainer:function(){return this._container},addTo:function(s){this.remove(),this._map=s;var c=this._container=this.onAdd(s),h=this.getPosition(),p=s._controlCorners[h];return lt(c,"leaflet-control"),h.indexOf("bottom")!==-1?p.insertBefore(c,p.firstChild):p.appendChild(c),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(gt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(s){this._map&&s&&s.screenX>0&&s.screenY>0&&this._map.getContainer().focus()}}),Se=function(s){return new Ct(s)};ut.include({addControl:function(s){return s.addTo(this),this},removeControl:function(s){return s.remove(),this},_initControlPos:function(){var s=this._controlCorners={},c="leaflet-",h=this._controlContainer=dt("div",c+"control-container",this._container);function p(b,P){var k=c+b+" "+c+P;s[b+P]=dt("div",k,h)}p("top","left"),p("top","right"),p("bottom","left"),p("bottom","right")},_clearControlPos:function(){for(var s in this._controlCorners)gt(this._controlCorners[s]);gt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Jn=Ct.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(s,c,h,p){return h<p?-1:p<h?1:0}},initialize:function(s,c,h){E(this,h),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var p in s)this._addLayer(s[p],p);for(p in c)this._addLayer(c[p],p,!0)},onAdd:function(s){this._initLayout(),this._update(),this._map=s,s.on("zoomend",this._checkDisabledLayers,this);for(var c=0;c<this._layers.length;c++)this._layers[c].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(s){return Ct.prototype.addTo.call(this,s),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var s=0;s<this._layers.length;s++)this._layers[s].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(s,c){return this._addLayer(s,c),this._map?this._update():this},addOverlay:function(s,c){return this._addLayer(s,c,!0),this._map?this._update():this},removeLayer:function(s){s.off("add remove",this._onLayerChange,this);var c=this._getLayer(u(s));return c&&this._layers.splice(this._layers.indexOf(c),1),this._map?this._update():this},expand:function(){lt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var s=this._map.getSize().y-(this._container.offsetTop+50);return s<this._section.clientHeight?(lt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=s+"px"):bt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return bt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var s="leaflet-control-layers",c=this._container=dt("div",s),h=this.options.collapsed;c.setAttribute("aria-haspopup",!0),xe(c),bn(c);var p=this._section=dt("section",s+"-list");h&&(this._map.on("click",this.collapse,this),ot(c,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var b=this._layersLink=dt("a",s+"-toggle",c);b.href="#",b.title="Layers",b.setAttribute("role","button"),ot(b,{keydown:function(P){P.keyCode===13&&this._expandSafely()},click:function(P){xt(P),this._expandSafely()}},this),h||this.expand(),this._baseLayersList=dt("div",s+"-base",p),this._separator=dt("div",s+"-separator",p),this._overlaysList=dt("div",s+"-overlays",p),c.appendChild(p)},_getLayer:function(s){for(var c=0;c<this._layers.length;c++)if(this._layers[c]&&u(this._layers[c].layer)===s)return this._layers[c]},_addLayer:function(s,c,h){this._map&&s.on("add remove",this._onLayerChange,this),this._layers.push({layer:s,name:c,overlay:h}),this.options.sortLayers&&this._layers.sort(o(function(p,b){return this.options.sortFunction(p.layer,b.layer,p.name,b.name)},this)),this.options.autoZIndex&&s.setZIndex&&(this._lastZIndex++,s.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;De(this._baseLayersList),De(this._overlaysList),this._layerControlInputs=[];var s,c,h,p,b=0;for(h=0;h<this._layers.length;h++)p=this._layers[h],this._addItem(p),c=c||p.overlay,s=s||!p.overlay,b+=p.overlay?0:1;return this.options.hideSingleBase&&(s=s&&b>1,this._baseLayersList.style.display=s?"":"none"),this._separator.style.display=c&&s?"":"none",this},_onLayerChange:function(s){this._handlingClick||this._update();var c=this._getLayer(u(s.target)),h=c.overlay?s.type==="add"?"overlayadd":"overlayremove":s.type==="add"?"baselayerchange":null;h&&this._map.fire(h,c)},_createRadioElement:function(s,c){var h='<input type="radio" class="leaflet-control-layers-selector" name="'+s+'"'+(c?' checked="checked"':"")+"/>",p=document.createElement("div");return p.innerHTML=h,p.firstChild},_addItem:function(s){var c=document.createElement("label"),h=this._map.hasLayer(s.layer),p;s.overlay?(p=document.createElement("input"),p.type="checkbox",p.className="leaflet-control-layers-selector",p.defaultChecked=h):p=this._createRadioElement("leaflet-base-layers_"+u(this),h),this._layerControlInputs.push(p),p.layerId=u(s.layer),ot(p,"click",this._onInputClick,this);var b=document.createElement("span");b.innerHTML=" "+s.name;var P=document.createElement("span");c.appendChild(P),P.appendChild(p),P.appendChild(b);var k=s.overlay?this._overlaysList:this._baseLayersList;return k.appendChild(c),this._checkDisabledLayers(),c},_onInputClick:function(){if(!this._preventClick){var s=this._layerControlInputs,c,h,p=[],b=[];this._handlingClick=!0;for(var P=s.length-1;P>=0;P--)c=s[P],h=this._getLayer(c.layerId).layer,c.checked?p.push(h):c.checked||b.push(h);for(P=0;P<b.length;P++)this._map.hasLayer(b[P])&&this._map.removeLayer(b[P]);for(P=0;P<p.length;P++)this._map.hasLayer(p[P])||this._map.addLayer(p[P]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var s=this._layerControlInputs,c,h,p=this._map.getZoom(),b=s.length-1;b>=0;b--)c=s[b],h=this._getLayer(c.layerId).layer,c.disabled=h.options.minZoom!==void 0&&p<h.options.minZoom||h.options.maxZoom!==void 0&&p>h.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var s=this._section;this._preventClick=!0,ot(s,"click",xt),this.expand();var c=this;setTimeout(function(){mt(s,"click",xt),c._preventClick=!1})}}),mr=function(s,c,h){return new Jn(s,c,h)},yn=Ct.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(s){var c="leaflet-control-zoom",h=dt("div",c+" leaflet-bar"),p=this.options;return this._zoomInButton=this._createButton(p.zoomInText,p.zoomInTitle,c+"-in",h,this._zoomIn),this._zoomOutButton=this._createButton(p.zoomOutText,p.zoomOutTitle,c+"-out",h,this._zoomOut),this._updateDisabled(),s.on("zoomend zoomlevelschange",this._updateDisabled,this),h},onRemove:function(s){s.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(s){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(s.shiftKey?3:1))},_zoomOut:function(s){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(s.shiftKey?3:1))},_createButton:function(s,c,h,p,b){var P=dt("a",h,p);return P.innerHTML=s,P.href="#",P.title=c,P.setAttribute("role","button"),P.setAttribute("aria-label",c),xe(P),ot(P,"click",Zt),ot(P,"click",b,this),ot(P,"click",this._refocusOnMap,this),P},_updateDisabled:function(){var s=this._map,c="leaflet-disabled";bt(this._zoomInButton,c),bt(this._zoomOutButton,c),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||s._zoom===s.getMinZoom())&&(lt(this._zoomOutButton,c),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||s._zoom===s.getMaxZoom())&&(lt(this._zoomInButton,c),this._zoomInButton.setAttribute("aria-disabled","true"))}});ut.mergeOptions({zoomControl:!0}),ut.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new yn,this.addControl(this.zoomControl))});var pr=function(s){return new yn(s)},ti=Ct.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(s){var c="leaflet-control-scale",h=dt("div",c),p=this.options;return this._addScales(p,c+"-line",h),s.on(p.updateWhenIdle?"moveend":"move",this._update,this),s.whenReady(this._update,this),h},onRemove:function(s){s.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(s,c,h){s.metric&&(this._mScale=dt("div",c,h)),s.imperial&&(this._iScale=dt("div",c,h))},_update:function(){var s=this._map,c=s.getSize().y/2,h=s.distance(s.containerPointToLatLng([0,c]),s.containerPointToLatLng([this.options.maxWidth,c]));this._updateScales(h)},_updateScales:function(s){this.options.metric&&s&&this._updateMetric(s),this.options.imperial&&s&&this._updateImperial(s)},_updateMetric:function(s){var c=this._getRoundNum(s),h=c<1e3?c+" m":c/1e3+" km";this._updateScale(this._mScale,h,c/s)},_updateImperial:function(s){var c=s*3.2808399,h,p,b;c>5280?(h=c/5280,p=this._getRoundNum(h),this._updateScale(this._iScale,p+" mi",p/h)):(b=this._getRoundNum(c),this._updateScale(this._iScale,b+" ft",b/c))},_updateScale:function(s,c,h){s.style.width=Math.round(this.options.maxWidth*h)+"px",s.innerHTML=c},_getRoundNum:function(s){var c=Math.pow(10,(Math.floor(s)+"").length-1),h=s/c;return h=h>=10?10:h>=5?5:h>=3?3:h>=2?2:1,c*h}}),gr=function(s){return new ti(s)},_r='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',wn=Ct.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(nt.inlineSvg?_r+" ":"")+"Leaflet</a>"},initialize:function(s){E(this,s),this._attributions={}},onAdd:function(s){s.attributionControl=this,this._container=dt("div","leaflet-control-attribution"),xe(this._container);for(var c in s._layers)s._layers[c].getAttribution&&this.addAttribution(s._layers[c].getAttribution());return this._update(),s.on("layeradd",this._addAttribution,this),this._container},onRemove:function(s){s.off("layeradd",this._addAttribution,this)},_addAttribution:function(s){s.layer.getAttribution&&(this.addAttribution(s.layer.getAttribution()),s.layer.once("remove",function(){this.removeAttribution(s.layer.getAttribution())},this))},setPrefix:function(s){return this.options.prefix=s,this._update(),this},addAttribution:function(s){return s?(this._attributions[s]||(this._attributions[s]=0),this._attributions[s]++,this._update(),this):this},removeAttribution:function(s){return s?(this._attributions[s]&&(this._attributions[s]--,this._update()),this):this},_update:function(){if(this._map){var s=[];for(var c in this._attributions)this._attributions[c]&&s.push(c);var h=[];this.options.prefix&&h.push(this.options.prefix),s.length&&h.push(s.join(", ")),this._container.innerHTML=h.join(' <span aria-hidden="true">|</span> ')}}});ut.mergeOptions({attributionControl:!0}),ut.addInitHook(function(){this.options.attributionControl&&new wn().addTo(this)});var br=function(s){return new wn(s)};Ct.Layers=Jn,Ct.Zoom=yn,Ct.Scale=ti,Ct.Attribution=wn,Se.layers=mr,Se.zoom=pr,Se.scale=gr,Se.attribution=br;var Rt=z.extend({initialize:function(s){this._map=s},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Rt.addTo=function(s,c){return s.addHandler(c,this),this};var vr={Events:D},ei=nt.touch?"touchstart mousedown":"mousedown",Ut=F.extend({options:{clickTolerance:3},initialize:function(s,c,h,p){E(this,p),this._element=s,this._dragStartTarget=c||s,this._preventOutline=h},enable:function(){this._enabled||(ot(this._dragStartTarget,ei,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Ut._dragging===this&&this.finishDrag(!0),mt(this._dragStartTarget,ei,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(s){if(this._enabled&&(this._moved=!1,!sn(this._element,"leaflet-zoom-anim"))){if(s.touches&&s.touches.length!==1){Ut._dragging===this&&this.finishDrag();return}if(!(Ut._dragging||s.shiftKey||s.which!==1&&s.button!==1&&!s.touches)&&(Ut._dragging=this,this._preventOutline&&fn(this._element),un(),Ee(),!this._moving)){this.fire("down");var c=s.touches?s.touches[0]:s,h=Gn(this._element);this._startPoint=new N(c.clientX,c.clientY),this._startPos=Kt(this._element),this._parentScale=mn(h);var p=s.type==="mousedown";ot(document,p?"mousemove":"touchmove",this._onMove,this),ot(document,p?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(s){if(this._enabled){if(s.touches&&s.touches.length>1){this._moved=!0;return}var c=s.touches&&s.touches.length===1?s.touches[0]:s,h=new N(c.clientX,c.clientY)._subtract(this._startPoint);!h.x&&!h.y||Math.abs(h.x)+Math.abs(h.y)<this.options.clickTolerance||(h.x/=this._parentScale.x,h.y/=this._parentScale.y,xt(s),this._moved||(this.fire("dragstart"),this._moved=!0,lt(document.body,"leaflet-dragging"),this._lastTarget=s.target||s.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),lt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(h),this._moving=!0,this._lastEvent=s,this._updatePosition())}},_updatePosition:function(){var s={originalEvent:this._lastEvent};this.fire("predrag",s),vt(this._element,this._newPos),this.fire("drag",s)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(s){bt(document.body,"leaflet-dragging"),this._lastTarget&&(bt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),mt(document,"mousemove touchmove",this._onMove,this),mt(document,"mouseup touchend touchcancel",this._onUp,this),dn(),Pe();var c=this._moved&&this._moving;this._moving=!1,Ut._dragging=!1,c&&this.fire("dragend",{noInertia:s,distance:this._newPos.distanceTo(this._startPos)})}});function ni(s,c,h){var p,b=[1,4,2,8],P,k,H,B,X,tt,at,ct;for(P=0,tt=s.length;P<tt;P++)s[P]._code=Qt(s[P],c);for(H=0;H<4;H++){for(at=b[H],p=[],P=0,tt=s.length,k=tt-1;P<tt;k=P++)B=s[P],X=s[k],B._code&at?X._code&at||(ct=ze(X,B,at,c,h),ct._code=Qt(ct,c),p.push(ct)):(X._code&at&&(ct=ze(X,B,at,c,h),ct._code=Qt(ct,c),p.push(ct)),p.push(B));s=p}return s}function ii(s,c){var h,p,b,P,k,H,B,X,tt;if(!s||s.length===0)throw new Error("latlngs not passed");kt(s)||(console.warn("latlngs are not flat! Only the first ring will be used"),s=s[0]);var at=J([0,0]),ct=rt(s),St=ct.getNorthWest().distanceTo(ct.getSouthWest())*ct.getNorthEast().distanceTo(ct.getNorthWest());St<1700&&(at=En(s));var $t=s.length,Ot=[];for(h=0;h<$t;h++){var Tt=J(s[h]);Ot.push(c.project(J([Tt.lat-at.lat,Tt.lng-at.lng])))}for(H=B=X=0,h=0,p=$t-1;h<$t;p=h++)b=Ot[h],P=Ot[p],k=b.y*P.x-P.y*b.x,B+=(b.x+P.x)*k,X+=(b.y+P.y)*k,H+=k*3;H===0?tt=Ot[0]:tt=[B/H,X/H];var he=c.unproject(K(tt));return J([he.lat+at.lat,he.lng+at.lng])}function En(s){for(var c=0,h=0,p=0,b=0;b<s.length;b++){var P=J(s[b]);c+=P.lat,h+=P.lng,p++}return J([c/p,h/p])}var yr={__proto__:null,clipPolygon:ni,polygonCenter:ii,centroid:En};function ri(s,c){if(!c||!s.length)return s.slice();var h=c*c;return s=Pr(s,h),s=Er(s,h),s}function ai(s,c,h){return Math.sqrt(Te(s,c,h,!0))}function wr(s,c,h){return Te(s,c,h)}function Er(s,c){var h=s.length,p=typeof Uint8Array!=void 0+""?Uint8Array:Array,b=new p(h);b[0]=b[h-1]=1,Pn(s,b,c,0,h-1);var P,k=[];for(P=0;P<h;P++)b[P]&&k.push(s[P]);return k}function Pn(s,c,h,p,b){var P=0,k,H,B;for(H=p+1;H<=b-1;H++)B=Te(s[H],s[p],s[b],!0),B>P&&(k=H,P=B);P>h&&(c[k]=1,Pn(s,c,h,p,k),Pn(s,c,h,k,b))}function Pr(s,c){for(var h=[s[0]],p=1,b=0,P=s.length;p<P;p++)$r(s[p],s[b])>c&&(h.push(s[p]),b=p);return b<P-1&&h.push(s[P-1]),h}var si;function oi(s,c,h,p,b){var P=p?si:Qt(s,h),k=Qt(c,h),H,B,X;for(si=k;;){if(!(P|k))return[s,c];if(P&k)return!1;H=P||k,B=ze(s,c,H,h,b),X=Qt(B,h),H===P?(s=B,P=X):(c=B,k=X)}}function ze(s,c,h,p,b){var P=c.x-s.x,k=c.y-s.y,H=p.min,B=p.max,X,tt;return h&8?(X=s.x+P*(B.y-s.y)/k,tt=B.y):h&4?(X=s.x+P*(H.y-s.y)/k,tt=H.y):h&2?(X=B.x,tt=s.y+k*(B.x-s.x)/P):h&1&&(X=H.x,tt=s.y+k*(H.x-s.x)/P),new N(X,tt,b)}function Qt(s,c){var h=0;return s.x<c.min.x?h|=1:s.x>c.max.x&&(h|=2),s.y<c.min.y?h|=4:s.y>c.max.y&&(h|=8),h}function $r(s,c){var h=c.x-s.x,p=c.y-s.y;return h*h+p*p}function Te(s,c,h,p){var b=c.x,P=c.y,k=h.x-b,H=h.y-P,B=k*k+H*H,X;return B>0&&(X=((s.x-b)*k+(s.y-P)*H)/B,X>1?(b=h.x,P=h.y):X>0&&(b+=k*X,P+=H*X)),k=s.x-b,H=s.y-P,p?k*k+H*H:new N(b,P)}function kt(s){return!R(s[0])||typeof s[0][0]!="object"&&typeof s[0][0]<"u"}function li(s){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),kt(s)}function ci(s,c){var h,p,b,P,k,H,B,X;if(!s||s.length===0)throw new Error("latlngs not passed");kt(s)||(console.warn("latlngs are not flat! Only the first ring will be used"),s=s[0]);var tt=J([0,0]),at=rt(s),ct=at.getNorthWest().distanceTo(at.getSouthWest())*at.getNorthEast().distanceTo(at.getNorthWest());ct<1700&&(tt=En(s));var St=s.length,$t=[];for(h=0;h<St;h++){var Ot=J(s[h]);$t.push(c.project(J([Ot.lat-tt.lat,Ot.lng-tt.lng])))}for(h=0,p=0;h<St-1;h++)p+=$t[h].distanceTo($t[h+1])/2;if(p===0)X=$t[0];else for(h=0,P=0;h<St-1;h++)if(k=$t[h],H=$t[h+1],b=k.distanceTo(H),P+=b,P>p){B=(P-p)/b,X=[H.x-B*(H.x-k.x),H.y-B*(H.y-k.y)];break}var Tt=c.unproject(K(X));return J([Tt.lat+tt.lat,Tt.lng+tt.lng])}var xr={__proto__:null,simplify:ri,pointToSegmentDistance:ai,closestPointOnSegment:wr,clipSegment:oi,_getEdgeIntersection:ze,_getBitCode:Qt,_sqClosestPointOnSegment:Te,isFlat:kt,_flat:li,polylineCenter:ci},$n={project:function(s){return new N(s.lng,s.lat)},unproject:function(s){return new Q(s.y,s.x)},bounds:new Z([-180,-90],[180,90])},xn={R:6378137,R_MINOR:6356752314245179e-9,bounds:new Z([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(s){var c=Math.PI/180,h=this.R,p=s.lat*c,b=this.R_MINOR/h,P=Math.sqrt(1-b*b),k=P*Math.sin(p),H=Math.tan(Math.PI/4-p/2)/Math.pow((1-k)/(1+k),P/2);return p=-h*Math.log(Math.max(H,1e-10)),new N(s.lng*c*h,p)},unproject:function(s){for(var c=180/Math.PI,h=this.R,p=this.R_MINOR/h,b=Math.sqrt(1-p*p),P=Math.exp(-s.y/h),k=Math.PI/2-2*Math.atan(P),H=0,B=.1,X;H<15&&Math.abs(B)>1e-7;H++)X=b*Math.sin(k),X=Math.pow((1-X)/(1+X),b/2),B=Math.PI/2-2*Math.atan(P*X)-k,k+=B;return new Q(k*c,s.x*c/h)}},Sr={__proto__:null,LonLat:$n,Mercator:xn,SphericalMercator:Wt},Tr=r({},_t,{code:"EPSG:3395",projection:xn,transformation:function(){var s=.5/(Math.PI*xn.R);return Mt(s,.5,-s,.5)}()}),ui=r({},_t,{code:"EPSG:4326",projection:$n,transformation:Mt(1/180,1,-1/180,.5)}),Mr=r({},ht,{projection:$n,transformation:Mt(1,0,-1,0),scale:function(s){return Math.pow(2,s)},zoom:function(s){return Math.log(s)/Math.LN2},distance:function(s,c){var h=c.lng-s.lng,p=c.lat-s.lat;return Math.sqrt(h*h+p*p)},infinite:!0});ht.Earth=_t,ht.EPSG3395=Tr,ht.EPSG3857=wt,ht.EPSG900913=Et,ht.EPSG4326=ui,ht.Simple=Mr;var Lt=F.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(s){return s.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(s){return s&&s.removeLayer(this),this},getPane:function(s){return this._map.getPane(s?this.options[s]||s:this.options.pane)},addInteractiveTarget:function(s){return this._map._targets[u(s)]=this,this},removeInteractiveTarget:function(s){return delete this._map._targets[u(s)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(s){var c=s.target;if(c.hasLayer(this)){if(this._map=c,this._zoomAnimated=c._zoomAnimated,this.getEvents){var h=this.getEvents();c.on(h,this),this.once("remove",function(){c.off(h,this)},this)}this.onAdd(c),this.fire("add"),c.fire("layeradd",{layer:this})}}});ut.include({addLayer:function(s){if(!s._layerAdd)throw new Error("The provided object is not a Layer.");var c=u(s);return this._layers[c]?this:(this._layers[c]=s,s._mapToAdd=this,s.beforeAdd&&s.beforeAdd(this),this.whenReady(s._layerAdd,s),this)},removeLayer:function(s){var c=u(s);return this._layers[c]?(this._loaded&&s.onRemove(this),delete this._layers[c],this._loaded&&(this.fire("layerremove",{layer:s}),s.fire("remove")),s._map=s._mapToAdd=null,this):this},hasLayer:function(s){return u(s)in this._layers},eachLayer:function(s,c){for(var h in this._layers)s.call(c,this._layers[h]);return this},_addLayers:function(s){s=s?R(s)?s:[s]:[];for(var c=0,h=s.length;c<h;c++)this.addLayer(s[c])},_addZoomLimit:function(s){(!isNaN(s.options.maxZoom)||!isNaN(s.options.minZoom))&&(this._zoomBoundLayers[u(s)]=s,this._updateZoomLevels())},_removeZoomLimit:function(s){var c=u(s);this._zoomBoundLayers[c]&&(delete this._zoomBoundLayers[c],this._updateZoomLevels())},_updateZoomLevels:function(){var s=1/0,c=-1/0,h=this._getZoomSpan();for(var p in this._zoomBoundLayers){var b=this._zoomBoundLayers[p].options;s=b.minZoom===void 0?s:Math.min(s,b.minZoom),c=b.maxZoom===void 0?c:Math.max(c,b.maxZoom)}this._layersMaxZoom=c===-1/0?void 0:c,this._layersMinZoom=s===1/0?void 0:s,h!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var ae=Lt.extend({initialize:function(s,c){E(this,c),this._layers={};var h,p;if(s)for(h=0,p=s.length;h<p;h++)this.addLayer(s[h])},addLayer:function(s){var c=this.getLayerId(s);return this._layers[c]=s,this._map&&this._map.addLayer(s),this},removeLayer:function(s){var c=s in this._layers?s:this.getLayerId(s);return this._map&&this._layers[c]&&this._map.removeLayer(this._layers[c]),delete this._layers[c],this},hasLayer:function(s){var c=typeof s=="number"?s:this.getLayerId(s);return c in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(s){var c=Array.prototype.slice.call(arguments,1),h,p;for(h in this._layers)p=this._layers[h],p[s]&&p[s].apply(p,c);return this},onAdd:function(s){this.eachLayer(s.addLayer,s)},onRemove:function(s){this.eachLayer(s.removeLayer,s)},eachLayer:function(s,c){for(var h in this._layers)s.call(c,this._layers[h]);return this},getLayer:function(s){return this._layers[s]},getLayers:function(){var s=[];return this.eachLayer(s.push,s),s},setZIndex:function(s){return this.invoke("setZIndex",s)},getLayerId:function(s){return u(s)}}),Ar=function(s,c){return new ae(s,c)},jt=ae.extend({addLayer:function(s){return this.hasLayer(s)?this:(s.addEventParent(this),ae.prototype.addLayer.call(this,s),this.fire("layeradd",{layer:s}))},removeLayer:function(s){return this.hasLayer(s)?(s in this._layers&&(s=this._layers[s]),s.removeEventParent(this),ae.prototype.removeLayer.call(this,s),this.fire("layerremove",{layer:s})):this},setStyle:function(s){return this.invoke("setStyle",s)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var s=new st;for(var c in this._layers){var h=this._layers[c];s.extend(h.getBounds?h.getBounds():h.getLatLng())}return s}}),kr=function(s,c){return new jt(s,c)},se=z.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(s){E(this,s)},createIcon:function(s){return this._createIcon("icon",s)},createShadow:function(s){return this._createIcon("shadow",s)},_createIcon:function(s,c){var h=this._getIconUrl(s);if(!h){if(s==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var p=this._createImg(h,c&&c.tagName==="IMG"?c:null);return this._setIconStyles(p,s),(this.options.crossOrigin||this.options.crossOrigin==="")&&(p.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),p},_setIconStyles:function(s,c){var h=this.options,p=h[c+"Size"];typeof p=="number"&&(p=[p,p]);var b=K(p),P=K(c==="shadow"&&h.shadowAnchor||h.iconAnchor||b&&b.divideBy(2,!0));s.className="leaflet-marker-"+c+" "+(h.className||""),P&&(s.style.marginLeft=-P.x+"px",s.style.marginTop=-P.y+"px"),b&&(s.style.width=b.x+"px",s.style.height=b.y+"px")},_createImg:function(s,c){return c=c||document.createElement("img"),c.src=s,c},_getIconUrl:function(s){return nt.retina&&this.options[s+"RetinaUrl"]||this.options[s+"Url"]}});function Or(s){return new se(s)}var Me=se.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(s){return typeof Me.imagePath!="string"&&(Me.imagePath=this._detectIconPath()),(this.options.imagePath||Me.imagePath)+se.prototype._getIconUrl.call(this,s)},_stripUrl:function(s){var c=function(h,p,b){var P=p.exec(h);return P&&P[b]};return s=c(s,/^url\((['"])?(.+)\1\)$/,2),s&&c(s,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var s=dt("div","leaflet-default-icon-path",document.body),c=we(s,"background-image")||we(s,"backgroundImage");if(document.body.removeChild(s),c=this._stripUrl(c),c)return c;var h=document.querySelector('link[href$="leaflet.css"]');return h?h.href.substring(0,h.href.length-11-1):""}}),di=Rt.extend({initialize:function(s){this._marker=s},addHooks:function(){var s=this._marker._icon;this._draggable||(this._draggable=new Ut(s,s,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),lt(s,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&bt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(s){var c=this._marker,h=c._map,p=this._marker.options.autoPanSpeed,b=this._marker.options.autoPanPadding,P=Kt(c._icon),k=h.getPixelBounds(),H=h.getPixelOrigin(),B=et(k.min._subtract(H).add(b),k.max._subtract(H).subtract(b));if(!B.contains(P)){var X=K((Math.max(B.max.x,P.x)-B.max.x)/(k.max.x-B.max.x)-(Math.min(B.min.x,P.x)-B.min.x)/(k.min.x-B.min.x),(Math.max(B.max.y,P.y)-B.max.y)/(k.max.y-B.max.y)-(Math.min(B.min.y,P.y)-B.min.y)/(k.min.y-B.min.y)).multiplyBy(p);h.panBy(X,{animate:!1}),this._draggable._newPos._add(X),this._draggable._startPos._add(X),vt(c._icon,this._draggable._newPos),this._onDrag(s),this._panRequest=O(this._adjustPan.bind(this,s))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(s){this._marker.options.autoPan&&(A(this._panRequest),this._panRequest=O(this._adjustPan.bind(this,s)))},_onDrag:function(s){var c=this._marker,h=c._shadow,p=Kt(c._icon),b=c._map.layerPointToLatLng(p);h&&vt(h,p),c._latlng=b,s.latlng=b,s.oldLatLng=this._oldLatLng,c.fire("move",s).fire("drag",s)},_onDragEnd:function(s){A(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",s)}}),We=Lt.extend({options:{icon:new Me,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(s,c){E(this,c),this._latlng=J(s)},onAdd:function(s){this._zoomAnimated=this._zoomAnimated&&s.options.markerZoomAnimation,this._zoomAnimated&&s.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(s){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&s.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(s){var c=this._latlng;return this._latlng=J(s),this.update(),this.fire("move",{oldLatLng:c,latlng:this._latlng})},setZIndexOffset:function(s){return this.options.zIndexOffset=s,this.update()},getIcon:function(){return this.options.icon},setIcon:function(s){return this.options.icon=s,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var s=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(s)}return this},_initIcon:function(){var s=this.options,c="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),h=s.icon.createIcon(this._icon),p=!1;h!==this._icon&&(this._icon&&this._removeIcon(),p=!0,s.title&&(h.title=s.title),h.tagName==="IMG"&&(h.alt=s.alt||"")),lt(h,c),s.keyboard&&(h.tabIndex="0",h.setAttribute("role","button")),this._icon=h,s.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&ot(h,"focus",this._panOnFocus,this);var b=s.icon.createShadow(this._shadow),P=!1;b!==this._shadow&&(this._removeShadow(),P=!0),b&&(lt(b,c),b.alt=""),this._shadow=b,s.opacity<1&&this._updateOpacity(),p&&this.getPane().appendChild(this._icon),this._initInteraction(),b&&P&&this.getPane(s.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&mt(this._icon,"focus",this._panOnFocus,this),gt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&gt(this._shadow),this._shadow=null},_setPos:function(s){this._icon&&vt(this._icon,s),this._shadow&&vt(this._shadow,s),this._zIndex=s.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(s){this._icon&&(this._icon.style.zIndex=this._zIndex+s)},_animateZoom:function(s){var c=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center).round();this._setPos(c)},_initInteraction:function(){if(this.options.interactive&&(lt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),di)){var s=this.options.draggable;this.dragging&&(s=this.dragging.enabled(),this.dragging.disable()),this.dragging=new di(this),s&&this.dragging.enable()}},setOpacity:function(s){return this.options.opacity=s,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var s=this.options.opacity;this._icon&&At(this._icon,s),this._shadow&&At(this._shadow,s)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var s=this._map;if(s){var c=this.options.icon.options,h=c.iconSize?K(c.iconSize):K(0,0),p=c.iconAnchor?K(c.iconAnchor):K(0,0);s.panInside(this._latlng,{paddingTopLeft:p,paddingBottomRight:h.subtract(p)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Cr(s,c){return new We(s,c)}var Gt=Lt.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(s){this._renderer=s.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(s){return E(this,s),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&s&&Object.prototype.hasOwnProperty.call(s,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),je=Gt.extend({options:{fill:!0,radius:10},initialize:function(s,c){E(this,c),this._latlng=J(s),this._radius=this.options.radius},setLatLng:function(s){var c=this._latlng;return this._latlng=J(s),this.redraw(),this.fire("move",{oldLatLng:c,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(s){return this.options.radius=this._radius=s,this.redraw()},getRadius:function(){return this._radius},setStyle:function(s){var c=s&&s.radius||this._radius;return Gt.prototype.setStyle.call(this,s),this.setRadius(c),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var s=this._radius,c=this._radiusY||s,h=this._clickTolerance(),p=[s+h,c+h];this._pxBounds=new Z(this._point.subtract(p),this._point.add(p))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(s){return s.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Lr(s,c){return new je(s,c)}var Sn=je.extend({initialize:function(s,c,h){if(typeof c=="number"&&(c=r({},h,{radius:c})),E(this,c),this._latlng=J(s),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(s){return this._mRadius=s,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var s=[this._radius,this._radiusY||this._radius];return new st(this._map.layerPointToLatLng(this._point.subtract(s)),this._map.layerPointToLatLng(this._point.add(s)))},setStyle:Gt.prototype.setStyle,_project:function(){var s=this._latlng.lng,c=this._latlng.lat,h=this._map,p=h.options.crs;if(p.distance===_t.distance){var b=Math.PI/180,P=this._mRadius/_t.R/b,k=h.project([c+P,s]),H=h.project([c-P,s]),B=k.add(H).divideBy(2),X=h.unproject(B).lat,tt=Math.acos((Math.cos(P*b)-Math.sin(c*b)*Math.sin(X*b))/(Math.cos(c*b)*Math.cos(X*b)))/b;(isNaN(tt)||tt===0)&&(tt=P/Math.cos(Math.PI/180*c)),this._point=B.subtract(h.getPixelOrigin()),this._radius=isNaN(tt)?0:B.x-h.project([X,s-tt]).x,this._radiusY=B.y-k.y}else{var at=p.unproject(p.project(this._latlng).subtract([this._mRadius,0]));this._point=h.latLngToLayerPoint(this._latlng),this._radius=this._point.x-h.latLngToLayerPoint(at).x}this._updateBounds()}});function Dr(s,c,h){return new Sn(s,c,h)}var Ht=Gt.extend({options:{smoothFactor:1,noClip:!1},initialize:function(s,c){E(this,c),this._setLatLngs(s)},getLatLngs:function(){return this._latlngs},setLatLngs:function(s){return this._setLatLngs(s),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(s){for(var c=1/0,h=null,p=Te,b,P,k=0,H=this._parts.length;k<H;k++)for(var B=this._parts[k],X=1,tt=B.length;X<tt;X++){b=B[X-1],P=B[X];var at=p(s,b,P,!0);at<c&&(c=at,h=p(s,b,P))}return h&&(h.distance=Math.sqrt(c)),h},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return ci(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(s,c){return c=c||this._defaultShape(),s=J(s),c.push(s),this._bounds.extend(s),this.redraw()},_setLatLngs:function(s){this._bounds=new st,this._latlngs=this._convertLatLngs(s)},_defaultShape:function(){return kt(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(s){for(var c=[],h=kt(s),p=0,b=s.length;p<b;p++)h?(c[p]=J(s[p]),this._bounds.extend(c[p])):c[p]=this._convertLatLngs(s[p]);return c},_project:function(){var s=new Z;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,s),this._bounds.isValid()&&s.isValid()&&(this._rawPxBounds=s,this._updateBounds())},_updateBounds:function(){var s=this._clickTolerance(),c=new N(s,s);this._rawPxBounds&&(this._pxBounds=new Z([this._rawPxBounds.min.subtract(c),this._rawPxBounds.max.add(c)]))},_projectLatlngs:function(s,c,h){var p=s[0]instanceof Q,b=s.length,P,k;if(p){for(k=[],P=0;P<b;P++)k[P]=this._map.latLngToLayerPoint(s[P]),h.extend(k[P]);c.push(k)}else for(P=0;P<b;P++)this._projectLatlngs(s[P],c,h)},_clipPoints:function(){var s=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(s))){if(this.options.noClip){this._parts=this._rings;return}var c=this._parts,h,p,b,P,k,H,B;for(h=0,b=0,P=this._rings.length;h<P;h++)for(B=this._rings[h],p=0,k=B.length;p<k-1;p++)H=oi(B[p],B[p+1],s,p,!0),H&&(c[b]=c[b]||[],c[b].push(H[0]),(H[1]!==B[p+1]||p===k-2)&&(c[b].push(H[1]),b++))}},_simplifyPoints:function(){for(var s=this._parts,c=this.options.smoothFactor,h=0,p=s.length;h<p;h++)s[h]=ri(s[h],c)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(s,c){var h,p,b,P,k,H,B=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(s))return!1;for(h=0,P=this._parts.length;h<P;h++)for(H=this._parts[h],p=0,k=H.length,b=k-1;p<k;b=p++)if(!(!c&&p===0)&&ai(s,H[b],H[p])<=B)return!0;return!1}});function Nr(s,c){return new Ht(s,c)}Ht._flat=li;var oe=Ht.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return ii(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(s){var c=Ht.prototype._convertLatLngs.call(this,s),h=c.length;return h>=2&&c[0]instanceof Q&&c[0].equals(c[h-1])&&c.pop(),c},_setLatLngs:function(s){Ht.prototype._setLatLngs.call(this,s),kt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return kt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var s=this._renderer._bounds,c=this.options.weight,h=new N(c,c);if(s=new Z(s.min.subtract(h),s.max.add(h)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(s))){if(this.options.noClip){this._parts=this._rings;return}for(var p=0,b=this._rings.length,P;p<b;p++)P=ni(this._rings[p],s,!0),P.length&&this._parts.push(P)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(s){var c=!1,h,p,b,P,k,H,B,X;if(!this._pxBounds||!this._pxBounds.contains(s))return!1;for(P=0,B=this._parts.length;P<B;P++)for(h=this._parts[P],k=0,X=h.length,H=X-1;k<X;H=k++)p=h[k],b=h[H],p.y>s.y!=b.y>s.y&&s.x<(b.x-p.x)*(s.y-p.y)/(b.y-p.y)+p.x&&(c=!c);return c||Ht.prototype._containsPoint.call(this,s,!0)}});function Ir(s,c){return new oe(s,c)}var Vt=jt.extend({initialize:function(s,c){E(this,c),this._layers={},s&&this.addData(s)},addData:function(s){var c=R(s)?s:s.features,h,p,b;if(c){for(h=0,p=c.length;h<p;h++)b=c[h],(b.geometries||b.geometry||b.features||b.coordinates)&&this.addData(b);return this}var P=this.options;if(P.filter&&!P.filter(s))return this;var k=He(s,P);return k?(k.feature=Ye(s),k.defaultOptions=k.options,this.resetStyle(k),P.onEachFeature&&P.onEachFeature(s,k),this.addLayer(k)):this},resetStyle:function(s){return s===void 0?this.eachLayer(this.resetStyle,this):(s.options=r({},s.defaultOptions),this._setLayerStyle(s,this.options.style),this)},setStyle:function(s){return this.eachLayer(function(c){this._setLayerStyle(c,s)},this)},_setLayerStyle:function(s,c){s.setStyle&&(typeof c=="function"&&(c=c(s.feature)),s.setStyle(c))}});function He(s,c){var h=s.type==="Feature"?s.geometry:s,p=h?h.coordinates:null,b=[],P=c&&c.pointToLayer,k=c&&c.coordsToLatLng||Tn,H,B,X,tt;if(!p&&!h)return null;switch(h.type){case"Point":return H=k(p),hi(P,s,H,c);case"MultiPoint":for(X=0,tt=p.length;X<tt;X++)H=k(p[X]),b.push(hi(P,s,H,c));return new jt(b);case"LineString":case"MultiLineString":return B=Ve(p,h.type==="LineString"?0:1,k),new Ht(B,c);case"Polygon":case"MultiPolygon":return B=Ve(p,h.type==="Polygon"?1:2,k),new oe(B,c);case"GeometryCollection":for(X=0,tt=h.geometries.length;X<tt;X++){var at=He({geometry:h.geometries[X],type:"Feature",properties:s.properties},c);at&&b.push(at)}return new jt(b);case"FeatureCollection":for(X=0,tt=h.features.length;X<tt;X++){var ct=He(h.features[X],c);ct&&b.push(ct)}return new jt(b);default:throw new Error("Invalid GeoJSON object.")}}function hi(s,c,h,p){return s?s(c,h):new We(h,p&&p.markersInheritOptions&&p)}function Tn(s){return new Q(s[1],s[0],s[2])}function Ve(s,c,h){for(var p=[],b=0,P=s.length,k;b<P;b++)k=c?Ve(s[b],c-1,h):(h||Tn)(s[b]),p.push(k);return p}function Mn(s,c){return s=J(s),s.alt!==void 0?[_(s.lng,c),_(s.lat,c),_(s.alt,c)]:[_(s.lng,c),_(s.lat,c)]}function Be(s,c,h,p){for(var b=[],P=0,k=s.length;P<k;P++)b.push(c?Be(s[P],kt(s[P])?0:c-1,h,p):Mn(s[P],p));return!c&&h&&b.length>0&&b.push(b[0].slice()),b}function le(s,c){return s.feature?r({},s.feature,{geometry:c}):Ye(c)}function Ye(s){return s.type==="Feature"||s.type==="FeatureCollection"?s:{type:"Feature",properties:{},geometry:s}}var An={toGeoJSON:function(s){return le(this,{type:"Point",coordinates:Mn(this.getLatLng(),s)})}};We.include(An),Sn.include(An),je.include(An),Ht.include({toGeoJSON:function(s){var c=!kt(this._latlngs),h=Be(this._latlngs,c?1:0,!1,s);return le(this,{type:(c?"Multi":"")+"LineString",coordinates:h})}}),oe.include({toGeoJSON:function(s){var c=!kt(this._latlngs),h=c&&!kt(this._latlngs[0]),p=Be(this._latlngs,h?2:c?1:0,!0,s);return c||(p=[p]),le(this,{type:(h?"Multi":"")+"Polygon",coordinates:p})}}),ae.include({toMultiPoint:function(s){var c=[];return this.eachLayer(function(h){c.push(h.toGeoJSON(s).geometry.coordinates)}),le(this,{type:"MultiPoint",coordinates:c})},toGeoJSON:function(s){var c=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(c==="MultiPoint")return this.toMultiPoint(s);var h=c==="GeometryCollection",p=[];return this.eachLayer(function(b){if(b.toGeoJSON){var P=b.toGeoJSON(s);if(h)p.push(P.geometry);else{var k=Ye(P);k.type==="FeatureCollection"?p.push.apply(p,k.features):p.push(k)}}}),h?le(this,{geometries:p,type:"GeometryCollection"}):{type:"FeatureCollection",features:p}}});function mi(s,c){return new Vt(s,c)}var Fr=mi,Ue=Lt.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(s,c,h){this._url=s,this._bounds=rt(c),E(this,h)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(lt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){gt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(s){return this.options.opacity=s,this._image&&this._updateOpacity(),this},setStyle:function(s){return s.opacity&&this.setOpacity(s.opacity),this},bringToFront:function(){return this._map&&ie(this._image),this},bringToBack:function(){return this._map&&re(this._image),this},setUrl:function(s){return this._url=s,this._image&&(this._image.src=s),this},setBounds:function(s){return this._bounds=rt(s),this._map&&this._reset(),this},getEvents:function(){var s={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},setZIndex:function(s){return this.options.zIndex=s,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var s=this._url.tagName==="IMG",c=this._image=s?this._url:dt("img");if(lt(c,"leaflet-image-layer"),this._zoomAnimated&&lt(c,"leaflet-zoom-animated"),this.options.className&&lt(c,this.options.className),c.onselectstart=g,c.onmousemove=g,c.onload=o(this.fire,this,"load"),c.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(c.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),s){this._url=c.src;return}c.src=this._url,c.alt=this.options.alt},_animateZoom:function(s){var c=this._map.getZoomScale(s.zoom),h=this._map._latLngBoundsToNewLayerBounds(this._bounds,s.zoom,s.center).min;qt(this._image,h,c)},_reset:function(){var s=this._image,c=new Z(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),h=c.getSize();vt(s,c.min),s.style.width=h.x+"px",s.style.height=h.y+"px"},_updateOpacity:function(){At(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var s=this.options.errorOverlayUrl;s&&this._url!==s&&(this._url=s,this._image.src=s)},getCenter:function(){return this._bounds.getCenter()}}),Rr=function(s,c,h){return new Ue(s,c,h)},pi=Ue.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var s=this._url.tagName==="VIDEO",c=this._image=s?this._url:dt("video");if(lt(c,"leaflet-image-layer"),this._zoomAnimated&&lt(c,"leaflet-zoom-animated"),this.options.className&&lt(c,this.options.className),c.onselectstart=g,c.onmousemove=g,c.onloadeddata=o(this.fire,this,"load"),s){for(var h=c.getElementsByTagName("source"),p=[],b=0;b<h.length;b++)p.push(h[b].src);this._url=h.length>0?p:[c.src];return}R(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(c.style,"objectFit")&&(c.style.objectFit="fill"),c.autoplay=!!this.options.autoplay,c.loop=!!this.options.loop,c.muted=!!this.options.muted,c.playsInline=!!this.options.playsInline;for(var P=0;P<this._url.length;P++){var k=dt("source");k.src=this._url[P],c.appendChild(k)}}});function zr(s,c,h){return new pi(s,c,h)}var gi=Ue.extend({_initImage:function(){var s=this._image=this._url;lt(s,"leaflet-image-layer"),this._zoomAnimated&&lt(s,"leaflet-zoom-animated"),this.options.className&&lt(s,this.options.className),s.onselectstart=g,s.onmousemove=g}});function Wr(s,c,h){return new gi(s,c,h)}var zt=Lt.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(s,c){s&&(s instanceof Q||R(s))?(this._latlng=J(s),E(this,c)):(E(this,s),this._source=c),this.options.content&&(this._content=this.options.content)},openOn:function(s){return s=arguments.length?s:this._source._map,s.hasLayer(this)||s.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(s){return this._map?this.close():(arguments.length?this._source=s:s=this._source,this._prepareOpen(),this.openOn(s._map)),this},onAdd:function(s){this._zoomAnimated=s._zoomAnimated,this._container||this._initLayout(),s._fadeAnimated&&At(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),s._fadeAnimated&&At(this._container,1),this.bringToFront(),this.options.interactive&&(lt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(s){s._fadeAnimated?(At(this._container,0),this._removeTimeout=setTimeout(o(gt,void 0,this._container),200)):gt(this._container),this.options.interactive&&(bt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(s){return this._latlng=J(s),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(s){return this._content=s,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var s={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ie(this._container),this},bringToBack:function(){return this._map&&re(this._container),this},_prepareOpen:function(s){var c=this._source;if(!c._map)return!1;if(c instanceof jt){c=null;var h=this._source._layers;for(var p in h)if(h[p]._map){c=h[p];break}if(!c)return!1;this._source=c}if(!s)if(c.getCenter)s=c.getCenter();else if(c.getLatLng)s=c.getLatLng();else if(c.getBounds)s=c.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(s),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var s=this._contentNode,c=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof c=="string")s.innerHTML=c;else{for(;s.hasChildNodes();)s.removeChild(s.firstChild);s.appendChild(c)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var s=this._map.latLngToLayerPoint(this._latlng),c=K(this.options.offset),h=this._getAnchor();this._zoomAnimated?vt(this._container,s.add(h)):c=c.add(s).add(h);var p=this._containerBottom=-c.y,b=this._containerLeft=-Math.round(this._containerWidth/2)+c.x;this._container.style.bottom=p+"px",this._container.style.left=b+"px"}},_getAnchor:function(){return[0,0]}});ut.include({_initOverlay:function(s,c,h,p){var b=c;return b instanceof s||(b=new s(p).setContent(c)),h&&b.setLatLng(h),b}}),Lt.include({_initOverlay:function(s,c,h,p){var b=h;return b instanceof s?(E(b,p),b._source=this):(b=c&&!p?c:new s(p,this),b.setContent(h)),b}});var Ge=zt.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(s){return s=arguments.length?s:this._source._map,!s.hasLayer(this)&&s._popup&&s._popup.options.autoClose&&s.removeLayer(s._popup),s._popup=this,zt.prototype.openOn.call(this,s)},onAdd:function(s){zt.prototype.onAdd.call(this,s),s.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Gt||this._source.on("preclick",Xt))},onRemove:function(s){zt.prototype.onRemove.call(this,s),s.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Gt||this._source.off("preclick",Xt))},getEvents:function(){var s=zt.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(s.preclick=this.close),this.options.keepInView&&(s.moveend=this._adjustPan),s},_initLayout:function(){var s="leaflet-popup",c=this._container=dt("div",s+" "+(this.options.className||"")+" leaflet-zoom-animated"),h=this._wrapper=dt("div",s+"-content-wrapper",c);if(this._contentNode=dt("div",s+"-content",h),xe(c),bn(this._contentNode),ot(c,"contextmenu",Xt),this._tipContainer=dt("div",s+"-tip-container",c),this._tip=dt("div",s+"-tip",this._tipContainer),this.options.closeButton){var p=this._closeButton=dt("a",s+"-close-button",c);p.setAttribute("role","button"),p.setAttribute("aria-label","Close popup"),p.href="#close",p.innerHTML='<span aria-hidden="true">&#215;</span>',ot(p,"click",function(b){xt(b),this.close()},this)}},_updateLayout:function(){var s=this._contentNode,c=s.style;c.width="",c.whiteSpace="nowrap";var h=s.offsetWidth;h=Math.min(h,this.options.maxWidth),h=Math.max(h,this.options.minWidth),c.width=h+1+"px",c.whiteSpace="",c.height="";var p=s.offsetHeight,b=this.options.maxHeight,P="leaflet-popup-scrolled";b&&p>b?(c.height=b+"px",lt(s,P)):bt(s,P),this._containerWidth=this._container.offsetWidth},_animateZoom:function(s){var c=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center),h=this._getAnchor();vt(this._container,c.add(h))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var s=this._map,c=parseInt(we(this._container,"marginBottom"),10)||0,h=this._container.offsetHeight+c,p=this._containerWidth,b=new N(this._containerLeft,-h-this._containerBottom);b._add(Kt(this._container));var P=s.layerPointToContainerPoint(b),k=K(this.options.autoPanPadding),H=K(this.options.autoPanPaddingTopLeft||k),B=K(this.options.autoPanPaddingBottomRight||k),X=s.getSize(),tt=0,at=0;P.x+p+B.x>X.x&&(tt=P.x+p-X.x+B.x),P.x-tt-H.x<0&&(tt=P.x-H.x),P.y+h+B.y>X.y&&(at=P.y+h-X.y+B.y),P.y-at-H.y<0&&(at=P.y-H.y),(tt||at)&&(this.options.keepInView&&(this._autopanning=!0),s.fire("autopanstart").panBy([tt,at]))}},_getAnchor:function(){return K(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),jr=function(s,c){return new Ge(s,c)};ut.mergeOptions({closePopupOnClick:!0}),ut.include({openPopup:function(s,c,h){return this._initOverlay(Ge,s,c,h).openOn(this),this},closePopup:function(s){return s=arguments.length?s:this._popup,s&&s.close(),this}}),Lt.include({bindPopup:function(s,c){return this._popup=this._initOverlay(Ge,this._popup,s,c),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(s){return this._popup&&(this instanceof jt||(this._popup._source=this),this._popup._prepareOpen(s||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(s){return this._popup&&this._popup.setContent(s),this},getPopup:function(){return this._popup},_openPopup:function(s){if(!(!this._popup||!this._map)){Zt(s);var c=s.layer||s.target;if(this._popup._source===c&&!(c instanceof Gt)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(s.latlng);return}this._popup._source=c,this.openPopup(s.latlng)}},_movePopup:function(s){this._popup.setLatLng(s.latlng)},_onKeyPress:function(s){s.originalEvent.keyCode===13&&this._openPopup(s)}});var qe=zt.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(s){zt.prototype.onAdd.call(this,s),this.setOpacity(this.options.opacity),s.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(s){zt.prototype.onRemove.call(this,s),s.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var s=zt.prototype.getEvents.call(this);return this.options.permanent||(s.preclick=this.close),s},_initLayout:function(){var s="leaflet-tooltip",c=s+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=dt("div",c),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+u(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(s){var c,h,p=this._map,b=this._container,P=p.latLngToContainerPoint(p.getCenter()),k=p.layerPointToContainerPoint(s),H=this.options.direction,B=b.offsetWidth,X=b.offsetHeight,tt=K(this.options.offset),at=this._getAnchor();H==="top"?(c=B/2,h=X):H==="bottom"?(c=B/2,h=0):H==="center"?(c=B/2,h=X/2):H==="right"?(c=0,h=X/2):H==="left"?(c=B,h=X/2):k.x<P.x?(H="right",c=0,h=X/2):(H="left",c=B+(tt.x+at.x)*2,h=X/2),s=s.subtract(K(c,h,!0)).add(tt).add(at),bt(b,"leaflet-tooltip-right"),bt(b,"leaflet-tooltip-left"),bt(b,"leaflet-tooltip-top"),bt(b,"leaflet-tooltip-bottom"),lt(b,"leaflet-tooltip-"+H),vt(b,s)},_updatePosition:function(){var s=this._map.latLngToLayerPoint(this._latlng);this._setPosition(s)},setOpacity:function(s){this.options.opacity=s,this._container&&At(this._container,s)},_animateZoom:function(s){var c=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center);this._setPosition(c)},_getAnchor:function(){return K(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Hr=function(s,c){return new qe(s,c)};ut.include({openTooltip:function(s,c,h){return this._initOverlay(qe,s,c,h).openOn(this),this},closeTooltip:function(s){return s.close(),this}}),Lt.include({bindTooltip:function(s,c){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(qe,this._tooltip,s,c),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(s){if(!(!s&&this._tooltipHandlersAdded)){var c=s?"off":"on",h={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?h.add=this._openTooltip:(h.mouseover=this._openTooltip,h.mouseout=this.closeTooltip,h.click=this._openTooltip,this._map?this._addFocusListeners():h.add=this._addFocusListeners),this._tooltip.options.sticky&&(h.mousemove=this._moveTooltip),this[c](h),this._tooltipHandlersAdded=!s}},openTooltip:function(s){return this._tooltip&&(this instanceof jt||(this._tooltip._source=this),this._tooltip._prepareOpen(s)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(s){return this._tooltip&&this._tooltip.setContent(s),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(s){var c=typeof s.getElement=="function"&&s.getElement();c&&(ot(c,"focus",function(){this._tooltip._source=s,this.openTooltip()},this),ot(c,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(s){var c=typeof s.getElement=="function"&&s.getElement();c&&c.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(s){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var c=this;this._map.once("moveend",function(){c._openOnceFlag=!1,c._openTooltip(s)});return}this._tooltip._source=s.layer||s.target,this.openTooltip(this._tooltip.options.sticky?s.latlng:void 0)}},_moveTooltip:function(s){var c=s.latlng,h,p;this._tooltip.options.sticky&&s.originalEvent&&(h=this._map.mouseEventToContainerPoint(s.originalEvent),p=this._map.containerPointToLayerPoint(h),c=this._map.layerPointToLatLng(p)),this._tooltip.setLatLng(c)}});var _i=se.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(s){var c=s&&s.tagName==="DIV"?s:document.createElement("div"),h=this.options;if(h.html instanceof Element?(De(c),c.appendChild(h.html)):c.innerHTML=h.html!==!1?h.html:"",h.bgPos){var p=K(h.bgPos);c.style.backgroundPosition=-p.x+"px "+-p.y+"px"}return this._setIconStyles(c,"icon"),c},createShadow:function(){return null}});function Vr(s){return new _i(s)}se.Default=Me;var Ae=Lt.extend({options:{tileSize:256,opacity:1,updateWhenIdle:nt.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(s){E(this,s)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(s){s._addZoomLimit(this)},onRemove:function(s){this._removeAllTiles(),gt(this._container),s._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ie(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(re(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(s){return this.options.opacity=s,this._updateOpacity(),this},setZIndex:function(s){return this.options.zIndex=s,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var s=this._clampZoom(this._map.getZoom());s!==this._tileZoom&&(this._tileZoom=s,this._updateLevels()),this._update()}return this},getEvents:function(){var s={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=d(this._onMoveEnd,this.options.updateInterval,this)),s.move=this._onMove),this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},createTile:function(){return document.createElement("div")},getTileSize:function(){var s=this.options.tileSize;return s instanceof N?s:new N(s,s)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(s){for(var c=this.getPane().children,h=-s(-1/0,1/0),p=0,b=c.length,P;p<b;p++)P=c[p].style.zIndex,c[p]!==this._container&&P&&(h=s(h,+P));isFinite(h)&&(this.options.zIndex=h+s(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!nt.ielt9){At(this._container,this.options.opacity);var s=+new Date,c=!1,h=!1;for(var p in this._tiles){var b=this._tiles[p];if(!(!b.current||!b.loaded)){var P=Math.min(1,(s-b.loaded)/200);At(b.el,P),P<1?c=!0:(b.active?h=!0:this._onOpaqueTile(b),b.active=!0)}}h&&!this._noPrune&&this._pruneTiles(),c&&(A(this._fadeFrame),this._fadeFrame=O(this._updateOpacity,this))}},_onOpaqueTile:g,_initContainer:function(){this._container||(this._container=dt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var s=this._tileZoom,c=this.options.maxZoom;if(s!==void 0){for(var h in this._levels)h=Number(h),this._levels[h].el.children.length||h===s?(this._levels[h].el.style.zIndex=c-Math.abs(s-h),this._onUpdateLevel(h)):(gt(this._levels[h].el),this._removeTilesAtZoom(h),this._onRemoveLevel(h),delete this._levels[h]);var p=this._levels[s],b=this._map;return p||(p=this._levels[s]={},p.el=dt("div","leaflet-tile-container leaflet-zoom-animated",this._container),p.el.style.zIndex=c,p.origin=b.project(b.unproject(b.getPixelOrigin()),s).round(),p.zoom=s,this._setZoomTransform(p,b.getCenter(),b.getZoom()),g(p.el.offsetWidth),this._onCreateLevel(p)),this._level=p,p}},_onUpdateLevel:g,_onRemoveLevel:g,_onCreateLevel:g,_pruneTiles:function(){if(this._map){var s,c,h=this._map.getZoom();if(h>this.options.maxZoom||h<this.options.minZoom){this._removeAllTiles();return}for(s in this._tiles)c=this._tiles[s],c.retain=c.current;for(s in this._tiles)if(c=this._tiles[s],c.current&&!c.active){var p=c.coords;this._retainParent(p.x,p.y,p.z,p.z-5)||this._retainChildren(p.x,p.y,p.z,p.z+2)}for(s in this._tiles)this._tiles[s].retain||this._removeTile(s)}},_removeTilesAtZoom:function(s){for(var c in this._tiles)this._tiles[c].coords.z===s&&this._removeTile(c)},_removeAllTiles:function(){for(var s in this._tiles)this._removeTile(s)},_invalidateAll:function(){for(var s in this._levels)gt(this._levels[s].el),this._onRemoveLevel(Number(s)),delete this._levels[s];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(s,c,h,p){var b=Math.floor(s/2),P=Math.floor(c/2),k=h-1,H=new N(+b,+P);H.z=+k;var B=this._tileCoordsToKey(H),X=this._tiles[B];return X&&X.active?(X.retain=!0,!0):(X&&X.loaded&&(X.retain=!0),k>p?this._retainParent(b,P,k,p):!1)},_retainChildren:function(s,c,h,p){for(var b=2*s;b<2*s+2;b++)for(var P=2*c;P<2*c+2;P++){var k=new N(b,P);k.z=h+1;var H=this._tileCoordsToKey(k),B=this._tiles[H];if(B&&B.active){B.retain=!0;continue}else B&&B.loaded&&(B.retain=!0);h+1<p&&this._retainChildren(b,P,h+1,p)}},_resetView:function(s){var c=s&&(s.pinch||s.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),c,c)},_animateZoom:function(s){this._setView(s.center,s.zoom,!0,s.noUpdate)},_clampZoom:function(s){var c=this.options;return c.minNativeZoom!==void 0&&s<c.minNativeZoom?c.minNativeZoom:c.maxNativeZoom!==void 0&&c.maxNativeZoom<s?c.maxNativeZoom:s},_setView:function(s,c,h,p){var b=Math.round(c);this.options.maxZoom!==void 0&&b>this.options.maxZoom||this.options.minZoom!==void 0&&b<this.options.minZoom?b=void 0:b=this._clampZoom(b);var P=this.options.updateWhenZooming&&b!==this._tileZoom;(!p||P)&&(this._tileZoom=b,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),b!==void 0&&this._update(s),h||this._pruneTiles(),this._noPrune=!!h),this._setZoomTransforms(s,c)},_setZoomTransforms:function(s,c){for(var h in this._levels)this._setZoomTransform(this._levels[h],s,c)},_setZoomTransform:function(s,c,h){var p=this._map.getZoomScale(h,s.zoom),b=s.origin.multiplyBy(p).subtract(this._map._getNewPixelOrigin(c,h)).round();nt.any3d?qt(s.el,b,p):vt(s.el,b)},_resetGrid:function(){var s=this._map,c=s.options.crs,h=this._tileSize=this.getTileSize(),p=this._tileZoom,b=this._map.getPixelWorldBounds(this._tileZoom);b&&(this._globalTileRange=this._pxBoundsToTileRange(b)),this._wrapX=c.wrapLng&&!this.options.noWrap&&[Math.floor(s.project([0,c.wrapLng[0]],p).x/h.x),Math.ceil(s.project([0,c.wrapLng[1]],p).x/h.y)],this._wrapY=c.wrapLat&&!this.options.noWrap&&[Math.floor(s.project([c.wrapLat[0],0],p).y/h.x),Math.ceil(s.project([c.wrapLat[1],0],p).y/h.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(s){var c=this._map,h=c._animatingZoom?Math.max(c._animateToZoom,c.getZoom()):c.getZoom(),p=c.getZoomScale(h,this._tileZoom),b=c.project(s,this._tileZoom).floor(),P=c.getSize().divideBy(p*2);return new Z(b.subtract(P),b.add(P))},_update:function(s){var c=this._map;if(c){var h=this._clampZoom(c.getZoom());if(s===void 0&&(s=c.getCenter()),this._tileZoom!==void 0){var p=this._getTiledPixelBounds(s),b=this._pxBoundsToTileRange(p),P=b.getCenter(),k=[],H=this.options.keepBuffer,B=new Z(b.getBottomLeft().subtract([H,-H]),b.getTopRight().add([H,-H]));if(!(isFinite(b.min.x)&&isFinite(b.min.y)&&isFinite(b.max.x)&&isFinite(b.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var X in this._tiles){var tt=this._tiles[X].coords;(tt.z!==this._tileZoom||!B.contains(new N(tt.x,tt.y)))&&(this._tiles[X].current=!1)}if(Math.abs(h-this._tileZoom)>1){this._setView(s,h);return}for(var at=b.min.y;at<=b.max.y;at++)for(var ct=b.min.x;ct<=b.max.x;ct++){var St=new N(ct,at);if(St.z=this._tileZoom,!!this._isValidTile(St)){var $t=this._tiles[this._tileCoordsToKey(St)];$t?$t.current=!0:k.push(St)}}if(k.sort(function(Tt,he){return Tt.distanceTo(P)-he.distanceTo(P)}),k.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Ot=document.createDocumentFragment();for(ct=0;ct<k.length;ct++)this._addTile(k[ct],Ot);this._level.el.appendChild(Ot)}}}},_isValidTile:function(s){var c=this._map.options.crs;if(!c.infinite){var h=this._globalTileRange;if(!c.wrapLng&&(s.x<h.min.x||s.x>h.max.x)||!c.wrapLat&&(s.y<h.min.y||s.y>h.max.y))return!1}if(!this.options.bounds)return!0;var p=this._tileCoordsToBounds(s);return rt(this.options.bounds).overlaps(p)},_keyToBounds:function(s){return this._tileCoordsToBounds(this._keyToTileCoords(s))},_tileCoordsToNwSe:function(s){var c=this._map,h=this.getTileSize(),p=s.scaleBy(h),b=p.add(h),P=c.unproject(p,s.z),k=c.unproject(b,s.z);return[P,k]},_tileCoordsToBounds:function(s){var c=this._tileCoordsToNwSe(s),h=new st(c[0],c[1]);return this.options.noWrap||(h=this._map.wrapLatLngBounds(h)),h},_tileCoordsToKey:function(s){return s.x+":"+s.y+":"+s.z},_keyToTileCoords:function(s){var c=s.split(":"),h=new N(+c[0],+c[1]);return h.z=+c[2],h},_removeTile:function(s){var c=this._tiles[s];c&&(gt(c.el),delete this._tiles[s],this.fire("tileunload",{tile:c.el,coords:this._keyToTileCoords(s)}))},_initTile:function(s){lt(s,"leaflet-tile");var c=this.getTileSize();s.style.width=c.x+"px",s.style.height=c.y+"px",s.onselectstart=g,s.onmousemove=g,nt.ielt9&&this.options.opacity<1&&At(s,this.options.opacity)},_addTile:function(s,c){var h=this._getTilePos(s),p=this._tileCoordsToKey(s),b=this.createTile(this._wrapCoords(s),o(this._tileReady,this,s));this._initTile(b),this.createTile.length<2&&O(o(this._tileReady,this,s,null,b)),vt(b,h),this._tiles[p]={el:b,coords:s,current:!0},c.appendChild(b),this.fire("tileloadstart",{tile:b,coords:s})},_tileReady:function(s,c,h){c&&this.fire("tileerror",{error:c,tile:h,coords:s});var p=this._tileCoordsToKey(s);h=this._tiles[p],h&&(h.loaded=+new Date,this._map._fadeAnimated?(At(h.el,0),A(this._fadeFrame),this._fadeFrame=O(this._updateOpacity,this)):(h.active=!0,this._pruneTiles()),c||(lt(h.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:h.el,coords:s})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),nt.ielt9||!this._map._fadeAnimated?O(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(s){return s.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(s){var c=new N(this._wrapX?m(s.x,this._wrapX):s.x,this._wrapY?m(s.y,this._wrapY):s.y);return c.z=s.z,c},_pxBoundsToTileRange:function(s){var c=this.getTileSize();return new Z(s.min.unscaleBy(c).floor(),s.max.unscaleBy(c).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var s in this._tiles)if(!this._tiles[s].loaded)return!1;return!0}});function Br(s){return new Ae(s)}var ue=Ae.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(s,c){this._url=s,c=E(this,c),c.detectRetina&&nt.retina&&c.maxZoom>0?(c.tileSize=Math.floor(c.tileSize/2),c.zoomReverse?(c.zoomOffset--,c.minZoom=Math.min(c.maxZoom,c.minZoom+1)):(c.zoomOffset++,c.maxZoom=Math.max(c.minZoom,c.maxZoom-1)),c.minZoom=Math.max(0,c.minZoom)):c.zoomReverse?c.minZoom=Math.min(c.maxZoom,c.minZoom):c.maxZoom=Math.max(c.minZoom,c.maxZoom),typeof c.subdomains=="string"&&(c.subdomains=c.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(s,c){return this._url===s&&c===void 0&&(c=!0),this._url=s,c||this.redraw(),this},createTile:function(s,c){var h=document.createElement("img");return ot(h,"load",o(this._tileOnLoad,this,c,h)),ot(h,"error",o(this._tileOnError,this,c,h)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(h.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(h.referrerPolicy=this.options.referrerPolicy),h.alt="",h.src=this.getTileUrl(s),h},getTileUrl:function(s){var c={r:nt.retina?"@2x":"",s:this._getSubdomain(s),x:s.x,y:s.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var h=this._globalTileRange.max.y-s.y;this.options.tms&&(c.y=h),c["-y"]=h}return S(this._url,r(c,this.options))},_tileOnLoad:function(s,c){nt.ielt9?setTimeout(o(s,this,null,c),0):s(null,c)},_tileOnError:function(s,c,h){var p=this.options.errorTileUrl;p&&c.getAttribute("src")!==p&&(c.src=p),s(h,c)},_onTileRemove:function(s){s.tile.onload=null},_getZoomForUrl:function(){var s=this._tileZoom,c=this.options.maxZoom,h=this.options.zoomReverse,p=this.options.zoomOffset;return h&&(s=c-s),s+p},_getSubdomain:function(s){var c=Math.abs(s.x+s.y)%this.options.subdomains.length;return this.options.subdomains[c]},_abortLoading:function(){var s,c;for(s in this._tiles)if(this._tiles[s].coords.z!==this._tileZoom&&(c=this._tiles[s].el,c.onload=g,c.onerror=g,!c.complete)){c.src=V;var h=this._tiles[s].coords;gt(c),delete this._tiles[s],this.fire("tileabort",{tile:c,coords:h})}},_removeTile:function(s){var c=this._tiles[s];if(c)return c.el.setAttribute("src",V),Ae.prototype._removeTile.call(this,s)},_tileReady:function(s,c,h){if(!(!this._map||h&&h.getAttribute("src")===V))return Ae.prototype._tileReady.call(this,s,c,h)}});function bi(s,c){return new ue(s,c)}var yi=ue.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(s,c){this._url=s;var h=r({},this.defaultWmsParams);for(var p in c)p in this.options||(h[p]=c[p]);c=E(this,c);var b=c.detectRetina&&nt.retina?2:1,P=this.getTileSize();h.width=P.x*b,h.height=P.y*b,this.wmsParams=h},onAdd:function(s){this._crs=this.options.crs||s.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var c=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[c]=this._crs.code,ue.prototype.onAdd.call(this,s)},getTileUrl:function(s){var c=this._tileCoordsToNwSe(s),h=this._crs,p=et(h.project(c[0]),h.project(c[1])),b=p.min,P=p.max,k=(this._wmsVersion>=1.3&&this._crs===ui?[b.y,b.x,P.y,P.x]:[b.x,b.y,P.x,P.y]).join(","),H=ue.prototype.getTileUrl.call(this,s);return H+x(this.wmsParams,H,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+k},setParams:function(s,c){return r(this.wmsParams,s),c||this.redraw(),this}});function Yr(s,c){return new yi(s,c)}ue.WMS=yi,bi.wms=Yr;var Bt=Lt.extend({options:{padding:.1},initialize:function(s){E(this,s),u(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),lt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var s={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(s.zoomanim=this._onAnimZoom),s},_onAnimZoom:function(s){this._updateTransform(s.center,s.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(s,c){var h=this._map.getZoomScale(c,this._zoom),p=this._map.getSize().multiplyBy(.5+this.options.padding),b=this._map.project(this._center,c),P=p.multiplyBy(-h).add(b).subtract(this._map._getNewPixelOrigin(s,c));nt.any3d?qt(this._container,P,h):vt(this._container,P)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var s in this._layers)this._layers[s]._reset()},_onZoomEnd:function(){for(var s in this._layers)this._layers[s]._project()},_updatePaths:function(){for(var s in this._layers)this._layers[s]._update()},_update:function(){var s=this.options.padding,c=this._map.getSize(),h=this._map.containerPointToLayerPoint(c.multiplyBy(-s)).round();this._bounds=new Z(h,h.add(c.multiplyBy(1+s*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),wi=Bt.extend({options:{tolerance:0},getEvents:function(){var s=Bt.prototype.getEvents.call(this);return s.viewprereset=this._onViewPreReset,s},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Bt.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var s=this._container=document.createElement("canvas");ot(s,"mousemove",this._onMouseMove,this),ot(s,"click dblclick mousedown mouseup contextmenu",this._onClick,this),ot(s,"mouseout",this._handleMouseOut,this),s._leaflet_disable_events=!0,this._ctx=s.getContext("2d")},_destroyContainer:function(){A(this._redrawRequest),delete this._ctx,gt(this._container),mt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var s;this._redrawBounds=null;for(var c in this._layers)s=this._layers[c],s._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Bt.prototype._update.call(this);var s=this._bounds,c=this._container,h=s.getSize(),p=nt.retina?2:1;vt(c,s.min),c.width=p*h.x,c.height=p*h.y,c.style.width=h.x+"px",c.style.height=h.y+"px",nt.retina&&this._ctx.scale(2,2),this._ctx.translate(-s.min.x,-s.min.y),this.fire("update")}},_reset:function(){Bt.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(s){this._updateDashArray(s),this._layers[u(s)]=s;var c=s._order={layer:s,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=c),this._drawLast=c,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(s){this._requestRedraw(s)},_removePath:function(s){var c=s._order,h=c.next,p=c.prev;h?h.prev=p:this._drawLast=p,p?p.next=h:this._drawFirst=h,delete s._order,delete this._layers[u(s)],this._requestRedraw(s)},_updatePath:function(s){this._extendRedrawBounds(s),s._project(),s._update(),this._requestRedraw(s)},_updateStyle:function(s){this._updateDashArray(s),this._requestRedraw(s)},_updateDashArray:function(s){if(typeof s.options.dashArray=="string"){var c=s.options.dashArray.split(/[, ]+/),h=[],p,b;for(b=0;b<c.length;b++){if(p=Number(c[b]),isNaN(p))return;h.push(p)}s.options._dashArray=h}else s.options._dashArray=s.options.dashArray},_requestRedraw:function(s){this._map&&(this._extendRedrawBounds(s),this._redrawRequest=this._redrawRequest||O(this._redraw,this))},_extendRedrawBounds:function(s){if(s._pxBounds){var c=(s.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new Z,this._redrawBounds.extend(s._pxBounds.min.subtract([c,c])),this._redrawBounds.extend(s._pxBounds.max.add([c,c]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var s=this._redrawBounds;if(s){var c=s.getSize();this._ctx.clearRect(s.min.x,s.min.y,c.x,c.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var s,c=this._redrawBounds;if(this._ctx.save(),c){var h=c.getSize();this._ctx.beginPath(),this._ctx.rect(c.min.x,c.min.y,h.x,h.y),this._ctx.clip()}this._drawing=!0;for(var p=this._drawFirst;p;p=p.next)s=p.layer,(!c||s._pxBounds&&s._pxBounds.intersects(c))&&s._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(s,c){if(this._drawing){var h,p,b,P,k=s._parts,H=k.length,B=this._ctx;if(H){for(B.beginPath(),h=0;h<H;h++){for(p=0,b=k[h].length;p<b;p++)P=k[h][p],B[p?"lineTo":"moveTo"](P.x,P.y);c&&B.closePath()}this._fillStroke(B,s)}}},_updateCircle:function(s){if(!(!this._drawing||s._empty())){var c=s._point,h=this._ctx,p=Math.max(Math.round(s._radius),1),b=(Math.max(Math.round(s._radiusY),1)||p)/p;b!==1&&(h.save(),h.scale(1,b)),h.beginPath(),h.arc(c.x,c.y/b,p,0,Math.PI*2,!1),b!==1&&h.restore(),this._fillStroke(h,s)}},_fillStroke:function(s,c){var h=c.options;h.fill&&(s.globalAlpha=h.fillOpacity,s.fillStyle=h.fillColor||h.color,s.fill(h.fillRule||"evenodd")),h.stroke&&h.weight!==0&&(s.setLineDash&&s.setLineDash(c.options&&c.options._dashArray||[]),s.globalAlpha=h.opacity,s.lineWidth=h.weight,s.strokeStyle=h.color,s.lineCap=h.lineCap,s.lineJoin=h.lineJoin,s.stroke())},_onClick:function(s){for(var c=this._map.mouseEventToLayerPoint(s),h,p,b=this._drawFirst;b;b=b.next)h=b.layer,h.options.interactive&&h._containsPoint(c)&&(!(s.type==="click"||s.type==="preclick")||!this._map._draggableMoved(h))&&(p=h);this._fireEvent(p?[p]:!1,s)},_onMouseMove:function(s){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var c=this._map.mouseEventToLayerPoint(s);this._handleMouseHover(s,c)}},_handleMouseOut:function(s){var c=this._hoveredLayer;c&&(bt(this._container,"leaflet-interactive"),this._fireEvent([c],s,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(s,c){if(!this._mouseHoverThrottled){for(var h,p,b=this._drawFirst;b;b=b.next)h=b.layer,h.options.interactive&&h._containsPoint(c)&&(p=h);p!==this._hoveredLayer&&(this._handleMouseOut(s),p&&(lt(this._container,"leaflet-interactive"),this._fireEvent([p],s,"mouseover"),this._hoveredLayer=p)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,s),this._mouseHoverThrottled=!0,setTimeout(o(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(s,c,h){this._map._fireDOMEvent(c,h||c.type,s)},_bringToFront:function(s){var c=s._order;if(c){var h=c.next,p=c.prev;if(h)h.prev=p;else return;p?p.next=h:h&&(this._drawFirst=h),c.prev=this._drawLast,this._drawLast.next=c,c.next=null,this._drawLast=c,this._requestRedraw(s)}},_bringToBack:function(s){var c=s._order;if(c){var h=c.next,p=c.prev;if(p)p.next=h;else return;h?h.prev=p:p&&(this._drawLast=p),c.prev=null,c.next=this._drawFirst,this._drawFirst.prev=c,this._drawFirst=c,this._requestRedraw(s)}}});function Ei(s){return nt.canvas?new wi(s):null}var ke=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(s){return document.createElement("<lvml:"+s+' class="lvml">')}}catch{}return function(s){return document.createElement("<"+s+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Ur={_initContainer:function(){this._container=dt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Bt.prototype._update.call(this),this.fire("update"))},_initPath:function(s){var c=s._container=ke("shape");lt(c,"leaflet-vml-shape "+(this.options.className||"")),c.coordsize="1 1",s._path=ke("path"),c.appendChild(s._path),this._updateStyle(s),this._layers[u(s)]=s},_addPath:function(s){var c=s._container;this._container.appendChild(c),s.options.interactive&&s.addInteractiveTarget(c)},_removePath:function(s){var c=s._container;gt(c),s.removeInteractiveTarget(c),delete this._layers[u(s)]},_updateStyle:function(s){var c=s._stroke,h=s._fill,p=s.options,b=s._container;b.stroked=!!p.stroke,b.filled=!!p.fill,p.stroke?(c||(c=s._stroke=ke("stroke")),b.appendChild(c),c.weight=p.weight+"px",c.color=p.color,c.opacity=p.opacity,p.dashArray?c.dashStyle=R(p.dashArray)?p.dashArray.join(" "):p.dashArray.replace(/( *, *)/g," "):c.dashStyle="",c.endcap=p.lineCap.replace("butt","flat"),c.joinstyle=p.lineJoin):c&&(b.removeChild(c),s._stroke=null),p.fill?(h||(h=s._fill=ke("fill")),b.appendChild(h),h.color=p.fillColor||p.color,h.opacity=p.fillOpacity):h&&(b.removeChild(h),s._fill=null)},_updateCircle:function(s){var c=s._point.round(),h=Math.round(s._radius),p=Math.round(s._radiusY||h);this._setPath(s,s._empty()?"M0 0":"AL "+c.x+","+c.y+" "+h+","+p+" 0,"+65535*360)},_setPath:function(s,c){s._path.v=c},_bringToFront:function(s){ie(s._container)},_bringToBack:function(s){re(s._container)}},Ke=nt.vml?ke:ft,Oe=Bt.extend({_initContainer:function(){this._container=Ke("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Ke("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){gt(this._container),mt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Bt.prototype._update.call(this);var s=this._bounds,c=s.getSize(),h=this._container;(!this._svgSize||!this._svgSize.equals(c))&&(this._svgSize=c,h.setAttribute("width",c.x),h.setAttribute("height",c.y)),vt(h,s.min),h.setAttribute("viewBox",[s.min.x,s.min.y,c.x,c.y].join(" ")),this.fire("update")}},_initPath:function(s){var c=s._path=Ke("path");s.options.className&&lt(c,s.options.className),s.options.interactive&&lt(c,"leaflet-interactive"),this._updateStyle(s),this._layers[u(s)]=s},_addPath:function(s){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(s._path),s.addInteractiveTarget(s._path)},_removePath:function(s){gt(s._path),s.removeInteractiveTarget(s._path),delete this._layers[u(s)]},_updatePath:function(s){s._project(),s._update()},_updateStyle:function(s){var c=s._path,h=s.options;c&&(h.stroke?(c.setAttribute("stroke",h.color),c.setAttribute("stroke-opacity",h.opacity),c.setAttribute("stroke-width",h.weight),c.setAttribute("stroke-linecap",h.lineCap),c.setAttribute("stroke-linejoin",h.lineJoin),h.dashArray?c.setAttribute("stroke-dasharray",h.dashArray):c.removeAttribute("stroke-dasharray"),h.dashOffset?c.setAttribute("stroke-dashoffset",h.dashOffset):c.removeAttribute("stroke-dashoffset")):c.setAttribute("stroke","none"),h.fill?(c.setAttribute("fill",h.fillColor||h.color),c.setAttribute("fill-opacity",h.fillOpacity),c.setAttribute("fill-rule",h.fillRule||"evenodd")):c.setAttribute("fill","none"))},_updatePoly:function(s,c){this._setPath(s,fe(s._parts,c))},_updateCircle:function(s){var c=s._point,h=Math.max(Math.round(s._radius),1),p=Math.max(Math.round(s._radiusY),1)||h,b="a"+h+","+p+" 0 1,0 ",P=s._empty()?"M0 0":"M"+(c.x-h)+","+c.y+b+h*2+",0 "+b+-h*2+",0 ";this._setPath(s,P)},_setPath:function(s,c){s._path.setAttribute("d",c)},_bringToFront:function(s){ie(s._path)},_bringToBack:function(s){re(s._path)}});nt.vml&&Oe.include(Ur);function Pi(s){return nt.svg||nt.vml?new Oe(s):null}ut.include({getRenderer:function(s){var c=s.options.renderer||this._getPaneRenderer(s.options.pane)||this.options.renderer||this._renderer;return c||(c=this._renderer=this._createRenderer()),this.hasLayer(c)||this.addLayer(c),c},_getPaneRenderer:function(s){if(s==="overlayPane"||s===void 0)return!1;var c=this._paneRenderers[s];return c===void 0&&(c=this._createRenderer({pane:s}),this._paneRenderers[s]=c),c},_createRenderer:function(s){return this.options.preferCanvas&&Ei(s)||Pi(s)}});var $i=oe.extend({initialize:function(s,c){oe.prototype.initialize.call(this,this._boundsToLatLngs(s),c)},setBounds:function(s){return this.setLatLngs(this._boundsToLatLngs(s))},_boundsToLatLngs:function(s){return s=rt(s),[s.getSouthWest(),s.getNorthWest(),s.getNorthEast(),s.getSouthEast()]}});function Gr(s,c){return new $i(s,c)}Oe.create=Ke,Oe.pointsToPath=fe,Vt.geometryToLayer=He,Vt.coordsToLatLng=Tn,Vt.coordsToLatLngs=Ve,Vt.latLngToCoords=Mn,Vt.latLngsToCoords=Be,Vt.getFeature=le,Vt.asFeature=Ye,ut.mergeOptions({boxZoom:!0});var xi=Rt.extend({initialize:function(s){this._map=s,this._container=s._container,this._pane=s._panes.overlayPane,this._resetStateTimeout=0,s.on("unload",this._destroy,this)},addHooks:function(){ot(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){mt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){gt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(s){if(!s.shiftKey||s.which!==1&&s.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Ee(),un(),this._startPoint=this._map.mouseEventToContainerPoint(s),ot(document,{contextmenu:Zt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(s){this._moved||(this._moved=!0,this._box=dt("div","leaflet-zoom-box",this._container),lt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(s);var c=new Z(this._point,this._startPoint),h=c.getSize();vt(this._box,c.min),this._box.style.width=h.x+"px",this._box.style.height=h.y+"px"},_finish:function(){this._moved&&(gt(this._box),bt(this._container,"leaflet-crosshair")),Pe(),dn(),mt(document,{contextmenu:Zt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(s){if(!(s.which!==1&&s.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var c=new st(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(c).fire("boxzoomend",{boxZoomBounds:c})}},_onKeyDown:function(s){s.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});ut.addInitHook("addHandler","boxZoom",xi),ut.mergeOptions({doubleClickZoom:!0});var Si=Rt.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(s){var c=this._map,h=c.getZoom(),p=c.options.zoomDelta,b=s.originalEvent.shiftKey?h-p:h+p;c.options.doubleClickZoom==="center"?c.setZoom(b):c.setZoomAround(s.containerPoint,b)}});ut.addInitHook("addHandler","doubleClickZoom",Si),ut.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Ti=Rt.extend({addHooks:function(){if(!this._draggable){var s=this._map;this._draggable=new Ut(s._mapPane,s._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),s.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),s.on("zoomend",this._onZoomEnd,this),s.whenReady(this._onZoomEnd,this))}lt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){bt(this._map._container,"leaflet-grab"),bt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var s=this._map;if(s._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var c=rt(this._map.options.maxBounds);this._offsetLimit=et(this._map.latLngToContainerPoint(c.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(c.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;s.fire("movestart").fire("dragstart"),s.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(s){if(this._map.options.inertia){var c=this._lastTime=+new Date,h=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(h),this._times.push(c),this._prunePositions(c)}this._map.fire("move",s).fire("drag",s)},_prunePositions:function(s){for(;this._positions.length>1&&s-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var s=this._map.getSize().divideBy(2),c=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=c.subtract(s).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(s,c){return s-(s-c)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var s=this._draggable._newPos.subtract(this._draggable._startPos),c=this._offsetLimit;s.x<c.min.x&&(s.x=this._viscousLimit(s.x,c.min.x)),s.y<c.min.y&&(s.y=this._viscousLimit(s.y,c.min.y)),s.x>c.max.x&&(s.x=this._viscousLimit(s.x,c.max.x)),s.y>c.max.y&&(s.y=this._viscousLimit(s.y,c.max.y)),this._draggable._newPos=this._draggable._startPos.add(s)}},_onPreDragWrap:function(){var s=this._worldWidth,c=Math.round(s/2),h=this._initialWorldOffset,p=this._draggable._newPos.x,b=(p-c+h)%s+c-h,P=(p+c+h)%s-c-h,k=Math.abs(b+h)<Math.abs(P+h)?b:P;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=k},_onDragEnd:function(s){var c=this._map,h=c.options,p=!h.inertia||s.noInertia||this._times.length<2;if(c.fire("dragend",s),p)c.fire("moveend");else{this._prunePositions(+new Date);var b=this._lastPos.subtract(this._positions[0]),P=(this._lastTime-this._times[0])/1e3,k=h.easeLinearity,H=b.multiplyBy(k/P),B=H.distanceTo([0,0]),X=Math.min(h.inertiaMaxSpeed,B),tt=H.multiplyBy(X/B),at=X/(h.inertiaDeceleration*k),ct=tt.multiplyBy(-at/2).round();!ct.x&&!ct.y?c.fire("moveend"):(ct=c._limitOffset(ct,c.options.maxBounds),O(function(){c.panBy(ct,{duration:at,easeLinearity:k,noMoveStart:!0,animate:!0})}))}}});ut.addInitHook("addHandler","dragging",Ti),ut.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Mi=Rt.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(s){this._map=s,this._setPanDelta(s.options.keyboardPanDelta),this._setZoomDelta(s.options.zoomDelta)},addHooks:function(){var s=this._map._container;s.tabIndex<=0&&(s.tabIndex="0"),ot(s,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),mt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var s=document.body,c=document.documentElement,h=s.scrollTop||c.scrollTop,p=s.scrollLeft||c.scrollLeft;this._map._container.focus(),window.scrollTo(p,h)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(s){var c=this._panKeys={},h=this.keyCodes,p,b;for(p=0,b=h.left.length;p<b;p++)c[h.left[p]]=[-1*s,0];for(p=0,b=h.right.length;p<b;p++)c[h.right[p]]=[s,0];for(p=0,b=h.down.length;p<b;p++)c[h.down[p]]=[0,s];for(p=0,b=h.up.length;p<b;p++)c[h.up[p]]=[0,-1*s]},_setZoomDelta:function(s){var c=this._zoomKeys={},h=this.keyCodes,p,b;for(p=0,b=h.zoomIn.length;p<b;p++)c[h.zoomIn[p]]=s;for(p=0,b=h.zoomOut.length;p<b;p++)c[h.zoomOut[p]]=-s},_addHooks:function(){ot(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){mt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(s){if(!(s.altKey||s.ctrlKey||s.metaKey)){var c=s.keyCode,h=this._map,p;if(c in this._panKeys){if(!h._panAnim||!h._panAnim._inProgress)if(p=this._panKeys[c],s.shiftKey&&(p=K(p).multiplyBy(3)),h.options.maxBounds&&(p=h._limitOffset(K(p),h.options.maxBounds)),h.options.worldCopyJump){var b=h.wrapLatLng(h.unproject(h.project(h.getCenter()).add(p)));h.panTo(b)}else h.panBy(p)}else if(c in this._zoomKeys)h.setZoom(h.getZoom()+(s.shiftKey?3:1)*this._zoomKeys[c]);else if(c===27&&h._popup&&h._popup.options.closeOnEscapeKey)h.closePopup();else return;Zt(s)}}});ut.addInitHook("addHandler","keyboard",Mi),ut.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Ai=Rt.extend({addHooks:function(){ot(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){mt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(s){var c=Zn(s),h=this._map.options.wheelDebounceTime;this._delta+=c,this._lastMousePos=this._map.mouseEventToContainerPoint(s),this._startTime||(this._startTime=+new Date);var p=Math.max(h-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),p),Zt(s)},_performZoom:function(){var s=this._map,c=s.getZoom(),h=this._map.options.zoomSnap||0;s._stop();var p=this._delta/(this._map.options.wheelPxPerZoomLevel*4),b=4*Math.log(2/(1+Math.exp(-Math.abs(p))))/Math.LN2,P=h?Math.ceil(b/h)*h:b,k=s._limitZoom(c+(this._delta>0?P:-P))-c;this._delta=0,this._startTime=null,k&&(s.options.scrollWheelZoom==="center"?s.setZoom(c+k):s.setZoomAround(this._lastMousePos,c+k))}});ut.addInitHook("addHandler","scrollWheelZoom",Ai);var qr=600;ut.mergeOptions({tapHold:nt.touchNative&&nt.safari&&nt.mobile,tapTolerance:15});var ki=Rt.extend({addHooks:function(){ot(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){mt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(s){if(clearTimeout(this._holdTimeout),s.touches.length===1){var c=s.touches[0];this._startPos=this._newPos=new N(c.clientX,c.clientY),this._holdTimeout=setTimeout(o(function(){this._cancel(),this._isTapValid()&&(ot(document,"touchend",xt),ot(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",c))},this),qr),ot(document,"touchend touchcancel contextmenu",this._cancel,this),ot(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function s(){mt(document,"touchend",xt),mt(document,"touchend touchcancel",s)},_cancel:function(){clearTimeout(this._holdTimeout),mt(document,"touchend touchcancel contextmenu",this._cancel,this),mt(document,"touchmove",this._onMove,this)},_onMove:function(s){var c=s.touches[0];this._newPos=new N(c.clientX,c.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(s,c){var h=new MouseEvent(s,{bubbles:!0,cancelable:!0,view:window,screenX:c.screenX,screenY:c.screenY,clientX:c.clientX,clientY:c.clientY});h._simulated=!0,c.target.dispatchEvent(h)}});ut.addInitHook("addHandler","tapHold",ki),ut.mergeOptions({touchZoom:nt.touch,bounceAtZoomLimits:!0});var Oi=Rt.extend({addHooks:function(){lt(this._map._container,"leaflet-touch-zoom"),ot(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){bt(this._map._container,"leaflet-touch-zoom"),mt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(s){var c=this._map;if(!(!s.touches||s.touches.length!==2||c._animatingZoom||this._zooming)){var h=c.mouseEventToContainerPoint(s.touches[0]),p=c.mouseEventToContainerPoint(s.touches[1]);this._centerPoint=c.getSize()._divideBy(2),this._startLatLng=c.containerPointToLatLng(this._centerPoint),c.options.touchZoom!=="center"&&(this._pinchStartLatLng=c.containerPointToLatLng(h.add(p)._divideBy(2))),this._startDist=h.distanceTo(p),this._startZoom=c.getZoom(),this._moved=!1,this._zooming=!0,c._stop(),ot(document,"touchmove",this._onTouchMove,this),ot(document,"touchend touchcancel",this._onTouchEnd,this),xt(s)}},_onTouchMove:function(s){if(!(!s.touches||s.touches.length!==2||!this._zooming)){var c=this._map,h=c.mouseEventToContainerPoint(s.touches[0]),p=c.mouseEventToContainerPoint(s.touches[1]),b=h.distanceTo(p)/this._startDist;if(this._zoom=c.getScaleZoom(b,this._startZoom),!c.options.bounceAtZoomLimits&&(this._zoom<c.getMinZoom()&&b<1||this._zoom>c.getMaxZoom()&&b>1)&&(this._zoom=c._limitZoom(this._zoom)),c.options.touchZoom==="center"){if(this._center=this._startLatLng,b===1)return}else{var P=h._add(p)._divideBy(2)._subtract(this._centerPoint);if(b===1&&P.x===0&&P.y===0)return;this._center=c.unproject(c.project(this._pinchStartLatLng,this._zoom).subtract(P),this._zoom)}this._moved||(c._moveStart(!0,!1),this._moved=!0),A(this._animRequest);var k=o(c._move,c,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=O(k,this,!0),xt(s)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,A(this._animRequest),mt(document,"touchmove",this._onTouchMove,this),mt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});ut.addInitHook("addHandler","touchZoom",Oi),ut.BoxZoom=xi,ut.DoubleClickZoom=Si,ut.Drag=Ti,ut.Keyboard=Mi,ut.ScrollWheelZoom=Ai,ut.TapHold=ki,ut.TouchZoom=Oi,n.Bounds=Z,n.Browser=nt,n.CRS=ht,n.Canvas=wi,n.Circle=Sn,n.CircleMarker=je,n.Class=z,n.Control=Ct,n.DivIcon=_i,n.DivOverlay=zt,n.DomEvent=dr,n.DomUtil=cr,n.Draggable=Ut,n.Evented=F,n.FeatureGroup=jt,n.GeoJSON=Vt,n.GridLayer=Ae,n.Handler=Rt,n.Icon=se,n.ImageOverlay=Ue,n.LatLng=Q,n.LatLngBounds=st,n.Layer=Lt,n.LayerGroup=ae,n.LineUtil=xr,n.Map=ut,n.Marker=We,n.Mixin=vr,n.Path=Gt,n.Point=N,n.PolyUtil=yr,n.Polygon=oe,n.Polyline=Ht,n.Popup=Ge,n.PosAnimation=Qn,n.Projection=Sr,n.Rectangle=$i,n.Renderer=Bt,n.SVG=Oe,n.SVGOverlay=gi,n.TileLayer=ue,n.Tooltip=qe,n.Transformation=Pt,n.Util=I,n.VideoOverlay=pi,n.bind=o,n.bounds=et,n.canvas=Ei,n.circle=Dr,n.circleMarker=Lr,n.control=Se,n.divIcon=Vr,n.extend=r,n.featureGroup=kr,n.geoJSON=mi,n.geoJson=Fr,n.gridLayer=Br,n.icon=Or,n.imageOverlay=Rr,n.latLng=J,n.latLngBounds=rt,n.layerGroup=Ar,n.map=hr,n.marker=Cr,n.point=K,n.polygon=Ir,n.polyline=Nr,n.popup=jr,n.rectangle=Gr,n.setOptions=E,n.stamp=u,n.svg=Pi,n.svgOverlay=Wr,n.tileLayer=bi,n.tooltip=Hr,n.transformation=Mt,n.version=i,n.videoOverlay=zr;var Kr=window.L;n.noConflict=function(){return window.L=Kr,this},window.L=n})})(leafletSrc,leafletSrc.exports);var leafletSrcExports=leafletSrc.exports;const L$1=getDefaultExportFromCjs(leafletSrcExports);export{nb as $,ArcElement as A,BarController as B,Color as C,observePlugin$1 as D,module_default as E,Flow as F,bg as G,cs as H,I18n as I,da as J,de as K,LineController as L,el as M,enGB as N,enUS as O,PieController as P,es as Q,ca as R,SankeyController as S,TimeScale as T,fi as U,fr as V,hu as W,id as X,it as Y,ja as Z,ko as _,Chart as a,nn as a0,nl as a1,pl as a2,ptBR as a3,pt as a4,ro as a5,ru as a6,sk as a7,sl as a8,sv as a9,tr as aa,uk as ab,vi as ac,zhTW as ad,zhCN as ae,addMonths as af,subMonths as ag,LineElement as b,BarElement as c,LinearScale as d,CategoryScale as e,format as f,PointElement as g,plugin_tooltip as h,index as i,plugin_legend as j,Autocomplete as k,L$1 as l,Tags as m,axios$1 as n,endOfDay as o,plugin_colors as p,startOfQuarter as q,endOfQuarter as r,startOfDay as s,startOfMonth as t,endOfMonth as u,startOfWeek as v,endOfWeek as w,startOfYear as x,subDays as y,store$1 as z};
diff --git a/public/build/manifest.json b/public/build/manifest.json
index 8bd1f232b0..351d3db9bc 100644
--- a/public/build/manifest.json
+++ b/public/build/manifest.json
@@ -1,19 +1,19 @@
{
- "_get-748a816c.js": {
- "file": "assets/get-748a816c.js",
+ "_get-35a1642f.js": {
+ "file": "assets/get-35a1642f.js",
"imports": [
- "_load-translations-23553922.js"
+ "_load-translations-9dfbf635.js"
],
- "integrity": "sha384-Q/jXZc5hCLcwX4RjNVIgz80TzISFu81Li1iE5ZNuARydr2CNLRxyl+RFkOj46dPc"
+ "integrity": "sha384-BEa5VVZeih2xh4PjZUO97mCQa3xQaqfJcN7vbBdx7E7UXOQu8naa5/GTkpqhuIWb"
},
- "_load-translations-23553922.js": {
- "file": "assets/load-translations-23553922.js",
+ "_load-translations-9dfbf635.js": {
+ "file": "assets/load-translations-9dfbf635.js",
"imports": [
- "_vendor-e194ad60.js"
+ "_vendor-97200597.js"
],
- "integrity": "sha384-pNfWxxe1sV2bLDoKsEg3oGRBm8+DLQ9lmeL4oFpBJBRNUWOUEfAXp0iYoZMT2hPh"
+ "integrity": "sha384-1Co07smilqsxPLnUynKQLLj4Wk+b19/DP6FWySWLQQaY27nZ1RtDoaCPUu4pY8Q/"
},
- "_vendor-e194ad60.js": {
+ "_vendor-97200597.js": {
"assets": [
"assets/layers-1dbbe9d0.png",
"assets/layers-2x-066daca8.png",
@@ -22,8 +22,8 @@
"css": [
"assets/vendor-49001d3f.css"
],
- "file": "assets/vendor-e194ad60.js",
- "integrity": "sha384-pBeK5qr0qG0MDsIfi2/X7NE5V+YUERUHOGDEL5JCGFtw8l+EiRe7D2uuMKV4/cxm"
+ "file": "assets/vendor-97200597.js",
+ "integrity": "sha384-p3/nuBVJT3mcAGf7EsH1MjtWO1bxn5euKI3XKEt5TjLKZ9q1uq82P2OAEASLhlCk"
},
"node_modules/@fortawesome/fontawesome-free/webfonts/fa-brands-400.ttf": {
"file": "assets/fa-brands-400-5656d596.ttf",
@@ -71,36 +71,36 @@
"integrity": "sha384-wg83fCOXjBtqzFAWhTL9Sd9vmLUNhfEEzfmNUX9zwv2igKlz/YQbdapF4ObdxF+R"
},
"resources/assets/v2/pages/dashboard/dashboard.js": {
- "file": "assets/dashboard-a55f7472.js",
+ "file": "assets/dashboard-4afa5a98.js",
"imports": [
- "_load-translations-23553922.js",
- "_get-748a816c.js",
- "_vendor-e194ad60.js"
+ "_load-translations-9dfbf635.js",
+ "_get-35a1642f.js",
+ "_vendor-97200597.js"
],
"isEntry": true,
"src": "resources/assets/v2/pages/dashboard/dashboard.js",
- "integrity": "sha384-4VlBovrF9JYeq8ywA4F+J+x+Rs9OIUKgZNtQuZz+F9XADHlvdaegrAx+MLmFc4zX"
+ "integrity": "sha384-jTx6wOomQpWwYjVUUeE6u/LGq0/zFbYp0pgKXNkzhicFT48r7KCI+G9+9/4hL0Ps"
},
"resources/assets/v2/pages/transactions/create.js": {
- "file": "assets/create-77b1cf47.js",
+ "file": "assets/create-409a9a86.js",
"imports": [
- "_load-translations-23553922.js",
- "_vendor-e194ad60.js",
- "_get-748a816c.js"
+ "_load-translations-9dfbf635.js",
+ "_vendor-97200597.js",
+ "_get-35a1642f.js"
],
"isEntry": true,
"src": "resources/assets/v2/pages/transactions/create.js",
- "integrity": "sha384-sUxpvAj5i3XiHoRluzCByokIDbqnDMb4gjxDxArjYodV3ymR2O9atDpCZtEBJshw"
+ "integrity": "sha384-hv2wsCs+Sl8+Uee2ivc9mBt9HCp5VuTuBBLOFrdde+Z63VMAcTnNDv2eUGYynBvI"
},
"resources/assets/v2/pages/transactions/edit.js": {
- "file": "assets/edit-83707812.js",
+ "file": "assets/edit-81edf6b9.js",
"imports": [
- "_load-translations-23553922.js",
- "_vendor-e194ad60.js"
+ "_load-translations-9dfbf635.js",
+ "_vendor-97200597.js"
],
"isEntry": true,
"src": "resources/assets/v2/pages/transactions/edit.js",
- "integrity": "sha384-UkvRogZBJfe4zy9IAmFghhsyJfzcml29moISocvNyF1ujn+Op54PwrMYf5plap6Y"
+ "integrity": "sha384-0S1UAURUA6sHltypKX30GvPla6lpIJdspvfdmXYu6mGO+D4XgdPhW7TI6BvD6aCs"
},
"resources/assets/v2/sass/app.scss": {
"file": "assets/app-fb7b26ec.css",
diff --git a/resources/assets/v2/pages/transactions/create.js b/resources/assets/v2/pages/transactions/create.js
index 3110aba89d..6972363673 100644
--- a/resources/assets/v2/pages/transactions/create.js
+++ b/resources/assets/v2/pages/transactions/create.js
@@ -32,8 +32,6 @@ import {loadBudgets} from "./shared/load-budgets.js";
import {loadPiggyBanks} from "./shared/load-piggy-banks.js";
import {loadSubscriptions} from "./shared/load-subscriptions.js";
-import L from "leaflet";
-
import 'leaflet/dist/leaflet.css';
import {addAutocomplete} from "./shared/add-autocomplete.js";
import {
@@ -85,8 +83,7 @@ let transactions = function () {
// form behaviour during transaction
formBehaviour: {
- formType: 'create',
- foreignCurrencyEnabled: true,
+ formType: 'create', foreignCurrencyEnabled: true,
},
// form data (except transactions) is stored in formData
@@ -102,27 +99,17 @@ let transactions = function () {
// properties for the entire transaction group
groupProperties: {
- transactionType: 'unknown',
- title: null,
- id: null,
- totalAmount: 0,
+ transactionType: 'unknown', title: null, id: null, totalAmount: 0,
},
// notifications
notifications: {
error: {
- show: false,
- text: '',
- url: '',
- },
- success: {
- show: false,
- text: '',
- url: '',
- },
- wait: {
- show: false,
- text: '',
+ show: false, text: '', url: '',
+ }, success: {
+ show: false, text: '', url: '',
+ }, wait: {
+ show: false, text: '',
}
},
@@ -130,35 +117,22 @@ let transactions = function () {
// part of the account selection auto-complete
filters: {
- source: [],
- destination: [],
+ source: [], destination: [],
},
- // old properties, no longer used.
-
-
- // data sets
-
- // used to display the success message
- //newGroupTitle: '',
- //newGroupId: 0,
-
- // map things:
- //hasLocation: false,
- //latitude: 51.959659235274,
- //longitude: 5.756805887265858,
- //zoomLevel: 13,
-
// events in the form
changedDateTime(event) {
- console.log('changedDateTime');
+ console.warn('changedDateTime, event is not used');
},
+
changedDescription(event) {
- console.log('changedDescription');
+ console.warn('changedDescription, event is not used');
},
+
changedDestinationAccount(event) {
this.detectTransactionType();
},
+
changedSourceAccount(event) {
this.detectTransactionType();
},
@@ -218,8 +192,9 @@ let transactions = function () {
}
console.warn('Unknown account combination between "' + sourceType + '" and "' + destType + '".');
},
+
formattedTotalAmount() {
- if(this.entries.length === 0) {
+ if (this.entries.length === 0) {
return formatMoney(this.groupProperties.totalAmount, 'EUR');
}
return formatMoney(this.groupProperties.totalAmount, this.entries[0].currency_code ?? 'EUR');
@@ -255,6 +230,7 @@ let transactions = function () {
}
}
},
+
filterNativeCurrencies(code) {
let list = [];
let currency;
@@ -276,6 +252,7 @@ let transactions = function () {
}
}
},
+
changedAmount(e) {
const index = parseInt(e.target.dataset.index);
this.entries[index].amount = parseFloat(e.target.value);
@@ -287,7 +264,6 @@ let transactions = function () {
}
},
-
addedSplit() {
// addedSplit, is called from the HTML
// for source account
@@ -329,9 +305,11 @@ let transactions = function () {
});
},
+
processUpload(event) {
this.showMessageOrRedirectUser();
},
+
processUploadError(event) {
this.notifications.success.show = false;
this.notifications.wait.show = false;
@@ -382,12 +360,30 @@ let transactions = function () {
document.addEventListener('upload-error', (event) => {
this.processUploadError(event);
});
+ document.addEventListener('location-move', (event) => {
+ this.entries[event.detail.index].latitude = event.detail.latitude;
+ this.entries[event.detail.index].longitude = event.detail.longitude;
+ });
+
+ document.addEventListener('location-set', (event) => {
+ this.entries[event.detail.index].hasLocation = true;
+ this.entries[event.detail.index].latitude = event.detail.latitude;
+ this.entries[event.detail.index].longitude = event.detail.longitude;
+ this.entries[event.detail.index].zoomLevel = event.detail.zoomLevel;
+ });
+
+ document.addEventListener('location-zoom', (event) => {
+ this.entries[event.detail.index].hasLocation = true;
+ this.entries[event.detail.index].zoomLevel = event.detail.zoomLevel;
+ });
+
// source can never be expense account
this.filters.source = ['Asset account', 'Loan', 'Debt', 'Mortgage', 'Revenue account'];
// destination can never be revenue account
this.filters.destination = ['Expense account', 'Loan', 'Debt', 'Mortgage', 'Asset account'];
},
+
submitTransaction() {
// reset all messages:
this.notifications.error.show = false;
@@ -454,6 +450,7 @@ let transactions = function () {
});
},
+
showMessageOrRedirectUser() {
// disable all messages:
this.notifications.error.show = false;
@@ -475,6 +472,7 @@ let transactions = function () {
}
window.location = 'transactions/show/' + this.groupProperties.id + '?transaction_group_id=' + this.groupProperties.id + '&message=created';
},
+
parseErrors(data) {
// disable all messages:
this.notifications.error.show = true;
@@ -483,10 +481,11 @@ let transactions = function () {
this.formStates.isSubmitting = false;
this.notifications.error.text = i18n.t('firefly.errors_submission', {errorMessage: data.message});
- if(data.hasOwnProperty('errors')) {
+ if (data.hasOwnProperty('errors')) {
this.entries = spliceErrorsIntoTransactions(i18n, data.errors, this.entries);
}
},
+
addSplit() {
this.entries.push(createEmptySplit());
@@ -506,87 +505,39 @@ let transactions = function () {
}
}
});
- console.log('in set timeout.');
const count = this.entries.length - 1;
- if(document.querySelector('#location_map_' + count)) {
- addLocation(count);
- }
- });
-
-
- // const count = this.entries.length - 1;
- // let map = L.map('location_map_' + count).setView([this.latitude, this.longitude], this.zoomLevel);
- //
- // L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
- // maxZoom: 19,
- // attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap ' + count + '</a>'
- // }).addTo(map);
- // map.on('click', this.addPointToMap);
- // map.on('zoomend', this.saveZoomOfMap);
- // this.entries[count].map
-
- // const id = 'location_map_' + count;
- // const map = () => {
- // const el = document.getElementById(id),
- // map = L.map(id).setView([this.latitude, this.longitude], this.zoomLevel)
- // L.tileLayer(
- // 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
- // {attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap '+count+'</a>'}
- // ).addTo(map)
- // map.on('click', this.addPointToMap);
- // map.on('zoomend', this.saveZoomOfMap);
- // return map
- // }
- // this.entries[count].map = map();
-
- // }, 250);
-
+ // if(document.querySelector('#location_map_' + count)) { }
+ addLocation(count);
+ }, 150);
},
+
removeSplit(index) {
this.entries.splice(index, 1);
// fall back to index 0
const triggerFirstTabEl = document.querySelector('#split-0-tab')
triggerFirstTabEl.click();
},
+
clearLocation(e) {
e.preventDefault();
+ // remove location from entry, fire event, do nothing else (the map is somebody else's problem).
+
const target = e.currentTarget;
const index = parseInt(target.attributes['data-index'].value);
this.entries[index].hasLocation = false;
- this.entries[index].marker.remove();
+ this.entries[index].latitude = null;
+ this.entries[index].longitude = null;
+ this.entries[index].zoomLevel = null;
+
+ const removeEvent = new CustomEvent('location-remove', {
+ detail: {
+ index: index
+ }
+ });
+ document.dispatchEvent(removeEvent);
+
return false;
},
- saveZoomOfMap(e) {
- let index = parseInt(e.sourceTarget._container.attributes['data-index'].value);
- let map = document.querySelector('#form')._x_dataStack[0].$data.entries[index].map;
- document.querySelector('#form')._x_dataStack[0].$data.entries[index].zoomLevel = map.getZoom();
- console.log('New zoom level: ' + map.getZoom());
- },
- addPointToMap(e) {
- let index = parseInt(e.originalEvent.currentTarget.attributes['data-index'].value);
- let map = document.querySelector('#form')._x_dataStack[0].$data.entries[index].map;
- let hasLocation = document.querySelector('#form')._x_dataStack[0].$data.entries[index].hasLocation;
- console.log('Has location: ' + hasLocation);
- if (false === hasLocation) {
- console.log('False!');
- const marker = new L.marker(e.latlng, {draggable: true});
- marker.on('dragend', function (event) {
- var marker = event.target;
-
- var position = marker.getLatLng();
- marker.setLatLng(new L.LatLng(position.lat, position.lng), {draggable: 'true'});
- document.querySelector('#form')._x_dataStack[0].$data.entries[index].latitude = position.lat;
- document.querySelector('#form')._x_dataStack[0].$data.entries[index].longitude = position.lng;
- });
-
- marker.addTo(map);
- document.querySelector('#form')._x_dataStack[0].$data.entries[index].hasLocation = true;
- document.querySelector('#form')._x_dataStack[0].$data.entries[index].marker = marker;
- document.querySelector('#form')._x_dataStack[0].$data.entries[index].latitude = e.latlng.lat;
- document.querySelector('#form')._x_dataStack[0].$data.entries[index].longitude = e.latlng.lng;
- document.querySelector('#form')._x_dataStack[0].$data.entries[index].zoomLevel = map.getZoom();
- }
- }
}
}
diff --git a/resources/assets/v2/pages/transactions/shared/manage-locations.js b/resources/assets/v2/pages/transactions/shared/manage-locations.js
index 5aebfd9576..506fa53308 100644
--- a/resources/assets/v2/pages/transactions/shared/manage-locations.js
+++ b/resources/assets/v2/pages/transactions/shared/manage-locations.js
@@ -18,40 +18,82 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
+import L from "leaflet";
+
let maps = [];
+let markers = [];
+
+// listen to event to remove marker:
+
+// location-remove
+
+document.addEventListener('location-remove', (event) => {
+ markers[event.detail.index].remove();
+});
+
+
+function addPointToMap(e) {
+ // index is always 0.
+ // let index = parseInt(e.originalEvent.currentTarget.attributes['data-index'].value);
+ let index = 0;
+ let hasLocation = document.querySelector('#form')._x_dataStack[0].$data.entries[index].hasLocation;
+
+ if (false === hasLocation) {
+ markers[index] = new L.marker(e.latlng, {draggable: true});
+ markers[index].on('dragend', dragEnd);
+ markers[index].addTo(maps[index]);
+
+ const setEvent = new CustomEvent('location-set', {detail: {
+ latitude: e.latlng.lat,
+ longitude: e.latlng.lng,
+ index: index,
+ zoomLevel: maps[index].getZoom()
+ }});
+ document.dispatchEvent(setEvent);
+ }
+}
+
+function saveZoomOfMap(e) {
+ //let index = parseInt(e.sourceTarget._container.attributes['data-index'].value);
+ let index = 0;
+ const zoomEvent = new CustomEvent('location-zoom', {detail: {
+ index: index,
+ zoomLevel: maps[index].getZoom()
+ }});
+ document.dispatchEvent(zoomEvent);
+}
+
+function dragEnd(event) {
+ let marker = event.target;
+ let position = marker.getLatLng();
+ marker.setLatLng(new L.LatLng(position.lat, position.lng), {draggable: 'true'});
+ const moveEvent = new CustomEvent('location-move', {
+ detail: {
+ latitude: position.lat,
+ longitude: position.lng,
+ index: 0
+ }
+ });
+ document.dispatchEvent(moveEvent);
+}
export function addLocation(index) {
- console.log('add location to index ' + index);
- if(typeof maps[index] === 'undefined') {
- console.log('no map yet at index ' + index + ' (location_map_' + index + ')');
- let holder = document.getElementById('location_map_' + index);
- //console.log(holder.dataset.longitude);
- // holder.dataset('latitude');
- // console.log(holder.dataset('latitude'));
- maps[index] = L.map(holder).setView([holder.dataset.latitude, holder.dataset.longitude], holder.dataset.zoomLevel);
-
- L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
- maxZoom: 19,
- attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
- }).addTo(maps[index]);
- // map.on('click', this.addPointToMap);
- // map.on('zoomend', this.saveZoomOfMap);
- // this.entries[count].map
-
- // const id = 'location_map_' + count;
- // const map = () => {
- // const el = document.getElementById(id),
- // map = L.map(id).setView([this.latitude, this.longitude], this.zoomLevel)
- // L.tileLayer(
- // 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
- // {attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap '+count+'</a>'}
- // ).addTo(map)
- // map.on('click', this.addPointToMap);
- // map.on('zoomend', this.saveZoomOfMap);
- // return map
- // }
- // this.entries[count].map = map();
-
- // }, 250);
+ if (index > 0) {
+ console.warn('Corwardly refuse to add a map on split #' + (index + 1));
+ return;
+ }
+ if (typeof maps[index] === 'undefined') {
+ // map holder is always the same:
+
+ //let holder = document.getElementById('location_map_' + index);
+ let holder = document.getElementById('location_map');
+ maps[index] = L.map(holder).setView([holder.dataset.latitude, holder.dataset.longitude], holder.dataset.zoomLevel);
+
+ L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
+ maxZoom: 19,
+ attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
+ }).addTo(maps[index]);
+ maps[index].on('click', addPointToMap);
+ maps[index].on('zoomend', saveZoomOfMap);
}
}
diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.php
index cc3a5b06e9..0f71967bbc 100644
--- a/resources/lang/en_US/firefly.php
+++ b/resources/lang/en_US/firefly.php
@@ -26,307 +26,307 @@ declare(strict_types=1);
return [
// general stuff:
- 'close' => 'Close',
- 'actions' => 'Actions',
- 'edit' => 'Edit',
- 'delete' => 'Delete',
- 'split' => 'Split',
- 'single_split' => 'Split',
- 'clone' => 'Clone',
- 'clone_and_edit' => 'Clone and edit',
- 'confirm_action' => 'Confirm action',
- 'last_seven_days' => 'Last seven days',
- 'last_thirty_days' => 'Last thirty days',
- 'last_180_days' => 'Last 180 days',
- 'month_to_date' => 'Month to date',
- 'year_to_date' => 'Year to date',
- 'YTD' => 'YTD',
- 'welcome_back' => 'What\'s playing?',
- 'everything' => 'Everything',
- 'today' => 'today',
- 'customRange' => 'Custom range',
- 'date_range' => 'Date range',
- 'apply' => 'Apply',
- 'select_date' => 'Select date..',
- 'cancel' => 'Cancel',
- 'from' => 'From',
- 'to' => 'To',
- 'structure' => 'Structure',
- 'help_translating' => 'This help text is not yet available in your language. <a href="https://crowdin.com/project/firefly-iii-help">Will you help translate?</a>',
- 'showEverything' => 'Show everything',
- 'never' => 'Never',
- 'no_results_for_empty_search' => 'Your search was empty, so nothing was found.',
- 'removed_amount' => 'Removed :amount',
- 'added_amount' => 'Added :amount',
- 'asset_account_role_help' => 'Any extra options resulting from your choice can be set later.',
- 'Opening balance' => 'Opening balance',
- 'create_new_stuff' => 'Create new stuff',
- 'new_withdrawal' => 'New withdrawal',
- 'create_new_transaction' => 'Create a new transaction',
- 'sidebar_frontpage_create' => 'Create',
- 'new_transaction' => 'New transaction',
- 'no_rules_for_bill' => 'This bill has no rules associated to it.',
- 'go_to_asset_accounts' => 'View your asset accounts',
- 'go_to_budgets' => 'Go to your budgets',
- 'go_to_withdrawals' => 'Go to your withdrawals',
- 'clones_journal_x' => 'This transaction is a clone of ":description" (#:id)',
- 'go_to_categories' => 'Go to your categories',
- 'go_to_bills' => 'Go to your bills',
- 'go_to_expense_accounts' => 'See your expense accounts',
- 'go_to_revenue_accounts' => 'See your revenue accounts',
- 'go_to_piggies' => 'Go to your piggy banks',
- 'new_deposit' => 'New deposit',
- 'new_transfer' => 'New transfer',
- 'new_transfers' => 'New transfer',
- 'new_asset_account' => 'New asset account',
- 'new_expense_account' => 'New expense account',
- 'new_revenue_account' => 'New revenue account',
- 'new_liabilities_account' => 'New liability',
- 'new_budget' => 'New budget',
- 'new_bill' => 'New bill',
- 'block_account_logout' => 'You have been logged out. Blocked accounts cannot use this site. Did you register with a valid email address?',
- 'flash_success' => 'Success!',
- 'flash_info' => 'Message',
- 'flash_warning' => 'Warning!',
- 'flash_error' => 'Error!',
- 'flash_danger' => 'Danger!',
- 'flash_info_multiple' => 'There is one message|There are :count messages',
- 'flash_error_multiple' => 'There is one error|There are :count errors',
- 'net_worth' => 'Net worth',
- 'help_for_this_page' => 'Help for this page',
- 'help_for_this_page_body' => 'You can find more information about this page <a href="https://docs.firefly-iii.org/">in the documentation</a>.',
- 'two_factor_welcome' => 'Hello!',
- 'two_factor_enter_code' => 'To continue, please enter your two factor authentication code. Your application can generate it for you.',
- 'two_factor_code_here' => 'Enter code here',
- 'two_factor_title' => 'Two factor authentication',
- 'authenticate' => 'Authenticate',
- 'two_factor_forgot_title' => 'Lost two factor authentication',
- 'two_factor_forgot' => 'I forgot my two-factor thing.',
- 'two_factor_lost_header' => 'Lost your two factor authentication?',
- 'two_factor_lost_intro' => 'If you lost your backup codes as well, you have bad luck. This is not something you can fix from the web interface. You have two choices.',
- 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>this entry in the FAQ</a> for instructions.',
- 'two_factor_lost_fix_owner' => 'Otherwise, email the site owner, <a href="mailto::site_owner">:site_owner</a> and ask them to reset your two factor authentication.',
- 'mfa_backup_code' => 'You have used a backup code to login to Firefly III. It can\'t be used again, so cross it from your list.',
- 'pref_two_factor_new_backup_codes' => 'Get new backup codes',
- 'pref_two_factor_backup_code_count' => 'You have :count valid backup code.|You have :count valid backup codes.',
- '2fa_i_have_them' => 'I stored them!',
- 'warning_much_data' => ':days days of data may take a while to load.',
- 'registered' => 'You have registered successfully!',
- 'Default asset account' => 'Default asset account',
- 'no_budget_pointer' => 'You seem to have no budgets yet. You should create some on the <a href="budgets">budgets</a>-page. Budgets can help you keep track of expenses.',
- 'no_bill_pointer' => 'You seem to have no bills yet. You should create some on the <a href="bills">bills</a>-page. Bills can help you keep track of expenses.',
- 'Savings account' => 'Savings account',
- 'Credit card' => 'Credit card',
- 'source_accounts' => 'Source account|Source accounts',
- 'destination_accounts' => 'Destination account|Destination accounts',
- 'user_id_is' => 'Your user id is <strong>:user</strong>',
- 'field_supports_markdown' => 'This field supports <a href="https://en.support.wordpress.com/markdown-quick-reference/">Markdown</a>.',
- 'need_more_help' => 'If you need more help using Firefly III, please <a href="https://github.com/firefly-iii/firefly-iii/issues">open a ticket on Github</a>.',
- 'reenable_intro_text' => 'You can also re-enable <a href="#" id="reenableGuidance">the introduction guidance</a>.',
- 'intro_boxes_after_refresh' => 'The introduction boxes will reappear when you refresh the page.',
- 'show_all_no_filter' => 'Show all transactions without grouping them by date.',
- 'expenses_by_category' => 'Expenses by category',
- 'expenses_by_budget' => 'Expenses by budget',
- 'income_by_category' => 'Income by category',
- 'expenses_by_asset_account' => 'Expenses by asset account',
- 'expenses_by_expense_account' => 'Expenses by expense account',
- 'cannot_redirect_to_account' => 'Firefly III cannot redirect you to the correct page. Apologies.',
- 'sum_of_expenses' => 'Sum of expenses',
- 'sum_of_income' => 'Sum of income',
- 'liabilities' => 'Liabilities',
- 'spent_in_specific_budget' => 'Spent in budget ":budget"',
- 'spent_in_specific_double' => 'Spent in account ":account"',
- 'earned_in_specific_double' => 'Earned in account ":account"',
- 'source_account' => 'Source account',
- 'source_account_reconciliation' => 'You can\'t edit the source account of a reconciliation transaction.',
- 'destination_account' => 'Destination account',
- 'destination_account_reconciliation' => 'You can\'t edit the destination account of a reconciliation transaction.',
- 'sum_of_expenses_in_budget' => 'Spent total in budget ":budget"',
- 'left_in_budget_limit' => 'Left to spend according to budgeting',
- 'current_period' => 'Current period',
- 'show_the_current_period_and_overview' => 'Show the current period and overview',
- 'pref_languages_locale' => 'For a language other than English to work properly, your operating system must be equipped with the correct locale-information. If these are not present, currency data, dates and amounts may be formatted wrong.',
- 'budget_in_period' => 'All transactions for budget ":name" between :start and :end in :currency',
- 'chart_budget_in_period' => 'Chart for all transactions for budget ":name" between :start and :end in :currency',
- 'chart_budget_in_period_only_currency' => 'The amount you budgeted was in :currency, so this chart will only show transactions in :currency.',
- 'chart_account_in_period' => 'Chart for all transactions for account ":name" (:balance) between :start and :end',
- 'chart_category_in_period' => 'Chart for all transactions for category ":name" between :start and :end',
- 'chart_category_all' => 'Chart for all transactions for category ":name"',
- 'clone_withdrawal' => 'Clone this withdrawal',
- 'clone_deposit' => 'Clone this deposit',
- 'clone_transfer' => 'Clone this transfer',
- 'multi_select_no_selection' => 'None selected',
- 'multi_select_select_all' => 'Select all',
- 'multi_select_n_selected' => 'selected',
- 'multi_select_all_selected' => 'All selected',
- 'multi_select_filter_placeholder' => 'Find..',
- 'intro_next_label' => 'Next',
- 'intro_prev_label' => 'Previous',
- 'intro_skip_label' => 'Skip',
- 'intro_done_label' => 'Done',
- 'between_dates_breadcrumb' => 'Between :start and :end',
- 'all_journals_without_budget' => 'All transactions without a budget',
- 'journals_without_budget' => 'Transactions without a budget',
- 'all_journals_without_category' => 'All transactions without a category',
- 'journals_without_category' => 'Transactions without a category',
- 'all_journals_for_account' => 'All transactions for account :name',
- 'chart_all_journals_for_account' => 'Chart of all transactions for account :name',
- 'journals_in_period_for_account' => 'All transactions for account :name between :start and :end',
- 'journals_in_period_for_account_js' => 'All transactions for account {title} between {start} and {end}',
- 'transferred' => 'Transferred',
- 'all_withdrawal' => 'All expenses',
- 'all_transactions' => 'All transactions',
- 'title_withdrawal_between' => 'All expenses between :start and :end',
- 'all_deposit' => 'All revenue',
- 'title_deposit_between' => 'All revenue between :start and :end',
- 'all_transfers' => 'All transfers',
- 'title_transfers_between' => 'All transfers between :start and :end',
- 'all_transfer' => 'All transfers',
- 'all_journals_for_tag' => 'All transactions for tag ":tag"',
- 'title_transfer_between' => 'All transfers between :start and :end',
- 'all_journals_for_category' => 'All transactions for category :name',
- 'all_journals_for_budget' => 'All transactions for budget :name',
- 'chart_all_journals_for_budget' => 'Chart of all transactions for budget :name',
- 'journals_in_period_for_category' => 'All transactions for category :name between :start and :end',
- 'journals_in_period_for_tag' => 'All transactions for tag :tag between :start and :end',
- 'not_available_demo_user' => 'The feature you try to access is not available to demo users.',
- 'exchange_rate_instructions' => 'Asset account "@name" only accepts transactions in @native_currency. If you wish to use @foreign_currency instead, make sure that the amount in @native_currency is known as well:',
- 'transfer_exchange_rate_instructions' => 'Source asset account "@source_name" only accepts transactions in @source_currency. Destination asset account "@dest_name" only accepts transactions in @dest_currency. You must provide the transferred amount correctly in both currencies.',
- 'transaction_data' => 'Transaction data',
- 'invalid_server_configuration' => 'Invalid server configuration',
- 'invalid_locale_settings' => 'Firefly III is unable to format monetary amounts because your server is missing the required packages. There are <a href="https://docs.firefly-iii.org/how-to/firefly-iii/advanced/locales/">instructions how to do this</a>.',
- 'quickswitch' => 'Quickswitch',
- 'sign_in_to_start' => 'Sign in to start your session',
- 'sign_in' => 'Sign in',
- 'register_new_account' => 'Register a new account',
- 'forgot_my_password' => 'I forgot my password',
- 'problems_with_input' => 'There were some problems with your input.',
- 'reset_password' => 'Reset your password',
- 'button_reset_password' => 'Reset password',
- 'reset_button' => 'Reset',
- 'want_to_login' => 'I want to login',
- 'login_page_title' => 'Login to Firefly III',
- 'register_page_title' => 'Register at Firefly III',
- 'forgot_pw_page_title' => 'Forgot your password for Firefly III',
- 'reset_pw_page_title' => 'Reset your password for Firefly III',
- 'cannot_reset_demo_user' => 'You cannot reset the password of the demo user.',
- 'no_att_demo_user' => 'The demo user can\'t upload attachments.',
- 'button_register' => 'Register',
- 'authorization' => 'Authorization',
- 'active_bills_only' => 'active bills only',
- 'active_bills_only_total' => 'all active bills',
- 'active_exp_bills_only' => 'active and expected bills only',
- 'active_exp_bills_only_total' => 'all active expected bills only',
- 'per_period_sum_1D' => 'Expected daily costs',
- 'per_period_sum_1W' => 'Expected weekly costs',
- 'per_period_sum_1M' => 'Expected monthly costs',
- 'per_period_sum_3M' => 'Expected quarterly costs',
- 'per_period_sum_6M' => 'Expected half-yearly costs',
- 'per_period_sum_1Y' => 'Expected yearly costs',
- 'average_per_bill' => 'average per bill',
- 'expected_total' => 'expected total',
- 'reconciliation_account_name' => ':name reconciliation (:currency)',
- 'saved' => 'Saved',
- 'advanced_options' => 'Advanced options',
- 'advanced_options_explain' => 'Some pages in Firefly III have advanced options hidden behind this button. This page doesn\'t have anything fancy here, but do check out the others!',
- 'here_be_dragons' => 'Hic sunt dracones',
+ 'close' => 'Close',
+ 'actions' => 'Actions',
+ 'edit' => 'Edit',
+ 'delete' => 'Delete',
+ 'split' => 'Split',
+ 'single_split' => 'Split',
+ 'clone' => 'Clone',
+ 'clone_and_edit' => 'Clone and edit',
+ 'confirm_action' => 'Confirm action',
+ 'last_seven_days' => 'Last seven days',
+ 'last_thirty_days' => 'Last thirty days',
+ 'last_180_days' => 'Last 180 days',
+ 'month_to_date' => 'Month to date',
+ 'year_to_date' => 'Year to date',
+ 'YTD' => 'YTD',
+ 'welcome_back' => 'What\'s playing?',
+ 'everything' => 'Everything',
+ 'today' => 'today',
+ 'customRange' => 'Custom range',
+ 'date_range' => 'Date range',
+ 'apply' => 'Apply',
+ 'select_date' => 'Select date..',
+ 'cancel' => 'Cancel',
+ 'from' => 'From',
+ 'to' => 'To',
+ 'structure' => 'Structure',
+ 'help_translating' => 'This help text is not yet available in your language. <a href="https://crowdin.com/project/firefly-iii-help">Will you help translate?</a>',
+ 'showEverything' => 'Show everything',
+ 'never' => 'Never',
+ 'no_results_for_empty_search' => 'Your search was empty, so nothing was found.',
+ 'removed_amount' => 'Removed :amount',
+ 'added_amount' => 'Added :amount',
+ 'asset_account_role_help' => 'Any extra options resulting from your choice can be set later.',
+ 'Opening balance' => 'Opening balance',
+ 'create_new_stuff' => 'Create new stuff',
+ 'new_withdrawal' => 'New withdrawal',
+ 'create_new_transaction' => 'Create a new transaction',
+ 'sidebar_frontpage_create' => 'Create',
+ 'new_transaction' => 'New transaction',
+ 'no_rules_for_bill' => 'This bill has no rules associated to it.',
+ 'go_to_asset_accounts' => 'View your asset accounts',
+ 'go_to_budgets' => 'Go to your budgets',
+ 'go_to_withdrawals' => 'Go to your withdrawals',
+ 'clones_journal_x' => 'This transaction is a clone of ":description" (#:id)',
+ 'go_to_categories' => 'Go to your categories',
+ 'go_to_bills' => 'Go to your bills',
+ 'go_to_expense_accounts' => 'See your expense accounts',
+ 'go_to_revenue_accounts' => 'See your revenue accounts',
+ 'go_to_piggies' => 'Go to your piggy banks',
+ 'new_deposit' => 'New deposit',
+ 'new_transfer' => 'New transfer',
+ 'new_transfers' => 'New transfer',
+ 'new_asset_account' => 'New asset account',
+ 'new_expense_account' => 'New expense account',
+ 'new_revenue_account' => 'New revenue account',
+ 'new_liabilities_account' => 'New liability',
+ 'new_budget' => 'New budget',
+ 'new_bill' => 'New bill',
+ 'block_account_logout' => 'You have been logged out. Blocked accounts cannot use this site. Did you register with a valid email address?',
+ 'flash_success' => 'Success!',
+ 'flash_info' => 'Message',
+ 'flash_warning' => 'Warning!',
+ 'flash_error' => 'Error!',
+ 'flash_danger' => 'Danger!',
+ 'flash_info_multiple' => 'There is one message|There are :count messages',
+ 'flash_error_multiple' => 'There is one error|There are :count errors',
+ 'net_worth' => 'Net worth',
+ 'help_for_this_page' => 'Help for this page',
+ 'help_for_this_page_body' => 'You can find more information about this page <a href="https://docs.firefly-iii.org/">in the documentation</a>.',
+ 'two_factor_welcome' => 'Hello!',
+ 'two_factor_enter_code' => 'To continue, please enter your two factor authentication code. Your application can generate it for you.',
+ 'two_factor_code_here' => 'Enter code here',
+ 'two_factor_title' => 'Two factor authentication',
+ 'authenticate' => 'Authenticate',
+ 'two_factor_forgot_title' => 'Lost two factor authentication',
+ 'two_factor_forgot' => 'I forgot my two-factor thing.',
+ 'two_factor_lost_header' => 'Lost your two factor authentication?',
+ 'two_factor_lost_intro' => 'If you lost your backup codes as well, you have bad luck. This is not something you can fix from the web interface. You have two choices.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>this entry in the FAQ</a> for instructions.',
+ 'two_factor_lost_fix_owner' => 'Otherwise, email the site owner, <a href="mailto::site_owner">:site_owner</a> and ask them to reset your two factor authentication.',
+ 'mfa_backup_code' => 'You have used a backup code to login to Firefly III. It can\'t be used again, so cross it from your list.',
+ 'pref_two_factor_new_backup_codes' => 'Get new backup codes',
+ 'pref_two_factor_backup_code_count' => 'You have :count valid backup code.|You have :count valid backup codes.',
+ '2fa_i_have_them' => 'I stored them!',
+ 'warning_much_data' => ':days days of data may take a while to load.',
+ 'registered' => 'You have registered successfully!',
+ 'Default asset account' => 'Default asset account',
+ 'no_budget_pointer' => 'You seem to have no budgets yet. You should create some on the <a href="budgets">budgets</a>-page. Budgets can help you keep track of expenses.',
+ 'no_bill_pointer' => 'You seem to have no bills yet. You should create some on the <a href="bills">bills</a>-page. Bills can help you keep track of expenses.',
+ 'Savings account' => 'Savings account',
+ 'Credit card' => 'Credit card',
+ 'source_accounts' => 'Source account|Source accounts',
+ 'destination_accounts' => 'Destination account|Destination accounts',
+ 'user_id_is' => 'Your user id is <strong>:user</strong>',
+ 'field_supports_markdown' => 'This field supports <a href="https://en.support.wordpress.com/markdown-quick-reference/">Markdown</a>.',
+ 'need_more_help' => 'If you need more help using Firefly III, please <a href="https://github.com/firefly-iii/firefly-iii/issues">open a ticket on Github</a>.',
+ 'reenable_intro_text' => 'You can also re-enable <a href="#" id="reenableGuidance">the introduction guidance</a>.',
+ 'intro_boxes_after_refresh' => 'The introduction boxes will reappear when you refresh the page.',
+ 'show_all_no_filter' => 'Show all transactions without grouping them by date.',
+ 'expenses_by_category' => 'Expenses by category',
+ 'expenses_by_budget' => 'Expenses by budget',
+ 'income_by_category' => 'Income by category',
+ 'expenses_by_asset_account' => 'Expenses by asset account',
+ 'expenses_by_expense_account' => 'Expenses by expense account',
+ 'cannot_redirect_to_account' => 'Firefly III cannot redirect you to the correct page. Apologies.',
+ 'sum_of_expenses' => 'Sum of expenses',
+ 'sum_of_income' => 'Sum of income',
+ 'liabilities' => 'Liabilities',
+ 'spent_in_specific_budget' => 'Spent in budget ":budget"',
+ 'spent_in_specific_double' => 'Spent in account ":account"',
+ 'earned_in_specific_double' => 'Earned in account ":account"',
+ 'source_account' => 'Source account',
+ 'source_account_reconciliation' => 'You can\'t edit the source account of a reconciliation transaction.',
+ 'destination_account' => 'Destination account',
+ 'destination_account_reconciliation' => 'You can\'t edit the destination account of a reconciliation transaction.',
+ 'sum_of_expenses_in_budget' => 'Spent total in budget ":budget"',
+ 'left_in_budget_limit' => 'Left to spend according to budgeting',
+ 'current_period' => 'Current period',
+ 'show_the_current_period_and_overview' => 'Show the current period and overview',
+ 'pref_languages_locale' => 'For a language other than English to work properly, your operating system must be equipped with the correct locale-information. If these are not present, currency data, dates and amounts may be formatted wrong.',
+ 'budget_in_period' => 'All transactions for budget ":name" between :start and :end in :currency',
+ 'chart_budget_in_period' => 'Chart for all transactions for budget ":name" between :start and :end in :currency',
+ 'chart_budget_in_period_only_currency' => 'The amount you budgeted was in :currency, so this chart will only show transactions in :currency.',
+ 'chart_account_in_period' => 'Chart for all transactions for account ":name" (:balance) between :start and :end',
+ 'chart_category_in_period' => 'Chart for all transactions for category ":name" between :start and :end',
+ 'chart_category_all' => 'Chart for all transactions for category ":name"',
+ 'clone_withdrawal' => 'Clone this withdrawal',
+ 'clone_deposit' => 'Clone this deposit',
+ 'clone_transfer' => 'Clone this transfer',
+ 'multi_select_no_selection' => 'None selected',
+ 'multi_select_select_all' => 'Select all',
+ 'multi_select_n_selected' => 'selected',
+ 'multi_select_all_selected' => 'All selected',
+ 'multi_select_filter_placeholder' => 'Find..',
+ 'intro_next_label' => 'Next',
+ 'intro_prev_label' => 'Previous',
+ 'intro_skip_label' => 'Skip',
+ 'intro_done_label' => 'Done',
+ 'between_dates_breadcrumb' => 'Between :start and :end',
+ 'all_journals_without_budget' => 'All transactions without a budget',
+ 'journals_without_budget' => 'Transactions without a budget',
+ 'all_journals_without_category' => 'All transactions without a category',
+ 'journals_without_category' => 'Transactions without a category',
+ 'all_journals_for_account' => 'All transactions for account :name',
+ 'chart_all_journals_for_account' => 'Chart of all transactions for account :name',
+ 'journals_in_period_for_account' => 'All transactions for account :name between :start and :end',
+ 'journals_in_period_for_account_js' => 'All transactions for account {title} between {start} and {end}',
+ 'transferred' => 'Transferred',
+ 'all_withdrawal' => 'All expenses',
+ 'all_transactions' => 'All transactions',
+ 'title_withdrawal_between' => 'All expenses between :start and :end',
+ 'all_deposit' => 'All revenue',
+ 'title_deposit_between' => 'All revenue between :start and :end',
+ 'all_transfers' => 'All transfers',
+ 'title_transfers_between' => 'All transfers between :start and :end',
+ 'all_transfer' => 'All transfers',
+ 'all_journals_for_tag' => 'All transactions for tag ":tag"',
+ 'title_transfer_between' => 'All transfers between :start and :end',
+ 'all_journals_for_category' => 'All transactions for category :name',
+ 'all_journals_for_budget' => 'All transactions for budget :name',
+ 'chart_all_journals_for_budget' => 'Chart of all transactions for budget :name',
+ 'journals_in_period_for_category' => 'All transactions for category :name between :start and :end',
+ 'journals_in_period_for_tag' => 'All transactions for tag :tag between :start and :end',
+ 'not_available_demo_user' => 'The feature you try to access is not available to demo users.',
+ 'exchange_rate_instructions' => 'Asset account "@name" only accepts transactions in @native_currency. If you wish to use @foreign_currency instead, make sure that the amount in @native_currency is known as well:',
+ 'transfer_exchange_rate_instructions' => 'Source asset account "@source_name" only accepts transactions in @source_currency. Destination asset account "@dest_name" only accepts transactions in @dest_currency. You must provide the transferred amount correctly in both currencies.',
+ 'transaction_data' => 'Transaction data',
+ 'invalid_server_configuration' => 'Invalid server configuration',
+ 'invalid_locale_settings' => 'Firefly III is unable to format monetary amounts because your server is missing the required packages. There are <a href="https://docs.firefly-iii.org/how-to/firefly-iii/advanced/locales/">instructions how to do this</a>.',
+ 'quickswitch' => 'Quickswitch',
+ 'sign_in_to_start' => 'Sign in to start your session',
+ 'sign_in' => 'Sign in',
+ 'register_new_account' => 'Register a new account',
+ 'forgot_my_password' => 'I forgot my password',
+ 'problems_with_input' => 'There were some problems with your input.',
+ 'reset_password' => 'Reset your password',
+ 'button_reset_password' => 'Reset password',
+ 'reset_button' => 'Reset',
+ 'want_to_login' => 'I want to login',
+ 'login_page_title' => 'Login to Firefly III',
+ 'register_page_title' => 'Register at Firefly III',
+ 'forgot_pw_page_title' => 'Forgot your password for Firefly III',
+ 'reset_pw_page_title' => 'Reset your password for Firefly III',
+ 'cannot_reset_demo_user' => 'You cannot reset the password of the demo user.',
+ 'no_att_demo_user' => 'The demo user can\'t upload attachments.',
+ 'button_register' => 'Register',
+ 'authorization' => 'Authorization',
+ 'active_bills_only' => 'active bills only',
+ 'active_bills_only_total' => 'all active bills',
+ 'active_exp_bills_only' => 'active and expected bills only',
+ 'active_exp_bills_only_total' => 'all active expected bills only',
+ 'per_period_sum_1D' => 'Expected daily costs',
+ 'per_period_sum_1W' => 'Expected weekly costs',
+ 'per_period_sum_1M' => 'Expected monthly costs',
+ 'per_period_sum_3M' => 'Expected quarterly costs',
+ 'per_period_sum_6M' => 'Expected half-yearly costs',
+ 'per_period_sum_1Y' => 'Expected yearly costs',
+ 'average_per_bill' => 'average per bill',
+ 'expected_total' => 'expected total',
+ 'reconciliation_account_name' => ':name reconciliation (:currency)',
+ 'saved' => 'Saved',
+ 'advanced_options' => 'Advanced options',
+ 'advanced_options_explain' => 'Some pages in Firefly III have advanced options hidden behind this button. This page doesn\'t have anything fancy here, but do check out the others!',
+ 'here_be_dragons' => 'Hic sunt dracones',
// Webhooks
- 'webhooks' => 'Webhooks',
- 'webhooks_breadcrumb' => 'Webhooks',
- 'webhooks_menu_disabled' => 'disabled',
- 'no_webhook_messages' => 'There are no webhook messages',
- 'webhook_trigger_STORE_TRANSACTION' => 'After transaction creation',
- 'webhook_trigger_UPDATE_TRANSACTION' => 'After transaction update',
- 'webhook_trigger_DESTROY_TRANSACTION' => 'After transaction delete',
- 'webhook_response_TRANSACTIONS' => 'Transaction details',
- 'webhook_response_ACCOUNTS' => 'Account details',
- 'webhook_response_none_NONE' => 'No details',
- 'webhook_delivery_JSON' => 'JSON',
- 'inspect' => 'Inspect',
- 'create_new_webhook' => 'Create new webhook',
- 'webhooks_create_breadcrumb' => 'Create new webhook',
- 'webhook_trigger_form_help' => 'Indicate on what event the webhook will trigger',
- 'webhook_response_form_help' => 'Indicate what the webhook must submit to the URL.',
- 'webhook_delivery_form_help' => 'Which format the webhook must deliver data in.',
- 'webhook_active_form_help' => 'The webhook must be active or it won\'t be called.',
- 'stored_new_webhook' => 'Stored new webhook ":title"',
- 'delete_webhook' => 'Delete webhook',
- 'deleted_webhook' => 'Deleted webhook ":title"',
- 'edit_webhook' => 'Edit webhook ":title"',
- 'updated_webhook' => 'Updated webhook ":title"',
- 'edit_webhook_js' => 'Edit webhook "{title}"',
- 'show_webhook' => 'Webhook ":title"',
- 'webhook_was_triggered' => 'The webhook was triggered on the indicated transaction. Please wait for results to appear.',
- 'webhook_messages' => 'Webhook message',
- 'view_message' => 'View message',
- 'view_attempts' => 'View failed attempts',
- 'message_content_title' => 'Webhook message content',
- 'message_content_help' => 'This is the content of the message that was sent (or tried) using this webhook.',
- 'attempt_content_title' => 'Webhook attempts',
- 'attempt_content_help' => 'These are all the unsuccessful attempts of this webhook message to submit to the configured URL. After some time, Firefly III will stop trying.',
- 'no_attempts' => 'There are no unsuccessful attempts. That\'s a good thing!',
- 'webhook_attempt_at' => 'Attempt at {moment}',
- 'logs' => 'Logs',
- 'response' => 'Response',
- 'visit_webhook_url' => 'Visit webhook URL',
- 'reset_webhook_secret' => 'Reset webhook secret',
- 'webhook_stored_link' => '<a href="webhooks/show/{ID}">Webhook #{ID} ("{title}")</a> has been stored.',
- 'webhook_updated_link' => '<a href="webhooks/show/{ID}">Webhook #{ID}</a> ("{title}") has been updated.',
+ 'webhooks' => 'Webhooks',
+ 'webhooks_breadcrumb' => 'Webhooks',
+ 'webhooks_menu_disabled' => 'disabled',
+ 'no_webhook_messages' => 'There are no webhook messages',
+ 'webhook_trigger_STORE_TRANSACTION' => 'After transaction creation',
+ 'webhook_trigger_UPDATE_TRANSACTION' => 'After transaction update',
+ 'webhook_trigger_DESTROY_TRANSACTION' => 'After transaction delete',
+ 'webhook_response_TRANSACTIONS' => 'Transaction details',
+ 'webhook_response_ACCOUNTS' => 'Account details',
+ 'webhook_response_none_NONE' => 'No details',
+ 'webhook_delivery_JSON' => 'JSON',
+ 'inspect' => 'Inspect',
+ 'create_new_webhook' => 'Create new webhook',
+ 'webhooks_create_breadcrumb' => 'Create new webhook',
+ 'webhook_trigger_form_help' => 'Indicate on what event the webhook will trigger',
+ 'webhook_response_form_help' => 'Indicate what the webhook must submit to the URL.',
+ 'webhook_delivery_form_help' => 'Which format the webhook must deliver data in.',
+ 'webhook_active_form_help' => 'The webhook must be active or it won\'t be called.',
+ 'stored_new_webhook' => 'Stored new webhook ":title"',
+ 'delete_webhook' => 'Delete webhook',
+ 'deleted_webhook' => 'Deleted webhook ":title"',
+ 'edit_webhook' => 'Edit webhook ":title"',
+ 'updated_webhook' => 'Updated webhook ":title"',
+ 'edit_webhook_js' => 'Edit webhook "{title}"',
+ 'show_webhook' => 'Webhook ":title"',
+ 'webhook_was_triggered' => 'The webhook was triggered on the indicated transaction. Please wait for results to appear.',
+ 'webhook_messages' => 'Webhook message',
+ 'view_message' => 'View message',
+ 'view_attempts' => 'View failed attempts',
+ 'message_content_title' => 'Webhook message content',
+ 'message_content_help' => 'This is the content of the message that was sent (or tried) using this webhook.',
+ 'attempt_content_title' => 'Webhook attempts',
+ 'attempt_content_help' => 'These are all the unsuccessful attempts of this webhook message to submit to the configured URL. After some time, Firefly III will stop trying.',
+ 'no_attempts' => 'There are no unsuccessful attempts. That\'s a good thing!',
+ 'webhook_attempt_at' => 'Attempt at {moment}',
+ 'logs' => 'Logs',
+ 'response' => 'Response',
+ 'visit_webhook_url' => 'Visit webhook URL',
+ 'reset_webhook_secret' => 'Reset webhook secret',
+ 'webhook_stored_link' => '<a href="webhooks/show/{ID}">Webhook #{ID} ("{title}")</a> has been stored.',
+ 'webhook_updated_link' => '<a href="webhooks/show/{ID}">Webhook #{ID}</a> ("{title}") has been updated.',
// API access
- 'authorization_request' => 'Firefly III v:version Authorization Request',
- 'authorization_request_intro' => 'Application "<strong>:client</strong>" is requesting permission to access your financial administration. Would you like to authorize <strong>:client</strong> to access these records?',
- 'authorization_request_site' => 'You will be redirected to <code>:url</code> which will then be able to access your Firefly III data.',
- 'authorization_request_invalid' => 'This access request is invalid. Please never follow this link again.',
- 'scopes_will_be_able' => 'This application will be able to:',
- 'button_authorize' => 'Authorize',
- 'none_in_select_list' => '(none)',
- 'no_piggy_bank' => '(no piggy bank)',
- 'name_in_currency' => ':name in :currency',
- 'paid_in_currency' => 'Paid in :currency',
- 'unpaid_in_currency' => 'Unpaid in :currency',
- 'is_alpha_warning' => 'You are running an ALPHA version. Be wary of bugs and issues.',
- 'is_beta_warning' => 'You are running an BETA version. Be wary of bugs and issues.',
- 'all_destination_accounts' => 'Destination accounts',
- 'all_source_accounts' => 'Source accounts',
- 'back_to_index' => 'Back to the index',
- 'cant_logout_guard' => 'Firefly III can\'t log you out.',
- 'internal_reference' => 'Internal reference',
+ 'authorization_request' => 'Firefly III v:version Authorization Request',
+ 'authorization_request_intro' => 'Application "<strong>:client</strong>" is requesting permission to access your financial administration. Would you like to authorize <strong>:client</strong> to access these records?',
+ 'authorization_request_site' => 'You will be redirected to <code>:url</code> which will then be able to access your Firefly III data.',
+ 'authorization_request_invalid' => 'This access request is invalid. Please never follow this link again.',
+ 'scopes_will_be_able' => 'This application will be able to:',
+ 'button_authorize' => 'Authorize',
+ 'none_in_select_list' => '(none)',
+ 'no_piggy_bank' => '(no piggy bank)',
+ 'name_in_currency' => ':name in :currency',
+ 'paid_in_currency' => 'Paid in :currency',
+ 'unpaid_in_currency' => 'Unpaid in :currency',
+ 'is_alpha_warning' => 'You are running an ALPHA version. Be wary of bugs and issues.',
+ 'is_beta_warning' => 'You are running an BETA version. Be wary of bugs and issues.',
+ 'all_destination_accounts' => 'Destination accounts',
+ 'all_source_accounts' => 'Source accounts',
+ 'back_to_index' => 'Back to the index',
+ 'cant_logout_guard' => 'Firefly III can\'t log you out.',
+ 'internal_reference' => 'Internal reference',
// check for updates:
- 'update_check_title' => 'Check for updates',
- 'admin_update_check_title' => 'Automatically check for update',
- 'admin_update_check_explain' => 'Firefly III can check for updates automatically. When you enable this setting, it will contact the Firefly III update server to see if a new version of Firefly III is available. When it is, you will get a notification. You can test this notification using the button on the right. Please indicate below if you want Firefly III to check for updates.',
- 'check_for_updates_permission' => 'Firefly III can check for updates, but it needs your permission to do so. Please go to the <a href=":link">administration</a> to indicate if you would like this feature to be enabled.',
- 'updates_ask_me_later' => 'Ask me later',
- 'updates_do_not_check' => 'Do not check for updates',
- 'updates_enable_check' => 'Enable the check for updates',
- 'admin_update_check_now_title' => 'Check for updates now',
- 'admin_update_check_now_explain' => 'If you press the button, Firefly III will see if your current version is the latest.',
- 'check_for_updates_button' => 'Check now!',
- 'update_new_version_alert' => 'A new version of Firefly III is available. You are running :your_version, the latest version is :new_version which was released on :date.',
- 'update_version_beta' => 'This version is a BETA version. You may run into issues.',
- 'update_version_alpha' => 'This version is a ALPHA version. You may run into issues.',
- 'update_current_version_alert' => 'You are running :version, which is the latest available release.',
- 'update_newer_version_alert' => 'You are running :your_version, which is newer than the latest release, :new_version.',
- 'update_check_error' => 'An error occurred while checking for updates: :error',
- 'unknown_error' => 'Unknown error. Sorry about that.',
- 'just_new_release' => 'A new version is available! Version :version was released :date. This release is very fresh. Wait a few days for the new release to stabilize.',
- 'disabled_but_check' => 'You disabled update checking. So don\'t forget to check for updates yourself every now and then. Thank you!',
- 'admin_update_channel_title' => 'Update channel',
- 'admin_update_channel_explain' => 'Firefly III has three update "channels" which determine how ahead of the curve you are in terms of features, enhancements and bugs. Use the "beta" channel if you\'re adventurous and the "alpha" when you like to live life dangerously.',
- 'update_channel_stable' => 'Stable. Everything should work as expected.',
- 'update_channel_beta' => 'Beta. New features but things may be broken.',
- 'update_channel_alpha' => 'Alpha. We throw stuff in, and use whatever sticks.',
+ 'update_check_title' => 'Check for updates',
+ 'admin_update_check_title' => 'Automatically check for update',
+ 'admin_update_check_explain' => 'Firefly III can check for updates automatically. When you enable this setting, it will contact the Firefly III update server to see if a new version of Firefly III is available. When it is, you will get a notification. You can test this notification using the button on the right. Please indicate below if you want Firefly III to check for updates.',
+ 'check_for_updates_permission' => 'Firefly III can check for updates, but it needs your permission to do so. Please go to the <a href=":link">administration</a> to indicate if you would like this feature to be enabled.',
+ 'updates_ask_me_later' => 'Ask me later',
+ 'updates_do_not_check' => 'Do not check for updates',
+ 'updates_enable_check' => 'Enable the check for updates',
+ 'admin_update_check_now_title' => 'Check for updates now',
+ 'admin_update_check_now_explain' => 'If you press the button, Firefly III will see if your current version is the latest.',
+ 'check_for_updates_button' => 'Check now!',
+ 'update_new_version_alert' => 'A new version of Firefly III is available. You are running :your_version, the latest version is :new_version which was released on :date.',
+ 'update_version_beta' => 'This version is a BETA version. You may run into issues.',
+ 'update_version_alpha' => 'This version is a ALPHA version. You may run into issues.',
+ 'update_current_version_alert' => 'You are running :version, which is the latest available release.',
+ 'update_newer_version_alert' => 'You are running :your_version, which is newer than the latest release, :new_version.',
+ 'update_check_error' => 'An error occurred while checking for updates: :error',
+ 'unknown_error' => 'Unknown error. Sorry about that.',
+ 'just_new_release' => 'A new version is available! Version :version was released :date. This release is very fresh. Wait a few days for the new release to stabilize.',
+ 'disabled_but_check' => 'You disabled update checking. So don\'t forget to check for updates yourself every now and then. Thank you!',
+ 'admin_update_channel_title' => 'Update channel',
+ 'admin_update_channel_explain' => 'Firefly III has three update "channels" which determine how ahead of the curve you are in terms of features, enhancements and bugs. Use the "beta" channel if you\'re adventurous and the "alpha" when you like to live life dangerously.',
+ 'update_channel_stable' => 'Stable. Everything should work as expected.',
+ 'update_channel_beta' => 'Beta. New features but things may be broken.',
+ 'update_channel_alpha' => 'Alpha. We throw stuff in, and use whatever sticks.',
// search
- 'search' => 'Search',
- 'search_query' => 'Query',
- 'search_found_transactions' => 'Firefly III found :count transaction in :time seconds.|Firefly III found :count transactions in :time seconds.',
- 'search_found_more_transactions' => 'Firefly III found more than :count transactions in :time seconds.',
- 'search_for_query' => 'Firefly III is searching for transactions with all of these words in them: <span class="text-info">:query</span>',
- 'invalid_operators_list' => 'These search parameters are not valid and have been ignored.',
+ 'search' => 'Search',
+ 'search_query' => 'Query',
+ 'search_found_transactions' => 'Firefly III found :count transaction in :time seconds.|Firefly III found :count transactions in :time seconds.',
+ 'search_found_more_transactions' => 'Firefly III found more than :count transactions in :time seconds.',
+ 'search_for_query' => 'Firefly III is searching for transactions with all of these words in them: <span class="text-info">:query</span>',
+ 'invalid_operators_list' => 'These search parameters are not valid and have been ignored.',
// old
@@ -1254,1419 +1254,1420 @@ return [
'new_rule_for_bill_title' => 'Rule for bill ":name"',
'new_rule_for_bill_description' => 'This rule marks transactions for bill ":name".',
- 'new_rule_for_journal_title' => 'Rule based on transaction ":description"',
- 'new_rule_for_journal_description' => 'This rule is based on transaction ":description". It will match transactions that are exactly the same.',
+ 'new_rule_for_journal_title' => 'Rule based on transaction ":description"',
+ 'new_rule_for_journal_description' => 'This rule is based on transaction ":description". It will match transactions that are exactly the same.',
// tags
- 'store_new_tag' => 'Store new tag',
- 'update_tag' => 'Update tag',
- 'no_location_set' => 'No location set.',
- 'meta_data' => 'Meta data',
- 'location' => 'Location',
- 'without_date' => 'Without date',
- 'result' => 'Result',
- 'sums_apply_to_range' => 'All sums apply to the selected range',
- 'mapbox_api_key' => 'To use map, get an API key from <a href="https://www.mapbox.com/">Mapbox</a>. Open your <code>.env</code> file and enter this code after <code>MAPBOX_API_KEY=</code>.',
- 'press_object_location' => 'Right click or long press to set the object\'s location.',
- 'click_tap_location' => 'Click or tap the map to add a location',
- 'clear_location' => 'Clear location',
- 'delete_all_selected_tags' => 'Delete all selected tags',
- 'select_tags_to_delete' => 'Don\'t forget to select some tags.',
- 'deleted_x_tags' => 'Deleted :count tag.|Deleted :count tags.',
- 'create_rule_from_transaction' => 'Create rule based on transaction',
- 'create_recurring_from_transaction' => 'Create recurring transaction based on transaction',
+ 'store_new_tag' => 'Store new tag',
+ 'update_tag' => 'Update tag',
+ 'no_location_set' => 'No location set.',
+ 'meta_data' => 'Meta data',
+ 'location' => 'Location',
+ 'location_first_split' => 'The location for this transaction can be set on the first split of this transaction.',
+ 'without_date' => 'Without date',
+ 'result' => 'Result',
+ 'sums_apply_to_range' => 'All sums apply to the selected range',
+ 'mapbox_api_key' => 'To use map, get an API key from <a href="https://www.mapbox.com/">Mapbox</a>. Open your <code>.env</code> file and enter this code after <code>MAPBOX_API_KEY=</code>.',
+ 'press_object_location' => 'Right click or long press to set the object\'s location.',
+ 'click_tap_location' => 'Click or tap the map to add a location',
+ 'clear_location' => 'Clear location',
+ 'delete_all_selected_tags' => 'Delete all selected tags',
+ 'select_tags_to_delete' => 'Don\'t forget to select some tags.',
+ 'deleted_x_tags' => 'Deleted :count tag.|Deleted :count tags.',
+ 'create_rule_from_transaction' => 'Create rule based on transaction',
+ 'create_recurring_from_transaction' => 'Create recurring transaction based on transaction',
// preferences
- 'dark_mode_option_browser' => 'Let your browser decide',
- 'dark_mode_option_light' => 'Always light',
- 'dark_mode_option_dark' => 'Always dark',
- 'equal_to_language' => '(equal to language)',
- 'dark_mode_preference' => 'Dark mode',
- 'dark_mode_preference_help' => 'Tell Firefly III when to use dark mode.',
- 'pref_home_screen_accounts' => 'Home screen accounts',
- 'pref_home_screen_accounts_help' => 'Which accounts should be displayed on the home page?',
- 'pref_view_range' => 'View range',
- 'pref_view_range_help' => 'Some charts are automatically grouped in periods. Your budgets will also be grouped in periods. What period would you prefer?',
- 'pref_1D' => 'One day',
- 'pref_1W' => 'One week',
- 'pref_1M' => 'One month',
- 'pref_3M' => 'Three months (quarter)',
- 'pref_6M' => 'Six months',
- 'pref_1Y' => 'One year',
- 'pref_last365' => 'Last year',
- 'pref_last90' => 'Last 90 days',
- 'pref_last30' => 'Last 30 days',
- 'pref_last7' => 'Last 7 days',
- 'pref_YTD' => 'Year to date',
- 'pref_QTD' => 'Quarter to date',
- 'pref_MTD' => 'Month to date',
- 'pref_languages' => 'Languages',
- 'pref_locale' => 'Locale settings',
- 'pref_languages_help' => 'Firefly III supports several languages. Which one do you prefer?',
- 'pref_locale_help' => 'Firefly III allows you to set other local settings, like how currencies, numbers and dates are formatted. Entries in this list may not be supported by your system. Firefly III doesn\'t have the correct date settings for every locale; contact me for improvements.',
- 'pref_locale_no_demo' => 'This feature won\'t work for the demo user.',
- 'pref_custom_fiscal_year' => 'Fiscal year settings',
- 'pref_custom_fiscal_year_label' => 'Enabled',
- 'pref_custom_fiscal_year_help' => 'In countries that use a financial year other than January 1 to December 31, you can switch this on and specify start / end days of the fiscal year',
- 'pref_fiscal_year_start_label' => 'Fiscal year start date',
- 'pref_two_factor_auth' => '2-step verification',
- 'pref_two_factor_auth_help' => 'When you enable 2-step verification (also known as two-factor authentication), you add an extra layer of security to your account. You sign in with something you know (your password) and something you have (a verification code). Verification codes are generated by an application on your phone, such as Authy or Google Authenticator.',
- 'pref_enable_two_factor_auth' => 'Enable 2-step verification',
- 'pref_two_factor_auth_disabled' => '2-step verification code removed and disabled',
- 'pref_two_factor_auth_remove_it' => 'Don\'t forget to remove the account from your authentication app!',
- 'pref_two_factor_auth_code' => 'Verify code',
- 'pref_two_factor_auth_code_help' => 'Scan the QR code with an application on your phone such as Authy or Google Authenticator and enter the generated code.',
- 'pref_two_factor_auth_reset_code' => 'Reset verification code',
- 'pref_two_factor_auth_disable_2fa' => 'Disable 2FA',
- '2fa_use_secret_instead' => 'If you cannot scan the QR code, feel free to use the secret instead: <code>:secret</code>.',
- '2fa_backup_codes' => 'Store these backup codes for access in case you lose your device.',
- '2fa_already_enabled' => '2-step verification is already enabled.',
- 'wrong_mfa_code' => 'This MFA code is not valid.',
- 'pref_save_settings' => 'Save settings',
- 'saved_preferences' => 'Preferences saved!',
- 'preferences_general' => 'General',
- 'preferences_frontpage' => 'Home screen',
- 'preferences_security' => 'Security',
- 'preferences_layout' => 'Layout',
- 'preferences_notifications' => 'Notifications',
- 'pref_home_show_deposits' => 'Show deposits on the home screen',
- 'pref_home_show_deposits_info' => 'The home screen already shows your expense accounts. Should it also show your revenue accounts?',
- 'pref_home_do_show_deposits' => 'Yes, show them',
- 'successful_count' => 'of which :count successful',
- 'list_page_size_title' => 'Page size',
- 'list_page_size_help' => 'Any list of things (accounts, transactions, etc) shows at most this many per page.',
- 'list_page_size_label' => 'Page size',
- 'between_dates' => '(:start and :end)',
- 'pref_optional_fields_transaction' => 'Optional fields for transactions',
- 'pref_optional_fields_transaction_help' => 'By default not all fields are enabled when creating a new transaction (because of the clutter). Below, you can enable these fields if you think they could be useful for you. Of course, any field that is disabled, but already filled in, will be visible regardless of the setting.',
- 'optional_tj_date_fields' => 'Date fields',
- 'optional_tj_other_fields' => 'Other fields',
- 'optional_tj_attachment_fields' => 'Attachment fields',
- 'pref_optional_tj_interest_date' => 'Interest date',
- 'pref_optional_tj_book_date' => 'Book date',
- 'pref_optional_tj_process_date' => 'Processing date',
- 'pref_optional_tj_due_date' => 'Due date',
- 'pref_optional_tj_payment_date' => 'Payment date',
- 'pref_optional_tj_invoice_date' => 'Invoice date',
- 'pref_optional_tj_internal_reference' => 'Internal reference',
- 'pref_optional_tj_notes' => 'Notes',
- 'pref_optional_tj_attachments' => 'Attachments',
- 'pref_optional_tj_external_url' => 'External URL',
- 'pref_optional_tj_location' => 'Location',
- 'pref_optional_tj_links' => 'Transaction links',
- 'optional_field_meta_dates' => 'Dates',
- 'optional_field_meta_business' => 'Business',
- 'optional_field_attachments' => 'Attachments',
- 'optional_field_meta_data' => 'Optional meta data',
- 'external_url' => 'External URL',
- 'pref_notification_bill_reminder' => 'Reminder about expiring bills',
- 'pref_notification_new_access_token' => 'Alert when a new API access token is created',
- 'pref_notification_transaction_creation' => 'Alert when a transaction is created automatically',
- 'pref_notification_user_login' => 'Alert when you login from a new location',
- 'pref_notification_rule_action_failures' => 'Alert when rule actions fail to execute (Slack or Discord only)',
- 'pref_notifications' => 'Notifications',
- 'pref_notifications_help' => 'Indicate if these are notifications you would like to get. Some notifications may contain sensitive financial information.',
- 'slack_webhook_url' => 'Slack Webhook URL',
- 'slack_webhook_url_help' => 'If you want Firefly III to notify you using Slack, enter the webhook URL here. Otherwise leave the field blank. If you are an admin, you need to set this URL in the administration as well.',
- 'slack_url_label' => 'Slack "incoming webhook" URL',
+ 'dark_mode_option_browser' => 'Let your browser decide',
+ 'dark_mode_option_light' => 'Always light',
+ 'dark_mode_option_dark' => 'Always dark',
+ 'equal_to_language' => '(equal to language)',
+ 'dark_mode_preference' => 'Dark mode',
+ 'dark_mode_preference_help' => 'Tell Firefly III when to use dark mode.',
+ 'pref_home_screen_accounts' => 'Home screen accounts',
+ 'pref_home_screen_accounts_help' => 'Which accounts should be displayed on the home page?',
+ 'pref_view_range' => 'View range',
+ 'pref_view_range_help' => 'Some charts are automatically grouped in periods. Your budgets will also be grouped in periods. What period would you prefer?',
+ 'pref_1D' => 'One day',
+ 'pref_1W' => 'One week',
+ 'pref_1M' => 'One month',
+ 'pref_3M' => 'Three months (quarter)',
+ 'pref_6M' => 'Six months',
+ 'pref_1Y' => 'One year',
+ 'pref_last365' => 'Last year',
+ 'pref_last90' => 'Last 90 days',
+ 'pref_last30' => 'Last 30 days',
+ 'pref_last7' => 'Last 7 days',
+ 'pref_YTD' => 'Year to date',
+ 'pref_QTD' => 'Quarter to date',
+ 'pref_MTD' => 'Month to date',
+ 'pref_languages' => 'Languages',
+ 'pref_locale' => 'Locale settings',
+ 'pref_languages_help' => 'Firefly III supports several languages. Which one do you prefer?',
+ 'pref_locale_help' => 'Firefly III allows you to set other local settings, like how currencies, numbers and dates are formatted. Entries in this list may not be supported by your system. Firefly III doesn\'t have the correct date settings for every locale; contact me for improvements.',
+ 'pref_locale_no_demo' => 'This feature won\'t work for the demo user.',
+ 'pref_custom_fiscal_year' => 'Fiscal year settings',
+ 'pref_custom_fiscal_year_label' => 'Enabled',
+ 'pref_custom_fiscal_year_help' => 'In countries that use a financial year other than January 1 to December 31, you can switch this on and specify start / end days of the fiscal year',
+ 'pref_fiscal_year_start_label' => 'Fiscal year start date',
+ 'pref_two_factor_auth' => '2-step verification',
+ 'pref_two_factor_auth_help' => 'When you enable 2-step verification (also known as two-factor authentication), you add an extra layer of security to your account. You sign in with something you know (your password) and something you have (a verification code). Verification codes are generated by an application on your phone, such as Authy or Google Authenticator.',
+ 'pref_enable_two_factor_auth' => 'Enable 2-step verification',
+ 'pref_two_factor_auth_disabled' => '2-step verification code removed and disabled',
+ 'pref_two_factor_auth_remove_it' => 'Don\'t forget to remove the account from your authentication app!',
+ 'pref_two_factor_auth_code' => 'Verify code',
+ 'pref_two_factor_auth_code_help' => 'Scan the QR code with an application on your phone such as Authy or Google Authenticator and enter the generated code.',
+ 'pref_two_factor_auth_reset_code' => 'Reset verification code',
+ 'pref_two_factor_auth_disable_2fa' => 'Disable 2FA',
+ '2fa_use_secret_instead' => 'If you cannot scan the QR code, feel free to use the secret instead: <code>:secret</code>.',
+ '2fa_backup_codes' => 'Store these backup codes for access in case you lose your device.',
+ '2fa_already_enabled' => '2-step verification is already enabled.',
+ 'wrong_mfa_code' => 'This MFA code is not valid.',
+ 'pref_save_settings' => 'Save settings',
+ 'saved_preferences' => 'Preferences saved!',
+ 'preferences_general' => 'General',
+ 'preferences_frontpage' => 'Home screen',
+ 'preferences_security' => 'Security',
+ 'preferences_layout' => 'Layout',
+ 'preferences_notifications' => 'Notifications',
+ 'pref_home_show_deposits' => 'Show deposits on the home screen',
+ 'pref_home_show_deposits_info' => 'The home screen already shows your expense accounts. Should it also show your revenue accounts?',
+ 'pref_home_do_show_deposits' => 'Yes, show them',
+ 'successful_count' => 'of which :count successful',
+ 'list_page_size_title' => 'Page size',
+ 'list_page_size_help' => 'Any list of things (accounts, transactions, etc) shows at most this many per page.',
+ 'list_page_size_label' => 'Page size',
+ 'between_dates' => '(:start and :end)',
+ 'pref_optional_fields_transaction' => 'Optional fields for transactions',
+ 'pref_optional_fields_transaction_help' => 'By default not all fields are enabled when creating a new transaction (because of the clutter). Below, you can enable these fields if you think they could be useful for you. Of course, any field that is disabled, but already filled in, will be visible regardless of the setting.',
+ 'optional_tj_date_fields' => 'Date fields',
+ 'optional_tj_other_fields' => 'Other fields',
+ 'optional_tj_attachment_fields' => 'Attachment fields',
+ 'pref_optional_tj_interest_date' => 'Interest date',
+ 'pref_optional_tj_book_date' => 'Book date',
+ 'pref_optional_tj_process_date' => 'Processing date',
+ 'pref_optional_tj_due_date' => 'Due date',
+ 'pref_optional_tj_payment_date' => 'Payment date',
+ 'pref_optional_tj_invoice_date' => 'Invoice date',
+ 'pref_optional_tj_internal_reference' => 'Internal reference',
+ 'pref_optional_tj_notes' => 'Notes',
+ 'pref_optional_tj_attachments' => 'Attachments',
+ 'pref_optional_tj_external_url' => 'External URL',
+ 'pref_optional_tj_location' => 'Location',
+ 'pref_optional_tj_links' => 'Transaction links',
+ 'optional_field_meta_dates' => 'Dates',
+ 'optional_field_meta_business' => 'Business',
+ 'optional_field_attachments' => 'Attachments',
+ 'optional_field_meta_data' => 'Optional meta data',
+ 'external_url' => 'External URL',
+ 'pref_notification_bill_reminder' => 'Reminder about expiring bills',
+ 'pref_notification_new_access_token' => 'Alert when a new API access token is created',
+ 'pref_notification_transaction_creation' => 'Alert when a transaction is created automatically',
+ 'pref_notification_user_login' => 'Alert when you login from a new location',
+ 'pref_notification_rule_action_failures' => 'Alert when rule actions fail to execute (Slack or Discord only)',
+ 'pref_notifications' => 'Notifications',
+ 'pref_notifications_help' => 'Indicate if these are notifications you would like to get. Some notifications may contain sensitive financial information.',
+ 'slack_webhook_url' => 'Slack Webhook URL',
+ 'slack_webhook_url_help' => 'If you want Firefly III to notify you using Slack, enter the webhook URL here. Otherwise leave the field blank. If you are an admin, you need to set this URL in the administration as well.',
+ 'slack_url_label' => 'Slack "incoming webhook" URL',
// Financial administrations
- 'administration_index' => 'Financial administration',
- 'administrations_index_menu' => 'Financial administration(s)',
+ 'administration_index' => 'Financial administration',
+ 'administrations_index_menu' => 'Financial administration(s)',
// profile:
- 'purge_data_title' => 'Purge data from Firefly III',
- 'purge_data_expl' => '"Purging" means "deleting that which is already deleted". In normal circumstances, Firefly III deletes nothing permanently. It just hides it. The button below deletes all of these previously "deleted" records FOREVER.',
- 'delete_stuff_header' => 'Delete and purge data',
- 'purge_all_data' => 'Purge all deleted records',
- 'purge_data' => 'Purge data',
- 'purged_all_records' => 'All deleted records have been purged.',
- 'delete_data_title' => 'Delete data from Firefly III',
- 'permanent_delete_stuff' => 'You can delete stuff from Firefly III. Using the buttons below means that your items will be removed from view and hidden. There is no undo-button for this, but the items may remain in the database where you can salvage them if necessary.',
- 'other_sessions_logged_out' => 'All your other sessions have been logged out.',
- 'delete_unused_accounts' => 'Deleting unused accounts will clean your auto-complete lists.',
- 'delete_all_unused_accounts' => 'Delete unused accounts',
- 'deleted_all_unused_accounts' => 'All unused accounts are deleted',
- 'delete_all_budgets' => 'Delete ALL your budgets',
- 'delete_all_categories' => 'Delete ALL your categories',
- 'delete_all_tags' => 'Delete ALL your tags',
- 'delete_all_bills' => 'Delete ALL your bills',
- 'delete_all_piggy_banks' => 'Delete ALL your piggy banks',
- 'delete_all_rules' => 'Delete ALL your rules',
- 'delete_all_recurring' => 'Delete ALL your recurring transactions',
- 'delete_all_object_groups' => 'Delete ALL your object groups',
- 'delete_all_accounts' => 'Delete ALL your accounts',
- 'delete_all_asset_accounts' => 'Delete ALL your asset accounts',
- 'delete_all_expense_accounts' => 'Delete ALL your expense accounts',
- 'delete_all_revenue_accounts' => 'Delete ALL your revenue accounts',
- 'delete_all_liabilities' => 'Delete ALL your liabilities',
- 'delete_all_transactions' => 'Delete ALL your transactions',
- 'delete_all_withdrawals' => 'Delete ALL your withdrawals',
- 'delete_all_deposits' => 'Delete ALL your deposits',
- 'delete_all_transfers' => 'Delete ALL your transfers',
- 'also_delete_transactions' => 'Deleting accounts will also delete ALL associated withdrawals, deposits and transfers!',
- 'deleted_all_budgets' => 'All budgets have been deleted',
- 'deleted_all_categories' => 'All categories have been deleted',
- 'deleted_all_tags' => 'All tags have been deleted',
- 'deleted_all_bills' => 'All bills have been deleted',
- 'deleted_all_piggy_banks' => 'All piggy banks have been deleted',
- 'deleted_all_rules' => 'All rules and rule groups have been deleted',
- 'deleted_all_object_groups' => 'All groups have been deleted',
- 'deleted_all_accounts' => 'All accounts have been deleted',
- 'deleted_all_asset_accounts' => 'All asset accounts have been deleted',
- 'deleted_all_expense_accounts' => 'All expense accounts have been deleted',
- 'deleted_all_revenue_accounts' => 'All revenue accounts have been deleted',
- 'deleted_all_liabilities' => 'All liabilities have been deleted',
- 'deleted_all_transactions' => 'All transactions have been deleted',
- 'deleted_all_withdrawals' => 'All withdrawals have been deleted',
- 'deleted_all_deposits' => 'All deposits have been deleted',
- 'deleted_all_transfers' => 'All transfers have been deleted',
- 'deleted_all_recurring' => 'All recurring transactions have been deleted',
- 'change_your_password' => 'Change your password',
- 'delete_account' => 'Delete account',
- 'current_password' => 'Current password',
- 'new_password' => 'New password',
- 'new_password_again' => 'New password (again)',
- 'delete_your_account' => 'Delete your account',
- 'delete_your_account_help' => 'Deleting your account will also delete any accounts, transactions, <em>anything</em> you might have saved into Firefly III. It\'ll be GONE.',
- 'delete_your_account_password' => 'Enter your password to continue.',
- 'password' => 'Password',
- 'are_you_sure' => 'Are you sure? You cannot undo this.',
- 'delete_account_button' => 'DELETE your account',
- 'invalid_current_password' => 'Invalid current password!',
- 'password_changed' => 'Password changed!',
- 'should_change' => 'The idea is to change your password.',
- 'invalid_password' => 'Invalid password!',
- 'what_is_pw_security' => 'What is "verify password security"?',
- 'secure_pw_title' => 'How to choose a secure password',
- 'forgot_password_response' => 'Thank you. If an account exists with this email address, you will find instructions in your inbox.',
- 'secure_pw_history' => 'Not a week goes by that you read in the news about a site losing the passwords of its users. Hackers and thieves use these passwords to try to steal your private information. This information is valuable.',
- 'secure_pw_ff' => 'Do you use the same password all over the internet? If one site loses your password, hackers have access to all your data. Firefly III relies on you to choose a strong and unique password to protect your financial records.',
- 'secure_pw_check_box' => 'To help you do that Firefly III can check if the password you want to use has been stolen in the past. If this is the case, Firefly III advises you NOT to use that password.',
- 'secure_pw_working_title' => 'How does it work?',
- 'secure_pw_working' => 'By checking the box, Firefly III will send the first five characters of the SHA1 hash of your password to <a href="https://www.troyhunt.com/introducing-306-million-freely-downloadable-pwned-passwords/">the website of Troy Hunt</a> to see if it is on the list. This will stop you from using unsafe passwords as is recommended in the latest <a href="https://pages.nist.gov/800-63-3/sp800-63b.html">NIST Special Publication</a> on this subject.',
- 'secure_pw_should' => 'Should I check the box?',
- 'secure_pw_long_password' => 'Yes. Always verify your password is safe.',
- 'command_line_token' => 'Command line token',
- 'explain_command_line_token' => 'You need this token to perform command line options, such as exporting data. Without it, that sensitive command will not work. Do not share your command line token. Nobody will ask you for this token, not even me. If you fear you lost this, or when you\'re paranoid, regenerate this token using the button.',
- 'regenerate_command_line_token' => 'Regenerate command line token',
- 'token_regenerated' => 'A new command line token was generated',
- 'change_your_email' => 'Change your email address',
- 'email_verification' => 'An email message will be sent to your old AND new email address. For security purposes, you will not be able to login until you verify your new email address. If you are unsure if your Firefly III installation is capable of sending email, please do not use this feature. If you are an administrator, you can test this in the <a href="admin">Administration</a>.',
- 'email_changed_logout' => 'Until you verify your email address, you cannot login.',
- 'login_with_new_email' => 'You can now login with your new email address.',
- 'login_with_old_email' => 'You can now login with your old email address again.',
- 'login_provider_local_only' => 'This action is not available when authenticating through ":login_provider".',
- 'external_user_mgt_disabled' => 'This action is not available when Firefly III isn\'t responsible for user management or authentication handling.',
- 'external_auth_disabled' => 'This action is not available when Firefly III isn\'t responsible for authentication handling.',
- 'delete_local_info_only' => "Because Firefly III isn't responsible for user management or authentication handling, this function will only delete local Firefly III information.",
- 'oauth' => 'OAuth',
- 'profile_oauth_clients' => 'OAuth Clients',
- 'profile_oauth_no_clients' => 'You have not created any OAuth clients.',
- 'profile_oauth_clients_external_auth' => 'If you\'re using an external authentication provider like Authelia, OAuth Clients will not work. You can use Personal Access Tokens only.',
- 'profile_oauth_clients_header' => 'Clients',
- 'profile_oauth_client_id' => 'Client ID',
- 'profile_oauth_client_name' => 'Name',
- 'profile_oauth_client_secret' => 'Secret',
- 'profile_oauth_create_new_client' => 'Create New Client',
- 'profile_oauth_create_client' => 'Create Client',
- 'profile_oauth_edit_client' => 'Edit Client',
- 'profile_oauth_name_help' => 'Something your users will recognize and trust.',
- 'profile_oauth_redirect_url' => 'Redirect URL',
- 'profile_oauth_redirect_url_help' => 'Your application\'s authorization callback URL.',
- 'profile_authorized_apps' => 'Authorized applications',
- 'profile_authorized_clients' => 'Authorized clients',
- 'profile_scopes' => 'Scopes',
- 'profile_revoke' => 'Revoke',
- 'profile_oauth_client_secret_title' => 'Client Secret',
- 'profile_oauth_client_secret_expl' => 'Here is your new client secret. This is the only time it will be shown so don\'t lose it! You may now use this secret to make API requests.',
- 'profile_personal_access_tokens' => 'Personal Access Tokens',
- 'profile_personal_access_token' => 'Personal Access Token',
- 'profile_oauth_confidential' => 'Confidential',
- 'profile_oauth_confidential_help' => 'Require the client to authenticate with a secret. Confidential clients can hold credentials in a secure way without exposing them to unauthorized parties. Public applications, such as native desktop or JavaScript SPA applications, are unable to hold secrets securely.',
- 'profile_personal_access_token_explanation' => 'Here is your new personal access token. This is the only time it will be shown so don\'t lose it! You may now use this token to make API requests.',
- 'profile_no_personal_access_token' => 'You have not created any personal access tokens.',
- 'profile_create_new_token' => 'Create new token',
- 'profile_create_token' => 'Create token',
- 'profile_create' => 'Create',
- 'profile_save_changes' => 'Save changes',
- 'profile_whoops' => 'Whoops!',
- 'profile_something_wrong' => 'Something went wrong!',
- 'profile_try_again' => 'Something went wrong. Please try again.',
- 'amounts' => 'Amounts',
- 'multi_account_warning_unknown' => 'Depending on the type of transaction you create, the source and/or destination account of subsequent splits may be overruled by whatever is defined in the first split of the transaction.',
- 'multi_account_warning_withdrawal' => 'Keep in mind that the source account of subsequent splits will be overruled by whatever is defined in the first split of the withdrawal.',
- 'multi_account_warning_deposit' => 'Keep in mind that the destination account of subsequent splits will be overruled by whatever is defined in the first split of the deposit.',
- 'multi_account_warning_transfer' => 'Keep in mind that the source + destination account of subsequent splits will be overruled by whatever is defined in the first split of the transfer.',
+ 'purge_data_title' => 'Purge data from Firefly III',
+ 'purge_data_expl' => '"Purging" means "deleting that which is already deleted". In normal circumstances, Firefly III deletes nothing permanently. It just hides it. The button below deletes all of these previously "deleted" records FOREVER.',
+ 'delete_stuff_header' => 'Delete and purge data',
+ 'purge_all_data' => 'Purge all deleted records',
+ 'purge_data' => 'Purge data',
+ 'purged_all_records' => 'All deleted records have been purged.',
+ 'delete_data_title' => 'Delete data from Firefly III',
+ 'permanent_delete_stuff' => 'You can delete stuff from Firefly III. Using the buttons below means that your items will be removed from view and hidden. There is no undo-button for this, but the items may remain in the database where you can salvage them if necessary.',
+ 'other_sessions_logged_out' => 'All your other sessions have been logged out.',
+ 'delete_unused_accounts' => 'Deleting unused accounts will clean your auto-complete lists.',
+ 'delete_all_unused_accounts' => 'Delete unused accounts',
+ 'deleted_all_unused_accounts' => 'All unused accounts are deleted',
+ 'delete_all_budgets' => 'Delete ALL your budgets',
+ 'delete_all_categories' => 'Delete ALL your categories',
+ 'delete_all_tags' => 'Delete ALL your tags',
+ 'delete_all_bills' => 'Delete ALL your bills',
+ 'delete_all_piggy_banks' => 'Delete ALL your piggy banks',
+ 'delete_all_rules' => 'Delete ALL your rules',
+ 'delete_all_recurring' => 'Delete ALL your recurring transactions',
+ 'delete_all_object_groups' => 'Delete ALL your object groups',
+ 'delete_all_accounts' => 'Delete ALL your accounts',
+ 'delete_all_asset_accounts' => 'Delete ALL your asset accounts',
+ 'delete_all_expense_accounts' => 'Delete ALL your expense accounts',
+ 'delete_all_revenue_accounts' => 'Delete ALL your revenue accounts',
+ 'delete_all_liabilities' => 'Delete ALL your liabilities',
+ 'delete_all_transactions' => 'Delete ALL your transactions',
+ 'delete_all_withdrawals' => 'Delete ALL your withdrawals',
+ 'delete_all_deposits' => 'Delete ALL your deposits',
+ 'delete_all_transfers' => 'Delete ALL your transfers',
+ 'also_delete_transactions' => 'Deleting accounts will also delete ALL associated withdrawals, deposits and transfers!',
+ 'deleted_all_budgets' => 'All budgets have been deleted',
+ 'deleted_all_categories' => 'All categories have been deleted',
+ 'deleted_all_tags' => 'All tags have been deleted',
+ 'deleted_all_bills' => 'All bills have been deleted',
+ 'deleted_all_piggy_banks' => 'All piggy banks have been deleted',
+ 'deleted_all_rules' => 'All rules and rule groups have been deleted',
+ 'deleted_all_object_groups' => 'All groups have been deleted',
+ 'deleted_all_accounts' => 'All accounts have been deleted',
+ 'deleted_all_asset_accounts' => 'All asset accounts have been deleted',
+ 'deleted_all_expense_accounts' => 'All expense accounts have been deleted',
+ 'deleted_all_revenue_accounts' => 'All revenue accounts have been deleted',
+ 'deleted_all_liabilities' => 'All liabilities have been deleted',
+ 'deleted_all_transactions' => 'All transactions have been deleted',
+ 'deleted_all_withdrawals' => 'All withdrawals have been deleted',
+ 'deleted_all_deposits' => 'All deposits have been deleted',
+ 'deleted_all_transfers' => 'All transfers have been deleted',
+ 'deleted_all_recurring' => 'All recurring transactions have been deleted',
+ 'change_your_password' => 'Change your password',
+ 'delete_account' => 'Delete account',
+ 'current_password' => 'Current password',
+ 'new_password' => 'New password',
+ 'new_password_again' => 'New password (again)',
+ 'delete_your_account' => 'Delete your account',
+ 'delete_your_account_help' => 'Deleting your account will also delete any accounts, transactions, <em>anything</em> you might have saved into Firefly III. It\'ll be GONE.',
+ 'delete_your_account_password' => 'Enter your password to continue.',
+ 'password' => 'Password',
+ 'are_you_sure' => 'Are you sure? You cannot undo this.',
+ 'delete_account_button' => 'DELETE your account',
+ 'invalid_current_password' => 'Invalid current password!',
+ 'password_changed' => 'Password changed!',
+ 'should_change' => 'The idea is to change your password.',
+ 'invalid_password' => 'Invalid password!',
+ 'what_is_pw_security' => 'What is "verify password security"?',
+ 'secure_pw_title' => 'How to choose a secure password',
+ 'forgot_password_response' => 'Thank you. If an account exists with this email address, you will find instructions in your inbox.',
+ 'secure_pw_history' => 'Not a week goes by that you read in the news about a site losing the passwords of its users. Hackers and thieves use these passwords to try to steal your private information. This information is valuable.',
+ 'secure_pw_ff' => 'Do you use the same password all over the internet? If one site loses your password, hackers have access to all your data. Firefly III relies on you to choose a strong and unique password to protect your financial records.',
+ 'secure_pw_check_box' => 'To help you do that Firefly III can check if the password you want to use has been stolen in the past. If this is the case, Firefly III advises you NOT to use that password.',
+ 'secure_pw_working_title' => 'How does it work?',
+ 'secure_pw_working' => 'By checking the box, Firefly III will send the first five characters of the SHA1 hash of your password to <a href="https://www.troyhunt.com/introducing-306-million-freely-downloadable-pwned-passwords/">the website of Troy Hunt</a> to see if it is on the list. This will stop you from using unsafe passwords as is recommended in the latest <a href="https://pages.nist.gov/800-63-3/sp800-63b.html">NIST Special Publication</a> on this subject.',
+ 'secure_pw_should' => 'Should I check the box?',
+ 'secure_pw_long_password' => 'Yes. Always verify your password is safe.',
+ 'command_line_token' => 'Command line token',
+ 'explain_command_line_token' => 'You need this token to perform command line options, such as exporting data. Without it, that sensitive command will not work. Do not share your command line token. Nobody will ask you for this token, not even me. If you fear you lost this, or when you\'re paranoid, regenerate this token using the button.',
+ 'regenerate_command_line_token' => 'Regenerate command line token',
+ 'token_regenerated' => 'A new command line token was generated',
+ 'change_your_email' => 'Change your email address',
+ 'email_verification' => 'An email message will be sent to your old AND new email address. For security purposes, you will not be able to login until you verify your new email address. If you are unsure if your Firefly III installation is capable of sending email, please do not use this feature. If you are an administrator, you can test this in the <a href="admin">Administration</a>.',
+ 'email_changed_logout' => 'Until you verify your email address, you cannot login.',
+ 'login_with_new_email' => 'You can now login with your new email address.',
+ 'login_with_old_email' => 'You can now login with your old email address again.',
+ 'login_provider_local_only' => 'This action is not available when authenticating through ":login_provider".',
+ 'external_user_mgt_disabled' => 'This action is not available when Firefly III isn\'t responsible for user management or authentication handling.',
+ 'external_auth_disabled' => 'This action is not available when Firefly III isn\'t responsible for authentication handling.',
+ 'delete_local_info_only' => "Because Firefly III isn't responsible for user management or authentication handling, this function will only delete local Firefly III information.",
+ 'oauth' => 'OAuth',
+ 'profile_oauth_clients' => 'OAuth Clients',
+ 'profile_oauth_no_clients' => 'You have not created any OAuth clients.',
+ 'profile_oauth_clients_external_auth' => 'If you\'re using an external authentication provider like Authelia, OAuth Clients will not work. You can use Personal Access Tokens only.',
+ 'profile_oauth_clients_header' => 'Clients',
+ 'profile_oauth_client_id' => 'Client ID',
+ 'profile_oauth_client_name' => 'Name',
+ 'profile_oauth_client_secret' => 'Secret',
+ 'profile_oauth_create_new_client' => 'Create New Client',
+ 'profile_oauth_create_client' => 'Create Client',
+ 'profile_oauth_edit_client' => 'Edit Client',
+ 'profile_oauth_name_help' => 'Something your users will recognize and trust.',
+ 'profile_oauth_redirect_url' => 'Redirect URL',
+ 'profile_oauth_redirect_url_help' => 'Your application\'s authorization callback URL.',
+ 'profile_authorized_apps' => 'Authorized applications',
+ 'profile_authorized_clients' => 'Authorized clients',
+ 'profile_scopes' => 'Scopes',
+ 'profile_revoke' => 'Revoke',
+ 'profile_oauth_client_secret_title' => 'Client Secret',
+ 'profile_oauth_client_secret_expl' => 'Here is your new client secret. This is the only time it will be shown so don\'t lose it! You may now use this secret to make API requests.',
+ 'profile_personal_access_tokens' => 'Personal Access Tokens',
+ 'profile_personal_access_token' => 'Personal Access Token',
+ 'profile_oauth_confidential' => 'Confidential',
+ 'profile_oauth_confidential_help' => 'Require the client to authenticate with a secret. Confidential clients can hold credentials in a secure way without exposing them to unauthorized parties. Public applications, such as native desktop or JavaScript SPA applications, are unable to hold secrets securely.',
+ 'profile_personal_access_token_explanation' => 'Here is your new personal access token. This is the only time it will be shown so don\'t lose it! You may now use this token to make API requests.',
+ 'profile_no_personal_access_token' => 'You have not created any personal access tokens.',
+ 'profile_create_new_token' => 'Create new token',
+ 'profile_create_token' => 'Create token',
+ 'profile_create' => 'Create',
+ 'profile_save_changes' => 'Save changes',
+ 'profile_whoops' => 'Whoops!',
+ 'profile_something_wrong' => 'Something went wrong!',
+ 'profile_try_again' => 'Something went wrong. Please try again.',
+ 'amounts' => 'Amounts',
+ 'multi_account_warning_unknown' => 'Depending on the type of transaction you create, the source and/or destination account of subsequent splits may be overruled by whatever is defined in the first split of the transaction.',
+ 'multi_account_warning_withdrawal' => 'Keep in mind that the source account of subsequent splits will be overruled by whatever is defined in the first split of the withdrawal.',
+ 'multi_account_warning_deposit' => 'Keep in mind that the destination account of subsequent splits will be overruled by whatever is defined in the first split of the deposit.',
+ 'multi_account_warning_transfer' => 'Keep in mind that the source + destination account of subsequent splits will be overruled by whatever is defined in the first split of the transfer.',
// Ignore this comment
// export data:
- 'export_data_title' => 'Export data from Firefly III',
- 'export_data_menu' => 'Export data',
- 'export_data_bc' => 'Export data from Firefly III',
- 'export_data_main_title' => 'Export data from Firefly III',
- 'export_data_expl' => 'This link allows you to export all transactions + meta data from Firefly III. Please refer to the help (top right (?)-icon) for more information about the process.',
- 'export_data_all_transactions' => 'Export all transactions',
- 'export_data_advanced_expl' => 'If you need a more advanced or specific type of export, read the help on how to use the console command <code>php artisan help firefly-iii:export-data</code>.',
+ 'export_data_title' => 'Export data from Firefly III',
+ 'export_data_menu' => 'Export data',
+ 'export_data_bc' => 'Export data from Firefly III',
+ 'export_data_main_title' => 'Export data from Firefly III',
+ 'export_data_expl' => 'This link allows you to export all transactions + meta data from Firefly III. Please refer to the help (top right (?)-icon) for more information about the process.',
+ 'export_data_all_transactions' => 'Export all transactions',
+ 'export_data_advanced_expl' => 'If you need a more advanced or specific type of export, read the help on how to use the console command <code>php artisan help firefly-iii:export-data</code>.',
// attachments
- 'nr_of_attachments' => 'One attachment|:count attachments',
- 'attachments' => 'Attachments',
- 'edit_attachment' => 'Edit attachment ":name"',
- 'update_attachment' => 'Update attachment',
- 'delete_attachment' => 'Delete attachment ":name"',
- 'attachment_deleted' => 'Deleted attachment ":name"',
- 'liabilities_deleted' => 'Deleted liability ":name"',
- 'attachment_updated' => 'Updated attachment ":name"',
- 'upload_max_file_size' => 'Maximum file size: :size',
- 'list_all_attachments' => 'List of all attachments',
+ 'nr_of_attachments' => 'One attachment|:count attachments',
+ 'attachments' => 'Attachments',
+ 'edit_attachment' => 'Edit attachment ":name"',
+ 'update_attachment' => 'Update attachment',
+ 'delete_attachment' => 'Delete attachment ":name"',
+ 'attachment_deleted' => 'Deleted attachment ":name"',
+ 'liabilities_deleted' => 'Deleted liability ":name"',
+ 'attachment_updated' => 'Updated attachment ":name"',
+ 'upload_max_file_size' => 'Maximum file size: :size',
+ 'list_all_attachments' => 'List of all attachments',
// transaction index
- 'is_reconciled_fields_dropped' => 'Because this transaction is reconciled, you will not be able to update the accounts, nor the amount(s).',
- 'title_expenses' => 'Expenses',
- 'title_withdrawal' => 'Expenses',
- 'title_revenue' => 'Revenue / income',
- 'title_deposit' => 'Revenue / income',
- 'title_transfer' => 'Transfers',
- 'title_transfers' => 'Transfers',
- 'submission_options' => 'Submission options',
- 'apply_rules_checkbox' => 'Apply rules',
- 'fire_webhooks_checkbox' => 'Fire webhooks',
+ 'is_reconciled_fields_dropped' => 'Because this transaction is reconciled, you will not be able to update the accounts, nor the amount(s).',
+ 'title_expenses' => 'Expenses',
+ 'title_withdrawal' => 'Expenses',
+ 'title_revenue' => 'Revenue / income',
+ 'title_deposit' => 'Revenue / income',
+ 'title_transfer' => 'Transfers',
+ 'title_transfers' => 'Transfers',
+ 'submission_options' => 'Submission options',
+ 'apply_rules_checkbox' => 'Apply rules',
+ 'fire_webhooks_checkbox' => 'Fire webhooks',
// convert stuff:
- 'convert_is_already_type_Withdrawal' => 'This transaction is already a withdrawal',
- 'convert_is_already_type_Deposit' => 'This transaction is already a deposit',
- 'convert_is_already_type_Transfer' => 'This transaction is already a transfer',
- 'convert_to_Withdrawal' => 'Convert ":description" to a withdrawal',
- 'convert_to_Deposit' => 'Convert ":description" to a deposit',
- 'convert_to_Transfer' => 'Convert ":description" to a transfer',
- 'convert_options_WithdrawalDeposit' => 'Convert a withdrawal into a deposit',
- 'convert_options_WithdrawalTransfer' => 'Convert a withdrawal into a transfer',
- 'convert_options_DepositTransfer' => 'Convert a deposit into a transfer',
- 'convert_options_DepositWithdrawal' => 'Convert a deposit into a withdrawal',
- 'convert_options_TransferWithdrawal' => 'Convert a transfer into a withdrawal',
- 'convert_options_TransferDeposit' => 'Convert a transfer into a deposit',
- 'convert_Withdrawal_to_deposit' => 'Convert this withdrawal to a deposit',
- 'convert_Withdrawal_to_transfer' => 'Convert this withdrawal to a transfer',
- 'convert_Deposit_to_withdrawal' => 'Convert this deposit to a withdrawal',
- 'convert_Deposit_to_transfer' => 'Convert this deposit to a transfer',
- 'convert_Transfer_to_deposit' => 'Convert this transfer to a deposit',
- 'convert_Transfer_to_withdrawal' => 'Convert this transfer to a withdrawal',
- 'convert_please_set_revenue_source' => 'Please pick the revenue account where the money will come from.',
- 'convert_please_set_asset_destination' => 'Please pick the asset account where the money will go to.',
- 'convert_please_set_expense_destination' => 'Please pick the expense account where the money will go to.',
- 'convert_please_set_asset_source' => 'Please pick the asset account where the money will come from.',
- 'convert_expl_w_d' => 'When converting from a withdrawal to a deposit, the money will be deposited into the displayed destination account, instead of being withdrawn from it.|When converting from a withdrawal to a deposit, the money will be deposited into the displayed destination accounts, instead of being withdrawn from them.',
- 'convert_expl_w_t' => 'When converting a withdrawal into a transfer, the money will be transferred away from the source account into other asset or liability account instead of being spent on the original expense account.|When converting a withdrawal into a transfer, the money will be transferred away from the source accounts into other asset or liability accounts instead of being spent on the original expense accounts.',
- 'convert_expl_d_w' => 'When converting a deposit into a withdrawal, the money will be withdrawn from the displayed source account, instead of being deposited into it.|When converting a deposit into a withdrawal, the money will be withdrawn from the displayed source accounts, instead of being deposited into them.',
- 'convert_expl_d_t' => 'When you convert a deposit into a transfer, the money will be deposited into the listed destination account from any of your asset or liability account.|When you convert a deposit into a transfer, the money will be deposited into the listed destination accounts from any of your asset or liability accounts.',
- 'convert_expl_t_w' => 'When you convert a transfer into a withdrawal, the money will be spent on the destination account you set here, instead of being transferred away.|When you convert a transfer into a withdrawal, the money will be spent on the destination accounts you set here, instead of being transferred away.',
- 'convert_expl_t_d' => 'When you convert a transfer into a deposit, the money will be deposited into the destination account you see here, instead of being transferred into it.|When you convert a transfer into a deposit, the money will be deposited into the destination accounts you see here, instead of being transferred into them.',
- 'convert_select_sources' => 'To complete the conversion, please set the new source account below.|To complete the conversion, please set the new source accounts below.',
- 'convert_select_destinations' => 'To complete the conversion, please select the new destination account below.|To complete the conversion, please select the new destination accounts below.',
- 'converted_to_Withdrawal' => 'The transaction has been converted to a withdrawal',
- 'converted_to_Deposit' => 'The transaction has been converted to a deposit',
- 'converted_to_Transfer' => 'The transaction has been converted to a transfer',
- 'invalid_convert_selection' => 'The account you have selected is already used in this transaction or does not exist.',
- 'source_or_dest_invalid' => 'Cannot find the correct transaction details. Conversion is not possible.',
- 'convert_to_withdrawal' => 'Convert to a withdrawal',
- 'convert_to_deposit' => 'Convert to a deposit',
- 'convert_to_transfer' => 'Convert to a transfer',
+ 'convert_is_already_type_Withdrawal' => 'This transaction is already a withdrawal',
+ 'convert_is_already_type_Deposit' => 'This transaction is already a deposit',
+ 'convert_is_already_type_Transfer' => 'This transaction is already a transfer',
+ 'convert_to_Withdrawal' => 'Convert ":description" to a withdrawal',
+ 'convert_to_Deposit' => 'Convert ":description" to a deposit',
+ 'convert_to_Transfer' => 'Convert ":description" to a transfer',
+ 'convert_options_WithdrawalDeposit' => 'Convert a withdrawal into a deposit',
+ 'convert_options_WithdrawalTransfer' => 'Convert a withdrawal into a transfer',
+ 'convert_options_DepositTransfer' => 'Convert a deposit into a transfer',
+ 'convert_options_DepositWithdrawal' => 'Convert a deposit into a withdrawal',
+ 'convert_options_TransferWithdrawal' => 'Convert a transfer into a withdrawal',
+ 'convert_options_TransferDeposit' => 'Convert a transfer into a deposit',
+ 'convert_Withdrawal_to_deposit' => 'Convert this withdrawal to a deposit',
+ 'convert_Withdrawal_to_transfer' => 'Convert this withdrawal to a transfer',
+ 'convert_Deposit_to_withdrawal' => 'Convert this deposit to a withdrawal',
+ 'convert_Deposit_to_transfer' => 'Convert this deposit to a transfer',
+ 'convert_Transfer_to_deposit' => 'Convert this transfer to a deposit',
+ 'convert_Transfer_to_withdrawal' => 'Convert this transfer to a withdrawal',
+ 'convert_please_set_revenue_source' => 'Please pick the revenue account where the money will come from.',
+ 'convert_please_set_asset_destination' => 'Please pick the asset account where the money will go to.',
+ 'convert_please_set_expense_destination' => 'Please pick the expense account where the money will go to.',
+ 'convert_please_set_asset_source' => 'Please pick the asset account where the money will come from.',
+ 'convert_expl_w_d' => 'When converting from a withdrawal to a deposit, the money will be deposited into the displayed destination account, instead of being withdrawn from it.|When converting from a withdrawal to a deposit, the money will be deposited into the displayed destination accounts, instead of being withdrawn from them.',
+ 'convert_expl_w_t' => 'When converting a withdrawal into a transfer, the money will be transferred away from the source account into other asset or liability account instead of being spent on the original expense account.|When converting a withdrawal into a transfer, the money will be transferred away from the source accounts into other asset or liability accounts instead of being spent on the original expense accounts.',
+ 'convert_expl_d_w' => 'When converting a deposit into a withdrawal, the money will be withdrawn from the displayed source account, instead of being deposited into it.|When converting a deposit into a withdrawal, the money will be withdrawn from the displayed source accounts, instead of being deposited into them.',
+ 'convert_expl_d_t' => 'When you convert a deposit into a transfer, the money will be deposited into the listed destination account from any of your asset or liability account.|When you convert a deposit into a transfer, the money will be deposited into the listed destination accounts from any of your asset or liability accounts.',
+ 'convert_expl_t_w' => 'When you convert a transfer into a withdrawal, the money will be spent on the destination account you set here, instead of being transferred away.|When you convert a transfer into a withdrawal, the money will be spent on the destination accounts you set here, instead of being transferred away.',
+ 'convert_expl_t_d' => 'When you convert a transfer into a deposit, the money will be deposited into the destination account you see here, instead of being transferred into it.|When you convert a transfer into a deposit, the money will be deposited into the destination accounts you see here, instead of being transferred into them.',
+ 'convert_select_sources' => 'To complete the conversion, please set the new source account below.|To complete the conversion, please set the new source accounts below.',
+ 'convert_select_destinations' => 'To complete the conversion, please select the new destination account below.|To complete the conversion, please select the new destination accounts below.',
+ 'converted_to_Withdrawal' => 'The transaction has been converted to a withdrawal',
+ 'converted_to_Deposit' => 'The transaction has been converted to a deposit',
+ 'converted_to_Transfer' => 'The transaction has been converted to a transfer',
+ 'invalid_convert_selection' => 'The account you have selected is already used in this transaction or does not exist.',
+ 'source_or_dest_invalid' => 'Cannot find the correct transaction details. Conversion is not possible.',
+ 'convert_to_withdrawal' => 'Convert to a withdrawal',
+ 'convert_to_deposit' => 'Convert to a deposit',
+ 'convert_to_transfer' => 'Convert to a transfer',
// create new stuff:
- 'create_new_withdrawal' => 'Create new withdrawal',
- 'create_new_deposit' => 'Create new deposit',
- 'create_new_transfer' => 'Create new transfer',
- 'create_new_asset' => 'Create new asset account',
- 'create_new_liabilities' => 'Create new liability',
- 'create_new_expense' => 'Create new expense account',
- 'create_new_revenue' => 'Create new revenue account',
- 'create_new_piggy_bank' => 'Create new piggy bank',
- 'create_new_bill' => 'Create new bill',
- 'create_new_subscription' => 'Create new subscription',
- 'create_new_rule' => 'Create new rule',
+ 'create_new_withdrawal' => 'Create new withdrawal',
+ 'create_new_deposit' => 'Create new deposit',
+ 'create_new_transfer' => 'Create new transfer',
+ 'create_new_asset' => 'Create new asset account',
+ 'create_new_liabilities' => 'Create new liability',
+ 'create_new_expense' => 'Create new expense account',
+ 'create_new_revenue' => 'Create new revenue account',
+ 'create_new_piggy_bank' => 'Create new piggy bank',
+ 'create_new_bill' => 'Create new bill',
+ 'create_new_subscription' => 'Create new subscription',
+ 'create_new_rule' => 'Create new rule',
// currencies:
- 'create_currency' => 'Create a new currency',
- 'store_currency' => 'Store new currency',
- 'update_currency' => 'Update currency',
- 'new_default_currency' => '":name" is now the default currency.',
- 'default_currency_failed' => 'Could not make ":name" the default currency. Please check the logs.',
- 'cannot_delete_currency' => 'Cannot delete :name because it is still in use.',
- 'cannot_delete_fallback_currency' => ':name is the system fallback currency and can\'t be deleted.',
- 'cannot_disable_currency_journals' => 'Cannot disable :name because transactions are still using it.',
- 'cannot_disable_currency_last_left' => 'Cannot disable :name because it is the last enabled currency.',
- 'cannot_disable_currency_account_meta' => 'Cannot disable :name because it is used in asset accounts.',
- 'cannot_disable_currency_bills' => 'Cannot disable :name because it is used in bills.',
- 'cannot_disable_currency_recurring' => 'Cannot disable :name because it is used in recurring transactions.',
- 'cannot_disable_currency_available_budgets' => 'Cannot disable :name because it is used in available budgets.',
- 'cannot_disable_currency_budget_limits' => 'Cannot disable :name because it is used in budget limits.',
- 'cannot_disable_currency_current_default' => 'Cannot disable :name because it is the current default currency.',
- 'cannot_disable_currency_system_fallback' => 'Cannot disable :name because it is the system default currency.',
- 'disable_EUR_side_effects' => 'The Euro is the system\'s emergency fallback currency. Disabling it may have unintended side-effects and may void your warranty.',
- 'deleted_currency' => 'Currency :name deleted',
- 'created_currency' => 'Currency :name created',
- 'could_not_store_currency' => 'Could not store the new currency.',
- 'updated_currency' => 'Currency :name updated',
- 'ask_site_owner' => 'Please ask :owner to add, remove or edit currencies.',
- 'currencies_intro' => 'Firefly III supports various currencies which you can set and enable here.',
- 'make_default_currency' => 'Make default',
- 'default_currency' => 'default',
- 'currency_is_disabled' => 'Disabled',
- 'enable_currency' => 'Enable',
- 'disable_currency' => 'Disable',
- 'currencies_default_disabled' => 'Most of these currencies are disabled by default. To use them, you must enable them first.',
- 'currency_is_now_enabled' => 'Currency ":name" has been enabled',
- 'could_not_enable_currency' => 'Could not enable currency ":name". Please review the logs.',
- 'currency_is_now_disabled' => 'Currency ":name" has been disabled',
- 'could_not_disable_currency' => 'Could not disable currency ":name". Perhaps it is still in use?',
+ 'create_currency' => 'Create a new currency',
+ 'store_currency' => 'Store new currency',
+ 'update_currency' => 'Update currency',
+ 'new_default_currency' => '":name" is now the default currency.',
+ 'default_currency_failed' => 'Could not make ":name" the default currency. Please check the logs.',
+ 'cannot_delete_currency' => 'Cannot delete :name because it is still in use.',
+ 'cannot_delete_fallback_currency' => ':name is the system fallback currency and can\'t be deleted.',
+ 'cannot_disable_currency_journals' => 'Cannot disable :name because transactions are still using it.',
+ 'cannot_disable_currency_last_left' => 'Cannot disable :name because it is the last enabled currency.',
+ 'cannot_disable_currency_account_meta' => 'Cannot disable :name because it is used in asset accounts.',
+ 'cannot_disable_currency_bills' => 'Cannot disable :name because it is used in bills.',
+ 'cannot_disable_currency_recurring' => 'Cannot disable :name because it is used in recurring transactions.',
+ 'cannot_disable_currency_available_budgets' => 'Cannot disable :name because it is used in available budgets.',
+ 'cannot_disable_currency_budget_limits' => 'Cannot disable :name because it is used in budget limits.',
+ 'cannot_disable_currency_current_default' => 'Cannot disable :name because it is the current default currency.',
+ 'cannot_disable_currency_system_fallback' => 'Cannot disable :name because it is the system default currency.',
+ 'disable_EUR_side_effects' => 'The Euro is the system\'s emergency fallback currency. Disabling it may have unintended side-effects and may void your warranty.',
+ 'deleted_currency' => 'Currency :name deleted',
+ 'created_currency' => 'Currency :name created',
+ 'could_not_store_currency' => 'Could not store the new currency.',
+ 'updated_currency' => 'Currency :name updated',
+ 'ask_site_owner' => 'Please ask :owner to add, remove or edit currencies.',
+ 'currencies_intro' => 'Firefly III supports various currencies which you can set and enable here.',
+ 'make_default_currency' => 'Make default',
+ 'default_currency' => 'default',
+ 'currency_is_disabled' => 'Disabled',
+ 'enable_currency' => 'Enable',
+ 'disable_currency' => 'Disable',
+ 'currencies_default_disabled' => 'Most of these currencies are disabled by default. To use them, you must enable them first.',
+ 'currency_is_now_enabled' => 'Currency ":name" has been enabled',
+ 'could_not_enable_currency' => 'Could not enable currency ":name". Please review the logs.',
+ 'currency_is_now_disabled' => 'Currency ":name" has been disabled',
+ 'could_not_disable_currency' => 'Could not disable currency ":name". Perhaps it is still in use?',
// forms:
- 'mandatoryFields' => 'Mandatory fields',
- 'optionalFields' => 'Optional fields',
- 'options' => 'Options',
+ 'mandatoryFields' => 'Mandatory fields',
+ 'optionalFields' => 'Optional fields',
+ 'options' => 'Options',
// budgets:
- 'daily_budgets' => 'Daily budgets',
- 'weekly_budgets' => 'Weekly budgets',
- 'monthly_budgets' => 'Monthly budgets',
- 'quarterly_budgets' => 'Quarterly budgets',
- 'half_year_budgets' => 'Half-yearly budgets',
- 'yearly_budgets' => 'Yearly budgets',
- 'other_budgets' => 'Custom timed budgets',
- 'budget_limit_not_in_range' => 'This amount applies from :start to :end:',
- 'total_available_budget' => 'Total available budget (between :start and :end)',
- 'total_available_budget_in_currency' => 'Total available budget in :currency',
- 'see_below' => 'see below',
- 'create_new_budget' => 'Create a new budget',
- 'store_new_budget' => 'Store new budget',
- 'stored_new_budget' => 'Stored new budget ":name"',
- 'available_between' => 'Available between :start and :end',
- 'transactionsWithoutBudget' => 'Expenses without budget',
- 'transactions_no_budget' => 'Expenses without budget between :start and :end',
- 'spent_between' => 'Already spent between :start and :end',
- 'set_available_amount' => 'Set available amount',
- 'update_available_amount' => 'Update available amount',
- 'ab_basic_modal_explain' => 'Use this form to indicate how much you expect to be able to budget (in total, in :currency) in the indicated period.',
- 'createBudget' => 'New budget',
- 'invalid_currency' => 'This is an invalid currency',
- 'invalid_amount' => 'Please enter an amount',
- 'set_ab' => 'The available budget amount has been set',
- 'updated_ab' => 'The available budget amount has been updated',
- 'deleted_ab' => 'The available budget amount has been deleted',
- 'deleted_bl' => 'The budgeted amount has been removed',
- 'alt_currency_ab_create' => 'Set the available budget in another currency',
- 'bl_create_btn' => 'Set budget in another currency',
- 'inactiveBudgets' => 'Inactive budgets',
- 'without_budget_between' => 'Transactions without a budget between :start and :end',
- 'delete_budget' => 'Delete budget ":name"',
- 'deleted_budget' => 'Deleted budget ":name"',
- 'edit_budget' => 'Edit budget ":name"',
- 'updated_budget' => 'Updated budget ":name"',
- 'update_amount' => 'Update amount',
- 'update_budget' => 'Update budget',
- 'update_budget_amount_range' => 'Update (expected) available amount between :start and :end',
- 'set_budget_limit_title' => 'Set budgeted amount for budget :budget between :start and :end',
- 'set_budget_limit' => 'Set budgeted amount',
- 'budget_period_navigator' => 'Period navigator',
- 'info_on_available_amount' => 'What do I have available?',
- 'available_amount_indication' => 'Use these amounts to get an indication of what your total budget could be.',
- 'suggested' => 'Suggested',
- 'average_between' => 'Average between :start and :end',
- 'transferred_in' => 'Transferred (in)',
- 'transferred_away' => 'Transferred (away)',
- 'auto_budget_none' => 'No auto-budget',
- 'auto_budget_reset' => 'Set a fixed amount every period',
- 'auto_budget_rollover' => 'Add an amount every period',
- 'auto_budget_adjusted' => 'Add an amount every period and correct for overspending',
- 'auto_budget_period_daily' => 'Daily',
- 'auto_budget_period_weekly' => 'Weekly',
- 'auto_budget_period_monthly' => 'Monthly',
- 'auto_budget_period_quarterly' => 'Quarterly',
- 'auto_budget_period_half_year' => 'Every half year',
- 'auto_budget_period_yearly' => 'Yearly',
- 'auto_budget_help' => 'You can read more about this feature in the help. Click the top-right (?) icon.',
- 'auto_budget_reset_icon' => 'This budget will be set periodically',
- 'auto_budget_rollover_icon' => 'The budget amount will increase periodically',
- 'auto_budget_adjusted_icon' => 'The budget amount will increase periodically and will correct for overspending',
- 'remove_budgeted_amount' => 'Remove budgeted amount in :currency',
+ 'daily_budgets' => 'Daily budgets',
+ 'weekly_budgets' => 'Weekly budgets',
+ 'monthly_budgets' => 'Monthly budgets',
+ 'quarterly_budgets' => 'Quarterly budgets',
+ 'half_year_budgets' => 'Half-yearly budgets',
+ 'yearly_budgets' => 'Yearly budgets',
+ 'other_budgets' => 'Custom timed budgets',
+ 'budget_limit_not_in_range' => 'This amount applies from :start to :end:',
+ 'total_available_budget' => 'Total available budget (between :start and :end)',
+ 'total_available_budget_in_currency' => 'Total available budget in :currency',
+ 'see_below' => 'see below',
+ 'create_new_budget' => 'Create a new budget',
+ 'store_new_budget' => 'Store new budget',
+ 'stored_new_budget' => 'Stored new budget ":name"',
+ 'available_between' => 'Available between :start and :end',
+ 'transactionsWithoutBudget' => 'Expenses without budget',
+ 'transactions_no_budget' => 'Expenses without budget between :start and :end',
+ 'spent_between' => 'Already spent between :start and :end',
+ 'set_available_amount' => 'Set available amount',
+ 'update_available_amount' => 'Update available amount',
+ 'ab_basic_modal_explain' => 'Use this form to indicate how much you expect to be able to budget (in total, in :currency) in the indicated period.',
+ 'createBudget' => 'New budget',
+ 'invalid_currency' => 'This is an invalid currency',
+ 'invalid_amount' => 'Please enter an amount',
+ 'set_ab' => 'The available budget amount has been set',
+ 'updated_ab' => 'The available budget amount has been updated',
+ 'deleted_ab' => 'The available budget amount has been deleted',
+ 'deleted_bl' => 'The budgeted amount has been removed',
+ 'alt_currency_ab_create' => 'Set the available budget in another currency',
+ 'bl_create_btn' => 'Set budget in another currency',
+ 'inactiveBudgets' => 'Inactive budgets',
+ 'without_budget_between' => 'Transactions without a budget between :start and :end',
+ 'delete_budget' => 'Delete budget ":name"',
+ 'deleted_budget' => 'Deleted budget ":name"',
+ 'edit_budget' => 'Edit budget ":name"',
+ 'updated_budget' => 'Updated budget ":name"',
+ 'update_amount' => 'Update amount',
+ 'update_budget' => 'Update budget',
+ 'update_budget_amount_range' => 'Update (expected) available amount between :start and :end',
+ 'set_budget_limit_title' => 'Set budgeted amount for budget :budget between :start and :end',
+ 'set_budget_limit' => 'Set budgeted amount',
+ 'budget_period_navigator' => 'Period navigator',
+ 'info_on_available_amount' => 'What do I have available?',
+ 'available_amount_indication' => 'Use these amounts to get an indication of what your total budget could be.',
+ 'suggested' => 'Suggested',
+ 'average_between' => 'Average between :start and :end',
+ 'transferred_in' => 'Transferred (in)',
+ 'transferred_away' => 'Transferred (away)',
+ 'auto_budget_none' => 'No auto-budget',
+ 'auto_budget_reset' => 'Set a fixed amount every period',
+ 'auto_budget_rollover' => 'Add an amount every period',
+ 'auto_budget_adjusted' => 'Add an amount every period and correct for overspending',
+ 'auto_budget_period_daily' => 'Daily',
+ 'auto_budget_period_weekly' => 'Weekly',
+ 'auto_budget_period_monthly' => 'Monthly',
+ 'auto_budget_period_quarterly' => 'Quarterly',
+ 'auto_budget_period_half_year' => 'Every half year',
+ 'auto_budget_period_yearly' => 'Yearly',
+ 'auto_budget_help' => 'You can read more about this feature in the help. Click the top-right (?) icon.',
+ 'auto_budget_reset_icon' => 'This budget will be set periodically',
+ 'auto_budget_rollover_icon' => 'The budget amount will increase periodically',
+ 'auto_budget_adjusted_icon' => 'The budget amount will increase periodically and will correct for overspending',
+ 'remove_budgeted_amount' => 'Remove budgeted amount in :currency',
// bills:
- 'subscription' => 'Subscription',
- 'not_expected_period' => 'Not expected this period',
- 'subscriptions_in_group' => 'Subscriptions in group "%{title}"',
- 'subscr_expected_x_times' => 'Expect to pay %{amount} %{times} times this period',
- 'not_or_not_yet' => 'Not (yet)',
- 'visit_bill' => 'Visit bill ":name" at Firefly III',
- 'match_between_amounts' => 'Bill matches transactions between :low and :high.',
- 'running_again_loss' => 'Previously linked transactions to this bill may lose their connection, if they (no longer) match the rule(s).',
- 'bill_related_rules' => 'Rules related to this bill',
- 'repeats' => 'Repeats',
- 'bill_end_date_help' => 'Optional field. The bill is expected to end on this date.',
- 'bill_extension_date_help' => 'Optional field. The bill must be extended (or cancelled) on or before this date.',
- 'bill_end_index_line' => 'This bill ends on :date',
- 'bill_extension_index_line' => 'This bill must be extended or cancelled on :date',
- 'connected_journals' => 'Connected transactions',
- 'auto_match_on' => 'Automatically matched by Firefly III',
- 'auto_match_off' => 'Not automatically matched by Firefly III',
- 'next_expected_match' => 'Next expected match',
- 'delete_bill' => 'Delete bill ":name"',
- 'deleted_bill' => 'Deleted bill ":name"',
- 'edit_bill' => 'Edit bill ":name"',
- 'more' => 'More',
- 'rescan_old' => 'Run rules again, on all transactions',
- 'update_bill' => 'Update bill',
- 'updated_bill' => 'Updated bill ":name"',
- 'store_new_bill' => 'Store new bill',
- 'stored_new_bill' => 'Stored new bill ":name"',
- 'cannot_scan_inactive_bill' => 'Inactive bills cannot be scanned.',
- 'rescanned_bill' => 'Rescanned everything, and linked :count transaction to the bill.|Rescanned everything, and linked :count transactions to the bill.',
- 'average_bill_amount_year' => 'Average bill amount (:year)',
- 'average_bill_amount_overall' => 'Average bill amount (overall)',
- 'bill_is_active' => 'Bill is active',
- 'bill_expected_between' => 'Expected between :start and :end',
- 'bill_will_automatch' => 'Bill will automatically linked to matching transactions',
- 'skips_over' => 'skips over',
- 'bill_store_error' => 'An unexpected error occurred while storing your new bill. Please check the log files',
- 'list_inactive_rule' => 'inactive rule',
- 'bill_edit_rules' => 'Firefly III will attempt to edit the rule related to this bill as well. If you\'ve edited this rule yourself however, Firefly III won\'t change anything.|Firefly III will attempt to edit the :count rules related to this bill as well. If you\'ve edited these rules yourself however, Firefly III won\'t change anything.',
- 'bill_expected_date' => 'Expected :date',
- 'bill_expected_date_js' => 'Expected {date}',
- 'expected_amount' => '(Expected) amount',
- 'bill_paid_on' => 'Paid on {date}',
- 'bill_repeats_weekly' => 'Repeats weekly',
- 'bill_repeats_monthly' => 'Repeats monthly',
- 'bill_repeats_quarterly' => 'Repeats quarterly',
- 'bill_repeats_half-year' => 'Repeats every half year',
- 'bill_repeats_yearly' => 'Repeats yearly',
- 'bill_repeats_weekly_other' => 'Repeats every other week',
- 'bill_repeats_monthly_other' => 'Repeats every other month',
- 'bill_repeats_quarterly_other' => 'Repeats every other quarter',
- 'bill_repeats_half-year_other' => 'Repeats yearly',
- 'bill_repeats_yearly_other' => 'Repeats every other year',
- 'bill_repeats_weekly_skip' => 'Repeats every {skip} weeks',
- 'bill_repeats_monthly_skip' => 'Repeats every {skip} months',
- 'bill_repeats_quarterly_skip' => 'Repeats every {skip} quarters',
- 'bill_repeats_half-year_skip' => 'Repeats every {skip} half years',
- 'bill_repeats_yearly_skip' => 'Repeats every {skip} years',
- 'subscriptions' => 'Subscriptions',
- 'go_to_subscriptions' => 'Go to your subscriptions',
- 'forever' => 'Forever',
- 'extension_date_is' => 'Extension date is {date}',
+ 'subscription' => 'Subscription',
+ 'not_expected_period' => 'Not expected this period',
+ 'subscriptions_in_group' => 'Subscriptions in group "%{title}"',
+ 'subscr_expected_x_times' => 'Expect to pay %{amount} %{times} times this period',
+ 'not_or_not_yet' => 'Not (yet)',
+ 'visit_bill' => 'Visit bill ":name" at Firefly III',
+ 'match_between_amounts' => 'Bill matches transactions between :low and :high.',
+ 'running_again_loss' => 'Previously linked transactions to this bill may lose their connection, if they (no longer) match the rule(s).',
+ 'bill_related_rules' => 'Rules related to this bill',
+ 'repeats' => 'Repeats',
+ 'bill_end_date_help' => 'Optional field. The bill is expected to end on this date.',
+ 'bill_extension_date_help' => 'Optional field. The bill must be extended (or cancelled) on or before this date.',
+ 'bill_end_index_line' => 'This bill ends on :date',
+ 'bill_extension_index_line' => 'This bill must be extended or cancelled on :date',
+ 'connected_journals' => 'Connected transactions',
+ 'auto_match_on' => 'Automatically matched by Firefly III',
+ 'auto_match_off' => 'Not automatically matched by Firefly III',
+ 'next_expected_match' => 'Next expected match',
+ 'delete_bill' => 'Delete bill ":name"',
+ 'deleted_bill' => 'Deleted bill ":name"',
+ 'edit_bill' => 'Edit bill ":name"',
+ 'more' => 'More',
+ 'rescan_old' => 'Run rules again, on all transactions',
+ 'update_bill' => 'Update bill',
+ 'updated_bill' => 'Updated bill ":name"',
+ 'store_new_bill' => 'Store new bill',
+ 'stored_new_bill' => 'Stored new bill ":name"',
+ 'cannot_scan_inactive_bill' => 'Inactive bills cannot be scanned.',
+ 'rescanned_bill' => 'Rescanned everything, and linked :count transaction to the bill.|Rescanned everything, and linked :count transactions to the bill.',
+ 'average_bill_amount_year' => 'Average bill amount (:year)',
+ 'average_bill_amount_overall' => 'Average bill amount (overall)',
+ 'bill_is_active' => 'Bill is active',
+ 'bill_expected_between' => 'Expected between :start and :end',
+ 'bill_will_automatch' => 'Bill will automatically linked to matching transactions',
+ 'skips_over' => 'skips over',
+ 'bill_store_error' => 'An unexpected error occurred while storing your new bill. Please check the log files',
+ 'list_inactive_rule' => 'inactive rule',
+ 'bill_edit_rules' => 'Firefly III will attempt to edit the rule related to this bill as well. If you\'ve edited this rule yourself however, Firefly III won\'t change anything.|Firefly III will attempt to edit the :count rules related to this bill as well. If you\'ve edited these rules yourself however, Firefly III won\'t change anything.',
+ 'bill_expected_date' => 'Expected :date',
+ 'bill_expected_date_js' => 'Expected {date}',
+ 'expected_amount' => '(Expected) amount',
+ 'bill_paid_on' => 'Paid on {date}',
+ 'bill_repeats_weekly' => 'Repeats weekly',
+ 'bill_repeats_monthly' => 'Repeats monthly',
+ 'bill_repeats_quarterly' => 'Repeats quarterly',
+ 'bill_repeats_half-year' => 'Repeats every half year',
+ 'bill_repeats_yearly' => 'Repeats yearly',
+ 'bill_repeats_weekly_other' => 'Repeats every other week',
+ 'bill_repeats_monthly_other' => 'Repeats every other month',
+ 'bill_repeats_quarterly_other' => 'Repeats every other quarter',
+ 'bill_repeats_half-year_other' => 'Repeats yearly',
+ 'bill_repeats_yearly_other' => 'Repeats every other year',
+ 'bill_repeats_weekly_skip' => 'Repeats every {skip} weeks',
+ 'bill_repeats_monthly_skip' => 'Repeats every {skip} months',
+ 'bill_repeats_quarterly_skip' => 'Repeats every {skip} quarters',
+ 'bill_repeats_half-year_skip' => 'Repeats every {skip} half years',
+ 'bill_repeats_yearly_skip' => 'Repeats every {skip} years',
+ 'subscriptions' => 'Subscriptions',
+ 'go_to_subscriptions' => 'Go to your subscriptions',
+ 'forever' => 'Forever',
+ 'extension_date_is' => 'Extension date is {date}',
// accounts:
- 'i_am_owed_amount' => 'I am owed amount',
- 'i_owe_amount' => 'I owe amount',
- 'inactive_account_link' => 'You have :count inactive (archived) account, which you can view on this separate page.|You have :count inactive (archived) accounts, which you can view on this separate page.',
- 'all_accounts_inactive' => 'These are your inactive accounts.',
- 'active_account_link' => 'This link goes back to your active accounts.',
- 'account_missing_transaction' => 'Account #:id (":name") cannot be viewed directly, but Firefly is missing redirect information.',
- 'cc_monthly_payment_date_help' => 'Select any year and any month, it will be ignored anyway. Only the day of the month is relevant.',
- 'details_for_asset' => 'Details for asset account ":name"',
- 'details_for_expense' => 'Details for expense account ":name"',
- 'details_for_revenue' => 'Details for revenue account ":name"',
- 'details_for_cash' => 'Details for cash account ":name"',
- 'store_new_asset_account' => 'Store new asset account',
- 'store_new_expense_account' => 'Store new expense account',
- 'store_new_revenue_account' => 'Store new revenue account',
- 'edit_asset_account' => 'Edit asset account ":name"',
- 'edit_expense_account' => 'Edit expense account ":name"',
- 'edit_revenue_account' => 'Edit revenue account ":name"',
- 'delete_asset_account' => 'Delete asset account ":name"',
- 'delete_expense_account' => 'Delete expense account ":name"',
- 'delete_revenue_account' => 'Delete revenue account ":name"',
- 'delete_liabilities_account' => 'Delete liability ":name"',
- 'asset_deleted' => 'Successfully deleted asset account ":name"',
- 'account_deleted' => 'Successfully deleted account ":name"',
- 'expense_deleted' => 'Successfully deleted expense account ":name"',
- 'revenue_deleted' => 'Successfully deleted revenue account ":name"',
- 'update_asset_account' => 'Update asset account',
- 'update_undefined_account' => 'Update account',
- 'update_liabilities_account' => 'Update liability',
- 'update_expense_account' => 'Update expense account',
- 'update_revenue_account' => 'Update revenue account',
- 'make_new_asset_account' => 'Create a new asset account',
- 'make_new_expense_account' => 'Create a new expense account',
- 'make_new_revenue_account' => 'Create a new revenue account',
- 'make_new_liabilities_account' => 'Create a new liability',
- 'asset_accounts' => 'Asset accounts',
- 'undefined_accounts' => 'Accounts',
- 'asset_accounts_inactive' => 'Asset accounts (inactive)',
- 'expense_account' => 'Expense account',
- 'expense_accounts' => 'Expense accounts',
- 'expense_accounts_inactive' => 'Expense accounts (inactive)',
- 'revenue_account' => 'Revenue account',
- 'revenue_accounts' => 'Revenue accounts',
- 'revenue_accounts_inactive' => 'Revenue accounts (inactive)',
- 'cash_accounts' => 'Cash accounts',
- 'Cash account' => 'Cash account',
- 'liabilities_accounts' => 'Liabilities',
- 'liabilities_accounts_inactive' => 'Liabilities (inactive)',
- 'reconcile_account' => 'Reconcile account ":account"',
- 'overview_of_reconcile_modal' => 'Overview of reconciliation',
- 'delete_reconciliation' => 'Delete reconciliation',
- 'update_reconciliation' => 'Update reconciliation',
- 'amount_cannot_be_zero' => 'The amount cannot be zero',
- 'end_of_reconcile_period' => 'End of reconcile period: :period',
- 'start_of_reconcile_period' => 'Start of reconcile period: :period',
- 'start_balance' => 'Start balance',
- 'end_balance' => 'End balance',
- 'update_balance_dates_instruction' => 'Match the amounts and dates above to your bank statement, and press "Start reconciling"',
- 'select_transactions_instruction' => 'Select the transactions that appear on your bank statement.',
- 'select_range_and_balance' => 'First verify the date-range and balances. Then press "Start reconciling"',
- 'date_change_instruction' => 'If you change the date range now, any progress will be lost.',
- 'update_selection' => 'Update selection',
- 'store_reconcile' => 'Store reconciliation',
- 'reconciliation_transaction' => 'Reconciliation transaction',
- 'Reconciliation' => 'Reconciliation',
- 'reconciliation' => 'Reconciliation',
- 'reconcile_options' => 'Reconciliation options',
- 'reconcile_range' => 'Reconciliation range',
- 'start_reconcile' => 'Start reconciling',
- 'cash_account_type' => 'Cash',
- 'cash' => 'cash',
- 'cant_find_redirect_account' => 'Firefly III tried to redirect you but couldn\'t. Sorry about that. Back to the index.',
- 'account_type' => 'Account type',
- 'save_transactions_by_moving' => 'Save this transaction by moving it to another account:|Save these transactions by moving them to another account:',
- 'save_transactions_by_moving_js' => 'No transactions|Save this transaction by moving it to another account. |Save these transactions by moving them to another account.',
- 'stored_new_account' => 'New account ":name" stored!',
- 'stored_new_account_js' => 'New account "<a href="accounts/show/{ID}">{name}</a>" stored!',
- 'updated_account' => 'Updated account ":name"',
- 'updated_account_js' => 'Updated account "<a href="accounts/show/{ID}">{title}</a>".',
- 'credit_card_options' => 'Credit card options',
- 'no_transactions_account' => 'There are no transactions (in this period) for asset account ":name".',
- 'no_transactions_period' => 'There are no transactions (in this period).',
- 'no_data_for_chart' => 'There is not enough information (yet) to generate this chart.',
- 'select_at_least_one_account' => 'Please select at least one asset account',
- 'select_at_least_one_category' => 'Please select at least one category',
- 'select_at_least_one_budget' => 'Please select at least one budget',
- 'select_at_least_one_tag' => 'Please select at least one tag',
- 'select_at_least_one_expense' => 'Please select at least one combination of expense/revenue accounts. If you have none (the list is empty) this report is not available.',
- 'account_default_currency' => 'This will be the default currency associated with this account.',
- 'reconcile_has_more' => 'Your Firefly III ledger has more money in it than your bank claims you should have. There are several options. Please choose what to do. Then, press "Confirm reconciliation".',
- 'reconcile_has_less' => 'Your Firefly III ledger has less money in it than your bank claims you should have. There are several options. Please choose what to do. Then, press "Confirm reconciliation".',
- 'reconcile_is_equal' => 'Your Firefly III ledger and your bank statements match. There is nothing to do. Please press "Confirm reconciliation" to confirm your input.',
- 'create_pos_reconcile_transaction' => 'Clear the selected transactions, and create a correction adding :amount to this asset account.',
- 'create_neg_reconcile_transaction' => 'Clear the selected transactions, and create a correction removing :amount from this asset account.',
- 'reconcile_do_nothing' => 'Clear the selected transactions, but do not correct.',
- 'reconcile_go_back' => 'You can always edit or delete a correction later.',
- 'must_be_asset_account' => 'You can only reconcile asset accounts',
- 'reconciliation_stored' => 'Reconciliation stored',
- 'reconciliation_error' => 'Due to an error the transactions were marked as reconciled but the correction has not been stored: :error.',
- 'reconciliation_transaction_title' => 'Reconciliation (:from to :to)',
- 'sum_of_reconciliation' => 'Sum of reconciliation',
- 'reconcile_this_account' => 'Reconcile this account',
- 'reconcile' => 'Reconcile',
- 'show' => 'Show',
- 'confirm_reconciliation' => 'Confirm reconciliation',
- 'submitted_start_balance' => 'Submitted start balance',
- 'selected_transactions' => 'Selected transactions (:count)',
- 'already_cleared_transactions' => 'Already cleared transactions (:count)',
- 'submitted_end_balance' => 'Submitted end balance',
- 'initial_balance_description' => 'Initial balance for ":account"',
- 'liability_credit_description' => 'Liability credit for ":account"',
- 'interest_calc_' => 'unknown',
- 'interest_calc_daily' => 'Per day',
- 'interest_calc_monthly' => 'Per month',
- 'interest_calc_yearly' => 'Per year',
- 'interest_calc_weekly' => 'Per week',
- 'interest_calc_half-year' => 'Per half year',
- 'interest_calc_quarterly' => 'Per quarter',
- 'initial_balance_account' => 'Initial balance account of :account',
- 'list_options' => 'List options',
+ 'i_am_owed_amount' => 'I am owed amount',
+ 'i_owe_amount' => 'I owe amount',
+ 'inactive_account_link' => 'You have :count inactive (archived) account, which you can view on this separate page.|You have :count inactive (archived) accounts, which you can view on this separate page.',
+ 'all_accounts_inactive' => 'These are your inactive accounts.',
+ 'active_account_link' => 'This link goes back to your active accounts.',
+ 'account_missing_transaction' => 'Account #:id (":name") cannot be viewed directly, but Firefly is missing redirect information.',
+ 'cc_monthly_payment_date_help' => 'Select any year and any month, it will be ignored anyway. Only the day of the month is relevant.',
+ 'details_for_asset' => 'Details for asset account ":name"',
+ 'details_for_expense' => 'Details for expense account ":name"',
+ 'details_for_revenue' => 'Details for revenue account ":name"',
+ 'details_for_cash' => 'Details for cash account ":name"',
+ 'store_new_asset_account' => 'Store new asset account',
+ 'store_new_expense_account' => 'Store new expense account',
+ 'store_new_revenue_account' => 'Store new revenue account',
+ 'edit_asset_account' => 'Edit asset account ":name"',
+ 'edit_expense_account' => 'Edit expense account ":name"',
+ 'edit_revenue_account' => 'Edit revenue account ":name"',
+ 'delete_asset_account' => 'Delete asset account ":name"',
+ 'delete_expense_account' => 'Delete expense account ":name"',
+ 'delete_revenue_account' => 'Delete revenue account ":name"',
+ 'delete_liabilities_account' => 'Delete liability ":name"',
+ 'asset_deleted' => 'Successfully deleted asset account ":name"',
+ 'account_deleted' => 'Successfully deleted account ":name"',
+ 'expense_deleted' => 'Successfully deleted expense account ":name"',
+ 'revenue_deleted' => 'Successfully deleted revenue account ":name"',
+ 'update_asset_account' => 'Update asset account',
+ 'update_undefined_account' => 'Update account',
+ 'update_liabilities_account' => 'Update liability',
+ 'update_expense_account' => 'Update expense account',
+ 'update_revenue_account' => 'Update revenue account',
+ 'make_new_asset_account' => 'Create a new asset account',
+ 'make_new_expense_account' => 'Create a new expense account',
+ 'make_new_revenue_account' => 'Create a new revenue account',
+ 'make_new_liabilities_account' => 'Create a new liability',
+ 'asset_accounts' => 'Asset accounts',
+ 'undefined_accounts' => 'Accounts',
+ 'asset_accounts_inactive' => 'Asset accounts (inactive)',
+ 'expense_account' => 'Expense account',
+ 'expense_accounts' => 'Expense accounts',
+ 'expense_accounts_inactive' => 'Expense accounts (inactive)',
+ 'revenue_account' => 'Revenue account',
+ 'revenue_accounts' => 'Revenue accounts',
+ 'revenue_accounts_inactive' => 'Revenue accounts (inactive)',
+ 'cash_accounts' => 'Cash accounts',
+ 'Cash account' => 'Cash account',
+ 'liabilities_accounts' => 'Liabilities',
+ 'liabilities_accounts_inactive' => 'Liabilities (inactive)',
+ 'reconcile_account' => 'Reconcile account ":account"',
+ 'overview_of_reconcile_modal' => 'Overview of reconciliation',
+ 'delete_reconciliation' => 'Delete reconciliation',
+ 'update_reconciliation' => 'Update reconciliation',
+ 'amount_cannot_be_zero' => 'The amount cannot be zero',
+ 'end_of_reconcile_period' => 'End of reconcile period: :period',
+ 'start_of_reconcile_period' => 'Start of reconcile period: :period',
+ 'start_balance' => 'Start balance',
+ 'end_balance' => 'End balance',
+ 'update_balance_dates_instruction' => 'Match the amounts and dates above to your bank statement, and press "Start reconciling"',
+ 'select_transactions_instruction' => 'Select the transactions that appear on your bank statement.',
+ 'select_range_and_balance' => 'First verify the date-range and balances. Then press "Start reconciling"',
+ 'date_change_instruction' => 'If you change the date range now, any progress will be lost.',
+ 'update_selection' => 'Update selection',
+ 'store_reconcile' => 'Store reconciliation',
+ 'reconciliation_transaction' => 'Reconciliation transaction',
+ 'Reconciliation' => 'Reconciliation',
+ 'reconciliation' => 'Reconciliation',
+ 'reconcile_options' => 'Reconciliation options',
+ 'reconcile_range' => 'Reconciliation range',
+ 'start_reconcile' => 'Start reconciling',
+ 'cash_account_type' => 'Cash',
+ 'cash' => 'cash',
+ 'cant_find_redirect_account' => 'Firefly III tried to redirect you but couldn\'t. Sorry about that. Back to the index.',
+ 'account_type' => 'Account type',
+ 'save_transactions_by_moving' => 'Save this transaction by moving it to another account:|Save these transactions by moving them to another account:',
+ 'save_transactions_by_moving_js' => 'No transactions|Save this transaction by moving it to another account. |Save these transactions by moving them to another account.',
+ 'stored_new_account' => 'New account ":name" stored!',
+ 'stored_new_account_js' => 'New account "<a href="accounts/show/{ID}">{name}</a>" stored!',
+ 'updated_account' => 'Updated account ":name"',
+ 'updated_account_js' => 'Updated account "<a href="accounts/show/{ID}">{title}</a>".',
+ 'credit_card_options' => 'Credit card options',
+ 'no_transactions_account' => 'There are no transactions (in this period) for asset account ":name".',
+ 'no_transactions_period' => 'There are no transactions (in this period).',
+ 'no_data_for_chart' => 'There is not enough information (yet) to generate this chart.',
+ 'select_at_least_one_account' => 'Please select at least one asset account',
+ 'select_at_least_one_category' => 'Please select at least one category',
+ 'select_at_least_one_budget' => 'Please select at least one budget',
+ 'select_at_least_one_tag' => 'Please select at least one tag',
+ 'select_at_least_one_expense' => 'Please select at least one combination of expense/revenue accounts. If you have none (the list is empty) this report is not available.',
+ 'account_default_currency' => 'This will be the default currency associated with this account.',
+ 'reconcile_has_more' => 'Your Firefly III ledger has more money in it than your bank claims you should have. There are several options. Please choose what to do. Then, press "Confirm reconciliation".',
+ 'reconcile_has_less' => 'Your Firefly III ledger has less money in it than your bank claims you should have. There are several options. Please choose what to do. Then, press "Confirm reconciliation".',
+ 'reconcile_is_equal' => 'Your Firefly III ledger and your bank statements match. There is nothing to do. Please press "Confirm reconciliation" to confirm your input.',
+ 'create_pos_reconcile_transaction' => 'Clear the selected transactions, and create a correction adding :amount to this asset account.',
+ 'create_neg_reconcile_transaction' => 'Clear the selected transactions, and create a correction removing :amount from this asset account.',
+ 'reconcile_do_nothing' => 'Clear the selected transactions, but do not correct.',
+ 'reconcile_go_back' => 'You can always edit or delete a correction later.',
+ 'must_be_asset_account' => 'You can only reconcile asset accounts',
+ 'reconciliation_stored' => 'Reconciliation stored',
+ 'reconciliation_error' => 'Due to an error the transactions were marked as reconciled but the correction has not been stored: :error.',
+ 'reconciliation_transaction_title' => 'Reconciliation (:from to :to)',
+ 'sum_of_reconciliation' => 'Sum of reconciliation',
+ 'reconcile_this_account' => 'Reconcile this account',
+ 'reconcile' => 'Reconcile',
+ 'show' => 'Show',
+ 'confirm_reconciliation' => 'Confirm reconciliation',
+ 'submitted_start_balance' => 'Submitted start balance',
+ 'selected_transactions' => 'Selected transactions (:count)',
+ 'already_cleared_transactions' => 'Already cleared transactions (:count)',
+ 'submitted_end_balance' => 'Submitted end balance',
+ 'initial_balance_description' => 'Initial balance for ":account"',
+ 'liability_credit_description' => 'Liability credit for ":account"',
+ 'interest_calc_' => 'unknown',
+ 'interest_calc_daily' => 'Per day',
+ 'interest_calc_monthly' => 'Per month',
+ 'interest_calc_yearly' => 'Per year',
+ 'interest_calc_weekly' => 'Per week',
+ 'interest_calc_half-year' => 'Per half year',
+ 'interest_calc_quarterly' => 'Per quarter',
+ 'initial_balance_account' => 'Initial balance account of :account',
+ 'list_options' => 'List options',
// categories:
- 'new_category' => 'New category',
- 'create_new_category' => 'Create a new category',
- 'without_category' => 'Without a category',
- 'update_category' => 'Update category',
- 'updated_category' => 'Updated category ":name"',
- 'categories' => 'Categories',
- 'edit_category' => 'Edit category ":name"',
- 'no_category' => '(no category)',
- 'unknown_category_plain' => 'No category',
- 'category' => 'Category',
- 'delete_category' => 'Delete category ":name"',
- 'deleted_category' => 'Deleted category ":name"',
- 'store_category' => 'Store new category',
- 'stored_category' => 'Stored new category ":name"',
- 'without_category_between' => 'Without category between :start and :end',
+ 'new_category' => 'New category',
+ 'create_new_category' => 'Create a new category',
+ 'without_category' => 'Without a category',
+ 'update_category' => 'Update category',
+ 'updated_category' => 'Updated category ":name"',
+ 'categories' => 'Categories',
+ 'edit_category' => 'Edit category ":name"',
+ 'no_category' => '(no category)',
+ 'unknown_category_plain' => 'No category',
+ 'category' => 'Category',
+ 'delete_category' => 'Delete category ":name"',
+ 'deleted_category' => 'Deleted category ":name"',
+ 'store_category' => 'Store new category',
+ 'stored_category' => 'Stored new category ":name"',
+ 'without_category_between' => 'Without category between :start and :end',
// Ignore this comment
// transactions:
- 'wait_attachments' => 'Please wait for the attachments to upload.',
- 'errors_upload' => 'The upload has failed. Please check your browser console for the error.',
- 'amount_foreign_if' => 'Amount in foreign currency, if any',
- 'amount_destination_account' => 'Amount in the currency of the destination account',
- 'edit_transaction_title' => 'Edit transaction ":description"',
- 'unreconcile' => 'Undo reconciliation',
- 'update_withdrawal' => 'Update withdrawal',
- 'update_deposit' => 'Update deposit',
- 'update_transaction' => 'Update transaction',
- 'update_transfer' => 'Update transfer',
- 'updated_withdrawal' => 'Updated withdrawal ":description"',
- 'updated_deposit' => 'Updated deposit ":description"',
- 'updated_transfer' => 'Updated transfer ":description"',
- 'no_changes_withdrawal' => 'Withdrawal ":description" was not changed.',
- 'no_changes_deposit' => 'Deposit ":description" was not changed.',
- 'no_changes_transfer' => 'Transfer ":description" was not changed.',
- 'delete_withdrawal' => 'Delete withdrawal ":description"',
- 'delete_deposit' => 'Delete deposit ":description"',
- 'delete_transfer' => 'Delete transfer ":description"',
- 'deleted_withdrawal' => 'Successfully deleted withdrawal ":description"',
- 'deleted_deposit' => 'Successfully deleted deposit ":description"',
- 'deleted_transfer' => 'Successfully deleted transfer ":description"',
- 'deleted_reconciliation' => 'Successfully deleted reconciliation transaction ":description"',
- 'stored_journal' => 'Successfully created new transaction ":description"',
- 'stored_journal_js' => 'Successfully created new transaction "%{description}"',
- 'stored_journal_no_descr' => 'Successfully created your new transaction',
- 'updated_journal_no_descr' => 'Successfully updated your transaction',
- 'select_transactions' => 'Select transactions',
- 'rule_group_select_transactions' => 'Apply ":title" to transactions',
- 'rule_select_transactions' => 'Apply ":title" to transactions',
- 'stop_selection' => 'Stop selecting transactions',
- 'reconcile_selected' => 'Reconcile',
- 'mass_delete_journals' => 'Delete a number of transactions',
- 'mass_edit_journals' => 'Edit a number of transactions',
- 'mass_bulk_journals' => 'Bulk edit a number of transactions',
- 'mass_bulk_journals_explain' => 'This form allows you to change properties of the transactions listed below in one sweeping update. All the transactions in the table will be updated when you change the parameters you see here.',
- 'part_of_split' => 'This transaction is part of a split transaction. If you have not selected all the splits, you may end up with changing only half the transaction.',
- 'bulk_set_new_values' => 'Use the inputs below to set new values. If you leave them empty, they will be made empty for all. Also, note that only withdrawals will be given a budget.',
- 'no_bulk_category' => 'Don\'t update category',
- 'no_bulk_budget' => 'Don\'t update budget',
- 'no_bulk_tags' => 'Don\'t update tag(s)',
- 'replace_with_these_tags' => 'Replace with these tags',
- 'append_these_tags' => 'Add these tags',
- 'mass_edit' => 'Edit selected individually',
- 'bulk_edit' => 'Edit selected in bulk',
- 'mass_delete' => 'Delete selected',
- 'cannot_edit_other_fields' => 'You cannot mass-edit other fields than the ones here, because there is no room to show them. Please follow the link and edit them by one-by-one, if you need to edit these fields.',
- 'cannot_change_amount_reconciled' => 'You can\'t change the amount of reconciled transactions.',
- 'no_budget' => '(no budget)',
- 'no_bill' => '(no bill)',
- 'account_per_budget' => 'Account per budget',
- 'account_per_category' => 'Account per category',
- 'create_new_object' => 'Create',
- 'empty' => '(empty)',
- 'all_other_budgets' => '(all other budgets)',
- 'all_other_accounts' => '(all other accounts)',
- 'expense_per_source_account' => 'Expenses per source account',
- 'expense_per_destination_account' => 'Expenses per destination account',
- 'income_per_destination_account' => 'Income per destination account',
- 'spent_in_specific_category' => 'Spent in category ":category"',
- 'earned_in_specific_category' => 'Earned in category ":category"',
- 'spent_in_specific_tag' => 'Spent in tag ":tag"',
- 'earned_in_specific_tag' => 'Earned in tag ":tag"',
- 'income_per_source_account' => 'Income per source account',
- 'average_spending_per_destination' => 'Average expense per destination account',
- 'average_spending_per_source' => 'Average expense per source account',
- 'average_earning_per_source' => 'Average earning per source account',
- 'average_earning_per_destination' => 'Average earning per destination account',
- 'account_per_tag' => 'Account per tag',
- 'tag_report_expenses_listed_once' => 'Expenses and income are never listed twice. If a transaction has multiple tags, it may only show up under one of its tags. This list may appear to be missing data, but the amounts will be correct.',
- 'double_report_expenses_charted_once' => 'Expenses and income are never displayed twice. If a transaction has multiple tags, it may only show up under one of its tags. This chart may appear to be missing data, but the amounts will be correct.',
- 'tag_report_chart_single_tag' => 'This chart applies to a single tag. If a transaction has multiple tags, what you see here may be reflected in the charts of other tags as well.',
- 'tag' => 'Tag',
- 'no_budget_squared' => '(no budget)',
- 'perm-delete-many' => 'Deleting many items in one go can be very disruptive. Please be cautious. You can delete part of a split transaction from this page, so take care.',
- 'mass_deleted_transactions_success' => 'Deleted :count transaction.|Deleted :count transactions.',
- 'mass_edited_transactions_success' => 'Updated :count transaction.|Updated :count transactions.',
- 'opt_group_' => '(no account type)',
- 'opt_group_no_account_type' => '(no account type)',
- 'opt_group_defaultAsset' => 'Default asset accounts',
- 'opt_group_savingAsset' => 'Savings accounts',
- 'opt_group_sharedAsset' => 'Shared asset accounts',
- 'opt_group_ccAsset' => 'Credit cards',
- 'opt_group_cashWalletAsset' => 'Cash wallets',
- 'opt_group_expense_account' => 'Expense accounts',
- 'opt_group_revenue_account' => 'Revenue accounts',
- 'opt_group_l_Loan' => 'Liability: Loan',
- 'opt_group_cash_account' => 'Cash account',
- 'opt_group_l_Debt' => 'Liability: Debt',
- 'opt_group_l_Mortgage' => 'Liability: Mortgage',
- 'opt_group_l_Credit card' => 'Liability: Credit card',
- 'notes' => 'Notes',
- 'unknown_journal_error' => 'Could not store the transaction. Please check the log files.',
- 'attachment_not_found' => 'This attachment could not be found.',
- 'journal_link_bill' => 'This transaction is linked to bill <a href=":route">:name</a>. To remove the connection, uncheck the checkbox. Use rules to connect it to another bill.',
- 'transaction_stored_link' => '<a href="transactions/show/{ID}">Transaction #{ID} ("{title}")</a> has been stored.',
- 'transaction_new_stored_link' => '<a href="transactions/show/{ID}">Transaction #{ID}</a> has been stored.',
- 'transaction_updated_link' => '<a href="transactions/show/{ID}">Transaction #{ID}</a> ("{title}") has been updated.',
- 'transaction_updated_no_changes' => '<a href="transactions/show/{ID}">Transaction #{ID}</a> ("{title}") did not receive any changes.',
- 'first_split_decides' => 'The first split determines the value of this field',
- 'first_split_overrules_source' => 'The first split may overrule the source account',
- 'first_split_overrules_destination' => 'The first split may overrule the destination account',
- 'spent_x_of_y' => 'Spent {amount} of {total}',
+ 'wait_attachments' => 'Please wait for the attachments to upload.',
+ 'errors_upload' => 'The upload has failed. Please check your browser console for the error.',
+ 'amount_foreign_if' => 'Amount in foreign currency, if any',
+ 'amount_destination_account' => 'Amount in the currency of the destination account',
+ 'edit_transaction_title' => 'Edit transaction ":description"',
+ 'unreconcile' => 'Undo reconciliation',
+ 'update_withdrawal' => 'Update withdrawal',
+ 'update_deposit' => 'Update deposit',
+ 'update_transaction' => 'Update transaction',
+ 'update_transfer' => 'Update transfer',
+ 'updated_withdrawal' => 'Updated withdrawal ":description"',
+ 'updated_deposit' => 'Updated deposit ":description"',
+ 'updated_transfer' => 'Updated transfer ":description"',
+ 'no_changes_withdrawal' => 'Withdrawal ":description" was not changed.',
+ 'no_changes_deposit' => 'Deposit ":description" was not changed.',
+ 'no_changes_transfer' => 'Transfer ":description" was not changed.',
+ 'delete_withdrawal' => 'Delete withdrawal ":description"',
+ 'delete_deposit' => 'Delete deposit ":description"',
+ 'delete_transfer' => 'Delete transfer ":description"',
+ 'deleted_withdrawal' => 'Successfully deleted withdrawal ":description"',
+ 'deleted_deposit' => 'Successfully deleted deposit ":description"',
+ 'deleted_transfer' => 'Successfully deleted transfer ":description"',
+ 'deleted_reconciliation' => 'Successfully deleted reconciliation transaction ":description"',
+ 'stored_journal' => 'Successfully created new transaction ":description"',
+ 'stored_journal_js' => 'Successfully created new transaction "%{description}"',
+ 'stored_journal_no_descr' => 'Successfully created your new transaction',
+ 'updated_journal_no_descr' => 'Successfully updated your transaction',
+ 'select_transactions' => 'Select transactions',
+ 'rule_group_select_transactions' => 'Apply ":title" to transactions',
+ 'rule_select_transactions' => 'Apply ":title" to transactions',
+ 'stop_selection' => 'Stop selecting transactions',
+ 'reconcile_selected' => 'Reconcile',
+ 'mass_delete_journals' => 'Delete a number of transactions',
+ 'mass_edit_journals' => 'Edit a number of transactions',
+ 'mass_bulk_journals' => 'Bulk edit a number of transactions',
+ 'mass_bulk_journals_explain' => 'This form allows you to change properties of the transactions listed below in one sweeping update. All the transactions in the table will be updated when you change the parameters you see here.',
+ 'part_of_split' => 'This transaction is part of a split transaction. If you have not selected all the splits, you may end up with changing only half the transaction.',
+ 'bulk_set_new_values' => 'Use the inputs below to set new values. If you leave them empty, they will be made empty for all. Also, note that only withdrawals will be given a budget.',
+ 'no_bulk_category' => 'Don\'t update category',
+ 'no_bulk_budget' => 'Don\'t update budget',
+ 'no_bulk_tags' => 'Don\'t update tag(s)',
+ 'replace_with_these_tags' => 'Replace with these tags',
+ 'append_these_tags' => 'Add these tags',
+ 'mass_edit' => 'Edit selected individually',
+ 'bulk_edit' => 'Edit selected in bulk',
+ 'mass_delete' => 'Delete selected',
+ 'cannot_edit_other_fields' => 'You cannot mass-edit other fields than the ones here, because there is no room to show them. Please follow the link and edit them by one-by-one, if you need to edit these fields.',
+ 'cannot_change_amount_reconciled' => 'You can\'t change the amount of reconciled transactions.',
+ 'no_budget' => '(no budget)',
+ 'no_bill' => '(no bill)',
+ 'account_per_budget' => 'Account per budget',
+ 'account_per_category' => 'Account per category',
+ 'create_new_object' => 'Create',
+ 'empty' => '(empty)',
+ 'all_other_budgets' => '(all other budgets)',
+ 'all_other_accounts' => '(all other accounts)',
+ 'expense_per_source_account' => 'Expenses per source account',
+ 'expense_per_destination_account' => 'Expenses per destination account',
+ 'income_per_destination_account' => 'Income per destination account',
+ 'spent_in_specific_category' => 'Spent in category ":category"',
+ 'earned_in_specific_category' => 'Earned in category ":category"',
+ 'spent_in_specific_tag' => 'Spent in tag ":tag"',
+ 'earned_in_specific_tag' => 'Earned in tag ":tag"',
+ 'income_per_source_account' => 'Income per source account',
+ 'average_spending_per_destination' => 'Average expense per destination account',
+ 'average_spending_per_source' => 'Average expense per source account',
+ 'average_earning_per_source' => 'Average earning per source account',
+ 'average_earning_per_destination' => 'Average earning per destination account',
+ 'account_per_tag' => 'Account per tag',
+ 'tag_report_expenses_listed_once' => 'Expenses and income are never listed twice. If a transaction has multiple tags, it may only show up under one of its tags. This list may appear to be missing data, but the amounts will be correct.',
+ 'double_report_expenses_charted_once' => 'Expenses and income are never displayed twice. If a transaction has multiple tags, it may only show up under one of its tags. This chart may appear to be missing data, but the amounts will be correct.',
+ 'tag_report_chart_single_tag' => 'This chart applies to a single tag. If a transaction has multiple tags, what you see here may be reflected in the charts of other tags as well.',
+ 'tag' => 'Tag',
+ 'no_budget_squared' => '(no budget)',
+ 'perm-delete-many' => 'Deleting many items in one go can be very disruptive. Please be cautious. You can delete part of a split transaction from this page, so take care.',
+ 'mass_deleted_transactions_success' => 'Deleted :count transaction.|Deleted :count transactions.',
+ 'mass_edited_transactions_success' => 'Updated :count transaction.|Updated :count transactions.',
+ 'opt_group_' => '(no account type)',
+ 'opt_group_no_account_type' => '(no account type)',
+ 'opt_group_defaultAsset' => 'Default asset accounts',
+ 'opt_group_savingAsset' => 'Savings accounts',
+ 'opt_group_sharedAsset' => 'Shared asset accounts',
+ 'opt_group_ccAsset' => 'Credit cards',
+ 'opt_group_cashWalletAsset' => 'Cash wallets',
+ 'opt_group_expense_account' => 'Expense accounts',
+ 'opt_group_revenue_account' => 'Revenue accounts',
+ 'opt_group_l_Loan' => 'Liability: Loan',
+ 'opt_group_cash_account' => 'Cash account',
+ 'opt_group_l_Debt' => 'Liability: Debt',
+ 'opt_group_l_Mortgage' => 'Liability: Mortgage',
+ 'opt_group_l_Credit card' => 'Liability: Credit card',
+ 'notes' => 'Notes',
+ 'unknown_journal_error' => 'Could not store the transaction. Please check the log files.',
+ 'attachment_not_found' => 'This attachment could not be found.',
+ 'journal_link_bill' => 'This transaction is linked to bill <a href=":route">:name</a>. To remove the connection, uncheck the checkbox. Use rules to connect it to another bill.',
+ 'transaction_stored_link' => '<a href="transactions/show/{ID}">Transaction #{ID} ("{title}")</a> has been stored.',
+ 'transaction_new_stored_link' => '<a href="transactions/show/{ID}">Transaction #{ID}</a> has been stored.',
+ 'transaction_updated_link' => '<a href="transactions/show/{ID}">Transaction #{ID}</a> ("{title}") has been updated.',
+ 'transaction_updated_no_changes' => '<a href="transactions/show/{ID}">Transaction #{ID}</a> ("{title}") did not receive any changes.',
+ 'first_split_decides' => 'The first split determines the value of this field',
+ 'first_split_overrules_source' => 'The first split may overrule the source account',
+ 'first_split_overrules_destination' => 'The first split may overrule the destination account',
+ 'spent_x_of_y' => 'Spent {amount} of {total}',
// new user:
- 'welcome' => 'Welcome to Firefly III!',
- 'submit' => 'Submit',
- 'submission' => 'Submission',
- 'submit_yes_really' => 'Submit (I know what I\'m doing)',
- 'getting_started' => 'Getting started',
- 'to_get_started' => 'It is good to see you have successfully installed Firefly III. To get started with this tool please enter your bank\'s name and the balance of your main checking account. Do not worry yet if you have multiple accounts. You can add those later. It\'s just that Firefly III needs something to start with.',
- 'savings_balance_text' => 'Firefly III will automatically create a savings account for you. By default, there will be no money in your savings account, but if you tell Firefly III the balance it will be stored as such.',
- 'finish_up_new_user' => 'That\'s it! You can continue by pressing <strong>Submit</strong>. You will be taken to the index of Firefly III.',
- 'stored_new_accounts_new_user' => 'Yay! Your new accounts have been stored.',
- 'set_preferred_language' => 'If you prefer to use Firefly III in another language, please indicate so here.',
- 'language' => 'Language',
- 'new_savings_account' => ':bank_name savings account',
- 'cash_wallet' => 'Cash wallet',
- 'currency_not_present' => 'If the currency you normally use is not listed do not worry. You can create your own currencies under Options > Currencies.',
+ 'welcome' => 'Welcome to Firefly III!',
+ 'submit' => 'Submit',
+ 'submission' => 'Submission',
+ 'submit_yes_really' => 'Submit (I know what I\'m doing)',
+ 'getting_started' => 'Getting started',
+ 'to_get_started' => 'It is good to see you have successfully installed Firefly III. To get started with this tool please enter your bank\'s name and the balance of your main checking account. Do not worry yet if you have multiple accounts. You can add those later. It\'s just that Firefly III needs something to start with.',
+ 'savings_balance_text' => 'Firefly III will automatically create a savings account for you. By default, there will be no money in your savings account, but if you tell Firefly III the balance it will be stored as such.',
+ 'finish_up_new_user' => 'That\'s it! You can continue by pressing <strong>Submit</strong>. You will be taken to the index of Firefly III.',
+ 'stored_new_accounts_new_user' => 'Yay! Your new accounts have been stored.',
+ 'set_preferred_language' => 'If you prefer to use Firefly III in another language, please indicate so here.',
+ 'language' => 'Language',
+ 'new_savings_account' => ':bank_name savings account',
+ 'cash_wallet' => 'Cash wallet',
+ 'currency_not_present' => 'If the currency you normally use is not listed do not worry. You can create your own currencies under Options > Currencies.',
// home page:
- 'transaction_table_description' => 'A table containing your transactions',
- 'opposing_account' => 'Opposing account',
- 'yourAccounts' => 'Your accounts',
- 'your_accounts' => 'Your account overview',
- 'category_overview' => 'Category overview',
- 'expense_overview' => 'Expense account overview',
- 'revenue_overview' => 'Revenue account overview',
- 'budgetsAndSpending' => 'Budgets and spending',
- 'budgets_and_spending' => 'Budgets and spending',
- 'go_to_budget' => 'Go to budget "{budget}"',
- 'go_to_deposits' => 'Go to deposits',
- 'go_to_expenses' => 'Go to expenses',
- 'savings' => 'Savings',
- 'newWithdrawal' => 'New expense',
- 'newDeposit' => 'New deposit',
- 'newTransfer' => 'New transfer',
- 'bills_to_pay' => 'Bills to pay',
- 'per_day' => 'Per day',
- 'left_to_spend_per_day' => 'Left to spend per day',
- 'bills_paid' => 'Bills paid',
- 'custom_period' => 'Custom period',
- 'reset_to_current' => 'Reset to current period',
- 'select_period' => 'Select a period',
+ 'transaction_table_description' => 'A table containing your transactions',
+ 'opposing_account' => 'Opposing account',
+ 'yourAccounts' => 'Your accounts',
+ 'your_accounts' => 'Your account overview',
+ 'category_overview' => 'Category overview',
+ 'expense_overview' => 'Expense account overview',
+ 'revenue_overview' => 'Revenue account overview',
+ 'budgetsAndSpending' => 'Budgets and spending',
+ 'budgets_and_spending' => 'Budgets and spending',
+ 'go_to_budget' => 'Go to budget "{budget}"',
+ 'go_to_deposits' => 'Go to deposits',
+ 'go_to_expenses' => 'Go to expenses',
+ 'savings' => 'Savings',
+ 'newWithdrawal' => 'New expense',
+ 'newDeposit' => 'New deposit',
+ 'newTransfer' => 'New transfer',
+ 'bills_to_pay' => 'Bills to pay',
+ 'per_day' => 'Per day',
+ 'left_to_spend_per_day' => 'Left to spend per day',
+ 'bills_paid' => 'Bills paid',
+ 'custom_period' => 'Custom period',
+ 'reset_to_current' => 'Reset to current period',
+ 'select_period' => 'Select a period',
// menu and titles, should be recycled as often as possible:
- 'currency' => 'Currency',
- 'preferences' => 'Preferences',
- 'logout' => 'Logout',
- 'logout_other_sessions' => 'Logout all other sessions',
- 'toggleNavigation' => 'Toggle navigation',
- 'searchPlaceholder' => 'Search...',
- 'version' => 'Version',
- 'dashboard' => 'Dashboard',
- 'income_and_expense' => 'Income and expense',
- 'all_money' => 'All your money',
- 'unknown_source_plain' => 'Unknown source account',
- 'unknown_dest_plain' => 'Unknown destination account',
- 'unknown_any_plain' => 'Unknown account',
- 'unknown_budget_plain' => 'No budget',
- 'available_budget' => 'Available budget ({currency})',
- 'currencies' => 'Currencies',
- 'activity' => 'Activity',
- 'usage' => 'Usage',
- 'accounts' => 'Accounts',
- 'Asset account' => 'Asset account',
- 'Default account' => 'Asset account',
- 'Expense account' => 'Expense account',
- 'Revenue account' => 'Revenue account',
- 'Initial balance account' => 'Initial balance account',
- 'account_type_Asset account' => 'Asset account',
- 'account_type_Expense account' => 'Expense account',
- 'account_type_Revenue account' => 'Revenue account',
- 'account_type_Debt' => 'Debt',
- 'account_type_Loan' => 'Loan',
- 'account_type_Mortgage' => 'Mortgage',
- 'account_type_debt' => 'Debt',
- 'account_type_loan' => 'Loan',
- 'account_type_mortgage' => 'Mortgage',
- 'account_type_Credit card' => 'Credit card',
- 'credit_card_type_monthlyFull' => 'Full payment every month',
- 'liability_direction_credit' => 'I am owed this debt',
- 'liability_direction_debit' => 'I owe this debt to somebody else',
- 'liability_direction_credit_short' => 'Owed this debt',
- 'liability_direction_debit_short' => 'Owe this debt',
- 'liability_direction__short' => 'Unknown',
- 'liability_direction_null_short' => 'Unknown',
- 'Liability credit' => 'Liability credit',
- 'budgets' => 'Budgets',
- 'tags' => 'Tags',
- 'reports' => 'Reports',
- 'transactions' => 'Transactions',
- 'expenses' => 'Expenses',
- 'income' => 'Revenue / income',
- 'transfers' => 'Transfers',
- 'moneyManagement' => 'Money management',
- 'money_management' => 'Money management',
- 'tools' => 'Tools',
- 'piggyBanks' => 'Piggy banks',
- 'piggy_banks' => 'Piggy banks',
- 'amount_x_of_y' => '{current} of {total}',
- 'bills' => 'Bills',
- 'withdrawal' => 'Withdrawal',
- 'opening_balance' => 'Opening balance',
- 'deposit' => 'Deposit',
- 'account' => 'Account',
- 'transfer' => 'Transfer',
- 'Withdrawal' => 'Withdrawal',
- 'Deposit' => 'Deposit',
- 'Transfer' => 'Transfer',
- 'bill' => 'Bill',
- 'yes' => 'Yes',
- 'no' => 'No',
- 'amount' => 'Amount',
- 'overview' => 'Overview',
- 'saveOnAccount' => 'Save on account',
- 'unknown' => 'Unknown',
- 'monthly' => 'Monthly',
- 'profile' => 'Profile',
- 'errors' => 'Errors',
- 'debt_start_date' => 'Start date of debt',
- 'debt_start_amount' => 'Start amount of debt',
- 'debt_start_amount_help' => 'It\'s always best to set this value to a negative amount. Read the help pages (top right (?)-icon) for more information.',
- 'interest_period_help' => 'This field is purely cosmetic and won\'t be calculated for you. As it turns out banks are very sneaky so Firefly III never gets it right.',
- 'store_new_liabilities_account' => 'Store new liability',
- 'edit_liabilities_account' => 'Edit liability ":name"',
- 'financial_control' => 'Financial control',
- 'accounting' => 'Accounting',
- 'automation' => 'Automation',
- 'others' => 'Others',
- 'classification' => 'Classification',
- 'store_transaction' => 'Store transaction',
+ 'currency' => 'Currency',
+ 'preferences' => 'Preferences',
+ 'logout' => 'Logout',
+ 'logout_other_sessions' => 'Logout all other sessions',
+ 'toggleNavigation' => 'Toggle navigation',
+ 'searchPlaceholder' => 'Search...',
+ 'version' => 'Version',
+ 'dashboard' => 'Dashboard',
+ 'income_and_expense' => 'Income and expense',
+ 'all_money' => 'All your money',
+ 'unknown_source_plain' => 'Unknown source account',
+ 'unknown_dest_plain' => 'Unknown destination account',
+ 'unknown_any_plain' => 'Unknown account',
+ 'unknown_budget_plain' => 'No budget',
+ 'available_budget' => 'Available budget ({currency})',
+ 'currencies' => 'Currencies',
+ 'activity' => 'Activity',
+ 'usage' => 'Usage',
+ 'accounts' => 'Accounts',
+ 'Asset account' => 'Asset account',
+ 'Default account' => 'Asset account',
+ 'Expense account' => 'Expense account',
+ 'Revenue account' => 'Revenue account',
+ 'Initial balance account' => 'Initial balance account',
+ 'account_type_Asset account' => 'Asset account',
+ 'account_type_Expense account' => 'Expense account',
+ 'account_type_Revenue account' => 'Revenue account',
+ 'account_type_Debt' => 'Debt',
+ 'account_type_Loan' => 'Loan',
+ 'account_type_Mortgage' => 'Mortgage',
+ 'account_type_debt' => 'Debt',
+ 'account_type_loan' => 'Loan',
+ 'account_type_mortgage' => 'Mortgage',
+ 'account_type_Credit card' => 'Credit card',
+ 'credit_card_type_monthlyFull' => 'Full payment every month',
+ 'liability_direction_credit' => 'I am owed this debt',
+ 'liability_direction_debit' => 'I owe this debt to somebody else',
+ 'liability_direction_credit_short' => 'Owed this debt',
+ 'liability_direction_debit_short' => 'Owe this debt',
+ 'liability_direction__short' => 'Unknown',
+ 'liability_direction_null_short' => 'Unknown',
+ 'Liability credit' => 'Liability credit',
+ 'budgets' => 'Budgets',
+ 'tags' => 'Tags',
+ 'reports' => 'Reports',
+ 'transactions' => 'Transactions',
+ 'expenses' => 'Expenses',
+ 'income' => 'Revenue / income',
+ 'transfers' => 'Transfers',
+ 'moneyManagement' => 'Money management',
+ 'money_management' => 'Money management',
+ 'tools' => 'Tools',
+ 'piggyBanks' => 'Piggy banks',
+ 'piggy_banks' => 'Piggy banks',
+ 'amount_x_of_y' => '{current} of {total}',
+ 'bills' => 'Bills',
+ 'withdrawal' => 'Withdrawal',
+ 'opening_balance' => 'Opening balance',
+ 'deposit' => 'Deposit',
+ 'account' => 'Account',
+ 'transfer' => 'Transfer',
+ 'Withdrawal' => 'Withdrawal',
+ 'Deposit' => 'Deposit',
+ 'Transfer' => 'Transfer',
+ 'bill' => 'Bill',
+ 'yes' => 'Yes',
+ 'no' => 'No',
+ 'amount' => 'Amount',
+ 'overview' => 'Overview',
+ 'saveOnAccount' => 'Save on account',
+ 'unknown' => 'Unknown',
+ 'monthly' => 'Monthly',
+ 'profile' => 'Profile',
+ 'errors' => 'Errors',
+ 'debt_start_date' => 'Start date of debt',
+ 'debt_start_amount' => 'Start amount of debt',
+ 'debt_start_amount_help' => 'It\'s always best to set this value to a negative amount. Read the help pages (top right (?)-icon) for more information.',
+ 'interest_period_help' => 'This field is purely cosmetic and won\'t be calculated for you. As it turns out banks are very sneaky so Firefly III never gets it right.',
+ 'store_new_liabilities_account' => 'Store new liability',
+ 'edit_liabilities_account' => 'Edit liability ":name"',
+ 'financial_control' => 'Financial control',
+ 'accounting' => 'Accounting',
+ 'automation' => 'Automation',
+ 'others' => 'Others',
+ 'classification' => 'Classification',
+ 'store_transaction' => 'Store transaction',
// Ignore this comment
// reports:
- 'report_default' => 'Default financial report between :start and :end',
- 'report_audit' => 'Transaction history overview between :start and :end',
- 'report_category' => 'Category report between :start and :end',
- 'report_double' => 'Expense/revenue account report between :start and :end',
- 'report_budget' => 'Budget report between :start and :end',
- 'report_tag' => 'Tag report between :start and :end',
- 'quick_link_reports' => 'Quick links',
- 'quick_link_examples' => 'These are just some example links to get you started. Check out the help pages under the (?)-button for information on all reports and the magic words you can use.',
- 'quick_link_default_report' => 'Default financial report',
- 'quick_link_audit_report' => 'Transaction history overview',
- 'report_this_month_quick' => 'Current month, all accounts',
- 'report_last_month_quick' => 'Last month, all accounts',
- 'report_this_year_quick' => 'Current year, all accounts',
- 'report_this_fiscal_year_quick' => 'Current fiscal year, all accounts',
- 'report_all_time_quick' => 'All-time, all accounts',
- 'reports_can_bookmark' => 'Remember that reports can be bookmarked.',
- 'incomeVsExpenses' => 'Income vs. expenses',
- 'accountBalances' => 'Account balances',
- 'balanceStart' => 'Balance at start of period',
- 'balanceEnd' => 'Balance at end of period',
- 'splitByAccount' => 'Split by account',
- 'coveredWithTags' => 'Covered with tags',
- 'leftInBudget' => 'Left in budget',
- 'left_in_debt' => 'Amount due',
- 'sumOfSums' => 'Sum of sums',
- 'noCategory' => '(no category)',
- 'notCharged' => 'Not charged (yet)',
- 'inactive' => 'Inactive',
- 'active' => 'Active',
- 'difference' => 'Difference',
- 'money_flowing_in' => 'In',
- 'money_flowing_out' => 'Out',
- 'topX' => 'top :number',
- 'show_full_list' => 'Show entire list',
- 'show_only_top' => 'Show only top :number',
- 'report_type' => 'Report type',
- 'report_type_default' => 'Default financial report',
- 'report_type_audit' => 'Transaction history overview (audit)',
- 'report_type_category' => 'Category report',
- 'report_type_budget' => 'Budget report',
- 'report_type_tag' => 'Tag report',
- 'report_type_double' => 'Expense/revenue account report',
- 'more_info_help' => 'More information about these types of reports can be found in the help pages. Press the (?) icon in the top right corner.',
- 'report_included_accounts' => 'Included accounts',
- 'report_date_range' => 'Date range',
- 'report_preset_ranges' => 'Pre-set ranges',
- 'shared' => 'Shared',
- 'fiscal_year' => 'Fiscal year',
- 'income_entry' => 'Income from account ":name" between :start and :end',
- 'expense_entry' => 'Expenses to account ":name" between :start and :end',
- 'category_entry' => 'Expenses and income in category ":name" between :start and :end',
- 'budget_spent_amount' => 'Expenses in budget ":budget" between :start and :end',
- 'balance_amount' => 'Expenses in budget ":budget" paid from account ":account" between :start and :end',
- 'no_audit_activity' => 'No activity was recorded on account <a href=":url" title=":account_name">:account_name</a> between :start and :end.',
- 'audit_end_balance' => 'Account balance of <a href=":url" title=":account_name">:account_name</a> at the end of :end was: :balance',
- 'reports_extra_options' => 'Extra options',
- 'report_has_no_extra_options' => 'This report has no extra options',
- 'reports_submit' => 'View report',
- 'end_after_start_date' => 'End date of report must be after start date.',
- 'select_category' => 'Select category(ies)',
- 'select_budget' => 'Select budget(s).',
- 'select_tag' => 'Select tag(s).',
- 'income_per_category' => 'Income per category',
- 'expense_per_category' => 'Expense per category',
- 'expense_per_budget' => 'Expense per budget',
- 'income_per_account' => 'Income per account',
- 'expense_per_account' => 'Expense per account',
- 'expense_per_tag' => 'Expense per tag',
- 'income_per_tag' => 'Income per tag',
- 'include_expense_not_in_budget' => 'Included expenses not in the selected budget(s)',
- 'include_expense_not_in_account' => 'Included expenses not in the selected account(s)',
- 'include_expense_not_in_category' => 'Included expenses not in the selected category(ies)',
- 'include_income_not_in_category' => 'Included income not in the selected category(ies)',
- 'include_income_not_in_account' => 'Included income not in the selected account(s)',
- 'include_income_not_in_tags' => 'Included income not in the selected tag(s)',
- 'include_expense_not_in_tags' => 'Included expenses not in the selected tag(s)',
- 'everything_else' => 'Everything else',
- 'income_and_expenses' => 'Income and expenses',
- 'spent_average' => 'Spent (average)',
- 'income_average' => 'Income (average)',
- 'transaction_count' => 'Transaction count',
- 'average_spending_per_account' => 'Average spending per account',
- 'average_income_per_account' => 'Average income per account',
- 'total' => 'Total',
- 'description' => 'Description',
- 'sum_of_period' => 'Sum of period',
- 'average_in_period' => 'Average in period',
- 'account_role_defaultAsset' => 'Default asset account',
- 'account_role_sharedAsset' => 'Shared asset account',
- 'account_role_savingAsset' => 'Savings account',
- 'account_role_ccAsset' => 'Credit card',
- 'account_role_cashWalletAsset' => 'Cash wallet',
- 'budget_chart_click' => 'Please click on a budget name in the table above to see a chart.',
- 'category_chart_click' => 'Please click on a category name in the table above to see a chart.',
- 'in_out_accounts' => 'Earned and spent per combination',
- 'in_out_accounts_per_asset' => 'Earned and spent (per asset account)',
- 'in_out_per_category' => 'Earned and spent per category',
- 'out_per_budget' => 'Spent per budget',
- 'select_expense_revenue' => 'Select expense/revenue account',
- 'multi_currency_report_sum' => 'Because this list contains accounts with multiple currencies, the sum(s) you see may not make sense. The report will always fall back to your default currency.',
- 'sum_in_default_currency' => 'The sum will always be in your default currency.',
- 'net_filtered_prefs' => 'This chart will never include accounts that have the "Include in net worth"-option unchecked.',
+ 'report_default' => 'Default financial report between :start and :end',
+ 'report_audit' => 'Transaction history overview between :start and :end',
+ 'report_category' => 'Category report between :start and :end',
+ 'report_double' => 'Expense/revenue account report between :start and :end',
+ 'report_budget' => 'Budget report between :start and :end',
+ 'report_tag' => 'Tag report between :start and :end',
+ 'quick_link_reports' => 'Quick links',
+ 'quick_link_examples' => 'These are just some example links to get you started. Check out the help pages under the (?)-button for information on all reports and the magic words you can use.',
+ 'quick_link_default_report' => 'Default financial report',
+ 'quick_link_audit_report' => 'Transaction history overview',
+ 'report_this_month_quick' => 'Current month, all accounts',
+ 'report_last_month_quick' => 'Last month, all accounts',
+ 'report_this_year_quick' => 'Current year, all accounts',
+ 'report_this_fiscal_year_quick' => 'Current fiscal year, all accounts',
+ 'report_all_time_quick' => 'All-time, all accounts',
+ 'reports_can_bookmark' => 'Remember that reports can be bookmarked.',
+ 'incomeVsExpenses' => 'Income vs. expenses',
+ 'accountBalances' => 'Account balances',
+ 'balanceStart' => 'Balance at start of period',
+ 'balanceEnd' => 'Balance at end of period',
+ 'splitByAccount' => 'Split by account',
+ 'coveredWithTags' => 'Covered with tags',
+ 'leftInBudget' => 'Left in budget',
+ 'left_in_debt' => 'Amount due',
+ 'sumOfSums' => 'Sum of sums',
+ 'noCategory' => '(no category)',
+ 'notCharged' => 'Not charged (yet)',
+ 'inactive' => 'Inactive',
+ 'active' => 'Active',
+ 'difference' => 'Difference',
+ 'money_flowing_in' => 'In',
+ 'money_flowing_out' => 'Out',
+ 'topX' => 'top :number',
+ 'show_full_list' => 'Show entire list',
+ 'show_only_top' => 'Show only top :number',
+ 'report_type' => 'Report type',
+ 'report_type_default' => 'Default financial report',
+ 'report_type_audit' => 'Transaction history overview (audit)',
+ 'report_type_category' => 'Category report',
+ 'report_type_budget' => 'Budget report',
+ 'report_type_tag' => 'Tag report',
+ 'report_type_double' => 'Expense/revenue account report',
+ 'more_info_help' => 'More information about these types of reports can be found in the help pages. Press the (?) icon in the top right corner.',
+ 'report_included_accounts' => 'Included accounts',
+ 'report_date_range' => 'Date range',
+ 'report_preset_ranges' => 'Pre-set ranges',
+ 'shared' => 'Shared',
+ 'fiscal_year' => 'Fiscal year',
+ 'income_entry' => 'Income from account ":name" between :start and :end',
+ 'expense_entry' => 'Expenses to account ":name" between :start and :end',
+ 'category_entry' => 'Expenses and income in category ":name" between :start and :end',
+ 'budget_spent_amount' => 'Expenses in budget ":budget" between :start and :end',
+ 'balance_amount' => 'Expenses in budget ":budget" paid from account ":account" between :start and :end',
+ 'no_audit_activity' => 'No activity was recorded on account <a href=":url" title=":account_name">:account_name</a> between :start and :end.',
+ 'audit_end_balance' => 'Account balance of <a href=":url" title=":account_name">:account_name</a> at the end of :end was: :balance',
+ 'reports_extra_options' => 'Extra options',
+ 'report_has_no_extra_options' => 'This report has no extra options',
+ 'reports_submit' => 'View report',
+ 'end_after_start_date' => 'End date of report must be after start date.',
+ 'select_category' => 'Select category(ies)',
+ 'select_budget' => 'Select budget(s).',
+ 'select_tag' => 'Select tag(s).',
+ 'income_per_category' => 'Income per category',
+ 'expense_per_category' => 'Expense per category',
+ 'expense_per_budget' => 'Expense per budget',
+ 'income_per_account' => 'Income per account',
+ 'expense_per_account' => 'Expense per account',
+ 'expense_per_tag' => 'Expense per tag',
+ 'income_per_tag' => 'Income per tag',
+ 'include_expense_not_in_budget' => 'Included expenses not in the selected budget(s)',
+ 'include_expense_not_in_account' => 'Included expenses not in the selected account(s)',
+ 'include_expense_not_in_category' => 'Included expenses not in the selected category(ies)',
+ 'include_income_not_in_category' => 'Included income not in the selected category(ies)',
+ 'include_income_not_in_account' => 'Included income not in the selected account(s)',
+ 'include_income_not_in_tags' => 'Included income not in the selected tag(s)',
+ 'include_expense_not_in_tags' => 'Included expenses not in the selected tag(s)',
+ 'everything_else' => 'Everything else',
+ 'income_and_expenses' => 'Income and expenses',
+ 'spent_average' => 'Spent (average)',
+ 'income_average' => 'Income (average)',
+ 'transaction_count' => 'Transaction count',
+ 'average_spending_per_account' => 'Average spending per account',
+ 'average_income_per_account' => 'Average income per account',
+ 'total' => 'Total',
+ 'description' => 'Description',
+ 'sum_of_period' => 'Sum of period',
+ 'average_in_period' => 'Average in period',
+ 'account_role_defaultAsset' => 'Default asset account',
+ 'account_role_sharedAsset' => 'Shared asset account',
+ 'account_role_savingAsset' => 'Savings account',
+ 'account_role_ccAsset' => 'Credit card',
+ 'account_role_cashWalletAsset' => 'Cash wallet',
+ 'budget_chart_click' => 'Please click on a budget name in the table above to see a chart.',
+ 'category_chart_click' => 'Please click on a category name in the table above to see a chart.',
+ 'in_out_accounts' => 'Earned and spent per combination',
+ 'in_out_accounts_per_asset' => 'Earned and spent (per asset account)',
+ 'in_out_per_category' => 'Earned and spent per category',
+ 'out_per_budget' => 'Spent per budget',
+ 'select_expense_revenue' => 'Select expense/revenue account',
+ 'multi_currency_report_sum' => 'Because this list contains accounts with multiple currencies, the sum(s) you see may not make sense. The report will always fall back to your default currency.',
+ 'sum_in_default_currency' => 'The sum will always be in your default currency.',
+ 'net_filtered_prefs' => 'This chart will never include accounts that have the "Include in net worth"-option unchecked.',
// Ignore this comment
// charts:
- 'chart' => 'Chart',
- 'month' => 'Month',
- 'budget' => 'Budget',
- 'spent' => 'Spent',
- 'spent_capped' => 'Spent (capped)',
- 'spent_in_budget' => 'Spent in budget',
- 'left_to_spend' => 'Left to spend',
- 'earned' => 'Earned',
- 'overspent' => 'Overspent',
- 'left' => 'Left',
- 'max-amount' => 'Maximum amount',
- 'min-amount' => 'Minimum amount',
- 'journal-amount' => 'Current bill entry',
- 'name' => 'Name',
- 'date' => 'Date',
- 'date_and_time' => 'Date and time',
- 'time' => 'Time',
- 'paid' => 'Paid',
- 'unpaid' => 'Unpaid',
- 'day' => 'Day',
- 'budgeted' => 'Budgeted',
- 'period' => 'Period',
- 'balance' => 'Balance',
- 'in_out_period' => 'In + out this period',
- 'sum' => 'Sum',
- 'summary' => 'Summary',
- 'average' => 'Average',
- 'balanceFor' => 'Balance for :name',
- 'no_tags' => '(no tags)',
- 'nothing_found' => '(nothing found)',
+ 'chart' => 'Chart',
+ 'month' => 'Month',
+ 'budget' => 'Budget',
+ 'spent' => 'Spent',
+ 'spent_capped' => 'Spent (capped)',
+ 'spent_in_budget' => 'Spent in budget',
+ 'left_to_spend' => 'Left to spend',
+ 'earned' => 'Earned',
+ 'overspent' => 'Overspent',
+ 'left' => 'Left',
+ 'max-amount' => 'Maximum amount',
+ 'min-amount' => 'Minimum amount',
+ 'journal-amount' => 'Current bill entry',
+ 'name' => 'Name',
+ 'date' => 'Date',
+ 'date_and_time' => 'Date and time',
+ 'time' => 'Time',
+ 'paid' => 'Paid',
+ 'unpaid' => 'Unpaid',
+ 'day' => 'Day',
+ 'budgeted' => 'Budgeted',
+ 'period' => 'Period',
+ 'balance' => 'Balance',
+ 'in_out_period' => 'In + out this period',
+ 'sum' => 'Sum',
+ 'summary' => 'Summary',
+ 'average' => 'Average',
+ 'balanceFor' => 'Balance for :name',
+ 'no_tags' => '(no tags)',
+ 'nothing_found' => '(nothing found)',
// piggy banks:
- 'event_history' => 'Event history',
- 'add_money_to_piggy' => 'Add money to piggy bank ":name"',
- 'piggy_bank' => 'Piggy bank',
- 'new_piggy_bank' => 'New piggy bank',
- 'store_piggy_bank' => 'Store new piggy bank',
- 'stored_piggy_bank' => 'Store new piggy bank ":name"',
- 'account_status' => 'Account status',
- 'left_for_piggy_banks' => 'Left for piggy banks',
- 'sum_of_piggy_banks' => 'Sum of piggy banks',
- 'saved_so_far' => 'Saved so far',
- 'left_to_save' => 'Left to save',
- 'suggested_amount' => 'Suggested monthly amount to save',
- 'add_money_to_piggy_title' => 'Add money to piggy bank ":name"',
- 'remove_money_from_piggy_title' => 'Remove money from piggy bank ":name"',
- 'add' => 'Add',
- 'no_money_for_piggy' => 'You have no money to put in this piggy bank.',
- 'suggested_savings_per_month' => 'Suggested per month',
-
- 'remove' => 'Remove',
- 'max_amount_add' => 'The maximum amount you can add is',
- 'max_amount_remove' => 'The maximum amount you can remove is',
- 'update_piggy_button' => 'Update piggy bank',
- 'update_piggy_title' => 'Update piggy bank ":name"',
- 'updated_piggy_bank' => 'Updated piggy bank ":name"',
- 'details' => 'Details',
- 'events' => 'Events',
- 'target_amount' => 'Target amount',
- 'start_date' => 'Start date',
- 'no_start_date' => 'No start date',
- 'target_date' => 'Target date',
- 'no_target_date' => 'No target date',
- 'table' => 'Table',
- 'delete_piggy_bank' => 'Delete piggy bank ":name"',
- 'cannot_add_amount_piggy' => 'Could not add :amount to ":name".',
- 'cannot_remove_from_piggy' => 'Could not remove :amount from ":name".',
- 'deleted_piggy_bank' => 'Deleted piggy bank ":name"',
- 'added_amount_to_piggy' => 'Added :amount to ":name"',
- 'removed_amount_from_piggy' => 'Removed :amount from ":name"',
- 'piggy_events' => 'Related piggy banks',
+ 'event_history' => 'Event history',
+ 'add_money_to_piggy' => 'Add money to piggy bank ":name"',
+ 'piggy_bank' => 'Piggy bank',
+ 'new_piggy_bank' => 'New piggy bank',
+ 'store_piggy_bank' => 'Store new piggy bank',
+ 'stored_piggy_bank' => 'Store new piggy bank ":name"',
+ 'account_status' => 'Account status',
+ 'left_for_piggy_banks' => 'Left for piggy banks',
+ 'sum_of_piggy_banks' => 'Sum of piggy banks',
+ 'saved_so_far' => 'Saved so far',
+ 'left_to_save' => 'Left to save',
+ 'suggested_amount' => 'Suggested monthly amount to save',
+ 'add_money_to_piggy_title' => 'Add money to piggy bank ":name"',
+ 'remove_money_from_piggy_title' => 'Remove money from piggy bank ":name"',
+ 'add' => 'Add',
+ 'no_money_for_piggy' => 'You have no money to put in this piggy bank.',
+ 'suggested_savings_per_month' => 'Suggested per month',
+
+ 'remove' => 'Remove',
+ 'max_amount_add' => 'The maximum amount you can add is',
+ 'max_amount_remove' => 'The maximum amount you can remove is',
+ 'update_piggy_button' => 'Update piggy bank',
+ 'update_piggy_title' => 'Update piggy bank ":name"',
+ 'updated_piggy_bank' => 'Updated piggy bank ":name"',
+ 'details' => 'Details',
+ 'events' => 'Events',
+ 'target_amount' => 'Target amount',
+ 'start_date' => 'Start date',
+ 'no_start_date' => 'No start date',
+ 'target_date' => 'Target date',
+ 'no_target_date' => 'No target date',
+ 'table' => 'Table',
+ 'delete_piggy_bank' => 'Delete piggy bank ":name"',
+ 'cannot_add_amount_piggy' => 'Could not add :amount to ":name".',
+ 'cannot_remove_from_piggy' => 'Could not remove :amount from ":name".',
+ 'deleted_piggy_bank' => 'Deleted piggy bank ":name"',
+ 'added_amount_to_piggy' => 'Added :amount to ":name"',
+ 'removed_amount_from_piggy' => 'Removed :amount from ":name"',
+ 'piggy_events' => 'Related piggy banks',
// tags
- 'delete_tag' => 'Delete tag ":tag"',
- 'deleted_tag' => 'Deleted tag ":tag"',
- 'new_tag' => 'Make new tag',
- 'edit_tag' => 'Edit tag ":tag"',
- 'updated_tag' => 'Updated tag ":tag"',
- 'created_tag' => 'Tag ":tag" has been created!',
-
- 'transaction_journal_information' => 'Transaction information',
- 'transaction_journal_amount' => 'Amount information',
- 'transaction_journal_meta' => 'Meta information',
- 'transaction_journal_more' => 'More information',
- 'basic_journal_information' => 'Basic transaction information',
- 'transaction_journal_extra' => 'Extra information',
- 'att_part_of_journal' => 'Stored under ":journal"',
- 'total_amount' => 'Total amount',
- 'number_of_decimals' => 'Number of decimals',
+ 'delete_tag' => 'Delete tag ":tag"',
+ 'deleted_tag' => 'Deleted tag ":tag"',
+ 'new_tag' => 'Make new tag',
+ 'edit_tag' => 'Edit tag ":tag"',
+ 'updated_tag' => 'Updated tag ":tag"',
+ 'created_tag' => 'Tag ":tag" has been created!',
+
+ 'transaction_journal_information' => 'Transaction information',
+ 'transaction_journal_amount' => 'Amount information',
+ 'transaction_journal_meta' => 'Meta information',
+ 'transaction_journal_more' => 'More information',
+ 'basic_journal_information' => 'Basic transaction information',
+ 'transaction_journal_extra' => 'Extra information',
+ 'att_part_of_journal' => 'Stored under ":journal"',
+ 'total_amount' => 'Total amount',
+ 'number_of_decimals' => 'Number of decimals',
// Ignore this comment
// administration
- 'invite_is_already_redeemed' => 'The invite to ":address" has already been redeemed.',
- 'invite_is_deleted' => 'The invite to ":address" has been deleted.',
- 'invite_new_user_title' => 'Invite new user',
- 'invite_new_user_text' => 'As an administrator, you can invite users to register on your Firefly III administration. Using the direct link you can share with them, they will be able to register an account. The invited user and their invite link will appear in the table below. You are free to share the invitation link with them.',
- 'invited_user_mail' => 'Email address',
- 'invite_user' => 'Invite user',
- 'user_is_invited' => 'Email address ":address" was invited to Firefly III',
- 'administration' => 'Administration',
- 'system_settings' => 'System settings',
- 'code_already_used' => 'Invite code has been used',
- 'user_administration' => 'User administration',
- 'list_all_users' => 'All users',
- 'all_users' => 'All users',
- 'instance_configuration' => 'Configuration',
- 'firefly_instance_configuration' => 'Configuration options for Firefly III',
- 'setting_single_user_mode' => 'Single user mode',
- 'setting_single_user_mode_explain' => 'By default, Firefly III only accepts one (1) registration: you. This is a security measure, preventing others from using your instance unless you allow them to. Future registrations are blocked. When you uncheck this box, others can use your instance as well, assuming they can reach it (when it is connected to the internet).',
- 'store_configuration' => 'Store configuration',
- 'single_user_administration' => 'User administration for :email',
- 'edit_user' => 'Edit user :email',
- 'hidden_fields_preferences' => 'You can enable more transaction options in your <a href="preferences">preferences</a>.',
- 'user_data_information' => 'User data',
- 'user_information' => 'User information',
- 'total_size' => 'total size',
- 'budget_or_budgets' => ':count budget|:count budgets',
- 'budgets_with_limits' => ':count budget with configured amount|:count budgets with configured amount',
- 'nr_of_rules_in_total_groups' => ':count_rules rule(s) in :count_groups rule group(s)',
- 'tag_or_tags' => ':count tag|:count tags',
- 'configuration_updated' => 'The configuration has been updated',
- 'setting_is_demo_site' => 'Demo site',
- 'setting_is_demo_site_explain' => 'If you check this box, this installation will behave as if it is the demo site, which can have weird side effects.',
- 'block_code_bounced' => 'Email message(s) bounced',
- 'block_code_expired' => 'Demo account expired',
- 'no_block_code' => 'No reason for block or user not blocked',
- 'block_code_email_changed' => 'User has not yet confirmed new email address',
- 'admin_update_email' => 'Contrary to the profile page, the user will NOT be notified their email address has changed!',
- 'update_user' => 'Update user',
- 'updated_user' => 'User data has been changed.',
- 'delete_user' => 'Delete user :email',
- 'user_deleted' => 'The user has been deleted',
- 'send_test_email' => 'Send test email message',
- 'send_test_email_text' => 'To see if your installation is capable of sending email or posting Slack messages, please press this button. You will not see an error here (if any), <strong>the log files will reflect any errors</strong>. You can press this button as many times as you like. There is no spam control. The message will be sent to <code>:email</code> and should arrive shortly.',
- 'send_message' => 'Send message',
- 'send_test_triggered' => 'Test was triggered. Check your inbox and the log files.',
- 'give_admin_careful' => 'Users who are given admin rights can take away yours. Be careful.',
- 'admin_maintanance_title' => 'Maintenance',
- 'admin_maintanance_expl' => 'Some nifty buttons for Firefly III maintenance',
- 'admin_maintenance_clear_cache' => 'Clear cache',
- 'admin_notifications' => 'Admin notifications',
- 'admin_notifications_expl' => 'The following notifications can be enabled or disabled by the administrator. If you want to get these messages over Slack as well, set the "incoming webhook" URL.',
- 'admin_notification_check_user_new_reg' => 'User gets post-registration welcome message',
- 'admin_notification_check_admin_new_reg' => 'Administrator(s) get new user registration notification',
- 'admin_notification_check_new_version' => 'A new version is available',
- 'admin_notification_check_invite_created' => 'A user is invited to Firefly III',
- 'admin_notification_check_invite_redeemed' => 'A user invitation is redeemed',
- 'all_invited_users' => 'All invited users',
- 'save_notification_settings' => 'Save settings',
- 'notification_settings_saved' => 'The notification settings have been saved',
-
- 'split_transaction_title' => 'Description of the split transaction',
- 'split_transaction_title_help' => 'If you create a split transaction, there must be a global description for all splits of the transaction.',
- 'split_title_help' => 'If you create a split transaction, there must be a global description for all splits of the transaction.',
- 'you_create_transfer' => 'You\'re creating a transfer.',
- 'you_create_withdrawal' => 'You\'re creating a withdrawal.',
- 'you_create_deposit' => 'You\'re creating a deposit.',
+ 'invite_is_already_redeemed' => 'The invite to ":address" has already been redeemed.',
+ 'invite_is_deleted' => 'The invite to ":address" has been deleted.',
+ 'invite_new_user_title' => 'Invite new user',
+ 'invite_new_user_text' => 'As an administrator, you can invite users to register on your Firefly III administration. Using the direct link you can share with them, they will be able to register an account. The invited user and their invite link will appear in the table below. You are free to share the invitation link with them.',
+ 'invited_user_mail' => 'Email address',
+ 'invite_user' => 'Invite user',
+ 'user_is_invited' => 'Email address ":address" was invited to Firefly III',
+ 'administration' => 'Administration',
+ 'system_settings' => 'System settings',
+ 'code_already_used' => 'Invite code has been used',
+ 'user_administration' => 'User administration',
+ 'list_all_users' => 'All users',
+ 'all_users' => 'All users',
+ 'instance_configuration' => 'Configuration',
+ 'firefly_instance_configuration' => 'Configuration options for Firefly III',
+ 'setting_single_user_mode' => 'Single user mode',
+ 'setting_single_user_mode_explain' => 'By default, Firefly III only accepts one (1) registration: you. This is a security measure, preventing others from using your instance unless you allow them to. Future registrations are blocked. When you uncheck this box, others can use your instance as well, assuming they can reach it (when it is connected to the internet).',
+ 'store_configuration' => 'Store configuration',
+ 'single_user_administration' => 'User administration for :email',
+ 'edit_user' => 'Edit user :email',
+ 'hidden_fields_preferences' => 'You can enable more transaction options in your <a href="preferences">preferences</a>.',
+ 'user_data_information' => 'User data',
+ 'user_information' => 'User information',
+ 'total_size' => 'total size',
+ 'budget_or_budgets' => ':count budget|:count budgets',
+ 'budgets_with_limits' => ':count budget with configured amount|:count budgets with configured amount',
+ 'nr_of_rules_in_total_groups' => ':count_rules rule(s) in :count_groups rule group(s)',
+ 'tag_or_tags' => ':count tag|:count tags',
+ 'configuration_updated' => 'The configuration has been updated',
+ 'setting_is_demo_site' => 'Demo site',
+ 'setting_is_demo_site_explain' => 'If you check this box, this installation will behave as if it is the demo site, which can have weird side effects.',
+ 'block_code_bounced' => 'Email message(s) bounced',
+ 'block_code_expired' => 'Demo account expired',
+ 'no_block_code' => 'No reason for block or user not blocked',
+ 'block_code_email_changed' => 'User has not yet confirmed new email address',
+ 'admin_update_email' => 'Contrary to the profile page, the user will NOT be notified their email address has changed!',
+ 'update_user' => 'Update user',
+ 'updated_user' => 'User data has been changed.',
+ 'delete_user' => 'Delete user :email',
+ 'user_deleted' => 'The user has been deleted',
+ 'send_test_email' => 'Send test email message',
+ 'send_test_email_text' => 'To see if your installation is capable of sending email or posting Slack messages, please press this button. You will not see an error here (if any), <strong>the log files will reflect any errors</strong>. You can press this button as many times as you like. There is no spam control. The message will be sent to <code>:email</code> and should arrive shortly.',
+ 'send_message' => 'Send message',
+ 'send_test_triggered' => 'Test was triggered. Check your inbox and the log files.',
+ 'give_admin_careful' => 'Users who are given admin rights can take away yours. Be careful.',
+ 'admin_maintanance_title' => 'Maintenance',
+ 'admin_maintanance_expl' => 'Some nifty buttons for Firefly III maintenance',
+ 'admin_maintenance_clear_cache' => 'Clear cache',
+ 'admin_notifications' => 'Admin notifications',
+ 'admin_notifications_expl' => 'The following notifications can be enabled or disabled by the administrator. If you want to get these messages over Slack as well, set the "incoming webhook" URL.',
+ 'admin_notification_check_user_new_reg' => 'User gets post-registration welcome message',
+ 'admin_notification_check_admin_new_reg' => 'Administrator(s) get new user registration notification',
+ 'admin_notification_check_new_version' => 'A new version is available',
+ 'admin_notification_check_invite_created' => 'A user is invited to Firefly III',
+ 'admin_notification_check_invite_redeemed' => 'A user invitation is redeemed',
+ 'all_invited_users' => 'All invited users',
+ 'save_notification_settings' => 'Save settings',
+ 'notification_settings_saved' => 'The notification settings have been saved',
+
+ 'split_transaction_title' => 'Description of the split transaction',
+ 'split_transaction_title_help' => 'If you create a split transaction, there must be a global description for all splits of the transaction.',
+ 'split_title_help' => 'If you create a split transaction, there must be a global description for all splits of the transaction.',
+ 'you_create_transfer' => 'You\'re creating a transfer.',
+ 'you_create_withdrawal' => 'You\'re creating a withdrawal.',
+ 'you_create_deposit' => 'You\'re creating a deposit.',
// links
- 'journal_link_configuration' => 'Transaction links configuration',
- 'create_new_link_type' => 'Create new link type',
- 'store_new_link_type' => 'Store new link type',
- 'update_link_type' => 'Update link type',
- 'edit_link_type' => 'Edit link type ":name"',
- 'updated_link_type' => 'Updated link type ":name"',
- 'delete_link_type' => 'Delete link type ":name"',
- 'deleted_link_type' => 'Deleted link type ":name"',
- 'stored_new_link_type' => 'Store new link type ":name"',
- 'cannot_edit_link_type' => 'Cannot edit link type ":name"',
- 'link_type_help_name' => 'Ie. "Duplicates"',
- 'link_type_help_inward' => 'Ie. "duplicates"',
- 'link_type_help_outward' => 'Ie. "is duplicated by"',
- 'save_connections_by_moving' => 'Save the link between these transactions by moving them to another link type:',
- 'do_not_save_connection' => '(do not save connection)',
- 'link_transaction' => 'Link transaction',
- 'link_to_other_transaction' => 'Link this transaction to another transaction',
- 'select_transaction_to_link' => 'Select a transaction to link this transaction to. The links are currently unused in Firefly III (apart from being shown), but I plan to change this in the future. Use the search box to select a transaction either by title or by ID. If you want to add custom link types, check out the administration section.',
- 'this_transaction' => 'This transaction',
- 'transaction' => 'Transaction',
- 'comments' => 'Comments',
- 'link_notes' => 'Any notes you wish to store with the link.',
- 'invalid_link_selection' => 'Cannot link these transactions',
- 'selected_transaction' => 'Selected transaction',
- 'journals_linked' => 'Transactions are linked.',
- 'journals_error_linked' => 'These transactions are already linked.',
- 'journals_link_to_self' => 'You cannot link a transaction to itself',
- 'journal_links' => 'Transaction links',
- 'this_withdrawal' => 'This withdrawal',
- 'this_deposit' => 'This deposit',
- 'this_transfer' => 'This transfer',
- 'overview_for_link' => 'Overview for link type ":name"',
- 'source_transaction' => 'Source transaction',
- 'link_description' => 'Link description',
- 'destination_transaction' => 'Destination transaction',
- 'delete_journal_link' => 'Delete the link between <a href=":source_link">:source</a> and <a href=":destination_link">:destination</a>',
- 'deleted_link' => 'Deleted link',
+ 'journal_link_configuration' => 'Transaction links configuration',
+ 'create_new_link_type' => 'Create new link type',
+ 'store_new_link_type' => 'Store new link type',
+ 'update_link_type' => 'Update link type',
+ 'edit_link_type' => 'Edit link type ":name"',
+ 'updated_link_type' => 'Updated link type ":name"',
+ 'delete_link_type' => 'Delete link type ":name"',
+ 'deleted_link_type' => 'Deleted link type ":name"',
+ 'stored_new_link_type' => 'Store new link type ":name"',
+ 'cannot_edit_link_type' => 'Cannot edit link type ":name"',
+ 'link_type_help_name' => 'Ie. "Duplicates"',
+ 'link_type_help_inward' => 'Ie. "duplicates"',
+ 'link_type_help_outward' => 'Ie. "is duplicated by"',
+ 'save_connections_by_moving' => 'Save the link between these transactions by moving them to another link type:',
+ 'do_not_save_connection' => '(do not save connection)',
+ 'link_transaction' => 'Link transaction',
+ 'link_to_other_transaction' => 'Link this transaction to another transaction',
+ 'select_transaction_to_link' => 'Select a transaction to link this transaction to. The links are currently unused in Firefly III (apart from being shown), but I plan to change this in the future. Use the search box to select a transaction either by title or by ID. If you want to add custom link types, check out the administration section.',
+ 'this_transaction' => 'This transaction',
+ 'transaction' => 'Transaction',
+ 'comments' => 'Comments',
+ 'link_notes' => 'Any notes you wish to store with the link.',
+ 'invalid_link_selection' => 'Cannot link these transactions',
+ 'selected_transaction' => 'Selected transaction',
+ 'journals_linked' => 'Transactions are linked.',
+ 'journals_error_linked' => 'These transactions are already linked.',
+ 'journals_link_to_self' => 'You cannot link a transaction to itself',
+ 'journal_links' => 'Transaction links',
+ 'this_withdrawal' => 'This withdrawal',
+ 'this_deposit' => 'This deposit',
+ 'this_transfer' => 'This transfer',
+ 'overview_for_link' => 'Overview for link type ":name"',
+ 'source_transaction' => 'Source transaction',
+ 'link_description' => 'Link description',
+ 'destination_transaction' => 'Destination transaction',
+ 'delete_journal_link' => 'Delete the link between <a href=":source_link">:source</a> and <a href=":destination_link">:destination</a>',
+ 'deleted_link' => 'Deleted link',
// link translations:
- 'Paid_name' => 'Paid',
- 'Refund_name' => 'Refund',
- 'Reimbursement_name' => 'Reimbursement',
- 'Related_name' => 'Related',
- 'relates to_inward' => 'relates to',
- 'is (partially) refunded by_inward' => 'is (partially) refunded by',
- 'is (partially) paid for by_inward' => 'is (partially) paid for by',
- 'is (partially) reimbursed by_inward' => 'is (partially) reimbursed by',
- 'inward_transaction' => 'Inward transaction',
- 'outward_transaction' => 'Outward transaction',
- 'relates to_outward' => 'relates to',
- '(partially) refunds_outward' => '(partially) refunds',
- '(partially) pays for_outward' => '(partially) pays for',
- '(partially) reimburses_outward' => '(partially) reimburses',
- 'is (partially) refunded by' => 'is (partially) refunded by',
- 'is (partially) paid for by' => 'is (partially) paid for by',
- 'is (partially) reimbursed by' => 'is (partially) reimbursed by',
- 'relates to' => 'relates to',
- '(partially) refunds' => '(partially) refunds',
- '(partially) pays for' => '(partially) pays for',
- '(partially) reimburses' => '(partially) reimburses',
+ 'Paid_name' => 'Paid',
+ 'Refund_name' => 'Refund',
+ 'Reimbursement_name' => 'Reimbursement',
+ 'Related_name' => 'Related',
+ 'relates to_inward' => 'relates to',
+ 'is (partially) refunded by_inward' => 'is (partially) refunded by',
+ 'is (partially) paid for by_inward' => 'is (partially) paid for by',
+ 'is (partially) reimbursed by_inward' => 'is (partially) reimbursed by',
+ 'inward_transaction' => 'Inward transaction',
+ 'outward_transaction' => 'Outward transaction',
+ 'relates to_outward' => 'relates to',
+ '(partially) refunds_outward' => '(partially) refunds',
+ '(partially) pays for_outward' => '(partially) pays for',
+ '(partially) reimburses_outward' => '(partially) reimburses',
+ 'is (partially) refunded by' => 'is (partially) refunded by',
+ 'is (partially) paid for by' => 'is (partially) paid for by',
+ 'is (partially) reimbursed by' => 'is (partially) reimbursed by',
+ 'relates to' => 'relates to',
+ '(partially) refunds' => '(partially) refunds',
+ '(partially) pays for' => '(partially) pays for',
+ '(partially) reimburses' => '(partially) reimburses',
// split a transaction:
- 'splits' => 'Splits',
- 'add_another_split' => 'Add another split',
- 'cannot_edit_opening_balance' => 'You cannot edit the opening balance of an account.',
- 'no_edit_multiple_left' => 'You have selected no valid transactions to edit.',
- 'breadcrumb_convert_group' => 'Convert transaction',
- 'convert_invalid_source' => 'Source information is invalid for transaction #%d.',
- 'convert_invalid_destination' => 'Destination information is invalid for transaction #%d.',
- 'create_another' => 'After storing, return here to create another one.',
- 'after_update_create_another' => 'After updating, return here to continue editing.',
- 'store_as_new' => 'Store as a new transaction instead of updating.',
- 'reset_after' => 'Reset form after submission',
- 'errors_submission' => 'There was something wrong with your submission. Please check out the errors below: %{errorMessage}',
- 'transaction_expand_split' => 'Expand split',
- 'transaction_collapse_split' => 'Collapse split',
+ 'splits' => 'Splits',
+ 'add_another_split' => 'Add another split',
+ 'cannot_edit_opening_balance' => 'You cannot edit the opening balance of an account.',
+ 'no_edit_multiple_left' => 'You have selected no valid transactions to edit.',
+ 'breadcrumb_convert_group' => 'Convert transaction',
+ 'convert_invalid_source' => 'Source information is invalid for transaction #%d.',
+ 'convert_invalid_destination' => 'Destination information is invalid for transaction #%d.',
+ 'create_another' => 'After storing, return here to create another one.',
+ 'after_update_create_another' => 'After updating, return here to continue editing.',
+ 'store_as_new' => 'Store as a new transaction instead of updating.',
+ 'reset_after' => 'Reset form after submission',
+ 'errors_submission' => 'There was something wrong with your submission. Please check out the errors below: %{errorMessage}',
+ 'transaction_expand_split' => 'Expand split',
+ 'transaction_collapse_split' => 'Collapse split',
// object groups
- 'default_group_title_name' => '(ungrouped)',
- 'default_group_title_name_plain' => 'ungrouped',
+ 'default_group_title_name' => '(ungrouped)',
+ 'default_group_title_name_plain' => 'ungrouped',
// empty lists? no objects? instructions:
- 'no_accounts_title_asset' => 'Let\'s create an asset account!',
- 'no_accounts_intro_asset' => 'You have no asset accounts yet. Asset accounts are your main accounts: your checking account, savings account, shared account or even your credit card.',
- 'no_accounts_imperative_asset' => 'To start using Firefly III you must create at least one asset account. Let\'s do so now:',
- 'no_accounts_create_asset' => 'Create an asset account',
- 'no_accounts_title_expense' => 'Let\'s create an expense account!',
- 'no_accounts_intro_expense' => 'You have no expense accounts yet. Expense accounts are the places where you spend money, such as shops and supermarkets.',
- 'no_accounts_imperative_expense' => 'Expense accounts are created automatically when you create transactions, but you can create one manually too, if you want. Let\'s create one now:',
- 'no_accounts_create_expense' => 'Create an expense account',
- 'no_accounts_title_revenue' => 'Let\'s create a revenue account!',
- 'no_accounts_intro_revenue' => 'You have no revenue accounts yet. Revenue accounts are the places where you receive money from, such as your employer.',
- 'no_accounts_imperative_revenue' => 'Revenue accounts are created automatically when you create transactions, but you can create one manually too, if you want. Let\'s create one now:',
- 'no_accounts_create_revenue' => 'Create a revenue account',
- 'no_accounts_title_liabilities' => 'Let\'s create a liability!',
- 'no_accounts_intro_liabilities' => 'You have no liabilities yet. Liabilities are the accounts that register your (student) loans and other debts.',
- 'no_accounts_imperative_liabilities' => 'You don\'t have to use this feature, but it can be useful if you want to keep track of these things.',
- 'no_accounts_create_liabilities' => 'Create a liability',
- 'no_budgets_title_default' => 'Let\'s create a budget',
- 'no_rules_title_default' => 'Let\'s create a rule',
- 'no_budgets_intro_default' => 'You have no budgets yet. Budgets are used to organize your expenses into logical groups, which you can give a soft-cap to limit your expenses.',
- 'no_rules_intro_default' => 'You have no rules yet. Rules are powerful automations that can handle transactions for you.',
- 'no_rules_imperative_default' => 'Rules can be very useful when you\'re managing transactions. Let\'s create one now:',
- 'no_budgets_imperative_default' => 'Budgets are the basic tools of financial management. Let\'s create one now:',
- 'no_budgets_create_default' => 'Create a budget',
- 'no_rules_create_default' => 'Create a rule',
- 'no_categories_title_default' => 'Let\'s create a category!',
- 'no_categories_intro_default' => 'You have no categories yet. Categories are used to fine tune your transactions and label them with their designated category.',
- 'no_categories_imperative_default' => 'Categories are created automatically when you create transactions, but you can create one manually too. Let\'s create one now:',
- 'no_categories_create_default' => 'Create a category',
- 'no_tags_title_default' => 'Let\'s create a tag!',
- 'no_tags_intro_default' => 'You have no tags yet. Tags are used to fine tune your transactions and label them with specific keywords.',
- 'no_tags_imperative_default' => 'Tags are created automatically when you create transactions, but you can create one manually too. Let\'s create one now:',
- 'no_tags_create_default' => 'Create a tag',
- 'no_transactions_title_withdrawal' => 'Let\'s create an expense!',
- 'no_transactions_intro_withdrawal' => 'You have no expenses yet. You should create expenses to start managing your finances.',
- 'no_transactions_imperative_withdrawal' => 'Have you spent some money? Then you should write it down:',
- 'no_transactions_create_withdrawal' => 'Create an expense',
- 'no_transactions_title_deposit' => 'Let\'s create some income!',
- 'no_transactions_intro_deposit' => 'You have no recorded income yet. You should create income entries to start managing your finances.',
- 'no_transactions_imperative_deposit' => 'Have you received some money? Then you should write it down:',
- 'no_transactions_create_deposit' => 'Create a deposit',
- 'no_transactions_title_transfers' => 'Let\'s create a transfer!',
- 'no_transactions_intro_transfers' => 'You have no transfers yet. When you move money between asset accounts, it is recorded as a transfer.',
- 'no_transactions_imperative_transfers' => 'Have you moved some money around? Then you should write it down:',
- 'no_transactions_create_transfers' => 'Create a transfer',
- 'no_piggies_title_default' => 'Let\'s create a piggy bank!',
- 'no_piggies_intro_default' => 'You have no piggy banks yet. You can create piggy banks to divide your savings and keep track of what you\'re saving up for.',
- 'no_piggies_imperative_default' => 'Do you have things you\'re saving money for? Create a piggy bank and keep track:',
- 'no_piggies_create_default' => 'Create a new piggy bank',
- 'no_bills_title_default' => 'Let\'s create a bill!',
- 'no_bills_intro_default' => 'You have no bills yet. You can create bills to keep track of regular expenses, like your rent or insurance.',
- 'no_bills_imperative_default' => 'Do you have such regular bills? Create a bill and keep track of your payments:',
- 'no_bills_create_default' => 'Create a bill',
+ 'no_accounts_title_asset' => 'Let\'s create an asset account!',
+ 'no_accounts_intro_asset' => 'You have no asset accounts yet. Asset accounts are your main accounts: your checking account, savings account, shared account or even your credit card.',
+ 'no_accounts_imperative_asset' => 'To start using Firefly III you must create at least one asset account. Let\'s do so now:',
+ 'no_accounts_create_asset' => 'Create an asset account',
+ 'no_accounts_title_expense' => 'Let\'s create an expense account!',
+ 'no_accounts_intro_expense' => 'You have no expense accounts yet. Expense accounts are the places where you spend money, such as shops and supermarkets.',
+ 'no_accounts_imperative_expense' => 'Expense accounts are created automatically when you create transactions, but you can create one manually too, if you want. Let\'s create one now:',
+ 'no_accounts_create_expense' => 'Create an expense account',
+ 'no_accounts_title_revenue' => 'Let\'s create a revenue account!',
+ 'no_accounts_intro_revenue' => 'You have no revenue accounts yet. Revenue accounts are the places where you receive money from, such as your employer.',
+ 'no_accounts_imperative_revenue' => 'Revenue accounts are created automatically when you create transactions, but you can create one manually too, if you want. Let\'s create one now:',
+ 'no_accounts_create_revenue' => 'Create a revenue account',
+ 'no_accounts_title_liabilities' => 'Let\'s create a liability!',
+ 'no_accounts_intro_liabilities' => 'You have no liabilities yet. Liabilities are the accounts that register your (student) loans and other debts.',
+ 'no_accounts_imperative_liabilities' => 'You don\'t have to use this feature, but it can be useful if you want to keep track of these things.',
+ 'no_accounts_create_liabilities' => 'Create a liability',
+ 'no_budgets_title_default' => 'Let\'s create a budget',
+ 'no_rules_title_default' => 'Let\'s create a rule',
+ 'no_budgets_intro_default' => 'You have no budgets yet. Budgets are used to organize your expenses into logical groups, which you can give a soft-cap to limit your expenses.',
+ 'no_rules_intro_default' => 'You have no rules yet. Rules are powerful automations that can handle transactions for you.',
+ 'no_rules_imperative_default' => 'Rules can be very useful when you\'re managing transactions. Let\'s create one now:',
+ 'no_budgets_imperative_default' => 'Budgets are the basic tools of financial management. Let\'s create one now:',
+ 'no_budgets_create_default' => 'Create a budget',
+ 'no_rules_create_default' => 'Create a rule',
+ 'no_categories_title_default' => 'Let\'s create a category!',
+ 'no_categories_intro_default' => 'You have no categories yet. Categories are used to fine tune your transactions and label them with their designated category.',
+ 'no_categories_imperative_default' => 'Categories are created automatically when you create transactions, but you can create one manually too. Let\'s create one now:',
+ 'no_categories_create_default' => 'Create a category',
+ 'no_tags_title_default' => 'Let\'s create a tag!',
+ 'no_tags_intro_default' => 'You have no tags yet. Tags are used to fine tune your transactions and label them with specific keywords.',
+ 'no_tags_imperative_default' => 'Tags are created automatically when you create transactions, but you can create one manually too. Let\'s create one now:',
+ 'no_tags_create_default' => 'Create a tag',
+ 'no_transactions_title_withdrawal' => 'Let\'s create an expense!',
+ 'no_transactions_intro_withdrawal' => 'You have no expenses yet. You should create expenses to start managing your finances.',
+ 'no_transactions_imperative_withdrawal' => 'Have you spent some money? Then you should write it down:',
+ 'no_transactions_create_withdrawal' => 'Create an expense',
+ 'no_transactions_title_deposit' => 'Let\'s create some income!',
+ 'no_transactions_intro_deposit' => 'You have no recorded income yet. You should create income entries to start managing your finances.',
+ 'no_transactions_imperative_deposit' => 'Have you received some money? Then you should write it down:',
+ 'no_transactions_create_deposit' => 'Create a deposit',
+ 'no_transactions_title_transfers' => 'Let\'s create a transfer!',
+ 'no_transactions_intro_transfers' => 'You have no transfers yet. When you move money between asset accounts, it is recorded as a transfer.',
+ 'no_transactions_imperative_transfers' => 'Have you moved some money around? Then you should write it down:',
+ 'no_transactions_create_transfers' => 'Create a transfer',
+ 'no_piggies_title_default' => 'Let\'s create a piggy bank!',
+ 'no_piggies_intro_default' => 'You have no piggy banks yet. You can create piggy banks to divide your savings and keep track of what you\'re saving up for.',
+ 'no_piggies_imperative_default' => 'Do you have things you\'re saving money for? Create a piggy bank and keep track:',
+ 'no_piggies_create_default' => 'Create a new piggy bank',
+ 'no_bills_title_default' => 'Let\'s create a bill!',
+ 'no_bills_intro_default' => 'You have no bills yet. You can create bills to keep track of regular expenses, like your rent or insurance.',
+ 'no_bills_imperative_default' => 'Do you have such regular bills? Create a bill and keep track of your payments:',
+ 'no_bills_create_default' => 'Create a bill',
// recurring transactions
- 'create_right_now' => 'Create right now',
- 'no_new_transaction_in_recurrence' => 'No new transaction was created. Perhaps it was already fired for this date?',
- 'recurrences' => 'Recurring transactions',
- 'repeat_until_in_past' => 'This recurring transaction stopped repeating on :date.',
- 'recurring_calendar_view' => 'Calendar',
- 'no_recurring_title_default' => 'Let\'s create a recurring transaction!',
- 'no_recurring_intro_default' => 'You have no recurring transactions yet. You can use these to make Firefly III automatically create transactions for you.',
- 'no_recurring_imperative_default' => 'This is a pretty advanced feature but it can be extremely useful. Make sure you read the documentation (?)-icon in the top right corner) before you continue.',
- 'no_recurring_create_default' => 'Create a recurring transaction',
- 'make_new_recurring' => 'Create a recurring transaction',
- 'recurring_daily' => 'Every day',
- 'recurring_weekly' => 'Every week on :weekday',
- 'recurring_weekly_skip' => 'Every :skip(st/nd/rd/th) week on :weekday',
- 'recurring_monthly' => 'Every month on the :dayOfMonth(st/nd/rd/th) day',
- 'recurring_monthly_skip' => 'Every :skip(st/nd/rd/th) month on the :dayOfMonth(st/nd/rd/th) day',
- 'recurring_ndom' => 'Every month on the :dayOfMonth(st/nd/rd/th) :weekday',
- 'recurring_yearly' => 'Every year on :date',
- 'overview_for_recurrence' => 'Overview for recurring transaction ":title"',
- 'warning_duplicates_repetitions' => 'In rare instances, dates appear twice in this list. This can happen when multiple repetitions collide. Firefly III will always generate one transaction per day.',
- 'created_transactions' => 'Related transactions',
- 'expected_withdrawals' => 'Expected withdrawals',
- 'expected_deposits' => 'Expected deposits',
- 'expected_transfers' => 'Expected transfers',
- 'created_withdrawals' => 'Created withdrawals',
- 'created_deposits' => 'Created deposits',
- 'created_transfers' => 'Created transfers',
- 'recurring_info' => 'Recurring transaction :count / :total',
- 'created_from_recurrence' => 'Created from recurring transaction ":title" (#:id)',
- 'recurring_never_cron' => 'It seems the cron job that is necessary to support recurring transactions has never run. This is of course normal when you have just installed Firefly III, but this should be something to set up as soon as possible. Please check out the help-pages using the (?)-icon in the top right corner of the page.',
- 'recurring_cron_long_ago' => 'It looks like it has been more than 36 hours since the cron job to support recurring transactions has fired for the last time. Are you sure it has been set up correctly? Please check out the help-pages using the (?)-icon in the top right corner of the page.',
-
- 'create_new_recurrence' => 'Create new recurring transaction',
- 'help_first_date' => 'Indicate the first expected recurrence. This must be in the future.',
- 'help_first_date_no_past' => 'Indicate the first expected recurrence. Firefly III will not create transactions in the past.',
- 'no_currency' => '(no currency)',
- 'mandatory_for_recurring' => 'Mandatory recurrence information',
- 'mandatory_for_transaction' => 'Mandatory transaction information',
- 'optional_for_recurring' => 'Optional recurrence information',
- 'optional_for_transaction' => 'Optional transaction information',
- 'change_date_other_options' => 'Change the "first date" to see more options.',
- 'mandatory_fields_for_tranaction' => 'The values here will end up in the transaction(s) being created',
- 'click_for_calendar' => 'Click here for a calendar that shows you when the transaction would repeat.',
- 'repeat_forever' => 'Repeat forever',
- 'repeat_until_date' => 'Repeat until date',
- 'repeat_times' => 'Repeat a number of times',
- 'recurring_skips_one' => 'Every other',
- 'recurring_skips_more' => 'Skips :count occurrences',
- 'store_new_recurrence' => 'Store recurring transaction',
- 'stored_new_recurrence' => 'Recurring transaction ":title" stored successfully.',
- 'edit_recurrence' => 'Edit recurring transaction ":title"',
- 'recurring_repeats_until' => 'Repeats until :date',
- 'recurring_repeats_forever' => 'Repeats forever',
- 'recurring_repeats_x_times' => 'Repeats :count time|Repeats :count times',
- 'update_recurrence' => 'Update recurring transaction',
- 'updated_recurrence' => 'Updated recurring transaction ":title"',
- 'recurrence_is_inactive' => 'This recurring transaction is not active and will not generate new transactions.',
- 'delete_recurring' => 'Delete recurring transaction ":title"',
- 'new_recurring_transaction' => 'New recurring transaction',
- 'help_weekend' => 'What should Firefly III do when the recurring transaction falls on a Saturday or Sunday?',
- 'do_nothing' => 'Just create the transaction',
- 'skip_transaction' => 'Skip the occurrence',
- 'jump_to_friday' => 'Create the transaction on the previous Friday instead',
- 'jump_to_monday' => 'Create the transaction on the next Monday instead',
- 'will_jump_friday' => 'Will be created on Friday instead of the weekends.',
- 'will_jump_monday' => 'Will be created on Monday instead of the weekends.',
- 'except_weekends' => 'Except weekends',
- 'recurrence_deleted' => 'Recurring transaction ":title" deleted',
+ 'create_right_now' => 'Create right now',
+ 'no_new_transaction_in_recurrence' => 'No new transaction was created. Perhaps it was already fired for this date?',
+ 'recurrences' => 'Recurring transactions',
+ 'repeat_until_in_past' => 'This recurring transaction stopped repeating on :date.',
+ 'recurring_calendar_view' => 'Calendar',
+ 'no_recurring_title_default' => 'Let\'s create a recurring transaction!',
+ 'no_recurring_intro_default' => 'You have no recurring transactions yet. You can use these to make Firefly III automatically create transactions for you.',
+ 'no_recurring_imperative_default' => 'This is a pretty advanced feature but it can be extremely useful. Make sure you read the documentation (?)-icon in the top right corner) before you continue.',
+ 'no_recurring_create_default' => 'Create a recurring transaction',
+ 'make_new_recurring' => 'Create a recurring transaction',
+ 'recurring_daily' => 'Every day',
+ 'recurring_weekly' => 'Every week on :weekday',
+ 'recurring_weekly_skip' => 'Every :skip(st/nd/rd/th) week on :weekday',
+ 'recurring_monthly' => 'Every month on the :dayOfMonth(st/nd/rd/th) day',
+ 'recurring_monthly_skip' => 'Every :skip(st/nd/rd/th) month on the :dayOfMonth(st/nd/rd/th) day',
+ 'recurring_ndom' => 'Every month on the :dayOfMonth(st/nd/rd/th) :weekday',
+ 'recurring_yearly' => 'Every year on :date',
+ 'overview_for_recurrence' => 'Overview for recurring transaction ":title"',
+ 'warning_duplicates_repetitions' => 'In rare instances, dates appear twice in this list. This can happen when multiple repetitions collide. Firefly III will always generate one transaction per day.',
+ 'created_transactions' => 'Related transactions',
+ 'expected_withdrawals' => 'Expected withdrawals',
+ 'expected_deposits' => 'Expected deposits',
+ 'expected_transfers' => 'Expected transfers',
+ 'created_withdrawals' => 'Created withdrawals',
+ 'created_deposits' => 'Created deposits',
+ 'created_transfers' => 'Created transfers',
+ 'recurring_info' => 'Recurring transaction :count / :total',
+ 'created_from_recurrence' => 'Created from recurring transaction ":title" (#:id)',
+ 'recurring_never_cron' => 'It seems the cron job that is necessary to support recurring transactions has never run. This is of course normal when you have just installed Firefly III, but this should be something to set up as soon as possible. Please check out the help-pages using the (?)-icon in the top right corner of the page.',
+ 'recurring_cron_long_ago' => 'It looks like it has been more than 36 hours since the cron job to support recurring transactions has fired for the last time. Are you sure it has been set up correctly? Please check out the help-pages using the (?)-icon in the top right corner of the page.',
+
+ 'create_new_recurrence' => 'Create new recurring transaction',
+ 'help_first_date' => 'Indicate the first expected recurrence. This must be in the future.',
+ 'help_first_date_no_past' => 'Indicate the first expected recurrence. Firefly III will not create transactions in the past.',
+ 'no_currency' => '(no currency)',
+ 'mandatory_for_recurring' => 'Mandatory recurrence information',
+ 'mandatory_for_transaction' => 'Mandatory transaction information',
+ 'optional_for_recurring' => 'Optional recurrence information',
+ 'optional_for_transaction' => 'Optional transaction information',
+ 'change_date_other_options' => 'Change the "first date" to see more options.',
+ 'mandatory_fields_for_tranaction' => 'The values here will end up in the transaction(s) being created',
+ 'click_for_calendar' => 'Click here for a calendar that shows you when the transaction would repeat.',
+ 'repeat_forever' => 'Repeat forever',
+ 'repeat_until_date' => 'Repeat until date',
+ 'repeat_times' => 'Repeat a number of times',
+ 'recurring_skips_one' => 'Every other',
+ 'recurring_skips_more' => 'Skips :count occurrences',
+ 'store_new_recurrence' => 'Store recurring transaction',
+ 'stored_new_recurrence' => 'Recurring transaction ":title" stored successfully.',
+ 'edit_recurrence' => 'Edit recurring transaction ":title"',
+ 'recurring_repeats_until' => 'Repeats until :date',
+ 'recurring_repeats_forever' => 'Repeats forever',
+ 'recurring_repeats_x_times' => 'Repeats :count time|Repeats :count times',
+ 'update_recurrence' => 'Update recurring transaction',
+ 'updated_recurrence' => 'Updated recurring transaction ":title"',
+ 'recurrence_is_inactive' => 'This recurring transaction is not active and will not generate new transactions.',
+ 'delete_recurring' => 'Delete recurring transaction ":title"',
+ 'new_recurring_transaction' => 'New recurring transaction',
+ 'help_weekend' => 'What should Firefly III do when the recurring transaction falls on a Saturday or Sunday?',
+ 'do_nothing' => 'Just create the transaction',
+ 'skip_transaction' => 'Skip the occurrence',
+ 'jump_to_friday' => 'Create the transaction on the previous Friday instead',
+ 'jump_to_monday' => 'Create the transaction on the next Monday instead',
+ 'will_jump_friday' => 'Will be created on Friday instead of the weekends.',
+ 'will_jump_monday' => 'Will be created on Monday instead of the weekends.',
+ 'except_weekends' => 'Except weekends',
+ 'recurrence_deleted' => 'Recurring transaction ":title" deleted',
// Ignore this comment
// new lines for summary controller.
- 'box_balance_in_currency' => 'Balance (:currency)',
- 'box_spent_in_currency' => 'Spent (:currency)',
- 'box_earned_in_currency' => 'Earned (:currency)',
- 'box_budgeted_in_currency' => 'Budgeted (:currency)',
- 'box_bill_paid_in_currency' => 'Bills paid (:currency)',
- 'box_bill_unpaid_in_currency' => 'Bills unpaid (:currency)',
- 'box_left_to_spend_in_currency' => 'Left to spend (:currency)',
- 'box_net_worth_in_currency' => 'Net worth (:currency)',
- 'box_spend_per_day' => 'Left to spend per day: :amount',
+ 'box_balance_in_currency' => 'Balance (:currency)',
+ 'box_spent_in_currency' => 'Spent (:currency)',
+ 'box_earned_in_currency' => 'Earned (:currency)',
+ 'box_budgeted_in_currency' => 'Budgeted (:currency)',
+ 'box_bill_paid_in_currency' => 'Bills paid (:currency)',
+ 'box_bill_unpaid_in_currency' => 'Bills unpaid (:currency)',
+ 'box_left_to_spend_in_currency' => 'Left to spend (:currency)',
+ 'box_net_worth_in_currency' => 'Net worth (:currency)',
+ 'box_spend_per_day' => 'Left to spend per day: :amount',
// debug page
- 'debug_page' => 'Debug page',
- 'debug_submit_instructions' => 'If you are running into problems, you can use the information in this box as debug information. Please copy-and-paste into a new or existing <a href="https://github.com/firefly-iii/firefly-iii/issues">GitHub issue</a>. It will generate a beautiful table that can be used to quickly diagnose your problem.',
- 'debug_pretty_table' => 'If you copy/paste the box below into a GitHub issue it will generate a table. Please do not surround this text with backticks or quotes.',
- 'debug_additional_data' => 'You may also share the content of the box below. You can also copy-and-paste this into a new or existing <a href="https://github.com/firefly-iii/firefly-iii/issues">GitHub issue</a>. However, the content of this box may contain private information such as account names, transaction details or email addresses.',
+ 'debug_page' => 'Debug page',
+ 'debug_submit_instructions' => 'If you are running into problems, you can use the information in this box as debug information. Please copy-and-paste into a new or existing <a href="https://github.com/firefly-iii/firefly-iii/issues">GitHub issue</a>. It will generate a beautiful table that can be used to quickly diagnose your problem.',
+ 'debug_pretty_table' => 'If you copy/paste the box below into a GitHub issue it will generate a table. Please do not surround this text with backticks or quotes.',
+ 'debug_additional_data' => 'You may also share the content of the box below. You can also copy-and-paste this into a new or existing <a href="https://github.com/firefly-iii/firefly-iii/issues">GitHub issue</a>. However, the content of this box may contain private information such as account names, transaction details or email addresses.',
// object groups
- 'object_groups_menu_bar' => 'Groups',
- 'object_groups_page_title' => 'Groups',
- 'object_groups_breadcrumb' => 'Groups',
- 'object_groups_index' => 'Overview',
- 'object_groups' => 'Groups',
- 'object_groups_empty_explain' => 'Some things in Firefly III can be divided into groups. Piggy banks for example, feature a "Group" field in the edit and create screens. When you set this field, you can edit the names and the order of the groups on this page. For more information, check out the help-pages in the top right corner, under the (?)-icon.',
- 'object_group_title' => 'Title',
- 'edit_object_group' => 'Edit group ":title"',
- 'delete_object_group' => 'Delete group ":title"',
- 'update_object_group' => 'Update group',
- 'updated_object_group' => 'Successfully updated group ":title"',
- 'deleted_object_group' => 'Successfully deleted group ":title"',
- 'object_group' => 'Group',
+ 'object_groups_menu_bar' => 'Groups',
+ 'object_groups_page_title' => 'Groups',
+ 'object_groups_breadcrumb' => 'Groups',
+ 'object_groups_index' => 'Overview',
+ 'object_groups' => 'Groups',
+ 'object_groups_empty_explain' => 'Some things in Firefly III can be divided into groups. Piggy banks for example, feature a "Group" field in the edit and create screens. When you set this field, you can edit the names and the order of the groups on this page. For more information, check out the help-pages in the top right corner, under the (?)-icon.',
+ 'object_group_title' => 'Title',
+ 'edit_object_group' => 'Edit group ":title"',
+ 'delete_object_group' => 'Delete group ":title"',
+ 'update_object_group' => 'Update group',
+ 'updated_object_group' => 'Successfully updated group ":title"',
+ 'deleted_object_group' => 'Successfully deleted group ":title"',
+ 'object_group' => 'Group',
// other stuff
- 'placeholder' => '[Placeholder]',
+ 'placeholder' => '[Placeholder]',
// audit log entries
- 'audit_log_entries' => 'Audit log entries',
- 'ale_action_log_add' => 'Added :amount to piggy bank ":name"',
- 'ale_action_log_remove' => 'Removed :amount from piggy bank ":name"',
- 'ale_action_clear_budget' => 'Removed from budget',
- 'ale_action_update_group_title' => 'Updated transaction group title',
- 'ale_action_update_date' => 'Updated transaction date',
- 'ale_action_update_order' => 'Updated transaction order',
- 'ale_action_clear_category' => 'Removed from category',
- 'ale_action_clear_notes' => 'Removed notes',
- 'ale_action_clear_tag' => 'Cleared tag',
- 'ale_action_clear_all_tags' => 'Cleared all tags',
- 'ale_action_set_bill' => 'Linked to bill',
- 'ale_action_switch_accounts' => 'Switched source and destination account',
- 'ale_action_set_budget' => 'Set budget',
- 'ale_action_set_category' => 'Set category',
- 'ale_action_set_source' => 'Set source account',
- 'ale_action_set_destination' => 'Set destination account',
- 'ale_action_update_transaction_type' => 'Changed transaction type',
- 'ale_action_update_notes' => 'Changed notes',
- 'ale_action_update_description' => 'Changed description',
- 'ale_action_add_to_piggy' => 'Piggy bank',
- 'ale_action_remove_from_piggy' => 'Piggy bank',
- 'ale_action_add_tag' => 'Added tag',
+ 'audit_log_entries' => 'Audit log entries',
+ 'ale_action_log_add' => 'Added :amount to piggy bank ":name"',
+ 'ale_action_log_remove' => 'Removed :amount from piggy bank ":name"',
+ 'ale_action_clear_budget' => 'Removed from budget',
+ 'ale_action_update_group_title' => 'Updated transaction group title',
+ 'ale_action_update_date' => 'Updated transaction date',
+ 'ale_action_update_order' => 'Updated transaction order',
+ 'ale_action_clear_category' => 'Removed from category',
+ 'ale_action_clear_notes' => 'Removed notes',
+ 'ale_action_clear_tag' => 'Cleared tag',
+ 'ale_action_clear_all_tags' => 'Cleared all tags',
+ 'ale_action_set_bill' => 'Linked to bill',
+ 'ale_action_switch_accounts' => 'Switched source and destination account',
+ 'ale_action_set_budget' => 'Set budget',
+ 'ale_action_set_category' => 'Set category',
+ 'ale_action_set_source' => 'Set source account',
+ 'ale_action_set_destination' => 'Set destination account',
+ 'ale_action_update_transaction_type' => 'Changed transaction type',
+ 'ale_action_update_notes' => 'Changed notes',
+ 'ale_action_update_description' => 'Changed description',
+ 'ale_action_add_to_piggy' => 'Piggy bank',
+ 'ale_action_remove_from_piggy' => 'Piggy bank',
+ 'ale_action_add_tag' => 'Added tag',
// dashboard
- 'enable_auto_convert' => 'Enable currency conversion',
- 'disable_auto_convert' => 'Disable currency conversion',
+ 'enable_auto_convert' => 'Enable currency conversion',
+ 'disable_auto_convert' => 'Disable currency conversion',
];
// Ignore this comment
diff --git a/resources/views/v2/partials/form/transaction/location.blade.php b/resources/views/v2/partials/form/transaction/location.blade.php
index a3d4326027..6d76fd516a 100644
--- a/resources/views/v2/partials/form/transaction/location.blade.php
+++ b/resources/views/v2/partials/form/transaction/location.blade.php
@@ -1,15 +1,21 @@
@if(true === $optionalFields['location'])
-<div class="row mb-3">
- <label :for="'map_' + index" class="col-sm-1 col-form-label d-none d-sm-block">
- <em title="{{ __('firefly.location') }}" class="fa-solid fa-earth-europe"></em>
- </label>
- <div class="col-sm-10">
- <div
- data-latitude="{{ $latitude }}"
- data-longitude="{{ $longitude }}"
- data-zoom-level="{{ $zoomLevel }}"
- :id="'location_map_' + index" style="height:300px;" :data-index="index"></div>
- <span class="muted small">
+ <div class="row mb-3">
+ <label :for="'map_' + index" class="col-sm-1 col-form-label d-none d-sm-block">
+ <em title="{{ __('firefly.location') }}" class="fa-solid fa-earth-europe"></em>
+ </label>
+ <template x-if="index > 0">
+ <div class="col-sm-10">
+ <label class="custom-control-label small">{{ __('firefly.location_first_split') }}</label>
+ </div>
+ </template>
+ <template x-if="0 === index">
+ <div class="col-sm-10">
+ <div
+ data-latitude="{{ $latitude }}"
+ data-longitude="{{ $longitude }}"
+ data-zoom-level="{{ $zoomLevel }}"
+ id="location_map" style="height:300px;" :data-index="index"></div>
+ <span class="muted small">
<template x-if="!transaction.hasLocation">
<span>{{ __('firefly.click_tap_location') }}</span>
</template>
@@ -17,6 +23,7 @@
<a :data-index="index" href="#" @click="clearLocation">{{ __('firefly.clear_location') }}</a>
</template>
</span>
+ </div>
+ </template>
</div>
-</div>
@endif