@peculiar/fortify-webcomponents
Version:
Web-components for creating CSR or Certificate and viewing certificates list using Fortify
6 lines • 32.1 kB
JavaScript
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 f(r){try{o(t.next(r))}catch(r){a(r)}}function u(r){try{o(t["throw"](r))}catch(r){a(r)}}function o(r){r.done?n(r.value):i(r.value).then(f,u)}o((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,f;return f={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(f[Symbol.iterator]=function(){return this}),f;function u(r){return function(e){return o([r,e])}}function o(u){if(t)throw new TypeError("Generator is already executing.");while(f&&(f=0,u[0]&&(n=0)),n)try{if(t=1,i&&(a=u[0]&2?i["return"]:u[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;if(i=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;i=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1];a=u;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(u);break}if(a[2])n.ops.pop();n.trys.pop();continue}u=e.call(r,n)}catch(r){u=[6,r];i=0}finally{t=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[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={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,cmpDidLoad:true,cmpDidRender:false,cmpDidUnload:false,cmpDidUpdate:true,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:false,cmpWillUpdate:false,connectedCallback:false,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:true,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:false,hasRenderFn:true,hostListener:false,hostListenerTarget:false,hostListenerTargetBody:false,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:false,hotModuleReplacement:false,hydrateClientSide:true,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,hydratedSelectorName:"hydrated",initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:false,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:false,propNumber:true,propString:true,reflect:true,scoped:true,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:true,slot:true,slotChildNodesFix:false,slotRelocation:true,state:true,style:true,svg:true,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:true,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:true,watchCallback:true};var a=Object.defineProperty;var f=function(r,e){for(var n in e)a(r,n,{get:e[n],enumerable:true})};var u=new WeakMap;var o=function(r){return u.get(r)};var l=r("r",(function(r,e){return u.set(e.t=r,e)}));var v=function(r,e){var n={i:0,$hostElement$:r,u:e,o:new Map};{n.l=new Promise((function(r){return n.v=r}));r["s-p"]=[];r["s-rc"]=[]}return u.set(r,n)};var s=function(r,e){return e in r};var c=function(r,e){return(0,console.error)(r,e)};var d=new Map;var h=function(r,n,t){var i=r.h.replace(/-/g,"_");var a=r.p;if(!a){return void 0}var f=d.get(a);if(f){return f[i]}
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return e.import("./".concat(a,".entry.js").concat("")).then((function(r){{d.set(a,r)}return r[i]}),c)};var p=new Map;var m="r";var y="o";var $="s";var w="t";var b="c";var g="s-id";var _="sty-id";var S="c-id";var k="{visibility:hidden}.hydrated{visibility:inherit}";var x="slot-fb{display:contents}slot-fb[hidden]{display:none}";var A="http://www.w3.org/1999/xlink";var j=typeof window!=="undefined"?window:{};var O=j.document||{head:{}};var C={i:0,m:"",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 T=r("p",(function(r){return Promise.resolve(r)}));var E=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(r){}return false}();var D=false;var L=[];var M=[];var R=function(r,e){return function(n){r.push(n);if(!D){D=true;if(e&&C.i&4){I(P)}else{C.raf(P)}}}};var F=function(r){for(var e=0;e<r.length;e++){try{r[e](performance.now())}catch(r){c(r)}}r.length=0};var P=function(){F(L);{F(M);if(D=L.length>0){C.raf(P)}}};var I=function(r){return T().then(r)};var N=R(M,true);var U={};var W="http://www.w3.org/2000/svg";var H="http://www.w3.org/1999/xhtml";var B=function(r){return r!=null};var z=function(r){r=typeof r;return r==="object"||r==="function"};function G(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 Q={};f(Q,{err:function(){return K},map:function(){return V},ok:function(){return q},unwrap:function(){return X},unwrapErr:function(){return J}});var q=function(r){return{isOk:true,isErr:false,value:r}};var K=function(r){return{isOk:false,isErr:true,value:r}};function V(r,e){if(r.isOk){var n=e(r.value);if(n instanceof Promise){return n.then((function(r){return q(r)}))}else{return q(n)}}if(r.isErr){var t=r.value;return K(t)}throw"should never get here"}var X=function(r){if(r.isOk){return r.value}else{throw r.value}};var J=function(r){if(r.isErr){return r.value}else{throw r.value}};var Y=r("h",(function(r,e){var n=[];for(var t=2;t<arguments.length;t++){n[t-2]=arguments[t]}var i=null;var a=null;var f=null;var u=false;var o=false;var l=[];var v=function(e){for(var n=0;n<e.length;n++){i=e[n];if(Array.isArray(i)){v(i)}else if(i!=null&&typeof i!=="boolean"){if(u=typeof r!=="function"&&!z(i)){i=String(i)}if(u&&o){l[l.length-1].$+=i}else{l.push(u?Z(null,i):i)}o=u}}};v(n);if(e){if(e.key){a=e.key}if(e.name){f=e.name}{var s=e.className||e.class;if(s){e.class=typeof s!=="object"?s:Object.keys(s).filter((function(r){return s[r]})).join(" ")}}}if(typeof r==="function"){return r(e===null?{}:e,l,nr)}var c=Z(r,null);c._=e;if(l.length>0){c.S=l}{c.k=a}{c.A=f}return c}));var Z=function(r,e){var n={i:0,j:r,$:e,O:null,S:null};{n._=null}{n.k=null}{n.A=null}return n};var rr=r("H",{});var er=function(r){return r&&r.j===rr};var nr={forEach:function(r,e){return r.map(tr).forEach(e)},map:function(r,e){return r.map(tr).map(e).map(ir)}};var tr=function(r){return{vattrs:r._,vchildren:r.S,vkey:r.k,vname:r.A,vtag:r.j,vtext:r.$}};var ir=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 Y.apply(void 0,__spreadArray([r.vtag,e],r.vchildren||[],false))}var n=Z(r.vtag,r.vtext);n._=r.vattrs;n.S=r.vchildren;n.k=r.vkey;n.A=r.vname;return n};var ar=function(r,e,n,t,i,a){if(n!==t){var f=s(r,e);var u=e.toLowerCase();if(e==="class"){var o=r.classList;var l=ur(n);var v=ur(t);if(r["s-si"]&&v.indexOf(r["s-si"])<0){v.push(r["s-si"])}o.remove.apply(o,l.filter((function(r){return r&&!v.includes(r)})));o.add.apply(o,v.filter((function(r){return r&&!l.includes(r)})))}else if(e==="style"){{for(var c in n){if(!t||t[c]==null){if(c.includes("-")){r.style.removeProperty(c)}else{r.style[c]=""}}}}for(var c in t){if(!n||t[c]!==n[c]){if(c.includes("-")){r.style.setProperty(c,t[c])}else{r.style[c]=t[c]}}}}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(s(j,u)){e=u.slice(2)}else{e=u[2]+e.slice(3)}if(n||t){var d=e.endsWith(or);e=e.replace(lr,"");if(n){C.rel(r,e,n,d)}if(t){C.ael(r,e,t,d)}}}else{var h=z(t);if((f||h&&t!==null)&&!i){try{if(!r.tagName.includes("-")){var p=t==null?"":t;if(e==="list"){f=false}else if(n==null||r[e]!=p){if(typeof r.__lookupSetter__(e)==="function"){r[e]=p}else{r.setAttribute(e,p)}}}else{r[e]=t}}catch(r){}}var m=false;{if(u!==(u=u.replace(/^xlink\:?/,""))){e=u;m=true}}if(t==null||t===false){if(t!==false||r.getAttribute(e)===""){if(m){r.removeAttributeNS(A,e)}else{r.removeAttribute(e)}}}else if((!f||a&4||i)&&!h){t=t===true?"":t;if(m){r.setAttributeNS(A,e,t)}else{r.setAttribute(e,t)}}}}};var fr=/\s/;var ur=function(r){return!r?[]:r.split(fr)};var or="Capture";var lr=new RegExp(or+"$");var vr=function(r,e,n){var t=e.O.nodeType===11&&e.O.host?e.O.host:e.O;var i=r&&r._||U;var a=e._||U;{for(var f=0,u=sr(Object.keys(i));f<u.length;f++){var o=u[f];if(!(o in a)){ar(t,o,i[o],void 0,n,e.i)}}}for(var l=0,v=sr(Object.keys(a));l<v.length;l++){var o=v[l];ar(t,o,i[o],a[o],n,e.i)}};function sr(r){return r.includes("ref")?__spreadArray(__spreadArray([],r.filter((function(r){return r!=="ref"})),true),["ref"],false):r}var cr;var dr;var hr;var pr=false;var mr=false;var yr=false;var $r=false;var wr=function(r,e,n,t){var a;var f=e.S[n];var u=0;var o;var l;var v;if(!pr){yr=true;if(f.j==="slot"){if(cr){t.classList.add(cr+"-s")}f.i|=f.S?2:1}}if(f.$!==null){o=f.O=O.createTextNode(f.$)}else if(f.i&1){o=f.O=O.createTextNode("")}else{if(!$r){$r=f.j==="svg"}o=f.O=O.createElementNS($r?W:H,!pr&&i.slotRelocation&&f.i&2?"slot-fb":f.j);if($r&&f.j==="foreignObject"){$r=false}{vr(null,f,$r)}var s=o.getRootNode();var c=!s.querySelector("body");if(!c&&i.scoped&&B(cr)&&o["s-si"]!==cr){o.classList.add(o["s-si"]=cr)}{Rr(o,t)}if(f.S){for(u=0;u<f.S.length;++u){l=wr(r,f,u,o);if(l){o.appendChild(l)}}}{if(f.j==="svg"){$r=false}else if(o.tagName==="foreignObject"){$r=true}}}o["s-hn"]=hr;{if(f.i&(2|1)){o["s-sr"]=true;o["s-cr"]=dr;o["s-sn"]=f.A||"";o["s-rf"]=(a=f._)==null?void 0:a.ref;v=r&&r.S&&r.S[n];if(v&&v.j===f.j&&r.O){{br(r.O,false)}}}}return o};var br=function(r,e){C.i|=1;var n=Array.from(r.__childNodes||r.childNodes);if(r["s-sr"]&&i.experimentalSlotFixes){var t=r;while(t=t.nextSibling){if(t&&t["s-sn"]===r["s-sn"]&&t["s-sh"]===hr){n.push(t)}}}for(var a=n.length-1;a>=0;a--){var f=n[a];if(f["s-hn"]!==hr&&f["s-ol"]){Lr(Ar(f),f,xr(f));f["s-ol"].remove();f["s-ol"]=void 0;f["s-sh"]=void 0;yr=true}if(e){br(f,e)}}C.i&=~1};var gr=function(r,e,n,t,i,a){var f=r["s-cr"]&&r["s-cr"].parentNode||r;var u;if(f.shadowRoot&&f.tagName===hr){f=f.shadowRoot}for(;i<=a;++i){if(t[i]){u=wr(null,n,i,r);if(u){t[i].O=u;Lr(f,u,xr(e))}}}};var _r=function(r,e,n){for(var t=e;t<=n;++t){var i=r[t];if(i){var a=i.O;Dr(i);if(a){{mr=true;if(a["s-ol"]){a["s-ol"].remove()}else{br(a,true)}}a.remove()}}}};var Sr=function(r,e,n,t,i){if(i===void 0){i=false}var a=0;var f=0;var u=0;var o=0;var l=e.length-1;var v=e[0];var s=e[l];var c=t.length-1;var d=t[0];var h=t[c];var p;var m;while(a<=l&&f<=c){if(v==null){v=e[++a]}else if(s==null){s=e[--l]}else if(d==null){d=t[++f]}else if(h==null){h=t[--c]}else if(kr(v,d,i)){jr(v,d,i);v=e[++a];d=t[++f]}else if(kr(s,h,i)){jr(s,h,i);s=e[--l];h=t[--c]}else if(kr(v,h,i)){if(v.j==="slot"||h.j==="slot"){br(v.O.parentNode,false)}jr(v,h,i);Lr(r,v.O,s.O.nextSibling);v=e[++a];h=t[--c]}else if(kr(s,d,i)){if(v.j==="slot"||h.j==="slot"){br(s.O.parentNode,false)}jr(s,d,i);Lr(r,s.O,v.O);s=e[--l];d=t[++f]}else{u=-1;{for(o=a;o<=l;++o){if(e[o]&&e[o].k!==null&&e[o].k===d.k){u=o;break}}}if(u>=0){m=e[u];if(m.j!==d.j){p=wr(e&&e[f],n,u,r)}else{jr(m,d,i);e[u]=void 0;p=m.O}d=t[++f]}else{p=wr(e&&e[f],n,f,r);d=t[++f]}if(p){{Lr(Ar(v.O),p,xr(v.O))}}}}if(a>l){gr(r,t[c+1]==null?null:t[c+1].O,n,t,f,c)}else if(f>c){_r(e,a,l)}};var kr=function(r,e,n){if(n===void 0){n=false}if(r.j===e.j){if(r.j==="slot"){if("C"in r&&n&&r.O.nodeType!==8){return false}return r.A===e.A}if(!n){return r.k===e.k}return true}return false};var xr=function(r){return r&&r["s-ol"]||r};var Ar=function(r){return(r["s-ol"]?r["s-ol"]:r).parentNode};var jr=function(r,e,n){if(n===void 0){n=false}var t=e.O=r.O;var a=r.S;var f=e.S;var u=e.j;var o=e.$;var l;if(o===null){{$r=u==="svg"?true:u==="foreignObject"?false:$r}{if(u==="slot"&&!pr);else{vr(r,e,$r)}}if(a!==null&&f!==null){Sr(t,a,e,f,n)}else if(f!==null){if(r.$!==null){t.textContent=""}gr(t,null,e,f,0,f.length-1)}else if(!n&&i.updatable&&a!==null){_r(a,0,a.length-1)}if($r&&u==="svg"){$r=false}}else if(l=t["s-cr"]){l.parentNode.textContent=o}else if(r.$!==o){t.data=o}};var Or=function(r){var e=r.__childNodes||r.childNodes;for(var n=0,t=e;n<t.length;n++){var i=t[n];if(i.nodeType===1){if(i["s-sr"]){var a=i["s-sn"];i.hidden=false;for(var f=0,u=e;f<u.length;f++){var o=u[f];if(o!==i){if(o["s-hn"]!==i["s-hn"]||a!==""){if(o.nodeType===1&&(a===o.getAttribute("slot")||a===o["s-sn"])||o.nodeType===3&&a===o["s-sn"]){i.hidden=true;break}}else if(a===o["s-sn"]){if(o.nodeType===1||o.nodeType===3&&o.textContent.trim()!==""){i.hidden=true;break}}}}}Or(i)}}};var Cr=[];var Tr=function(r){var e;var n;var t;var a=r.__childNodes||r.childNodes;for(var f=0,u=a;f<u.length;f++){var o=u[f];if(o["s-sr"]&&(e=o["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;var l=o["s-sn"];var v=function(){e=n[t];if(!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==o["s-hn"]&&!i.experimentalSlotFixes){if(Er(e,l)){var r=Cr.find((function(r){return r.T===e}));mr=true;e["s-sn"]=e["s-sn"]||l;if(r){r.T["s-sh"]=o["s-hn"];r.D=o}else{e["s-sh"]=o["s-hn"];Cr.push({D:o,T:e})}if(e["s-sr"]){Cr.map((function(n){if(Er(n.T,e["s-sn"])){r=Cr.find((function(r){return r.T===e}));if(r&&!n.D){n.D=r.D}}}))}}else if(!Cr.some((function(r){return r.T===e}))){Cr.push({T:e})}}};for(t=n.length-1;t>=0;t--){v()}}if(o.nodeType===1){Tr(o)}}};var Er=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 Dr=function(r){{r._&&r._.ref&&r._.ref(null);r.S&&r.S.map(Dr)}};var Lr=function(r,e,n){var t=r==null?void 0:r.insertBefore(e,n);{Rr(e,r)}return t};var Mr=function(r){var e=[];if(r){e.push.apply(e,__spreadArray(__spreadArray(__spreadArray([],r["s-scs"]||[],false),[r["s-si"],r["s-sc"]],false),Mr(r.parentElement),false))}return e};var Rr=function(r,e,n){if(n===void 0){n=false}var t;if(r&&e&&r.nodeType===1){var i=new Set(Mr(e).filter(Boolean));if(i.size){(t=r.classList)==null?void 0:t.add.apply(t,r["s-scs"]=Array.from(i));if(r["s-ol"]||n){for(var a=0,f=Array.from(r.__childNodes||r.childNodes);a<f.length;a++){var u=f[a];Rr(u,r,true)}}}}};var Fr=function(r,e,n){if(n===void 0){n=false}var t,i,a,f;var u=r.$hostElement$;var o=r.u;var l=r.L||Z(null,null);var v=er(e)?e:Y(null,null,e);hr=u.tagName;if(o.M){v._=v._||{};o.M.map((function(r){var e=r[0],n=r[1];return v._[n]=u[e]}))}if(n&&v._){for(var s=0,c=Object.keys(v._);s<c.length;s++){var d=c[s];if(u.hasAttribute(d)&&!["key","ref","style","class"].includes(d)){v._[d]=u[d]}}}v.j=null;v.i|=4;r.L=v;v.O=l.O=u.shadowRoot||u;{cr=u["s-sc"]}pr=(o.i&1)!==0;{dr=u["s-cr"];mr=false}jr(l,v,n);{C.i|=1;if(yr){Tr(v.O);for(var h=0,p=Cr;h<p.length;h++){var m=p[h];var y=m.T;if(!y["s-ol"]){var $=O.createTextNode("");$["s-nr"]=y;Lr(y.parentNode,y["s-ol"]=$,y)}}for(var w=0,b=Cr;w<b.length;w++){var m=b[w];var y=m.T;var g=m.D;if(g){var _=g.parentNode;var S=g.nextSibling;{var $=(t=y["s-ol"])==null?void 0:t.previousSibling;while($){var k=(i=$["s-nr"])!=null?i:null;if(k&&k["s-sn"]===y["s-sn"]&&_===k.parentNode){k=k.nextSibling;while(k===y||(k==null?void 0:k["s-sr"])){k=k==null?void 0:k.nextSibling}if(!k||!k["s-nr"]){S=k;break}}$=$.previousSibling}}if(!S&&_!==y.parentNode||y.nextSibling!==S){if(y!==S){if(!y["s-hn"]&&y["s-ol"]){y["s-hn"]=y["s-ol"].parentNode.nodeName}Lr(_,y,S);if(y.nodeType===1){y.hidden=(a=y["s-ih"])!=null?a:false}}}y&&typeof g["s-rf"]==="function"&&g["s-rf"](y)}else{if(y.nodeType===1){if(n){y["s-ih"]=(f=y.hidden)!=null?f:false}y.hidden=true}}}}if(mr){Or(v.O)}C.i&=~1;Cr.length=0}dr=void 0};var Pr=function(r,e,n,t){var i;if(r["s-ol"]&&r["s-ol"].isConnected){i=r["s-ol"]}else{i=document.createTextNode("");i["s-nr"]=r}if(!e["s-cr"]||!e["s-cr"].parentNode)return;var a=e["s-cr"].parentNode;var f=n?a.__prepend||a.prepend:a.__appendChild||a.appendChild;if(typeof t!=="undefined"){{i["s-oo"]=t;var u=a.__childNodes||a.childNodes;var o=[i];u.forEach((function(r){if(r["s-nr"])o.push(r)}));o.sort((function(r,e){if(!r["s-oo"]||r["s-oo"]<e["s-oo"])return-1;else if(!e["s-oo"]||e["s-oo"]<r["s-oo"])return 1;return 0}));o.forEach((function(r){return f.call(a,r)}))}}else{f.call(a,i)}r["s-ol"]=i;r["s-sh"]=e["s-hn"]};var Ir=function(r,e){if(e===void 0){e=""}{return function(){return}}};var Nr=function(r,e){{return function(){return}}};var Ur=function(r,e,n,t){var i=Ir("hydrateClient",e);var a=r.shadowRoot;var f=[];var u=[];var o=[];var l=a?[]:null;var v=Z(e,null);v.O=r;if(!C.R){Hr(O.body,C.R=new Map)}r[g]=n;r.removeAttribute(g);t.L=Wr(v,f,u,l,r,r,n,o);var s=0;var c=f.length;var d;for(s;s<c;s++){d=f[s];var h=d.F+"."+d.C;var p=C.R.get(h);var m=d.O;if(!a){m["s-hn"]=e.toUpperCase();if(d.j==="slot"){m["s-cr"]=r["s-cr"]}}if(p&&p.isConnected){if(a&&p["s-en"]===""){p.parentNode.insertBefore(m,p.nextSibling)}p.parentNode.removeChild(p);if(!a){m["s-oo"]=parseInt(d.C)}}C.R.delete(h)}var y=[];var $=0;var w=o.length;var b;var _;var S;var k;for($;$<w;$++){b=o[$];if(!b||!b.length)continue;S=b.length;_=0;for(_;_<S;_++){k=b[_];if(!y[k.hostId]){y[k.hostId]=C.R.get(k.hostId)}if(!y[k.hostId])continue;var x=y[k.hostId];if(!x.shadowRoot||!a){k.slot["s-cr"]=x["s-cr"];if(!k.slot["s-cr"]&&x.shadowRoot){k.slot["s-cr"]=x}else{var A=x.__childNodes||x.childNodes;k.slot["s-cr"]=A[0]}Pr(k.node,k.slot,false,k.node["s-oo"])}if(x.shadowRoot&&k.node.parentElement!==x){x.appendChild(k.node)}}}if(a){var j=0;var T=l.length;for(j;j<T;j++){a.appendChild(l[j])}Array.from(r.childNodes).forEach((function(r){if(r.nodeType===8&&typeof r["s-sn"]!=="string"){r.parentNode.removeChild(r)}}))}t.$hostElement$=r;i()};var Wr=function(r,e,n,t,i,a,f,u){if(u===void 0){u=[]}var o;var l;var v;var s;var c=i["s-sc"];if(a.nodeType===1){o=a.getAttribute(S);if(o){l=o.split(".");if(l[0]===f||l[0]==="0"){v=Br({i:0,F:l[0],C:l[1],P:l[2],I:l[3],j:a.tagName.toLowerCase(),O:a,_:{class:a.className}});e.push(v);a.removeAttribute(S);if(!r.S){r.S=[]}var d=v.O.getAttribute("s-sn");if(typeof d==="string"){if(v.j==="slot-fb"){zr(d,l[2],v,a,r,e,n,t,u)}v.O["s-sn"]=d;v.O.removeAttribute("s-sn")}if(v.I!==void 0){r.S[v.I]=v}if(c)a["s-si"]=c;r=v;if(t&&v.P==="0"){t[v.I]=v.O}}}if(a.shadowRoot){for(s=a.shadowRoot.childNodes.length-1;s>=0;s--){Wr(r,e,n,t,i,a.shadowRoot.childNodes[s],f,u)}}var h=a.__childNodes||a.childNodes;for(s=h.length-1;s>=0;s--){Wr(r,e,n,t,i,h[s],f,u)}}else if(a.nodeType===8){l=a.nodeValue.split(".");if(l[1]===f||l[1]==="0"){o=l[0];v=Br({F:l[1],C:l[2],P:l[3],I:l[4]||"0",O:a,_:null,S:null,k:null,A:null,j:null,$:null});if(o===w){v.O=a.nextSibling;if(v.O&&v.O.nodeType===3){v.$=v.O.textContent;e.push(v);a.remove();if(f===v.F){if(!r.S){r.S=[]}r.S[v.I]=v}if(t&&v.P==="0"){t[v.I]=v.O}}}else if(o===b){v.O=a.nextSibling;if(v.O&&v.O.nodeType===8){e.push(v);a.remove()}}else if(v.F===f){if(o===$){v.j="slot";var d=a["s-sn"]=v.A=l[5]||"";zr(d,l[2],v,a,r,e,n,t,u)}else if(o===m){if(t){a.remove()}else{i["s-cr"]=a;a["s-cn"]=true}}}}}else if(r&&r.j==="style"){var p=Z(null,a.textContent);p.O=a;p.I="0";r.S=[p]}return r};var Hr=function(r,e){if(r.nodeType===1){var n=r[g]||r.getAttribute(g);if(n){e.set(n,r)}var t=0;if(r.shadowRoot){for(;t<r.shadowRoot.childNodes.length;t++){Hr(r.shadowRoot.childNodes[t],e)}}var i=r.__childNodes||r.childNodes;for(t=0;t<i.length;t++){Hr(i[t],e)}}else if(r.nodeType===8){var a=r.nodeValue.split(".");if(a[0]===y){e.set(a[1]+"."+a[2],r);r.nodeValue="";r["s-en"]=a[3]}}};var Br=function(r){var e={i:0,F:null,C:null,P:null,I:"0",O:null,_:null,S:null,k:null,A:null,j:null,$:null};return __assign(__assign({},e),r)};function zr(r,e,n,t,i,a,f,u,o){t["s-sr"]=true;var l=(i==null?void 0:i.O)?i.O["s-id"]||i.O.getAttribute("s-id"):"";if(u){var v=n.O=O.createElement(n.j);if(n.A){n.O.setAttribute("name",r)}if(l&&l!==n.F){i.O.insertBefore(v,i.O.children[0])}else{t.parentNode.insertBefore(n.O,t)}Gr(o,e,r,t,n.F);t.remove();if(n.P==="0"){u[n.I]=n.O}}else{var v=n.O;var s=l&&l!==n.F&&i.O.shadowRoot;Gr(o,e,r,t,s?l:n.F);if(s){i.O.insertBefore(v,i.O.children[0])}a.push(n)}f.push(n);if(!i.S){i.S=[]}i.S[n.I]=n}var Gr=function(r,e,n,t,i){var a=t.nextSibling;r[e]=r[e]||[];while(a&&((a["getAttribute"]&&a.getAttribute("slot")||a["s-sn"])===n||n===""&&!a["s-sn"]&&(a.nodeType===8&&a.nodeValue.indexOf(".")!==1||a.nodeType===3))){a["s-sn"]=n;r[e].push({slot:t,node:a,hostId:i});a=a.nextSibling}};var Qr=function(r,e){if(r!=null&&!z(r)){if(e&4){return r==="false"?false:r===""||!!r}if(e&2){return parseFloat(r)}if(e&1){return String(r)}return r}return r};var qr=r("g",(function(r){return o(r).$hostElement$}));var Kr=r("c",(function(r,e,n){var t=qr(r);return{emit:function(r){return Vr(t,e,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:r})}}}));var Vr=function(r,e,n){var t=C.ce(e,n);r.dispatchEvent(t);return t};var Xr=new WeakMap;var Jr=function(r,e,n){var t=p.get(r);if(E&&n){t=t||new CSSStyleSheet;if(typeof t==="string"){t=e}else{t.replaceSync(e)}}else{t=e}p.set(r,t)};var Yr=function(r,e,n){var t;var i=re(e);var a=p.get(i);r=r.nodeType===11?r:O;if(a){if(typeof a==="string"){r=r.head||r;var f=Xr.get(r);var u=void 0;if(!f){Xr.set(r,f=new Set)}if(!f.has(i)){if(r.host&&(u=r.querySelector("[".concat(_,'="').concat(i,'"]')))){u.innerHTML=a}else{u=O.createElement("style");u.innerHTML=a;var o=(t=C.N)!=null?t:G(O);if(o!=null){u.setAttribute("nonce",o)}if(!(e.i&1)){if(r.nodeName==="HEAD"){var l=r.querySelectorAll("link[rel=preconnect]");var v=l.length>0?l[l.length-1].nextSibling:r.querySelector("style");r.insertBefore(u,v)}else if("host"in r){if(E){var s=new CSSStyleSheet;s.replaceSync(a);r.adoptedStyleSheets=__spreadArray([s],r.adoptedStyleSheets,true)}else{var c=r.querySelector("style");if(c){c.innerHTML=a+c.innerHTML}else{r.prepend(u)}}}else{r.append(u)}}if(e.i&1&&r.nodeName!=="HEAD"){r.insertBefore(u,null)}}if(e.i&4){u.innerHTML+=x}if(f){f.add(i)}}}else if(!r.adoptedStyleSheets.includes(a)){r.adoptedStyleSheets=__spreadArray(__spreadArray([],r.adoptedStyleSheets,true),[a],false)}}return i};var Zr=function(r){var e=r.u;var n=r.$hostElement$;var t=e.i;var i=Ir("attachStyles",e.h);var a=Yr(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);if(t&10&&t&2){n["s-sc"]=a;n.classList.add(a+"-h");if(t&2){n.classList.add(a+"-s")}}i()};var re=function(r,e){return"sc-"+r.h};var ee=function(r,e){if(e&&!r.U&&e["s-p"]){e["s-p"].push(new Promise((function(e){return r.U=e})))}};var ne=function(r,e){{r.i|=16}if(r.i&4){r.i|=512;return}ee(r,r.W);var n=function(){return te(r,e)};return N(n)};var te=function(r,e){var n=r.$hostElement$;var t=Ir("scheduleUpdate",r.u.h);var i=r.t;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){{a=ve(i,"componentWillLoad")}}t();return ie(a,(function(){return fe(r,i,e)}))};var ie=function(r,e){return ae(r)?r.then(e).catch((function(r){console.error(r);e()})):e()};var ae=function(r){return r instanceof Promise||r&&r.then&&typeof r.then==="function"};var fe=function(r,e,t){return __awaiter(n,void 0,void 0,(function(){var n,i,a,f,u,o,l;return __generator(this,(function(v){i=r.$hostElement$;a=Ir("update",r.u.h);f=i["s-rc"];if(t){Zr(r)}u=Ir("render",r.u.h);{ue(r,e,i,t)}if(f){f.map((function(r){return r()}));i["s-rc"]=void 0}u();a();{o=(n=i["s-p"])!=null?n:[];l=function(){return oe(r)};if(o.length===0){l()}else{Promise.all(o).then(l);r.i|=4;o.length=0}}return[2]}))}))};var ue=function(r,e,n,t){try{e=e.render();{r.i&=~16}{r.i|=2}{{{Fr(r,e,t)}}}}catch(e){c(e,r.$hostElement$)}return null};var oe=function(r){var e=r.u.h;var n=r.$hostElement$;var t=Ir("postUpdate",e);var i=r.t;var a=r.W;if(!(r.i&64)){r.i|=64;{se(n)}{ve(i,"componentDidLoad")}t();{r.v(n);if(!a){le()}}}else{{ve(i,"componentDidUpdate")}t()}{if(r.U){r.U();r.U=void 0}if(r.i&512){I((function(){return ne(r,false)}))}r.i&=~(4|512)}};var le=function(r){{se(O.documentElement)}I((function(){return Vr(j,"appload",{detail:{namespace:t}})}))};var ve=function(r,e,n){if(r&&r[e]){try{return r[e](n)}catch(r){c(r)}}return void 0};var se=function(r){var e;return r.classList.add((e=i.hydratedSelectorName)!=null?e:"hydrated")};var ce=function(r,e){return o(r).o.get(e)};var de=function(r,e,n,t){var i=o(r);if(!i){throw new Error("Couldn't find host element for \"".concat(t.h,'" 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/ionic-team/stencil/issues/5457).'))}var a=i.$hostElement$;var f=i.o.get(e);var u=i.i;var l=i.t;n=Qr(n,t.H[e][0]);var v=Number.isNaN(f)&&Number.isNaN(n);var s=n!==f&&!v;if((!(u&8)||f===void 0)&&s){i.o.set(e,n);if(l){if(t.B&&u&128){var d=t.B[e];if(d){d.map((function(r){try{l[r](n,f,e)}catch(r){c(r,a)}}))}}if((u&(2|16))===2){ne(i,false)}}}};var he=function(r,e,n){var t,i;var a=r.prototype;if(e.H||(e.B||r.watchers)){if(r.watchers&&!e.B){e.B=r.watchers}var f=Object.entries((t=e.H)!=null?t:{});f.map((function(r){var t=r[0],i=r[1][0];if(i&31||n&2&&i&32){if((i&2048)===0){Object.defineProperty(a,t,{get:function(){return ce(this,t)},set:function(r){de(this,t,r,e)},configurable:true,enumerable:true})}else if(n&1&&i&2048){{Object.defineProperty(a,t,{get:function(){var r=o(this);var e=r?r.t:a;if(!e)return;return e[t]},configurable:true,enumerable:true})}if(i&4096){var f=Object.getOwnPropertyDescriptor(a,t).set;Object.defineProperty(a,t,{set:function(r){var n=this;var i=o(this);if(f){var a=i.$hostElement$[t];if(!i.o.get(t)&&a){i.o.set(t,a)}f.apply(this,[Qr(r,e.H[t][0])]);de(this,t,i.$hostElement$[t],e);return}if(!i)return;var u=function(){var a=i.t[t];if(!i.o.get(t)&&a){i.o.set(t,a)}i.t[t]=Qr(r,e.H[t][0]);de(n,t,i.t[t],e)};if(i.t){u()}else{i.l.then((function(){return u()}))}}})}}}}));if(n&1){var u=new Map;a.attributeChangedCallback=function(r,n,t){var i=this;C.jmp((function(){var f;var l=u.get(r);if(i.hasOwnProperty(l)){t=i[l];delete i[l]}else if(a.hasOwnProperty(l)&&typeof i[l]==="number"&&i[l]==t){return}else if(l==null){var v=o(i);var s=v==null?void 0:v.i;if(s&&!(s&8)&&s&128&&t!==n){var c=v.t;var d=(f=e.B)==null?void 0:f[r];d==null?void 0:d.forEach((function(e){if(c[e]!=null){c[e].call(c,t,n,r)}}))}return}var h=Object.getOwnPropertyDescriptor(a,l);if(!h.get||!!h.set){i[l]=t===null&&typeof i[l]==="boolean"?false:t}}))};r.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((i=e.B)!=null?i:{}),true),f.filter((function(r){var e=r[0],n=r[1];return n[0]&15})).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.M)==null?void 0:i.push([n,a])}return a})),true)))}}return r};var pe=function(r,e,t,i){return __awaiter(n,void 0,void 0,(function(){var n,i,a,f,u,o,l,v,s,d,m;return __generator(this,(function(y){switch(y.label){case 0:if(!((e.i&32)===0))return[3,6];e.i|=32;i=t.p;if(!i)return[3,4];a=h(t);if(!(a&&"then"in a))return[3,2];f=Nr();return[4,a];case 1:n=y.sent();f();return[3,3];case 2:n=a;y.label=3;case 3:if(!n){throw new Error('Constructor for "'.concat(t.h,"#").concat(e.G,'" was not found'))}if(!n.isProxied){{t.B=n.watchers}he(n,t,2);n.isProxied=true}u=Ir("createInstance",t.h);{e.i|=8}try{new n(e)}catch(r){c(r)}{e.i&=~8}{e.i|=128}u();return[3,5];case 4:n=r.constructor;o=r.localName;customElements.whenDefined(o).then((function(){return e.i|=128}));y.label=5;case 5:if(n&&n.style){l=void 0;if(typeof n.style==="string"){l=n.style}v=re(t);if(!p.has(v)){s=Ir("registerStyles",t.h);Jr(v,l,!!(t.i&1));s()}}y.label=6;case 6:d=e.W;m=function(){return ne(e,true)};if(d&&d["s-rc"]){d["s-rc"].push(m)}else{m()}return[2]}}))}))};var me=function(r){};var ye=function(r){if((C.i&1)===0){var e=o(r);var n=e.u;var t=Ir("connectedCallback",n.h);if(!(e.i&1)){e.i|=1;var i=void 0;{i=r.getAttribute(g);if(i){if(n.i&1){var a=Yr(r.shadowRoot,n);r.classList.remove(a+"-h",a+"-s")}else if(n.i&2){var a=re(n);r["s-sc"]=a}Ur(r,n.h,i,e)}}if(!i){if(n.i&(4|8)){$e(r)}}{var f=r;while(f=f.parentNode||f.host){if(f.nodeType===1&&f.hasAttribute("s-id")&&f["s-p"]||f["s-p"]){ee(e,e.W=f);break}}}if(n.H){Object.entries(n.H).map((function(e){var n=e[0],t=e[1][0];if(t&31&&r.hasOwnProperty(n)){var i=r[n];delete r[n];r[n]=i}}))}{pe(r,e,n)}}else{if(e==null?void 0:e.t);else if(e==null?void 0:e.l){e.l.then((function(){return me()}))}}t()}};var $e=function(r){var e=r["s-cr"]=O.createComment("");e["s-cn"]=true;Lr(r,e,r.firstChild)};var we=function(r){{ve(r,"disconnectedCallback")}};var be=function(r){return __awaiter(n,void 0,void 0,(function(){var e;return __generator(this,(function(n){if((C.i&1)===0){e=o(r);if(e==null?void 0:e.t){we(e.t)}else if(e==null?void 0:e.l){e.l.then((function(){return we(e.t)}))}}return[2]}))}))};var ge=r("b",(function(r,e){if(e===void 0){e={}}var n;var t=Ir();var i=[];var a=e.exclude||[];var f=j.customElements;var u=O.head;var l=u.querySelector("meta[charset]");var s=O.createElement("style");var c=[];var d;var h=true;Object.assign(C,e);C.m=new URL(e.resourcesUrl||"./",O.baseURI).href;{C.i|=2}var p=false;r.map((function(r){r[1].map((function(e){var n;var t={i:e[0],h:e[1],H:e[2],q:e[3]};if(t.i&4){p=true}{t.H=e[2]}{t.M=[]}{t.B=(n=e[4])!=null?n:{}}var u=t.h;var l=function(r){__extends(e,r);function e(e){var n=r.call(this,e)||this;n.hasRegisteredEventListeners=false;e=n;v(e,t);if(t.i&1){{if(!e.shadowRoot){{e.attachShadow({mode:"open"})}}else{if(e.shadowRoot.mode!=="open"){throw new Error("Unable to re-use existing shadow root for ".concat(t.h,"! Mode is set to ").concat(e.shadowRoot.mode," but Stencil only supports open shadow roots."))}}}}return n}e.prototype.connectedCallback=function(){var r=this;o(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(d){clearTimeout(d);d=null}if(h){c.push(this)}else{C.jmp((function(){return ye(r)}))}};e.prototype.disconnectedCallback=function(){var r=this;C.jmp((function(){return be(r)}))};e.prototype.componentOnReady=function(){return o(this).l};return e}(HTMLElement);t.p=r[0];if(!a.includes(u)&&!f.get(u)){i.push(u);f.define(u,he(l,t,1))}}))}));if(i.length>0){if(p){s.textContent+=x}{s.textContent+=i.sort()+k}if(s.innerHTML.length){s.setAttribute("data-styles","");var m=(n=C.N)!=null?n:G(O);if(m!=null){s.setAttribute("nonce",m)}u.insertBefore(s,l?l.nextSibling:u.firstChild)}}h=false;if(c.length){c.map((function(r){return r.connectedCallback()}))}else{{C.jmp((function(){return d=setTimeout(le,30)}))}}t()}));var _e=r("s",(function(r){return C.N=r}))}}}));
//# sourceMappingURL=p-0e5b5fce.system.js.map