1import{aX as E,aY as u,aZ as m,a_ as l,a$ as h,b0 as g,b1 as _}from"./vendor.e951e079.hash.js";const w="modulepreload",d={},p="/",P=function(t,n){return!n||n.length===0?t():Promise.all(n.map(s=>{if(s=`${p}${s}`,s in d)return;d[s]=!0;const r=s.endsWith(".css"),a=r?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${a}`))return;const o=document.createElement("link");if(o.rel=r?"stylesheet":w,r||(o.as="script",o.crossOrigin=""),o.href=s,document.head.appendChild(o),r)return new Promise((c,b)=>{o.addEventListener("load",c),o.addEventListener("error",b)})})).then(()=>t())};function S(){return E()}class T{constructor(t){this._debug={},this.channelName=t,this.listeners=new Map,this.sendingChannel=new u(t),this.receivingChannel=new u(t),this.receivingChannel.addEventListener("message",this.onEvent.bind(this))}set debug(t){this._debug=t}subscribe(t,n){let s=this.listeners.get(t);return s||(s=new Set,this.listeners.set(t,s)),s.add(n),()=>{const r=this.listeners.get(t);!r||r.delete(n)}}request(t,n){const s=S(),r=t.toString().replace("request","response");return new Promise(a=>{const o=this.subscribe(r,c=>{c.reqId===s&&(o(),delete c.reqId,a(c.result))});this.publish(t,{reqId:s,...n})})}publish(t,n){this.sendingChannel.postMessage({type:t,data:n})}onEvent(t){this.notifyListeners(t.type,t.data)}notifyListeners(t,n){const s=this.listeners.get(t);!s||s.forEach(r=>{try{r(n)}catch(a){console.error(a)}})}}function v(){if(globalThis.location){const e=/^\/([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\/(?:web_modules|vite)\//.exec(location.pathname);if(e)return e[1]}if(globalThis.frameElement){const e=frameElement.dataset;if(e&&e.busid)return e.busid}}function W(e){const t=e==null?void 0:e.dataset.path;return t?t.startsWith("[")?JSON.parse(t):t.split(","):[]}function D(e){if(e!=null&&e.dataset.wcid)return e.dataset.wcid;if(globalThis.location){const s=/^(?:\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})?\/(?:web_modules|vite)\/([^/]*)\//.exec(location.pathname);if(s)return s[1]}const t=document.querySelector("meta[name='customelementid']"),n=t&&t.content;if(n)return n;throw new Error("Addon used outside of component runtime")}function C(e){return(e==null?void 0:e.dataset.vite)==="true"?!0:(e==null?void 0:e.dataset.vite)==="false"?!1:!!(globalThis.location&&/^(?:\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})?\/vite\/([^/]*)\//.exec(location.pathname))}const M=["clear","debug","log","info","warn","error"];let i=globalThis.__LOCAL_EVENT_BUS_ID__;if(globalThis.location){location.search.startsWith("?busid=")&&(i=location.search.slice(7));const e=v();e&&(i=e),i==="auto"&&(i=m()),i&&(globalThis.__LOCAL_EVENT_BUS_ID__=i)}console.assert(i!==void 0,"Missing busid");class O extends T{constructor(){super(...arguments),this.globalListeners=[]}onEvent(t){this.globalListeners.forEach(n=>n.onEvent(t)),super.onEvent(t)}addGlobalListener(t){this.globalListeners.push(t)}publish(t,n){super.publish(t,this.toRawDeep({...n}))}toRawDeep(t){return t&&(Array.isArray(t)&&t.forEach((n,s)=>{t[s]=l(n)?h(n):this.toRawDeep(n)}),typeof t=="object"&&Object.entries(t).forEach(([n,s])=>{t[n]=l(s)?h(s):this.toRawDeep(s)}),t)}}const j=new O(i);var y=(e=>(e.ENTHUSIAST="ENTHUSIAST",e.PRO="PRO",e))(y||{}),L=(e=>(e.PRO="PRO",e.ENTERPRISE="ENTERPRISE",e))(L||{}),R=(e=>(e.VIEWER="viewer",e.EDITOR="editor",e.OWNER="owner",e))(R||{}),I=(e=>(e.USR="user",e.WORKSPACE="workspace",e))(I||{});const A="package.json",x="studio.config.json",k="custom-elements.json",q="custom-elements-manifest.config.mjs";var f=(e=>(e.WebComponents="webcomponents",e.Deleted_WebComponents="deleted_webcomponents",e.WebComponents_Tree="tree",e.WebComponents_Tree_Master="master",e.WebComponents_Tree_README="README.md",e.WebComponents_Tree_Stories="src/index.stories.js",e.WebCollections="webcollections",e.WebBundles="webbundles",e.Workspaces="org",e.Users="usr",e.ThirdParties="thirdparties",e.Internals="internals",e.Releases="releases",e.Invites="invites",e.Mails="mails",e.Comments="comments",e))(f||{});class B{constructor(t){this.timer=-1,this.delay=t}call(t){clearTimeout(this.timer),this.timer=window.setTimeout(()=>t.apply(this,[]),this.delay)}}function U(e){e.addEventListener("keydown",t=>{(t.ctrlKey||t.metaKey)&&t.which==83&&t.preventDefault()})}function $(e,t){return window.addEventListener(e,t),()=>window.removeEventListener(e,t)}const J=e=>{const t=[];return JSON.parse(JSON.stringify(e,(n,s)=>{if(typeof s=="object"&&s!==null){if(t.indexOf(s)!==-1)return"[object Object]";t.push(s)}return s}))};async function F(e,t={context:"web_modules",branch:f.WebComponents_Tree_Master},n={}){let s=`/module/${e}?context=${t.context}`;t.branch&&(s+=`&branch=${t.branch}`);const r=await fetch(s,n);if(r.ok)return await r.json();throw new Error(`Failed to fetch module: ${e}`)}function G(e){if(g(e,_.cancelled))console.info(e.message);else throw e}const H=(e,t={},n=[])=>{const s=new URL(location.href);e&&(s.pathname=e),Object.entries(t).forEach(([r,a])=>
1s.searchParams.set(r,a)),n.forEach(s.searchParams.delete),history.replaceState({},"",s.href)};export{f as C,I as D,A as P,x as S,R as U,L as W,S as _,P as a,q as b,y as c,B as d,C as e,W as f,D as g,M as h,J as i,k as j,H as k,j as l,F as m,$ as n,G as o,U as r};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.