axe-mcp-server 1.3.0-next.7e4e8a1f → 1.3.0-next.805dbc21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/credits.json +21 -8
- package/extension/background.bundle.js +2 -2
- package/extension/content.bundle.js +5 -5
- package/extension/credits.json +14 -4
- package/extension/devtools.bundle.js +1 -1
- package/extension/manifest.json +2 -2
- package/extension/panel.bundle.js +6 -6
- package/extension/popup.bundle.js +2 -2
- package/extension/vendor.bundle.js +1 -1
- package/index.js +8 -8
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! For license information please see content.bundle.js.LICENSE.txt */
|
|
2
|
-
(()=>{var e,t={76754(e,t,n){"use strict";t.addEventNS=t.k=void 0;const r=n(89613);t.k=`recorder:${r.version}`;t.addEventNS=e=>`${t.k}:${e}`},83144(e,t){"use strict";t.assert=void 0,t.assert=function(e,t){if(!e)throw new Error(t)}},25470(e,t,n){"use strict";t.cache=void 0;const r=n(83144),o=n(6857);class i{#e=new Map;#t=new Map;set(e,t){this.#e.set(e,t)}get(e,t){if(function(e){(0,r.assert)("function"==typeof e||void 0===e,"creator must be a function or undefined, "+typeof e+" given")}(t),this.#e.has(e))return this.#e.get(e);if("function"!=typeof t)return;const n=t();return(0,r.assert)(void 0!==n,"Cache creator function should not return undefined"),this.#e.set(e,n),n}has(e){return this.#e.has(e)}async getAsync(e,t){const n=this.get(e);if(n?.resolved&&!n.error)return n.result;if(n?.error)throw n.error;if(!1===n?.resolved)return new Promise((e,t)=>n.promises?.push([e,t]));this.set(e,{resolved:!1,promises:[],result:void 0,error:null});try{let n;n="symbol"==typeof e&&e.description?await o.perf.run(e.description,t):await t();const r=this.get(e);return this.set(e,{resolved:!0,result:n,error:null,promises:void 0}),r?.promises?.forEach(([e])=>e(n)),n}catch(t){const n=this.get(e);throw this.set(e,{resolved:!0,result:void 0,error:t,promises:void 0}),n?.promises?.forEach(([,e])=>e(t)),t}}clear(){this.#e.clear(),this.#t.forEach(e=>e.clear())}child(e){if(function(e){(0,r.assert)("symbol"==typeof e,"key must be a symbol, "+typeof e+" given")}(e),this.#t.has(e))return this.#t.get(e);const t=new i;return this.#t.set(e,t),t}}t.cache=new i},1906(e,t,n){"use strict";t.createLazyProxy=void 0;const r=n(83144),o=Symbol("initialize"),i=Symbol("unset");t.createLazyProxy=function(){let e=null,t=!1;const n=new Proxy(function(...n){return(0,r.assert)(t,"Cannot call method before the object is initialized"),(0,r.assert)("function"==typeof e,"Real object is not a function"),e.apply(this,n)},{get:(n,s,a)=>s===o?n=>(e=n,t=!0,!0):s===i?()=>(e=null,t=!1,!0):((0,r.assert)(t,`Cannot access property '${String(s)}' before the object is initialized`),Reflect.get(e,s,a)),set:(n,o,i)=>((0,r.assert)(t,`Cannot set property '${String(o)}' before the object is initialized`),Reflect.set(e,o,i)),has:(n,o)=>((0,r.assert)(t,`Cannot check for property '${String(o)}' before the object is initialized`),Reflect.has(e,o)),apply:(n,o,i)=>((0,r.assert)(t,"Cannot call method before the object is initialized"),(0,r.assert)("function"==typeof e,"Real object is not a function"),Reflect.apply(e,o,i)),construct:(n,o,i)=>((0,r.assert)(t,"Cannot construct before the object is initialized"),(0,r.assert)("function"==typeof e,"Real object is not a constructor"),Reflect.construct(e,o,i))}),s=()=>(n[i](),n);return{proxy:n,setRealObject:e=>(n[o](e),s)}}},48942(e,t,n){"use strict";t.setAxeProxy=t.axe=void 0;const r=(0,n(1906).createLazyProxy)();t.axe=r.proxy,t.setAxeProxy=r.setRealObject},6857(e,t){"use strict";t.perf=void 0;let n=!1;const r={},o={};t.perf={enable(){n=!0},disable(){t.perf.flush(),n=!1},start(e){n&&(o[e]&&console.warn(`${e} already started`),o[e]=performance.now())},end(e,{minDuration:i=0,flush:s=!1}={}){if(!n)return;if(!o[e])return void console.warn(`${e} not started`);const a=performance.now()-o[e];delete o[e],a<=i||(r[e]??=[],r[e].push(a),s&&t.perf.flush(e))},run(e,t){if(!n)return t();const o=performance.now(),i=t();if(i instanceof Promise)return i.finally(()=>{const t=performance.now();r[e]??=[],r[e].push(t-o)});const s=performance.now();return r[e]??=[],r[e].push(s-o),i},flush(...e){Object.keys(o).forEach(n=>{e.length&&!e?.includes(n)||t.perf.end(n)}),Object.entries(r).forEach(([t,n])=>{e.length&&!e?.includes(t)||(console.log(`${t}: ${n.reduce((e,t)=>e+t)}ms total (${n.length}x)`),delete r[t])})}}},41838(e,t){"use strict";t.serialError=void 0,t.serialError=function e(t,n=0){if("object"!=typeof t||null===t)return{message:String(t)};const r=t,o={...r};for(const e of["message","stack","name"])"string"==typeof r[e]&&(o[e]=r[e]);return r.cause&&(o.cause=n<10?e(r.cause,n+1):"..."),o}},47766(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundRecorderClient=void 0;const r=n(76754),o=n(13551),i=n(86171);t.BackgroundRecorderClient=class{#n;constructor({bridge:e,axe:t}){this.#n=e,i.listeners.initContentBridgeListeners(e),Object.entries(o.contentActions).forEach(([n,o])=>{e.listen((0,r.addEventNS)(n),({message:e})=>o(e,{axe:t}))})}get bridge(){return this.#n}async#r(e,t){const n=await this.#n.send("background",(0,r.addEventNS)(e),t??{});if(void 0===n)throw new Error("BackgroundRecorder is not running in a known context");if(null===n)throw new Error("Unable to establish a connection with the background recorder");if("backgroundRecorderError"in n){const{message:e,stack:t,name:r}=n.backgroundRecorderError;throw new Error(`Background ${r}: ${e}\n${t}`)}if(0!==Object.keys(n).length)return n}attachDebugger(){return this.#r("attachDebugger")}detachDebugger(){return this.#r("detachDebugger")}captureFullScreenshot(){return this.#r("captureFullScreenshot")}getComputedFocusStyles(e){return 0===e.focusTriggers.length?{computedFocusStylesMap:{}}:this.#r("getComputedFocusStyles",e)}getEventListeners(e){return this.#r("getEventListeners",e)}getFrameId(){return this.#r("getFrameId")}getStyleSheets(e){return this.#r("getStyleSheets",e)}setup(e){return this.#r("setup",e)}teardown(e){return this.#r("teardown",e)}}},13551(e,t,n){"use strict";t.contentActions=void 0;const r=n(68036),o=n(94117),i=n(94117);t.contentActions={[r.batchGetComputedStyleTopic]:r.batchGetComputedStyle,[i.frameSetupTopic]:i.frameSetup,[o.frameTeardownTopic]:o.frameTeardown}},68036(e,t,n){"use strict";t.batchGetComputedStyle=t.batchGetComputedStyleTopic=void 0;const r=n(83144);function o(e){const t={},n=["0px","","normal","none","auto","0","0s"],r={"outline-style":"auto"},o=(e,t)=>"string"!=typeof t||n.includes(t)&&r[e]!==t;for(const n of e){const r=e.getPropertyValue(n);o(n,r)||(t[n]=r)}return t}t.batchGetComputedStyleTopic="batchGetComputedStyle",t.batchGetComputedStyle=function({computedStyleTargets:e},{axe:t}){return e.map(({selector:e,pseudoElm:n})=>{const i=t.utils.shadowSelect(e);(0,r.assert)(i,`Element not found for selector ${e}`);const s=i.ownerDocument.defaultView;(0,r.assert)(s,"Window not found");return{computedStyle:o(s.getComputedStyle(i,n?`::${n}`:void 0)),selector:e,pseudoElm:n}})}},7927(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(25470),o=n(11232),i=Symbol("disableAnimations");t.default={disable:function(){const e=r.cache.get(i,()=>[]),t=[document,...Array.from((0,o.getShadowRoots)(document))],n=new Set,a=e=>{for(const t of e.getAnimations()){if(!t.effect||0===t.playbackRate||n.has(t))continue;const e=t.effect.getComputedTiming().endTime;Number.isFinite(e)?s(()=>t.finish()):s(()=>t.cancel())}};for(const n of t){const t=a.bind(null,n);t(),n.addEventListener("transitionrun",t),n.addEventListener("animationstart",t),e.push(()=>{n.removeEventListener("transitionrun",t),n.removeEventListener("animationstart",t)})}e.push(()=>{for(const e of n)s(()=>e.play())})},restore:function(){const e=r.cache.get(i);e&&(e.forEach(e=>e()),r.cache.set(i,[]))}};const s=e=>{try{e()}catch{}}},94117(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.frameTeardown=t.frameTeardownTopic=t.frameSetup=t.frameSetupTopic=void 0;const o=n(25470),i=n(6857),s=r(n(7927));t.frameSetupTopic="frameSetup",t.frameSetup=function({performanceTimer:e,skipAnimations:t}){o.cache.clear(),e?(i.perf.enable(),i.perf.start("advancedRun")):i.perf.disable(),t&&s.default.disable()},t.frameTeardownTopic="frameTeardown",t.frameTeardown=function(){s.default.restore(),i.perf.disable(),o.cache.clear()}},44099(e,t){"use strict";t.fromDOMRect=t.toDOMRect=void 0,t.toDOMRect=function(e){return new DOMRect(e.x,e.y,e.width,e.height)},t.fromDOMRect=function(e){const{x:t,y:n,width:r,height:o}=e;return{x:t,y:n,width:r,height:o}}},29920(e,t,n){"use strict";t.cachedQueryAll=t.Z=void 0;const r=n(25470),o=Symbol("selectorCache");t.Z=r.cache.child(o),t.cachedQueryAll=function(e,n){const r=t.Z.get(e,()=>new Map),o=r.get(n);if(o)return o;const i=Array.from(n.querySelectorAll(e));return r.set(n,i),i}},86256(e,t,n){"use strict";t.findNearbyElms=void 0;const r=n(48942);function o(e){if(e)return r.axe.commons.dom.getNodeGrid?.(e)??e._grid}t.findNearbyElms=function(e){r.axe.commons.dom.createGrid();const t=e.boundingClientRect,n=[];let i=o(e);for(;i;){const r=i.getGridPositionOfRect(t);i.loopGridPosition(r,t=>{for(const r of t)r&&r!==e&&!n.includes(r)&&n.push(r)}),i=o(i.container)}return n}},87732(e,t,n){"use strict";t.isContentEditable=void 0;const r=n(25470),o=Symbol("isContentEditable"),i=r.cache.child(o),s=new Set(["","true","plaintext-only"]),a=new Set(["false"]);t.isContentEditable=function e(t){return i.get(t,()=>{const n=t.getAttribute("contenteditable")?.toLowerCase()??null;return!!s.has(n)||!(a.has(n)||!t.parentElement)&&e(t.parentElement)})}},18937(e,t){"use strict";t.isShadowRoot=t.isElement=void 0;t.isElement=e=>1===e.nodeType;t.isShadowRoot=e=>11===e.nodeType&&"host"in e&&1===e.host?.nodeType},70793(e,t){"use strict";t.isFocusableMedia=void 0,t.isFocusableMedia=function({vNode:e,axe:t}){if("video"!==e.props.nodeName&&"audio"!==e.props.nodeName)return!1;if(!e.hasAttr("controls"))return!1;const n=function(e){const t=e.attr("tabindex")?.match(/^\s*([-+]?\d+)/);return t?parseInt(t[1]):null}(e);return!(null!==n&&n<0)&&!t.commons.dom.isHiddenForEveryone(e)}},91022(e,t,n){"use strict";t.findFocusIndicators=t.E=void 0;const r=n(26864),o=n(25470),i=n(6857),s=n(61825),a=n(83144),c=n(99573),l=n(58047),u=Symbol();function*d(e,n,o){const c=(0,s.getRootNode)(n),u=o.get(c);(0,a.assert)(u,"Style sheets for root of node not found");const d=function(e){return e.flatMap(({cssRules:e})=>Array.from(e)).filter(e=>e instanceof CSSStyleRule)}(u).flatMap(e=>e.selectorText.includes(":focus")?function(e,n){const o=t.E.get(e,()=>new Map);let s=o.get(n);if(!s){const t=`queryWithFocusTriggers: ${e}`;i.perf.start(t),s=(0,r.queryWithFocusTriggers)(e,n),i.perf.end(t,{minDuration:100,flush:!0}),o.set(n,s)}return s}(e.selectorText,c):[]);for(const{triggers:t=[],...n}of d)for(const{type:r,elm:o}of t){const t=1===r.length&&"focus-within"===r[0];(o===e||t&&(0,l.flatTreeContains)(o,e))&&(yield n)}}t.E=o.cache.child(u),t.findFocusIndicators=function(e,t){const n=(0,s.getRootNode)(e),r=t.get(n);(0,a.assert)(r,"Style sheets for root of node not found");const o=new Map;o.set(e,new Set([void 0]));let i=e.shadowRoot??e;do{const n=Array.from(d(e,i,t));for(const{elm:e,pseudoElm:t}of n){const n=o.get(e);n?n.add(t):o.set(e,new Set([t]))}}while(i=(0,c.closestCrossTreeAncestor)(i));const l=[];for(const[e,t]of o)for(const n of t)n?l.push({elm:e,pseudoElm:n}):l.push({elm:e});return l}},67160(e,t){"use strict";t.eachIndicator=void 0,t.eachIndicator=function*(e){for(const[t,n]of e)for(const[e,r]of n)yield{elm:t,pseudoElm:e,triggers:r}}},46243(e,t,n){"use strict";t.groupRuleItems=t.D=void 0;const r=n(20744);t.D=["focus-within","focus","focus-visible"],t.groupRuleItems=function(e){const n=[],o=[],i=[],s=[],a=[];for(let c=0;c<e.length;c++){const l=e[c];if("PseudoElement"===l.type){if("part"===l.name){return{pseudoElmItems:n,pseudoClassSelectorItems:o,focusClassItems:i,hostItems:s,partItems:e.slice(c),otherItems:a}}n.push(l)}else"PseudoClass"===l.type?"host"===l.name.substring(0,4)?s.push(l):r.pseudoClassSelectorNames.includes(l.name)?o.push(l):t.D.includes(l.name)?i.push(l):a.push(l):a.push(l)}return{pseudoElmItems:n,pseudoClassSelectorItems:o,focusClassItems:i,hostItems:s,partItems:[],otherItems:a}}},45671(e,t){"use strict";t.mergeTriggers=void 0,t.mergeTriggers=function(e,t){t=[...t];const n=[];for(const r of e){const e=t.findIndex(e=>e.elm===r.elm);if(-1===e){n.push(r);continue}const o=t.splice(e,1)[0],i=Array.from(new Set([...r.type,...o.type]));n.push({elm:r.elm,type:i})}return n.push(...t),n}},89545(e,t,n){"use strict";t.runHasPseudoClass=void 0;const r=n(59125),o=n(67160),i=n(26864);t.runHasPseudoClass=function(e,t){const n=(0,r.render)(e),s=new Map;for(const{elm:r,pseudoElm:a,triggers:c}of(0,o.eachIndicator)(t)){const t=(0,i.runSelector)(n,e,r);let l=!1;for(const e of(0,o.eachIndicator)(t))e.pseudoElm||(e.triggers.length&&c.push(...e.triggers),l||=!0);l&&s.set(r,new Map([[a,c]]))}return s}},20423(e,t,n){"use strict";t.runHostPseudoClass=void 0;const r=n(59125),o=n(83144),i=n(92061),s=n(67160),a=n(45671),c=n(18937),l=n(26864);function u(e,t,n){if(t.items.some(e=>"PseudoElement"===e.type))return new Map;let r=n.host,o=[],u=!1;for(;r&&((0,c.isElement)(r)||(0,c.isShadowRoot)(r));){const[n]=(0,l.runRuleItems)(t,r,{selfOnly:!0});if("host-context"!==e)return n;n.size&&(u=!0);for(const{pseudoElm:e,triggers:t}of(0,s.eachIndicator)(n))""===e&&(o=(0,a.mergeTriggers)(o,t));r=(0,i.getFlatTreeParent)(r)}return u?new Map([[n.host,new Map([["",o]])]]):new Map}t.runHostPseudoClass=function(e,t){const n=new Map;for(const{argument:i,name:c}of e){if(!i){n.has(t.host)||n.set(t.host,new Map([["",[]]]));continue}(0,o.assert)("Selector"===i.type,`Unexpected argument type ${i.type} in "${(0,r.render)(i)}"`);const e=i.rules[0];if(1!==i.rules.length||e.nestedRule)return null;const l=u(c,e,t);if(0===l.size)return null;for(const{elm:e,pseudoElm:t,triggers:r}of(0,s.eachIndicator)(l)){if(""!==t)return null;const i=n.get(e);if(i){const e=i.get("");(0,o.assert)(e,"indicator missing triggers"),i.set("",(0,a.mergeTriggers)(e,r))}else n.set(e,new Map([["",r]]))}}return n}},23930(e,t,n){"use strict";t.runPartPseudoElm=void 0;const r=n(83144),o=n(24315),i=n(67160),s=n(46243);t.runPartPseudoElm=function(e,t){const[n,...a]=e;(0,r.assert)("PseudoElement"===n.type,"Expected pseudo element");const{argument:c}=n;(0,r.assert)("String"===c?.type,`Invalid ::part argument type ${c?.type}`);const{focusClassItems:l,pseudoElmItems:u,...d}=(0,s.groupRuleItems)(a);if(Object.values(d).some(e=>e.length))return[new Map];let f="";if(u.length){if(u.length>1||u[0]!==a.at(-1))return[new Map];f=u[0].name}const p=l.map(e=>e.name),h=new Map;for(const{elm:e,triggers:n}of(0,i.eachIndicator)(t)){const t=(0,o.getParts)(e);if(!t)continue;const r=c.value.split(/\s+/);t.forEach((e,t)=>{if(r.every(t=>e.has(t))){const e=[...n];p.length&&e.push({elm:t,type:p}),h.set(t,new Map([[f,e]]))}})}return[h]}},20744(e,t,n){"use strict";t.runPseudoClassSelector=t.pseudoClassSelectorNames=void 0;const r=n(59125),o=n(83144),i=n(61825),s=n(26864),a=n(89545),c=n(67160),l=n(45671);t.pseudoClassSelectorNames=["is","where","not","has"],t.runPseudoClassSelector=function({argument:e,name:n},u,d){if(!1===t.pseudoClassSelectorNames.includes(n)||"Selector"!==e?.type)throw new Error("Invalid sub-selector");if("has"===n)return(0,a.runHasPseudoClass)(e,u);const f="not"===n?u:new Map,p=(0,r.render)(e),h=(0,i.getRootNode)(d),m=(0,s.runSelector)(p,e,h);for(const e of(0,c.eachIndicator)(m)){if(e.pseudoElm)continue;if("not"===n&&!e.triggers.length){f.delete(e.elm);continue}const t=u.get(e.elm);if(!t)continue;const r=Array.from(t.entries());(0,o.assert)(1===r.length,"Only one (pseudo-)element should exist");const[i,s]=r[0],a="not"===n?[...s,...e.triggers]:(0,l.mergeTriggers)(s,e.triggers);t.set(i,a),f.set(e.elm,t)}return f}},50406(e,t,n){"use strict";t.runSlottedPseudoElm=void 0;const r=n(83144),o=n(18937),i=n(61825),s=n(26864),a=n(67160);function c(e){return"slot"===e.nodeName.toLowerCase()}t.runSlottedPseudoElm=function({argument:e},t,n){const l=(0,i.getRootNode)(n);if(!(0,o.isShadowRoot)(l))return[new Map];if((0,r.assert)("Selector"===e?.type,`Invalid ::slotted argument type ${e?.type}`),1!==e.rules.length||e.rules[0].nestedRule)return[new Map];const u=e?.rules[0],d=new Map;for(const{elm:e,triggers:n}of(0,a.eachIndicator)(t))if(c(e))for(const t of e.assignedElements()){const[e]=(0,s.runRuleItems)(u,t,{selfOnly:!0});if(0===e.size)continue;const o=e.get(t);(0,r.assert)(e.size<=1,"Only one pseudo element should exist"),(0,r.assert)(o,"Pseudo element map missing");const i=o.get("");(0,r.assert)(i,"Existing triggers missing"),i.push(...n),o.set("",i),d.set(t,o)}return[d]}},26864(e,t,n){"use strict";t.runRuleItems=t.runSelector=t.queryWithFocusTriggers=t.K3=t.PE=void 0;const r=n(59125),o=n(83144),i=n(25470),s=n(61825),a=n(46243),c=n(45671),l=n(67160),u=n(18937),d=n(20744),f=n(50406),p=n(20423),h=n(23930),m=n(29920),g=Symbol("selectorCache");function y(e,n,r){const o=t.PE.get(e,()=>new Map),i=o.get(r);if(i)return i;const s=new Map;for(const e of n.rules){const t=b(e,r);for(const{elm:e,pseudoElm:n,triggers:r}of(0,l.eachIndicator)(t)){const t=s.get(e),o=t?.get(n);t?o?t.set(n,[...o,...r]):t.set(n,r):s.set(e,new Map([[n,r]]))}}return o.set(r,s),s}function b(e,t){const n=new Map,[r,i]=v(e,t);for(const{elm:t,pseudoElm:s,triggers:a}of(0,l.eachIndicator)(r)){if(!e.nestedRule){const e=n.get(t);e?((0,o.assert)(!e.has(s),"Pseudo element already exists"),e.set(s,a)):n.set(t,new Map([[s,a]]));continue}if(s)continue;const r=i??t,u=b(e.nestedRule,r);for(const e of(0,l.eachIndicator)(u)){const t=(0,c.mergeTriggers)(a,e.triggers),r=n.get(e.elm);r?r.set(e.pseudoElm,t):n.set(e.elm,new Map([[e.pseudoElm,t]]))}}return n}function v(e,t,{selfOnly:n}={selfOnly:!1}){const{pseudoElmItems:o,pseudoClassSelectorItems:i,focusClassItems:s,hostItems:c,partItems:l,otherItems:g}=(0,a.groupRuleItems)(e.items);if(c.length>0){if(!(0,u.isShadowRoot)(t)||s.length||o.length||i.length||g.length)return[new Map];const e=(0,p.runHostPseudoClass)(c,t);return e?[e,t]:[new Map]}if(o.length>1||o[0]&&o[0]!==e.items.at(-1))return[new Map];const y=(0,r.render)(r.ast.rule({items:g}))||"*";let b=[];if(n){if(!(0,u.isElement)(t))return[new Map];b=t.matches(y)?[t]:[]}else b=e?.combinator?function(e,t){if(">"===e)return Array.from(t.children);if(!(0,u.isElement)(t))return[];if("+"===e)return[t.nextElementSibling].filter(Boolean);if("~"===e){const e=[];let n=t.nextElementSibling;for(;n;)e.push(n),n=n.nextElementSibling;return e}throw new Error(`Unknown combinator: ${e}`)}(e?.combinator,t).filter(e=>e.matches(y)):(0,m.cachedQueryAll)(y,t);if(0===b.length)return[new Map];let v=new Map;const w=["slotted","part"].includes(o[0]?.name)?"":o[0]?.name??"",S=s.map(e=>e.name);b.forEach(e=>{const t=S.length?[{elm:e,type:S}]:[];v.set(e,new Map([[w,t]]))});for(const e of i)v=(0,d.runPseudoClassSelector)(e,v,t);return"slotted"===o[0]?.name?e.nestedRule?[new Map]:(0,f.runSlottedPseudoElm)(o[0],v,t):l.length?e.nestedRule?[new Map]:(0,h.runPartPseudoElm)(l,v):[v]}t.PE=i.cache.child(g),t.K3=(0,r.createParser)({strict:!1,syntax:{baseSyntax:"progressive"}}),t.queryWithFocusTriggers=function(e,n){let r,i;(0,o.assert)(n,"Node must be provided");try{r=(0,t.K3)(e)}catch{return console.error("Failed to process selector",e),[]}try{i=y(e,r,(0,s.getRootNode)(n))}catch(e){return console.error(e?.message),[]}const a=[];for(const{elm:e,pseudoElm:t,triggers:n}of(0,l.eachIndicator)(i))a.push({elm:e,...t?{pseudoElm:t}:{},...n.length?{triggers:n}:{}});return a},t.runSelector=y,t.runRuleItems=v},99573(e,t,n){"use strict";t.closestCrossTreeAncestor=void 0;const r=n(83144),o=n(18937),i=n(25470),s=Symbol("closestAncestor"),a=i.cache.child(s);t.closestCrossTreeAncestor=function e(t,n=0){return(0,r.assert)(++n<1e4,"Infinite loop in closestCrossTreeAncestor"),a.get(t,()=>(0,o.isShadowRoot)(t)?t.host:t.assignedSlot?t.assignedSlot:t.parentNode&&(0,o.isShadowRoot)(t.parentNode)?t.parentNode.host:t.parentElement?e(t.parentElement,n):null)}},58047(e,t,n){"use strict";t.flatTreeContains=void 0;const r=n(99573),o=n(83144);t.flatTreeContains=function(e,t){const n=e.getRootNode();let i=t,s=0;do{if((0,o.assert)(++s<1e4,"Infinite loop in flatTreeContains"),n===i.getRootNode())return e.contains(i)}while(i=(0,r.closestCrossTreeAncestor)(i));return!1}},92061(e,t){"use strict";t.getFlatTreeParent=void 0,t.getFlatTreeParent=function(e){return e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e&&e.host?.nodeType===Node.ELEMENT_NODE?e.host:e.nodeType===Node.ELEMENT_NODE&&"assignedSlot"in e&&e.assignedSlot?.nodeType===Node.ELEMENT_NODE?e.assignedSlot:e.parentNode}},24315(e,t,n){"use strict";t.getParts=void 0;const r=n(25470),o=Symbol("PARTS_OF_SHADOW_ROOT"),i=r.cache.child(o);function s({shadowRoot:e}){return e?i.get(e,()=>function(e){const t=e.querySelectorAll("[part]"),n=new Map;for(const e of Array.from(t)){const t=e.getAttribute("part");if(!t)continue;const r=t.split(/\s+/).map(e=>e.trim()).filter(e=>e.match(/^[^0-9]/)),o=new Set(r);o.size&&n.set(e,o)}const r=e.querySelectorAll("[exportparts]");for(const e of Array.from(r)){const t=e.getAttribute("exportparts"),r=t?a(t):null;if(!r||!r.size)continue;const o=s(e)??[];for(const[e,t]of o){const o=new Set;t.forEach(e=>{const t=r.get(e);t&&o.add(t)}),o.size&&n.set(e,o)}}return n}(e)):null}function a(e){const t=e.split(",").map(e=>e.split(":")).map(([e,t])=>[e=e.trim(),t=t?.trim()??e]);return new Map(t)}t.getParts=s},61825(e,t){"use strict";t.getRootNode=void 0,t.getRootNode=function(e){const t=e.getRootNode();if(t.nodeType===Node.DOCUMENT_NODE)return t;if("host"in t)return t;throw new Error("Node is not attached to the DOM")}},11232(e,t){"use strict";t.getShadowRoots=void 0,t.getShadowRoots=function*e(t=document){const r=(n(t)?t:t.ownerDocument).createTreeWalker(t,NodeFilter.SHOW_ELEMENT);for(;r.nextNode();){const{shadowRoot:t}=r.currentNode;t&&(yield t,yield*e(t))}};const n=e=>e.nodeType===e.DOCUMENT_NODE},38325(e,t,n){"use strict";t.getAllStyleSheets=void 0;const r=n(11232),o=n(25470),i=Symbol("requestStyleSheetsFromBackground");t.getAllStyleSheets=async function(e,t=document){return o.cache.getAsync(i,()=>async function(e,t=document){const{CSSImportRule:n}=t.defaultView,o=new Map,i=[t,...(0,r.getShadowRoots)(t)];i.forEach(e=>{const t=Array.from(e.styleSheets).concat(e.adoptedStyleSheets);for(const r of t)try{if(r.disabled)continue;for(const e of Array.from(r.cssRules))e instanceof n&&e.styleSheet&&t.push(e.styleSheet);o.has(e)?o.get(e)?.push(r):o.set(e,[r])}catch{}});const s=[];for(const e of o.values())e.forEach(e=>{e.href&&s.push(e.href)});const a=await e.getStyleSheets({ignoreSheets:s}),c=await(l=a.styleSheets,Promise.all(l.map(({content:e})=>(new CSSStyleSheet).replace(e))));var l;return i.forEach(e=>{o.has(e)?o.get(e)?.push(...c):o.set(e,[...c])}),o}(e,t))}},73727(e,t){"use strict";t.getBorder=void 0,t.getBorder=function(e){return{top:parseFloat(e.getPropertyValue("border-top-width")),right:parseFloat(e.getPropertyValue("border-right-width")),bottom:parseFloat(e.getPropertyValue("border-bottom-width")),left:parseFloat(e.getPropertyValue("border-left-width"))}}},38392(e,t){"use strict";t.getPadding=void 0,t.getPadding=function(e){return{top:parseFloat(e.getPropertyValue("padding-top")),right:parseFloat(e.getPropertyValue("padding-right")),bottom:parseFloat(e.getPropertyValue("padding-bottom")),left:parseFloat(e.getPropertyValue("padding-left"))}}},24628(e,t){"use strict";t.isRotated=void 0,t.isRotated=function(e){return 0!==function(e){const t=e.getPropertyValue("rotate");if(!t||"none"===t)return 0;const n=t.split(" ");return parseFloat(n[n.length-1])}(e)||0!==function(e){const t=e.getPropertyValue("transform");if(!t||"none"===t)return 0;const n=t.split(","),r=n[0].indexOf("("),o=parseFloat(n[0].substr(r+1)),i=parseFloat(n[1]);return 180*Math.atan2(i,o)/Math.PI}(e)}},87209(e,t,n){"use strict";t.getAccDescription=void 0;const r=n(48942);function o(e){if(e.attr("aria-describedby")){return r.axe.commons.dom.idrefs(e,"aria-describedby").map(e=>e?r.axe.commons.text.accessibleText(e,{inLabelledByContext:!0}):"").join("")}}function i(e){if(e.attr("aria-description"))return r.axe.commons.text.sanitize(e.attr("aria-description"))}function s(e,t){const n=r.axe.commons.text.sanitize(e.attr("title"));if(null!==n&&!t.includes(n))return n}t.getAccDescription=function(e,t){return[o,i,s].reduce((n,r)=>n??r(e,t),void 0)??""}},5449(e,t,n){"use strict";t.getWordRects=void 0;const r=n(48942),o=n(83144);function i(e,t,n){const r=document.createRange();return r.setStart(e,t),r.setEnd(e,t+n),Array.from(r.getClientRects())}t.getWordRects=function(e){(0,o.assert)(e.children,"vNode.children is not defined");const t=[];for(const{actualNode:r}of e.children){if(!s(r)||!r.nodeValue)continue;const e=n(r);for(const{index:n,length:o}of e)t.push(...i(r,n,o))}return t;function n({nodeValue:e}){(0,o.assert)(e,"textNode.nodeValue is not defined");let t=0,n=0,r="";const i=[],s=e=>{(e.charCount>1||/[0-9]/.test(e.word))&&i.push(e)};for(const o of e)a(o)?(r+=o,t++):r.length>0?(s({charCount:t,index:n,length:r.length,word:r}),n+=r.length+o.length,r="",t=0):n+=o.length;return s({index:n,length:r.length,word:r,charCount:t}),i}function a(e){return!/\s/.test(e)&&!r.axe.commons.text.hasUnicode(e,{emoji:!0,nonBmp:!0,punctuations:!0})}};const s=e=>e?.nodeType===Node.TEXT_NODE},40280(e,t,n){"use strict";t.isInAccessibleText=void 0;const r=n(48942),o=n(83144),i=n(25470),s=n(73868),a=Symbol("accTextCache"),c=i.cache.child(a);function l(e){return c.get(e,()=>{(0,o.assert)(e.actualNode instanceof Element,"vNode.actualNode must be an Element");const t=e.actualNode;if((0,s.isNameFromContent)(e))return t;const n=r.axe.commons.aria.getAccessibleRefs(e).find(e=>!!r.axe.commons.aria.getRole(e,{noPresentational:!0})&&function(e,t){return u.filter(n=>{const o=e.getAttribute(n);return!!o&&r.axe.utils.tokenList(o).includes(t.id)})}(e,t).length);if(n)return n;const i=function(e){if("label"!==e.nodeName.toLowerCase())return null;const t=e.getAttribute("for")?.trim(),n=t&&e.ownerDocument?.getElementById(t);if(n&&f(n))return n;const r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>t!==e&&t instanceof HTMLElement&&f(t)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),o=r.nextNode();return o instanceof HTMLElement?o:null}(t);return i||(e.parent?l(e.parent):null)})}t.isInAccessibleText=function(e){return null!==l(e)};const u=["aria-labelledby","aria-describedby"];const d=["button","input","meter","output","progress","select","textarea"];function f(e){const t=e.nodeName.toLowerCase();return("input"!==t||"hidden"!==e.getAttribute("type"))&&d.includes(t)}},73868(e,t,n){"use strict";t.isNameFromContent=void 0;const r=n(25470),o=n(48942),i=Symbol("nameFromContentRoles"),s=["term","directory","listitem","section","figure"];t.isNameFromContent=function(e){const t=r.cache.get(i,()=>o.axe.commons.standards.getAriaRolesSupportingNameFromContent().filter(e=>!s.includes(e))),n=o.axe.commons.aria.getRole(e);return!!n&&t.includes(n)}},81720(e,t){"use strict";function n(e){return["include","exclude"].some(t=>o(e,t)&&r(e[t]))}function r(e){return"string"==typeof e||e instanceof window.Node||o(e,"fromFrames")||function(e){return o(e,"fromShadowDom")}(e)||!!(t=e)&&"object"==typeof t&&"length"in t&&"number"==typeof t.length;var t}function o(e,t){return!(!e||"object"!=typeof e)&&Object.prototype.hasOwnProperty.call(e,t)}t.isContextSpec=void 0,t.isContextSpec=function(e){return n(e)||r(e)}},61104(e,t,n){"use strict";t.dropObscuredRects=void 0;const r=n(48942),o=n(79819);t.dropObscuredRects=function(e,t,n={}){const{rectsOverlap:i}=r.axe.commons.math,s=(0,o.getObscuredRects)(e),a=[];for(const e of t){if(0===s.filter(t=>i(e,t)).length)a.push(e);else if(n.split)try{const t=r.axe.commons.math.splitRects(e,s).filter(({width:e,height:t})=>e>=1&&t>=1);a.push(...t)}catch{}}return a}},79819(e,t,n){"use strict";t.getObscuredRects=void 0;const r=n(48942),o=n(25470),i=n(63192),s=n(86256),a=Symbol("getObscuringRects"),c=o.cache.child(a);t.getObscuredRects=function(e){return c.get(e,()=>(0,s.findNearbyElms)(e).filter(t=>r.axe.commons.math.hasVisualOverlap(e,t)).map(i.getObscuringRects).flat())}},63192(e,t,n){"use strict";t.getObscuringRects=void 0;const r=n(48942),o=n(34344);t.getObscuringRects=function(e){const t=e.getComputedStylePropertyValue.bind(e),n=e.actualNode;if(n instanceof Element==!1||"0"===t("opacity")||t("filter").includes("opacity(0)"))return[];const i=new r.axe.commons.color.Color;if(i.parseString(t("background-color")),0!==i.alpha||"none"!==t("background-image")||"none"!==t("backdrop-filter")||function(e){switch(e.props.nodeName){case"img":case"iframe":case"object":case"video":case"audio":case"canvas":case"svg":case"math":case"button":case"select":case"textarea":case"keygen":case"progress":case"meter":return!0;case"input":return"hidden"!==e.props.type;default:return!1}}(e))return Array.from(n.getClientRects());const s=(0,o.getTextContentRect)(e);return s?[s]:[]}},34344(e,t,n){"use strict";t.getTextContentRect=void 0;const r=n(61104);t.getTextContentRect=function(e){const t=document.createRange(),n=[];for(const{actualNode:r}of e.children??[])r?.nodeType===Node.TEXT_NODE&&(t.selectNodeContents(r),n.push(...Array.from(t.getClientRects())));if(0===n.length)return null;const o=(0,r.dropObscuredRects)(e,n,{split:!0});if(0===o.length)return null;const i=Math.min(...o.map(({x:e})=>e)),s=Math.min(...o.map(({y:e})=>e)),a=Math.max(...o.map(({x:e,width:t})=>e+t)),c=Math.max(...o.map(({y:e,height:t})=>e+t));return{x:i,y:s,width:a-i,height:c-s}}},73684(e,t,n){"use strict";t.getVisibilityRects=void 0;const r=n(83144);function o(e,t){const{vNode:n}=e.utils.nodeLookup(t);return n._advancedVisibleRects||(n._advancedVisibleRects=i(e,n)),n._advancedVisibleRects}function i(e,t){if(!t.parent){const e=function(e){const t=e.actualNode,n=function(e){const t=e.actualNode?.ownerDocument.defaultView;return(0,r.assert)(t,"Frame window not found"),t}(e),{overflowX:o,overflowY:i}=s(e);let{innerWidth:a,innerHeight:c}=n,l=0,u=0;n.top===n&&"hidden"!==i&&(u=-n.scrollY||0,c=t.scrollHeight+parseFloat(e.getComputedStylePropertyValue("margin-top"))+parseFloat(e.getComputedStylePropertyValue("margin-bottom")));if(n.top===n&&"hidden"!==o){const r=parseFloat(e.getComputedStylePropertyValue("margin-left"));l=-n.scrollX||0,a=Math.max(a,t.scrollWidth+r)}return new DOMRect(l,u,a,c)}(t);return{visibleRect:e,clippingRect:e}}const n=t.boundingClientRect,i=function(e,{parent:t}){(0,r.assert)(t,"Cannot get clipping rect for a node without a parent");const{clippingRect:n,visibleRect:i}=o(e,t);if("visible"===t.getComputedStylePropertyValue("overflow"))return n;if(t.parent&&"body"===t.props.nodeName&&s(t.parent).fromBody)return n;return i}(e,t);return{visibleRect:e.commons.math.getIntersectionRect(n,i)??new DOMRect(n.x,n.y,0,0),clippingRect:i}}function s(e){const t=e.getComputedStylePropertyValue("overflow-x"),n=e.getComputedStylePropertyValue("overflow-y"),r=e.children?.find(e=>"body"===e.props.nodeName);return r&&"visible"===t&&"visible"===n?{overflowX:r.getComputedStylePropertyValue("overflow-x"),overflowY:r.getComputedStylePropertyValue("overflow-y"),fromBody:!0}:{overflowX:t,overflowY:n,fromBody:!1}}t.getVisibilityRects=o},91639(e,t,n){"use strict";t.addRecorderToAxe=void 0;const r=n(26764),o=n(33818),i=n(60655),s=n(62119),a=n(51236),c=n(71897),l=n(47766),u=n(39706),d=n(89613),f=n(83144),p=n(48942),h=Symbol("BACKGROUND_RECORDER_CLIENT");t.addRecorderToAxe=function(e,{bridge:t}){let n;(0,f.assert)(!e.recorderVersion||e.recorderVersion===d.version,`Failed to add Recorder v${d.version} because Recorder v${e.recorderVersion} is already installed.`),e.recorderVersion?(n=e[h],(0,f.assert)(n,"Advanced rules already initialized without a bridge"),(0,f.assert)(n.bridge===t,"Advanced rules already initialized with a different bridge")):(n=new l.BackgroundRecorderClient({bridge:t,axe:e}),e[h]=n,(0,c.updateAxeRun)(e,{background:n},u.advancedRun)),e.recorderVersion=d.version;const m=(0,a.createReporter)(e,i.recorderAsyncReporter);e.addReporter("advancedInputReporter",m);const b=r.recorderRules.map(t=>g(e,t)),v=o.recorderChecks.map(t=>y(e,t,n));e.configure({rules:b,checks:v,reporter:"advancedInputReporter"}),(0,s.updateNodeSerializer)(e),(0,p.setAxeProxy)(e)};const m={passed:!0,failed:!1,incomplete:void 0};function g(e,t){const n=function(e,t){return"function"!=typeof t?t:(n,r)=>t({domNode:n,vNode:r,axe:e})}(e,t.matches),r={...t,matches:n};return n||delete r.matches,r}function y(e,t,n){return{...t,evaluate(r,o,i){const s={domNode:r,options:o,vNode:i,axe:e,background:n},a=t.evaluate(s);if("result"in a){const{data:e,result:t,relatedNodes:n}=a;return this.data(e),n&&this.relatedNodes(n),m[t]}const c=this.async();a.then(({data:e,result:t,relatedNodes:n})=>{this.data(e),n&&this.relatedNodes(n),c(m[t])},e=>{e instanceof Error?c(e):c(new Error(String(e)))})}}}},25014(e,t){"use strict";t.NODE_LIMIT=void 0,t.NODE_LIMIT=15e3},62119(e,t,n){"use strict";t.updateNodeSerializer=void 0;const r=n(83144),o=n(44099),i=n(73727),s=n(38392),a=n(24628),c=n(73684);function l(e,t,n){(0,r.assert)(t.advanced._frameProps,"frameProps is missing");const{innerFrameRect:i,clippingRect:s}=t.advanced._frameProps,a=n.commons.math.getIntersectionRect((0,o.toDOMRect)(e),new DOMRect(0,0,i.width,i.height));if(!a)return{x:e.x+i.x,y:e.y+i.y,width:0,height:0};a.x+=i.x,a.y+=i.y;const c=n.commons.math.getIntersectionRect((0,o.toDOMRect)(a),(0,o.toDOMRect)(s));return c?(0,o.fromDOMRect)(c):{x:a.x,y:a.y,width:0,height:0}}t.updateNodeSerializer=function(e){e.utils.nodeSerializer.update({toSpec(t){const{element:n}=t,{visibleRect:r,clippingRect:l}=(0,c.getVisibilityRects)(e,n),u=n.ownerDocument.defaultView;let d={x:0,y:0};u&&u.top===u&&(d={x:-u.scrollX||0,y:-u.scrollY||0});const f={visibleBoundingRect:(0,o.fromDOMRect)(r),clippingRect:(0,o.fromDOMRect)(l),windowCoordinate:d};if(function(e,t){const{vNode:n}=e.utils.nodeLookup(t);return["frame","iframe"].includes(n.props.nodeName)}(e,n)){const e=function(e){const t=window.getComputedStyle(e),n=(0,i.getBorder)(t),r=(0,s.getPadding)(t),{x:o,y:c,width:l,height:u}=e.getBoundingClientRect();return{innerFrameRect:{x:o+n.left+r.left,y:c+n.top+r.top,width:l-n.left-n.right-r.left-r.right,height:u-n.top-n.bottom-r.top-r.bottom},rotated:(0,a.isRotated)(t)}}(n);f._frameProps={...e,clippingRect:l}}return{...t.toJSON(),advanced:f}},mergeSpecs(t,n){(0,r.assert)(n.advanced?._frameProps,"required frameProps are missing. Was the iframe configured correctly?"),(0,r.assert)(t.advanced,"node from an inner frame is missing advanced metadata. Was the advanced recorder added to the child frame?");const{mergeSpecs:o}=e.utils.DqElement;if(!t.advanced.visibleBoundingRect||!t.advanced.clippingRect||!t.advanced.windowCoordinate||n.advanced._frameProps.rotated)return{...o(t,n),advanced:{visibleBoundingRect:null,windowCoordinate:null,clippingRect:null}};const i=l(t.advanced.visibleBoundingRect,n,e),s=l(t.advanced.clippingRect,n,e),a=function(e,t){const{windowCoordinate:n}=e.advanced,o=t.advanced._frameProps?.innerFrameRect;return(0,r.assert)(n,"windowCoordinate is missing"),(0,r.assert)(o,"innerFrameRect is missing"),{x:o.x+n.x,y:o.y+n.y}}(t,n),c={visibleBoundingRect:i,clippingRect:s,windowCoordinate:a};return{...o(t,n),advanced:c}}})}},39706(e,t,n){"use strict";t.advancedRun=void 0;const r=n(83144),o=n(6857),i=n(58821),s=n(26764),a=n(41838);function c(e,t){const n={ruleId:t.id,method:"#asyncAfter",...(0,a.serialError)(e)},r=t.incomplete[0].node,o=[{id:"error-occurred",data:n,result:void 0,message:"Axe encountered an error; test the page for this type of problem manually"}];return{...t,result:"incomplete",error:n,passes:[],violations:[],incomplete:[{result:"cantTell",impact:void 0,node:r,any:[],all:[],none:o}]}}t.advancedRun=async function({axe:e,context:t=document,options:n={},background:a}){const{runOptions:l,backgroundOptions:u}=(0,i.extractRunOptions)(e,n);try{let n,i;if(await(a?.setup(u)),a&&u.screenshot){const{scrollX:e,scrollY:t}=window;({screenshot:n,zoom:i}=await o.perf.run("captureFullScreenshot",()=>a.captureFullScreenshot())),e===window.scrollX&&t===window.scrollY||window.scrollTo(e,t)}const d=await e.run(t,l);return d.advancedRuleInput.screenshot=n,d.advancedRuleInput.screenshotScale=i,await async function({ruleResults:e,...t}){const{recorderResults:n=[]}=e.advancedRuleInput;for(let e=0;e<n.length;e++){const i=n[e],a=s.recorderRules.find(e=>e.id===i.id);if(a&&"asyncAfter"in a){const s=await o.perf.run(`asyncAfter ${a.id}`,()=>((0,r.assert)("function"==typeof a.asyncAfter,"asyncAfter is not a function"),i.error?i:a.asyncAfter({rawRuleResult:i,...t}).catch(e=>c(e,i))));n[e]=s}}return e}({ruleResults:d,axe:e,background:a})}finally{await(a?.teardown(u))}}},58821(e,t,n){"use strict";t.extractRunOptions=void 0;const r=n(26764);t.extractRunOptions=function(e,t){const n=t.advanced??{};let o=t;e.utils.normalizeRunOptions?o=e.utils.normalizeRunOptions(t):e._audit.normalizeOptions&&(o=e._audit.normalizeOptions(t));const i=r.recorderRules.some(t=>e.utils.ruleShouldRun(t,{},o)),s={attachDebugger:n.attachDebugger??i,screenshot:n.screenshot??i,skipAnimations:n.skipAnimations??i,performanceTimer:!!t.performanceTimer};if(n.aiDisabled){const e=r.recorderRules.filter(e=>e.tags?.includes("AI")),t={...o.rules};e.forEach(e=>{t[e.id]={enabled:!1}}),o={...o,rules:t}}if(!0!==n.testFormStructure){const e={...o.rules};e["recorder/form-structure"]={enabled:!1},o={...o,rules:e}}return{backgroundOptions:s,runOptions:o}}},71897(e,t,n){"use strict";t.updateAxeRun=void 0;const r=n(81720);t.updateAxeRun=function(e,{background:t},n){const o=Object.create(e);o.run=e.run,e.run=function(...i){const{context:s,options:a,callback:c}=function(e,t){const n=e.findIndex(e=>"function"==typeof e),o=e.findIndex(t.utils.isContextSpec??r.isContextSpec);return{callback:-1!==n?e[n]:void 0,context:-1!==o?e[o]:document,options:e.find((e,t)=>![n,o].includes(t))??{}}}(i,e);try{const e=n({axe:o,background:t,context:s,options:a});return c?void e.then(e=>c(null,e),e=>c(e)):e}catch(e){return c?void c(e):Promise.reject(e)}}}},86739(e,t,n){"use strict";const r=n(91639);var o=n(47766);const i=n(22286);var s=n(52058);t.default={addRecorderToAxe:r.addRecorderToAxe,v1AdvancedAsyncReporter:i.v1AdvancedAsyncReporter}},51236(e,t){"use strict";t.createReporter=void 0;t.createReporter=(e,t)=>(n,r,o,i)=>{t(e,n,r).then(o,e=>i(e))}},83493(e,t){"use strict";t.dedupeContrastResults=void 0,t.dedupeContrastResults=function(e){const t=e.find(({id:e})=>"color-contrast"===e),n=e.find(({id:e})=>"recorder/text-contrast"===e);if(!t||!n)return;if(0===t.incomplete.length)return n.incomplete=[],void(n.result="inapplicable");const r=t.incomplete.reduce((e,t)=>e.add(JSON.stringify(t.node.ancestry)),new Set);n.incomplete=n.incomplete.filter(e=>r.has(JSON.stringify(e.node.ancestry))),t.incomplete=[],t.violations.length>0?t.result="failed":t.passes.length>0?t.result="passed":t.result="inapplicable"}},67388(e,t){"use strict";t.dedupeImageDescription=void 0,t.dedupeImageDescription=function(e){const t=e.find(({id:e})=>"image-alt"===e),n=e.find(({id:e})=>"recorder/image-description"===e);if(!t||!n)return;const r=(e.find(({id:e})=>"image-alt"===e)?.violations??[]).reduce((e,t)=>e.add(JSON.stringify(t.node.ancestry)),new Set);n.incomplete=n.incomplete.filter(e=>!r.has(JSON.stringify(e.node.ancestry))),0===n.incomplete.length&&(n.result="inapplicable")}},8335(e,t,n){"use strict";t.limitRecorderResultsNodes=void 0;const r=n(25014);function o(e,t){const n={...e,passes:[],incomplete:[],violations:[]};let r=0;const o=["violations","incomplete","passes"];for(const i of o){const o=Math.min(e[i].length,t-r);n[i]=e[i].slice(0,o),r+=o}return n}function i(e){return e.passes.length+e.incomplete.length+e.violations.length}t.limitRecorderResultsNodes=function(e,t=r.NODE_LIMIT){const n=e.map((e,t)=>({result:e,nodeCount:i(e),originalIndex:t}));n.sort((e,t)=>e.nodeCount-t.nodeCount);let s=t,a=null;const c=new Array(e.length);for(let e=0;e<n.length;e++){const{result:t,nodeCount:r,originalIndex:i}=n[e];if(null!==a){c[i]=o(t,a);continue}const l=n.length-e,u=Math.floor(s/l);r>u?(a=u,c[i]=o(t,a)):(c[i]=t,s-=r)}return c}},60655(e,t,n){"use strict";t.recorderAsyncReporter=void 0;const r=n(89613),o=n(22286),i=n(83493),s=n(67388),a=n(8335);t.recorderAsyncReporter=async(e,t,n)=>{(0,i.dedupeContrastResults)(t),(0,s.dedupeImageDescription)(t);const c=t.filter(e=>!e.tags.includes("advanced")),l=t.filter(e=>e.tags.includes("advanced")),u=await(0,o.v1AdvancedAsyncReporter)(e,c,n),d=await new Promise((t,r)=>{e.getReporter("raw")(l,n,t,r)});return{...u,advancedRuleInput:{recorderResults:(0,a.limitRecorderResultsNodes)(d),recorderSpec:{branding:e._audit.brand,lang:e._audit.lang,coreVersion:e.version,recorderVersion:r.version},runOptions:u.toolOptions,testEnvironment:u.testEnvironment,url:u.url}}}},22286(e,t){"use strict";t.v1AdvancedAsyncReporter=void 0;const n=["passes","incomplete","violations"];function r(e,t,n){const r=o.bind(null,e,t),s=n.nodes.map(n=>{const o=i(n.ancestry);return!0!==t.ancestry&&delete n.ancestry,{...n,any:n.any.map(r),all:n.all.map(r),none:n.none.map(r),advanced:e.get(o)}});return{...n,nodes:s}}function o(e,t,{relatedNodes:n,...r}){return n?{...r,relatedNodes:n.map(n=>{const r=i(n.ancestry);!0!==t.ancestry&&delete n.ancestry;const o=e.get(r);return{...n,advanced:o}})}:r}t.v1AdvancedAsyncReporter=async function(e,t,o){const s=function(e,t){const r={selectors:!1,ancestry:!0},o=e=>t.utils.nodeSerializer.dqElmToSpec(e,r),s=new Map;for(const t of e)for(const e of n)for(const n of t[e]){for(const e of["any","all","none"])n[e].forEach(e=>e.relatedNodes?.forEach(e=>{const t=o(e);s.set(i(t.ancestry),t.advanced)}));const e=o(n.node);s.set(i(e.ancestry),e.advanced)}return s}(t,e),a=r.bind(null,s,o),c=await new Promise((n,r)=>{const i=e.getReporter("v1"),s={...o,ancestry:!0};i(t,s,n,r)});return{...c,passes:c.passes.map(a),violations:c.violations.map(a),incomplete:c.incomplete.map(a),inapplicable:c.inapplicable.map(a)}};const i=e=>e.flat().join(" >>> ")},52058(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.advancedRuleSpecs=void 0;const o=r(n(38188)),i=r(n(1610)),s=r(n(83309)),a=r(n(14906)),c=r(n(86925)),l=r(n(792)),u=r(n(50486));t.advancedRuleSpecs={[o.default.id]:o.default,[i.default.id]:i.default,[s.default.id]:s.default,[a.default.id]:a.default,[c.default.id]:c.default,[l.default.id]:l.default,[u.default.id]:u.default}},50486(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={id:"advanced/autocomplete-correct",impact:"serious",tags:["cat.forms","wcag21aa","wcag135","EN-301-549","EN-9.1.3.5","advanced","non-deterministic","AI"],metadata:{description:"Ensure form fields have appropriate autocomplete attributes for their purpose",help:"Form fields must have correct autocomplete values"},seedRules:["recorder/form-structure"],requiredInput:["screenshot"],any:["advanced/autocomplete-correct"]}},38188(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={id:"advanced/css-focus-visible",impact:"serious",tags:["cat.keyboard","wcag2aa","wcag247","TTv5","TT4.d","EN-301-549","EN-9.2.4.7","RGAAv4","RGAA-10.7.1","advanced"],metadata:{description:"Ensure links, buttons and other controls do not have their focus hidden with CSS",help:"Controls must have visible focus"},seedRules:["recorder/css-focus-visible"],any:["advanced/css-focus-visible"]}},1610(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={id:"advanced/heading-markup",impact:"serious",tags:["cat.semantics","wcag2aa","wcag131","TTv5","TT13.c","EN-301-549","EN-9.1.3.1","RGAAv4","RGAA-9.1.3","advanced","non-deterministic","AI"],metadata:{description:"Ensure each heading is marked up as a heading element or with a heading role",help:"Headings must use heading markup"},seedRules:["recorder/screenshot-features"],requiredInput:["screenshot","screenshotFeatures"],any:["advanced/heading-markup"]}},86925(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={id:"advanced/image-decorative",impact:"moderate",tags:["cat.text-alternatives","wcag2a","wcag111","TTv5","TT7.a","TT7.b","EN-301-549","EN-9.1.1.1","RGAAv4","RGAA-1.2.1","advanced","non-deterministic","work-in-progress","AI"],metadata:{description:"Ensure decorative images are ignored by screen readers",help:"Decorative images must be hidden from screen readers"},seedRules:["recorder/image-description"],requiredInput:["screenshot","imageDescriptions"],any:["advanced/image-decorative"]}},792(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={id:"advanced/image-informative-has-alt",impact:"critical",tags:["cat.text-alternatives","wcag2a","wcag111","TTv5","TT7.a","TT7.b","EN-301-549","EN-9.1.1.1","RGAAv4","RGAA-1.1.1","advanced","non-deterministic","AI"],metadata:{description:"Ensure informative images have accessible names",help:"Informative images must have accessible names"},seedRules:["recorder/image-description"],requiredInput:["screenshot","imageDescriptions"],any:["advanced/image-informative-has-alt"]}},83309(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={id:"advanced/text-contrast",impact:"serious",tags:["cat.color","wcag2aa","wcag143","TTv5","TT13.c","EN-301-549","EN-9.1.4.3","RGAAv4","RGAA-3.2.1","ACT","advanced","non-deterministic"],metadata:{description:"Ensures the contrast between foreground and background colors meets WCAG 2 AA contrast ratio thresholds",help:"Text must have sufficient color contrast"},seedRules:["recorder/text-contrast"],requiredInput:["screenshot"],any:["advanced/text-contrast"]}},14906(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={id:"advanced/visual-role-mismatch",impact:"serious",tags:["cat.semantics","wcag2aa","wcag131","TTv5","TT13.c","EN-301-549","EN-9.1.3.1","advanced","non-deterministic","work-in-progress","AI"],metadata:{description:"Ensures the visual appearance of controls matches their ARIA roles",help:"ARIA roles must match visual appearance"},seedRules:["recorder/screenshot-features"],requiredInput:["screenshot","screenshotFeatures"],any:["advanced/visual-role-mismatch"]}},33818(e,t,n){"use strict";t.recorderChecks=void 0;const r=n(64885),o=n(14690),i=n(65113),s=n(25914),a=n(83134);t.recorderChecks=[r.textContrastCheck,o.screenshotFeaturesCheck,i.focusVisibleCheck,s.imageDescriptionCheck,a.formStructureCheck]},82411(e,t){"use strict";t.findFocusListeners=void 0;const n=/^([^ :>]+):nth-child\(\d+\)/;function r(e,t,n={}){if(t.length<=e.length&&t.every((t,n)=>o(e[n],t)))return!0;if(!n.matchAncestor)return!1;const r=Math.min(t.length,e.length)-1;return!!e.slice(0,r).every((e,n)=>o(e,t[n]))&&!!o(e[r],t[r],n)}function o(e,t,{matchAncestor:r}={}){return!t.startsWith("html")&&!e.match(n)&&(t=t.replace(n,"$1")),r?e.startsWith(t):e===t}t.findFocusListeners=function(e,t){return t.filter(t=>{if(t.ancestry.length!==e.length)return!1;const n="focusin"===t.type||t.useCapture;for(let o=0;o<t.ancestry.length;o++){if(!r(i(e[o]),i(t.ancestry[o]),{matchAncestor:n&&o===t.ancestry.length-1}))return!1}return!0})};const i=e=>Array.isArray(e)?e:[e]},65113(e,t,n){"use strict";t.focusVisibleCheck=t.p=void 0;const r=n(38325),o=n(91022),i=n(25470),s="incomplete";t.p=3,t.focusVisibleCheck={id:"recorder/focus-visible",options:{},async evaluate({background:e,domNode:n}){if(!e)return{result:s,data:{checkVersion:t.p}};const[i,a]=await Promise.all([c(e),(0,r.getAllStyleSheets)(e)]),l=(0,o.findFocusIndicators)(n,a);let u=0;const d=new Map,f=l.map(({elm:e,pseudoElm:t})=>{if(e===n)return{relatedNodeIndex:-1,...t?{pseudoElm:t}:{}};let r=d.get(e)??-1;return-1===r&&(r=u,d.set(e,r),u++),{relatedNodeIndex:r,...t?{pseudoElm:t}:{}}}),p=new Array(u);d.forEach((e,t)=>{p[e]=t});const h={checkVersion:t.p,possibleIndicators:f,frameId:i};return{result:s,data:h,relatedNodes:p}}};const a=Symbol("background.getFrameId");async function c(e){return i.cache.getAsync(a,async()=>(await e.getFrameId()).frameId)}},61212(e,t,n){"use strict";t.focusVisibleMatches=void 0;const r=n(87732),o=n(70793);t.focusVisibleMatches=function({vNode:e,domNode:t,axe:n}){return!!(0,o.isFocusableMedia)({vNode:e,axe:n})||!(!n.commons.dom.isInTabOrder(e)||function(e,t){if("input"===e.props.nodeName)return!i.has(e.props.type);if("textarea"===e.props.nodeName)return!0;return(0,r.isContentEditable)(t)}(e,t))};const i=new Set(["button","checkbox","color","file","image","radio","range","reset","submit"])},73375(e,t,n){"use strict";t.focusVisible=void 0;const r=n(65113),o=n(83144),i=n(82411),s=n(61212);t.focusVisible={id:"recorder/css-focus-visible",excludeHidden:!1,selector:"a, area, audio, button, input, select, summary, textarea, video, [tabindex]",matches:s.focusVisibleMatches,tags:["advanced"],any:[r.focusVisibleCheck.id],async asyncAfter({rawRuleResult:e,background:t}){const n=function(e){const t=[];return e.forEach(e=>{const n=e.any[0].data,r=e.any[0].relatedNodes;if(a(n)&&n.possibleIndicators.length){const i=n.possibleIndicators.map(({pseudoElm:t,relatedNodeIndex:n})=>{let i=e.node.ancestry[e.node.ancestry.length-1];if(-1!==n){const e=`relatedNode ${n} not found`;(0,o.assert)(r?.[n],e);const t=r[n].ancestry;i=t[t.length-1]}return{selector:i,...t?{pseudoElm:t}:{}}});t.push({...n,ancestry:e.node.ancestry,possibleIndicators:i})}}),t}(e.incomplete);let r={},s=[];if(t){const e=await Promise.all([t.getComputedFocusStyles({focusTriggers:n}),t.getEventListeners({types:["focus","focusin"]})]);r=e[0].computedFocusStylesMap,s=e[1].listeners}return e.incomplete.forEach(e=>{e.any[0].data=function(e,t,n){const r=e.any[0].data,{checkVersion:o}=r;if(!a(r))return{checkVersion:o};const s=JSON.stringify(e.node.ancestry),c=t[s],l=(0,i.findFocusListeners)(e.node.ancestry,n);if(!c)return{checkVersion:o};return{checkVersion:o,focusIndicators:c.focusIndicators,error:c.error,focusListeners:l}}(e,r,s)}),e}};const a=e=>!!e.possibleIndicators},83134(e,t,n){"use strict";t.formStructureCheck=t.p=void 0;const r=n(87209),o=n(46735),i=n(75583),s=n(73274);t.p=1;const a=new Set(["button","checkbox","color","file","hidden","image","radio","range","reset","submit"]);function c(e){return(e.attr("placeholder")??e.attr("aria-placeholder")??"").trim()}function l(e,t){const n=e.props?.nodeName;return"select"===n||"textarea"===n||!("input"!==n||!t)&&!a.has(t)}function u(e){const t=e.props?.nodeName;return("input"===t||"textarea"===t)&&e.hasAttr("readonly")}t.formStructureCheck={id:"recorder/form-structure",options:{},evaluate({vNode:e,axe:n}){const a=n.commons.text.accessibleTextVirtual(e),d=(0,o.getNearestForm)(e),f=function(e){if("input"!==e.props?.nodeName)return null;return e.props?.type??null}(e);return{data:{checkVersion:t.p,accessibleName:a,role:n.commons.aria.getRole(e,{noPresentational:!0}),accessibleDescription:(0,r.getAccDescription)(e,a),placeholder:c(e),inputType:f,autocompleteValue:(e.attr("autocomplete")??"").trim(),autocompleteSupport:l(e,f),fieldsetNames:(0,i.getFieldsetNames)(e),nearestHeadingText:(0,s.getPreviousHeading)(e),isDisabled:n.commons.forms.isDisabled(e),isInert:n.commons.dom.isInert(e),isReadonly:u(e)},result:"incomplete",relatedNodes:d?[d]:[]}}}},89831(e,t){"use strict";t.formStructureMatches=void 0;const n=new Set(["textbox","spinbutton","combobox","checkbox","radio","switch","slider","listbox","searchbox"]),r=new Set(["input","select","textarea"]);t.formStructureMatches=function({vNode:e,axe:t}){const o=t.commons.aria.getRole(e);if(null===o){const t=e.props.nodeName;return r.has(t)}return!!n.has(o)}},95566(e,t,n){"use strict";t.formStructure=void 0;const r=n(83134),o=n(89831);t.formStructure={id:"recorder/form-structure",selector:"input, select, textarea, [role]",excludeHidden:!0,matches:o.formStructureMatches,tags:["advanced","AI"],any:[r.formStructureCheck.id]}},75583(e,t,n){"use strict";t.getFieldsetNames=void 0;const r=n(25470),o=n(48942),i=Symbol("FIELDSET_NAMES"),s=r.cache.child(i);t.getFieldsetNames=function e(t){return s.get(t,()=>{const n=t.parent;if(!n)return[];const r=e(n),i=n.props?.nodeName,s=o.axe.commons.aria.getRole(n,{noPresentational:!0});if(!("fieldset"===i)&&!("group"===s))return r;const a=o.axe.commons.text.accessibleTextVirtual(n).trim();return a?[a,...r]:r})}},46735(e,t,n){"use strict";t.getNearestForm=void 0;const r=n(83144),o=n(25470),i=n(48942),s=Symbol("NEAREST_FORM"),a=o.cache.child(s);t.getNearestForm=function e(t){return a.get(t,()=>{const n=t.parent;if(!n)return null;if("form"===n.props?.nodeName){const e=n.actualNode;return(0,r.assert)(e instanceof Element,"form element is not an Element"),e}if("form"===i.axe.commons.aria.getRole(n)){const e=n.actualNode;return(0,r.assert)(e instanceof Element,"form element is not an Element"),e}return e(n)})}},73274(e,t,n){"use strict";t.getPreviousHeading=void 0;const r=n(25470),o=n(48942),i=Symbol("PREVIOUS_HEADING"),s=r.cache.child(i);function a(e){const t=e.children??[];return 0===t.length?e:a(t[t.length-1])}t.getPreviousHeading=function e(t){return s.get(t,()=>{const n=t.parent;if(!n)return"";const r=function(e){const t=e.parent?.children??[],n=t.indexOf(e);if(n<1)return;return a(t[n-1])}(t)??n;return function(e){const t=o.axe.commons.aria.getRole(e);return"heading"===t}(r)?o.axe.commons.text.accessibleTextVirtual(r):e(r)})}},25914(e,t,n){"use strict";t.imageDescriptionCheck=t.p=void 0;const r=n(87209),o=n(79819);t.p=1,t.imageDescriptionCheck={id:"recorder/image-description",options:{},evaluate({vNode:e,axe:n}){const i=n.commons.text.accessibleTextVirtual(e),s=(0,r.getAccDescription)(e,i),a=(0,o.getObscuredRects)(e);return{data:{checkVersion:t.p,label:i,description:s,obscuredRects:a},result:"incomplete"}}}},93427(e,t,n){"use strict";t.imageDescriptionMatches=void 0;const r=n(48942),o=n(40280),i=n(79819);t.imageDescriptionMatches=function({domNode:e,vNode:t}){const n=(0,i.getObscuredRects)(t);return 0!==r.axe.commons.math.splitRects(t.boundingClientRect,n).length&&(e instanceof HTMLImageElement&&e.complete&&e.naturalHeight>0&&!(0,o.isInAccessibleText)(t))}},87410(e,t,n){"use strict";t.imageDescription=void 0;const r=n(25914),o=n(93427);t.imageDescription={id:"recorder/image-description",selector:"img",matches:o.imageDescriptionMatches,tags:["advanced","AI"],any:[r.imageDescriptionCheck.id]}},26764(e,t,n){"use strict";t.recorderRules=void 0;const r=n(26771),o=n(3802),i=n(87410),s=n(73375),a=n(95566);t.recorderRules=[r.textContrast,o.screenshotFeatures,i.imageDescription,s.focusVisible,a.formStructure]},14690(e,t,n){"use strict";t.screenshotFeaturesCheck=t.p=void 0;const r=n(48942),o=n(34344);t.p=5;function i(e){if(!e?.parent||"body"===e.props.nodeName)return[];const t=i(e.parent),n=r.axe.commons.aria.getRole(e,{noPresentational:!0});return n?t.concat(n):t}t.screenshotFeaturesCheck={id:"recorder/screenshot-features",options:{},evaluate({vNode:e,axe:n}){const r=(0,o.getTextContentRect)(e),s=n.commons.dom.isVisibleOnScreen(e),a=i(e),c=n.commons.aria.getRole(e,{noPresentational:!1}),l=n.commons.dom.isFocusable(e),u=!!r;return{data:{checkVersion:t.p,contentRect:r,roles:a,visible:s,role:c,focusable:l,hasChildTextNodes:u},result:"incomplete"}}}},3195(e,t){"use strict";t.screenshotFeaturesMatches=void 0,t.screenshotFeaturesMatches=function(e){const{vNode:t,axe:n}=e;return!(!n.commons.dom.isFocusable(t)&&!function({vNode:e,axe:t}){const n=t.commons.aria.getRoleType(e);return"widget"===n||"composite"===n}(e))||!!function({vNode:e,axe:t}){return t.commons.dom.isVisibleOnScreen(e)&&t.commons.dom.hasContentVirtual(e,!0,!0)}(e)}},3802(e,t,n){"use strict";t.screenshotFeatures=void 0;const r=n(14690),o=n(3195);t.screenshotFeatures={id:"recorder/screenshot-features",selector:"*",matches:o.screenshotFeaturesMatches,excludeHidden:!0,tags:["advanced","AI"],any:[r.screenshotFeaturesCheck.id]}},64885(e,t,n){"use strict";t.textContrastCheck=t.p=void 0;const r=n(5449),o=n(30947),i=n(47050),s=n(61104);t.p=4,t.textContrastCheck={id:"recorder/text-contrast",options:{},evaluate({vNode:e}){const n=(0,r.getWordRects)(e);return{data:{checkVersion:t.p,rects:(0,s.dropObscuredRects)(e,n),fontSize:parseFloat(e.getComputedStylePropertyValue("font-size")),fontWeight:parseFloat(e.getComputedStylePropertyValue("font-weight")),ownCss:(0,i.getOwnCssProps)(e),ancestorCss:(0,o.getAncestorCssProps)(e)},result:"incomplete"}}}},26771(e,t,n){"use strict";t.textContrast=void 0;const r=n(64885);t.textContrast={id:"recorder/text-contrast",matches:"color-contrast-matches",excludeHidden:!1,tags:["advanced"],all:[r.textContrastCheck.id]}},30947(e,t){"use strict";t.getAncestorCssProps=t.D=void 0,t.D=[{name:"-webkit-background-clip",ignore:/box/},{name:"background-clip",ignore:/box/},{name:"filter",ignore:"none"},{name:"mix-blend-mode",ignore:"normal"},{name:"opacity",ignore:"1"},{name:"rotate",ignore:"none"},{name:"scale",ignore:"none"},{name:"text-decoration-line",ignore:/none/},{name:"text-decoration",ignore:"none"},{name:"text-underline-offset",ignore:"auto"},{name:"transform",ignore:"none"},{name:"transform-box",ignore:"view-box"}],t.getAncestorCssProps=function e(r){if(!r)return[];const o=[];for(const{name:e,ignore:i}of t.D){const t=r.getComputedStylePropertyValue(e);t&&!n(i,t)&&o.push([e,t])}const i=e(r.parent),s=Object.fromEntries(o);return s["text-decoration-line"]||delete s["text-decoration"],Object.keys(s).length>0&&i.push(s),i};const n=(e,t)=>e instanceof RegExp?e.test(t):t===e},47050(e,t){"use strict";t.getOwnCssProps=t.H=void 0,t.H=["color","font","font-palette","text-emphasis","text-shadow","-webkit-text-stroke"],t.getOwnCssProps=function(e){const n={};for(const r of t.H)n[r]=e.getComputedStylePropertyValue(r);return n}},5969(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},i=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var s,a,c,l=n(67151);function u(e,t,n){for(var r=null,o=[],i=e,c=0,u=function(){var e=y(function(e){var t=e.getAttribute("id");if(t&&a.idName(t))return{name:"#"+l(t,{isIdentifier:!0}),penalty:0};return null}(i))||y.apply(void 0,function(e){var t=Array.from(e.attributes).filter(function(e){return a.attr(e.name,e.value)});return t.map(function(e){return{name:"["+l(e.name,{isIdentifier:!0})+'="'+l(e.value)+'"]',penalty:.5}})}(i))||y.apply(void 0,function(e){var t=Array.from(e.classList).filter(a.className);return t.map(function(e){return{name:"."+l(e,{isIdentifier:!0}),penalty:1}})}(i))||y(function(e){var t=e.tagName.toLowerCase();if(a.tagName(t))return{name:t,penalty:2};return null}(i))||[{name:"*",penalty:3}],u=function(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;var r=0;for(;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==e);)n=n.nextSibling;return r}(i);if(t===s.All)u&&(e=e.concat(e.filter(g).map(function(e){return m(e,u)})));else if(t===s.Two)e=e.slice(0,1),u&&(e=e.concat(e.filter(g).map(function(e){return m(e,u)})));else if(t===s.One){var f=(e=e.slice(0,1))[0];u&&g(f)&&(e=[m(f,u)])}for(var p=0,h=e;p<h.length;p++){(f=h[p]).level=c}if(o.push(e),o.length>=a.seedMinLength&&(r=d(o,n)))return"break";i=i.parentElement,c++};i&&i!==a.root.parentElement;){if("break"===u())break}return r||(r=d(o,n)),r}function d(e,t){var n=w(v(e));if(n.length>a.threshold)return t?t():null;for(var r=0,o=n;r<o.length;r++){var i=o[r];if(h(i))return i}return null}function f(e){for(var t=e[0],n=t.name,r=1;r<e.length;r++){var o=e[r].level||0;n=t.level===o-1?e[r].name+" > "+n:e[r].name+" "+n,t=e[r]}return n}function p(e){return e.map(function(e){return e.penalty}).reduce(function(e,t){return e+t},0)}function h(e){switch(c.querySelectorAll(f(e)).length){case 0:throw new Error("Can't select any node with this selector: "+f(e));case 1:return!0;default:return!1}}function m(e,t){return{name:e.name+":nth-child("+t+")",penalty:e.penalty+1}}function g(e){return"html"!==e.name&&!e.name.startsWith("#")}function y(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter(b);return n.length>0?n:null}function b(e){return null!=e}function v(e,t){var n,r,s;return void 0===t&&(t=[]),o(this,function(o){switch(o.label){case 0:if(!(e.length>0))return[3,5];n=0,r=e[0],o.label=1;case 1:return n<r.length?(s=r[n],[5,i(v(e.slice(1,e.length),t.concat(s)))]):[3,4];case 2:o.sent(),o.label=3;case 3:return n++,[3,1];case 4:return[3,7];case 5:return[4,t];case 6:o.sent(),o.label=7;case 7:return[2]}})}function w(e){return Array.from(e).sort(function(e,t){return p(e)-p(t)})}function S(e,t,n){var r,s,l;return void 0===n&&(n={counter:0,visited:new Map}),o(this,function(o){switch(o.label){case 0:if(!(e.length>2&&e.length>a.optimizedMinLength))return[3,5];r=1,o.label=1;case 1:return r<e.length-1?n.counter>a.maxNumberOfTries?[2]:(n.counter+=1,(s=e.slice()).splice(r,1),l=f(s),n.visited.has(l)?[2]:h(s)&&function(e,t){return c.querySelector(f(e))===t}(s,t)?[4,s]:[3,4]):[3,5];case 2:return o.sent(),n.visited.set(l,!0),[5,i(S(s,t,n))];case 3:o.sent(),o.label=4;case 4:return r++,[3,1];case 5:return[2]}})}!function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(s||(s={})),t.default=function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.");if("html"===e.tagName.toLowerCase())return"html";var n={root:document.body,idName:function(e){return!0},className:function(e){return!0},tagName:function(e){return!0},attr:function(e,t){return!1},seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4};a=r({},n,t),c=function(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return e;if(e===t.root)return e.ownerDocument;return e}(a.root,n);var o=u(e,s.All,function(){return u(e,s.Two,function(){return u(e,s.One)})});if(o){var i=w(S(o,e));return i.length>0&&(o=i[0]),f(o)}throw new Error("Selector was not found.")}},80870(e,t,n){"use strict";n.d(t,{fx:()=>o,gm:()=>r,pW:()=>s,wk:()=>i});const r=!1,o=()=>r?"firefox":"chrome",i="axe",s=r?"AxeFirefox":"AxeChrome"},33381(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(96367);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const a=async e=>{if(!e||0===e.length)return null;const t=await r.yS.send(r._O.content,"selector:identify",{selector:e});if(!Array.isArray(t)||null==t||!t.length)return null;const n=t.pop(),o=await r.yS.send(r._O.content,"highlight:get-node-metadata",{selector:n.selector},{frameId:n.frameId});if(!o)return null;const[s,...a]=await Promise.all([n,...t].map(e=>r.yS.send(r._O.content,"highlight:get-element-layout",{selector:e.selector},{frameId:e.frameId}))),c=a.reduce((e,t)=>({top:e.top+t.offsetTop+t.border.top,left:e.left+t.offsetLeft+t.border.left}),{top:0,left:0});return i(i({},o),{},{selector:e,frameId:n.frameId,layout:i(i({},s),{},{top:s.top+c.top,left:s.left+c.left})})}},10884(e,t,n){"use strict";n.d(t,{A:()=>D});var r=n(60119),o=n(96367),i=n(22395),s=n(80870),a=n(13205);const c=n(9510).El.lU.match(/(?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)/).groups;n(7378);var l=n(83141),u=n.n(l),d=n(882),f=n(91968);const p=new Map;let h=null;async function m(){try{const e=await browser.storage.local.get();await Promise.all(Object.keys(e).filter(e=>e.startsWith("feature:")).map(e=>browser.storage.local.remove(e)))}catch(e){(0,f.vV)({message:"Failed to clear feature flags from local storage",originalError:e})}}async function g(){return{async variation(e,t){const n=`feature:${e}`,r=t??!1;try{const t=await(0,d.A)();let o=p.get(t);o||(p.clear(),o=await(async e=>{h||(h=fetch(`${e}/api/internal/features`).then(e=>(u()(e.ok,`Feature flag API responded with ${e.status}`),e.json())).catch(e=>{if(h=null,!(e instanceof TypeError&&"Failed to fetch"===e.message))throw e;return Promise.resolve(null)}));const t=await h,n=(null==t?void 0:t.features)??null;return p.set(e,n),h=null,n})(t),null!==o&&await m());const i=(o??[]).find(({id:t})=>t===e),{[n]:s}=await browser.storage.local.get(n),a=i?i.state:"boolean"!=typeof s?r:s;return await browser.storage.local.set({[n]:a}),a}catch{}const o=await browser.storage.local.get(n);return o&&Object.prototype.hasOwnProperty.call(o,n)?!!o[n]:r},clearCache(){p.clear(),m(),h=null}}}async function y(e,t=!1){return(await g()).variation(e,t)}const b=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];function v(e){return!b.includes(e)&&/^[a-z]/.test(e)&&!/[A-Z]/.test(e)&&e.includes("-")}function w(e){const t=e.nodeName.toLowerCase(),n=e.parentNode;let r="";if("head"!==t&&"body"!==t&&n&&n.children.length>1){r=`:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`}const o=e.parentElement;return o?`${w(o)} > ${t}${r}`:t+r}function S(e){let t=e.getRootNode();if(t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE)return w(e);const n=[];let r=e;for(;t.nodeType===Node.DOCUMENT_FRAGMENT_NODE;){const e=t.host;if(!e)return"";n.unshift(r),r=e,t=e.getRootNode()}return n.unshift(r),n.map(e=>w(e))}const O=["_internals","internals","internals_"],x=["internals","privateInternals"];function E(e){if(!v(e.nodeName.toLowerCase()))return;const t=e.wrappedJSObject;if(t){for(const e of O){var n;if(null!==(n=Object.getOwnPropertyDescriptor(t,e))&&void 0!==n&&n.get)continue;const r=t[e];if(r&&"object"==typeof r)return r}for(const e of Object.getOwnPropertySymbols(t))if(e.description&&x.includes(e.description)){var r;if(null!==(r=Object.getOwnPropertyDescriptor(t,e))&&void 0!==r&&r.get)continue;const n=t[e];if(n&&"object"==typeof n)return n}}}const A=/^aria[A-Z]/,T=["role","labels","form"];function C(e){const t={};for(const n in e)if(A.test(n)||T.includes(n))try{const r=e[n];if(null==r)continue;if(r instanceof globalThis.HTMLElement)t[n]=r.isConnected?{type:"HTMLElement",value:S(r)}:void 0;else if(Array.isArray(r)||r instanceof globalThis.NodeList){const e=Array.from(r).filter(e=>e.isConnected&&e instanceof Element);t[n]=e.length?{type:"NodeList",value:e.map(e=>S(e))}:void 0}else"string"==typeof r&&(t[n]=r)}catch{}return t}const I=["article","aside","blockquote","body","div","footer","h1","h2","h3","h4","h5","h6","header","main","nav","p","section","span"];function N(e){if(!e.shadowRoot)return!1;const t=e.nodeName.toLowerCase();return I.includes(t)||v(t)}function P(e,t){const n=document.createTreeWalker(e instanceof Document?e.body:e,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){if(r instanceof Element){const e=E(r);e&&t.push({ancestry:S(r),internals:C(e)}),N(r)&&r.shadowRoot&&P(r.shadowRoot,t)}r=n.nextNode()}}function j(){try{const e=[];return P(document,e),e}catch{return[]}}let k=null,R=!1;async function _(e){const t=e;"function"==typeof(null==t?void 0:t.externalAPIs)&&await y("PRERELEASE_element_internals_DO_NOT_TURN_ON")&&(R||(R=!0,document.addEventListener("axe-set-frame-uuid",e=>{const t=e.detail;k="string"==typeof(null==t?void 0:t.uuid)?t.uuid:null}),document.addEventListener("axe-clear-frame-uuid",()=>{k=null})),t._enableElementInternals=!0,t.externalAPIs({elementInternalsTimeout:5e3,getElementInternals:()=>async function(){try{if(s.gm)return j();if(!k)return[];const e=await o.yS.send(o._O.background,"internals:gather",{uuid:k});return Array.isArray(e)?e:[]}catch(e){return console.error("axe element-internals: gather failed, continuing without internals",e),[]}}()}))}async function M(e){if(window.frames.length>0){const t=500,n=Promise.all(Array.from(window.frames).map(t=>(0,r.A)(t,"axe:ping",e).catch(()=>{}))),o=new Promise(e=>setTimeout(e,t));await Promise.race([n,o])}}async function D(e){var t,n,l,u,d,f;const p=function(e){return!e||"latest"===e||e===`${c.major}.${c.minor}`||e===`${c.major}.${c.minor}.${c.patch}`}(e);if(!p&&!(0,i.Ay)(e))return!1;if(p&&"axe"in window||null!==(t=window.axeVersions)&&void 0!==t&&t[a.e[e]])return await M(e),!0;let h;try{h=await async function(e){let t;globalThis.define=(e,n,r)=>{"axe-core"===e&&(t=r())},globalThis.define.amd=!0;const n=a.e[e],r=async()=>await import(browser.runtime.getURL(`axe-versions/${"latest"===e?e:n}/axe.js`));if(window.axeVersions=window.axeVersions||{},"latest"===e)await r();else if(!window.axeVersions[n]){const e=window.axe;await r(),window.axe=e,window.axeVersions[n]=t}return delete globalThis.define,t}(p?"latest":e)}catch{return!1}const m=["wcag22aaa","wcag22aa","wcag22a","wcag21aaa","wcag2aaa"],g=[];if("function"==typeof(null===(n=h)||void 0===n?void 0:n.getRules))for(const{ruleId:e}of h.getRules(m)){h.utils.getRule(e).enabled||g.push(e)}null===(l=h)||void 0===l||l.configure({branding:{brand:s.wk,application:s.pW},rules:g.map(e=>({id:e,enabled:!0}))});const y=p||null===(u=h)||void 0===u||!u.version?"axe-frame-messenger":`axe-frame-messenger@${h.version}`;return null===(d=h)||void 0===d||null===(f=d.frameMessenger)||void 0===f||f.call(d,{post:async(e,t,n)=>{n(await(0,r.A)(e,y,t,{timeout:"axe.ping"===t.topic?5e3:6e4}))},open:e=>{o.yS.listen(y,async({message:t})=>await new Promise(n=>{e(t,e=>{n(JSON.parse(JSON.stringify(e)))})}))}}),await _(h),await M(e),!0}},16275(e,t,n){"use strict";n.d(t,{default:()=>vs});var r={};n.r(r),n.d(r,{DocumentPosition:()=>Ie,append:()=>_e,appendChild:()=>Re,compareDocumentPosition:()=>Ne,existsOne:()=>$,filter:()=>L,find:()=>F,findAll:()=>B,findOne:()=>V,getAttributeValue:()=>$e,getChildren:()=>Le,getElementById:()=>Y,getElements:()=>G,getElementsByClassName:()=>X,getElementsByTagName:()=>K,getElementsByTagType:()=>J,getFeed:()=>ve,getInnerHTML:()=>me,getName:()=>He,getOuterHTML:()=>he,getParent:()=>Fe,getSiblings:()=>Ve,getText:()=>ge,hasAttrib:()=>Be,innerText:()=>be,nextElementSibling:()=>We,prepend:()=>De,prependChild:()=>Me,prevElementSibling:()=>Ue,removeElement:()=>je,removeSubsets:()=>Ce,replaceElement:()=>ke,testElement:()=>q,textContent:()=>ye,uniqueSort:()=>Pe});var o,i=n(6974);function s(){return!0}function a(){return!1}!function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"}(o||(o={}));var c;!function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"}(c||(c={}));const l=/^[^#\\]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\u00B0-\uFFFF-])+/,u=/\\([\da-f]{1,6}\s?|(\s)|.)/gi;var d;!function(e){e[e.LeftParenthesis=40]="LeftParenthesis",e[e.RightParenthesis=41]="RightParenthesis",e[e.LeftSquareBracket=91]="LeftSquareBracket",e[e.RightSquareBracket=93]="RightSquareBracket",e[e.Comma=44]="Comma",e[e.Period=46]="Period",e[e.Colon=58]="Colon",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Plus=43]="Plus",e[e.Tilde=126]="Tilde",e[e.QuestionMark=63]="QuestionMark",e[e.ExclamationMark=33]="ExclamationMark",e[e.Slash=47]="Slash",e[e.Equal=61]="Equal",e[e.Dollar=36]="Dollar",e[e.Pipe=124]="Pipe",e[e.Circumflex=94]="Circumflex",e[e.Asterisk=42]="Asterisk",e[e.GreaterThan=62]="GreaterThan",e[e.LessThan=60]="LessThan",e[e.Hash=35]="Hash",e[e.LowerI=105]="LowerI",e[e.LowerS=115]="LowerS",e[e.BackSlash=92]="BackSlash",e[e.Space=32]="Space",e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn"}(d||(d={}));const f=new Map([[d.Tilde,c.Element],[d.Circumflex,c.Start],[d.Dollar,c.End],[d.Asterisk,c.Any],[d.ExclamationMark,c.Not],[d.Pipe,c.Hyphen]]),p=new Set(["has","not","matches","is","where","host","host-context"]),h=new Set(["before","after","first-line","first-letter"]);function m(e){switch(e.type){case o.Adjacent:case o.Child:case o.Descendant:case o.Parent:case o.Sibling:case o.ColumnCombinator:return!0;case o.Attribute:case o.Pseudo:case o.PseudoElement:case o.Tag:case o.Universal:return!1}}const g=new Set(["contains","icontains"]);function y(e,t,n){const r=Number.parseInt(t,16)-65536;return Number.isNaN(r)||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)}function b(e){return e.replace(u,y)}function v(e){return e===d.SingleQuote||e===d.DoubleQuote}function w(e){return e===d.Space||e===d.Tab||e===d.NewLine||e===d.FormFeed||e===d.CarriageReturn}function S(e){const t=[],n=O(t,`${e}`,0);if(n<e.length)throw new Error(`Unmatched selector: ${e.slice(n)}`);return t}function O(e,t,n){let r=[];function i(e){const r=t.slice(n+e).match(l);if(!r)throw new Error(`Expected name, found ${t.slice(n)}`);const[o]=r;return n+=e+o.length,b(o)}function s(e){for(n+=e;n<t.length&&w(t.charCodeAt(n));)n++}function a(){const e=n+=1;for(let r=1;n<t.length;n++)switch(t.charCodeAt(n)){case d.BackSlash:n+=1;break;case d.LeftParenthesis:r+=1;break;case d.RightParenthesis:if(r-=1,0===r)return b(t.slice(e,n++))}throw new Error("Parenthesis not matched")}function u(){if(r.length>0&&m(r[r.length-1]))throw new Error("Did not expect successive traversals.")}function y(e){r.length>0&&r[r.length-1].type===o.Descendant?r[r.length-1].type=e:(u(),r.push({type:e}))}function S(e,t){r.push({type:o.Attribute,name:e,action:t,value:i(1),namespace:null,ignoreCase:"quirks"})}function x(){if(r.length>0&&r[r.length-1].type===o.Descendant&&r.pop(),0===r.length)throw new Error("Empty sub-selector");e.push(r)}if(s(0),t.length===n)return n;e:for(;n<t.length;){const e=t.charCodeAt(n);switch(e){case d.Space:case d.Tab:case d.NewLine:case d.FormFeed:case d.CarriageReturn:0!==r.length&&r[0].type===o.Descendant||(u(),r.push({type:o.Descendant})),s(1);break;case d.GreaterThan:y(o.Child),s(1);break;case d.LessThan:y(o.Parent),s(1);break;case d.Tilde:y(o.Sibling),s(1);break;case d.Plus:y(o.Adjacent),s(1);break;case d.Period:S("class",c.Element);break;case d.Hash:S("id",c.Equals);break;case d.LeftSquareBracket:{let e;s(1);let a=null;t.charCodeAt(n)===d.Pipe?e=i(1):t.startsWith("*|",n)?(a="*",e=i(2)):(e=i(0),t.charCodeAt(n)===d.Pipe&&t.charCodeAt(n+1)!==d.Equal&&(a=e,e=i(1))),s(0);let l=c.Exists;const u=f.get(t.charCodeAt(n));if(u){if(l=u,t.charCodeAt(n+1)!==d.Equal)throw new Error("Expected `=`");s(2)}else t.charCodeAt(n)===d.Equal&&(l=c.Equals,s(1));let p="",h=null;if("exists"!==l){if(v(t.charCodeAt(n))){const e=t.charCodeAt(n),r=n+=1;for(;n<t.length&&t.charCodeAt(n)!==e;)n+=t.charCodeAt(n)===d.BackSlash?2:1;if(t.charCodeAt(n)!==e)throw new Error("Attribute value didn't end");p=b(t.slice(r,n)),n+=1}else{const e=n;for(;n<t.length&&!w(t.charCodeAt(n))&&t.charCodeAt(n)!==d.RightSquareBracket;)n+=t.charCodeAt(n)===d.BackSlash?2:1;p=b(t.slice(e,n))}switch(s(0),32|t.charCodeAt(n)){case d.LowerI:h=!0,s(1);break;case d.LowerS:h=!1,s(1)}}if(t.charCodeAt(n)!==d.RightSquareBracket)throw new Error("Attribute selector didn't terminate");n+=1;const m={type:o.Attribute,name:e,action:l,value:p,namespace:a,ignoreCase:h};r.push(m);break}case d.Colon:{if(t.charCodeAt(n+1)===d.Colon){r.push({type:o.PseudoElement,name:i(2).toLowerCase(),data:t.charCodeAt(n)===d.LeftParenthesis?a():null});break}const e=i(1).toLowerCase();if(h.has(e)){r.push({type:o.PseudoElement,name:e,data:null});break}let s=null;if(t.charCodeAt(n)===d.LeftParenthesis)if(p.has(e)){if(v(t.charCodeAt(n+1)))throw new Error(`Pseudo-selector ${e} cannot be quoted`);if(s=[],n=O(s,t,n+1),t.charCodeAt(n)!==d.RightParenthesis)throw new Error(`Missing closing parenthesis in :${e} (${t})`);n+=1}else{if(s=a(),g.has(e)){const e=s.charCodeAt(0);e===s.charCodeAt(s.length-1)&&v(e)&&(s=s.slice(1,-1))}s=b(s)}r.push({type:o.Pseudo,name:e,data:s});break}case d.Comma:x(),r=[],s(1);break;default:{if(t.startsWith("/*",n)){const e=t.indexOf("*/",n+2);if(-1===e)throw new Error("Comment was not terminated");n=e+2,0===r.length&&s(0);break}let a,c=null;if(e===d.Asterisk)n+=1,a="*";else if(e===d.Pipe){if(a="",t.charCodeAt(n+1)===d.Pipe){y(o.ColumnCombinator),s(2);break}}else{if(!l.test(t.slice(n)))break e;a=i(0)}t.charCodeAt(n)===d.Pipe&&t.charCodeAt(n+1)!==d.Pipe&&(c=a,t.charCodeAt(n+1)===d.Asterisk?(a="*",n+=2):a=i(1)),r.push("*"===a?{type:o.Universal,namespace:c}:{type:o.Tag,name:a,namespace:c})}}}return x(),n}var x;!function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(x||(x={}));const E=x.Root,A=x.Text,T=x.Directive,C=x.Comment,I=x.Script,N=x.Style,P=x.Tag,j=x.CDATA;x.Doctype;function k(e){return(t=e).type===x.Tag||t.type===x.Script||t.type===x.Style;var t}function R(e){return e.type===x.CDATA}function _(e){return e.type===x.Text}function M(e){return e.type===x.Comment}function D(e){return Object.hasOwn(e,"children")}function L(e,t,n=!0,r=Number.POSITIVE_INFINITY){return F(e,Array.isArray(t)?t:[t],n,r)}function F(e,t,n,r){const o=[],i=[Array.isArray(t)?t:[t]],s=[0];for(;;){if(s[0]>=i[0].length){if(1===s.length)return o;i.shift(),s.shift();continue}const t=i[0][s[0]++];if(e(t)&&(o.push(t),--r<=0))return o;n&&D(t)&&t.children.length>0&&(s.unshift(0),i.unshift(t.children))}}function V(e,t,n=!0){const r=Array.isArray(t)?t:[t];for(const t of r){if(k(t)&&e(t))return t;if(n&&D(t)&&t.children.length>0){const n=V(e,t.children,!0);if(n)return n}}return null}function $(e,t){return(Array.isArray(t)?t:[t]).some(t=>k(t)&&e(t)||D(t)&&$(e,t.children))}function B(e,t){const n=[],r=[Array.isArray(t)?t:[t]],o=[0];for(;;){if(o[0]>=r[0].length){if(1===r.length)return n;r.shift(),o.shift();continue}const t=r[0][o[0]++];k(t)&&e(t)&&n.push(t),D(t)&&t.children.length>0&&(o.unshift(0),r.unshift(t.children))}}const H={tag_name:e=>"function"==typeof e?t=>k(t)&&e(t.name):"*"===e?k:t=>k(t)&&t.name===e,tag_type:e=>"function"==typeof e?t=>e(t.type):t=>t.type===e,tag_contains:e=>"function"==typeof e?t=>_(t)&&e(t.data):t=>_(t)&&t.data===e};function W(e,t){return"function"==typeof t?n=>k(n)&&t(n.attribs[e]):n=>k(n)&&n.attribs[e]===t}function U(e,t){return n=>e(n)||t(n)}function z(e){const t=Object.keys(e).map(t=>{const n=e[t];return Object.hasOwn(H,t)?H[t](n):W(t,n)});return 0===t.length?null:t.reduce(U)}function q(e,t){const n=z(e);return!n||n(t)}function G(e,t,n,r=Number.POSITIVE_INFINITY){const o=z(e);return o?L(o,t,n,r):[]}function Y(e,t,n=!0){return Array.isArray(t)||(t=[t]),V(W("id",e),t,n)}function K(e,t,n=!0,r=Number.POSITIVE_INFINITY){return L(H.tag_name(e),t,n,r)}function X(e,t,n=!0,r=Number.POSITIVE_INFINITY){return L(W("class",e),t,n,r)}function J(e,t,n=!0,r=Number.POSITIVE_INFINITY){return L(H.tag_type(e),t,n,r)}const Z=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),Q="function"==typeof String.prototype.codePointAt?(e,t)=>e.codePointAt(t):(e,t)=>55296==(64512&e.charCodeAt(t))?1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function ee(e){let t,n=0;const{length:r}=e;for(let o=0;o<r;o++){const r=e.charCodeAt(o);if(r<128&&(!(1342177476>>>r&1)||r>=64||r<32))continue;if(void 0===t?t=e.substring(0,o):n!==o&&(t+=e.substring(n,o)),r<64){t+=Z.get(r),n=o+1;continue}const i=Q(e,o);t+=`&#x${i.toString(16)};`,i!==r&&o++,n=o+1}return void 0===t?e:(n<r&&(t+=e.substr(n)),t)}function te(e,t){return function(n){let r,o=0,i="";for(;r=e.exec(n);)o!==r.index&&(i+=n.substring(o,r.index)),i+=t.get(r[0].charCodeAt(0)),o=r.index+1;return i+n.substring(o)}}const ne=te(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),re=te(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),oe=new Map("altGlyph altGlyphDef altGlyphItem animateColor animateMotion animateTransform clipPath feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feDropShadow feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence foreignObject glyphRef linearGradient radialGradient textPath".split(" ").map(e=>[e.toLowerCase(),e])),ie=new Map("definitionURL attributeName attributeType baseFrequency baseProfile calcMode clipPathUnits diffuseConstant edgeMode filterUnits glyphRef gradientTransform gradientUnits kernelMatrix kernelUnitLength keyPoints keySplines keyTimes lengthAdjust limitingConeAngle markerHeight markerUnits markerWidth maskContentUnits maskUnits numOctaves pathLength patternContentUnits patternTransform patternUnits pointsAtX pointsAtY pointsAtZ preserveAlpha preserveAspectRatio primitiveUnits refX refY repeatCount repeatDur requiredExtensions requiredFeatures specularConstant specularExponent spreadMethod startOffset stdDeviation stitchTiles surfaceScale systemLanguage tableValues targetX targetY textLength viewBox viewTarget xChannelSelector yChannelSelector zoomAndPan".split(" ").map(e=>[e.toLowerCase(),e])),se=new Set("style script xmp iframe noembed noframes plaintext noscript".split(" ")),ae=new Set("area base basefont br col command embed frame hr img input isindex keygen link meta param source track wbr".split(" ")),ce=new Set(["svg","math"]),le=new Set("mi mo mn ms mtext annotation-xml foreignObject desc title".split(" "));const ue=function(e,t={}){const n="length"in e?e:[e],r=t.xmlMode??!1;let o="";for(let e=0;e<n.length;e++)o+=fe(n[e],t,r);return o};function de(e,t,n){let r="";for(let o=0;o<e.length;o++)r+=fe(e[o],t,n);return r}function fe(e,t,n){switch(e.type){case E:return de(e.children,t,n);case T:return`<${e.data}>`;case C:return`\x3c!--${e.data}--\x3e`;case j:return`<![CDATA[${e.children[0].data}]]>`;case I:case N:case P:return function(e,t,n){"foreign"===n&&(e.name=oe.get(e.name)??e.name,e.parent&&le.has(e.parent.name)&&(n=!1));!n&&ce.has(e.name)&&(n="foreign");const{name:r,children:o}=e,i=!n&&ae.has(r);let s=`<${r}${function(e,t,n){if(!e)return"";const r=!1===(t.encodeEntities??t.decodeEntities)?pe:n||"utf8"!==t.encodeEntities?ee:ne,o="foreign"===n,i=!!(t.emptyAttrs??n);let s="";for(const t in e){if(!Object.hasOwn(e,t))continue;const n=e[t],a=o?ie.get(t)??t:t;s+=i||null!=n&&""!==n?` ${a}="${r(null==n?"":String(n))}"`:` ${a}`}return s}(e.attribs,t,n)}`;0===o.length&&(n?!1!==t.selfClosingTags:t.selfClosingTags&&i)?s+=n?"/>":" />":(s+=">",o.length>0&&(s+=de(o,t,n)),i||(s+=`</${r}>`));return s}(e,t,n);case A:{const r=e,o=r.data||"";return!1===(t.encodeEntities??t.decodeEntities)||!n&&r.parent&&se.has(r.parent.name)?o:n||"utf8"!==t.encodeEntities?ee(o):re(o)}}}function pe(e){return e.replaceAll('"',""")}function he(e,t){return ue(e,t)}function me(e,t){return D(e)?e.children.map(e=>he(e,t)).join(""):""}function ge(e){return Array.isArray(e)?e.map(ge).join(""):k(e)?"br"===e.name?"\n":ge(e.children):R(e)?ge(e.children):_(e)?e.data:""}function ye(e){return Array.isArray(e)?e.map(ye).join(""):D(e)&&!M(e)?ye(e.children):_(e)?e.data:""}function be(e){return Array.isArray(e)?e.map(be).join(""):D(e)&&(e.type===x.Tag||R(e))?be(e.children):_(e)?e.data:""}function ve(e){const t=xe(Te,e);return t?"feed"===t.name?function(e){const t=e.children,n={type:"atom",items:K("entry",t).map(e=>{const{children:t}=e,n={media:Oe(t)};Ae(n,"id","id",t),Ae(n,"title","title",t);const r=xe("link",t)?.attribs.href;r&&(n.link=r);const o=Ee("summary",t)||Ee("content",t);o&&(n.description=o);const i=Ee("updated",t);return i&&(n.pubDate=new Date(i)),n})};Ae(n,"id","id",t),Ae(n,"title","title",t);const r=xe("link",t)?.attribs.href;r&&(n.link=r);Ae(n,"description","subtitle",t);const o=Ee("updated",t);o&&(n.updated=new Date(o));return Ae(n,"author","email",t,!0),n}(t):function(e){const t=xe("channel",e.children)?.children??[],n={type:e.name.substr(0,3),id:"",items:K("item",e.children).map(e=>{const{children:t}=e,n={media:Oe(t)};Ae(n,"id","guid",t),Ae(n,"title","title",t),Ae(n,"link","link",t),Ae(n,"description","description",t);const r=Ee("pubDate",t)||Ee("dc:date",t);return r&&(n.pubDate=new Date(r)),n})};Ae(n,"title","title",t),Ae(n,"link","link",t),Ae(n,"description","description",t);const r=Ee("lastBuildDate",t);r&&(n.updated=new Date(r));return Ae(n,"author","managingEditor",t,!0),n}(t):null}const we=["url","type","lang"],Se=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function Oe(e){return K("media:content",e).map(e=>{const{attribs:t}=e,n={medium:t.medium,isDefault:!!t.isDefault};for(const e of we)t[e]&&(n[e]=t[e]);for(const e of Se)t[e]&&(n[e]=Number.parseInt(t[e],10));return t.expression&&(n.expression=t.expression),n})}function xe(e,t){return K(e,t,!0,1)[0]}function Ee(e,t,n=!1){return ye(K(e,t,n,1)).trim()}function Ae(e,t,n,r,o=!1){const i=Ee(n,r,o);i&&(e[t]=i)}function Te(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}function Ce(e){let t=e.length;for(;--t>=0;){const n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0)e.splice(t,1);else for(let r=n.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e}var Ie;function Ne(e,t){const n=[],r=[];if(e===t)return 0;let o=D(e)?e:e.parent;for(;o;)n.unshift(o),o=o.parent;for(o=D(t)?t:t.parent;o;)r.unshift(o),o=o.parent;const i=Math.min(n.length,r.length);let s=0;for(;s<i&&n[s]===r[s];)s++;if(0===s)return Ie.DISCONNECTED;const a=n[s-1],c=a.children,l=n[s],u=r[s];return c.indexOf(l)>c.indexOf(u)?a===t?Ie.FOLLOWING|Ie.CONTAINED_BY:Ie.FOLLOWING:a===e?Ie.PRECEDING|Ie.CONTAINS:Ie.PRECEDING}function Pe(e){return(e=e.filter((e,t,n)=>!n.includes(e,t+1))).sort((e,t)=>{const n=Ne(e,t);return n&Ie.PRECEDING?-1:n&Ie.FOLLOWING?1:0}),e}function je(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){const t=e.parent.children,n=t.lastIndexOf(e);-1!==n&&t.splice(n,1)}e.next=null,e.prev=null,e.parent=null}function ke(e,t){if(t.prev=e.prev,t.prev&&(t.prev.next=t),t.next=e.next,t.next&&(t.next.prev=t),t.parent=e.parent,t.parent){const{children:n}=t.parent,r=n.lastIndexOf(e);if(-1===r)return;n[r]=t,e.parent=null}}function Re(e,t){if(je(t),t.next=null,t.parent=e,e.children.push(t)>1){const n=e.children[e.children.length-2];n.next=t,t.prev=n}else t.prev=null}function _e(e,t){je(t);const{parent:n}=e,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=n,r){if(r.prev=t,n){const e=n.children;e.splice(e.lastIndexOf(r),0,t)}}else n&&n.children.push(t)}function Me(e,t){if(je(t),t.parent=e,t.prev=null,1===e.children.unshift(t))t.next=null;else{const n=e.children[1];n.prev=t,t.next=n}}function De(e,t){je(t);const{parent:n}=e;if(n){const r=n.children;r.splice(r.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}function Le(e){return D(e)?e.children:[]}function Fe(e){return e.parent||null}function Ve(e){const t=Fe(e);if(null!=t)return Le(t);const n=[e];let{prev:r,next:o}=e;for(;null!=r;)n.unshift(r),({prev:r}=r);for(;null!=o;)n.push(o),({next:o}=o);return n}function $e(e,t){const{attribs:n}=e;return n?.[t]}function Be(e,t){const{attribs:n}=e;return null!=n&&Object.hasOwn(n,t)&&null!=n[t]}function He(e){return e.name}function We(e){let{next:t}=e;for(;null!==t&&!k(t);)({next:t}=t);return t}function Ue(e){let{prev:t}=e;for(;null!==t&&!k(t);)({prev:t}=t);return t}!function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"}(Ie||(Ie={}));const ze=/[-[\]{}()*+?.,\\^$|#\s]/g,qe=/\s/;function Ge(e){return e.replace(ze,"\\$&")}const Ye=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function Ke(e,t){return"boolean"==typeof e.ignoreCase?e.ignoreCase:"quirks"===e.ignoreCase?!!t.quirksMode:!t.xmlMode&&Ye.has(e.name)}const Xe={equals(e,t,n){const{adapter:r}=n,{name:o}=t;let{value:i}=t;return Ke(t,n)?(i=i.toLowerCase(),t=>{const n=r.getAttributeValue(t,o);return null!=n&&n.length===i.length&&n.toLowerCase()===i&&e(t)}):t=>r.getAttributeValue(t,o)===i&&e(t)},hyphen(e,t,n){const{adapter:r}=n,{name:o}=t;let{value:i}=t;const{length:s}=i;return Ke(t,n)?(i=i.toLowerCase(),function(t){const n=r.getAttributeValue(t,o);return null!=n&&(n.length===s||"-"===n.charAt(s))&&n.substr(0,s).toLowerCase()===i&&e(t)}):function(t){const n=r.getAttributeValue(t,o);return null!=n&&(n.length===s||"-"===n.charAt(s))&&n.substr(0,s)===i&&e(t)}},element(e,t,n){const{adapter:r}=n,{name:o,value:i}=t;if(qe.test(i))return a;const s=new RegExp(`(?:^|\\s)${Ge(i)}(?:$|\\s)`,Ke(t,n)?"i":"");return function(t){const n=r.getAttributeValue(t,o);return null!=n&&n.length>=i.length&&s.test(n)&&e(t)}},exists:(e,{name:t},{adapter:n})=>r=>n.hasAttrib(r,t)&&e(r),start(e,t,n){const{adapter:r}=n,{name:o}=t;let{value:i}=t;const{length:s}=i;return 0===s?a:Ke(t,n)?(i=i.toLowerCase(),t=>{const n=r.getAttributeValue(t,o);return null!=n&&n.length>=s&&n.substr(0,s).toLowerCase()===i&&e(t)}):t=>!!r.getAttributeValue(t,o)?.startsWith(i)&&e(t)},end(e,t,n){const{adapter:r}=n,{name:o}=t;let{value:i}=t;const s=-i.length;return 0===s?a:Ke(t,n)?(i=i.toLowerCase(),t=>r.getAttributeValue(t,o)?.substr(s).toLowerCase()===i&&e(t)):t=>!!r.getAttributeValue(t,o)?.endsWith(i)&&e(t)},any(e,t,n){const{adapter:r}=n,{name:o,value:i}=t;if(""===i)return a;if(Ke(t,n)){const t=new RegExp(Ge(i),"i");return function(n){const s=r.getAttributeValue(n,o);return null!=s&&s.length>=i.length&&t.test(s)&&e(n)}}return t=>!!r.getAttributeValue(t,o)?.includes(i)&&e(t)},not(e,t,n){const{adapter:r}=n,{name:o}=t;let{value:i}=t;return""===i?t=>!!r.getAttributeValue(t,o)&&e(t):Ke(t,n)?(i=i.toLowerCase(),t=>{const n=r.getAttributeValue(t,o);return(null==n||n.length!==i.length||n.toLowerCase()!==i)&&e(t)}):t=>r.getAttributeValue(t,o)!==i&&e(t)}};function Je(e,t,n){const{adapter:r,xmlMode:o=!1}=n,i=[t],s=[0];for(;;){if(s[0]>=i[0].length){if(1===i.length)return null;i.shift(),s.shift();continue}const t=i[0][s[0]++];if(r.isTag(t)){if(e(t))return t;if(o||"template"!==r.getName(t)){const e=r.getChildren(t);e.length>0&&(i.unshift(e),s.unshift(0))}}}}function Ze(e,t){const n=t.getSiblings(e);if(n.length<=1)return[];const r=n.indexOf(e);return-1===r||r===n.length-1?[]:n.slice(r+1).filter(t.isTag)}function Qe(e,t){const n=t.getParent(e);return null!=n&&t.isTag(n)?n:null}const et="input:is([type=text i],[type=search i],[type=url i],[type=tel i],[type=email i],[type=password i],[type=date i],[type=month i],[type=week i],[type=time i],[type=datetime-local i],[type=number i])",tt={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:":is(\n :is(button, input, select, textarea, optgroup, option)[disabled],\n optgroup[disabled] > option,\n fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)\n )",enabled:":is(button, input, select, textarea, optgroup, option, fieldset):not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], :selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])","read-only":`[readonly]:is(textarea, ${et})`,"read-write":`:not([readonly]):is(textarea, ${et})`,selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};const nt=new Set([9,10,12,13,32]),rt="0".charCodeAt(0),ot="9".charCodeAt(0);function it(e){return function(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return a;if(-1===t)return e=>e<=n;if(0===t)return e=>e===n;if(1===t)return n<0?s:e=>e>=n;const r=Math.abs(t),o=(n%r+r)%r;return t>1?e=>e>=n&&e%r===o:e=>e<=n&&e%r===o}(function(e){switch(e=e.trim().toLowerCase()){case"even":return[2,0];case"odd":return[2,1]}let t=0,n=0,r=i(),o=s();if(t<e.length&&"n"===e.charAt(t)&&(t++,n=r*(o??1),a(),t<e.length?(r=i(),a(),o=s()):r=o=0),null===o||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[n,r*o];function i(){switch(e.charAt(t)){case"-":return t++,-1;case"+":t++}return 1}function s(){const n=t;let r=0;for(;t<e.length&&e.charCodeAt(t)>=rt&&e.charCodeAt(t)<=ot;)r=10*r+(e.charCodeAt(t)-rt),t++;return t===n?null:r}function a(){for(;t<e.length&&nt.has(e.charCodeAt(t));)t++}}(e))}function st(e,{adapter:t,cacheResults:n},r){if(!1===n||"undefined"==typeof WeakMap)return t=>e(t)&&r(t);const o=new WeakMap;function i(e){const t=r(e);return o.set(e,t),t}return function(n){if(!e(n))return!1;if(o.has(n))return o.get(n)??!1;let r=n;do{const e=Qe(r,t);if(null===e)return i(n);r=e}while(!o.has(r));return!!o.get(r)&&i(n)}}function at(e){const{context:t,rootFunc:n,...r}=e;return r}function ct(e,t){if("*"!==t[0]&&t[0]!==e[0])return!1;let n=1;for(let r=1;r<t.length;r++)if("*"!==t[r]){for(;n<e.length&&e[n]!==t[r];)if(e[n++].length<=1)return!1;if(n>=e.length)return!1;n++}return!0}const lt=/^(.+?)\s+of\s+(.+)$/is;function ut(e,t){return function(n,r,o,i,c){const{adapter:l,equals:u}=o,d=t?null:r.match(lt),f=it(d?d[1].trim():r);if(f===a)return a;const p=d&&c?c(S(d[2].trim()),at(o),i):void 0;if(p===a)return a;if(f===s&&!p)return e=>null!==Qe(e,l)&&n(e);const h=p?(e,t)=>p(t):t?(e,t)=>l.getName(t)===l.getName(e):s;return e?function(e){if(p&&!p(e))return!1;const t=l.getSiblings(e);let r=0;for(let n=t.length-1;n>=0;n--){const o=t[n];if(u(e,o))break;l.isTag(o)&&h(e,o)&&r++}return f(r)&&n(e)}:function(e){if(p&&!p(e))return!1;const t=l.getSiblings(e);let r=0;for(const n of t){if(u(e,n))break;l.isTag(n)&&h(e,n)&&r++}return f(r)&&n(e)}}}const dt={contains(e,t,n){const{getText:r}=n.adapter;return st(e,n,e=>r(e).includes(t))},icontains(e,t,n){const r=t.toLowerCase(),{getText:o}=n.adapter;return st(e,n,e=>o(e).toLowerCase().includes(r))},"nth-child":ut(!1,!1),"nth-last-child":ut(!0,!1),"nth-of-type":ut(!1,!0),"nth-last-of-type":ut(!0,!0),root:(e,t,{adapter:n})=>t=>null===Qe(t,n)&&e(t),scope(e,t,n,r){const{equals:o}=n;return r&&0!==r.length?1===r.length?t=>o(r[0],t)&&e(t):t=>r.includes(t)&&e(t):dt.root(e,t,n)},lang(e,t,{adapter:n}){const r=t.split(",").map(e=>e.trim()).filter(e=>e.length>0).map(e=>e.replace(/^['"]|['"]$/g,"").toLowerCase().split("-"));return function(t){let o=t;for(;null!=o;){const i=n.getAttributeValue(o,"xml:lang")??n.getAttributeValue(o,"lang");if(null!=i){if(!i)return r.some(e=>""===e[0])&&e(t);const n=i.toLowerCase().split("-");return r.some(e=>ct(n,e))&&e(t)}const s=n.getParent(o);o=null!=s&&n.isTag(s)?s:null}return r.some(e=>""===e[0])&&e(t)}},hover:ft("isHovered"),visited:ft("isVisited"),active:ft("isActive")};function ft(e){return function(t,n,{adapter:r}){const o=r[e];return"function"!=typeof o?a:function(e){return o(e)&&t(e)}}}const pt=/^[ \t\r\n]*$/,ht={empty(e,{adapter:t}){const n=t.getChildren(e);return n.every(e=>!t.isTag(e))&&n.every(e=>pt.test(t.getText(e)))},"first-child"(e,{adapter:t,equals:n}){if(t.prevElementSibling)return null==t.prevElementSibling(e);const r=t.getSiblings(e).find(e=>t.isTag(e));return null!=r&&n(e,r)},"last-child"(e,{adapter:t,equals:n}){const r=t.getSiblings(e);for(let o=r.length-1;o>=0;o--){if(n(e,r[o]))return!0;if(t.isTag(r[o]))break}return!1},"first-of-type"(e,{adapter:t,equals:n}){const r=t.getSiblings(e),o=t.getName(e);for(const i of r){if(n(e,i))return!0;if(t.isTag(i)&&t.getName(i)===o)break}return!1},"last-of-type"(e,{adapter:t,equals:n}){const r=t.getSiblings(e),o=t.getName(e);for(let i=r.length-1;i>=0;i--){const s=r[i];if(n(e,s))return!0;if(t.isTag(s)&&t.getName(s)===o)break}return!1},"only-of-type"(e,{adapter:t,equals:n}){const r=t.getName(e);return t.getSiblings(e).every(o=>n(e,o)||!t.isTag(o)||t.getName(o)!==r)},"only-child":(e,{adapter:t,equals:n})=>t.getSiblings(e).every(r=>n(e,r)||!t.isTag(r))};function mt(e,t,n,r){if(null===n){if(e.length>r)throw new Error(`Pseudo-class :${t} requires an argument`)}else if(e.length===r)throw new Error(`Pseudo-class :${t} doesn't have any arguments`)}function gt(e){return"_flexibleDescendant"===e.type||m(e)}function yt(e){const t=e.map(bt);for(let n=1;n<e.length;n++){const r=t[n];if(!(r<0))for(let o=n;o>0&&r<t[o-1];o--){const n=e[o];e[o]=e[o-1],e[o-1]=n,t[o]=t[o-1],t[o-1]=r}}}function bt(e){switch(e.type){case o.Universal:return 50;case o.Tag:return 30;case o.Attribute:return Math.floor(function(e){switch(e.action){case c.Exists:return 10;case c.Equals:return"id"===e.name?9:8;case c.Not:return 7;case c.Start:case c.End:return 6;case c.Any:return 5;case c.Hyphen:return 4;case c.Element:return 3}}(e)/(e.ignoreCase?2:1));case o.Pseudo:return e.data?"has"===e.name||"contains"===e.name||"icontains"===e.name?0:Array.isArray(e.data)?Math.max(0,Math.min(...e.data.map(e=>Math.min(...e.map(bt))))):2:3;default:return-1}}function vt(e){return e.type===o.Pseudo&&("scope"===e.name||Array.isArray(e.data)&&e.data.some(e=>e.some(vt)))}const wt={};const St=(e,t,n,r,o)=>{const i=o(t,at(n),r);return i===s?e:i===a?a:t=>i(t)&&e(t)},Ot={is:St,matches:St,where:St,not(e,t,n,r,o){const i=o(t,at(n),r);return i===a?e:i===s?a:t=>!i(t)&&e(t)},has(e,t,n,r,o){const{adapter:i}=n,c=at(n);c.relativeSelector=!0;const l=t.some(e=>e.some(gt))?[wt]:void 0,u=t.some(e=>e.length>0&&(gt(e[0])||e.some(vt)));const d=o(t,c,l);if(d===a)return a;if(l&&d!==s)return u?t=>{if(!e(t))return!1;l[0]=t;const r=i.getChildren(t);return null!==Je(d,d.shouldTestNextSiblings?[...r,...Ze(t,i)]:r,n)}:st(e,n,e=>(l[0]=e,null!==Je(d,i.getChildren(e),n)));const f=e=>null!==Je(d,i.getChildren(e),n);return u?t=>e(t)&&f(t):st(e,n,f)}};function xt(e,t,n,r,i,s){const{adapter:a,equals:c,cacheResults:l}=n;switch(t.type){case o.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case o.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case o.Attribute:if(null!=t.namespace)throw new Error("Namespaced attributes are not yet supported by css-select");return n.xmlMode&&!n.lowerCaseAttributeNames||(t.name=t.name.toLowerCase()),Xe[t.action](e,t,n);case o.Pseudo:return function(e,t,n,r,o){const{name:i,data:s}=t;if(Array.isArray(s)){if(!(i in Ot))throw new Error(`Unknown pseudo-class :${i}(${s})`);return Ot[i](e,s,n,r,o)}const a=n.pseudos?.[i],c="string"==typeof a?a:tt[i];if("string"==typeof c){if(null!=s)throw new Error(`Pseudo ${i} doesn't have any arguments`);const t=S(c);return Ot.is(e,t,n,r,o)}if("function"==typeof a)return mt(a,i,s,1),t=>a(t,s)&&e(t);if(i in dt)return dt[i](e,s,n,r,o);if(i in ht){const t=ht[i];return mt(t,i,s,2),r=>t(r,n,s)&&e(r)}throw new Error(`Unknown pseudo-class :${i}`)}(e,t,n,r,i);case o.Tag:{if(null!=t.namespace)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:r}=t;return n.xmlMode&&!n.lowerCaseTags||(r=r.toLowerCase()),function(t){return a.getName(t)===r&&e(t)}}case o.Descendant:{if(!s||!1===l||"undefined"==typeof WeakMap)return function(t){let n=t;for(;n=Qe(n,a);)if(e(n))return!0;return!1};const t=new WeakMap;return function(n){let r,o=n;for(;o=Qe(o,a);){const n=t.get(o);if(void 0!==n)return r&&(r.matches=n.matches),n.matches;if(r??={matches:!1},r.matches=e(o),t.set(o,r),r.matches)return!0}return!1}}case"_flexibleDescendant":return function(t){let n=t;do{if(e(n))return!0;n=Qe(n,a)}while(n);return!1};case o.Parent:return function(t){return a.getChildren(t).some(t=>a.isTag(t)&&e(t))};case o.Child:return function(t){const n=Qe(t,a);return null!==n&&e(n)};case o.Sibling:return function(t){const n=a.getSiblings(t);for(const r of n){if(c(t,r))break;if(a.isTag(r)&&e(r))return!0}return!1};case o.Adjacent:return a.prevElementSibling?function(t){const n=a.prevElementSibling(t);return null!=n&&e(n)}:function(t){const n=a.getSiblings(t);let r;for(const e of n){if(c(t,e))break;a.isTag(e)&&(r=e)}return!!r&&e(r)};case o.Universal:if(null!=t.namespace&&"*"!==t.namespace)throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}const Et={type:o.Descendant},At={type:"_flexibleDescendant"},Tt={type:o.Pseudo,name:"scope",data:null};function Ct(e,t,n){for(const t of e)yt(t);const{context:r=n,rootFunc:i=s}=t,c=Array.isArray(r),l=r&&(Array.isArray(r)?r:[r]);if(!1!==t.relativeSelector)!function(e,{adapter:t},n){const r=!!n?.every(e=>e===wt||t.isTag(e)&&null!==Qe(e,t));for(const t of e){if(t.length>0&>(t[0])&&t[0].type!==o.Descendant);else{if(!r||t.some(vt))continue;t.unshift(Et)}t.unshift(Tt)}}(e,t,l);else if(e.some(e=>e.length>0&>(e[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let u=!1,d=a;e:for(const n of e){if(n.length>=2){const[e,t]=n;e.type!==o.Pseudo||"scope"!==e.name||(c&&t.type===o.Descendant?n[1]=At:t.type!==o.Adjacent&&t.type!==o.Sibling||(u=!0))}let e=i,r=!1;for(const o of n){e=xt(e,o,t,l,Ct,r);if(0===bt(o)&&(r=!0),e===a)continue e}if(e===i)return i;d=d===a?e:It(d,e)}return d.shouldTestNextSiblings=u,d}function It(e,t){return n=>e(n)||t(n)}const Nt=(e,t)=>e===t,Pt={adapter:{...r,isTag:k},equals:Nt};function jt(e){const t=e??Pt;return t.adapter??=Pt.adapter,t.equals??=t.adapter?.equals??Nt,t}function kt(e,t,n){return Ct("string"==typeof e?S(e):e,jt(t),n)}function Rt(e){return function(t,n,r){const o=jt(r);"function"!=typeof t&&(t=kt(t,o,n));const i=function(e,t,n=!1){n&&(e=function(e,t){const n=Array.isArray(e)?[...e]:[e],r=n.length;for(let e=0;e<r;e++){const r=Ze(n[e],t);n.push(...r)}return n}(e,t));return Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}(n,o.adapter,t.shouldTestNextSiblings);return e(t,i,o)}}const _t=Rt((e,t,n)=>e!==a&&t&&0!==t.length?function(e,t,n){const{adapter:r,xmlMode:o=!1}=n,i=[],s=[t],a=[0];for(;;){if(a[0]>=s[0].length){if(1===s.length)return i;s.shift(),a.shift();continue}const t=s[0][a[0]++];if(r.isTag(t)&&(e(t)&&i.push(t),o||"template"!==r.getName(t))){const e=r.getChildren(t);e.length>0&&(s.unshift(e),a.unshift(0))}}}(e,t,n):[]),Mt=Rt((e,t,n)=>e!==a&&t&&0!==t.length?Je(e,t,n):null);class Dt extends HTMLElement{constructor(){return document.createElement("div")}}class Lt{constructor(e){this.groot=e.groot,this.type=e.event.type,this.target=this.groot.get(e.event.target);const t=e.event.composedPath();t[0]&&(this.composedTarget=this.groot.get(t[0]))}toJSON(){const{type:e,target:t,composedTarget:n}=this,r={type:e,target:JSON.parse(this.groot.safe(t))};return n&&(r.composedTarget=JSON.parse(this.groot.safe(n))),r}}class Ft{constructor(e){this.groot=e.groot,this.vnodeId=e.node.vnodeId,this.element=e.node.element||null,this.depth=e.node.depth||0,this.selector=e.node.selector,this.children=e.node.children||[],this.ancestors=e.node.ancestors||[],this.previousSibling=e.node.previousSibling,this.attributes=e.node.attributes||{},this.attrs=e.node.attrs||[],this.properties=e.node.properties,this.tagName=e.node.tagName,this.isFrame=e.node.isFrame,this.isShadow=e.node.isShadow,this.isShadowHost=e.node.isShadowHost,this.isSlottedElement=e.node.isSlottedElement,this.slotAncestors=e.node.slotAncestors||[],this.slotChildren=e.node.slotChildren||[],this.isCrossOrigin=e.node.isCrossOrigin||!1===this.element?.isConnected,e.frameMessenger&&(this.frameMessenger=e.frameMessenger,this.listeners=new Map,this.init())}toJSON(){const{groot:e,...t}=this;return{...t}}init(){this.isCrossOrigin||this.frameMessenger?.listen("groot:add-event-listener",({message:e})=>{const{type:t,options:n,vnodeId:r,treeId:o,listenerId:i}=e;if(Number(r)!==this.vnodeId||o!==this.groot.getId())return;const s=e=>this.frameMessenger.sendReply("groot:event",{event:e,listenerId:i});this.addEventListener(t,s,n),this.frameMessenger.listen("groot:remove-event-listener",({message:e})=>{const{listenerId:n}=e;if(i===n)return this.removeEventListener(t,s)})})}async addEventListener(e,t,n){let r;if(this.isCrossOrigin){const o=(0,i.A)();await this.frameMessenger.sendAll("groot:add-event-listener",{type:e,options:n,vnodeId:this.vnodeId,treeId:this.groot.getId(),listenerId:o}),this.frameMessenger.listen("groot:event",({message:e})=>{const n=e.event,r={type:n.type,target:this.groot.getById(n.target.vnodeId)};n.composedTarget&&(r.composedTarget=this.groot.getById(n.composedTarget.vnodeId)),e.listenerId===o&&t(r)}),r=async()=>{this.frameMessenger.sendAll("groot:remove-event-listener",{listenerId:o})}}else{const o=e=>{n?.preventDefault&&e.preventDefault(),n?.stopPropagation&&e.stopPropagation(),t(new Lt({event:e,groot:this.groot}))},i="object"!=typeof n?n:Object.fromEntries(Object.entries(n).filter(([e])=>!["preventDefault","stopPropagation"].includes(e)));this.element.addEventListener(e,o,i),r=()=>{this.element.removeEventListener(e,o,i)}}return this.listeners.set(t,r),r}async removeEventListener(e,t){const n=this.listeners.get(t);n&&(await n(),this.listeners.delete(t))}contains(e){if(!e)return!1;const t=this.groot.get(e)??e,n=[...this.children,...this.slotChildren];return n.some(e=>e.vnodeId===t.vnodeId)||n.some(e=>e.contains?.(t))}}const Vt={allowAttrs:Object.freeze(["data-.*","aria-.*","method","action","class","id","xlink:href","role","name","src","type","for"]),rejectKeys:Object.freeze(["element"]),vnodeOnly:Object.freeze(["previousSibling","ancestors","children","slotAncestors","slotChildren"]),rejectTags:Object.freeze(["script","style"]),seed:0,findOneTimeLimit:1e3};var $t=Object.keys(Vt).reduce((e,t)=>(e[t]=Vt[t],e),{});const Bt=/(\[[^=]+=[^[]+\])|(\[.*\])/g;function Ht(e){let t=e;t.startsWith("#")&&(t=`[id="${t.substring(1)}"]`);const n=e.toString().match(Bt);if(n){const e=n.reduce((e,t)=>{let n=t,[r,o,i,s]=["","","",""];const a=n.match(/\[([^~|^$*=]+)([~|^$*]*=)"*([^\]|"]+)"*\]/);if(a?[r,o,i,s]=a:[r,o]=n.match(/\[([^=|'|"]+)\]/)||[],!o)return n;s&&(s=`${i}"${CSS.escape(s)}"`);const c=o.match(/[^:]+:(.*)/);return c?([r,o]=c,n=`[*|${o}${s}]:not([${o}${s}])`):n=`[${o}${s}]`,e+=n},"");t=t.replace(Bt,e)}return t}var Wt=["id","accesskey","aria-keyshortcuts","for","aria-owns","aria-controls","aria-flowto","list","aria-errormessage","type","autocomplete","inputmode","pattern","role","itemprop","itemtype","rel","name","title","aria-labelledby","aria-describedby","placeholder","aria-placeholder","aria-label","aria-roledescription","summary","aria-details","class","action","href","src","aria-valuemax","aria-valuemin","value"];function*Ut(e){const t=function(e){const{tagName:t,attributes:n={}}=e,r=[];t&&r.push({selector:t,score:0});return Object.entries(n).forEach(function(e){return([t,n=""])=>{const r=t.startsWith("data-")?100:Wt.indexOf(t);-1!==r&&("class"===t&&n.indexOf(" ")>-1?e.push(...n.match(/\S+/g).map(e=>({selector:`.${CSS.escape(e)}`,score:r}))):e.push({selector:Ht(`[${t}="${n}"]`),score:r}))}}(r)),r.sort((e,t)=>e.score-t.score).map(e=>e.selector)}(e);yield*function*(e,t=e.length){let n=1;for(;n<=t;n+=1)yield*zt(e,n)}(t)}function*zt(e,t,n={}){const{data:r=[],start:o=0,index:i=0}=n;i===t&&(yield r.slice(0,i).join(""));const s=e.length-1;for(let n=o;n<=s&&s-n+1>=t-i;n+=1)r[i]=e[n],yield*zt(e,t,{data:r,start:n+1,index:i+1})}function qt(e){if(e.length<2)return[];const t=JSON.parse(JSON.stringify(e));let n=t.pop();if("string"==typeof n)return t;let[r,...o]=n;return t.push([r,...qt(o)]),t}var Gt={isTag:()=>!0,existsOne(e,t){return t.some(t=>e(t)||this.existsOne(e,this.getChildren(t)))},getAttributeValue:(e,t)=>e.attributes[t],getChildren:e=>e.children,getName:e=>e.tagName,getParent:e=>e.ancestors[e.ancestors.length-1]||null,getSiblings(e){const t=this.getParent(e);return t?t.children:[e]},prevElementSibling:e=>e.previousSibling||null,getText(){throw new Error("getText() is not implemented. :contains pseudo-selector is not supported.")},hasAttrib:(e,t)=>t in e.attributes,removeSubsets(e){const t=[...e],n=[];for(;t.length;){const e=t.pop();if(t.includes(e))continue;e.ancestors.some(e=>t.includes(e))||n.push(e)}return n.reverse()},findAll(e,t){const n=[];for(const r of t)e(r)&&n.push(r),n.push(...this.findAll(e,this.getChildren(r)));return n},findOne(e,t){let n=null;for(const r of t){if(e(r)){n=r;break}if(n=this.findOne(e,this.getChildren(r)),n)break}return n}},Yt={"nth-context":(e,t)=>e.ancestors.reduce((e,t)=>((t.isFrame||t.isShadow)&&e++,e),1)===Number(t)};function Kt(e,t=!1){const n=e.length,r=e.reduce((e,t)=>{const n=e?`${e} `:"";return Array.isArray(t)?`${n}${t[0]} ${t[1]}`:`${n}${t}`},"");return t?r:`${r}:nth-context(${n})`}const Xt=Symbol("i am groot");class Jt extends Map{constructor(e){super(),this.config={},this[Xt]={},this[Xt].count=0,this[Xt].nextId=()=>{for(;this.vnodeIds[this[Xt].count];)this[Xt].count+=1;return this[Xt].count},this[Xt].listeners={create:new Set,destroy:new Set,update:new Set,walk:new Set,discard:new Set},this[Xt].json=[],this[Xt].dirty=!0,this.ready=!1,this.context=!1,this.rules={},this.vnodeIds={},this.reset(e)}setSeed(e){this[Xt].count=e,this.config.seed=e}use(e={}){const t=["context","seed"],n=Object.assign(this.config,e);return Object.keys(e).forEach(r=>{let o=e[r];if("listeners"===r){const t=e.listeners;return void Object.keys(t).forEach(e=>{let n=t[e];Array.isArray(n)||(n=[n]),n.forEach(t=>{this[Xt].listeners[e].add(t)})})}if(t.includes(r))return this[r]=o;n[r]=o}),this.rules={allowAttrs:new RegExp(`^(${n.allowAttrs.join("|")})$`),rejectTags:n.rejectTags.map(Ht).join(", "),rejectKeys:new RegExp(`^(${n.rejectKeys.join("|")})$`),vnodeOnly:new RegExp(`^(${n.vnodeOnly.join("|")})$`)},this.context&&(this.ready=!0),this}clear(){return super.clear(),this[Xt].count=this.config.seed,this.vnodeIds={},this}reset(e={}){return this.context=window,this.config=Object.assign({},$t,{id:(0,i.A)()}),this.rules={},this.ready=!1,this.use(e),this.clear(),this}getSerializableConfig(){const{acceptNode:e,listeners:t,treeBuilder:n,...r}=this.config;return r}get root(){return this.vnodeIds[this.config.seed]}get flat(){const e=[],t=n=>{e.push(n),n.children.forEach(t)};return this.root&&t(this.root),e}toJSON(){return this[Xt].dirty?(this[Xt].json=JSON.parse(this.safe(this.flat)),this[Xt].dirty=!1,this[Xt].json):this[Xt].json}safe(e){return JSON.stringify(e,(e,t)=>{if(!e.match(this.rules.rejectKeys))return e.match(this.rules.vnodeOnly)&&t?Array.isArray(t)?t.map(e=>e.vnodeId):t.vnodeId:t})}set(e,t){const n=t.element;return this.delete(n),super.set(e,t),this.vnodeIds[t.vnodeId]=t,this}delete(e){const t=super.get(e);return!!super.delete(e)&&(delete this.vnodeIds[t.vnodeId],!0)}getById(e){return this.vnodeIds[e]}getFrameContent(e){try{return e.contentDocument}catch(e){}}getRoot(e){if(e){if(e.window)return e.document.body;if(e.nodeType===Node.DOCUMENT_NODE)return e.body||e.documentElement;if(e.contentWindow){const t=this.getFrameContent(e);return t&&t.body}return e.nodeType===Node.ELEMENT_NODE?e:e.ownerDocument?e.getRootNode():void 0}}getContext(e=this.context){if(e)return e.window?e.document:e.nodeType===Node.DOCUMENT_NODE?e:e.contentWindow?this.getFrameContent(e):e.ownerDocument?e.ownerDocument:void 0}getTreeWalker(e){const{context:t,root:n}=e;let{acceptNode:r}=this.config;return"function"!=typeof r&&(r=()=>!0),t.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{if(!e.matches(this.rules.rejectTags)&&r(e))return NodeFilter.FILTER_ACCEPT}})}merge(e,t){t.children.push(e.root),t.properties.childElementCount+=1,e.forEach(e=>{e.ancestors.unshift(...t.ancestors,t),e.depth=t.depth+e.depth+1,this.updateSelector(e),e.groot=this,this.set(e.element,e),this[Xt].nextId()})}async walk(e,t={}){this[Xt].dirty=!0;const{parent:n}=t,r=this.getContext(e);if(!r)return;const o=this.getRoot(e||r),i=this.getTreeWalker({context:r,root:o}),s=this.refreshVnode(this.get(i.currentNode),t)||this.vnode({parent:n,element:o,vnodeId:this[Xt].nextId()}),a=s.isShadow&&s;for(this.set(o,s);i.nextNode();){const e=this.refreshVnode(this.get(i.currentNode),{parent:a})||this.vnode({element:i.currentNode,parent:a,vnodeId:this[Xt].nextId()});if(this.set(i.currentNode,e),e.isFrame){const t=this.getFrameContent(e.element);if(!t&&this.config.treeBuilder){try{const t=await this.config.treeBuilder.buildSubTree(e.element.contentWindow,{...this.getSerializableConfig(),seed:this[Xt].nextId()});this.merge(t,e)}catch(e){console.error(e)}continue}await this.walk(t,{parent:e});continue}if(e.isShadowHost){const t=i.currentNode.shadowRoot;t&&await this.walk(t,{parent:e})}}return this[Xt].listeners.walk.forEach(e=>e(s,this)),this}vnode(e){const{element:t,parent:n,vnodeId:r}=e,o=new Ft({frameMessenger:this.config.frameMessenger,groot:this,node:{vnodeId:r,element:t,depth:0,selector:[],children:[],ancestors:[],properties:{},attributes:{},attrs:[],slotAncestors:[],slotChildren:[]}});return this.updateTag(o),this.updateAttributes(o),this.updateFrame(o),this.updateShadow(o),this.updateSlot(o),this.updateProperties(o),this.updateParent(o,n),this.updateSelector(o),this[Xt].listeners.create.forEach(e=>e(o,this)),o}refreshVnode(e,t={}){const{parent:n}=t;if(!e)return;const r=new Ft({frameMessenger:this.config.frameMessenger,groot:this,node:e});return r.isShadowHost&&!r.element.shadowRoot||(this.cleanUp(r),this.updateTag(r),this.updateAttributes(r),this.updateFrame(r),this.updateShadow(r),this.updateSlot(r),this.updateProperties(r),this.updateParent(r,n),this.updateSelector(r),this[Xt].listeners.update.forEach(e=>e(r,this))),r}cleanUp(e){e.children.forEach(t=>{t.isShadow||e.isShadow||t.element.isConnected||(this.delete(t.element),this[Xt].listeners.destroy.forEach(t=>t(e,this)))}),e.depth=0,e.children.length=0,e.ancestors.length=0}updateParent(e,t){const{element:n}=e;let r=t;const o=n.parentElement;if((!r||r.isShadow&&o)&&(r=this.get(o)),r&&(e.previousSibling=r.children[r.children.length-1],e.depth=r.depth+1,e.ancestors.length=0,e.ancestors.push(...r.ancestors,r),r.children.push(e),r.properties.childElementCount+=1),e.isSlottedElement){const t=this.get(n.assignedSlot);e.slotAncestors=[...t.ancestors,t],t.slotChildren.push(e)}else r&&r.slotAncestors&&r.slotAncestors.length&&(e.slotAncestors=[...r.slotAncestors,r])}updateFrame(e){const{tagName:t}=e;Boolean(t.match(/^(i){0,1}frame$/i))&&(e.isFrame=!0)}updateSlot(e){const{element:t}=e;t.assignedSlot&&(e.isSlottedElement=!0)}updateTag(e){const{element:t}=e;let n=t.tagName;t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(n="shadow-root"),e.tagName=CSS.escape(n.toLowerCase())}updateAttributes(e){const{element:t}=e;e.attrs.length&&e.attrs.forEach(t=>delete e.attributes[t]),e.attrs.length=0;const n=t.attributes||[];e.attributes={};const r=n.length;let o=0;for(;o<r;o+=1){const r=n[o],i=r.name;if(i.match(this.rules.allowAttrs)){if("class"===i)e.attributes[i]=this.getClassName(t);else e.attributes[i]=r.value;e.attrs.push(i)}}}updateShadow(e){const{tagName:t,element:n,attributes:r}=e;(n.shadowRoot||"use"===t&&r["xlink:href"])&&(e.isShadowHost=!0),"shadow-root"===t&&(e.isShadow=!0)}updateProperties(e){const{tagName:t,element:n,attributes:r}=e;Object.assign(e.properties,{id:r.id,tagName:t,childElementCount:0,className:r.class,classSelector:this.getClassSelector(n),tabIndex:this.getTabIndex(e)})}countMatchingPreviousSiblings(e){const{element:t,tagName:n,vnodeId:r}=e,o=e.ancestors[e.ancestors.length-1];let i=1;if(!o&&t){let e=t.previousElementSibling;const r=this.getContext(t);for(;e&&r.body.contains(e);)CSS.escape(e.tagName).toLowerCase()===n&&i++,e=e.previousElementSibling}else if(o){const e=o.children;let t=!1;i=e.reduce((e,o)=>(o.vnodeId===r?t=!0:o.tagName!==n||t||e++,e),1)}return i}updateSelector(e){const{properties:t,tagName:n}=e,{id:r,classSelector:o}=t,i=e.ancestors[e.ancestors.length-1],s=this.countMatchingPreviousSiblings(e),a=["body","shadow-root"].includes(n)?"":`:nth-of-type(${s})`,c=r?`${CSS.escape(e.tagName)}#${CSS.escape(r)}${o}${a}`:`${CSS.escape(e.tagName)}${o}${a}`,l=[];if(i){const t=JSON.parse(JSON.stringify(i.selector));if(e.isShadow)l.push(...t,[c]);else{if(!i.isShadow&&!i.isFrame){l.push(...t);let e=l[l.length-1];Array.isArray(e)?l[l.length-1][1]+=` > ${c}`:l[l.length-1]+=` > ${c}`}i.isShadow&&(l.push(...t),l[l.length-1][1]=c),i.isFrame&&l.push(...t,c)}}else l.push(c);e.selector=l}getClassName(e){const t=e.className;return t?"string"==typeof t?t:t.baseVal:""}getClassSelector(e){const t=/^-?\d/,n=/[^A-Za-z0-9_-]/g;return(e.classList&&Array.from(e.classList)||[]).reduce((e,r)=>"-"===r||r.match(t)||r.startsWith("--")?e+`[class*="${r}"]`:e+"."+r.replace(n,e=>`\\0000${e.codePointAt(0).toString(16)}`),"")}getTabIndex(e){const{element:t,attributes:n}=e,r=t.tabIndex;if(-1!==r||n.tabindex)return r}querySelector(e,t=this.context){const n=JSON.parse(JSON.stringify(e)),r=n.shift();let o;if(Array.isArray(r))r.length>1&&n.unshift(r[1]),o=t.shadowRoot;else{const e=t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t:this.getContext(t);o=e&&e.querySelector(r)}if(o)return n.length?this.querySelector(n,o):o}async fromFlatTree(e,t){return this[Xt].dirty=!0,await this.walk(t),e.forEach(e=>{if(!this.selectOne(e.selector)){this.findOneWithVNode(e)||this[Xt].listeners.discard.forEach(t=>t(e,this))}}),this}async from(e,t){this[Xt].dirty=!0;const n=[];e.forEach(e=>{const{selector:r,vnodeId:o,element:i}=e;let s=i;if(s&&s.isConnected||(s=this.querySelector(r,t)),s){const e=this.vnode({element:s,vnodeId:o});this.set(s,e)}else n.push(e)});const r=Math.ceil(this.config.findOneTimeLimit/n.length);return n.forEach(e=>{const t=this.findOne(e,{findOneTimeLimit:r});if(t&&!this.has(t)){const n=this.vnode({element:t,vnodeId:e.vnodeId});this.set(t,n)}else this[Xt].listeners.discard.forEach(t=>t(e,this))}),await this.walk(t),this}hydrateFlatTree(e){e.forEach(e=>{const t=new Dt;let n={...e,element:t,children:[],ancestors:[]};n=new Ft({frameMessenger:this.config.frameMessenger,groot:this,node:n}),this.set(t,n)}),e.forEach(e=>{const t=this.getById(e.vnodeId);t.children.push(...e.children.map(e=>this.getById(e))),t.ancestors.push(...e.ancestors.map(e=>this.getById(e))),t.previousSibling=this.getById(e.previousSibling)})}findOneWithVNode(e,t={}){const n=t.findOneTimeLimit||this.config.findOneTimeLimit,r=Date.now(),o=e.selector?e.selector.slice(-1):[],i=Ut(e);let s=i.next().value;for(;s;){const e=this.selectAll([...o,s]);if(1===e.length)return e[0];if(Date.now()-r>n)return;s=i.next().value}}findOne(e,t={}){const n=t.findOneTimeLimit||this.config.findOneTimeLimit,r=Date.now();let o=t.context||this.getContext();if(e.selector&&e.selector.length>1&&(o=this.querySelector(qt(e.selector)),o&&o.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&Boolean(o.tagName.match(/^(i){0,1}frame$/i))&&(o=o.contentDocument),!o))return;const i=Ut(e);let s=i.next().value;for(;s;){const e=o.querySelectorAll(s);if(1===e.length)return e[0];if(Date.now()-r>n)return;s=i.next().value}}selectAll(e,t={}){const n=Kt(e,t.isRelativeSelector);return _t(n,this.flat,{adapter:Gt,pseudos:Yt})}selectOne(e){const t=Kt(e);return Mt(t,this.flat,{adapter:Gt,pseudos:Yt})}getId(){return this.config.id}}class Zt{trees=new Map;constructor(e){this.frameMessenger=e.frameMessenger,this.init()}init(){this.frameMessenger.listen("groot:tree-builder:build-tree",async({message:e})=>{const{grootConfig:t}=e;return{tree:(await this.buildTree(t)).toJSON()}})}async buildSubTree(e,t){const{tree:n}=await this.frameMessenger.send(e,"groot:tree-builder:build-tree",{grootConfig:t}),r=new Jt(t);return r.hydrateFlatTree(n),r}async buildTree(e){let t=e.id?this.trees.get(e.id):null;return t?t.reset(e):(t=new Jt({...e,frameMessenger:this.frameMessenger,treeBuilder:this}),await t.walk(document.body),this.trees.set(t.getId(),t)),t}}var Qt=n(96367),en=n(60119),tn=n(35226),nn=n.n(tn),rn=n(59681),on=n.n(rn),sn=["interactive","complete"],an=function(e,t){return new Promise(function(n){e&&"function"!=typeof e&&(t=e,e=null),t=t||window.document;var r=function(){return n(void(e&&setTimeout(e)))};-1!==sn.indexOf(t.readyState)?r():t.addEventListener("DOMContentLoaded",r)})};an.resume=function(e){return function(t){return an(e).then(function(){return t})}};const cn=an;var ln=n(86171);const un=["children","previousSiblings","previousSibling","ancestors","slotAncestors","slotChildren","element","source","groot"],dn=["group","groupId","groupSelector","groupVnodeIds","define-group"];function fn(e){return Object.entries(e).filter(([e])=>!un.includes(e)).reduce((e,[t,n])=>(e[t]=n,e),{})}function pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mn(e,t){const n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pn(Object(n),!0).forEach(function(t){hn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e),r=n.groups.findIndex(e=>e.id===t);return-1===r?e:(n.groups.splice(r,1),n.inputs.filter(e=>e.groupId===t).forEach(e=>{dn.forEach(t=>e[t]=void 0)}),n)}n.dn(mn);var gn=n(70367),yn=(n(7955),n(3958),n(50700),n(68446),n(71448),n(38555),n(56649),n(39454)),bn=n(94800);new gn.A((0,bn.A)(/(?:\n(?:\s*))+/g," "),yn.A);const vn=new gn.A((0,bn.A)(/(?:\n\s*)/g,""),yn.A);n(43837),n(24181),n(39811),n(8853),n(66684),n(11),n(80607);vn`
|
|
2
|
+
(()=>{var e,t={51144(e,t,n){"use strict";t.addEventNS=t.k=void 0;const r=n(31491);t.k=`recorder:${r.version}`;t.addEventNS=e=>`${t.k}:${e}`},5762(e,t){"use strict";t.assert=void 0,t.assert=function(e,t){if(!e)throw new Error(t)}},39360(e,t,n){"use strict";t.cache=void 0;const r=n(5762),o=n(74495);class i{#e=new Map;#t=new Map;set(e,t){this.#e.set(e,t)}get(e,t){if(function(e){(0,r.assert)("function"==typeof e||void 0===e,"creator must be a function or undefined, "+typeof e+" given")}(t),this.#e.has(e))return this.#e.get(e);if("function"!=typeof t)return;const n=t();return(0,r.assert)(void 0!==n,"Cache creator function should not return undefined"),this.#e.set(e,n),n}has(e){return this.#e.has(e)}async getAsync(e,t){const n=this.get(e);if(n?.resolved&&!n.error)return n.result;if(n?.error)throw n.error;if(!1===n?.resolved)return new Promise((e,t)=>n.promises?.push([e,t]));this.set(e,{resolved:!1,promises:[],result:void 0,error:null});try{let n;n="symbol"==typeof e&&e.description?await o.perf.run(e.description,t):await t();const r=this.get(e);return this.set(e,{resolved:!0,result:n,error:null,promises:void 0}),r?.promises?.forEach(([e])=>e(n)),n}catch(t){const n=this.get(e);throw this.set(e,{resolved:!0,result:void 0,error:t,promises:void 0}),n?.promises?.forEach(([,e])=>e(t)),t}}clear(){this.#e.clear(),this.#t.forEach(e=>e.clear())}child(e){if(function(e){(0,r.assert)("symbol"==typeof e,"key must be a symbol, "+typeof e+" given")}(e),this.#t.has(e))return this.#t.get(e);const t=new i;return this.#t.set(e,t),t}}t.cache=new i},30936(e,t,n){"use strict";t.createLazyProxy=void 0;const r=n(5762),o=Symbol("initialize"),i=Symbol("unset");t.createLazyProxy=function(){let e=null,t=!1;const n=new Proxy(function(...n){return(0,r.assert)(t,"Cannot call method before the object is initialized"),(0,r.assert)("function"==typeof e,"Real object is not a function"),e.apply(this,n)},{get:(n,s,a)=>s===o?n=>(e=n,t=!0,!0):s===i?()=>(e=null,t=!1,!0):((0,r.assert)(t,`Cannot access property '${String(s)}' before the object is initialized`),Reflect.get(e,s,a)),set:(n,o,i)=>((0,r.assert)(t,`Cannot set property '${String(o)}' before the object is initialized`),Reflect.set(e,o,i)),has:(n,o)=>((0,r.assert)(t,`Cannot check for property '${String(o)}' before the object is initialized`),Reflect.has(e,o)),apply:(n,o,i)=>((0,r.assert)(t,"Cannot call method before the object is initialized"),(0,r.assert)("function"==typeof e,"Real object is not a function"),Reflect.apply(e,o,i)),construct:(n,o,i)=>((0,r.assert)(t,"Cannot construct before the object is initialized"),(0,r.assert)("function"==typeof e,"Real object is not a constructor"),Reflect.construct(e,o,i))}),s=()=>(n[i](),n);return{proxy:n,setRealObject:e=>(n[o](e),s)}}},15712(e,t,n){"use strict";t.setAxeProxy=t.axe=void 0;const r=(0,n(30936).createLazyProxy)();t.axe=r.proxy,t.setAxeProxy=r.setRealObject},74495(e,t){"use strict";t.perf=void 0;let n=!1;const r={},o={};t.perf={enable(){n=!0},disable(){t.perf.flush(),n=!1},start(e){n&&(o[e]&&console.warn(`${e} already started`),o[e]=performance.now())},end(e,{minDuration:i=0,flush:s=!1}={}){if(!n)return;if(!o[e])return void console.warn(`${e} not started`);const a=performance.now()-o[e];delete o[e],a<=i||(r[e]??=[],r[e].push(a),s&&t.perf.flush(e))},run(e,t){if(!n)return t();const o=performance.now(),i=t();if(i instanceof Promise)return i.finally(()=>{const t=performance.now();r[e]??=[],r[e].push(t-o)});const s=performance.now();return r[e]??=[],r[e].push(s-o),i},flush(...e){Object.keys(o).forEach(n=>{e.length&&!e?.includes(n)||t.perf.end(n)}),Object.entries(r).forEach(([t,n])=>{e.length&&!e?.includes(t)||(console.log(`${t}: ${n.reduce((e,t)=>e+t)}ms total (${n.length}x)`),delete r[t])})}}},83456(e,t){"use strict";t.serialError=void 0,t.serialError=function e(t,n=0){if("object"!=typeof t||null===t)return{message:String(t)};const r=t,o={...r};for(const e of["message","stack","name"])"string"==typeof r[e]&&(o[e]=r[e]);return r.cause&&(o.cause=n<10?e(r.cause,n+1):"..."),o}},74040(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundRecorderClient=void 0;const r=n(51144),o=n(22721),i=n(86171);t.BackgroundRecorderClient=class{#n;constructor({bridge:e,axe:t}){this.#n=e,i.listeners.initContentBridgeListeners(e),Object.entries(o.contentActions).forEach(([n,o])=>{e.listen((0,r.addEventNS)(n),({message:e})=>o(e,{axe:t}))})}get bridge(){return this.#n}async#r(e,t){const n=await this.#n.send("background",(0,r.addEventNS)(e),t??{});if(void 0===n)throw new Error("BackgroundRecorder is not running in a known context");if(null===n)throw new Error("Unable to establish a connection with the background recorder");if("backgroundRecorderError"in n){const{message:e,stack:t,name:r}=n.backgroundRecorderError;throw new Error(`Background ${r}: ${e}\n${t}`)}if(0!==Object.keys(n).length)return n}attachDebugger(){return this.#r("attachDebugger")}detachDebugger(){return this.#r("detachDebugger")}captureFullScreenshot(){return this.#r("captureFullScreenshot")}getComputedFocusStyles(e){return 0===e.focusTriggers.length?{computedFocusStylesMap:{}}:this.#r("getComputedFocusStyles",e)}getEventListeners(e){return this.#r("getEventListeners",e)}getFrameId(){return this.#r("getFrameId")}getStyleSheets(e){return this.#r("getStyleSheets",e)}setup(e){return this.#r("setup",e)}teardown(e){return this.#r("teardown",e)}}},22721(e,t,n){"use strict";t.contentActions=void 0;const r=n(11554),o=n(29331),i=n(29331);t.contentActions={[r.batchGetComputedStyleTopic]:r.batchGetComputedStyle,[i.frameSetupTopic]:i.frameSetup,[o.frameTeardownTopic]:o.frameTeardown}},11554(e,t,n){"use strict";t.batchGetComputedStyle=t.batchGetComputedStyleTopic=void 0;const r=n(5762);function o(e){const t={},n=["0px","","normal","none","auto","0","0s"],r={"outline-style":"auto"},o=(e,t)=>"string"!=typeof t||n.includes(t)&&r[e]!==t;for(const n of e){const r=e.getPropertyValue(n);o(n,r)||(t[n]=r)}return t}t.batchGetComputedStyleTopic="batchGetComputedStyle",t.batchGetComputedStyle=function({computedStyleTargets:e},{axe:t}){return e.map(({selector:e,pseudoElm:n})=>{const i=t.utils.shadowSelect(e);(0,r.assert)(i,`Element not found for selector ${e}`);const s=i.ownerDocument.defaultView;(0,r.assert)(s,"Window not found");return{computedStyle:o(s.getComputedStyle(i,n?`::${n}`:void 0)),selector:e,pseudoElm:n}})}},24877(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(39360),o=n(60874),i=Symbol("disableAnimations");t.default={disable:function(){const e=r.cache.get(i,()=>[]),t=[document,...Array.from((0,o.getShadowRoots)(document))],n=new Set,a=e=>{for(const t of e.getAnimations()){if(!t.effect||0===t.playbackRate||n.has(t))continue;const e=t.effect.getComputedTiming().endTime;Number.isFinite(e)?s(()=>t.finish()):s(()=>t.cancel())}};for(const n of t){const t=a.bind(null,n);t(),n.addEventListener("transitionrun",t),n.addEventListener("animationstart",t),e.push(()=>{n.removeEventListener("transitionrun",t),n.removeEventListener("animationstart",t)})}e.push(()=>{for(const e of n)s(()=>e.play())})},restore:function(){const e=r.cache.get(i);e&&(e.forEach(e=>e()),r.cache.set(i,[]))}};const s=e=>{try{e()}catch{}}},29331(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.frameTeardown=t.frameTeardownTopic=t.frameSetup=t.frameSetupTopic=void 0;const o=n(39360),i=n(74495),s=r(n(24877));t.frameSetupTopic="frameSetup",t.frameSetup=function({performanceTimer:e,skipAnimations:t}){o.cache.clear(),e?(i.perf.enable(),i.perf.start("advancedRun")):i.perf.disable(),t&&s.default.disable()},t.frameTeardownTopic="frameTeardown",t.frameTeardown=function(){s.default.restore(),i.perf.disable(),o.cache.clear()}},74433(e,t){"use strict";t.fromDOMRect=t.toDOMRect=void 0,t.toDOMRect=function(e){return new DOMRect(e.x,e.y,e.width,e.height)},t.fromDOMRect=function(e){const{x:t,y:n,width:r,height:o}=e;return{x:t,y:n,width:r,height:o}}},31050(e,t,n){"use strict";t.cachedQueryAll=t.Z=void 0;const r=n(39360),o=Symbol("selectorCache");t.Z=r.cache.child(o),t.cachedQueryAll=function(e,n){const r=t.Z.get(e,()=>new Map),o=r.get(n);if(o)return o;const i=Array.from(n.querySelectorAll(e));return r.set(n,i),i}},58958(e,t,n){"use strict";t.findNearbyElms=void 0;const r=n(15712);function o(e){if(e)return r.axe.commons.dom.getNodeGrid?.(e)??e._grid}t.findNearbyElms=function(e){r.axe.commons.dom.createGrid();const t=e.boundingClientRect,n=[];let i=o(e);for(;i;){const r=i.getGridPositionOfRect(t);i.loopGridPosition(r,t=>{for(const r of t)r&&r!==e&&!n.includes(r)&&n.push(r)}),i=o(i.container)}return n}},33030(e,t,n){"use strict";t.isContentEditable=void 0;const r=n(39360),o=Symbol("isContentEditable"),i=r.cache.child(o),s=new Set(["","true","plaintext-only"]),a=new Set(["false"]);t.isContentEditable=function e(t){return i.get(t,()=>{const n=t.getAttribute("contenteditable")?.toLowerCase()??null;return!!s.has(n)||!(a.has(n)||!t.parentElement)&&e(t.parentElement)})}},12843(e,t){"use strict";t.isShadowRoot=t.isElement=void 0;t.isElement=e=>1===e.nodeType;t.isShadowRoot=e=>11===e.nodeType&&"host"in e&&1===e.host?.nodeType},11191(e,t){"use strict";t.isFocusableMedia=void 0,t.isFocusableMedia=function({vNode:e,axe:t}){if("video"!==e.props.nodeName&&"audio"!==e.props.nodeName)return!1;if(!e.hasAttr("controls"))return!1;const n=function(e){const t=e.attr("tabindex")?.match(/^\s*([-+]?\d+)/);return t?parseInt(t[1]):null}(e);return!(null!==n&&n<0)&&!t.commons.dom.isHiddenForEveryone(e)}},28424(e,t,n){"use strict";t.findFocusIndicators=t.E=void 0;const r=n(15318),o=n(39360),i=n(74495),s=n(32447),a=n(5762),c=n(19563),l=n(32557),u=Symbol();function*d(e,n,o){const c=(0,s.getRootNode)(n),u=o.get(c);(0,a.assert)(u,"Style sheets for root of node not found");const d=function(e){return e.flatMap(({cssRules:e})=>Array.from(e)).filter(e=>e instanceof CSSStyleRule)}(u).flatMap(e=>e.selectorText.includes(":focus")?function(e,n){const o=t.E.get(e,()=>new Map);let s=o.get(n);if(!s){const t=`queryWithFocusTriggers: ${e}`;i.perf.start(t),s=(0,r.queryWithFocusTriggers)(e,n),i.perf.end(t,{minDuration:100,flush:!0}),o.set(n,s)}return s}(e.selectorText,c):[]);for(const{triggers:t=[],...n}of d)for(const{type:r,elm:o}of t){const t=1===r.length&&"focus-within"===r[0];(o===e||t&&(0,l.flatTreeContains)(o,e))&&(yield n)}}t.E=o.cache.child(u),t.findFocusIndicators=function(e,t){const n=(0,s.getRootNode)(e),r=t.get(n);(0,a.assert)(r,"Style sheets for root of node not found");const o=new Map;o.set(e,new Set([void 0]));let i=e.shadowRoot??e;do{const n=Array.from(d(e,i,t));for(const{elm:e,pseudoElm:t}of n){const n=o.get(e);n?n.add(t):o.set(e,new Set([t]))}}while(i=(0,c.closestCrossTreeAncestor)(i));const l=[];for(const[e,t]of o)for(const n of t)n?l.push({elm:e,pseudoElm:n}):l.push({elm:e});return l}},27218(e,t){"use strict";t.eachIndicator=void 0,t.eachIndicator=function*(e){for(const[t,n]of e)for(const[e,r]of n)yield{elm:t,pseudoElm:e,triggers:r}}},17041(e,t,n){"use strict";t.groupRuleItems=t.D=void 0;const r=n(88726);t.D=["focus-within","focus","focus-visible"],t.groupRuleItems=function(e){const n=[],o=[],i=[],s=[],a=[];for(let c=0;c<e.length;c++){const l=e[c];if("PseudoElement"===l.type){if("part"===l.name){return{pseudoElmItems:n,pseudoClassSelectorItems:o,focusClassItems:i,hostItems:s,partItems:e.slice(c),otherItems:a}}n.push(l)}else"PseudoClass"===l.type?"host"===l.name.substring(0,4)?s.push(l):r.pseudoClassSelectorNames.includes(l.name)?o.push(l):t.D.includes(l.name)?i.push(l):a.push(l):a.push(l)}return{pseudoElmItems:n,pseudoClassSelectorItems:o,focusClassItems:i,hostItems:s,partItems:[],otherItems:a}}},59665(e,t){"use strict";t.mergeTriggers=void 0,t.mergeTriggers=function(e,t){t=[...t];const n=[];for(const r of e){const e=t.findIndex(e=>e.elm===r.elm);if(-1===e){n.push(r);continue}const o=t.splice(e,1)[0],i=Array.from(new Set([...r.type,...o.type]));n.push({elm:r.elm,type:i})}return n.push(...t),n}},17991(e,t,n){"use strict";t.runHasPseudoClass=void 0;const r=n(59125),o=n(27218),i=n(15318);t.runHasPseudoClass=function(e,t){const n=(0,r.render)(e),s=new Map;for(const{elm:r,pseudoElm:a,triggers:c}of(0,o.eachIndicator)(t)){const t=(0,i.runSelector)(n,e,r);let l=!1;for(const e of(0,o.eachIndicator)(t))e.pseudoElm||(e.triggers.length&&c.push(...e.triggers),l||=!0);l&&s.set(r,new Map([[a,c]]))}return s}},35885(e,t,n){"use strict";t.runHostPseudoClass=void 0;const r=n(59125),o=n(5762),i=n(2116),s=n(27218),a=n(59665),c=n(12843),l=n(15318);function u(e,t,n){if(t.items.some(e=>"PseudoElement"===e.type))return new Map;let r=n.host,o=[],u=!1;for(;r&&((0,c.isElement)(r)||(0,c.isShadowRoot)(r));){const[n]=(0,l.runRuleItems)(t,r,{selfOnly:!0});if("host-context"!==e)return n;n.size&&(u=!0);for(const{pseudoElm:e,triggers:t}of(0,s.eachIndicator)(n))""===e&&(o=(0,a.mergeTriggers)(o,t));r=(0,i.getFlatTreeParent)(r)}return u?new Map([[n.host,new Map([["",o]])]]):new Map}t.runHostPseudoClass=function(e,t){const n=new Map;for(const{argument:i,name:c}of e){if(!i){n.has(t.host)||n.set(t.host,new Map([["",[]]]));continue}(0,o.assert)("Selector"===i.type,`Unexpected argument type ${i.type} in "${(0,r.render)(i)}"`);const e=i.rules[0];if(1!==i.rules.length||e.nestedRule)return null;const l=u(c,e,t);if(0===l.size)return null;for(const{elm:e,pseudoElm:t,triggers:r}of(0,s.eachIndicator)(l)){if(""!==t)return null;const i=n.get(e);if(i){const e=i.get("");(0,o.assert)(e,"indicator missing triggers"),i.set("",(0,a.mergeTriggers)(e,r))}else n.set(e,new Map([["",r]]))}}return n}},96616(e,t,n){"use strict";t.runPartPseudoElm=void 0;const r=n(5762),o=n(48665),i=n(27218),s=n(17041);t.runPartPseudoElm=function(e,t){const[n,...a]=e;(0,r.assert)("PseudoElement"===n.type,"Expected pseudo element");const{argument:c}=n;(0,r.assert)("String"===c?.type,`Invalid ::part argument type ${c?.type}`);const{focusClassItems:l,pseudoElmItems:u,...d}=(0,s.groupRuleItems)(a);if(Object.values(d).some(e=>e.length))return[new Map];let f="";if(u.length){if(u.length>1||u[0]!==a.at(-1))return[new Map];f=u[0].name}const p=l.map(e=>e.name),h=new Map;for(const{elm:e,triggers:n}of(0,i.eachIndicator)(t)){const t=(0,o.getParts)(e);if(!t)continue;const r=c.value.split(/\s+/);t.forEach((e,t)=>{if(r.every(t=>e.has(t))){const e=[...n];p.length&&e.push({elm:t,type:p}),h.set(t,new Map([[f,e]]))}})}return[h]}},88726(e,t,n){"use strict";t.runPseudoClassSelector=t.pseudoClassSelectorNames=void 0;const r=n(59125),o=n(5762),i=n(32447),s=n(15318),a=n(17991),c=n(27218),l=n(59665);t.pseudoClassSelectorNames=["is","where","not","has"],t.runPseudoClassSelector=function({argument:e,name:n},u,d){if(!1===t.pseudoClassSelectorNames.includes(n)||"Selector"!==e?.type)throw new Error("Invalid sub-selector");if("has"===n)return(0,a.runHasPseudoClass)(e,u);const f="not"===n?u:new Map,p=(0,r.render)(e),h=(0,i.getRootNode)(d),m=(0,s.runSelector)(p,e,h);for(const e of(0,c.eachIndicator)(m)){if(e.pseudoElm)continue;if("not"===n&&!e.triggers.length){f.delete(e.elm);continue}const t=u.get(e.elm);if(!t)continue;const r=Array.from(t.entries());(0,o.assert)(1===r.length,"Only one (pseudo-)element should exist");const[i,s]=r[0],a="not"===n?[...s,...e.triggers]:(0,l.mergeTriggers)(s,e.triggers);t.set(i,a),f.set(e.elm,t)}return f}},34596(e,t,n){"use strict";t.runSlottedPseudoElm=void 0;const r=n(5762),o=n(12843),i=n(32447),s=n(15318),a=n(27218);function c(e){return"slot"===e.nodeName.toLowerCase()}t.runSlottedPseudoElm=function({argument:e},t,n){const l=(0,i.getRootNode)(n);if(!(0,o.isShadowRoot)(l))return[new Map];if((0,r.assert)("Selector"===e?.type,`Invalid ::slotted argument type ${e?.type}`),1!==e.rules.length||e.rules[0].nestedRule)return[new Map];const u=e?.rules[0],d=new Map;for(const{elm:e,triggers:n}of(0,a.eachIndicator)(t))if(c(e))for(const t of e.assignedElements()){const[e]=(0,s.runRuleItems)(u,t,{selfOnly:!0});if(0===e.size)continue;const o=e.get(t);(0,r.assert)(e.size<=1,"Only one pseudo element should exist"),(0,r.assert)(o,"Pseudo element map missing");const i=o.get("");(0,r.assert)(i,"Existing triggers missing"),i.push(...n),o.set("",i),d.set(t,o)}return[d]}},15318(e,t,n){"use strict";t.runRuleItems=t.runSelector=t.queryWithFocusTriggers=t.K3=t.PE=void 0;const r=n(59125),o=n(5762),i=n(39360),s=n(32447),a=n(17041),c=n(59665),l=n(27218),u=n(12843),d=n(88726),f=n(34596),p=n(35885),h=n(96616),m=n(31050),g=Symbol("selectorCache");function y(e,n,r){const o=t.PE.get(e,()=>new Map),i=o.get(r);if(i)return i;const s=new Map;for(const e of n.rules){const t=b(e,r);for(const{elm:e,pseudoElm:n,triggers:r}of(0,l.eachIndicator)(t)){const t=s.get(e),o=t?.get(n);t?o?t.set(n,[...o,...r]):t.set(n,r):s.set(e,new Map([[n,r]]))}}return o.set(r,s),s}function b(e,t){const n=new Map,[r,i]=v(e,t);for(const{elm:t,pseudoElm:s,triggers:a}of(0,l.eachIndicator)(r)){if(!e.nestedRule){const e=n.get(t);e?((0,o.assert)(!e.has(s),"Pseudo element already exists"),e.set(s,a)):n.set(t,new Map([[s,a]]));continue}if(s)continue;const r=i??t,u=b(e.nestedRule,r);for(const e of(0,l.eachIndicator)(u)){const t=(0,c.mergeTriggers)(a,e.triggers),r=n.get(e.elm);r?r.set(e.pseudoElm,t):n.set(e.elm,new Map([[e.pseudoElm,t]]))}}return n}function v(e,t,{selfOnly:n}={selfOnly:!1}){const{pseudoElmItems:o,pseudoClassSelectorItems:i,focusClassItems:s,hostItems:c,partItems:l,otherItems:g}=(0,a.groupRuleItems)(e.items);if(c.length>0){if(!(0,u.isShadowRoot)(t)||s.length||o.length||i.length||g.length)return[new Map];const e=(0,p.runHostPseudoClass)(c,t);return e?[e,t]:[new Map]}if(o.length>1||o[0]&&o[0]!==e.items.at(-1))return[new Map];const y=(0,r.render)(r.ast.rule({items:g}))||"*";let b=[];if(n){if(!(0,u.isElement)(t))return[new Map];b=t.matches(y)?[t]:[]}else b=e?.combinator?function(e,t){if(">"===e)return Array.from(t.children);if(!(0,u.isElement)(t))return[];if("+"===e)return[t.nextElementSibling].filter(Boolean);if("~"===e){const e=[];let n=t.nextElementSibling;for(;n;)e.push(n),n=n.nextElementSibling;return e}throw new Error(`Unknown combinator: ${e}`)}(e?.combinator,t).filter(e=>e.matches(y)):(0,m.cachedQueryAll)(y,t);if(0===b.length)return[new Map];let v=new Map;const w=["slotted","part"].includes(o[0]?.name)?"":o[0]?.name??"",S=s.map(e=>e.name);b.forEach(e=>{const t=S.length?[{elm:e,type:S}]:[];v.set(e,new Map([[w,t]]))});for(const e of i)v=(0,d.runPseudoClassSelector)(e,v,t);return"slotted"===o[0]?.name?e.nestedRule?[new Map]:(0,f.runSlottedPseudoElm)(o[0],v,t):l.length?e.nestedRule?[new Map]:(0,h.runPartPseudoElm)(l,v):[v]}t.PE=i.cache.child(g),t.K3=(0,r.createParser)({strict:!1,syntax:{baseSyntax:"progressive"}}),t.queryWithFocusTriggers=function(e,n){let r,i;(0,o.assert)(n,"Node must be provided");try{r=(0,t.K3)(e)}catch{return console.error("Failed to process selector",e),[]}try{i=y(e,r,(0,s.getRootNode)(n))}catch(e){return console.error(e?.message),[]}const a=[];for(const{elm:e,pseudoElm:t,triggers:n}of(0,l.eachIndicator)(i))a.push({elm:e,...t?{pseudoElm:t}:{},...n.length?{triggers:n}:{}});return a},t.runSelector=y,t.runRuleItems=v},19563(e,t,n){"use strict";t.closestCrossTreeAncestor=void 0;const r=n(5762),o=n(12843),i=n(39360),s=Symbol("closestAncestor"),a=i.cache.child(s);t.closestCrossTreeAncestor=function e(t,n=0){return(0,r.assert)(++n<1e4,"Infinite loop in closestCrossTreeAncestor"),a.get(t,()=>(0,o.isShadowRoot)(t)?t.host:t.assignedSlot?t.assignedSlot:t.parentNode&&(0,o.isShadowRoot)(t.parentNode)?t.parentNode.host:t.parentElement?e(t.parentElement,n):null)}},32557(e,t,n){"use strict";t.flatTreeContains=void 0;const r=n(19563),o=n(5762);t.flatTreeContains=function(e,t){const n=e.getRootNode();let i=t,s=0;do{if((0,o.assert)(++s<1e4,"Infinite loop in flatTreeContains"),n===i.getRootNode())return e.contains(i)}while(i=(0,r.closestCrossTreeAncestor)(i));return!1}},2116(e,t){"use strict";t.getFlatTreeParent=void 0,t.getFlatTreeParent=function(e){return e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e&&e.host?.nodeType===Node.ELEMENT_NODE?e.host:e.nodeType===Node.ELEMENT_NODE&&"assignedSlot"in e&&e.assignedSlot?.nodeType===Node.ELEMENT_NODE?e.assignedSlot:e.parentNode}},48665(e,t,n){"use strict";t.getParts=void 0;const r=n(39360),o=Symbol("PARTS_OF_SHADOW_ROOT"),i=r.cache.child(o);function s({shadowRoot:e}){return e?i.get(e,()=>function(e){const t=e.querySelectorAll("[part]"),n=new Map;for(const e of Array.from(t)){const t=e.getAttribute("part");if(!t)continue;const r=t.split(/\s+/).map(e=>e.trim()).filter(e=>e.match(/^[^0-9]/)),o=new Set(r);o.size&&n.set(e,o)}const r=e.querySelectorAll("[exportparts]");for(const e of Array.from(r)){const t=e.getAttribute("exportparts"),r=t?a(t):null;if(!r||!r.size)continue;const o=s(e)??[];for(const[e,t]of o){const o=new Set;t.forEach(e=>{const t=r.get(e);t&&o.add(t)}),o.size&&n.set(e,o)}}return n}(e)):null}function a(e){const t=e.split(",").map(e=>e.split(":")).map(([e,t])=>[e=e.trim(),t=t?.trim()??e]);return new Map(t)}t.getParts=s},32447(e,t){"use strict";t.getRootNode=void 0,t.getRootNode=function(e){const t=e.getRootNode();if(t.nodeType===Node.DOCUMENT_NODE)return t;if("host"in t)return t;throw new Error("Node is not attached to the DOM")}},60874(e,t){"use strict";t.getShadowRoots=void 0,t.getShadowRoots=function*e(t=document){const r=(n(t)?t:t.ownerDocument).createTreeWalker(t,NodeFilter.SHOW_ELEMENT);for(;r.nextNode();){const{shadowRoot:t}=r.currentNode;t&&(yield t,yield*e(t))}};const n=e=>e.nodeType===e.DOCUMENT_NODE},7199(e,t,n){"use strict";t.getAllStyleSheets=void 0;const r=n(60874),o=n(39360),i=Symbol("requestStyleSheetsFromBackground");t.getAllStyleSheets=async function(e,t=document){return o.cache.getAsync(i,()=>async function(e,t=document){const{CSSImportRule:n}=t.defaultView,o=new Map,i=[t,...(0,r.getShadowRoots)(t)];i.forEach(e=>{const t=Array.from(e.styleSheets).concat(e.adoptedStyleSheets);for(const r of t)try{if(r.disabled)continue;for(const e of Array.from(r.cssRules))e instanceof n&&e.styleSheet&&t.push(e.styleSheet);o.has(e)?o.get(e)?.push(r):o.set(e,[r])}catch{}});const s=[];for(const e of o.values())e.forEach(e=>{e.href&&s.push(e.href)});const a=await e.getStyleSheets({ignoreSheets:s}),c=await(l=a.styleSheets,Promise.all(l.map(({content:e})=>(new CSSStyleSheet).replace(e))));var l;return i.forEach(e=>{o.has(e)?o.get(e)?.push(...c):o.set(e,[...c])}),o}(e,t))}},48501(e,t){"use strict";t.getBorder=void 0,t.getBorder=function(e){return{top:parseFloat(e.getPropertyValue("border-top-width")),right:parseFloat(e.getPropertyValue("border-right-width")),bottom:parseFloat(e.getPropertyValue("border-bottom-width")),left:parseFloat(e.getPropertyValue("border-left-width"))}}},87186(e,t){"use strict";t.getPadding=void 0,t.getPadding=function(e){return{top:parseFloat(e.getPropertyValue("padding-top")),right:parseFloat(e.getPropertyValue("padding-right")),bottom:parseFloat(e.getPropertyValue("padding-bottom")),left:parseFloat(e.getPropertyValue("padding-left"))}}},18650(e,t){"use strict";t.isRotated=void 0,t.isRotated=function(e){return 0!==function(e){const t=e.getPropertyValue("rotate");if(!t||"none"===t)return 0;const n=t.split(" ");return parseFloat(n[n.length-1])}(e)||0!==function(e){const t=e.getPropertyValue("transform");if(!t||"none"===t)return 0;const n=t.split(","),r=n[0].indexOf("("),o=parseFloat(n[0].substr(r+1)),i=parseFloat(n[1]);return 180*Math.atan2(i,o)/Math.PI}(e)}},4347(e,t,n){"use strict";t.getAccDescription=void 0;const r=n(15712);function o(e){if(e.attr("aria-describedby")){return r.axe.commons.dom.idrefs(e,"aria-describedby").map(e=>e?r.axe.commons.text.accessibleText(e,{inLabelledByContext:!0}):"").join("")}}function i(e){if(e.attr("aria-description"))return r.axe.commons.text.sanitize(e.attr("aria-description"))}function s(e,t){const n=r.axe.commons.text.sanitize(e.attr("title"));if(null!==n&&!t.includes(n))return n}t.getAccDescription=function(e,t){return[o,i,s].reduce((n,r)=>n??r(e,t),void 0)??""}},8667(e,t,n){"use strict";t.getWordRects=void 0;const r=n(15712),o=n(5762);function i(e,t,n){const r=document.createRange();return r.setStart(e,t),r.setEnd(e,t+n),Array.from(r.getClientRects())}t.getWordRects=function(e){(0,o.assert)(e.children,"vNode.children is not defined");const t=[];for(const{actualNode:r}of e.children){if(!s(r)||!r.nodeValue)continue;const e=n(r);for(const{index:n,length:o}of e)t.push(...i(r,n,o))}return t;function n({nodeValue:e}){(0,o.assert)(e,"textNode.nodeValue is not defined");let t=0,n=0,r="";const i=[],s=e=>{(e.charCount>1||/[0-9]/.test(e.word))&&i.push(e)};for(const o of e)a(o)?(r+=o,t++):r.length>0?(s({charCount:t,index:n,length:r.length,word:r}),n+=r.length+o.length,r="",t=0):n+=o.length;return s({index:n,length:r.length,word:r,charCount:t}),i}function a(e){return!/\s/.test(e)&&!r.axe.commons.text.hasUnicode(e,{emoji:!0,nonBmp:!0,punctuations:!0})}};const s=e=>e?.nodeType===Node.TEXT_NODE},1538(e,t,n){"use strict";t.isInAccessibleText=void 0;const r=n(15712),o=n(5762),i=n(39360),s=n(99970),a=Symbol("accTextCache"),c=i.cache.child(a);function l(e){return c.get(e,()=>{(0,o.assert)(e.actualNode instanceof Element,"vNode.actualNode must be an Element");const t=e.actualNode;if((0,s.isNameFromContent)(e))return t;const n=r.axe.commons.aria.getAccessibleRefs(e).find(e=>!!r.axe.commons.aria.getRole(e,{noPresentational:!0})&&function(e,t){return u.filter(n=>{const o=e.getAttribute(n);return!!o&&r.axe.utils.tokenList(o).includes(t.id)})}(e,t).length);if(n)return n;const i=function(e){if("label"!==e.nodeName.toLowerCase())return null;const t=e.getAttribute("for")?.trim(),n=t&&e.ownerDocument?.getElementById(t);if(n&&f(n))return n;const r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>t!==e&&t instanceof HTMLElement&&f(t)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),o=r.nextNode();return o instanceof HTMLElement?o:null}(t);return i||(e.parent?l(e.parent):null)})}t.isInAccessibleText=function(e){return null!==l(e)};const u=["aria-labelledby","aria-describedby"];const d=["button","input","meter","output","progress","select","textarea"];function f(e){const t=e.nodeName.toLowerCase();return("input"!==t||"hidden"!==e.getAttribute("type"))&&d.includes(t)}},99970(e,t,n){"use strict";t.isNameFromContent=void 0;const r=n(39360),o=n(15712),i=Symbol("nameFromContentRoles"),s=["term","directory","listitem","section","figure"];t.isNameFromContent=function(e){const t=r.cache.get(i,()=>o.axe.commons.standards.getAriaRolesSupportingNameFromContent().filter(e=>!s.includes(e))),n=o.axe.commons.aria.getRole(e);return!!n&&t.includes(n)}},87322(e,t){"use strict";function n(e){return["include","exclude"].some(t=>o(e,t)&&r(e[t]))}function r(e){return"string"==typeof e||e instanceof window.Node||o(e,"fromFrames")||function(e){return o(e,"fromShadowDom")}(e)||!!(t=e)&&"object"==typeof t&&"length"in t&&"number"==typeof t.length;var t}function o(e,t){return!(!e||"object"!=typeof e)&&Object.prototype.hasOwnProperty.call(e,t)}t.isContextSpec=void 0,t.isContextSpec=function(e){return n(e)||r(e)}},5910(e,t,n){"use strict";t.dropObscuredRects=void 0;const r=n(15712),o=n(25425);t.dropObscuredRects=function(e,t,n={}){const{rectsOverlap:i}=r.axe.commons.math,s=(0,o.getObscuredRects)(e),a=[];for(const e of t){if(0===s.filter(t=>i(e,t)).length)a.push(e);else if(n.split)try{const t=r.axe.commons.math.splitRects(e,s).filter(({width:e,height:t})=>e>=1&&t>=1);a.push(...t)}catch{}}return a}},25425(e,t,n){"use strict";t.getObscuredRects=void 0;const r=n(15712),o=n(39360),i=n(82490),s=n(58958),a=Symbol("getObscuringRects"),c=o.cache.child(a);t.getObscuredRects=function(e){return c.get(e,()=>(0,s.findNearbyElms)(e).filter(t=>r.axe.commons.math.hasVisualOverlap(e,t)).map(i.getObscuringRects).flat())}},82490(e,t,n){"use strict";t.getObscuringRects=void 0;const r=n(15712),o=n(39526);t.getObscuringRects=function(e){const t=e.getComputedStylePropertyValue.bind(e),n=e.actualNode;if(n instanceof Element==!1||"0"===t("opacity")||t("filter").includes("opacity(0)"))return[];const i=new r.axe.commons.color.Color;if(i.parseString(t("background-color")),0!==i.alpha||"none"!==t("background-image")||"none"!==t("backdrop-filter")||function(e){switch(e.props.nodeName){case"img":case"iframe":case"object":case"video":case"audio":case"canvas":case"svg":case"math":case"button":case"select":case"textarea":case"keygen":case"progress":case"meter":return!0;case"input":return"hidden"!==e.props.type;default:return!1}}(e))return Array.from(n.getClientRects());const s=(0,o.getTextContentRect)(e);return s?[s]:[]}},39526(e,t,n){"use strict";t.getTextContentRect=void 0;const r=n(5910);t.getTextContentRect=function(e){const t=document.createRange(),n=[];for(const{actualNode:r}of e.children??[])r?.nodeType===Node.TEXT_NODE&&(t.selectNodeContents(r),n.push(...Array.from(t.getClientRects())));if(0===n.length)return null;const o=(0,r.dropObscuredRects)(e,n,{split:!0});if(0===o.length)return null;const i=Math.min(...o.map(({x:e})=>e)),s=Math.min(...o.map(({y:e})=>e)),a=Math.max(...o.map(({x:e,width:t})=>e+t)),c=Math.max(...o.map(({y:e,height:t})=>e+t));return{x:i,y:s,width:a-i,height:c-s}}},84842(e,t,n){"use strict";t.getVisibilityRects=void 0;const r=n(5762);function o(e,t){const{vNode:n}=e.utils.nodeLookup(t);return n._advancedVisibleRects||(n._advancedVisibleRects=i(e,n)),n._advancedVisibleRects}function i(e,t){if(!t.parent){const e=function(e){const t=e.actualNode,n=function(e){const t=e.actualNode?.ownerDocument.defaultView;return(0,r.assert)(t,"Frame window not found"),t}(e),{overflowX:o,overflowY:i}=s(e);let{innerWidth:a,innerHeight:c}=n,l=0,u=0;n.top===n&&"hidden"!==i&&(u=-n.scrollY||0,c=t.scrollHeight+parseFloat(e.getComputedStylePropertyValue("margin-top"))+parseFloat(e.getComputedStylePropertyValue("margin-bottom")));if(n.top===n&&"hidden"!==o){const r=parseFloat(e.getComputedStylePropertyValue("margin-left"));l=-n.scrollX||0,a=Math.max(a,t.scrollWidth+r)}return new DOMRect(l,u,a,c)}(t);return{visibleRect:e,clippingRect:e}}const n=t.boundingClientRect,i=function(e,{parent:t}){(0,r.assert)(t,"Cannot get clipping rect for a node without a parent");const{clippingRect:n,visibleRect:i}=o(e,t);if("visible"===t.getComputedStylePropertyValue("overflow"))return n;if(t.parent&&"body"===t.props.nodeName&&s(t.parent).fromBody)return n;return i}(e,t);return{visibleRect:e.commons.math.getIntersectionRect(n,i)??new DOMRect(n.x,n.y,0,0),clippingRect:i}}function s(e){const t=e.getComputedStylePropertyValue("overflow-x"),n=e.getComputedStylePropertyValue("overflow-y"),r=e.children?.find(e=>"body"===e.props.nodeName);return r&&"visible"===t&&"visible"===n?{overflowX:r.getComputedStylePropertyValue("overflow-x"),overflowY:r.getComputedStylePropertyValue("overflow-y"),fromBody:!0}:{overflowX:t,overflowY:n,fromBody:!1}}t.getVisibilityRects=o},86097(e,t,n){"use strict";t.addRecorderToAxe=void 0;const r=n(99994),o=n(97372),i=n(1585),s=n(7345),a=n(83138),c=n(96167),l=n(74040),u=n(70264),d=n(31491),f=n(5762),p=n(15712),h=Symbol("BACKGROUND_RECORDER_CLIENT");t.addRecorderToAxe=function(e,{bridge:t}){let n;(0,f.assert)(!e.recorderVersion||e.recorderVersion===d.version,`Failed to add Recorder v${d.version} because Recorder v${e.recorderVersion} is already installed.`),e.recorderVersion?(n=e[h],(0,f.assert)(n,"Advanced rules already initialized without a bridge"),(0,f.assert)(n.bridge===t,"Advanced rules already initialized with a different bridge")):(n=new l.BackgroundRecorderClient({bridge:t,axe:e}),e[h]=n,(0,c.updateAxeRun)(e,{background:n},u.advancedRun)),e.recorderVersion=d.version;const m=(0,a.createReporter)(e,i.recorderAsyncReporter);e.addReporter("advancedInputReporter",m);const b=r.recorderRules.map(t=>g(e,t)),v=o.recorderChecks.map(t=>y(e,t,n));e.configure({rules:b,checks:v,reporter:"advancedInputReporter"}),(0,s.updateNodeSerializer)(e),(0,p.setAxeProxy)(e)};const m={passed:!0,failed:!1,incomplete:void 0};function g(e,t){const n=function(e,t){return"function"!=typeof t?t:(n,r)=>t({domNode:n,vNode:r,axe:e})}(e,t.matches),r={...t,matches:n};return n||delete r.matches,r}function y(e,t,n){return{...t,evaluate(r,o,i){const s={domNode:r,options:o,vNode:i,axe:e,background:n},a=t.evaluate(s);if("result"in a){const{data:e,result:t,relatedNodes:n}=a;return this.data(e),n&&this.relatedNodes(n),m[t]}const c=this.async();a.then(({data:e,result:t,relatedNodes:n})=>{this.data(e),n&&this.relatedNodes(n),c(m[t])},e=>{e instanceof Error?c(e):c(new Error(String(e)))})}}}},9212(e,t){"use strict";t.NODE_LIMIT=void 0,t.NODE_LIMIT=15e3},7345(e,t,n){"use strict";t.updateNodeSerializer=void 0;const r=n(5762),o=n(74433),i=n(48501),s=n(87186),a=n(18650),c=n(84842);function l(e,t,n){(0,r.assert)(t.advanced._frameProps,"frameProps is missing");const{innerFrameRect:i,clippingRect:s}=t.advanced._frameProps,a=n.commons.math.getIntersectionRect((0,o.toDOMRect)(e),new DOMRect(0,0,i.width,i.height));if(!a)return{x:e.x+i.x,y:e.y+i.y,width:0,height:0};a.x+=i.x,a.y+=i.y;const c=n.commons.math.getIntersectionRect((0,o.toDOMRect)(a),(0,o.toDOMRect)(s));return c?(0,o.fromDOMRect)(c):{x:a.x,y:a.y,width:0,height:0}}t.updateNodeSerializer=function(e){e.utils.nodeSerializer.update({toSpec(t){const{element:n}=t,{visibleRect:r,clippingRect:l}=(0,c.getVisibilityRects)(e,n),u=n.ownerDocument.defaultView;let d={x:0,y:0};u&&u.top===u&&(d={x:-u.scrollX||0,y:-u.scrollY||0});const f={visibleBoundingRect:(0,o.fromDOMRect)(r),clippingRect:(0,o.fromDOMRect)(l),windowCoordinate:d};if(function(e,t){const{vNode:n}=e.utils.nodeLookup(t);return["frame","iframe"].includes(n.props.nodeName)}(e,n)){const e=function(e){const t=window.getComputedStyle(e),n=(0,i.getBorder)(t),r=(0,s.getPadding)(t),{x:o,y:c,width:l,height:u}=e.getBoundingClientRect();return{innerFrameRect:{x:o+n.left+r.left,y:c+n.top+r.top,width:l-n.left-n.right-r.left-r.right,height:u-n.top-n.bottom-r.top-r.bottom},rotated:(0,a.isRotated)(t)}}(n);f._frameProps={...e,clippingRect:l}}return{...t.toJSON(),advanced:f}},mergeSpecs(t,n){(0,r.assert)(n.advanced?._frameProps,"required frameProps are missing. Was the iframe configured correctly?"),(0,r.assert)(t.advanced,"node from an inner frame is missing advanced metadata. Was the advanced recorder added to the child frame?");const{mergeSpecs:o}=e.utils.DqElement;if(!t.advanced.visibleBoundingRect||!t.advanced.clippingRect||!t.advanced.windowCoordinate||n.advanced._frameProps.rotated)return{...o(t,n),advanced:{visibleBoundingRect:null,windowCoordinate:null,clippingRect:null}};const i=l(t.advanced.visibleBoundingRect,n,e),s=l(t.advanced.clippingRect,n,e),a=function(e,t){const{windowCoordinate:n}=e.advanced,o=t.advanced._frameProps?.innerFrameRect;return(0,r.assert)(n,"windowCoordinate is missing"),(0,r.assert)(o,"innerFrameRect is missing"),{x:o.x+n.x,y:o.y+n.y}}(t,n),c={visibleBoundingRect:i,clippingRect:s,windowCoordinate:a};return{...o(t,n),advanced:c}}})}},70264(e,t,n){"use strict";t.advancedRun=void 0;const r=n(5762),o=n(74495),i=n(99519),s=n(99994),a=n(83456);function c(e,t){const n={ruleId:t.id,method:"#asyncAfter",...(0,a.serialError)(e)},r=t.incomplete[0].node,o=[{id:"error-occurred",data:n,result:void 0,message:"Axe encountered an error; test the page for this type of problem manually"}];return{...t,result:"incomplete",error:n,passes:[],violations:[],incomplete:[{result:"cantTell",impact:void 0,node:r,any:[],all:[],none:o}]}}t.advancedRun=async function({axe:e,context:t=document,options:n={},background:a}){const{runOptions:l,backgroundOptions:u}=(0,i.extractRunOptions)(e,n);try{let n,i;if(await(a?.setup(u)),a&&u.screenshot){const{scrollX:e,scrollY:t}=window;({screenshot:n,zoom:i}=await o.perf.run("captureFullScreenshot",()=>a.captureFullScreenshot())),e===window.scrollX&&t===window.scrollY||window.scrollTo(e,t)}const d=await e.run(t,l);return d.advancedRuleInput.screenshot=n,d.advancedRuleInput.screenshotScale=i,await async function({ruleResults:e,...t}){const{recorderResults:n=[]}=e.advancedRuleInput;for(let e=0;e<n.length;e++){const i=n[e],a=s.recorderRules.find(e=>e.id===i.id);if(a&&"asyncAfter"in a){const s=await o.perf.run(`asyncAfter ${a.id}`,()=>((0,r.assert)("function"==typeof a.asyncAfter,"asyncAfter is not a function"),i.error?i:a.asyncAfter({rawRuleResult:i,...t}).catch(e=>c(e,i))));n[e]=s}}return e}({ruleResults:d,axe:e,background:a})}finally{await(a?.teardown(u))}}},99519(e,t,n){"use strict";t.extractRunOptions=void 0;const r=n(99994);t.extractRunOptions=function(e,t){const n=t.advanced??{};let o=t;e.utils.normalizeRunOptions?o=e.utils.normalizeRunOptions(t):e._audit.normalizeOptions&&(o=e._audit.normalizeOptions(t));const i=r.recorderRules.some(t=>e.utils.ruleShouldRun(t,{},o)),s={attachDebugger:n.attachDebugger??i,screenshot:n.screenshot??i,skipAnimations:n.skipAnimations??i,performanceTimer:!!t.performanceTimer};if(n.aiDisabled){const e=r.recorderRules.filter(e=>e.tags?.includes("AI")),t={...o.rules};e.forEach(e=>{t[e.id]={enabled:!1}}),o={...o,rules:t}}if(!0!==n.testFormStructure){const e={...o.rules};e["recorder/form-structure"]={enabled:!1},o={...o,rules:e}}return{backgroundOptions:s,runOptions:o}}},96167(e,t,n){"use strict";t.updateAxeRun=void 0;const r=n(87322);t.updateAxeRun=function(e,{background:t},n){const o=Object.create(e);o.run=e.run,e.run=function(...i){const{context:s,options:a,callback:c}=function(e,t){const n=e.findIndex(e=>"function"==typeof e),o=e.findIndex(t.utils.isContextSpec??r.isContextSpec);return{callback:-1!==n?e[n]:void 0,context:-1!==o?e[o]:document,options:e.find((e,t)=>![n,o].includes(t))??{}}}(i,e);try{const e=n({axe:o,background:t,context:s,options:a});return c?void e.then(e=>c(null,e),e=>c(e)):e}catch(e){return c?void c(e):Promise.reject(e)}}}},321(e,t,n){"use strict";const r=n(86097);var o=n(74040);const i=n(9396);var s=n(16360);t.default={addRecorderToAxe:r.addRecorderToAxe,v1AdvancedAsyncReporter:i.v1AdvancedAsyncReporter}},83138(e,t){"use strict";t.createReporter=void 0;t.createReporter=(e,t)=>(n,r,o,i)=>{t(e,n,r).then(o,e=>i(e))}},86815(e,t){"use strict";t.dedupeContrastResults=void 0,t.dedupeContrastResults=function(e){const t=e.find(({id:e})=>"color-contrast"===e),n=e.find(({id:e})=>"recorder/text-contrast"===e);if(!t||!n)return;if(0===t.incomplete.length)return n.incomplete=[],void(n.result="inapplicable");const r=t.incomplete.reduce((e,t)=>e.add(JSON.stringify(t.node.ancestry)),new Set);n.incomplete=n.incomplete.filter(e=>r.has(JSON.stringify(e.node.ancestry))),t.incomplete=[],t.violations.length>0?t.result="failed":t.passes.length>0?t.result="passed":t.result="inapplicable"}},97338(e,t){"use strict";t.dedupeImageDescription=void 0,t.dedupeImageDescription=function(e){const t=e.find(({id:e})=>"image-alt"===e),n=e.find(({id:e})=>"recorder/image-description"===e);if(!t||!n)return;const r=(e.find(({id:e})=>"image-alt"===e)?.violations??[]).reduce((e,t)=>e.add(JSON.stringify(t.node.ancestry)),new Set);n.incomplete=n.incomplete.filter(e=>!r.has(JSON.stringify(e.node.ancestry))),0===n.incomplete.length&&(n.result="inapplicable")}},77117(e,t,n){"use strict";t.limitRecorderResultsNodes=void 0;const r=n(9212);function o(e,t){const n={...e,passes:[],incomplete:[],violations:[]};let r=0;const o=["violations","incomplete","passes"];for(const i of o){const o=Math.min(e[i].length,t-r);n[i]=e[i].slice(0,o),r+=o}return n}function i(e){return e.passes.length+e.incomplete.length+e.violations.length}t.limitRecorderResultsNodes=function(e,t=r.NODE_LIMIT){const n=e.map((e,t)=>({result:e,nodeCount:i(e),originalIndex:t}));n.sort((e,t)=>e.nodeCount-t.nodeCount);let s=t,a=null;const c=new Array(e.length);for(let e=0;e<n.length;e++){const{result:t,nodeCount:r,originalIndex:i}=n[e];if(null!==a){c[i]=o(t,a);continue}const l=n.length-e,u=Math.floor(s/l);r>u?(a=u,c[i]=o(t,a)):(c[i]=t,s-=r)}return c}},1585(e,t,n){"use strict";t.recorderAsyncReporter=void 0;const r=n(31491),o=n(9396),i=n(86815),s=n(97338),a=n(77117);t.recorderAsyncReporter=async(e,t,n)=>{(0,i.dedupeContrastResults)(t),(0,s.dedupeImageDescription)(t);const c=t.filter(e=>!e.tags.includes("advanced")),l=t.filter(e=>e.tags.includes("advanced")),u=await(0,o.v1AdvancedAsyncReporter)(e,c,n),d=await new Promise((t,r)=>{e.getReporter("raw")(l,n,t,r)});return{...u,advancedRuleInput:{recorderResults:(0,a.limitRecorderResultsNodes)(d),recorderSpec:{branding:e._audit.brand,lang:e._audit.lang,coreVersion:e.version,recorderVersion:r.version},runOptions:u.toolOptions,testEnvironment:u.testEnvironment,url:u.url}}}},9396(e,t){"use strict";t.v1AdvancedAsyncReporter=void 0;const n=["passes","incomplete","violations"];function r(e,t,n){const r=o.bind(null,e,t),s=n.nodes.map(n=>{const o=i(n.ancestry);return!0!==t.ancestry&&delete n.ancestry,{...n,any:n.any.map(r),all:n.all.map(r),none:n.none.map(r),advanced:e.get(o)}});return{...n,nodes:s}}function o(e,t,{relatedNodes:n,...r}){return n?{...r,relatedNodes:n.map(n=>{const r=i(n.ancestry);!0!==t.ancestry&&delete n.ancestry;const o=e.get(r);return{...n,advanced:o}})}:r}t.v1AdvancedAsyncReporter=async function(e,t,o){const s=function(e,t){const r={selectors:!1,ancestry:!0},o=e=>t.utils.nodeSerializer.dqElmToSpec(e,r),s=new Map;for(const t of e)for(const e of n)for(const n of t[e]){for(const e of["any","all","none"])n[e].forEach(e=>e.relatedNodes?.forEach(e=>{const t=o(e);s.set(i(t.ancestry),t.advanced)}));const e=o(n.node);s.set(i(e.ancestry),e.advanced)}return s}(t,e),a=r.bind(null,s,o),c=await new Promise((n,r)=>{const i=e.getReporter("v1"),s={...o,ancestry:!0};i(t,s,n,r)});return{...c,passes:c.passes.map(a),violations:c.violations.map(a),incomplete:c.incomplete.map(a),inapplicable:c.inapplicable.map(a)}};const i=e=>e.flat().join(" >>> ")},16360(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.advancedRuleSpecs=void 0;const o=r(n(8314)),i=r(n(13408)),s=r(n(4339)),a=r(n(17844)),c=r(n(24551)),l=r(n(97030)),u=r(n(80748));t.advancedRuleSpecs={[o.default.id]:o.default,[i.default.id]:i.default,[s.default.id]:s.default,[a.default.id]:a.default,[c.default.id]:c.default,[l.default.id]:l.default,[u.default.id]:u.default}},80748(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={id:"advanced/autocomplete-correct",impact:"serious",tags:["cat.forms","wcag21aa","wcag135","EN-301-549","EN-9.1.3.5","advanced","non-deterministic","AI"],metadata:{description:"Ensure form fields have appropriate autocomplete attributes for their purpose",help:"Form fields must have correct autocomplete values"},seedRules:["recorder/form-structure"],requiredInput:["screenshot"],any:["advanced/autocomplete-correct"]}},8314(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={id:"advanced/css-focus-visible",impact:"serious",tags:["cat.keyboard","wcag2aa","wcag247","TTv5","TT4.d","EN-301-549","EN-9.2.4.7","RGAAv4","RGAA-10.7.1","advanced"],metadata:{description:"Ensure links, buttons and other controls do not have their focus hidden with CSS",help:"Controls must have visible focus"},seedRules:["recorder/css-focus-visible"],any:["advanced/css-focus-visible"]}},13408(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={id:"advanced/heading-markup",impact:"serious",tags:["cat.semantics","wcag2aa","wcag131","TTv5","TT13.c","EN-301-549","EN-9.1.3.1","RGAAv4","RGAA-9.1.3","advanced","non-deterministic","AI"],metadata:{description:"Ensure each heading is marked up as a heading element or with a heading role",help:"Headings must use heading markup"},seedRules:["recorder/screenshot-features"],requiredInput:["screenshot","screenshotFeatures"],any:["advanced/heading-markup"]}},24551(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={id:"advanced/image-decorative",impact:"moderate",tags:["cat.text-alternatives","wcag2a","wcag111","TTv5","TT7.a","TT7.b","EN-301-549","EN-9.1.1.1","RGAAv4","RGAA-1.2.1","advanced","non-deterministic","work-in-progress","AI"],metadata:{description:"Ensure decorative images are ignored by screen readers",help:"Decorative images must be hidden from screen readers"},seedRules:["recorder/image-description"],requiredInput:["screenshot","imageDescriptions"],any:["advanced/image-decorative"]}},97030(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={id:"advanced/image-informative-has-alt",impact:"critical",tags:["cat.text-alternatives","wcag2a","wcag111","TTv5","TT7.a","TT7.b","EN-301-549","EN-9.1.1.1","RGAAv4","RGAA-1.1.1","advanced","non-deterministic","AI"],metadata:{description:"Ensure informative images have accessible names",help:"Informative images must have accessible names"},seedRules:["recorder/image-description"],requiredInput:["screenshot","imageDescriptions"],any:["advanced/image-informative-has-alt"]}},4339(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={id:"advanced/text-contrast",impact:"serious",tags:["cat.color","wcag2aa","wcag143","TTv5","TT13.c","EN-301-549","EN-9.1.4.3","RGAAv4","RGAA-3.2.1","ACT","advanced","non-deterministic"],metadata:{description:"Ensures the contrast between foreground and background colors meets WCAG 2 AA contrast ratio thresholds",help:"Text must have sufficient color contrast"},seedRules:["recorder/text-contrast"],requiredInput:["screenshot"],any:["advanced/text-contrast"]}},17844(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={id:"advanced/visual-role-mismatch",impact:"serious",tags:["cat.semantics","wcag2aa","wcag131","TTv5","TT13.c","EN-301-549","EN-9.1.3.1","advanced","non-deterministic","work-in-progress","AI"],metadata:{description:"Ensures the visual appearance of controls matches their ARIA roles",help:"ARIA roles must match visual appearance"},seedRules:["recorder/screenshot-features"],requiredInput:["screenshot","screenshotFeatures"],any:["advanced/visual-role-mismatch"]}},97372(e,t,n){"use strict";t.recorderChecks=void 0;const r=n(95279),o=n(39268),i=n(59459),s=n(8932),a=n(46216);t.recorderChecks=[r.textContrastCheck,o.screenshotFeaturesCheck,i.focusVisibleCheck,s.imageDescriptionCheck,a.formStructureCheck]},2665(e,t){"use strict";t.findFocusListeners=void 0;const n=/^([^ :>]+):nth-child\(\d+\)/;function r(e,t,n={}){if(t.length<=e.length&&t.every((t,n)=>o(e[n],t)))return!0;if(!n.matchAncestor)return!1;const r=Math.min(t.length,e.length)-1;return!!e.slice(0,r).every((e,n)=>o(e,t[n]))&&!!o(e[r],t[r],n)}function o(e,t,{matchAncestor:r}={}){return!t.startsWith("html")&&!e.match(n)&&(t=t.replace(n,"$1")),r?e.startsWith(t):e===t}t.findFocusListeners=function(e,t){return t.filter(t=>{if(t.ancestry.length!==e.length)return!1;const n="focusin"===t.type||t.useCapture;for(let o=0;o<t.ancestry.length;o++){if(!r(i(e[o]),i(t.ancestry[o]),{matchAncestor:n&&o===t.ancestry.length-1}))return!1}return!0})};const i=e=>Array.isArray(e)?e:[e]},59459(e,t,n){"use strict";t.focusVisibleCheck=t.p=void 0;const r=n(7199),o=n(28424),i=n(39360),s="incomplete";t.p=3,t.focusVisibleCheck={id:"recorder/focus-visible",options:{},async evaluate({background:e,domNode:n}){if(!e)return{result:s,data:{checkVersion:t.p}};const[i,a]=await Promise.all([c(e),(0,r.getAllStyleSheets)(e)]),l=(0,o.findFocusIndicators)(n,a);let u=0;const d=new Map,f=l.map(({elm:e,pseudoElm:t})=>{if(e===n)return{relatedNodeIndex:-1,...t?{pseudoElm:t}:{}};let r=d.get(e)??-1;return-1===r&&(r=u,d.set(e,r),u++),{relatedNodeIndex:r,...t?{pseudoElm:t}:{}}}),p=new Array(u);d.forEach((e,t)=>{p[e]=t});const h={checkVersion:t.p,possibleIndicators:f,frameId:i};return{result:s,data:h,relatedNodes:p}}};const a=Symbol("background.getFrameId");async function c(e){return i.cache.getAsync(a,async()=>(await e.getFrameId()).frameId)}},43434(e,t,n){"use strict";t.focusVisibleMatches=void 0;const r=n(33030),o=n(11191);t.focusVisibleMatches=function({vNode:e,domNode:t,axe:n}){return!!(0,o.isFocusableMedia)({vNode:e,axe:n})||!(!n.commons.dom.isInTabOrder(e)||function(e,t){if("input"===e.props.nodeName)return!i.has(e.props.type);if("textarea"===e.props.nodeName)return!0;return(0,r.isContentEditable)(t)}(e,t))};const i=new Set(["button","checkbox","color","file","image","radio","range","reset","submit"])},28421(e,t,n){"use strict";t.focusVisible=void 0;const r=n(59459),o=n(5762),i=n(2665),s=n(43434);t.focusVisible={id:"recorder/css-focus-visible",excludeHidden:!1,selector:"a, area, audio, button, input, select, summary, textarea, video, [tabindex]",matches:s.focusVisibleMatches,tags:["advanced"],any:[r.focusVisibleCheck.id],async asyncAfter({rawRuleResult:e,background:t}){const n=function(e){const t=[];return e.forEach(e=>{const n=e.any[0].data,r=e.any[0].relatedNodes;if(a(n)&&n.possibleIndicators.length){const i=n.possibleIndicators.map(({pseudoElm:t,relatedNodeIndex:n})=>{let i=e.node.ancestry[e.node.ancestry.length-1];if(-1!==n){const e=`relatedNode ${n} not found`;(0,o.assert)(r?.[n],e);const t=r[n].ancestry;i=t[t.length-1]}return{selector:i,...t?{pseudoElm:t}:{}}});t.push({...n,ancestry:e.node.ancestry,possibleIndicators:i})}}),t}(e.incomplete);let r={},s=[];if(t){const e=await Promise.all([t.getComputedFocusStyles({focusTriggers:n}),t.getEventListeners({types:["focus","focusin"]})]);r=e[0].computedFocusStylesMap,s=e[1].listeners}return e.incomplete.forEach(e=>{e.any[0].data=function(e,t,n){const r=e.any[0].data,{checkVersion:o}=r;if(!a(r))return{checkVersion:o};const s=JSON.stringify(e.node.ancestry),c=t[s],l=(0,i.findFocusListeners)(e.node.ancestry,n);if(!c)return{checkVersion:o};return{checkVersion:o,focusIndicators:c.focusIndicators,error:c.error,focusListeners:l}}(e,r,s)}),e}};const a=e=>!!e.possibleIndicators},46216(e,t,n){"use strict";t.formStructureCheck=t.p=void 0;const r=n(4347),o=n(88845),i=n(99733),s=n(73288);t.p=1;const a=new Set(["button","checkbox","color","file","hidden","image","radio","range","reset","submit"]);function c(e){return(e.attr("placeholder")??e.attr("aria-placeholder")??"").trim()}function l(e,t){const n=e.props?.nodeName;return"select"===n||"textarea"===n||!("input"!==n||!t)&&!a.has(t)}function u(e){const t=e.props?.nodeName;return("input"===t||"textarea"===t)&&e.hasAttr("readonly")}t.formStructureCheck={id:"recorder/form-structure",options:{},evaluate({vNode:e,axe:n}){const a=n.commons.text.accessibleTextVirtual(e),d=(0,o.getNearestForm)(e),f=function(e){if("input"!==e.props?.nodeName)return null;return e.props?.type??null}(e);return{data:{checkVersion:t.p,accessibleName:a,role:n.commons.aria.getRole(e,{noPresentational:!0}),accessibleDescription:(0,r.getAccDescription)(e,a),placeholder:c(e),inputType:f,autocompleteValue:(e.attr("autocomplete")??"").trim(),autocompleteSupport:l(e,f),fieldsetNames:(0,i.getFieldsetNames)(e),nearestHeadingText:(0,s.getPreviousHeading)(e),isDisabled:n.commons.forms.isDisabled(e),isInert:n.commons.dom.isInert(e),isReadonly:u(e)},result:"incomplete",relatedNodes:d?[d]:[]}}}},92733(e,t){"use strict";t.formStructureMatches=void 0;const n=new Set(["textbox","spinbutton","combobox","checkbox","radio","switch","slider","listbox","searchbox"]),r=new Set(["input","select","textarea"]);t.formStructureMatches=function({vNode:e,axe:t}){const o=t.commons.aria.getRole(e);if(null===o){const t=e.props.nodeName;return r.has(t)}return!!n.has(o)}},15852(e,t,n){"use strict";t.formStructure=void 0;const r=n(46216),o=n(92733);t.formStructure={id:"recorder/form-structure",selector:"input, select, textarea, [role]",excludeHidden:!0,matches:o.formStructureMatches,tags:["advanced","AI"],any:[r.formStructureCheck.id]}},99733(e,t,n){"use strict";t.getFieldsetNames=void 0;const r=n(39360),o=n(15712),i=Symbol("FIELDSET_NAMES"),s=r.cache.child(i);t.getFieldsetNames=function e(t){return s.get(t,()=>{const n=t.parent;if(!n)return[];const r=e(n),i=n.props?.nodeName,s=o.axe.commons.aria.getRole(n,{noPresentational:!0});if(!("fieldset"===i)&&!("group"===s))return r;const a=o.axe.commons.text.accessibleTextVirtual(n).trim();return a?[a,...r]:r})}},88845(e,t,n){"use strict";t.getNearestForm=void 0;const r=n(5762),o=n(39360),i=n(15712),s=Symbol("NEAREST_FORM"),a=o.cache.child(s);t.getNearestForm=function e(t){return a.get(t,()=>{const n=t.parent;if(!n)return null;if("form"===n.props?.nodeName){const e=n.actualNode;return(0,r.assert)(e instanceof Element,"form element is not an Element"),e}if("form"===i.axe.commons.aria.getRole(n)){const e=n.actualNode;return(0,r.assert)(e instanceof Element,"form element is not an Element"),e}return e(n)})}},73288(e,t,n){"use strict";t.getPreviousHeading=void 0;const r=n(39360),o=n(15712),i=Symbol("PREVIOUS_HEADING"),s=r.cache.child(i);function a(e){const t=e.children??[];return 0===t.length?e:a(t[t.length-1])}t.getPreviousHeading=function e(t){return s.get(t,()=>{const n=t.parent;if(!n)return"";const r=function(e){const t=e.parent?.children??[],n=t.indexOf(e);if(n<1)return;return a(t[n-1])}(t)??n;return function(e){const t=o.axe.commons.aria.getRole(e);return"heading"===t}(r)?o.axe.commons.text.accessibleTextVirtual(r):e(r)})}},8932(e,t,n){"use strict";t.imageDescriptionCheck=t.p=void 0;const r=n(4347),o=n(25425);t.p=1,t.imageDescriptionCheck={id:"recorder/image-description",options:{},evaluate({vNode:e,axe:n}){const i=n.commons.text.accessibleTextVirtual(e),s=(0,r.getAccDescription)(e,i),a=(0,o.getObscuredRects)(e);return{data:{checkVersion:t.p,label:i,description:s,obscuredRects:a},result:"incomplete"}}}},88969(e,t,n){"use strict";t.imageDescriptionMatches=void 0;const r=n(15712),o=n(1538),i=n(25425);t.imageDescriptionMatches=function({domNode:e,vNode:t}){const n=(0,i.getObscuredRects)(t);return 0!==r.axe.commons.math.splitRects(t.boundingClientRect,n).length&&(e instanceof HTMLImageElement&&e.complete&&e.naturalHeight>0&&!(0,o.isInAccessibleText)(t))}},29376(e,t,n){"use strict";t.imageDescription=void 0;const r=n(8932),o=n(88969);t.imageDescription={id:"recorder/image-description",selector:"img",matches:o.imageDescriptionMatches,tags:["advanced","AI"],any:[r.imageDescriptionCheck.id]}},99994(e,t,n){"use strict";t.recorderRules=void 0;const r=n(63129),o=n(65216),i=n(29376),s=n(28421),a=n(15852);t.recorderRules=[r.textContrast,o.screenshotFeatures,i.imageDescription,s.focusVisible,a.formStructure]},39268(e,t,n){"use strict";t.screenshotFeaturesCheck=t.p=void 0;const r=n(15712),o=n(39526);t.p=5;function i(e){if(!e?.parent||"body"===e.props.nodeName)return[];const t=i(e.parent),n=r.axe.commons.aria.getRole(e,{noPresentational:!0});return n?t.concat(n):t}t.screenshotFeaturesCheck={id:"recorder/screenshot-features",options:{},evaluate({vNode:e,axe:n}){const r=(0,o.getTextContentRect)(e),s=n.commons.dom.isVisibleOnScreen(e),a=i(e),c=n.commons.aria.getRole(e,{noPresentational:!1}),l=n.commons.dom.isFocusable(e),u=!!r;return{data:{checkVersion:t.p,contentRect:r,roles:a,visible:s,role:c,focusable:l,hasChildTextNodes:u},result:"incomplete"}}}},67689(e,t){"use strict";t.screenshotFeaturesMatches=void 0,t.screenshotFeaturesMatches=function(e){const{vNode:t,axe:n}=e;return!(!n.commons.dom.isFocusable(t)&&!function({vNode:e,axe:t}){const n=t.commons.aria.getRoleType(e);return"widget"===n||"composite"===n}(e))||!!function({vNode:e,axe:t}){return t.commons.dom.isVisibleOnScreen(e)&&t.commons.dom.hasContentVirtual(e,!0,!0)}(e)}},65216(e,t,n){"use strict";t.screenshotFeatures=void 0;const r=n(39268),o=n(67689);t.screenshotFeatures={id:"recorder/screenshot-features",selector:"*",matches:o.screenshotFeaturesMatches,excludeHidden:!0,tags:["advanced","AI"],any:[r.screenshotFeaturesCheck.id]}},95279(e,t,n){"use strict";t.textContrastCheck=t.p=void 0;const r=n(8667),o=n(64509),i=n(89768),s=n(5910);t.p=4,t.textContrastCheck={id:"recorder/text-contrast",options:{},evaluate({vNode:e}){const n=(0,r.getWordRects)(e);return{data:{checkVersion:t.p,rects:(0,s.dropObscuredRects)(e,n),fontSize:parseFloat(e.getComputedStylePropertyValue("font-size")),fontWeight:parseFloat(e.getComputedStylePropertyValue("font-weight")),ownCss:(0,i.getOwnCssProps)(e),ancestorCss:(0,o.getAncestorCssProps)(e)},result:"incomplete"}}}},63129(e,t,n){"use strict";t.textContrast=void 0;const r=n(95279);t.textContrast={id:"recorder/text-contrast",matches:"color-contrast-matches",excludeHidden:!1,tags:["advanced"],all:[r.textContrastCheck.id]}},64509(e,t){"use strict";t.getAncestorCssProps=t.D=void 0,t.D=[{name:"-webkit-background-clip",ignore:/box/},{name:"background-clip",ignore:/box/},{name:"filter",ignore:"none"},{name:"mix-blend-mode",ignore:"normal"},{name:"opacity",ignore:"1"},{name:"rotate",ignore:"none"},{name:"scale",ignore:"none"},{name:"text-decoration-line",ignore:/none/},{name:"text-decoration",ignore:"none"},{name:"text-underline-offset",ignore:"auto"},{name:"transform",ignore:"none"},{name:"transform-box",ignore:"view-box"}],t.getAncestorCssProps=function e(r){if(!r)return[];const o=[];for(const{name:e,ignore:i}of t.D){const t=r.getComputedStylePropertyValue(e);t&&!n(i,t)&&o.push([e,t])}const i=e(r.parent),s=Object.fromEntries(o);return s["text-decoration-line"]||delete s["text-decoration"],Object.keys(s).length>0&&i.push(s),i};const n=(e,t)=>e instanceof RegExp?e.test(t):t===e},89768(e,t){"use strict";t.getOwnCssProps=t.H=void 0,t.H=["color","font","font-palette","text-emphasis","text-shadow","-webkit-text-stroke"],t.getOwnCssProps=function(e){const n={};for(const r of t.H)n[r]=e.getComputedStylePropertyValue(r);return n}},5969(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},i=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var s,a,c,l=n(67151);function u(e,t,n){for(var r=null,o=[],i=e,c=0,u=function(){var e=y(function(e){var t=e.getAttribute("id");if(t&&a.idName(t))return{name:"#"+l(t,{isIdentifier:!0}),penalty:0};return null}(i))||y.apply(void 0,function(e){var t=Array.from(e.attributes).filter(function(e){return a.attr(e.name,e.value)});return t.map(function(e){return{name:"["+l(e.name,{isIdentifier:!0})+'="'+l(e.value)+'"]',penalty:.5}})}(i))||y.apply(void 0,function(e){var t=Array.from(e.classList).filter(a.className);return t.map(function(e){return{name:"."+l(e,{isIdentifier:!0}),penalty:1}})}(i))||y(function(e){var t=e.tagName.toLowerCase();if(a.tagName(t))return{name:t,penalty:2};return null}(i))||[{name:"*",penalty:3}],u=function(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;var r=0;for(;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==e);)n=n.nextSibling;return r}(i);if(t===s.All)u&&(e=e.concat(e.filter(g).map(function(e){return m(e,u)})));else if(t===s.Two)e=e.slice(0,1),u&&(e=e.concat(e.filter(g).map(function(e){return m(e,u)})));else if(t===s.One){var f=(e=e.slice(0,1))[0];u&&g(f)&&(e=[m(f,u)])}for(var p=0,h=e;p<h.length;p++){(f=h[p]).level=c}if(o.push(e),o.length>=a.seedMinLength&&(r=d(o,n)))return"break";i=i.parentElement,c++};i&&i!==a.root.parentElement;){if("break"===u())break}return r||(r=d(o,n)),r}function d(e,t){var n=w(v(e));if(n.length>a.threshold)return t?t():null;for(var r=0,o=n;r<o.length;r++){var i=o[r];if(h(i))return i}return null}function f(e){for(var t=e[0],n=t.name,r=1;r<e.length;r++){var o=e[r].level||0;n=t.level===o-1?e[r].name+" > "+n:e[r].name+" "+n,t=e[r]}return n}function p(e){return e.map(function(e){return e.penalty}).reduce(function(e,t){return e+t},0)}function h(e){switch(c.querySelectorAll(f(e)).length){case 0:throw new Error("Can't select any node with this selector: "+f(e));case 1:return!0;default:return!1}}function m(e,t){return{name:e.name+":nth-child("+t+")",penalty:e.penalty+1}}function g(e){return"html"!==e.name&&!e.name.startsWith("#")}function y(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter(b);return n.length>0?n:null}function b(e){return null!=e}function v(e,t){var n,r,s;return void 0===t&&(t=[]),o(this,function(o){switch(o.label){case 0:if(!(e.length>0))return[3,5];n=0,r=e[0],o.label=1;case 1:return n<r.length?(s=r[n],[5,i(v(e.slice(1,e.length),t.concat(s)))]):[3,4];case 2:o.sent(),o.label=3;case 3:return n++,[3,1];case 4:return[3,7];case 5:return[4,t];case 6:o.sent(),o.label=7;case 7:return[2]}})}function w(e){return Array.from(e).sort(function(e,t){return p(e)-p(t)})}function S(e,t,n){var r,s,l;return void 0===n&&(n={counter:0,visited:new Map}),o(this,function(o){switch(o.label){case 0:if(!(e.length>2&&e.length>a.optimizedMinLength))return[3,5];r=1,o.label=1;case 1:return r<e.length-1?n.counter>a.maxNumberOfTries?[2]:(n.counter+=1,(s=e.slice()).splice(r,1),l=f(s),n.visited.has(l)?[2]:h(s)&&function(e,t){return c.querySelector(f(e))===t}(s,t)?[4,s]:[3,4]):[3,5];case 2:return o.sent(),n.visited.set(l,!0),[5,i(S(s,t,n))];case 3:o.sent(),o.label=4;case 4:return r++,[3,1];case 5:return[2]}})}!function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(s||(s={})),t.default=function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.");if("html"===e.tagName.toLowerCase())return"html";var n={root:document.body,idName:function(e){return!0},className:function(e){return!0},tagName:function(e){return!0},attr:function(e,t){return!1},seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4};a=r({},n,t),c=function(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return e;if(e===t.root)return e.ownerDocument;return e}(a.root,n);var o=u(e,s.All,function(){return u(e,s.Two,function(){return u(e,s.One)})});if(o){var i=w(S(o,e));return i.length>0&&(o=i[0]),f(o)}throw new Error("Selector was not found.")}},80870(e,t,n){"use strict";n.d(t,{fx:()=>o,gm:()=>r,pW:()=>s,wk:()=>i});const r=!1,o=()=>r?"firefox":"chrome",i="axe",s=r?"AxeFirefox":"AxeChrome"},33381(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(96367);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const a=async e=>{if(!e||0===e.length)return null;const t=await r.yS.send(r._O.content,"selector:identify",{selector:e});if(!Array.isArray(t)||null==t||!t.length)return null;const n=t.pop(),o=await r.yS.send(r._O.content,"highlight:get-node-metadata",{selector:n.selector},{frameId:n.frameId});if(!o)return null;const[s,...a]=await Promise.all([n,...t].map(e=>r.yS.send(r._O.content,"highlight:get-element-layout",{selector:e.selector},{frameId:e.frameId}))),c=a.reduce((e,t)=>({top:e.top+t.offsetTop+t.border.top,left:e.left+t.offsetLeft+t.border.left}),{top:0,left:0});return i(i({},o),{},{selector:e,frameId:n.frameId,layout:i(i({},s),{},{top:s.top+c.top,left:s.left+c.left})})}},10884(e,t,n){"use strict";n.d(t,{A:()=>D});var r=n(60119),o=n(96367),i=n(22395),s=n(80870),a=n(13205);const c=n(9510).El.lU.match(/(?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)/).groups;n(7378);var l=n(83141),u=n.n(l),d=n(882),f=n(91968);const p=new Map;let h=null;async function m(){try{const e=await browser.storage.local.get();await Promise.all(Object.keys(e).filter(e=>e.startsWith("feature:")).map(e=>browser.storage.local.remove(e)))}catch(e){(0,f.vV)({message:"Failed to clear feature flags from local storage",originalError:e})}}async function g(){return{async variation(e,t){const n=`feature:${e}`,r=t??!1;try{const t=await(0,d.A)();let o=p.get(t);o||(p.clear(),o=await(async e=>{h||(h=fetch(`${e}/api/internal/features`).then(e=>(u()(e.ok,`Feature flag API responded with ${e.status}`),e.json())).catch(e=>{if(h=null,!(e instanceof TypeError&&"Failed to fetch"===e.message))throw e;return Promise.resolve(null)}));const t=await h,n=(null==t?void 0:t.features)??null;return p.set(e,n),h=null,n})(t),null!==o&&await m());const i=(o??[]).find(({id:t})=>t===e),{[n]:s}=await browser.storage.local.get(n),a=i?i.state:"boolean"!=typeof s?r:s;return await browser.storage.local.set({[n]:a}),a}catch{}const o=await browser.storage.local.get(n);return o&&Object.prototype.hasOwnProperty.call(o,n)?!!o[n]:r},clearCache(){p.clear(),m(),h=null}}}async function y(e,t=!1){return(await g()).variation(e,t)}const b=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];function v(e){return!b.includes(e)&&/^[a-z]/.test(e)&&!/[A-Z]/.test(e)&&e.includes("-")}function w(e){const t=e.nodeName.toLowerCase(),n=e.parentNode;let r="";if("head"!==t&&"body"!==t&&n&&n.children.length>1){r=`:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`}const o=e.parentElement;return o?`${w(o)} > ${t}${r}`:t+r}function S(e){let t=e.getRootNode();if(t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE)return w(e);const n=[];let r=e;for(;t.nodeType===Node.DOCUMENT_FRAGMENT_NODE;){const e=t.host;if(!e)return"";n.unshift(r),r=e,t=e.getRootNode()}return n.unshift(r),n.map(e=>w(e))}const O=["_internals","internals","internals_"],x=["internals","privateInternals"];function E(e){if(!v(e.nodeName.toLowerCase()))return;const t=e.wrappedJSObject;if(t){for(const e of O){var n;if(null!==(n=Object.getOwnPropertyDescriptor(t,e))&&void 0!==n&&n.get)continue;const r=t[e];if(r&&"object"==typeof r)return r}for(const e of Object.getOwnPropertySymbols(t))if(e.description&&x.includes(e.description)){var r;if(null!==(r=Object.getOwnPropertyDescriptor(t,e))&&void 0!==r&&r.get)continue;const n=t[e];if(n&&"object"==typeof n)return n}}}const A=/^aria[A-Z]/,T=["role","labels","form"];function C(e){const t={};for(const n in e)if(A.test(n)||T.includes(n))try{const r=e[n];if(null==r)continue;if(r instanceof globalThis.HTMLElement)t[n]=r.isConnected?{type:"HTMLElement",value:S(r)}:void 0;else if(Array.isArray(r)||r instanceof globalThis.NodeList){const e=Array.from(r).filter(e=>e.isConnected&&e instanceof Element);t[n]=e.length?{type:"NodeList",value:e.map(e=>S(e))}:void 0}else"string"==typeof r&&(t[n]=r)}catch{}return t}const I=["article","aside","blockquote","body","div","footer","h1","h2","h3","h4","h5","h6","header","main","nav","p","section","span"];function N(e){if(!e.shadowRoot)return!1;const t=e.nodeName.toLowerCase();return I.includes(t)||v(t)}function P(e,t){const n=document.createTreeWalker(e instanceof Document?e.body:e,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){if(r instanceof Element){const e=E(r);e&&t.push({ancestry:S(r),internals:C(e)}),N(r)&&r.shadowRoot&&P(r.shadowRoot,t)}r=n.nextNode()}}function j(){try{const e=[];return P(document,e),e}catch{return[]}}let k=null,R=!1;async function _(e){const t=e;"function"==typeof(null==t?void 0:t.externalAPIs)&&await y("PRERELEASE_element_internals_DO_NOT_TURN_ON")&&(R||(R=!0,document.addEventListener("axe-set-frame-uuid",e=>{const t=e.detail;k="string"==typeof(null==t?void 0:t.uuid)?t.uuid:null}),document.addEventListener("axe-clear-frame-uuid",()=>{k=null})),t._enableElementInternals=!0,t.externalAPIs({elementInternalsTimeout:5e3,getElementInternals:()=>async function(){try{if(s.gm)return j();if(!k)return[];const e=await o.yS.send(o._O.background,"internals:gather",{uuid:k});return Array.isArray(e)?e:[]}catch(e){return console.error("axe element-internals: gather failed, continuing without internals",e),[]}}()}))}async function M(e){if(window.frames.length>0){const t=500,n=Promise.all(Array.from(window.frames).map(t=>(0,r.A)(t,"axe:ping",e).catch(()=>{}))),o=new Promise(e=>setTimeout(e,t));await Promise.race([n,o])}}async function D(e){var t,n,l,u,d,f;const p=function(e){return!e||"latest"===e||e===`${c.major}.${c.minor}`||e===`${c.major}.${c.minor}.${c.patch}`}(e);if(!p&&!(0,i.Ay)(e))return!1;if(p&&"axe"in window||null!==(t=window.axeVersions)&&void 0!==t&&t[a.e[e]])return await M(e),!0;let h;try{h=await async function(e){let t;globalThis.define=(e,n,r)=>{"axe-core"===e&&(t=r())},globalThis.define.amd=!0;const n=a.e[e],r=async()=>await import(browser.runtime.getURL(`axe-versions/${"latest"===e?e:n}/axe.js`));if(window.axeVersions=window.axeVersions||{},"latest"===e)await r();else if(!window.axeVersions[n]){const e=window.axe;await r(),window.axe=e,window.axeVersions[n]=t}return delete globalThis.define,t}(p?"latest":e)}catch{return!1}const m=["wcag22aaa","wcag22aa","wcag22a","wcag21aaa","wcag2aaa"],g=[];if("function"==typeof(null===(n=h)||void 0===n?void 0:n.getRules))for(const{ruleId:e}of h.getRules(m)){h.utils.getRule(e).enabled||g.push(e)}null===(l=h)||void 0===l||l.configure({branding:{brand:s.wk,application:s.pW},rules:g.map(e=>({id:e,enabled:!0}))});const y=p||null===(u=h)||void 0===u||!u.version?"axe-frame-messenger":`axe-frame-messenger@${h.version}`;return null===(d=h)||void 0===d||null===(f=d.frameMessenger)||void 0===f||f.call(d,{post:async(e,t,n)=>{n(await(0,r.A)(e,y,t,{timeout:"axe.ping"===t.topic?5e3:6e4}))},open:e=>{o.yS.listen(y,async({message:t})=>await new Promise(n=>{e(t,e=>{n(JSON.parse(JSON.stringify(e)))})}))}}),await _(h),await M(e),!0}},46567(e,t,n){"use strict";n.d(t,{default:()=>Os});var r={};n.r(r),n.d(r,{DocumentPosition:()=>je,append:()=>Le,appendChild:()=>De,compareDocumentPosition:()=>ke,existsOne:()=>W,filter:()=>$,find:()=>B,findAll:()=>U,findOne:()=>H,getAttributeValue:()=>We,getChildren:()=>$e,getElementById:()=>J,getElements:()=>X,getElementsByClassName:()=>Q,getElementsByTagName:()=>Z,getElementsByTagType:()=>ee,getFeed:()=>Oe,getInnerHTML:()=>be,getName:()=>ze,getOuterHTML:()=>ye,getParent:()=>Be,getSiblings:()=>He,getText:()=>ve,hasAttrib:()=>Ue,innerText:()=>Se,nextElementSibling:()=>qe,prepend:()=>Ve,prependChild:()=>Fe,prevElementSibling:()=>Ge,removeElement:()=>_e,removeSubsets:()=>Pe,replaceElement:()=>Me,testElement:()=>K,textContent:()=>we,uniqueSort:()=>Re});const o=new Uint8Array(16);const i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));function s(e,t=0){return(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase()}const a=function(e,t,n){return t||e||!crypto.randomUUID?function(e,t,n){e=e||{};const r=e.random??e.rng?.()??crypto.getRandomValues(o);if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return s(r)}(e,t,n):crypto.randomUUID()};function c(){return!0}function l(){return!1}var u;!function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"}(u||(u={}));var d;!function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"}(d||(d={}));const f=/^[^#\\]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\u00B0-\uFFFF-])+/,p=/\\([\da-f]{1,6}\s?|(\s)|.)/gi;var h;!function(e){e[e.LeftParenthesis=40]="LeftParenthesis",e[e.RightParenthesis=41]="RightParenthesis",e[e.LeftSquareBracket=91]="LeftSquareBracket",e[e.RightSquareBracket=93]="RightSquareBracket",e[e.Comma=44]="Comma",e[e.Period=46]="Period",e[e.Colon=58]="Colon",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Plus=43]="Plus",e[e.Tilde=126]="Tilde",e[e.QuestionMark=63]="QuestionMark",e[e.ExclamationMark=33]="ExclamationMark",e[e.Slash=47]="Slash",e[e.Equal=61]="Equal",e[e.Dollar=36]="Dollar",e[e.Pipe=124]="Pipe",e[e.Circumflex=94]="Circumflex",e[e.Asterisk=42]="Asterisk",e[e.GreaterThan=62]="GreaterThan",e[e.LessThan=60]="LessThan",e[e.Hash=35]="Hash",e[e.LowerI=105]="LowerI",e[e.LowerS=115]="LowerS",e[e.BackSlash=92]="BackSlash",e[e.Space=32]="Space",e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn"}(h||(h={}));const m=new Map([[h.Tilde,d.Element],[h.Circumflex,d.Start],[h.Dollar,d.End],[h.Asterisk,d.Any],[h.ExclamationMark,d.Not],[h.Pipe,d.Hyphen]]),g=new Set(["has","not","matches","is","where","host","host-context"]),y=new Set(["before","after","first-line","first-letter"]);function b(e){switch(e.type){case u.Adjacent:case u.Child:case u.Descendant:case u.Parent:case u.Sibling:case u.ColumnCombinator:return!0;case u.Attribute:case u.Pseudo:case u.PseudoElement:case u.Tag:case u.Universal:return!1}}const v=new Set(["contains","icontains"]);function w(e,t,n){const r=Number.parseInt(t,16)-65536;return Number.isNaN(r)||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)}function S(e){return e.replace(p,w)}function O(e){return e===h.SingleQuote||e===h.DoubleQuote}function x(e){return e===h.Space||e===h.Tab||e===h.NewLine||e===h.FormFeed||e===h.CarriageReturn}function E(e){const t=[],n=A(t,`${e}`,0);if(n<e.length)throw new Error(`Unmatched selector: ${e.slice(n)}`);return t}function A(e,t,n){let r=[];function o(e){const r=t.slice(n+e).match(f);if(!r)throw new Error(`Expected name, found ${t.slice(n)}`);const[o]=r;return n+=e+o.length,S(o)}function i(e){for(n+=e;n<t.length&&x(t.charCodeAt(n));)n++}function s(){const e=n+=1;for(let r=1;n<t.length;n++)switch(t.charCodeAt(n)){case h.BackSlash:n+=1;break;case h.LeftParenthesis:r+=1;break;case h.RightParenthesis:if(r-=1,0===r)return S(t.slice(e,n++))}throw new Error("Parenthesis not matched")}function a(){if(r.length>0&&b(r[r.length-1]))throw new Error("Did not expect successive traversals.")}function c(e){r.length>0&&r[r.length-1].type===u.Descendant?r[r.length-1].type=e:(a(),r.push({type:e}))}function l(e,t){r.push({type:u.Attribute,name:e,action:t,value:o(1),namespace:null,ignoreCase:"quirks"})}function p(){if(r.length>0&&r[r.length-1].type===u.Descendant&&r.pop(),0===r.length)throw new Error("Empty sub-selector");e.push(r)}if(i(0),t.length===n)return n;e:for(;n<t.length;){const e=t.charCodeAt(n);switch(e){case h.Space:case h.Tab:case h.NewLine:case h.FormFeed:case h.CarriageReturn:0!==r.length&&r[0].type===u.Descendant||(a(),r.push({type:u.Descendant})),i(1);break;case h.GreaterThan:c(u.Child),i(1);break;case h.LessThan:c(u.Parent),i(1);break;case h.Tilde:c(u.Sibling),i(1);break;case h.Plus:c(u.Adjacent),i(1);break;case h.Period:l("class",d.Element);break;case h.Hash:l("id",d.Equals);break;case h.LeftSquareBracket:{let e;i(1);let s=null;t.charCodeAt(n)===h.Pipe?e=o(1):t.startsWith("*|",n)?(s="*",e=o(2)):(e=o(0),t.charCodeAt(n)===h.Pipe&&t.charCodeAt(n+1)!==h.Equal&&(s=e,e=o(1))),i(0);let a=d.Exists;const c=m.get(t.charCodeAt(n));if(c){if(a=c,t.charCodeAt(n+1)!==h.Equal)throw new Error("Expected `=`");i(2)}else t.charCodeAt(n)===h.Equal&&(a=d.Equals,i(1));let l="",f=null;if("exists"!==a){if(O(t.charCodeAt(n))){const e=t.charCodeAt(n),r=n+=1;for(;n<t.length&&t.charCodeAt(n)!==e;)n+=t.charCodeAt(n)===h.BackSlash?2:1;if(t.charCodeAt(n)!==e)throw new Error("Attribute value didn't end");l=S(t.slice(r,n)),n+=1}else{const e=n;for(;n<t.length&&!x(t.charCodeAt(n))&&t.charCodeAt(n)!==h.RightSquareBracket;)n+=t.charCodeAt(n)===h.BackSlash?2:1;l=S(t.slice(e,n))}switch(i(0),32|t.charCodeAt(n)){case h.LowerI:f=!0,i(1);break;case h.LowerS:f=!1,i(1)}}if(t.charCodeAt(n)!==h.RightSquareBracket)throw new Error("Attribute selector didn't terminate");n+=1;const p={type:u.Attribute,name:e,action:a,value:l,namespace:s,ignoreCase:f};r.push(p);break}case h.Colon:{if(t.charCodeAt(n+1)===h.Colon){r.push({type:u.PseudoElement,name:o(2).toLowerCase(),data:t.charCodeAt(n)===h.LeftParenthesis?s():null});break}const e=o(1).toLowerCase();if(y.has(e)){r.push({type:u.PseudoElement,name:e,data:null});break}let i=null;if(t.charCodeAt(n)===h.LeftParenthesis)if(g.has(e)){if(O(t.charCodeAt(n+1)))throw new Error(`Pseudo-selector ${e} cannot be quoted`);if(i=[],n=A(i,t,n+1),t.charCodeAt(n)!==h.RightParenthesis)throw new Error(`Missing closing parenthesis in :${e} (${t})`);n+=1}else{if(i=s(),v.has(e)){const e=i.charCodeAt(0);e===i.charCodeAt(i.length-1)&&O(e)&&(i=i.slice(1,-1))}i=S(i)}r.push({type:u.Pseudo,name:e,data:i});break}case h.Comma:p(),r=[],i(1);break;default:{if(t.startsWith("/*",n)){const e=t.indexOf("*/",n+2);if(-1===e)throw new Error("Comment was not terminated");n=e+2,0===r.length&&i(0);break}let s,a=null;if(e===h.Asterisk)n+=1,s="*";else if(e===h.Pipe){if(s="",t.charCodeAt(n+1)===h.Pipe){c(u.ColumnCombinator),i(2);break}}else{if(!f.test(t.slice(n)))break e;s=o(0)}t.charCodeAt(n)===h.Pipe&&t.charCodeAt(n+1)!==h.Pipe&&(a=s,t.charCodeAt(n+1)===h.Asterisk?(s="*",n+=2):s=o(1)),r.push("*"===s?{type:u.Universal,namespace:a}:{type:u.Tag,name:s,namespace:a})}}}return p(),n}var T;!function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(T||(T={}));const C=T.Root,I=T.Text,N=T.Directive,P=T.Comment,j=T.Script,k=T.Style,R=T.Tag,_=T.CDATA;T.Doctype;function M(e){return(t=e).type===T.Tag||t.type===T.Script||t.type===T.Style;var t}function D(e){return e.type===T.CDATA}function L(e){return e.type===T.Text}function F(e){return e.type===T.Comment}function V(e){return Object.hasOwn(e,"children")}function $(e,t,n=!0,r=Number.POSITIVE_INFINITY){return B(e,Array.isArray(t)?t:[t],n,r)}function B(e,t,n,r){const o=[],i=[Array.isArray(t)?t:[t]],s=[0];for(;;){if(s[0]>=i[0].length){if(1===s.length)return o;i.shift(),s.shift();continue}const t=i[0][s[0]++];if(e(t)&&(o.push(t),--r<=0))return o;n&&V(t)&&t.children.length>0&&(s.unshift(0),i.unshift(t.children))}}function H(e,t,n=!0){const r=Array.isArray(t)?t:[t];for(const t of r){if(M(t)&&e(t))return t;if(n&&V(t)&&t.children.length>0){const n=H(e,t.children,!0);if(n)return n}}return null}function W(e,t){return(Array.isArray(t)?t:[t]).some(t=>M(t)&&e(t)||V(t)&&W(e,t.children))}function U(e,t){const n=[],r=[Array.isArray(t)?t:[t]],o=[0];for(;;){if(o[0]>=r[0].length){if(1===r.length)return n;r.shift(),o.shift();continue}const t=r[0][o[0]++];M(t)&&e(t)&&n.push(t),V(t)&&t.children.length>0&&(o.unshift(0),r.unshift(t.children))}}const z={tag_name:e=>"function"==typeof e?t=>M(t)&&e(t.name):"*"===e?M:t=>M(t)&&t.name===e,tag_type:e=>"function"==typeof e?t=>e(t.type):t=>t.type===e,tag_contains:e=>"function"==typeof e?t=>L(t)&&e(t.data):t=>L(t)&&t.data===e};function q(e,t){return"function"==typeof t?n=>M(n)&&t(n.attribs[e]):n=>M(n)&&n.attribs[e]===t}function G(e,t){return n=>e(n)||t(n)}function Y(e){const t=Object.keys(e).map(t=>{const n=e[t];return Object.hasOwn(z,t)?z[t](n):q(t,n)});return 0===t.length?null:t.reduce(G)}function K(e,t){const n=Y(e);return!n||n(t)}function X(e,t,n,r=Number.POSITIVE_INFINITY){const o=Y(e);return o?$(o,t,n,r):[]}function J(e,t,n=!0){return Array.isArray(t)||(t=[t]),H(q("id",e),t,n)}function Z(e,t,n=!0,r=Number.POSITIVE_INFINITY){return $(z.tag_name(e),t,n,r)}function Q(e,t,n=!0,r=Number.POSITIVE_INFINITY){return $(q("class",e),t,n,r)}function ee(e,t,n=!0,r=Number.POSITIVE_INFINITY){return $(z.tag_type(e),t,n,r)}const te=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),ne="function"==typeof String.prototype.codePointAt?(e,t)=>e.codePointAt(t):(e,t)=>55296==(64512&e.charCodeAt(t))?1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function re(e){let t,n=0;const{length:r}=e;for(let o=0;o<r;o++){const r=e.charCodeAt(o);if(r<128&&(!(1342177476>>>r&1)||r>=64||r<32))continue;if(void 0===t?t=e.substring(0,o):n!==o&&(t+=e.substring(n,o)),r<64){t+=te.get(r),n=o+1;continue}const i=ne(e,o);t+=`&#x${i.toString(16)};`,i!==r&&o++,n=o+1}return void 0===t?e:(n<r&&(t+=e.substr(n)),t)}function oe(e,t){return function(n){let r,o=0,i="";for(;r=e.exec(n);)o!==r.index&&(i+=n.substring(o,r.index)),i+=t.get(r[0].charCodeAt(0)),o=r.index+1;return i+n.substring(o)}}const ie=oe(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),se=oe(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),ae=new Map("altGlyph altGlyphDef altGlyphItem animateColor animateMotion animateTransform clipPath feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feDropShadow feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence foreignObject glyphRef linearGradient radialGradient textPath".split(" ").map(e=>[e.toLowerCase(),e])),ce=new Map("definitionURL attributeName attributeType baseFrequency baseProfile calcMode clipPathUnits diffuseConstant edgeMode filterUnits glyphRef gradientTransform gradientUnits kernelMatrix kernelUnitLength keyPoints keySplines keyTimes lengthAdjust limitingConeAngle markerHeight markerUnits markerWidth maskContentUnits maskUnits numOctaves pathLength patternContentUnits patternTransform patternUnits pointsAtX pointsAtY pointsAtZ preserveAlpha preserveAspectRatio primitiveUnits refX refY repeatCount repeatDur requiredExtensions requiredFeatures specularConstant specularExponent spreadMethod startOffset stdDeviation stitchTiles surfaceScale systemLanguage tableValues targetX targetY textLength viewBox viewTarget xChannelSelector yChannelSelector zoomAndPan".split(" ").map(e=>[e.toLowerCase(),e])),le=new Set("style script xmp iframe noembed noframes plaintext noscript".split(" ")),ue=new Set("area base basefont br col command embed frame hr img input isindex keygen link meta param source track wbr".split(" ")),de=new Set(["svg","math"]),fe=new Set("mi mo mn ms mtext annotation-xml foreignObject desc title".split(" "));const pe=function(e,t={}){const n="length"in e?e:[e],r=t.xmlMode??!1;let o="";for(let e=0;e<n.length;e++)o+=me(n[e],t,r);return o};function he(e,t,n){let r="";for(let o=0;o<e.length;o++)r+=me(e[o],t,n);return r}function me(e,t,n){switch(e.type){case C:return he(e.children,t,n);case N:return`<${e.data}>`;case P:return`\x3c!--${e.data}--\x3e`;case _:return`<![CDATA[${e.children[0].data}]]>`;case j:case k:case R:return function(e,t,n){"foreign"===n&&(e.name=ae.get(e.name)??e.name,e.parent&&fe.has(e.parent.name)&&(n=!1));!n&&de.has(e.name)&&(n="foreign");const{name:r,children:o}=e,i=!n&&ue.has(r);let s=`<${r}${function(e,t,n){if(!e)return"";const r=!1===(t.encodeEntities??t.decodeEntities)?ge:n||"utf8"!==t.encodeEntities?re:ie,o="foreign"===n,i=!!(t.emptyAttrs??n);let s="";for(const t in e){if(!Object.hasOwn(e,t))continue;const n=e[t],a=o?ce.get(t)??t:t;s+=i||null!=n&&""!==n?` ${a}="${r(null==n?"":String(n))}"`:` ${a}`}return s}(e.attribs,t,n)}`;0===o.length&&(n?!1!==t.selfClosingTags:t.selfClosingTags&&i)?s+=n?"/>":" />":(s+=">",o.length>0&&(s+=he(o,t,n)),i||(s+=`</${r}>`));return s}(e,t,n);case I:{const r=e,o=r.data||"";return!1===(t.encodeEntities??t.decodeEntities)||!n&&r.parent&&le.has(r.parent.name)?o:n||"utf8"!==t.encodeEntities?re(o):se(o)}}}function ge(e){return e.replaceAll('"',""")}function ye(e,t){return pe(e,t)}function be(e,t){return V(e)?e.children.map(e=>ye(e,t)).join(""):""}function ve(e){return Array.isArray(e)?e.map(ve).join(""):M(e)?"br"===e.name?"\n":ve(e.children):D(e)?ve(e.children):L(e)?e.data:""}function we(e){return Array.isArray(e)?e.map(we).join(""):V(e)&&!F(e)?we(e.children):L(e)?e.data:""}function Se(e){return Array.isArray(e)?e.map(Se).join(""):V(e)&&(e.type===T.Tag||D(e))?Se(e.children):L(e)?e.data:""}function Oe(e){const t=Te(Ne,e);return t?"feed"===t.name?function(e){const t=e.children,n={type:"atom",items:Z("entry",t).map(e=>{const{children:t}=e,n={media:Ae(t)};Ie(n,"id","id",t),Ie(n,"title","title",t);const r=Te("link",t)?.attribs.href;r&&(n.link=r);const o=Ce("summary",t)||Ce("content",t);o&&(n.description=o);const i=Ce("updated",t);return i&&(n.pubDate=new Date(i)),n})};Ie(n,"id","id",t),Ie(n,"title","title",t);const r=Te("link",t)?.attribs.href;r&&(n.link=r);Ie(n,"description","subtitle",t);const o=Ce("updated",t);o&&(n.updated=new Date(o));return Ie(n,"author","email",t,!0),n}(t):function(e){const t=Te("channel",e.children)?.children??[],n={type:e.name.substr(0,3),id:"",items:Z("item",e.children).map(e=>{const{children:t}=e,n={media:Ae(t)};Ie(n,"id","guid",t),Ie(n,"title","title",t),Ie(n,"link","link",t),Ie(n,"description","description",t);const r=Ce("pubDate",t)||Ce("dc:date",t);return r&&(n.pubDate=new Date(r)),n})};Ie(n,"title","title",t),Ie(n,"link","link",t),Ie(n,"description","description",t);const r=Ce("lastBuildDate",t);r&&(n.updated=new Date(r));return Ie(n,"author","managingEditor",t,!0),n}(t):null}const xe=["url","type","lang"],Ee=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function Ae(e){return Z("media:content",e).map(e=>{const{attribs:t}=e,n={medium:t.medium,isDefault:!!t.isDefault};for(const e of xe)t[e]&&(n[e]=t[e]);for(const e of Ee)t[e]&&(n[e]=Number.parseInt(t[e],10));return t.expression&&(n.expression=t.expression),n})}function Te(e,t){return Z(e,t,!0,1)[0]}function Ce(e,t,n=!1){return we(Z(e,t,n,1)).trim()}function Ie(e,t,n,r,o=!1){const i=Ce(n,r,o);i&&(e[t]=i)}function Ne(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}function Pe(e){let t=e.length;for(;--t>=0;){const n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0)e.splice(t,1);else for(let r=n.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e}var je;function ke(e,t){const n=[],r=[];if(e===t)return 0;let o=V(e)?e:e.parent;for(;o;)n.unshift(o),o=o.parent;for(o=V(t)?t:t.parent;o;)r.unshift(o),o=o.parent;const i=Math.min(n.length,r.length);let s=0;for(;s<i&&n[s]===r[s];)s++;if(0===s)return je.DISCONNECTED;const a=n[s-1],c=a.children,l=n[s],u=r[s];return c.indexOf(l)>c.indexOf(u)?a===t?je.FOLLOWING|je.CONTAINED_BY:je.FOLLOWING:a===e?je.PRECEDING|je.CONTAINS:je.PRECEDING}function Re(e){return(e=e.filter((e,t,n)=>!n.includes(e,t+1))).sort((e,t)=>{const n=ke(e,t);return n&je.PRECEDING?-1:n&je.FOLLOWING?1:0}),e}function _e(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){const t=e.parent.children,n=t.lastIndexOf(e);-1!==n&&t.splice(n,1)}e.next=null,e.prev=null,e.parent=null}function Me(e,t){if(t.prev=e.prev,t.prev&&(t.prev.next=t),t.next=e.next,t.next&&(t.next.prev=t),t.parent=e.parent,t.parent){const{children:n}=t.parent,r=n.lastIndexOf(e);if(-1===r)return;n[r]=t,e.parent=null}}function De(e,t){if(_e(t),t.next=null,t.parent=e,e.children.push(t)>1){const n=e.children[e.children.length-2];n.next=t,t.prev=n}else t.prev=null}function Le(e,t){_e(t);const{parent:n}=e,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=n,r){if(r.prev=t,n){const e=n.children;e.splice(e.lastIndexOf(r),0,t)}}else n&&n.children.push(t)}function Fe(e,t){if(_e(t),t.parent=e,t.prev=null,1===e.children.unshift(t))t.next=null;else{const n=e.children[1];n.prev=t,t.next=n}}function Ve(e,t){_e(t);const{parent:n}=e;if(n){const r=n.children;r.splice(r.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}function $e(e){return V(e)?e.children:[]}function Be(e){return e.parent||null}function He(e){const t=Be(e);if(null!=t)return $e(t);const n=[e];let{prev:r,next:o}=e;for(;null!=r;)n.unshift(r),({prev:r}=r);for(;null!=o;)n.push(o),({next:o}=o);return n}function We(e,t){const{attribs:n}=e;return n?.[t]}function Ue(e,t){const{attribs:n}=e;return null!=n&&Object.hasOwn(n,t)&&null!=n[t]}function ze(e){return e.name}function qe(e){let{next:t}=e;for(;null!==t&&!M(t);)({next:t}=t);return t}function Ge(e){let{prev:t}=e;for(;null!==t&&!M(t);)({prev:t}=t);return t}!function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"}(je||(je={}));const Ye=/[-[\]{}()*+?.,\\^$|#\s]/g,Ke=/\s/;function Xe(e){return e.replace(Ye,"\\$&")}const Je=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function Ze(e,t){return"boolean"==typeof e.ignoreCase?e.ignoreCase:"quirks"===e.ignoreCase?!!t.quirksMode:!t.xmlMode&&Je.has(e.name)}const Qe={equals(e,t,n){const{adapter:r}=n,{name:o}=t;let{value:i}=t;return Ze(t,n)?(i=i.toLowerCase(),t=>{const n=r.getAttributeValue(t,o);return null!=n&&n.length===i.length&&n.toLowerCase()===i&&e(t)}):t=>r.getAttributeValue(t,o)===i&&e(t)},hyphen(e,t,n){const{adapter:r}=n,{name:o}=t;let{value:i}=t;const{length:s}=i;return Ze(t,n)?(i=i.toLowerCase(),function(t){const n=r.getAttributeValue(t,o);return null!=n&&(n.length===s||"-"===n.charAt(s))&&n.substr(0,s).toLowerCase()===i&&e(t)}):function(t){const n=r.getAttributeValue(t,o);return null!=n&&(n.length===s||"-"===n.charAt(s))&&n.substr(0,s)===i&&e(t)}},element(e,t,n){const{adapter:r}=n,{name:o,value:i}=t;if(Ke.test(i))return l;const s=new RegExp(`(?:^|\\s)${Xe(i)}(?:$|\\s)`,Ze(t,n)?"i":"");return function(t){const n=r.getAttributeValue(t,o);return null!=n&&n.length>=i.length&&s.test(n)&&e(t)}},exists:(e,{name:t},{adapter:n})=>r=>n.hasAttrib(r,t)&&e(r),start(e,t,n){const{adapter:r}=n,{name:o}=t;let{value:i}=t;const{length:s}=i;return 0===s?l:Ze(t,n)?(i=i.toLowerCase(),t=>{const n=r.getAttributeValue(t,o);return null!=n&&n.length>=s&&n.substr(0,s).toLowerCase()===i&&e(t)}):t=>!!r.getAttributeValue(t,o)?.startsWith(i)&&e(t)},end(e,t,n){const{adapter:r}=n,{name:o}=t;let{value:i}=t;const s=-i.length;return 0===s?l:Ze(t,n)?(i=i.toLowerCase(),t=>r.getAttributeValue(t,o)?.substr(s).toLowerCase()===i&&e(t)):t=>!!r.getAttributeValue(t,o)?.endsWith(i)&&e(t)},any(e,t,n){const{adapter:r}=n,{name:o,value:i}=t;if(""===i)return l;if(Ze(t,n)){const t=new RegExp(Xe(i),"i");return function(n){const s=r.getAttributeValue(n,o);return null!=s&&s.length>=i.length&&t.test(s)&&e(n)}}return t=>!!r.getAttributeValue(t,o)?.includes(i)&&e(t)},not(e,t,n){const{adapter:r}=n,{name:o}=t;let{value:i}=t;return""===i?t=>!!r.getAttributeValue(t,o)&&e(t):Ze(t,n)?(i=i.toLowerCase(),t=>{const n=r.getAttributeValue(t,o);return(null==n||n.length!==i.length||n.toLowerCase()!==i)&&e(t)}):t=>r.getAttributeValue(t,o)!==i&&e(t)}};function et(e,t,n){const{adapter:r,xmlMode:o=!1}=n,i=[t],s=[0];for(;;){if(s[0]>=i[0].length){if(1===i.length)return null;i.shift(),s.shift();continue}const t=i[0][s[0]++];if(r.isTag(t)){if(e(t))return t;if(o||"template"!==r.getName(t)){const e=r.getChildren(t);e.length>0&&(i.unshift(e),s.unshift(0))}}}}function tt(e,t){const n=t.getSiblings(e);if(n.length<=1)return[];const r=n.indexOf(e);return-1===r||r===n.length-1?[]:n.slice(r+1).filter(t.isTag)}function nt(e,t){const n=t.getParent(e);return null!=n&&t.isTag(n)?n:null}const rt="input:is([type=text i],[type=search i],[type=url i],[type=tel i],[type=email i],[type=password i],[type=date i],[type=month i],[type=week i],[type=time i],[type=datetime-local i],[type=number i])",ot={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:":is(\n :is(button, input, select, textarea, optgroup, option)[disabled],\n optgroup[disabled] > option,\n fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)\n )",enabled:":is(button, input, select, textarea, optgroup, option, fieldset):not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], :selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])","read-only":`[readonly]:is(textarea, ${rt})`,"read-write":`:not([readonly]):is(textarea, ${rt})`,selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};const it=new Set([9,10,12,13,32]),st="0".charCodeAt(0),at="9".charCodeAt(0);function ct(e){return function(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return l;if(-1===t)return e=>e<=n;if(0===t)return e=>e===n;if(1===t)return n<0?c:e=>e>=n;const r=Math.abs(t),o=(n%r+r)%r;return t>1?e=>e>=n&&e%r===o:e=>e<=n&&e%r===o}(function(e){switch(e=e.trim().toLowerCase()){case"even":return[2,0];case"odd":return[2,1]}let t=0,n=0,r=i(),o=s();if(t<e.length&&"n"===e.charAt(t)&&(t++,n=r*(o??1),a(),t<e.length?(r=i(),a(),o=s()):r=o=0),null===o||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[n,r*o];function i(){switch(e.charAt(t)){case"-":return t++,-1;case"+":t++}return 1}function s(){const n=t;let r=0;for(;t<e.length&&e.charCodeAt(t)>=st&&e.charCodeAt(t)<=at;)r=10*r+(e.charCodeAt(t)-st),t++;return t===n?null:r}function a(){for(;t<e.length&&it.has(e.charCodeAt(t));)t++}}(e))}function lt(e,{adapter:t,cacheResults:n},r){if(!1===n||"undefined"==typeof WeakMap)return t=>e(t)&&r(t);const o=new WeakMap;function i(e){const t=r(e);return o.set(e,t),t}return function(n){if(!e(n))return!1;if(o.has(n))return o.get(n)??!1;let r=n;do{const e=nt(r,t);if(null===e)return i(n);r=e}while(!o.has(r));return!!o.get(r)&&i(n)}}function ut(e){const{context:t,rootFunc:n,...r}=e;return r}function dt(e,t){if("*"!==t[0]&&t[0]!==e[0])return!1;let n=1;for(let r=1;r<t.length;r++)if("*"!==t[r]){for(;n<e.length&&e[n]!==t[r];)if(e[n++].length<=1)return!1;if(n>=e.length)return!1;n++}return!0}const ft=/^(.+?)\s+of\s+(.+)$/is;function pt(e,t){return function(n,r,o,i,s){const{adapter:a,equals:u}=o,d=t?null:r.match(ft),f=ct(d?d[1].trim():r);if(f===l)return l;const p=d&&s?s(E(d[2].trim()),ut(o),i):void 0;if(p===l)return l;if(f===c&&!p)return e=>null!==nt(e,a)&&n(e);const h=p?(e,t)=>p(t):t?(e,t)=>a.getName(t)===a.getName(e):c;return e?function(e){if(p&&!p(e))return!1;const t=a.getSiblings(e);let r=0;for(let n=t.length-1;n>=0;n--){const o=t[n];if(u(e,o))break;a.isTag(o)&&h(e,o)&&r++}return f(r)&&n(e)}:function(e){if(p&&!p(e))return!1;const t=a.getSiblings(e);let r=0;for(const n of t){if(u(e,n))break;a.isTag(n)&&h(e,n)&&r++}return f(r)&&n(e)}}}const ht={contains(e,t,n){const{getText:r}=n.adapter;return lt(e,n,e=>r(e).includes(t))},icontains(e,t,n){const r=t.toLowerCase(),{getText:o}=n.adapter;return lt(e,n,e=>o(e).toLowerCase().includes(r))},"nth-child":pt(!1,!1),"nth-last-child":pt(!0,!1),"nth-of-type":pt(!1,!0),"nth-last-of-type":pt(!0,!0),root:(e,t,{adapter:n})=>t=>null===nt(t,n)&&e(t),scope(e,t,n,r){const{equals:o}=n;return r&&0!==r.length?1===r.length?t=>o(r[0],t)&&e(t):t=>r.includes(t)&&e(t):ht.root(e,t,n)},lang(e,t,{adapter:n}){const r=t.split(",").map(e=>e.trim()).filter(e=>e.length>0).map(e=>e.replace(/^['"]|['"]$/g,"").toLowerCase().split("-"));return function(t){let o=t;for(;null!=o;){const i=n.getAttributeValue(o,"xml:lang")??n.getAttributeValue(o,"lang");if(null!=i){if(!i)return r.some(e=>""===e[0])&&e(t);const n=i.toLowerCase().split("-");return r.some(e=>dt(n,e))&&e(t)}const s=n.getParent(o);o=null!=s&&n.isTag(s)?s:null}return r.some(e=>""===e[0])&&e(t)}},hover:mt("isHovered"),visited:mt("isVisited"),active:mt("isActive")};function mt(e){return function(t,n,{adapter:r}){const o=r[e];return"function"!=typeof o?l:function(e){return o(e)&&t(e)}}}const gt=/^[ \t\r\n]*$/,yt={empty(e,{adapter:t}){const n=t.getChildren(e);return n.every(e=>!t.isTag(e))&&n.every(e=>gt.test(t.getText(e)))},"first-child"(e,{adapter:t,equals:n}){if(t.prevElementSibling)return null==t.prevElementSibling(e);const r=t.getSiblings(e).find(e=>t.isTag(e));return null!=r&&n(e,r)},"last-child"(e,{adapter:t,equals:n}){const r=t.getSiblings(e);for(let o=r.length-1;o>=0;o--){if(n(e,r[o]))return!0;if(t.isTag(r[o]))break}return!1},"first-of-type"(e,{adapter:t,equals:n}){const r=t.getSiblings(e),o=t.getName(e);for(const i of r){if(n(e,i))return!0;if(t.isTag(i)&&t.getName(i)===o)break}return!1},"last-of-type"(e,{adapter:t,equals:n}){const r=t.getSiblings(e),o=t.getName(e);for(let i=r.length-1;i>=0;i--){const s=r[i];if(n(e,s))return!0;if(t.isTag(s)&&t.getName(s)===o)break}return!1},"only-of-type"(e,{adapter:t,equals:n}){const r=t.getName(e);return t.getSiblings(e).every(o=>n(e,o)||!t.isTag(o)||t.getName(o)!==r)},"only-child":(e,{adapter:t,equals:n})=>t.getSiblings(e).every(r=>n(e,r)||!t.isTag(r))};function bt(e,t,n,r){if(null===n){if(e.length>r)throw new Error(`Pseudo-class :${t} requires an argument`)}else if(e.length===r)throw new Error(`Pseudo-class :${t} doesn't have any arguments`)}function vt(e){return"_flexibleDescendant"===e.type||b(e)}function wt(e){const t=e.map(St);for(let n=1;n<e.length;n++){const r=t[n];if(!(r<0))for(let o=n;o>0&&r<t[o-1];o--){const n=e[o];e[o]=e[o-1],e[o-1]=n,t[o]=t[o-1],t[o-1]=r}}}function St(e){switch(e.type){case u.Universal:return 50;case u.Tag:return 30;case u.Attribute:return Math.floor(function(e){switch(e.action){case d.Exists:return 10;case d.Equals:return"id"===e.name?9:8;case d.Not:return 7;case d.Start:case d.End:return 6;case d.Any:return 5;case d.Hyphen:return 4;case d.Element:return 3}}(e)/(e.ignoreCase?2:1));case u.Pseudo:return e.data?"has"===e.name||"contains"===e.name||"icontains"===e.name?0:Array.isArray(e.data)?Math.max(0,Math.min(...e.data.map(e=>Math.min(...e.map(St))))):2:3;default:return-1}}function Ot(e){return e.type===u.Pseudo&&("scope"===e.name||Array.isArray(e.data)&&e.data.some(e=>e.some(Ot)))}const xt={};const Et=(e,t,n,r,o)=>{const i=o(t,ut(n),r);return i===c?e:i===l?l:t=>i(t)&&e(t)},At={is:Et,matches:Et,where:Et,not(e,t,n,r,o){const i=o(t,ut(n),r);return i===l?e:i===c?l:t=>!i(t)&&e(t)},has(e,t,n,r,o){const{adapter:i}=n,s=ut(n);s.relativeSelector=!0;const a=t.some(e=>e.some(vt))?[xt]:void 0,u=t.some(e=>e.length>0&&(vt(e[0])||e.some(Ot)));const d=o(t,s,a);if(d===l)return l;if(a&&d!==c)return u?t=>{if(!e(t))return!1;a[0]=t;const r=i.getChildren(t);return null!==et(d,d.shouldTestNextSiblings?[...r,...tt(t,i)]:r,n)}:lt(e,n,e=>(a[0]=e,null!==et(d,i.getChildren(e),n)));const f=e=>null!==et(d,i.getChildren(e),n);return u?t=>e(t)&&f(t):lt(e,n,f)}};function Tt(e,t,n,r,o,i){const{adapter:s,equals:a,cacheResults:c}=n;switch(t.type){case u.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case u.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case u.Attribute:if(null!=t.namespace)throw new Error("Namespaced attributes are not yet supported by css-select");return n.xmlMode&&!n.lowerCaseAttributeNames||(t.name=t.name.toLowerCase()),Qe[t.action](e,t,n);case u.Pseudo:return function(e,t,n,r,o){const{name:i,data:s}=t;if(Array.isArray(s)){if(!(i in At))throw new Error(`Unknown pseudo-class :${i}(${s})`);return At[i](e,s,n,r,o)}const a=n.pseudos?.[i],c="string"==typeof a?a:ot[i];if("string"==typeof c){if(null!=s)throw new Error(`Pseudo ${i} doesn't have any arguments`);const t=E(c);return At.is(e,t,n,r,o)}if("function"==typeof a)return bt(a,i,s,1),t=>a(t,s)&&e(t);if(i in ht)return ht[i](e,s,n,r,o);if(i in yt){const t=yt[i];return bt(t,i,s,2),r=>t(r,n,s)&&e(r)}throw new Error(`Unknown pseudo-class :${i}`)}(e,t,n,r,o);case u.Tag:{if(null!=t.namespace)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:r}=t;return n.xmlMode&&!n.lowerCaseTags||(r=r.toLowerCase()),function(t){return s.getName(t)===r&&e(t)}}case u.Descendant:{if(!i||!1===c||"undefined"==typeof WeakMap)return function(t){let n=t;for(;n=nt(n,s);)if(e(n))return!0;return!1};const t=new WeakMap;return function(n){let r,o=n;for(;o=nt(o,s);){const n=t.get(o);if(void 0!==n)return r&&(r.matches=n.matches),n.matches;if(r??={matches:!1},r.matches=e(o),t.set(o,r),r.matches)return!0}return!1}}case"_flexibleDescendant":return function(t){let n=t;do{if(e(n))return!0;n=nt(n,s)}while(n);return!1};case u.Parent:return function(t){return s.getChildren(t).some(t=>s.isTag(t)&&e(t))};case u.Child:return function(t){const n=nt(t,s);return null!==n&&e(n)};case u.Sibling:return function(t){const n=s.getSiblings(t);for(const r of n){if(a(t,r))break;if(s.isTag(r)&&e(r))return!0}return!1};case u.Adjacent:return s.prevElementSibling?function(t){const n=s.prevElementSibling(t);return null!=n&&e(n)}:function(t){const n=s.getSiblings(t);let r;for(const e of n){if(a(t,e))break;s.isTag(e)&&(r=e)}return!!r&&e(r)};case u.Universal:if(null!=t.namespace&&"*"!==t.namespace)throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}const Ct={type:u.Descendant},It={type:"_flexibleDescendant"},Nt={type:u.Pseudo,name:"scope",data:null};function Pt(e,t,n){for(const t of e)wt(t);const{context:r=n,rootFunc:o=c}=t,i=Array.isArray(r),s=r&&(Array.isArray(r)?r:[r]);if(!1!==t.relativeSelector)!function(e,{adapter:t},n){const r=!!n?.every(e=>e===xt||t.isTag(e)&&null!==nt(e,t));for(const t of e){if(t.length>0&&vt(t[0])&&t[0].type!==u.Descendant);else{if(!r||t.some(Ot))continue;t.unshift(Ct)}t.unshift(Nt)}}(e,t,s);else if(e.some(e=>e.length>0&&vt(e[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let a=!1,d=l;e:for(const n of e){if(n.length>=2){const[e,t]=n;e.type!==u.Pseudo||"scope"!==e.name||(i&&t.type===u.Descendant?n[1]=It:t.type!==u.Adjacent&&t.type!==u.Sibling||(a=!0))}let e=o,r=!1;for(const o of n){e=Tt(e,o,t,s,Pt,r);if(0===St(o)&&(r=!0),e===l)continue e}if(e===o)return o;d=d===l?e:jt(d,e)}return d.shouldTestNextSiblings=a,d}function jt(e,t){return n=>e(n)||t(n)}const kt=(e,t)=>e===t,Rt={adapter:{...r,isTag:M},equals:kt};function _t(e){const t=e??Rt;return t.adapter??=Rt.adapter,t.equals??=t.adapter?.equals??kt,t}function Mt(e,t,n){return Pt("string"==typeof e?E(e):e,_t(t),n)}function Dt(e){return function(t,n,r){const o=_t(r);"function"!=typeof t&&(t=Mt(t,o,n));const i=function(e,t,n=!1){n&&(e=function(e,t){const n=Array.isArray(e)?[...e]:[e],r=n.length;for(let e=0;e<r;e++){const r=tt(n[e],t);n.push(...r)}return n}(e,t));return Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}(n,o.adapter,t.shouldTestNextSiblings);return e(t,i,o)}}const Lt=Dt((e,t,n)=>e!==l&&t&&0!==t.length?function(e,t,n){const{adapter:r,xmlMode:o=!1}=n,i=[],s=[t],a=[0];for(;;){if(a[0]>=s[0].length){if(1===s.length)return i;s.shift(),a.shift();continue}const t=s[0][a[0]++];if(r.isTag(t)&&(e(t)&&i.push(t),o||"template"!==r.getName(t))){const e=r.getChildren(t);e.length>0&&(s.unshift(e),a.unshift(0))}}}(e,t,n):[]),Ft=Dt((e,t,n)=>e!==l&&t&&0!==t.length?et(e,t,n):null);class Vt extends HTMLElement{constructor(){return document.createElement("div")}}class $t{constructor(e){this.groot=e.groot,this.type=e.event.type,this.target=this.groot.get(e.event.target);const t=e.event.composedPath();t[0]&&(this.composedTarget=this.groot.get(t[0]))}toJSON(){const{type:e,target:t,composedTarget:n}=this,r={type:e,target:JSON.parse(this.groot.safe(t))};return n&&(r.composedTarget=JSON.parse(this.groot.safe(n))),r}}class Bt{constructor(e){this.groot=e.groot,this.vnodeId=e.node.vnodeId,this.element=e.node.element||null,this.depth=e.node.depth||0,this.selector=e.node.selector,this.children=e.node.children||[],this.ancestors=e.node.ancestors||[],this.previousSibling=e.node.previousSibling,this.attributes=e.node.attributes||{},this.attrs=e.node.attrs||[],this.properties=e.node.properties,this.tagName=e.node.tagName,this.isFrame=e.node.isFrame,this.isShadow=e.node.isShadow,this.isShadowHost=e.node.isShadowHost,this.isSlottedElement=e.node.isSlottedElement,this.slotAncestors=e.node.slotAncestors||[],this.slotChildren=e.node.slotChildren||[],this.isCrossOrigin=e.node.isCrossOrigin||!1===this.element?.isConnected,e.frameMessenger&&(this.frameMessenger=e.frameMessenger,this.listeners=new Map,this.init())}toJSON(){const{groot:e,...t}=this;return{...t}}init(){this.isCrossOrigin||this.frameMessenger?.listen("groot:add-event-listener",({message:e})=>{const{type:t,options:n,vnodeId:r,treeId:o,listenerId:i}=e;if(Number(r)!==this.vnodeId||o!==this.groot.getId())return;const s=e=>this.frameMessenger.sendReply("groot:event",{event:e,listenerId:i});this.addEventListener(t,s,n),this.frameMessenger.listen("groot:remove-event-listener",({message:e})=>{const{listenerId:n}=e;if(i===n)return this.removeEventListener(t,s)})})}async addEventListener(e,t,n){let r;if(this.isCrossOrigin){const o=a();await this.frameMessenger.sendAll("groot:add-event-listener",{type:e,options:n,vnodeId:this.vnodeId,treeId:this.groot.getId(),listenerId:o}),this.frameMessenger.listen("groot:event",({message:e})=>{const n=e.event,r={type:n.type,target:this.groot.getById(n.target.vnodeId)};n.composedTarget&&(r.composedTarget=this.groot.getById(n.composedTarget.vnodeId)),e.listenerId===o&&t(r)}),r=async()=>{this.frameMessenger.sendAll("groot:remove-event-listener",{listenerId:o})}}else{const o=e=>{n?.preventDefault&&e.preventDefault(),n?.stopPropagation&&e.stopPropagation(),t(new $t({event:e,groot:this.groot}))},i="object"!=typeof n?n:Object.fromEntries(Object.entries(n).filter(([e])=>!["preventDefault","stopPropagation"].includes(e)));this.element.addEventListener(e,o,i),r=()=>{this.element.removeEventListener(e,o,i)}}return this.listeners.set(t,r),r}async removeEventListener(e,t){const n=this.listeners.get(t);n&&(await n(),this.listeners.delete(t))}contains(e){if(!e)return!1;const t=this.groot.get(e)??e,n=[...this.children,...this.slotChildren];return n.some(e=>e.vnodeId===t.vnodeId)||n.some(e=>e.contains?.(t))}}const Ht={allowAttrs:Object.freeze(["data-.*","aria-.*","method","action","class","id","xlink:href","role","name","src","type","for"]),rejectKeys:Object.freeze(["element"]),vnodeOnly:Object.freeze(["previousSibling","ancestors","children","slotAncestors","slotChildren"]),rejectTags:Object.freeze(["script","style"]),seed:0,findOneTimeLimit:1e3};var Wt=Object.keys(Ht).reduce((e,t)=>(e[t]=Ht[t],e),{});const Ut=/(\[[^=]+=[^[]+\])|(\[.*\])/g;function zt(e){let t=e;t.startsWith("#")&&(t=`[id="${t.substring(1)}"]`);const n=e.toString().match(Ut);if(n){const e=n.reduce((e,t)=>{let n=t,[r,o,i,s]=["","","",""];const a=n.match(/\[([^~|^$*=]+)([~|^$*]*=)"*([^\]|"]+)"*\]/);if(a?[r,o,i,s]=a:[r,o]=n.match(/\[([^=|'|"]+)\]/)||[],!o)return n;s&&(s=`${i}"${CSS.escape(s)}"`);const c=o.match(/[^:]+:(.*)/);return c?([r,o]=c,n=`[*|${o}${s}]:not([${o}${s}])`):n=`[${o}${s}]`,e+=n},"");t=t.replace(Ut,e)}return t}var qt=["id","accesskey","aria-keyshortcuts","for","aria-owns","aria-controls","aria-flowto","list","aria-errormessage","type","autocomplete","inputmode","pattern","role","itemprop","itemtype","rel","name","title","aria-labelledby","aria-describedby","placeholder","aria-placeholder","aria-label","aria-roledescription","summary","aria-details","class","action","href","src","aria-valuemax","aria-valuemin","value"];function*Gt(e){const t=function(e){const{tagName:t,attributes:n={}}=e,r=[];t&&r.push({selector:t,score:0});return Object.entries(n).forEach(function(e){return([t,n=""])=>{const r=t.startsWith("data-")?100:qt.indexOf(t);-1!==r&&("class"===t&&n.indexOf(" ")>-1?e.push(...n.match(/\S+/g).map(e=>({selector:`.${CSS.escape(e)}`,score:r}))):e.push({selector:zt(`[${t}="${n}"]`),score:r}))}}(r)),r.sort((e,t)=>e.score-t.score).map(e=>e.selector)}(e);yield*function*(e,t=e.length){let n=1;for(;n<=t;n+=1)yield*Yt(e,n)}(t)}function*Yt(e,t,n={}){const{data:r=[],start:o=0,index:i=0}=n;i===t&&(yield r.slice(0,i).join(""));const s=e.length-1;for(let n=o;n<=s&&s-n+1>=t-i;n+=1)r[i]=e[n],yield*Yt(e,t,{data:r,start:n+1,index:i+1})}function Kt(e){if(e.length<2)return[];const t=JSON.parse(JSON.stringify(e));let n=t.pop();if("string"==typeof n)return t;let[r,...o]=n;return t.push([r,...Kt(o)]),t}var Xt={isTag:()=>!0,existsOne(e,t){return t.some(t=>e(t)||this.existsOne(e,this.getChildren(t)))},getAttributeValue:(e,t)=>e.attributes[t],getChildren:e=>e.children,getName:e=>e.tagName,getParent:e=>e.ancestors[e.ancestors.length-1]||null,getSiblings(e){const t=this.getParent(e);return t?t.children:[e]},prevElementSibling:e=>e.previousSibling||null,getText(){throw new Error("getText() is not implemented. :contains pseudo-selector is not supported.")},hasAttrib:(e,t)=>t in e.attributes,removeSubsets(e){const t=[...e],n=[];for(;t.length;){const e=t.pop();if(t.includes(e))continue;e.ancestors.some(e=>t.includes(e))||n.push(e)}return n.reverse()},findAll(e,t){const n=[];for(const r of t)e(r)&&n.push(r),n.push(...this.findAll(e,this.getChildren(r)));return n},findOne(e,t){let n=null;for(const r of t){if(e(r)){n=r;break}if(n=this.findOne(e,this.getChildren(r)),n)break}return n}},Jt={"nth-context":(e,t)=>e.ancestors.reduce((e,t)=>((t.isFrame||t.isShadow)&&e++,e),1)===Number(t)};function Zt(e,t=!1){const n=e.length,r=e.reduce((e,t)=>{const n=e?`${e} `:"";return Array.isArray(t)?`${n}${t[0]} ${t[1]}`:`${n}${t}`},"");return t?r:`${r}:nth-context(${n})`}const Qt=Symbol("i am groot");class en extends Map{constructor(e){super(),this.config={},this[Qt]={},this[Qt].count=0,this[Qt].nextId=()=>{for(;this.vnodeIds[this[Qt].count];)this[Qt].count+=1;return this[Qt].count},this[Qt].listeners={create:new Set,destroy:new Set,update:new Set,walk:new Set,discard:new Set},this[Qt].json=[],this[Qt].dirty=!0,this.ready=!1,this.context=!1,this.rules={},this.vnodeIds={},this.reset(e)}setSeed(e){this[Qt].count=e,this.config.seed=e}use(e={}){const t=["context","seed"],n=Object.assign(this.config,e);return Object.keys(e).forEach(r=>{let o=e[r];if("listeners"===r){const t=e.listeners;return void Object.keys(t).forEach(e=>{let n=t[e];Array.isArray(n)||(n=[n]),n.forEach(t=>{this[Qt].listeners[e].add(t)})})}if(t.includes(r))return this[r]=o;n[r]=o}),this.rules={allowAttrs:new RegExp(`^(${n.allowAttrs.join("|")})$`),rejectTags:n.rejectTags.map(zt).join(", "),rejectKeys:new RegExp(`^(${n.rejectKeys.join("|")})$`),vnodeOnly:new RegExp(`^(${n.vnodeOnly.join("|")})$`)},this.context&&(this.ready=!0),this}clear(){return super.clear(),this[Qt].count=this.config.seed,this.vnodeIds={},this}reset(e={}){return this.context=window,this.config=Object.assign({},Wt,{id:a()}),this.rules={},this.ready=!1,this.use(e),this.clear(),this}getSerializableConfig(){const{acceptNode:e,listeners:t,treeBuilder:n,...r}=this.config;return r}get root(){return this.vnodeIds[this.config.seed]}get flat(){const e=[],t=n=>{e.push(n),n.children.forEach(t)};return this.root&&t(this.root),e}toJSON(){return this[Qt].dirty?(this[Qt].json=JSON.parse(this.safe(this.flat)),this[Qt].dirty=!1,this[Qt].json):this[Qt].json}safe(e){return JSON.stringify(e,(e,t)=>{if(!e.match(this.rules.rejectKeys))return e.match(this.rules.vnodeOnly)&&t?Array.isArray(t)?t.map(e=>e.vnodeId):t.vnodeId:t})}set(e,t){const n=t.element;return this.delete(n),super.set(e,t),this.vnodeIds[t.vnodeId]=t,this}delete(e){const t=super.get(e);return!!super.delete(e)&&(delete this.vnodeIds[t.vnodeId],!0)}getById(e){return this.vnodeIds[e]}getFrameContent(e){try{return e.contentDocument}catch(e){}}getRoot(e){if(e){if(e.window)return e.document.body;if(e.nodeType===Node.DOCUMENT_NODE)return e.body||e.documentElement;if(e.contentWindow){const t=this.getFrameContent(e);return t&&t.body}return e.nodeType===Node.ELEMENT_NODE?e:e.ownerDocument?e.getRootNode():void 0}}getContext(e=this.context){if(e)return e.window?e.document:e.nodeType===Node.DOCUMENT_NODE?e:e.contentWindow?this.getFrameContent(e):e.ownerDocument?e.ownerDocument:void 0}getTreeWalker(e){const{context:t,root:n}=e;let{acceptNode:r}=this.config;return"function"!=typeof r&&(r=()=>!0),t.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{if(!e.matches(this.rules.rejectTags)&&r(e))return NodeFilter.FILTER_ACCEPT}})}merge(e,t){t.children.push(e.root),t.properties.childElementCount+=1,e.forEach(e=>{e.ancestors.unshift(...t.ancestors,t),e.depth=t.depth+e.depth+1,this.updateSelector(e),e.groot=this,this.set(e.element,e),this[Qt].nextId()})}async walk(e,t={}){this[Qt].dirty=!0;const{parent:n}=t,r=this.getContext(e);if(!r)return;const o=this.getRoot(e||r),i=this.getTreeWalker({context:r,root:o}),s=this.refreshVnode(this.get(i.currentNode),t)||this.vnode({parent:n,element:o,vnodeId:this[Qt].nextId()}),a=s.isShadow&&s;for(this.set(o,s);i.nextNode();){const e=this.refreshVnode(this.get(i.currentNode),{parent:a})||this.vnode({element:i.currentNode,parent:a,vnodeId:this[Qt].nextId()});if(this.set(i.currentNode,e),e.isFrame){const t=this.getFrameContent(e.element);if(!t&&this.config.treeBuilder){try{const t=await this.config.treeBuilder.buildSubTree(e.element.contentWindow,{...this.getSerializableConfig(),seed:this[Qt].nextId()});this.merge(t,e)}catch(e){console.error(e)}continue}await this.walk(t,{parent:e});continue}if(e.isShadowHost){const t=i.currentNode.shadowRoot;t&&await this.walk(t,{parent:e})}}return this[Qt].listeners.walk.forEach(e=>e(s,this)),this}vnode(e){const{element:t,parent:n,vnodeId:r}=e,o=new Bt({frameMessenger:this.config.frameMessenger,groot:this,node:{vnodeId:r,element:t,depth:0,selector:[],children:[],ancestors:[],properties:{},attributes:{},attrs:[],slotAncestors:[],slotChildren:[]}});return this.updateTag(o),this.updateAttributes(o),this.updateFrame(o),this.updateShadow(o),this.updateSlot(o),this.updateProperties(o),this.updateParent(o,n),this.updateSelector(o),this[Qt].listeners.create.forEach(e=>e(o,this)),o}refreshVnode(e,t={}){const{parent:n}=t;if(!e)return;const r=new Bt({frameMessenger:this.config.frameMessenger,groot:this,node:e});return r.isShadowHost&&!r.element.shadowRoot||(this.cleanUp(r),this.updateTag(r),this.updateAttributes(r),this.updateFrame(r),this.updateShadow(r),this.updateSlot(r),this.updateProperties(r),this.updateParent(r,n),this.updateSelector(r),this[Qt].listeners.update.forEach(e=>e(r,this))),r}cleanUp(e){e.children.forEach(t=>{t.isShadow||e.isShadow||t.element.isConnected||(this.delete(t.element),this[Qt].listeners.destroy.forEach(t=>t(e,this)))}),e.depth=0,e.children.length=0,e.ancestors.length=0}updateParent(e,t){const{element:n}=e;let r=t;const o=n.parentElement;if((!r||r.isShadow&&o)&&(r=this.get(o)),r&&(e.previousSibling=r.children[r.children.length-1],e.depth=r.depth+1,e.ancestors.length=0,e.ancestors.push(...r.ancestors,r),r.children.push(e),r.properties.childElementCount+=1),e.isSlottedElement){const t=this.get(n.assignedSlot);e.slotAncestors=[...t.ancestors,t],t.slotChildren.push(e)}else r&&r.slotAncestors&&r.slotAncestors.length&&(e.slotAncestors=[...r.slotAncestors,r])}updateFrame(e){const{tagName:t}=e;Boolean(t.match(/^(i){0,1}frame$/i))&&(e.isFrame=!0)}updateSlot(e){const{element:t}=e;t.assignedSlot&&(e.isSlottedElement=!0)}updateTag(e){const{element:t}=e;let n=t.tagName;t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(n="shadow-root"),e.tagName=CSS.escape(n.toLowerCase())}updateAttributes(e){const{element:t}=e;e.attrs.length&&e.attrs.forEach(t=>delete e.attributes[t]),e.attrs.length=0;const n=t.attributes||[];e.attributes={};const r=n.length;let o=0;for(;o<r;o+=1){const r=n[o],i=r.name;if(i.match(this.rules.allowAttrs)){if("class"===i)e.attributes[i]=this.getClassName(t);else e.attributes[i]=r.value;e.attrs.push(i)}}}updateShadow(e){const{tagName:t,element:n,attributes:r}=e;(n.shadowRoot||"use"===t&&r["xlink:href"])&&(e.isShadowHost=!0),"shadow-root"===t&&(e.isShadow=!0)}updateProperties(e){const{tagName:t,element:n,attributes:r}=e;Object.assign(e.properties,{id:r.id,tagName:t,childElementCount:0,className:r.class,classSelector:this.getClassSelector(n),tabIndex:this.getTabIndex(e)})}countMatchingPreviousSiblings(e){const{element:t,tagName:n,vnodeId:r}=e,o=e.ancestors[e.ancestors.length-1];let i=1;if(!o&&t){let e=t.previousElementSibling;const r=this.getContext(t);for(;e&&r.body.contains(e);)CSS.escape(e.tagName).toLowerCase()===n&&i++,e=e.previousElementSibling}else if(o){const e=o.children;let t=!1;i=e.reduce((e,o)=>(o.vnodeId===r?t=!0:o.tagName!==n||t||e++,e),1)}return i}updateSelector(e){const{properties:t,tagName:n}=e,{id:r,classSelector:o}=t,i=e.ancestors[e.ancestors.length-1],s=this.countMatchingPreviousSiblings(e),a=["body","shadow-root"].includes(n)?"":`:nth-of-type(${s})`,c=r?`${CSS.escape(e.tagName)}#${CSS.escape(r)}${o}${a}`:`${CSS.escape(e.tagName)}${o}${a}`,l=[];if(i){const t=JSON.parse(JSON.stringify(i.selector));if(e.isShadow)l.push(...t,[c]);else{if(!i.isShadow&&!i.isFrame){l.push(...t);let e=l[l.length-1];Array.isArray(e)?l[l.length-1][1]+=` > ${c}`:l[l.length-1]+=` > ${c}`}i.isShadow&&(l.push(...t),l[l.length-1][1]=c),i.isFrame&&l.push(...t,c)}}else l.push(c);e.selector=l}getClassName(e){const t=e.className;return t?"string"==typeof t?t:t.baseVal:""}getClassSelector(e){const t=/^-?\d/,n=/[^A-Za-z0-9_-]/g;return(e.classList&&Array.from(e.classList)||[]).reduce((e,r)=>"-"===r||r.match(t)||r.startsWith("--")?e+`[class*="${r}"]`:e+"."+r.replace(n,e=>`\\0000${e.codePointAt(0).toString(16)}`),"")}getTabIndex(e){const{element:t,attributes:n}=e,r=t.tabIndex;if(-1!==r||n.tabindex)return r}querySelector(e,t=this.context){const n=JSON.parse(JSON.stringify(e)),r=n.shift();let o;if(Array.isArray(r))r.length>1&&n.unshift(r[1]),o=t.shadowRoot;else{const e=t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t:this.getContext(t);o=e&&e.querySelector(r)}if(o)return n.length?this.querySelector(n,o):o}async fromFlatTree(e,t){return this[Qt].dirty=!0,await this.walk(t),e.forEach(e=>{if(!this.selectOne(e.selector)){this.findOneWithVNode(e)||this[Qt].listeners.discard.forEach(t=>t(e,this))}}),this}async from(e,t){this[Qt].dirty=!0;const n=[];e.forEach(e=>{const{selector:r,vnodeId:o,element:i}=e;let s=i;if(s&&s.isConnected||(s=this.querySelector(r,t)),s){const e=this.vnode({element:s,vnodeId:o});this.set(s,e)}else n.push(e)});const r=Math.ceil(this.config.findOneTimeLimit/n.length);return n.forEach(e=>{const t=this.findOne(e,{findOneTimeLimit:r});if(t&&!this.has(t)){const n=this.vnode({element:t,vnodeId:e.vnodeId});this.set(t,n)}else this[Qt].listeners.discard.forEach(t=>t(e,this))}),await this.walk(t),this}hydrateFlatTree(e){e.forEach(e=>{const t=new Vt;let n={...e,element:t,children:[],ancestors:[]};n=new Bt({frameMessenger:this.config.frameMessenger,groot:this,node:n}),this.set(t,n)}),e.forEach(e=>{const t=this.getById(e.vnodeId);t.children.push(...e.children.map(e=>this.getById(e))),t.ancestors.push(...e.ancestors.map(e=>this.getById(e))),t.previousSibling=this.getById(e.previousSibling)})}findOneWithVNode(e,t={}){const n=t.findOneTimeLimit||this.config.findOneTimeLimit,r=Date.now(),o=e.selector?e.selector.slice(-1):[],i=Gt(e);let s=i.next().value;for(;s;){const e=this.selectAll([...o,s]);if(1===e.length)return e[0];if(Date.now()-r>n)return;s=i.next().value}}findOne(e,t={}){const n=t.findOneTimeLimit||this.config.findOneTimeLimit,r=Date.now();let o=t.context||this.getContext();if(e.selector&&e.selector.length>1&&(o=this.querySelector(Kt(e.selector)),o&&o.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&Boolean(o.tagName.match(/^(i){0,1}frame$/i))&&(o=o.contentDocument),!o))return;const i=Gt(e);let s=i.next().value;for(;s;){const e=o.querySelectorAll(s);if(1===e.length)return e[0];if(Date.now()-r>n)return;s=i.next().value}}selectAll(e,t={}){const n=Zt(e,t.isRelativeSelector);return Lt(n,this.flat,{adapter:Xt,pseudos:Jt})}selectOne(e){const t=Zt(e);return Ft(t,this.flat,{adapter:Xt,pseudos:Jt})}getId(){return this.config.id}}class tn{trees=new Map;constructor(e){this.frameMessenger=e.frameMessenger,this.init()}init(){this.frameMessenger.listen("groot:tree-builder:build-tree",async({message:e})=>{const{grootConfig:t}=e;return{tree:(await this.buildTree(t)).toJSON()}})}async buildSubTree(e,t){const{tree:n}=await this.frameMessenger.send(e,"groot:tree-builder:build-tree",{grootConfig:t}),r=new en(t);return r.hydrateFlatTree(n),r}async buildTree(e){let t=e.id?this.trees.get(e.id):null;return t?t.reset(e):(t=new en({...e,frameMessenger:this.frameMessenger,treeBuilder:this}),await t.walk(document.body),this.trees.set(t.getId(),t)),t}}var nn=n(96367),rn=n(60119),on=n(35226),sn=n.n(on),an=n(59681),cn=n.n(an),ln=["interactive","complete"],un=function(e,t){return new Promise(function(n){e&&"function"!=typeof e&&(t=e,e=null),t=t||window.document;var r=function(){return n(void(e&&setTimeout(e)))};-1!==ln.indexOf(t.readyState)?r():t.addEventListener("DOMContentLoaded",r)})};un.resume=function(e){return function(t){return un(e).then(function(){return t})}};const dn=un;var fn=n(86171);const pn=["children","previousSiblings","previousSibling","ancestors","slotAncestors","slotChildren","element","source","groot"],hn=["group","groupId","groupSelector","groupVnodeIds","define-group"];function mn(e){return Object.entries(e).filter(([e])=>!pn.includes(e)).reduce((e,[t,n])=>(e[t]=n,e),{})}function gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bn(e,t){const n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gn(Object(n),!0).forEach(function(t){yn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e),r=n.groups.findIndex(e=>e.id===t);return-1===r?e:(n.groups.splice(r,1),n.inputs.filter(e=>e.groupId===t).forEach(e=>{hn.forEach(t=>e[t]=void 0)}),n)}n.dn(bn);var vn=n(70367),wn=(n(7955),n(3958),n(50700),n(68446),n(71448),n(38555),n(56649),n(39454)),Sn=n(94800);new vn.A((0,Sn.A)(/(?:\n(?:\s*))+/g," "),wn.A);const On=new vn.A((0,Sn.A)(/(?:\n\s*)/g,""),wn.A);n(43837),n(24181),n(39811),n(8853),n(66684),n(11),n(80607);On`
|
|
3
3
|
a[href],
|
|
4
4
|
button,
|
|
5
5
|
input[type="button"],
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
summary,
|
|
10
10
|
[role="button"],
|
|
11
11
|
[role="link"]
|
|
12
|
-
`;const
|
|
12
|
+
`;const xn=On`
|
|
13
13
|
input
|
|
14
14
|
:not([type="hidden"])
|
|
15
15
|
:not([type="submit"])
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
select,
|
|
21
21
|
textarea,
|
|
22
22
|
datalist
|
|
23
|
-
`,
|
|
23
|
+
`,En=(On`
|
|
24
24
|
[role="combobox"],
|
|
25
25
|
[role="listbox"],
|
|
26
26
|
[role="option"],
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
[role="textbox"],
|
|
30
30
|
[role="slider"],
|
|
31
31
|
[role="spinbutton"]
|
|
32
|
-
`,'fieldset, [role="group"], [role="radiogroup"]');var On=n(78230),xn=n(5969),En=n.n(xn),An=n(43955),Tn=n(31146),Cn=n(33381);const In=async e=>{let t=!1;if(function(e){return e instanceof Ft}(e)&&(t=e.isCrossOrigin),!t){var n,r;if(null!==(n=e.element)&&void 0!==n&&n.isConnected)return e.element;if(null!==(r=e.selector)&&void 0!==r&&r.length)try{const t=(0,Tn.A)(e.selector);if(t)return t}catch{}}return(0,Cn.A)(e.selector)};function Nn({vnode:e,selector:t,includeHidden:n=!1,verifyTree:r=!0}){const o=e.element&&"function"==typeof e.element.matches&&e.element.matches(t);return n?o:o&&(0,On.pK)(e.element)&&On.Ay.isVisible(e.element,r)}function Pn(...e){const t=e.filter(e=>!!e.element&&!!On.Ay.isVisible(e.element)).map(Rn);return t.length?1===t.length?t[0]:t.reduce((e,t)=>{const n={};return n.y=Math.min(e.y,t.y),n.x=Math.min(e.x,t.x),n.height=Math.max(e.height,t.height),n.width=Math.max(e.width,t.width),n}):{x:0,y:0,height:0,width:0}}function jn(e){const{element:t={}}=e;if(t.nodeType!==Node.ELEMENT_NODE)return;const n=Rn(e),r=window.getComputedStyle(t),o=(parseFloat(r.paddingLeft)||0)+(parseFloat(r.paddingRight)||0),i=(parseFloat(r.paddingTop)||0)+(parseFloat(r.paddingBottom)||0),s=(parseFloat(r.borderLeftWidth)||0)+(parseFloat(r.borderRightWidth)||0),a=(parseFloat(r.borderTopWidth)||0)+(parseFloat(r.borderBottomWidth)||0);return{x:n.x+(parseFloat(r.paddingLeft)||0)+(parseFloat(r.borderLeftWidth)||0),y:n.y+(parseFloat(r.paddingTop)||0)+(parseFloat(r.borderTopWidth)||0),width:n.width-o-s,height:n.height-i-a}}function kn(e){var t,n;const{element:r={},ancestors:o=[]}=e;if(r.nodeType!==Node.ELEMENT_NODE)return{};const i=null===(t=r.ownerDocument)||void 0===t||null===(n=t.createRange)||void 0===n?void 0:n.call(t);if("function"!=typeof(null==i?void 0:i.getBoundingClientRect))return{};i.selectNodeContents(r);const s=i.getBoundingClientRect();if(!s.width&&!s.height)return{};const a=_n(s,o),c=Rn(e);if(!Mn(c))return a;const l=function(e,t){const n=Math.max(e.x,t.x),r=Math.max(e.y,t.y),o=Math.min(e.x+e.width,t.x+t.width),i=Math.min(e.y+e.height,t.y+t.height);return{x:n,y:r,width:Math.max(0,o-n),height:Math.max(0,i-r)}}(a,c);return l.width&&l.height?l:{}}function Rn(e){const{element:t={},ancestors:n=[]}=e;return t.nodeType!==Node.ELEMENT_NODE?{}:_n(t.getBoundingClientRect(),n)}function _n({top:e,left:t,height:n,width:r},o=[]){const i={top:0,left:0};o.reduce((e,t)=>{if(t.isFrame){const n=t.element.getBoundingClientRect();e.top+=n.top,e.left+=n.left}return e},i);const s=window.pageXOffset||document.documentElement.scrollLeft,a=window.pageYOffset||document.documentElement.scrollTop;return{x:t+s+i.left,y:e+a+i.top,height:n,width:r}}function Mn(e){return"object"==typeof e&&["x","y","width","height"].every(t=>"number"==typeof e[t]&&!Number.isNaN(e[t]))}function Dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dn(Object(n),!0).forEach(function(t){Fn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.dn(Pn);const Vn=['input[type="date"]','input[type="datetime-local"]','input[type="month"]','input[type="time"]','input[type="week"]'].join(", "),$n=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","area[href]","object","embed",'[tabindex="0"]',"[contenteditable]","audio[controls]","video[controls]","summary"].join(", "),Bn=["tab","menuitem","radio","menuitemradio","menuitemcheckbox","treeitem"],Hn=(e,{tree:t,flat:n},r=!1)=>n.filter(t=>t.tagName===e).map(({vnodeId:e})=>{const n=t.getById(e);return r?n:null==n?void 0:n.element}).filter(Boolean),Wn=(e,t,n=!1)=>(n?e.ancestors:e.ancestors.reverse()).find(e=>t.includes(On.Ay.getRole(e.element))),Un=(e,t)=>{if(!Bn.includes(t))return[];let n;switch(t){case"tab":n=Wn(e,["tablist"]);break;case"treeitem":n=Wn(e,["tree"],!0);break;case"radio":n=Wn(e,["radiogroup","group"]);break;case"menuitem":case"menuitemradio":case"menuitemcheckbox":n=Wn(e,["menu","menubar"],!0)}if(!n)return[];let r=[...n.children],o=[];for(;r.length;){const e=r.shift();Bn.includes(On.Ay.getRole(e.element))&&o.push(e.vnodeId),r=[...r,...e.children||[]]}return o},zn=e=>{const t=e.name;if(!t)return!0;const n=[...e.ownerDocument.querySelectorAll(`[name="${CSS.escape(t)}"]`)],r=n.find(e=>e.checked);return r?r===e:n[0]===e},qn=e=>`[role="${e}"]`,Gn=Bn.map(qn).join(", "),Yn=(e,t,n)=>{if(!Nn({vnode:e,selector:Gn}))return!1;const r=(o=On.Ay.getRole(e.element),On.Ay.getRequiredContext(o).map(qn).join(", "));var o;if(!r.length)return!1;const i=t.find(e=>Nn({vnode:e,selector:r}));return!!i&&n.find(e=>{var t;return i.element.contains(e)||(null===(t=i.contains)||void 0===t?void 0:t.call(i,e))})},Kn=({tree:e,flat:t},n=!1)=>Hn("iframe",{tree:e,flat:t},n).map(e=>{if(n)return e.children[0];let t;try{var r;t=null===(r=e.contentWindow)||void 0===r?void 0:r.document}catch{return null}return t}).filter(Boolean),Xn=({tree:e,flat:t},n=!1)=>Hn("shadow-root",{tree:e,flat:t},n),Jn=({tree:e,flat:t})=>Hn("form",{tree:e,flat:t}),Zn=(e,t)=>[...e].map(e=>fn(t.get(e)||{})),Qn=({tabStops:e,submittedForms:t,launchedWindowOnFocus:n,cacheTree:r})=>{e.forEach((e,t)=>{e.launchedWindowOnFocus=n.has(t)});const o=[...e.values()],i=((e,t)=>{const n=e=>"area"===e.element.nodeName.toLowerCase(),r=[];(0,On.rJ)(document.documentElement,!0);for(const o of t){const{ancestors:t=[]}=o;!Nn({vnode:o,selector:$n,verifyTree:n(o)})||!On.Ay.isFocusable(o.element)||[...e.values()].find(e=>e.vnodeId===o.vnodeId)||!zn(o.element)||t.find(e=>!!Nn({vnode:e,selector:Gn,verifyTree:n(e)}))||Nn({vnode:o,selector:'[role="radio"]',verifyTree:!1})||Yn(o,t,[...e.keys()])||r.push(fn(o))}return r})(e,r.values());return{skipped:i,tabStops:o,submittedForms:Zn(t,r),launchedWindowOnFocus:Zn(n,r)}};function er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?er(Object(n),!0).forEach(function(t){nr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rr=e=>tr(tr({},e),{},{textContent:e.element.textContent});function or(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ir(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?or(Object(n),!0).forEach(function(t){sr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):or(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class ar{constructor(e,t,n){sr(this,"initHighlighter",async()=>{this.highlighter||await(0,An.A)().then(e=>{this.highlighter=e,[...this.selections].map(t=>{const{element:n,selector:r}=this.tree.getById(t);if(n){e.createHighlighter(n,r).highlight({theme:"selection",showMetadata:!1})}})})});const r=on()(t,"metadata.selections",[]);this.selections=new Set(r.reduce((t,n)=>{const r=e.getById(n.vnodeId);return r&&(r.element||r.selector)&&t.push(n.vnodeId),t},[])),this.hovered=null,this.hoveredHighlighter=null,this.enabled=!1,this.tree=e,this.onMouseOver=this.onMouseOver.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onClick=this.onClick.bind(this),this.eventTargets=[],this.includeCrossOrigin=n}async enable(e,t=!0){this.manifest=e,t&&await this.disable(),this.enabled=!0;const n={tree:this.tree,flat:this.tree.flat};this.eventTargets=[this.includeCrossOrigin?this.tree.get(document.body):document.body,...Kn(n,this.includeCrossOrigin),...Xn(n,this.includeCrossOrigin)],await Promise.all(this.eventTargets.map(async e=>{const t={capture:!0},n=ir(ir({},t),{},{preventDefault:!0,stopPropagation:!0});if(this.includeCrossOrigin)return Promise.all([e.addEventListener("mousedown",this.onMouseDown,n),e.addEventListener("mouseover",this.onMouseOver,t),e.addEventListener("click",this.onClick,n)]);e.addEventListener("mousedown",this.onMouseDown,t),e.addEventListener("mouseover",this.onMouseOver,t),e.addEventListener("click",this.onClick,t)}))}async disable(){this.enabled=!1,await Promise.all(this.eventTargets.map(async e=>{if(this.includeCrossOrigin)return Promise.all([e.removeEventListener("mousedown",this.onMouseDown),e.removeEventListener("mouseover",this.onMouseOver),e.removeEventListener("click",this.onClick)]);e.removeEventListener("mousedown",this.onMouseDown,{capture:!0}),e.removeEventListener("mouseover",this.onMouseOver,{capture:!0}),e.removeEventListener("click",this.onClick,{capture:!0})}))}async update(e,t){const n=this.enabled;await this.disable(),this.includeCrossOrigin=t,this.tree=e,!0===n&&await this.enable(this.manifest,!1)}cleanUp(){var e;null===(e=this.hoveredHighlighter)||void 0===e||e.destroy(),this.hoveredHighlighter=null,this.hovered&&(this.hovered=null)}onClick(e){this.includeCrossOrigin||(e.preventDefault(),e.stopPropagation()),this.toBeSelected&&(this.makeSelection(ir(ir({},this.toBeSelected),{},{isMouseSelection:!0})),this.toBeSelected=null)}async hover(e){if(this.cleanUp(),!e||this.hovered===e||this.selections.has(e.vnodeId))return;const{createHighlighter:t,highlighterExists:n}=this.highlighter||{},r=await In(e);if(n(r))return;this.cleanUp();const o=null==t?void 0:t(r,e.selector);o.highlight({theme:"selection",showMetadata:!1}),this.hovered=e,this.hoveredHighlighter=o}async onMouseOver(e){var t;const n=this.includeCrossOrigin?e.target:(null===(t=e.originalEvent)||void 0===t?void 0:t.target)||e.target,r=this.includeCrossOrigin?n:this.tree.get(n);await this.hover(r)}async removeAllSelections(){this.selections.clear(),(0,An.A)().then(e=>e.clearHighlights())}removeSelection(e){const t=this.tree.getById(e);if(!t)return;const{element:n}=t;(0,An.A)().then(({highlighters:e})=>{var t;null===(t=e.get(n))||void 0===t||t.destroy()}),this.selections.delete(e),Qt.yS.send(Qt._O.devtools,"guide:scope-removal"),Qt.yS.send(Qt._O.devtools,"selection:remove",{vnodeId:e})}addSelection(e){const{vnodeId:t,selector:n}=e;(0,An.A)().then(async({createHighlighter:t})=>{t(await In(e),n).highlight({theme:"selected",showMetadata:!1})}),this.selections.add(t),this.hoveredHighlighter=null;const r=fn(function(e){const t=(t,n)=>{try{return En()(r,n)}catch{return On.Ay.getSelector(e.element)}},n=(e.ancestors||[]).reduce((e,n)=>{const{element:r,isFrame:o,isShadowHost:i}=n,s={root:r.getRootNode()};if(o||i){const n=e[e.length-1],o=Array.isArray(n)?n:e,a=t(r,s);o.push(a),i&&o.push(["shadow-root"])}return e},[]),{element:r}=e,o={root:r.getRootNode()},i=t(r,o),s=n[n.length-1];return(Array.isArray(s)?s:n).push(i),e.fallbackSelector=n,e}(e));return this.manifest&&this.manifest.id&&!this.manifest.rescope||Qt.yS.send(Qt._O.devtools,"guide:scope-selection",{value:r}),Qt.yS.send(Qt._O.devtools,"selection:add",r),!0}onMouseDown(e){if(!this.enabled)return;this.includeCrossOrigin||(e.preventDefault(),e.stopPropagation());const t=this.includeCrossOrigin?e.composedTarget||e.target:e.composedPath()[0]||e.target,n=this.includeCrossOrigin?t:this.tree.get(t);this.selections.has(n.vnodeId)||(this.toBeSelected=n)}inGroupCheck({vnodeId:e}){const{groups:t=[],inputs:n=[]}=this.manifest||{},r=t.find(t=>t.vnodeIds.includes(e));if(!r)return!1;return n.find(e=>e.groupId===r.id&&e["group-name"])?(Qt.yS.send(Qt._O.devtools,"guide:show-warning",{value:"warning"}),!0):(this.manifest=mn(this.manifest,r.id),Qt.yS.send(Qt._O.devtools,"guide:destroy-group",{value:r.id}))}makeSelection({vnodeId:e,isMouseSelection:t=!1}){var n;const r=this.tree.getById(e),o=this.tree.getById(null===(n=this.hovered)||void 0===n?void 0:n.vnodeId);if(t&&o!==r||this.inGroupCheck(r)||!this.addSelection(r))return;const i="guide:mouse-selection",s=ir(ir({},fn(rr(r))),{},{source:On.Ay.getSource(null==r?void 0:r.element),noInputs:this.hasInputs(r),isMouseSelection:t});Qt.yS.send(Qt._O.devtools,i,{value:s}),Qt.yS.send(Qt._O.devtools,"mouse-selection",{type:i,value:s}),this.hovered=null}hasInputs({vnodeId:e}){On.Ay.setupTrees();const t=this.tree.getById(e),n=({element:e,children:t})=>!("function"!=typeof e.matches||!e.matches(wn)||!On.Ay.isVisible(e,!0))||t.some(n);return On.Ay.cleanupTrees(),!n(t)}}var cr=n(73258),lr=n.n(cr);n.dn(dr);const ur=(e,t)=>t?ur(t,e%t):e;function dr(){const{browser:e,os:t}=lr()(window.navigator.userAgent),{width:n,height:r}=window.screen,o=ur(n,r);return{browser:`${e.fullName} ${e.version}`,os:t.fullName,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight,aspectRatio:`${n/o}:${r/o}`,axeVersion:(0,On.rJ)().version,devicePixelRatio:window.devicePixelRatio}}var fr=n(83032);function pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const mr=e=>{const t=fr.A.sanitize(e&&On.Ay.name(e)||"").trim();return t.length<=500?t:`${t.substring(0,500).trim()}...`};function gr(e,t={},n="accessibleText"){const{vnodeId:r,properties:o,attributes:i,tagName:s,selector:a,element:c,source:l}=e;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pr(Object(n),!0).forEach(function(t){hr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({vnodeId:r,properties:o,attributes:i,tagName:s,selector:a,source:l,[n]:mr(c)},t)}function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function br(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yr(Object(n),!0).forEach(function(t){vr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let wr;const Sr=e=>{wr=({message:t})=>{const{vnodeId:n}=t;return((e,t)=>(On.Ay.setupTrees(),Array.from(e.values()).filter(e=>e.ancestors.map(e=>e.vnodeId).includes(t)).map(e=>br(br({},gr(e)),{},{box:Pn(e)}))||[]))(e(),n)},Qt.yS.listen("forms:get-descendant-elements",wr)},Or=e=>{e.preventDefault();const t=new e.constructor(e.type,e);t.originalEvent=e,e.target.ownerDocument.defaultView.top.document.body.dispatchEvent(t)},xr=e=>{if("body"===e.tagName&&e.element.ownerDocument.defaultView!==window.top){const t=e.element;t.removeEventListener("mouseover",Or,!0),t.removeEventListener("click",Or,!0),t.addEventListener("mouseover",Or,!0),t.addEventListener("click",Or,!0)}};function Er(e){const{element:t}=e;if(t&&1!==t.nodeType)return e;const n=(e.ancestors||[]).reduce(Ar,{fallback:[],root:null});try{n.root||(n.root=t.getRootNode());const r=En()(t,n),o=n.fallback[n.fallback.length-1];(Array.isArray(o)?o:n.fallback).push(r),e.fallbackSelector=n.fallback}catch{}return e}function Ar(e,t){try{const{element:n,isShadowHost:r}=t;if(!t.fallbackSelector){e.root=e.root||n.getRootNode();const o=En()(n,e);if(o.startsWith("#")&&n.getRootNode()===document){const n=[o];return r&&n.push(["shadow-root"]),t.fallbackSelector=n,e.fallback=Tr(n),e.root=t.element,e}const i=e.fallback[e.fallback.length-1],s=Array.isArray(i)?i:e.fallback;return s.push(o),r&&s.push(["shadow-root"]),t.fallbackSelector=e.fallback,e.fallback=Tr(t.fallbackSelector),e.root=t.element,e}return e.fallback=Tr(t.fallbackSelector),e.root=t.element,e}catch{return e}}function Tr(e){return JSON.parse(JSON.stringify(e))}function Cr(e){const t=e.getAttribute("aria-describedby");return t?t.split(/\s+/).filter(e=>!!document.getElementById(e)).map(e=>document.getElementById(e).innerText).join(" ").trim():""}var Ir=n(76058);function Nr(e,t,n){const r=[];for(const o of e){!("function"!=typeof o.element.matches)&&t(o)&&(0,On.pK)(o.element)&&On.Ay.isVisible(o.element,!On.Ay.isAxeSetUp(o.element))&&(!n||On.Ay.isSRVisible(o.element))&&(o.source=On.Ay.getSource(o.element),r.push(o))}return r}const Pr=["input","select","textarea","button"];function jr(e){const{element:t,ancestors:n,tagName:r}=e,o=[],i="function"==typeof t.matches,s=null==n?void 0:n.find(e=>{var t,n;return Pr.includes(r)&&"fieldset"===e.tagName&&("true"===(null===(t=e.attributes)||void 0===t?void 0:t["aria-disabled"])||(null===(n=e.properties)||void 0===n?void 0:n.disabled))});(i&&t.matches(":disabled")||"true"===t.getAttribute("aria-disabled")||s)&&o.push("disabled");const a=t.getAttribute("aria-pressed"),c=t.getAttribute("aria-expanded"),l=t.getAttribute("aria-selected"),u=t.getAttribute("aria-checked"),d=t.getAttribute("aria-readonly"),f=t.getAttribute("aria-haspopup"),p=t instanceof HTMLInputElement,h=p&&"checkbox"===t.type,m=p&&"radio"===t.type,g=t.getAttribute("aria-current");return"true"===a&&o.push("pressed"),"false"===a&&o.push("not-pressed"),"mixed"===a&&o.push("mixed-pressed"),"true"===c&&o.push("expanded"),"false"===c&&o.push("collapsed"),"true"===l&&o.push("selected"),"false"===l&&o.push("not-selected"),("true"===u||p&&t.checked)&&o.push("checked"),("false"===u||m&&!t.checked)&&o.push("not-checked"),("false"===u||h&&!t.checked)&&o.push("not-checked"),("mixed"===u||h&&t.indeterminate)&&o.push("mixed-checked"),("true"===d||p&&t.readOnly)&&o.push("readonly"),"true"===g&&o.push("current"),"page"===g&&o.push("current-page"),"step"===g&&o.push("current-step"),"location"===g&&o.push("current-location"),"date"===g&&o.push("current-date"),"time"===g&&o.push("current-time"),"true"===f&&o.push("has-popup"),"listbox"===f&&o.push("has-popup-listbox"),"menu"===f&&o.push("has-popup-menu"),"dialog"===f&&o.push("has-popup-dialog"),"tree"===f&&o.push("has-popup-tree"),"grid"===f&&o.push("has-popup-grid"),f||"combobox"!==t.getAttribute("role")||o.push("has-popup-listbox"),o}var kr=n(72450),Rr=n.n(kr);function _r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Mr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Dr=(...e)=>t=>e.some(e=>e(t)),Lr=e=>{const t=e.reduce((e,t)=>{const n=t.role||"none";return e[n]=e[n]||{role:n,vnodeIds:[]},e[n].vnodeIds.push(t.vnodeId),e},{});return Object.entries(t).map(([e,t])=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_r(Object(n),!0).forEach(function(t){Mr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({id:e},t))},Fr=["useTextBox"];function Vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vr(Object(n),!0).forEach(function(t){Br(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Br(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Hr=(e,t={})=>{const{useTextBox:n=!1}=t,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,Fr),o=n?kn(e):null,i=n&&Mn(o),s=i?o:Pn(e,...e.children||[]);return $r($r({},gr(e,{},"accName")),{},{role:On.Ay.getRole(e.element),box:Mn(s)?s:void 0,tightBox:i?o:jn(e),states:jr(e)},r)};const Wr=e=>{const{children:t}=e,n=[];if(!t||0===t.length)return n;n.push(...t);for(const e of t)n.push(...Wr(e));return n},Ur=Wr;function zr(e,t,{screenshotWidthPx:n,screenshotHeightPx:r,zoom:o}){if(!e||!e.isConnected)return"unmeasurable";const i=e.getBoundingClientRect();if(0===i.width||0===i.height)return t&&t.width>0&&t.height>0?"stable":"unmeasurable";const s=i.top,a=i.left,c=i.right,l=i.bottom,u=i.width,d=i.height,f=o>0?o:1,p=r>0?r:16384,h=n>0?n:document.documentElement.scrollWidth*f;if(s<0||a<0||l*f>p||c*f>h)return"unstable_out_of_bounds";for(let t=e.parentElement;t&&t!==document.documentElement;t=t.parentElement){const e=getComputedStyle(t),n="hidden"===e.overflowX||"clip"===e.overflowX||"auto"===e.overflowX||"scroll"===e.overflowX,r="hidden"===e.overflowY||"clip"===e.overflowY||"auto"===e.overflowY||"scroll"===e.overflowY;if(!n&&!r)continue;const o=t.getBoundingClientRect(),i=n&&(c>o.right+1||a<o.left-1),u=r&&(l>o.bottom+1||s<o.top-1);if(i||u)return"unstable_clipped"}if(!t)return"unmeasurable";return Math.max(Math.abs(a-t.left),Math.abs(s-t.top),Math.abs(u-t.width),Math.abs(d-t.height))>200?"unstable_moved":"stable"}function qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(n),!0).forEach(function(t){Yr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Kr=nn()("walnut-chrome:content:interactive-elements"),Xr=vn`
|
|
32
|
+
`,'fieldset, [role="group"], [role="radiogroup"]');var An=n(78230),Tn=n(5969),Cn=n.n(Tn),In=n(43955),Nn=n(31146),Pn=n(33381);const jn=async e=>{let t=!1;if(function(e){return e instanceof Bt}(e)&&(t=e.isCrossOrigin),!t){var n,r;if(null!==(n=e.element)&&void 0!==n&&n.isConnected)return e.element;if(null!==(r=e.selector)&&void 0!==r&&r.length)try{const t=(0,Nn.A)(e.selector);if(t)return t}catch{}}return(0,Pn.A)(e.selector)};function kn({vnode:e,selector:t,includeHidden:n=!1,verifyTree:r=!0}){const o=e.element&&"function"==typeof e.element.matches&&e.element.matches(t);return n?o:o&&(0,An.pK)(e.element)&&An.Ay.isVisible(e.element,r)}function Rn(...e){const t=e.filter(e=>!!e.element&&!!An.Ay.isVisible(e.element)).map(Dn);return t.length?1===t.length?t[0]:t.reduce((e,t)=>{const n={};return n.y=Math.min(e.y,t.y),n.x=Math.min(e.x,t.x),n.height=Math.max(e.height,t.height),n.width=Math.max(e.width,t.width),n}):{x:0,y:0,height:0,width:0}}function _n(e){const{element:t={}}=e;if(t.nodeType!==Node.ELEMENT_NODE)return;const n=Dn(e),r=window.getComputedStyle(t),o=(parseFloat(r.paddingLeft)||0)+(parseFloat(r.paddingRight)||0),i=(parseFloat(r.paddingTop)||0)+(parseFloat(r.paddingBottom)||0),s=(parseFloat(r.borderLeftWidth)||0)+(parseFloat(r.borderRightWidth)||0),a=(parseFloat(r.borderTopWidth)||0)+(parseFloat(r.borderBottomWidth)||0);return{x:n.x+(parseFloat(r.paddingLeft)||0)+(parseFloat(r.borderLeftWidth)||0),y:n.y+(parseFloat(r.paddingTop)||0)+(parseFloat(r.borderTopWidth)||0),width:n.width-o-s,height:n.height-i-a}}function Mn(e){var t,n;const{element:r={},ancestors:o=[]}=e;if(r.nodeType!==Node.ELEMENT_NODE)return{};const i=null===(t=r.ownerDocument)||void 0===t||null===(n=t.createRange)||void 0===n?void 0:n.call(t);if("function"!=typeof(null==i?void 0:i.getBoundingClientRect))return{};i.selectNodeContents(r);const s=i.getBoundingClientRect();if(!s.width&&!s.height)return{};const a=Ln(s,o),c=Dn(e);if(!Fn(c))return a;const l=function(e,t){const n=Math.max(e.x,t.x),r=Math.max(e.y,t.y),o=Math.min(e.x+e.width,t.x+t.width),i=Math.min(e.y+e.height,t.y+t.height);return{x:n,y:r,width:Math.max(0,o-n),height:Math.max(0,i-r)}}(a,c);return l.width&&l.height?l:{}}function Dn(e){const{element:t={},ancestors:n=[]}=e;return t.nodeType!==Node.ELEMENT_NODE?{}:Ln(t.getBoundingClientRect(),n)}function Ln({top:e,left:t,height:n,width:r},o=[]){const i={top:0,left:0};o.reduce((e,t)=>{if(t.isFrame){const n=t.element.getBoundingClientRect();e.top+=n.top,e.left+=n.left}return e},i);const s=window.pageXOffset||document.documentElement.scrollLeft,a=window.pageYOffset||document.documentElement.scrollTop;return{x:t+s+i.left,y:e+a+i.top,height:n,width:r}}function Fn(e){return"object"==typeof e&&["x","y","width","height"].every(t=>"number"==typeof e[t]&&!Number.isNaN(e[t]))}function Vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vn(Object(n),!0).forEach(function(t){Bn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.dn(Rn);const Hn=['input[type="date"]','input[type="datetime-local"]','input[type="month"]','input[type="time"]','input[type="week"]'].join(", "),Wn=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","area[href]","object","embed",'[tabindex="0"]',"[contenteditable]","audio[controls]","video[controls]","summary"].join(", "),Un=["tab","menuitem","radio","menuitemradio","menuitemcheckbox","treeitem"],zn=(e,{tree:t,flat:n},r=!1)=>n.filter(t=>t.tagName===e).map(({vnodeId:e})=>{const n=t.getById(e);return r?n:null==n?void 0:n.element}).filter(Boolean),qn=(e,t,n=!1)=>(n?e.ancestors:e.ancestors.reverse()).find(e=>t.includes(An.Ay.getRole(e.element))),Gn=(e,t)=>{if(!Un.includes(t))return[];let n;switch(t){case"tab":n=qn(e,["tablist"]);break;case"treeitem":n=qn(e,["tree"],!0);break;case"radio":n=qn(e,["radiogroup","group"]);break;case"menuitem":case"menuitemradio":case"menuitemcheckbox":n=qn(e,["menu","menubar"],!0)}if(!n)return[];let r=[...n.children],o=[];for(;r.length;){const e=r.shift();Un.includes(An.Ay.getRole(e.element))&&o.push(e.vnodeId),r=[...r,...e.children||[]]}return o},Yn=e=>{const t=e.name;if(!t)return!0;const n=[...e.ownerDocument.querySelectorAll(`[name="${CSS.escape(t)}"]`)],r=n.find(e=>e.checked);return r?r===e:n[0]===e},Kn=e=>`[role="${e}"]`,Xn=Un.map(Kn).join(", "),Jn=(e,t,n)=>{if(!kn({vnode:e,selector:Xn}))return!1;const r=(o=An.Ay.getRole(e.element),An.Ay.getRequiredContext(o).map(Kn).join(", "));var o;if(!r.length)return!1;const i=t.find(e=>kn({vnode:e,selector:r}));return!!i&&n.find(e=>{var t;return i.element.contains(e)||(null===(t=i.contains)||void 0===t?void 0:t.call(i,e))})},Zn=({tree:e,flat:t},n=!1)=>zn("iframe",{tree:e,flat:t},n).map(e=>{if(n)return e.children[0];let t;try{var r;t=null===(r=e.contentWindow)||void 0===r?void 0:r.document}catch{return null}return t}).filter(Boolean),Qn=({tree:e,flat:t},n=!1)=>zn("shadow-root",{tree:e,flat:t},n),er=({tree:e,flat:t})=>zn("form",{tree:e,flat:t}),tr=(e,t)=>[...e].map(e=>mn(t.get(e)||{})),nr=({tabStops:e,submittedForms:t,launchedWindowOnFocus:n,cacheTree:r})=>{e.forEach((e,t)=>{e.launchedWindowOnFocus=n.has(t)});const o=[...e.values()],i=((e,t)=>{const n=e=>"area"===e.element.nodeName.toLowerCase(),r=[];(0,An.rJ)(document.documentElement,!0);for(const o of t){const{ancestors:t=[]}=o;!kn({vnode:o,selector:Wn,verifyTree:n(o)})||!An.Ay.isFocusable(o.element)||[...e.values()].find(e=>e.vnodeId===o.vnodeId)||!Yn(o.element)||t.find(e=>!!kn({vnode:e,selector:Xn,verifyTree:n(e)}))||kn({vnode:o,selector:'[role="radio"]',verifyTree:!1})||Jn(o,t,[...e.keys()])||r.push(mn(o))}return r})(e,r.values());return{skipped:i,tabStops:o,submittedForms:tr(t,r),launchedWindowOnFocus:tr(n,r)}};function rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rr(Object(n),!0).forEach(function(t){ir(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ir(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const sr=e=>or(or({},e),{},{textContent:e.element.textContent});function ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ar(Object(n),!0).forEach(function(t){lr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class ur{constructor(e,t,n){lr(this,"initHighlighter",async()=>{this.highlighter||await(0,In.A)().then(e=>{this.highlighter=e,[...this.selections].map(t=>{const{element:n,selector:r}=this.tree.getById(t);if(n){e.createHighlighter(n,r).highlight({theme:"selection",showMetadata:!1})}})})});const r=cn()(t,"metadata.selections",[]);this.selections=new Set(r.reduce((t,n)=>{const r=e.getById(n.vnodeId);return r&&(r.element||r.selector)&&t.push(n.vnodeId),t},[])),this.hovered=null,this.hoveredHighlighter=null,this.enabled=!1,this.tree=e,this.onMouseOver=this.onMouseOver.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onClick=this.onClick.bind(this),this.eventTargets=[],this.includeCrossOrigin=n}async enable(e,t=!0){this.manifest=e,t&&await this.disable(),this.enabled=!0;const n={tree:this.tree,flat:this.tree.flat};this.eventTargets=[this.includeCrossOrigin?this.tree.get(document.body):document.body,...Zn(n,this.includeCrossOrigin),...Qn(n,this.includeCrossOrigin)],await Promise.all(this.eventTargets.map(async e=>{const t={capture:!0},n=cr(cr({},t),{},{preventDefault:!0,stopPropagation:!0});if(this.includeCrossOrigin)return Promise.all([e.addEventListener("mousedown",this.onMouseDown,n),e.addEventListener("mouseover",this.onMouseOver,t),e.addEventListener("click",this.onClick,n)]);e.addEventListener("mousedown",this.onMouseDown,t),e.addEventListener("mouseover",this.onMouseOver,t),e.addEventListener("click",this.onClick,t)}))}async disable(){this.enabled=!1,await Promise.all(this.eventTargets.map(async e=>{if(this.includeCrossOrigin)return Promise.all([e.removeEventListener("mousedown",this.onMouseDown),e.removeEventListener("mouseover",this.onMouseOver),e.removeEventListener("click",this.onClick)]);e.removeEventListener("mousedown",this.onMouseDown,{capture:!0}),e.removeEventListener("mouseover",this.onMouseOver,{capture:!0}),e.removeEventListener("click",this.onClick,{capture:!0})}))}async update(e,t){const n=this.enabled;await this.disable(),this.includeCrossOrigin=t,this.tree=e,!0===n&&await this.enable(this.manifest,!1)}cleanUp(){var e;null===(e=this.hoveredHighlighter)||void 0===e||e.destroy(),this.hoveredHighlighter=null,this.hovered&&(this.hovered=null)}onClick(e){this.includeCrossOrigin||(e.preventDefault(),e.stopPropagation()),this.toBeSelected&&(this.makeSelection(cr(cr({},this.toBeSelected),{},{isMouseSelection:!0})),this.toBeSelected=null)}async hover(e){if(this.cleanUp(),!e||this.hovered===e||this.selections.has(e.vnodeId))return;const{createHighlighter:t,highlighterExists:n}=this.highlighter||{},r=await jn(e);if(n(r))return;this.cleanUp();const o=null==t?void 0:t(r,e.selector);o.highlight({theme:"selection",showMetadata:!1}),this.hovered=e,this.hoveredHighlighter=o}async onMouseOver(e){var t;const n=this.includeCrossOrigin?e.target:(null===(t=e.originalEvent)||void 0===t?void 0:t.target)||e.target,r=this.includeCrossOrigin?n:this.tree.get(n);await this.hover(r)}async removeAllSelections(){this.selections.clear(),(0,In.A)().then(e=>e.clearHighlights())}removeSelection(e){const t=this.tree.getById(e);if(!t)return;const{element:n}=t;(0,In.A)().then(({highlighters:e})=>{var t;null===(t=e.get(n))||void 0===t||t.destroy()}),this.selections.delete(e),nn.yS.send(nn._O.devtools,"guide:scope-removal"),nn.yS.send(nn._O.devtools,"selection:remove",{vnodeId:e})}addSelection(e){const{vnodeId:t,selector:n}=e;(0,In.A)().then(async({createHighlighter:t})=>{t(await jn(e),n).highlight({theme:"selected",showMetadata:!1})}),this.selections.add(t),this.hoveredHighlighter=null;const r=mn(function(e){const t=(t,n)=>{try{return Cn()(r,n)}catch{return An.Ay.getSelector(e.element)}},n=(e.ancestors||[]).reduce((e,n)=>{const{element:r,isFrame:o,isShadowHost:i}=n,s={root:r.getRootNode()};if(o||i){const n=e[e.length-1],o=Array.isArray(n)?n:e,a=t(r,s);o.push(a),i&&o.push(["shadow-root"])}return e},[]),{element:r}=e,o={root:r.getRootNode()},i=t(r,o),s=n[n.length-1];return(Array.isArray(s)?s:n).push(i),e.fallbackSelector=n,e}(e));return this.manifest&&this.manifest.id&&!this.manifest.rescope||nn.yS.send(nn._O.devtools,"guide:scope-selection",{value:r}),nn.yS.send(nn._O.devtools,"selection:add",r),!0}onMouseDown(e){if(!this.enabled)return;this.includeCrossOrigin||(e.preventDefault(),e.stopPropagation());const t=this.includeCrossOrigin?e.composedTarget||e.target:e.composedPath()[0]||e.target,n=this.includeCrossOrigin?t:this.tree.get(t);this.selections.has(n.vnodeId)||(this.toBeSelected=n)}inGroupCheck({vnodeId:e}){const{groups:t=[],inputs:n=[]}=this.manifest||{},r=t.find(t=>t.vnodeIds.includes(e));if(!r)return!1;return n.find(e=>e.groupId===r.id&&e["group-name"])?(nn.yS.send(nn._O.devtools,"guide:show-warning",{value:"warning"}),!0):(this.manifest=bn(this.manifest,r.id),nn.yS.send(nn._O.devtools,"guide:destroy-group",{value:r.id}))}makeSelection({vnodeId:e,isMouseSelection:t=!1}){var n;const r=this.tree.getById(e),o=this.tree.getById(null===(n=this.hovered)||void 0===n?void 0:n.vnodeId);if(t&&o!==r||this.inGroupCheck(r)||!this.addSelection(r))return;const i="guide:mouse-selection",s=cr(cr({},mn(sr(r))),{},{source:An.Ay.getSource(null==r?void 0:r.element),noInputs:this.hasInputs(r),isMouseSelection:t});nn.yS.send(nn._O.devtools,i,{value:s}),nn.yS.send(nn._O.devtools,"mouse-selection",{type:i,value:s}),this.hovered=null}hasInputs({vnodeId:e}){An.Ay.setupTrees();const t=this.tree.getById(e),n=({element:e,children:t})=>!("function"!=typeof e.matches||!e.matches(xn)||!An.Ay.isVisible(e,!0))||t.some(n);return An.Ay.cleanupTrees(),!n(t)}}var dr=n(73258),fr=n.n(dr);n.dn(hr);const pr=(e,t)=>t?pr(t,e%t):e;function hr(){const{browser:e,os:t}=fr()(window.navigator.userAgent),{width:n,height:r}=window.screen,o=pr(n,r);return{browser:`${e.fullName} ${e.version}`,os:t.fullName,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight,aspectRatio:`${n/o}:${r/o}`,axeVersion:(0,An.rJ)().version,devicePixelRatio:window.devicePixelRatio}}var mr=n(83032);function gr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const br=e=>{const t=mr.A.sanitize(e&&An.Ay.name(e)||"").trim();return t.length<=500?t:`${t.substring(0,500).trim()}...`};function vr(e,t={},n="accessibleText"){const{vnodeId:r,properties:o,attributes:i,tagName:s,selector:a,element:c,source:l}=e;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gr(Object(n),!0).forEach(function(t){yr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({vnodeId:r,properties:o,attributes:i,tagName:s,selector:a,source:l,[n]:br(c)},t)}function wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wr(Object(n),!0).forEach(function(t){Or(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Or(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let xr;const Er=e=>{xr=({message:t})=>{const{vnodeId:n}=t;return((e,t)=>(An.Ay.setupTrees(),Array.from(e.values()).filter(e=>e.ancestors.map(e=>e.vnodeId).includes(t)).map(e=>Sr(Sr({},vr(e)),{},{box:Rn(e)}))||[]))(e(),n)},nn.yS.listen("forms:get-descendant-elements",xr)},Ar=e=>{e.preventDefault();const t=new e.constructor(e.type,e);t.originalEvent=e,e.target.ownerDocument.defaultView.top.document.body.dispatchEvent(t)},Tr=e=>{if("body"===e.tagName&&e.element.ownerDocument.defaultView!==window.top){const t=e.element;t.removeEventListener("mouseover",Ar,!0),t.removeEventListener("click",Ar,!0),t.addEventListener("mouseover",Ar,!0),t.addEventListener("click",Ar,!0)}};function Cr(e){const{element:t}=e;if(t&&1!==t.nodeType)return e;const n=(e.ancestors||[]).reduce(Ir,{fallback:[],root:null});try{n.root||(n.root=t.getRootNode());const r=Cn()(t,n),o=n.fallback[n.fallback.length-1];(Array.isArray(o)?o:n.fallback).push(r),e.fallbackSelector=n.fallback}catch{}return e}function Ir(e,t){try{const{element:n,isShadowHost:r}=t;if(!t.fallbackSelector){e.root=e.root||n.getRootNode();const o=Cn()(n,e);if(o.startsWith("#")&&n.getRootNode()===document){const n=[o];return r&&n.push(["shadow-root"]),t.fallbackSelector=n,e.fallback=Nr(n),e.root=t.element,e}const i=e.fallback[e.fallback.length-1],s=Array.isArray(i)?i:e.fallback;return s.push(o),r&&s.push(["shadow-root"]),t.fallbackSelector=e.fallback,e.fallback=Nr(t.fallbackSelector),e.root=t.element,e}return e.fallback=Nr(t.fallbackSelector),e.root=t.element,e}catch{return e}}function Nr(e){return JSON.parse(JSON.stringify(e))}function Pr(e){const t=e.getAttribute("aria-describedby");return t?t.split(/\s+/).filter(e=>!!document.getElementById(e)).map(e=>document.getElementById(e).innerText).join(" ").trim():""}var jr=n(76058);function kr(e,t,n){const r=[];for(const o of e){!("function"!=typeof o.element.matches)&&t(o)&&(0,An.pK)(o.element)&&An.Ay.isVisible(o.element,!An.Ay.isAxeSetUp(o.element))&&(!n||An.Ay.isSRVisible(o.element))&&(o.source=An.Ay.getSource(o.element),r.push(o))}return r}const Rr=["input","select","textarea","button"];function _r(e){const{element:t,ancestors:n,tagName:r}=e,o=[],i="function"==typeof t.matches,s=null==n?void 0:n.find(e=>{var t,n;return Rr.includes(r)&&"fieldset"===e.tagName&&("true"===(null===(t=e.attributes)||void 0===t?void 0:t["aria-disabled"])||(null===(n=e.properties)||void 0===n?void 0:n.disabled))});(i&&t.matches(":disabled")||"true"===t.getAttribute("aria-disabled")||s)&&o.push("disabled");const a=t.getAttribute("aria-pressed"),c=t.getAttribute("aria-expanded"),l=t.getAttribute("aria-selected"),u=t.getAttribute("aria-checked"),d=t.getAttribute("aria-readonly"),f=t.getAttribute("aria-haspopup"),p=t instanceof HTMLInputElement,h=p&&"checkbox"===t.type,m=p&&"radio"===t.type,g=t.getAttribute("aria-current");return"true"===a&&o.push("pressed"),"false"===a&&o.push("not-pressed"),"mixed"===a&&o.push("mixed-pressed"),"true"===c&&o.push("expanded"),"false"===c&&o.push("collapsed"),"true"===l&&o.push("selected"),"false"===l&&o.push("not-selected"),("true"===u||p&&t.checked)&&o.push("checked"),("false"===u||m&&!t.checked)&&o.push("not-checked"),("false"===u||h&&!t.checked)&&o.push("not-checked"),("mixed"===u||h&&t.indeterminate)&&o.push("mixed-checked"),("true"===d||p&&t.readOnly)&&o.push("readonly"),"true"===g&&o.push("current"),"page"===g&&o.push("current-page"),"step"===g&&o.push("current-step"),"location"===g&&o.push("current-location"),"date"===g&&o.push("current-date"),"time"===g&&o.push("current-time"),"true"===f&&o.push("has-popup"),"listbox"===f&&o.push("has-popup-listbox"),"menu"===f&&o.push("has-popup-menu"),"dialog"===f&&o.push("has-popup-dialog"),"tree"===f&&o.push("has-popup-tree"),"grid"===f&&o.push("has-popup-grid"),f||"combobox"!==t.getAttribute("role")||o.push("has-popup-listbox"),o}var Mr=n(72450),Dr=n.n(Mr);function Lr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Vr=(...e)=>t=>e.some(e=>e(t)),$r=e=>{const t=e.reduce((e,t)=>{const n=t.role||"none";return e[n]=e[n]||{role:n,vnodeIds:[]},e[n].vnodeIds.push(t.vnodeId),e},{});return Object.entries(t).map(([e,t])=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lr(Object(n),!0).forEach(function(t){Fr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({id:e},t))},Br=["useTextBox"];function Hr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hr(Object(n),!0).forEach(function(t){Ur(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ur(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zr=(e,t={})=>{const{useTextBox:n=!1}=t,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,Br),o=n?Mn(e):null,i=n&&Fn(o),s=i?o:Rn(e,...e.children||[]);return Wr(Wr({},vr(e,{},"accName")),{},{role:An.Ay.getRole(e.element),box:Fn(s)?s:void 0,tightBox:i?o:_n(e),states:_r(e)},r)};const qr=e=>{const{children:t}=e,n=[];if(!t||0===t.length)return n;n.push(...t);for(const e of t)n.push(...qr(e));return n},Gr=qr;function Yr(e,t,{screenshotWidthPx:n,screenshotHeightPx:r,zoom:o}){if(!e||!e.isConnected)return"unmeasurable";const i=e.getBoundingClientRect();if(0===i.width||0===i.height)return t&&t.width>0&&t.height>0?"stable":"unmeasurable";const s=i.top,a=i.left,c=i.right,l=i.bottom,u=i.width,d=i.height,f=o>0?o:1,p=r>0?r:16384,h=n>0?n:document.documentElement.scrollWidth*f;if(s<0||a<0||l*f>p||c*f>h)return"unstable_out_of_bounds";for(let t=e.parentElement;t&&t!==document.documentElement;t=t.parentElement){const e=getComputedStyle(t),n="hidden"===e.overflowX||"clip"===e.overflowX||"auto"===e.overflowX||"scroll"===e.overflowX,r="hidden"===e.overflowY||"clip"===e.overflowY||"auto"===e.overflowY||"scroll"===e.overflowY;if(!n&&!r)continue;const o=t.getBoundingClientRect(),i=n&&(c>o.right+1||a<o.left-1),u=r&&(l>o.bottom+1||s<o.top-1);if(i||u)return"unstable_clipped"}if(!t)return"unmeasurable";return Math.max(Math.abs(a-t.left),Math.abs(s-t.top),Math.abs(u-t.width),Math.abs(d-t.height))>200?"unstable_moved":"stable"}function Kr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kr(Object(n),!0).forEach(function(t){Jr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Zr=sn()("walnut-chrome:content:interactive-elements"),Qr=On`
|
|
33
33
|
[tabindex]:not([tabindex="-1"]),
|
|
34
34
|
[contenteditable="true"],
|
|
35
35
|
[contenteditable=""],
|
|
@@ -58,4 +58,4 @@
|
|
|
58
58
|
[role="switch"],
|
|
59
59
|
[role="tab"],
|
|
60
60
|
[role="treeitem"]
|
|
61
|
-
`,Jr=(e,t={})=>{const n=Pn(e,...e.children||[]),r=On.Ay.getRole(e.element)||"",o=((e,t)=>{if(t||!(e instanceof HTMLElement)||e.tabIndex<0||e.hasAttribute("aria-activedescendant"))return!1;const{overflowX:n,overflowY:r}=window.getComputedStyle(e);return[n,r].some(e=>"auto"===e||"scroll"===e)})(e.element,r);return Gr(Gr(Gr({},gr(e,{},"accName")),{},{role:r,box:Mn(n)?n:void 0,tightBox:jn(e),states:[{calculated:jr(e)}],isScrollableRegion:o},!o||(i=e.element,null!==(s=i.getAttribute("aria-label"))&&void 0!==s&&s.trim()||null!==(a=i.getAttribute("aria-labelledby"))&&void 0!==a&&a.trim()||null!==(c=i.getAttribute("title"))&&void 0!==c&&c.trim())?{}:{accName:""}),t);var i,s,a,c},Zr=e=>{const t=e.element.matches(Xr),n="gridcell"===On.Ay.getRole(e.element);if(t&&n){const t=e.element.tabIndex>=0,n=!!e.element.querySelector(Xr);return t||!n}return t};function Qr(e){Qt.yS.listen("igt:interactive-elements:get-interactives",()=>{var t;On.Ay.setupTrees();const n=(null===(t=e())||void 0===t?void 0:t.values())||[];Kr("Getting interactive elements from ",{flatTree:n});const r=Nr(n,Zr,!0).map(e=>{var t,n;return Jr(e,{ancestors:(null===(t=e.ancestors)||void 0===t?void 0:t.map(({vnodeId:e})=>e))||[],children:(null===(n=e.children)||void 0===n?void 0:n.map(({vnodeId:e})=>e))||[],descendants:Ur(e).map(({vnodeId:e})=>e)})});return On.Ay.cleanupTrees(),Kr("Got interactives",{interactives:r}),r}),Qt.yS.listen("igt:interactive-elements:get-all-possible-interactives",()=>{var t;On.Ay.setupTrees();const n=(null===(t=e())||void 0===t?void 0:t.values())||[];Kr("Getting interactive elements from ",{flatTree:n});const r=Nr(n,()=>!0,!0).map(e=>Gr(Gr({},Hr(e)),Jr(e)));return On.Ay.cleanupTrees(),Kr("Got all nodes ",{allNodes:r}),r}),Qt.yS.listen("igt:interactive-elements:get-groupings",({message:t})=>{On.Ay.setupTrees();const n=e(),r=t.interactives.map(e=>{const t=n.getById(e.vnodeId);return Gr(Gr({},e),{},{element:null==t?void 0:t.element})}),o=Lr(r),i=(e=>{const t=[];for(const n of e){const{element:e,box:r,role:o}=n,i=null==e?void 0:e.ownerDocument,s=null==i?void 0:i.defaultView,a=null==s?void 0:s.getComputedStyle(e),c=null==a?void 0:a.getPropertyValue("background-color"),l=null==a?void 0:a.getPropertyValue("color"),u=null==a?void 0:a.getPropertyValue("border-width"),d=null==a?void 0:a.getPropertyValue("border-style"),f=null==a?void 0:a.getPropertyValue("border-color"),p=null==a?void 0:a.getPropertyValue("border-radius"),h=null==a?void 0:a.getPropertyValue("font-weight"),m=null==a?void 0:a.getPropertyValue("font-size"),{height:g,width:y,y:b,x:v}=r||{},w=t.find(Dr(Rr()({height:g,background:c,textColor:l,borderWidth:u,borderStyle:d,borderRadius:p,fontSize:m}),Rr()({width:y,background:c,textColor:l,borderWidth:u,borderStyle:d,borderRadius:p,fontSize:m}),Rr()({role:o,background:c,textColor:l,fontSize:m,x:v}),Rr()({role:o,background:c,textColor:l,fontSize:m,y:b})));w?w.vnodeIds.push(n.vnodeId):t.push({id:t.length,role:o,height:g,background:c,textColor:l,borderWidth:u,borderStyle:d,borderColor:f,borderRadius:p,x:v,y:b,width:y,fontSize:m,fontWeight:h,vnodeIds:[n.vnodeId]})}return(e=>{let t,n=e.length;for(;n--;){const r=e[n];if(1===r.vnodeIds.length){if(t)t.vnodeIds.push(...r.vnodeIds);else{const{id:e,vnodeIds:n}=r;t={id:e,vnodeIds:n,type:"misc"}}e.splice(n,1)}}return t&&e.push(t),e})(t)})(r);return On.Ay.cleanupTrees(),{role:o,intelligent:i}}),Qt.yS.listen("igt:interactive-elements:map-user-selected",({message:t})=>{const{selected:n=[]}=t,r=e();On.Ay.setupTrees();const o=n.map(e=>{const t=r.getById(e.vnodeId);return Jr(t,{userSelected:!0,source:On.Ay.getSource(t.element)})});return On.Ay.cleanupTrees(),o}),Qt.yS.listen("igt:check-state",({message:t})=>{var n;const r=e().getById(null==t||null===(n=t.vnode)||void 0===n?void 0:n.vnodeId);return null!=r&&r.element?jr(r):[]}),Qt.yS.listen("igt:interactive-elements:classify-stability",({message:t})=>{const{vnodes:n,screenshotWidthPx:r,screenshotHeightPx:o,zoom:i}=t,s={};if(null==n||!n.length)return s;const a=e(),c=window.scrollX,l=window.scrollY,u=0!==c||0!==l;u&&window.scrollTo({top:0,left:0,behavior:"instant"});try{for(const{vnodeId:e,moment1Box:t}of n){const n=null==a?void 0:a.getById(e);s[e]=zr(null==n?void 0:n.element,t,{screenshotWidthPx:r,screenshotHeightPx:o,zoom:i})}}finally{u&&window.scrollTo({top:l,left:c,behavior:"instant"})}return s})}const eo=e=>(e=>{const t=null==e?void 0:e.trim();return t?t.length>300?t.slice(0,300):t:null})(e.element.textContent);function to(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function no(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?to(Object(n),!0).forEach(function(t){ro(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):to(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ro(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const oo=e=>e.element.matches('h1, h2, h3, h4, h5, h6, [role="heading"]')&&!!mr(e.element).length,io=e=>e.element.matches('dl:not([role]), ol:not([role]), ul:not([role]), [role="list"]'),so=e=>{var t;return null===(t=e.attrs)||void 0===t?void 0:t.includes("lang")},ao=e=>{var t;return!!e.isFrame&&!(null===(t=e.attrs)||void 0===t||!t.includes("title"))&&!!mr(e.element).length},co=e=>{var t;return"application"===(null===(t=e.attributes)||void 0===t?void 0:t.role)},lo=e=>["audio","video"].includes(e.tagName.toLowerCase());function uo(e){On.Ay.setupTrees();const t=e();return On.Ay.cleanupTrees(),t}function fo(e){var t;const[,n]=e.tagName.match(/^h(\d)$/)||[],r=n?parseInt(n):-1;if(null!==(t=e.attributes.role)&&void 0!==t&&t.includes("heading")){const t=parseInt(e.element.getAttribute("aria-level")||e.attributes["aria-level"]);return isNaN(t)||t<1||t>6?-1!==r?r:2:t}return r}const po=e=>{var t,n;const r=Pn(e);return no(no({},gr(e,{},"accessibleText")),{},{textContent:eo(e),role:On.Ay.getRole(e.element),level:fo(e),box:Mn(r)?r:void 0,ancestors:(null===(t=e.ancestors)||void 0===t?void 0:t.map(({vnodeId:e})=>e))||[],children:(null===(n=e.children)||void 0===n?void 0:n.map(({vnodeId:e})=>e))||[],descendants:Ur(e).map(({vnodeId:e})=>e)})},ho=e=>{var t,n;const r=Pn(e);return no(no({},gr(e,{},"accessibleText")),{},{role:On.Ay.getRole(e.element),listItemCount:Array.from(e.element.querySelectorAll('li, dt, [role="listitem"]')).length,box:Mn(r)?r:void 0,listChildren:(e.children||[]).map(e=>gr(e,{},"accessibleText")),ancestors:(null===(t=e.ancestors)||void 0===t?void 0:t.map(({vnodeId:e})=>e))||[],children:(null===(n=e.children)||void 0===n?void 0:n.map(({vnodeId:e})=>e))||[],descendants:Ur(e).map(({vnodeId:e})=>e)})},mo=async e=>{var t,n,r;const o=document.createNodeIterator(e.element,NodeFilter.SHOW_TEXT,t=>!document.body.contains(t.parentElement)||t.parentElement.hasAttribute("lang")&&t.parentElement!==e.element?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);let i,s="";for(;i=o.nextNode();)s+=` ${i.textContent.trim()}`;const{isReliable:a,languages:c=[]}=await browser.i18n.detectLanguage(s);let l;if(a){l=c.shift();for(const e of c)(null==e?void 0:e.percentage)>l.percentage&&(l=e)}const u=gr(e,{},"accessibleText"),d=e.vnodeId>=0;return no(no({},u),{},{lang:e.attributes.lang,isValidLang:On.Ay.isValidLang(null===(t=e.attributes.lang)||void 0===t?void 0:t.toLowerCase()),detectedLang:!!l&&(null===(n=l)||void 0===n?void 0:n.language),langConfidence:l?null===(r=l)||void 0===r?void 0:r.percentage:-1,textContent:d?eo(e):null})},go=e=>no(no({},gr(e,{},"accessibleText")),{},{descriptionText:Cr(e.element)}),yo=e=>{const t=Pn(e);return no(no({},(e=>no({},gr(e,{},"accessibleText")))(e)),{},{box:Mn(t)?t:void 0})},bo=e=>{const t=Pn(e);return no(no({},gr(e,{},"accessibleText")),{},{box:Mn(t)?t:void 0})};const vo=e=>e.matches(":modal");function wo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function So(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wo(Object(n),!0).forEach(function(t){Oo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Oo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xo=nn()("igt:modal-dialog"),Eo=['[role="dialog"]','[role="alertdialog"]',"dialog"].join(":not(:empty), "),Ao=['[class*="modal" i]','[class*="dialog" i]'].join(":not(:empty), "),To=["absolute","fixed"];let Co=null;const Io=["dialog","alertdialog"],No=e=>new Promise(t=>{setTimeout(t,e)}),Po=(e=document.activeElement)=>{const{shadowRoot:t}=e;return t&&t.activeElement?Po(t.activeElement):"IFRAME"===e.tagName&&e.contentDocument?Po(e.contentDocument.activeElement):e},jo=(e,t=document)=>Array.from(t.querySelectorAll(e)).filter(e=>On.Ay.isSRVisible(e)),ko=e=>{const t=On.Ay.name(e);return"string"==typeof t?t:""},Ro=e=>{if(!e)return;const t=[e,...e.ancestors].find(e=>On.Ay.isFocusable(e.element));null==t||t.element.focus(),e.element.dispatchEvent(new Event("mousedown",{bubbles:!0})),e.element.dispatchEvent(new Event("mouseup",{bubbles:!0})),"function"==typeof e.element.click?e.element.click():e.element.dispatchEvent(new Event("click",{bubbles:!0}))},_o=(e=document)=>{let t=null;const n=[()=>jo(Eo,e),()=>jo('[aria-modal="true"]:not(:empty)',e),()=>jo(Ao,e).filter(e=>To.includes(window.getComputedStyle(e).position)||!!e.offsetParent&&To.includes(window.getComputedStyle(e.offsetParent).position)),()=>{const t=((e=document)=>{if("function"!=typeof(null==e?void 0:e.elementsFromPoint))return null;const t="defaultView"in e&&e.defaultView||window,n=.75*t.innerWidth,r=.75*t.innerHeight,o=(t.innerWidth-n)/2,i=(t.innerHeight-r)/2,s=[{x:o,y:i},{x:t.innerWidth-o,y:i},{x:t.innerWidth/2,y:t.innerHeight/2},{x:o,y:t.innerHeight-i},{x:t.innerWidth-o,y:t.innerHeight-i}].map(t=>Array.from(e.elementsFromPoint(t.x,t.y)));for(const e of s){const o=e.find(e=>{if(!(e instanceof HTMLElement))return!1;const o=t.getComputedStyle(e);return parseFloat(o.width)>=n&&parseFloat(o.height)>=r&&"none"!==o.getPropertyValue("pointer-events")&&To.includes(o.position)});if(o&&s.every(e=>e.includes(o)))return o}return null})(e);return t&&On.Ay.isSRVisible(t)?[t]:[]}];for(let e=0;e<n.length;e++){const r=(0,n[e])();if(1===r.length){t=r[0];break}}return t?(e=>{var t;const n=null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView;if(!n)return e;const{width:r,height:o}=e.getBoundingClientRect(),i=n.innerWidth*n.innerHeight;return 0===i||r*o<.9*i?e:e.querySelector('[class~="modal-content" i]:not(:empty), [class~="dialog-content" i]:not(:empty)')||e.querySelector('[role="document"]:not(:empty), [class~="modal-dialog" i]:not(:empty), [class~="dialog-container" i]:not(:empty)')||e})(t):null},Mo=e=>{const t=e.element.getAttribute("tabindex");e.element.tabIndex=t||-1,e.element.focus()},Do=(e,t=!1)=>{const n=n=>{var r,o,i;return e.element.contains(n)||!(null===(r=e.contains)||void 0===r||!r.call(e,n))||t&&(o=n,i=e.element,o.contains(i)&&o!==i&&o!==i.ownerDocument.body&&o!==i.ownerDocument.documentElement)};let r=n(Po());if(!r&&Co){const e=n(Co);r=e,e&&(Co=null)}return r};function Lo({getTree:e,getFlatTree:t,buildTree:n},r=3e3){const o=async(t,r,o=[])=>{let i=e(),s=t&&i.getById(t.vnodeId);return s||(await n({value:r,vitals:o}),i=e(),s=t&&i.getById(t.vnodeId)),s},i=(t,n)=>{const r=e(),o=n&&r.getById(n.vnodeId);o&&t&&!On.Ay.isVisible(t.element,!0)&&o.element.click()},s=new Set,a=new Set,c=new Set,l=e=>{s.add(e.target)},u=t=>{On.Ay.cleanupTrees();const n=(e=>[e,...e.ancestors,...e.children].filter(e=>!e.isShadow).find(e=>Io.includes(On.Ay.getRole(e.element))))(t),r=n&&fn(n),o=(e=>[e,...e.ancestors,...e.children].filter(e=>!e.isShadow).find(e=>"true"===e.element.getAttribute("aria-modal")))(t),i=Do(t,!(!!n||!!o)),s=(t=>{const{element:n}=t,r=[];let o=n.parentNode;for(;o&&"HTML"!==o.nodeName;){const i=Array.from(o.children),s=e();i.forEach(e=>{var o;const i=s.get(e);if(e!==n&&!(e.contains(n)||null!=i&&null!==(o=i.contains)&&void 0!==o&&o.call(i,t))&&e.tagName.toLowerCase()!==Ir.wZ&&On.Ay.isSRVisible(e)&&(On.Ay.name(e)||"").trim()){const t=So(So({},fn(i)),{},{source:On.Ay.getSource(e)});r.push(t)}}),o=o.parentNode}return r})(t),a=e=>!!e&&Do(e);return{dialogRoleVnode:r,hasDialogRole:!!r,focusBroughtToModal:!!i||a(n)||a(o),handledAriaHidden:!s.length,ariaHiddenMissingVNodes:s,isModalDialog:vo(t.element)||!(!n||!vo(n.element)),isAriaModal:!!o}};Qt.yS.listen("igt:modal-dialog:detect:with-trigger",async({message:{manifest:i,vitals:s}})=>{let a=e();const c=await o(i["select-trigger"],i,s);Ro(c),await No(r),await n({value:i,vitals:s}),a=e();const l=[document,...Kn({tree:a,flat:t()}),...Xn({tree:a,flat:t()})];let d=null;l.some(e=>(d=_o(e),!!d)),d||(Co=Po());const f=d?a.get(d):null;return f?So({modal:So(So({},fn(f)),{},{accessibleName:ko(f.element)})},u(f)):{modal:null}}),Qt.yS.listen("igt:modal-dialog:focus-trap",async({message:{manifest:e,vitals:t}})=>{const{modal:n,focusBroughtToModal:r}=e,s=await o(n,e,t);return new Promise(t=>{let n,o=null;const a=e=>o=e.target,c=new Set,l=e=>(e&&document.addEventListener("focus",a,!0),Qt.yS.send(Qt._O.background,e?"modal:tabber-init":"modal:fire-tab")),u=document.createElement("div");u.tabIndex=0,u.setAttribute("data-axedevtools-tabstop-ignore","true"),document.body.appendChild(u);const d=()=>{n=setTimeout(()=>{const e=Po(),t=e===document.body&&o!==e,n=c.has(e),r=e=>{var t;return s.element.contains(e)||(null===(t=s.contains)||void 0===t?void 0:t.call(s,e))},i=e.getRootNode()instanceof ShadowRoot;let a=!r(e)&&!t;if(a){let t=null;if(i){for(t=e.getRootNode().host;null!==(u=t.getRootNode())&&void 0!==u&&u.host&&!r(t)&&!document.body.contains(t);){var u;t=t.getRootNode().host}a=!r(t)}}if(xo("focus-trap:checkFocus",{activeElement:e,hasShadowRoot:i,isCircular:n,isOutside:a}),n||a)return f({isCircular:n,isOutside:a});t||c.add(e),l(!1),d()},200)},f=e=>{var r;null===(r=u.parentNode)||void 0===r||r.removeChild(u),clearTimeout(n),document.removeEventListener("focus",a,!0),Qt.yS.send(Qt._O.background,"modal:tabber-stop"),t(e)};if(!s)return f({});i(s,e["select-trigger"]),r||Mo(s),d(),l(!0)})}),Qt.yS.listen("igt:modal-dialog:escape",async({message:{manifest:n}})=>{var u;const d=await o(n.modal,n);if(!d)return{};i(d,n["select-trigger"]);const f=document.activeElement;d.element.contains(f)||null!==(u=d.contains)&&void 0!==u&&u.call(d,f)||Mo(d),(()=>{const n=e(),r=t();Jn({tree:n,flat:r}).forEach(e=>{if(c.add(e),e.addEventListener("submit",l,!0),"function"==typeof e.submit){const t=e.submit;e.submit=()=>{s.add(e),t.call(e)},a.add(()=>{e.submit=t})}})})(),await Qt.yS.send(Qt._O.background,"modal:fire-escape"),await No(r);const p=!On.Ay.isVisible(d.element,!0),h={escapeClosed:p,formSubmitted:!!s.size};if(a.forEach(e=>e()),c.forEach(e=>{e.removeEventListener("submit",l,!0)}),s.clear(),a.clear(),c.clear(),p){const t=e().get(document.activeElement),r=n["select-trigger"];h.focusReturnedToTrigger=!!t&&!!r&&t.vnodeId===r.vnodeId,"number"==typeof(null==t?void 0:t.vnodeId)&&(null==t?void 0:t.vnodeId)>=0&&(h.focusReturnTarget=fn(t))}return h}),Qt.yS.listen("igt:modal-dialog:assess",async({message:t})=>{const n=t.vnode;if(!n||!n.vnodeId)return;const r=e().getById(n.vnodeId),o=So(So({},fn(r)),{},{accessibleName:ko(r.element)});return So({modal:o},u(r))}),Qt.yS.listen("igt:modal-dialog:assess-dismiss",async({message:t})=>{const n=e().get(document.activeElement),r=t.vnode;return{focusReturnTarget:n&&fn(n),focusReturnedToTrigger:n&&r&&n.vnodeId===r.vnodeId,"user-dismiss-modal":!0}});const d=(e,t)=>{if(null==e||!e.element)return null;const n=e.element.getBoundingClientRect();if(n.width<=0||n.height<=0)return null;const r=t;let o=0,i=0;for(const t of e.ancestors??[])if(t.isFrame&&t.element){const e=t.element.getBoundingClientRect();o+=e.left,i+=e.top}const s=n.left+window.pageXOffset+o,a=n.top+window.pageYOffset+i;return{width:Math.round(n.width*r),height:Math.round(n.height*r),top:Math.round(a*r),left:Math.round(s*r),right:Math.round((s+n.width)*r),bottom:Math.round((a+n.height)*r)}},f=e=>"number"==typeof e&&Number.isFinite(e)&&e>0;Qt.yS.listen("igt:modal-dialog:capture-pre-dismiss-focus-inputs",async({message:{manifest:e,screenshotZoomLevel:t}})=>{if(!f(t))return null;const n=await o(e.modal,e),r=e["select-trigger"],i=r?await o(r,e):null;if(null==n||!n.element||null==i||!i.element)return null;const s=d(n,t),a=d(i,t);return s&&a?{modal_bounding_box:s,modal_html_markup:n.element.outerHTML,trigger_element_bbox:a}:null}),Qt.yS.listen("igt:modal-dialog:collect-post-dismiss-focus-target",async({message:{focusVnodeId:t,screenshotZoomLevel:n}})=>{if("number"!=typeof t||!f(n))return null;const r=e().getById(t);if(null==r||!r.element)return null;const o=d(r,n);if(!o)return null;const{element:i}=r,s=On.Ay.name(i)||"",a=(i.textContent||"").trim(),c=s.trim()||a,l=c.length<=200?c:c.slice(0,200);return{current_focus_bbox:o,focus_html_markup:i.outerHTML,focus_element_text:l}});const p=e=>!(null!=e&&e.element&&On.Ay.isVisible(e.element,!0));Qt.yS.listen("igt:modal-dialog:try-auto-dismiss",async({message:{modalVnodeId:t,triggerVnodeId:n,dismissCandidates:o}})=>{const i=e().getById(t);if(null==i||!i.element)return{success:!1};const s=()=>{const t=e().get(document.activeElement),r=!!t&&"number"==typeof n&&t.vnodeId===n;return{focusReturnTarget:"number"==typeof(null==t?void 0:t.vnodeId)&&t.vnodeId>=0?fn(t):void 0,focusReturnedToTrigger:r}};if(p(i))return So({success:!0,strategy:"already-closed"},s());const a=async t=>{const n=e().get(t);return!!n&&(Ro(n),await No(r),p(i))},c=['form[method="dialog" i] button:not([type="button" i])','button[formmethod="dialog" i]','[data-bs-dismiss="modal"]','[data-dismiss="modal"]','button[aria-label="close" i]','button[aria-label="dismiss" i]','[role="button"][aria-label="close" i]','[role="button"][aria-label="dismiss" i]'];for(const e of c){const t=i.element.querySelectorAll(e);for(const e of Array.from(t))if(On.Ay.isVisible(e,!0)&&await a(e))return So({success:!0,strategy:"semantic_dom"},s())}if((i.ancestors??[]).some(e=>e.isFrame))return{success:!1};const l=i.element.getBoundingClientRect(),u=e=>({centerX:l.left+(e.left+e.right)/2/1e3*l.width,centerY:l.top+(e.top+e.bottom)/2/1e3*l.height}),d=(e,t)=>{const n=document.elementsFromPoint(e,t)??[];for(const e of n)if(e!==i.element&&i.element.contains(e)&&e.matches('button, [role="button"], a, [tabindex]:not([tabindex="-1"]), [data-bs-dismiss], [data-dismiss]'))return e;return null},f=e=>e.right>e.left&&e.bottom>e.top;for(let e=0;e<o.length;e++){const t=o[e];if(!f(t))continue;const{centerX:n,centerY:r}=u(t),i=d(n,r);if(i&&await a(i))return So({success:!0,strategy:"ai_candidate",candidateIndex:e},s())}const h=(e=>{const t=e.element.getBoundingClientRect();if(t.width<=0||t.height<=0)return null;const n=t.left+t.width/2,r=t.top+t.height/2,o=document.elementsFromPoint(n,r),i=window.innerWidth*window.innerHeight;for(const t of o){if(!(t instanceof HTMLElement))continue;if(t===e.element||e.element.contains(t))continue;const n=window.getComputedStyle(t);if(!To.includes(n.position))continue;const r=t.getBoundingClientRect();if(r.width*r.height/i>=.75)return t}return null})(i);return h&&await a(h)?So({success:!0,strategy:"backdrop"},s()):{success:!1}})}function Fo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fo(Object(n),!0).forEach(function(t){$o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Bo=nn()("igt:table"),Ho=["th","caption",'[headers]:not([headers=""])','[scope]:not([scope=""])'].join(", "),Wo=e=>Vo(Vo({},gr(e,{},"accName")),{},{role:On.Ay.getRole(e.element)}),Uo=e=>Vo(Vo({},gr(e,{},"accName")),{},{source:On.Ay.getSource(e.element),role:On.Ay.getRole(e.element)}),zo=(e,t)=>Vo(Vo({},gr(e,{},"accName")),t),qo=e=>"table"===e.tagName,Go=e=>"th"===(null==e?void 0:e.tagName.toLowerCase()),Yo=e=>!["table"].includes(On.Ay.getRole(e.element)),Ko=e=>qo(e)&&!Yo(e),Xo=e=>["rowgroup","colgroup"].includes(e),Jo=(e,t,n,r)=>{if(e.getAttribute("headers")){const t=On.Ay.idrefs(e,"headers").filter(Go);if(t.length)return t.flatMap(e=>{const t=r.get(e);return t?[Uo(t)]:[]})}const o=new Map,i=(e,t)=>{const n=r.get(e);n&&o.set(e,Vo(Vo({},Uo(n)),t))},s=On.Ay.table.getCellPosition(e,t),a=e.colSpan-1,c=e.rowSpan-1,l=s.y,u=s.y+c,d=s.x,f=s.x+a;for(let r=0;r<t.length;r++){const s=t[r];for(let t=0;t<s.length;t++){const a=s[t],c=t>=d&&t<=f,p=r>=l&&r<=u;if(!c&&!p||a===e||o.has(a)||!On.Ay.isSRVisible(a))continue;if(!Go(a)){n.find(e=>e.element===a)&&i(a,{mlOnly:!0});continue}const h=a.getAttribute("scope"),m=Xo(h)?"rowgroup"===h:On.Ay.table.isRowHeader(a),g=Xo(h)?"colgroup"===h:On.Ay.table.isColumnHeader(a);(p&&m||c&&g)&&i(a)}}return Array.from(o.values())};function Zo(e,t){Qt.yS.listen("igt:table:get-tables",()=>{On.Ay.setupTrees();const t=e().values()||[];Bo("Getting tables from",{flatTree:t});const n=Nr(t,Ko,!0).map(Wo);return On.Ay.cleanupTrees(),Bo("Got tables",{tables:n}),n}),Qt.yS.listen("igt:table:map-user-selected",({message:t})=>{const{table:n}=t;Bo("Getting table",{table:n}),On.Ay.setupTrees();const r=e(),o=Wo(r.getById(n.vnodeId));return On.Ay.cleanupTrees(),Bo("Got tables",{tableVNode:o}),o}),Qt.yS.listen("igt:table:analyze-table",async({message:n})=>{const r={};Bo("Getting table",{table:n.table}),On.Ay.setupTrees(),await t(n.metadata);const o=e(),i=o.getById(n.table.vnodeId),s=o.getById(i.vnodeId).element;if(!qo(i))return Vo(Vo({},r),{},{type:"layout",isHeuristicDataTable:!1});var a,c,l;if(r.hasHeaderMarkup=!!s.getAttribute("summary")||!!(a=Ho,c=s,[...c.querySelectorAll(a)].filter(e=>On.Ay.isSRVisible(e))).length,r.isHeuristicDataTable=qo(l=i)&&On.Ay.table.isDataTable(l.element),Yo(i))return Vo(Vo({},r),{},{type:"layout"});const u=On.Ay.table.toGrid(s),d=u.length,f=u.reduce((e,t)=>Math.max(e,t.length),0),p=new Map,h=new Map;let m=!1,g=!1;const y=new Set;for(let e=0;e<d;e++){const t=u[e];for(let n=0;n<f;n++){const r=t[n];if(!r||!On.Ay.isSRVisible(r))continue;y.add(r),r.getAttribute("headers")&&(g=!0);const o=On.Ay.table.isColumnHeader(r),i=On.Ay.table.isRowHeader(r);var b;if(Go(r))r!==t[n+1]&&r!==(null===(b=u[e+1])||void 0===b?void 0:b[n])||(m=!0),o?h.set(e,(h.get(e)||0)+1):i&&p.set(n,(p.get(n)||0)+1)}}return r.cellCount=y.size,m||g||(1===p.size&&1===h.size&&[d,d-1].includes(p.values().next().value)&&[f,f-1].includes(h.values().next().value)?r.type="one-header-row-and-column":1===p.size&&0===h.size&&p.values().next().value===d?r.type="one-header-column":0===p.size&&1===h.size&&h.values().next().value===f&&(r.type="one-header-row")),On.Ay.cleanupTrees(),Bo("Got table metadata",{metadata:r}),r}),Qt.yS.listen("igt:table:get-data-cells",async({message:n})=>{const r=new Map;Bo("Getting table",{table:n.table}),On.Ay.setupTrees(),await t(n.metadata);const o=e(),i=[...e().values()||[]].reduce((e,t)=>(e.set(t.element,t),e),new Map),s=o.getById(n.table.vnodeId),a=o.getById(s.vnodeId).element;if(!qo(s))return Bo("Cannot get data cells for a non-table element",{table:s,tableElement:a}),[];const c=n.features.flatMap(({role:e,vnodeId:t})=>{if(!t||!["columnheader","rowheader"].includes(e))return[];return o.getById(t)||[]}),l=On.Ay.table.toGrid(a);for(let e=0;e<l.length;e++){const t=l[e];for(let n=0;n<t.length;n++){const o=t[n],s=i.get(o);if(!s)continue;const a=r.get(s.vnodeId);a?r.set(s.vnodeId,Vo(Vo({},a),{},{rowNumbers:[...new Set([...a.rowNumbers,e])],columnNumbers:[...new Set([...a.columnNumbers,n])]})):On.Ay.isSRVisible(o)&&!Go(o)&&r.set(s.vnodeId,Vo(Vo({},zo(s,{headerCells:Jo(o,l,c,i),rowNumbers:[e],columnNumbers:[n]})),{},{mlIdentifiedAsHeader:c.some(e=>e.vnodeId===s.vnodeId)}))}}return On.Ay.cleanupTrees(),Bo("Got data cells",{dataCells:r}),[...r.values()]}),Qt.yS.listen("igt:table:get-all-possible-headers",({message:t})=>{const{table:n}=t;Bo("Getting table",{table:n}),On.Ay.setupTrees();const r=e(),o=r.values()||[],i=r.getById(n.vnodeId).element,s=Nr(o,e=>{var t;return i.contains(e.element)||(null===(t=n.contains)||void 0===t?void 0:t.call(n,e))},!0).map(Hr);return On.Ay.cleanupTrees(),Bo("Got all possible header nodes",{allPossibleHeaders:s}),s}),Qt.yS.listen("igt:table:map-user-selected-header-cells-for-data-cells",({message:t})=>{const{dataCells:n}=t;Bo("Mapping data cells",{dataCells:n}),On.Ay.setupTrees();const r=e(),o=n.map(e=>Vo(Vo({},e),{},{headerCells:e.headerCells.map(e=>e.userSelected?Vo(Vo({},e),Uo(r.getById(e.vnodeId))):e)}));return On.Ay.cleanupTrees(),Bo("Mapped data cells",{mappedDataCells:o}),o}),Qt.yS.listen("igt:table:get-table-box",({message:t})=>{const{table:n}=t;Bo("Getting table",{table:n}),On.Ay.setupTrees();const r=e().getById(n.vnodeId),{box:o}=Hr(r,...r.children||[]);return On.Ay.cleanupTrees(),o||{x:0,y:0,width:0,height:0}})}var Qo=n(61740);function ei(e){return e.replace(/\s+/g," ")}function ti(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ni(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ti(Object(n),!0).forEach(function(t){ri(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ti(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ri(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const oi=e=>e?[...e.querySelectorAll("text")].map(e=>{var t;return(null===(t=e.textContent)||void 0===t?void 0:t.replace(/(\r\n|\n|\r)/gm,"").trim())||""}).join(" ").trim():null,ii=e=>"true"===e.attributes["aria-hidden"],si=e=>ii(e)||!!e.ancestors.find(ii),ai=["img","svg","canvas","video"];function ci(e){var t,n,r,o;const i=[],s=null===(t=e.tagName)||void 0===t?void 0:t.toLowerCase().trim();return ai.includes(s)&&i.push(s),"input"===s&&"image"===(null===(n=e.attributes)||void 0===n?void 0:n.type)&&i.push("input-image"),null!==(r=e.style)&&void 0!==r&&r.pseudo&&i.push("pseudo"),xi(null,e)&&i.push("background-image"),"img"===(null===(o=e.attributes)||void 0===o?void 0:o.role)&&i.push("role-img"),i}function li(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}function ui(e,t){if(!li(t,e.getBoundingClientRect()))return"";const n=[];for(const o of e.childNodes)if(o.nodeType===Node.TEXT_NODE){var r;const e=null===(r=o.textContent)||void 0===r?void 0:r.trim();e&&n.push(e)}else if(o.nodeType===Node.ELEMENT_NODE){const e=ui(o,t).trim();e&&n.push(e)}return ei(n.join(" ")).trim()}function di(e){if((null==e?void 0:e.nodeType)!==Node.ELEMENT_NODE)return"";const t=e.getBoundingClientRect(),n=e.ownerDocument,r=t.width,o=t.height;if("function"!=typeof n.elementsFromPoint||r<1||o<1)return"";try{const i=Math.ceil(Math.sqrt(529)),s=Math.min(i,Math.ceil(r/50)),a=Math.min(i,Math.ceil(o/50)),c=[];for(let e=0;e<s;e++)for(let n=0;n<a;n++){const i=t.left+r*(e+.5)/s,l=t.top+o*(n+.5)/a;c.push({x:i,y:l})}const l=new Set;for(const{x:r,y:o}of c)for(const i of n.elementsFromPoint(r,o))i.nodeType===Node.ELEMENT_NODE&&i!==e&&li(t,i.getBoundingClientRect())&&l.add(i);const u=[...l].filter(e=>{var t,n,r;return!(null===(t=(null===(n=e.innerText)||void 0===n?void 0:n.trim())||(null===(r=e.textContent)||void 0===r?void 0:r.trim()))||void 0===t||!t.length)});if(!u.length)return"";const d=u.filter(e=>!u.some(t=>{return t!==e&&((n=e)!==(r=t)&&n.contains(r));var n,r}));return d.map(e=>ui(e,t)).filter(Boolean).join(" ")}catch{return""}}function fi(e){if((null==e?void 0:e.nodeType)!==Node.ELEMENT_NODE)return"";const t=e.innerText;return"string"==typeof t?ei(t).trim():""}const pi=(...e)=>t=>e.some(e=>e(t));function hi(e,t){const n=[];for(const r of t){const{style:t,box:o}=r,{height:i,width:s,y:a}=o,c=t["background-image"],l=e.getById(r.vnodeId),{tagName:u,attributes:d}=l,f=d["xlink:href"],{src:p,class:h}=d,m=!!(f||c||p),g=/#/.test(p||c||f),y=(f||c||p).replace(/^([0-9a-z]+)\.|#.+|\?.+/gi,""),b=n.find(pi(Rr()({width:s,y:a}),Rr()({external:m,sprite:g,extension:y}),Rr()({tagName:u,className:h,height:i,width:s}),Rr()({tagName:u,height:i,width:s})));b?b.vnodes.push(r):n.push({id:n.length,type:"autogenerated",tagName:u,className:h,height:i,width:s,y:a,external:m,sprite:g,vnodes:[r]})}return function(e){let t,n=e.length;for(;n--;){const r=e[n];if(1===r.vnodes.length){if(t)t.vnodes.push(...r.vnodes);else{const{id:e,vnodes:n}=r;t={id:e,vnodes:n,type:"misc"}}e.splice(n,1)}}return t&&e.push(t),e.map((e,t)=>ni(ni({},e),{},{displayName:Qo.Ay`Group ${t+1}:n`}))}(n)}function mi(e,{countOnly:t=!1,rebuildTree:n=!1}={}){const r=e.values(),o=[];n&&On.Ay.setupTrees();for(const e of r){if(e.element.nodeType!==Node.ELEMENT_NODE)continue;if(!On.Ay.isAxeSetUp(e.element)){const t=(0,On.rJ)(e.element);t.teardown(),t.setup()}const{vnodeId:n,element:r,selector:i}=e,s=ni(ni({selector:i,vnodeId:n,imageId:`${o.length}`,src:"",style:Oi(r),box:Pn(e)},fn(e)),{},{source:On.Ay.getSource(r),accessibleText:mr(e.element)||""});if([vi,wi,bi,yi].some(t=>t(e,s)))continue;const a=ci(s),c=!!a.length,l=!t&&gi(e);if(c){const n=On.Ay.getRole(e.element),r="svg"===e.tagName;o.push(ni(ni({},s),{},{isBackgroundImage:xi(null,s),imageTypes:a,overlappingText:di(e.element),elementText:fi(e.element),isEmptyAltImg:"img"===e.tagName&&""===e.element.getAttribute("alt")||!!r&&("img"===n?""===s.accessibleText:!s.accessibleText),isAriaHidden:si(e),role:n,isRoleImg:"img"===n,hint:Cr(e.element),svgTextContent:r&&oi(e.element)||"",interactiveParent:l?{accessibleText:mr(l.element)||"",isAriaHidden:si(l)}:void 0},fn(t?e:Er(e))))}l&&(s.vnodeId=l.vnodeId,s.box=Pn(e,l))}return o}function gi(e){var t;return null===(t=e.ancestors)||void 0===t?void 0:t.find(e=>["a","label","button","input","summary"].includes(e.tagName))}function yi(e){return"input"===e.tagName&&"hidden"===e.attributes.type}function bi(e,t){const{box:n}=t,{height:r,width:o}=n;return 0===o||0===r}function vi(e,t){const{style:n}=t,{display:r,visibility:o,opacity:i}=n;return"none"===r||"0"===i||"hidden"===o}function wi(e,t){const{style:n}=t,{clip:r="",position:o=""}=n,i=n["clip-path"]||"",s=["fixed","absolute"].includes(o)&&r.match(/rect\s*\(([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px\s*\)/);if(s&&5===s.length)return s[3]-s[1]<=0&&s[2]-s[4]<=0;if(i){const[,e,t]=i.match(/(\w+)\((\d+)/)||[null,"",0];switch(e){case"inset":return t>=50;case"circle":return 0===t}}return!1}const Si=["before","after"];function Oi(e){const t={};e&&e.nodeType===Node.ELEMENT_NODE?(t.element=window.getComputedStyle(e),Si.forEach(n=>{t[n]=window.getComputedStyle(e,n)})):["element",...Si].forEach(e=>t[e]={getPropertyValue:()=>""});const n={pseudo:Si.some(e=>["content","background-image"].some(n=>t[e]&&t[e].getPropertyValue(n).startsWith("url")))};return["display","opacity","visibility","clip","clip-path","position","font-family","background-image","height","width"].reduce((e,n)=>(e[n]=t.element.getPropertyValue(n),e),n)}function xi(e,t){const{style:n}=t;return!!n["background-image"].startsWith("url")||!!n.pseudo}function Ei(e){Qt.yS.listen("igt:images:get-data",async()=>{return{images:hi(t=e(),mi(t,{rebuildTree:!0})).map(e=>ni(ni({},e),{},{vnodes:e.vnodes.map(t=>ni(ni({},t),{},{identifier:`${e.id}-${t.imageId}`}))}))};var t})}const Ai=e=>{const t=document.activeElement,n=e.get(t);return{bodyHasFocus:t===document.body,currentFocus:n&&fn(n)}},Ti=()=>{const e=document.body.getAttribute("tabindex");e||(document.body.tabIndex=-1),document.body.focus(),e||document.body.removeAttribute("tabindex")};class Ci{constructor(e){this.highlighter=e,this.replayInProgress=!1,this.tabStops=[],this.startReplay=this.startReplay.bind(this),this.stopReplay=this.stopReplay.bind(this)}setTabStops(e){this.tabStops=e}attach(){Qt.yS.listen("tab-record:replay-start",this.startReplay),Qt.yS.listen("tab-record:replay-stop",this.stopReplay)}detach(){Qt.yS.unlisten("tab-record:replay-start",this.startReplay),Qt.yS.unlisten("tab-record:replay-stop",this.stopReplay)}async startReplay(){await this.highlighter.clearHighlights(),this.replayInProgress=!0;for(const e of this.tabStops){if(!this.replayInProgress)return;const t=this.highlighter.createHighlighter(e);t.highlight({theme:"badge",showMetadata:!1,showTooltip:!1}),t.scrollIntoView({behavior:"instant"}),await new Promise(e=>setTimeout(e,300))}Qt.yS.send(Qt._O.devtools,"tab-record:replay-complete")}async stopReplay(){this.replayInProgress=!1,this.highlighter.clearHighlights(),this.showHighlighters()}showHighlighters(){this.highlighter.showHighlights(),this.tabStops.filter(e=>!this.highlighter.highlighterExists(e)).forEach(e=>{const t=this.highlighter.createHighlighter(e);null==t||t.highlight({theme:"badge",showMetadata:!1,showTooltip:!1})})}}function Ii(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ni(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ii(Object(n),!0).forEach(function(t){Pi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ii(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pi(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ji={textarea:3,"datetime-local":10},ki=()=>Qt.yS.send(Qt._O.background,"tab-record:fire-tab"),Ri=Object.freeze({recordingKeyboardTrapEscape:!1,finalizingKeyboardTrapEscape:!1,returnedToStartWhileEscapingKeyboardTrap:!1,addedNewTabstopDuringEscapeAttempt:!1,listenersAttached:!1,isAutoEscape:!1,isLastAttempt:!1});class _i{handleFinalizingTrap(e=!1,t=!1){const n=Qn({tabStops:this.tabStops,launchedWindowOnFocus:this.launchedWindowOnFocus,submittedForms:this.submittedForms,cacheTree:this.cache.tree});clearTimeout(this.focusTimeout);const r=!(this.trapEscapeState.isAutoEscape&&!this.trapEscapeState.isLastAttempt&&!e)&&t;r&&(this.replayer.setTabStops([...this.tabStops.keys()]),this.replayer.showHighlighters()),e&&!r||this.detachListeners();const o=this.trapEscapeState.isAutoEscape?Qt._O.background:Qt._O.devtools;return this.trapEscapeState=Ni({},Ri),this.retryTabKeyPressCount=0,Qt.yS.send(o,"tab-record:trap-escape-done",Ni(Ni({},n),{},{escapedToNewVnode:e,tabbingComplete:r}))}onFocus(e){const[t]=this.overrideFocusVnode&&[...this.tabStops.entries()].find(([,e])=>e.vnodeId===this.overrideFocusVnode.vnodeId)||[];if(t&&document.activeElement!==t&&e.relatedTarget!==t)return this.overrideFocusVnode=null,void t.focus();this.overrideFocusVnode=null;const n=e.composedPath();this.focusHandler(n[0]||e.target)}async focusHandler(e){const t=e&&e.matches&&e.matches(Vn),n=this.tabStops.has(e);if(n||(this.retryTabKeyPressCount=0),!this.unscopedCache.tree.get(e)){const{cache:e,unscopedCache:t}=await this.buildTreeCache();this.cache=e,this.unscopedCache=t}const r=this.keyboardScope&&!this.cache.tree.get(e),o=!!this.tabStops.size,i=this.visitedElements.has(e);this.visitedElements.add(e);const s=n||r&&(o||i);this.cleanupKeyupTarget(),clearTimeout(this.focusTimeout);const a=[...this.tabStops.keys()][0]===e;if(this.trapEscapeState.finalizingKeyboardTrapEscape&&n)return this.handleFinalizingTrap(a||this.trapEscapeState.addedNewTabstopDuringEscapeAttempt||this.trapEscapeState.returnedToStartWhileEscapingKeyboardTrap,n);if(this.trapEscapeState.recordingKeyboardTrapEscape&&s)return void(n&&a&&(this.trapEscapeState.returnedToStartWhileEscapingKeyboardTrap=!0));if("closed"===await Qt.yS.send(Qt._O.background,"dom:get-active-element-shadow-root-type"))return void(this.trapEscapeState.recordingKeyboardTrapEscape||(this.setFocusTimeout(500),ki()));if(this.trapEscapeState.recordingKeyboardTrapEscape||this.setFocusTimeout(),s){const t=this.keyboardTrapsEnabled&&n&&this.tabStops.keys().next().value!==e;return this.onTabbingComplete(t?{trappedVnode:this.tabStops.get(e)}:{})}if(!this.trapEscapeState.recordingKeyboardTrapEscape&&(r&&!o||!this.cache.tree.get(e)))return void ki();"function"==typeof(null==e?void 0:e.getAnimations)&&await Promise.race([Promise.all([...e.getAnimations({subtree:!0}).map(e=>e.finished)]),new Promise(e=>setTimeout(e,1e3))]);const c=(0,On.rJ)(e);c.teardown(),c.setup();const l=((e,t,n=!0)=>{const r=t.get(e),o=On.Ay.getRole(e),i=o&&On.Ay.isWidgetRole(o)||"combobox"===o||"listbox"===o||"searchbox"===o||"alertdialog"===o||"audio"===r.tagName||"video"===r.tagName||"gridcell"===o||"rowheader"===o||"columnheader"===o||"td"===r.tagName&&!o||"th"===r.tagName&&!o,s=e.matches&&e.matches(Vn);return Ln(Ln({},fn(r)),{},{role:o,isWidgetRole:i,accessibleName:On.Ay.name(e),box:Pn(r),groupItems:Un(r,o),isAriaHidden:!On.Ay.isSRVisible(e),isHidden:On.Ay.isOffscreen(e)||!On.Ay.isVisible(e,n),isMultiTabStopElement:s})})(e,this.cache.tree,!1);await Qt.yS.send(Qt._O.devtools,"tab-record:screenshot",{vnode:l}),l.source=On.Ay.getSource(e);const u=(await On.Ay.runContrastAnalysis(e))[0];l.focusedContrastResult=null==u?void 0:u.data;const d=e=>{var t;return!(null!==(t=e.getRootNode().host)&&void 0!==t&&t.matches(Ir.wZ))};try{const[t]=On.Ay.getElementStack(e,!1).filter(d);l.elementObscured=!!t&&t!==e}catch{l.elementObscured=!1}if(this.tabStops.set(e,l),this.trapEscapeState.finalizingKeyboardTrapEscape)return this.handleFinalizingTrap(!0);t&&this.handleMultiTabstopElement(e),this.trapEscapeState.recordingKeyboardTrapEscape?this.trapEscapeState.addedNewTabstopDuringEscapeAttempt=!0:(Qt.yS.send(Qt._O.devtools,"tab-record:count",this.tabStops.size),Qt.yS.send(Qt._O.background,"tab-record:fire-tab"))}attachListeners(){this.trapEscapeState.listenersAttached||(this.focusListenerTargets=new Set([document,...Kn(this.unscopedCache),...Xn(this.unscopedCache)]),this.focusListenerTargets.forEach(e=>{e.addEventListener("focus",this.onFocus,!0)}),this.submitListenerTargets=new Set(Jn(this.cache)),this.submitListenerTargets.forEach(e=>{e.addEventListener("submit",this.onSubmit,!0);try{const t=e.submit;e.submit=()=>{this.submittedForms.add(e),t.call(e)},this.submitRestoreHandlers.add(()=>{e.submit=t})}catch{}}),this.replayer.attach(),Qt.yS.listen("tab-record:new-window:launched",this.onNewWindowLaunched),this.trapEscapeState.listenersAttached=!0)}setKeyboardTrapEscapeState(e=!1,t=null,n=!1,r=!1){if(this.trapEscapeState.recordingKeyboardTrapEscape=e,this.trapEscapeState.isAutoEscape=n,this.trapEscapeState.finalizingKeyboardTrapEscape=!1,this.trapEscapeState.isLastAttempt=r,e)if(n){var o;const e=this.cache.tree.getById(t.vnodeId);null==e||null===(o=e.element)||void 0===o||o.focus()}else this.overrideFocusVnode=t;this.attachListeners()}constructor({manifest:e,cache:t,unscopedCache:n,highlighter:r,hideScrollbars:o,showScrollbars:i,buildTreeCache:s,keyboardTrapsEnabled:a}){Pi(this,"retryTabKeyPressCount",0),Pi(this,"tabStops",new Map),Pi(this,"visitedElements",new Set),Pi(this,"focusListenerTargets",new Set),Pi(this,"submitListenerTargets",new Set),Pi(this,"submittedForms",new Set),Pi(this,"submitRestoreHandlers",new Set),Pi(this,"launchedWindowOnFocus",new Set),Pi(this,"_isCleanedUp",!1),Pi(this,"overrideFocusVnode",null),Pi(this,"trapEscapeState",Ni({},Ri)),Pi(this,"isCleanedUp",()=>this._isCleanedUp),Pi(this,"cleanupAfterTabbing",({hasTrappedVnode:e=!1}={})=>{clearTimeout(this.focusTimeout),this.removeKeyboardScopeTabIndex&&this.keyboardScope.element.removeAttribute("tabindex"),e||(document.activeElement&&document.activeElement.blur(),this.keyboardScope=null,this.resetState(),this._isCleanedUp=!0),this.showScrollbars()}),Pi(this,"onTabbingComplete",async({trappedVnode:e}={})=>{const t=Qn({tabStops:this.tabStops,launchedWindowOnFocus:this.launchedWindowOnFocus,submittedForms:this.submittedForms,cacheTree:this.cache.tree});e||(this.replayer.setTabStops([...this.tabStops.keys()]),this.replayer.showHighlighters()),this.cleanupAfterTabbing({hasTrappedVnode:!!e}),await Qt.yS.send(Qt._O.background,"tab-record:stop"),this.keyboardTrapsEnabled&&e?Qt.yS.send(Qt._O.devtools,"tab-record:trapped",{trappedVnode:e,tabData:t}):Qt.yS.send(Qt._O.devtools,"tab-record:complete",t)}),Pi(this,"setFocusTimeout",(e=1e4)=>{this.trapEscapeState.recordingKeyboardTrapEscape||(this.focusTimeout=setTimeout(async()=>{const e=!!document.activeElement&&await Qt.yS.send(Qt._O.background,"dom:get-active-element-shadow-root-type");if(document.activeElement&&("IFRAME"===document.activeElement.tagName||"closed"===e))return this.setFocusTimeout(500),void ki();if("user-agent"===e){const e=ji[document.activeElement.tagName.toLowerCase()]||5;return this.keyboardTrapsEnabled&&this.retryTabKeyPressCount>=e?void this.onTabbingComplete({trappedVnode:this.tabStops.get(document.activeElement)}):(++this.retryTabKeyPressCount,this.setFocusTimeout(500),void ki())}const t=(e=document)=>!!this.tabStops.has(e.activeElement)||!!e.activeElement.shadowRoot&&t(e.activeElement.shadowRoot);if((document.activeElement===document.body||t())&&this.retryTabKeyPressCount<3)return this.setFocusTimeout(500),Qt.yS.send(Qt._O.background,"tab-record:fire-tab"),void this.retryTabKeyPressCount++;if(this.trapEscapeState.finalizingKeyboardTrapEscape){const e=document.activeElement===document.body&&!t();return this.handleFinalizingTrap(e||this.trapEscapeState.addedNewTabstopDuringEscapeAttempt||this.trapEscapeState.returnedToStartWhileEscapingKeyboardTrap,e)}this.keyboardTrapsEnabled&&t()&&this.tabStops.size>1?this.onTabbingComplete({trappedVnode:this.tabStops.get(document.activeElement)}):this.onTabbingComplete()},e))}),Pi(this,"onSubmit",e=>{this.submittedForms.add(e.target)}),Pi(this,"detachListeners",()=>{this.focusListenerTargets.forEach(e=>{e.removeEventListener("focus",this.onFocus,!0)}),this.submitListenerTargets.forEach(e=>{e.removeEventListener("submit",this.onSubmit,!0)}),this.submitRestoreHandlers.forEach(e=>{e()}),Qt.yS.unlisten("tab-record:new-window:launched",this.onNewWindowLaunched),this.trapEscapeState.listenersAttached=!1}),Pi(this,"resetState",e=>{var t;e||Qt.yS.send(Qt._O.background,"tab-record:new-window-listener:detach"),this.detachListeners(),this.tabStops.clear(),this.visitedElements.clear(),this.focusListenerTargets.clear(),this.submitListenerTargets.clear(),this.submittedForms.clear(),this.submitRestoreHandlers.clear(),this.launchedWindowOnFocus.clear(),document.documentElement.style.cursor="",document.documentElement.style.pointerEvents="",Qt.yS.unlisten("tab-record:finalize-escape-trap",this.onFinalizeTrap),Qt.yS.unlisten("tab-record:user-stopped",this.onTabbingComplete),Qt.yS.unlisten("tab-record:cleanup",this.cleanupAfterTabbing),Qt.yS.unlisten("tab-record:continue-tabbing",this.onContinueTabbing),Qt.yS.unlisten("tab-record:detach-listeners",this.detachListeners),Qt.yS.unlisten("attach:failed",this.handleAttachFailed),null===(t=this.unlistenInitialFocus)||void 0===t||t.call(this)}),Pi(this,"onNewWindowLaunched",()=>{this.launchedWindowOnFocus.add(document.activeElement)}),Pi(this,"scopeKeyboardSetup",()=>{if(!on()(this.manifest,"metadata.scope",void 0))return;const[e]=this.cache.flat;if(!e)return;e.element.getAttribute("tabindex")||On.Ay.isFocusable(e.element)||(e.element.tabIndex=-1,this.removeKeyboardScopeTabIndex=!0),e.element.focus(),this.keyboardScope=e}),Pi(this,"cleanupKeyupTarget",()=>{this.keyupTarget&&(this.keyupTarget.removeEventListener("keyup",this.onKeyup,!0),this.keyupTarget=null)}),Pi(this,"onKeyup",()=>{if(document.activeElement===this.keyupTarget)return ki();this.cleanupKeyupTarget()}),Pi(this,"handleMultiTabstopElement",e=>{this.keyupTarget=e,e.addEventListener("keyup",this.onKeyup,!0),clearTimeout(this.focusTimeout)}),Pi(this,"handleAttachFailed",()=>{this.resetState(),clearTimeout(this.focusTimeout)}),Pi(this,"onFinalizeTrap",()=>{this.trapEscapeState.recordingKeyboardTrapEscape=!1,this.trapEscapeState.finalizingKeyboardTrapEscape=!0,this.setFocusTimeout(),Qt.yS.send(Qt._O.background,"tab-record:start")}),Pi(this,"onContinueTabbing",()=>{this.focusHandler.resetDebounce(),this.setFocusTimeout(),Qt.yS.send(Qt._O.background,"tab-record:start")}),this.manifest=e,this.cache=t,this.unscopedCache=n,this.showScrollbars=i,this.buildTreeCache=s,this.replayer=new Ci(r),this.keyboardTrapsEnabled=a,this.onFocus=this.onFocus.bind(this),this.focusHandler=function(e,t=0){let n=0,r=0;const o=function(...o){cancelAnimationFrame(r),r=requestAnimationFrame(()=>{const r=performance.now();r-n>=t&&(n=r,e.apply(this,o))})};return o.resetDebounce=()=>{n=0,r=0},o}(this.focusHandler.bind(this),30),this.setFocusTimeout(),this.resetState(!0),this.scopeKeyboardSetup(),this.attachListeners(),o(),On.Ay.setupTrees(),Qt.yS.send(Qt._O.background,"tab-record:new-window-listener:attach"),document.documentElement.style.cursor="none",document.documentElement.style.pointerEvents="none",document.activeElement.matches&&document.activeElement.matches(Vn)&&this.handleMultiTabstopElement(document.activeElement);const c=()=>{var n;if(this.trapEscapeState.finalizingKeyboardTrapEscape)return;const r=!e["keep-focus-on-element"]&&e["focused-element"],[o]=t.flat.filter(e=>e.properties.tabIndex>0).sort((e,t)=>e.properties.tabIndex-t.properties.tabIndex);let i;if(r&&(null===(n=r.properties)||void 0===n?void 0:n.tabIndex)>-1){var s;i=(t.tree.getById(null===(s=e["focused-element"])||void 0===s?void 0:s.vnodeId)||{}).element}else if(!r&&o){i=(t.tree.getById(o.vnodeId)||{}).element}return i&&(i.focus(),this.focusHandler(i)),!0};Qt.yS.listen("attach:failed",this.handleAttachFailed),Qt.yS.listen("tab-record:initial-focus",c),Qt.yS.listen("tab-record:finalize-escape-trap",this.onFinalizeTrap),Qt.yS.listen("tab-record:user-stopped",this.onTabbingComplete),Qt.yS.listen("tab-record:cleanup",this.cleanupAfterTabbing),Qt.yS.listen("tab-record:continue-tabbing",this.onContinueTabbing),Qt.yS.listen("tab-record:detach-listeners",this.detachListeners),this.unlistenInitialFocus=()=>Qt.yS.unlisten("tab-record:initial-focus",c)}}const Mi=["keyboardTrapsEnabled","isKeyboardTrapEscape","keyboardTrapVnode","isAutoEscape","isLastAttempt"];function Di(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Li(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Di(Object(n),!0).forEach(function(t){Fi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Di(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fi(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}async function Vi(){return Qt.yS.send(Qt._O.content,"hide-scrollbars")}async function $i(){return Qt.yS.send(Qt._O.content,"show-scrollbars")}function Bi(e,t){let n;Qt.yS.listen("igt:keyboard:focus-element",async({message:{elementToFocus:t}})=>{const n=await e(),r=n.querySelector(t.selector);var o;return r&&(o=r)&&"function"==typeof o.focus&&o.focus(),{foundElement:r?JSON.parse(n.safe(n.get(r))):null}}),Qt.yS.listen("igt:keyboard:find-current-focus",async()=>{const t=await e();return Ai(t)}),Qt.yS.listen("igt:keyboard:reset-focus",Ti),Qt.yS.listen("igt:keyboard:tab-record-start",async r=>{let{message:{keyboardTrapsEnabled:o,isKeyboardTrapEscape:i,keyboardTrapVnode:s,isAutoEscape:a=!1,isLastAttempt:c=!1}}=r,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(r.message,Mi);const u=async()=>{await t(Li(Li({},l.metadata),{},{scope:void 0}));const n=e(),r=Array.from((null==n?void 0:n.values())||[]);let o=n,i=r;var s;l.metadata.scope&&(await t(l.metadata),o=e(),i=Array.from((null===(s=o)||void 0===s?void 0:s.values())||[]));return{cache:{tree:o,flat:i},unscopedCache:{tree:n,flat:r}}};if(!n||n.isCleanedUp()){const{cache:e,unscopedCache:t}=await u();n=new _i({manifest:l,cache:e,unscopedCache:t,highlighter:await(0,An.A)(),hideScrollbars:Vi,showScrollbars:$i,buildTreeCache:u,keyboardTrapsEnabled:o})}n.setKeyboardTrapEscapeState(i,s,a,c),i||Qt.yS.send(Qt._O.background,"tab-record:start")})}var Hi=n(11911),Wi=n.n(Hi);function Ui(e){On.Ay.setupTrees();const t=e.getAttribute("aria-labelledby");if(t){const e=t.split(" ");if(null!=e&&e.length){return e.map(e=>{const t=document.getElementById(e);return t?On.Ay.name(t):""}).join(" ")}}On.Ay.cleanupTrees();const n=e.getAttribute("aria-label");if(n)return On.Ay.sanitize(n);if("FIELDSET"===e.tagName){var r;const t=On.Ay.name(e.firstElementChild);return"LEGEND"===(null===(r=e.firstElementChild)||void 0===r?void 0:r.tagName)&&t}return null}const zi=(e,t)=>{On.Ay.setupTrees();const n=qi(e,!0).filter(e=>e&&On.Ay.isVisible(e)).map(e=>fn(rr(t.get(e))));return On.Ay.cleanupTrees(),n},qi=(e,t=!1)=>{const n=e.getRootNode(),r=e.id?Array.from(n.querySelectorAll(`[for="${e.id}"]`)):[];"FIELDSET"===e.tagName&&e.firstElementChild&&"LEGEND"===e.firstElementChild.tagName&&r.push(e.firstElementChild);const o=e.getAttribute("aria-labelledby"),i=e.getAttribute("aria-describedby"),s=e=>e?e.split(" "):[],a=[...s(o),...s(i)].filter(Boolean).map(e=>n.getElementById(e)),c=[...r,...a].filter(Boolean).map(e=>qi(e)).flat();return[...new Set([...t?[]:[e],...a,...c])]};function Gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gi(Object(n),!0).forEach(function(t){Ki(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ki(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let Xi=1;const Ji=e=>{const t={};return e.forEach(e=>t[e.id]=e.label),t},Zi=(e,t)=>{const n=e.filter(({attributes:e})=>e.name&&"radio"===e.type),r=e.filter(({attributes:e})=>e.name&&"checkbox"===e.type);return[...es(Wi()(n,"attributes.name"),"radio-name",t),...es(Wi()(r,"attributes.name"),"checkbox-name",t)]},Qi=(e,t,n)=>{const r=[],o=function(e,t=document){return Array.from(t.querySelectorAll(e))}(Sn,t.element),i=Zi(e,n);return t&&t.element.matches(Sn)&&o.push(t.element),On.Ay.setupTrees(),o.forEach(t=>{const o=e.filter(e=>{var r,o;return t.contains(e.element)||(null==n||null===(r=n.get(t))||void 0===r||null===(o=r.contains)||void 0===o?void 0:o.call(r,e))});if(!i.some(e=>o.some(t=>e.vnodeIds.includes(t.vnodeId)))&&o.length>1){const e=Ui(t)||"";if(!e)return;const i=o.map(e=>e.selector),s=o.map(e=>e.vnodeId),a=[];o.forEach(t=>{a.push(Yi(Yi({},t),{},{groupId:Xi,groupLabel:e,visibleLabels:zi(t.element,n),groupSelector:i,groupVnodeIds:s}))});const c={selector:i,label:e,vnodeIds:s,id:Xi++,groupType:"semantic",pairings:Ji(a),visibleLabels:t?zi(t,n):[]};a.find(e=>e.groupId===c.id).group=c,r.push(c)}}),On.Ay.cleanupTrees(),r},es=(e,t,n)=>Object.keys(e).reduce((r,o)=>{const i=e[o],s=e=>!i.filter(t=>{var r,o;return!(e.contains(t.element)||null!=n&&null!==(r=n.get(e))&&void 0!==r&&null!==(o=r.contains)&&void 0!==o&&o.call(r,t))}).length;let a,c=i[0].element.closest(Sn);for(;!a&&c;)s(c)&&(a=c),c=c.closest(Sn);if(i.length<2)return r;const l=i.map(e=>e.selector),u=i.map(e=>e.vnodeId),d=a&&Ui(a)||"",f=a?zi(a,n):[];i.forEach(e=>{e.groupId=Xi,e.groupLabel=d,e.groupSelector=l,e.groupVnodeIds=u});const p={selector:l,groupType:t,vnodeIds:u,id:Xi++,name:o,label:d,visibleLabels:f,pairings:Ji(i)};return i[0].group=p,r.push(p),r},[]);function ts(e){const t=e.getAttribute("aria-label");if(t)return t;const n=e.getAttribute("aria-labelledby"),r=n&&n.split(" ");if(n&&r.length)return r.map(e=>document.getElementById(e)).filter(e=>!!e).map(e=>e.innerText).join(" ");const o=e.id&&document.querySelector(`label[for="${e.id}"]`);if(o)return o.innerText;const i=e.closest("label");return i?i.innerText:void 0}function ns(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ns(Object(n),!0).forEach(function(t){os(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ns(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function os(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const is=e=>{var t;const n=rs(rs({},e.properties),{},{disabled:e.element.disabled,multiple:e.element.multiple,placeholder:e.element.placeholder,required:e.element.required});let r={};return e.element.matches(wn)&&(r={label:ts(e.element),type:e.element.type}),rs(rs(rs({},gr(e,{visibleLabels:e.visibleLabels},"accessibleText")),r),{},{properties:n,ancestors:(null===(t=e.ancestors)||void 0===t?void 0:t.map(({vnodeId:e})=>e))||[]})},ss=(e,t)=>{const n=t.selectAll([wn],{isRelativeSelector:!0}).filter(t=>!!t.ancestors.find(t=>t.vnodeId===e.vnodeId)).map(e=>e.element),r=On.Ay.getTabbableElements(e.element);return e.element.matches(wn)&&n.push(e.element),n.filter(e=>On.Ay.isVisible(e,!0)||!(null==r||!r.includes(e)))},as=e=>t=>("form"===t.tagName||"form"===t.attributes.role)&&((e,t)=>ss(e,t).length>0)(t,e),cs=e=>rs(rs({},is(e)),{},{box:Pn(e)});function ls(e){Qt.yS.listen("igt:forms:get-forms",async()=>function(e){On.Ay.setupTrees();const t=e();return On.Ay.cleanupTrees(),t}(()=>{const t=e();return Nr((null==t?void 0:t.values())||[],as(t),!0).map(cs)})),Qt.yS.listen("igt:forms:get-form",async({message:{vnodeId:t}})=>{const n=e().getById(t);return cs(n)}),Qt.yS.listen("igt:forms:get-inputs",async({message:t})=>{const n=e(),r=n.getById(t.selectedForm.vnodeId),o=ss(r,n).map(e=>rs(rs({},n.get(e)),{},{visibleLabels:zi(e,n)})),i=[...Qi(o,r,n),...Zi(o,n)];return{inputs:o.map(e=>{const t=i.find(t=>t.vnodeIds.includes(e.vnodeId)),n=is(e);return t?rs({groupId:t.id,groupLabel:t.label},n):n}),groups:i}}),Qt.yS.listen("igt:forms:get-error-message",async({message:t})=>{const n=e(),{element:r}=n.getById(t.vnodeId),o=r.getAttribute("aria-describedby"),i=o&&o.split(" ");return{errorMessage:i&&i.map(e=>{const t=document.getElementById(e);return t&&t.textContent}).join(" ")}})}function us({getTree:e,getFlatTree:t,buildTree:n}){Qr(e),function(e){Qt.yS.listen("igt:structure:get-headings",async()=>uo(()=>{var t;return Nr((null===(t=e())||void 0===t?void 0:t.values())??[],oo,!0).map(po)})),Qt.yS.listen("igt:structure:get-all-possible-elements",({message:t})=>{var n;On.Ay.setupTrees();const r=(null===(n=e())||void 0===n?void 0:n.values())||[],o=!(null==t||!t.useTextBox),i=Nr(r,()=>!0,!0).map(e=>Hr(e,{useTextBox:o}));return On.Ay.cleanupTrees(),i}),Qt.yS.listen("igt:structure:map-headings",async({message:t})=>{const{vnodes:n=[],props:r={}}=t;if(!Array.isArray(n))return[];const o=(0,On.rJ)();o.teardown(),o.setup();const i=e();return n.map(({vnodeId:e})=>{const t=i.getById(e);return no(no({},po(t)),r)})}),Qt.yS.listen("igt:structure:get-lists",async()=>uo(()=>{var t;return Nr((null===(t=e())||void 0===t?void 0:t.values())??[],io,!0).map(ho)})),Qt.yS.listen("igt:structure:map-lists",async({message:t})=>{const{vnodes:n=[],props:r={}}=t;return Array.isArray(n)?uo(()=>{const t=e();return n.map(({vnodeId:e})=>{const n=t.getById(e);return no(no({},ho(n)),r)})}):[]}),Qt.yS.listen("igt:structure:get-lang-elements",async()=>{const t=await uo(()=>{var t;const n=(null===(t=e())||void 0===t?void 0:t.values())??[];return Promise.all(Nr(n,e=>so(e)&&On.Ay.hasContent(e.element),!0).map(mo))}),n=await uo(()=>{const e=document.body.parentElement;return mo({element:e,children:[],ancestors:[],tagName:"html",vnodeId:-1,attrs:["lang"],attributes:{lang:e.getAttribute("lang")},selector:["html"],properties:{classSelector:"",id:e.getAttribute("id"),tagName:e.tagName,childElementCount:e.childElementCount,tabIndex:parseInt(e.getAttribute("tabIndex"))},depth:0})});return{htmlLangElement:n,langElements:t,documentLang:n.lang||n.detectedLang}}),Qt.yS.listen("igt:structure:map-lang-elements",async({message:t})=>{const{vnodes:n=[],props:r={}}=t;return Array.isArray(n)?await uo(async()=>{const t=e();return await Promise.all(n.map(async({vnodeId:e})=>{const n=t.getById(e);return no(no({},await mo(n)),r)}))}):[]}),Qt.yS.listen("igt:structure:get-title-elements",async()=>{const t=uo(()=>{var t;return Nr((null===(t=e())||void 0===t?void 0:t.values())??[],ao,!0).map(bo)}),n=document.head.querySelector("title");return{frames:t,documentTitle:{title:document.title,source:n?On.Ay.getSource(n):null,selector:[On.Ay.getSelector(n)]}}}),Qt.yS.listen("igt:structure:get-application-elements",async()=>uo(()=>{var t;return Nr((null===(t=e())||void 0===t?void 0:t.values())??[],co,!0).map(yo)})),Qt.yS.listen("igt:structure:get-media-elements",async()=>uo(()=>{var t;return Nr((null===(t=e())||void 0===t?void 0:t.values())??[],lo,!0).map(go)}))}(e),Lo({getTree:e,getFlatTree:t,buildTree:n}),Zo(e,n),Ei(e),Bi(e,n),ls(e),function(e){Qt.yS.listen("igt:ml:debug",({message:t})=>{const{features:n,vnodes:r}=t;On.Ay.setupTrees();const o=e();console.log("Debugging ML","\nLegend:\n - Green/Solid - The feature matched a programmatically identified element\n - Yellow/Dashed - The feature matched an element we did not programmatically identify\n - Orange/Dotted - The feature matched an element with a different role\n - Red/Double - The feature could not find a matching element\n - Black/Ridge - Default color, but this case should not happen\n "),n.forEach(e=>{let t="black 4px ridge";r.some(t=>t.vnodeId===e.vnodeId)?t=e.roleMatches?"green 4px solid":"orange 4px dotted":e.vnodeId?t="yellow 4px dashed":e.vnodeId||(t="red 4px double");const n=o.getById(e.vnodeId),i=document.createElement("div");i.style.position="absolute",i.style.top=`${e.box.y}px`,i.style.left=`${e.box.x}px`,i.style.border=t,i.style.height=`${e.box.height}px`,i.style.width=`${e.box.width}px`,i.style.color="white",i.title=`Type: ${e.type} - Role: ${e.role} - IOU: ${e.iou} - Confidence: ${e.confidence}`,i.style.zIndex="1000000",i.addEventListener("click",()=>{console.log("feature details: ",{feature:e,highlight:i,matchingElement:n?n.element:null,vnode:n?Hr(n):null})}),document.body.appendChild(i)}),On.Ay.cleanupTrees()})}(e)}const ds=["scope"];function fs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ps(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fs(Object(n),!0).forEach(function(t){hs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hs(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ms=nn()("walnut-chrome:content:events");class gs{constructor({treeBuilder:e}={}){this.treeBuilder=e,this.runtimeListener(),this.pageUnLoadListener(),this.cache={},this.highlighter=null,(0,An.A)().then(e=>{this.highlighter=e}),this.autoSetup=!1,this.selected=[],this.axeResult=null,ln.listeners.initContentBridgeListeners(Qt.yS),this.isSameElement=(e,t)=>{if(!e||!t)return!1;if(!this.cache.tree)return null;const n=this.cache.tree.querySelector(e.selector),r=this.cache.tree.querySelector(t.selector);return!(!n||!r)&&n===r},this.findNode=e=>{if(!this.cache.tree)return null;const t=this.cache.tree.querySelector(e.selector);return t&&this.cache.tree.get(t)?JSON.parse(this.cache.tree.safe(this.cache.tree.get(t))):null},Qt.yS.listen("request-axe-results",({message:e})=>this.sendAxeResults(e)),Qt.yS.listen("scope:reset",()=>{this.mouseSelection&&this.mouseSelection.removeAllSelections()}),Qt.yS.listen("guide:check-vitals",async({message:e})=>{await this.buildTree({value:{manifest:{metadata:{tree:e.vitals}}},vitals:e.vitals}),Qt.yS.send(Qt._O.devtools,"guide:check-vitals:complete")}),Qt.yS.listen("hide-scrollbars",()=>this.hideScrollbars()),Qt.yS.listen("show-scrollbars",()=>this.showScrollbars()),Qt.yS.listen("dom-walker-jump",({message:e})=>{Qt.yS.send(Qt._O.devtools,"dom-walker-jump",e)}),Qt.yS.listen("build-virtual-tree",async({message:e})=>await this.buildTree(e,!0)),Qt.yS.listen("groot:find-vnode-by-selector",({message:e})=>{const t=e.key;if(this.cache.tree)try{return this.cache.tree.selectOne(t)}catch{return}}),Qt.yS.listen("selector-search",({message:e})=>{const t=e.key;if(!this.cache.tree)return[];try{const e=this.cache.tree.selectAll([t],{isRelativeSelector:!0}).map(e=>e.vnodeId);return e.length&&Qt.yS.send(Qt._O.devtools,"dom-walker-jump",{value:{vnodeId:e[0]}}),e}catch{return[]}}),Qt.yS.listen("groot:find-vnode",({message:e})=>this.findNode(e)),Qt.yS.listen("groot:get-ids-by-selectors",({message:e=[]})=>{const t=this.cache.flat.reduce((e,t)=>{var n;return e[n=t.selector,n.flat().join("|")]=t.vnodeId,e},{});return e.map(e=>t[e])}),Qt.yS.listen("groot:is-same-element",({message:{vnode:e,compareVnode:t}})=>this.isSameElement(e,t)),Qt.yS.listen("groot:find-same-elements",({message:e})=>{const{vnodes:t=[],compareVNodes:n=[]}=e,r={sameInVNodes:[],sameInCompareVNodes:[],uniqueInVNodes:[]};if(!Array.isArray(t)||!Array.isArray(n))return ms("groot:find-same-elements:invalid-message",{vnodes:t,compareVNodes:n}),r;const o=t.reduce((e,t)=>{const n=this.findNode(t);return n&&e.push(ps(ps({},t),n)),e},[]),i=n.reduce((e,t)=>{const n=this.findNode(t);return n&&e.push(ps(ps({},t),n)),e},[]);for(const e of o){const t=i.findIndex(t=>this.isSameElement(e,t));-1!==t?(r.sameInVNodes.push(e),r.sameInCompareVNodes.push(i[t]),i[t]=null):r.uniqueInVNodes.push(e)}return r.uniqueInCompareVNodes=i.filter(Boolean),r}),Sr(()=>this.cache.tree),us({getTree:()=>this.cache.tree,getFlatTree:()=>this.cache.flat,buildTree:this.buildTree.bind(this)}),this.attachIGTHighlightListeners()}attachIGTHighlightListeners(){Qt.yS.listen("igt:highlight",async({message:e})=>{const{vnodes:t,options:n,vnodeIds:r,scrollIntoView:o=!1}=e;let i=t;!t&&r&&(i=r.map(e=>this.cache.tree.getById(e))),await this.highlightNodes(i,n,o)}),Qt.yS.listen("igt:highlight:remove",async({message:e})=>{const t=await this.getHighlightNodes(e.vnodeIds||[]);for(const e of t)(0,An.A)().then(({highlighters:t})=>{var n;null===(n=t.get(e))||void 0===n||n.destroy()})}),Qt.yS.listen("igt:selection:add",({message:e})=>{this.handleHighlight("addSelection",{theme:"selected",vnodeId:e.vnodeId},{showTooltip:!1},!0)}),Qt.yS.listen("igt:selection:remove",({message:e})=>{this.handleHighlight("removeSelection",{theme:"selected",vnodeId:e.vnodeId})}),Qt.yS.listen("igt:selection:remove-all",async()=>{await this.mouseSelection.removeAllSelections()}),Qt.yS.listen("igt:selections:set",async({message:e})=>{if(e.cleanup){const t=await this.getHighlightNodes(e.vnodeIds||[]);this.selections=t,await this.handleHighlight("setSelections",{vnodeId:[]})}await this.handleHighlight("setSelections",{theme:"selected",vnodeId:e.vnodeIds},e.highlighterOptions||{},e.scrollFirstIntoView??!0)})}pageUnLoadListener(){window.addEventListener("beforeunload",()=>{this.autoSetup&&Qt.yS.unlisten("forms:get-descendant-elements",wr)})}runtimeListener(){Qt.yS.listen(async({topic:e="",message:t})=>{const[n,r]=e.split(":");"guide"===n&&await this.handleTestMessage(ps({type:r},t))})}async sendAxeResults(e){let{scope:t}=e;const n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,ds)||this.axeResult;if(!n)return;const r={};try{r.results=n,r.pageTitle=document.title,r.metadata=dr(),r.metadata.scope=t}catch(e){return{error:{stack:e.stack,message:e.message}}}return r}getScopeVNode(){const e=this.mouseSelection&&this.mouseSelection.selections,t=e&&[...e][0];return t&&this.cache.tree.getById(t)}getScope(){const e=this.getScopeVNode();return e&&e.element||document}customHandler(e){if(this.keyboardTool&&"get-tab-data"===e)return this.keyboardTool.tabData}async handleTestMessage(e){ms("message received:",e);const{type:t,value:n,args:r=[],vitals:o=[]}=e;switch(t){case"clearHighlight":case"setHighlight":case"highlight":case"removeHighlight":case"addSelection":case"removeSelection":case"setSelections":this.handleHighlight(t,n);break;case"refresh-tools":case"build-tree":await this.buildTree({value:n,context:document.body,scope:e.ignoreScope?null:e.scope,vitals:o,includeCrossOrigin:e.includeCrossOrigin});break;case"dom-walker-change":this.handleDomWalkerChange(n);break;case"mouse-selection":(!this.cache.tree||e.rebuildTree&&"disable"!==n)&&await this.buildTree({value:{},includeCrossOrigin:e.includeCrossOrigin}),await this.mouseSelection[n].apply(this.mouseSelection,r.concat([e.manifest])),"disable"===n&&this.mouseSelection.cleanUp();break;case"fire-resize":{const e=new Event("resize");window.dispatchEvent(e);break}case"get-auto-setup":(e=>{Qt.yS.send(Qt._O.devtools,"guide:auto-setup",e)})(this.autoSetup?"start":"stop");break;case"request-axe-results":this.sendAxeResults();break;case"axe-result":this.axeResult=n}}async buildTreeForAnalytics(){await cn();const e={rejectTags:["script","style",Ir.wZ]};return this.treeBuilder.buildTree(e)}async buildTree({value:e,context:t=document.body,scope:n,vitals:r,includeCrossOrigin:o=!1}={},i){const s=e&&"object"==typeof e?e.manifest:e,a=on()(s,"metadata.tree",[]),c=[];let l=!0;await cn(),await Qt.yS.send(Qt._O.devtools,"guided:inject-axe");const u={allowAttrs:["data-.*","aria-.*","method","action","class","id","xlink:href","role","name","src","type","for","title","lang","headers","scope","list"],listeners:{create:o?[]:[xr],update:o?[]:[xr],discard:e=>c.push(e)},rejectTags:["script","style",Ir.wZ],acceptNode:e=>{if(!e.contentWindow)return!0;try{return!!e.contentWindow.axe}catch{return o}}};let d,f;if(o&&this.treeBuilder)d=f=await this.treeBuilder.buildTree(u);else{if(d=new Jt(u),n){const e=[];e.push(()=>d.querySelector(n.selector)),n.fallbackSelector&&e.push(()=>d.querySelector(n.fallbackSelector)),e.push(()=>d.findOne(n,{findOneTimeLimit:2e3}));for(const t of e){const e=t();if(e){n.element=e;break}}n.element?t=n.element:l=!1}ms("Building virtual tree from ",{manifestTree:a}),f=await d.from(a,document.body),null!=n&&n.element&&(f.forEach(e=>{e.element===n.element||e.ancestors.find(e=>e.element===n.element)||f.delete(e.element)}),f.setSeed(n.vnodeId)),c.length&&(({discarded:e,scope:t,groot:n,tree:r,vitals:o=[]})=>{t&&!o.find(e=>e.vnodeId===t.vnodeId)&&o.push(t);const i=o.filter(t=>e.find(e=>e.vnodeId===t.vnodeId));if(!i.length)return;const s=[];s.push(e=>e.fallbackSelector&&n.querySelector(e.fallbackSelector)),s.push(e=>n.findOne(e,{findOneTimeLimit:1e3})),i.every(e=>{for(const t of s){const n=t(e);if(n)return r.has(n)||r.set(n,e),!0}return!1})||Qt.yS.send(Qt._O.devtools,"guide:discarded",{value:i})})({discarded:c,scope:n,groot:d,tree:f,vitals:r})}return this.cache.tree=globalThis.tree=f,this.cache.flat=Array.from(f.values()).map(fn),this.mouseSelection?await this.mouseSelection.update(f,o):this.mouseSelection=new ar(f,s,o),await this.mouseSelection.initHighlighter(),ms("Built virtual tree",this.cache.flat),Qt.yS.send(Qt._O.devtools,"guide:return-tree",{tree:f,scopePresent:l,discarded:c}),i?n&&l?this.cache.tree.safe(this.cache.tree.get(n.element)):null:t}async handleHighlight(e,t,n,r=!1){ms("handleHighlight",{type:e,value:t});let o=["highlight","select"].includes(e)||r;if(!t){return"clear"===("clearHighlight"===e?"clear":"refresh")&&(this.selected=[]),void this.highlighter.clearHighlights()}const{vnodeId:i,theme:s}=t;if(!this.cache.tree||void 0===i)return;const a=[].concat(i),c=await this.getHighlightNodes(a);if("removeHighlight"===e){if(1===c.length&&this.selected.includes(c[0]))return void(0,An.A)().then(({highlighters:e})=>{const[t]=c,n=e.get(t);n.setOptions({showTooltip:!1,showMetadata:!1}),n.updatePosition()});for(const e of c)(0,An.A)().then(({highlighters:t})=>{var n;null===(n=t.get(e))||void 0===n||n.destroy()})}if("removeSelection"===e){this.selected=this.selected.filter(e=>!c.includes(e));for(const e of c)(0,An.A)().then(({highlighters:t})=>{var n;null===(n=t.get(e))||void 0===n||n.destroy()})}"setSelections"===e&&(o=o||1===c.length,await Promise.all(this.selected.map(async e=>{var t;const{highlighters:n}=await(0,An.A)();null===(t=n.get(e))||void 0===t||t.destroy()})),this.selected=c),"addSelection"===e&&this.selected.push(...c);let l=!1;for(const e of c){const t=this.cache.tree.get(e),r=this.highlighter.createHighlighter(e,(null==t?void 0:t.selector)||e.selector);r.highlight(ps({theme:s||"selected",showMetadata:!1,showTooltip:!1},n)),o&&!l&&(r.scrollIntoView(),l=!0)}}async highlightNodes(e,t,n){await(0,An.A)();const r=(e||[]).filter(e=>null!=e),o=await this.getHighlightNodes(r.map(({vnodeId:e})=>e)),i=e=>{if(e.mlOnly)return"ml"};o.forEach((e,o)=>{const s=this.cache.tree.get(e),a=this.highlighter.createHighlighter(e,(null==s?void 0:s.selector)||e.selector);a.highlight(ps(ps({theme:i(r[o])||"selected",showMetadata:!1,showTooltip:!1},t),r[o].highlightOptions)),n&&0===o&&a.scrollIntoView()})}async getHighlightNodes(e){const t=[];for(const n of e){const e=this.cache.tree.getById(n);if(e){const n=await In(e);n&&t.push(n)}}return Promise.all(t)}handleDomWalkerChange(e){var t;const n=this.cache.tree.getById(e.vnodeId);n&&(!0!==e.skipHover&&this.mouseSelection.hover(n),null===(t=this.highlighter.highlighters.get(n.element))||void 0===t||t.scrollIntoView())}hideScrollbars(){this.scrollbarStyle=document.createElement("style"),this.scrollbarStyle.innerHTML="*::-webkit-scrollbar { display: none !important }",document.head.appendChild(this.scrollbarStyle)}showScrollbars(){this.scrollbarStyle&&(document.head.removeChild(this.scrollbarStyle),this.scrollbarStyle=null)}}var ys=n(66884);const bs={listen:(e,t)=>Qt.yS.listen(e,t),unlisten:(e,t)=>Qt.yS.unlisten(e,t),send:(e,t,n)=>(0,en.A)(e,t,n),sendAll:(e,t)=>Qt.yS.send(Qt._O.content,e,t,{allFrames:!0}),sendReply:(e,t)=>Qt.yS.send(Qt._O.content,e,t)},vs=()=>{let e;const t=new Zt({frameMessenger:bs});return(0,ys.$)()&&(e=new gs({treeBuilder:t})),e}},10073(e,t,n){"use strict";n.d(t,{R8:()=>i});let r=console;const o=()=>{const e={NODE_ENV:"production",EDGE:"false",FIREFOX:"false",IS_AXE_PRO:"true",MANIFEST_VERSION:3,E2E:!1,HOT_RELOAD:"false",HOT_RELOAD_PORT:"8098",DOCS_SITE_URL:"https://docs.deque.com/devtools-for-web",ISSUES_URL:"https://docs.deque.com/issue-help/1.0.0/en",AXE_CONFIG_URL:"https://docs.deque.com/devtools-server/4.0.0/en/axe-configuration",MANUAL_ISSUE_URL:"https://docs.deque.com/devtools-for-web/4/en/devtools-manual-issue",WHATS_LEFT_TO_TEST_URL:"https://docs.deque.com/devtools-for-web/4/en/devtools-whatslefttotest",USER_FLOW_URL:"https://docs.deque.com/devtools-for-web/4/en/user-flow-analysis",AXE_PRO_TRIAL_PATH:"/axe-devtools-pro/trial",ENV:"local",AXE_PRO_URL:"http://localhost:1234",USAGE_SERVICE_URL:"https://usage.dequelabs.com",AMPLITUDE_API_KEY:"5faf82a87f563be7741eca93a9cdef37",DOCS_SITE_HOST:"https://docs.dequelabs.com",DATADOG_CLIENT_TOKEN:""}.LOGGING_ENABLED;return"1"===e||"true"===e},i=(...e)=>{o()&&r.warn(...e)}},13205(e,t,n){"use strict";n.d(t,{e:()=>r});const r={4.11:"4.11.4","4.12.0":"4.12.0",4.12:"4.12.1","4.11.4":"4.11.4","4.11.3":"4.11.3","4.9.0":"4.9.0",4.9:"4.9.1","4.9.1":"4.9.1","4.10.0":"4.10.0","4.10":"4.10.3","4.10.1":"4.10.1","4.10.2":"4.10.2","4.10.3":"4.10.3","4.12.1":"4.12.1"}},60857(e,t,n){"use strict";n.d(t,{Aw:()=>s,BN:()=>a,Ew:()=>c,Yw:()=>l,cT:()=>i,jC:()=>r,rD:()=>o});const r="free",o="trialing",i="trial_ended",s="trial_payment_failed",a="paid",c="paid_payment_failed",l="free_payment_failed"},41803(e,t,n){"use strict";n.d(t,{y:()=>o});const{FIREFOX:r}={FIREFOX:"false"};let o;if("true"!==r){const{datadogLogs:e}=n(76551);o=e}},46499(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(23884);let o;async function i(){return(await s()).distinct_id}const s=async()=>{if(o)return o;const{axeServerURL:e,session:t}=await browser.storage.local.get(["axeServerURL","session"]);return o=await(0,r.getDistinctIdCookie)({host:"default"===e?"http://localhost:1234":e,origin:globalThis.location.origin,token:null==t?void 0:t.access_token}),o}},66884(e,t,n){"use strict";n.d(t,{$:()=>r,J:()=>o});const r=(e=window)=>window.top===e,o=e=>e.origin===window.location.origin},882(e,t,n){"use strict";async function r(){const{axeServerURL:e}=await browser.storage.local.get("axeServerURL");return e&&"default"!==e?e:"http://localhost:1234"}n.d(t,{A:()=>r})},91968(e,t,n){"use strict";n.d(t,{vV:()=>c});var r=n(41803),o=n(68280);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c=({originalError:e,message:t,level:n="error",additionalContext:i={},isSerialized:a=!1})=>{if(!o.E9())return;if(a)return void r.y.logger[n](t,s(s({},e),i));const c=(e=>e instanceof Error?e:new Error("Unknown error"+(e?`: ${e}`:"")))(e),l={error:c.message,stack:c.stack,original_error:e};r.y.logger[n](t,s(s({},l),i))}},22395(e,t,n){"use strict";n.d(t,{Ay:()=>a,_o:()=>s});n(1240);var r=n(13205),o=n(77699),i=n.n(o);n(9510);function s(e){if(!e||"latest"===e)return"latest";if(Object.keys(r.e).find(t=>t===e))return e;const t=Object.values(r.e),n=i()(t,`>=${e}`);if(!n)return"latest";const o=Object.entries(r.e);for(const[e,t]of o)if(t===n)return e}function a(e){return Object.keys(r.e).includes(null==e?void 0:e.toString())}},78230(e,t,n){"use strict";n.d(t,{Ay:()=>h,rJ:()=>s,pK:()=>b,gi:()=>y});const r=new Map,o=e=>1===e.length?e[0]:e,i={isHidden:(...e)=>o(e.map(c)),name:(...e)=>o(e.map(a)),getRole:(...e)=>o(e.map(l)),getContrast:(...e)=>o(e.map(u))};function s(e=document.documentElement,t=!1){var n;const o=e.ownerDocument,i=o.defaultView;if(!i)throw new ReferenceError("no context was found for this node");const s=i.axe;if(!s)throw new ReferenceError("axe was not found in this context");const a=null===(n=r.get(s))||void 0===n?void 0:n[0];return(t||!r.has(s)||a&&!s.utils.getNodeFromTree(a,e))&&r.set(s,s.utils.getFlattenedTree(o)),s}function a(e){const t=s(e),n=function(e,t){let n=r.get(e);n||(n=e.utils.getFlattenedTree(t.ownerDocument),r.set(e,n));return e.utils.getNodeFromTree(n[0],t)}(t,e);return n?t.commons.text.accessibleTextVirtual(n):""}function c(e){return s(e).commons.utils.isHidden(e)}function l(e){const t=s(e);return function(e){return!!s(e).utils.getNodeFromTree(e)}(e)?t.commons.aria.getRole(e):null}function u(e){const t=s(e);let n;try{const r=t.commons.color.getForegroundColor(e),o=t.commons.color.getBackgroundColor(e);n=t.commons.color.getContrast(o,r)}catch(e){console.error(e)}return n}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const h=f({sanitize:e=>s().commons.text.sanitize(e),sanitizeContext:g,isValidLang(e){const t=s();return!!e&&t.utils.isValidLang(e)},hasContent(e){const t=s(e),n=O(t,e);return!!n&&t.commons.dom.hasContentVirtual(n)},getRequiredContext(e){const t=s();return e?t.commons.aria.requiredContext(e):[]},isOffscreen:(...e)=>o(e.map(v)),isVisible:(e,t=!1)=>!!e.ownerDocument.defaultView&&o(function(e,t){const n=s(e,t);t&&(n.teardown(),n.setup());return n.commons.dom.isVisible(e,!1,!0)}(e,t)),isSRVisible:(...e)=>o(e.map(w)),isOpaque:(...e)=>o(e.map(x)),getRoleType:(...e)=>o(e.map(S)),runContrastAnalysis:e=>async function(e){const t=s();A();try{var n,r;const o=await t.run(Array.isArray(e)?e.map(g):g(e),{runOnly:{type:"rule",values:["color-contrast"]},restoreScroll:!0,pingWaitTime:5e3,resultTypes:["violations"]}),i=null==o||null===(n=o.violations)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.nodes;return(null==i||null===(r=i.map)||void 0===r?void 0:r.call(i,e=>{const t=e.any[0],n=["fgColor","bgColor","contrastRatio","expectedContrastRatio"],r=parseInt(t.data.fontSize.split(" ")[0]),o="bold"===t.data.fontWeight;return{data:f(f({},Object.fromEntries(Object.entries(t.data).filter(([e])=>n.includes(e)))),{},{fontSize:r,isBold:o}),selector:e.target}}))||[]}catch(e){console.error(e)}finally{m(document.body)}return[]}(e),isWidgetRole:e=>s().commons.aria.lookupTable.rolesOfType.widget.includes(e),isFocusable:(...e)=>o(e.map(E)),getTabbableElements:e=>function(e){const t=s(e,!0),n=O(t,e);return t.commons.dom.getTabbableElements(n).map(({actualNode:e})=>e)}(e),getFlattenedTree:m,getSource(e){if(e.nodeType!==Node.ELEMENT_NODE)return null;return new(s().utils.DqElement)(e).source},getSelector(e){const t=s();return t._selectorData||(t._selectorData=t.utils.getSelectorData(t.utils.getFlattenedTree())),t.utils.getSelector(e)},getElementStack(e,t=!0){const n=s();return t&&(n.teardown(),n.setup()),n.commons.dom.getElementStack(e)},idrefs:(e,t)=>s(e).commons.dom.idrefs(e,t),table:{isRowHeader:e=>s(e).commons.table.isRowHeader(e),isColumnHeader:e=>s(e).commons.table.isColumnHeader(e),toGrid(e){const t=s(e);return t.teardown(),t.setup(),t.commons.table.toGrid(e)},isDataTable:e=>s(e).commons.table.isDataTable(e),getCellPosition:(e,t)=>s(e).commons.table.getCellPosition(e,t),traverse(e,t,n,r){var o;if(null===(o=n[0])||void 0===o||!o[0])return;return s(n[0][0]).commons.table.traverse(e,t,n,r)}},setupTrees:function(){A(),r.clear()},cleanupTrees:A,isAxeSetUp:e=>!!s(e)._tree},i);function m(e){const t=s(),n=t.utils.getFlattenedTree(e.ownerDocument);return r.set(t,n),n}function g(e){if(!e.ownerDocument||e.ownerDocument===document)return e;const t=s();t._selectorData=t.utils.getSelectorData(t.utils.getFlattenedTree());const n=[t.utils.getSelector(e)];let r=e.ownerDocument.defaultView.frameElement;for(;r;)n.unshift(t.utils.getSelector(r)),r=r.contentWindow.parent.frameElement;return n.flat()}function y(e){return!!s(e).utils.getNodeFromTree(e)}function b(e=document.documentElement){try{return!!s(e,!1)}catch{return!1}}function v(e){return s(e).commons.dom.isOffscreen(e)}function w(e){return s(e).commons.dom.isVisible(e,!0,!1)}function S(e){const t=s(e),n=function(e){return s(e).commons.aria.implicitRole(e)}(e),r=t.commons.aria.lookupTable.role[n];return r&&r.type}function O(e,t){let n=r.get(e);return n||(n=e.utils.getFlattenedTree(t.ownerDocument),r.set(e,n)),e.utils.getNodeFromTree(n[0],t)}function x(e){return s(e).commons.dom.isOpaque(e)}function E(e){const t=s(e);return y(e)?t.commons.dom.isFocusable(e):void 0}function A(){r.forEach((e,t)=>{t.teardown(),r.delete(t)})}},95249(e,t,n){"use strict";var r=n(96367),o=n(60119),i=n(66884);function s(e,t){t instanceof URL||(t=new URL(t)),(0,i.J)(t)&&window.postMessage(e,t.origin)}r.yS.listen("init",({message:e})=>{0});var a=n(13205);function c(e="latest"){if("latest"===e||!e)return window.axe;const t=a.e[e];return window.axeVersions[t]||window.axe}var l=n(78230),u=n(43955),d=n(31146),f=n(10884),p=n(882);function h(e){if(!Array.isArray(e))return e;const t=[];let n=!1,r=[];for(let o=e.length-1;o>=0;o--){const i=e[o];Array.isArray(i)?"shadow-root"===i[0]&&(n=!0,r.push(i[1])):!0===n?(r.push(i),n=!1,r.reverse(),t.push(r),r=[]):t.push(i)}return t.reverse()}function m(e){if(e&&e.children)for(const n of e.children){var t;if(n.isFrame&&null!==(t=n.children[0])&&void 0!==t&&t.isCrossOrigin||m(n))return!0}return!1}function g(e){return!!e&&m(e)}function y(e){return!!e&&e.flat.some(e=>e.isCrossOrigin)}n.dn(h);var b=n(91968);const v=async(e,t,n)=>{if(e)try{await r.yS.send(r._O.background,t,n)}catch(e){(0,b.vV)({originalError:e,message:`Failed sending ${t} message to MCP server`,level:"error"})}};const w="precise",S="balanced",O="thorough";var x=n(61740);const E={key:S,label:x.Ay`Balanced (70%+ confidence)`,labelDescription:x.Ay`Recommended for most testing`,value:.7};x.Ay`Precise (90%+ confidence)`,x.Ay`Shows fewer issues, all highly reliable`,x.Ay`Thorough (50%+ confidence)`,x.Ay`Shows more potential issues, some may be false alarms`;var A=n(22395);const T=["include","axeVersion","mcpEnabled","enableExperimentalRules","enableRecorder","enableAdvancedRules","aiDisabled","failConfidenceThreshold"],C=["axeVersion"];function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach(function(t){P(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function P(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const k="Unable to find the selected element on the page. The element may have been removed or modified. Please re-select the element and try again.";let R,_;{const{default:e}=n(16275);({default:_}=n(86739)),R=e()}const M=()=>{var e,t,n;return{contentType:null===(e=document)||void 0===e?void 0:e.contentType,title:null===(t=document)||void 0===t?void 0:t.title,url:null===(n=document)||void 0===n?void 0:n.URL,scoped:!!R&&R.getScope()!==document}};r.yS.listen("axe:add-version",({message:{axeVersion:e,enableRecorder:t}})=>{const n=(0,f.A)(e).then(n=>{if(n&&t&&_){const t=c(e);t&&_.addRecorderToAxe(t,{bridge:r.yS})}return n});if((0,i.$)())return n}),r.yS.listen("axe:run",async e=>{var t;let{message:{include:n,axeVersion:o,mcpEnabled:a=!1,enableExperimentalRules:f,enableRecorder:m,enableAdvancedRules:g=!1,aiDisabled:b,failConfidenceThreshold:w=E.value}}=e,S=j(e.message,T);const O=a?(0,A._o)(o):o,x=c(O),C=[];a&&o&&O!==o&&C.push(`Incompatible axe-core version set in axe Configuration, ${o}, running analysis with closest version, ${O}`);const I=(e,t,n)=>e.reduce((e,r)=>(n&&r.tags.includes(n)||(e[r.ruleId]={enabled:t}),e),{}),P=f?I(x.getRules(["experimental"]),!0,"advanced"):{},_=I(x.getRules(["advanced"]),g,f?void 0:"experimental"),{clearHighlights:D}=await(0,u.A)();D();const L=N(N({restoreScroll:!0,pingWaitTime:5e3,resultTypes:["violations","incomplete"],advanced:{aiDisabled:b,attachDebugger:!1,screenshot:!1,failConfidenceThreshold:w}},S),{},{rules:N(N(N({},P),_),S.rules)}),F=N({results:null,error:null,pageURL:null===(t=document)||void 0===t?void 0:t.URL,axeRunOptions:L},C.length>0&&{messages:C});try{var V,$,B;let e,t,r,o;l.Ay.cleanupTrees(),g&&m&&(0,i.$)()&&(e=document.documentElement.scrollLeft,t=document.documentElement.scrollTop,window.scrollTo(e,0));const a=null===(V=R)||void 0===V?void 0:V.getScopeVNode();if(S.includeCrossOrigin){if(r=n||(null==a?void 0:a.selector)||document,r!==document){const e=h(r);if(Array.isArray(e)&&e.length>1)r=e;else{const{element:e,usedSelector:t}=((e,t)=>{const n=h(e),r=(0,d.A)(Array.isArray(n)?n:[n]);if(r)return{element:r,usedSelector:n};if(!t)return{element:null,usedSelector:null};const o=h(t);return{element:(0,d.A)(Array.isArray(o)?o:[o]),usedSelector:o}})(r,null==a?void 0:a.fallbackSelector);if(!e)throw new Error(k);r=t}}}else{var H;let e=null;n&&(e=Array.isArray(n)?n:[n]);const t=e?(0,d.A)(e):null;if(e&&!t)throw new Error(k);if(o=t||(null===(H=R)||void 0===H?void 0:H.getScope()),!o&&null!=a&&a.fallbackSelector&&(o=(0,d.A)(a.fallbackSelector)),!o&&null!=a&&a.selector)throw new Error(k);o=o||document,r=null===l.Ay||void 0===l.Ay?void 0:l.Ay.sanitizeContext(o)}const c=await x.run([r],L);"number"==typeof e&&"number"==typeof t&&window.scrollTo(e,t),l.Ay.getFlattenedTree((null===($=o)||void 0===$?void 0:$.documentElement)||(null===(B=o)||void 0===B||null===(B=B.ownerDocument)||void 0===B?void 0:B.documentElement)||document.documentElement),!g&&null!=c&&c.advancedRuleInput&&delete c.advancedRuleInput,(async()=>{try{s({message:"walkthrough:scanned"},await(0,p.A)())}catch{}})(),F.results=c}catch(e){const t={message:e.message||"Unknown Error",stack:e.stack||""};F.error=t}if(a&&F.results){var W;const e=y(await(null===(W=R)||void 0===W?void 0:W.buildTreeForAnalytics()));await r.yS.send(r._O.devtools,"mcp:analyze-analytics",{results:F.results,documentMetadata:M(),experimental:f,hasCrossOriginIframes:e})}return await v(a,"mcp:axe-results",F),F}),r.yS.listen("axe:get-analytics",async({message:e})=>{var t;let n,r=!1,o=!1,i=null===(t=R)||void 0===t?void 0:t.getScopeVNode();var s;!i&&null!=e&&e.include&&(n=await(null===(s=R)||void 0===s?void 0:s.buildTreeForAnalytics()),i=function(e,t){if(!e||!t)return null;const n=e.querySelector(t);return e.get(n)||null}(n,e.include));if(i){var a;r=i.isCrossOrigin||!!i.isFrame&&(null===(a=i.children[0])||void 0===a?void 0:a.isCrossOrigin),o=g(i)}else{var c;if(!n)n=await(null===(c=R)||void 0===c?void 0:c.buildTreeForAnalytics());o=y(n)}return{isCrossOrigin:r,hasCrossOriginIframes:o}}),r.yS.listen("axe:configure",e=>{let{message:{axeVersion:t}}=e,n=j(e.message,C);const r=c(t);return null==r?void 0:r.configure(n)}),r.yS.listen("axe:reset-locale",({message:e})=>{var t;const n=c(e);null!=n&&n.resetLocale?n.resetLocale():null!=n&&null!==(t=n._audit)&&void 0!==t&&t._resetLocale&&n._audit._resetLocale()}),r.yS.listen("axe:version",()=>c().version),r.yS.listen("axe:ping",({message:e})=>new Promise(t=>{setTimeout(()=>{t(!1),clearInterval(n)},500);const n=setInterval(()=>{c(e)&&(t(!0),clearInterval(n),clearTimeout(t))},100)})),r.yS.listen("get-document-metadata",M),r.yS.listen("extension:logout",async()=>{const{axeServerURL:e}=await browser.storage.local.get("axeServerURL");s({message:"extension:logout"},e&&"default"!==e?e:"http://localhost:1234")});var D=n(23569),L=n.n(D);function F(e,t=!0){const n=e.ownerDocument.defaultView,r=(0,i.$)(n),o=e,s=o.getBoundingClientRect(),a=!s.height||!s.width,c=n.getComputedStyle(o)||{};let l=n.frameElement,u=s,d=u.top+(r?n.pageYOffset:0),f=u.left+(r?n.pageXOffset:0),p=d,h=f;if(l)for(p=u.top,h=u.left,d=u.top,f=u.left;l&&t;){const{frameElement:e,pageYOffset:t,pageXOffset:n}=l.ownerDocument.defaultView,r=(0,i.$)(l.ownerDocument.defaultView),o=window.getComputedStyle(l),s=Math.max(parseFloat(o.borderLeftWidth),0),a=Math.max(parseFloat(o.borderTopWidth),0);u=l.getBoundingClientRect(),p+=u.top+a+(r?t:0),h+=u.left+s+(r?n:0),l=e}const m=n.frameElement?{top:p-window.pageYOffset,left:h-window.pageXOffset,height:s.height,width:s.width}:s,g=function(e,t=window.visualViewport||{width:window.innerWidth,height:window.innerWidth}){return{top:e.top+e.height<0,bottom:e.top>t.height,left:e.left+e.width<0,right:e.left>t.width}}(m),y=function(e,t={height:document.documentElement.scrollHeight,width:document.documentElement.scrollWidth}){return{top:e.top+e.height+(window.scrollY||window.pageYOffset)<0,bottom:e.top>t.height,left:e.left+e.width+(window.scrollX||window.pageXOffset)<0,right:e.left>t.width}}(m),b=e=>+e?.replace("px","")||0,{height:v,width:w}=n.visualViewport||{width:n.innerWidth,height:n.innerHeight};return{hidden:a,offViewport:g.top||g.bottom||g.left||g.right,offscreen:y.top||y.bottom||y.left||y.right,offscreenTop:y.top,offscreenBottom:y.bottom,offscreenLeft:y.left,offscreenRight:y.right,fullscreen:p<=0&&h<=0&&s.width>=w&&s.height>=v,top:p,left:h,offsetTop:d,offsetLeft:f,width:s.width,height:s.height,margin:{top:b(c.marginTop),right:b(c.marginRight),bottom:b(c.marginBottom),left:b(c.marginLeft)},border:{top:b(c.borderTopWidth),right:b(c.borderRightWidth),bottom:b(c.borderBottomWidth),left:b(c.borderLeftWidth)},padding:{top:b(c.paddingTop),right:b(c.paddingRight),bottom:b(c.paddingBottom),left:b(c.paddingLeft)}}}var V=n(33381);r.yS.listen("highlight",async({message:e={}})=>{const{createHighlighter:t,clearHighlights:n}=await(0,u.A)();let o=null;if(e&&e.selector?o=e.selector:Array.isArray(e)&&(o=e),n(),o){const n=(0,d.A)(o);let i=null;if(!n&&o.length>1){if(i=await(0,V.A)(o),!i)return!1}else if(!n)return!1;const s=t(n||i,o),{highlightTheme:a}=await browser.storage.local.get("highlightTheme");return s.highlight({theme:a||"high-contrast"}),e.scrollIntoView&&(n?s.scrollIntoView():await r.yS.send(r._O.content,"highlight:scrollIntoView",{selector:[o[o.length-1]]},{frameId:i.frameId})),!0}return!1});const $=async()=>{(await(0,u.A)()).clearHighlights()};if(r.yS.listen("highlight:hide",async()=>{(await(0,u.A)()).hideHighlights()}),r.yS.listen("highlight:show",async()=>{(await(0,u.A)()).showHighlights()}),r.yS.listen("highlight:clear",$),r.yS.listen("devtools:close",$),r.yS.listen("highlight:get-element-layout",({message:{selector:e}})=>{const t=(0,d.A)(e);return t?F(t,!1):{top:0,left:0}}),!(0,i.$)()){const e=L()(()=>r.yS.send(r._O.content,"highlight:update"),100);window.addEventListener("scroll",e,!0),window.addEventListener("beforeunload",()=>{window.removeEventListener("scroll",e)}),r.yS.listen("highlight:get-node-metadata",async({message:{selector:e}})=>{const t=(0,d.A)(e);return t?{tagName:t.tagName,classList:Array.from(t.classList),attributes:{id:t.getAttribute("id")}}:{tagName:"unknown",classList:[],attributes:{}}}),r.yS.listen("highlight:scrollIntoView",({message:{selector:e}})=>{const t=(0,d.A)(e);null==t||t.scrollIntoView({block:"center",behavior:"smooth",inline:"nearest"})})}r.yS.listen("highlight:update",async()=>{const{highlighters:e,updateHighlighters:t}=await(0,u.A)(),n=Array.from(e.keys()).filter(e=>e.frameId);e.size&&(await Promise.all(n.map(async t=>{const n=await(0,V.A)(t.selector);if(n){const r=e.get(t);r.target=n,e.set(n,r)}e.delete(t)})),t())}),(0,i.$)()&&(async()=>{const{emitter:e,highlightHidden:t}=await(0,u.A)();e.on("highlighter:change",async()=>{const{highlighters:e}=await(0,u.A)(),n=globalThis.tree,o=Array.from(e).map(([e,r])=>{var o;return{vnodeId:null==n||null===(o=n.get(e))||void 0===o?void 0:o.vnodeId,selector:r.selector,theme:r.theme,hidden:r.axeHighlighter.classList.contains(t)}});r.yS.send(r._O.devtools,"highlight:changed",o)})})();function B(e){const t=e.reduce((e,t)=>e.done?(e.residual.push(t),e):(Array.isArray(t)&&"shadow-root"===t[0]?e.selector.push(t[1]):e.selector.length?(e.residual.push(t),e.done=!0):e.selector.push(t),e),{selector:[],residual:[],done:!1});return{node:t.selector.flat().reduce((e,t)=>{const n=(null==e?void 0:e.shadowRoot)||e;return null==n?void 0:n.querySelector(t)},document),context:t.selector,residual:t.residual}}function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach(function(t){U(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function U(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(async()=>{const{axeServerURL:e}=await browser.storage.local.get("axeServerURL"),t=e&&"default"!==e?e:"http://localhost:1234";window.addEventListener("message",e=>{"extension:healthcheck"===e.data.message&&s({message:"extension:healthcheck:response"},t)})})(),r.yS.listen("node:exists",async({message:e})=>{const{selector:t}=e,n=(0,d.A)(t);return null!=n}),r.yS.listen("nodes:exist-in-axe-tree",async({message:e})=>{const{nodes:t}=e;return Object.fromEntries(t.map(({vnodeId:e,selector:t})=>{const n=(0,d.A)(t);return[e,!!n&&(0,l.gi)(n)]}))}),r.yS.listen("node:get-info",async({message:{selector:e}})=>{const t=(0,d.A)(e);return{name:l.Ay.name(t),role:l.Ay.getRole(t)}}),r.yS.listen("node:color-contrast",async({message:e})=>{const{nodes:t}=e,n=new Map;for(const{selector:e,vnodeId:r}of t)n.set((0,d.A)(e),r);const{clearHighlights:r}=await(0,u.A)();r();const o=await l.Ay.runContrastAnalysis(Object.values(n)),i={};for(const{selector:e,data:t}of o){i[n.get((0,d.A)(e))]=t}return i});const z=e=>"contentWindow"in e,q={x:0,y:0,top:0,left:0,height:0,width:0},G=(e,t)=>{if(null!=t&&t.scrollIntoView){const n=new Map,r={key:"scroll-behavior",value:"auto"};let o=e.parentElement;for(;o;){const e=window.getComputedStyle(o);if(e.scrollBehavior&&e.scrollBehavior!==r.value){const e=o.style.getPropertyValue(r.key),t=o.style.getPropertyPriority(r.key);n.set(o,{style:e,priority:t}),o.style.setProperty(r.key,r.value,"important")}o=o.parentElement}e.scrollIntoView("object"==typeof t.scrollIntoView?t.scrollIntoView:{behavior:"auto",block:"center",inline:"center"});for(const[e,t]of n)e.style.setProperty(r.key,t.style,t.priority)}},Y=e=>{const t=0===e.width?10:0,n=0===e.height?10:0;return 0===t&&0===n?e:{x:e.x-t,y:e.y-n,left:e.left-t,top:e.top-n,right:e.right+t,bottom:e.bottom+n,width:e.width+2*t,height:e.height+2*n}},K=(e,t,n)=>{const r=window.getComputedStyle(e),o=Math.max(parseFloat(r.borderLeftWidth),0),i=Math.max(parseFloat(r.borderTopWidth),0),s=Math.max(parseFloat(r.paddingLeft),0),a=Math.max(parseFloat(r.paddingTop),0),c=t.x+n.x+o+s,l=t.y+n.y+i+a,u=t.left+n.left+o+s,d=t.top+n.top+i+a;return{x:c,y:l,left:u,top:d,right:u+n.width,bottom:d+n.height,width:n.width,height:n.height}};r.yS.listen("node:bounding-box",async({message:e})=>{const{selector:t,options:n}=e,{node:r,residual:i}=B(t),s=!1!==(null==n?void 0:n.padCollapsedRect),a=!0===(null==n?void 0:n.includePageScroll),c=e=>a?{rect:e,scroll:{x:window.scrollX,y:window.scrollY}}:e;if(null==r)return a?{rect:null,scroll:{x:window.scrollX,y:window.scrollY}}:q;if(z(r)&&null!=i&&i.length){const e=await(0,o.A)(r.contentWindow,"node:bounding-box",{selector:i,options:a?W(W({},n),{},{includePageScroll:!1}):n}),t=K(r,r.getBoundingClientRect(),e);return c(s?Y(t):t)}G(r,n);const l=r.getBoundingClientRect();return c(s?Y(l):l)}),r.yS.listen("node:get-text-selector",async({message:e})=>{const{selector:t}=e,{node:n,residual:r}=B(t);if(null==n)return t;if(z(n)&&null!=r&&r.length)return[...t,...await(0,o.A)(n.contentWindow,"node:get-text-selector",{selector:r})];if("SELECT"===(s=n).tagName&&"options"in s){const e=l.Ay.getElementStack(n);if(e[0]===n)return t;const r=n.options[n.selectedIndex].text||n.options[n.selectedIndex].value;for(const t of e){var i;if("innerText"in t&&(null===(i=t.innerText)||void 0===i?void 0:i.trim())===r)return[l.Ay.getSelector(t)]}}var s;return t}),r.yS.listen("node:bounding-box-text",async({message:e})=>{const{selector:t,options:n}=e,{node:r,residual:i}=B(t);if(null==r)return q;if(G(r,n),z(r)&&null!=i&&i.length){const e=r.getBoundingClientRect(),t=await(0,o.A)(r.contentWindow,"node:bounding-box-text",{selector:i,options:n});return K(r,e,t)}const s=document.createRange();s.selectNodeContents(r);return s.getBoundingClientRect()}),r.yS.listen("node:computed-text-color",async({message:e})=>{const{selector:t}=e,{node:n,residual:r}=B(t);return z(n)&&null!=r&&r.length?await(0,o.A)(n.contentWindow,"node:computed-text-color",{selector:r}):window.getComputedStyle(n).color});const X=new WeakMap,J=new WeakMap,Z={color:"transparent"},Q={webkitTransition:"none",transition:"none"};r.yS.listen("node:set-transparent-text",async({message:e})=>{const{selector:t}=e,{node:n,residual:r}=B(t);if(null!=n)if(z(n)&&null!=r&&r.length)await(0,o.A)(n.contentWindow,"node:set-transparent-text",{selector:r});else{const e=async e=>{const t={},n={};for(const[r]of Object.entries(Q))t[r]=e.style.getPropertyValue(r),n[r]=e.style.getPropertyPriority(r);for(const[t,n]of Object.entries(Q))e.style.setProperty(t,n,"important");await new Promise(r=>setTimeout(()=>{for(const[r,o]of Object.entries(Z))t[r]=e.style.getPropertyValue(r),n[r]=e.style.getPropertyPriority(r),e.style.setProperty(r,o,"important");r()},1));const r=window.getComputedStyle(e),o=["background","backgroundImage"];if("text"===r.webkitBackgroundClip||"text"===r.backgroundClip)for(const r of o)t[r]=e.style.getPropertyValue(r),n[r]=e.style.getPropertyPriority(r),e.style.setProperty(r,"none","important");X.set(e,t),J.set(e,n)};await e(n);for(const t of Array.from(n.children))await e(t)}}),r.yS.listen("node:set-transparent-text-reset",async({message:e})=>{const{selector:t}=e,{node:n,residual:r}=B(t);if(null!=n)if(z(n)&&null!=r&&r.length)await(0,o.A)(n.contentWindow,"node:set-transparent-text-reset",{selector:r});else{const e=async e=>{const t=X.get(e)||{},n=J.get(e)||{};for(const r of Object.keys(t))r in Q||e.style.setProperty(r,t[r],n[r]);await new Promise(r=>setTimeout(()=>{for(const r of Object.keys(Q))r in t&&e.style.setProperty(r,t[r],n[r]);r()},1))};await e(n);for(const t of Array.from(n.children))await e(t)}}),r.yS.listen("node:is-valid-auto-cc-target",async({message:{selector:e}})=>{const{node:t,residual:n}=B(e);if(null!=t){if(z(t)&&null!=n&&n.length)return(0,o.A)(t.contentWindow,"node:is-valid-auto-cc-target",{selector:n});{if(!t.children.length)return!0;const e=window.getComputedStyle(t).color;return!Array.from(t.children).find(t=>window.getComputedStyle(t).color!==e)}}}),r.yS.listen("node:focus",async({message:e})=>{const{selector:t,timeout:n=5e3}=e,{node:r,residual:i}=B(t);null!=r&&(z(r)&&null!=i&&i.length?await(0,o.A)(r.contentWindow,"node:focus",{selector:i}):await Promise.race([Promise.all([r.focus(),...r.getAnimations({subtree:!0}).map(e=>e.finished)]),new Promise(e=>setTimeout(e,n))]))}),r.yS.listen("node:reset-focus",()=>{document.activeElement&&document.activeElement.blur()}),r.yS.listen("selector:identify",async({message:e})=>{const{selector:t}=e,{node:n,context:r,residual:i}=B(t),s=n.contentWindow,a=[{selector:r,frameId:window.frameId,frameURL:window.location.href}];if(s&&null!=i&&i.length){const e=await(0,o.A)(s,"selector:identify",{selector:i});a.push(...e)}return a}),r.yS.listen("control:viewport",()=>({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,scrollX:window.scrollX,scrollY:window.scrollY,dpr:window.devicePixelRatio,url:window.location.href})),r.yS.listen("control:currentScroll",()=>document.documentElement.scrollTop),r.yS.listen("control:scrollToTop",({message:e})=>{window.scrollTo((null==e?void 0:e.x)||0,(null==e?void 0:e.y)||0)});const ee=async({message:e})=>{let t={x:0,y:0,width:0,height:0};if(null==e||!e.selector)return t;const{node:n,residual:r}=B(e.selector);if(!n)return t;const i=n.getBoundingClientRect();if(t={x:i.x,y:i.y,width:i.width,height:i.height},null==r||!r.length)return t;const s=await(0,o.A)(n.contentWindow,"control:boundingbox:content",{selector:r});if(!s)return t;const a=window.getComputedStyle(n);return t.x+=s.x+Math.max(parseFloat(a.borderLeftWidth),0),t.y+=s.y+Math.max(parseFloat(a.borderTopWidth),0),t.width=s.width,t.height=s.height,t};(0,i.$)()?r.yS.listen("control:boundingbox:top",ee):r.yS.listen("control:boundingbox:content",ee);var te=n(76058);const ne=(0,i.$)(),re=e=>{var t,n;return(null===(t=e.tagName)||void 0===t?void 0:t.toLowerCase())===te.wZ||(null===(n=e.getRootNode())||void 0===n||null===(n=n.host)||void 0===n?void 0:n.tagName.toLowerCase())===te.wZ},oe=e=>!!e.flatMap(e=>[...Array.from(e.addedNodes),...Array.from(e.removedNodes)]).find(e=>!re(e)),ie=e=>!!e.find(e=>!re(e.target)),se=async e=>{(e=>{if(e.find(e=>!["childList","attributes"].includes(e.type)))return!0;const t=e.filter(e=>"childList"===e.type),n=e.filter(e=>"attributes"===e.type);return oe(t)||ie(n)})(e)&&await r.yS.send(r._O.devtools,"page-observer:mutated",{isTop:ne})};let ae=null;r.yS.listen("page-observer:start",async()=>{ae||(ae=new MutationObserver(se),ae.observe(document.body,{attributes:!0,subtree:!0,childList:!0}))}),r.yS.listen("page-observer:end",async()=>{var e;null===(e=ae)||void 0===e||e.disconnect(),ae=null}),document.addEventListener("beforeunload",()=>{ae.disconnect(),ae=null});const ce="customIntegrationConnectionLink";(0,o.T)(),r.yS.listen("custom-integration:fetch-state",async()=>{const{[ce]:e}=await browser.storage.local.get(ce);return browser.storage.local.remove(ce),e});const le=async()=>{let e;const{axeServerURL:t}=await browser.storage.local.get(["axeServerURL"]);try{e=new URL(t&&"default"!==t?t:"http://localhost:1234")}catch{e=new URL("http://localhost:1234")}return e},ue=async e=>{const t=await le();try{s({message:e},t)}catch{}},de=async e=>{const t=await le(),n=URL.parse(e.origin);if(t.origin===(null==n?void 0:n.origin))switch(e.data.message){case"app:logout":r.yS.send(r._O.background,"app:logout");break;case"app:plan:change":r.yS.send(r._O.background,"app:plan:change");break;case"walkthrough:check:open":await r.yS.send(r._O.devtools,"panel:is:open")&&ue("walkthrough:opened");break;case"extension:custom-integration:launch":(()=>{const e=new URLSearchParams(location.search),t=e.get("testId"),n=e.get("url");(null==t?void 0:t.length)<=255&&(browser.storage.local.set({[ce]:{testId:t,url:n}}),r.yS.send(r._O.devtools,"custom-integration:launch",{testId:t,url:n}))})()}};(0,i.$)()&&(window.addEventListener("message",de),r.yS.listen("walkthrough:panel-open:status",()=>{ue("walkthrough:opened")}),r.yS.listen("walkthrough:test-saved:status",()=>{ue("walkthrough:saved")}),r.yS.listen("walkthrough:igt-completed:status",()=>{ue("walkthrough:igt:completed")}))},31146(e,t,n){"use strict";function r(e){return e.map(e=>Array.isArray(e)?e.filter(e=>"shadow-root"!==e):"shadow-root"===e?"":e).flat().reduce((e,t)=>{const n=(null==e?void 0:e.contentDocument)||(null==e?void 0:e.shadowRoot)||e;return null==n?void 0:n.querySelector(t)},document)}n.d(t,{A:()=>r})},68280(e,t,n){"use strict";n.d(t,{E9:()=>de});var r=n(53940),o=n(9510),i=n(96367),s=n(81305),a=n(10073),c=n(60857),l=n(46499),u=n(41803),d=n(91968);const f=["event"];function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const{AMPLITUDE_API_KEY:g,DATADOG_CLIENT_TOKEN:y,NODE_ENV:b}={NODE_ENV:"production",AMPLITUDE_API_KEY:"5faf82a87f563be7741eca93a9cdef37",DATADOG_CLIENT_TOKEN:""};let v;try{var w;const e=n(75478);v=null!==(w=e.default)&&void 0!==w&&w.getInstance?e.default.getInstance():e.getInstance()}catch{}const S=()=>!!v&&!0,O="enterpriseId",x="conversion:install",E="conversion:uninstall",A="user:login",T="user:open",C="analysis:analyze",I="record:delete",N="record:rename",P="analysis:complete",j="analysis:ai:request:fail",k="analysis:userCorrection",R="issues:export",_="issue:inspected",M="issue:relatedInspected",D="issue:toggleHighlight",L="issue:moreInfo",F="ml:suggestedInteractiveElement",V="ml:suggestedInteractiveElementRejected",$="ml:missedInteractiveElement",B="ml:suggestedRole",H="ml:suggestedRoleAccepted",W="ml:suggestedRoleRejected",U="ml:suggestedTableHeader",z="ml:suggestedTableHeaderRejected",q="conversion:click:scanPart",G="conversion:click:saveTest",Y="conversion:click:export",K="conversion:click:shareIssue",X="analysis:startUFA",J=(e=[],t)=>e.filter(({impact:e})=>e===t).reduce((e,{nodes:t})=>e+((null==t?void 0:t.length)||1),0),Z=e=>{try{const t=new URL(e);return"localhost"===t.hostname||!!t.port||"file://"===t.origin}catch{return!1}},Q=e=>{if(void 0===e)return;const t=Array.from(new Set(e.map(e=>e.rule||e.id))),n={failedRuleCount:t.length,failedRuleNames:t,criticalIssueCount:J(e,"critical"),seriousIssueCount:J(e,"serious"),moderateIssueCount:J(e,"moderate"),minorIssueCount:J(e,"minor")};if(e.length&&Array.isArray(e[0].nodes)){const t=e.reduce((e,t)=>e+t.nodes.length,0);n.failedItemCount=t}return n},ee=async(e,t=!1)=>{const n=await(0,s.O)(),r=t?e.productName:n.productName,o=t?e.productComponent:n.productComponent,i=h(h({},e),{},{productName:r,productComponent:o});if(S())try{let{event:e}=i,t=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(i,f);ue(e,t)}catch(e){a.R8("Analytics Data Error",{error:e.message,stack:e.stack})}try{n.postEvent(i)}catch(e){a.R8("Usage Data Error",{error:e.message,stack:e.stack})}},te=e=>{let t="anonymous";switch(null==e?void 0:e.status){case c.rD:t="trial";break;case c.BN:case c.Ew:case c.cT:case c.Aw:case c.jC:case c.Yw:t=e.status}return t},ne=async(e=[])=>{var t;let n,s,a,c;if("devtools"in browser)try{({contentType:n,title:s,url:a,scoped:c}=await i.yS.send(i._O.content,"get-document-metadata"))}catch(e){(0,d.vV)({message:"Unable to get document metadata",originalError:e})}const{usageOrganization:u,usageDepartment:f,usageApplication:p,user:m,cachedUserCompany:g,axeSettings:y,userJobRole:b,cachedUserEmail:v}=await browser.storage.local.get(["usageOrganization","usageDepartment","usageApplication","user","cachedUserCompany","axeSettings","userJobRole","cachedUserEmail"]),w=!(!m||!m.id);return{distinctId:await(0,l.A)(),organization:u||((null==m?void 0:m.company)||g||""),department:f||"",application:p||"",userStatus:te(m),loggedIn:w,devInstance:Z(a),keycloakId:m&&m.id,userId:m&&m.username||v,userJobRole:b||"Anonymous",enterpriseId:null==m||null===(t=m.enterprise)||void 0===t?void 0:t.id,productName:"axe-pro",productComponent:"extension",productComponentVersion:o.rE,applicationProperties:h({engineVersion:r.rE,scoped:c,target:a,targetMedium:n,targetState:s,experimental:!1,rulesetName:(null==y?void 0:y.ruleset)||"all",bestPractices:!!y&&!!y.enableBestPractices},Q(e))}},re=e=>async function(t,n){const r=await ne(t);if(!n)return ee(h(h({},r),{},{event:e}));ee(h(h({},r),{},{event:e,applicationProperties:h(h({},r.applicationProperties),n)}))},oe=e=>t=>re(e)(void 0,t),ie=(re("issue:viewed"),oe(_),oe(M),oe(D),oe(L),re(I),re(N),re(x),re(E),re(A),re(T),(e,t="interactive-elements")=>n=>re(e)(void 0,h({eventTool:t},n)));ie(F),ie(V),ie($),ie(B),ie(H),ie(W),ie(j),ie(k),ie(U,"table"),ie(z,"table"),re(q),re(G),re(Y),re(K),re(X);let se=!1,ae=!1;const ce=async()=>{if(se||!S())return;const e=await(0,l.A)();v.init(g,void 0,{deviceId:e,includeUtm:!0,saveParamsReferrerOncePerSession:!1,includeGclid:!0,includeReferrer:!0,secureCookie:!0,sameSiteCookie:"Lax"}),se=!0},le=async()=>{if(void 0!==globalThis.document&&void 0!==globalThis.XMLHttpRequest){if(ae||!u.y)return!0;u.y.init({clientToken:y,site:"datadoghq.com",service:"axe-extension",env:b,version:o.rE,beforeSend:e=>{var t;if(0===(null==e||null===(t=e.http)||void 0===t?void 0:t.status_code))return!1}}),ae=!0}},ue=async(e,t={})=>{if(!S())return;await(async()=>{await Promise.all([ce(),le()])})();let n={};switch(e){case C:n={analyze:1};break;case P:n={complete:1};break;case R:n={export:1}}await(async(e={})=>{var t;if(!S())return;const{user:n,userJobRole:r="",usageOrganization:o="",cachedUserCompany:i,axeSettings:s,highlightTheme:a,theme:c,locale:l,policySettings:u,axeServerURL:d,firstView:f,exportFormat:p}=await browser.storage.local.get(["user","userJobRole","usageOrganization","cachedUserCompany","axeSettings","highlightTheme","theme","locale","policySettings","axeServerURL","firstView","exportFormat"]);v.setUserId(n&&n.id);const m=n&&n.id,g=null==n||null===(t=n.enterprise)||void 0===t?void 0:t.id,y=(new v.Identify).set("role",r).set("userStatus",te(n)).set("loggedIn",m).set("axeSettings",h(h({highlightTheme:a,theme:c,locale:l,axeServerURL:d},s),{},{ruleset:(null==s?void 0:s.ruleset)||"all"})).set("policySettings",u).set("firstView",f).set("exportSchema",p||"devtools");g&&y.set(O,g);for(const[t,n]of Object.entries(e))isNaN(n)?y.set(t,n):y.add(t,n);v.identify(y),v.setGroup("organization",o||(null==n?void 0:n.company)||i)})(n);const{devInstance:r,productName:o,productComponent:i,productComponentVersion:s,engineVersion:a,enterpriseId:c,applicationProperties:l}=t,u=h(h({devInstance:r,productName:o,productComponent:i,productComponentVersion:s,engineVersion:a},c?{[O]:c}:{}),l);v.logEvent(e,u)},de=()=>ae},60119(e,t,n){"use strict";n.d(t,{A:()=>l,T:()=>u});var r=n(35226),o=n.n(r),i=n(6974),s=n(96367),a=n(66884);const c=o()("frameMessenger");async function l(e,t,n,{timeout:r=500}={}){if((0,a.$)(e))throw new Error("FrameMessenger on top level window is not supported.");const o=function(e){try{const t=e.frameId;return"number"==typeof t?t:void 0}catch(e){return void c("Unable to read same-origin frameId, falling back to handshake: %o",e)}}(e),l=o??await function(e,t){const n=(0,i.A)(),r=`frame-messenger:${n}`;return new Promise((o,i)=>{const a=setTimeout(()=>{s.yS.unlisten(r,c),i(`No response received from frame within timeout of ${t}ms.`)},t),c=({message:e})=>{clearTimeout(a),s.yS.unlisten(r,c),o(e.frameId)};s.yS.listen(r,c),e.postMessage({uuid:n,originFrameId:window.frameId,source:"frame-messenger"},"*")})}(e,r);return s.yS.send(s._O.content,t,n,{frameId:l})}function u(){s.yS.send(s._O.background,"identify-content-frame").then(e=>{window.frameId=e}),(0,a.$)()||window.addEventListener("message",({data:e})=>{(function(e){return e.uuid&&e.originFrameId>=0&&"frame-messenger"===e.source})(e)&&(c(`originFrame:${e.originFrameId} → childFrame:${window.frameId} [${window.location.href}]`),s.yS.send(s._O.content,`frame-messenger:${e.uuid}`,{frameId:window.frameId},{frameId:e.originFrameId}))})}},81305(e,t,n){"use strict";n.d(t,{O:()=>c});var r=n(85500),o=n(80870);const i={chrome:"extension-chrome",firefox:"extension-firefox",edge:"extension-edge"};let s,a;const c=async(e=!1,t)=>{let{usageServerURL:n}=await browser.storage.local.get("usageServerURL");return!e&&s&&n===a||(a=n,"default"===n&&(n="https://usage.dequelabs.com"),s=new r.Ay("axe-devtools-html",i[t||(0,o.fx)()]),s.url(n)),s}},68446(e,t,n){"use strict";var r=n(70367),o=n(47274),i=n(14442),s=n(39454),a=n(6084),c=n(80426);new r.A((0,a.A)("\n"),c.A,i.A,o.A,s.A)},31298(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(31495),o=n.n(r),i=n(31336),s=n.n(i)()(o());s.push([e.id,":host{--base-font-size:12px;pointer-events:none!important;position:absolute!important;top:0!important;left:0!important;height:0!important;width:100%!important;opacity:1!important;visibility:visible!important}:host(.highlight--hide){display:none!important}:host(:popover-open){top:0!important;left:0!important;right:auto!important;bottom:auto!important;margin:0!important;padding:0!important;border:0!important;background:#0000!important;overflow:visible!important}#axe-highlight{position:absolute;pointer-events:none;z-index:2147483647;display:flex;flex:1}#border{border-color:var(--theme--border-color,#0000);border-style:solid}#border,#margin{display:flex;flex:1}#margin{border-color:var(--theme--margin-color,#0000);border-style:solid}#content{background-color:var(--theme--content-color,#0000);background-clip:content-box;border-color:var(--theme--padding-color,#0000);border-style:solid;width:100%;height:100%;box-sizing:border-box;display:flex;flex:1}",""]);const a=s},17940(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(31495),o=n.n(r),i=n(31336),s=n.n(i),a=n(1299),c=n.n(a),l=new URL(n(55484),n.b),u=s()(o()),d=c()(l);u.push([e.id,`:host{--high-contrast-color-outline:#c11bde;--high-contrast-color-shadow:#e267ff}.theme--high-contrast{transform:translate(-6px,-6px);padding:3px;border:3px solid var(--high-contrast-color-outline);box-shadow:0 0 10px 4px var(--high-contrast-color-shadow);max-width:calc(100% - 6px)}.theme--high-contrast.highlight--fullpage{position:fixed!important;top:0!important;bottom:0!important;left:0!important;right:0!important;transform:none;border:3px solid var(--high-contrast-color-outline)}.theme--high-contrast:not(.highlight--offscreen):not(.highlight--fullpage)+#tooltip.tooltip--bottom{transform:translateY(6px)}.theme--high-contrast:not(.highlight--offscreen):not(.highlight--fullpage)+#tooltip.tooltip--top{transform:translateY(-6px)}.theme--devtools{--theme--border-color:#ffff3273;--theme--margin-color:#ff960080;--theme--padding-color:#23b45059;--theme--content-color:#1e3cff66}.theme--devtools.highlight--fullpage{position:fixed!important;top:0!important;bottom:0!important;left:0!important;right:0!important;transform:none}.theme--selection:before{position:absolute;content:"";display:block;top:0;bottom:0;left:0;right:0;border:3px dashed var(--high-contrast-color-outline)}.theme--selection.highlight--page{position:fixed!important;top:0!important;bottom:0!important;left:0!important;right:0!important;transform:none;border:3px dashed var(--high-contrast-color-outline)}.theme--selection.highlight--page:before{display:none}.theme--selected:before{position:absolute;content:"";display:block;top:0;bottom:0;left:0;right:0;border:3px solid var(--high-contrast-color-outline)}.theme--selected.highlight--page{position:fixed!important;top:0!important;bottom:0!important;left:0!important;right:0!important;transform:none;border:3px solid var(--high-contrast-color-outline)}.theme--selected.highlight--page:before{display:none}:host{--badge-color-outline:#3c7aae}.theme--badge:before{position:absolute;content:"";display:block;top:0;bottom:0;left:0;right:0;border:3px solid var(--badge-color-outline)}.theme--badge:after{counter-reset:badge var(--axe-highlight-counter);content:var(--axe-highlight-badge-content,counter(badge));position:absolute;top:3px;left:3px;border:3px solid #fff;color:#fff;font-weight:500;background-color:var(--badge-color-outline);display:flex;height:1.5em;min-width:1.5em;align-items:center;justify-content:center;font-family:monospace;font-size:13px}.theme--ml:before{position:absolute;content:"";display:block;top:0;bottom:0;left:0;right:0;border:3px solid var(--high-contrast-color-outline)}.theme--ml:after{content:"";position:absolute;top:-5px;left:-5px;background-image:url(${d});background-repeat:no-repeat;width:29px;height:29px}`,""]);const f=u},91126(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(31495),o=n.n(r),i=n(31336),s=n.n(i)()(o());s.push([e.id,':host{--tooltip-background-color:#f9f9f9;--tooltip-border-color:#333;--tooltip-shadow-color:#0003;--tooltip-tag-name-color:#2e40a0;--tooltip-tag-identifier-color:#c53406;--tooltip-text-color:#02101a;--tooltip-label-color:#666;--tooltip-text-accent-color:#4d4d4d}#tooltip{position:absolute;white-space:nowrap;margin:.5rem 0;font-family:monospace;font-size:var(--base-font-size);padding:.6rem;background:var(--tooltip-background-color);color:var(--tooltip-text-color);box-shadow:0 0 6px var(--tooltip-shadow-color);border:3px solid var(--tooltip-border-color);z-index:2147483647;max-width:20rem;border-radius:3px}#tooltip p{margin:0}#tooltip svg{height:13px;width:13px;margin-bottom:-2px}#tooltip:after,#tooltip:before{content:"";display:block;position:absolute;border:.5rem solid #0000;border-top:none;border-bottom:.5rem solid var(--tooltip-background-color)}#tooltip:after{z-index:2;top:0;transform:translateY(1px) translateY(-100%)}#tooltip:before{top:0;transform:translateY(-3px) translateY(-100%);border-bottom:.5rem solid var(--tooltip-border-color);z-index:1}#tooltip.tooltip--top:before{top:100%;transform:rotate(180deg) translateY(-3px)}#tooltip.tooltip--top:after{top:100%;transform:rotate(180deg) translateY(1px)}#tooltip.tooltip--right{margin-right:-1.3rem}#tooltip.tooltip--right:after,#tooltip.tooltip--right:before{right:.6rem}#tooltip.tooltip--left:after,#tooltip.tooltip--left:before{left:.6rem}#tooltip.tooltip--fullscreen{position:fixed!important;top:10px!important;left:10px!important;bottom:auto!important;transform:none;margin:0}#tooltip.tooltip--fullscreen:after,#tooltip.tooltip--fullscreen:before{display:none}#tag{display:grid;grid-template-columns:max-content auto 1fr min-content}#tag-name{color:var(--tooltip-tag-name-color)}#tag-identifier{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;white-space:normal;overflow:hidden;color:var(--tooltip-tag-identifier-color)}#tag-visibility{font-style:italic;color:var(--tooltip-text-accent-color);margin-left:1em}#tag-offscreen{margin-left:1em}#tag-dimensions{font-family:monospace;color:var(--tooltip-text-accent-color);margin-left:1em;justify-self:right}#hidden-eye{position:relative}#hidden-eye:before{position:absolute;content:"";display:block;height:1px;width:16px;background-color:#02101a;top:7px;left:-1px;z-index:1;transform:rotate(-45deg);border:1px solid #fff}#accessible-text{color:var(--tooltip-text-accent-color);white-space:normal}#attributes{display:grid;grid-template-columns:1fr auto;grid-column-gap:1rem;grid-row-gap:.2rem;grid-auto-rows:minmax(1.6em,auto);align-items:center;border-top:1px solid #ccc;padding:.6rem 0 0;margin:.6rem 0 0;font-family:sans-serif}#attributes :is(dd,dl){margin:0}#attributes dt{color:var(--tooltip-label-color)}#attributes dd{justify-self:right;text-align:right;white-space:normal;-webkit-line-clamp:3;-webkit-box-orient:vertical}.contrast-aa{color:#4d4d4d;line-height:1em;display:inline-block;padding:2px;border:1px solid #4d4d4d;font-size:9px;vertical-align:text-bottom;font-family:monospace}#tooltip.tooltip--offscreen.tooltip--top{margin-bottom:1.2rem}#tooltip.tooltip--offscreen.tooltip--right{margin-right:.6rem}#tooltip.tooltip--offscreen.tooltip--left{margin-left:.6rem}#tooltip.tooltip--offscreen.tooltip--right:before{top:.6rem;transform:rotate(90deg) translateY(-24px)}#tooltip.tooltip--offscreen.tooltip--right:after{top:.6rem;transform:rotate(90deg) translateY(-20px)}#tooltip.tooltip--offscreen.tooltip--left:before{top:.6rem;transform:rotate(-90deg) translateY(-24px)}#tooltip.tooltip--offscreen.tooltip--left:after{top:.6rem;transform:rotate(-90deg) translateY(-20px)}',""]);const a=s},31336(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(s[c]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);r&&s[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},1299(e){"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},31495(e){"use strict";e.exports=function(e){return e[1]}},67151(e){"use strict";var t={}.hasOwnProperty,n=/[ -,\.\/;-@\[-\^`\{-~]/,r=/[ -,\.\/;-@\[\]\^`\{-~]/,o=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,i=function e(i,s){"single"!=(s=function(e,n){if(!e)return n;var r={};for(var o in n)r[o]=t.call(e,o)?e[o]:n[o];return r}(s,e.options)).quotes&&"double"!=s.quotes&&(s.quotes="single");for(var a="double"==s.quotes?'"':"'",c=s.isIdentifier,l=i.charAt(0),u="",d=0,f=i.length;d<f;){var p=i.charAt(d++),h=p.charCodeAt(),m=void 0;if(h<32||h>126){if(h>=55296&&h<=56319&&d<f){var g=i.charCodeAt(d++);56320==(64512&g)?h=((1023&h)<<10)+(1023&g)+65536:d--}m="\\"+h.toString(16).toUpperCase()+" "}else m=s.escapeEverything?n.test(p)?"\\"+p:"\\"+h.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B:]/.test(p)?c||":"!=p?"\\"+h.toString(16).toUpperCase()+" ":p:"\\"==p||!c&&('"'==p&&a==p||"'"==p&&a==p)||c&&r.test(p)?"\\"+p:p;u+=m}return c&&(/^_/.test(u)?u="\\_"+u.slice(1):/^-[-\d]/.test(u)?u="\\-"+u.slice(1):/\d/.test(l)&&(u="\\3"+l+" "+u.slice(1))),u=u.replace(o,function(e,t,n){return t&&t.length%2?e:(t||"")+n}),!c&&s.wrap?a+u+a:u};i.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},i.version="1.0.1",e.exports=i},61740(e,t){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i=/^:([a-z])(\(([^)]+)\))?/,s="numeric",a="long",c="2-digit",l="string",u="decimal",d="currency",f="percent",p={weekday:void 0,era:void 0,year:void 0,month:a,day:s,hour:void 0,minute:void 0,second:void 0,timeZoneName:void 0},h={weekday:void 0,era:void 0,year:s,month:a,day:void 0,hour:void 0,minute:void 0,second:void 0,timeZoneName:void 0},m={d:{weekday:void 0,era:void 0,year:s,month:s,day:s,hour:void 0,minute:void 0,second:void 0,timeZoneName:void 0},D:{weekday:a,era:void 0,year:s,month:a,day:s,hour:void 0,minute:void 0,second:void 0,timeZoneName:void 0},f:{weekday:a,era:void 0,year:s,month:a,day:s,hour:s,minute:c,second:void 0,timeZoneName:void 0},F:{weekday:a,era:void 0,year:s,month:a,day:s,hour:s,minute:c,second:c,timeZoneName:void 0},g:{weekday:void 0,era:void 0,year:s,month:s,day:s,hour:s,minute:c,second:void 0,timeZoneName:void 0},G:{weekday:void 0,era:void 0,year:s,month:s,day:s,hour:s,minute:c,second:c,timeZoneName:void 0},m:p,M:p,t:{weekday:void 0,era:void 0,year:void 0,month:void 0,day:void 0,hour:s,minute:c,second:void 0,timeZoneName:void 0},T:{weekday:void 0,era:void 0,year:void 0,month:void 0,day:void 0,hour:s,minute:c,second:c,timeZoneName:void 0},y:h,Y:h},g=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.defaultConfig={locales:void 0,translations:{},number:{currency:"USD"},date:{},string:{}},this.configs={"":this.defaultConfig},this.translationCache={},this.keyCache={},this.typeInfoCache={},this._localizers={s:function(e,n,r){var o=void 0;return r&&null!==(o=t._runCustomFormatters(e,l,r,n))?o:n?n.toLocaleString(e.locales):String(n)},n:function(e,r,o){if("number"!=typeof r)throw Error("value is not a number. type: "+(void 0===r?"undefined":n(r)));if(o){var i=parseInt(o);if(!isNaN(i))return r.toLocaleString(e.locales,Object.assign({},e.number,{style:u,minimumFractionDigits:i,maximumFractionDigits:i}));var s;if(null!==(s=t._runCustomFormatters(e,"number",o,r)))return s}return r.toLocaleString(e.locales,Object.assign({},e.number,{style:u,minimumFractionDigits:0,maximumFractionDigits:3}))},t:function(e,n,r){if(!(n instanceof Date))throw Error("value is not a Date. type: "+n.constructor.name);if(r){switch(r.toUpperCase()){case"R":return n.toUTCString();case"O":return n.toISOString()}var o=m[r];if(o)return n.toLocaleString(e.locales,Object.assign({},e.date,o));var i=t._runCustomFormatters(e,"date",r,n);if(null!==i)return i}return n.toLocaleString(e.locales,Object.assign({},e.date))},c:function(e,t,r){if("number"!=typeof t)throw Error("value is not a number. type: "+(void 0===t?"undefined":n(t)));return t.toLocaleString(e.locales,r?Object.assign({},e.number,{style:d,currency:r}):Object.assign({},e.number,{style:d}))},p:function(e,t,r){if("number"!=typeof t)throw Error("value is not a number. type: "+(void 0===t?"undefined":n(t)));return t.toLocaleString(e.locales,r?Object.assign({},e.number,{style:f,minimumFractionDigits:r}):Object.assign({},e.number,{style:f}))}},this.i18n=this.i18n.bind(this),this.translate=this.translate.bind(this),this.i18nConfig=this.i18nConfig.bind(this),this._localize=this._localize.bind(this),this._extractTypeInfo=this._extractTypeInfo.bind(this)}return r(e,[{key:"i18nConfig",value:function(e){var t=e.locales,n=e.translations,r=e.group,o=e.number,i=e.date,s=e.standardFormatters;this.translationCache={};var a=this.configs[r||""]||this.defaultConfig;this.configs[r||""]=Object.assign({},a,{locales:t||a.locales,translations:n||a.translations,number:o||a.number,date:i||a.date,standardFormatters:s||a.standardFormatters})}},{key:"i18n",value:function(e,t,n){for(var r=this,i=this._buildKey(n),s=this._getCachedTranslation(e,t,i),a=s.configGroup,c=s.translatedKey,l=n.slice(1).map(this._extractTypeInfo),u=arguments.length,d=Array(u>3?u-3:0),f=3;f<u;f++)d[f-3]=arguments[f];var p=d.map(function(e,t){return r._localize(a,e,l[t])});return this._buildMessage.apply(this,[c].concat(o(p)))}},{key:"translate",value:function(e,t,n){var r=this;null==n?n="":"string"!=typeof n&&(n=String(n));for(var i=this._getCachedTranslation(e,t,n),s=i.configGroup,a=i.translatedKey,c=arguments.length,l=Array(c>3?c-3:0),u=3;u<c;u++)l[u-3]=arguments[u];var d=l.map(function(e){return e instanceof Object&&e.constructor===Object?r._localize(s,e.value||"",{type:e.formatter||"s",options:e.format}):r._localize(s,e,{type:"s",options:""})});return this._buildMessage.apply(this,[a].concat(o(d)))}},{key:"_getCachedTranslation",value:function(e,t,n){var r=[e||"",t||"",n].join(),o=this.translationCache[r],i=this.configs[t||""]||this.defaultConfig;if(o)return{configGroup:i,translatedKey:o};var s=this._getTranslation(e,i,n);return this.translationCache[r]=s,{configGroup:i,translatedKey:s}}},{key:"_getTranslation",value:function(e,t,r){var o=t.translations,i=void 0,s=void 0;return(void 0===e?"undefined":n(e))===l&&(s=e),s&&(i=o[s])instanceof Object&&(i=i[r]),i||(i="string"==typeof o[r]&&o[r]||r),i}},{key:"_runCustomFormatters",value:function(e,t,n,r){var o=null;if(e.standardFormatters){var i=e.standardFormatters[t];if(i){var s=i[n];s&&(o=s(e.locales,e[t],r))}}return o}},{key:"_extractTypeInfo",value:function(e){var t=this.typeInfoCache[e];if(t)return t;var n=i.exec(e);return t=n?{type:n[1],options:n[3]}:{type:"s",options:""},this.typeInfoCache[e]=t,t}},{key:"_localize",value:function(e,t,n){var r=n.type,o=n.options,i=this._localizers[r];if(i)return i(e,t,o);throw new Error("Type '"+r+"' is not supported. Supported types are: "+Object.keys(this._localizers).join())}},{key:"_buildKey",value:function(e){var t=e.join(),n=this.keyCache[t];if(n)return n;var r=function(e){return e.replace(i,"")},o=r(e[e.length-1]),s=e.slice(0,-1).reduceRight(function(e,t,n){return r(t)+"${"+n+"}"+e},o).replace(/\r\n/g,"\n");return this.keyCache[t]=s,s}},{key:"_buildMessage",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.replace(/\${(\d)}/g,function(e,t){return n[Number(t)]})}}]),e}(),y=new g,b=y.i18nConfig,v=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if("string"==typeof e){if(n.length&&"string"==typeof n[0]){var o=function(t){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return y.i18n.apply(y,[e,n[0],t].concat(o))};return o.translate=function(t){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return y.translate.apply(y,[e,n[0],t].concat(o))},o}var i=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return y.i18n.apply(y,[e,null,t].concat(r))};return i.translate=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return y.translate.apply(y,[e,null,t].concat(r))},i}return y.i18n.apply(y,[null,null,e].concat(n))};v.translate=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return y.translate.apply(y,[null,null,e].concat(n))};var w=function(e,t){return function(n){return n.prototype.i18n=function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return v(e,t).apply(void 0,[n].concat(o))},n.prototype.i18n.translate=function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return y.translate.apply(y,[e,t,n].concat(o))},n}};window.i18n=v,window.i18nConfig=b,window.i18nGroup=w,t.Ay=v},11911(e,t,n){e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",s="[object Array]",a="[object Boolean]",c="[object Date]",l="[object Error]",u="[object Function]",d="[object Map]",f="[object Number]",p="[object Object]",h="[object Promise]",m="[object RegExp]",g="[object Set]",y="[object String]",b="[object Symbol]",v="[object WeakMap]",w="[object ArrayBuffer]",S="[object DataView]",O=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,x=/^\w*$/,E=/^\./,A=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,T=/\\(\\)?/g,C=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,N={};N["[object Float32Array]"]=N["[object Float64Array]"]=N["[object Int8Array]"]=N["[object Int16Array]"]=N["[object Int32Array]"]=N["[object Uint8Array]"]=N["[object Uint8ClampedArray]"]=N["[object Uint16Array]"]=N["[object Uint32Array]"]=!0,N[i]=N[s]=N[w]=N[a]=N[S]=N[c]=N[l]=N[u]=N[d]=N[f]=N[p]=N[m]=N[g]=N[y]=N[v]=!1;var P="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,j="object"==typeof self&&self&&self.Object===Object&&self,k=P||j||Function("return this")(),R=t&&!t.nodeType&&t,_=R&&e&&!e.nodeType&&e,M=_&&_.exports===R&&P.process,D=function(){try{return M&&M.binding("util")}catch(e){}}(),L=D&&D.isTypedArray;function F(e,t,n,r){for(var o=-1,i=e?e.length:0;++o<i;){var s=e[o];t(r,s,n(s),e)}return r}function V(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function $(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function B(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function H(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var W,U,z,q=Array.prototype,G=Function.prototype,Y=Object.prototype,K=k["__core-js_shared__"],X=(W=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||""))?"Symbol(src)_1."+W:"",J=G.toString,Z=Y.hasOwnProperty,Q=Y.toString,ee=RegExp("^"+J.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),te=k.Symbol,ne=k.Uint8Array,re=Y.propertyIsEnumerable,oe=q.splice,ie=(U=Object.keys,z=Object,function(e){return U(z(e))}),se=Be(k,"DataView"),ae=Be(k,"Map"),ce=Be(k,"Promise"),le=Be(k,"Set"),ue=Be(k,"WeakMap"),de=Be(Object,"create"),fe=Ke(se),pe=Ke(ae),he=Ke(ce),me=Ke(le),ge=Ke(ue),ye=te?te.prototype:void 0,be=ye?ye.valueOf:void 0,ve=ye?ye.toString:void 0;function we(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function xe(e){var t=-1,n=e?e.length:0;for(this.__data__=new Oe;++t<n;)this.add(e[t])}function Ee(e){this.__data__=new Se(e)}function Ae(e,t){var n=nt(e)||tt(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!Z.call(e,i)||o&&("length"==i||We(i,r))||n.push(i);return n}function Te(e,t){for(var n=e.length;n--;)if(et(e[n][0],t))return n;return-1}function Ce(e,t,n,r){return Pe(e,function(e,o,i){t(r,e,n(e),i)}),r}we.prototype.clear=function(){this.__data__=de?de(null):{}},we.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},we.prototype.get=function(e){var t=this.__data__;if(de){var n=t[e];return n===r?void 0:n}return Z.call(t,e)?t[e]:void 0},we.prototype.has=function(e){var t=this.__data__;return de?void 0!==t[e]:Z.call(t,e)},we.prototype.set=function(e,t){return this.__data__[e]=de&&void 0===t?r:t,this},Se.prototype.clear=function(){this.__data__=[]},Se.prototype.delete=function(e){var t=this.__data__,n=Te(t,e);return!(n<0)&&(n==t.length-1?t.pop():oe.call(t,n,1),!0)},Se.prototype.get=function(e){var t=this.__data__,n=Te(t,e);return n<0?void 0:t[n][1]},Se.prototype.has=function(e){return Te(this.__data__,e)>-1},Se.prototype.set=function(e,t){var n=this.__data__,r=Te(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Oe.prototype.clear=function(){this.__data__={hash:new we,map:new(ae||Se),string:new we}},Oe.prototype.delete=function(e){return $e(this,e).delete(e)},Oe.prototype.get=function(e){return $e(this,e).get(e)},Oe.prototype.has=function(e){return $e(this,e).has(e)},Oe.prototype.set=function(e,t){return $e(this,e).set(e,t),this},xe.prototype.add=xe.prototype.push=function(e){return this.__data__.set(e,r),this},xe.prototype.has=function(e){return this.__data__.has(e)},Ee.prototype.clear=function(){this.__data__=new Se},Ee.prototype.delete=function(e){return this.__data__.delete(e)},Ee.prototype.get=function(e){return this.__data__.get(e)},Ee.prototype.has=function(e){return this.__data__.has(e)},Ee.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Se){var r=n.__data__;if(!ae||r.length<199)return r.push([e,t]),this;n=this.__data__=new Oe(r)}return n.set(e,t),this};var Ie,Ne,Pe=(Ie=function(e,t){return e&&je(e,t,ut)},function(e,t){if(null==e)return e;if(!rt(e))return Ie(e,t);for(var n=e.length,r=Ne?n:-1,o=Object(e);(Ne?r--:++r<n)&&!1!==t(o[r],r,o););return e}),je=function(e){return function(t,n,r){for(var o=-1,i=Object(t),s=r(t),a=s.length;a--;){var c=s[e?a:++o];if(!1===n(i[c],c,i))break}return t}}();function ke(e,t){for(var n=0,r=(t=Ue(t,e)?[t]:Fe(t)).length;null!=e&&n<r;)e=e[Ye(t[n++])];return n&&n==r?e:void 0}function Re(e,t){return null!=e&&t in Object(e)}function _e(e,t,n,r,o){return e===t||(null==e||null==t||!st(e)&&!at(t)?e!=e&&t!=t:function(e,t,n,r,o,u){var h=nt(e),v=nt(t),O=s,x=s;h||(O=(O=He(e))==i?p:O);v||(x=(x=He(t))==i?p:x);var E=O==p&&!$(e),A=x==p&&!$(t),T=O==x;if(T&&!E)return u||(u=new Ee),h||lt(e)?Ve(e,t,n,r,o,u):function(e,t,n,r,o,i,s){switch(n){case S:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!r(new ne(e),new ne(t)));case a:case c:case f:return et(+e,+t);case l:return e.name==t.name&&e.message==t.message;case m:case y:return e==t+"";case d:var u=B;case g:var p=2&i;if(u||(u=H),e.size!=t.size&&!p)return!1;var h=s.get(e);if(h)return h==t;i|=1,s.set(e,t);var v=Ve(u(e),u(t),r,o,i,s);return s.delete(e),v;case b:if(be)return be.call(e)==be.call(t)}return!1}(e,t,O,n,r,o,u);if(!(2&o)){var C=E&&Z.call(e,"__wrapped__"),I=A&&Z.call(t,"__wrapped__");if(C||I){var N=C?e.value():e,P=I?t.value():t;return u||(u=new Ee),n(N,P,r,o,u)}}if(!T)return!1;return u||(u=new Ee),function(e,t,n,r,o,i){var s=2&o,a=ut(e),c=a.length,l=ut(t),u=l.length;if(c!=u&&!s)return!1;var d=c;for(;d--;){var f=a[d];if(!(s?f in t:Z.call(t,f)))return!1}var p=i.get(e);if(p&&i.get(t))return p==t;var h=!0;i.set(e,t),i.set(t,e);var m=s;for(;++d<c;){var g=e[f=a[d]],y=t[f];if(r)var b=s?r(y,g,f,t,e,i):r(g,y,f,e,t,i);if(!(void 0===b?g===y||n(g,y,r,o,i):b)){h=!1;break}m||(m="constructor"==f)}if(h&&!m){var v=e.constructor,w=t.constructor;v==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(h=!1)}return i.delete(e),i.delete(t),h}(e,t,n,r,o,u)}(e,t,_e,n,r,o))}function Me(e){return!(!st(e)||function(e){return!!X&&X in e}(e))&&(ot(e)||$(e)?ee:C).test(Ke(e))}function De(e){return"function"==typeof e?e:null==e?dt:"object"==typeof e?nt(e)?function(e,t){if(Ue(e)&&ze(t))return qe(Ye(e),t);return function(n){var r=function(e,t,n){var r=null==e?void 0:ke(e,t);return void 0===r?n:r}(n,e);return void 0===r&&r===t?function(e,t){return null!=e&&function(e,t,n){t=Ue(t,e)?[t]:Fe(t);var r,o=-1,i=t.length;for(;++o<i;){var s=Ye(t[o]);if(!(r=null!=e&&n(e,s)))break;e=e[s]}if(r)return r;i=e?e.length:0;return!!i&&it(i)&&We(s,i)&&(nt(e)||tt(e))}(e,t,Re)}(n,e):_e(t,r,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){var t=ut(e),n=t.length;for(;n--;){var r=t[n],o=e[r];t[n]=[r,o,ze(o)]}return t}(e);if(1==t.length&&t[0][2])return qe(t[0][0],t[0][1]);return function(n){return n===e||function(e,t,n,r){var o=n.length,i=o,s=!r;if(null==e)return!i;for(e=Object(e);o--;){var a=n[o];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){var c=(a=n[o])[0],l=e[c],u=a[1];if(s&&a[2]){if(void 0===l&&!(c in e))return!1}else{var d=new Ee;if(r)var f=r(l,u,c,e,t,d);if(!(void 0===f?_e(u,l,r,3,d):f))return!1}}return!0}(n,e,t)}}(e):Ue(t=e)?(n=Ye(t),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return ke(t,e)}}(t);var t,n}function Le(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||Y,t!==r)return ie(e);var t,n,r,o=[];for(var i in Object(e))Z.call(e,i)&&"constructor"!=i&&o.push(i);return o}function Fe(e){return nt(e)?e:Ge(e)}function Ve(e,t,n,r,o,i){var s=2&o,a=e.length,c=t.length;if(a!=c&&!(s&&c>a))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var u=-1,d=!0,f=1&o?new xe:void 0;for(i.set(e,t),i.set(t,e);++u<a;){var p=e[u],h=t[u];if(r)var m=s?r(h,p,u,t,e,i):r(p,h,u,e,t,i);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!V(t,function(e,t){if(!f.has(t)&&(p===e||n(p,e,r,o,i)))return f.add(t)})){d=!1;break}}else if(p!==h&&!n(p,h,r,o,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function $e(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Be(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Me(n)?n:void 0}var He=function(e){return Q.call(e)};function We(e,t){return!!(t=t??o)&&("number"==typeof e||I.test(e))&&e>-1&&e%1==0&&e<t}function Ue(e,t){if(nt(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ct(e))||(x.test(e)||!O.test(e)||null!=t&&e in Object(t))}function ze(e){return e==e&&!st(e)}function qe(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}(se&&He(new se(new ArrayBuffer(1)))!=S||ae&&He(new ae)!=d||ce&&He(ce.resolve())!=h||le&&He(new le)!=g||ue&&He(new ue)!=v)&&(He=function(e){var t=Q.call(e),n=t==p?e.constructor:void 0,r=n?Ke(n):void 0;if(r)switch(r){case fe:return S;case pe:return d;case he:return h;case me:return g;case ge:return v}return t});var Ge=Qe(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(ct(e))return ve?ve.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return E.test(e)&&n.push(""),e.replace(A,function(e,t,r,o){n.push(r?o.replace(T,"$1"):t||e)}),n});function Ye(e){if("string"==typeof e||ct(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ke(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var Xe,Je,Ze=(Xe=function(e,t,n){Z.call(e,n)?e[n].push(t):e[n]=[t]},function(e,t){var n=nt(e)?F:Ce,r=Je?Je():{};return n(e,Xe,De(t),r)});function Qe(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s),s};return n.cache=new(Qe.Cache||Oe),n}function et(e,t){return e===t||e!=e&&t!=t}function tt(e){return function(e){return at(e)&&rt(e)}(e)&&Z.call(e,"callee")&&(!re.call(e,"callee")||Q.call(e)==i)}Qe.Cache=Oe;var nt=Array.isArray;function rt(e){return null!=e&&it(e.length)&&!ot(e)}function ot(e){var t=st(e)?Q.call(e):"";return t==u||"[object GeneratorFunction]"==t}function it(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function st(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function at(e){return!!e&&"object"==typeof e}function ct(e){return"symbol"==typeof e||at(e)&&Q.call(e)==b}var lt=L?function(e){return function(t){return e(t)}}(L):function(e){return at(e)&&it(e.length)&&!!N[Q.call(e)]};function ut(e){return rt(e)?Ae(e):Le(e)}function dt(e){return e}e.exports=Ze},40093(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=y.prototype;var w=v.prototype=new b;w.constructor=v,m(w,y.prototype),w.isPureReactComponent=!0;var S=Array.isArray,O=Object.prototype.hasOwnProperty,x={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,r){var o,i={},s=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)O.call(t,o)&&!E.hasOwnProperty(o)&&(i[o]=t[o]);var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(o in c=e.defaultProps)void 0===i[o]&&(i[o]=c[o]);return{$$typeof:n,type:e,key:s,ref:a,props:i,_owner:x.current}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function I(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function N(e,t,o,i,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var c=!1;if(null===e)c=!0;else switch(a){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case r:c=!0}}if(c)return s=s(c=e),e=""===i?"."+I(c,0):i,S(s)?(o="",null!=e&&(o=e.replace(C,"$&/")+"/"),N(s,t,o,"",function(e){return e})):null!=s&&(T(s)&&(s=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,o+(!s.key||c&&c.key===s.key?"":(""+s.key).replace(C,"$&/")+"/")+e)),t.push(s)),1;if(c=0,i=""===i?".":i+":",S(e))for(var l=0;l<e.length;l++){var u=i+I(a=e[l],l);c+=N(a,t,o,u,s)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),l=0;!(a=e.next()).done;)c+=N(a=a.value,t,o,u=i+I(a,l++),s);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return c}function P(e,t,n){if(null==e)return e;var r=[],o=0;return N(e,r,"","",function(e){return t.call(n,e,o++)}),r}function j(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var k={current:null},R={transition:null};function _(){throw Error("act(...) is not supported in production builds of React.")}},7378(e,t,n){"use strict";n(40093)},73258(e){!function(t){"use strict";var n=function(e){var t={browser:{fullName:"",name:"",version:"",majorVersion:null,minorVersion:null,patchVersion:null,engine:""},os:{fullName:"",name:"",version:"",versionName:"",versionAltNames:[],majorVersion:null,minorVersion:null,patchVersion:null},features:{bw:!1,mobile:!1,tv:!1,proxy:!1}},n={browser:[{test:["SailfishBrowser"],browser:{fullName:"Sailfish Browser",name:"sailfishbrowser",engine:"gecko",$version:{search:"SailfishBrowser/"}},features:{mobile:!0}},{test:["Edge/"],browser:{fullName:"Edge",name:"edge",engine:"edgehtml",$version:{search:"Edge/"}}},{test:["Edg/"],browser:{fullName:"Edge",name:"edge",engine:"webkit",$version:{search:"Edg/"}}},{test:["MSIE"],browser:{fullName:"Internet Explorer",name:"ie",engine:"trident",$version:{search:"MSIE "}}},{test:["Trident"],browser:{fullName:"Internet Explorer",name:"ie",engine:"trident",$version:{search:"rv:"}}},{test:["OPR/"],browser:{fullName:"Opera",name:"opera",engine:"webkit",$version:{search:"OPR/"}}},{test:["UCBrowser"],browser:{fullName:"UC Browser",name:"ucbrowser",engine:"webkit",$version:{search:"UCBrowser/"}}},{test:["YaBrowser"],browser:{fullName:"Yandex Browser",name:"yabrowser",engine:"webkit",$version:{search:"YaBrowser/"}}},{test:["Chrome"],browser:{fullName:"Chrome",name:"chrome",engine:"webkit",$version:{search:"Chrome/"}}},{test:["Firefox"],browser:{fullName:"Firefox",name:"firefox",engine:"gecko",$version:{search:"Firefox/"}}},{test:["NokiaBrowser"],browser:{fullName:"Nokia Browser",name:"nokiabrowser",engine:"webkit",$version:{search:"NokiaBrowser/"}},features:{mobile:!0}},{test:["Opera Mini","Presto"],browser:{fullName:"Opera Mini",name:"operamini",engine:"presto",$version:{search:"Version/"}},features:{mobile:!0,proxy:!0}},{test:["Opera Mini","WebKit"],browser:{fullName:"Opera Mini",name:"operamini",engine:"webkit"},features:{mobile:!0,proxy:!0}},{test:["Opera"],browser:{fullName:"Opera",name:"opera",engine:"presto",$version:{search:"Version/"}}},{test:["OviBrowser"],browser:{fullName:"Ovi Browser",name:"ovi",engine:"gecko",$version:{search:"OviBrowser/"}},features:{mobile:!0,proxy:!0}},{test:["CriOS/"],browser:{fullName:"Chrome",name:"chrome",engine:"webkit",$version:{search:"CriOS/"}}},{test:["Coast/"],browser:{fullName:"Opera Coast",name:"coast",engine:"webkit",$version:{search:"Coast/"}}},{test:["Safari","Version/",/(iPhone|iPod|iPad|Macintosh|Windows)/],browser:{fullName:"Safari",name:"safari",engine:"webkit",$version:{search:"Version/"}}},{test:["WebKit"],browser:{engine:"webkit"}},{test:["Gecko/"],browser:{engine:"gecko"}}],os:[{test:["Sailfish"],os:{fullName:"Sailfish OS",name:"sailfish"},features:{mobile:!0}},{test:["Windows Phone"],os:{fullName:"Windows Phone",name:"winphone",$version:{search:"Windows Phone "}},features:{mobile:!0}},{test:["Windows"],os:{fullName:"Windows",name:"win",$version:{search:"Windows NT ",names:{"10.0":"10",6.3:"8.1",6.2:"8",6.1:"7","6.0":"Vista",5.2:"XP",5.1:"XP",5.01:"2000","5.0":"2000"},altNames:{5.2:["Server 2003"]}}}},{test:["Macintosh","OS X"],os:{fullName:"macOS",name:"osx",$version:{search:/OS X /,names:{10.6:"Snow Leopard",10.7:"Lion",10.8:"Mountain Lion",10.9:"Mavericks","10.10":"Yosemite",10.11:"El Capitan",10.12:"Sierra",10.13:"High Sierra",10.14:"Mojave",10.15:"Catalina","11.0":"Big Sur"}}}},{test:["Ubuntu"],os:{fullName:"Ubuntu",name:"ubuntu"}},{test:["Fedora"],os:{fullName:"Fedora",name:"fedora",$version:{search:"Fedora/",names:{20:"Heisenbug",19:"Schrödinger's Cat",18:"Spherical Cow",17:"Beefy Miracle",16:"Verne",15:"Lovelock",14:"Laughlin",13:"Goddard",12:"Constantine",11:"Leonidas",10:"Cambridge",9:"Sulphur",8:"Werewolf",7:"Moonshine"}}}},{test:["Kindle"],os:{fullName:"Kindle",name:"kindle",$version:{search:"Kindle/"}},features:{bw:!0,mobile:!0}},{test:[/(BlackBerry|BB\d+)/],os:{fullName:"BlackBerry",name:"blackberry",$version:{search:"Version/"}},features:{mobile:!0}},{test:["Symbian"],os:{fullName:"Symbian",name:"symbian"},features:{mobile:!0}},{test:["Series40"],os:{fullName:"Symbian",name:"symbian"},features:{mobile:!0}},{test:["PlayStation Vita"],os:{fullName:"PlayStation Vita",name:"psvita"},features:{mobile:!0}},{test:[/playstation/i],os:{fullName:"PlayStation",name:"playstation",$version:{search:/playstation\s/i}},features:{tv:!0}},{test:["Nintendo DSi"],os:{fullName:"Nintendo DSi",name:"dsi"},features:{mobile:!0}},{test:["New Nintendo 3DS"],os:{fullName:"New Nintendo 3DS",name:"n3ds"},browser:{engine:"webkit"},features:{mobile:!0}},{test:["Nintendo 3DS"],os:{fullName:"Nintendo 3DS",name:"3ds"},browser:{engine:"webkit"},features:{mobile:!0}},{test:["Viera"],os:{fullName:"Viera",name:"viera"},browser:{engine:"webkit"},features:{tv:!0}},{test:["SonyDTV"],features:{tv:!0}},{test:["Android"],os:{fullName:"Android",name:"android",$version:{search:"Android "}},features:{mobile:!0}},{test:[/iPhone|iPod|iPad/],os:{fullName:"iOS",name:"ios",$version:{search:"OS "}},features:{mobile:!0}}],features:[{test:[/mobile/i],features:{mobile:!0}},{test:[/smart-{0,1}tv/i],features:{tv:!0}}]};if(!e)return t;function r(t){for(var n=0;n<t.length;n++){for(var r=!0,i=0;i<t[n].test.length;i++)if(t[n].test[i]instanceof RegExp){if(!t[n].test[i].test(e)){r=!1;break}}else if(-1==e.indexOf(t[n].test[i])){r=!1;break}if(r){o(t[n]);break}}}function o(e){for(var r in n)if(n.hasOwnProperty(r)&&e[r]){if(e[r].$version){var o=i(e[r].$version.search);if(o){var s=o.split("."),a=e[r].$version.names,c=e[r].$version.altNames;if(e[r].version=o,s[0]&&(e[r].majorVersion=parseInt(s[0])),s[1]&&(e[r].minorVersion=parseInt(s[1])),s[2]&&(e[r].patchVersion=parseInt(s[2])),a)for(var l,u=[],d=0;d<s.length;d++)u.push(s[d]),a[l=u.join(".")]&&(e[r].versionName=a[l]),c&&c[l]&&(e[r].versionAltNames=c[l])}}for(var f in e[r])e[r].hasOwnProperty(f)&&"$"!==f[0]&&(t[r][f]=e[r][f])}}function i(t){var n;if(t instanceof RegExp){if(!(n=(e.match(t)||[])[0]))return}else n=t;var r=e.indexOf(n);if(-1!=r){var o=e.substring(r+n.length),i=/^(\d+(\.|_)){0,2}\d+/.exec(o);if(i)return i[0].replace(/_/g,".")}}return function(){for(var e in n)r(n[e])}(),t};e.exports?e.exports=n:t.Sniffer=n}(this)},68120(e,t,n){var r=n(31298);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()},18726(e,t,n){var r=n(17940);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()},10632(e,t,n){var r=n(91126);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()},72450(e){e.exports=function(e){var t={fn:[],obj:[]};return e&&"object"==typeof e&&Object.keys(e).reduce(function(t,n){return t["function"==typeof e[n]?"fn":"obj"].push(n),t},t),function(n){var r={};return e===n||!!n&&"object"==typeof n&&t.obj.every(function(t){return e[t]===n[t]})&&t.fn.every(function(t){return t in n&&e[t](n[t],t,n,r)})}}},76058(e,t,n){"use strict";n.d(t,{wZ:()=>u});var r=n(68120),o=n.n(r),i=n(10632),s=n.n(i),a=n(18726),c=n.n(a);const l=document.createElement("template");l.innerHTML=`\n <style>\n ${c()}\n ${o()}\n ${s()}\n </style>\n <style id="position"></style>\n <div id="axe-highlight" class="theme--high-contrast">\n <div id="margin">\n <div id="border">\n <div id="content"></div>\n </div>\n </div>\n </div>\n <div id="tooltip" style="display: none"></div>\n`;const u="axe-highlighter";const d=new class{constructor(){this.target=new EventTarget}on(e,t){this.target.addEventListener(e,t)}remove(e,t){this.target.removeEventListener(e,t)}emit(e){this.target.dispatchEvent(new CustomEvent(e))}};!function(e,t){let n}(d.emit.bind(d),50);new Map},43955(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(10884);async function o(){await(0,r.A)("latest");const e=globalThis.browser.runtime.getURL("highlighter.js");return await import(e)}},55484(e){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyOSIgaGVpZ2h0PSIyOSI+PGNpcmNsZSBjeD0iMTQuNSIgY3k9IjE0LjUiIHI9IjEzLjUiIGZpbGw9IiMwYjE0MWMiIHN0cm9rZT0iI2Q0ZGRlMCIgc3Ryb2tlLXdpZHRoPSIyIi8+PHBhdGggZmlsbD0iIzc2Y2ZlOCIgZD0iTTYuMjMgMTIuNThoLjkydjUuNTFoLS45MmEuOTEuOTEgMCAwIDEtLjkyLS45MVYxMy41YS45Mi45MiAwIDAgMSAuOTItLjkybTE0LjctMS4zOFYxOWExLjg0IDEuODQgMCAwIDEtMS44NCAxLjg0SDkuOTFBMS44NCAxLjg0IDAgMCAxIDguMDcgMTl2LTcuOGEyLjI5IDIuMjkgMCAwIDEgMi4yOS0yLjI5aDMuMjJWNy4wN2EuOTIuOTIgMCAwIDEgMS44NCAwdjEuODRoMy4yMmEyLjI5IDIuMjkgMCAwIDEgMi4yOSAyLjI5bS04IDIuM2ExLjE1IDEuMTUgMCAxIDAtMS4xNSAxLjE1IDEuMTUgMS4xNSAwIDAgMCAxLjE1LTEuMTVtLS4yMyAzLjY4aC0xLjg4di45MWgxLjg0em0yLjc2IDBoLTEuODh2LjkxaDEuODR6bTMtMy42OGExLjE1IDEuMTUgMCAxIDAtMS4xNSAxLjE1IDEuMTYgMS4xNiAwIDAgMCAxLjE1LTEuMTVtLS4yMyAzLjY4aC0xLjg5di45MWgxLjg0em01LjUxLTMuNjh2My42OGEuOTIuOTIgMCAwIDEtLjkyLjkxaC0uOTJ2LTUuNTFoLjkyYS45Mi45MiAwIDAgMSAuOTIuOTIiLz48L3N2Zz4="},3847(){},29645(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};function r(e){return function(t,r){var o;return(o={})[t]=function(t){return n({type:e},t)},o[r]=function(t){return"object"==typeof t&&null!==t&&t.type===e},o}}Object.defineProperty(t,"__esModule",{value:!0}),t.ast=void 0,t.ast=n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n({},r("Selector")("selector","isSelector")),r("Rule")("rule","isRule")),r("TagName")("tagName","isTagName")),r("Id")("id","isId")),r("ClassName")("className","isClassName")),r("WildcardTag")("wildcardTag","isWildcardTag")),r("NamespaceName")("namespaceName","isNamespaceName")),r("WildcardNamespace")("wildcardNamespace","isWildcardNamespace")),r("NoNamespace")("noNamespace","isNoNamespace")),r("Attribute")("attribute","isAttribute")),r("PseudoClass")("pseudoClass","isPseudoClass")),r("PseudoElement")("pseudoElement","isPseudoElement")),r("String")("string","isString")),r("Formula")("formula","isFormula")),r("FormulaOfSelector")("formulaOfSelector","isFormulaOfSelector")),r("Substitution")("substitution","isSubstitution"))},59125(e,t,n){"use strict";t.ast=t.render=t.createParser=void 0;var r=n(77578);Object.defineProperty(t,"createParser",{enumerable:!0,get:function(){return r.createParser}});var o=n(7221);Object.defineProperty(t,"render",{enumerable:!0,get:function(){return o.render}});var i=n(29645);Object.defineProperty(t,"ast",{enumerable:!0,get:function(){return i.ast}})},23213(e,t){"use strict";function n(e,t){for(var n=t,r=0;r<e.length;r++){var o=r===e.length-1,i=e.charAt(r),s=n[i]||(n[i]={chars:{}});o&&(s.self=e),n=s.chars}}Object.defineProperty(t,"__esModule",{value:!0}),t.createRegularIndex=t.createMulticharIndex=t.emptyRegularIndex=t.emptyMulticharIndex=void 0,t.emptyMulticharIndex={},t.emptyRegularIndex={},t.createMulticharIndex=function(e){if(0===e.length)return t.emptyMulticharIndex;for(var r={},o=0,i=e;o<i.length;o++){n(i[o],r)}return r},t.createRegularIndex=function(e){if(0===e.length)return t.emptyRegularIndex;for(var n={},r=0,o=e;r<o.length;r++){n[o[r]]=!0}return n}},77578(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createParser=void 0;var r=n(23213),o=n(24843),i=n(66869),s=n(76528),a="css-selector-parser parse error: ";t.createParser=function(e){void 0===e&&(e={});var t=e.syntax,n=void 0===t?"latest":t,c=e.substitutes,l=e.strict,u=void 0===l||l,d=e.modules,f="object"==typeof n?n:i.cssSyntaxDefinitions[n];if(f.baseSyntax&&(f=(0,i.extendSyntaxDefinition)(i.cssSyntaxDefinitions[f.baseSyntax],f)),f.modules&&f.modules.length>0)for(var p=0,h=f.modules;p<h.length;p++){var m=h[p];(b=i.cssModules[m])&&(f=(0,i.extendSyntaxDefinition)(b,f))}if(d&&d.length>0)for(var g=0,y=d;g<y.length;g++){var b,v=y[g];(b=i.cssModules[v])&&(f=(0,i.extendSyntaxDefinition)(b,f))}var w=f.tag?[!0,Boolean((0,i.getXmlOptions)(f.tag).wildcard)]:[!1,!1],S=w[0],O=w[1],x=Boolean(f.ids),E=Boolean(f.classNames),A=Boolean(f.namespace),T=f.namespace&&(!0===f.namespace||!0===f.namespace.wildcard);if(A&&!S)throw new Error("".concat(a,"Namespaces cannot be enabled while tags are disabled."));var C=Boolean(c),I=f.combinators?(0,r.createMulticharIndex)(f.combinators):r.emptyMulticharIndex,N=f.attributes?[!0,f.attributes.operators?(0,r.createMulticharIndex)(f.attributes.operators):r.emptyMulticharIndex,f.attributes.caseSensitivityModifiers?(0,r.createRegularIndex)(f.attributes.caseSensitivityModifiers):r.emptyRegularIndex,"accept"===f.attributes.unknownCaseSensitivityModifiers]:[!1,r.emptyMulticharIndex,r.emptyRegularIndex,!1],P=N[0],j=N[1],k=N[2],R=N[3],_=R||Object.keys(k).length>0,M=f.pseudoClasses?[!0,f.pseudoClasses.definitions?(0,o.calculatePseudoSignatures)(f.pseudoClasses.definitions):o.emptyPseudoSignatures,"accept"===f.pseudoClasses.unknown]:[!1,o.emptyPseudoSignatures,!1],D=M[0],L=M[1],F=M[2],V=f.pseudoElements?[!0,"singleColon"===f.pseudoElements.notation||"both"===f.pseudoElements.notation,!f.pseudoElements.notation||"doubleColon"===f.pseudoElements.notation||"both"===f.pseudoElements.notation,f.pseudoElements.definitions?(0,o.calculatePseudoSignatures)(Array.isArray(f.pseudoElements.definitions)?{NoArgument:f.pseudoElements.definitions}:f.pseudoElements.definitions):o.emptyPseudoSignatures,"accept"===f.pseudoElements.unknown]:[!1,!1,!1,o.emptyPseudoSignatures,!1],$=V[0],B=V[1],H=V[2],W=V[3],U=V[4],z="",q=z.length,G=0,Y="",K=function(e){return Y===e},X=function(){return K("*")||(0,s.isIdentStart)(Y)},J=function(e){G=e,Y=z.charAt(G)},Z=function(){G++,Y=z.charAt(G)},Q=function(){var e=Y;return G++,Y=z.charAt(G),e};function ee(e){var t=Math.min(q-1,G),n=new Error("".concat(a).concat(e," Pos: ").concat(t,"."));throw n.position=t,n.name="ParserError",n}function te(e,t){if(!e)return ee(t)}var ne=function(){te(G<q,"Unexpected end of input.")},re=function(){return G>=q},oe=function(e){te(G<q,'Expected "'.concat(e,'" but end of input reached.')),te(Y===e,'Expected "'.concat(e,'" but "').concat(Y,'" found.')),G++,Y=z.charAt(G)};function ie(e){var t=se(e,G);if(t)return G+=t.length,Y=z.charAt(G),t}function se(e,t){var n=e[z.charAt(t)];if(n){var r=se(n.chars,t+1);if(r)return r;if(n.self)return n.self}}function ae(){for(var e=Q(),t=1;(0,s.isHex)(Y)&&t<s.maxHexLength;)e+=Q(),t++;return function(){if(" "===Y||"\t"===Y||"\f"===Y||"\n"===Y)return void Z();"\r"===Y&&Z();"\n"===Y&&Z()}(),String.fromCharCode(parseInt(e,16))}function ce(e){var t="";for(oe(e);G<q;){if(K(e))return Z(),t;K("\\")?(Z(),K(e)?(t+=e,Z()):"\n"===Y||"\f"===Y?Z():"\r"===Y?(Z(),K("\n")&&Z()):(0,s.isHex)(Y)?t+=ae():(t+=Y,Z())):(t+=Y,Z())}return t}function le(){if(!(0,s.isIdentStart)(Y))return null;for(var e="";K("-");)e+=Y,Z();for("-"!==e||(0,s.isIdent)(Y)||K("\\")||ee("Identifiers cannot consist of a single hyphen."),u&&e.length>=2&&ee("Identifiers cannot start with two hyphens with strict mode on."),s.digitsChars[Y]&&ee("Identifiers cannot start with hyphens followed by digits.");G<q;)if((0,s.isIdent)(Y))e+=Q();else{if(!K("\\"))break;Z(),ne(),(0,s.isHex)(Y)?e+=ae():e+=Q()}return e}function ue(){for(var e="";G<q&&!K(")");)if(K("\\")){if(Z(),re()&&!u)return(e+"\\").trim();ne(),(0,s.isHex)(Y)?e+=ae():e+=Q()}else e+=Q();return e.trim()}function de(){for(;s.whitespaceChars[Y];)Z()}function fe(e){void 0===e&&(e=!1),de();for(var t=[ve(e)];K(",");)Z(),de(),t.push(ve(e));return{type:"Selector",rules:t}}function pe(){var e;if(oe("["),de(),K("|")){te(A,"Namespaces are not enabled."),Z();var t=le();te(t,"Expected attribute name."),e={type:"Attribute",name:t,namespace:{type:"NoNamespace"}}}else if(K("*")){te(A,"Namespaces are not enabled."),te(T,"Wildcard namespace is not enabled."),Z(),oe("|");var n=le();te(n,"Expected attribute name."),e={type:"Attribute",name:n,namespace:{type:"WildcardNamespace"}}}else{var r=le();if(te(r,"Expected attribute name."),e={type:"Attribute",name:r},K("|")){var o=G;if(Z(),(0,s.isIdentStart)(Y)){te(A,"Namespaces are not enabled.");var i=le();te(i,"Expected attribute name."),e={type:"Attribute",name:i,namespace:{type:"NamespaceName",name:r}}}else J(o)}}if(te(e.name,"Expected attribute name."),de(),re()&&!u)return e;if(K("]"))Z();else{if(e.operator=ie(j),te(e.operator,"Expected a valid attribute selector operator."),de(),ne(),s.quoteChars[Y])e.value={type:"String",value:ce(Y)};else if(C&&K("$")){Z();var a=le();te(a,"Expected substitute name."),e.value={type:"Substitution",name:a}}else{var c=le();te(c,"Expected attribute value."),e.value={type:"String",value:c}}if(de(),re()&&!u)return e;if(!K("]")){var l=le();if(te(l,"Expected end of attribute selector."),e.caseSensitivityModifier=l,te(_,"Attribute case sensitivity modifiers are not enabled."),te(R||k[e.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),de(),re()&&!u)return e}oe("]")}return e}function he(){for(var e="";s.digitsChars[Y];)e+=Q();return te(""!==e,"Formula parse error."),parseInt(e)}var me=function(){return K("-")||K("+")||s.digitsChars[Y]};function ge(e,t,n){var r;if(K("(")){if(Z(),de(),C&&K("$")){Z();var o=le();te(o,"Expected substitute name."),r={type:"Substitution",name:o}}else if("String"===n.type)te((r={type:"String",value:ue()}).value,"Expected ".concat(t," argument value."));else if("Selector"===n.type)r=fe(!0);else{if("Formula"!==n.type)return ee("Invalid ".concat(t," signature."));var i=function(){if(K("e")||K("o")){var e=le();if("even"===e)return de(),[2,0];if("odd"===e)return de(),[2,1]}var t,n=null,r=1;if(K("-")&&(Z(),r=-1),me()&&(K("+")&&Z(),n=he(),!K("\\")&&!K("n")))return[0,n*r];if(null===n&&(n=1),n*=r,K("\\")?(Z(),t=(0,s.isHex)(Y)?ae():Q()):t=Q(),te("n"===t,'Formula parse error: expected "n".'),de(),K("+")||K("-")){var o=K("+")?1:-1;return Z(),de(),[n,o*he()]}return[n,0]}(),a=i[0],c=i[1];r={type:"Formula",a,b:c},n.ofSelector&&(de(),(K("o")||K("\\"))&&(te("of"===le(),"Formula of selector parse error."),de(),r={type:"FormulaOfSelector",a,b:c,selector:ve()}))}if(de(),re()&&!u)return r;oe(")")}else te(n.optional,"Argument is required for ".concat(t,' "').concat(e,'".'));return r}function ye(){if(K("*"))return te(O,"Wildcard tag name is not enabled."),Z(),{type:"WildcardTag"};if((0,s.isIdentStart)(Y)){te(S,"Tag names are not enabled.");var e=le();return te(e,"Expected tag name."),{type:"TagName",name:e}}return ee("Expected tag name.")}function be(){if(K("*")){var e=G;return Z(),K("|")?(Z(),X()?(te(A,"Namespaces are not enabled."),te(T,"Wildcard namespace is not enabled."),(n=ye()).namespace={type:"WildcardNamespace"},n):(J(e),ye())):(J(e),ye())}if(K("|"))return te(A,"Namespaces are not enabled."),Z(),(n=ye()).namespace={type:"NoNamespace"},n;if((0,s.isIdentStart)(Y)){var t=le();if(te(t,"Expected tag name."),!K("|"))return te(S,"Tag names are not enabled."),{type:"TagName",name:t};var n;e=G;return Z(),X()?(te(A,"Namespaces are not enabled."),(n=ye()).namespace={type:"NamespaceName",name:t},n):(J(e),{type:"TagName",name:t})}return ee("Expected tag name.")}function ve(e){var t,n;void 0===e&&(e=!1);var r={type:"Rule",items:[]};e&&((y=ie(I))&&(r.combinator=y,de()));for(;G<q;)if(X())te(0===r.items.length,"Unexpected tag/namespace start."),r.items.push(be());else if(K("|")){var s=G;if(Z(),!X()){J(s);break}te(0===r.items.length,"Unexpected tag/namespace start."),J(s),r.items.push(be())}else if(K(".")){te(E,"Class names are not enabled."),Z();var a=le();te(a,"Expected class name."),r.items.push({type:"ClassName",name:a})}else if(K("#")){te(x,"IDs are not enabled."),Z();var c=le();te(c,"Expected ID name."),r.items.push({type:"Id",name:c})}else if(K("["))te(P,"Attributes are not enabled."),r.items.push(pe());else{if(!K(":"))break;var l=!1;Z(),K(":")&&(te($,"Pseudo elements are not enabled."),te(H,"Pseudo elements double colon notation is not enabled."),l=!0,Z());var u=le();if(te(l||u,"Expected pseudo-class name."),te(!l||u,"Expected pseudo-element name."),te(u,"Expected pseudo-class name."),!l||U||Object.prototype.hasOwnProperty.call(W,u));else{var d=i.pseudoLocationIndex.pseudoElements[u],f='Unknown pseudo-element "'.concat(u,'"');d&&d.length>0&&(f+=". It is defined in: ".concat(d.join(", "))),ee(f+".")}if($&&(l||!l&&B&&Object.prototype.hasOwnProperty.call(W,u))){var p={type:"PseudoElement",name:u};(m=ge(u,"pseudo-element",h=null!==(t=W[u])&&void 0!==t?t:U&&o.defaultPseudoSignature))&&(te("Formula"!==m.type&&"FormulaOfSelector"!==m.type,"Pseudo-elements cannot have formula argument."),p.argument=m),r.items.push(p)}else{var h;if(te(D,"Pseudo-classes are not enabled."),h=null!==(n=L[u])&&void 0!==n?n:F&&o.defaultPseudoSignature);else{d=i.pseudoLocationIndex.pseudoClasses[u],f='Unknown pseudo-class: "'.concat(u,'"');d&&d.length>0&&(f+=". It is defined in: ".concat(d.join(", "))),ee(f+".")}var m,g={type:"PseudoClass",name:u};(m=ge(u,"pseudo-class",h))&&(g.argument=m),r.items.push(g)}}if(0===r.items.length)return re()?ee("Expected rule but end of input reached."):ee('Expected rule but "'.concat(Y,'" found.'));if(de(),!re()&&!K(",")&&!K(")")){var y=ie(I);de(),r.nestedRule=ve(),r.nestedRule.combinator=y}return r}return function(e){if("string"!=typeof e)throw new Error("".concat(a,"Expected string input."));return q=(z=e).length,G=0,Y=z.charAt(0),fe()}}},24843(e,t){"use strict";function n(e){var t={type:"NoArgument",optional:!1};function n(e){if(t.type&&t.type!==e&&"NoArgument"!==t.type)throw new Error('Conflicting pseudo-class argument type: "'.concat(t.type,'" vs "').concat(e,'".'));t.type=e}for(var r=0,o=e;r<o.length;r++){var i=o[r];"NoArgument"===i&&(t.optional=!0),"Formula"===i&&n("Formula"),"FormulaOfSelector"===i&&(n("Formula"),t.ofSelector=!0),"String"===i&&n("String"),"Selector"===i&&n("Selector")}return t}function r(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var o=r[n],i=e[o];if(i)for(var s=0,a=i;s<a.length;s++){var c=a[s];(t[c]||(t[c]=[])).push(o)}}return t}Object.defineProperty(t,"__esModule",{value:!0}),t.calculatePseudoSignatures=t.inverseCategories=t.defaultPseudoSignature=t.emptyPseudoSignatures=void 0,t.emptyPseudoSignatures={},t.defaultPseudoSignature={type:"String",optional:!0},t.inverseCategories=r,t.calculatePseudoSignatures=function(e){for(var t=r(e),o={},i=0,s=Object.keys(t);i<s.length;i++){var a=s[i],c=t[a];c&&(o[a]=n(c))}return o}},7221(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.render=void 0;var r=n(76528),o="css-selector-parser render error: ";function i(e){if("WildcardNamespace"===e.type)return"*|";if("NamespaceName"===e.type)return"".concat((0,r.escapeIdentifier)(e.name),"|");if("NoNamespace"===e.type)return"|";throw new Error("".concat(o,"Unknown namespace type: ").concat(e.type,"."))}function s(e,t){if(e){var n="".concat(1===e?"":-1===e?"-":e,"n");return t&&(n+="".concat(t>0?"+":"").concat(t)),n}return String(t)}t.render=function e(t){if("Selector"===t.type)return t.rules.map(e).join(", ");if("Rule"===t.type){var n="",a=t.items,c=t.combinator,l=t.nestedRule;c&&(n+="".concat(c," "));for(var u=0,d=a;u<d.length;u++){n+=e(d[u])}return l&&(n+=" ".concat(e(l))),n}if("TagName"===t.type||"WildcardTag"===t.type){n="";return(p=t.namespace)&&(n+=i(p)),"TagName"===t.type?n+=(0,r.escapeIdentifier)(t.name):"WildcardTag"===t.type&&(n+="*"),n}if("Id"===t.type)return"#".concat((0,r.escapeIdentifier)(t.name));if("ClassName"===t.type)return".".concat((0,r.escapeIdentifier)(t.name));if("Attribute"===t.type){var f=t.name,p=t.namespace,h=t.operator,m=t.value,g=t.caseSensitivityModifier;n="[";if(p&&(n+=i(p)),n+=(0,r.escapeIdentifier)(f),h&&m){if(n+=h,"String"===m.type)n+=(0,r.escapeString)(m.value);else{if("Substitution"!==m.type)throw new Error("Unknown attribute value type: ".concat(m.type,"."));n+=(w=m,"$".concat((0,r.escapeIdentifier)(w.name)))}g&&(n+=" ".concat((0,r.escapeIdentifier)(g)))}return n+="]"}if("PseudoClass"===t.type){var y=t.name,b=t.argument;n=":".concat((0,r.escapeIdentifier)(y));return b&&(n+="(".concat("String"===b.type?(0,r.escapeIdentifier)(b.value):e(b),")")),n}if("PseudoElement"===t.type){var v=t.name;b=t.argument,n="::".concat((0,r.escapeIdentifier)(v));return b&&(n+="(".concat("String"===b.type?(0,r.escapeIdentifier)(b.value):e(b),")")),n}if("String"===t.type)throw new Error("".concat(o,"String cannot be rendered outside of context."));if("Formula"===t.type)return s(t.a,t.b);if("FormulaOfSelector"===t.type)return s(t.a,t.b)+" of "+e(t.selector);if("Substitution"===t.type)return"$".concat((0,r.escapeIdentifier)(t.name));var w;throw new Error("Unknown type specified to render method: ".concat(t.type,"."))}},66869(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.pseudoLocationIndex=t.buildPseudoLocationIndex=t.cssSyntaxDefinitions=t.cssModules=t.extendSyntaxDefinition=t.getXmlOptions=void 0;var r,o,i={},s={wildcard:!0};function a(e,t){return function(n,r){return!0===r?e:t(!0===n?e:n,r)}}function c(e){return function(t,r){if(!r||!t)return r;if("object"!=typeof r||null===r)throw new Error("Unexpected syntax definition extension type: ".concat(r,"."));for(var o=n({},t),i=0,s=Object.entries(r);i<s.length;i++){var a=s[i],c=a[0],l=a[1];if("latest"!==c){var u=e[c];o[c]=u(t[c],l)}}return o}}function l(e,t){return void 0!==t?t:e}function u(e,t){return t?e?e.concat(t):t:e}function d(e,t){if(!t)return e;if(!e)return t;for(var r=n({},e),o=0,i=Object.entries(t);o<i.length;o++){var s=i[o],a=s[0],c=s[1];if(c){var l=e[a];r[a]=l?l.concat(c):c}else delete r[a]}return r}t.getXmlOptions=function(e){return e?"boolean"==typeof e?s:e:i},t.extendSyntaxDefinition=function(e){return function(t,n){var r=e(t,n);if(!r)throw new Error("Syntax definition cannot be null or undefined.");return r}}(c({baseSyntax:l,modules:u,tag:a(s,c({wildcard:l})),ids:l,classNames:l,namespace:a(s,c({wildcard:l})),combinators:u,attributes:c({operators:u,caseSensitivityModifiers:u,unknownCaseSensitivityModifiers:l}),pseudoClasses:c({unknown:l,definitions:d}),pseudoElements:c({unknown:l,notation:l,definitions:(r=function(e){return Array.isArray(e)?{NoArgument:e}:e},o=d,function(e,t){return o(r(e),r(t))})})}));var f={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},p=(0,t.extendSyntaxDefinition)(f,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),h=(0,t.extendSyntaxDefinition)(p,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),m=(0,t.extendSyntaxDefinition)(h,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid","playing","paused","autofill","modal","fullscreen","picture-in-picture","defined","loading","popover-open"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has","state"]}},pseudoElements:{definitions:{NoArgument:["marker"]}}});t.cssModules={"css-position-1":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute"]}}},"css-position-2":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute","fixed"]}}},"css-position-3":{latest:!1,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static"]}}},"css-position-4":{latest:!0,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static","initial"]}}},"css-scoping-1":{latest:!0,pseudoClasses:{definitions:{NoArgument:["host","host-context"],Selector:["host","host-context"]}},pseudoElements:{definitions:{Selector:["slotted"]}}},"css-pseudo-4":{latest:!0,pseudoElements:{definitions:{NoArgument:["marker","selection","target-text","search-text","spelling-error","grammar-error","backdrop","file-selector-button","prefix","postfix","placeholder","details-content"],String:["highlight"]}}},"css-shadow-parts-1":{latest:!0,pseudoElements:{definitions:{String:["part"]}}}};var g=n(n({},m),{modules:Object.entries(t.cssModules).filter(function(e){return e[1].latest}).map(function(e){return e[0]})}),y=(0,t.extendSyntaxDefinition)(g,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}});function b(){for(var e={pseudoClasses:{},pseudoElements:{}},n=0,r=["css1","css2","css3","selectors-3","selectors-4"];n<r.length;n++){var o=r[n],i=t.cssSyntaxDefinitions[o];if(i.pseudoClasses&&"object"==typeof i.pseudoClasses)if(S=i.pseudoClasses.definitions)for(var s=0,a=Object.entries(S);s<a.length;s++)for(var c=0,l=a[s][1];c<l.length;c++){var u=l[c];e.pseudoClasses[u]||(e.pseudoClasses[u]=[]),e.pseudoClasses[u].includes(o)||e.pseudoClasses[u].push(o)}if(i.pseudoElements&&"object"==typeof i.pseudoElements)if(S=i.pseudoElements.definitions)if(Array.isArray(S))for(var d=0,f=S;d<f.length;d++){var p=f[d];e.pseudoElements[p]||(e.pseudoElements[p]=[]),e.pseudoElements[p].includes(o)||e.pseudoElements[p].push(o)}else for(var h=0,m=Object.values(S);h<m.length;h++)for(var g=0,y=m[h];g<y.length;g++){var b=y[g];e.pseudoElements[b]||(e.pseudoElements[b]=[]),e.pseudoElements[b].includes(o)||e.pseudoElements[b].push(o)}}for(var v=0,w=Object.entries(t.cssModules);v<w.length;v++){var S,O=w[v],x=O[0],E=O[1];if(E.pseudoClasses&&"object"==typeof E.pseudoClasses)if(S=E.pseudoClasses.definitions)for(var A=0,T=Object.values(S);A<T.length;A++)for(var C=0,I=T[A];C<I.length;C++){var N=I[C];e.pseudoClasses[N]||(e.pseudoClasses[N]=[]),e.pseudoClasses[N].includes(x)||e.pseudoClasses[N].push(x)}if(E.pseudoElements&&"object"==typeof E.pseudoElements)if(S=E.pseudoElements.definitions)if(Array.isArray(S))for(var P=0,j=S;P<j.length;P++){var k=j[P];e.pseudoElements[k]||(e.pseudoElements[k]=[]),e.pseudoElements[k].includes(x)||e.pseudoElements[k].push(x)}else for(var R=0,_=Object.values(S);R<_.length;R++)for(var M=0,D=_[R];M<D.length;M++){var L=D[M];e.pseudoElements[L]||(e.pseudoElements[L]=[]),e.pseudoElements[L].includes(x)||e.pseudoElements[L].push(x)}}return e}t.cssSyntaxDefinitions={css1:f,css2:p,css3:h,"selectors-3":h,"selectors-4":m,latest:g,progressive:y},t.buildPseudoLocationIndex=b,t.pseudoLocationIndex=b()},76528(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escapeString=t.escapeIdentifier=t.maxHexLength=t.digitsChars=t.quoteChars=t.whitespaceChars=t.stringRenderEscapeChars=t.identEscapeChars=t.isHex=t.isIdent=t.isIdentStart=void 0,t.isIdentStart=function(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||"-"===e||"_"===e||"\\"===e||e>=" "},t.isIdent=function(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"-"===e||"_"===e||e>=" "},t.isHex=function(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"},t.identEscapeChars={"!":!0,'"':!0,"#":!0,$:!0,"%":!0,"&":!0,"'":!0,"(":!0,")":!0,"*":!0,"+":!0,",":!0,".":!0,"/":!0,";":!0,"<":!0,"=":!0,">":!0,"?":!0,"@":!0,"[":!0,"\\":!0,"]":!0,"^":!0,"`":!0,"{":!0,"|":!0,"}":!0,"~":!0},t.stringRenderEscapeChars={"\n":!0,"\r":!0,"\t":!0,"\f":!0,"\v":!0},t.whitespaceChars={" ":!0,"\t":!0,"\n":!0,"\r":!0,"\f":!0},t.quoteChars={'"':!0,"'":!0},t.digitsChars={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},t.maxHexLength=6,t.escapeIdentifier=function(e){for(var n=e.length,r="",o=0;o<n;){var i=e.charAt(o);if(t.identEscapeChars[i]||"-"===i&&1===o&&"-"===e.charAt(0))r+="\\"+i;else if("-"===i||"_"===i||i>="A"&&i<="Z"||i>="a"&&i<="z"||i>="0"&&i<="9"&&0!==o&&(1!==o||"-"!==e.charAt(0)))r+=i;else{var s=i.charCodeAt(0);if(55296==(63488&s)){var a=e.charCodeAt(o++);if(55296!=(64512&s)||56320!=(64512&a))throw Error("UCS-2(decode): illegal sequence");s=((1023&s)<<10)+(1023&a)+65536}r+="\\"+s.toString(16)+" "}o++}return r.trim()},t.escapeString=function(e){for(var n=e.length,r="",o=0;o<n;){var i=e.charAt(o);'"'===i?i='\\"':"\\"===i?i="\\\\":t.stringRenderEscapeChars[i]&&(i="\\"+i.charCodeAt(0).toString(16)+(o===n-1?"":" ")),r+=i,o++}return'"'.concat(r,'"')}},89613(e){"use strict";e.exports=JSON.parse('{"version":"2.17.0-next.926904c7"}')},9510(e){"use strict";e.exports=JSON.parse('{"rE":"4.131.3-next.7a790008","El":{"lU":"^4.12.1"}}')}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.m=t,r.amdO={},e=[],r.O=(t,n,o,i)=>{if(!n){var s=1/0;for(u=0;u<e.length;u++){for(var[n,o,i]=e[u],a=!0,c=0;c<n.length;c++)(!1&i||s>=i)&&Object.keys(r.O).every(e=>r.O[e](n[c]))?n.splice(c--,1):(a=!1,i<s&&(s=i));if(a){e.splice(u--,1);var l=o();void 0!==l&&(t=l)}}return t}i=i||0;for(var u=e.length;u>0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[n,o,i]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.j=854,r.dn=e=>{(Object.getOwnPropertyDescriptor(e,"name")||{}).writable||Object.defineProperty(e,"name",{value:"default",configurable:!0})},(()=>{r.b="undefined"!=typeof document&&document.baseURI||self.location.href;var e={854:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var o,i,[s,a,c]=n,l=0;if(s.some(t=>0!==e[t])){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(c)var u=c(r)}for(t&&t(n);l<s.length;l++)i=s[l],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return r.O(u)},n=this.webpackChunk=this.webpackChunk||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var o=r.O(void 0,[121],()=>r(95249));o=r.O(o)})();
|
|
61
|
+
`,eo=(e,t={})=>{const n=Rn(e,...e.children||[]),r=An.Ay.getRole(e.element)||"",o=((e,t)=>{if(t||!(e instanceof HTMLElement)||e.tabIndex<0||e.hasAttribute("aria-activedescendant"))return!1;const{overflowX:n,overflowY:r}=window.getComputedStyle(e);return[n,r].some(e=>"auto"===e||"scroll"===e)})(e.element,r);return Xr(Xr(Xr({},vr(e,{},"accName")),{},{role:r,box:Fn(n)?n:void 0,tightBox:_n(e),states:[{calculated:_r(e)}],isScrollableRegion:o},!o||(i=e.element,null!==(s=i.getAttribute("aria-label"))&&void 0!==s&&s.trim()||null!==(a=i.getAttribute("aria-labelledby"))&&void 0!==a&&a.trim()||null!==(c=i.getAttribute("title"))&&void 0!==c&&c.trim())?{}:{accName:""}),t);var i,s,a,c},to=e=>{const t=e.element.matches(Qr),n="gridcell"===An.Ay.getRole(e.element);if(t&&n){const t=e.element.tabIndex>=0,n=!!e.element.querySelector(Qr);return t||!n}return t};function no(e){nn.yS.listen("igt:interactive-elements:get-interactives",()=>{var t;An.Ay.setupTrees();const n=(null===(t=e())||void 0===t?void 0:t.values())||[];Zr("Getting interactive elements from ",{flatTree:n});const r=kr(n,to,!0).map(e=>{var t,n;return eo(e,{ancestors:(null===(t=e.ancestors)||void 0===t?void 0:t.map(({vnodeId:e})=>e))||[],children:(null===(n=e.children)||void 0===n?void 0:n.map(({vnodeId:e})=>e))||[],descendants:Gr(e).map(({vnodeId:e})=>e)})});return An.Ay.cleanupTrees(),Zr("Got interactives",{interactives:r}),r}),nn.yS.listen("igt:interactive-elements:get-all-possible-interactives",()=>{var t;An.Ay.setupTrees();const n=(null===(t=e())||void 0===t?void 0:t.values())||[];Zr("Getting interactive elements from ",{flatTree:n});const r=kr(n,()=>!0,!0).map(e=>Xr(Xr({},zr(e)),eo(e)));return An.Ay.cleanupTrees(),Zr("Got all nodes ",{allNodes:r}),r}),nn.yS.listen("igt:interactive-elements:get-groupings",({message:t})=>{An.Ay.setupTrees();const n=e(),r=t.interactives.map(e=>{const t=n.getById(e.vnodeId);return Xr(Xr({},e),{},{element:null==t?void 0:t.element})}),o=$r(r),i=(e=>{const t=[];for(const n of e){const{element:e,box:r,role:o}=n,i=null==e?void 0:e.ownerDocument,s=null==i?void 0:i.defaultView,a=null==s?void 0:s.getComputedStyle(e),c=null==a?void 0:a.getPropertyValue("background-color"),l=null==a?void 0:a.getPropertyValue("color"),u=null==a?void 0:a.getPropertyValue("border-width"),d=null==a?void 0:a.getPropertyValue("border-style"),f=null==a?void 0:a.getPropertyValue("border-color"),p=null==a?void 0:a.getPropertyValue("border-radius"),h=null==a?void 0:a.getPropertyValue("font-weight"),m=null==a?void 0:a.getPropertyValue("font-size"),{height:g,width:y,y:b,x:v}=r||{},w=t.find(Vr(Dr()({height:g,background:c,textColor:l,borderWidth:u,borderStyle:d,borderRadius:p,fontSize:m}),Dr()({width:y,background:c,textColor:l,borderWidth:u,borderStyle:d,borderRadius:p,fontSize:m}),Dr()({role:o,background:c,textColor:l,fontSize:m,x:v}),Dr()({role:o,background:c,textColor:l,fontSize:m,y:b})));w?w.vnodeIds.push(n.vnodeId):t.push({id:t.length,role:o,height:g,background:c,textColor:l,borderWidth:u,borderStyle:d,borderColor:f,borderRadius:p,x:v,y:b,width:y,fontSize:m,fontWeight:h,vnodeIds:[n.vnodeId]})}return(e=>{let t,n=e.length;for(;n--;){const r=e[n];if(1===r.vnodeIds.length){if(t)t.vnodeIds.push(...r.vnodeIds);else{const{id:e,vnodeIds:n}=r;t={id:e,vnodeIds:n,type:"misc"}}e.splice(n,1)}}return t&&e.push(t),e})(t)})(r);return An.Ay.cleanupTrees(),{role:o,intelligent:i}}),nn.yS.listen("igt:interactive-elements:map-user-selected",({message:t})=>{const{selected:n=[]}=t,r=e();An.Ay.setupTrees();const o=n.map(e=>{const t=r.getById(e.vnodeId);return eo(t,{userSelected:!0,source:An.Ay.getSource(t.element)})});return An.Ay.cleanupTrees(),o}),nn.yS.listen("igt:check-state",({message:t})=>{var n;const r=e().getById(null==t||null===(n=t.vnode)||void 0===n?void 0:n.vnodeId);return null!=r&&r.element?_r(r):[]}),((e,t)=>{nn.yS.listen(e,({message:e})=>{const{vnodes:n,screenshotWidthPx:r,screenshotHeightPx:o,zoom:i}=e,s={};if(null==n||!n.length)return s;const a=t(),c=window.scrollX,l=window.scrollY,u=0!==c||0!==l;u&&window.scrollTo({top:0,left:0,behavior:"instant"});try{for(const{vnodeId:e,moment1Box:t}of n){const n=null==a?void 0:a.getById(e);s[e]=Yr(null==n?void 0:n.element,t,{screenshotWidthPx:r,screenshotHeightPx:o,zoom:i})}}finally{u&&window.scrollTo({top:l,left:c,behavior:"instant"})}return s})})("igt:interactive-elements:classify-stability",e)}const ro=e=>(e=>{const t=null==e?void 0:e.trim();return t?t.length>300?t.slice(0,300):t:null})(e.element.textContent);function oo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function io(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oo(Object(n),!0).forEach(function(t){so(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function so(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ao=e=>e.element.matches('h1, h2, h3, h4, h5, h6, [role="heading"]')&&!!br(e.element).length,co=e=>e.element.matches('dl:not([role]), ol:not([role]), ul:not([role]), [role="list"]'),lo=e=>{var t;return null===(t=e.attrs)||void 0===t?void 0:t.includes("lang")},uo=e=>{var t;return!!e.isFrame&&!(null===(t=e.attrs)||void 0===t||!t.includes("title"))&&!!br(e.element).length},fo=e=>{var t;return"application"===(null===(t=e.attributes)||void 0===t?void 0:t.role)},po=e=>["audio","video"].includes(e.tagName.toLowerCase());function ho(e){An.Ay.setupTrees();const t=e();return An.Ay.cleanupTrees(),t}function mo(e){var t;const[,n]=e.tagName.match(/^h(\d)$/)||[],r=n?parseInt(n):-1;if(null!==(t=e.attributes.role)&&void 0!==t&&t.includes("heading")){const t=parseInt(e.element.getAttribute("aria-level")||e.attributes["aria-level"]);return isNaN(t)||t<1||t>6?-1!==r?r:2:t}return r}const go=e=>{var t,n;const r=Rn(e);return io(io({},vr(e,{},"accessibleText")),{},{textContent:ro(e),role:An.Ay.getRole(e.element),level:mo(e),box:Fn(r)?r:void 0,ancestors:(null===(t=e.ancestors)||void 0===t?void 0:t.map(({vnodeId:e})=>e))||[],children:(null===(n=e.children)||void 0===n?void 0:n.map(({vnodeId:e})=>e))||[],descendants:Gr(e).map(({vnodeId:e})=>e)})},yo=e=>{var t,n;const r=Rn(e);return io(io({},vr(e,{},"accessibleText")),{},{source:e.element.outerHTML,role:An.Ay.getRole(e.element),listItemCount:Array.from(e.element.querySelectorAll('li, dt, [role="listitem"]')).length,box:Fn(r)?r:void 0,listChildren:(e.children||[]).map(e=>vr(e,{},"accessibleText")),ancestors:(null===(t=e.ancestors)||void 0===t?void 0:t.map(({vnodeId:e})=>e))||[],children:(null===(n=e.children)||void 0===n?void 0:n.map(({vnodeId:e})=>e))||[],descendants:Gr(e).map(({vnodeId:e})=>e)})},bo=async e=>{var t,n,r;const o=document.createNodeIterator(e.element,NodeFilter.SHOW_TEXT,t=>!document.body.contains(t.parentElement)||t.parentElement.hasAttribute("lang")&&t.parentElement!==e.element?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);let i,s="";for(;i=o.nextNode();)s+=` ${i.textContent.trim()}`;const{isReliable:a,languages:c=[]}=await browser.i18n.detectLanguage(s);let l;if(a){l=c.shift();for(const e of c)(null==e?void 0:e.percentage)>l.percentage&&(l=e)}const u=vr(e,{},"accessibleText"),d=e.vnodeId>=0;return io(io({},u),{},{lang:e.attributes.lang,isValidLang:An.Ay.isValidLang(null===(t=e.attributes.lang)||void 0===t?void 0:t.toLowerCase()),detectedLang:!!l&&(null===(n=l)||void 0===n?void 0:n.language),langConfidence:l?null===(r=l)||void 0===r?void 0:r.percentage:-1,textContent:d?ro(e):null})},vo=e=>io(io({},vr(e,{},"accessibleText")),{},{descriptionText:Pr(e.element)}),wo=e=>{const t=Rn(e);return io(io({},(e=>io({},vr(e,{},"accessibleText")))(e)),{},{box:Fn(t)?t:void 0})},So=e=>{const t=Rn(e);return io(io({},vr(e,{},"accessibleText")),{},{box:Fn(t)?t:void 0})};const Oo=e=>e.matches(":modal");function xo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xo(Object(n),!0).forEach(function(t){Ao(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ao(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const To=sn()("igt:modal-dialog"),Co=['[role="dialog"]','[role="alertdialog"]',"dialog"].join(":not(:empty), "),Io=['[class*="modal" i]','[class*="dialog" i]'].join(":not(:empty), "),No=["absolute","fixed"];let Po=null;const jo=["dialog","alertdialog"],ko=e=>new Promise(t=>{setTimeout(t,e)}),Ro=(e=document.activeElement)=>{const{shadowRoot:t}=e;return t&&t.activeElement?Ro(t.activeElement):"IFRAME"===e.tagName&&e.contentDocument?Ro(e.contentDocument.activeElement):e},_o=(e,t=document)=>Array.from(t.querySelectorAll(e)).filter(e=>An.Ay.isSRVisible(e)),Mo=e=>{const t=An.Ay.name(e);return"string"==typeof t?t:""},Do=e=>{if(!e)return;const t=[e,...e.ancestors].find(e=>An.Ay.isFocusable(e.element));null==t||t.element.focus(),e.element.dispatchEvent(new Event("mousedown",{bubbles:!0})),e.element.dispatchEvent(new Event("mouseup",{bubbles:!0})),"function"==typeof e.element.click?e.element.click():e.element.dispatchEvent(new Event("click",{bubbles:!0}))},Lo=(e=document)=>{let t=null;const n=[()=>_o(Co,e),()=>_o('[aria-modal="true"]:not(:empty)',e),()=>_o(Io,e).filter(e=>No.includes(window.getComputedStyle(e).position)||!!e.offsetParent&&No.includes(window.getComputedStyle(e.offsetParent).position)),()=>{const t=((e=document)=>{if("function"!=typeof(null==e?void 0:e.elementsFromPoint))return null;const t="defaultView"in e&&e.defaultView||window,n=.75*t.innerWidth,r=.75*t.innerHeight,o=(t.innerWidth-n)/2,i=(t.innerHeight-r)/2,s=[{x:o,y:i},{x:t.innerWidth-o,y:i},{x:t.innerWidth/2,y:t.innerHeight/2},{x:o,y:t.innerHeight-i},{x:t.innerWidth-o,y:t.innerHeight-i}].map(t=>Array.from(e.elementsFromPoint(t.x,t.y)));for(const e of s){const o=e.find(e=>{if(!(e instanceof HTMLElement))return!1;const o=t.getComputedStyle(e);return parseFloat(o.width)>=n&&parseFloat(o.height)>=r&&"none"!==o.getPropertyValue("pointer-events")&&No.includes(o.position)});if(o&&s.every(e=>e.includes(o)))return o}return null})(e);return t&&An.Ay.isSRVisible(t)?[t]:[]}];for(let e=0;e<n.length;e++){const r=(0,n[e])();if(1===r.length){t=r[0];break}}return t?(e=>{var t;const n=null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView;if(!n)return e;const{width:r,height:o}=e.getBoundingClientRect(),i=n.innerWidth*n.innerHeight;return 0===i||r*o<.9*i?e:e.querySelector('[class~="modal-content" i]:not(:empty), [class~="dialog-content" i]:not(:empty)')||e.querySelector('[role="document"]:not(:empty), [class~="modal-dialog" i]:not(:empty), [class~="dialog-container" i]:not(:empty)')||e})(t):null},Fo=e=>{const t=e.element.getAttribute("tabindex");e.element.tabIndex=t||-1,e.element.focus()},Vo=(e,t=!1)=>{const n=n=>{var r,o,i;return e.element.contains(n)||!(null===(r=e.contains)||void 0===r||!r.call(e,n))||t&&(o=n,i=e.element,o.contains(i)&&o!==i&&o!==i.ownerDocument.body&&o!==i.ownerDocument.documentElement)};let r=n(Ro());if(!r&&Po){const e=n(Po);r=e,e&&(Po=null)}return r};function $o({getTree:e,getFlatTree:t,buildTree:n},r=3e3){const o=async(t,r,o=[])=>{let i=e(),s=t&&i.getById(t.vnodeId);return s||(await n({value:r,vitals:o}),i=e(),s=t&&i.getById(t.vnodeId)),s},i=(t,n)=>{const r=e(),o=n&&r.getById(n.vnodeId);o&&t&&!An.Ay.isVisible(t.element,!0)&&o.element.click()},s=new Set,a=new Set,c=new Set,l=e=>{s.add(e.target)},u=t=>{An.Ay.cleanupTrees();const n=(e=>[e,...e.ancestors,...e.children].filter(e=>!e.isShadow).find(e=>jo.includes(An.Ay.getRole(e.element))))(t),r=n&&mn(n),o=(e=>[e,...e.ancestors,...e.children].filter(e=>!e.isShadow).find(e=>"true"===e.element.getAttribute("aria-modal")))(t),i=Vo(t,!(!!n||!!o)),s=(t=>{const{element:n}=t,r=[];let o=n.parentNode;for(;o&&"HTML"!==o.nodeName;){const i=Array.from(o.children),s=e();i.forEach(e=>{var o;const i=s.get(e);if(e!==n&&!(e.contains(n)||null!=i&&null!==(o=i.contains)&&void 0!==o&&o.call(i,t))&&e.tagName.toLowerCase()!==jr.wZ&&An.Ay.isSRVisible(e)&&(An.Ay.name(e)||"").trim()){const t=Eo(Eo({},mn(i)),{},{source:An.Ay.getSource(e)});r.push(t)}}),o=o.parentNode}return r})(t),a=e=>!!e&&Vo(e);return{dialogRoleVnode:r,hasDialogRole:!!r,focusBroughtToModal:!!i||a(n)||a(o),handledAriaHidden:!s.length,ariaHiddenMissingVNodes:s,isModalDialog:Oo(t.element)||!(!n||!Oo(n.element)),isAriaModal:!!o}};nn.yS.listen("igt:modal-dialog:detect:with-trigger",async({message:{manifest:i,vitals:s}})=>{let a=e();const c=await o(i["select-trigger"],i,s);Do(c),await ko(r),await n({value:i,vitals:s}),a=e();const l=[document,...Zn({tree:a,flat:t()}),...Qn({tree:a,flat:t()})];let d=null;l.some(e=>(d=Lo(e),!!d)),d||(Po=Ro());const f=d?a.get(d):null;return f?Eo({modal:Eo(Eo({},mn(f)),{},{accessibleName:Mo(f.element)})},u(f)):{modal:null}}),nn.yS.listen("igt:modal-dialog:focus-trap",async({message:{manifest:e,vitals:t}})=>{const{modal:n,focusBroughtToModal:r}=e,s=await o(n,e,t);return new Promise(t=>{let n,o=null;const a=e=>o=e.target,c=new Set,l=e=>(e&&document.addEventListener("focus",a,!0),nn.yS.send(nn._O.background,e?"modal:tabber-init":"modal:fire-tab")),u=document.createElement("div");u.tabIndex=0,u.setAttribute("data-axedevtools-tabstop-ignore","true"),document.body.appendChild(u);const d=()=>{n=setTimeout(()=>{const e=Ro(),t=e===document.body&&o!==e,n=c.has(e),r=e=>{var t;return s.element.contains(e)||(null===(t=s.contains)||void 0===t?void 0:t.call(s,e))},i=e.getRootNode()instanceof ShadowRoot;let a=!r(e)&&!t;if(a){let t=null;if(i){for(t=e.getRootNode().host;null!==(u=t.getRootNode())&&void 0!==u&&u.host&&!r(t)&&!document.body.contains(t);){var u;t=t.getRootNode().host}a=!r(t)}}if(To("focus-trap:checkFocus",{activeElement:e,hasShadowRoot:i,isCircular:n,isOutside:a}),n||a)return f({isCircular:n,isOutside:a});t||c.add(e),l(!1),d()},200)},f=e=>{var r;null===(r=u.parentNode)||void 0===r||r.removeChild(u),clearTimeout(n),document.removeEventListener("focus",a,!0),nn.yS.send(nn._O.background,"modal:tabber-stop"),t(e)};if(!s)return f({});i(s,e["select-trigger"]),r||Fo(s),d(),l(!0)})}),nn.yS.listen("igt:modal-dialog:escape",async({message:{manifest:n}})=>{var u;const d=await o(n.modal,n);if(!d)return{};i(d,n["select-trigger"]);const f=document.activeElement;d.element.contains(f)||null!==(u=d.contains)&&void 0!==u&&u.call(d,f)||Fo(d),(()=>{const n=e(),r=t();er({tree:n,flat:r}).forEach(e=>{if(c.add(e),e.addEventListener("submit",l,!0),"function"==typeof e.submit){const t=e.submit;e.submit=()=>{s.add(e),t.call(e)},a.add(()=>{e.submit=t})}})})(),await nn.yS.send(nn._O.background,"modal:fire-escape"),await ko(r);const p=!An.Ay.isVisible(d.element,!0),h={escapeClosed:p,formSubmitted:!!s.size};if(a.forEach(e=>e()),c.forEach(e=>{e.removeEventListener("submit",l,!0)}),s.clear(),a.clear(),c.clear(),p){const t=e().get(document.activeElement),r=n["select-trigger"];h.focusReturnedToTrigger=!!t&&!!r&&t.vnodeId===r.vnodeId,"number"==typeof(null==t?void 0:t.vnodeId)&&(null==t?void 0:t.vnodeId)>=0&&(h.focusReturnTarget=mn(t))}return h}),nn.yS.listen("igt:modal-dialog:assess",async({message:t})=>{const n=t.vnode;if(!n||!n.vnodeId)return;const r=e().getById(n.vnodeId),o=Eo(Eo({},mn(r)),{},{accessibleName:Mo(r.element)});return Eo({modal:o},u(r))}),nn.yS.listen("igt:modal-dialog:assess-dismiss",async({message:t})=>{const n=e().get(document.activeElement),r=t.vnode;return{focusReturnTarget:n&&mn(n),focusReturnedToTrigger:n&&r&&n.vnodeId===r.vnodeId,"user-dismiss-modal":!0}});const d=(e,t)=>{if(null==e||!e.element)return null;const n=e.element.getBoundingClientRect();if(n.width<=0||n.height<=0)return null;const r=t;let o=0,i=0;for(const t of e.ancestors??[])if(t.isFrame&&t.element){const e=t.element.getBoundingClientRect();o+=e.left,i+=e.top}const s=n.left+window.pageXOffset+o,a=n.top+window.pageYOffset+i;return{width:Math.round(n.width*r),height:Math.round(n.height*r),top:Math.round(a*r),left:Math.round(s*r),right:Math.round((s+n.width)*r),bottom:Math.round((a+n.height)*r)}},f=e=>"number"==typeof e&&Number.isFinite(e)&&e>0;nn.yS.listen("igt:modal-dialog:capture-pre-dismiss-focus-inputs",async({message:{manifest:e,screenshotZoomLevel:t}})=>{if(!f(t))return null;const n=await o(e.modal,e),r=e["select-trigger"],i=r?await o(r,e):null;if(null==n||!n.element||null==i||!i.element)return null;const s=d(n,t),a=d(i,t);return s&&a?{modal_bounding_box:s,modal_html_markup:n.element.outerHTML,trigger_element_bbox:a}:null}),nn.yS.listen("igt:modal-dialog:collect-post-dismiss-focus-target",async({message:{focusVnodeId:t,screenshotZoomLevel:n}})=>{if("number"!=typeof t||!f(n))return null;const r=e().getById(t);if(null==r||!r.element)return null;const o=d(r,n);if(!o)return null;const{element:i}=r,s=An.Ay.name(i)||"",a=(i.textContent||"").trim(),c=s.trim()||a,l=c.length<=200?c:c.slice(0,200);return{current_focus_bbox:o,focus_html_markup:i.outerHTML,focus_element_text:l}});const p=e=>!(null!=e&&e.element&&An.Ay.isVisible(e.element,!0));nn.yS.listen("igt:modal-dialog:try-auto-dismiss",async({message:{modalVnodeId:t,triggerVnodeId:n,dismissCandidates:o}})=>{const i=e().getById(t);if(null==i||!i.element)return{success:!1};const s=()=>{const t=e().get(document.activeElement),r=!!t&&"number"==typeof n&&t.vnodeId===n;return{focusReturnTarget:"number"==typeof(null==t?void 0:t.vnodeId)&&t.vnodeId>=0?mn(t):void 0,focusReturnedToTrigger:r}};if(p(i))return Eo({success:!0,strategy:"already-closed"},s());const a=async t=>{const n=e().get(t);return!!n&&(Do(n),await ko(r),p(i))},c=['form[method="dialog" i] button:not([type="button" i])','button[formmethod="dialog" i]','[data-bs-dismiss="modal"]','[data-dismiss="modal"]','button[aria-label="close" i]','button[aria-label="dismiss" i]','[role="button"][aria-label="close" i]','[role="button"][aria-label="dismiss" i]'];for(const e of c){const t=i.element.querySelectorAll(e);for(const e of Array.from(t))if(An.Ay.isVisible(e,!0)&&await a(e))return Eo({success:!0,strategy:"semantic_dom"},s())}if((i.ancestors??[]).some(e=>e.isFrame))return{success:!1};const l=i.element.getBoundingClientRect(),u=e=>({centerX:l.left+(e.left+e.right)/2/1e3*l.width,centerY:l.top+(e.top+e.bottom)/2/1e3*l.height}),d=(e,t)=>{const n=document.elementsFromPoint(e,t)??[];for(const e of n)if(e!==i.element&&i.element.contains(e)&&e.matches('button, [role="button"], a, [tabindex]:not([tabindex="-1"]), [data-bs-dismiss], [data-dismiss]'))return e;return null},f=e=>e.right>e.left&&e.bottom>e.top;for(let e=0;e<o.length;e++){const t=o[e];if(!f(t))continue;const{centerX:n,centerY:r}=u(t),i=d(n,r);if(i&&await a(i))return Eo({success:!0,strategy:"ai_candidate",candidateIndex:e},s())}const h=(e=>{const t=e.element.getBoundingClientRect();if(t.width<=0||t.height<=0)return null;const n=t.left+t.width/2,r=t.top+t.height/2,o=document.elementsFromPoint(n,r),i=window.innerWidth*window.innerHeight;for(const t of o){if(!(t instanceof HTMLElement))continue;if(t===e.element||e.element.contains(t))continue;const n=window.getComputedStyle(t);if(!No.includes(n.position))continue;const r=t.getBoundingClientRect();if(r.width*r.height/i>=.75)return t}return null})(i);return h&&await a(h)?Eo({success:!0,strategy:"backdrop"},s()):{success:!1}})}function Bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ho(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bo(Object(n),!0).forEach(function(t){Wo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Uo=sn()("igt:table"),zo=["th","caption",'[headers]:not([headers=""])','[scope]:not([scope=""])'].join(", "),qo=e=>Ho(Ho({},vr(e,{},"accName")),{},{role:An.Ay.getRole(e.element)}),Go=e=>Ho(Ho({},vr(e,{},"accName")),{},{source:An.Ay.getSource(e.element),role:An.Ay.getRole(e.element)}),Yo=(e,t)=>Ho(Ho({},vr(e,{},"accName")),t),Ko=e=>"table"===e.tagName,Xo=e=>"th"===(null==e?void 0:e.tagName.toLowerCase()),Jo=e=>!["table"].includes(An.Ay.getRole(e.element)),Zo=e=>Ko(e)&&!Jo(e),Qo=e=>["rowgroup","colgroup"].includes(e),ei=(e,t,n,r)=>{if(e.getAttribute("headers")){const t=An.Ay.idrefs(e,"headers").filter(Xo);if(t.length)return t.flatMap(e=>{const t=r.get(e);return t?[Go(t)]:[]})}const o=new Map,i=(e,t)=>{const n=r.get(e);n&&o.set(e,Ho(Ho({},Go(n)),t))},s=An.Ay.table.getCellPosition(e,t),a=e.colSpan-1,c=e.rowSpan-1,l=s.y,u=s.y+c,d=s.x,f=s.x+a;for(let r=0;r<t.length;r++){const s=t[r];for(let t=0;t<s.length;t++){const a=s[t],c=t>=d&&t<=f,p=r>=l&&r<=u;if(!c&&!p||a===e||o.has(a)||!An.Ay.isSRVisible(a))continue;if(!Xo(a)){n.find(e=>e.element===a)&&i(a,{mlOnly:!0});continue}const h=a.getAttribute("scope"),m=Qo(h)?"rowgroup"===h:An.Ay.table.isRowHeader(a),g=Qo(h)?"colgroup"===h:An.Ay.table.isColumnHeader(a);(p&&m||c&&g)&&i(a)}}return Array.from(o.values())};function ti(e,t){nn.yS.listen("igt:table:get-tables",()=>{An.Ay.setupTrees();const t=e().values()||[];Uo("Getting tables from",{flatTree:t});const n=kr(t,Zo,!0).map(qo);return An.Ay.cleanupTrees(),Uo("Got tables",{tables:n}),n}),nn.yS.listen("igt:table:map-user-selected",({message:t})=>{const{table:n}=t;Uo("Getting table",{table:n}),An.Ay.setupTrees();const r=e(),o=qo(r.getById(n.vnodeId));return An.Ay.cleanupTrees(),Uo("Got tables",{tableVNode:o}),o}),nn.yS.listen("igt:table:analyze-table",async({message:n})=>{const r={};Uo("Getting table",{table:n.table}),An.Ay.setupTrees(),await t(n.metadata);const o=e(),i=o.getById(n.table.vnodeId),s=o.getById(i.vnodeId).element;if(!Ko(i))return Ho(Ho({},r),{},{type:"layout",isHeuristicDataTable:!1});var a,c,l;if(r.hasHeaderMarkup=!!s.getAttribute("summary")||!!(a=zo,c=s,[...c.querySelectorAll(a)].filter(e=>An.Ay.isSRVisible(e))).length,r.isHeuristicDataTable=Ko(l=i)&&An.Ay.table.isDataTable(l.element),Jo(i))return Ho(Ho({},r),{},{type:"layout"});const u=An.Ay.table.toGrid(s),d=u.length,f=u.reduce((e,t)=>Math.max(e,t.length),0),p=new Map,h=new Map;let m=!1,g=!1;const y=new Set;for(let e=0;e<d;e++){const t=u[e];for(let n=0;n<f;n++){const r=t[n];if(!r||!An.Ay.isSRVisible(r))continue;y.add(r),r.getAttribute("headers")&&(g=!0);const o=An.Ay.table.isColumnHeader(r),i=An.Ay.table.isRowHeader(r);var b;if(Xo(r))r!==t[n+1]&&r!==(null===(b=u[e+1])||void 0===b?void 0:b[n])||(m=!0),o?h.set(e,(h.get(e)||0)+1):i&&p.set(n,(p.get(n)||0)+1)}}return r.cellCount=y.size,m||g||(1===p.size&&1===h.size&&[d,d-1].includes(p.values().next().value)&&[f,f-1].includes(h.values().next().value)?r.type="one-header-row-and-column":1===p.size&&0===h.size&&p.values().next().value===d?r.type="one-header-column":0===p.size&&1===h.size&&h.values().next().value===f&&(r.type="one-header-row")),An.Ay.cleanupTrees(),Uo("Got table metadata",{metadata:r}),r}),nn.yS.listen("igt:table:get-data-cells",async({message:n})=>{const r=new Map;Uo("Getting table",{table:n.table}),An.Ay.setupTrees(),await t(n.metadata);const o=e(),i=[...e().values()||[]].reduce((e,t)=>(e.set(t.element,t),e),new Map),s=o.getById(n.table.vnodeId),a=o.getById(s.vnodeId).element;if(!Ko(s))return Uo("Cannot get data cells for a non-table element",{table:s,tableElement:a}),[];const c=n.features.flatMap(({role:e,vnodeId:t})=>{if(!t||!["columnheader","rowheader"].includes(e))return[];return o.getById(t)||[]}),l=An.Ay.table.toGrid(a);for(let e=0;e<l.length;e++){const t=l[e];for(let n=0;n<t.length;n++){const o=t[n],s=i.get(o);if(!s)continue;const a=r.get(s.vnodeId);a?r.set(s.vnodeId,Ho(Ho({},a),{},{rowNumbers:[...new Set([...a.rowNumbers,e])],columnNumbers:[...new Set([...a.columnNumbers,n])]})):An.Ay.isSRVisible(o)&&!Xo(o)&&r.set(s.vnodeId,Ho(Ho({},Yo(s,{headerCells:ei(o,l,c,i),rowNumbers:[e],columnNumbers:[n]})),{},{mlIdentifiedAsHeader:c.some(e=>e.vnodeId===s.vnodeId)}))}}return An.Ay.cleanupTrees(),Uo("Got data cells",{dataCells:r}),[...r.values()]}),nn.yS.listen("igt:table:get-all-possible-headers",({message:t})=>{const{table:n}=t;Uo("Getting table",{table:n}),An.Ay.setupTrees();const r=e(),o=r.values()||[],i=r.getById(n.vnodeId).element,s=kr(o,e=>{var t;return i.contains(e.element)||(null===(t=n.contains)||void 0===t?void 0:t.call(n,e))},!0).map(zr);return An.Ay.cleanupTrees(),Uo("Got all possible header nodes",{allPossibleHeaders:s}),s}),nn.yS.listen("igt:table:map-user-selected-header-cells-for-data-cells",({message:t})=>{const{dataCells:n}=t;Uo("Mapping data cells",{dataCells:n}),An.Ay.setupTrees();const r=e(),o=n.map(e=>Ho(Ho({},e),{},{headerCells:e.headerCells.map(e=>e.userSelected?Ho(Ho({},e),Go(r.getById(e.vnodeId))):e)}));return An.Ay.cleanupTrees(),Uo("Mapped data cells",{mappedDataCells:o}),o}),nn.yS.listen("igt:table:get-table-box",({message:t})=>{const{table:n}=t;Uo("Getting table",{table:n}),An.Ay.setupTrees();const r=e().getById(n.vnodeId),{box:o}=zr(r,...r.children||[]);return An.Ay.cleanupTrees(),o||{x:0,y:0,width:0,height:0}})}var ni=n(61740);function ri(e){return e.replace(/\s+/g," ")}function oi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ii(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oi(Object(n),!0).forEach(function(t){si(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function si(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ai=e=>e?[...e.querySelectorAll("text")].map(e=>{var t;return(null===(t=e.textContent)||void 0===t?void 0:t.replace(/(\r\n|\n|\r)/gm,"").trim())||""}).join(" ").trim():null,ci=e=>"true"===e.attributes["aria-hidden"],li=e=>ci(e)||!!e.ancestors.find(ci),ui=["img","svg","canvas","video"];function di(e){var t,n,r,o;const i=[],s=null===(t=e.tagName)||void 0===t?void 0:t.toLowerCase().trim();return ui.includes(s)&&i.push(s),"input"===s&&"image"===(null===(n=e.attributes)||void 0===n?void 0:n.type)&&i.push("input-image"),null!==(r=e.style)&&void 0!==r&&r.pseudo&&i.push("pseudo"),Ti(null,e)&&i.push("background-image"),"img"===(null===(o=e.attributes)||void 0===o?void 0:o.role)&&i.push("role-img"),i}function fi(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}function pi(e,t){if(!fi(t,e.getBoundingClientRect()))return"";const n=[];for(const o of e.childNodes)if(o.nodeType===Node.TEXT_NODE){var r;const e=null===(r=o.textContent)||void 0===r?void 0:r.trim();e&&n.push(e)}else if(o.nodeType===Node.ELEMENT_NODE){const e=pi(o,t).trim();e&&n.push(e)}return ri(n.join(" ")).trim()}function hi(e){if((null==e?void 0:e.nodeType)!==Node.ELEMENT_NODE)return"";const t=e.getBoundingClientRect(),n=e.ownerDocument,r=t.width,o=t.height;if("function"!=typeof n.elementsFromPoint||r<1||o<1)return"";try{const i=Math.ceil(Math.sqrt(529)),s=Math.min(i,Math.ceil(r/50)),a=Math.min(i,Math.ceil(o/50)),c=[];for(let e=0;e<s;e++)for(let n=0;n<a;n++){const i=t.left+r*(e+.5)/s,l=t.top+o*(n+.5)/a;c.push({x:i,y:l})}const l=new Set;for(const{x:r,y:o}of c)for(const i of n.elementsFromPoint(r,o))i.nodeType===Node.ELEMENT_NODE&&i!==e&&fi(t,i.getBoundingClientRect())&&l.add(i);const u=[...l].filter(e=>{var t,n,r;return!(null===(t=(null===(n=e.innerText)||void 0===n?void 0:n.trim())||(null===(r=e.textContent)||void 0===r?void 0:r.trim()))||void 0===t||!t.length)});if(!u.length)return"";const d=u.filter(e=>!u.some(t=>{return t!==e&&((n=e)!==(r=t)&&n.contains(r));var n,r}));return d.map(e=>pi(e,t)).filter(Boolean).join(" ")}catch{return""}}function mi(e){if((null==e?void 0:e.nodeType)!==Node.ELEMENT_NODE)return"";const t=e.innerText;return"string"==typeof t?ri(t).trim():""}const gi=(...e)=>t=>e.some(e=>e(t));function yi(e,t){const n=[];for(const r of t){const{style:t,box:o}=r,{height:i,width:s,y:a}=o,c=t["background-image"],l=e.getById(r.vnodeId),{tagName:u,attributes:d}=l,f=d["xlink:href"],{src:p,class:h}=d,m=!!(f||c||p),g=/#/.test(p||c||f),y=(f||c||p).replace(/^([0-9a-z]+)\.|#.+|\?.+/gi,""),b=n.find(gi(Dr()({width:s,y:a}),Dr()({external:m,sprite:g,extension:y}),Dr()({tagName:u,className:h,height:i,width:s}),Dr()({tagName:u,height:i,width:s})));b?b.vnodes.push(r):n.push({id:n.length,type:"autogenerated",tagName:u,className:h,height:i,width:s,y:a,external:m,sprite:g,vnodes:[r]})}return function(e){let t,n=e.length;for(;n--;){const r=e[n];if(1===r.vnodes.length){if(t)t.vnodes.push(...r.vnodes);else{const{id:e,vnodes:n}=r;t={id:e,vnodes:n,type:"misc"}}e.splice(n,1)}}return t&&e.push(t),e.map((e,t)=>ii(ii({},e),{},{displayName:ni.Ay`Group ${t+1}:n`}))}(n)}function bi(e,{countOnly:t=!1,rebuildTree:n=!1}={}){const r=e.values(),o=[];n&&An.Ay.setupTrees();for(const e of r){if(e.element.nodeType!==Node.ELEMENT_NODE)continue;if(!An.Ay.isAxeSetUp(e.element)){const t=(0,An.rJ)(e.element);t.teardown(),t.setup()}const{vnodeId:n,element:r,selector:i}=e,s=ii(ii({selector:i,vnodeId:n,imageId:`${o.length}`,src:"",style:Ai(r),box:Rn(e)},mn(e)),{},{source:An.Ay.getSource(r),accessibleText:br(e.element)||""});if([Oi,xi,Si,wi].some(t=>t(e,s)))continue;const a=di(s),c=!!a.length,l=!t&&vi(e);if(c){const n=An.Ay.getRole(e.element),r="svg"===e.tagName;o.push(ii(ii({},s),{},{isBackgroundImage:Ti(null,s),imageTypes:a,overlappingText:hi(e.element),elementText:mi(e.element),isEmptyAltImg:"img"===e.tagName&&""===e.element.getAttribute("alt")||!!r&&("img"===n?""===s.accessibleText:!s.accessibleText),isAriaHidden:li(e),role:n,isRoleImg:"img"===n,hint:Pr(e.element),svgTextContent:r&&ai(e.element)||"",interactiveParent:l?{accessibleText:br(l.element)||"",isAriaHidden:li(l)}:void 0},mn(t?e:Cr(e))))}l&&(s.vnodeId=l.vnodeId,s.box=Rn(e,l))}return o}function vi(e){var t;return null===(t=e.ancestors)||void 0===t?void 0:t.find(e=>["a","label","button","input","summary"].includes(e.tagName))}function wi(e){return"input"===e.tagName&&"hidden"===e.attributes.type}function Si(e,t){const{box:n}=t,{height:r,width:o}=n;return 0===o||0===r}function Oi(e,t){const{style:n}=t,{display:r,visibility:o,opacity:i}=n;return"none"===r||"0"===i||"hidden"===o}function xi(e,t){const{style:n}=t,{clip:r="",position:o=""}=n,i=n["clip-path"]||"",s=["fixed","absolute"].includes(o)&&r.match(/rect\s*\(([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px\s*\)/);if(s&&5===s.length)return s[3]-s[1]<=0&&s[2]-s[4]<=0;if(i){const[,e,t]=i.match(/(\w+)\((\d+)/)||[null,"",0];switch(e){case"inset":return t>=50;case"circle":return 0===t}}return!1}const Ei=["before","after"];function Ai(e){const t={};e&&e.nodeType===Node.ELEMENT_NODE?(t.element=window.getComputedStyle(e),Ei.forEach(n=>{t[n]=window.getComputedStyle(e,n)})):["element",...Ei].forEach(e=>t[e]={getPropertyValue:()=>""});const n={pseudo:Ei.some(e=>["content","background-image"].some(n=>t[e]&&t[e].getPropertyValue(n).startsWith("url")))};return["display","opacity","visibility","clip","clip-path","position","font-family","background-image","height","width"].reduce((e,n)=>(e[n]=t.element.getPropertyValue(n),e),n)}function Ti(e,t){const{style:n}=t;return!!n["background-image"].startsWith("url")||!!n.pseudo}function Ci(e){nn.yS.listen("igt:images:get-data",async()=>{return{images:yi(t=e(),bi(t,{rebuildTree:!0})).map(e=>ii(ii({},e),{},{vnodes:e.vnodes.map(t=>ii(ii({},t),{},{identifier:`${e.id}-${t.imageId}`}))}))};var t})}const Ii=e=>{const t=document.activeElement,n=e.get(t);return{bodyHasFocus:t===document.body,currentFocus:n&&mn(n)}},Ni=()=>{const e=document.body.getAttribute("tabindex");e||(document.body.tabIndex=-1),document.body.focus(),e||document.body.removeAttribute("tabindex")};class Pi{constructor(e){this.highlighter=e,this.replayInProgress=!1,this.tabStops=[],this.startReplay=this.startReplay.bind(this),this.stopReplay=this.stopReplay.bind(this)}setTabStops(e){this.tabStops=e}attach(){nn.yS.listen("tab-record:replay-start",this.startReplay),nn.yS.listen("tab-record:replay-stop",this.stopReplay)}detach(){nn.yS.unlisten("tab-record:replay-start",this.startReplay),nn.yS.unlisten("tab-record:replay-stop",this.stopReplay)}async startReplay(){await this.highlighter.clearHighlights(),this.replayInProgress=!0;for(const e of this.tabStops){if(!this.replayInProgress)return;const t=this.highlighter.createHighlighter(e);t.highlight({theme:"badge",showMetadata:!1,showTooltip:!1}),t.scrollIntoView({behavior:"instant"}),await new Promise(e=>setTimeout(e,300))}nn.yS.send(nn._O.devtools,"tab-record:replay-complete")}async stopReplay(){this.replayInProgress=!1,this.highlighter.clearHighlights(),this.showHighlighters()}showHighlighters(){this.highlighter.showHighlights(),this.tabStops.filter(e=>!this.highlighter.highlighterExists(e)).forEach(e=>{const t=this.highlighter.createHighlighter(e);null==t||t.highlight({theme:"badge",showMetadata:!1,showTooltip:!1})})}}function ji(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ki(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ji(Object(n),!0).forEach(function(t){Ri(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ji(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ri(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _i={textarea:3,"datetime-local":10},Mi=()=>nn.yS.send(nn._O.background,"tab-record:fire-tab"),Di=Object.freeze({recordingKeyboardTrapEscape:!1,finalizingKeyboardTrapEscape:!1,returnedToStartWhileEscapingKeyboardTrap:!1,addedNewTabstopDuringEscapeAttempt:!1,listenersAttached:!1,isAutoEscape:!1,isLastAttempt:!1});class Li{handleFinalizingTrap(e=!1,t=!1){const n=nr({tabStops:this.tabStops,launchedWindowOnFocus:this.launchedWindowOnFocus,submittedForms:this.submittedForms,cacheTree:this.cache.tree});clearTimeout(this.focusTimeout);const r=!(this.trapEscapeState.isAutoEscape&&!this.trapEscapeState.isLastAttempt&&!e)&&t;r&&(this.replayer.setTabStops([...this.tabStops.keys()]),this.replayer.showHighlighters()),e&&!r||this.detachListeners();const o=this.trapEscapeState.isAutoEscape?nn._O.background:nn._O.devtools;return this.trapEscapeState=ki({},Di),this.retryTabKeyPressCount=0,nn.yS.send(o,"tab-record:trap-escape-done",ki(ki({},n),{},{escapedToNewVnode:e,tabbingComplete:r}))}onFocus(e){const[t]=this.overrideFocusVnode&&[...this.tabStops.entries()].find(([,e])=>e.vnodeId===this.overrideFocusVnode.vnodeId)||[];if(t&&document.activeElement!==t&&e.relatedTarget!==t)return this.overrideFocusVnode=null,void t.focus();this.overrideFocusVnode=null;const n=e.composedPath();this.focusHandler(n[0]||e.target)}async focusHandler(e){const t=e&&e.matches&&e.matches(Hn),n=this.tabStops.has(e);if(n||(this.retryTabKeyPressCount=0),!this.unscopedCache.tree.get(e)){const{cache:e,unscopedCache:t}=await this.buildTreeCache();this.cache=e,this.unscopedCache=t}const r=this.keyboardScope&&!this.cache.tree.get(e),o=!!this.tabStops.size,i=this.visitedElements.has(e);this.visitedElements.add(e);const s=n||r&&(o||i);this.cleanupKeyupTarget(),clearTimeout(this.focusTimeout);const a=[...this.tabStops.keys()][0]===e;if(this.trapEscapeState.finalizingKeyboardTrapEscape&&n)return this.handleFinalizingTrap(a||this.trapEscapeState.addedNewTabstopDuringEscapeAttempt||this.trapEscapeState.returnedToStartWhileEscapingKeyboardTrap,n);if(this.trapEscapeState.recordingKeyboardTrapEscape&&s)return void(n&&a&&(this.trapEscapeState.returnedToStartWhileEscapingKeyboardTrap=!0));if("closed"===await nn.yS.send(nn._O.background,"dom:get-active-element-shadow-root-type"))return void(this.trapEscapeState.recordingKeyboardTrapEscape||(this.setFocusTimeout(500),Mi()));if(this.trapEscapeState.recordingKeyboardTrapEscape||this.setFocusTimeout(),s){const t=this.keyboardTrapsEnabled&&n&&this.tabStops.keys().next().value!==e;return this.onTabbingComplete(t?{trappedVnode:this.tabStops.get(e)}:{})}if(!this.trapEscapeState.recordingKeyboardTrapEscape&&(r&&!o||!this.cache.tree.get(e)))return void Mi();"function"==typeof(null==e?void 0:e.getAnimations)&&await Promise.race([Promise.all([...e.getAnimations({subtree:!0}).map(e=>e.finished.catch(()=>{}))]),new Promise(e=>setTimeout(e,1e3))]);const c=(0,An.rJ)(e);c.teardown(),c.setup();const l=((e,t,n=!0)=>{const r=t.get(e),o=An.Ay.getRole(e),i=o&&An.Ay.isWidgetRole(o)||"combobox"===o||"listbox"===o||"searchbox"===o||"alertdialog"===o||"audio"===r.tagName||"video"===r.tagName||"gridcell"===o||"rowheader"===o||"columnheader"===o||"td"===r.tagName&&!o||"th"===r.tagName&&!o,s=e.matches&&e.matches(Hn);return $n($n({},mn(r)),{},{role:o,isWidgetRole:i,accessibleName:An.Ay.name(e),box:Rn(r),groupItems:Gn(r,o),isAriaHidden:!An.Ay.isSRVisible(e),isHidden:An.Ay.isOffscreen(e)||!An.Ay.isVisible(e,n),isMultiTabStopElement:s})})(e,this.cache.tree,!1);await nn.yS.send(nn._O.devtools,"tab-record:screenshot",{vnode:l}),l.source=An.Ay.getSource(e);const u=(await An.Ay.runContrastAnalysis(e))[0];l.focusedContrastResult=null==u?void 0:u.data;const d=e=>{var t;return!(null!==(t=e.getRootNode().host)&&void 0!==t&&t.matches(jr.wZ))};try{const[t]=An.Ay.getElementStack(e,!1).filter(d);l.elementObscured=!!t&&t!==e}catch{l.elementObscured=!1}if(this.tabStops.set(e,l),this.trapEscapeState.finalizingKeyboardTrapEscape)return this.handleFinalizingTrap(!0);t&&this.handleMultiTabstopElement(e),this.trapEscapeState.recordingKeyboardTrapEscape?this.trapEscapeState.addedNewTabstopDuringEscapeAttempt=!0:(nn.yS.send(nn._O.devtools,"tab-record:count",this.tabStops.size),nn.yS.send(nn._O.background,"tab-record:fire-tab"))}attachListeners(){this.trapEscapeState.listenersAttached||(this.focusListenerTargets=new Set([document,...Zn(this.unscopedCache),...Qn(this.unscopedCache)]),this.focusListenerTargets.forEach(e=>{e.addEventListener("focus",this.onFocus,!0)}),this.submitListenerTargets=new Set(er(this.cache)),this.submitListenerTargets.forEach(e=>{e.addEventListener("submit",this.onSubmit,!0);try{const t=e.submit;e.submit=()=>{this.submittedForms.add(e),t.call(e)},this.submitRestoreHandlers.add(()=>{e.submit=t})}catch{}}),this.replayer.attach(),nn.yS.listen("tab-record:new-window:launched",this.onNewWindowLaunched),this.trapEscapeState.listenersAttached=!0)}setKeyboardTrapEscapeState(e=!1,t=null,n=!1,r=!1){if(this.trapEscapeState.recordingKeyboardTrapEscape=e,this.trapEscapeState.isAutoEscape=n,this.trapEscapeState.finalizingKeyboardTrapEscape=!1,this.trapEscapeState.isLastAttempt=r,e)if(n){var o;const e=this.cache.tree.getById(t.vnodeId);null==e||null===(o=e.element)||void 0===o||o.focus()}else this.overrideFocusVnode=t;this.attachListeners()}constructor({manifest:e,cache:t,unscopedCache:n,highlighter:r,hideScrollbars:o,showScrollbars:i,buildTreeCache:s,keyboardTrapsEnabled:a}){Ri(this,"retryTabKeyPressCount",0),Ri(this,"tabStops",new Map),Ri(this,"visitedElements",new Set),Ri(this,"focusListenerTargets",new Set),Ri(this,"submitListenerTargets",new Set),Ri(this,"submittedForms",new Set),Ri(this,"submitRestoreHandlers",new Set),Ri(this,"launchedWindowOnFocus",new Set),Ri(this,"_isCleanedUp",!1),Ri(this,"overrideFocusVnode",null),Ri(this,"trapEscapeState",ki({},Di)),Ri(this,"isCleanedUp",()=>this._isCleanedUp),Ri(this,"cleanupAfterTabbing",({hasTrappedVnode:e=!1}={})=>{clearTimeout(this.focusTimeout),this.removeKeyboardScopeTabIndex&&this.keyboardScope.element.removeAttribute("tabindex"),e||(document.activeElement&&document.activeElement.blur(),this.keyboardScope=null,this.resetState(),this._isCleanedUp=!0),this.showScrollbars()}),Ri(this,"onTabbingComplete",async({trappedVnode:e}={})=>{const t=nr({tabStops:this.tabStops,launchedWindowOnFocus:this.launchedWindowOnFocus,submittedForms:this.submittedForms,cacheTree:this.cache.tree});e||(this.replayer.setTabStops([...this.tabStops.keys()]),this.replayer.showHighlighters()),this.cleanupAfterTabbing({hasTrappedVnode:!!e}),await nn.yS.send(nn._O.background,"tab-record:stop"),this.keyboardTrapsEnabled&&e?nn.yS.send(nn._O.devtools,"tab-record:trapped",{trappedVnode:e,tabData:t}):nn.yS.send(nn._O.devtools,"tab-record:complete",t)}),Ri(this,"setFocusTimeout",(e=1e4)=>{this.trapEscapeState.recordingKeyboardTrapEscape||(this.focusTimeout=setTimeout(async()=>{const e=!!document.activeElement&&await nn.yS.send(nn._O.background,"dom:get-active-element-shadow-root-type");if(document.activeElement&&("IFRAME"===document.activeElement.tagName||"closed"===e))return this.setFocusTimeout(500),void Mi();if("user-agent"===e){const e=_i[document.activeElement.tagName.toLowerCase()]||5;return this.keyboardTrapsEnabled&&this.retryTabKeyPressCount>=e?void this.onTabbingComplete({trappedVnode:this.tabStops.get(document.activeElement)}):(++this.retryTabKeyPressCount,this.setFocusTimeout(500),void Mi())}const t=(e=document)=>!!this.tabStops.has(e.activeElement)||!!e.activeElement.shadowRoot&&t(e.activeElement.shadowRoot);if((document.activeElement===document.body||t())&&this.retryTabKeyPressCount<3)return this.setFocusTimeout(500),nn.yS.send(nn._O.background,"tab-record:fire-tab"),void this.retryTabKeyPressCount++;if(this.trapEscapeState.finalizingKeyboardTrapEscape){const e=document.activeElement===document.body&&!t();return this.handleFinalizingTrap(e||this.trapEscapeState.addedNewTabstopDuringEscapeAttempt||this.trapEscapeState.returnedToStartWhileEscapingKeyboardTrap,e)}this.keyboardTrapsEnabled&&t()&&this.tabStops.size>1?this.onTabbingComplete({trappedVnode:this.tabStops.get(document.activeElement)}):this.onTabbingComplete()},e))}),Ri(this,"onSubmit",e=>{this.submittedForms.add(e.target)}),Ri(this,"detachListeners",()=>{this.focusListenerTargets.forEach(e=>{e.removeEventListener("focus",this.onFocus,!0)}),this.submitListenerTargets.forEach(e=>{e.removeEventListener("submit",this.onSubmit,!0)}),this.submitRestoreHandlers.forEach(e=>{e()}),nn.yS.unlisten("tab-record:new-window:launched",this.onNewWindowLaunched),this.trapEscapeState.listenersAttached=!1}),Ri(this,"resetState",e=>{var t;e||nn.yS.send(nn._O.background,"tab-record:new-window-listener:detach"),this.detachListeners(),this.tabStops.clear(),this.visitedElements.clear(),this.focusListenerTargets.clear(),this.submitListenerTargets.clear(),this.submittedForms.clear(),this.submitRestoreHandlers.clear(),this.launchedWindowOnFocus.clear(),document.documentElement.style.cursor="",document.documentElement.style.pointerEvents="",nn.yS.unlisten("tab-record:finalize-escape-trap",this.onFinalizeTrap),nn.yS.unlisten("tab-record:user-stopped",this.onTabbingComplete),nn.yS.unlisten("tab-record:cleanup",this.cleanupAfterTabbing),nn.yS.unlisten("tab-record:continue-tabbing",this.onContinueTabbing),nn.yS.unlisten("tab-record:detach-listeners",this.detachListeners),nn.yS.unlisten("attach:failed",this.handleAttachFailed),null===(t=this.unlistenInitialFocus)||void 0===t||t.call(this)}),Ri(this,"onNewWindowLaunched",()=>{this.launchedWindowOnFocus.add(document.activeElement)}),Ri(this,"scopeKeyboardSetup",()=>{if(!cn()(this.manifest,"metadata.scope",void 0))return;const[e]=this.cache.flat;if(!e)return;e.element.getAttribute("tabindex")||An.Ay.isFocusable(e.element)||(e.element.tabIndex=-1,this.removeKeyboardScopeTabIndex=!0),e.element.focus(),this.keyboardScope=e}),Ri(this,"cleanupKeyupTarget",()=>{this.keyupTarget&&(this.keyupTarget.removeEventListener("keyup",this.onKeyup,!0),this.keyupTarget=null)}),Ri(this,"onKeyup",()=>{if(document.activeElement===this.keyupTarget)return Mi();this.cleanupKeyupTarget()}),Ri(this,"handleMultiTabstopElement",e=>{this.keyupTarget=e,e.addEventListener("keyup",this.onKeyup,!0),clearTimeout(this.focusTimeout)}),Ri(this,"handleAttachFailed",()=>{this.resetState(),clearTimeout(this.focusTimeout)}),Ri(this,"onFinalizeTrap",()=>{this.trapEscapeState.recordingKeyboardTrapEscape=!1,this.trapEscapeState.finalizingKeyboardTrapEscape=!0,this.setFocusTimeout(),nn.yS.send(nn._O.background,"tab-record:start")}),Ri(this,"onContinueTabbing",()=>{this.focusHandler.resetDebounce(),this.setFocusTimeout(),nn.yS.send(nn._O.background,"tab-record:start")}),this.manifest=e,this.cache=t,this.unscopedCache=n,this.showScrollbars=i,this.buildTreeCache=s,this.replayer=new Pi(r),this.keyboardTrapsEnabled=a,this.onFocus=this.onFocus.bind(this),this.focusHandler=function(e,t=0){let n=0,r=0;const o=function(...o){cancelAnimationFrame(r),r=requestAnimationFrame(()=>{const r=performance.now();r-n>=t&&(n=r,e.apply(this,o))})};return o.resetDebounce=()=>{n=0,r=0},o}(this.focusHandler.bind(this),30),this.setFocusTimeout(),this.resetState(!0),this.scopeKeyboardSetup(),this.attachListeners(),o(),An.Ay.setupTrees(),nn.yS.send(nn._O.background,"tab-record:new-window-listener:attach"),document.documentElement.style.cursor="none",document.documentElement.style.pointerEvents="none",document.activeElement.matches&&document.activeElement.matches(Hn)&&this.handleMultiTabstopElement(document.activeElement);const c=()=>{var n;if(this.trapEscapeState.finalizingKeyboardTrapEscape)return;const r=!e["keep-focus-on-element"]&&e["focused-element"],[o]=t.flat.filter(e=>e.properties.tabIndex>0).sort((e,t)=>e.properties.tabIndex-t.properties.tabIndex);let i;if(r&&(null===(n=r.properties)||void 0===n?void 0:n.tabIndex)>-1){var s;i=(t.tree.getById(null===(s=e["focused-element"])||void 0===s?void 0:s.vnodeId)||{}).element}else if(!r&&o){i=(t.tree.getById(o.vnodeId)||{}).element}return i&&(i.focus(),this.focusHandler(i)),!0};nn.yS.listen("attach:failed",this.handleAttachFailed),nn.yS.listen("tab-record:initial-focus",c),nn.yS.listen("tab-record:finalize-escape-trap",this.onFinalizeTrap),nn.yS.listen("tab-record:user-stopped",this.onTabbingComplete),nn.yS.listen("tab-record:cleanup",this.cleanupAfterTabbing),nn.yS.listen("tab-record:continue-tabbing",this.onContinueTabbing),nn.yS.listen("tab-record:detach-listeners",this.detachListeners),this.unlistenInitialFocus=()=>nn.yS.unlisten("tab-record:initial-focus",c)}}const Fi=["keyboardTrapsEnabled","isKeyboardTrapEscape","keyboardTrapVnode","isAutoEscape","isLastAttempt"];function Vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vi(Object(n),!0).forEach(function(t){Bi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bi(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}async function Hi(){return nn.yS.send(nn._O.content,"hide-scrollbars")}async function Wi(){return nn.yS.send(nn._O.content,"show-scrollbars")}function Ui(e,t){let n;nn.yS.listen("igt:keyboard:focus-element",async({message:{elementToFocus:t}})=>{const n=await e(),r=n.querySelector(t.selector);var o;return r&&(o=r)&&"function"==typeof o.focus&&o.focus(),{foundElement:r?JSON.parse(n.safe(n.get(r))):null}}),nn.yS.listen("igt:keyboard:find-current-focus",async()=>{const t=await e();return Ii(t)}),nn.yS.listen("igt:keyboard:reset-focus",Ni),nn.yS.listen("igt:keyboard:tab-record-start",async r=>{let{message:{keyboardTrapsEnabled:o,isKeyboardTrapEscape:i,keyboardTrapVnode:s,isAutoEscape:a=!1,isLastAttempt:c=!1}}=r,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(r.message,Fi);const u=async()=>{await t($i($i({},l.metadata),{},{scope:void 0}));const n=e(),r=Array.from((null==n?void 0:n.values())||[]);let o=n,i=r;var s;l.metadata.scope&&(await t(l.metadata),o=e(),i=Array.from((null===(s=o)||void 0===s?void 0:s.values())||[]));return{cache:{tree:o,flat:i},unscopedCache:{tree:n,flat:r}}};if(!n||n.isCleanedUp()){const{cache:e,unscopedCache:t}=await u();n=new Li({manifest:l,cache:e,unscopedCache:t,highlighter:await(0,In.A)(),hideScrollbars:Hi,showScrollbars:Wi,buildTreeCache:u,keyboardTrapsEnabled:o})}n.setKeyboardTrapEscapeState(i,s,a,c),i||nn.yS.send(nn._O.background,"tab-record:start")})}var zi=n(11911),qi=n.n(zi);function Gi(e){An.Ay.setupTrees();const t=e.getAttribute("aria-labelledby");if(t){const e=t.split(" ");if(null!=e&&e.length){return e.map(e=>{const t=document.getElementById(e);return t?An.Ay.name(t):""}).join(" ")}}An.Ay.cleanupTrees();const n=e.getAttribute("aria-label");if(n)return An.Ay.sanitize(n);if("FIELDSET"===e.tagName){var r;const t=An.Ay.name(e.firstElementChild);return"LEGEND"===(null===(r=e.firstElementChild)||void 0===r?void 0:r.tagName)&&t}return null}const Yi=(e,t)=>{An.Ay.setupTrees();const n=Ki(e,!0).filter(e=>e&&An.Ay.isVisible(e)).map(e=>mn(sr(t.get(e))));return An.Ay.cleanupTrees(),n},Ki=(e,t=!1)=>{const n=e.getRootNode(),r=e.id?Array.from(n.querySelectorAll(`[for="${e.id}"]`)):[];"FIELDSET"===e.tagName&&e.firstElementChild&&"LEGEND"===e.firstElementChild.tagName&&r.push(e.firstElementChild);const o=e.getAttribute("aria-labelledby"),i=e.getAttribute("aria-describedby"),s=e=>e?e.split(" "):[],a=[...s(o),...s(i)].filter(Boolean).map(e=>n.getElementById(e)),c=[...r,...a].filter(Boolean).map(e=>Ki(e)).flat();return[...new Set([...t?[]:[e],...a,...c])]};function Xi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ji(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xi(Object(n),!0).forEach(function(t){Zi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zi(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let Qi=1;const es=e=>{const t={};return e.forEach(e=>t[e.id]=e.label),t},ts=(e,t)=>{const n=e.filter(({attributes:e})=>e.name&&"radio"===e.type),r=e.filter(({attributes:e})=>e.name&&"checkbox"===e.type);return[...rs(qi()(n,"attributes.name"),"radio-name",t),...rs(qi()(r,"attributes.name"),"checkbox-name",t)]},ns=(e,t,n)=>{const r=[],o=function(e,t=document){return Array.from(t.querySelectorAll(e))}(En,t.element),i=ts(e,n);return t&&t.element.matches(En)&&o.push(t.element),An.Ay.setupTrees(),o.forEach(t=>{const o=e.filter(e=>{var r,o;return t.contains(e.element)||(null==n||null===(r=n.get(t))||void 0===r||null===(o=r.contains)||void 0===o?void 0:o.call(r,e))});if(!i.some(e=>o.some(t=>e.vnodeIds.includes(t.vnodeId)))&&o.length>1){const e=Gi(t)||"";if(!e)return;const i=o.map(e=>e.selector),s=o.map(e=>e.vnodeId),a=[];o.forEach(t=>{a.push(Ji(Ji({},t),{},{groupId:Qi,groupLabel:e,visibleLabels:Yi(t.element,n),groupSelector:i,groupVnodeIds:s}))});const c={selector:i,label:e,vnodeIds:s,id:Qi++,groupType:"semantic",pairings:es(a),visibleLabels:t?Yi(t,n):[]};a.find(e=>e.groupId===c.id).group=c,r.push(c)}}),An.Ay.cleanupTrees(),r},rs=(e,t,n)=>Object.keys(e).reduce((r,o)=>{const i=e[o],s=e=>!i.filter(t=>{var r,o;return!(e.contains(t.element)||null!=n&&null!==(r=n.get(e))&&void 0!==r&&null!==(o=r.contains)&&void 0!==o&&o.call(r,t))}).length;let a,c=i[0].element.closest(En);for(;!a&&c;)s(c)&&(a=c),c=c.closest(En);if(i.length<2)return r;const l=i.map(e=>e.selector),u=i.map(e=>e.vnodeId),d=a&&Gi(a)||"",f=a?Yi(a,n):[];i.forEach(e=>{e.groupId=Qi,e.groupLabel=d,e.groupSelector=l,e.groupVnodeIds=u});const p={selector:l,groupType:t,vnodeIds:u,id:Qi++,name:o,label:d,visibleLabels:f,pairings:es(i)};return i[0].group=p,r.push(p),r},[]);function os(e){const t=e.getAttribute("aria-label");if(t)return t;const n=e.getAttribute("aria-labelledby"),r=n&&n.split(" ");if(n&&r.length)return r.map(e=>document.getElementById(e)).filter(e=>!!e).map(e=>e.innerText).join(" ");const o=e.id&&document.querySelector(`label[for="${e.id}"]`);if(o)return o.innerText;const i=e.closest("label");return i?i.innerText:void 0}function is(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ss(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?is(Object(n),!0).forEach(function(t){as(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):is(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function as(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const cs=e=>{var t;const n=ss(ss({},e.properties),{},{disabled:e.element.disabled,multiple:e.element.multiple,placeholder:e.element.placeholder,required:e.element.required});let r={};return e.element.matches(xn)&&(r={label:os(e.element),type:e.element.type}),ss(ss(ss({},vr(e,{visibleLabels:e.visibleLabels},"accessibleText")),r),{},{properties:n,ancestors:(null===(t=e.ancestors)||void 0===t?void 0:t.map(({vnodeId:e})=>e))||[]})},ls=(e,t)=>{const n=t.selectAll([xn],{isRelativeSelector:!0}).filter(t=>!!t.ancestors.find(t=>t.vnodeId===e.vnodeId)).map(e=>e.element),r=An.Ay.getTabbableElements(e.element);return e.element.matches(xn)&&n.push(e.element),n.filter(e=>An.Ay.isVisible(e,!0)||!(null==r||!r.includes(e)))},us=e=>t=>("form"===t.tagName||"form"===t.attributes.role)&&((e,t)=>ls(e,t).length>0)(t,e),ds=e=>ss(ss({},cs(e)),{},{box:Rn(e)});function fs(e){nn.yS.listen("igt:forms:get-forms",async()=>function(e){An.Ay.setupTrees();const t=e();return An.Ay.cleanupTrees(),t}(()=>{const t=e();return kr((null==t?void 0:t.values())||[],us(t),!0).map(ds)})),nn.yS.listen("igt:forms:get-form",async({message:{vnodeId:t}})=>{const n=e().getById(t);return ds(n)}),nn.yS.listen("igt:forms:get-inputs",async({message:t})=>{const n=e(),r=n.getById(t.selectedForm.vnodeId),o=ls(r,n).map(e=>ss(ss({},n.get(e)),{},{visibleLabels:Yi(e,n)})),i=[...ns(o,r,n),...ts(o,n)];return{inputs:o.map(e=>{const t=i.find(t=>t.vnodeIds.includes(e.vnodeId)),n=cs(e);return t?ss({groupId:t.id,groupLabel:t.label},n):n}),groups:i}}),nn.yS.listen("igt:forms:get-error-message",async({message:t})=>{const n=e(),{element:r}=n.getById(t.vnodeId),o=r.getAttribute("aria-describedby"),i=o&&o.split(" ");return{errorMessage:i&&i.map(e=>{const t=document.getElementById(e);return t&&t.textContent}).join(" ")}})}function ps({getTree:e,getFlatTree:t,buildTree:n}){no(e),function(e){nn.yS.listen("igt:structure:get-headings",async()=>ho(()=>{var t;return kr((null===(t=e())||void 0===t?void 0:t.values())??[],ao,!0).map(go)})),nn.yS.listen("igt:structure:get-all-possible-elements",({message:t})=>{var n;An.Ay.setupTrees();const r=(null===(n=e())||void 0===n?void 0:n.values())||[],o=!(null==t||!t.useTextBox),i=kr(r,()=>!0,!0).map(e=>zr(e,{useTextBox:o}));return An.Ay.cleanupTrees(),i}),nn.yS.listen("igt:structure:map-headings",async({message:t})=>{const{vnodes:n=[],props:r={}}=t;if(!Array.isArray(n))return[];const o=(0,An.rJ)();o.teardown(),o.setup();const i=e();return n.map(({vnodeId:e})=>{const t=i.getById(e);return io(io({},go(t)),r)})}),nn.yS.listen("igt:structure:get-lists",async()=>ho(()=>{var t;return kr((null===(t=e())||void 0===t?void 0:t.values())??[],co,!0).map(yo)})),nn.yS.listen("igt:structure:map-lists",async({message:t})=>{const{vnodes:n=[],props:r={}}=t;return Array.isArray(n)?ho(()=>{const t=e();return n.map(({vnodeId:e})=>{const n=t.getById(e);return io(io({},yo(n)),r)})}):[]}),nn.yS.listen("igt:structure:get-lang-elements",async()=>{const t=await ho(()=>{var t;const n=(null===(t=e())||void 0===t?void 0:t.values())??[];return Promise.all(kr(n,e=>lo(e)&&An.Ay.hasContent(e.element),!0).map(bo))}),n=await ho(()=>{const e=document.body.parentElement;return bo({element:e,children:[],ancestors:[],tagName:"html",vnodeId:-1,attrs:["lang"],attributes:{lang:e.getAttribute("lang")},selector:["html"],properties:{classSelector:"",id:e.getAttribute("id"),tagName:e.tagName,childElementCount:e.childElementCount,tabIndex:parseInt(e.getAttribute("tabIndex"))},depth:0})});return{htmlLangElement:n,langElements:t,documentLang:n.lang||n.detectedLang}}),nn.yS.listen("igt:structure:map-lang-elements",async({message:t})=>{const{vnodes:n=[],props:r={}}=t;return Array.isArray(n)?await ho(async()=>{const t=e();return await Promise.all(n.map(async({vnodeId:e})=>{const n=t.getById(e);return io(io({},await bo(n)),r)}))}):[]}),nn.yS.listen("igt:structure:get-title-elements",async()=>{const t=ho(()=>{var t;return kr((null===(t=e())||void 0===t?void 0:t.values())??[],uo,!0).map(So)}),n=document.head.querySelector("title");return{frames:t,documentTitle:{title:document.title,source:n?An.Ay.getSource(n):null,selector:[An.Ay.getSelector(n)]}}}),nn.yS.listen("igt:structure:get-application-elements",async()=>ho(()=>{var t;return kr((null===(t=e())||void 0===t?void 0:t.values())??[],fo,!0).map(wo)})),nn.yS.listen("igt:structure:get-media-elements",async()=>ho(()=>{var t;return kr((null===(t=e())||void 0===t?void 0:t.values())??[],po,!0).map(vo)}))}(e),$o({getTree:e,getFlatTree:t,buildTree:n}),ti(e,n),Ci(e),Ui(e,n),fs(e),function(e){nn.yS.listen("igt:ml:debug",({message:t})=>{const{features:n,vnodes:r}=t;An.Ay.setupTrees();const o=e();console.log("Debugging ML","\nLegend:\n - Green/Solid - The feature matched a programmatically identified element\n - Yellow/Dashed - The feature matched an element we did not programmatically identify\n - Orange/Dotted - The feature matched an element with a different role\n - Red/Double - The feature could not find a matching element\n - Black/Ridge - Default color, but this case should not happen\n "),n.forEach(e=>{let t="black 4px ridge";r.some(t=>t.vnodeId===e.vnodeId)?t=e.roleMatches?"green 4px solid":"orange 4px dotted":e.vnodeId?t="yellow 4px dashed":e.vnodeId||(t="red 4px double");const n=o.getById(e.vnodeId),i=document.createElement("div");i.style.position="absolute",i.style.top=`${e.box.y}px`,i.style.left=`${e.box.x}px`,i.style.border=t,i.style.height=`${e.box.height}px`,i.style.width=`${e.box.width}px`,i.style.color="white",i.title=`Type: ${e.type} - Role: ${e.role} - IOU: ${e.iou} - Confidence: ${e.confidence}`,i.style.zIndex="1000000",i.addEventListener("click",()=>{console.log("feature details: ",{feature:e,highlight:i,matchingElement:n?n.element:null,vnode:n?zr(n):null})}),document.body.appendChild(i)}),An.Ay.cleanupTrees()})}(e)}const hs=["scope"];function ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ms(Object(n),!0).forEach(function(t){ys(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ys(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bs=sn()("walnut-chrome:content:events");class vs{constructor({treeBuilder:e}={}){this.treeBuilder=e,this.runtimeListener(),this.pageUnLoadListener(),this.cache={},this.highlighter=null,(0,In.A)().then(e=>{this.highlighter=e}),this.autoSetup=!1,this.selected=[],this.axeResult=null,fn.listeners.initContentBridgeListeners(nn.yS),this.isSameElement=(e,t)=>{if(!e||!t)return!1;if(!this.cache.tree)return null;const n=this.cache.tree.querySelector(e.selector),r=this.cache.tree.querySelector(t.selector);return!(!n||!r)&&n===r},this.findNode=e=>{if(!this.cache.tree)return null;const t=this.cache.tree.querySelector(e.selector);return t&&this.cache.tree.get(t)?JSON.parse(this.cache.tree.safe(this.cache.tree.get(t))):null},nn.yS.listen("request-axe-results",({message:e})=>this.sendAxeResults(e)),nn.yS.listen("scope:reset",()=>{this.mouseSelection&&this.mouseSelection.removeAllSelections()}),nn.yS.listen("guide:check-vitals",async({message:e})=>{await this.buildTree({value:{manifest:{metadata:{tree:e.vitals}}},vitals:e.vitals}),nn.yS.send(nn._O.devtools,"guide:check-vitals:complete")}),nn.yS.listen("hide-scrollbars",()=>this.hideScrollbars()),nn.yS.listen("show-scrollbars",()=>this.showScrollbars()),nn.yS.listen("dom-walker-jump",({message:e})=>{nn.yS.send(nn._O.devtools,"dom-walker-jump",e)}),nn.yS.listen("build-virtual-tree",async({message:e})=>await this.buildTree(e,!0)),nn.yS.listen("groot:find-vnode-by-selector",({message:e})=>{const t=e.key;if(this.cache.tree)try{return this.cache.tree.selectOne(t)}catch{return}}),nn.yS.listen("selector-search",({message:e})=>{const t=e.key;if(!this.cache.tree)return[];try{const e=this.cache.tree.selectAll([t],{isRelativeSelector:!0}).map(e=>e.vnodeId);return e.length&&nn.yS.send(nn._O.devtools,"dom-walker-jump",{value:{vnodeId:e[0]}}),e}catch{return[]}}),nn.yS.listen("groot:find-vnode",({message:e})=>this.findNode(e)),nn.yS.listen("groot:get-ids-by-selectors",({message:e=[]})=>{const t=this.cache.flat.reduce((e,t)=>{var n;return e[n=t.selector,n.flat().join("|")]=t.vnodeId,e},{});return e.map(e=>t[e])}),nn.yS.listen("groot:is-same-element",({message:{vnode:e,compareVnode:t}})=>this.isSameElement(e,t)),nn.yS.listen("groot:find-same-elements",({message:e})=>{const{vnodes:t=[],compareVNodes:n=[]}=e,r={sameInVNodes:[],sameInCompareVNodes:[],uniqueInVNodes:[]};if(!Array.isArray(t)||!Array.isArray(n))return bs("groot:find-same-elements:invalid-message",{vnodes:t,compareVNodes:n}),r;const o=t.reduce((e,t)=>{const n=this.findNode(t);return n&&e.push(gs(gs({},t),n)),e},[]),i=n.reduce((e,t)=>{const n=this.findNode(t);return n&&e.push(gs(gs({},t),n)),e},[]);for(const e of o){const t=i.findIndex(t=>this.isSameElement(e,t));-1!==t?(r.sameInVNodes.push(e),r.sameInCompareVNodes.push(i[t]),i[t]=null):r.uniqueInVNodes.push(e)}return r.uniqueInCompareVNodes=i.filter(Boolean),r}),Er(()=>this.cache.tree),ps({getTree:()=>this.cache.tree,getFlatTree:()=>this.cache.flat,buildTree:this.buildTree.bind(this)}),this.attachIGTHighlightListeners()}attachIGTHighlightListeners(){nn.yS.listen("igt:highlight",async({message:e})=>{const{vnodes:t,options:n,vnodeIds:r,scrollIntoView:o=!1}=e;let i=t;!t&&r&&(i=r.map(e=>this.cache.tree.getById(e))),await this.highlightNodes(i,n,o)}),nn.yS.listen("igt:highlight:remove",async({message:e})=>{const t=await this.getHighlightNodes(e.vnodeIds||[]);for(const e of t)(0,In.A)().then(({highlighters:t})=>{var n;null===(n=t.get(e))||void 0===n||n.destroy()})}),nn.yS.listen("igt:selection:add",({message:e})=>{this.handleHighlight("addSelection",{theme:"selected",vnodeId:e.vnodeId},{showTooltip:!1},!0)}),nn.yS.listen("igt:selection:remove",({message:e})=>{this.handleHighlight("removeSelection",{theme:"selected",vnodeId:e.vnodeId})}),nn.yS.listen("igt:selection:remove-all",async()=>{await this.mouseSelection.removeAllSelections()}),nn.yS.listen("igt:selections:set",async({message:e})=>{if(e.cleanup){const t=await this.getHighlightNodes(e.vnodeIds||[]);this.selections=t,await this.handleHighlight("setSelections",{vnodeId:[]})}await this.handleHighlight("setSelections",{theme:"selected",vnodeId:e.vnodeIds},e.highlighterOptions||{},e.scrollFirstIntoView??!0)})}pageUnLoadListener(){window.addEventListener("beforeunload",()=>{this.autoSetup&&nn.yS.unlisten("forms:get-descendant-elements",xr)})}runtimeListener(){nn.yS.listen(async({topic:e="",message:t})=>{const[n,r]=e.split(":");"guide"===n&&await this.handleTestMessage(gs({type:r},t))})}async sendAxeResults(e){let{scope:t}=e;const n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,hs)||this.axeResult;if(!n)return;const r={};try{r.results=n,r.pageTitle=document.title,r.metadata=hr(),r.metadata.scope=t}catch(e){return{error:{stack:e.stack,message:e.message}}}return r}getScopeVNode(){const e=this.mouseSelection&&this.mouseSelection.selections,t=e&&[...e][0];return t&&this.cache.tree.getById(t)}getScope(){const e=this.getScopeVNode();return e&&e.element||document}customHandler(e){if(this.keyboardTool&&"get-tab-data"===e)return this.keyboardTool.tabData}async handleTestMessage(e){bs("message received:",e);const{type:t,value:n,args:r=[],vitals:o=[]}=e;switch(t){case"clearHighlight":case"setHighlight":case"highlight":case"removeHighlight":case"addSelection":case"removeSelection":case"setSelections":this.handleHighlight(t,n);break;case"refresh-tools":case"build-tree":await this.buildTree({value:n,context:document.body,scope:e.ignoreScope?null:e.scope,vitals:o,includeCrossOrigin:e.includeCrossOrigin});break;case"dom-walker-change":this.handleDomWalkerChange(n);break;case"mouse-selection":(!this.cache.tree||e.rebuildTree&&"disable"!==n)&&await this.buildTree({value:{},includeCrossOrigin:e.includeCrossOrigin}),await this.mouseSelection[n].apply(this.mouseSelection,r.concat([e.manifest])),"disable"===n&&this.mouseSelection.cleanUp();break;case"fire-resize":{const e=new Event("resize");window.dispatchEvent(e);break}case"get-auto-setup":(e=>{nn.yS.send(nn._O.devtools,"guide:auto-setup",e)})(this.autoSetup?"start":"stop");break;case"request-axe-results":this.sendAxeResults();break;case"axe-result":this.axeResult=n}}async buildTreeForAnalytics(){await dn();const e={rejectTags:["script","style",jr.wZ]};return this.treeBuilder.buildTree(e)}async buildTree({value:e,context:t=document.body,scope:n,vitals:r,includeCrossOrigin:o=!1}={},i){const s=e&&"object"==typeof e?e.manifest:e,a=cn()(s,"metadata.tree",[]),c=[];let l=!0;await dn(),await nn.yS.send(nn._O.devtools,"guided:inject-axe");const u={allowAttrs:["data-.*","aria-.*","method","action","class","id","xlink:href","role","name","src","type","for","title","lang","headers","scope","list"],listeners:{create:o?[]:[Tr],update:o?[]:[Tr],discard:e=>c.push(e)},rejectTags:["script","style",jr.wZ],acceptNode:e=>{if(!e.contentWindow)return!0;try{return!!e.contentWindow.axe}catch{return o}}};let d,f;if(o&&this.treeBuilder)d=f=await this.treeBuilder.buildTree(u);else{if(d=new en(u),n){const e=[];e.push(()=>d.querySelector(n.selector)),n.fallbackSelector&&e.push(()=>d.querySelector(n.fallbackSelector)),e.push(()=>d.findOne(n,{findOneTimeLimit:2e3}));for(const t of e){const e=t();if(e){n.element=e;break}}n.element?t=n.element:l=!1}bs("Building virtual tree from ",{manifestTree:a}),f=await d.from(a,document.body),null!=n&&n.element&&(f.forEach(e=>{e.element===n.element||e.ancestors.find(e=>e.element===n.element)||f.delete(e.element)}),f.setSeed(n.vnodeId)),c.length&&(({discarded:e,scope:t,groot:n,tree:r,vitals:o=[]})=>{t&&!o.find(e=>e.vnodeId===t.vnodeId)&&o.push(t);const i=o.filter(t=>e.find(e=>e.vnodeId===t.vnodeId));if(!i.length)return;const s=[];s.push(e=>e.fallbackSelector&&n.querySelector(e.fallbackSelector)),s.push(e=>n.findOne(e,{findOneTimeLimit:1e3})),i.every(e=>{for(const t of s){const n=t(e);if(n)return r.has(n)||r.set(n,e),!0}return!1})||nn.yS.send(nn._O.devtools,"guide:discarded",{value:i})})({discarded:c,scope:n,groot:d,tree:f,vitals:r})}return this.cache.tree=globalThis.tree=f,this.cache.flat=Array.from(f.values()).map(mn),this.mouseSelection?await this.mouseSelection.update(f,o):this.mouseSelection=new ur(f,s,o),await this.mouseSelection.initHighlighter(),bs("Built virtual tree",this.cache.flat),nn.yS.send(nn._O.devtools,"guide:return-tree",{tree:f,scopePresent:l,discarded:c}),i?n&&l?this.cache.tree.safe(this.cache.tree.get(n.element)):null:t}async handleHighlight(e,t,n,r=!1){bs("handleHighlight",{type:e,value:t});let o=["highlight","select"].includes(e)||r;if(!t){return"clear"===("clearHighlight"===e?"clear":"refresh")&&(this.selected=[]),void this.highlighter.clearHighlights()}const{vnodeId:i,theme:s}=t;if(!this.cache.tree||void 0===i)return;const a=[].concat(i),c=await this.getHighlightNodes(a);if("removeHighlight"===e){if(1===c.length&&this.selected.includes(c[0]))return void(0,In.A)().then(({highlighters:e})=>{const[t]=c,n=e.get(t);n.setOptions({showTooltip:!1,showMetadata:!1}),n.updatePosition()});for(const e of c)(0,In.A)().then(({highlighters:t})=>{var n;null===(n=t.get(e))||void 0===n||n.destroy()})}if("removeSelection"===e){this.selected=this.selected.filter(e=>!c.includes(e));for(const e of c)(0,In.A)().then(({highlighters:t})=>{var n;null===(n=t.get(e))||void 0===n||n.destroy()})}"setSelections"===e&&(o=o||1===c.length,await Promise.all(this.selected.map(async e=>{var t;const{highlighters:n}=await(0,In.A)();null===(t=n.get(e))||void 0===t||t.destroy()})),this.selected=c),"addSelection"===e&&this.selected.push(...c);let l=!1;for(const e of c){const t=this.cache.tree.get(e),r=this.highlighter.createHighlighter(e,(null==t?void 0:t.selector)||e.selector);r.highlight(gs({theme:s||"selected",showMetadata:!1,showTooltip:!1},n)),o&&!l&&(r.scrollIntoView(),l=!0)}}async highlightNodes(e,t,n){await(0,In.A)();const r=(e||[]).filter(e=>null!=e),o=await this.getHighlightNodes(r.map(({vnodeId:e})=>e)),i=e=>{if(e.mlOnly)return"ml"};o.forEach((e,o)=>{const s=this.cache.tree.get(e),a=this.highlighter.createHighlighter(e,(null==s?void 0:s.selector)||e.selector);a.highlight(gs(gs({theme:i(r[o])||"selected",showMetadata:!1,showTooltip:!1},t),r[o].highlightOptions)),n&&0===o&&a.scrollIntoView()})}async getHighlightNodes(e){const t=[];for(const n of e){const e=this.cache.tree.getById(n);if(e){const n=await jn(e);n&&t.push(n)}}return Promise.all(t)}handleDomWalkerChange(e){var t;const n=this.cache.tree.getById(e.vnodeId);n&&(!0!==e.skipHover&&this.mouseSelection.hover(n),null===(t=this.highlighter.highlighters.get(n.element))||void 0===t||t.scrollIntoView())}hideScrollbars(){this.scrollbarStyle=document.createElement("style"),this.scrollbarStyle.innerHTML="*::-webkit-scrollbar { display: none !important }",document.head.appendChild(this.scrollbarStyle)}showScrollbars(){this.scrollbarStyle&&(document.head.removeChild(this.scrollbarStyle),this.scrollbarStyle=null)}}var ws=n(66884);const Ss={listen:(e,t)=>nn.yS.listen(e,t),unlisten:(e,t)=>nn.yS.unlisten(e,t),send:(e,t,n)=>(0,rn.A)(e,t,n),sendAll:(e,t)=>nn.yS.send(nn._O.content,e,t,{allFrames:!0}),sendReply:(e,t)=>nn.yS.send(nn._O.content,e,t)},Os=()=>{let e;const t=new tn({frameMessenger:Ss});return(0,ws.$)()&&(e=new vs({treeBuilder:t})),e}},10073(e,t,n){"use strict";n.d(t,{R8:()=>i});let r=console;const o=()=>{const e={NODE_ENV:"production",EDGE:"false",FIREFOX:"false",IS_AXE_PRO:"true",MANIFEST_VERSION:3,E2E:!1,HOT_RELOAD:"false",HOT_RELOAD_PORT:"8098",DOCS_SITE_URL:"https://docs.deque.com/devtools-for-web",ISSUES_URL:"https://docs.deque.com/issue-help/1.0.0/en",AXE_CONFIG_URL:"https://docs.deque.com/devtools-server/4.0.0/en/axe-configuration",MANUAL_ISSUE_URL:"https://docs.deque.com/devtools-for-web/4/en/devtools-manual-issue",WHATS_LEFT_TO_TEST_URL:"https://docs.deque.com/devtools-for-web/4/en/devtools-whatslefttotest",USER_FLOW_URL:"https://docs.deque.com/devtools-for-web/4/en/user-flow-analysis",AXE_PRO_TRIAL_PATH:"/axe-devtools-pro/trial",ENV:"local",AXE_PRO_URL:"http://localhost:1234",USAGE_SERVICE_URL:"https://usage.dequelabs.com",AMPLITUDE_API_KEY:"5faf82a87f563be7741eca93a9cdef37",DOCS_SITE_HOST:"https://docs.dequelabs.com",DATADOG_CLIENT_TOKEN:""}.LOGGING_ENABLED;return"1"===e||"true"===e},i=(...e)=>{o()&&r.warn(...e)}},13205(e,t,n){"use strict";n.d(t,{e:()=>r});const r={4.11:"4.11.4","4.12.0":"4.12.0",4.12:"4.12.1","4.11.4":"4.11.4","4.11.3":"4.11.3","4.9.0":"4.9.0",4.9:"4.9.1","4.9.1":"4.9.1","4.10.0":"4.10.0","4.10":"4.10.3","4.10.1":"4.10.1","4.10.2":"4.10.2","4.10.3":"4.10.3","4.12.1":"4.12.1"}},60857(e,t,n){"use strict";n.d(t,{Aw:()=>s,BN:()=>a,Ew:()=>c,Yw:()=>l,cT:()=>i,jC:()=>r,rD:()=>o});const r="free",o="trialing",i="trial_ended",s="trial_payment_failed",a="paid",c="paid_payment_failed",l="free_payment_failed"},41803(e,t,n){"use strict";n.d(t,{y:()=>o});const{FIREFOX:r}={FIREFOX:"false"};let o;if("true"!==r){const{datadogLogs:e}=n(76551);o=e}},46499(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(40937);let o;async function i(){return(await s()).distinct_id}const s=async()=>{if(o)return o;const{axeServerURL:e,session:t}=await browser.storage.local.get(["axeServerURL","session"]);return o=await(0,r.getDistinctIdCookie)({host:"default"===e?"http://localhost:1234":e,origin:globalThis.location.origin,token:null==t?void 0:t.access_token}),o}},66884(e,t,n){"use strict";n.d(t,{$:()=>r,J:()=>o});const r=(e=window)=>window.top===e,o=e=>e.origin===window.location.origin},882(e,t,n){"use strict";async function r(){const{axeServerURL:e}=await browser.storage.local.get("axeServerURL");return e&&"default"!==e?e:"http://localhost:1234"}n.d(t,{A:()=>r})},91968(e,t,n){"use strict";n.d(t,{vV:()=>c});var r=n(41803),o=n(68280);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c=({originalError:e,message:t,level:n="error",additionalContext:i={},isSerialized:a=!1})=>{if(!o.E9())return;if(a)return void r.y.logger[n](t,s(s({},e),i));const c=(e=>e instanceof Error?e:new Error("Unknown error"+(e?`: ${e}`:"")))(e),l={error:c.message,stack:c.stack,original_error:e};r.y.logger[n](t,s(s({},l),i))}},22395(e,t,n){"use strict";n.d(t,{Ay:()=>a,_o:()=>s});n(75839);var r=n(13205),o=n(74712),i=n.n(o);n(9510);function s(e){if(!e||"latest"===e)return"latest";if(Object.keys(r.e).find(t=>t===e))return e;const t=Object.values(r.e),n=i()(t,`>=${e}`);if(!n)return"latest";const o=Object.entries(r.e);for(const[e,t]of o)if(t===n)return e}function a(e){return Object.keys(r.e).includes(null==e?void 0:e.toString())}},78230(e,t,n){"use strict";n.d(t,{Ay:()=>h,rJ:()=>s,pK:()=>b,gi:()=>y});const r=new Map,o=e=>1===e.length?e[0]:e,i={isHidden:(...e)=>o(e.map(c)),name:(...e)=>o(e.map(a)),getRole:(...e)=>o(e.map(l)),getContrast:(...e)=>o(e.map(u))};function s(e=document.documentElement,t=!1){var n;const o=e.ownerDocument,i=o.defaultView;if(!i)throw new ReferenceError("no context was found for this node");const s=i.axe;if(!s)throw new ReferenceError("axe was not found in this context");const a=null===(n=r.get(s))||void 0===n?void 0:n[0];return(t||!r.has(s)||a&&!s.utils.getNodeFromTree(a,e))&&r.set(s,s.utils.getFlattenedTree(o)),s}function a(e){const t=s(e),n=function(e,t){let n=r.get(e);n||(n=e.utils.getFlattenedTree(t.ownerDocument),r.set(e,n));return e.utils.getNodeFromTree(n[0],t)}(t,e);return n?t.commons.text.accessibleTextVirtual(n):""}function c(e){return s(e).commons.utils.isHidden(e)}function l(e){const t=s(e);return function(e){return!!s(e).utils.getNodeFromTree(e)}(e)?t.commons.aria.getRole(e):null}function u(e){const t=s(e);let n;try{const r=t.commons.color.getForegroundColor(e),o=t.commons.color.getBackgroundColor(e);n=t.commons.color.getContrast(o,r)}catch(e){console.error(e)}return n}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const h=f({sanitize:e=>s().commons.text.sanitize(e),sanitizeContext:g,isValidLang(e){const t=s();return!!e&&t.utils.isValidLang(e)},hasContent(e){const t=s(e),n=O(t,e);return!!n&&t.commons.dom.hasContentVirtual(n)},getRequiredContext(e){const t=s();return e?t.commons.aria.requiredContext(e):[]},isOffscreen:(...e)=>o(e.map(v)),isVisible:(e,t=!1)=>!!e.ownerDocument.defaultView&&o(function(e,t){const n=s(e,t);t&&(n.teardown(),n.setup());return n.commons.dom.isVisible(e,!1,!0)}(e,t)),isSRVisible:(...e)=>o(e.map(w)),isOpaque:(...e)=>o(e.map(x)),getRoleType:(...e)=>o(e.map(S)),runContrastAnalysis:e=>async function(e){const t=s();A();try{var n,r;const o=await t.run(Array.isArray(e)?e.map(g):g(e),{runOnly:{type:"rule",values:["color-contrast"]},restoreScroll:!0,pingWaitTime:5e3,resultTypes:["violations"]}),i=null==o||null===(n=o.violations)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.nodes;return(null==i||null===(r=i.map)||void 0===r?void 0:r.call(i,e=>{const t=e.any[0],n=["fgColor","bgColor","contrastRatio","expectedContrastRatio"],r=parseInt(t.data.fontSize.split(" ")[0]),o="bold"===t.data.fontWeight;return{data:f(f({},Object.fromEntries(Object.entries(t.data).filter(([e])=>n.includes(e)))),{},{fontSize:r,isBold:o}),selector:e.target}}))||[]}catch(e){console.error(e)}finally{m(document.body)}return[]}(e),isWidgetRole:e=>s().commons.aria.lookupTable.rolesOfType.widget.includes(e),isFocusable:(...e)=>o(e.map(E)),getTabbableElements:e=>function(e){const t=s(e,!0),n=O(t,e);return t.commons.dom.getTabbableElements(n).map(({actualNode:e})=>e)}(e),getFlattenedTree:m,getSource(e){if(e.nodeType!==Node.ELEMENT_NODE)return null;return new(s().utils.DqElement)(e).source},getSelector(e){const t=s();return t._selectorData||(t._selectorData=t.utils.getSelectorData(t.utils.getFlattenedTree())),t.utils.getSelector(e)},getElementStack(e,t=!0){const n=s();return t&&(n.teardown(),n.setup()),n.commons.dom.getElementStack(e)},idrefs:(e,t)=>s(e).commons.dom.idrefs(e,t),table:{isRowHeader:e=>s(e).commons.table.isRowHeader(e),isColumnHeader:e=>s(e).commons.table.isColumnHeader(e),toGrid(e){const t=s(e);return t.teardown(),t.setup(),t.commons.table.toGrid(e)},isDataTable:e=>s(e).commons.table.isDataTable(e),getCellPosition:(e,t)=>s(e).commons.table.getCellPosition(e,t),traverse(e,t,n,r){var o;if(null===(o=n[0])||void 0===o||!o[0])return;return s(n[0][0]).commons.table.traverse(e,t,n,r)}},setupTrees:function(){A(),r.clear()},cleanupTrees:A,isAxeSetUp:e=>!!s(e)._tree},i);function m(e){const t=s(),n=t.utils.getFlattenedTree(e.ownerDocument);return r.set(t,n),n}function g(e){if(!e.ownerDocument||e.ownerDocument===document)return e;const t=s();t._selectorData=t.utils.getSelectorData(t.utils.getFlattenedTree());const n=[t.utils.getSelector(e)];let r=e.ownerDocument.defaultView.frameElement;for(;r;)n.unshift(t.utils.getSelector(r)),r=r.contentWindow.parent.frameElement;return n.flat()}function y(e){return!!s(e).utils.getNodeFromTree(e)}function b(e=document.documentElement){try{return!!s(e,!1)}catch{return!1}}function v(e){return s(e).commons.dom.isOffscreen(e)}function w(e){return s(e).commons.dom.isVisible(e,!0,!1)}function S(e){const t=s(e),n=function(e){return s(e).commons.aria.implicitRole(e)}(e),r=t.commons.aria.lookupTable.role[n];return r&&r.type}function O(e,t){let n=r.get(e);return n||(n=e.utils.getFlattenedTree(t.ownerDocument),r.set(e,n)),e.utils.getNodeFromTree(n[0],t)}function x(e){return s(e).commons.dom.isOpaque(e)}function E(e){const t=s(e);return y(e)?t.commons.dom.isFocusable(e):void 0}function A(){r.forEach((e,t)=>{t.teardown(),r.delete(t)})}},95249(e,t,n){"use strict";var r=n(96367),o=n(60119),i=n(66884);function s(e,t){t instanceof URL||(t=new URL(t)),(0,i.J)(t)&&window.postMessage(e,t.origin)}r.yS.listen("init",({message:e})=>{0});var a=n(13205);function c(e="latest"){if("latest"===e||!e)return window.axe;const t=a.e[e];return window.axeVersions[t]||window.axe}var l=n(78230),u=n(43955),d=n(31146),f=n(10884),p=n(882);function h(e){if(!Array.isArray(e))return e;const t=[];let n=!1,r=[];for(let o=e.length-1;o>=0;o--){const i=e[o];Array.isArray(i)?"shadow-root"===i[0]&&(n=!0,r.push(i[1])):!0===n?(r.push(i),n=!1,r.reverse(),t.push(r),r=[]):t.push(i)}return t.reverse()}function m(e){if(e&&e.children)for(const n of e.children){var t;if(n.isFrame&&null!==(t=n.children[0])&&void 0!==t&&t.isCrossOrigin||m(n))return!0}return!1}function g(e){return!!e&&m(e)}function y(e){return!!e&&e.flat.some(e=>e.isCrossOrigin)}n.dn(h);var b=n(91968);const v=async(e,t,n)=>{if(e)try{await r.yS.send(r._O.background,t,n)}catch(e){(0,b.vV)({originalError:e,message:`Failed sending ${t} message to MCP server`,level:"error"})}};const w="precise",S="balanced",O="thorough";var x=n(61740);const E={key:S,label:x.Ay`Balanced (70%+ confidence)`,labelDescription:x.Ay`Recommended for most testing`,value:.7};x.Ay`Precise (90%+ confidence)`,x.Ay`Shows fewer issues, all highly reliable`,x.Ay`Thorough (50%+ confidence)`,x.Ay`Shows more potential issues, some may be false alarms`;var A=n(22395);const T=["include","axeVersion","mcpEnabled","enableExperimentalRules","enableRecorder","enableAdvancedRules","aiDisabled","failConfidenceThreshold"],C=["axeVersion"];function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach(function(t){P(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function P(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const k="Unable to find the selected element on the page. The element may have been removed or modified. Please re-select the element and try again.";let R,_;{const{default:e}=n(46567);({default:_}=n(321)),R=e()}const M=()=>{var e,t,n;return{contentType:null===(e=document)||void 0===e?void 0:e.contentType,title:null===(t=document)||void 0===t?void 0:t.title,url:null===(n=document)||void 0===n?void 0:n.URL,scoped:!!R&&R.getScope()!==document}};r.yS.listen("axe:add-version",({message:{axeVersion:e,enableRecorder:t}})=>{const n=(0,f.A)(e).then(n=>{if(n&&t&&_){const t=c(e);t&&_.addRecorderToAxe(t,{bridge:r.yS})}return n});if((0,i.$)())return n}),r.yS.listen("axe:run",async e=>{var t;let{message:{include:n,axeVersion:o,mcpEnabled:a=!1,enableExperimentalRules:f,enableRecorder:m,enableAdvancedRules:g=!1,aiDisabled:b,failConfidenceThreshold:w=E.value}}=e,S=j(e.message,T);const O=a?(0,A._o)(o):o,x=c(O),C=[];a&&o&&O!==o&&C.push(`Incompatible axe-core version set in axe Configuration, ${o}, running analysis with closest version, ${O}`);const I=(e,t,n)=>e.reduce((e,r)=>(n&&r.tags.includes(n)||(e[r.ruleId]={enabled:t}),e),{}),P=f?I(x.getRules(["experimental"]),!0,"advanced"):{},_=I(x.getRules(["advanced"]),g,f?void 0:"experimental"),{clearHighlights:D}=await(0,u.A)();D();const L=N(N({restoreScroll:!0,pingWaitTime:5e3,resultTypes:["violations","incomplete"],advanced:{aiDisabled:b,attachDebugger:!1,screenshot:!1,failConfidenceThreshold:w}},S),{},{rules:N(N(N({},P),_),S.rules)}),F=N({results:null,error:null,pageURL:null===(t=document)||void 0===t?void 0:t.URL,axeRunOptions:L},C.length>0&&{messages:C});try{var V,$,B;let e,t,r,o;l.Ay.cleanupTrees(),g&&m&&(0,i.$)()&&(e=document.documentElement.scrollLeft,t=document.documentElement.scrollTop,window.scrollTo(e,0));const a=null===(V=R)||void 0===V?void 0:V.getScopeVNode();if(S.includeCrossOrigin){if(r=n||(null==a?void 0:a.selector)||document,r!==document){const e=h(r);if(Array.isArray(e)&&e.length>1)r=e;else{const{element:e,usedSelector:t}=((e,t)=>{const n=h(e),r=(0,d.A)(Array.isArray(n)?n:[n]);if(r)return{element:r,usedSelector:n};if(!t)return{element:null,usedSelector:null};const o=h(t);return{element:(0,d.A)(Array.isArray(o)?o:[o]),usedSelector:o}})(r,null==a?void 0:a.fallbackSelector);if(!e)throw new Error(k);r=t}}}else{var H;let e=null;n&&(e=Array.isArray(n)?n:[n]);const t=e?(0,d.A)(e):null;if(e&&!t)throw new Error(k);if(o=t||(null===(H=R)||void 0===H?void 0:H.getScope()),!o&&null!=a&&a.fallbackSelector&&(o=(0,d.A)(a.fallbackSelector)),!o&&null!=a&&a.selector)throw new Error(k);o=o||document,r=null===l.Ay||void 0===l.Ay?void 0:l.Ay.sanitizeContext(o)}const c=await x.run([r],L);"number"==typeof e&&"number"==typeof t&&window.scrollTo(e,t),l.Ay.getFlattenedTree((null===($=o)||void 0===$?void 0:$.documentElement)||(null===(B=o)||void 0===B||null===(B=B.ownerDocument)||void 0===B?void 0:B.documentElement)||document.documentElement),!g&&null!=c&&c.advancedRuleInput&&delete c.advancedRuleInput,(async()=>{try{s({message:"walkthrough:scanned"},await(0,p.A)())}catch{}})(),F.results=c}catch(e){const t={message:e.message||"Unknown Error",stack:e.stack||""};F.error=t}if(a&&F.results){var W;const e=y(await(null===(W=R)||void 0===W?void 0:W.buildTreeForAnalytics()));await r.yS.send(r._O.devtools,"mcp:analyze-analytics",{results:F.results,documentMetadata:M(),experimental:f,hasCrossOriginIframes:e})}return await v(a,"mcp:axe-results",F),F}),r.yS.listen("axe:get-analytics",async({message:e})=>{var t;let n,r=!1,o=!1,i=null===(t=R)||void 0===t?void 0:t.getScopeVNode();var s;!i&&null!=e&&e.include&&(n=await(null===(s=R)||void 0===s?void 0:s.buildTreeForAnalytics()),i=function(e,t){if(!e||!t)return null;const n=e.querySelector(t);return e.get(n)||null}(n,e.include));if(i){var a;r=i.isCrossOrigin||!!i.isFrame&&(null===(a=i.children[0])||void 0===a?void 0:a.isCrossOrigin),o=g(i)}else{var c;if(!n)n=await(null===(c=R)||void 0===c?void 0:c.buildTreeForAnalytics());o=y(n)}return{isCrossOrigin:r,hasCrossOriginIframes:o}}),r.yS.listen("axe:configure",e=>{let{message:{axeVersion:t}}=e,n=j(e.message,C);const r=c(t);return null==r?void 0:r.configure(n)}),r.yS.listen("axe:reset-locale",({message:e})=>{var t;const n=c(e);null!=n&&n.resetLocale?n.resetLocale():null!=n&&null!==(t=n._audit)&&void 0!==t&&t._resetLocale&&n._audit._resetLocale()}),r.yS.listen("axe:version",()=>c().version),r.yS.listen("axe:ping",({message:e})=>new Promise(t=>{setTimeout(()=>{t(!1),clearInterval(n)},500);const n=setInterval(()=>{c(e)&&(t(!0),clearInterval(n),clearTimeout(t))},100)})),r.yS.listen("get-document-metadata",M),r.yS.listen("extension:logout",async()=>{const{axeServerURL:e}=await browser.storage.local.get("axeServerURL");s({message:"extension:logout"},e&&"default"!==e?e:"http://localhost:1234")});var D=n(23569),L=n.n(D);function F(e,t=!0){const n=e.ownerDocument.defaultView,r=(0,i.$)(n),o=e,s=o.getBoundingClientRect(),a=!s.height||!s.width,c=n.getComputedStyle(o)||{};let l=n.frameElement,u=s,d=u.top+(r?n.pageYOffset:0),f=u.left+(r?n.pageXOffset:0),p=d,h=f;if(l)for(p=u.top,h=u.left,d=u.top,f=u.left;l&&t;){const{frameElement:e,pageYOffset:t,pageXOffset:n}=l.ownerDocument.defaultView,r=(0,i.$)(l.ownerDocument.defaultView),o=window.getComputedStyle(l),s=Math.max(parseFloat(o.borderLeftWidth),0),a=Math.max(parseFloat(o.borderTopWidth),0);u=l.getBoundingClientRect(),p+=u.top+a+(r?t:0),h+=u.left+s+(r?n:0),l=e}const m=n.frameElement?{top:p-window.pageYOffset,left:h-window.pageXOffset,height:s.height,width:s.width}:s,g=function(e,t=window.visualViewport||{width:window.innerWidth,height:window.innerWidth}){return{top:e.top+e.height<0,bottom:e.top>t.height,left:e.left+e.width<0,right:e.left>t.width}}(m),y=function(e,t={height:document.documentElement.scrollHeight,width:document.documentElement.scrollWidth}){return{top:e.top+e.height+(window.scrollY||window.pageYOffset)<0,bottom:e.top>t.height,left:e.left+e.width+(window.scrollX||window.pageXOffset)<0,right:e.left>t.width}}(m),b=e=>+e?.replace("px","")||0,{height:v,width:w}=n.visualViewport||{width:n.innerWidth,height:n.innerHeight};return{hidden:a,offViewport:g.top||g.bottom||g.left||g.right,offscreen:y.top||y.bottom||y.left||y.right,offscreenTop:y.top,offscreenBottom:y.bottom,offscreenLeft:y.left,offscreenRight:y.right,fullscreen:p<=0&&h<=0&&s.width>=w&&s.height>=v,top:p,left:h,offsetTop:d,offsetLeft:f,width:s.width,height:s.height,margin:{top:b(c.marginTop),right:b(c.marginRight),bottom:b(c.marginBottom),left:b(c.marginLeft)},border:{top:b(c.borderTopWidth),right:b(c.borderRightWidth),bottom:b(c.borderBottomWidth),left:b(c.borderLeftWidth)},padding:{top:b(c.paddingTop),right:b(c.paddingRight),bottom:b(c.paddingBottom),left:b(c.paddingLeft)}}}var V=n(33381);r.yS.listen("highlight",async({message:e={}})=>{const{createHighlighter:t,clearHighlights:n}=await(0,u.A)();let o=null;if(e&&e.selector?o=e.selector:Array.isArray(e)&&(o=e),n(),o){const n=(0,d.A)(o);let i=null;if(!n&&o.length>1){if(i=await(0,V.A)(o),!i)return!1}else if(!n)return!1;const s=t(n||i,o),{highlightTheme:a}=await browser.storage.local.get("highlightTheme");return s.highlight({theme:a||"high-contrast"}),e.scrollIntoView&&(n?s.scrollIntoView():await r.yS.send(r._O.content,"highlight:scrollIntoView",{selector:[o[o.length-1]]},{frameId:i.frameId})),!0}return!1});const $=async()=>{(await(0,u.A)()).clearHighlights()};if(r.yS.listen("highlight:hide",async()=>{(await(0,u.A)()).hideHighlights()}),r.yS.listen("highlight:show",async()=>{(await(0,u.A)()).showHighlights()}),r.yS.listen("highlight:clear",$),r.yS.listen("devtools:close",$),r.yS.listen("highlight:get-element-layout",({message:{selector:e}})=>{const t=(0,d.A)(e);return t?F(t,!1):{top:0,left:0}}),!(0,i.$)()){const e=L()(()=>r.yS.send(r._O.content,"highlight:update"),100);window.addEventListener("scroll",e,!0),window.addEventListener("beforeunload",()=>{window.removeEventListener("scroll",e)}),r.yS.listen("highlight:get-node-metadata",async({message:{selector:e}})=>{const t=(0,d.A)(e);return t?{tagName:t.tagName,classList:Array.from(t.classList),attributes:{id:t.getAttribute("id")}}:{tagName:"unknown",classList:[],attributes:{}}}),r.yS.listen("highlight:scrollIntoView",({message:{selector:e}})=>{const t=(0,d.A)(e);null==t||t.scrollIntoView({block:"center",behavior:"smooth",inline:"nearest"})})}r.yS.listen("highlight:update",async()=>{const{highlighters:e,updateHighlighters:t}=await(0,u.A)(),n=Array.from(e.keys()).filter(e=>e.frameId);e.size&&(await Promise.all(n.map(async t=>{const n=await(0,V.A)(t.selector);if(n){const r=e.get(t);r.target=n,e.set(n,r)}e.delete(t)})),t())}),(0,i.$)()&&(async()=>{const{emitter:e,highlightHidden:t}=await(0,u.A)();e.on("highlighter:change",async()=>{const{highlighters:e}=await(0,u.A)(),n=globalThis.tree,o=Array.from(e).map(([e,r])=>{var o;return{vnodeId:null==n||null===(o=n.get(e))||void 0===o?void 0:o.vnodeId,selector:r.selector,theme:r.theme,hidden:r.axeHighlighter.classList.contains(t)}});r.yS.send(r._O.devtools,"highlight:changed",o)})})();function B(e){const t=e.reduce((e,t)=>e.done?(e.residual.push(t),e):(Array.isArray(t)&&"shadow-root"===t[0]?e.selector.push(t[1]):e.selector.length?(e.residual.push(t),e.done=!0):e.selector.push(t),e),{selector:[],residual:[],done:!1});return{node:t.selector.flat().reduce((e,t)=>{const n=(null==e?void 0:e.shadowRoot)||e;return null==n?void 0:n.querySelector(t)},document),context:t.selector,residual:t.residual}}function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach(function(t){U(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function U(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(async()=>{const{axeServerURL:e}=await browser.storage.local.get("axeServerURL"),t=e&&"default"!==e?e:"http://localhost:1234";window.addEventListener("message",e=>{"extension:healthcheck"===e.data.message&&s({message:"extension:healthcheck:response"},t)})})(),r.yS.listen("node:exists",async({message:e})=>{const{selector:t}=e,n=(0,d.A)(t);return null!=n}),r.yS.listen("nodes:exist-in-axe-tree",async({message:e})=>{const{nodes:t}=e;return Object.fromEntries(t.map(({vnodeId:e,selector:t})=>{const n=(0,d.A)(t);return[e,!!n&&(0,l.gi)(n)]}))}),r.yS.listen("node:get-info",async({message:{selector:e}})=>{const t=(0,d.A)(e);return{name:l.Ay.name(t),role:l.Ay.getRole(t)}}),r.yS.listen("node:color-contrast",async({message:e})=>{const{nodes:t}=e,n=new Map;for(const{selector:e,vnodeId:r}of t)n.set((0,d.A)(e),r);const{clearHighlights:r}=await(0,u.A)();r();const o=await l.Ay.runContrastAnalysis(Object.values(n)),i={};for(const{selector:e,data:t}of o){i[n.get((0,d.A)(e))]=t}return i});const z=e=>"contentWindow"in e,q={x:0,y:0,top:0,left:0,height:0,width:0},G=(e,t)=>{if(null!=t&&t.scrollIntoView){const n=new Map,r={key:"scroll-behavior",value:"auto"};let o=e.parentElement;for(;o;){const e=window.getComputedStyle(o);if(e.scrollBehavior&&e.scrollBehavior!==r.value){const e=o.style.getPropertyValue(r.key),t=o.style.getPropertyPriority(r.key);n.set(o,{style:e,priority:t}),o.style.setProperty(r.key,r.value,"important")}o=o.parentElement}e.scrollIntoView("object"==typeof t.scrollIntoView?t.scrollIntoView:{behavior:"auto",block:"center",inline:"center"});for(const[e,t]of n)e.style.setProperty(r.key,t.style,t.priority)}},Y=e=>{const t=0===e.width?10:0,n=0===e.height?10:0;return 0===t&&0===n?e:{x:e.x-t,y:e.y-n,left:e.left-t,top:e.top-n,right:e.right+t,bottom:e.bottom+n,width:e.width+2*t,height:e.height+2*n}},K=(e,t,n)=>{const r=window.getComputedStyle(e),o=Math.max(parseFloat(r.borderLeftWidth),0),i=Math.max(parseFloat(r.borderTopWidth),0),s=Math.max(parseFloat(r.paddingLeft),0),a=Math.max(parseFloat(r.paddingTop),0),c=t.x+n.x+o+s,l=t.y+n.y+i+a,u=t.left+n.left+o+s,d=t.top+n.top+i+a;return{x:c,y:l,left:u,top:d,right:u+n.width,bottom:d+n.height,width:n.width,height:n.height}};r.yS.listen("node:bounding-box",async({message:e})=>{const{selector:t,options:n}=e,{node:r,residual:i}=B(t),s=!1!==(null==n?void 0:n.padCollapsedRect),a=!0===(null==n?void 0:n.includePageScroll),c=e=>a?{rect:e,scroll:{x:window.scrollX,y:window.scrollY}}:e;if(null==r)return a?{rect:null,scroll:{x:window.scrollX,y:window.scrollY}}:q;if(z(r)&&null!=i&&i.length){const e=await(0,o.A)(r.contentWindow,"node:bounding-box",{selector:i,options:a?W(W({},n),{},{includePageScroll:!1}):n}),t=K(r,r.getBoundingClientRect(),e);return c(s?Y(t):t)}G(r,n);const l=r.getBoundingClientRect();return c(s?Y(l):l)}),r.yS.listen("node:get-text-selector",async({message:e})=>{const{selector:t}=e,{node:n,residual:r}=B(t);if(null==n)return t;if(z(n)&&null!=r&&r.length)return[...t,...await(0,o.A)(n.contentWindow,"node:get-text-selector",{selector:r})];if("SELECT"===(s=n).tagName&&"options"in s){const e=l.Ay.getElementStack(n);if(e[0]===n)return t;const r=n.options[n.selectedIndex].text||n.options[n.selectedIndex].value;for(const t of e){var i;if("innerText"in t&&(null===(i=t.innerText)||void 0===i?void 0:i.trim())===r)return[l.Ay.getSelector(t)]}}var s;return t}),r.yS.listen("node:bounding-box-text",async({message:e})=>{const{selector:t,options:n}=e,{node:r,residual:i}=B(t);if(null==r)return q;if(G(r,n),z(r)&&null!=i&&i.length){const e=r.getBoundingClientRect(),t=await(0,o.A)(r.contentWindow,"node:bounding-box-text",{selector:i,options:n});return K(r,e,t)}const s=document.createRange();s.selectNodeContents(r);return s.getBoundingClientRect()}),r.yS.listen("node:computed-text-color",async({message:e})=>{const{selector:t}=e,{node:n,residual:r}=B(t);return z(n)&&null!=r&&r.length?await(0,o.A)(n.contentWindow,"node:computed-text-color",{selector:r}):window.getComputedStyle(n).color});const X=new WeakMap,J=new WeakMap,Z={color:"transparent"},Q={webkitTransition:"none",transition:"none"};r.yS.listen("node:set-transparent-text",async({message:e})=>{const{selector:t}=e,{node:n,residual:r}=B(t);if(null!=n)if(z(n)&&null!=r&&r.length)await(0,o.A)(n.contentWindow,"node:set-transparent-text",{selector:r});else{const e=async e=>{const t={},n={};for(const[r]of Object.entries(Q))t[r]=e.style.getPropertyValue(r),n[r]=e.style.getPropertyPriority(r);for(const[t,n]of Object.entries(Q))e.style.setProperty(t,n,"important");await new Promise(r=>setTimeout(()=>{for(const[r,o]of Object.entries(Z))t[r]=e.style.getPropertyValue(r),n[r]=e.style.getPropertyPriority(r),e.style.setProperty(r,o,"important");r()},1));const r=window.getComputedStyle(e),o=["background","backgroundImage"];if("text"===r.webkitBackgroundClip||"text"===r.backgroundClip)for(const r of o)t[r]=e.style.getPropertyValue(r),n[r]=e.style.getPropertyPriority(r),e.style.setProperty(r,"none","important");X.set(e,t),J.set(e,n)};await e(n);for(const t of Array.from(n.children))await e(t)}}),r.yS.listen("node:set-transparent-text-reset",async({message:e})=>{const{selector:t}=e,{node:n,residual:r}=B(t);if(null!=n)if(z(n)&&null!=r&&r.length)await(0,o.A)(n.contentWindow,"node:set-transparent-text-reset",{selector:r});else{const e=async e=>{const t=X.get(e)||{},n=J.get(e)||{};for(const r of Object.keys(t))r in Q||e.style.setProperty(r,t[r],n[r]);await new Promise(r=>setTimeout(()=>{for(const r of Object.keys(Q))r in t&&e.style.setProperty(r,t[r],n[r]);r()},1))};await e(n);for(const t of Array.from(n.children))await e(t)}}),r.yS.listen("node:is-valid-auto-cc-target",async({message:{selector:e}})=>{const{node:t,residual:n}=B(e);if(null!=t){if(z(t)&&null!=n&&n.length)return(0,o.A)(t.contentWindow,"node:is-valid-auto-cc-target",{selector:n});{if(!t.children.length)return!0;const e=window.getComputedStyle(t).color;return!Array.from(t.children).find(t=>window.getComputedStyle(t).color!==e)}}}),r.yS.listen("node:focus",async({message:e})=>{const{selector:t,timeout:n=5e3}=e,{node:r,residual:i}=B(t);null!=r&&(z(r)&&null!=i&&i.length?await(0,o.A)(r.contentWindow,"node:focus",{selector:i}):await Promise.race([Promise.all([r.focus(),...r.getAnimations({subtree:!0}).map(e=>e.finished)]),new Promise(e=>setTimeout(e,n))]))}),r.yS.listen("node:reset-focus",()=>{document.activeElement&&document.activeElement.blur()}),r.yS.listen("selector:identify",async({message:e})=>{const{selector:t}=e,{node:n,context:r,residual:i}=B(t),s=n.contentWindow,a=[{selector:r,frameId:window.frameId,frameURL:window.location.href}];if(s&&null!=i&&i.length){const e=await(0,o.A)(s,"selector:identify",{selector:i});a.push(...e)}return a}),r.yS.listen("control:viewport",()=>({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,scrollX:window.scrollX,scrollY:window.scrollY,dpr:window.devicePixelRatio,url:window.location.href})),r.yS.listen("control:currentScroll",()=>document.documentElement.scrollTop),r.yS.listen("control:scrollToTop",({message:e})=>{window.scrollTo((null==e?void 0:e.x)||0,(null==e?void 0:e.y)||0)});const ee=async({message:e})=>{let t={x:0,y:0,width:0,height:0};if(null==e||!e.selector)return t;const{node:n,residual:r}=B(e.selector);if(!n)return t;const i=n.getBoundingClientRect();if(t={x:i.x,y:i.y,width:i.width,height:i.height},null==r||!r.length)return t;const s=await(0,o.A)(n.contentWindow,"control:boundingbox:content",{selector:r});if(!s)return t;const a=window.getComputedStyle(n);return t.x+=s.x+Math.max(parseFloat(a.borderLeftWidth),0),t.y+=s.y+Math.max(parseFloat(a.borderTopWidth),0),t.width=s.width,t.height=s.height,t};(0,i.$)()?r.yS.listen("control:boundingbox:top",ee):r.yS.listen("control:boundingbox:content",ee);var te=n(76058);const ne=(0,i.$)(),re=e=>{var t,n;return(null===(t=e.tagName)||void 0===t?void 0:t.toLowerCase())===te.wZ||(null===(n=e.getRootNode())||void 0===n||null===(n=n.host)||void 0===n?void 0:n.tagName.toLowerCase())===te.wZ},oe=e=>!!e.flatMap(e=>[...Array.from(e.addedNodes),...Array.from(e.removedNodes)]).find(e=>!re(e)),ie=e=>!!e.find(e=>!re(e.target)),se=async e=>{(e=>{if(e.find(e=>!["childList","attributes"].includes(e.type)))return!0;const t=e.filter(e=>"childList"===e.type),n=e.filter(e=>"attributes"===e.type);return oe(t)||ie(n)})(e)&&await r.yS.send(r._O.devtools,"page-observer:mutated",{isTop:ne})};let ae=null;r.yS.listen("page-observer:start",async()=>{ae||(ae=new MutationObserver(se),ae.observe(document.body,{attributes:!0,subtree:!0,childList:!0}))}),r.yS.listen("page-observer:end",async()=>{var e;null===(e=ae)||void 0===e||e.disconnect(),ae=null}),document.addEventListener("beforeunload",()=>{ae.disconnect(),ae=null});const ce="customIntegrationConnectionLink";(0,o.T)(),r.yS.listen("custom-integration:fetch-state",async()=>{const{[ce]:e}=await browser.storage.local.get(ce);return browser.storage.local.remove(ce),e});const le=async()=>{let e;const{axeServerURL:t}=await browser.storage.local.get(["axeServerURL"]);try{e=new URL(t&&"default"!==t?t:"http://localhost:1234")}catch{e=new URL("http://localhost:1234")}return e},ue=async e=>{const t=await le();try{s({message:e},t)}catch{}},de=async e=>{const t=await le(),n=URL.parse(e.origin);if(t.origin===(null==n?void 0:n.origin))switch(e.data.message){case"app:logout":r.yS.send(r._O.background,"app:logout");break;case"app:plan:change":r.yS.send(r._O.background,"app:plan:change");break;case"walkthrough:check:open":await r.yS.send(r._O.devtools,"panel:is:open")&&ue("walkthrough:opened");break;case"extension:custom-integration:launch":(()=>{const e=new URLSearchParams(location.search),t=e.get("testId"),n=e.get("url");(null==t?void 0:t.length)<=255&&(browser.storage.local.set({[ce]:{testId:t,url:n}}),r.yS.send(r._O.devtools,"custom-integration:launch",{testId:t,url:n}))})()}};(0,i.$)()&&(window.addEventListener("message",de),r.yS.listen("walkthrough:panel-open:status",()=>{ue("walkthrough:opened")}),r.yS.listen("walkthrough:test-saved:status",()=>{ue("walkthrough:saved")}),r.yS.listen("walkthrough:igt-completed:status",()=>{ue("walkthrough:igt:completed")}))},31146(e,t,n){"use strict";function r(e){return e.map(e=>Array.isArray(e)?e.filter(e=>"shadow-root"!==e):"shadow-root"===e?"":e).flat().reduce((e,t)=>{const n=(null==e?void 0:e.contentDocument)||(null==e?void 0:e.shadowRoot)||e;return null==n?void 0:n.querySelector(t)},document)}n.d(t,{A:()=>r})},68280(e,t,n){"use strict";n.d(t,{E9:()=>de});var r=n(53940),o=n(9510),i=n(96367),s=n(81305),a=n(10073),c=n(60857),l=n(46499),u=n(41803),d=n(91968);const f=["event"];function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const{AMPLITUDE_API_KEY:g,DATADOG_CLIENT_TOKEN:y,NODE_ENV:b}={NODE_ENV:"production",AMPLITUDE_API_KEY:"5faf82a87f563be7741eca93a9cdef37",DATADOG_CLIENT_TOKEN:""};let v;try{var w;const e=n(75478);v=null!==(w=e.default)&&void 0!==w&&w.getInstance?e.default.getInstance():e.getInstance()}catch{}const S=()=>!!v&&!0,O="enterpriseId",x="conversion:install",E="conversion:uninstall",A="user:login",T="user:open",C="analysis:analyze",I="record:delete",N="record:rename",P="analysis:complete",j="analysis:ai:request:fail",k="analysis:userCorrection",R="issues:export",_="issue:inspected",M="issue:relatedInspected",D="issue:toggleHighlight",L="issue:moreInfo",F="ml:suggestedInteractiveElement",V="ml:suggestedInteractiveElementRejected",$="ml:missedInteractiveElement",B="ml:suggestedRole",H="ml:suggestedRoleAccepted",W="ml:suggestedRoleRejected",U="ml:suggestedTableHeader",z="ml:suggestedTableHeaderRejected",q="conversion:click:scanPart",G="conversion:click:saveTest",Y="conversion:click:export",K="conversion:click:shareIssue",X="analysis:startUFA",J=(e=[],t)=>e.filter(({impact:e})=>e===t).reduce((e,{nodes:t})=>e+((null==t?void 0:t.length)||1),0),Z=e=>{try{const t=new URL(e);return"localhost"===t.hostname||!!t.port||"file://"===t.origin}catch{return!1}},Q=e=>{if(void 0===e)return;const t=Array.from(new Set(e.map(e=>e.rule||e.id))),n={failedRuleCount:t.length,failedRuleNames:t,criticalIssueCount:J(e,"critical"),seriousIssueCount:J(e,"serious"),moderateIssueCount:J(e,"moderate"),minorIssueCount:J(e,"minor")};if(e.length&&Array.isArray(e[0].nodes)){const t=e.reduce((e,t)=>e+t.nodes.length,0);n.failedItemCount=t}return n},ee=async(e,t=!1)=>{const n=await(0,s.O)(),r=t?e.productName:n.productName,o=t?e.productComponent:n.productComponent,i=h(h({},e),{},{productName:r,productComponent:o});if(S())try{let{event:e}=i,t=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(i,f);ue(e,t)}catch(e){a.R8("Analytics Data Error",{error:e.message,stack:e.stack})}try{n.postEvent(i)}catch(e){a.R8("Usage Data Error",{error:e.message,stack:e.stack})}},te=e=>{let t="anonymous";switch(null==e?void 0:e.status){case c.rD:t="trial";break;case c.BN:case c.Ew:case c.cT:case c.Aw:case c.jC:case c.Yw:t=e.status}return t},ne=async(e=[])=>{var t;let n,s,a,c;if("devtools"in browser)try{({contentType:n,title:s,url:a,scoped:c}=await i.yS.send(i._O.content,"get-document-metadata"))}catch(e){(0,d.vV)({message:"Unable to get document metadata",originalError:e})}const{usageOrganization:u,usageDepartment:f,usageApplication:p,user:m,cachedUserCompany:g,axeSettings:y,userJobRole:b,cachedUserEmail:v}=await browser.storage.local.get(["usageOrganization","usageDepartment","usageApplication","user","cachedUserCompany","axeSettings","userJobRole","cachedUserEmail"]),w=!(!m||!m.id);return{distinctId:await(0,l.A)(),organization:u||((null==m?void 0:m.company)||g||""),department:f||"",application:p||"",userStatus:te(m),loggedIn:w,devInstance:Z(a),keycloakId:m&&m.id,userId:m&&m.username||v,userJobRole:b||"Anonymous",enterpriseId:null==m||null===(t=m.enterprise)||void 0===t?void 0:t.id,productName:"axe-pro",productComponent:"extension",productComponentVersion:o.rE,applicationProperties:h({engineVersion:r.rE,scoped:c,target:a,targetMedium:n,targetState:s,experimental:!1,rulesetName:(null==y?void 0:y.ruleset)||"all",bestPractices:!!y&&!!y.enableBestPractices},Q(e))}},re=e=>async function(t,n){const r=await ne(t);if(!n)return ee(h(h({},r),{},{event:e}));ee(h(h({},r),{},{event:e,applicationProperties:h(h({},r.applicationProperties),n)}))},oe=e=>t=>re(e)(void 0,t),ie=(re("issue:viewed"),oe(_),oe(M),oe(D),oe(L),re(I),re(N),re(x),re(E),re(A),re(T),(e,t="interactive-elements")=>n=>re(e)(void 0,h({eventTool:t},n)));ie(F),ie(V),ie($),ie(B),ie(H),ie(W),ie(j),ie(k),ie(U,"table"),ie(z,"table"),re(q),re(G),re(Y),re(K),re(X);let se=!1,ae=!1;const ce=async()=>{if(se||!S())return;const e=await(0,l.A)();v.init(g,void 0,{deviceId:e,includeUtm:!0,saveParamsReferrerOncePerSession:!1,includeGclid:!0,includeReferrer:!0,secureCookie:!0,sameSiteCookie:"Lax"}),se=!0},le=async()=>{if(void 0!==globalThis.document&&void 0!==globalThis.XMLHttpRequest){if(ae||!u.y)return!0;u.y.init({clientToken:y,site:"datadoghq.com",service:"axe-extension",env:b,version:o.rE,beforeSend:e=>{var t;if(0===(null==e||null===(t=e.http)||void 0===t?void 0:t.status_code))return!1}}),ae=!0}},ue=async(e,t={})=>{if(!S())return;await(async()=>{await Promise.all([ce(),le()])})();let n={};switch(e){case C:n={analyze:1};break;case P:n={complete:1};break;case R:n={export:1}}await(async(e={})=>{var t;if(!S())return;const{user:n,userJobRole:r="",usageOrganization:o="",cachedUserCompany:i,axeSettings:s,highlightTheme:a,theme:c,locale:l,policySettings:u,axeServerURL:d,firstView:f,exportFormat:p}=await browser.storage.local.get(["user","userJobRole","usageOrganization","cachedUserCompany","axeSettings","highlightTheme","theme","locale","policySettings","axeServerURL","firstView","exportFormat"]);v.setUserId(n&&n.id);const m=n&&n.id,g=null==n||null===(t=n.enterprise)||void 0===t?void 0:t.id,y=(new v.Identify).set("role",r).set("userStatus",te(n)).set("loggedIn",m).set("axeSettings",h(h({highlightTheme:a,theme:c,locale:l,axeServerURL:d},s),{},{ruleset:(null==s?void 0:s.ruleset)||"all"})).set("policySettings",u).set("firstView",f).set("exportSchema",p||"devtools");g&&y.set(O,g);for(const[t,n]of Object.entries(e))isNaN(n)?y.set(t,n):y.add(t,n);v.identify(y),v.setGroup("organization",o||(null==n?void 0:n.company)||i)})(n);const{devInstance:r,productName:o,productComponent:i,productComponentVersion:s,engineVersion:a,enterpriseId:c,applicationProperties:l}=t,u=h(h({devInstance:r,productName:o,productComponent:i,productComponentVersion:s,engineVersion:a},c?{[O]:c}:{}),l);v.logEvent(e,u)},de=()=>ae},60119(e,t,n){"use strict";n.d(t,{A:()=>l,T:()=>u});var r=n(35226),o=n.n(r),i=n(93437),s=n(96367),a=n(66884);const c=o()("frameMessenger");async function l(e,t,n,{timeout:r=500}={}){if((0,a.$)(e))throw new Error("FrameMessenger on top level window is not supported.");const o=function(e){try{const t=e.frameId;return"number"==typeof t?t:void 0}catch(e){return void c("Unable to read same-origin frameId, falling back to handshake: %o",e)}}(e),l=o??await function(e,t){const n=(0,i.A)(),r=`frame-messenger:${n}`;return new Promise((o,i)=>{const a=setTimeout(()=>{s.yS.unlisten(r,c),i(`No response received from frame within timeout of ${t}ms.`)},t),c=({message:e})=>{clearTimeout(a),s.yS.unlisten(r,c),o(e.frameId)};s.yS.listen(r,c),e.postMessage({uuid:n,originFrameId:window.frameId,source:"frame-messenger"},"*")})}(e,r);return s.yS.send(s._O.content,t,n,{frameId:l})}function u(){s.yS.send(s._O.background,"identify-content-frame").then(e=>{window.frameId=e}),(0,a.$)()||window.addEventListener("message",({data:e})=>{(function(e){return e.uuid&&e.originFrameId>=0&&"frame-messenger"===e.source})(e)&&(c(`originFrame:${e.originFrameId} → childFrame:${window.frameId} [${window.location.href}]`),s.yS.send(s._O.content,`frame-messenger:${e.uuid}`,{frameId:window.frameId},{frameId:e.originFrameId}))})}},81305(e,t,n){"use strict";n.d(t,{O:()=>c});var r=n(85500),o=n(80870);const i={chrome:"extension-chrome",firefox:"extension-firefox",edge:"extension-edge"};let s,a;const c=async(e=!1,t)=>{let{usageServerURL:n}=await browser.storage.local.get("usageServerURL");return!e&&s&&n===a||(a=n,"default"===n&&(n="https://usage.dequelabs.com"),s=new r.Ay("axe-devtools-html",i[t||(0,o.fx)()]),s.url(n)),s}},68446(e,t,n){"use strict";var r=n(70367),o=n(47274),i=n(14442),s=n(39454),a=n(6084),c=n(80426);new r.A((0,a.A)("\n"),c.A,i.A,o.A,s.A)},31298(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(31495),o=n.n(r),i=n(31336),s=n.n(i)()(o());s.push([e.id,":host{--base-font-size:12px;pointer-events:none!important;position:absolute!important;top:0!important;left:0!important;height:0!important;width:100%!important;opacity:1!important;visibility:visible!important}:host(.highlight--hide){display:none!important}:host(:popover-open){top:0!important;left:0!important;right:auto!important;bottom:auto!important;margin:0!important;padding:0!important;border:0!important;background:#0000!important;overflow:visible!important}#axe-highlight{position:absolute;pointer-events:none;z-index:2147483647;display:flex;flex:1}#border{border-color:var(--theme--border-color,#0000);border-style:solid}#border,#margin{display:flex;flex:1}#margin{border-color:var(--theme--margin-color,#0000);border-style:solid}#content{background-color:var(--theme--content-color,#0000);background-clip:content-box;border-color:var(--theme--padding-color,#0000);border-style:solid;width:100%;height:100%;box-sizing:border-box;display:flex;flex:1}",""]);const a=s},17940(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(31495),o=n.n(r),i=n(31336),s=n.n(i),a=n(1299),c=n.n(a),l=new URL(n(55484),n.b),u=s()(o()),d=c()(l);u.push([e.id,`:host{--high-contrast-color-outline:#c11bde;--high-contrast-color-shadow:#e267ff}.theme--high-contrast{transform:translate(-6px,-6px);padding:3px;border:3px solid var(--high-contrast-color-outline);box-shadow:0 0 10px 4px var(--high-contrast-color-shadow);max-width:calc(100% - 6px)}.theme--high-contrast.highlight--fullpage{position:fixed!important;top:0!important;bottom:0!important;left:0!important;right:0!important;transform:none;border:3px solid var(--high-contrast-color-outline)}.theme--high-contrast:not(.highlight--offscreen):not(.highlight--fullpage)+#tooltip.tooltip--bottom{transform:translateY(6px)}.theme--high-contrast:not(.highlight--offscreen):not(.highlight--fullpage)+#tooltip.tooltip--top{transform:translateY(-6px)}.theme--devtools{--theme--border-color:#ffff3273;--theme--margin-color:#ff960080;--theme--padding-color:#23b45059;--theme--content-color:#1e3cff66}.theme--devtools.highlight--fullpage{position:fixed!important;top:0!important;bottom:0!important;left:0!important;right:0!important;transform:none}.theme--selection:before{position:absolute;content:"";display:block;top:0;bottom:0;left:0;right:0;border:3px dashed var(--high-contrast-color-outline)}.theme--selection.highlight--page{position:fixed!important;top:0!important;bottom:0!important;left:0!important;right:0!important;transform:none;border:3px dashed var(--high-contrast-color-outline)}.theme--selection.highlight--page:before{display:none}.theme--selected:before{position:absolute;content:"";display:block;top:0;bottom:0;left:0;right:0;border:3px solid var(--high-contrast-color-outline)}.theme--selected.highlight--page{position:fixed!important;top:0!important;bottom:0!important;left:0!important;right:0!important;transform:none;border:3px solid var(--high-contrast-color-outline)}.theme--selected.highlight--page:before{display:none}:host{--badge-color-outline:#3c7aae}.theme--badge:before{position:absolute;content:"";display:block;top:0;bottom:0;left:0;right:0;border:3px solid var(--badge-color-outline)}.theme--badge:after{counter-reset:badge var(--axe-highlight-counter);content:var(--axe-highlight-badge-content,counter(badge));position:absolute;top:3px;left:3px;border:3px solid #fff;color:#fff;font-weight:500;background-color:var(--badge-color-outline);display:flex;height:1.5em;min-width:1.5em;align-items:center;justify-content:center;font-family:monospace;font-size:13px}.theme--ml:before{position:absolute;content:"";display:block;top:0;bottom:0;left:0;right:0;border:3px solid var(--high-contrast-color-outline)}.theme--ml:after{content:"";position:absolute;top:-5px;left:-5px;background-image:url(${d});background-repeat:no-repeat;width:29px;height:29px}`,""]);const f=u},91126(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(31495),o=n.n(r),i=n(31336),s=n.n(i)()(o());s.push([e.id,':host{--tooltip-background-color:#f9f9f9;--tooltip-border-color:#333;--tooltip-shadow-color:#0003;--tooltip-tag-name-color:#2e40a0;--tooltip-tag-identifier-color:#c53406;--tooltip-text-color:#02101a;--tooltip-label-color:#666;--tooltip-text-accent-color:#4d4d4d}#tooltip{position:absolute;white-space:nowrap;margin:.5rem 0;font-family:monospace;font-size:var(--base-font-size);padding:.6rem;background:var(--tooltip-background-color);color:var(--tooltip-text-color);box-shadow:0 0 6px var(--tooltip-shadow-color);border:3px solid var(--tooltip-border-color);z-index:2147483647;max-width:20rem;border-radius:3px}#tooltip p{margin:0}#tooltip svg{height:13px;width:13px;margin-bottom:-2px}#tooltip:after,#tooltip:before{content:"";display:block;position:absolute;border:.5rem solid #0000;border-top:none;border-bottom:.5rem solid var(--tooltip-background-color)}#tooltip:after{z-index:2;top:0;transform:translateY(1px) translateY(-100%)}#tooltip:before{top:0;transform:translateY(-3px) translateY(-100%);border-bottom:.5rem solid var(--tooltip-border-color);z-index:1}#tooltip.tooltip--top:before{top:100%;transform:rotate(180deg) translateY(-3px)}#tooltip.tooltip--top:after{top:100%;transform:rotate(180deg) translateY(1px)}#tooltip.tooltip--right{margin-right:-1.3rem}#tooltip.tooltip--right:after,#tooltip.tooltip--right:before{right:.6rem}#tooltip.tooltip--left:after,#tooltip.tooltip--left:before{left:.6rem}#tooltip.tooltip--fullscreen{position:fixed!important;top:10px!important;left:10px!important;bottom:auto!important;transform:none;margin:0}#tooltip.tooltip--fullscreen:after,#tooltip.tooltip--fullscreen:before{display:none}#tag{display:grid;grid-template-columns:max-content auto 1fr min-content}#tag-name{color:var(--tooltip-tag-name-color)}#tag-identifier{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;white-space:normal;overflow:hidden;color:var(--tooltip-tag-identifier-color)}#tag-visibility{font-style:italic;color:var(--tooltip-text-accent-color);margin-left:1em}#tag-offscreen{margin-left:1em}#tag-dimensions{font-family:monospace;color:var(--tooltip-text-accent-color);margin-left:1em;justify-self:right}#hidden-eye{position:relative}#hidden-eye:before{position:absolute;content:"";display:block;height:1px;width:16px;background-color:#02101a;top:7px;left:-1px;z-index:1;transform:rotate(-45deg);border:1px solid #fff}#accessible-text{color:var(--tooltip-text-accent-color);white-space:normal}#attributes{display:grid;grid-template-columns:1fr auto;grid-column-gap:1rem;grid-row-gap:.2rem;grid-auto-rows:minmax(1.6em,auto);align-items:center;border-top:1px solid #ccc;padding:.6rem 0 0;margin:.6rem 0 0;font-family:sans-serif}#attributes :is(dd,dl){margin:0}#attributes dt{color:var(--tooltip-label-color)}#attributes dd{justify-self:right;text-align:right;white-space:normal;-webkit-line-clamp:3;-webkit-box-orient:vertical}.contrast-aa{color:#4d4d4d;line-height:1em;display:inline-block;padding:2px;border:1px solid #4d4d4d;font-size:9px;vertical-align:text-bottom;font-family:monospace}#tooltip.tooltip--offscreen.tooltip--top{margin-bottom:1.2rem}#tooltip.tooltip--offscreen.tooltip--right{margin-right:.6rem}#tooltip.tooltip--offscreen.tooltip--left{margin-left:.6rem}#tooltip.tooltip--offscreen.tooltip--right:before{top:.6rem;transform:rotate(90deg) translateY(-24px)}#tooltip.tooltip--offscreen.tooltip--right:after{top:.6rem;transform:rotate(90deg) translateY(-20px)}#tooltip.tooltip--offscreen.tooltip--left:before{top:.6rem;transform:rotate(-90deg) translateY(-24px)}#tooltip.tooltip--offscreen.tooltip--left:after{top:.6rem;transform:rotate(-90deg) translateY(-20px)}',""]);const a=s},31336(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(s[c]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);r&&s[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},1299(e){"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},31495(e){"use strict";e.exports=function(e){return e[1]}},67151(e){"use strict";var t={}.hasOwnProperty,n=/[ -,\.\/;-@\[-\^`\{-~]/,r=/[ -,\.\/;-@\[\]\^`\{-~]/,o=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,i=function e(i,s){"single"!=(s=function(e,n){if(!e)return n;var r={};for(var o in n)r[o]=t.call(e,o)?e[o]:n[o];return r}(s,e.options)).quotes&&"double"!=s.quotes&&(s.quotes="single");for(var a="double"==s.quotes?'"':"'",c=s.isIdentifier,l=i.charAt(0),u="",d=0,f=i.length;d<f;){var p=i.charAt(d++),h=p.charCodeAt(),m=void 0;if(h<32||h>126){if(h>=55296&&h<=56319&&d<f){var g=i.charCodeAt(d++);56320==(64512&g)?h=((1023&h)<<10)+(1023&g)+65536:d--}m="\\"+h.toString(16).toUpperCase()+" "}else m=s.escapeEverything?n.test(p)?"\\"+p:"\\"+h.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B:]/.test(p)?c||":"!=p?"\\"+h.toString(16).toUpperCase()+" ":p:"\\"==p||!c&&('"'==p&&a==p||"'"==p&&a==p)||c&&r.test(p)?"\\"+p:p;u+=m}return c&&(/^_/.test(u)?u="\\_"+u.slice(1):/^-[-\d]/.test(u)?u="\\-"+u.slice(1):/\d/.test(l)&&(u="\\3"+l+" "+u.slice(1))),u=u.replace(o,function(e,t,n){return t&&t.length%2?e:(t||"")+n}),!c&&s.wrap?a+u+a:u};i.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},i.version="1.0.1",e.exports=i},61740(e,t){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i=/^:([a-z])(\(([^)]+)\))?/,s="numeric",a="long",c="2-digit",l="string",u="decimal",d="currency",f="percent",p={weekday:void 0,era:void 0,year:void 0,month:a,day:s,hour:void 0,minute:void 0,second:void 0,timeZoneName:void 0},h={weekday:void 0,era:void 0,year:s,month:a,day:void 0,hour:void 0,minute:void 0,second:void 0,timeZoneName:void 0},m={d:{weekday:void 0,era:void 0,year:s,month:s,day:s,hour:void 0,minute:void 0,second:void 0,timeZoneName:void 0},D:{weekday:a,era:void 0,year:s,month:a,day:s,hour:void 0,minute:void 0,second:void 0,timeZoneName:void 0},f:{weekday:a,era:void 0,year:s,month:a,day:s,hour:s,minute:c,second:void 0,timeZoneName:void 0},F:{weekday:a,era:void 0,year:s,month:a,day:s,hour:s,minute:c,second:c,timeZoneName:void 0},g:{weekday:void 0,era:void 0,year:s,month:s,day:s,hour:s,minute:c,second:void 0,timeZoneName:void 0},G:{weekday:void 0,era:void 0,year:s,month:s,day:s,hour:s,minute:c,second:c,timeZoneName:void 0},m:p,M:p,t:{weekday:void 0,era:void 0,year:void 0,month:void 0,day:void 0,hour:s,minute:c,second:void 0,timeZoneName:void 0},T:{weekday:void 0,era:void 0,year:void 0,month:void 0,day:void 0,hour:s,minute:c,second:c,timeZoneName:void 0},y:h,Y:h},g=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.defaultConfig={locales:void 0,translations:{},number:{currency:"USD"},date:{},string:{}},this.configs={"":this.defaultConfig},this.translationCache={},this.keyCache={},this.typeInfoCache={},this._localizers={s:function(e,n,r){var o=void 0;return r&&null!==(o=t._runCustomFormatters(e,l,r,n))?o:n?n.toLocaleString(e.locales):String(n)},n:function(e,r,o){if("number"!=typeof r)throw Error("value is not a number. type: "+(void 0===r?"undefined":n(r)));if(o){var i=parseInt(o);if(!isNaN(i))return r.toLocaleString(e.locales,Object.assign({},e.number,{style:u,minimumFractionDigits:i,maximumFractionDigits:i}));var s;if(null!==(s=t._runCustomFormatters(e,"number",o,r)))return s}return r.toLocaleString(e.locales,Object.assign({},e.number,{style:u,minimumFractionDigits:0,maximumFractionDigits:3}))},t:function(e,n,r){if(!(n instanceof Date))throw Error("value is not a Date. type: "+n.constructor.name);if(r){switch(r.toUpperCase()){case"R":return n.toUTCString();case"O":return n.toISOString()}var o=m[r];if(o)return n.toLocaleString(e.locales,Object.assign({},e.date,o));var i=t._runCustomFormatters(e,"date",r,n);if(null!==i)return i}return n.toLocaleString(e.locales,Object.assign({},e.date))},c:function(e,t,r){if("number"!=typeof t)throw Error("value is not a number. type: "+(void 0===t?"undefined":n(t)));return t.toLocaleString(e.locales,r?Object.assign({},e.number,{style:d,currency:r}):Object.assign({},e.number,{style:d}))},p:function(e,t,r){if("number"!=typeof t)throw Error("value is not a number. type: "+(void 0===t?"undefined":n(t)));return t.toLocaleString(e.locales,r?Object.assign({},e.number,{style:f,minimumFractionDigits:r}):Object.assign({},e.number,{style:f}))}},this.i18n=this.i18n.bind(this),this.translate=this.translate.bind(this),this.i18nConfig=this.i18nConfig.bind(this),this._localize=this._localize.bind(this),this._extractTypeInfo=this._extractTypeInfo.bind(this)}return r(e,[{key:"i18nConfig",value:function(e){var t=e.locales,n=e.translations,r=e.group,o=e.number,i=e.date,s=e.standardFormatters;this.translationCache={};var a=this.configs[r||""]||this.defaultConfig;this.configs[r||""]=Object.assign({},a,{locales:t||a.locales,translations:n||a.translations,number:o||a.number,date:i||a.date,standardFormatters:s||a.standardFormatters})}},{key:"i18n",value:function(e,t,n){for(var r=this,i=this._buildKey(n),s=this._getCachedTranslation(e,t,i),a=s.configGroup,c=s.translatedKey,l=n.slice(1).map(this._extractTypeInfo),u=arguments.length,d=Array(u>3?u-3:0),f=3;f<u;f++)d[f-3]=arguments[f];var p=d.map(function(e,t){return r._localize(a,e,l[t])});return this._buildMessage.apply(this,[c].concat(o(p)))}},{key:"translate",value:function(e,t,n){var r=this;null==n?n="":"string"!=typeof n&&(n=String(n));for(var i=this._getCachedTranslation(e,t,n),s=i.configGroup,a=i.translatedKey,c=arguments.length,l=Array(c>3?c-3:0),u=3;u<c;u++)l[u-3]=arguments[u];var d=l.map(function(e){return e instanceof Object&&e.constructor===Object?r._localize(s,e.value||"",{type:e.formatter||"s",options:e.format}):r._localize(s,e,{type:"s",options:""})});return this._buildMessage.apply(this,[a].concat(o(d)))}},{key:"_getCachedTranslation",value:function(e,t,n){var r=[e||"",t||"",n].join(),o=this.translationCache[r],i=this.configs[t||""]||this.defaultConfig;if(o)return{configGroup:i,translatedKey:o};var s=this._getTranslation(e,i,n);return this.translationCache[r]=s,{configGroup:i,translatedKey:s}}},{key:"_getTranslation",value:function(e,t,r){var o=t.translations,i=void 0,s=void 0;return(void 0===e?"undefined":n(e))===l&&(s=e),s&&(i=o[s])instanceof Object&&(i=i[r]),i||(i="string"==typeof o[r]&&o[r]||r),i}},{key:"_runCustomFormatters",value:function(e,t,n,r){var o=null;if(e.standardFormatters){var i=e.standardFormatters[t];if(i){var s=i[n];s&&(o=s(e.locales,e[t],r))}}return o}},{key:"_extractTypeInfo",value:function(e){var t=this.typeInfoCache[e];if(t)return t;var n=i.exec(e);return t=n?{type:n[1],options:n[3]}:{type:"s",options:""},this.typeInfoCache[e]=t,t}},{key:"_localize",value:function(e,t,n){var r=n.type,o=n.options,i=this._localizers[r];if(i)return i(e,t,o);throw new Error("Type '"+r+"' is not supported. Supported types are: "+Object.keys(this._localizers).join())}},{key:"_buildKey",value:function(e){var t=e.join(),n=this.keyCache[t];if(n)return n;var r=function(e){return e.replace(i,"")},o=r(e[e.length-1]),s=e.slice(0,-1).reduceRight(function(e,t,n){return r(t)+"${"+n+"}"+e},o).replace(/\r\n/g,"\n");return this.keyCache[t]=s,s}},{key:"_buildMessage",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.replace(/\${(\d)}/g,function(e,t){return n[Number(t)]})}}]),e}(),y=new g,b=y.i18nConfig,v=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if("string"==typeof e){if(n.length&&"string"==typeof n[0]){var o=function(t){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return y.i18n.apply(y,[e,n[0],t].concat(o))};return o.translate=function(t){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return y.translate.apply(y,[e,n[0],t].concat(o))},o}var i=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return y.i18n.apply(y,[e,null,t].concat(r))};return i.translate=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return y.translate.apply(y,[e,null,t].concat(r))},i}return y.i18n.apply(y,[null,null,e].concat(n))};v.translate=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return y.translate.apply(y,[null,null,e].concat(n))};var w=function(e,t){return function(n){return n.prototype.i18n=function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return v(e,t).apply(void 0,[n].concat(o))},n.prototype.i18n.translate=function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return y.translate.apply(y,[e,t,n].concat(o))},n}};window.i18n=v,window.i18nConfig=b,window.i18nGroup=w,t.Ay=v},11911(e,t,n){e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",s="[object Array]",a="[object Boolean]",c="[object Date]",l="[object Error]",u="[object Function]",d="[object Map]",f="[object Number]",p="[object Object]",h="[object Promise]",m="[object RegExp]",g="[object Set]",y="[object String]",b="[object Symbol]",v="[object WeakMap]",w="[object ArrayBuffer]",S="[object DataView]",O=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,x=/^\w*$/,E=/^\./,A=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,T=/\\(\\)?/g,C=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,N={};N["[object Float32Array]"]=N["[object Float64Array]"]=N["[object Int8Array]"]=N["[object Int16Array]"]=N["[object Int32Array]"]=N["[object Uint8Array]"]=N["[object Uint8ClampedArray]"]=N["[object Uint16Array]"]=N["[object Uint32Array]"]=!0,N[i]=N[s]=N[w]=N[a]=N[S]=N[c]=N[l]=N[u]=N[d]=N[f]=N[p]=N[m]=N[g]=N[y]=N[v]=!1;var P="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,j="object"==typeof self&&self&&self.Object===Object&&self,k=P||j||Function("return this")(),R=t&&!t.nodeType&&t,_=R&&e&&!e.nodeType&&e,M=_&&_.exports===R&&P.process,D=function(){try{return M&&M.binding("util")}catch(e){}}(),L=D&&D.isTypedArray;function F(e,t,n,r){for(var o=-1,i=e?e.length:0;++o<i;){var s=e[o];t(r,s,n(s),e)}return r}function V(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function $(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function B(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function H(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var W,U,z,q=Array.prototype,G=Function.prototype,Y=Object.prototype,K=k["__core-js_shared__"],X=(W=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||""))?"Symbol(src)_1."+W:"",J=G.toString,Z=Y.hasOwnProperty,Q=Y.toString,ee=RegExp("^"+J.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),te=k.Symbol,ne=k.Uint8Array,re=Y.propertyIsEnumerable,oe=q.splice,ie=(U=Object.keys,z=Object,function(e){return U(z(e))}),se=Be(k,"DataView"),ae=Be(k,"Map"),ce=Be(k,"Promise"),le=Be(k,"Set"),ue=Be(k,"WeakMap"),de=Be(Object,"create"),fe=Ke(se),pe=Ke(ae),he=Ke(ce),me=Ke(le),ge=Ke(ue),ye=te?te.prototype:void 0,be=ye?ye.valueOf:void 0,ve=ye?ye.toString:void 0;function we(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function xe(e){var t=-1,n=e?e.length:0;for(this.__data__=new Oe;++t<n;)this.add(e[t])}function Ee(e){this.__data__=new Se(e)}function Ae(e,t){var n=nt(e)||tt(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!Z.call(e,i)||o&&("length"==i||We(i,r))||n.push(i);return n}function Te(e,t){for(var n=e.length;n--;)if(et(e[n][0],t))return n;return-1}function Ce(e,t,n,r){return Pe(e,function(e,o,i){t(r,e,n(e),i)}),r}we.prototype.clear=function(){this.__data__=de?de(null):{}},we.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},we.prototype.get=function(e){var t=this.__data__;if(de){var n=t[e];return n===r?void 0:n}return Z.call(t,e)?t[e]:void 0},we.prototype.has=function(e){var t=this.__data__;return de?void 0!==t[e]:Z.call(t,e)},we.prototype.set=function(e,t){return this.__data__[e]=de&&void 0===t?r:t,this},Se.prototype.clear=function(){this.__data__=[]},Se.prototype.delete=function(e){var t=this.__data__,n=Te(t,e);return!(n<0)&&(n==t.length-1?t.pop():oe.call(t,n,1),!0)},Se.prototype.get=function(e){var t=this.__data__,n=Te(t,e);return n<0?void 0:t[n][1]},Se.prototype.has=function(e){return Te(this.__data__,e)>-1},Se.prototype.set=function(e,t){var n=this.__data__,r=Te(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Oe.prototype.clear=function(){this.__data__={hash:new we,map:new(ae||Se),string:new we}},Oe.prototype.delete=function(e){return $e(this,e).delete(e)},Oe.prototype.get=function(e){return $e(this,e).get(e)},Oe.prototype.has=function(e){return $e(this,e).has(e)},Oe.prototype.set=function(e,t){return $e(this,e).set(e,t),this},xe.prototype.add=xe.prototype.push=function(e){return this.__data__.set(e,r),this},xe.prototype.has=function(e){return this.__data__.has(e)},Ee.prototype.clear=function(){this.__data__=new Se},Ee.prototype.delete=function(e){return this.__data__.delete(e)},Ee.prototype.get=function(e){return this.__data__.get(e)},Ee.prototype.has=function(e){return this.__data__.has(e)},Ee.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Se){var r=n.__data__;if(!ae||r.length<199)return r.push([e,t]),this;n=this.__data__=new Oe(r)}return n.set(e,t),this};var Ie,Ne,Pe=(Ie=function(e,t){return e&&je(e,t,ut)},function(e,t){if(null==e)return e;if(!rt(e))return Ie(e,t);for(var n=e.length,r=Ne?n:-1,o=Object(e);(Ne?r--:++r<n)&&!1!==t(o[r],r,o););return e}),je=function(e){return function(t,n,r){for(var o=-1,i=Object(t),s=r(t),a=s.length;a--;){var c=s[e?a:++o];if(!1===n(i[c],c,i))break}return t}}();function ke(e,t){for(var n=0,r=(t=Ue(t,e)?[t]:Fe(t)).length;null!=e&&n<r;)e=e[Ye(t[n++])];return n&&n==r?e:void 0}function Re(e,t){return null!=e&&t in Object(e)}function _e(e,t,n,r,o){return e===t||(null==e||null==t||!st(e)&&!at(t)?e!=e&&t!=t:function(e,t,n,r,o,u){var h=nt(e),v=nt(t),O=s,x=s;h||(O=(O=He(e))==i?p:O);v||(x=(x=He(t))==i?p:x);var E=O==p&&!$(e),A=x==p&&!$(t),T=O==x;if(T&&!E)return u||(u=new Ee),h||lt(e)?Ve(e,t,n,r,o,u):function(e,t,n,r,o,i,s){switch(n){case S:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!r(new ne(e),new ne(t)));case a:case c:case f:return et(+e,+t);case l:return e.name==t.name&&e.message==t.message;case m:case y:return e==t+"";case d:var u=B;case g:var p=2&i;if(u||(u=H),e.size!=t.size&&!p)return!1;var h=s.get(e);if(h)return h==t;i|=1,s.set(e,t);var v=Ve(u(e),u(t),r,o,i,s);return s.delete(e),v;case b:if(be)return be.call(e)==be.call(t)}return!1}(e,t,O,n,r,o,u);if(!(2&o)){var C=E&&Z.call(e,"__wrapped__"),I=A&&Z.call(t,"__wrapped__");if(C||I){var N=C?e.value():e,P=I?t.value():t;return u||(u=new Ee),n(N,P,r,o,u)}}if(!T)return!1;return u||(u=new Ee),function(e,t,n,r,o,i){var s=2&o,a=ut(e),c=a.length,l=ut(t),u=l.length;if(c!=u&&!s)return!1;var d=c;for(;d--;){var f=a[d];if(!(s?f in t:Z.call(t,f)))return!1}var p=i.get(e);if(p&&i.get(t))return p==t;var h=!0;i.set(e,t),i.set(t,e);var m=s;for(;++d<c;){var g=e[f=a[d]],y=t[f];if(r)var b=s?r(y,g,f,t,e,i):r(g,y,f,e,t,i);if(!(void 0===b?g===y||n(g,y,r,o,i):b)){h=!1;break}m||(m="constructor"==f)}if(h&&!m){var v=e.constructor,w=t.constructor;v==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(h=!1)}return i.delete(e),i.delete(t),h}(e,t,n,r,o,u)}(e,t,_e,n,r,o))}function Me(e){return!(!st(e)||function(e){return!!X&&X in e}(e))&&(ot(e)||$(e)?ee:C).test(Ke(e))}function De(e){return"function"==typeof e?e:null==e?dt:"object"==typeof e?nt(e)?function(e,t){if(Ue(e)&&ze(t))return qe(Ye(e),t);return function(n){var r=function(e,t,n){var r=null==e?void 0:ke(e,t);return void 0===r?n:r}(n,e);return void 0===r&&r===t?function(e,t){return null!=e&&function(e,t,n){t=Ue(t,e)?[t]:Fe(t);var r,o=-1,i=t.length;for(;++o<i;){var s=Ye(t[o]);if(!(r=null!=e&&n(e,s)))break;e=e[s]}if(r)return r;i=e?e.length:0;return!!i&&it(i)&&We(s,i)&&(nt(e)||tt(e))}(e,t,Re)}(n,e):_e(t,r,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){var t=ut(e),n=t.length;for(;n--;){var r=t[n],o=e[r];t[n]=[r,o,ze(o)]}return t}(e);if(1==t.length&&t[0][2])return qe(t[0][0],t[0][1]);return function(n){return n===e||function(e,t,n,r){var o=n.length,i=o,s=!r;if(null==e)return!i;for(e=Object(e);o--;){var a=n[o];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){var c=(a=n[o])[0],l=e[c],u=a[1];if(s&&a[2]){if(void 0===l&&!(c in e))return!1}else{var d=new Ee;if(r)var f=r(l,u,c,e,t,d);if(!(void 0===f?_e(u,l,r,3,d):f))return!1}}return!0}(n,e,t)}}(e):Ue(t=e)?(n=Ye(t),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return ke(t,e)}}(t);var t,n}function Le(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||Y,t!==r)return ie(e);var t,n,r,o=[];for(var i in Object(e))Z.call(e,i)&&"constructor"!=i&&o.push(i);return o}function Fe(e){return nt(e)?e:Ge(e)}function Ve(e,t,n,r,o,i){var s=2&o,a=e.length,c=t.length;if(a!=c&&!(s&&c>a))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var u=-1,d=!0,f=1&o?new xe:void 0;for(i.set(e,t),i.set(t,e);++u<a;){var p=e[u],h=t[u];if(r)var m=s?r(h,p,u,t,e,i):r(p,h,u,e,t,i);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!V(t,function(e,t){if(!f.has(t)&&(p===e||n(p,e,r,o,i)))return f.add(t)})){d=!1;break}}else if(p!==h&&!n(p,h,r,o,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function $e(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Be(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Me(n)?n:void 0}var He=function(e){return Q.call(e)};function We(e,t){return!!(t=t??o)&&("number"==typeof e||I.test(e))&&e>-1&&e%1==0&&e<t}function Ue(e,t){if(nt(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ct(e))||(x.test(e)||!O.test(e)||null!=t&&e in Object(t))}function ze(e){return e==e&&!st(e)}function qe(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}(se&&He(new se(new ArrayBuffer(1)))!=S||ae&&He(new ae)!=d||ce&&He(ce.resolve())!=h||le&&He(new le)!=g||ue&&He(new ue)!=v)&&(He=function(e){var t=Q.call(e),n=t==p?e.constructor:void 0,r=n?Ke(n):void 0;if(r)switch(r){case fe:return S;case pe:return d;case he:return h;case me:return g;case ge:return v}return t});var Ge=Qe(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(ct(e))return ve?ve.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return E.test(e)&&n.push(""),e.replace(A,function(e,t,r,o){n.push(r?o.replace(T,"$1"):t||e)}),n});function Ye(e){if("string"==typeof e||ct(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ke(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var Xe,Je,Ze=(Xe=function(e,t,n){Z.call(e,n)?e[n].push(t):e[n]=[t]},function(e,t){var n=nt(e)?F:Ce,r=Je?Je():{};return n(e,Xe,De(t),r)});function Qe(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s),s};return n.cache=new(Qe.Cache||Oe),n}function et(e,t){return e===t||e!=e&&t!=t}function tt(e){return function(e){return at(e)&&rt(e)}(e)&&Z.call(e,"callee")&&(!re.call(e,"callee")||Q.call(e)==i)}Qe.Cache=Oe;var nt=Array.isArray;function rt(e){return null!=e&&it(e.length)&&!ot(e)}function ot(e){var t=st(e)?Q.call(e):"";return t==u||"[object GeneratorFunction]"==t}function it(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function st(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function at(e){return!!e&&"object"==typeof e}function ct(e){return"symbol"==typeof e||at(e)&&Q.call(e)==b}var lt=L?function(e){return function(t){return e(t)}}(L):function(e){return at(e)&&it(e.length)&&!!N[Q.call(e)]};function ut(e){return rt(e)?Ae(e):Le(e)}function dt(e){return e}e.exports=Ze},40093(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=y.prototype;var w=v.prototype=new b;w.constructor=v,m(w,y.prototype),w.isPureReactComponent=!0;var S=Array.isArray,O=Object.prototype.hasOwnProperty,x={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,r){var o,i={},s=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)O.call(t,o)&&!E.hasOwnProperty(o)&&(i[o]=t[o]);var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(o in c=e.defaultProps)void 0===i[o]&&(i[o]=c[o]);return{$$typeof:n,type:e,key:s,ref:a,props:i,_owner:x.current}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function I(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function N(e,t,o,i,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var c=!1;if(null===e)c=!0;else switch(a){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case r:c=!0}}if(c)return s=s(c=e),e=""===i?"."+I(c,0):i,S(s)?(o="",null!=e&&(o=e.replace(C,"$&/")+"/"),N(s,t,o,"",function(e){return e})):null!=s&&(T(s)&&(s=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,o+(!s.key||c&&c.key===s.key?"":(""+s.key).replace(C,"$&/")+"/")+e)),t.push(s)),1;if(c=0,i=""===i?".":i+":",S(e))for(var l=0;l<e.length;l++){var u=i+I(a=e[l],l);c+=N(a,t,o,u,s)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),l=0;!(a=e.next()).done;)c+=N(a=a.value,t,o,u=i+I(a,l++),s);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return c}function P(e,t,n){if(null==e)return e;var r=[],o=0;return N(e,r,"","",function(e){return t.call(n,e,o++)}),r}function j(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var k={current:null},R={transition:null};function _(){throw Error("act(...) is not supported in production builds of React.")}},7378(e,t,n){"use strict";n(40093)},73258(e){!function(t){"use strict";var n=function(e){var t={browser:{fullName:"",name:"",version:"",majorVersion:null,minorVersion:null,patchVersion:null,engine:""},os:{fullName:"",name:"",version:"",versionName:"",versionAltNames:[],majorVersion:null,minorVersion:null,patchVersion:null},features:{bw:!1,mobile:!1,tv:!1,proxy:!1}},n={browser:[{test:["SailfishBrowser"],browser:{fullName:"Sailfish Browser",name:"sailfishbrowser",engine:"gecko",$version:{search:"SailfishBrowser/"}},features:{mobile:!0}},{test:["Edge/"],browser:{fullName:"Edge",name:"edge",engine:"edgehtml",$version:{search:"Edge/"}}},{test:["Edg/"],browser:{fullName:"Edge",name:"edge",engine:"webkit",$version:{search:"Edg/"}}},{test:["MSIE"],browser:{fullName:"Internet Explorer",name:"ie",engine:"trident",$version:{search:"MSIE "}}},{test:["Trident"],browser:{fullName:"Internet Explorer",name:"ie",engine:"trident",$version:{search:"rv:"}}},{test:["OPR/"],browser:{fullName:"Opera",name:"opera",engine:"webkit",$version:{search:"OPR/"}}},{test:["UCBrowser"],browser:{fullName:"UC Browser",name:"ucbrowser",engine:"webkit",$version:{search:"UCBrowser/"}}},{test:["YaBrowser"],browser:{fullName:"Yandex Browser",name:"yabrowser",engine:"webkit",$version:{search:"YaBrowser/"}}},{test:["Chrome"],browser:{fullName:"Chrome",name:"chrome",engine:"webkit",$version:{search:"Chrome/"}}},{test:["Firefox"],browser:{fullName:"Firefox",name:"firefox",engine:"gecko",$version:{search:"Firefox/"}}},{test:["NokiaBrowser"],browser:{fullName:"Nokia Browser",name:"nokiabrowser",engine:"webkit",$version:{search:"NokiaBrowser/"}},features:{mobile:!0}},{test:["Opera Mini","Presto"],browser:{fullName:"Opera Mini",name:"operamini",engine:"presto",$version:{search:"Version/"}},features:{mobile:!0,proxy:!0}},{test:["Opera Mini","WebKit"],browser:{fullName:"Opera Mini",name:"operamini",engine:"webkit"},features:{mobile:!0,proxy:!0}},{test:["Opera"],browser:{fullName:"Opera",name:"opera",engine:"presto",$version:{search:"Version/"}}},{test:["OviBrowser"],browser:{fullName:"Ovi Browser",name:"ovi",engine:"gecko",$version:{search:"OviBrowser/"}},features:{mobile:!0,proxy:!0}},{test:["CriOS/"],browser:{fullName:"Chrome",name:"chrome",engine:"webkit",$version:{search:"CriOS/"}}},{test:["Coast/"],browser:{fullName:"Opera Coast",name:"coast",engine:"webkit",$version:{search:"Coast/"}}},{test:["Safari","Version/",/(iPhone|iPod|iPad|Macintosh|Windows)/],browser:{fullName:"Safari",name:"safari",engine:"webkit",$version:{search:"Version/"}}},{test:["WebKit"],browser:{engine:"webkit"}},{test:["Gecko/"],browser:{engine:"gecko"}}],os:[{test:["Sailfish"],os:{fullName:"Sailfish OS",name:"sailfish"},features:{mobile:!0}},{test:["Windows Phone"],os:{fullName:"Windows Phone",name:"winphone",$version:{search:"Windows Phone "}},features:{mobile:!0}},{test:["Windows"],os:{fullName:"Windows",name:"win",$version:{search:"Windows NT ",names:{"10.0":"10",6.3:"8.1",6.2:"8",6.1:"7","6.0":"Vista",5.2:"XP",5.1:"XP",5.01:"2000","5.0":"2000"},altNames:{5.2:["Server 2003"]}}}},{test:["Macintosh","OS X"],os:{fullName:"macOS",name:"osx",$version:{search:/OS X /,names:{10.6:"Snow Leopard",10.7:"Lion",10.8:"Mountain Lion",10.9:"Mavericks","10.10":"Yosemite",10.11:"El Capitan",10.12:"Sierra",10.13:"High Sierra",10.14:"Mojave",10.15:"Catalina","11.0":"Big Sur"}}}},{test:["Ubuntu"],os:{fullName:"Ubuntu",name:"ubuntu"}},{test:["Fedora"],os:{fullName:"Fedora",name:"fedora",$version:{search:"Fedora/",names:{20:"Heisenbug",19:"Schrödinger's Cat",18:"Spherical Cow",17:"Beefy Miracle",16:"Verne",15:"Lovelock",14:"Laughlin",13:"Goddard",12:"Constantine",11:"Leonidas",10:"Cambridge",9:"Sulphur",8:"Werewolf",7:"Moonshine"}}}},{test:["Kindle"],os:{fullName:"Kindle",name:"kindle",$version:{search:"Kindle/"}},features:{bw:!0,mobile:!0}},{test:[/(BlackBerry|BB\d+)/],os:{fullName:"BlackBerry",name:"blackberry",$version:{search:"Version/"}},features:{mobile:!0}},{test:["Symbian"],os:{fullName:"Symbian",name:"symbian"},features:{mobile:!0}},{test:["Series40"],os:{fullName:"Symbian",name:"symbian"},features:{mobile:!0}},{test:["PlayStation Vita"],os:{fullName:"PlayStation Vita",name:"psvita"},features:{mobile:!0}},{test:[/playstation/i],os:{fullName:"PlayStation",name:"playstation",$version:{search:/playstation\s/i}},features:{tv:!0}},{test:["Nintendo DSi"],os:{fullName:"Nintendo DSi",name:"dsi"},features:{mobile:!0}},{test:["New Nintendo 3DS"],os:{fullName:"New Nintendo 3DS",name:"n3ds"},browser:{engine:"webkit"},features:{mobile:!0}},{test:["Nintendo 3DS"],os:{fullName:"Nintendo 3DS",name:"3ds"},browser:{engine:"webkit"},features:{mobile:!0}},{test:["Viera"],os:{fullName:"Viera",name:"viera"},browser:{engine:"webkit"},features:{tv:!0}},{test:["SonyDTV"],features:{tv:!0}},{test:["Android"],os:{fullName:"Android",name:"android",$version:{search:"Android "}},features:{mobile:!0}},{test:[/iPhone|iPod|iPad/],os:{fullName:"iOS",name:"ios",$version:{search:"OS "}},features:{mobile:!0}}],features:[{test:[/mobile/i],features:{mobile:!0}},{test:[/smart-{0,1}tv/i],features:{tv:!0}}]};if(!e)return t;function r(t){for(var n=0;n<t.length;n++){for(var r=!0,i=0;i<t[n].test.length;i++)if(t[n].test[i]instanceof RegExp){if(!t[n].test[i].test(e)){r=!1;break}}else if(-1==e.indexOf(t[n].test[i])){r=!1;break}if(r){o(t[n]);break}}}function o(e){for(var r in n)if(n.hasOwnProperty(r)&&e[r]){if(e[r].$version){var o=i(e[r].$version.search);if(o){var s=o.split("."),a=e[r].$version.names,c=e[r].$version.altNames;if(e[r].version=o,s[0]&&(e[r].majorVersion=parseInt(s[0])),s[1]&&(e[r].minorVersion=parseInt(s[1])),s[2]&&(e[r].patchVersion=parseInt(s[2])),a)for(var l,u=[],d=0;d<s.length;d++)u.push(s[d]),a[l=u.join(".")]&&(e[r].versionName=a[l]),c&&c[l]&&(e[r].versionAltNames=c[l])}}for(var f in e[r])e[r].hasOwnProperty(f)&&"$"!==f[0]&&(t[r][f]=e[r][f])}}function i(t){var n;if(t instanceof RegExp){if(!(n=(e.match(t)||[])[0]))return}else n=t;var r=e.indexOf(n);if(-1!=r){var o=e.substring(r+n.length),i=/^(\d+(\.|_)){0,2}\d+/.exec(o);if(i)return i[0].replace(/_/g,".")}}return function(){for(var e in n)r(n[e])}(),t};e.exports?e.exports=n:t.Sniffer=n}(this)},68120(e,t,n){var r=n(31298);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()},18726(e,t,n){var r=n(17940);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()},10632(e,t,n){var r=n(91126);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()},72450(e){e.exports=function(e){var t={fn:[],obj:[]};return e&&"object"==typeof e&&Object.keys(e).reduce(function(t,n){return t["function"==typeof e[n]?"fn":"obj"].push(n),t},t),function(n){var r={};return e===n||!!n&&"object"==typeof n&&t.obj.every(function(t){return e[t]===n[t]})&&t.fn.every(function(t){return t in n&&e[t](n[t],t,n,r)})}}},76058(e,t,n){"use strict";n.d(t,{wZ:()=>u});var r=n(68120),o=n.n(r),i=n(10632),s=n.n(i),a=n(18726),c=n.n(a);const l=document.createElement("template");l.innerHTML=`\n <style>\n ${c()}\n ${o()}\n ${s()}\n </style>\n <style id="position"></style>\n <div id="axe-highlight" class="theme--high-contrast">\n <div id="margin">\n <div id="border">\n <div id="content"></div>\n </div>\n </div>\n </div>\n <div id="tooltip" style="display: none"></div>\n`;const u="axe-highlighter";const d=new class{constructor(){this.target=new EventTarget}on(e,t){this.target.addEventListener(e,t)}remove(e,t){this.target.removeEventListener(e,t)}emit(e){this.target.dispatchEvent(new CustomEvent(e))}};!function(e,t){let n}(d.emit.bind(d),50);new Map},43955(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(10884);async function o(){await(0,r.A)("latest");const e=globalThis.browser.runtime.getURL("highlighter.js");return await import(e)}},55484(e){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyOSIgaGVpZ2h0PSIyOSI+PGNpcmNsZSBjeD0iMTQuNSIgY3k9IjE0LjUiIHI9IjEzLjUiIGZpbGw9IiMwYjE0MWMiIHN0cm9rZT0iI2Q0ZGRlMCIgc3Ryb2tlLXdpZHRoPSIyIi8+PHBhdGggZmlsbD0iIzc2Y2ZlOCIgZD0iTTYuMjMgMTIuNThoLjkydjUuNTFoLS45MmEuOTEuOTEgMCAwIDEtLjkyLS45MVYxMy41YS45Mi45MiAwIDAgMSAuOTItLjkybTE0LjctMS4zOFYxOWExLjg0IDEuODQgMCAwIDEtMS44NCAxLjg0SDkuOTFBMS44NCAxLjg0IDAgMCAxIDguMDcgMTl2LTcuOGEyLjI5IDIuMjkgMCAwIDEgMi4yOS0yLjI5aDMuMjJWNy4wN2EuOTIuOTIgMCAwIDEgMS44NCAwdjEuODRoMy4yMmEyLjI5IDIuMjkgMCAwIDEgMi4yOSAyLjI5bS04IDIuM2ExLjE1IDEuMTUgMCAxIDAtMS4xNSAxLjE1IDEuMTUgMS4xNSAwIDAgMCAxLjE1LTEuMTVtLS4yMyAzLjY4aC0xLjg4di45MWgxLjg0em0yLjc2IDBoLTEuODh2LjkxaDEuODR6bTMtMy42OGExLjE1IDEuMTUgMCAxIDAtMS4xNSAxLjE1IDEuMTYgMS4xNiAwIDAgMCAxLjE1LTEuMTVtLS4yMyAzLjY4aC0xLjg5di45MWgxLjg0em01LjUxLTMuNjh2My42OGEuOTIuOTIgMCAwIDEtLjkyLjkxaC0uOTJ2LTUuNTFoLjkyYS45Mi45MiAwIDAgMSAuOTIuOTIiLz48L3N2Zz4="},3847(){},29645(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};function r(e){return function(t,r){var o;return(o={})[t]=function(t){return n({type:e},t)},o[r]=function(t){return"object"==typeof t&&null!==t&&t.type===e},o}}Object.defineProperty(t,"__esModule",{value:!0}),t.ast=void 0,t.ast=n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n({},r("Selector")("selector","isSelector")),r("Rule")("rule","isRule")),r("TagName")("tagName","isTagName")),r("Id")("id","isId")),r("ClassName")("className","isClassName")),r("WildcardTag")("wildcardTag","isWildcardTag")),r("NamespaceName")("namespaceName","isNamespaceName")),r("WildcardNamespace")("wildcardNamespace","isWildcardNamespace")),r("NoNamespace")("noNamespace","isNoNamespace")),r("Attribute")("attribute","isAttribute")),r("PseudoClass")("pseudoClass","isPseudoClass")),r("PseudoElement")("pseudoElement","isPseudoElement")),r("String")("string","isString")),r("Formula")("formula","isFormula")),r("FormulaOfSelector")("formulaOfSelector","isFormulaOfSelector")),r("Substitution")("substitution","isSubstitution"))},59125(e,t,n){"use strict";t.ast=t.render=t.createParser=void 0;var r=n(77578);Object.defineProperty(t,"createParser",{enumerable:!0,get:function(){return r.createParser}});var o=n(7221);Object.defineProperty(t,"render",{enumerable:!0,get:function(){return o.render}});var i=n(29645);Object.defineProperty(t,"ast",{enumerable:!0,get:function(){return i.ast}})},23213(e,t){"use strict";function n(e,t){for(var n=t,r=0;r<e.length;r++){var o=r===e.length-1,i=e.charAt(r),s=n[i]||(n[i]={chars:{}});o&&(s.self=e),n=s.chars}}Object.defineProperty(t,"__esModule",{value:!0}),t.createRegularIndex=t.createMulticharIndex=t.emptyRegularIndex=t.emptyMulticharIndex=void 0,t.emptyMulticharIndex={},t.emptyRegularIndex={},t.createMulticharIndex=function(e){if(0===e.length)return t.emptyMulticharIndex;for(var r={},o=0,i=e;o<i.length;o++){n(i[o],r)}return r},t.createRegularIndex=function(e){if(0===e.length)return t.emptyRegularIndex;for(var n={},r=0,o=e;r<o.length;r++){n[o[r]]=!0}return n}},77578(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createParser=void 0;var r=n(23213),o=n(24843),i=n(66869),s=n(76528),a="css-selector-parser parse error: ";t.createParser=function(e){void 0===e&&(e={});var t=e.syntax,n=void 0===t?"latest":t,c=e.substitutes,l=e.strict,u=void 0===l||l,d=e.modules,f="object"==typeof n?n:i.cssSyntaxDefinitions[n];if(f.baseSyntax&&(f=(0,i.extendSyntaxDefinition)(i.cssSyntaxDefinitions[f.baseSyntax],f)),f.modules&&f.modules.length>0)for(var p=0,h=f.modules;p<h.length;p++){var m=h[p];(b=i.cssModules[m])&&(f=(0,i.extendSyntaxDefinition)(b,f))}if(d&&d.length>0)for(var g=0,y=d;g<y.length;g++){var b,v=y[g];(b=i.cssModules[v])&&(f=(0,i.extendSyntaxDefinition)(b,f))}var w=f.tag?[!0,Boolean((0,i.getXmlOptions)(f.tag).wildcard)]:[!1,!1],S=w[0],O=w[1],x=Boolean(f.ids),E=Boolean(f.classNames),A=Boolean(f.namespace),T=f.namespace&&(!0===f.namespace||!0===f.namespace.wildcard);if(A&&!S)throw new Error("".concat(a,"Namespaces cannot be enabled while tags are disabled."));var C=Boolean(c),I=f.combinators?(0,r.createMulticharIndex)(f.combinators):r.emptyMulticharIndex,N=f.attributes?[!0,f.attributes.operators?(0,r.createMulticharIndex)(f.attributes.operators):r.emptyMulticharIndex,f.attributes.caseSensitivityModifiers?(0,r.createRegularIndex)(f.attributes.caseSensitivityModifiers):r.emptyRegularIndex,"accept"===f.attributes.unknownCaseSensitivityModifiers]:[!1,r.emptyMulticharIndex,r.emptyRegularIndex,!1],P=N[0],j=N[1],k=N[2],R=N[3],_=R||Object.keys(k).length>0,M=f.pseudoClasses?[!0,f.pseudoClasses.definitions?(0,o.calculatePseudoSignatures)(f.pseudoClasses.definitions):o.emptyPseudoSignatures,"accept"===f.pseudoClasses.unknown]:[!1,o.emptyPseudoSignatures,!1],D=M[0],L=M[1],F=M[2],V=f.pseudoElements?[!0,"singleColon"===f.pseudoElements.notation||"both"===f.pseudoElements.notation,!f.pseudoElements.notation||"doubleColon"===f.pseudoElements.notation||"both"===f.pseudoElements.notation,f.pseudoElements.definitions?(0,o.calculatePseudoSignatures)(Array.isArray(f.pseudoElements.definitions)?{NoArgument:f.pseudoElements.definitions}:f.pseudoElements.definitions):o.emptyPseudoSignatures,"accept"===f.pseudoElements.unknown]:[!1,!1,!1,o.emptyPseudoSignatures,!1],$=V[0],B=V[1],H=V[2],W=V[3],U=V[4],z="",q=z.length,G=0,Y="",K=function(e){return Y===e},X=function(){return K("*")||(0,s.isIdentStart)(Y)},J=function(e){G=e,Y=z.charAt(G)},Z=function(){G++,Y=z.charAt(G)},Q=function(){var e=Y;return G++,Y=z.charAt(G),e};function ee(e){var t=Math.min(q-1,G),n=new Error("".concat(a).concat(e," Pos: ").concat(t,"."));throw n.position=t,n.name="ParserError",n}function te(e,t){if(!e)return ee(t)}var ne=function(){te(G<q,"Unexpected end of input.")},re=function(){return G>=q},oe=function(e){te(G<q,'Expected "'.concat(e,'" but end of input reached.')),te(Y===e,'Expected "'.concat(e,'" but "').concat(Y,'" found.')),G++,Y=z.charAt(G)};function ie(e){var t=se(e,G);if(t)return G+=t.length,Y=z.charAt(G),t}function se(e,t){var n=e[z.charAt(t)];if(n){var r=se(n.chars,t+1);if(r)return r;if(n.self)return n.self}}function ae(){for(var e=Q(),t=1;(0,s.isHex)(Y)&&t<s.maxHexLength;)e+=Q(),t++;return function(){if(" "===Y||"\t"===Y||"\f"===Y||"\n"===Y)return void Z();"\r"===Y&&Z();"\n"===Y&&Z()}(),String.fromCharCode(parseInt(e,16))}function ce(e){var t="";for(oe(e);G<q;){if(K(e))return Z(),t;K("\\")?(Z(),K(e)?(t+=e,Z()):"\n"===Y||"\f"===Y?Z():"\r"===Y?(Z(),K("\n")&&Z()):(0,s.isHex)(Y)?t+=ae():(t+=Y,Z())):(t+=Y,Z())}return t}function le(){if(!(0,s.isIdentStart)(Y))return null;for(var e="";K("-");)e+=Y,Z();for("-"!==e||(0,s.isIdent)(Y)||K("\\")||ee("Identifiers cannot consist of a single hyphen."),u&&e.length>=2&&ee("Identifiers cannot start with two hyphens with strict mode on."),s.digitsChars[Y]&&ee("Identifiers cannot start with hyphens followed by digits.");G<q;)if((0,s.isIdent)(Y))e+=Q();else{if(!K("\\"))break;Z(),ne(),(0,s.isHex)(Y)?e+=ae():e+=Q()}return e}function ue(){for(var e="";G<q&&!K(")");)if(K("\\")){if(Z(),re()&&!u)return(e+"\\").trim();ne(),(0,s.isHex)(Y)?e+=ae():e+=Q()}else e+=Q();return e.trim()}function de(){for(;s.whitespaceChars[Y];)Z()}function fe(e){void 0===e&&(e=!1),de();for(var t=[ve(e)];K(",");)Z(),de(),t.push(ve(e));return{type:"Selector",rules:t}}function pe(){var e;if(oe("["),de(),K("|")){te(A,"Namespaces are not enabled."),Z();var t=le();te(t,"Expected attribute name."),e={type:"Attribute",name:t,namespace:{type:"NoNamespace"}}}else if(K("*")){te(A,"Namespaces are not enabled."),te(T,"Wildcard namespace is not enabled."),Z(),oe("|");var n=le();te(n,"Expected attribute name."),e={type:"Attribute",name:n,namespace:{type:"WildcardNamespace"}}}else{var r=le();if(te(r,"Expected attribute name."),e={type:"Attribute",name:r},K("|")){var o=G;if(Z(),(0,s.isIdentStart)(Y)){te(A,"Namespaces are not enabled.");var i=le();te(i,"Expected attribute name."),e={type:"Attribute",name:i,namespace:{type:"NamespaceName",name:r}}}else J(o)}}if(te(e.name,"Expected attribute name."),de(),re()&&!u)return e;if(K("]"))Z();else{if(e.operator=ie(j),te(e.operator,"Expected a valid attribute selector operator."),de(),ne(),s.quoteChars[Y])e.value={type:"String",value:ce(Y)};else if(C&&K("$")){Z();var a=le();te(a,"Expected substitute name."),e.value={type:"Substitution",name:a}}else{var c=le();te(c,"Expected attribute value."),e.value={type:"String",value:c}}if(de(),re()&&!u)return e;if(!K("]")){var l=le();if(te(l,"Expected end of attribute selector."),e.caseSensitivityModifier=l,te(_,"Attribute case sensitivity modifiers are not enabled."),te(R||k[e.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),de(),re()&&!u)return e}oe("]")}return e}function he(){for(var e="";s.digitsChars[Y];)e+=Q();return te(""!==e,"Formula parse error."),parseInt(e)}var me=function(){return K("-")||K("+")||s.digitsChars[Y]};function ge(e,t,n){var r;if(K("(")){if(Z(),de(),C&&K("$")){Z();var o=le();te(o,"Expected substitute name."),r={type:"Substitution",name:o}}else if("String"===n.type)te((r={type:"String",value:ue()}).value,"Expected ".concat(t," argument value."));else if("Selector"===n.type)r=fe(!0);else{if("Formula"!==n.type)return ee("Invalid ".concat(t," signature."));var i=function(){if(K("e")||K("o")){var e=le();if("even"===e)return de(),[2,0];if("odd"===e)return de(),[2,1]}var t,n=null,r=1;if(K("-")&&(Z(),r=-1),me()&&(K("+")&&Z(),n=he(),!K("\\")&&!K("n")))return[0,n*r];if(null===n&&(n=1),n*=r,K("\\")?(Z(),t=(0,s.isHex)(Y)?ae():Q()):t=Q(),te("n"===t,'Formula parse error: expected "n".'),de(),K("+")||K("-")){var o=K("+")?1:-1;return Z(),de(),[n,o*he()]}return[n,0]}(),a=i[0],c=i[1];r={type:"Formula",a,b:c},n.ofSelector&&(de(),(K("o")||K("\\"))&&(te("of"===le(),"Formula of selector parse error."),de(),r={type:"FormulaOfSelector",a,b:c,selector:ve()}))}if(de(),re()&&!u)return r;oe(")")}else te(n.optional,"Argument is required for ".concat(t,' "').concat(e,'".'));return r}function ye(){if(K("*"))return te(O,"Wildcard tag name is not enabled."),Z(),{type:"WildcardTag"};if((0,s.isIdentStart)(Y)){te(S,"Tag names are not enabled.");var e=le();return te(e,"Expected tag name."),{type:"TagName",name:e}}return ee("Expected tag name.")}function be(){if(K("*")){var e=G;return Z(),K("|")?(Z(),X()?(te(A,"Namespaces are not enabled."),te(T,"Wildcard namespace is not enabled."),(n=ye()).namespace={type:"WildcardNamespace"},n):(J(e),ye())):(J(e),ye())}if(K("|"))return te(A,"Namespaces are not enabled."),Z(),(n=ye()).namespace={type:"NoNamespace"},n;if((0,s.isIdentStart)(Y)){var t=le();if(te(t,"Expected tag name."),!K("|"))return te(S,"Tag names are not enabled."),{type:"TagName",name:t};var n;e=G;return Z(),X()?(te(A,"Namespaces are not enabled."),(n=ye()).namespace={type:"NamespaceName",name:t},n):(J(e),{type:"TagName",name:t})}return ee("Expected tag name.")}function ve(e){var t,n;void 0===e&&(e=!1);var r={type:"Rule",items:[]};e&&((y=ie(I))&&(r.combinator=y,de()));for(;G<q;)if(X())te(0===r.items.length,"Unexpected tag/namespace start."),r.items.push(be());else if(K("|")){var s=G;if(Z(),!X()){J(s);break}te(0===r.items.length,"Unexpected tag/namespace start."),J(s),r.items.push(be())}else if(K(".")){te(E,"Class names are not enabled."),Z();var a=le();te(a,"Expected class name."),r.items.push({type:"ClassName",name:a})}else if(K("#")){te(x,"IDs are not enabled."),Z();var c=le();te(c,"Expected ID name."),r.items.push({type:"Id",name:c})}else if(K("["))te(P,"Attributes are not enabled."),r.items.push(pe());else{if(!K(":"))break;var l=!1;Z(),K(":")&&(te($,"Pseudo elements are not enabled."),te(H,"Pseudo elements double colon notation is not enabled."),l=!0,Z());var u=le();if(te(l||u,"Expected pseudo-class name."),te(!l||u,"Expected pseudo-element name."),te(u,"Expected pseudo-class name."),!l||U||Object.prototype.hasOwnProperty.call(W,u));else{var d=i.pseudoLocationIndex.pseudoElements[u],f='Unknown pseudo-element "'.concat(u,'"');d&&d.length>0&&(f+=". It is defined in: ".concat(d.join(", "))),ee(f+".")}if($&&(l||!l&&B&&Object.prototype.hasOwnProperty.call(W,u))){var p={type:"PseudoElement",name:u};(m=ge(u,"pseudo-element",h=null!==(t=W[u])&&void 0!==t?t:U&&o.defaultPseudoSignature))&&(te("Formula"!==m.type&&"FormulaOfSelector"!==m.type,"Pseudo-elements cannot have formula argument."),p.argument=m),r.items.push(p)}else{var h;if(te(D,"Pseudo-classes are not enabled."),h=null!==(n=L[u])&&void 0!==n?n:F&&o.defaultPseudoSignature);else{d=i.pseudoLocationIndex.pseudoClasses[u],f='Unknown pseudo-class: "'.concat(u,'"');d&&d.length>0&&(f+=". It is defined in: ".concat(d.join(", "))),ee(f+".")}var m,g={type:"PseudoClass",name:u};(m=ge(u,"pseudo-class",h))&&(g.argument=m),r.items.push(g)}}if(0===r.items.length)return re()?ee("Expected rule but end of input reached."):ee('Expected rule but "'.concat(Y,'" found.'));if(de(),!re()&&!K(",")&&!K(")")){var y=ie(I);de(),r.nestedRule=ve(),r.nestedRule.combinator=y}return r}return function(e){if("string"!=typeof e)throw new Error("".concat(a,"Expected string input."));return q=(z=e).length,G=0,Y=z.charAt(0),fe()}}},24843(e,t){"use strict";function n(e){var t={type:"NoArgument",optional:!1};function n(e){if(t.type&&t.type!==e&&"NoArgument"!==t.type)throw new Error('Conflicting pseudo-class argument type: "'.concat(t.type,'" vs "').concat(e,'".'));t.type=e}for(var r=0,o=e;r<o.length;r++){var i=o[r];"NoArgument"===i&&(t.optional=!0),"Formula"===i&&n("Formula"),"FormulaOfSelector"===i&&(n("Formula"),t.ofSelector=!0),"String"===i&&n("String"),"Selector"===i&&n("Selector")}return t}function r(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var o=r[n],i=e[o];if(i)for(var s=0,a=i;s<a.length;s++){var c=a[s];(t[c]||(t[c]=[])).push(o)}}return t}Object.defineProperty(t,"__esModule",{value:!0}),t.calculatePseudoSignatures=t.inverseCategories=t.defaultPseudoSignature=t.emptyPseudoSignatures=void 0,t.emptyPseudoSignatures={},t.defaultPseudoSignature={type:"String",optional:!0},t.inverseCategories=r,t.calculatePseudoSignatures=function(e){for(var t=r(e),o={},i=0,s=Object.keys(t);i<s.length;i++){var a=s[i],c=t[a];c&&(o[a]=n(c))}return o}},7221(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.render=void 0;var r=n(76528),o="css-selector-parser render error: ";function i(e){if("WildcardNamespace"===e.type)return"*|";if("NamespaceName"===e.type)return"".concat((0,r.escapeIdentifier)(e.name),"|");if("NoNamespace"===e.type)return"|";throw new Error("".concat(o,"Unknown namespace type: ").concat(e.type,"."))}function s(e,t){if(e){var n="".concat(1===e?"":-1===e?"-":e,"n");return t&&(n+="".concat(t>0?"+":"").concat(t)),n}return String(t)}t.render=function e(t){if("Selector"===t.type)return t.rules.map(e).join(", ");if("Rule"===t.type){var n="",a=t.items,c=t.combinator,l=t.nestedRule;c&&(n+="".concat(c," "));for(var u=0,d=a;u<d.length;u++){n+=e(d[u])}return l&&(n+=" ".concat(e(l))),n}if("TagName"===t.type||"WildcardTag"===t.type){n="";return(p=t.namespace)&&(n+=i(p)),"TagName"===t.type?n+=(0,r.escapeIdentifier)(t.name):"WildcardTag"===t.type&&(n+="*"),n}if("Id"===t.type)return"#".concat((0,r.escapeIdentifier)(t.name));if("ClassName"===t.type)return".".concat((0,r.escapeIdentifier)(t.name));if("Attribute"===t.type){var f=t.name,p=t.namespace,h=t.operator,m=t.value,g=t.caseSensitivityModifier;n="[";if(p&&(n+=i(p)),n+=(0,r.escapeIdentifier)(f),h&&m){if(n+=h,"String"===m.type)n+=(0,r.escapeString)(m.value);else{if("Substitution"!==m.type)throw new Error("Unknown attribute value type: ".concat(m.type,"."));n+=(w=m,"$".concat((0,r.escapeIdentifier)(w.name)))}g&&(n+=" ".concat((0,r.escapeIdentifier)(g)))}return n+="]"}if("PseudoClass"===t.type){var y=t.name,b=t.argument;n=":".concat((0,r.escapeIdentifier)(y));return b&&(n+="(".concat("String"===b.type?(0,r.escapeIdentifier)(b.value):e(b),")")),n}if("PseudoElement"===t.type){var v=t.name;b=t.argument,n="::".concat((0,r.escapeIdentifier)(v));return b&&(n+="(".concat("String"===b.type?(0,r.escapeIdentifier)(b.value):e(b),")")),n}if("String"===t.type)throw new Error("".concat(o,"String cannot be rendered outside of context."));if("Formula"===t.type)return s(t.a,t.b);if("FormulaOfSelector"===t.type)return s(t.a,t.b)+" of "+e(t.selector);if("Substitution"===t.type)return"$".concat((0,r.escapeIdentifier)(t.name));var w;throw new Error("Unknown type specified to render method: ".concat(t.type,"."))}},66869(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.pseudoLocationIndex=t.buildPseudoLocationIndex=t.cssSyntaxDefinitions=t.cssModules=t.extendSyntaxDefinition=t.getXmlOptions=void 0;var r,o,i={},s={wildcard:!0};function a(e,t){return function(n,r){return!0===r?e:t(!0===n?e:n,r)}}function c(e){return function(t,r){if(!r||!t)return r;if("object"!=typeof r||null===r)throw new Error("Unexpected syntax definition extension type: ".concat(r,"."));for(var o=n({},t),i=0,s=Object.entries(r);i<s.length;i++){var a=s[i],c=a[0],l=a[1];if("latest"!==c){var u=e[c];o[c]=u(t[c],l)}}return o}}function l(e,t){return void 0!==t?t:e}function u(e,t){return t?e?e.concat(t):t:e}function d(e,t){if(!t)return e;if(!e)return t;for(var r=n({},e),o=0,i=Object.entries(t);o<i.length;o++){var s=i[o],a=s[0],c=s[1];if(c){var l=e[a];r[a]=l?l.concat(c):c}else delete r[a]}return r}t.getXmlOptions=function(e){return e?"boolean"==typeof e?s:e:i},t.extendSyntaxDefinition=function(e){return function(t,n){var r=e(t,n);if(!r)throw new Error("Syntax definition cannot be null or undefined.");return r}}(c({baseSyntax:l,modules:u,tag:a(s,c({wildcard:l})),ids:l,classNames:l,namespace:a(s,c({wildcard:l})),combinators:u,attributes:c({operators:u,caseSensitivityModifiers:u,unknownCaseSensitivityModifiers:l}),pseudoClasses:c({unknown:l,definitions:d}),pseudoElements:c({unknown:l,notation:l,definitions:(r=function(e){return Array.isArray(e)?{NoArgument:e}:e},o=d,function(e,t){return o(r(e),r(t))})})}));var f={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},p=(0,t.extendSyntaxDefinition)(f,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),h=(0,t.extendSyntaxDefinition)(p,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),m=(0,t.extendSyntaxDefinition)(h,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid","playing","paused","autofill","modal","fullscreen","picture-in-picture","defined","loading","popover-open"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has","state"]}},pseudoElements:{definitions:{NoArgument:["marker"]}}});t.cssModules={"css-position-1":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute"]}}},"css-position-2":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute","fixed"]}}},"css-position-3":{latest:!1,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static"]}}},"css-position-4":{latest:!0,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static","initial"]}}},"css-scoping-1":{latest:!0,pseudoClasses:{definitions:{NoArgument:["host","host-context"],Selector:["host","host-context"]}},pseudoElements:{definitions:{Selector:["slotted"]}}},"css-pseudo-4":{latest:!0,pseudoElements:{definitions:{NoArgument:["marker","selection","target-text","search-text","spelling-error","grammar-error","backdrop","file-selector-button","prefix","postfix","placeholder","details-content"],String:["highlight"]}}},"css-shadow-parts-1":{latest:!0,pseudoElements:{definitions:{String:["part"]}}}};var g=n(n({},m),{modules:Object.entries(t.cssModules).filter(function(e){return e[1].latest}).map(function(e){return e[0]})}),y=(0,t.extendSyntaxDefinition)(g,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}});function b(){for(var e={pseudoClasses:{},pseudoElements:{}},n=0,r=["css1","css2","css3","selectors-3","selectors-4"];n<r.length;n++){var o=r[n],i=t.cssSyntaxDefinitions[o];if(i.pseudoClasses&&"object"==typeof i.pseudoClasses)if(S=i.pseudoClasses.definitions)for(var s=0,a=Object.entries(S);s<a.length;s++)for(var c=0,l=a[s][1];c<l.length;c++){var u=l[c];e.pseudoClasses[u]||(e.pseudoClasses[u]=[]),e.pseudoClasses[u].includes(o)||e.pseudoClasses[u].push(o)}if(i.pseudoElements&&"object"==typeof i.pseudoElements)if(S=i.pseudoElements.definitions)if(Array.isArray(S))for(var d=0,f=S;d<f.length;d++){var p=f[d];e.pseudoElements[p]||(e.pseudoElements[p]=[]),e.pseudoElements[p].includes(o)||e.pseudoElements[p].push(o)}else for(var h=0,m=Object.values(S);h<m.length;h++)for(var g=0,y=m[h];g<y.length;g++){var b=y[g];e.pseudoElements[b]||(e.pseudoElements[b]=[]),e.pseudoElements[b].includes(o)||e.pseudoElements[b].push(o)}}for(var v=0,w=Object.entries(t.cssModules);v<w.length;v++){var S,O=w[v],x=O[0],E=O[1];if(E.pseudoClasses&&"object"==typeof E.pseudoClasses)if(S=E.pseudoClasses.definitions)for(var A=0,T=Object.values(S);A<T.length;A++)for(var C=0,I=T[A];C<I.length;C++){var N=I[C];e.pseudoClasses[N]||(e.pseudoClasses[N]=[]),e.pseudoClasses[N].includes(x)||e.pseudoClasses[N].push(x)}if(E.pseudoElements&&"object"==typeof E.pseudoElements)if(S=E.pseudoElements.definitions)if(Array.isArray(S))for(var P=0,j=S;P<j.length;P++){var k=j[P];e.pseudoElements[k]||(e.pseudoElements[k]=[]),e.pseudoElements[k].includes(x)||e.pseudoElements[k].push(x)}else for(var R=0,_=Object.values(S);R<_.length;R++)for(var M=0,D=_[R];M<D.length;M++){var L=D[M];e.pseudoElements[L]||(e.pseudoElements[L]=[]),e.pseudoElements[L].includes(x)||e.pseudoElements[L].push(x)}}return e}t.cssSyntaxDefinitions={css1:f,css2:p,css3:h,"selectors-3":h,"selectors-4":m,latest:g,progressive:y},t.buildPseudoLocationIndex=b,t.pseudoLocationIndex=b()},76528(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escapeString=t.escapeIdentifier=t.maxHexLength=t.digitsChars=t.quoteChars=t.whitespaceChars=t.stringRenderEscapeChars=t.identEscapeChars=t.isHex=t.isIdent=t.isIdentStart=void 0,t.isIdentStart=function(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||"-"===e||"_"===e||"\\"===e||e>=" "},t.isIdent=function(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"-"===e||"_"===e||e>=" "},t.isHex=function(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"},t.identEscapeChars={"!":!0,'"':!0,"#":!0,$:!0,"%":!0,"&":!0,"'":!0,"(":!0,")":!0,"*":!0,"+":!0,",":!0,".":!0,"/":!0,";":!0,"<":!0,"=":!0,">":!0,"?":!0,"@":!0,"[":!0,"\\":!0,"]":!0,"^":!0,"`":!0,"{":!0,"|":!0,"}":!0,"~":!0},t.stringRenderEscapeChars={"\n":!0,"\r":!0,"\t":!0,"\f":!0,"\v":!0},t.whitespaceChars={" ":!0,"\t":!0,"\n":!0,"\r":!0,"\f":!0},t.quoteChars={'"':!0,"'":!0},t.digitsChars={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},t.maxHexLength=6,t.escapeIdentifier=function(e){for(var n=e.length,r="",o=0;o<n;){var i=e.charAt(o);if(t.identEscapeChars[i]||"-"===i&&1===o&&"-"===e.charAt(0))r+="\\"+i;else if("-"===i||"_"===i||i>="A"&&i<="Z"||i>="a"&&i<="z"||i>="0"&&i<="9"&&0!==o&&(1!==o||"-"!==e.charAt(0)))r+=i;else{var s=i.charCodeAt(0);if(55296==(63488&s)){var a=e.charCodeAt(o++);if(55296!=(64512&s)||56320!=(64512&a))throw Error("UCS-2(decode): illegal sequence");s=((1023&s)<<10)+(1023&a)+65536}r+="\\"+s.toString(16)+" "}o++}return r.trim()},t.escapeString=function(e){for(var n=e.length,r="",o=0;o<n;){var i=e.charAt(o);'"'===i?i='\\"':"\\"===i?i="\\\\":t.stringRenderEscapeChars[i]&&(i="\\"+i.charCodeAt(0).toString(16)+(o===n-1?"":" ")),r+=i,o++}return'"'.concat(r,'"')}},31491(e){"use strict";e.exports={version:"2.18.0"}},9510(e){"use strict";e.exports=JSON.parse('{"rE":"4.131.3-next.7304d21a","El":{"lU":"^4.12.1"}}')}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.m=t,r.amdO={},e=[],r.O=(t,n,o,i)=>{if(!n){var s=1/0;for(u=0;u<e.length;u++){for(var[n,o,i]=e[u],a=!0,c=0;c<n.length;c++)(!1&i||s>=i)&&Object.keys(r.O).every(e=>r.O[e](n[c]))?n.splice(c--,1):(a=!1,i<s&&(s=i));if(a){e.splice(u--,1);var l=o();void 0!==l&&(t=l)}}return t}i=i||0;for(var u=e.length;u>0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[n,o,i]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.j=854,r.dn=e=>{(Object.getOwnPropertyDescriptor(e,"name")||{}).writable||Object.defineProperty(e,"name",{value:"default",configurable:!0})},(()=>{r.b="undefined"!=typeof document&&document.baseURI||self.location.href;var e={854:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var o,i,[s,a,c]=n,l=0;if(s.some(t=>0!==e[t])){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(c)var u=c(r)}for(t&&t(n);l<s.length;l++)i=s[l],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return r.O(u)},n=this.webpackChunk=this.webpackChunk||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var o=r.O(void 0,[121],()=>r(95249));o=r.O(o)})();
|