@ds-mo/ui 2.3.0 → 2.4.0

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,2 +1,2 @@
1
- const e="ds-mo";const t={hotModuleReplacement:false,hydratedSelectorName:"hydrated",lazyLoad:false,slotRelocation:true,state:true,updatable:true};var n="http://www.w3.org/2000/svg";var l="http://www.w3.org/1999/xhtml";function r(e,t,n){const l=typeof HTMLElement!=="undefined"?HTMLElement.prototype:null;while(e&&e!==l){const l=Object.getOwnPropertyDescriptor(e,t);if(l&&(!n||l.get))return l;e=Object.getPrototypeOf(e)}return void 0}var i=(e,t)=>{var n;const l=t.t;const i=Object.entries((n=l.l)!=null?n:{});i.map((([n,[l]])=>{if(l&31||l&32){const l=e[n];const i=r(Object.getPrototypeOf(e),n,true)||Object.getOwnPropertyDescriptor(e,n);if(i){Object.defineProperty(e,n,{get(){return i.get.call(this)},set(e){i.set.call(this,e)},configurable:true,enumerable:true})}if(t.i.has(n)){e[n]=t.i.get(n)}else if(l!==void 0){e[n]=l}}}))};var s=e=>{if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var o=(e,n)=>{const l={o:0,$hostElement$:e,t:n,i:new Map,u:new Map};{l.v=new Promise((e=>l.p=e));e["s-p"]=[];e["s-rc"]=[]}const r=l;e.__stencil__getHostRef=()=>r;if(n.o&512&&t.state){i(e,l)}return r};var f=(e,t)=>t in e;var a=(e,t)=>(0,console.error)(e,t);var c=new Map;var u="slot-fb{display:contents}slot-fb[hidden]{display:none}";var v="http://www.w3.org/1999/xlink";var d=typeof window!=="undefined"?window:{};var p=d.HTMLElement||class{};var h={o:0,h:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)};var y=(()=>{var e;let t=false;try{(e=d.document)==null?void 0:e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=true}}))}catch(e){}return t})();var b=e=>Promise.resolve(e);var m=(()=>{try{if(!d.document.adoptedStyleSheets){return false}new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var w=m?(()=>!!d.document&&Object.getOwnPropertyDescriptor(d.document.adoptedStyleSheets,"length").writable)():false;var g=false;var $=[];var j=[];var O=(e,t)=>n=>{e.push(n);if(!g){g=true;if(t&&h.o&4){N(k)}else{h.raf(k)}}};var S=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){a(e)}}e.length=0};var k=()=>{S($);{S(j);if(g=$.length>0){h.raf(k)}}};var N=e=>b().then(e);var M=O(j,true);var E=e=>{const t=new URL(e,h.h);return t.origin!==d.location.origin?t.href:t.pathname};var x=e=>h.h=e;function C(e){return void 0}var L;function R(e){var t;const n={mode:"open"};const l=this.attachShadow(n);if(L===void 0)L=(t=C())!=null?t:null;if(L){if(w){l.adoptedStyleSheets.push(L)}else{l.adoptedStyleSheets=[...l.adoptedStyleSheets,L]}}}var _=e=>{const t=z(e,"childNodes");if(e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"){F(t,e.tagName).forEach((e=>{if(e.nodeType===1&&e.tagName==="SLOT-FB"){if(T(e,D(e),false).length){e.hidden=true}else{e.hidden=false}}}))}let n=0;for(n=0;n<t.length;n++){const e=t[n];if(e.nodeType===1&&z(e,"childNodes").length){_(e)}}};var A=e=>{const t=[];for(let n=0;n<e.length;n++){const l=e[n]["s-nr"]||void 0;if(l&&l.isConnected){t.push(l)}}return t};function F(e,t,n){let l=0;let r=[];let i;for(;l<e.length;l++){i=e[l];if(i["s-sr"]&&(!t||i["s-hn"]===t)&&(n===void 0||D(i)===n)){r.push(i);if(typeof n!=="undefined")return r}r=[...r,...F(i.childNodes,t,n)]}return r}var T=(e,t,n=true)=>{const l=[];if(n&&e["s-sr"]||!e["s-sr"])l.push(e);let r=e;while(r=r.nextSibling){if(D(r)===t&&(n||!r["s-sr"]))l.push(r)}return l};var U=(e,t)=>{if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var D=e=>typeof e["s-sn"]==="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function H(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;const t=t=>function(e){const n=[];const l=this["s-sn"];if(e==null?void 0:e.flatten){console.error(`\n Flattening is not supported for Stencil non-shadow slots.\n You can use \`.childNodes\` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n `)}const r=this["s-cr"].parentElement;const i=r.__childNodes?r.childNodes:A(r.childNodes);i.forEach((e=>{if(l===D(e)){n.push(e)}}));if(t){return n.filter((e=>e.nodeType===1))}return n}.bind(e);e.assignedElements=t(true);e.assignedNodes=t(false)}function P(e){e.dispatchEvent(new CustomEvent("slotchange",{bubbles:false,cancelable:false,composed:false}))}function W(e,t){var n;t=t||((n=e["s-ol"])==null?void 0:n.parentElement);if(!t)return{slotNode:null,slotName:""};const l=e["s-sn"]=D(e)||"";const r=z(t,"childNodes");const i=F(r,t.tagName,l)[0];return{slotNode:i,slotName:l}}function z(e,t){if("__"+t in e){const n=e["__"+t];if(typeof n!=="function")return n;return n.bind(e)}else{if(typeof e[t]!=="function")return e[t];return e[t].bind(e)}}var B=(e,t="")=>{{return()=>{}}};function V(e){var t,n,l;return(l=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?l:void 0}var q=new WeakMap;var Y=(e,t,n)=>{let l=c.get(e);if(m&&n){l=l||new CSSStyleSheet;if(typeof l==="string"){l=t}else{l.replaceSync(t)}}else{l=t}c.set(e,l)};var I=(e,t,n)=>{var l,r,i;const s=G(t);const o=c.get(s);if(!d.document){return s}e=e.nodeType===11?e:d.document;if(o){if(typeof o==="string"){e=e.head||e;let n=q.get(e);let i;if(!n){q.set(e,n=new Set)}if(!n.has(s)){i=d.document.createElement("style");i.textContent=o;const f=(l=h.m)!=null?l:V(d.document);if(f!=null){i.setAttribute("nonce",f)}if(!(t.o&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(i,(n==null?void 0:n.parentNode)===e?n:null)}else if("host"in e){if(m){const t=(r=e.defaultView)!=null?r:e.ownerDocument.defaultView;const n=new t.CSSStyleSheet;n.replaceSync(o);if(w){e.adoptedStyleSheets.unshift(n)}else{e.adoptedStyleSheets=[n,...e.adoptedStyleSheets]}}else{const t=e.querySelector("style");if(t&&true){t.textContent=o+t.textContent}else{e.prepend(i)}}}else{e.append(i)}}if(t.o&1){e.insertBefore(i,null)}if(t.o&4){i.textContent+=u}if(n){n.add(s)}}}else{let t=q.get(e);if(!t){q.set(e,t=new Set)}if(!t.has(s)){const n=(i=e.defaultView)!=null?i:e.ownerDocument.defaultView;let l;if(o.constructor===n.CSSStyleSheet){l=o}else{l=new n.CSSStyleSheet;for(let e=0;e<o.cssRules.length;e++){l.insertRule(o.cssRules[e].cssText,e)}}if(w){e.adoptedStyleSheets.push(l)}else{e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]}t.add(s)}}}return s};var Z=e=>{const t=e.t;const n=e.$hostElement$;const l=t.o;const r=B("attachStyles",t.$);const i=I(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(l&10){n["s-sc"]=i;n.classList.add(i+"-h")}r()};var G=(e,t)=>"sc-"+e.$;var J=e=>e!=null&&e!==void 0;var K=e=>{e=typeof e;return e==="object"||e==="function"};var Q=(e,t,...n)=>{if(typeof e==="string"){e=yt(e)}let l=null;let r=null;let i=null;let s=false;let o=false;const f=[];const a=t=>{for(let n=0;n<t.length;n++){l=t[n];if(Array.isArray(l)){a(l)}else if(l!=null&&typeof l!=="boolean"){if(s=typeof e!=="function"&&!K(l)){l=String(l)}if(s&&o){f[f.length-1].j+=l}else{f.push(s?X(null,l):l)}o=s}}};a(n);if(t){if(t.key){r=t.key}if(t.name){i=t.name}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,f,ne)}const c=X(e,null);c.O=t;if(f.length>0){c.S=f}{c.k=r}{c.N=i}return c};var X=(e,t)=>{const n={o:0,M:e,j:t!=null?t:null,C:null,S:null};{n.O=null}{n.k=null}{n.N=null}return n};var ee={};var te=e=>e&&e.M===ee;var ne={forEach:(e,t)=>e.map(le).forEach(t),map:(e,t)=>e.map(le).map(t).map(re)};var le=e=>({vattrs:e.O,vchildren:e.S,vkey:e.k,vname:e.N,vtag:e.M,vtext:e.j});var re=e=>{if(typeof e.vtag==="function"){const t={...e.vattrs};if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return Q(e.vtag,t,...e.vchildren||[])}const t=X(e.vtag,e.vtext);t.O=e.vattrs;t.S=e.vchildren;t.k=e.vkey;t.N=e.vname;return t};var ie=e=>{if(!e)return void 0;const t=Object.keys(e);if(t.length===0)return void 0;let n=false;for(const l of t){if(n)break;for(const t of e[l]){if(typeof t==="string"){n=true;break}}}if(!n)return e;const l={};for(const n of t){l[n]=e[n].map((e=>typeof e==="string"?{[e]:0}:e))}return l};var se=(e,t,n)=>{if(e!=null&&!K(e)){if(t&4){{return e==="false"?false:e===""||!!e}}if(t&2){return typeof e==="string"?parseFloat(e):typeof e==="number"?e:NaN}if(t&1){return String(e)}return e}return e};var oe=e=>e;var fe=(e,t,n)=>{const l=oe(e);return{emit:e=>ae(l,t,{bubbles:true,composed:true,cancelable:true,detail:e})}};var ae=(e,t,n)=>{const l=h.ce(t,n);e.dispatchEvent(l);return l};var ce=(e,t,n,l,r,i,o)=>{if(n===l){return}let a=f(e,t);let c=t.toLowerCase();if(t==="class"){const t=e.classList;const r=ve(n);let i=ve(l);{t.remove(...r.filter((e=>e&&!i.includes(e))));t.add(...i.filter((e=>e&&!r.includes(e))))}}else if(t==="style"){{for(const t in n){if(!l||l[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in l){if(!n||l[t]!==n[t]){if(t.includes("-")){e.style.setProperty(t,l[t])}else{e.style[t]=l[t]}}}}else if(t==="key");else if(t==="ref"){if(l){De(l,e)}}else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(f(d,c)){t=c.slice(2)}else{t=c[2]+t.slice(3)}if(n||l){const r=t.endsWith(de);t=t.replace(pe,"");if(n){h.rel(e,t,n,r)}if(l){h.ael(e,t,l,r)}}}else if(t[0]==="a"&&t.startsWith("attr:")){const n=t.slice(5);let r;{const t=s(e);if(t&&t.t&&t.t.l){const e=t.t.l[n];if(e&&e[1]){r=e[1]}}}if(!r){r=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}if(l==null||l===false){if(l!==false||e.getAttribute(r)===""){e.removeAttribute(r)}}else{e.setAttribute(r,l===true?"":l)}return}else if(t[0]==="p"&&t.startsWith("prop:")){const n=t.slice(5);try{e[n]=l}catch(e){}return}else{const s=K(l);if((a||s&&l!==null)&&!r){try{if(!e.tagName.includes("-")){const r=l==null?"":l;if(t==="list"){a=false}else if(n==null||e[t]!==r){if(typeof e.__lookupSetter__(t)==="function"){e[t]=r}else{e.setAttribute(t,r)}}}else if(e[t]!==l){e[t]=l}}catch(e){}}let o=false;{if(c!==(c=c.replace(/^xlink\:?/,""))){t=c;o=true}}if(l==null||l===false){if(l!==false||e.getAttribute(t)===""){if(o){e.removeAttributeNS(v,t)}else{e.removeAttribute(t)}}}else if((!a||i&4||r)&&!s&&e.nodeType===1){l=l===true?"":l;if(o){e.setAttributeNS(v,t,l)}else{e.setAttribute(t,l)}}}};var ue=/\s/;var ve=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(ue)};var de="Capture";var pe=new RegExp(de+"$");var he=(e,t,n,l)=>{const r=t.C.nodeType===11&&t.C.host?t.C.host:t.C;const i=e&&e.O||{};const s=t.O||{};{for(const e of ye(Object.keys(i))){if(!(e in s)){ce(r,e,i[e],void 0,n,t.o)}}}for(const e of ye(Object.keys(s))){ce(r,e,i[e],s[e],n,t.o)}};function ye(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var be;var me;var we;var ge=false;var $e=false;var je=false;var Oe=false;var Se=[];var ke=[];var Ne=(e,r,i)=>{var s;const o=r.S[i];let f=0;let a;let c;let u;if(!ge){je=true;if(o.M==="slot"){o.o|=o.S?2:1}}if(o.j!=null){a=o.C=d.document.createTextNode(o.j)}else if(o.o&1){a=o.C=d.document.createTextNode("");{he(null,o,Oe)}}else{if(!Oe){Oe=o.M==="svg"}if(!d.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.")}a=o.C=d.document.createElementNS(Oe?n:l,!ge&&t.slotRelocation&&o.o&2?"slot-fb":o.M);if(Oe&&o.M==="foreignObject"){Oe=false}{he(null,o,Oe)}if(J(be)&&a["s-si"]!==be){a.classList.add(a["s-si"]=be)}if(o.S){const t=o.M==="template"?a.content:a;for(f=0;f<o.S.length;++f){c=Ne(e,o,f);if(c){t.appendChild(c)}}}{if(o.M==="svg"){Oe=false}else if(a.tagName==="foreignObject"){Oe=true}}}a["s-hn"]=we;{if(o.o&(2|1)){a["s-sr"]=true;a["s-cr"]=me;a["s-sn"]=o.N||"";a["s-rf"]=(s=o.O)==null?void 0:s.ref;H(a);u=e&&e.S&&e.S[i];if(u&&u.M===o.M&&e.C){Me(e.C)}{We(me,a,r.C,e==null?void 0:e.C)}}}return a};var Me=e=>{h.o|=1;const t=e.closest(we.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((e=>e["s-cr"]));const l=Array.from(e.__childNodes||e.childNodes);for(const e of n?l.reverse():l){if(e["s-sh"]!=null){Pe(t,e,n!=null?n:null);e["s-sh"]=void 0;je=true}}}h.o&=-2};var Ee=(e,t)=>{h.o|=1;const n=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let t=e;while(t=t.nextSibling){if(t&&t["s-sn"]===e["s-sn"]&&t["s-sh"]===we){n.push(t)}}}for(let e=n.length-1;e>=0;e--){const l=n[e];if(l["s-hn"]!==we&&l["s-ol"]){Pe(_e(l).parentNode,l,_e(l));l["s-ol"].remove();l["s-ol"]=void 0;l["s-sh"]=void 0;je=true}if(t){Ee(l,t)}}h.o&=-2};var xe=(e,t,n,l,r,i)=>{let s=e["s-cr"]&&e["s-cr"].parentNode||e;let o;if(s.shadowRoot&&s.tagName===we){s=s.shadowRoot}if(n.M==="template"){s=s.content}for(;r<=i;++r){if(l[r]){o=Ne(null,n,r);if(o){l[r].C=o;Pe(s,o,_e(t))}}}};var Ce=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.C;Ue(t);if(e){{$e=true;if(e["s-ol"]){e["s-ol"].remove()}else{Ee(e,true)}}e.remove()}}}};var Le=(e,t,n,l,r=false)=>{let i=0;let s=0;let o=0;let f=0;let a=t.length-1;let c=t[0];let u=t[a];let v=l.length-1;let d=l[0];let p=l[v];let h;let y;const b=n.M==="template"?e.content:e;while(i<=a&&s<=v){if(c==null){c=t[++i]}else if(u==null){u=t[--a]}else if(d==null){d=l[++s]}else if(p==null){p=l[--v]}else if(Re(c,d,r)){Ae(c,d,r);c=t[++i];d=l[++s]}else if(Re(u,p,r)){Ae(u,p,r);u=t[--a];p=l[--v]}else if(Re(c,p,r)){if(c.M==="slot"||p.M==="slot"){Ee(c.C.parentNode,false)}Ae(c,p,r);Pe(b,c.C,u.C.nextSibling);c=t[++i];p=l[--v]}else if(Re(u,d,r)){if(c.M==="slot"||p.M==="slot"){Ee(u.C.parentNode,false)}Ae(u,d,r);Pe(b,u.C,c.C);u=t[--a];d=l[++s]}else{o=-1;{for(f=i;f<=a;++f){if(t[f]&&t[f].k!==null&&t[f].k===d.k){o=f;break}}}if(o>=0){y=t[o];if(y.M!==d.M){h=Ne(t&&t[s],n,o)}else{Ae(y,d,r);t[o]=void 0;h=y.C}d=l[++s]}else{h=Ne(t&&t[s],n,s);d=l[++s]}if(h){{Pe(_e(c.C).parentNode,h,_e(c.C))}}}}if(i>a){xe(e,l[v+1]==null?null:l[v+1].C,n,l,s,v)}else if(s>v){Ce(t,i,a)}};var Re=(e,t,n=false)=>{if(e.M===t.M){if(e.M==="slot"){return e.N===t.N}if(!n){return e.k===t.k}if(n&&!e.k&&t.k){e.k=t.k}return true}return false};var _e=e=>e&&e["s-ol"]||e;var Ae=(e,n,l=false)=>{const r=n.C=e.C;const i=e.S;const s=n.S;const o=n.M;const f=n.j;let a;if(f==null){{Oe=o==="svg"?true:o==="foreignObject"?false:Oe}{if(o==="slot"&&!ge){if(e.N!==n.N){n.C["s-sn"]=n.N||"";Me(n.C.parentElement)}}he(e,n,Oe)}if(i!==null&&s!==null){Le(r,i,n,s,l)}else if(s!==null){if(e.j!==null){r.textContent=""}xe(r,null,n,s,0,s.length-1)}else if(!l&&t.updatable&&i!==null){Ce(i,0,i.length-1)}else;if(Oe&&o==="svg"){Oe=false}}else if(a=r["s-cr"]){a.parentNode.textContent=f}else if(e.j!==f){r.data=f}};var Fe=[];var Te=e=>{let t;let n;let l;const r=e.__childNodes||e.childNodes;for(const e of r){if(e["s-sr"]&&(t=e["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const r=e["s-sn"];for(l=n.length-1;l>=0;l--){t=n[l];if(!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==e["s-hn"]&&(!t["s-sh"]||t["s-sh"]!==e["s-hn"])){if(U(t,r)){let n=Fe.find((e=>e.L===t));$e=true;t["s-sn"]=t["s-sn"]||r;if(n){n.L["s-sh"]=e["s-hn"];n.R=e}else{t["s-sh"]=e["s-hn"];Fe.push({R:e,L:t})}if(t["s-sr"]){Fe.map((e=>{if(U(e.L,t["s-sn"])){n=Fe.find((e=>e.L===t));if(n&&!e.R){e.R=n.R}}}))}}else if(!Fe.some((e=>e.L===t))){Fe.push({L:t})}}}}if(e.nodeType===1){Te(e)}}};var Ue=e=>{{if(e.O&&e.O.ref){Se.push((()=>e.O.ref(null)))}e.S&&e.S.map(Ue)}};var De=(e,t)=>{{ke.push((()=>e(t)))}};var He=()=>{{Se.forEach((e=>e()));Se.length=0;ke.forEach((e=>e()));ke.length=0}};var Pe=(e,t,n,l)=>{{if(typeof t["s-sn"]==="string"&&!!t["s-sr"]&&!!t["s-cr"]){We(t["s-cr"],t,e,t.parentElement)}else if(typeof t["s-sn"]==="string"){e.insertBefore(t,n);const{slotNode:r}=W(t);if(r&&!l)P(r);return t}}if(e.__insertBefore){return e.__insertBefore(t,n)}else{return e==null?void 0:e.insertBefore(t,n)}};function We(e,t,n,l){var r,i;let s;if(e&&typeof t["s-sn"]==="string"&&!!t["s-sr"]&&e.parentNode&&e.parentNode["s-sc"]&&(s=t["s-si"]||e.parentNode["s-sc"])){const e=t["s-sn"];const o=t["s-hn"];(r=n.classList)==null?void 0:r.add(s+"-s");if(l&&((i=l.classList)==null?void 0:i.contains(s+"-s"))){let t=(l.__childNodes||l.childNodes)[0];let n=false;while(t){if(t["s-sn"]!==e&&t["s-hn"]===o&&!!t["s-sr"]){n=true;break}t=t.nextSibling}if(!n)l.classList.remove(s+"-s")}}}var ze=(e,t,n=false)=>{var l,r,i,s,o;const f=e.$hostElement$;const a=e.t;const c=e._||X(null,null);const u=te(t);const v=u?t:Q(null,null,t);we=f.tagName;if(a.A){v.O=v.O||{};a.A.forEach((([e,t])=>{{v.O[t]=f[e]}}))}if(n&&v.O){for(const e of Object.keys(v.O)){if(f.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){v.O[e]=f[e]}}}v.M=null;v.o|=4;e._=v;v.C=c.C=f.shadowRoot||f;{be=f["s-sc"]}ge=!!(a.o&1)&&!(a.o&128);{me=f["s-cr"];$e=false}Ae(c,v,n);{h.o|=1;if(je){Te(v.C);for(const e of Fe){const t=e.L;if(!t["s-ol"]&&d.document){const e=d.document.createTextNode("");e["s-nr"]=t;Pe(t.parentNode,t["s-ol"]=e,t,n)}}for(const e of Fe){const t=e.L;const o=e.R;if(t.nodeType===1&&n){t["s-ih"]=(l=t.hidden)!=null?l:false}if(o){const e=o.parentNode;let l=o.nextSibling;if(l&&l.nodeType===1){let n=(r=t["s-ol"])==null?void 0:r.previousSibling;while(n){let r=(i=n["s-nr"])!=null?i:null;if(r&&r["s-sn"]===t["s-sn"]&&e===(r.__parentNode||r.parentNode)){r=r.nextSibling;while(r===t||(r==null?void 0:r["s-sr"])){r=r==null?void 0:r.nextSibling}if(!r||!r["s-nr"]){l=r;break}}n=n.previousSibling}}const f=t.__parentNode||t.parentNode;const a=t.__nextSibling||t.nextSibling;if(!l&&e!==f||a!==l){if(t!==l){Pe(e,t,l,n);if(t.nodeType===8&&t.nodeValue.startsWith("s-nt-")){const e=d.document.createTextNode(t.nodeValue.replace(/^s-nt-/,""));e["s-hn"]=t["s-hn"];e["s-sn"]=t["s-sn"];e["s-sh"]=t["s-sh"];e["s-sr"]=t["s-sr"];e["s-ol"]=t["s-ol"];e["s-ol"]["s-nr"]=e;Pe(t.parentNode,e,t,n);t.parentNode.removeChild(t)}if(t.nodeType===1&&t.tagName!=="SLOT-FB"){t.hidden=(s=t["s-ih"])!=null?s:false}}}t&&typeof o["s-rf"]==="function"&&o["s-rf"](o)}else if(t.nodeType===1){t.hidden=true}}}if($e){_(v.C)}h.o&=-2;Fe.length=0}if(!ge&&!(a.o&1)&&f["s-cr"]){const e=v.C.__childNodes||v.C.childNodes;for(const t of e){if(t["s-hn"]!==we&&!t["s-sh"]){if(n&&t["s-ih"]==null){t["s-ih"]=(o=t.hidden)!=null?o:false}if(t.nodeType===1){t.hidden=true}else if(t.nodeType===3&&!!t.nodeValue.trim()){const e=d.document.createComment("s-nt-"+t.nodeValue);e["s-sn"]=t["s-sn"];Pe(t.parentNode,e,t,n);t.parentNode.removeChild(t)}}}}me=void 0;He()};var Be=(e,t)=>{if(t&&!e.F&&t["s-p"]){const n=t["s-p"].push(new Promise((l=>e.F=()=>{t["s-p"].splice(n-1,1);l()})))}};var Ve=(e,t)=>{{e.o|=16}if(e.o&4){e.o|=512;return}Be(e,e.T);const n=()=>qe(e,t);if(t){queueMicrotask((()=>{n()}));return}return M(n)};var qe=(e,t)=>{const n=e.$hostElement$;const l=B("scheduleUpdate",e.t.$);const r=n;if(!r){throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let i;if(t){i=Qe(r,"componentWillLoad",void 0,n)}else{i=Qe(r,"componentWillUpdate",void 0,n)}i=Ye(i,(()=>Qe(r,"componentWillRender",void 0,n)));l();return Ye(i,(()=>Ze(e,r,t)))};var Ye=(e,t)=>Ie(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var Ie=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var Ze=async(e,t,n)=>{var l;const r=e.$hostElement$;const i=B("update",e.t.$);const s=r["s-rc"];if(n){Z(e)}const o=B("render",e.t.$);{Ge(e,t,r,n)}if(s){s.map((e=>e()));r["s-rc"]=void 0}o();i();{const t=(l=r["s-p"])!=null?l:[];const n=()=>Je(e);if(t.length===0){n()}else{Promise.all(t).then(n).catch(n);e.o|=4;t.length=0}}};var Ge=(e,t,n,l)=>{try{t=t.render();{e.o&=-17}{e.o|=2}{{{ze(e,t,l)}}}}catch(t){a(t,e.$hostElement$)}return null};var Je=e=>{const t=e.t.$;const n=e.$hostElement$;const l=B("postUpdate",t);const r=n;const i=e.T;Qe(r,"componentDidRender",void 0,n);if(!(e.o&64)){e.o|=64;{Xe(n)}Qe(r,"componentDidLoad",void 0,n);l();{e.p(n);if(!i){Ke()}}}else{Qe(r,"componentDidUpdate",void 0,n);l()}{if(e.F){e.F();e.F=void 0}if(e.o&512){N((()=>Ve(e,false)))}e.o&=-517}};var Ke=t=>{N((()=>ae(d,"appload",{detail:{namespace:e}})))};var Qe=(e,t,n,l)=>{if(e&&e[t]){try{return e[t](n)}catch(e){a(e,l)}}return void 0};var Xe=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var et=(e,t)=>s(e).i.get(t);var tt=(e,t,n,l)=>{const r=s(e);if(!r){return}const i=e;const o=r.i.get(t);const f=r.o;const c=i;n=se(n,l.l[t][0]);const u=Number.isNaN(o)&&Number.isNaN(n);const v=n!==o&&!u;if(v){r.i.set(t,n);if(l.U){const e=l.U[t];if(e){e.map((e=>{try{const[[l,i]]=Object.entries(e);if(f&128||i&1){if(!c){r.D.push((()=>{r.H[l](n,o,t)}))}else{c[l](n,o,t)}}}catch(e){a(e,i)}}))}}if(f&2){if(c.componentShouldUpdate){const e=c.componentShouldUpdate(n,o,t);if(e===false&&!(f&16)){return}}if(!(f&16)){Ve(r,false)}}}};var nt=(e,n,l)=>{var i,o;const f=e.prototype;{{if(e.watchers&&!n.U){n.U=ie(e.watchers)}if(e.deserializers&&!n.P){n.P=e.deserializers}if(e.serializers&&!n.W){n.W=e.serializers}}const l=Object.entries((i=n.l)!=null?i:{});l.map((([e,[t]])=>{if(t&31||t&32){const{get:l,set:i}=r(f,e)||{};if(l)n.l[e][0]|=2048;if(i)n.l[e][0]|=4096;{Object.defineProperty(f,e,{get(){{return l?l.apply(this):et(this,e)}},configurable:true,enumerable:true})}Object.defineProperty(f,e,{set(l){const r=s(this);if(!r){return}if(i){const s=t&32?this[e]:r.$hostElement$[e];if(typeof s==="undefined"&&r.i.get(e)){l=r.i.get(e)}i.apply(this,[se(l,t)]);l=t&32?this[e]:r.$hostElement$[e];tt(this,e,l,n);return}{tt(this,e,l,n);return}}})}}));{const r=new Map;f.attributeChangedCallback=function(e,i,o){h.jmp((()=>{var a;const c=r.get(e);const u=s(this);if(this.hasOwnProperty(c)&&t.lazyLoad);if(f.hasOwnProperty(c)&&typeof this[c]==="number"&&this[c]==o){return}else if(c==null){const t=u==null?void 0:u.o;if(u&&t&&!(t&8)&&o!==i){const l=this;const r=l;const s=(a=n.U)==null?void 0:a[e];s==null?void 0:s.forEach((n=>{const[[l,s]]=Object.entries(n);if(r[l]!=null&&(t&128||s&1)){r[l].call(r,o,i,e)}}))}return}const v=l.find((([e])=>e===c));const d=v&&v[1][0]&4;const p=d&&o===null&&this[c]===void 0;if(d){o=o===null||o==="false"?false:true}const h=Object.getOwnPropertyDescriptor(f,c);if(!p&&o!=this[c]&&(!h.get||!!h.set)){this[c]=o}}))};e.observedAttributes=Array.from(new Set([...Object.keys((o=n.U)!=null?o:{}),...l.filter((([e,t])=>t[0]&31)).map((([e,t])=>{var l;const i=t[1]||e;r.set(i,e);if(t[0]&512){(l=n.A)==null?void 0:l.push([e,i])}return i}))]))}}return e};var lt=async(e,n,l,r)=>{let i;try{if((n.o&32)===0){n.o|=32;{i=e.constructor;const t=e.localName;customElements.whenDefined(t).then((()=>n.o|=128))}if(i&&i.style){let e;if(typeof i.style==="string"){e=i.style}const n=G(l);if(!c.has(n)||t.hotModuleReplacement){const t=B("registerStyles",l.$);Y(n,e,!!(l.o&1));t()}}}const r=n.T;const s=()=>Ve(n,true);if(r&&r["s-rc"]){r["s-rc"].push(s)}else{s()}}catch(t){a(t,e);if(n.F){n.F();n.F=void 0}if(n.p){n.p(e)}}};var rt=(e,t)=>{};var it=e=>{if((h.o&1)===0){const t=s(e);if(!t){return}const n=t.t;const l=B("connectedCallback",n.$);if(!(t.o&1)){t.o|=1;{if(n.o&(4|8)){st(e)}}{let n=e;while(n=n.parentNode||n.host){if(n["s-p"]){Be(t,t.T=n);break}}}if(n.l){Object.entries(n.l).map((([t,[n]])=>{if(n&31&&Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];delete e[t];e[t]=n}}))}{lt(e,t,n)}}else{at(e,t,n.B);if(t==null?void 0:t.H);else if(t==null?void 0:t.v){t.v.then((()=>rt()))}}l()}};var st=e=>{if(!d.document){return}const t=e["s-cr"]=d.document.createComment("");t["s-cn"]=true;Pe(e,t,e.firstChild)};var ot=async e=>{if((h.o&1)===0){const t=s(e);{if(t==null?void 0:t.V){t.V.map((e=>e()));t.V=void 0}}}if(q.has(e)){q.delete(e)}if(e.shadowRoot&&q.has(e.shadowRoot)){q.delete(e.shadowRoot)}};var ft=(e,t)=>{const n={o:t[0],$:t[1]};try{{n.l=t[2]}{n.B=t[3]}{n.U=ie(e.U);n.P=e.P;n.W=e.W}{n.A=[]}const l=e.prototype.connectedCallback;const r=e.prototype.disconnectedCallback;Object.assign(e.prototype,{__hasHostListenerAttached:false,__registerHost(){o(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const e=s(this);if(!e){return}at(this,e,n.B);this.__hasHostListenerAttached=true}it(this);if(l){l.call(this)}},disconnectedCallback(){ot(this);if(r){r.call(this)}},__attachShadow(){{if(!this.shadowRoot){R.call(this,n)}else{if(this.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${n.$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}}});Object.defineProperty(e,"is",{value:n.$,configurable:true});return nt(e,n)}catch(t){a(t);return e}};var at=(e,t,n,l)=>{if(n&&d.document){n.map((([n,l,r])=>{const i=e;const s=ct(t,r);const o=ut(n);h.ael(i,l,s,o);(t.V=t.V||[]).push((()=>h.rel(i,l,s,o)))}))}};var ct=(e,t)=>n=>{try{{e.$hostElement$[t](n)}}catch(t){a(t,e.$hostElement$)}};var ut=e=>y?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;var vt=e=>h.m=e;var dt=e=>Object.assign(h,e);var pt=new WeakMap;function ht(e,t){let n=pt.get(t);if(!n){const e={o:0,$:t.tagName};n={o:0,t:e,$hostElement$:t};pt.set(t,n)}ze(n,e)}function yt(e){return e}export{p as H,ee as a,fe as c,E as getAssetPath,Q as h,ft as p,ht as render,x as setAssetPath,vt as setNonce,dt as setPlatformOptions,yt as t};
1
+ const e="ds-mo";const t={hotModuleReplacement:false,hydratedSelectorName:"hydrated",lazyLoad:false,slotRelocation:true,state:true,updatable:true};var n="http://www.w3.org/2000/svg";var l="http://www.w3.org/1999/xhtml";function r(e,t,n){const l=typeof HTMLElement!=="undefined"?HTMLElement.prototype:null;while(e&&e!==l){const l=Object.getOwnPropertyDescriptor(e,t);if(l&&(!n||l.get))return l;e=Object.getPrototypeOf(e)}return void 0}var i=(e,t)=>{var n;const l=t.t;const i=Object.entries((n=l.l)!=null?n:{});i.map((([n,[l]])=>{if(l&31||l&32){const l=e[n];const i=r(Object.getPrototypeOf(e),n,true)||Object.getOwnPropertyDescriptor(e,n);if(i){Object.defineProperty(e,n,{get(){return i.get.call(this)},set(e){i.set.call(this,e)},configurable:true,enumerable:true})}if(t.i.has(n)){e[n]=t.i.get(n)}else if(l!==void 0){e[n]=l}}}))};var s=e=>{if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var o=(e,n)=>{const l={o:0,$hostElement$:e,t:n,i:new Map,u:new Map};{l.v=new Promise((e=>l.p=e));e["s-p"]=[];e["s-rc"]=[]}const r=l;e.__stencil__getHostRef=()=>r;if(n.o&512&&t.state){i(e,l)}return r};var f=(e,t)=>t in e;var a=(e,t)=>(0,console.error)(e,t);var c=new Map;var u="slot-fb{display:contents}slot-fb[hidden]{display:none}";var v="http://www.w3.org/1999/xlink";var d=typeof window!=="undefined"?window:{};var p=d.HTMLElement||class{};var h={o:0,h:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)};var y=(()=>{var e;let t=false;try{(e=d.document)==null?void 0:e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=true}}))}catch(e){}return t})();var b=e=>Promise.resolve(e);var m=(()=>{try{if(!d.document.adoptedStyleSheets){return false}new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var w=m?(()=>!!d.document&&Object.getOwnPropertyDescriptor(d.document.adoptedStyleSheets,"length").writable)():false;var g=false;var $=[];var j=[];var O=(e,t)=>n=>{e.push(n);if(!g){g=true;if(t&&h.o&4){N(k)}else{h.raf(k)}}};var S=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){a(e)}}e.length=0};var k=()=>{S($);{S(j);if(g=$.length>0){h.raf(k)}}};var N=e=>b().then(e);var M=O(j,true);var E=e=>{const t=new URL(e,h.h);return t.origin!==d.location.origin?t.href:t.pathname};var x=e=>h.h=e;function C(e){return void 0}var L;function R(e){var t;const n={mode:"open"};const l=this.attachShadow(n);if(L===void 0)L=(t=C())!=null?t:null;if(L){if(w){l.adoptedStyleSheets.push(L)}else{l.adoptedStyleSheets=[...l.adoptedStyleSheets,L]}}}var _=e=>{const t=z(e,"childNodes");if(e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"){F(t,e.tagName).forEach((e=>{if(e.nodeType===1&&e.tagName==="SLOT-FB"){if(T(e,D(e),false).length){e.hidden=true}else{e.hidden=false}}}))}let n=0;for(n=0;n<t.length;n++){const e=t[n];if(e.nodeType===1&&z(e,"childNodes").length){_(e)}}};var A=e=>{const t=[];for(let n=0;n<e.length;n++){const l=e[n]["s-nr"]||void 0;if(l&&l.isConnected){t.push(l)}}return t};function F(e,t,n){let l=0;let r=[];let i;for(;l<e.length;l++){i=e[l];if(i["s-sr"]&&(!t||i["s-hn"]===t)&&(n===void 0||D(i)===n)){r.push(i);if(typeof n!=="undefined")return r}r=[...r,...F(i.childNodes,t,n)]}return r}var T=(e,t,n=true)=>{const l=[];if(n&&e["s-sr"]||!e["s-sr"])l.push(e);let r=e;while(r=r.nextSibling){if(D(r)===t&&(n||!r["s-sr"]))l.push(r)}return l};var U=(e,t)=>{if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var D=e=>typeof e["s-sn"]==="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function H(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;const t=t=>function(e){const n=[];const l=this["s-sn"];if(e==null?void 0:e.flatten){console.error(`\n Flattening is not supported for Stencil non-shadow slots.\n You can use \`.childNodes\` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n `)}const r=this["s-cr"].parentElement;const i=r.__childNodes?r.childNodes:A(r.childNodes);i.forEach((e=>{if(l===D(e)){n.push(e)}}));if(t){return n.filter((e=>e.nodeType===1))}return n}.bind(e);e.assignedElements=t(true);e.assignedNodes=t(false)}function P(e){e.dispatchEvent(new CustomEvent("slotchange",{bubbles:false,cancelable:false,composed:false}))}function W(e,t){var n;t=t||((n=e["s-ol"])==null?void 0:n.parentElement);if(!t)return{slotNode:null,slotName:""};const l=e["s-sn"]=D(e)||"";const r=z(t,"childNodes");const i=F(r,t.tagName,l)[0];return{slotNode:i,slotName:l}}function z(e,t){if("__"+t in e){const n=e["__"+t];if(typeof n!=="function")return n;return n.bind(e)}else{if(typeof e[t]!=="function")return e[t];return e[t].bind(e)}}var B=(e,t="")=>{{return()=>{}}};function V(e){var t,n,l;return(l=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?l:void 0}var q=new WeakMap;var Y=(e,t,n)=>{let l=c.get(e);if(m&&n){l=l||new CSSStyleSheet;if(typeof l==="string"){l=t}else{l.replaceSync(t)}}else{l=t}c.set(e,l)};var I=(e,t,n)=>{var l,r,i;const s=G(t);const o=c.get(s);if(!d.document){return s}e=e.nodeType===11?e:d.document;if(o){if(typeof o==="string"){e=e.head||e;let n=q.get(e);let i;if(!n){q.set(e,n=new Set)}if(!n.has(s)){i=d.document.createElement("style");i.textContent=o;const f=(l=h.m)!=null?l:V(d.document);if(f!=null){i.setAttribute("nonce",f)}if(!(t.o&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(i,(n==null?void 0:n.parentNode)===e?n:null)}else if("host"in e){if(m){const t=(r=e.defaultView)!=null?r:e.ownerDocument.defaultView;const n=new t.CSSStyleSheet;n.replaceSync(o);if(w){e.adoptedStyleSheets.unshift(n)}else{e.adoptedStyleSheets=[n,...e.adoptedStyleSheets]}}else{const t=e.querySelector("style");if(t&&true){t.textContent=o+t.textContent}else{e.prepend(i)}}}else{e.append(i)}}if(t.o&1){e.insertBefore(i,null)}if(t.o&4){i.textContent+=u}if(n){n.add(s)}}}else{let t=q.get(e);if(!t){q.set(e,t=new Set)}if(!t.has(s)){const n=(i=e.defaultView)!=null?i:e.ownerDocument.defaultView;let l;if(o.constructor===n.CSSStyleSheet){l=o}else{l=new n.CSSStyleSheet;for(let e=0;e<o.cssRules.length;e++){l.insertRule(o.cssRules[e].cssText,e)}}if(w){e.adoptedStyleSheets.push(l)}else{e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]}t.add(s)}}}return s};var Z=e=>{const t=e.t;const n=e.$hostElement$;const l=t.o;const r=B("attachStyles",t.$);const i=I(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(l&10){n["s-sc"]=i;n.classList.add(i+"-h")}r()};var G=(e,t)=>"sc-"+e.$;var J=e=>e!=null&&e!==void 0;var K=e=>{e=typeof e;return e==="object"||e==="function"};var Q=(e,t,...n)=>{if(typeof e==="string"){e=bt(e)}let l=null;let r=null;let i=null;let s=false;let o=false;const f=[];const a=t=>{for(let n=0;n<t.length;n++){l=t[n];if(Array.isArray(l)){a(l)}else if(l!=null&&typeof l!=="boolean"){if(s=typeof e!=="function"&&!K(l)){l=String(l)}if(s&&o){f[f.length-1].j+=l}else{f.push(s?X(null,l):l)}o=s}}};a(n);if(t){if(t.key){r=t.key}if(t.name){i=t.name}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,f,ne)}const c=X(e,null);c.O=t;if(f.length>0){c.S=f}{c.k=r}{c.N=i}return c};var X=(e,t)=>{const n={o:0,M:e,j:t!=null?t:null,C:null,S:null};{n.O=null}{n.k=null}{n.N=null}return n};var ee={};var te=e=>e&&e.M===ee;var ne={forEach:(e,t)=>e.map(le).forEach(t),map:(e,t)=>e.map(le).map(t).map(re)};var le=e=>({vattrs:e.O,vchildren:e.S,vkey:e.k,vname:e.N,vtag:e.M,vtext:e.j});var re=e=>{if(typeof e.vtag==="function"){const t={...e.vattrs};if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return Q(e.vtag,t,...e.vchildren||[])}const t=X(e.vtag,e.vtext);t.O=e.vattrs;t.S=e.vchildren;t.k=e.vkey;t.N=e.vname;return t};var ie=e=>{if(!e)return void 0;const t=Object.keys(e);if(t.length===0)return void 0;let n=false;for(const l of t){if(n)break;for(const t of e[l]){if(typeof t==="string"){n=true;break}}}if(!n)return e;const l={};for(const n of t){l[n]=e[n].map((e=>typeof e==="string"?{[e]:0}:e))}return l};var se=(e,t,n)=>{if(e!=null&&!K(e)){if(t&4){{return e==="false"?false:e===""||!!e}}if(t&2){return typeof e==="string"?parseFloat(e):typeof e==="number"?e:NaN}if(t&1){return String(e)}return e}return e};var oe=e=>e;var fe=(e,t,n)=>{const l=oe(e);return{emit:e=>ae(l,t,{bubbles:true,composed:true,cancelable:true,detail:e})}};var ae=(e,t,n)=>{const l=h.ce(t,n);e.dispatchEvent(l);return l};var ce=(e,t,n,l,r,i,o)=>{if(n===l){return}let a=f(e,t);let c=t.toLowerCase();if(t==="class"){const t=e.classList;const r=ve(n);let i=ve(l);{t.remove(...r.filter((e=>e&&!i.includes(e))));t.add(...i.filter((e=>e&&!r.includes(e))))}}else if(t==="style"){{for(const t in n){if(!l||l[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in l){if(!n||l[t]!==n[t]){if(t.includes("-")){e.style.setProperty(t,l[t])}else{e.style[t]=l[t]}}}}else if(t==="key");else if(t==="ref"){if(l){De(l,e)}}else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(f(d,c)){t=c.slice(2)}else{t=c[2]+t.slice(3)}if(n||l){const r=t.endsWith(de);t=t.replace(pe,"");if(n){h.rel(e,t,n,r)}if(l){h.ael(e,t,l,r)}}}else if(t[0]==="a"&&t.startsWith("attr:")){const n=t.slice(5);let r;{const t=s(e);if(t&&t.t&&t.t.l){const e=t.t.l[n];if(e&&e[1]){r=e[1]}}}if(!r){r=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}if(l==null||l===false){if(l!==false||e.getAttribute(r)===""){e.removeAttribute(r)}}else{e.setAttribute(r,l===true?"":l)}return}else if(t[0]==="p"&&t.startsWith("prop:")){const n=t.slice(5);try{e[n]=l}catch(e){}return}else{const s=K(l);if((a||s&&l!==null)&&!r){try{if(!e.tagName.includes("-")){const r=l==null?"":l;if(t==="list"){a=false}else if(n==null||e[t]!==r){if(typeof e.__lookupSetter__(t)==="function"){e[t]=r}else{e.setAttribute(t,r)}}}else if(e[t]!==l){e[t]=l}}catch(e){}}let o=false;{if(c!==(c=c.replace(/^xlink\:?/,""))){t=c;o=true}}if(l==null||l===false){if(l!==false||e.getAttribute(t)===""){if(o){e.removeAttributeNS(v,t)}else{e.removeAttribute(t)}}}else if((!a||i&4||r)&&!s&&e.nodeType===1){l=l===true?"":l;if(o){e.setAttributeNS(v,t,l)}else{e.setAttribute(t,l)}}}};var ue=/\s/;var ve=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(ue)};var de="Capture";var pe=new RegExp(de+"$");var he=(e,t,n,l)=>{const r=t.C.nodeType===11&&t.C.host?t.C.host:t.C;const i=e&&e.O||{};const s=t.O||{};{for(const e of ye(Object.keys(i))){if(!(e in s)){ce(r,e,i[e],void 0,n,t.o)}}}for(const e of ye(Object.keys(s))){ce(r,e,i[e],s[e],n,t.o)}};function ye(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var be;var me;var we;var ge=false;var $e=false;var je=false;var Oe=false;var Se=[];var ke=[];var Ne=(e,r,i)=>{var s;const o=r.S[i];let f=0;let a;let c;let u;if(!ge){je=true;if(o.M==="slot"){o.o|=o.S?2:1}}if(o.j!=null){a=o.C=d.document.createTextNode(o.j)}else if(o.o&1){a=o.C=d.document.createTextNode("");{he(null,o,Oe)}}else{if(!Oe){Oe=o.M==="svg"}if(!d.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.")}a=o.C=d.document.createElementNS(Oe?n:l,!ge&&t.slotRelocation&&o.o&2?"slot-fb":o.M);if(Oe&&o.M==="foreignObject"){Oe=false}{he(null,o,Oe)}if(J(be)&&a["s-si"]!==be){a.classList.add(a["s-si"]=be)}if(o.S){const t=o.M==="template"?a.content:a;for(f=0;f<o.S.length;++f){c=Ne(e,o,f);if(c){t.appendChild(c)}}}{if(o.M==="svg"){Oe=false}else if(a.tagName==="foreignObject"){Oe=true}}}a["s-hn"]=we;{if(o.o&(2|1)){a["s-sr"]=true;a["s-cr"]=me;a["s-sn"]=o.N||"";a["s-rf"]=(s=o.O)==null?void 0:s.ref;H(a);u=e&&e.S&&e.S[i];if(u&&u.M===o.M&&e.C){Me(e.C)}{We(me,a,r.C,e==null?void 0:e.C)}}}return a};var Me=e=>{h.o|=1;const t=e.closest(we.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((e=>e["s-cr"]));const l=Array.from(e.__childNodes||e.childNodes);for(const e of n?l.reverse():l){if(e["s-sh"]!=null){Pe(t,e,n!=null?n:null);e["s-sh"]=void 0;je=true}}}h.o&=-2};var Ee=(e,t)=>{h.o|=1;const n=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let t=e;while(t=t.nextSibling){if(t&&t["s-sn"]===e["s-sn"]&&t["s-sh"]===we){n.push(t)}}}for(let e=n.length-1;e>=0;e--){const l=n[e];if(l["s-hn"]!==we&&l["s-ol"]){Pe(_e(l).parentNode,l,_e(l));l["s-ol"].remove();l["s-ol"]=void 0;l["s-sh"]=void 0;je=true}if(t){Ee(l,t)}}h.o&=-2};var xe=(e,t,n,l,r,i)=>{let s=e["s-cr"]&&e["s-cr"].parentNode||e;let o;if(s.shadowRoot&&s.tagName===we){s=s.shadowRoot}if(n.M==="template"){s=s.content}for(;r<=i;++r){if(l[r]){o=Ne(null,n,r);if(o){l[r].C=o;Pe(s,o,_e(t))}}}};var Ce=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.C;Ue(t);if(e){{$e=true;if(e["s-ol"]){e["s-ol"].remove()}else{Ee(e,true)}}e.remove()}}}};var Le=(e,t,n,l,r=false)=>{let i=0;let s=0;let o=0;let f=0;let a=t.length-1;let c=t[0];let u=t[a];let v=l.length-1;let d=l[0];let p=l[v];let h;let y;const b=n.M==="template"?e.content:e;while(i<=a&&s<=v){if(c==null){c=t[++i]}else if(u==null){u=t[--a]}else if(d==null){d=l[++s]}else if(p==null){p=l[--v]}else if(Re(c,d,r)){Ae(c,d,r);c=t[++i];d=l[++s]}else if(Re(u,p,r)){Ae(u,p,r);u=t[--a];p=l[--v]}else if(Re(c,p,r)){if(c.M==="slot"||p.M==="slot"){Ee(c.C.parentNode,false)}Ae(c,p,r);Pe(b,c.C,u.C.nextSibling);c=t[++i];p=l[--v]}else if(Re(u,d,r)){if(c.M==="slot"||p.M==="slot"){Ee(u.C.parentNode,false)}Ae(u,d,r);Pe(b,u.C,c.C);u=t[--a];d=l[++s]}else{o=-1;{for(f=i;f<=a;++f){if(t[f]&&t[f].k!==null&&t[f].k===d.k){o=f;break}}}if(o>=0){y=t[o];if(y.M!==d.M){h=Ne(t&&t[s],n,o)}else{Ae(y,d,r);t[o]=void 0;h=y.C}d=l[++s]}else{h=Ne(t&&t[s],n,s);d=l[++s]}if(h){{Pe(_e(c.C).parentNode,h,_e(c.C))}}}}if(i>a){xe(e,l[v+1]==null?null:l[v+1].C,n,l,s,v)}else if(s>v){Ce(t,i,a)}};var Re=(e,t,n=false)=>{if(e.M===t.M){if(e.M==="slot"){return e.N===t.N}if(!n){return e.k===t.k}if(n&&!e.k&&t.k){e.k=t.k}return true}return false};var _e=e=>e&&e["s-ol"]||e;var Ae=(e,n,l=false)=>{const r=n.C=e.C;const i=e.S;const s=n.S;const o=n.M;const f=n.j;let a;if(f==null){{Oe=o==="svg"?true:o==="foreignObject"?false:Oe}{if(o==="slot"&&!ge){if(e.N!==n.N){n.C["s-sn"]=n.N||"";Me(n.C.parentElement)}}he(e,n,Oe)}if(i!==null&&s!==null){Le(r,i,n,s,l)}else if(s!==null){if(e.j!==null){r.textContent=""}xe(r,null,n,s,0,s.length-1)}else if(!l&&t.updatable&&i!==null){Ce(i,0,i.length-1)}else;if(Oe&&o==="svg"){Oe=false}}else if(a=r["s-cr"]){a.parentNode.textContent=f}else if(e.j!==f){r.data=f}};var Fe=[];var Te=e=>{let t;let n;let l;const r=e.__childNodes||e.childNodes;for(const e of r){if(e["s-sr"]&&(t=e["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const r=e["s-sn"];for(l=n.length-1;l>=0;l--){t=n[l];if(!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==e["s-hn"]&&(!t["s-sh"]||t["s-sh"]!==e["s-hn"])){if(U(t,r)){let n=Fe.find((e=>e.L===t));$e=true;t["s-sn"]=t["s-sn"]||r;if(n){n.L["s-sh"]=e["s-hn"];n.R=e}else{t["s-sh"]=e["s-hn"];Fe.push({R:e,L:t})}if(t["s-sr"]){Fe.map((e=>{if(U(e.L,t["s-sn"])){n=Fe.find((e=>e.L===t));if(n&&!e.R){e.R=n.R}}}))}}else if(!Fe.some((e=>e.L===t))){Fe.push({L:t})}}}}if(e.nodeType===1){Te(e)}}};var Ue=e=>{{if(e.O&&e.O.ref){Se.push((()=>e.O.ref(null)))}e.S&&e.S.map(Ue)}};var De=(e,t)=>{{ke.push((()=>e(t)))}};var He=()=>{{Se.forEach((e=>e()));Se.length=0;ke.forEach((e=>e()));ke.length=0}};var Pe=(e,t,n,l)=>{{if(typeof t["s-sn"]==="string"&&!!t["s-sr"]&&!!t["s-cr"]){We(t["s-cr"],t,e,t.parentElement)}else if(typeof t["s-sn"]==="string"){e.insertBefore(t,n);const{slotNode:r}=W(t);if(r&&!l)P(r);return t}}if(e.__insertBefore){return e.__insertBefore(t,n)}else{return e==null?void 0:e.insertBefore(t,n)}};function We(e,t,n,l){var r,i;let s;if(e&&typeof t["s-sn"]==="string"&&!!t["s-sr"]&&e.parentNode&&e.parentNode["s-sc"]&&(s=t["s-si"]||e.parentNode["s-sc"])){const e=t["s-sn"];const o=t["s-hn"];(r=n.classList)==null?void 0:r.add(s+"-s");if(l&&((i=l.classList)==null?void 0:i.contains(s+"-s"))){let t=(l.__childNodes||l.childNodes)[0];let n=false;while(t){if(t["s-sn"]!==e&&t["s-hn"]===o&&!!t["s-sr"]){n=true;break}t=t.nextSibling}if(!n)l.classList.remove(s+"-s")}}}var ze=(e,t,n=false)=>{var l,r,i,s,o;const f=e.$hostElement$;const a=e.t;const c=e._||X(null,null);const u=te(t);const v=u?t:Q(null,null,t);we=f.tagName;if(a.A){v.O=v.O||{};a.A.forEach((([e,t])=>{{v.O[t]=f[e]}}))}if(n&&v.O){for(const e of Object.keys(v.O)){if(f.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){v.O[e]=f[e]}}}v.M=null;v.o|=4;e._=v;v.C=c.C=f.shadowRoot||f;{be=f["s-sc"]}ge=!!(a.o&1)&&!(a.o&128);{me=f["s-cr"];$e=false}Ae(c,v,n);{h.o|=1;if(je){Te(v.C);for(const e of Fe){const t=e.L;if(!t["s-ol"]&&d.document){const e=d.document.createTextNode("");e["s-nr"]=t;Pe(t.parentNode,t["s-ol"]=e,t,n)}}for(const e of Fe){const t=e.L;const o=e.R;if(t.nodeType===1&&n){t["s-ih"]=(l=t.hidden)!=null?l:false}if(o){const e=o.parentNode;let l=o.nextSibling;if(l&&l.nodeType===1){let n=(r=t["s-ol"])==null?void 0:r.previousSibling;while(n){let r=(i=n["s-nr"])!=null?i:null;if(r&&r["s-sn"]===t["s-sn"]&&e===(r.__parentNode||r.parentNode)){r=r.nextSibling;while(r===t||(r==null?void 0:r["s-sr"])){r=r==null?void 0:r.nextSibling}if(!r||!r["s-nr"]){l=r;break}}n=n.previousSibling}}const f=t.__parentNode||t.parentNode;const a=t.__nextSibling||t.nextSibling;if(!l&&e!==f||a!==l){if(t!==l){Pe(e,t,l,n);if(t.nodeType===8&&t.nodeValue.startsWith("s-nt-")){const e=d.document.createTextNode(t.nodeValue.replace(/^s-nt-/,""));e["s-hn"]=t["s-hn"];e["s-sn"]=t["s-sn"];e["s-sh"]=t["s-sh"];e["s-sr"]=t["s-sr"];e["s-ol"]=t["s-ol"];e["s-ol"]["s-nr"]=e;Pe(t.parentNode,e,t,n);t.parentNode.removeChild(t)}if(t.nodeType===1&&t.tagName!=="SLOT-FB"){t.hidden=(s=t["s-ih"])!=null?s:false}}}t&&typeof o["s-rf"]==="function"&&o["s-rf"](o)}else if(t.nodeType===1){t.hidden=true}}}if($e){_(v.C)}h.o&=-2;Fe.length=0}if(!ge&&!(a.o&1)&&f["s-cr"]){const e=v.C.__childNodes||v.C.childNodes;for(const t of e){if(t["s-hn"]!==we&&!t["s-sh"]){if(n&&t["s-ih"]==null){t["s-ih"]=(o=t.hidden)!=null?o:false}if(t.nodeType===1){t.hidden=true}else if(t.nodeType===3&&!!t.nodeValue.trim()){const e=d.document.createComment("s-nt-"+t.nodeValue);e["s-sn"]=t["s-sn"];Pe(t.parentNode,e,t,n);t.parentNode.removeChild(t)}}}}me=void 0;He()};var Be=(e,t)=>{if(t&&!e.F&&t["s-p"]){const n=t["s-p"].push(new Promise((l=>e.F=()=>{t["s-p"].splice(n-1,1);l()})))}};var Ve=(e,t)=>{{e.o|=16}if(e.o&4){e.o|=512;return}Be(e,e.T);const n=()=>qe(e,t);if(t){queueMicrotask((()=>{n()}));return}return M(n)};var qe=(e,t)=>{const n=e.$hostElement$;const l=B("scheduleUpdate",e.t.$);const r=n;if(!r){throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let i;if(t){i=Qe(r,"componentWillLoad",void 0,n)}else{i=Qe(r,"componentWillUpdate",void 0,n)}i=Ye(i,(()=>Qe(r,"componentWillRender",void 0,n)));l();return Ye(i,(()=>Ze(e,r,t)))};var Ye=(e,t)=>Ie(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var Ie=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var Ze=async(e,t,n)=>{var l;const r=e.$hostElement$;const i=B("update",e.t.$);const s=r["s-rc"];if(n){Z(e)}const o=B("render",e.t.$);{Ge(e,t,r,n)}if(s){s.map((e=>e()));r["s-rc"]=void 0}o();i();{const t=(l=r["s-p"])!=null?l:[];const n=()=>Je(e);if(t.length===0){n()}else{Promise.all(t).then(n).catch(n);e.o|=4;t.length=0}}};var Ge=(e,t,n,l)=>{try{t=t.render();{e.o&=-17}{e.o|=2}{{{ze(e,t,l)}}}}catch(t){a(t,e.$hostElement$)}return null};var Je=e=>{const t=e.t.$;const n=e.$hostElement$;const l=B("postUpdate",t);const r=n;const i=e.T;Qe(r,"componentDidRender",void 0,n);if(!(e.o&64)){e.o|=64;{Xe(n)}Qe(r,"componentDidLoad",void 0,n);l();{e.p(n);if(!i){Ke()}}}else{Qe(r,"componentDidUpdate",void 0,n);l()}{if(e.F){e.F();e.F=void 0}if(e.o&512){N((()=>Ve(e,false)))}e.o&=-517}};var Ke=t=>{N((()=>ae(d,"appload",{detail:{namespace:e}})))};var Qe=(e,t,n,l)=>{if(e&&e[t]){try{return e[t](n)}catch(e){a(e,l)}}return void 0};var Xe=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var et=(e,t)=>s(e).i.get(t);var tt=(e,t,n,l)=>{const r=s(e);if(!r){return}const i=e;const o=r.i.get(t);const f=r.o;const c=i;n=se(n,l.l[t][0]);const u=Number.isNaN(o)&&Number.isNaN(n);const v=n!==o&&!u;if(v){r.i.set(t,n);if(l.U){const e=l.U[t];if(e){e.map((e=>{try{const[[l,i]]=Object.entries(e);if(f&128||i&1){if(!c){r.D.push((()=>{r.H[l](n,o,t)}))}else{c[l](n,o,t)}}}catch(e){a(e,i)}}))}}if(f&2){if(c.componentShouldUpdate){const e=c.componentShouldUpdate(n,o,t);if(e===false&&!(f&16)){return}}if(!(f&16)){Ve(r,false)}}}};var nt=(e,n,l)=>{var i,o;const f=e.prototype;{{if(e.watchers&&!n.U){n.U=ie(e.watchers)}if(e.deserializers&&!n.P){n.P=e.deserializers}if(e.serializers&&!n.W){n.W=e.serializers}}const l=Object.entries((i=n.l)!=null?i:{});l.map((([e,[t]])=>{if(t&31||t&32){const{get:l,set:i}=r(f,e)||{};if(l)n.l[e][0]|=2048;if(i)n.l[e][0]|=4096;{Object.defineProperty(f,e,{get(){{return l?l.apply(this):et(this,e)}},configurable:true,enumerable:true})}Object.defineProperty(f,e,{set(l){const r=s(this);if(!r){return}if(i){const s=t&32?this[e]:r.$hostElement$[e];if(typeof s==="undefined"&&r.i.get(e)){l=r.i.get(e)}i.apply(this,[se(l,t)]);l=t&32?this[e]:r.$hostElement$[e];tt(this,e,l,n);return}{tt(this,e,l,n);return}}})}}));{const r=new Map;f.attributeChangedCallback=function(e,i,o){h.jmp((()=>{var a;const c=r.get(e);const u=s(this);if(this.hasOwnProperty(c)&&t.lazyLoad);if(f.hasOwnProperty(c)&&typeof this[c]==="number"&&this[c]==o){return}else if(c==null){const t=u==null?void 0:u.o;if(u&&t&&!(t&8)&&o!==i){const l=this;const r=l;const s=(a=n.U)==null?void 0:a[e];s==null?void 0:s.forEach((n=>{const[[l,s]]=Object.entries(n);if(r[l]!=null&&(t&128||s&1)){r[l].call(r,o,i,e)}}))}return}const v=l.find((([e])=>e===c));const d=v&&v[1][0]&4;const p=d&&o===null&&this[c]===void 0;if(d){o=o===null||o==="false"?false:true}const h=Object.getOwnPropertyDescriptor(f,c);if(!p&&o!=this[c]&&(!h.get||!!h.set)){this[c]=o}}))};e.observedAttributes=Array.from(new Set([...Object.keys((o=n.U)!=null?o:{}),...l.filter((([e,t])=>t[0]&31)).map((([e,t])=>{var l;const i=t[1]||e;r.set(i,e);if(t[0]&512){(l=n.A)==null?void 0:l.push([e,i])}return i}))]))}}return e};var lt=async(e,n,l,r)=>{let i;try{if((n.o&32)===0){n.o|=32;{i=e.constructor;const t=e.localName;customElements.whenDefined(t).then((()=>n.o|=128))}if(i&&i.style){let e;if(typeof i.style==="string"){e=i.style}const n=G(l);if(!c.has(n)||t.hotModuleReplacement){const t=B("registerStyles",l.$);Y(n,e,!!(l.o&1));t()}}}const r=n.T;const s=()=>Ve(n,true);if(r&&r["s-rc"]){r["s-rc"].push(s)}else{s()}}catch(t){a(t,e);if(n.F){n.F();n.F=void 0}if(n.p){n.p(e)}}};var rt=(e,t)=>{};var it=e=>{if((h.o&1)===0){const t=s(e);if(!t){return}const n=t.t;const l=B("connectedCallback",n.$);if(!(t.o&1)){t.o|=1;{if(n.o&(4|8)){st(e)}}{let n=e;while(n=n.parentNode||n.host){if(n["s-p"]){Be(t,t.T=n);break}}}if(n.l){Object.entries(n.l).map((([t,[n]])=>{if(n&31&&Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];delete e[t];e[t]=n}}))}{lt(e,t,n)}}else{at(e,t,n.B);if(t==null?void 0:t.H);else if(t==null?void 0:t.v){t.v.then((()=>rt()))}}l()}};var st=e=>{if(!d.document){return}const t=e["s-cr"]=d.document.createComment("");t["s-cn"]=true;Pe(e,t,e.firstChild)};var ot=async e=>{if((h.o&1)===0){const t=s(e);{if(t==null?void 0:t.V){t.V.map((e=>e()));t.V=void 0}}}if(q.has(e)){q.delete(e)}if(e.shadowRoot&&q.has(e.shadowRoot)){q.delete(e.shadowRoot)}};var ft=(e,t)=>{const n={o:t[0],$:t[1]};try{{n.l=t[2]}{n.B=t[3]}{n.U=ie(e.U);n.P=e.P;n.W=e.W}{n.A=[]}const l=e.prototype.connectedCallback;const r=e.prototype.disconnectedCallback;Object.assign(e.prototype,{__hasHostListenerAttached:false,__registerHost(){o(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const e=s(this);if(!e){return}at(this,e,n.B);this.__hasHostListenerAttached=true}it(this);if(l){l.call(this)}},disconnectedCallback(){ot(this);if(r){r.call(this)}},__attachShadow(){{if(!this.shadowRoot){R.call(this,n)}else{if(this.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${n.$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}}});Object.defineProperty(e,"is",{value:n.$,configurable:true});return nt(e,n)}catch(t){a(t);return e}};var at=(e,t,n,l)=>{if(n&&d.document){n.map((([n,l,r])=>{const i=ut(d.document,e,n);const s=ct(t,r);const o=vt(n);h.ael(i,l,s,o);(t.V=t.V||[]).push((()=>h.rel(i,l,s,o)))}))}};var ct=(e,t)=>n=>{try{{e.$hostElement$[t](n)}}catch(t){a(t,e.$hostElement$)}};var ut=(e,t,n)=>{if(n&8){return d}return t};var vt=e=>y?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;var dt=e=>h.m=e;var pt=e=>Object.assign(h,e);var ht=new WeakMap;function yt(e,t){let n=ht.get(t);if(!n){const e={o:0,$:t.tagName};n={o:0,t:e,$hostElement$:t};ht.set(t,n)}ze(n,e)}function bt(e){return e}export{p as H,ee as a,fe as c,E as getAssetPath,Q as h,ft as p,yt as render,x as setAssetPath,dt as setNonce,pt as setPlatformOptions,bt as t};
2
2
  //# sourceMappingURL=index.js.map