@webority/repo-checks 0.168.0 → 0.169.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.
@@ -2,7 +2,7 @@
2
2
  import{chmodSync as e,existsSync as t,mkdirSync as n,readFileSync as r,readdirSync as i,realpathSync as a,statSync as o,writeFileSync as s}from"node:fs";import{basename as c,dirname as l,extname as u,join as d,matchesGlob as f,posix as p,relative as m,resolve as h,sep as g,win32 as _}from"node:path";import{spawnSync as v}from"node:child_process";import{homedir as y}from"node:os";var b=`.webority/baselines/repo-checks-baseline.json`,x=/* @__PURE__ */ `raw-measure.palette-read.raw-colour.root-font-size.raw-motion.dark-read.missing-canvas-key.repeated-canvas-key.raw-bootstrap.library-class-restyle.unknown-icon.rename-wrapper.shadowed-library-name.single-use-component.error-summary-title.route-internal-id.razor-page-handler.razor-page-link.web-route-literal.api-thunk.screen-service-import.api-call.page-lint.script-integrity.deprecated-import.react-string-ref.legacy-component-props.legacy-react-test-api.navigation-shim.legacy-node-sqlite`.split(`.`),S=x.map(e=>`${e}:`),C=class extends Error{};function ee(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function te(e){return Array.isArray(e)&&e.every(e=>typeof e==`string`&&e.includes(` | `))}function ne(e){return Array.isArray(e)&&e.every(ae)}function re(e,t){return`${e} | ${t}`}function w(e){if(typeof e!=`string`)throw new C(`${b} is not a valid version 2 baseline: "findings" must be a list of "<app folder> | <finding id>" strings.`);let t=e.indexOf(` | `);if(t===-1)throw new C(`${b} is not a valid version 2 baseline: "findings" must be a list of "<app folder> | <finding id>" strings.`);return[e.slice(0,t),e.slice(t+3)]}function ie(e){let n=d(e,b);if(!t(n))return null;let i;try{i=JSON.parse(r(n,`utf8`))}catch{throw new C(`${b} does not parse.`)}if(!ee(i)||i.version!==2)throw new C(`${b} has no "version": 2; it is the earlier shape without counts. Delete it and run webority-repo-checks --baseline-init once from the git root, then review and commit the new file.`);for(let e of Object.keys(i))if(e!==`version`&&e!==`findings`&&e!==`counts`&&e!==`accepted`)throw new C(`${b} is not a valid version 2 baseline: unknown key "${e}".`);if(!te(i.findings))throw new C(`${b} is not a valid version 2 baseline: "findings" must be a list of "<app folder> | <finding id>" strings.`);if(!ee(i.counts))throw new C(`${b} is not a valid version 2 baseline: "counts" must be an object of "<rule>:<file>" ids and whole numbers above 0.`);let a={};for(let[e,t]of Object.entries(i.counts)){if(!S.some(t=>e.startsWith(t))||typeof t!=`number`||!Number.isInteger(t)||t<=0)throw new C(`${b} is not a valid version 2 baseline: count "${e}" must be a ${S.join(`, `)} id with a whole number above 0.`);a[e]=t}let o=[];if(i.accepted!==void 0){if(!ne(i.accepted))throw new C(`${b} is not a valid version 2 baseline: "accepted" must be a list of { "prefix", "reason" } objects with non-empty text.`);o=i.accepted}return{version:2,findings:i.findings,counts:a,accepted:o}}function ae(e){return ee(e)&&Object.keys(e).every(e=>e===`prefix`||e===`reason`)&&oe(e.prefix)&&oe(e.reason)}function oe(e){return typeof e==`string`&&e.trim()!==``}function se(e){let t=e.indexOf(`:`);return(t===-1?e:e.slice(t+1)).split(`\\`).join(`/`)}function ce(e,t){let r=d(e,b);n(l(r),{recursive:!0});let i=[...new Set(t.findings??[])].sort(),a={};for(let e of Object.keys(t.counts??{}).sort())a[e]=t.counts[e]??0;let o=[...t.accepted??[]].sort((e,t)=>e.prefix<t.prefix?-1:+(e.prefix>t.prefix)).map(({prefix:e,reason:t})=>({prefix:e,reason:t})),c=o.length?{version:2,findings:i,counts:a,accepted:o}:{version:2,findings:i,counts:a},u=`${JSON.stringify(c,null,4)}\n`;s(r,u)}function le(e){let t=[...new Set(e.findings??[])].sort(),n=e.counts??{},r={};for(let e of Object.keys(n).sort()){let t=n[e];typeof t==`number`&&t>0&&S.some(t=>e.startsWith(t))&&(r[e]=t)}return{version:2,findings:t,counts:r,accepted:[]}}function ue(e,t,n){let r=e=>w(e)[1].split(`:`)[0]??``,i=e=>e.split(`:`)[0]??``,a=e.findings??[],o=e.counts??{},s=t.findings??[],c=t.counts??{},l=new Set(a),u={...o};for(let e of n){if(a.some(t=>r(t)===e)||Object.keys(o).some(t=>i(t)===e))throw new C(`${b} already records ${e}; adopt is only for a rule the baseline has never recorded. Fix new findings, or run --baseline-shrink after fixing old ones.`);let t=s.filter(t=>r(t)===e),n=Object.keys(c).filter(t=>i(t)===e);if(t.length===0&&n.length===0)throw new C(`nothing to adopt for ${e}: no current finding uses that rule id.`);for(let e of t)l.add(e);for(let e of n){let t=c[e];typeof t==`number`&&t>0&&S.some(t=>e.startsWith(t))&&(u[e]=t)}}let d={};for(let e of Object.keys(u).sort())d[e]=u[e]??0;return{version:2,findings:[...l].sort(),counts:d,accepted:e.accepted??[]}}function de(e,t){if(!t)return e;let n=(e.findings??[]).filter(e=>{let[n]=w(e);return t.pkgs?.has?.(n)??!1}),r={};for(let[n,i]of Object.entries(e.counts??{})){let e=n.indexOf(`:`),a=(e===-1?n:n.slice(e+1)).split(`\\`).join(`/`);(t.dirs??[]).some(e=>{let t=e.split(`\\`).join(`/`);return t===`.`||t===a||a.startsWith(`${t}/`)})&&(r[n]=i)}return{version:2,findings:n,counts:r,accepted:e.accepted??[]}}function fe(e,t){let n=new Set(e.findings??[]),r=new Set(t.findings??[]),i=[...r].filter(e=>!n.has(e)).sort(),a=[...r].filter(e=>n.has(e)).sort(),o=[...n].filter(e=>!r.has(e)).sort(),s=/* @__PURE__ */ new Set([...Object.keys(e.counts??{}),...Object.keys(t.counts??{})]),c=[],l=[],u=[];for(let n of[...s].sort()){let r=e.counts?.[n]??0,i=t.counts?.[n]??0,a={id:n,baseline:r,current:i};i>r&&c.push(a),i>0&&i<=r&&l.push(a),r>i&&u.push(a)}return{fresh:i,known:a,stale:o,over:c,within:l,fallen:u}}function pe(e,t){let n=new Set(t.findings??[]),r=[...new Set((e.findings??[]).filter(e=>n.has(e)))].sort(),i={};for(let n of Object.keys(e.counts??{}).sort()){let r=e.counts[n]??0,a=t.counts?.[n]??0,o=Math.min(r,a);o>0&&(i[n]=o)}return{version:2,findings:r,counts:i,accepted:e.accepted??[]}}function me(e,t,n,r){let i=e=>e===n||e.startsWith(`${n}/`),a=[.../* @__PURE__ */ new Set([...e.findings??[],...(t.findings??[]).filter(e=>i(w(e)[0]))])].sort(),o={...e.counts??{}};for(let[e,n]of Object.entries(t.counts??{}))S.some(t=>e.startsWith(t))&&i(se(e))&&(o[e]=Math.max(o[e]??0,n));let s={prefix:n,reason:r},c=e.accepted??[];return{version:2,findings:a,counts:o,accepted:c.some(e=>e.prefix===n)?c.map(e=>e.prefix===n?s:e):[...c,s]}}var he=e=>e.replace(/[^\n]/g,` `);function ge(e){let t=``,n=null,r=0;for(;r<e.length;){let i=e.charAt(r);if(n!==null){if(i===`\\`){t+=e.slice(r,r+2),r+=2;continue}(i===n||i===`
3
3
  `&&n!=="`")&&(n=null),t+=i,r++}else if(e.startsWith(`//`,r)){let n=e.indexOf(`
4
4
  `,r),i=n<0?e.length:n;t+=he(e.slice(r,i)),r=i}else if(e.startsWith(`/*`,r)){let n=e.indexOf(`*/`,r+2),i=n<0?e.length:n+2;t+=he(e.slice(r,i)),r=i}else(i===`"`||i===`'`||i==="`")&&(n=i),t+=i,r++}return t}var _e=`api-call`,ve=`call the operation through api("<OperationId>", request) from src/services/api/api.ts; the URL and reply type come from the generated contract`,ye=/\.(?:get|post|put|patch|delete)\s*(?:<[^<>()\n]*>)?\s*\(\s*(?:"|'|`)(?:\/|api\/)/g,be=/\)\s*:\s*Promise\s*<\s*unknown\s*>\s*(?:\{|=>)/g,xe=/* @__PURE__ */ new Set([`.js`,`.jsx`,`.ts`,`.tsx`]),Se=/\.(?:test|spec)\.[jt]sx?$/,Ce=/* @__PURE__ */ new Set([`node_modules`,`generated`,`ios`,`android`,`build`,`dist`,`coverage`,`vendor`]),we=e=>e.split(`\\`).join(`/`);function*Te(e){for(let t of i(e,{withFileTypes:!0})){if(t.name.startsWith(`.`))continue;let n=d(e,t.name);t.isDirectory()?Ce.has(t.name)||(yield*Te(n)):xe.has(u(t.name))&&!Se.test(t.name)&&(yield n)}}function Ee(e,t){return[...e.matchAll(t)].map(t=>e.slice(0,t.index).split(`
5
- `).length)}function De(e){let n=d(e,`src`);if(!t(n))return[];let i=[];for(let t of Te(n)){let a=we(m(e,t)),o=we(m(n,t)).split(`/`).slice(0,-1).includes(`services`),s=ge(r(t,`utf8`)),c=[...Ee(s,ye),...o?Ee(s,be):[]];for(let e of c)i.push([`${_e}:${a}`,`${a}:${e}: ${ve}`])}return i}var Oe=/\btsc\b[^&|;]*--noEmit/,ke=/\b(?:pnpm|npm|yarn)\s+(?:run\s+)?typecheck\b/,Ae=/\b(?:pnpm|npm)\s+(?:run\s+)?(build(?::[\w-]+)?)\b/g,je=5;function Me(e){return e===`build`||e.startsWith(`build:`)}function Ne(e,t,n){let r=e.get(t)??``;if(Oe.test(r)||ke.test(r))return!0;let i=[];for(let n of r.matchAll(Ae)){let r=n[1];r!==void 0&&r!==t&&e.has(r)&&i.push(r)}return i.length!==0&&i.every(t=>!n.includes(t)&&n.length<=je&&Ne(e,t,[...n,t]))}function Pe(e){let t;try{t=JSON.parse(r(d(e,`package.json`),`utf8`))}catch{return[]}if(typeof t!=`object`||!t||!(`scripts`in t))return[];let n=t.scripts;if(typeof n!=`object`||!n||Array.isArray(n))return[];let i=/* @__PURE__ */ new Map;for(let[e,t]of Object.entries(n))typeof t==`string`&&i.set(e,t);let a=[];for(let[e,t]of i){if(!Me(e)||Ne(i,e,[e]))continue;let n=`package.json script "${e}" runs no type check. react.md, Language: every build script runs tsc --noEmit -p . before Vite, so a type error fails the build. Change it to "tsc --noEmit -p . && ${t}".`;a.push([`build-typecheck:${e}`,n])}return a}var Fe=[``,`-top`,`-right`,`-bottom`,`-left`,`-inline`,`-inline-start`,`-inline-end`,`-block`,`-block-start`,`-block-end`],Ie=[...Fe.map(e=>`padding${e}`),...Fe.map(e=>`margin${e}`),`gap`,`row-gap`,`column-gap`,`grid-gap`,`grid-row-gap`,`grid-column-gap`,`inset`,`inset-inline`,`inset-inline-start`,`inset-inline-end`,`inset-block`,`inset-block-start`,`inset-block-end`,`border-radius`,`border-top-left-radius`,`border-top-right-radius`,`border-bottom-right-radius`,`border-bottom-left-radius`,`border-start-start-radius`,`border-start-end-radius`,`border-end-start-radius`,`border-end-end-radius`,`font`,`font-size`,`font-weight`,`line-height`],Le=[`font`,`font-weight`,`line-height`],Re=e=>e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase()),ze=[...Ie.map(Re),`paddingHorizontal`,`paddingVertical`,`paddingStart`,`paddingEnd`,`marginHorizontal`,`marginVertical`,`marginStart`,`marginEnd`,`borderTopStartRadius`,`borderTopEndRadius`,`borderBottomStartRadius`,`borderBottomEndRadius`],Be=[`color`,`background`,`background-color`,`border`,`border-color`,...[`top`,`right`,`bottom`,`left`,`inline`,`inline-start`,`inline-end`,`block`,`block-start`,`block-end`].flatMap(e=>[`border-${e}`,`border-${e}-color`]),`outline`,`outline-color`,`fill`,`stroke`,`box-shadow`,`text-shadow`,`text-decoration-color`,`caret-color`,`accent-color`,`column-rule-color`],Ve=[`transition`,`transition-duration`,`transition-timing-function`,`animation`,`animation-duration`,`animation-timing-function`],He=[...Be.map(Re),`shadowColor`,`tintColor`],Ue=[`px`,`rem`,`em`],We={primary:`primary`,secondary:`neutral`,success:`success`,info:`info`,warning:`warning`,danger:`danger`,light:`bg-subtle`,dark:`surface-inverse`},Ge={".scss":`scss`,".css":`css`,".cshtml":`markup`,".cs":`csharp`,".jsx":`script`,".tsx":`script`,".js":`script`,".ts":`script`,".html":`html`},Ke=[`.js`,`.ts`],qe=[`node_modules`,`dist`,`generated`,`vendor`,`__tests__`,`__mocks__`],Je=/^[A-Za-z][\w.]*\.Emails?$/,Ye=/\.min$/i,Xe=[`wwwroot/lib/`],Ze=[`release.json`,`manifest.json`];function Qe(e,n){for(let r=p.dirname(e);r!==`.`&&r!==`/`;r=p.dirname(r))if(Ze.every(e=>t(d(n,r,e))))return!0;return!1}var $e=`.webority/map.json`,et=/* @__PURE__ */ new Map;function tt(e){let t=e.endsWith(`/`),n=e.replace(/\/+$/,``).split(`*`).map(e=>e.replace(/[.+?^${}()|[\]\\]/g,`\\$&`)).join(`[^/]*`);return RegExp(t?`^${n}/`:`^${n}$`)}function nt(e){let n=et.get(e);if(n)return n;let i=d(e,$e),a=t(i)?JSON.parse(r(i,`utf8`)):{},o=[...(a.generated??[]).flatMap(e=>e.paths),...a.fixtures??[]].map(tt);return et.set(e,o),o}var rt=`.gitattributes`,it=/* @__PURE__ */ new Map;function at(e){let t=e.startsWith(`/`),n=t?e.slice(1):e,r=n.endsWith(`/`),i=r?n.slice(0,-1):n,a=t||i.includes(`/`)?`^`:`(?:^|/)`;for(let e=0;e<i.length;)i.startsWith(`**/`,e)?(a+=`(?:.*/)?`,e+=3):i.startsWith(`/**`,e)&&e+3===i.length?(a+=`/.*`,e+=3):i.charAt(e)===`*`?(a+=`[^/]*`,e+=1):i.charAt(e)===`?`?(a+=`[^/]`,e+=1):(a+=i.charAt(e).replace(/[.+^${}()|[\]\\]/g,`\\$&`),e+=1);return RegExp(r?`${a}/.*`:`${a}$`)}function ot(e){let n=it.get(e);if(n)return n;let i=d(e,rt),a=[];for(let e of t(i)?r(i,`utf8`).split(/\r?\n/):[]){let t=e.trim();if(t===``||t.startsWith(`#`))continue;let[n,...r]=t.split(/\s+/);if(n===void 0)continue;let i;for(let e of r){let t=/^([!-]?)linguist-(?:generated|vendored)(?:=(true|false))?$/.exec(e);t&&(i=t[1]===``&&t[2]!==`false`)}i!==void 0&&a.push({pattern:at(n),generated:i})}return it.set(e,a),a}function st(e,t){let n=!1;for(let r of ot(t))r.pattern.test(e)&&(n=r.generated);return n}function ct(e,t=null){let n=c(e);return e.split(`/`).slice(0,-1).some(e=>qe.includes(e)||Ye.test(e)||Je.test(e))||Xe.some(t=>e.toLowerCase().includes(t))||n.includes(`.generated.`)||/\.min\.(?:css|js|mjs)$/i.test(n)||/\.(?:test|spec)\.[cm]?[jt]sx?$/i.test(n)?!0:t===null?!1:Qe(e,t)||nt(t).some(t=>t.test(e))||st(e,t)}var lt=`bootstrap-ui.md → Tokens: padding, margin, gap, inset, corners, font size, font weight and line height read a space, radius, text, weight or leading token, never a literal.`,ut=`bootstrap-ui.md → Tokens: a colour is a meaning (var(--color-*) on web, theme.colors["<name>"] on phone), never a hex, rgb(), hsl() or named colour; a product-only colour goes into theme/brand.tokens.json.`,dt=`bootstrap-ui.md → Tokens: the root font size (html or :root) is the unit the type scale is measured in; never set it.`,ft=`bootstrap-ui.md → Tokens: code reads the colour meaning layer (var(--color-*) on web, theme.colors["<name>"] on phone), never a palette step or a Bootstrap theme colour.`,pt=`bootstrap-ui.md → Tokens: a transition or animation reads a motion token (var(--wui-duration-fast|default|slow), var(--wui-ease-out|in-out|ui|elastic|linear)), never a literal time or easing.`,mt=`bootstrap-ui.md → Tokens: the --wui-dark-* steps are the private dark tier and stay dark in light mode. Read the colour meaning (var(--color-*)), which switches with the theme; a dark band is a scope with data-theme="dark".`,ht=`A list row without a data-canvas key (testID on a phone) cannot be found by a Canvas check or linked to a board node.`,gt=`Two elements with the same data-canvas key (testID on a phone) make a Canvas check match the wrong one.`,_t={web:`data-canvas`,phone:`testID`},vt=Object.freeze([`high`,`critical`]),yt=/ENOTFOUND|ECONNREFUSED|ETIMEDOUT|EAI_AGAIN|\b5\d\d\b/,bt=[`pnpm`,`audit`,`--json`],xt=`The advisory service could not be reached. Check the network and push again.`;function St(e,t){return e===`win32`?{file:t,args:[_.join(_.dirname(t),`node_modules`,`corepack`,`dist`,`corepack.js`),...bt]}:{file:`corepack`,args:[...bt]}}function Ct(e,t){let n=St(process.platform,process.execPath),r=v(n.file,n.args,{cwd:t,encoding:`utf8`,maxBuffer:67108864,windowsHide:!0,timeout:6e4}),i=r.error,a=i?String(i.code??i.message):r.stderr??``;return{status:r.status,stdout:r.stdout??``,stderr:a}}function wt(){return{id:`advisory:unreachable`,message:xt}}function Tt(e){return{id:`advisory:unreadable`,message:e}}function Et(e,t={}){let{status:n,stdout:r,stderr:i}=(t.run??Ct)(bt,e),a=null;try{a=JSON.parse(r)}catch{a=null}if(typeof a!=`object`||!a)return yt.test(i)?[wt()]:[Tt(`The advisory report could not be read (exit ${n}): ${String(i||r).slice(0,200)}`)];if(a.advisories===void 0&&a.error!==void 0)return yt.test(JSON.stringify(a.error))?[wt()]:[Tt(`The advisory service returned an error: ${String(a.error?.code??a.error?.summary??`unknown`)}`)];if(a.advisories===null||typeof a.advisories!=`object`)return[Tt(`The advisory report has no advisories section.`)];let o=/* @__PURE__ */ new Map;for(let[e,t]of Object.entries(a.advisories)){if(typeof t!=`object`||!t)return[Tt(`The advisory report has an entry that is not an advisory.`)];let n=t.github_advisory_id??e,r=`advisory:${t.module_name}:${n}`,i=o.get(r);i===void 0&&(i={id:r,advisory:t,fixes:/* @__PURE__ */ new Set,installed:/* @__PURE__ */ new Set},o.set(r,i)),i.fixes.add(String(t.patched_versions));for(let e of Array.isArray(t.findings)?t.findings:[])e?.version!==void 0&&i.installed.add(String(e.version))}let s=[];for(let{id:e,advisory:t,fixes:n,installed:r}of o.values()){let i=String(t.severity??`unknown`),a=r.size>0?` Installed: ${[...r].join(`, `)}.`:``,o={id:e,message:`${i}: ${t.title} (${t.url}).${a} Fixed in ${[...n].join(` or `)}; move to a fixed version, or accept it with --baseline-accept and a reason.`};vt.includes(i.toLowerCase())||(o.warning=!0),s.push(o)}return s}var Dt=`endpoint-name`,Ot=/injectEndpoints\(|createApi\(/,kt=/\b([A-Za-z_$][\w$]*)\s*:\s*build\.(?:query|mutation|infiniteQuery)\s*(?:<[^>]*>)?\s*\(/g,At=/* @__PURE__ */ new Set([`.js`,`.jsx`,`.ts`,`.tsx`]),jt=/* @__PURE__ */ new Set([`node_modules`,`ios`,`android`,`build`,`dist`,`coverage`,`vendor`]),Mt=e=>e.split(`\\`).join(`/`);function*Nt(e){for(let t of i(e,{withFileTypes:!0})){if(t.name.startsWith(`.`))continue;let n=d(e,t.name);t.isDirectory()?jt.has(t.name)||(yield*Nt(n)):At.has(u(t.name))&&(yield n)}}function Pt(e,t){let n=ge(r(e,`utf8`));return Ot.test(n)?[...n.matchAll(kt)].map(e=>({name:e[1]??``,file:t,line:n.slice(0,e.index).split(`
5
+ `).length)}function De(e){let n=d(e,`src`);if(!t(n))return[];let i=[];for(let t of Te(n)){let a=we(m(e,t)),o=we(m(n,t)).split(`/`).slice(0,-1).includes(`services`),s=ge(r(t,`utf8`)),c=[...Ee(s,ye),...o?Ee(s,be):[]];for(let e of c)i.push([`${_e}:${a}`,`${a}:${e}: ${ve}`])}return i}var Oe=/\btsc\b[^&|;]*--noEmit/,ke=/\b(?:pnpm|npm|yarn)\s+(?:run\s+)?typecheck\b/,Ae=/\b(?:pnpm|npm)\s+(?:run\s+)?(build(?::[\w-]+)?)\b/g,je=5;function Me(e){return e===`build`||e.startsWith(`build:`)}function Ne(e,t,n){let r=e.get(t)??``;if(Oe.test(r)||ke.test(r))return!0;let i=[];for(let n of r.matchAll(Ae)){let r=n[1];r!==void 0&&r!==t&&e.has(r)&&i.push(r)}return i.length!==0&&i.every(t=>!n.includes(t)&&n.length<=je&&Ne(e,t,[...n,t]))}function Pe(e){let t;try{t=JSON.parse(r(d(e,`package.json`),`utf8`))}catch{return[]}if(typeof t!=`object`||!t||!(`scripts`in t))return[];let n=t.scripts;if(typeof n!=`object`||!n||Array.isArray(n))return[];let i=/* @__PURE__ */ new Map;for(let[e,t]of Object.entries(n))typeof t==`string`&&i.set(e,t);let a=[];for(let[e,t]of i){if(!Me(e)||Ne(i,e,[e]))continue;let n=`package.json script "${e}" runs no type check. react.md, Language: every build script runs tsc --noEmit -p . before Vite, so a type error fails the build. Change it to "tsc --noEmit -p . && ${t}".`;a.push([`build-typecheck:${e}`,n])}return a}var Fe=[``,`-top`,`-right`,`-bottom`,`-left`,`-inline`,`-inline-start`,`-inline-end`,`-block`,`-block-start`,`-block-end`],Ie=[...Fe.map(e=>`padding${e}`),...Fe.map(e=>`margin${e}`),`gap`,`row-gap`,`column-gap`,`grid-gap`,`grid-row-gap`,`grid-column-gap`,`inset`,`border-radius`,`border-top-left-radius`,`border-top-right-radius`,`border-bottom-right-radius`,`border-bottom-left-radius`,`border-start-start-radius`,`border-start-end-radius`,`border-end-start-radius`,`border-end-end-radius`,`font`,`font-size`,`font-weight`,`line-height`],Le=[`font`,`font-weight`,`line-height`],Re=e=>e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase()),ze=[...Ie.map(Re),`paddingHorizontal`,`paddingVertical`,`paddingStart`,`paddingEnd`,`marginHorizontal`,`marginVertical`,`marginStart`,`marginEnd`,`borderTopStartRadius`,`borderTopEndRadius`,`borderBottomStartRadius`,`borderBottomEndRadius`],Be=[`color`,`background`,`background-color`,`border`,`border-color`,...[`top`,`right`,`bottom`,`left`,`inline`,`inline-start`,`inline-end`,`block`,`block-start`,`block-end`].flatMap(e=>[`border-${e}`,`border-${e}-color`]),`outline`,`outline-color`,`fill`,`stroke`,`box-shadow`,`text-shadow`,`text-decoration-color`,`caret-color`,`accent-color`,`column-rule-color`],Ve=[`transition`,`transition-duration`,`transition-timing-function`,`animation`,`animation-duration`,`animation-timing-function`],He=[...Be.map(Re),`shadowColor`,`tintColor`],Ue=[`px`,`rem`,`em`],We={primary:`primary`,secondary:`neutral`,success:`success`,info:`info`,warning:`warning`,danger:`danger`,light:`bg-subtle`,dark:`surface-inverse`},Ge={".scss":`scss`,".css":`css`,".cshtml":`markup`,".cs":`csharp`,".jsx":`script`,".tsx":`script`,".js":`script`,".ts":`script`,".html":`html`},Ke=[`.js`,`.ts`],qe=[`node_modules`,`dist`,`generated`,`vendor`,`__tests__`,`__mocks__`],Je=/^[A-Za-z][\w.]*\.Emails?$/,Ye=/\.min$/i,Xe=[`wwwroot/lib/`],Ze=[`release.json`,`manifest.json`];function Qe(e,n){for(let r=p.dirname(e);r!==`.`&&r!==`/`;r=p.dirname(r))if(Ze.every(e=>t(d(n,r,e))))return!0;return!1}var $e=`.webority/map.json`,et=/* @__PURE__ */ new Map;function tt(e){let t=e.endsWith(`/`),n=e.replace(/\/+$/,``).split(`*`).map(e=>e.replace(/[.+?^${}()|[\]\\]/g,`\\$&`)).join(`[^/]*`);return RegExp(t?`^${n}/`:`^${n}$`)}function nt(e){let n=et.get(e);if(n)return n;let i=d(e,$e),a=t(i)?JSON.parse(r(i,`utf8`)):{},o=[...(a.generated??[]).flatMap(e=>e.paths),...a.fixtures??[]].map(tt);return et.set(e,o),o}var rt=`.gitattributes`,it=/* @__PURE__ */ new Map;function at(e){let t=e.startsWith(`/`),n=t?e.slice(1):e,r=n.endsWith(`/`),i=r?n.slice(0,-1):n,a=t||i.includes(`/`)?`^`:`(?:^|/)`;for(let e=0;e<i.length;)i.startsWith(`**/`,e)?(a+=`(?:.*/)?`,e+=3):i.startsWith(`/**`,e)&&e+3===i.length?(a+=`/.*`,e+=3):i.charAt(e)===`*`?(a+=`[^/]*`,e+=1):i.charAt(e)===`?`?(a+=`[^/]`,e+=1):(a+=i.charAt(e).replace(/[.+^${}()|[\]\\]/g,`\\$&`),e+=1);return RegExp(r?`${a}/.*`:`${a}$`)}function ot(e){let n=it.get(e);if(n)return n;let i=d(e,rt),a=[];for(let e of t(i)?r(i,`utf8`).split(/\r?\n/):[]){let t=e.trim();if(t===``||t.startsWith(`#`))continue;let[n,...r]=t.split(/\s+/);if(n===void 0)continue;let i;for(let e of r){let t=/^([!-]?)linguist-(?:generated|vendored)(?:=(true|false))?$/.exec(e);t&&(i=t[1]===``&&t[2]!==`false`)}i!==void 0&&a.push({pattern:at(n),generated:i})}return it.set(e,a),a}function st(e,t){let n=!1;for(let r of ot(t))r.pattern.test(e)&&(n=r.generated);return n}function ct(e,t=null){let n=c(e);return e.split(`/`).slice(0,-1).some(e=>qe.includes(e)||Ye.test(e)||Je.test(e))||Xe.some(t=>e.toLowerCase().includes(t))||n.includes(`.generated.`)||/\.min\.(?:css|js|mjs)$/i.test(n)||/\.(?:test|spec)\.[cm]?[jt]sx?$/i.test(n)?!0:t===null?!1:Qe(e,t)||nt(t).some(t=>t.test(e))||st(e,t)}var lt=`bootstrap-ui.md → Tokens: padding, margin, gap, inset, corners, font size, font weight and line height read a space, radius, text, weight or leading token, never a literal.`,ut=`bootstrap-ui.md → Tokens: a colour is a meaning (var(--color-*) on web, theme.colors["<name>"] on phone), never a hex, rgb(), hsl() or named colour; a product-only colour goes into theme/brand.tokens.json.`,dt=`bootstrap-ui.md → Tokens: the root font size (html or :root) is the unit the type scale is measured in; never set it.`,ft=`bootstrap-ui.md → Tokens: code reads the colour meaning layer (var(--color-*) on web, theme.colors["<name>"] on phone), never a palette step or a Bootstrap theme colour.`,pt=`bootstrap-ui.md → Tokens: a transition or animation reads a motion token (var(--wui-duration-fast|default|slow), var(--wui-ease-out|in-out|ui|elastic|linear)), never a literal time or easing.`,mt=`bootstrap-ui.md → Tokens: the --wui-dark-* steps are the private dark tier and stay dark in light mode. Read the colour meaning (var(--color-*)), which switches with the theme; a dark band is a scope with data-theme="dark".`,ht=`A list row without a data-canvas key (testID on a phone) cannot be found by a Canvas check or linked to a board node.`,gt=`Two elements with the same data-canvas key (testID on a phone) make a Canvas check match the wrong one.`,_t={web:`data-canvas`,phone:`testID`},vt=Object.freeze([`high`,`critical`]),yt=/ENOTFOUND|ECONNREFUSED|ETIMEDOUT|EAI_AGAIN|\b5\d\d\b/,bt=[`pnpm`,`audit`,`--json`],xt=`The advisory service could not be reached. Check the network and push again.`;function St(e,t){return e===`win32`?{file:t,args:[_.join(_.dirname(t),`node_modules`,`corepack`,`dist`,`corepack.js`),...bt]}:{file:`corepack`,args:[...bt]}}function Ct(e,t){let n=St(process.platform,process.execPath),r=v(n.file,n.args,{cwd:t,encoding:`utf8`,maxBuffer:67108864,windowsHide:!0,timeout:6e4}),i=r.error,a=i?String(i.code??i.message):r.stderr??``;return{status:r.status,stdout:r.stdout??``,stderr:a}}function wt(){return{id:`advisory:unreachable`,message:xt}}function Tt(e){return{id:`advisory:unreadable`,message:e}}function Et(e,t={}){let{status:n,stdout:r,stderr:i}=(t.run??Ct)(bt,e),a=null;try{a=JSON.parse(r)}catch{a=null}if(typeof a!=`object`||!a)return yt.test(i)?[wt()]:[Tt(`The advisory report could not be read (exit ${n}): ${String(i||r).slice(0,200)}`)];if(a.advisories===void 0&&a.error!==void 0)return yt.test(JSON.stringify(a.error))?[wt()]:[Tt(`The advisory service returned an error: ${String(a.error?.code??a.error?.summary??`unknown`)}`)];if(a.advisories===null||typeof a.advisories!=`object`)return[Tt(`The advisory report has no advisories section.`)];let o=/* @__PURE__ */ new Map;for(let[e,t]of Object.entries(a.advisories)){if(typeof t!=`object`||!t)return[Tt(`The advisory report has an entry that is not an advisory.`)];let n=t.github_advisory_id??e,r=`advisory:${t.module_name}:${n}`,i=o.get(r);i===void 0&&(i={id:r,advisory:t,fixes:/* @__PURE__ */ new Set,installed:/* @__PURE__ */ new Set},o.set(r,i)),i.fixes.add(String(t.patched_versions));for(let e of Array.isArray(t.findings)?t.findings:[])e?.version!==void 0&&i.installed.add(String(e.version))}let s=[];for(let{id:e,advisory:t,fixes:n,installed:r}of o.values()){let i=String(t.severity??`unknown`),a=r.size>0?` Installed: ${[...r].join(`, `)}.`:``,o={id:e,message:`${i}: ${t.title} (${t.url}).${a} Fixed in ${[...n].join(` or `)}; move to a fixed version, or accept it with --baseline-accept and a reason.`};vt.includes(i.toLowerCase())||(o.warning=!0),s.push(o)}return s}var Dt=`endpoint-name`,Ot=/injectEndpoints\(|createApi\(/,kt=/\b([A-Za-z_$][\w$]*)\s*:\s*build\.(?:query|mutation|infiniteQuery)\s*(?:<[^>]*>)?\s*\(/g,At=/* @__PURE__ */ new Set([`.js`,`.jsx`,`.ts`,`.tsx`]),jt=/* @__PURE__ */ new Set([`node_modules`,`ios`,`android`,`build`,`dist`,`coverage`,`vendor`]),Mt=e=>e.split(`\\`).join(`/`);function*Nt(e){for(let t of i(e,{withFileTypes:!0})){if(t.name.startsWith(`.`))continue;let n=d(e,t.name);t.isDirectory()?jt.has(t.name)||(yield*Nt(n)):At.has(u(t.name))&&(yield n)}}function Pt(e,t){let n=ge(r(e,`utf8`));return Ot.test(n)?[...n.matchAll(kt)].map(e=>({name:e[1]??``,file:t,line:n.slice(0,e.index).split(`
6
6
  `).length})):[]}function Ft(e){let n=d(e,`src`);if(!t(n))return[];let r=/* @__PURE__ */ new Map;for(let t of Nt(n))for(let n of Pt(t,Mt(m(e,t)))){let e=r.get(n.name)??[];e.push(n),r.set(n.name,e)}return[...r.keys()].sort().filter(e=>(r.get(e)??[]).length>1).map(e=>{let t=(r.get(e)??[]).map(e=>`${e.file}:${e.line}`).join(`, `);return[`${Dt}:${e}`,`RTK Query endpoint "${e}" is defined more than once: ${t}. RTK Query keeps only one, so the other screen calls the wrong URL. Rename each copy by appending the PascalCase file stem without "Api" (react-native.md -> RTK Query).`]})}var It=`# Fast only. The expensive verification is \`corepack pnpm check\`, run by hand before pushing
7
7
  # (CLAUDE.md -> Before pushing). A slow pre-commit gets bypassed within a day, and a hook people bypass is worse than none because
8
8
  # it manufactures confidence without providing it.
@@ -74,7 +74,7 @@ fi
74
74
  `?`
75
75
  `:` `;r=o}return n}function $n(e,t){let n=[0];for(let t=0;t<e.length;t+=1)e[t]===`
76
76
  `&&n.push(t+1);let r=t.split(`
77
- `);return e=>{let t=0,i=n.length-1;for(;t<i;){let r=t+i+1>>1,a=n[r];if(a===void 0)throw Error(`webority-repo-checks: a line start is missing.`);a<=e?t=r:i=r-1}return{line:t+1,text:(r[t]??``).trim().slice(0,160)}}}var er=[...Ie].sort((e,t)=>t.length-e.length).join(`|`),tr=RegExp(`(?<![\\w$@.#-])(${er})\\s*:(?!:)([^;{}"\\n]*)`,`gi`),nr=new Set(`aliceblue antiquewhite aqua aquamarine azure beige bisque black blanchedalmond blue blueviolet brown burlywood cadetblue chartreuse chocolate coral cornflowerblue cornsilk crimson cyan darkblue darkcyan darkgoldenrod darkgray darkgreen darkgrey darkkhaki darkmagenta darkolivegreen darkorange darkorchid darkred darksalmon darkseagreen darkslateblue darkslategray darkslategrey darkturquoise darkviolet deeppink deepskyblue dimgray dimgrey dodgerblue firebrick floralwhite forestgreen fuchsia gainsboro ghostwhite gold goldenrod gray green greenyellow grey honeydew hotpink indianred indigo ivory khaki lavender lavenderblush lawngreen lemonchiffon lightblue lightcoral lightcyan lightgoldenrodyellow lightgray lightgreen lightgrey lightpink lightsalmon lightseagreen lightskyblue lightslategray lightslategrey lightsteelblue lightyellow lime limegreen linen magenta maroon mediumaquamarine mediumblue mediumorchid mediumpurple mediumseagreen mediumslateblue mediumspringgreen mediumturquoise mediumvioletred midnightblue mintcream mistyrose moccasin navajowhite navy oldlace olive olivedrab orange orangered orchid palegoldenrod palegreen paleturquoise palevioletred papayawhip peachpuff peru pink plum powderblue purple rebeccapurple red rosybrown royalblue saddlebrown salmon sandybrown seagreen seashell sienna silver skyblue slateblue slategray slategrey snow springgreen steelblue tan teal thistle tomato turquoise violet wheat white whitesmoke yellow yellowgreen`.split(` `)),rr=/(?<![\w&-])#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})(?![0-9a-f\w-])/,ir=/\b(?:rgba?|hsla?)\(\s*[-.\d]/,ar=/(?<![\w$@#.-])[a-z]+(?![\w-])/g,or=/(?<![\w&-])#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)(?![0-9a-f\w-])/g,sr=/\b(?:rgba?|hsla?)\(([^()]*)\)/g,cr=/^(?:0+(?:\.0*)?|\.0+)%?$/;function lr(e){let t=e.split(`/`);if(t.length===2)return cr.test((t[1]??``).trim());let n=e.split(`,`);return n.length===4&&cr.test((n[3]??``).trim())}var ur=[...Be].sort((e,t)=>t.length-e.length).join(`|`),dr=RegExp(`(?<![\\w$@.#-])(${ur})\\s*:(?!:)([^;{}"\\n]*)`,`gi`),fr=/var\(\s*--wui-([a-z0-9-]+)\s*[,)]/g,pr=Object.keys(We).join(`|`),mr=RegExp(`var\\(\\s*--bs-(${pr})(?:-rgb)?\\s*[,)]`,`g`),hr=RegExp(`(?<![\\w$-])\\$(${pr})(?![\\w-])`,`g`),gr={"palette-read":0,"dark-read":1,"raw-colour":2,"raw-measure":3,"root-font-size":4,"raw-motion":5};function _r(e,t){let n=0,r=-1;for(let i=t-1;i>=0;--i){let t=e.charAt(i);if(t===`}`)n+=1;else if(t===`{`){if(n===0){r=i;break}--n}}if(r===-1)return null;let i=r-1;for(;i>=0&&!`{};`.includes(e.charAt(i));)--i;return e.slice(i+1,r).replace(/^[\s\S]*<style\b[^>]*>/i,``).replace(/^\s*@@/,`@`).trim()}function vr(e,t){return _r(e,t)?.toLowerCase()===`@font-face`}function yr(e,t){let n=_r(e,t);return n!==null&&n.split(`,`).some(e=>{let t=e.trim().toLowerCase();return t===`html`||t===`:root`||/^(?:html|:root)(?:\[|:|\.)/.test(t)})}function br(e,t){let n=T(e,t),r=$n(n,e),i=[];for(let e of n.matchAll(tr)){let t=(e[1]??``).toLowerCase();xr(t,e[2]??``)&&!vr(n,e.index)&&i.push({rule:`raw-measure`,...r(e.index),hint:null}),(t===`font-size`||t===`font`)&&yr(n,e.index)&&i.push({rule:`root-font-size`,...r(e.index),hint:null})}for(let e of n.matchAll(dr))Sr(e[2]??``)&&i.push({rule:`raw-colour`,...r(e.index),hint:`read a meaning: var(--color-<name>); a product-only colour goes into theme/brand.tokens.json`});for(let e of n.matchAll(fr)){let t=e[1]??``;Bn.has(t)&&i.push({rule:Yn(t)?`dark-read`:`palette-read`,...r(e.index),hint:Yn(t)?Xn(t):Kn(t,`web`)})}for(let e of n.matchAll(mr))i.push({rule:`palette-read`,...r(e.index),hint:Jn(e[1]??``)});if(t===`scss`)for(let e of n.matchAll(hr)){let t=e.index+e[0].length;for(;t<n.length&&/\s/.test(n.charAt(t));)t+=1;n[t]!==`:`&&(RegExp(`\\$${e[1]}\\s*:\\s*$`).test(n.slice(0,e.index))||i.push({rule:`palette-read`,...r(e.index),hint:Jn(e[1]??``)}))}return i.push(...Pn(n,r)),i.sort((e,t)=>e.line-t.line||(gr[e.rule]??0)-(gr[t.rule]??0)),i}function xr(e,t){let n=t.replace(/!important/gi,``).replace(/var\(\s*--[\w-]+/g,`var(`).replace(/\$[\w-]+/g,`$v`);for(let t of n.matchAll(/(?<![\w.#$@-])-?(?:\d+(?:\.\d+)?|\.\d+)([a-zA-Z%]*)/g)){if(parseFloat(t[0])===0)continue;let r=(t[1]??``).toLowerCase();if(Ue.includes(r))return!0;if(r===``&&Le.includes(e)){let r=t.index-1;for(;r>=0&&/\s/.test(n.charAt(r));)--r;let i=t.index+t[0].length;for(;i<n.length&&/\s/.test(n.charAt(i));)i+=1;let a=r>=0?n.charAt(r):``,o=i<n.length?n.charAt(i):``;if(a===`*`||o===`*`||(a===`/`||o===`/`)&&e!==`font`)continue;return!0}}return!1}function Sr(e){let t=e.replace(/url\([^)]*\)/gi,`url()`).replace(/(["'])(?:\\.|(?!\1).)*\1/g,`""`).replace(/var\(\s*--[\w-]+/g,`var(`).replace(/!important/gi,``).toLowerCase().replace(or,``).replace(sr,(e,t)=>lr(t)?``:e);if(rr.test(t)||ir.test(t))return!0;for(let e of t.matchAll(ar))if(nr.has(e[0]))return!0;return!1}var Cr=/(?:\bfrom\s*|\brequire\(\s*|\bimport\s*)["']react-native["']/,wr=[...ze].sort((e,t)=>t.length-e.length),Tr=[...ze,...Ie].sort((e,t)=>t.length-e.length),Er=wr.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),Dr=Tr.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),Or=RegExp(`(?<![\\w$.])(?:(${Er})|(["'])(${Dr})\\2)\\s*:(?!:)`,`g`),kr=[...He].sort((e,t)=>t.length-e.length),Ar=[...He,...He.map(ti)].sort((e,t)=>t.length-e.length),jr=kr.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),Mr=Ar.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),Nr=RegExp(`(?<![\\w$.])(?:(${jr})|(["'])(${Mr})\\2)\\s*:(?!:)`,`g`),Pr={"palette-read":0,"dark-read":1,"raw-colour":2,"raw-measure":3,"root-font-size":4},Fr=Object.keys(We).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),Ir=RegExp(`var\\(\\s*--bs-(${Fr})(?:-rgb)?\\s*[,)]`,`g`),Lr=/var\(\s*--wui-([a-z0-9-]+)\s*[,)]/g,Rr=/(?<![\w$])palette\s*(?:\?\.|\.|\[)/g,zr=/(?<![\w$.])-?(?:\d+(?:\.\d+)?|\.\d+)(?![\w.])/g,Br=`read a meaning: theme.colors["<name>"] on phone, var(--color-<name>) on web; a product-only colour goes into theme/brand.tokens.json`,Vr=`${Br}. react-native.md: colours come from useTheme()`,Hr=/(["'`])((?:\\.|(?!\1)[^\\\n])*)\1/g,Ur=/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,Wr=/^(?:rgba?|hsla?)\(.*\)$/i,Gr=/(?<![\w$.])(?:color|[A-Za-z]+Color)\s*=\s*$/;function Kr(e){return Cr.test(e)}function qr(e,{phone:t,colourLiterals:n=!1}){let{blanked:r,lineStarts:i}=Jr(e),a=[],o=[];return Zr(r,i,e,a),Qr(r,i,e,a,o,t),ii(r,i,e,a),ai(r,i,e,a),ci(r,i,e,a),t&&li(r,i,e,a),n&&$r(r,i,e,a,o),a.sort((e,t)=>e.line-t.line||(Pr[e.rule]??0)-(Pr[t.rule]??0)),a}function Jr(e){let t=[],n=[0],r=0,i=!1,a=!1,o=!1,s=!1,c=!1,l=`code`,u=!1,d=0,f=[];for(;r<e.length;){let p=e.charAt(r),m=e.charAt(r+1);if(s)p===`
77
+ `);return e=>{let t=0,i=n.length-1;for(;t<i;){let r=t+i+1>>1,a=n[r];if(a===void 0)throw Error(`webority-repo-checks: a line start is missing.`);a<=e?t=r:i=r-1}return{line:t+1,text:(r[t]??``).trim().slice(0,160)}}}var er=[...Ie].sort((e,t)=>t.length-e.length).join(`|`),tr=RegExp(`(?<![\\w$@.#-])(${er})\\s*:(?!:)([^;{}"\\n]*)`,`gi`),nr=new Set(`aliceblue antiquewhite aqua aquamarine azure beige bisque black blanchedalmond blue blueviolet brown burlywood cadetblue chartreuse chocolate coral cornflowerblue cornsilk crimson cyan darkblue darkcyan darkgoldenrod darkgray darkgreen darkgrey darkkhaki darkmagenta darkolivegreen darkorange darkorchid darkred darksalmon darkseagreen darkslateblue darkslategray darkslategrey darkturquoise darkviolet deeppink deepskyblue dimgray dimgrey dodgerblue firebrick floralwhite forestgreen fuchsia gainsboro ghostwhite gold goldenrod gray green greenyellow grey honeydew hotpink indianred indigo ivory khaki lavender lavenderblush lawngreen lemonchiffon lightblue lightcoral lightcyan lightgoldenrodyellow lightgray lightgreen lightgrey lightpink lightsalmon lightseagreen lightskyblue lightslategray lightslategrey lightsteelblue lightyellow lime limegreen linen magenta maroon mediumaquamarine mediumblue mediumorchid mediumpurple mediumseagreen mediumslateblue mediumspringgreen mediumturquoise mediumvioletred midnightblue mintcream mistyrose moccasin navajowhite navy oldlace olive olivedrab orange orangered orchid palegoldenrod palegreen paleturquoise palevioletred papayawhip peachpuff peru pink plum powderblue purple rebeccapurple red rosybrown royalblue saddlebrown salmon sandybrown seagreen seashell sienna silver skyblue slateblue slategray slategrey snow springgreen steelblue tan teal thistle tomato turquoise violet wheat white whitesmoke yellow yellowgreen`.split(` `)),rr=/(?<![\w&-])#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})(?![0-9a-f\w-])/,ir=/\b(?:rgba?|hsla?)\(\s*[-.\d]/,ar=/(?<![\w$@#.-])[a-z]+(?![\w-])/g,or=/(?<![\w&-])#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)(?![0-9a-f\w-])/g,sr=/\b(?:rgba?|hsla?)\(([^()]*)\)/g,cr=/^(?:0+(?:\.0*)?|\.0+)%?$/;function lr(e){let t=e.split(`/`);if(t.length===2)return cr.test((t[1]??``).trim());let n=e.split(`,`);return n.length===4&&cr.test((n[3]??``).trim())}var ur=[...Be].sort((e,t)=>t.length-e.length).join(`|`),dr=RegExp(`(?<![\\w$@.#-])(${ur})\\s*:(?!:)([^;{}"\\n]*)`,`gi`),fr=/var\(\s*--wui-([a-z0-9-]+)\s*[,)]/g,pr=Object.keys(We).join(`|`),mr=RegExp(`var\\(\\s*--bs-(${pr})(?:-rgb)?\\s*[,)]`,`g`),hr=RegExp(`(?<![\\w$-])\\$(${pr})(?![\\w-])`,`g`),gr={"palette-read":0,"dark-read":1,"raw-colour":2,"raw-measure":3,"root-font-size":4,"raw-motion":5};function _r(e,t){let n=0,r=-1;for(let i=t-1;i>=0;--i){let t=e.charAt(i);if(t===`}`)n+=1;else if(t===`{`){if(n===0){r=i;break}--n}}if(r===-1)return null;let i=r-1;for(;i>=0&&!`{};`.includes(e.charAt(i));)--i;return e.slice(i+1,r).replace(/^[\s\S]*<style\b[^>]*>/i,``).replace(/^\s*@@/,`@`).trim()}function vr(e,t){return _r(e,t)?.toLowerCase()===`@font-face`}var yr=/^[A-Za-z_$][\w$.]*\s*\(/,br=/^(?:var|calc|clamp|min|max|env|round|mod|rem|fit-content|minmax|repeat|attr)\s*\(/i;function xr(e){let t=e.trim();return yr.test(t)&&!br.test(t)}function Sr(e,t){let n=_r(e,t);return n!==null&&n.split(`,`).some(e=>{let t=e.trim().toLowerCase();return t===`html`||t===`:root`||/^(?:html|:root)(?:\[|:|\.)/.test(t)})}function Cr(e,t){let n=T(e,t),r=$n(n,e),i=[];for(let e of n.matchAll(tr)){let t=(e[1]??``).toLowerCase(),a=e[2]??``;wr(t,a)&&!vr(n,e.index)&&!xr(a)&&i.push({rule:`raw-measure`,...r(e.index),hint:null}),(t===`font-size`||t===`font`)&&Sr(n,e.index)&&i.push({rule:`root-font-size`,...r(e.index),hint:null})}for(let e of n.matchAll(dr))Tr(e[2]??``)&&i.push({rule:`raw-colour`,...r(e.index),hint:`read a meaning: var(--color-<name>); a product-only colour goes into theme/brand.tokens.json`});for(let e of n.matchAll(fr)){let t=e[1]??``;Bn.has(t)&&i.push({rule:Yn(t)?`dark-read`:`palette-read`,...r(e.index),hint:Yn(t)?Xn(t):Kn(t,`web`)})}for(let e of n.matchAll(mr))i.push({rule:`palette-read`,...r(e.index),hint:Jn(e[1]??``)});if(t===`scss`)for(let e of n.matchAll(hr)){let t=e.index+e[0].length;for(;t<n.length&&/\s/.test(n.charAt(t));)t+=1;n[t]!==`:`&&(RegExp(`\\$${e[1]}\\s*:\\s*$`).test(n.slice(0,e.index))||i.push({rule:`palette-read`,...r(e.index),hint:Jn(e[1]??``)}))}return i.push(...Pn(n,r)),i.sort((e,t)=>e.line-t.line||(gr[e.rule]??0)-(gr[t.rule]??0)),i}function wr(e,t){let n=t.replace(/!important/gi,``).replace(/var\(\s*--[\w-]+/g,`var(`).replace(/\$[\w-]+/g,`$v`);for(let t of n.matchAll(/(?<![\w.#$@-])-?(?:\d+(?:\.\d+)?|\.\d+)([a-zA-Z%]*)/g)){if(parseFloat(t[0])===0)continue;let r=(t[1]??``).toLowerCase();if(Ue.includes(r))return!0;if(r===``&&Le.includes(e)){let r=t.index-1;for(;r>=0&&/\s/.test(n.charAt(r));)--r;let i=t.index+t[0].length;for(;i<n.length&&/\s/.test(n.charAt(i));)i+=1;let a=r>=0?n.charAt(r):``,o=i<n.length?n.charAt(i):``;if(a===`*`||o===`*`||(a===`/`||o===`/`)&&e!==`font`)continue;return!0}}return!1}function Tr(e){let t=e.replace(/url\([^)]*\)/gi,`url()`).replace(/(["'])(?:\\.|(?!\1).)*\1/g,`""`).replace(/var\(\s*--[\w-]+/g,`var(`).replace(/!important/gi,``).toLowerCase().replace(or,``).replace(sr,(e,t)=>lr(t)?``:e);if(rr.test(t)||ir.test(t))return!0;for(let e of t.matchAll(ar))if(nr.has(e[0]))return!0;return!1}var Er=/(?:\bfrom\s*|\brequire\(\s*|\bimport\s*)["']react-native["']/,Dr=[...ze].sort((e,t)=>t.length-e.length),Or=[...ze,...Ie].sort((e,t)=>t.length-e.length),kr=Dr.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),Ar=Or.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),jr=RegExp(`(?<![\\w$.])(?:(${kr})|(["'])(${Ar})\\2)\\s*:(?!:)`,`g`),Mr=[...He].sort((e,t)=>t.length-e.length),Nr=[...He,...He.map(ii)].sort((e,t)=>t.length-e.length),Pr=Mr.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),Fr=Nr.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),Ir=RegExp(`(?<![\\w$.])(?:(${Pr})|(["'])(${Fr})\\2)\\s*:(?!:)`,`g`),Lr={"palette-read":0,"dark-read":1,"raw-colour":2,"raw-measure":3,"root-font-size":4},Rr=Object.keys(We).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),zr=RegExp(`var\\(\\s*--bs-(${Rr})(?:-rgb)?\\s*[,)]`,`g`),Br=/var\(\s*--wui-([a-z0-9-]+)\s*[,)]/g,Vr=/(?<![\w$])palette\s*(?:\?\.|\.|\[)/g,Hr=/(?<![\w$.])-?(?:\d+(?:\.\d+)?|\.\d+)(?![\w.])/g,Ur=`read a meaning: theme.colors["<name>"] on phone, var(--color-<name>) on web; a product-only colour goes into theme/brand.tokens.json`,Wr=`${Ur}. react-native.md: colours come from useTheme()`,Gr=/(["'`])((?:\\.|(?!\1)[^\\\n])*)\1/g,Kr=/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,qr=/^(?:rgba?|hsla?)\(.*\)$/i,Jr=/(?<![\w$.])(?:color|[A-Za-z]+Color)\s*=\s*$/;function Yr(e){return Er.test(e)}function Xr(e,{phone:t,colourLiterals:n=!1}){let{blanked:r,lineStarts:i}=Zr(e),a=[],o=[];return ei(r,i,e,a),ti(r,i,e,a,o,t),si(r,i,e,a),ci(r,i,e,a),di(r,i,e,a),t&&fi(r,i,e,a),n&&ni(r,i,e,a,o),a.sort((e,t)=>e.line-t.line||(Lr[e.rule]??0)-(Lr[t.rule]??0)),a}function Zr(e){let t=[],n=[0],r=0,i=!1,a=!1,o=!1,s=!1,c=!1,l=`code`,u=!1,d=0,f=[];for(;r<e.length;){let p=e.charAt(r),m=e.charAt(r+1);if(s)p===`
78
78
  `?(s=!1,t.push(p),n.push(t.length)):t.push(` `),r++;else if(c)p===`*`&&m===`/`?(c=!1,t.push(` `,` `),r+=2):(p===`
79
79
  `?(t.push(p),n.push(t.length)):t.push(` `),r++);else if(i)t.push(p),p===`
80
80
  `&&(n.push(t.length),i=!1),p===`\\`?(t.push(e.charAt(r+1)),e.charAt(r+1)===`
@@ -82,19 +82,19 @@ fi
82
82
  `&&(n.push(t.length),a=!1),p===`\\`?(t.push(e.charAt(r+1)),e.charAt(r+1)===`
83
83
  `&&n.push(t.length),r+=2):(p===`"`&&(a=!1),r++);else if(o)t.push(p),p===`
84
84
  `&&n.push(t.length),p===`\\`?(t.push(e.charAt(r+1)),e.charAt(r+1)===`
85
- `&&n.push(t.length),r+=2):(p==="`"&&(o=!1),r++);else if(p===`/`&&m===`/`&&l!==`text`)s=!0,t.push(` `,` `),r+=2;else if(p===`/`&&m===`*`&&l!==`text`)c=!0,t.push(` `,` `),r+=2;else if(l===`text`&&(p===`'`||p===`"`||p==="`"))t.push(` `),r++;else if(p===`'`)i=!0,t.push(p),r++;else if(p===`"`)a=!0,t.push(p),r++;else if(p==="`")o=!0,t.push(p),r++;else{if(p===`<`&&l!==`tag`){let n=m===`/`,i=n?e.charAt(r+2):m;if(i!==void 0&&/[A-Za-z_$>]/.test(i)&&(l===`text`||!Yr(t))){l=`tag`,u=n,t.push(p),r++;continue}}p===`>`&&l===`tag`?(u?d=Math.max(0,d-1):Xr(t)!==`/`&&d++,l=d>0?`text`:`code`):p===`{`?(f.push(l),l=`code`):p===`}`&&f.length>0&&(l=f.pop()??`code`),t.push(p),p===`
86
- `&&n.push(t.length),r++}}return{blanked:t.join(``),lineStarts:n}}function Yr(e){let t=e.slice(-16).join(``).trimEnd();return!/(?:^|[^\w$])(?:return|yield|await|case|default|else|typeof|in|of)$/.test(t)&&/[\w$)\]]$/.test(t)}function Xr(e){for(let t=e.length-1;t>=0;t--){let n=e[t]??``;if(!/\s/.test(n))return n}return``}function E(e,t){let n=0,r=t.length-1;for(;n<=r;){let i=n+r>>1,a=t[i];if(a===void 0)throw Error(`webority-repo-checks: a line start is missing.`);a<=e?n=i+1:r=i-1}return r+1}function D(e,t){let n=e.split(`
87
- `);return t>=1&&t<=n.length?(n[t-1]??``).trim().slice(0,160):``}function Zr(e,t,n,r){for(let i of e.matchAll(Or)){let a=i.index,o=a-1;for(;o>=0&&/\s/.test(e.charAt(o));)o--;if(o<0||e[o]!==`{`&&e[o]!==`,`)continue;let s=i[1],c=i[3],l=s||c||``,u=!!c,d=i.index+i[0].length-1+1,f=ei(e,d);if(f!==-1&&ni(e.slice(d,f),u?l:ti(l))){let e=E(a,t);r.push({rule:`raw-measure`,line:e,text:D(n,e),hint:null})}}}function Qr(e,t,n,r,i,a){Nr.lastIndex=0;for(let o of e.matchAll(Nr)){let s=o.index,c=s-1;for(;c>=0&&/\s/.test(e.charAt(c));)c--;if(c<0||e[c]!==`{`&&e[c]!==`,`)continue;let l=o.index+o[0].length-1+1,u=ei(e,l);if(u===-1)continue;let d=e.slice(l,u);if(i.push([l,u]),!ri(d).some(({content:e})=>Sr(e)))continue;let f=E(s,t);r.push({rule:`raw-colour`,line:f,text:D(n,f),hint:a?Vr:Br})}}function $r(e,t,n,r,i){Hr.lastIndex=0;for(let a of e.matchAll(Hr)){let o=a.index;if(i.some(([e,t])=>o>=e&&o<t))continue;let s=a[2]??``;if(a[1]==="`"&&s.includes("${"))continue;let c=Ur.test(s)||Wr.test(s),l=Gr.test(e.slice(Math.max(0,o-40),o));if(!(c||l)||!Sr(s))continue;let u=E(o,t);r.push({rule:`raw-colour`,line:u,text:D(n,u),hint:Vr})}}function ei(e,t){let n=0,r=t,i=!1,a=!1,o=!1;for(;r<e.length;){let t=e.charAt(r);if(i)t===`\\`?r+=2:(t===`'`&&(i=!1),r++);else if(a)t===`\\`?r+=2:(t===`"`&&(a=!1),r++);else if(o)t===`\\`?r+=2:(t==="`"&&(o=!1),r++);else if(t===`'`)i=!0,r++;else if(t===`"`)a=!0,r++;else if(t==="`")o=!0,r++;else if(t===`(`||t===`[`||t===`{`)n++,r++;else if(t===`)`||t===`]`||t===`}`){if(n===0)return r;n--,r++}else{if(n===0&&(t===`,`||t===`}`||t===`)`||t===`]`||t===`;`))return r;r++}}return-1}function ti(e){return e.replace(/([A-Z])/g,(e,t)=>`-${t.toLowerCase()}`)}function ni(e,t){let n=ri(e);for(let{content:e}of n)if(xr(t,e))return!0;let r=e;for(let{start:e,end:t}of n)r=`${r.slice(0,e)}""${r.slice(t)}`;zr.lastIndex=0;for(let e of r.matchAll(zr)){if(parseFloat(e[0])===0)continue;let t=e.index-1;for(;t>=0&&/\s/.test(r.charAt(t));)t--;if(t>=0&&`[*/<>=`.includes(r.charAt(t)))continue;let n=e.index+e[0].length;for(;n<r.length&&/\s/.test(r.charAt(n));)n++;if(!(n<r.length&&`*/<>=`.includes(r.charAt(n))))return!0}return!1}function ri(e){let t=[],n=0,r=!1,i=!1,a=!1,o=-1;for(;n<e.length;){let s=e.charAt(n);if(r)s===`\\`?n+=2:(s===`'`&&(r=!1,t.push({start:o,end:n+1,content:e.slice(o+1,n)})),n++);else if(i)s===`\\`?n+=2:(s===`"`&&(i=!1,t.push({start:o,end:n+1,content:e.slice(o+1,n)})),n++);else if(a){if(s===`\\`)n+=2;else if(s==="`"){a=!1;let r=e.slice(o+1,n);r=r.replace(/\$\{[^}]*\}/g,``),t.push({start:o,end:n+1,content:r}),n++}else s===`$`&&e[n+1]===`{`?n+=2:n++}else s===`'`?(r=!0,o=n,n++):s===`"`?(i=!0,o=n,n++):(s==="`"&&(a=!0,o=n),n++)}return t}function ii(e,t,n,r){for(let i of e.matchAll(Lr)){let e=i[1]??``;if(Bn.has(e)){let a=E(i.index,t),o=Yn(e);r.push({rule:o?`dark-read`:`palette-read`,line:a,text:D(n,a),hint:o?Xn(e):Kn(e,`web`)})}}}function ai(e,t,n,r){for(let i of e.matchAll(Ir)){let e=i[1]??``,a=E(i.index,t);r.push({rule:`palette-read`,line:a,text:D(n,a),hint:Jn(e)})}}var oi=/(?<![\w$])bootstrap\.(?:Modal|Tooltip|Popover|Dropdown|Offcanvas)\b/g,si=/\.(?:showModal|showPopover)\s*\(/g;function ci(e,t,n,r){for(let i of e.matchAll(oi)){let e=E(i.index,t);r.push({rule:`bootstrap-overlay`,line:e,text:D(n,e),hint:`use AppModal, AppDrawer, AppPopover or AppDropdown from @webority/ui-react in place of ${i[0]}`})}for(let i of e.matchAll(si)){let e=E(i.index,t);r.push({rule:`bootstrap-overlay`,line:e,text:D(n,e),hint:`use AppModal, AppDrawer or AppPopover from @webority/ui-react in place of a hand-called native dialog or popover method`})}}function li(e,t,n,r){for(let i of e.matchAll(Rr)){let a=``,o=e.slice(i.index+i[0].length);if(i[0].endsWith(`[`)){let e=o.match(/^\s*(["'])([^"']*)\1/);e&&(a=e[2]??``)}else{let e=o.match(/^\s*([\w$]+)/);e&&(a=e[1]??``)}let s=E(i.index,t);r.push({rule:`palette-read`,line:s,text:D(n,s),hint:Kn(a,`phone`)})}}var ui=/\.(?:js|jsx|ts|tsx)$/,di=/\.(?:test|spec)\.[jt]sx?$/,fi=/* @__PURE__ */ new Set([`node_modules`,`__tests__`,`__mocks__`,`generated`,`android`,`ios`]),pi=[``,`.js`,`.jsx`,`.ts`,`.tsx`,`/index.js`,`/index.jsx`,`/index.ts`,`/index.tsx`],mi=/^\s*(?:\/\/|\{\s*\/\*)\s*layering-allow\s+([a-z-]+)\s*(?::\s*(.*?))?\s*(?:\*\/\s*\}?)?\s*$/,hi=/\bimport\s+(?:type\s+)?([^'"();]+?)\s+from\s*["']([^"']+)["']/g,gi=/\bimport\s*["']([^"']+)["']/g,_i=/\bexport\s+(?:type\s+)?(\*(?:\s+as\s+[\w$]+)?|\{[^}]*\})\s*from\s*["']([^"']+)["']/g,vi=/\brequire\(\s*["']([^"']+)["']\s*\)/g,yi=/\bimport\(\s*["']([^"']+)["']\s*\)/g,bi=[`src/screens/index.js`,`src/screens/index.jsx`,`src/screens/index.ts`,`src/screens/index.tsx`];function xi(e){return bi.find(t=>e.includes(t))??null}function Si(e){let t=e.split(`
85
+ `&&n.push(t.length),r+=2):(p==="`"&&(o=!1),r++);else if(p===`/`&&m===`/`&&l!==`text`)s=!0,t.push(` `,` `),r+=2;else if(p===`/`&&m===`*`&&l!==`text`)c=!0,t.push(` `,` `),r+=2;else if(l===`text`&&(p===`'`||p===`"`||p==="`"))t.push(` `),r++;else if(p===`'`)i=!0,t.push(p),r++;else if(p===`"`)a=!0,t.push(p),r++;else if(p==="`")o=!0,t.push(p),r++;else{if(p===`<`&&l!==`tag`){let n=m===`/`,i=n?e.charAt(r+2):m;if(i!==void 0&&/[A-Za-z_$>]/.test(i)&&(l===`text`||!Qr(t))){l=`tag`,u=n,t.push(p),r++;continue}}p===`>`&&l===`tag`?(u?d=Math.max(0,d-1):$r(t)!==`/`&&d++,l=d>0?`text`:`code`):p===`{`?(f.push(l),l=`code`):p===`}`&&f.length>0&&(l=f.pop()??`code`),t.push(p),p===`
86
+ `&&n.push(t.length),r++}}return{blanked:t.join(``),lineStarts:n}}function Qr(e){let t=e.slice(-16).join(``).trimEnd();return!/(?:^|[^\w$])(?:return|yield|await|case|default|else|typeof|in|of)$/.test(t)&&/[\w$)\]]$/.test(t)}function $r(e){for(let t=e.length-1;t>=0;t--){let n=e[t]??``;if(!/\s/.test(n))return n}return``}function E(e,t){let n=0,r=t.length-1;for(;n<=r;){let i=n+r>>1,a=t[i];if(a===void 0)throw Error(`webority-repo-checks: a line start is missing.`);a<=e?n=i+1:r=i-1}return r+1}function D(e,t){let n=e.split(`
87
+ `);return t>=1&&t<=n.length?(n[t-1]??``).trim().slice(0,160):``}function ei(e,t,n,r){for(let i of e.matchAll(jr)){let a=i.index,o=a-1;for(;o>=0&&/\s/.test(e.charAt(o));)o--;if(o<0||e[o]!==`{`&&e[o]!==`,`)continue;let s=i[1],c=i[3],l=s||c||``,u=!!c,d=i.index+i[0].length-1+1,f=ri(e,d);if(f!==-1&&ai(e.slice(d,f),u?l:ii(l))){let e=E(a,t);r.push({rule:`raw-measure`,line:e,text:D(n,e),hint:null})}}}function ti(e,t,n,r,i,a){Ir.lastIndex=0;for(let o of e.matchAll(Ir)){let s=o.index,c=s-1;for(;c>=0&&/\s/.test(e.charAt(c));)c--;if(c<0||e[c]!==`{`&&e[c]!==`,`)continue;let l=o.index+o[0].length-1+1,u=ri(e,l);if(u===-1)continue;let d=e.slice(l,u);if(i.push([l,u]),!oi(d).some(({content:e})=>Tr(e)))continue;let f=E(s,t);r.push({rule:`raw-colour`,line:f,text:D(n,f),hint:a?Wr:Ur})}}function ni(e,t,n,r,i){Gr.lastIndex=0;for(let a of e.matchAll(Gr)){let o=a.index;if(i.some(([e,t])=>o>=e&&o<t))continue;let s=a[2]??``;if(a[1]==="`"&&s.includes("${"))continue;let c=Kr.test(s)||qr.test(s),l=Jr.test(e.slice(Math.max(0,o-40),o));if(!(c||l)||!Tr(s))continue;let u=E(o,t);r.push({rule:`raw-colour`,line:u,text:D(n,u),hint:Wr})}}function ri(e,t){let n=0,r=t,i=!1,a=!1,o=!1;for(;r<e.length;){let t=e.charAt(r);if(i)t===`\\`?r+=2:(t===`'`&&(i=!1),r++);else if(a)t===`\\`?r+=2:(t===`"`&&(a=!1),r++);else if(o)t===`\\`?r+=2:(t==="`"&&(o=!1),r++);else if(t===`'`)i=!0,r++;else if(t===`"`)a=!0,r++;else if(t==="`")o=!0,r++;else if(t===`(`||t===`[`||t===`{`)n++,r++;else if(t===`)`||t===`]`||t===`}`){if(n===0)return r;n--,r++}else{if(n===0&&(t===`,`||t===`}`||t===`)`||t===`]`||t===`;`))return r;r++}}return-1}function ii(e){return e.replace(/([A-Z])/g,(e,t)=>`-${t.toLowerCase()}`)}function ai(e,t){let n=oi(e);for(let{content:e}of n)if(wr(t,e))return!0;let r=e;for(let{start:e,end:t}of n)r=`${r.slice(0,e)}""${r.slice(t)}`;Hr.lastIndex=0;for(let e of r.matchAll(Hr)){if(parseFloat(e[0])===0)continue;let t=e.index-1;for(;t>=0&&/\s/.test(r.charAt(t));)t--;if(t>=0&&`[*/<>=`.includes(r.charAt(t)))continue;let n=e.index+e[0].length;for(;n<r.length&&/\s/.test(r.charAt(n));)n++;if(!(n<r.length&&`*/<>=`.includes(r.charAt(n))))return!0}return!1}function oi(e){let t=[],n=0,r=!1,i=!1,a=!1,o=-1;for(;n<e.length;){let s=e.charAt(n);if(r)s===`\\`?n+=2:(s===`'`&&(r=!1,t.push({start:o,end:n+1,content:e.slice(o+1,n)})),n++);else if(i)s===`\\`?n+=2:(s===`"`&&(i=!1,t.push({start:o,end:n+1,content:e.slice(o+1,n)})),n++);else if(a){if(s===`\\`)n+=2;else if(s==="`"){a=!1;let r=e.slice(o+1,n);r=r.replace(/\$\{[^}]*\}/g,``),t.push({start:o,end:n+1,content:r}),n++}else s===`$`&&e[n+1]===`{`?n+=2:n++}else s===`'`?(r=!0,o=n,n++):s===`"`?(i=!0,o=n,n++):(s==="`"&&(a=!0,o=n),n++)}return t}function si(e,t,n,r){for(let i of e.matchAll(Br)){let e=i[1]??``;if(Bn.has(e)){let a=E(i.index,t),o=Yn(e);r.push({rule:o?`dark-read`:`palette-read`,line:a,text:D(n,a),hint:o?Xn(e):Kn(e,`web`)})}}}function ci(e,t,n,r){for(let i of e.matchAll(zr)){let e=i[1]??``,a=E(i.index,t);r.push({rule:`palette-read`,line:a,text:D(n,a),hint:Jn(e)})}}var li=/(?<![\w$])bootstrap\.(?:Modal|Tooltip|Popover|Dropdown|Offcanvas)\b/g,ui=/\.(?:showModal|showPopover)\s*\(/g;function di(e,t,n,r){for(let i of e.matchAll(li)){let e=E(i.index,t);r.push({rule:`bootstrap-overlay`,line:e,text:D(n,e),hint:`use AppModal, AppDrawer, AppPopover or AppDropdown from @webority/ui-react in place of ${i[0]}`})}for(let i of e.matchAll(ui)){let e=E(i.index,t);r.push({rule:`bootstrap-overlay`,line:e,text:D(n,e),hint:`use AppModal, AppDrawer or AppPopover from @webority/ui-react in place of a hand-called native dialog or popover method`})}}function fi(e,t,n,r){for(let i of e.matchAll(Vr)){let a=``,o=e.slice(i.index+i[0].length);if(i[0].endsWith(`[`)){let e=o.match(/^\s*(["'])([^"']*)\1/);e&&(a=e[2]??``)}else{let e=o.match(/^\s*([\w$]+)/);e&&(a=e[1]??``)}let s=E(i.index,t);r.push({rule:`palette-read`,line:s,text:D(n,s),hint:Kn(a,`phone`)})}}var pi=/\.(?:js|jsx|ts|tsx)$/,mi=/\.(?:test|spec)\.[jt]sx?$/,hi=/* @__PURE__ */ new Set([`node_modules`,`__tests__`,`__mocks__`,`generated`,`android`,`ios`]),gi=[``,`.js`,`.jsx`,`.ts`,`.tsx`,`/index.js`,`/index.jsx`,`/index.ts`,`/index.tsx`],_i=/^\s*(?:\/\/|\{\s*\/\*)\s*layering-allow\s+([a-z-]+)\s*(?::\s*(.*?))?\s*(?:\*\/\s*\}?)?\s*$/,vi=/\bimport\s+(?:type\s+)?([^'"();]+?)\s+from\s*["']([^"']+)["']/g,yi=/\bimport\s*["']([^"']+)["']/g,bi=/\bexport\s+(?:type\s+)?(\*(?:\s+as\s+[\w$]+)?|\{[^}]*\})\s*from\s*["']([^"']+)["']/g,xi=/\brequire\(\s*["']([^"']+)["']\s*\)/g,Si=/\bimport\(\s*["']([^"']+)["']\s*\)/g,Ci=[`src/screens/index.js`,`src/screens/index.jsx`,`src/screens/index.ts`,`src/screens/index.tsx`];function wi(e){return Ci.find(t=>e.includes(t))??null}function Ti(e){let t=e.split(`
88
88
  `).length;return e.endsWith(`
89
- `)?t-1:t}function Ci(e){return!ui.test(e)||di.test(e)?!1:!e.split(`/`).slice(0,-1).some(e=>fi.has(e))}function O(e){return e.filter(Ci)}function k(e,t){let n=r(d(e,t),`utf8`),{blanked:i,lineStarts:a}=Jr(n);return{file:t,text:n,blanked:i,lines:n.split(`
90
- `),lineAt:e=>{let t=0,n=a.length-1;for(;t<=n;){let r=t+n>>1,i=a[r];if(i===void 0)throw RangeError(`line start ${r} is missing`);i<=e?t=r+1:n=r-1}return n+1}}}function wi(e){let t=e.trim();if(t===`*`)return[{name:`*`,local:`*`}];let n=[],r=t.match(/\*\s+as\s+([\w$]+)/);if(r){let e=r[1];if(e===void 0)throw TypeError(`namespace import has no local name`);n.push({name:`*`,local:e})}let i=t.match(/\{([^}]*)\}/);if(i){let e=i[1];if(e===void 0)throw TypeError(`named import clause has no body`);for(let t of e.split(`,`)){let e=t.trim().replace(/^type\s+/,``).match(/^([\w$]+)(?:\s+as\s+([\w$]+))?$/);if(e){let t=e[1];if(t===void 0)throw TypeError(`import specifier has no name`);n.push({name:t,local:e[2]??t})}}}let a=t.replace(/\{[^}]*\}/,``).replace(/\*\s+as\s+[\w$]+/,``).replace(/,/g,``).trim();return/^[\w$]+$/.test(a)&&n.push({name:`default`,local:a}),n}function A(e){let t=[],n=(n,r,i,a)=>t.push({kind:r,specifier:i,imported:a,line:e.lineAt(n)});for(let t of e.blanked.matchAll(hi)){let[,e,r]=t;if(e===void 0||r===void 0)throw TypeError(`import match lost a group`);n(t.index,`import`,r,wi(e))}for(let t of e.blanked.matchAll(gi)){let[,e]=t;if(e===void 0)throw TypeError(`bare import match lost a group`);n(t.index,`import`,e,[])}for(let t of e.blanked.matchAll(_i)){let[,e,r]=t;if(e===void 0||r===void 0)throw TypeError(`export-from match lost a group`);n(t.index,`export-from`,r,wi(e))}for(let t of e.blanked.matchAll(vi)){let[,e]=t;if(e===void 0)throw TypeError(`require match lost a group`);n(t.index,`require`,e,[])}for(let t of e.blanked.matchAll(yi)){let[,e]=t;if(e===void 0)throw TypeError(`dynamic import match lost a group`);n(t.index,`dynamic`,e,[])}return t.sort((e,t)=>e.line-t.line)}function Ti(e,t,n){let r;if(n.startsWith(`@/`))r=`src/${n.slice(2)}`;else if(n.startsWith(`.`))r=p.normalize(p.join(p.dirname(t),n));else return null;for(let t of pi)if(e.has(r+t))return r+t;return null}function j(e,t,n){let r=[];t.lines.forEach((t,n)=>{let i=mi.exec(t);i&&i[1]===e&&r.push({line:n+1,reason:(i[2]??``).trim()})});let i=new Set(r.filter(e=>e.reason!==``).map(e=>e.line)),a=n.filter(e=>!(i.has(e.line-1)||e.line===1&&i.has(1))).map(n=>({rule:e,file:t.file,line:n.line,message:n.message,...n.note?{note:!0}:{}}));for(let n of r)n.reason===``&&a.push({rule:e,file:t.file,line:n.line,message:`layering-allow needs a reason`});return a}function M(e){return[...e].sort((e,t)=>e.file===t.file?e.line===t.line?e.message===t.message?0:e.message<t.message?-1:1:e.line-t.line:e.file<t.file?-1:1)}var Ei=/^src\/screens\/(public|user)\/([^/]+)\/.+/;function Di(e){let t=Ei.exec(e);return t?`${t[1]}/${t[2]}`:null}function Oi(e,t){let n=O(t),r=new Set(n),i=[];for(let t of n){let n=Di(t);if(n===null)continue;let a=k(e,t),o=[];for(let e of A(a)){let i=Ti(r,t,e.specifier),a=i===null?null:Di(i);a!==null&&a!==n&&o.push({line:e.line,message:`imports ${i} from another screen area. react-native.md: a part two areas use lives in src/components/<area>/ or src/components/shared/.`})}i.push(...j(`cross-feature-import`,a,o))}return M(i)}var ki=/* @__PURE__ */ new Set([`assets`,`components`,`constants`,`hooks`,`navigation`,`redux`,`screens`,`services`,`standards`,`types`,`utils`]),Ai=/\.(?:js|jsx|ts|tsx)$/,ji=/^src\/screens\/(?:public\/.+|user\/[^/]+\/.+)$/,Mi=/[A-Za-z0-9]Screen\.(?:js|jsx|ts|tsx)$/,Ni=/^src\/screens\/index\.(?:js|ts)$/,Pi=/^src\/assets\/theme\/settings\.(?:js|ts|tsx)$/,Fi=[`.js`,`.ts`,`.tsx`,`.jsx`],Ii={folder:`a top-level folder of src is one of assets, components, constants, hooks, navigation, redux, screens, services, standards, types, utils`,screenHome:`a screen file lives in src/screens/public/ or src/screens/user/<area>/`,suffix:`a screen is named without a Screen suffix`,theme:`src/assets/theme holds only its settings file`,types:`src/types holds only ambient .d.ts declaration files`,tsconfig:`an app has a tsconfig.json at its root`},Li=(e,t)=>`${e}: react-native.md App layout: ${t}.`;function Ri(e,t){let n=/* @__PURE__ */ new Set,r=/* @__PURE__ */ new Map,i=(e,t)=>{let n=r.get(e);n===void 0&&(n=[],r.set(e,n)),n.push({line:1,message:Li(e,t)})};for(let e of t){let t=e.split(`/`);if(t[0]!==`src`||t.some(e=>e===`node_modules`||e===`generated`||e===`__tests__`))continue;let r=t[1];t.length>2&&r!==void 0&&!ki.has(r)&&n.add(r),e.startsWith(`src/screens/`)&&Ai.test(e)&&(!Ni.test(e)&&!ji.test(e)&&i(e,Ii.screenHome),Mi.test(e)&&i(e,Ii.suffix)),e.startsWith(`src/assets/theme/`)&&!Pi.test(e)&&i(e,Ii.theme),e.startsWith(`src/types/`)&&!e.endsWith(`.d.ts`)&&i(e,Ii.types)}let a=[];t.includes(`tsconfig.json`)||a.push({rule:`folder-layout`,file:`tsconfig.json`,line:1,message:Li(`tsconfig.json`,Ii.tsconfig)});for(let[t,n]of r)Ci(t)?a.push(...j(`folder-layout`,k(e,t),n)):a.push(...n.map(e=>({rule:`folder-layout`,file:t,line:e.line,message:e.message})));for(let r of n){let n={rule:`folder-layout`,file:`src/${r}`,line:1,message:Li(`src/${r}`,Ii.folder)},i=Fi.map(e=>`src/${r}/index${e}`).find(e=>t.includes(e));if(i===void 0)a.push(n);else for(let t of j(`folder-layout`,k(e,i),[{line:1,message:n.message}]))a.push(t.message===n.message?n:t)}return M(a)}function zi(e,t){let n=O(t),r=xi(n),i=new Set(n),a=[];for(let t of n){if(t.startsWith(`src/screens/`)||t.startsWith(`src/navigation/`))continue;let n=k(e,t),o=[];for(let e of A(n)){let n=Ti(i,t,e.specifier);n?.startsWith(`src/screens/`)&&n!==r&&o.push({line:e.line,message:`imports a screen folder from outside src/screens. react-native.md: hooks, utils and components never import screens.`})}a.push(...j(`import-into-screens`,n,o))}return M(a)}var Bi=`@webority/mobile-ui`,Vi=40,Hi=/\{\s*\.\.\.(?:props|rest)\s*\}/,Ui=[`lib/typescript/module/components/index.d.ts`,`lib/typescript/module/index.d.ts`],Wi=e=>`wraps mobile-ui ${e}. react-native.md: no restyle or pass-through wrapper; use ${e} directly, put house defaults in theme settings.`;function Gi(e){let n=/* @__PURE__ */ new Set;for(let i of Ui){let a=d(e,`node_modules`,`@webority`,`mobile-ui`,i);if(t(a))for(let e of r(a,`utf8`).matchAll(/export\s+(?!type\b)\{([^}]*)\}\s*from/g)){let t=e[1];if(t===void 0)throw TypeError(`export clause has no body`);for(let e of t.split(`,`)){let t=e.trim().split(/\s+as\s+/).pop();if(t===void 0)throw RangeError(`split always yields a part`);/^[\w$]+$/.test(t)&&n.add(t)}}}return n}function Ki(e){let t=/* @__PURE__ */ new Set;/\bexport\s+default\b/.test(e)&&t.add(`default`);for(let n of e.matchAll(/\bexport\s+(?:const|let|var|function\*?|class)\s+([A-Z][\w$]*)/g)){let e=n[1];if(e===void 0)throw TypeError(`export declaration has no name`);t.add(e)}for(let n of e.matchAll(/\bexport\s*\{([^}]*)\}/g)){let e=n[1];if(e===void 0)throw TypeError(`export clause has no body`);for(let n of e.split(`,`)){let e=n.trim().split(/\s+as\s+/).pop();if(e===void 0)throw RangeError(`split always yields a part`);(e==="default"||/^[A-Z][\w$]*$/.test(e))&&t.add(e)}}return t.size}function qi(e,t){let n=0;for(let r=t;r<e.length;r++){let i=e[r];if(i===`{`)n++;else if(i===`}`)n--;else if(i===`>`&&n===0)return e.slice(t,r+1)}return e.slice(t)}function Ji(e){if(Si(e.text)>Vi)return null;let t=/* @__PURE__ */ new Set;for(let n of A(e))if(!(n.kind!==`import`||n.specifier!==Bi&&!n.specifier.startsWith(`${Bi}/`)))for(let{name:e,local:r}of n.imported)e!==`*`&&t.add(r);if(t.size===0||Ki(e.blanked)!==1)return null;for(let n of e.blanked.matchAll(/(?:=>|\breturn)\s*\(?\s*<([A-Z][\w$]*)/g)){let r=n[1];if(r===void 0)throw TypeError(`component tag has no name`);if(!t.has(r))continue;let i=n.index+n[0].length-r.length-1;if(Hi.test(qi(e.blanked,i)))return{name:r,line:e.lineAt(i)}}return null}function Yi(e,t){let n=Gi(e),r=[];for(let i of O(t)){if(!i.startsWith(`src/`))continue;let t=k(e,i),a=[],o=/^App([A-Z][A-Za-z0-9]*)\.[jt]sx?$/.exec(c(i))?.[1];if(o&&n.has(o))a.push({line:1,message:Wi(o)});else{let e=Ji(t);e&&a.push({line:e.line,message:Wi(e.name)})}r.push(...j(`library-wrapper`,t,a))}return M(r)}var Xi=`@webority/mobile-ui`,Zi=/* @__PURE__ */ new Set([`makeStyles`,`useTheme`,`ThemeProvider`]),Qi=/* @__PURE__ */ new Set([`COLORS`,`PALETTE`,`LIGHT_COLORS`,`DARK_COLORS`,`commonStyles`,`FONT_SIZE`,`Responsive`]),$i=/\bexport\s+(?:const|let|var|function\*?|class)\s+([A-Za-z_$][\w$]*)/g,ea=/\bexport\s*\{([^}]*)\}/g,ta=e=>`local theme ${e}. react-native.md: the library owns the theme; the app supplies brand and settings only.`;function na(e,t){let n=[];for(let r of O(t)){if(!r.startsWith(`src/`))continue;let t=k(e,r),i=[];for(let e of A(t))if(!(e.kind!==`import`||e.specifier===Xi||e.specifier.startsWith(`${Xi}/`)))for(let{name:t,local:n}of e.imported){let r=t==="default"?n:t;Zi.has(r)&&i.push({line:e.line,message:ta(r)})}for(let e of t.blanked.matchAll($i)){let n=e[1];if(n===void 0)throw TypeError(`export declaration has no name`);Qi.has(n)&&i.push({line:t.lineAt(e.index),message:ta(n)})}for(let e of t.blanked.matchAll(ea)){let n=e[1];if(n===void 0)throw TypeError(`export clause has no body`);for(let r of n.split(`,`)){let n=r.trim().split(/\s+as\s+/).pop();if(n===void 0)throw RangeError(`split always yields a part`);Qi.has(n)&&i.push({line:t.lineAt(e.index),message:ta(n)})}}n.push(...j(`local-theme`,t,i))}return M(n)}var ra=/^(?:workspace:|file:|link:)/;function ia(e){let t=d(e,`package.json`),n,i;try{n=r(t,`utf8`),i=JSON.parse(n)}catch{return[]}let a={...i.dependencies,...i.devDependencies},o=Object.keys(a).filter(e=>e.startsWith(`@webority/mobile-`)||e===`@webority/biome-config`).filter(e=>!ra.test(String(a[e]))).sort().map(e=>[e,String(a[e]).replace(/^[\^~]/,``)]),s=o[0],c=s?o.find(([,e])=>e!==s[1]):void 0;if(!s||!c)return[];let l=n.split(`
91
- `).findIndex(e=>e.includes(`"${s[0]}"`));return[{rule:`mobile-pins-lockstep`,file:`package.json`,line:l===-1?1:l+1,message:`pins ${s[0]}@${s[1]} and ${c[0]}@${c[1]}. react-native.md: the phone packages move together.`}]}var aa=/* @__PURE__ */ new Set([`Text`,`TextInput`,`Pressable`,`TouchableOpacity`,`TouchableHighlight`,`TouchableWithoutFeedback`,`ActivityIndicator`,`Modal`,`Switch`,`Button`]),oa=e=>`${e} from react-native in a screen or product component. react-native.md: use the mobile-ui part (Text, Input, Button, Card onPress, Spinner, Modal, Switch); mark a deliberate use with // layering-allow raw-primitive: <reason>.`;function sa(e,t){let n=[];for(let r of O(t)){if(!r.startsWith(`src/screens/`)&&!r.startsWith(`src/components/`))continue;let t=k(e,r),i=/* @__PURE__ */ new Set;for(let e of A(t))if(e.kind===`import`&&e.specifier===`react-native`)for(let{name:t,local:n}of e.imported)aa.has(t)&&i.add(n);let a=[];for(let e of i){let n=RegExp(`(?<![\\w$)\\]])<${e.replace(/\$/g,`\\$`)}(?![\\w$.-])`,`g`);for(let r of t.blanked.matchAll(n))a.push({line:t.lineAt(r.index),message:oa(e)})}n.push(...j(`raw-primitive`,t,a))}return M(n)}function ca(e,t){let n=O(t),r=xi(n);if(r===null)return[];let i=new Set(n),a=/* @__PURE__ */ new Set;for(let t of A(k(e,r))){if(t.kind!==`export-from`)continue;let e=Ti(i,r,t.specifier);e!==null&&a.add(e)}let o=[];for(let t of n){if(t===r||t.startsWith(`src/navigation/`))continue;let n=k(e,t),s=[];for(let e of A(n)){let n=Ti(i,t,e.specifier);if(n!==null&&n!==t&&a.has(n)){let t=p.basename(n).replace(/\.[^.]+$/,``);s.push({line:e.line,message:`imports the route screen ${t}. react-native.md: share the form or part as a sibling file, never a screen.`})}}o.push(...j(`screen-imports-screen`,n,s))}return M(o)}var la=400,ua=600;function da(e,t){let n=[];for(let r of O(t)){if(!r.startsWith(`src/screens/`))continue;let t=k(e,r),i=Si(t.text),a=i>la?[{line:1,message:`${i} lines. react-native.md: split a screen over 400 lines; over 600 is a finding.`,note:i<=ua}]:[];n.push(...j(`screen-length`,t,a))}return M(n)}var fa=/(?:^|\/)index\.[jt]sx?$/,pa=/\.(?:stories\.[jt]sx?|meta\.js)$/,ma=e=>e.startsWith(`src/screens/`)&&!fa.test(e),ha=e=>!fa.test(e)&&!pa.test(e),ga=e=>e.startsWith(`src/components/`)&&ha(e);function _a(e,t){let n=O(t),r=new Set(n),i=/* @__PURE__ */ new Map,a=t=>{let n=i.get(t);if(n!==void 0)return n;let r=k(e,t);return i.set(t,r),r},o=/* @__PURE__ */ new Map;for(let e of n){if(!e.startsWith(`src/components/`)||!fa.test(e))continue;let t=/* @__PURE__ */ new Map,n=[];for(let i of A(a(e))){if(i.kind!==`export-from`)continue;let a=Ti(r,e,i.specifier);if(a!==null)for(let{name:e,local:r}of i.imported)e===`*`&&r===`*`?n.push(a):t.set(r,a)}o.set(e,{named:t,star:n})}let s=(e,t)=>RegExp(`export\\s+(?:const|let|var|function\\*?|class)\\s+${t.replace(/\$/g,`\\$`)}\\b|export\\s*\\{[^}]*\\b${t.replace(/\$/g,`\\$`)}\\b`).test(a(e).blanked),c=/* @__PURE__ */ new Map,l=(e,t)=>{if(e===t||!ha(t))return;let n=c.get(e);n||(n=/* @__PURE__ */ new Set,c.set(e,n)),n.add(t)};for(let e of n)for(let t of A(a(e))){if(t.kind===`export-from`)continue;let n=Ti(r,e,t.specifier);if(n===null)continue;let i=o.get(n);if(!i)l(n,e);else for(let{name:n}of t.imported){let t=i.named.get(n)??i.star.find(e=>s(e,n));t&&l(t,e)}}let u=e=>{let t=/* @__PURE__ */ new Set,n=/* @__PURE__ */ new Set([e]),r=[e];for(;r.length>0;){let e=r.pop();if(e===void 0)throw RangeError(`screensReached: pending is empty`);for(let i of c.get(e)??[])n.has(i)||(n.add(i),ma(i)?t.add(i):r.push(i))}return t},d=[];for(let e of n){if(!ga(e))continue;let t=c.get(e)?.size??0,n=t===0||t===1&&u(e).size===1?[{line:1,message:`${e} has ${t} importer(s). react-native.md: a part one screen uses lives beside that screen.`}]:[];d.push(...j(`shared-single-importer`,a(e),n))}return M(d)}var va=/(?<![\w$.])Responsive\s*\.\s*(?:width|height|font)\s*\(/g,ya=`scales by screen width. react-native.md: use theme.space and the text scale.`;function ba(e,t){let n=[];for(let r of O(t)){if(!r.startsWith(`src/`))continue;let t=k(e,r),i=[...t.blanked.matchAll(va)].map(e=>({line:t.lineAt(e.index),message:ya}));n.push(...j(`width-scaling`,t,i))}return M(n)}var xa=[sa,Oi,zi,ca,_a,Yi,da,ia,Ri,na,ba],Sa=/* @__PURE__ */ new Set([`node_modules`,`android`,`ios`,`.git`]);function Ca(e,t=``){let n=[];for(let r of i(d(e,t),{withFileTypes:!0})){if(Sa.has(r.name))continue;let i=t?`${t}/${r.name}`:r.name;r.isDirectory()?n.push(...Ca(e,i)):n.push(i)}return n}function wa(e){let t=Ca(e).sort(),n=[];for(let r of xa.flatMap(n=>n(e,t))){let e=`${r.file}:${r.line} ${r.message}`;r.note?console.log(`note: ${e}`):n.push([`${r.rule}:${r.file}`,e])}return n}var Ta=`@webority/mobile-`,Ea=/^(\d+)\.(\d+)\.(\d+)$/,Da=/^(\d+)\.(\d+)\.(\d+)/,Oa=/^(?:workspace:|file:|link:)/;function ka(e,t){let n=t.exec(e);if(n)return[Number(n[1]),Number(n[2]),Number(n[3])]}function Aa(e,t){let[n,r,i]=e,[a,o,s]=t;return n===a?r===o?i<s:r<o:n<a}function ja(e){let t;try{t=JSON.parse(r(d(e,`package.json`),`utf8`))}catch{return/* @__PURE__ */ new Map}if(typeof t!=`object`||!t)return/* @__PURE__ */ new Map;let n=new Map(Object.entries(t)),i=/* @__PURE__ */ new Map;for(let e of[`dependencies`,`devDependencies`]){let t=n.get(e);if(typeof t==`object`&&t)for(let[e,n]of Object.entries(t))i.set(e,n)}return i}function Ma(e,t){let n=ka(t,Ea);if(!n)throw Error(`webority-repo-checks: phone library version "${t}" is not x.y.z.`);let r=ja(e),i=[...r.keys()].filter(e=>e.startsWith(Ta)).sort(),a=[];for(let e of i){let i=r.get(e);if(typeof i!=`string`||Oa.test(i))continue;let o=ka(i.replace(/^[\^~]/,``),Da);o&&Aa(o,n)&&a.push([`mobile-library-pin:${e}`,`"${e}": "${i}" is behind the current phone library ${t}. Move every @webority/mobile-* pin to ${t} together. react-native.md: the phone packages move together.`])}return a}var Na=/* @__PURE__ */ new Set([`node_modules`,`dist`,`build`,`.git`,`.gradle`,`Pods`,`DerivedData`]);function Pa(e,t){return i(e,{withFileTypes:!0}).flatMap(n=>n.isDirectory()?t.has(n.name)?[]:Pa(d(e,n.name),t):[d(e,n.name)])}var Fa=e=>e.split(`\\`).join(`/`);function Ia(e,t){return e.replace(t,e=>e.replace(/[^\n]/g,` `))}function La(e,t){return e.slice(0,t).split(`
92
- `).length}var Ra=/^MainActivity\.(?:kt|java)$/,za=/\bsuper\.onCreate\(\s*(?!null\s*\))[^)]*\)/;function Ba(e){let n=d(e,`android`,`app`,`src`);if(!t(n))return[];let i=[];for(let t of Pa(n,Na)){if(!Ra.test(c(t)))continue;let n=Ia(Ia(r(t,`utf8`),/\/\*[\s\S]*?\*\//g),/\/\/[^\n]*/g),a=za.exec(n);if(!a)continue;let o=Fa(m(e,t));i.push([`rn-mainactivity-oncreate-bundle:${o}`,`${o}:${La(n,a.index)} passes a bundle to super.onCreate. react-native-toolchain.md → Android: super.onCreate(null): pass null, so Android does not restore stale Screen fragments after the OS kills the app, and register the splash screen before it.`])}return i}var Va=/EXPO_UPDATE_URL"[^>]*?\/(Staging|Development)"/,Ha=/<key>EXPO_UPDATE_URL<\/key>\s*<string>[^<]*\/(Staging|Development)<\/string>/,Ua=/^APP_ID=.*\.(staging|development)\s*$/m,Wa=/\/ota\/manifest\/\d+\/\d+\//;function Ga(e){let n=[{file:d(e,`android`,`app`,`src`,`main`,`AndroidManifest.xml`),pattern:Va,retired:!0},{file:d(e,`android`,`gradle.properties`),pattern:Ua,retired:!1}],r=d(e,`ios`);if(t(r))for(let e of Pa(r,Na))c(e)===`Expo.plist`&&n.push({file:e,pattern:Ha,retired:!0});return n.filter(({file:e})=>t(e))}function Ka(e){let t=[];for(let{file:n,pattern:i,retired:a}of Ga(e)){let o=Fa(m(e,n)),s=r(n,`utf8`),c=i.exec(s);if(c)t.push([`mobile-production-stamps:${o}`,`${o}:${La(s,c.index)} carries ${c[1]} values from a mobile-tools prebuild. Run \`mobile-tools prebuild --env Production\` in the app folder before committing, so production builds never read the ${c[1]} update feed or app id.`]);else{let e=a?Wa.exec(s):null;e&&t.push([`mobile-production-stamps:${o}`,`${o}:${La(s,e.index)} points over-the-air updates at the retired whole-number address. Set OTA_PROJECT_PUBLIC_ID and the platform's component public id in appsettings and run \`mobile-tools prebuild --env Production\` before committing.`])}}return t}var qa=/^spa-host\..+\.json$/,Ja=/* @__PURE__ */ new Set([`web.config`,`staticwebapp.config.json`,`_headers`,`spa-host.json`]);function Ya(e){let t=[];for(let n of Pa(e,/* @__PURE__ */ new Set([...Na,`android`,`ios`]))){let i=c(n);if(!Ja.has(i)&&!qa.test(i))continue;let a=Ia(r(n,`utf8`),/<!--[\s\S]*?-->/g).split(`
93
- `).findIndex(e=>/\bimmutable\b/i.test(e)&&/cache/i.test(e));if(a===-1)continue;let o=Fa(m(e,n));t.push([`spa-host-immutable-assets:${o}`,`${o}:${a+1} sets a Cache-Control with immutable. react.md → SPA deploy artifacts: /assets/* is "public, max-age=31536000" without immutable, because immutable on a content-hashed URL can brick that URL in the browser cache across a bad deploy.`])}return t}var Xa=Object.freeze([`spa-host.json`,`spa-host.Development.json`,`spa-host.Staging.json`,`spa-host.Production.json`]),Za=Object.freeze([`vite.config.ts`,`vite.config.mts`,`vite.config.js`,`vite.config.mjs`,`vite.config.cjs`]),Qa=/\.[cm]?js$/,$a=/\btarget\s*:\s*(?:\[|["'](?:es\d|esnext|chrome|firefox|safari|edge|ios|node|modules|baseline))/;function eo(e,t){let n=[e],r=e;for(;r!==t&&l(r)!==r;)r=l(r),n.push(r);return n}function to(e,n){let i=[];eo(e,n).some(e=>t(d(e,`.nvmrc`)))||i.push([`root-file:nvmrc`,`No .nvmrc in this folder or above it. react.md, Node: commit .nvmrc with the supported Node major.`]);for(let n of Xa)t(d(e,n))||i.push([`root-file:${n}`,`${n} is missing beside package.json. react.md, SPA deploy artifacts: a portal carries spa-host.json and one spa-host.<Environment>.json per environment, as the starter does.`]);let a=Za.find(n=>t(d(e,n)));if(a===void 0)return i;Qa.test(a)&&i.push([`root-file:vite-config-ts`,`${a} is JavaScript. react.md, Language: rename it to vite.config.ts.`]);let o=r(d(e,a),`utf8`);return o.includes(`codeSplitting`)||i.push([`root-file:split-groups`,`${a} has no build.rolldownOptions.output.codeSplitting groups. react.md, Build: split the framework and the design system into their own $initial chunks, as the starter's vite.config.ts does.`]),$a.test(o)&&i.push([`root-file:build-target`,`${a} sets a build target. react.md, Build: remove build.target and keep Vite's default.`]),i}var no=[[`eslint`,`react.md: Biome is the only lint and format tool`],[`@eslint/js`,`react.md: Biome is the only lint and format tool`],[`prettier`,`react.md: Biome is the only lint and format tool`],[`lint-staged`,`react.md: the shared pre-commit hook replaces lint-staged`]],ro=[[`@typescript-eslint/`,`react.md: Biome is the only lint and format tool`],[`eslint-plugin-`,`react.md: Biome is the only lint and format tool`],[`eslint-config-`,`react.md: Biome is the only lint and format tool`],[`prettier-plugin-`,`react.md: Biome is the only lint and format tool`]],io=`bootstrap-ui.md: hard interactive components come from @webority/ui-react`,ao=`react.md: Bootstrap 5.3.8 is the only UI framework`,oo=`react.md: dates format through Intl and the web-core formatters`,so=`react-native.md: retired; Intl and the mobile-core formatters`,co={web:[...no,[`react-toastify`,`react.md: notifications are toast from @webority/ui-react`],[`downshift`,io],[`react-day-picker`,io],[`react-aria`,io],[`react-aria-components`,io],[`@webority/ui-elements`,`bootstrap-ui.md: products use the App* wrappers, and ui-react brings the elements itself`],[`crypto-js`,`react.md: stored tokens are never encrypted client-side`],[`tailwindcss`,ao],[`antd`,ao],[`styled-components`,`react.md: no CSS-in-JS`],[`bootstrap-icons`,`bootstrap-ui.md: icons are AppIcon from @webority/ui-react`],[`iconsax-react`,`ui-components.md: icons are AppIcon from @webority/ui-react`],[`moment`,oo],[`moment-timezone`,oo],[`dayjs`,oo],[`date-fns`,oo],[`react-router-dom`,`react.md: react-router 8 is one package; depend on react-router and import from "react-router" (react-router-dom was merged into it)`],[`react-test-renderer`,`react.md: React 19 deprecated the test renderer; test with @testing-library/react`]],mobile:[...no,[`react-native-permissions`,`react-native.md: retired; each Expo module requests its own permission`],[`moment`,so],[`moment-timezone`,so],[`dayjs`,so],[`react-native-fast-image`,`react-native.md: retired; expo-image`],[`@d11/react-native-fast-image`,`react-native.md: retired; expo-image`],[`formik`,`react-native.md: retired; react-hook-form`],[`yup`,`react-native.md: retired; zod with zodResolver`],[`react-native-status-bar-height`,`react-native.md: retired; react-native-safe-area-context insets`],[`react-native-flash-message`,`react-native.md: retired; the mobile-ui toast`],[`react-native-toast-message`,`react-native.md: retired; the mobile-ui toast`],[`prop-types`,`react-native.md: retired; defaults in the parameter destructure`],[`@react-navigation/stack`,`react-native.md: retired; @react-navigation/native-stack`],[`react-native-version-check`,`react-native.md: retired; the server-driven minimum version`],[`@react-native-firebase/messaging`,`react-native.md: push is expo-notifications through mobile-core`],[`@notifee/react-native`,`react-native.md: push is expo-notifications through mobile-core`],[`patch-package`,`react-native-toolchain.md: patch with pnpm patch, never patch-package`],[`react-test-renderer`,`react-native.md: React 19 deprecated the test renderer; test with test-renderer (the RNTL 14 renderer)`]],demo:[]},lo={web:[...ro,[`@mui/`,ao],[`@chakra-ui/`,ao],[`@emotion/`,`react.md: no CSS-in-JS`],[`@radix-ui/`,io],[`@react-aria/`,io]],mobile:[...ro],demo:[]},uo={web:[[`axios-retry`,`@webority/web-core`,`react.md: retry lives only in @webority/web-core`]],mobile:[[`axios-retry`,`@webority/mobile-core`,`react.md: retry lives only in @webority/mobile-core`]],demo:[]},fo={web:[[`@biomejs/biome`,`react.md: Biome is mandatory`],[`@webority/biome-config`,`react.md: every repo extends the shared Biome preset`],[`@webority/web-core`,`react.md: clients, auth, errors and logging come from web-core`],[`@webority/ui-react`,`react.md: App* components come from the catalogue`],[`@webority/theme`,`bootstrap-ui.md: look and tokens come from the shared theme`],[`bootstrap`,`bootstrap-ui.md: Bootstrap 5.3.8 on every surface`],[`react-bootstrap`,`bootstrap-ui.md: react-bootstrap is a dependency from project init`],[`sass-embedded`,`react.md: the SCSS compiler is sass-embedded`]],mobile:[[`@biomejs/biome`,`react-native.md: Biome is mandatory`],[`@webority/biome-config`,`react.md: every repo extends the shared Biome preset`],[`@webority/mobile-core`,`react-native.md: apps consume the shared mobile library`],[`@webority/mobile-ui`,`react-native.md: apps consume the shared mobile library`],[`@react-native-firebase/app`,`react-native.md: Crashlytics in every app`],[`@react-native-firebase/crashlytics`,`react-native.md: Crashlytics in every app`]],demo:[[`@biomejs/biome`,`react.md: Biome is mandatory`],[`@webority/biome-config`,`react.md: every repo extends the shared Biome preset`]]},po=[`agentation`],mo=[[`web-import-axios`,/(?:\bfrom\s*|\bimport\s*\(\s*|\brequire\s*\(\s*|^\s*import\s*)["']axios(?:\/[^"']*)?["']/m,`imports axios`,`react.md: HTTP goes through userClient and publicClient from @webority/web-core`],[`web-import-router`,/\bimport\s*\{[^}]*\b(?:BrowserRouter|Routes)\b[^}]*\}\s*from\s*["']react-router(?:-dom)?["']/,`imports BrowserRouter or Routes`,`react.md: routes are objects passed to createBrowserRouter and rendered by RouterProvider`],[`web-import-env-branch`,/\bimport\.meta\.env\.(?:DEV|PROD)\b/,`reads import.meta.env.DEV or PROD`,`react.md: branch on AppSettings.ENVIRONMENT; DEV and PROD only say which React build is bundled`]],ho=[[`web-import-axios-types`,/\b(?:import|export)\s+type\s[^;]*?\bfrom\s*["']axios(?:\/[^"']*)?["']/,`imports types from axios`,`react.md: import AxiosError, AxiosInstance, AxiosRequestConfig and AxiosResponse from @webority/web-core`]],go=[[`@webority/theme`,`@webority/ui-react`,`@webority/support-react`,`@webority/web-core`,`@webority/biome-config`,`@webority/repo-checks`],[`@webority/mobile-core`,`@webority/mobile-ui`,`@webority/mobile-support`,`@webority/mobile-tools`]],_o=`@webority/biome-config/biome.jsonc`,vo=`@webority/biome-config/biome.phone.jsonc`,N=`@webority/biome-config`,yo={react:[`Children`,`Fragment`,`Profiler`,`StrictMode`,`Suspense`],"react/jsx-runtime":[`Fragment`]},bo=/* @__PURE__ */ `AppAccordion.AppAccountSwitcher.AppActionIcon.AppAlert.AppAsyncBlock.AppAuthLayout.AppAvatar.AppAvatarGroup.AppBadge.AppBanner.AppBreadcrumbs.AppButton.AppButtonGroup.AppCalendar.AppCard.AppCarousel.AppCell.AppChart.AppChartCard.AppCheckbox.AppChip.AppChipGroup.AppChoiceCard.AppChoiceChip.AppCodeBlock.AppColorField.AppColumnMenu.AppCommandPalette.AppCommentThread.AppCompareTable.AppConfirmDialog.AppConsentBanner.AppContextMenu.AppCopyButton.AppCountryFlag.AppDashboardCell.AppDashboardGrid.AppDataTable.AppDatePicker.AppDateRangePicker.AppDescriptions.AppDetailPane.AppDrawer.AppDropZone.AppDropdown.AppDueDate.AppEmptyState.AppErrorBoundary.AppErrorSummary.AppFileAttachment.AppFilePicker.AppFileTiles.AppFileViewer.AppFilterBar.AppFloatingButton.AppFloatingDock.AppFormActions.AppFormRow.AppFormSection.AppHoverCard.AppIcon.AppImagePicker.AppInfoTip.AppInlineEdit.AppInput.AppInputGroup.AppKanban.AppKbd.AppKpiTile.AppLeadPopup.AppLightbox.AppLink.AppMarkdown.AppMentionInput.AppMeter.AppMetricStrip.AppModal.AppNavList.AppNavigationMenu.AppNotificationCenter.AppNumberInput.AppOnboardingChecklist.AppOrgTree.AppOtpInput.AppPageHeader.AppPhoneNumberInput.AppPopover.AppPricingCard.AppProgress.AppQrCode.AppRadio.AppRadioGroup.AppRating.AppRecordPager.AppRelativeTime.AppRepeater.AppRequiredMark.AppResourceCard.AppResult.AppRichText.AppRouteError.AppRowActions.AppScoreScale.AppScrollbar.AppSearch.AppSectionCallToAction.AppSectionFaq.AppSectionFeatures.AppSectionHero.AppSectionLeadCapture.AppSectionLogos.AppSectionPricing.AppSectionTestimonials.AppSegmented.AppSelect.AppSeoHead.AppShell.AppShortcutLegend.AppShowMore.AppSkeleton.AppSkeletonLines.AppSkeletonRows.AppSlider.AppSortableList.AppSparkline.AppSpinner.AppSplash.AppSplitButton.AppSplitView.AppStatusBadge.AppStepper.AppSwitch.AppTablePagination.AppTableToolbar.AppTabs.AppTextarea.AppThemeToggle.AppTimePicker.AppTimeline.AppToast.AppToolbar.AppTooltip.AppTour.AppTreeView.AppTruncate.AppUpdateBar.AppWhatsNew.AppWizard.AppWorkspaceSwitcher`.split(`.`),xo=[`lint`,`rn-mainactivity-oncreate-bundle`,`spa-host-immutable-assets`,`oversize`,`advisory`,`endpoint-name`,`api-call`,`api-thunk`,`build-typecheck`,`library-copy`,`mobile-library-pin`,`root-file`,`web-folder`,`web-import-axios-types`,`tracking-plan`,`deprecated-import`,`react-string-ref`,`legacy-component-props`,`legacy-react-test-api`,`navigation-shim`,`legacy-node-sqlite`];function So(e,t=process.env){let n=String(t.REPO_CHECKS_ENFORCE??``).split(`,`).map(e=>e.trim()).filter(Boolean);return!xo.includes(e)||n.includes(`all`)||n.includes(e)}var Co={version:`0.89.0`,css:{rename:[[`--color-primary-text`,`--color-on-primary`],[`--color-primary-ink`,`--color-primary-text`],[`--color-primary-hover-text`,`--color-on-primary`],[`--color-on-primary-ink`,`--color-on-primary`],[`--color-border-light`,`--color-border-subtle`],[`--color-focus-border`,`--color-field-border-focus`],[`--color-success-active`,`--color-success-pressed`],[`--color-success-10`,`--color-success-soft`],[`--color-success-30`,`--color-success-border`],[`--color-warning-active`,`--color-warning-pressed`],[`--color-warning-10`,`--color-warning-soft`],[`--color-warning-30`,`--color-warning-border`],[`--color-danger-active`,`--color-danger-pressed`],[`--color-danger-10`,`--color-danger-soft`],[`--color-danger-30`,`--color-danger-border`],[`--color-info-active`,`--color-info-pressed`],[`--color-info-10`,`--color-info-soft`],[`--color-info-30`,`--color-info-border`],[`--color-accent`,`--color-warning`],[`--color-accent-soft`,`--color-warning-soft`],[`--color-close-filter`,`--wui-close-filter`],[`--color-pressed-overlay`,`--wui-pressed-overlay`],[`--wui-chart-grid`,`--color-chart-grid`],[`--wui-chart-axis`,`--color-chart-axis`],[`--wui-chart-label`,`--color-chart-label`],[`--wui-shadow-overlay`,`--wui-shadow-popover`],[`--wui-shadow-overlay-lg`,`--wui-shadow-modal`],[`--shadow-overlay`,`--wui-shadow-popover`],[`--shadow-overlay-lg`,`--wui-shadow-modal`],[`--shadow-sm`,`--wui-shadow-card`],[`--shadow-md`,`--wui-shadow-card`],[`--shadow-lg`,`--wui-shadow-card`],[`--wui-shadow-card-lifted`,`--wui-card-shadow-lifted`],[`--wui-shadow-card-lifted-hover`,`--wui-card-shadow-lifted-hover`],[`--wui-shadow-thumb`,`--wui-thumb-shadow`],[`--wui-shadow-thumb-hover`,`--wui-thumb-shadow-hover`],[`--radius-sm`,`--wui-radius-sm`],[`--radius`,`--wui-radius-md`],[`--radius-lg`,`--wui-radius-lg`],[`--radius-xl`,`--wui-radius-xl`],[`--wui-radius`,`--wui-radius-md`],[`--wui-control-height-sm`,`--wui-control-sm`],[`--wui-control-height`,`--wui-control-md`],[`--wui-control-height-lg`,`--wui-control-lg`],[`--wui-field-radius-sm`,`--wui-field-sm-radius`],[`--wui-field-radius`,`--wui-field-md-radius`],[`--wui-field-radius-lg`,`--wui-field-lg-radius`],[`--wui-ease-out-quart`,`--wui-ease-out`],[`--wui-font-body`,`--wui-font-ui`],[`--font-sans`,`--wui-font-ui`],[`--wui-fs-smb`,`--wui-fs-sm`],[`--wui-fs-48`,`--wui-fs-4xl`],[`--wui-fs-64`,`--wui-fs-5xl`]],reads:[[`--wui-chart-1`,`--color-chart-1`],[`--wui-chart-2`,`--color-chart-2`],[`--wui-chart-3`,`--color-chart-3`],[`--wui-chart-4`,`--color-chart-4`],[`--wui-chart-5`,`--color-chart-5`],[`--wui-chart-6`,`--color-chart-6`],[`--wui-chart-7`,`--color-chart-7`],[`--wui-chart-8`,`--color-chart-8`],[`--wui-chart-seq-0`,`--color-chart-seq-0`],[`--wui-chart-seq-1`,`--color-chart-seq-1`],[`--wui-chart-seq-2`,`--color-chart-seq-2`],[`--wui-chart-seq-3`,`--color-chart-seq-3`],[`--wui-chart-seq-4`,`--color-chart-seq-4`],[`--wui-chart-seq-5`,`--color-chart-seq-5`],[`--wui-chart-seq-6`,`--color-chart-seq-6`],[`--wui-chart-diverging-low`,`--color-chart-diverging-low`],[`--wui-chart-diverging-mid`,`--color-chart-diverging-mid`],[`--wui-chart-diverging-high`,`--color-chart-diverging-high`],[`--wui-chart-neutral`,`--color-chart-neutral`],[`--wui-dark-shadow-thumb`,`--wui-thumb-shadow`],[`--wui-dark-shadow-thumb-hover`,`--wui-thumb-shadow-hover`]],choose:{"--color-on-status-fill":`Use the ink of the fill's tone: --color-on-success, --color-on-warning, --color-on-danger or --color-on-info.`,"--color-on-status-strong":`Use the ink of the strong fill's tone: --color-on-success-strong, --color-on-warning-strong, --color-on-danger-strong or --color-on-info-strong.`,"--color-success-5":`No meaning holds this step: use --color-success-soft for a fill or --color-success-border for an edge.`,"--color-success-20":`No meaning holds this step: use --color-success-soft for a fill or --color-success-border for an edge.`,"--color-success-50":`No meaning holds this step: use --color-success-soft for a fill or --color-success-border for an edge.`,"--color-warning-5":`No meaning holds this step: use --color-warning-soft for a fill or --color-warning-border for an edge.`,"--color-warning-20":`No meaning holds this step: use --color-warning-soft for a fill or --color-warning-border for an edge.`,"--color-warning-50":`No meaning holds this step: use --color-warning-soft for a fill or --color-warning-border for an edge.`,"--color-danger-5":`No meaning holds this step: use --color-danger-soft for a fill or --color-danger-border for an edge.`,"--color-danger-20":`No meaning holds this step: use --color-danger-soft for a fill or --color-danger-border for an edge.`,"--color-danger-50":`No meaning holds this step: use --color-danger-soft for a fill or --color-danger-border for an edge.`,"--color-info-5":`No meaning holds this step: use --color-info-soft for a fill or --color-info-border for an edge.`,"--color-info-20":`No meaning holds this step: use --color-info-soft for a fill or --color-info-border for an edge.`,"--color-info-50":`No meaning holds this step: use --color-info-soft for a fill or --color-info-border for an edge.`},checkRole:[`--wui-shadow-popover`,`--wui-shadow-modal`],ownable:[`--color-accent`,`--color-accent-soft`,`--shadow-overlay`,`--shadow-overlay-lg`,`--shadow-sm`,`--shadow-md`,`--shadow-lg`,`--radius-sm`,`--radius`,`--radius-lg`,`--radius-xl`,`--font-sans`]},themeReads:[{kind:`path`,from:`colors.primaryHover`,to:`colors.primary-hover`},{kind:`path`,from:`colors.primaryPressed`,to:`colors.primary-pressed`},{kind:`path`,from:`colors.primaryMuted`,to:`colors.primary-soft`},{kind:`path`,from:`colors.secondaryHover`,to:`colors.neutral-hover`},{kind:`path`,from:`colors.secondary`,to:`colors.neutral`},{kind:`path`,from:`colors.error`,to:`colors.danger`},{kind:`path`,from:`colors.onPrimary`,to:`colors.on-primary`},{kind:`path`,from:`colors.onNeutral`,to:`colors.on-neutral-strong`},{kind:`path`,from:`colors.onSecondary`,to:`colors.on-neutral`},{kind:`path`,from:`colors.onSuccess`,to:`colors.on-success`},{kind:`path`,from:`colors.onWarning`,to:`colors.on-warning`},{kind:`path`,from:`colors.onError`,to:`colors.on-danger`},{kind:`path`,from:`colors.onInfo`,to:`colors.on-info`},{kind:`path`,from:`colors.onOverlay`,to:`colors.on-scrim`},{kind:`path`,from:`colors.toneText.primary`,to:`colors.primary-text`},{kind:`path`,from:`colors.toneText.success`,to:`colors.success-text`},{kind:`path`,from:`colors.toneText.warning`,to:`colors.warning-text`},{kind:`path`,from:`colors.toneText.error`,to:`colors.danger-text`},{kind:`path`,from:`colors.toneText.info`,to:`colors.info-text`},{kind:`path`,from:`colors.text.primary`,to:`colors.text-body`},{kind:`path`,from:`colors.text.secondary`,to:`colors.text-muted`},{kind:`path`,from:`colors.text.tertiary`,to:`colors.text-subtle`},{kind:`path`,from:`colors.text.inverse`,to:`colors.text-inverse`},{kind:`path`,from:`colors.text.strong`,to:`colors.text`},{kind:`path`,from:`colors.text.disabled`,to:`colors.text-disabled`},{kind:`path`,from:`colors.text.link`,to:`colors.link`},{kind:`path`,from:`colors.background.primary`,to:`colors.bg`},{kind:`path`,from:`colors.background.secondary`,to:`colors.bg-subtle`},{kind:`path`,from:`colors.background.tertiary`,to:`colors.bg-muted`},{kind:`path`,from:`colors.background.elevated`,to:`colors.surface`},{kind:`path`,from:`colors.background.overlay`,to:`colors.scrim`},{kind:`path`,from:`colors.background.inverse`,to:`colors.surface-inverse`},{kind:`path`,from:`colors.border.primary`,to:`colors.border`},{kind:`path`,from:`colors.border.secondary`,to:`colors.border-subtle`},{kind:`path`,from:`colors.border.focus`,to:`colors.focus-ring`},{kind:`path`,from:`colors.border.error`,to:`colors.danger-border`},{kind:`path`,from:`colors.border.width`,to:`size.border`},{kind:`path`,from:`colors.field.backgroundFocused`,to:`colors.field-bg-focus`},{kind:`path`,from:`colors.field.backgroundDisabled`,to:`colors.field-bg-disabled`},{kind:`path`,from:`colors.field.background`,to:`colors.field-bg`},{kind:`path`,from:`colors.field.borderFocused`,to:`colors.field-border-focus`},{kind:`path`,from:`colors.field.borderError`,to:`colors.field-border-error`},{kind:`path`,from:`colors.field.border`,to:`colors.field-border`},{kind:`path`,from:`colors.field.label`,to:`colors.field-label`},{kind:`path`,from:`colors.field.textDisabled`,to:`colors.field-text-disabled`},{kind:`path`,from:`colors.field.text`,to:`colors.field-text`},{kind:`path`,from:`colors.field.placeholderDisabled`,to:`colors.field-placeholder-disabled`},{kind:`path`,from:`colors.field.placeholder`,to:`colors.field-placeholder`},{kind:`path`,from:`colors.field.iconFocused`,to:`colors.field-icon-focus`},{kind:`path`,from:`colors.field.iconDisabled`,to:`colors.field-icon-disabled`},{kind:`path`,from:`colors.field.icon`,to:`colors.field-icon`},{kind:`path`,from:`colors.field.caret`,to:`colors.field-caret`},{kind:`path`,from:`colors.field.message`,to:`colors.field-message`},{kind:`path`,from:`colors.surface.pressed`,to:`colors.surface-pressed`},{kind:`path`,from:`colors.surface.hovered`,to:`colors.surface-hover`},{kind:`path`,from:`colors.surface.selected`,to:`colors.surface-selected`},{kind:`path`,from:`colors.surface.disabled`,to:`colors.surface-disabled`},{kind:`path`,from:`colors.glass.fill`,to:`colors.glass-fill`},{kind:`path`,from:`colors.glass.border`,to:`colors.glass-border`},{kind:`path`,from:`colors.glass.on`,to:`colors.on-glass`},{kind:`path`,from:`colors.glass.badge`,to:`colors.glass-badge`},{kind:`path`,from:`colors.skeleton.background`,to:`colors.skeleton`},{kind:`path`,from:`colors.skeleton.highlight`,to:`colors.skeleton-highlight`},{kind:`gone`,from:`colors.avatarPalette`,hint:"read colors[`avatar-${n}`] for n 1 to 8"},{kind:`path`,from:`typography.fontFamily.regular`,to:`font.ui.normal`},{kind:`path`,from:`typography.fontFamily.medium`,to:`font.ui.medium`},{kind:`path`,from:`typography.fontFamily.semibold`,to:`font.ui.semibold`},{kind:`path`,from:`typography.fontFamily.bold`,to:`font.ui.bold`},{kind:`gone`,from:`typography.fontFamily.display`,hint:`font.display is a face per weight: font.display.<weight>`},{kind:`prefix`,from:`typography.fontSize.`,to:`text.`},{kind:`prefix`,from:`typography.fontWeight.`,to:`weight.`},{kind:`prefix`,from:`typography.lineHeight.`,to:`leading.`},{kind:`prefix`,from:`typography.letterSpacing.`,to:`letter-spacing.`},{kind:`prefix`,from:`spacing.`,to:`space.`},{kind:`path`,from:`shadows.sm`,to:`shadow.card`},{kind:`path`,from:`shadows.md`,to:`shadow.elevated`},{kind:`path`,from:`shadows.lg`,to:`shadow.popover`},{kind:`path`,from:`shadows.xl`,to:`shadow.modal`},{kind:`gone`,from:`shadows.xs`,hint:`use shadow.card`},{kind:`gone`,from:`shadows.2xl`,hint:`use shadow.modal`},{kind:`gone`,from:`shadows.none`,hint:`omit the shadow`},{kind:`path`,from:`motion.duration.normal`,to:`motion.duration.default`},{kind:`path`,from:`motion.easing.standard`,to:`motion.ease.in-out`},{kind:`prefix`,from:`motion.easing.`,to:`motion.ease.`},{kind:`prefix`,from:`icons`,to:`settings.icons`},{kind:`prefix`,from:`gradients`,to:`settings.gradients`},{kind:`prefix`,from:`textVariants`,to:`settings.textVariants`},{kind:`path`,from:`maxFontSizeMultiplier`,to:`settings.maxFontSizeMultiplier`},{kind:`path`,from:`components.field.defaultVariant`,to:`settings.components.field.defaultVariant`},{kind:`path`,from:`components.field.requiredMarker`,to:`settings.components.field.requiredMarker`},{kind:`path`,from:`components.input.defaultVariant`,to:`settings.components.input.defaultVariant`},{kind:`path`,from:`components.input.defaultLabelMode`,to:`settings.components.input.defaultLabelMode`},{kind:`path`,from:`components.input.tintLabelOnFocus`,to:`settings.components.input.tintLabelOnFocus`},{kind:`path`,from:`components.input.shakeOnError`,to:`settings.components.input.shakeOnError`},{kind:`path`,from:`components.searchBar.defaultVariant`,to:`settings.components.search-bar.defaultVariant`},{kind:`path`,from:`components.select.defaultVariant`,to:`settings.components.select.defaultVariant`},{kind:`path`,from:`components.otpInput.shakeOnError`,to:`settings.components.otp-input.shakeOnError`},{kind:`path`,from:`components.optionSheet.selectedMarker`,to:`settings.components.option-sheet.selectedMarker`},{kind:`path`,from:`components.profilePicker.defaultTone`,to:`settings.components.profile-picker.defaultTone`},{kind:`path`,from:`components.profilePicker.defaultVariant`,to:`settings.components.profile-picker.defaultVariant`},{kind:`path`,from:`components.profilePicker.defaultAvatarTone`,to:`settings.components.profile-picker.defaultAvatarTone`},{kind:`path`,from:`components.slider.thumbPressAnimation`,to:`settings.components.slider.thumbPressAnimation`},{kind:`path`,from:`components.rating.pulseOnPress`,to:`settings.components.rating.pulseOnPress`},{kind:`path`,from:`components.stepper.pulseAnimation`,to:`settings.components.stepper.pulseAnimation`},{kind:`path`,from:`components.tooltip.enableScaleAnimation`,to:`settings.components.tooltip.enableScaleAnimation`},{kind:`path`,from:`components.toast.enableSwipeDismiss`,to:`settings.components.toast.enableSwipeDismiss`},{kind:`path`,from:`components.toast.defaultDurationMs`,to:`settings.components.toast.defaultDurationMs`},{kind:`gone`,from:`components.field.outlined`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.filled`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.underline`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.textColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.disabledTextColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.placeholderColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.fontWeight`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.requiredMarkerColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.input.fillColors`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.select.handleColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.select.fillColors`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.switch.thumbColor`,hint:`the thumb reads colors.thumb`},{kind:`gone`,from:`components.slider.thumbPressScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.slider.labelShowDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.slider.labelOpacity`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.swipeDismissThreshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.swipeVelocityThreshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.stackOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.stackScaleStep`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.stackMinScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.enterSpringDamping`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.enterSpringStiffness`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.enterSpringMass`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.iconCircleSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.iconGlyphText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.iconGlyphLineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.closeButtonSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.closeGlyphText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.closeButtonMarginLeft`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.containerPaddingLeft`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.iconGap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.textBlockPaddingRight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionsRowMarginTop`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionsRowGap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionButtonPaddingX`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionButtonPaddingY`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionButtonRadius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.formField.inlineLabelWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.numberInput.longPressDelayMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.numberInput.longPressIntervalMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressBar.indeterminateLoopDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressBar.indeterminateWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressBar.determinateAnimationDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressRing.animationDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressRing.strokeWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressRing.trackColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressRing.colorStops`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.rating.pulseScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomSheet.handleColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.choiceGroup.radius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.choiceGroup.selectedFillOpacity`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.filePicker.radius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.filePicker.thumbnailSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.filePicker.dashedBorderColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.profilePicker.badgeColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.profilePicker.badgeIconColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.inlineSelect.color`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.radius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.iconSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.pillHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.pillMaxWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.pillInset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.underlineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.floatingMargin`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.floatingRadius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.bubbleSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.bubbleLift`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.monthSlideDistance`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.monthSlideOutDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.monthSlideInDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.viewTransitionDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.headerPressDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.headerReleaseDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.navButtonSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.navText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.navTextLineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.dayCellPadding`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.dayInnerRadius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.yearCellPadding`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.yearInnerRadius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.decadeRangeMarginTop`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.footerButtonMinHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.monthSlideDistance`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.monthSlideOutDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.monthSlideInDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.navButtonSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.navText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.navTextLineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.footerButtonMinHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timePicker.hapticDebounceMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timePicker.handleWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timePicker.handleHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.borderWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.borderColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.statusBorderWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.statusBorderColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.ringWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.ringGap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.fontSizeRatio`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.text`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.fontWeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.accordion.cardPaddingY`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.sideSlotMinWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.collapseTranslateDistance`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.subtitleMarginTop`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.actionButtonSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.iconSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.dividerWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.dotSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.dotOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeMinWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgePaddingX`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeLineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.drawer.closeVelocityThreshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.drawer.dragActivationOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.imageGallery.maxScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.imageGallery.minScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.imageGallery.doubleTapScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.modal.scaleStartValue`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.stepper.circleSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.stepper.pulseSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.stepper.pulseDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.threshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.fullSwipeThreshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.dragActivationOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.rubberBandFactor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.failOffsetY`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.springDamping`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.springStiffness`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.springMass`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timeline.dotSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timeline.haloWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timeline.connectorGap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.gap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.screenPadding`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.pressAutoHideMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.arrowHalfWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.arrowHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.arrowCornerPadding`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.maxWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.lineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.exitDurationMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.segmentedControl.radius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tabs.radius`,hint:`fixed in the library since 0.89.0`},{kind:`kebab`,under:`components`,names:{searchBar:`search-bar`,emptyState:`empty-state`,listItem:`list-item`,otpInput:`otp-input`,segmentedControl:`segmented-control`,floatingActionButton:`floating-action-button`}}],props:[{package:`@webority/mobile-ui`,props:[`tone`,`variant`],from:`error`,to:`danger`}],componentProps:[],propValues:[{package:`@webority/ui-react`,components:[`AppInput`,`AppSelect`,`AppCountrySelect`],prop:`floatingLabel`,true:`border`,false:`off`}],propSplits:[{package:`@webority/ui-react`,components:[`AppInput`],prop:`passwordRequirements`,on:`shown`,off:`off`,into:`passwordPolicy`}],razorAttributes:[{tags:[`app-input`,`app-select`,`app-country-select`],attribute:`floating-label`,values:{true:`border`,false:`off`}},{tags:[`app-input`],attribute:`password-requirements`,values:{true:`shown`,false:`off`}}]},wo=`--color-primary-text`,To=new Set([...Co.css.rename.map(([e])=>e),...Co.css.reads.map(([e])=>e),...Object.keys(Co.css.choose)].filter(e=>e!==wo)),Eo=RegExp(`(?<![\\w-])(${[...To].join(`|`)})(?![\\w-])`,`g`),Do=/* @__PURE__ */ RegExp(`(?<![\\w-])(--wui-chart-diverging-|--wui-chart-seq-|--wui-chart-)\\$\\{`,`g`),Oo=/* @__PURE__ */ new Set([`node_modules`,`dist`,`build`,`out`,`bin`,`obj`,`.git`,`.next`,`coverage`]),ko=/* @__PURE__ */ new Set([`.css`,`.scss`,`.sass`,`.less`,`.js`,`.jsx`,`.ts`,`.tsx`,`.cshtml`,`.razor`,`.html`,`.vue`]),Ao=(e,t)=>Oo.has(e)||e===`lib`&&c(t)===`wwwroot`,jo=e=>ko.has(u(e).toLowerCase());function Mo(e,t=[]){for(let n of i(e,{withFileTypes:!0})){let r=d(e,n.name);n.isDirectory()?Ao(n.name,e)||Mo(r,t):jo(n.name)&&t.push(r)}return t}function No(e,t){for(let n=l(e);n.length>t.length;n=l(n))if(Ao(c(n),l(n)))return!0;return!1}function Po(e){let n=v(`git`,[`ls-files`,`-z`,`--cached`,`--others`,`--exclude-standard`,`--`,`.`],{cwd:e,encoding:`utf8`,windowsHide:!0,maxBuffer:67108864});return n.status===0?n.stdout.split(`\0`).filter(e=>e&&jo(e)).map(t=>d(e,t.split(`/`).join(g))).filter(n=>!No(n,e)&&t(n)):Mo(e)}function Fo(e){let t=e.slice(0,3).join(`, `),n=e.length-3;return n>0?`${t} and ${n} more`:t}function Io(e,t){let n=[];for(let i of Po(e)){let e=r(i,`utf8`),a=[];for(let t of e.matchAll(Eo))a.push({name:t[1]??``,index:t.index});for(let t of e.matchAll(Do))a.push({name:`${t[1]??``}\${`,index:t.index});if(a.length===0)continue;a.sort((e,t)=>e.index-t.index);let o=[...new Set(a.map(e=>e.name))],s=a[0]?.index??0,c=m(t,i).split(`\\`).join(`/`),l=e.slice(0,s).split(`
94
- `).length;n.push([`stale-theme-name:${c}`,`${c}:${l} reads pre-0.89.0 theme names (${Fo(o)}). Run webority upgrade 0.89.0 --path <folder> once for the product's style and source folders, then webority brand; no alias for the old names is shipped.`])}return n}var Lo=[`web`,`phone`,`razor`,`node`].map(e=>`${N}/tsconfig/${e}.json`),Ro=`biome.jsonc`,zo=d(`.webority`,`baselines`,`exceptions.json`),Bo=d(`.webority`,`baselines`,`suppressions-baseline.json`),Vo=`js`,Ho=[`strict`,`noUncheckedIndexedAccess`,`exactOptionalPropertyTypes`,`noImplicitOverride`,`noImplicitReturns`,`noFallthroughCasesInSwitch`,`noUnusedLocals`,`noUnusedParameters`,`noUncheckedSideEffectImports`,`erasableSyntaxOnly`,`verbatimModuleSyntax`,`isolatedModules`,`forceConsistentCasingInFileNames`],Uo=/^(?:\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?|workspace:.+)$/,Wo=/* @__PURE__ */ new Map([[`off`,0],[`info`,1],[`warn`,2],[`error`,3]]),Go=/\.[cm]?[jt]sx?$/,Ko=/(?:\/\/|\/\*)\s*(?:@ts-(expect-error|ignore|nocheck)\b|biome-ignore\s+([^\s:]+))/g,qo=/^EX-[1-9][0-9]*$/,Jo=/^(?:TASK|BUG|FEATURE)-[0-9]+$|^decisions\/D-[0-9]+-/,Yo=[{kind:`scripts`,globs:[`scripts/**`,`**/scripts/**`]},{kind:`tests`,globs:[`**/*.test.*`,`**/test/**`,`**/__tests__/**`]},{kind:`tool config`,globs:[`**/*.config.js`,`**/*.config.mjs`,`**/*.config.ts`,`**/jest.setup.js`,`**/prebuild.js`]},{kind:`samples`,globs:[`samples/**`]},{kind:`command-line tools`,globs:[`**/cli.ts`,`**/cli/**`]}];function P(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function F(e){return Lt(r(e,`utf8`))}function Xo(e,t){return m(e,t).split(`\\`).join(`/`)}function Zo(e,n,r){let i=e;for(;;){for(let e of r)if(t(d(i,e)))return d(i,e);if(i===n)return null;let e=l(i);if(e===i)return null;i=e}}function Qo(e,n,r){let i=e;for(;;){let e=d(i,`node_modules`,N,r);if(t(e))return e;if(i===n)return null;let a=l(i);if(a===i)return null;i=a}}function $o(e,t){if(P(e))for(let n of[`dependencies`,`devDependencies`]){let r=e[n];if(!P(r))continue;let i=r[t];if(typeof i==`string`)return i}}function es(e){return!P(e)||!P(e.compilerOptions)?{}:e.compilerOptions}function ts(e){if(typeof e==`string`)return e;if(Array.isArray(e)){let t=e[0];return typeof t==`string`?t:void 0}if(P(e)&&typeof e.level==`string`)return e.level}function ns(e){let t=/* @__PURE__ */ new Map;if(!P(e))return t;for(let[n,r]of Object.entries(e))if(P(r))for(let[e,i]of Object.entries(r)){let r=ts(i);r!==void 0&&t.set(`${n}/${e}`,r)}return t}function rs(e){return[e??[]].flat().filter(e=>typeof e==`string`&&!e.startsWith(`!`))}function is(e,t){let n=[e.includes??[]].flat().filter(e=>typeof e==`string`&&e.startsWith(`!`)).map(e=>e.slice(1)),r=rs(e.includes);return t.filter(e=>r.some(t=>f(e,t))&&!n.some(t=>f(e,t)))}var as=/* @__PURE__ */ new Map;function os(e,n){let r=`${e}\0${n}`,i=as.get(r);if(i!==void 0)return i;let a=!1,o=d(n,`package.json`);if(t(o)){let e=F(o);a=P(e)&&e.bin!==void 0}else n!==e&&l(n)!==n&&(a=os(e,l(n)));return as.set(r,a),a}function ss(e,t){return Yo.some(e=>e.globs.some(e=>f(t,e)))?!0:os(e,l(d(e,t)))}function cs(e,t,n){let r=ns(e),i=/* @__PURE__ */ new Map;for(let e of t){if(!P(e))continue;let t=is(e,n);if(t.length===0)continue;let a=e=>{let n=i.get(e)??/* @__PURE__ */ new Set;for(let e of t)n.add(e);i.set(e,n)},o=P(e.linter)?e.linter.rules:void 0;if(P(o)){for(let[e,t]of Object.entries(o))if(typeof t==`string`){let n=Wo.get(t);if(n===void 0)continue;for(let[t,i]of r){let r=Wo.get(i);t.startsWith(`${e}/`)&&r!==void 0&&r>n&&a(e)}}else if(P(t))for(let[n,i]of Object.entries(t)){let t=`${e}/${n}`,o=ts(i),s=r.get(t);if(o===void 0||s===void 0)continue;let c=Wo.get(o),l=Wo.get(s);c!==void 0&&l!==void 0&&c<l&&a(t)}}}return new Map([...i].map(([e,t])=>[e,[...t]]))}function ls(e,n,r,i){let a=[],o=d(n,`tsconfig.json`),s=Xo(e,o),u=(e,t)=>r.covers(e,t)!==null,f=null;if(t(o))try{f=F(o)}catch{return[[`standards:extends`,`tsconfig.json does not parse as JSON. react.md, Language: fix the syntax; the build type-checks with it.`]]}let p=P(f)?f.extends:void 0,m=typeof p==`string`?[p]:Array.isArray(p)?p.filter(e=>typeof e==`string`):[],h=Lo.find(e=>m.includes(e));f!==null&&h===void 0&&!u(`tsconfig:extends`,s)&&a.push([`standards:extends`,`tsconfig.json does not extend a ${N} preset. react.md, Language: add "extends": "${N}/tsconfig/web.json" (or phone, razor or node for that surface) and keep only paths, include and types.`]);let g=d(n,`package.json`),_=$o(t(g)?F(g):void 0,N);_===void 0&&h!==void 0?a.push([`standards:pin`,`package.json does not declare ${N}, which tsconfig.json extends. Add it at an exact version: pnpm add -D --save-exact ${N}.`]):_!==void 0&&!Uo.test(_)&&a.push([`standards:pin`,`package.json pins ${N} to "${_}", not an exact version. shared-packages.md: pin every @webority/* package exactly; pnpm add -D --save-exact ${N}@<x.y.z>.`]);let v=h===void 0?null:Qo(n,e,h.slice(N.length+1));if(h!==void 0&&v===null&&a.push([`standards:pin`,`${N} is declared but not installed beside this folder. Run pnpm install.`]),v!==null){let e=es(F(v)),t=es(f);for(let n of Ho)e[n]===!0&&t[n]===!1&&!u(`tsconfig:${n}`,s)&&a.push([`standards:loosened:${n}`,`tsconfig.json sets compilerOptions.${n} to false, looser than ${N}. react.md, Language: delete the line so the preset's true applies; a relaxed option needs an exceptions.json entry with rule "tsconfig:${n}".`])}let y=Zo(n,e,[`biome.json`,`biome.jsonc`]),b=Qo(n,e,Ro);if(y!==null&&b!==null){let t;try{t=F(y)}catch{t=void 0}let n=P(t)&&Array.isArray(t.overrides)?t.overrides:[],o=F(b),s=P(o)&&P(o.linter)?o.linter.rules:void 0,u=Xo(e,l(y)),d=u===``?``:`${u}/`,f=i.filter(e=>e.startsWith(d)).map(e=>e.slice(d.length));for(let[t,i]of cs(s,n,f)){let n=i.filter(n=>!ss(e,d+n)&&r.covers(`lint/${t}`,d+n)===null);n.length!==0&&a.push([`standards:override:${t}`,`${c(y)} lowers ${N}'s rule lint/${t} for shipped files: ${n.slice(0,5).join(`, `)}${n.length>5?` and ${n.length-5} more`:``}. react.md, Language: narrow the override to the files that need it and register each in exceptions.json with rule "lint/${t}" and its exact path; dev-only paths (${Yo.map(e=>e.kind).join(`, `)}) need no entry.`])}}return a}function us(e){let n=d(e,Bo);if(!t(n))return{};let r=F(n);if(!P(r))throw Error(`webority-repo-checks: .webority/baselines/suppressions-baseline.json must be a JSON object.`);return r}function ds(e,t){let n=e[t];if(!P(n))return 0;let r=n[Vo];return typeof r==`number`?r:0}function fs(e,n,i){let a=us(e),o=[];for(let s of n){if(!Go.test(s))continue;let n=d(e,s);if(!t(n))continue;let c=0;for(let e of r(n,`utf8`).split(`
95
- `))for(let t of e.matchAll(Ko)){let e=t[1]===void 0?t[2]??`biome-ignore`:`@ts-${t[1]}`;i.covers(e,s)===null&&(c+=1)}let l=ds(a,s);c>l&&o.push([`suppression:${s}`,`${s} holds ${c} suppression comment(s) with no registered exception; suppressions-baseline.json allows ${l}. Fix the code and delete the comment, or add an exceptions.json entry for its rule covering this file. The baseline is a ceiling that only shrinks.`])}return o}function ps(e,t){return e===t?!0:/[*?[]/.test(e)?f(t,e):t.startsWith(e.endsWith(`/`)?e:`${e}/`)}function ms(e){if(!Array.isArray(e))throw Error(`webority-repo-checks: ${zo} must be a JSON array of entries.`);return e.map((e,t)=>{let n=`${zo} entry ${t+1}`;if(!P(e))throw Error(`webority-repo-checks: ${n} must be an object.`);let{id:r,rule:i,paths:a,reason:o,approvedBy:s}=e;if(typeof r!=`string`||!qo.test(r))throw Error(`webority-repo-checks: ${n} needs an id of the form EX-<n>.`);if(typeof i!=`string`||i.length===0)throw Error(`webority-repo-checks: ${n} (${r}) needs a rule.`);if(!Array.isArray(a)||a.length===0||!a.every(e=>typeof e==`string`&&e.length>0))throw Error(`webority-repo-checks: ${n} (${r}) needs one or more non-empty paths.`);if(typeof o!=`string`||o.length<10)throw Error(`webority-repo-checks: ${n} (${r}) needs a reason of at least ten characters.`);if(typeof s!=`string`||!Jo.test(s))throw Error(`webority-repo-checks: ${n} (${r}) needs approvedBy as TASK-n, BUG-n, FEATURE-n or decisions/D-n-.`);return{id:r,rule:i,paths:a.filter(e=>typeof e==`string`)}})}function hs(e){let n=d(e,zo),r=t(n)?ms(F(n)):[];return{covers(e,t){let n=r.find(n=>n.rule===e&&n.paths.some(e=>ps(e,t)));return n?n.id:null}}}var gs=`tracked-case`;function _s(e,t){let n=/* @__PURE__ */ new Map,r=t=>{let r=n.get(t);if(r===void 0){try{r=new Set(i(d(e,t)))}catch{r=/* @__PURE__ */ new Set}n.set(t,r)}return r},a=/* @__PURE__ */ new Set,o=[];for(let e of t){let t=e.split(`/`),n=`.`;for(let e=0;e<t.length;e++){let i=t[e]??``,s=r(n);if(s.has(i)){n=n===`.`?i:`${n}/${i}`;continue}let c=i.toLowerCase(),l=[...s].find(e=>e.toLowerCase()===c);if(l!==void 0){let n=t.slice(0,e+1).join(`/`);if(!a.has(n)){a.add(n);let r=[...t.slice(0,e),l].join(`/`);o.push([`${gs}:${n}`,`tracked as ${n} but on disk as ${r}; a Linux checkout cannot find the import. Run git mv "${n}" "${r}" so git records the rename.`])}}break}}return o}var vs=`@webority/analytics/fleet`,ys=`.webority/tracking-plan.json is not a JSON object. product-analytics.md: the plan is one JSON object with "extends": "${vs}".`;function bs(e){if(!t(d(e,`.github`,`workflows`,`production.yml`)))return[];let n=d(e,`.webority`,`tracking-plan.json`);if(!t(n))return[[`tracking-plan:missing`,`.webority/tracking-plan.json is missing. product-analytics.md: a product repo keeps a tracking plan with "extends": "${vs}".`]];let i;try{i=JSON.parse(r(n,`utf8`))}catch{return[[`tracking-plan:invalid`,ys]]}return typeof i!=`object`||!i||Array.isArray(i)?[[`tracking-plan:invalid`,ys]]:!(`extends`in i)||i.extends!==vs?[[`tracking-plan:extends`,`.webority/tracking-plan.json does not extend ${vs}. product-analytics.md: set "extends": "${vs}".`]]:[]}function xs(e){let t=[];return Ss(d(e,`src`,`components`,`base`))&&t.push([`web-folder:components/base`,`src/components/base/ exists. react.md, Folder layout: never a components/base/ folder; primitives come from @webority/ui-react and the root ErrorBoundary from @webority/web-core. Import those and delete the folder.`]),Ss(d(e,`src`,`components`,`features`))&&t.push([`web-folder:components/features`,`src/components/features/ is a flat catch-all. react.md, Folder layout: components/<feature>/ holds a component two or more screens of one feature share; move each component to components/<feature>/, or into its screen's file when one screen uses it.`]),t}function Ss(e){return o(e,{throwIfNoEntry:!1})?.isDirectory()===!0}function Cs(){let e=JSON.parse(r(new URL(`../package.json`,import.meta.url),`utf8`)),t=typeof e==`object`&&e&&`version`in e?e.version:void 0;if(typeof t!=`string`)throw Error(`webority-repo-checks: its own package.json has no version.`);return t}var I=e=>e.split(`\\`).join(`/`),ws=(e,t)=>I(m(e,t))||`.`;function L(e){return typeof e==`object`&&!!e}function Ts(e){return L(e)&&Object.values(e).every(e=>typeof e==`string`)}var Es=[`name`,`main`,`module`,`source`,`packageManager`],Ds=[`dependencies`,`devDependencies`,`peerDependencies`],Os=[`name`,`version`,`onFail`];function ks(e,t){let n=e=>{throw Error(`webority-repo-checks: ${t} has a ${e} of the wrong type. Fix the file, then run the checks again.`)};if(!L(e))return n(`top level`);let r={};for(let t of Es){let i=e[t];if(i!==void 0){if(typeof i!=`string`)return n(t);r[t]=i}}for(let t of Ds){let i=e[t];if(i!==void 0){if(!Ts(i))return n(t);r[t]=i}}let i=e.exports;if(i!==void 0){if(typeof i!=`string`&&!L(i))return n(`exports`);r.exports=i}let a=e.devEngines;if(a!==void 0){if(!L(a))return n(`devEngines`);let e=a.packageManager;if(e===void 0)r.devEngines={};else{if(!L(e))return n(`devEngines.packageManager`);let t={};for(let r of Os){let i=e[r];if(i!==void 0){if(typeof i!=`string`)return n(`devEngines.packageManager.${r}`);t[r]=i}}r.devEngines={packageManager:t}}}return r}function As(e){if(!t(e))return null;let n;try{n=JSON.parse(r(e,`utf8`))}catch(t){let n=t instanceof Error?t.message:String(t);throw Error(`webority-repo-checks: ${e} is not valid JSON (${n}). Fix the file, then run the checks again.`)}return ks(n,e)}function js(e,t){let n=v(`git`,t,{cwd:e,encoding:`utf8`,windowsHide:!0,maxBuffer:67108864});return n.status===0?n.stdout:null}function Ms(e){let t=js(e,[`rev-parse`,`--show-toplevel`]);return t?t.trim():null}function R(e,t){let n=js(e,[`ls-files`,`-z`,`--`,...t.flatMap(e=>[e,`:(glob)**/${e}`])]);return n?[...new Set(n.split(`\0`).filter(Boolean))]:[]}function Ns(e){let t=js(e,[`ls-files`,`-z`]);return t?t.split(`\0`).filter(Boolean):[]}function Ps(e,n){let r=e?.dependencies??{};if(po.some(e=>r[e]))return null;let i=n&&(t(d(n,`android`))||t(d(n,`ios`)));return r[`react-native`]&&i?`mobile`:r[`react-dom`]&&(e?.devDependencies?.[`react-native-web`]||r[`react-native-web`])?`demo`:r[`react-native`]?`mobile`:r[`react-dom`]?`web`:null}var Fs=/^https:\/\/\S+-\d+\.\d+\.\d+(?:-[0-9A-Za-z.]+)?\.(?:tgz|tar\.gz)$/,Is=e=>/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/.test(e)||/^(?:workspace:\*|file:|link:)/.test(e)||Fs.test(e),Ls=/* @__PURE__ */ new Set([`@biomejs/biome`,`@webority/biome-config`]),Rs=e=>/^(?:workspace:|file:|link:)/.test(e);function zs(e,t,n){let r=[],i={...e.dependencies,...e.devDependencies},a=Object.keys(i);for(let[e,n]of co[t])i[e]&&r.push([`banned:${e}`,`"${e}" is a dependency. ${n}.`]);for(let[e,n]of lo[t])for(let t of a.filter(t=>t.startsWith(e)))r.push([`banned:${t}`,`"${t}" is a dependency. ${n}.`]);for(let[e,n,a]of uo[t])i[e]&&i[n]&&r.push([`banned:${e}`,`"${e}" is a dependency beside ${n}. ${a}.`]);for(let[e,a]of fo[t])(Ls.has(e)?n:i)[e]||r.push([`required:${e}`,`"${e}" is not a dependency. ${a}.`]);let o=t===`mobile`?a:a.filter(e=>e.startsWith(`@webority/`)||e===`bootstrap`);for(let e of o){let t=String(i[e]);Is(t)||r.push([`not-exact:${e}`,`"${e}": "${t}" is a range. Pin the version the lockfile holds, without ^ or ~.`])}for(let e of go){let t=e.filter(e=>i[e]&&!Rs(String(i[e])));if(new Set(t.map(e=>String(i[e]).replace(/^[\^~]/,``))).size>1){let n=t.map(e=>`${e}@${i[e]}`).join(`, `);r.push([`lockstep:${e[0]}`,`${n} differ. These publish together at one version; move every pin in the set together.`])}}return r}function z(e,n,r){let i=e;for(;;){for(let e of r)if(t(d(i,e)))return d(i,e);if(i===n)return null;let e=l(i);if(e===i)return null;i=e}}function Bs(e,t){let n=e,i=null;for(;;){let e=z(n,t,[`biome.json`,`biome.jsonc`]);if(!e)return i;i=l(e);let a;try{a=Lt(r(e,`utf8`))}catch{return i}let o=l(i);if(a.root!==!1||i===t||o===i)return i;n=o}}function Vs(e,t,n){let r=Bs(e,t),i=r&&r!==e?As(d(r,`package.json`)):null;return i?{...i.dependencies,...i.devDependencies}:n}function Hs(){let e=process.env.WEBORITY_PREREQUISITES??d(y(),`.claude`,`prerequisites.json`);if(!t(e))return null;let n=JSON.parse(r(e,`utf8`)),i=Array.isArray(n)?n.find(e=>L(e)&&e.name===`pnpm`):void 0,a=L(i)?i.minVersion:void 0;if(typeof a!=`string`||!/^\d+\.\d+\.\d+$/.test(a))throw Error(`webority-repo-checks: ${e} has no pnpm entry with an x.y.z minVersion.`);return a}function Us(e,n){let i=[],a=z(e,n,[`pnpm-lock.yaml`]);a||i.push([`pnpm:no-lockfile`,`No pnpm-lock.yaml in this folder or above it. react.md: every JS repo installs with pnpm.`]);let o=a?l(a):e,s=As(d(o,`package.json`))??As(d(e,`package.json`)),c=s?.devEngines?.packageManager;c?.name===`pnpm`&&/^\d+\.\d+\.\d+$/.test(c?.version??``)&&c?.onFail===`error`||i.push([`pnpm:dev-engines`,`package.json lacks "devEngines": { "packageManager": { "name": "pnpm", "version": "<x.y.z>", "onFail": "error" } }. react.md: Package manager.`]);let u=Hs();u&&/^\d+\.\d+\.\d+$/.test(c?.version??``)&&c?.version!==u&&i.push([`pnpm:version`,`package.json pins pnpm ${c?.version} in devEngines.packageManager.version; the version in the machine prerequisites list is ${u}. Set it to ${u} and run pnpm install. react.md: Package manager.`]),s?.packageManager!==void 0&&i.push([`pnpm:package-manager`,`package.json sets "packageManager", which pnpm ignores beside devEngines. Move its version into devEngines.packageManager.version and delete it. react.md: Package manager.`]);let f=d(o,`pnpm-workspace.yaml`);if(!t(f))i.push([`pnpm:no-workspace-file`,`No pnpm-workspace.yaml beside the lockfile. react.md: it holds engineStrict, strictPeerDependencies and allowBuilds.`]);else{let e=r(f,`utf8`);/^engineStrict:\s*true\s*$/m.test(e)||i.push([`pnpm:engine-strict`,`pnpm-workspace.yaml lacks engineStrict: true. react.md: a Node mismatch must fail the install.`]),/^strictPeerDependencies:\s*true\s*$/m.test(e)||i.push([`pnpm:strict-peers`,`pnpm-workspace.yaml lacks strictPeerDependencies: true. react.md: a peer conflict must fail the install.`])}for(let n of[`package-lock.json`,`yarn.lock`])t(d(e,n))&&i.push([`pnpm:${n}`,`${n} sits in this folder. react.md: pnpm only; seed pnpm-lock.yaml with pnpm import, then delete it.`]);return i}function Ws(e,t,n,r){if((e.javascript?.globals??[]).includes(r))return!0;let i=[`index.js`,`index.jsx`,`index.ts`,`index.tsx`].map(e=>I(m(t,d(n,e))));return(e.overrides??[]).some(e=>(e.javascript?.globals??[]).includes(r)&&[e.includes??[]].flat().some(e=>!String(e).startsWith(`!`)&&i.some(t=>f(t,String(e)))))}function Gs(e,t,n,i){let a=z(e,t,[`biome.json`,`biome.jsonc`]);if(!a)return[[`biome:missing`,`No biome.json in this folder or above it. react.md: one committed root biome.json.`]];let o;try{o=Lt(r(a,`utf8`))}catch{return[[`biome:unreadable`,`${c(a)} does not parse.`]]}let s=[],u=[o.extends??[]].flat();return u.some(e=>e===`@webority/biome-config/biome.jsonc`||String(e).endsWith(`code-standards/biome.jsonc`))||s.push([`biome:extends`,`${c(a)} does not extend "${_o}". react.md: every repo extends the shared preset.`]),i&&!u.some(e=>e===`@webority/biome-config/biome.phone.jsonc`||String(e).endsWith(`code-standards/biome.phone.jsonc`))&&s.push([`biome:phone-extends`,`${c(a)} does not extend "${vo}". A React Native app extends the phone preset after the shared one, base first: "extends": ["${_o}", "${vo}"] (the header of biome.phone.jsonc).`]),o.formatter?.lineEnding&&s.push([`biome:line-ending`,`${c(a)} sets formatter.lineEnding. react.md: inherit it from the shared preset, never set it.`]),o.linter?.rules&&Object.keys(o.linter.rules).length>0&&s.push([`biome:root-rules`,`${c(a)} sets linter.rules at the root. react.md: never a rule's severity at the root; a per-path exception goes in overrides.`]),n===`mobile`&&!Ws(o,l(a),e,`__DEV__`)&&s.push([`biome:dev-global`,`${c(a)} lacks "__DEV__" in javascript.globals. react-native.md: Debugging and agent access.`]),s}var Ks=d(`node_modules`,`@biomejs`,`biome`,`bin`,`biome`);function qs(e,t,n){if(e.start?.line)return e.start.line;if(!Array.isArray(e.span))return null;let i=r(d(t,n)),a=1;for(let t=0;t<(e.span[0]??0);t++)i[t]===10&&a++;return a}function Js(e){try{return a(e)}catch{return null}}function Ys(e,t,n){let r=n.split(`/`),i=n.startsWith(`@`)?r.slice(0,2).join(`/`):r[0]??``,a=n.slice(i.length)?`.${n.slice(i.length)}`:`.`,o=z(e,t,[d(`node_modules`,i)]),s=o&&Js(o);if(!s)return null;let c=As(d(s,`package.json`));if(!c)return null;let l=(typeof c.exports==`string`?{".":c.exports}:c.exports)?.[a]??(a===`.`?c.module??c.main:null);if(L(l)&&(l=l.import??l.default),typeof l!=`string`)return null;let u=a===`.`&&typeof c.source==`string`?c.source:l.replace(Xs,`src/`);return{pkgDir:s,entry:d(s,l),sourcePath:d(s,u),workspace:Zs(t,s)}}var Xs=/^(?:\.\/)?(?:dist|lib|build)\//;function Zs(e,t){let n;try{n=a(t)}catch{return!1}let r=m(a(e),n);return!r.startsWith(`..`)&&!r.split(/[\\/]/).includes(`node_modules`)}function Qs(e){try{return o(e).isFile()}catch{return!1}}var $s=[`.ts`,`.tsx`,`.js`,`.jsx`,`.mjs`],ec=[`index.ts`,`index.tsx`,`index.js`,`index.jsx`,`index.mjs`];function tc(e){let t=e.replace(/\.(?:[cm]?jsx?|tsx?)$/,``);return[e,...$s.map(e=>t+e),...ec.map(t=>d(e,t))].find(Qs)??null}function nc(e){return e?e.workspace?tc(e.sourcePath):e.entry:null}function rc(e,t,n,r){let i=Ys(e,t,n);if(!i)return!1;let a=/* @__PURE__ */ new Set,o=nc(i);return o===null||sc(o,r,t,a)}function ic(e,t,n,r){let i=lc(l(t),n);return i!==null&&sc(i,r,e,/* @__PURE__ */ new Set)}var ac=/\bexport\s*(?:(\*)(?:\s*as\s+([\w$]+))?|\{([^}]*)\})(?:\s*from\s*["']([^"']+)["'])?/g,oc=[``,`.js`,`.mjs`,`.cjs`,`.jsx`,`.ts`,`.tsx`,`/index.js`,`/index.mjs`,`/index.jsx`,`/index.ts`,`/index.tsx`];function sc(e,t,n,i){if(i.has(e))return!1;i.add(e);let a;try{a=r(e,`utf8`)}catch{return!1}if(RegExp(`\\bexport\\s+(?:async\\s+)?(?:const|let|var|function\\*?|class)\\s+${t}\\b`).test(a)||t==="default"&&/\bexport\s+default\b/.test(a)||RegExp(`\\b(?:module\\.)?exports\\.${t}\\s*=|Object\\.defineProperty\\(\\s*(?:module\\.)?exports\\s*,\\s*["']${t}["']|\\bget\\s+${t}\\s*\\(`).test(a))return!0;for(let[,r,o,s,c]of a.matchAll(ac))if(r){if(o===t||o===void 0&&c!==void 0&&cc(e,c,t,n,i))return!0}else if(s!==void 0)for(let r of s.split(`,`)){let[a=``,o]=r.trim().replace(/^type\s+/,``).split(/\s+as\s+/);if((o??a)===t&&(c===void 0||cc(e,c,a,n,i)))return!0}return!1}function cc(e,t,n,r,i){let a=t.startsWith(`.`)?lc(l(e),t):nc(Ys(l(e),r,t));return a!==null&&sc(a,n,r,i)}function lc(e,t){let n=d(e,t);for(let e of oc)if(o(n+e,{throwIfNoEntry:!1})?.isFile())return n+e;return null}function uc(e,n){let r=z(e,n,[Ks]);if(!r)return[];let i=t(d(e,`src`))?`src`:`.`,a=v(process.execPath,[r,`lint`,`--only=correctness/noUnresolvedImports`,`--reporter=json`,`--max-diagnostics=none`,`--colors=off`,i],{cwd:e,encoding:`utf8`,maxBuffer:67108864,windowsHide:!0}),o=dc(a.stdout??``);if(o===null)return[[`missing-export:unreadable`,`Biome's report could not be read: ${String(a.stderr||a.stdout||``).slice(0,200)}`]];let s=/* @__PURE__ */ new Map;for(let t of o){let r=String(t.message??``);if(!r.includes(`has no export named`))continue;let i=r.match(/^The (?:path|module) (\S+) has no export named (\w+)/);if(!i){s.set(`unreadable`,[`missing-export:unreadable`,`Biome reported a missing export in a form this check cannot read: ${r.slice(0,200)}`]);continue}let a=i[1]??``,o=i[2]??``;if((Object.hasOwn(yo,a)?yo[a]:void 0)?.includes(o))continue;let c=h(e,String(t.location?.path));if(a.startsWith(`.`)?ic(n,c,a,o):rc(e,n,a,o))continue;let l=I(m(e,c)),u=qs(t.location??{},e,l),d=u?`${l}:${u}`:l,f=`missing-export:${l}`,p=`${d} imports ${o} from ${a}, which does not export it. Import the name the module exports (a default export is imported without braces).`;s.set(`${f}\0${p}`,[f,p])}return[...s.values()]}function dc(e){try{let t=JSON.parse(e);return!L(t)||!Array.isArray(t.diagnostics)?null:t.diagnostics}catch{return null}}function fc(e){let t=d(e,`node_modules`,`@webority`,`ui-react`);try{let e=d(t,`package.json`),n=ks(JSON.parse(r(e,`utf8`)),e),i=typeof n.module==`string`?n.module:typeof n.main==`string`?n.main:`dist/index.js`,a=r(d(t,i),`utf8`),o=new Set([...a.matchAll(/App[A-Z][A-Za-z0-9]*/g)].map(e=>e[0]));if(o.size>0)return o}catch(e){if(pc(e)!==`ENOENT`)throw e}return new Set(bo)}function pc(e){return L(e)?e.code:void 0}function mc(e){return i(e,{withFileTypes:!0}).flatMap(t=>t.isDirectory()?mc(d(e,t.name)):[d(e,t.name)])}function hc(e){try{return JSON.parse(r(d(e,`package.json`),`utf8`)).name===`@webority/ui-root`}catch{return!1}}function gc(e){let n=d(e,`src`);if(!t(n))return[];let r=fc(e),i=[];for(let t of mc(n)){if(![`.jsx`,`.tsx`].includes(u(t)))continue;let n=c(t).split(`.`)[0]??``;if(r.has(n)){let r=I(m(e,t));i.push([`catalogue-copy:${r}`,`${r} is named like the @webority/ui-react export ${n}. bootstrap-ui.md: use the catalogue component, never a local copy.`])}}return i}var _c=/gradle\.startParameter\.taskNames[^\n]*["']release["']/,vc=/throw\s+new\s+GradleException\s*\(/,yc=/^\s*edgeToEdgeEnabled\s*=\s*false\s*$/m;function bc(e){let n=[],i=d(e,`android`,`app`,`build.gradle`);if(t(i)){let e=r(i,`utf8`).replace(/\/\*[\s\S]*?\*\//g,``).replace(/^\s*\/\/.*$/gm,``);_c.test(e)&&vc.test(e)||n.push([`android-release-signing`,`android/app/build.gradle has no release signing guard. react-native-toolchain.md: when a requested task name contains "release", throw a GradleException that names each missing signing setting, and never sign a release with the debug key.`])}let a=d(e,`android`,`gradle.properties`);return t(a)&&yc.test(r(a,`utf8`))&&n.push([`android-edge-to-edge`,`android/gradle.properties sets edgeToEdgeEnabled=false. react-native-toolchain.md: set edgeToEdgeEnabled=true.`]),n}var xc=/* @__PURE__ */ new Set([`.js`,`.jsx`,`.mjs`,`.cjs`,`.ts`,`.tsx`]),Sc=/\b(?:import|export)\s+type\s+(?:\{[^}]*\}|\*(?:\s+as\s+[\w$]+)?|[\w$]+)\s+from\s*["'][^"']*["']/g;function Cc(e,n){let i=d(e,`src`);if(!t(i))return[];let a=[];for(let t of mc(i)){if(!xc.has(u(t).toLowerCase())||ct(I(m(n,t)),n))continue;let i=r(t,`utf8`).split(`
89
+ `)?t-1:t}function Ei(e){return!pi.test(e)||mi.test(e)?!1:!e.split(`/`).slice(0,-1).some(e=>hi.has(e))}function O(e){return e.filter(Ei)}function k(e,t){let n=r(d(e,t),`utf8`),{blanked:i,lineStarts:a}=Zr(n);return{file:t,text:n,blanked:i,lines:n.split(`
90
+ `),lineAt:e=>{let t=0,n=a.length-1;for(;t<=n;){let r=t+n>>1,i=a[r];if(i===void 0)throw RangeError(`line start ${r} is missing`);i<=e?t=r+1:n=r-1}return n+1}}}function Di(e){let t=e.trim();if(t===`*`)return[{name:`*`,local:`*`}];let n=[],r=t.match(/\*\s+as\s+([\w$]+)/);if(r){let e=r[1];if(e===void 0)throw TypeError(`namespace import has no local name`);n.push({name:`*`,local:e})}let i=t.match(/\{([^}]*)\}/);if(i){let e=i[1];if(e===void 0)throw TypeError(`named import clause has no body`);for(let t of e.split(`,`)){let e=t.trim().replace(/^type\s+/,``).match(/^([\w$]+)(?:\s+as\s+([\w$]+))?$/);if(e){let t=e[1];if(t===void 0)throw TypeError(`import specifier has no name`);n.push({name:t,local:e[2]??t})}}}let a=t.replace(/\{[^}]*\}/,``).replace(/\*\s+as\s+[\w$]+/,``).replace(/,/g,``).trim();return/^[\w$]+$/.test(a)&&n.push({name:`default`,local:a}),n}function A(e){let t=[],n=(n,r,i,a)=>t.push({kind:r,specifier:i,imported:a,line:e.lineAt(n)});for(let t of e.blanked.matchAll(vi)){let[,e,r]=t;if(e===void 0||r===void 0)throw TypeError(`import match lost a group`);n(t.index,`import`,r,Di(e))}for(let t of e.blanked.matchAll(yi)){let[,e]=t;if(e===void 0)throw TypeError(`bare import match lost a group`);n(t.index,`import`,e,[])}for(let t of e.blanked.matchAll(bi)){let[,e,r]=t;if(e===void 0||r===void 0)throw TypeError(`export-from match lost a group`);n(t.index,`export-from`,r,Di(e))}for(let t of e.blanked.matchAll(xi)){let[,e]=t;if(e===void 0)throw TypeError(`require match lost a group`);n(t.index,`require`,e,[])}for(let t of e.blanked.matchAll(Si)){let[,e]=t;if(e===void 0)throw TypeError(`dynamic import match lost a group`);n(t.index,`dynamic`,e,[])}return t.sort((e,t)=>e.line-t.line)}function Oi(e,t,n){let r;if(n.startsWith(`@/`))r=`src/${n.slice(2)}`;else if(n.startsWith(`.`))r=p.normalize(p.join(p.dirname(t),n));else return null;for(let t of gi)if(e.has(r+t))return r+t;return null}function j(e,t,n){let r=[];t.lines.forEach((t,n)=>{let i=_i.exec(t);i&&i[1]===e&&r.push({line:n+1,reason:(i[2]??``).trim()})});let i=new Set(r.filter(e=>e.reason!==``).map(e=>e.line)),a=n.filter(e=>!(i.has(e.line-1)||e.line===1&&i.has(1))).map(n=>({rule:e,file:t.file,line:n.line,message:n.message,...n.note?{note:!0}:{}}));for(let n of r)n.reason===``&&a.push({rule:e,file:t.file,line:n.line,message:`layering-allow needs a reason`});return a}function M(e){return[...e].sort((e,t)=>e.file===t.file?e.line===t.line?e.message===t.message?0:e.message<t.message?-1:1:e.line-t.line:e.file<t.file?-1:1)}var ki=/^src\/screens\/(public|user)\/([^/]+)\/.+/;function Ai(e){let t=ki.exec(e);return t?`${t[1]}/${t[2]}`:null}function ji(e,t){let n=O(t),r=new Set(n),i=[];for(let t of n){let n=Ai(t);if(n===null)continue;let a=k(e,t),o=[];for(let e of A(a)){let i=Oi(r,t,e.specifier),a=i===null?null:Ai(i);a!==null&&a!==n&&o.push({line:e.line,message:`imports ${i} from another screen area. react-native.md: a part two areas use lives in src/components/<area>/ or src/components/shared/.`})}i.push(...j(`cross-feature-import`,a,o))}return M(i)}var Mi=/* @__PURE__ */ new Set([`assets`,`components`,`constants`,`hooks`,`navigation`,`redux`,`screens`,`services`,`standards`,`types`,`utils`]),Ni=/\.(?:js|jsx|ts|tsx)$/,Pi=/^src\/screens\/(?:public\/.+|user\/[^/]+\/.+)$/,Fi=/[A-Za-z0-9]Screen\.(?:js|jsx|ts|tsx)$/,Ii=/^src\/screens\/index\.(?:js|ts)$/,Li=/^src\/assets\/theme\/settings\.(?:js|ts|tsx)$/,Ri=[`.js`,`.ts`,`.tsx`,`.jsx`],N={folder:`a top-level folder of src is one of assets, components, constants, hooks, navigation, redux, screens, services, standards, types, utils`,screenHome:`a screen file lives in src/screens/public/ or src/screens/user/<area>/`,suffix:`a screen is named without a Screen suffix`,theme:`src/assets/theme holds only its settings file`,types:`src/types holds only ambient .d.ts declaration files`,tsconfig:`an app has a tsconfig.json at its root`},zi=(e,t)=>`${e}: react-native.md App layout: ${t}.`;function Bi(e,t){let n=/* @__PURE__ */ new Set,r=/* @__PURE__ */ new Map,i=(e,t)=>{let n=r.get(e);n===void 0&&(n=[],r.set(e,n)),n.push({line:1,message:zi(e,t)})};for(let e of t){let t=e.split(`/`);if(t[0]!==`src`||t.some(e=>e===`node_modules`||e===`generated`||e===`__tests__`))continue;let r=t[1];t.length>2&&r!==void 0&&!Mi.has(r)&&n.add(r),e.startsWith(`src/screens/`)&&Ni.test(e)&&(!Ii.test(e)&&!Pi.test(e)&&i(e,N.screenHome),Fi.test(e)&&i(e,N.suffix)),e.startsWith(`src/assets/theme/`)&&!Li.test(e)&&i(e,N.theme),e.startsWith(`src/types/`)&&!e.endsWith(`.d.ts`)&&i(e,N.types)}let a=[];t.includes(`tsconfig.json`)||a.push({rule:`folder-layout`,file:`tsconfig.json`,line:1,message:zi(`tsconfig.json`,N.tsconfig)});for(let[t,n]of r)Ei(t)?a.push(...j(`folder-layout`,k(e,t),n)):a.push(...n.map(e=>({rule:`folder-layout`,file:t,line:e.line,message:e.message})));for(let r of n){let n={rule:`folder-layout`,file:`src/${r}`,line:1,message:zi(`src/${r}`,N.folder)},i=Ri.map(e=>`src/${r}/index${e}`).find(e=>t.includes(e));if(i===void 0)a.push(n);else for(let t of j(`folder-layout`,k(e,i),[{line:1,message:n.message}]))a.push(t.message===n.message?n:t)}return M(a)}function Vi(e,t){let n=O(t),r=wi(n),i=new Set(n),a=[];for(let t of n){if(t.startsWith(`src/screens/`)||t.startsWith(`src/navigation/`))continue;let n=k(e,t),o=[];for(let e of A(n)){let n=Oi(i,t,e.specifier);n?.startsWith(`src/screens/`)&&n!==r&&o.push({line:e.line,message:`imports a screen folder from outside src/screens. react-native.md: hooks, utils and components never import screens.`})}a.push(...j(`import-into-screens`,n,o))}return M(a)}var Hi=`@webority/mobile-ui`,Ui=40,Wi=/\{\s*\.\.\.(?:props|rest)\s*\}/,Gi=[`lib/typescript/module/components/index.d.ts`,`lib/typescript/module/index.d.ts`],Ki=e=>`wraps mobile-ui ${e}. react-native.md: no restyle or pass-through wrapper; use ${e} directly, put house defaults in theme settings.`;function qi(e){let n=/* @__PURE__ */ new Set;for(let i of Gi){let a=d(e,`node_modules`,`@webority`,`mobile-ui`,i);if(t(a))for(let e of r(a,`utf8`).matchAll(/export\s+(?!type\b)\{([^}]*)\}\s*from/g)){let t=e[1];if(t===void 0)throw TypeError(`export clause has no body`);for(let e of t.split(`,`)){let t=e.trim().split(/\s+as\s+/).pop();if(t===void 0)throw RangeError(`split always yields a part`);/^[\w$]+$/.test(t)&&n.add(t)}}}return n}function Ji(e){let t=/* @__PURE__ */ new Set;/\bexport\s+default\b/.test(e)&&t.add(`default`);for(let n of e.matchAll(/\bexport\s+(?:const|let|var|function\*?|class)\s+([A-Z][\w$]*)/g)){let e=n[1];if(e===void 0)throw TypeError(`export declaration has no name`);t.add(e)}for(let n of e.matchAll(/\bexport\s*\{([^}]*)\}/g)){let e=n[1];if(e===void 0)throw TypeError(`export clause has no body`);for(let n of e.split(`,`)){let e=n.trim().split(/\s+as\s+/).pop();if(e===void 0)throw RangeError(`split always yields a part`);(e==="default"||/^[A-Z][\w$]*$/.test(e))&&t.add(e)}}return t.size}function Yi(e,t){let n=0;for(let r=t;r<e.length;r++){let i=e[r];if(i===`{`)n++;else if(i===`}`)n--;else if(i===`>`&&n===0)return e.slice(t,r+1)}return e.slice(t)}function Xi(e){if(Ti(e.text)>Ui)return null;let t=/* @__PURE__ */ new Set;for(let n of A(e))if(!(n.kind!==`import`||n.specifier!==Hi&&!n.specifier.startsWith(`${Hi}/`)))for(let{name:e,local:r}of n.imported)e!==`*`&&t.add(r);if(t.size===0||Ji(e.blanked)!==1)return null;for(let n of e.blanked.matchAll(/(?:=>|\breturn)\s*\(?\s*<([A-Z][\w$]*)/g)){let r=n[1];if(r===void 0)throw TypeError(`component tag has no name`);if(!t.has(r))continue;let i=n.index+n[0].length-r.length-1;if(Wi.test(Yi(e.blanked,i)))return{name:r,line:e.lineAt(i)}}return null}function Zi(e,t){let n=qi(e),r=[];for(let i of O(t)){if(!i.startsWith(`src/`))continue;let t=k(e,i),a=[],o=/^App([A-Z][A-Za-z0-9]*)\.[jt]sx?$/.exec(c(i))?.[1];if(o&&n.has(o))a.push({line:1,message:Ki(o)});else{let e=Xi(t);e&&a.push({line:e.line,message:Ki(e.name)})}r.push(...j(`library-wrapper`,t,a))}return M(r)}var Qi=`@webority/mobile-ui`,$i=/* @__PURE__ */ new Set([`makeStyles`,`useTheme`,`ThemeProvider`]),ea=/* @__PURE__ */ new Set([`COLORS`,`PALETTE`,`LIGHT_COLORS`,`DARK_COLORS`,`commonStyles`,`FONT_SIZE`,`Responsive`]),ta=/\bexport\s+(?:const|let|var|function\*?|class)\s+([A-Za-z_$][\w$]*)/g,na=/\bexport\s*\{([^}]*)\}/g,ra=e=>`local theme ${e}. react-native.md: the library owns the theme; the app supplies brand and settings only.`;function ia(e,t){let n=[];for(let r of O(t)){if(!r.startsWith(`src/`))continue;let t=k(e,r),i=[];for(let e of A(t))if(!(e.kind!==`import`||e.specifier===Qi||e.specifier.startsWith(`${Qi}/`)))for(let{name:t,local:n}of e.imported){let r=t==="default"?n:t;$i.has(r)&&i.push({line:e.line,message:ra(r)})}for(let e of t.blanked.matchAll(ta)){let n=e[1];if(n===void 0)throw TypeError(`export declaration has no name`);ea.has(n)&&i.push({line:t.lineAt(e.index),message:ra(n)})}for(let e of t.blanked.matchAll(na)){let n=e[1];if(n===void 0)throw TypeError(`export clause has no body`);for(let r of n.split(`,`)){let n=r.trim().split(/\s+as\s+/).pop();if(n===void 0)throw RangeError(`split always yields a part`);ea.has(n)&&i.push({line:t.lineAt(e.index),message:ra(n)})}}n.push(...j(`local-theme`,t,i))}return M(n)}var aa=/^(?:workspace:|file:|link:)/;function oa(e){let t=d(e,`package.json`),n,i;try{n=r(t,`utf8`),i=JSON.parse(n)}catch{return[]}let a={...i.dependencies,...i.devDependencies},o=Object.keys(a).filter(e=>e.startsWith(`@webority/mobile-`)||e===`@webority/biome-config`).filter(e=>!aa.test(String(a[e]))).sort().map(e=>[e,String(a[e]).replace(/^[\^~]/,``)]),s=o[0],c=s?o.find(([,e])=>e!==s[1]):void 0;if(!s||!c)return[];let l=n.split(`
91
+ `).findIndex(e=>e.includes(`"${s[0]}"`));return[{rule:`mobile-pins-lockstep`,file:`package.json`,line:l===-1?1:l+1,message:`pins ${s[0]}@${s[1]} and ${c[0]}@${c[1]}. react-native.md: the phone packages move together.`}]}var sa=/* @__PURE__ */ new Set([`Text`,`TextInput`,`Pressable`,`TouchableOpacity`,`TouchableHighlight`,`TouchableWithoutFeedback`,`ActivityIndicator`,`Modal`,`Switch`,`Button`]),ca=e=>`${e} from react-native in a screen or product component. react-native.md: use the mobile-ui part (Text, Input, Button, Card onPress, Spinner, Modal, Switch); mark a deliberate use with // layering-allow raw-primitive: <reason>.`;function la(e,t){let n=[];for(let r of O(t)){if(!r.startsWith(`src/screens/`)&&!r.startsWith(`src/components/`))continue;let t=k(e,r),i=/* @__PURE__ */ new Set;for(let e of A(t))if(e.kind===`import`&&e.specifier===`react-native`)for(let{name:t,local:n}of e.imported)sa.has(t)&&i.add(n);let a=[];for(let e of i){let n=RegExp(`(?<![\\w$)\\]])<${e.replace(/\$/g,`\\$`)}(?![\\w$.-])`,`g`);for(let r of t.blanked.matchAll(n))a.push({line:t.lineAt(r.index),message:ca(e)})}n.push(...j(`raw-primitive`,t,a))}return M(n)}function ua(e,t){let n=O(t),r=wi(n);if(r===null)return[];let i=new Set(n),a=/* @__PURE__ */ new Set;for(let t of A(k(e,r))){if(t.kind!==`export-from`)continue;let e=Oi(i,r,t.specifier);e!==null&&a.add(e)}let o=[];for(let t of n){if(t===r||t.startsWith(`src/navigation/`))continue;let n=k(e,t),s=[];for(let e of A(n)){let n=Oi(i,t,e.specifier);if(n!==null&&n!==t&&a.has(n)){let t=p.basename(n).replace(/\.[^.]+$/,``);s.push({line:e.line,message:`imports the route screen ${t}. react-native.md: share the form or part as a sibling file, never a screen.`})}}o.push(...j(`screen-imports-screen`,n,s))}return M(o)}var da=400,fa=600;function pa(e,t){let n=[];for(let r of O(t)){if(!r.startsWith(`src/screens/`))continue;let t=k(e,r),i=Ti(t.text),a=i>da?[{line:1,message:`${i} lines. react-native.md: split a screen over 400 lines; over 600 is a finding.`,note:i<=fa}]:[];n.push(...j(`screen-length`,t,a))}return M(n)}var ma=/(?:^|\/)index\.[jt]sx?$/,ha=/\.(?:stories\.[jt]sx?|meta\.js)$/,ga=e=>e.startsWith(`src/screens/`)&&!ma.test(e),_a=e=>!ma.test(e)&&!ha.test(e),va=e=>e.startsWith(`src/components/`)&&_a(e);function ya(e,t){let n=O(t),r=new Set(n),i=/* @__PURE__ */ new Map,a=t=>{let n=i.get(t);if(n!==void 0)return n;let r=k(e,t);return i.set(t,r),r},o=/* @__PURE__ */ new Map;for(let e of n){if(!e.startsWith(`src/components/`)||!ma.test(e))continue;let t=/* @__PURE__ */ new Map,n=[];for(let i of A(a(e))){if(i.kind!==`export-from`)continue;let a=Oi(r,e,i.specifier);if(a!==null)for(let{name:e,local:r}of i.imported)e===`*`&&r===`*`?n.push(a):t.set(r,a)}o.set(e,{named:t,star:n})}let s=(e,t)=>RegExp(`export\\s+(?:const|let|var|function\\*?|class)\\s+${t.replace(/\$/g,`\\$`)}\\b|export\\s*\\{[^}]*\\b${t.replace(/\$/g,`\\$`)}\\b`).test(a(e).blanked),c=/* @__PURE__ */ new Map,l=(e,t)=>{if(e===t||!_a(t))return;let n=c.get(e);n||(n=/* @__PURE__ */ new Set,c.set(e,n)),n.add(t)};for(let e of n)for(let t of A(a(e))){if(t.kind===`export-from`)continue;let n=Oi(r,e,t.specifier);if(n===null)continue;let i=o.get(n);if(!i)l(n,e);else for(let{name:n}of t.imported){let t=i.named.get(n)??i.star.find(e=>s(e,n));t&&l(t,e)}}let u=e=>{let t=/* @__PURE__ */ new Set,n=/* @__PURE__ */ new Set([e]),r=[e];for(;r.length>0;){let e=r.pop();if(e===void 0)throw RangeError(`screensReached: pending is empty`);for(let i of c.get(e)??[])n.has(i)||(n.add(i),ga(i)?t.add(i):r.push(i))}return t},d=[];for(let e of n){if(!va(e))continue;let t=c.get(e)?.size??0,n=t===0||t===1&&u(e).size===1?[{line:1,message:`${e} has ${t} importer(s). react-native.md: a part one screen uses lives beside that screen.`}]:[];d.push(...j(`shared-single-importer`,a(e),n))}return M(d)}var ba=/(?<![\w$.])Responsive\s*\.\s*(?:width|height|font)\s*\(/g,xa=`scales by screen width. react-native.md: use theme.space and the text scale.`;function Sa(e,t){let n=[];for(let r of O(t)){if(!r.startsWith(`src/`))continue;let t=k(e,r),i=[...t.blanked.matchAll(ba)].map(e=>({line:t.lineAt(e.index),message:xa}));n.push(...j(`width-scaling`,t,i))}return M(n)}var Ca=[la,ji,Vi,ua,ya,Zi,pa,oa,Bi,ia,Sa],wa=/* @__PURE__ */ new Set([`node_modules`,`android`,`ios`,`.git`]);function Ta(e,t=``){let n=[];for(let r of i(d(e,t),{withFileTypes:!0})){if(wa.has(r.name))continue;let i=t?`${t}/${r.name}`:r.name;r.isDirectory()?n.push(...Ta(e,i)):n.push(i)}return n}function Ea(e){let t=Ta(e).sort(),n=[];for(let r of Ca.flatMap(n=>n(e,t))){let e=`${r.file}:${r.line} ${r.message}`;r.note?console.log(`note: ${e}`):n.push([`${r.rule}:${r.file}`,e])}return n}var Da=`@webority/mobile-`,Oa=/^(\d+)\.(\d+)\.(\d+)$/,ka=/^(\d+)\.(\d+)\.(\d+)/,Aa=/^(?:workspace:|file:|link:)/;function ja(e,t){let n=t.exec(e);if(n)return[Number(n[1]),Number(n[2]),Number(n[3])]}function Ma(e,t){let[n,r,i]=e,[a,o,s]=t;return n===a?r===o?i<s:r<o:n<a}function Na(e){let t;try{t=JSON.parse(r(d(e,`package.json`),`utf8`))}catch{return/* @__PURE__ */ new Map}if(typeof t!=`object`||!t)return/* @__PURE__ */ new Map;let n=new Map(Object.entries(t)),i=/* @__PURE__ */ new Map;for(let e of[`dependencies`,`devDependencies`]){let t=n.get(e);if(typeof t==`object`&&t)for(let[e,n]of Object.entries(t))i.set(e,n)}return i}function Pa(e,t){let n=ja(t,Oa);if(!n)throw Error(`webority-repo-checks: phone library version "${t}" is not x.y.z.`);let r=Na(e),i=[...r.keys()].filter(e=>e.startsWith(Da)).sort(),a=[];for(let e of i){let i=r.get(e);if(typeof i!=`string`||Aa.test(i))continue;let o=ja(i.replace(/^[\^~]/,``),ka);o&&Ma(o,n)&&a.push([`mobile-library-pin:${e}`,`"${e}": "${i}" is behind the current phone library ${t}. Move every @webority/mobile-* pin to ${t} together. react-native.md: the phone packages move together.`])}return a}var Fa=/* @__PURE__ */ new Set([`node_modules`,`dist`,`build`,`.git`,`.gradle`,`Pods`,`DerivedData`]);function Ia(e,t){return i(e,{withFileTypes:!0}).flatMap(n=>n.isDirectory()?t.has(n.name)?[]:Ia(d(e,n.name),t):[d(e,n.name)])}var La=e=>e.split(`\\`).join(`/`);function Ra(e,t){return e.replace(t,e=>e.replace(/[^\n]/g,` `))}function za(e,t){return e.slice(0,t).split(`
92
+ `).length}var Ba=/^MainActivity\.(?:kt|java)$/,Va=/\bsuper\.onCreate\(\s*(?!null\s*\))[^)]*\)/;function Ha(e){let n=d(e,`android`,`app`,`src`);if(!t(n))return[];let i=[];for(let t of Ia(n,Fa)){if(!Ba.test(c(t)))continue;let n=Ra(Ra(r(t,`utf8`),/\/\*[\s\S]*?\*\//g),/\/\/[^\n]*/g),a=Va.exec(n);if(!a)continue;let o=La(m(e,t));i.push([`rn-mainactivity-oncreate-bundle:${o}`,`${o}:${za(n,a.index)} passes a bundle to super.onCreate. react-native-toolchain.md → Android: super.onCreate(null): pass null, so Android does not restore stale Screen fragments after the OS kills the app, and register the splash screen before it.`])}return i}var Ua=/EXPO_UPDATE_URL"[^>]*?\/(Staging|Development)"/,Wa=/<key>EXPO_UPDATE_URL<\/key>\s*<string>[^<]*\/(Staging|Development)<\/string>/,Ga=/^APP_ID=.*\.(staging|development)\s*$/m,Ka=/\/ota\/manifest\/\d+\/\d+\//;function qa(e){let n=[{file:d(e,`android`,`app`,`src`,`main`,`AndroidManifest.xml`),pattern:Ua,retired:!0},{file:d(e,`android`,`gradle.properties`),pattern:Ga,retired:!1}],r=d(e,`ios`);if(t(r))for(let e of Ia(r,Fa))c(e)===`Expo.plist`&&n.push({file:e,pattern:Wa,retired:!0});return n.filter(({file:e})=>t(e))}function Ja(e){let t=[];for(let{file:n,pattern:i,retired:a}of qa(e)){let o=La(m(e,n)),s=r(n,`utf8`),c=i.exec(s);if(c)t.push([`mobile-production-stamps:${o}`,`${o}:${za(s,c.index)} carries ${c[1]} values from a mobile-tools prebuild. Run \`mobile-tools prebuild --env Production\` in the app folder before committing, so production builds never read the ${c[1]} update feed or app id.`]);else{let e=a?Ka.exec(s):null;e&&t.push([`mobile-production-stamps:${o}`,`${o}:${za(s,e.index)} points over-the-air updates at the retired whole-number address. Set OTA_PROJECT_PUBLIC_ID and the platform's component public id in appsettings and run \`mobile-tools prebuild --env Production\` before committing.`])}}return t}var Ya=/^spa-host\..+\.json$/,Xa=/* @__PURE__ */ new Set([`web.config`,`staticwebapp.config.json`,`_headers`,`spa-host.json`]);function Za(e){let t=[];for(let n of Ia(e,/* @__PURE__ */ new Set([...Fa,`android`,`ios`]))){let i=c(n);if(!Xa.has(i)&&!Ya.test(i))continue;let a=Ra(r(n,`utf8`),/<!--[\s\S]*?-->/g).split(`
93
+ `).findIndex(e=>/\bimmutable\b/i.test(e)&&/cache/i.test(e));if(a===-1)continue;let o=La(m(e,n));t.push([`spa-host-immutable-assets:${o}`,`${o}:${a+1} sets a Cache-Control with immutable. react.md → SPA deploy artifacts: /assets/* is "public, max-age=31536000" without immutable, because immutable on a content-hashed URL can brick that URL in the browser cache across a bad deploy.`])}return t}var Qa=Object.freeze([`spa-host.json`,`spa-host.Development.json`,`spa-host.Staging.json`,`spa-host.Production.json`]),$a=Object.freeze([`vite.config.ts`,`vite.config.mts`,`vite.config.js`,`vite.config.mjs`,`vite.config.cjs`]),eo=/\.[cm]?js$/,to=/\btarget\s*:\s*(?:\[|["'](?:es\d|esnext|chrome|firefox|safari|edge|ios|node|modules|baseline))/;function no(e,t){let n=[e],r=e;for(;r!==t&&l(r)!==r;)r=l(r),n.push(r);return n}function ro(e,n){let i=[];no(e,n).some(e=>t(d(e,`.nvmrc`)))||i.push([`root-file:nvmrc`,`No .nvmrc in this folder or above it. react.md, Node: commit .nvmrc with the supported Node major.`]);for(let n of Qa)t(d(e,n))||i.push([`root-file:${n}`,`${n} is missing beside package.json. react.md, SPA deploy artifacts: a portal carries spa-host.json and one spa-host.<Environment>.json per environment, as the starter does.`]);let a=$a.find(n=>t(d(e,n)));if(a===void 0)return i;eo.test(a)&&i.push([`root-file:vite-config-ts`,`${a} is JavaScript. react.md, Language: rename it to vite.config.ts.`]);let o=r(d(e,a),`utf8`);return o.includes(`codeSplitting`)||i.push([`root-file:split-groups`,`${a} has no build.rolldownOptions.output.codeSplitting groups. react.md, Build: split the framework and the design system into their own $initial chunks, as the starter's vite.config.ts does.`]),to.test(o)&&i.push([`root-file:build-target`,`${a} sets a build target. react.md, Build: remove build.target and keep Vite's default.`]),i}var io=[[`eslint`,`react.md: Biome is the only lint and format tool`],[`@eslint/js`,`react.md: Biome is the only lint and format tool`],[`prettier`,`react.md: Biome is the only lint and format tool`],[`lint-staged`,`react.md: the shared pre-commit hook replaces lint-staged`]],ao=[[`@typescript-eslint/`,`react.md: Biome is the only lint and format tool`],[`eslint-plugin-`,`react.md: Biome is the only lint and format tool`],[`eslint-config-`,`react.md: Biome is the only lint and format tool`],[`prettier-plugin-`,`react.md: Biome is the only lint and format tool`]],oo=`bootstrap-ui.md: hard interactive components come from @webority/ui-react`,so=`react.md: Bootstrap 5.3.8 is the only UI framework`,co=`react.md: dates format through Intl and the web-core formatters`,lo=`react-native.md: retired; Intl and the mobile-core formatters`,uo={web:[...io,[`react-toastify`,`react.md: notifications are toast from @webority/ui-react`],[`downshift`,oo],[`react-day-picker`,oo],[`react-aria`,oo],[`react-aria-components`,oo],[`@webority/ui-elements`,`bootstrap-ui.md: products use the App* wrappers, and ui-react brings the elements itself`],[`crypto-js`,`react.md: stored tokens are never encrypted client-side`],[`tailwindcss`,so],[`antd`,so],[`styled-components`,`react.md: no CSS-in-JS`],[`bootstrap-icons`,`bootstrap-ui.md: icons are AppIcon from @webority/ui-react`],[`iconsax-react`,`ui-components.md: icons are AppIcon from @webority/ui-react`],[`moment`,co],[`moment-timezone`,co],[`dayjs`,co],[`date-fns`,co],[`react-router-dom`,`react.md: react-router 8 is one package; depend on react-router and import from "react-router" (react-router-dom was merged into it)`],[`react-test-renderer`,`react.md: React 19 deprecated the test renderer; test with @testing-library/react`]],desktop:[...io],mobile:[...io,[`react-native-permissions`,`react-native.md: retired; each Expo module requests its own permission`],[`moment`,lo],[`moment-timezone`,lo],[`dayjs`,lo],[`react-native-fast-image`,`react-native.md: retired; expo-image`],[`@d11/react-native-fast-image`,`react-native.md: retired; expo-image`],[`formik`,`react-native.md: retired; react-hook-form`],[`yup`,`react-native.md: retired; zod with zodResolver`],[`react-native-status-bar-height`,`react-native.md: retired; react-native-safe-area-context insets`],[`react-native-flash-message`,`react-native.md: retired; the mobile-ui toast`],[`react-native-toast-message`,`react-native.md: retired; the mobile-ui toast`],[`prop-types`,`react-native.md: retired; defaults in the parameter destructure`],[`@react-navigation/stack`,`react-native.md: retired; @react-navigation/native-stack`],[`react-native-version-check`,`react-native.md: retired; the server-driven minimum version`],[`@react-native-firebase/messaging`,`react-native.md: push is expo-notifications through mobile-core`],[`@notifee/react-native`,`react-native.md: push is expo-notifications through mobile-core`],[`patch-package`,`react-native-toolchain.md: patch with pnpm patch, never patch-package`],[`react-test-renderer`,`react-native.md: React 19 deprecated the test renderer; test with test-renderer (the RNTL 14 renderer)`]],demo:[]},fo={web:[...ao,[`@mui/`,so],[`@chakra-ui/`,so],[`@emotion/`,`react.md: no CSS-in-JS`],[`@radix-ui/`,oo],[`@react-aria/`,oo]],mobile:[...ao],desktop:[...ao],demo:[]},po={web:[[`axios-retry`,`@webority/web-core`,`react.md: retry lives only in @webority/web-core`]],mobile:[[`axios-retry`,`@webority/mobile-core`,`react.md: retry lives only in @webority/mobile-core`]],desktop:[],demo:[]},mo={web:[[`@biomejs/biome`,`react.md: Biome is mandatory`],[`@webority/biome-config`,`react.md: every repo extends the shared Biome preset`],[`@webority/web-core`,`react.md: clients, auth, errors and logging come from web-core`],[`@webority/ui-react`,`react.md: App* components come from the catalogue`],[`@webority/theme`,`bootstrap-ui.md: look and tokens come from the shared theme`],[`bootstrap`,`bootstrap-ui.md: Bootstrap 5.3.8 on every surface`],[`react-bootstrap`,`bootstrap-ui.md: react-bootstrap is a dependency from project init`],[`sass-embedded`,`react.md: the SCSS compiler is sass-embedded`]],mobile:[[`@biomejs/biome`,`react-native.md: Biome is mandatory`],[`@webority/biome-config`,`react.md: every repo extends the shared Biome preset`],[`@webority/mobile-core`,`react-native.md: apps consume the shared mobile library`],[`@webority/mobile-ui`,`react-native.md: apps consume the shared mobile library`],[`@react-native-firebase/app`,`react-native.md: Crashlytics in every app`],[`@react-native-firebase/crashlytics`,`react-native.md: Crashlytics in every app`]],desktop:[],demo:[[`@biomejs/biome`,`react.md: Biome is mandatory`],[`@webority/biome-config`,`react.md: every repo extends the shared Biome preset`]]},ho=[`agentation`],go=[[`web-import-axios`,/(?:\bfrom\s*|\bimport\s*\(\s*|\brequire\s*\(\s*|^\s*import\s*)["']axios(?:\/[^"']*)?["']/m,`imports axios`,`react.md: HTTP goes through userClient and publicClient from @webority/web-core`],[`web-import-router`,/\bimport\s*\{[^}]*\b(?:BrowserRouter|Routes)\b[^}]*\}\s*from\s*["']react-router(?:-dom)?["']/,`imports BrowserRouter or Routes`,`react.md: routes are objects passed to createBrowserRouter and rendered by RouterProvider`],[`web-import-env-branch`,/\bimport\.meta\.env\.(?:DEV|PROD)\b/,`reads import.meta.env.DEV or PROD`,`react.md: branch on AppSettings.ENVIRONMENT; DEV and PROD only say which React build is bundled`]],_o=[[`web-import-axios-types`,/\b(?:import|export)\s+type\s[^;]*?\bfrom\s*["']axios(?:\/[^"']*)?["']/,`imports types from axios`,`react.md: import AxiosError, AxiosInstance, AxiosRequestConfig and AxiosResponse from @webority/web-core`]],vo=[[`@webority/theme`,`@webority/ui-react`,`@webority/support-react`,`@webority/web-core`,`@webority/biome-config`,`@webority/repo-checks`],[`@webority/mobile-core`,`@webority/mobile-ui`,`@webority/mobile-support`,`@webority/mobile-tools`]],yo=`@webority/biome-config/biome.jsonc`,bo=`@webority/biome-config/biome.phone.jsonc`,P=`@webority/biome-config`,xo={react:[`Children`,`Fragment`,`Profiler`,`StrictMode`,`Suspense`],"react/jsx-runtime":[`Fragment`]},So=/* @__PURE__ */ `AppAccordion.AppAccountSwitcher.AppActionIcon.AppAlert.AppAsyncBlock.AppAuthLayout.AppAvatar.AppAvatarGroup.AppBadge.AppBanner.AppBreadcrumbs.AppButton.AppButtonGroup.AppCalendar.AppCard.AppCarousel.AppCell.AppChart.AppChartCard.AppCheckbox.AppChip.AppChipGroup.AppChoiceCard.AppChoiceChip.AppCodeBlock.AppColorField.AppColumnMenu.AppCommandPalette.AppCommentThread.AppCompareTable.AppConfirmDialog.AppConsentBanner.AppContextMenu.AppCopyButton.AppCountryFlag.AppDashboardCell.AppDashboardGrid.AppDataTable.AppDatePicker.AppDateRangePicker.AppDescriptions.AppDetailPane.AppDrawer.AppDropZone.AppDropdown.AppDueDate.AppEmptyState.AppErrorBoundary.AppErrorSummary.AppFileAttachment.AppFilePicker.AppFileTiles.AppFileViewer.AppFilterBar.AppFloatingButton.AppFloatingDock.AppFormActions.AppFormRow.AppFormSection.AppGantt.AppHoverCard.AppIcon.AppIdleTimeoutDialog.AppImagePicker.AppInfoTip.AppInlineEdit.AppInput.AppInputGroup.AppKanban.AppKbd.AppKpiTile.AppLeadPopup.AppLightbox.AppLink.AppLoadMore.AppMarkdown.AppMentionInput.AppMeter.AppMetricStrip.AppModal.AppNavList.AppNavigationMenu.AppNotificationCenter.AppNumberInput.AppOnboardingChecklist.AppOrgTree.AppOtpInput.AppPageHeader.AppPhoneNumberInput.AppPopover.AppPricingCard.AppProgress.AppQrCode.AppQueryBuilder.AppRadio.AppRadioGroup.AppRating.AppRecordPager.AppRelativeTime.AppRepeater.AppRequiredMark.AppResourceCard.AppResult.AppRichText.AppRouteError.AppRowActions.AppScoreScale.AppScrollbar.AppSearch.AppSectionCallToAction.AppSectionFaq.AppSectionFeatures.AppSectionHero.AppSectionLeadCapture.AppSectionLogos.AppSectionPricing.AppSectionTestimonials.AppSegmented.AppSelect.AppSeoHead.AppShell.AppShortcutLegend.AppShowMore.AppSkeleton.AppSkeletonLines.AppSkeletonRows.AppSlider.AppSortableList.AppSparkline.AppSpinner.AppSplash.AppSplitButton.AppSplitView.AppStatusBadge.AppStepper.AppSwitch.AppTablePagination.AppTableToolbar.AppTabs.AppTextarea.AppThemeToggle.AppTimePicker.AppTimeline.AppToast.AppToolbar.AppTooltip.AppTour.AppTransferList.AppTreePicker.AppTreeView.AppTruncate.AppUpdateBar.AppWhatsNew.AppWizard.AppWorkspaceSwitcher`.split(`.`),Co=[`lint`,`rn-mainactivity-oncreate-bundle`,`spa-host-immutable-assets`,`oversize`,`advisory`,`endpoint-name`,`api-call`,`api-thunk`,`build-typecheck`,`library-copy`,`mobile-library-pin`,`root-file`,`web-folder`,`web-import-axios-types`,`tracking-plan`,`deprecated-import`,`react-string-ref`,`legacy-component-props`,`legacy-react-test-api`,`navigation-shim`,`legacy-node-sqlite`];function wo(e,t=process.env){let n=String(t.REPO_CHECKS_ENFORCE??``).split(`,`).map(e=>e.trim()).filter(Boolean);return!Co.includes(e)||n.includes(`all`)||n.includes(e)}var To={version:`0.89.0`,css:{rename:[[`--color-primary-text`,`--color-on-primary`],[`--color-primary-ink`,`--color-primary-text`],[`--color-primary-hover-text`,`--color-on-primary`],[`--color-on-primary-ink`,`--color-on-primary`],[`--color-border-light`,`--color-border-subtle`],[`--color-focus-border`,`--color-field-border-focus`],[`--color-success-active`,`--color-success-pressed`],[`--color-success-10`,`--color-success-soft`],[`--color-success-30`,`--color-success-border`],[`--color-warning-active`,`--color-warning-pressed`],[`--color-warning-10`,`--color-warning-soft`],[`--color-warning-30`,`--color-warning-border`],[`--color-danger-active`,`--color-danger-pressed`],[`--color-danger-10`,`--color-danger-soft`],[`--color-danger-30`,`--color-danger-border`],[`--color-info-active`,`--color-info-pressed`],[`--color-info-10`,`--color-info-soft`],[`--color-info-30`,`--color-info-border`],[`--color-accent`,`--color-warning`],[`--color-accent-soft`,`--color-warning-soft`],[`--color-close-filter`,`--wui-close-filter`],[`--color-pressed-overlay`,`--wui-pressed-overlay`],[`--wui-chart-grid`,`--color-chart-grid`],[`--wui-chart-axis`,`--color-chart-axis`],[`--wui-chart-label`,`--color-chart-label`],[`--wui-shadow-overlay`,`--wui-shadow-popover`],[`--wui-shadow-overlay-lg`,`--wui-shadow-modal`],[`--shadow-overlay`,`--wui-shadow-popover`],[`--shadow-overlay-lg`,`--wui-shadow-modal`],[`--shadow-sm`,`--wui-shadow-card`],[`--shadow-md`,`--wui-shadow-card`],[`--shadow-lg`,`--wui-shadow-card`],[`--wui-shadow-card-lifted`,`--wui-card-shadow-lifted`],[`--wui-shadow-card-lifted-hover`,`--wui-card-shadow-lifted-hover`],[`--wui-shadow-thumb`,`--wui-thumb-shadow`],[`--wui-shadow-thumb-hover`,`--wui-thumb-shadow-hover`],[`--radius-sm`,`--wui-radius-sm`],[`--radius`,`--wui-radius-md`],[`--radius-lg`,`--wui-radius-lg`],[`--radius-xl`,`--wui-radius-xl`],[`--wui-radius`,`--wui-radius-md`],[`--wui-control-height-sm`,`--wui-control-sm`],[`--wui-control-height`,`--wui-control-md`],[`--wui-control-height-lg`,`--wui-control-lg`],[`--wui-field-radius-sm`,`--wui-field-sm-radius`],[`--wui-field-radius`,`--wui-field-md-radius`],[`--wui-field-radius-lg`,`--wui-field-lg-radius`],[`--wui-ease-out-quart`,`--wui-ease-out`],[`--wui-font-body`,`--wui-font-ui`],[`--font-sans`,`--wui-font-ui`],[`--wui-fs-smb`,`--wui-fs-sm`],[`--wui-fs-48`,`--wui-fs-4xl`],[`--wui-fs-64`,`--wui-fs-5xl`]],reads:[[`--wui-chart-1`,`--color-chart-1`],[`--wui-chart-2`,`--color-chart-2`],[`--wui-chart-3`,`--color-chart-3`],[`--wui-chart-4`,`--color-chart-4`],[`--wui-chart-5`,`--color-chart-5`],[`--wui-chart-6`,`--color-chart-6`],[`--wui-chart-7`,`--color-chart-7`],[`--wui-chart-8`,`--color-chart-8`],[`--wui-chart-seq-0`,`--color-chart-seq-0`],[`--wui-chart-seq-1`,`--color-chart-seq-1`],[`--wui-chart-seq-2`,`--color-chart-seq-2`],[`--wui-chart-seq-3`,`--color-chart-seq-3`],[`--wui-chart-seq-4`,`--color-chart-seq-4`],[`--wui-chart-seq-5`,`--color-chart-seq-5`],[`--wui-chart-seq-6`,`--color-chart-seq-6`],[`--wui-chart-diverging-low`,`--color-chart-diverging-low`],[`--wui-chart-diverging-mid`,`--color-chart-diverging-mid`],[`--wui-chart-diverging-high`,`--color-chart-diverging-high`],[`--wui-chart-neutral`,`--color-chart-neutral`],[`--wui-dark-shadow-thumb`,`--wui-thumb-shadow`],[`--wui-dark-shadow-thumb-hover`,`--wui-thumb-shadow-hover`]],choose:{"--color-on-status-fill":`Use the ink of the fill's tone: --color-on-success, --color-on-warning, --color-on-danger or --color-on-info.`,"--color-on-status-strong":`Use the ink of the strong fill's tone: --color-on-success-strong, --color-on-warning-strong, --color-on-danger-strong or --color-on-info-strong.`,"--color-success-5":`No meaning holds this step: use --color-success-soft for a fill or --color-success-border for an edge.`,"--color-success-20":`No meaning holds this step: use --color-success-soft for a fill or --color-success-border for an edge.`,"--color-success-50":`No meaning holds this step: use --color-success-soft for a fill or --color-success-border for an edge.`,"--color-warning-5":`No meaning holds this step: use --color-warning-soft for a fill or --color-warning-border for an edge.`,"--color-warning-20":`No meaning holds this step: use --color-warning-soft for a fill or --color-warning-border for an edge.`,"--color-warning-50":`No meaning holds this step: use --color-warning-soft for a fill or --color-warning-border for an edge.`,"--color-danger-5":`No meaning holds this step: use --color-danger-soft for a fill or --color-danger-border for an edge.`,"--color-danger-20":`No meaning holds this step: use --color-danger-soft for a fill or --color-danger-border for an edge.`,"--color-danger-50":`No meaning holds this step: use --color-danger-soft for a fill or --color-danger-border for an edge.`,"--color-info-5":`No meaning holds this step: use --color-info-soft for a fill or --color-info-border for an edge.`,"--color-info-20":`No meaning holds this step: use --color-info-soft for a fill or --color-info-border for an edge.`,"--color-info-50":`No meaning holds this step: use --color-info-soft for a fill or --color-info-border for an edge.`},checkRole:[`--wui-shadow-popover`,`--wui-shadow-modal`],ownable:[`--color-accent`,`--color-accent-soft`,`--shadow-overlay`,`--shadow-overlay-lg`,`--shadow-sm`,`--shadow-md`,`--shadow-lg`,`--radius-sm`,`--radius`,`--radius-lg`,`--radius-xl`,`--font-sans`]},themeReads:[{kind:`path`,from:`colors.primaryHover`,to:`colors.primary-hover`},{kind:`path`,from:`colors.primaryPressed`,to:`colors.primary-pressed`},{kind:`path`,from:`colors.primaryMuted`,to:`colors.primary-soft`},{kind:`path`,from:`colors.secondaryHover`,to:`colors.neutral-hover`},{kind:`path`,from:`colors.secondary`,to:`colors.neutral`},{kind:`path`,from:`colors.error`,to:`colors.danger`},{kind:`path`,from:`colors.onPrimary`,to:`colors.on-primary`},{kind:`path`,from:`colors.onNeutral`,to:`colors.on-neutral-strong`},{kind:`path`,from:`colors.onSecondary`,to:`colors.on-neutral`},{kind:`path`,from:`colors.onSuccess`,to:`colors.on-success`},{kind:`path`,from:`colors.onWarning`,to:`colors.on-warning`},{kind:`path`,from:`colors.onError`,to:`colors.on-danger`},{kind:`path`,from:`colors.onInfo`,to:`colors.on-info`},{kind:`path`,from:`colors.onOverlay`,to:`colors.on-scrim`},{kind:`path`,from:`colors.toneText.primary`,to:`colors.primary-text`},{kind:`path`,from:`colors.toneText.success`,to:`colors.success-text`},{kind:`path`,from:`colors.toneText.warning`,to:`colors.warning-text`},{kind:`path`,from:`colors.toneText.error`,to:`colors.danger-text`},{kind:`path`,from:`colors.toneText.info`,to:`colors.info-text`},{kind:`path`,from:`colors.text.primary`,to:`colors.text-body`},{kind:`path`,from:`colors.text.secondary`,to:`colors.text-muted`},{kind:`path`,from:`colors.text.tertiary`,to:`colors.text-subtle`},{kind:`path`,from:`colors.text.inverse`,to:`colors.text-inverse`},{kind:`path`,from:`colors.text.strong`,to:`colors.text`},{kind:`path`,from:`colors.text.disabled`,to:`colors.text-disabled`},{kind:`path`,from:`colors.text.link`,to:`colors.link`},{kind:`path`,from:`colors.background.primary`,to:`colors.bg`},{kind:`path`,from:`colors.background.secondary`,to:`colors.bg-subtle`},{kind:`path`,from:`colors.background.tertiary`,to:`colors.bg-muted`},{kind:`path`,from:`colors.background.elevated`,to:`colors.surface`},{kind:`path`,from:`colors.background.overlay`,to:`colors.scrim`},{kind:`path`,from:`colors.background.inverse`,to:`colors.surface-inverse`},{kind:`path`,from:`colors.border.primary`,to:`colors.border`},{kind:`path`,from:`colors.border.secondary`,to:`colors.border-subtle`},{kind:`path`,from:`colors.border.focus`,to:`colors.focus-ring`},{kind:`path`,from:`colors.border.error`,to:`colors.danger-border`},{kind:`path`,from:`colors.border.width`,to:`size.border`},{kind:`path`,from:`colors.field.backgroundFocused`,to:`colors.field-bg-focus`},{kind:`path`,from:`colors.field.backgroundDisabled`,to:`colors.field-bg-disabled`},{kind:`path`,from:`colors.field.background`,to:`colors.field-bg`},{kind:`path`,from:`colors.field.borderFocused`,to:`colors.field-border-focus`},{kind:`path`,from:`colors.field.borderError`,to:`colors.field-border-error`},{kind:`path`,from:`colors.field.border`,to:`colors.field-border`},{kind:`path`,from:`colors.field.label`,to:`colors.field-label`},{kind:`path`,from:`colors.field.textDisabled`,to:`colors.field-text-disabled`},{kind:`path`,from:`colors.field.text`,to:`colors.field-text`},{kind:`path`,from:`colors.field.placeholderDisabled`,to:`colors.field-placeholder-disabled`},{kind:`path`,from:`colors.field.placeholder`,to:`colors.field-placeholder`},{kind:`path`,from:`colors.field.iconFocused`,to:`colors.field-icon-focus`},{kind:`path`,from:`colors.field.iconDisabled`,to:`colors.field-icon-disabled`},{kind:`path`,from:`colors.field.icon`,to:`colors.field-icon`},{kind:`path`,from:`colors.field.caret`,to:`colors.field-caret`},{kind:`path`,from:`colors.field.message`,to:`colors.field-message`},{kind:`path`,from:`colors.surface.pressed`,to:`colors.surface-pressed`},{kind:`path`,from:`colors.surface.hovered`,to:`colors.surface-hover`},{kind:`path`,from:`colors.surface.selected`,to:`colors.surface-selected`},{kind:`path`,from:`colors.surface.disabled`,to:`colors.surface-disabled`},{kind:`path`,from:`colors.glass.fill`,to:`colors.glass-fill`},{kind:`path`,from:`colors.glass.border`,to:`colors.glass-border`},{kind:`path`,from:`colors.glass.on`,to:`colors.on-glass`},{kind:`path`,from:`colors.glass.badge`,to:`colors.glass-badge`},{kind:`path`,from:`colors.skeleton.background`,to:`colors.skeleton`},{kind:`path`,from:`colors.skeleton.highlight`,to:`colors.skeleton-highlight`},{kind:`gone`,from:`colors.avatarPalette`,hint:"read colors[`avatar-${n}`] for n 1 to 8"},{kind:`path`,from:`typography.fontFamily.regular`,to:`font.ui.normal`},{kind:`path`,from:`typography.fontFamily.medium`,to:`font.ui.medium`},{kind:`path`,from:`typography.fontFamily.semibold`,to:`font.ui.semibold`},{kind:`path`,from:`typography.fontFamily.bold`,to:`font.ui.bold`},{kind:`gone`,from:`typography.fontFamily.display`,hint:`font.display is a face per weight: font.display.<weight>`},{kind:`prefix`,from:`typography.fontSize.`,to:`text.`},{kind:`prefix`,from:`typography.fontWeight.`,to:`weight.`},{kind:`prefix`,from:`typography.lineHeight.`,to:`leading.`},{kind:`prefix`,from:`typography.letterSpacing.`,to:`letter-spacing.`},{kind:`prefix`,from:`spacing.`,to:`space.`},{kind:`path`,from:`shadows.sm`,to:`shadow.card`},{kind:`path`,from:`shadows.md`,to:`shadow.elevated`},{kind:`path`,from:`shadows.lg`,to:`shadow.popover`},{kind:`path`,from:`shadows.xl`,to:`shadow.modal`},{kind:`gone`,from:`shadows.xs`,hint:`use shadow.card`},{kind:`gone`,from:`shadows.2xl`,hint:`use shadow.modal`},{kind:`gone`,from:`shadows.none`,hint:`omit the shadow`},{kind:`path`,from:`motion.duration.normal`,to:`motion.duration.default`},{kind:`path`,from:`motion.easing.standard`,to:`motion.ease.in-out`},{kind:`prefix`,from:`motion.easing.`,to:`motion.ease.`},{kind:`prefix`,from:`icons`,to:`settings.icons`},{kind:`prefix`,from:`gradients`,to:`settings.gradients`},{kind:`prefix`,from:`textVariants`,to:`settings.textVariants`},{kind:`path`,from:`maxFontSizeMultiplier`,to:`settings.maxFontSizeMultiplier`},{kind:`path`,from:`components.field.defaultVariant`,to:`settings.components.field.defaultVariant`},{kind:`path`,from:`components.field.requiredMarker`,to:`settings.components.field.requiredMarker`},{kind:`path`,from:`components.input.defaultVariant`,to:`settings.components.input.defaultVariant`},{kind:`path`,from:`components.input.defaultLabelMode`,to:`settings.components.input.defaultLabelMode`},{kind:`path`,from:`components.input.tintLabelOnFocus`,to:`settings.components.input.tintLabelOnFocus`},{kind:`path`,from:`components.input.shakeOnError`,to:`settings.components.input.shakeOnError`},{kind:`path`,from:`components.searchBar.defaultVariant`,to:`settings.components.search-bar.defaultVariant`},{kind:`path`,from:`components.select.defaultVariant`,to:`settings.components.select.defaultVariant`},{kind:`path`,from:`components.otpInput.shakeOnError`,to:`settings.components.otp-input.shakeOnError`},{kind:`path`,from:`components.optionSheet.selectedMarker`,to:`settings.components.option-sheet.selectedMarker`},{kind:`path`,from:`components.profilePicker.defaultTone`,to:`settings.components.profile-picker.defaultTone`},{kind:`path`,from:`components.profilePicker.defaultVariant`,to:`settings.components.profile-picker.defaultVariant`},{kind:`path`,from:`components.profilePicker.defaultAvatarTone`,to:`settings.components.profile-picker.defaultAvatarTone`},{kind:`path`,from:`components.slider.thumbPressAnimation`,to:`settings.components.slider.thumbPressAnimation`},{kind:`path`,from:`components.rating.pulseOnPress`,to:`settings.components.rating.pulseOnPress`},{kind:`path`,from:`components.stepper.pulseAnimation`,to:`settings.components.stepper.pulseAnimation`},{kind:`path`,from:`components.tooltip.enableScaleAnimation`,to:`settings.components.tooltip.enableScaleAnimation`},{kind:`path`,from:`components.toast.enableSwipeDismiss`,to:`settings.components.toast.enableSwipeDismiss`},{kind:`path`,from:`components.toast.defaultDurationMs`,to:`settings.components.toast.defaultDurationMs`},{kind:`gone`,from:`components.field.outlined`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.filled`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.underline`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.textColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.disabledTextColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.placeholderColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.fontWeight`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.requiredMarkerColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.input.fillColors`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.select.handleColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.select.fillColors`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.switch.thumbColor`,hint:`the thumb reads colors.thumb`},{kind:`gone`,from:`components.slider.thumbPressScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.slider.labelShowDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.slider.labelOpacity`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.swipeDismissThreshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.swipeVelocityThreshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.stackOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.stackScaleStep`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.stackMinScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.enterSpringDamping`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.enterSpringStiffness`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.enterSpringMass`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.iconCircleSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.iconGlyphText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.iconGlyphLineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.closeButtonSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.closeGlyphText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.closeButtonMarginLeft`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.containerPaddingLeft`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.iconGap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.textBlockPaddingRight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionsRowMarginTop`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionsRowGap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionButtonPaddingX`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionButtonPaddingY`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionButtonRadius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.formField.inlineLabelWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.numberInput.longPressDelayMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.numberInput.longPressIntervalMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressBar.indeterminateLoopDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressBar.indeterminateWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressBar.determinateAnimationDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressRing.animationDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressRing.strokeWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressRing.trackColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressRing.colorStops`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.rating.pulseScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomSheet.handleColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.choiceGroup.radius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.choiceGroup.selectedFillOpacity`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.filePicker.radius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.filePicker.thumbnailSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.filePicker.dashedBorderColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.profilePicker.badgeColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.profilePicker.badgeIconColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.inlineSelect.color`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.radius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.iconSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.pillHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.pillMaxWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.pillInset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.underlineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.floatingMargin`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.floatingRadius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.bubbleSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.bubbleLift`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.monthSlideDistance`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.monthSlideOutDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.monthSlideInDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.viewTransitionDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.headerPressDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.headerReleaseDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.navButtonSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.navText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.navTextLineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.dayCellPadding`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.dayInnerRadius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.yearCellPadding`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.yearInnerRadius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.decadeRangeMarginTop`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.footerButtonMinHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.monthSlideDistance`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.monthSlideOutDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.monthSlideInDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.navButtonSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.navText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.navTextLineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.footerButtonMinHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timePicker.hapticDebounceMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timePicker.handleWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timePicker.handleHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.borderWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.borderColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.statusBorderWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.statusBorderColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.ringWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.ringGap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.fontSizeRatio`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.text`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.fontWeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.accordion.cardPaddingY`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.sideSlotMinWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.collapseTranslateDistance`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.subtitleMarginTop`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.actionButtonSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.iconSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.dividerWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.dotSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.dotOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeMinWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgePaddingX`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeLineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.drawer.closeVelocityThreshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.drawer.dragActivationOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.imageGallery.maxScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.imageGallery.minScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.imageGallery.doubleTapScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.modal.scaleStartValue`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.stepper.circleSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.stepper.pulseSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.stepper.pulseDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.threshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.fullSwipeThreshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.dragActivationOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.rubberBandFactor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.failOffsetY`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.springDamping`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.springStiffness`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.springMass`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timeline.dotSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timeline.haloWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timeline.connectorGap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.gap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.screenPadding`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.pressAutoHideMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.arrowHalfWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.arrowHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.arrowCornerPadding`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.maxWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.lineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.exitDurationMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.segmentedControl.radius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tabs.radius`,hint:`fixed in the library since 0.89.0`},{kind:`kebab`,under:`components`,names:{searchBar:`search-bar`,emptyState:`empty-state`,listItem:`list-item`,otpInput:`otp-input`,segmentedControl:`segmented-control`,floatingActionButton:`floating-action-button`}}],props:[{package:`@webority/mobile-ui`,props:[`tone`,`variant`],from:`error`,to:`danger`}],componentProps:[],propValues:[{package:`@webority/ui-react`,components:[`AppInput`,`AppSelect`,`AppCountrySelect`],prop:`floatingLabel`,true:`border`,false:`off`}],propSplits:[{package:`@webority/ui-react`,components:[`AppInput`],prop:`passwordRequirements`,on:`shown`,off:`off`,into:`passwordPolicy`}],razorAttributes:[{tags:[`app-input`,`app-select`,`app-country-select`],attribute:`floating-label`,values:{true:`border`,false:`off`}},{tags:[`app-input`],attribute:`password-requirements`,values:{true:`shown`,false:`off`}}]},Eo=`--color-primary-text`,Do=new Set([...To.css.rename.map(([e])=>e),...To.css.reads.map(([e])=>e),...Object.keys(To.css.choose)].filter(e=>e!==Eo)),Oo=RegExp(`(?<![\\w-])(${[...Do].join(`|`)})(?![\\w-])`,`g`),ko=/* @__PURE__ */ RegExp(`(?<![\\w-])(--wui-chart-diverging-|--wui-chart-seq-|--wui-chart-)\\$\\{`,`g`),Ao=/* @__PURE__ */ new Set([`node_modules`,`dist`,`build`,`out`,`bin`,`obj`,`.git`,`.next`,`coverage`]),jo=/* @__PURE__ */ new Set([`.css`,`.scss`,`.sass`,`.less`,`.js`,`.jsx`,`.ts`,`.tsx`,`.cshtml`,`.razor`,`.html`,`.vue`]),Mo=(e,t)=>Ao.has(e)||e===`lib`&&c(t)===`wwwroot`,No=e=>jo.has(u(e).toLowerCase());function Po(e,t=[]){for(let n of i(e,{withFileTypes:!0})){let r=d(e,n.name);n.isDirectory()?Mo(n.name,e)||Po(r,t):No(n.name)&&t.push(r)}return t}function Fo(e,t){for(let n=l(e);n.length>t.length;n=l(n))if(Mo(c(n),l(n)))return!0;return!1}function Io(e){let n=v(`git`,[`ls-files`,`-z`,`--cached`,`--others`,`--exclude-standard`,`--`,`.`],{cwd:e,encoding:`utf8`,windowsHide:!0,maxBuffer:67108864});return n.status===0?n.stdout.split(`\0`).filter(e=>e&&No(e)).map(t=>d(e,t.split(`/`).join(g))).filter(n=>!Fo(n,e)&&t(n)):Po(e)}function Lo(e){let t=e.slice(0,3).join(`, `),n=e.length-3;return n>0?`${t} and ${n} more`:t}function Ro(e,t){let n=[];for(let i of Io(e)){let e=r(i,`utf8`),a=[];for(let t of e.matchAll(Oo))a.push({name:t[1]??``,index:t.index});for(let t of e.matchAll(ko))a.push({name:`${t[1]??``}\${`,index:t.index});if(a.length===0)continue;a.sort((e,t)=>e.index-t.index);let o=[...new Set(a.map(e=>e.name))],s=a[0]?.index??0,c=m(t,i).split(`\\`).join(`/`),l=e.slice(0,s).split(`
94
+ `).length;n.push([`stale-theme-name:${c}`,`${c}:${l} reads pre-0.89.0 theme names (${Lo(o)}). Run webority upgrade 0.89.0 --path <folder> once for the product's style and source folders, then webority brand; no alias for the old names is shipped.`])}return n}var zo=[`web`,`phone`,`razor`,`node`].map(e=>`${P}/tsconfig/${e}.json`),Bo=`biome.jsonc`,Vo=d(`.webority`,`baselines`,`exceptions.json`),Ho=d(`.webority`,`baselines`,`suppressions-baseline.json`),Uo=`js`,Wo=[`strict`,`noUncheckedIndexedAccess`,`exactOptionalPropertyTypes`,`noImplicitOverride`,`noImplicitReturns`,`noFallthroughCasesInSwitch`,`noUnusedLocals`,`noUnusedParameters`,`noUncheckedSideEffectImports`,`erasableSyntaxOnly`,`verbatimModuleSyntax`,`isolatedModules`,`forceConsistentCasingInFileNames`],Go=/^(?:\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?|workspace:.+)$/,Ko=/* @__PURE__ */ new Map([[`off`,0],[`info`,1],[`warn`,2],[`error`,3]]),qo=/\.[cm]?[jt]sx?$/,Jo=/(?:\/\/|\/\*)\s*(?:@ts-(expect-error|ignore|nocheck)\b|biome-ignore\s+([^\s:]+))/g,Yo=/^EX-[1-9][0-9]*$/,Xo=/^(?:TASK|BUG|FEATURE)-[0-9]+$|^decisions\/D-[0-9]+-/,Zo=[{kind:`scripts`,globs:[`scripts/**`,`**/scripts/**`]},{kind:`tests`,globs:[`**/*.test.*`,`**/test/**`,`**/__tests__/**`]},{kind:`tool config`,globs:[`**/*.config.js`,`**/*.config.mjs`,`**/*.config.ts`,`**/jest.setup.js`,`**/prebuild.js`]},{kind:`samples`,globs:[`samples/**`]},{kind:`command-line tools`,globs:[`**/cli.ts`,`**/cli/**`]}];function F(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function I(e){return Lt(r(e,`utf8`))}function Qo(e,t){return m(e,t).split(`\\`).join(`/`)}function $o(e,n,r){let i=e;for(;;){for(let e of r)if(t(d(i,e)))return d(i,e);if(i===n)return null;let e=l(i);if(e===i)return null;i=e}}function es(e,n,r){let i=e;for(;;){let e=d(i,`node_modules`,P,r);if(t(e))return e;if(i===n)return null;let a=l(i);if(a===i)return null;i=a}}function ts(e,t){if(F(e))for(let n of[`dependencies`,`devDependencies`]){let r=e[n];if(!F(r))continue;let i=r[t];if(typeof i==`string`)return i}}function ns(e){return!F(e)||!F(e.compilerOptions)?{}:e.compilerOptions}function rs(e){if(typeof e==`string`)return e;if(Array.isArray(e)){let t=e[0];return typeof t==`string`?t:void 0}if(F(e)&&typeof e.level==`string`)return e.level}function is(e){let t=/* @__PURE__ */ new Map;if(!F(e))return t;for(let[n,r]of Object.entries(e))if(F(r))for(let[e,i]of Object.entries(r)){let r=rs(i);r!==void 0&&t.set(`${n}/${e}`,r)}return t}function as(e){return[e??[]].flat().filter(e=>typeof e==`string`&&!e.startsWith(`!`))}function os(e,t){let n=[e.includes??[]].flat().filter(e=>typeof e==`string`&&e.startsWith(`!`)).map(e=>e.slice(1)),r=as(e.includes);return t.filter(e=>r.some(t=>f(e,t))&&!n.some(t=>f(e,t)))}var ss=/* @__PURE__ */ new Map;function cs(e,n){let r=`${e}\0${n}`,i=ss.get(r);if(i!==void 0)return i;let a=!1,o=d(n,`package.json`);if(t(o)){let e=I(o);a=F(e)&&e.bin!==void 0}else n!==e&&l(n)!==n&&(a=cs(e,l(n)));return ss.set(r,a),a}function ls(e,t){return Zo.some(e=>e.globs.some(e=>f(t,e)))?!0:cs(e,l(d(e,t)))}function us(e,t,n){let r=is(e),i=/* @__PURE__ */ new Map;for(let e of t){if(!F(e))continue;let t=os(e,n);if(t.length===0)continue;let a=e=>{let n=i.get(e)??/* @__PURE__ */ new Set;for(let e of t)n.add(e);i.set(e,n)},o=F(e.linter)?e.linter.rules:void 0;if(F(o)){for(let[e,t]of Object.entries(o))if(typeof t==`string`){let n=Ko.get(t);if(n===void 0)continue;for(let[t,i]of r){let r=Ko.get(i);t.startsWith(`${e}/`)&&r!==void 0&&r>n&&a(e)}}else if(F(t))for(let[n,i]of Object.entries(t)){let t=`${e}/${n}`,o=rs(i),s=r.get(t);if(o===void 0||s===void 0)continue;let c=Ko.get(o),l=Ko.get(s);c!==void 0&&l!==void 0&&c<l&&a(t)}}}return new Map([...i].map(([e,t])=>[e,[...t]]))}function ds(e,n,r,i){let a=[],o=d(n,`tsconfig.json`),s=Qo(e,o),u=(e,t)=>r.covers(e,t)!==null,f=null;if(t(o))try{f=I(o)}catch{return[[`standards:extends`,`tsconfig.json does not parse as JSON. react.md, Language: fix the syntax; the build type-checks with it.`]]}let p=F(f)?f.extends:void 0,m=typeof p==`string`?[p]:Array.isArray(p)?p.filter(e=>typeof e==`string`):[],h=zo.find(e=>m.includes(e));f!==null&&h===void 0&&!u(`tsconfig:extends`,s)&&a.push([`standards:extends`,`tsconfig.json does not extend a ${P} preset. react.md, Language: add "extends": "${P}/tsconfig/web.json" (or phone, razor or node for that surface) and keep only paths, include and types.`]);let g=d(n,`package.json`),_=ts(t(g)?I(g):void 0,P);_===void 0&&h!==void 0?a.push([`standards:pin`,`package.json does not declare ${P}, which tsconfig.json extends. Add it at an exact version: pnpm add -D --save-exact ${P}.`]):_!==void 0&&!Go.test(_)&&a.push([`standards:pin`,`package.json pins ${P} to "${_}", not an exact version. shared-packages.md: pin every @webority/* package exactly; pnpm add -D --save-exact ${P}@<x.y.z>.`]);let v=h===void 0?null:es(n,e,h.slice(P.length+1));if(h!==void 0&&v===null&&a.push([`standards:pin`,`${P} is declared but not installed beside this folder. Run pnpm install.`]),v!==null){let e=ns(I(v)),t=ns(f);for(let n of Wo)e[n]===!0&&t[n]===!1&&!u(`tsconfig:${n}`,s)&&a.push([`standards:loosened:${n}`,`tsconfig.json sets compilerOptions.${n} to false, looser than ${P}. react.md, Language: delete the line so the preset's true applies; a relaxed option needs an exceptions.json entry with rule "tsconfig:${n}".`])}let y=$o(n,e,[`biome.json`,`biome.jsonc`]),b=es(n,e,Bo);if(y!==null&&b!==null){let t;try{t=I(y)}catch{t=void 0}let n=F(t)&&Array.isArray(t.overrides)?t.overrides:[],o=I(b),s=F(o)&&F(o.linter)?o.linter.rules:void 0,u=Qo(e,l(y)),d=u===``?``:`${u}/`,f=i.filter(e=>e.startsWith(d)).map(e=>e.slice(d.length));for(let[t,i]of us(s,n,f)){let n=i.filter(n=>!ls(e,d+n)&&r.covers(`lint/${t}`,d+n)===null);n.length!==0&&a.push([`standards:override:${t}`,`${c(y)} lowers ${P}'s rule lint/${t} for shipped files: ${n.slice(0,5).join(`, `)}${n.length>5?` and ${n.length-5} more`:``}. react.md, Language: narrow the override to the files that need it and register each in exceptions.json with rule "lint/${t}" and its exact path; dev-only paths (${Zo.map(e=>e.kind).join(`, `)}) need no entry.`])}}return a}function fs(e){let n=d(e,Ho);if(!t(n))return{};let r=I(n);if(!F(r))throw Error(`webority-repo-checks: .webority/baselines/suppressions-baseline.json must be a JSON object.`);return r}function ps(e,t){let n=e[t];if(!F(n))return 0;let r=n[Uo];return typeof r==`number`?r:0}function ms(e,n,i){let a=fs(e),o=[];for(let s of n){if(!qo.test(s))continue;let n=d(e,s);if(!t(n))continue;let c=0;for(let e of r(n,`utf8`).split(`
95
+ `))for(let t of e.matchAll(Jo)){let e=t[1]===void 0?t[2]??`biome-ignore`:`@ts-${t[1]}`;i.covers(e,s)===null&&(c+=1)}let l=ps(a,s);c>l&&o.push([`suppression:${s}`,`${s} holds ${c} suppression comment(s) with no registered exception; suppressions-baseline.json allows ${l}. Fix the code and delete the comment, or add an exceptions.json entry for its rule covering this file. The baseline is a ceiling that only shrinks.`])}return o}function hs(e,t){return e===t?!0:/[*?[]/.test(e)?f(t,e):t.startsWith(e.endsWith(`/`)?e:`${e}/`)}function gs(e){if(!Array.isArray(e))throw Error(`webority-repo-checks: ${Vo} must be a JSON array of entries.`);return e.map((e,t)=>{let n=`${Vo} entry ${t+1}`;if(!F(e))throw Error(`webority-repo-checks: ${n} must be an object.`);let{id:r,rule:i,paths:a,reason:o,approvedBy:s}=e;if(typeof r!=`string`||!Yo.test(r))throw Error(`webority-repo-checks: ${n} needs an id of the form EX-<n>.`);if(typeof i!=`string`||i.length===0)throw Error(`webority-repo-checks: ${n} (${r}) needs a rule.`);if(!Array.isArray(a)||a.length===0||!a.every(e=>typeof e==`string`&&e.length>0))throw Error(`webority-repo-checks: ${n} (${r}) needs one or more non-empty paths.`);if(typeof o!=`string`||o.length<10)throw Error(`webority-repo-checks: ${n} (${r}) needs a reason of at least ten characters.`);if(typeof s!=`string`||!Xo.test(s))throw Error(`webority-repo-checks: ${n} (${r}) needs approvedBy as TASK-n, BUG-n, FEATURE-n or decisions/D-n-.`);return{id:r,rule:i,paths:a.filter(e=>typeof e==`string`)}})}function _s(e){let n=d(e,Vo),r=t(n)?gs(I(n)):[];return{covers(e,t){let n=r.find(n=>n.rule===e&&n.paths.some(e=>hs(e,t)));return n?n.id:null}}}var vs=`tracked-case`;function ys(e,t){let n=/* @__PURE__ */ new Map,r=t=>{let r=n.get(t);if(r===void 0){try{r=new Set(i(d(e,t)))}catch{r=/* @__PURE__ */ new Set}n.set(t,r)}return r},a=/* @__PURE__ */ new Set,o=[];for(let e of t){let t=e.split(`/`),n=`.`;for(let e=0;e<t.length;e++){let i=t[e]??``,s=r(n);if(s.has(i)){n=n===`.`?i:`${n}/${i}`;continue}let c=i.toLowerCase(),l=[...s].find(e=>e.toLowerCase()===c);if(l!==void 0){let n=t.slice(0,e+1).join(`/`);if(!a.has(n)){a.add(n);let r=[...t.slice(0,e),l].join(`/`);o.push([`${vs}:${n}`,`tracked as ${n} but on disk as ${r}; a Linux checkout cannot find the import. Run git mv "${n}" "${r}" so git records the rename.`])}}break}}return o}var bs=`@webority/analytics/fleet`,xs=`.webority/tracking-plan.json is not a JSON object. product-analytics.md: the plan is one JSON object with "extends": "${bs}".`;function Ss(e){if(!t(d(e,`.github`,`workflows`,`production.yml`)))return[];let n=d(e,`.webority`,`tracking-plan.json`);if(!t(n))return[[`tracking-plan:missing`,`.webority/tracking-plan.json is missing. product-analytics.md: a product repo keeps a tracking plan with "extends": "${bs}".`]];let i;try{i=JSON.parse(r(n,`utf8`))}catch{return[[`tracking-plan:invalid`,xs]]}return typeof i!=`object`||!i||Array.isArray(i)?[[`tracking-plan:invalid`,xs]]:!(`extends`in i)||i.extends!==bs?[[`tracking-plan:extends`,`.webority/tracking-plan.json does not extend ${bs}. product-analytics.md: set "extends": "${bs}".`]]:[]}function Cs(e){let t=[];return ws(d(e,`src`,`components`,`base`))&&t.push([`web-folder:components/base`,`src/components/base/ exists. react.md, Folder layout: never a components/base/ folder; primitives come from @webority/ui-react and the root ErrorBoundary from @webority/web-core. Import those and delete the folder.`]),ws(d(e,`src`,`components`,`features`))&&t.push([`web-folder:components/features`,`src/components/features/ is a flat catch-all. react.md, Folder layout: components/<feature>/ holds a component two or more screens of one feature share; move each component to components/<feature>/, or into its screen's file when one screen uses it.`]),t}function ws(e){return o(e,{throwIfNoEntry:!1})?.isDirectory()===!0}function Ts(){let e=JSON.parse(r(new URL(`../package.json`,import.meta.url),`utf8`)),t=typeof e==`object`&&e&&`version`in e?e.version:void 0;if(typeof t!=`string`)throw Error(`webority-repo-checks: its own package.json has no version.`);return t}var L=e=>e.split(`\\`).join(`/`),Es=(e,t)=>L(m(e,t))||`.`;function R(e){return typeof e==`object`&&!!e}function Ds(e){return R(e)&&Object.values(e).every(e=>typeof e==`string`)}var Os=[`name`,`main`,`module`,`source`,`packageManager`],ks=[`dependencies`,`devDependencies`,`peerDependencies`],As=[`name`,`version`,`onFail`];function js(e,t){let n=e=>{throw Error(`webority-repo-checks: ${t} has a ${e} of the wrong type. Fix the file, then run the checks again.`)};if(!R(e))return n(`top level`);let r={};for(let t of Os){let i=e[t];if(i!==void 0){if(typeof i!=`string`)return n(t);r[t]=i}}for(let t of ks){let i=e[t];if(i!==void 0){if(!Ds(i))return n(t);r[t]=i}}let i=e.exports;if(i!==void 0){if(typeof i!=`string`&&!R(i))return n(`exports`);r.exports=i}let a=e.devEngines;if(a!==void 0){if(!R(a))return n(`devEngines`);let e=a.packageManager;if(e===void 0)r.devEngines={};else{if(!R(e))return n(`devEngines.packageManager`);let t={};for(let r of As){let i=e[r];if(i!==void 0){if(typeof i!=`string`)return n(`devEngines.packageManager.${r}`);t[r]=i}}r.devEngines={packageManager:t}}}return r}function Ms(e){if(!t(e))return null;let n;try{n=JSON.parse(r(e,`utf8`))}catch(t){let n=t instanceof Error?t.message:String(t);throw Error(`webority-repo-checks: ${e} is not valid JSON (${n}). Fix the file, then run the checks again.`)}return js(n,e)}function Ns(e,t){let n=v(`git`,t,{cwd:e,encoding:`utf8`,windowsHide:!0,maxBuffer:67108864});return n.status===0?n.stdout:null}function Ps(e){let t=Ns(e,[`rev-parse`,`--show-toplevel`]);return t?t.trim():null}function z(e,t){let n=Ns(e,[`ls-files`,`-z`,`--`,...t.flatMap(e=>[e,`:(glob)**/${e}`])]);return n?[...new Set(n.split(`\0`).filter(Boolean))]:[]}function Fs(e){let t=Ns(e,[`ls-files`,`-z`]);return t?t.split(`\0`).filter(Boolean):[]}function Is(e,n){let r=e?.dependencies??{};if(ho.some(e=>r[e]))return null;let i=n&&(t(d(n,`android`))||t(d(n,`ios`)));return r[`react-native`]&&i?`mobile`:r[`react-dom`]&&(e?.devDependencies?.[`react-native-web`]||r[`react-native-web`])?`demo`:r[`react-native`]?`mobile`:[...Object.keys(r),...Object.keys(e?.devDependencies??{})].some(e=>e.startsWith(`@tauri-apps/`))||n&&t(d(n,`src-tauri`))?`desktop`:r[`react-dom`]?`web`:null}var Ls=/^https:\/\/\S+-\d+\.\d+\.\d+(?:-[0-9A-Za-z.]+)?\.(?:tgz|tar\.gz)$/,Rs=e=>/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/.test(e)||/^(?:workspace:\*|file:|link:)/.test(e)||Ls.test(e),zs=/* @__PURE__ */ new Set([`@biomejs/biome`,`@webority/biome-config`]),Bs=e=>/^(?:workspace:|file:|link:)/.test(e);function Vs(e,t,n){let r=[],i={...e.dependencies,...e.devDependencies},a=Object.keys(i);for(let[e,n]of uo[t])i[e]&&r.push([`banned:${e}`,`"${e}" is a dependency. ${n}.`]);for(let[e,n]of fo[t])for(let t of a.filter(t=>t.startsWith(e)))r.push([`banned:${t}`,`"${t}" is a dependency. ${n}.`]);for(let[e,n,a]of po[t])i[e]&&i[n]&&r.push([`banned:${e}`,`"${e}" is a dependency beside ${n}. ${a}.`]);for(let[e,a]of mo[t])(zs.has(e)?n:i)[e]||r.push([`required:${e}`,`"${e}" is not a dependency. ${a}.`]);let o=t===`mobile`||t===`desktop`?a:a.filter(e=>e.startsWith(`@webority/`)||e===`bootstrap`);for(let e of o){let t=String(i[e]);Rs(t)||r.push([`not-exact:${e}`,`"${e}": "${t}" is a range. Pin the version the lockfile holds, without ^ or ~.`])}for(let e of vo){let t=e.filter(e=>i[e]&&!Bs(String(i[e])));if(new Set(t.map(e=>String(i[e]).replace(/^[\^~]/,``))).size>1){let n=t.map(e=>`${e}@${i[e]}`).join(`, `);r.push([`lockstep:${e[0]}`,`${n} differ. These publish together at one version; move every pin in the set together.`])}}return r}function B(e,n,r){let i=e;for(;;){for(let e of r)if(t(d(i,e)))return d(i,e);if(i===n)return null;let e=l(i);if(e===i)return null;i=e}}function Hs(e,t){let n=e,i=null;for(;;){let e=B(n,t,[`biome.json`,`biome.jsonc`]);if(!e)return i;i=l(e);let a;try{a=Lt(r(e,`utf8`))}catch{return i}let o=l(i);if(a.root!==!1||i===t||o===i)return i;n=o}}function Us(e,t,n){let r=Hs(e,t),i=r&&r!==e?Ms(d(r,`package.json`)):null;return i?{...i.dependencies,...i.devDependencies}:n}function Ws(){let e=process.env.WEBORITY_PREREQUISITES??d(y(),`.claude`,`prerequisites.json`);if(!t(e))return null;let n=JSON.parse(r(e,`utf8`)),i=Array.isArray(n)?n.find(e=>R(e)&&e.name===`pnpm`):void 0,a=R(i)?i.minVersion:void 0;if(typeof a!=`string`||!/^\d+\.\d+\.\d+$/.test(a))throw Error(`webority-repo-checks: ${e} has no pnpm entry with an x.y.z minVersion.`);return a}function Gs(e,n){let i=[],a=B(e,n,[`pnpm-lock.yaml`]);a||i.push([`pnpm:no-lockfile`,`No pnpm-lock.yaml in this folder or above it. react.md: every JS repo installs with pnpm.`]);let o=a?l(a):e,s=Ms(d(o,`package.json`))??Ms(d(e,`package.json`)),c=s?.devEngines?.packageManager;c?.name===`pnpm`&&/^\d+\.\d+\.\d+$/.test(c?.version??``)&&c?.onFail===`error`||i.push([`pnpm:dev-engines`,`package.json lacks "devEngines": { "packageManager": { "name": "pnpm", "version": "<x.y.z>", "onFail": "error" } }. react.md: Package manager.`]);let u=Ws();u&&/^\d+\.\d+\.\d+$/.test(c?.version??``)&&c?.version!==u&&i.push([`pnpm:version`,`package.json pins pnpm ${c?.version} in devEngines.packageManager.version; the version in the machine prerequisites list is ${u}. Set it to ${u} and run pnpm install. react.md: Package manager.`]),s?.packageManager!==void 0&&i.push([`pnpm:package-manager`,`package.json sets "packageManager", which pnpm ignores beside devEngines. Move its version into devEngines.packageManager.version and delete it. react.md: Package manager.`]);let f=d(o,`pnpm-workspace.yaml`);if(!t(f))i.push([`pnpm:no-workspace-file`,`No pnpm-workspace.yaml beside the lockfile. react.md: it holds engineStrict, strictPeerDependencies and allowBuilds.`]);else{let e=r(f,`utf8`);/^engineStrict:\s*true\s*$/m.test(e)||i.push([`pnpm:engine-strict`,`pnpm-workspace.yaml lacks engineStrict: true. react.md: a Node mismatch must fail the install.`]),/^strictPeerDependencies:\s*true\s*$/m.test(e)||i.push([`pnpm:strict-peers`,`pnpm-workspace.yaml lacks strictPeerDependencies: true. react.md: a peer conflict must fail the install.`])}for(let n of[`package-lock.json`,`yarn.lock`])t(d(e,n))&&i.push([`pnpm:${n}`,`${n} sits in this folder. react.md: pnpm only; seed pnpm-lock.yaml with pnpm import, then delete it.`]);return i}function Ks(e,t,n,r){if((e.javascript?.globals??[]).includes(r))return!0;let i=[`index.js`,`index.jsx`,`index.ts`,`index.tsx`].map(e=>L(m(t,d(n,e))));return(e.overrides??[]).some(e=>(e.javascript?.globals??[]).includes(r)&&[e.includes??[]].flat().some(e=>!String(e).startsWith(`!`)&&i.some(t=>f(t,String(e)))))}function qs(e,t,n,i){let a=B(e,t,[`biome.json`,`biome.jsonc`]);if(!a)return[[`biome:missing`,`No biome.json in this folder or above it. react.md: one committed root biome.json.`]];let o;try{o=Lt(r(a,`utf8`))}catch{return[[`biome:unreadable`,`${c(a)} does not parse.`]]}let s=[],u=[o.extends??[]].flat();return u.some(e=>e===`@webority/biome-config/biome.jsonc`||String(e).endsWith(`code-standards/biome.jsonc`))||s.push([`biome:extends`,`${c(a)} does not extend "${yo}". react.md: every repo extends the shared preset.`]),i&&!u.some(e=>e===`@webority/biome-config/biome.phone.jsonc`||String(e).endsWith(`code-standards/biome.phone.jsonc`))&&s.push([`biome:phone-extends`,`${c(a)} does not extend "${bo}". A React Native app extends the phone preset after the shared one, base first: "extends": ["${yo}", "${bo}"] (the header of biome.phone.jsonc).`]),o.formatter?.lineEnding&&s.push([`biome:line-ending`,`${c(a)} sets formatter.lineEnding. react.md: inherit it from the shared preset, never set it.`]),o.linter?.rules&&Object.keys(o.linter.rules).length>0&&s.push([`biome:root-rules`,`${c(a)} sets linter.rules at the root. react.md: never a rule's severity at the root; a per-path exception goes in overrides.`]),n===`mobile`&&!Ks(o,l(a),e,`__DEV__`)&&s.push([`biome:dev-global`,`${c(a)} lacks "__DEV__" in javascript.globals. react-native.md: Debugging and agent access.`]),s}var Js=d(`node_modules`,`@biomejs`,`biome`,`bin`,`biome`);function Ys(e,t,n){if(e.start?.line)return e.start.line;if(!Array.isArray(e.span))return null;let i=r(d(t,n)),a=1;for(let t=0;t<(e.span[0]??0);t++)i[t]===10&&a++;return a}function Xs(e){try{return a(e)}catch{return null}}function Zs(e,t,n){let r=n.split(`/`),i=n.startsWith(`@`)?r.slice(0,2).join(`/`):r[0]??``,a=n.slice(i.length)?`.${n.slice(i.length)}`:`.`,o=B(e,t,[d(`node_modules`,i)]),s=o&&Xs(o);if(!s)return null;let c=Ms(d(s,`package.json`));if(!c)return null;let l=(typeof c.exports==`string`?{".":c.exports}:c.exports)?.[a]??(a===`.`?c.module??c.main:null);for(;R(l);)l=l.import??l.default;if(typeof l!=`string`)return null;let u=a===`.`&&typeof c.source==`string`?c.source:l.replace(Qs,`src/`);return{pkgDir:s,entry:d(s,l),sourcePath:d(s,u),workspace:$s(t,s)}}var Qs=/^(?:\.\/)?(?:dist|lib|build)\/(?:(?:typescript\/)?(?:module|commonjs)\/)?/;function $s(e,t){let n;try{n=a(t)}catch{return!1}let r=m(a(e),n);return!r.startsWith(`..`)&&!r.split(/[\\/]/).includes(`node_modules`)}function ec(e){try{return o(e).isFile()}catch{return!1}}var tc=[`.ts`,`.tsx`,`.js`,`.jsx`,`.mjs`],nc=[`index.ts`,`index.tsx`,`index.js`,`index.jsx`,`index.mjs`];function rc(e){let t=e.replace(/\.(?:[cm]?jsx?|tsx?)$/,``);return[e,...tc.map(e=>t+e),...nc.map(t=>d(e,t))].find(ec)??null}function ic(e){return e?e.workspace?rc(e.sourcePath):e.entry:null}function ac(e,t,n,r){let i=Zs(e,t,n);if(!i)return!1;let a=/* @__PURE__ */ new Set,o=ic(i);return o===null||lc(o,r,t,a)}function oc(e,t,n,r){let i=dc(l(t),n);return i!==null&&lc(i,r,e,/* @__PURE__ */ new Set)}var sc=/\bexport\s*(?:(\*)(?:\s*as\s+([\w$]+))?|\{([^}]*)\})(?:\s*from\s*["']([^"']+)["'])?/g,cc=[``,`.js`,`.mjs`,`.cjs`,`.jsx`,`.ts`,`.tsx`,`/index.js`,`/index.mjs`,`/index.jsx`,`/index.ts`,`/index.tsx`];function lc(e,t,n,i){if(i.has(e))return!1;i.add(e);let a;try{a=r(e,`utf8`)}catch{return!1}if(RegExp(`\\bexport\\s+(?:async\\s+)?(?:const|let|var|function\\*?|class)\\s+${t}\\b`).test(a)||t==="default"&&/\bexport\s+default\b/.test(a)||RegExp(`\\b(?:module\\.)?exports\\.${t}\\s*=|Object\\.defineProperty\\(\\s*(?:module\\.)?exports\\s*,\\s*["']${t}["']|\\bget\\s+${t}\\s*\\(`).test(a))return!0;for(let[,r,o,s,c]of a.matchAll(sc))if(r){if(o===t||o===void 0&&c!==void 0&&uc(e,c,t,n,i))return!0}else if(s!==void 0)for(let r of s.split(`,`)){let[a=``,o]=r.trim().replace(/^type\s+/,``).split(/\s+as\s+/);if((o??a)===t&&(c===void 0||uc(e,c,a,n,i)))return!0}return!1}function uc(e,t,n,r,i){let a=t.startsWith(`.`)?dc(l(e),t):ic(Zs(l(e),r,t));return a!==null&&lc(a,n,r,i)}function dc(e,t){let n=d(e,t);for(let e of cc)if(o(n+e,{throwIfNoEntry:!1})?.isFile())return n+e;return null}function fc(e,n){let r=B(e,n,[Js]);if(!r)return[];let i=t(d(e,`src`))?`src`:`.`,a=v(process.execPath,[r,`lint`,`--only=correctness/noUnresolvedImports`,`--reporter=json`,`--max-diagnostics=none`,`--colors=off`,i],{cwd:e,encoding:`utf8`,maxBuffer:67108864,windowsHide:!0}),o=pc(a.stdout??``);if(o===null)return[[`missing-export:unreadable`,`Biome's report could not be read: ${String(a.stderr||a.stdout||``).slice(0,200)}`]];let s=/* @__PURE__ */ new Map;for(let t of o){let r=String(t.message??``);if(!r.includes(`has no export named`))continue;let i=r.match(/^The (?:path|module) (\S+) has no export named (\w+)/);if(!i){s.set(`unreadable`,[`missing-export:unreadable`,`Biome reported a missing export in a form this check cannot read: ${r.slice(0,200)}`]);continue}let a=i[1]??``,o=i[2]??``;if((Object.hasOwn(xo,a)?xo[a]:void 0)?.includes(o))continue;let c=h(e,String(t.location?.path));if(a.startsWith(`.`)?oc(n,c,a,o):ac(e,n,a,o))continue;let l=L(m(e,c)),u=Ys(t.location??{},e,l),d=u?`${l}:${u}`:l,f=`missing-export:${l}`,p=`${d} imports ${o} from ${a}, which does not export it. Import the name the module exports (a default export is imported without braces).`;s.set(`${f}\0${p}`,[f,p])}return[...s.values()]}function pc(e){try{let t=JSON.parse(e);return!R(t)||!Array.isArray(t.diagnostics)?null:t.diagnostics}catch{return null}}function mc(e){let t=d(e,`node_modules`,`@webority`,`ui-react`);try{let e=d(t,`package.json`),n=js(JSON.parse(r(e,`utf8`)),e),i=typeof n.module==`string`?n.module:typeof n.main==`string`?n.main:`dist/index.js`,a=r(d(t,i),`utf8`),o=new Set([...a.matchAll(/App[A-Z][A-Za-z0-9]*/g)].map(e=>e[0]));if(o.size>0)return o}catch(e){if(hc(e)!==`ENOENT`)throw e}return new Set(So)}function hc(e){return R(e)?e.code:void 0}function gc(e){return i(e,{withFileTypes:!0}).flatMap(t=>t.isDirectory()?gc(d(e,t.name)):[d(e,t.name)])}function _c(e){try{return JSON.parse(r(d(e,`package.json`),`utf8`)).name===`@webority/ui-root`}catch{return!1}}function vc(e){let n=d(e,`src`);if(!t(n))return[];let r=mc(e),i=[];for(let t of gc(n)){if(![`.jsx`,`.tsx`].includes(u(t)))continue;let n=c(t).split(`.`)[0]??``;if(r.has(n)){let r=L(m(e,t));i.push([`catalogue-copy:${r}`,`${r} is named like the @webority/ui-react export ${n}. bootstrap-ui.md: use the catalogue component, never a local copy.`])}}return i}var yc=/gradle\.startParameter\.taskNames[^\n]*["']release["']/,bc=/throw\s+new\s+GradleException\s*\(/,xc=/^\s*edgeToEdgeEnabled\s*=\s*false\s*$/m;function Sc(e){let n=[],i=d(e,`android`,`app`,`build.gradle`);if(t(i)){let e=r(i,`utf8`).replace(/\/\*[\s\S]*?\*\//g,``).replace(/^\s*\/\/.*$/gm,``);yc.test(e)&&bc.test(e)||n.push([`android-release-signing`,`android/app/build.gradle has no release signing guard. react-native-toolchain.md: when a requested task name contains "release", throw a GradleException that names each missing signing setting, and never sign a release with the debug key.`])}let a=d(e,`android`,`gradle.properties`);return t(a)&&xc.test(r(a,`utf8`))&&n.push([`android-edge-to-edge`,`android/gradle.properties sets edgeToEdgeEnabled=false. react-native-toolchain.md: set edgeToEdgeEnabled=true.`]),n}var Cc=/* @__PURE__ */ new Set([`.js`,`.jsx`,`.mjs`,`.cjs`,`.ts`,`.tsx`]),wc=/\b(?:import|export)\s+type\s+(?:\{[^}]*\}|\*(?:\s+as\s+[\w$]+)?|[\w$]+)\s+from\s*["'][^"']*["']/g;function Tc(e,n){let i=d(e,`src`);if(!t(i))return[];let a=[];for(let t of gc(i)){if(!Cc.has(u(t).toLowerCase())||ct(L(m(n,t)),n))continue;let i=r(t,`utf8`).split(`
96
96
  `).map(e=>/^\s*(?:\/\/|\/\*|\*)/.test(e)?``:e).join(`
97
- `),o=i.replace(Sc,``),s=I(m(e,t));for(let[e,t,n,r]of mo)t.test(o)&&a.push([`${e}:${s}`,`${s} ${n}. ${r}.`]);for(let[e,t,n,r]of ho)t.test(i)&&a.push([`${e}:${s}`,`${s} ${n}. ${r}.`])}return a}var wc=`.husky/pre-commit`,Tc=[`library`,`tool`],Ec=`.webority/settings.json`;function Dc(e){let n=d(e,Ec);if(t(n)&&!Tc.includes(JSON.parse(r(n,`utf8`)).kind))return[];let i=d(e,wc),a=t(i)?r(i,`utf8`).replace(/\r\n/g,`
97
+ `),o=i.replace(wc,``),s=L(m(e,t));for(let[e,t,n,r]of go)t.test(o)&&a.push([`${e}:${s}`,`${s} ${n}. ${r}.`]);for(let[e,t,n,r]of _o)t.test(i)&&a.push([`${e}:${s}`,`${s} ${n}. ${r}.`])}return a}var Ec=`.husky/pre-commit`,Dc=[`library`,`tool`],Oc=`.webority/settings.json`;function kc(e){let n=d(e,Oc);if(t(n)&&!Dc.includes(JSON.parse(r(n,`utf8`)).kind))return[];let i=d(e,Ec),a=t(i)?r(i,`utf8`).replace(/\r\n/g,`
98
98
  `):null;return a===`# Fast only. The expensive verification is \`corepack pnpm check\`, run by hand before pushing
99
99
  # (CLAUDE.md -> Before pushing). A slow pre-commit gets bypassed within a day, and a hook people bypass is worse than none because
100
100
  # it manufactures confidence without providing it.
@@ -155,8 +155,8 @@ local_checks="$cfg/.husky/pre-commit.local"
155
155
  if [ -f "$local_checks" ]; then
156
156
  sh "$local_checks" || exit 1
157
157
  fi
158
- `?[]:[[`hook:drift`,`${wc} ${a===null?`is missing`:`differs from the shared hook`}. Run pnpm exec webority-repo-checks --sync-hook from the git root; repo-only steps go in .husky/pre-commit.local.`]]}var Oc=/* @__PURE__ */ `lint.missing-export.stale-theme-name.advisory.raw-measure.palette-read.raw-colour.root-font-size.raw-motion.dark-read.missing-canvas-key.repeated-canvas-key.raw-bootstrap.library-class-restyle.unknown-icon.rename-wrapper.shadowed-library-name.single-use-component.error-summary-title.route-internal-id.razor-page-handler.razor-page-link.web-route-literal.api-thunk.screen-service-import.api-call.oversize.page-lint.deprecated-import.react-string-ref.legacy-component-props.legacy-react-test-api.navigation-shim.legacy-node-sqlite`.split(`.`);function kc(e,n=null,r={}){let i=n?new Set(n.map(t=>ws(e,t))):null,a=[],o=(e,t)=>{for(let[n,r]of t){let t=n.split(`:`)[0]??``;a.push({pkg:e,id:n,message:r,...So(t)?{}:{warning:!0}})}};(!i||i.has(`.`))&&o(`.`,[...Dc(e),..._s(e,Ns(e)),...bs(e)]);for(let n of R(e,[`package-lock.json`,`yarn.lock`])){if(!t(d(e,n)))continue;let r=I(l(n))||`.`;(!i||i.has(r))&&o(r,[[`pnpm:${c(n)}`,`${c(n)} is committed. react.md: pnpm only; seed pnpm-lock.yaml with pnpm import, then delete it.`]])}let s=new Set(R(e,[`package.json`]).map(t=>ws(e,d(e,l(t)))).filter(e=>!/(^|\/)fixtures\//.test(e)).filter(n=>t(d(e,n,`package.json`))));for(let n of i??[])t(d(e,n,`package.json`))&&s.add(n);let u=r.build===!0,f=hc(e),p=hs(e),m=Ns(e),h=/* @__PURE__ */ new Set;for(let t of s){if(i&&!i.has(t))continue;let n=d(e,t),s=As(d(n,`package.json`));if(s===null)throw Error(`webority-repo-checks: ${t}/package.json is missing.`);let c=Ps(s,n),l=()=>f&&(t.startsWith(`packages/`)||t.startsWith(`samples/`))?[]:gc(n),g=!(f&&(t.startsWith(`packages/`)||t.startsWith(`samples/`)));if(!c){({...s.dependencies,...s.devDependencies,...s.peerDependencies})[`@webority/ui-react`]&&o(t,l());continue}let _=z(n,e,[`pnpm-lock.yaml`]);_&&h.add(_);let v=Us(n,e).filter(([e])=>!a.some(n=>n.pkg===t&&n.id===e)),y=u||r.skipLint===!0?{plain:[],counted:[]}:rn(n,z(n,e,[Ks])),b={...s.dependencies,...s.devDependencies},x=b[`react-native`]!==void 0&&!t.startsWith(`samples/`),S=m.filter(e=>t===`.`||e.startsWith(`${t}/`));o(t,[...zs(s,c,Vs(n,e,b)),...v,...Gs(n,e,c,x),...ls(e,n,p,S).map(([e,t])=>[e,t]),...fs(e,S,p).map(([e,t])=>[e,t]),...c===`demo`||u?[]:uc(n,e),...c===`mobile`?[...bc(n),...Ba(n),...Ka(n)]:[],...c===`mobile`&&!t.startsWith(`samples/`)?[...wa(n),...wn(n),...Ma(n,Cs())]:[],...c===`web`?[...l(),...Cc(n,e),...Ya(n),...g?[...Pe(n),...$t(n),...to(n,e),...xs(n)]:[],...u?[]:Io(n,e)]:[],...c===`mobile`||c===`web`?Ft(n):[],...c===`mobile`||c===`web`?De(n):[],...y.plain]);for(let r of y.counted){let i=`${r.rule}:${ws(e,d(n,r.path))}`;a.push({pkg:t,id:i,message:r.text,counted:{line:r.line,text:r.text}})}}if(r.advisories===!0&&!u)for(let t of h){let n=l(t);for(let t of Et(n,r.auditRun===void 0?{}:{run:r.auditRun})){let r=t.warning||!So(`advisory`);a.push({pkg:ws(e,n),id:t.id,message:t.message,...r?{warning:!0}:{}})}}return a}var Ac=/(?:\bfrom\s*|\brequire\(\s*)["'](?:react-native|@webority\/mobile-ui|@webority\/ui-react)(?:\/[^"']*)?["']/,jc=`A list item needs a Canvas key from its record (data-canvas on web, testID on phone), never its index. canvas-kit ids proposes them.`,Mc=`A Canvas key names one element: give each part its own key, or a key from its record inside a list.`,Nc=/<([A-Za-z][\w$.:-]*)/g,Pc=/\{\s*\.\.\./y,Fc=/* @__PURE__ */ new Set([`Fragment`,`React.Fragment`]),Ic=/\.(?:Screen|Group)$/,Lc=/=>/g,Rc=/\bfunction\b/g,zc=/\breturn\b/y;function Bc(e){return e?_t.phone:_t.web}var Vc=/\bexport\s+default\s+(?:function\s+([A-Z][\w$]*)|(?:React\.)?(?:memo|forwardRef)\(\s*(?:function\s+)?([A-Z][\w$]*)|([A-Z][\w$]*)\s*;?\s*$)/m;function Hc(e,{phone:t}){let n=Wc(e),r=Kc(n,RegExp(`(?<![\\w-])${Bc(t)}\\s*=`),{spreadCounts:!1}),i=/* @__PURE__ */ new Set;for(let e of r)RegExp(`\\bexport\\s+(?:const|function)\\s+${e}\\b|\\bexport\\s*\\{[^}]*\\b${e}\\b`).test(n)&&i.add(e);let a=Vc.exec(n),o=a&&(a[1]??a[2]??a[3]);return o&&r.has(o)&&i.add(`default`),i}function Uc(e,{phone:t,keyedImports:n=/* @__PURE__ */ new Set}){if(!Ac.test(e))return[];let r=Bc(t),i=RegExp(`(?<![\\w-])${r}\\s*=`),a=RegExp(`(?<![\\w-])${r}\\s*=\\s*(["'])`),o=Wc(e),s=e.split(`
159
- `),c=al(e),l=[],u=(e,t,n)=>{let r=ol(c,e);l.push({rule:t,line:r,text:(s[r-1]??``).trim().slice(0,160),hint:n})},d=Kc(o,i);for(let e of o.matchAll(/\.map\(/g)){let t=e.index+e[0].length-1,r=tl(o,t),a=qc(o,t+1,r);if(!a||Ic.test(a.name))continue;let s=il(o,a.nameEnd);s.spread||i.test(s.top)||d.has(a.name)||n.has(a.name)||u(a.index,`missing-canvas-key`,jc)}let f=/* @__PURE__ */ new Map,p=B(o,0);for(;p;){let t=il(o,p.nameEnd),n=a.exec(t.top);if(n){let r=n[1]??``,i=n.index+n[0].length,a=t.top.indexOf(r,i);if(a!==-1){let n=e.slice(t.from+i,t.from+a),r=f.get(n)??[];r.push(p.index),f.set(n,r)}}p=B(o,p.nameEnd)}for(let e of f.values())for(let t of e.slice(1))u(t,`repeated-canvas-key`,Mc);return l.sort((e,t)=>e.line-t.line||e.rule.localeCompare(t.rule)),l}function Wc(e){let t=[],n=e.length,r=0;for(;r<n;){let i=e[r]??``,a=e[r+1];if(i===`/`&&a===`/`)for(;r<n&&e[r]!==`
158
+ `?[]:[[`hook:drift`,`${Ec} ${a===null?`is missing`:`differs from the shared hook`}. Run pnpm exec webority-repo-checks --sync-hook from the git root; repo-only steps go in .husky/pre-commit.local.`]]}var Ac=/* @__PURE__ */ `lint.missing-export.stale-theme-name.advisory.raw-measure.palette-read.raw-colour.root-font-size.raw-motion.dark-read.missing-canvas-key.repeated-canvas-key.raw-bootstrap.library-class-restyle.unknown-icon.rename-wrapper.shadowed-library-name.single-use-component.error-summary-title.route-internal-id.razor-page-handler.razor-page-link.web-route-literal.api-thunk.screen-service-import.api-call.oversize.page-lint.deprecated-import.react-string-ref.legacy-component-props.legacy-react-test-api.navigation-shim.legacy-node-sqlite`.split(`.`);function jc(e,n=null,r={}){let i=n?new Set(n.map(t=>Es(e,t))):null,a=[],o=(e,t)=>{for(let[n,r]of t){let t=n.split(`:`)[0]??``;a.push({pkg:e,id:n,message:r,...wo(t)?{}:{warning:!0}})}};(!i||i.has(`.`))&&o(`.`,[...kc(e),...ys(e,Fs(e)),...Ss(e)]);for(let n of z(e,[`package-lock.json`,`yarn.lock`])){if(!t(d(e,n)))continue;let r=L(l(n))||`.`;(!i||i.has(r))&&o(r,[[`pnpm:${c(n)}`,`${c(n)} is committed. react.md: pnpm only; seed pnpm-lock.yaml with pnpm import, then delete it.`]])}let s=new Set(z(e,[`package.json`]).map(t=>Es(e,d(e,l(t)))).filter(e=>!/(^|\/)fixtures\//.test(e)).filter(n=>t(d(e,n,`package.json`))));for(let n of i??[])t(d(e,n,`package.json`))&&s.add(n);let u=r.build===!0,f=_c(e),p=_s(e),m=Fs(e),h=/* @__PURE__ */ new Set;for(let t of s){if(i&&!i.has(t))continue;let n=d(e,t),s=Ms(d(n,`package.json`));if(s===null)throw Error(`webority-repo-checks: ${t}/package.json is missing.`);let c=Is(s,n),l=()=>f&&(t.startsWith(`packages/`)||t.startsWith(`samples/`))?[]:vc(n),g=!(f&&(t.startsWith(`packages/`)||t.startsWith(`samples/`)));if(!c){({...s.dependencies,...s.devDependencies,...s.peerDependencies})[`@webority/ui-react`]&&o(t,l());continue}let _=B(n,e,[`pnpm-lock.yaml`]);_&&h.add(_);let v=Gs(n,e).filter(([e])=>!a.some(n=>n.pkg===t&&n.id===e)),y=u||r.skipLint===!0?{plain:[],counted:[]}:rn(n,B(n,e,[Js])),b={...s.dependencies,...s.devDependencies},x=b[`react-native`]!==void 0&&!t.startsWith(`samples/`),S=m.filter(e=>t===`.`||e.startsWith(`${t}/`));o(t,[...Vs(s,c,Us(n,e,b)),...v,...qs(n,e,c,x),...ds(e,n,p,S).map(([e,t])=>[e,t]),...ms(e,S,p).map(([e,t])=>[e,t]),...c===`demo`||u?[]:fc(n,e),...c===`mobile`?[...Sc(n),...Ha(n),...Ja(n)]:[],...c===`mobile`&&!t.startsWith(`samples/`)?[...Ea(n),...wn(n),...Pa(n,Ts())]:[],...c===`web`?[...l(),...Tc(n,e),...Za(n),...g?[...Pe(n),...$t(n),...ro(n,e),...Cs(n)]:[],...u?[]:Ro(n,e)]:[],...c===`mobile`||c===`web`?Ft(n):[],...c===`mobile`||c===`web`?De(n):[],...y.plain]);for(let r of y.counted){let i=`${r.rule}:${Es(e,d(n,r.path))}`;a.push({pkg:t,id:i,message:r.text,counted:{line:r.line,text:r.text}})}}if(r.advisories===!0&&!u)for(let t of h){let n=l(t);for(let t of Et(n,r.auditRun===void 0?{}:{run:r.auditRun})){let r=t.warning||!wo(`advisory`);a.push({pkg:Es(e,n),id:t.id,message:t.message,...r?{warning:!0}:{}})}}return a}var Mc=/(?:\bfrom\s*|\brequire\(\s*)["'](?:react-native|@webority\/mobile-ui|@webority\/ui-react)(?:\/[^"']*)?["']/,Nc=`A list item needs a Canvas key from its record (data-canvas on web, testID on phone), never its index. canvas-kit ids proposes them.`,Pc=`A Canvas key names one element: give each part its own key, or a key from its record inside a list.`,Fc=/<([A-Za-z][\w$.:-]*)/g,Ic=/\{\s*\.\.\./y,Lc=/* @__PURE__ */ new Set([`Fragment`,`React.Fragment`]),Rc=/\.(?:Screen|Group)$/,zc=/=>/g,Bc=/\bfunction\b/g,Vc=/\breturn\b/y;function Hc(e){return e?_t.phone:_t.web}var Uc=/\bexport\s+default\s+(?:function\s+([A-Z][\w$]*)|(?:React\.)?(?:memo|forwardRef)\(\s*(?:function\s+)?([A-Z][\w$]*)|([A-Z][\w$]*)\s*;?\s*$)/m;function Wc(e,{phone:t}){let n=Kc(e),r=Jc(n,RegExp(`(?<![\\w-])${Hc(t)}\\s*=`),{spreadCounts:!1}),i=/* @__PURE__ */ new Set;for(let e of r)RegExp(`\\bexport\\s+(?:const|function)\\s+${e}\\b|\\bexport\\s*\\{[^}]*\\b${e}\\b`).test(n)&&i.add(e);let a=Uc.exec(n),o=a&&(a[1]??a[2]??a[3]);return o&&r.has(o)&&i.add(`default`),i}function Gc(e,{phone:t,keyedImports:n=/* @__PURE__ */ new Set}){if(!Mc.test(e))return[];let r=Hc(t),i=RegExp(`(?<![\\w-])${r}\\s*=`),a=RegExp(`(?<![\\w-])${r}\\s*=\\s*(["'])`),o=Kc(e),s=e.split(`
159
+ `),c=sl(e),l=[],u=(e,t,n)=>{let r=cl(c,e);l.push({rule:t,line:r,text:(s[r-1]??``).trim().slice(0,160),hint:n})},d=Jc(o,i);for(let e of o.matchAll(/\.map\(/g)){let t=e.index+e[0].length-1,r=rl(o,t),a=Yc(o,t+1,r);if(!a||Rc.test(a.name))continue;let s=ol(o,a.nameEnd);s.spread||i.test(s.top)||d.has(a.name)||n.has(a.name)||u(a.index,`missing-canvas-key`,Nc)}let f=/* @__PURE__ */ new Map,p=V(o,0);for(;p;){let t=ol(o,p.nameEnd),n=a.exec(t.top);if(n){let r=n[1]??``,i=n.index+n[0].length,a=t.top.indexOf(r,i);if(a!==-1){let n=e.slice(t.from+i,t.from+a),r=f.get(n)??[];r.push(p.index),f.set(n,r)}}p=V(o,p.nameEnd)}for(let e of f.values())for(let t of e.slice(1))u(t,`repeated-canvas-key`,Pc);return l.sort((e,t)=>e.line-t.line||e.rule.localeCompare(t.rule)),l}function Kc(e){let t=[],n=e.length,r=0;for(;r<n;){let i=e[r]??``,a=e[r+1];if(i===`/`&&a===`/`)for(;r<n&&e[r]!==`
160
160
  `;)t.push(` `),r++;else if(i===`/`&&a===`*`){for(t.push(` `,` `),r+=2;r<n&&(e[r]!==`*`||e[r+1]!==`/`);)t.push(e[r]===`
161
161
  `?`
162
162
  `:` `),r++;r<n&&(t.push(` `,` `),r+=2)}else if(i===`'`||i===`"`){for(t.push(i),r++;r<n&&e[r]!==i&&e[r]!==`
@@ -164,41 +164,41 @@ fi
164
164
  `?(t.push(` `,` `),r+=2):(t.push(` `),r++);r<n&&e[r]===i&&(t.push(i),r++)}else if(i==="`"){for(t.push(i),r++;r<n&&e[r]!=="`";)e[r]===`\\`&&r+1<n&&e[r+1]!==`
165
165
  `?(t.push(` `,` `),r+=2):(t.push(e[r]===`
166
166
  `?`
167
- `:` `),r++);r<n&&(t.push("`"),r++)}else t.push(i),r++}return t.join(``)}var Gc=/\bfunction\s+([A-Z][\w$]*)\s*\(|\bconst\s+([A-Z][\w$]*)\s*=\s*(?:memo\(\s*|forwardRef\(\s*)?(?:\([^)]*\)|[\w$]+)\s*=>/g;function Kc(e,t,{spreadCounts:n=!0}={}){let r=/* @__PURE__ */ new Set;for(let i of e.matchAll(Gc)){let a=B(e,i.index+i[0].length);for(;a&&Fc.has(a.name);)a=B(e,a.nameEnd);if(!a)continue;let o=il(e,a.nameEnd);(n&&o.spread||t.test(o.top))&&r.add(i[1]??i[2]??``)}return r}function qc(e,t,n){let r=Jc(e,t,n);if(!r.block)return $c(e,r.start,n);let i=Yc(e,r.start,n);for(let t=0;t<i.length;t++){let r=t+1<i.length?i[t+1]??n:n,a=$c(e,i[t]??n,r);if(a)return a}return null}function Jc(e,t,n){Lc.lastIndex=t;let r=Lc.exec(e);Rc.lastIndex=t;let i=Rc.exec(e),a=r&&r.index<n?r.index:-1,o=i&&i.index<n?i.index:-1;if(o!==-1&&(a===-1||o<a)){let r=e.indexOf(`(`,o),i=r===-1?-1:e.indexOf(`{`,Qc(e,r));return i===-1||i>=n?{start:t,block:!1}:{start:i+1,block:!0}}if(a===-1)return{start:t,block:!1};let s=a+2;for(;s<n&&/\s/.test(e[s]??``);)s++;return e[s]===`{`?{start:s+1,block:!0}:{start:s,block:!1}}function Yc(e,t,n){let r=[],i=t;for(;i<n;){let t=e[i]??``;if(t===`{`&&Xc(e,i))i=Zc(e,i)+1;else if(zc.lastIndex=i,t===`r`&&zc.test(e)){let t=i+6;for(;t<n&&(e[t]===` `||e[t]===` `);)t++;t<n&&!`;
168
- \r})`.includes(e[t]??``)&&r.push(t),i=t}else i++}return r}function Xc(e,t){let n=t-1;for(;n>=0&&/\s/.test(e[n]??``);)n--;if(n>=1&&e[n]===`>`&&e[n-1]===`=`)return!0;if(e[n]!==`)`)return!1;let r=0;for(;n>=0;n--)if(e[n]===`)`)r++;else if(e[n]===`(`&&--r===0)break;let i=e.slice(Math.max(0,n-80),n);return/\bfunction\b(?:\s+[\w$]+)?\s*$/.test(i)}function Zc(e,t){let n=0;for(let r=t;r<e.length;r++)if(e[r]===`{`)n++;else if(e[r]===`}`&&--n===0)return r;return e.length}function Qc(e,t){let n=0;for(let r=t;r<e.length;r++)if(e[r]===`(`)n++;else if(e[r]===`)`&&--n===0)return r;return e.length}function $c(e,t,n){let r=B(e,t);for(;r&&r.index<n&&Fc.has(r.name);)r=B(e,r.nameEnd);return!r||r.index>=n||el(e,t,r.index)>0?null:r}function el(e,t,n){let r=0;for(let i=t;i<n;i++)e[i]===`{`?r++:e[i]===`}`&&r>0&&r--;return r}function tl(e,t){let n=0;for(let r=t;r<e.length;r++)if(e[r]===`(`)n++;else if(e[r]===`)`&&(n--,n===0))return r;return e.length}function*nl(e,t){Nc.lastIndex=t;for(let t=Nc.exec(e);t;t=Nc.exec(e))rl(e,t.index)||(yield{index:t.index,name:t[1]??``,nameEnd:t.index+t[0].length})}function B(e,t){for(let n of nl(e,t))return n;return null}function rl(e,t){return/[\w$.)\]]/.test(e.charAt(t-1))}function il(e,t){let n=0,r=``,i=!1,a=t;for(;a<e.length;a++){let t=e[a]??``;if(n===0&&t===`>`)break;n===0?(t===`{`&&(Pc.lastIndex=a,Pc.test(e)&&(i=!0),n++),r+=t):(r+=` `,t===`{`?n++:t===`}`&&n--)}return{top:r,spread:i,from:t}}function al(e){let t=[0];for(let n=0;n<e.length;n++)e[n]===`
169
- `&&t.push(n+1);return t}function ol(e,t){let n=0,r=e.length-1;for(;n<=r;){let i=n+r>>1;(e[i]??0)<=t?n=i+1:r=i-1}return r+1}var sl=[`.js`,`.jsx`,`.ts`,`.tsx`],cl=/\.(?:js|jsx|ts|tsx)$/,ll=/(?:^|\/)index\.[jt]sx?$/,ul=/\.meta\.[jt]sx?$|\.stories\.[jt]sx?$/,dl=/(?:<partial\s+name="([^"]+)"|\bPartial(?:Async)?\(\s*"([^"]+)"|\bLayout\s*=\s*"([^"]+)")/g,fl=/"([^"\\\n]*)"/g,pl=new RegExp(String.raw`\b(?:${`TopbarEndPartial`})\s*=\s*"(_[^"\\\n]*)"`,`g`),ml=/^_[\w.-]+$/,hl=/(?:ProjectReference\s+Include|Project\s+Path)="([^"]+)"/g,gl=/(?:^|\/)src\/components\/([^/]+)\/[^/]+$/,_l=/(?:^|\/)Pages\/Shared\/(_[^/]+)\.cshtml$/,vl=/(?:^|\/)[^/]+\.Web\.Common\/[^/]+\.csproj$/,yl=/(?:^|\/)_ViewStart\.cshtml$/,bl=/\bLayout\s*=\s*"([^"]+)"/g,xl=/(?:^|\/)_[^/]*Layout\.cshtml$/,Sl=/^\s*@\*\s*layering-allow\s+([a-z-]+)\s*(?::\s*(.*?))?\s*\*@\s*$/;function Cl(e,n){let i=new Set(n),a=/* @__PURE__ */ new Map,o=/* @__PURE__ */ new Map,s=/* @__PURE__ */ new Map,c=/* @__PURE__ */ new Map,u=t=>{let n=c.get(t);if(n)return n;let r=k(e,t);return c.set(t,r),r},f=/* @__PURE__ */ new Map,m=e=>{if(!ll.test(e))return null;let t=f.get(e);if(t)return t;let n=/* @__PURE__ */ new Map,r=[];for(let t of A(u(e))){if(t.kind!==`export-from`)continue;let a=El(e,t.specifier,i);if(a!==null)for(let{name:e,local:i}of t.imported)e===`*`&&i===`*`?r.push(a):n.set(i,a)}let a={named:n,star:r};return f.set(e,a),a},h=(e,t)=>RegExp(`export\\s+(?:const|let|var|function\\*?|class)\\s+${t}\\b|export\\s*\\{[^}]*\\b${t}\\b`).test(u(e).blanked);for(let t of n)if(cl.test(t)&&!ul.test(t))for(let n of A(ll.test(t)?u(t):k(e,t))){let e=El(t,n.specifier,i);if(e===null)continue;let r=n.kind===`export-from`?null:m(e);if(!r){n.kind===`export-from`&&ll.test(t)||V(a,e,t);continue}V(a,e,t);let o=n.imported.filter(({name:e})=>e!==`*`),s=o.length===n.imported.length&&o.length>0?o.map(({name:e})=>r.named.get(e)??r.star.find(t=>h(t,e))):[...r.named.values(),...r.star];for(let e of s)V(a,e??null,t)}let g=/* @__PURE__ */ new Set;for(let t of n){if(!cl.test(t)&&!t.endsWith(`.cshtml`))continue;let n=wl(r(d(e,t),`utf8`));for(let e of n.matchAll(dl)){let n=Tl(e[1]??e[2]??e[3]??``);V(o,n,t),xl.test(t)&&g.add(n)}}let _=R(e,[`*.cs`,`*.csproj`,`*.sln`,`*.slnx`]).filter(n=>t(d(e,n)));for(let t of _){let n=r(d(e,t),`utf8`);if(t.endsWith(`.cs`)){let e=wl(n);for(let t of e.matchAll(pl))t[1]!==void 0&&g.add(t[1]);for(let n of e.matchAll(fl)){let e=Tl(n[1]??``);ml.test(e)&&V(o,e,t)}}else for(let e of n.matchAll(hl))V(s,p.normalize(p.join(l(t),(e[1]??``).replace(/\\/g,`/`))),t)}let v=new Set(_.filter(e=>e.endsWith(`.csproj`)).map(e=>p.dirname(e))),y=/* @__PURE__ */ new Map;for(let t of n){if(!yl.test(t))continue;let n=wl(r(d(e,t),`utf8`));for(let e of n.matchAll(bl))V(y,jl(t,v),Tl(e[1]??``))}let b=[];for(let t of n){if(!cl.test(t)||!kl(t))continue;let n=Dl(a,t,t),r=n>=2||n===1&&Al(a,t),i=`used by ${n} other file${n===1?``:`s`}`;for(let n of j(`single-use-component`,c.get(t)??k(e,t),r?[]:[{line:1,message:i}]))b.push({rule:`single-use-component`,file:t,line:1,text:n.message,hint:n.message===i?`move it next to the page that uses it`:null})}for(let t of n){let n=_l.exec(t);if(!n)continue;let i=n[1]??``,a=Ml(r(d(e,t),`utf8`));a===``&&b.push({rule:`single-use-component`,file:t,line:1,text:`layering-allow needs a reason`,hint:null});let s=xl.test(t)||g.has(i)||(y.get(jl(t,v))?.has(i)??!1);a||s||Ol(b,t,Dl(o,i,t))}for(let e of _)e.endsWith(`.csproj`)&&vl.test(e)&&Ol(b,e,Dl(s,e,e));return b}function wl(e){return e.split(`
167
+ `:` `),r++);r<n&&(t.push("`"),r++)}else t.push(i),r++}return t.join(``)}var qc=/\bfunction\s+([A-Z][\w$]*)\s*\(|\bconst\s+([A-Z][\w$]*)\s*=\s*(?:memo\(\s*|forwardRef\(\s*)?(?:\([^)]*\)|[\w$]+)\s*=>/g;function Jc(e,t,{spreadCounts:n=!0}={}){let r=/* @__PURE__ */ new Set;for(let i of e.matchAll(qc)){let a=V(e,i.index+i[0].length);for(;a&&Lc.has(a.name);)a=V(e,a.nameEnd);if(!a)continue;let o=ol(e,a.nameEnd);(n&&o.spread||t.test(o.top))&&r.add(i[1]??i[2]??``)}return r}function Yc(e,t,n){let r=Xc(e,t,n);if(!r.block)return tl(e,r.start,n);let i=Zc(e,r.start,n);for(let t=0;t<i.length;t++){let r=t+1<i.length?i[t+1]??n:n,a=tl(e,i[t]??n,r);if(a)return a}return null}function Xc(e,t,n){zc.lastIndex=t;let r=zc.exec(e);Bc.lastIndex=t;let i=Bc.exec(e),a=r&&r.index<n?r.index:-1,o=i&&i.index<n?i.index:-1;if(o!==-1&&(a===-1||o<a)){let r=e.indexOf(`(`,o),i=r===-1?-1:e.indexOf(`{`,el(e,r));return i===-1||i>=n?{start:t,block:!1}:{start:i+1,block:!0}}if(a===-1)return{start:t,block:!1};let s=a+2;for(;s<n&&/\s/.test(e[s]??``);)s++;return e[s]===`{`?{start:s+1,block:!0}:{start:s,block:!1}}function Zc(e,t,n){let r=[],i=t;for(;i<n;){let t=e[i]??``;if(t===`{`&&Qc(e,i))i=$c(e,i)+1;else if(Vc.lastIndex=i,t===`r`&&Vc.test(e)){let t=i+6;for(;t<n&&(e[t]===` `||e[t]===` `);)t++;t<n&&!`;
168
+ \r})`.includes(e[t]??``)&&r.push(t),i=t}else i++}return r}function Qc(e,t){let n=t-1;for(;n>=0&&/\s/.test(e[n]??``);)n--;if(n>=1&&e[n]===`>`&&e[n-1]===`=`)return!0;if(e[n]!==`)`)return!1;let r=0;for(;n>=0;n--)if(e[n]===`)`)r++;else if(e[n]===`(`&&--r===0)break;let i=e.slice(Math.max(0,n-80),n);return/\bfunction\b(?:\s+[\w$]+)?\s*$/.test(i)}function $c(e,t){let n=0;for(let r=t;r<e.length;r++)if(e[r]===`{`)n++;else if(e[r]===`}`&&--n===0)return r;return e.length}function el(e,t){let n=0;for(let r=t;r<e.length;r++)if(e[r]===`(`)n++;else if(e[r]===`)`&&--n===0)return r;return e.length}function tl(e,t,n){let r=V(e,t);for(;r&&r.index<n&&Lc.has(r.name);)r=V(e,r.nameEnd);return!r||r.index>=n||nl(e,t,r.index)>0?null:r}function nl(e,t,n){let r=0;for(let i=t;i<n;i++)e[i]===`{`?r++:e[i]===`}`&&r>0&&r--;return r}function rl(e,t){let n=0;for(let r=t;r<e.length;r++)if(e[r]===`(`)n++;else if(e[r]===`)`&&(n--,n===0))return r;return e.length}function*il(e,t){Fc.lastIndex=t;for(let t=Fc.exec(e);t;t=Fc.exec(e))al(e,t.index)||(yield{index:t.index,name:t[1]??``,nameEnd:t.index+t[0].length})}function V(e,t){for(let n of il(e,t))return n;return null}function al(e,t){return/[\w$.)\]]/.test(e.charAt(t-1))}function ol(e,t){let n=0,r=``,i=!1,a=t;for(;a<e.length;a++){let t=e[a]??``;if(n===0&&t===`>`)break;n===0?(t===`{`&&(Ic.lastIndex=a,Ic.test(e)&&(i=!0),n++),r+=t):(r+=` `,t===`{`?n++:t===`}`&&n--)}return{top:r,spread:i,from:t}}function sl(e){let t=[0];for(let n=0;n<e.length;n++)e[n]===`
169
+ `&&t.push(n+1);return t}function cl(e,t){let n=0,r=e.length-1;for(;n<=r;){let i=n+r>>1;(e[i]??0)<=t?n=i+1:r=i-1}return r+1}var ll=[`.js`,`.jsx`,`.ts`,`.tsx`],ul=/\.(?:js|jsx|ts|tsx)$/,dl=/(?:^|\/)index\.[jt]sx?$/,fl=/\.meta\.[jt]sx?$|\.stories\.[jt]sx?$/,pl=/(?:<partial\s+name="([^"]+)"|\bPartial(?:Async)?\(\s*"([^"]+)"|\bLayout\s*=\s*"([^"]+)")/g,ml=/"([^"\\\n]*)"/g,hl=new RegExp(String.raw`\b(?:${`TopbarEndPartial`})\s*=\s*"(_[^"\\\n]*)"`,`g`),gl=/^_[\w.-]+$/,_l=/(?:ProjectReference\s+Include|Project\s+Path)="([^"]+)"/g,vl=/(?:^|\/)src\/components\/([^/]+)\/[^/]+$/,yl=/(?:^|\/)Pages\/Shared\/(_[^/]+)\.cshtml$/,bl=/(?:^|\/)[^/]+\.Web\.Common\/[^/]+\.csproj$/,xl=/(?:^|\/)_ViewStart\.cshtml$/,Sl=/\bLayout\s*=\s*"([^"]+)"/g,Cl=/(?:^|\/)_[^/]*Layout\.cshtml$/,wl=/^\s*@\*\s*layering-allow\s+([a-z-]+)\s*(?::\s*(.*?))?\s*\*@\s*$/;function Tl(e,n){let i=new Set(n),a=/* @__PURE__ */ new Map,o=/* @__PURE__ */ new Map,s=/* @__PURE__ */ new Map,c=/* @__PURE__ */ new Map,u=t=>{let n=c.get(t);if(n)return n;let r=k(e,t);return c.set(t,r),r},f=/* @__PURE__ */ new Map,m=e=>{if(!dl.test(e))return null;let t=f.get(e);if(t)return t;let n=/* @__PURE__ */ new Map,r=[];for(let t of A(u(e))){if(t.kind!==`export-from`)continue;let a=Ol(e,t.specifier,i);if(a!==null)for(let{name:e,local:i}of t.imported)e===`*`&&i===`*`?r.push(a):n.set(i,a)}let a={named:n,star:r};return f.set(e,a),a},h=(e,t)=>RegExp(`export\\s+(?:const|let|var|function\\*?|class)\\s+${t}\\b|export\\s*\\{[^}]*\\b${t}\\b`).test(u(e).blanked);for(let t of n)if(ul.test(t)&&!fl.test(t))for(let n of A(dl.test(t)?u(t):k(e,t))){let e=Ol(t,n.specifier,i);if(e===null)continue;let r=n.kind===`export-from`?null:m(e);if(!r){n.kind===`export-from`&&dl.test(t)||H(a,e,t);continue}H(a,e,t);let o=n.imported.filter(({name:e})=>e!==`*`),s=o.length===n.imported.length&&o.length>0?o.map(({name:e})=>r.named.get(e)??r.star.find(t=>h(t,e))):[...r.named.values(),...r.star];for(let e of s)H(a,e??null,t)}let g=/* @__PURE__ */ new Set;for(let t of n){if(!ul.test(t)&&!t.endsWith(`.cshtml`))continue;let n=El(r(d(e,t),`utf8`));for(let e of n.matchAll(pl)){let n=Dl(e[1]??e[2]??e[3]??``);H(o,n,t),Cl.test(t)&&g.add(n)}}let _=z(e,[`*.cs`,`*.csproj`,`*.sln`,`*.slnx`]).filter(n=>t(d(e,n)));for(let t of _){let n=r(d(e,t),`utf8`);if(t.endsWith(`.cs`)){let e=El(n);for(let t of e.matchAll(hl))t[1]!==void 0&&g.add(t[1]);for(let n of e.matchAll(ml)){let e=Dl(n[1]??``);gl.test(e)&&H(o,e,t)}}else for(let e of n.matchAll(_l))H(s,p.normalize(p.join(l(t),(e[1]??``).replace(/\\/g,`/`))),t)}let v=new Set(_.filter(e=>e.endsWith(`.csproj`)).map(e=>p.dirname(e))),y=/* @__PURE__ */ new Map;for(let t of n){if(!xl.test(t))continue;let n=El(r(d(e,t),`utf8`));for(let e of n.matchAll(Sl))H(y,Nl(t,v),Dl(e[1]??``))}let b=[];for(let t of n){if(!ul.test(t)||!jl(t))continue;let n=kl(a,t,t),r=n>=2||n===1&&Ml(a,t),i=`used by ${n} other file${n===1?``:`s`}`;for(let n of j(`single-use-component`,c.get(t)??k(e,t),r?[]:[{line:1,message:i}]))b.push({rule:`single-use-component`,file:t,line:1,text:n.message,hint:n.message===i?`move it next to the page that uses it`:null})}for(let t of n){let n=yl.exec(t);if(!n)continue;let i=n[1]??``,a=Pl(r(d(e,t),`utf8`));a===``&&b.push({rule:`single-use-component`,file:t,line:1,text:`layering-allow needs a reason`,hint:null});let s=Cl.test(t)||g.has(i)||(y.get(Nl(t,v))?.has(i)??!1);a||s||Al(b,t,kl(o,i,t))}for(let e of _)e.endsWith(`.csproj`)&&bl.test(e)&&Al(b,e,kl(s,e,e));return b}function El(e){return e.split(`
170
170
  `).filter(e=>!/^\s*(?:\/\/|\/\*|\*)/.test(e)).join(`
171
- `)}function Tl(e){return(e.split(`/`).pop()??``).replace(/\.cshtml$/,``)}function El(e,t,n){let r;if(t.startsWith(`@/`)){let n=e.startsWith(`src/`)?0:e.indexOf(`/src/`)+1;if(n===0&&!e.startsWith(`src/`))return null;r=`${e.slice(0,n)}src/${t.slice(2)}`}else if(t.startsWith(`.`))r=p.normalize(p.join(p.dirname(e),t));else return null;return[r,...sl.map(e=>r+e),...sl.map(e=>p.join(r,`index${e}`))].find(e=>n.has(e))??null}function V(e,t,n){if(t===null)return;let r=e.get(t)??/* @__PURE__ */ new Set;r.add(n),e.set(t,r)}function Dl(e,t,n){return[...e.get(t)??/* @__PURE__ */ new Set].filter(e=>e!==n).length}function Ol(e,t,n){n>=2||e.push({rule:`single-use-component`,file:t,line:1,text:`used by ${n} other file${n===1?``:`s`}`,hint:`move it next to the page that uses it`})}function kl(e){let t=gl.exec(e);return t!==null&&t[1]!==`layout`&&!ll.test(e)&&!ul.test(e)}function Al(e,t){let n=[...e.get(t)??[]].filter(e=>e!==t);return n.length===1&&kl(n[0]??``)&&Dl(e,n[0]??``,n[0]??``)>=2}function jl(e,t){let n=p.dirname(e);for(;n!==`.`&&!t.has(n);)n=p.dirname(n);return n}function Ml(e){let t=Sl.exec(e.split(`
172
- `,1)[0]??``);return t?.[1]===`single-use-component`?(t[2]??``).trim():null}var Nl=`error-summary-title`,Pl=/<app-error-summary(?=[\s/>])/g,Fl=/(?<![\w-])title\s*=\s*(?:"([^"]*)"|'([^']*)')/,Il=/please\s+(fix|correct)|(fix|correct)\s+the\s+following|the\s+following\s+(errors?|problems?|issues?)|there\s+(is|are|was|were)\s+(an?\s+|some\s+)?(errors?|problems?)/i;function Ll(e,t){let n=null;for(let r=t;r<e.length;r+=1){let t=e[r];if(n)t===n&&(n=null);else if(t===`"`||t===`'`)n=t;else if(t===`>`)return r}return e.length}function Rl(e){let t=T(e,`markup`),n=e.split(`
173
- `),r=[];for(let e of t.matchAll(Pl)){let i=Fl.exec(t.slice(e.index,Ll(t,e.index)));if(!i)continue;let a=i[1]??i[2]??``;if(a.includes(`@`)||!Il.test(a))continue;let o=t.slice(0,e.index).split(`
174
- `).length;r.push({rule:Nl,line:o,text:(n[o-1]??``).trim().slice(0,160),hint:`drop the title: the library error summary writes the standard heading`})}return r}var zl=`unknown-icon`,Bl=/(?<![\w-])(icon|left-icon|right-icon|leading-icon|trailing-icon|header-icon|title-icon)\s*=\s*"([^"]*)"/g,Vl=/(?<![\w-])(icon|leftIcon|rightIcon|leadingIcon|trailingIcon|headerIcon|titleIcon)\s*[=:]\s*\{?\s*(["'])([^"'`$\\]*)\2/g,Hl=/<app-icon\b[^>]*>/g,Ul=/<AppIcon\b[^>]*>/g,Wl=/(?<![\w-])name\s*=\s*"([^"]*)"/g,Gl=/* @__PURE__ */ new Set([`app-alert`,`AppAlert`]),Kl=/\bregisterIcons\s*\(\s*\{/g,ql=/\bIconRegistry\s*\.\s*Register\s*\(\s*"([^"\\]+)"/g,Jl=/\[\s*`([^`$\\]+)\$\{/g;function Yl(e,t){let n=e.lastIndexOf(`<`,t);return n<0?``:/^<([A-Za-z][\w.-]*)/.exec(e.slice(n))?.[1]??``}function Xl(e,t,n,r=[]){let i=t===`markup`?T(e,`markup`):ge(e),a=e.split(`
175
- `),o=[],s=(e,t,s=``)=>{if(e===``||/[@{}]/.test(e)||n.has(e)||r.some(t=>e.startsWith(t))||s===`icon`&&e===`none`&&Gl.has(Yl(i,t)))return;let c=i.slice(0,t).split(`
176
- `).length;o.push({rule:zl,line:c,text:(a[c-1]??``).trim().slice(0,160),hint:`icon "${e}" is not in the library icon map; pick a name from iconNames (AppIcon) or IconMap.Names (Razor), or register it with registerIcons / IconRegistry`})};if(t===`markup`){for(let e of i.matchAll(Bl))s(e[2]??``,e.index,e[1]);for(let e of i.matchAll(Hl))for(let t of e[0].matchAll(Wl))s(t[1]??``,e.index+(t.index??0))}else{for(let e of i.matchAll(Vl))s(e[3]??``,e.index,e[1]);for(let e of i.matchAll(Ul))for(let t of e[0].matchAll(Wl))s(t[1]??``,e.index+(t.index??0))}return o.sort((e,t)=>e.line-t.line),o}function Zl(e,t){let n=e.charAt(t),r=t+1;for(;r<e.length;){let t=e.charAt(r);if(t===`\\`)r+=2;else if(t===n||t===`
177
- `&&n!=="`")return r;else r++}return e.length}function Ql(e,t){let n=[],r=0,i=!1;for(let a=t;a<e.length;a++){let t=e.charAt(a);if(t===`"`||t===`'`||t==="`"){let o=Zl(e,a);r===1&&i&&t!=="`"&&/^\s*:/.test(e.slice(o+1))&&n.push(e.slice(a+1,o)),i=!1,a=o}else if(t===`{`||t===`[`||t===`(`)r++,i=r===1;else if(t===`}`||t===`]`||t===`)`){if(r--,r===0)break}else if(r===1&&t===`,`)i=!0;else if(r===1&&i&&!/\s/.test(t)){let t=/^[A-Za-z_$][\w$]*/.exec(e.slice(a))?.[0];t!==void 0&&/^\s*[:(,}]/.test(e.slice(a+t.length))&&n.push(t),t!==void 0&&(a+=t.length-1),i=!1}}return n}function $l(e,t){let n=ge(e);if(t===`csharp`)return{names:[...n.matchAll(ql)].map(e=>e[1]??``),prefixes:[]};let r=[],i=!1;for(let e of n.matchAll(Kl))i=!0,r.push(...Ql(n,e.index+e[0].length-1));return{names:r,prefixes:i?[...n.matchAll(Jl)].map(e=>e[1]??``):[]}}var eu=/*#__PURE__*/ JSON.parse(`["aave","activity","add","add-circle","add-square","additem","airdrop","airplane","airplane-square","airpod","airpods","alarm","alert-circle","alert-triangle","align-bottom","align-horizontally","align-left","align-right","align-top","align-vertically","android","ankr","apple","aquarius","archive","archive-add","archive-book","archive-box","archive-minus","archive-slash","archive-tick","arrange-horizontal","arrange-horizontal-circle","arrange-horizontal-square","arrange-vertical","arrange-vertical-circle","arrange-vertical-square","arrow","arrow-circle-down","arrow-circle-down-2","arrow-circle-left","arrow-circle-left-2","arrow-circle-right","arrow-circle-right-2","arrow-circle-up","arrow-circle-up-2","arrow-down","arrow-down-2","arrow-down-3","arrow-down-up","arrow-forward","arrow-forward-square","arrow-left","arrow-left-2","arrow-left-3","arrow-right","arrow-right-2","arrow-right-3","arrow-rotate-left","arrow-rotate-right","arrow-square","arrow-square-down","arrow-square-left","arrow-square-right","arrow-square-up","arrow-swap-horizontal","arrow-swap-vertical","arrow-up","arrow-up-2","arrow-up-3","arrow-up-right","at","attach-circle","attach-square","audio-square","augur","autobrightness","autonio","avalanche","award","back","back-square","backward","backward-10-seconds","backward-15-seconds","backward-5-seconds","backward-item","badge-check","bag","bag-2","bag-cross","bag-cross-1","bag-happy","bag-tick","bag-tick-2","bag-timer","ban","bank","barcode","battery-charging","battery-disable","battery-empty","battery-empty-1","battery-full","be","bell","bezier","bill","binance-coin","binance-usd","bitcoin","bitcoin-card","bitcoin-convert","bitcoin-refresh","blend","blend-2","blogger","bluetooth","bluetooth-2","bluetooth-circle","bluetooth-rectangle","blur","bolt","book","book-1","book-saved","book-square","bookmark","bookmark-2","bootstrap","box","box-1","box-2","box-add","box-remove","box-seam","box-search","box-tick","box-time","briefcase","briefcase-cross","briefcase-tick","briefcase-timer","brifecase-cross","brifecase-tick","brifecase-timer","brodcast","broom","brush","brush-2","brush-3","brush-big","brush-square","bubble","bucket","bucket-circle","bucket-square","bug","building","building-2","building-3","building-4","buildings","buildings-2","buliding","bullseye","bus","buy-crypto","cake","calculator","calendar","calendar-1","calendar-2","calendar-add","calendar-check","calendar-circle","calendar-dots","calendar-edit","calendar-remove","calendar-search","calendar-tick","call","call-add","call-calling","call-incoming","call-minus","call-outgoing","call-received","call-remove","call-slash","camera","camera-slash","candle","candle-2","car","card","card-add","card-coin","card-edit","card-pos","card-receive","card-remove","card-remove-1","card-send","card-slash","card-tick","card-tick-1","cardano","cards","cash-stack","category","category-2","cd","celo","celsius","chainlink","chart","chart-1","chart-2","chart-21","chart-circle","chart-column","chart-fail","chart-square","chart-success","chat","chat-dots","check","check-check","check-circle","chemical-glass","chevron-down","chevron-left","chevron-right","chevron-up","chevrons-left","chevrons-right","chevrons-up-down","chrome","circle","circle-help","civic","clipboard","clipboard-check","clipboard-close","clipboard-export","clipboard-import","clipboard-text","clipboard-tick","clock","close-circle","close-square","cloud","cloud-add","cloud-change","cloud-connection","cloud-cross","cloud-drizzle","cloud-fog","cloud-lightning","cloud-minus","cloud-notif","cloud-plus","cloud-remove","cloud-snow","cloud-sunny","code","code-1","code-circle","coffee","coin","coin-1","coins","color-swatch","colorfilter","colors-square","command","command-square","comment","component","computing","contact","convert","convert-3-d-cube","convert-card","convertshape","convertshape-2","copy","copy-success","copyright","courthouse","cpu","cpu-charge","cpu-setting","creative-commons","credit-card","crop","crown","crown-1","cup","cursor","cut","dai","danger","dash","data","data-2","decred","dent","designtools","device-message","devices","diagram","diagram-3","diamonds","direct","direct-down","direct-inbox","direct-left","direct-normal","direct-notification","direct-right","direct-send","direct-up","directbox-default","directbox-notif","directbox-receive","directbox-send","discount-circle","discount-shape","discover","dislike","display","document","document-cloud","document-code","document-code-2","document-copy","document-download","document-favorite","document-filter","document-forward","document-like","document-previous","document-sketch","document-text","document-text-1","document-upload","dollar-circle","dollar-square","download","dribbble","driver","driver-2","driver-refresh","driving","drop","dropbox","edit","edit-2","educare","electricity","element","element-2","element-3","element-4","element-equal","element-plus","emercoin","emoji-happy","emoji-normal","emoji-sad","emoji-smile","empty-wallet","empty-wallet-add","empty-wallet-change","empty-wallet-remove","empty-wallet-tick","empty-wallet-time","enjin-coin","eos","eraser","eraser-square","ethereum","ethereum-classic","export","export-circle","export-curve","export-square","external-drive","external-link","eye","eye-off","eye-slash","facebook","factory","fatrows","favorite-chart","figma","figma-1","file-plus-2","file-text","files","filter","filter-add","filter-edit","filter-remove","filter-search","filter-square","filter-tick","finger-cricle","finger-scan","firstline","flag","flag-2","flame","flash","flash-circle","flash-slash","flashy","folder","folder-2","folder-add","folder-cloud","folder-connection","folder-cross","folder-favorite","folder-kanban","folder-minus","folder-open","folder-plus","forbidden","forbidden-2","format-circle","format-square","forward","forward-10-seconds","forward-15-seconds","forward-5-seconds","forward-item","framer","ftx-token","gallery","gallery-add","gallery-edit","gallery-export","gallery-favorite","gallery-import","gallery-remove","gallery-slash","gallery-tick","game","gameboy","gas-station","gauge","gemini","gemini-2","ghost","gift","github","glass","global","global-edit","global-refresh","global-search","globe","globe2","google","google-drive","google-play","gps","gps-slash","grammerly","graph","grid","grid-1","grid-2","grid-3","grid-4","grid-5","grid-6","grid-7","grid-8","grid-9","grid-edit","grid-eraser","grid-lock","hamberger-menu","hamburger-menu","hand","happyemoji","hard-hat","harmony","hashtag","hashtag-down","hashtag-square","hashtag-up","headphone","headphones","health","heart","heart-add","heart-circle","heart-edit","heart-remove","heart-search","heart-slash","heart-tick","hedera-hashgraph","hex","hierarchy","hierarchy-2","hierarchy-3","hierarchy-square","hierarchy-square-2","hierarchy-square-3","history","home","home-2","home-3","home-hashtag","home-trend-down","home-trend-up","home-wifi","hospital","house","house-2","html-3","html-5","huobi-token","i-24-support","i-3-d-cube-scan","i-3-d-rotate","i-3-d-square","i-3-dcube","i-3-square","icon","illustrator","image","import","import-circle","import-curve","import-square","inbox","info","info-circle","information","instagram","iost","java-script","js","judge","kanban","key","key-square","keyboard","keyboard-open","kyber-network","lamp","lamp-charge","lamp-on","lamp-slash","language-circle","language-square","layer","layout-dashboard","layout-grid","layout-maximize","level","lifebuoy","lightbulb","like","like-1","like-dislike","like-shapes","like-tag","link","link-1","link-2","link-21","link-circle","link-square","linkedin","list","litecoin","location","location-add","location-cross","location-discover","location-minus","location-slash","location-tick","lock","lock-1","lock-circle","lock-slash","log-out","login","login-curve","logout","logout-curve","lovely","magic-star","magicpen","mail","main-component","maker","man","map","map-1","map-pin","mask","mask-left","mask-right","math","maximize","maximize-1","maximize-2","maximize-3","maximize-4","maximize-circle","medal","medal-star","menu","menu-board","message","message-2","message-add","message-add-1","message-circle","message-edit","message-favorite","message-minus","message-notif","message-programming","message-question","message-remove","message-search","message-square","message-text","message-text-1","message-tick","message-time","messages","messages-1","messages-2","messages-3","messenger","microphone","microphone-2","microphone-slash","microphone-slash-1","microscope","microsoft","milk","mini-music-sqaure","minus","minus-circle","minus-cirlce","minus-square","mirror","mirroring-screen","mobile","mobile-programming","monero","money","money-2","money-3","money-4","money-add","money-archive","money-change","money-forbidden","money-receive","money-recive","money-remove","money-send","money-tick","money-time","moneys","monitor","monitor-mobbile","monitor-recorder","moon","more","more-2","more-circle","more-horizontal","more-square","mouse","mouse-circle","mouse-square","music","music-circle","music-dashboard","music-filter","music-library-2","music-play","music-playlist","music-square","music-square-add","music-square-remove","music-square-search","musicnote","nebulas","nem","nexo","next","note","note-1","note-add","note-favorite","note-remove","note-square","note-text","notepad","notepad-2","notification","notification-1","notification-bing","notification-circle","notification-favorite","notification-status","ocean-protocol","okb","okru","omega-circle","omega-square","ontology","paintbucket","palette","panel-left-close","panel-left-open","paperclip","paperclip-2","password-check","path-tool","path-tool-2","path-tool-square","pause","pause-circle","paypal","pen-add","pen-close","pen-remove","pen-tool","pen-tool-2","pencil","people","percentage-circle","percentage-square","personalcard","pet","pharagraphspacing","phone","photoshop","picture-frame","play","play-add","play-circle","play-cricle","play-remove","plug","plus","plus-circle","pointer","polkadot","polygon","polyswarm","presentation-chart","presention-chart","previous","printer","printer-slash","profile","profile-2-user","profile-add","profile-circle","profile-delete","profile-remove","profile-tick","programming-arrow","programming-arrows","python","quant","quote-down","quote-down-circle","quote-down-square","quote-up","quote-up-circle","quote-up-square","radar","radar-2","radio","ram","ram-2","rank","ranking","receipt","receipt-1","receipt-2","receipt-21","receipt-add","receipt-discount","receipt-disscount","receipt-edit","receipt-item","receipt-minus","receipt-search","receipt-square","receipt-text","receive","receive-square","receive-square-2","record","record-circle","recovery-convert","reddit","refresh","refresh-2","refresh-circle","refresh-cw","refresh-left-square","refresh-right-square","refresh-square","repeat","repeat-circle","repeate-music","repeate-one","reserve","robot","rotate-ccw","rotate-cw","rotate-left","rotate-right","route-square","routing","routing-2","row-horizontal","row-vertical","ruler","ruler-pen","safe-home","sagittarius","save-2","save-add","save-minus","save-remove","scan","scan-barcode","scanner","scanning","scissor","screenmirroring","scroll","search","search-favorite","search-favorite-1","search-normal","search-normal-1","search-status","search-status-1","search-zoom-in","search-zoom-in-1","search-zoom-out","search-zoom-out-1","security","security-card","security-safe","security-time","security-user","send","send-2","server","setting","setting-2","setting-3","setting-4","setting-5","settings","shapes","shapes-1","share","share-2","shield","shield-check","shield-cross","shield-lock","shield-plus","shield-search","shield-security","shield-slash","shield-tick","ship","shop","shop-add","shop-remove","shopping-bag","shopping-cart","shuffle","shutterstock","siacoin","sidebar-bottom","sidebar-left","sidebar-right","sidebar-top","signpost","simcard","simcard-1","simcard-2","size","slack","slash","slider","slider-horizontal","slider-horizontal-1","slider-vertical","slider-vertical-1","smallcaps","smart-car","smart-home","smileys","sms","sms-edit","sms-notification","sms-search","sms-star","sms-tracking","snapchat","snowflake","solana","sort","sound","sparkles","speaker","speedometer","spotify","stacks","star","star-1","star-slash","stars","status","status-up","stellar","sticker","stickynote","stop","stop-circle","story","strongbox","strongbox-2","subtitle","sun","sun-1","sun-fog","table-document","table-lamp","tag","tag-2","tag-cross","tag-right","tag-user","task","task-square","teacher","telephone","tenx","tether","text","text-block","text-bold","text-italic","text-underline","textalign-center","textalign-justifycenter","textalign-justifyleft","textalign-justifyright","textalign-left","textalign-right","the-graph","theta","thorchain","thumbs-down","thumbs-up","tick-circle","tick-square","ticket","ticket-2","ticket-discount","ticket-expired","ticket-star","timer","timer-1","timer-pause","timer-start","toggle-off","toggle-off-circle","toggle-on","toggle-on-circle","trade","transaction-minus","translate","transmit","transmit-sqaure-2","transmit-square","trash","trash-2","tree","trello","trend-down","trend-up","trending-up","triangle","triangle-logo","trontron","truck","truck-fast","truck-remove","truck-tick","truck-time","trush-square","twitch","two-page","ui-8","unlimited","unlock","upload","usd-coin","user","user-add","user-check","user-cirlce-add","user-edit","user-minus","user-octagon","user-plus","user-remove","user-search","user-square","user-tag","user-tick","users","velas","verify","vibe","video","video-add","video-circle","video-horizontal","video-octagon","video-play","video-remove","video-slash","video-square","video-tick","video-time","video-vertical","voice-circle","voice-cricle","voice-square","volume","volume-cross","volume-high","volume-low","volume-low-1","volume-mute","volume-slash","volume-up","wallet","wallet-1","wallet-2","wallet-3","wallet-add","wallet-add-1","wallet-check","wallet-minus","wallet-money","wallet-remove","wallet-search","wallet2","wanchain","wanchain-1","wand-sparkles","warning-2","watch","watch-status","weight","weight-meter","whatsapp","wifi","wifi-square","wind","wind-2","windows","wing","woman","wrist-clock","x","x-circle","xd","xiaomi","xrp","youtube","zap","zel","zoom","zoom-in","zoom-out"]`),tu=/\.([A-Za-z_][\w-]*)/g,nu=/[^\s>+~,]+/g,ru=/^\s*(?:,|$)/;function*iu(e){let t=0;for(let n=0;n<e.length;n+=1){let r=e[n];r===`{`?(yield{text:e.slice(t,n),index:t},t=n+1):(r===`}`||r===`;`)&&(t=n+1)}}function au(e,t,n){let r=T(e,t),i=e.split(`
178
- `),a=[];for(let e of iu(r)){let t=su(e.text,n);if(!t)continue;let o=r.slice(0,e.index+t.index).split(`
179
- `).length;a.push({rule:`library-class-restyle`,line:o,text:(i[o-1]??``).trim().slice(0,160),hint:`restyles library class .${t.name}; use a library prop or token, or a product class`})}return a}function ou(e){let t=``,n=0;for(let r of e.matchAll(/:(?:not|has)\(/gi)){let i=r.index;if(i<n)continue;let a=0,o=-1;for(let t=i+r[0].length-1;t<e.length&&o===-1;t+=1)e[t]===`(`?a+=1:e[t]===`)`&&(--a,a===0&&(o=t));o!==-1&&(t+=e.slice(n,i)+`*`.repeat(o+1-i),n=o+1)}return t+e.slice(n)}function su(e,t){let n=ou(e);for(let e of n.matchAll(nu))if(ru.test(n.slice(e.index+e[0].length))){for(let n of e[0].matchAll(tu))if(t.has(n[1]??``))return{index:e.index+n.index,name:n[1]??``}}return null}var cu=/*#__PURE__*/ JSON.parse(`["accordion","accordion-body","accordion-button","accordion-collapse","accordion-flush","accordion-header","accordion-item","alert","alert-accent","alert-action","alert-borderless","alert-content","alert-danger","alert-dark","alert-dismissible","alert-has-action","alert-has-icon","alert-heading","alert-icon","alert-icon-image","alert-info","alert-lg","alert-light","alert-link","alert-neutral","alert-primary","alert-secondary","alert-sm","alert-stack","alert-success","alert-warning","app-content","app-footer","app-main","app-nav-badge","app-nav-caret","app-nav-group","app-nav-group-label","app-nav-icon","app-nav-item","app-nav-sub","app-nav-sub-inner","app-nav-subitem","app-nav-text","app-nav-trailing","app-phone-number-input","app-shell","app-sidebar","app-sidebar-brand","app-sidebar-brand-text","app-sidebar-foot","app-sidebar-scroll","app-sidebar-start","app-sidebar-start-compact","app-sidebar-toggle","app-tab","app-tab-count","app-tab-icon","app-tab-img","app-tab-indicator","app-tabs","app-tabs-fitted","app-tabs-group","app-tabs-lg","app-tabs-pills","app-tabs-scroll-btn","app-tabs-sm","app-tabs-vertical","app-tabs-wrap","app-topbar","app-topbar-end","app-topbar-menu","app-topbar-start","badge","badge-danger","badge-dot","badge-info","badge-primary","badge-success","badge-warning","breadcrumb","breadcrumb-item","btn","btn-anim-expand","btn-anim-fill","btn-anim-glow","btn-anim-none","btn-anim-roll","btn-anim-sheen","btn-check","btn-close","btn-close-white","btn-danger","btn-dark","btn-ghost-danger","btn-ghost-info","btn-ghost-neutral","btn-ghost-primary","btn-ghost-success","btn-ghost-warning","btn-glass","btn-group","btn-group-lg","btn-group-sm","btn-group-vertical","btn-icon","btn-info","btn-lg","btn-light","btn-link","btn-link-danger","btn-link-info","btn-link-neutral","btn-link-primary","btn-link-success","btn-link-warning","btn-neutral","btn-outline-danger","btn-outline-dark","btn-outline-info","btn-outline-light","btn-outline-neutral","btn-outline-primary","btn-outline-secondary","btn-outline-success","btn-outline-warning","btn-pill","btn-pill-sm","btn-primary","btn-radius-xl","btn-secondary","btn-sm","btn-soft-danger","btn-soft-info","btn-soft-neutral","btn-soft-primary","btn-soft-success","btn-soft-warning","btn-static","btn-success","btn-toolbar","btn-warning","btn-xl","card","card-accent","card-body","card-clickable","card-close","card-compact","card-constrained","card-divided","card-elevated","card-flush","card-footer","card-group","card-header","card-header-actions","card-header-icon","card-header-main","card-header-pills","card-header-tabs","card-header-titles","card-img","card-img-bottom","card-img-overlay","card-img-top","card-lifted","card-link","card-media","card-muted","card-outlined","card-pad-lg","card-pad-none","card-pad-sm","card-subtitle","card-text","card-title","dropdown","dropdown-center","dropdown-divider","dropdown-header","dropdown-item","dropdown-item-text","dropdown-menu","dropdown-menu-dark","dropdown-menu-end","dropdown-menu-lg-end","dropdown-menu-lg-start","dropdown-menu-md-end","dropdown-menu-md-start","dropdown-menu-sm-end","dropdown-menu-sm-start","dropdown-menu-start","dropdown-menu-xl-end","dropdown-menu-xl-start","dropdown-menu-xxl-end","dropdown-menu-xxl-start","dropdown-search-icon","dropdown-search-input","dropdown-search-wrapper","dropdown-toggle","dropdown-toggle-split","form-check","form-check-circle","form-check-inline","form-check-input","form-check-label","form-check-lg","form-check-reverse","form-check-sm","form-control","form-control-color","form-control-lg","form-control-plaintext","form-control-sm","form-control-xl","form-label","form-select","form-select-lg","form-select-sm","form-text","input-group","input-group-lg","input-group-sm","input-group-text","list-group","list-group-flush","list-group-horizontal","list-group-horizontal-lg","list-group-horizontal-md","list-group-horizontal-sm","list-group-horizontal-xl","list-group-horizontal-xxl","list-group-item","list-group-item-action","list-group-item-danger","list-group-item-dark","list-group-item-info","list-group-item-light","list-group-item-primary","list-group-item-secondary","list-group-item-success","list-group-item-warning","list-group-numbered","modal","modal-backdrop","modal-body","modal-content","modal-dialog","modal-dialog-centered","modal-dialog-scrollable","modal-footer","modal-fullscreen","modal-fullscreen-lg-down","modal-fullscreen-md-down","modal-fullscreen-sm-down","modal-fullscreen-xl-down","modal-fullscreen-xxl-down","modal-header","modal-lg","modal-sm","modal-static","modal-title","modal-xl","modal-xxl","nav-link","nav-pills","nav-tabs","offcanvas","offcanvas-backdrop","offcanvas-body","offcanvas-bottom","offcanvas-end","offcanvas-header","offcanvas-lg","offcanvas-md","offcanvas-sm","offcanvas-start","offcanvas-title","offcanvas-top","offcanvas-xl","offcanvas-xxl","page-item","page-link","pagination","pagination-lg","pagination-sm","progress","progress-bar","progress-bar-animated","progress-bar-striped","progress-sm","progress-stacked","spinner-border","spinner-border-sm","table","table-active","table-bordered","table-borderless","table-danger","table-dark","table-group-divider","table-hover","table-info","table-ledger","table-light","table-pagination","table-primary","table-responsive","table-responsive-lg","table-responsive-md","table-responsive-sm","table-responsive-xl","table-responsive-xxl","table-secondary","table-sm","table-striped","table-striped-columns","table-success","table-warning","table-wrap","wui-accordion","wui-accordion-body","wui-accordion-count","wui-accordion-flat","wui-accordion-icon","wui-accordion-item","wui-accordion-panel","wui-accordion-trigger","wui-account-switcher","wui-account-switcher-badge","wui-account-switcher-label","wui-account-switcher-list","wui-account-switcher-option","wui-account-switcher-option-name","wui-account-switcher-option-note","wui-account-switcher-option-text","wui-account-switcher-tick","wui-action-icon-file","wui-addon","wui-addon-group","wui-addon-group-lg","wui-addon-group-sm","wui-addon-group-xl","wui-attach-error","wui-attach-progress","wui-auth","wui-auth-aside","wui-auth-body","wui-auth-footer","wui-auth-logo","wui-auth-main","wui-auth-panel","wui-auth-split","wui-banner","wui-banner-action","wui-banner-body","wui-banner-danger","wui-banner-dismiss","wui-banner-has-action","wui-banner-icon","wui-banner-info","wui-banner-neutral","wui-banner-success","wui-banner-warning","wui-bell-body","wui-bell-count","wui-bell-dot","wui-bell-foot","wui-bell-head","wui-bell-icon","wui-bell-item","wui-bell-item-read","wui-bell-item-title","wui-bell-list","wui-bell-markall","wui-bell-menu","wui-bell-state","wui-bell-title","wui-bell-trigger","wui-bell-when","wui-bordered","wui-brand-dark","wui-brand-has-mark","wui-brand-light","wui-brand-link","wui-brand-logo","wui-brand-mark","wui-brand-mark-only","wui-brand-themed","wui-breadcrumb-collapse","wui-breadcrumb-collapsible","wui-breadcrumb-more","wui-breadcrumb-more-toggle","wui-breadcrumb-nowrap","wui-btn-group","wui-btn-group-full","wui-btn-pin-end","wui-btn-pin-icon","wui-btn-roll","wui-btn-roll-ico","wui-btn-roll-ico__next","wui-btn-roll__a","wui-btn-roll__b","wui-btn-shape-pill","wui-btn-shape-sharp","wui-calendar-chip","wui-calendar-chip-time","wui-calendar-chip-title","wui-calendar-event-danger","wui-calendar-event-info","wui-calendar-event-neutral","wui-calendar-event-primary","wui-calendar-event-success","wui-calendar-event-warning","wui-calendar-fallback","wui-calendar-nav","wui-calendar-nav-btn","wui-calendar-stack","wui-calendar-status","wui-calendar-status-text","wui-calendar-surface","wui-calendar-title","wui-calendar-today-btn","wui-calendar-toolbar","wui-calendar-view-btn","wui-calendar-views","wui-carousel","wui-carousel-arrow","wui-carousel-dot","wui-carousel-dots","wui-carousel-pause","wui-carousel-pause-icon","wui-carousel-pause-text","wui-carousel-slide","wui-carousel-stage","wui-carousel-track","wui-cell","wui-cell-end","wui-cell-mono","wui-cell-numeric","wui-cell-primary","wui-cell-secondary","wui-chart-canvas","wui-chart-card","wui-chart-card-legend-off","wui-chart-card-legend-tool","wui-chart-card-retry","wui-chart-card-tool","wui-chart-legend","wui-chart-legend-item","wui-chart-legend-label","wui-chart-legend-swatch","wui-chart-legend-swatch-line","wui-chart-num","wui-chart-skeleton","wui-chart-state","wui-chart-state-text","wui-chart-surface","wui-chart-table","wui-chart-table-note","wui-chart-table-wrap","wui-chart-tooltip","wui-chart-tooltip-body","wui-chart-tooltip-foot","wui-chart-tooltip-label","wui-chart-tooltip-row","wui-chart-tooltip-swatch","wui-chart-tooltip-swatch-line","wui-chart-tooltip-title","wui-chart-tooltip-value","wui-check","wui-chip-count","wui-chip-group","wui-chip-group-nowrap","wui-choice-chip-solid","wui-cmd-back","wui-cmd-card","wui-cmd-crumb","wui-cmd-crumbs","wui-cmd-empty","wui-cmd-footer","wui-cmd-group","wui-cmd-group-label","wui-cmd-input","wui-cmd-item","wui-cmd-item-chevron","wui-cmd-item-desc","wui-cmd-item-icon","wui-cmd-item-label","wui-cmd-item-meta","wui-cmd-item-text","wui-cmd-list","wui-cmd-mark","wui-cmd-page","wui-cmd-recents","wui-cmd-search","wui-cmd-search-icon","wui-cmd-spinner","wui-cmd-tabs","wui-cmd-trail","wui-code-bar","wui-code-block","wui-code-copy","wui-code-copy-icon","wui-code-line","wui-code-pre","wui-code-source","wui-code-t-attr","wui-code-t-comment","wui-code-t-function","wui-code-t-keyword","wui-code-t-literal","wui-code-t-number","wui-code-t-punct","wui-code-t-string","wui-code-t-tag","wui-code-t-type","wui-code-t-variable","wui-code-title","wui-code-view","wui-col-grow","wui-col-hidden","wui-col-resizable","wui-col-resize","wui-col-span-2","wui-col-span-3","wui-col-span-full","wui-color-field-lg","wui-color-field-sm","wui-color-field-xl","wui-cols-2","wui-cols-3","wui-cols-4","wui-column-menu","wui-column-menu-item","wui-column-menu-title","wui-comment--internal","wui-comment--mine","wui-comment-action","wui-comment-actions","wui-comment-attachment","wui-comment-attachment-size","wui-comment-attachments","wui-comment-author","wui-comment-avatar","wui-comment-composer","wui-comment-composer-avatar","wui-comment-composer-inline","wui-comment-confirm","wui-comment-confirm-text","wui-comment-edited","wui-comment-editor","wui-comment-empty","wui-comment-error","wui-comment-form-actions","wui-comment-head","wui-comment-internal-badge","wui-comment-list","wui-comment-main","wui-comment-reactions","wui-comment-replies","wui-comment-reply","wui-comment-row","wui-comment-text","wui-comment-text--markdown","wui-comment-text-deleted","wui-comment-thread","wui-comment-thread--conversation","wui-comment-time","wui-compare-center","wui-compare-code","wui-compare-group","wui-compare-group-row","wui-compare-nowrap","wui-compare-plain","wui-compare-relaxed","wui-compare-scroll","wui-compare-scroll-table","wui-compare-state","wui-compare-state-no","wui-compare-state-partial","wui-compare-state-warn","wui-compare-state-yes","wui-compare-sticky-first","wui-compare-sticky-head","wui-confirm","wui-confirm-actions","wui-confirm-body","wui-confirm-content","wui-confirm-icon","wui-confirm-msg","wui-confirm-plain","wui-confirm-title","wui-consent-banner-accept","wui-consent-banner-actions","wui-consent-banner-category","wui-consent-banner-category-description","wui-consent-banner-description","wui-consent-banner-heading","wui-consent-banner-panel","wui-consent-banner-policy","wui-consent-banner-reject","wui-consent-banner-save","wui-consent-banner-settings","wui-consent-banner-settings-toggle","wui-context-menu-chevron","wui-context-menu-hint","wui-context-menu-panel","wui-context-menu-search","wui-context-menu-sub","wui-context-menu-subpanel","wui-context-menu-tick","wui-control","wui-control-group","wui-control-label","wui-crop-controls","wui-crop-frame","wui-crop-frame--round","wui-crop-handle","wui-crop-handle--ne","wui-crop-handle--nw","wui-crop-handle--se","wui-crop-handle--sw","wui-crop-img","wui-crop-preview","wui-crop-previews","wui-crop-previews--round","wui-crop-stage","wui-crop-toolbtn","wui-crop-tools","wui-crop-zoom","wui-crop-zoombtn","wui-dashboard-cell","wui-dashboard-cell-3","wui-dashboard-cell-4","wui-dashboard-cell-6","wui-dashboard-cell-8","wui-dashboard-cell-fifth","wui-dashboard-grid","wui-daterange-main","wui-daterange-pop--presets","wui-daterange-preset","wui-daterange-presets","wui-descs-col-4","wui-descs-emphasis","wui-descs-icon","wui-descs-link","wui-descs-list","wui-descs-span-1","wui-descs-span-10","wui-descs-span-11","wui-descs-span-12","wui-descs-span-2","wui-descs-span-3","wui-descs-span-4","wui-descs-span-5","wui-descs-span-6","wui-descs-span-7","wui-descs-span-8","wui-descs-span-9","wui-descs-summary","wui-detail-pane","wui-drawer","wui-drawer-body","wui-drawer-close","wui-drawer-discard","wui-drawer-discard-text","wui-drawer-discarding","wui-drawer-footer","wui-drawer-grip","wui-drawer-handle","wui-drawer-header","wui-drawer-headtext","wui-drawer-panel","wui-drawer-subtitle","wui-drawer-title","wui-drawer-title-ic","wui-drop-tray","wui-dropdown-empty","wui-dropdown-form","wui-dropdown-item-body","wui-dropdown-item-desc","wui-dropdown-item-disabled","wui-dropdown-menu-fit","wui-dropdown-menu-lg","wui-dropdown-menu-md","wui-dropdown-menu-searchable","wui-dropdown-menu-sm","wui-dropdown-search","wui-dropdown-search-input","wui-dropdown-trigger","wui-dropdown-trigger-neutral","wui-due-date","wui-due-date-danger","wui-due-date-empty","wui-due-date-warning","wui-empty-illustration","wui-empty-illustration-custom","wui-empty-state-table","wui-entry-grid","wui-entry-grid-add","wui-entry-grid-bar","wui-entry-grid-detail","wui-entry-grid-dot","wui-entry-grid-empty","wui-entry-grid-error","wui-entry-grid-footer","wui-entry-grid-group","wui-entry-grid-hint","wui-entry-grid-row","wui-entry-grid-row-failed","wui-entry-grid-scroll","wui-entry-grid-status","wui-entry-grid-table","wui-error-summary","wui-error-summary-list","wui-error-summary-title","wui-expand-cell","wui-expand-toggle","wui-field-busy","wui-field-message","wui-file-busy","wui-file-input-button-field","wui-file-tile","wui-file-tile-ext","wui-file-tile-meta","wui-file-tile-name","wui-file-tile-text","wui-file-tiles","wui-file-viewer-actions","wui-file-viewer-audio-art","wui-file-viewer-body","wui-file-viewer-canvas","wui-file-viewer-center","wui-file-viewer-controls","wui-file-viewer-divider","wui-file-viewer-download","wui-file-viewer-end","wui-file-viewer-fullscreen","wui-file-viewer-group","wui-file-viewer-hit","wui-file-viewer-hit-current","wui-file-viewer-image","wui-file-viewer-image-scroll","wui-file-viewer-image-stage","wui-file-viewer-links","wui-file-viewer-menu","wui-file-viewer-menu-tick","wui-file-viewer-name","wui-file-viewer-page","wui-file-viewer-page-input","wui-file-viewer-page-total","wui-file-viewer-pages","wui-file-viewer-panning","wui-file-viewer-player","wui-file-viewer-player-audio","wui-file-viewer-print-frame","wui-file-viewer-row","wui-file-viewer-scroll","wui-file-viewer-search","wui-file-viewer-search-count","wui-file-viewer-search-field","wui-file-viewer-seek","wui-file-viewer-sheet","wui-file-viewer-skeleton","wui-file-viewer-slot","wui-file-viewer-speed","wui-file-viewer-stage","wui-file-viewer-start","wui-file-viewer-status","wui-file-viewer-text","wui-file-viewer-thumb","wui-file-viewer-thumb-frame","wui-file-viewer-thumb-no","wui-file-viewer-thumbs","wui-file-viewer-time","wui-file-viewer-toolbar","wui-file-viewer-video","wui-file-viewer-view-end","wui-file-viewer-volume","wui-file-viewer-zoom","wui-filter-bar","wui-filter-bar--folded","wui-filter-chip-inline","wui-filter-count-desktop","wui-filter-count-phone","wui-filter-facet","wui-filter-form","wui-filter-more","wui-filter-more-head","wui-filter-more-panel","wui-filter-more-panel-end","wui-filter-more-trigger","wui-filter-popover","wui-filter-popover-field","wui-filter-popover-foot","wui-filter-popover-grid","wui-filter-popover-head","wui-filter-popover-more","wui-filter-popover-note","wui-filter-popover-panel","wui-filter-popover-title","wui-filter-popover-trigger","wui-flag","wui-float-above","wui-floating-btn","wui-floating-btn--lg","wui-floating-btn--secondary","wui-floating-btn--sm","wui-floating-stack","wui-floating-stack-item","wui-floating-stack-item--primary","wui-floating-stack-item--secondary","wui-force-active","wui-force-focus","wui-force-hover","wui-form-cols-1","wui-form-cols-10","wui-form-cols-11","wui-form-cols-12","wui-form-cols-2","wui-form-cols-3","wui-form-cols-4","wui-form-cols-5","wui-form-cols-6","wui-form-cols-7","wui-form-cols-8","wui-form-cols-9","wui-form-compact","wui-form-inline","wui-form-labels-start","wui-form-row-keep","wui-form-rule-none","wui-form-section","wui-form-section-head","wui-form-section-title","wui-form-side","wui-form-title-display","wui-formula-label","wui-formula-note","wui-formula-result","wui-formula-sign","wui-formula-step","wui-formula-step-total","wui-formula-steps","wui-formula-working","wui-grid","wui-grid-lg-2","wui-grid-lg-3","wui-grid-lg-4","wui-grid-md-2","wui-grid-md-3","wui-grid-md-4","wui-group-cell","wui-group-count","wui-group-label","wui-group-row","wui-group-toggle","wui-has-value-avatar","wui-hidden-from-lg","wui-hidden-from-md","wui-hidden-from-sm","wui-hidden-from-xl","wui-hover-card-loading","wui-hover-card-panel","wui-hover-card-trigger","wui-icon","wui-icon-tip","wui-ill-accent","wui-ill-accent-line","wui-ill-card","wui-ill-danger","wui-ill-danger-fill","wui-ill-danger-line","wui-ill-dash","wui-ill-ink","wui-ill-mute","wui-ill-soft","wui-ill-thick","wui-illustration","wui-image-picker","wui-image-picker-avatar","wui-image-picker-buttons","wui-image-picker-buttons-actions","wui-image-picker-buttons-badge","wui-image-picker-buttons-camera","wui-image-picker-buttons-face","wui-image-picker-buttons-img","wui-image-picker-buttons-placeholder","wui-image-picker-field","wui-image-picker-field-inline","wui-image-picker-field-profile","wui-image-picker-hint","wui-image-picker-img","wui-image-picker-logo","wui-image-picker-meta","wui-image-picker-overlay","wui-image-picker-remove","wui-image-picker-ring","wui-image-picker-rounded","wui-image-picker-row","wui-image-picker-shell","wui-image-picker-square","wui-image-picker-subtitle","wui-image-picker-title","wui-inline-edit","wui-inline-edit--nowrap","wui-inline-edit-display","wui-inline-edit-editor","wui-inline-edit-error","wui-inline-edit-icon","wui-inline-edit-saved","wui-inline-edit-spinner","wui-inline-edit-status","wui-inline-edit-value","wui-input-group","wui-input-leading","wui-input-lg","wui-input-sm","wui-input-trailing","wui-input-underline","wui-input-xl","wui-kanban","wui-kanban-action","wui-kanban-actions","wui-kanban-board","wui-kanban-body","wui-kanban-card","wui-kanban-card-title","wui-kanban-collapse","wui-kanban-column","wui-kanban-count","wui-kanban-dot","wui-kanban-drop-note","wui-kanban-empty","wui-kanban-ghost","wui-kanban-head","wui-kanban-hint","wui-kanban-lock","wui-kanban-more","wui-kanban-summary","wui-kanban-switch","wui-kanban-switch-title","wui-kanban-switcher","wui-kanban-title","wui-kbd","wui-kpi-delta--danger","wui-kpi-delta--neutral","wui-kpi-delta--success","wui-leaving","wui-lightbox","wui-lightbox-bar","wui-lightbox-btn","wui-lightbox-caption","wui-lightbox-count","wui-lightbox-image","wui-lightbox-item","wui-lightbox-nav","wui-lightbox-next","wui-lightbox-overlay","wui-lightbox-prev","wui-lightbox-stage","wui-lightbox-status","wui-lightbox-tools","wui-lightbox-zoomed","wui-link","wui-link--bracket","wui-link--clamp","wui-link--fade","wui-link--glow","wui-link--grow","wui-link--highlight","wui-link--icon","wui-link--lg","wui-link--none","wui-link--rotate","wui-link--shine","wui-link--slide","wui-link--sm","wui-link--static","wui-link--surface-dark","wui-link--underline","wui-link--underline-center","wui-link__ic","wui-link__ic--left","wui-link__ic--right","wui-link__label","wui-list-card-count","wui-list-card-filters","wui-markdown","wui-markdown-citation","wui-markdown-source","wui-mention","wui-mention-empty","wui-mention-input","wui-mention-input-text","wui-mention-menu","wui-mention-option","wui-mention-option-description","wui-mention-option-label","wui-mention-option-photo","wui-mention-option-text","wui-meta-list","wui-metric","wui-metric-label","wui-metric-note","wui-metric-strip","wui-metric-strip-cols-3","wui-metric-strip-cols-4","wui-metric-strip-cols-5","wui-metric-strip-divided","wui-metric-strip-sm","wui-metric-tone-danger","wui-metric-tone-info","wui-metric-tone-success","wui-metric-tone-warning","wui-metric-value","wui-modal","wui-modal-back","wui-modal-body","wui-modal-close","wui-modal-eyebrow","wui-modal-footer","wui-modal-fullscreen","wui-modal-header","wui-modal-header-actions","wui-modal-headicon","wui-modal-heading","wui-modal-headtext","wui-modal-loading","wui-modal-shell","wui-modal-skeleton","wui-modal-skeleton--short","wui-modal-state","wui-modal-state-actions","wui-modal-state-text","wui-modal-state-title","wui-modal-submit-error","wui-modal-subtitle","wui-modal-title","wui-modal-title-serif","wui-money","wui-mono","wui-name-cell","wui-nav-depth-2","wui-nav-depth-3","wui-nav-depth-4","wui-nav-depth-5","wui-nav-depth-6","wui-nav-group-after","wui-nav-group-body","wui-nav-group-caret","wui-nav-group-collapsible","wui-nav-group-folded","wui-nav-group-text","wui-nav-group-toggle","wui-nav-header","wui-nav-list","wui-nav-list-count","wui-nav-list-divider","wui-nav-list-dot","wui-nav-list-icon","wui-nav-list-item","wui-nav-list-label","wui-nav-menu-chevron","wui-nav-menu-item","wui-nav-menu-link","wui-nav-menu-link-desc","wui-nav-menu-link-label","wui-nav-menu-link-text","wui-nav-menu-links","wui-nav-menu-list","wui-nav-menu-panel","wui-nav-menu-toplink","wui-nav-menu-trigger","wui-nav-new","wui-nav-split","wui-nav-split-link","wui-nav-split-toggle","wui-notification-center","wui-notification-center-body","wui-notification-center-count","wui-notification-center-day","wui-notification-center-dot","wui-notification-center-empty","wui-notification-center-foot","wui-notification-center-head","wui-notification-center-icon","wui-notification-center-item","wui-notification-center-item-read","wui-notification-center-item-text","wui-notification-center-item-title","wui-notification-center-items","wui-notification-center-list","wui-notification-center-live","wui-notification-center-markall","wui-notification-center-panel","wui-notification-center-tabs","wui-notification-center-title","wui-notification-center-trigger","wui-notification-center-unread-label","wui-notification-center-when","wui-num-wrap-lg","wui-num-wrap-sm","wui-num-wrap-xl","wui-onboarding","wui-onboarding-bar","wui-onboarding-body","wui-onboarding-card","wui-onboarding-chevron","wui-onboarding-count","wui-onboarding-desc","wui-onboarding-dismiss","wui-onboarding-head","wui-onboarding-label","wui-onboarding-mark","wui-onboarding-restore","wui-onboarding-seg","wui-onboarding-step","wui-onboarding-steps","wui-onboarding-title","wui-onboarding-toggle","wui-opt-avatar","wui-opt-hint","wui-opt-label","wui-opt-name","wui-org-tree","wui-org-tree-canvas","wui-org-tree-children","wui-org-tree-count","wui-org-tree-item","wui-org-tree-match","wui-org-tree-name","wui-org-tree-node","wui-org-tree-overlay","wui-org-tree-role","wui-org-tree-search","wui-org-tree-team","wui-org-tree-text","wui-org-tree-toggle","wui-org-tree-toolbar","wui-overflow","wui-overflow-item","wui-overflow-menu","wui-overflow-more","wui-page-header-actions","wui-page-header-meta-below","wui-page-header-subtitle-inline","wui-page-title-slot","wui-pager-summary","wui-period-month","wui-period-month-label","wui-period-picker","wui-phone-lg","wui-phone-prefix","wui-phone-sm","wui-phone-xl","wui-pin-end","wui-pin-end-edge","wui-pin-start","wui-pin-start-edge","wui-pre-line","wui-prewrap","wui-progress-danger","wui-progress-indeterminate","wui-progress-info","wui-progress-label","wui-progress-labelled","wui-progress-neutral","wui-progress-primary","wui-progress-success","wui-progress-warning","wui-pw-inline","wui-radio","wui-radio-group","wui-radio-group-card","wui-radio-group-inline","wui-radio-option-desc","wui-rating","wui-rating-fill","wui-rating-glyphs","wui-rating-input","wui-rating-lg","wui-rating-previewing","wui-rating-sm","wui-rating-star","wui-rating-star-full","wui-rating-star-half","wui-rating-star-preview","wui-rating-stars","wui-rating-value","wui-rb-dialog","wui-reaction","wui-reaction-add","wui-reaction-choice","wui-reaction-count","wui-reaction-mine","wui-reaction-picker","wui-record-pager","wui-record-pager-next","wui-record-pager-position","wui-record-pager-prev","wui-relative-time","wui-remote-drawer","wui-remote-drawer-dialog","wui-rich-text-button","wui-rich-text-content","wui-rich-text-empty","wui-rich-text-glyph","wui-rich-text-glyph-bold","wui-rich-text-glyph-italic","wui-rich-text-group","wui-rich-text-link-apply","wui-rich-text-link-cancel","wui-rich-text-link-error","wui-rich-text-link-input","wui-rich-text-link-remove","wui-rich-text-linkbar","wui-rich-text-prose","wui-rich-text-shell","wui-rich-text-toolbar","wui-row-action-inline","wui-row-actions-menu","wui-row-active","wui-row-dragging","wui-row-expanded","wui-row-header","wui-row-link","wui-row-save-error","wui-score-scale","wui-score-scale__ends","wui-score-scale__item","wui-score-scale__item--selected","wui-scroll","wui-scrolled","wui-search-collapsible","wui-search-lg","wui-search-sm","wui-search-toggle","wui-search-xl","wui-section","wui-section-actions","wui-section-call-to-action","wui-section-call-to-action--band","wui-section-center","wui-section-eyebrow","wui-section-eyebrow-danger","wui-section-eyebrow-info","wui-section-eyebrow-neutral","wui-section-eyebrow-pill","wui-section-eyebrow-primary","wui-section-eyebrow-success","wui-section-eyebrow-warning","wui-section-faq","wui-section-faq--split","wui-section-faq-body","wui-section-feature","wui-section-feature-body","wui-section-feature-icon","wui-section-feature-icon-image","wui-section-feature-img","wui-section-feature-text","wui-section-feature-title","wui-section-features","wui-section-features-list","wui-section-features-rows","wui-section-head","wui-section-hero","wui-section-inner","wui-section-lead-consent","wui-section-lead-fields","wui-section-lead-form","wui-section-lead-success","wui-section-lead-text","wui-section-logo","wui-section-logo-caption","wui-section-logo-img","wui-section-logo-stack","wui-section-logo-text","wui-section-logos","wui-section-logos-list","wui-section-media","wui-section-muted","wui-section-pricing","wui-section-subtitle","wui-section-testimonial","wui-section-testimonial-author","wui-section-testimonial-avatar","wui-section-testimonial-name","wui-section-testimonial-quote","wui-section-testimonial-role","wui-section-testimonial-who","wui-section-testimonials-list","wui-section-title","wui-section-title-body","wui-segmented-borderless","wui-segmented-label-full","wui-segmented-label-short","wui-segmented-option-count","wui-select","wui-select-add","wui-select-caret","wui-select-cell","wui-select-check","wui-select-chips","wui-select-clear","wui-select-clear-all","wui-select-control","wui-select-draft","wui-select-empty","wui-select-error","wui-select-footer","wui-select-group","wui-select-hint","wui-select-icon","wui-select-input","wui-select-lg","wui-select-loading","wui-select-menu","wui-select-menu-fixed","wui-select-multi","wui-select-opt-desc","wui-select-opt-meta","wui-select-opt-name","wui-select-option","wui-select-option-rich","wui-select-option-text","wui-select-options","wui-select-placeholder","wui-select-prefix","wui-select-reset","wui-select-search","wui-select-sep","wui-select-sm","wui-select-spinner","wui-select-value","wui-select-value-avatar","wui-select-xl","wui-shell-launcher","wui-shell-top","wui-shell-top-brand","wui-shell-top-nav","wui-shortcut-close","wui-shortcut-group","wui-shortcut-group-title","wui-shortcut-keys","wui-shortcut-legend","wui-shortcut-sheet","wui-shortcut-sheet-head","wui-shortcut-sheet-title","wui-shortcut-toggle","wui-show-more","wui-show-more-body","wui-show-more-toggle","wui-sidebar-foot-links","wui-skeleton-cell","wui-skeleton-lines","wui-skip-link","wui-slider-rail","wui-sort-lead","wui-sortable-active","wui-sortable-body","wui-sortable-dragging","wui-sortable-ghost","wui-sortable-handle","wui-sortable-item","wui-sortable-live","wui-sparkline","wui-spin","wui-spinner","wui-spinner-sm","wui-split-all","wui-split-badge","wui-split-button","wui-split-check","wui-split-chips","wui-split-count","wui-split-empty","wui-split-head","wui-split-head-bulk","wui-split-head-main","wui-split-item","wui-split-item-end","wui-split-item-main","wui-split-item-meta","wui-split-item-title","wui-split-items","wui-split-legend","wui-split-link","wui-split-list","wui-split-menu","wui-split-pane","wui-split-pane-body","wui-split-pane-error","wui-split-pane-head","wui-split-reading","wui-split-skeleton","wui-split-skeleton-meta","wui-split-skeleton-title","wui-split-view","wui-step-done-tone-danger","wui-step-done-tone-info","wui-step-done-tone-primary","wui-step-done-tone-success","wui-step-done-tone-warning","wui-step-size-lg","wui-step-size-sm","wui-step-tile","wui-step-tile-body","wui-step-tile-state","wui-step-tiles","wui-step-tone-danger","wui-step-tone-info","wui-step-tone-primary","wui-step-tone-success","wui-step-tone-warning","wui-stepper-no-connectors","wui-stepper-start","wui-struct-card-filled","wui-struct-card-glyph","wui-struct-card-glyph-on","wui-struct-card-lg","wui-struct-card-no-check","wui-struct-card-sm","wui-struct-card-stacked","wui-support-composer","wui-support-event","wui-support-reply","wui-support-reply-agent","wui-support-reply-body","wui-support-reply-head","wui-support-search","wui-support-subject","wui-support-subject-meta","wui-support-tabs","wui-support-toolbar","wui-tab-label","wui-tabbar","wui-tabbar-badge","wui-tabbar-icon","wui-tabbar-item","wui-tabbar-label","wui-table-compact","wui-table-cozy","wui-table-empty","wui-table-equal-actions","wui-table-error","wui-table-flush","wui-table-link-first","wui-table-pager","wui-table-pagination-sm","wui-table-pagination-standalone","wui-table-refreshing","wui-table-scroll","wui-table-server","wui-table-stack","wui-table-sticky-actions","wui-table-sticky-first","wui-table-striped","wui-table-toolbar","wui-table-toolbar-actions","wui-table-toolbar-all","wui-table-toolbar-bulk","wui-table-toolbar-clear","wui-table-toolbar-count","wui-table-toolbar-filters","wui-table-toolbar-main","wui-text-2xl","wui-text-3xl","wui-text-4xl","wui-text-base","wui-text-lg","wui-text-sm","wui-text-xl","wui-text-xs","wui-theme-switching","wui-theme-toggle","wui-timeline--lg","wui-timeline--sm","wui-timeline--steps","wui-timeline--steps-vertical","wui-timeline-eyebrow","wui-timeline-note--markdown","wui-timepicker-col","wui-timepicker-cols","wui-timepicker-error","wui-timepicker-field","wui-timepicker-toggle","wui-toast","wui-toast--anim-jelly","wui-toast--anim-organic","wui-toast--anim-spring","wui-toast--danger","wui-toast--dragging","wui-toast--info","wui-toast--shape-pill","wui-toast--shape-sharp","wui-toast--success","wui-toast--surface-inverse","wui-toast--warning","wui-toast-action","wui-toast-close","wui-toast-container","wui-toast-content","wui-toast-icon","wui-toast-message","wui-toast-more","wui-toast-progress","wui-toast-task","wui-toast-title","wui-toast-track","wui-toast-track-fill","wui-toast-track-pct","wui-tooltip","wui-tooltip-inverse","wui-topsearch","wui-topsearch-all","wui-topsearch-empty","wui-topsearch-group","wui-topsearch-group-label","wui-topsearch-hit","wui-topsearch-hit-icon","wui-topsearch-hit-sub","wui-topsearch-hit-text","wui-topsearch-hit-title","wui-topsearch-host","wui-topsearch-open","wui-topsearch-panel","wui-topsearch-results","wui-topsearch-row","wui-touch-target","wui-tour-actions","wui-tour-arrow","wui-tour-back","wui-tour-card","wui-tour-end","wui-tour-end-button","wui-tour-end-mark","wui-tour-end-message","wui-tour-end-next","wui-tour-end-title","wui-tour-hint","wui-tour-layer","wui-tour-media","wui-tour-media-toggle","wui-tour-nav","wui-tour-next","wui-tour-pointer","wui-tour-position","wui-tour-progress-bar","wui-tour-progress-segment","wui-tour-skip","wui-tour-spot","wui-tour-text","wui-tour-title","wui-tree","wui-tree-badge","wui-tree-check","wui-tree-group","wui-tree-icon","wui-tree-item","wui-tree-label","wui-tree-row","wui-tree-row-error","wui-tree-row-selected","wui-tree-spinner","wui-tree-toggle","wui-truncate","wui-truncate-multi","wui-truncate-text","wui-usermenu-caret","wui-usermenu-extra","wui-usermenu-foot","wui-usermenu-head","wui-usermenu-logout","wui-usermenu-menu","wui-usermenu-name","wui-usermenu-role","wui-usermenu-roles","wui-usermenu-roles-label","wui-usermenu-section","wui-usermenu-text","wui-usermenu-trigger","wui-usermenu-trigger-outlined","wui-usermenu-who","wui-virtual-off","wui-virtual-spacer","wui-whats-new","wui-whats-new-body","wui-whats-new-date","wui-whats-new-dot","wui-whats-new-empty","wui-whats-new-entry","wui-whats-new-entry-title","wui-whats-new-image","wui-whats-new-link","wui-whats-new-list","wui-whats-new-name","wui-whats-new-panel","wui-whats-new-title","wui-whats-new-trigger","wui-whats-new-unread","wui-wizard-topbar","wui-wizard-topbar-close","wui-wizard-topbar-count","wui-wizard-topbar-title"]`),lu=d(`node_modules`,`@biomejs`,`biome`,`bin`,`biome`),uu=[`.js`,`.mjs`,`.css`],du=`react.md → Lint: a page script or style beside server-rendered pages passes the shared Biome check like portal code; fix the finding, never raise the recorded count.`,fu=/* @__PURE__ */ new Set([`error`,`warning`,`fatal`]),pu=200,mu=2e5;function hu(e){return uu.includes(u(e).toLowerCase())&&e.split(`/`).slice(0,-1).includes(`wwwroot`)}function gu(e,n){if(n.length===0)return[];let r=d(e,lu);if(!t(r))return null;let i=[];for(let t=0;t<n.length;t+=pu){let a=n.slice(t,t+pu),o=v(process.execPath,[r,..._u(a)],{cwd:e,encoding:`utf8`,maxBuffer:268435456,windowsHide:!0}),s=vu(o.stdout??``);if(s===null)throw Error(`webority-repo-checks: Biome's report on the page files could not be read: ${String(o.stderr||o.stdout||``).slice(0,200)}`);for(let e of s){if(!fu.has(e.severity??``))continue;let t=(e.location?.path??``).replaceAll(`\\`,`/`),n=e.location?.start?.line??0;i.push({id:`page-lint:${t}`,line:n,text:`${e.category??`biome`}: ${String(e.message??``)}`.slice(0,160),hint:null})}}return i}function _u(e){return[`check`,`--reporter=json`,`--max-diagnostics=none`,`--colors=off`,`--files-max-size=${mu}`,`--no-errors-on-unmatched`,...e]}function vu(e){let t;try{t=JSON.parse(e)}catch{return null}return typeof t!=`object`||!t||!(`diagnostics`in t)?null:Array.isArray(t.diagnostics)?t.diagnostics:null}var yu=/*#__PURE__*/ JSON.parse(`["aave","activity","activity-iconsax","add","add-circle","add-circle-iconsax","add-iconsax","add-square","additem","airdrop","airplane","airplane-square","airpod","airpods","alarm","alarm-iconsax","alert-circle","alert-circle-iconsax","alert-triangle","alert-triangle-iconsax","align-bottom","align-horizontally","align-left","align-right","align-top","align-vertically","android","ankr","apple","aquarius","archive","archive-add","archive-book","archive-box","archive-minus","archive-slash","archive-tick","arrange-horizontal","arrange-horizontal-circle","arrange-horizontal-square","arrange-vertical","arrange-vertical-circle","arrange-vertical-square","arrow","arrow-circle-down","arrow-circle-down-2","arrow-circle-left","arrow-circle-left-2","arrow-circle-right","arrow-circle-right-2","arrow-circle-up","arrow-circle-up-2","arrow-down","arrow-down-2","arrow-down-2-iconsax","arrow-down-3","arrow-down-iconsax","arrow-down-up","arrow-down-up-iconsax","arrow-forward","arrow-forward-square","arrow-left","arrow-left-2","arrow-left-2-iconsax","arrow-left-3","arrow-left-iconsax","arrow-right","arrow-right-2","arrow-right-2-iconsax","arrow-right-3","arrow-right-iconsax","arrow-rotate-left","arrow-rotate-right","arrow-square","arrow-square-down","arrow-square-left","arrow-square-right","arrow-square-up","arrow-swap-horizontal","arrow-swap-horizontal-iconsax","arrow-swap-vertical","arrow-up","arrow-up-2","arrow-up-2-iconsax","arrow-up-3","arrow-up-iconsax","arrow-up-right","arrow-up-right-iconsax","at","at-iconsax","attach-circle","attach-square","audio-square","augur","autobrightness","autonio","avalanche","award","back","back-square","backward","backward-10-seconds","backward-15-seconds","backward-5-seconds","backward-item","badge-check","badge-check-iconsax","bag","bag-2","bag-cross","bag-cross-1","bag-happy","bag-tick","bag-tick-2","bag-timer","ban","ban-iconsax","bank","bank-iconsax","barcode","battery-charging","battery-disable","battery-empty","battery-empty-1","battery-full","be","bell","bell-iconsax","bezier","bill","binance-coin","binance-usd","bitcoin","bitcoin-card","bitcoin-convert","bitcoin-refresh","blend","blend-2","blogger","bluetooth","bluetooth-2","bluetooth-circle","bluetooth-rectangle","blur","bolt","book","book-1","book-iconsax","book-saved","book-square","bookmark","bookmark-2","bookmark-iconsax","bootstrap","box","box-1","box-2","box-add","box-remove","box-seam","box-seam-iconsax","box-search","box-tick","box-time","briefcase","briefcase-cross","briefcase-iconsax","briefcase-tick","briefcase-timer","brifecase-cross","brifecase-tick","brifecase-timer","brodcast","broom","brush","brush-2","brush-3","brush-big","brush-square","bubble","bucket","bucket-circle","bucket-square","bug","bug-iconsax","building","building-2","building-2-iconsax","building-3","building-4","building-iconsax","buildings","buildings-2","buliding","bullseye","bullseye-iconsax","bus","buy-crypto","cake","cake-iconsax","calculator","calculator-iconsax","calendar","calendar-1","calendar-1-iconsax","calendar-2","calendar-add","calendar-add-iconsax","calendar-check","calendar-check-iconsax","calendar-circle","calendar-dots","calendar-dots-iconsax","calendar-edit","calendar-iconsax","calendar-remove","calendar-search","calendar-tick","calendar-tick-iconsax","call","call-add","call-calling","call-incoming","call-minus","call-outgoing","call-received","call-remove","call-slash","camera","camera-iconsax","camera-slash","candle","candle-2","car","card","card-add","card-coin","card-edit","card-pos","card-receive","card-remove","card-remove-1","card-send","card-slash","card-tick","card-tick-1","cardano","cards","cash-stack","cash-stack-iconsax","category","category-2","cd","celo","celsius","chainlink","chart","chart-1","chart-2","chart-21","chart-circle","chart-column","chart-column-iconsax","chart-fail","chart-iconsax","chart-square","chart-success","chat","chat-dots","chat-dots-iconsax","chat-iconsax","check","check-check","check-check-iconsax","check-circle","check-circle-iconsax","check-iconsax","chemical-glass","chevron-down","chevron-down-iconsax","chevron-left","chevron-left-iconsax","chevron-right","chevron-right-iconsax","chevron-up","chevron-up-iconsax","chevrons-left","chevrons-left-iconsax","chevrons-right","chevrons-right-iconsax","chevrons-up-down","chevrons-up-down-iconsax","chrome","circle","circle-help","circle-help-iconsax","circle-iconsax","civic","clipboard","clipboard-check","clipboard-check-iconsax","clipboard-close","clipboard-export","clipboard-import","clipboard-text","clipboard-text-iconsax","clipboard-tick","clipboard-tick-iconsax","clock","clock-iconsax","close-circle","close-circle-iconsax","close-square","cloud","cloud-add","cloud-change","cloud-connection","cloud-cross","cloud-drizzle","cloud-fog","cloud-iconsax","cloud-lightning","cloud-minus","cloud-notif","cloud-plus","cloud-remove","cloud-snow","cloud-sunny","code","code-1","code-circle","code-circle-iconsax","code-iconsax","coffee","coin","coin-1","coins","coins-iconsax","color-swatch","colorfilter","colors-square","command","command-square","comment","comment-iconsax","component","computing","contact","contact-iconsax","convert","convert-3-d-cube","convert-card","convertshape","convertshape-2","copy","copy-iconsax","copy-success","copyright","courthouse","cpu","cpu-charge","cpu-iconsax","cpu-setting","creative-commons","credit-card","credit-card-iconsax","crop","crown","crown-1","cup","cursor","cursor-iconsax","cut","dai","danger","danger-iconsax","dash","data","data-2","decred","dent","designtools","device-message","devices","diagram","diagram-3","diagram-3-iconsax","diamonds","direct","direct-down","direct-inbox","direct-left","direct-normal","direct-notification","direct-right","direct-send","direct-up","directbox-default","directbox-notif","directbox-receive","directbox-send","discount-circle","discount-shape","discover","dislike","display","display-iconsax","document","document-cloud","document-code","document-code-2","document-copy","document-download","document-download-iconsax","document-favorite","document-filter","document-forward","document-iconsax","document-like","document-previous","document-sketch","document-text","document-text-1","document-text-iconsax","document-upload","dollar-circle","dollar-square","download","download-iconsax","dribbble","driver","driver-2","driver-refresh","driving","drop","dropbox","edit","edit-2","edit-2-iconsax","edit-iconsax","educare","electricity","element","element-2","element-3","element-4","element-equal","element-plus","emercoin","emoji-happy","emoji-normal","emoji-sad","emoji-smile","emoji-smile-iconsax","empty-wallet","empty-wallet-add","empty-wallet-change","empty-wallet-remove","empty-wallet-tick","empty-wallet-time","enjin-coin","eos","eraser","eraser-square","ethereum","ethereum-classic","export","export-circle","export-curve","export-iconsax","export-square","external-drive","external-link","external-link-iconsax","eye","eye-iconsax","eye-off","eye-off-iconsax","eye-slash","facebook","facebook-iconsax","factory","factory-iconsax","fatrows","favorite-chart","figma","figma-1","file-plus-2","file-plus-2-iconsax","file-text","file-text-iconsax","files","files-iconsax","filter","filter-add","filter-edit","filter-iconsax","filter-remove","filter-search","filter-square","filter-tick","finger-cricle","finger-scan","firstline","flag","flag-2","flag-iconsax","flame","flame-iconsax","flash","flash-circle","flash-iconsax","flash-slash","flashy","folder","folder-2","folder-2-iconsax","folder-add","folder-cloud","folder-connection","folder-cross","folder-favorite","folder-iconsax","folder-kanban","folder-kanban-iconsax","folder-minus","folder-open","folder-open-iconsax","folder-plus","folder-plus-iconsax","forbidden","forbidden-2","format-circle","format-square","forward","forward-10-seconds","forward-15-seconds","forward-5-seconds","forward-item","framer","ftx-token","gallery","gallery-add","gallery-edit","gallery-export","gallery-favorite","gallery-import","gallery-remove","gallery-slash","gallery-tick","game","gameboy","gas-station","gauge","gauge-iconsax","gemini","gemini-2","ghost","gift","gift-iconsax","github","github-iconsax","glass","global","global-edit","global-refresh","global-search","globe","globe-iconsax","globe2","globe2-iconsax","google","google-drive","google-iconsax","google-play","gps","gps-slash","grammerly","graph","grid","grid-1","grid-2","grid-3","grid-4","grid-5","grid-6","grid-7","grid-8","grid-9","grid-edit","grid-eraser","grid-iconsax","grid-lock","hamberger-menu","hamburger-menu","hand","hand-iconsax","happyemoji","hard-hat","hard-hat-iconsax","harmony","hashtag","hashtag-down","hashtag-square","hashtag-up","headphone","headphone-iconsax","headphones","health","health-iconsax","heart","heart-add","heart-circle","heart-edit","heart-iconsax","heart-remove","heart-search","heart-slash","heart-tick","hedera-hashgraph","hex","hierarchy","hierarchy-2","hierarchy-3","hierarchy-iconsax","hierarchy-square","hierarchy-square-2","hierarchy-square-3","history","history-iconsax","home","home-2","home-2-iconsax","home-3","home-hashtag","home-trend-down","home-trend-up","home-wifi","hospital","house","house-2","house-iconsax","html-3","html-5","huobi-token","i-24-support","i-3-d-cube-scan","i-3-d-rotate","i-3-d-square","i-3-dcube","i-3-square","icon","illustrator","image","image-iconsax","import","import-circle","import-curve","import-square","inbox","inbox-iconsax","info","info-circle","info-circle-iconsax","info-iconsax","information","instagram","instagram-iconsax","iost","java-script","js","judge","kanban","kanban-iconsax","key","key-iconsax","key-square","keyboard","keyboard-open","kyber-network","lamp","lamp-charge","lamp-on","lamp-slash","language-circle","language-square","layer","layer-iconsax","layout-dashboard","layout-dashboard-iconsax","layout-grid","layout-grid-iconsax","layout-maximize","level","lifebuoy","lightbulb","lightbulb-iconsax","like","like-1","like-dislike","like-shapes","like-tag","link","link-1","link-2","link-2-iconsax","link-21","link-circle","link-square","linkedin","linkedin-iconsax","list","list-iconsax","litecoin","location","location-add","location-cross","location-discover","location-minus","location-slash","location-tick","lock","lock-1","lock-1-iconsax","lock-circle","lock-iconsax","lock-slash","log-out","log-out-iconsax","login","login-curve","login-iconsax","logout","logout-curve","logout-iconsax","lovely","magic-star","magicpen","mail","mail-iconsax","main-component","maker","man","map","map-1","map-pin","map-pin-iconsax","mask","mask-left","mask-right","math","maximize","maximize-1","maximize-2","maximize-3","maximize-4","maximize-4-iconsax","maximize-circle","medal","medal-star","menu","menu-board","menu-iconsax","message","message-2","message-add","message-add-1","message-circle","message-edit","message-favorite","message-minus","message-notif","message-programming","message-question","message-question-iconsax","message-remove","message-search","message-square","message-square-iconsax","message-text","message-text-1","message-text-iconsax","message-tick","message-time","messages","messages-1","messages-2","messages-3","messenger","microphone","microphone-2","microphone-slash","microphone-slash-1","microscope","microsoft","microsoft-iconsax","milk","mini-music-sqaure","minus","minus-circle","minus-circle-iconsax","minus-cirlce","minus-iconsax","minus-square","mirror","mirroring-screen","mobile","mobile-iconsax","mobile-programming","monero","money","money-2","money-3","money-4","money-add","money-archive","money-change","money-forbidden","money-receive","money-recive","money-remove","money-send","money-tick","money-time","moneys","monitor","monitor-iconsax","monitor-mobbile","monitor-recorder","moon","moon-iconsax","more","more-2","more-circle","more-horizontal","more-horizontal-iconsax","more-square","mouse","mouse-circle","mouse-square","music","music-circle","music-dashboard","music-filter","music-iconsax","music-library-2","music-play","music-playlist","music-square","music-square-add","music-square-remove","music-square-search","musicnote","nebulas","nem","nexo","next","note","note-1","note-add","note-favorite","note-remove","note-square","note-text","notepad","notepad-2","notification","notification-1","notification-bing","notification-circle","notification-favorite","notification-iconsax","notification-status","ocean-protocol","okb","okru","omega-circle","omega-square","ontology","paintbucket","palette","palette-iconsax","panel-left-close","panel-left-close-iconsax","panel-left-open","panel-left-open-iconsax","paperclip","paperclip-2","paperclip-iconsax","password-check","path-tool","path-tool-2","path-tool-square","pause","pause-circle","pause-iconsax","paypal","pen-add","pen-close","pen-remove","pen-tool","pen-tool-2","pen-tool-iconsax","pencil","pencil-iconsax","people","people-iconsax","percentage-circle","percentage-square","personalcard","pet","pharagraphspacing","phone","phone-iconsax","photoshop","picture-frame","play","play-add","play-circle","play-cricle","play-iconsax","play-remove","plug","plug-iconsax","plus","plus-circle","plus-circle-iconsax","plus-iconsax","pointer","polkadot","polygon","polyswarm","presentation-chart","presention-chart","previous","printer","printer-iconsax","printer-slash","profile","profile-2-user","profile-add","profile-circle","profile-circle-iconsax","profile-delete","profile-remove","profile-tick","programming-arrow","programming-arrows","python","quant","quote-down","quote-down-circle","quote-down-square","quote-up","quote-up-circle","quote-up-square","radar","radar-2","radio","ram","ram-2","rank","ranking","ranking-iconsax","receipt","receipt-1","receipt-2","receipt-21","receipt-add","receipt-discount","receipt-disscount","receipt-edit","receipt-iconsax","receipt-item","receipt-minus","receipt-search","receipt-square","receipt-text","receipt-text-iconsax","receive","receive-square","receive-square-2","record","record-circle","recovery-convert","reddit","reddit-iconsax","refresh","refresh-2","refresh-circle","refresh-cw","refresh-cw-iconsax","refresh-iconsax","refresh-left-square","refresh-right-square","refresh-square","repeat","repeat-circle","repeat-iconsax","repeate-music","repeate-one","reserve","robot","robot-iconsax","rotate-ccw","rotate-ccw-iconsax","rotate-cw","rotate-cw-iconsax","rotate-left","rotate-right","route-square","routing","routing-2","routing-iconsax","row-horizontal","row-vertical","ruler","ruler-pen","safe-home","sagittarius","save-2","save-add","save-minus","save-remove","scan","scan-barcode","scanner","scanning","scissor","screenmirroring","scroll","search","search-favorite","search-favorite-1","search-iconsax","search-normal","search-normal-1","search-normal-iconsax","search-status","search-status-1","search-zoom-in","search-zoom-in-1","search-zoom-out","search-zoom-out-1","security","security-card","security-safe","security-time","security-user","send","send-2","send-iconsax","server","server-iconsax","setting","setting-2","setting-2-iconsax","setting-3","setting-4","setting-5","settings","settings-iconsax","shapes","shapes-1","share","share-2","share-2-iconsax","share-iconsax","shield","shield-check","shield-check-iconsax","shield-cross","shield-cross-iconsax","shield-iconsax","shield-lock","shield-lock-iconsax","shield-plus","shield-plus-iconsax","shield-search","shield-security","shield-slash","shield-tick","shield-tick-iconsax","ship","shop","shop-add","shop-iconsax","shop-remove","shopping-bag","shopping-cart","shuffle","shutterstock","siacoin","sidebar-bottom","sidebar-left","sidebar-right","sidebar-top","signpost","simcard","simcard-1","simcard-2","size","slack","slash","slider","slider-horizontal","slider-horizontal-1","slider-vertical","slider-vertical-1","smallcaps","smart-car","smart-home","smileys","sms","sms-edit","sms-notification","sms-search","sms-star","sms-tracking","snapchat","snowflake","snowflake-iconsax","solana","sort","sort-iconsax","sound","sparkles","sparkles-iconsax","speaker","speedometer","spotify","stacks","star","star-1","star-iconsax","star-slash","stars","stars-iconsax","status","status-up","stellar","sticker","stickynote","stop","stop-circle","stop-iconsax","story","strongbox","strongbox-2","subtitle","subtitle-iconsax","sun","sun-1","sun-fog","sun-iconsax","table-document","table-lamp","tag","tag-2","tag-cross","tag-iconsax","tag-right","tag-user","task","task-iconsax","task-square","task-square-iconsax","teacher","telephone","telephone-iconsax","tenx","tether","text","text-block","text-bold","text-iconsax","text-italic","text-underline","textalign-center","textalign-justifycenter","textalign-justifyleft","textalign-justifyright","textalign-left","textalign-right","the-graph","theta","thorchain","thumbs-down","thumbs-down-iconsax","thumbs-up","thumbs-up-iconsax","tick-circle","tick-circle-iconsax","tick-square","ticket","ticket-2","ticket-discount","ticket-expired","ticket-star","timer","timer-1","timer-pause","timer-start","toggle-off","toggle-off-circle","toggle-on","toggle-on-circle","trade","transaction-minus","translate","transmit","transmit-sqaure-2","transmit-square","trash","trash-2","trash-2-iconsax","trash-iconsax","tree","trello","trend-down","trend-up","trending-up","trending-up-iconsax","triangle","triangle-iconsax","triangle-logo","trontron","truck","truck-fast","truck-remove","truck-tick","truck-time","trush-square","twitch","two-page","two-page-iconsax","ui-8","unlimited","unlock","upload","upload-iconsax","usd-coin","user","user-add","user-check","user-check-iconsax","user-cirlce-add","user-edit","user-edit-iconsax","user-iconsax","user-minus","user-minus-iconsax","user-octagon","user-plus","user-plus-iconsax","user-remove","user-search","user-square","user-tag","user-tick","users","users-iconsax","velas","verify","vibe","video","video-add","video-circle","video-horizontal","video-octagon","video-play","video-remove","video-slash","video-square","video-tick","video-time","video-vertical","voice-circle","voice-cricle","voice-square","volume","volume-cross","volume-high","volume-high-iconsax","volume-low","volume-low-1","volume-mute","volume-mute-iconsax","volume-slash","volume-slash-iconsax","volume-up","wallet","wallet-1","wallet-2","wallet-3","wallet-add","wallet-add-1","wallet-check","wallet-minus","wallet-money","wallet-remove","wallet-search","wallet2","wallet2-iconsax","wanchain","wanchain-1","wand-sparkles","wand-sparkles-iconsax","warning-2","warning-2-iconsax","watch","watch-status","weight","weight-meter","whatsapp","whatsapp-iconsax","wifi","wifi-square","wind","wind-2","windows","wing","woman","wrist-clock","x","x-circle","x-circle-iconsax","x-iconsax","xd","xiaomi","xrp","youtube","youtube-iconsax","zap","zap-iconsax","zel","zoom","zoom-in","zoom-in-iconsax","zoom-out","zoom-out-iconsax"]`),bu=`raw-bootstrap`,xu=/* @__PURE__ */ new Map([[`btn`,`AppButton/<app-button>`],[`card`,`AppCard/<app-card>`],[`modal`,`AppModal/<app-modal>`],[`table`,`AppDataTable/<app-data-table>`],[`badge`,`AppBadge/<app-badge> (AppStatusBadge/<app-status-badge> when it shows a status)`],[`alert`,`AppAlert/<app-alert>`],[`form-control`,`AppInput/<app-input>`],[`form-select`,`AppSelect/<app-select>`],[`form-check-input`,`AppCheckbox/<app-checkbox>`],[`pagination`,`AppTablePagination/<app-table-pagination>`],[`nav-tabs`,`AppTabs/<app-tabs>`],[`dropdown-menu`,`AppDropdown/<app-dropdown>`],[`offcanvas`,`AppDrawer/<app-drawer>`],[`breadcrumb`,`AppBreadcrumbs/<app-breadcrumbs>`],[`progress`,`AppProgress/<app-progress>`],[`spinner-border`,`AppSpinner/<app-spinner>`],[`accordion`,`AppAccordion/<app-accordion>`]]),Su=/(?<![\w-])(?:class|className)\s*=\s*/g,Cu=/(?<![\w-])data-bs-(?:toggle\s*=\s*["'](?:modal|dropdown|tooltip|popover|offcanvas)|dismiss\s*=\s*["'](?:modal|offcanvas))["']/g,wu=/<dialog[\s>]|\spopover(?=[\s>/=]|$)/g,Tu=/(["'`])((?:\\[\s\S]|(?!\1)[^\\])*)\1/g;function Eu(e){let t=``,n=null;for(let r=0;r<e.length;r+=1){let i=e.charAt(r),a=e[r+1];if(n)t+=i,i===`\\`&&a!==void 0?(t+=a,r+=1):(i===n||i===`
171
+ `)}function Dl(e){return(e.split(`/`).pop()??``).replace(/\.cshtml$/,``)}function Ol(e,t,n){let r;if(t.startsWith(`@/`)){let n=e.startsWith(`src/`)?0:e.indexOf(`/src/`)+1;if(n===0&&!e.startsWith(`src/`))return null;r=`${e.slice(0,n)}src/${t.slice(2)}`}else if(t.startsWith(`.`))r=p.normalize(p.join(p.dirname(e),t));else return null;return[r,...ll.map(e=>r+e),...ll.map(e=>p.join(r,`index${e}`))].find(e=>n.has(e))??null}function H(e,t,n){if(t===null)return;let r=e.get(t)??/* @__PURE__ */ new Set;r.add(n),e.set(t,r)}function kl(e,t,n){return[...e.get(t)??/* @__PURE__ */ new Set].filter(e=>e!==n).length}function Al(e,t,n){n>=2||e.push({rule:`single-use-component`,file:t,line:1,text:`used by ${n} other file${n===1?``:`s`}`,hint:`move it next to the page that uses it`})}function jl(e){let t=vl.exec(e);return t!==null&&t[1]!==`layout`&&!dl.test(e)&&!fl.test(e)}function Ml(e,t){let n=[...e.get(t)??[]].filter(e=>e!==t);return n.length===1&&jl(n[0]??``)&&kl(e,n[0]??``,n[0]??``)>=2}function Nl(e,t){let n=p.dirname(e);for(;n!==`.`&&!t.has(n);)n=p.dirname(n);return n}function Pl(e){let t=wl.exec(e.split(`
172
+ `,1)[0]??``);return t?.[1]===`single-use-component`?(t[2]??``).trim():null}var Fl=`error-summary-title`,Il=/<app-error-summary(?=[\s/>])/g,Ll=/(?<![\w-])title\s*=\s*(?:"([^"]*)"|'([^']*)')/,Rl=/please\s+(fix|correct)|(fix|correct)\s+the\s+following|the\s+following\s+(errors?|problems?|issues?)|there\s+(is|are|was|were)\s+(an?\s+|some\s+)?(errors?|problems?)/i;function zl(e,t){let n=null;for(let r=t;r<e.length;r+=1){let t=e[r];if(n)t===n&&(n=null);else if(t===`"`||t===`'`)n=t;else if(t===`>`)return r}return e.length}function Bl(e){let t=T(e,`markup`),n=e.split(`
173
+ `),r=[];for(let e of t.matchAll(Il)){let i=Ll.exec(t.slice(e.index,zl(t,e.index)));if(!i)continue;let a=i[1]??i[2]??``;if(a.includes(`@`)||!Rl.test(a))continue;let o=t.slice(0,e.index).split(`
174
+ `).length;r.push({rule:Fl,line:o,text:(n[o-1]??``).trim().slice(0,160),hint:`drop the title: the library error summary writes the standard heading`})}return r}var Vl=`unknown-icon`,Hl=/(?<![\w-])(icon|left-icon|right-icon|leading-icon|trailing-icon|header-icon|title-icon)\s*=\s*"([^"]*)"/g,Ul=/(?<![\w-])(icon|leftIcon|rightIcon|leadingIcon|trailingIcon|headerIcon|titleIcon)\s*[=:]\s*\{?\s*(["'])([^"'`$\\]*)\2/g,Wl=/<app-icon\b[^>]*>/g,Gl=/<AppIcon\b[^>]*>/g,Kl=/(?<![\w-])name\s*=\s*"([^"]*)"/g,ql=/* @__PURE__ */ new Set([`app-alert`,`AppAlert`]),Jl=/\bregisterIcons\s*\(\s*\{/g,Yl=/\bIconRegistry\s*\.\s*Register\s*\(\s*"([^"\\]+)"/g,Xl=/\[\s*`([^`$\\]+)\$\{/g;function Zl(e,t){let n=e.lastIndexOf(`<`,t);return n<0?``:/^<([A-Za-z][\w.-]*)/.exec(e.slice(n))?.[1]??``}function Ql(e,t,n,r=[]){let i=t===`markup`?T(e,`markup`):ge(e),a=e.split(`
175
+ `),o=[],s=(e,t,s=``)=>{if(e===``||/[@{}]/.test(e)||n.has(e)||r.some(t=>e.startsWith(t))||s===`icon`&&e===`none`&&ql.has(Zl(i,t)))return;let c=i.slice(0,t).split(`
176
+ `).length;o.push({rule:Vl,line:c,text:(a[c-1]??``).trim().slice(0,160),hint:`icon "${e}" is not in the library icon map; pick a name from iconNames (AppIcon) or IconMap.Names (Razor), or register it with registerIcons / IconRegistry`})};if(t===`markup`){for(let e of i.matchAll(Hl))s(e[2]??``,e.index,e[1]);for(let e of i.matchAll(Wl))for(let t of e[0].matchAll(Kl))s(t[1]??``,e.index+(t.index??0))}else{for(let e of i.matchAll(Ul))s(e[3]??``,e.index,e[1]);for(let e of i.matchAll(Gl))for(let t of e[0].matchAll(Kl))s(t[1]??``,e.index+(t.index??0))}return o.sort((e,t)=>e.line-t.line),o}function $l(e,t){let n=e.charAt(t),r=t+1;for(;r<e.length;){let t=e.charAt(r);if(t===`\\`)r+=2;else if(t===n||t===`
177
+ `&&n!=="`")return r;else r++}return e.length}function eu(e,t){let n=[],r=0,i=!1;for(let a=t;a<e.length;a++){let t=e.charAt(a);if(t===`"`||t===`'`||t==="`"){let o=$l(e,a);r===1&&i&&t!=="`"&&/^\s*:/.test(e.slice(o+1))&&n.push(e.slice(a+1,o)),i=!1,a=o}else if(t===`{`||t===`[`||t===`(`)r++,i=r===1;else if(t===`}`||t===`]`||t===`)`){if(r--,r===0)break}else if(r===1&&t===`,`)i=!0;else if(r===1&&i&&!/\s/.test(t)){let t=/^[A-Za-z_$][\w$]*/.exec(e.slice(a))?.[0];t!==void 0&&/^\s*[:(,}]/.test(e.slice(a+t.length))&&n.push(t),t!==void 0&&(a+=t.length-1),i=!1}}return n}function tu(e,t){let n=ge(e);if(t===`csharp`)return{names:[...n.matchAll(Yl)].map(e=>e[1]??``),prefixes:[]};let r=[],i=!1;for(let e of n.matchAll(Jl))i=!0,r.push(...eu(n,e.index+e[0].length-1));return{names:r,prefixes:i?[...n.matchAll(Xl)].map(e=>e[1]??``):[]}}var nu=/*#__PURE__*/ JSON.parse(`["aave","activity","add","add-circle","add-square","additem","airdrop","airplane","airplane-square","airpod","airpods","alarm","alert-circle","alert-triangle","align-bottom","align-horizontally","align-left","align-right","align-top","align-vertically","android","ankr","apple","aquarius","archive","archive-add","archive-book","archive-box","archive-minus","archive-slash","archive-tick","arrange-horizontal","arrange-horizontal-circle","arrange-horizontal-square","arrange-vertical","arrange-vertical-circle","arrange-vertical-square","arrow","arrow-circle-down","arrow-circle-down-2","arrow-circle-left","arrow-circle-left-2","arrow-circle-right","arrow-circle-right-2","arrow-circle-up","arrow-circle-up-2","arrow-down","arrow-down-2","arrow-down-3","arrow-down-up","arrow-forward","arrow-forward-square","arrow-left","arrow-left-2","arrow-left-3","arrow-right","arrow-right-2","arrow-right-3","arrow-rotate-left","arrow-rotate-right","arrow-square","arrow-square-down","arrow-square-left","arrow-square-right","arrow-square-up","arrow-swap-horizontal","arrow-swap-vertical","arrow-up","arrow-up-2","arrow-up-3","arrow-up-right","at","attach-circle","attach-square","audio-square","augur","autobrightness","autonio","avalanche","award","back","back-square","backward","backward-10-seconds","backward-15-seconds","backward-5-seconds","backward-item","badge-check","bag","bag-2","bag-cross","bag-cross-1","bag-happy","bag-tick","bag-tick-2","bag-timer","ban","bank","barcode","battery-charging","battery-disable","battery-empty","battery-empty-1","battery-full","be","bell","bezier","bill","binance-coin","binance-usd","bitcoin","bitcoin-card","bitcoin-convert","bitcoin-refresh","blend","blend-2","blogger","bluetooth","bluetooth-2","bluetooth-circle","bluetooth-rectangle","blur","bolt","book","book-1","book-saved","book-square","bookmark","bookmark-2","bootstrap","box","box-1","box-2","box-add","box-remove","box-seam","box-search","box-tick","box-time","briefcase","briefcase-cross","briefcase-tick","briefcase-timer","brifecase-cross","brifecase-tick","brifecase-timer","brodcast","broom","brush","brush-2","brush-3","brush-big","brush-square","bubble","bucket","bucket-circle","bucket-square","bug","building","building-2","building-3","building-4","buildings","buildings-2","buliding","bullseye","bus","buy-crypto","cake","calculator","calendar","calendar-1","calendar-2","calendar-add","calendar-check","calendar-circle","calendar-dots","calendar-edit","calendar-remove","calendar-search","calendar-tick","call","call-add","call-calling","call-incoming","call-minus","call-outgoing","call-received","call-remove","call-slash","camera","camera-slash","candle","candle-2","car","card","card-add","card-coin","card-edit","card-pos","card-receive","card-remove","card-remove-1","card-send","card-slash","card-tick","card-tick-1","cardano","cards","cash-stack","category","category-2","cd","celo","celsius","chainlink","chart","chart-1","chart-2","chart-21","chart-circle","chart-column","chart-fail","chart-square","chart-success","chat","chat-dots","check","check-check","check-circle","chemical-glass","chevron-down","chevron-left","chevron-right","chevron-up","chevrons-left","chevrons-right","chevrons-up-down","chrome","circle","circle-help","civic","clipboard","clipboard-check","clipboard-close","clipboard-export","clipboard-import","clipboard-text","clipboard-tick","clock","close-circle","close-square","cloud","cloud-add","cloud-change","cloud-connection","cloud-cross","cloud-drizzle","cloud-fog","cloud-lightning","cloud-minus","cloud-notif","cloud-plus","cloud-remove","cloud-snow","cloud-sunny","code","code-1","code-circle","coffee","coin","coin-1","coins","color-swatch","colorfilter","colors-square","command","command-square","comment","component","computing","contact","convert","convert-3-d-cube","convert-card","convertshape","convertshape-2","copy","copy-success","copyright","courthouse","cpu","cpu-charge","cpu-setting","creative-commons","credit-card","crop","crown","crown-1","cup","cursor","cut","dai","danger","dash","data","data-2","decred","dent","designtools","device-message","devices","diagram","diagram-3","diamonds","direct","direct-down","direct-inbox","direct-left","direct-normal","direct-notification","direct-right","direct-send","direct-up","directbox-default","directbox-notif","directbox-receive","directbox-send","discount-circle","discount-shape","discover","dislike","display","document","document-cloud","document-code","document-code-2","document-copy","document-download","document-favorite","document-filter","document-forward","document-like","document-previous","document-sketch","document-text","document-text-1","document-upload","dollar-circle","dollar-square","download","dribbble","driver","driver-2","driver-refresh","driving","drop","dropbox","edit","edit-2","educare","electricity","element","element-2","element-3","element-4","element-equal","element-plus","emercoin","emoji-happy","emoji-normal","emoji-sad","emoji-smile","empty-wallet","empty-wallet-add","empty-wallet-change","empty-wallet-remove","empty-wallet-tick","empty-wallet-time","enjin-coin","eos","eraser","eraser-square","ethereum","ethereum-classic","export","export-circle","export-curve","export-square","external-drive","external-link","eye","eye-off","eye-slash","facebook","factory","fatrows","favorite-chart","figma","figma-1","file-plus-2","file-text","files","filter","filter-add","filter-edit","filter-remove","filter-search","filter-square","filter-tick","finger-cricle","finger-scan","firstline","flag","flag-2","flame","flash","flash-circle","flash-slash","flashy","folder","folder-2","folder-add","folder-cloud","folder-connection","folder-cross","folder-favorite","folder-kanban","folder-minus","folder-open","folder-plus","forbidden","forbidden-2","format-circle","format-square","forward","forward-10-seconds","forward-15-seconds","forward-5-seconds","forward-item","framer","ftx-token","gallery","gallery-add","gallery-edit","gallery-export","gallery-favorite","gallery-import","gallery-remove","gallery-slash","gallery-tick","game","gameboy","gas-station","gauge","gemini","gemini-2","ghost","gift","github","glass","global","global-edit","global-refresh","global-search","globe","globe2","google","google-drive","google-play","gps","gps-slash","grammerly","graph","grid","grid-1","grid-2","grid-3","grid-4","grid-5","grid-6","grid-7","grid-8","grid-9","grid-edit","grid-eraser","grid-lock","hamberger-menu","hamburger-menu","hand","happyemoji","hard-hat","harmony","hashtag","hashtag-down","hashtag-square","hashtag-up","headphone","headphones","health","heart","heart-add","heart-circle","heart-edit","heart-remove","heart-search","heart-slash","heart-tick","hedera-hashgraph","hex","hierarchy","hierarchy-2","hierarchy-3","hierarchy-square","hierarchy-square-2","hierarchy-square-3","history","home","home-2","home-3","home-hashtag","home-trend-down","home-trend-up","home-wifi","hospital","house","house-2","html-3","html-5","huobi-token","i-24-support","i-3-d-cube-scan","i-3-d-rotate","i-3-d-square","i-3-dcube","i-3-square","icon","illustrator","image","import","import-circle","import-curve","import-square","inbox","info","info-circle","information","instagram","iost","java-script","js","judge","kanban","key","key-square","keyboard","keyboard-open","kyber-network","lamp","lamp-charge","lamp-on","lamp-slash","language-circle","language-square","layer","layout-dashboard","layout-grid","layout-maximize","level","lifebuoy","lightbulb","like","like-1","like-dislike","like-shapes","like-tag","link","link-1","link-2","link-21","link-circle","link-square","linkedin","list","litecoin","location","location-add","location-cross","location-discover","location-minus","location-slash","location-tick","lock","lock-1","lock-circle","lock-slash","log-out","login","login-curve","logout","logout-curve","lovely","magic-star","magicpen","mail","main-component","maker","man","map","map-1","map-pin","mask","mask-left","mask-right","math","maximize","maximize-1","maximize-2","maximize-3","maximize-4","maximize-circle","medal","medal-star","menu","menu-board","message","message-2","message-add","message-add-1","message-circle","message-edit","message-favorite","message-minus","message-notif","message-programming","message-question","message-remove","message-search","message-square","message-text","message-text-1","message-tick","message-time","messages","messages-1","messages-2","messages-3","messenger","microphone","microphone-2","microphone-slash","microphone-slash-1","microscope","microsoft","milk","mini-music-sqaure","minus","minus-circle","minus-cirlce","minus-square","mirror","mirroring-screen","mobile","mobile-programming","monero","money","money-2","money-3","money-4","money-add","money-archive","money-change","money-forbidden","money-receive","money-recive","money-remove","money-send","money-tick","money-time","moneys","monitor","monitor-mobbile","monitor-recorder","moon","more","more-2","more-circle","more-horizontal","more-square","mouse","mouse-circle","mouse-square","music","music-circle","music-dashboard","music-filter","music-library-2","music-play","music-playlist","music-square","music-square-add","music-square-remove","music-square-search","musicnote","nebulas","nem","nexo","next","note","note-1","note-add","note-favorite","note-remove","note-square","note-text","notepad","notepad-2","notification","notification-1","notification-bing","notification-circle","notification-favorite","notification-status","ocean-protocol","okb","okru","omega-circle","omega-square","ontology","paintbucket","palette","panel-left-close","panel-left-open","paperclip","paperclip-2","password-check","path-tool","path-tool-2","path-tool-square","pause","pause-circle","paypal","pen-add","pen-close","pen-remove","pen-tool","pen-tool-2","pencil","people","percentage-circle","percentage-square","personalcard","pet","pharagraphspacing","phone","photoshop","picture-frame","play","play-add","play-circle","play-cricle","play-remove","plug","plus","plus-circle","pointer","polkadot","polygon","polyswarm","presentation-chart","presention-chart","previous","printer","printer-slash","profile","profile-2-user","profile-add","profile-circle","profile-delete","profile-remove","profile-tick","programming-arrow","programming-arrows","python","quant","quote-down","quote-down-circle","quote-down-square","quote-up","quote-up-circle","quote-up-square","radar","radar-2","radio","ram","ram-2","rank","ranking","receipt","receipt-1","receipt-2","receipt-21","receipt-add","receipt-discount","receipt-disscount","receipt-edit","receipt-item","receipt-minus","receipt-search","receipt-square","receipt-text","receive","receive-square","receive-square-2","record","record-circle","recovery-convert","reddit","refresh","refresh-2","refresh-circle","refresh-cw","refresh-left-square","refresh-right-square","refresh-square","repeat","repeat-circle","repeate-music","repeate-one","reserve","robot","rotate-ccw","rotate-cw","rotate-left","rotate-right","route-square","routing","routing-2","row-horizontal","row-vertical","ruler","ruler-pen","safe-home","sagittarius","save-2","save-add","save-minus","save-remove","scan","scan-barcode","scanner","scanning","scissor","screenmirroring","scroll","search","search-favorite","search-favorite-1","search-normal","search-normal-1","search-status","search-status-1","search-zoom-in","search-zoom-in-1","search-zoom-out","search-zoom-out-1","security","security-card","security-safe","security-time","security-user","send","send-2","server","setting","setting-2","setting-3","setting-4","setting-5","settings","shapes","shapes-1","share","share-2","shield","shield-check","shield-cross","shield-lock","shield-plus","shield-search","shield-security","shield-slash","shield-tick","ship","shop","shop-add","shop-remove","shopping-bag","shopping-cart","shuffle","shutterstock","siacoin","sidebar-bottom","sidebar-left","sidebar-right","sidebar-top","signpost","simcard","simcard-1","simcard-2","size","slack","slash","slider","slider-horizontal","slider-horizontal-1","slider-vertical","slider-vertical-1","smallcaps","smart-car","smart-home","smileys","sms","sms-edit","sms-notification","sms-search","sms-star","sms-tracking","snapchat","snowflake","solana","sort","sound","sparkles","speaker","speedometer","spotify","stacks","star","star-1","star-slash","stars","status","status-up","stellar","sticker","stickynote","stop","stop-circle","story","strongbox","strongbox-2","subtitle","sun","sun-1","sun-fog","table-document","table-lamp","tag","tag-2","tag-cross","tag-right","tag-user","task","task-square","teacher","telephone","tenx","tether","text","text-block","text-bold","text-italic","text-underline","textalign-center","textalign-justifycenter","textalign-justifyleft","textalign-justifyright","textalign-left","textalign-right","the-graph","theta","thorchain","thumbs-down","thumbs-up","tick-circle","tick-square","ticket","ticket-2","ticket-discount","ticket-expired","ticket-star","timer","timer-1","timer-pause","timer-start","toggle-off","toggle-off-circle","toggle-on","toggle-on-circle","trade","transaction-minus","translate","transmit","transmit-sqaure-2","transmit-square","trash","trash-2","tree","trello","trend-down","trend-up","trending-up","triangle","triangle-logo","trontron","truck","truck-fast","truck-remove","truck-tick","truck-time","trush-square","twitch","two-page","ui-8","unlimited","unlock","upload","usd-coin","user","user-add","user-check","user-cirlce-add","user-edit","user-minus","user-octagon","user-plus","user-remove","user-search","user-square","user-tag","user-tick","users","velas","verify","vibe","video","video-add","video-circle","video-horizontal","video-octagon","video-play","video-remove","video-slash","video-square","video-tick","video-time","video-vertical","voice-circle","voice-cricle","voice-square","volume","volume-cross","volume-high","volume-low","volume-low-1","volume-mute","volume-slash","volume-up","wallet","wallet-1","wallet-2","wallet-3","wallet-add","wallet-add-1","wallet-check","wallet-minus","wallet-money","wallet-remove","wallet-search","wallet2","wanchain","wanchain-1","wand-sparkles","warning-2","watch","watch-status","weight","weight-meter","whatsapp","wifi","wifi-square","wind","wind-2","windows","wing","woman","wrist-clock","x","x-circle","xd","xiaomi","xrp","youtube","zap","zel","zoom","zoom-in","zoom-out"]`),ru=/\.([A-Za-z_][\w-]*)/g,iu=/[^\s>+~,]+/g,au=/^\s*(?:,|$)/;function*ou(e){let t=0;for(let n=0;n<e.length;n+=1){let r=e[n];r===`{`?(yield{text:e.slice(t,n),index:t},t=n+1):(r===`}`||r===`;`)&&(t=n+1)}}function su(e,t,n){let r=T(e,t),i=e.split(`
178
+ `),a=[];for(let e of ou(r)){let t=lu(e.text,n);if(!t)continue;let o=r.slice(0,e.index+t.index).split(`
179
+ `).length;a.push({rule:`library-class-restyle`,line:o,text:(i[o-1]??``).trim().slice(0,160),hint:`restyles library class .${t.name}; use a library prop or token, or a product class`})}return a}function cu(e){let t=``,n=0;for(let r of e.matchAll(/:(?:not|has)\(/gi)){let i=r.index;if(i<n)continue;let a=0,o=-1;for(let t=i+r[0].length-1;t<e.length&&o===-1;t+=1)e[t]===`(`?a+=1:e[t]===`)`&&(--a,a===0&&(o=t));o!==-1&&(t+=e.slice(n,i)+`*`.repeat(o+1-i),n=o+1)}return t+e.slice(n)}function lu(e,t){let n=cu(e);for(let e of n.matchAll(iu))if(au.test(n.slice(e.index+e[0].length))){for(let n of e[0].matchAll(ru))if(t.has(n[1]??``))return{index:e.index+n.index,name:n[1]??``}}return null}var uu=/*#__PURE__*/ JSON.parse(`["accordion","accordion-body","accordion-button","accordion-collapse","accordion-flush","accordion-header","accordion-item","alert","alert-accent","alert-action","alert-borderless","alert-content","alert-danger","alert-dark","alert-dismissible","alert-has-action","alert-has-icon","alert-heading","alert-icon","alert-icon-image","alert-info","alert-lg","alert-light","alert-link","alert-neutral","alert-primary","alert-secondary","alert-sm","alert-stack","alert-success","alert-warning","app-content","app-footer","app-main","app-nav-badge","app-nav-caret","app-nav-group","app-nav-group-label","app-nav-icon","app-nav-item","app-nav-sub","app-nav-sub-inner","app-nav-subitem","app-nav-text","app-nav-trailing","app-phone-number-input","app-shell","app-sidebar","app-sidebar-brand","app-sidebar-brand-text","app-sidebar-foot","app-sidebar-scroll","app-sidebar-start","app-sidebar-start-compact","app-sidebar-toggle","app-tab","app-tab-count","app-tab-icon","app-tab-img","app-tab-indicator","app-tabs","app-tabs-fitted","app-tabs-group","app-tabs-lg","app-tabs-pills","app-tabs-scroll-btn","app-tabs-sm","app-tabs-vertical","app-tabs-wrap","app-topbar","app-topbar-end","app-topbar-menu","app-topbar-start","badge","badge-danger","badge-dot","badge-info","badge-primary","badge-success","badge-warning","breadcrumb","breadcrumb-item","btn","btn-anim-expand","btn-anim-fill","btn-anim-glow","btn-anim-none","btn-anim-roll","btn-anim-sheen","btn-check","btn-close","btn-close-white","btn-danger","btn-dark","btn-ghost-danger","btn-ghost-info","btn-ghost-neutral","btn-ghost-primary","btn-ghost-success","btn-ghost-warning","btn-glass","btn-group","btn-group-lg","btn-group-sm","btn-group-vertical","btn-icon","btn-info","btn-lg","btn-light","btn-link","btn-link-danger","btn-link-info","btn-link-neutral","btn-link-primary","btn-link-success","btn-link-warning","btn-neutral","btn-outline-danger","btn-outline-dark","btn-outline-info","btn-outline-light","btn-outline-neutral","btn-outline-primary","btn-outline-secondary","btn-outline-success","btn-outline-warning","btn-pill","btn-pill-sm","btn-primary","btn-radius-xl","btn-secondary","btn-sm","btn-soft-danger","btn-soft-info","btn-soft-neutral","btn-soft-primary","btn-soft-success","btn-soft-warning","btn-static","btn-success","btn-toolbar","btn-warning","btn-xl","card","card-accent","card-body","card-clickable","card-close","card-compact","card-constrained","card-divided","card-elevated","card-flush","card-footer","card-group","card-header","card-header-actions","card-header-icon","card-header-main","card-header-pills","card-header-tabs","card-header-titles","card-img","card-img-bottom","card-img-overlay","card-img-top","card-lifted","card-link","card-media","card-muted","card-outlined","card-pad-lg","card-pad-none","card-pad-sm","card-subtitle","card-text","card-title","dropdown","dropdown-center","dropdown-divider","dropdown-header","dropdown-item","dropdown-item-text","dropdown-menu","dropdown-menu-dark","dropdown-menu-end","dropdown-menu-lg-end","dropdown-menu-lg-start","dropdown-menu-md-end","dropdown-menu-md-start","dropdown-menu-sm-end","dropdown-menu-sm-start","dropdown-menu-start","dropdown-menu-xl-end","dropdown-menu-xl-start","dropdown-menu-xxl-end","dropdown-menu-xxl-start","dropdown-search-icon","dropdown-search-input","dropdown-search-wrapper","dropdown-toggle","dropdown-toggle-split","form-check","form-check-circle","form-check-inline","form-check-input","form-check-label","form-check-lg","form-check-reverse","form-check-sm","form-control","form-control-color","form-control-lg","form-control-plaintext","form-control-sm","form-control-xl","form-label","form-select","form-select-lg","form-select-sm","form-text","input-group","input-group-lg","input-group-sm","input-group-text","list-group","list-group-flush","list-group-horizontal","list-group-horizontal-lg","list-group-horizontal-md","list-group-horizontal-sm","list-group-horizontal-xl","list-group-horizontal-xxl","list-group-item","list-group-item-action","list-group-item-danger","list-group-item-dark","list-group-item-info","list-group-item-light","list-group-item-primary","list-group-item-secondary","list-group-item-success","list-group-item-warning","list-group-numbered","modal","modal-backdrop","modal-body","modal-content","modal-dialog","modal-dialog-centered","modal-dialog-scrollable","modal-footer","modal-fullscreen","modal-fullscreen-lg-down","modal-fullscreen-md-down","modal-fullscreen-sm-down","modal-fullscreen-xl-down","modal-fullscreen-xxl-down","modal-header","modal-lg","modal-sm","modal-static","modal-title","modal-xl","modal-xxl","nav-link","nav-pills","nav-tabs","offcanvas","offcanvas-backdrop","offcanvas-body","offcanvas-bottom","offcanvas-end","offcanvas-header","offcanvas-lg","offcanvas-md","offcanvas-sm","offcanvas-start","offcanvas-title","offcanvas-top","offcanvas-xl","offcanvas-xxl","page-item","page-link","pagination","pagination-lg","pagination-sm","progress","progress-bar","progress-bar-animated","progress-bar-striped","progress-sm","progress-stacked","spinner-border","spinner-border-sm","table","table-active","table-bordered","table-borderless","table-danger","table-dark","table-group-divider","table-hover","table-info","table-ledger","table-light","table-pagination","table-primary","table-responsive","table-responsive-lg","table-responsive-md","table-responsive-sm","table-responsive-xl","table-responsive-xxl","table-secondary","table-sm","table-striped","table-striped-columns","table-success","table-warning","table-wrap","wui-accordion","wui-accordion-body","wui-accordion-count","wui-accordion-flat","wui-accordion-icon","wui-accordion-item","wui-accordion-panel","wui-accordion-trigger","wui-account-switcher","wui-account-switcher-badge","wui-account-switcher-label","wui-account-switcher-list","wui-account-switcher-option","wui-account-switcher-option-name","wui-account-switcher-option-note","wui-account-switcher-option-text","wui-account-switcher-tick","wui-action-icon-file","wui-addon","wui-addon-group","wui-addon-group-lg","wui-addon-group-sm","wui-addon-group-xl","wui-attach-error","wui-attach-progress","wui-auth","wui-auth-aside","wui-auth-body","wui-auth-footer","wui-auth-logo","wui-auth-main","wui-auth-panel","wui-auth-split","wui-banner","wui-banner-action","wui-banner-body","wui-banner-danger","wui-banner-dismiss","wui-banner-has-action","wui-banner-icon","wui-banner-info","wui-banner-neutral","wui-banner-success","wui-banner-warning","wui-bell-body","wui-bell-count","wui-bell-dot","wui-bell-foot","wui-bell-head","wui-bell-icon","wui-bell-item","wui-bell-item-read","wui-bell-item-title","wui-bell-list","wui-bell-markall","wui-bell-menu","wui-bell-state","wui-bell-title","wui-bell-trigger","wui-bell-when","wui-bordered","wui-brand-dark","wui-brand-has-mark","wui-brand-light","wui-brand-link","wui-brand-logo","wui-brand-mark","wui-brand-mark-only","wui-brand-themed","wui-breadcrumb-collapse","wui-breadcrumb-collapsible","wui-breadcrumb-more","wui-breadcrumb-more-toggle","wui-breadcrumb-nowrap","wui-btn-group","wui-btn-group-full","wui-btn-pin-end","wui-btn-pin-icon","wui-btn-roll","wui-btn-roll-ico","wui-btn-roll-ico__next","wui-btn-roll__a","wui-btn-roll__b","wui-btn-shape-pill","wui-btn-shape-sharp","wui-calendar-chip","wui-calendar-chip-time","wui-calendar-chip-title","wui-calendar-event-danger","wui-calendar-event-info","wui-calendar-event-neutral","wui-calendar-event-primary","wui-calendar-event-success","wui-calendar-event-warning","wui-calendar-fallback","wui-calendar-nav","wui-calendar-nav-btn","wui-calendar-stack","wui-calendar-status","wui-calendar-status-text","wui-calendar-surface","wui-calendar-title","wui-calendar-today-btn","wui-calendar-toolbar","wui-calendar-view-btn","wui-calendar-views","wui-carousel","wui-carousel-arrow","wui-carousel-dot","wui-carousel-dots","wui-carousel-pause","wui-carousel-pause-icon","wui-carousel-pause-text","wui-carousel-slide","wui-carousel-stage","wui-carousel-track","wui-cell","wui-cell-end","wui-cell-mono","wui-cell-numeric","wui-cell-primary","wui-cell-secondary","wui-chart-canvas","wui-chart-card","wui-chart-card-legend-off","wui-chart-card-legend-tool","wui-chart-card-retry","wui-chart-card-tool","wui-chart-legend","wui-chart-legend-item","wui-chart-legend-label","wui-chart-legend-swatch","wui-chart-legend-swatch-line","wui-chart-num","wui-chart-skeleton","wui-chart-state","wui-chart-state-text","wui-chart-surface","wui-chart-table","wui-chart-table-note","wui-chart-table-wrap","wui-chart-tooltip","wui-chart-tooltip-body","wui-chart-tooltip-foot","wui-chart-tooltip-label","wui-chart-tooltip-row","wui-chart-tooltip-swatch","wui-chart-tooltip-swatch-line","wui-chart-tooltip-title","wui-chart-tooltip-value","wui-check","wui-chip-count","wui-chip-group","wui-chip-group-nowrap","wui-choice-chip-solid","wui-cmd-back","wui-cmd-card","wui-cmd-crumb","wui-cmd-crumbs","wui-cmd-empty","wui-cmd-footer","wui-cmd-group","wui-cmd-group-label","wui-cmd-input","wui-cmd-item","wui-cmd-item-chevron","wui-cmd-item-desc","wui-cmd-item-icon","wui-cmd-item-label","wui-cmd-item-meta","wui-cmd-item-text","wui-cmd-list","wui-cmd-mark","wui-cmd-page","wui-cmd-recents","wui-cmd-search","wui-cmd-search-icon","wui-cmd-spinner","wui-cmd-tabs","wui-cmd-trail","wui-code-bar","wui-code-block","wui-code-copy","wui-code-copy-icon","wui-code-line","wui-code-pre","wui-code-source","wui-code-t-attr","wui-code-t-comment","wui-code-t-function","wui-code-t-keyword","wui-code-t-literal","wui-code-t-number","wui-code-t-punct","wui-code-t-string","wui-code-t-tag","wui-code-t-type","wui-code-t-variable","wui-code-title","wui-code-view","wui-col-grow","wui-col-hidden","wui-col-resizable","wui-col-resize","wui-col-span-2","wui-col-span-3","wui-col-span-full","wui-color-field-lg","wui-color-field-sm","wui-color-field-xl","wui-cols-2","wui-cols-3","wui-cols-4","wui-column-menu","wui-column-menu-item","wui-column-menu-title","wui-comment--internal","wui-comment--mine","wui-comment-action","wui-comment-actions","wui-comment-attachment","wui-comment-attachment-size","wui-comment-attachments","wui-comment-author","wui-comment-avatar","wui-comment-composer","wui-comment-composer-avatar","wui-comment-composer-inline","wui-comment-confirm","wui-comment-confirm-text","wui-comment-edited","wui-comment-editor","wui-comment-empty","wui-comment-error","wui-comment-form-actions","wui-comment-head","wui-comment-internal-badge","wui-comment-list","wui-comment-main","wui-comment-reactions","wui-comment-replies","wui-comment-reply","wui-comment-row","wui-comment-text","wui-comment-text--markdown","wui-comment-text-deleted","wui-comment-thread","wui-comment-thread--conversation","wui-comment-time","wui-compare-center","wui-compare-code","wui-compare-group","wui-compare-group-row","wui-compare-nowrap","wui-compare-plain","wui-compare-relaxed","wui-compare-scroll","wui-compare-scroll-table","wui-compare-state","wui-compare-state-no","wui-compare-state-partial","wui-compare-state-warn","wui-compare-state-yes","wui-compare-sticky-first","wui-compare-sticky-head","wui-confirm","wui-confirm-actions","wui-confirm-body","wui-confirm-content","wui-confirm-icon","wui-confirm-msg","wui-confirm-plain","wui-confirm-title","wui-consent-banner-accept","wui-consent-banner-actions","wui-consent-banner-category","wui-consent-banner-category-description","wui-consent-banner-description","wui-consent-banner-heading","wui-consent-banner-panel","wui-consent-banner-policy","wui-consent-banner-reject","wui-consent-banner-save","wui-consent-banner-settings","wui-consent-banner-settings-toggle","wui-context-menu-chevron","wui-context-menu-hint","wui-context-menu-panel","wui-context-menu-search","wui-context-menu-sub","wui-context-menu-subpanel","wui-context-menu-tick","wui-control","wui-control-group","wui-control-label","wui-crop-controls","wui-crop-frame","wui-crop-frame--round","wui-crop-handle","wui-crop-handle--ne","wui-crop-handle--nw","wui-crop-handle--se","wui-crop-handle--sw","wui-crop-img","wui-crop-preview","wui-crop-previews","wui-crop-previews--round","wui-crop-stage","wui-crop-toolbtn","wui-crop-tools","wui-crop-zoom","wui-crop-zoombtn","wui-dashboard-cell","wui-dashboard-cell-3","wui-dashboard-cell-4","wui-dashboard-cell-6","wui-dashboard-cell-8","wui-dashboard-cell-fifth","wui-dashboard-grid","wui-daterange-main","wui-daterange-pop--presets","wui-daterange-preset","wui-daterange-presets","wui-descs-col-4","wui-descs-emphasis","wui-descs-icon","wui-descs-link","wui-descs-list","wui-descs-span-1","wui-descs-span-10","wui-descs-span-11","wui-descs-span-12","wui-descs-span-2","wui-descs-span-3","wui-descs-span-4","wui-descs-span-5","wui-descs-span-6","wui-descs-span-7","wui-descs-span-8","wui-descs-span-9","wui-descs-summary","wui-detail-pane","wui-drawer","wui-drawer-body","wui-drawer-close","wui-drawer-discard","wui-drawer-discard-text","wui-drawer-discarding","wui-drawer-footer","wui-drawer-grip","wui-drawer-handle","wui-drawer-header","wui-drawer-headtext","wui-drawer-panel","wui-drawer-subtitle","wui-drawer-title","wui-drawer-title-ic","wui-drop-tray","wui-dropdown-empty","wui-dropdown-form","wui-dropdown-item-body","wui-dropdown-item-desc","wui-dropdown-item-disabled","wui-dropdown-menu-fit","wui-dropdown-menu-lg","wui-dropdown-menu-md","wui-dropdown-menu-searchable","wui-dropdown-menu-sm","wui-dropdown-search","wui-dropdown-search-input","wui-dropdown-trigger","wui-dropdown-trigger-neutral","wui-due-date","wui-due-date-danger","wui-due-date-empty","wui-due-date-warning","wui-empty-illustration","wui-empty-illustration-custom","wui-empty-state-table","wui-entry-grid","wui-entry-grid-add","wui-entry-grid-bar","wui-entry-grid-detail","wui-entry-grid-dot","wui-entry-grid-empty","wui-entry-grid-error","wui-entry-grid-footer","wui-entry-grid-group","wui-entry-grid-hint","wui-entry-grid-row","wui-entry-grid-row-failed","wui-entry-grid-scroll","wui-entry-grid-scrolls","wui-entry-grid-status","wui-entry-grid-table","wui-error-summary","wui-error-summary-list","wui-error-summary-title","wui-expand-cell","wui-expand-toggle","wui-field-busy","wui-field-message","wui-file-busy","wui-file-input-button-field","wui-file-tile","wui-file-tile-ext","wui-file-tile-meta","wui-file-tile-name","wui-file-tile-text","wui-file-tiles","wui-file-viewer-actions","wui-file-viewer-audio-art","wui-file-viewer-body","wui-file-viewer-canvas","wui-file-viewer-center","wui-file-viewer-controls","wui-file-viewer-divider","wui-file-viewer-download","wui-file-viewer-end","wui-file-viewer-fullscreen","wui-file-viewer-group","wui-file-viewer-hit","wui-file-viewer-hit-current","wui-file-viewer-image","wui-file-viewer-image-scroll","wui-file-viewer-image-stage","wui-file-viewer-links","wui-file-viewer-menu","wui-file-viewer-menu-tick","wui-file-viewer-name","wui-file-viewer-page","wui-file-viewer-page-input","wui-file-viewer-page-total","wui-file-viewer-pages","wui-file-viewer-panning","wui-file-viewer-player","wui-file-viewer-player-audio","wui-file-viewer-print-frame","wui-file-viewer-row","wui-file-viewer-scroll","wui-file-viewer-search","wui-file-viewer-search-count","wui-file-viewer-search-field","wui-file-viewer-seek","wui-file-viewer-sheet","wui-file-viewer-skeleton","wui-file-viewer-slot","wui-file-viewer-speed","wui-file-viewer-stage","wui-file-viewer-start","wui-file-viewer-status","wui-file-viewer-text","wui-file-viewer-thumb","wui-file-viewer-thumb-frame","wui-file-viewer-thumb-no","wui-file-viewer-thumbs","wui-file-viewer-time","wui-file-viewer-toolbar","wui-file-viewer-video","wui-file-viewer-view-end","wui-file-viewer-volume","wui-file-viewer-zoom","wui-filter-bar","wui-filter-bar--folded","wui-filter-chip-inline","wui-filter-count-desktop","wui-filter-count-phone","wui-filter-facet","wui-filter-form","wui-filter-more","wui-filter-more-head","wui-filter-more-panel","wui-filter-more-panel-end","wui-filter-more-trigger","wui-filter-popover","wui-filter-popover-field","wui-filter-popover-foot","wui-filter-popover-grid","wui-filter-popover-head","wui-filter-popover-more","wui-filter-popover-note","wui-filter-popover-panel","wui-filter-popover-title","wui-filter-popover-trigger","wui-flag","wui-float-above","wui-floating-btn","wui-floating-btn--lg","wui-floating-btn--secondary","wui-floating-btn--sm","wui-floating-stack","wui-floating-stack-item","wui-floating-stack-item--primary","wui-floating-stack-item--secondary","wui-force-active","wui-force-focus","wui-force-hover","wui-form-cols-1","wui-form-cols-10","wui-form-cols-11","wui-form-cols-12","wui-form-cols-2","wui-form-cols-3","wui-form-cols-4","wui-form-cols-5","wui-form-cols-6","wui-form-cols-7","wui-form-cols-8","wui-form-cols-9","wui-form-compact","wui-form-inline","wui-form-labels-start","wui-form-row-keep","wui-form-rule-none","wui-form-section","wui-form-section-head","wui-form-section-title","wui-form-side","wui-form-title-display","wui-formula-label","wui-formula-note","wui-formula-result","wui-formula-sign","wui-formula-step","wui-formula-step-total","wui-formula-steps","wui-formula-working","wui-gantt","wui-gantt-bar","wui-gantt-bar-label","wui-gantt-bar-progress","wui-gantt-cell","wui-gantt-cell-weekend","wui-gantt-count","wui-gantt-deps","wui-gantt-details","wui-gantt-grid","wui-gantt-group","wui-gantt-group-summary","wui-gantt-group-toggle","wui-gantt-head","wui-gantt-item","wui-gantt-label","wui-gantt-label-surface","wui-gantt-lane","wui-gantt-legend","wui-gantt-legend-note","wui-gantt-milestone","wui-gantt-nav","wui-gantt-plot","wui-gantt-row","wui-gantt-scale","wui-gantt-scroller","wui-gantt-skeleton","wui-gantt-state","wui-gantt-swatch","wui-gantt-table","wui-gantt-table-cell","wui-gantt-table-group","wui-gantt-table-row","wui-gantt-tier","wui-gantt-tier-bottom","wui-gantt-tier-top","wui-gantt-today","wui-gantt-today-flag","wui-gantt-toolbar","wui-gantt-weekend","wui-grid","wui-grid-lg-2","wui-grid-lg-3","wui-grid-lg-4","wui-grid-md-2","wui-grid-md-3","wui-grid-md-4","wui-group-cell","wui-group-count","wui-group-label","wui-group-row","wui-group-toggle","wui-has-value-avatar","wui-hidden-from-lg","wui-hidden-from-md","wui-hidden-from-sm","wui-hidden-from-xl","wui-hover-card-loading","wui-hover-card-panel","wui-hover-card-trigger","wui-icon","wui-icon-tip","wui-ill-accent","wui-ill-accent-line","wui-ill-card","wui-ill-danger","wui-ill-danger-fill","wui-ill-danger-line","wui-ill-dash","wui-ill-ink","wui-ill-mute","wui-ill-soft","wui-ill-thick","wui-illustration","wui-image-picker","wui-image-picker-avatar","wui-image-picker-buttons","wui-image-picker-buttons-actions","wui-image-picker-buttons-badge","wui-image-picker-buttons-camera","wui-image-picker-buttons-face","wui-image-picker-buttons-img","wui-image-picker-buttons-placeholder","wui-image-picker-field","wui-image-picker-field-inline","wui-image-picker-field-profile","wui-image-picker-hint","wui-image-picker-img","wui-image-picker-logo","wui-image-picker-meta","wui-image-picker-overlay","wui-image-picker-remove","wui-image-picker-ring","wui-image-picker-rounded","wui-image-picker-row","wui-image-picker-shell","wui-image-picker-square","wui-image-picker-subtitle","wui-image-picker-title","wui-inline-edit","wui-inline-edit--nowrap","wui-inline-edit-display","wui-inline-edit-editor","wui-inline-edit-error","wui-inline-edit-icon","wui-inline-edit-saved","wui-inline-edit-spinner","wui-inline-edit-status","wui-inline-edit-value","wui-input-group","wui-input-leading","wui-input-lg","wui-input-sm","wui-input-trailing","wui-input-underline","wui-input-xl","wui-kanban","wui-kanban-action","wui-kanban-actions","wui-kanban-board","wui-kanban-body","wui-kanban-card","wui-kanban-card-title","wui-kanban-collapse","wui-kanban-column","wui-kanban-count","wui-kanban-dot","wui-kanban-drop-note","wui-kanban-empty","wui-kanban-ghost","wui-kanban-head","wui-kanban-hint","wui-kanban-lock","wui-kanban-more","wui-kanban-summary","wui-kanban-switch","wui-kanban-switch-title","wui-kanban-switcher","wui-kanban-title","wui-kbd","wui-kpi-delta--danger","wui-kpi-delta--neutral","wui-kpi-delta--success","wui-leaving","wui-lightbox","wui-lightbox-bar","wui-lightbox-btn","wui-lightbox-caption","wui-lightbox-count","wui-lightbox-image","wui-lightbox-item","wui-lightbox-nav","wui-lightbox-next","wui-lightbox-overlay","wui-lightbox-prev","wui-lightbox-stage","wui-lightbox-status","wui-lightbox-tools","wui-lightbox-zoomed","wui-link","wui-link--bracket","wui-link--clamp","wui-link--fade","wui-link--glow","wui-link--grow","wui-link--highlight","wui-link--icon","wui-link--lg","wui-link--none","wui-link--rotate","wui-link--shine","wui-link--slide","wui-link--sm","wui-link--static","wui-link--surface-dark","wui-link--underline","wui-link--underline-center","wui-link__ic","wui-link__ic--left","wui-link__ic--right","wui-link__label","wui-list-card-count","wui-list-card-filters","wui-markdown","wui-markdown-citation","wui-markdown-source","wui-mention","wui-mention-empty","wui-mention-input","wui-mention-input-text","wui-mention-menu","wui-mention-option","wui-mention-option-description","wui-mention-option-label","wui-mention-option-photo","wui-mention-option-text","wui-meta-list","wui-metric","wui-metric-label","wui-metric-note","wui-metric-strip","wui-metric-strip-cols-3","wui-metric-strip-cols-4","wui-metric-strip-cols-5","wui-metric-strip-divided","wui-metric-strip-sm","wui-metric-tone-danger","wui-metric-tone-info","wui-metric-tone-success","wui-metric-tone-warning","wui-metric-value","wui-modal","wui-modal-back","wui-modal-body","wui-modal-close","wui-modal-eyebrow","wui-modal-footer","wui-modal-fullscreen","wui-modal-header","wui-modal-header-actions","wui-modal-headicon","wui-modal-heading","wui-modal-headtext","wui-modal-loading","wui-modal-shell","wui-modal-skeleton","wui-modal-skeleton--short","wui-modal-state","wui-modal-state-actions","wui-modal-state-text","wui-modal-state-title","wui-modal-submit-error","wui-modal-subtitle","wui-modal-title","wui-modal-title-serif","wui-money","wui-mono","wui-name-cell","wui-nav-depth-2","wui-nav-depth-3","wui-nav-depth-4","wui-nav-depth-5","wui-nav-depth-6","wui-nav-group-after","wui-nav-group-body","wui-nav-group-caret","wui-nav-group-collapsible","wui-nav-group-folded","wui-nav-group-text","wui-nav-group-toggle","wui-nav-header","wui-nav-list","wui-nav-list-count","wui-nav-list-divider","wui-nav-list-dot","wui-nav-list-icon","wui-nav-list-item","wui-nav-list-label","wui-nav-menu-chevron","wui-nav-menu-item","wui-nav-menu-link","wui-nav-menu-link-desc","wui-nav-menu-link-label","wui-nav-menu-link-text","wui-nav-menu-links","wui-nav-menu-list","wui-nav-menu-panel","wui-nav-menu-toplink","wui-nav-menu-trigger","wui-nav-new","wui-nav-split","wui-nav-split-link","wui-nav-split-toggle","wui-notification-center","wui-notification-center-body","wui-notification-center-count","wui-notification-center-day","wui-notification-center-dot","wui-notification-center-empty","wui-notification-center-foot","wui-notification-center-head","wui-notification-center-icon","wui-notification-center-item","wui-notification-center-item-read","wui-notification-center-item-text","wui-notification-center-item-title","wui-notification-center-items","wui-notification-center-list","wui-notification-center-live","wui-notification-center-markall","wui-notification-center-panel","wui-notification-center-tabs","wui-notification-center-title","wui-notification-center-trigger","wui-notification-center-unread-label","wui-notification-center-when","wui-num-wrap-lg","wui-num-wrap-sm","wui-num-wrap-xl","wui-onboarding","wui-onboarding-bar","wui-onboarding-body","wui-onboarding-card","wui-onboarding-chevron","wui-onboarding-count","wui-onboarding-desc","wui-onboarding-dismiss","wui-onboarding-head","wui-onboarding-label","wui-onboarding-mark","wui-onboarding-restore","wui-onboarding-seg","wui-onboarding-step","wui-onboarding-steps","wui-onboarding-title","wui-onboarding-toggle","wui-opt-avatar","wui-opt-hint","wui-opt-label","wui-opt-name","wui-org-tree","wui-org-tree-canvas","wui-org-tree-children","wui-org-tree-count","wui-org-tree-item","wui-org-tree-match","wui-org-tree-name","wui-org-tree-node","wui-org-tree-overlay","wui-org-tree-role","wui-org-tree-search","wui-org-tree-team","wui-org-tree-text","wui-org-tree-toggle","wui-org-tree-toolbar","wui-overflow","wui-overflow-item","wui-overflow-menu","wui-overflow-more","wui-page-header-actions","wui-page-header-meta-below","wui-page-header-subtitle-inline","wui-page-title-slot","wui-pager-summary","wui-period-month","wui-period-month-label","wui-period-picker","wui-phone-lg","wui-phone-prefix","wui-phone-sm","wui-phone-xl","wui-pin-end","wui-pin-end-edge","wui-pin-start","wui-pin-start-edge","wui-pre-line","wui-prewrap","wui-progress-danger","wui-progress-indeterminate","wui-progress-info","wui-progress-label","wui-progress-labelled","wui-progress-neutral","wui-progress-primary","wui-progress-success","wui-progress-warning","wui-pw-inline","wui-query-bar","wui-query-builder","wui-query-chip","wui-query-empty","wui-query-panel","wui-query-panel-body","wui-query-range","wui-query-row","wui-radio","wui-radio-group","wui-radio-group-card","wui-radio-group-inline","wui-radio-option-desc","wui-rating","wui-rating-fill","wui-rating-glyphs","wui-rating-input","wui-rating-lg","wui-rating-previewing","wui-rating-sm","wui-rating-star","wui-rating-star-full","wui-rating-star-half","wui-rating-star-preview","wui-rating-stars","wui-rating-value","wui-rb-dialog","wui-reaction","wui-reaction-add","wui-reaction-choice","wui-reaction-count","wui-reaction-mine","wui-reaction-picker","wui-record-pager","wui-record-pager-next","wui-record-pager-position","wui-record-pager-prev","wui-relative-time","wui-remote-drawer","wui-remote-drawer-dialog","wui-rich-text-button","wui-rich-text-content","wui-rich-text-empty","wui-rich-text-glyph","wui-rich-text-glyph-bold","wui-rich-text-glyph-italic","wui-rich-text-group","wui-rich-text-link-apply","wui-rich-text-link-cancel","wui-rich-text-link-error","wui-rich-text-link-input","wui-rich-text-link-remove","wui-rich-text-linkbar","wui-rich-text-prose","wui-rich-text-shell","wui-rich-text-toolbar","wui-row-action-inline","wui-row-actions-menu","wui-row-active","wui-row-dragging","wui-row-expanded","wui-row-header","wui-row-link","wui-row-save-error","wui-score-scale","wui-score-scale__ends","wui-score-scale__item","wui-score-scale__item--selected","wui-scroll","wui-scrolled","wui-search-collapsible","wui-search-lg","wui-search-sm","wui-search-toggle","wui-search-xl","wui-section","wui-section-actions","wui-section-call-to-action","wui-section-call-to-action--band","wui-section-center","wui-section-eyebrow","wui-section-eyebrow-danger","wui-section-eyebrow-info","wui-section-eyebrow-neutral","wui-section-eyebrow-pill","wui-section-eyebrow-primary","wui-section-eyebrow-success","wui-section-eyebrow-warning","wui-section-faq","wui-section-faq--split","wui-section-faq-body","wui-section-feature","wui-section-feature-body","wui-section-feature-icon","wui-section-feature-icon-image","wui-section-feature-img","wui-section-feature-text","wui-section-feature-title","wui-section-features","wui-section-features-list","wui-section-features-rows","wui-section-head","wui-section-hero","wui-section-inner","wui-section-lead-consent","wui-section-lead-fields","wui-section-lead-form","wui-section-lead-success","wui-section-lead-text","wui-section-logo","wui-section-logo-caption","wui-section-logo-img","wui-section-logo-stack","wui-section-logo-text","wui-section-logos","wui-section-logos-list","wui-section-media","wui-section-muted","wui-section-pricing","wui-section-subtitle","wui-section-testimonial","wui-section-testimonial-author","wui-section-testimonial-avatar","wui-section-testimonial-name","wui-section-testimonial-quote","wui-section-testimonial-role","wui-section-testimonial-who","wui-section-testimonials-list","wui-section-title","wui-section-title-body","wui-segmented-borderless","wui-segmented-label-full","wui-segmented-label-short","wui-segmented-option-count","wui-select","wui-select-add","wui-select-caret","wui-select-cell","wui-select-check","wui-select-chips","wui-select-clear","wui-select-clear-all","wui-select-control","wui-select-draft","wui-select-empty","wui-select-error","wui-select-footer","wui-select-group","wui-select-hint","wui-select-icon","wui-select-input","wui-select-lg","wui-select-loading","wui-select-menu","wui-select-menu-fixed","wui-select-multi","wui-select-opt-desc","wui-select-opt-meta","wui-select-opt-name","wui-select-option","wui-select-option-rich","wui-select-option-text","wui-select-options","wui-select-placeholder","wui-select-prefix","wui-select-reset","wui-select-search","wui-select-sep","wui-select-sm","wui-select-spinner","wui-select-value","wui-select-value-avatar","wui-select-xl","wui-shell-launcher","wui-shell-top","wui-shell-top-brand","wui-shell-top-nav","wui-shortcut-close","wui-shortcut-group","wui-shortcut-group-title","wui-shortcut-keys","wui-shortcut-legend","wui-shortcut-sheet","wui-shortcut-sheet-head","wui-shortcut-sheet-title","wui-shortcut-toggle","wui-show-more","wui-show-more-body","wui-show-more-toggle","wui-sidebar-foot-links","wui-skeleton-cell","wui-skeleton-lines","wui-skip-link","wui-slider-rail","wui-sort-lead","wui-sortable-active","wui-sortable-body","wui-sortable-dragging","wui-sortable-ghost","wui-sortable-handle","wui-sortable-item","wui-sortable-live","wui-sparkline","wui-spin","wui-spinner","wui-spinner-sm","wui-split-all","wui-split-badge","wui-split-button","wui-split-check","wui-split-chips","wui-split-count","wui-split-empty","wui-split-head","wui-split-head-bulk","wui-split-head-main","wui-split-item","wui-split-item-end","wui-split-item-main","wui-split-item-meta","wui-split-item-title","wui-split-items","wui-split-legend","wui-split-link","wui-split-list","wui-split-menu","wui-split-pane","wui-split-pane-body","wui-split-pane-error","wui-split-pane-head","wui-split-reading","wui-split-skeleton","wui-split-skeleton-meta","wui-split-skeleton-title","wui-split-view","wui-step-done-tone-danger","wui-step-done-tone-info","wui-step-done-tone-primary","wui-step-done-tone-success","wui-step-done-tone-warning","wui-step-size-lg","wui-step-size-sm","wui-step-tile","wui-step-tile-body","wui-step-tile-state","wui-step-tiles","wui-step-tone-danger","wui-step-tone-info","wui-step-tone-primary","wui-step-tone-success","wui-step-tone-warning","wui-stepper-no-connectors","wui-stepper-start","wui-struct-card-filled","wui-struct-card-glyph","wui-struct-card-glyph-on","wui-struct-card-lg","wui-struct-card-no-check","wui-struct-card-sm","wui-struct-card-stacked","wui-support-composer","wui-support-event","wui-support-reply","wui-support-reply-agent","wui-support-reply-body","wui-support-reply-head","wui-support-search","wui-support-subject","wui-support-subject-meta","wui-support-tabs","wui-support-toolbar","wui-tab-label","wui-tabbar","wui-tabbar-badge","wui-tabbar-icon","wui-tabbar-item","wui-tabbar-label","wui-table-compact","wui-table-cozy","wui-table-empty","wui-table-equal-actions","wui-table-error","wui-table-flush","wui-table-link-first","wui-table-pager","wui-table-pagination-sm","wui-table-pagination-standalone","wui-table-refreshing","wui-table-scroll","wui-table-server","wui-table-stack","wui-table-sticky-actions","wui-table-sticky-first","wui-table-striped","wui-table-toolbar","wui-table-toolbar-actions","wui-table-toolbar-all","wui-table-toolbar-bulk","wui-table-toolbar-clear","wui-table-toolbar-count","wui-table-toolbar-filters","wui-table-toolbar-main","wui-text-2xl","wui-text-3xl","wui-text-4xl","wui-text-base","wui-text-lg","wui-text-sm","wui-text-xl","wui-text-xs","wui-theme-switching","wui-theme-toggle","wui-timeline--lg","wui-timeline--sm","wui-timeline--steps","wui-timeline--steps-vertical","wui-timeline-eyebrow","wui-timeline-note--markdown","wui-timepicker-col","wui-timepicker-cols","wui-timepicker-error","wui-timepicker-field","wui-timepicker-toggle","wui-toast","wui-toast--anim-jelly","wui-toast--anim-organic","wui-toast--anim-spring","wui-toast--danger","wui-toast--dragging","wui-toast--info","wui-toast--shape-pill","wui-toast--shape-sharp","wui-toast--success","wui-toast--surface-inverse","wui-toast--warning","wui-toast-action","wui-toast-close","wui-toast-container","wui-toast-content","wui-toast-icon","wui-toast-message","wui-toast-more","wui-toast-progress","wui-toast-task","wui-toast-title","wui-toast-track","wui-toast-track-fill","wui-toast-track-pct","wui-tooltip","wui-tooltip-inverse","wui-topsearch","wui-topsearch-all","wui-topsearch-empty","wui-topsearch-group","wui-topsearch-group-label","wui-topsearch-hit","wui-topsearch-hit-icon","wui-topsearch-hit-sub","wui-topsearch-hit-text","wui-topsearch-hit-title","wui-topsearch-host","wui-topsearch-open","wui-topsearch-panel","wui-topsearch-results","wui-topsearch-row","wui-touch-target","wui-tour-actions","wui-tour-arrow","wui-tour-back","wui-tour-card","wui-tour-end","wui-tour-end-button","wui-tour-end-mark","wui-tour-end-message","wui-tour-end-next","wui-tour-end-title","wui-tour-hint","wui-tour-layer","wui-tour-media","wui-tour-media-toggle","wui-tour-nav","wui-tour-next","wui-tour-pointer","wui-tour-position","wui-tour-progress-bar","wui-tour-progress-segment","wui-tour-skip","wui-tour-spot","wui-tour-text","wui-tour-title","wui-transfer-list","wui-transfer-list-panels","wui-tree","wui-tree-badge","wui-tree-check","wui-tree-group","wui-tree-icon","wui-tree-item","wui-tree-label","wui-tree-picker-check","wui-tree-picker-chosen-group","wui-tree-picker-chosen-label","wui-tree-picker-chosen-row","wui-tree-picker-empty","wui-tree-picker-group","wui-tree-picker-invalid","wui-tree-picker-item","wui-tree-picker-label","wui-tree-picker-nomatch","wui-tree-picker-pane","wui-tree-picker-rail","wui-tree-picker-rail-body","wui-tree-picker-rail-head","wui-tree-picker-remove","wui-tree-picker-row","wui-tree-picker-search","wui-tree-picker-surface","wui-tree-picker-title","wui-tree-picker-toggle","wui-tree-picker-tree","wui-tree-row","wui-tree-row-error","wui-tree-row-selected","wui-tree-spinner","wui-tree-toggle","wui-truncate","wui-truncate-multi","wui-truncate-text","wui-usermenu-caret","wui-usermenu-extra","wui-usermenu-foot","wui-usermenu-head","wui-usermenu-logout","wui-usermenu-menu","wui-usermenu-name","wui-usermenu-role","wui-usermenu-roles","wui-usermenu-roles-label","wui-usermenu-section","wui-usermenu-text","wui-usermenu-trigger","wui-usermenu-trigger-outlined","wui-usermenu-who","wui-virtual-off","wui-virtual-spacer","wui-whats-new","wui-whats-new-body","wui-whats-new-date","wui-whats-new-dot","wui-whats-new-empty","wui-whats-new-entry","wui-whats-new-entry-title","wui-whats-new-image","wui-whats-new-link","wui-whats-new-list","wui-whats-new-name","wui-whats-new-panel","wui-whats-new-title","wui-whats-new-trigger","wui-whats-new-unread","wui-wizard-topbar","wui-wizard-topbar-close","wui-wizard-topbar-count","wui-wizard-topbar-title"]`),du=d(`node_modules`,`@biomejs`,`biome`,`bin`,`biome`),fu=[`.js`,`.mjs`,`.css`],pu=`react.md → Lint: a page script or style beside server-rendered pages passes the shared Biome check like portal code; fix the finding, never raise the recorded count.`,mu=/* @__PURE__ */ new Set([`error`,`warning`,`fatal`]),hu=200,gu=2e5;function _u(e){return fu.includes(u(e).toLowerCase())&&e.split(`/`).slice(0,-1).includes(`wwwroot`)}function vu(e,n){if(n.length===0)return[];let r=d(e,du);if(!t(r))return null;let i=[];for(let t=0;t<n.length;t+=hu){let a=n.slice(t,t+hu),o=v(process.execPath,[r,...yu(a)],{cwd:e,encoding:`utf8`,maxBuffer:268435456,windowsHide:!0}),s=bu(o.stdout??``);if(s===null)throw Error(`webority-repo-checks: Biome's report on the page files could not be read: ${String(o.stderr||o.stdout||``).slice(0,200)}`);for(let e of s){if(!mu.has(e.severity??``))continue;let t=(e.location?.path??``).replaceAll(`\\`,`/`),n=e.location?.start?.line??0;i.push({id:`page-lint:${t}`,line:n,text:`${e.category??`biome`}: ${String(e.message??``)}`.slice(0,160),hint:null})}}return i}function yu(e){return[`check`,`--reporter=json`,`--max-diagnostics=none`,`--colors=off`,`--files-max-size=${gu}`,`--no-errors-on-unmatched`,...e]}function bu(e){let t;try{t=JSON.parse(e)}catch{return null}return typeof t!=`object`||!t||!(`diagnostics`in t)?null:Array.isArray(t.diagnostics)?t.diagnostics:null}var xu=/*#__PURE__*/ JSON.parse(`["aave","activity","activity-iconsax","add","add-circle","add-circle-iconsax","add-iconsax","add-square","additem","airdrop","airplane","airplane-square","airpod","airpods","alarm","alarm-iconsax","alert-circle","alert-circle-iconsax","alert-triangle","alert-triangle-iconsax","align-bottom","align-horizontally","align-left","align-right","align-top","align-vertically","android","ankr","apple","aquarius","archive","archive-add","archive-book","archive-box","archive-minus","archive-slash","archive-tick","arrange-horizontal","arrange-horizontal-circle","arrange-horizontal-square","arrange-vertical","arrange-vertical-circle","arrange-vertical-square","arrow","arrow-circle-down","arrow-circle-down-2","arrow-circle-left","arrow-circle-left-2","arrow-circle-right","arrow-circle-right-2","arrow-circle-up","arrow-circle-up-2","arrow-down","arrow-down-2","arrow-down-2-iconsax","arrow-down-3","arrow-down-iconsax","arrow-down-up","arrow-down-up-iconsax","arrow-forward","arrow-forward-square","arrow-left","arrow-left-2","arrow-left-2-iconsax","arrow-left-3","arrow-left-iconsax","arrow-right","arrow-right-2","arrow-right-2-iconsax","arrow-right-3","arrow-right-iconsax","arrow-rotate-left","arrow-rotate-right","arrow-square","arrow-square-down","arrow-square-left","arrow-square-right","arrow-square-up","arrow-swap-horizontal","arrow-swap-horizontal-iconsax","arrow-swap-vertical","arrow-up","arrow-up-2","arrow-up-2-iconsax","arrow-up-3","arrow-up-iconsax","arrow-up-right","arrow-up-right-iconsax","at","at-iconsax","attach-circle","attach-square","audio-square","augur","autobrightness","autonio","avalanche","award","back","back-square","backward","backward-10-seconds","backward-15-seconds","backward-5-seconds","backward-item","badge-check","badge-check-iconsax","bag","bag-2","bag-cross","bag-cross-1","bag-happy","bag-tick","bag-tick-2","bag-timer","ban","ban-iconsax","bank","bank-iconsax","barcode","battery-charging","battery-disable","battery-empty","battery-empty-1","battery-full","be","bell","bell-iconsax","bezier","bill","binance-coin","binance-usd","bitcoin","bitcoin-card","bitcoin-convert","bitcoin-refresh","blend","blend-2","blogger","bluetooth","bluetooth-2","bluetooth-circle","bluetooth-rectangle","blur","bolt","book","book-1","book-iconsax","book-saved","book-square","bookmark","bookmark-2","bookmark-iconsax","bootstrap","box","box-1","box-2","box-add","box-remove","box-seam","box-seam-iconsax","box-search","box-tick","box-time","briefcase","briefcase-cross","briefcase-iconsax","briefcase-tick","briefcase-timer","brifecase-cross","brifecase-tick","brifecase-timer","brodcast","broom","brush","brush-2","brush-3","brush-big","brush-square","bubble","bucket","bucket-circle","bucket-square","bug","bug-iconsax","building","building-2","building-2-iconsax","building-3","building-4","building-iconsax","buildings","buildings-2","buliding","bullseye","bullseye-iconsax","bus","buy-crypto","cake","cake-iconsax","calculator","calculator-iconsax","calendar","calendar-1","calendar-1-iconsax","calendar-2","calendar-add","calendar-add-iconsax","calendar-check","calendar-check-iconsax","calendar-circle","calendar-dots","calendar-dots-iconsax","calendar-edit","calendar-iconsax","calendar-remove","calendar-search","calendar-tick","calendar-tick-iconsax","call","call-add","call-calling","call-incoming","call-minus","call-outgoing","call-received","call-remove","call-slash","camera","camera-iconsax","camera-slash","candle","candle-2","car","card","card-add","card-coin","card-edit","card-pos","card-receive","card-remove","card-remove-1","card-send","card-slash","card-tick","card-tick-1","cardano","cards","cash-stack","cash-stack-iconsax","category","category-2","cd","celo","celsius","chainlink","chart","chart-1","chart-2","chart-21","chart-circle","chart-column","chart-column-iconsax","chart-fail","chart-iconsax","chart-square","chart-success","chat","chat-dots","chat-dots-iconsax","chat-iconsax","check","check-check","check-check-iconsax","check-circle","check-circle-iconsax","check-iconsax","chemical-glass","chevron-down","chevron-down-iconsax","chevron-left","chevron-left-iconsax","chevron-right","chevron-right-iconsax","chevron-up","chevron-up-iconsax","chevrons-left","chevrons-left-iconsax","chevrons-right","chevrons-right-iconsax","chevrons-up-down","chevrons-up-down-iconsax","chrome","circle","circle-help","circle-help-iconsax","circle-iconsax","civic","clipboard","clipboard-check","clipboard-check-iconsax","clipboard-close","clipboard-export","clipboard-import","clipboard-text","clipboard-text-iconsax","clipboard-tick","clipboard-tick-iconsax","clock","clock-iconsax","close-circle","close-circle-iconsax","close-square","cloud","cloud-add","cloud-change","cloud-connection","cloud-cross","cloud-drizzle","cloud-fog","cloud-iconsax","cloud-lightning","cloud-minus","cloud-notif","cloud-plus","cloud-remove","cloud-snow","cloud-sunny","code","code-1","code-circle","code-circle-iconsax","code-iconsax","coffee","coin","coin-1","coins","coins-iconsax","color-swatch","colorfilter","colors-square","command","command-square","comment","comment-iconsax","component","computing","contact","contact-iconsax","convert","convert-3-d-cube","convert-card","convertshape","convertshape-2","copy","copy-iconsax","copy-success","copyright","courthouse","cpu","cpu-charge","cpu-iconsax","cpu-setting","creative-commons","credit-card","credit-card-iconsax","crop","crown","crown-1","cup","cursor","cursor-iconsax","cut","dai","danger","danger-iconsax","dash","data","data-2","decred","dent","designtools","device-message","devices","diagram","diagram-3","diagram-3-iconsax","diamonds","direct","direct-down","direct-inbox","direct-left","direct-normal","direct-notification","direct-right","direct-send","direct-up","directbox-default","directbox-notif","directbox-receive","directbox-send","discount-circle","discount-shape","discover","dislike","display","display-iconsax","document","document-cloud","document-code","document-code-2","document-copy","document-download","document-download-iconsax","document-favorite","document-filter","document-forward","document-iconsax","document-like","document-previous","document-sketch","document-text","document-text-1","document-text-iconsax","document-upload","dollar-circle","dollar-square","download","download-iconsax","dribbble","driver","driver-2","driver-refresh","driving","drop","dropbox","edit","edit-2","edit-2-iconsax","edit-iconsax","educare","electricity","element","element-2","element-3","element-4","element-equal","element-plus","emercoin","emoji-happy","emoji-normal","emoji-sad","emoji-smile","emoji-smile-iconsax","empty-wallet","empty-wallet-add","empty-wallet-change","empty-wallet-remove","empty-wallet-tick","empty-wallet-time","enjin-coin","eos","eraser","eraser-square","ethereum","ethereum-classic","export","export-circle","export-curve","export-iconsax","export-square","external-drive","external-link","external-link-iconsax","eye","eye-iconsax","eye-off","eye-off-iconsax","eye-slash","facebook","facebook-iconsax","factory","factory-iconsax","fatrows","favorite-chart","figma","figma-1","file-plus-2","file-plus-2-iconsax","file-text","file-text-iconsax","files","files-iconsax","filter","filter-add","filter-edit","filter-iconsax","filter-remove","filter-search","filter-square","filter-tick","finger-cricle","finger-scan","firstline","flag","flag-2","flag-iconsax","flame","flame-iconsax","flash","flash-circle","flash-iconsax","flash-slash","flashy","folder","folder-2","folder-2-iconsax","folder-add","folder-cloud","folder-connection","folder-cross","folder-favorite","folder-iconsax","folder-kanban","folder-kanban-iconsax","folder-minus","folder-open","folder-open-iconsax","folder-plus","folder-plus-iconsax","forbidden","forbidden-2","format-circle","format-square","forward","forward-10-seconds","forward-15-seconds","forward-5-seconds","forward-item","framer","ftx-token","gallery","gallery-add","gallery-edit","gallery-export","gallery-favorite","gallery-import","gallery-remove","gallery-slash","gallery-tick","game","gameboy","gas-station","gauge","gauge-iconsax","gemini","gemini-2","ghost","gift","gift-iconsax","github","github-iconsax","glass","global","global-edit","global-refresh","global-search","globe","globe-iconsax","globe2","globe2-iconsax","google","google-drive","google-iconsax","google-play","gps","gps-slash","grammerly","graph","grid","grid-1","grid-2","grid-3","grid-4","grid-5","grid-6","grid-7","grid-8","grid-9","grid-edit","grid-eraser","grid-iconsax","grid-lock","hamberger-menu","hamburger-menu","hand","hand-iconsax","happyemoji","hard-hat","hard-hat-iconsax","harmony","hashtag","hashtag-down","hashtag-square","hashtag-up","headphone","headphone-iconsax","headphones","health","health-iconsax","heart","heart-add","heart-circle","heart-edit","heart-iconsax","heart-remove","heart-search","heart-slash","heart-tick","hedera-hashgraph","hex","hierarchy","hierarchy-2","hierarchy-3","hierarchy-iconsax","hierarchy-square","hierarchy-square-2","hierarchy-square-3","history","history-iconsax","home","home-2","home-2-iconsax","home-3","home-hashtag","home-trend-down","home-trend-up","home-wifi","hospital","house","house-2","house-iconsax","html-3","html-5","huobi-token","i-24-support","i-3-d-cube-scan","i-3-d-rotate","i-3-d-square","i-3-dcube","i-3-square","icon","illustrator","image","image-iconsax","import","import-circle","import-curve","import-square","inbox","inbox-iconsax","info","info-circle","info-circle-iconsax","info-iconsax","information","instagram","instagram-iconsax","iost","java-script","js","judge","kanban","kanban-iconsax","key","key-iconsax","key-square","keyboard","keyboard-open","kyber-network","lamp","lamp-charge","lamp-on","lamp-slash","language-circle","language-square","layer","layer-iconsax","layout-dashboard","layout-dashboard-iconsax","layout-grid","layout-grid-iconsax","layout-maximize","level","lifebuoy","lightbulb","lightbulb-iconsax","like","like-1","like-dislike","like-shapes","like-tag","link","link-1","link-2","link-2-iconsax","link-21","link-circle","link-square","linkedin","linkedin-iconsax","list","list-iconsax","litecoin","location","location-add","location-cross","location-discover","location-minus","location-slash","location-tick","lock","lock-1","lock-1-iconsax","lock-circle","lock-iconsax","lock-slash","log-out","log-out-iconsax","login","login-curve","login-iconsax","logout","logout-curve","logout-iconsax","lovely","magic-star","magicpen","mail","mail-iconsax","main-component","maker","man","map","map-1","map-pin","map-pin-iconsax","mask","mask-left","mask-right","math","maximize","maximize-1","maximize-2","maximize-3","maximize-4","maximize-4-iconsax","maximize-circle","medal","medal-star","menu","menu-board","menu-iconsax","message","message-2","message-add","message-add-1","message-circle","message-edit","message-favorite","message-minus","message-notif","message-programming","message-question","message-question-iconsax","message-remove","message-search","message-square","message-square-iconsax","message-text","message-text-1","message-text-iconsax","message-tick","message-time","messages","messages-1","messages-2","messages-3","messenger","microphone","microphone-2","microphone-slash","microphone-slash-1","microscope","microsoft","microsoft-iconsax","milk","mini-music-sqaure","minus","minus-circle","minus-circle-iconsax","minus-cirlce","minus-iconsax","minus-square","mirror","mirroring-screen","mobile","mobile-iconsax","mobile-programming","monero","money","money-2","money-3","money-4","money-add","money-archive","money-change","money-forbidden","money-receive","money-recive","money-remove","money-send","money-tick","money-time","moneys","monitor","monitor-iconsax","monitor-mobbile","monitor-recorder","moon","moon-iconsax","more","more-2","more-circle","more-horizontal","more-horizontal-iconsax","more-square","mouse","mouse-circle","mouse-square","music","music-circle","music-dashboard","music-filter","music-iconsax","music-library-2","music-play","music-playlist","music-square","music-square-add","music-square-remove","music-square-search","musicnote","nebulas","nem","nexo","next","note","note-1","note-add","note-favorite","note-remove","note-square","note-text","notepad","notepad-2","notification","notification-1","notification-bing","notification-circle","notification-favorite","notification-iconsax","notification-status","ocean-protocol","okb","okru","omega-circle","omega-square","ontology","paintbucket","palette","palette-iconsax","panel-left-close","panel-left-close-iconsax","panel-left-open","panel-left-open-iconsax","paperclip","paperclip-2","paperclip-iconsax","password-check","path-tool","path-tool-2","path-tool-square","pause","pause-circle","pause-iconsax","paypal","pen-add","pen-close","pen-remove","pen-tool","pen-tool-2","pen-tool-iconsax","pencil","pencil-iconsax","people","people-iconsax","percentage-circle","percentage-square","personalcard","pet","pharagraphspacing","phone","phone-iconsax","photoshop","picture-frame","play","play-add","play-circle","play-cricle","play-iconsax","play-remove","plug","plug-iconsax","plus","plus-circle","plus-circle-iconsax","plus-iconsax","pointer","polkadot","polygon","polyswarm","presentation-chart","presention-chart","previous","printer","printer-iconsax","printer-slash","profile","profile-2-user","profile-add","profile-circle","profile-circle-iconsax","profile-delete","profile-remove","profile-tick","programming-arrow","programming-arrows","python","quant","quote-down","quote-down-circle","quote-down-square","quote-up","quote-up-circle","quote-up-square","radar","radar-2","radio","ram","ram-2","rank","ranking","ranking-iconsax","receipt","receipt-1","receipt-2","receipt-21","receipt-add","receipt-discount","receipt-disscount","receipt-edit","receipt-iconsax","receipt-item","receipt-minus","receipt-search","receipt-square","receipt-text","receipt-text-iconsax","receive","receive-square","receive-square-2","record","record-circle","recovery-convert","reddit","reddit-iconsax","refresh","refresh-2","refresh-circle","refresh-cw","refresh-cw-iconsax","refresh-iconsax","refresh-left-square","refresh-right-square","refresh-square","repeat","repeat-circle","repeat-iconsax","repeate-music","repeate-one","reserve","robot","robot-iconsax","rotate-ccw","rotate-ccw-iconsax","rotate-cw","rotate-cw-iconsax","rotate-left","rotate-right","route-square","routing","routing-2","routing-iconsax","row-horizontal","row-vertical","ruler","ruler-pen","safe-home","sagittarius","save-2","save-add","save-minus","save-remove","scan","scan-barcode","scanner","scanning","scissor","screenmirroring","scroll","search","search-favorite","search-favorite-1","search-iconsax","search-normal","search-normal-1","search-normal-iconsax","search-status","search-status-1","search-zoom-in","search-zoom-in-1","search-zoom-out","search-zoom-out-1","security","security-card","security-safe","security-time","security-user","send","send-2","send-iconsax","server","server-iconsax","setting","setting-2","setting-2-iconsax","setting-3","setting-4","setting-5","settings","settings-iconsax","shapes","shapes-1","share","share-2","share-2-iconsax","share-iconsax","shield","shield-check","shield-check-iconsax","shield-cross","shield-cross-iconsax","shield-iconsax","shield-lock","shield-lock-iconsax","shield-plus","shield-plus-iconsax","shield-search","shield-security","shield-slash","shield-tick","shield-tick-iconsax","ship","shop","shop-add","shop-iconsax","shop-remove","shopping-bag","shopping-cart","shuffle","shutterstock","siacoin","sidebar-bottom","sidebar-left","sidebar-right","sidebar-top","signpost","simcard","simcard-1","simcard-2","size","slack","slash","slider","slider-horizontal","slider-horizontal-1","slider-vertical","slider-vertical-1","smallcaps","smart-car","smart-home","smileys","sms","sms-edit","sms-notification","sms-search","sms-star","sms-tracking","snapchat","snowflake","snowflake-iconsax","solana","sort","sort-iconsax","sound","sparkles","sparkles-iconsax","speaker","speedometer","spotify","stacks","star","star-1","star-iconsax","star-slash","stars","stars-iconsax","status","status-up","stellar","sticker","stickynote","stop","stop-circle","stop-iconsax","story","strongbox","strongbox-2","subtitle","subtitle-iconsax","sun","sun-1","sun-fog","sun-iconsax","table-document","table-lamp","tag","tag-2","tag-cross","tag-iconsax","tag-right","tag-user","task","task-iconsax","task-square","task-square-iconsax","teacher","telephone","telephone-iconsax","tenx","tether","text","text-block","text-bold","text-iconsax","text-italic","text-underline","textalign-center","textalign-justifycenter","textalign-justifyleft","textalign-justifyright","textalign-left","textalign-right","the-graph","theta","thorchain","thumbs-down","thumbs-down-iconsax","thumbs-up","thumbs-up-iconsax","tick-circle","tick-circle-iconsax","tick-square","ticket","ticket-2","ticket-discount","ticket-expired","ticket-star","timer","timer-1","timer-pause","timer-start","toggle-off","toggle-off-circle","toggle-on","toggle-on-circle","trade","transaction-minus","translate","transmit","transmit-sqaure-2","transmit-square","trash","trash-2","trash-2-iconsax","trash-iconsax","tree","trello","trend-down","trend-up","trending-up","trending-up-iconsax","triangle","triangle-iconsax","triangle-logo","trontron","truck","truck-fast","truck-remove","truck-tick","truck-time","trush-square","twitch","two-page","two-page-iconsax","ui-8","unlimited","unlock","upload","upload-iconsax","usd-coin","user","user-add","user-check","user-check-iconsax","user-cirlce-add","user-edit","user-edit-iconsax","user-iconsax","user-minus","user-minus-iconsax","user-octagon","user-plus","user-plus-iconsax","user-remove","user-search","user-square","user-tag","user-tick","users","users-iconsax","velas","verify","vibe","video","video-add","video-circle","video-horizontal","video-octagon","video-play","video-remove","video-slash","video-square","video-tick","video-time","video-vertical","voice-circle","voice-cricle","voice-square","volume","volume-cross","volume-high","volume-high-iconsax","volume-low","volume-low-1","volume-mute","volume-mute-iconsax","volume-slash","volume-slash-iconsax","volume-up","wallet","wallet-1","wallet-2","wallet-3","wallet-add","wallet-add-1","wallet-check","wallet-minus","wallet-money","wallet-remove","wallet-search","wallet2","wallet2-iconsax","wanchain","wanchain-1","wand-sparkles","wand-sparkles-iconsax","warning-2","warning-2-iconsax","watch","watch-status","weight","weight-meter","whatsapp","whatsapp-iconsax","wifi","wifi-square","wind","wind-2","windows","wing","woman","wrist-clock","x","x-circle","x-circle-iconsax","x-iconsax","xd","xiaomi","xrp","youtube","youtube-iconsax","zap","zap-iconsax","zel","zoom","zoom-in","zoom-in-iconsax","zoom-out","zoom-out-iconsax"]`),Su=`raw-bootstrap`,Cu=/* @__PURE__ */ new Map([[`btn`,`AppButton/<app-button>`],[`card`,`AppCard/<app-card>`],[`modal`,`AppModal/<app-modal>`],[`table`,`AppDataTable/<app-data-table>`],[`badge`,`AppBadge/<app-badge> (AppStatusBadge/<app-status-badge> when it shows a status)`],[`alert`,`AppAlert/<app-alert>`],[`form-control`,`AppInput/<app-input>`],[`form-select`,`AppSelect/<app-select>`],[`form-check-input`,`AppCheckbox/<app-checkbox>`],[`pagination`,`AppTablePagination/<app-table-pagination>`],[`nav-tabs`,`AppTabs/<app-tabs>`],[`dropdown-menu`,`AppDropdown/<app-dropdown>`],[`offcanvas`,`AppDrawer/<app-drawer>`],[`breadcrumb`,`AppBreadcrumbs/<app-breadcrumbs>`],[`progress`,`AppProgress/<app-progress>`],[`spinner-border`,`AppSpinner/<app-spinner>`],[`accordion`,`AppAccordion/<app-accordion>`]]),wu=/(?<![\w-])(?:class|className)\s*=\s*/g,Tu=/(?<![\w-])data-bs-(?:toggle\s*=\s*["'](?:modal|dropdown|tooltip|popover|offcanvas)|dismiss\s*=\s*["'](?:modal|offcanvas))["']/g,Eu=/<dialog[\s>]|\spopover(?=[\s>/=]|$)/g,Du=/(["'`])((?:\\[\s\S]|(?!\1)[^\\])*)\1/g;function Ou(e){let t=``,n=null;for(let r=0;r<e.length;r+=1){let i=e.charAt(r),a=e[r+1];if(n)t+=i,i===`\\`&&a!==void 0?(t+=a,r+=1):(i===n||i===`
180
180
  `&&n!=="`")&&(n=null);else if(i===`/`&&a===`/`){let n=e.indexOf(`
181
- `,r),i=n===-1?e.length:n;t+=` `.repeat(i-r),r=i-1}else if(i===`/`&&a===`*`){let n=e.indexOf(`*/`,r+2),i=n===-1?e.length:n+2;t+=e.slice(r,i).replace(/[^\n]/g,` `),r=i-1}else(i===`"`||i===`'`||i==="`")&&(n=i),t+=i}return t}function Du(e,t){let n=[],r=e.charAt(t);if(r===`"`||r===`'`){let i=e.indexOf(r,t+1);i!==-1&&n.push({base:t+1,content:e.slice(t+1,i)})}else if(r===`{`){let r=0,i=t;for(;i<e.length;i+=1)if(e[i]===`{`)r+=1;else if(e[i]===`}`&&(--r,r===0))break;let a=e.slice(t,i);for(let e of a.matchAll(Tu))n.push({base:t+e.index+1,content:e[2]??``})}return n}function Ou(e,t){let n=t===`markup`?T(e,`markup`):Eu(e),r=[0];for(let e=0;e<n.length;e+=1)n[e]===`
181
+ `,r),i=n===-1?e.length:n;t+=` `.repeat(i-r),r=i-1}else if(i===`/`&&a===`*`){let n=e.indexOf(`*/`,r+2),i=n===-1?e.length:n+2;t+=e.slice(r,i).replace(/[^\n]/g,` `),r=i-1}else(i===`"`||i===`'`||i==="`")&&(n=i),t+=i}return t}function ku(e,t){let n=[],r=e.charAt(t);if(r===`"`||r===`'`){let i=e.indexOf(r,t+1);i!==-1&&n.push({base:t+1,content:e.slice(t+1,i)})}else if(r===`{`){let r=0,i=t;for(;i<e.length;i+=1)if(e[i]===`{`)r+=1;else if(e[i]===`}`&&(--r,r===0))break;let a=e.slice(t,i);for(let e of a.matchAll(Du))n.push({base:t+e.index+1,content:e[2]??``})}return n}function Au(e,t){let n=t===`markup`?T(e,`markup`):Ou(e),r=[0];for(let e=0;e<n.length;e+=1)n[e]===`
182
182
  `&&r.push(e+1);let i=e.split(`
183
- `),a=e=>{let t=0,n=r.length-1;for(;t<n;){let i=t+n+1>>1,a=r[i];if(a===void 0)throw Error(`webority-repo-checks: a line start is missing.`);a<=e?t=i:n=i-1}return t},o=[];for(let e of n.matchAll(Su)){let t=e.index+e[0].length;for(let e of Du(n,t))for(let t of e.content.matchAll(/\S+/g)){let n=xu.get(t[0]);if(!n)continue;let r=a(e.base+t.index);o.push({rule:bu,line:r+1,text:(i[r]??``).trim().slice(0,160),hint:`use ${n} in place of the raw Bootstrap class "${t[0]}"`})}}if(t===`markup`){for(let e of n.matchAll(Cu))o.push(ku(a(e.index),i,`use data-wui-open, data-wui-dismiss or the app tag (<app-modal>, <app-drawer>, <app-popover>) in place of ${e[0]}`));for(let e of n.matchAll(wu))o.push(ku(a(e.index),i,`use the app tag (<app-modal>, <app-drawer> or <app-popover>) in place of a hand-written dialog or popover element`))}return o.sort((e,t)=>e.line-t.line),o}function ku(e,t,n){return{rule:`bootstrap-overlay`,line:e+1,text:(t[e]??``).trim().slice(0,160),hint:n}}var Au=/* @__PURE__ */ new Set(/* @__PURE__ */ `public.private.protected.internal.static.abstract.sealed.partial.unsafe.file.readonly.ref.new.virtual.override.extern.async.required.volatile.const.fixed.implicit.explicit.operator.event.delegate`.split(`.`)),ju=/* @__PURE__ */ new Set([`await`,`return`,`throw`,`yield`,`in`,`is`,`as`,`and`,`or`,`not`,`case`,`when`,`else`,`do`,`lock`,`using`]),Mu=/^((?:(?:public|private|protected|internal|static|abstract|sealed|partial|unsafe|file|readonly|ref|new)\s+)*)(class|struct|interface|record)\b(?:\s+(?:class|struct))?\s*(@?[A-Za-z_]\w*)/,Nu=/^\s*(?:global\s+)?using\b/,Pu=/^(?:global\s+)?using\s+(?:static\s+)?(?:@?\w+\s*=\s*)?([^;]+?)\s*$/,Fu=/^namespace\s+([\w.@\s]+?)\s*$/,Iu=/\boperator\b[^(]*$/,Lu=/\bconst\s+string\s+(@?[A-Za-z_]\w*)\s*$/,Ru=`<[\\w\\s,.?\\[\\]<>:]*>`,zu=/^nameof\s*\(\s*([^()]*?)\s*\)$/,Bu=/^(?:global::)?((?:@?[A-Za-z_]\w*\s*\.\s*)*?@?[A-Za-z_]\w*)\s*\.\s*(@?[A-Za-z_]\w*)$/,Vu=/^@?[A-Za-z_]\w*$/,Hu=/[\p{L}\p{N}_]/u,Uu=/* @__PURE__ */ new WeakMap;function Wu(e,t){let{blanked:n,code:r}=id(t),i=nd(t),a={file:e,text:t,blanked:n,lineAt:i,...vd(r,n,i)};return Uu.set(a,r),a}function Gu(e,t){if(t.length===0)return[];let n=Uu.get(e)??id(e.blanked).code,r=t.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),i=RegExp(`\\.\\s*(${r})\\s*(?:${Ru})?\\s*\\(`,`g`),a=RegExp(`(?<![\\p{L}\\p{N}_.@$])(${r})\\s*(?:${Ru})?\\s*\\(`,`gu`),o=[];for(let t of n.matchAll(a)){let r=t[1]??``;if(!Xu(n,t.index))continue;let i=t.index+t[0].length-1,a=yd(n,i+1);a<0||o.push({receiver:``,method:r,firstArgument:e.blanked.slice(i+1,a).trim(),index:t.index,line:e.lineAt(t.index)})}for(let t of n.matchAll(i)){let r=t[1]??``,i=t.index,a=i+t[0].indexOf(r,1),s=i+t[0].length-1,c=yd(n,s+1);if(c<0)continue;let l=i;for(;l>0&&H(n.charAt(l-1));)l--;(n.charAt(l-1)===`?`||n.charAt(l-1)===`!`)&&l--;let u=Sd(n,l);o.push({receiver:e.blanked.slice(u,l).trim().replace(/\s*\.\s*/g,`.`).replace(/\s+/g,` `),method:r,firstArgument:e.blanked.slice(s+1,c).trim(),index:a,line:e.lineAt(a)})}return o.sort((e,t)=>e.index-t.index)}var Ku=/* @__PURE__ */ new Set([`=`,`(`,`,`,`{`,`;`,`!`,`?`,`:`,`&`,`|`,`+`,`[`,`}`,``]),qu=/* @__PURE__ */ new Set([`return`,`await`,`yield`,`else`,`case`,`in`,`when`]),Ju=/* @__PURE__ */ new Set([`if`,`while`,`for`,`foreach`,`using`,`lock`,`switch`]),Yu=/^\s*@?[A-Za-z_][\w.]*(?:\s*<[\w\s,.?[\]<>]*>)?\s*\??\s*$/;function Xu(e,t){let n=t;for(;n>0&&H(e.charAt(n-1));)n--;let r=e.charAt(n-1);if(r===`>`)return e.charAt(n-2)===`=`;if(r===`)`)return Zu(e,n-1);if(Ku.has(r))return!0;if(!td(r))return!1;let i=n;for(;i>0&&td(e.charAt(i-1));)i--;return qu.has(e.slice(i,n))}function Zu(e,t){let n=bd(e,t);if(n<0)return!1;let r=e.slice(n+1,t),i=U(e,n-1),a=i+1;for(;a>0&&td(e.charAt(a-1));)a--;let o=e.slice(a,i+1);return o===``?Ku.has(e.charAt(i))&&Yu.test(r):Ju.has(o)||qu.has(o)&&Yu.test(r)}function Qu(e,t,n,r){return wd(e,t,n,r,0)}function $u(e){let t=/* @__PURE__ */ new Map;for(let n of e)for(let e of n.classes){let n=t.get(e.name);n?n.push(e):t.set(e.name,[e])}return t}function ed(e,t){let n=null;for(let r of e.classes)r.bodyStart>=t||t>=r.bodyEnd||(n===null||r.bodyEnd-r.bodyStart<n.bodyEnd-n.bodyStart)&&(n=r);return n}function H(e){return e===` `||e===` `||e===`
184
- `||e===`\r`}function td(e){return e!==``&&Hu.test(e)}function nd(e){let t=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t.push(n+1);return e=>{let n=0,r=t.length-1;for(;n<r;){let i=n+r+1>>1;(t[i]??0)<=e?n=i:r=i-1}return n+1}}function rd(e,t){let n=e.indexOf(`
185
- `,t);return n<0?e.length:n}function id(e){let t=e.split(``),n=e.split(``),r=e.length,i=(e,t,n)=>{for(let r=t;r<n;r++)e[r]!==`
183
+ `),a=e=>{let t=0,n=r.length-1;for(;t<n;){let i=t+n+1>>1,a=r[i];if(a===void 0)throw Error(`webority-repo-checks: a line start is missing.`);a<=e?t=i:n=i-1}return t},o=[];for(let e of n.matchAll(wu)){let t=e.index+e[0].length;for(let e of ku(n,t))for(let t of e.content.matchAll(/\S+/g)){let n=Cu.get(t[0]);if(!n)continue;let r=a(e.base+t.index);o.push({rule:Su,line:r+1,text:(i[r]??``).trim().slice(0,160),hint:`use ${n} in place of the raw Bootstrap class "${t[0]}"`})}}if(t===`markup`){for(let e of n.matchAll(Tu))o.push(ju(a(e.index),i,`use data-wui-open, data-wui-dismiss or the app tag (<app-modal>, <app-drawer>, <app-popover>) in place of ${e[0]}`));for(let e of n.matchAll(Eu))o.push(ju(a(e.index),i,`use the app tag (<app-modal>, <app-drawer> or <app-popover>) in place of a hand-written dialog or popover element`))}return o.sort((e,t)=>e.line-t.line),o}function ju(e,t,n){return{rule:`bootstrap-overlay`,line:e+1,text:(t[e]??``).trim().slice(0,160),hint:n}}var Mu=/* @__PURE__ */ new Set(/* @__PURE__ */ `public.private.protected.internal.static.abstract.sealed.partial.unsafe.file.readonly.ref.new.virtual.override.extern.async.required.volatile.const.fixed.implicit.explicit.operator.event.delegate`.split(`.`)),Nu=/* @__PURE__ */ new Set([`await`,`return`,`throw`,`yield`,`in`,`is`,`as`,`and`,`or`,`not`,`case`,`when`,`else`,`do`,`lock`,`using`]),Pu=/^((?:(?:public|private|protected|internal|static|abstract|sealed|partial|unsafe|file|readonly|ref|new)\s+)*)(class|struct|interface|record)\b(?:\s+(?:class|struct))?\s*(@?[A-Za-z_]\w*)/,Fu=/^\s*(?:global\s+)?using\b/,Iu=/^(?:global\s+)?using\s+(?:static\s+)?(?:@?\w+\s*=\s*)?([^;]+?)\s*$/,Lu=/^namespace\s+([\w.@\s]+?)\s*$/,Ru=/\boperator\b[^(]*$/,zu=/\bconst\s+string\s+(@?[A-Za-z_]\w*)\s*$/,Bu=`<[\\w\\s,.?\\[\\]<>:]*>`,Vu=/^nameof\s*\(\s*([^()]*?)\s*\)$/,Hu=/^(?:global::)?((?:@?[A-Za-z_]\w*\s*\.\s*)*?@?[A-Za-z_]\w*)\s*\.\s*(@?[A-Za-z_]\w*)$/,Uu=/^@?[A-Za-z_]\w*$/,Wu=/[\p{L}\p{N}_]/u,Gu=/* @__PURE__ */ new WeakMap;function Ku(e,t){let{blanked:n,code:r}=od(t),i=id(t),a={file:e,text:t,blanked:n,lineAt:i,...bd(r,n,i)};return Gu.set(a,r),a}function qu(e,t){if(t.length===0)return[];let n=Gu.get(e)??od(e.blanked).code,r=t.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),i=RegExp(`\\.\\s*(${r})\\s*(?:${Bu})?\\s*\\(`,`g`),a=RegExp(`(?<![\\p{L}\\p{N}_.@$])(${r})\\s*(?:${Bu})?\\s*\\(`,`gu`),o=[];for(let t of n.matchAll(a)){let r=t[1]??``;if(!Qu(n,t.index))continue;let i=t.index+t[0].length-1,a=xd(n,i+1);a<0||o.push({receiver:``,method:r,firstArgument:e.blanked.slice(i+1,a).trim(),index:t.index,line:e.lineAt(t.index)})}for(let t of n.matchAll(i)){let r=t[1]??``,i=t.index,a=i+t[0].indexOf(r,1),s=i+t[0].length-1,c=xd(n,s+1);if(c<0)continue;let l=i;for(;l>0&&U(n.charAt(l-1));)l--;(n.charAt(l-1)===`?`||n.charAt(l-1)===`!`)&&l--;let u=Td(n,l);o.push({receiver:e.blanked.slice(u,l).trim().replace(/\s*\.\s*/g,`.`).replace(/\s+/g,` `),method:r,firstArgument:e.blanked.slice(s+1,c).trim(),index:a,line:e.lineAt(a)})}return o.sort((e,t)=>e.index-t.index)}var Ju=/* @__PURE__ */ new Set([`=`,`(`,`,`,`{`,`;`,`!`,`?`,`:`,`&`,`|`,`+`,`[`,`}`,``]),Yu=/* @__PURE__ */ new Set([`return`,`await`,`yield`,`else`,`case`,`in`,`when`]),Xu=/* @__PURE__ */ new Set([`if`,`while`,`for`,`foreach`,`using`,`lock`,`switch`]),Zu=/^\s*@?[A-Za-z_][\w.]*(?:\s*<[\w\s,.?[\]<>]*>)?\s*\??\s*$/;function Qu(e,t){let n=t;for(;n>0&&U(e.charAt(n-1));)n--;let r=e.charAt(n-1);if(r===`>`)return e.charAt(n-2)===`=`;if(r===`)`)return $u(e,n-1);if(Ju.has(r))return!0;if(!rd(r))return!1;let i=n;for(;i>0&&rd(e.charAt(i-1));)i--;return Yu.has(e.slice(i,n))}function $u(e,t){let n=Cd(e,t);if(n<0)return!1;let r=e.slice(n+1,t),i=Sd(e,n-1),a=i+1;for(;a>0&&rd(e.charAt(a-1));)a--;let o=e.slice(a,i+1);return o===``?Ju.has(e.charAt(i))&&Zu.test(r):Xu.has(o)||Yu.has(o)&&Zu.test(r)}function ed(e,t,n,r){return Dd(e,t,n,r,0)}function td(e){let t=/* @__PURE__ */ new Map;for(let n of e)for(let e of n.classes){let n=t.get(e.name);n?n.push(e):t.set(e.name,[e])}return t}function nd(e,t){let n=null;for(let r of e.classes)r.bodyStart>=t||t>=r.bodyEnd||(n===null||r.bodyEnd-r.bodyStart<n.bodyEnd-n.bodyStart)&&(n=r);return n}function U(e){return e===` `||e===` `||e===`
184
+ `||e===`\r`}function rd(e){return e!==``&&Wu.test(e)}function id(e){let t=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t.push(n+1);return e=>{let n=0,r=t.length-1;for(;n<r;){let i=n+r+1>>1;(t[i]??0)<=e?n=i:r=i-1}return n+1}}function ad(e,t){let n=e.indexOf(`
185
+ `,t);return n<0?e.length:n}function od(e){let t=e.split(``),n=e.split(``),r=e.length,i=(e,t,n)=>{for(let r=t;r<n;r++)e[r]!==`
186
186
  `&&e[r]!==`\r`&&(e[r]=` `)},a=0,o=!0;for(;a<r;){let s=e.charAt(a);if(s===`
187
- `){o=!0,a++;continue}if(s===` `||s===` `||s===`\r`||s===``){a++;continue}let c=o;if(o=!1,s===`/`&&e.charAt(a+1)===`/`){let r=rd(e,a);i(t,a,r),i(n,a,r),a=r;continue}if(s===`/`&&e.charAt(a+1)===`*`){let o=e.indexOf(`*/`,a+2),s=o<0?r:o+2;i(t,a,s),i(n,a,s),a=s;continue}if(s===`#`&&c){let r=rd(e,a),o=e.indexOf(`//`,a);o>=0&&o<r&&i(t,o,r),i(n,a,r),a=r;continue}let l=ad(e,a);if(l){let t=od(e,l);i(n,l.quoteAt+1,t-1),a=Math.max(t,a+1)}else if(s===`'`){let t=cd(e,a);i(n,a+1,t-1),a=t}else a++}return{blanked:t.join(``),code:n.join(``)}}function ad(e,t){let n=t,r=0,i=!1;for(;e.charAt(n)===`$`||e.charAt(n)===`@`;)e.charAt(n)===`$`?r++:i=!0,n++;if(e.charAt(n)!==`"`)return null;let a=0;for(;e.charAt(n+a)===`"`;)a++;return{quoteAt:n,dollars:r,verbatim:i,quotes:a}}function od(e,t){let n=e.length,r=!t.verbatim&&t.quotes>=3;if(!t.verbatim&&t.quotes===2)return t.quoteAt+2;if(r){let r=t.quotes,i=t.quoteAt+r;for(;i<n;){let n=e.charAt(i);if(n===`"`){let t=1;for(;e.charAt(i+t)===`"`;)t++;if(t>=r)return i+t;i+=t}else if(t.dollars>0&&n===`{`){let n=1;for(;e.charAt(i+n)===`{`;)n++;if(n<t.dollars){i+=n;continue}i=sd(e,i+n,t.dollars)}else i++}return n}let i=t.quoteAt+1;for(;i<n;){let n=e.charAt(i);if(t.verbatim){if(n===`"`){if(e.charAt(i+1)===`"`){i+=2;continue}return i+1}}else{if(n===`\\`){i+=2;continue}if(n===`"`)return i+1;if(n===`
188
- `)return i}if(t.dollars>0&&n===`{`){if(e.charAt(i+1)===`{`){i+=2;continue}i=sd(e,i+1,1)}else i++}return n}function sd(e,t,n){let r=e.length,i=0,a=t;for(;a<r;){let t=e.charAt(a);if(t===`{`)i++,a++;else if(t===`}`){if(i>0)i--,a++;else return Math.min(r,a+n)}else if(t===`'`)a=cd(e,a);else{let t=ad(e,a);a=t?Math.max(od(e,t),a+1):a+1}}return r}function cd(e,t){if(e.charAt(t+1)===`\\`){let n=e.indexOf(`'`,t+3);return n<0||n-t>12?t+1:n+1}return e.charAt(t+2)===`'`?t+3:t+1}function ld(e,t){let n=e.charAt(t),r=n===`(`?`)`:n===`[`?`]`:`}`,i=0;for(let a=t;a<e.length;a++){let t=e.charAt(a);if(t===n)i++;else if(t===r&&(i--,i===0))return a}return e.length-1}function ud(e,t){let n=0;for(let r=t;r<e.length;r++){let t=e.charAt(r);if(t===`(`||t===`[`||t===`{`)n++;else if(t===`)`||t===`]`||t===`}`){if(n===0)return r;n--}else if(t===`;`&&n===0)return r}return e.length}function dd(e,t){let n=0;for(let r=t;r<e.length;r++){let i=e.charAt(r);if(i===`(`||i===`[`)n++;else if(i===`)`||i===`]`)n=Math.max(0,n-1);else if(n===0){if(i===`{`||i===`;`||i===`}`)return{end:r,terminator:i};if(i===`=`){let n=e.slice(t,r);if(Nu.test(n)||Iu.test(n))continue;return{end:r,terminator:e.charAt(r+1)===`>`?`=>`:`=`}}}}return{end:e.length,terminator:`eof`}}function fd(e,t,n,r){let i=[],a=0,o=t;for(let s=t;s<n;s++){let t=e.charAt(s);t===`(`||t===`[`||t===`{`?a++:t===`)`||t===`]`||t===`}`?a--:t===r&&a===0&&(i.push([o,s]),o=s+1)}return i.push([o,n]),i}function pd(e,t,n){let r=[],i=t;for(;;){for(;i<n&&H(e.charAt(i));)i++;if(e.charAt(i)!==`[`)break;let t=ld(e,i);if(t>=n)break;r.push([i,t+1]),i=t+1}return{restStart:i,ranges:r}}function md(e,t,n){for(let[r,i]of n){let n=/\bHubMethodName(?:Attribute)?\s*\(/.exec(e.slice(r,i));if(!n)continue;let a=r+n.index+n[0].length-1,o=ld(e,a);return Fd(t.slice(a+1,o).trim())}return null}function hd(e){let t=0,n=()=>{for(;t<e.length&&H(e.charAt(t));)t++},r=(n,r)=>{let i=0;for(;t<e.length;t++){let a=e.charAt(t);if(a===n)i++;else if(a===r&&(i--,i===0)){t++;return}}};if(n(),e.charAt(t)===`<`&&r(`<`,`>`),n(),e.charAt(t)===`(`&&r(`(`,`)`),n(),e.charAt(t)!==`:`)return[];let i=[],a=0,o=t+1,s=t=>{let n=gd(e.slice(o,t)).replace(/\s+/g,` `).trim();n!==``&&i.push(n)};for(let n=t+1;n<e.length;n++){let t=e.charAt(n);if(t===`<`||t===`(`||t===`[`)a++;else if(t===`>`||t===`)`||t===`]`)a--;else if(a===0&&t===`,`)s(n),o=n+1;else if(a===0&&e.startsWith(`where`,n)&&!td(e.charAt(n-1))&&H(e.charAt(n+5)))return s(n),i}return s(e.length),i}function gd(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charAt(n);if(r===`<`)t++;else if(r===`>`)t--;else if(r===`(`&&t===0)return e.slice(0,n)}return e}function _d(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charAt(n);if(r===`(`){if(t===0){let t=RegExp(`(@?[A-Za-z_]\\w*)\\s*(?:${Ru})?\\s*$`).exec(e.slice(0,n)),r=t?.[1]??``;if(t&&!Au.has(r))return{name:r.replace(/^@/,``),index:t.index}}t++}else r===`)`&&(t=Math.max(0,t-1))}return null}function vd(e,t,n){let r=[],i=[],a=[],o=null,s=``,c=()=>{for(let e=a.length-1;e>=0;e--){let t=a[e];if(t?.kind===`type`)return t}return null},l=()=>[s,...a.filter(e=>e.kind===`namespace`).map(e=>e.namespaceName)].filter(Boolean).join(`.`),u=(r,i,a,o)=>{let s=r.cls,c=_d(i);if(!s||!c||c.name===s.name)return;let l=i.slice(0,c.index);if(/\b(?:operator|delegate|event)\b/.test(l))return;let u=new Set(l.split(/\s+/));s.methods.push({name:c.name,isPublic:u.has(`public`)||r.isInterface&&!u.has(`private`)&&!u.has(`protected`)&&!u.has(`internal`),isStatic:u.has(`static`),isOverride:u.has(`override`),hubMethodName:md(e,t,o),line:n(a+c.index)})},d=(n,r,i,a)=>{let o=n.cls;if(!o)return;let s=fd(e,i,a,`,`),c=r.replace(/^@/,``);s.forEach(([n,r],i)=>{let a=n;if(i>0){let t=/^\s*(@?[A-Za-z_]\w*)\s*=/.exec(e.slice(n,r));if(!t)return;c=(t[1]??``).replace(/^@/,``),a=n+t[0].length}let s=Fd(t.slice(a,r).trim());s!==null&&o.constStrings.set(c,s)})},f=(t,f,p)=>{let{restStart:m,ranges:h}=pd(e,t,f.end),g=m;for(;g<f.end&&H(e.charAt(g));)g++;let _=e.slice(g,f.end);if(_.trim()===``)return null;if(f.terminator===`;`){let e=Pu.exec(_);if(e)return r.push((e[1]??``).replace(/\s+/g,``)),null}let v=Fu.exec(_);if(v){let e=(v[1]??``).replace(/\s+/g,``);if(f.terminator===`;`)return s=e,o??=e,null;let t=[l(),e].filter(Boolean).join(`.`);return o??=t,{kind:`namespace`,cls:null,isInterface:!1,namespaceName:e}}let y=Mu.exec(_);if(y){let e=c(),t=(y[3]??``).replace(/^@/,``),r={name:t,fullName:e?.cls?`${e.cls.fullName}.${t}`:t,namespace:l(),bodyStart:f.end,bodyEnd:f.end,baseTypes:hd(_.slice(y[0].length)),isAbstract:/\babstract\b/.test(y[1]??``),methods:[],constStrings:/* @__PURE__ */ new Map,line:n(g+y[0].length-(y[3]??``).length)};return i.push(r),{kind:`type`,cls:r,isInterface:y[2]===`interface`,namespaceName:``}}let b=a[a.length-1];if(b?.kind!==`type`)return null;if(f.terminator===`=`){let e=Lu.exec(_);return e&&d(b,e[1]??``,f.end+1,p),null}return u(b,_,g,h),null},p=0;for(;p<e.length;){let t=dd(e,p);if(t.terminator===`eof`)break;if(t.terminator===`}`){let e=a.pop();e?.cls&&(e.cls.bodyEnd=t.end),p=t.end+1;continue}if(t.terminator===`=`||t.terminator===`=>`){let n=ud(e,t.end+(t.terminator===`=>`?2:1));f(p,t,n),p=e.charAt(n)===`;`?n+1:n;continue}let n=f(p,t,t.end);t.terminator===`{`?n?(a.push(n),p=t.end+1):p=ld(e,t.end)+1:p=t.end+1}return{namespace:o,usings:r,classes:i}}function yd(e,t){let n=0;for(let r=t;r<e.length;r++){let t=e.charAt(r);if(t===`(`||t===`[`||t===`{`)n++;else if(t===`)`||t===`]`||t===`}`){if(n===0)return t===`)`?r:-1;n--}else if(t===`,`&&n===0)return r}return-1}function U(e,t){let n=t;for(;n>=0&&H(e.charAt(n));)n--;return n}function bd(e,t){let n=e.charAt(t),r=n===`)`?`(`:`[`,i=0;for(let a=t;a>=0;a--){let t=e.charAt(a);if(t===n)i++;else if(t===r&&(i--,i===0))return a}return-1}function xd(e,t){let n=0;for(let r=t;r>=0;r--){let t=e.charAt(r);if(t===`>`)n++;else if(t===`<`){if(n--,n===0)return r}else if(!/[\w\s,.?[\]:]/.test(t))return-1}return-1}function Sd(e,t){let n=t;for(;;){let t=Cd(e,n);if(t<0)return n;n=t;let r=/(?<![\w@])new\s+$/.exec(e.slice(Math.max(0,n-40),n));r&&(n-=r[0].length);let i=U(e,n-1);if(e.charAt(i)!==`.`||e.charAt(i-1)===`.`)return n;n=i;let a=U(e,i-1);(e.charAt(a)===`?`||e.charAt(a)===`!`)&&(n=a)}}function Cd(e,t){let n=U(e,t-1),r=-1;for(;;){let t=e.charAt(n);if(t===`)`||t===`]`){let i=bd(e,n);if(i<0)return r;if(r=i,n=U(e,i-1),t===`)`&&e.charAt(n)===`>`){let t=xd(e,n);t>=0&&(r=t,n=U(e,t-1))}}else{if(td(t)){let t=n;for(;t>0&&td(e.charAt(t-1));)t--;return ju.has(e.slice(t,n+1))&&r>=0?r:(t>0&&e.charAt(t-1)===`@`&&t--,t)}return r}}}function wd(e,t,n,r,i){if(i>8)return null;let a=jd(e.trim());if(a===``)return null;let o=Fd(a);if(o!==null)return[o];let s=Md(a);if(s){let e=wd(s.whenTrue,t,n,r,i+1),a=wd(s.whenFalse,t,n,r,i+1);return!e||!a?null:[.../* @__PURE__ */ new Set([...e,...a])]}let c=zu.exec(a);if(c){let e=c[1]??``;for(;/<[^<>]*>/.test(e);)e=e.replace(/<[^<>]*>/g,``);let t=(e.split(`.`).pop()??``).trim().replace(/^@/,``);return Vu.test(t)?[t]:null}let l=Bu.exec(a);return l?Td(l[1]??``,l[2]??``,t,n,r):Vu.test(a)?n===null?null:Ed(a.replace(/^@/,``),t,n,r):null}function Td(e,t,n,r,i){let a=e.replace(/\s+/g,``).split(`.`).map(e=>e.replace(/^@/,``)),o=a.join(`.`),s=t.replace(/^@/,``),c=i.get(a[a.length-1]??``)??[],l=r?.namespace??n.namespace??``,u=[];a.length>1&&u.push(c.filter(e=>{let t=Od(e);return t===o||t.endsWith(`.${o}`)})),u.push(c.filter(e=>kd(e.namespace,l)),c.filter(e=>n.usings.includes(e.namespace)),c);for(let e of u)if(e.some(e=>e.constStrings.has(s)))return Ad(e,s);return null}function Ed(e,t,n,r){let i=t.classes.filter(e=>e!==n&&e.namespace===n.namespace&&n.fullName.startsWith(`${e.fullName}.`)).sort((e,t)=>t.fullName.length-e.fullName.length),a=[];for(let t of[n,...i]){let n=(r.get(t.name)??[]).filter(e=>e.namespace===t.namespace&&e.fullName===t.fullName),i=n.includes(t)?n:[t,...n];if(a.push(...i),i.some(t=>t.constStrings.has(e)))return Ad(i,e)}let o=new Set(a),s=a;for(let t=0;t<8;t++){let t=[];for(let e of s)for(let i of e.baseTypes)for(let e of Dd(i,n.namespace,r))o.has(e)||(o.add(e),t.push(e));if(t.length===0)return null;if(t.some(t=>t.constStrings.has(e)))return Ad(t,e);s=t}return null}function Dd(e,t,n){let r=(e.replace(/<.*$/,``).trim().split(`.`).pop()??``).replace(/^@/,``),i=n.get(r)??[],a=i.filter(e=>e.namespace===t);return a.length>0?a:i}function Od(e){return e.namespace===``?e.fullName:`${e.namespace}.${e.fullName}`}function kd(e,t){return e===``||t===e||t.startsWith(`${e}.`)}function Ad(e,t){let n=/* @__PURE__ */ new Set;for(let r of e){let e=r.constStrings.get(t);e!==void 0&&n.add(e)}return n.size===1?[...n]:null}function jd(e){let t=e;for(;t.startsWith(`(`);){let e=id(t).code;if(ld(e,0)!==t.length-1)break;t=t.slice(1,-1).trim()}return t}function Md(e){let t=id(e).code,n=e=>t.charAt(e)===`?`&&!`?.[`.includes(t.charAt(e+1)),r=0,i=-1;for(let e=0;e<t.length&&i<0;e++){let a=t.charAt(e);a===`(`||a===`[`||a===`{`?r++:a===`)`||a===`]`||a===`}`?r--:a===`?`&&r===0&&(n(e)?i=e:t.charAt(e+1)===`?`&&e++)}if(i<0)return null;r=0;let a=0;for(let o=i+1;o<t.length;o++){let s=t.charAt(o);if(s===`(`||s===`[`||s===`{`)r++;else if(s===`)`||s===`]`||s===`}`)r--;else if(r===0&&s===`?`&&n(o))a++;else if(r===0&&s===`:`){if(t.charAt(o+1)===`:`){o++;continue}if(a===0)return{whenTrue:e.slice(i+1,o),whenFalse:e.slice(o+1)};a--}}return null}var Nd={n:`
189
- `,r:`\r`,t:` `,0:`\0`,a:`\x07`,b:`\b`,f:`\f`,v:`\v`,"\\":`\\`,'"':`"`,"'":`'`};function Pd(e){return e.replace(/\\(u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8}|x[0-9a-fA-F]{1,4}|[\s\S])/g,(e,t)=>{let n=t.charAt(0);return t.length>1?String.fromCodePoint(Number.parseInt(t.slice(1),16)):Nd[n]??n})}function Fd(e){let t=/^[$@]*/.exec(e)?.[0]??``,n=t.split(`$`).length-1,r=t.includes(`@`),i=e.slice(t.length),a;if(r){let e=/^"((?:[^"]|"")*)"$/.exec(i);if(!e)return null;a=(e[1]??``).replace(/""/g,`"`)}else if(i.startsWith(`"""`)){let e=/^"+/.exec(i)?.[0]??``;if(!i.endsWith(e)||i.length<e.length*2)return null;let t=Id(i.slice(e.length,i.length-e.length));return t===null||n>0&&/[{}]/.test(t)?null:t}else{let e=/^"((?:[^"\\\r\n]|\\.)*)"$/.exec(i);if(!e)return null;a=e[1]??``}return n>0&&/[{}]/.test(a.replace(/\{\{|\}\}/g,``))?null:(r||(a=Pd(a)),n>0&&(a=a.replace(/\{\{/g,`{`).replace(/\}\}/g,`}`)),a)}function Id(e){if(!/[\r\n]/.test(e))return e;let t=e.split(/\r?\n/),n=t.shift()??``,r=t.pop()??``;return n.trim()!==``||r.trim()!==``?null:t.map(e=>e.startsWith(r)?e.slice(r.length):e.trimStart()).join(`
190
- `)}var Ld=/^(?:Areas\/([^/]+)\/)?Pages\/(.+)\.cshtml$/i,Rd=/^[ \t]*@page\b/m,zd=/^[ \t]*@model\s+([^\r\n]+?)\s*$/m,Bd=/^[ \t]*@inherits\b/m,Vd=/^[ \t]*@namespace\s+([\w.]+)/m,Hd=/^[ \t]*@using\s+([\w.]+)\s*;?[ \t]*$/gm,Ud=/<ProjectReference\b[^>]*?\bInclude\s*=\s*"([^"]+)"/g,Wd=/(?:^|\/)Areas\/([^/]+)\//i,Gd=/<([A-Za-z][\w:.-]*)((?:"[^"]*"|'[^']*'|[^>"'])*)>/g,Kd=/([A-Za-z_@:][\w:.@-]*)\s*=\s*(?:"([^"]*)"|'([^']*)')/g,qd=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,Jd=/"((?:[^"\\\n]|\\.)*)"|'((?:[^'\\\n]|\\.)*)'|`((?:[^`\\]|\\.)*)`/g,Yd=/[?&]handler=([^&#]*)/,Xd=/^On(?:Get|Post|Put|Delete|Patch|Head|Options)(.*?)(?:Async)?$/,Zd=/\bOn(?:Get|Post|Put|Delete|Patch|Head|Options)(\w*?)(?:Async)?\s*\(/g,Qd=/^@?([A-Za-z_]\w*)\s*:(?!:)\s*([\s\S]*)$/,$d=/\barea\s*=\s*(?:"([^"]*)"|(\w[\w.]*))/i,ef=/^I[A-Z]/,tf=/* @__PURE__ */ new Set([`url`,`urlhelper`,`_urlhelper`]),nf=/* @__PURE__ */ new Set([`PageModel`,`object`,`Object`]),rf=/Page\s*\(|RedirectToPage/;function af(e,t){let n={dynamicHandlers:0,unverifiedPages:0,foreignAreaLinks:0,unreadRouteValues:0,unresolvedLinks:0},i=[],a=new Set(t),o=/* @__PURE__ */ new Map,s=t=>{let n=o.get(t);if(n!==void 0)return n;let i=``;try{i=r(d(e,t),`utf8`).replace(/^/,``)}catch(e){if(!(e instanceof Error&&`code`in e&&e.code===`ENOENT`))throw e}return o.set(t,i),i},c=/* @__PURE__ */ new Map,l=(e,t,n,r)=>{let a=c.get(e);a||(a=s(e).split(`
191
- `),c.set(e,a)),i.push({rule:n,file:e,line:t,text:(a[t-1]??``).trim().slice(0,160),hint:r})},u=t.filter(e=>e.endsWith(`.csproj`)).sort(),f=/* @__PURE__ */ new Map,m=/* @__PURE__ */ new Map;for(let e of u){let t=p.dirname(e),n=f.get(t);if(n){m.set(e,n);continue}let r={dir:t,name:p.basename(e,`.csproj`),own:/* @__PURE__ */ new Map,references:[],index:/* @__PURE__ */ new Map};f.set(t,r),m.set(e,r)}if(f.size===0)return{hits:i,skipped:n};let h=e=>{let t=p.dirname(e);for(;;){let e=f.get(t);if(e)return e;if(t===`.`||t===`/`)return null;t=p.dirname(t)}},g=/* @__PURE__ */ new Map;for(let e of t){if(!e.endsWith(`.cshtml`))continue;let t=h(e);if(!t)continue;let n=t.dir===`.`?e:e.slice(t.dir.length+1),r=Ld.exec(n);if(!r||!Rd.test(T(s(e),`markup`)))continue;let i=`/${r[2]}`,a={file:e,project:t.dir,area:r[1]??null,name:i,folder:p.dirname(i)};g.set(e,a),t.own.set(of(a.area,i),a)}if(g.size===0)return{hits:i,skipped:n};for(let e of u){let t=m.get(e);if(t&&t.dir===p.dirname(e))for(let n of s(e).matchAll(Ud)){let e=p.normalize(p.join(t.dir,(n[1]??``).replaceAll(`\\`,`/`))),r=m.get(e);r&&r!==t&&!t.references.includes(r.dir)&&t.references.push(r.dir)}}for(let e of f.values()){e.index=new Map(e.own);let t=/* @__PURE__ */ new Set([e.dir]),n=[...e.references];for(let r=n.shift();r!==void 0;r=n.shift()){if(t.has(r))continue;t.add(r);let i=f.get(r);if(i){for(let[t,n]of i.own)e.index.has(t)||e.index.set(t,n);n.push(...i.references)}}}let _=/* @__PURE__ */ new Map;for(let e of f.values())for(let t of e.references)_.set(t,[..._.get(t)??[],e.dir]);for(let e of f.values()){let t=/* @__PURE__ */ new Set([e.dir]),n=[..._.get(e.dir)??[]];for(let r=n.shift();r!==void 0;r=n.shift()){if(t.has(r))continue;t.add(r);let i=f.get(r);if(i){for(let[t,n]of i.index)e.index.has(t)||e.index.set(t,n);n.push(..._.get(r)??[])}}}let v=/* @__PURE__ */ new Set;for(let e of t){let t=Wd.exec(e)?.[1];t&&v.add(t.toLowerCase())}let y=[],b=/* @__PURE__ */ new Map,x=/* @__PURE__ */ new Map;for(let e of t){if(!e.endsWith(`.cs`))continue;let t=Wu(e,s(e));y.push(t),b.set(e,t);for(let e of t.classes)x.set(e,t)}let S=$u(y),C=/* @__PURE__ */ new Map,ee=e=>{let t=C.get(e);if(t!==void 0)return t;let n=T(s(e),`markup`);return C.set(e,n),n},te=e=>{let t=/* @__PURE__ */ new Set,n=e=>{let n=ee(e),r=Vd.exec(n)?.[1];r&&t.add(r);for(let e of n.matchAll(Hd))e[1]&&t.add(e[1])};n(e.file);for(let t=p.dirname(e.file);;t=p.dirname(t)){let r=p.join(t,`_ViewImports.cshtml`);if(a.has(r)&&n(r),t===e.project||t===`.`||t===`/`)break}return t},ne=(e,t,n)=>{if(n.has(e))return!0;n.add(e);for(let n of e.methods){if(!n.isPublic||n.isStatic)continue;let e=Xd.exec(n.name);e&&t.add((e[1]??``).toLowerCase())}let r=e.baseTypes[0];if(r===void 0)return!0;let i=sf(r);if(ef.test(i))return!0;let a=S.get(i);if(!a)return nf.has(i);let o=!0;for(let e of a)o=ne(e,t,n)&&o;return o},re=/* @__PURE__ */ new Map,w=e=>{if(re.has(e.file))return re.get(e.file)??null;let t=ie(e);return re.set(e.file,t),t},ie=e=>{let t=ee(e.file),n=/* @__PURE__ */ new Set;for(let e of t.matchAll(Zd))n.add((e[1]??``).toLowerCase());let r=zd.exec(t)?.[1];if(r===void 0)return Bd.test(t)?null:{name:`the page`,handlers:n};let i=r.replace(/<.*$/,``).trim().split(`.`),a=i[i.length-1]??``,o=i.slice(0,-1).join(`.`),s=S.get(a)??[];if(s.length===0)return null;let c=s.filter(t=>x.get(t)?.file===`${e.file}.cs`);if(c.length>0)s=c;else if(s.length>1){let t=s.filter(t=>h(x.get(t)?.file??``)?.dir===e.project);if(t.length>0&&(s=t),s.length>1){let t=te(e);o&&t.add(o);let n=s.filter(e=>t.has(x.get(e)?.namespace??``));n.length>0&&(s=n)}}let l=new Set(s.map(e=>`${x.get(e)?.namespace??``}|${e.fullName}`));if(l.size>1)return null;let[u]=l;s=(S.get(a)??[]).filter(e=>`${x.get(e)?.namespace??``}|${e.fullName}`===u);let d=new Set(n),f=/* @__PURE__ */ new Set,p=!0;for(let e of s)p=ne(e,d,f)&&p;return p?{name:a,handlers:d}:null},ae=/* @__PURE__ */ new Set,oe=(e,t,n,r)=>{let i=w(e);i?i.handlers.has(t.toLowerCase())||l(n,r,`razor-page-handler`,`add On<Verb>${t}Async to ${i.name}, or fix the handler name`):ae.add(e.file)},se=(e,t,r,i,a,o)=>{let s=lf(t,r,i);if(!s)return n.unresolvedLinks++,null;let c=e.index.get(of(s.area,s.path));if(c)return c;if(s.area!==null&&!v.has(s.area.toLowerCase()))return n.foreignAreaLinks++,null;let u=s.area===null?s.path:`${s.path} (area ${s.area})`;return l(a,o,`razor-page-link`,`no page ${u} in ${e.name}; fix the link or add the page`),null},ce=(e,t,r,i)=>{let a=e.indexOf(`?`);if(a<0)return;let o=Yd.exec(e.slice(a))?.[1];o!==void 0&&(e.slice(0,a).trim()===``?/[@${]/.test(o)?n.dynamicHandlers++:o!==``&&(t?oe(t,o,r,i):n.unresolvedLinks++):n.unresolvedLinks++)};for(let e of t){if(!e.endsWith(`.cshtml`))continue;let t=h(e);if(!t||t.index.size===0)continue;let r=s(e),i=ee(e),a=mf(r),o=g.get(e)??null,c=o?{area:o.area,folder:o.folder}:{area:Wd.exec(e)?.[1]??null,folder:null};for(let r of i.matchAll(Gd)){let i=r.index+1+(r[1]?.length??0),s=/* @__PURE__ */ new Map;for(let e of(r[2]??``).matchAll(Kd))s.set((e[1]??``).toLowerCase(),{value:e[2]??e[3]??``,at:i+e.index});let l=s.get(`asp-page`),u=s.get(`asp-area`),d=s.get(`asp-page-handler`),f=o;if(l&&(!l.value.includes(`@`)&&!u?.value.includes(`@`)?f=se(t,l.value,u?.value,c,e,a(l.at)):(f=null,n.unresolvedLinks++)),d){let t=d.value.trim();t.includes(`@`)?n.dynamicHandlers++:t!==``&&f?oe(f,t,e,a(d.at)):t!==``&&!l&&n.unresolvedLinks++}for(let t of[`href`,`action`,`formaction`]){let n=s.get(t);n&&ce(n.value,o,e,a(n.at))}}for(let t of i.matchAll(qd)){if(/\bsrc\s*=/i.test(t[1]??``))continue;let n=t[2]??``,r=t.index+t[0].length-9-n.length;for(let t of n.matchAll(Jd))ce(t[1]??t[2]??t[3]??``,o,e,a(r+t.index))}}for(let e of y){let t=e.file,r=h(t);if(!r||r.index.size===0||!rf.test(e.blanked))continue;let i=g.get(t.replace(/\.cs$/,``))??null,a=i?{area:i.area,folder:i.folder}:{area:Wd.exec(t)?.[1]??null,folder:null},o=pf(e.blanked),s=[];for(let t of Gu(e,[`Page`,`RedirectToPage`,`RedirectToPagePermanent`])){if(t.method===`Page`&&!cf(t.receiver))continue;let n=o.indexOf(`(`,t.index);n>=0&&s.push({method:t.method,open:n,at:ed(e,t.index)})}for(let i of s){let s=ff(o,e.blanked,i.open);if(!s){n.unresolvedLinks++;continue}let c=df(s,0,`pageName`);if(c===void 0)continue;let l=Qu(c,e,i.at,S);if(!l){n.unresolvedLinks++;continue}if(s.slice(1).some(t=>{let n=(Qd.exec(t)?.[2]??t).trim();return n!==`null`&&!/^new\s*\{/.test(n)&&Qu(n,e,i.at,S)===null})){n.unreadRouteValues++;continue}let u=uf(s.slice(1).join(`,`));if(u===null){n.unreadRouteValues++;continue}let d=df(s,1,`pageHandler`),f=d===void 0?null:Qu(d,e,i.at,S),p=e.lineAt(i.open);for(let e of l){let n=se(r,e,u,a,t,p);if(n&&f)for(let e of f)e!==``&&oe(n,e,t,p)}}}return n.unverifiedPages=ae.size,i.sort((e,t)=>e.file<t.file?-1:e.file>t.file?1:e.line-t.line),{hits:i,skipped:n}}function of(e,t){return`${(e??``).toLowerCase()}|${t.toLowerCase()}`}function sf(e){let t=e.replace(/<.*$/,``).trim().split(`.`);return t[t.length-1]??``}function cf(e){let t=e.split(`.`).pop()?.replace(/[?!]$/,``).toLowerCase()??``;return tf.has(t)}function lf(e,t,n){let r=e.trim();if(r===``||/[@{?#]/.test(r))return null;let i=t===void 0?n.area:t===``?null:t,a;if(r.startsWith(`/`))a=p.normalize(r);else if(n.folder===null)return null;else a=p.normalize(p.join(n.folder,r));return a=a.replace(/\/+$/,``),a===``?null:{area:i,path:a}}function uf(e){let t=$d.exec(e);if(t)return t[1]??null}function df(e,t,n){for(let t of e){let e=Qd.exec(t);if(e?.[1]===n)return e[2]}let r=e[t];return r===void 0||Qd.test(r)?void 0:r}function ff(e,t,n){let r=[],i=0,a=n+1;for(let o=n;o<e.length;o++){let n=e.charAt(o);if(n===`(`||n===`[`||n===`{`)i++;else if(n===`)`||n===`]`||n===`}`){if(i--,i===0)return r.push(t.slice(a,o).trim()),r.length===1&&r[0]===``?[]:r}else n===`,`&&i===1&&(r.push(t.slice(a,o).trim()),a=o+1)}return null}function pf(e){let t=e.split(``),n=e.length,r=(e,n)=>{for(let r=e;r<n;r++)t[r]!==`
187
+ `){o=!0,a++;continue}if(s===` `||s===` `||s===`\r`||s===``){a++;continue}let c=o;if(o=!1,s===`/`&&e.charAt(a+1)===`/`){let r=ad(e,a);i(t,a,r),i(n,a,r),a=r;continue}if(s===`/`&&e.charAt(a+1)===`*`){let o=e.indexOf(`*/`,a+2),s=o<0?r:o+2;i(t,a,s),i(n,a,s),a=s;continue}if(s===`#`&&c){let r=ad(e,a),o=e.indexOf(`//`,a);o>=0&&o<r&&i(t,o,r),i(n,a,r),a=r;continue}let l=sd(e,a);if(l){let t=cd(e,l);i(n,l.quoteAt+1,t-1),a=Math.max(t,a+1)}else if(s===`'`){let t=ud(e,a);i(n,a+1,t-1),a=t}else a++}return{blanked:t.join(``),code:n.join(``)}}function sd(e,t){let n=t,r=0,i=!1;for(;e.charAt(n)===`$`||e.charAt(n)===`@`;)e.charAt(n)===`$`?r++:i=!0,n++;if(e.charAt(n)!==`"`)return null;let a=0;for(;e.charAt(n+a)===`"`;)a++;return{quoteAt:n,dollars:r,verbatim:i,quotes:a}}function cd(e,t){let n=e.length,r=!t.verbatim&&t.quotes>=3;if(!t.verbatim&&t.quotes===2)return t.quoteAt+2;if(r){let r=t.quotes,i=t.quoteAt+r;for(;i<n;){let n=e.charAt(i);if(n===`"`){let t=1;for(;e.charAt(i+t)===`"`;)t++;if(t>=r)return i+t;i+=t}else if(t.dollars>0&&n===`{`){let n=1;for(;e.charAt(i+n)===`{`;)n++;if(n<t.dollars){i+=n;continue}i=ld(e,i+n,t.dollars)}else i++}return n}let i=t.quoteAt+1;for(;i<n;){let n=e.charAt(i);if(t.verbatim){if(n===`"`){if(e.charAt(i+1)===`"`){i+=2;continue}return i+1}}else{if(n===`\\`){i+=2;continue}if(n===`"`)return i+1;if(n===`
188
+ `)return i}if(t.dollars>0&&n===`{`){if(e.charAt(i+1)===`{`){i+=2;continue}i=ld(e,i+1,1)}else i++}return n}function ld(e,t,n){let r=e.length,i=0,a=t;for(;a<r;){let t=e.charAt(a);if(t===`{`)i++,a++;else if(t===`}`){if(i>0)i--,a++;else return Math.min(r,a+n)}else if(t===`'`)a=ud(e,a);else{let t=sd(e,a);a=t?Math.max(cd(e,t),a+1):a+1}}return r}function ud(e,t){if(e.charAt(t+1)===`\\`){let n=e.indexOf(`'`,t+3);return n<0||n-t>12?t+1:n+1}return e.charAt(t+2)===`'`?t+3:t+1}function dd(e,t){let n=e.charAt(t),r=n===`(`?`)`:n===`[`?`]`:`}`,i=0;for(let a=t;a<e.length;a++){let t=e.charAt(a);if(t===n)i++;else if(t===r&&(i--,i===0))return a}return e.length-1}function fd(e,t){let n=0;for(let r=t;r<e.length;r++){let t=e.charAt(r);if(t===`(`||t===`[`||t===`{`)n++;else if(t===`)`||t===`]`||t===`}`){if(n===0)return r;n--}else if(t===`;`&&n===0)return r}return e.length}function pd(e,t){let n=0;for(let r=t;r<e.length;r++){let i=e.charAt(r);if(i===`(`||i===`[`)n++;else if(i===`)`||i===`]`)n=Math.max(0,n-1);else if(n===0){if(i===`{`||i===`;`||i===`}`)return{end:r,terminator:i};if(i===`=`){let n=e.slice(t,r);if(Fu.test(n)||Ru.test(n))continue;return{end:r,terminator:e.charAt(r+1)===`>`?`=>`:`=`}}}}return{end:e.length,terminator:`eof`}}function md(e,t,n,r){let i=[],a=0,o=t;for(let s=t;s<n;s++){let t=e.charAt(s);t===`(`||t===`[`||t===`{`?a++:t===`)`||t===`]`||t===`}`?a--:t===r&&a===0&&(i.push([o,s]),o=s+1)}return i.push([o,n]),i}function hd(e,t,n){let r=[],i=t;for(;;){for(;i<n&&U(e.charAt(i));)i++;if(e.charAt(i)!==`[`)break;let t=dd(e,i);if(t>=n)break;r.push([i,t+1]),i=t+1}return{restStart:i,ranges:r}}function gd(e,t,n){for(let[r,i]of n){let n=/\bHubMethodName(?:Attribute)?\s*\(/.exec(e.slice(r,i));if(!n)continue;let a=r+n.index+n[0].length-1,o=dd(e,a);return Rd(t.slice(a+1,o).trim())}return null}function _d(e){let t=0,n=()=>{for(;t<e.length&&U(e.charAt(t));)t++},r=(n,r)=>{let i=0;for(;t<e.length;t++){let a=e.charAt(t);if(a===n)i++;else if(a===r&&(i--,i===0)){t++;return}}};if(n(),e.charAt(t)===`<`&&r(`<`,`>`),n(),e.charAt(t)===`(`&&r(`(`,`)`),n(),e.charAt(t)!==`:`)return[];let i=[],a=0,o=t+1,s=t=>{let n=vd(e.slice(o,t)).replace(/\s+/g,` `).trim();n!==``&&i.push(n)};for(let n=t+1;n<e.length;n++){let t=e.charAt(n);if(t===`<`||t===`(`||t===`[`)a++;else if(t===`>`||t===`)`||t===`]`)a--;else if(a===0&&t===`,`)s(n),o=n+1;else if(a===0&&e.startsWith(`where`,n)&&!rd(e.charAt(n-1))&&U(e.charAt(n+5)))return s(n),i}return s(e.length),i}function vd(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charAt(n);if(r===`<`)t++;else if(r===`>`)t--;else if(r===`(`&&t===0)return e.slice(0,n)}return e}function yd(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charAt(n);if(r===`(`){if(t===0){let t=RegExp(`(@?[A-Za-z_]\\w*)\\s*(?:${Bu})?\\s*$`).exec(e.slice(0,n)),r=t?.[1]??``;if(t&&!Mu.has(r))return{name:r.replace(/^@/,``),index:t.index}}t++}else r===`)`&&(t=Math.max(0,t-1))}return null}function bd(e,t,n){let r=[],i=[],a=[],o=null,s=``,c=()=>{for(let e=a.length-1;e>=0;e--){let t=a[e];if(t?.kind===`type`)return t}return null},l=()=>[s,...a.filter(e=>e.kind===`namespace`).map(e=>e.namespaceName)].filter(Boolean).join(`.`),u=(r,i,a,o)=>{let s=r.cls,c=yd(i);if(!s||!c||c.name===s.name)return;let l=i.slice(0,c.index);if(/\b(?:operator|delegate|event)\b/.test(l))return;let u=new Set(l.split(/\s+/));s.methods.push({name:c.name,isPublic:u.has(`public`)||r.isInterface&&!u.has(`private`)&&!u.has(`protected`)&&!u.has(`internal`),isStatic:u.has(`static`),isOverride:u.has(`override`),hubMethodName:gd(e,t,o),line:n(a+c.index)})},d=(n,r,i,a)=>{let o=n.cls;if(!o)return;let s=md(e,i,a,`,`),c=r.replace(/^@/,``);s.forEach(([n,r],i)=>{let a=n;if(i>0){let t=/^\s*(@?[A-Za-z_]\w*)\s*=/.exec(e.slice(n,r));if(!t)return;c=(t[1]??``).replace(/^@/,``),a=n+t[0].length}let s=Rd(t.slice(a,r).trim());s!==null&&o.constStrings.set(c,s)})},f=(t,f,p)=>{let{restStart:m,ranges:h}=hd(e,t,f.end),g=m;for(;g<f.end&&U(e.charAt(g));)g++;let _=e.slice(g,f.end);if(_.trim()===``)return null;if(f.terminator===`;`){let e=Iu.exec(_);if(e)return r.push((e[1]??``).replace(/\s+/g,``)),null}let v=Lu.exec(_);if(v){let e=(v[1]??``).replace(/\s+/g,``);if(f.terminator===`;`)return s=e,o??=e,null;let t=[l(),e].filter(Boolean).join(`.`);return o??=t,{kind:`namespace`,cls:null,isInterface:!1,namespaceName:e}}let y=Pu.exec(_);if(y){let e=c(),t=(y[3]??``).replace(/^@/,``),r={name:t,fullName:e?.cls?`${e.cls.fullName}.${t}`:t,namespace:l(),bodyStart:f.end,bodyEnd:f.end,baseTypes:_d(_.slice(y[0].length)),isAbstract:/\babstract\b/.test(y[1]??``),methods:[],constStrings:/* @__PURE__ */ new Map,line:n(g+y[0].length-(y[3]??``).length)};return i.push(r),{kind:`type`,cls:r,isInterface:y[2]===`interface`,namespaceName:``}}let b=a[a.length-1];if(b?.kind!==`type`)return null;if(f.terminator===`=`){let e=zu.exec(_);return e&&d(b,e[1]??``,f.end+1,p),null}return u(b,_,g,h),null},p=0;for(;p<e.length;){let t=pd(e,p);if(t.terminator===`eof`)break;if(t.terminator===`}`){let e=a.pop();e?.cls&&(e.cls.bodyEnd=t.end),p=t.end+1;continue}if(t.terminator===`=`||t.terminator===`=>`){let n=fd(e,t.end+(t.terminator===`=>`?2:1));f(p,t,n),p=e.charAt(n)===`;`?n+1:n;continue}let n=f(p,t,t.end);t.terminator===`{`?n?(a.push(n),p=t.end+1):p=dd(e,t.end)+1:p=t.end+1}return{namespace:o,usings:r,classes:i}}function xd(e,t){let n=0;for(let r=t;r<e.length;r++){let t=e.charAt(r);if(t===`(`||t===`[`||t===`{`)n++;else if(t===`)`||t===`]`||t===`}`){if(n===0)return t===`)`?r:-1;n--}else if(t===`,`&&n===0)return r}return-1}function Sd(e,t){let n=t;for(;n>=0&&U(e.charAt(n));)n--;return n}function Cd(e,t){let n=e.charAt(t),r=n===`)`?`(`:`[`,i=0;for(let a=t;a>=0;a--){let t=e.charAt(a);if(t===n)i++;else if(t===r&&(i--,i===0))return a}return-1}function wd(e,t){let n=0;for(let r=t;r>=0;r--){let t=e.charAt(r);if(t===`>`)n++;else if(t===`<`){if(n--,n===0)return r}else if(!/[\w\s,.?[\]:]/.test(t))return-1}return-1}function Td(e,t){let n=t;for(;;){let t=Ed(e,n);if(t<0)return n;n=t;let r=/(?<![\w@])new\s+$/.exec(e.slice(Math.max(0,n-40),n));r&&(n-=r[0].length);let i=Sd(e,n-1);if(e.charAt(i)!==`.`||e.charAt(i-1)===`.`)return n;n=i;let a=Sd(e,i-1);(e.charAt(a)===`?`||e.charAt(a)===`!`)&&(n=a)}}function Ed(e,t){let n=Sd(e,t-1),r=-1;for(;;){let t=e.charAt(n);if(t===`)`||t===`]`){let i=Cd(e,n);if(i<0)return r;if(r=i,n=Sd(e,i-1),t===`)`&&e.charAt(n)===`>`){let t=wd(e,n);t>=0&&(r=t,n=Sd(e,t-1))}}else{if(rd(t)){let t=n;for(;t>0&&rd(e.charAt(t-1));)t--;return Nu.has(e.slice(t,n+1))&&r>=0?r:(t>0&&e.charAt(t-1)===`@`&&t--,t)}return r}}}function Dd(e,t,n,r,i){if(i>8)return null;let a=Pd(e.trim());if(a===``)return null;let o=Rd(a);if(o!==null)return[o];let s=Fd(a);if(s){let e=Dd(s.whenTrue,t,n,r,i+1),a=Dd(s.whenFalse,t,n,r,i+1);return!e||!a?null:[.../* @__PURE__ */ new Set([...e,...a])]}let c=Vu.exec(a);if(c){let e=c[1]??``;for(;/<[^<>]*>/.test(e);)e=e.replace(/<[^<>]*>/g,``);let t=(e.split(`.`).pop()??``).trim().replace(/^@/,``);return Uu.test(t)?[t]:null}let l=Hu.exec(a);return l?Od(l[1]??``,l[2]??``,t,n,r):Uu.test(a)?n===null?null:kd(a.replace(/^@/,``),t,n,r):null}function Od(e,t,n,r,i){let a=e.replace(/\s+/g,``).split(`.`).map(e=>e.replace(/^@/,``)),o=a.join(`.`),s=t.replace(/^@/,``),c=i.get(a[a.length-1]??``)??[],l=r?.namespace??n.namespace??``,u=[];a.length>1&&u.push(c.filter(e=>{let t=jd(e);return t===o||t.endsWith(`.${o}`)})),u.push(c.filter(e=>Md(e.namespace,l)),c.filter(e=>n.usings.includes(e.namespace)),c);for(let e of u)if(e.some(e=>e.constStrings.has(s)))return Nd(e,s);return null}function kd(e,t,n,r){let i=t.classes.filter(e=>e!==n&&e.namespace===n.namespace&&n.fullName.startsWith(`${e.fullName}.`)).sort((e,t)=>t.fullName.length-e.fullName.length),a=[];for(let t of[n,...i]){let n=(r.get(t.name)??[]).filter(e=>e.namespace===t.namespace&&e.fullName===t.fullName),i=n.includes(t)?n:[t,...n];if(a.push(...i),i.some(t=>t.constStrings.has(e)))return Nd(i,e)}let o=new Set(a),s=a;for(let t=0;t<8;t++){let t=[];for(let e of s)for(let i of e.baseTypes)for(let e of Ad(i,n.namespace,r))o.has(e)||(o.add(e),t.push(e));if(t.length===0)return null;if(t.some(t=>t.constStrings.has(e)))return Nd(t,e);s=t}return null}function Ad(e,t,n){let r=(e.replace(/<.*$/,``).trim().split(`.`).pop()??``).replace(/^@/,``),i=n.get(r)??[],a=i.filter(e=>e.namespace===t);return a.length>0?a:i}function jd(e){return e.namespace===``?e.fullName:`${e.namespace}.${e.fullName}`}function Md(e,t){return e===``||t===e||t.startsWith(`${e}.`)}function Nd(e,t){let n=/* @__PURE__ */ new Set;for(let r of e){let e=r.constStrings.get(t);e!==void 0&&n.add(e)}return n.size===1?[...n]:null}function Pd(e){let t=e;for(;t.startsWith(`(`);){let e=od(t).code;if(dd(e,0)!==t.length-1)break;t=t.slice(1,-1).trim()}return t}function Fd(e){let t=od(e).code,n=e=>t.charAt(e)===`?`&&!`?.[`.includes(t.charAt(e+1)),r=0,i=-1;for(let e=0;e<t.length&&i<0;e++){let a=t.charAt(e);a===`(`||a===`[`||a===`{`?r++:a===`)`||a===`]`||a===`}`?r--:a===`?`&&r===0&&(n(e)?i=e:t.charAt(e+1)===`?`&&e++)}if(i<0)return null;r=0;let a=0;for(let o=i+1;o<t.length;o++){let s=t.charAt(o);if(s===`(`||s===`[`||s===`{`)r++;else if(s===`)`||s===`]`||s===`}`)r--;else if(r===0&&s===`?`&&n(o))a++;else if(r===0&&s===`:`){if(t.charAt(o+1)===`:`){o++;continue}if(a===0)return{whenTrue:e.slice(i+1,o),whenFalse:e.slice(o+1)};a--}}return null}var Id={n:`
189
+ `,r:`\r`,t:` `,0:`\0`,a:`\x07`,b:`\b`,f:`\f`,v:`\v`,"\\":`\\`,'"':`"`,"'":`'`};function Ld(e){return e.replace(/\\(u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8}|x[0-9a-fA-F]{1,4}|[\s\S])/g,(e,t)=>{let n=t.charAt(0);return t.length>1?String.fromCodePoint(Number.parseInt(t.slice(1),16)):Id[n]??n})}function Rd(e){let t=/^[$@]*/.exec(e)?.[0]??``,n=t.split(`$`).length-1,r=t.includes(`@`),i=e.slice(t.length),a;if(r){let e=/^"((?:[^"]|"")*)"$/.exec(i);if(!e)return null;a=(e[1]??``).replace(/""/g,`"`)}else if(i.startsWith(`"""`)){let e=/^"+/.exec(i)?.[0]??``;if(!i.endsWith(e)||i.length<e.length*2)return null;let t=zd(i.slice(e.length,i.length-e.length));return t===null||n>0&&/[{}]/.test(t)?null:t}else{let e=/^"((?:[^"\\\r\n]|\\.)*)"$/.exec(i);if(!e)return null;a=e[1]??``}return n>0&&/[{}]/.test(a.replace(/\{\{|\}\}/g,``))?null:(r||(a=Ld(a)),n>0&&(a=a.replace(/\{\{/g,`{`).replace(/\}\}/g,`}`)),a)}function zd(e){if(!/[\r\n]/.test(e))return e;let t=e.split(/\r?\n/),n=t.shift()??``,r=t.pop()??``;return n.trim()!==``||r.trim()!==``?null:t.map(e=>e.startsWith(r)?e.slice(r.length):e.trimStart()).join(`
190
+ `)}var Bd=/^(?:Areas\/([^/]+)\/)?Pages\/(.+)\.cshtml$/i,Vd=/^[ \t]*@page\b/m,Hd=/^[ \t]*@model\s+([^\r\n]+?)\s*$/m,Ud=/^[ \t]*@inherits\b/m,Wd=/^[ \t]*@namespace\s+([\w.]+)/m,Gd=/^[ \t]*@using\s+([\w.]+)\s*;?[ \t]*$/gm,Kd=/<ProjectReference\b[^>]*?\bInclude\s*=\s*"([^"]+)"/g,qd=/(?:^|\/)Areas\/([^/]+)\//i,Jd=/<([A-Za-z][\w:.-]*)((?:"[^"]*"|'[^']*'|[^>"'])*)>/g,Yd=/([A-Za-z_@:][\w:.@-]*)\s*=\s*(?:"([^"]*)"|'([^']*)')/g,Xd=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,Zd=/"((?:[^"\\\n]|\\.)*)"|'((?:[^'\\\n]|\\.)*)'|`((?:[^`\\]|\\.)*)`/g,Qd=/[?&]handler=([^&#]*)/,$d=/^On(?:Get|Post|Put|Delete|Patch|Head|Options)(.*?)(?:Async)?$/,ef=/\bOn(?:Get|Post|Put|Delete|Patch|Head|Options)(\w*?)(?:Async)?\s*\(/g,tf=/^@?([A-Za-z_]\w*)\s*:(?!:)\s*([\s\S]*)$/,nf=/\barea\s*=\s*(?:"([^"]*)"|(\w[\w.]*))/i,rf=/^I[A-Z]/,af=/* @__PURE__ */ new Set([`url`,`urlhelper`,`_urlhelper`]),of=/* @__PURE__ */ new Set([`PageModel`,`object`,`Object`]),sf=/Page\s*\(|RedirectToPage/;function cf(e,t){let n={dynamicHandlers:0,unverifiedPages:0,foreignAreaLinks:0,unreadRouteValues:0,unresolvedLinks:0},i=[],a=new Set(t),o=/* @__PURE__ */ new Map,s=t=>{let n=o.get(t);if(n!==void 0)return n;let i=``;try{i=r(d(e,t),`utf8`).replace(/^/,``)}catch(e){if(!(e instanceof Error&&`code`in e&&e.code===`ENOENT`))throw e}return o.set(t,i),i},c=/* @__PURE__ */ new Map,l=(e,t,n,r)=>{let a=c.get(e);a||(a=s(e).split(`
191
+ `),c.set(e,a)),i.push({rule:n,file:e,line:t,text:(a[t-1]??``).trim().slice(0,160),hint:r})},u=t.filter(e=>e.endsWith(`.csproj`)).sort(),f=/* @__PURE__ */ new Map,m=/* @__PURE__ */ new Map;for(let e of u){let t=p.dirname(e),n=f.get(t);if(n){m.set(e,n);continue}let r={dir:t,name:p.basename(e,`.csproj`),own:/* @__PURE__ */ new Map,references:[],index:/* @__PURE__ */ new Map};f.set(t,r),m.set(e,r)}if(f.size===0)return{hits:i,skipped:n};let h=e=>{let t=p.dirname(e);for(;;){let e=f.get(t);if(e)return e;if(t===`.`||t===`/`)return null;t=p.dirname(t)}},g=/* @__PURE__ */ new Map;for(let e of t){if(!e.endsWith(`.cshtml`))continue;let t=h(e);if(!t)continue;let n=t.dir===`.`?e:e.slice(t.dir.length+1),r=Bd.exec(n);if(!r||!Vd.test(T(s(e),`markup`)))continue;let i=`/${r[2]}`,a={file:e,project:t.dir,area:r[1]??null,name:i,folder:p.dirname(i)};g.set(e,a),t.own.set(lf(a.area,i),a)}if(g.size===0)return{hits:i,skipped:n};for(let e of u){let t=m.get(e);if(t&&t.dir===p.dirname(e))for(let n of s(e).matchAll(Kd)){let e=p.normalize(p.join(t.dir,(n[1]??``).replaceAll(`\\`,`/`))),r=m.get(e);r&&r!==t&&!t.references.includes(r.dir)&&t.references.push(r.dir)}}for(let e of f.values()){e.index=new Map(e.own);let t=/* @__PURE__ */ new Set([e.dir]),n=[...e.references];for(let r=n.shift();r!==void 0;r=n.shift()){if(t.has(r))continue;t.add(r);let i=f.get(r);if(i){for(let[t,n]of i.own)e.index.has(t)||e.index.set(t,n);n.push(...i.references)}}}let _=/* @__PURE__ */ new Map;for(let e of f.values())for(let t of e.references)_.set(t,[..._.get(t)??[],e.dir]);for(let e of f.values()){let t=/* @__PURE__ */ new Set([e.dir]),n=[..._.get(e.dir)??[]];for(let r=n.shift();r!==void 0;r=n.shift()){if(t.has(r))continue;t.add(r);let i=f.get(r);if(i){for(let[t,n]of i.index)e.index.has(t)||e.index.set(t,n);n.push(..._.get(r)??[])}}}let v=/* @__PURE__ */ new Set;for(let e of t){let t=qd.exec(e)?.[1];t&&v.add(t.toLowerCase())}let y=[],b=/* @__PURE__ */ new Map,x=/* @__PURE__ */ new Map;for(let e of t){if(!e.endsWith(`.cs`))continue;let t=Ku(e,s(e));y.push(t),b.set(e,t);for(let e of t.classes)x.set(e,t)}let S=td(y),C=/* @__PURE__ */ new Map,ee=e=>{let t=C.get(e);if(t!==void 0)return t;let n=T(s(e),`markup`);return C.set(e,n),n},te=e=>{let t=/* @__PURE__ */ new Set,n=e=>{let n=ee(e),r=Wd.exec(n)?.[1];r&&t.add(r);for(let e of n.matchAll(Gd))e[1]&&t.add(e[1])};n(e.file);for(let t=p.dirname(e.file);;t=p.dirname(t)){let r=p.join(t,`_ViewImports.cshtml`);if(a.has(r)&&n(r),t===e.project||t===`.`||t===`/`)break}return t},ne=(e,t,n)=>{if(n.has(e))return!0;n.add(e);for(let n of e.methods){if(!n.isPublic||n.isStatic)continue;let e=$d.exec(n.name);e&&t.add((e[1]??``).toLowerCase())}let r=e.baseTypes[0];if(r===void 0)return!0;let i=uf(r);if(rf.test(i))return!0;let a=S.get(i);if(!a)return of.has(i);let o=!0;for(let e of a)o=ne(e,t,n)&&o;return o},re=/* @__PURE__ */ new Map,w=e=>{if(re.has(e.file))return re.get(e.file)??null;let t=ie(e);return re.set(e.file,t),t},ie=e=>{let t=ee(e.file),n=/* @__PURE__ */ new Set;for(let e of t.matchAll(ef))n.add((e[1]??``).toLowerCase());let r=Hd.exec(t)?.[1];if(r===void 0)return Ud.test(t)?null:{name:`the page`,handlers:n};let i=r.replace(/<.*$/,``).trim().split(`.`),a=i[i.length-1]??``,o=i.slice(0,-1).join(`.`),s=S.get(a)??[];if(s.length===0)return null;let c=s.filter(t=>x.get(t)?.file===`${e.file}.cs`);if(c.length>0)s=c;else if(s.length>1){let t=s.filter(t=>h(x.get(t)?.file??``)?.dir===e.project);if(t.length>0&&(s=t),s.length>1){let t=te(e);o&&t.add(o);let n=s.filter(e=>t.has(x.get(e)?.namespace??``));n.length>0&&(s=n)}}let l=new Set(s.map(e=>`${x.get(e)?.namespace??``}|${e.fullName}`));if(l.size>1)return null;let[u]=l;s=(S.get(a)??[]).filter(e=>`${x.get(e)?.namespace??``}|${e.fullName}`===u);let d=new Set(n),f=/* @__PURE__ */ new Set,p=!0;for(let e of s)p=ne(e,d,f)&&p;return p?{name:a,handlers:d}:null},ae=/* @__PURE__ */ new Set,oe=(e,t,n,r)=>{let i=w(e);i?i.handlers.has(t.toLowerCase())||l(n,r,`razor-page-handler`,`add On<Verb>${t}Async to ${i.name}, or fix the handler name`):ae.add(e.file)},se=(e,t,r,i,a,o)=>{let s=ff(t,r,i);if(!s)return n.unresolvedLinks++,null;let c=e.index.get(lf(s.area,s.path));if(c)return c;if(s.area!==null&&!v.has(s.area.toLowerCase()))return n.foreignAreaLinks++,null;let u=s.area===null?s.path:`${s.path} (area ${s.area})`;return l(a,o,`razor-page-link`,`no page ${u} in ${e.name}; fix the link or add the page`),null},ce=(e,t,r,i)=>{let a=e.indexOf(`?`);if(a<0)return;let o=Qd.exec(e.slice(a))?.[1];o!==void 0&&(e.slice(0,a).trim()===``?/[@${]/.test(o)?n.dynamicHandlers++:o!==``&&(t?oe(t,o,r,i):n.unresolvedLinks++):n.unresolvedLinks++)};for(let e of t){if(!e.endsWith(`.cshtml`))continue;let t=h(e);if(!t||t.index.size===0)continue;let r=s(e),i=ee(e),a=_f(r),o=g.get(e)??null,c=o?{area:o.area,folder:o.folder}:{area:qd.exec(e)?.[1]??null,folder:null};for(let r of i.matchAll(Jd)){let i=r.index+1+(r[1]?.length??0),s=/* @__PURE__ */ new Map;for(let e of(r[2]??``).matchAll(Yd))s.set((e[1]??``).toLowerCase(),{value:e[2]??e[3]??``,at:i+e.index});let l=s.get(`asp-page`),u=s.get(`asp-area`),d=s.get(`asp-page-handler`),f=o;if(l&&(!l.value.includes(`@`)&&!u?.value.includes(`@`)?f=se(t,l.value,u?.value,c,e,a(l.at)):(f=null,n.unresolvedLinks++)),d){let t=d.value.trim();t.includes(`@`)?n.dynamicHandlers++:t!==``&&f?oe(f,t,e,a(d.at)):t!==``&&!l&&n.unresolvedLinks++}for(let t of[`href`,`action`,`formaction`]){let n=s.get(t);n&&ce(n.value,o,e,a(n.at))}}for(let t of i.matchAll(Xd)){if(/\bsrc\s*=/i.test(t[1]??``))continue;let n=t[2]??``,r=t.index+t[0].length-9-n.length;for(let t of n.matchAll(Zd))ce(t[1]??t[2]??t[3]??``,o,e,a(r+t.index))}}for(let e of y){let t=e.file,r=h(t);if(!r||r.index.size===0||!sf.test(e.blanked))continue;let i=g.get(t.replace(/\.cs$/,``))??null,a=i?{area:i.area,folder:i.folder}:{area:qd.exec(t)?.[1]??null,folder:null},o=gf(e.blanked),s=[];for(let t of qu(e,[`Page`,`RedirectToPage`,`RedirectToPagePermanent`])){if(t.method===`Page`&&!df(t.receiver))continue;let n=o.indexOf(`(`,t.index);n>=0&&s.push({method:t.method,open:n,at:nd(e,t.index)})}for(let i of s){let s=hf(o,e.blanked,i.open);if(!s){n.unresolvedLinks++;continue}let c=mf(s,0,`pageName`);if(c===void 0)continue;let l=ed(c,e,i.at,S);if(!l){n.unresolvedLinks++;continue}if(s.slice(1).some(t=>{let n=(tf.exec(t)?.[2]??t).trim();return n!==`null`&&!/^new\s*\{/.test(n)&&ed(n,e,i.at,S)===null})){n.unreadRouteValues++;continue}let u=pf(s.slice(1).join(`,`));if(u===null){n.unreadRouteValues++;continue}let d=mf(s,1,`pageHandler`),f=d===void 0?null:ed(d,e,i.at,S),p=e.lineAt(i.open);for(let e of l){let n=se(r,e,u,a,t,p);if(n&&f)for(let e of f)e!==``&&oe(n,e,t,p)}}}return n.unverifiedPages=ae.size,i.sort((e,t)=>e.file<t.file?-1:e.file>t.file?1:e.line-t.line),{hits:i,skipped:n}}function lf(e,t){return`${(e??``).toLowerCase()}|${t.toLowerCase()}`}function uf(e){let t=e.replace(/<.*$/,``).trim().split(`.`);return t[t.length-1]??``}function df(e){let t=e.split(`.`).pop()?.replace(/[?!]$/,``).toLowerCase()??``;return af.has(t)}function ff(e,t,n){let r=e.trim();if(r===``||/[@{?#]/.test(r))return null;let i=t===void 0?n.area:t===``?null:t,a;if(r.startsWith(`/`))a=p.normalize(r);else if(n.folder===null)return null;else a=p.normalize(p.join(n.folder,r));return a=a.replace(/\/+$/,``),a===``?null:{area:i,path:a}}function pf(e){let t=nf.exec(e);if(t)return t[1]??null}function mf(e,t,n){for(let t of e){let e=tf.exec(t);if(e?.[1]===n)return e[2]}let r=e[t];return r===void 0||tf.test(r)?void 0:r}function hf(e,t,n){let r=[],i=0,a=n+1;for(let o=n;o<e.length;o++){let n=e.charAt(o);if(n===`(`||n===`[`||n===`{`)i++;else if(n===`)`||n===`]`||n===`}`){if(i--,i===0)return r.push(t.slice(a,o).trim()),r.length===1&&r[0]===``?[]:r}else n===`,`&&i===1&&(r.push(t.slice(a,o).trim()),a=o+1)}return null}function gf(e){let t=e.split(``),n=e.length,r=(e,n)=>{for(let r=e;r<n;r++)t[r]!==`
192
192
  `&&t[r]!==`\r`&&(t[r]=` `)},i=0;for(;i<n;){let t=e.charAt(i);if(t===`'`){let t=e.charAt(i+1)===`\\`?e.indexOf(`'`,i+3):e.charAt(i+2)===`'`?i+2:-1;t>0&&t-i<=10?(r(i+1,t),i=t+1):i++;continue}if(t!==`"`&&t!==`$`&&t!==`@`){i++;continue}let a=i,o=!1;for(;e.charAt(a)===`$`||e.charAt(a)===`@`;)e.charAt(a)===`@`&&(o=!0),a++;if(e.charAt(a)!==`"`){i=a;continue}let s=0;for(;e.charAt(a+s)===`"`;)s++;if(!o&&s>=3){let t=e.indexOf(`"`.repeat(s),a+s),o=t<0?n:t;r(a+s,o),i=o+s;continue}if(s===2){i=a+2;continue}let c=a+1;for(;c<n;){let t=e.charAt(c);if(t===`\\`&&!o)c+=2;else if(t===`"`){if(o&&e.charAt(c+1)===`"`)c+=2;else break}else if(t===`
193
- `&&!o)break;else c++}r(a+1,Math.min(c,n)),i=c+1}return t.join(``)}function mf(e){let t=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t.push(n+1);return e=>{let n=0,r=t.length-1;for(;n<r;){let i=n+r+1>>1;(t[i]??0)<=e?n=i:r=i-1}return n+1}}var hf=`route-internal-id`,gf=`route by the record's public id ("{publicId:guid}"), never its internal number`,_f=`pass the record's PublicId, never its internal Id`,vf=/^\s*@page\s+"([^"]*)"/gm,yf=/\basp-route-([A-Za-z][\w-]*)\s*=\s*"@\(?\s*([\w.?!]+?)\.Id\s*\)?"/g,bf=/\b(?:Route|Http(?:Get|Post|Put|Patch|Delete))\s*\(\s*@?"([^"]*)"/g,xf=/\.Map(?:Get|Post|Put|Patch|Delete|Methods)?\s*\(\s*@?"([^"]*)"/g,Sf=/\{([^{}]*)\}/g,Cf=/^(?:[Ii]d|[a-z][A-Za-z0-9]*Id)$/,wf=[`int`,`long`];function Tf(e){let t=[];for(let n of e.matchAll(Sf)){let[e=``,...r]=(n[1]??``).replace(/^\*{1,2}/,``).split(`:`),i=e.replace(/=.*$/,``).replace(/\?$/,``);Cf.test(i)&&r.some(e=>wf.includes(e.replace(/\?$/,``)))&&t.push(i)}return t}function Ef(e){let t=[];for(let n of e.matchAll(Sf)){let[e=``,...r]=(n[1]??``).replace(/^\*{1,2}/,``).split(`:`);r.some(e=>e.replace(/\?$/,``)===`guid`)&&t.push(e.replace(/=.*$/,``).replace(/\?$/,``))}return t}function Df(e,t){return e.slice(0,t).split(`
194
- `).length}var Of=/\basp-page\s*=\s*"([^"]*)"/,kf=/\basp-area\s*=\s*"([^"]*)"/,Af=/(?:^|\/)(?:Areas\/([^/]+)\/)?Pages(\/.+)\.cshtml$/i;function jf(e){let t=e?Af.exec(e.replaceAll(`\\`,`/`)):null;return t?{area:t[1]??null,path:t[2]??``}:null}function Mf(e,t,n){let r=e.lastIndexOf(`<`,t),i=e.indexOf(`>`,t),a=e.slice(r===-1?0:r,i===-1?e.length:i),o=kf.exec(a)?.[1],s=Of.exec(a)?.[1];return s===void 0?o===void 0||n!==null&&o.toLowerCase()===(n.area??``).toLowerCase():n===null||o!==void 0&&o.toLowerCase()!==(n.area??``).toLowerCase()?!1:s.startsWith(`/`)?s.toLowerCase()===n.path.toLowerCase():s.split(`/`).pop()?.toLowerCase()===n.path.split(`/`).pop()?.toLowerCase()}function Nf(e,t,n){let r=e.split(`
195
- `),i=[],a=(e,t)=>{i.push({rule:hf,line:e,text:(r[e-1]??``).trim().slice(0,160),hint:t})},o=(e,t)=>{for(let n of Tf(e))a(t,gf)};if(t===`markup`){let t=T(e,`markup`),r=/* @__PURE__ */ new Set;for(let e of t.matchAll(vf)){o(e[1]??``,Df(t,e.index+e[0].indexOf(`@page`)));for(let t of Ef(e[1]??``))r.add(t.toLowerCase())}let s=jf(n);for(let e of t.matchAll(yf))r.has((e[1]??``).toLowerCase())&&Mf(t,e.index,s)||a(Df(t,e.index),_f);return i}for(let t of[bf,xf])for(let n of e.matchAll(t)){let t=Df(e,n.index);(r[t-1]??``).trim().startsWith(`//`)||o(n[1]??``,t)}return i}var Pf=`web-route-literal`,Ff=`pass href("<path>") from react-router so the route table checks it`,If=/<(?:Link|NavLink|Navigate)(?=[\s/>])/g,Lf=/to\s*=\s*/y,Rf=/(?<![\w$.])([\w$]+)\s*\(/g,zf=/(?<![\w$.])(?:const|let|var)\s+([\w$]+)\s*(?::[^=;\n]+)?=\s*useNavigate\s*\(/g,Bf=/\bimport\s+(?:type\s+)?(?:[\w$]+\s*,\s*)?\{([^}]*)\}\s*from\s*["'](?:react-router|react-router-dom)["']/g,Vf=/^\s*redirect(?:\s+as\s+([\w$]+))?\s*$/;function Hf(e){let{blanked:t,lineStarts:n}=Jr(e),r=e.split(`
196
- `),i=[],a=e=>{let t=Yf(n,e);i.push({rule:Pf,line:t+1,text:(r[t]??``).trim().slice(0,160),hint:Ff})};for(let e of t.matchAll(If)){let n=(e.index??0)+e[0].length;for(let e of Uf(t,n))Wf(t,e.value)&&a(e.at)}let o=/* @__PURE__ */ new Set;for(let e of t.matchAll(zf))e[1]&&o.add(e[1]);for(let e of t.matchAll(Bf))for(let t of(e[1]??``).split(`,`)){let e=Vf.exec(t);e&&o.add(e[1]??`redirect`)}if(o.size>0)for(let e of t.matchAll(Rf)){if(!o.has(e[1]??``))continue;let n=Gf(t,Jf(t,(e.index??0)+e[0].length));n&&qf(n)&&/[,)]/.test(t.charAt(Jf(t,n.end)))&&a(e.index??0)}return i.sort((e,t)=>e.line-t.line),i}function Uf(e,t){let n=[],r=0,i=t;for(;i<e.length;){let t=e.charAt(i);if(t===`"`||t===`'`||t==="`"){let t=Gf(e,i);i=t?t.end:i+1}else{if(t===`{`)r+=1;else if(t===`}`)r=Math.max(0,r-1);else if(t===`>`&&r===0)break;else if(r===0&&t===`t`&&/\s/.test(e.charAt(i-1))){Lf.lastIndex=i;let t=Lf.exec(e);t&&n.push({at:i,value:i+t[0].length})}i+=1}}return n}function Wf(e,t){if(e.charAt(t)===`{`){let n=Gf(e,Jf(e,t+1));return n!==null&&qf(n)&&e.charAt(Jf(e,n.end))===`}`}let n=Gf(e,t);return n!==null&&!n.subst&&qf(n)}function Gf(e,t){let n=e.charAt(t);if(n!==`"`&&n!==`'`&&n!=="`")return null;let r=-1,i=t+1;for(;i<e.length;){let a=e.charAt(i);if(a===`\\`)i+=2;else{if(a===n)return{head:r===-1?e.slice(t+1,i):e.slice(t+1,r),subst:r!==-1,end:i+1};if(n==="`"&&a===`$`&&e.charAt(i+1)===`{`)r===-1&&(r=i),i=Kf(e,i+1);else{if(a===`
197
- `&&n!=="`")return null;i+=1}}}return null}function Kf(e,t){let n=0;for(let r=t;r<e.length;r+=1){let t=e.charAt(r);if(t===`{`)n+=1;else if(t===`}`&&(--n,n===0))return r+1}return e.length}function qf(e){return e.head.startsWith(`/`)||e.head.startsWith(`.`)}function Jf(e,t){let n=t;for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n}function Yf(e,t){let n=0,r=e.length-1;for(;n<r;){let i=n+r+1>>1;(e[i]??1/0)<=t?n=i:r=i-1}return n}var Xf=`script-integrity`,Zf=/<script(?=[\s/>])/gi,Qf=/(?<![\w-])src\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+))/i,$f=/(?<![\w-])integrity\s*=/i,ep=/^(?:https?:\/\/|\/\/)/i,tp=`A script from another host runs with the page's full rights if that host is compromised. Add integrity="sha384-…" and crossorigin="anonymous" for an exact pinned version, or serve the file from the site.`;function np(e,t){let n=null;for(let r=t;r<e.length;r+=1){let t=e[r];if(n)t===n&&(n=null);else if(t===`"`||t===`'`)n=t;else if(t===`>`)return r}return e.length}function rp(e){let t=T(e,`markup`),n=e.split(`
198
- `),r=[];for(let e of t.matchAll(Zf)){let i=t.slice(e.index,np(t,e.index)),a=Qf.exec(i);if(!a)continue;let o=a[1]??a[2]??a[3]??``;if(!ep.test(o)||$f.test(i))continue;let s=t.slice(0,e.index).split(`
199
- `).length;r.push({rule:Xf,line:s,text:(n[s-1]??``).trim().slice(0,160),hint:tp})}return r}function ip(e,t){if(!/\.(?:jsx|tsx|cshtml)$/i.test(e))return[];let n=t.endsWith(`
193
+ `&&!o)break;else c++}r(a+1,Math.min(c,n)),i=c+1}return t.join(``)}function _f(e){let t=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t.push(n+1);return e=>{let n=0,r=t.length-1;for(;n<r;){let i=n+r+1>>1;(t[i]??0)<=e?n=i:r=i-1}return n+1}}var vf=`route-internal-id`,yf=`route by the record's public id ("{publicId:guid}"), never its internal number`,bf=`pass the record's PublicId, never its internal Id`,xf=/^\s*@page\s+"([^"]*)"/gm,Sf=/\basp-route-([A-Za-z][\w-]*)\s*=\s*"@\(?\s*([\w.?!]+?)\.Id\s*\)?"/g,Cf=/\b(?:Route|Http(?:Get|Post|Put|Patch|Delete))\s*\(\s*@?"([^"]*)"/g,wf=/\.Map(?:Get|Post|Put|Patch|Delete|Methods)?\s*\(\s*@?"([^"]*)"/g,Tf=/\{([^{}]*)\}/g,Ef=/^(?:[Ii]d|[a-z][A-Za-z0-9]*Id)$/,Df=[`int`,`long`];function Of(e){let t=[];for(let n of e.matchAll(Tf)){let[e=``,...r]=(n[1]??``).replace(/^\*{1,2}/,``).split(`:`),i=e.replace(/=.*$/,``).replace(/\?$/,``);Ef.test(i)&&r.some(e=>Df.includes(e.replace(/\?$/,``)))&&t.push(i)}return t}function kf(e){let t=[];for(let n of e.matchAll(Tf)){let[e=``,...r]=(n[1]??``).replace(/^\*{1,2}/,``).split(`:`);r.some(e=>e.replace(/\?$/,``)===`guid`)&&t.push(e.replace(/=.*$/,``).replace(/\?$/,``))}return t}function Af(e,t){return e.slice(0,t).split(`
194
+ `).length}var jf=/\basp-page\s*=\s*"([^"]*)"/,Mf=/\basp-area\s*=\s*"([^"]*)"/,Nf=/(?:^|\/)(?:Areas\/([^/]+)\/)?Pages(\/.+)\.cshtml$/i;function Pf(e){let t=e?Nf.exec(e.replaceAll(`\\`,`/`)):null;return t?{area:t[1]??null,path:t[2]??``}:null}function Ff(e,t,n){let r=e.lastIndexOf(`<`,t),i=e.indexOf(`>`,t),a=e.slice(r===-1?0:r,i===-1?e.length:i),o=Mf.exec(a)?.[1],s=jf.exec(a)?.[1];return s===void 0?o===void 0||n!==null&&o.toLowerCase()===(n.area??``).toLowerCase():n===null||o!==void 0&&o.toLowerCase()!==(n.area??``).toLowerCase()?!1:s.startsWith(`/`)?s.toLowerCase()===n.path.toLowerCase():s.split(`/`).pop()?.toLowerCase()===n.path.split(`/`).pop()?.toLowerCase()}function If(e,t,n){let r=e.split(`
195
+ `),i=[],a=(e,t)=>{i.push({rule:vf,line:e,text:(r[e-1]??``).trim().slice(0,160),hint:t})},o=(e,t)=>{for(let n of Of(e))a(t,yf)};if(t===`markup`){let t=T(e,`markup`),r=/* @__PURE__ */ new Set;for(let e of t.matchAll(xf)){o(e[1]??``,Af(t,e.index+e[0].indexOf(`@page`)));for(let t of kf(e[1]??``))r.add(t.toLowerCase())}let s=Pf(n);for(let e of t.matchAll(Sf))r.has((e[1]??``).toLowerCase())&&Ff(t,e.index,s)||a(Af(t,e.index),bf);return i}for(let t of[Cf,wf])for(let n of e.matchAll(t)){let t=Af(e,n.index);(r[t-1]??``).trim().startsWith(`//`)||o(n[1]??``,t)}return i}var Lf=`web-route-literal`,Rf=`pass href("<path>") from react-router so the route table checks it`,zf=/<(?:Link|NavLink|Navigate)(?=[\s/>])/g,Bf=/to\s*=\s*/y,Vf=/(?<![\w$.])([\w$]+)\s*\(/g,Hf=/(?<![\w$.])(?:const|let|var)\s+([\w$]+)\s*(?::[^=;\n]+)?=\s*useNavigate\s*\(/g,Uf=/\bimport\s+(?:type\s+)?(?:[\w$]+\s*,\s*)?\{([^}]*)\}\s*from\s*["'](?:react-router|react-router-dom)["']/g,Wf=/^\s*redirect(?:\s+as\s+([\w$]+))?\s*$/;function Gf(e){let{blanked:t,lineStarts:n}=Zr(e),r=e.split(`
196
+ `),i=[],a=e=>{let t=Qf(n,e);i.push({rule:Lf,line:t+1,text:(r[t]??``).trim().slice(0,160),hint:Rf})};for(let e of t.matchAll(zf)){let n=(e.index??0)+e[0].length;for(let e of Kf(t,n))qf(t,e.value)&&a(e.at)}let o=/* @__PURE__ */ new Set;for(let e of t.matchAll(Hf))e[1]&&o.add(e[1]);for(let e of t.matchAll(Uf))for(let t of(e[1]??``).split(`,`)){let e=Wf.exec(t);e&&o.add(e[1]??`redirect`)}if(o.size>0)for(let e of t.matchAll(Vf)){if(!o.has(e[1]??``))continue;let n=Jf(t,Zf(t,(e.index??0)+e[0].length));n&&Xf(n)&&/[,)]/.test(t.charAt(Zf(t,n.end)))&&a(e.index??0)}return i.sort((e,t)=>e.line-t.line),i}function Kf(e,t){let n=[],r=0,i=t;for(;i<e.length;){let t=e.charAt(i);if(t===`"`||t===`'`||t==="`"){let t=Jf(e,i);i=t?t.end:i+1}else{if(t===`{`)r+=1;else if(t===`}`)r=Math.max(0,r-1);else if(t===`>`&&r===0)break;else if(r===0&&t===`t`&&/\s/.test(e.charAt(i-1))){Bf.lastIndex=i;let t=Bf.exec(e);t&&n.push({at:i,value:i+t[0].length})}i+=1}}return n}function qf(e,t){if(e.charAt(t)===`{`){let n=Jf(e,Zf(e,t+1));return n!==null&&Xf(n)&&e.charAt(Zf(e,n.end))===`}`}let n=Jf(e,t);return n!==null&&!n.subst&&Xf(n)}function Jf(e,t){let n=e.charAt(t);if(n!==`"`&&n!==`'`&&n!=="`")return null;let r=-1,i=t+1;for(;i<e.length;){let a=e.charAt(i);if(a===`\\`)i+=2;else{if(a===n)return{head:r===-1?e.slice(t+1,i):e.slice(t+1,r),subst:r!==-1,end:i+1};if(n==="`"&&a===`$`&&e.charAt(i+1)===`{`)r===-1&&(r=i),i=Yf(e,i+1);else{if(a===`
197
+ `&&n!=="`")return null;i+=1}}}return null}function Yf(e,t){let n=0;for(let r=t;r<e.length;r+=1){let t=e.charAt(r);if(t===`{`)n+=1;else if(t===`}`&&(--n,n===0))return r+1}return e.length}function Xf(e){return e.head.startsWith(`/`)||e.head.startsWith(`.`)}function Zf(e,t){let n=t;for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n}function Qf(e,t){let n=0,r=e.length-1;for(;n<r;){let i=n+r+1>>1;(e[i]??1/0)<=t?n=i:r=i-1}return n}var $f=`script-integrity`,ep=/<script(?=[\s/>])/gi,tp=/(?<![\w-])src\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+))/i,np=/(?<![\w-])integrity\s*=/i,rp=/^(?:https?:\/\/|\/\/)/i,ip=`A script from another host runs with the page's full rights if that host is compromised. Add integrity="sha384-…" and crossorigin="anonymous" for an exact pinned version, or serve the file from the site.`;function ap(e,t){let n=null;for(let r=t;r<e.length;r+=1){let t=e[r];if(n)t===n&&(n=null);else if(t===`"`||t===`'`)n=t;else if(t===`>`)return r}return e.length}function op(e){let t=T(e,`markup`),n=e.split(`
198
+ `),r=[];for(let e of t.matchAll(ep)){let i=t.slice(e.index,ap(t,e.index)),a=tp.exec(i);if(!a)continue;let o=a[1]??a[2]??a[3]??``;if(!rp.test(o)||np.test(i))continue;let s=t.slice(0,e.index).split(`
199
+ `).length;r.push({rule:$f,line:s,text:(n[s-1]??``).trim().slice(0,160),hint:ip})}return r}function sp(e,t){if(!/\.(?:jsx|tsx|cshtml)$/i.test(e))return[];let n=t.endsWith(`
200
200
  `)?t.split(`
201
201
  `).length-1:t.split(`
202
- `).length;return n>800?[{rule:`oversize`,line:1,text:`over 800 lines: split it along its concerns`,hint:null}]:n>600?[{rule:`oversize`,line:1,text:`over 600 lines`,hint:null}]:[]}var ap=`move this API call to an RTK Query endpoint in services/api (react.md: API data)`,op=`read data through the RTK Query api module; a screen holds no loading flag of its own`,sp=/\bconst\s+([A-Za-z_$][\w$]*)\s*=\s*createAsyncThunk\.withTypes\b/g,cp=/\bimport\s+(?:type\s+)?(?:[^'"();]+?\s+from\s+)?["']([^"']+)["']/g,lp=/^((?:.*\/)?)src\/screens\//,up=/\.(?:test|spec)\.[jt]sx?$|(?:^|\/)__tests__\//,dp=/(?:^|\/)src\/redux\/action\/accountAction\.[jt]sx?$/;function fp(e){return up.test(e)}function pp(e){return dp.test(e)}function mp(e){return RegExp(`(?<![\\w$.])${e.replace(/\$/g,`\\$`)}\\s*(?:<[^\\n()]*>\\s*)?\\(`,`g`)}function hp(e,t){let n=[...e.matchAll(sp)].flatMap(e=>e[1]===void 0?[]:[e[1]]),r=[];for(let t of[`createAsyncThunk`,...n])for(let n of e.matchAll(mp(t)))r.push(n.index);return r.sort((e,t)=>e-t).map(e=>({rule:`api-thunk`,...t(e),hint:ap}))}function gp(e,t,n){let r=lp.exec(e);if(r===null)return[];let i=`${r[1]??``}src/services`,a=[];for(let r of t.matchAll(cp)){let t=r[1]??``;if(!t.startsWith(`.`))continue;let o=p.join(p.dirname(e),t),s=o===i||o.startsWith(`${i}/`),c=o===`${i}/api`||o.startsWith(`${i}/api/`);s&&!c&&a.push({rule:`screen-service-import`,...n(r.index),hint:op})}return a}var _p=`rename-wrapper`,vp=`@webority/ui-react`,yp=`["']${vp}["']`,bp=e=>e.replace(/[^\n]/g,` `),xp=`shadowed-library-name`;function Sp(e,t,n,r=_p){let i=e.slice(0,t).split(`
202
+ `).length;return n>800?[{rule:`oversize`,line:1,text:`over 800 lines: split it along its concerns`,hint:null}]:n>600?[{rule:`oversize`,line:1,text:`over 600 lines`,hint:null}]:[]}var cp=`move this API call to an RTK Query endpoint in services/api (react.md: API data)`,lp=`read data through the RTK Query api module; a screen holds no loading flag of its own`,up=/\bconst\s+([A-Za-z_$][\w$]*)\s*=\s*createAsyncThunk\.withTypes\b/g,dp=/\bimport\s+(?:type\s+)?(?:[^'"();]+?\s+from\s+)?["']([^"']+)["']/g,fp=/^((?:.*\/)?)src\/screens\//,pp=/\.(?:test|spec)\.[jt]sx?$|(?:^|\/)__tests__\//,mp=/(?:^|\/)src\/redux\/action\/accountAction\.[jt]sx?$/;function hp(e){return pp.test(e)}function gp(e){return mp.test(e)}function _p(e){return RegExp(`(?<![\\w$.])${e.replace(/\$/g,`\\$`)}\\s*(?:<[^\\n()]*>\\s*)?\\(`,`g`)}function vp(e,t){let n=[...e.matchAll(up)].flatMap(e=>e[1]===void 0?[]:[e[1]]),r=[];for(let t of[`createAsyncThunk`,...n])for(let n of e.matchAll(_p(t)))r.push(n.index);return r.sort((e,t)=>e-t).map(e=>({rule:`api-thunk`,...t(e),hint:cp}))}function yp(e,t,n){let r=fp.exec(e);if(r===null)return[];let i=`${r[1]??``}src/services`,a=[];for(let r of t.matchAll(dp)){let t=r[1]??``;if(!t.startsWith(`.`))continue;let o=p.join(p.dirname(e),t),s=o===i||o.startsWith(`${i}/`),c=o===`${i}/api`||o.startsWith(`${i}/api/`);s&&!c&&a.push({rule:`screen-service-import`,...n(r.index),hint:lp})}return a}var bp=`rename-wrapper`,xp=`@webority/ui-react`,Sp=`["']${xp}["']`,Cp=e=>e.replace(/[^\n]/g,` `),wp=`shadowed-library-name`;function Tp(e,t,n,r=bp){let i=e.slice(0,t).split(`
203
203
  `).length;return{rule:r,line:i,text:(e.split(`
204
- `)[i-1]??``).trim(),hint:n}}function Cp(e){return e.replace(/\/\*[\s\S]*?\*\//g,bp).replace(/\/\/[^\n]*/g,bp)}function wp(e){let t=/* @__PURE__ */ new Map,n=RegExp(`import\\s+(?:type\\s+)?([^;'"]*?)\\s+from\\s*${yp}`,`g`);for(let r of e.matchAll(n)){let e=r[1]??``,n=e.match(/\{([^}]*)\}/);if(n)for(let e of(n[1]??``).split(`,`)){let n=e.trim().replace(/^type\s+/,``).split(/\s+as\s+/);n[0]&&t.set(n[n.length-1]??``,n[0])}let i=e.match(/\*\s*as\s+(\w+)/);i&&t.set(i[1]??``,`*`);let a=e.replace(/\{[^}]*\}/,``).replace(/\*\s*as\s+\w+/,``);for(let e of a.split(`,`)){let n=e.trim();/^\w+$/.test(n)&&t.set(n,`default`)}}return t}function Tp(e){let t=RegExp(`^[ \\t]*export\\s+(?:type\\s+)?(?:\\*(?:\\s+as\\s+\\w+)?|\\{[^}]*\\})\\s*from\\s*${yp}`,`gm`);return[...e.matchAll(t)].map(t=>Sp(e,t.index,`Import the name from ${vp} where it is used; a file that only re-exports it adds nothing.`))}function Ep(e,t){let n=[];if(t.size===0)return n;let r=`Import the name from ${vp} where it is used instead of exporting it through this file.`;for(let i of e.matchAll(/^[ \t]*export\s*\{([^}]*)\}(?!\s*from)/gm))(i[1]??``).split(`,`).some(e=>t.has(e.trim().replace(/^type\s+/,``).split(/\s+as\s+/)[0]??``))&&n.push(Sp(e,i.index,r));for(let i of e.matchAll(/^[ \t]*export\s+default\s+(\w+)\s*;?[ \t]*$/gm))t.has(i[1]??``)&&n.push(Sp(e,i.index,r));return n}function Dp(e,t,n,r){if(!/\.(jsx|tsx)$/.test(e))return[];let i=Cp(t);if(/\buse[A-Z]\w*\s*[(<]/.test(i)||/\b(if|switch)\s*\(/.test(i)||[...i.matchAll(/\breturn\b/g)].length>1)return[];let a=i.match(/(?:\breturn|=>)\s*\(?\s*<([A-Za-z][\w.]*)/);if(!a)return[];let o=a[1]??``,s=r.get(o);return!s||s===`*`||!n.has(s)||[...i.matchAll(/<([A-Za-z][\w.]*)/g)].length!==1||/[?]|&&|\|\|/.test(i.slice(a.index??0))?[]:[Sp(t,a.index??0,`Import ${s} from ${vp} and use it where this component is used instead of a wrapper.`)]}function Op(e,t){let n=e.split(/[\\/]/).pop()??``;if(!n.startsWith(`_`)||!n.endsWith(`.cshtml`))return[];let r=t.replace(/@\*[\s\S]*?\*@/g,bp).replace(/<!--[\s\S]*?-->/g,bp).replace(/^[ \t]*@(?:model|using)\b[^\n]*/gm,bp),i=r.search(/\S/);if(i<0)return[];let a=r.slice(i).trimEnd(),o=a.match(/^<(app-[a-z0-9-]+)/);return!o||!a.endsWith(`/>`)&&!a.endsWith(`</${o[1]}>`)||(a.match(/<[A-Za-z]/g)||[]).length!==1?[]:[Sp(t,i,`Render the <${o[1]}> tag directly where the partial is used instead of a partial that only renders it.`)]}function kp(e,t,n,r){let i=[];for(let[a,o]of r){if(a===o||!n.has(o))continue;let r=RegExp(`\\b(?:function|class|const|let|var)\\s+${o}\\b`).exec(e);r&&i.push(Sp(t,r.index,`Declares ${o} over the library's ${o}; use the library component and its props, or give the product component its own name.`,xp))}return i}function Ap(e,t,n){let r=wp(t);return[...Tp(t),...Ep(t,r),...Dp(e,t,n,r),...Op(e,t),.../\.(jsx|tsx)$/.test(e)?kp(Cp(t),t,n,r):[]]}var jp=()=>new Set(cu),Mp=(e,t)=>/* @__PURE__ */ new Set([...e,...t]);function Np(e){let n={names:[],prefixes:[]};for(let i of R(e,[...Pp,`*.cs`])){if(i.startsWith(`packages/`)||i.startsWith(`samples/`)||!t(d(e,i))||ct(i,e))continue;let a=r(d(e,i),`utf8`);if(!a.includes(`registerIcons`)&&!a.includes(`IconRegistry`))continue;let o=$l(a,u(i).toLowerCase()===`.cs`?`csharp`:`script`);n.names.push(...o.names),n.prefixes.push(...o.prefixes)}return n}var Pp=[`*.js`,`*.jsx`,`*.ts`,`*.tsx`],Fp=[`settings.js`,`settings.ts`,`settings.jsx`,`settings.tsx`],Ip=/(?:\bfrom\s*|\brequire\(\s*|\bimport\s*)["'](?:react-native|@webority\/mobile-ui)(?:\/[^"']*)?["']/;function Lp(e,t,n,i,a){let o=/* @__PURE__ */ new Set;for(let s of A(k(e,t))){if(s.kind!==`import`||s.imported.length===0)continue;let c=El(t,s.specifier,i);if(c===null)continue;let l=`${n}:${c}`,u=a.get(l);u||(u=Hc(r(d(e,c),`utf8`),{phone:n}),a.set(l,u));for(let{name:e,local:t}of s.imported)u.has(e)&&o.add(t)}return o}var Rp=[`*.js`,`*.jsx`,`*.ts`,`*.tsx`,`*.cshtml`];function zp(e){let n=[];for(let i of R(e,[`package.json`])){if(!t(d(e,i)))continue;let a;try{a=JSON.parse(r(d(e,i),`utf8`))}catch{continue}if(Ps(a,d(e,p.dirname(i)))!==`mobile`)continue;let o=p.dirname(i);n.push(o===`.`?`src/`:`${o}/src/`)}return n}function Bp(e,n=null){let i=n?n.map(t=>ws(e,t)):null,a=zp(e),o=e=>!i||i.some(t=>t===`.`||e===t||e.startsWith(`${t}/`)),s=R(e,Object.keys(Ge).map(e=>`*${e}`)).filter(n=>t(d(e,n))&&!ct(n,e)&&o(n)),c=[],l=jp(),f=Np(e),p=Mp(eu,f.names),m=Mp(yu,f.names),h=hc(e),g=fc(e),_=null,v=/* @__PURE__ */ new Map;for(let n of s){let i=u(n).toLowerCase(),o=Ge[i];if(o===void 0)continue;let s=r(d(e,n),`utf8`),y=n.startsWith(`packages/`)||n.startsWith(`samples/`),b=h&&y,x=e=>b?[]:[...Ou(s,e),...Ap(n,s,g)],S=[];if(o===`scss`||o===`css`||o===`markup`)S=br(s,o),o!==`scss`&&o!==`css`||b||S.push(...au(s,o,l)),o===`markup`&&S.push(...x(`markup`),...b?[]:Xl(s,`markup`,p,f.prefixes),...y?[]:Rl(s),...y?[]:Nf(s,`markup`,n),...ip(n,s),...rp(s));else if(o===`html`)S=[...rp(s),...x(`markup`)];else if(o===`script`){let r=!y&&a.some(e=>n.startsWith(e)),o=Kr(s)||r;if(Ke.includes(i)&&!o&&b)continue;let c=[];if(!y){let i=r||Ip.test(s);_??=new Set(R(e,Pp).filter(n=>t(d(e,n)))),c=Uc(s,{phone:i,keyedImports:s.includes(`.map(`)?Lp(e,n,i,_,v):/* @__PURE__ */ new Set})}if(S=[...qr(s,{phone:o,colourLiterals:r}).filter(e=>!y||e.rule!==`bootstrap-overlay`),...c],r&&a.some(e=>Fp.some(t=>n===`${e}assets/theme/${t}`))&&(S=S.filter(e=>e.rule!==`raw-colour`)),(i===`.jsx`||i===`.tsx`)&&(S.push(...x(`script`),...ip(n,s)),!y&&!o&&S.push(...Hf(s))),!y){let e=o||Ip.test(s)?m:p;S.push(...Xl(s,`script`,e,f.prefixes))}}else o===`csharp`&&(y||(S=Nf(s,`csharp`)));for(let e of S)c.push({id:`${e.rule}:${n}`,line:e.line,text:e.text,hint:e.hint})}for(let t of s){if(Ge[u(t).toLowerCase()]!==`script`||fp(t)||t.startsWith(`packages/`)||t.startsWith(`samples/`))continue;let n=k(e,t),r=e=>{let t=n.lineAt(e);return{line:t,text:(n.lines[t-1]??``).trim()}},i=pp(t)?[]:hp(n.blanked,r);for(let e of[...i,...gp(t,n.blanked,r)])c.push({id:`${e.rule}:${t}`,line:e.line,text:e.text,hint:e.hint})}let y=R(e,Rp).filter(n=>t(d(e,n)));for(let t of Cl(e,y)){let n=t.file.startsWith(`packages/`)||t.file.startsWith(`samples/`);o(t.file)&&!ct(t.file,e)&&!n&&c.push({id:`${t.rule}:${t.file}`,line:t.line,text:t.text,hint:t.hint})}let b=af(e,R(e,[`*.cshtml`,`*.cs`,`*.csproj`,`*.js`,`*.jsx`,`*.ts`,`*.tsx`]).filter(n=>t(d(e,n))&&!ct(n,e)));for(let e of b.hits){let t=e.file.startsWith(`packages/`)||e.file.startsWith(`samples/`);o(e.file)&&!t&&c.push({id:`${e.rule}:${e.file}`,line:e.line,text:e.text,hint:e.hint})}let x=[{count:b.skipped.unverifiedPages,what:`pages whose model or base class is outside the repo`},{count:b.skipped.dynamicHandlers,what:`handler names built at render time`},{count:b.skipped.foreignAreaLinks,what:`links into areas no folder in the repo holds`},{count:b.skipped.unreadRouteValues,what:`C# page calls whose route values are in a variable`},{count:b.skipped.unresolvedLinks,what:`page links whose target is built at render time or is not a page name`}].filter(e=>e.count>0);x.length>0&&console.log(`note: Razor links not checked: ${x.map(e=>`${e.count} ${e.what}`).join(`; `)}.`);let S=R(e,uu.map(e=>`*${e}`)).filter(n=>hu(n)&&t(d(e,n))&&!ct(n,e)&&o(n)&&!(h&&(n.startsWith(`packages/`)||n.startsWith(`samples/`)))),C=gu(e,S);return C===null?console.log(`note: ${S.length} page script and style files not linted: no Biome installed at the repo root.`):c.push(...C),c.sort((e,t)=>e.id<t.id?-1:e.id>t.id?1:e.line-t.line)}function Vp(e){let t={};for(let n of e)t[n.id]=(t[n.id]||0)+1;return t}var Hp=process.argv.slice(2),Up=/* @__PURE__ */ new Set([`--baseline-accept`,`--reason`,`--baseline-adopt`]),Wp=new Set(Hp.flatMap((e,t)=>Up.has(e)?[t+1]:[])),W=new Set(Hp.filter((e,t)=>e.startsWith(`--`)&&!Wp.has(t))),G=Hp.filter((e,t)=>!e.startsWith(`--`)&&!Wp.has(t)),Gp=W.has(`--sync-hook`),Kp=e=>Hp.includes(e)?Hp[Hp.indexOf(e)+1]:void 0,qp=Kp(`--baseline-accept`),Jp=Kp(`--reason`),Yp=Kp(`--baseline-adopt`)?.split(`,`).map(e=>e.trim()).filter(Boolean),Xp=e=>typeof e==`string`&&e.trim()!==``,K=e=>process.stdout.write(`${e}\n`),q=e=>process.stderr.write(`${e}\n`);W.has(`--json`)&&(console.log=(...e)=>console.error(...e));var Zp=/* @__PURE__ */ new Set([`--json`,`--offline`,`--build`,`--skip-lint`,`--baseline-init`,`--baseline-shrink`,`--baseline-accept`,`--reason`,`--sync-hook`,`--baseline-adopt`]),Qp=[...W].filter(e=>!Zp.has(e)),$p=W.has(`--baseline-accept`),em=($p||W.has(`--reason`))&&!(Xp(qp)&&Xp(Jp)),tm=$p&&(W.has(`--baseline-init`)||W.has(`--baseline-shrink`)||Gp||W.has(`--baseline-adopt`)),nm=W.has(`--baseline-adopt`)&&(W.has(`--baseline-init`)||W.has(`--baseline-shrink`)||W.has(`--baseline-accept`)||Gp),J=W.has(`--build`),rm=J&&(W.has(`--baseline-init`)||W.has(`--baseline-shrink`)||W.has(`--baseline-accept`)||W.has(`--baseline-adopt`)||Gp),im=W.has(`--skip-lint`),am=im&&(W.has(`--baseline-init`)||W.has(`--baseline-shrink`)||W.has(`--baseline-accept`)||W.has(`--baseline-adopt`)||Gp);(Qp.length||W.has(`--baseline-init`)&&W.has(`--baseline-shrink`)||Gp&&(W.size>1||G.length)||em||tm||nm||rm||am)&&(q(`repo-checks: unknown or conflicting options ${Qp.join(` `)}`.trim()),q(`usage: webority-repo-checks [--json] [--offline] [--build] [--skip-lint] [--baseline-init | --baseline-shrink] [--baseline-accept <folder> --reason <text>] [--baseline-adopt <rule,...>] [app folder ...]`),q(` webority-repo-checks --sync-hook`),process.exit(2));var Y=Ms(process.cwd());if(Y||(q(`repo-checks: not inside a git repository.`),process.exit(2)),Gp){let t=d(Y,wc);n(l(t),{recursive:!0}),s(t,It),e(t,493),K(`repo-checks: wrote ${t}`),process.exit(0)}var om=W.has(`--offline`);om&&!J&&q(`repo-checks: advisory rule skipped (--offline).`);var sm=kc(Y,G.length?G.map(e=>h(process.cwd(),e)):null,{advisories:!om&&!J,build:J,skipLint:im}).sort((e,t)=>e.pkg===t.pkg?0:e.pkg<t.pkg?-1:1),cm=sm.filter(e=>e.warning),lm=sm.filter(e=>!e.warning),um=lm.filter(e=>e.id.startsWith(`lint:`)),dm=lm.filter(e=>!e.id.startsWith(`lint:`)&&e.counted===void 0),fm=e=>x.some(t=>e.startsWith(`${t}:`)),pm=sm.flatMap(e=>{if(e.counted===void 0)return[];if(!fm(e.id))throw Error(`webority-repo-checks: ${e.id} is not a counted rule.`);return[{id:e.id,line:e.counted.line,text:e.counted.text,hint:null}]}),mm=[...J?[]:Bp(Y,G.length?G.map(e=>h(process.cwd(),e)):null),...pm],X={findings:dm.map(e=>re(e.pkg,e.id)),counts:Vp(mm)},hm=new Map(dm.map(e=>[re(e.pkg,e.id),e]));if(W.has(`--baseline-init`)){G.length&&(q(`repo-checks: --baseline-init reads the whole repository; run it without folder arguments.`),process.exit(2)),t(d(Y,`.webority/baselines/repo-checks-baseline.json`))&&(q(`repo-checks: ${b} already exists. It only shrinks: fix a new finding, or run --baseline-shrink after fixing old ones.`),process.exit(2)),ce(Y,le(X));let e=Object.keys(X.counts).length;K(`repo-checks: recorded ${dm.length} finding(s) and ${e} counted file(s) (${mm.length} code finding(s)) in ${b}.`),process.exit(0)}var Z=(()=>{try{return ie(Y)}catch(e){throw e instanceof C&&(q(`repo-checks: ${e.message}`),process.exit(2)),e}})();if(W.has(`--baseline-shrink`)){G.length&&(q(`repo-checks: --baseline-shrink reads the whole repository; run it without folder arguments.`),process.exit(2)),Z===null&&(q(`repo-checks: no ${b}; run webority-repo-checks --baseline-init first.`),process.exit(2));let e=fe(Z,X);ce(Y,pe(Z,X)),K(`repo-checks: dropped ${e.stale.length} fixed finding(s) and lowered ${e.fallen.length} count(s) in ${b}.`),process.exit(0)}if($p){if(G.length&&(q(`repo-checks: --baseline-accept reads the whole repository; run it without folder arguments.`),process.exit(2)),Z===null&&(q(`repo-checks: no ${b}; run webority-repo-checks --baseline-init first.`),process.exit(2)),qp===void 0||Jp===void 0)throw Error(`webority-repo-checks: --baseline-accept needs a folder and --reason text.`);let e=me(Z,X,qp,Jp),t=new Set(Z.findings),n=e.findings.filter(e=>!t.has(e)).length,r=Object.entries(e.counts).filter(([e,t])=>(Z.counts[e]??0)<t).length;ce(Y,e),K(`repo-checks: accepted ${n} finding(s) and ${r} count(s) under ${qp} (${Jp}).`),process.exit(0)}if(W.has(`--baseline-adopt`)){G.length&&(q(`repo-checks: --baseline-adopt reads the whole repository; run it without folder arguments.`),process.exit(2)),Z===null&&(q(`repo-checks: no ${b}; run webority-repo-checks --baseline-init first.`),process.exit(2)),Yp?.length||(q(`repo-checks: --baseline-adopt needs a comma-separated list of rule ids.`),process.exit(2));let e;try{e=ue(Z,X,Yp)}catch(e){throw e instanceof C&&(q(`repo-checks: ${e.message}`),process.exit(2)),e}ce(Y,e);let t=new Set(Z.findings);for(let n of Yp){let r=e.findings.filter(e=>!t.has(e)&&w(e)[1].split(`:`)[0]===n).length,i=Object.keys(e.counts).filter(e=>!(e in Z.counts)&&e.split(`:`)[0]===n).length;K(`repo-checks: adopted ${r} finding(s) and ${i} count(s) for ${n} in ${b}.`)}process.exit(0)}var gm=new Set(G.map(e=>m(Y,h(process.cwd(),e)).split(`\\`).join(`/`)||`.`)),_m=G.length?{pkgs:gm,dirs:[...gm]}:null,vm=de(Z??{version:2,findings:[],counts:{}},_m),Q=fe(J?{...vm,counts:{},findings:vm.findings.filter(e=>!Oc.includes(w(e)[1].split(`:`)[0]??``))}:vm,X),ym={"raw-measure":lt,"palette-read":ft,"raw-colour":ut,"root-font-size":dt,"raw-motion":pt,"dark-read":mt,"missing-canvas-key":ht,"repeated-canvas-key":gt,"page-lint":du,"deprecated-import":`An import its own library marks deprecated: move to the replacement its message names, or record today's count with --baseline-adopt deprecated-import.`,"react-string-ref":`A string ref, which React 19 no longer supports: use a callback ref or useRef, or record today's count with --baseline-adopt react-string-ref.`,"legacy-component-props":`A defaultProps or propTypes that React 19 removed: move the defaults into parameters and drop propTypes, or record today's count with --baseline-adopt legacy-component-props.`,"legacy-react-test-api":`A test API that React 19 removed or deprecated: use the replacement its message names, or record today's count with --baseline-adopt legacy-react-test-api.`,"navigation-shim":`A React Navigation 6 prop or shim that version 7 removed: use the replacement its message names, or record today's count with --baseline-adopt navigation-shim.`,"legacy-node-sqlite":`A node:sqlite class that Node 26 renamed: import Database or Statement in its place, or record today's count with --baseline-adopt legacy-node-sqlite.`},bm=e=>ym[e.slice(0,e.indexOf(`:`))],xm=e=>{let t=hm.get(e);if(t===void 0)throw Error(`webority-repo-checks: finding ${e} is missing.`);return t},Sm=[...Q.fresh.map(xm),...um],Cm=Q.known.map(xm),wm=e=>[`${e.current} found, ${e.baseline} recorded.`,bm(e.id)].filter(Boolean).join(` `),Tm=e=>So(e.id.split(`:`)[0]??``),$=Q.over.filter(Tm).map(e=>({pkg:`.`,id:e.id,message:wm(e),lines:mm.filter(t=>t.id===e.id).map(({line:e,text:t,hint:n})=>({line:e,text:t,hint:n}))})),Em=Q.over.filter(e=>!Tm(e)).map(e=>({pkg:`.`,id:e.id,message:wm(e)})),Dm=Q.within.map(e=>({pkg:`.`,id:e.id,message:`${e.current} found, ${e.baseline} recorded.`})),Om=[...Q.stale.map(w),...Q.fallen.map(e=>[`.`,e.id])],km=[...cm,...Em];if(W.has(`--json`)||(()=>{if(km.length!==0){q(`repo-checks: ${km.length} warning(s), not enforced yet. Name a rule in REPO_CHECKS_ENFORCE (comma list, or all) to fail on it:`);for(let e of km)q(` - ${e.pkg} ${e.id}: ${e.message}`)}})(),W.has(`--json`)){let e={root:Y,new:[...Sm,...$],known:[...Cm,...Dm],stale:Om,warnings:km.map(e=>({pkg:e.pkg,id:e.id,message:e.message}))};K(JSON.stringify(e,null,2)),process.exitCode=Sm.length||$.length?1:0}else if(Sm.length||$.length){if(Sm.length){q(`repo-checks: ${Sm.length} new finding(s)`);let e=null;for(let t of Sm)t.pkg!==e&&(e=t.pkg,q(` ${e}`)),q(` - ${t.id}: ${t.message}`)}if($.length){q(`repo-checks: ${$.length} file(s) above their recorded count`);for(let e of $){q(` ${e.id}: ${e.message}`);for(let t of e.lines)q(` ${t.line}: ${t.text}`),t.hint!==null&&q(` ${t.hint}`)}}process.exitCode=1}else{if(K(`repo-checks: no new findings.`),Cm.length||Dm.length){let e=Q.within.reduce((e,t)=>e+t.current,0);K(`repo-checks: ${Cm.length} known finding(s) and ${e} counted code finding(s) in ${Dm.length} file(s) recorded in ${b}.`)}if(Q.stale.length&&!J){K(`repo-checks: ${Q.stale.length} baseline entr${Q.stale.length===1?`y is`:`ies are`} fixed; drop them with webority-repo-checks --baseline-shrink:`);for(let e of Q.stale.map(w))K(` ${e[0]} ${e[1]}`)}if(Q.fallen.length&&!J){K(`repo-checks: ${Q.fallen.length} count(s) fell; record them with webority-repo-checks --baseline-shrink:`);for(let e of Q.fallen)K(` ${e.id} ${e.baseline} -> ${e.current}`)}}export{};
204
+ `)[i-1]??``).trim(),hint:n}}function Ep(e){return e.replace(/\/\*[\s\S]*?\*\//g,Cp).replace(/\/\/[^\n]*/g,Cp)}function Dp(e){let t=/* @__PURE__ */ new Map,n=RegExp(`import\\s+(?:type\\s+)?([^;'"]*?)\\s+from\\s*${Sp}`,`g`);for(let r of e.matchAll(n)){let e=r[1]??``,n=e.match(/\{([^}]*)\}/);if(n)for(let e of(n[1]??``).split(`,`)){let n=e.trim().replace(/^type\s+/,``).split(/\s+as\s+/);n[0]&&t.set(n[n.length-1]??``,n[0])}let i=e.match(/\*\s*as\s+(\w+)/);i&&t.set(i[1]??``,`*`);let a=e.replace(/\{[^}]*\}/,``).replace(/\*\s*as\s+\w+/,``);for(let e of a.split(`,`)){let n=e.trim();/^\w+$/.test(n)&&t.set(n,`default`)}}return t}function Op(e){let t=RegExp(`^[ \\t]*export\\s+(?:type\\s+)?(?:\\*(?:\\s+as\\s+\\w+)?|\\{[^}]*\\})\\s*from\\s*${Sp}`,`gm`);return[...e.matchAll(t)].map(t=>Tp(e,t.index,`Import the name from ${xp} where it is used; a file that only re-exports it adds nothing.`))}function kp(e,t){let n=[];if(t.size===0)return n;let r=`Import the name from ${xp} where it is used instead of exporting it through this file.`;for(let i of e.matchAll(/^[ \t]*export\s*\{([^}]*)\}(?!\s*from)/gm))(i[1]??``).split(`,`).some(e=>t.has(e.trim().replace(/^type\s+/,``).split(/\s+as\s+/)[0]??``))&&n.push(Tp(e,i.index,r));for(let i of e.matchAll(/^[ \t]*export\s+default\s+(\w+)\s*;?[ \t]*$/gm))t.has(i[1]??``)&&n.push(Tp(e,i.index,r));return n}function Ap(e,t,n,r){if(!/\.(jsx|tsx)$/.test(e))return[];let i=Ep(t);if(/\buse[A-Z]\w*\s*[(<]/.test(i)||/\b(if|switch)\s*\(/.test(i)||[...i.matchAll(/\breturn\b/g)].length>1)return[];let a=i.match(/(?:\breturn|=>)\s*\(?\s*<([A-Za-z][\w.]*)/);if(!a)return[];let o=a[1]??``,s=r.get(o);return!s||s===`*`||!n.has(s)||[...i.matchAll(/<([A-Za-z][\w.]*)/g)].length!==1||/[?]|&&|\|\|/.test(i.slice(a.index??0))?[]:[Tp(t,a.index??0,`Import ${s} from ${xp} and use it where this component is used instead of a wrapper.`)]}function jp(e,t){let n=e.split(/[\\/]/).pop()??``;if(!n.startsWith(`_`)||!n.endsWith(`.cshtml`))return[];let r=t.replace(/@\*[\s\S]*?\*@/g,Cp).replace(/<!--[\s\S]*?-->/g,Cp).replace(/^[ \t]*@(?:model|using)\b[^\n]*/gm,Cp),i=r.search(/\S/);if(i<0)return[];let a=r.slice(i).trimEnd(),o=a.match(/^<(app-[a-z0-9-]+)/);return!o||!a.endsWith(`/>`)&&!a.endsWith(`</${o[1]}>`)||(a.match(/<[A-Za-z]/g)||[]).length!==1?[]:[Tp(t,i,`Render the <${o[1]}> tag directly where the partial is used instead of a partial that only renders it.`)]}function Mp(e,t,n,r){let i=[];for(let[a,o]of r){if(a===o||!n.has(o))continue;let r=RegExp(`\\b(?:function|class|const|let|var)\\s+${o}\\b`).exec(e);r&&i.push(Tp(t,r.index,`Declares ${o} over the library's ${o}; use the library component and its props, or give the product component its own name.`,wp))}return i}function Np(e,t,n){let r=Dp(t);return[...Op(t),...kp(t,r),...Ap(e,t,n,r),...jp(e,t),.../\.(jsx|tsx)$/.test(e)?Mp(Ep(t),t,n,r):[]]}var Pp=()=>new Set(uu),Fp=(e,t)=>/* @__PURE__ */ new Set([...e,...t]);function Ip(e){let n={names:[],prefixes:[]};for(let i of z(e,[...Lp,`*.cs`])){if(i.startsWith(`packages/`)||i.startsWith(`samples/`)||!t(d(e,i))||ct(i,e))continue;let a=r(d(e,i),`utf8`);if(!a.includes(`registerIcons`)&&!a.includes(`IconRegistry`))continue;let o=tu(a,u(i).toLowerCase()===`.cs`?`csharp`:`script`);n.names.push(...o.names),n.prefixes.push(...o.prefixes)}return n}var Lp=[`*.js`,`*.jsx`,`*.ts`,`*.tsx`],Rp=[`settings.js`,`settings.ts`,`settings.jsx`,`settings.tsx`],zp=/(?:\bfrom\s*|\brequire\(\s*|\bimport\s*)["'](?:react-native|@webority\/mobile-ui)(?:\/[^"']*)?["']/;function Bp(e,t,n,i,a){let o=/* @__PURE__ */ new Set;for(let s of A(k(e,t))){if(s.kind!==`import`||s.imported.length===0)continue;let c=Ol(t,s.specifier,i);if(c===null)continue;let l=`${n}:${c}`,u=a.get(l);u||(u=Wc(r(d(e,c),`utf8`),{phone:n}),a.set(l,u));for(let{name:e,local:t}of s.imported)u.has(e)&&o.add(t)}return o}var Vp=[`*.js`,`*.jsx`,`*.ts`,`*.tsx`,`*.cshtml`];function Hp(e){let n=[];for(let i of z(e,[`package.json`])){if(!t(d(e,i)))continue;let a;try{a=JSON.parse(r(d(e,i),`utf8`))}catch{continue}if(Is(a,d(e,p.dirname(i)))!==`mobile`)continue;let o=p.dirname(i);n.push(o===`.`?`src/`:`${o}/src/`)}return n}function Up(e,n=null){let i=n?n.map(t=>Es(e,t)):null,a=Hp(e),o=e=>!i||i.some(t=>t===`.`||e===t||e.startsWith(`${t}/`)),s=z(e,Object.keys(Ge).map(e=>`*${e}`)).filter(n=>t(d(e,n))&&!ct(n,e)&&o(n)),c=[],l=Pp(),f=Ip(e),p=Fp(nu,f.names),m=Fp(xu,f.names),h=_c(e),g=mc(e),_=null,v=/* @__PURE__ */ new Map;for(let n of s){let i=u(n).toLowerCase(),o=Ge[i];if(o===void 0)continue;let s=r(d(e,n),`utf8`),y=n.startsWith(`packages/`)||n.startsWith(`samples/`),b=h&&y,x=e=>b?[]:[...Au(s,e),...Np(n,s,g)],S=[];if(o===`scss`||o===`css`||o===`markup`)S=Cr(s,o),o!==`scss`&&o!==`css`||b||S.push(...su(s,o,l)),o===`markup`&&S.push(...x(`markup`),...b?[]:Ql(s,`markup`,p,f.prefixes),...y?[]:Bl(s),...y?[]:If(s,`markup`,n),...sp(n,s),...op(s));else if(o===`html`)S=[...op(s),...x(`markup`)];else if(o===`script`){let r=!y&&a.some(e=>n.startsWith(e)),o=Yr(s)||r;if(Ke.includes(i)&&!o&&b)continue;let c=[];if(!y){let i=r||zp.test(s);_??=new Set(z(e,Lp).filter(n=>t(d(e,n)))),c=Gc(s,{phone:i,keyedImports:s.includes(`.map(`)?Bp(e,n,i,_,v):/* @__PURE__ */ new Set})}if(S=[...Xr(s,{phone:o,colourLiterals:r}).filter(e=>!y||e.rule!==`bootstrap-overlay`),...c],r&&a.some(e=>Rp.some(t=>n===`${e}assets/theme/${t}`))&&(S=S.filter(e=>e.rule!==`raw-colour`)),(i===`.jsx`||i===`.tsx`)&&(S.push(...x(`script`),...sp(n,s)),!y&&!o&&S.push(...Gf(s))),!y){let e=o||zp.test(s)?m:p;S.push(...Ql(s,`script`,e,f.prefixes))}}else o===`csharp`&&(y||(S=If(s,`csharp`)));for(let e of S)c.push({id:`${e.rule}:${n}`,line:e.line,text:e.text,hint:e.hint})}for(let t of s){if(Ge[u(t).toLowerCase()]!==`script`||hp(t)||t.startsWith(`packages/`)||t.startsWith(`samples/`))continue;let n=k(e,t),r=e=>{let t=n.lineAt(e);return{line:t,text:(n.lines[t-1]??``).trim()}},i=gp(t)?[]:vp(n.blanked,r);for(let e of[...i,...yp(t,n.blanked,r)])c.push({id:`${e.rule}:${t}`,line:e.line,text:e.text,hint:e.hint})}let y=z(e,Vp).filter(n=>t(d(e,n)));for(let t of Tl(e,y)){let n=t.file.startsWith(`packages/`)||t.file.startsWith(`samples/`);o(t.file)&&!ct(t.file,e)&&!n&&c.push({id:`${t.rule}:${t.file}`,line:t.line,text:t.text,hint:t.hint})}let b=cf(e,z(e,[`*.cshtml`,`*.cs`,`*.csproj`,`*.js`,`*.jsx`,`*.ts`,`*.tsx`]).filter(n=>t(d(e,n))&&!ct(n,e)));for(let e of b.hits){let t=e.file.startsWith(`packages/`)||e.file.startsWith(`samples/`);o(e.file)&&!t&&c.push({id:`${e.rule}:${e.file}`,line:e.line,text:e.text,hint:e.hint})}let x=[{count:b.skipped.unverifiedPages,what:`pages whose model or base class is outside the repo`},{count:b.skipped.dynamicHandlers,what:`handler names built at render time`},{count:b.skipped.foreignAreaLinks,what:`links into areas no folder in the repo holds`},{count:b.skipped.unreadRouteValues,what:`C# page calls whose route values are in a variable`},{count:b.skipped.unresolvedLinks,what:`page links whose target is built at render time or is not a page name`}].filter(e=>e.count>0);x.length>0&&console.log(`note: Razor links not checked: ${x.map(e=>`${e.count} ${e.what}`).join(`; `)}.`);let S=z(e,fu.map(e=>`*${e}`)).filter(n=>_u(n)&&t(d(e,n))&&!ct(n,e)&&o(n)&&!(h&&(n.startsWith(`packages/`)||n.startsWith(`samples/`)))),C=vu(e,S);return C===null?console.log(`note: ${S.length} page script and style files not linted: no Biome installed at the repo root.`):c.push(...C),c.sort((e,t)=>e.id<t.id?-1:e.id>t.id?1:e.line-t.line)}function Wp(e){let t={};for(let n of e)t[n.id]=(t[n.id]||0)+1;return t}var Gp=process.argv.slice(2),Kp=/* @__PURE__ */ new Set([`--baseline-accept`,`--reason`,`--baseline-adopt`]),qp=new Set(Gp.flatMap((e,t)=>Kp.has(e)?[t+1]:[])),W=new Set(Gp.filter((e,t)=>e.startsWith(`--`)&&!qp.has(t))),G=Gp.filter((e,t)=>!e.startsWith(`--`)&&!qp.has(t)),Jp=W.has(`--sync-hook`),Yp=e=>Gp.includes(e)?Gp[Gp.indexOf(e)+1]:void 0,Xp=Yp(`--baseline-accept`),Zp=Yp(`--reason`),Qp=Yp(`--baseline-adopt`)?.split(`,`).map(e=>e.trim()).filter(Boolean),$p=e=>typeof e==`string`&&e.trim()!==``,K=e=>process.stdout.write(`${e}\n`),q=e=>process.stderr.write(`${e}\n`);W.has(`--json`)&&(console.log=(...e)=>console.error(...e));var em=/* @__PURE__ */ new Set([`--json`,`--offline`,`--build`,`--skip-lint`,`--baseline-init`,`--baseline-shrink`,`--baseline-accept`,`--reason`,`--sync-hook`,`--baseline-adopt`]),tm=[...W].filter(e=>!em.has(e)),nm=W.has(`--baseline-accept`),rm=(nm||W.has(`--reason`))&&!($p(Xp)&&$p(Zp)),im=nm&&(W.has(`--baseline-init`)||W.has(`--baseline-shrink`)||Jp||W.has(`--baseline-adopt`)),am=W.has(`--baseline-adopt`)&&(W.has(`--baseline-init`)||W.has(`--baseline-shrink`)||W.has(`--baseline-accept`)||Jp),J=W.has(`--build`),om=J&&(W.has(`--baseline-init`)||W.has(`--baseline-shrink`)||W.has(`--baseline-accept`)||W.has(`--baseline-adopt`)||Jp),sm=W.has(`--skip-lint`),cm=sm&&(W.has(`--baseline-init`)||W.has(`--baseline-shrink`)||W.has(`--baseline-accept`)||W.has(`--baseline-adopt`)||Jp);(tm.length||W.has(`--baseline-init`)&&W.has(`--baseline-shrink`)||Jp&&(W.size>1||G.length)||rm||im||am||om||cm)&&(q(`repo-checks: unknown or conflicting options ${tm.join(` `)}`.trim()),q(`usage: webority-repo-checks [--json] [--offline] [--build] [--skip-lint] [--baseline-init | --baseline-shrink] [--baseline-accept <folder> --reason <text>] [--baseline-adopt <rule,...>] [app folder ...]`),q(` webority-repo-checks --sync-hook`),process.exit(2));var Y=Ps(process.cwd());if(Y||(q(`repo-checks: not inside a git repository.`),process.exit(2)),Jp){let t=d(Y,Ec);n(l(t),{recursive:!0}),s(t,It),e(t,493),K(`repo-checks: wrote ${t}`),process.exit(0)}var lm=W.has(`--offline`);lm&&!J&&q(`repo-checks: advisory rule skipped (--offline).`);var um=jc(Y,G.length?G.map(e=>h(process.cwd(),e)):null,{advisories:!lm&&!J,build:J,skipLint:sm}).sort((e,t)=>e.pkg===t.pkg?0:e.pkg<t.pkg?-1:1),dm=um.filter(e=>e.warning),fm=um.filter(e=>!e.warning),pm=fm.filter(e=>e.id.startsWith(`lint:`)),mm=fm.filter(e=>!e.id.startsWith(`lint:`)&&e.counted===void 0),hm=e=>x.some(t=>e.startsWith(`${t}:`)),gm=um.flatMap(e=>{if(e.counted===void 0)return[];if(!hm(e.id))throw Error(`webority-repo-checks: ${e.id} is not a counted rule.`);return[{id:e.id,line:e.counted.line,text:e.counted.text,hint:null}]}),_m=[...J?[]:Up(Y,G.length?G.map(e=>h(process.cwd(),e)):null),...gm],X={findings:mm.map(e=>re(e.pkg,e.id)),counts:Wp(_m)},vm=new Map(mm.map(e=>[re(e.pkg,e.id),e]));if(W.has(`--baseline-init`)){G.length&&(q(`repo-checks: --baseline-init reads the whole repository; run it without folder arguments.`),process.exit(2)),t(d(Y,`.webority/baselines/repo-checks-baseline.json`))&&(q(`repo-checks: ${b} already exists. It only shrinks: fix a new finding, or run --baseline-shrink after fixing old ones.`),process.exit(2)),ce(Y,le(X));let e=Object.keys(X.counts).length;K(`repo-checks: recorded ${mm.length} finding(s) and ${e} counted file(s) (${_m.length} code finding(s)) in ${b}.`),process.exit(0)}var Z=(()=>{try{return ie(Y)}catch(e){throw e instanceof C&&(q(`repo-checks: ${e.message}`),process.exit(2)),e}})();if(W.has(`--baseline-shrink`)){G.length&&(q(`repo-checks: --baseline-shrink reads the whole repository; run it without folder arguments.`),process.exit(2)),Z===null&&(q(`repo-checks: no ${b}; run webority-repo-checks --baseline-init first.`),process.exit(2));let e=fe(Z,X);ce(Y,pe(Z,X)),K(`repo-checks: dropped ${e.stale.length} fixed finding(s) and lowered ${e.fallen.length} count(s) in ${b}.`),process.exit(0)}if(nm){if(G.length&&(q(`repo-checks: --baseline-accept reads the whole repository; run it without folder arguments.`),process.exit(2)),Z===null&&(q(`repo-checks: no ${b}; run webority-repo-checks --baseline-init first.`),process.exit(2)),Xp===void 0||Zp===void 0)throw Error(`webority-repo-checks: --baseline-accept needs a folder and --reason text.`);let e=me(Z,X,Xp,Zp),t=new Set(Z.findings),n=e.findings.filter(e=>!t.has(e)).length,r=Object.entries(e.counts).filter(([e,t])=>(Z.counts[e]??0)<t).length;ce(Y,e),K(`repo-checks: accepted ${n} finding(s) and ${r} count(s) under ${Xp} (${Zp}).`),process.exit(0)}if(W.has(`--baseline-adopt`)){G.length&&(q(`repo-checks: --baseline-adopt reads the whole repository; run it without folder arguments.`),process.exit(2)),Z===null&&(q(`repo-checks: no ${b}; run webority-repo-checks --baseline-init first.`),process.exit(2)),Qp?.length||(q(`repo-checks: --baseline-adopt needs a comma-separated list of rule ids.`),process.exit(2));let e;try{e=ue(Z,X,Qp)}catch(e){throw e instanceof C&&(q(`repo-checks: ${e.message}`),process.exit(2)),e}ce(Y,e);let t=new Set(Z.findings);for(let n of Qp){let r=e.findings.filter(e=>!t.has(e)&&w(e)[1].split(`:`)[0]===n).length,i=Object.keys(e.counts).filter(e=>!(e in Z.counts)&&e.split(`:`)[0]===n).length;K(`repo-checks: adopted ${r} finding(s) and ${i} count(s) for ${n} in ${b}.`)}process.exit(0)}var ym=new Set(G.map(e=>m(Y,h(process.cwd(),e)).split(`\\`).join(`/`)||`.`)),bm=G.length?{pkgs:ym,dirs:[...ym]}:null,xm=de(Z??{version:2,findings:[],counts:{}},bm),Q=fe(J?{...xm,counts:{},findings:xm.findings.filter(e=>!Ac.includes(w(e)[1].split(`:`)[0]??``))}:xm,X),Sm={"raw-measure":lt,"palette-read":ft,"raw-colour":ut,"root-font-size":dt,"raw-motion":pt,"dark-read":mt,"missing-canvas-key":ht,"repeated-canvas-key":gt,"page-lint":pu,"deprecated-import":`An import its own library marks deprecated: move to the replacement its message names, or record today's count with --baseline-adopt deprecated-import.`,"react-string-ref":`A string ref, which React 19 no longer supports: use a callback ref or useRef, or record today's count with --baseline-adopt react-string-ref.`,"legacy-component-props":`A defaultProps or propTypes that React 19 removed: move the defaults into parameters and drop propTypes, or record today's count with --baseline-adopt legacy-component-props.`,"legacy-react-test-api":`A test API that React 19 removed or deprecated: use the replacement its message names, or record today's count with --baseline-adopt legacy-react-test-api.`,"navigation-shim":`A React Navigation 6 prop or shim that version 7 removed: use the replacement its message names, or record today's count with --baseline-adopt navigation-shim.`,"legacy-node-sqlite":`A node:sqlite class that Node 26 renamed: import Database or Statement in its place, or record today's count with --baseline-adopt legacy-node-sqlite.`},Cm=e=>Sm[e.slice(0,e.indexOf(`:`))],wm=e=>{let t=vm.get(e);if(t===void 0)throw Error(`webority-repo-checks: finding ${e} is missing.`);return t},Tm=[...Q.fresh.map(wm),...pm],Em=Q.known.map(wm),Dm=e=>[`${e.current} found, ${e.baseline} recorded.`,Cm(e.id)].filter(Boolean).join(` `),Om=e=>wo(e.id.split(`:`)[0]??``),$=Q.over.filter(Om).map(e=>({pkg:`.`,id:e.id,message:Dm(e),lines:_m.filter(t=>t.id===e.id).map(({line:e,text:t,hint:n})=>({line:e,text:t,hint:n}))})),km=Q.over.filter(e=>!Om(e)).map(e=>({pkg:`.`,id:e.id,message:Dm(e)})),Am=Q.within.map(e=>({pkg:`.`,id:e.id,message:`${e.current} found, ${e.baseline} recorded.`})),jm=[...Q.stale.map(w),...Q.fallen.map(e=>[`.`,e.id])],Mm=[...dm,...km];if(W.has(`--json`)||(()=>{if(Mm.length!==0){q(`repo-checks: ${Mm.length} warning(s), not enforced yet. Name a rule in REPO_CHECKS_ENFORCE (comma list, or all) to fail on it:`);for(let e of Mm)q(` - ${e.pkg} ${e.id}: ${e.message}`)}})(),W.has(`--json`)){let e={root:Y,new:[...Tm,...$],known:[...Em,...Am],stale:jm,warnings:Mm.map(e=>({pkg:e.pkg,id:e.id,message:e.message}))};K(JSON.stringify(e,null,2)),process.exitCode=Tm.length||$.length?1:0}else if(Tm.length||$.length){if(Tm.length){q(`repo-checks: ${Tm.length} new finding(s)`);let e=null;for(let t of Tm)t.pkg!==e&&(e=t.pkg,q(` ${e}`)),q(` - ${t.id}: ${t.message}`)}if($.length){q(`repo-checks: ${$.length} file(s) above their recorded count`);for(let e of $){q(` ${e.id}: ${e.message}`);for(let t of e.lines)q(` ${t.line}: ${t.text}`),t.hint!==null&&q(` ${t.hint}`)}}process.exitCode=1}else{if(K(`repo-checks: no new findings.`),Em.length||Am.length){let e=Q.within.reduce((e,t)=>e+t.current,0);K(`repo-checks: ${Em.length} known finding(s) and ${e} counted code finding(s) in ${Am.length} file(s) recorded in ${b}.`)}if(Q.stale.length&&!J){K(`repo-checks: ${Q.stale.length} baseline entr${Q.stale.length===1?`y is`:`ies are`} fixed; drop them with webority-repo-checks --baseline-shrink:`);for(let e of Q.stale.map(w))K(` ${e[0]} ${e[1]}`)}if(Q.fallen.length&&!J){K(`repo-checks: ${Q.fallen.length} count(s) fell; record them with webority-repo-checks --baseline-shrink:`);for(let e of Q.fallen)K(` ${e.id} ${e.baseline} -> ${e.current}`)}}export{};