@kong-ui-public/app-layout 0.15.6 → 0.15.7

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.
@@ -1,4 +1,4 @@
1
- (function(M,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(M=typeof globalThis<"u"?globalThis:M||self,e(M["kong-ui-public-app-layout"]={},M.Vue))})(this,function(M,e){"use strict";const Nt={class:"kong-ui-app-navbar"},It={class:"header-content"},Bt={class:"mobile-header-left"},xt={key:0,class:"app-navbar-logo"},Ot={class:"navbar-content"},$t={class:"navbar-content-left"},At={class:"navbar-content-center"},Ft={class:"navbar-content-right"},Dt=e.defineComponent({__name:"AppNavbar",props:{topOffset:{type:Number,default:0},leftOffset:{type:Number,default:240},zIndex:{type:Number,default:3}},setup(r){const n=r;e.useCssVars(c=>({e7993570:e.unref(f).top,"591d67a5":e.unref(f).zIndex,"0b950b18":e.unref(f).left,74170388:s.marginRight,"482efd74":s.width}));const a=e.useSlots(),o=e.computed(()=>!!a.logo),s=e.reactive({marginRight:"0",width:"0"});e.onMounted(()=>{var c,p;(p=(c=document==null?void 0:document.querySelector(".kong-ui-app-navbar .app-navbar-logo"))==null?void 0:c.children)!=null&&p.length?(s.marginRight="32px",s.width="calc(240px - 32px)"):(s.marginRight="0",s.width="0")});const f=e.computed(()=>({top:n.topOffset?`${n.topOffset}px`:"0",left:n.leftOffset?`${n.leftOffset}px`:"0",zIndex:n.zIndex}));return(c,p)=>(e.openBlock(),e.createElementBlock("header",Nt,[e.createElementVNode("div",It,[e.createElementVNode("div",Bt,[e.renderSlot(c.$slots,"mobile-sidebar-toggle"),e.renderSlot(c.$slots,"mobile-logo")]),e.unref(o)?(e.openBlock(),e.createElementBlock("div",xt,[e.renderSlot(c.$slots,"logo")])):e.createCommentVNode("",!0),e.createElementVNode("div",Ot,[e.createElementVNode("div",$t,[e.renderSlot(c.$slots,"left")]),e.createElementVNode("div",At,[e.renderSlot(c.$slots,"center")]),e.createElementVNode("div",Ft,[e.renderSlot(c.$slots,"right")])])])]))}}),Zr="",Z=(r,n)=>{const a=r.__vccOpts||r;for(const[o,s]of n)a[o]=s;return a},Ve=Z(Dt,[["__scopeId","data-v-b7131fb2"]]),Vt=["title"],Mt=e.defineComponent({__name:"ItemBadge",props:{count:{type:Number,required:!0,default:void 0}},setup(r){const n=r,a=99,o=e.computed(()=>n.count?n.count>a?`${a}+`:n.count.toString():"");return(s,f)=>e.unref(o)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"item-badge",title:(r.count||0)>a?String(r.count):void 0},e.toDisplayString(e.unref(o)),9,Vt)):e.createCommentVNode("",!0)}}),jr="",Lt=Z(Mt,[["__scopeId","data-v-9e48c714"]]),Rt=["data-testid"],Pt=["aria-controls","aria-expanded","href","target","onClick","onKeypress"],Zt={key:0,class:"sidebar-item-icon"},jt={class:"sidebar-item-name-container"},Kt={class:"sidebar-item-name has-tooltip"},Ht={key:2,class:"sidebar-item-label truncate-text truncate-20"},zt=["id"],Wt=e.defineComponent({__name:"SidebarItem",props:{item:{type:Object,required:!0},subnavItem:{type:Boolean,default:!1}},emits:["click"],setup(r,{emit:n}){const a=r,o=e.computed(()=>typeof a.item.to!="string"?!1:!!a.item.newWindow||!!a.item.external||a.item.to.startsWith("http")),s=e.computed(()=>!a.item.to||typeof a.item.to!="string"||!a.item.newWindow?!1:a.item.newWindow&&(a.item.to.startsWith("http")||a.item.to.startsWith("/"))),f=e.computed(()=>a.subnavItem&&a.item.badgeCount!==void 0),c=g=>{n("click",g)},p=(g,v,C)=>{c(v),typeof C=="function"&&(g.preventDefault(),C())};return(g,v)=>{var N;const C=e.resolveComponent("KIcon"),w=e.resolveComponent("KTooltip"),x=e.resolveComponent("SidebarItem",!0);return e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass([r.subnavItem?"sidebar-item-secondary":"sidebar-item-primary",{expanded:r.item.expanded},{active:r.item.active}]),"data-testid":r.item.testId?`sidebar-item-${r.item.testId}`:void 0},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o)?"div":"router-link"),{custom:e.unref(o)?void 0:!0,to:!e.unref(o)&&!e.unref(s)?r.item.to:void 0},{default:e.withCtx(I=>{var D,R;return[e.createElementVNode("a",{"aria-controls":(D=r.item.items)!=null&&D.length&&r.item.expanded?`subnav-${r.item.key}`:void 0,"aria-expanded":(R=r.item.items)!=null&&R.length&&r.item.expanded?!0:void 0,class:e.normalizeClass(["sidebar-item-link",{"sidebar-item-external-link":e.unref(s),"router-link":!e.unref(o)}]),href:e.unref(o)?String(r.item.to||"#"):I==null?void 0:I.href,target:e.unref(s)?"_blank":void 0,onClick:F=>p(F,r.item,I==null?void 0:I.navigate),onKeypress:e.withKeys(F=>p(F,r.item,I==null?void 0:I.navigate),["enter"])},[e.createElementVNode("div",{class:e.normalizeClass(["sidebar-item-display",{"has-label":!!r.item.label&&r.item.expanded,"has-badge":e.unref(f)}])},[r.item.icon?(e.openBlock(),e.createElementBlock("div",Zt,[e.createVNode(C,{color:r.item.active||r.item.expanded?"var(--white, #fff)":"#B5BECD",icon:String(r.item.icon),size:"20"},null,8,["color","icon"])])):e.createCommentVNode("",!0),e.createElementVNode("div",jt,[(r.subnavItem?r.item.name.length<25:r.item.name.length<18)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["sidebar-item-name truncate-text",[r.subnavItem?"has-badge-max-width truncate-24":"truncate-17"]])},e.toDisplayString(r.item.name),3)):(e.openBlock(),e.createBlock(w,{key:1,class:"sidebar-item-tooltip",label:r.item.name,placement:"right","position-fixed":""},{default:e.withCtx(()=>[e.createElementVNode("div",Kt,[e.createElementVNode("span",{class:e.normalizeClass(["truncate-text",[r.subnavItem?"truncate-20":"truncate-17",{"has-badge-max-width":e.unref(f)}]])},e.toDisplayString(r.item.name),3)])]),_:1},8,["label"])),r.item.label&&r.item.expanded?(e.openBlock(),e.createElementBlock("div",Ht,e.toDisplayString(r.item.label),1)):e.createCommentVNode("",!0)]),e.unref(f)?(e.openBlock(),e.createBlock(Lt,{key:1,count:r.item.badgeCount},null,8,["count"])):e.createCommentVNode("",!0)],2)],42,Pt)]}),_:1},8,["custom","to"])),(N=r.item.items)!=null&&N.length&&r.item.expanded?(e.openBlock(),e.createElementBlock("ul",{key:0,id:`subnav-${r.item.key}`,class:"level-secondary"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.item.items,I=>(e.openBlock(),e.createBlock(x,{key:I.name,item:I,"subnav-item":!0,onClick:D=>c(I)},null,8,["item","onClick"]))),128))],8,zt)):e.createCommentVNode("",!0)],10,Rt)}}}),Kr="",Hr="",Me=Z(Wt,[["__scopeId","data-v-b0428668"]]),Ut={},Gt={class:"profile-icon",fill:"none",height:"30",width:"30",xmlns:"http://www.w3.org/2000/svg"},qt=[e.createElementVNode("path",{d:"M0 15C0 6.716 6.716 0 15 0c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15Z",fill:"#0A7FAE"},null,-1),e.createElementVNode("path",{d:"M12.613 15 8.5 18.115V23h13v-4.885L17.648 15h-5.035ZM15 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",fill:"#fff"},null,-1)];function Yt(r,n){return e.openBlock(),e.createElementBlock("svg",Gt,qt)}const Xt=Z(Ut,[["render",Yt]]),Jt={"aria-haspopup":"true","aria-label":"Profile Menu",class:"sidebar-footer-nav"},Qt={class:"sidebar-profile-link"},en={class:"sidebar-item-icon"},tn={class:"sidebar-profile-item-container"},nn={class:"sidebar-profile-dropdown-container"},an={key:0,class:"sidebar-profile-name"},rn={class:"sidebar-profile-name"},on=e.defineComponent({__name:"SidebarFooter",props:{name:{type:String,required:!0},itemCount:{type:Number,required:!0,default:0}},setup(r){const n=r,a=e.computed(()=>n.itemCount>0);return(o,s)=>{const f=e.resolveComponent("KDropdownMenu");return e.openBlock(),e.createElementBlock("nav",Jt,[e.createElementVNode("div",Qt,[e.createElementVNode("div",en,[e.createVNode(Xt)]),e.createElementVNode("div",tn,[e.createElementVNode("div",nn,[e.unref(a)?(e.openBlock(),e.createBlock(f,{key:1,"kpop-attributes":{placement:"right",popoverClasses:"ml-5 sidebar-profile-menu-popover",target:".sidebar-footer-nav"},width:"240"},{items:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("a",{"aria-label":"Open Profile Menu",class:"profile-dropdown-trigger",role:"button",tabindex:"0",onClick:s[0]||(s[0]=e.withModifiers(()=>{},["prevent"]))},[e.createElementVNode("span",rn,e.toDisplayString(r.name),1)])]),_:3},8,["kpop-attributes"])):(e.openBlock(),e.createElementBlock("div",an,e.toDisplayString(r.name),1))])])])])}}}),Ur="",cn=Z(on,[["__scopeId","data-v-efc446ab"]]);/*!
1
+ (function(M,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(M=typeof globalThis<"u"?globalThis:M||self,e(M["kong-ui-public-app-layout"]={},M.Vue))})(this,function(M,e){"use strict";const Nt={class:"kong-ui-app-navbar"},It={class:"header-content"},Bt={class:"mobile-header-left"},xt={key:0,class:"app-navbar-logo"},Ot={class:"navbar-content"},$t={class:"navbar-content-left"},At={class:"navbar-content-center"},Ft={class:"navbar-content-right"},Dt=e.defineComponent({__name:"AppNavbar",props:{topOffset:{type:Number,default:0},leftOffset:{type:Number,default:240},zIndex:{type:Number,default:3}},setup(r){const n=r;e.useCssVars(c=>({e7993570:e.unref(f).top,"591d67a5":e.unref(f).zIndex,"0b950b18":e.unref(f).left,74170388:s.marginRight,"482efd74":s.width}));const a=e.useSlots(),o=e.computed(()=>!!a.logo),s=e.reactive({marginRight:"0",width:"0"});e.onMounted(()=>{var c,p;(p=(c=document==null?void 0:document.querySelector(".kong-ui-app-navbar .app-navbar-logo"))==null?void 0:c.children)!=null&&p.length?(s.marginRight="32px",s.width="calc(240px - 32px)"):(s.marginRight="0",s.width="0")});const f=e.computed(()=>({top:n.topOffset?`${n.topOffset}px`:"0",left:n.leftOffset?`${n.leftOffset}px`:"0",zIndex:n.zIndex}));return(c,p)=>(e.openBlock(),e.createElementBlock("header",Nt,[e.createElementVNode("div",It,[e.createElementVNode("div",Bt,[e.renderSlot(c.$slots,"mobile-sidebar-toggle"),e.renderSlot(c.$slots,"mobile-logo")]),e.unref(o)?(e.openBlock(),e.createElementBlock("div",xt,[e.renderSlot(c.$slots,"logo")])):e.createCommentVNode("",!0),e.createElementVNode("div",Ot,[e.createElementVNode("div",$t,[e.renderSlot(c.$slots,"left")]),e.createElementVNode("div",At,[e.renderSlot(c.$slots,"center")]),e.createElementVNode("div",Ft,[e.renderSlot(c.$slots,"right")])])])]))}}),Zr="",Z=(r,n)=>{const a=r.__vccOpts||r;for(const[o,s]of n)a[o]=s;return a},Ve=Z(Dt,[["__scopeId","data-v-b7131fb2"]]),Vt=["title"],Mt=e.defineComponent({__name:"ItemBadge",props:{count:{type:Number,required:!0,default:void 0}},setup(r){const n=r,a=99,o=e.computed(()=>n.count?n.count>a?`${a}+`:n.count.toString():"");return(s,f)=>e.unref(o)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"item-badge",title:(r.count||0)>a?String(r.count):void 0},e.toDisplayString(e.unref(o)),9,Vt)):e.createCommentVNode("",!0)}}),jr="",Lt=Z(Mt,[["__scopeId","data-v-9e48c714"]]),Rt=["data-testid"],Pt=["aria-controls","aria-expanded","href","target","onClick","onKeypress"],Zt={key:0,class:"sidebar-item-icon"},jt={class:"sidebar-item-name-container"},Kt={class:"sidebar-item-name has-tooltip"},Ht={key:2,class:"sidebar-item-label truncate-text truncate-20"},zt=["id"],Wt=e.defineComponent({__name:"SidebarItem",props:{item:{type:Object,required:!0},subnavItem:{type:Boolean,default:!1}},emits:["click"],setup(r,{emit:n}){const a=r,o=e.computed(()=>typeof a.item.to!="string"?!1:!!a.item.newWindow||!!a.item.external||a.item.to.startsWith("http")),s=e.computed(()=>!a.item.to||typeof a.item.to!="string"||!a.item.newWindow?!1:a.item.newWindow&&(a.item.to.startsWith("http")||a.item.to.startsWith("/"))),f=e.computed(()=>a.subnavItem&&a.item.badgeCount!==void 0),c=g=>{n("click",g)},p=(g,v,C)=>{c(v),typeof C=="function"&&(g.preventDefault(),C())};return(g,v)=>{var N;const C=e.resolveComponent("KIcon"),w=e.resolveComponent("KTooltip"),x=e.resolveComponent("SidebarItem",!0);return e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass([r.subnavItem?"sidebar-item-secondary":"sidebar-item-primary",{expanded:r.item.expanded},{active:r.item.active}]),"data-testid":r.item.testId?`sidebar-item-${r.item.testId}`:void 0},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o)?"div":"router-link"),{custom:e.unref(o)?void 0:!0,to:!e.unref(o)&&!e.unref(s)?r.item.to:void 0},{default:e.withCtx(I=>{var D,R;return[e.createElementVNode("a",{"aria-controls":(D=r.item.items)!=null&&D.length&&r.item.expanded?`subnav-${r.item.key}`:void 0,"aria-expanded":(R=r.item.items)!=null&&R.length&&r.item.expanded?!0:void 0,class:e.normalizeClass(["sidebar-item-link",{"sidebar-item-external-link":e.unref(s),"router-link":!e.unref(o)}]),href:e.unref(o)?String(r.item.to||"#"):I==null?void 0:I.href,target:e.unref(s)?"_blank":void 0,onClick:F=>p(F,r.item,I==null?void 0:I.navigate),onKeypress:e.withKeys(F=>p(F,r.item,I==null?void 0:I.navigate),["enter"])},[e.createElementVNode("div",{class:e.normalizeClass(["sidebar-item-display",{"has-label":!!r.item.label&&r.item.expanded,"has-badge":e.unref(f)}])},[r.item.icon?(e.openBlock(),e.createElementBlock("div",Zt,[e.createVNode(C,{color:r.item.active||r.item.expanded?"var(--white, #fff)":"#B5BECD",icon:String(r.item.icon),size:"20"},null,8,["color","icon"])])):e.createCommentVNode("",!0),e.createElementVNode("div",jt,[(r.subnavItem?r.item.name.length<25:r.item.name.length<18)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["sidebar-item-name truncate-text",[r.subnavItem?"has-badge-max-width truncate-24":"truncate-17"]])},e.toDisplayString(r.item.name),3)):(e.openBlock(),e.createBlock(w,{key:1,class:"sidebar-item-tooltip",label:r.item.name,placement:"right","position-fixed":""},{default:e.withCtx(()=>[e.createElementVNode("div",Kt,[e.createElementVNode("span",{class:e.normalizeClass(["truncate-text",[r.subnavItem?"truncate-20":"truncate-17",{"has-badge-max-width":e.unref(f)}]])},e.toDisplayString(r.item.name),3)])]),_:1},8,["label"])),r.item.label&&r.item.expanded?(e.openBlock(),e.createElementBlock("div",Ht,e.toDisplayString(r.item.label),1)):e.createCommentVNode("",!0)]),e.unref(f)?(e.openBlock(),e.createBlock(Lt,{key:1,count:r.item.badgeCount},null,8,["count"])):e.createCommentVNode("",!0)],2)],42,Pt)]}),_:1},8,["custom","to"])),(N=r.item.items)!=null&&N.length&&r.item.expanded?(e.openBlock(),e.createElementBlock("ul",{key:0,id:`subnav-${r.item.key}`,class:"level-secondary"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.item.items,I=>(e.openBlock(),e.createBlock(x,{key:I.name,item:I,"subnav-item":!0,onClick:D=>c(I)},null,8,["item","onClick"]))),128))],8,zt)):e.createCommentVNode("",!0)],10,Rt)}}}),Kr="",Hr="",Me=Z(Wt,[["__scopeId","data-v-a8253818"]]),Ut={},Gt={class:"profile-icon",fill:"none",height:"30",width:"30",xmlns:"http://www.w3.org/2000/svg"},qt=[e.createElementVNode("path",{d:"M0 15C0 6.716 6.716 0 15 0c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15Z",fill:"#0A7FAE"},null,-1),e.createElementVNode("path",{d:"M12.613 15 8.5 18.115V23h13v-4.885L17.648 15h-5.035ZM15 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",fill:"#fff"},null,-1)];function Yt(r,n){return e.openBlock(),e.createElementBlock("svg",Gt,qt)}const Xt=Z(Ut,[["render",Yt]]),Jt={"aria-haspopup":"true","aria-label":"Profile Menu",class:"sidebar-footer-nav"},Qt={class:"sidebar-profile-link"},en={class:"sidebar-item-icon"},tn={class:"sidebar-profile-item-container"},nn={class:"sidebar-profile-dropdown-container"},an={key:0,class:"sidebar-profile-name"},rn={class:"sidebar-profile-name"},on=e.defineComponent({__name:"SidebarFooter",props:{name:{type:String,required:!0},itemCount:{type:Number,required:!0,default:0}},setup(r){const n=r,a=e.computed(()=>n.itemCount>0);return(o,s)=>{const f=e.resolveComponent("KDropdownMenu");return e.openBlock(),e.createElementBlock("nav",Jt,[e.createElementVNode("div",Qt,[e.createElementVNode("div",en,[e.createVNode(Xt)]),e.createElementVNode("div",tn,[e.createElementVNode("div",nn,[e.unref(a)?(e.openBlock(),e.createBlock(f,{key:1,"kpop-attributes":{placement:"right",popoverClasses:"ml-5 sidebar-profile-menu-popover",target:".sidebar-footer-nav"},width:"240"},{items:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("a",{"aria-label":"Open Profile Menu",class:"profile-dropdown-trigger",role:"button",tabindex:"0",onClick:s[0]||(s[0]=e.withModifiers(()=>{},["prevent"]))},[e.createElementVNode("span",rn,e.toDisplayString(r.name),1)])]),_:3},8,["kpop-attributes"])):(e.openBlock(),e.createElementBlock("div",an,e.toDisplayString(r.name),1))])])])])}}}),Ur="",cn=Z(on,[["__scopeId","data-v-efc446ab"]]);/*!
2
2
  * tabbable 6.1.1
3
3
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
4
4
  */var Le=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],le=Le.join(","),Re=typeof Element>"u",q=Re?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,se=!Re&&Element.prototype.getRootNode?function(r){var n;return r==null||(n=r.getRootNode)===null||n===void 0?void 0:n.call(r)}:function(r){return r==null?void 0:r.ownerDocument},de=function r(n,a){var o;a===void 0&&(a=!0);var s=n==null||(o=n.getAttribute)===null||o===void 0?void 0:o.call(n,"inert"),f=s===""||s==="true",c=f||a&&n&&r(n.parentNode);return c},ln=function(n){var a,o=n==null||(a=n.getAttribute)===null||a===void 0?void 0:a.call(n,"contenteditable");return o===""||o==="true"},Pe=function(n,a,o){if(de(n))return[];var s=Array.prototype.slice.apply(n.querySelectorAll(le));return a&&q.call(n,le)&&s.unshift(n),s=s.filter(o),s},Ze=function r(n,a,o){for(var s=[],f=Array.from(n);f.length;){var c=f.shift();if(!de(c,!1))if(c.tagName==="SLOT"){var p=c.assignedElements(),g=p.length?p:c.children,v=r(g,!0,o);o.flatten?s.push.apply(s,v):s.push({scopeParent:c,candidates:v})}else{var C=q.call(c,le);C&&o.filter(c)&&(a||!n.includes(c))&&s.push(c);var w=c.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(c),x=!de(w,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(c));if(w&&x){var N=r(w===!0?c.children:w.children,!0,o);o.flatten?s.push.apply(s,N):s.push({scopeParent:c,candidates:N})}else f.unshift.apply(f,c.children)}}return s},je=function(n,a){return n.tabIndex<0&&(a||/^(AUDIO|VIDEO|DETAILS)$/.test(n.tagName)||ln(n))&&isNaN(parseInt(n.getAttribute("tabindex"),10))?0:n.tabIndex},sn=function(n,a){return n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex},Ke=function(n){return n.tagName==="INPUT"},dn=function(n){return Ke(n)&&n.type==="hidden"},fn=function(n){var a=n.tagName==="DETAILS"&&Array.prototype.slice.apply(n.children).some(function(o){return o.tagName==="SUMMARY"});return a},un=function(n,a){for(var o=0;o<n.length;o++)if(n[o].checked&&n[o].form===a)return n[o]},pn=function(n){if(!n.name)return!0;var a=n.form||se(n),o=function(p){return a.querySelectorAll('input[type="radio"][name="'+p+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=o(window.CSS.escape(n.name));else try{s=o(n.name)}catch(c){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",c.message),!1}var f=un(s,n.form);return!f||f===n},mn=function(n){return Ke(n)&&n.type==="radio"},bn=function(n){return mn(n)&&!pn(n)},hn=function(n){var a,o=n&&se(n),s=(a=o)===null||a===void 0?void 0:a.host,f=!1;if(o&&o!==n){var c,p,g;for(f=!!((c=s)!==null&&c!==void 0&&(p=c.ownerDocument)!==null&&p!==void 0&&p.contains(s)||n!=null&&(g=n.ownerDocument)!==null&&g!==void 0&&g.contains(n));!f&&s;){var v,C,w;o=se(s),s=(v=o)===null||v===void 0?void 0:v.host,f=!!((C=s)!==null&&C!==void 0&&(w=C.ownerDocument)!==null&&w!==void 0&&w.contains(s))}}return f},He=function(n){var a=n.getBoundingClientRect(),o=a.width,s=a.height;return o===0&&s===0},gn=function(n,a){var o=a.displayCheck,s=a.getShadowRoot;if(getComputedStyle(n).visibility==="hidden")return!0;var f=q.call(n,"details>summary:first-of-type"),c=f?n.parentElement:n;if(q.call(c,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="legacy-full"){if(typeof s=="function"){for(var p=n;n;){var g=n.parentElement,v=se(n);if(g&&!g.shadowRoot&&s(g)===!0)return He(n);n.assignedSlot?n=n.assignedSlot:!g&&v!==n.ownerDocument?n=v.host:n=g}n=p}if(hn(n))return!n.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return He(n);return!1},yn=function(n){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(n.tagName))for(var a=n.parentElement;a;){if(a.tagName==="FIELDSET"&&a.disabled){for(var o=0;o<a.children.length;o++){var s=a.children.item(o);if(s.tagName==="LEGEND")return q.call(a,"fieldset[disabled] *")?!0:!s.contains(n)}return!0}a=a.parentElement}return!1},fe=function(n,a){return!(a.disabled||de(a)||dn(a)||gn(a,n)||fn(a)||yn(a))},ke=function(n,a){return!(bn(a)||je(a)<0||!fe(n,a))},vn=function(n){var a=parseInt(n.getAttribute("tabindex"),10);return!!(isNaN(a)||a>=0)},_n=function r(n){var a=[],o=[];return n.forEach(function(s,f){var c=!!s.scopeParent,p=c?s.scopeParent:s,g=je(p,c),v=c?r(s.candidates):p;g===0?c?a.push.apply(a,v):a.push(p):o.push({documentOrder:f,tabIndex:g,item:s,isScope:c,content:v})}),o.sort(sn).reduce(function(s,f){return f.isScope?s.push.apply(s,f.content):s.push(f.content),s},[]).concat(a)},wn=function(n,a){a=a||{};var o;return a.getShadowRoot?o=Ze([n],a.includeContainer,{filter:ke.bind(null,a),flatten:!1,getShadowRoot:a.getShadowRoot,shadowRootFilter:vn}):o=Pe(n,a.includeContainer,ke.bind(null,a)),_n(o)},kn=function(n,a){a=a||{};var o;return a.getShadowRoot?o=Ze([n],a.includeContainer,{filter:fe.bind(null,a),flatten:!0,getShadowRoot:a.getShadowRoot}):o=Pe(n,a.includeContainer,fe.bind(null,a)),o},ue=function(n,a){if(a=a||{},!n)throw new Error("No node provided");return q.call(n,le)===!1?!1:ke(a,n)},Cn=Le.concat("iframe").join(","),ze=function(n,a){if(a=a||{},!n)throw new Error("No node provided");return q.call(n,Cn)===!1?!1:fe(a,n)};/*!