UNPKG

@peculiar/fortify-webcomponents

Version:

Web-components for creating CSR or Certificate and viewing certificates list using Fortify

6 lines 44.1 kB
var __extends=this&&this.__extends||function(){var r=function(e,n){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]};return r(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");r(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(r){for(var e,n=1,t=arguments.length;n<t;n++){e=arguments[n];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))r[i]=e[i]}return r};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(r,e,n,t){function i(r){return r instanceof n?r:new n((function(e){e(r)}))}return new(n||(n=Promise))((function(n,a){function o(r){try{u(t.next(r))}catch(r){a(r)}}function f(r){try{u(t["throw"](r))}catch(r){a(r)}}function u(r){r.done?n(r.value):i(r.value).then(o,f)}u((t=t.apply(r,e||[])).next())}))};var __generator=this&&this.__generator||function(r,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,i,a,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=f(0),o["throw"]=f(1),o["return"]=f(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function f(r){return function(e){return u([r,e])}}function u(f){if(t)throw new TypeError("Generator is already executing.");while(o&&(o=0,f[0]&&(n=0)),n)try{if(t=1,i&&(a=f[0]&2?i["return"]:f[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;if(i=0,a)f=[f[0]&2,a.value];switch(f[0]){case 0:case 1:a=f;break;case 4:n.label++;return{value:f[1],done:false};case 5:n.label++;i=f[1];f=[0];continue;case 7:f=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){n.label=f[1];break}if(f[0]===6&&n.label<a[1]){n.label=a[1];a=f;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(f);break}if(a[2])n.ops.pop();n.trys.pop();continue}f=e.call(r,n)}catch(r){f=[6,r];i=0}finally{t=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(r,e,n){if(n||arguments.length===2)for(var t=0,i=e.length,a;t<i;t++){if(a||!(t in e)){if(!a)a=Array.prototype.slice.call(e,0,t);a[t]=e[t]}}return r.concat(a||Array.prototype.slice.call(e))}; /*! * © Peculiar Ventures https://peculiarventures.com/ - BSD 3-Clause License */System.register([],(function(r,e){"use strict";return{execute:function(){var n=this;var t="peculiar";var i={hydratedSelectorName:"hydrated",lazyLoad:true,propChangeCallback:true,slotRelocation:true,state:true,updatable:true};var a=r("g",(function(){}));var o=":root{--pv-font-family:'Manrope', 'Open Sans', 'Arial', sans-serif;--pv-color-primary-tint-5:#e8ffe5;--pv-color-primary-tint-4:#c6efc2;--pv-color-primary-tint-3:#a9e2a3;--pv-color-primary-tint-2:#8ed686;--pv-color-primary-tint-1:#76c96c;--pv-color-primary:#5ebc54;--pv-color-primary-shade-1:#569e4f;--pv-color-primary-shade-2:#4b7f46;--pv-color-primary-shade-3:#3e603a;--pv-color-primary-shade-4:#2d422b;--pv-color-primary-shade-5:#1b261a;--pv-color-primary-contrast:#FFFFFF;--pv-color-secondary-tint-5:#e5efff;--pv-color-secondary-tint-4:#c2d8fc;--pv-color-secondary-tint-3:#9fc2f9;--pv-color-secondary-tint-2:#7babf7;--pv-color-secondary-tint-1:#5a95f4;--pv-color-secondary:#377ff4;--pv-color-secondary-shade-1:#4276c9;--pv-color-secondary-shade-2:#4367a0;--pv-color-secondary-shade-3:#3e5477;--pv-color-secondary-shade-4:#303c4f;--pv-color-secondary-shade-5:#1a1f26;--pv-color-secondary-contrast:#FFFFFF;--pv-color-wrong-tint-5:#ffe6e5;--pv-color-wrong-tint-4:#f7c2c0;--pv-color-wrong-tint-3:#efa09e;--pv-color-wrong-tint-2:#ea827e;--pv-color-wrong-tint-1:#e2635f;--pv-color-wrong:#de4641;--pv-color-wrong-shade-1:#b74945;--pv-color-wrong-shade-2:#934644;--pv-color-wrong-shade-3:#6d3c3b;--pv-color-wrong-shade-4:#492e2d;--pv-color-wrong-shade-5:#261b1a;--pv-color-wrong-contrast:#FFFFFF;--pv-color-attention-tint-5:#fff4e5;--pv-color-attention-tint-4:#fce4bf;--pv-color-attention-tint-3:#f9d39a;--pv-color-attention-tint-2:#f9c577;--pv-color-attention-tint-1:#f7b654;--pv-color-attention:#f7a831;--pv-color-attention-shade-1:#cc923d;--pv-color-attention-shade-2:#a37c41;--pv-color-attention-shade-3:#775f3b;--pv-color-attention-shade-4:#4f422f;--pv-color-attention-shade-5:#26211a;--pv-color-success-tint-5:#e5fff6;--pv-color-success-tint-4:#bcf4e2;--pv-color-success-tint-3:#96eace;--pv-color-success-tint-2:#72e0bb;--pv-color-success-tint-1:#51d6a9;--pv-color-success:#33cc99;--pv-color-success-shade-1:#3aaa85;--pv-color-success-shade-2:#3b896f;--pv-color-success-shade-3:#366857;--pv-color-success-shade-4:#2b473e;--pv-color-success-shade-5:#1a2622;--pv-color-white:#FFFFFF;--pv-color-gray-1:#FBFCFD;--pv-color-gray-2:#F4F7FC;--pv-color-gray-3:#EFF1F6;--pv-color-gray-4:#EAEDF2;--pv-color-gray-5:#E3E5E8;--pv-color-gray-6:#D8DBDE;--pv-color-gray-7:#CDD1D5;--pv-color-gray-8:#C4C8CC;--pv-color-gray-9:#8F999E;--pv-color-gray-10:#5C666A;--pv-color-black:#293033;--pv-color-extra-1:#826FF6;--pv-color-extra-2:#DC6CDF;--pv-shadow-light-low:0px 1px 3px rgba(85, 94, 98, 0.12),0px 3px 3px rgba(85, 94, 98, 0.08),0px 1px 7px rgba(85, 94, 98, 0.06);--pv-shadow-light-medium:0px 1px 4px rgba(85, 94, 98, 0.18),0px 3px 5px rgba(85, 94, 98, 0.14),0px 1px 10px rgba(85, 94, 98, 0.12);--pv-shadow-light-hight:0px 1px 8px -2px rgba(85, 94, 98, 0.2),0px 5px 10px 0.2px rgba(85, 94, 98, 0.25),0px 15px 20px 0.2px rgba(85, 94, 98, 0.21);--pv-shadow-dark-medium:0px 1px 4px rgba(41, 48, 51, 0.18),0px 3px 5px rgba(41, 48, 51, 0.16),0px 1px 10px rgba(41, 48, 51, 0.14);--pv-shadow-dark-hight:0px 1px 8px -2px rgba(85, 94, 98, 0.2),0px 5px 10px 0.2px rgba(85, 94, 98, 0.3),0px 15px 20px 0.2px rgba(85, 94, 98, 0.25);--pv-text-h1-weight:800;--pv-text-h1-size:30px;--pv-text-h1-height:40px;--pv-text-h1-spacing:0.1px;--pv-text-h2-weight:800;--pv-text-h2-size:24px;--pv-text-h2-height:35px;--pv-text-h2-spacing:0.1px;--pv-text-h3-weight:700;--pv-text-h3-size:20px;--pv-text-h3-height:30px;--pv-text-h3-spacing:0.2px;--pv-text-h4-weight:700;--pv-text-h4-size:18px;--pv-text-h4-height:28px;--pv-text-h4-spacing:0.2px;--pv-text-h5-weight:700;--pv-text-h5-size:16px;--pv-text-h5-height:25px;--pv-text-h5-spacing:0.15px;--pv-text-s1-weight:600;--pv-text-s1-size:15px;--pv-text-s1-height:25px;--pv-text-s1-spacing:0.25px;--pv-text-s2-weight:600;--pv-text-s2-size:14px;--pv-text-s2-height:22px;--pv-text-s2-spacing:0.25px;--pv-text-b1-weight:400;--pv-text-b1-size:15px;--pv-text-b1-height:25px;--pv-text-b1-spacing:0.4px;--pv-text-b2-weight:400;--pv-text-b2-size:14px;--pv-text-b2-height:22px;--pv-text-b2-spacing:0.4px;--pv-text-b3-weight:400;--pv-text-b3-size:13px;--pv-text-b3-height:20px;--pv-text-b3-spacing:0.55px;--pv-text-btn1-weight:700;--pv-text-btn1-size:14px;--pv-text-btn1-height:20px;--pv-text-btn1-spacing:0.2px;--pv-text-btn2-weight:700;--pv-text-btn2-size:13px;--pv-text-btn2-height:17px;--pv-text-btn2-spacing:0.2px;--pv-text-c1-weight:400;--pv-text-c1-size:12px;--pv-text-c1-height:17px;--pv-text-c1-spacing:0.45px;--pv-text-c2-weight:400;--pv-text-c2-size:11px;--pv-text-c2-height:15px;--pv-text-c2-spacing:0.5px;--pv-size-base:5px;--pv-color-footer:var(--pv-color-gray-1);--pv-color-footer-text:var(--pv-color-gray-9)}";var f=Object.defineProperty;var u=function(r,e){for(var n in e)f(r,n,{get:e[n],enumerable:true})};var v="http://www.w3.org/2000/svg";var l="http://www.w3.org/1999/xhtml";var c=function(r){r["Undefined"]="undefined";r["Null"]="null";r["String"]="string";r["Number"]="number";r["SpecialNumber"]="number";r["Boolean"]="boolean";r["BigInt"]="bigint";return r}(c||{});var s=function(r){r["Array"]="array";r["Date"]="date";r["Map"]="map";r["Object"]="object";r["RegularExpression"]="regexp";r["Set"]="set";r["Channel"]="channel";r["Symbol"]="symbol";return r}(s||{});var p="type";var d="value";var h="serialized:";var x=function(r,e){var n;var t=e.t;var i=Object.entries((n=t.i)!=null?n:{});i.map((function(n){var t=n[0],i=n[1][0];if(i&31||i&32){var a=r[t];var o=g(Object.getPrototypeOf(r),t)||Object.getOwnPropertyDescriptor(r,t);if(o){Object.defineProperty(r,t,{get:function(){return o.get.call(this)},set:function(r){o.set.call(this,r)},configurable:true,enumerable:true})}r[t]=e.o.has(t)?e.o.get(t):a}}))};function g(r,e){while(r){var n=Object.getOwnPropertyDescriptor(r,e);if(n==null?void 0:n.get)return n;r=Object.getPrototypeOf(r)}return void 0}var y=function(r){if(r.__stencil__getHostRef){return r.__stencil__getHostRef()}return void 0};var b=r("r",(function(r,e){if(!e)return;r.__stencil__getHostRef=function(){return e};e.u=r;if(e.t.v&512&&i.state){x(r,e)}}));var w=function(r,e){var n={v:0,$hostElement$:r,t:e,o:new Map,l:new Map};{n.p=new Promise((function(r){return n.h=r}));r["s-p"]=[];r["s-rc"]=[]}{n.m=[]}var t=n;r.__stencil__getHostRef=function(){return t};return t};var m=function(r,e){return e in r};var $=function(r,e){return(0,console.error)(r,e)};var _=new Map;var S=function(r,n,t){var i=r.$.replace(/-/g,"_");var a=r._;if(!a){return void 0}var o=_.get(a);if(o){return o[i]} /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return e.import("./".concat(a,".entry.js").concat("")).then((function(r){{_.set(a,r)}return r[i]}),(function(r){$(r,n.$hostElement$)}))};var j=new Map;var F="r";var O="o";var k="s";var C="t";var E="c";var A="s-id";var z="sty-id";var N="c-id";var I="{visibility:hidden}.hydrated{visibility:inherit}";var D="slot-fb{display:contents}slot-fb[hidden]{display:none}";var M="http://www.w3.org/1999/xlink";var R=typeof window!=="undefined"?window:{};var T={v:0,S:"",jmp:function(r){return r()},raf:function(r){return requestAnimationFrame(r)},ael:function(r,e,n,t){return r.addEventListener(e,n,t)},rel:function(r,e,n,t){return r.removeEventListener(e,n,t)},ce:function(r,e){return new CustomEvent(r,e)}};var P=r("p",(function(r){return Promise.resolve(r)}));var U=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(r){}return false}();var B=U?function(){return!!R.document&&Object.getOwnPropertyDescriptor(R.document.adoptedStyleSheets,"length").writable}():false;var L=false;var W=[];var H=[];var V=function(r,e){return function(n){r.push(n);if(!L){L=true;if(e&&T.v&4){Y(G)}else{T.raf(G)}}}};var q=function(r){for(var e=0;e<r.length;e++){try{r[e](performance.now())}catch(r){$(r)}}r.length=0};var G=function(){q(W);{q(H);if(L=W.length>0){T.raf(G)}}};var Y=function(r){return P().then(r)};var J=V(H,true);var K=function(r){return r!=null&&r!==void 0};var Q=function(r){r=typeof r;return r==="object"||r==="function"};function X(r){var e,n,t;return(t=(n=(e=r.head)==null?void 0:e.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?t:void 0}var Z=function(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")};var rr=function(){function r(){}r.fromLocalValue=function(e){var n=e[p];var t=d in e?e[d]:void 0;switch(n){case"string":return t;case"boolean":return t;case"bigint":return BigInt(t);case"undefined":return void 0;case"null":return null;case"number":if(t==="NaN")return NaN;if(t==="-0")return-0;if(t==="Infinity")return Infinity;if(t==="-Infinity")return-Infinity;return t;case"array":return t.map((function(e){return r.fromLocalValue(e)}));case"date":return new Date(t);case"map":var i=new Map;for(var a=0,o=t;a<o.length;a++){var f=o[a],u=f[0],v=f[1];var l=typeof u==="object"&&u!==null?r.fromLocalValue(u):u;var c=r.fromLocalValue(v);i.set(l,c)}return i;case"object":var s={};for(var h=0,x=t;h<x.length;h++){var g=x[h],u=g[0],v=g[1];s[u]=r.fromLocalValue(v)}return s;case"regexp":var y=t.pattern,b=t.flags;return new RegExp(y,b);case"set":var w=new Set;for(var m=0,$=t;m<$.length;m++){var _=$[m];w.add(r.fromLocalValue(_))}return w;case"symbol":return Symbol(t);default:throw new Error("Unsupported type: ".concat(n))}};r.fromLocalValueArray=function(e){return e.map((function(e){return r.fromLocalValue(e)}))};r.isLocalValueObject=function(r){if(typeof r!=="object"||r===null){return false}if(!r.hasOwnProperty(p)){return false}var e=r[p];var n=Object.values(__assign(__assign({},c),s)).includes(e);if(!n){return false}if(e!=="null"&&e!=="undefined"){return r.hasOwnProperty(d)}return true};return r}();var er={};u(er,{err:function(){return tr},map:function(){return ir},ok:function(){return nr},unwrap:function(){return ar},unwrapErr:function(){return or}});var nr=function(r){return{isOk:true,isErr:false,value:r}};var tr=function(r){return{isOk:false,isErr:true,value:r}};function ir(r,e){if(r.isOk){var n=e(r.value);if(n instanceof Promise){return n.then((function(r){return nr(r)}))}else{return nr(n)}}if(r.isErr){var t=r.value;return tr(t)}throw"should never get here"}var ar=function(r){if(r.isOk){return r.value}else{throw r.value}};var or=function(r){if(r.isErr){return r.value}else{throw r.value}};function fr(r){if(typeof r!=="string"||!r.startsWith(h)){return r}return rr.fromLocalValue(JSON.parse(atob(r.slice(h.length))))}function ur(r){if(!U)return void 0;var e=new CSSStyleSheet;e.replaceSync(r);return e}var vr;function lr(r){var e;var n=this.attachShadow({mode:"open"});if(vr===void 0)vr=(e=ur(o))!=null?e:null;if(vr){if(B){n.adoptedStyleSheets.push(vr)}else{n.adoptedStyleSheets=__spreadArray(__spreadArray([],n.adoptedStyleSheets,true),[vr],false)}}}var cr=function(r){var e=br(r,"childNodes");if(r.tagName&&r.tagName.includes("-")&&r["s-cr"]&&r.tagName!=="SLOT-FB"){pr(e,r.tagName).forEach((function(r){if(r.nodeType===1&&r.tagName==="SLOT-FB"){if(dr(r,gr(r),false).length){r.hidden=true}else{r.hidden=false}}}))}var n=0;for(n=0;n<e.length;n++){var t=e[n];if(t.nodeType===1&&br(t,"childNodes").length){cr(t)}}};var sr=function(r){var e=[];for(var n=0;n<r.length;n++){var t=r[n]["s-nr"]||void 0;if(t&&t.isConnected){e.push(t)}}return e};function pr(r,e,n){var t=0;var i=[];var a;for(;t<r.length;t++){a=r[t];if(a["s-sr"]&&(!e||a["s-hn"]===e)&&n===void 0){i.push(a)}i=__spreadArray(__spreadArray([],i,true),pr(a.childNodes,e,n),true)}return i}var dr=function(r,e,n){if(n===void 0){n=true}var t=[];if(n&&r["s-sr"]||!r["s-sr"])t.push(r);var i=r;while(i=i.nextSibling){if(gr(i)===e&&(n||!i["s-sr"]))t.push(i)}return t};var hr=function(r,e){if(r.nodeType===1){if(r.getAttribute("slot")===null&&e===""){return true}if(r.getAttribute("slot")===e){return true}return false}if(r["s-sn"]===e){return true}return e===""};var xr=function(r,e,n,t){if(r["s-ol"]&&r["s-ol"].isConnected){return}var i=document.createTextNode("");i["s-nr"]=r;if(!e["s-cr"]||!e["s-cr"].parentNode)return;var a=e["s-cr"].parentNode;var o=br(a,"appendChild");if(typeof t!=="undefined"){i["s-oo"]=t;var f=br(a,"childNodes");var u=[i];f.forEach((function(r){if(r["s-nr"])u.push(r)}));u.sort((function(r,e){if(!r["s-oo"]||r["s-oo"]<(e["s-oo"]||0))return-1;else if(!e["s-oo"]||e["s-oo"]<r["s-oo"])return 1;return 0}));u.forEach((function(r){return o.call(a,r)}))}else{o.call(a,i)}r["s-ol"]=i;r["s-sh"]=e["s-hn"]};var gr=function(r){return typeof r["s-sn"]==="string"?r["s-sn"]:r.nodeType===1&&r.getAttribute("slot")||void 0};function yr(r){if(r.assignedElements||r.assignedNodes||!r["s-sr"])return;var e=function(e){return function(r){var n=[];var t=this["s-sn"];if(r==null?void 0:r.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 ")}var i=this["s-cr"].parentElement;var a=i.__childNodes?i.childNodes:sr(i.childNodes);a.forEach((function(r){if(t===gr(r)){n.push(r)}}));if(e){return n.filter((function(r){return r.nodeType===1}))}return n}.bind(r)};r.assignedElements=e(true);r.assignedNodes=e(false)}function br(r,e){if("__"+e in r){var n=r["__"+e];if(typeof n!=="function")return n;return n.bind(r)}else{if(typeof r[e]!=="function")return r[e];return r[e].bind(r)}}var wr=function(r,e){if(e===void 0){e=""}{return function(){return}}};var mr=function(r,e){{return function(){return}}};var $r=new WeakMap;var _r=function(r,e,n){var t=j.get(r);if(U&&n){t=t||new CSSStyleSheet;if(typeof t==="string"){t=e}else{t.replaceSync(e)}}else{t=e}j.set(r,t)};var Sr=function(r,e,n){var t;var i=Fr(e);var a=j.get(i);if(!R.document){return i}r=r.nodeType===11?r:R.document;if(a){if(typeof a==="string"){r=r.head||r;var o=$r.get(r);var f=void 0;if(!o){$r.set(r,o=new Set)}if(!o.has(i)){if(r.host&&(f=r.querySelector("[".concat(z,'="').concat(i,'"]')))){f.innerHTML=a}else{f=R.document.createElement("style");f.innerHTML=a;var u=(t=T.j)!=null?t:X(R.document);if(u!=null){f.setAttribute("nonce",u)}if(!(e.v&1)){if(r.nodeName==="HEAD"){var v=r.querySelectorAll("link[rel=preconnect]");var l=v.length>0?v[v.length-1].nextSibling:r.querySelector("style");r.insertBefore(f,(l==null?void 0:l.parentNode)===r?l:null)}else if("host"in r){if(U){var c=new CSSStyleSheet;c.replaceSync(a);if(B){r.adoptedStyleSheets.unshift(c)}else{r.adoptedStyleSheets=__spreadArray([c],r.adoptedStyleSheets,true)}}else{var s=r.querySelector("style");if(s){s.innerHTML=a+s.innerHTML}else{r.prepend(f)}}}else{r.append(f)}}if(e.v&1){r.insertBefore(f,null)}}if(e.v&4){f.innerHTML+=D}if(o){o.add(i)}}}else if(!r.adoptedStyleSheets.includes(a)){if(B){r.adoptedStyleSheets.push(a)}else{r.adoptedStyleSheets=__spreadArray(__spreadArray([],r.adoptedStyleSheets,true),[a],false)}}}return i};var jr=function(r){var e=r.t;var n=r.$hostElement$;var t=e.v;var i=wr("attachStyles",e.$);var a=Sr(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);if(t&10){n["s-sc"]=a;n.classList.add(a+"-h")}i()};var Fr=function(r,e){return"sc-"+r.$};var Or=function(r){return r.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{")};var kr=function(){if(!R.document){return}var r=R.document.querySelectorAll("[".concat(z,"]"));var e=0;for(;e<r.length;e++){_r(r[e].getAttribute(z),Or(r[e].innerHTML),true)}};var Cr=r("h",(function(r,e){var n=[];for(var t=2;t<arguments.length;t++){n[t-2]=arguments[t]}if(typeof r==="string"){r=He(r)}var i=null;var a=null;var o=null;var f=false;var u=false;var v=[];var l=function(e){for(var n=0;n<e.length;n++){i=e[n];if(Array.isArray(i)){l(i)}else if(i!=null&&typeof i!=="boolean"){if(f=typeof r!=="function"&&!Q(i)){i=String(i)}if(f&&u){v[v.length-1].F+=i}else{v.push(f?Er(null,i):i)}u=f}}};l(n);if(e){if(e.key){a=e.key}if(e.name){o=e.name}{var c=e.className||e.class;if(c){e.class=typeof c!=="object"?c:Object.keys(c).filter((function(r){return c[r]})).join(" ")}}}if(typeof r==="function"){return r(e===null?{}:e,v,Nr)}var s=Er(r,null);s.O=e;if(v.length>0){s.k=v}{s.C=a}{s.A=o}return s}));var Er=function(r,e){var n={v:0,N:r,F:e,I:null,k:null};{n.O=null}{n.C=null}{n.A=null}return n};var Ar=r("H",{});var zr=function(r){return r&&r.N===Ar};var Nr={forEach:function(r,e){return r.map(Ir).forEach(e)},map:function(r,e){return r.map(Ir).map(e).map(Dr)}};var Ir=function(r){return{vattrs:r.O,vchildren:r.k,vkey:r.C,vname:r.A,vtag:r.N,vtext:r.F}};var Dr=function(r){if(typeof r.vtag==="function"){var e=__assign({},r.vattrs);if(r.vkey){e.key=r.vkey}if(r.vname){e.name=r.vname}return Cr.apply(void 0,__spreadArray([r.vtag,e],r.vchildren||[],false))}var n=Er(r.vtag,r.vtext);n.O=r.vattrs;n.k=r.vchildren;n.C=r.vkey;n.A=r.vname;return n};var Mr=function(r,e,n,t){var i,a;var o=wr("hydrateClient",e);var f=r.shadowRoot;var u=[];var v=[];var l=[];var c=f?[]:null;var s=Er(e,null);s.I=r;var p;{var d=t.t;if(d&&d.v&10&&r["s-sc"]){p=r["s-sc"];r.classList.add(p+"-h")}else if(r["s-sc"]){delete r["s-sc"]}}if(R.document&&(!T.D||!T.D.size)){Tr(R.document.body,T.D=new Map)}r[A]=n;r.removeAttribute(A);t.M=Rr(s,u,v,c,r,r,n,l);var h=0;var x=u.length;var g;for(h;h<x;h++){g=u[h];var b=g.R+"."+g.T;var w=T.D.get(b);var m=g.I;if(!f){m["s-hn"]=He(e).toUpperCase();if(g.N==="slot"){m["s-cr"]=r["s-cr"]}}else if(((i=g.N)==null?void 0:i.toString().includes("-"))&&g.N!=="slot-fb"&&!g.I.shadowRoot){var d=y(g.I);if(d){var $=Fr(d.t);var _=R.document.querySelector('style[sty-id="'.concat($,'"]'));if(_){r.shadowRoot.append(_.cloneNode(true))}}}if(g.N==="slot"){g.A=g.I["s-sn"]||g.I["name"]||null;if(g.k){g.v|=2;if(!g.I.childNodes.length){g.k.forEach((function(r){g.I.appendChild(r.I)}))}}else{g.v|=1}}if(w&&w.isConnected){if(w.parentElement.shadowRoot&&w["s-en"]===""){w.parentNode.insertBefore(m,w.nextSibling)}w.parentNode.removeChild(w);if(!f){m["s-oo"]=parseInt(g.T)}}if(w&&!w["s-id"]){T.D.delete(b)}}var S=[];var j=l.length;var F=0;var O;var k;var C;var E;for(F;F<j;F++){O=l[F];if(!O||!O.length)continue;C=O.length;k=0;for(k;k<C;k++){E=O[k];if(!S[E.hostId]){S[E.hostId]=T.D.get(E.hostId)}if(!S[E.hostId])continue;var z=S[E.hostId];if(z.shadowRoot&&E.node.parentElement!==z){z.appendChild(E.node)}if(!z.shadowRoot||!f){if(!E.slot["s-cr"]){E.slot["s-cr"]=z["s-cr"];if(!E.slot["s-cr"]&&z.shadowRoot){E.slot["s-cr"]=z}else{E.slot["s-cr"]=(z.__childNodes||z.childNodes)[0]}}xr(E.node,E.slot,false,E.node["s-oo"]);if(((a=E.node.parentElement)==null?void 0:a.shadowRoot)&&E.node["getAttribute"]&&E.node.getAttribute("slot")){E.node.removeAttribute("slot")}}}}if(p&&v.length){v.forEach((function(r){r.I.parentElement.classList.add(p+"-s")}))}if(f){var N=0;var I=c.length;if(I){for(N;N<I;N++){var m=c[N];if(m){f.appendChild(m)}}Array.from(r.childNodes).forEach((function(r){if(typeof r["s-en"]!=="string"&&typeof r["s-sn"]!=="string"){if(r.nodeType===1&&r.slot&&r.hidden){r.removeAttribute("hidden")}else if(r.nodeType===8&&!r.nodeValue||r.nodeType===3&&!r.wholeText.trim()){r.parentNode.removeChild(r)}}}))}}t.$hostElement$=r;o()};var Rr=function(r,e,n,t,i,a,o,f){if(f===void 0){f=[]}var u;var v;var l;var c;var s=i["s-sc"];if(a.nodeType===1){u=a.getAttribute(N);if(u){v=u.split(".");if(v[0]===o||v[0]==="0"){l=Pr({v:0,R:v[0],T:v[1],P:v[2],U:v[3],N:a.tagName.toLowerCase(),I:a,O:{class:a.className||""}});e.push(l);a.removeAttribute(N);if(!r.k){r.k=[]}if(s&&v[0]===o){a["s-si"]=s;l.O.class+=" "+s}var p=l.I.getAttribute("s-sn");if(typeof p==="string"){if(l.N==="slot-fb"){Ur(p,v[2],l,a,r,e,n,t,f);if(s){a.classList.add(s)}}l.I["s-sn"]=p;l.I.removeAttribute("s-sn")}if(l.U!==void 0){r.k[l.U]=l}r=l;if(t&&l.P==="0"){t[l.U]=l.I}}}if(a.shadowRoot){for(c=a.shadowRoot.childNodes.length-1;c>=0;c--){Rr(r,e,n,t,i,a.shadowRoot.childNodes[c],o,f)}}var d=a.__childNodes||a.childNodes;for(c=d.length-1;c>=0;c--){Rr(r,e,n,t,i,d[c],o,f)}}else if(a.nodeType===8){v=a.nodeValue.split(".");if(v[1]===o||v[1]==="0"){u=v[0];l=Pr({R:v[1],T:v[2],P:v[3],U:v[4]||"0",I:a,O:null,k:null,C:null,A:null,N:null,F:null});if(u===C){l.I=Lr(a,3);if(l.I&&l.I.nodeType===3){l.F=l.I.textContent;e.push(l);a.remove();if(o===l.R){if(!r.k){r.k=[]}r.k[l.U]=l}if(t&&l.P==="0"){t[l.U]=l.I}}}else if(u===E){l.I=Lr(a,8);if(l.I&&l.I.nodeType===8){e.push(l);a.remove()}}else if(l.R===o){if(u===k){var p=a["s-sn"]=v[5]||"";Ur(p,v[2],l,a,r,e,n,t,f)}else if(u===F){if(t){a.remove()}else{i["s-cr"]=a;a["s-cn"]=true}}}}}else if(r&&r.N==="style"){var h=Er(null,a.textContent);h.I=a;h.U="0";r.k=[h]}else{if(a.nodeType===3&&!a.wholeText.trim()&&!a["s-nr"]){a.remove()}}return r};var Tr=function(r,e){if(r.nodeType===1){var n=r[A]||r.getAttribute(A);if(n){e.set(n,r)}var t=0;if(r.shadowRoot){for(;t<r.shadowRoot.childNodes.length;t++){Tr(r.shadowRoot.childNodes[t],e)}}var i=r.__childNodes||r.childNodes;for(t=0;t<i.length;t++){Tr(i[t],e)}}else if(r.nodeType===8){var a=r.nodeValue.split(".");if(a[0]===O){e.set(a[1]+"."+a[2],r);r.nodeValue="";r["s-en"]=a[3]}}};var Pr=function(r){var e={v:0,R:null,T:null,P:null,U:"0",I:null,O:null,k:null,C:null,A:null,N:null,F:null};return __assign(__assign({},e),r)};function Ur(r,e,n,t,i,a,o,f,u){t["s-sr"]=true;n.A=r||null;n.N="slot";var v=(i==null?void 0:i.I)?i.I["s-id"]||i.I.getAttribute("s-id"):"";if(f&&R.document){var l=n.I=R.document.createElement(n.N);if(n.A){n.I.setAttribute("name",r)}if(i.I.shadowRoot&&v&&v!==n.R){br(i.I,"insertBefore")(l,br(i.I,"children")[0])}else{br(br(t,"parentNode"),"insertBefore")(l,t)}Br(u,e,r,t,n.R);t.remove();if(n.P==="0"){f[n.U]=n.I}}else{var l=n.I;var c=v&&v!==n.R&&i.I.shadowRoot;Br(u,e,r,t,c?v:n.R);yr(t);if(c){i.I.insertBefore(l,i.I.children[0])}}a.push(n);o.push(n);if(!i.k){i.k=[]}i.k[n.U]=n}var Br=function(r,e,n,t,i){var a,o;var f=t.nextSibling;r[e]=r[e]||[];if(!f||((a=f.nodeValue)==null?void 0:a.startsWith(k+".")))return;do{if(f&&((f["getAttribute"]&&f.getAttribute("slot")||f["s-sn"])===n||n===""&&!f["s-sn"]&&(!f["getAttribute"]||!f.getAttribute("slot"))&&(f.nodeType===8||f.nodeType===3))){f["s-sn"]=n;r[e].push({slot:t,node:f,hostId:i})}f=f==null?void 0:f.nextSibling}while(f&&!((o=f.nodeValue)==null?void 0:o.startsWith(k+".")))};var Lr=function(r,e){var n=r;do{n=n.nextSibling}while(n&&(n.nodeType!==e||!n.nodeValue));return n};var Wr=function(r){var e=Z(r);return new RegExp("(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?".concat(e,"))(").concat(e,"\\b)"),"g")};Wr("::slotted");Wr(":host");Wr(":host-context");var Hr=function(r,e,n){if(typeof r==="string"&&r.startsWith(h)){r=fr(r);return r}if(r!=null&&!Q(r)){if(e&4){{return r==="false"?false:r===""||!!r}}if(e&2){return typeof r==="string"?parseFloat(r):typeof r==="number"?r:NaN}if(e&1){return String(r)}return r}return r};var Vr=r("a",(function(r){var e;return(e=y(r))==null?void 0:e.$hostElement$}));var qr=r("c",(function(r,e,n){var t=Vr(r);return{emit:function(r){return Gr(t,e,{bubbles:true,composed:true,cancelable:true,detail:r})}}}));var Gr=function(r,e,n){var t=T.ce(e,n);r.dispatchEvent(t);return t};var Yr=function(r,e,n,t,i,a,o){if(n===t){return}var f=m(r,e);var u=e.toLowerCase();if(e==="class"){var v=r.classList;var l=Kr(n);var c=Kr(t);if((r["s-si"]||r["s-sc"])&&o){var s=r["s-sc"]||r["s-si"];c.push(s);l.forEach((function(r){if(r.startsWith(s))c.push(r)}));c=__spreadArray([],new Set(c),true).filter((function(r){return r}));v.add.apply(v,c)}else{v.remove.apply(v,l.filter((function(r){return r&&!c.includes(r)})));v.add.apply(v,c.filter((function(r){return r&&!l.includes(r)})))}}else if(e==="style"){{for(var p in n){if(!t||t[p]==null){if(p.includes("-")){r.style.removeProperty(p)}else{r.style[p]=""}}}}for(var p in t){if(!n||t[p]!==n[p]){if(p.includes("-")){r.style.setProperty(p,t[p])}else{r.style[p]=t[p]}}}}else if(e==="key");else if(e==="ref"){if(t){t(r)}}else if(!f&&e[0]==="o"&&e[1]==="n"){if(e[2]==="-"){e=e.slice(3)}else if(m(R,u)){e=u.slice(2)}else{e=u[2]+e.slice(3)}if(n||t){var d=e.endsWith(Qr);e=e.replace(Xr,"");if(n){T.rel(r,e,n,d)}if(t){T.ael(r,e,t,d)}}}else{var h=Q(t);if((f||h&&t!==null)&&!i){try{if(!r.tagName.includes("-")){var x=t==null?"":t;if(e==="list"){f=false}else if(n==null||r[e]!=x){if(typeof r.__lookupSetter__(e)==="function"){r[e]=x}else{r.setAttribute(e,x)}}}else if(r[e]!==t){r[e]=t}}catch(r){}}var g=false;{if(u!==(u=u.replace(/^xlink\:?/,""))){e=u;g=true}}if(t==null||t===false){if(t!==false||r.getAttribute(e)===""){if(g){r.removeAttributeNS(M,e)}else{r.removeAttribute(e)}}}else if((!f||a&4||i)&&!h&&r.nodeType===1){t=t===true?"":t;if(g){r.setAttributeNS(M,e,t)}else{r.setAttribute(e,t)}}}};var Jr=/\s/;var Kr=function(r){if(typeof r==="object"&&r&&"baseVal"in r){r=r.baseVal}if(!r||typeof r!=="string"){return[]}return r.split(Jr)};var Qr="Capture";var Xr=new RegExp(Qr+"$");var Zr=function(r,e,n,t){var i=e.I.nodeType===11&&e.I.host?e.I.host:e.I;var a=r&&r.O||{};var o=e.O||{};{for(var f=0,u=re(Object.keys(a));f<u.length;f++){var v=u[f];if(!(v in o)){Yr(i,v,a[v],void 0,n,e.v,t)}}}for(var l=0,c=re(Object.keys(o));l<c.length;l++){var v=c[l];Yr(i,v,a[v],o[v],n,e.v,t)}};function re(r){return r.includes("ref")?__spreadArray(__spreadArray([],r.filter((function(r){return r!=="ref"})),true),["ref"],false):r}var ee;var ne;var te;var ie=false;var ae=false;var oe=false;var fe=false;var ue=function(r,e,n){var t;var a=e.k[n];var o=0;var f;var u;var c;if(!ie){oe=true;if(a.N==="slot"){a.v|=a.k?2:1}}if(a.F!==null){f=a.I=R.document.createTextNode(a.F)}else if(a.v&1){f=a.I=R.document.createTextNode("");{Zr(null,a,fe)}}else{if(!fe){fe=a.N==="svg"}if(!R.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.")}f=a.I=R.document.createElementNS(fe?v:l,!ie&&i.slotRelocation&&a.v&2?"slot-fb":a.N);if(fe&&a.N==="foreignObject"){fe=false}{Zr(null,a,fe)}if(K(ee)&&f["s-si"]!==ee){f.classList.add(f["s-si"]=ee)}if(a.k){for(o=0;o<a.k.length;++o){u=ue(r,a,o);if(u){f.appendChild(u)}}}{if(a.N==="svg"){fe=false}else if(f.tagName==="foreignObject"){fe=true}}}f["s-hn"]=te;{if(a.v&(2|1)){f["s-sr"]=true;f["s-cr"]=ne;f["s-sn"]=a.A||"";f["s-rf"]=(t=a.O)==null?void 0:t.ref;yr(f);c=r&&r.k&&r.k[n];if(c&&c.N===a.N&&r.I){{ve(r.I,false)}}{we(ne,f,e.I,r==null?void 0:r.I)}}}return f};var ve=function(r,e){T.v|=1;var n=Array.from(r.__childNodes||r.childNodes);for(var t=n.length-1;t>=0;t--){var i=n[t];if(i["s-hn"]!==te&&i["s-ol"]){be(de(i).parentNode,i,de(i));i["s-ol"].remove();i["s-ol"]=void 0;i["s-sh"]=void 0;oe=true}if(e){ve(i,e)}}T.v&=-2};var le=function(r,e,n,t,i,a){var o=r["s-cr"]&&r["s-cr"].parentNode||r;var f;if(o.shadowRoot&&o.tagName===te){o=o.shadowRoot}for(;i<=a;++i){if(t[i]){f=ue(null,n,i);if(f){t[i].I=f;be(o,f,de(e))}}}};var ce=function(r,e,n){for(var t=e;t<=n;++t){var i=r[t];if(i){var a=i.I;ye(i);if(a){{ae=true;if(a["s-ol"]){a["s-ol"].remove()}else{ve(a,true)}}a.remove()}}}};var se=function(r,e,n,t,i){if(i===void 0){i=false}var a=0;var o=0;var f=0;var u=0;var v=e.length-1;var l=e[0];var c=e[v];var s=t.length-1;var p=t[0];var d=t[s];var h;var x;while(a<=v&&o<=s){if(l==null){l=e[++a]}else if(c==null){c=e[--v]}else if(p==null){p=t[++o]}else if(d==null){d=t[--s]}else if(pe(l,p,i)){he(l,p,i);l=e[++a];p=t[++o]}else if(pe(c,d,i)){he(c,d,i);c=e[--v];d=t[--s]}else if(pe(l,d,i)){if(l.N==="slot"||d.N==="slot"){ve(l.I.parentNode,false)}he(l,d,i);be(r,l.I,c.I.nextSibling);l=e[++a];d=t[--s]}else if(pe(c,p,i)){if(l.N==="slot"||d.N==="slot"){ve(c.I.parentNode,false)}he(c,p,i);be(r,c.I,l.I);c=e[--v];p=t[++o]}else{f=-1;{for(u=a;u<=v;++u){if(e[u]&&e[u].C!==null&&e[u].C===p.C){f=u;break}}}if(f>=0){x=e[f];if(x.N!==p.N){h=ue(e&&e[o],n,f)}else{he(x,p,i);e[f]=void 0;h=x.I}p=t[++o]}else{h=ue(e&&e[o],n,o);p=t[++o]}if(h){{be(de(l.I).parentNode,h,de(l.I))}}}}if(a>v){le(r,t[s+1]==null?null:t[s+1].I,n,t,o,s)}else if(o>s){ce(e,a,v)}};var pe=function(r,e,n){if(n===void 0){n=false}if(r.N===e.N){if(r.N==="slot"){return r.A===e.A}if(!n){return r.C===e.C}if(n&&!r.C&&e.C){r.C=e.C}return true}return false};var de=function(r){return r&&r["s-ol"]||r};var he=function(r,e,n){if(n===void 0){n=false}var t=e.I=r.I;var a=r.k;var o=e.k;var f=e.N;var u=e.F;var v;if(u===null){{fe=f==="svg"?true:f==="foreignObject"?false:fe}{Zr(r,e,fe,n)}if(a!==null&&o!==null){se(t,a,e,o,n)}else if(o!==null){if(r.F!==null){t.textContent=""}le(t,null,e,o,0,o.length-1)}else if(!n&&i.updatable&&a!==null){ce(a,0,a.length-1)}else if(n&&i.updatable&&a!==null&&o===null){e.k=a}if(fe&&f==="svg"){fe=false}}else if(v=t["s-cr"]){v.parentNode.textContent=u}else if(r.F!==u){t.data=u}};var xe=[];var ge=function(r){var e;var n;var t;var i=r.__childNodes||r.childNodes;for(var a=0,o=i;a<o.length;a++){var f=o[a];if(f["s-sr"]&&(e=f["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;var u=f["s-sn"];var v=function(){e=n[t];if(!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==f["s-hn"]&&true){if(hr(e,u)){var r=xe.find((function(r){return r.B===e}));ae=true;e["s-sn"]=e["s-sn"]||u;if(r){r.B["s-sh"]=f["s-hn"];r.L=f}else{e["s-sh"]=f["s-hn"];xe.push({L:f,B:e})}if(e["s-sr"]){xe.map((function(n){if(hr(n.B,e["s-sn"])){r=xe.find((function(r){return r.B===e}));if(r&&!n.L){n.L=r.L}}}))}}else if(!xe.some((function(r){return r.B===e}))){xe.push({B:e})}}};for(t=n.length-1;t>=0;t--){v()}}if(f.nodeType===1){ge(f)}}};var ye=function(r){{r.O&&r.O.ref&&r.O.ref(null);r.k&&r.k.map(ye)}};var be=function(r,e,n){if(typeof e["s-sn"]==="string"&&!!e["s-sr"]&&!!e["s-cr"]){we(e["s-cr"],e,r,e.parentElement)}{return r==null?void 0:r.insertBefore(e,n)}};function we(r,e,n,t){var i,a;var o;if(r&&typeof e["s-sn"]==="string"&&!!e["s-sr"]&&r.parentNode&&r.parentNode["s-sc"]&&(o=e["s-si"]||r.parentNode["s-sc"])){var f=e["s-sn"];var u=e["s-hn"];(i=n.classList)==null?void 0:i.add(o+"-s");if(t&&((a=t.classList)==null?void 0:a.contains(o+"-s"))){var v=(t.__childNodes||t.childNodes)[0];var l=false;while(v){if(v["s-sn"]!==f&&v["s-hn"]===u&&!!v["s-sr"]){l=true;break}v=v.nextSibling}if(!l)t.classList.remove(o+"-s")}}}var me=function(r,e,n){if(n===void 0){n=false}var t,i,a,o;var f=r.$hostElement$;var u=r.t;var v=r.M||Er(null,null);var l=zr(e);var c=l?e:Cr(null,null,e);te=f.tagName;if(u.W){c.O=c.O||{};u.W.forEach((function(r){var e=r[0],n=r[1];{c.O[n]=f[e]}}))}if(n&&c.O){for(var s=0,p=Object.keys(c.O);s<p.length;s++){var d=p[s];if(f.hasAttribute(d)&&!["key","ref","style","class"].includes(d)){c.O[d]=f[d]}}}c.N=null;c.v|=4;r.M=c;c.I=v.I=f.shadowRoot||f;{ee=f["s-sc"]}ie=!!(u.v&1)&&!(u.v&128);{ne=f["s-cr"];ae=false}he(v,c,n);{T.v|=1;if(oe){ge(c.I);for(var h=0,x=xe;h<x.length;h++){var g=x[h];var y=g.B;if(!y["s-ol"]&&R.document){var b=R.document.createTextNode("");b["s-nr"]=y;be(y.parentNode,y["s-ol"]=b,y)}}for(var w=0,m=xe;w<m.length;w++){var g=m[w];var y=g.B;var $=g.L;if($){var _=$.parentNode;var S=$.nextSibling;{var b=(t=y["s-ol"])==null?void 0:t.previousSibling;while(b){var j=(i=b["s-nr"])!=null?i:null;if(j&&j["s-sn"]===y["s-sn"]&&_===(j.__parentNode||j.parentNode)){j=j.nextSibling;while(j===y||(j==null?void 0:j["s-sr"])){j=j==null?void 0:j.nextSibling}if(!j||!j["s-nr"]){S=j;break}}b=b.previousSibling}}var F=y.__parentNode||y.parentNode;var O=y.__nextSibling||y.nextSibling;if(!S&&_!==F||O!==S){if(y!==S){if(!y["s-hn"]&&y["s-ol"]){y["s-hn"]=y["s-ol"].parentNode.nodeName}be(_,y,S);if(y.nodeType===1&&y.tagName!=="SLOT-FB"){y.hidden=(a=y["s-ih"])!=null?a:false}}}y&&typeof $["s-rf"]==="function"&&$["s-rf"]($)}else{if(y.nodeType===1){if(n){y["s-ih"]=(o=y.hidden)!=null?o:false}y.hidden=true}}}}if(ae){cr(c.I)}T.v&=-2;xe.length=0}ne=void 0};var $e=function(r,e){if(e&&!r.H&&e["s-p"]){var n=e["s-p"].push(new Promise((function(t){return r.H=function(){e["s-p"].splice(n-1,1);t()}})))}};var _e=function(r,e){{r.v|=16}if(r.v&4){r.v|=512;return}$e(r,r.V);var n=function(){return Se(r,e)};if(e){queueMicrotask((function(){n()}));return}return J(n)};var Se=function(r,e){var n=r.$hostElement$;var t=wr("scheduleUpdate",r.t.$);var i=r.u;if(!i){throw new Error("Can't render component <".concat(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"))}var a;if(e){{if(r.m.length){r.m.forEach((function(r){return r(n)}))}}a=Ae(i,"componentWillLoad",void 0,n)}else{a=Ae(i,"componentWillUpdate",void 0,n)}a=je(a,(function(){return Ae(i,"componentWillRender",void 0,n)}));t();return je(a,(function(){return Oe(r,i,e)}))};var je=function(r,e){return Fe(r)?r.then(e).catch((function(r){console.error(r);e()})):e()};var Fe=function(r){return r instanceof Promise||r&&r.then&&typeof r.then==="function"};var Oe=function(r,e,t){return __awaiter(n,void 0,void 0,(function(){var n,i,a,o,f,u,v;return __generator(this,(function(l){i=r.$hostElement$;a=wr("update",r.t.$);o=i["s-rc"];if(t){jr(r)}f=wr("render",r.t.$);{ke(r,e,i,t)}if(o){o.map((function(r){return r()}));i["s-rc"]=void 0}f();a();{u=(n=i["s-p"])!=null?n:[];v=function(){return Ce(r)};if(u.length===0){v()}else{Promise.all(u).then(v);r.v|=4;u.length=0}}return[2]}))}))};var ke=function(r,e,n,t){try{e=e.render();{r.v&=-17}{r.v|=2}{{{me(r,e,t)}}}}catch(e){$(e,r.$hostElement$)}return null};var Ce=function(r){var e=r.t.$;var n=r.$hostElement$;var t=wr("postUpdate",e);var i=r.u;var a=r.V;Ae(i,"componentDidRender",void 0,n);if(!(r.v&64)){r.v|=64;{ze(n)}Ae(i,"componentDidLoad",void 0,n);t();{r.h(n);if(!a){Ee()}}}else{Ae(i,"componentDidUpdate",void 0,n);t()}{if(r.H){r.H();r.H=void 0}if(r.v&512){Y((function(){return _e(r,false)}))}r.v&=-517}};var Ee=function(r){var e;Y((function(){return Gr(R,"appload",{detail:{namespace:t}})}));{if((e=T.D)==null?void 0:e.size){T.D.clear()}}};var Ae=function(r,e,n,t){if(r&&r[e]){try{return r[e](n)}catch(r){$(r,t)}}return void 0};var ze=function(r){var e;return r.classList.add((e=i.hydratedSelectorName)!=null?e:"hydrated")};var Ne=function(r,e){return y(r).o.get(e)};var Ie=function(r,e,n,t){var i=y(r);if(!i){return}if(!i){throw new Error("Couldn't find host element for \"".concat(t.$,'" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).'))}var a=i.$hostElement$;var o=i.o.get(e);var f=i.v;var u=i.u;n=Hr(n,t.i[e][0]);var v=Number.isNaN(o)&&Number.isNaN(n);var l=n!==o&&!v;if((!(f&8)||o===void 0)&&l){i.o.set(e,n);if(u){if(t.q&&f&128){var c=t.q[e];if(c){c.map((function(r){try{u[r](n,o,e)}catch(r){$(r,a)}}))}}if((f&(2|16))===2){if(u.componentShouldUpdate){if(u.componentShouldUpdate(n,o,e)===false){return}}_e(i,false)}}}};var De=function(r,e,n){var t,a;var o=r.prototype;if(e.i||i.propChangeCallback){{if(r.watchers&&!e.q){e.q=r.watchers}if(r.deserializers&&!e.G){e.G=r.deserializers}if(r.serializers&&!e.Y){e.Y=r.serializers}}var f=Object.entries((t=e.i)!=null?t:{});f.map((function(r){var t=r[0],i=r[1][0];if(i&31||n&2&&i&32){var a=Object.getOwnPropertyDescriptor(o,t)||{},f=a.get,u=a.set;if(f)e.i[t][0]|=2048;if(u)e.i[t][0]|=4096;if(n&1||!f){Object.defineProperty(o,t,{get:function(){{if((e.i[t][0]&2048)===0){return Ne(this,t)}var r=y(this);var n=r?r.u:o;if(!n)return;return n[t]}},configurable:true,enumerable:true})}Object.defineProperty(o,t,{set:function(r){var a=this;var o=y(this);if(!o){return}if(u){var f=i&32?this[t]:o.$hostElement$[t];if(typeof f==="undefined"&&o.o.get(t)){r=o.o.get(t)}u.apply(this,[Hr(r,i)]);r=i&32?this[t]:o.$hostElement$[t];Ie(this,t,r,e);return}{if((n&1)===0||(e.i[t][0]&4096)===0){Ie(this,t,r,e);if(n&1&&!o.u){o.m.push((function(){if(e.i[t][0]&4096&&o.u[t]!==o.o.get(t)){o.u[t]=r}}))}return}var v=function(){var n=o.u[t];if(!o.o.get(t)&&n){o.o.set(t,n)}o.u[t]=Hr(r,i);Ie(a,t,o.u[t],e)};if(o.u){v()}else{o.m.push((function(){v()}))}}}})}}));if(n&1){var u=new Map;o.attributeChangedCallback=function(r,n,t){var a=this;T.jmp((function(){var v;var l=u.get(r);var c=y(a);if(a.hasOwnProperty(l)&&i.lazyLoad){t=a[l];delete a[l]}if(o.hasOwnProperty(l)&&typeof a[l]==="number"&&a[l]==t){return}else if(l==null){var s=c==null?void 0:c.v;if(c&&s&&!(s&8)&&s&128&&t!==n){var p=c.u;var d=(v=e.q)==null?void 0:v[r];d==null?void 0:d.forEach((function(e){if(p[e]!=null){p[e].call(p,t,n,r)}}))}return}var h=f.find((function(r){var e=r[0];return e===l}));if(h&&h[1][0]&4){t=t===null||t==="false"?false:true}var x=Object.getOwnPropertyDescriptor(o,l);if(t!=a[l]&&(!x.get||!!x.set)){a[l]=t}}))};r.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((a=e.q)!=null?a:{}),true),f.filter((function(r){var e=r[0],n=r[1];return n[0]&31})).map((function(r){var n=r[0],t=r[1];var i;var a=t[1]||n;u.set(a,n);if(t[0]&512){(i=e.W)==null?void 0:i.push([n,a])}return a})),true)))}}return r};var Me=function(r,e,t,i){return __awaiter(n,void 0,void 0,(function(){var n,i,a,o,f,u,v,l,c,s,p;return __generator(this,(function(d){switch(d.label){case 0:if(!((e.v&32)===0))return[3,6];e.v|=32;i=t._;if(!i)return[3,4];a=S(t,e);if(!(a&&"then"in a))return[3,2];o=mr();return[4,a];case 1:n=d.sent();o();return[3,3];case 2:n=a;d.label=3;case 3:if(!n){throw new Error('Constructor for "'.concat(t.$,"#").concat(e.J,'" was not found'))}if(!n.isProxied){{t.q=n.watchers;t.Y=n.serializers;t.G=n.deserializers}De(n,t,2);n.isProxied=true}f=wr("createInstance",t.$);{e.v|=8}try{new n(e)}catch(e){$(e,r)}{e.v&=-9}{e.v|=128}f();Re(e.u,r);return[3,5];case 4:n=r.constructor;u=r.localName;customElements.whenDefined(u).then((function(){return e.v|=128}));d.label=5;case 5:if(n&&n.style){v=void 0;if(typeof n.style==="string"){v=n.style}l=Fr(t);if(!j.has(l)){c=wr("registerStyles",t.$);_r(l,v,!!(t.v&1));c()}}d.label=6;case 6:s=e.V;p=function(){return _e(e,true)};if(s&&s["s-rc"]){s["s-rc"].push(p)}else{p()}return[2]}}))}))};var Re=function(r,e){{Ae(r,"connectedCallback",void 0,e)}};var Te=function(r){if((T.v&1)===0){var e=y(r);if(!e){return}var n=e.t;var t=wr("connectedCallback",n.$);if(!(e.v&1)){e.v|=1;var i=void 0;{i=r.getAttribute(A);if(i){if(n.v&1){var a=Sr(r.shadowRoot,n);r.classList.remove(a+"-h",a+"-s")}else if(n.v&2){var a=Fr(n);r["s-sc"]=a}Mr(r,n.$,i,e)}}if(!i){if(n.v&(4|8)){Pe(r)}}{var o=r;while(o=o.parentNode||o.host){if(o.nodeType===1&&o.hasAttribute("s-id")&&o["s-p"]||o["s-p"]){$e(e,e.V=o);break}}}if(n.i){Object.entries(n.i).map((function(e){var n=e[0],t=e[1][0];if(t&31&&n in r&&r[n]!==Object.prototype[n]){var i=r[n];delete r[n];r[n]=i}}))}{Me(r,e,n)}}else{if(e==null?void 0:e.u){Re(e.u,r)}else if(e==null?void 0:e.p){e.p.then((function(){return Re(e.u,r)}))}}t()}};var Pe=function(r){if(!R.document){return}var e=r["s-cr"]=R.document.createComment("");e["s-cn"]=true;be(r,e,r.firstChild)};var Ue=function(r,e){{Ae(r,"disconnectedCallback",void 0,e||r)}};var Be=function(r){return __awaiter(n,void 0,void 0,(function(){var e;return __generator(this,(function(n){if((T.v&1)===0){e=y(r);if(e==null?void 0:e.u){Ue(e.u,r)}else if(e==null?void 0:e.p){e.p.then((function(){return Ue(e.u,r)}))}}if($r.has(r)){$r.delete(r)}if(r.shadowRoot&&$r.has(r.shadowRoot)){$r.delete(r.shadowRoot)}return[2]}))}))};var Le=r("b",(function(r,e){if(e===void 0){e={}}var n;if(!R.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}var t=wr();var i=[];var a=e.exclude||[];var o=R.customElements;var f=R.document.head;var u=f.querySelector("meta[charset]");var v=R.document.createElement("style");var l=[];var c;var s=true;Object.assign(T,e);T.S=new URL(e.resourcesUrl||"./",R.document.baseURI).href;{T.v|=2}{kr()}var p=false;r.map((function(r){r[1].map((function(e){var n,t,f;var u={v:e[0],$:e[1],i:e[2],K:e[3]};if(u.v&4){p=true}{u.i=e[2]}{u.W=[]}{u.q=(n=e[4])!=null?n:{};u.Y=(t=e[5])!=null?t:{};u.G=(f=e[6])!=null?f:{}}var v=He(u.$);var d=function(r){__extends(e,r);function e(e){var n=r.call(this,e)||this;n.hasRegisteredEventListeners=false;e=n;w(e,u);if(u.v&1){{if(!e.shadowRoot){lr.call(e,u)}else{if(e.shadowRoot.mode!=="open"){throw new Error("Unable to re-use existing shadow root for ".concat(u.$,"! Mode is set to ").concat(e.shadowRoot.mode," but Stencil only supports open shadow roots."))}}}}return n}e.prototype.connectedCallback=function(){var r=this;var e=y(this);if(!e){return}if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(c){clearTimeout(c);c=null}if(s){l.push(this)}else{T.jmp((function(){return Te(r)}))}};e.prototype.disconnectedCallback=function(){var r=this;T.jmp((function(){return Be(r)}));T.raf((function(){var e;var n=y(r);if(!n){return}var t=l.findIndex((function(e){return e===r}));if(t>-1){l.splice(t,1)}if(((e=n==null?void 0:n.M)==null?void 0:e.I)instanceof Node&&!n.M.I.isConnected){delete n.M.I}}))};e.prototype.componentOnReady=function(){var r;return(r=y(this))==null?void 0:r.p};return e}(HTMLElement);u._=r[0];if(!a.includes(v)&&!o.get(v)){i.push(v);o.define(v,De(d,u,1))}}))}));if(i.length>0){if(p){v.textContent+=D}{v.textContent+=i.sort()+I}if(v.innerHTML.length){v.setAttribute("data-styles","");var d=(n=T.j)!=null?n:X(R.document);if(d!=null){v.setAttribute("nonce",d)}f.insertBefore(v,u?u.nextSibling:f.firstChild)}}s=false;if(l.length){l.map((function(r){return r.connectedCallback()}))}else{{T.jmp((function(){return c=setTimeout(Ee,30)}))}}t()}));var We=r("s",(function(r){return T.j=r}));function He(r){return r}}}})); //# sourceMappingURL=p-xc8K752f.system.js.map