SML.di("./C42E8rVVpA.js",import.meta.url,"C42E8rVVpA");SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE");SML.di("./DUzIBJc2in.js",import.meta.url,"DUzIBJc2in"); SML.dm("1i4g9fLWHY",["C42E8rVVpA","CsxDAjmHZE","DUzIBJc2in"],(async(e,a,t)=>{let r=class extends e.h4{constructor(){super(...arguments),this._fullscreenBlurEl=document.createElement("div"),this._appliedBlurFilter=null,this._blurElement=null,this.shouldContentScroll=!1,this.isFooterEmpty=!0,this.render=()=>{const t=a.x``,r=a.x``,n=a.x` `;return a.x` ${e.cA(this.modal?"\n \n":"\n \n")}
${t}
${r}
`}}static get styles(){return a.i`${e.h4.styles}:host{--content-padding:var(--spacer-md);box-sizing:border-box;max-width:none;border-radius:var(--rem16);padding:0;overflow:hidden}#wrapper{display:flex;flex-direction:column;align-items:center;height:100%;position:relative;font-size:16px;box-sizing:border-box;max-height:inherit;min-height:inherit;overflow:hidden}slot[name=closeButton]{display:inline-flex;position:absolute;position:absolute;top:0;inset-inline-end:0;margin:var(--content-padding)}#header{display:flex;flex-direction:column;gap:var(--spacer-sm);align-items:center;text-align:start;width:100%;box-sizing:border-box}#header.with-icon{text-align:center;padding:0 var(--rem40)}slot[name=title]{font-size:var(--rem18);font-weight:700}slot:not([name]){display:flex;flex-grow:1;width:100%;padding:var(--spacer-xs) 0;font-size:var(--rem14)}#footer{display:flex;flex-direction:column;gap:var(--spacer-sm);width:100%;background:var(--color-ui-modalbackground);padding:var(--spacer-md);box-sizing:border-box}slot[name=tertiaryButton]{display:inline-flex;justify-content:center;font-size:14px}#footer.empty{display:none}@media (min-width:640px){#content{padding:var(--content-padding)}#header,#header.with-icon{flex-direction:row;padding-inline:0 var(--spacer-2xl)}#footer{flex-direction:row-reverse;align-items:center;justify-content:end}slot[name=tertiaryButton]{margin-inline-end:auto}slot[name=title]{text-align:start}}#content{height:100%;max-height:100%;width:100%;overflow:auto;position:relative;--content-padding:var(--spacer-md);padding:var(--content-padding);box-sizing:border-box;flex:1}.overflowing-content{max-height:100%;overflow-y:auto}.sticky-footer{box-shadow:var(--elevation-md)}slot[name=closeButton].floating{box-shadow:var(--elevation-sm);border-radius:999px}`}connectedCallback(){super.connectedCallback(),Object.assign(this._fullscreenBlurEl.style,{position:"fixed",top:"0",bottom:"0",right:"0",left:"0",backdropFilter:n(4)})}disconnectedCallback(){this._fullscreenBlurEl.remove(),e.g_.remove(this),this.resizeObserver?.disconnect()}firstUpdated(){this.resizeObserver=new ResizeObserver((()=>{this.measureShouldContentScroll()})),this.resizeObserver.observe(this.content)}calcFooterChildren(){this.isFooterEmpty=!(this._footerSlot?.length||this._primaryButtonSlot?.length||this._secondaryButtonSlot?.length||this._tertiaryButtonSlot?.length)}measureShouldContentScroll(){this.shouldContentScroll=Boolean(this.content?.scrollHeight&&this.content?.scrollHeight>this.content.offsetHeight)}showModal(a){if(e.g_.add(this),super.showModal(),null!=a?.blur){const e=!0===a.blur?4:Number(a.blur);this._appliedBlurFilter=n(e),a?.blurElement?(this._blurElement=a.blurElement,t=this._blurElement,r=this._appliedBlurFilter,t.style.filter=t.style.filter+" "+r):(Object.assign(this._fullscreenBlurEl.style,{backdropFilter:this._appliedBlurFilter}),document.body.append(this._fullscreenBlurEl))}var t,r}close(){this.open&&(super.close(),e.g_.remove(this),null!=this._blurElement&&null!=this._appliedBlurFilter?(!function(e,a){const t=e.style.filter.split(" ").filter(Boolean).reverse(),r=t.indexOf(a);if(-1===r)return;t.splice(r,1),e.style.filter=t.reverse().join(" ")}(this._blurElement,this._appliedBlurFilter),this._appliedBlurFilter=null,this._blurElement=null):this._fullscreenBlurEl.remove())}};function n(e){return`blur(${e}px)`}e._([e.v()],r.prototype,"shouldContentScroll",void 0),e._([e.l({slot:"titleGraphic"})],r.prototype,"_titleGraphic",void 0),e._([e.Q("#content")],r.prototype,"content",void 0),e._([e.Q("#footer")],r.prototype,"footer",void 0),e._([e.v()],r.prototype,"isFooterEmpty",void 0),e._([e.av({slot:"footer",flatten:!0})],r.prototype,"_footerSlot",void 0),e._([e.av({slot:"primaryButton",flatten:!0})],r.prototype,"_primaryButtonSlot",void 0),e._([e.av({slot:"secondaryButton",flatten:!0})],r.prototype,"_secondaryButtonSlot",void 0),e._([e.av({slot:"tertiaryButton",flatten:!0})],r.prototype,"_tertiaryButtonSlot",void 0),r=e._([e.e("faceplate-modal")],r);const i=()=>"Something went wrong saving the avatar.",o=()=>"Something went wrong while saving the banner.";function l(e){return e?.[0]?.message??"Something went wrong";}const s=e=>({error:e||"There was an error uploading the file."});async function d(a,r){const n=t.U.get(a.type);if(!n)throw new Error(`${a.type} files are not supported.`);try{const i=await async function(a){const t=await e.C({operation:e.H.CreateSubredditStructuredStylesUploadLease,variables:{input:a}});if(t.errors?.length)throw new Error(l(t.errors));const r=t.data.createSubredditStructuredStylesUploadLease;if(r?.ok&&r.uploadLease)return{uploadLeaseUrl:r.uploadLease.uploadLeaseUrl,uploadLeaseHeaders:r.uploadLease.uploadLeaseHeaders};throw new Error(l(r?.errors))}({...r,filepath:a.name,mimetype:n}),o=await t.X(a,i);return o?{url:o}:s()}catch(e){return i=e.message,window.Sentry?.captureMessage?.(`Media file upload failed with error: ${i}`),s(e.message)}var i}return {C:class{constructor(){this.url=void 0}async makeGQLRequest(...a){return e.C(...a)}async uploadMedia(...e){return d(...e)}async saveImage({subredditId:e,url:a,fileContent:t,uploadType:r,gqlOperation:n}){if(t)try{const n=await this.uploadMedia(t,{subredditId:e,imagetype:r});if(a=n.url?decodeURIComponent(n.url):a,n.error)return this.handleError(r);this.url=a}catch(e){return this.handleError(r)}try{await this.makeGQLRequest({operation:n,variables:{input:{subredditId:e,[this.getOperationArg(r)]:a??""}}})}catch(e){return this.handleError(r)}return null}async saveCommunityIcon(a,t,r){return this.saveImage({subredditId:a,url:t,fileContent:r,uploadType:e.h5.CommunityIcon,gqlOperation:e.H.UpdateSubredditIcon})}async saveBanner(a,t,r){return this.saveImage({subredditId:a,url:t,fileContent:r,uploadType:e.h5.BannerBackgroundImage,gqlOperation:e.H.UpdateSubredditBanner})}async saveMobileBanner(a,t,r){return this.saveImage({subredditId:a,url:t,fileContent:r,uploadType:e.h5.MobileBannerImage,gqlOperation:e.H.UpdateSubredditBanner})}handleError(a){switch(a){case e.h5.BannerBackgroundImage:return o();case e.h5.MobileBannerImage:return "Something went wrong while saving the mobile banner.";case e.h5.CommunityIcon:default:return i()}}getOperationArg(a){switch(a){case e.h5.BannerBackgroundImage:return"bannerBackgroundImage";case e.h5.MobileBannerImage:return"mobileBannerImage";case e.h5.CommunityIcon:default:return"communityIcon"}}},E:o,get F(){return r},O:"mod-show-post-level-crowd-control-modal",a:i,u:d};})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("A2F9EC3eVr",["CsxDAjmHZE"],(async a=>{const{svg:h}=a.g(),c=a.m(h``,"0 0 20 20","hide-fill"),{svg:t}=a.g();return{a:a.m(t``,"0 0 20 20","add-user"),h:c}})); SML.di("./C42E8rVVpA.js",import.meta.url,"C42E8rVVpA");SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("B1CgclnetU",["C42E8rVVpA","CsxDAjmHZE"],(async(t,e)=>{let i=class extends e.s{constructor(){super(...arguments),this.replaceFromCache=()=>{this.imgCache&&this.canvasCache?this.freeze?this.replaceChildSafely(this.canvasCache,this.imgCache):this.replaceChildSafely(this.imgCache,this.canvasCache):this.initialize()},this.replaceChildSafely=(t,e)=>{const i=this._slot?.[0];t!==i&&this.replaceChild(t,e)},this.freezeGif=async()=>{const e=this._slot?.[0];if(!this.freeze||this.canvasCache)return void this.shadowRoot?.host.setAttribute("state","ready");const i=document.createElement("canvas");if(!i||!e||"IMG"!==this._slot?.[0].nodeName)return;this.shadowRoot?.host.setAttribute("state","loading"),this.imgCache||(this.imgCache=e),i.width=e.width,i.height=e.height,i.getContext("2d")?.drawImage(e,0,0,i.width,i.height);for(let t=0;t0?this.freezeGif():t?.addEventListener("load",this.freezeGif)}render(){return e.x``}};t._([t.l({slot:"",flatten:!0})],i.prototype,"_slot",void 0),t._([t.n({type:Boolean})],i.prototype,"freeze",void 0),i=t._([t.e("faceplate-gif")],i)})); SML.di("./C42E8rVVpA.js",import.meta.url,"C42E8rVVpA");SML.di("./DYFdTZXVs2.js",import.meta.url,"DYFdTZXVs2");SML.di("./DUzIBJc2in.js",import.meta.url,"DUzIBJc2in");SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("B2hncWv3Jq",["C42E8rVVpA","DYFdTZXVs2","DUzIBJc2in","CsxDAjmHZE"],(async(t,e,i,n)=>{var s;let a=s=class extends e.F{constructor(){super(...arguments),this._setup=!1,this._bbwidth=0,this._fbwidth=0,this._forwardButtonVisible=!0,this._backButtonVisible=!1,this.selectedClasses=["bg-secondary-background-selected","!text-neutral-content-strong","tab-selected"],this.appearance="fill",this.insetHug=!1,this.underline=!1,this._mutationCallback=t=>{for(const e of t)if("attributes"===e.type&&"faceplate-tab-selected"===e.attributeName&&e.target.nodeType===Node.ELEMENT_NODE){e.target.hasAttribute("faceplate-tab-selected")?this._handleTabSelected(e.target):this._handleTabDeselected(e.target)}},this._setupButtons=()=>{this._setup&&(this.backButtonElements[0]?.removeEventListener("click",this._handleBackButtonClick),this.style.removeProperty("--back-button-width"),this.forwardButtonElements[0]?.removeEventListener("click",this._handleForwardButtonClick),this.style.removeProperty("--forward-button-width")),this.backButtonElements[0]instanceof HTMLElement&&(this._backButtonVisible||this.backButton?.removeAttribute("hidden"),this._bbwidth=this.backButton.clientWidth,this._backButtonVisible||this.backButton?.setAttribute("hidden",""),this.style.setProperty("--back-button-width",`${this._bbwidth}px`),this.backButtonElements[0].addEventListener("click",this._handleBackButtonClick)),this.forwardButtonElements[0]instanceof HTMLElement&&(this._forwardButtonVisible||this.forwardButton?.removeAttribute("hidden"),this._fbwidth=this.forwardButton.clientWidth,this._forwardButtonVisible||this.backButton?.setAttribute("hidden",""),this.style.setProperty("--forward-button-width",`${this._fbwidth}px`),this.forwardButtonElements[0].addEventListener("click",this._handleForwardButtonClick))},this._handleContainerScroll=()=>{this._backButtonVisible=0!==Math.floor(this._containerLeft),this._forwardButtonVisible=Math.round(this._containerBaseRight)!==Math.round(this.container?.scrollWidth??0)},this._handleBackButtonClick=t=>{t.preventDefault(),t.stopPropagation();const e=this._tabs,i=this._leftmostVisibleTab,n=e[i];if(null==n)return;let a=n.right-(this.container?.clientWidth??0);i!==e.length-1&&(a+=(this._fbwidth??0)-s.tabSpacing.raw),this.container?.scroll({behavior:"smooth",left:a})},this._handleForwardButtonClick=t=>{t.preventDefault(),t.stopPropagation();const e=this._tabs,i=this._rightmostVisibleTab,n=e[i];if(null==n)return;let a=n.left;0!==i&&(a-=(this._bbwidth??0)+s.tabSpacing.raw),this.container?.scroll({behavior:"smooth",left:a})},this._scrollToSelected=()=>{const t=this._tabs,e=t.findIndex((t=>"true"===t.el.getAttribute("aria-selected"))),i=t[e];if(null==i)return;const n=i.right-i.left,s=(this.container?.clientWidth??0)-(this._bbwidth+this._fbwidth),a=i.left-this._bbwidth-s/2+n/2;this.container?.scroll({behavior:"smooth",left:a})}}connectedCallback(){super.connectedCallback(),this._mutationObserver=new MutationObserver(this._mutationCallback),this._mutationObserver.observe(this,s.mutationObserverOptions)}disconnectedCallback(){super.disconnectedCallback(),this._mutationObserver.disconnect()}firstUpdated(t){super.firstUpdated(t),this._setupAll()}_setupAll(){this._setup&&this.container&&(this.container.removeEventListener("scroll",this._handleContainerScroll),this._resizeObserver?.unobserve(this.container)),this.container?.addEventListener("scroll",this._handleContainerScroll),this.container?.removeEventListener("resize",this._setupAll),this._setupButtons(),this._resizeObserver||(this._resizeObserver=new ResizeObserver(this._handleContainerScroll)),this.container&&this._resizeObserver?.observe(this.container),this._setup||(this.style.setProperty("--anim-duration","0ms"),this._handleContainerScroll(),requestAnimationFrame((()=>{this.style.removeProperty("--anim-duration")}))),this._setup=!0}_handleTabSelected(t){let e=this.selectedClasses;t.classList.contains("tab-bottom-border")&&t.hasAttribute("rpl")&&(e=e?.filter((t=>"bg-secondary-background-selected"!==t))),t.classList.add(...e??[]),t.tabIndex=0,this._scrollToSelected()}_handleTabDeselected(t){t.tabIndex=-1,t.classList.remove(...this.selectedClasses??[])}get _containerBaseWidth(){return this.container?.clientWidth??0}get _containerBaseLeft(){return this.container?.scrollLeft??0}get _containerLeft(){return 0===this._containerBaseLeft?this._containerBaseLeft:this._containerBaseLeft+(this.backButton?.clientWidth??0)+s.tabSpacing.raw}get _containerBaseRight(){return this._containerBaseLeft+this._containerBaseWidth}get _containerRight(){return this._containerBaseRight===this.container?.scrollWidth?this._containerBaseRight:this._containerBaseRight-((this.forwardButton?.clientWidth??0)+s.tabSpacing.raw)}get _rightmostVisibleTab(){const t=this._tabs;let e=0,i=0;for(let i=t.length-1;i>=0;i--)if(t[i]?.isVisible){e=i;break}if(0===e)for(let i=t.length-1;i>=0;i--)if(t[i]?.partiallyVisible){e=i;break}for(const[e,n]of t.entries()){const s=t[i];n.partiallyVisible&&s&&n.right>s.right&&(i=e)}return i<=e&&e=e&&e>0?e-1:t[i]?.isVisible&&0!==i?i-1:i}get _tabs(){const{pageNames:t}=this,e=[];for(const n of i.b(this.pages)){const i=t?t[n-1]:`page-${n}`,s=this.shadowRoot.querySelector(`slot[name="${i}"]`).parentElement,a=s.offsetLeft,r=s.offsetLeft+s.offsetWidth,o=a>this._containerLeft&&athis._containerLeft,l=a>this._containerLeft&&rthis._containerRight;e.push({el:s,left:a,right:r,isVisible:l,partiallyVisible:o})}return e}render(){const e=super.render();return n.x`
${e}
`}};return a.mutationObserverOptions={childList:!0,subtree:!0,attributes:!0,attributeFilter:["faceplate-tab-selected"]},a.tabSpacing={raw:8},a.backButton=()=>t.Z({appearance:"plain",attributes:{type:"button",tabindex:"-1",slot:"back-button"},shape:"pill",size:t.ac.Small,leadingIcon:n.a0({size:n.h.Small}),screenReaderContent:"back"}),a.forwardButton=()=>t.Z({appearance:"plain",attributes:{type:"button",tabindex:"-1",slot:"forward-button"},shape:"pill",size:t.ac.Small,leadingIcon:n.a1({size:n.h.Small}),screenReaderContent:"forward"}),a.styles=n.i`:host{--plain-background:rgba(255, 255, 255, 0);--anim-duration:300ms;--button-gap:var(--spacer-xs, 8);display:flex;width:fit-content;max-width:100%}@media (prefers-color-scheme:dark){:host{--plain-background:rgba(0, 0, 0, 0)}}@media (prefers-reduced-motion){:host{--anim-duration:0ms}}.hideable{transition:opacity var(--anim-duration,300ms) ease;visibility:visible;opacity:1}.hidden{animation-name:hide-button;animation-duration:var(--anim-duration,300ms);animation-fill-mode:forwards;opacity:0}@keyframes hide-button{from{visiblity:visible}to{visiblity:hidden;z-index:-1}}.container{width:fit-content;max-width:100%;overflow:hidden;display:flex;justify-content:center;align-items:center;flex-direction:row;flex-wrap:nowrap;position:relative}.tablist{display:flex;overflow:auto;align-items:center;flex-flow:row nowrap;gap:var(--button-gap);scroll-behavior:smooth;scrollbar-width:none}.tablist::-webkit-scrollbar{display:none}.tablist:focus-visible{outline:0}[role=tab]{display:flex;flex-shrink:0}.internalButton{position:absolute;top:0;bottom:0;display:flex;align-items:center}.internalForwardButton{inset-inline-end:0;padding-inline-start:var(--button-gap);background-image:linear-gradient(to right,var(--plain-background) 0,var(--color-neutral-background) 30%);cursor:pointer}.internalBackButton{inset-inline-start:0;padding-inline-end:var(--button-gap);background-image:linear-gradient(to left,var(--plain-background) 0,var(--color-neutral-background) 30%);cursor:pointer}:host([inset]) .container{margin:0 var(--spacer-md)}:host([appearance=fill]){--button-gap:0;width:100%}:host([appearance=fill]) .container,:host([appearance=fill]) .tablist{width:inherit}:host([appearance=fill]) [role=tab]{flex-grow:1}:host([underline]) .container::after{position:absolute;display:block;content:'';border-bottom:solid var(--rem1) var(--color-neutral-border-weak);inset-inline:0;bottom:0}`,t._([t.Q(".internalForwardButton")],a.prototype,"forwardButton",void 0),t._([t.Q(".internalBackButton")],a.prototype,"backButton",void 0),t._([t.Q(".tablist")],a.prototype,"container",void 0),t._([t.l({slot:"forward-button"})],a.prototype,"forwardButtonElements",void 0),t._([t.l({slot:"back-button"})],a.prototype,"backButtonElements",void 0),t._([t.v()],a.prototype,"_forwardButtonVisible",void 0),t._([t.v()],a.prototype,"_backButtonVisible",void 0),t._([t.n({attribute:!1})],a.prototype,"selectedClasses",void 0),t._([t.n({attribute:!0})],a.prototype,"appearance",void 0),t._([t.n({attribute:!0,type:Boolean})],a.prototype,"insetHug",void 0),t._([t.n({attribute:!0,type:Boolean})],a.prototype,"underline",void 0),a=s=t._([t.e("faceplate-tabgroup")],a),{get F(){return a}}})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("B4wM8D6unV",["CsxDAjmHZE"],(async l=>{const{svg:c}=l.g();return{s:l.m(c``,"0 0 20 20","send-fill",!0)}})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("B7YpzF--Lo",["CsxDAjmHZE"],(async a=>{const{svg:h}=a.g();return{d:a.m(h``,"0 0 20 20","duplicate-fill")}})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("BI0HZrU-10",["CsxDAjmHZE"],(async a=>{const{svg:c}=a.g();return{u:a.m(c``,"0 0 20 20","users")}})); SML.di("./C42E8rVVpA.js",import.meta.url,"C42E8rVVpA");SML.di("./DUzIBJc2in.js",import.meta.url,"DUzIBJc2in");SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("BIF6-WF1B7",["C42E8rVVpA","DUzIBJc2in","CsxDAjmHZE"],(async(e,a,t)=>{let s=e.C;const{svg:i}=t.g(),n=t.m(i``,"0 0 20 20","external",!0);return {S:class{constructor(t,i){this.submitMutation=a.T((async(e,a,t,i,n,r)=>{let o;try{if(o=await s({operation:a,variables:t}),o.errors.length>0||r?.(o))throw"Could not save setting";i?.(o)}catch(a){this.state={...this.state,...e},this.host.requestUpdate(),this.showErrorAlert(),n?.(o,a)}}),250,!0),this.showSuccessAlert=()=>{const a=e.c("faceplate-alert",{level:e.X.success,message:"Changes saved"});this.host.dispatchEvent(a)},this.showErrorAlert=a=>{const t=e.c("faceplate-alert",{level:e.X.error,cause:"uncategorized",message:a??"We had some issues saving your changes. Please try again."});this.host.dispatchEvent(t)},(this.host=t).addController(this),this.state=i}hostConnected(){this.host.removeAttribute("initialState")}async updateSetting(e,a,t,s,i,n,r){this.state={...this.state,...e},this.host.requestUpdate(),await this.submitMutation(a,t,s,i,n,r)}},e:n};})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE");SML.di("./C42E8rVVpA.js",import.meta.url,"C42E8rVVpA"); SML.dm("BaFXWsm32y",["CsxDAjmHZE","C42E8rVVpA"],(async(n,o)=>{const{svg:e}=n.g();return{b:(n,e)=>o.b({source:n,action:"view",noun:"banner"},{action_info:{reason:e}}),e:(n,e)=>o.b({source:n,action:"submit",noun:"email"},{action_info:{success:e}}),i:n.m(e``,"0 0 20 20","info"),r:()=>o.b({source:o.eZ.ResetPassword,action:"submit",noun:"reset_complete"})}})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("Bb-MnsKJdV",["CsxDAjmHZE"],(async a=>{const{svg:l}=a.g();return{p:a.m(l``,"0 0 20 20","pin-fill")}})); SML.di("./C42E8rVVpA.js",import.meta.url,"C42E8rVVpA");SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("BhI3QXPK-z",["C42E8rVVpA","CsxDAjmHZE"],(async(r,t)=>{function e(r,e){const o=void 0===e?void 0:`${e}: `;if("object"==typeof r){if(r){if(Array.isArray(r))return t.x`
${o}Array (${r.length})
    ${r.map(((r,t)=>l(t.toString(),r)))} ${l("length",r.length)}
