0
  A   ˆl–Ü4ý('ÜZÔâ€vàZ¸ÓJbÑ¿�þ_#+8Ù‘÷q·ÁóÂƒO¿Á_Š¤ò†;Õ"ô¥ÁÀ 	Ã    // Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/

/** Semantic matcher for a template element. At least one field is required. */
export interface AddonWeaveMatch {
  /** Component tag, case-sensitive (e.g. `CommonAvatar`). */
  component?: string
  /** Native element tag (e.g. `div`). */
  element?: string
  /** Any tag (component or element). */
  tag?: string
  /** Static `id` attribute value. */
  id?: string
  /** Static `data-test-id` attribute value. */
  testId?: string
  /** A token in the element's static `class` attribute. */
  hasClass?: string
  /** A static attribute by name, optionally with a specific value. */
  attr?: { name: string; value?: string }
  /** Restrict to a top-level (template root) element. */
  root?: boolean
}

export interface AddonWeaveTemplateOp {
  match: AddonWeaveMatch
  /** Markup inserted as a sibling before the matched element. */
  insertBefore?: string
  /** Markup inserted as a sibling after the matched element. */
  insertAfter?: string
  /** Markup inserted as the first child of the matched element. */
  prepend?: string
  /** Markup inserted as the last child of the matched element. */
  append?: string
  /** Attribute added to the matched element's opening tag (e.g. `:class="x"`). */
  addAttribute?: string
  /** Override an existing attribute (`name` or `:name`) with a new value. */
  setAttribute?: { name: string; value: string }
  /** Remove an existing attribute (`name` or `:name`). */
  removeAttribute?: string
  /** Wrap the matched element in `open`â€¦elementâ€¦`close`. */
  wrap?: { open: string; close: string }
  /** Replace the whole matched element (incl. children) with this markup. */
  replace?: string
  /** Remove the whole matched element. */
  remove?: boolean
}

export interface AddonWeaveRuleBody {
  /** Code appended to the SFC's `<script setup>` block. */
  scriptSetup?: string
  /** Template edits; each op's `match` must hit â‰¥1 element or the build fails. */
  template?: AddonWeaveTemplateOp[]
}

export interface AddonWeaveRule extends AddonWeaveRuleBody {
  /** Core SFC this rule applies to, matched by `file.endsWith(target)`. */
  target: string
}

interface AddonWeavePlugin {
  name: string
  enforce: 'pre'
  transform(code: string, id: string): { code: string; map: null } | null
}

export function weaveSource(code: string, rule: AddonWeaveRuleBody, id: string): string

export default function addonWeavePlugin(rules?: AddonWeaveRule[]): AddonWeavePlugin
  /   ˆ{‹„„-i[D<†ªoZƒ›Ù«Ä918_‘I|¥‰ÓMdœv ©ƒ†ü+=ÄÃ –    ‹      Õ™QsÚ8Çßû)T?Ü’4©q§…Ì4Ó4É¤ÜÜu:FX²­Á–4’(¥ŸþäØ`‘KzíDU�'ô_±¿]Y+Ûñóéõdöñæ¼�½¿7¾¹¼˜€ á_Ã	„ÓÙ´ùbö#Ï¯Z‹3×ëu¸†\æpv]•#¨´¤©±ÆAò,®mÉ3aó	bMuI’†ÉWÀ3 ùJ+Š‰™Y¬%M·ˆy¥ "g´$!&¦œóG˜§ª§T¹õÁ•’°¤(6ºàl1Uº'PºD9Q°"2]IŠJ¨I%J¤�-§zM1l"21Â6ÈxÁñ¦Ž=ú_ÅiÂ¹K ZÜ…[eë|A%ÍÙ8Ð\IL«(™ŽHSÎ\”ˆ-Ãœf@¥Ÿ.&×Ÿ�ÔEýë$F �$¯&ã«—×ãi�\¡ŠÄ=ìóÞø¼’K¤4¨8¦%øQç�óúíñ	§�Ï”¨TR¡)g�+4ˆ6jÊK%�a=2…´½ü_Ù0™¶“qóúöüj6½¸mR‚ë)ºè~cÕƒäIÂ4˜RIRÍå¦ÍJâl¡ÄË­-³¤y¡ƒ€xÐó'¥ÉWm'jö÷ìÁÍç”Q=Ÿ‡b$–°£½Þ ?öúQ¯?Ñà¬À£ý'sd¼ÄDÚ$�{>›¥™Ïa�Ò©ï³õúÃÞÀ°DgQô–§×dÅ–Œ¯™c®�aœ/+$—*ÔfEÉ¾vQœ(¼ó	$3ÕØñØò qÒ±œ”<oyöõ!™=KnîSuFh£§>¯¥†B½GµÕ.€~kE¤ä²…éÆnÝÐ'HÝ|c\›–ÙòüËä¦>§¾±R^	$©âÌ»gtƒvìÍœ3j'ðJªãï6q[¹�‰|ÃHò…*º·èöLn°N¼bq®Év»³„”Á‰ÏN”K$Š–¤»©‰×�û.xû¤pÏài8xúÝÃO ÕvËÌ.PŽü.³‚”bÒðHZÇn&¡©²`,ƒ$¯í“ÖÏ£Zšnìäøxäs‰UˆÑŒ¨í‘zOàA´B¢†NžzD^Û£9*g|Åp[‰=éd>õºw)‚dºí‘–8ÀýK\êît¹'Ýàx½«Q«ªB»†o+7˜‘O�òmWÙýûÁ'á°}GÃ»71lÞÂüsï4òè    ?   ˆl–Ãa¾”Ò~êq@µp,Üeµ1hß�þ\#k8à#nGÞm �ÏÇƒ¬³Æ_ˆI|¥�+y,ÆÅ Å    /*
   +----------------------------------------------------------------------+
   | PHP Version 7                                                        |
   +----------------------------------------------------------------------+
   | Copyright (c) 1997-2018 The PHP Group                                |
   +----------------------------------------------------------------------+
   | This source file is subject to version 3.01 of the PHP licen