UNPKG

12.5 kBJavaScriptView Raw
1let t,e,l=0,n=!1,o=!1,s=!1,r=!1;const i=window,c=document,a={t:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,l,n)=>t.addEventListener(e,l,n),rel:(t,e,l,n)=>t.removeEventListener(e,l,n)},u=(()=>{try{return new CSSStyleSheet,!0}catch(t){}return!1})(),f=new WeakMap,$=t=>f.get(t),d=(t,e)=>f.set(e.o=t,e),m=(t,e)=>e in t,p=t=>console.error(t),h=new Map,y=new Map,b=[],w=[],g=[],v=(t,e)=>l=>{t.push(l),n||(n=!0,e&&4&a.t?k(j):a.raf(j))},_=(t,e)=>{let l=0,n=0;for(;l<t.length&&(n=performance.now())<e;)try{t[l++](n)}catch(o){p(o)}l===t.length?t.length=0:0!==l&&t.splice(0,l)},j=()=>{l++,(t=>{for(let l=0;l<t.length;l++)try{t[l](performance.now())}catch(e){p(e)}t.length=0})(b);const t=2==(6&a.t)?performance.now()+10*Math.ceil(l*(1/22)):1/0;_(w,t),_(g,t),w.length>0&&(g.push(...w),w.length=0),(n=b.length+w.length+g.length>0)?a.raf(j):l=0},k=t=>Promise.resolve().then(t),S=v(w,!0),M={},x=t=>"object"==(t=typeof t)||"function"===t,R=()=>i.CSS&&i.CSS.supports&&i.CSS.supports("color","var(--c)")?Promise.resolve():__sc_import_bulmil("./p-d8631f0b.js").then(()=>{a.s=i.__stencil_cssshim}),O=async()=>{a.s=i.__stencil_cssshim;const t=new RegExp("/bulmil(\\.esm)?\\.js($|\\?|#)"),e=Array.from(c.querySelectorAll("script")).find(e=>t.test(e.src)||"bulmil"===e.getAttribute("data-stencil-namespace")),l=e["data-opts"];{const t=new URL(".",new URL(e.getAttribute("data-resources-url")||e.src,i.location.href));return U(t.href),window.customElements||await __sc_import_bulmil("./p-d0882b30.js"),Object.assign(Object.assign({},l),{resourcesUrl:t.href})}},U=t=>{const e=(()=>`__sc_import_${"bulmil".replace(/\s|-/g,"_")}`)();try{i[e]=new Function("w",`return import(w);//${Math.random()}`)}catch(l){const n=new Map;i[e]=l=>{const o=new URL(l,t).href;let s=n.get(o);if(!s){const t=c.createElement("script");t.type="module",t.src=URL.createObjectURL(new Blob([`import * as m from '${o}'; window.${e}.m = m;`],{type:"application/javascript"})),s=new Promise(l=>{t.onload=()=>{l(i[e].m),t.remove()}}),n.set(o,s),c.head.appendChild(t)}return s}}},L=new WeakMap,P=t=>"sc-"+t,E=(t,e,...l)=>{let n=null,o=null,s=!1,r=!1,i=[];const c=e=>{for(let l=0;l<e.length;l++)n=e[l],Array.isArray(n)?c(n):null!=n&&"boolean"!=typeof n&&((s="function"!=typeof t&&!x(n))&&(n=String(n)),s&&r?i[i.length-1].i+=n:i.push(s?T(null,n):n),r=s)};if(c(l),e){e.name&&(o=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter(e=>t[e]).join(" "))}}if("function"==typeof t)return t(e,i,I);const a=T(t,null);return a.u=e,i.length>0&&(a.$=i),a.p=o,a},T=(t,e)=>({t:0,h:t,i:e,g:null,$:null,u:null,p:null}),C={},I={forEach:(t,e)=>t.map(A).forEach(e),map:(t,e)=>t.map(A).map(e).map(F)},A=t=>({vattrs:t.u,vchildren:t.$,vkey:t.v,vname:t.p,vtag:t.h,vtext:t.i}),F=t=>{const e=T(t.vtag,t.vtext);return e.u=t.vattrs,e.$=t.vchildren,e.v=t.vkey,e.p=t.vname,e},H=(t,e,l,n,o,s)=>{if(l===n)return;let r=m(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,o=W(l),s=W(n);e.remove(...o.filter(t=>t&&!s.includes(t))),e.add(...s.filter(t=>t&&!o.includes(t)))}else if(r||"o"!==e[0]||"n"!==e[1]){const i=x(n);if((r||i&&null!==n)&&!o)try{if(t.tagName.includes("-"))t[e]=n;else{let o=null==n?"":n;"list"===e?r=!1:null!=l&&t[e]==o||(t[e]=o)}}catch(u){}null==n||!1===n?t.removeAttribute(e):(!r||4&s||o)&&!i&&t.setAttribute(e,n=!0===n?"":n)}else e="-"===e[2]?e.slice(3):m(i,c)?c.slice(2):c[2]+e.slice(3),l&&a.rel(t,e,l,!1),n&&a.ael(t,e,n,!1)},N=/\s/,W=t=>t?t.split(N):[],q=(t,e,l,n)=>{const o=11===e.g.nodeType&&e.g.host?e.g.host:e.g,s=t&&t.u||M,r=e.u||M;for(n in s)n in r||H(o,n,s[n],void 0,l,e.t);for(n in r)H(o,n,s[n],r[n],l,e.t)},B=(l,n,s)=>{let i,a,u,f=n.$[s],$=0;if(o||(r=!0,"slot"===f.h&&(f.t|=f.$?2:1)),null!==f.i)i=f.g=c.createTextNode(f.i);else if(1&f.t)i=f.g=c.createTextNode("");else if(i=f.g=c.createElement(2&f.t?"slot-fb":f.h),q(null,f,!1),f.$)for($=0;$<f.$.length;++$)(a=B(l,f,$,i))&&i.appendChild(a);return i["s-hn"]=e,3&f.t&&(i["s-sr"]=!0,i["s-cr"]=t,i["s-sn"]=f.p||"",(u=l&&l.$&&l.$[s])&&u.h===f.h&&l.g&&V(l.g,!1)),i},V=(t,l)=>{a.t|=1;const n=t.childNodes;for(let o=n.length-1;o>=0;o--){const t=n[o];t["s-hn"]!==e&&t["s-ol"]&&(J(t).insertBefore(t,G(t)),t["s-ol"].remove(),t["s-ol"]=void 0,r=!0),l&&V(t,l)}a.t&=-2},Y=(t,e,l,n,o,s)=>{let r,i=t["s-cr"]&&t["s-cr"].parentNode||t;for(;o<=s;++o)n[o]&&(r=B(null,l,o,t))&&(n[o].g=r,i.insertBefore(r,G(e)))},z=(t,e,l,n,o)=>{for(;e<=l;++e)(n=t[e])&&(s=!0,(o=n.g)["s-ol"]?o["s-ol"].remove():V(o,!0),o.remove())},D=(t,e)=>t.h===e.h&&("slot"!==t.h||t.p===e.p),G=t=>t&&t["s-ol"]||t,J=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,K=(t,e)=>{const l=e.g=t.g,n=t.$,o=e.$;let s;null===e.i?("slot"===e.h||q(t,e,!1),null!==n&&null!==o?((t,e,l,n)=>{let o,s=0,r=0,i=e.length-1,c=e[0],a=e[i],u=n.length-1,f=n[0],$=n[u];for(;s<=i&&r<=u;)null==c?c=e[++s]:null==a?a=e[--i]:null==f?f=n[++r]:null==$?$=n[--u]:D(c,f)?(K(c,f),c=e[++s],f=n[++r]):D(a,$)?(K(a,$),a=e[--i],$=n[--u]):D(c,$)?("slot"!==c.h&&"slot"!==$.h||V(c.g.parentNode,!1),K(c,$),t.insertBefore(c.g,a.g.nextSibling),c=e[++s],$=n[--u]):D(a,f)?("slot"!==c.h&&"slot"!==$.h||V(a.g.parentNode,!1),K(a,f),t.insertBefore(a.g,c.g),a=e[--i],f=n[++r]):(o=B(e&&e[r],l,r,t),f=n[++r],o&&J(c.g).insertBefore(o,G(c.g)));s>i?Y(t,null==n[u+1]?null:n[u+1].g,l,n,r,u):r>u&&z(e,s,i)})(l,n,e,o):null!==o?(null!==t.i&&(l.textContent=""),Y(l,null,e,o,0,o.length-1)):null!==n&&z(n,0,n.length-1)):(s=l["s-cr"])?s.parentNode.textContent=e.i:t.i!==e.i&&(l.data=e.i)},Q=t=>{let e,l,n,o,s,r,i=t.childNodes;for(l=0,n=i.length;l<n;l++)if(1===(e=i[l]).nodeType){if(e["s-sr"])for(s=e["s-sn"],e.hidden=!1,o=0;o<n;o++)if(i[o]["s-hn"]!==e["s-hn"])if(r=i[o].nodeType,""!==s){if(1===r&&s===i[o].getAttribute("slot")){e.hidden=!0;break}}else if(1===r||3===r&&""!==i[o].textContent.trim()){e.hidden=!0;break}Q(e)}},X=[],Z=t=>{let e,l,n,o,r=t.childNodes,i=r.length,c=0,a=0,u=0;for(i=r.length;c<i;c++){if((e=r[c])["s-sr"]&&(l=e["s-cr"]))for(o=e["s-sn"],a=(n=l.parentNode.childNodes).length-1;a>=0;a--)(l=n[a])["s-cn"]||l["s-nr"]||l["s-hn"]===e["s-hn"]||((3===(u=l.nodeType)||8===u)&&""===o||1===u&&null===l.getAttribute("slot")&&""===o||1===u&&l.getAttribute("slot")===o)&&(X.some(t=>t._===l)||(s=!0,l["s-sn"]=o,X.push({j:e,_:l})));1===e.nodeType&&Z(e)}},tt=(t,e)=>{e&&!t.k&&e["s-p"].push(new Promise(e=>t.k=e))},et=(t,e,l,n)=>{if(e.t|=16,4&e.t)return void(e.t|=512);const o=e.o,s=()=>lt(t,e,l,o,n);return tt(e,e.S),st(void 0,()=>S(s))},lt=(l,n,i,u,f)=>{const $=l["s-rc"];f&&((t,e)=>{((t,e)=>{let l=P(e.M),n=y.get(l);if(t=11===t.nodeType?t:c,n)if("string"==typeof n){let e,o=L.get(t=t.head||t);o||L.set(t,o=new Set),o.has(l)||(t.host&&(e=t.firstElementChild)&&"STYLE"===e.tagName?e.innerHTML=n:((e=c.createElement("style")).innerHTML=n,t.insertBefore(e,t.querySelector("link"))),o&&o.add(l))}else t.adoptedStyleSheets.includes(n)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,n])})(t.getRootNode(),e)})(l,i);try{((l,n,i,u)=>{e=l.tagName;const f=n.R||T(null,null),$=(t=>t&&t.h===C)(u)?u:E(null,null,u);if(i.O&&($.u=$.u||{},i.O.forEach(([t,e])=>$.u[e]=l[t])),$.h=null,$.t|=4,n.R=$,$.g=f.g=l,t=l["s-cr"],o=!1,s=!1,K(f,$),r){Z($.g);for(let t=0;t<X.length;t++){const e=X[t];if(!e._["s-ol"]){const t=c.createTextNode("");t["s-nr"]=e._,e._.parentNode.insertBefore(e._["s-ol"]=t,e._)}}a.t|=1;for(let t=0;t<X.length;t++){const e=X[t],l=e.j.parentNode;let n=e.j.nextSibling,o=e._["s-ol"];for(;o=o.previousSibling;){let t=o["s-nr"];if(t&&t["s-sn"]===e._["s-sn"]&&l===t.parentNode&&(!(t=t.nextSibling)||!t["s-nr"])){n=t;break}}(!n&&l!==e._.parentNode||e._.nextSibling!==n)&&e._!==n&&l.insertBefore(e._,n)}a.t&=-2}s&&Q($.g),X.length=0})(l,n,i,u.render())}catch(d){p(d)}n.t&=-17,n.t|=2,$&&($.forEach(t=>t()),l["s-rc"]=void 0);{const t=l["s-p"],e=()=>nt(l,n,i);0===t.length?e():(Promise.all(t).then(e),n.t|=4,t.length=0)}},nt=(t,e,l)=>{const n=e.S;64&e.t||(e.t|=64,t.classList.add("hydrated"),e.U(t),n||ot()),e.k&&(e.k(),e.k=void 0),512&e.t&&k(()=>et(t,e,l,!1)),e.t&=-517},ot=()=>{c.documentElement.classList.add("hydrated"),a.t|=2},st=(t,e)=>t&&t.then?t.then(e):e(),rt=(t,e,l)=>{if(e.L){const n=Object.entries(e.L),o=t.prototype;if(n.forEach(([t,[n]])=>{(31&n||2&l&&32&n)&&Object.defineProperty(o,t,{get(){return((t,e)=>$(t).P.get(e))(this,t)},set(l){((t,e,l,n)=>{const o=$(this),s=o.T,r=o.P.get(e),i=o.t,c=o.o;(l=((t,e)=>null==t||x(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?String(t):t)(l,n.L[e][0]))===r||8&i&&void 0!==r||(o.P.set(e,l),c&&2==(18&i)&&et(s,o,n,!1))})(0,t,l,e)},configurable:!0,enumerable:!0})}),1&l){const l=new Map;o.attributeChangedCallback=function(t,e,n){a.jmp(()=>{const e=l.get(t);this[e]=(null!==n||"boolean"!=typeof this[e])&&n})},t.observedAttributes=n.filter(([t,e])=>15&e[0]).map(([t,n])=>{const o=n[1]||t;return l.set(o,t),512&n[0]&&e.O.push([t,o]),o})}}return t},it=(t,e,l,n,o,s,r)=>{let i,c,a,u;if(1===s.nodeType){for((i=s.getAttribute("c-id"))&&((c=i.split("."))[0]!==r&&"0"!==c[0]||(a={t:0,C:c[0],I:c[1],A:c[2],F:c[3],h:s.tagName.toLowerCase(),g:s,u:null,$:null,v:null,p:null,i:null},e.push(a),s.removeAttribute("c-id"),t.$||(t.$=[]),t.$[a.F]=a,t=a,n&&"0"===a.A&&(n[a.F]=a.g))),u=s.childNodes.length-1;u>=0;u--)it(t,e,l,n,o,s.childNodes[u],r);if(s.shadowRoot)for(u=s.shadowRoot.childNodes.length-1;u>=0;u--)it(t,e,l,n,o,s.shadowRoot.childNodes[u],r)}else if(8===s.nodeType)(c=s.nodeValue.split("."))[1]!==r&&"0"!==c[1]||(a={t:0,C:c[1],I:c[2],A:c[3],F:c[4],g:s,u:null,$:null,v:null,p:null,h:null,i:null},"t"===(i=c[0])?(a.g=s.nextSibling,a.g&&3===a.g.nodeType&&(a.i=a.g.textContent,e.push(a),s.remove(),t.$||(t.$=[]),t.$[a.F]=a,n&&"0"===a.A&&(n[a.F]=a.g))):a.C===r&&("s"===i?(a.h="slot",s["s-sn"]=c[5]?a.p=c[5]:"",s["s-sr"]=!0,l.push(a),t.$||(t.$=[]),t.$[a.F]=a):"r"===i&&(o["s-cr"]=s,s["s-cn"]=!0)));else if(t&&"style"===t.h){const e=T(null,s.textContent);e.g=s,e.F="0",t.$=[e]}},ct=(t,e)=>{if(1===t.nodeType){let l=0;for(;l<t.childNodes.length;l++)ct(t.childNodes[l],e);if(t.shadowRoot)for(l=0;l<t.shadowRoot.childNodes.length;l++)ct(t.shadowRoot.childNodes[l],e)}else if(8===t.nodeType){const l=t.nodeValue.split(".");"o"===l[0]&&(e.set(l[1]+"."+l[2],t),t.nodeValue="",t["s-sd"]=""===l[3])}},at=t=>{const e=t["s-cr"]=c.createComment("");e["s-cn"]=!0,t.insertBefore(e,t.firstChild)},ut=(t,e={})=>{const l=[],n=e.exclude||[],o=c.head,s=i.customElements,r=o.querySelector("meta[charset]"),d=c.createElement("style"),m=[];let b,w=!0;Object.assign(a,e),a.l=new URL(e.resourcesUrl||"./",c.baseURI).href,e.syncQueue&&(a.t|=4),a.t|=2,t.forEach(t=>t[1].forEach(e=>{const o={t:e[0],M:e[1],L:e[2],H:e[3]};o.L=e[2],o.O=[];const r=o.M,i=class extends HTMLElement{constructor(t){super(t),(t=>{const e={t:0,T:t,P:new Map};e.N=new Promise(t=>e.U=t),t["s-p"]=[],t["s-rc"]=[],f.set(t,e)})(t=this)}connectedCallback(){b&&(clearTimeout(b),b=null),w?m.push(this):a.jmp(()=>((t,e)=>{if(0==(1&a.t)){const l=()=>{},n=$(t);if(!(1&n.t)){let l;n.t|=1,(l=t.getAttribute("s-id"))&&((t,e,l,n)=>{const o=t.shadowRoot,s=[],r=n.R=T(e,null);a.W||ct(c.body,a.W=new Map),t["s-id"]=l,t.removeAttribute("s-id"),it(r,s,[],null,t,t,l),s.forEach(t=>{const l=t.C+"."+t.I,n=a.W.get(l),s=t.g;n&&(n["s-sd"]||"0"===t.C)&&n.parentNode.insertBefore(s,n.nextSibling),o||(s["s-hn"]=e,n&&(s["s-ol"]=n,s["s-ol"]["s-nr"]=s)),a.W.delete(l)})})(t,e.M,l,n),l||4&e.t&&at(t);{let e=t;for(;e=e.parentNode||e.host;)if(1===e.nodeType&&e.hasAttribute("s-id")||e["s-p"]){tt(n,n.S=e);break}}e.L&&Object.entries(e.L).forEach(([e,[l]])=>{if(31&l&&t.hasOwnProperty(e)){const l=t[e];delete t[e],t[e]=l}}),k(()=>(async(t,e,l,n,o)=>{if(0==(32&e.t)){e.t|=32;{if((o=(t=>{const e=t.M.replace(/-/g,"_"),l=t.q,n=h.get(l);return n?n[e]:__sc_import_bulmil(`./${l}.entry.js`).then(t=>(h.set(l,t),t[e]),p)})(l)).then){const t=()=>{};o=await o,t()}o.isProxied||(rt(o,l,2),o.isProxied=!0);const t=()=>{};e.t|=8;try{new o(e)}catch(i){p(i)}e.t&=-9,t()}const t=P(l.M);if(!y.has(t)&&o.style){const e=()=>{};((t,e,l)=>{let n=y.get(t);u&&l?(n=n||new CSSStyleSheet).replace(e):n=e,y.set(t,n)})(t,o.style,!!(1&l.t)),e()}}const s=e.S,r=()=>et(t,e,l,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(t,n,e))}l()}})(this,o))}disconnectedCallback(){a.jmp(()=>void 0)}"s-hmr"(t){}forceUpdate(){((t,e)=>{{const l=$(t);2==(18&l.t)&&et(t,l,e,!1)}})(this,o)}componentOnReady(){return $(this).N}};o.q=t[0],n.includes(r)||s.get(r)||(l.push(r),s.define(r,rt(i,o,1)))})),d.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),o.insertBefore(d,r?r.nextSibling:o.firstChild),w=!1,m.length>0?m.forEach(t=>t.connectedCallback()):a.jmp(()=>b=setTimeout(ot,30,"timeout"))};export{C as H,R as a,ut as b,E as h,O as p,d as r};
\No newline at end of file