libre-webui 0.31.0 → 0.33.0
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/backend/dist/index.d.ts.map +1 -1
- package/backend/dist/index.js +6 -1
- package/backend/dist/index.js.map +1 -1
- package/backend/dist/middleware/staticAssets.d.ts +29 -0
- package/backend/dist/middleware/staticAssets.d.ts.map +1 -0
- package/backend/dist/middleware/staticAssets.js +141 -0
- package/backend/dist/middleware/staticAssets.js.map +1 -0
- package/backend/dist/routes/artifacts.d.ts.map +1 -1
- package/backend/dist/routes/artifacts.js +4 -2
- package/backend/dist/routes/artifacts.js.map +1 -1
- package/backend/dist/routes/plugins.d.ts.map +1 -1
- package/backend/dist/routes/plugins.js +13 -2
- package/backend/dist/routes/plugins.js.map +1 -1
- package/backend/dist/routes/preferences.d.ts.map +1 -1
- package/backend/dist/routes/preferences.js +40 -1
- package/backend/dist/routes/preferences.js.map +1 -1
- package/backend/dist/services/appearanceSettingsService.d.ts +20 -0
- package/backend/dist/services/appearanceSettingsService.d.ts.map +1 -0
- package/backend/dist/services/appearanceSettingsService.js +91 -0
- package/backend/dist/services/appearanceSettingsService.js.map +1 -0
- package/backend/dist/services/authService.d.ts +3 -0
- package/backend/dist/services/authService.d.ts.map +1 -1
- package/backend/dist/services/authService.js +2 -0
- package/backend/dist/services/authService.js.map +1 -1
- package/backend/dist/services/ollamaSettingsService.d.ts.map +1 -1
- package/backend/dist/services/ollamaSettingsService.js +7 -2
- package/backend/dist/services/ollamaSettingsService.js.map +1 -1
- package/backend/dist/services/preferencesService.d.ts +5 -0
- package/backend/dist/services/preferencesService.d.ts.map +1 -1
- package/backend/dist/services/preferencesService.js +15 -2
- package/backend/dist/services/preferencesService.js.map +1 -1
- package/backend/dist/services/workPreviewProxyService.d.ts.map +1 -1
- package/backend/dist/services/workPreviewProxyService.js +4 -2
- package/backend/dist/services/workPreviewProxyService.js.map +1 -1
- package/backend/dist/types/index.d.ts +1 -1
- package/backend/dist/types/index.d.ts.map +1 -1
- package/backend/package.json +1 -1
- package/frontend/dist/artifact-runtime/.build-fingerprint +1 -1
- package/frontend/dist/assets/index-DegYzMyw.js +70 -0
- package/frontend/dist/assets/index-gKj8Y1JB.css +1 -0
- package/frontend/dist/assets/xterm-B8QFf3JU.css +1 -0
- package/frontend/dist/index.html +62 -40
- package/frontend/dist/js/ArtifactContainer-BB6A8cT5.js +1 -0
- package/frontend/dist/js/{ArtifactDemoPage-BLF8Ok-o.js → ArtifactDemoPage-Bf1dW5Z3.js} +1 -1
- package/frontend/dist/js/{ArtifactSandboxFrame-Cs1Gu1WB.js → ArtifactSandboxFrame-DsZW0Axy.js} +1 -1
- package/frontend/dist/js/ArtifactSlideOutPanel-Cartcixp.js +1 -0
- package/frontend/dist/js/AutomationModal-BI_3nFeg.js +1 -0
- package/frontend/dist/js/AutomationsPage-ChMXj4UG.js +1 -0
- package/frontend/dist/js/AvatarUpload-gfZ9QWR3.js +1 -0
- package/frontend/dist/js/Button-BQ5JnUVj.js +1 -0
- package/frontend/dist/js/CalendarPage-Ce1ud5St.js +1 -0
- package/frontend/dist/js/ChannelsPage-kl8zJ2HA.js +1 -0
- package/frontend/dist/js/ChatPage-Bj98c6rc.js +14 -0
- package/frontend/dist/js/ConnectModels-CPftHmE3.js +1 -0
- package/frontend/dist/js/{EvaluationsPage-DOJLpauA.js → EvaluationsPage-Cydglp6R.js} +2 -2
- package/frontend/dist/js/FirstTimeSetup-C5cc-bc9.js +1 -0
- package/frontend/dist/js/GalleryPage-Dvq2GVoH.js +1 -0
- package/frontend/dist/js/HomePage-zVjADRoX.js +1 -0
- package/frontend/dist/js/LibreClawPage-x0Qmtcnc.js +1 -0
- package/frontend/dist/js/Logo-BlcOFpac.js +1 -0
- package/frontend/dist/js/LogoMark-CNeQ6eO9.js +1 -0
- package/frontend/dist/js/ModelManagerModals-K1oiXMTv.js +1 -0
- package/frontend/dist/js/NotesPage-BnqBv-n1.js +3 -0
- package/frontend/dist/js/OptimizedSyntaxHighlighter-CtQ_FGCX.js +2 -0
- package/frontend/dist/js/OptimizedSyntaxHighlighter-SkJc7ZMe.js +1 -0
- package/frontend/dist/js/PasswordStrengthMeter-DVFLKG_-.js +1 -0
- package/frontend/dist/js/{PersonasPage-C3D_6lIx.js → PersonasPage-DK9-SDZQ.js} +2 -2
- package/frontend/dist/js/PluginUsagePage-DX9uxdRr.js +1 -0
- package/frontend/dist/js/RichMessageContent-BzfhfzQ4.js +1 -0
- package/frontend/dist/js/RichMessageContent-XMkRvBen.js +3 -0
- package/frontend/dist/js/SettingsModal-CMOwEhkG.js +19 -0
- package/frontend/dist/js/SettingsToggle-B7UynBmZ.js +1 -0
- package/frontend/dist/js/ShareDialog-CZpU1itx.js +1 -0
- package/frontend/dist/js/SystemPage-BVaaKTRs.js +1 -0
- package/frontend/dist/js/TurnstileWidget-CEJst9eS.js +1 -0
- package/frontend/dist/js/UserManagementPage-DdpcN4-Q.js +1 -0
- package/frontend/dist/js/UserManagementPanel-BxAvybHj.js +1 -0
- package/frontend/dist/js/WhatsNewModal-CoFCdUpf.js +1 -0
- package/frontend/dist/js/WorkPage-Du6llCSU.js +7 -0
- package/frontend/dist/js/api-CatP45JH.js +1 -0
- package/frontend/dist/js/api-DQdJeQjd.js +14 -0
- package/frontend/dist/js/{appNavigation-DfHbXBey.js → appNavigation-DRM2Jr4r.js} +1 -1
- package/frontend/dist/js/appStore-BXbVcTeo.js +2 -0
- package/frontend/dist/js/appVersion-BUroqcki.js +1 -0
- package/frontend/dist/js/ar-C8Izi_rT.js +2 -0
- package/frontend/dist/js/authStore-DkqtNSYP.js +4 -0
- package/frontend/dist/js/authStore-bqAN5v4N.js +1 -0
- package/frontend/dist/js/axios-CYkJpKn8.js +1 -0
- package/frontend/dist/js/babel-CY5KOv-I.js +16 -0
- package/frontend/dist/js/bn-BJJgi-6Q.js +2 -0
- package/frontend/dist/js/chatStore-8jYk48hC.js +3 -0
- package/frontend/dist/js/{config-DJwXAf8i.js → config-D4dduT3C.js} +1 -1
- package/frontend/dist/js/cs-DheVrMUl.js +2 -0
- package/frontend/dist/js/da-BLszIs3a.js +2 -0
- package/frontend/dist/js/de-BvWdcr7T.js +2 -0
- package/frontend/dist/js/es-CQ8Yauda.js +2 -0
- package/frontend/dist/js/estree-CuT_pB8K.js +44 -0
- package/frontend/dist/js/{evaluationsApi-BKY-maUM.js → evaluationsApi-CBKjxZUn.js} +1 -1
- package/frontend/dist/js/fr-BD5h-w8z.js +2 -0
- package/frontend/dist/js/goober.modern-BaHbaW3_.js +1 -0
- package/frontend/dist/js/hi-IlRhC5IE.js +2 -0
- package/frontend/dist/js/html-Cdnr2qzU.js +25 -0
- package/frontend/dist/js/i18next-ChipS_AK.js +1 -0
- package/frontend/dist/js/id-DalGMQEJ.js +2 -0
- package/frontend/dist/js/is-DuQqmHeS.js +2 -0
- package/frontend/dist/js/it-DDaqAdB1.js +2 -0
- package/frontend/dist/js/ja-CYCu9F9Y.js +2 -0
- package/frontend/dist/js/ko-P3JZPOXE.js +2 -0
- package/frontend/dist/js/logger-DnuT4jgB.js +1 -0
- package/frontend/dist/js/markdown-CByV-4CU.js +70 -0
- package/frontend/dist/js/markdown-core-D067gSd8.js +31 -0
- package/frontend/dist/js/markdown-html-CQM6wA9G.js +2 -0
- package/frontend/dist/js/markdown-math-Dg-WB9ui.js +261 -0
- package/frontend/dist/js/markdownHtml-Djpz4yB3.js +1 -0
- package/frontend/dist/js/markdownMath-CoDj1i7z.js +1 -0
- package/frontend/dist/js/{messageCodeStyles-CkxF6yil.js → messageCodeStyles-0_YpQDk4.js} +2 -2
- package/frontend/dist/js/ms-B3ZIqlUn.js +2 -0
- package/frontend/dist/js/nl-1Qpsmmz1.js +2 -0
- package/frontend/dist/js/pl-ErrMri3_.js +2 -0
- package/frontend/dist/js/postcss-CifRAFe1.js +62 -0
- package/frontend/dist/js/pt-0T0R9AtX.js +2 -0
- package/frontend/dist/js/react-vendor-D0Ec-185.js +9 -0
- package/frontend/dist/js/rfb-NV_fh9Db.js +5 -0
- package/frontend/dist/js/router-vendor-CMbYTGdh.js +1 -0
- package/frontend/dist/js/ru-B34INyPg.js +2 -0
- package/frontend/dist/js/standalone-6z5x8CWe.js +29 -0
- package/frontend/dist/js/sv-BSqDwAur.js +2 -0
- package/frontend/dist/js/syntax-highlight-DTWfgxYh.js +7 -0
- package/frontend/dist/js/{teamEventStream-DUodK0-C.js → teamEventStream-RoMYo102.js} +1 -1
- package/frontend/dist/js/th-DK9M4-Iy.js +2 -0
- package/frontend/dist/js/tr-DUrkEwr1.js +2 -0
- package/frontend/dist/js/ttsBatching-kFVEE3Ip.js +2 -0
- package/frontend/dist/js/typescript-BPrdIZ70.js +22 -0
- package/frontend/dist/js/ui-UU79S5lB.js +2 -0
- package/frontend/dist/js/ui-vendor-6y6qiSk5.js +177 -0
- package/frontend/dist/js/uk-B5DYTi0e.js +2 -0
- package/frontend/dist/js/useChat-ImXXcy0q.js +10 -0
- package/frontend/dist/js/useDictation-eMIAncoT.js +1 -0
- package/frontend/dist/js/useQuery-BKulzCS7.js +1 -0
- package/frontend/dist/js/useTranslation-D0mJ4NnO.js +1 -0
- package/frontend/dist/js/{utils-nNyg0lfc.js → utils-Bn0RE9_8.js} +1 -1
- package/frontend/dist/js/utils-vendor-BbPbaAuC.js +9 -0
- package/frontend/dist/js/vi-CrtPQUIM.js +2 -0
- package/frontend/dist/js/workApi-BM8qVq_w.js +1 -0
- package/frontend/dist/js/workApi-xhF57amo.js +6 -0
- package/frontend/dist/js/xterm-C3BHN0de.js +16 -0
- package/frontend/dist/js/yaml-9ltHPDNO.js +154 -0
- package/frontend/dist/js/zh-gbOKajYe.js +2 -0
- package/frontend/dist/sw.js +3 -3
- package/package.json +2 -2
- package/frontend/dist/assets/index-B6xMZpzA.js +0 -76
- package/frontend/dist/assets/index-BjipfsCP.css +0 -1
- package/frontend/dist/assets/xterm-DHcfr8qj.css +0 -1
- package/frontend/dist/js/ArtifactContainer-Bn6iJtaJ.js +0 -1
- package/frontend/dist/js/ArtifactSlideOutPanel-CuKq5cL0.js +0 -1
- package/frontend/dist/js/AutomationModal-Dha4KgLI.js +0 -1
- package/frontend/dist/js/AutomationsPage-HcMCRV-D.js +0 -1
- package/frontend/dist/js/AvatarUpload-CFrlSszY.js +0 -1
- package/frontend/dist/js/Button-CgN11mgY.js +0 -1
- package/frontend/dist/js/CalendarPage-D_K-XrG9.js +0 -1
- package/frontend/dist/js/ChannelsPage-D3CoImOT.js +0 -1
- package/frontend/dist/js/ChatPage-C0iBDbOq.js +0 -14
- package/frontend/dist/js/ConnectModels-D_ZbZQub.js +0 -1
- package/frontend/dist/js/FirstTimeSetup-DDIP_4Dd.js +0 -1
- package/frontend/dist/js/GalleryPage-C8U_F7Ns.js +0 -1
- package/frontend/dist/js/HomePage-B_aotoDU.js +0 -1
- package/frontend/dist/js/LibreClawPage-cr2N6W00.js +0 -1
- package/frontend/dist/js/Logo-B7o7eaPU.js +0 -1
- package/frontend/dist/js/LogoMark-D9g6ls0h.js +0 -1
- package/frontend/dist/js/ModelManagerModals-C-J1d7GL.js +0 -1
- package/frontend/dist/js/NotesPage-Bgr7R_Vm.js +0 -3
- package/frontend/dist/js/OptimizedSyntaxHighlighter-BwKLuOu-.js +0 -1
- package/frontend/dist/js/OptimizedSyntaxHighlighter-oiyvxgDA.js +0 -1
- package/frontend/dist/js/PasswordStrengthMeter-DR-mGbLF.js +0 -1
- package/frontend/dist/js/PluginUsagePage-DK7MgSiu.js +0 -1
- package/frontend/dist/js/RichMessageContent-7FxrZ4A8.js +0 -1
- package/frontend/dist/js/RichMessageContent-CQkLI7Dt.js +0 -3
- package/frontend/dist/js/SettingsModal-CIV_Bgsf.js +0 -19
- package/frontend/dist/js/SettingsToggle-Cw4OhW7B.js +0 -1
- package/frontend/dist/js/ShareDialog-BCEVgtbN.js +0 -1
- package/frontend/dist/js/SystemPage-BNVZtLe9.js +0 -1
- package/frontend/dist/js/TurnstileWidget-lyEp7A0r.js +0 -1
- package/frontend/dist/js/UserManagementPage-pPC_Svj9.js +0 -1
- package/frontend/dist/js/WorkPage-Q33nIqkM.js +0 -7
- package/frontend/dist/js/api-D-5hpGht.js +0 -14
- package/frontend/dist/js/api-WR1CTYO5.js +0 -1
- package/frontend/dist/js/appStore-B136FGdu.js +0 -2
- package/frontend/dist/js/appVersion-Ck7dYiHe.js +0 -1
- package/frontend/dist/js/ar-Cq-nC6v9.js +0 -2
- package/frontend/dist/js/authStore-6AJLgQsD.js +0 -1
- package/frontend/dist/js/authStore-Ckz37pwu.js +0 -4
- package/frontend/dist/js/axios-CUerAKcc.js +0 -1
- package/frontend/dist/js/babel-8afoxhZ7.js +0 -16
- package/frontend/dist/js/bn-BFSKytYs.js +0 -2
- package/frontend/dist/js/chatStore-Dpm3g_Ln.js +0 -3
- package/frontend/dist/js/classPrivateMethodInitSpec-DE0XIqc_.js +0 -1
- package/frontend/dist/js/cs-BKWXa629.js +0 -2
- package/frontend/dist/js/da-Cra_DJnV.js +0 -2
- package/frontend/dist/js/de-BQa6_UuE.js +0 -2
- package/frontend/dist/js/es-BBOHFrx1.js +0 -2
- package/frontend/dist/js/estree-qxY7ACbu.js +0 -44
- package/frontend/dist/js/fr-C8kXs5c0.js +0 -2
- package/frontend/dist/js/hi-BEef4bjU.js +0 -2
- package/frontend/dist/js/html-B_cUU1Gi.js +0 -25
- package/frontend/dist/js/i18next-ChNMiFef.js +0 -1
- package/frontend/dist/js/id-Djipic7Y.js +0 -2
- package/frontend/dist/js/is-pazl6RLG.js +0 -2
- package/frontend/dist/js/it-DobPbTwl.js +0 -2
- package/frontend/dist/js/ja-DwYNaMNX.js +0 -2
- package/frontend/dist/js/ko-BQfXE7_o.js +0 -2
- package/frontend/dist/js/logger-CpCQz3Vi.js +0 -1
- package/frontend/dist/js/markdown-BAF0w-jL.js +0 -70
- package/frontend/dist/js/markdown-core-CsTEqgp1.js +0 -32
- package/frontend/dist/js/markdown-math-BhUmos36.js +0 -261
- package/frontend/dist/js/ms-CkPQoE5T.js +0 -2
- package/frontend/dist/js/nl-X_QsDAtu.js +0 -2
- package/frontend/dist/js/pl-CK39gUsy.js +0 -2
- package/frontend/dist/js/postcss-B2vYq4-H.js +0 -62
- package/frontend/dist/js/pt-C0dWyR_I.js +0 -2
- package/frontend/dist/js/react-vendor-BsJBHRYW.js +0 -9
- package/frontend/dist/js/rfb-BOfFBtVG.js +0 -5
- package/frontend/dist/js/router-vendor-CIwPu612.js +0 -1
- package/frontend/dist/js/ru-sNJkEz1G.js +0 -2
- package/frontend/dist/js/standalone-BqZmfuRy.js +0 -29
- package/frontend/dist/js/sv-Bh-uxdF3.js +0 -2
- package/frontend/dist/js/syntax-highlight-DY6Hwrri.js +0 -8
- package/frontend/dist/js/th-DPVtwZj2.js +0 -2
- package/frontend/dist/js/tr-BYNM_Tm7.js +0 -2
- package/frontend/dist/js/ttsBatching-7_-p2nxR.js +0 -2
- package/frontend/dist/js/typescript-DokwN-5Y.js +0 -22
- package/frontend/dist/js/ui-BK53RPmS.js +0 -2
- package/frontend/dist/js/ui-vendor-CPdYrKhz.js +0 -177
- package/frontend/dist/js/uk-kvNBuYin.js +0 -2
- package/frontend/dist/js/useChat-Czg2p4Rr.js +0 -10
- package/frontend/dist/js/useDictation-B2lYEYKn.js +0 -1
- package/frontend/dist/js/useQuery-ClAiNxQ7.js +0 -1
- package/frontend/dist/js/useTranslation-C7GwbUQA.js +0 -1
- package/frontend/dist/js/utils-vendor-CeUf_ngc.js +0 -9
- package/frontend/dist/js/vi-CmLoaP0K.js +0 -2
- package/frontend/dist/js/workApi-BoJb9aVF.js +0 -1
- package/frontend/dist/js/workApi-CFH097y5.js +0 -6
- package/frontend/dist/js/xterm-CdjKCQM7.js +0 -16
- package/frontend/dist/js/yaml-BXEpxPn2.js +0 -154
- package/frontend/dist/js/zh-D2zvmvrj.js +0 -2
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import{_ as e,b as t,g as n,v as r,y as i}from"./router-vendor-CIwPu612.js";import{t as a}from"./classPrivateMethodInitSpec-DE0XIqc_.js";var o,s,c=Object.defineProperty,l=e=>{throw TypeError(e)},u=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t)c(e,n,{get:t[n],enumerable:!0})},f=(e,t,n)=>u(e,typeof t==`symbol`?t:t+``,n),p=(e,t,n)=>t.has(e)||l(`Cannot `+n),m=(e,t,n)=>(p(e,t,`read from private field`),n?n.call(e):t.get(e)),ee=(e,t,n)=>t.has(e)?l(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),te={};d(te,{languages:()=>fo,options:()=>ho,parsers:()=>go,printers:()=>ss});var ne=(e,t)=>(n,r,...i)=>n|1&&r==null?void 0:(t.call(r)??r[e]).apply(r,i),re=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},h=ne(`replaceAll`,function(){if(typeof this==`string`)return re});function ie(e){return this[e<0?this.length+e:e]}var g=ne(`at`,function(){if(Array.isArray(this)||typeof this==`string`)return ie}),ae=()=>{},oe=`string`,se=`array`,ce=`cursor`,le=`indent`,ue=`align`,de=`trim`,fe=`group`,pe=`fill`,me=`if-break`,he=`indent-if-break`,ge=`line-suffix`,_e=`line-suffix-boundary`,_=`line`,ve=`label`,ye=`break-parent`,be=new Set([ce,le,ue,de,fe,pe,me,he,ge,_e,_,ve,ye]);function xe(e,t,n){if(!e.has(t)){let r=n(t);e.set(t,r)}return e.get(t)}function Se(e){if(typeof e==`string`)return oe;if(Array.isArray(e))return se;if(!e)return;let{type:t}=e;if(be.has(t))return t}var Ce=Se,we=e=>new Intl.ListFormat(`en-US`,{type:`disjunction`}).format(e);function Te(e){let t=e===null?`null`:typeof e;if(t!==`string`&&t!==`object`)return`Unexpected doc '${t}',
|
|
2
|
-
Expected it to be 'string' or 'object'.`;if(Ce(e))throw Error(`doc is valid.`);let n=Object.prototype.toString.call(e);if(n!==`[object Object]`)return`Unexpected doc '${n}'.`;let r=we([...be].map(e=>`'${e}'`));return`Unexpected doc.type '${e.type}'.
|
|
3
|
-
Expected it to be ${r}.`}var Ee=class extends Error{constructor(e){((...e)=>(super(...e),n(this,`name`,`InvalidDocError`),this))(Te(e)),this.doc=e}};function De(e,t){if(typeof e==`string`)return t(e);let n=new Map;return r(e);function r(e){return xe(n,e,i)}function i(e){switch(Ce(e)){case se:return t(e.map(r));case pe:return t({...e,parts:e.parts.map(r)});case me:return t({...e,breakContents:r(e.breakContents),flatContents:r(e.flatContents)});case fe:{let{expandedStates:n,contents:i}=e;return n?(n=n.map(r),i=n[0]):i=r(i),t({...e,contents:i,expandedStates:n})}case ue:case le:case he:case ve:case ge:return t({...e,contents:r(e.contents)});case oe:case ce:case de:case _e:case _:case ye:return t(e);default:throw new Ee(e)}}}function v(e,t=Le){return De(e,e=>typeof e==`string`?S(t,e.split(`
|
|
4
|
-
`)):e)}var y=ae,Oe=ae,ke=ae,Ae=ae;function b(e){return y(e),{type:le,contents:e}}function je(e,t){return Ae(e),y(t),{type:ue,contents:t,n:e}}function Me(e){return je(-1/0,e)}var Ne={type:ye};function Pe(e){return ke(e),{type:pe,parts:e}}function x(e,t={}){return y(e),Oe(t.expandedStates,!0),{type:fe,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Fe(e,t=``,n={}){return y(e),t!==``&&y(t),{type:me,breakContents:e,flatContents:t,groupId:n.groupId}}function Ie(e,t){return y(e),{type:he,contents:e,groupId:t.groupId,negate:t.negate}}function S(e,t){y(e),Oe(t);let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}var C={type:_},w={type:_,soft:!0},T=[{type:_,hard:!0},Ne],Le=[{type:_,hard:!0,literal:!0},Ne],Re=Object.freeze({character:`'`,codePoint:39}),ze=Object.freeze({character:`"`,codePoint:34}),Be=Object.freeze({preferred:Re,alternate:ze}),Ve=Object.freeze({preferred:ze,alternate:Re});function He(e,t){let{preferred:n,alternate:r}=t===!0||t===`'`?Be:Ve,{length:i}=e,a=0,o=0;for(let t=0;t<i;t++){let i=e.charCodeAt(t);i===n.codePoint?a++:i===r.codePoint&&o++}return(a>o?r:n).character}function Ue(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}var We=(o=new WeakMap,s=new WeakSet,class{constructor(n){a(this,s),t(this,o,void 0),e(o,this,new Set(n))}getLeadingWhitespaceCount(e){let t=r(o,this),n=0;for(let r=0;r<e.length&&t.has(e.charAt(r));r++)n++;return n}getTrailingWhitespaceCount(e){let t=r(o,this),n=0;for(let r=e.length-1;r>=0&&t.has(e.charAt(r));r--)n++;return n}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return r(o,this).has(e.charAt(0))}hasTrailingWhitespace(e){return r(o,this).has(g(0,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let n=`[${Ue([...r(o,this)].join(``))}]+`,i=new RegExp(t?`(${n})`:n);return e.split(i)}hasWhitespaceCharacter(e){let t=r(o,this);return Array.prototype.some.call(e,e=>t.has(e))}hasNonWhitespaceCharacter(e){let t=r(o,this);return Array.prototype.some.call(e,e=>!t.has(e))}isWhitespaceOnly(e){let t=r(o,this);return Array.prototype.every.call(e,e=>t.has(e))}dedentString(e){let t=i(s,this,Ge).call(this,e);return t===0?e:e.split(`
|
|
5
|
-
`).map(e=>e.slice(t)).join(`
|
|
6
|
-
`)}});function Ge(e){let t=1/0;for(let n of e.split(`
|
|
7
|
-
`)){if(n.length===0)continue;let e=this.getLeadingWhitespaceCount(n);if(e===0)return 0;n.length!==e&&e<t&&(t=e)}return t===1/0?0:t}var E=new We([` `,`
|
|
8
|
-
`,`\f`,`\r`,` `]),Ke=class extends Error{constructor(e,t,r=`type`){((...e)=>(super(...e),n(this,`name`,`UnexpectedNodeError`),this))(`Unexpected ${t} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}};function qe(e,t=!0){return[b([w,e]),t?w:``]}function D(e,t){let n=e.type===`NGRoot`?e.node.type===`NGMicrosyntax`&&e.node.body.length===1&&e.node.body[0].type===`NGMicrosyntaxExpression`?e.node.body[0].expression:e.node:e.type===`JsExpressionRoot`?e.node:e;return n&&(n.type===`ObjectExpression`||n.type===`ArrayExpression`||(t.parser===`__vue_expression`||t.parser===`__vue_ts_expression`||t.parser===`__ng_binding`||t.parser===`__ng_directive`)&&(n.type===`TemplateLiteral`||n.type===`StringLiteral`))}async function O(e,t,n,r){n={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...n};let i=!0;r&&(n.__onHtmlBindingRoot=(e,t)=>{i=r(e,t)});let a=await t(e,n,t);return i?x(a):qe(a)}function Je(e,t,n,r){let{node:i}=n,a=r.originalText.slice(i.sourceSpan.start.offset,i.sourceSpan.end.offset);return/^\s*$/.test(a)?``:O(a,e,{parser:`__ng_directive`,__isInHtmlAttribute:!1},D)}var Ye=Je,Xe=Object.hasOwn??Function.prototype.call.bind(Object.prototype.hasOwnProperty),Ze=Array.prototype.toReversed??function(){return[...this].reverse()},Qe=ne(`toReversed`,function(){if(Array.isArray(this))return Ze});function $e(){let e=globalThis,t=e.process?.platform;if(typeof t==`string`)return t.startsWith(`win`);let n=e.Deno?.build?.os;return typeof n==`string`?n===`windows`:e.navigator?.platform?.startsWith(`Win`)??!1}var et=$e();function tt(e){if(e=e instanceof URL?e:new URL(e),e.protocol!==`file:`)throw TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function nt(e){return e=tt(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,`%25`))}function rt(e){e=tt(e);let t=decodeURIComponent(e.pathname.replace(/\//g,`\\`).replace(/%(?![0-9A-Fa-f]{2})/g,`%25`)).replace(/^\\*([A-Za-z]:)(\\|$)/,`$1\\`);return e.hostname!==``&&(t=`\\\\${e.hostname}${t}`),t}function it(e){return et?rt(e):nt(e)}var at=e=>String(e).split(/[/\\]/).pop(),ot=e=>String(e).startsWith(`file:`);function st(e){return Array.isArray(e)&&e.length>0}var ct=st;function lt(e,t){if(!t)return;let n=at(t).toLowerCase();return e.find(({filenames:e})=>e?.some(e=>e.toLowerCase()===n))??e.find(({extensions:e})=>e?.some(e=>n.endsWith(e)))}function ut(e,t){if(t)return e.find(({name:e})=>e.toLowerCase()===t)??e.find(({aliases:e})=>e?.includes(t))??e.find(({extensions:e})=>e?.includes(`.${t}`))}var dt=void 0;function ft(e,t){if(t){if(ot(t))try{t=it(t)}catch{return}if(typeof t==`string`)return e.find(({isSupported:e})=>e?.({filepath:t}))}}function pt(e,t){let n=Qe(0,e.plugins).flatMap(e=>e.languages??[]);return(ut(n,t.language)??lt(n,t.physicalFile)??lt(n,t.file)??ft(n,t.physicalFile)??ft(n,t.file)??dt?.(n,t.physicalFile))?.parsers[0]}var mt=pt,ht=Symbol.for(`PRETTIER_IS_FRONT_MATTER`);function gt(e){return!!e?.[ht]}var _t=gt;function vt(e){return h(0,e,/[^\n]/g,` `)}var yt=vt,bt=3;function xt(e){let t=e.slice(0,bt);if(t!==`---`&&t!==`+++`)return;let n=e.indexOf(`
|
|
9
|
-
`,bt);if(n===-1)return;let r=e.slice(bt,n).trim(),i=e.indexOf(`
|
|
10
|
-
${t}`,n),a=r;if(a||(a=t===`+++`?`toml`:`yaml`),i===-1&&t===`---`&&a===`yaml`&&(i=e.indexOf(`
|
|
11
|
-
...`,n)),i===-1)return;let o=i+1+bt,s=e.charAt(o+1);if(!/\s?/.test(s))return;let c=e.slice(0,o),l;return{language:a,explicitLanguage:r||null,value:e.slice(n+1,i),startDelimiter:t,endDelimiter:c.slice(-bt),raw:c,start:{line:1,column:0,index:0},end:{index:c.length,get line(){return l??(l=c.split(`
|
|
12
|
-
`)),l.length},get column(){return l??(l=c.split(`
|
|
13
|
-
`)),g(0,l,-1).length}},[ht]:!0}}function St(e){let t=xt(e);return t?{frontMatter:t,get content(){let{raw:n}=t;return yt(n)+e.slice(n.length)}}:{content:e}}var Ct=St,wt=`inline`,Tt={area:`none`,base:`none`,basefont:`none`,datalist:`none`,head:`none`,link:`none`,meta:`none`,noembed:`none`,noframes:`none`,param:`block`,rp:`none`,script:`block`,style:`none`,template:`inline`,title:`none`,html:`block`,body:`block`,address:`block`,blockquote:`block`,center:`block`,dialog:`block`,div:`block`,figure:`block`,figcaption:`block`,footer:`block`,form:`block`,header:`block`,hr:`block`,legend:`block`,listing:`block`,main:`block`,p:`block`,plaintext:`block`,pre:`block`,search:`block`,xmp:`block`,slot:`contents`,ruby:`ruby`,rt:`ruby-text`,article:`block`,aside:`block`,h1:`block`,h2:`block`,h3:`block`,h4:`block`,h5:`block`,h6:`block`,hgroup:`block`,nav:`block`,section:`block`,dir:`block`,dd:`block`,dl:`block`,dt:`block`,menu:`block`,ol:`block`,ul:`block`,li:`list-item`,table:`table`,caption:`table-caption`,colgroup:`table-column-group`,col:`table-column`,thead:`table-header-group`,tbody:`table-row-group`,tfoot:`table-footer-group`,tr:`table-row`,td:`table-cell`,th:`table-cell`,input:`inline-block`,button:`inline-block`,fieldset:`block`,details:`block`,summary:`block`,marquee:`inline-block`,option:`block`,optgroup:`block`,select:`inline-block`,source:`block`,track:`block`,meter:`inline-block`,progress:`inline-block`,object:`inline-block`,video:`inline-block`,audio:`inline-block`},Et=`normal`,Dt={listing:`pre`,plaintext:`pre`,pre:`pre`,xmp:`pre`,nobr:`nowrap`,table:`initial`,textarea:`pre-wrap`};function Ot(e){return e.kind===`element`&&!e.hasExplicitNamespace&&![`html`,`svg`].includes(e.namespace)}var kt=Ot,At=e=>h(0,e,/^[\t\f\r ]*\n/g,``),jt=e=>At(E.trimEnd(e)),Mt=e=>{let t=e,n=E.getLeadingWhitespace(t);n&&(t=t.slice(n.length));let r=E.getTrailingWhitespace(t);return r&&(t=t.slice(0,-r.length)),{leadingWhitespace:n,trailingWhitespace:r,text:t}};function Nt(e,t){return!!(e.kind===`ieConditionalComment`&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||e.kind===`ieConditionalComment`&&!e.complete||j(e)&&e.children.some(e=>e.kind!==`text`&&e.kind!==`interpolation`)||_n(e,t)&&!A(e,t)&&e.kind!==`interpolation`)}function Pt(e){return e.kind===`attribute`||!e.parent||!e.prev?!1:Ft(e.prev)}function Ft(e){return e.kind===`comment`&&e.value.trim()===`prettier-ignore`}function k(e){return e.kind===`text`||e.kind===`comment`}function A(e,t){return e.kind===`element`&&(e.fullName===`script`||e.fullName===`style`||e.fullName===`svg:style`||e.fullName===`svg:script`||e.fullName===`mj-style`&&t.parser===`mjml`||kt(e)&&(e.name===`script`||e.name===`style`))}function It(e,t){return e.children&&!A(e,t)}function Lt(e,t){return A(e,t)||e.kind===`interpolation`||Rt(e)}function Rt(e){return pn(e).startsWith(`pre`)}function zt(e,t){let n=r();if(n&&!e.prev&&e.parent?.tagDefinition?.ignoreFirstLf)return e.kind===`interpolation`;return n;function r(){return _t(e)||e.kind===`angularControlFlowBlock`?!1:(e.kind===`text`||e.kind===`interpolation`)&&e.prev&&(e.prev.kind===`text`||e.prev.kind===`interpolation`)?!0:!e.parent||e.parent.cssDisplay===`none`?!1:j(e.parent)?!0:!(!e.prev&&(e.parent.kind===`root`||j(e)&&e.parent||A(e.parent,t)||gn(e.parent,t)||!on(e.parent.cssDisplay))||e.prev&&!ln(e.prev.cssDisplay))}}function Bt(e,t){return _t(e)||e.kind===`angularControlFlowBlock`?!1:(e.kind===`text`||e.kind===`interpolation`)&&e.next&&(e.next.kind===`text`||e.next.kind===`interpolation`)?!0:!e.parent||e.parent.cssDisplay===`none`?!1:j(e.parent)?!0:!(!e.next&&(e.parent.kind===`root`||j(e)&&e.parent||A(e.parent,t)||gn(e.parent,t)||!sn(e.parent.cssDisplay))||e.next&&!cn(e.next.cssDisplay))}function Vt(e,t){return un(e.cssDisplay)&&!A(e,t)}function Ht(e){return _t(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line}function Ut(e){return Wt(e)||e.kind===`element`&&e.children.length>0&&([`body`,`script`,`style`].includes(e.name)||e.children.some(e=>Qt(e)))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.kind!==`text`&&Jt(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||Yt(e.lastChild))}function Wt(e){return e.kind===`element`&&e.children.length>0&&([`html`,`head`,`ul`,`ol`,`select`].includes(e.name)||e.cssDisplay.startsWith(`table`)&&e.cssDisplay!==`table-cell`)}function Gt(e){return Xt(e)||e.prev&&Kt(e.prev)||qt(e)}function Kt(e){return Xt(e)||e.kind===`element`&&e.fullName===`br`||qt(e)}function qt(e){return Jt(e)&&Yt(e)}function Jt(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:e.parent.kind===`root`||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function Yt(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:e.parent.kind===`root`||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function Xt(e){switch(e.kind){case`ieConditionalComment`:case`comment`:case`directive`:return!0;case`element`:return[`script`,`select`].includes(e.name)}return!1}function Zt(e){return e.lastChild?Zt(e.lastChild):e}function Qt(e){return e.children?.some(e=>e.kind!==`text`)}function $t(e){if(e)switch(e){case`module`:case`text/javascript`:case`text/babel`:case`text/jsx`:case`application/javascript`:return`babel`;case`application/x-typescript`:return`typescript`;case`text/markdown`:return`markdown`;case`text/html`:return`html`;case`text/x-handlebars-template`:return`glimmer`;default:if(e.endsWith(`json`)||e.endsWith(`importmap`)||e===`speculationrules`)return`json`}}function en(e,t){let{name:n,attrMap:r}=e;if(n!==`script`||Xe(r,`src`))return;let{type:i,lang:a}=e.attrMap;return!a&&!i?`babel`:mt(t,{language:a})??$t(i)}function tn(e,t){if(!_n(e,t))return;let{attrMap:n}=e;if(Xe(n,`src`))return;let{type:r,lang:i}=n;return mt(t,{language:i})??$t(r)}function nn(e,t){if(e.name===`style`){let{lang:n}=e.attrMap;return n?mt(t,{language:n}):`css`}if(e.name===`mj-style`&&t.parser===`mjml`)return`css`}function rn(e,t){return en(e,t)??nn(e,t)??tn(e,t)}function an(e){return e===`block`||e===`list-item`||e.startsWith(`table`)}function on(e){return!an(e)&&e!==`inline-block`}function sn(e){return!an(e)&&e!==`inline-block`}function cn(e){return!an(e)}function ln(e){return!an(e)}function un(e){return!an(e)&&e!==`inline-block`}function j(e){return pn(e).startsWith(`pre`)}function dn(e,t){let n=e;for(;n;){if(t(n))return!0;n=n.parent}return!1}function fn(e,t){if(N(e,t))return`block`;if(e.prev?.kind===`comment`){let t=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(t)return t[1]}let n=!1;if(e.kind===`element`&&e.namespace===`svg`){if(dn(e,e=>e.fullName===`svg:foreignObject`))n=!0;else return e.name===`svg`?`inline-block`:`block`}switch(t.htmlWhitespaceSensitivity){case`strict`:return`inline`;case`ignore`:return`block`;default:if(e.kind===`element`&&(!e.namespace||n||kt(e))&&Xe(Tt,e.name))return Tt[e.name]}return wt}function pn(e){return e.kind===`element`&&(!e.namespace||kt(e))&&Xe(Dt,e.name)?Dt[e.name]:Et}function mn(e){return h(0,h(0,e,`'`,`'`),`"`,`"`)}function M(e){return mn(e.value)}var hn=new Set([`template`,`style`,`script`]);function gn(e,t){return N(e,t)&&!hn.has(e.fullName)}function N(e,t){return t.parser===`vue`&&e.kind===`element`&&e.parent.kind===`root`&&e.fullName.toLowerCase()!==`html`}function _n(e,t){return N(e,t)&&(gn(e,t)||e.attrMap.lang&&e.attrMap.lang!==`html`)}function vn(e){let t=e.fullName;return t.charAt(0)===`#`||t===`slot-scope`||t===`v-slot`||t.startsWith(`v-slot:`)}function yn(e,t){let n=e.parent;if(!N(n,t))return!1;let r=n.fullName,i=e.fullName;return r===`script`&&i===`setup`||r===`style`&&i===`vars`}function bn(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?v(t):v(E.dedentString(jt(t)),T):S(C,E.split(t))}function xn(e,t){return N(e,t)&&e.name===`script`}function Sn(e){let{valueSpan:t,value:n}=e;return t.end.offset-t.start.offset===n.length+2}function Cn(e,t){if(Sn(e))return!1;let{value:n}=e;return/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(n)||t.parser===`lwc`&&n.startsWith(`{`)&&n.endsWith(`}`)}var wn=/\{\{(.+?)\}\}/s,Tn=({node:{value:e}})=>wn.test(e);async function En(e,t,n){let r=M(n.node),i=[];for(let[t,n]of r.split(wn).entries())if(t%2==0)i.push(v(n));else try{i.push(x([`{{`,b([C,await O(n,e,{parser:`__ng_interpolation`,__isInHtmlInterpolation:!0})]),C,`}}`]))}catch{i.push(`{{`,v(n),`}}`)}return i}var Dn=e=>(t,n,r)=>O(M(r.node),t,{parser:e},D),On=[{test(e){let t=e.node.fullName;return t.startsWith(`(`)&&t.endsWith(`)`)||t.startsWith(`on-`)},print:Dn(`__ng_action`)},{test(e){let t=e.node.fullName;return t.startsWith(`[`)&&t.endsWith(`]`)||/^bind(?:on)?-/.test(t)||/^ng-(?:if|show|hide|class|style)$/.test(t)},print:Dn(`__ng_binding`)},{test:e=>e.node.fullName.startsWith(`*`),print:Dn(`__ng_directive`)},{test:e=>/^i18n(?:-.+)?$/.test(e.node.fullName),print:kn},{test:Tn,print:En}].map(({test:e,print:t})=>({test:(t,n)=>n.parser===`angular`&&e(t),print:t}));function kn(e,t,{node:n}){let r=M(n);return qe(Pe(bn(n,r.trim())),!r.includes(`@@`))}var An=On,jn=({node:e},t)=>!t.parentParser&&e.fullName===`class`&&!e.value.includes(`{{`),Mn=(e,t,n)=>h(0,M(n.node).trim(),/\s+/g,` `),Nn=new Set(`onabort.onafterprint.onauxclick.onbeforeinput.onbeforematch.onbeforeprint.onbeforetoggle.onbeforeunload.onblur.oncancel.oncanplay.oncanplaythrough.onchange.onclick.onclose.oncommand.oncontextlost.oncontextmenu.oncontextrestored.oncopy.oncuechange.oncut.ondblclick.ondrag.ondragend.ondragenter.ondragleave.ondragover.ondragstart.ondrop.ondurationchange.onemptied.onended.onerror.onfocus.onformdata.onhashchange.oninput.oninvalid.onkeydown.onkeypress.onkeyup.onlanguagechange.onload.onloadeddata.onloadedmetadata.onloadstart.onmessage.onmessageerror.onmousedown.onmouseenter.onmouseleave.onmousemove.onmouseout.onmouseover.onmouseup.onoffline.ononline.onpagehide.onpagereveal.onpageshow.onpageswap.onpaste.onpause.onplay.onplaying.onpopstate.onprogress.onratechange.onrejectionhandled.onreset.onresize.onscroll.onscrollend.onsecuritypolicyviolation.onseeked.onseeking.onselect.onslotchange.onstalled.onstorage.onsubmit.onsuspend.ontimeupdate.ontoggle.onunhandledrejection.onunload.onvolumechange.onwaiting.onwheel`.split(`.`)),Pn=({node:e},t)=>Nn.has(e.fullName)&&!t.parentParser&&!e.value.includes(`{{`),Fn=(e,t,n)=>O(M(n.node),e,{parser:`babel`,__isHtmlInlineEventHandler:!0},()=>!1);function In(e){let t=[];for(let n of e.split(`;`)){if(n=E.trim(n),!n)continue;let[e,...r]=E.split(n);t.push({name:e,value:r})}return t}var Ln=In,Rn=({node:e},t)=>e.fullName===`allow`&&!t.parentParser&&e.parent.fullName===`iframe`&&!e.value.includes(`{{`);function zn(e,t,n){let{node:r}=n,i=Ln(M(r));return i.length===0?[``]:qe(i.map(({name:e,value:t},n)=>[[e,...t].join(` `),n===i.length-1?Fe(`;`):[`;`,C]]))}function Bn(e){return e===` `||e===`
|
|
14
|
-
`||e===`\f`||e===`\r`||e===` `}var Vn=/^[ \t\n\r\u000c]+/,Hn=/^[, \t\n\r\u000c]+/,Un=/^[^ \t\n\r\u000c]+/,Wn=/[,]+$/,Gn=/^\d+$/,Kn=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function qn(e){let t=e.length,n,r,i,a,o,s=0,c;function l(t){let n,r=t.exec(e.substring(s));if(r)return[n]=r,s+=n.length,n}let u=[];for(;;){if(l(Hn),s>=t){if(u.length===0)throw Error(`Must contain one or more image candidate strings.`);return u}c=s,n=l(Un),r=[],n.slice(-1)===`,`?(n=n.replace(Wn,``),f()):d()}function d(){for(l(Vn),i=``,a=`in descriptor`;;){if(o=e.charAt(s),a===`in descriptor`){if(Bn(o))i&&(r.push(i),i=``,a=`after descriptor`);else if(o===`,`){s+=1,i&&r.push(i),f();return}else if(o===`(`)i+=o,a=`in parens`;else if(o===``){i&&r.push(i),f();return}else i+=o}else if(a===`in parens`){if(o===`)`)i+=o,a=`in descriptor`;else if(o===``){r.push(i),f();return}else i+=o}else if(a===`after descriptor`&&!Bn(o)){if(o===``){f();return}a=`in descriptor`,--s}s+=1}}function f(){let t=!1,i,a,o,s,l={},d,f,p,m,ee;for(s=0;s<r.length;s++)d=r[s],f=d[d.length-1],p=d.substring(0,d.length-1),m=parseInt(p,10),ee=parseFloat(p),Gn.test(p)&&f===`w`?((i||a)&&(t=!0),m===0?t=!0:i=m):Kn.test(p)&&f===`x`?((i||a||o)&&(t=!0),ee<0?t=!0:a=ee):Gn.test(p)&&f===`h`?((o||a)&&(t=!0),m===0?t=!0:o=m):t=!0;if(!t)l.source={value:n,startOffset:c},i&&(l.width={value:i}),a&&(l.density={value:a}),o&&(l.height={value:o}),u.push(l);else throw Error(`Invalid srcset descriptor found in "${e}" at "${d}".`)}}var Jn=qn,Yn=e=>e.node.fullName===`srcset`&&(e.parent.fullName===`img`||e.parent.fullName===`source`),Xn={width:`w`,height:`h`,density:`x`},Zn=Object.keys(Xn);function Qn(e,t,n){let r=Jn(M(n.node)),i=Zn.filter(e=>r.some(t=>Xe(t,e)));if(i.length>1)throw Error(`Mixed descriptor in srcset is not supported`);let[a]=i,o=Xn[a],s=r.map(e=>e.source.value),c=Math.max(...s.map(e=>e.length)),l=r.map(e=>e[a]?String(e[a].value):``),u=l.map(e=>{let t=e.indexOf(`.`);return t===-1?e.length:t}),d=Math.max(...u);return qe(S([`,`,C],s.map((e,t)=>{let n=[e],r=l[t];if(r){let i=c-e.length+1,a=d-u[t],s=` `.repeat(i+a);n.push(Fe(s,` `),r+o)}return n})))}var $n=({node:e},t)=>e.fullName===`style`&&!t.parentParser&&!e.value.includes(`{{`),er=async(e,t,n)=>qe(await e(M(n.node),{parser:`css`,__isHTMLStyleAttribute:!0})),tr=new WeakMap;function nr(e,t){return xe(tr,e.root,e=>e.children.some(e=>xn(e,t)&&[`ts`,`typescript`].includes(e.attrMap.lang)))}var P=nr;function rr(e,t,n){return O(`type T<${M(n.node)}> = any`,e,{parser:`babel-ts`,__isEmbeddedTypescriptGenericParameters:!0},D)}function ir(e,t,n,r){let i=M(n.node),a=P(n,r)?`babel-ts`:`babel`;return O(`function _(${i}) {}`,e,{parser:a,__isVueBindings:!0})}async function ar(e,t,n,r){let{left:i,operator:a,right:o}=or(M(n.node)),s=P(n,r);return[x(await O(`function _(${i}) {}`,e,{parser:s?`babel-ts`:`babel`,__isVueForBindingLeft:!0})),` `,a,` `,await O(o,e,{parser:s?`__ts_expression`:`__js_expression`})]}function or(e){let t=e.match(/(.*?)\s+(in|of)\s+(.*)/s);if(!t)return;let n={for:t[3].trim()};if(!n.for)return;let r=/,([^,\]}]*)(?:,([^,\]}]*))?$/,i=h(0,t[1].trim(),/^\(|\)$/g,``),a=i.match(r);a?(n.alias=i.replace(r,``),n.iterator1=a[1].trim(),a[2]&&(n.iterator2=a[2].trim())):n.alias=i;let o=[n.alias,n.iterator1,n.iterator2];if(!o.some((e,t)=>!e&&(t===0||o.slice(t+1).some(Boolean))))return{left:o.filter(Boolean).join(`,`),operator:t[2],right:n.for}}var sr=[{test:e=>e.node.fullName===`v-for`,print:ar},{test:(e,t)=>e.node.fullName===`generic`&&xn(e.parent,t),print:rr},{test:({node:e},t)=>vn(e)||yn(e,t),print:ir},{test(e){let t=e.node.fullName;return t.startsWith(`@`)||t.startsWith(`v-on:`)},print:cr},{test(e){let t=e.node.fullName;return t.startsWith(`:`)||t.startsWith(`.`)||t.startsWith(`v-bind:`)},print:lr},{test:e=>e.node.fullName.startsWith(`v-`),print:ur}].map(({test:e,print:t})=>({test:(t,n)=>n.parser===`vue`&&e(t,n),print:t}));async function cr(e,t,n,r){try{return await ur(e,t,n,r)}catch(e){if(e.cause?.code!==`BABEL_PARSER_SYNTAX_ERROR`)throw e}return O(M(n.node),e,{parser:P(n,r)?`__vue_ts_event_binding`:`__vue_event_binding`},D)}function lr(e,t,n,r){return O(M(n.node),e,{parser:P(n,r)?`__vue_ts_expression`:`__vue_expression`},D)}function ur(e,t,n,r){return O(M(n.node),e,{parser:P(n,r)?`__ts_expression`:`__js_expression`},D)}var dr=[{test:Yn,print:Qn},{test:$n,print:er},{test:Pn,print:Fn},{test:jn,print:Mn},{test:Rn,print:zn},...sr,...An].map(({test:e,print:t})=>({test:e,print:pr(t)}));function fr(e,t){let{node:n}=e,{value:r}=n;if(r)return Cn(n,t)?[n.rawName,`=`,r]:dr.find(({test:n})=>n(e,t))?.print}function pr(e){return async(t,n,r,i)=>{let a=await e(t,n,r,i);if(a)return a=De(a,e=>typeof e==`string`?h(0,e,`"`,`"`):e),[r.node.rawName,`="`,x(a),`"`]}}var mr=fr,F=e=>e.sourceSpan.start.offset,hr=e=>e.sourceSpan.end.offset;function gr(e,t){return[e.isSelfClosing?``:_r(e,t),vr(e,t)]}function _r(e,t){return e.lastChild&&R(e.lastChild)?``:[yr(e,t),br(e,t)]}function vr(e,t){return(e.next?L(e.next):Cr(e.parent))?``:[xr(e,t),I(e,t)]}function yr(e,t){return Cr(e)?xr(e.lastChild,t):``}function I(e,t){return R(e)?br(e.parent,t):wr(e)?Mr(e.next,t):``}function br(e,t){if(Sr(e,t))return``;switch(e.kind){case`ieConditionalComment`:return`<!`;case`element`:if(e.hasHtmComponentClosingTag)return`<//`;default:return`</${e.rawName}`}}function xr(e,t){if(Sr(e,t))return``;switch(e.kind){case`ieConditionalComment`:case`ieConditionalEndComment`:return`[endif]-->`;case`ieConditionalStartComment`:return`]><!-->`;case`interpolation`:return`}}`;case`angularIcuExpression`:return`}`;case`element`:if(e.isSelfClosing)return`/>`;default:return`>`}}function Sr(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(Pt(e)||Nt(e.parent,t))}function L(e){return e.prev&&e.prev.kind!==`docType`&&e.kind!==`angularControlFlowBlock`&&!k(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Cr(e){return e.lastChild?.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!k(Zt(e.lastChild))&&!j(e)}function R(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&k(Zt(e))}function wr(e){return e.next&&!k(e.next)&&k(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function Tr(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return t?!t[1]||t[1].split(/\s+/):!1}function Er(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Dr(e,t,n){let{node:r}=e,{attrs:i=[],startTagComments:a=[]}=r;if(i.length===0&&a.length===0)return r.isSelfClosing?` `:``;let o=r.prev?.kind===`comment`&&Tr(r.prev.value),s=typeof o==`boolean`?()=>o:Array.isArray(o)?e=>o.includes(e.rawName):()=>!1,c=[`attrs`,`startTagComments`].filter(e=>ct(r[e])),l=c.flatMap(r=>e.map(({node:e})=>({loc:F(e),printed:e.kind===`attribute`&&s(e)?v(t.originalText.slice(F(e),hr(e))):n()}),r));c.length>1&&l.sort((e,t)=>e.loc-t.loc);let u=r.kind===`element`&&r.fullName===`script`&&i.length===1&&i[0].fullName===`src`&&r.children.length===0&&a.length===0,d=a.some(e=>e.type===`single`),f=d||t.singleAttributePerLine&&i.length>1&&!N(r,t)?T:C,p=[b([u?` `:d?T:C,S(f,l.map(({printed:e})=>e))])];return r.firstChild&&Er(r.firstChild)||r.isSelfClosing&&Cr(r.parent)||u?p.push(r.isSelfClosing?` `:``):p.push(t.bracketSameLine?r.isSelfClosing?` `:``:r.isSelfClosing?C:w),p}function Or(e){return e.firstChild&&Er(e.firstChild)?``:Nr(e)}function kr(e,t,n){let{node:r}=e;return[Ar(r,t),Dr(e,t,n),r.isSelfClosing?``:Or(r)]}function Ar(e,t){return e.prev&&wr(e.prev)?``:[z(e,t),Mr(e,t)]}function z(e,t){return Er(e)?Nr(e.parent):L(e)?xr(e.prev,t):``}var jr=`<!doctype`;function Mr(e,t){switch(e.kind){case`ieConditionalComment`:case`ieConditionalStartComment`:return`<!--[if ${e.condition}`;case`ieConditionalEndComment`:return`<!--<!`;case`interpolation`:return`{{`;case`docType`:{if(e.value===`html`){let{filepath:e}=t;if(e&&/\.html?$/.test(e))return jr}let n=F(e);return t.originalText.slice(n,n+jr.length)}case`angularIcuExpression`:return`{`;case`element`:if(e.condition)return`<!--[if ${e.condition}]><!--><${e.rawName}`;default:return`<${e.rawName}`}}function Nr(e){switch(e.kind){case`ieConditionalComment`:return`]>`;case`element`:if(e.condition)return`><!--<![endif]-->`;default:return`>`}}function Pr(e,t){if(!e.endSourceSpan)return``;let n=e.startSourceSpan.end.offset;e.firstChild&&Er(e.firstChild)&&(n-=Nr(e).length);let r=e.endSourceSpan.start.offset;return e.lastChild&&R(e.lastChild)?r+=br(e,t).length:Cr(e)&&(r-=xr(e.lastChild,t).length),t.originalText.slice(n,r)}var Fr=Pr,Ir=new Set([`if`,`else if`,`for`,`switch`,`case`]);function Lr(e,t){let{node:n}=e;switch(n.kind){case`element`:if(A(n,t)||n.kind===`interpolation`)return;if(!n.isSelfClosing&&_n(n,t)){let r=rn(n,t);return r?async(i,a)=>{let o=Fr(n,t),s=/^\s*$/.test(o),c=``;return s||(c=await i(jt(o),{parser:r,__embeddedInHtml:!0}),s=c===``),[z(n,t),x(kr(e,t,a)),s?``:T,c,s?``:T,gr(n,t),I(n,t)]}:void 0}break;case`text`:if(A(n.parent,t)){let e=rn(n.parent,t);if(e)return async r=>{let i=e===`markdown`?E.dedentString(n.value.replace(/^[^\S\n]*\n/,``)):n.value,a={parser:e,__embeddedInHtml:!0};if(t.parser===`html`&&e===`babel`){let e=`script`,{attrMap:t}=n.parent;t&&(t.type===`module`||(t.type===`text/babel`||t.type===`text/jsx`)&&t[`data-type`]===`module`)&&(e=`module`),a.__babelSourceType=e}return[Ne,z(n,t),await r(i,a),I(n,t)]}}else if(n.parent.kind===`interpolation`)return async r=>{let i={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return i.parser=t.parser===`angular`?`__ng_interpolation`:t.parser===`vue`?P(e,t)?`__vue_ts_expression`:`__vue_expression`:`__js_expression`,[b([C,await r(n.value,i)]),n.parent.next&&L(n.parent.next)?` `:C]};break;case`attribute`:return mr(e,t);case`angularControlFlowBlockParameters`:return Ir.has(e.parent.name)?Ye:void 0;case`angularLetDeclarationInitializer`:return e=>O(n.value,e,{parser:`__ng_binding`,__isInHtmlAttribute:!1})}}var Rr=Lr,zr=null;function Br(e){if(zr!==null&&typeof zr.property){let e=zr;return zr=Br.prototype=null,e}return zr=Br.prototype=e??Object.create(null),new Br}var Vr=10;for(let e=0;e<=Vr;e++)Br();function Hr(e){return Br(e)}function Ur(e,t=`type`){Hr(e);function n(n){let r=n[t],i=e[r];if(!Array.isArray(i))throw Object.assign(Error(`Missing visitor keys for '${r}'.`),{node:n});return i}return n}var Wr=Ur,Gr=[[`children`]],Kr=Wr({root:Gr[0],element:[`attrs`,`startTagComments`,`children`],ieConditionalComment:Gr[0],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:Gr[0],text:Gr[0],docType:[],comment:[],attribute:[],startTagComment:[],cdata:[],angularControlFlowBlock:[`children`,`parameters`],angularControlFlowBlockParameters:Gr[0],angularControlFlowBlockParameter:[],angularLetDeclaration:[`init`],angularLetDeclarationInitializer:[],angularIcuExpression:[`cases`],angularIcuCase:[`expression`]},`kind`),qr=new Set([`sourceSpan`,`startSourceSpan`,`endSourceSpan`,`nameSpan`,`valueSpan`,`keySpan`,`tagDefinition`,`tokens`,`valueTokens`,`switchValueSourceSpan`,`expSourceSpan`,`valueSourceSpan`]),Jr=new Set([`if`,`else if`,`for`,`switch`,`case`]);function Yr(e,t,n){if(e.kind===`text`||e.kind===`comment`)return null;if(e.kind===`yaml`&&delete t.value,e.kind===`attribute`){let{fullName:r,value:i}=e;r===`style`||r===`class`||r===`srcset`&&(n.fullName===`img`||n.fullName===`source`)||r===`allow`&&n.fullName===`iframe`||r.startsWith(`on`)||r.startsWith(`@`)||r.startsWith(`:`)||r.startsWith(`.`)||r.startsWith(`#`)||r.startsWith(`v-`)||r===`vars`&&n.fullName===`style`||(r===`setup`||r===`generic`)&&n.fullName===`script`||r===`slot-scope`||r.startsWith(`(`)||r.startsWith(`[`)||r.startsWith(`*`)||r.startsWith(`bind`)||r.startsWith(`i18n`)||r.startsWith(`on-`)||r.startsWith(`ng-`)||i?.includes(`{{`)?delete t.value:i&&(t.value=h(0,i,/'|"|'/g,`"`))}if(e.kind===`docType`&&(t.value=h(0,e.value.toLowerCase(),/\s+/g,` `)),e.kind===`angularControlFlowBlock`&&e.parameters?.children)for(let n of t.parameters.children)Jr.has(e.name)?delete n.expression:n.expression=n.expression.trim();e.kind===`angularIcuExpression`&&(t.switchValue=e.switchValue.trim()),e.kind===`angularLetDeclarationInitializer`&&delete t.value,e.kind===`element`&&e.isVoid&&!e.isSelfClosing&&(t.isSelfClosing=!0)}Yr.ignoredProperties=qr;var Xr=`format`,Zr=/^\s*<!--\s*@(?:noformat|noprettier)\s*-->/,Qr=/^\s*<!--\s*@(?:format|prettier)\s*-->/,$r=e=>Qr.test(e),ei=e=>Zr.test(e),ti=e=>`<!-- @${Xr} -->
|
|
15
|
-
|
|
16
|
-
${e}`,ni=new Map([[`if`,new Set([`else if`,`else`])],[`else if`,new Set([`else if`,`else`])],[`for`,new Set([`empty`])],[`defer`,new Set([`placeholder`,`error`,`loading`])],[`placeholder`,new Set([`placeholder`,`error`,`loading`])],[`error`,new Set([`placeholder`,`error`,`loading`])],[`loading`,new Set([`placeholder`,`error`,`loading`])]]);function ri(e){let t=hr(e);return e.kind===`element`&&!e.endSourceSpan&&ct(e.children)?Math.max(t,ri(g(0,e.children,-1))):t}function ii(e,t,n){let r=e.node;if(Pt(r)){let e=ri(r);return[z(r,t),v(E.trimEnd(t.originalText.slice(F(r)+(r.prev&&wr(r.prev)?Mr(r).length:0),e-(r.next&&L(r.next)?xr(r,t).length:0)))),I(r,t)]}return n()}function ai(e,t){return k(e)&&k(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?Gt(t)?T:C:``:Gt(t)?T:w:wr(e)&&(Pt(t)||t.firstChild||t.isSelfClosing||t.kind===`element`&&t.attrs.length>0)||e.kind===`element`&&e.isSelfClosing&&L(t)?``:t.kind===`comment`&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces?w:!t.isLeadingSpaceSensitive||Gt(t)||L(t)&&e.lastChild&&R(e.lastChild)&&e.lastChild.lastChild&&R(e.lastChild.lastChild)?T:t.hasLeadingSpaces?C:w}function oi(e,t,n){let{node:r}=e;if(Wt(r))return[Ne,...e.map(()=>{let r=e.node,i=r.prev?ai(r.prev,r):``;return[i?[i,Ht(r.prev)?T:``]:``,ii(e,t,n)]},`children`)];let i=r.children.map(()=>Symbol(``));return e.map(({node:r,index:a})=>{if(k(r)){if(r.prev&&k(r.prev)){let i=ai(r.prev,r);if(i)return Ht(r.prev)?[T,T,ii(e,t,n)]:[i,ii(e,t,n)]}return ii(e,t,n)}let o=[],s=[],c=[],l=[],u=r.prev?ai(r.prev,r):``,d=r.next?ai(r,r.next):``;return u&&(Ht(r.prev)?o.push(T,T):u===T?o.push(T):k(r.prev)?s.push(u):s.push(Fe(``,w,{groupId:i[a-1]}))),d&&(Ht(r)?k(r.next)&&l.push(T,T):d===T?k(r.next)&&l.push(T):c.push(d)),[...o,x([...s,x([ii(e,t,n),...c],{id:i[a]})]),...l]},`children`)}function si(e,t,n){let{node:r}=e,i=[];fi(e)&&i.push(`} `),i.push(`@`,r.name);let a=ui(r);if(r.parameters&&(a||i.push(` `),i.push(`(`,x(n(`parameters`)),`)`)),a)return i.push(`;`),i;if(!di(r)){i.push(` {`);let a=ci(r);r.children.length>0?(r.firstChild.hasLeadingSpaces=!0,r.lastChild.hasTrailingSpaces=!0,i.push(b([T,oi(e,t,n)])),a&&i.push(T,`}`)):a&&i.push(`}`)}return x(i,{shouldBreak:!0})}function ci(e){return!(e.next?.kind===`angularControlFlowBlock`&&ni.get(e.name)?.has(e.next.name))}var li=e=>e?.kind===`angularControlFlowBlock`&&(e.name===`case`||e.name==="default"),ui=e=>e?.kind===`angularControlFlowBlock`&&e.name===`default never`;function di(e){return li(e)&&e.endSourceSpan&&e.endSourceSpan.start.offset===e.endSourceSpan.end.offset}function fi(e){let{previous:t}=e;return t?.kind===`angularControlFlowBlock`&&!Pt(t)&&!ci(t)}function pi(e,t,n){return[b([w,S([`;`,C],e.map(n,`children`))]),w]}function mi(e,t,n){let{node:r}=e;return[Ar(r,t),x([r.switchValue.trim(),`, `,r.type,r.cases.length>0?[`,`,b([C,S(C,e.map(n,`cases`))])]:``,w]),vr(r,t)]}function hi(e,t,n){let{node:r}=e;return[r.value,` {`,x([b([w,e.map(({node:e,isLast:t})=>{let r=[n()];return e.kind===`text`&&(e.hasLeadingSpaces&&r.unshift(C),e.hasTrailingSpaces&&!t&&r.push(C)),r},`expression`)]),w]),`}`]}function gi(e,t,n){let{node:r}=e;if(Nt(r,t))return[z(r,t),x(kr(e,t,n)),v(Fr(r,t)),...gr(r,t),I(r,t)];let i=r.children.length===1&&(r.firstChild.kind===`interpolation`||r.firstChild.kind===`angularIcuExpression`)&&r.firstChild.isLeadingSpaceSensitive&&!r.firstChild.hasLeadingSpaces&&r.lastChild.isTrailingSpaceSensitive&&!r.lastChild.hasTrailingSpaces,a=Symbol(`element-attr-group-id`),o=i=>x([x(kr(e,t,n),{id:a}),i,gr(r,t)]);return r.children.length===0?o(r.hasDanglingSpaces&&r.isDanglingSpaceSensitive?C:``):o([Ut(r)?Ne:``,(e=>i?Ie(e,{groupId:a}):(A(r,t)||gn(r,t))&&r.parent.kind===`root`&&t.parser===`vue`&&!t.vueIndentScriptAndStyle?e:b(e))([i?Fe(w,``,{groupId:a}):r.firstChild.hasLeadingSpaces&&r.firstChild.isLeadingSpaceSensitive?C:r.firstChild.kind===`text`&&r.isWhitespaceSensitive&&r.isIndentationSensitive?Me(w):w,oi(e,t,n)]),(r.next?L(r.next):Cr(r.parent))?r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?` `:``:j(r)&&R(r.lastChild)?``:i?Fe(w,``,{groupId:a}):r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?C:(r.lastChild.kind===`comment`||r.lastChild.kind===`text`&&r.isWhitespaceSensitive&&r.isIndentationSensitive)&&RegExp(`\\n[\\t ]{${t.tabWidth*(e.ancestors.length-1)}}$`).test(r.lastChild.value)?``:w])}function _i(e){let{node:{value:t,type:n}}=e;return n===`single`?`//${t.trimEnd()}`:[`/*`,v(t),`*/`]}var vi=(function(e){return e[e.RAW_TEXT=0]=`RAW_TEXT`,e[e.ESCAPABLE_RAW_TEXT=1]=`ESCAPABLE_RAW_TEXT`,e[e.PARSABLE_DATA=2]=`PARSABLE_DATA`,e})({});function B(e,t=!0){if(e[0]!=`:`)return[null,e];let n=e.indexOf(`:`,1);if(n===-1){if(t)throw Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[null,e]}return[e.slice(1,n),e.slice(n+1)]}function yi(e){return B(e)[1]===`ng-container`}function bi(e){return B(e)[1]===`ng-content`}function xi(e){return e===null?null:B(e)[0]}function Si(e,t){return e?`:${e}:${t}`:t}var Ci,wi=`math`,Ti=()=>Object.create(null);function Ei(){return Ci||(Ci=Ti(),V(1,void 0,[[`iframe`,[`srcdoc`]],[`*`,[`innerHTML`,`outerHTML`]]]),V(2,void 0,[[`*`,[`style`]]]),V(4,void 0,[[`*`,[`formAction`]],[`area`,[`href`]],[`a`,[`href`,`xlink:href`]],[`form`,[`action`]],[`img`,[`src`]],[`video`,[`src`]]]),V(4,wi,[[`*`,[`href`,`xlink:href`]]]),V(5,void 0,[[`base`,[`href`]],[`embed`,[`src`]],[`frame`,[`src`]],[`iframe`,[`src`]],[`link`,[`href`]],[`object`,[`codebase`,`data`]]]),V(4,`svg`,[[`a`,[`href`,`xlink:href`]]]),V(6,`svg`,[[`animate`,[`attributeName`,`values`,`to`,`from`]],[`set`,[`to`,`attributeName`]],[`animateMotion`,[`attributeName`]],[`animateTransform`,[`attributeName`]]]),V(6,void 0,[[`unknown`,[`attributeName`,`values`,`to`,`from`,`sandbox`,`allow`,`allowFullscreen`,`referrerPolicy`,`csp`,`fetchPriority`,`credentialless`]],[`iframe`,[`sandbox`,`allow`,`allowFullscreen`,`referrerPolicy`,`csp`,`fetchPriority`,`credentialless`]]]),Ci)}function V(e,t,n){let r=t??``;for(let[t,a]of n){let n=t.toLowerCase();for(let t of a){var i;let a=t.toLowerCase(),o=(i=Ci)[a]??(i[a]=Ti()),s=o[r]??(o[r]=Ti());s[n]=e}}}function Di(e,t,n){let r=Ei()[t.toLowerCase()];if(!r)return 0;let i=e.toLowerCase(),a;if(n){let e=r[n];e&&(a=e[i]??e[`*`])}if(a===void 0){let e=r[``];e&&(a=e[i]??e[`*`])}return a??0}var Oi={name:`custom-elements`},ki={name:`no-errors-schema`},Ai=/-+([a-z0-9])/g;function ji(e){return e.replace(Ai,(...e)=>e[1].toUpperCase())}var Mi=class{},Ni=`boolean`,Pi=`number`,Fi=`string`,Ii=`object`;function Li(e){let[t,n]=B(e.toLowerCase(),!1);return t===`svg`||t===`math`?`:${t}:${n}`:n}var Ri=`[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored.[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy.abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy.media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume.:svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex.:svg:graphics^:svg:|.:svg:animation^:svg:|*begin,*end,*repeat.:svg:geometry^:svg:|.:svg:componentTransferFunction^:svg:|.:svg:gradient^:svg:|.:svg:textContent^:svg:graphics|.:svg:textPositioning^:svg:textContent|.a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username.area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username.audio^media|.br^[HTMLElement]|clear.base^[HTMLElement]|href,target.body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink.button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value.canvas^[HTMLElement]|#height,#width.content^[HTMLElement]|select.dl^[HTMLElement]|!compact.data^[HTMLElement]|value.datalist^[HTMLElement]|.details^[HTMLElement]|!open.dialog^[HTMLElement]|!open,returnValue.dir^[HTMLElement]|!compact.div^[HTMLElement]|align.embed^[HTMLElement]|align,height,name,src,type,width.fieldset^[HTMLElement]|!disabled,name.font^[HTMLElement]|color,face,size.form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target.frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src.frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows.geolocation^[HTMLElement]|accuracymode,!autolocate,*location,*promptaction,*promptdismiss,*validationstatuschange,!watch.hr^[HTMLElement]|align,color,!noShade,size,width.head^[HTMLElement]|.h1,h2,h3,h4,h5,h6^[HTMLElement]|align.html^[HTMLElement]|version.iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,!credentialless,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width.img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width.input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width.li^[HTMLElement]|type,#value.label^[HTMLElement]|htmlFor.legend^[HTMLElement]|align.link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type.map^[HTMLElement]|name.marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width.menu^[HTMLElement]|!compact.meta^[HTMLElement]|content,httpEquiv,media,name,scheme.meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value.ins,del^[HTMLElement]|cite,dateTime.ol^[HTMLElement]|!compact,!reversed,#start,type.object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width.optgroup^[HTMLElement]|!disabled,label.option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value.output^[HTMLElement]|defaultValue,%htmlFor,name,value.p^[HTMLElement]|align.param^[HTMLElement]|name,type,value,valueType.picture^[HTMLElement]|.pre^[HTMLElement]|#width.progress^[HTMLElement]|#max,#value.q,blockquote,cite^[HTMLElement]|.script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type.select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value.selectedcontent^[HTMLElement]|.slot^[HTMLElement]|name.source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width.span^[HTMLElement]|.style^[HTMLElement]|!disabled,media,type.search^[HTMLELement]|.caption^[HTMLElement]|align.th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width.col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width.table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width.tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign.tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign.template^[HTMLElement]|.textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap.time^[HTMLElement]|dateTime.title^[HTMLElement]|text.track^[HTMLElement]|!default,kind,label,src,srclang.ul^[HTMLElement]|!compact,type.unknown^[HTMLElement]|.video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width.:svg:a^:svg:graphics|.:svg:animate^:svg:animation|.:svg:animateMotion^:svg:animation|.:svg:animateTransform^:svg:animation|.:svg:circle^:svg:geometry|.:svg:clipPath^:svg:graphics|.:svg:defs^:svg:graphics|.:svg:desc^:svg:|.:svg:discard^:svg:|.:svg:ellipse^:svg:geometry|.:svg:feBlend^:svg:|.:svg:feColorMatrix^:svg:|.:svg:feComponentTransfer^:svg:|.:svg:feComposite^:svg:|.:svg:feConvolveMatrix^:svg:|.:svg:feDiffuseLighting^:svg:|.:svg:feDisplacementMap^:svg:|.:svg:feDistantLight^:svg:|.:svg:feDropShadow^:svg:|.:svg:feFlood^:svg:|.:svg:feFuncA^:svg:componentTransferFunction|.:svg:feFuncB^:svg:componentTransferFunction|.:svg:feFuncG^:svg:componentTransferFunction|.:svg:feFuncR^:svg:componentTransferFunction|.:svg:feGaussianBlur^:svg:|.:svg:feImage^:svg:|.:svg:feMerge^:svg:|.:svg:feMergeNode^:svg:|.:svg:feMorphology^:svg:|.:svg:feOffset^:svg:|.:svg:fePointLight^:svg:|.:svg:feSpecularLighting^:svg:|.:svg:feSpotLight^:svg:|.:svg:feTile^:svg:|.:svg:feTurbulence^:svg:|.:svg:filter^:svg:|.:svg:foreignObject^:svg:graphics|.:svg:g^:svg:graphics|.:svg:image^:svg:graphics|decoding.:svg:line^:svg:geometry|.:svg:linearGradient^:svg:gradient|.:svg:mpath^:svg:|.:svg:marker^:svg:|.:svg:mask^:svg:|.:svg:metadata^:svg:|.:svg:path^:svg:geometry|.:svg:pattern^:svg:|.:svg:polygon^:svg:geometry|.:svg:polyline^:svg:geometry|.:svg:radialGradient^:svg:gradient|.:svg:rect^:svg:geometry|.:svg:svg^:svg:graphics|#currentScale,#zoomAndPan.:svg:script^:svg:|type.:svg:set^:svg:animation|.:svg:stop^:svg:|.:svg:style^:svg:|!disabled,media,title,type.:svg:switch^:svg:graphics|.:svg:symbol^:svg:|.:svg:tspan^:svg:textPositioning|.:svg:text^:svg:textPositioning|.:svg:textPath^:svg:textContent|.:svg:title^:svg:|.:svg:use^:svg:graphics|.:svg:view^:svg:|#zoomAndPan.data^[HTMLElement]|value.keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name.menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default.summary^[HTMLElement]|.time^[HTMLElement]|dateTime.:svg:cursor^:svg:|.:math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex.:math:math^:math:|.:math:maction^:math:|.:math:menclose^:math:|.:math:merror^:math:|.:math:mfenced^:math:|.:math:mfrac^:math:|.:math:mi^:math:|.:math:mmultiscripts^:math:|.:math:mn^:math:|.:math:mo^:math:|.:math:mover^:math:|.:math:mpadded^:math:|.:math:mphantom^:math:|.:math:mroot^:math:|.:math:mrow^:math:|.:math:ms^:math:|.:math:mspace^:math:|.:math:msqrt^:math:|.:math:mstyle^:math:|.:math:msub^:math:|.:math:msubsup^:math:|.:math:msup^:math:|.:math:mtable^:math:|.:math:mtd^:math:|.:math:mtext^:math:|.:math:mtr^:math:|.:math:munder^:math:|.:math:munderover^:math:|.:math:semantics^:math:|`.split(`.`),zi=new Map(Object.entries({class:`className`,for:`htmlFor`,formaction:`formAction`,innerHtml:`innerHTML`,readonly:`readOnly`,tabindex:`tabIndex`,"aria-activedescendant":`ariaActiveDescendantElement`,"aria-atomic":`ariaAtomic`,"aria-autocomplete":`ariaAutoComplete`,"aria-busy":`ariaBusy`,"aria-checked":`ariaChecked`,"aria-colcount":`ariaColCount`,"aria-colindex":`ariaColIndex`,"aria-colindextext":`ariaColIndexText`,"aria-colspan":`ariaColSpan`,"aria-controls":`ariaControlsElements`,"aria-current":`ariaCurrent`,"aria-describedby":`ariaDescribedByElements`,"aria-description":`ariaDescription`,"aria-details":`ariaDetailsElements`,"aria-disabled":`ariaDisabled`,"aria-errormessage":`ariaErrorMessageElements`,"aria-expanded":`ariaExpanded`,"aria-flowto":`ariaFlowToElements`,"aria-haspopup":`ariaHasPopup`,"aria-hidden":`ariaHidden`,"aria-invalid":`ariaInvalid`,"aria-keyshortcuts":`ariaKeyShortcuts`,"aria-label":`ariaLabel`,"aria-labelledby":`ariaLabelledByElements`,"aria-level":`ariaLevel`,"aria-live":`ariaLive`,"aria-modal":`ariaModal`,"aria-multiline":`ariaMultiLine`,"aria-multiselectable":`ariaMultiSelectable`,"aria-orientation":`ariaOrientation`,"aria-owns":`ariaOwnsElements`,"aria-placeholder":`ariaPlaceholder`,"aria-posinset":`ariaPosInSet`,"aria-pressed":`ariaPressed`,"aria-readonly":`ariaReadOnly`,"aria-required":`ariaRequired`,"aria-roledescription":`ariaRoleDescription`,"aria-rowcount":`ariaRowCount`,"aria-rowindex":`ariaRowIndex`,"aria-rowindextext":`ariaRowIndexText`,"aria-rowspan":`ariaRowSpan`,"aria-selected":`ariaSelected`,"aria-setsize":`ariaSetSize`,"aria-sort":`ariaSort`,"aria-valuemax":`ariaValueMax`,"aria-valuemin":`ariaValueMin`,"aria-valuenow":`ariaValueNow`,"aria-valuetext":`ariaValueText`})),Bi=Array.from(zi).reduce((e,[t,n])=>(e.set(t,n),e),new Map),Vi=class extends Mi{constructor(){((...e)=>(super(...e),n(this,`_schema`,new Map),n(this,`_eventSchema`,new Map),this))(),Ri.forEach(e=>{let t=new Map,n=new Set,[r,i]=e.split(`|`),a=i.split(`,`),[o,s]=r.split(`^`);o.split(`,`).forEach(e=>{this._schema.set(e.toLowerCase(),t),this._eventSchema.set(e.toLowerCase(),n)});let c=s&&this._schema.get(s.toLowerCase());if(c){for(let[e,n]of c)t.set(e,n);for(let e of this._eventSchema.get(s.toLowerCase()))n.add(e)}a.forEach(e=>{if(e.length>0)switch(e[0]){case`*`:n.add(e.substring(1));break;case`!`:t.set(e.substring(1),Ni);break;case`#`:t.set(e.substring(1),Pi);break;case`%`:t.set(e.substring(1),Ii);break;default:t.set(e,Fi)}})})}hasProperty(e,t,n){if(n.some(e=>e.name===ki.name))return!0;let r=Li(e);if(r.includes(`-`)){if(yi(r)||bi(r))return!1;if(n.some(e=>e.name===Oi.name))return!0}return(this._schema.get(r)||this._schema.get(`unknown`)).has(t)}hasElement(e,t){if(t.some(e=>e.name===ki.name))return!0;let n=Li(e);return n.includes(`-`)&&(yi(n)||bi(n)||t.some(e=>e.name===Oi.name))?!0:this._schema.has(n)}securityContext(e,t,n){n&&(t=this.getMappedPropName(t));let[r,i]=B(e,!1);return Di(i,t,r)}getMappedPropName(e){return zi.get(e)??e}getDefaultComponentElementName(){return`ng-component`}validateProperty(e){return e.toLowerCase().startsWith(`on`)?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...
|
|
17
|
-
If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith(`on`)?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let t=Li(e),n=this._schema.get(t)||this._schema.get(`unknown`);return Array.from(n.keys()).map(e=>Bi.get(e)??e)}allKnownEventsOfElement(e){let t=Li(e);return Array.from(this._eventSchema.get(t)??[])}normalizeAnimationStyleProperty(e){return ji(e)}normalizeAnimationStyleValue(e,t,n){let r=``,i=n.toString().trim(),a=null;if(Hi(e)&&n!==0&&n!==`0`){if(typeof n==`number`)r=`px`;else{let e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&e[1].length==0&&(a=`Please provide a CSS unit value for ${t}:${n}`)}}return{error:a,value:i+r}}};function Hi(e){switch(e){case`width`:case`height`:case`minWidth`:case`minHeight`:case`maxWidth`:case`maxHeight`:case`left`:case`top`:case`bottom`:case`right`:case`fontSize`:case`outlineWidth`:case`outlineOffset`:case`paddingTop`:case`paddingLeft`:case`paddingBottom`:case`paddingRight`:case`marginTop`:case`marginLeft`:case`marginBottom`:case`marginRight`:case`borderRadius`:case`borderWidth`:case`borderTopWidth`:case`borderLeftWidth`:case`borderRightWidth`:case`borderBottomWidth`:case`textIndent`:return!0;default:return!1}}var H=class{constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:r=2,closedByParent:i=!1,isVoid:a=!1,ignoreFirstLf:o=!1,preventNamespaceInheritance:s=!1,canSelfClose:c=!1}={}){n(this,`closedByChildren`,{}),n(this,`contentType`,void 0),n(this,`closedByParent`,!1),n(this,`implicitNamespacePrefix`,void 0),n(this,`isVoid`,void 0),n(this,`ignoreFirstLf`,void 0),n(this,`canSelfClose`,void 0),n(this,`preventNamespaceInheritance`,void 0),e&&e.length>0&&e.forEach(e=>this.closedByChildren[e]=!0),this.isVoid=a,this.closedByParent=i||a,this.implicitNamespacePrefix=t||null,this.contentType=r,this.ignoreFirstLf=o,this.preventNamespaceInheritance=s,this.canSelfClose=c??a}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType==`object`?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},Ui,Wi;function Gi(e){return Wi||(Ui=new H({canSelfClose:!0}),Wi=Object.assign(Object.create(null),{base:new H({isVoid:!0}),meta:new H({isVoid:!0}),area:new H({isVoid:!0}),embed:new H({isVoid:!0}),link:new H({isVoid:!0}),img:new H({isVoid:!0}),input:new H({isVoid:!0}),param:new H({isVoid:!0}),hr:new H({isVoid:!0}),br:new H({isVoid:!0}),source:new H({isVoid:!0}),track:new H({isVoid:!0}),wbr:new H({isVoid:!0}),p:new H({closedByChildren:`address.article.aside.blockquote.div.dl.fieldset.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.main.nav.ol.p.pre.section.table.ul`.split(`.`),closedByParent:!0}),thead:new H({closedByChildren:[`tbody`,`tfoot`]}),tbody:new H({closedByChildren:[`tbody`,`tfoot`],closedByParent:!0}),tfoot:new H({closedByChildren:[`tbody`],closedByParent:!0}),tr:new H({closedByChildren:[`tr`],closedByParent:!0}),td:new H({closedByChildren:[`td`,`th`],closedByParent:!0}),th:new H({closedByChildren:[`td`,`th`],closedByParent:!0}),col:new H({isVoid:!0}),svg:new H({implicitNamespacePrefix:`svg`}),foreignObject:new H({implicitNamespacePrefix:`svg`,preventNamespaceInheritance:!0}),math:new H({implicitNamespacePrefix:`math`}),li:new H({closedByChildren:[`li`],closedByParent:!0}),dt:new H({closedByChildren:[`dt`,`dd`]}),dd:new H({closedByChildren:[`dt`,`dd`],closedByParent:!0}),rb:new H({closedByChildren:[`rb`,`rt`,`rtc`,`rp`],closedByParent:!0}),rt:new H({closedByChildren:[`rb`,`rt`,`rtc`,`rp`],closedByParent:!0}),rtc:new H({closedByChildren:[`rb`,`rtc`,`rp`],closedByParent:!0}),rp:new H({closedByChildren:[`rb`,`rt`,`rtc`,`rp`],closedByParent:!0}),optgroup:new H({closedByChildren:[`optgroup`],closedByParent:!0}),option:new H({closedByChildren:[`option`,`optgroup`],closedByParent:!0}),pre:new H({ignoreFirstLf:!0}),listing:new H({ignoreFirstLf:!0}),style:new H({contentType:0}),script:new H({contentType:0}),title:new H({contentType:{default:1,svg:2}}),textarea:new H({contentType:1,ignoreFirstLf:!0})}),new Vi().allKnownElementNames().forEach(e=>{!Wi[e]&&xi(e)===null&&(Wi[e]=new H({canSelfClose:!1}))})),Wi[e]??Ui}var Ki=class e{constructor(e,t,r,i){n(this,`file`,void 0),n(this,`offset`,void 0),n(this,`line`,void 0),n(this,`col`,void 0),this.file=e,this.offset=t,this.line=r,this.col=i}toString(){return this.offset==null?this.file.url:`${this.file.url}@${this.line}:${this.col}`}moveBy(t){let n=this.file.content,r=n.length,i=this.offset,a=this.line,o=this.col;for(;i>0&&t<0;)if(i--,t++,n.charCodeAt(i)==10){a--;let e=n.substring(0,i-1).lastIndexOf(`
|
|
18
|
-
`);o=e>0?i-e:i}else o--;for(;i<r&&t>0;){let e=n.charCodeAt(i);i++,t--,e==10?(a++,o=0):o++}return new e(this.file,i,a,o)}getContext(e,t){let n=this.file.content,r=this.offset;if(r!=null){r>n.length-1&&(r=n.length-1);let i=r,a=0,o=0;for(;a<e&&r>0&&(r--,a++,n[r]!=`
|
|
19
|
-
`||++o!=t););for(a=0,o=0;a<e&&i<n.length-1&&(i++,a++,n[i]!=`
|
|
20
|
-
`||++o!=t););return{before:n.substring(r,this.offset),after:n.substring(this.offset,i+1)}}return null}},qi=class{constructor(e,t){n(this,`content`,void 0),n(this,`url`,void 0),this.content=e,this.url=t}},U=class{constructor(e,t,r=e,i=null){n(this,`start`,void 0),n(this,`end`,void 0),n(this,`fullStart`,void 0),n(this,`details`,void 0),this.start=e,this.end=t,this.fullStart=r,this.details=i}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},Ji=(function(e){return e[e.WARNING=0]=`WARNING`,e[e.ERROR=1]=`ERROR`,e})({}),W=class extends Error{constructor(e,t,r=1,i){((...e)=>(super(...e),n(this,`span`,void 0),n(this,`msg`,void 0),n(this,`level`,void 0),n(this,`relatedError`,void 0),this))(t),this.span=e,this.msg=t,this.level=r,this.relatedError=i,Object.setPrototypeOf(this,new.target.prototype)}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${Ji[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:``;return`${this.contextualMessage()}: ${this.span.start}${e}`}},G=class{constructor(e,t){n(this,`sourceSpan`,void 0),n(this,`i18n`,void 0),this.sourceSpan=e,this.i18n=t}},Yi=class extends G{constructor(e,t,r,i){((...e)=>(super(...e),n(this,`value`,void 0),n(this,`tokens`,void 0),n(this,`kind`,`text`),this))(t,i),this.value=e,this.tokens=r}visit(e,t){return e.visitText(this,t)}},Xi=class extends G{constructor(e,t,r,i){((...e)=>(super(...e),n(this,`value`,void 0),n(this,`tokens`,void 0),n(this,`kind`,`cdata`),this))(t,i),this.value=e,this.tokens=r}visit(e,t){return e.visitCdata(this,t)}},Zi=class extends G{constructor(e,t,r,i,a,o){((...e)=>(super(...e),n(this,`switchValue`,void 0),n(this,`type`,void 0),n(this,`cases`,void 0),n(this,`switchValueSourceSpan`,void 0),n(this,`kind`,`expansion`),this))(i,o),this.switchValue=e,this.type=t,this.cases=r,this.switchValueSourceSpan=a}visit(e,t){return e.visitExpansion(this,t)}},Qi=class{constructor(e,t,r,i,a){n(this,`value`,void 0),n(this,`expression`,void 0),n(this,`sourceSpan`,void 0),n(this,`valueSourceSpan`,void 0),n(this,`expSourceSpan`,void 0),n(this,`kind`,`expansionCase`),this.value=e,this.expression=t,this.sourceSpan=r,this.valueSourceSpan=i,this.expSourceSpan=a}visit(e,t){return e.visitExpansionCase(this,t)}},$i=class extends G{constructor(e,t,r,i,a,o,s){((...e)=>(super(...e),n(this,`name`,void 0),n(this,`value`,void 0),n(this,`keySpan`,void 0),n(this,`valueSpan`,void 0),n(this,`valueTokens`,void 0),n(this,`kind`,`attribute`),this))(r,s),this.name=e,this.value=t,this.keySpan=i,this.valueSpan=a,this.valueTokens=o}visit(e,t){return e.visitAttribute(this,t)}get nameSpan(){return this.keySpan}},ea=class{constructor(e,t,r){n(this,`value`,void 0),n(this,`type`,void 0),n(this,`sourceSpan`,void 0),n(this,`kind`,`startTagComment`),this.value=e,this.type=t,this.sourceSpan=r}visit(e,t){return e.visitStartTagComment?e.visitStartTagComment(this,t):void 0}},K=class extends G{constructor(e,t,r,i,a,o,s,c=null,l=null,u,d,f=[]){((...e)=>(super(...e),n(this,`name`,void 0),n(this,`attrs`,void 0),n(this,`directives`,void 0),n(this,`children`,void 0),n(this,`isSelfClosing`,void 0),n(this,`startSourceSpan`,void 0),n(this,`endSourceSpan`,void 0),n(this,`nameSpan`,void 0),n(this,`isVoid`,void 0),n(this,`comments`,void 0),n(this,`kind`,`element`),this))(o,d),this.name=e,this.attrs=t,this.directives=r,this.children=i,this.isSelfClosing=a,this.startSourceSpan=s,this.endSourceSpan=c,this.nameSpan=l,this.isVoid=u,this.comments=f}visit(e,t){return e.visitElement(this,t)}},ta=class{constructor(e,t){n(this,`value`,void 0),n(this,`sourceSpan`,void 0),n(this,`kind`,`comment`),this.value=e,this.sourceSpan=t}visit(e,t){return e.visitComment(this,t)}},na=class{constructor(e,t){n(this,`value`,void 0),n(this,`sourceSpan`,void 0),n(this,`kind`,`docType`),this.value=e,this.sourceSpan=t}visit(e,t){return e.visitDocType(this,t)}},q=class extends G{constructor(e,t,r,i,a,o,s=null,c){((...e)=>(super(...e),n(this,`name`,void 0),n(this,`parameters`,void 0),n(this,`children`,void 0),n(this,`nameSpan`,void 0),n(this,`startSourceSpan`,void 0),n(this,`endSourceSpan`,void 0),n(this,`kind`,`block`),this))(i,c),this.name=e,this.parameters=t,this.children=r,this.nameSpan=a,this.startSourceSpan=o,this.endSourceSpan=s}visit(e,t){return e.visitBlock(this,t)}},J=class extends G{constructor(e,t,r,i,a,o,s,c,l,u=null,d,f=[]){((...e)=>(super(...e),n(this,`componentName`,void 0),n(this,`tagName`,void 0),n(this,`fullName`,void 0),n(this,`attrs`,void 0),n(this,`directives`,void 0),n(this,`children`,void 0),n(this,`isSelfClosing`,void 0),n(this,`startSourceSpan`,void 0),n(this,`endSourceSpan`,void 0),n(this,`comments`,void 0),n(this,`kind`,`component`),this))(c,d),this.componentName=e,this.tagName=t,this.fullName=r,this.attrs=i,this.directives=a,this.children=o,this.isSelfClosing=s,this.startSourceSpan=l,this.endSourceSpan=u,this.comments=f}visit(e,t){return e.visitComponent(this,t)}},ra=class{constructor(e,t,r,i,a=null){n(this,`name`,void 0),n(this,`attrs`,void 0),n(this,`sourceSpan`,void 0),n(this,`startSourceSpan`,void 0),n(this,`endSourceSpan`,void 0),n(this,`kind`,`directive`),this.name=e,this.attrs=t,this.sourceSpan=r,this.startSourceSpan=i,this.endSourceSpan=a}visit(e,t){return e.visitDirective(this,t)}},ia=class{constructor(e,t){n(this,`expression`,void 0),n(this,`sourceSpan`,void 0),n(this,`kind`,`blockParameter`),n(this,`startSourceSpan`,null),n(this,`endSourceSpan`,null),this.expression=e,this.sourceSpan=t}visit(e,t){return e.visitBlockParameter(this,t)}},aa=class{constructor(e,t,r,i,a){n(this,`name`,void 0),n(this,`value`,void 0),n(this,`sourceSpan`,void 0),n(this,`nameSpan`,void 0),n(this,`valueSpan`,void 0),n(this,`kind`,`letDeclaration`),n(this,`startSourceSpan`,null),n(this,`endSourceSpan`,null),this.name=e,this.value=t,this.sourceSpan=r,this.nameSpan=i,this.valueSpan=a}visit(e,t){return e.visitLetDeclaration(this,t)}};function oa(e,t,n=null){let r=[],i=e.visit?t=>e.visit(t,n)||t.visit(e,n):t=>t.visit(e,n);return t.forEach(e=>{let t=i(e);t&&r.push(t)}),r}var sa=class{constructor(){}visitElement(e,t){this.visitChildren(t,t=>{t(e.attrs),t(e.directives),t(e.comments),t(e.children)})}visitAttribute(e,t){}visitStartTagComment(e,t){}visitText(e,t){}visitCdata(e,t){}visitComment(e,t){}visitDocType(e,t){}visitExpansion(e,t){return this.visitChildren(t,t=>{t(e.cases)})}visitExpansionCase(e,t){}visitBlock(e,t){this.visitChildren(t,t=>{t(e.parameters),t(e.children)})}visitBlockParameter(e,t){}visitLetDeclaration(e,t){}visitComponent(e,t){this.visitChildren(t,t=>{t(e.attrs),t(e.comments),t(e.children)})}visitDirective(e,t){this.visitChildren(t,t=>{t(e.attrs)})}visitChildren(e,t){let n=[],r=this;function i(t){t&&n.push(oa(r,t,e))}return t(i),Array.prototype.concat.apply([],n)}};function ca(e){return e>=9&&e<=32||e==160}function la(e){return 48<=e&&e<=57}function ua(e){return e>=97&&e<=122||e>=65&&e<=90}function da(e){return e>=97&&e<=102||e>=65&&e<=70||la(e)}function fa(e){return e===10||e===13}function pa(e){return 48<=e&&e<=55}function ma(e){return e===39||e===34||e===96}var ha={AElig:`Æ`,AMP:`&`,amp:`&`,Aacute:`Á`,Abreve:`Ă`,Acirc:`Â`,Acy:`А`,Afr:`𝔄`,Agrave:`À`,Alpha:`Α`,Amacr:`Ā`,And:`⩓`,Aogon:`Ą`,Aopf:`𝔸`,ApplyFunction:``,af:``,Aring:`Å`,angst:`Å`,Ascr:`𝒜`,Assign:`≔`,colone:`≔`,coloneq:`≔`,Atilde:`Ã`,Auml:`Ä`,Backslash:`∖`,setminus:`∖`,setmn:`∖`,smallsetminus:`∖`,ssetmn:`∖`,Barv:`⫧`,Barwed:`⌆`,doublebarwedge:`⌆`,Bcy:`Б`,Because:`∵`,becaus:`∵`,because:`∵`,Bernoullis:`ℬ`,Bscr:`ℬ`,bernou:`ℬ`,Beta:`Β`,Bfr:`𝔅`,Bopf:`𝔹`,Breve:`˘`,breve:`˘`,Bumpeq:`≎`,HumpDownHump:`≎`,bump:`≎`,CHcy:`Ч`,COPY:`©`,copy:`©`,Cacute:`Ć`,Cap:`⋒`,CapitalDifferentialD:`ⅅ`,DD:`ⅅ`,Cayleys:`ℭ`,Cfr:`ℭ`,Ccaron:`Č`,Ccedil:`Ç`,Ccirc:`Ĉ`,Cconint:`∰`,Cdot:`Ċ`,Cedilla:`¸`,cedil:`¸`,CenterDot:`·`,centerdot:`·`,middot:`·`,Chi:`Χ`,CircleDot:`⊙`,odot:`⊙`,CircleMinus:`⊖`,ominus:`⊖`,CirclePlus:`⊕`,oplus:`⊕`,CircleTimes:`⊗`,otimes:`⊗`,ClockwiseContourIntegral:`∲`,cwconint:`∲`,CloseCurlyDoubleQuote:`”`,rdquo:`”`,rdquor:`”`,CloseCurlyQuote:`’`,rsquo:`’`,rsquor:`’`,Colon:`∷`,Proportion:`∷`,Colone:`⩴`,Congruent:`≡`,equiv:`≡`,Conint:`∯`,DoubleContourIntegral:`∯`,ContourIntegral:`∮`,conint:`∮`,oint:`∮`,Copf:`ℂ`,complexes:`ℂ`,Coproduct:`∐`,coprod:`∐`,CounterClockwiseContourIntegral:`∳`,awconint:`∳`,Cross:`⨯`,Cscr:`𝒞`,Cup:`⋓`,CupCap:`≍`,asympeq:`≍`,DDotrahd:`⤑`,DJcy:`Ђ`,DScy:`Ѕ`,DZcy:`Џ`,Dagger:`‡`,ddagger:`‡`,Darr:`↡`,Dashv:`⫤`,DoubleLeftTee:`⫤`,Dcaron:`Ď`,Dcy:`Д`,Del:`∇`,nabla:`∇`,Delta:`Δ`,Dfr:`𝔇`,DiacriticalAcute:`´`,acute:`´`,DiacriticalDot:`˙`,dot:`˙`,DiacriticalDoubleAcute:`˝`,dblac:`˝`,DiacriticalGrave:"`",grave:"`",DiacriticalTilde:`˜`,tilde:`˜`,Diamond:`⋄`,diam:`⋄`,diamond:`⋄`,DifferentialD:`ⅆ`,dd:`ⅆ`,Dopf:`𝔻`,Dot:`¨`,DoubleDot:`¨`,die:`¨`,uml:`¨`,DotDot:`⃜`,DotEqual:`≐`,doteq:`≐`,esdot:`≐`,DoubleDownArrow:`⇓`,Downarrow:`⇓`,dArr:`⇓`,DoubleLeftArrow:`⇐`,Leftarrow:`⇐`,lArr:`⇐`,DoubleLeftRightArrow:`⇔`,Leftrightarrow:`⇔`,hArr:`⇔`,iff:`⇔`,DoubleLongLeftArrow:`⟸`,Longleftarrow:`⟸`,xlArr:`⟸`,DoubleLongLeftRightArrow:`⟺`,Longleftrightarrow:`⟺`,xhArr:`⟺`,DoubleLongRightArrow:`⟹`,Longrightarrow:`⟹`,xrArr:`⟹`,DoubleRightArrow:`⇒`,Implies:`⇒`,Rightarrow:`⇒`,rArr:`⇒`,DoubleRightTee:`⊨`,vDash:`⊨`,DoubleUpArrow:`⇑`,Uparrow:`⇑`,uArr:`⇑`,DoubleUpDownArrow:`⇕`,Updownarrow:`⇕`,vArr:`⇕`,DoubleVerticalBar:`∥`,par:`∥`,parallel:`∥`,shortparallel:`∥`,spar:`∥`,DownArrow:`↓`,ShortDownArrow:`↓`,darr:`↓`,downarrow:`↓`,DownArrowBar:`⤓`,DownArrowUpArrow:`⇵`,duarr:`⇵`,DownBreve:`̑`,DownLeftRightVector:`⥐`,DownLeftTeeVector:`⥞`,DownLeftVector:`↽`,leftharpoondown:`↽`,lhard:`↽`,DownLeftVectorBar:`⥖`,DownRightTeeVector:`⥟`,DownRightVector:`⇁`,rhard:`⇁`,rightharpoondown:`⇁`,DownRightVectorBar:`⥗`,DownTee:`⊤`,top:`⊤`,DownTeeArrow:`↧`,mapstodown:`↧`,Dscr:`𝒟`,Dstrok:`Đ`,ENG:`Ŋ`,ETH:`Ð`,Eacute:`É`,Ecaron:`Ě`,Ecirc:`Ê`,Ecy:`Э`,Edot:`Ė`,Efr:`𝔈`,Egrave:`È`,Element:`∈`,in:`∈`,isin:`∈`,isinv:`∈`,Emacr:`Ē`,EmptySmallSquare:`◻`,EmptyVerySmallSquare:`▫`,Eogon:`Ę`,Eopf:`𝔼`,Epsilon:`Ε`,Equal:`⩵`,EqualTilde:`≂`,eqsim:`≂`,esim:`≂`,Equilibrium:`⇌`,rightleftharpoons:`⇌`,rlhar:`⇌`,Escr:`ℰ`,expectation:`ℰ`,Esim:`⩳`,Eta:`Η`,Euml:`Ë`,Exists:`∃`,exist:`∃`,ExponentialE:`ⅇ`,ee:`ⅇ`,exponentiale:`ⅇ`,Fcy:`Ф`,Ffr:`𝔉`,FilledSmallSquare:`◼`,FilledVerySmallSquare:`▪`,blacksquare:`▪`,squarf:`▪`,squf:`▪`,Fopf:`𝔽`,ForAll:`∀`,forall:`∀`,Fouriertrf:`ℱ`,Fscr:`ℱ`,GJcy:`Ѓ`,GT:`>`,gt:`>`,Gamma:`Γ`,Gammad:`Ϝ`,Gbreve:`Ğ`,Gcedil:`Ģ`,Gcirc:`Ĝ`,Gcy:`Г`,Gdot:`Ġ`,Gfr:`𝔊`,Gg:`⋙`,ggg:`⋙`,Gopf:`𝔾`,GreaterEqual:`≥`,ge:`≥`,geq:`≥`,GreaterEqualLess:`⋛`,gel:`⋛`,gtreqless:`⋛`,GreaterFullEqual:`≧`,gE:`≧`,geqq:`≧`,GreaterGreater:`⪢`,GreaterLess:`≷`,gl:`≷`,gtrless:`≷`,GreaterSlantEqual:`⩾`,geqslant:`⩾`,ges:`⩾`,GreaterTilde:`≳`,gsim:`≳`,gtrsim:`≳`,Gscr:`𝒢`,Gt:`≫`,NestedGreaterGreater:`≫`,gg:`≫`,HARDcy:`Ъ`,Hacek:`ˇ`,caron:`ˇ`,Hat:`^`,Hcirc:`Ĥ`,Hfr:`ℌ`,Poincareplane:`ℌ`,HilbertSpace:`ℋ`,Hscr:`ℋ`,hamilt:`ℋ`,Hopf:`ℍ`,quaternions:`ℍ`,HorizontalLine:`─`,boxh:`─`,Hstrok:`Ħ`,HumpEqual:`≏`,bumpe:`≏`,bumpeq:`≏`,IEcy:`Е`,IJlig:`IJ`,IOcy:`Ё`,Iacute:`Í`,Icirc:`Î`,Icy:`И`,Idot:`İ`,Ifr:`ℑ`,Im:`ℑ`,image:`ℑ`,imagpart:`ℑ`,Igrave:`Ì`,Imacr:`Ī`,ImaginaryI:`ⅈ`,ii:`ⅈ`,Int:`∬`,Integral:`∫`,int:`∫`,Intersection:`⋂`,bigcap:`⋂`,xcap:`⋂`,InvisibleComma:``,ic:``,InvisibleTimes:``,it:``,Iogon:`Į`,Iopf:`𝕀`,Iota:`Ι`,Iscr:`ℐ`,imagline:`ℐ`,Itilde:`Ĩ`,Iukcy:`І`,Iuml:`Ï`,Jcirc:`Ĵ`,Jcy:`Й`,Jfr:`𝔍`,Jopf:`𝕁`,Jscr:`𝒥`,Jsercy:`Ј`,Jukcy:`Є`,KHcy:`Х`,KJcy:`Ќ`,Kappa:`Κ`,Kcedil:`Ķ`,Kcy:`К`,Kfr:`𝔎`,Kopf:`𝕂`,Kscr:`𝒦`,LJcy:`Љ`,LT:`<`,lt:`<`,Lacute:`Ĺ`,Lambda:`Λ`,Lang:`⟪`,Laplacetrf:`ℒ`,Lscr:`ℒ`,lagran:`ℒ`,Larr:`↞`,twoheadleftarrow:`↞`,Lcaron:`Ľ`,Lcedil:`Ļ`,Lcy:`Л`,LeftAngleBracket:`⟨`,lang:`⟨`,langle:`⟨`,LeftArrow:`←`,ShortLeftArrow:`←`,larr:`←`,leftarrow:`←`,slarr:`←`,LeftArrowBar:`⇤`,larrb:`⇤`,LeftArrowRightArrow:`⇆`,leftrightarrows:`⇆`,lrarr:`⇆`,LeftCeiling:`⌈`,lceil:`⌈`,LeftDoubleBracket:`⟦`,lobrk:`⟦`,LeftDownTeeVector:`⥡`,LeftDownVector:`⇃`,dharl:`⇃`,downharpoonleft:`⇃`,LeftDownVectorBar:`⥙`,LeftFloor:`⌊`,lfloor:`⌊`,LeftRightArrow:`↔`,harr:`↔`,leftrightarrow:`↔`,LeftRightVector:`⥎`,LeftTee:`⊣`,dashv:`⊣`,LeftTeeArrow:`↤`,mapstoleft:`↤`,LeftTeeVector:`⥚`,LeftTriangle:`⊲`,vartriangleleft:`⊲`,vltri:`⊲`,LeftTriangleBar:`⧏`,LeftTriangleEqual:`⊴`,ltrie:`⊴`,trianglelefteq:`⊴`,LeftUpDownVector:`⥑`,LeftUpTeeVector:`⥠`,LeftUpVector:`↿`,uharl:`↿`,upharpoonleft:`↿`,LeftUpVectorBar:`⥘`,LeftVector:`↼`,leftharpoonup:`↼`,lharu:`↼`,LeftVectorBar:`⥒`,LessEqualGreater:`⋚`,leg:`⋚`,lesseqgtr:`⋚`,LessFullEqual:`≦`,lE:`≦`,leqq:`≦`,LessGreater:`≶`,lessgtr:`≶`,lg:`≶`,LessLess:`⪡`,LessSlantEqual:`⩽`,leqslant:`⩽`,les:`⩽`,LessTilde:`≲`,lesssim:`≲`,lsim:`≲`,Lfr:`𝔏`,Ll:`⋘`,Lleftarrow:`⇚`,lAarr:`⇚`,Lmidot:`Ŀ`,LongLeftArrow:`⟵`,longleftarrow:`⟵`,xlarr:`⟵`,LongLeftRightArrow:`⟷`,longleftrightarrow:`⟷`,xharr:`⟷`,LongRightArrow:`⟶`,longrightarrow:`⟶`,xrarr:`⟶`,Lopf:`𝕃`,LowerLeftArrow:`↙`,swarr:`↙`,swarrow:`↙`,LowerRightArrow:`↘`,searr:`↘`,searrow:`↘`,Lsh:`↰`,lsh:`↰`,Lstrok:`Ł`,Lt:`≪`,NestedLessLess:`≪`,ll:`≪`,Map:`⤅`,Mcy:`М`,MediumSpace:` `,Mellintrf:`ℳ`,Mscr:`ℳ`,phmmat:`ℳ`,Mfr:`𝔐`,MinusPlus:`∓`,mnplus:`∓`,mp:`∓`,Mopf:`𝕄`,Mu:`Μ`,NJcy:`Њ`,Nacute:`Ń`,Ncaron:`Ň`,Ncedil:`Ņ`,Ncy:`Н`,NegativeMediumSpace:``,NegativeThickSpace:``,NegativeThinSpace:``,NegativeVeryThinSpace:``,ZeroWidthSpace:``,NewLine:`
|
|
21
|
-
`,Nfr:`𝔑`,NoBreak:``,NonBreakingSpace:`\xA0`,nbsp:`\xA0`,Nopf:`ℕ`,naturals:`ℕ`,Not:`⫬`,NotCongruent:`≢`,nequiv:`≢`,NotCupCap:`≭`,NotDoubleVerticalBar:`∦`,npar:`∦`,nparallel:`∦`,nshortparallel:`∦`,nspar:`∦`,NotElement:`∉`,notin:`∉`,notinva:`∉`,NotEqual:`≠`,ne:`≠`,NotEqualTilde:`≂̸`,nesim:`≂̸`,NotExists:`∄`,nexist:`∄`,nexists:`∄`,NotGreater:`≯`,ngt:`≯`,ngtr:`≯`,NotGreaterEqual:`≱`,nge:`≱`,ngeq:`≱`,NotGreaterFullEqual:`≧̸`,ngE:`≧̸`,ngeqq:`≧̸`,NotGreaterGreater:`≫̸`,nGtv:`≫̸`,NotGreaterLess:`≹`,ntgl:`≹`,NotGreaterSlantEqual:`⩾̸`,ngeqslant:`⩾̸`,nges:`⩾̸`,NotGreaterTilde:`≵`,ngsim:`≵`,NotHumpDownHump:`≎̸`,nbump:`≎̸`,NotHumpEqual:`≏̸`,nbumpe:`≏̸`,NotLeftTriangle:`⋪`,nltri:`⋪`,ntriangleleft:`⋪`,NotLeftTriangleBar:`⧏̸`,NotLeftTriangleEqual:`⋬`,nltrie:`⋬`,ntrianglelefteq:`⋬`,NotLess:`≮`,nless:`≮`,nlt:`≮`,NotLessEqual:`≰`,nle:`≰`,nleq:`≰`,NotLessGreater:`≸`,ntlg:`≸`,NotLessLess:`≪̸`,nLtv:`≪̸`,NotLessSlantEqual:`⩽̸`,nleqslant:`⩽̸`,nles:`⩽̸`,NotLessTilde:`≴`,nlsim:`≴`,NotNestedGreaterGreater:`⪢̸`,NotNestedLessLess:`⪡̸`,NotPrecedes:`⊀`,npr:`⊀`,nprec:`⊀`,NotPrecedesEqual:`⪯̸`,npre:`⪯̸`,npreceq:`⪯̸`,NotPrecedesSlantEqual:`⋠`,nprcue:`⋠`,NotReverseElement:`∌`,notni:`∌`,notniva:`∌`,NotRightTriangle:`⋫`,nrtri:`⋫`,ntriangleright:`⋫`,NotRightTriangleBar:`⧐̸`,NotRightTriangleEqual:`⋭`,nrtrie:`⋭`,ntrianglerighteq:`⋭`,NotSquareSubset:`⊏̸`,NotSquareSubsetEqual:`⋢`,nsqsube:`⋢`,NotSquareSuperset:`⊐̸`,NotSquareSupersetEqual:`⋣`,nsqsupe:`⋣`,NotSubset:`⊂⃒`,nsubset:`⊂⃒`,vnsub:`⊂⃒`,NotSubsetEqual:`⊈`,nsube:`⊈`,nsubseteq:`⊈`,NotSucceeds:`⊁`,nsc:`⊁`,nsucc:`⊁`,NotSucceedsEqual:`⪰̸`,nsce:`⪰̸`,nsucceq:`⪰̸`,NotSucceedsSlantEqual:`⋡`,nsccue:`⋡`,NotSucceedsTilde:`≿̸`,NotSuperset:`⊃⃒`,nsupset:`⊃⃒`,vnsup:`⊃⃒`,NotSupersetEqual:`⊉`,nsupe:`⊉`,nsupseteq:`⊉`,NotTilde:`≁`,nsim:`≁`,NotTildeEqual:`≄`,nsime:`≄`,nsimeq:`≄`,NotTildeFullEqual:`≇`,ncong:`≇`,NotTildeTilde:`≉`,nap:`≉`,napprox:`≉`,NotVerticalBar:`∤`,nmid:`∤`,nshortmid:`∤`,nsmid:`∤`,Nscr:`𝒩`,Ntilde:`Ñ`,Nu:`Ν`,OElig:`Œ`,Oacute:`Ó`,Ocirc:`Ô`,Ocy:`О`,Odblac:`Ő`,Ofr:`𝔒`,Ograve:`Ò`,Omacr:`Ō`,Omega:`Ω`,ohm:`Ω`,Omicron:`Ο`,Oopf:`𝕆`,OpenCurlyDoubleQuote:`“`,ldquo:`“`,OpenCurlyQuote:`‘`,lsquo:`‘`,Or:`⩔`,Oscr:`𝒪`,Oslash:`Ø`,Otilde:`Õ`,Otimes:`⨷`,Ouml:`Ö`,OverBar:`‾`,oline:`‾`,OverBrace:`⏞`,OverBracket:`⎴`,tbrk:`⎴`,OverParenthesis:`⏜`,PartialD:`∂`,part:`∂`,Pcy:`П`,Pfr:`𝔓`,Phi:`Φ`,Pi:`Π`,PlusMinus:`±`,plusmn:`±`,pm:`±`,Popf:`ℙ`,primes:`ℙ`,Pr:`⪻`,Precedes:`≺`,pr:`≺`,prec:`≺`,PrecedesEqual:`⪯`,pre:`⪯`,preceq:`⪯`,PrecedesSlantEqual:`≼`,prcue:`≼`,preccurlyeq:`≼`,PrecedesTilde:`≾`,precsim:`≾`,prsim:`≾`,Prime:`″`,Product:`∏`,prod:`∏`,Proportional:`∝`,prop:`∝`,propto:`∝`,varpropto:`∝`,vprop:`∝`,Pscr:`𝒫`,Psi:`Ψ`,QUOT:`"`,quot:`"`,Qfr:`𝔔`,Qopf:`ℚ`,rationals:`ℚ`,Qscr:`𝒬`,RBarr:`⤐`,drbkarow:`⤐`,REG:`®`,circledR:`®`,reg:`®`,Racute:`Ŕ`,Rang:`⟫`,Rarr:`↠`,twoheadrightarrow:`↠`,Rarrtl:`⤖`,Rcaron:`Ř`,Rcedil:`Ŗ`,Rcy:`Р`,Re:`ℜ`,Rfr:`ℜ`,real:`ℜ`,realpart:`ℜ`,ReverseElement:`∋`,SuchThat:`∋`,ni:`∋`,niv:`∋`,ReverseEquilibrium:`⇋`,leftrightharpoons:`⇋`,lrhar:`⇋`,ReverseUpEquilibrium:`⥯`,duhar:`⥯`,Rho:`Ρ`,RightAngleBracket:`⟩`,rang:`⟩`,rangle:`⟩`,RightArrow:`→`,ShortRightArrow:`→`,rarr:`→`,rightarrow:`→`,srarr:`→`,RightArrowBar:`⇥`,rarrb:`⇥`,RightArrowLeftArrow:`⇄`,rightleftarrows:`⇄`,rlarr:`⇄`,RightCeiling:`⌉`,rceil:`⌉`,RightDoubleBracket:`⟧`,robrk:`⟧`,RightDownTeeVector:`⥝`,RightDownVector:`⇂`,dharr:`⇂`,downharpoonright:`⇂`,RightDownVectorBar:`⥕`,RightFloor:`⌋`,rfloor:`⌋`,RightTee:`⊢`,vdash:`⊢`,RightTeeArrow:`↦`,map:`↦`,mapsto:`↦`,RightTeeVector:`⥛`,RightTriangle:`⊳`,vartriangleright:`⊳`,vrtri:`⊳`,RightTriangleBar:`⧐`,RightTriangleEqual:`⊵`,rtrie:`⊵`,trianglerighteq:`⊵`,RightUpDownVector:`⥏`,RightUpTeeVector:`⥜`,RightUpVector:`↾`,uharr:`↾`,upharpoonright:`↾`,RightUpVectorBar:`⥔`,RightVector:`⇀`,rharu:`⇀`,rightharpoonup:`⇀`,RightVectorBar:`⥓`,Ropf:`ℝ`,reals:`ℝ`,RoundImplies:`⥰`,Rrightarrow:`⇛`,rAarr:`⇛`,Rscr:`ℛ`,realine:`ℛ`,Rsh:`↱`,rsh:`↱`,RuleDelayed:`⧴`,SHCHcy:`Щ`,SHcy:`Ш`,SOFTcy:`Ь`,Sacute:`Ś`,Sc:`⪼`,Scaron:`Š`,Scedil:`Ş`,Scirc:`Ŝ`,Scy:`С`,Sfr:`𝔖`,ShortUpArrow:`↑`,UpArrow:`↑`,uarr:`↑`,uparrow:`↑`,Sigma:`Σ`,SmallCircle:`∘`,compfn:`∘`,Sopf:`𝕊`,Sqrt:`√`,radic:`√`,Square:`□`,squ:`□`,square:`□`,SquareIntersection:`⊓`,sqcap:`⊓`,SquareSubset:`⊏`,sqsub:`⊏`,sqsubset:`⊏`,SquareSubsetEqual:`⊑`,sqsube:`⊑`,sqsubseteq:`⊑`,SquareSuperset:`⊐`,sqsup:`⊐`,sqsupset:`⊐`,SquareSupersetEqual:`⊒`,sqsupe:`⊒`,sqsupseteq:`⊒`,SquareUnion:`⊔`,sqcup:`⊔`,Sscr:`𝒮`,Star:`⋆`,sstarf:`⋆`,Sub:`⋐`,Subset:`⋐`,SubsetEqual:`⊆`,sube:`⊆`,subseteq:`⊆`,Succeeds:`≻`,sc:`≻`,succ:`≻`,SucceedsEqual:`⪰`,sce:`⪰`,succeq:`⪰`,SucceedsSlantEqual:`≽`,sccue:`≽`,succcurlyeq:`≽`,SucceedsTilde:`≿`,scsim:`≿`,succsim:`≿`,Sum:`∑`,sum:`∑`,Sup:`⋑`,Supset:`⋑`,Superset:`⊃`,sup:`⊃`,supset:`⊃`,SupersetEqual:`⊇`,supe:`⊇`,supseteq:`⊇`,THORN:`Þ`,TRADE:`™`,trade:`™`,TSHcy:`Ћ`,TScy:`Ц`,Tab:` `,Tau:`Τ`,Tcaron:`Ť`,Tcedil:`Ţ`,Tcy:`Т`,Tfr:`𝔗`,Therefore:`∴`,there4:`∴`,therefore:`∴`,Theta:`Θ`,ThickSpace:` `,ThinSpace:` `,thinsp:` `,Tilde:`∼`,sim:`∼`,thicksim:`∼`,thksim:`∼`,TildeEqual:`≃`,sime:`≃`,simeq:`≃`,TildeFullEqual:`≅`,cong:`≅`,TildeTilde:`≈`,ap:`≈`,approx:`≈`,asymp:`≈`,thickapprox:`≈`,thkap:`≈`,Topf:`𝕋`,TripleDot:`⃛`,tdot:`⃛`,Tscr:`𝒯`,Tstrok:`Ŧ`,Uacute:`Ú`,Uarr:`↟`,Uarrocir:`⥉`,Ubrcy:`Ў`,Ubreve:`Ŭ`,Ucirc:`Û`,Ucy:`У`,Udblac:`Ű`,Ufr:`𝔘`,Ugrave:`Ù`,Umacr:`Ū`,UnderBar:`_`,lowbar:`_`,UnderBrace:`⏟`,UnderBracket:`⎵`,bbrk:`⎵`,UnderParenthesis:`⏝`,Union:`⋃`,bigcup:`⋃`,xcup:`⋃`,UnionPlus:`⊎`,uplus:`⊎`,Uogon:`Ų`,Uopf:`𝕌`,UpArrowBar:`⤒`,UpArrowDownArrow:`⇅`,udarr:`⇅`,UpDownArrow:`↕`,updownarrow:`↕`,varr:`↕`,UpEquilibrium:`⥮`,udhar:`⥮`,UpTee:`⊥`,bot:`⊥`,bottom:`⊥`,perp:`⊥`,UpTeeArrow:`↥`,mapstoup:`↥`,UpperLeftArrow:`↖`,nwarr:`↖`,nwarrow:`↖`,UpperRightArrow:`↗`,nearr:`↗`,nearrow:`↗`,Upsi:`ϒ`,upsih:`ϒ`,Upsilon:`Υ`,Uring:`Ů`,Uscr:`𝒰`,Utilde:`Ũ`,Uuml:`Ü`,VDash:`⊫`,Vbar:`⫫`,Vcy:`В`,Vdash:`⊩`,Vdashl:`⫦`,Vee:`⋁`,bigvee:`⋁`,xvee:`⋁`,Verbar:`‖`,Vert:`‖`,VerticalBar:`∣`,mid:`∣`,shortmid:`∣`,smid:`∣`,VerticalLine:`|`,verbar:`|`,vert:`|`,VerticalSeparator:`❘`,VerticalTilde:`≀`,wr:`≀`,wreath:`≀`,VeryThinSpace:` `,hairsp:` `,Vfr:`𝔙`,Vopf:`𝕍`,Vscr:`𝒱`,Vvdash:`⊪`,Wcirc:`Ŵ`,Wedge:`⋀`,bigwedge:`⋀`,xwedge:`⋀`,Wfr:`𝔚`,Wopf:`𝕎`,Wscr:`𝒲`,Xfr:`𝔛`,Xi:`Ξ`,Xopf:`𝕏`,Xscr:`𝒳`,YAcy:`Я`,YIcy:`Ї`,YUcy:`Ю`,Yacute:`Ý`,Ycirc:`Ŷ`,Ycy:`Ы`,Yfr:`𝔜`,Yopf:`𝕐`,Yscr:`𝒴`,Yuml:`Ÿ`,ZHcy:`Ж`,Zacute:`Ź`,Zcaron:`Ž`,Zcy:`З`,Zdot:`Ż`,Zeta:`Ζ`,Zfr:`ℨ`,zeetrf:`ℨ`,Zopf:`ℤ`,integers:`ℤ`,Zscr:`𝒵`,aacute:`á`,abreve:`ă`,ac:`∾`,mstpos:`∾`,acE:`∾̳`,acd:`∿`,acirc:`â`,acy:`а`,aelig:`æ`,afr:`𝔞`,agrave:`à`,alefsym:`ℵ`,aleph:`ℵ`,alpha:`α`,amacr:`ā`,amalg:`⨿`,and:`∧`,wedge:`∧`,andand:`⩕`,andd:`⩜`,andslope:`⩘`,andv:`⩚`,ang:`∠`,angle:`∠`,ange:`⦤`,angmsd:`∡`,measuredangle:`∡`,angmsdaa:`⦨`,angmsdab:`⦩`,angmsdac:`⦪`,angmsdad:`⦫`,angmsdae:`⦬`,angmsdaf:`⦭`,angmsdag:`⦮`,angmsdah:`⦯`,angrt:`∟`,angrtvb:`⊾`,angrtvbd:`⦝`,angsph:`∢`,angzarr:`⍼`,aogon:`ą`,aopf:`𝕒`,apE:`⩰`,apacir:`⩯`,ape:`≊`,approxeq:`≊`,apid:`≋`,apos:`'`,aring:`å`,ascr:`𝒶`,ast:`*`,midast:`*`,atilde:`ã`,auml:`ä`,awint:`⨑`,bNot:`⫭`,backcong:`≌`,bcong:`≌`,backepsilon:`϶`,bepsi:`϶`,backprime:`‵`,bprime:`‵`,backsim:`∽`,bsim:`∽`,backsimeq:`⋍`,bsime:`⋍`,barvee:`⊽`,barwed:`⌅`,barwedge:`⌅`,bbrktbrk:`⎶`,bcy:`б`,bdquo:`„`,ldquor:`„`,bemptyv:`⦰`,beta:`β`,beth:`ℶ`,between:`≬`,twixt:`≬`,bfr:`𝔟`,bigcirc:`◯`,xcirc:`◯`,bigodot:`⨀`,xodot:`⨀`,bigoplus:`⨁`,xoplus:`⨁`,bigotimes:`⨂`,xotime:`⨂`,bigsqcup:`⨆`,xsqcup:`⨆`,bigstar:`★`,starf:`★`,bigtriangledown:`▽`,xdtri:`▽`,bigtriangleup:`△`,xutri:`△`,biguplus:`⨄`,xuplus:`⨄`,bkarow:`⤍`,rbarr:`⤍`,blacklozenge:`⧫`,lozf:`⧫`,blacktriangle:`▴`,utrif:`▴`,blacktriangledown:`▾`,dtrif:`▾`,blacktriangleleft:`◂`,ltrif:`◂`,blacktriangleright:`▸`,rtrif:`▸`,blank:`␣`,blk12:`▒`,blk14:`░`,blk34:`▓`,block:`█`,bne:`=⃥`,bnequiv:`≡⃥`,bnot:`⌐`,bopf:`𝕓`,bowtie:`⋈`,boxDL:`╗`,boxDR:`╔`,boxDl:`╖`,boxDr:`╓`,boxH:`═`,boxHD:`╦`,boxHU:`╩`,boxHd:`╤`,boxHu:`╧`,boxUL:`╝`,boxUR:`╚`,boxUl:`╜`,boxUr:`╙`,boxV:`║`,boxVH:`╬`,boxVL:`╣`,boxVR:`╠`,boxVh:`╫`,boxVl:`╢`,boxVr:`╟`,boxbox:`⧉`,boxdL:`╕`,boxdR:`╒`,boxdl:`┐`,boxdr:`┌`,boxhD:`╥`,boxhU:`╨`,boxhd:`┬`,boxhu:`┴`,boxminus:`⊟`,minusb:`⊟`,boxplus:`⊞`,plusb:`⊞`,boxtimes:`⊠`,timesb:`⊠`,boxuL:`╛`,boxuR:`╘`,boxul:`┘`,boxur:`└`,boxv:`│`,boxvH:`╪`,boxvL:`╡`,boxvR:`╞`,boxvh:`┼`,boxvl:`┤`,boxvr:`├`,brvbar:`¦`,bscr:`𝒷`,bsemi:`⁏`,bsol:`\\`,bsolb:`⧅`,bsolhsub:`⟈`,bull:`•`,bullet:`•`,bumpE:`⪮`,cacute:`ć`,cap:`∩`,capand:`⩄`,capbrcup:`⩉`,capcap:`⩋`,capcup:`⩇`,capdot:`⩀`,caps:`∩︀`,caret:`⁁`,ccaps:`⩍`,ccaron:`č`,ccedil:`ç`,ccirc:`ĉ`,ccups:`⩌`,ccupssm:`⩐`,cdot:`ċ`,cemptyv:`⦲`,cent:`¢`,cfr:`𝔠`,chcy:`ч`,check:`✓`,checkmark:`✓`,chi:`χ`,cir:`○`,cirE:`⧃`,circ:`ˆ`,circeq:`≗`,cire:`≗`,circlearrowleft:`↺`,olarr:`↺`,circlearrowright:`↻`,orarr:`↻`,circledS:`Ⓢ`,oS:`Ⓢ`,circledast:`⊛`,oast:`⊛`,circledcirc:`⊚`,ocir:`⊚`,circleddash:`⊝`,odash:`⊝`,cirfnint:`⨐`,cirmid:`⫯`,cirscir:`⧂`,clubs:`♣`,clubsuit:`♣`,colon:`:`,comma:`,`,commat:`@`,comp:`∁`,complement:`∁`,congdot:`⩭`,copf:`𝕔`,copysr:`℗`,crarr:`↵`,cross:`✗`,cscr:`𝒸`,csub:`⫏`,csube:`⫑`,csup:`⫐`,csupe:`⫒`,ctdot:`⋯`,cudarrl:`⤸`,cudarrr:`⤵`,cuepr:`⋞`,curlyeqprec:`⋞`,cuesc:`⋟`,curlyeqsucc:`⋟`,cularr:`↶`,curvearrowleft:`↶`,cularrp:`⤽`,cup:`∪`,cupbrcap:`⩈`,cupcap:`⩆`,cupcup:`⩊`,cupdot:`⊍`,cupor:`⩅`,cups:`∪︀`,curarr:`↷`,curvearrowright:`↷`,curarrm:`⤼`,curlyvee:`⋎`,cuvee:`⋎`,curlywedge:`⋏`,cuwed:`⋏`,curren:`¤`,cwint:`∱`,cylcty:`⌭`,dHar:`⥥`,dagger:`†`,daleth:`ℸ`,dash:`‐`,hyphen:`‐`,dbkarow:`⤏`,rBarr:`⤏`,dcaron:`ď`,dcy:`д`,ddarr:`⇊`,downdownarrows:`⇊`,ddotseq:`⩷`,eDDot:`⩷`,deg:`°`,delta:`δ`,demptyv:`⦱`,dfisht:`⥿`,dfr:`𝔡`,diamondsuit:`♦`,diams:`♦`,digamma:`ϝ`,gammad:`ϝ`,disin:`⋲`,div:`÷`,divide:`÷`,divideontimes:`⋇`,divonx:`⋇`,djcy:`ђ`,dlcorn:`⌞`,llcorner:`⌞`,dlcrop:`⌍`,dollar:`$`,dopf:`𝕕`,doteqdot:`≑`,eDot:`≑`,dotminus:`∸`,minusd:`∸`,dotplus:`∔`,plusdo:`∔`,dotsquare:`⊡`,sdotb:`⊡`,drcorn:`⌟`,lrcorner:`⌟`,drcrop:`⌌`,dscr:`𝒹`,dscy:`ѕ`,dsol:`⧶`,dstrok:`đ`,dtdot:`⋱`,dtri:`▿`,triangledown:`▿`,dwangle:`⦦`,dzcy:`џ`,dzigrarr:`⟿`,eacute:`é`,easter:`⩮`,ecaron:`ě`,ecir:`≖`,eqcirc:`≖`,ecirc:`ê`,ecolon:`≕`,eqcolon:`≕`,ecy:`э`,edot:`ė`,efDot:`≒`,fallingdotseq:`≒`,efr:`𝔢`,eg:`⪚`,egrave:`è`,egs:`⪖`,eqslantgtr:`⪖`,egsdot:`⪘`,el:`⪙`,elinters:`⏧`,ell:`ℓ`,els:`⪕`,eqslantless:`⪕`,elsdot:`⪗`,emacr:`ē`,empty:`∅`,emptyset:`∅`,emptyv:`∅`,varnothing:`∅`,emsp13:` `,emsp14:` `,emsp:` `,eng:`ŋ`,ensp:` `,eogon:`ę`,eopf:`𝕖`,epar:`⋕`,eparsl:`⧣`,eplus:`⩱`,epsi:`ε`,epsilon:`ε`,epsiv:`ϵ`,straightepsilon:`ϵ`,varepsilon:`ϵ`,equals:`=`,equest:`≟`,questeq:`≟`,equivDD:`⩸`,eqvparsl:`⧥`,erDot:`≓`,risingdotseq:`≓`,erarr:`⥱`,escr:`ℯ`,eta:`η`,eth:`ð`,euml:`ë`,euro:`€`,excl:`!`,fcy:`ф`,female:`♀`,ffilig:`ffi`,fflig:`ff`,ffllig:`ffl`,ffr:`𝔣`,filig:`fi`,fjlig:`fj`,flat:`♭`,fllig:`fl`,fltns:`▱`,fnof:`ƒ`,fopf:`𝕗`,fork:`⋔`,pitchfork:`⋔`,forkv:`⫙`,fpartint:`⨍`,frac12:`½`,half:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`,frown:`⌢`,sfrown:`⌢`,fscr:`𝒻`,gEl:`⪌`,gtreqqless:`⪌`,gacute:`ǵ`,gamma:`γ`,gap:`⪆`,gtrapprox:`⪆`,gbreve:`ğ`,gcirc:`ĝ`,gcy:`г`,gdot:`ġ`,gescc:`⪩`,gesdot:`⪀`,gesdoto:`⪂`,gesdotol:`⪄`,gesl:`⋛︀`,gesles:`⪔`,gfr:`𝔤`,gimel:`ℷ`,gjcy:`ѓ`,glE:`⪒`,gla:`⪥`,glj:`⪤`,gnE:`≩`,gneqq:`≩`,gnap:`⪊`,gnapprox:`⪊`,gne:`⪈`,gneq:`⪈`,gnsim:`⋧`,gopf:`𝕘`,gscr:`ℊ`,gsime:`⪎`,gsiml:`⪐`,gtcc:`⪧`,gtcir:`⩺`,gtdot:`⋗`,gtrdot:`⋗`,gtlPar:`⦕`,gtquest:`⩼`,gtrarr:`⥸`,gvertneqq:`≩︀`,gvnE:`≩︀`,hardcy:`ъ`,harrcir:`⥈`,harrw:`↭`,leftrightsquigarrow:`↭`,hbar:`ℏ`,hslash:`ℏ`,planck:`ℏ`,plankv:`ℏ`,hcirc:`ĥ`,hearts:`♥`,heartsuit:`♥`,hellip:`…`,mldr:`…`,hercon:`⊹`,hfr:`𝔥`,hksearow:`⤥`,searhk:`⤥`,hkswarow:`⤦`,swarhk:`⤦`,hoarr:`⇿`,homtht:`∻`,hookleftarrow:`↩`,larrhk:`↩`,hookrightarrow:`↪`,rarrhk:`↪`,hopf:`𝕙`,horbar:`―`,hscr:`𝒽`,hstrok:`ħ`,hybull:`⁃`,iacute:`í`,icirc:`î`,icy:`и`,iecy:`е`,iexcl:`¡`,ifr:`𝔦`,igrave:`ì`,iiiint:`⨌`,qint:`⨌`,iiint:`∭`,tint:`∭`,iinfin:`⧜`,iiota:`℩`,ijlig:`ij`,imacr:`ī`,imath:`ı`,inodot:`ı`,imof:`⊷`,imped:`Ƶ`,incare:`℅`,infin:`∞`,infintie:`⧝`,intcal:`⊺`,intercal:`⊺`,intlarhk:`⨗`,intprod:`⨼`,iprod:`⨼`,iocy:`ё`,iogon:`į`,iopf:`𝕚`,iota:`ι`,iquest:`¿`,iscr:`𝒾`,isinE:`⋹`,isindot:`⋵`,isins:`⋴`,isinsv:`⋳`,itilde:`ĩ`,iukcy:`і`,iuml:`ï`,jcirc:`ĵ`,jcy:`й`,jfr:`𝔧`,jmath:`ȷ`,jopf:`𝕛`,jscr:`𝒿`,jsercy:`ј`,jukcy:`є`,kappa:`κ`,kappav:`ϰ`,varkappa:`ϰ`,kcedil:`ķ`,kcy:`к`,kfr:`𝔨`,kgreen:`ĸ`,khcy:`х`,kjcy:`ќ`,kopf:`𝕜`,kscr:`𝓀`,lAtail:`⤛`,lBarr:`⤎`,lEg:`⪋`,lesseqqgtr:`⪋`,lHar:`⥢`,lacute:`ĺ`,laemptyv:`⦴`,lambda:`λ`,langd:`⦑`,lap:`⪅`,lessapprox:`⪅`,laquo:`«`,larrbfs:`⤟`,larrfs:`⤝`,larrlp:`↫`,looparrowleft:`↫`,larrpl:`⤹`,larrsim:`⥳`,larrtl:`↢`,leftarrowtail:`↢`,lat:`⪫`,latail:`⤙`,late:`⪭`,lates:`⪭︀`,lbarr:`⤌`,lbbrk:`❲`,lbrace:`{`,lcub:`{`,lbrack:`[`,lsqb:`[`,lbrke:`⦋`,lbrksld:`⦏`,lbrkslu:`⦍`,lcaron:`ľ`,lcedil:`ļ`,lcy:`л`,ldca:`⤶`,ldrdhar:`⥧`,ldrushar:`⥋`,ldsh:`↲`,le:`≤`,leq:`≤`,leftleftarrows:`⇇`,llarr:`⇇`,leftthreetimes:`⋋`,lthree:`⋋`,lescc:`⪨`,lesdot:`⩿`,lesdoto:`⪁`,lesdotor:`⪃`,lesg:`⋚︀`,lesges:`⪓`,lessdot:`⋖`,ltdot:`⋖`,lfisht:`⥼`,lfr:`𝔩`,lgE:`⪑`,lharul:`⥪`,lhblk:`▄`,ljcy:`љ`,llhard:`⥫`,lltri:`◺`,lmidot:`ŀ`,lmoust:`⎰`,lmoustache:`⎰`,lnE:`≨`,lneqq:`≨`,lnap:`⪉`,lnapprox:`⪉`,lne:`⪇`,lneq:`⪇`,lnsim:`⋦`,loang:`⟬`,loarr:`⇽`,longmapsto:`⟼`,xmap:`⟼`,looparrowright:`↬`,rarrlp:`↬`,lopar:`⦅`,lopf:`𝕝`,loplus:`⨭`,lotimes:`⨴`,lowast:`∗`,loz:`◊`,lozenge:`◊`,lpar:`(`,lparlt:`⦓`,lrhard:`⥭`,lrm:``,lrtri:`⊿`,lsaquo:`‹`,lscr:`𝓁`,lsime:`⪍`,lsimg:`⪏`,lsquor:`‚`,sbquo:`‚`,lstrok:`ł`,ltcc:`⪦`,ltcir:`⩹`,ltimes:`⋉`,ltlarr:`⥶`,ltquest:`⩻`,ltrPar:`⦖`,ltri:`◃`,triangleleft:`◃`,lurdshar:`⥊`,luruhar:`⥦`,lvertneqq:`≨︀`,lvnE:`≨︀`,mDDot:`∺`,macr:`¯`,strns:`¯`,male:`♂`,malt:`✠`,maltese:`✠`,marker:`▮`,mcomma:`⨩`,mcy:`м`,mdash:`—`,mfr:`𝔪`,mho:`℧`,micro:`µ`,midcir:`⫰`,minus:`−`,minusdu:`⨪`,mlcp:`⫛`,models:`⊧`,mopf:`𝕞`,mscr:`𝓂`,mu:`μ`,multimap:`⊸`,mumap:`⊸`,nGg:`⋙̸`,nGt:`≫⃒`,nLeftarrow:`⇍`,nlArr:`⇍`,nLeftrightarrow:`⇎`,nhArr:`⇎`,nLl:`⋘̸`,nLt:`≪⃒`,nRightarrow:`⇏`,nrArr:`⇏`,nVDash:`⊯`,nVdash:`⊮`,nacute:`ń`,nang:`∠⃒`,napE:`⩰̸`,napid:`≋̸`,napos:`ʼn`,natur:`♮`,natural:`♮`,ncap:`⩃`,ncaron:`ň`,ncedil:`ņ`,ncongdot:`⩭̸`,ncup:`⩂`,ncy:`н`,ndash:`–`,neArr:`⇗`,nearhk:`⤤`,nedot:`≐̸`,nesear:`⤨`,toea:`⤨`,nfr:`𝔫`,nharr:`↮`,nleftrightarrow:`↮`,nhpar:`⫲`,nis:`⋼`,nisd:`⋺`,njcy:`њ`,nlE:`≦̸`,nleqq:`≦̸`,nlarr:`↚`,nleftarrow:`↚`,nldr:`‥`,nopf:`𝕟`,not:`¬`,notinE:`⋹̸`,notindot:`⋵̸`,notinvb:`⋷`,notinvc:`⋶`,notnivb:`⋾`,notnivc:`⋽`,nparsl:`⫽⃥`,npart:`∂̸`,npolint:`⨔`,nrarr:`↛`,nrightarrow:`↛`,nrarrc:`⤳̸`,nrarrw:`↝̸`,nscr:`𝓃`,nsub:`⊄`,nsubE:`⫅̸`,nsubseteqq:`⫅̸`,nsup:`⊅`,nsupE:`⫆̸`,nsupseteqq:`⫆̸`,ntilde:`ñ`,nu:`ν`,num:`#`,numero:`№`,numsp:` `,nvDash:`⊭`,nvHarr:`⤄`,nvap:`≍⃒`,nvdash:`⊬`,nvge:`≥⃒`,nvgt:`>⃒`,nvinfin:`⧞`,nvlArr:`⤂`,nvle:`≤⃒`,nvlt:`<⃒`,nvltrie:`⊴⃒`,nvrArr:`⤃`,nvrtrie:`⊵⃒`,nvsim:`∼⃒`,nwArr:`⇖`,nwarhk:`⤣`,nwnear:`⤧`,oacute:`ó`,ocirc:`ô`,ocy:`о`,odblac:`ő`,odiv:`⨸`,odsold:`⦼`,oelig:`œ`,ofcir:`⦿`,ofr:`𝔬`,ogon:`˛`,ograve:`ò`,ogt:`⧁`,ohbar:`⦵`,olcir:`⦾`,olcross:`⦻`,olt:`⧀`,omacr:`ō`,omega:`ω`,omicron:`ο`,omid:`⦶`,oopf:`𝕠`,opar:`⦷`,operp:`⦹`,or:`∨`,vee:`∨`,ord:`⩝`,order:`ℴ`,orderof:`ℴ`,oscr:`ℴ`,ordf:`ª`,ordm:`º`,origof:`⊶`,oror:`⩖`,orslope:`⩗`,orv:`⩛`,oslash:`ø`,osol:`⊘`,otilde:`õ`,otimesas:`⨶`,ouml:`ö`,ovbar:`⌽`,para:`¶`,parsim:`⫳`,parsl:`⫽`,pcy:`п`,percnt:`%`,period:`.`,permil:`‰`,pertenk:`‱`,pfr:`𝔭`,phi:`φ`,phiv:`ϕ`,straightphi:`ϕ`,varphi:`ϕ`,phone:`☎`,pi:`π`,piv:`ϖ`,varpi:`ϖ`,planckh:`ℎ`,plus:`+`,plusacir:`⨣`,pluscir:`⨢`,plusdu:`⨥`,pluse:`⩲`,plussim:`⨦`,plustwo:`⨧`,pointint:`⨕`,popf:`𝕡`,pound:`£`,prE:`⪳`,prap:`⪷`,precapprox:`⪷`,precnapprox:`⪹`,prnap:`⪹`,precneqq:`⪵`,prnE:`⪵`,precnsim:`⋨`,prnsim:`⋨`,prime:`′`,profalar:`⌮`,profline:`⌒`,profsurf:`⌓`,prurel:`⊰`,pscr:`𝓅`,psi:`ψ`,puncsp:` `,qfr:`𝔮`,qopf:`𝕢`,qprime:`⁗`,qscr:`𝓆`,quatint:`⨖`,quest:`?`,rAtail:`⤜`,rHar:`⥤`,race:`∽̱`,racute:`ŕ`,raemptyv:`⦳`,rangd:`⦒`,range:`⦥`,raquo:`»`,rarrap:`⥵`,rarrbfs:`⤠`,rarrc:`⤳`,rarrfs:`⤞`,rarrpl:`⥅`,rarrsim:`⥴`,rarrtl:`↣`,rightarrowtail:`↣`,rarrw:`↝`,rightsquigarrow:`↝`,ratail:`⤚`,ratio:`∶`,rbbrk:`❳`,rbrace:`}`,rcub:`}`,rbrack:`]`,rsqb:`]`,rbrke:`⦌`,rbrksld:`⦎`,rbrkslu:`⦐`,rcaron:`ř`,rcedil:`ŗ`,rcy:`р`,rdca:`⤷`,rdldhar:`⥩`,rdsh:`↳`,rect:`▭`,rfisht:`⥽`,rfr:`𝔯`,rharul:`⥬`,rho:`ρ`,rhov:`ϱ`,varrho:`ϱ`,rightrightarrows:`⇉`,rrarr:`⇉`,rightthreetimes:`⋌`,rthree:`⋌`,ring:`˚`,rlm:``,rmoust:`⎱`,rmoustache:`⎱`,rnmid:`⫮`,roang:`⟭`,roarr:`⇾`,ropar:`⦆`,ropf:`𝕣`,roplus:`⨮`,rotimes:`⨵`,rpar:`)`,rpargt:`⦔`,rppolint:`⨒`,rsaquo:`›`,rscr:`𝓇`,rtimes:`⋊`,rtri:`▹`,triangleright:`▹`,rtriltri:`⧎`,ruluhar:`⥨`,rx:`℞`,sacute:`ś`,scE:`⪴`,scap:`⪸`,succapprox:`⪸`,scaron:`š`,scedil:`ş`,scirc:`ŝ`,scnE:`⪶`,succneqq:`⪶`,scnap:`⪺`,succnapprox:`⪺`,scnsim:`⋩`,succnsim:`⋩`,scpolint:`⨓`,scy:`с`,sdot:`⋅`,sdote:`⩦`,seArr:`⇘`,sect:`§`,semi:`;`,seswar:`⤩`,tosa:`⤩`,sext:`✶`,sfr:`𝔰`,sharp:`♯`,shchcy:`щ`,shcy:`ш`,shy:``,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,varsigma:`ς`,simdot:`⩪`,simg:`⪞`,simgE:`⪠`,siml:`⪝`,simlE:`⪟`,simne:`≆`,simplus:`⨤`,simrarr:`⥲`,smashp:`⨳`,smeparsl:`⧤`,smile:`⌣`,ssmile:`⌣`,smt:`⪪`,smte:`⪬`,smtes:`⪬︀`,softcy:`ь`,sol:`/`,solb:`⧄`,solbar:`⌿`,sopf:`𝕤`,spades:`♠`,spadesuit:`♠`,sqcaps:`⊓︀`,sqcups:`⊔︀`,sscr:`𝓈`,star:`☆`,sub:`⊂`,subset:`⊂`,subE:`⫅`,subseteqq:`⫅`,subdot:`⪽`,subedot:`⫃`,submult:`⫁`,subnE:`⫋`,subsetneqq:`⫋`,subne:`⊊`,subsetneq:`⊊`,subplus:`⪿`,subrarr:`⥹`,subsim:`⫇`,subsub:`⫕`,subsup:`⫓`,sung:`♪`,sup1:`¹`,sup2:`²`,sup3:`³`,supE:`⫆`,supseteqq:`⫆`,supdot:`⪾`,supdsub:`⫘`,supedot:`⫄`,suphsol:`⟉`,suphsub:`⫗`,suplarr:`⥻`,supmult:`⫂`,supnE:`⫌`,supsetneqq:`⫌`,supne:`⊋`,supsetneq:`⊋`,supplus:`⫀`,supsim:`⫈`,supsub:`⫔`,supsup:`⫖`,swArr:`⇙`,swnwar:`⤪`,szlig:`ß`,target:`⌖`,tau:`τ`,tcaron:`ť`,tcedil:`ţ`,tcy:`т`,telrec:`⌕`,tfr:`𝔱`,theta:`θ`,thetasym:`ϑ`,thetav:`ϑ`,vartheta:`ϑ`,thorn:`þ`,times:`×`,timesbar:`⨱`,timesd:`⨰`,topbot:`⌶`,topcir:`⫱`,topf:`𝕥`,topfork:`⫚`,tprime:`‴`,triangle:`▵`,utri:`▵`,triangleq:`≜`,trie:`≜`,tridot:`◬`,triminus:`⨺`,triplus:`⨹`,trisb:`⧍`,tritime:`⨻`,trpezium:`⏢`,tscr:`𝓉`,tscy:`ц`,tshcy:`ћ`,tstrok:`ŧ`,uHar:`⥣`,uacute:`ú`,ubrcy:`ў`,ubreve:`ŭ`,ucirc:`û`,ucy:`у`,udblac:`ű`,ufisht:`⥾`,ufr:`𝔲`,ugrave:`ù`,uhblk:`▀`,ulcorn:`⌜`,ulcorner:`⌜`,ulcrop:`⌏`,ultri:`◸`,umacr:`ū`,uogon:`ų`,uopf:`𝕦`,upsi:`υ`,upsilon:`υ`,upuparrows:`⇈`,uuarr:`⇈`,urcorn:`⌝`,urcorner:`⌝`,urcrop:`⌎`,uring:`ů`,urtri:`◹`,uscr:`𝓊`,utdot:`⋰`,utilde:`ũ`,uuml:`ü`,uwangle:`⦧`,vBar:`⫨`,vBarv:`⫩`,vangrt:`⦜`,varsubsetneq:`⊊︀`,vsubne:`⊊︀`,varsubsetneqq:`⫋︀`,vsubnE:`⫋︀`,varsupsetneq:`⊋︀`,vsupne:`⊋︀`,varsupsetneqq:`⫌︀`,vsupnE:`⫌︀`,vcy:`в`,veebar:`⊻`,veeeq:`≚`,vellip:`⋮`,vfr:`𝔳`,vopf:`𝕧`,vscr:`𝓋`,vzigzag:`⦚`,wcirc:`ŵ`,wedbar:`⩟`,wedgeq:`≙`,weierp:`℘`,wp:`℘`,wfr:`𝔴`,wopf:`𝕨`,wscr:`𝓌`,xfr:`𝔵`,xi:`ξ`,xnis:`⋻`,xopf:`𝕩`,xscr:`𝓍`,yacute:`ý`,yacy:`я`,ycirc:`ŷ`,ycy:`ы`,yen:`¥`,yfr:`𝔶`,yicy:`ї`,yopf:`𝕪`,yscr:`𝓎`,yucy:`ю`,yuml:`ÿ`,zacute:`ź`,zcaron:`ž`,zcy:`з`,zdot:`ż`,zeta:`ζ`,zfr:`𝔷`,zhcy:`ж`,zigrarr:`⇝`,zopf:`𝕫`,zscr:`𝓏`,zwj:``,zwnj:``};ha.ngsp=``;var ga=class{constructor(e,t,r){n(this,`tokens`,void 0),n(this,`errors`,void 0),n(this,`nonNormalizedIcuExpressions`,void 0),this.tokens=e,this.errors=t,this.nonNormalizedIcuExpressions=r}};function _a(e,t,n,r={}){let i=new Ta(new qi(e,t),n,r);return i.tokenize(),new ga(La(i.tokens),i.errors,i.nonNormalizedIcuExpressions)}var va=/\r\n?/g;function Y(e){return`Unexpected character "${e===0?`EOF`:String.fromCharCode(e)}"`}function ya(e){return`Unknown entity "${e}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function ba(e,t){return`Unable to parse entity "${t}" - ${e} character reference entities must end with ";"`}var xa=[`@if`,`@else`,`@for`,`@switch`,`@case`,`@default`,`@empty`,`@defer`,`@placeholder`,`@loading`,`@error`,`@content`],Sa={start:`{{`,end:`}}`},Ca=/^default[^\S\r\n]+never/,wa=/^else[^\S\r\n]+if/,Ta=class{constructor(e,t,r){n(this,`_getTagContentType`,void 0),n(this,`_cursor`,void 0),n(this,`_tokenizeIcu`,void 0),n(this,`_leadingTriviaCodePoints`,void 0),n(this,`_canSelfClose`,void 0),n(this,`_allowHtmComponentClosingTags`,void 0),n(this,`_allowStartTagComments`,void 0),n(this,`_currentTokenStart`,null),n(this,`_currentTokenType`,null),n(this,`_expansionCaseStack`,[]),n(this,`_openDirectiveCount`,0),n(this,`_inInterpolation`,!1),n(this,`_preserveLineEndings`,void 0),n(this,`_i18nNormalizeLineEndingsInICUs`,void 0),n(this,`_fullNameStack`,[]),n(this,`_tokenizeBlocks`,void 0),n(this,`_tokenizeLet`,void 0),n(this,`_selectorlessEnabled`,void 0),n(this,`tokens`,[]),n(this,`errors`,[]),n(this,`nonNormalizedIcuExpressions`,[]),this._getTagContentType=t,this._tokenizeIcu=r.tokenizeExpansionForms||!1,this._leadingTriviaCodePoints=r.leadingTriviaChars&&r.leadingTriviaChars.map(e=>e.codePointAt(0)||0),this._canSelfClose=r.canSelfClose||!1,this._allowHtmComponentClosingTags=r.allowHtmComponentClosingTags||!1,this._allowStartTagComments=r.allowStartTagComments??!0;let i=r.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=r.escapedString?new za(e,i):new Ra(e,i),this._preserveLineEndings=r.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=r.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=r.tokenizeBlocks??!0,this._tokenizeLet=r.tokenizeLet??!0,this._selectorlessEnabled=r.selectorlessEnabled??!1;try{this._cursor.init()}catch(e){this.handleError(e)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(va,`
|
|
22
|
-
`)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60)){if(this._attemptCharCode(33))this._attemptStr(`[CDATA[`)?this._consumeCdata(e):this._attemptStr(`--`)?this._consumeComment(e):this._attemptStrCaseInsensitive(`doctype`)?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let t=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=t,this._consumeBogusComment(e)):this._consumeTagOpen(e)}}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._isLetStart()?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._isBlockStart()?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(e){this.handleError(e)}}this._beginToken(43),this._endToken([])}_getBlockName(){let e=!1,t=this._cursor.clone();this._attemptCharCodeUntilFn(t=>ca(t)?!e:!Ma(t)||(e=!0,!1));let n=this._cursor.getChars(t).trim();return wa.test(n)?n=`else if`:Ca.test(n)&&(n=`default never`),n}_consumeBlockStart(e){this._requireCharCode(64),this._beginToken(26,e);let t=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40){if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(X),this._attemptCharCode(41))this._attemptCharCodeUntilFn(X);else{t.type=30;return}}if(t.parts[0]===`default never`&&this._attemptCharCode(59)){this._beginToken(27),this._endToken([]),this._beginToken(28),this._endToken([]);return}this._attemptCharCode(123)?(this._beginToken(27),this._endToken([])):this._isBlockStart()&&(t.parts[0]===`case`||t.parts[0]==="default")?(this._beginToken(27),this._endToken([]),this._beginToken(28),this._endToken([])):t.type=30}_consumeBlockEnd(e){this._beginToken(28,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(Na);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(29);let e=this._cursor.clone(),t=null,n=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||t!==null;){let e=this._cursor.peek();if(e===92)this._cursor.advance();else if(e===t)t=null;else if(t===null&&ma(e))t=e;else if(e===40&&t===null)n++;else if(e===41&&t===null){if(n===0)break;n>0&&n--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(Na)}}_consumeLetDeclaration(e){if(this._requireStr(`@let`),this._beginToken(31,e),ca(this._cursor.peek()))this._attemptCharCodeUntilFn(X);else{let t=this._endToken([this._cursor.getChars(e)]);t.type=34;return}let t=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(X),!this._attemptCharCode(61)){t.type=34;return}this._attemptCharCodeUntilFn(e=>X(e)&&!fa(e)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(33),this._cursor.advance(),this._endToken([])):(t.type=34,t.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),t=!1;return this._attemptCharCodeUntilFn(e=>ua(e)||e===36||e===95||t&&la(e)?(t=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(32,e);this._cursor.peek()!==0;){let e=this._cursor.peek();if(e===59)break;ma(e)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(t=>t===92?(this._cursor.advance(),!1):t===e)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(ka(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,t=this._cursor.clone()){this._currentTokenStart=t,this._currentTokenType=e}_endToken(e,t){if(this._currentTokenStart===null)throw new W(this._cursor.getSpan(t),`Programming error - attempted to end a token when there was no start to the token`);if(this._currentTokenType===null)throw new W(this._cursor.getSpan(this._currentTokenStart),`Programming error - attempted to end a token which has no token type`);let n={type:this._currentTokenType,parts:e,sourceSpan:(t??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n}_createError(e,t){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let n=new W(t,e);return this._currentTokenStart=null,this._currentTokenType=null,n}handleError(e){if(e instanceof Ba&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof W)this.errors.push(e);else throw e}_attemptCharCode(e){return this._cursor.peek()===e&&(this._cursor.advance(),!0)}_attemptCharCodeCaseInsensitive(e){return Aa(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Y(this._cursor.peek()),this._cursor.getSpan(t))}_attemptStr(e){let t=e.length;if(this._cursor.charsLeft()<t)return!1;let n=this._cursor.clone();for(let r=0;r<t;r++)if(!this._attemptCharCode(e.charCodeAt(r)))return this._cursor=n,!1;return!0}_attemptStrCaseInsensitive(e){for(let t=0;t<e.length;t++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(t)))return!1;return!0}_requireStr(e){let t=this._cursor.clone();if(!this._attemptStr(e))throw this._createError(Y(this._cursor.peek()),this._cursor.getSpan(t))}_requireStrCaseInsensitive(e){let t=this._cursor.clone();if(!this._attemptStrCaseInsensitive(e))throw this._createError(Y(this._cursor.peek()),this._cursor.getSpan(t))}_attemptCharCodeUntilFn(e){for(;!e(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(e,t){let n=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.diff(n)<t)throw this._createError(Y(this._cursor.peek()),this._cursor.getSpan(n))}_attemptUntilChar(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}_readChar(){let e=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),e}_peekStr(e){let t=e.length;if(this._cursor.charsLeft()<t)return!1;let n=this._cursor.clone();for(let r=0;r<t;r++){if(n.peek()!==e.charCodeAt(r))return!1;n.advance()}return!0}_isBlockStart(){return this._cursor.peek()===64&&xa.some(e=>this._peekStr(e))}_isLetStart(){return this._cursor.peek()===64&&this._peekStr(`@let`)}_consumeEntity(e){this._beginToken(9);let t=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){let e=this._attemptCharCode(120)||this._attemptCharCode(88),n=this._cursor.clone();if(this._attemptCharCodeUntilFn(Da),this._cursor.peek()!=59){this._cursor.advance();let n=e?`hexadecimal`:`decimal`;throw this._createError(ba(n,this._cursor.getChars(t)),this._cursor.getSpan())}let r=this._cursor.getChars(n);this._cursor.advance();try{let n=parseInt(r,e?16:10);this._endToken([String.fromCodePoint(n),this._cursor.getChars(t)])}catch{throw this._createError(ya(this._cursor.getChars(t)),this._cursor.getSpan())}}else{let n=this._cursor.clone();if(this._attemptCharCodeUntilFn(Oa),this._cursor.peek()!=59)this._beginToken(e,t),this._cursor=n,this._endToken([`&`]);else{let e=this._cursor.getChars(n);this._cursor.advance();let r=ha.hasOwnProperty(e)&&ha[e];if(!r)throw this._createError(ya(e),this._cursor.getSpan(t));this._endToken([r,`&${e};`])}}}_consumeRawText(e,t){this._beginToken(e?6:7);let n=[];for(;;){let r=this._cursor.clone(),i=t();if(this._cursor=r,i)break;e&&this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(n.join(``))]),n.length=0,this._consumeEntity(6),this._beginToken(6)):n.push(this._readChar())}this._endToken([this._processCarriageReturns(n.join(``))])}_consumeComment(e){this._beginToken(10,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr(`-->`)),this._beginToken(11),this._requireStr(`-->`),this._endToken([])}_consumeBogusComment(e){this._beginToken(10,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(13,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr(`]]>`)),this._beginToken(14),this._requireStr(`]]>`),this._endToken([])}_consumeDocType(e){this._beginToken(19,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(20),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(e){let t=this._cursor.clone(),n=``;for(;this._cursor.peek()!==58&&!Ea(this._cursor.peek());)this._cursor.advance();let r;this._cursor.peek()===58?(n=this._cursor.getChars(t),this._cursor.advance(),r=this._cursor.clone()):r=t,this._requireCharCodeUntilFn(e,n===``?0:1);let i=this._cursor.getChars(r);return[n,i]}_consumeSingleLineComment(e){let t=this._cursor.clone();this._attemptCharCodeUntilFn(e=>fa(e)||e===0);let n=this._cursor.clone(),r=n.getChars(t);this._beginToken(12,e),this._endToken([r,`single`],n),this._attemptCharCodeUntilFn(X)}_consumeMultiLineComment(e){let t=this._cursor.clone();this._attemptCharCodeUntilFn(e=>{if(e===0)return!0;if(e===42){let e=this._cursor.clone();return e.advance(),e.peek()===47}return!1});let n=this._cursor.clone(),r=n.getChars(t),i=n;this._attemptStr(`*/`)&&(i=this._cursor.clone(),this._attemptCharCodeUntilFn(X)),this._beginToken(12,e),this._endToken([r,`multi`],i)}_consumeTagOpen(e){let t,n,r,i,a=[];try{if(this._selectorlessEnabled&&Pa(this._cursor.peek()))i=this._consumeComponentOpenStart(e),[r,n,t]=i.parts,n&&(r+=`:${n}`),t&&(r+=`:${t}`),this._attemptCharCodeUntilFn(X);else{if(!ua(this._cursor.peek()))throw this._createError(Y(this._cursor.peek()),this._cursor.getSpan(e));i=this._consumeTagOpenStart(e),n=i.parts[0],t=r=i.parts[1],this._attemptCharCodeUntilFn(X)}for(;;){if(this._allowStartTagComments){let e=this._cursor.clone();if(this._attemptStr(`//`)){this._consumeSingleLineComment(e);continue}if(this._attemptStr(`/*`)){this._consumeMultiLineComment(e);continue}}if(Ia(this._cursor.peek()))break;if(this._selectorlessEnabled&&this._cursor.peek()===64){let e=this._cursor.clone(),t=e.clone();t.advance(),Pa(t.peek())&&this._consumeDirective(e,t)}else{let e=this._consumeAttribute();a.push(e)}}i.type===35?this._consumeComponentOpenEnd():this._consumeTagOpenEnd()}catch(t){if(t instanceof W){i?i.type=i.type===35?39:4:(this._beginToken(5,e),this._endToken([`<`]));return}throw t}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let o=this._getTagContentType(t,n,this._fullNameStack.length>0,a);this._handleFullNameStackForTagOpen(n,t),o===0?this._consumeRawTextWithTagClose(n,i,r,!1):o===1&&this._consumeRawTextWithTagClose(n,i,r,!0)}_consumeRawTextWithTagClose(e,t,n,r){this._consumeRawText(r,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(X),!this._attemptStrCaseInsensitive(e&&t.type!==35?`${e}:${n}`:n))?!1:(this._attemptCharCodeUntilFn(X),this._attemptCharCode(62))),this._beginToken(t.type===35?38:3),this._requireCharCodeUntilFn(e=>e===62,3),this._cursor.advance(),this._endToken(t.parts),this._handleFullNameStackForTagClose(e,n)}_consumeTagOpenStart(e){this._beginToken(0,e);let t=this._consumePrefixAndName(Z);return this._endToken(t)}_consumeComponentOpenStart(e){this._beginToken(35,e);let t=this._consumeComponentName();return this._endToken(t)}_consumeComponentName(){let e=this._cursor.clone();for(;Fa(this._cursor.peek());)this._cursor.advance();let t=this._cursor.getChars(e),n=``,r=``;return this._cursor.peek()===58&&(this._cursor.advance(),[n,r]=this._consumePrefixAndName(Z)),[t,n,r]}_consumeAttribute(){let[e,t]=this._consumeAttributeName(),n;return this._attemptCharCodeUntilFn(X),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(X),n=this._consumeAttributeValue()),this._attemptCharCodeUntilFn(X),{prefix:e,name:t,value:n}}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(Y(e),this._cursor.getSpan());this._beginToken(15);let t;if(this._openDirectiveCount>0){let e=0;t=t=>{if(this._openDirectiveCount>0){if(t===40)e++;else if(t===41){if(e===0)return!0;e--}}return Z(t)}}else if(e===91){let e=0;t=t=>(t===91?e++:t===93&&e--,e<=0?Z(t):fa(t))}else t=Z;let n=this._consumePrefixAndName(t);return this._endToken(n),n}_consumeAttributeValue(){let e;if(this._cursor.peek()===39||this._cursor.peek()===34){let t=this._cursor.peek();this._consumeQuote(t);let n=()=>this._cursor.peek()===t;e=this._consumeWithInterpolation(17,18,n,n),this._consumeQuote(t)}else{let t=()=>Z(this._cursor.peek());e=this._consumeWithInterpolation(17,18,t,t)}return e}_consumeQuote(e){this._beginToken(16),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?2:1;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeComponentOpenEnd(){let e=this._attemptCharCode(47)?37:36;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._selectorlessEnabled){let t=e.clone();for(;t.peek()!==62&&!Pa(t.peek());)t.advance();if(Pa(t.peek())){this._beginToken(38,e);let t=this._consumeComponentName();this._attemptCharCodeUntilFn(X),this._requireCharCode(62),this._endToken(t);return}}if(this._beginToken(3,e),this._attemptCharCodeUntilFn(X),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(X),this._requireCharCode(62),this._endToken([]);else{let[e,t]=this._consumePrefixAndName(Z);this._attemptCharCodeUntilFn(X),this._requireCharCode(62),this._endToken([e,t]),this._handleFullNameStackForTagClose(e,t)}}_consumeExpansionFormStart(){this._beginToken(21),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(21),this._beginToken(7);let e=this._readUntil(44),t=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([t]);else{let n=this._endToken([e]);t!==e&&this.nonNormalizedIcuExpressions.push(n)}this._requireCharCode(44),this._attemptCharCodeUntilFn(X),this._beginToken(7);let n=this._readUntil(44);this._endToken([n]),this._requireCharCode(44),this._attemptCharCodeUntilFn(X)}_consumeExpansionCaseStart(){this._beginToken(22);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(X),this._beginToken(23),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(X),this._expansionCaseStack.push(23)}_consumeExpansionCaseEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(X),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(25),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,t,n,r){this._beginToken(e);let i=[];for(;!n();){let n=this._cursor.clone();this._attemptStr(Sa.start)?(this._endToken([this._processCarriageReturns(i.join(``))],n),i.length=0,this._consumeInterpolation(t,n,r),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(i.join(``))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=!1;let a=this._processCarriageReturns(i.join(``));return this._endToken([a]),a}_consumeInterpolation(e,t,n){let r=[];this._beginToken(e,t),r.push(Sa.start);let i=this._cursor.clone(),a=null,o=!1;for(;this._cursor.peek()!==0&&(n===null||!n());){let e=this._cursor.clone();if(this._isTagStart()){this._cursor=e,r.push(this._getProcessedChars(i,e)),this._endToken(r);return}if(a===null){if(this._attemptStr(Sa.end)){r.push(this._getProcessedChars(i,e)),r.push(Sa.end),this._endToken(r);return}this._attemptStr(`//`)&&(o=!0)}let t=this._cursor.peek();this._cursor.advance(),t===92?this._cursor.advance():t===a?a=null:!o&&a===null&&ma(t)&&(a=t)}r.push(this._getProcessedChars(i,this._cursor)),this._endToken(r)}_consumeDirective(e,t){for(this._requireCharCode(64),this._cursor.advance();Fa(this._cursor.peek());)this._cursor.advance();this._beginToken(40,e);let n=this._cursor.getChars(t);if(this._endToken([n]),this._attemptCharCodeUntilFn(X),this._cursor.peek()===40){for(this._openDirectiveCount++,this._beginToken(41),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(X);!Ia(this._cursor.peek())&&this._cursor.peek()!==41;)this._consumeAttribute();if(this._attemptCharCodeUntilFn(X),this._openDirectiveCount--,this._cursor.peek()!==41){if(this._cursor.peek()===62||this._cursor.peek()===47)return;throw this._createError(Y(this._cursor.peek()),this._cursor.getSpan(e))}this._beginToken(42),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(X)}}_getProcessedChars(e,t){return this._processCarriageReturns(t.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._isLetStart()||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let e=this._cursor.clone();e.advance();let t=e.peek();if(97<=t&&t<=122||65<=t&&t<=90||t===47||t===33)return!0}return!1}_readUntil(e){let t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===23}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===21}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;let e=this._cursor.clone(),t=this._attemptStr(Sa.start);return this._cursor=e,!t}_handleFullNameStackForTagOpen(e,t){let n=Si(e,t);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===n)&&this._fullNameStack.push(n)}_handleFullNameStackForTagClose(e,t){let n=Si(e,t);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===n&&this._fullNameStack.pop()}};function X(e){return!ca(e)||e===0}function Z(e){return ca(e)||e===62||e===60||e===47||e===39||e===34||e===61||e===0}function Ea(e){return(e<97||122<e)&&(e<65||90<e)&&(e<48||e>57)}function Da(e){return e===59||e===0||!da(e)}function Oa(e){return e===59||e===0||!(ua(e)||la(e))}function ka(e){return e!==125}function Aa(e,t){return ja(e)===ja(t)}function ja(e){return e>=97&&e<=122?e-97+65:e}function Ma(e){return ua(e)||la(e)||e===95}function Na(e){return e!==59&&X(e)}function Pa(e){return e===95||e>=65&&e<=90}function Fa(e){return ua(e)||la(e)||e===95}function Ia(e){return e===47||e===62||e===60||e===0}function La(e){let t=[],n;for(let r=0;r<e.length;r++){let i=e[r];n&&n.type===5&&i.type===5||n&&n.type===17&&i.type===17?(n.parts[0]+=i.parts[0],n.sourceSpan.end=i.sourceSpan.end):(n=i,t.push(n))}return t}var Ra=class e{constructor(t,r){if(n(this,`state`,void 0),n(this,`file`,void 0),n(this,`input`,void 0),n(this,`end`,void 0),t instanceof e){this.file=t.file,this.input=t.input,this.end=t.end;let e=t.state;this.state={peek:e.peek,offset:e.offset,line:e.line,column:e.column}}else{if(!r)throw Error(`Programming error: the range argument must be provided with a file argument.`);this.file=t,this.input=t.content,this.end=r.endPos,this.state={peek:-1,offset:r.startPos,line:r.startLine,column:r.startCol}}}clone(){return new e(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(e){return this.state.offset-e.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(e,t){e=e||this;let n=e;if(t)for(;this.diff(e)>0&&t.indexOf(e.peek())!==-1;)n===e&&(e=e.clone()),e.advance();let r=this.locationFromCursor(e);return new U(r,this.locationFromCursor(this),n===e?r:this.locationFromCursor(n))}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new Ba(`Unexpected character "EOF"`,this);let t=this.charAt(e.offset);t===10?(e.line++,e.column=0):fa(t)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?0:this.charAt(e.offset)}locationFromCursor(e){return new Ki(e.file,e.state.offset,e.state.line,e.state.column)}},za=class e extends Ra{constructor(t,r){var i=(...e)=>(super(...e),n(this,`internalState`,void 0),this);t instanceof e?(i(t),this.internalState={...t.internalState}):(i(t,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new e(this)}getChars(e){let t=e.clone(),n=``;for(;t.internalState.offset<this.internalState.offset;)n+=String.fromCodePoint(t.peek()),t.advance();return n}processEscapeSequence(){let e=()=>this.internalState.peek;if(e()===92){if(this.internalState={...this.state},this.advanceState(this.internalState),e()===110)this.state.peek=10;else if(e()===114)this.state.peek=13;else if(e()===118)this.state.peek=11;else if(e()===116)this.state.peek=9;else if(e()===98)this.state.peek=8;else if(e()===102)this.state.peek=12;else if(e()===117){if(this.advanceState(this.internalState),e()===123){this.advanceState(this.internalState);let t=this.clone(),n=0;for(;e()!==125;)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(t,n)}else{let e=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(e,4)}}else if(e()===120){this.advanceState(this.internalState);let e=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(e,2)}else if(pa(e())){let t=``,n=0,r=this.clone();for(;pa(e())&&n<3;)r=this.clone(),t+=String.fromCodePoint(e()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(t,8),this.internalState=r.internalState}else fa(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}}decodeHexDigits(e,t){let n=this.input.slice(e.internalState.offset,e.internalState.offset+t),r=parseInt(n,16);if(isNaN(r))throw e.state=e.internalState,new Ba(`Invalid hexadecimal escape sequence`,e);return r}},Ba=class extends Error{constructor(e,t){((...e)=>(super(...e),n(this,`msg`,void 0),n(this,`cursor`,void 0),this))(e),this.msg=e,this.cursor=t,Object.setPrototypeOf(this,new.target.prototype)}},Q=class e extends W{static create(t,n,r){return new e(t,n,r)}constructor(e,t,r){((...e)=>(super(...e),n(this,`elementName`,void 0),this))(t,r),this.elementName=e}},Va=class{constructor(e,t){n(this,`rootNodes`,void 0),n(this,`errors`,void 0),this.rootNodes=e,this.errors=t}},Ha=class{constructor(e){n(this,`getTagDefinition`,void 0),this.getTagDefinition=e}parse(e,t,n,r=!1,i){let a=e=>(t,...n)=>e(t.toLowerCase(),...n),o=r?this.getTagDefinition:a(this.getTagDefinition),s=e=>o(e).getContentType(),c=r?i:a(i),l=_a(e,t,i?(e,t,n,r)=>{let i=c(e,t,n,r);return i===void 0?s(e):i}:s,n),u=n&&n.canSelfClose||!1,d=n&&n.allowHtmComponentClosingTags||!1,f=new Ua(l.tokens,o,u,d,r);return f.build(),new Va(f.rootNodes,[...l.errors,...f.errors])}},Ua=class e{constructor(e,t,r,i,a){n(this,`tokens`,void 0),n(this,`tagDefinitionResolver`,void 0),n(this,`canSelfClose`,void 0),n(this,`allowHtmComponentClosingTags`,void 0),n(this,`isTagNameCaseSensitive`,void 0),n(this,`_index`,-1),n(this,`_peek`,void 0),n(this,`_containerStack`,[]),n(this,`rootNodes`,[]),n(this,`errors`,[]),this.tokens=e,this.tagDefinitionResolver=t,this.canSelfClose=r,this.allowHtmComponentClosingTags=i,this.isTagNameCaseSensitive=a,this._advance()}build(){for(;this._peek.type!==43;)this._peek.type===0||this._peek.type===4?this._consumeElementStartTag(this._advance()):this._peek.type===3?(this._closeVoidElement(),this._consumeElementEndTag(this._advance())):this._peek.type===13?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===21?this._consumeExpansion(this._advance()):this._peek.type===26?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===28?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===30?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===31?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===19?this._consumeDocType(this._advance()):this._peek.type===34?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._peek.type===35||this._peek.type===39?this._consumeComponentStartTag(this._advance()):this._peek.type===38?this._consumeComponentEndTag(this._advance()):this._advance();for(let e of this._containerStack)e instanceof q&&this.errors.push(Q.create(e.name,e.sourceSpan,`Unclosed block "${e.name}"`))}_advance(){let e=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e}_advanceIf(e){return this._peek.type===e?this._advance():null}_consumeCdata(e){let t=this._advance(),n=this._getText(t),r=this._advanceIf(14);this._addToParent(new Xi(n,new U(e.sourceSpan.start,(r||t).sourceSpan.end),[t]))}_consumeComment(e){let t=this._advanceIf(7),n=this._advanceIf(11),r=t==null?null:t.parts[0].trim(),i=n==null?e.sourceSpan:new U(e.sourceSpan.start,n.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new ta(r,i))}_consumeDocType(e){let t=this._advanceIf(7),n=this._advanceIf(20),r=t==null?null:t.parts[0].trim(),i=new U(e.sourceSpan.start,(n||t||e).sourceSpan.end);this._addToParent(new na(r,i))}_consumeExpansion(e){let t=this._advance(),n=this._advance(),r=[];for(;this._peek.type===22;){let e=this._parseExpansionCase();if(!e)return;r.push(e)}if(this._peek.type!==25){this.errors.push(Q.create(null,this._peek.sourceSpan,`Invalid ICU message. Missing '}'.`));return}let i=new U(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new Zi(t.parts[0],n.parts[0],r,i,t.sourceSpan)),this._advance()}_parseExpansionCase(){let t=this._advance();if(this._peek.type!==23)return this.errors.push(Q.create(null,this._peek.sourceSpan,`Invalid ICU message. Missing '{'.`)),null;let n=this._advance(),r=this._collectExpansionExpTokens(n);if(!r)return null;let i=this._advance();r.push({type:43,parts:[],sourceSpan:i.sourceSpan});let a=new e(r,this.tagDefinitionResolver,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive);if(a.build(),a.errors.length>0)return this.errors=this.errors.concat(a.errors),null;let o=new U(t.sourceSpan.start,i.sourceSpan.end,t.sourceSpan.fullStart),s=new U(n.sourceSpan.start,i.sourceSpan.end,n.sourceSpan.fullStart);return new Qi(t.parts[0],a.rootNodes,o,t.sourceSpan,s)}_collectExpansionExpTokens(e){let t=[],n=[23];for(;;){if((this._peek.type===21||this._peek.type===23)&&n.push(this._peek.type),this._peek.type===24){if(Wa(n,23)){if(n.pop(),n.length===0)return t}else return this.errors.push(Q.create(null,e.sourceSpan,`Invalid ICU message. Missing '}'.`)),null}if(this._peek.type===25){if(Wa(n,21))n.pop();else return this.errors.push(Q.create(null,e.sourceSpan,`Invalid ICU message. Missing '}'.`)),null}if(this._peek.type===43)return this.errors.push(Q.create(null,e.sourceSpan,`Invalid ICU message. Missing '}'.`)),null;t.push(this._advance())}}_getText(e){let t=e.parts[0];if(t.length>0&&t[0]==`
|
|
23
|
-
`){var n;let e=this._getClosestElementLikeParent();e!=null&&e.children.length==0&&(n=this._getTagDefinition(e))!=null&&n.ignoreFirstLf&&(t=t.substring(1))}return t}_consumeText(e){let t=[e],n=e.sourceSpan,r=e.parts[0];if(r.length>0&&r[0]===`
|
|
24
|
-
`){var i;let n=this._getContainer();n!=null&&n.children.length===0&&(i=this._getTagDefinition(n))!=null&&i.ignoreFirstLf&&(r=r.substring(1),t[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[r]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),t.push(e),e.type===8?r+=e.parts.join(``).replace(/&([^;]+);/g,Ga):e.type===9?r+=e.parts[0]:r+=e.parts.join(``);if(r.length>0){let i=e.sourceSpan;this._addToParent(new Yi(r,new U(n.start,i.end,n.fullStart,n.details),t))}}_closeVoidElement(){var e;let t=this._getContainer();t!==null&&(e=this._getTagDefinition(t))!=null&&e.isVoid&&this._containerStack.pop()}_consumeElementStartTag(e){var t;let n=[],r=[],i=[];this._consumeAttributesAndDirectives(n,r,i);let a=this._getElementFullName(e,this._getClosestElementLikeParent()),o=this._getTagDefinition(a),s=!1;if(this._peek.type===2){this._advance(),s=!0;let t=this._getTagDefinition(a);this.canSelfClose||t?.canSelfClose||xi(a)!==null||t?.isVoid||this.errors.push(Q.create(a,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===1&&(this._advance(),s=!1);let c=this._peek.sourceSpan.fullStart,l=new U(e.sourceSpan.start,c,e.sourceSpan.fullStart),u=new U(e.sourceSpan.start,c,e.sourceSpan.fullStart),d=new U(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),f=new K(a,n,r,[],s,l,u,void 0,d,o?.isVoid??!1,void 0,i),p=this._getContainer(),m=p!==null&&!!((t=this._getTagDefinition(p))!=null&&t.isClosedByChild(f.name));this._pushContainer(f,m),s?this._popContainer(a,K,l):e.type===4&&(this._popContainer(a,K,null),this.errors.push(Q.create(a,l,`Opening tag "${a}" not terminated.`)))}_consumeComponentStartTag(e){var t;let n=e.parts[0],r=[],i=[],a=[];this._consumeAttributesAndDirectives(r,i,a);let o=this._getClosestElementLikeParent(),s=this._getComponentTagName(e,o),c=this._getComponentFullName(e,o),l=this._peek.type===37;this._advance();let u=this._peek.sourceSpan.fullStart,d=new U(e.sourceSpan.start,u,e.sourceSpan.fullStart),f=new J(n,s,c,r,i,[],l,d,new U(e.sourceSpan.start,u,e.sourceSpan.fullStart),void 0,void 0,a),p=this._getContainer(),m=p!==null&&f.tagName!==null&&!!((t=this._getTagDefinition(p))!=null&&t.isClosedByChild(f.tagName));this._pushContainer(f,m),l?this._popContainer(c,J,d):e.type===39&&(this._popContainer(c,J,null),this.errors.push(Q.create(c,d,`Opening tag "${c}" not terminated.`)))}_consumeAttributesAndDirectives(e,t,n){for(;this._peek.type===15||this._peek.type===40||this._peek.type===12;)if(this._peek.type===40)t.push(this._consumeDirective(this._peek));else if(this._peek.type===15)e.push(this._consumeAttr(this._advance()));else{let e=this._advance();n.push(new ea(e.parts[0],e.parts[1],e.sourceSpan))}}_consumeComponentEndTag(e){let t=this._getComponentFullName(e,this._getClosestElementLikeParent());if(!this._popContainer(t,J,e.sourceSpan)){let n=this._containerStack[this._containerStack.length-1],r;r=n instanceof J&&n.componentName===e.parts[0]?`, did you mean "${n.fullName}"?`:`. It may happen when the tag has already been closed by another tag.`;let i=`Unexpected closing tag "${t}"${r}`;this.errors.push(Q.create(t,e.sourceSpan,i))}}_getTagDefinition(e){return typeof e==`string`?this.tagDefinitionResolver(e):e instanceof K?this.tagDefinitionResolver(e.name):e instanceof J&&e.tagName!==null?this.tagDefinitionResolver(e.tagName):null}_pushContainer(e,t){t&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeElementEndTag(e){var t;let n=this.allowHtmComponentClosingTags&&e.parts.length===0?null:this._getElementFullName(e,this._getClosestElementLikeParent());if(n&&(t=this._getTagDefinition(n))!=null&&t.isVoid)this.errors.push(Q.create(n,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(n,K,e.sourceSpan)){let t=`Unexpected closing tag "${n}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(Q.create(n,e.sourceSpan,t))}}_popContainer(e,t,n){let r=!1;for(let a=this._containerStack.length-1;a>=0;a--){var i;let o=this._containerStack[a],s=o instanceof J?o.fullName:o.name;if(xi(s)?s===e:(s===e||e===null)&&o instanceof t)return o.endSourceSpan=n,o.sourceSpan.end=n===null?o.sourceSpan.end:n.end,this._containerStack.splice(a,this._containerStack.length-a),!r;(o instanceof q||!((i=this._getTagDefinition(o))!=null&&i.closedByParent))&&(r=!0)}return!1}_consumeAttr(e){let t=Si(e.parts[0],e.parts[1]),n=e.sourceSpan.end,r;this._peek.type===16&&(r=this._advance());let i=``,a=[],o,s;if(this._peek.type===17)for(o=this._peek.sourceSpan,s=this._peek.sourceSpan.end;this._peek.type===17||this._peek.type===18||this._peek.type===9;){let e=this._advance();a.push(e),e.type===18?i+=e.parts.join(``).replace(/&([^;]+);/g,Ga):e.type===9?i+=e.parts[0]:i+=e.parts.join(``),s=n=e.sourceSpan.end}this._peek.type===16&&(s=n=this._advance().sourceSpan.end);let c=o&&s&&new U(r?.sourceSpan.start??o.start,s,r?.sourceSpan.fullStart??o.fullStart);return new $i(t,i,new U(e.sourceSpan.start,n,e.sourceSpan.fullStart),e.sourceSpan,c,a.length>0?a:void 0,void 0)}_consumeDirective(e){let t=[],n=e.sourceSpan.end,r=null;if(this._advance(),this._peek.type===41){for(n=this._peek.sourceSpan.end,this._advance();this._peek.type===15;)t.push(this._consumeAttr(this._advance()));this._peek.type===42?(r=this._peek.sourceSpan,this._advance()):this.errors.push(Q.create(null,e.sourceSpan,`Unterminated directive definition`))}let i=new U(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new U(i.start,r===null?e.sourceSpan.end:r.end,i.fullStart);return new ra(e.parts[0],t,a,i,r)}_consumeBlockOpen(e){let t=[];for(;this._peek.type===29;){let e=this._advance();t.push(new ia(e.parts[0],e.sourceSpan))}this._peek.type===27&&this._advance();let n=this._peek.sourceSpan.fullStart,r=new U(e.sourceSpan.start,n,e.sourceSpan.fullStart),i=new U(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new q(e.parts[0],t,[],r,e.sourceSpan,i);this._pushContainer(a,!1)}_consumeBlockClose(e){let t=this._containerStack.length,n=this._containerStack[t-1];if(!this._popContainer(null,q,e.sourceSpan)){if(this._containerStack.length<t){let t=n instanceof J?n.fullName:n.name;this.errors.push(Q.create(null,e.sourceSpan,`Unexpected closing block. The block may have been closed earlier. Did you forget to close the <${t}> element? If you meant to write the \`}\` character, you should use the "}" HTML entity instead.`));return}this.errors.push(Q.create(null,e.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the `}` character, you should use the "}" HTML entity instead.'))}}_consumeIncompleteBlock(e){let t=[];for(;this._peek.type===29;){let e=this._advance();t.push(new ia(e.parts[0],e.sourceSpan))}let n=this._peek.sourceSpan.fullStart,r=new U(e.sourceSpan.start,n,e.sourceSpan.fullStart),i=new U(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new q(e.parts[0],t,[],r,e.sourceSpan,i);this._pushContainer(a,!1),this._popContainer(null,q,null),this.errors.push(Q.create(e.parts[0],r,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(e){let t=e.parts[0],n,r;if(this._peek.type!==32){this.errors.push(Q.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${t}". Declaration must have a value.`));return}if(n=this._advance(),this._peek.type!==33){this.errors.push(Q.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${t}". Declaration must be terminated with a semicolon.`));return}r=this._advance();let i=r.sourceSpan.end,a=new U(e.sourceSpan.start,i,e.sourceSpan.fullStart),o=e.sourceSpan.toString().lastIndexOf(t),s=new U(e.sourceSpan.start.moveBy(o),e.sourceSpan.end),c=new aa(t,n.parts[0],a,s,n.sourceSpan);this._addToParent(c)}_consumeIncompleteLet(e){let t=e.parts[0]??``,n=t?` "${t}"`:``;if(t.length>0){let n=e.sourceSpan.toString().lastIndexOf(t),r=new U(e.sourceSpan.start.moveBy(n),e.sourceSpan.end),i=new U(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),a=new aa(t,``,e.sourceSpan,r,i);this._addToParent(a)}this.errors.push(Q.create(e.parts[0],e.sourceSpan,`Incomplete @let declaration${n}. @let declarations must be written as \`@let <name> = <value>;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestElementLikeParent(){for(let e=this._containerStack.length-1;e>-1;e--){let t=this._containerStack[e];if(t instanceof K||t instanceof J)return t}return null}_addToParent(e){let t=this._getContainer();t===null?this.rootNodes.push(e):t.children.push(e)}_getElementFullName(e,t){return Si(this._getPrefix(e,t),e.parts[1])}_getComponentFullName(e,t){let n=e.parts[0],r=this._getComponentTagName(e,t);return r===null?n:r.startsWith(`:`)?n+r:`${n}:${r}`}_getComponentTagName(e,t){let n=this._getPrefix(e,t),r=e.parts[2];return!n&&!r?null:!n&&r?r:Si(n,r||`ng-component`)}_getPrefix(e,t){let n,r;if(e.type===35||e.type===39||e.type===38?(n=e.parts[1],r=e.parts[2]):(n=e.parts[0],r=e.parts[1]),n=n||this._getTagDefinition(r)?.implicitNamespacePrefix||``,!n&&t){let e=t instanceof K?t.name:t.tagName;if(e!==null){let t=B(e)[1],r=this._getTagDefinition(t);r!==null&&!r.preventNamespaceInheritance&&(n=xi(e))}}return n}};function Wa(e,t){return e.length>0&&e[e.length-1]===t}function Ga(e,t){return ha[t]===void 0?/^#x[a-f0-9]+$/i.test(t)?String.fromCodePoint(parseInt(t.slice(2),16)):/^#\d+$/.test(t)?String.fromCodePoint(parseInt(t.slice(1),10)):e:ha[t]||e}var Ka=class extends Ha{constructor(){super(Gi)}parse(e,t,n,r=!1,i){return super.parse(e,t,n,r,i)}},qa;function Ja(e,t={}){let{canSelfClose:n=!1,allowHtmComponentClosingTags:r=!1,allowStartTagComments:i=!1,isTagNameCaseSensitive:a=!1,getTagContentType:o,tokenizeAngularBlocks:s=!1,tokenizeAngularLetDeclaration:c=!1,enableAngularSelectorlessSyntax:l=!1}=t;return qa??(qa=new Ka),qa.parse(e,`angular-html-parser`,{tokenizeExpansionForms:s,canSelfClose:n,allowHtmComponentClosingTags:r,allowStartTagComments:i,tokenizeBlocks:s,tokenizeLet:c,selectorlessEnabled:l},a,o)}var Ya=[Za,Qa,eo,no,ro,oo,io,ao,so,to];function Xa(e,t){for(let n of Ya)n(e,t);return e}function Za(e){e.walk(e=>{if(e.kind===`element`&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&e.children[0].kind===`text`&&e.children[0].value[0]===`
|
|
25
|
-
`){let t=e.children[0];t.value.length===1?e.removeChild(t):t.value=t.value.slice(1)}})}function Qa(e){let t=e=>e.kind===`element`&&e.prev?.kind===`ieConditionalStartComment`&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&e.firstChild?.kind===`ieConditionalEndComment`&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset;e.walk(e=>{if(e.children)for(let n=0;n<e.children.length;n++){let r=e.children[n];if(!t(r))continue;let i=r.prev,a=r.firstChild;e.removeChild(i),n--;let o=new U(i.sourceSpan.start,a.sourceSpan.end),s=new U(o.start,r.sourceSpan.end);r.condition=i.condition,r.sourceSpan=s,r.startSourceSpan=o,r.removeChild(a)}})}function $a(e,t,n){e.walk(e=>{if(e.children)for(let r=0;r<e.children.length;r++){let i=e.children[r];if(i.kind!==`text`&&!t(i))continue;i.kind!==`text`&&(i.kind=`text`,i.value=n(i));let a=i.prev;!a||a.kind!==`text`||(a.value+=i.value,a.sourceSpan=new U(a.sourceSpan.start,i.sourceSpan.end),e.removeChild(i),r--)}})}function eo(e){return $a(e,e=>e.kind===`cdata`,e=>`<![CDATA[${e.value}]]>`)}function to(e){let t=e=>e.kind===`element`&&e.attrs.length===0&&!ct(e.startTagComments)&&e.children.length===1&&e.firstChild.kind===`text`&&!E.hasWhitespaceCharacter(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&e.prev?.kind===`text`&&e.next?.kind===`text`;e.walk(e=>{if(e.children)for(let n=0;n<e.children.length;n++){let r=e.children[n];if(!t(r))continue;let i=r.prev,a=r.next;i.value+=`<${r.rawName}>`+r.firstChild.value+`</${r.rawName}>`+a.value,i.sourceSpan=new U(i.sourceSpan.start,a.sourceSpan.end),i.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,i.hasTrailingSpaces=a.hasTrailingSpaces,e.removeChild(r),n--,e.removeChild(a)}})}function no(e,t){if(t.parser===`html`)return;let n=/\{\{(.+?)\}\}/s;e.walk(e=>{if(It(e,t))for(let t of e.children){if(t.kind!==`text`)continue;let r=t.sourceSpan.start,i,a=t.value.split(n);for(let n=0;n<a.length;n++,r=i){let o=a[n];if(n%2==0){i=r.moveBy(o.length),o.length>0&&e.insertChildBefore(t,{kind:`text`,value:o,sourceSpan:new U(r,i)});continue}i=r.moveBy(o.length+4),e.insertChildBefore(t,{kind:`interpolation`,sourceSpan:new U(r,i),children:o.length===0?[]:[{kind:`text`,value:o,sourceSpan:new U(r.moveBy(2),i.moveBy(-2))}]})}e.removeChild(t)}})}function ro(e,t){e.walk(e=>{let n=e.$children;if(!n)return;if(n.length===0||n.length===1&&n[0].kind===`text`&&E.trim(n[0].value).length===0){e.hasDanglingSpaces=n.length>0,e.$children=[];return}let r=Lt(e,t),i=Rt(e);if(!r)for(let t=0;t<n.length;t++){let r=n[t];if(r.kind!==`text`)continue;let{leadingWhitespace:i,text:a,trailingWhitespace:o}=Mt(r.value),s=r.prev,c=r.next;a?(r.value=a,r.sourceSpan=new U(r.sourceSpan.start.moveBy(i.length),r.sourceSpan.end.moveBy(-o.length)),i&&(s&&(s.hasTrailingSpaces=!0),r.hasLeadingSpaces=!0),o&&(r.hasTrailingSpaces=!0,c&&(c.hasLeadingSpaces=!0))):(e.removeChild(r),t--,(i||o)&&(s&&(s.hasTrailingSpaces=!0),c&&(c.hasLeadingSpaces=!0)))}e.isWhitespaceSensitive=r,e.isIndentationSensitive=i})}function io(e){e.walk(e=>{e.isSelfClosing=!e.children||e.kind===`element`&&(e.tagDefinition.isVoid||e.endSourceSpan&&e.startSourceSpan.start===e.endSourceSpan.start&&e.startSourceSpan.end===e.endSourceSpan.end)})}function ao(e,t){e.walk(e=>{e.kind===`element`&&(e.hasHtmComponentClosingTag=e.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset)))})}function oo(e,t){e.walk(e=>{e.cssDisplay=fn(e,t)})}function so(e,t){e.walk(e=>{let{children:n}=e;if(n){if(n.length===0){e.isDanglingSpaceSensitive=Vt(e,t);return}for(let e of n)e.isLeadingSpaceSensitive=zt(e,t),e.isTrailingSpaceSensitive=Bt(e,t);for(let e=0;e<n.length;e++){let t=n[e];t.isLeadingSpaceSensitive=(e===0||t.prev.isTrailingSpaceSensitive)&&t.isLeadingSpaceSensitive,t.isTrailingSpaceSensitive=(e===n.length-1||t.next.isLeadingSpaceSensitive)&&t.isTrailingSpaceSensitive}}})}var co=Xa;function lo(e,t,n){let{node:r}=e;switch(r.kind){case`root`:return t.__onHtmlRoot&&t.__onHtmlRoot(r),[x(oi(e,t,n)),T];case`element`:case`ieConditionalComment`:return gi(e,t,n);case`angularControlFlowBlock`:return si(e,t,n);case`angularControlFlowBlockParameters`:return pi(e,t,n);case`angularControlFlowBlockParameter`:return E.trim(r.expression);case`angularLetDeclaration`:return x([`@let `,x([r.id,` =`,x(b([C,n(`init`)]))]),`;`]);case`angularLetDeclarationInitializer`:return r.value;case`angularIcuExpression`:return mi(e,t,n);case`angularIcuCase`:return hi(e,t,n);case`ieConditionalStartComment`:case`ieConditionalEndComment`:return[Ar(r),vr(r)];case`interpolation`:return[Ar(r,t),...e.map(n,`children`),vr(r,t)];case`text`:{if(r.parent.kind===`interpolation`){let e=/\n[^\S\n]*$/,t=e.test(r.value);return[v(t?r.value.replace(e,``):r.value),t?T:``]}let e=z(r,t),n=bn(r),i=I(r,t);return n[0]=[e,n[0]],n.push([n.pop(),i]),Pe(n)}case`docType`:return[x([Ar(r,t),` `,h(0,r.value.replace(/^html\b/i,`html`),/\s+/g,` `)]),vr(r,t)];case`comment`:return[z(r,t),v(t.originalText.slice(F(r),hr(r))),I(r,t)];case`attribute`:{if(r.value===null)return r.rawName;let e=mn(r.value),n=Cn(r,t)?``:He(e,`"`);return[r.rawName,`=`,n,v(n===`"`?h(0,e,`"`,`"`):h(0,e,`'`,`'`)),n]}case`startTagComment`:return _i(e);default:throw new Ke(r,`HTML`)}}var uo={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},preprocess:co,print:lo,insertPragma:ti,massageAstNode:Yr,embed:Rr,getVisitorKeys:Kr},fo=[{name:`Angular`,type:`markup`,aceMode:`html`,extensions:[`.component.html`],tmScope:`text.html.basic`,aliases:[`xhtml`],codemirrorMode:`htmlmixed`,codemirrorMimeType:`text/html`,parsers:[`angular`],vscodeLanguageIds:[`html`],filenames:[],linguistLanguageId:146},{name:`HTML`,type:`markup`,aceMode:`html`,extensions:[`.html`,`.hta`,`.htm`,`.html.hl`,`.inc`,`.xht`,`.xhtml`],tmScope:`text.html.basic`,aliases:[`xhtml`],codemirrorMode:`htmlmixed`,codemirrorMimeType:`text/html`,parsers:[`html`],vscodeLanguageIds:[`html`],linguistLanguageId:146},{name:`Lightning Web Components`,type:`markup`,aceMode:`html`,extensions:[],tmScope:`text.html.basic`,aliases:[`LWC`,`lwc`],codemirrorMode:`htmlmixed`,codemirrorMimeType:`text/html`,parsers:[`lwc`],vscodeLanguageIds:[`html`],filenames:[],linguistLanguageId:146},{name:`MJML`,type:`markup`,aceMode:`html`,extensions:[`.mjml`],tmScope:`text.mjml.basic`,aliases:[`MJML`,`mjml`],codemirrorMode:`htmlmixed`,codemirrorMimeType:`text/html`,parsers:[`mjml`],filenames:[],vscodeLanguageIds:[`mjml`],linguistLanguageId:146},{name:`Vue`,type:`markup`,aceMode:`vue`,extensions:[`.vue`],tmScope:`text.html.vue`,codemirrorMode:`vue`,codemirrorMimeType:`text/x-vue`,parsers:[`vue`],vscodeLanguageIds:[`vue`],linguistLanguageId:391}],po={bracketSpacing:{category:`Common`,type:`boolean`,default:!0,description:`Print spaces between brackets.`,oppositeDescription:`Do not print spaces between brackets.`},objectWrap:{category:`Common`,type:`choice`,default:`preserve`,description:`How to wrap object literals.`,choices:[{value:`preserve`,description:`Keep as multi-line, if there is a newline between the opening brace and first property.`},{value:`collapse`,description:`Fit to a single line when possible.`}]},singleQuote:{category:`Common`,type:`boolean`,default:!1,description:`Use single quotes instead of double quotes.`},proseWrap:{category:`Common`,type:`choice`,default:`preserve`,description:`How to wrap prose.`,choices:[{value:`always`,description:`Wrap prose if it exceeds the print width.`},{value:`never`,description:`Do not wrap prose.`},{value:`preserve`,description:`Wrap prose as-is.`}]},bracketSameLine:{category:`Common`,type:`boolean`,default:!1,description:`Put > of opening tags on the last line instead of on a new line.`},singleAttributePerLine:{category:`Common`,type:`boolean`,default:!1,description:`Enforce single attribute per line in HTML, Vue and JSX.`}},mo=`HTML`,ho={bracketSameLine:po.bracketSameLine,htmlWhitespaceSensitivity:{category:mo,type:`choice`,default:`css`,description:`How to handle whitespaces in HTML.`,choices:[{value:`css`,description:`Respect the default value of CSS display property.`},{value:`strict`,description:`Whitespaces are considered sensitive.`},{value:`ignore`,description:`Whitespaces are considered insensitive.`}]},singleAttributePerLine:po.singleAttributePerLine,vueIndentScriptAndStyle:{category:mo,type:`boolean`,default:!1,description:`Indent script and style tags in Vue files.`}},go={};d(go,{angular:()=>is,html:()=>ts,lwc:()=>os,mjml:()=>rs,vue:()=>as});function _o(e,t){let n=SyntaxError(e+` (`+t.loc.start.line+`:`+t.loc.start.column+`)`);return Object.assign(n,t)}var vo=_o,yo={canSelfClose:!0,normalizeTagName:!1,normalizeAttributeName:!1,allowHtmComponentClosingTags:!1,allowStartTagComments:!1,isTagNameCaseSensitive:!1,shouldParseFrontMatter:!0};function bo(e){return{...yo,...e}}function xo(e){let{canSelfClose:t,allowHtmComponentClosingTags:n,allowStartTagComments:r,isTagNameCaseSensitive:i,shouldParseAsRawText:a,tokenizeAngularBlocks:o,tokenizeAngularLetDeclaration:s}=e;return{canSelfClose:t,allowHtmComponentClosingTags:n,allowStartTagComments:r,isTagNameCaseSensitive:i,getTagContentType:a?(...e)=>a(...e)?vi.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:o,tokenizeAngularLetDeclaration:s}}var So=new Map([[`*`,new Set(`accesskey.autocapitalize.autocorrect.autofocus.class.contenteditable.dir.draggable.enterkeyhint.exportparts.hidden.id.inert.inputmode.is.itemid.itemprop.itemref.itemscope.itemtype.lang.nonce.part.popover.slot.spellcheck.style.tabindex.title.translate.writingsuggestions`.split(`.`))],[`a`,new Set([`charset`,`coords`,`download`,`href`,`hreflang`,`name`,`ping`,`referrerpolicy`,`rel`,`rev`,`shape`,`target`,`type`])],[`applet`,new Set([`align`,`alt`,`archive`,`code`,`codebase`,`height`,`hspace`,`name`,`object`,`vspace`,`width`])],[`area`,new Set([`alt`,`coords`,`download`,`href`,`hreflang`,`nohref`,`ping`,`referrerpolicy`,`rel`,`shape`,`target`,`type`])],[`audio`,new Set([`autoplay`,`controls`,`crossorigin`,`loop`,`muted`,`preload`,`src`])],[`base`,new Set([`href`,`target`])],[`basefont`,new Set([`color`,`face`,`size`])],[`blockquote`,new Set([`cite`])],[`body`,new Set([`alink`,`background`,`bgcolor`,`link`,`text`,`vlink`])],[`br`,new Set([`clear`])],[`button`,new Set([`command`,`commandfor`,`disabled`,`form`,`formaction`,`formenctype`,`formmethod`,`formnovalidate`,`formtarget`,`name`,`popovertarget`,`popovertargetaction`,`type`,`value`])],[`canvas`,new Set([`height`,`width`])],[`caption`,new Set([`align`])],[`col`,new Set([`align`,`char`,`charoff`,`span`,`valign`,`width`])],[`colgroup`,new Set([`align`,`char`,`charoff`,`span`,`valign`,`width`])],[`data`,new Set([`value`])],[`del`,new Set([`cite`,`datetime`])],[`details`,new Set([`name`,`open`])],[`dialog`,new Set([`closedby`,`open`])],[`dir`,new Set([`compact`])],[`div`,new Set([`align`])],[`dl`,new Set([`compact`])],[`embed`,new Set([`height`,`src`,`type`,`width`])],[`fieldset`,new Set([`disabled`,`form`,`name`])],[`font`,new Set([`color`,`face`,`size`])],[`form`,new Set([`accept`,`accept-charset`,`action`,`autocomplete`,`enctype`,`method`,`name`,`novalidate`,`target`])],[`frame`,new Set([`frameborder`,`longdesc`,`marginheight`,`marginwidth`,`name`,`noresize`,`scrolling`,`src`])],[`frameset`,new Set([`cols`,`rows`])],[`h1`,new Set([`align`])],[`h2`,new Set([`align`])],[`h3`,new Set([`align`])],[`h4`,new Set([`align`])],[`h5`,new Set([`align`])],[`h6`,new Set([`align`])],[`head`,new Set([`profile`])],[`hr`,new Set([`align`,`noshade`,`size`,`width`])],[`html`,new Set([`manifest`,`version`])],[`iframe`,new Set([`align`,`allow`,`allowfullscreen`,`allowpaymentrequest`,`allowusermedia`,`frameborder`,`height`,`loading`,`longdesc`,`marginheight`,`marginwidth`,`name`,`referrerpolicy`,`sandbox`,`scrolling`,`src`,`srcdoc`,`width`])],[`img`,new Set([`align`,`alt`,`border`,`crossorigin`,`decoding`,`fetchpriority`,`height`,`hspace`,`ismap`,`loading`,`longdesc`,`name`,`referrerpolicy`,`sizes`,`src`,`srcset`,`usemap`,`vspace`,`width`])],[`input`,new Set(`accept.align.alpha.alt.autocomplete.checked.colorspace.dirname.disabled.form.formaction.formenctype.formmethod.formnovalidate.formtarget.height.ismap.list.max.maxlength.min.minlength.multiple.name.pattern.placeholder.popovertarget.popovertargetaction.readonly.required.size.src.step.type.usemap.value.width`.split(`.`))],[`ins`,new Set([`cite`,`datetime`])],[`isindex`,new Set([`prompt`])],[`label`,new Set([`for`,`form`])],[`legend`,new Set([`align`])],[`li`,new Set([`type`,`value`])],[`link`,new Set([`as`,`blocking`,`charset`,`color`,`crossorigin`,`disabled`,`fetchpriority`,`href`,`hreflang`,`imagesizes`,`imagesrcset`,`integrity`,`media`,`referrerpolicy`,`rel`,`rev`,`sizes`,`target`,`type`])],[`map`,new Set([`name`])],[`menu`,new Set([`compact`])],[`meta`,new Set([`charset`,`content`,`http-equiv`,`media`,`name`,`scheme`])],[`meter`,new Set([`high`,`low`,`max`,`min`,`optimum`,`value`])],[`object`,new Set([`align`,`archive`,`border`,`classid`,`codebase`,`codetype`,`data`,`declare`,`form`,`height`,`hspace`,`name`,`standby`,`type`,`typemustmatch`,`usemap`,`vspace`,`width`])],[`ol`,new Set([`compact`,`reversed`,`start`,`type`])],[`optgroup`,new Set([`disabled`,`label`])],[`option`,new Set([`disabled`,`label`,`selected`,`value`])],[`output`,new Set([`for`,`form`,`name`])],[`p`,new Set([`align`])],[`param`,new Set([`name`,`type`,`value`,`valuetype`])],[`pre`,new Set([`width`])],[`progress`,new Set([`max`,`value`])],[`q`,new Set([`cite`])],[`script`,new Set([`async`,`blocking`,`charset`,`crossorigin`,`defer`,`fetchpriority`,`integrity`,`language`,`nomodule`,`referrerpolicy`,`src`,`type`])],[`select`,new Set([`autocomplete`,`disabled`,`form`,`multiple`,`name`,`required`,`size`])],[`slot`,new Set([`name`])],[`source`,new Set([`height`,`media`,`sizes`,`src`,`srcset`,`type`,`width`])],[`style`,new Set([`blocking`,`media`,`type`])],[`table`,new Set([`align`,`bgcolor`,`border`,`cellpadding`,`cellspacing`,`frame`,`rules`,`summary`,`width`])],[`tbody`,new Set([`align`,`char`,`charoff`,`valign`])],[`td`,new Set([`abbr`,`align`,`axis`,`bgcolor`,`char`,`charoff`,`colspan`,`headers`,`height`,`nowrap`,`rowspan`,`scope`,`valign`,`width`])],[`template`,new Set([`shadowrootclonable`,`shadowrootcustomelementregistry`,`shadowrootdelegatesfocus`,`shadowrootmode`,`shadowrootserializable`])],[`textarea`,new Set([`autocomplete`,`cols`,`dirname`,`disabled`,`form`,`maxlength`,`minlength`,`name`,`placeholder`,`readonly`,`required`,`rows`,`wrap`])],[`tfoot`,new Set([`align`,`char`,`charoff`,`valign`])],[`th`,new Set([`abbr`,`align`,`axis`,`bgcolor`,`char`,`charoff`,`colspan`,`headers`,`height`,`nowrap`,`rowspan`,`scope`,`valign`,`width`])],[`thead`,new Set([`align`,`char`,`charoff`,`valign`])],[`time`,new Set([`datetime`])],[`tr`,new Set([`align`,`bgcolor`,`char`,`charoff`,`valign`])],[`track`,new Set([`default`,`kind`,`label`,`src`,`srclang`])],[`ul`,new Set([`compact`,`type`])],[`video`,new Set([`autoplay`,`controls`,`crossorigin`,`height`,`loop`,`muted`,`playsinline`,`poster`,`preload`,`src`,`width`])]]),Co=new Set(`a.abbr.acronym.address.applet.area.article.aside.audio.b.base.basefont.bdi.bdo.bgsound.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.command.content.data.datalist.dd.del.details.dfn.dialog.dir.div.dl.dt.em.embed.fencedframe.fieldset.figcaption.figure.font.footer.form.frame.frameset.geolocation.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.image.img.input.ins.isindex.kbd.keygen.label.legend.li.link.listing.main.map.mark.marquee.math.menu.menuitem.meta.meter.multicol.nav.nextid.nobr.noembed.noframes.noscript.object.ol.optgroup.option.output.p.param.picture.plaintext.pre.progress.q.rb.rbc.rp.rt.rtc.ruby.s.samp.script.search.section.select.selectedcontent.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.svg.table.tbody.td.template.textarea.tfoot.th.thead.time.title.tr.track.tt.u.ul.var.video.wbr.xmp`.split(`.`)),wo={attrs:!0,children:!0,cases:!0,expression:!0},To=new Set([`parent`]),$,Eo,Do,Oo=class e{constructor(e={}){ee(this,$),f(this,`kind`),f(this,`parent`);for(let t of new Set([...To,...Object.keys(e)]))this.setProperty(t,e[t]);if(_t(e))for(let t of Object.getOwnPropertySymbols(e))this.setProperty(t,e[t])}setProperty(e,t){if(this[e]!==t){if(e in wo&&(t=t.map(e=>this.createChild(e))),!To.has(e)){this[e]=t;return}Object.defineProperty(this,e,{value:t,enumerable:!1,configurable:!0})}}map(t){let n;for(let r in wo){let i=this[r];if(i){let a=Ao(i,e=>e.map(t));n!==i&&(n??(n=new e({parent:this.parent})),n.setProperty(r,a))}}if(n)for(let e in this)e in wo||(n[e]=this[e]);return t(n||this)}walk(e){for(let t in wo){let n=this[t];if(n)for(let t=0;t<n.length;t++)n[t].walk(e)}e(this)}createChild(t){let n=t instanceof e?t.clone():new e(t);return n.setProperty(`parent`,this),n}insertChildBefore(e,t){let n=this.$children;n.splice(n.indexOf(e),0,this.createChild(t))}removeChild(e){let t=this.$children;t.splice(t.indexOf(e),1)}replaceChild(e,t){let n=this.$children;n[n.indexOf(e)]=this.createChild(t)}clone(){return new e(this)}get $children(){return this[m(this,$,Eo)]}set $children(e){this[m(this,$,Eo)]=e}get firstChild(){return this.$children?.[0]}get lastChild(){return g(1,this.$children,-1)}get prev(){let e=m(this,$,Do);return e[e.indexOf(this)-1]}get next(){let e=m(this,$,Do);return e[e.indexOf(this)+1]}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+`:`+this.name:this.name}get attrMap(){return Object.fromEntries(this.attrs.map(e=>[e.fullName,e.value]))}};$=new WeakSet,Eo=function(){return this.kind===`angularIcuCase`?`expression`:this.kind===`angularIcuExpression`?`cases`:`children`},Do=function(){return this.parent?.$children??[]};var ko=Oo;function Ao(e,t){let n=e.map(t);return n.some((t,n)=>t!==e[n])?n:e}var jo=[{regex:/^(?<openingTagSuffix>\[if(?<condition>[^\]]*)\]>)(?<data>.*?)<!\s*\[endif\]$/s,parse:No},{regex:/^\[if(?<condition>[^\]]*)\]><!$/,parse:Po},{regex:/^<!\s*\[endif\]$/,parse:Fo}];function Mo(e,t){if(e.value)for(let{regex:n,parse:r}of jo){let i=e.value.match(n);if(i)return r(e,i,t)}return null}function No(e,t,n){let{openingTagSuffix:r,condition:i,data:a}=t.groups,o=4+r.length,s=e.sourceSpan.start.moveBy(o),c=s.moveBy(a.length),[l,u]=(()=>{try{return[!0,n(a,s).children]}catch{return[!1,[{kind:`text`,value:a,sourceSpan:new U(s,c)}]]}})();return{kind:`ieConditionalComment`,complete:l,children:u,condition:h(0,i.trim(),/\s+/g,` `),sourceSpan:e.sourceSpan,startSourceSpan:new U(e.sourceSpan.start,s),endSourceSpan:new U(c,e.sourceSpan.end)}}function Po(e,t){let{condition:n}=t.groups;return{kind:`ieConditionalStartComment`,condition:h(0,n.trim(),/\s+/g,` `),sourceSpan:e.sourceSpan}}function Fo(e){return{kind:`ieConditionalEndComment`,sourceSpan:e.sourceSpan}}var Io=class extends sa{visitExpansionCase(e,t){t.parseOptions.name===`angular`&&this.visitChildren(t,t=>{t(e.expression)})}visit(e,{parseOptions:t}){Uo(e),Wo(e,t),Ko(e,t),Go(e)}};function Lo(e,t,n,r){let i=n.name===`angular`;oa(new Io,e.children,{parseOptions:n}),t&&e.children.unshift(t);let a=new ko(e);return a.walk(e=>{if(e.kind===`comment`){let t=Mo(e,r);t&&e.parent.replaceChild(e,t)}else i&&e.kind===`element`&&e.comments&&(e.startTagComments=e.comments,delete e.comments);i&&(Ro(e),zo(e),Bo(e))}),a}function Ro(e){if(e.kind===`block`){if(e.name=h(0,e.name.toLowerCase(),/\s+/g,` `).trim(),e.kind=`angularControlFlowBlock`,!ct(e.parameters)){delete e.parameters;return}for(let t of e.parameters)t.kind=`angularControlFlowBlockParameter`;e.parameters={kind:`angularControlFlowBlockParameters`,children:e.parameters,sourceSpan:new U(e.parameters[0].sourceSpan.start,g(0,e.parameters,-1).sourceSpan.end)}}}function zo(e){e.kind===`letDeclaration`&&(e.kind=`angularLetDeclaration`,e.id=e.name,e.init={kind:`angularLetDeclarationInitializer`,sourceSpan:new U(e.valueSpan.start,e.valueSpan.end),value:e.value},delete e.name,delete e.value)}function Bo(e){e.kind===`expansion`&&(e.kind=`angularIcuExpression`),e.kind===`expansionCase`&&(e.kind=`angularIcuCase`)}function Vo(e,t){let n=e.toLowerCase();return t(n)?n:e}function Ho(e){let t=e.name.startsWith(`:`)?e.name.slice(1).split(`:`,1)[0]:null,n=e.nameSpan.toString(),r=t!==null&&n.startsWith(`${t}:`);e.name=r?n.slice(t.length+1):n,e.namespace=t,e.hasExplicitNamespace=r}function Uo(e){switch(e.kind){case`element`:Ho(e);for(let t of e.attrs)Ho(t),t.valueSpan?(t.value=t.valueSpan.toString(),/["']/.test(t.value[0])&&(t.value=t.value.slice(1,-1))):t.value=null;break;case`comment`:e.value=e.sourceSpan.toString().slice(4,-3);break;case`text`:e.value=e.sourceSpan.toString()}}function Wo(e,t){if(e.kind===`element`){let n=Gi(t.isTagNameCaseSensitive?e.name:e.name.toLowerCase());e.tagDefinition=!e.namespace||e.namespace===n.implicitNamespacePrefix||kt(e)?n:Gi(``)}}function Go(e){e.sourceSpan&&e.endSourceSpan&&(e.sourceSpan=new U(e.sourceSpan.start,e.endSourceSpan.end))}function Ko(e,t){if(e.kind===`element`&&(t.normalizeTagName&&(!e.namespace||e.namespace===e.tagDefinition.implicitNamespacePrefix||kt(e))&&(e.name=Vo(e.name,e=>Co.has(e))),t.normalizeAttributeName))for(let t of e.attrs)t.namespace||(t.name=Vo(t.name,t=>So.has(e.name)&&(So.get(`*`).has(t)||So.get(e.name).has(t))))}function qo(e,t){let{rootNodes:n,errors:r}=Ja(e,xo(t));return r.length>0&&Xo(r[0]),{parseOptions:t,rootNodes:n}}function Jo(e,t){let n=xo(t),{rootNodes:r,errors:i}=Ja(e,n);if(r.some(e=>e.kind===`docType`&&e.value===`html`||e.kind===`element`&&e.name.toLowerCase()===`html`))return qo(e,$o);let a,o=()=>a??(a=Ja(e,{...n,getTagContentType:void 0})),s=e=>{let{offset:t}=e.startSourceSpan.start;return o().rootNodes.find(e=>e.kind===`element`&&e.startSourceSpan.start.offset===t)??e};for(let[e,t]of r.entries())if(t.kind===`element`){if(t.isVoid)i=o().errors,r[e]=s(t);else if(Yo(t)){let{endSourceSpan:n,startSourceSpan:i}=t,a=o().errors.find(e=>e.span.start.offset>i.start.offset&&e.span.start.offset<n.end.offset);a&&Xo(a),r[e]=s(t)}}return i.length>0&&Xo(i[0]),{parseOptions:t,rootNodes:r}}function Yo(e){if(e.kind!==`element`||e.name!==`template`)return!1;let t=e.attrs.find(e=>e.name===`lang`)?.value;return!t||t===`html`}function Xo(e){let{msg:t,span:{start:n,end:r}}=e;throw vo(t,{loc:{start:{line:n.line+1,column:n.col+1},end:{line:r.line+1,column:r.col+1}},cause:e})}function Zo(e,t,n,r,i,a){let{offset:o}=r,s=Qo(yt(t.slice(0,o))+n,e,{...i,shouldParseFrontMatter:!1},a);s.sourceSpan=new U(r,g(0,s.children,-1).sourceSpan.end);let c=s.children[0];return c.length===o?s.children.shift():(c.sourceSpan=new U(c.sourceSpan.start.moveBy(o),c.sourceSpan.end),c.value=c.value.slice(o)),s}function Qo(e,t,n,r={}){let{frontMatter:i,content:a}=n.shouldParseFrontMatter?Ct(e):{content:e},o=new qi(e,r.filepath),s=new Ki(o,0,0,0),c=s.moveBy(e.length),{parseOptions:l,rootNodes:u}=t(a,n),d={kind:`root`,sourceSpan:new U(s,c),children:u},f;if(i){let[e,t]=[i.start,i.end].map(e=>new Ki(o,e.index,e.line-1,e.column));f={...i,kind:`frontMatter`,sourceSpan:new U(e,t)}}return Lo(d,f,l,(n,i)=>Zo(t,e,n,i,l,r))}var $o=bo({name:`html`,normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0});function es(e){let t=bo(e),n=t.name===`vue`?Jo:qo;return{parse:(e,r)=>Qo(e,n,t,r),hasPragma:$r,hasIgnorePragma:ei,astFormat:`html`,locStart:F,locEnd:hr}}var ts=es($o),ns=new Set([`mj-style`,`mj-raw`]),rs=es({...$o,name:`mjml`,shouldParseAsRawText:e=>ns.has(e)}),is=es({name:`angular`,tokenizeAngularBlocks:!0,tokenizeAngularLetDeclaration:!0,allowStartTagComments:!0}),as=es({name:`vue`,isTagNameCaseSensitive:!0,shouldParseAsRawText(e,t,n,r){return e.toLowerCase()!==`html`&&!n&&(e!==`template`||r.some(({name:e,value:t})=>e===`lang`&&t!==`html`&&t!==``&&t!==void 0))}}),os=es({name:`lwc`,canSelfClose:!1}),ss={html:uo};export{te as default,fo as languages,ho as options,go as parsers,ss as printers};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=e=>typeof e==`string`,t=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},n=e=>e==null?``:String(e),r=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},i=/###/g,a=e=>e&&e.includes(`###`)?e.replace(i,`.`):e,o=t=>!t||e(t),s=(t,n,r)=>{let i=e(n)?n.split(`.`):n,s=0;for(;s<i.length-1;){if(o(t))return{};let e=a(i[s]);!t[e]&&r&&(t[e]=new r),t=Object.prototype.hasOwnProperty.call(t,e)?t[e]:{},++s}return o(t)?{}:{obj:t,k:a(i[s])}},c=(e,t,n)=>{let{obj:r,k:i}=s(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),c=s(e,o,Object);for(;c.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),c=s(e,o,Object),c?.obj&&c.obj[`${c.k}.${a}`]!==void 0&&(c.obj=void 0);c.obj[`${c.k}.${a}`]=n},l=(e,t,n,r)=>{let{obj:i,k:a}=s(e,t,Object);i[a]=i[a]||[],i[a].push(n)},u=(e,t)=>{let{obj:n,k:r}=s(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},d=(e,t,n)=>{let r=u(e,n);return r===void 0?u(t,n):r},f=(t,n,r)=>{for(let i in n)i!==`__proto__`&&i!==`constructor`&&(Object.prototype.hasOwnProperty.call(t,i)?e(t[i])||t[i]instanceof String||e(n[i])||n[i]instanceof String?r&&(t[i]=n[i]):f(t[i],n[i],r):t[i]=n[i]);return t},p=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),m={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},h=t=>e(t)?t.replace(/[&<>"'\/]/g,e=>m[e]):t,g=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},_=[` `,`,`,`?`,`!`,`;`],v=new g(20),y=(e,t,n)=>{t=t||``,n=n||``;let r=_.filter(e=>!t.includes(e)&&!n.includes(e));if(r.length===0)return!0;let i=v.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},b=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].includes(typeof t)&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},x=e=>e?.replace(/_/g,`-`),S={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},C=new class t{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||S,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(t,n,r,i){return i&&!this.debug?null:(t=t.map(t=>e(t)?t.replace(/[\r\n\x00-\x1F\x7F]/g,` `):t),e(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(e){return new t(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new t(this.logger,e)}},w=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}once(e,t){let n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n(e,...t)})}},T=class extends w{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(t,n,r,i={}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=i.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:i.ignoreJSONStructure,s;t.includes(`.`)?s=t.split(`.`):(s=[t,n],r&&(Array.isArray(r)?s.push(...r):e(r)&&a?s.push(...r.split(a)):s.push(r)));let c=u(this.data,s);return!c&&!n&&!r&&t.includes(`.`)&&(t=s[0],n=s[1],r=s.slice(2).join(`.`)),c||!o||!e(r)?c:b(this.data?.[t]?.[n],r,a)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.includes(`.`)&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),c(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(t,n,r,i={silent:!1}){for(let i in r)(e(r[i])||Array.isArray(r[i]))&&this.addResource(t,n,i,r[i],{silent:!0});i.silent||this.emit(`added`,t,n,r)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(`.`)&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=u(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?f(s,n,i):s={...s,...n},c(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},E={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},D=Symbol(`i18next/PATH_KEY`);function O(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===D?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function k(e,t){let{[D]:n}=e(O()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`,a=t?.enableSelector===`strict`;if(n.length>1&&i){let e=t?.ns,o=a?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(o&&(a?o:o.length>1?o.slice(1):[]).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var A=t=>!e(t)&&typeof t!=`boolean`&&typeof t!=`number`,j=class t extends w{constructor(e,t={}){super(),r([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=C.create(`translator`),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=A(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(t,n){let r=n.nsSeparator===void 0?this.options.nsSeparator:n.nsSeparator;r===void 0&&(r=`:`);let i=n.keySeparator===void 0?this.options.keySeparator:n.keySeparator,a=n.ns||this.options.defaultNS||[],o=r&&t.includes(r),s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!y(t,r,i);if(o&&!s){let n=t.match(this.interpolator.nestingRegexp);if(n&&n.length>0)return{key:t,namespaces:e(a)?[a]:a};let o=t.split(r);(r!==i||r===i&&this.options.ns.includes(o[0]))&&(a=o.shift()),t=o.join(i)}return{key:t,namespaces:e(a)?[a]:a}}translate(n,r,i){let a=typeof r==`object`?{...r}:r;if(typeof a!=`object`&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),typeof a==`object`&&(a={...a}),a||(a={}),n==null)return``;typeof n==`function`&&(n=k(n,{...this.options,...a})),Array.isArray(n)||(n=[String(n)]),n=n.map(e=>typeof e==`function`?k(e,{...this.options,...a}):String(e));let o=a.returnDetails===void 0?this.options.returnDetails:a.returnDetails,s=a.keySeparator===void 0?this.options.keySeparator:a.keySeparator,{key:c,namespaces:l}=this.extractFromKey(n[n.length-1],a),u=l[l.length-1],d=a.nsSeparator===void 0?this.options.nsSeparator:a.nsSeparator;d===void 0&&(d=`:`);let f=a.lng||this.language,p=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f?.toLowerCase()===`cimode`)return p?o?{res:`${u}${d}${c}`,usedKey:c,exactUsedKey:c,usedLng:f,usedNS:u,usedParams:this.getUsedParamsDetails(a)}:`${u}${d}${c}`:o?{res:c,usedKey:c,exactUsedKey:c,usedLng:f,usedNS:u,usedParams:this.getUsedParamsDetails(a)}:c;let m=this.resolve(n,a),h=m?.res,g=m?.usedKey||c,_=m?.exactUsedKey||c,v=[`[object Number]`,`[object Function]`,`[object RegExp]`],y=a.joinArrays===void 0?this.options.joinArrays:a.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,x=a.count!==void 0&&!e(a.count),S=t.hasDefaultValue(a),C=x?this.pluralResolver.getSuffix(f,a.count,a):``,w=a.ordinal&&x?this.pluralResolver.getSuffix(f,a.count,{ordinal:!1}):``,T=x&&!a.ordinal&&a.count===0,E=T&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${C}`]||a[`defaultValue${w}`]||a.defaultValue,D=h;b&&!h&&S&&(D=E);let O=A(D),j=Object.prototype.toString.apply(D);if(b&&D&&O&&!v.includes(j)&&!(e(y)&&Array.isArray(D))){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,D,{...a,ns:l}):`key '${c} (${this.language})' returned an object instead of string.`;return o?(m.res=e,m.usedParams=this.getUsedParamsDetails(a),m):e}if(s){let e=Array.isArray(D),t=e?[]:{},n=e?_:g;for(let e in D)if(Object.prototype.hasOwnProperty.call(D,e)){let r=`${n}${s}${e}`;t[e]=S&&!h?this.translate(r,{...a,defaultValue:A(E)?E[e]:void 0,joinArrays:!1,ns:l}):this.translate(r,{...a,joinArrays:!1,ns:l}),t[e]===r&&(t[e]=D[e])}h=t}}else if(b&&e(y)&&Array.isArray(h))h=h.join(y),h&&(h=this.extendTranslation(h,n,a,i));else{let e=!1,t=!1;!this.isValidLookup(h)&&S&&(e=!0,h=E),this.isValidLookup(h)||(t=!0,h=c);let r=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&t?void 0:h,o=S&&E!==h&&this.options.updateMissing;if(t||e||o){if(this.logger.log(o?`updateKey`:`missingKey`,f,u,x&&!o?`${c}${this.pluralResolver.getSuffix(f,a.count,a)}`:c,o?E:h),s){let e=this.resolve(c,{...a,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(a.lng||this.language):e.push(a.lng||this.language);let n=(e,t,n)=>{let i=S&&n!==h?n:r;this.options.missingKeyHandler?this.options.missingKeyHandler(e,u,t,i,o,a):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,u,t,i,o,a),this.emit(`missingKey`,e,u,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&x?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,a);T&&a[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],c+t,a[`defaultValue${t}`]||E)})}):n(e,c,E))}h=this.extendTranslation(h,n,a,m,i),t&&h===c&&this.options.appendNamespaceToMissingKey&&(h=`${u}${d}${c}`),(t||e)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${d}${c}`:c,e?h:void 0,a))}return o?(m.res=h,m.usedParams=this.getUsedParamsDetails(a),m):h}extendTranslation(t,n,r,i,a){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});let o=e(t)&&(r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables),s;if(o){let e=t.match(this.interpolator.nestingRegexp);s=e&&e.length}let c=r.replace&&!e(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),t=this.interpolator.interpolate(t,c,r.lng||this.language||i.usedLng,r),o){let e=t.match(this.interpolator.nestingRegexp),n=e&&e.length;s<n&&(r.nest=!1)}!r.lng&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...e)=>a?.[0]===e[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${n[0]}`),null):this.translate(...e,n),r)),r.interpolation&&this.interpolator.reset()}let o=r.postProcess||this.options.postProcess,s=e(o)?[o]:o;return t!=null&&s?.length&&r.applyPostProcessor!==!1&&(t=E.handle(s,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,i,a,o,s;return e(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(e=>typeof e==`function`?k(e,{...this.options,...n}):e)),t.forEach(t=>{if(this.isValidLookup(r))return;let c=this.extractFromKey(t,n),l=c.key;i=l;let u=c.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));let d=n.count!==void 0&&!e(n.count),f=d&&!n.ordinal&&n.count===0,p=n.context!==void 0&&(e(n.context)||typeof n.context==`number`)&&n.context!==``,m=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);u.forEach(e=>{this.isValidLookup(r)||(s=e,!this.checkedLoadedFor[`${m[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(s)&&(this.checkedLoadedFor[`${m[0]}-${e}`]=!0,this.logger.warn(`key "${i}" for languages "${m.join(`, `)}" won't get resolved as namespace "${s}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),m.forEach(t=>{if(this.isValidLookup(r))return;o=t;let i=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(i,l,t,e,n);else{let e;d&&(e=this.pluralResolver.getSuffix(t,n.count,n));let r=`${this.options.pluralSeparator}zero`,a=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(n.ordinal&&e.startsWith(a)&&i.push(l+e.replace(a,this.options.pluralSeparator)),i.push(l+e),f&&i.push(l+r)),p){let t=`${l}${this.options.contextSeparator||`_`}${n.context}`;i.push(t),d&&(n.ordinal&&e.startsWith(a)&&i.push(t+e.replace(a,this.options.pluralSeparator)),i.push(t+e),f&&i.push(t+r))}}let s;for(;s=i.pop();)this.isValidLookup(r)||(a=s,r=this.getResource(t,e,s,n))}))})}),{res:r,usedKey:i,exactUsedKey:a,usedLng:o,usedNS:s}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(t={}){let n=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],r=t.replace&&!e(t.replace),i=r?t.replace:t;if(r&&t.count!==void 0&&(i={...i,count:t.count}),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(let e of n)delete i[e]}return i}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith(`defaultValue`)&&e[t]!==void 0)return!0;return!1}},M=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=C.create(`languageUtils`),this.resolveHierarchyCache={}}clearCache(){this.resolveHierarchyCache={}}getScriptPartFromCode(e){if(e=x(e),!e||!e.includes(`-`))return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=x(e),!e||!e.includes(`-`))return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(t){if(e(t)&&t.includes(`-`)){let e;try{e=Intl.getCanonicalLocales(t)[0]}catch{}return e&&this.options.lowerCaseLng&&(e=e.toLowerCase()),e||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?!0:!e.includes(`-`)&&!r.includes(`-`)?!1:!!(e.includes(`-`)&&!r.includes(`-`)&&e.slice(0,e.indexOf(`-`))===r||e.startsWith(r)&&r.length>1))}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(t,n){if(!t)return[];if(typeof t==`function`&&(t=t(n)),e(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){let r=this.options.fallbackLng,i=Array.isArray(r)?r.join(`|`):r;i!==this._cachedFallbackLng&&(this.resolveHierarchyCache={},this._cachedFallbackLng=i);let a=n===void 0||n===!1||e(n),o=n===void 0&&typeof this.options.fallbackLng==`function`,s=e(t)&&a&&!o,c=null;if(s){let e;e=n===void 0?`undefined`:n===!1?`boolean:false`:`string:${n}`,c=`${t.length}:${t}|${e}`}if(c!==null){let e=this.resolveHierarchyCache[c];if(e!==void 0)return e.slice()}let l=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),u=[],d=e=>{e&&(this.isSupportedCode(e)?u.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return e(t)&&(t.includes(`-`)||t.includes(`_`))?(this.options.load!==`languageOnly`&&d(this.formatLanguageCode(t)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&d(this.getScriptPartFromCode(t)),this.options.load!==`currentOnly`&&d(this.getLanguagePartFromCode(t))):e(t)&&d(this.formatLanguageCode(t)),l.forEach(e=>{u.includes(e)||d(this.formatLanguageCode(e))}),c===null?u:(this.resolveHierarchyCache[c]=u,u.slice())}},N={zero:0,one:1,two:2,few:3,many:4,other:5},P={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},F=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=C.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=x(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),P;if(!e.match(/-|_/))return P;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule(`dev`,t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule(`dev`,t)),n?n.resolvedOptions().pluralCategories.sort((e,t)=>N[e]-N[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},I=(t,n,r,i=`.`,a=!0)=>{let o=d(t,n,r);return!o&&a&&e(r)&&(o=b(t,r,i),o===void 0&&(o=b(n,r,i))),o},L=e=>e.replace(/\$/g,`$$$$`),R=class{constructor(e={}){this.logger=C.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:m,nestingSuffixEscaped:g,nestingOptionsSeparator:_,maxReplaces:v,alwaysFormat:y}=e.interpolation;this.escape=t===void 0?h:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?p(i):a||`{{`,this.suffix=o?p(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u?p(u):`-`,this.unescapeSuffix=this.unescapePrefix?``:l?p(l):``,this.nestingPrefix=d?p(d):f||p(`$t(`),this.nestingSuffix=m?p(m):g||p(`)`),this.nestingOptionsSeparator=_||`,`,this.maxReplaces=v||1e3,this.alwaysFormat=y!==void 0&&y,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,r,i,a){let o,s,c,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=e=>{if(!e.includes(this.formatSeparator)){let t=I(r,l,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(t,void 0,i,{...a,...r,interpolationkey:e}):t}let t=e.split(this.formatSeparator),n=t.shift().trim(),o=t.join(this.formatSeparator).trim();return this.format(I(r,l,n,this.options.keySeparator,this.options.ignoreJSONStructure),o,i,{...a,...r,interpolationkey:n})};this.resetRegExp(),!this.escapeValue&&typeof t==`string`&&/\$t\([^)]*\{[^}]*\{\{/.test(t)&&this.logger.warn(`nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.`);let d=a?.missingInterpolationHandler||this.options.missingInterpolationHandler,f=a?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:a.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}].forEach(r=>{for(c=0;o=r.regex.exec(t);){let i=o[1].trim();if(s=u(i),s===void 0){if(typeof d==`function`){let n=d(t,o,a);s=e(n)?n:``}else if(a&&Object.prototype.hasOwnProperty.call(a,i))s=``;else if(f){s=o[0];continue}else this.logger.warn(`missed to pass in variable ${i} for interpolating ${t}`),s=``}else!e(s)&&!this.useRawValueToEscape&&(s=n(s));let l=r.safeValue(s);if(t=t.replace(o[0],L(l)),f?(r.regex.lastIndex+=l.length,r.regex.lastIndex-=o[0].length):r.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,r,i={}){let a,o,s,c=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let r=e.split(RegExp(`${p(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,s);let a=i.match(/'/g),o=i.match(/"/g);((a?.length??0)%2==0&&!o||(o?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{s=JSON.parse(i),t&&(s={...t,...s})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return s.defaultValue&&s.defaultValue.includes(this.prefix)&&delete s.defaultValue,e};for(;a=this.nestingRegexp.exec(t);){let l=[];s={...i},s=s.replace&&!e(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let u=/{.*}/s.test(a[1])?a[1].lastIndexOf(`}`)+1:a[1].indexOf(this.formatSeparator);if(u!==-1&&(l=a[1].slice(u).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),a[1]=a[1].slice(0,u)),o=r(c.call(this,a[1].trim(),s),s),o&&a[0]===t&&!e(o))return o;e(o)||(o=n(o)),o||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),o=``),l.length&&(o=l.reduce((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:a[1].trim()}),o.trim())),t=t.replace(a[0],o),this.regexp.lastIndex=0}return t}},z=e=>{let t=e.toLowerCase().trim(),n={};if(e.includes(`(`)){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].slice(0,-1);t===`currency`&&!i.includes(`:`)?n.currency||(n.currency=i.trim()):t===`relativetime`&&!i.includes(`:`)?n.range||(n.range=i.trim()):i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},B=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(x(r),i),t[o]=s),s(n)}},V=e=>(t,n,r)=>e(x(n),r)(t),H=class{constructor(e={}){this.logger=C.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?B:V;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=B(t)}format(e,t,n,r={}){if(!t||e==null)return e;let i=t.split(this.formatSeparator),a=[];for(let e=0;e<i.length;e++){let t=i[e];for(;t.indexOf(`(`)>-1&&!t.includes(`)`)&&e+1<i.length;)t=`${t}${this.formatSeparator}${i[++e]}`;a.push(t)}return a.reduce((e,t)=>{let{formatName:i,formatOptions:a}=z(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}},U=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},W=class extends w{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=C.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{l(n.loaded,[i],a),U(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read(e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(t,n,r={},i){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),i&&i();e(t)&&(t=this.languageUtils.toResolveHierarchy(t)),e(n)&&(n=[n]);let a=this.queueLoad(t,n,r,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(n!=null&&n!==``){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},G=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let n={};if(typeof t[1]==`object`&&(n=t[1]),e(t[1])&&(n.defaultValue=t[1]),e(t[2])&&(n.tDescription=t[2]),typeof t[2]==`object`||typeof t[3]==`object`){let e=t[3]||t[2];Object.keys(e).forEach(t=>{n[t]=e[t]})}return n},interpolation:{escapeValue:!0,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),K=t=>(e(t.ns)&&(t.ns=[t.ns]),e(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),e(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&!t.supportedLngs.includes(`cimode`)&&(t.supportedLngs=t.supportedLngs.concat([`cimode`])),t),q=()=>{},J=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},Y=class n extends w{constructor(e={},t){if(super(),this.options=K(e),this.services={},this.logger=C,this.modules={external:[]},J(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(n={},r){this.isInitializing=!0,typeof n==`function`&&(r=n,n={}),n.defaultNS==null&&n.ns&&(e(n.ns)?n.defaultNS=n.ns:n.ns.includes(`translation`)||(n.defaultNS=n.ns[0]));let i=G();this.options={...i,...this.options,...K(n)},this.options.interpolation={...i.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=i.overloadTranslationOptionHandler);let a=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?C.init(a(this.modules.logger),this.options):C.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:H;let t=new M(this.options);this.store=new T(this.options.resources,this.options);let n=this.services;n.logger=C,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new F(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=a(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new R(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new W(a(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=a(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=a(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new j(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,r||(r=q),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let o=t(),s=()=>{let e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),o.resolve(t),r(e,t)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?s():setTimeout(s,0),o}loadResources(t,n=q){let r=n,i=e(t)?t:this.language;if(typeof t==`function`&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return r();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&(e.includes(t)||e.push(t))})};i?t(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(e)})}else r(null)}reloadResources(e,n,r){let i=t();return typeof e==`function`&&(r=e,e=void 0),typeof n==`function`&&(r=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),r||(r=q),this.services.backendConnector.reload(e,n,e=>{i.resolve(),r(e)}),i}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&E.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&![`cimode`,`dev`].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(![`cimode`,`dev`].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(n,r){this.isLanguageChangingTo=n;let i=t();this.emit(`languageChanging`,n);let a=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(e,t)=>{t?this.isLanguageChangingTo===n&&(a(t),this.translator.changeLanguage(t),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,t),this.logger.log(`languageChanged`,t)):this.isLanguageChangingTo=void 0,i.resolve((...e)=>this.t(...e)),r&&r(e,(...e)=>this.t(...e))},s=t=>{!n&&!t&&this.services.languageDetector&&(t=[]);let r=e(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(r)?r:this.services.languageUtils.getBestMatchFromCodes(e(t)?[t]:t);i&&(this.language||a(i),this.translator.language||this.translator.changeLanguage(i),this.services.languageDetector?.cacheUserLanguage?.(i)),this.loadResources(i,e=>{o(e,i)})};return!n&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(n),i}getFixedT(t,n,r,i){let a=i?.scopeNs,o=(e,t,...n)=>{let i;i=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(n)),i.lng=i.lng||o.lng,i.lngs=i.lngs||o.lngs;let s=i.ns!==void 0&&i.ns!==null;i.ns=i.ns||o.ns,i.keyPrefix!==``&&(i.keyPrefix=i.keyPrefix||r||o.keyPrefix);let c={...this.options,...i};Array.isArray(a)&&!s&&(c.ns=a),typeof i.keyPrefix==`function`&&(i.keyPrefix=k(i.keyPrefix,c));let l=this.options.keySeparator||`.`,u;return i.keyPrefix&&Array.isArray(e)?u=e.map(e=>(typeof e==`function`&&(e=k(e,c)),`${i.keyPrefix}${l}${e}`)):(typeof e==`function`&&(e=k(e,c)),u=i.keyPrefix?`${i.keyPrefix}${l}${e}`:e),this.t(u,i)};return e(t)?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(n,r){let i=t();return this.options.ns?(e(n)&&(n=[n]),n.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{i.resolve(),r&&r(e)}),i):(r&&r(),Promise.resolve())}loadLanguages(n,r){let i=t();e(n)&&(n=[n]);let a=this.options.preload||[],o=n.filter(e=>!a.includes(e)&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=a.concat(o),this.loadResources(e=>{i.resolve(),r&&r(e)}),i):(r&&r(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new M(G());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.includes(n.getLanguagePartFromCode(e))||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(e={},t){let r=new n(e,t);return r.createInstance=n.createInstance,r}cloneInstance(e={},t=q){let r=e.forkResourceStore;r&&delete e.forkResourceStore;let i={...this.options,...e,isClone:!0},a=new n(i);if((e.debug!==void 0||e.prefix!==void 0)&&(a.logger=a.logger.clone(e)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new T(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),e.interpolation){let t={...G().interpolation,...this.options.interpolation,...e.interpolation},n={...i,interpolation:t};a.services.interpolator=new R(n)}return a.translator=new j(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,t),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();Y.createInstance,Y.dir,Y.init,Y.loadResources,Y.reloadResources,Y.use,Y.changeLanguage,Y.getFixedT,Y.t,Y.exists,Y.setDefaultNamespace,Y.hasLoadedNamespace,Y.loadNamespaces,Y.loadLanguages;export{k as n,Y as t};
|