@panomc/widget-host 1.0.0-dev.63 → 1.0.0-dev.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/runtime/chunks/{chunk-Xd_2KAhC.js → chunk-B5CK1uiS.js} +1 -1
- package/dist/runtime/chunks/chunk-BfcUislW.js +1 -0
- package/dist/runtime/chunks/chunk-Bkf3iLx0.js +1 -0
- package/dist/runtime/chunks/chunk-BwMumrfI.js +1 -0
- package/dist/runtime/chunks/chunk-C8W1Nv_i.js +1 -0
- package/dist/runtime/chunks/chunk-DDDEBZES.js +1 -0
- package/dist/runtime/chunks/{chunk-CqpY4RsZ.js → chunk-DE7YsbjM.js} +1 -1
- package/dist/runtime/chunks/chunk-DLMzDTGN.js +1 -0
- package/dist/runtime/chunks/chunk-DQhQpYBr.js +1 -0
- package/dist/runtime/chunks/{chunk-BQPllGmY.js → chunk-DptTvy3T.js} +1 -1
- package/dist/runtime/chunks/chunk-dcWYlI_G.js +1 -0
- package/dist/runtime/chunks/chunk-s84dpggu.js +1 -0
- package/dist/runtime/chunks/{chunk-DebScgYV.js → chunk-uTSPLXJn.js} +1 -1
- package/dist/runtime/host/components-panel.js +1 -1
- package/dist/runtime/host/components-theme.js +1 -1
- package/dist/runtime/host/controllers.js +1 -1
- package/dist/runtime/host/index.js +1 -1
- package/dist/runtime/host/internal.js +1 -1
- package/dist/runtime/host/svelte.js +1 -1
- package/dist/runtime/host/utils-language.js +1 -1
- package/dist/runtime/runtime.json +15 -14
- package/dist/runtime/svelte/attachments.js +1 -1
- package/dist/runtime/svelte/events.js +1 -1
- package/dist/runtime/svelte/index.js +1 -1
- package/dist/runtime/svelte/internal-client.js +1 -1
- package/dist/runtime/svelte/legacy.js +1 -1
- package/dist/runtime/svelte/motion.js +1 -1
- package/dist/runtime/svelte/reactivity-window.js +1 -1
- package/dist/runtime/svelte/reactivity.js +1 -1
- package/dist/runtime/svelte/store.js +1 -1
- package/dist/runtime/svelte/transition.js +1 -1
- package/dist/runtime/svelte-i18n.js +1 -1
- package/dist/widget-runtime.zip +0 -0
- package/package.json +10 -10
- package/src/controllers.js +1 -1
- package/src/svelte.js +3 -3
- package/dist/runtime/chunks/chunk-9EZydhXt.js +0 -1
- package/dist/runtime/chunks/chunk-CTgT5UYL.js +0 -1
- package/dist/runtime/chunks/chunk-ChRkfjHR.js +0 -1
- package/dist/runtime/chunks/chunk-DgPYxg7o.js +0 -1
- package/dist/runtime/chunks/chunk-FEL6LDrJ.js +0 -1
- package/dist/runtime/chunks/chunk-RPo0Hd8r.js +0 -1
- package/dist/runtime/chunks/chunk-akOtSLvV.js +0 -1
- package/dist/runtime/chunks/chunk-cUxFvg6m.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export{createAttachmentKey as attachment}from"./attachments.js";import{R as _,bz as $,bQ as T,bR as N,d as L,u as O,e as M,bC as R,bN as W,bS as P,bT as V,G as H,bU as Y,bV as I,bW as J,m as K,aQ as Q,C as U,aV as X,a$ as Z,bX as ee,bY as te,bZ as ne,b_ as ae,a as re,an as se,ao as oe,g as ie,ah as ce,b$ as le,h as ue,y as fe,s as de,ad as ve,O as pe,c0 as he,c1 as me,I as be,b2 as ge,c2 as _e,c3 as ye,c4 as we,c5 as ke,r as xe,v as $e,aC as Ce,o as je,bt as Ee,aW as Se,c6 as Te,c7 as Ne,c8 as Le,au as Ae,K as Oe,aA as Me,ai as Be,ay as Re,c9 as ze,ca as De,V as qe,b3 as We,cb as Fe,q as Pe,b8 as Ve,cc as Ge,aH as He,bl as Ye,bM as Ie,n as Je,cd as Ke,ce as Qe,cf as Ue,cg as Xe,t as Ze,N as et,D as tt,ag as nt,z as at,ch as rt,ci as st,cj as ot,aO as it,a8 as lt,ck as ut,bp as ft,a0 as dt,bs as vt,br as pt,cl as ht,b1 as mt,T as bt,cm as gt,cn as _t,bL as yt,co as wt,aq as kt,bD as xt,cp as $t,cq as Ct}from"../chunks/chunk-9EZydhXt.js";export{cr as aborted,cs as add_svelte_meta,ct as async_derived,bB as autofocus,a7 as child,cu as deep_read,cv as deferred_template_effect,a5 as derived,bc as derived_safe_equal,cw as document,cx as eager,i as effect_root,cy as exclude_from_object,cz as fallback,a2 as first_child,cA as for_await_track_reactivity_loss,cB as hydrate_template,cC as invalid_default_snippet,cD as invalidate_inner_signals,cE as invalidate_store,aD as invoke_error_boundary,cF as legacy_pre_effect,cG as legacy_pre_effect_reset,cH as mark_store_binding,cI as mutate,aB as next,a3 as pop,bG as proxy,a4 as push,cJ as remove_textarea_child,cK as run,cL as safe_get,cM as save,a1 as setup_stores,a9 as sibling,aa as state,a6 as store_get,cN as store_mutate,cO as store_set,cP as store_unsub,p as template_effect,cQ as to_array,cR as track_reactivity_loss,bH as update,cS as update_pre,cT as update_pre_store,cU as update_store,cV as wait,cW as window}from"../chunks/chunk-9EZydhXt.js";import{k as jt,l as Et,o as St,a as Tt,p as Nt,q as Lt}from"../chunks/chunk-CTgT5UYL.js";export{b as append,r as boundary,d as comment,f as from_html,v as from_mathml,w as from_svg,x as from_tree,y as once,z as pending,A as preventDefault,B as props_id,C as self,s as set_text,D as stopImmediatePropagation,E as stopPropagation,t as text,F as trusted,G as with_script}from"../chunks/chunk-CTgT5UYL.js";import{B as At}from"../chunks/chunk-akOtSLvV.js";export{p as prevent_snippet_stringification,s as snippet,v as validate_dynamic_element_tag,a as validate_store,b as validate_void_dynamic_element,w as wrap_snippet}from"../chunks/chunk-akOtSLvV.js";import{b as Ot}from"../chunks/chunk-DgPYxg7o.js";export{C as CLASS,S as STYLE,d as attr,f as attribute_effect,g as bind_select_value,c as clsx,e as each,i as if,h as index,j as init_select,l as legacy_rest_props,p as prop,r as remove_input_defaults,k as rest_props,m as select_option,s as set_attribute,n as set_checked,a as set_class,o as set_custom_element_data,q as set_default_checked,t as set_default_value,u as set_selected,v as set_style,w as set_value,x as set_xlink_attribute,y as spread_props,z as update_pre_prop,A as update_prop}from"../chunks/chunk-DgPYxg7o.js";export{h as html}from"../chunks/chunk-FEL6LDrJ.js";import{l as Mt}from"../chunks/chunk-DhgH0pN2.js";export{r as raf}from"../chunks/chunk-DhgH0pN2.js";export{e as apply,d as delegate,a as delegated,f as event,g as replay_events}from"../chunks/chunk-cUxFvg6m.js";import{c as Bt}from"../chunks/chunk-DNUkGPCL.js";export{c as create_custom_element}from"../chunks/chunk-Xd_2KAhC.js";const Rt=[];function zt(e,t=!1,n=!1){return Dt(e,new Map,"",Rt,null,n)}function Dt(e,t,n,a,r=null,s=!1){if("object"==typeof e&&null!==e){var o=t.get(e);if(void 0!==o)return o;if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);if(_(e)){var i=Array(e.length);t.set(e,i),null!==r&&t.set(r,i);for(var c=0;c<e.length;c+=1){var l=e[c];c in e&&(i[c]=Dt(l,t,n,a,null,s))}return i}if($(e)===T){for(var u of(i={},t.set(e,i),null!==r&&t.set(r,i),Object.keys(e)))i[u]=Dt(e[u],t,n,a,null,s);return i}if(e instanceof Date)return structuredClone(e);if("function"==typeof e.toJSON&&!s)return Dt(e.toJSON(),t,n,a,e)}if(e instanceof EventTarget)return e;try{return structuredClone(e)}catch(t){return e}}let qt=null;function Wt(e,t){const n=e.v;if(n===R)return;const a=function(e){return 0!==(e.f&(P|V))?"$derived":e.label?.startsWith("$")?"store":"$state"}(e),r=L,s=e.wv>r.wv||0===r.wv,o=s?"color: CornflowerBlue; font-weight: bold":"color: grey; font-weight: normal";if(console.groupCollapsed(e.label?`%c${a}%c ${e.label}`:`%c${a}%c`,o,s?"font-weight: normal":o,"object"==typeof n&&null!==n&&W in n?zt(n,!0):n),"$derived"===a){const t=new Set(e.deps);for(const e of t)Wt(e)}if(e.created&&console.log(e.created),s&&e.updated)for(const t of e.updated.values())t.error&&console.log(t.error);if(t)for(var i of t.traces)console.log(i);console.groupEnd()}function Ft(e,t){var n=qt;try{qt={entries:new Map,reaction:L};var a=performance.now(),r=t(),s=(performance.now()-a).toFixed(2),o=O(e);if(M())if(0===qt.entries.size)console.log(`${o} %cno reactive dependencies (${s}ms)`,"color: grey");else{console.group(`${o} %c(${s}ms)`,"color: grey");var i=qt.entries;O(()=>{for(const[e,t]of i)Wt(e,t)}),qt=null,console.groupEnd()}else console.log(`${o} %cran outside of an effect (${s}ms)`,"color: grey");return r}finally{qt=n}}function Pt(e,t){return e.label=t,Vt(e.v,t),e}function Vt(e,t){return e?.[N]?.(t),e}function Gt(e){const t=new Error,n=function(){const e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;const t=(new Error).stack;if(Error.stackTraceLimit=e,!t)return[];const n=t.split("\n"),a=[];for(let e=0;e<n.length;e++){const t=n[e],r=t.replaceAll("\\","/");if("Error"!==t.trim()){if(t.includes("validate_each_keys"))return[];r.includes("svelte/src/internal")||r.includes("node_modules/.vite")||a.push(t)}}return a}();return 0===n.length?null:(n.unshift("\n"),H(t,"stack",{value:n.join("\n")}),H(t,"name",{value:e}),t)}function Ht(e,t,n=!0){try{e===t!=(Y(e)===Y(t))&&I(n?"===":"!==")}catch{}return e===t===n}function Yt(e,t,n=!0){return e==t!=(Y(e)==Y(t))&&I(),e==t===n}function It(e,t,n,a){return e!==t&&"object"==typeof t&&W in t&&J(n,jt(a)),e}function Jt(e,t,n,a,r){return It("="===n?e[t]=a:"&&="===n?e[t]&&=a():"||="===n?e[t]||=a():"??="===n?e[t]??=a():null,O(()=>e[t]),t,r)}async function Kt(e,t,n,a,r){return It("="===n?e[t]=await a:"&&="===n?e[t]&&=await a():"||="===n?e[t]||=await a():"??="===n?e[t]??=await a():null,O(()=>e[t]),t,r)}var Qt=new Map;function Ut(e){var t=Qt.get(e);if(t){for(const e of t)e.remove();Qt.delete(e)}}function Xt(e,t,n){return(...a)=>{const r=e(...a);return en(K?r:r.nodeType===Q?r.firstChild:r,t,n),r}}function Zt(e,t,n){e.__svelte_meta={parent:te,loc:{file:t,line:n[0],column:n[1]}},n[2]&&en(e.firstChild,t,n[2])}function en(e,t,n){for(var a=0,r=0;e&&a<n.length;){if(K&&e.nodeType===U){var s=e;s.data[0]===X?r+=1:s.data[0]===Z&&(r-=1)}0===r&&e.nodeType===ee&&Zt(e,t,n[a++]),e=e.nextSibling}}function tn(e){const t=de(e);function n(e,n){let a,r={},s={},o=!1,i=e;return se(()=>{if(r!==(r=ie(t))){if(a){for(var e in s)delete s[e];ve(a)}a=ce(()=>{i=i[le]??i,o&&Et(!1);var e=new.target?new r(i,n):r(i,n);e&&Object.defineProperties(s,Object.getOwnPropertyDescriptors(e)),o&&Et(!0)}),ue.nodes=a.nodes}},oe),o=!0,K&&(i=fe),s}return n[ne]=e[ne],n[ae]={fn:e,current:t,update:e=>{re(n[ae].current,e[ae].fn),e[ae].current=n[ae].current}},n}function nn(e){const t=pe?.function,n=pe?.p?.function;return{mutation:(a,r,s,o,i)=>{const c=r[0];if(an(e,c)||!n)return s;let l=e;for(let e=0;e<r.length-1;e++)if(l=l[r[e]],!l?.[W])return s;const u=jt(`${t[ne]}:${o}:${i}`);return me(c,u,a,n[ne]),s},binding:(a,r,s)=>{!an(e,a)&&n&&s()?.[W]&&he(t[ne],a,r[ne],n[ne])}}}function an(e,t){const n=W in e||ge in e;return!!be(e,t)?.set||n&&t in e||!(t in e)}function rn(e){e&&_e(e[ne]??"a component",e.name)}function sn(){const e=pe?.function;function t(t){ye(t,e[ne])}return{$destroy:()=>t("$destroy()"),$on:()=>t("$on(...)"),$set:()=>t("$set(...)")}}function on(e,t,n=!1){we();let a=!0,r=R;ke(()=>{r=R;try{var s=e()}catch(e){return void(r=e)}var o=zt(s,!0,!0);O(()=>{if(n){if(t(...o),!a){const e=Gt("$inspect(...)");e&&(console.groupCollapsed("stack trace"),console.log(e),console.groupEnd())}}else t(a?"init":"update",...o)}),a=!1}),xe(()=>{try{e()}catch{}r!==R&&(console.error(r),r=R)})}function cn(e,t=[],n=[],a){var r=K,s=null;if(r&&($e(),s=Ce(!1)),0===n.length&&t.every(e=>e.settled))return a(e),void(r&&je(s));if(r){var o=fe;je(s)}Ee(t,[],n,t=>{r&&(Se(!0),je(o));try{for(const e of t)ie(e);a(e,...t)}finally{r&&Se(!1)}})}function ln(e,...t){"object"==typeof e&&e instanceof Node||Te();for(let e of t)"function"!=typeof e&&Te()}function un(e,t,n,a,r){K&&$e();var s=Ne(),o=R,i=s?de(o):We(o,!1,!1),c=s?de(o):We(o,!1,!1),l=new At(e);se(()=>{var s=Be,o=t(),u=!1;let f=K&&Le(o)===(e.data===Ae);if(f&&(je(Ce()),Se(!1)),Le(o)){var d=Fe(),v=!1;const e=e=>{if(!u){v=!0,d(!1),Be===s&&s.deactivate(),Re.ensure();try{e()}finally{ze(!1),De||qe()}}};o.then(t=>{e(()=>{Me(i,t),l.ensure(1,a&&(e=>a(e,i)))})},t=>{e(()=>{if(Me(c,t),l.ensure(2,r&&(e=>r(e,c))),!r)throw c.v})}),K?l.ensure(0,n):Oe(()=>{v||e(()=>{l.ensure(0,n)})})}else Me(i,o),l.ensure(1,a&&(e=>a(e,i)));return f&&Se(!0),()=>{u=!0}})}const fn=Symbol("NaN");function dn(e,t,n){K&&$e();var a=new At(e),r=!Ne();se(()=>{var e=t();e!=e&&(e=fn),r&&null!==e&&"object"==typeof e&&(e={}),a.ensure(e,n)})}function vn(e,t){K&&je(Pe(e)),xe(()=>{var n=t();for(var a in n){var r=n[a];r?e.style.setProperty(a,r):e.style.removeProperty(a)}})}function pn(e,t,n,a,r){K&&$e();var s=t.$$slots?.[n],o=!1;!0===s&&(s=t["default"===n?"children":n],o=!0),void 0===s?null!==r&&r(e):s(e,o?()=>a:a)}function hn(e){const t={};e.children&&(t.default=!0);for(const n in e.$$slots)t[n]=!0;return t}function mn(e,t,n){var a;K&&(a=fe,$e());var r=new At(e);se(()=>{var e=t()??null;if(K&&Ve(a)===X!==(null!==e)){var s=Ce();return je(s),r.anchor=s,Se(!1),r.ensure(e,e&&(t=>n(t,e))),void Se(!0)}r.ensure(e,e&&(t=>n(t,e)))},oe)}function bn(e,t){Xe(()=>{e.dispatchEvent(new CustomEvent(t))})}function gn(e){if("float"===e)return"cssFloat";if("offset"===e)return"cssOffset";if(e.startsWith("--"))return e;const t=e.split("-");return 1===t.length?t[0]:t[0]+t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join("")}function _n(e){const t={},n=e.split(";");for(const e of n){const[n,a]=e.split(":");if(!n||void 0===a)break;t[gn(n.trim())]=a.trim()}return t}const yn=e=>e;let wn=null;function kn(e){wn=e}function xn(e,t,n){var a,r,s,o=(wn??ue).nodes,i=null;o.a??={element:e,measure(){a=this.element.getBoundingClientRect()},apply(){if(s?.abort(),r=this.element.getBoundingClientRect(),a.left!==r.left||a.right!==r.right||a.top!==r.top||a.bottom!==r.bottom){const e=t()(this.element,{from:a,to:r},n?.());s=Cn(this.element,e,void 0,1,()=>{},()=>{s?.abort(),s=void 0})}},fix(){if(!e.getAnimations().length){var{position:t,width:n,height:r}=getComputedStyle(e);if("absolute"!==t&&"fixed"!==t){var s=e.style;i={position:s.position,width:s.width,height:s.height,transform:s.transform},s.position="absolute",s.width=n,s.height=r;var o=e.getBoundingClientRect();if(a.left!==o.left||a.top!==o.top){var c=`translate(${a.left-o.left}px, ${a.top-o.top}px)`;s.transform=s.transform?`${s.transform} ${c}`:c}}}},unfix(){if(i){var t=e.style;t.position=i.position,t.width=i.width,t.height=i.height,t.transform=i.transform}}},o.a.element=e}function $n(e,t,n,a){var r,s,o,i=0!==(e&Qe),c=0!==(e&Ue),l=0!==(e&Ke),u=i&&c?"both":i?"in":"out",f=t.inert,d=t.style.overflow;function v(){return Xe(()=>r??=n()(t,a?.()??{},{direction:u}))}var p={is_global:l,in(){if(t.inert=f,!i)return o?.abort(),void o?.reset?.();c||s?.abort(),s=Cn(t,v(),o,1,()=>{bn(t,"introstart")},()=>{bn(t,"introend"),s?.abort(),s=r=void 0,t.style.overflow=d})},out(e){if(!c)return e?.(),void(r=void 0);t.inert=!0,o=Cn(t,v(),s,0,()=>{bn(t,"outrostart")},()=>{bn(t,"outroend"),e?.()})},stop:()=>{s?.abort(),o?.abort()}},h=ue;if((h.nodes.t??=[]).push(p),i&&St){var m=l;if(!m){for(var b=h.parent;b&&0!==(b.f&oe);)for(;(b=b.parent)&&0===(b.f&Ge););m=!b||0!==(b.f&He)}m&&Ye(()=>{O(()=>p.in())})}}function Cn(e,t,n,a,r,s){var o=1===a;if(Ie(t)){var i,c=!1;return Oe(()=>{if(!c){var l=t({direction:o?"in":"out"});i=Cn(e,l,n,a,r,s)}}),{abort:()=>{c=!0,i?.abort()},deactivate:()=>i.deactivate(),reset:()=>i.reset(),t:()=>i.t()}}if(n?.deactivate(),!t?.duration&&!t?.delay)return r(),s(),{abort:Je,deactivate:Je,reset:Je,t:()=>a};const{delay:l=0,css:u,tick:f,easing:d=yn}=t;var v=[];if(o&&void 0===n&&(f&&f(0,1),u)){var p=_n(u(0,1));v.push(p,p)}var h=()=>1-a,m=e.animate(v,{duration:l,fill:"forwards"});return m.onfinish=()=>{m.cancel(),r();var o=n?.t()??1-a;n?.abort();var i=a-o,c=t.duration*Math.abs(i),l=[];if(c>0){var v=!1;if(u)for(var p=Math.ceil(c/(1e3/60)),b=0;b<=p;b+=1){var g=o+i*d(b/p),_=_n(u(g,1-g));l.push(_),v||="hidden"===_.overflow}v&&(e.style.overflow="hidden"),h=()=>{var e=m.currentTime;return o+i*d(e/c)},f&&Mt(()=>{if("running"!==m.playState)return!1;var e=h();return f(e,1-e),!0})}(m=e.animate(l,{duration:c,fill:"forwards"})).onfinish=()=>{h=()=>a,f?.(a,1-a),s()}},{abort:()=>{m&&(m.cancel(),m.effect=null,m.onfinish=Je)},deactivate:()=>{s=Je},reset:()=>{0===a&&f?.(1,0)},t:()=>h()}}function jn(e,t,n,a,r,s){let o=K;K&&$e();var i=null;K&&fe.nodeType===ee&&(i=fe,$e());var c=K?fe:e,l=ue,u=new At(c,!1);se(()=>{const e=t()||null;var s=r?r():n||"svg"===e?et:void 0;return null===e?(u.ensure(null,null),void Et(!0)):(u.ensure(e,t=>{if(e){if(i=K?i:tt(e,s),Tt(i,i),a){K&&Nt(e)&&i.append(document.createComment(""));var n=K?Pe(i):i.appendChild(nt());K&&(null===n?Se(!1):je(n)),kn(l),a(i,n),kn(null)}ue.nodes.end=i,t.before(i)}K&&je(t)}),Et(!0),()=>{e&&Et(!1)})},oe),Ze(()=>{Et(!0)}),o&&(Se(!0),je(c))}function En(e,t){let n=null,a=K;var r;if(K){n=fe;for(var s=Pe(document.head);null!==s&&(s.nodeType!==U||s.data!==e);)s=at(s);if(null===s)Se(!1);else{var o=at(s);s.remove(),je(o)}}K||(r=document.head.appendChild(nt()));try{se(()=>{ce(()=>t(r)).f|=rt})}finally{a&&(Se(!0),je(n))}}function Sn(e,t){Ye(()=>{var n=e.getRootNode(),a=n.host?n:n.head??n.ownerDocument.head;if(!a.querySelector("#"+t.hash)){const e=tt("style");e.id=t.hash,e.textContent=t.code,a.appendChild(e)}})}function Tn(e,t,n){Ye(()=>{var a=O(()=>t(e,n?.())||{});if(n&&a?.update){var r=!1,s={};xe(()=>{var e=n();st(e),r&&ot(s,e)&&(s=e,a.update(e))}),r=!0}if(a?.destroy)return()=>a.destroy()})}let Nn=null;function Ln(){if(null===Nn){var e=tt("select");e.innerHTML=Lt("<option><span>t</span></option>"),Nn=1===e.firstChild?.firstChild?.nodeType}return Nn}function An(e,t){Ln()&&Ot(e,()=>()=>{const n=e.closest("select");if(!n)return;const a=new MutationObserver(n=>{var a=!1;for(const t of n){if(t.target===e)return;a||=!!t.target.parentElement?.closest("option")?.selected}a&&(e.replaceWith(e=e.cloneNode(!0)),t(e))});return a.observe(n,{childList:!0,characterData:!0,subtree:!0}),()=>{a.disconnect()}})}function On(e,t){var n=K;Ln()||(Se(!1),e.textContent="",e.append(it("")));try{t()}finally{n&&(K?lt(e):(Se(!0),je(e)))}}function Mn(e){ut(document,["focusin","focusout"],t=>{t&&"focusout"===t.type&&t.relatedTarget||e(document.activeElement)})}function Bn(e,t,n=t){var a=new WeakSet;ft(e,"input",async r=>{var s=r?e.defaultValue:e.value;if(s=Wn(e)?Fn(s):s,n(s),null!==Be&&a.add(Be),await dt(),s!==(s=t())){var o=e.selectionStart,i=e.selectionEnd,c=e.value.length;if(e.value=s??"",null!==i){var l=e.value.length;o===i&&i===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(i,l))}}}),(K&&e.defaultValue!==e.value||null==O(t)&&e.value)&&(n(Wn(e)?Fn(e.value):e.value),null!==Be&&a.add(Be)),xe(()=>{var n=t();if(e===document.activeElement){var r=Bt?vt:Be;if(a.has(r))return}Wn(e)&&n===Fn(e.value)||("date"!==e.type||n||e.value)&&n!==e.value&&(e.value=n??"")})}const Rn=new Set;function zn(e,t,n,a,r=a){var s="checkbox"===n.getAttribute("type"),o=e;let i=!1;if(null!==t)for(var c of t)o=o[c]??=[];o.push(n),ft(n,"change",()=>{var e=n.__value;s&&(e=qn(o,e,n.checked)),r(e)},()=>r(s?[]:null)),xe(()=>{var e=a();K&&n.defaultChecked!==n.checked?i=!0:s?(e=e||[],n.checked=e.includes(n.__value)):n.checked=pt(n.__value,e)}),Ze(()=>{var e=o.indexOf(n);-1!==e&&o.splice(e,1)}),Rn.has(o)||(Rn.add(o),Oe(()=>{o.sort((e,t)=>4===e.compareDocumentPosition(t)?-1:1),Rn.delete(o)})),Oe(()=>{if(i){var e;if(s)e=qn(o,e,n.checked);else{var t=o.find(e=>e.checked);e=t?.__value}r(e)}})}function Dn(e,t,n=t){ft(e,"change",t=>{var a=t?e.defaultChecked:e.checked;n(a)}),(K&&e.defaultChecked!==e.checked||null==O(t))&&n(e.checked),xe(()=>{var n=t();e.checked=Boolean(n)})}function qn(e,t,n){for(var a=new Set,r=0;r<e.length;r+=1)e[r].checked&&a.add(e[r].__value);return n||a.delete(t),Array.from(a)}function Wn(e){var t=e.type;return"number"===t||"range"===t}function Fn(e){return""===e?null:+e}function Pn(e,t,n=t){ft(e,"change",()=>{n(e.files)}),K&&e.files&&n(e.files),xe(()=>{e.files=t()})}function Vn(e){for(var t=[],n=0;n<e.length;n+=1)t.push({start:e.start(n),end:e.end(n)});return t}function Gn(e,t,n=t){var a,r,s=()=>{cancelAnimationFrame(a),e.paused||(a=requestAnimationFrame(s));var t=e.currentTime;r!==t&&n(r=t)};a=requestAnimationFrame(s),e.addEventListener("timeupdate",s),xe(()=>{var n=Number(t());r===n||isNaN(n)||(e.currentTime=r=n)}),Ze(()=>{cancelAnimationFrame(a),e.removeEventListener("timeupdate",s)})}function Hn(e,t){var n;ut(e,["loadedmetadata","progress","timeupdate","seeking"],()=>{var a=e.buffered;n&&n.length===a.length&&!n.some((e,t)=>a.start(t)!==e.start||a.end(t)!==e.end)||(n=Vn(a),t(n))})}function Yn(e,t){ut(e,["loadedmetadata"],()=>t(Vn(e.seekable)))}function In(e,t){ut(e,["timeupdate"],()=>t(Vn(e.played)))}function Jn(e,t){ut(e,["seeking","seeked"],()=>t(e.seeking))}function Kn(e,t){ut(e,["timeupdate","ended"],()=>t(e.ended))}function Qn(e,t){ut(e,["loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","emptied"],()=>t(e.readyState))}function Un(e,t,n=t){Ye(()=>{var n=Number(t());n===e.playbackRate||isNaN(n)||(e.playbackRate=n)}),Ye(()=>{ut(e,["ratechange"],()=>{n(e.playbackRate)})})}function Xn(e,t,n=t){var a=t();ut(e,["play","pause","canplay"],()=>{a!==e.paused&&n(a=e.paused)},null==a),Ye(()=>{(a=!!t())!==e.paused&&(a?e.pause():e.play().catch(e=>{throw n(a=!0),e}))})}function Zn(e,t,n=t){var a=()=>{n(e.volume)};null==t()&&a(),ut(e,["volumechange"],a,!1),xe(()=>{var n=Number(t());n===e.volume||isNaN(n)||(e.volume=n)})}function ea(e,t,n=t){var a=()=>{n(e.muted)};null==t()&&a(),ut(e,["volumechange"],a,!1),xe(()=>{var n=!!t();e.muted!==n&&(e.muted=n)})}function ta(e){ut(window,["online","offline"],()=>{e(navigator.onLine)})}function na(e,t,n){var a=be(e,t);a&&a.set&&(e[t]=n,Ze(()=>{e[t]=null}))}class ra{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(e){this.#n=e}observe(e,t){var n=this.#e.get(e)||new Set;return n.add(t),this.#e.set(e,n),this.#a().observe(e,this.#n),()=>{var n=this.#e.get(e);n.delete(t),0===n.size&&(this.#e.delete(e),this.#t.unobserve(e))}}#a(){return this.#t??(this.#t=new ResizeObserver(e=>{for(var t of e)for(var n of(ra.entries.set(t.target,t),this.#e.get(t.target)||[]))n(t)}))}}var sa=new ra({box:"content-box"}),oa=new ra({box:"border-box"}),ia=new ra({box:"device-pixel-content-box"});function ca(e,t,n){var a=("contentRect"===t||"contentBoxSize"===t?sa:"borderBoxSize"===t?oa:ia).observe(e,e=>n(e[t]));Ze(a)}function la(e,t,n){var a=oa.observe(e,()=>n(e[t]));Ye(()=>(O(()=>n(e[t])),a))}function ua(e,t){return e===t||e?.[W]===t}function fa(e={},t,n,a){var r=pe.r,s=ue;return Ye(()=>{var o,i;return xe(()=>{o=i,i=a?.()||[],O(()=>{ua(n(...i),e)||(t(e,...i),o&&ua(n(...o),e)&&t(null,...o))})}),()=>{let a=s;for(;a!==r&&null!==a.parent&&a.parent.f&ht;)a=a.parent;const o=a.teardown;a.teardown=()=>{i&&ua(n(...i),e)&&t(null,...i),o?.()}}}),e}function da(e,t,n,a=n){t.addEventListener("input",()=>{a(t[e])}),xe(()=>{var r=n();if(t[e]!==r)if(null==r){var s=t[e];a(s)}else t[e]=r+""})}function va(e,t,n,a,r){var s=()=>{a(n[e])};n.addEventListener(t,s),r?xe(()=>{n[e]=r()}):s(),n!==document.body&&n!==window&&n!==document||Ze(()=>{n.removeEventListener(t,s)})}function pa(e,t){ut(e,["focus","blur"],()=>{t(e===document.activeElement)})}function ha(e,t,n=t){var a="x"===e,r=()=>Xe(()=>{o=!0,clearTimeout(s),s=setTimeout(i,100),n(window[a?"scrollX":"scrollY"])});addEventListener("scroll",r,{passive:!0});var s,o=!1,i=()=>{o=!1},c=!0;xe(()=>{var e=t();c?c=!1:o||null==e||(o=!0,clearTimeout(s),a?scrollTo(e,window.scrollY):scrollTo(window.scrollX,e),s=setTimeout(i,100))}),Ye(r),Ze(()=>{removeEventListener("scroll",r)})}function ma(e,t){ut(window,["resize"],()=>Xe(()=>t(window[e])))}function ba(e=!1){const t=pe,n=t.l.u;if(!n)return;let a=()=>st(t.s);if(e){let e=0,n={};const r=yt(()=>{let a=!1;const r=t.s;for(const e in r)r[e]!==n[e]&&(n[e]=r[e],a=!0);return a&&e++,e});a=()=>ie(r)}n.b.length&&mt(()=>{ga(t,a),gt(n.b)}),bt(()=>{const e=O(()=>n.m.map(_t));return()=>{for(const t of e)"function"==typeof t&&t()}}),n.a.length&&bt(()=>{ga(t,a),gt(n.a)})}function ga(e,t){if(e.l.s)for(const t of e.l.s)ie(t);t()}function _a(e){var t=de(0);return function(){return 1===arguments.length?(re(t,ie(t)+1),arguments[0]):(ie(t),e())}}function ya(e,t){var n=e.$$events?.[t.type],a=_(n)?n.slice():null==n?[]:[n];for(var r of a)r.call(this,t)}function wa(e,t,n){e.$$events||={},e.$$events[t]||=[],e.$$events[t].push(n)}function ka(e){for(var t in e)t in this&&(this[t]=e[t])}function xa(e,t,n,a,r,s){wt(t,()=>{var e=!1;xe(()=>{if(!e){var[t,r]=xt(n);if(!r){var s=a(),o=!1,i=xe(()=>{o||t[s]});o=!0,null===i.deps&&($t(),e=!0)}}})})}function $a(e,...t){return O(()=>{try{let n=!1;const a=[];for(const e of t)e&&"object"==typeof e&&W in e?(a.push(zt(e,!0)),n=!0):a.push(e);n&&(Ct(e),console.log("%c[snapshot]","color: grey",...a))}catch{}}),t}export{ne as FILENAME,ae as HMR,et as NAMESPACE_SVG,Tn as action,ue as active_effect,wa as add_legacy_event_listener,Xt as add_locations,xn as animation,Sn as append_styles,Jt as assign,Kt as assign_async,cn as async,Ot as attach,un as await,Mn as bind_active_element,Hn as bind_buffered,Dn as bind_checked,da as bind_content_editable,Gn as bind_current_time,la as bind_element_size,Kn as bind_ended,Pn as bind_files,pa as bind_focused,zn as bind_group,ea as bind_muted,ta as bind_online,Xn as bind_paused,Un as bind_playback_rate,In as bind_played,na as bind_prop,va as bind_property,Qn as bind_ready_state,ca as bind_resize_observer,Yn as bind_seekable,Jn as bind_seeking,fa as bind_this,Bn as bind_value,Zn as bind_volume,ha as bind_window_scroll,ma as bind_window_size,ya as bubble_event,rn as check_target,Ut as cleanup_styles,mn as component,nn as create_ownership_validator,vn as css_props,On as customizable_select,st as deep_read_state,Ye as effect,M as effect_tracking,jn as element,Yt as equals,qe as flush,ie as get,En as head,tn as hmr,ba as init,on as inspect,dn as key,sn as legacy_api,$a as log_if_contains_state,We as mutable_source,Je as noop,_a as reactive_import,xe as render_effect,lt as reset,wt as run_after_blockers,hn as sanitize_slots,An as selectedcontent,re as set,pn as slot,zt as snapshot,Ht as strict_equals,Pt as tag,Vt as tag_proxy,dt as tick,Ft as trace,$n as transition,O as untrack,ka as update_legacy_props,bt as user_effect,mt as user_pre_effect,xa as validate_binding,ln as validate_snippet_args};
|
|
1
|
+
export{createAttachmentKey as attachment}from"./attachments.js";import{L as T,bw as N,bM as O,bN as R,c as P,u as W,e as Y,bz as X,bJ as U,bO as V,bP as Z,z as Q,bQ as ee,bR as te,bS as ne,i as ae,ax as re,C as se,aT as oe,a_ as ie,bT as ce,bU as le,bV as ue,bW as fe,a as de,ai as ve,aj as pe,g as he,ac as me,bX as be,f as _e,p as ge,s as ye,a8 as we,I as ke,bY as $e,bZ as xe,B as je,b1 as Ee,b_ as Ce,b$ as Se,c0 as Te,c1 as Ne,r as Le,m as Me,aN as Oe,j as Ae,bq as Be,aU as ze,c2 as De,c3 as Re,c4 as qe,aO as Fe,E as Pe,aL as We,ad as Ie,aK as Je,c5 as Ye,c6 as Ge,Q as He,b2 as Xe,c7 as Ke,l as Ue,w as Ve,ab as Ze,aD as Qe,c8 as et,ao as tt,bi as nt,bI as at,n as rt,c9 as st,ca as ot,cb as it,cc as lt,t as ut,N as ft,q as dt,cd as vt,ce as pt,Y as ht,av as mt,a3 as bt,cf as _t,bm as gt,X as yt,bp as wt,bo as kt,aZ as $t,aG as xt,b0 as jt,O as Et,Z as Ct,cg as St,bH as Tt,ch as Nt,al as Lt,ci as Mt,cj as Ot}from"../chunks/chunk-DQhQpYBr.js";export{ck as aborted,cl as add_svelte_meta,cm as async_derived,by as autofocus,a2 as child,cn as deep_read,co as deferred_template_effect,a1 as derived,ba as derived_safe_equal,cp as document,cq as eager,h as effect_root,cr as exclude_from_object,cs as fallback,_ as first_child,ct as for_await_track_reactivity_loss,cu as hydrate_template,cv as invalid_default_snippet,cw as invalidate_inner_signals,cx as legacy_pre_effect,cy as legacy_pre_effect_reset,cz as mutate,aM as next,an as only_child,$ as pop,bC as proxy,a0 as push,cA as remove_textarea_child,cB as run,cC as safe_get,cD as save,a4 as sibling,a5 as state,k as template_effect,cE as to_array,cF as track_reactivity_loss,cG as unsave,bD as update,cH as update_pre,cI as wait,cJ as window}from"../chunks/chunk-DQhQpYBr.js";import{k as At,l as Bt,a as zt,b as Dt,o as Rt,p as qt,q as Ft}from"../chunks/chunk-dcWYlI_G.js";export{r as boundary,d as comment,f as from_html,v as from_mathml,w as from_svg,x as from_tree,y as once,z as pending,A as preventDefault,B as props_id,C as self,s as set_text,D as stopImmediatePropagation,E as stopPropagation,t as text,F as trusted,G as with_script}from"../chunks/chunk-dcWYlI_G.js";import{B as Pt}from"../chunks/chunk-Bkf3iLx0.js";export{p as prevent_snippet_stringification,s as snippet,v as validate_dynamic_element_tag,a as validate_store,b as validate_void_dynamic_element,w as wrap_snippet}from"../chunks/chunk-Bkf3iLx0.js";import{f as Wt,g as It}from"../chunks/chunk-BwMumrfI.js";export{C as CLASS,S as STYLE,h as attr,j as attribute_effect,k as bind_select_value,d as clsx,e as each,i as if,l as index,m as init_select,n as invalidate_store,o as legacy_rest_props,q as mark_store_binding,p as prop,r as remove_input_defaults,t as rest_props,u as select_option,a as set_attribute,v as set_checked,b as set_class,w as set_custom_element_data,x as set_default_checked,y as set_default_select_value,z as set_default_value,A as set_selected,B as set_style,D as set_value,E as set_xlink_attribute,s as setup_stores,F as spread_props,c as store_get,G as store_mutate,H as store_set,I as store_unsub,J as update_pre_prop,K as update_pre_store,L as update_prop,M as update_store}from"../chunks/chunk-BwMumrfI.js";export{h as html}from"../chunks/chunk-BfcUislW.js";import{l as Jt}from"../chunks/chunk-DhgH0pN2.js";export{r as raf}from"../chunks/chunk-DhgH0pN2.js";export{e as apply,d as delegate,a as delegated,f as event,g as replay_events}from"../chunks/chunk-C8W1Nv_i.js";import{c as Yt}from"../chunks/chunk-DNUkGPCL.js";export{c as create_custom_element}from"../chunks/chunk-B5CK1uiS.js";const Gt=[];function Ht(e,t=!1,n=!1){return Xt(e,new Map,"",Gt,null,n)}function Xt(e,t,n,a,r=null,s=!1){if("object"==typeof e&&null!==e){var o=t.get(e);if(void 0!==o)return o;if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);if(T(e)){var i=Array(e.length);t.set(e,i),null!==r&&t.set(r,i);for(var c=0;c<e.length;c+=1){var l=e[c];c in e&&(i[c]=Xt(l,t,n,a,null,s))}return i}if(N(e)===O){for(var u of(i={},t.set(e,i),null!==r&&t.set(r,i),Object.keys(e)))i[u]=Xt(e[u],t,n,a,null,s);return i}if(e instanceof Date)return e.getTime(),structuredClone(e);if("function"==typeof e.toJSON&&!s)return Xt(e.toJSON(),t,n,a,e)}if(e instanceof EventTarget)return e;try{return structuredClone(e)}catch(t){return e}}let Kt=null;function Ut(e,t){const n=e.v;if(n===X)return;const a=function(e){return 0!==(e.f&(V|Z))?"$derived":e.label?.startsWith("$")?"store":"$state"}(e),r=P,s=e.wv>r.wv||0===r.wv,o=s?"color: CornflowerBlue; font-weight: bold":"color: grey; font-weight: normal";if(console.groupCollapsed(e.label?`%c${a}%c ${e.label}`:`%c${a}%c`,o,s?"font-weight: normal":o,"object"==typeof n&&null!==n&&U in n?Ht(n,!0):n),"$derived"===a){const t=new Set(e.deps);for(const e of t)Ut(e)}if(e.created&&console.log(e.created),s&&e.updated)for(const t of e.updated.values())t.error&&console.log(t.error);if(t)for(var i of t.traces)console.log(i);console.groupEnd()}function Vt(e,t){var n=Kt;try{Kt={entries:new Map,reaction:P};var a=performance.now(),r=t(),s=(performance.now()-a).toFixed(2),o=W(e);if(Y())if(0===Kt.entries.size)console.log(`${o} %cno reactive dependencies (${s}ms)`,"color: grey");else{console.group(`${o} %c(${s}ms)`,"color: grey");var i=Kt.entries;W(()=>{for(const[e,t]of i)Ut(e,t)}),Kt=null,console.groupEnd()}else console.log(`${o} %cran outside of an effect (${s}ms)`,"color: grey");return r}finally{Kt=n}}function Zt(e,t){return e.label=t,Qt(e.v,t),e}function Qt(e,t){return e?.[R]?.(t),e}function en(e){const t=new Error,n=function(){const e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;const t=(new Error).stack;if(Error.stackTraceLimit=e,!t)return[];const n=t.split("\n"),a=[];for(let e=0;e<n.length;e++){const t=n[e],r=t.replaceAll("\\","/");if("Error"!==t.trim()){if(t.includes("validate_each_keys"))return[];r.includes("svelte/src/internal")||r.includes("node_modules/.vite")||a.push(t)}}return a}();return 0===n.length?null:(n.unshift("\n"),Q(t,"stack",{value:n.join("\n")}),Q(t,"name",{value:e}),t)}function tn(e,t,n=!0){try{e===t!=(ee(e)===ee(t))&&te(n?"===":"!==")}catch{}return e===t===n}function nn(e,t,n=!0){return e==t!=(ee(e)==ee(t))&&te(),e==t===n}function rn(e,t,n,a){return e!==t&&"object"==typeof t&&U in t&&ne(n,At(a)),e}function sn(e,t,n,a,r){return rn("="===n?e[t]=a:"&&="===n?e[t]&&=a():"||="===n?e[t]||=a():"??="===n?e[t]??=a():null,W(()=>e[t]),t,r)}async function on(e,t,n,a,r){return rn("="===n?e[t]=await a:"&&="===n?e[t]&&=await a():"||="===n?e[t]||=await a():"??="===n?e[t]??=await a():null,W(()=>e[t]),t,r)}var ln=new Map;function un(e){var t=ln.get(e);if(t){for(const e of t)e.remove();ln.delete(e)}}function fn(e,t,n){return(...a)=>{const r=e(...a);return vn(ae?r:r.nodeType===re?r.firstChild:r,t,n),r}}function dn(e,t,n){e.__svelte_meta={parent:le,loc:{file:t,line:n[0],column:n[1]}},n[2]&&vn(e.firstChild,t,n[2])}function vn(e,t,n){for(var a=0,r=0;e&&a<n.length;){if(ae&&e.nodeType===se){var s=e;s.data[0]===oe?r+=1:s.data[0]===ie&&(r-=1)}0===r&&e.nodeType===ce&&dn(e,t,n[a++]),e=e.nextSibling}}function pn(e){const t=ye(e);function n(e,n){let a,r={},s={},o=!1,i=e;return ve(()=>{if(r!==(r=he(t))){if(a){for(var e in s)delete s[e];we(a)}a=me(()=>{i=i[be]??i,o&&Bt(!1);var e=new.target?new r(i,n):r(i,n);e&&Object.defineProperties(s,Object.getOwnPropertyDescriptors(e)),o&&Bt(!0)});var c=a.nodes;if(c){var l=_e;l.nodes?(l.nodes.start=c.start,l.nodes.end=c.end):l.nodes={start:c.start,end:c.end,a:null,t:null}}}},pe),o=!0,ae&&(i=ge),s}return n[ue]=e[ue],n[fe]={fn:e,current:t,update:e=>{de(n[fe].current,e[fe].fn),e[fe].current=n[fe].current}},n}function hn(e){const t=ke?.function,n=ke?.p?.function;return{mutation:(a,r,s,o,i)=>{const c=r[0];if(mn(e,c)||!n)return s;let l=e;for(let e=0;e<r.length-1;e++)if(l=l[r[e]],!l?.[U])return s;const u=At(`${t[ue]}:${o}:${i}`);return xe(c,u,a,n[ue]),s},binding:(a,r,s)=>{!mn(e,a)&&n&&s()?.[U]&&$e(t[ue],a,r[ue],n[ue])}}}function mn(e,t){const n=U in e||Ee in e;return!!je(e,t)?.set||n&&t in e||!(t in e)}function bn(e){e&&Ce(e[ue]??"a component",e.name)}function _n(){const e=ke?.function;function t(t){Se(t,e[ue])}return{$destroy:()=>t("$destroy()"),$on:()=>t("$on(...)"),$set:()=>t("$set(...)")}}function gn(e,t,n=!1){Te();let a=!0,r=X;Ne(()=>{r=X;try{var s=e()}catch(e){return void(r=e)}var o=Ht(s,!0,!0);W(()=>{if(n){if(t(...o),!a){const e=en("$inspect(...)");e&&(console.groupCollapsed("stack trace"),console.log(e),console.groupEnd())}}else t(a?"init":"update",...o)}),a=!1}),Le(()=>{try{e()}catch{}r!==X&&(console.error(r),r=X)})}function yn(e,t=[],n=[],a){var r=ae,s=null;if(r&&(Me(),s=Oe(!1),zt(e,s)),0===n.length&&t.every(e=>e.settled))return a(e),void(r&&Ae(s));if(r){var o=ge;Ae(s)}Be(t,[],n,t=>{r&&(ze(!0),Ae(o));try{for(const e of t)he(e);a(e,...t)}finally{r&&ze(!1)}})}function wn(e,...t){"object"==typeof e&&e instanceof Node||De();for(let e of t)"function"!=typeof e&&De()}function kn(e,t,n,a,r){ae&&Me();var s=Re(),o=X,i=s?ye(o):Xe(o,!1,!1),c=s?ye(o):Xe(o,!1,!1),l=new Pt(e);ve(()=>{var s=Ie,o=t(),u=!1;let f=ae&&qe(o)===(e.data===Fe);if(f&&(Ae(Oe()),ze(!1)),qe(o)){var d=Ke(),v=!1;const e=e=>{if(!u){v=!0,d(!1),Ie===s&&s.deactivate(),Je.ensure();try{e()}finally{Ye(!1),Ge||He()}}};o.then(t=>{e(()=>{We(i,t),l.ensure(1,a&&(e=>a(e,i)))})},t=>{e(()=>{if(We(c,t),l.ensure(2,r&&(e=>r(e,c))),!r)throw c.v})}),ae?l.ensure(0,n):Pe(()=>{v||e(()=>{l.ensure(0,n)})})}else We(i,o),l.ensure(1,a&&(e=>a(e,i)));return f&&ze(!0),()=>{u=!0}})}const $n=Symbol("NaN");function xn(e,t,n){ae&&Me();var a=new Pt(e),r=!Re();ve(()=>{var e=t();e!=e&&(e=$n),r&&null!==e&&"object"==typeof e&&(e={}),a.ensure(e,n)})}function jn(e,t){ae&&Ae(Ue(e)),Le(()=>{var n=t();for(var a in n){var r=n[a];null==r||""===r?e.style.removeProperty(a):e.style.setProperty(a,r)}})}function En(e,t,n,a,r){if(ae&&Me(),t.$$host?.$$shadowRoot){const t=Ve("slot");if("default"!==n&&(t.name=n),Dt(e,t),null!==r){const e=Ze();t.append(e),r(e)}return}var s=t.$$slots?.[n],o=!1;!0===s&&(s=t["default"===n?"children":n],o=!0),void 0===s?null!==r&&r(e):s(e,o?()=>a:a)}function Cn(e){const t={};e.children&&(t.default=!0);for(const n in e.$$slots)t[n]=!0;return t}function Sn(e,t,n){var a;ae&&(a=ge,Me());var r=new Pt(e);ve(()=>{var e=t()??null;if(ae&&Qe(a)===oe!==(null!==e)){var s=Oe();return Ae(s),r.anchor=s,ze(!1),r.ensure(e,e&&(t=>n(t,e))),void ze(!0)}r.ensure(e,e&&(t=>n(t,e)))},pe)}function Tn(e,t){lt(()=>{e.dispatchEvent(new CustomEvent(t))})}function Nn(e){if("float"===e)return"cssFloat";if("offset"===e)return"cssOffset";if(e.startsWith("--"))return e;const t=e.split("-");return 1===t.length?t[0]:t[0]+t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join("")}function Ln(e){const t={},n=e.split(";");for(const e of n){const[n,a]=e.split(":");if(!n||void 0===a)break;t[Nn(n.trim())]=a.trim()}return t}const Mn=e=>e;let On=null;function An(e){On=e}function Bn(e,t,n){var a,r,s,o=(On??_e).nodes,i=null;o.a??={element:e,measure(){a=this.element.getBoundingClientRect()},apply(){if(s?.abort(),r=this.element.getBoundingClientRect(),a.left!==r.left||a.right!==r.right||a.top!==r.top||a.bottom!==r.bottom){const e=t()(this.element,{from:a,to:r},n?.());s=Dn(this.element,e,void 0,1,()=>{},()=>{s?.abort(),s=void 0})}},fix(){if(!e.getAnimations().length){var{position:t,width:n,height:r}=getComputedStyle(e);if("absolute"!==t&&"fixed"!==t){var s=e.style;i={position:s.position,width:s.width,height:s.height,transform:s.transform},s.position="absolute",s.width=n,s.height=r;var o=e.getBoundingClientRect();if(a.left!==o.left||a.top!==o.top){var c=`translate(${a.left-o.left}px, ${a.top-o.top}px)`;s.transform=s.transform?`${s.transform} ${c}`:c}}}},unfix(){if(i){var t=e.style;t.position=i.position,t.width=i.width,t.height=i.height,t.transform=i.transform}}},o.a.element=e}function zn(e,t,n,a){var r,s,o,i=0!==(e&ot),c=0!==(e&it),l=0!==(e&st),u=i&&c?"both":i?"in":"out",f=t.inert,d=t.style.overflow;function v(){return lt(()=>r??=n()(t,a?.()??{},{direction:u}))}var p={is_global:l,in(){if(t.inert=f,!i)return o?.abort(),void o?.reset?.();c||s?.abort(),s=Dn(t,v(),o,1,()=>{Tn(t,"introstart")},()=>{Tn(t,"introend"),s?.abort(),s=r=void 0,t.style.overflow=d})},out(e){if(!c)return e?.(),void(r=void 0);t.inert=!0,o=Dn(t,v(),s,0,()=>{Tn(t,"outrostart")},()=>{Tn(t,"outroend"),e?.()})},stop:()=>{s?.abort(),o?.abort()}},h=_e;if((h.nodes.t??=[]).push(p),i&&Rt){var m=l;if(!m){for(var b=h.parent;b&&0!==(b.f&pe);)for(;(b=b.parent)&&0===(b.f&et););m=!b||0!==(b.f&tt)}m&&nt(()=>{W(()=>p.in())})}}function Dn(e,t,n,a,r,s){var o,i=1===a,c=!1;if(at(t))return Pe(()=>{if(!c){var l=t({direction:i?"in":"out"});o=Dn(e,l,n,a,r,s)}}),{abort:()=>{c=!0,o?.abort()},deactivate:()=>o?.deactivate(),reset:()=>o?.reset(),t:()=>o?.t()??1-a};if(n?.deactivate(),!t?.duration&&!t?.delay)return r(),s(),{abort:rt,deactivate:rt,reset:rt,t:()=>a};const{delay:l=0,css:u,tick:f,easing:d=Mn}=t;var v,p=()=>1-a;return Pe(()=>{if(!c){var o=[];if(i&&void 0===n&&(f&&f(0,1),u)){var h=Ln(u(0,1));o.push(h,h)}(v=e.animate(o,{duration:l,fill:"forwards"})).onfinish=()=>{v.cancel(),r();var o=n?.t()??1-a;n?.abort();var i=a-o,c=t.duration*Math.abs(i),l=[];if(c>0){var h=!1;if(u)for(var m=Math.ceil(c/(1e3/60)),b=0;b<=m;b+=1){var _=o+i*d(b/m),g=Ln(u(_,1-_));l.push(g),h||="hidden"===g.overflow}h&&(e.style.overflow="hidden"),p=()=>{var e=v.currentTime;return o+i*d(e/c)},f&&Jt(()=>{if("running"!==v.playState)return!1;var e=p();return f(e,1-e),!0})}(v=e.animate(l,{duration:c,fill:"forwards"})).onfinish=()=>{p=()=>a,f?.(a,1-a),s()}}}}),{abort:()=>{c=!0,v&&(v.cancel(),v.effect=null,v.onfinish=rt)},deactivate:()=>{s=rt},reset:()=>{0===a&&f?.(1,0)},t:()=>p()}}function Rn(e,t,n,a,r,s){let o=ae;ae&&Me();var i=null;ae&&ge.nodeType===ce&&(i=ge,Me());var c=ae?ge:e,l=_e,u=new Pt(c,!1);ve(()=>{const e=t()||null;var s=r?r():n||"svg"===e?ft:void 0;return null===e?(u.ensure(null,null),void Bt(!0)):(u.ensure(e,t=>{if(e){var n=ae;if(i=ae?i:Ve(e,s),zt(i,i),a){var r=null;ae&&qt(e)&&i.append(r=document.createComment(""));var o=ae?Ue(i):i.appendChild(Ze());ae&&(null===o?ze(!1):Ae(o)),An(l),a(i,o),r?.remove(),An(null)}_e.nodes.end=i,n||t.before(i)}ae&&Ae(t)}),Bt(!0),()=>{e&&Bt(!1)})},pe),ut(()=>{Bt(!0)}),o&&(ze(!0),Ae(c))}function qn(e,t){let n=null,a=ae;var r;if(ae){n=ge;for(var s=Ue(document.head);null!==s&&(s.nodeType!==se||s.data!==e);)s=dt(s);if(null===s)ze(!1);else{var o=dt(s);s.remove(),Ae(o)}}ae||(r=document.head.appendChild(Ze()));try{ve(()=>{var e=me(()=>t(r));e.f|=vt,ae||(null===e.nodes?e.nodes={start:r,end:r,a:null,t:null}:e.nodes.end=r)})}finally{a&&(ze(!0),Ae(n))}}function Fn(e,t){nt(()=>{var n=(e=_e?.parent?.nodes?.start??e).getRootNode(),a=n.host?n:n.head??n.ownerDocument.head;if(!a.querySelector("#"+t.hash)){const e=Ve("style");e.id=t.hash,e.textContent=t.code,a.appendChild(e)}})}function Pn(e,t,n){nt(()=>{var a=W(()=>t(e,n?.())||{});if(n&&a?.update){var r=!1,s={};Le(()=>{var e=n();pt(e),r&&ht(s,e)&&(s=e,a.update(e))}),r=!0}if(a?.destroy)return()=>a.destroy()})}let Wn=null;function In(){if(null===Wn){var e=Ve("select");e.innerHTML=Ft("<option><span>t</span></option>"),Wn=1===e.firstChild?.firstChild?.nodeType}return Wn}function Jn(e,t){In()&&Wt(e,()=>()=>{const n=e.closest("select");if(!n)return;const a=new MutationObserver(n=>{var a=!1;for(const t of n){if(t.target===e)return;a||=!!t.target.parentElement?.closest("option")?.selected}a&&(e.replaceWith(e=e.cloneNode(!0)),t(e))});return a.observe(n,{childList:!0,characterData:!0,subtree:!0}),()=>{a.disconnect()}})}function Yn(e,t){var n=ae;In()||(ze(!1),e.textContent="",e.append(mt("")));try{t()}finally{n&&(ae?bt(e):(ze(!0),Ae(e)))}}function Gn(e){_t(document,["focusin","focusout"],t=>{t&&"focusout"===t.type&&t.relatedTarget||lt(()=>e(document.activeElement))})}function Hn(e,t,n=t){var a=new WeakSet;gt(e,"input",async r=>{var s=r?e.defaultValue:e.value;if(s=Zn(e)?Qn(s):s,n(s),null!==Ie&&a.add(Ie),await yt(),s!==(s=t())){var o=e.selectionStart,i=e.selectionEnd,c=e.value.length;if(e.value=s??"",null!==i){var l=e.value.length;o===i&&i===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(i,l))}}}),(ae&&e.defaultValue!==e.value||null==W(t)&&e.value)&&(n(Zn(e)?Qn(e.value):e.value),null!==Ie&&a.add(Ie)),Le(()=>{var n=t();if(e===document.activeElement){var r=Yt?wt:Ie;if(a.has(r))return}Zn(e)&&n===Qn(e.value)||("date"!==e.type||n||e.value)&&n!==e.value&&(e.value=n??"")})}const Xn=new Set;function Kn(e,t,n,a,r=a){var s="checkbox"===n.getAttribute("type"),o=e;let i=!1;if(null!==t)for(var c of t)o=o[c]??=[];o.push(n),gt(n,"change",()=>{var e=n.__value;s&&(e=Vn(o,e,n.checked)),r(e)},()=>r(s?[]:null)),Le(()=>{var e=a();ae&&n.defaultChecked!==n.checked?i=!0:s?(e=e||[],n.checked=e.includes(n.__value)):n.checked=kt(n.__value,e)}),ut(()=>{var e=o.indexOf(n);-1!==e&&o.splice(e,1)}),Xn.has(o)||(Xn.add(o),Pe(()=>{o.sort((e,t)=>4===e.compareDocumentPosition(t)?-1:1),Xn.delete(o)})),Pe(()=>{if(i){var e;if(s)e=Vn(o,e,n.checked);else{var t=o.find(e=>e.checked);e=t?.__value}r(e)}})}function Un(e,t,n=t){gt(e,"change",t=>{var a=t?e.defaultChecked:e.checked;n(a)}),(ae&&e.defaultChecked!==e.checked||null==W(t))&&n(e.checked),Le(()=>{var n=t();e.checked=Boolean(n)})}function Vn(e,t,n){for(var a=new Set,r=0;r<e.length;r+=1)e[r].checked&&a.add(e[r].__value);return n||a.delete(t),Array.from(a)}function Zn(e){var t=e.type;return"number"===t||"range"===t}function Qn(e){return""===e?null:+e}function ea(e,t,n=t){gt(e,"change",()=>{n(e.files)}),ae&&e.files&&n(e.files),Le(()=>{e.files=t()})}function ta(e){for(var t=[],n=0;n<e.length;n+=1)t.push({start:e.start(n),end:e.end(n)});return t}function na(e,t,n=t){var a,r,s=()=>{cancelAnimationFrame(a),e.paused||(a=requestAnimationFrame(s));var t=e.currentTime;r!==t&&n(r=t)};a=requestAnimationFrame(s),e.addEventListener("timeupdate",s),Le(()=>{var n=Number(t());r===n||isNaN(n)||(e.currentTime=r=n)}),ut(()=>{cancelAnimationFrame(a),e.removeEventListener("timeupdate",s)})}function aa(e,t){var n;_t(e,["loadedmetadata","progress","timeupdate","seeking"],()=>{var a=e.buffered;n&&n.length===a.length&&!n.some((e,t)=>a.start(t)!==e.start||a.end(t)!==e.end)||(n=ta(a),t(n))})}function ra(e,t){_t(e,["loadedmetadata"],()=>t(ta(e.seekable)))}function sa(e,t){_t(e,["timeupdate"],()=>t(ta(e.played)))}function oa(e,t){_t(e,["seeking","seeked"],()=>t(e.seeking))}function ia(e,t){_t(e,["timeupdate","ended"],()=>t(e.ended))}function ca(e,t){_t(e,["loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","emptied"],()=>t(e.readyState))}function la(e,t,n=t){nt(()=>{var n=Number(t());n===e.playbackRate||isNaN(n)||(e.playbackRate=n)}),nt(()=>{_t(e,["ratechange"],()=>{n(e.playbackRate)})})}function ua(e,t,n=t){var a=t();_t(e,["play","pause","canplay"],()=>{a!==e.paused&&n(a=e.paused)},null==a),nt(()=>{(a=!!t())!==e.paused&&(a?e.pause():e.play().catch(e=>{throw n(a=!0),e}))})}function fa(e,t,n=t){var a=()=>{n(e.volume)};null==t()&&a(),_t(e,["volumechange"],a,!1),Le(()=>{var n=Number(t());n===e.volume||isNaN(n)||(e.volume=n)})}function da(e,t,n=t){var a=()=>{n(e.muted)};null==t()&&a(),_t(e,["volumechange"],a,!1),Le(()=>{var n=!!t();e.muted!==n&&(e.muted=n)})}function va(e){_t(window,["online","offline"],()=>{e(navigator.onLine)})}function pa(e,t,n){var a=je(e,t);a&&a.set&&(e[t]=n,ut(()=>{e[t]=null}))}class ha{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(e){this.#n=e}observe(e,t){var n=this.#e.get(e)||new Set;return n.add(t),this.#e.set(e,n),this.#a().observe(e,this.#n),()=>{var n=this.#e.get(e);n.delete(t),0===n.size&&(this.#e.delete(e),this.#t.unobserve(e))}}#a(){return this.#t??(this.#t=new ResizeObserver(e=>{for(var t of e)for(var n of(ha.entries.set(t.target,t),this.#e.get(t.target)||[]))n(t)}))}}var ma=new ha({box:"content-box"}),_a=new ha({box:"border-box"}),ga=new ha({box:"device-pixel-content-box"});function ya(e,t,n){var a=("contentRect"===t||"contentBoxSize"===t?ma:"borderBoxSize"===t?_a:ga).observe(e,e=>n(e[t]));ut(a)}function wa(e,t,n){var a=_a.observe(e,()=>n(e[t]));nt(()=>(W(()=>n(e[t])),a))}function ka(e,t){return e===t||e?.[U]===t}function $a(e=$t(),t,n,a){var r=ke.r,s=_e;return nt(()=>{var o,i;return Le(()=>{o=i,i=a?.()||[],W(()=>{ka(n(...i),e)||(t(e,...i),o&&ka(n(...o),e)&&t(null,...o))})}),()=>{let a=s;for(;a!==r&&null!==a.parent&&a.parent.f&xt;)a=a.parent;const o=a.teardown;a.teardown=()=>{i&&ka(n(...i),e)&&t(null,...i),o?.()}}}),e}function xa(e,t,n,a=n){t.addEventListener("input",()=>{a(t[e])}),Le(()=>{var r=n();if(t[e]!==r)if(null==r){var s=t[e];a(s)}else t[e]=r+""})}function ja(e,t,n,a,r){var s=()=>{a(n[e])};n.addEventListener(t,s),r?Le(()=>{n[e]=r()}):s(),n!==document.body&&n!==window&&n!==document||ut(()=>{n.removeEventListener(t,s)})}function Ea(e,t){_t(e,["focus","blur"],()=>{t(e===document.activeElement)})}function Ca(e,t,n=t){var a="x"===e,r=()=>lt(()=>{o=!0,clearTimeout(s),s=setTimeout(i,100),n(window[a?"scrollX":"scrollY"])});addEventListener("scroll",r,{passive:!0});var s,o=!1,i=()=>{o=!1},c=!0;Le(()=>{var e=t();c?c=!1:o||null==e||(o=!0,clearTimeout(s),a?scrollTo(e,window.scrollY):scrollTo(window.scrollX,e),s=setTimeout(i,100))}),nt(r),ut(()=>{removeEventListener("scroll",r)})}function Sa(e,t){_t(window,["resize"],()=>lt(()=>t(window[e])))}function Ta(e=!1){const t=ke,n=t.l.u;if(!n)return;let a=()=>pt(t.s);if(e){let e=0,n={};const r=Tt(()=>{let a=!1;const r=t.s;for(const e in r)r[e]!==n[e]&&(n[e]=r[e],a=!0);return a&&e++,e});a=()=>he(r)}n.b.length&&jt(()=>{Na(t,a),Ct(n.b)}),Et(()=>{const e=W(()=>n.m.map(St));return()=>{for(const t of e)"function"==typeof t&&t()}}),n.a.length&&Et(()=>{Na(t,a),Ct(n.a)})}function Na(e,t){if(e.l.s)for(const t of e.l.s)he(t);t()}function La(e){var t=ye(0);return function(){return 1===arguments.length?(de(t,he(t)+1),arguments[0]):(he(t),e())}}function Ma(e,t){var n=e.$$events?.[t.type],a=T(n)?n.slice():null==n?[]:[n];for(var r of a)r.call(this,t)}function Oa(e,t,n){e.$$events||={},e.$$events[t]||=[],e.$$events[t].push(n)}function Aa(e){for(var t in e)t in this&&(this[t]=e[t])}function Ba(e,t,n,a,r,s){Nt(t,()=>{var e=!1;Le(()=>{if(!e){var[t,r]=It(n);if(!r){var s=a(),o=!1,i=Le(()=>{o||t[s]});o=!0,null===i.deps&&(Mt(),e=!0)}}})})}function za(e,...t){return W(()=>{try{let n=!1;const a=[];for(const e of t)e&&"object"==typeof e&&U in e?(a.push(Ht(e,!0)),n=!0):a.push(e);n&&(Ot(e),console.log("%c[snapshot]","color: grey",...a))}catch{}}),t}export{ue as FILENAME,fe as HMR,ft as NAMESPACE_SVG,Pn as action,_e as active_effect,Oa as add_legacy_event_listener,fn as add_locations,Bn as animation,Dt as append,Fn as append_styles,sn as assign,on as assign_async,yn as async,Wt as attach,kn as await,Gn as bind_active_element,aa as bind_buffered,Un as bind_checked,xa as bind_content_editable,na as bind_current_time,wa as bind_element_size,ia as bind_ended,ea as bind_files,Ea as bind_focused,Kn as bind_group,da as bind_muted,va as bind_online,ua as bind_paused,la as bind_playback_rate,sa as bind_played,pa as bind_prop,ja as bind_property,ca as bind_ready_state,ya as bind_resize_observer,ra as bind_seekable,oa as bind_seeking,$a as bind_this,Hn as bind_value,fa as bind_volume,Ca as bind_window_scroll,Sa as bind_window_size,Ma as bubble_event,bn as check_target,un as cleanup_styles,Sn as component,hn as create_ownership_validator,jn as css_props,Yn as customizable_select,pt as deep_read_state,nt as effect,Y as effect_tracking,Rn as element,nn as equals,He as flush,he as get,qn as head,pn as hmr,Ta as init,gn as inspect,xn as key,_n as legacy_api,za as log_if_contains_state,Xe as mutable_source,rt as noop,La as reactive_import,Le as render_effect,bt as reset,Nt as run_after_blockers,Cn as sanitize_slots,Jn as selectedcontent,de as set,En as slot,Ht as snapshot,tn as strict_equals,Zt as tag,Qt as tag_proxy,yt as tick,Vt as trace,zn as transition,W as untrack,Aa as update_legacy_props,Et as user_effect,jt as user_pre_effect,Ba as validate_binding,wn as validate_snippet_args};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunks/chunk-
|
|
1
|
+
import"../chunks/chunk-DQhQpYBr.js";export{H as asClassComponent,I as createBubbler,c as createClassComponent,J as handlers,K as nonpassive,y as once,L as passive,A as preventDefault,M as run,C as self,D as stopImmediatePropagation,E as stopPropagation,F as trusted}from"../chunks/chunk-dcWYlI_G.js";import"../chunks/chunk-DNUkGPCL.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunks/chunk-
|
|
1
|
+
import"../chunks/chunk-B5CK1uiS.js";import{M as t}from"../chunks/chunk-DE7YsbjM.js";import{w as e}from"../chunks/chunk-DLMzDTGN.js";import{r as s,l as r}from"../chunks/chunk-DhgH0pN2.js";import{a5 as n,r as i,a as o,a6 as a,n as u,g as c}from"../chunks/chunk-DQhQpYBr.js";import{linear as f}from"./easing.js";function h(t){return"[object Date]"===Object.prototype.toString.call(t)}function m(t,e,s,r){if("number"==typeof s||h(s)){const n=r-s,i=(s-e)/(t.dt||1/60),o=(i+(t.opts.stiffness*n-t.opts.damping*i)*t.inv_mass)*t.dt;return Math.abs(o)<t.opts.precision&&Math.abs(n)<t.opts.precision?r:(t.settled=!1,h(s)?new Date(s.getTime()+o):s+o)}if(Array.isArray(s))return s.map((n,i)=>m(t,e[i],s[i],r[i]));if("object"==typeof s){const n={};for(const i in s)n[i]=m(t,e[i],s[i],r[i]);return n}throw new Error(`Cannot spring ${typeof s} values`)}function l(t,n={}){const i=e(t),{stiffness:o=.15,damping:a=.8,precision:u=.01}=n;let c,f,h,l=t,p=t,d=1,g=0,v=!1;function b(e,n={}){p=e;const o=h={};if(null==t||n.hard||k.stiffness>=1&&k.damping>=1)return v=!0,c=s.now(),l=e,i.set(t=p),Promise.resolve();if(n.soft){const t=!0===n.soft?.5:+n.soft;g=1/(60*t),d=0}return f||(c=s.now(),v=!1,f=r(e=>{if(v)return v=!1,f=null,!1;d=Math.min(d+g,1);const s=Math.min(e-c,1e3/30),r={inv_mass:d,opts:k,settled:!0,dt:60*s/1e3},n=m(r,l,t,p);return c=e,l=t,i.set(t=n),r.settled&&(f=null),!r.settled})),new Promise(t=>{f.promise.then(()=>{o===h&&t()})})}const k={set:b,update:(e,s)=>b(e(p,t),s),subscribe:i.subscribe,stiffness:o,damping:a,precision:u};return k}class p{#t=n(.15);#e=n(.8);#s=n(.01);#r;#n;#i=void 0;#o=0;#a=1;#u=0;#c=null;#f=null;constructor(t,e={}){this.#r=n(t),this.#n=n(t),"number"==typeof e.stiffness&&(this.#t.v=d(e.stiffness,0,1)),"number"==typeof e.damping&&(this.#e.v=d(e.damping,0,1)),"number"==typeof e.precision&&(this.#s.v=e.precision)}static of(t,e){const s=new p(t(),e);return i(()=>{s.set(t())}),s}#h(t){if(o(this.#n,t),this.#r.v??=t,this.#i??=this.#r.v,!this.#c){this.#o=s.now();var e=1e3/(60*this.#u);this.#c??=r(t=>{this.#a=Math.min(this.#a+e,1);const s=Math.min(t-this.#o,1e3/30),r={inv_mass:this.#a,opts:{stiffness:this.#t.v,damping:this.#e.v,precision:this.#s.v},settled:!0,dt:60*s/1e3};var n=m(r,this.#i,this.#r.v,this.#n.v);return this.#i=this.#r.v,this.#o=t,o(this.#r,n),r.settled&&(this.#c=null),!r.settled})}return this.#c.promise}set(t,e){if(this.#f?.reject(new Error("Aborted")),e?.instant||void 0===this.#r.v)return this.#c?.abort(),this.#c=null,o(this.#r,o(this.#n,t)),this.#i=t,Promise.resolve();e?.preserveMomentum&&(this.#a=0,this.#u=e.preserveMomentum);var s=this.#f=a();return s.promise.catch(u),this.#h(t).then(()=>{s===this.#f&&s.resolve(void 0)}),s.promise}get current(){return c(this.#r)}get damping(){return c(this.#e)}set damping(t){o(this.#e,d(t,0,1))}get precision(){return c(this.#s)}set precision(t){o(this.#s,t)}get stiffness(){return c(this.#t)}set stiffness(t){o(this.#t,d(t,0,1))}get target(){return c(this.#n)}set target(t){this.set(t)}}function d(t,e,s){return Math.max(e,Math.min(s,t))}function g(t,e){if(t===e||t!=t)return()=>t;const s=typeof t;if(s!==typeof e||Array.isArray(t)!==Array.isArray(e))throw new Error("Cannot interpolate values of different type");if(Array.isArray(t)){const s=e.map((e,s)=>g(t[s],e));return t=>s.map(e=>e(t))}if("object"===s){if(!t||!e)throw new Error("Object cannot be null");if(h(t)&&h(e)){const s=t.getTime(),r=e.getTime()-s;return t=>new Date(s+t*r)}const s=Object.keys(e),r={};return s.forEach(s=>{r[s]=g(t[s],e[s])}),t=>{const e={};return s.forEach(s=>{e[s]=r[s](t)}),e}}if("number"===s){const s=e-t;return e=>t+e*s}return()=>e}function v(t,n={}){const i=e(t);let o,a=t;function u(e,u){if(a=e,null==t)return i.set(t=e),Promise.resolve();let c=o,h=!1,{delay:m=0,duration:l=400,easing:p=f,interpolate:d=g}={...n,...u};if(0===l)return c&&(c.abort(),c=null),i.set(t=a),Promise.resolve();const v=s.now()+m;let b;return o=r(s=>{if(s<v)return!0;h||(b=d(t,e),"function"==typeof l&&(l=l(t,e)),h=!0),c&&(c.abort(),c=null);const r=s-v;return r>l?(i.set(t=e),!1):(i.set(t=b(p(r/l))),!0)}),o.promise}return{set:u,update:(e,s)=>u(e(a,t),s),subscribe:i.subscribe}}class b{#r;#n;#m;#c=null;constructor(t,e={}){this.#r=n(t),this.#n=n(t),this.#m=e}static of(t,e){const s=new b(t(),e);return i(()=>{s.set(t())}),s}set(t,e){o(this.#n,t);let{delay:n=0,duration:i=400,easing:a=f,interpolate:u=g}={...this.#m,...e};if(0===i)return this.#c?.abort(),o(this.#r,t),Promise.resolve();const c=s.now()+n;let h,m=!1,l=this.#c;return this.#c=r(e=>{if(e<c)return!0;if(!m){m=!0;const e=this.#r.v;h=u(e,t),"function"==typeof i&&(i=i(e,t)),l?.abort(),l=null}const s=e-c;return s>i?(o(this.#r,t),!1):(o(this.#r,h(a(s/i))),!0)}),this.#c.promise}get current(){return c(this.#r)}get target(){return c(this.#n)}set target(t){this.set(t)}}const k=new t("(prefers-reduced-motion: reduce)");export{p as Spring,b as Tween,k as prefersReducedMotion,l as spring,v as tweened};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as n}from"../chunks/chunk-
|
|
1
|
+
import{o as n}from"../chunks/chunk-C8W1Nv_i.js";import{R as e}from"../chunks/chunk-DptTvy3T.js";import{s as i,g as o,a as w}from"../chunks/chunk-DQhQpYBr.js";import"../chunks/chunk-B5CK1uiS.js";const r=new e(()=>window.scrollX,e=>n(window,"scroll",e)),t=new e(()=>window.scrollY,e=>n(window,"scroll",e)),s=new e(()=>window.innerWidth,e=>n(window,"resize",e)),d=new e(()=>window.innerHeight,e=>n(window,"resize",e)),c=new e(()=>window.outerWidth,e=>n(window,"resize",e)),a=new e(()=>window.outerHeight,e=>n(window,"resize",e)),u=new e(()=>window.screenLeft,n=>{let e=window.screenLeft,i=requestAnimationFrame(function o(){i=requestAnimationFrame(o),e!==(e=window.screenLeft)&&n()});return()=>{cancelAnimationFrame(i)}}),l=new e(()=>window.screenTop,n=>{let e=window.screenTop,i=requestAnimationFrame(function o(){i=requestAnimationFrame(o),e!==(e=window.screenTop)&&n()});return()=>{cancelAnimationFrame(i)}}),m=new e(()=>navigator.onLine,e=>{const i=n(window,"online",e),o=n(window,"offline",e);return()=>{i(),o()}}),h=new class{#n=i(window.devicePixelRatio);#e(){const e=n(window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),"change",()=>{w(this.#n,window.devicePixelRatio),e(),this.#e()})}constructor(){this.#e()}get current(){return o(this.#n),window.devicePixelRatio}};export{h as devicePixelRatio,d as innerHeight,s as innerWidth,m as online,a as outerHeight,c as outerWidth,u as screenLeft,l as screenTop,r as scrollX,t as scrollY};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a5 as s,c as e,g as r,b as t,a1 as i,a as h,am as a,s as u,D as o}from"../chunks/chunk-DQhQpYBr.js";import"../chunks/chunk-B5CK1uiS.js";export{M as MediaQuery}from"../chunks/chunk-DE7YsbjM.js";export{c as createSubscriber}from"../chunks/chunk-s84dpggu.js";var n=!1;class p extends Date{#s=s(super.getTime());#e=new Map;#r=e;constructor(...s){super(...s),n||this.#t()}#t(){n=!0;var s=p.prototype,a=Date.prototype,u=Object.getOwnPropertyNames(a);for(const o of u)(o.startsWith("get")||o.startsWith("to")||"valueOf"===o)&&(s[o]=function(...s){if(s.length>0)return r(this.#s),a[o].apply(this,s);var h=this.#e.get(o);if(void 0===h){const u=e;t(this.#r),h=i(()=>(r(this.#s),a[o].apply(this,s))),this.#e.set(o,h),t(u)}return r(h)}),o.startsWith("set")&&(s[o]=function(...s){var e=a[o].apply(this,s);return h(this.#s,a.getTime.call(this)),e})}}var l=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],v=["difference","intersection","symmetricDifference","union"],d=!1;class m extends Set{#i=new Map;#h=s(0);#a=s(0);#u=a||-1;constructor(s){if(super(),s){for(var e of s)super.add(e);this.#a.v=super.size}d||this.#t()}#o(e){return a===this.#u?s(e):u(e)}#t(){d=!0;var s=m.prototype,e=Set.prototype;for(const t of l)s[t]=function(...s){return r(this.#h),e[t].apply(this,s)};for(const t of v)s[t]=function(...s){r(this.#h);var i=e[t].apply(this,s);return new m(i)}}has(s){var e=super.has(s),t=this.#i,i=t.get(s);if(void 0===i){if(!e)return r(this.#h),!1;i=this.#o(!0),t.set(s,i)}return r(i),e}add(s){return super.has(s)||(super.add(s),h(this.#a,super.size),o(this.#h)),this}delete(s){var e=super.delete(s),r=this.#i,t=r.get(s);return void 0!==t&&(r.delete(s),h(t,!1)),e&&(h(this.#a,super.size),o(this.#h)),e}clear(){if(0!==super.size){super.clear();var s=this.#i;for(var e of s.values())h(e,!1);s.clear(),h(this.#a,0),o(this.#h)}}keys(){return this.values()}values(){return r(this.#h),super.values()}entries(){return r(this.#h),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return r(this.#a)}}class f extends Map{#i=new Map;#h=s(0);#a=s(0);#u=a||-1;constructor(s){if(super(),s){for(var[e,r]of s)super.set(e,r);this.#a.v=super.size}}#o(e){return a===this.#u?s(e):u(e)}has(s){var e=this.#i,t=e.get(s);if(void 0===t){if(!super.has(s))return r(this.#h),!1;t=this.#o(0),e.set(s,t)}return r(t),!0}forEach(s,e){this.#n(),super.forEach(s,e)}get(s){var e=this.#i,t=e.get(s);if(void 0===t){if(!super.has(s))return void r(this.#h);t=this.#o(0),e.set(s,t)}return r(t),super.get(s)}getOrInsert(s,e){return super.has(s)||this.set(s,e),this.get(s)}getOrInsertComputed(s,e){return super.has(s)||this.set(s,e(s)),this.get(s)}set(s,e){var r=this.#i,t=r.get(s),i=super.get(s),a=super.set(s,e),u=this.#h;if(void 0===t)t=this.#o(0),r.set(s,t),h(this.#a,super.size),o(u);else if(i!==e){o(t);var n=null===u.reactions?null:new Set(u.reactions);(null===n||!t.reactions?.every(s=>n.has(s)))&&o(u)}return a}delete(s){var e=this.#i,r=e.get(s),t=super.delete(s);return void 0!==r&&(e.delete(s),h(r,-1)),t&&(h(this.#a,super.size),o(this.#h)),t}clear(){if(0!==super.size){super.clear();var s=this.#i;for(var e of(h(this.#a,0),s.values()))h(e,-1);o(this.#h),s.clear()}}#n(){r(this.#h);var s=this.#i;if(this.#a.v!==s.size)for(var e of super.keys())if(!s.has(e)){var t=this.#o(0);s.set(e,t)}for([,t]of this.#i)r(t)}keys(){return r(this.#h),super.keys()}values(){return this.#n(),super.values()}entries(){return this.#n(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return r(this.#a),super.size}}const g=Symbol("replace");class z extends URLSearchParams{#h=s(0);#p=function(){return y}();#c=!1;#l(){if(!this.#p||this.#c)return;this.#c=!0;const s=super.toString();this.#p.search=s&&`?${s}`,this.#c=!1}[g](s){if(!this.#c&&s.toString()!==super.toString()){this.#c=!0;for(const s of[...super.keys()])super.delete(s);for(const[e,r]of s)super.append(e,r);o(this.#h),this.#c=!1}}append(s,e){super.append(s,e),this.#l(),o(this.#h)}delete(s,e){var r=super.has(s,e);super.delete(s,e),r&&(this.#l(),o(this.#h))}get(s){return r(this.#h),super.get(s)}getAll(s){return r(this.#h),super.getAll(s)}has(s,e){return r(this.#h),super.has(s,e)}keys(){return r(this.#h),super.keys()}forEach(s,e){r(this.#h),super.forEach(s,e)}set(s,e){var r=super.getAll(s);super.set(s,e);var t=super.getAll(s);(r.length!==t.length||r.some((s,e)=>s!==t[e]))&&(this.#l(),o(this.#h))}sort(){super.sort(),this.#l(),o(this.#h)}toString(){return r(this.#h),super.toString()}values(){return r(this.#h),super.values()}entries(){return r(this.#h),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return r(this.#h),super.size}}let y=null;class w extends URL{#v=s(super.protocol);#d=s(super.username);#m=s(super.password);#f=s(super.hostname);#g=s(super.port);#z=s(super.pathname);#y=s(super.hash);#w=s(super.search);#S;constructor(s,e){super(s=new URL(s,e)),y=this,this.#S=new z(s.searchParams),y=null}get hash(){return r(this.#y)}set hash(s){super.hash=s,h(this.#y,super.hash)}get host(){return r(this.#f),r(this.#g),super.host}set host(s){super.host=s,h(this.#f,super.hostname),h(this.#g,super.port)}get hostname(){return r(this.#f)}set hostname(s){super.hostname=s,h(this.#f,super.hostname)}get href(){return r(this.#v),r(this.#d),r(this.#m),r(this.#f),r(this.#g),r(this.#z),r(this.#y),r(this.#w),super.href}set href(s){super.href=s,h(this.#v,super.protocol),h(this.#d,super.username),h(this.#m,super.password),h(this.#f,super.hostname),h(this.#g,super.port),h(this.#z,super.pathname),h(this.#y,super.hash),h(this.#w,super.search),this.#S[g](super.searchParams)}get password(){return r(this.#m)}set password(s){super.password=s,h(this.#m,super.password)}get pathname(){return r(this.#z)}set pathname(s){super.pathname=s,h(this.#z,super.pathname)}get port(){return r(this.#g)}set port(s){super.port=s,h(this.#g,super.port)}get protocol(){return r(this.#v)}set protocol(s){super.protocol=s,h(this.#v,super.protocol),h(this.#g,super.port)}get search(){return r(this.#w)}set search(s){super.search=s,h(this.#w,super.search),this.#S[g](super.searchParams)}get username(){return r(this.#d)}set username(s){super.username=s,h(this.#d,super.username)}get origin(){return r(this.#v),r(this.#f),r(this.#g),super.origin}get searchParams(){return this.#S}toString(){return this.href}toJSON(){return this.href}}export{p as SvelteDate,f as SvelteMap,m as SvelteSet,w as SvelteURL,z as SvelteURLSearchParams};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as
|
|
1
|
+
import{e as s,b as e,c as t,d as n,f as u,h as c,r as o}from"../chunks/chunk-DQhQpYBr.js";import{g as i,w as b}from"../chunks/chunk-DLMzDTGN.js";export{d as derived,r as readable,a as readonly}from"../chunks/chunk-DLMzDTGN.js";import{c as f}from"../chunks/chunk-s84dpggu.js";function h(r,s){var a=u,i=t,f=r();const h=b(f,s=>{var b,h=f!==r(),k=t,d=u;e(i),n(a);try{b=c(()=>{o(()=>{const e=r();h&&s(e)})})}finally{e(k),n(d)}return h=!0,b});return s?{set:s,update:e=>s(e(r())),subscribe:h.subscribe}:{subscribe:h.subscribe}}function k(r){let e;const t=f(s=>{let t=!1;const n=r.subscribe(r=>{e=r,t&&s()});return t=!0,n});function n(){return s()?(t(),e):i(r)}return"set"in r?{get current(){return n()},set current(s){r.set(s)}}:{get current(){return n()}}}export{k as fromStore,i as get,h as toStore,b as writable};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=t=>t;function n(t){const n=t-1;return n*n*n+1}function e(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function a(t){const n="string"==typeof t&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return n?[parseFloat(n[1]),n[2]||"px"]:[t,"px"]}function o(t,{delay:n=0,duration:o=400,easing:r=e,amount:i=5,opacity:s=0}={}){const d=getComputedStyle(t),
|
|
1
|
+
const t=t=>t;function n(t){const n=t-1;return n*n*n+1}function e(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function a(t){const n="string"==typeof t&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return n?[parseFloat(n[1]),n[2]||"px"]:[t,"px"]}function o(t,n,e){return Number.isNaN(n)?"":`${t}: ${e*n}px;`}function r(t,{delay:n=0,duration:o=400,easing:r=e,amount:i=5,opacity:s=0}={}){const d=getComputedStyle(t),c=+d.opacity,u="none"===d.filter?"":d.filter,p=c*(1-s),[l,y]=a(i);return{delay:n,duration:o,easing:r,css:(t,n)=>`opacity: ${c-p*n}; filter: ${u} blur(${n*l}${y});`}}function i(n,{delay:e=0,duration:a=400,easing:o=t}={}){const r=+getComputedStyle(n).opacity;return{delay:e,duration:a,easing:o,css:t=>"opacity: "+t*r}}function s(t,{delay:e=0,duration:o=400,easing:r=n,x:i=0,y:s=0,opacity:d=0}={}){const c=getComputedStyle(t),u=+c.opacity,p="none"===c.transform?"":c.transform,l=u*(1-d),[y,f]=a(i),[g,$]=a(s);return{delay:e,duration:o,easing:r,css:(t,n)=>`\n\t\t\ttransform: ${p} translate(${(1-t)*y}${f}, ${(1-t)*g}${$});\n\t\t\topacity: ${u-l*n}`}}function d(t,{delay:e=0,duration:a=400,easing:r=n,axis:i="y"}={}){const s=getComputedStyle(t),d=+s.opacity,c="y"===i?"height":"width",u=parseFloat(s[c]),p="y"===i?["top","bottom"]:["left","right"],l=p.map(t=>`${t[0].toUpperCase()}${t.slice(1)}`),y=parseFloat(s[`padding${l[0]}`]),f=parseFloat(s[`padding${l[1]}`]),g=parseFloat(s[`margin${l[0]}`]),$=parseFloat(s[`margin${l[1]}`]),m=parseFloat(s[`border${l[0]}Width`]),h=parseFloat(s[`border${l[1]}Width`]);return{delay:e,duration:a,easing:r,css:t=>`overflow: hidden;opacity: ${Math.min(20*t,1)*d};`+o(c,u,t)+o(`padding-${p[0]}`,y,t)+o(`padding-${p[1]}`,f,t)+o(`margin-${p[0]}`,g,t)+o(`margin-${p[1]}`,$,t)+o(`border-${p[0]}-width`,m,t)+o(`border-${p[1]}-width`,h,t)+`min-${c}: 0`}}function c(t,{delay:e=0,duration:a=400,easing:o=n,start:r=0,opacity:i=0}={}){const s=getComputedStyle(t),d=+s.opacity,c="none"===s.transform?"":s.transform,u=1-r,p=d*(1-i);return{delay:e,duration:a,easing:o,css:(t,n)=>`\n\t\t\ttransform: ${c} scale(${1-u*n});\n\t\t\topacity: ${d-p*n}\n\t\t`}}function u(t,{delay:n=0,speed:a,duration:o,easing:r=e}={}){let i=t.getTotalLength();const s=getComputedStyle(t);return"butt"!==s.strokeLinecap&&(i+=parseInt(s.strokeWidth)),void 0===o?o=void 0===a?800:i/a:"function"==typeof o&&(o=o(i)),{delay:n,duration:o,easing:r,css:(t,n)=>`\n\t\t\tstroke-dasharray: ${i};\n\t\t\tstroke-dashoffset: ${n*i};\n\t\t`}}function p(t,n){for(const e in n)t[e]=n[e];return t}function l({fallback:t,...e}){const a=new Map,o=new Map;function r(a,o,r){return(i,s)=>(a.set(s.key,i),()=>{if(o.has(s.key)){const t=o.get(s.key);return o.delete(s.key),function(t,a,o){const{delay:r=0,duration:i=t=>30*Math.sqrt(t),easing:s=n}=p(p({},e),o),d=t.getBoundingClientRect(),c=a.getBoundingClientRect(),u=d.left-c.left,l=d.top-c.top,y=d.width/c.width,f=d.height/c.height,g=Math.sqrt(u*u+l*l),$=getComputedStyle(a),m="none"===$.transform?"":$.transform,h=+$.opacity;return{delay:r,duration:"function"==typeof i?i(g):i,easing:s,css:(t,n)=>`\n\t\t\t opacity: ${t*h};\n\t\t\t transform-origin: top left;\n\t\t\t transform: ${m} translate(${n*u}px,${n*l}px) scale(${t+(1-t)*y}, ${t+(1-t)*f});\n\t\t `}}(t,i,s)}return a.delete(s.key),t&&t(i,s,r)})}return[r(o,a,!1),r(a,o,!0)]}export{r as blur,l as crossfade,u as draw,i as fade,s as fly,c as scale,d as slide};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,w as t}from"./chunks/chunk-9EZydhXt.js";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function o(e,t,r){return e.concat(t).map(function(e){return i(e,r)})}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function h(e,t,r){var n={};return r.isMergeableObject(e)&&s(e).forEach(function(t){n[t]=i(e[t],r)}),s(t).forEach(function(o){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(a(e,o)&&r.isMergeableObject(t[o])?n[o]=function(e,t){if(!t.customMerge)return l;var r=t.customMerge(e);return"function"==typeof r?r:l}(o,r)(e[o],t[o],r):n[o]=i(t[o],r))}),n}function l(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||o,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=i;var s=Array.isArray(t);return s===Array.isArray(e)?s?n.arrayMerge(e,t,n):h(e,t,n):i(t,n)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,r){return l(e,r,t)},{})};var u=l,c=function(e,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},c(e,t)};function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var p=function(){return p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},p.apply(this,arguments)};function m(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function g(e,t){var r=t&&t.cache?t.cache:A,n=t&&t.serializer?t.serializer:B;return(t&&t.strategy?t.strategy:d)(e,{cache:r,serializer:n})}function E(e,t,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),s=t.get(o);return void 0===s&&(s=e.call(this,n),t.set(o,s)),s}function b(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function y(e,t,r,n,i){return r.bind(t,e,n,i)}function d(e,t){return y(e,this,1===e.length?E:b,t.cache.create(),t.serializer)}"function"==typeof SuppressedError&&SuppressedError;var v,H,T,B=function(){return JSON.stringify(arguments)},_=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e}(),A={create:function(){return new _}},P={variadic:function(e,t){return y(e,this,b,t.cache.create(),t.serializer)}};function L(e){return e.type===H.literal}function S(e){return e.type===H.argument}function O(e){return e.type===H.number}function N(e){return e.type===H.date}function w(e){return e.type===H.time}function I(e){return e.type===H.select}function M(e){return e.type===H.plural}function C(e){return e.type===H.pound}function R(e){return e.type===H.tag}function U(e){return!(!e||"object"!=typeof e||e.type!==T.number)}function G(e){return!(!e||"object"!=typeof e||e.type!==T.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(v||(v={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(H||(H={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(T||(T={}));var D=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,F=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function k(e){var t={};return e.replace(F,function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"long":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var j=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function V(e){return e.replace(/^(.*?)-/,"")}var x=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,X=/^(@+)?(\+|#+)?[rs]?$/g,K=/(\*)(0+)|(#+)(0+)|(0+)/g,Y=/^(0+)$/;function Z(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(X,function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""}),t}function W(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function z(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Y.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function $(e){var t=W(e);return t||{}}function J(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=V(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=p(p(p({},t),{notation:"scientific"}),i.options.reduce(function(e,t){return p(p({},e),$(t))},{}));continue;case"engineering":t=p(p(p({},t),{notation:"engineering"}),i.options.reduce(function(e,t){return p(p({},e),$(t))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(K,function(e,r,n,i,o,s){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Y.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(x.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(x,function(e,r,n,i,o,s){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&s?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+s.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});var o=i.options[0];"w"===o?t=p(p({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=p(p({},t),Z(o)))}else if(X.test(i.stem))t=p(p({},t),Z(i.stem));else{var s=W(i.stem);s&&(t=p(p({},t),s));var a=z(i.stem);a&&(t=p(p({},t),a))}}return t}var Q,q={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function ee(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(q[r||""]||q[n||""]||q["".concat(n,"-001")]||q["001"])[0]}var te=new RegExp("^".concat(D.source,"*")),re=new RegExp("".concat(D.source,"*$"));function ne(e,t){return{start:e,end:t}}var ie=!!String.prototype.startsWith&&"_a".startsWith("a",1),oe=!!String.fromCodePoint,se=!!Object.fromEntries,ae=!!String.prototype.codePointAt,he=!!String.prototype.trimStart,le=!!String.prototype.trimEnd,ue=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ce=!0;try{ce="a"===(null===(Q=de("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Q?void 0:Q[0])}catch(e){ce=!1}var fe,pe=ie?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},me=oe?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;i>o;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},ge=se?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],s=i[1];t[o]=s}return t},Ee=ae?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},be=he?function(e){return e.trimStart()}:function(e){return e.replace(te,"")},ye=le?function(e){return e.trimEnd()}:function(e){return e.replace(re,"")};function de(e,t){return new RegExp(e,t)}if(ce){var ve=de("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");fe=function(e,t){var r;return ve.lastIndex=t,null!==(r=ve.exec(e)[1])&&void 0!==r?r:""}}else fe=function(e,t){for(var r=[];;){var n=Ee(e,t);if(void 0===n||Ae(n)||Pe(n))break;r.push(n),t+=n>=65536?2:1}return me.apply(void 0,r)};var He,Te=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(v.UNMATCHED_CLOSING_TAG,ne(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&Be(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:H.pound,location:ne(s,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:H.literal,value:"<".concat(n,"/>"),location:ne(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Be(this.char()))return this.error(v.INVALID_TAG,ne(s,this.clonePosition()));var a=this.clonePosition();return n!==this.parseTagName()?this.error(v.UNMATCHED_CLOSING_TAG,ne(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:H.tag,value:n,children:o,location:ne(r,this.clonePosition())},err:null}:this.error(v.INVALID_TAG,ne(s,this.clonePosition())))}return this.error(v.UNCLOSED_TAG,ne(r,this.clonePosition()))}return this.error(v.INVALID_TAG,ne(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&_e(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{var o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var a=ne(r,this.clonePosition());return{val:{type:H.literal,value:n,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Be(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return me.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),me(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,ne(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(v.EMPTY_ARGUMENT,ne(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(v.MALFORMED_ARGUMENT,ne(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,ne(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:H.argument,value:n,location:ne(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,ne(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(v.MALFORMED_ARGUMENT,ne(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=fe(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:ne(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(v.EXPECT_ARGUMENT_TYPE,ne(o,a));case"number":case"date":case"time":this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(m=ye(y.val)).length)return this.error(v.EXPECT_ARGUMENT_STYLE,ne(this.clonePosition(),this.clonePosition()));h={style:m,styleLocation:ne(l,this.clonePosition())}}if((d=this.tryParseArgumentClose(n)).err)return d;var u=ne(n,this.clonePosition());if(h&&pe(null==h?void 0:h.style,"::",0)){var c=be(h.style.slice(2));if("number"===s)return(y=this.parseNumberSkeletonFromString(c,h.styleLocation)).err?y:{val:{type:H.number,value:r,location:u,style:y.val},err:null};if(0===c.length)return this.error(v.EXPECT_DATE_TIME_SKELETON,u);var f=c;this.locale&&(f=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),h=ee(t);for("H"!=h&&"k"!=h||(a=0);a-- >0;)r+="a";for(;s-- >0;)r=h+r}else r+="J"===i?"H":i}return r}(c,this.locale));var m={type:T.dateTime,pattern:f,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?k(f):{}};return{val:{type:"date"===s?H.date:H.time,value:r,location:u,style:m},err:null}}return{val:{type:"number"===s?H.number:"date"===s?H.date:H.time,value:r,location:u,style:null!==(i=null==h?void 0:h.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var g=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS,ne(g,p({},g)));this.bumpSpace();var E=this.parseIdentifierIfPossible(),b=0;if("select"!==s&&"offset"===E.value){if(!this.bumpIf(":"))return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ne(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;this.bumpSpace(),E=this.parseIdentifierIfPossible(),b=y.val}var d,B=this.tryParsePluralOrSelectOptions(e,s,t,E);if(B.err)return B;if((d=this.tryParseArgumentClose(n)).err)return d;var _=ne(n,this.clonePosition());return"select"===s?{val:{type:H.select,value:r,options:ge(B.val),location:_},err:null}:{val:{type:H.plural,value:r,options:ge(B.val),offset:b,pluralType:"plural"===s?"cardinal":"ordinal",location:_},err:null};default:return this.error(v.INVALID_ARGUMENT_TYPE,ne(o,a))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,ne(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(v.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ne(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(j).filter(function(e){return e.length>0});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),a=0,h=s;a<h.length;a++)if(0===h[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:s})}return t}(e)}catch(e){return this.error(v.INVALID_NUMBER_SKELETON,t)}return{val:{type:T.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?J(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i,o=!1,s=[],a=new Set,h=n.value,l=n.location;;){if(0===h.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR,v.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=ne(u,this.clonePosition()),h=this.message.slice(u.offset,this.offset())}if(a.has(h))return this.error("select"===t?v.DUPLICATE_SELECT_ARGUMENT_SELECTOR:v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===h&&(o=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ne(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,r);if(p.err)return p;var m=this.tryParseArgumentClose(f);if(m.err)return m;s.push([h,{value:p.val,location:ne(f,this.clonePosition())}]),a.add(h),this.bumpSpace(),h=(i=this.parseIdentifierIfPossible()).value,l=i.location}return 0===s.length?this.error("select"===t?v.EXPECT_SELECT_ARGUMENT_SELECTOR:v.EXPECT_PLURAL_ARGUMENT_SELECTOR,ne(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(v.MISSING_OTHER_CLAUSE,ne(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}var a=ne(n,this.clonePosition());return i?ue(o*=r)?{val:o,err:null}:this.error(t,a):this.error(e,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Ee(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(pe(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ae(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function Be(e){return e>=97&&e<=122||e>=65&&e<=90}function _e(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Ae(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Pe(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Le(e){e.forEach(function(e){if(delete e.location,I(e)||M(e))for(var t in e.options)delete e.options[t].location,Le(e.options[t].value);else O(e)&&U(e.style)||(N(e)||w(e))&&G(e.style)?delete e.style.location:R(e)&&Le(e.children)})}function Se(e,t){void 0===t&&(t={}),t=p({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Te(e,t).parse();if(r.err){var n=SyntaxError(v[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||Le(r.val),r.val}!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(He||(He={}));var Oe,Ne=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return f(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),we=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),He.INVALID_VALUE,i)||this}return f(t,e),t}(Ne),Ie=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),He.INVALID_VALUE,n)||this}return f(t,e),t}(Ne),Me=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),He.MISSING_VALUE,r)||this}return f(t,e),t}(Ne);function Ce(e){return"function"==typeof e}function Re(e,t,r,n,i,o,s){if(1===e.length&&L(e[0]))return[{type:Oe.literal,value:e[0].value}];for(var a=[],h=0,l=e;h<l.length;h++){var u=l[h];if(L(u))a.push({type:Oe.literal,value:u.value});else if(C(u))"number"==typeof o&&a.push({type:Oe.literal,value:r.getNumberFormat(t).format(o)});else{var c=u.value;if(!i||!(c in i))throw new Me(c,s);var f=i[c];if(S(u))f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?Oe.literal:Oe.object,value:f});else if(N(u)){var p="string"==typeof u.style?n.date[u.style]:G(u.style)?u.style.parsedOptions:void 0;a.push({type:Oe.literal,value:r.getDateTimeFormat(t,p).format(f)})}else if(w(u)){p="string"==typeof u.style?n.time[u.style]:G(u.style)?u.style.parsedOptions:n.time.medium;a.push({type:Oe.literal,value:r.getDateTimeFormat(t,p).format(f)})}else if(O(u)){(p="string"==typeof u.style?n.number[u.style]:U(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),a.push({type:Oe.literal,value:r.getNumberFormat(t,p).format(f)})}else{if(R(u)){var m=u.children,g=u.value,E=i[g];if(!Ce(E))throw new Ie(g,"function",s);var b=E(Re(m,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(b)||(b=[b]),a.push.apply(a,b.map(function(e){return{type:"string"==typeof e?Oe.literal:Oe.object,value:e}}))}if(I(u)){if(!(y=u.options[f]||u.options.other))throw new we(u.value,f,Object.keys(u.options),s);a.push.apply(a,Re(y.value,t,r,n,i))}else if(M(u)){var y;if(!(y=u.options["=".concat(f)])){if(!Intl.PluralRules)throw new Ne('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',He.MISSING_INTL_API,s);var d=r.getPluralRules(t,{type:u.pluralType}).select(f-(u.offset||0));y=u.options[d]||u.options.other}if(!y)throw new we(u.value,f,Object.keys(u.options),s);a.push.apply(a,Re(y.value,t,r,n,i,f-(u.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===Oe.literal&&t.type===Oe.literal?r.value+=t.value:e.push(t),e},[])}(a)}function Ue(e,t){return t?Object.keys(e).reduce(function(r,n){var i,o;return r[n]=(i=e[n],(o=t[n])?p(p(p({},i||{}),o||{}),Object.keys(i).reduce(function(e,t){return e[t]=p(p({},i[t]),o[t]||{}),e},{})):i),r},p({},e)):e}function Ge(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Oe||(Oe={}));var De=function(){function e(t,r,n,i){void 0===r&&(r=e.defaultLocale);var o,s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce(function(e,t){return e.length&&t.type===Oe.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return Re(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=s.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var h=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(a,["formatters"]);this.ast=e.__parse(t,p(p({},h),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Ue(e.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:g(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,m([void 0],t,!1)))},{cache:Ge(o.number),strategy:P.variadic}),getDateTimeFormat:g(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,m([void 0],t,!1)))},{cache:Ge(o.dateTime),strategy:P.variadic}),getPluralRules:g(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,m([void 0],t,!1)))},{cache:Ge(o.pluralRules),strategy:P.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=Se,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const Fe={},ke=(e,t,r)=>r?(t in Fe||(Fe[t]={}),e in Fe[t]||(Fe[t][e]=r),r):r,je=(e,t)=>{if(null==t)return;if(t in Fe&&e in Fe[t])return Fe[t][e];const r=dt(t);for(let n=0;n<r.length;n++){const i=Ke(r[n],e);if(i)return ke(e,t,i)}};let Ve;const xe=t({});function Xe(e){return e in Ve}function Ke(e,t){if(!Xe(e))return null;const r=function(e){return Ve[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(e>0){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(r,t)}function Ye(e,...t){delete Fe[e],xe.update(r=>(r[e]=u.all([r[e]||{},...t]),r))}const Ze=e([xe],([e])=>Object.keys(e));xe.subscribe(e=>Ve=e);const We={};function ze(e){return We[e]}function $e(e){return null!=e&&dt(e).some(e=>{var t;return null==(t=ze(e))?void 0:t.size})}function Je(e,t){const r=Promise.all(t.map(t=>(function(e,t){We[e].delete(t),0===We[e].size&&delete We[e]}(e,t),t().then(e=>e.default||e))));return r.then(t=>Ye(e,...t))}const Qe={};function qe(e){if(!$e(e))return e in Qe?Qe[e]:Promise.resolve();const t=function(e){return dt(e).map(e=>{const t=ze(e);return[e,t?[...t]:[]]}).filter(([,e])=>e.length>0)}(e);return Qe[e]=Promise.all(t.map(([e,t])=>Je(e,t))).then(()=>{if($e(e))return qe(e);delete Qe[e]}),Qe[e]}function et(e,t){ze(e)||function(e){We[e]=new Set}(e);const r=ze(e);ze(e).has(t)||(Xe(e)||xe.update(t=>(t[e]={},t)),r.add(t))}var tt=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable;function it({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${dt(e).join('", "')}".${$e(vt())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`)}const ot={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function st(){return ot}function at(e){const t=e,{formats:r}=t,n=((e,t)=>{var r={};for(var n in e)rt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&tt)for(var n of tt(e))t.indexOf(n)<0&&nt.call(e,n)&&(r[n]=e[n]);return r})(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{De.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(t){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,null==n.handleMissingMessage?n.handleMissingMessage=it:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(ot,n,{initialLocale:i}),r&&("number"in r&&Object.assign(ot.formats.number,r.number),"date"in r&&Object.assign(ot.formats.date,r.date),"time"in r&&Object.assign(ot.formats.time,r.time)),Ht.set(i)}const ht=t(!1);var lt=Object.defineProperty,ut=Object.defineProperties,ct=Object.getOwnPropertyDescriptors,ft=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,gt=(e,t,r)=>t in e?lt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let Et;const bt=t(null);function yt(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function dt(e,t=st().fallbackLocale){const r=yt(e);return t?[...new Set([...r,...yt(t)])]:r}function vt(){return null!=Et?Et:void 0}bt.subscribe(e=>{Et=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const Ht=(Tt=((e,t)=>{for(var r in t||(t={}))pt.call(t,r)&>(e,r,t[r]);if(ft)for(var r of ft(t))mt.call(t,r)&>(e,r,t[r]);return e})({},bt),ut(Tt,ct({set:e=>{if(e&&function(e){if(null==e)return;const t=dt(e);for(let e=0;e<t.length;e++){const r=t[e];if(Xe(r))return r}}(e)&&$e(e)){const{loadingDelay:t}=st();let r;return"undefined"!=typeof window&&null!=vt()&&t?r=window.setTimeout(()=>ht.set(!0),t):ht.set(!0),qe(e).then(()=>{bt.set(e)}).finally(()=>{clearTimeout(r),ht.set(!1)})}return bt.set(e)}})));var Tt;const Bt=(e,t)=>{const r=e.split("&").find(e=>0===e.indexOf(`${t}=`));return r?r.split("=").pop():null},_t=(e,t)=>{const r=t.exec(e);return r&&r[1]||null},At=e=>"undefined"==typeof window?null:_t(window.location.hostname,e),Pt=e=>"undefined"==typeof window?null:_t(window.location.pathname,e),Lt=()=>"undefined"==typeof window?null:window.navigator.language||window.navigator.languages[0],St=e=>"undefined"==typeof window?null:Bt(window.location.search.substr(1),e),Ot=e=>"undefined"==typeof window?null:Bt(window.location.hash.substr(1),e),Nt=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}};var wt=Object.defineProperty,It=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,Rt=(e,t,r)=>t in e?wt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ut=(e,t)=>{for(var r in t||(t={}))Mt.call(t,r)&&Rt(e,r,t[r]);if(It)for(var r of It(t))Ct.call(t,r)&&Rt(e,r,t[r]);return e},Gt=(e,t)=>{var r={};for(var n in e)Mt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&It)for(var n of It(e))t.indexOf(n)<0&&Ct.call(e,n)&&(r[n]=e[n]);return r};const Dt=(e,t)=>{const{formats:r}=st();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Ft=Nt(e=>{var t=e,{locale:r,format:n}=t,i=Gt(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Dt("number",n)),new Intl.NumberFormat(r,i)}),kt=Nt(e=>{var t=e,{locale:r,format:n}=t,i=Gt(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Dt("date",n):0===Object.keys(i).length&&(i=Dt("date","short")),new Intl.DateTimeFormat(r,i)}),jt=Nt(e=>{var t=e,{locale:r,format:n}=t,i=Gt(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Dt("time",n):0===Object.keys(i).length&&(i=Dt("time","short")),new Intl.DateTimeFormat(r,i)}),Vt=(e={})=>{var t=e,{locale:r=vt()}=t,n=Gt(t,["locale"]);return Ft(Ut({locale:r},n))},xt=(e={})=>{var t=e,{locale:r=vt()}=t,n=Gt(t,["locale"]);return kt(Ut({locale:r},n))},Xt=(e={})=>{var t=e,{locale:r=vt()}=t,n=Gt(t,["locale"]);return jt(Ut({locale:r},n))},Kt=Nt((e,t=vt())=>new De(e,t,st().formats,{ignoreTag:st().ignoreTag})),Yt=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:h=vt(),default:l}=s;if(null==h)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=je(e,h);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!=(o=null!=(i=null==(n=(r=st()).handleMissingMessage)?void 0:n.call(r,{locale:h,id:e,defaultValue:l}))?i:l)?o:e;if(!a)return u;let c=u;try{c=Kt(u,h).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c},Zt=(e,t)=>Xt(t).format(e),Wt=(e,t)=>xt(t).format(e),zt=(e,t)=>Vt(t).format(e),$t=(e,t=vt())=>je(e,t),Jt=e([Ht,xe],()=>Yt),Qt=e([Ht],()=>Zt),qt=e([Ht],()=>Wt),er=e([Ht],()=>zt),tr=e([Ht,xe],()=>$t);function rr(e){let t;const r=e.subscribe(e=>t=e),n=(...e)=>t(...e);return n.freeze=r,n}function nr(e){return e}function ir(e){return qe(e||vt()||st().initialLocale)}export{Jt as _,Ye as addMessages,qt as date,nr as defineMessages,xe as dictionary,Jt as format,xt as getDateFormatter,Ot as getLocaleFromHash,At as getLocaleFromHostname,Lt as getLocaleFromNavigator,Pt as getLocaleFromPathname,St as getLocaleFromQueryString,Kt as getMessageFormatter,Vt as getNumberFormatter,Xt as getTimeFormatter,at as init,ht as isLoading,tr as json,Ht as locale,Ze as locales,er as number,et as register,Jt as t,Qt as time,rr as unwrapFunctionStore,ir as waitLocale};
|
|
1
|
+
import{d as e,w as t}from"./chunks/chunk-DLMzDTGN.js";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function o(e,t,r){return e.concat(t).map(function(e){return i(e,r)})}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function h(e,t,r){var n={};return r.isMergeableObject(e)&&s(e).forEach(function(t){n[t]=i(e[t],r)}),s(t).forEach(function(o){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(a(e,o)&&r.isMergeableObject(t[o])?n[o]=function(e,t){if(!t.customMerge)return l;var r=t.customMerge(e);return"function"==typeof r?r:l}(o,r)(e[o],t[o],r):n[o]=i(t[o],r))}),n}function l(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||o,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=i;var s=Array.isArray(t);return s===Array.isArray(e)?s?n.arrayMerge(e,t,n):h(e,t,n):i(t,n)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,r){return l(e,r,t)},{})};var u=l,c=function(e,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},c(e,t)};function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var p=function(){return p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},p.apply(this,arguments)};function m(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function g(e,t){var r=t&&t.cache?t.cache:A,n=t&&t.serializer?t.serializer:B;return(t&&t.strategy?t.strategy:d)(e,{cache:r,serializer:n})}function E(e,t,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),s=t.get(o);return void 0===s&&(s=e.call(this,n),t.set(o,s)),s}function b(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function y(e,t,r,n,i){return r.bind(t,e,n,i)}function d(e,t){return y(e,this,1===e.length?E:b,t.cache.create(),t.serializer)}"function"==typeof SuppressedError&&SuppressedError;var v,H,T,B=function(){return JSON.stringify(arguments)},_=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e}(),A={create:function(){return new _}},P={variadic:function(e,t){return y(e,this,b,t.cache.create(),t.serializer)}};function L(e){return e.type===H.literal}function S(e){return e.type===H.argument}function O(e){return e.type===H.number}function N(e){return e.type===H.date}function w(e){return e.type===H.time}function I(e){return e.type===H.select}function M(e){return e.type===H.plural}function C(e){return e.type===H.pound}function R(e){return e.type===H.tag}function U(e){return!(!e||"object"!=typeof e||e.type!==T.number)}function G(e){return!(!e||"object"!=typeof e||e.type!==T.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(v||(v={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(H||(H={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(T||(T={}));var D=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,F=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function k(e){var t={};return e.replace(F,function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"long":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var j=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function V(e){return e.replace(/^(.*?)-/,"")}var x=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,X=/^(@+)?(\+|#+)?[rs]?$/g,K=/(\*)(0+)|(#+)(0+)|(0+)/g,Y=/^(0+)$/;function Z(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(X,function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""}),t}function W(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function z(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Y.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function $(e){var t=W(e);return t||{}}function J(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=V(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=p(p(p({},t),{notation:"scientific"}),i.options.reduce(function(e,t){return p(p({},e),$(t))},{}));continue;case"engineering":t=p(p(p({},t),{notation:"engineering"}),i.options.reduce(function(e,t){return p(p({},e),$(t))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(K,function(e,r,n,i,o,s){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Y.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(x.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(x,function(e,r,n,i,o,s){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&s?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+s.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});var o=i.options[0];"w"===o?t=p(p({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=p(p({},t),Z(o)))}else if(X.test(i.stem))t=p(p({},t),Z(i.stem));else{var s=W(i.stem);s&&(t=p(p({},t),s));var a=z(i.stem);a&&(t=p(p({},t),a))}}return t}var Q,q={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function ee(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(q[r||""]||q[n||""]||q["".concat(n,"-001")]||q["001"])[0]}var te=new RegExp("^".concat(D.source,"*")),re=new RegExp("".concat(D.source,"*$"));function ne(e,t){return{start:e,end:t}}var ie=!!String.prototype.startsWith&&"_a".startsWith("a",1),oe=!!String.fromCodePoint,se=!!Object.fromEntries,ae=!!String.prototype.codePointAt,he=!!String.prototype.trimStart,le=!!String.prototype.trimEnd,ue=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ce=!0;try{ce="a"===(null===(Q=de("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Q?void 0:Q[0])}catch(e){ce=!1}var fe,pe=ie?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},me=oe?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;i>o;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},ge=se?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],s=i[1];t[o]=s}return t},Ee=ae?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},be=he?function(e){return e.trimStart()}:function(e){return e.replace(te,"")},ye=le?function(e){return e.trimEnd()}:function(e){return e.replace(re,"")};function de(e,t){return new RegExp(e,t)}if(ce){var ve=de("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");fe=function(e,t){var r;return ve.lastIndex=t,null!==(r=ve.exec(e)[1])&&void 0!==r?r:""}}else fe=function(e,t){for(var r=[];;){var n=Ee(e,t);if(void 0===n||Ae(n)||Pe(n))break;r.push(n),t+=n>=65536?2:1}return me.apply(void 0,r)};var He,Te=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(v.UNMATCHED_CLOSING_TAG,ne(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&Be(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:H.pound,location:ne(s,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:H.literal,value:"<".concat(n,"/>"),location:ne(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Be(this.char()))return this.error(v.INVALID_TAG,ne(s,this.clonePosition()));var a=this.clonePosition();return n!==this.parseTagName()?this.error(v.UNMATCHED_CLOSING_TAG,ne(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:H.tag,value:n,children:o,location:ne(r,this.clonePosition())},err:null}:this.error(v.INVALID_TAG,ne(s,this.clonePosition())))}return this.error(v.UNCLOSED_TAG,ne(r,this.clonePosition()))}return this.error(v.INVALID_TAG,ne(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&_e(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{var o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var a=ne(r,this.clonePosition());return{val:{type:H.literal,value:n,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Be(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return me.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),me(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,ne(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(v.EMPTY_ARGUMENT,ne(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(v.MALFORMED_ARGUMENT,ne(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,ne(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:H.argument,value:n,location:ne(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,ne(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(v.MALFORMED_ARGUMENT,ne(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=fe(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:ne(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(v.EXPECT_ARGUMENT_TYPE,ne(o,a));case"number":case"date":case"time":this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(m=ye(y.val)).length)return this.error(v.EXPECT_ARGUMENT_STYLE,ne(this.clonePosition(),this.clonePosition()));h={style:m,styleLocation:ne(l,this.clonePosition())}}if((d=this.tryParseArgumentClose(n)).err)return d;var u=ne(n,this.clonePosition());if(h&&pe(null==h?void 0:h.style,"::",0)){var c=be(h.style.slice(2));if("number"===s)return(y=this.parseNumberSkeletonFromString(c,h.styleLocation)).err?y:{val:{type:H.number,value:r,location:u,style:y.val},err:null};if(0===c.length)return this.error(v.EXPECT_DATE_TIME_SKELETON,u);var f=c;this.locale&&(f=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),h=ee(t);for("H"!=h&&"k"!=h||(a=0);a-- >0;)r+="a";for(;s-- >0;)r=h+r}else r+="J"===i?"H":i}return r}(c,this.locale));var m={type:T.dateTime,pattern:f,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?k(f):{}};return{val:{type:"date"===s?H.date:H.time,value:r,location:u,style:m},err:null}}return{val:{type:"number"===s?H.number:"date"===s?H.date:H.time,value:r,location:u,style:null!==(i=null==h?void 0:h.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var g=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS,ne(g,p({},g)));this.bumpSpace();var E=this.parseIdentifierIfPossible(),b=0;if("select"!==s&&"offset"===E.value){if(!this.bumpIf(":"))return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ne(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;this.bumpSpace(),E=this.parseIdentifierIfPossible(),b=y.val}var d,B=this.tryParsePluralOrSelectOptions(e,s,t,E);if(B.err)return B;if((d=this.tryParseArgumentClose(n)).err)return d;var _=ne(n,this.clonePosition());return"select"===s?{val:{type:H.select,value:r,options:ge(B.val),location:_},err:null}:{val:{type:H.plural,value:r,options:ge(B.val),offset:b,pluralType:"plural"===s?"cardinal":"ordinal",location:_},err:null};default:return this.error(v.INVALID_ARGUMENT_TYPE,ne(o,a))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,ne(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(v.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ne(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(j).filter(function(e){return e.length>0});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),a=0,h=s;a<h.length;a++)if(0===h[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:s})}return t}(e)}catch(e){return this.error(v.INVALID_NUMBER_SKELETON,t)}return{val:{type:T.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?J(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i,o=!1,s=[],a=new Set,h=n.value,l=n.location;;){if(0===h.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR,v.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=ne(u,this.clonePosition()),h=this.message.slice(u.offset,this.offset())}if(a.has(h))return this.error("select"===t?v.DUPLICATE_SELECT_ARGUMENT_SELECTOR:v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===h&&(o=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ne(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,r);if(p.err)return p;var m=this.tryParseArgumentClose(f);if(m.err)return m;s.push([h,{value:p.val,location:ne(f,this.clonePosition())}]),a.add(h),this.bumpSpace(),h=(i=this.parseIdentifierIfPossible()).value,l=i.location}return 0===s.length?this.error("select"===t?v.EXPECT_SELECT_ARGUMENT_SELECTOR:v.EXPECT_PLURAL_ARGUMENT_SELECTOR,ne(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(v.MISSING_OTHER_CLAUSE,ne(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}var a=ne(n,this.clonePosition());return i?ue(o*=r)?{val:o,err:null}:this.error(t,a):this.error(e,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Ee(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(pe(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ae(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function Be(e){return e>=97&&e<=122||e>=65&&e<=90}function _e(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Ae(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Pe(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Le(e){e.forEach(function(e){if(delete e.location,I(e)||M(e))for(var t in e.options)delete e.options[t].location,Le(e.options[t].value);else O(e)&&U(e.style)||(N(e)||w(e))&&G(e.style)?delete e.style.location:R(e)&&Le(e.children)})}function Se(e,t){void 0===t&&(t={}),t=p({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Te(e,t).parse();if(r.err){var n=SyntaxError(v[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||Le(r.val),r.val}!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(He||(He={}));var Oe,Ne=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return f(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),we=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),He.INVALID_VALUE,i)||this}return f(t,e),t}(Ne),Ie=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),He.INVALID_VALUE,n)||this}return f(t,e),t}(Ne),Me=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),He.MISSING_VALUE,r)||this}return f(t,e),t}(Ne);function Ce(e){return"function"==typeof e}function Re(e,t,r,n,i,o,s){if(1===e.length&&L(e[0]))return[{type:Oe.literal,value:e[0].value}];for(var a=[],h=0,l=e;h<l.length;h++){var u=l[h];if(L(u))a.push({type:Oe.literal,value:u.value});else if(C(u))"number"==typeof o&&a.push({type:Oe.literal,value:r.getNumberFormat(t).format(o)});else{var c=u.value;if(!i||!(c in i))throw new Me(c,s);var f=i[c];if(S(u))f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?Oe.literal:Oe.object,value:f});else if(N(u)){var p="string"==typeof u.style?n.date[u.style]:G(u.style)?u.style.parsedOptions:void 0;a.push({type:Oe.literal,value:r.getDateTimeFormat(t,p).format(f)})}else if(w(u)){p="string"==typeof u.style?n.time[u.style]:G(u.style)?u.style.parsedOptions:n.time.medium;a.push({type:Oe.literal,value:r.getDateTimeFormat(t,p).format(f)})}else if(O(u)){(p="string"==typeof u.style?n.number[u.style]:U(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),a.push({type:Oe.literal,value:r.getNumberFormat(t,p).format(f)})}else{if(R(u)){var m=u.children,g=u.value,E=i[g];if(!Ce(E))throw new Ie(g,"function",s);var b=E(Re(m,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(b)||(b=[b]),a.push.apply(a,b.map(function(e){return{type:"string"==typeof e?Oe.literal:Oe.object,value:e}}))}if(I(u)){if(!(y=u.options[f]||u.options.other))throw new we(u.value,f,Object.keys(u.options),s);a.push.apply(a,Re(y.value,t,r,n,i))}else if(M(u)){var y;if(!(y=u.options["=".concat(f)])){if(!Intl.PluralRules)throw new Ne('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',He.MISSING_INTL_API,s);var d=r.getPluralRules(t,{type:u.pluralType}).select(f-(u.offset||0));y=u.options[d]||u.options.other}if(!y)throw new we(u.value,f,Object.keys(u.options),s);a.push.apply(a,Re(y.value,t,r,n,i,f-(u.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===Oe.literal&&t.type===Oe.literal?r.value+=t.value:e.push(t),e},[])}(a)}function Ue(e,t){return t?Object.keys(e).reduce(function(r,n){var i,o;return r[n]=(i=e[n],(o=t[n])?p(p(p({},i||{}),o||{}),Object.keys(i).reduce(function(e,t){return e[t]=p(p({},i[t]),o[t]||{}),e},{})):i),r},p({},e)):e}function Ge(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Oe||(Oe={}));var De=function(){function e(t,r,n,i){void 0===r&&(r=e.defaultLocale);var o,s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce(function(e,t){return e.length&&t.type===Oe.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return Re(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=s.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var h=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(a,["formatters"]);this.ast=e.__parse(t,p(p({},h),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Ue(e.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:g(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,m([void 0],t,!1)))},{cache:Ge(o.number),strategy:P.variadic}),getDateTimeFormat:g(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,m([void 0],t,!1)))},{cache:Ge(o.dateTime),strategy:P.variadic}),getPluralRules:g(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,m([void 0],t,!1)))},{cache:Ge(o.pluralRules),strategy:P.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=Se,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const Fe={},ke=(e,t,r)=>r?(t in Fe||(Fe[t]={}),e in Fe[t]||(Fe[t][e]=r),r):r,je=(e,t)=>{if(null==t)return;if(t in Fe&&e in Fe[t])return Fe[t][e];const r=dt(t);for(let n=0;n<r.length;n++){const i=Ke(r[n],e);if(i)return ke(e,t,i)}};let Ve;const xe=t({});function Xe(e){return e in Ve}function Ke(e,t){if(!Xe(e))return null;const r=function(e){return Ve[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(e>0){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(r,t)}function Ye(e,...t){delete Fe[e],xe.update(r=>(r[e]=u.all([r[e]||{},...t]),r))}const Ze=e([xe],([e])=>Object.keys(e));xe.subscribe(e=>Ve=e);const We={};function ze(e){return We[e]}function $e(e){return null!=e&&dt(e).some(e=>{var t;return null==(t=ze(e))?void 0:t.size})}function Je(e,t){const r=Promise.all(t.map(t=>(function(e,t){We[e].delete(t),0===We[e].size&&delete We[e]}(e,t),t().then(e=>e.default||e))));return r.then(t=>Ye(e,...t))}const Qe={};function qe(e){if(!$e(e))return e in Qe?Qe[e]:Promise.resolve();const t=function(e){return dt(e).map(e=>{const t=ze(e);return[e,t?[...t]:[]]}).filter(([,e])=>e.length>0)}(e);return Qe[e]=Promise.all(t.map(([e,t])=>Je(e,t))).then(()=>{if($e(e))return qe(e);delete Qe[e]}),Qe[e]}function et(e,t){ze(e)||function(e){We[e]=new Set}(e);const r=ze(e);ze(e).has(t)||(Xe(e)||xe.update(t=>(t[e]={},t)),r.add(t))}var tt=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable;function it({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${dt(e).join('", "')}".${$e(vt())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`)}const ot={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function st(){return ot}function at(e){const t=e,{formats:r}=t,n=((e,t)=>{var r={};for(var n in e)rt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&tt)for(var n of tt(e))t.indexOf(n)<0&&nt.call(e,n)&&(r[n]=e[n]);return r})(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{De.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(t){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,null==n.handleMissingMessage?n.handleMissingMessage=it:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(ot,n,{initialLocale:i}),r&&("number"in r&&Object.assign(ot.formats.number,r.number),"date"in r&&Object.assign(ot.formats.date,r.date),"time"in r&&Object.assign(ot.formats.time,r.time)),Ht.set(i)}const ht=t(!1);var lt=Object.defineProperty,ut=Object.defineProperties,ct=Object.getOwnPropertyDescriptors,ft=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,gt=(e,t,r)=>t in e?lt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let Et;const bt=t(null);function yt(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function dt(e,t=st().fallbackLocale){const r=yt(e);return t?[...new Set([...r,...yt(t)])]:r}function vt(){return null!=Et?Et:void 0}bt.subscribe(e=>{Et=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const Ht=(Tt=((e,t)=>{for(var r in t||(t={}))pt.call(t,r)&>(e,r,t[r]);if(ft)for(var r of ft(t))mt.call(t,r)&>(e,r,t[r]);return e})({},bt),ut(Tt,ct({set:e=>{if(e&&function(e){if(null==e)return;const t=dt(e);for(let e=0;e<t.length;e++){const r=t[e];if(Xe(r))return r}}(e)&&$e(e)){const{loadingDelay:t}=st();let r;return"undefined"!=typeof window&&null!=vt()&&t?r=window.setTimeout(()=>ht.set(!0),t):ht.set(!0),qe(e).then(()=>{bt.set(e)}).finally(()=>{clearTimeout(r),ht.set(!1)})}return bt.set(e)}})));var Tt;const Bt=(e,t)=>{const r=e.split("&").find(e=>0===e.indexOf(`${t}=`));return r?r.split("=").pop():null},_t=(e,t)=>{const r=t.exec(e);return r&&r[1]||null},At=e=>"undefined"==typeof window?null:_t(window.location.hostname,e),Pt=e=>"undefined"==typeof window?null:_t(window.location.pathname,e),Lt=()=>"undefined"==typeof window?null:window.navigator.language||window.navigator.languages[0],St=e=>"undefined"==typeof window?null:Bt(window.location.search.substr(1),e),Ot=e=>"undefined"==typeof window?null:Bt(window.location.hash.substr(1),e),Nt=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}};var wt=Object.defineProperty,It=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,Rt=(e,t,r)=>t in e?wt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ut=(e,t)=>{for(var r in t||(t={}))Mt.call(t,r)&&Rt(e,r,t[r]);if(It)for(var r of It(t))Ct.call(t,r)&&Rt(e,r,t[r]);return e},Gt=(e,t)=>{var r={};for(var n in e)Mt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&It)for(var n of It(e))t.indexOf(n)<0&&Ct.call(e,n)&&(r[n]=e[n]);return r};const Dt=(e,t)=>{const{formats:r}=st();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Ft=Nt(e=>{var t=e,{locale:r,format:n}=t,i=Gt(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Dt("number",n)),new Intl.NumberFormat(r,i)}),kt=Nt(e=>{var t=e,{locale:r,format:n}=t,i=Gt(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Dt("date",n):0===Object.keys(i).length&&(i=Dt("date","short")),new Intl.DateTimeFormat(r,i)}),jt=Nt(e=>{var t=e,{locale:r,format:n}=t,i=Gt(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Dt("time",n):0===Object.keys(i).length&&(i=Dt("time","short")),new Intl.DateTimeFormat(r,i)}),Vt=(e={})=>{var t=e,{locale:r=vt()}=t,n=Gt(t,["locale"]);return Ft(Ut({locale:r},n))},xt=(e={})=>{var t=e,{locale:r=vt()}=t,n=Gt(t,["locale"]);return kt(Ut({locale:r},n))},Xt=(e={})=>{var t=e,{locale:r=vt()}=t,n=Gt(t,["locale"]);return jt(Ut({locale:r},n))},Kt=Nt((e,t=vt())=>new De(e,t,st().formats,{ignoreTag:st().ignoreTag})),Yt=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:h=vt(),default:l}=s;if(null==h)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=je(e,h);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!=(o=null!=(i=null==(n=(r=st()).handleMissingMessage)?void 0:n.call(r,{locale:h,id:e,defaultValue:l}))?i:l)?o:e;if(!a)return u;let c=u;try{c=Kt(u,h).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c},Zt=(e,t)=>Xt(t).format(e),Wt=(e,t)=>xt(t).format(e),zt=(e,t)=>Vt(t).format(e),$t=(e,t=vt())=>je(e,t),Jt=e([Ht,xe],()=>Yt),Qt=e([Ht],()=>Zt),qt=e([Ht],()=>Wt),er=e([Ht],()=>zt),tr=e([Ht,xe],()=>$t);function rr(e){let t;const r=e.subscribe(e=>t=e),n=(...e)=>t(...e);return n.freeze=r,n}function nr(e){return e}function ir(e){return qe(e||vt()||st().initialLocale)}export{Jt as _,Ye as addMessages,qt as date,nr as defineMessages,xe as dictionary,Jt as format,xt as getDateFormatter,Ot as getLocaleFromHash,At as getLocaleFromHostname,Lt as getLocaleFromNavigator,Pt as getLocaleFromPathname,St as getLocaleFromQueryString,Kt as getMessageFormatter,Vt as getNumberFormatter,Xt as getTimeFormatter,at as init,ht as isLoading,tr as json,Ht as locale,Ze as locales,er as number,et as register,Jt as t,Qt as time,rr as unwrapFunctionStore,ir as waitLocale};
|
package/dist/widget-runtime.zip
CHANGED
|
Binary file
|