$ErrorActionPreference = 'Stop' $root = Split-Path -Parent $PSScriptRoot $component = Get-Content -LiteralPath (Join-Path $root 'components/TacVerification.vue') -Raw -Encoding UTF8 foreach ($token in @( 'v-show="visible"', 'id="jiapu-tac-host"', ':prop="renderContext"', ':change:prop="tacRenderer.onContextChange"', 'btnCloseFun:', 'btnRefreshFun:', 'this.tac = new window.TAC(config);' )) { if (-not $component.Contains($token)) { throw "Missing native TAC shell token: $token" } } foreach ($forbidden in @( 'tac-panel', 'tac-heading', 'tac-tool', 'slider-bottom .close-btn', 'slider-bottom .refresh-btn', 'logoUrl:', 'i18n:', 'new window.TAC(config, {' )) { if ($component.Contains($forbidden)) { throw "TAC overrides vendor rendering: $forbidden" } } $styleStart = $component.IndexOf('