`;{const e=Object.keys(r);return t.x`
${o}Object {${e.length}}
    ${e.map((t=>l(t,r[t])))}
`}}return t.x` ${o}null `}const n=typeof r;return t.x` ${o}${r} `}function l(r,l){return t.x`
  • ${e(l,r)}
  • `}let o=class extends t.s{constructor(){super(...arguments),this.value=null}static get styles(){return t.i`:host{display:block;font-size:var(--font-code);font-family:var(--font-mono);background:var(--color-tone-5);border:1px solid var(--color-tone-4);border-radius:4px;padding:1rem 1.4rem}ul{margin:0 0 0 1.5rem;padding:0;list-style-type:none}.string:after,.string:before{display:inline;content:'"'}.string{color:var(--color-alert-caution)}.boolean,.number{color:var(--color-primary-background-hover)}.null{color:var(--color-tone-2)}`}render(){if(this.value)return e(this.value)}};r._([r.n({type:Object,reflect:!0})],o.prototype,"value",void 0),o=r._([r.e("faceplate-json")],o)})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("BvN0nP1_ee",["CsxDAjmHZE"],(async a=>{const{svg:l}=a.g();return{c:a.m(l``,"0 0 20 20","code-inline")}})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("C-58MBdf3h",["CsxDAjmHZE"],(async c=>{const{svg:l}=c.g();return{p:c.m(l``,"0 0 20 20","pin")}})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("C3W3TSaoiz",["CsxDAjmHZE"],(async t=>{const{svg:a}=t.g();return{s:t.m(a``,"0 0 20 20","subtract-circle")}})); SML.di("./C42E8rVVpA.js",import.meta.url,"C42E8rVVpA");SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("CXhXPoA40F",["C42E8rVVpA","CsxDAjmHZE"],(async(e,r)=>{var t;!function(e){e.CIRCLE="circle",e.RECTANGLE="rectangle",e.PILL="pill"}(t||(t={}));const i=2500;let s=0,a=null,o=class extends r.s{constructor(){super(...arguments),this.shape=t.RECTANGLE,this.calcDelay=e=>{if(0===e)return 0;let r=0;const t=a?.getAnimations()[0];return t&&(r=t.effect?.getComputedTiming().progress*i),(r+200*e)%i}}static get styles(){return r.i`:host{display:inline-flex}:host([shape=pill]) #loader{border-radius:var(--rem8)}:host([shape=circle]) #loader{border-radius:50%}#loader{background:var(--color-shimmer-background);height:100%;width:100%;position:relative;overflow-x:hidden}#shimmer-object{background:var(--color-shimmer-gradient-overlay);border-radius:.5rem;height:100%;width:200%;position:absolute;top:0;inset-inline-start:0;transform:translateX(-100%)}`}firstUpdated(){this.shimmer(s++)}async shimmer(e){await new Promise((e=>requestAnimationFrame(e)));a||(a=this.shimmerObject);const r={duration:i,delay:-1*this.calcDelay(e),iterations:1/0};this.shimmerObject?.animate([{transform:"translateX(50%)"}],r)}render(){return r.x`
    `}};e._([e.n({type:String})],o.prototype,"shape",void 0),e._([e.Q("#shimmer-object")],o.prototype,"shimmerObject",void 0),o=e._([e.e("faceplate-shimmer")],o);var n=Object.freeze({__proto__:null,get FaceplateShimmer(){return o},get LOADER_SHAPES(){return t}});return{get L(){return t},get f(){return n}}})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("ClDw6IeaL3",["CsxDAjmHZE"],(async a=>{const{svg:c}=a.g(),h=a.m(c``,"0 0 20 20","mark-read"),{svg:l}=a.g();return{m:h,u:a.m(l``,"0 0 20 20","users-fill")}})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("Cm_szELb1W",["CsxDAjmHZE"],(async a=>{const{svg:l}=a.g();return{e:a.m(l``,"0 0 20 20","edit")}})); SML.di("./C42E8rVVpA.js",import.meta.url,"C42E8rVVpA");SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE");SML.di("./DUzIBJc2in.js",import.meta.url,"DUzIBJc2in"); SML.dm("Cse0G_xARZ",["C42E8rVVpA","CsxDAjmHZE","DUzIBJc2in"],(async(e,t,a)=>{let p=class extends(a.W(t.s)){constructor(){super(...arguments),this.pages=0,this.for=void 0}get pageIndex(){return super.pageIndex}set pageIndex(e){super.pageIndex=e}get pageNames(){return super.pageNames}set pageNames(e){super.pageNames=e}static get styles(){return t.i`:host{display:block}.page{display:none}.active{display:block}`}render(){if(this.pages<1)return;const{pageNames:p}=this;return t.x`
    ${a.b(this.pages).map((a=>t.x`
    `))}
    `}pageIndexChangedCallback(e){super.pageIndexChangedCallback(e),this.requestUpdate("pageIndex",e)}};return e._([e.n({type:Number})],p.prototype,"pages",void 0),e._([e.n({type:Number,attribute:"pageindex"})],p.prototype,"pageIndex",null),e._([e.n({converter:e.J,attribute:"pagenames"})],p.prototype,"pageNames",null),e._([e.n({type:String})],p.prototype,"for",void 0),p=e._([e.e("faceplate-tabpanel")],p),{get F(){return p}}})); SML.dm("Csx3BNLuth",[],(async()=>{class e extends HTMLElement{connectedCallback(){this.videoId=this.getAttribute("videoid");let t=this.querySelector(".lty-playbtn");if(this.playLabel=t&&t.textContent.trim()||this.getAttribute("playlabel")||"Play",this.dataset.title=this.getAttribute("title")||"",this.style.backgroundImage||(this.style.backgroundImage=`url("https://i.ytimg.com/vi/${this.videoId}/hqdefault.jpg")`,this.upgradePosterImage()),t||(t=document.createElement("button"),t.type="button",t.classList.add("lty-playbtn"),this.append(t)),!t.textContent){const e=document.createElement("span");e.className="lyt-visually-hidden",e.textContent=this.playLabel,t.append(e)}this.addNoscriptIframe(),"A"===t.nodeName&&(t.removeAttribute("href"),t.setAttribute("tabindex","0"),t.setAttribute("role","button"),t.addEventListener("keydown",(e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.activate())}))),this.addEventListener("pointerover",e.warmConnections,{once:!0}),this.addEventListener("focusin",e.warmConnections,{once:!0}),this.addEventListener("click",this.activate),this.needsYTApi=this.hasAttribute("js-api")||navigator.vendor.includes("Apple")||navigator.userAgent.includes("Mobi")}static addPrefetch(e,t,a){const i=document.createElement("link");i.rel=e,i.href=t,a&&(i.as=a),document.head.append(i)}static warmConnections(){e.preconnected||(e.addPrefetch("preconnect","https://www.youtube-nocookie.com"),e.addPrefetch("preconnect","https://www.google.com"),e.addPrefetch("preconnect","https://googleads.g.doubleclick.net"),e.addPrefetch("preconnect","https://static.doubleclick.net"),e.preconnected=!0)}fetchYTPlayerApi(){window.YT||window.YT&&window.YT.Player||(this.ytApiPromise=new Promise(((e,t)=>{var a=document.createElement("script");a.src="https://www.youtube.com/iframe_api",a.async=!0,a.onload=t=>{YT.ready(e)},a.onerror=t,this.append(a)})))}async getYTPlayer(){return this.playerPromise||await this.activate(),this.playerPromise}async addYTPlayerIframe(){this.fetchYTPlayerApi(),await this.ytApiPromise;const e=document.createElement("div");this.append(e);const t=Object.fromEntries(this.getParams().entries());this.playerPromise=new Promise((a=>{let i=new YT.Player(e,{width:"100%",videoId:this.videoId,playerVars:t,events:{onReady:e=>{e.target.playVideo(),a(i)}}})}))}addNoscriptIframe(){const e=this.createBasicIframe(),t=document.createElement("noscript");t.innerHTML=e.outerHTML,this.append(t)}getParams(){const e=new URLSearchParams(this.getAttribute("params")||[]);return e.append("autoplay","1"),e.append("playsinline","1"),e}async activate(){if(this.classList.contains("lyt-activated"))return;if(this.classList.add("lyt-activated"),this.needsYTApi)return this.addYTPlayerIframe(this.getParams());const e=this.createBasicIframe();this.append(e),e.focus()}createBasicIframe(){const e=document.createElement("iframe");return e.width=560,e.height=315,e.title=this.playLabel,e.allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",e.allowFullscreen=!0,e.src=`https://www.youtube-nocookie.com/embed/${encodeURIComponent(this.videoId)}?${this.getParams().toString()}`,e}upgradePosterImage(){setTimeout((()=>{const e=`https://i.ytimg.com/vi_webp/${this.videoId}/sddefault.webp`,t=new Image;t.fetchPriority="low",t.referrerpolicy="origin",t.src=e,t.onload=t=>{90==t.target.naturalHeight&&120==t.target.naturalWidth||(this.style.backgroundImage=`url("${e}")`)}}),100)}}customElements.define("lite-youtube",e)})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("D1zInUy8ge",["CsxDAjmHZE"],(async a=>{const{svg:l}=a.g();return{b:a.m(l``,"0 0 20 20","ban")}})); SML.di("./C42E8rVVpA.js",import.meta.url,"C42E8rVVpA");SML.di("./D9SW9I8HSz.js",import.meta.url,"D9SW9I8HSz");SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE");SML.di("./DUzIBJc2in.js",import.meta.url,"DUzIBJc2in");SML.di("./cjhvxMuwOm.js",import.meta.url,"cjhvxMuwOm"); SML.dm("DAt93EM4d4",["C42E8rVVpA","D9SW9I8HSz","CsxDAjmHZE","DUzIBJc2in","cjhvxMuwOm"],(async(r,o,a)=>{var e=a.i`${r.Y}:host{--max-width:20rem;--hide-delay:500ms;--show-delay:750ms;display:contents}:host,:host([appearance=neutral]){--rpl-hovercard-background-color:var(--color-neutral-background);--rpl-hovercard-color:var(--color-neutral-content-strong)}:host([appearance=inverted]){--rpl-hovercard-background-color:var(--color-inverted-neutral-background);--rpl-hovercard-color:var(--color-inverted-neutral-content-strong)}.hovercard{--arrow-color:var(--rpl-hovercard-background-color)}.hovercard::part(popup){z-index:var(--rpl-z-index-hovercard,var(--faceplate-hovercard-z-index,1))}.hovercard[placement^=top]::part(popup){transform-origin:bottom}.hovercard[placement^=bottom]::part(popup){transform-origin:top}.hovercard[placement^=left]::part(popup){transform-origin:right}.hovercard[placement^=right]::part(popup){transform-origin:left}.hovercard-body{display:flex;flex-direction:column;width:fit-content;justify-content:flex-start;align-items:flex-start;box-sizing:border-box;border-radius:1rem;box-shadow:var(--elevation-md);z-index:var(--rpl-hovercard-z-index,var(--faceplate-tooltip-z-index,1));font:var(--font-12-16-semibold);background-color:var(--rpl-hovercard-background-color);color:var(--rpl-hovercard-color);padding:8px}`;const t="neutral";let c=class extends o.H{constructor(){super(...arguments),this.appearance=t}};c.styles=e,r._([r.n({type:String,reflect:!0})],c.prototype,"appearance",void 0),c=r._([r.e("rpl-hovercard")],c)})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("DO8nehoLsI",["CsxDAjmHZE"],(async m=>{const{svg:a}=m.g();return{m:m.m(a``,"0 0 20 20","mod")}})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("DPCGjXa0Da",["CsxDAjmHZE"],(async t=>{const{svg:e}=t.g(),n=t.m(e``,"0 0 20 20","chevron-down");const r=(()=>{let t=0;return()=>(t+=1,`u${`0000${(Math.random()*36**4|0).toString(36)}`.slice(-4)}${t}`)})();function o(t){const e=[];for(let n=0,r=t.length;n{const r=new Image;r.decode=()=>e(r),r.onload=()=>e(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=t}))}async function l(t,e,n){const r="http://www.w3.org/2000/svg",o=document.createElementNS(r,"svg"),i=document.createElementNS(r,"foreignObject");return o.setAttribute("width",`${e}`),o.setAttribute("height",`${n}`),o.setAttribute("viewBox",`0 0 ${e} ${n}`),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("externalResourcesRequired","true"),o.appendChild(i),i.appendChild(t),async function(t){return Promise.resolve().then((()=>(new XMLSerializer).serializeToString(t))).then(encodeURIComponent).then((t=>`data:image/svg+xml;charset=utf-8,${t}`))}(o)}const u=(t,e)=>{if(t instanceof e)return!0;const n=Object.getPrototypeOf(t);return null!==n&&(n.constructor.name===e.name||u(n,e))};function h(t,e,n){const r=`.${t}:${e}`,i=n.cssText?function(t){const e=t.getPropertyValue("content");return`${t.cssText} content: '${e.replace(/'|"/g,"")}';`}(n):function(t){return o(t).map((e=>`${e}: ${t.getPropertyValue(e)}${t.getPropertyPriority(e)?" !important":""};`)).join(" ")}(n);return document.createTextNode(`${r}{${i}}`)}function d(t,e,n){const o=window.getComputedStyle(t,n),i=o.getPropertyValue("content");if(""===i||"none"===i)return;const a=r();try{e.className=`${e.className} ${a}`}catch(t){return}const c=document.createElement("style");c.appendChild(h(a,n,o)),e.appendChild(c)}const f="application/font-woff",g="image/jpeg",m={woff:f,woff2:f,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:g,jpeg:g,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function p(t){const e=function(t){const e=/\.([^./]*?)$/g.exec(t);return e?e[1]:""}(t).toLowerCase();return m[e]||""}function w(t){return-1!==t.search(/^(data:)/)}async function y(t,e,n){const r=await fetch(t,e);if(404===r.status)throw new Error(`Resource "${r.url}" not found`);const o=await r.blob();return new Promise(((t,e)=>{const i=new FileReader;i.onerror=e,i.onloadend=()=>{try{t(n({res:r,result:i.result}))}catch(t){e(t)}},i.readAsDataURL(o)}))}const b={};async function S(t,e,n){const r=function(t,e,n){let r=t.replace(/\?.*/,"");return n&&(r=t),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),e?`[${e}]${r}`:r}(t,e,n.includeQueryParams);if(null!=b[r])return b[r];let o;n.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime());try{const r=await y(t,n.fetchRequestInit,(({res:t,result:n})=>(e||(e=t.headers.get("Content-Type")||""),function(t){return t.split(/,/)[1]}(n))));o=function(t,e){return`data:${e};base64,${t}`}(r,e)}catch(e){o=n.imagePlaceholder||"";let r=`Failed to fetch resource: ${t}`;e&&(r="string"==typeof e?e:e.message),r&&console.warn(r)}return b[r]=o,o}async function E(t,e){return u(t,HTMLCanvasElement)?async function(t){const e=t.toDataURL();return"data:,"===e?t.cloneNode(!1):s(e)}(t):u(t,HTMLVideoElement)?async function(t,e){if(t.currentSrc){const e=document.createElement("canvas"),n=e.getContext("2d");return e.width=t.clientWidth,e.height=t.clientHeight,null==n||n.drawImage(t,0,0,e.width,e.height),s(e.toDataURL())}const n=t.poster,r=p(n);return s(await S(n,r,e))}(t,e):u(t,HTMLIFrameElement)?async function(t){var e;try{if(null===(e=null==t?void 0:t.contentDocument)||void 0===e?void 0:e.body)return await $(t.contentDocument.body,{},!0)}catch(t){}return t.cloneNode(!1)}(t):t.cloneNode(!1)}const v=t=>null!=t.tagName&&"SLOT"===t.tagName.toUpperCase();function x(t,e){return u(e,Element)&&(function(t,e){const n=e.style;if(!n)return;const r=window.getComputedStyle(t);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):o(r).forEach((o=>{let i=r.getPropertyValue(o);if("font-size"===o&&i.endsWith("px")){const t=Math.floor(parseFloat(i.substring(0,i.length-2)))-.1;i=`${t}px`}u(t,HTMLIFrameElement)&&"display"===o&&"inline"===i&&(i="block"),"d"===o&&e.getAttribute("d")&&(i=`path(${e.getAttribute("d")})`),n.setProperty(o,i,r.getPropertyPriority(o))}))}(t,e),function(t,e){d(t,e,":before"),d(t,e,":after")}(t,e),function(t,e){u(t,HTMLTextAreaElement)&&(e.innerHTML=t.value),u(t,HTMLInputElement)&&e.setAttribute("value",t.value)}(t,e),function(t,e){if(u(t,HTMLSelectElement)){const n=e,r=Array.from(n.children).find((e=>t.value===e.getAttribute("value")));r&&r.setAttribute("selected","")}}(t,e)),e}async function $(t,e,n){return n||!e.filter||e.filter(t)?Promise.resolve(t).then((t=>E(t,e))).then((n=>async function(t,e,n){var r,i;let a=[];return a=v(t)&&t.assignedNodes?o(t.assignedNodes()):u(t,HTMLIFrameElement)&&(null===(r=t.contentDocument)||void 0===r?void 0:r.body)?o(t.contentDocument.body.childNodes):o((null!==(i=t.shadowRoot)&&void 0!==i?i:t).childNodes),0===a.length||u(t,HTMLVideoElement)||await a.reduce(((t,r)=>t.then((()=>$(r,n))).then((t=>{t&&e.appendChild(t)}))),Promise.resolve()),e}(t,n,e))).then((e=>x(t,e))).then((t=>async function(t,e){const n=t.querySelectorAll?t.querySelectorAll("use"):[];if(0===n.length)return t;const r={};for(let o=0;o{for(;;){const[n,,r]=P.exec(t)||[];if(!r)return"";if(r===e)return`src: ${n};`}})):t}(t,n),o=function(t){const e=[];return t.replace(C,((t,n,r)=>(e.push(r),t))),e.filter((t=>!w(t)))}(r);return o.reduce(((t,r)=>t.then((t=>T(t,r,e,n)))),Promise.resolve(r))}async function N(t,e,n){var r;const o=null===(r=e.style)||void 0===r?void 0:r.getPropertyValue(t);if(o){const r=await A(o,null,n);return e.style.setProperty(t,r,e.style.getPropertyPriority(t)),!0}return!1}async function D(t,e){u(t,Element)&&(await async function(t,e){await N("background",t,e)||await N("background-image",t,e),await N("mask",t,e)||await N("mask-image",t,e)}(t,e),await async function(t,e){const n=u(t,HTMLImageElement);if((!n||w(t.src))&&(!u(t,SVGImageElement)||w(t.href.baseVal)))return;const r=n?t.src:t.href.baseVal,o=await S(r,p(r),e);await new Promise(((e,r)=>{t.onload=e,t.onerror=r;const i=t;i.decode&&(i.decode=e),"lazy"===i.loading&&(i.loading="eager"),n?(t.srcset="",t.src=o):t.href.baseVal=o}))}(t,e),await async function(t,e){const n=o(t.childNodes).map((t=>D(t,e)));await Promise.all(n).then((()=>t))}(t,e))}const I={};async function M(t){let e=I[t];if(null!=e)return e;const n=await fetch(t);return e={url:t,cssText:await n.text()},I[t]=e,e}async function k(t,e){let n=t.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,o=(n.match(/url\([^)]+\)/g)||[]).map((async o=>{let i=o.replace(r,"$1");return i.startsWith("https://")||(i=new URL(i,t.url).href),y(i,e.fetchRequestInit,(({result:t})=>(n=n.replace(o,`url(${t})`),[o,t])))}));return Promise.all(o).then((()=>n))}function H(t){if(null==t)return[];const e=[];let n=t.replace(/(\/\*[\s\S]*?\*\/)/gi,"");const r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const t=r.exec(n);if(null===t)break;e.push(t[0])}n=n.replace(r,"");const o=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,i=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let t=o.exec(n);if(null===t){if(t=i.exec(n),null===t)break;o.lastIndex=i.lastIndex}else i.lastIndex=o.lastIndex;e.push(t[0])}return e}async function O(t,e){if(null==t.ownerDocument)throw new Error("Provided element is not within a Document");const n=o(t.ownerDocument.styleSheets),r=await async function(t,e){const n=[],r=[];return t.forEach((n=>{if("cssRules"in n)try{o(n.cssRules||[]).forEach(((t,o)=>{if(t.type===CSSRule.IMPORT_RULE){let i=o+1;const a=M(t.href).then((t=>k(t,e))).then((t=>H(t).forEach((t=>{try{n.insertRule(t,t.startsWith("@import")?i+=1:n.cssRules.length)}catch(e){console.error("Error inserting rule from remote css",{rule:t,error:e})}})))).catch((t=>{console.error("Error loading remote css",t.toString())}));r.push(a)}}))}catch(o){const i=t.find((t=>null==t.href))||document.styleSheets[0];null!=n.href&&r.push(M(n.href).then((t=>k(t,e))).then((t=>H(t).forEach((t=>{i.insertRule(t,n.cssRules.length)})))).catch((t=>{console.error("Error loading remote stylesheet",t)}))),console.error("Error inlining remote css file",o)}})),Promise.all(r).then((()=>(t.forEach((t=>{if("cssRules"in t)try{o(t.cssRules||[]).forEach((t=>{n.push(t)}))}catch(e){console.error(`Error while reading CSS rules from ${t.href}`,e)}})),n)))}(n,e);return function(t){return t.filter((t=>t.type===CSSRule.FONT_FACE_RULE)).filter((t=>L(t.style.getPropertyValue("src"))))}(r)}async function V(t,e){const n=await O(t,e);return(await Promise.all(n.map((t=>{const n=t.parentStyleSheet?t.parentStyleSheet.href:null;return A(t.cssText,n,e)})))).join("\n")}async function j(t,e={}){const{width:n,height:r}=a(t,e),o=await $(t,e,!0);await async function(t,e){const n=null!=e.fontEmbedCSS?e.fontEmbedCSS:e.skipFonts?null:await V(t,e);if(n){const e=document.createElement("style"),r=document.createTextNode(n);e.appendChild(r),t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}}(o,e),await D(o,e),function(t,e){const{style:n}=t;e.backgroundColor&&(n.backgroundColor=e.backgroundColor),e.width&&(n.width=`${e.width}px`),e.height&&(n.height=`${e.height}px`);const r=e.style;null!=r&&Object.keys(r).forEach((t=>{n[t]=r[t]}))}(o,e);return await l(o,n,r)}async function F(t,e={}){const{width:n,height:r}=a(t,e),o=await j(t,e),i=await s(o),l=document.createElement("canvas"),u=l.getContext("2d"),h=e.pixelRatio||function(){let t,e;try{e=process}catch(t){}const n=e&&e.env?e.env.devicePixelRatio:null;return n&&(t=parseInt(n,10),Number.isNaN(t)&&(t=1)),t||window.devicePixelRatio||1}(),d=e.canvasWidth||n,f=e.canvasHeight||r;return l.width=d*h,l.height=f*h,e.skipAutoScale||function(t){(t.width>c||t.height>c)&&(t.width>c&&t.height>c?t.width>t.height?(t.height*=c/t.width,t.width=c):(t.width*=c/t.height,t.height=c):t.width>c?(t.height*=c/t.width,t.width=c):(t.width*=c/t.height,t.height=c))}(l),l.style.width=`${d}`,l.style.height=`${f}`,e.backgroundColor&&(u.fillStyle=e.backgroundColor,u.fillRect(0,0,l.width,l.height)),u.drawImage(i,0,0,l.width,l.height),l}var U=Object.freeze({__proto__:null,getFontEmbedCSS:async function(t,e={}){return V(t,e)},toBlob:async function(t,e={}){const n=await F(t,e);return await function(t,e={}){return t.toBlob?new Promise((n=>{t.toBlob(n,e.type?e.type:"image/png",e.quality?e.quality:1)})):new Promise((n=>{const r=window.atob(t.toDataURL(e.type?e.type:void 0,e.quality?e.quality:void 0).split(",")[1]),o=r.length,i=new Uint8Array(o);for(let t=0;t{const{svg:l}=a.g();return{t:a.m(l``,"0 0 20 20","tag")}})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("DWIUnYboK_",["CsxDAjmHZE"],(async a=>{const{svg:h}=a.g();return{a:a.m(h``,"0 0 20 20","add-circle")}})); SML.di("./C42E8rVVpA.js",import.meta.url,"C42E8rVVpA");SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE");SML.di("./DUzIBJc2in.js",import.meta.url,"DUzIBJc2in"); SML.dm("DYFdTZXVs2",["C42E8rVVpA","CsxDAjmHZE","DUzIBJc2in"],(async(e,t,s)=>{let a=class extends(s.W(e.aF)){constructor(){super(...arguments),this.pages=0,this.for=void 0,this._events=new e.E(this),this._windowEvents=new e.E(this,(()=>window)),this._locationHashMap=new Map,this._selectedElements=new Set,this._activeSlotRef=e.U(),this._handleHashChange=this._windowEvents.define("hashchange",(()=>{const e=this._locationHashMap.get(window.location.hash);e&&(this.pageIndex=e)})),this._handleClick=this._events.define("click",(e=>{let t=null;e.target instanceof HTMLAnchorElement&&(t=e.target.getAttribute("href"),t&&"#"!==t[0]&&(t=null)),null!==t&&(e.preventDefault(),e.stopPropagation());const s=e.composedPath();for(let e=0;e{if("ArrowLeft"===e.key)this.previousPage();else{if("ArrowRight"!==e.key)return;this.nextPage()}e.preventDefault(),e.stopPropagation()}))}get pageIndex(){return super.pageIndex}set pageIndex(e){super.pageIndex=e}get pageNames(){return super.pageNames}set pageNames(e){super.pageNames=e}render(){if(this.pages<1)return t.x``;const{pageNames:a}=this;return t.x`
    ${s.b(this.pages).map((s=>t.x` `))}
    `}updated(e){if(e.has("pageIndex")){this._clearSelectedAttributes();const e=this._activeSlotRef.value;if(!e)return;for(const t of e.assignedElements())this._setSelectedAttribute(t),t.focus()}}_clearSelectedAttributes(){if(this._selectedElements.size){for(const e of this._selectedElements)e.removeAttribute("faceplate-tab-selected");this._selectedElements.clear()}}_setSelectedAttribute(e){this._selectedElements.add(e),e.setAttribute("faceplate-tab-selected","")}handleSlotChange(e){const{hash:t}=window.location,s=e.target;if(!(s.parentElement instanceof HTMLSpanElement))return;const a=s.assignedElements(),n=this.getPageIndexFromSpanWrapper(s.parentElement),i=n===this.pageIndex;if(i&&this._clearSelectedAttributes(),a.length)for(const e of a){if(i&&this._setSelectedAttribute(e),!(e instanceof HTMLAnchorElement))continue;const s=e.getAttribute("href");s&&(this._locationHashMap.set(s,n),s===t&&(this.pageIndex=n))}}getPageIndexFromSpanWrapper(e){return e.dataset.i?parseInt(e.dataset.i,10):0}pageIndexChangedCallback(e){super.pageIndexChangedCallback(e),this.requestUpdate("pageIndex",e)}};return e._([e.n({type:Number})],a.prototype,"pages",void 0),e._([e.n({type:Number,attribute:"pageindex"})],a.prototype,"pageIndex",null),e._([e.n({type:String})],a.prototype,"for",void 0),e._([e.n({converter:e.J,attribute:"pagenames"})],a.prototype,"pageNames",null),e._([e.Q(".tablist")],a.prototype,"tabList",void 0),a=e._([e.e("faceplate-tablist")],a),{get F(){return a}}})); SML.di("./C42E8rVVpA.js",import.meta.url,"C42E8rVVpA");SML.di("./DUzIBJc2in.js",import.meta.url,"DUzIBJc2in");SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE");SML.di("./CCtMKamAzh.js",import.meta.url,"CCtMKamAzh");SML.di("./CndptGkkPK.js",import.meta.url,"CndptGkkPK");SML.di("./DW4Y66xecc.js",import.meta.url,"DW4Y66xecc"); SML.dm("D_F1vtGIq1",["C42E8rVVpA","DUzIBJc2in","CsxDAjmHZE","CCtMKamAzh","CndptGkkPK","DW4Y66xecc"],(async(t,e,o,i)=>{const s=new WeakMap;let r=class extends i.C{constructor(){super(),this.ariaRole="radio"}static get styles(){return[super.styles,o.i`:host(:focus) .icon{border-radius:100%}:host{margin:var(--spacer-sm)}:host([checked]) .icon,:host([indeterminate]) .icon{display:inline-block;color:var(--color-input-radio-hover)}:host .icon{color:var(--color-input-radio)}:host(:hover) .icon{color:var(--color-input-radio-hover)}`]}connectedCallback(){super.connectedCallback(),this._contextKey=e.g(this.name,this.getRootNode()),s.has(this._contextKey)?s.get(this._contextKey).add(this):s.set(this._contextKey,new Set([this]))}disconnectedCallback(){super.disconnectedCallback(),this._contextKey&&s.get(this._contextKey)?.delete(this)}handleInteraction(){if(this._contextKey){const t=s.get(this._contextKey);if(t)for(const e of t)e!==this&&(e.checked=!1)}this.checked=!0,super.handleInteraction()}render(){const t={size:o.h.Small,attributes:{className:"icon"}};return o.x` ${this.checked?o.n(t):o.p(t)} ${super.render()} `}};return r=t._([t.e("faceplate-radio-input")],r),{get FaceplateRadioInput(){return r}}})); SML.di("./C42E8rVVpA.js",import.meta.url,"C42E8rVVpA");SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE");SML.di("./CCtMKamAzh.js",import.meta.url,"CCtMKamAzh"); SML.dm("DaR0j2K3uG",["C42E8rVVpA","CsxDAjmHZE","CCtMKamAzh"],(async(e,t,i)=>{var s;!function(e){e.CHECKED="faceplate-checkbox-input:checked",e.UNCHECKED="faceplate-checkbox-input:unchecked"}(s||(s={}));let a=class extends i.C{constructor(){super(),this.indeterminate=!1,this.ariaRole="checkbox"}static get styles(){return[super.styles,t.i`:host(:focus-visible) svg{outline:1px auto var(--color-global-focus)}`]}handleInteraction(){this.checked=!this.checked,this.dispatchEvent(e.c(this.checked?s.CHECKED:s.UNCHECKED)),super.handleInteraction(),this.indeterminate&&(this.indeterminate=!1)}render(){return t.x` ${this.indeterminate?t.f({attributes:{className:"icon"},size:t.h.Small}):this.checked?t.j({attributes:{className:"icon"},size:t.h.Small}):t.k({attributes:{className:"icon"},size:t.h.Small})} ${super.render()} `}};e._([e.n({type:Boolean})],a.prototype,"indeterminate",void 0),a=e._([e.e("faceplate-checkbox-input")],a)})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("DdaDf_pDuu",["CsxDAjmHZE"],(async h=>{const{svg:s}=h.g();return{a:h.m(s``,"0 0 20 20","add")}})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("DjjIXmCgnO",["CsxDAjmHZE"],(async a=>{const{svg:c}=a.g();return{i:a.m(c``,"0 0 20 20","image")}})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("DqH37EUclf",["CsxDAjmHZE"],(async a=>{const{svg:l}=a.g();return{h:a.m(l``,"0 0 20 20","hide")}})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("Dr_f9Ge12h",["CsxDAjmHZE"],(async a=>{const{svg:l}=a.g();return{m:a.m(l``,"0 0 20 20","mod-fill")}})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("DvPXrht8jL",["CsxDAjmHZE"],(async h=>{const{svg:a}=h.g();return{n:h.m(a``,"0 0 20 20","notifications-fill")}})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("GtN-cJJQ1w",["CsxDAjmHZE"],(async l=>{const{svg:t}=l.g();return{t:l.m(t``,"0 0 20 20","tag-fill")}})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE");SML.di("./C42E8rVVpA.js",import.meta.url,"C42E8rVVpA");SML.di("./B-LM1r1oJd.js",import.meta.url,"B-LM1r1oJd");SML.di("./DUzIBJc2in.js",import.meta.url,"DUzIBJc2in"); SML.dm("MvWSZOZYAh",["CsxDAjmHZE","C42E8rVVpA","B-LM1r1oJd","DUzIBJc2in"],(async(e,a,r,l)=>{var t,n,o;!function(e){e.Small="sm",e.Medium="md",e.Large="lg"}(t||(t={})),function(e){e.Pill="pill",e.Square="square"}(n||(n={})),function(e){e.Pill="default",e.BottomBorder="bottom-border",e.Hug="hug",e.Fill="fill"}(o||(o={}));const s={sm:"py-[var(--rem6)] leading-5 text-14",md:"py-[var(--rem10)] leading-5 text-14",lg:"py-[var(--rem14)] leading-5 text-14"},d={sm:" ps-[var(--rem12)]",md:" ps-[var(--rem14)]",lg:" ps-[var(--rem14)]"},c={sm:" pe-[var(--rem12)]",md:" pe-[var(--rem12)]",lg:" pe-[var(--rem16)]"},i={sm:" pe-[var(--rem8)]",md:" pe-[var(--rem12)]",lg:" pe-[var(--rem16)]"},p={sm:" ps-[var(--rem12)]",md:" ps-[var(--rem16)]",lg:" ps-[var(--rem16)]"},m={sm:" pe-[var(--rem12)]",md:" pe-[var(--rem16)]",lg:" pe-[var(--rem16)]"},u=({leadingIcon:e,size:a,hasBadge:r,dropdown:l,appearance:t})=>{if(t===o.Fill||t===o.Hug)return;let n=" ";return n+=e?d[a]:p[a],n+=l?i[a]:r?c[a]:m[a],n},b="inline-flex flex-col text-secondary-plain-weak font-semibold relative";return{get T(){return t},get a(){return o},b:({attributes:t,appearance:n=o.Pill,label:s,size:d=a.ac.Medium,selectedIcon:c,unselectedIcon:i,hasBadge:p,badgeCount:m,tabPanelID:u,dropdown:b,selected:g,role:v="tab"})=>{const{html:x}=e.g();let h="mt-[-0.125rem]";m||(h+=" ms-[-.25rem]");const f=[b||g||!i?"":i,!b&&g&&c?c:"",s?x`${s}`:"",p?x` ${r.b({appearance:r.B.ALERT,content:m})} `:""],E=b?f:x` ${f} ${g&&n===o.BottomBorder?x` `:""} `,T=[t?.className??"",n===o.BottomBorder?"rounded-none bg-transparent hover:bg-secondary-background-hover hover:text-secondary-content active:bg-secondary-background":""].join(" "),S={attributes:{"aria-selected":g?"true":"false","aria-controls":u,...t,className:T},children:E,size:d,appearance:"bottom-border"===n?"tab":void 0,shape:"bottom-border"===n?void 0:"pill",role:v};return x` ${b?l.n({...S,selectedIcon:c,unselectedIcon:i,selected:g}):a.gx({...S})} `},t:({attributes:a,label:l,size:n=t.Medium,leadingIcon:d,hasBadge:c,badgeCount:i,dropdown:p,role:m="tab",selected:g,selectedTabBorderColor:v="bg-secondary-plain",hoverTabBorderColorClass:x="group-hover:block group-hover:bg-secondary-plain-weak",disabled:h,appearance:f=o.BottomBorder})=>{const{html:E,createElement:T}=e.g(),S={classes:"tab-bottom-border group",selected:"!text-neutral-content-strong tab-selected",badge:r.b({appearance:r.B.NEUTRAL,content:i})},y={[o.Pill]:{classes:"rounded-full",selected:"bg-secondary-background-selected !text-neutral-content-strong",badge:r.b({appearance:r.B.ALERT,content:i}),disabled:"text-neutral-content-disabled",interactive:"hover:no-underline hover:bg-secondary-background-hover hover:text-secondary-content active:bg-secondary-background"}},M=y[f]??S,$=null==a?.href?"button":"a",B=[b,M.classes,g?M.selected:null,h?"text-interactive-content-disabled":"hover:no-underline hover:text-secondary-plain",u({hasBadge:c,leadingIcon:d,dropdown:p,size:n,appearance:f}),f===o.Fill?"items-center grow":f===o.Hug?"grow-0":null,null==a?.href?"rounded-none bg-transparent p-0 border-none h-auto":null,f===o.Pill?h?y.disabled:M.interactive:null].filter((e=>null!==e)).join(" "),D=`${v} ${h?"":x}`,L=E` ${[d??"",l?E`${l}`:""]} ${[c?E` ${M.badge} `:"",p?e.ao({size:n===t.Small?e.h.Small:e.h.Medium}):""]} `,I="boolean"==typeof g?`${g}`:void 0;let _;_="boolean"==typeof a?.["aria-selected"]?`${a["aria-selected"]}`:"true"===a?.["aria-selected"]||"false"===a?.["aria-selected"]?a["aria-selected"]:void 0;const R=a&&"role"in a,P=R&&void 0!==a.role||!R?I??_:void 0;return h?T("span",{...a,"aria-selected":P,className:B,rpl:!0},L):T($,{...a,"aria-selected":P,className:B,role:R?a.role:m,rpl:!0,rplSelected:g},L)}}})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("NyNk1DIFY-",["CsxDAjmHZE"],(async a=>{const{svg:c}=a.g();return{u:a.m(c``,"0 0 20 20","unban")}})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("_jDTHze3Kl",["CsxDAjmHZE"],(async c=>{const{svg:M}=c.g();return{r:c.m(M``,"0 0 20 20","remove")}})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("clzw02fdiy",["CsxDAjmHZE"],(async l=>{const{svg:h}=l.g();return{r:l.m(h``,"0 0 20 20","report")}})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("ftoWDCvanX",["CsxDAjmHZE"],(async l=>{const{svg:a}=l.g();return{n:l.m(a``,"0 0 20 20","notifications-off-fill")}})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("kQKIt_Nqwz",["CsxDAjmHZE"],(async m=>{const{svg:t}=m.g();return{s:m.m(t``,"0 0 20 20","sentiment-good")}})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("pgxf0t-Cap",["CsxDAjmHZE"],(async c=>{const{svg:h}=c.g(),m=c.m(h``,"0 0 20 20","bot-fill"),{svg:a}=c.g();return{b:m,s:c.m(a``,"0 0 20 20","sentiment-good-fill")}})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("rVkq7v5XdW",["CsxDAjmHZE"],(async a=>{const{svg:l}=a.g();return{u:a.m(l``,"0 0 20 20","unpin")}})); SML.di("./CsxDAjmHZE.js",import.meta.url,"CsxDAjmHZE"); SML.dm("wE4LAWNRqB",["CsxDAjmHZE"],(async l=>{const{svg:a}=l.g();return{t:l.m(a``,"0 0 20 20","tools")}}));