From ccf4af14eb122b6774051c5a415efd2451288fbd Mon Sep 17 00:00:00 2001 From: Christian Nunciato Date: Fri, 11 Oct 2024 14:08:07 -0700 Subject: [PATCH] Replace the TOC menu in Docs, add a menu to Tutorials --- assets/css/bundle.css | 43 ++++++++++-- assets/js/bundle.js | 32 ++++----- content/docs/iac/get-started/aws/begin.md | 8 +-- content/docs/iac/get-started/azure/begin.md | 8 +-- content/docs/iac/get-started/gcp/begin.md | 8 +-- layouts/docs/list.html | 6 +- layouts/docs/single.html | 6 +- layouts/partials/docs/feedback.html | 4 +- layouts/partials/docs/table-of-contents.html | 19 +----- layouts/partials/docs/toc.html | 6 ++ layouts/partials/tutorials/feedback.html | 4 +- layouts/partials/tutorials/toc.html | 6 ++ layouts/tutorials/module.html | 3 +- layouts/tutorials/single.html | 3 +- layouts/tutorials/topic.html | 3 +- theme/src/scss/components/_docs-toc.scss | 32 +++++++++ theme/src/scss/docs/_docs-main.scss | 6 +- theme/src/scss/main.scss | 3 +- theme/stencil/src/components.d.ts | 13 ++++ .../src/components/docs-toc/docs-toc.scss | 3 + .../src/components/docs-toc/docs-toc.tsx | 67 +++++++++++++++++++ .../components/docs-toc/test/docs-toc.e2e.ts | 11 +++ .../docs-toc/test/docs-toc.spec.tsx | 18 +++++ theme/yarn.lock | 12 ++++ 24 files changed, 256 insertions(+), 68 deletions(-) create mode 100644 layouts/partials/docs/toc.html create mode 100644 layouts/partials/tutorials/toc.html create mode 100644 theme/src/scss/components/_docs-toc.scss create mode 100644 theme/stencil/src/components/docs-toc/docs-toc.scss create mode 100644 theme/stencil/src/components/docs-toc/docs-toc.tsx create mode 100644 theme/stencil/src/components/docs-toc/test/docs-toc.e2e.ts create mode 100644 theme/stencil/src/components/docs-toc/test/docs-toc.spec.tsx diff --git a/assets/css/bundle.css b/assets/css/bundle.css index 6f0511b7a615..258f6bdb0ec8 100644 --- a/assets/css/bundle.css +++ b/assets/css/bundle.css @@ -3850,9 +3850,7 @@ div.highlight .copy-button{ flex-basis:32px; overflow-y:auto; height:calc(100vh - 38px); - position:sticky; - left:0; - top:0 + left:0 } .docs-list-main .docs-main-nav-toggle-wrapper .docs-main-nav nav.main-nav div:first-of-type{ @@ -4434,6 +4432,10 @@ div.highlight .copy-button{ display:flex } +.docs-list-main div#accordion-table-of-contents input:checked~div.accordion-content .icon,.docs-list-main div#accordion-table-of-contents input:checked~label.hide .icon,body.section-registry div#accordion-table-of-contents input:checked~div.accordion-content .icon,body.section-registry div#accordion-table-of-contents input:checked~label.hide .icon{ + rotate:180deg +} + .docs-list-main div#accordion-table-of-contents .heading:hover div.icon,body.section-registry div#accordion-table-of-contents .heading:hover div.icon{ background-color:#2b2b2c } @@ -22523,6 +22525,35 @@ pulumi-convert #editors .editor .diagnostics .details{ padding-left:0 !important } +pulumi-docs-toc{ + position: sticky; + top: 0px +} + +pulumi-docs-toc ul li.toc-level-h3{ + margin-left: 1rem +} + +pulumi-docs-toc ul li a{ + --tw-text-opacity: 1; + color: rgba(47, 48, 50, var(--tw-text-opacity)) +} + +pulumi-docs-toc ul li a:hover{ + --tw-text-opacity: 1; + color: rgba(46, 55, 130, var(--tw-text-opacity)); + text-decoration:none !important +} + +pulumi-docs-toc ul li.active a{ + --tw-text-opacity: 1; + color: rgba(46, 55, 130, var(--tw-text-opacity)) +} + +pulumi-docs-toc ul :nth-child(1 of li.active){ + font-weight: 600 +} + pulumi-filter-select pulumi-filter-select-option-group{ font-family: Gilroy, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 1rem; @@ -23430,8 +23461,8 @@ main blockquote p{ :target::before{ content:" "; display:block; - height:106px; - margin-top:-106px + height:74px; + margin-top:-74px } } @@ -23441,7 +23472,7 @@ main blockquote p{ align-self: flex-start; overflow-y: auto; max-height:90vh; - top:106px + top:74px } .section-registry .sticky-sidebar{ diff --git a/assets/js/bundle.js b/assets/js/bundle.js index 649158d0d164..0ce39ca9c4ff 100644 --- a/assets/js/bundle.js +++ b/assets/js/bundle.js @@ -1,35 +1,35 @@ -(()=>{var e={290:function(e){e.exports=function(){"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(n){for(var r=1;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){var n=JSON.stringify(e),r=o()[n];return Promise.all([r||t(),void 0!==r])})).then((function(e){var t=i(e,2),r=t[0],o=t[1];return Promise.all([r,o||n.miss(r)])})).then((function(e){return i(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var i=o();return i[JSON.stringify(e)]=t,r().setItem(n,JSON.stringify(i)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=o();delete t[JSON.stringify(e)],r().setItem(n,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){r().removeItem(n)}))}}}function a(e){var t=o(e.caches),n=t.shift();return void 0===n?{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then((function(e){return Promise.all([e,n.miss(e)])})).then((function(e){return i(e,1)[0]}))},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(e,r,i).catch((function(){return a({caches:t}).get(e,r,i)}))},set:function(e,r){return n.set(e,r).catch((function(){return a({caches:t}).set(e,r)}))},delete:function(e){return n.delete(e).catch((function(){return a({caches:t}).delete(e)}))},clear:function(){return n.clear().catch((function(){return a({caches:t}).clear()}))}}}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},o=JSON.stringify(n);if(o in t)return Promise.resolve(e.serializable?JSON.parse(t[o]):t[o]);var s=r(),a=i&&i.miss||function(){return Promise.resolve()};return s.then((function(e){return a(e)})).then((function(){return s}))},set:function(n,r){return t[JSON.stringify(n)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function c(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}function u(e,t){return t?(Object.keys(t).forEach((function(n){e[n]=t[n](e)})),e):e}function d(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0?r:void 0,timeout:n.timeout||t,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var h={Read:1,Write:2,Any:3},m=1,v=2,g=3;function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;return n(n({},e),{},{status:t,lastUpdate:Date.now()})}function b(e){return"string"==typeof e?{protocol:"https",url:e,accept:h.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||h.Any}}var w="GET",_="POST";function S(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(y(t))}))}))).then((function(e){var n=e.filter((function(e){return function(e){return e.status===m||Date.now()-e.lastUpdate>12e4}(e)})),r=e.filter((function(e){return function(e){return e.status===g&&Date.now()-e.lastUpdate<=12e4}(e)})),i=[].concat(o(n),o(r));return{getTimeout:function(e,t){return(0===r.length&&0===e?1:r.length+3+e)*t},statelessHosts:i.length>0?i.map((function(e){return b(e)})):t}}))}function x(e,t,r,i){var s=[],a=function(e,t){if(e.method!==w&&(void 0!==e.data||void 0!==t.data)){var r=Array.isArray(e.data)?e.data:n(n({},e.data),t.data);return JSON.stringify(r)}}(r,i),l=function(e,t){var r=n(n({},e.headers),t.headers),i={};return Object.keys(r).forEach((function(e){var t=r[e];i[e.toLowerCase()]=t})),i}(e,i),c=r.method,u=r.method!==w?{}:n(n({},r.data),i.data),d=n(n(n({"x-algolia-agent":e.userAgent.value},e.queryParameters),u),i.queryParameters),p=0,f=function t(n,o){var u=n.pop();if(void 0===u)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:C(s)};var f={data:a,headers:l,method:c,url:$(u,r.path,d),connectTimeout:o(p,e.timeouts.connect),responseTimeout:o(p,i.timeout)},h=function(e){var t={request:f,response:e,host:u,triesLeft:n.length};return s.push(t),t},m={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e)},onRetry:function(r){var i=h(r);return r.isTimedOut&&p++,Promise.all([e.logger.info("Retryable failure",E(i)),e.hostsCache.set(u,y(u,r.isTimedOut?g:v))]).then((function(){return t(n,o)}))},onFail:function(e){throw h(e),function(e,t){var n=e.content,r=e.status,i=n;try{i=JSON.parse(n).message}catch(e){}return function(e,t,n){return{name:"ApiError",message:e,status:t,transporterStackTrace:n}}(i,r,t)}(e,C(s))}};return e.requester.send(f).then((function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,n=e.status;return!t&&0==~~n}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSuccess(e):t.onFail(e)}(e,m)}))};return S(e.hostsCache,t).then((function(e){return f(o(e.statelessHosts).reverse(),e.getTimeout)}))}function O(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var n="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(n)&&(t.value="".concat(t.value).concat(n)),t}};return t}function $(e,t,n){var r=k(n),i="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return r.length&&(i+="?".concat(r)),i}function k(e){return Object.keys(e).map((function(t){return d("%s=%s",t,(n=e[t],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n)?JSON.stringify(e[t]):e[t]));var n})).join("&")}function C(e){return e.map((function(e){return E(e)}))}function E(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return n(n({},e),{},{request:n(n({},e.request),{},{headers:n(n({},e.request.headers),t)})})}var T=function(e){var t=e.appId,r=function(e,t,n){var r={"x-algolia-api-key":n,"x-algolia-application-id":t};return{headers:function(){return e===p.WithinHeaders?r:{}},queryParameters:function(){return e===p.WithinQueryParameters?r:{}}}}(void 0!==e.authMode?e.authMode:p.WithinHeaders,t,e.apiKey),o=function(e){var t=e.hostsCache,n=e.logger,r=e.requester,o=e.requestsCache,s=e.responsesCache,a=e.timeouts,l=e.userAgent,c=e.hosts,u=e.queryParameters,d={hostsCache:t,logger:n,requester:r,requestsCache:o,responsesCache:s,timeouts:a,userAgent:l,headers:e.headers,queryParameters:u,hosts:c.map((function(e){return b(e)})),read:function(e,t){var n=f(t,d.timeouts.read),r=function(){return x(d,d.hosts.filter((function(e){return 0!=(e.accept&h.Read)})),e,n)};if(!0!==(void 0!==n.cacheable?n.cacheable:e.cacheable))return r();var o={request:e,mappedRequestOptions:n,transporter:{queryParameters:d.queryParameters,headers:d.headers}};return d.responsesCache.get(o,(function(){return d.requestsCache.get(o,(function(){return d.requestsCache.set(o,r()).then((function(e){return Promise.all([d.requestsCache.delete(o),e])}),(function(e){return Promise.all([d.requestsCache.delete(o),Promise.reject(e)])})).then((function(e){var t=i(e,2);return t[0],t[1]}))}))}),{miss:function(e){return d.responsesCache.set(o,e)}})},write:function(e,t){return x(d,d.hosts.filter((function(e){return 0!=(e.accept&h.Write)})),e,f(t,d.timeouts.write))}};return d}(n(n({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:h.Read},{url:"".concat(t,".algolia.net"),accept:h.Write}].concat(c([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:n(n(n({},r.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:n(n({},r.queryParameters()),e.queryParameters)}));return u({transporter:o,appId:t,addAlgoliaAgent:function(e,t){o.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([o.requestsCache.clear(),o.responsesCache.clear()]).then((function(){}))}},e.methods)},P=function(e){return function(t,n){return t.method===w?e.transporter.read(t,n):e.transporter.write(t,n)}},j=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u({transporter:e.transporter,appId:e.appId,indexName:t},n.methods)}},I=function(e){return function(t,r){var i=t.map((function(e){return n(n({},e),{},{params:k(e.params||{})})}));return e.transporter.read({method:_,path:"1/indexes/*/queries",data:{requests:i},cacheable:!0},r)}},A=function(e){return function(t,i){return Promise.all(t.map((function(t){var o=t.params,s=o.facetName,a=o.facetQuery,l=r(o,["facetName","facetQuery"]);return j(e)(t.indexName,{methods:{searchForFacetValues:M}}).searchForFacetValues(s,a,n(n({},i),l))})))}},L=function(e){return function(t,n,r){return e.transporter.read({method:_,path:d("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:n},cacheable:!0},r)}},D=function(e){return function(t,n){return e.transporter.read({method:_,path:d("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},n)}},M=function(e){return function(t,n,r){return e.transporter.read({method:_,path:d("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:n},cacheable:!0},r)}},N=1,R=2,F=3;function B(e,t,r){var i,o={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise((function(t){var n=new XMLHttpRequest;n.open(e.method,e.url,!0),Object.keys(e.headers).forEach((function(t){return n.setRequestHeader(t,e.headers[t])}));var r,i=function(e,r){return setTimeout((function(){n.abort(),t({status:0,content:r,isTimedOut:!0})}),1e3*e)},o=i(e.connectTimeout,"Connection timeout");n.onreadystatechange=function(){n.readyState>n.OPENED&&void 0===r&&(clearTimeout(o),r=i(e.responseTimeout,"Socket timeout"))},n.onerror=function(){0===n.status&&(clearTimeout(o),clearTimeout(r),t({content:n.responseText||"Network request failed",status:n.status,isTimedOut:!1}))},n.onload=function(){clearTimeout(o),clearTimeout(r),t({content:n.responseText,status:n.status,isTimedOut:!1})},n.send(e.data)}))}},logger:(i=F,{debug:function(e,t){return N>=i&&console.debug(e,t),Promise.resolve()},info:function(e,t){return R>=i&&console.info(e,t),Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}}),responsesCache:l(),requestsCache:l({serializable:!1}),hostsCache:a({caches:[s({key:"".concat("4.17.0","-").concat(e)}),l()]}),userAgent:O("4.17.0").add({segment:"Browser",version:"lite"}),authMode:p.WithinQueryParameters};return T(n(n(n({},o),r),{},{methods:{search:I,searchForFacetValues:A,multipleQueries:I,multipleSearchForFacetValues:A,customRequest:P,initIndex:function(e){return function(t){return j(e)(t,{methods:{search:D,searchForFacetValues:M,findAnswers:L}})}}}}))}return B.version="4.17.0",B}()},28:()=>{!function(e){var t=1,n=window.setInterval((function(){r(t),++t>2&&(t=0)}),11e3);function r(t){return e(".carousel-always-visible").length?(i(),o(),void s()):e(".carousel-always-visible-cli-only").length?(a(0),void l(0)):(e(".carousel-item").css("opacity",0).css("pointer-events","none").eq(t).css("opacity",1).css("pointer-events","auto"),e(".carousel-item-description").css("opacity",0).css("pointer-events","none").eq(t).css("opacity",1).css("pointer-events","auto"),e(".carousel-item-label").removeClass("border-purple-700").removeClass("text-purple-700").removeClass("hover:text-purple-700").addClass("text-purple-200").addClass("hover:text-purple-300").eq(t).addClass("border-purple-700").addClass("text-purple-700").addClass("hover:text-purple-700"),void(0===t?i():1===t?o():2===t&&s()))}function i(){e(".menu").css("opacity",0),e(".menu").find(".row").removeClass("bg-gray-600").eq(0).addClass("bg-gray-600"),a(0,(function(){e(".menu").each((function(t,n){var r=parseInt(e(n).attr("data-delay"))||0;0===t&&setTimeout((function(){e(n).find(".row").removeClass("bg-gray-600").eq(1).addClass("bg-gray-600")}),600),setTimeout((function(){e(n).css("opacity",1)}),r)}))}))}function o(){a(1),l(1)}function s(){var t=e("#carousel-console .tab");t.css("opacity",0).eq(0).css("opacity",1),setTimeout((function(){t.eq(0).css("opacity",0),t.eq(1).css("opacity",1)}),5e3)}function a(t,n){var r=e(".carousel-item").eq(t).find(".line.typed span"),i=500;r.each((function(t,n){var r=n.textContent.split("");e(n).addClass("typing").html(r.map((e=>""+e+"")).join("").toString())}));var o=e(""),s=e(".carousel-item").eq(t).find(".char");s.map((function(t,r){i+=Math.ceil(75*Math.random()),setTimeout((function(){"\n"===r.textContent?e(r).css("opacity",1).prepend(o):e(r).css("opacity",1).append(o),t===s.length-1&&setTimeout((function(){o.remove(),"function"==typeof n&&n()}),600)}),i),"\n"!==r.textContent&&";"!==r.textContent||(i+=1e3)}))}function l(t){var n=e(".carousel-item").eq(t).find(".line.full");n.css("opacity",0);var r=2e3;n.each((function(t,n){var i=parseInt(e(n).attr("data-delay"))||75;r+=Math.ceil(Math.random()*i),setTimeout((function(){e(n).css("opacity",1)}),r)}))}r(0),e(".carousel-item-label").click((function(){clearInterval(n),r(e(".carousel-item-label").index(this))}))}(jQuery)},506:()=>{!function(e){var t=1,n=window.setInterval((function(){r(t),++t>3&&(t=0)}),5e3);function r(t){e(".code-tabbed-content").scrollTop(0).scrollLeft(0),e(".code-tabbed-tab").removeClass("active").eq(t).addClass("active"),e(".code-tabbed-content-item").removeClass("active").eq(t).addClass("active")}r(0),e(".code-tabbed-tab").click((function(){clearInterval(n),r(e(".code-tabbed-tab").index(this))}))}(jQuery)},756:()=>{$((function(){$("#upcoming-talks-select").on("click",(function(){$("#upcoming-talks").removeClass("hidden"),$("#past-talks").addClass("hidden"),$("#upcoming-talks-select").addClass("is-selected"),$("#past-talks-select").removeClass("is-selected")})),$("#past-talks-select").on("click",(function(){$("#upcoming-talks").addClass("hidden"),$("#past-talks").removeClass("hidden"),$("#upcoming-talks-select").removeClass("is-selected"),$("#past-talks-select").addClass("is-selected")}))}))},161:()=>{$((function(){var e=window.analytics&&window.analytics.track&&"function"==typeof window.analytics.track;function t(t,n,r){var i={answer:t,comments:n||"",email:r||"",url:window.location.pathname,category:"Documentation Feedback",label:t};e?window.analytics.track("docs-feedback",i):console.log("Skipped call to analytics.track:","docs-feedback",i)}$("#docsFeedbackContainer").removeClass("hidden"),["#docsFeedbackYes","#docsFeedbackNo"].forEach((function(e){var n="#docsFeedbackYes"===e?"Yes":"No";$(e).on("click",(function(){$("#feedbackLongForm").removeClass("hidden"),function(e){var n=$("#feedbackLongForm"),r=n.parent();$("body").append(n),$("#docsSubmitFeedback").on("click",(function(){var n=$("#feedbackAdditionalComments").val().toString().trim(),r=$("#feedbackEmail").val().toString().trim();t(e,n,r),$("#feedbackAdditionalComments").val(""),$("#feedbackEmail").val(""),$("#feedbackButtons").addClass("hidden"),$("#feedbackLongForm").addClass("hidden"),$("#feedbackThankYou").removeClass("hidden")})),$("#docsCloseFeedbackLongForm").on("click",(function(){t(e,"",""),$("#feedbackAdditionalComments").val(""),$("#feedbackEmail").val(""),$("#feedbackButtons").addClass("hidden"),$("#feedbackLongForm").addClass("hidden"),$("#feedbackThankYou").removeClass("hidden"),r.append(n)})),$(window).on("beforeunload",(function(){$("#feedbackLongForm").hasClass("hidden")||t(e,"","")}))}(n)}))}))}))},40:()=>{let e=$(".docs-main-nav-toggle-wrapper"),t=$(".docs-nav-toggle-icon");function n(){$(this).width()<=1280&&(e.hasClass("docs-nav-show")?(t.removeClass("open-docs-main-nav"),t.addClass("close-docs-main-nav")):e.hasClass("docs-nav-hide")&&(t.removeClass("close-docs-main-nav"),t.addClass("open-docs-main-nav")));let n=$(".main-nav"),r=$(".docs-nav-toggle"),i=$(".docs-type-nav-search");$(".section-docs .docs-list-main").length>0&&($(".section-docs .docs-list-main").get(0).getBoundingClientRect().y<=0?(n.css("margin-top",i.height()-Math.max($(".top-nav-container").get(0).getBoundingClientRect().y,0)),r.css("top",94+i.height()-Math.max($(".top-nav-container").get(0).getBoundingClientRect().y,0))):n.css("margin-top",0)),$(this).width()>1280?(e.removeClass("docs-nav-show"),e.removeClass("docs-nav-hide")):e.hasClass("docs-nav-hide")||e.hasClass("docs-nav-show")||e.addClass("docs-nav-hide")}function r(){let t=$(".docs-toc-desktop");window.innerWidth>1024&&window.innerWidth<=1280?e.hasClass("docs-nav-show")?t.hide():t.show():window.innerWidth>1280?t.show():t.hide()}function i(){$(".docs-main-nav").css("height",$(".docs-footer").height()+window.innerHeight)}$(window).on("resize",(function(){n(),r(),i()})).trigger("resize"),$(window).on("scroll",(function(){n()})).trigger("resize"),$(window).on("load",(function(){n(),r(),i()})),function(n,i){i(".docs-nav-toggle").on("click",(function(){e.toggleClass("docs-nav-show"),e.toggleClass("docs-nav-hide"),t.toggleClass("close-docs-main-nav"),t.toggleClass("open-docs-main-nav"),r()}));let o=i("#accordion-checkbox-package-card"),s=i("#accordion-package-card");o.on("change",(function(){o.is(":checked")?s.css("background","#fff"):s.css("background","#f9f9f9")}));let a=i("#collapse-content-button"),l=i("#expand-content-button");function c(){i(".docs-main-content").addClass("docs-content-width-expanded"),window.location.pathname.startsWith("/registry")&&i(".docs-main-content").addClass("expand-registry"),a.removeClass("hide"),l.addClass("hide"),window.localStorage.setItem("content-width-state","expanded")}function u(){i(".docs-main-content").removeClass("docs-content-width-expanded"),a.addClass("hide"),l.removeClass("hide"),window.localStorage.setItem("content-width-state","collapsed")}l.on("click",c),a.on("click",u),"expanded"===window.localStorage.getItem("content-width-state")?c():u()}(document,jQuery)},21:()=>{$((function(){function e(e,t){var n=e.map((function(e){return".highlight .chroma .language-"+e})).join(", ");$(n).each((function(){var e=$(this);e.html(e.html().replace(t,'$1'))}))}e(["bash","sh","shell","zsh"],/([ |\t]*\$ )/gim),e(["bat","batch","batchfile","powershell","posh","pwsh"],/([ |\t]*><\/span> )/gim)}))},490:()=>{const e=(e,t)=>{const n="amazon",r="google cloud",i="google",o=$(".all-packages").find(".package"),s=void 0===e.find((e=>"type"===e.group)),a=void 0===e.find((e=>"category"===e.group));e.length>0||t?($(o).addClass("hidden"),$(o).each(((o,l)=>{const c=$(l).find("[data-category]"),u=c.attr("data-type"),d=c.attr("data-category"),p="native-provider"===u,f=!!e.find((e=>"type"===e.group&&e.value===u))||e.find((e=>"type"===e.group&&"provider"===e.value))&&p,h=!!e.find((e=>"category"===e.group&&e.value===d)),m=c.attr("data-title").toLowerCase(),v=null==t?void 0:t.trim().toLowerCase();let g;g=v===n||"aws"===v?m.includes(n)||m.includes("aws"):"gcp"===v||v===r||v===i?m.includes("gcp")||m.includes(r)||m.includes(i):m.includes(v),!f&&!s||!h&&!a||t&&!g||$(l).removeClass("hidden")}))):$(o).removeClass("hidden")};$(".section-registry").on("filterSelect",(t=>{const n=t.target,r=t.detail,i=$("pulumi-registry-list-search").get(0),o=$(i).find(".registry-filter-input").val();e(r,o);const s=$("ul.active-tags");s.empty(),r.forEach((e=>{const t=$($("#active-tag-template").html());t.appendTo(s),t.attr("data-filter-group",e.group).attr("data-filter-value",e.value),t.find("span").text(e.label),t.find("button").on("click",(()=>n.deselect(e)))})),$(".packages, .active-tags").attr("data-selected-types",r.filter((e=>"type"===e.group)).map((e=>e.value)).join(",")).attr("data-selected-categories",r.filter((e=>"category"===e.group)).map((e=>e.value)).join(","));const a=$(".all-packages .package:not(.hidden)").length;$(".all-count").text(a),$("pulumi-filter-select-option-group").each(((e,t)=>t.close()))})),$(".section-registry .no-results .reset").on("click",(t=>{t.stopPropagation();$("pulumi-registry-list-search").get(0).reset();$("pulumi-filter-select").get(0).reset(),e([],"");const n=$(".all-packages .package:not(.hidden)").length;$(".all-count").text(n)})),$(".section-registry").on("packageSearch",(t=>{const n=t.detail,r=[],i=$("ul.active-tags").find("li");i.length>0&&i.each(((e,t)=>{const n=$(t),i=n.attr("data-filter-group"),o=n.attr("data-filter-value"),s=n.attr("data-filter-label");r.push({group:i,value:o,label:s})})),e(r,n);const o=$(".all-packages .package:not(.hidden)").length;$(".all-count").text(o)})),document.addEventListener("DOMContentLoaded",(function(){const e=$(".logo-nav-button"),t=$(".logo-nav-bg-mask"),n=$("#logo-nav-menu");function r(){n.toggleClass("hidden");const r=n.is(":visible");e.attr("aria-expanded",`${r}`),$(".logo-nav-button .mobile-menu-toggle-icon").toggleClass("hidden"),t.toggleClass("hidden")}e.on("click",r),t.on("click",r),$(document).on("click",(function(t){0===$(t.target).closest(e).length&&0===$(t.target).closest(n).length&&n.is(":visible")&&r()})),$(document).on("scroll",(function(){window.scrollY>53&&n.is(":visible")&&r()}))}))},245:()=>{$(document).on("rendered",(function(){$("#billing-period").each((function(e,t){t.addEventListener("change",(function(e){e&&e.target&&e.target.checked?($(".billing-price-monthly").each((function(e,t){$(t).hide()})),$(".billing-price-annually").each((function(e,t){$(t).show()}))):($(".billing-price-monthly").each((function(e,t){$(t).show()})),$(".billing-price-annually").each((function(e,t){$(t).hide()})))}))}))}))},366:()=>{$((function(){$("#pricingStartTrial").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#pricingStartTrialBottomCTA").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#businessCriticalStartTrialButton").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#enterpriseStartTrialButton").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#teamStartTrialButton").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#closePricingTrialOptionsDialog").on("click",(function(){$("#pricingTrialOptionsDialog").addClass("hidden")})),$("#startServiceTrial").on("click",(function(){$("#pricingTrialOptionsDialog").addClass("hidden")})),$("#startSelfHostedTrial").on("click",(function(){$("#pricingTrialOptionsDialog").addClass("hidden")}))}))},744:()=>{$((function(){$("#iac-pricing-select").on("click",(function(){$(".esc-price").addClass("hidden"),$(".iac-price").removeClass("hidden"),$("#esc-pricing-select").removeClass("border-blue-600 bg-violet-100"),$("#esc-pricing-select").addClass("border-gray-300"),$("#esc-pricing-select-text").removeClass("rainbow-text"),$("#iac-pricing-select").addClass("border-blue-600 bg-violet-100"),$("#iac-pricing-select-text").addClass("rainbow-text")})),$("#esc-pricing-select").on("click",(function(){$(".iac-price").addClass("hidden"),$(".esc-price").removeClass("hidden"),$("#iac-pricing-select").removeClass("border-blue-600 bg-violet-100"),$("#iac-pricing-select").addClass("border-gray-300"),$("#iac-pricing-select-text").removeClass("rainbow-text"),$("#esc-pricing-select").addClass("border-blue-600 bg-violet-100"),$("#esc-pricing-select-text").addClass("rainbow-text")}))}))},734:()=>{$((function(){const e=["iac-select","esc-select","insights-select"],t=["crossguard-select","deployments-select","copilot-select","management-select"];e.forEach((t=>{$(`#${t}`).on("click",(function(){e.forEach((e=>{e!==t&&($(`#${e}-content`).addClass("hidden"),$(`#${e}`).removeClass("border-blue-600"),$(`#${e}-text`).removeClass("rainbow-text"))})),$(`#${t}`).addClass("border-blue-600"),$(`#${t}-text`).addClass("rainbow-text"),$(`#${t}-content`).removeClass("hidden")}))})),t.forEach((e=>{$(`#${e}`).on("click",(function(){t.forEach((t=>{t!==e&&($(`#${t}-content`).addClass("hidden"),$(`#${t}`).removeClass("border-blue-600"),$(`#${t}-text`).removeClass("rainbow-text"))})),$(`#${e}`).addClass("border-blue-600"),$(`#${e}-text`).addClass("rainbow-text"),$(`#${e}-content`).removeClass("hidden")}))}))}))},140:()=>{const e=document.location.pathname;if("/docs/intro/concepts/programming-model/"===e||"/docs/reference/programming-model/"===e){var t={"#additionalsecretoutputs":"/docs/concepts/resources/#additionalsecretoutputs","#aliases":"/docs/concepts/resources/#aliases","#all":"/docs/concepts/inputs-outputs/#all","#apply":"/docs/concepts/inputs-outputs/#apply","#assets-and-archives":"/docs/concepts/assets-archives/","#autonaming":"/docs/concepts/resources/#autonaming","#components":"/docs/concepts/resources/#components","#config":"/docs/concepts/config","#custom-resources":"/docs/concepts/resources/#custom-resources","#declaring-infrastructure":"/docs/concepts/#overview","#deletebeforereplace":"/docs/concepts/resources/#deletebeforereplace","#dependson":"/docs/concepts/resources/#dependson","#dynamicproviders":"/docs/concepts/resources/#dynamicproviders","#explicit-provider-configuration":"/docs/concepts/resources/#explicit-provider-configuration","#import":"/docs/concepts/resources/#import","#introduction":"/docs/intro/concepts","#lifting":"/docs/concepts/inputs-outputs/#lifting","#names":"/docs/concepts/resources/#names","#outputs":"/docs/concepts/inputs-outputs","#outputs-and-strings":"/docs/concepts/inputs-outputs/#outputs-and-strings","#program-structure":"/docs/concepts/#overview","#programs":"/docs/concepts/#overview","#providers":"/docs/concepts/resources/#providers","#reading-configuration-values":"/docs/concepts/config/#code","#resource-get":"/docs/concepts/resources/#resource-get","#resource-providers":"/docs/concepts/resources/#providers","#resourceoptions":"/docs/concepts/resources/#options","#resources":"/docs/concepts/resources","#runtime":"/docs/concepts/","#runtime-functions":"/docs/concepts/","#secrets":"/docs/concepts/secrets","#stack-outputs":"/docs/concepts/stack/#outputs","#stack-references":"/docs/concepts/stack/#stack-references","#transformations":"/docs/concepts/resources/#transformations"}[location.hash];t&&(location.href=t)}},498:()=>{const e=e=>{const t=$(".event-list").find(".event-card"),n=$(".event-list").find(".month-label");$(n).css("display","none");const r=$(".pulumi-event-list-container").find(".no-results");$(r).removeClass("hidden"),e.length>0?$(t).each(((t,n)=>{const i=$(n).attr("data-filters").split(" "),o=$(n).attr("data-month-label");if(i.includes(location.hash.slice(1))){let t=0;i.forEach((n=>{e.includes(n)&&t++})),t>0?($(r).addClass("hidden"),$(n).css("display","block"),$(`.month-label.${o}`).css("display","block")):$(n).css("display","none")}else $(n).css("display","none")})):$(t).each(((e,t)=>{const n=$(t).attr("data-filters").split(" "),i=$(t).attr("data-month-label");if(n.includes(location.hash.slice(1)))$(r).addClass("hidden"),$(t).css("display","block"),$(`.month-label.${i}`).css("display","block");else{$(t).css("display","none");$(t).attr("data-month-label")}}))};$(".pulumi-event-list-container").on("filterSelect",(t=>{const n=t.detail,r=[];n.forEach((e=>{r.push(e.value)})),e(r)})),$(window).on("hashchange",(function(){const t=$("pulumi-filter-select-option").toArray();let n=[];t.forEach((e=>{const t=e.shadowRoot;$(t).find(".selected").length>0&&n.push(e.value)})),e(n)})),$((function(){const e=document.getElementById("event-list-filter-nav");if(e){$("#slideForward").on("click",(function(){e.scrollLeft+=180})),$("#slideBackwards").on("click",(function(){e.scrollLeft-=180}));const t={root:document.getElementById("event-list-filter-nav"),threshold:1},n=new IntersectionObserver(((e,t)=>{e.forEach((e=>{e.isIntersecting?$("#slideForward").addClass("hidden"):$("#slideForward").removeClass("hidden")}))}),t),r=document.querySelector("#event-list-filter-nav li:last-of-type");n.observe(r);const i=new IntersectionObserver(((e,t)=>{e.forEach((e=>{e.isIntersecting?$("#slideBackwards").addClass("hidden"):$("#slideBackwards").removeClass("hidden")}))}),t),o=document.querySelector("#event-list-filter-nav li:first-of-type");i.observe(o)}}))},399:()=>{$((function(){const e={"/docs/get-started/":"get-started-with-pulumi-toc-header","/docs/":"intro-toc-header","/docs/using-pulumi/":"user-guides-toc-header","/docs/concepts/":"reference-toc-header","/docs/support/":"support-toc-header","/docs/iac/adopting-pulumi/converters/":"converters-toc-header"};Object.keys(e).map((t=>{const n=document.getElementById(e[t]);if(n&&(n.classList.remove("active"),document.location.pathname===t)){const e=document.getElementById("left-nav");n.classList.add("active"),e.scrollTop=n.offsetTop-100}}))}))},931:()=>{$(document).ready((function(){if(window&&window.analytics&&"function"==typeof window.analytics.track){const n=$("a"),r=(new Date).getTime();function e(e,t){const n=$(e);if(!n)return;const i=n.attr("data-track"),o=(n.attr("href")||"").replace(/https?:\/\//g,""),s=i||o.replace(/^#/,"anchor-").replace(/^\//,"").split("/").join("-"),a=("/"===window.location.pathname?"home":window.location.pathname).split("/").filter((function(e){return""!==e})).map((function(e){return e})).concat(s,t).join("-"),l={element_id:a,destinationPath:n.attr("href"),url:window.location.pathname,category:"User Interaction",label:a,value:void 0};n.on("click",(function(e){l.value=((new Date).getTime()-r)/1e3,window.analytics.track("link-click",l)}))}for(var t=0;t{"use strict";n.r(t),n.d(t,{scopeCss:()=>j});const r="-shadowcsshost",i="-shadowcssslotted",o="-shadowcsscontext",s=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",a=new RegExp("("+r+s,"gim"),l=new RegExp("("+o+s,"gim"),c=new RegExp("("+i+s,"gim"),u=r+"-no-combinator",d=/-shadowcsshost-no-combinator([^\s]*)/,p=[/::shadow/g,/::content/g],f=/-shadowcsshost/gim,h=/:host/gim,m=/::slotted/gim,v=/:host-context/gim,g=/\/\*\s*[\s\S]*?\*\//g,y=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,b=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,w=/([{}])/g,_="%BLOCK%",S=(e,t)=>{const n=x(e);let r=0;return n.escapedString.replace(b,((...e)=>{const i=e[2];let o="",s=e[4],a="";s&&s.startsWith("{"+_)&&(o=n.blocks[r++],s=s.substring(_.length+1),a="{");const l=t({selector:i,content:o});return`${e[1]}${l.selector}${e[3]}${a}${l.content}${s}`}))},x=e=>{const t=e.split(w),n=[],r=[];let i=0,o=[];for(let e=0;e0?o.push(s):(o.length>0&&(r.push(o.join("")),n.push(_),o=[]),n.push(s)),"{"===s&&i++}o.length>0&&(r.push(o.join("")),n.push(_));return{escapedString:n.join(""),blocks:r}},O=(e,t,n)=>e.replace(t,((...e)=>{if(e[2]){const t=e[2].split(","),r=[];for(let i=0;ie+t.replace(r,"")+n,k=(e,t,n)=>t.indexOf(r)>-1?$(e,t,n):e+t+n+", "+t+" "+e+n,C=(e,t)=>{const n=(e=>(e=e.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+e+")([>\\s~+[.,{:][\\s\\S]*)?$","m")))(t);return!n.test(e)},E=(e,t,n)=>{const r="."+(t=t.replace(/\[is=([^\]]*)\]/g,((e,...t)=>t[0]))),i=e=>{let i=e.trim();if(!i)return"";if(e.indexOf(u)>-1)i=((e,t,n)=>{if(f.lastIndex=0,f.test(e)){const t=`.${n}`;return e.replace(d,((e,n)=>n.replace(/([^:]*)(:*)(.*)/,((e,n,r,i)=>n+t+r+i)))).replace(f,t+" ")}return t+" "+e})(e,t,n);else{const t=e.replace(f,"");if(t.length>0){const e=t.match(/([^:]*)(:*)(.*)/);e&&(i=e[1]+r+e[2]+e[3])}}return i},o=(e=>{const t=[];let n,r=0;return n=(e=e.replace(/(\[[^\]]*\])/g,((e,n)=>{const i=`__ph-${r}__`;return t.push(n),r++,i}))).replace(/(:nth-[-\w]+)(\([^)]+\))/g,((e,n,i)=>{const o=`__ph-${r}__`;return t.push(i),r++,n+o})),{content:n,placeholders:t}})(e);let s,a="",l=0;const c=/( |>|\+|~(?!=))\s*/g;let p=!((e=o.content).indexOf(u)>-1);for(;null!==(s=c.exec(e));){const t=s[1],n=e.slice(l,s.index).trim();p=p||n.indexOf(u)>-1;a+=`${p?i(n):n} ${t} `,l=c.lastIndex}const h=e.substring(l);return p=p||h.indexOf(u)>-1,a+=p?i(h):h,m=o.placeholders,a.replace(/__ph-(\d+)__/g,((e,t)=>m[+t]));var m},T=(e,t,n,r,i)=>S(e,(e=>{let i=e.selector,o=e.content;"@"!==e.selector[0]?i=((e,t,n,r)=>e.split(",").map((e=>r&&e.indexOf("."+r)>-1?e.trim():C(e,t)?E(e,t,n).trim():e.trim())).join(", "))(e.selector,t,n,r):(e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document"))&&(o=T(e.content,t,n,r));return{selector:i.replace(/\s{2,}/g," ").trim(),content:o}})),P=(e,t,n,s,d)=>{const f=((e,t)=>{const n="."+t+" > ",r=[];return e=e.replace(c,((...e)=>{if(e[2]){const t=e[2].trim(),i=e[3],o=n+t+i;let s="";for(let t=e[4]-1;t>=0;t--){const n=e[5][t];if("}"===n||","===n)break;s=n+s}const a=s+o,l=`${s.trimRight()}${o.trim()}`;if(a.trim()!==l.trim()){const e=`${l}, ${a}`;r.push({orgSelector:a,updatedSelector:e})}return o}return u+e[3]})),{selectors:r,cssText:e}})(e=(e=>O(e,l,k))(e=(e=>O(e,a,$))(e=e.replace(v,o).replace(h,r).replace(m,i))),s);return e=(e=>p.reduce(((e,t)=>e.replace(t," ")),e))(e=f.cssText),t&&(e=T(e,t,n,s)),{cssText:(e=(e=e.replace(/-shadowcsshost-no-combinator/g,`.${n}`)).replace(/>\s*\*\s+([^{, ]+)/gm," $1 ")).trim(),slottedSelectors:f.selectors}},j=(e,t,n)=>{const r=t+"-h",i=t+"-s",o=e.match(y)||[];e=(e=>e.replace(g,""))(e);const s=[];if(n){const t=e=>{const t=`/*!@___${s.length}___*/`,n=`/*!@${e.selector}*/`;return s.push({placeholder:t,comment:n}),e.selector=t+e.selector,e};e=S(e,(e=>"@"!==e.selector[0]?t(e):e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document")?(e.content=S(e.content,t),e):e))}const a=P(e,t,r,i);return e=[a.cssText,...o].join("\n"),n&&s.forEach((({placeholder:t,comment:n})=>{e=e.replace(t,n)})),a.slottedSelectors.forEach((t=>{e=e.replace(t.orgSelector,t.updatedSelector)})),e}},263:e=>{function t(e){return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}t.keys=()=>[],t.resolve=t,t.id=263,e.exports=t}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";const e=!1,t=!0,r=!1,i=!0,o=!0,s=!0,a=!0,l=!0,c=!0,u=!0,d=!0,p=!0,f=!0,h=!0,m=!0,v=!1,g=!0,y=!0,b=!0,w=!0,_=!0,S=!0,x=!0,O=!0,k=!0,C=!0,E=!0,T=!0,P=!0,j=!0,I=!0,A=!0,L=!0,D=!0,M=!0,N=!0,R=!0,F=!0,B=!0,q=!0,z=!0,H=!0,U=!0,V=!0,W=!1,G=!1,K=!1,J=!1,Y=!1,X=!1,Q=!1,Z=!1,ee=!1,te=!0,ne=!1,re=!0,ie=!1,oe=!0,se=!0,ae=!0,le=!1,ce=!0,ue=!0,de=!1,pe=!1,fe=!1,he=!0,me="app";let ve,ge,ye,be,we=0,_e=!1,Se=!1,xe=!1,Oe=!1,$e=null,ke=0,Ce=!1;const Ee="undefined"!=typeof window?window:{},Te=(le&&Ee.CSS,Ee.document||{head:{}}),Pe=(Ee.HTMLElement,{$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)}),je=!ie||!k||(()=>(Te.head.attachShadow+"").indexOf("[native")>-1)(),Ie=(()=>{let e=!1;try{Te.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(e){}return e})(),Ae=!!ce&&(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),Le=(e,t,n,r)=>{p&&n&&(v&&(n=r?n.filter((([e])=>32&e)):n.filter((([e])=>!(32&e)))),n.map((([n,r,i])=>{const o=g?Me(e,n):e,s=De(t,i),a=Ne(n);Pe.ael(o,r,s,a),(t.$rmListeners$=t.$rmListeners$||[]).push((()=>Pe.rel(o,r,s,a)))})))},De=(e,t)=>n=>{try{Z?256&e.$flags$?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n]):e.$hostElement$[t](n)}catch(e){en(e)}},Me=(e,t)=>h&&4&t?Te:f&&8&t?Ee:m&&16&t?Te.body:v&&32&t?e.parentElement:e,Ne=e=>Ie?{passive:0!=(1&e),capture:0!=(2&e)}:0!=(2&e),Re="s-id",Fe="sty-id",Be="c-id",qe="http://www.w3.org/1999/xlink",ze=(e,t="")=>{if(ee&&performance.mark){const n=`st:${e}:${t}:${we++}`;return performance.mark(n),()=>performance.measure(`[Stencil] ${e}() <${t}>`,n)}return()=>{}},He=new WeakMap,Ue=(e,t,n)=>{let r=an.get(e);Ae&&n?(r=r||new CSSStyleSheet,r.replace(t)):r=t,an.set(e,r)},Ve=(e,t,n,r)=>{let i=Ge(t,n),o=an.get(i);if(!he)return i;if(e=11===e.nodeType?e:Te,o)if("string"==typeof o){e=e.head||e;let n,s=He.get(e);if(s||He.set(e,s=new Set),!s.has(i)){if(X&&e.host&&(n=e.querySelector(`[${Fe}="${i}"]`)))n.innerHTML=o;else{if(le&&Pe.$cssShim$){n=Pe.$cssShim$.createHostStyle(r,i,o,!!(10&t.$flags$));const e=n["s-sc"];e&&(i=e,s=null)}else n=Te.createElement("style"),n.innerHTML=o;(Y||W)&&n.setAttribute(Fe,i),e.insertBefore(n,e.querySelector("link"))}s&&s.add(i)}}else ce&&!e.adoptedStyleSheets.includes(o)&&(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return i},We=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,r=t.$flags$,i=ze("attachStyles",t.$tagName$),o=Ve(k&&je&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$,n);(k||O)&&E&&10&r&&(n["s-sc"]=o,n.classList.add(o+"-h"),O&&2&r&&n.classList.add(o+"-s")),i()},Ge=(e,t)=>"sc-"+(w&&t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$),Ke=e=>ln.map((t=>t(e))).find((e=>!!e)),Je={},Ye=e=>"object"===(e=typeof e)||"function"===e,Xe=(e,t,...n)=>{let r=null,i=null,o=null,s=!1,a=!1,l=[];const c=t=>{for(let n=0;ne[t])).join(" "))}if(K&&l.some(et)&&nn("The must be the single root component. Make sure:\n- You are NOT using hostData() and in the same component.\n- is used once, and it's the single root component of the render() function."),M&&"function"==typeof e)return e(null===t?{}:t,l,tt);const u=Qe(e,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),N&&(u.$key$=i),te&&(u.$name$=o),u},Qe=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return A&&(n.$attrs$=null),N&&(n.$key$=null),te&&(n.$name$=null),n},Ze={},et=e=>e&&e.$tag$===Ze,tt={forEach:(e,t)=>e.map(nt).forEach(t),map:(e,t)=>e.map(nt).map(t).map(rt)},nt=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),rt=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),Xe(e.vtag,t,...e.vchildren||[])}const t=Qe(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},it=e=>{const t=Object.keys(e),n=t.indexOf("type"),r=t.indexOf("min"),i=t.indexOf("max"),o=t.indexOf("min"),s=t.indexOf("value");-1!==s&&(s should be set after "min", "max", "type" and "step"')},ot=(e,t,n,r,i,o)=>{if(n!==r){let s=Zt(e,t),a=t.toLowerCase();if(D&&"class"===t){const t=e.classList,i=at(n),o=at(r);t.remove(...i.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!i.includes(e))))}else if(z&&"style"===t){if(I)for(const t in n)r&&null!=r[t]||(!Y&&t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in r)n&&r[t]===n[t]||(!Y&&t.includes("-")?e.style.setProperty(t,r[t]):e.style[t]=r[t])}else if(N&&"key"===t);else if(F&&"ref"===t)r&&r(e);else if(!R||(Z?s:e.__lookupSetter__(t))||"o"!==t[0]||"n"!==t[1]){if(B){const l=Ye(r);if((s||l&&null!==r)&&!i)try{if(e.tagName.includes("-"))e[t]=r;else{let i=null==r?"":r;"list"===t?s=!1:null!=n&&e[t]==i||(e[t]=i)}}catch(e){}let c=!1;L&&a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),null==r||!1===r?!1===r&&""!==e.getAttribute(t)||(L&&c?e.removeAttributeNS(qe,t):e.removeAttribute(t)):(!s||4&o||i)&&!l&&(r=!0===r?"":r,L&&c?e.setAttributeNS(qe,t,r):e.setAttribute(t,r))}}else t="-"===t[2]?t.slice(3):Zt(Ee,a)?a.slice(2):a[2]+t.slice(3),n&&Pe.rel(e,t,n,!1),r&&Pe.ael(e,t,r,!1)}},st=/\s/,at=e=>e?e.split(st):[],lt=(e,t,n,r)=>{const i=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,o=e&&e.$attrs$||Je,s=t.$attrs$||Je;if(I)for(r in o)r in s||ot(i,r,o[r],void 0,n,t.$flags$);for(r in s)ot(i,r,o[r],s[r],n,t.$flags$)},ct=(e,t,n,r)=>{let i,o,s,a=t.$children$[n],l=0;if(te&&!_e&&(xe=!0,"slot"===a.$tag$&&(ve&&r.classList.add(ve+"-s"),a.$flags$|=a.$children$?2:1)),K&&a.$elm$&&nn(`The JSX ${null!==a.$text$?`"${a.$text$}" text`:`"${a.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`),H&&null!==a.$text$)i=a.$elm$=Te.createTextNode(a.$text$);else if(te&&1&a.$flags$)i=a.$elm$=G||Y?xt(a):Te.createTextNode("");else{if(j&&!Oe&&(Oe="svg"===a.$tag$),i=a.$elm$=j?Te.createElementNS(Oe?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",te&&2&a.$flags$?"slot-fb":a.$tag$):Te.createElement(te&&2&a.$flags$?"slot-fb":a.$tag$),j&&Oe&&"foreignObject"===a.$tag$&&(Oe=!1),A&<(null,a,Oe),(k||O)&&(e=>null!=e)(ve)&&i["s-si"]!==ve&&i.classList.add(i["s-si"]=ve),a.$children$)for(l=0;l{Pe.$flags$|=1;const n=e.childNodes;for(let e=n.length-1;e>=0;e--){const r=n[e];r["s-hn"]!==ye&&r["s-ol"]&&(mt(r).insertBefore(r,ht(r)),r["s-ol"].remove(),r["s-ol"]=void 0,xe=!0),t&&ut(r,t)}Pe.$flags$&=-2},dt=(e,t,n,r,i,o)=>{let s,a=te&&e["s-cr"]&&e["s-cr"].parentNode||e;for(k&&a.shadowRoot&&a.tagName===ye&&(a=a.shadowRoot);i<=o;++i)r[i]&&(s=ct(null,n,i,e),s&&(r[i].$elm$=s,a.insertBefore(s,te?ht(t):t)))},pt=(e,t,n,r,i)=>{for(;t<=n;++t)(r=e[t])&&(i=r.$elm$,_t(r),te&&(Se=!0,i["s-ol"]?i["s-ol"].remove():ut(i,!0)),i.remove())},ft=(e,t)=>e.$tag$===t.$tag$&&(te&&"slot"===e.$tag$?e.$name$===t.$name$:!N||e.$key$===t.$key$),ht=e=>e&&e["s-ol"]||e,mt=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,vt=(e,t)=>{const n=t.$elm$=e.$elm$,r=e.$children$,i=t.$children$,o=t.$tag$,s=t.$text$;let a;H&&null!==s?H&&te&&(a=n["s-cr"])?a.parentNode.textContent=s:H&&e.$text$!==s&&(n.data=s):(j&&(Oe="svg"===o||"foreignObject"!==o&&Oe),(A||x)&&(C&&"slot"===o||lt(e,t,Oe)),I&&null!==r&&null!==i?((e,t,n,r)=>{let i,o,s=0,a=0,l=0,c=0,u=t.length-1,d=t[0],p=t[u],f=r.length-1,h=r[0],m=r[f];for(;s<=u&&a<=f;)if(null==d)d=t[++s];else if(null==p)p=t[--u];else if(null==h)h=r[++a];else if(null==m)m=r[--f];else if(ft(d,h))vt(d,h),d=t[++s],h=r[++a];else if(ft(p,m))vt(p,m),p=t[--u],m=r[--f];else if(ft(d,m))!te||"slot"!==d.$tag$&&"slot"!==m.$tag$||ut(d.$elm$.parentNode,!1),vt(d,m),e.insertBefore(d.$elm$,p.$elm$.nextSibling),d=t[++s],m=r[--f];else if(ft(p,h))!te||"slot"!==d.$tag$&&"slot"!==m.$tag$||ut(p.$elm$.parentNode,!1),vt(p,h),e.insertBefore(p.$elm$,d.$elm$),p=t[--u],h=r[++a];else{if(l=-1,N)for(c=s;c<=u;++c)if(t[c]&&null!==t[c].$key$&&t[c].$key$===h.$key$){l=c;break}N&&l>=0?(o=t[l],o.$tag$!==h.$tag$?i=ct(t&&t[a],n,l,e):(vt(o,h),t[l]=void 0,i=o.$elm$),h=r[++a]):(i=ct(t&&t[a],n,a,e),h=r[++a]),i&&(te?mt(d.$elm$).insertBefore(i,ht(d.$elm$)):d.$elm$.parentNode.insertBefore(i,d.$elm$))}s>u?dt(e,null==r[f+1]?null:r[f+1].$elm$,n,r,a,f):I&&a>f&&pt(t,s,u)})(n,r,t,i):null!==i?(I&&H&&null!==e.$text$&&(n.textContent=""),dt(n,null,t,i,0,i.length-1)):I&&null!==r&&pt(r,0,r.length-1),j&&Oe&&"svg"===o&&(Oe=!1))},gt=e=>{let t,n,r,i,o,s,a=e.childNodes;for(n=0,r=a.length;n{let t,n,r,i,o,s,a=0,l=e.childNodes,c=l.length;for(;a=0;s--)n=r[s],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(wt(n,i)?(o=yt.find((e=>e.$nodeToRelocate$===n)),Se=!0,n["s-sn"]=n["s-sn"]||i,o?o.$slotRefNode$=t:yt.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&yt.map((e=>{wt(e.$nodeToRelocate$,n["s-sn"])&&(o=yt.find((e=>e.$nodeToRelocate$===n)),o&&!e.$slotRefNode$&&(e.$slotRefNode$=o.$slotRefNode$))}))):yt.some((e=>e.$nodeToRelocate$===n))||yt.push({$nodeToRelocate$:n}));1===t.nodeType&&bt(t)}},wt=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,_t=e=>{F&&(e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(_t))},St=(e,t)=>{const n=e.$hostElement$,r=e.$cmpMeta$,i=e.$vnode$||Qe(null,null),o=et(t)?t:Xe(null,null,t);if(ye=n.tagName,K&&Array.isArray(t)&&t.some(et))throw new Error(`The must be the single root component.\nLooks like the render() function of "${ye.toLowerCase()}" is returning an array that contains the .\n\nThe render() function should look like this instead:\n\nrender() {\n // Do not return an array\n return (\n {content}\n );\n}\n `);if(x&&r.$attrsToReflect$&&(o.$attrs$=o.$attrs$||{},r.$attrsToReflect$.map((([e,t])=>o.$attrs$[t]=n[e]))),o.$tag$=null,o.$flags$|=4,e.$vnode$=o,o.$elm$=i.$elm$=k&&n.shadowRoot||n,(O||k)&&(ve=n["s-sc"]),te&&(ge=n["s-cr"],_e=je&&0!=(1&r.$flags$),Se=!1),vt(i,o),te){if(Pe.$flags$|=1,xe){let e,t,n,r,i,s;bt(o.$elm$);let a=0;for(;aTe.createComment(` (host=${ye.toLowerCase()})`),Ot=e=>Te.createComment("org-location for "+(e.localName?`<${e.localName}> (host=${e["s-hn"]})`:`[${e.textContent}]`)),$t=(e,t,n)=>{const r=(e=>Z?Xt(e).$hostElement$:e)(e);return{emit:e=>(K&&!r.isConnected&&rn(`The "${t}" event was emitted, but the dispatcher node is no longer connected to the dom.`),kt(r,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e}))}},kt=(e,t,n)=>{const r=Pe.ce(t,n);return e.dispatchEvent(r),r},Ct=(e,t)=>{pe&&t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.$onRenderResolve$=t)))},Et=(e,t)=>{if(V&&I&&(e.$flags$|=16),pe&&4&e.$flags$)return void(e.$flags$|=512);Ct(e,e.$ancestorComponent$);const n=()=>Tt(e,t);return V?gn(n):n()},Tt=(e,t)=>{const n=e.$hostElement$,r=ze("scheduleUpdate",e.$cmpMeta$.$tagName$),i=Z?e.$lazyInstance$:n;let o;return t?(Z&&p&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map((([e,t])=>Lt(i,e,t))),e.$queuedListeners$=null)),Mt(n,"componentWillLoad"),s&&(o=Lt(i,"componentWillLoad"))):(Mt(n,"componentWillUpdate"),a&&(o=Lt(i,"componentWillUpdate"))),Mt(n,"componentWillRender"),l&&(o=Dt(o,(()=>Lt(i,"componentWillRender")))),r(),Dt(o,(()=>Pt(e,i,t)))},Pt=async(e,t,n)=>{const r=e.$hostElement$,i=ze("update",e.$cmpMeta$.$tagName$),o=r["s-rc"];P&&n&&We(e);const s=ze("render",e.$cmpMeta$.$tagName$);if(K&&(e.$flags$|=1024),Y?await jt(e,t,r):jt(e,t,r),le&&Pe.$cssShim$&&Pe.$cssShim$.updateHost(r),K&&(e.$renderCount$++,e.$flags$&=-1025),Y)try{Rt(r),n&&(1&e.$cmpMeta$.$flags$?r["s-en"]="":2&e.$cmpMeta$.$flags$&&(r["s-en"]="c"))}catch(e){en(e,r)}if(pe&&o&&(o.map((e=>e())),r["s-rc"]=void 0),s(),i(),pe){const t=r["s-p"],n=()=>It(e);0===t.length?n():(Promise.all(t).then(n),e.$flags$|=4,t.length=0)}else It(e)},jt=(t,n,r)=>{const i=!!e,o=!!Z,s=!!V,a=!!I;try{if($e=n,n=(i||n.render)&&n.render(),a&&s&&(t.$flags$&=-17),(a||o)&&(t.$flags$|=2),d||x)if(q||x){if(Y)return Promise.resolve(n).then((e=>St(t,e)));St(t,n)}else r.textContent=n}catch(e){en(e,t.$hostElement$)}return $e=null,null},It=e=>{const n=e.$cmpMeta$.$tagName$,r=e.$hostElement$,s=ze("postUpdate",n),a=Z?e.$lazyInstance$:r,l=e.$ancestorComponent$;o&&(K&&(e.$flags$|=1024),Lt(a,"componentDidRender"),K&&(e.$flags$&=-1025)),Mt(r,"componentDidRender"),64&e.$flags$?(i&&(K&&(e.$flags$|=1024),Lt(a,"componentDidUpdate"),K&&(e.$flags$&=-1025)),Mt(r,"componentDidUpdate"),s()):(e.$flags$|=64,pe&&E&&Nt(r),t&&(K&&(e.$flags$|=2048),Lt(a,"componentDidLoad"),K&&(e.$flags$&=-2049)),Mt(r,"componentDidLoad"),s(),pe&&(e.$onReadyResolve$(r),l||At(n))),W&&r["s-hmr-load"]&&r["s-hmr-load"](),b&&Z&&e.$onInstanceResolve$(r),pe&&(e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&vn((()=>Et(e,!1))),e.$flags$&=-517)},At=e=>{E&&Nt(Te.documentElement),fe&&(Pe.$flags$|=2),vn((()=>kt(Ee,"appload",{detail:{namespace:me}}))),ee&&performance.measure&&performance.measure(`[Stencil] ${me} initial load (by ${e})`,"st:app:start")},Lt=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){en(e)}},Dt=(e,t)=>e&&e.then?e.then(t):t(),Mt=(e,t)=>{Q&&kt(e,"stencil_"+t,{bubbles:!0,composed:!0,detail:{namespace:me}})},Nt=e=>re?e.classList.add("hydrated"):ne?e.setAttribute("hydrated",""):void 0,Rt=e=>{const t=e.children;if(null!=t)for(let e=0,n=t.length;e{let a,l,c,u;if(1===o.nodeType){for(a=o.getAttribute(Be),a&&(l=a.split("."),l[0]!==s&&"0"!==l[0]||(c={$flags$:0,$hostId$:l[0],$nodeId$:l[1],$depth$:l[2],$index$:l[3],$tag$:o.tagName.toLowerCase(),$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},t.push(c),o.removeAttribute(Be),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c,e=c,r&&"0"===c.$depth$&&(r[c.$index$]=c.$elm$))),u=o.childNodes.length-1;u>=0;u--)Ft(e,t,n,r,i,o.childNodes[u],s);if(o.shadowRoot)for(u=o.shadowRoot.childNodes.length-1;u>=0;u--)Ft(e,t,n,r,i,o.shadowRoot.childNodes[u],s)}else if(8===o.nodeType)l=o.nodeValue.split("."),l[1]!==s&&"0"!==l[1]||(a=l[0],c={$flags$:0,$hostId$:l[1],$nodeId$:l[2],$depth$:l[3],$index$:l[4],$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===a?(c.$elm$=o.nextSibling,c.$elm$&&3===c.$elm$.nodeType&&(c.$text$=c.$elm$.textContent,t.push(c),o.remove(),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c,r&&"0"===c.$depth$&&(r[c.$index$]=c.$elm$))):c.$hostId$===s&&("s"===a?(c.$tag$="slot",l[5]?o["s-sn"]=c.$name$=l[5]:o["s-sn"]="",o["s-sr"]=!0,k&&r&&(c.$elm$=Te.createElement(c.$tag$),c.$name$&&c.$elm$.setAttribute("name",c.$name$),o.parentNode.insertBefore(c.$elm$,o),o.remove(),"0"===c.$depth$&&(r[c.$index$]=c.$elm$)),n.push(c),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c):"r"===a&&(k&&r?o.remove():te&&(i["s-cr"]=o,o["s-cn"]=!0))));else if(e&&"style"===e.$tag$){const t=Qe(null,o.textContent);t.$elm$=o,t.$index$="0",e.$children$=[t]}},Bt=(e,t)=>{if(1===e.nodeType){let n=0;for(;n{const i=Xt(e),o=Z?i.$hostElement$:e,s=i.$instanceValues$.get(t),a=i.$flags$,l=Z?i.$lazyInstance$:o;var c,u;if(c=n,u=r.$members$[t][0],n=null==c||Ye(c)?c:oe&&4&u?"false"!==c&&(""===c||!!c):se&&2&u?parseFloat(c):ae&&1&u?String(c):c,!(Z&&8&a&&void 0!==s||n===s)&&(i.$instanceValues$.set(t,n),K&&(1024&i.$flags$?rn(`The state/prop "${t}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,"\nElement",o,"\nNew value",n,"\nOld value",s):2048&i.$flags$&&rn(`The state/prop "${t}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,"\nElement",o,"\nNew value",n,"\nOld value",s)),!Z||l)){if(U&&r.$watchers$&&128&a){const e=r.$watchers$[t];e&&e.map((e=>{try{l[e](n,s,t)}catch(e){en(e,o)}}))}if(I&&2==(18&a)){if(ue&&l.componentShouldUpdate&&!1===l.componentShouldUpdate(n,s,t))return;Et(i,!1)}}},zt=(e,t,n)=>{if(y&&t.$members$){U&&e.watchers&&(t.$watchers$=e.watchers);const r=Object.entries(t.$members$),i=e.prototype;if(r.map((([e,[r]])=>{(S||T)&&(31&r||(!Z||2&n)&&32&r)?Object.defineProperty(i,e,{get(){return t=e,Xt(this).$instanceValues$.get(t);var t},set(i){if(K){const i=Xt(this);0==(1&n)&&0==(8&i.$flags$)&&0!=(31&r)&&0==(1024&r)&&rn(`@Prop() "${e}" on <${t.$tagName$}> is immutable but was modified from within the component.\nMore information: https://stenciljs.com/docs/properties#prop-mutability`)}qt(this,e,i,t)},configurable:!0,enumerable:!0}):Z&&b&&1&n&&64&r&&Object.defineProperty(i,e,{value(...t){const n=Xt(this);return n.$onInstancePromise$.then((()=>n.$lazyInstance$[e](...t)))}})})),_&&(!Z||1&n)){const n=new Map;i.attributeChangedCallback=function(e,t,r){Pe.jmp((()=>{const t=n.get(e);this.hasOwnProperty(t)&&(r=this[t],delete this[t]),this[t]=(null!==r||"boolean"!=typeof this[t])&&r}))},e.observedAttributes=r.filter((([e,t])=>15&t[0])).map((([e,r])=>{const i=r[1]||e;return n.set(i,e),x&&512&r[0]&&t.$attrsToReflect$.push([e,i]),i}))}}return e},Ht=async(e,t,r,i,o)=>{if((Z||Y||P)&&0==(32&t.$flags$)){if(Z||X){if(t.$flags$|=32,(o=sn(r,t,i)).then){const e=(s=`st:load:${r.$tagName$}:${t.$modeName$}`,a=`[Stencil] Load module for <${r.$tagName$}>`,ee&&performance.mark?(0===performance.getEntriesByName(s).length&&performance.mark(s),()=>{0===performance.getEntriesByName(a).length&&performance.measure(a,s)}):()=>{});o=await o,e()}if((K||G)&&!o)throw new Error(`Constructor for "${r.$tagName$}#${t.$modeName$}" was not found`);y&&!o.isProxied&&(U&&(r.$watchers$=o.watchers),zt(o,r,2),o.isProxied=!0);const e=ze("createInstance",r.$tagName$);y&&(t.$flags$|=8);try{new o(t)}catch(e){en(e)}y&&(t.$flags$&=-9),U&&(t.$flags$|=128),e(),Ut(t.$lazyInstance$)}else o=e.constructor,t.$flags$|=32,customElements.whenDefined(r.$tagName$).then((()=>t.$flags$|=128));if(P&&o.style){let i=o.style;w&&"string"!=typeof i&&(i=i[t.$modeName$=Ke(e)],Y&&t.$modeName$&&e.setAttribute("s-mode",t.$modeName$));const s=Ge(r,t.$modeName$);if(!an.has(s)){const e=ze("registerStyles",r.$tagName$);!Y&&k&&ie&&8&r.$flags$&&(i=await Promise.resolve().then(n.bind(n,351)).then((e=>e.scopeCss(i,s,!1)))),Ue(s,i,!!(1&r.$flags$)),e()}}}var s,a;const l=t.$ancestorComponent$,c=()=>Et(t,!0);pe&&l&&l["s-rc"]?l["s-rc"].push(c):c()},Ut=e=>{Z&&c&&Lt(e,"connectedCallback")},Vt=e=>{if(0==(1&Pe.$flags$)){const t=Xt(e),n=t.$cmpMeta$,r=ze("connectedCallback",n.$tagName$);if(v&&Le(e,t,n.$listeners$,!0),1&t.$flags$)Le(e,t,n.$listeners$,!1),Ut(t.$lazyInstance$);else{let r;if(t.$flags$|=1,X&&(r=e.getAttribute(Re),r)){if(k&&je&&1&n.$flags$){const t=w?Ve(e.shadowRoot,n,e.getAttribute("s-mode")):Ve(e.shadowRoot,n);e.classList.remove(t+"-h",t+"-s")}((e,t,n,r)=>{const i=ze("hydrateClient",t),o=e.shadowRoot,s=[],a=k&&o?[]:null,l=r.$vnode$=Qe(t,null);Pe.$orgLocNodes$||Bt(Te.body,Pe.$orgLocNodes$=new Map),e[Re]=n,e.removeAttribute(Re),Ft(l,s,[],a,e,e,n),s.map((e=>{const n=e.$hostId$+"."+e.$nodeId$,r=Pe.$orgLocNodes$.get(n),i=e.$elm$;r&&je&&""===r["s-en"]&&r.parentNode.insertBefore(i,r.nextSibling),o||(i["s-hn"]=t,r&&(i["s-ol"]=r,i["s-ol"]["s-nr"]=i)),Pe.$orgLocNodes$.delete(n)})),k&&o&&a.map((e=>{e&&o.appendChild(e)})),i()})(e,n.$tagName$,r,t)}if(te&&!r&&(Y||(C||k)&&12&n.$flags$)&&Wt(e),pe){let n=e;for(;n=n.parentNode||n.host;)if(X&&1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){Ct(t,t.$ancestorComponent$=n);break}}S&&!Y&&n.$members$&&Object.entries(n.$members$).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),de?vn((()=>Ht(e,t,n))):Ht(e,t,n)}r()}},Wt=e=>{const t=e["s-cr"]=Te.createComment(G?`content-ref (host=${e.localName})`:"");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},Gt=e=>{if(0==(1&Pe.$flags$)){const t=Xt(e),n=Z?t.$lazyInstance$:e;p&&t.$rmListeners$&&(t.$rmListeners$.map((e=>e())),t.$rmListeners$=void 0),le&&Pe.$cssShim$&&Pe.$cssShim$.removeHost(e),Z&&u&&Lt(n,"disconnectedCallback"),r&&Lt(n,"componentDidUnload")}},Kt=(e,t)=>{const n={$flags$:t[0],$tagName$:t[1]};y&&(n.$members$=t[2]),p&&(n.$listeners$=t[3]),U&&(n.$watchers$=e.$watchers$),x&&(n.$attrsToReflect$=[]),k&&!je&&1&n.$flags$&&(n.$flags$|=8);const r=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){Qt(this,n)},connectedCallback(){Vt(this),c&&r&&r.call(this)},disconnectedCallback(){Gt(this),u&&i&&i.call(this)}}),e.is=n.$tagName$,zt(e,n,3)},Jt=e=>{je?e.attachShadow({mode:"open"}):e.shadowRoot=e},Yt=new WeakMap,Xt=e=>Yt.get(e),Qt=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return K&&(n.$renderCount$=0),b&&Z&&(n.$onInstancePromise$=new Promise((e=>n.$onInstanceResolve$=e))),pe&&(n.$onReadyPromise$=new Promise((e=>n.$onReadyResolve$=e)),e["s-p"]=[],e["s-rc"]=[]),Le(e,n,t.$listeners$,!1),Yt.set(e,n)},Zt=(e,t)=>t in e,en=(e,t)=>(be||console.error)(e,t),tn=J?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"],nn=(...e)=>console.error(...tn,...e),rn=(...e)=>console.warn(...tn,...e),on=new Map,sn=(e,t,r)=>{const i=e.$tagName$.replace(/-/g,"_"),o=e.$lazyBundleId$;if(K&&"string"!=typeof o)return void nn(`Trying to lazily load component <${e.$tagName$}> with style mode "${t.$modeName$}", but it does not exist.`);const s=!W&&on.get(o);return s?s[i]:n(263)(`./${o}.entry.js${W&&r?"?s-hmr="+r:""}`).then((e=>(W||on.set(o,e),e[i])),en)},an=new Map,ln=[],cn=[],un=[],dn=[],pn=(e,t)=>n=>{e.push(n),Ce||(Ce=!0,t&&4&Pe.$flags$?vn(mn):Pe.raf(mn))},fn=e=>{for(let t=0;t{let n=0,r=0;for(;n{if(fe&&ke++,fn(cn),fe){const e=2==(6&Pe.$flags$)?performance.now()+14*Math.ceil(.1*ke):1/0;hn(un,e),hn(dn,e),un.length>0&&(dn.push(...un),un.length=0),(Ce=cn.length+un.length+dn.length>0)?Pe.raf(mn):ke=0}else fn(un),(Ce=cn.length>0)&&Pe.raf(mn)},vn=e=>(e=>Promise.resolve(e))().then(e),gn=pn(un,!0);var yn,bn=new Uint8Array(16);function wn(){if(!yn&&!(yn="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return yn(bn)}const _n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Sn(e){return"string"==typeof e&&_n.test(e)}for(var xn=[],On=0;On<256;++On)xn.push((On+256).toString(16).substr(1));function $n(e,t,n){var r=(e=e||{}).random||(e.rng||wn)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(xn[e[t+0]]+xn[e[t+1]]+xn[e[t+2]]+xn[e[t+3]]+"-"+xn[e[t+4]]+xn[e[t+5]]+"-"+xn[e[t+6]]+xn[e[t+7]]+"-"+xn[e[t+8]]+xn[e[t+9]]+"-"+xn[e[t+10]]+xn[e[t+11]]+xn[e[t+12]]+xn[e[t+13]]+xn[e[t+14]]+xn[e[t+15]]).toLowerCase();if(!Sn(n))throw TypeError("Stringified UUID is invalid");return n}(r)}const kn={fetch:globalThis.fetch?globalThis.fetch.bind(globalThis):void 0,SubtleCrypto:globalThis.crypto?globalThis.crypto.subtle:void 0,EventSource:globalThis.EventSource};function Cn(e){let t=2166136261;const n=e.length;for(let r=0;r>>0}function En(e,t,n){return 2===n?Cn(Cn(e+t)+"")%1e4/1e4:1===n?Cn(t+e)%1e3/1e3:null}function Tn(e,t){return e>=t[0]&&e{r.push([e.searchParams.get(n)||"",t,!1])})),!r.some((e=>!function(e,t,n){try{let r=t.replace(/[*.+?^${}()|[\]\\]/g,"\\$&").replace(/_____/g,".*");return n&&(r="\\/?"+r.replace(/(^\/|\/$)/g,"")+"\\/?"),new RegExp("^"+r+"$","i").test(e)}catch(e){return!1}}(e[0],e[1],e[2])))}catch(e){return!1}}function An(e,t,n){try{const r=new URL(e,"https://_");if("regex"===t){const e=Pn(n);return!!e&&(e.test(r.href)||e.test(r.href.substring(r.origin.length)))}return"simple"===t&&In(r,n)}catch(e){return!1}}function Ln(e,t,n){(t=void 0===t?1:t)<0?t=0:t>1&&(t=1);const r=function(e){return e<=0?[]:new Array(e).fill(1/e)}(e);(n=n||r).length!==e&&(n=r);const i=n.reduce(((e,t)=>t+e),0);(i<.99||i>1.01)&&(n=r);let o=0;return n.map((e=>{const n=o;return o+=e,[n,n+t*e]}))}const Dn=e=>Uint8Array.from(atob(e),(e=>e.charCodeAt(0)));async function Mn(e,t,n){if(t=t||"",!(n=n||globalThis.crypto&&globalThis.crypto.subtle||kn.SubtleCrypto))throw new Error("No SubtleCrypto implementation found");try{const r=await n.importKey("raw",Dn(t),{name:"AES-CBC",length:128},!0,["encrypt","decrypt"]),[i,o]=e.split("."),s=await n.decrypt({name:"AES-CBC",iv:Dn(i)},r,Dn(o));return(new TextDecoder).decode(s)}catch(e){throw new Error("Failed to decrypt")}}function Nn(e){return"string"==typeof e?e:JSON.stringify(e)}function Rn(e){"number"==typeof e&&(e+=""),e&&"string"==typeof e||(e="0");const t=e.replace(/(^v|\+.*$)/g,"").split(/[-.]/);return 3===t.length&&t.push("~"),t.map((e=>e.match(/^[0-9]+$/)?e.padStart(5," "):e)).join("-")}function Fn(e){return"object"==typeof e&&null!==e}function Bn(e){return e.urlPatterns&&e.variations.some((e=>Fn(e)&&"urlRedirect"in e))?"redirect":e.variations.some((e=>Fn(e)&&(e.domMutations||"js"in e||"css"in e)))?"visual":"unknown"}async function qn(e,t){return new Promise((n=>{let r,i=!1;const o=e=>{i||(i=!0,r&&clearTimeout(r),n(e||null))};t&&(r=setTimeout((()=>o()),t)),e.then((e=>o(e))).catch((()=>o()))}))}const zn={staleTTL:6e4,maxAge:144e5,cacheKey:"gbFeaturesCache",backgroundSync:!0,maxEntries:10,disableIdleStreams:!1,idleStreamInterval:2e4,disableCache:!1},Hn=kn,Un={fetchFeaturesCall:e=>{let{host:t,clientKey:n,headers:r}=e;return Hn.fetch("".concat(t,"/api/features/").concat(n),{headers:r})},fetchRemoteEvalCall:e=>{let{host:t,clientKey:n,payload:r,headers:i}=e;const o={method:"POST",headers:{"Content-Type":"application/json",...i},body:JSON.stringify(r)};return Hn.fetch("".concat(t,"/api/eval/").concat(n),o)},eventSourceCall:e=>{let{host:t,clientKey:n,headers:r}=e;return r?new Hn.EventSource("".concat(t,"/sub/").concat(n),{headers:r}):new Hn.EventSource("".concat(t,"/sub/").concat(n))},startIdleListener:()=>{let e;if(!("undefined"!=typeof window&&"undefined"!=typeof document))return;const t=()=>{"visible"===document.visibilityState?(window.clearTimeout(e),Jn.forEach((e=>{e&&"idle"===e.state&&ur(e)}))):"hidden"===document.visibilityState&&(e=window.setTimeout(er,zn.idleStreamInterval))};return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)},stopIdleListener:()=>{}};try{globalThis.localStorage&&(Hn.localStorage=globalThis.localStorage)}catch(Di){}const Vn=new Map;let Wn=!1;const Gn=new Map,Kn=new Map,Jn=new Map,Yn=new Set;function Xn(e){Object.assign(zn,e),zn.backgroundSync||(Yn.clear(),Jn.forEach(dr),Vn.clear(),Un.stopIdleListener())}async function Qn(e){let{instance:t,timeout:n,skipCache:r,allowStale:i,backgroundSync:o}=e;return o||(zn.backgroundSync=!1),async function(e){let{instance:t,allowStale:n,timeout:r,skipCache:i}=e;const o=nr(t),s=rr(t),a=new Date,l=new Date(a.getTime()-zn.maxAge+zn.staleTTL);await async function(){if(Wn)return;Wn=!0;try{if(Hn.localStorage){const e=await Hn.localStorage.getItem(zn.cacheKey);if(!zn.disableCache&&e){const t=JSON.parse(e);t&&Array.isArray(t)&&t.forEach((e=>{let[t,n]=e;Gn.set(t,{...n,staleAt:new Date(n.staleAt)})})),ir()}}}catch(e){}if(!zn.disableIdleStreams){const e=Un.startIdleListener();e&&(Un.stopIdleListener=e)}}();const c=zn.disableCache||i?void 0:Gn.get(s);if(c&&(n||c.staleAt>a)&&c.staleAt>l)return c.sse&&Yn.add(o),c.staleAt{e&&(e.state="idle",cr(e))}))}async function tr(){try{if(!Hn.localStorage)return;await Hn.localStorage.setItem(zn.cacheKey,JSON.stringify(Array.from(Gn.entries())))}catch(e){}}function nr(e){const[t,n]=e.getApiInfo();return"".concat(t,"||").concat(n)}function rr(e){const t=nr(e);if(!e.isRemoteEval())return t;const n=e.getAttributes(),r=e.getCacheKeyAttributes()||Object.keys(e.getAttributes()),i={};r.forEach((e=>{i[e]=n[e]}));const o=e.getForcedVariations(),s=e.getUrl();return"".concat(t,"||").concat(JSON.stringify({ca:i,fv:o,url:s}))}function ir(){const e=Array.from(Gn.entries()).map((e=>{let[t,n]=e;return{key:t,staleAt:n.staleAt.getTime()}})).sort(((e,t)=>e.staleAt-t.staleAt)),t=Math.min(Math.max(0,Gn.size-zn.maxEntries),Gn.size);for(let n=0;nasync function(e,t){await e.setPayload(t||e.getPayload())}(e,n)))}async function sr(e){const{apiHost:t,apiRequestHeaders:n}=e.getApiHosts(),r=e.getClientKey(),i=e.isRemoteEval(),o=nr(e),s=rr(e);let a=Kn.get(s);if(!a){a=(i?Un.fetchRemoteEvalCall({host:t,clientKey:r,payload:{attributes:e.getAttributes(),forcedVariations:e.getForcedVariations(),forcedFeatures:Array.from(e.getForcedFeatures().entries()),url:e.getUrl()},headers:n}):Un.fetchFeaturesCall({host:t,clientKey:r,headers:n})).then((e=>{if(!e.ok)throw new Error("HTTP error: ".concat(e.status));return"enabled"===e.headers.get("x-sse-support")&&Yn.add(o),e.json()})).then((t=>(or(o,s,t),ar(e),Kn.delete(s),{data:t,success:!0,source:"network"}))).catch((e=>(Kn.delete(s),{data:null,source:"error",success:!1,error:e}))),Kn.set(s,a)}return a}function ar(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=nr(e),r=rr(e),{streamingHost:i,streamingHostRequestHeaders:o}=e.getApiHosts(),s=e.getClientKey();if(t&&Yn.add(n),zn.backgroundSync&&Yn.has(n)&&Hn.EventSource){if(Jn.has(n))return;const e={src:null,host:i,clientKey:s,headers:o,cb:t=>{try{if("features-updated"===t.type){const e=Vn.get(n);e&&e.forEach((e=>{sr(e)}))}else if("features"===t.type){const e=JSON.parse(t.data);or(n,r,e)}e.errors=0}catch(t){lr(e)}},errors:0,state:"active"};Jn.set(n,e),ur(e)}}function lr(e){if("idle"!==e.state&&(e.errors++,e.errors>3||e.src&&2===e.src.readyState)){const t=Math.pow(3,e.errors-3)*(1e3+1e3*Math.random());cr(e),setTimeout((()=>{["idle","active"].includes(e.state)||ur(e)}),Math.min(t,3e5))}}function cr(e){e.src&&(e.src.onopen=null,e.src.onerror=null,e.src.close(),e.src=null,"active"===e.state&&(e.state="disabled"))}function ur(e){e.src=Un.eventSourceCall({host:e.host,clientKey:e.clientKey,headers:e.headers}),e.state="active",e.src.addEventListener("features",e.cb),e.src.addEventListener("features-updated",e.cb),e.src.onerror=()=>lr(e),e.src.onopen=()=>{e.errors=0}}function dr(e,t){cr(e),Jn.delete(t)}var pr=/^[a-zA-Z:_][a-zA-Z0-9:_.-]*$/,fr={revert:function(){}},hr=new Map,mr=new Set;function vr(e){var t=hr.get(e);return t||(t={element:e,attributes:{}},hr.set(e,t)),t}function gr(e,t,n,r,i){var o=n(e),s={isDirty:!1,originalValue:o,virtualValue:o,mutations:[],el:e,_positionTimeout:null,observer:new MutationObserver((function(){if("position"!==t||!s._positionTimeout){"position"===t&&(s._positionTimeout=setTimeout((function(){s._positionTimeout=null}),1e3));var r=n(e);"position"===t&&r.parentNode===s.virtualValue.parentNode&&r.insertBeforeNode===s.virtualValue.insertBeforeNode||r!==s.virtualValue&&(s.originalValue=r,i(s))}})),mutationRunner:i,setValue:r,getCurrentValue:n};return"position"===t&&e.parentNode?s.observer.observe(e.parentNode,{childList:!0,subtree:!0,attributes:!1,characterData:!1}):s.observer.observe(e,function(e){return"html"===e?{childList:!0,subtree:!0,attributes:!0,characterData:!0}:{childList:!1,subtree:!1,attributes:!0,attributeFilter:[e]}}(t)),s}function yr(e,t){var n=t.getCurrentValue(t.el);t.virtualValue=e,e&&"string"!=typeof e?n&&e.parentNode===n.parentNode&&e.insertBeforeNode===n.insertBeforeNode||(t.isDirty=!0,Nr()):e!==n&&(t.isDirty=!0,Nr())}function br(e){var t=e.originalValue;e.mutations.forEach((function(e){return t=e.mutate(t)})),yr(function(e){Ir||(Ir=document.createElement("div"));return Ir.innerHTML=e,Ir.innerHTML}(t),e)}function wr(e){var t=new Set(e.originalValue.split(/\s+/).filter(Boolean));e.mutations.forEach((function(e){return e.mutate(t)})),yr(Array.from(t).filter(Boolean).join(" "),e)}function _r(e){var t=e.originalValue;e.mutations.forEach((function(e){return t=e.mutate(t)})),yr(t,e)}function Sr(e){var t=e.originalValue;e.mutations.forEach((function(e){var n=function(e){var t=e.parentSelector,n=e.insertBeforeSelector,r=document.querySelector(t);if(!r)return null;var i=n?document.querySelector(n):null;return n&&!i?null:{parentNode:r,insertBeforeNode:i}}(e.mutate());t=n||t})),yr(t,e)}var xr=function(e){return e.innerHTML},Or=function(e,t){return e.innerHTML=t};function $r(e){var t=vr(e);return t.html||(t.html=gr(e,"html",xr,Or,br)),t.html}var kr=function(e){return{parentNode:e.parentElement,insertBeforeNode:e.nextElementSibling}},Cr=function(e,t){t.insertBeforeNode&&!t.parentNode.contains(t.insertBeforeNode)||t.parentNode.insertBefore(e,t.insertBeforeNode)};function Er(e){var t=vr(e);return t.position||(t.position=gr(e,"position",kr,Cr,Sr)),t.position}var Tr=function(e,t){return t?e.className=t:e.removeAttribute("class")},Pr=function(e){return e.className};function jr(e){var t=vr(e);return t.classes||(t.classes=gr(e,"class",Pr,Tr,wr)),t.classes}var Ir,Ar;function Lr(e,t){var n,r=vr(e);return r.attributes[t]||(r.attributes[t]=gr(e,t,(n=t,function(e){var t;return null!=(t=e.getAttribute(n))?t:null}),function(e){return function(t,n){return null!==n?t.setAttribute(e,n):t.removeAttribute(e)}}(t),_r)),r.attributes[t]}function Dr(e,t,n){if(n.isDirty){n.isDirty=!1;var r=n.virtualValue;n.mutations.length||function(e,t){var n,r,i=hr.get(e);if(i)if("html"===t)null==(n=i.html)||null==(r=n.observer)||r.disconnect(),delete i.html;else if("class"===t){var o,s;null==(o=i.classes)||null==(s=o.observer)||s.disconnect(),delete i.classes}else if("position"===t){var a,l;null==(a=i.position)||null==(l=a.observer)||l.disconnect(),delete i.position}else{var c,u,d;null==(c=i.attributes)||null==(u=c[t])||null==(d=u.observer)||d.disconnect(),delete i.attributes[t]}}(e,t),n.setValue(e,r)}}function Mr(e,t){e.html&&Dr(t,"html",e.html),e.classes&&Dr(t,"class",e.classes),e.position&&Dr(t,"position",e.position),Object.keys(e.attributes).forEach((function(n){Dr(t,n,e.attributes[n])}))}function Nr(){hr.forEach(Mr)}function Rr(e){if("position"!==e.kind||1!==e.elements.size){var t=new Set(e.elements);document.querySelectorAll(e.selector).forEach((function(n){t.has(n)||(e.elements.add(n),function(e,t){var n=null;"html"===e.kind?n=$r(t):"class"===e.kind?n=jr(t):"attribute"===e.kind?n=Lr(t,e.attribute):"position"===e.kind&&(n=Er(t)),n&&(n.mutations.push(e),n.mutationRunner(n))}(e,n))}))}}function Fr(e){e.elements.forEach((function(t){return function(e,t){var n=null;if("html"===e.kind?n=$r(t):"class"===e.kind?n=jr(t):"attribute"===e.kind?n=Lr(t,e.attribute):"position"===e.kind&&(n=Er(t)),n){var r=n.mutations.indexOf(e);-1!==r&&n.mutations.splice(r,1),n.mutationRunner(n)}}(e,t)})),e.elements.clear(),mr.delete(e)}function Br(){mr.forEach(Rr)}function qr(e){return"undefined"==typeof document?fr:(mr.add(e),Rr(e),{revert:function(){Fr(e)}})}function zr(e,t){return qr({kind:"html",elements:new Set,mutate:t,selector:e})}function Hr(e,t){return qr({kind:"position",elements:new Set,mutate:t,selector:e})}function Ur(e,t){return qr({kind:"class",elements:new Set,mutate:t,selector:e})}function Vr(e,t,n){return pr.test(t)?"class"===t||"className"===t?Ur(e,(function(e){var t=n(Array.from(e).join(" "));e.clear(),t&&t.split(/\s+/g).filter(Boolean).forEach((function(t){return e.add(t)}))})):qr({kind:"attribute",attribute:t,elements:new Set,mutate:n,selector:e}):fr}"undefined"!=typeof document&&(Ar||(Ar=new MutationObserver((function(){Br()}))),Br(),Ar.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!1,characterData:!1}));var Wr={html:zr,classes:Ur,attribute:Vr,position:Hr,declarative:function(e){var t=e.selector,n=e.action,r=e.value,i=e.attribute,o=e.parentSelector,s=e.insertBeforeSelector;if("html"===i){if("append"===n)return zr(t,(function(e){return e+(null!=r?r:"")}));if("set"===n)return zr(t,(function(){return null!=r?r:""}))}else if("class"===i){if("append"===n)return Ur(t,(function(e){r&&e.add(r)}));if("remove"===n)return Ur(t,(function(e){r&&e.delete(r)}));if("set"===n)return Ur(t,(function(e){e.clear(),r&&e.add(r)}))}else if("position"===i){if("set"===n&&o)return Hr(t,(function(){return{insertBeforeSelector:s,parentSelector:o}}))}else{if("append"===n)return Vr(t,i,(function(e){return null!==e?e+(null!=r?r:""):null!=r?r:""}));if("set"===n)return Vr(t,i,(function(){return null!=r?r:""}));if("remove"===n)return Vr(t,i,(function(){return null}))}return fr}};const Gr={};function Kr(e,t,n){n=n||{};for(const[r,i]of Object.entries(t))switch(r){case"$or":if(!ei(e,i,n))return!1;break;case"$nor":if(ei(e,i,n))return!1;break;case"$and":if(!ti(e,i,n))return!1;break;case"$not":if(Kr(e,i,n))return!1;break;default:if(!Yr(i,Jr(e,r),n))return!1}return!0}function Jr(e,t){const n=t.split(".");let r=e;for(let e=0;e0&&t.filter((e=>"$"===e[0])).length===t.length}function Qr(e,t){return Array.isArray(e)?e.some((e=>t.includes(e))):t.includes(e)}function Zr(e,t,n,r){switch(e){case"$veq":return Rn(t)===Rn(n);case"$vne":return Rn(t)!==Rn(n);case"$vgt":return Rn(t)>Rn(n);case"$vgte":return Rn(t)>=Rn(n);case"$vlt":return Rn(t)n;case"$gte":return t>=n;case"$exists":return n?null!=t:null==t;case"$in":return!!Array.isArray(n)&&Qr(t,n);case"$inGroup":return Qr(t,r[n]||[]);case"$notInGroup":return!Qr(t,r[n]||[]);case"$nin":return!!Array.isArray(n)&&!Qr(t,n);case"$not":return!Yr(n,t,r);case"$size":return!!Array.isArray(t)&&Yr(n,t.length,r);case"$elemMatch":return function(e,t,n){if(!Array.isArray(e))return!1;const r=Xr(t)?e=>Yr(t,e,n):e=>Kr(e,t,n);for(let t=0;t{}))}this.ready&&this.refreshStickyBuckets(this.getPayload())}async setPayload(e){this._payload=e;const t=await this.decryptPayload(e);this._decryptedPayload=t,await this.refreshStickyBuckets(t),t.features&&(this._ctx.features=t.features),t.savedGroups&&(this._ctx.savedGroups=t.savedGroups),t.experiments&&(this._ctx.experiments=t.experiments,this._updateAllAutoExperiments()),this.ready=!0,this._render()}initSync(e){this._initialized=!0;const t=e.payload;if(t.encryptedExperiments||t.encryptedFeatures)throw new Error("initSync does not support encrypted payloads");if(this._ctx.stickyBucketService&&!this._ctx.stickyBucketAssignmentDocs)throw new Error("initSync requires you to pass stickyBucketAssignmentDocs into the GrowthBook constructor");if(this._payload=t,this._decryptedPayload=t,t.features&&(this._ctx.features=t.features),t.experiments&&(this._ctx.experiments=t.experiments,this._updateAllAutoExperiments()),this.ready=!0,e.streaming){if(!this._ctx.clientKey)throw new Error("Must specify clientKey to enable streaming");ar(this,!0),Zn(this)}return this}async init(e){if(this._initialized=!0,(e=e||{}).cacheSettings&&Xn(e.cacheSettings),e.payload){if(await this.setPayload(e.payload),e.streaming){if(!this._ctx.clientKey)throw new Error("Must specify clientKey to enable streaming");ar(this,!0),Zn(this)}return{success:!0,source:"init"}}{const{data:t,...n}=await this._refresh({...e,allowStale:!0});return e.streaming&&Zn(this),await this.setPayload(t||{}),n}}async loadFeatures(e){this._initialized=!0,(e=e||{}).autoRefresh&&(this._ctx.subscribeToChanges=!0);const{data:t}=await this._refresh({...e,allowStale:!0});await this.setPayload(t||{}),this._canSubscribe()&&Zn(this)}async refreshFeatures(e){const t=await this._refresh({...e||{},allowStale:!1});t.data&&await this.setPayload(t.data)}getApiInfo(){return[this.getApiHosts().apiHost,this.getClientKey()]}getApiHosts(){const e=this._ctx.apiHost||"https://cdn.growthbook.io";return{apiHost:e.replace(/\/*$/,""),streamingHost:(this._ctx.streamingHost||e).replace(/\/*$/,""),apiRequestHeaders:this._ctx.apiHostRequestHeaders,streamingHostRequestHeaders:this._ctx.streamingHostRequestHeaders}}getClientKey(){return this._ctx.clientKey||""}getPayload(){return this._payload||{features:this.getFeatures(),experiments:this.getExperiments()}}getDecryptedPayload(){return this._decryptedPayload||this.getPayload()}isRemoteEval(){return this._ctx.remoteEval||!1}getCacheKeyAttributes(){return this._ctx.cacheKeyAttributes}async _refresh(e){var t;let{timeout:n,skipCache:r,allowStale:i,streaming:o}=e;if(!this._ctx.clientKey)throw new Error("Missing clientKey");return Qn({instance:this,timeout:n,skipCache:r||this._ctx.disableCache,allowStale:i,backgroundSync:null===(t=null!=o?o:this._ctx.backgroundSync)||void 0===t||t})}_render(){if(this._renderer)try{this._renderer()}catch(e){console.error("Failed to render",e)}}setFeatures(e){this._ctx.features=e,this.ready=!0,this._render()}async setEncryptedFeatures(e,t,n){const r=await Mn(e,t||this._ctx.decryptionKey,n);this.setFeatures(JSON.parse(r))}setExperiments(e){this._ctx.experiments=e,this.ready=!0,this._updateAllAutoExperiments()}async setEncryptedExperiments(e,t,n){const r=await Mn(e,t||this._ctx.decryptionKey,n);this.setExperiments(JSON.parse(r))}async decryptPayload(e,t,n){if((e={...e}).encryptedFeatures){try{e.features=JSON.parse(await Mn(e.encryptedFeatures,t||this._ctx.decryptionKey,n))}catch(e){console.error(e)}delete e.encryptedFeatures}if(e.encryptedExperiments){try{e.experiments=JSON.parse(await Mn(e.encryptedExperiments,t||this._ctx.decryptionKey,n))}catch(e){console.error(e)}delete e.encryptedExperiments}if(e.encryptedSavedGroups){try{e.savedGroups=JSON.parse(await Mn(e.encryptedSavedGroups,t||this._ctx.decryptionKey,n))}catch(e){console.error(e)}delete e.encryptedSavedGroups}return e}async setAttributes(e){this._ctx.attributes=e,this._ctx.stickyBucketService&&await this.refreshStickyBuckets(),this._ctx.remoteEval?await this._refreshForRemoteEval():(this._render(),this._updateAllAutoExperiments())}async updateAttributes(e){return this.setAttributes({...this._ctx.attributes,...e})}async setAttributeOverrides(e){this._attributeOverrides=e,this._ctx.stickyBucketService&&await this.refreshStickyBuckets(),this._ctx.remoteEval?await this._refreshForRemoteEval():(this._render(),this._updateAllAutoExperiments())}async setForcedVariations(e){this._ctx.forcedVariations=e||{},this._ctx.remoteEval?await this._refreshForRemoteEval():(this._render(),this._updateAllAutoExperiments())}setForcedFeatures(e){this._forcedFeatureValues=e,this._render()}async setURL(e){if(e!==this._ctx.url){if(this._ctx.url=e,this._redirectedUrl="",this._ctx.remoteEval)return await this._refreshForRemoteEval(),void this._updateAllAutoExperiments(!0);this._updateAllAutoExperiments(!0)}}getAttributes(){return{...this._ctx.attributes,...this._attributeOverrides}}getForcedVariations(){return this._ctx.forcedVariations||{}}getForcedFeatures(){return this._forcedFeatureValues||new Map}getStickyBucketAssignmentDocs(){return this._ctx.stickyBucketAssignmentDocs||{}}getUrl(){return this._ctx.url||""}getFeatures(){return this._ctx.features||{}}getExperiments(){return this._ctx.experiments||[]}getCompletedChangeIds(){return Array.from(this._completedChangeIds)}subscribe(e){return this._subscriptions.add(e),()=>{this._subscriptions.delete(e)}}_canSubscribe(){var e;return(null===(e=this._ctx.backgroundSync)||void 0===e||e)&&this._ctx.subscribeToChanges}async _refreshForRemoteEval(){if(!this._ctx.remoteEval)return;if(!this._initialized)return;const e=await this._refresh({allowStale:!1});e.data&&await this.setPayload(e.data)}getAllResults(){return new Map(this._assigned)}destroy(){var e;this._subscriptions.clear(),this._assigned.clear(),this._trackedExperiments.clear(),this._completedChangeIds.clear(),this._deferredTrackingCalls.clear(),this._trackedFeatures={},this._rtQueue=[],this._payload=void 0,this._rtTimer&&clearTimeout(this._rtTimer),e=this,Vn.forEach((t=>t.delete(e))),ni&&window._growthbook===this&&delete window._growthbook,this._activeAutoExperiments.forEach((e=>{e.undo()})),this._activeAutoExperiments.clear(),this._triggeredExpKeys.clear()}setRenderer(e){this._renderer=e}forceVariation(e,t){this._ctx.forcedVariations=this._ctx.forcedVariations||{},this._ctx.forcedVariations[e]=t,this._ctx.remoteEval?this._refreshForRemoteEval():(this._updateAllAutoExperiments(),this._render())}run(e){const{result:t}=this._run(e,null);return this._fireSubscriptions(e,t),t}triggerExperiment(e){if(this._triggeredExpKeys.add(e),!this._ctx.experiments)return null;return this._ctx.experiments.filter((t=>t.key===e)).map((e=>this._runAutoExperiment(e))).filter((e=>null!==e))}triggerAutoExperiments(){this._autoExperimentsAllowed=!0,this._updateAllAutoExperiments(!0)}_runAutoExperiment(e,t){const n=this._activeAutoExperiments.get(e);if(e.manual&&!this._triggeredExpKeys.has(e.key)&&!n)return null;let r,i;this._isAutoExperimentBlockedByContext(e)?r=this._getResult(e,-1,!1,""):(({result:r,trackingCall:i}=this._run(e,null)),this._fireSubscriptions(e,r));const o=JSON.stringify(r.value);if(!t&&r.inExperiment&&n&&n.valueHash===o)return r;if(n&&this._undoActiveAutoExperiment(e),r.inExperiment){const t=Bn(e);if("redirect"===t&&r.value.urlRedirect&&e.urlPatterns){const t=e.persistQueryString?function(e,t){let n,r;try{n=new URL(e),r=new URL(t)}catch(e){return console.error("Unable to merge query strings: ".concat(e)),t}return n.searchParams.forEach(((e,t)=>{r.searchParams.has(t)||r.searchParams.set(t,e)})),r.toString()}(this._getContextUrl(),r.value.urlRedirect):r.value.urlRedirect;if(jn(t,e.urlPatterns))return this.log("Skipping redirect because original URL matches redirect URL",{id:e.key}),r;this._redirectedUrl=t;const{navigate:n,delay:o}=this._getNavigateFunction();var s;if(n)if(ni)Promise.all([...i?[qn(i,null!==(s=this._ctx.maxNavigateDelay)&&void 0!==s?s:1e3)]:[],new Promise((e=>{var t;return window.setTimeout(e,null!==(t=this._ctx.navigateDelay)&&void 0!==t?t:o)}))]).then((()=>{try{n(t)}catch(e){console.error(e)}}));else try{n(t)}catch(e){console.error(e)}}else if("visual"===t){const t=this._ctx.applyDomChangesCallback?this._ctx.applyDomChangesCallback(r.value):this._applyDOMChanges(r.value);t&&this._activeAutoExperiments.set(e,{undo:t,valueHash:o})}}return r}_undoActiveAutoExperiment(e){const t=this._activeAutoExperiments.get(e);t&&(t.undo(),this._activeAutoExperiments.delete(e))}_updateAllAutoExperiments(e){if(!this._autoExperimentsAllowed)return;const t=this._ctx.experiments||[],n=new Set(t);this._activeAutoExperiments.forEach(((e,t)=>{n.has(t)||(e.undo(),this._activeAutoExperiments.delete(t))}));for(const n of t){const t=this._runAutoExperiment(n,e);if(null!=t&&t.inExperiment&&"redirect"===Bn(n))break}}_fireSubscriptions(e,t){const n=e.key,r=this._assigned.get(n);r&&r.result.inExperiment===t.inExperiment&&r.result.variationId===t.variationId||(this._assigned.set(n,{experiment:e,result:t}),this._subscriptions.forEach((n=>{try{n(e,t)}catch(e){console.error(e)}})))}_trackFeatureUsage(e,t){if("override"===t.source)return;const n=JSON.stringify(t.value);if(this._trackedFeatures[e]!==n){if(this._trackedFeatures[e]=n,this._ctx.onFeatureUsage)try{this._ctx.onFeatureUsage(e,t)}catch(e){}ni&&window.fetch&&(this._rtQueue.push({key:e,on:t.on}),this._rtTimer||(this._rtTimer=window.setTimeout((()=>{this._rtTimer=0;const e=[...this._rtQueue];this._rtQueue=[],this._ctx.realtimeKey&&window.fetch("https://rt.growthbook.io/?key=".concat(this._ctx.realtimeKey,"&events=").concat(encodeURIComponent(JSON.stringify(e))),{cache:"no-cache",mode:"no-cors"}).catch((()=>{}))}),this._ctx.realtimeInterval||2e3)))}}_getFeatureResult(e,t,n,r,i,o){const s={value:t,on:!!t,off:!t,source:n,ruleId:r||""};return i&&(s.experiment=i),o&&(s.experimentResult=o),this._trackFeatureUsage(e,s),s}isOn(e){return this.evalFeature(e).on}isOff(e){return this.evalFeature(e).off}getFeatureValue(e,t){const n=this.evalFeature(e).value;return null===n?t:n}feature(e){return this.evalFeature(e)}evalFeature(e){return this._evalFeature(e)}_evalFeature(e,t){if((t=t||{evaluatedFeatures:new Set}).evaluatedFeatures.has(e))return this._getFeatureResult(e,null,"cyclicPrerequisite");if(t.evaluatedFeatures.add(e),t.id=e,this._forcedFeatureValues.has(e))return this._getFeatureResult(e,this._forcedFeatureValues.get(e),"override");if(!this._ctx.features||!this._ctx.features[e])return this._getFeatureResult(e,null,"unknownFeature");const n=this._ctx.features[e];if(n.rules)e:for(const r of n.rules){if(r.parentConditions)for(const n of r.parentConditions){const r=this._evalFeature(n.id,t);if("cyclicPrerequisite"===r.source)return this._getFeatureResult(e,null,"cyclicPrerequisite");if(!Kr({value:r.value},n.condition||{})){if(n.gate)return this._getFeatureResult(e,null,"prerequisite");continue e}}if(r.filters&&this._isFilteredOut(r.filters))continue;if("force"in r){if(r.condition&&!this._conditionPasses(r.condition))continue;if(!this._isIncludedInRollout(r.seed||e,r.hashAttribute,this._ctx.stickyBucketService&&!r.disableStickyBucketing?r.fallbackAttribute:void 0,r.range,r.coverage,r.hashVersion))continue;return r.tracks&&r.tracks.forEach((e=>{this._track(e.experiment,e.result)})),this._getFeatureResult(e,r.force,"force",r.id)}if(!r.variations)continue;const n={variations:r.variations,key:r.key||e};"coverage"in r&&(n.coverage=r.coverage),r.weights&&(n.weights=r.weights),r.hashAttribute&&(n.hashAttribute=r.hashAttribute),r.fallbackAttribute&&(n.fallbackAttribute=r.fallbackAttribute),r.disableStickyBucketing&&(n.disableStickyBucketing=r.disableStickyBucketing),void 0!==r.bucketVersion&&(n.bucketVersion=r.bucketVersion),void 0!==r.minBucketVersion&&(n.minBucketVersion=r.minBucketVersion),r.namespace&&(n.namespace=r.namespace),r.meta&&(n.meta=r.meta),r.ranges&&(n.ranges=r.ranges),r.name&&(n.name=r.name),r.phase&&(n.phase=r.phase),r.seed&&(n.seed=r.seed),r.hashVersion&&(n.hashVersion=r.hashVersion),r.filters&&(n.filters=r.filters),r.condition&&(n.condition=r.condition);const{result:i}=this._run(n,e);if(this._fireSubscriptions(n,i),i.inExperiment&&!i.passthrough)return this._getFeatureResult(e,i.value,"experiment",r.id,n,i)}return this._getFeatureResult(e,void 0===n.defaultValue?null:n.defaultValue,"defaultValue")}_isIncludedInRollout(e,t,n,r,i,o){if(!r&&void 0===i)return!0;if(!r&&0===i)return!1;const{hashValue:s}=this._getHashAttribute(t,n);if(!s)return!1;const a=En(e,s,o||1);return null!==a&&(r?Tn(a,r):void 0===i||a<=i)}_conditionPasses(e){return Kr(this.getAttributes(),e,this._ctx.savedGroups||{})}_isFilteredOut(e){return e.some((e=>{const{hashValue:t}=this._getHashAttribute(e.attribute);if(!t)return!0;const n=En(e.seed,t,e.hashVersion||2);return null===n||!e.ranges.some((e=>Tn(n,e)))}))}_run(e,t){const n=e.key,r=e.variations.length;if(r<2)return{result:this._getResult(e,-1,!1,t)};if(!1===this._ctx.enabled)return{result:this._getResult(e,-1,!1,t)};if((e=this._mergeOverrides(e)).urlPatterns&&!jn(this._getContextUrl(),e.urlPatterns))return{result:this._getResult(e,-1,!1,t)};const i=function(e,t,n){if(!t)return null;const r=t.split("?")[1];if(!r)return null;const i=r.replace(/#.*/,"").split("&").map((e=>e.split("=",2))).filter((t=>{let[n]=t;return n===e})).map((e=>{let[,t]=e;return parseInt(t)}));return i.length>0&&i[0]>=0&&i[0]=0,a=t,c=!!n}if(!l){if(e.filters){if(this._isFilteredOut(e.filters))return{result:this._getResult(e,-1,!1,t)}}else if(e.namespace&&!function(e,t){const n=En("__"+t[0],e,1);return null!==n&&n>=t[1]&&ne&&e.experiment&&e.result)).map((e=>[this._getTrackKey(e.experiment,e.result),e])))}async fireDeferredTrackingCalls(){if(!this._ctx.trackingCallback)return;const e=[];this._deferredTrackingCalls.forEach((t=>{t&&t.experiment&&t.result?e.push(this._track(t.experiment,t.result)):console.error("Invalid deferred tracking call",{call:t})})),this._deferredTrackingCalls.clear(),await Promise.all(e)}setTrackingCallback(e){this._ctx.trackingCallback=e,this.fireDeferredTrackingCalls()}_getTrackKey(e,t){return t.hashAttribute+t.hashValue+e.key+t.variationId}async _track(e,t){const n=this._getTrackKey(e,t);if(this._ctx.trackingCallback){if(!this._trackedExperiments.has(n)){this._trackedExperiments.add(n);try{await this._ctx.trackingCallback(e,t)}catch(e){console.error(e)}}}else this._deferredTrackingCalls.has(n)||this._deferredTrackingCalls.set(n,{experiment:e,result:t})}_mergeOverrides(e){const t=e.key,n=this._ctx.overrides;return n&&n[t]&&"string"==typeof(e=Object.assign({},e,n[t])).url&&(e.url=Pn(e.url)),e}_getHashAttribute(e,t){let n=e||"id",r="";return this._attributeOverrides[n]?r=this._attributeOverrides[n]:this._ctx.attributes?r=this._ctx.attributes[n]||"":this._ctx.user&&(r=this._ctx.user[n]||""),!r&&t&&(this._attributeOverrides[t]?r=this._attributeOverrides[t]:this._ctx.attributes?r=this._ctx.attributes[t]||"":this._ctx.user&&(r=this._ctx.user[t]||""),r&&(n=t)),{hashAttribute:n,hashValue:r}}_getResult(e,t,n,r,i,o){let s=!0;(t<0||t>=e.variations.length)&&(t=0,s=!1);const{hashAttribute:a,hashValue:l}=this._getHashAttribute(e.hashAttribute,this._ctx.stickyBucketService&&!e.disableStickyBucketing?e.fallbackAttribute:void 0),c=e.meta?e.meta[t]:{},u={key:c.key||""+t,featureId:r,inExperiment:s,hashUsed:n,variationId:t,value:e.variations[t],hashAttribute:a,hashValue:l,stickyBucketUsed:!!o};return c.name&&(u.name=c.name),void 0!==i&&(u.bucket=i),c.passthrough&&(u.passthrough=c.passthrough),u}_getContextUrl(){return this._ctx.url||(ni?window.location.href:"")}_urlIsValid(e){const t=this._getContextUrl();if(!t)return!1;const n=t.replace(/^https?:\/\//,"").replace(/^[^/]*\//,"/");return!!e.test(t)||!!e.test(n)}_hasGroupOverlap(e){const t=this._ctx.groups||{};for(let n=0;ne.js)))return!0}else{if("redirect"!==t)return!0;if(this._ctx.disableUrlRedirectExperiments)return!0;try{const t=new URL(this._getContextUrl());for(const n of e.variations){if(!n||!n.urlRedirect)continue;const e=new URL(n.urlRedirect);if(this._ctx.disableCrossOriginUrlRedirectExperiments){if(e.protocol!==t.protocol)return!0;if(e.host!==t.host)return!0}}}catch(t){return this.log("Error parsing current or redirect URL",{id:e.key,error:t}),!0}}return!(!e.changeId||!(this._ctx.blockedChangeIds||[]).includes(e.changeId))}getRedirectUrl(){return this._redirectedUrl}_getNavigateFunction(){return this._ctx.navigate?{navigate:this._ctx.navigate,delay:0}:ni?{navigate:e=>{window.location.replace(e)},delay:100}:{navigate:null,delay:0}}_applyDOMChanges(e){if(!ni)return;const t=[];if(e.css){const n=document.createElement("style");n.innerHTML=e.css,document.head.appendChild(n),t.push((()=>n.remove()))}if(e.js){const n=document.createElement("script");n.innerHTML=e.js,this._ctx.jsInjectionNonce&&(n.nonce=this._ctx.jsInjectionNonce),document.head.appendChild(n),t.push((()=>n.remove()))}return e.domMutations&&e.domMutations.forEach((e=>{t.push(Wr.declarative(e).revert)})),()=>{t.forEach((e=>e()))}}_deriveStickyBucketIdentifierAttributes(e){const t=new Set,n=e&&e.features?e.features:this.getFeatures(),r=e&&e.experiments?e.experiments:this.getExperiments();return Object.keys(n).forEach((e=>{const r=n[e];if(r.rules)for(const e of r.rules)e.variations&&(t.add(e.hashAttribute||"id"),e.fallbackAttribute&&t.add(e.fallbackAttribute))})),r.map((e=>{t.add(e.hashAttribute||"id"),e.fallbackAttribute&&t.add(e.fallbackAttribute)})),Array.from(t)}async refreshStickyBuckets(e){if(this._ctx.stickyBucketService){const t=this._getStickyBucketAttributes(e);this._ctx.stickyBucketAssignmentDocs=await this._ctx.stickyBucketService.getAllAssignments(t)}}_getStickyBucketAssignments(e,t){if(!this._ctx.stickyBucketAssignmentDocs)return{};const{hashAttribute:n,hashValue:r}=this._getHashAttribute(e),i="".concat(n,"||").concat(Nn(r)),{hashAttribute:o,hashValue:s}=this._getHashAttribute(t),a=s?"".concat(o,"||").concat(Nn(s)):null,l={};return a&&this._ctx.stickyBucketAssignmentDocs[a]&&Object.assign(l,this._ctx.stickyBucketAssignmentDocs[a].assignments||{}),this._ctx.stickyBucketAssignmentDocs[i]&&Object.assign(l,this._ctx.stickyBucketAssignmentDocs[i].assignments||{}),l}_getStickyBucketVariation(e){let{expKey:t,expBucketVersion:n,expHashAttribute:r,expFallbackAttribute:i,expMinBucketVersion:o,expMeta:s}=e;n=n||0,o=o||0,r=r||"id",s=s||[];const a=this._getStickyBucketExperimentKey(t,n),l=this._getStickyBucketAssignments(r,i);if(o>0)for(let e=0;e<=o;e++){if(void 0!==l[this._getStickyBucketExperimentKey(t,e)])return{variation:-1,versionIsBlocked:!0}}const c=l[a];if(void 0===c)return{variation:-1};const u=s.findIndex((e=>e.key===c));return u<0?{variation:-1}:{variation:u}}_getStickyBucketExperimentKey(e,t){return t=t||0,"".concat(e,"__").concat(t)}_getStickyBucketAttributes(e){const t={};return this._ctx.stickyBucketIdentifierAttributes=this._deriveStickyBucketIdentifierAttributes(e),this._ctx.stickyBucketIdentifierAttributes.forEach((e=>{const{hashValue:n}=this._getHashAttribute(e);t[e]=Nn(n)})),t}_generateStickyBucketAssignmentDoc(e,t,n){const r="".concat(e,"||").concat(t),i=this._ctx.stickyBucketAssignmentDocs&&this._ctx.stickyBucketAssignmentDocs[r]&&this._ctx.stickyBucketAssignmentDocs[r].assignments||{},o={...i,...n};return{key:r,doc:{attributeName:e,attributeValue:t,assignments:o},changed:JSON.stringify(i)!==JSON.stringify(o)}}}({apiHost:"https://cdn.growthbook.io",clientKey:window.growthbook_sdk_key,decryptionKey:window.growthbook_decrypt_key,enableDevMode:window.growthbook_dev_mode});function oi(e){const t=window.location.search.substring(1).split("&");let n=null;return t.forEach((t=>{const r=t.split("=");r[0]===e&&(n=decodeURIComponent(r[1].replace(/\+/g,"%20")))})),n}function si(){return document.cookie.split(";").reduce(((e,t)=>{const n=t.indexOf("="),r=t.substring(0,n).trim(),i=t.substring(n+1).trim();return e[r]=i,e}),{})}ii.init({streaming:!0}),window.analytics.ready((function(){ii.setTrackingCallback(((e,t)=>{window.analytics.track("Experiment Viewed",{experimentId:e.key,variationId:t.key})})),ii.setAttributes(Object.assign(Object.assign({},ii.getAttributes()),{id:window.analytics.user().anonymousId(),userId:window.analytics.user().id()}))}));const ai=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.showSidebar=!1}componentWillLoad(){this.showSidebar=ii.isOn("copilot-on-docs"),ii.setRenderer((()=>this.showSidebar=ii.isOn("copilot-on-docs")))}render(){return!0===this.showSidebar?Xe(Ze,null,Xe("aside",{id:"ai-sidebar-target"}),Xe("iframe",{id:"ai-sidebar-host",src:this.copilotSrc})):Xe(Ze,null)}static get style(){return":host{display:block}"}},li=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.redirectUrl="/pulumi-up/thank-you/",this.isModalOpen=!1,this.displayingContent="session-select",this.selectedSessions=[],this.skippedSessionSelection=!1,this.processingFormSubmissions=!1,this.formProcessor=void 0,this.error=void 0,this.submittedFormValues={},this.onMessage=e=>{var t;if("hsFormCallback"!==(null===(t=e.data)||void 0===t?void 0:t.type)||!this.isModalOpen)return;const n=e.data.eventName;if("onFormReady"===n&&this.processingFormSubmissions&&this.handleFormSubmissions(),"onFormSubmit"===n){const e=this.el.querySelectorAll("form input"),t={};e.forEach((e=>{"checkbox"!==e.type&&(t[e.name]=e.value)})),this.submittedFormValues=t,setTimeout((()=>{this.selectedSessions=[...this.selectedSessions.slice(1)],this.processingFormSubmissions=!0,0===this.selectedSessions.length&&(window.location.href=this.redirectUrl)}),500)}},this.handleButtonClick=e=>{e.preventDefault(),this.isModalOpen=!0,document.querySelector("body").className+=" disable-scroll"},this.handleCloseModal=e=>{e.preventDefault(),this.isModalOpen=!1,this.skippedSessionSelection||(this.displayingContent="session-select",this.selectedSessions=[]),document.querySelector("body").className=document.querySelector("body").className.replace("disable-scroll","")},this.handleSessionSelection=e=>{const t=this.selectedSessions.indexOf(e);-1===t?this.selectedSessions.push(e):this.selectedSessions.splice(t,1)},this.handleGotToSessionSelect=e=>{e.preventDefault(),this.displayingContent="session-select"}}handleEventSessionInfo(e){this.parsedEventSessions=JSON.parse(e)}handleSkipSessionSelection(e){1===e.length&&(this.selectedSessions.push(e[0].hubspot_form_id),this.displayingContent="form",this.skippedSessionSelection=!0)}componentWillLoad(){this.handleEventSessionInfo(this.eventSessions),this.handleSkipSessionSelection(this.parsedEventSessions)}componentDidLoad(){window.addEventListener("message",this.onMessage)}disconnectedCallback(){window.removeEventListener("message",this.onMessage)}handleGoToForm(e,t){e.preventDefault(),0!==this.selectedSessions.length?(this.displayingContent=t,this.error=void 0):this.error="You must select at least one of the above options."}handleFormSubmissions(){if(0===this.selectedSessions.length)return void(window.location.href=this.redirectUrl);this.el.querySelectorAll("form input[type='checkbox']")[1].click(),setTimeout((()=>{const e=Object.keys(this.submittedFormValues);if(e.length>0)for(let t=0;t{this.el.querySelector("form input[type='submit']").click()}),500)}renderSessionSelectionItem(e){const t=this.selectedSessions.indexOf(e.hubspot_form_id)>-1;return Xe("li",null,Xe("label",{class:"session-selection-item"},Xe("div",{class:"checkbox-container"},Xe("input",{type:"checkbox",id:e.title,name:e.title,onChange:()=>this.handleSessionSelection(e.hubspot_form_id),checked:t}),Xe("span",{class:"checkmark"})),Xe("div",{class:"checkbox-label"},Xe("h6",null,e.title),Xe("p",null,e.description))))}renderSessionSelectContent(){return[Xe("div",{class:"session-select-container"},Xe("p",null,"Please select all the options you'd like to register for:"),Xe("ul",{class:"session-select-list"},this.parsedEventSessions.map((e=>this.renderSessionSelectionItem(e))))),Xe("div",{class:"next-button-container"},Xe("a",{href:"#",class:`${this.buttonClass} modal-button`,onClick:e=>this.handleGoToForm(e,"form")},"Next"),this.error?Xe("p",{class:"error-message"},this.error):null)]}renderForm(e){return this.processingFormSubmissions?Xe("div",null,Xe("h4",null,Xe("i",{class:"fas fa-spinner fa-spin"})),Xe("div",{class:"invisible",ref:e=>this.formProcessor=e},Xe("pulumi-hubspot-form",{key:e,formId:e}))):Xe("div",{class:"registration-form-container"},this.skippedSessionSelection?null:Xe("a",{href:"#",onClick:this.handleGotToSessionSelect},"← Go back to select sessions."),Xe("div",{class:"registration-form"},Xe("pulumi-hubspot-form",{formId:this.selectedSessions[0]})))}renderContent(){switch(console.log("rendering content"),this.displayingContent){case"session-select":return this.renderSessionSelectContent();case"form":return console.log("rendering form"),this.renderForm(this.selectedSessions[0])}}renderModal(){return Xe("div",{class:"event-session-modal-container"},Xe("div",{class:"modal-container"},Xe("div",{class:"modal"},Xe("div",{class:"title-container"},Xe("div",{class:"title-text"},Xe("h4",null,this.modalTitle)),Xe("div",{class:"close-icon"},Xe("i",{class:"fa fa-times",onClick:this.handleCloseModal}))),this.renderContent())))}render(){return Xe(Ze,null,Xe("div",null,Xe("div",null,Xe("a",{class:this.buttonClass,href:"#",onClick:this.handleButtonClick},this.buttonText)),this.isModalOpen?this.renderModal():null))}get el(){return this}static get watchers(){return{eventSessions:["handleEventSessionInfo"]}}static get style(){return':host{display:block}.event-session-modal-container{position:fixed;width:100%;height:100%;background-color:black;z-index:9999;top:0;left:0}.event-session-modal-container .hidden{display:none}.event-session-modal-container .modal-container{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.event-session-modal-container .modal-container h2,.event-session-modal-container .modal-container h3,.event-session-modal-container .modal-container h4,.event-session-modal-container .modal-container h5,.event-session-modal-container .modal-container h6,.event-session-modal-container .modal-container p{color:black}.event-session-modal-container .modal-container .modal{height:85%;width:85%;background-color:white;border-radius:5px;padding:1.5rem;overflow-y:scroll}.event-session-modal-container .modal-container .modal .title-container{display:flex;border-bottom:1px solid black}.event-session-modal-container .modal-container .modal .title-container .title-text{width:75%;text-align:left}.event-session-modal-container .modal-container .modal .title-container .title-text h2{color:black}.event-session-modal-container .modal-container .modal .title-container .close-icon{width:25%;text-align:right}.event-session-modal-container .modal-container .modal .title-container .close-icon i{cursor:pointer;font-size:1.5rem}.event-session-modal-container .modal-container .modal .session-select-container{text-align:left}.event-session-modal-container .modal-container .modal .session-select-container p{font-size:1.25rem;margin-top:2rem}.event-session-modal-container .modal-container .modal .session-select-list{list-style:none;text-align:left;display:flex;flex-wrap:wrap;align-items:stretch}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container{width:10%;position:relative;cursor:pointer}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container input{position:absolute;opacity:0;height:0;width:0}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container .checkmark{position:absolute;height:25px;width:25px;border:2px solid #805ac3;border-radius:5px;background-color:white}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container .checkmark:after{content:"";position:absolute;display:none;left:8px;top:5px;width:5px;height:10px;border:solid white;border-width:0 3px 3px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container input:checked~.checkmark{background-color:#805ac3}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container input:checked~.checkmark:after{display:block}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-label{width:90%}.event-session-modal-container .modal-container .modal .session-select-list li{width:50%;padding:0.75rem}@media (max-width: 1024px){.event-session-modal-container .modal-container .modal .session-select-list li{width:100%}}.event-session-modal-container .modal-container .modal .session-select-list .session-selection-item{height:100%;display:flex;justify-items:center;align-items:start;cursor:pointer;border:1px solid black;border-radius:5px;padding:1rem;border-radius:5px}.event-session-modal-container .modal-container .modal .session-select-list .session-selection-item:hover{background-color:#f9f9fa}.event-session-modal-container .modal-container .modal .session-select-list .session-selection-item p{font-size:1rem;margin-top:0.5rem}@media (max-width: 1024px){.event-session-modal-container .modal-container .modal .session-select-list .session-selection-item h6{padding-left:1rem}}.event-session-modal-container .modal-container .modal .next-button-container{text-align:right}.event-session-modal-container .modal-container .modal .next-button-container .modal-button{display:inline-block}.event-session-modal-container .modal-container .modal .next-button-container .modal-button:hover{background-color:#4d3675}.event-session-modal-container .modal-container .modal .next-button-container .error-message{color:red}.event-session-modal-container .modal-container .modal .registration-form-container{text-align:left;padding-top:0.5rem}.event-session-modal-container .modal-container .modal .registration-form-container a{color:black}.event-session-modal-container .modal-container .modal .registration-form-container a:hover{text-decoration:underline}.event-session-modal-container .modal-container .modal .registration-form{max-width:36rem;margin:0 auto;text-align:left}.event-session-modal-container .modal-container .modal .registration-form form{padding:0.25rem}.event-session-modal-container .modal-container .modal .registration-form a{color:black;text-decoration:underline}.event-session-modal-container .modal-container .modal .registration-form a:hover{font-weight:bold}'}},ci=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.buttonClass="",this.loading=!0,this.isLoggedIn=!1}componentWillRender(){var e;try{const t=null!==(e=si().pulumi_web_user_info)&&void 0!==e?e:"j:{}",n=JSON.parse(decodeURIComponent(t).slice(2));n&&n.userId&&""!==n.userId&&(this.isLoggedIn=!0)}catch(e){}this.loading=!1}render(){if(!this.loading)return this.isLoggedIn?Xe("a",{class:this.buttonClass,"data-track":"header-signup",href:"https://app.pulumi.com/signup?utm_source=header-button",target:"_blank",rel:"noopener noreferrer",title:"Dashboard"},"Dashboard"):Xe("a",{class:this.buttonClass,"data-track":"header-signup",href:"https://app.pulumi.com/signup?utm_source=header-button",title:"Sign up"},"Sign up")}static get style(){return":host{display:block}"}},ui=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.leftItems="",this.centerItems="",this.rightItems="",this.imageClass="",this.columnOne=[],this.columnTwo=[],this.columnThree=[]}componentDidLoad(){this.columnOne=this.shuffleArray(this.leftItems.split(",")),this.columnTwo=this.shuffleArray(this.centerItems.split(",")),this.columnThree=this.shuffleArray(this.rightItems.split(",")),this.startRotators()}shuffleArray(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}return e}startRotators(){this.columnOneRotator=setInterval((()=>this.incrementColumnOne()),400),setTimeout((()=>{this.columnTwoRotator=setInterval((()=>this.incrementColumnTwo()),400)}),500),setTimeout((()=>{this.columnThreeRotator=setInterval((()=>this.incrementColumnThree()),400)}),1e3),setTimeout((()=>this.stopRotators()),3e3)}stopRotators(){clearInterval(this.columnOneRotator),setTimeout((()=>clearInterval(this.columnTwoRotator)),500),setTimeout((()=>clearInterval(this.columnThreeRotator)),1e3),setTimeout((()=>this.startRotators()),1e4)}incrementColumnOne(){this.columnOne=this.updateOrder(this.columnOne)}incrementColumnTwo(){this.columnTwo=this.updateOrder(this.columnTwo)}incrementColumnThree(){this.columnThree=this.updateOrder(this.columnThree)}updateOrder(e){const t=[...e],n=t.shift();return t.push(n),t}render(){const e=this.columnOne[0],t=this.columnTwo[0],n=this.columnThree[0];return Xe(Ze,null,Xe("div",null,Xe("div",{class:"slot-container"},Xe("div",{class:"item-container"},Xe("img",{key:e,class:this.imageClass,src:e})),Xe("div",{class:"separator-container"},"+"),Xe("div",{class:"item-container"},Xe("img",{key:t,class:this.imageClass,src:t})),Xe("div",{class:"separator-container"},"+"),Xe("div",{class:"item-container"},Xe("img",{key:n,class:this.imageClass,src:n})))))}static get style(){return"home-slots .slot-container{display:flex;align-items:center;justify-items:center;text-align:center}home-slots .slot-container .item-container{width:25%;text-align:center}home-slots .slot-container .item-container img{animation:fadeIn 500ms}home-slots .slot-container .separator-container{width:12.5%;text-align:center}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}"}},di=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.buttonClass="",this.loading=!0,this.isLoggedIn=!1}componentWillRender(){var e;try{const t=null!==(e=si().pulumi_web_user_info)&&void 0!==e?e:"j:{}",n=JSON.parse(decodeURIComponent(t).slice(2));n&&n.userId&&""!==n.userId&&(this.isLoggedIn=!0)}catch(e){}this.loading=!1}render(){if(!this.loading)return this.isLoggedIn?Xe("a",{class:this.buttonClass,href:"https://app.pulumi.com/?create-organization=1",target:"_blank"},"Create an Organization"):Xe("a",{class:this.buttonClass,href:"https://app.pulumi.com/signup/",target:"_blank"},"Sign Up")}};var pi="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function fi(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}function hi(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}var mi=fi((function(e,t){(function(){var n,r="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",s=16,a=32,l=64,c=128,u=256,d=1/0,p=9007199254740991,f=NaN,h=4294967295,m=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",a],["partialRight",l],["rearg",u]],v="[object Arguments]",g="[object Array]",y="[object Boolean]",b="[object Date]",w="[object Error]",_="[object Function]",S="[object GeneratorFunction]",x="[object Map]",O="[object Number]",$="[object Object]",k="[object Promise]",C="[object RegExp]",E="[object Set]",T="[object String]",P="[object Symbol]",j="[object WeakMap]",I="[object ArrayBuffer]",A="[object DataView]",L="[object Float32Array]",D="[object Float64Array]",M="[object Int8Array]",N="[object Int16Array]",R="[object Int32Array]",F="[object Uint8Array]",B="[object Uint8ClampedArray]",q="[object Uint16Array]",z="[object Uint32Array]",H=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,K=RegExp(W.source),J=RegExp(G.source),Y=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,re=RegExp(ne.source),ie=/^\s+/,oe=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,Se="\\ud800-\\udfff",xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Oe="\\u2700-\\u27bf",$e="a-z\\xdf-\\xf6\\xf8-\\xff",ke="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Ee="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="['’]",Pe="["+Se+"]",je="["+Ee+"]",Ie="["+xe+"]",Ae="\\d+",Le="["+Oe+"]",De="["+$e+"]",Me="[^"+Se+Ee+Ae+Oe+$e+ke+"]",Ne="\\ud83c[\\udffb-\\udfff]",Re="[^"+Se+"]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",qe="["+ke+"]",ze="\\u200d",He="(?:"+De+"|"+Me+")",Ue="(?:"+qe+"|"+Me+")",Ve="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ge="(?:"+Ie+"|"+Ne+")"+"?",Ke="["+Ce+"]?",Je=Ke+Ge+("(?:"+ze+"(?:"+[Re,Fe,Be].join("|")+")"+Ke+Ge+")*"),Ye="(?:"+[Le,Fe,Be].join("|")+")"+Je,Xe="(?:"+[Re+Ie+"?",Ie,Fe,Be,Pe].join("|")+")",Qe=RegExp(Te,"g"),Ze=RegExp(Ie,"g"),et=RegExp(Ne+"(?="+Ne+")|"+Xe+Je,"g"),tt=RegExp([qe+"?"+De+"+"+Ve+"(?="+[je,qe,"$"].join("|")+")",Ue+"+"+We+"(?="+[je,qe+He,"$"].join("|")+")",qe+"?"+He+"+"+Ve,qe+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ae,Ye].join("|"),"g"),nt=RegExp("["+ze+Se+xe+Ce+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ot=-1,st={};st[L]=st[D]=st[M]=st[N]=st[R]=st[F]=st[B]=st[q]=st[z]=!0,st[v]=st[g]=st[I]=st[y]=st[A]=st[b]=st[w]=st[_]=st[x]=st[O]=st[$]=st[C]=st[E]=st[T]=st[j]=!1;var at={};at[v]=at[g]=at[I]=at[A]=at[y]=at[b]=at[L]=at[D]=at[M]=at[N]=at[R]=at[x]=at[O]=at[$]=at[C]=at[E]=at[T]=at[P]=at[F]=at[B]=at[q]=at[z]=!0,at[w]=at[_]=at[j]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,ut=parseInt,dt="object"==typeof pi&&pi&&pi.Object===Object&&pi,pt="object"==typeof self&&self&&self.Object===Object&&self,ft=dt||pt||Function("return this")(),ht=t&&!t.nodeType&&t,mt=ht&&e&&!e.nodeType&&e,vt=mt&&mt.exports===ht,gt=vt&&dt.process,yt=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||gt&>.binding&>.binding("util")}catch(e){}}(),bt=yt&&yt.isArrayBuffer,wt=yt&&yt.isDate,_t=yt&&yt.isMap,St=yt&&yt.isRegExp,xt=yt&&yt.isSet,Ot=yt&&yt.isTypedArray;function $t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function kt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function It(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function tn(e,t){for(var n=e.length;n--&&qt(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var rn=Wt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),on=Wt({"&":"&","<":"<",">":">",'"':""","'":"'"});function sn(e){return"\\"+lt[e]}function an(e){return nt.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,r=e.length,i=0,s=[];++n",""":'"',"'":"'"});var gn=function e(t){var oe,Se=(t=null==t?ft:gn.defaults(ft.Object(),t,gn.pick(ft,it))).Array,xe=t.Date,Oe=t.Error,$e=t.Function,ke=t.Math,Ce=t.Object,Ee=t.RegExp,Te=t.String,Pe=t.TypeError,je=Se.prototype,Ie=$e.prototype,Ae=Ce.prototype,Le=t["__core-js_shared__"],De=Ie.toString,Me=Ae.hasOwnProperty,Ne=0,Re=(oe=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||""))?"Symbol(src)_1."+oe:"",Fe=Ae.toString,Be=De.call(Ce),qe=ft._,ze=Ee("^"+De.call(Me).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=vt?t.Buffer:n,Ue=t.Symbol,Ve=t.Uint8Array,We=He?He.allocUnsafe:n,Ge=cn(Ce.getPrototypeOf,Ce),Ke=Ce.create,Je=Ae.propertyIsEnumerable,Ye=je.splice,Xe=Ue?Ue.isConcatSpreadable:n,et=Ue?Ue.iterator:n,nt=Ue?Ue.toStringTag:n,lt=function(){try{var e=ho(Ce,"defineProperty");return e({},"",{}),e}catch(e){}}(),dt=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,pt=xe&&xe.now!==ft.Date.now&&xe.now,ht=t.setTimeout!==ft.setTimeout&&t.setTimeout,mt=ke.ceil,gt=ke.floor,yt=Ce.getOwnPropertySymbols,Rt=He?He.isBuffer:n,Wt=t.isFinite,yn=je.join,bn=cn(Ce.keys,Ce),wn=ke.max,_n=ke.min,Sn=xe.now,xn=t.parseInt,On=ke.random,$n=je.reverse,kn=ho(t,"DataView"),Cn=ho(t,"Map"),En=ho(t,"Promise"),Tn=ho(t,"Set"),Pn=ho(t,"WeakMap"),jn=ho(Ce,"create"),In=Pn&&new Pn,An={},Ln=qo(kn),Dn=qo(Cn),Mn=qo(En),Nn=qo(Tn),Rn=qo(Pn),Fn=Ue?Ue.prototype:n,Bn=Fn?Fn.valueOf:n,qn=Fn?Fn.toString:n;function zn(e){if(ia(e)&&!Gs(e)&&!(e instanceof Wn)){if(e instanceof Vn)return e;if(Me.call(e,"__wrapped__"))return zo(e)}return new Vn(e)}var Hn=function(){function e(){}return function(t){if(!ra(t))return{};if(Ke)return Ke(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Un(){}function Vn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function ur(e,t,r,i,o,s){var a,l=1&t,c=2&t,u=4&t;if(r&&(a=o?r(e,i,o,s):r(e)),a!==n)return a;if(!ra(e))return e;var d=Gs(e);if(d){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Me.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return ji(e,a)}else{var p=go(e),f=p==_||p==S;if(Xs(e))return $i(e,l);if(p==$||p==v||f&&!o){if(a=c||f?{}:bo(e),!l)return c?function(e,t){return Ii(e,vo(e),t)}(e,function(e,t){return e&&Ii(t,Da(t),e)}(a,e)):function(e,t){return Ii(e,mo(e),t)}(e,sr(a,e))}else{if(!at[p])return o?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case I:return ki(e);case y:case b:return new r(+e);case A:return function(e,t){var n=t?ki(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case L:case D:case M:case N:case R:case F:case B:case q:case z:return Ci(e,n);case x:return new r;case O:case T:return new r(e);case C:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case E:return new r;case P:return i=e,Bn?Ce(Bn.call(i)):{}}var i}(e,p,l)}}s||(s=new Xn);var h=s.get(e);if(h)return h;s.set(e,a),ca(e)?e.forEach((function(n){a.add(ur(n,t,r,n,e,s))})):oa(e)&&e.forEach((function(n,i){a.set(i,ur(n,t,r,i,e,s))}));var m=d?n:(u?c?so:oo:c?Da:La)(e);return Ct(m||e,(function(n,i){m&&(n=e[i=n]),rr(a,i,ur(n,t,r,i,e,s))})),a}function dr(e,t,r){var i=r.length;if(null==e)return!i;for(e=Ce(e);i--;){var o=r[i],s=t[o],a=e[o];if(a===n&&!(o in e)||!s(a))return!1}return!0}function pr(e,t,i){if("function"!=typeof e)throw new Pe(r);return Lo((function(){e.apply(n,i)}),t)}function fr(e,t,n,r){var i=-1,o=jt,s=!0,a=e.length,l=[],c=t.length;if(!a)return l;n&&(t=At(t,Xt(n))),r?(o=It,s=!1):t.length>=200&&(o=Zt,s=!1,t=new Yn(t));e:for(;++i-1},Kn.prototype.set=function(e,t){var n=this.__data__,r=ir(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Jn.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(Cn||Kn),string:new Gn}},Jn.prototype.delete=function(e){var t=po(this,e).delete(e);return this.size-=t?1:0,t},Jn.prototype.get=function(e){return po(this,e).get(e)},Jn.prototype.has=function(e){return po(this,e).has(e)},Jn.prototype.set=function(e,t){var n=po(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,i),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Kn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Kn){var r=n.__data__;if(!Cn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Jn(r)}return n.set(e,t),this.size=n.size,this};var hr=Di(Sr),mr=Di(xr,!0);function vr(e,t){var n=!0;return hr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function gr(e,t,r){for(var i=-1,o=e.length;++i0&&n(a)?t>1?br(a,t-1,n,r,i):Lt(i,a):r||(i[i.length]=a)}return i}var wr=Mi(),_r=Mi(!0);function Sr(e,t){return e&&wr(e,t,La)}function xr(e,t){return e&&_r(e,t,La)}function Or(e,t){return Pt(t,(function(t){return ea(e[t])}))}function $r(e,t){for(var r=0,i=(t=_i(t,e)).length;null!=e&&rt}function Tr(e,t){return null!=e&&Me.call(e,t)}function Pr(e,t){return null!=e&&t in Ce(e)}function jr(e,t,r){for(var i=r?It:jt,o=e[0].length,s=e.length,a=s,l=Se(s),c=1/0,u=[];a--;){var d=e[a];a&&t&&(d=At(d,Xt(t))),c=_n(d.length,c),l[a]=!r&&(t||o>=120&&d.length>=120)?new Yn(a&&d):n}d=e[0];var p=-1,f=l[0];e:for(;++p=a?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Gr(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)a!==e&&Ye.call(a,l,1),Ye.call(e,l,1);return e}function Jr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;_o(i)?Ye.call(e,i,1):fi(e,i)}}return e}function Yr(e,t){return e+gt(On()*(t-e+1))}function Xr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Qr(e,t){return Do(To(e,t,sl),e+"")}function Zr(e){return Zn(Ha(e))}function ei(e,t){var n=Ha(e);return Ro(n,cr(t,0,n.length))}function ti(e,t,r,i){if(!ra(e))return e;for(var o=-1,s=(t=_i(t,e)).length,a=s-1,l=e;null!=l&&++oi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Se(i);++r>>1,s=e[o];null!==s&&!da(s)&&(n?s<=t:s=200){var c=t?null:Xi(e);if(c)return dn(c);s=!1,i=Zt,l=new Yn}else l=t?[]:a;e:for(;++r=i?e:oi(e,t,r)}var Oi=dt||function(e){return ft.clearTimeout(e)};function $i(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function ki(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function Ci(e,t){var n=t?ki(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ei(e,t){if(e!==t){var r=e!==n,i=null===e,o=e==e,s=da(e),a=t!==n,l=null===t,c=t==t,u=da(t);if(!l&&!u&&!s&&e>t||s&&a&&c&&!l&&!u||i&&a&&c||!r&&c||!o)return 1;if(!i&&!s&&!u&&e1?r[o-1]:n,a=o>2?r[2]:n;for(s=e.length>3&&"function"==typeof s?(o--,s):n,a&&So(r[0],r[1],a)&&(s=o<3?n:s,o=1),t=Ce(t);++i-1?o[s?t[a]:a]:n}}function qi(e){return io((function(t){var i=t.length,o=i,s=Vn.prototype.thru;for(e&&t.reverse();o--;){var a=t[o];if("function"!=typeof a)throw new Pe(r);if(s&&!l&&"wrapper"==lo(a))var l=new Vn([],!0)}for(o=l?o:i;++o1&&y.reverse(),p&&ul))return!1;var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var p=-1,f=!0,h=2&r?new Yn:n;for(s.set(e,t),s.set(t,e);++p-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ct(m,(function(n){var r="_."+n[0];t&n[1]&&!jt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(le):[]}(r),n)))}function No(e){var t=0,r=0;return function(){var i=Sn(),o=16-(i-r);if(r=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ro(e,t){var r=-1,i=e.length,o=i-1;for(t=t===n?i:t;++r1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,ls(e,r)}));function ms(e){var t=zn(e);return t.__chain__=!0,t}function vs(e,t){return t(e)}var gs=io((function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,o=function(t){return lr(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Wn&&_o(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:vs,args:[o],thisArg:n}),new Vn(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(o)}));var ys=Ai((function(e,t,n){Me.call(e,n)?++e[n]:ar(e,n,1)}));var bs=Bi(Wo),ws=Bi(Go);function _s(e,t){return(Gs(e)?Ct:hr)(e,uo(t,3))}function Ss(e,t){return(Gs(e)?Et:mr)(e,uo(t,3))}var xs=Ai((function(e,t,n){Me.call(e,n)?e[n].push(t):ar(e,n,[t])}));var Os=Qr((function(e,t,n){var r=-1,i="function"==typeof t,o=Js(e)?Se(e.length):[];return hr(e,(function(e){o[++r]=i?$t(t,e,n):Ir(e,t,n)})),o})),$s=Ai((function(e,t,n){ar(e,n,t)}));function ks(e,t){return(Gs(e)?At:qr)(e,uo(t,3))}var Cs=Ai((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Es=Qr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&So(e,t[0],t[1])?t=[]:n>2&&So(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,br(t,1),[])})),Ts=pt||function(){return ft.Date.now()};function Ps(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Zi(e,c,n,n,n,n,t)}function js(e,t){var i;if("function"!=typeof t)throw new Pe(r);return e=ga(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var Is=Qr((function(e,t,n){var r=1;if(n.length){var i=un(n,co(Is));r|=a}return Zi(e,r,t,n,i)})),As=Qr((function(e,t,n){var r=3;if(n.length){var i=un(n,co(As));r|=a}return Zi(t,r,e,n,i)}));function Ls(e,t,i){var o,s,a,l,c,u,d=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new Pe(r);function m(t){var r=o,i=s;return o=s=n,d=t,l=e.apply(i,r)}function v(e){return d=e,c=Lo(y,t),p?m(e):l}function g(e){var r=e-u;return u===n||r>=t||r<0||f&&e-d>=a}function y(){var e=Ts();if(g(e))return b(e);c=Lo(y,function(e){var n=t-(e-u);return f?_n(n,a-(e-d)):n}(e))}function b(e){return c=n,h&&o?m(e):(o=s=n,l)}function w(){var e=Ts(),r=g(e);if(o=arguments,s=this,u=e,r){if(c===n)return v(u);if(f)return Oi(c),c=Lo(y,t),m(u)}return c===n&&(c=Lo(y,t)),l}return t=ba(t)||0,ra(i)&&(p=!!i.leading,a=(f="maxWait"in i)?wn(ba(i.maxWait)||0,t):a,h="trailing"in i?!!i.trailing:h),w.cancel=function(){c!==n&&Oi(c),d=0,o=u=s=c=n},w.flush=function(){return c===n?l:b(Ts())},w}var Ds=Qr((function(e,t){return pr(e,1,t)})),Ms=Qr((function(e,t,n){return pr(e,ba(t)||0,n)}));function Ns(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Pe(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Ns.Cache||Jn),n}function Rs(e){if("function"!=typeof e)throw new Pe(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ns.Cache=Jn;var Fs=Si((function(e,t){var n=(t=1==t.length&&Gs(t[0])?At(t[0],Xt(uo())):At(br(t,1),Xt(uo()))).length;return Qr((function(r){for(var i=-1,o=_n(r.length,n);++i=t})),Ws=Ar(function(){return arguments}())?Ar:function(e){return ia(e)&&Me.call(e,"callee")&&!Je.call(e,"callee")},Gs=Se.isArray,Ks=bt?Xt(bt):function(e){return ia(e)&&Cr(e)==I};function Js(e){return null!=e&&na(e.length)&&!ea(e)}function Ys(e){return ia(e)&&Js(e)}var Xs=Rt||bl,Qs=wt?Xt(wt):function(e){return ia(e)&&Cr(e)==b};function Zs(e){if(!ia(e))return!1;var t=Cr(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!aa(e)}function ea(e){if(!ra(e))return!1;var t=Cr(e);return t==_||t==S||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ta(e){return"number"==typeof e&&e==ga(e)}function na(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function ra(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ia(e){return null!=e&&"object"==typeof e}var oa=_t?Xt(_t):function(e){return ia(e)&&go(e)==x};function sa(e){return"number"==typeof e||ia(e)&&Cr(e)==O}function aa(e){if(!ia(e)||Cr(e)!=$)return!1;var t=Ge(e);if(null===t)return!0;var n=Me.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==Be}var la=St?Xt(St):function(e){return ia(e)&&Cr(e)==C};var ca=xt?Xt(xt):function(e){return ia(e)&&go(e)==E};function ua(e){return"string"==typeof e||!Gs(e)&&ia(e)&&Cr(e)==T}function da(e){return"symbol"==typeof e||ia(e)&&Cr(e)==P}var pa=Ot?Xt(Ot):function(e){return ia(e)&&na(e.length)&&!!st[Cr(e)]};var fa=Ki(Br),ha=Ki((function(e,t){return e<=t}));function ma(e){if(!e)return[];if(Js(e))return ua(e)?hn(e):ji(e);if(et&&e[et])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[et]());var t=go(e);return(t==x?ln:t==E?dn:Ha)(e)}function va(e){return e?(e=ba(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ga(e){var t=va(e),n=t%1;return t==t?n?t-n:t:0}function ya(e){return e?cr(ga(e),0,h):0}function ba(e){if("number"==typeof e)return e;if(da(e))return f;if(ra(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ra(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Yt(e);var n=me.test(e);return n||ge.test(e)?ut(e.slice(2),n?2:8):he.test(e)?f:+e}function wa(e){return Ii(e,Da(e))}function _a(e){return null==e?"":di(e)}var Sa=Li((function(e,t){if(ko(t)||Js(t))Ii(t,La(t),e);else for(var n in t)Me.call(t,n)&&rr(e,n,t[n])})),xa=Li((function(e,t){Ii(t,Da(t),e)})),Oa=Li((function(e,t,n,r){Ii(t,Da(t),e,r)})),$a=Li((function(e,t,n,r){Ii(t,La(t),e,r)})),ka=io(lr);var Ca=Qr((function(e,t){e=Ce(e);var r=-1,i=t.length,o=i>2?t[2]:n;for(o&&So(t[0],t[1],o)&&(i=1);++r1),t})),Ii(e,so(e),n),r&&(n=ur(n,7,no));for(var i=t.length;i--;)fi(n,t[i]);return n}));var Fa=io((function(e,t){return null==e?{}:function(e,t){return Gr(e,t,(function(t,n){return Pa(e,n)}))}(e,t)}));function Ba(e,t){if(null==e)return{};var n=At(so(e),(function(e){return[e]}));return t=uo(t),Gr(e,n,(function(e,n){return t(e,n[0])}))}var qa=Qi(La),za=Qi(Da);function Ha(e){return null==e?[]:Qt(e,La(e))}var Ua=Ri((function(e,t,n){return t=t.toLowerCase(),e+(n?Va(t):t)}));function Va(e){return Za(_a(e).toLowerCase())}function Wa(e){return(e=_a(e))&&e.replace(be,rn).replace(Ze,"")}var Ga=Ri((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ka=Ri((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ja=Ni("toLowerCase");var Ya=Ri((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Xa=Ri((function(e,t,n){return e+(n?" ":"")+Za(t)}));var Qa=Ri((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Za=Ni("toUpperCase");function el(e,t,r){return e=_a(e),(t=r?n:t)===n?function(e){return rt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var tl=Qr((function(e,t){try{return $t(e,n,t)}catch(e){return Zs(e)?e:new Oe(e)}})),nl=io((function(e,t){return Ct(t,(function(t){t=Bo(t),ar(e,t,Is(e[t],e))})),e}));function rl(e){return function(){return e}}var il=qi(),ol=qi(!0);function sl(e){return e}function al(e){return Nr("function"==typeof e?e:ur(e,1))}var ll=Qr((function(e,t){return function(n){return Ir(n,e,t)}})),cl=Qr((function(e,t){return function(n){return Ir(e,n,t)}}));function ul(e,t,n){var r=La(t),i=Or(t,r);null!=n||ra(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Or(t,La(t)));var o=!(ra(n)&&"chain"in n&&!n.chain),s=ea(e);return Ct(i,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=ji(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Lt([this.value()],arguments))})})),e}function dl(){}var pl=Vi(At),fl=Vi(Tt),hl=Vi(Nt);function ml(e){return xo(e)?Vt(Bo(e)):function(e){return function(t){return $r(t,e)}}(e)}var vl=Gi(),gl=Gi(!0);function yl(){return[]}function bl(){return!1}var wl=Ui((function(e,t){return e+t}),0),_l=Yi("ceil"),Sl=Ui((function(e,t){return e/t}),1),xl=Yi("floor");var Ol,$l=Ui((function(e,t){return e*t}),1),kl=Yi("round"),Cl=Ui((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new Pe(r);return e=ga(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Ps,zn.assign=Sa,zn.assignIn=xa,zn.assignInWith=Oa,zn.assignWith=$a,zn.at=ka,zn.before=js,zn.bind=Is,zn.bindAll=nl,zn.bindKey=As,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Gs(e)?e:[e]},zn.chain=ms,zn.chunk=function(e,t,r){t=(r?So(e,t,r):t===n)?1:wn(ga(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,s=0,a=Se(mt(i/t));oo?0:o+r),(i=i===n||i>o?o:ga(i))<0&&(i+=o),i=r>i?0:ya(i);r>>0)?(e=_a(e))&&("string"==typeof t||null!=t&&!la(t))&&!(t=di(t))&&an(e)?xi(hn(e),0,r):e.split(t,r):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new Pe(r);return t=null==t?0:wn(ga(t),0),Qr((function(n){var r=n[t],i=xi(n,0,t);return r&&Lt(i,r),$t(e,this,i)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?oi(e,1,t):[]},zn.take=function(e,t,r){return e&&e.length?oi(e,0,(t=r||t===n?1:ga(t))<0?0:t):[]},zn.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?oi(e,(t=i-(t=r||t===n?1:ga(t)))<0?0:t,i):[]},zn.takeRightWhile=function(e,t){return e&&e.length?mi(e,uo(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?mi(e,uo(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new Pe(r);return ra(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),Ls(e,t,{leading:i,maxWait:t,trailing:o})},zn.thru=vs,zn.toArray=ma,zn.toPairs=qa,zn.toPairsIn=za,zn.toPath=function(e){return Gs(e)?At(e,Bo):da(e)?[e]:ji(Fo(_a(e)))},zn.toPlainObject=wa,zn.transform=function(e,t,n){var r=Gs(e),i=r||Xs(e)||pa(e);if(t=uo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ra(e)&&ea(o)?Hn(Ge(e)):{}}return(i?Ct:Sr)(e,(function(e,r,i){return t(n,e,r,i)})),n},zn.unary=function(e){return Ps(e,1)},zn.union=is,zn.unionBy=os,zn.unionWith=ss,zn.uniq=function(e){return e&&e.length?pi(e):[]},zn.uniqBy=function(e,t){return e&&e.length?pi(e,uo(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?pi(e,n,t):[]},zn.unset=function(e,t){return null==e||fi(e,t)},zn.unzip=as,zn.unzipWith=ls,zn.update=function(e,t,n){return null==e?e:hi(e,t,wi(n))},zn.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:hi(e,t,wi(r),i)},zn.values=Ha,zn.valuesIn=function(e){return null==e?[]:Qt(e,Da(e))},zn.without=cs,zn.words=el,zn.wrap=function(e,t){return Bs(wi(t),e)},zn.xor=us,zn.xorBy=ds,zn.xorWith=ps,zn.zip=fs,zn.zipObject=function(e,t){return yi(e||[],t||[],rr)},zn.zipObjectDeep=function(e,t){return yi(e||[],t||[],ti)},zn.zipWith=hs,zn.entries=qa,zn.entriesIn=za,zn.extend=xa,zn.extendWith=Oa,ul(zn,zn),zn.add=wl,zn.attempt=tl,zn.camelCase=Ua,zn.capitalize=Va,zn.ceil=_l,zn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=ba(r))==r?r:0),t!==n&&(t=(t=ba(t))==t?t:0),cr(ba(e),t,r)},zn.clone=function(e){return ur(e,4)},zn.cloneDeep=function(e){return ur(e,5)},zn.cloneDeepWith=function(e,t){return ur(e,5,t="function"==typeof t?t:n)},zn.cloneWith=function(e,t){return ur(e,4,t="function"==typeof t?t:n)},zn.conformsTo=function(e,t){return null==t||dr(e,t,La(t))},zn.deburr=Wa,zn.defaultTo=function(e,t){return null==e||e!=e?t:e},zn.divide=Sl,zn.endsWith=function(e,t,r){e=_a(e),t=di(t);var i=e.length,o=r=r===n?i:cr(ga(r),0,i);return(r-=t.length)>=0&&e.slice(r,o)==t},zn.eq=Hs,zn.escape=function(e){return(e=_a(e))&&J.test(e)?e.replace(G,on):e},zn.escapeRegExp=function(e){return(e=_a(e))&&re.test(e)?e.replace(ne,"\\$&"):e},zn.every=function(e,t,r){var i=Gs(e)?Tt:vr;return r&&So(e,t,r)&&(t=n),i(e,uo(t,3))},zn.find=bs,zn.findIndex=Wo,zn.findKey=function(e,t){return Ft(e,uo(t,3),Sr)},zn.findLast=ws,zn.findLastIndex=Go,zn.findLastKey=function(e,t){return Ft(e,uo(t,3),xr)},zn.floor=xl,zn.forEach=_s,zn.forEachRight=Ss,zn.forIn=function(e,t){return null==e?e:wr(e,uo(t,3),Da)},zn.forInRight=function(e,t){return null==e?e:_r(e,uo(t,3),Da)},zn.forOwn=function(e,t){return e&&Sr(e,uo(t,3))},zn.forOwnRight=function(e,t){return e&&xr(e,uo(t,3))},zn.get=Ta,zn.gt=Us,zn.gte=Vs,zn.has=function(e,t){return null!=e&&yo(e,t,Tr)},zn.hasIn=Pa,zn.head=Jo,zn.identity=sl,zn.includes=function(e,t,n,r){e=Js(e)?e:Ha(e),n=n&&!r?ga(n):0;var i=e.length;return n<0&&(n=wn(i+n,0)),ua(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&qt(e,t,n)>-1},zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ga(n);return i<0&&(i=wn(r+i,0)),qt(e,t,i)},zn.inRange=function(e,t,r){return t=va(t),r===n?(r=t,t=0):r=va(r),function(e,t,n){return e>=_n(t,n)&&e=-9007199254740991&&e<=p},zn.isSet=ca,zn.isString=ua,zn.isSymbol=da,zn.isTypedArray=pa,zn.isUndefined=function(e){return e===n},zn.isWeakMap=function(e){return ia(e)&&go(e)==j},zn.isWeakSet=function(e){return ia(e)&&"[object WeakSet]"==Cr(e)},zn.join=function(e,t){return null==e?"":yn.call(e,t)},zn.kebabCase=Ga,zn.last=Zo,zn.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i;return r!==n&&(o=(o=ga(r))<0?wn(i+o,0):_n(o,i-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Bt(e,Ht,o,!0)},zn.lowerCase=Ka,zn.lowerFirst=Ja,zn.lt=fa,zn.lte=ha,zn.max=function(e){return e&&e.length?gr(e,sl,Er):n},zn.maxBy=function(e,t){return e&&e.length?gr(e,uo(t,2),Er):n},zn.mean=function(e){return Ut(e,sl)},zn.meanBy=function(e,t){return Ut(e,uo(t,2))},zn.min=function(e){return e&&e.length?gr(e,sl,Br):n},zn.minBy=function(e,t){return e&&e.length?gr(e,uo(t,2),Br):n},zn.stubArray=yl,zn.stubFalse=bl,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=$l,zn.nth=function(e,t){return e&&e.length?Vr(e,ga(t)):n},zn.noConflict=function(){return ft._===this&&(ft._=qe),this},zn.noop=dl,zn.now=Ts,zn.pad=function(e,t,n){e=_a(e);var r=(t=ga(t))?fn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Wi(gt(i),n)+e+Wi(mt(i),n)},zn.padEnd=function(e,t,n){e=_a(e);var r=(t=ga(t))?fn(e):0;return t&&rt){var i=e;e=t,t=i}if(r||e%1||t%1){var o=On();return _n(e+o*(t-e+ct("1e-"+((o+"").length-1))),t)}return Yr(e,t)},zn.reduce=function(e,t,n){var r=Gs(e)?Dt:Gt,i=arguments.length<3;return r(e,uo(t,4),n,i,hr)},zn.reduceRight=function(e,t,n){var r=Gs(e)?Mt:Gt,i=arguments.length<3;return r(e,uo(t,4),n,i,mr)},zn.repeat=function(e,t,r){return t=(r?So(e,t,r):t===n)?1:ga(t),Xr(_a(e),t)},zn.replace=function(){var e=arguments,t=_a(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,r){var i=-1,o=(t=_i(t,e)).length;for(o||(o=1,e=n);++ip)return[];var n=h,r=_n(e,h);t=uo(t),e-=h;for(var i=Jt(r,t);++n=s)return e;var l=r-fn(i);if(l<1)return i;var c=a?xi(a,0,l).join(""):e.slice(0,l);if(o===n)return c+i;if(a&&(l+=c.length-l),la(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=Ee(o.source,_a(fe.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var p=u.index;c=c.slice(0,p===n?l:p)}}else if(e.indexOf(di(o),l)!=l){var f=c.lastIndexOf(o);f>-1&&(c=c.slice(0,f))}return c+i},zn.unescape=function(e){return(e=_a(e))&&K.test(e)?e.replace(W,vn):e},zn.uniqueId=function(e){var t=++Ne;return _a(e)+t},zn.upperCase=Qa,zn.upperFirst=Za,zn.each=_s,zn.eachRight=Ss,zn.first=Jo,ul(zn,(Ol={},Sr(zn,(function(e,t){Me.call(zn.prototype,t)||(Ol[t]=e)})),Ol),{chain:!1}),zn.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),Ct(["drop","take"],(function(e,t){Wn.prototype[e]=function(r){r=r===n?1:wn(ga(r),0);var i=this.__filtered__&&!t?new Wn(this):this.clone();return i.__filtered__?i.__takeCount__=_n(r,i.__takeCount__):i.__views__.push({size:_n(r,h),type:e+(i.__dir__<0?"Right":"")}),i},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:uo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ct(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(sl)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Qr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return Ir(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(Rs(uo(e)))},Wn.prototype.slice=function(e,t){e=ga(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Wn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=ga(t))<0?r.dropRight(-t):r.take(t-e)),r)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(h)},Sr(Wn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=zn[i?"take"+("last"==t?"Right":""):t],s=i||/^find/.test(t);o&&(zn.prototype[t]=function(){var t=this.__wrapped__,a=i?[1]:arguments,l=t instanceof Wn,c=a[0],u=l||Gs(t),d=function(e){var t=o.apply(zn,Lt([e],a));return i&&p?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,f=!!this.__actions__.length,h=s&&!p,m=l&&!f;if(!s&&u){t=m?t:new Wn(this);var v=e.apply(t,a);return v.__actions__.push({func:vs,args:[d],thisArg:n}),new Vn(v,p)}return h&&m?e.apply(this,a):(v=this.thru(d),h?i?v.value()[0]:v.value():v)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=je[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Gs(i)?i:[],e)}return this[n]((function(n){return t.apply(Gs(n)?n:[],e)}))}})),Sr(Wn.prototype,(function(e,t){var n=zn[t];if(n){var r=n.name+"";Me.call(An,r)||(An[r]=[]),An[r].push({name:t,func:n})}})),An[zi(n,2).name]=[{name:"wrapper",func:n}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=ji(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ji(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ji(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Gs(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,r=this;r instanceof Un;){var i=zo(r);i.__index__=0,i.__values__=n,t?o.__wrapped__=i:t=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:vs,args:[rs],thisArg:n}),new Vn(t,this.__chain__)}return this.thru(rs)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return vi(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,et&&(zn.prototype[et]=function(){return this}),zn}();mt?((mt.exports=gn)._=gn,ht._=gn):ft._=gn}).call(pi)}));const vi=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.filterContent="",this.debouncedFilterTree=mi.debounce(this.debouncedFilterTree,300)}componentWillLoad(){this.loadNavigationData().then((()=>{}))}async loadNavigationData(){this.isLoading=!0;try{const e=await fetch(`/registry/packages/navs/${this.packageName}.json`),t=await e.json();this.parsedNodes=t,this.currentlyRenderedNodes=this.parsedNodes}catch(e){return}this.isLoading=!1}filterTreeToMatchingContent(e,t,n,r){const i=this.filterTreeToMatchingRecursive(e,t,n,r);this.currentlyRenderedNodes=i}filterTreeToMatchingRecursive(e,t,n,r,i={},o=[""]){t.map((t=>{const s=o.join("")+t.name,a=o.join(""),l=n?n.name:"",c=!!i[s],u=!!n&&!!i[l],d=!!r&&!!i[a];if(!c){if(t.name.toLowerCase().includes(this.filterContent)){if(!u&&n){const t=Object.assign(Object.assign({},n),{children:[],isExpanded:!0,rootName:l});e.push(t),i[l]=!0}if(!d&&r){const t=Object.assign(Object.assign({},r),{children:[],isExpanded:!0,parentName:n.name,rootName:l});e.push(t),i[a]=!0}if(r){const n=Object.assign(Object.assign({},t),{children:[],parentName:r.name,isExpanded:!0,rootName:l});e.push(n),i[s]=!0}else if(n){const r=Object.assign(Object.assign({},t),{children:[],parentName:n.name,isExpanded:!0,rootName:l});e.push(r),i[s]=!0}else{const n=Object.assign(Object.assign({},t),{children:[],parentName:void 0,isExpanded:!0,rootName:l});e.push(n),i[s]=!0}}if(t.children){const r=n||t,s=n?t:null;this.filterTreeToMatchingRecursive(e,t.children,r,s,i,o.concat([t.name]))}}}));const s=e.filter((e=>void 0===e.parentName));return s.map((t=>{var n;t.children=e.filter((e=>e.parentName===t.name)),null===(n=t.children)||void 0===n||n.map((n=>{n.children=e.filter((e=>e.parentName===n.name&&e.rootName===t.name))}))})),[...s]}onChange(e){this.debouncedFilterTree(e)}onClearFilter(){this.filterContent="",this.currentlyRenderedNodes=this.parsedNodes}debouncedFilterTree(e){this.filterContent=e.target.value.trim().toLowerCase(),this.filterContent.length<2?this.currentlyRenderedNodes=this.parsedNodes:this.filterTreeToMatchingContent([],this.parsedNodes)}getFilterAndNavTree(){var e,t;return Xe("div",{class:"filter-and-nav-tree"},Xe("div",{class:"input-container"},Xe("input",{class:"navigation-filter-input",placeholder:"Filter",onInput:this.onChange.bind(this),value:this.filterContent}),this.filterContent&&Xe("div",{class:"clear-container"},Xe("button",{onClick:this.onClearFilter.bind(this),class:"clear-filter-button"},"X"))),1===(null===(e=this.filterContent)||void 0===e?void 0:e.length)&&Xe("div",{class:"filter-help-text"},"Provide at least two characters to filter."),(null===(t=this.currentlyRenderedNodes)||void 0===t?void 0:t.length)<1&&Xe("div",{class:"no-results"},"No results found. Try a different filter."),Xe("pulumi-api-doc-nav-tree",{class:"nav-tree",baseDirectory:this.baseDirectory,nodes:this.currentlyRenderedNodes}))}getLoadingState(){return Xe("div",{class:"loading"},Xe("i",{class:"loading-icon fas fa-spinner"}),Xe("span",{class:"loading-text"},"Loading..."))}render(){return Xe("section",{class:"api-doc-nav"},this.isLoading?this.getLoadingState():this.getFilterAndNavTree())}static get style(){return'.api-doc-nav{width:100%;max-width:375px}.api-doc-nav .filter-help-text{font-size:14px}.api-doc-nav .no-results{font-size:14px}.api-doc-nav .loading .loading-icon{margin-right:1rem}.api-doc-nav .navigation-header{font-family:var(--heading-font);font-weight:400;font-size:18px;color:#000;margin-top:0;margin-bottom:14px}.api-doc-nav .input-container{display:inline-block;position:relative;margin-left:12px}.api-doc-nav .input-container .clear-container{position:absolute;display:flex;align-items:center;margin-right:20px;top:0;right:0;height:100%}.api-doc-nav .input-container .clear-filter-button{display:flex;align-items:center;justify-content:center;height:18px;width:18px;font-size:xx-small;background:#dcdcdc;color:#808080;border-radius:50%;border:none;cursor:pointer;padding:0px}.api-doc-nav .input-container .navigation-filter-input{font-family:"Gilroy";font-size:16px;height:20px;width:90%;border-radius:4px;border:1px solid #000;padding:10px;margin-top:0;box-sizing:content-box}.api-doc-nav .input-container .navigation-filter-input:focus{outline-color:#4d5bd9}.api-doc-nav .nav-tree{width:100%;min-width:100%;max-width:100%}.api-doc-nav .nav-tree{display:block}.api-doc-nav .filter-and-nav-tree{margin-right:12px}'}},gi=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.depth=0}componentWillLoad(){this.isExpanded=!!this.node.isExpanded||this.isNodeInPathForCurrentlyVisiblePage(this.node.name)}onExpansionChange(e,t=!1){t&&(window.location.href=e),this.isExpanded=!this.isExpanded}handleLinkClick(e,t){e.stopPropagation(),window.location.href=t}componentShouldUpdate(e,t,n){if("isExpanded"===n)return!0!==t||!1!==e}getIcon(e){return Xe("div",{class:"symbol-container"},Xe("slot",{name:"before-content"},Xe("span",{class:`symbol ${e}`})))}isNodeInPathForCurrentlyVisiblePage(e){return window.location.pathname.includes(`/${e}/`)}shouldNodeBeSelected(e){return window.location.pathname.split("/").filter((e=>""!==e)).join("/")===e.split("/").filter((e=>""!==e)).join("/")}getChildNodes(e,t,n=1,r=this.href){const i=Xe("pulumi-tree-item",{slot:"item",selected:!1,expanded:!1,title:"dummy"});return!t&&(null==e?void 0:e.length)?i:null==e?void 0:e.map((e=>{const t="/"===e.link.charAt(e.link.length-1)?e.link:`${e.link}/`,i=`${r}${t}`,o=!!e.children&&0===e.children.length;return Xe("details",{open:this.isExpanded,"data-expandable":e.children&&e.children.length>0?"true":"false",class:"nav-tree-item nested",id:e.name,title:e.name,onClick:()=>this.onExpansionChange(i,!o)},Xe("summary",{class:"content-container "+(o?"":"is-link"),"data-selected":this.shouldNodeBeSelected(i)?"true":"false"},Xe("a",{class:`depth-${n}`,href:i,onClick:e=>this.handleLinkClick(e,i)},this.getIcon(e.type),Xe("span",{class:"link-container"},e.name))),this.getChildNodes(e.children,this.isExpanded,n+1,i))}))}render(){return Xe("details",{open:this.isExpanded,"data-expandable":this.node.children&&this.node.children.length>0?"true":"false",class:"nav-tree-item nested",id:this.node.name,title:this.node.name,onClick:()=>this.onExpansionChange(this.href,0===this.node.children.length)},Xe("summary",{class:"content-container","data-selected":this.shouldNodeBeSelected(this.href)?"true":"false"},Xe("a",{class:`depth-${this.depth}`,href:this.href,onClick:e=>this.handleLinkClick(e,this.href)},this.getIcon(this.node.type),Xe("span",{class:"link-container"},this.node.name))),this.getChildNodes(this.node.children,this.isExpanded))}},yi=class extends HTMLElement{constructor(){super(),this.__registerHost()}getNodes(e=this.nodes){return null==e?void 0:e.map((e=>{const t="/"===e.link.charAt(e.link.length-1)?e.link:`${e.link}/`,n=`${this.baseDirectory}${t}`;return Xe("pulumi-api-doc-nav-node",{node:e,isExpanded:e.isExpanded,href:n})}))}render(){return Xe("div",null,this.getNodes())}static get style(){return'@charset "UTF-8";.symbol-container{height:100%;display:flex;align-items:center}.symbol{height:14px;width:14px;border-width:1px;border-style:solid;box-sizing:border-box;border-radius:50%;margin-right:6px}.symbol.module,.symbol.function,.symbol.resource{display:flex;align-items:center;justify-content:center;box-sizing:border-box}.symbol.module{border-color:#1d8673}.symbol.module:before{content:"M";color:#1d8673;font-size:9px;font-weight:700}.symbol.function{border-color:red}.symbol.function:before{content:"F";color:red;font-size:9px;font-weight:700}.symbol.resource{border-color:#3e49ae}.symbol.resource:before{content:"R";color:#3e49ae;font-size:9px;font-weight:700}.nav-tree-item a{height:100%;display:flex;align-items:center;text-decoration:none;color:#2b2b2c;max-width:24ch}.nav-tree-item a:hover{text-decoration:underline}.nav-tree-item summary{width:100%;padding-left:8px}@media (max-width: 1279px){.nav-tree-item summary.depth-0{max-width:12ch}.nav-tree-item summary.depth-1{max-width:10ch}.nav-tree-item summary.depth-2{max-width:8ch}}@media (min-width: 1280px){.nav-tree-item summary.depth-0{max-width:24ch}.nav-tree-item summary.depth-1{max-width:22ch}.nav-tree-item summary.depth-2{max-width:20ch}}.content-container{height:100%;width:100%;display:flex;align-items:center}.link-container{display:block;overflow:hidden;text-overflow:ellipsis}details{padding:0.25rem 0.5rem}details summary{list-style:none;padding:0.25rem 0rem;cursor:pointer}details summary:hover{background-color:#f9f9f9}details summary.is-link:hover{text-decoration:underline}details summary[data-selected=true]{background-color:#e0e0e0;font-weight:bold}details summary[data-selected=true] a:hover{text-decoration:none}details summary::-webkit-details-marker{display:none}details summary a{padding:0.25rem}details[data-expandable]>summary::before{font-family:"Font Awesome 5 Free";font-weight:900;content:"";display:inline-block;cursor:none;visibility:hidden}details[data-expandable=true]>summary::before{margin-right:0.5rem;cursor:pointer;visibility:visible}details[data-expandable=true][open]>summary::before{transform:rotate(90deg)}'}},bi=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.paused=!0,this.isLoading=!1,this.error=!1}componentDidLoad(){const e=this.getAudio();e&&(e.volume=1,e.muted=!1),e.addEventListener("pause",(()=>this.paused=!0)),e.addEventListener("play",(()=>this.paused=!1))}toggleMute(){if(this.isLoading)return;const e=this.getAudio();e.paused?(this.isLoading=!0,e.play().then((()=>{this.isLoading=!1})).catch((()=>{this.error=!0}))):e.pause()}getAudio(){return this.el.querySelector("audio")}renderError(){return Xe("div",{class:"audio-container"},Xe("div",{class:"error-callout"},"Music Cannot Be Played"))}renderAudio(){const e=this.paused?this.pausedText:this.playingText,t=this.isLoading?"fa-cog fa-spin":"fas fa-music";return Xe("div",{class:"audio-container",onClick:this.toggleMute.bind(this)},Xe("div",{class:"audio-button"},Xe("i",{class:`fas ${t}`}),e),Xe("audio",{preload:"none",loop:!0},Xe("source",{src:this.url,type:"audio/mpeg"})))}render(){return this.error?this.renderError():this.renderAudio()}get el(){return this}},wi=(()=>{let e;return{getStore:()=>e,setStore:t=>{e=t},getState:()=>e&&e.getState(),mapDispatchToProps:(t,n)=>{Object.keys(n).forEach((r=>{const i=n[r];Object.defineProperty(t,r,{get:()=>(...t)=>e.dispatch(i(...t)),configurable:!0,enumerable:!0})}))},mapStateToProps:(t,n)=>{const r=(r,i)=>{const o=n(e.getState());Object.keys(o).forEach((e=>{const n=o[e];t[e]=n}))},i=e.subscribe((()=>r()));return r(),i}}})();var _i;!function(e){e.SET_LANGUAGE="SET_LANGUAGE",e.SET_K8S_LANGUAGE="SET_K8S_LANGUAGE",e.SET_INPUT_KIND="SET_INPUT_KIND",e.SET_OS="SET_OS",e.SET_CLOUD="SET_CLOUD",e.SET_PERSONA="SET_PERSONA",e.SET_BACKEND="SET_BACKEND",e.DISMISS_BANNER="DISMISS_BANNER",e.GET_USER_INFO="GET_USER_INFO"}(_i||(_i={}));const Si=e=>(t,n)=>{t({type:_i.DISMISS_BANNER,payload:{name:e,dismissedAt:Date.now()}})},xi=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.dismissible=!0,this.visible=!1}onRendered(e){wi.mapDispatchToProps(this,{dismissBanner:Si}),this.storeUnsubscribe=wi.mapStateToProps(this,(e=>({visible:!!this.name&&!e.banners.dismissed.find((e=>e.name===this.name))})))}disconnectedCallback(){this.storeUnsubscribe&&this.storeUnsubscribe()}render(){return Xe("div",null,Xe("slot",null),Xe("div",{class:"dismiss",onClick:e=>this.dismiss(e),title:"Dismiss"},Xe("span",null,"×")))}dismiss(e){this.dismissBanner(this.name)}static get style(){return"pulumi-banner{display:block;position:relative}pulumi-banner .dismiss{cursor:pointer;display:none;position:absolute;top:50%;right:16px;transform:translateY(-50%)}pulumi-banner[dismissible] .dismiss{display:block}pulumi-banner[dismissed]{display:none}"}},Oi=class extends HTMLElement{constructor(){super(),this.__registerHost()}onModeChange(e){"local"===e&&this.storeUnsubscribe&&this.storeUnsubscribe()}disconnectedCallback(){this.storeUnsubscribe&&this.storeUnsubscribe()}onRendered(e){this.mode="global","global"===this.mode&&(this.storeUnsubscribe=wi.mapStateToProps(this,(e=>{const{preferences:{language:t,k8sLanguage:n,os:r,cloud:i,persona:o,backend:s}}=e;switch(this.type){case"language":return{selection:t};case"k8s-language":return{selection:n};case"os":return{selection:r};case"cloud":return{selection:i};case"persona":return{selection:o};case"backend":return{selection:s}}})))}render(){const e=this.values?this.values.split(",").map((e=>e.trim())):[],t=this.selection&&(this.selection===this.value||e.includes(this.selection));return Xe("div",{class:t?"active":""},Xe("slot",null))}get el(){return this}static get watchers(){return{mode:["onModeChange"]}}static get style(){return"pulumi-choosable>*{display:none}pulumi-choosable>*.active{display:inherit}"}},$i=e=>(t,n)=>t(e),ki=e=>$i({key:e,type:_i.SET_LANGUAGE}),Ci=e=>$i({key:e,type:_i.SET_K8S_LANGUAGE}),Ei=e=>$i({key:e,type:_i.SET_OS}),Ti=e=>$i({key:e,type:_i.SET_CLOUD}),Pi=e=>$i({key:e,type:_i.SET_PERSONA}),ji=e=>$i({key:e,type:_i.SET_BACKEND}),Ii=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.currentOptions=[],this.supportedBackEnds=[{key:"service",name:"Service",preview:!1},{key:"self-managed",name:"Self Managed",preview:!1}],this.supportedPersonas=[{key:"developer",name:"Developers",preview:!1},{key:"devops",name:"DevOps & Infra Teams",preview:!1},{key:"security",name:"Security Engineers",preview:!1},{key:"leader",name:"Engineering Leaders",preview:!1}],this.supportedLanguages=[{key:"typescript",name:"TypeScript",extension:"ts",preview:!1},{key:"javascript",name:"JavaScript",extension:"js",preview:!1},{key:"python",name:"Python",extension:"py",preview:!1},{key:"go",name:"Go",extension:"go",preview:!1},{key:"csharp",name:"C#",extension:"cs",preview:!1},{key:"fsharp",name:"F#",extension:"fs",preview:!1},{key:"visualbasic",name:"VB",extension:"vb",preview:!1},{key:"java",name:"Java",extension:"java",preview:!1},{key:"yaml",name:"YAML",extension:"yaml",preview:!1}],this.supportedk8sLanguages=[{key:"typescript",name:"TypeScript",preview:!1},{key:"typescript-kx",name:"TypeScript KX",preview:!1},{key:"yaml",name:"YAML",preview:!1}],this.supportedOSs=[{key:"macos",name:"macOS",preview:!1},{key:"windows",name:"Windows",preview:!1},{key:"linux",name:"Linux",preview:!1}],this.supportedClouds=[{key:"aws",name:"AWS",preview:!1},{key:"azure",name:"Azure",preview:!1},{key:"gcp",name:"Google Cloud",preview:!1},{key:"kubernetes",name:"Kubernetes",preview:!1},{key:"digitalocean",name:"DigitalOcean",preview:!1},{key:"docker",name:"Docker",preview:!1}]}componentWillLoad(){this.parseOptions()}disconnectedCallback(){this.storeUnsubscribe&&this.storeUnsubscribe()}componentDidRender(){this.applyChoice()}onRendered(e){this.mode="global",this.optionStyle="tabbed",this.parseOptions(),wi.mapDispatchToProps(this,{setLanguage:ki,setK8sLanguage:Ci,setOS:Ei,setCloud:Ti,setPersona:Pi,setBackEnd:ji}),this.storeUnsubscribe=wi.mapStateToProps(this,(e=>{const{preferences:{language:t,k8sLanguage:n,os:r,cloud:i,persona:o,backend:s}}=e,a=e=>{if(!this.currentOptions.find((t=>t.key===e))){const t=this.currentOptions[0];e=t.key,this.choosables.length>0?(this.mode="local",this.choosables.forEach((e=>{e.setAttribute("mode","local")})),setTimeout((()=>this.storeUnsubscribe()))):setTimeout((()=>this.setChoice(this.type,t)))}return{selection:e}};switch(this.type){case"language":return a(t);case"k8s-language":return a(n);case"os":return a(r);case"cloud":return a(i);case"persona":return a(o);case"backend":return a(s);default:return{}}}))}render(){return Xe(Ze,{selection:this.selection},Xe("ul",null,this.currentOptions.map((e=>Xe("li",{class:this.selection===e.key?"active":""},Xe("a",{onClick:t=>this.makeChoice(t,this.type,e)},e.name," ",e.preview?Xe("span",null,"PREVIEW"):""))))),Xe("slot",null))}get choosables(){return this.el.querySelectorAll("pulumi-choosable")}parseOptions(){if(this.currentOptions=[],!this.type)throw new Error("Chooser attribute `type` is required.");if(!this.options)throw new Error("Chooser attribute `options` is required.");try{const e=this.options.split(",").map((e=>e.trim()));this.mapOptions(this.type,e)}catch(e){throw console.error(`Error parsing chooser options "${this.options}"`),e}}mapOptions(e,t){let n=[];switch(e){case"language":n=this.supportedLanguages;break;case"k8s-language":n=this.supportedk8sLanguages;break;case"os":n=this.supportedOSs;break;case"cloud":n=this.supportedClouds;break;case"persona":n=this.supportedPersonas;break;case"backend":n=this.supportedBackEnds}this.currentOptions=n.filter((e=>t.includes(e.key)))}makeChoice(e,t,n){this.setChoice(t,n);var r=e.target,i=r.getBoundingClientRect().top;window.requestAnimationFrame((()=>{const e=this.getDistanceFromDocumentTop(r);window.scroll(0,e-i)}))}getDistanceFromDocumentTop(e){let t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t}setChoice(e,t){const n=t.key;if(this.selection=n,"local"!==this.mode)switch(e){case"language":this.setLanguage(n);break;case"k8s-language":this.setK8sLanguage(n);break;case"os":this.setOS(n);break;case"cloud":this.setCloud(n);break;case"persona":this.setPersona(n);break;case"backend":this.setBackEnd(n)}}applyChoice(){this.selection&&this.choosables.forEach((e=>{e.setAttribute("selection",this.selection)}))}get el(){return this}static get style(){return"pulumi-chooser[option-style=none]>ul{display:none}pulumi-chooser>*{display:inherit}pulumi-chooser pulumi-choosable{display:inherit}"}},Ai=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.defaultFormId=""}componentWillLoad(){this.parsedItems=JSON.parse(this.items).map((e=>({key:e.key,label:e.label?e.label:e.key.charAt(0).toUpperCase()+e.key.slice(1),hubspotFormId:e.hubspot_form_id,cta:e.cta})));const e=oi("form");if(e){const t=this.parsedItems.find((t=>t.key.toLowerCase()===e.toLowerCase()));if(t)return void(this.defaultFormId=t.hubspotFormId)}}render(){return Xe("pulumi-multi-select-form",{items:this.parsedItems,selectClass:this.selectClass,labelClass:this.labelClass,labelText:"Why are you contacting us today?",defaultFormId:this.defaultFormId})}static get style(){return":host{display:block}"}};function Li(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))}function Di(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]-1||Gi(document.body,e)||function(e){var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important"),t.textContent="temporary element",document.body.appendChild(t);var n=Gi(t,e);return document.body.removeChild(t),n}(e)||function(e){var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important");var n=t;t.attachShadow&&(n=t.attachShadow({mode:"open"}));var r=document.createElement("span");r.innerText=e,n.appendChild(r),document.body.appendChild(t),Ki(r);var i=document.execCommand("copy");return Ji(),document.body.removeChild(t),i}(e["text/plain"])?[2,!0]:[2,!1]}))}))}function Xi(e){return Li(this,void 0,void 0,(function(){return Di(this,(function(t){if(zi)return[2,zi(e)];if(!Yi(function(e){var t={};return t["text/plain"]=e,t}(e)))throw new Error("writeText() failed");return[2]}))}))}const Qi=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.sourceFiles=[],this.theme="",this.converting=!1,this.convertible=!1,this.alertDismissed=!1,this.supportedLanguages=[{key:"typescript",name:"TypeScript",filename:"index.ts"},{key:"python",name:"Python",filename:"__main__.py"},{key:"go",name:"Go",filename:"main.go"},{key:"csharp",name:"C#",filename:"MyStack.cs"}]}componentDidLoad(){try{this.validateProps(),this.validateGlobals(),this.prepareEditors(),this.prepareSourceFiles()}catch(e){console.error(e.message)}}get inputEditorEl(){return this.el.querySelector("#editor-input")}get outputEditorEl(){return this.el.querySelector("#editor-output")}get inputEditorMode(){switch(this.from){case"tf":return"ruby";case"kube":case"cf":return"yaml";case"arm":return"javascript"}}get inputEditorValue(){return this.inputEditor.getValue()}get inputEditorDefaultFilename(){switch(this.from){case"tf":return"main.tf";case"kube":return"kube.yaml";case"arm":return"azuredeploy.json";case"cf":return"aws.yaml"}}get sourceLanguageName(){switch(this.from){case"tf":return"Terraform";case"kube":return"Kubernetes YAML";case"arm":return"ARM";case"cf":return"CloudFormation"}}get endpointPath(){switch(this.from){case"tf":return"convert";case"arm":return"convertARM";case"kube":return"convertKube";case"cf":return"convertCFN"}}get conversionTool(){switch(this.from){case"tf":return{name:"the Terraform converter",githubURL:"https://github.com/pulumi/pulumi"};case"kube":return{name:"the Kubernetes converter",githubURL:"https://github.com/pulumi/pulumi"};case"arm":return{name:"the ARM converter",githubURL:"https://github.com/pulumi/pulumi"};case"cf":return{name:"cf2pulumi",githubURL:"https://github.com/pulumi/pulumi-aws-native"};default:return{name:`${this.from}2pulumi`,githubURL:"https://github.com/pulumi/pulumi"}}}validateGlobals(){if([typeof CodeMirror,typeof JSZip,typeof saveAs].filter((e=>"undefined"===e)).length>0)throw new Error("The pulumi-convert component requires CodeMirror, JZSip, and FileSaver. Please ensure each of these scripts has been loaded into global before using it.")}validateProps(){const e=[];this.from&&["tf","kube","arm","cf"].includes(this.from)||e.push("A valid `from` attribute is required.");try{this.endpointURL=new URL(this.endpoint)}catch(t){e.push("A valid `endpoint` attribute is required.")}if(this.examples||console.warn("A list of examples was provided."),this.theme||console.warn("A CodeMirror theme was not specified. The Using `material-ocean`."),e.length)throw new Error(e.join("\n"))}prepareEditors(){this.selectedOutputLanguage=this.supportedLanguages[0];const e={lineNumbers:!0,theme:this.theme||""};this.inputEditor=CodeMirror.fromTextArea(this.inputEditorEl,Object.assign(Object.assign({},e),{indentUnit:["kube","cf"].includes(this.from)?2:4,mode:this.inputEditorMode})),this.outputEditor=CodeMirror.fromTextArea(this.outputEditorEl,Object.assign(Object.assign({},e),{readOnly:!0})),this.inputEditor.on("change",(()=>{this.convertible=""!==this.inputEditorValue.trim(),this.selectedSourceFile===this.customSourceFile&&(this.customSourceFile.code=this.inputEditorValue)})),this.inputEditor.on("keydown",((e,t)=>{!t.metaKey||"Enter"!==t.key&&"s"!==t.key||(t.preventDefault(),this.convert())}))}prepareSourceFiles(){if(this.sourceFiles=[],this.examples&&this.examples.length>0)try{this.sourceFiles.push(...JSON.parse(this.examples))}catch(e){console.error("Failed to load examples:",e)}this.customSourceFile={name:"Custom",description:`Convert your own ${this.sourceLanguageName} code.`,filename:this.inputEditorDefaultFilename,code:""},this.sourceFiles.push(this.customSourceFile),this.selectSourceFile(this.sourceFiles[0]),this.convert()}selectSourceFile(e){this.selectedSourceFile=e,this.inputEditor.setValue(e.code),this.inputEditor.clearHistory(),this.convert()}selectOutputLanguage(e){this.selectedOutputLanguage=e,this.convert()}setOutputResult(e){this.outputResult=e,this.outputEditor.setValue(e?e.code:"")}copyToClipboard(){Xi(this.outputEditor.getValue())}downloadZip(){const e=new JSZip;e.file(this.outputResult.filename,this.outputResult.code),e.generateAsync({type:"blob"}).then((e=>{saveAs(e,`${this.from}2pulumi.zip`)}))}dismissAlert(){this.alertDismissed=!0}async convert(){var e;this.setOutputResult(null);const t=this.inputEditorValue,n=this.selectedOutputLanguage;if(t){this.converting=!0,this.alertDismissed=!1;try{const r=await fetch([this.endpointURL,this.endpointPath].join("/"),{method:"POST",mode:"cors",body:JSON.stringify({code:t,language:n.key})}),i=await r.json();if(i.error)this.setOutputResult({filename:"",code:"",diagnostics:i.diagnostics||"",status:{success:!1,message:i.error}});else if(i.files){let[t,r]=Object.entries(i.files)[0];t.match(/\w+\.\w+/)||(t=this.supportedLanguages.find((e=>e.key===n.key)).filename);const o=(null===(e=i.diagnostics)||void 0===e?void 0:e.replace(/^no diagnostics$/,""))||"";t&&r&&this.setOutputResult({filename:t,code:r,diagnostics:o,status:{success:!0,message:t}}),o&&(this.outputResult.diagnostics=o)}}catch(e){console.error(`Submission failed: ${e}`)}this.converting=!1}}get statusBarClasses(){const e=["status-bar"];return this.converting&&e.push("converting"),this.outputResult&&(this.outputResult.diagnostics?e.push("warn"):e.push(this.outputResult.status.success?"success":"error")),e.join(" ")}combineClasses(...e){return e.filter((e=>e&&""!==e)).join(" ")}trackEventLabel(e){return this.from&&this.selectedOutputLanguage?["convert",this.from,e,this.selectedOutputLanguage.key].join("-"):""}renderToolDescription(){let e=this.conversionTool.githubURL?Xe("a",{href:this.conversionTool.githubURL},this.conversionTool.name):this.conversionTool.name;switch(this.from){case"tf":e=Xe("code",null,"pulumi convert --from terraform");break;case"arm":e=Xe("code",null,"pulumi convert --from arm");break;case"kube":e=Xe("code",null,"pulumi convert --from kubernetes")}return Xe("p",null,"Your code will be converted with"," ",e,", an open-source command-line tool we built to make it as easy as possible for you to migrate your existing ",this.sourceLanguageName," projects to Pulumi. The resulting file can be copied or downloaded for use with ",Xe("a",{href:"https://pulumi.com/start"},"a new Pulumi project"),".")}renderWindowBar(){return Xe("div",{class:"window-bar"},Xe("div",{class:"window-bar-buttons"},Xe("div",{class:"window-bar-button"}),Xe("div",{class:"window-bar-button"}),Xe("div",{class:"window-bar-button"})))}renderTab(e,t,n,r,i){return Xe("li",{onClick:i.bind(this,e),"data-track":this.trackEventLabel("tab"),class:this.combineClasses("tab",e===t?"active":""),title:r},Xe("span",{class:"label"},n),Xe("span",{class:"indicator"}))}renderConvertButton(e){var t;const n=`Convert this ${this.sourceLanguageName} code to ${null===(t=this.selectedOutputLanguage)||void 0===t?void 0:t.name}`,r=Xe("button",{onClick:this.convert.bind(this),"data-track":this.trackEventLabel("button"),class:this.combineClasses("btn-convert",this.converting?"converting":""),title:n,disabled:!this.convertible||this.converting},Xe("span",{class:"label"},"Convert"),Xe("span",{class:"icon"}));return e?Xe("pulumi-tooltip",null,r,Xe("span",{slot:"content"},n)):r}renderDismissAlertButton(){return Xe("button",{class:"toggle",title:"Dismiss this message",onClick:this.dismissAlert.bind(this)},Xe("span",{class:"icon"}))}renderStatusBar(e){var t,n,r,i;switch(e){case"input":return Xe("div",{class:"status-bar"},Xe("span",{class:"message"},null===(t=this.selectedSourceFile)||void 0===t?void 0:t.filename,(null===(n=this.selectedSourceFile)||void 0===n?void 0:n.description)?` • ${this.selectedSourceFile.description}`:""));case"output":return Xe("div",{class:this.statusBarClasses},Xe("span",{class:"icon"}),Xe("span",{class:"message"},null===(i=null===(r=this.outputResult)||void 0===r?void 0:r.status)||void 0===i?void 0:i.message),Xe("div",{class:this.combineClasses("alert","alert-error",this.alertDismissed?"dismissed":void 0)},this.renderDismissAlertButton(),Xe("p",null,Xe("strong",null,"Sorry, we were unable to convert your code.")),Xe("p",null,"There could be a problem with the code you submitted, or it might use a feature ",this.conversionTool.name," doesn't support. Join us in"," ",Xe("a",{href:"https://slack.pulumi.com/"},"Community Slack")," for help.")),Xe("div",{class:this.combineClasses("alert","alert-warn",this.alertDismissed?"dismissed":void 0)},this.renderDismissAlertButton(),Xe("p",null,Xe("strong",null,"Sorry, we were unable to convert your code completely.")),Xe("p",null,"The code was valid, but ",this.conversionTool.name," was unable to convert it completely. There could be a problem with the code you submitted, or it might use a feature ",this.conversionTool.name," doesn't support. Join us in ",Xe("a",{href:"https://slack.pulumi.com/"},"Community Slack")," for help.")));default:return Xe("div",{class:"status-bar"},Xe("span",{class:"message"}," "))}}renderDiagnostics(){var e,t;if(null===(e=this.outputResult)||void 0===e?void 0:e.diagnostics)return console.log("Conversion completed with errors. Diagnostics:"),console.log(null===(t=this.outputResult)||void 0===t?void 0:t.diagnostics),Xe("div",{class:"diagnostics"},Xe("p",null,Xe("strong",null,"Diagnostics:")),Xe("p",{class:"details"},this.outputResult.diagnostics))}render(){return Xe("div",null,Xe("div",{id:"editors"},Xe("div",{class:"editor editor-input"},Xe("div",{class:"editor-heading"},Xe("h3",null,Xe("span",{class:"editor-step"},"1"),"Start with some ",this.sourceLanguageName,"."),Xe("p",null,"We've included a few examples for reference — feel free to edit them as you like, or replace them with your own code. (And don't worry, we send your code over SSL and don't store anything on our servers.) When you're ready to transform your ",this.sourceLanguageName," code to Pulumi, select ",Xe("strong",null,"Convert"),".")),Xe("div",{class:"editor-container"},this.renderWindowBar(),Xe("ul",{class:"tabs"},this.sourceFiles.map((e=>this.renderTab(e,this.selectedSourceFile,e.name,e.description,this.selectSourceFile))),Xe("li",{class:"actions"},this.renderConvertButton(!0))),Xe("textarea",{id:"editor-input"}),this.renderStatusBar("input"))),Xe("div",{class:this.combineClasses("editor","editor-output",this.converting?"converting":"")},Xe("div",{class:"editor-heading"},Xe("h3",null,Xe("span",{class:"editor-step"},"2"),"Turn it into your language of choice."),this.renderToolDescription(),Xe("div",null,this.renderConvertButton(!1))),Xe("div",{class:"editor-container"},this.renderWindowBar(),Xe("ul",{class:"tabs"},this.supportedLanguages.map((e=>this.renderTab(e,this.selectedOutputLanguage,e.name,e.name,this.selectOutputLanguage))),Xe("li",{class:"actions"},Xe("pulumi-tooltip",null,Xe("button",{onClick:this.copyToClipboard.bind(this),"data-track":this.trackEventLabel("copy"),class:"btn-copy"},Xe("i",null)),Xe("span",{slot:"content"},"Copy to clipboard")),Xe("pulumi-tooltip",null,Xe("button",{onClick:this.downloadZip.bind(this),"data-track":this.trackEventLabel("download"),class:"btn-download"},Xe("i",null)),Xe("span",{slot:"content"},"Download as .zip")))),Xe("div",{class:"editor-spinner"}),Xe("textarea",{id:"editor-output"}),this.renderStatusBar("output")),this.renderDiagnostics())))}get el(){return this}static get style(){return"pulumi-convert{display:block}pulumi-convert textarea{opacity:0}"}},Zi=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.textClass="",this.containerClass="",this.valueLabelClass="",this.countdownOverText=""}componentWillLoad(){const e=new Date(this.dateString).getTime();this.generateCountdownData(e),setInterval((()=>this.generateCountdownData(e)),1e3)}generateCountdownData(e){const t=e-Date.now();this.countdownData={remainingTimeInMS:t,days:Math.floor(t/864e5),hours:Math.floor(t%864e5/36e5),minutes:Math.floor(t%36e5/6e4),seconds:Math.floor(t%6e4/1e3)}}renderValueLabel(e){return Xe("span",{class:this.valueLabelClass},e)}renderCountdownPart(e,t){return Xe("p",{class:this.textClass},e,this.renderValueLabel(t))}renderCountdown(){const{days:e,hours:t,minutes:n,seconds:r,remainingTimeInMS:i}=this.countdownData;return Xe("div",{class:this.containerClass},i>0?[this.renderCountdownPart(e,"Days"),this.renderCountdownPart(t,"Hours"),this.renderCountdownPart(n,"Minutes"),this.renderCountdownPart(r,"Seconds")]:Xe("p",{class:this.textClass},this.countdownOverText))}render(){return Xe(Ze,null,this.countdownData&&this.renderCountdown())}static get style(){return":host{display:block}"}},eo=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.containerClass="",this.valueLabelClass=""}componentWillLoad(){const e=new Date(this.dateString).getTime();this.generateCountdownData(e),setInterval((()=>this.generateCountdownData(e)),1e3)}generateCountdownData(e){const t=e-Date.now(),n=Math.floor(t/6048e5),r=Math.floor(t%6048e5/864e5),i=Math.floor(t%864e5/36e5),o=Math.floor(t%36e5/6e4),s=Math.floor(t%6e4/1e3),a=n/52*100,l=r/7*100,c=i/24*100,u=o/60*100,d=s/60*100;this.countdownData={remainingTimeInMS:t,weeks:n,days:r,hours:i,minutes:o,seconds:s,weeksPercent:a,daysPercent:l,hoursPercent:c,minutesPercent:u,secondsPercent:d}}renderValueLabel(e){return Xe("span",{class:this.valueLabelClass},e)}renderNumberCircle(e,t){return t<=0&&(t=0,e=0),Xe("div",{class:"timer-wrapper"},Xe("div",{class:"circle",style:{"--p":`${t}`}},e))}renderCountdownPart(e,t,n){return Xe("div",{class:"mx-4 text-center"},this.renderNumberCircle(e,n),this.renderValueLabel(t))}renderCountdown(){const{weeks:e,days:t,hours:n,minutes:r,seconds:i,weeksPercent:o,daysPercent:s,hoursPercent:a,minutesPercent:l,secondsPercent:c}=this.countdownData;return Xe("div",{class:this.containerClass},[this.renderCountdownPart(e,"Weeks",o),this.renderCountdownPart(t,"Days",s),this.renderCountdownPart(n,"Hours",a),this.renderCountdownPart(r,"Minutes",l),this.renderCountdownPart(i,"Seconds",c)])}render(){return Xe(Ze,null,this.countdownData&&this.renderCountdown())}static get style(){return".timer-wrapper{height:75px;width:75px;display:flex;align-items:center;justify-content:center}.circle{border-radius:50%;border:5px solid transparent;position:relative;width:100%;height:100%;background:linear-gradient(#fff, #fff) content-box no-repeat, conic-gradient(#805ac3 calc(var(--p)*1%), 0, #ededed 100%) border-box;display:flex;justify-content:center;align-items:center}"}},to=class extends HTMLElement{constructor(){super(),this.__registerHost(),Jt(this)}componentWillLoad(){const e=new Date(this.date),t=this.timeonly?{timeZoneName:"short",hour:"numeric",minute:"2-digit"}:{timeZoneName:"long",weekday:"short",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"2-digit"};this.date=e.toLocaleString(void 0,t)}render(){return Xe("time",{class:this.class||""},Xe("span",null,this.date))}static get style(){return":host{display:block}"}},no=class extends HTMLElement{constructor(){super(),this.__registerHost()}addLogo(e){return Object.assign(Object.assign({},e),{logo:function(){switch(e.source){case"twitter":return Xe("img",{class:"w-6",src:"/logos/tech/twitter.svg"});case"reddit":return Xe("img",{class:"w-6",src:"/logos/tech/reddit.svg"});case"email":return Xe("i",{class:"fas fa-envelope text-gray-500 text-xl"});case"blog":return Xe("i",{class:"fas fa-blog text-gray-500 text-xl"});case"slack":return Xe("img",{class:"w-6",src:"/logos/tech/slack.svg"});case"linkedin":return Xe("img",{class:"w-6",src:"/logos/tech/linkedin.svg"});default:return Xe("a",null,e.source)}}()})}enableLink(e){return!["slack","email"].includes(e)}render(){let e=JSON.parse(this.quotes).sort(((e,t)=>e.featured&&t.featured?0:e.featured&&!t.featured?-1:!e.featured&&t.featured?1:void 0)).map(this.addLogo).reduce(((e,t,n)=>(n%2?e[1].push(t):e[0].push(t),e)),[[],[]]);return Xe("div",{class:"lg:flex flex-row block"},e.map((e=>Xe("div",{class:"lg:w-6/12 w-12/12 mx-8"},e.map((e=>Xe("div",{class:"quote-card my-8 p-2 rounded-lg max-w-80"},Xe("a",{class:"flex flex-col",href:this.enableLink(e.source)?e.link:void 0,target:"_blank",rel:"noopener noreferrer"},Xe("div",{class:"w-full flex-grow text-justify p-3 text-gray-700"},'"',e.message,'"'),Xe("div",{class:"flex flex-row"},Xe("div",{class:"p-3 text-gray-500"},e.author),Xe("div",{class:"flex-grow"}),Xe("div",{class:"p-3"},e.logo))))))))))}static get style(){return"pulumi-developer-quotes .quote-card{box-shadow:0 6px 36px rgba(0, 0, 0, 0.1)}pulumi-developer-quotes .quote-card:hover{box-shadow:10px 15px 60px rgba(0, 0, 0, 0.2)}"}},ro=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.expandedMenuIDs=""}onClick(e){const t=e.target,n=t.nodeName.toLowerCase();"button"!==n&&"i"!==n||(t.closest("li").classList.toggle("expanded"),e.stopPropagation(),e.preventDefault())}componentDidRender(){const e=this.el.querySelector("a.active");if(e){let t=e.closest("pulumi-docs-nav li.expandable");for(;t;)t.classList.add("expanded"),t=t.parentElement.closest("pulumi-docs-nav li.expandable")}this.expandedMenuIDs.split(",").forEach((e=>{""!==e&&this.el.querySelectorAll(`[data-menu-id='${e}']`).forEach((e=>{e.classList.add("expanded")}))}))}render(){return Xe("slot",null)}get el(){return this}static get style(){return"pulumi-docs-nav{display:block}"}},io=class extends HTMLElement{constructor(){super(),this.__registerHost()}render(){return Xe("div",null,Xe("slot",null))}static get style(){return""}},oo=class extends HTMLElement{constructor(){super(),this.__registerHost()}componentWillRender(){const e=Array.from(this.el.querySelectorAll("pulumi-examples h3"));e.forEach((e=>{const t=document.createElement("span");e.prepend(t),e.addEventListener("click",(t=>{t.target.classList.contains("anchorjs-link")||this.toggle(e)}))})),e&&e.length>0&&this.toggle(e[0])}toggle(e){e.classList.toggle("expanded");let t=e.nextElementSibling;for(;t&&"DIV"===t.nodeName;)t.classList.toggle("expanded"),t=t.nextElementSibling}render(){return Xe("div",null,Xe("slot",null))}get el(){return this}static get style(){return""}},so=class extends HTMLElement{constructor(){super(),this.__registerHost(),Jt(this),this.filterSelect=$t(this,"filterSelect",7),this.filters=[]}reset(){return this.options.forEach((e=>e.selected=!1)),this.groups.forEach((e=>e.close())),this.filterSelect.emit([]),Promise.resolve(null)}select(e){return this.options.forEach((t=>{t.value===e.value&&t.select()})),Promise.resolve()}deselect(e){return this.options.forEach((t=>{t.value===e.value&&t.deselect()})),Promise.resolve()}onOptionChange(e){e.stopPropagation(),this.filters=this.options.filter((e=>e.selected)).map((e=>({group:e.closest("pulumi-filter-select-option-group").name,value:e.value,label:e.label}))),this.filterSelect.emit(this.filters)}get groups(){return Array.from(this.el.querySelectorAll("pulumi-filter-select-option-group"))}get options(){return Array.from(this.el.querySelectorAll("pulumi-filter-select-option"))}render(){return Xe("div",null,Xe("slot",null))}get el(){return this}static get style(){return"div {\n display: flex;\n }"}},ao=class extends HTMLElement{constructor(){super(),this.__registerHost(),Jt(this),this.optionChange=$t(this,"optionChange",7)}select(){return this.selected=!0,this.emit(),Promise.resolve()}deselect(){return this.selected=!1,this.emit(),Promise.resolve()}onChange(e){this.selected=e.target.checked,this.emit()}emit(){this.optionChange.emit({option:{value:this.value,selected:this.selected,label:this.label}})}render(){return Xe("div",null,Xe("label",null,Xe("input",{type:"checkbox",value:this.value,onChange:this.onChange.bind(this),checked:this.selected,class:""+(this.selected?"selected":"")}),Xe("slot",null)))}get el(){return this}static get style(){return"label {\n white-space: nowrap;\n }\n\n input {\n margin-right: 0.5em;\n }"}},lo=class extends HTMLElement{constructor(){super(),this.__registerHost(),Jt(this)}onToggle(){this.expanded=!this.expanded}onDocumentClick(e){!this.el.contains(e.target)&&this.expanded&&this.close()}close(){return this.expanded=!1,Promise.resolve(null)}render(){return Xe("div",null,Xe("div",{class:"button",role:"button",onClick:this.onToggle.bind(this)},Xe("span",{class:"toggle",part:"toggle"},Xe("slot",{name:"toggle"}))),Xe("div",{class:"menu"},Xe("div",null,Xe("slot",null))))}get el(){return this}static get style(){return'.menu {\n position: relative;\n transition: all 100ms;\n opacity: 0;\n top: -2px;\n pointer-events: none;\n z-index: 10;\n }\n\n .menu > div {\n position: absolute;\n }\n\n .button {\n cursor: pointer;\n }\n\n .button .toggle {\n margin-right: 0.5em;\n }\n\n .toggle {\n display: flex;\n }\n\n .toggle slot {\n position: relative;\n display: block;\n width: 100%;\n }\n\n :host([expanded]) .menu {\n opacity: 1;\n top: 0;\n pointer-events: auto;\n }\n\n .toggle slot::after {\n position: absolute;\n right: 0.5em;\n top: 50%;\n transform: translateY(-50%);\n content: "▾";\n }\n\n :host([expanded]) .toggle slot::after {\n transform: rotate(180deg) translateY(50%);\n }'}},co=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.departments=[]}componentWillLoad(){this.fetchJobs()}async fetchJobs(){this.loading=!0;try{const e=await fetch("https://boards-api.greenhouse.io/v1/boards/pulumicorporation/departments"),t=await e.json();t&&t.departments&&(this.departments=t.departments.filter((e=>e.jobs.length>0)))}catch(e){console.error(e)}this.loading=!1}renderLoadingSpinner(){return Xe("div",{class:"loading-spinner"})}renderJobsList(){return this.departments.length>0?Xe("ul",{class:"departments"},this.departments.map((e=>Xe("li",null,Xe("h4",null,e.name),Xe("ul",{class:"jobs"},e.jobs.map((e=>Xe("li",null,Xe("a",{class:"job-title",href:e.absolute_url,target:"_blank",rel:"noreferrer noopener"},e.title),Xe("div",{class:"job-location"},e.location.name))))))))):Xe("div",null,Xe("p",null,"There are no open positions at this time."))}render(){return this.loading?this.renderLoadingSpinner():this.renderJobsList()}},uo=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.isLoading=!0,this.didLoad=!1}componentWillLoad(){if(!this.formId)throw new Error("The required attribute `form-id` was not provided.");this.hubspotFormTargetId=`hubspotForm_${this.formId}`}componentDidLoad(){const e=window.hbspt;e?this.createForm(e):this.loadHubSpotFormsScript(),this.messageHandler=this.onMessage.bind(this),window.addEventListener("message",this.messageHandler)}disconnectedCallback(){window.removeEventListener("message",this.messageHandler)}onMessage(e){var t;if("hsFormCallback"!==(null===(t=e.data)||void 0===t?void 0:t.type))return;const n=e.data.eventName,r=this.getUTMCookieData();if("onFormReady"===n){this.isLoading=!1,this.didLoad=!0;this.el.querySelectorAll('input[type="hidden"]').forEach((e=>{const t=e.closest("fieldset");t&&(t.style.display="none")}));const e=this.el.querySelector('input[name="last_utm_campaign"]');e&&(e.value=r.campaign);const t=this.el.querySelector('input[name="last_utm_source"]');t&&(t.value=r.source);const n=this.el.querySelector('input[name="last_utm_medium"]');n&&(n.value=r.medium),this.setInternalAdId()}if("onFormSubmit"===n){const e=this.el.querySelector('input[name="email"]');this.notifySegment(e.value,r)}"onFormDefinitionFetchError"===n&&(this.isLoading=!1,this.didLoad=!1)}notifySegment(e,t){const n=window.analytics;if(n&&n.track&&"function"==typeof n.track&&""!==e){const r={formId:this.formId,email:e,utmCampaign:t.campaign,utmSource:t.source,utmMedium:t.medium};n.track("form-submission",r)}}setInternalAdId(){const e=oi("iaid");if(e){const t=this.el.querySelector('input[name="last_internal_ad_conversion"]');t&&(t.value=e)}}getUTMCookieData(){const e=si(),t=(e.__utmzz||"").split("|").reduce(((e,t)=>{const n=t.split("=");return e[n[0]]=n[1],e}),{});return{campaign:t.utmccn||"(not set)",source:t.utmcsr||"(direct)",medium:t.utmcmd||"(none)"}}loadHubSpotFormsScript(){const e=document.createElement("script");e.setAttribute("src","//js.hsforms.net/forms/v2.js"),e.onload=()=>{const e=window.hbspt;e?this.createForm(e):(this.isLoading=!1,this.didLoad=!1)},e.onerror=()=>{this.isLoading=!1,this.didLoad=!1},document.body.appendChild(e)}createForm(e){e.forms.create({portalId:"4429525",formId:this.formId,css:"",cssClass:this.class,goToWebinarWebinarKey:this.goToWebinarKey,target:`#${this.hubspotFormTargetId}`,sfdcCampaignId:this.salesforceCampaignId})}renderIsLoadingForm(){return Xe("p",null,Xe("i",{class:"fa fa-spinner fa-spin mr-2"}))}renderFailedToLoadForm(){return Xe("p",null,"There was a problem loading this form. Please try refreshing your browser, and if you continue to see this message, let us know at"," ",Xe("a",{href:"mailto:support@pulumi.com"},"support@pulumi.com"),".")}render(){return Xe("div",{id:this.hubspotFormTargetId},this.didLoad||this.isLoading?this.renderIsLoadingForm():this.renderFailedToLoadForm())}get el(){return this}static get style(){return":host{display:block}"}},po=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.defaultTooltipContent="Copy command"}componentWillLoad(){this.tooltipContent=this.defaultTooltipContent}componentDidLoad(){this.os||(this.os=this.detectOS())}detectOS(){const e=navigator.appVersion;return-1!==e.indexOf("Win")?"windows":-1!==e.indexOf("Mac")?"macos":"linux"}get installCommand(){return{macos:"brew install pulumi",windows:"choco install pulumi",linux:"curl -fsSL https://get.pulumi.com | sh"}[this.os]}copyToClipboard(){Xi(this.installCommand.toString()).then((()=>{this.tooltipContent="Copied!",setTimeout((()=>this.tooltipContent=this.defaultTooltipContent),3e3)}))}render(){return Xe("div",null,Xe("div",{class:"command-text"},Xe("p",null,Xe("span",null,this.installCommand))),Xe("div",{class:"copy-button"},Xe("pulumi-tooltip",null,Xe("button",{onClick:this.copyToClipboard.bind(this)},Xe("i",{class:"far fa-copy"})),Xe("span",{slot:"content"},this.tooltipContent))))}get el(){return this}static get style(){return":host{display:block}"}},fo=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.items=[],this.defaultFormId="",this.formSubmitted=!1}componentWillLoad(){""!==this.defaultFormId&&(this.selectedItem=this.items.find((e=>e.hubspotFormId===this.defaultFormId)),this.selectedItem)||(this.selectedItem=this.items[0])}componentDidLoad(){this.windowEventHandler=this.handleWindowMessage.bind(this),window.addEventListener("message",this.windowEventHandler)}disconnectedCallback(){window.removeEventListener("message",this.windowEventHandler)}handleWindowMessage(e){if("hsFormCallback"===e.data.type&&"onFormReady"===e.data.eventName){this.el.querySelector("form.hs-form").addEventListener("submit",this.handleFormSubmit.bind(this))}}handleFormSubmit(){this.formSubmitted=!0}handleSelectChange(e){this.selectedItem=this.items.find((t=>t.hubspotFormId===e))}render(){var e;const t=null===(e=this.selectedItem)||void 0===e?void 0:e.hubspotFormId;return Xe("div",null,this.formSubmitted?null:Xe("span",null,Xe("span",{class:this.labelClass||""},this.labelText),Xe("select",{class:this.selectClass||"",onInput:e=>this.handleSelectChange(e.target.value)},this.items.map((e=>{const n=e.hubspotFormId===t;return Xe("option",{value:e.hubspotFormId,selected:n},e.label?e.label:e.key)})))),this.selectedItem.cta?Xe("div",{class:"mt-8"},Xe("a",{class:"btn-secondary",href:this.selectedItem.cta.url},this.selectedItem.cta.label)):Xe("pulumi-hubspot-form",{key:t,"form-id":t}))}get el(){return this}static get style(){return":host{display:block}"}},ho=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.duration="month",this.resourceCount=500,this.utilization=100,this.deploymentsExpanded=!1,this.deploymentMinutes=0}updateDuration(e){this.duration=e}getCostPerDeploymentMinute(){return.01}getFreeDeploymentMinutes(){return"month"===this.duration?3e3:100}getEstimatedCredits(){return"month"===this.duration?this.resourceCount*(this.utilization/100*24)*30:this.resourceCount*(this.utilization/100*24)}getEstimatedDeploymentMinutes(){return"month"===this.duration?30*this.deploymentMinutes:this.deploymentMinutes}updateDeploymentsExpanded(){this.deploymentsExpanded=!this.deploymentsExpanded}getFreeCredits(){return"month"===this.duration?15e4:5e3}getCostPerCredit(){return 5e-4}getTotal(){if(this.deploymentsExpanded){const e=(this.getEstimatedDeploymentMinutes()-this.getFreeDeploymentMinutes())*this.getCostPerDeploymentMinute(),t=(this.getEstimatedCredits()-this.getFreeCredits())*this.getCostPerCredit()+(e>0?e:0);return t>0?t:0}{const e=(this.getEstimatedCredits()-this.getFreeCredits())*this.getCostPerCredit();return e>0?e:0}}isTotalOverMax(){return this.getTotal()>1670&&"month"===this.duration||this.getTotal()>55&&"day"===this.duration}showFormattedTotal(){return`$${this.formatNumber(this.getTotal())} / ${"day"===this.duration?"day":"mo"}`}updateResourceCount(e){const t=e.target.value.trim();this.resourceCount=""===t?0:parseInt(t)}updateUtilization(e){const t=e.target.value.trim();this.utilization=""===t?1:parseInt(t)}updateDeploymentMinutes(e){const t=e.target.value.trim();this.deploymentMinutes=""===t?0:parseInt(t)}formatNumber(e){return(new Intl.NumberFormat).format(Math.round(e))}render(){return Xe("div",{class:"calculator"},Xe("h3",null,"IaC Cost estimator"),Xe("div",{class:"edition"},"Team Edition"),Xe("div",{class:"content"},Xe("div",{class:"inputs"},Xe("div",{class:"field"},Xe("div",{class:"title"},"Number of resources"),Xe("div",{class:"details"},Xe("div",{class:"description"},"All cloud resources cost the same amount in Pulumi Cloud. Look at your cloud account and enter here the number of resources."),Xe("div",{class:"input"},Xe("input",{class:"resource-count",type:"number",min:"0",onInput:e=>this.updateResourceCount(e),value:this.resourceCount})))),Xe("div",{class:"field"},Xe("div",{class:"title"},"Utilization"),Xe("div",{class:"details"},Xe("div",{class:"description"},"If you have resources that are being spun up and down throughout the day, estimate the percentage of the time the total resource count will be reached."),Xe("div",{class:"utilization"},Xe("div",{class:"input"},Xe("input",{type:"number",min:"1",max:"100",onInput:e=>this.updateUtilization(e),value:this.utilization}),Xe("span",{class:"percent"},"%")),Xe("input",{type:"range",min:"1",max:"100",step:"1",onInput:e=>this.updateUtilization(e),value:this.utilization,class:"range purple"})))),Xe("div",{class:this.deploymentsExpanded?"deployments":"deployments collapsed"},Xe("div",{class:"default"},Xe("i",{class:"fas fa-rocket"}),Xe("div",{class:"details"},Xe("div",{class:"title"},"Add on Pulumi Deployments"),Xe("div",{class:"subtitle"},"Run deployments remotely with a button, Git push, or REST API")),Xe("button",{onClick:()=>this.updateDeploymentsExpanded()},Xe("i",{class:this.deploymentsExpanded?"fas fa-minus":"fas fa-plus"}))),Xe("div",{class:this.deploymentsExpanded?"field visible":"field"},Xe("div",{class:"title"},"Deployment minutes per day"),Xe("div",{class:"details"},Xe("div",{class:"description"},"Deployment minutes refer to the duration of time elapsed when running deployments on Pulumi’s compute. Use your current update times and add buffer for any workflows that need to happen."),Xe("div",{class:"input"},Xe("input",{type:"number",min:"0",onInput:e=>this.updateDeploymentMinutes(e),value:this.deploymentMinutes})))))),Xe("div",{class:"outputs"},Xe("div",{class:"gradient"}),Xe("div",{class:"contents"},Xe("div",{class:"duration"},Xe("button",{class:"day"===this.duration?"active":null,onClick:()=>this.updateDuration("day")},"Per day"),Xe("button",{class:"month"===this.duration?"active":null,onClick:()=>this.updateDuration("month")},"Per month")),Xe("div",{class:"items"},Xe("div",{class:"item"},Xe("span",null,"Estimated credits per ",this.duration),Xe("span",null,this.formatNumber(this.getEstimatedCredits()))),Xe("div",{class:"item"},Xe("span",null,"Free credits included"),Xe("span",null,this.formatNumber(this.getFreeCredits()))),Xe("div",{class:"item"},Xe("span",null,"Cost per credit"),Xe("span",null,"$",this.getCostPerCredit())),Xe("div",{class:this.deploymentsExpanded?"deployment-total visible":"deployment-total"},Xe("div",{class:"subtitle"},"Deployments"),Xe("div",{class:"item"},Xe("span",null,"Estimated deployment minutes per ",this.duration),Xe("span",null,this.formatNumber(this.getEstimatedDeploymentMinutes()))),Xe("div",{class:"item"},Xe("span",null,"Deployment minutes included"),Xe("span",null,this.formatNumber(this.getFreeDeploymentMinutes()))),Xe("div",{class:"item"},Xe("span",null,"Cost per deployment minute"),Xe("span",null,"$",this.getCostPerDeploymentMinute())))),Xe("div",{class:"divider"}),Xe("div",{class:this.isTotalOverMax()?"total over-max":"total"},Xe("span",{class:"contact"},Xe("a",{href:"/contact/?form=sales"},"Contact sales"),"for bulk discounts"),Xe("span",{class:this.isTotalOverMax()?"blurred":""},this.showFormattedTotal()))))))}static get style(){return'.calculator{margin-right:36px;margin-left:36px}.calculator h3{text-align:center;color:#000;font-family:"Gilroy";font-size:48px;font-weight:500}.calculator .edition{text-align:center;font-family:"Gilroy";font-size:28px;margin-bottom:36px}.calculator .content{display:flex;flex-direction:row;gap:60px}.calculator .inputs{display:flex;flex-direction:column;flex-grow:1}.calculator .field{margin-bottom:36px}.calculator .field .title{color:#131314;font-family:"Gilroy";font-size:24px;font-weight:500}.calculator .field .details{display:flex;flex-direction:row;justify-content:space-between}.calculator .field .details .description{width:400px;font-family:"Inter";font-size:16px;font-style:normal;font-weight:400;color:#2f3032}.calculator .field .details .utilization{margin-top:0px}.calculator .field .details .input{width:140px;padding:8px 12px;border-radius:4px;border:1px solid #bebfc9;height:48px}.calculator .field .details .input input{all:unset;width:80%}.calculator .field .details .input .percent{color:lightgray}.calculator .outputs{width:50%;max-width:530px;border-radius:12px;background:#fff;box-shadow:0px 6px 36px 0px rgba(0, 0, 0, 0.14)}.calculator .outputs .contents{display:flex;padding:36px;flex-direction:column;align-items:flex-start;gap:36px}.calculator .outputs .gradient{border-radius:12px 12px 0px 0px;height:8px;background:linear-gradient(90deg, #f7bf2a 0%, #f26e7e 18.23%, #be5188 38.02%, #8a3391 53.65%, #805ac3 74.48%, #7682f4 100%)}.calculator .outputs .duration{display:flex;align-self:center}.calculator .outputs .duration button{display:flex;padding:8px 12px;align-items:flex-start;color:#8e8f97;font-family:Inter;font-size:14px;font-style:normal;font-weight:500;border:1px solid #8e8f97}.calculator .outputs .duration button:first-of-type{border-radius:4px 0px 0px 4px}.calculator .outputs .duration button:last-of-type{border-radius:0px 4px 4px 0px}.calculator .outputs .duration button.active{color:#131314;background-color:#f2eff9;border:1px solid #805ac3}.calculator .outputs .items,.calculator .outputs .deployment-total{display:flex;flex-direction:column;gap:12px;color:#2f3032;font-family:"Inter";font-size:16px;font-weight:400;width:100%}.calculator .outputs .items .item,.calculator .outputs .deployment-total .item{flex-grow:1;display:flex;gap:36px;justify-content:space-between}.calculator .outputs .divider{width:100%;border-bottom:1px solid #bebfc9}.calculator .outputs .deployment-total{display:none}.calculator .outputs .deployment-total.visible{display:flex}.calculator .outputs .deployment-total .subtitle{font-weight:600}.calculator .outputs .deployment-total .item{margin-left:16px}.calculator .outputs .total{display:flex;width:100%;color:#805ac3;font-family:"Inter";font-size:30px;font-style:normal;font-weight:700;justify-content:end;gap:4px}.calculator .outputs .total .contact{display:none}.calculator .outputs .total.over-max{justify-content:space-between}.calculator .outputs .total.over-max .contact{align-self:center;display:inline-block;font-size:16px;line-height:24px;font-weight:600;color:#131314}.calculator .outputs .total.over-max .contact a{color:#4d5bd9;margin-right:4px}.calculator .outputs .total.over-max .blurred{filter:blur(16px)}.calculator input::-webkit-outer-spin-button,.calculator input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.calculator input[type=number]{-moz-appearance:textfield}.calculator .deployments{border-radius:4px;border:1px solid #805ac3;display:flex;flex-direction:column;width:100%;padding:24px}.calculator .deployments i{color:#805ac3;height:24px;width:24px;font-size:24px}.calculator .deployments.collapsed:hover{background:rgba(242, 239, 249, 0.5)}.calculator .deployments .default{display:flex;align-items:center;gap:24px}.calculator .deployments .default .details{flex-grow:1;display:flex;flex-direction:column;color:#2f3032}.calculator .deployments .default .details .title{font-family:"Inter";font-size:18px;font-weight:600;margin-bottom:16px}.calculator .deployments .default .details .subtitle{font-family:"Inter";font-size:16px;font-weight:400;line-height:normal}.calculator .deployments .field{margin-top:60px;display:none;margin-bottom:0px;flex-direction:column}.calculator .deployments .field.visible{display:flex}.range{-webkit-appearance:none;-moz-appearance:none;width:140px;display:block;margin-top:16px}input[type=range]::-webkit-slider-runnable-track{-webkit-appearance:none;border-radius:10px;background:#4776e6;background:linear-gradient(90deg, #f7bf2a 0%, #f26e7e 18.23%, #be5188 38.02%, #8a3391 53.65%, #805ac3 74.48%, #7682f4 100%);height:7.5px}input[type=range]:focus{outline:none}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;border:2px solid;border-radius:50%;height:16px;width:16px;bottom:4px;position:relative;background-color:rgba(242, 239, 249, 0.5);cursor:-webkit-grab;-webkit-transition:border 1000ms ease;transition:border 1000ms ease}.range.purple::-webkit-slider-thumb{border-color:#805ac3}@media (max-width: 1280px){.calculator .field .details{flex-direction:column}.calculator .field .details .input{margin-top:16px}}@media (max-width: 1024px){.calculator .content{flex-direction:column}.calculator .outputs{width:100%;max-width:1200px}}@media (max-width: 640px){.calculator .field .details .description{width:100%}.calculator .field .details .input{width:100%}.range{width:100%}}'}},mo=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.packageSearch=$t(this,"packageSearch",7),this.filterContent="",this.debouncedFilter=mi.debounce(this.debouncedFilter,300)}debouncedFilter(e){this.filterContent=e.value,this.packageSearch.emit(this.filterContent)}onChange(e){this.debouncedFilter(e)}onClearFilter(){this.filterContent="",this.packageSearch.emit(this.filterContent)}reset(){this.filterContent=""}render(){return Xe("div",{class:"input-container"},Xe("i",{class:"search-icon fas fa-filter"}),Xe("input",{class:"registry-filter-input",placeholder:"Filter by package name...",onInput:e=>this.onChange(e.target),value:this.filterContent,autocomplete:"off"}),this.filterContent&&Xe("div",{class:"clear-container"},Xe("button",{onClick:this.onClearFilter.bind(this),class:"clear-filter-button"},Xe("i",{class:"fas fa-times"}))))}static get style(){return'.input-container{display:inline-block;position:relative;width:100%;max-width:550px}.input-container .clear-container{position:absolute;display:flex;align-items:center;margin-right:6px;top:0;right:0;height:100%}.input-container .search-icon{position:absolute;display:flex;align-items:center;height:100%;padding-left:12px;color:#b0b0b0}.input-container .clear-filter-button{display:flex;align-items:center;justify-content:center;height:18px;width:18px;font-size:xx-small;background:#dcdcdc;color:#808080;border-radius:50%;border:none;cursor:pointer;padding:0px}.input-container .registry-filter-input{font-family:"Inter";font-size:14px;height:36px;width:100%;border-radius:4px;border:2px solid #000;padding:6px;padding-left:40px;margin-top:0}.input-container .registry-filter-input:focus{outline-color:#4d5bd9}.input-container .registry-filter-input::placeholder{font-style:italic;color:#808080}'}},vo=class extends HTMLElement{constructor(){super(),this.__registerHost()}componentWillLoad(){fetch("https://www.pulumi.com/uploads/related-resources/2022-12-19.json").then((e=>e.json())).then((e=>{const t=e;if(t){const e=this.packageName.toLowerCase(),n=this.moduleName.toLowerCase(),r=this.resourceName.toLowerCase();this.related=t[e]&&t[e][n]?t[e][n][r]:void 0}})).catch((e=>console.error(e)))}render(){if(!this.related)return Xe("div",null);const e=this.packageName.toLowerCase();return Xe("div",{class:"container"},Xe("hr",{class:"mr-5"}),Xe("div",{class:"heading"},"Related Resources"),this.related.map((t=>{const n=t.split("/");let r=n.slice(0,n.length-1).join("/");const i=n[n.length-1],o=`/registry/packages/${e}/api-docs/${r.toLowerCase()}/${i.toLowerCase()}/`;return Xe("div",{class:"links"},Xe("a",{href:o},`${r}`,".",`${i}`))})))}};function go(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bo(e){for(var t=1;t({persona:"developer",language:"typescript",k8sLanguage:"typescript",os:Lo(),cloud:"aws",backend:"service"}))(),t)=>{switch(t.type){case _i.SET_LANGUAGE:return Object.assign(Object.assign({},e),{language:t.key});case _i.SET_K8S_LANGUAGE:return Object.assign(Object.assign({},e),{k8sLanguage:t.key});case _i.SET_OS:return Object.assign(Object.assign({},e),{os:t.key});case _i.SET_CLOUD:return Object.assign(Object.assign({},e),{cloud:t.key});case _i.SET_PERSONA:return Object.assign(Object.assign({},e),{persona:t.key});case _i.SET_BACKEND:return Object.assign(Object.assign({},e),{backend:t.key});default:return e}},banners:(e={dismissed:[]},t)=>{if(t.type===_i.DISMISS_BANNER){const{name:n,dismissedAt:r}=t.payload;return Object.assign(Object.assign({},e),{dismissed:[...e.dismissed.filter((e=>e.name!==n)),{name:n,dismissedAt:r}]})}return e},user:(e=(()=>({id:Do().userId}))(),t)=>t.type===_i.GET_USER_INFO?Object.assign(Object.assign({},e),{id:Do().userId}):e}),No=()=>{let e;try{e=localStorage.getItem("pulumi_state")}catch(e){console.error("Failed to read pulumi_state from localStorage:",e)}const t=e?JSON.parse(e):{},n=$o(Mo,function(e){let t={};try{if(e.banners&&Array.isArray(e.banners.dismissed)){const n=Date.now()-3456e5;t.banners={dismissed:e.banners.dismissed.filter((e=>!!e.name&&e.dismissedAt&&e.dismissedAt>n))}}e.preferences&&(t.preferences={language:e.preferences.language||"typescript",os:e.preferences.os||"macos",cloud:e.preferences.cloud||"aws",k8sLanguage:e.preferences.k8sLanguage||"typescript",persona:e.preferences.persona||"developer",backend:e.backend||"service"})}catch(e){return t}return t}(t),jo.composeWithDevTools(To(Ao)));return n.subscribe((()=>{const e=n.getState();try{localStorage.setItem("pulumi_state",JSON.stringify(e))}catch(e){console.error("Failed to save pulumi_state:",e)}})),setInterval((()=>{n.dispatch({type:_i.GET_USER_INFO})}),3e3),n};const Ro=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.rendered=$t(this,"rendered",7)}componentWillLoad(){wi.setStore(No()),wi.mapDispatchToProps(this,{setLanguage:ki})}componentDidRender(){this.setSelectedLanguage(),this.rendered.emit()}render(){return Xe("div",null)}setSelectedLanguage(){const e=oi("language");e&&this.setLanguage(e);const t=window.location.hash;if(t){const e=t.split("_").slice(-1).find((e=>["typescript","javascript","csharp","go","python"].includes(e)));e&&this.setLanguage(e)}}},Fo=class extends HTMLElement{constructor(){super(),this.__registerHost()}componentDidLoad(){this.runSlotMachine()}runSlotMachine(){this.leftSwiper.stopSwiper(),this.centerSwiper.stopSwiper(),this.rightSwiper.stopSwiper(),setTimeout((()=>{this.leftSwiper.startSwiper()}),100),setTimeout((()=>{this.centerSwiper.startSwiper()}),500),setTimeout((()=>{this.rightSwiper.startSwiper()}),1e3),setTimeout((()=>{this.leftSwiper.stopSwiper()}),3e3),setTimeout((()=>{this.centerSwiper.stopSwiper()}),3500),setTimeout((()=>{this.rightSwiper.stopSwiper()}),4e3),setTimeout((()=>{this.leftSwiper.startSwiper(),this.centerSwiper.startSwiper(),this.rightSwiper.startSwiper(),this.runSlotMachine()}),7e3)}renderImageList(e){const t=this.imageClass||"";return e.map((e=>Xe("pulumi-swipeable",null,Xe("img",{class:t,src:e,alt:""}))))}render(){return Xe("ul",null,Xe("li",null,Xe("pulumi-swiper",{ref:e=>this.leftSwiper=e,direction:"vertical",slides:3,"centered-slides":!0,loop:!0,autoplay:!0,autoplayDelay:300,speed:1e3,"enable-mouse-events":!1,"space-between":120},this.renderImageList(this.leftImages.split(",")))),Xe("li",null,Xe("pulumi-swiper",{ref:e=>this.centerSwiper=e,direction:"vertical",slides:3,"centered-slides":!0,loop:!0,autoplay:!0,autoplayDelay:300,speed:1e3,"enable-mouse-events":!1,"space-between":120},this.renderImageList(this.centerImages.split(",")))),Xe("li",null,Xe("pulumi-swiper",{ref:e=>this.rightSwiper=e,direction:"vertical",slides:3,"centered-slides":!0,loop:!0,autoplay:!0,autoplayDelay:300,speed:1e3,"enable-mouse-events":!1,"space-between":120},this.renderImageList(this.rightImages.split(",")))))}static get style(){return":host{display:block}"}},Bo=class extends HTMLElement{constructor(){super(),this.__registerHost()}render(){return Xe(Ze,{class:"swiper-slide"},Xe("slot",null))}};function qo(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function zo(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:qo(t[n])&&qo(e[n])&&Object.keys(t[n]).length>0&&zo(e[n],t[n])}))}var Ho={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Uo(){var e="undefined"!=typeof document?document:{};return zo(e,Ho),e}var Vo={document:Ho,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function Wo(){var e="undefined"!=typeof window?window:{};return zo(e,Vo),e}function Go(e){return Go=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Go(e)}function Ko(e,t){return Ko=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ko(e,t)}function Jo(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function Yo(e,t,n){return Yo=Jo()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Ko(i,n.prototype),i},Yo.apply(null,arguments)}function Xo(e){var t="function"==typeof Map?new Map:void 0;return Xo=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Yo(e,arguments,Go(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Ko(r,e)},Xo(e)}var Qo=function(e){var t,n;function r(t){var n,r,i;return n=e.call.apply(e,[this].concat(t))||this,r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n),i=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return i},set:function(e){i.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Xo(Array));function Zo(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,Zo(e)):t.push(e)})),t}function es(e,t){return Array.prototype.filter.call(e,t)}function ts(e,t){var n=Wo(),r=Uo(),i=[];if(!t&&e instanceof Qo)return e;if(!e)return new Qo(i);if("string"==typeof e){var o=e.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){var s="div";0===o.indexOf("0})).length>0},toggleClass:function(){for(var e=arguments.length,t=new Array(e),n=0;n=0;f-=1){var h=p[f];o&&h.listener===o||o&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===o?(d.removeEventListener(c,h.proxyListener,s),p.splice(f,1)):o||(d.removeEventListener(c,h.proxyListener,s),p.splice(f,1))}}return this},trigger:function(){for(var e=Wo(),t=arguments.length,n=new Array(t),r=0;r0})),c.dispatchEvent(u),c.dom7EventData=[],delete c.dom7EventData}}return this},transitionEnd:function(e){var t=this;return e&&t.on("transitionend",(function n(r){r.target===this&&(e.call(this,r),t.off("transitionend",n))})),this},outerWidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){var e=Wo();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){var e=Wo(),t=Uo(),n=this[0],r=n.getBoundingClientRect(),i=t.body,o=n.clientTop||i.clientTop||0,s=n.clientLeft||i.clientLeft||0,a=n===e?e.scrollY:n.scrollTop,l=n===e?e.scrollX:n.scrollLeft;return{top:r.top+a-o,left:r.left+l-s}}return null},css:function(e,t){var n,r=Wo();if(1===arguments.length){if("string"!=typeof e){for(n=0;nt-1)return ts([]);if(e<0){var n=t+e;return ts(n<0?[]:[this[n]])}return ts([this[e]])},append:function(){for(var e,t=Uo(),n=0;n=0;n-=1)this[t].insertBefore(i.childNodes[n],this[t].childNodes[0])}else if(e instanceof Qo)for(n=0;n0?e?this[0].nextElementSibling&&ts(this[0].nextElementSibling).is(e)?ts([this[0].nextElementSibling]):ts([]):this[0].nextElementSibling?ts([this[0].nextElementSibling]):ts([]):ts([])},nextAll:function(e){var t=[],n=this[0];if(!n)return ts([]);for(;n.nextElementSibling;){var r=n.nextElementSibling;e?ts(r).is(e)&&t.push(r):t.push(r),n=r}return ts(t)},prev:function(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&ts(t.previousElementSibling).is(e)?ts([t.previousElementSibling]):ts([]):t.previousElementSibling?ts([t.previousElementSibling]):ts([])}return ts([])},prevAll:function(e){var t=[],n=this[0];if(!n)return ts([]);for(;n.previousElementSibling;){var r=n.previousElementSibling;e?ts(r).is(e)&&t.push(r):t.push(r),n=r}return ts(t)},parent:function(e){for(var t=[],n=0;n6&&(r=r.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),i=new o.WebKitCSSMatrix("none"===r?"":r)):n=(i=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(r=o.WebKitCSSMatrix?i.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===t&&(r=o.WebKitCSSMatrix?i.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),r||0}function cs(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function us(){for(var e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"],n=1;n=0,observer:"MutationObserver"in e||"WebkitMutationObserver"in e,passiveListener:function(){var t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t=!0}});e.addEventListener("testPassiveListener",null,n)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),ns}function fs(e){return void 0===e&&(e={}),rs||(rs=function(e){var t=(void 0===e?{}:e).userAgent,n=ps(),r=Wo(),i=r.navigator.platform,o=t||r.navigator.userAgent,s={ios:!1,android:!1},a=r.screen.width,l=r.screen.height,c=o.match(/(Android);?[\s\/]+([\d.]+)?/),u=o.match(/(iPad).*OS\s([\d_]+)/),d=o.match(/(iPod)(.*OS\s([\d_]+))?/),p=!u&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="Win32"===i,h="MacIntel"===i;return!u&&h&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(a+"x"+l)>=0&&((u=o.match(/(Version)\/([\d.]+)/))||(u=[0,1,"13_0_0"]),h=!1),c&&!f&&(s.os="android",s.android=!0),(u||p||d)&&(s.os="ios",s.ios=!0),s}(e)),rs}function hs(){return is||(is=function(){var e,t=Wo();return{isEdge:!!t.navigator.userAgent.match(/Edge/g),isSafari:(e=t.navigator.userAgent.toLowerCase(),e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}()),is}Object.keys(os).forEach((function(e){Object.defineProperty(ts.fn,e,{value:os[e],writable:!0})}));const ms={name:"resize",create:function(){var e=this;us(e,{resize:{observer:null,createObserver:function(){e&&!e.destroyed&&e.initialized&&(e.resize.observer=new ResizeObserver((function(t){var n=e.width,r=e.height,i=n,o=r;t.forEach((function(t){var n=t.contentBoxSize,r=t.contentRect,s=t.target;s&&s!==e.el||(i=r?r.width:(n[0]||n).inlineSize,o=r?r.height:(n[0]||n).blockSize)})),i===n&&o===r||e.resize.resizeHandler()})),e.resize.observer.observe(e.el))},removeObserver:function(){e.resize.observer&&e.resize.observer.unobserve&&e.el&&(e.resize.observer.unobserve(e.el),e.resize.observer=null)},resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(e){var t=Wo();e.params.resizeObserver&&void 0!==Wo().ResizeObserver?e.resize.createObserver():(t.addEventListener("resize",e.resize.resizeHandler),t.addEventListener("orientationchange",e.resize.orientationChangeHandler))},destroy:function(e){var t=Wo();e.resize.removeObserver(),t.removeEventListener("resize",e.resize.resizeHandler),t.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}};function vs(){return vs=Object.assign||function(e){for(var t=1;t=0&&t.eventsAnyListeners.splice(n,1),t},off:function(e,t){var n=this;return n.eventsListeners?(e.split(" ").forEach((function(e){void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((function(r,i){(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)}))})),n):n},emit:function(){var e,t,n,r=this;if(!r.eventsListeners)return r;for(var i=arguments.length,o=new Array(i),s=0;s=0&&(b=parseFloat(b.replace("%",""))/100*o),e.virtualSize=-b,s?u.css({marginLeft:"",marginTop:""}):u.css({marginRight:"",marginBottom:""}),r.slidesPerColumn>1&&(x=Math.floor(d/r.slidesPerColumn)===d/e.params.slidesPerColumn?d:Math.ceil(d/r.slidesPerColumn)*r.slidesPerColumn,"auto"!==r.slidesPerView&&"row"===r.slidesPerColumnFill&&(x=Math.max(x,r.slidesPerView*r.slidesPerColumn)));for(var $,k,C,E=r.slidesPerColumn,T=x/E,P=Math.floor(d/r.slidesPerColumn),j=0;j1){var A=void 0,L=void 0,D=void 0;if("row"===r.slidesPerColumnFill&&r.slidesPerGroup>1){var M=Math.floor(j/(r.slidesPerGroup*r.slidesPerColumn)),N=j-r.slidesPerColumn*r.slidesPerGroup*M,R=0===M?r.slidesPerGroup:Math.min(Math.ceil((d-M*E*r.slidesPerGroup)/E),r.slidesPerGroup);A=(L=N-(D=Math.floor(N/R))*R+M*r.slidesPerGroup)+D*x/E,I.css({"-webkit-box-ordinal-group":A,"-moz-box-ordinal-group":A,"-ms-flex-order":A,"-webkit-order":A,order:A})}else"column"===r.slidesPerColumnFill?(D=j-(L=Math.floor(j/E))*E,(L>P||L===P&&D===E-1)&&(D+=1)>=E&&(D=0,L+=1)):L=j-(D=Math.floor(j/T))*T;I.css(t("margin-top"),0!==D&&r.spaceBetween&&r.spaceBetween+"px")}if("none"!==I.css("display")){if("auto"===r.slidesPerView){var F=getComputedStyle(I[0]),B=I[0].style.transform,q=I[0].style.webkitTransform;if(B&&(I[0].style.transform="none"),q&&(I[0].style.webkitTransform="none"),r.roundLengths)O=e.isHorizontal()?I.outerWidth(!0):I.outerHeight(!0);else{var z=n(F,"width"),H=n(F,"padding-left"),U=n(F,"padding-right"),V=n(F,"margin-left"),W=n(F,"margin-right"),G=F.getPropertyValue("box-sizing");if(G&&"border-box"===G)O=z+V+W;else{var K=I[0],J=K.clientWidth;O=z+H+U+V+W+(K.offsetWidth-J)}}B&&(I[0].style.transform=B),q&&(I[0].style.webkitTransform=q),r.roundLengths&&(O=Math.floor(O))}else O=(o-(r.slidesPerView-1)*b)/r.slidesPerView,r.roundLengths&&(O=Math.floor(O)),u[j]&&(u[j].style[t("width")]=O+"px");u[j]&&(u[j].swiperSlideSize=O),h.push(O),r.centeredSlides?(w=w+O/2+_/2+b,0===_&&0!==j&&(w=w-o/2-b),0===j&&(w=w-o/2-b),Math.abs(w)<.001&&(w=0),r.roundLengths&&(w=Math.floor(w)),S%r.slidesPerGroup==0&&p.push(w),f.push(w)):(r.roundLengths&&(w=Math.floor(w)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup==0&&p.push(w),f.push(w),w=w+O+b),e.virtualSize+=O+b,_=O,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,o)+v,s&&a&&("slide"===r.effect||"coverflow"===r.effect)&&i.css({width:e.virtualSize+r.spaceBetween+"px"}),r.setWrapperSize)i.css(((k={})[t("width")]=e.virtualSize+r.spaceBetween+"px",k));if(r.slidesPerColumn>1)if(e.virtualSize=(O+r.spaceBetween)*x,e.virtualSize=Math.ceil(e.virtualSize/r.slidesPerColumn)-r.spaceBetween,i.css(((C={})[t("width")]=e.virtualSize+r.spaceBetween+"px",C)),r.centeredSlides){$=[];for(var Y=0;Y1&&p.push(e.virtualSize-o)}if(0===p.length&&(p=[0]),0!==r.spaceBetween){var ee,te=e.isHorizontal()&&s?"marginLeft":t("marginRight");u.filter((function(e,t){return!r.cssMode||t!==u.length-1})).css(((ee={})[te]=b+"px",ee))}if(r.centeredSlides&&r.centeredSlidesBounds){var ne=0;h.forEach((function(e){ne+=e+(r.spaceBetween?r.spaceBetween:0)}));var re=(ne-=r.spaceBetween)-o;p=p.map((function(e){return e<0?-m:e>re?re+v:e}))}if(r.centerInsufficientSlides){var ie=0;if(h.forEach((function(e){ie+=e+(r.spaceBetween?r.spaceBetween:0)})),(ie-=r.spaceBetween)1)if(n.params.centeredSlides)n.visibleSlides.each((function(e){r.push(e)}));else for(t=0;tn.slides.length&&!i)break;r.push(s(a))}else r.push(s(n.activeIndex));for(t=0;to?l:o}o&&n.$wrapperEl.css("height",o+"px")},updateSlidesOffset:function(){for(var e=this.slides,t=0;t=0&&c1&&u<=t.size||c<=0&&u>=t.size)&&(t.visibleSlides.push(a),t.visibleSlidesIndexes.push(s),r.eq(s).addClass(n.slideVisibleClass))}a.progress=i?-l:l}t.visibleSlides=ts(t.visibleSlides)}},updateProgress:function(e){var t=this;if(void 0===e){var n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}var r=t.params,i=t.maxTranslate()-t.minTranslate(),o=t.progress,s=t.isBeginning,a=t.isEnd,l=s,c=a;0===i?(o=0,s=!0,a=!0):(s=(o=(e-t.minTranslate())/i)<=0,a=o>=1),us(t,{progress:o,isBeginning:s,isEnd:a}),(r.watchSlidesProgress||r.watchSlidesVisibility||r.centeredSlides&&r.autoHeight)&&t.updateSlidesProgress(e),s&&!l&&t.emit("reachBeginning toEdge"),a&&!c&&t.emit("reachEnd toEdge"),(l&&!s||c&&!a)&&t.emit("fromEdge"),t.emit("progress",o)},updateSlidesClasses:function(){var e,t=this,n=t.slides,r=t.params,i=t.$wrapperEl,o=t.activeIndex,s=t.realIndex,a=t.virtual&&r.virtual.enabled;n.removeClass(r.slideActiveClass+" "+r.slideNextClass+" "+r.slidePrevClass+" "+r.slideDuplicateActiveClass+" "+r.slideDuplicateNextClass+" "+r.slideDuplicatePrevClass),(e=a?t.$wrapperEl.find("."+r.slideClass+'[data-swiper-slide-index="'+o+'"]'):n.eq(o)).addClass(r.slideActiveClass),r.loop&&(e.hasClass(r.slideDuplicateClass)?i.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+s+'"]').addClass(r.slideDuplicateActiveClass):i.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+s+'"]').addClass(r.slideDuplicateActiveClass));var l=e.nextAll("."+r.slideClass).eq(0).addClass(r.slideNextClass);r.loop&&0===l.length&&(l=n.eq(0)).addClass(r.slideNextClass);var c=e.prevAll("."+r.slideClass).eq(0).addClass(r.slidePrevClass);r.loop&&0===c.length&&(c=n.eq(-1)).addClass(r.slidePrevClass),r.loop&&(l.hasClass(r.slideDuplicateClass)?i.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicateNextClass):i.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicateNextClass),c.hasClass(r.slideDuplicateClass)?i.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicatePrevClass):i.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicatePrevClass)),t.emitSlidesClasses()},updateActiveIndex:function(e){var t,n=this,r=n.rtlTranslate?n.translate:-n.translate,i=n.slidesGrid,o=n.snapGrid,s=n.params,a=n.activeIndex,l=n.realIndex,c=n.snapIndex,u=e;if(void 0===u){for(var d=0;d=i[d]&&r=i[d]&&r=i[d]&&(u=d);s.normalizeSlideIndex&&(u<0||void 0===u)&&(u=0)}if(o.indexOf(r)>=0)t=o.indexOf(r);else{var p=Math.min(s.slidesPerGroupSkip,u);t=p+Math.floor((u-p)/s.slidesPerGroup)}if(t>=o.length&&(t=o.length-1),u!==a){var f=parseInt(n.slides.eq(u).attr("data-swiper-slide-index")||u,10);us(n,{snapIndex:t,realIndex:f,previousIndex:a,activeIndex:u}),n.emit("activeIndexChange"),n.emit("snapIndexChange"),l!==f&&n.emit("realIndexChange"),(n.initialized||n.params.runCallbacksOnInit)&&n.emit("slideChange")}else t!==c&&(n.snapIndex=t,n.emit("snapIndexChange"))},updateClickedSlide:function(e){var t,n=this,r=n.params,i=ts(e.target).closest("."+r.slideClass)[0],o=!1;if(i)for(var s=0;sc?c:r&&e=c.length&&(g=c.length-1),(p||l.initialSlide||0)===(d||0)&&n&&s.emit("beforeSlideChangeStart");var y,b=-c[g];if(s.updateProgress(b),l.normalizeSlideIndex)for(var w=0;w=S&&_=S&&_=S&&(a=w)}if(s.initialized&&a!==p){if(!s.allowSlideNext&&bs.translate&&b>s.maxTranslate()&&(p||0)!==a)return!1}if(y=a>p?"next":a=e&&(f=e)})),void 0!==f&&(p=a.indexOf(f))<0&&(p=r.activeIndex-1),r.slideTo(p,e,t,n)},slideReset:function(e,t,n){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,n)},slideToClosest:function(e,t,n,r){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===r&&(r=.5);var i=this,o=i.activeIndex,s=Math.min(i.params.slidesPerGroupSkip,o),a=s+Math.floor((o-s)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[a]){var c=i.snapGrid[a];l-c>(i.snapGrid[a+1]-c)*r&&(o+=i.params.slidesPerGroup)}else{var u=i.snapGrid[a-1];l-u<=(i.snapGrid[a]-u)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,n)},slideToClickedSlide:function(){var e,t=this,n=t.params,r=t.$wrapperEl,i="auto"===n.slidesPerView?t.slidesPerViewDynamic():n.slidesPerView,o=t.clickedIndex;if(n.loop){if(t.animating)return;e=parseInt(ts(t.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?ot.slides.length-t.loopedSlides+i/2?(t.loopFix(),o=r.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),ss((function(){t.slideTo(o)}))):t.slideTo(o):o>t.slides.length-i?(t.loopFix(),o=r.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),ss((function(){t.slideTo(o)}))):t.slideTo(o)}else t.slideTo(o)}};const xs={loopCreate:function(){var e=this,t=Uo(),n=e.params,r=e.$wrapperEl;r.children("."+n.slideClass+"."+n.slideDuplicateClass).remove();var i=r.children("."+n.slideClass);if(n.loopFillGroupWithBlank){var o=n.slidesPerGroup-i.length%n.slidesPerGroup;if(o!==n.slidesPerGroup){for(var s=0;si.length&&(e.loopedSlides=i.length);var l=[],c=[];i.each((function(t,n){var r=ts(t);n=i.length-e.loopedSlides&&l.push(t),r.attr("data-swiper-slide-index",n)}));for(var u=0;u=0;d-=1)r.prepend(ts(l[d].cloneNode(!0)).addClass(n.slideDuplicateClass))},loopFix:function(){var e=this;e.emit("beforeLoopFix");var t,n=e.activeIndex,r=e.slides,i=e.loopedSlides,o=e.allowSlidePrev,s=e.allowSlideNext,a=e.snapGrid,l=e.rtlTranslate;e.allowSlidePrev=!0,e.allowSlideNext=!0;var c=-a[n]-e.getTranslate();if(n=r.length-i){t=-r.length+n+i,t+=i,e.slideTo(t,0,!1,!0)&&0!==c&&e.setTranslate((l?-e.translate:e.translate)-c)}e.allowSlidePrev=o,e.allowSlideNext=s,e.emit("loopFix")},loopDestroy:function(){var e=this,t=e.$wrapperEl,n=e.params,r=e.slides;t.children("."+n.slideClass+"."+n.slideDuplicateClass+",."+n.slideClass+"."+n.slideBlankClass).remove(),r.removeAttr("data-swiper-slide-index")}};const Os={appendSlide:function(e){var t=this,n=t.$wrapperEl,r=t.params;if(r.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(var i=0;i=s)n.appendSlide(t);else{for(var a=o>e?o+1:o,l=[],c=s-1;c>=e;c-=1){var u=n.slides.eq(c);u.remove(),l.unshift(u)}if("object"==typeof t&&"length"in t){for(var d=0;de?o+t.length:o}else r.append(t);for(var p=0;p0))if(!i.isTouched||!i.isMoved)if(!!o.noSwipingClass&&""!==o.noSwipingClass&&a.target&&a.target.shadowRoot&&e.path&&e.path[0]&&(l=ts(e.path[0])),o.noSwiping&&l.closest(o.noSwipingSelector?o.noSwipingSelector:"."+o.noSwipingClass)[0])t.allowClick=!0;else if(!o.swipeHandler||l.closest(o.swipeHandler)[0]){s.currentX="touchstart"===a.type?a.targetTouches[0].pageX:a.pageX,s.currentY="touchstart"===a.type?a.targetTouches[0].pageY:a.pageY;var c=s.currentX,u=s.currentY,d=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,p=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(d&&(c<=p||c>=r.innerWidth-p)){if("prevent"!==d)return;e.preventDefault()}if(us(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=c,s.startY=u,i.touchStartTime=as(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1),"touchstart"!==a.type){var f=!0;l.is(i.formElements)&&(f=!1),n.activeElement&&ts(n.activeElement).is(i.formElements)&&n.activeElement!==l[0]&&n.activeElement.blur();var h=f&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!h||l[0].isContentEditable||a.preventDefault()}t.emit("touchStart",a)}}}function ks(e){var t=Uo(),n=this,r=n.touchEventsData,i=n.params,o=n.touches,s=n.rtlTranslate;if(n.enabled){var a=e;if(a.originalEvent&&(a=a.originalEvent),r.isTouched){if(!r.isTouchEvent||"touchmove"===a.type){var l="touchmove"===a.type&&a.targetTouches&&(a.targetTouches[0]||a.changedTouches[0]),c="touchmove"===a.type?l.pageX:a.pageX,u="touchmove"===a.type?l.pageY:a.pageY;if(a.preventedByNestedSwiper)return o.startX=c,void(o.startY=u);if(!n.allowTouchMove)return n.allowClick=!1,void(r.isTouched&&(us(o,{startX:c,startY:u,currentX:c,currentY:u}),r.touchStartTime=as()));if(r.isTouchEvent&&i.touchReleaseOnEdges&&!i.loop)if(n.isVertical()){if(uo.startY&&n.translate>=n.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(co.startX&&n.translate>=n.minTranslate())return;if(r.isTouchEvent&&t.activeElement&&a.target===t.activeElement&&ts(a.target).is(r.formElements))return r.isMoved=!0,void(n.allowClick=!1);if(r.allowTouchCallbacks&&n.emit("touchMove",a),!(a.targetTouches&&a.targetTouches.length>1)){o.currentX=c,o.currentY=u;var d=o.currentX-o.startX,p=o.currentY-o.startY;if(!(n.params.threshold&&Math.sqrt(Math.pow(d,2)+Math.pow(p,2))=25&&(f=180*Math.atan2(Math.abs(p),Math.abs(d))/Math.PI,r.isScrolling=n.isHorizontal()?f>i.touchAngle:90-f>i.touchAngle);if(r.isScrolling&&n.emit("touchMoveOpposite",a),void 0===r.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(r.startMoving=!0)),r.isScrolling)r.isTouched=!1;else if(r.startMoving){n.allowClick=!1,!i.cssMode&&a.cancelable&&a.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&a.stopPropagation(),r.isMoved||(i.loop&&n.loopFix(),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,!i.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",a)),n.emit("sliderMove",a),r.isMoved=!0;var h=n.isHorizontal()?d:p;o.diff=h,h*=i.touchRatio,s&&(h=-h),n.swipeDirection=h>0?"prev":"next",r.currentTranslate=h+r.startTranslate;var m=!0,v=i.resistanceRatio;if(i.touchReleaseOnEdges&&(v=0),h>0&&r.currentTranslate>n.minTranslate()?(m=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+Math.pow(-n.minTranslate()+r.startTranslate+h,v))):h<0&&r.currentTranslater.startTranslate&&(r.currentTranslate=r.startTranslate),n.allowSlidePrev||n.allowSlideNext||(r.currentTranslate=r.startTranslate),i.threshold>0){if(!(Math.abs(h)>i.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,void(o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}i.followFinger&&!i.cssMode&&((i.freeMode||i.watchSlidesProgress||i.watchSlidesVisibility)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&(0===r.velocities.length&&r.velocities.push({position:o[n.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:o[n.isHorizontal()?"currentX":"currentY"],time:as()})),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}}}}}else r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",a)}}function Cs(e){var t=this,n=t.touchEventsData,r=t.params,i=t.touches,o=t.rtlTranslate,s=t.$wrapperEl,a=t.slidesGrid,l=t.snapGrid;if(t.enabled){var c=e;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",c),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&r.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);r.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var u,d=as(),p=d-n.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(c),t.emit("tap click",c),p<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",c)),n.lastClickTime=as(),ss((function(){t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===i.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,u=r.followFinger?o?t.translate:-t.translate:-n.currentTranslate,!r.cssMode)if(r.freeMode){if(u<-t.minTranslate())return void t.slideTo(t.activeIndex);if(u>-t.maxTranslate())return void(t.slides.length1){var f=n.velocities.pop(),h=n.velocities.pop(),m=f.position-h.position,v=f.time-h.time;t.velocity=m/v,t.velocity/=2,Math.abs(t.velocity)150||as()-f.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=r.freeModeMomentumVelocityRatio,n.velocities.length=0;var g=1e3*r.freeModeMomentumRatio,y=t.velocity*g,b=t.translate+y;o&&(b=-b);var w,_,S=!1,x=20*Math.abs(t.velocity)*r.freeModeMomentumBounceRatio;if(bt.minTranslate())r.freeModeMomentumBounce?(b-t.minTranslate()>x&&(b=t.minTranslate()+x),w=t.minTranslate(),S=!0,n.allowMomentumBounce=!0):b=t.minTranslate(),r.loop&&r.centeredSlides&&(_=!0);else if(r.freeModeSticky){for(var O,$=0;$-b){O=$;break}b=-(b=Math.abs(l[O]-b)=r.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var E=0,T=t.slidesSizesGrid[0],P=0;P=a[P]&&u=a[P]&&(E=P,T=a[a.length-1]-a[a.length-2])}var I=(u-a[E])/T,A=Er.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(I>=r.longSwipesRatio?t.slideTo(E+A):t.slideTo(E)),"prev"===t.swipeDirection&&(I>1-r.longSwipesRatio?t.slideTo(E+A):t.slideTo(E))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(c.target===t.navigation.nextEl||c.target===t.navigation.prevEl)?c.target===t.navigation.nextEl?t.slideTo(E+A):t.slideTo(E):("next"===t.swipeDirection&&t.slideTo(E+A),"prev"===t.swipeDirection&&t.slideTo(E))}}}}function Es(){var e=this,t=e.params,n=e.el;if(!n||0!==n.offsetWidth){t.breakpoints&&e.setBreakpoint();var r=e.allowSlideNext,i=e.allowSlidePrev,o=e.snapGrid;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}}function Ts(e){var t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Ps(){var e=this,t=e.wrapperEl,n=e.rtlTranslate;if(e.enabled){e.previousTranslate=e.translate,e.isHorizontal()?e.translate=n?t.scrollWidth-t.offsetWidth-t.scrollLeft:-t.scrollLeft:e.translate=-t.scrollTop,-0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();var r=e.maxTranslate()-e.minTranslate();(0===r?0:(e.translate-e.minTranslate())/r)!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}}var js=!1;function Is(){}const As={attachEvents:function(){var e=this,t=Uo(),n=e.params,r=e.touchEvents,i=e.el,o=e.wrapperEl,s=e.device,a=e.support;e.onTouchStart=$s.bind(e),e.onTouchMove=ks.bind(e),e.onTouchEnd=Cs.bind(e),n.cssMode&&(e.onScroll=Ps.bind(e)),e.onClick=Ts.bind(e);var l=!!n.nested;if(!a.touch&&a.pointerEvents)i.addEventListener(r.start,e.onTouchStart,!1),t.addEventListener(r.move,e.onTouchMove,l),t.addEventListener(r.end,e.onTouchEnd,!1);else{if(a.touch){var c=!("touchstart"!==r.start||!a.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};i.addEventListener(r.start,e.onTouchStart,c),i.addEventListener(r.move,e.onTouchMove,a.passiveListener?{passive:!1,capture:l}:l),i.addEventListener(r.end,e.onTouchEnd,c),r.cancel&&i.addEventListener(r.cancel,e.onTouchEnd,c),js||(t.addEventListener("touchstart",Is),js=!0)}(n.simulateTouch&&!s.ios&&!s.android||n.simulateTouch&&!a.touch&&s.ios)&&(i.addEventListener("mousedown",e.onTouchStart,!1),t.addEventListener("mousemove",e.onTouchMove,l),t.addEventListener("mouseup",e.onTouchEnd,!1))}(n.preventClicks||n.preventClicksPropagation)&&i.addEventListener("click",e.onClick,!0),n.cssMode&&o.addEventListener("scroll",e.onScroll),n.updateOnWindowResize?e.on(s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",Es,!0):e.on("observerUpdate",Es,!0)},detachEvents:function(){var e=this,t=Uo(),n=e.params,r=e.touchEvents,i=e.el,o=e.wrapperEl,s=e.device,a=e.support,l=!!n.nested;if(!a.touch&&a.pointerEvents)i.removeEventListener(r.start,e.onTouchStart,!1),t.removeEventListener(r.move,e.onTouchMove,l),t.removeEventListener(r.end,e.onTouchEnd,!1);else{if(a.touch){var c=!("onTouchStart"!==r.start||!a.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};i.removeEventListener(r.start,e.onTouchStart,c),i.removeEventListener(r.move,e.onTouchMove,l),i.removeEventListener(r.end,e.onTouchEnd,c),r.cancel&&i.removeEventListener(r.cancel,e.onTouchEnd,c)}(n.simulateTouch&&!s.ios&&!s.android||n.simulateTouch&&!a.touch&&s.ios)&&(i.removeEventListener("mousedown",e.onTouchStart,!1),t.removeEventListener("mousemove",e.onTouchMove,l),t.removeEventListener("mouseup",e.onTouchEnd,!1))}(n.preventClicks||n.preventClicksPropagation)&&i.removeEventListener("click",e.onClick,!0),n.cssMode&&o.removeEventListener("scroll",e.onScroll),e.off(s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",Es)}};const Ls={setBreakpoint:function(){var e=this,t=e.activeIndex,n=e.initialized,r=e.loopedSlides,i=void 0===r?0:r,o=e.params,s=e.$el,a=o.breakpoints;if(a&&(!a||0!==Object.keys(a).length)){var l=e.getBreakpoint(a,e.params.breakpointsBase,e.el);if(l&&e.currentBreakpoint!==l){var c=l in a?a[l]:void 0;c&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach((function(e){var t=c[e];void 0!==t&&(c[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")}));var u=c||e.originalParams,d=o.slidesPerColumn>1,p=u.slidesPerColumn>1,f=o.enabled;d&&!p?(s.removeClass(o.containerModifierClass+"multirow "+o.containerModifierClass+"multirow-column"),e.emitContainerClasses()):!d&&p&&(s.addClass(o.containerModifierClass+"multirow"),"column"===u.slidesPerColumnFill&&s.addClass(o.containerModifierClass+"multirow-column"),e.emitContainerClasses());var h=u.direction&&u.direction!==o.direction,m=o.loop&&(u.slidesPerView!==o.slidesPerView||h);h&&n&&e.changeDirection(),us(e.params,u);var v=e.params.enabled;us(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),f&&!v?e.disable():!f&&v&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",u),m&&n&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-i+e.loopedSlides,0,!1)),e.emit("breakpoint",u)}}},getBreakpoint:function(e,t,n){if(void 0===t&&(t="window"),e&&("container"!==t||n)){var r=!1,i=Wo(),o="window"===t?i.innerWidth:n.clientWidth,s="window"===t?i.innerHeight:n.clientHeight,a=Object.keys(e).map((function(e){if("string"==typeof e&&0===e.indexOf("@")){var t=parseFloat(e.substr(1));return{value:s*t,point:e}}return{value:e,point:e}}));a.sort((function(e,t){return parseInt(e.value,10)-parseInt(t.value,10)}));for(var l=0;l1},{"multirow-column":o.slidesPerColumn>1&&"column"===o.slidesPerColumnFill},{android:l.android},{ios:l.ios},{"css-mode":o.cssMode}],t=o.containerModifierClass,n=[],e.forEach((function(e){"object"==typeof e?Object.keys(e).forEach((function(r){e[r]&&n.push(t+r)})):"string"==typeof e&&n.push(t+e)})),n);i.push.apply(i,u),a.addClass([].concat(i).join(" ")),r.emitContainerClasses()},removeClasses:function(){var e=this,t=e.$el,n=e.classNames;t.removeClass(n.join(" ")),e.emitContainerClasses()}};const Ms={loadImage:function(e,t,n,r,i,o){var s,a=Wo();function l(){o&&o()}ts(e).parent("picture")[0]||e.complete&&i?l():t?((s=new a.Image).onload=l,s.onerror=l,r&&(s.sizes=r),n&&(s.srcset=n),t&&(s.src=t)):l()},preloadImages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var n=0;no?"next":ri?"next":r0&&t.slidesOffsetBefore+t.spaceBetween*(e.slides.length-1)+e.slides[0].offsetWidth*e.slides.length;t.slidesOffsetBefore&&t.slidesOffsetAfter&&r?e.isLocked=r<=e.size:e.isLocked=1===e.snapGrid.length,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,n!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),n&&n!==e.isLocked&&(e.isEnd=!1,e.navigation&&e.navigation.update())}},classes:Ds,images:Ms},Bs={},qs=function(){function e(){for(var t,n,r=arguments.length,i=new Array(r),o=0;o1){var s=[];return ts(n.el).each((function(t){var r=us({},n,{el:t});s.push(new e(r))})),s}var a=this;a.__swiper__=!0,a.support=ps(),a.device=fs({userAgent:n.userAgent}),a.browser=hs(),a.eventsListeners={},a.eventsAnyListeners=[],void 0===a.modules&&(a.modules={}),Object.keys(a.modules).forEach((function(e){var t=a.modules[e];if(t.params){var r=Object.keys(t.params)[0],i=t.params[r];if("object"!=typeof i||null===i)return;if(!(r in n)||!("enabled"in i))return;!0===n[r]&&(n[r]={enabled:!0}),"object"!=typeof n[r]||"enabled"in n[r]||(n[r].enabled=!0),n[r]||(n[r]={enabled:!1})}}));var l,c,u=us({},Ns);return a.useParams(u),a.params=us({},u,Bs,n),a.originalParams=us({},a.params),a.passedParams=us({},n),a.params&&a.params.on&&Object.keys(a.params.on).forEach((function(e){a.on(e,a.params.on[e])})),a.params&&a.params.onAny&&a.onAny(a.params.onAny),a.$=ts,us(a,{enabled:a.params.enabled,el:t,classNames:[],slides:ts(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===a.params.direction},isVertical:function(){return"vertical"===a.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEvents:(l=["touchstart","touchmove","touchend","touchcancel"],c=["mousedown","mousemove","mouseup"],a.support.pointerEvents&&(c=["pointerdown","pointermove","pointerup"]),a.touchEventsTouch={start:l[0],move:l[1],end:l[2],cancel:l[3]},a.touchEventsDesktop={start:c[0],move:c[1],end:c[2]},a.support.touch||!a.params.simulateTouch?a.touchEventsTouch:a.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video, label",lastClickTime:as(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.useModules(),a.emit("_swiper"),a.params.init&&a.init(),a}var t,n,r,i=e.prototype;return i.enable=function(){var e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))},i.disable=function(){var e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))},i.setProgress=function(e,t){var n=this;e=Math.min(Math.max(e,0),1);var r=n.minTranslate(),i=(n.maxTranslate()-r)*e+r;n.translateTo(i,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()},i.emitContainerClasses=function(){var e=this;if(e.params._emitClasses&&e.el){var t=e.el.className.split(" ").filter((function(t){return 0===t.indexOf("swiper-container")||0===t.indexOf(e.params.containerModifierClass)}));e.emit("_containerClasses",t.join(" "))}},i.getSlideClasses=function(e){var t=this;return e.className.split(" ").filter((function(e){return 0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)})).join(" ")},i.emitSlidesClasses=function(){var e=this;if(e.params._emitClasses&&e.el){var t=[];e.slides.each((function(n){var r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit("_slideClass",n,r)})),e.emit("_slideClasses",t)}},i.slidesPerViewDynamic=function(){var e=this,t=e.params,n=e.slides,r=e.slidesGrid,i=e.size,o=e.activeIndex,s=1;if(t.centeredSlides){for(var a,l=n[o].swiperSlideSize,c=o+1;ci&&(a=!0));for(var u=o-1;u>=0;u-=1)n[u]&&!a&&(s+=1,(l+=n[u].swiperSlideSize)>i&&(a=!0))}else for(var d=o+1;d1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||r(),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function r(){var t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}},i.changeDirection=function(e,t){void 0===t&&(t=!0);var n=this,r=n.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(n.$el.removeClass(""+n.params.containerModifierClass+r).addClass(""+n.params.containerModifierClass+e),n.emitContainerClasses(),n.params.direction=e,n.slides.each((function(t){"vertical"===e?t.style.width="":t.style.height=""})),n.emit("changeDirection"),t&&n.update()),n},i.mount=function(e){var t=this;if(t.mounted)return!0;var n,r=ts(e||t.params.el);return!!(e=r[0])&&(e.swiper=t,e&&e.shadowRoot&&e.shadowRoot.querySelector?(n=ts(e.shadowRoot.querySelector("."+t.params.wrapperClass))).children=function(e){return r.children(e)}:n=r.children("."+t.params.wrapperClass),us(t,{$el:r,el:e,$wrapperEl:n,wrapperEl:n[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===r.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===r.css("direction")),wrongRTL:"-webkit-box"===n.css("display")}),!0)},i.init=function(e){var t=this;return t.initialized||!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t},i.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var n,r=this,i=r.params,o=r.$el,s=r.$wrapperEl,a=r.slides;return void 0===r.params||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),t&&(r.removeClasses(),o.removeAttr("style"),s.removeAttr("style"),a&&a.length&&a.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),r.emit("destroy"),Object.keys(r.eventsListeners).forEach((function(e){r.off(e)})),!1!==e&&(r.$el[0].swiper=null,n=r,Object.keys(n).forEach((function(e){try{n[e]=null}catch(e){}try{delete n[e]}catch(e){}}))),r.destroyed=!0),null},e.extendDefaults=function(e){us(Bs,e)},e.installModule=function(t){e.prototype.modules||(e.prototype.modules={});var n=t.name||Object.keys(e.prototype.modules).length+"_"+as();e.prototype.modules[n]=t},e.use=function(t){return Array.isArray(t)?(t.forEach((function(t){return e.installModule(t)})),e):(e.installModule(t),e)},t=e,r=[{key:"extendedDefaults",get:function(){return Bs}},{key:"defaults",get:function(){return Ns}}],(n=null)&&Rs(t.prototype,n),r&&Rs(t,r),e}();function zs(){return zs=Object.assign||function(e){for(var t=1;t0&&(e.isBeginning?n(o,!0):n(o,!1),e.params.watchOverflow&&e.enabled&&o[e.isLocked?"addClass":"removeClass"](t.lockClass)),i&&i.length>0&&(e.isEnd?n(i,!0):n(i,!1),e.params.watchOverflow&&e.enabled&&i[e.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(e){var t=this;e.preventDefault(),t.isBeginning&&!t.params.loop||t.slidePrev()},onNextClick:function(e){var t=this;e.preventDefault(),t.isEnd&&!t.params.loop||t.slideNext()},init:function(){var e,t,n=this,r=n.params.navigation;(r.nextEl||r.prevEl)&&(r.nextEl&&(e=ts(r.nextEl),n.params.uniqueNavElements&&"string"==typeof r.nextEl&&e.length>1&&1===n.$el.find(r.nextEl).length&&(e=n.$el.find(r.nextEl))),r.prevEl&&(t=ts(r.prevEl),n.params.uniqueNavElements&&"string"==typeof r.prevEl&&t.length>1&&1===n.$el.find(r.prevEl).length&&(t=n.$el.find(r.prevEl))),e&&e.length>0&&e.on("click",n.navigation.onNextClick),t&&t.length>0&&t.on("click",n.navigation.onPrevClick),us(n.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}),n.enabled||(e&&e.addClass(r.lockClass),t&&t.addClass(r.lockClass)))},destroy:function(){var e=this,t=e.navigation,n=t.$nextEl,r=t.$prevEl;n&&n.length&&(n.off("click",e.navigation.onNextClick),n.removeClass(e.params.navigation.disabledClass)),r&&r.length&&(r.off("click",e.navigation.onPrevClick),r.removeClass(e.params.navigation.disabledClass))}};const Us={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){ds(this,{navigation:zs({},Hs)})},on:{init:function(e){e.navigation.init(),e.navigation.update()},toEdge:function(e){e.navigation.update()},fromEdge:function(e){e.navigation.update()},destroy:function(e){e.navigation.destroy()},"enable disable":function(e){var t=e.navigation,n=t.$nextEl,r=t.$prevEl;n&&n[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass),r&&r[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass)},click:function(e,t){var n=e.navigation,r=n.$nextEl,i=n.$prevEl,o=t.target;if(e.params.navigation.hideOnClick&&!ts(o).is(i)&&!ts(o).is(r)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===o||e.pagination.el.contains(o)))return;var s;r?s=r.hasClass(e.params.navigation.hiddenClass):i&&(s=i.hasClass(e.params.navigation.hiddenClass)),!0===s?e.emit("navigationShow"):e.emit("navigationHide"),r&&r.toggleClass(e.params.navigation.hiddenClass),i&&i.toggleClass(e.params.navigation.hiddenClass)}}}};function Vs(){return Vs=Object.assign||function(e){for(var t=1;t{const n=e.slides;for(let t=0;te.getAttribute("active")));e?this.select(e):!this.selectedTab&&this.tabs.length>0&&this.select(this.tabs[0])}select(e){e&&(this.tabs.forEach((t=>t.setAttribute("active",(t===e).toString()))),this.selectedTab=e,this.tabSelect.emit([{selectedTab:e}]))}get tabs(){return Array.from(this.el.querySelectorAll("pulumi-tab")||[])}labelFor(e){return e.getAttribute("label")||""}partsFor(e){const t=["tab"];return this.selectedTab===e&&t.push("active-tab"),t.join(" ")}render(){return Xe("div",null,Xe("ul",{part:"tabs",role:"tablist"},this.tabs.map((e=>Xe("li",{part:this.partsFor(e),role:"presentation"},Xe("a",{part:"anchor",onClick:this.select.bind(this,e),role:"tab","aria-selected":this.selectedTab===e},this.labelFor(e)))))),Xe("slot",null))}get el(){return this}static get style(){return":host {\n display: block;\n }\n ul {\n display: flex;\n width: 100%;\n align-items: center;\n margin: 0;\n padding: 0;\n width: auto;\n list-style-type: none;\n }\n li {\n display: flex;\n justify-content: center;\n }\n li a {\n cursor: pointer;\n display: flex;\n justify-content: center;\n flex: 1;\n text-align: center;\n white-space: nowrap;\n }"}},Xs=class extends HTMLElement{constructor(){super(),this.__registerHost()}componentWillLoad(){this.parsedItems=JSON.parse(this.items),this.tabContent=this.parsedItems.map((e=>e.anchor)),this.selectTab(this.parsedItems[0])}selectTab(e){this.selection=e.anchor,document.getElementById(`${e.anchor}`).classList.remove("hidden");this.tabContent.filter((t=>t!==e.anchor)).forEach((e=>{document.getElementById(`${e}`).classList.add("hidden")}))}render(){return Xe(Ze,null,Xe("ul",null,this.parsedItems.map((e=>Xe("li",{class:this.selection===e.anchor?"active":""},Xe("a",{onClick:()=>this.selectTab(e)},e.label))))))}static get style(){return":host{display:block}"}},Qs=class extends HTMLElement{constructor(){super(),this.__registerHost()}async show(){return new Promise((e=>{this.active=!0,setTimeout((()=>e()),100)}))}async hide(){return new Promise((e=>{this.active=!1,setTimeout((()=>e()),100)}))}componentDidLoad(){this.id=$n(),this.active=!1;const e=this.el.querySelector(".tooltip-target");e.addEventListener("mouseover",(()=>this.active=!0)),e.addEventListener("mouseout",(()=>this.active=!1)),e.addEventListener("touchstart",(()=>this.active=!0)),e.addEventListener("touchend",(()=>this.active=!1))}render(){return Xe(Ze,null,Xe("span",{class:"tooltip-target "+(this.active?"active":""),"aria-labelledby":this.id},Xe("slot",null)),Xe("span",{id:this.id,class:"tooltip-content",role:"tooltip"},Xe("slot",{name:"content"})))}get el(){return this}},Zs=class extends HTMLElement{constructor(){super(),this.__registerHost()}handleScroll(){this.setVisibility()}componentWillRender(){this.setVisibility()}render(){let e=`btn-scroll-top fas fa-chevron-up ${this.visible}`;return Xe("a",{class:e,title:"Scroll to top",href:"#"})}setVisibility(){this.visible=window.scrollY>2500?"visible":"hidden"}static get style(){return""}},ea=class extends HTMLElement{constructor(){super(),this.__registerHost()}handleRendered(e){this.storeUnsubscribe=wi.mapStateToProps(this,(e=>{const{user:{id:t}}=e;return{userId:t}}))}disconnectedCallback(){this.storeUnsubscribe&&this.storeUnsubscribe()}render(){return Xe("span",{class:"signed-out"},Xe("slot",{name:"signed-in"}),Xe("slot",{name:"signed-out"}))}static get style(){return"pulumi-user-toggle{display:inline}pulumi-user-toggle [slot]{display:none}pulumi-user-toggle .signed-out [slot=signed-out]{display:inherit}pulumi-user-toggle .signed-in [slot=signed-in]{display:inherit}"}},ta=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.defaultFormId=""}componentWillLoad(){this.parsedSessions=this.transformSessionData(JSON.parse(this.sessions));const e=oi("date");if(e){const t=new Date(e);if(isNaN(t.getTime()))return;const n=this.parsedSessions.find((e=>{const n=new Date(e.key);return n.getFullYear()===t.getFullYear()&&n.getMonth()===t.getMonth()&&n.getDate()===t.getDate()}));n&&(this.defaultFormId=n.hubspotFormId)}}transformSessionData(e){return e.map((e=>{const t=new Date(e.datetime);return{hubspotFormId:e.hubspot_form_id,key:t.toLocaleString(void 0,{timeZoneName:"short",weekday:"short",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"2-digit"})}}))}render(){return Xe("pulumi-multi-select-form",{items:this.parsedSessions,selectClass:this.selectClass,labelClass:this.labelClass,labelText:"Pick A Session",defaultFormId:this.defaultFormId})}static get style(){return":host{display:block}"}},na=Kt(ai,[0,"copilot-sidebar",{copilotSrc:[1,"copilot-src"],showSidebar:[32]}]),ra=Kt(li,[0,"event-session-registration-modal",{buttonClass:[1,"button-class"],buttonText:[1,"button-text"],modalTitle:[1,"modal-title"],eventSessions:[1,"event-sessions"],redirectUrl:[1,"redirect-url"],isModalOpen:[32],displayingContent:[32],selectedSessions:[32],skippedSessionSelection:[32],processingFormSubmissions:[32],formProcessor:[32],error:[32],submittedFormValues:[32]}]),ia=Kt(ci,[0,"header-cta",{buttonClass:[1,"button-class"],loading:[32],isLoggedIn:[32]}]),oa=Kt(ui,[0,"home-slots",{leftItems:[1,"left-items"],centerItems:[1,"center-items"],rightItems:[1,"right-items"],imageClass:[1,"image-class"],columnOne:[32],columnOneRotator:[32],columnTwo:[32],columnTwoRotator:[32],columnThree:[32],columnThreeRotator:[32]}]),sa=Kt(di,[0,"pricing-cta",{buttonClass:[1,"button-class"],loading:[32],isLoggedIn:[32]}]),aa=Kt(vi,[0,"pulumi-api-doc-filterable-nav",{baseDirectory:[1,"base-directory"],packageName:[1,"package-name"],isLoading:[32],parsedNodes:[32],currentlyRenderedNodes:[32],filterContent:[32]}]),la=Kt(gi,[4,"pulumi-api-doc-nav-node",{node:[16],href:[1],depth:[2],isExpanded:[1028,"is-expanded"]}]),ca=Kt(yi,[0,"pulumi-api-doc-nav-tree",{nodes:[16],baseDirectory:[1,"base-directory"]}]),ua=Kt(bi,[0,"pulumi-audio",{url:[1],playingText:[1,"playing-text"],pausedText:[1,"paused-text"],paused:[32],isLoading:[32],error:[32]}]),da=Kt(xi,[4,"pulumi-banner",{name:[1],dismissible:[4],visible:[1540]},[[4,"rendered","onRendered"]]]),pa=Kt(Oi,[4,"pulumi-choosable",{type:[1025],value:[1025],values:[1025],mode:[1025],selection:[1025]},[[4,"rendered","onRendered"]]]),fa=Kt(Ii,[4,"pulumi-chooser",{type:[1025],options:[1025],selection:[1025],optionStyle:[1025,"option-style"],mode:[1025],currentOptions:[32]},[[4,"rendered","onRendered"]]]),ha=Kt(Ai,[0,"pulumi-contact-us-form",{items:[1],selectClass:[1,"select-class"],labelClass:[1,"label-class"],parsedItems:[32],defaultFormId:[32]}]),ma=Kt(Qi,[0,"pulumi-convert",{from:[1],endpoint:[1],examples:[1],theme:[1],sourceFiles:[32],converting:[32],convertible:[32],alertDismissed:[32]}]),va=Kt(Zi,[0,"pulumi-date-countdown",{dateString:[1,"date-string"],textClass:[1,"text-class"],containerClass:[1,"container-class"],valueLabelClass:[1,"value-label-class"],countdownOverText:[1,"countdown-over-text"],countdownData:[32]}]),ga=Kt(eo,[0,"pulumi-date-countdown-circles",{dateString:[1,"date-string"],containerClass:[1,"container-class"],valueLabelClass:[1,"value-label-class"],countdownData:[32]}]),ya=Kt(to,[1,"pulumi-datetime",{class:[1],timeonly:[4],date:[1025]}]),ba=Kt(no,[0,"pulumi-developer-quotes",{quotes:[1]}]),wa=Kt(ro,[4,"pulumi-docs-nav",{expandedMenuIDs:[1025,"expanded-menu-ids"]},[[0,"click","onClick"]]]),_a=Kt(io,[4,"pulumi-example"]),Sa=Kt(oo,[4,"pulumi-examples"]),xa=Kt(so,[1,"pulumi-filter-select",{filters:[32]},[[0,"optionChange","onOptionChange"]]]),Oa=Kt(ao,[1,"pulumi-filter-select-option",{label:[1],value:[1],selected:[4]}]),$a=Kt(lo,[1,"pulumi-filter-select-option-group",{name:[1],expanded:[516]},[[4,"click","onDocumentClick"]]]),ka=Kt(co,[0,"pulumi-greenhouse-jobs-list",{departments:[32],loading:[32]}]),Ca=Kt(uo,[0,"pulumi-hubspot-form",{formId:[1,"form-id"],salesforceCampaignId:[1,"salesforce-campaign-id"],goToWebinarKey:[1,"go-to-webinar-key"],class:[1],isLoading:[32],didLoad:[32]}]),Ea=Kt(po,[0,"pulumi-install",{os:[1025],tooltipContent:[32]}]),Ta=Kt(fo,[0,"pulumi-multi-select-form",{items:[16],selectClass:[1,"select-class"],labelClass:[1,"label-class"],labelText:[1,"label-text"],defaultFormId:[1,"default-form-id"],selectedItem:[32],formSubmitted:[32]}]),Pa=Kt(ho,[0,"pulumi-pricing-calculator",{duration:[32],resourceCount:[32],utilization:[32],deploymentsExpanded:[32],deploymentMinutes:[32]}]),ja=Kt(mo,[0,"pulumi-registry-list-search",{filterContent:[32]}]),Ia=Kt(vo,[0,"pulumi-resource-links",{packageName:[1,"package-name"],moduleName:[1,"module-name"],resourceName:[1,"resource-name"],related:[32]}]),Aa=Kt(Ro,[0,"pulumi-root"]),La=Kt(Fo,[0,"pulumi-slot-machine",{imageClass:[1,"image-class"],leftImages:[1,"left-images"],centerImages:[1,"center-images"],rightImages:[1,"right-images"]}]),Da=Kt(Bo,[4,"pulumi-swipeable"]),Ma=Kt(Ks,[4,"pulumi-swiper",{speed:[2],loop:[4],autoplay:[4],autoplayDelay:[2,"autoplay-delay"],navControls:[4,"nav-controls"],slides:[2],centeredSlides:[4,"centered-slides"],initialSlide:[2,"initial-slide"],direction:[1],enableMouseEvents:[4,"enable-mouse-events"],spaceBetween:[2,"space-between"],swiperID:[32],containerClass:[32],nextBtnClass:[32],previousBtnClass:[32]}]),Na=Kt(Js,[1,"pulumi-tab",{label:[1],active:[4]}]),Ra=Kt(Ys,[1,"pulumi-tabs",{selectedTab:[32]}]),Fa=Kt(Xs,[0,"pulumi-tertiary-nav",{items:[1025],tabContent:[1040],selection:[1032]}]),Ba=Kt(Qs,[4,"pulumi-tooltip",{id:[32],active:[32]}]),qa=Kt(Zs,[0,"pulumi-top-button",{visible:[32]},[[9,"scroll","handleScroll"]]]),za=Kt(ea,[4,"pulumi-user-toggle",{userId:[1025,"user-id"]},[[4,"rendered","handleRendered"]]]),Ha=Kt(ta,[0,"pulumi-webinar-form-select",{sessions:[1],selectClass:[1,"select-class"],labelClass:[1,"label-class"],parsedSessions:[32],defaultFormId:[32]}]);class Ua{constructor(e){this.serviceName=e,this.state=JSON.parse(window.localStorage.getItem(e)||"{}")}getState(){return this.state}getKey(e){return this.state[e]}updateKey(e,t){this.state=Object.assign(this.state,{[e]:t}),window.localStorage.setItem(this.serviceName,JSON.stringify(this.state))}}const Va=new Ua("navigation-toggle-state");function Wa(e,t){Va.updateKey(e.id,t)}function Ga(e){$(e).each((function(e,t){!function(e){$(".toggleButton-topLevel",e).click((function(){$(this).closest(".toggle-topLevel, .toggleVisible-topLevel")[0]==e&&($(e).is(".toggle")?($(e).addClass("toggleVisible").removeClass("toggle"),Wa(e,"expanded")):($(e).addClass("toggle").removeClass("toggleVisible"),Wa(e,"collapsed")))}))}(t)}))}function Ka(e){$(e).each((function(e,t){!function(e){$(".toggleButton",e).click((function(){$(this).closest(".toggle, .toggleVisible")[0]==e&&($(e).is(".toggle")?$(e).addClass("toggleVisible").removeClass("toggle"):$(e).addClass("toggle").removeClass("toggleVisible"))}))}(t)}))}function Ja(){$(".table-of-contents").hide();var e=$(".table-of-contents .content ul.table-of-contents-list");if(e){var t=!1,n=[];if($("h2, h3").each((function(){var r=$(this),i=r.attr("id"),o=r.text(),s=r.data("link-title"),a=r.prop("tagName").toLowerCase();if(i&&o){t=!0;var l=$("
  • "+(s||o)+"
  • ");e.append(l),n.push({element:r,listItem:l})}})),t){$(".table-of-contents").show();const e=()=>{var e;for(var t of n)!e&&t.element.offset().top>=window.scrollY&&(e=t),t.listItem.toggleClass("active",t===e)};$(window).on("scroll",(function(){e()})),e()}}}!function(){const e=e=>{const t=window.location.href,n=$(e).find("a").attr("href");return t.includes(n)};$(".toggle-topLevel, .toggleVisible-topLevel").each((function(t,n){"expanded"==Va.getKey(n.id)||e(n)?$(n).addClass("toggleVisible").removeClass("toggle"):"collapsed"==Va.getKey(n.id)&&$(n).addClass("toggle").removeClass("toggleVisible"),$(n).click((function(){const e=$(n).find(".folder-open"),t=$(n).find(".folder");e.length>0?e.addClass("folder").removeClass("folder-open"):t.length>0&&t.addClass("folder-open").removeClass("folder")}))})),$(".toggleVisible, .toggleVisible-topLevel").each((function(t,n){e(n)&&$("#left-nav").animate({scrollTop:$(n).offset().top-145},0)}))}(),function(e){const t=new IntersectionObserver((([t])=>{t.target.classList.toggle("is-pinned",t.intersectionRatio<1);const n=document.querySelector(".header-pinned"),r=document.querySelector(".hide-on-pinned"),i=document.querySelector(".header-hero-title");t.isIntersecting?(e(n).addClass("hidden"),e(n).removeClass("flex"),e(r).removeClass("hidden"),e(r).addClass("flex"),e(i).removeClass("hidden"),e(i).addClass("flex")):(e(n).removeClass("hidden"),e(n).addClass("flex"),e(r).addClass("hidden"),e(r).removeClass("flex"),e(i).addClass("hidden"),e(i).removeClass("flex"))}),{threshold:[1]}),n=document.querySelector(".header-container");if(n)t.observe(n);else{const e=document.querySelector(".top-nav-bar.registry");e&&t.observe(e)}Ka(".toggle"),Ka(".toggleVisible"),Ga(".toggle-topLevel"),Ga(".toggleVisible-topLevel"),Ja(),e(".nav-header-toggle").click((function(){e(".nav-header-items").toggleClass("hidden")})),e(".blog-sidebar-toggle").click((function(){e(".blog-sidebar-content").toggleClass("hidden")})),e(".docs-sidebar-toggle").click((function(){e(".docs-sidebar-content").toggleClass("hidden")})),e("ul[data-shuffle='true']").each((function(t,n){var r=e(n).find("> li");r.each((function(t,n){e(n).css("order",Math.ceil(Math.random()*r.length))})),e(n).removeClass("invisible")})),e('#about-nav li[data-filter-name="who-we-are"]').addClass("active-about-nav-item"),e((function(){e("#about-nav li").click((function(){const t="active-about-nav-item";e(this).addClass(t);const n=e(this).data("filter-name");["who-we-are","what-we-believe","community","history","awards","newsroom","join-us"].filter((e=>e!==n)).forEach((n=>{e(`#about-nav li[data-filter-name="${n}"]`).removeClass(t)}))}))})),e("dl.resources-properties dt.property-required.property-replacement").removeAttr("title").find(".property-indicator").replaceWith('
    This property is required.
    Changes to this property will trigger replacement.
    '),e("dl.resources-properties dt.property-required:not(.property-replacement)").removeAttr("title").find(".property-indicator").replaceWith(' This property is required.'),e("dl.resources-properties dt.property-replacement:not(.property-required)").removeAttr("title").find(".property-indicator").replaceWith(' Changes to this property will trigger replacement.')}(jQuery),function(e,t){"ontouchstart"in e||(t(".nav-header-items li a").mouseenter((function(e){var n=t(e.target).data("submenu");t(".submenu-item").hide(),t(".submenu-item-"+n).show()})),t(".submenu").mouseleave((function(e){e.relatedTarget!==t("nav.nav-main").get(0)&&t(".submenu-item").hide()}))),function(){let e=!1,n=!1;t("#why-pulumi-menu-label").click((function(){t("#mobile-dropdown").scroll(),e?t("#mobile-dropdown").animate({scrollTop:top},300):t("#mobile-dropdown").animate({scrollTop:t("#why-pulumi-mobile-menu").position().top-115},300),e=!e})),t("#learn-menu-label").click((function(){t("#mobile-dropdown").scroll(),n?t("#mobile-dropdown").animate({scrollTop:top},300):t("#mobile-dropdown").animate({scrollTop:t("#learn-mobile-menu").position().top-115},300),n=!n}))}();const n=new Ua("banner-state"),r=t("#dismissable-banner");"true"!==n.getKey("dismissed")?t(r).css({display:"block"}):t(r).css({display:"none"}),t("#dismiss-banner").on("click",(function(e){e.preventDefault(),t(r).css({display:"none"}),n.updateKey("dismissed","true")}))}(document,jQuery);n(28);function Ya(e){for(var t=window.location.search.substring(1).split("&"),n=0;n0&&($("div,span").each((function(n,r){var i=Xa(r);for(n=0;n0&&t(i[0])}}$(document).on("rendered",(function(){var e;["language","os","cloud","k8s-language","input-kind"].forEach((function(e){var t=Ya(e);t&&Qa(e,t)})),rl("language",Za,"typescript"),-1!==navigator.appVersion.indexOf("Win")?e="windows":-1!==navigator.appVersion.indexOf("Mac")?e="macos":-1!==navigator.appVersion.indexOf("Linux")&&(e="linux"),rl("os",el,e),rl("cloud",tl,"aws"),rl("k8s-language",nl,"typescript")}));n(245),n(21),n(931),n(161);function il(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))}function ol(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]-1&&(r.checked=!0):r.checked=!0;var i=document.createElement("label");return i.innerText=e+"s",i.className="cursor-pointer",i.setAttribute("for",r.id),n.appendChild(r),n.appendChild(i),n}function t(){for(var e=$("input[type='checkbox']"),t=[],r=0;r-1)return!0}return!1}var r=$(".event-tags span"),i=$("#eventFilter");if(r.length&&i.length){for(var o=[],s=0;s-1?(al('UA "Edge" => assuming success'),[2,!0]):_l(document.body,e)?(al("copyUsingTempSelection worked"),[2,!0]):function(e){var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important"),t.textContent="temporary element",document.body.appendChild(t);var n=_l(t,e);return document.body.removeChild(t),n}(e)?(al("copyUsingTempElem worked"),[2,!0]):function(e){al("copyTextUsingDOM");var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important");var n=t;t.attachShadow&&(al("Using shadow DOM."),n=t.attachShadow({mode:"open"}));var r=document.createElement("span");r.innerText=e,n.appendChild(r),document.body.appendChild(t),Sl(r);var i=document.execCommand("copy");return xl(),document.body.removeChild(t),i}(e["text/plain"])?(al("copyTextUsingDOM worked"),[2,!0]):[2,!1]}))}))}!function(){function e(e,t){var n;for(var r in void 0===t&&(t={}),this.types=Object.keys(e),this._items={},e){var i=e[r];this._items[r]="string"==typeof i?$l(r,i):i}this.presentationStyle=null!==(n=null==t?void 0:t.presentationStyle)&&void 0!==n?n:"unspecified"}e.prototype.getType=function(e){return il(this,void 0,void 0,(function(){return ol(this,(function(t){return[2,this._items[e]]}))}))}}();function $l(e,t){return new Blob([t],{type:e})}function kl(e){var t="Copy";e.append('
    Copy
    ').on("click","button.copy-button",(function(){var e=$(this),n=e.parent().parent().parent().siblings("pre").children("code"),r=function(e,t){if(!t)return"";var n,r,i,o,s;switch(t=(t=t.replace("\r\n","\n")).trim(),e){case"bash":case"sh":case"shell":case"zsh":n="$ ",r="#",i=/\s+#.*$/m,o="\\",s=" && ";break;case"bat":case"batch":case"batchfile":n="> ",r="::",i=/\s+::.*$/m,o="^",s=" && ";break;case"powershell":case"posh":case"pwsh":n="> ",r="#",i=/\s+#.*$/m,o="`",s="; "}if(n){for(var a=[],l=t.split("\n"),c=!1,u=0;u0&&(t=a.join(s))}return-1!==navigator.appVersion.indexOf("Win")&&(t=t.replace("\n","\r\n")),t}(n.attr("data-lang"),n.text());r&&r.length>0&&function(e){il(this,void 0,void 0,(function(){return ol(this,(function(t){if(hl)return al("Using `navigator.clipboard.writeText()`."),[2,hl(e)];if(!Ol(function(e){var t={};return t["text/plain"]=e,t}(e)))throw new Error("writeText() failed");return[2]}))}))}(r),e.blur();var i=e.closest("pulumi-tooltip"),o=i.find("[slot='content']"),s=i.get(0);o.text("Copied!"),s.show().then((()=>{setTimeout((function(){s.hide().then((()=>o.text(t)))}),1e3)}));const a=window.analytics,l=a&&a.track&&"function"==typeof a.track;var c=n.attr("data-track");if(l&&c){const e={codeBlockName:c};a.track("copy-code-block",e)}}))}$((function(){kl($(":not(.no-copy) > div.highlight"))}));n(506),n(498),n(490),n(366),n(744),n(734),n(756),n(399),n(40),n(140);var Cl=n(290),El=n.n(Cl);function Tl(e){return Tl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tl(e)}function Pl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jl(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Hl(e){return function(e){if(Array.isArray(e))return Ul(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ul(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ul(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ul(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function vc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gc(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:20,n=[],r=0;r=3||2===n&&r>=4||1===n&&r>=10);function o(t,n,r){if(i&&void 0!==r){var o=r[0].__autocomplete_algoliaCredentials,s={"X-Algolia-Application-Id":o.appId,"X-Algolia-API-Key":o.apiKey};e.apply(void 0,[t].concat(fc(n),[{headers:s}]))}else e.apply(void 0,[t].concat(fc(n)))}return{init:function(t,n){e("init",{appId:t,apiKey:n})},setUserToken:function(t){e("setUserToken",t)},clickedObjectIDsAfterSearch:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&o("clickedObjectIDsAfterSearch",wc(t),t[0].items)},clickedObjectIDs:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&o("clickedObjectIDs",wc(t),t[0].items)},clickedFilters:function(){for(var t=arguments.length,n=new Array(t),r=0;r0&&e.apply(void 0,["clickedFilters"].concat(n))},convertedObjectIDsAfterSearch:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&o("convertedObjectIDsAfterSearch",wc(t),t[0].items)},convertedObjectIDs:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&o("convertedObjectIDs",wc(t),t[0].items)},convertedFilters:function(){for(var t=arguments.length,n=new Array(t),r=0;r0&&e.apply(void 0,["convertedFilters"].concat(n))},viewedObjectIDs:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&t.reduce((function(e,t){var n=t.items,r=mc(t,dc);return[].concat(fc(e),fc(bc(gc(gc({},r),{},{objectIDs:(null==n?void 0:n.map((function(e){return e.objectID})))||r.objectIDs})).map((function(e){return{items:n,payload:e}}))))}),[]).forEach((function(e){var t=e.items;return o("viewedObjectIDs",[e.payload],t)}))},viewedFilters:function(){for(var t=arguments.length,n=new Array(t),r=0;r0&&e.apply(void 0,["viewedFilters"].concat(n))}}}function Sc(e){var t=e.items.reduce((function(e,t){var n;return e[t.__autocomplete_indexName]=(null!==(n=e[t.__autocomplete_indexName])&&void 0!==n?n:[]).concat(t),e}),{});return Object.keys(t).map((function(e){return{index:e,items:t[e],algoliaSource:["autocomplete"]}}))}function xc(e){return e.objectID&&e.__autocomplete_indexName&&e.__autocomplete_queryID}function Oc(e){return Oc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oc(e)}function $c(e){return function(e){if(Array.isArray(e))return kc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return kc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kc(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&Ic({onItemsChange:r,items:n,insights:a,state:t}))}}),0);return{name:"aa.algoliaInsightsPlugin",subscribe:function(e){var t=e.setContext,n=e.onSelect,r=e.onActive;s("addAlgoliaAgent","insights-plugin"),t({algoliaInsightsPlugin:{__algoliaSearchParameters:{clickAnalytics:!0},insights:a}}),n((function(e){var t=e.item,n=e.state,r=e.event;xc(t)&&i({state:n,event:r,insights:a,item:t,insightsEvents:[Ec({eventName:"Item Selected"},ac({item:t,items:l.current}))]})})),r((function(e){var t=e.item,n=e.state,r=e.event;xc(t)&&o({state:n,event:r,insights:a,item:t,insightsEvents:[Ec({eventName:"Item Active"},ac({item:t,items:l.current}))]})}))},onStateChange:function(e){var t=e.state;c({state:t})},__autocomplete_pluginOptions:e}}function Lc(e){return Lc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lc(e)}function Dc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mc(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Lc(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Lc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Lc(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nc(e,t,n){var r,i=t.initialState;return{getState:function(){return i},dispatch:function(r,o){var s=function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0},reshape:function(e){return e.sources}},e),{},{id:null!==(n=e.id)&&void 0!==n?n:Vc(),plugins:i,initialState:eu({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},e.initialState),onStateChange:function(t){var n;null===(n=e.onStateChange)||void 0===n||n.call(e,t),i.forEach((function(e){var n;return null===(n=e.onStateChange)||void 0===n?void 0:n.call(e,t)}))},onSubmit:function(t){var n;null===(n=e.onSubmit)||void 0===n||n.call(e,t),i.forEach((function(e){var n;return null===(n=e.onSubmit)||void 0===n?void 0:n.call(e,t)}))},onReset:function(t){var n;null===(n=e.onReset)||void 0===n||n.call(e,t),i.forEach((function(e){var n;return null===(n=e.onReset)||void 0===n?void 0:n.call(e,t)}))},getSources:function(n){return Promise.all([].concat(Xc(i.map((function(e){return e.getSources}))),[e.getSources]).filter(Boolean).map((function(e){return function(e,t){var n=[];return Promise.resolve(e(t)).then((function(e){return Array.isArray(e),Promise.all(e.filter((function(e){return Boolean(e)})).map((function(e){if(e.sourceId,n.includes(e.sourceId))throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(e.sourceId)," is not unique."));n.push(e.sourceId);var t={getItemInputValue:function(e){return e.state.query},getItemUrl:function(){},onSelect:function(e){(0,e.setIsOpen)(!1)},onActive:sc,onResolve:sc};Object.keys(t).forEach((function(e){t[e].__default=!0}));var r=Gc(Gc({},t),e);return Promise.resolve(r)})))}))}(e,n)}))).then((function(e){return Rc(e)})).then((function(e){return e.map((function(e){return eu(eu({},e),{},{onSelect:function(n){e.onSelect(n),t.forEach((function(e){var t;return null===(t=e.onSelect)||void 0===t?void 0:t.call(e,n)}))},onActive:function(n){e.onActive(n),t.forEach((function(e){var t;return null===(t=e.onActive)||void 0===t?void 0:t.call(e,n)}))},onResolve:function(n){e.onResolve(n),t.forEach((function(e){var t;return null===(t=e.onResolve)||void 0===t?void 0:t.call(e,n)}))}})}))}))},navigator:eu({navigate:function(e){var t=e.itemUrl;r.location.assign(t)},navigateNewTab:function(e){var t=e.itemUrl,n=r.open(t,"_blank","noopener");null==n||n.focus()},navigateNewWindow:function(e){var t=e.itemUrl;r.open(t,"_blank","noopener")}},e.navigator)})}function ru(e){return ru="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ru(e)}function iu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ou(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Iu,Au,Lu,Du=null,Mu=(Iu=-1,Au=-1,Lu=void 0,function(e){var t=++Iu;return Promise.resolve(e).then((function(e){return Lu&&t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Uu=/((gt|sm)-|galaxy nexus)|samsung[- ]/i;function Vu(e){return Vu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vu(e)}var Wu=["props","refresh","store"],Gu=["inputElement","formElement","panelElement"],Ku=["inputElement"],Ju=["inputElement","maxLength"],Yu=["sourceIndex"],Xu=["sourceIndex"],Qu=["item","source","sourceIndex"];function Zu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ed(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function rd(e){var t=e.props,n=e.refresh,r=e.store,i=nd(e,Wu),o=function(e,t){return void 0!==t?"".concat(e,"-").concat(t):e};return{getEnvironmentProps:function(e){var n=e.inputElement,i=e.formElement,o=e.panelElement;function s(e){!r.getState().isOpen&&r.pendingRequests.isEmpty()||e.target===n||!1===[i,o].some((function(t){return n=t,r=e.target,n===r||n.contains(r);var n,r}))&&(r.dispatch("blur",null),t.debug||r.pendingRequests.cancelAll())}return ed({onTouchStart:s,onMouseDown:s,onTouchMove:function(e){!1!==r.getState().isOpen&&n===t.environment.document.activeElement&&e.target!==n&&n.blur()}},nd(e,Gu))},getRootProps:function(e){return ed({role:"combobox","aria-expanded":r.getState().isOpen,"aria-haspopup":"listbox","aria-owns":r.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label")},e)},getFormProps:function(e){e.inputElement;return ed({action:"",noValidate:!0,role:"search",onSubmit:function(o){var s;o.preventDefault(),t.onSubmit(ed({event:o,refresh:n,state:r.getState()},i)),r.dispatch("submit",null),null===(s=e.inputElement)||void 0===s||s.blur()},onReset:function(o){var s;o.preventDefault(),t.onReset(ed({event:o,refresh:n,state:r.getState()},i)),r.dispatch("reset",null),null===(s=e.inputElement)||void 0===s||s.focus()}},nd(e,Ku))},getLabelProps:function(e){var n=e||{},r=n.sourceIndex,i=nd(n,Yu);return ed({htmlFor:"".concat(o(t.id,r),"-input"),id:"".concat(o(t.id,r),"-label")},i)},getInputProps:function(e){var o;function s(e){(t.openOnFocus||Boolean(r.getState().query))&&Nu(ed({event:e,props:t,query:r.getState().completion||r.getState().query,refresh:n,store:r},i)),r.dispatch("focus",null)}var a=e||{},l=(a.inputElement,a.maxLength),c=void 0===l?512:l,u=nd(a,Ju),d=$u(r.getState()),p=function(e){return Boolean(e&&e.match(Uu))}((null===(o=t.environment.navigator)||void 0===o?void 0:o.userAgent)||""),f=null!=d&&d.itemUrl&&!p?"go":"search";return ed({"aria-autocomplete":"both","aria-activedescendant":r.getState().isOpen&&null!==r.getState().activeItemId?"".concat(t.id,"-item-").concat(r.getState().activeItemId):void 0,"aria-controls":r.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label"),value:r.getState().completion||r.getState().query,id:"".concat(t.id,"-input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:f,spellCheck:"false",autoFocus:t.autoFocus,placeholder:t.placeholder,maxLength:c,type:"search",onChange:function(e){Nu(ed({event:e,props:t,query:e.currentTarget.value.slice(0,c),refresh:n,store:r},i))},onKeyDown:function(e){!function(e){var t=e.event,n=e.props,r=e.refresh,i=e.store,o=Hu(e,Fu);if("ArrowUp"===t.key||"ArrowDown"===t.key){var s=function(){var e=n.environment.document.getElementById("".concat(n.id,"-item-").concat(i.getState().activeItemId));e&&(e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded(!1):e.scrollIntoView(!1))},a=function(){var e=$u(i.getState());if(null!==i.getState().activeItemId&&e){var n=e.item,s=e.itemInputValue,a=e.itemUrl,l=e.source;l.onActive(qu({event:t,item:n,itemInputValue:s,itemUrl:a,refresh:r,source:l,state:i.getState()},o))}};t.preventDefault(),!1===i.getState().isOpen&&(n.openOnFocus||Boolean(i.getState().query))?Nu(qu({event:t,props:n,query:i.getState().query,refresh:r,store:i},o)).then((function(){i.dispatch(t.key,{nextActiveItemId:n.defaultActiveItemId}),a(),setTimeout(s,0)})):(i.dispatch(t.key,{}),a(),s())}else if("Escape"===t.key)t.preventDefault(),i.dispatch(t.key,null),i.pendingRequests.cancelAll();else if("Tab"===t.key)i.dispatch("blur",null),i.pendingRequests.cancelAll();else if("Enter"===t.key){if(null===i.getState().activeItemId||i.getState().collections.every((function(e){return 0===e.items.length})))return void(n.debug||i.pendingRequests.cancelAll());t.preventDefault();var l=$u(i.getState()),c=l.item,u=l.itemInputValue,d=l.itemUrl,p=l.source;if(t.metaKey||t.ctrlKey)void 0!==d&&(p.onSelect(qu({event:t,item:c,itemInputValue:u,itemUrl:d,refresh:r,source:p,state:i.getState()},o)),n.navigator.navigateNewTab({itemUrl:d,item:c,state:i.getState()}));else if(t.shiftKey)void 0!==d&&(p.onSelect(qu({event:t,item:c,itemInputValue:u,itemUrl:d,refresh:r,source:p,state:i.getState()},o)),n.navigator.navigateNewWindow({itemUrl:d,item:c,state:i.getState()}));else if(t.altKey);else{if(void 0!==d)return p.onSelect(qu({event:t,item:c,itemInputValue:u,itemUrl:d,refresh:r,source:p,state:i.getState()},o)),void n.navigator.navigate({itemUrl:d,item:c,state:i.getState()});Nu(qu({event:t,nextState:{isOpen:!1},props:n,query:u,refresh:r,store:i},o)).then((function(){p.onSelect(qu({event:t,item:c,itemInputValue:u,itemUrl:d,refresh:r,source:p,state:i.getState()},o))}))}}}(ed({event:e,props:t,refresh:n,store:r},i))},onFocus:s,onBlur:sc,onClick:function(n){e.inputElement!==t.environment.document.activeElement||r.getState().isOpen||s(n)}},u)},getPanelProps:function(e){return ed({onMouseDown:function(e){e.preventDefault()},onMouseLeave:function(){r.dispatch("mouseleave",null)}},e)},getListProps:function(e){var n=e||{},r=n.sourceIndex,i=nd(n,Xu);return ed({role:"listbox","aria-labelledby":"".concat(o(t.id,r),"-label"),id:"".concat(o(t.id,r),"-list")},i)},getItemProps:function(e){var s=e.item,a=e.source,l=e.sourceIndex,c=nd(e,Qu);return ed({id:"".concat(o(t.id,l),"-item-").concat(s.__autocomplete_id),role:"option","aria-selected":r.getState().activeItemId===s.__autocomplete_id,onMouseMove:function(e){if(s.__autocomplete_id!==r.getState().activeItemId){r.dispatch("mousemove",s.__autocomplete_id);var t=$u(r.getState());if(null!==r.getState().activeItemId&&t){var o=t.item,a=t.itemInputValue,l=t.itemUrl,c=t.source;c.onActive(ed({event:e,item:o,itemInputValue:a,itemUrl:l,refresh:n,source:c,state:r.getState()},i))}}},onMouseDown:function(e){e.preventDefault()},onClick:function(e){var o=a.getItemInputValue({item:s,state:r.getState()}),l=a.getItemUrl({item:s,state:r.getState()});(l?Promise.resolve():Nu(ed({event:e,nextState:{isOpen:!1},props:t,query:o,refresh:n,store:r},i))).then((function(){a.onSelect(ed({event:e,item:s,itemInputValue:o,itemUrl:l,refresh:n,source:a,state:r.getState()},i))}))}},c)}}}function id(e){return id="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},id(e)}function od(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sd(e){for(var t=1;t=n?null===r?null:0:i}function dd(e){return dd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dd(e)}function pd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fd(e){for(var t=1;t=5&&((i||!e&&5===r)&&(s.push(r,0,i,n),r=6),e&&(s.push(r,e,0,n),r=6)),i=""},l=0;l"===t?(r=1,i=""):i=t+i[0]:o?t===o?o="":i+=t:'"'===t||"'"===t?o=t:">"===t?(a(),r=1):r&&("="===t?(r=5,n=i,i=""):"/"===t&&(r<5||">"===e[l][c+1])?(a(),3===r&&(s=s[0]),r=s,(s=s[0]).push(2,0,r),r=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(a(),r=2):i+=t),3===r&&"!--"===i&&(r=4,s=s[0])}return a(),s}(e)),t),arguments,[])).length>1?t:t[0]}var Od=function(e){var t=e.environment,n=t.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-SubmitIcon"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","20"),n.setAttribute("height","20"),n.setAttribute("fill","currentColor");var r=t.document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d","M16.041 15.856c-0.034 0.026-0.067 0.055-0.099 0.087s-0.060 0.064-0.087 0.099c-1.258 1.213-2.969 1.958-4.855 1.958-1.933 0-3.682-0.782-4.95-2.050s-2.050-3.017-2.050-4.95 0.782-3.682 2.050-4.95 3.017-2.050 4.95-2.050 3.682 0.782 4.95 2.050 2.050 3.017 2.050 4.95c0 1.886-0.745 3.597-1.959 4.856zM21.707 20.293l-3.675-3.675c1.231-1.54 1.968-3.493 1.968-5.618 0-2.485-1.008-4.736-2.636-6.364s-3.879-2.636-6.364-2.636-4.736 1.008-6.364 2.636-2.636 3.879-2.636 6.364 1.008 4.736 2.636 6.364 3.879 2.636 6.364 2.636c2.125 0 4.078-0.737 5.618-1.968l3.675 3.675c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414z"),n.appendChild(r),n},$d=function(e){var t=e.environment,n=t.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-ClearIcon"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","18"),n.setAttribute("height","18"),n.setAttribute("fill","currentColor");var r=t.document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d","M5.293 6.707l5.293 5.293-5.293 5.293c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0l5.293-5.293 5.293 5.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-5.293-5.293 5.293-5.293c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z"),n.appendChild(r),n},kd=function(e){var t=e.environment.document.createElementNS("http://www.w3.org/2000/svg","svg");return t.setAttribute("class","aa-LoadingIcon"),t.setAttribute("viewBox","0 0 100 100"),t.setAttribute("width","20"),t.setAttribute("height","20"),t.innerHTML='\n \n',t},Cd=["ontouchstart","ontouchend","ontouchmove","ontouchcancel"];function Ed(e,t,n){e[t]=null===n?"":"number"!=typeof n?n:n+"px"}function Td(e){this._listeners[e.type](e)}function Pd(e,t,n){var r,i,o=e[t];if("style"===t)if("string"==typeof n)e.style=n;else if(null===n)e.style="";else for(t in n)o&&n[t]===o[t]||Ed(e.style,t,n[t]);else"o"===t[0]&&"n"===t[1]?(r=t!==(t=t.replace(/Capture$/,"")),((i=t.toLowerCase())in e||Cd.includes(i))&&(t=i),t=t.slice(2),e._listeners||(e._listeners={}),e._listeners[t]=n,n?o||e.addEventListener(t,Td,r):e.removeEventListener(t,Td,r)):"list"!==t&&"tagName"!==t&&"form"!==t&&"type"!==t&&"size"!==t&&"download"!==t&&"href"!==t&&t in e?e[t]=null==n?"":n:"function"!=typeof n&&"dangerouslySetInnerHTML"!==t&&(null==n||!1===n&&!/^ar/.test(t)?e.removeAttribute(t):e.setAttribute(t,n))}function jd(e){return"onChange"===e?"onInput":e}function Id(e,t){for(var n in t)Pd(e,jd(n),t[n])}function Ad(e,t){for(var n in t)"o"===n[0]&&"n"===n[1]||Pd(e,jd(n),t[n])}var Ld=["children"];function Dd(e){return function(e){if(Array.isArray(e))return Md(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Md(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Md(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Md(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Rd(e){return function(t,n){var r=n.children,i=void 0===r?[]:r,o=Nd(n,Ld),s=e.document.createElement(t);return Id(s,o),s.append.apply(s,Dd(i)),s}}function Fd(e){return Fd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fd(e)}var Bd=["autocompleteScopeApi","environment","classNames","getInputProps","getInputPropsCore","isDetached","state"];function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zd(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Vd(e){return Vd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vd(e)}function Wd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gd(e){for(var t=1;t2&&(s.children=arguments.length>3?Yd.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return cp(e,s,r,i,null)}function cp(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++Qd:i};return null==i&&null!=Xd.vnode&&Xd.vnode(o),o}function up(e){return e.children}function dp(e,t){this.props=e,this.context=t}function pp(e,t){if(null==t)return e.__?pp(e.__,e.__.__k.indexOf(e)+1):null;for(var n;tt&&Zd.sort(np));mp.__r=0}function vp(e,t,n,r,i,o,s,a,l,c){var u,d,p,f,h,m,v,g=r&&r.__k||ip,y=g.length;for(n.__k=[],u=0;u0?cp(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)){if(f.__=n,f.__b=n.__b+1,null===(p=g[u])||p&&f.key==p.key&&f.type===p.type)g[u]=void 0;else for(d=0;d=0;t--)if((n=e.__k[t])&&(r=bp(n)))return r;return null}function wp(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||op.test(t)?n:n+"px"}function _p(e,t,n,r,i){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||wp(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||wp(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r||e.addEventListener(t,o?xp:Sp,o):e.removeEventListener(t,o?xp:Sp,o);else if("dangerouslySetInnerHTML"!==t){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function Sp(e){return this.l[e.type+!1](Xd.event?Xd.event(e):e)}function xp(e){return this.l[e.type+!0](Xd.event?Xd.event(e):e)}function Op(e,t,n,r,i,o,s,a,l){var c,u,d,p,f,h,m,v,g,y,b,w,_,S,x,O=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,o=[a]),(c=Xd.__b)&&c(t);try{e:if("function"==typeof O){if(v=t.props,g=(c=O.contextType)&&r[c.__c],y=c?g?g.props.value:c.__:r,n.__c?m=(u=t.__c=n.__c).__=u.__E:("prototype"in O&&O.prototype.render?t.__c=u=new O(v,y):(t.__c=u=new dp(v,y),u.constructor=O,u.render=Ep),g&&g.sub(u),u.props=v,u.state||(u.state={}),u.context=y,u.__n=r,d=u.__d=!0,u.__h=[],u._sb=[]),null==u.__s&&(u.__s=u.state),null!=O.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=sp({},u.__s)),sp(u.__s,O.getDerivedStateFromProps(v,u.__s))),p=u.props,f=u.state,u.__v=t,d)null==O.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==O.getDerivedStateFromProps&&v!==p&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(v,y),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(v,u.__s,y)||t.__v===n.__v){for(t.__v!==n.__v&&(u.props=v,u.state=u.__s,u.__d=!1),u.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),b=0;b0&&void 0!==arguments[0]?arguments[0]:[],t=e;return{get:function(){return t},add:function(e){var n=t[t.length-1];(null==n?void 0:n.isHighlighted)===e.isHighlighted?t[t.length-1]={value:n.value+e.value,isHighlighted:n.isHighlighted}:t.push(e)}}}(n?[{value:n,isHighlighted:!1}]:[]);return t.forEach((function(e){var t=e.split(Ml);r.add({value:t[0],isHighlighted:!0}),""!==t[1]&&r.add({value:t[1],isHighlighted:!1})})),r.get()}function Ip(e){return function(e){if(Array.isArray(e))return Ap(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ap(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ap(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ap(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n",""":'"',"'":"'"},Np=new RegExp(/\w/i),Rp=/&(amp|quot|lt|gt|#39);/g,Fp=RegExp(Rp.source);function Bp(e,t){var n,r,i,o=e[t],s=(null===(n=e[t+1])||void 0===n?void 0:n.isHighlighted)||!0,a=(null===(r=e[t-1])||void 0===r?void 0:r.isHighlighted)||!0;return Np.test((i=o.value)&&Fp.test(i)?i.replace(Rp,(function(e){return Mp[e]})):i)||a!==s?o.isHighlighted:a}function qp(e){return qp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qp(e)}function zp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hp(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var af={clearButton:"aa-ClearButton",detachedCancelButton:"aa-DetachedCancelButton",detachedContainer:"aa-DetachedContainer",detachedFormContainer:"aa-DetachedFormContainer",detachedOverlay:"aa-DetachedOverlay",detachedSearchButton:"aa-DetachedSearchButton",detachedSearchButtonIcon:"aa-DetachedSearchButtonIcon",detachedSearchButtonPlaceholder:"aa-DetachedSearchButtonPlaceholder",detachedSearchButtonQuery:"aa-DetachedSearchButtonQuery",form:"aa-Form",input:"aa-Input",inputWrapper:"aa-InputWrapper",inputWrapperPrefix:"aa-InputWrapperPrefix",inputWrapperSuffix:"aa-InputWrapperSuffix",item:"aa-Item",label:"aa-Label",list:"aa-List",loadingIndicator:"aa-LoadingIndicator",panel:"aa-Panel",panelLayout:"aa-PanelLayout aa-Panel--scrollable",root:"aa-Autocomplete",source:"aa-Source",sourceFooter:"aa-SourceFooter",sourceHeader:"aa-SourceHeader",sourceNoResults:"aa-SourceNoResults",submitButton:"aa-SubmitButton"},lf=function(e,t){var n=e.children;(0,e.render)(n,t)},cf={createElement:lp,Fragment:up,render:Tp};function uf(e){var t=e.panelPlacement,n=e.container,r=e.form,i=e.environment,o=n.getBoundingClientRect(),s=(i.pageYOffset||i.document.documentElement.scrollTop||i.document.body.scrollTop||0)+o.top+o.height;switch(t){case"start":return{top:s,left:o.left};case"end":return{top:s,right:i.document.documentElement.clientWidth-(o.left+o.width)};case"full-width":return{top:s,left:0,right:0,width:"unset",maxWidth:"unset"};case"input-wrapper-width":var a=r.getBoundingClientRect();return{top:s,left:a.left,right:i.document.documentElement.clientWidth-(a.left+a.width),width:"unset",maxWidth:"unset"};default:throw new Error("[Autocomplete] The `panelPlacement` value ".concat(JSON.stringify(t)," is not valid."))}}function df(e){return df="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},df(e)}function pf(){return pf=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function jf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function If(e){for(var t=1;t0;if(!p.value.core.openOnFocus&&!t.query)return n;var r=Boolean(c.current||p.value.renderer.renderNoResults);return!n&&r||n},__autocomplete_metadata:{userAgents:Vl,options:e}}))})),m=rc(If({collections:[],completion:null,context:{},isOpen:!1,query:"",activeItemId:null,status:"idle"},p.value.core.initialState)),v={getEnvironmentProps:p.value.renderer.getEnvironmentProps,getFormProps:p.value.renderer.getFormProps,getInputProps:p.value.renderer.getInputProps,getItemProps:p.value.renderer.getItemProps,getLabelProps:p.value.renderer.getLabelProps,getListProps:p.value.renderer.getListProps,getPanelProps:p.value.renderer.getPanelProps,getRootProps:p.value.renderer.getRootProps},g={setActiveItemId:h.value.setActiveItemId,setQuery:h.value.setQuery,setCollections:h.value.setCollections,setIsOpen:h.value.setIsOpen,setStatus:h.value.setStatus,setContext:h.value.setContext,refresh:h.value.refresh,navigator:h.value.navigator},y=a((function(){return xd.bind(p.value.renderer.renderer.createElement)})),b=a((function(){return Jd({autocomplete:h.value,autocompleteScopeApi:g,classNames:p.value.renderer.classNames,environment:p.value.core.environment,isDetached:f.value,placeholder:p.value.core.placeholder,propGetters:v,setIsModalOpen:x,state:m.current,translations:p.value.renderer.translations})}));function w(){Id(b.value.panel,{style:f.value?{}:uf({panelPlacement:p.value.renderer.panelPlacement,container:b.value.root,form:b.value.form,environment:p.value.core.environment})})}function _(e){m.current=e;var t={autocomplete:h.value,autocompleteScopeApi:g,classNames:p.value.renderer.classNames,components:p.value.renderer.components,container:p.value.renderer.container,html:y.value,dom:b.value,panelContainer:f.value?b.value.detachedContainer:p.value.renderer.panelContainer,propGetters:v,state:m.current,renderer:p.value.renderer.renderer},n=!Hc(e)&&!c.current&&p.value.renderer.renderNoResults||p.value.renderer.render;!function(e){var t=e.autocomplete,n=e.autocompleteScopeApi,r=e.dom,i=e.propGetters,o=e.state;Ad(r.root,i.getRootProps(hf({state:o,props:t.getRootProps({})},n))),Ad(r.input,i.getInputProps(hf({state:o,props:t.getInputProps({inputElement:r.input}),inputElement:r.input},n))),Id(r.label,{hidden:"stalled"===o.status}),Id(r.loadingIndicator,{hidden:"stalled"!==o.status}),Id(r.clearButton,{hidden:!o.query}),Id(r.detachedSearchButtonQuery,{textContent:o.query}),Id(r.detachedSearchButtonPlaceholder,{hidden:Boolean(o.query)})}(t),function(e,t){var n=t.autocomplete,r=t.autocompleteScopeApi,i=t.classNames,o=t.html,s=t.dom,a=t.panelContainer,l=t.propGetters,c=t.state,u=t.components,d=t.renderer;if(c.isOpen){a.contains(s.panel)||"loading"===c.status||a.appendChild(s.panel),s.panel.classList.toggle("aa-Panel--stalled","stalled"===c.status);var p=c.collections.filter((function(e){var t=e.source,n=e.items;return t.templates.noResults||n.length>0})).map((function(e,t){var s=e.source,a=e.items;return d.createElement("section",{key:t,className:i.source,"data-autocomplete-source-id":s.sourceId},s.templates.header&&d.createElement("div",{className:i.sourceHeader},s.templates.header({components:u,createElement:d.createElement,Fragment:d.Fragment,items:a,source:s,state:c,html:o})),s.templates.noResults&&0===a.length?d.createElement("div",{className:i.sourceNoResults},s.templates.noResults({components:u,createElement:d.createElement,Fragment:d.Fragment,source:s,state:c,html:o})):d.createElement("ul",pf({className:i.list},l.getListProps(hf({state:c,props:n.getListProps({sourceIndex:t})},r))),a.map((function(e){var a=n.getItemProps({item:e,source:s,sourceIndex:t});return d.createElement("li",pf({key:a.id,className:i.item},l.getItemProps(hf({state:c,props:a},r))),s.templates.item({components:u,createElement:d.createElement,Fragment:d.Fragment,item:e,state:c,html:o}))}))),s.templates.footer&&d.createElement("div",{className:i.sourceFooter},s.templates.footer({components:u,createElement:d.createElement,Fragment:d.Fragment,items:a,source:s,state:c,html:o})))})),f=d.createElement(d.Fragment,null,d.createElement("div",{className:i.panelLayout},p),d.createElement("div",{className:"aa-GradientBottom"})),h=p.reduce((function(e,t){return e[t.props["data-autocomplete-source-id"]]=t,e}),{});e(hf(hf({children:f,state:c,sections:p,elements:h},d),{},{components:u,html:o},r),s.panel)}else a.contains(s.panel)&&a.removeChild(s.panel)}(n,t)}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i();var t=p.value.renderer,n=t.components,r=Pf(t,Ef);u.current=wf(r,p.value.core,{components:Cf(n,(function(e){return!e.value.hasOwnProperty("__autocomplete_componentName")})),initialState:m.current},e),l(),o(),h.value.refresh().then((function(){_(m.current)}))}function x(e){requestAnimationFrame((function(){var t=p.value.core.environment.document.body.contains(b.value.detachedOverlay);e!==t&&(e?(p.value.core.environment.document.body.appendChild(b.value.detachedOverlay),p.value.core.environment.document.body.classList.add("aa-Detached"),b.value.input.focus()):(p.value.core.environment.document.body.removeChild(b.value.detachedOverlay),p.value.core.environment.document.body.classList.remove("aa-Detached")))}))}return r((function(){var e=h.value.getEnvironmentProps({formElement:b.value.form,panelElement:b.value.panel,inputElement:b.value.input});return Id(p.value.core.environment,e),function(){Id(p.value.core.environment,Object.keys(e).reduce((function(e,t){return If(If({},e),{},Af({},t,void 0))}),{}))}})),r((function(){var e=f.value?p.value.core.environment.document.body:p.value.renderer.panelContainer,t=f.value?b.value.detachedOverlay:b.value.panel;return f.value&&m.current.isOpen&&x(!0),_(m.current),function(){e.contains(t)&&e.removeChild(t)}})),r((function(){var e=p.value.renderer.container;return e.appendChild(b.value.root),function(){e.removeChild(b.value.root)}})),r((function(){var e=nc((function(e){_(e.state)}),0);return d.current=function(t){var n=t.state,r=t.prevState;(f.value&&r.isOpen!==n.isOpen&&x(n.isOpen),f.value||!n.isOpen||r.isOpen||w(),n.query!==r.query)&&p.value.core.environment.document.querySelectorAll(".aa-Panel--scrollable").forEach((function(e){0!==e.scrollTop&&(e.scrollTop=0)}));e({state:n})},function(){d.current=void 0}})),r((function(){var e=nc((function(){var e=f.value;f.value=p.value.core.environment.matchMedia(p.value.renderer.detachedMediaQuery).matches,e!==f.value?S({}):requestAnimationFrame(w)}),20);return p.value.core.environment.addEventListener("resize",e),function(){p.value.core.environment.removeEventListener("resize",e)}})),r((function(){if(!f.value)return function(){};function e(e){b.value.detachedContainer.classList.toggle("aa-DetachedContainer--modal",e)}function t(t){e(t.matches)}var n=p.value.core.environment.matchMedia(getComputedStyle(p.value.core.environment.document.documentElement).getPropertyValue("--aa-detached-modal-media-query"));e(n.matches);var r=Boolean(n.addEventListener);return r?n.addEventListener("change",t):n.addListener(t),function(){r?n.removeEventListener("change",t):n.removeListener(t)}})),r((function(){return requestAnimationFrame(w),function(){}})),If(If({},g),{},{update:S,destroy:function(){i()}})}function Df(e){return Df="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Df(e)}function Mf(e){return function(e){if(Array.isArray(e))return Nf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Nf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nf(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n`(${e[t].map((({label:e})=>`${t}:"${e}"`)).join(" OR ")})`)).join(` ${t} `)}function Kf(e,t){return e.reduce(((e,n)=>{const r=t(n);return e.hasOwnProperty(r)||(e[r]=[]),e[r].push(n),e}),{})}function Jf(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Wf(e),n=t.initialTags,r=t.getTagsSubscribers,i=t.transformSource,o=t.onChange,s=qf({initialTags:n}),a={setTags:s.set,addTags:s.add};return{name:"aa.tagsPlugin",subscribe:function(e){var t=e.setContext,n=e.onSelect,i=e.setIsOpen,l=e.refresh,c=r();t({tagsPlugin:Uf(Uf({},a),{},{tags:s.get()})}),n((function(e){var t=e.source,n=e.item,r=c.find((function(e){return e.sourceId===t.sourceId}));r&&s.add([r.getTag({item:n})])})),s.onChange((function(n){var r=n.prevTags;t({tagsPlugin:Uf(Uf({},a),{},{tags:s.get()})}),i(!0),o(Uf(Uf({},e),{},{prevTags:r,tags:s.get()})),l()}))},getSources:function(e){var t=e.state;return[i({source:{sourceId:"tagsPlugin",getItems:function(){return s.get()},onSelect:function(e){e.item.remove()},templates:{item:function(e){var t=e.item,n=e.createElement;return n("div",{className:"aa-TagsPlugin-Tag"},n("span",{className:"aa-TagsPlugin-TagLabel"},t.label),n("button",{className:"aa-TagsPlugin-RemoveButton",title:"Remove this tag"},n("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24"},n("path",{d:"M18 6L6 18"}),n("path",{d:"M6 6L18 18"}))))}}},state:t})]},data:Uf(Uf({},a),{},{get tags(){return s.get()}}),__autocomplete_pluginOptions:e}}({initialTags:e,transformSource:({source:e})=>{},getTagsSubscribers:()=>[{sourceId:"section",getTag:({item:e})=>e}]})}function Yf(e,t){var n,r;null===(r=null===(n=e.context)||void 0===n?void 0:n.tagsPlugin)||void 0===r||r.setTags(t)}function Xf(e){var t,n;return(null===(n=null===(t=e.context)||void 0===t?void 0:t.tagsPlugin)||void 0===n?void 0:n.tags)||[]}const Qf=function(e,t){let n;return(...r)=>(n&&clearTimeout(n),new Promise((i=>{n=setTimeout((()=>i(e(...r))),t)})))}((e=>Promise.resolve(e)),220);function Zf(e){return e>1e3?`${Math.ceil(e/1e3)}K`:e.toString()}function eh(e){return"Registry"===e?"Packages":e}function th(e){switch(e){case"Docs":return"/icons/docs.svg";case"Registry":return"/icons/registry.svg";case"Tutorials":return"/icons/graduation-cap.svg"}return"/icons/list.svg"}let nh,rh,ih,oh,sh;function ah(e){if(nh=e.getAttribute("data-app-id"),rh=e.getAttribute("data-search-key"),ih=e.getAttribute("data-index"),sh=e.getAttribute("data-facets").split(",").map((e=>({label:e,facet:"section"}))),!(nh&&rh&&ih&&sh))return void console.error("Autocomplete element found, but one or more require attributes were missing.");function t(e,t,n){return{sourceId:"sections",getItems:()=>{return t={searchClient:oh,queries:[{indexName:ih,facet:"section",params:{query:e,filters:Gf(Kf(sh,(e=>e.facet)))}}],transformResponse:({facetHits:e})=>(n({facetHits:e}),[])},r=Yl({transformResponse:function(e){return e.facetHits}}),i=t.queries.map((function(e){return Zl(Zl({},e),{},{type:"facet"})})),r(Zl(Zl({},t),{},{queries:i}));var t,r,i},templates:{item:()=>null}}}oh=El()(nh,rh);const n=function(){const e={upDownPressed:!1};return window.addEventListener("keydown",(e=>{"k"===e.key.toLowerCase()&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),document.querySelector(".aa-DetachedSearchButton").click())})),window.addEventListener("keydown",(t=>{"ArrowUp"!==t.key&&"ArrowDown"!==t.key||t.target!==document.querySelector(".aa-DetachedFormContainer .aa-Input")||(e.upDownPressed=!0)}),{capture:!0}),document.body.addEventListener("click",(e=>{var t;const n=e.target;if(null==n?void 0:n.closest(".aa-ClearButton")){e.stopPropagation(),e.preventDefault();const r=null===(t=n.closest(".aa-Form"))||void 0===t?void 0:t.querySelector(".aa-Input");r&&(r.value="",r.focus(),r.dispatchEvent(new Event("input")))}})),e}();Lf({container:e,placeholder:"Search (⌘/ctrl-k)",openOnFocus:!1,detachedMediaQuery:"",defaultActiveItemId:0,onStateChange:({state:e,prevState:t,setCollections:r})=>{if(""!==t.query&&""===e.query&&(r([]),Yf(e,sh)),e.activeItemId>=0){const t=document.querySelectorAll(".aa-Item");if(t){const r=t.item(e.activeItemId);r&&n.upDownPressed&&r.scrollIntoView({behavior:"smooth",block:"nearest"})}n.upDownPressed=!1}},getSources:({query:e,state:n,refresh:r,setContext:i})=>{const o=[];return o.push(t(e,0,i)),o.push(function(e,t,n){return{sourceId:"results",getItems:({state:t})=>tc({searchClient:oh,queries:[{indexName:ih,query:e,params:{filters:Gf(Kf(Xf(t),(e=>e.facet))),hitsPerPage:50,page:0}}]}),getItemUrl:({item:e})=>new URL([document.location.origin,e.href].join("")).toString(),templates:{header:({html:e,state:t})=>{const r=t.context.facetHits[0],i=r.reduce(((e,t)=>e+t.count),0);return 1===sh.length?e` +(()=>{var e={290:function(e){e.exports=function(){"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(n){for(var r=1;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){var n=JSON.stringify(e),r=o()[n];return Promise.all([r||t(),void 0!==r])})).then((function(e){var t=i(e,2),r=t[0],o=t[1];return Promise.all([r,o||n.miss(r)])})).then((function(e){return i(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var i=o();return i[JSON.stringify(e)]=t,r().setItem(n,JSON.stringify(i)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=o();delete t[JSON.stringify(e)],r().setItem(n,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){r().removeItem(n)}))}}}function a(e){var t=o(e.caches),n=t.shift();return void 0===n?{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then((function(e){return Promise.all([e,n.miss(e)])})).then((function(e){return i(e,1)[0]}))},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(e,r,i).catch((function(){return a({caches:t}).get(e,r,i)}))},set:function(e,r){return n.set(e,r).catch((function(){return a({caches:t}).set(e,r)}))},delete:function(e){return n.delete(e).catch((function(){return a({caches:t}).delete(e)}))},clear:function(){return n.clear().catch((function(){return a({caches:t}).clear()}))}}}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},o=JSON.stringify(n);if(o in t)return Promise.resolve(e.serializable?JSON.parse(t[o]):t[o]);var s=r(),a=i&&i.miss||function(){return Promise.resolve()};return s.then((function(e){return a(e)})).then((function(){return s}))},set:function(n,r){return t[JSON.stringify(n)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function c(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}function u(e,t){return t?(Object.keys(t).forEach((function(n){e[n]=t[n](e)})),e):e}function d(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0?r:void 0,timeout:n.timeout||t,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var h={Read:1,Write:2,Any:3},m=1,v=2,g=3;function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;return n(n({},e),{},{status:t,lastUpdate:Date.now()})}function b(e){return"string"==typeof e?{protocol:"https",url:e,accept:h.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||h.Any}}var w="GET",_="POST";function S(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(y(t))}))}))).then((function(e){var n=e.filter((function(e){return function(e){return e.status===m||Date.now()-e.lastUpdate>12e4}(e)})),r=e.filter((function(e){return function(e){return e.status===g&&Date.now()-e.lastUpdate<=12e4}(e)})),i=[].concat(o(n),o(r));return{getTimeout:function(e,t){return(0===r.length&&0===e?1:r.length+3+e)*t},statelessHosts:i.length>0?i.map((function(e){return b(e)})):t}}))}function x(e,t,r,i){var s=[],a=function(e,t){if(e.method!==w&&(void 0!==e.data||void 0!==t.data)){var r=Array.isArray(e.data)?e.data:n(n({},e.data),t.data);return JSON.stringify(r)}}(r,i),l=function(e,t){var r=n(n({},e.headers),t.headers),i={};return Object.keys(r).forEach((function(e){var t=r[e];i[e.toLowerCase()]=t})),i}(e,i),c=r.method,u=r.method!==w?{}:n(n({},r.data),i.data),d=n(n(n({"x-algolia-agent":e.userAgent.value},e.queryParameters),u),i.queryParameters),p=0,f=function t(n,o){var u=n.pop();if(void 0===u)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:C(s)};var f={data:a,headers:l,method:c,url:$(u,r.path,d),connectTimeout:o(p,e.timeouts.connect),responseTimeout:o(p,i.timeout)},h=function(e){var t={request:f,response:e,host:u,triesLeft:n.length};return s.push(t),t},m={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e)},onRetry:function(r){var i=h(r);return r.isTimedOut&&p++,Promise.all([e.logger.info("Retryable failure",E(i)),e.hostsCache.set(u,y(u,r.isTimedOut?g:v))]).then((function(){return t(n,o)}))},onFail:function(e){throw h(e),function(e,t){var n=e.content,r=e.status,i=n;try{i=JSON.parse(n).message}catch(e){}return function(e,t,n){return{name:"ApiError",message:e,status:t,transporterStackTrace:n}}(i,r,t)}(e,C(s))}};return e.requester.send(f).then((function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,n=e.status;return!t&&0==~~n}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSuccess(e):t.onFail(e)}(e,m)}))};return S(e.hostsCache,t).then((function(e){return f(o(e.statelessHosts).reverse(),e.getTimeout)}))}function O(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var n="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(n)&&(t.value="".concat(t.value).concat(n)),t}};return t}function $(e,t,n){var r=k(n),i="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return r.length&&(i+="?".concat(r)),i}function k(e){return Object.keys(e).map((function(t){return d("%s=%s",t,(n=e[t],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n)?JSON.stringify(e[t]):e[t]));var n})).join("&")}function C(e){return e.map((function(e){return E(e)}))}function E(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return n(n({},e),{},{request:n(n({},e.request),{},{headers:n(n({},e.request.headers),t)})})}var T=function(e){var t=e.appId,r=function(e,t,n){var r={"x-algolia-api-key":n,"x-algolia-application-id":t};return{headers:function(){return e===p.WithinHeaders?r:{}},queryParameters:function(){return e===p.WithinQueryParameters?r:{}}}}(void 0!==e.authMode?e.authMode:p.WithinHeaders,t,e.apiKey),o=function(e){var t=e.hostsCache,n=e.logger,r=e.requester,o=e.requestsCache,s=e.responsesCache,a=e.timeouts,l=e.userAgent,c=e.hosts,u=e.queryParameters,d={hostsCache:t,logger:n,requester:r,requestsCache:o,responsesCache:s,timeouts:a,userAgent:l,headers:e.headers,queryParameters:u,hosts:c.map((function(e){return b(e)})),read:function(e,t){var n=f(t,d.timeouts.read),r=function(){return x(d,d.hosts.filter((function(e){return 0!=(e.accept&h.Read)})),e,n)};if(!0!==(void 0!==n.cacheable?n.cacheable:e.cacheable))return r();var o={request:e,mappedRequestOptions:n,transporter:{queryParameters:d.queryParameters,headers:d.headers}};return d.responsesCache.get(o,(function(){return d.requestsCache.get(o,(function(){return d.requestsCache.set(o,r()).then((function(e){return Promise.all([d.requestsCache.delete(o),e])}),(function(e){return Promise.all([d.requestsCache.delete(o),Promise.reject(e)])})).then((function(e){var t=i(e,2);return t[0],t[1]}))}))}),{miss:function(e){return d.responsesCache.set(o,e)}})},write:function(e,t){return x(d,d.hosts.filter((function(e){return 0!=(e.accept&h.Write)})),e,f(t,d.timeouts.write))}};return d}(n(n({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:h.Read},{url:"".concat(t,".algolia.net"),accept:h.Write}].concat(c([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:n(n(n({},r.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:n(n({},r.queryParameters()),e.queryParameters)}));return u({transporter:o,appId:t,addAlgoliaAgent:function(e,t){o.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([o.requestsCache.clear(),o.responsesCache.clear()]).then((function(){}))}},e.methods)},P=function(e){return function(t,n){return t.method===w?e.transporter.read(t,n):e.transporter.write(t,n)}},j=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u({transporter:e.transporter,appId:e.appId,indexName:t},n.methods)}},I=function(e){return function(t,r){var i=t.map((function(e){return n(n({},e),{},{params:k(e.params||{})})}));return e.transporter.read({method:_,path:"1/indexes/*/queries",data:{requests:i},cacheable:!0},r)}},A=function(e){return function(t,i){return Promise.all(t.map((function(t){var o=t.params,s=o.facetName,a=o.facetQuery,l=r(o,["facetName","facetQuery"]);return j(e)(t.indexName,{methods:{searchForFacetValues:M}}).searchForFacetValues(s,a,n(n({},i),l))})))}},L=function(e){return function(t,n,r){return e.transporter.read({method:_,path:d("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:n},cacheable:!0},r)}},D=function(e){return function(t,n){return e.transporter.read({method:_,path:d("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},n)}},M=function(e){return function(t,n,r){return e.transporter.read({method:_,path:d("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:n},cacheable:!0},r)}},N=1,R=2,F=3;function B(e,t,r){var i,o={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise((function(t){var n=new XMLHttpRequest;n.open(e.method,e.url,!0),Object.keys(e.headers).forEach((function(t){return n.setRequestHeader(t,e.headers[t])}));var r,i=function(e,r){return setTimeout((function(){n.abort(),t({status:0,content:r,isTimedOut:!0})}),1e3*e)},o=i(e.connectTimeout,"Connection timeout");n.onreadystatechange=function(){n.readyState>n.OPENED&&void 0===r&&(clearTimeout(o),r=i(e.responseTimeout,"Socket timeout"))},n.onerror=function(){0===n.status&&(clearTimeout(o),clearTimeout(r),t({content:n.responseText||"Network request failed",status:n.status,isTimedOut:!1}))},n.onload=function(){clearTimeout(o),clearTimeout(r),t({content:n.responseText,status:n.status,isTimedOut:!1})},n.send(e.data)}))}},logger:(i=F,{debug:function(e,t){return N>=i&&console.debug(e,t),Promise.resolve()},info:function(e,t){return R>=i&&console.info(e,t),Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}}),responsesCache:l(),requestsCache:l({serializable:!1}),hostsCache:a({caches:[s({key:"".concat("4.17.0","-").concat(e)}),l()]}),userAgent:O("4.17.0").add({segment:"Browser",version:"lite"}),authMode:p.WithinQueryParameters};return T(n(n(n({},o),r),{},{methods:{search:I,searchForFacetValues:A,multipleQueries:I,multipleSearchForFacetValues:A,customRequest:P,initIndex:function(e){return function(t){return j(e)(t,{methods:{search:D,searchForFacetValues:M,findAnswers:L}})}}}}))}return B.version="4.17.0",B}()},28:()=>{!function(e){var t=1,n=window.setInterval((function(){r(t),++t>2&&(t=0)}),11e3);function r(t){return e(".carousel-always-visible").length?(i(),o(),void s()):e(".carousel-always-visible-cli-only").length?(a(0),void l(0)):(e(".carousel-item").css("opacity",0).css("pointer-events","none").eq(t).css("opacity",1).css("pointer-events","auto"),e(".carousel-item-description").css("opacity",0).css("pointer-events","none").eq(t).css("opacity",1).css("pointer-events","auto"),e(".carousel-item-label").removeClass("border-purple-700").removeClass("text-purple-700").removeClass("hover:text-purple-700").addClass("text-purple-200").addClass("hover:text-purple-300").eq(t).addClass("border-purple-700").addClass("text-purple-700").addClass("hover:text-purple-700"),void(0===t?i():1===t?o():2===t&&s()))}function i(){e(".menu").css("opacity",0),e(".menu").find(".row").removeClass("bg-gray-600").eq(0).addClass("bg-gray-600"),a(0,(function(){e(".menu").each((function(t,n){var r=parseInt(e(n).attr("data-delay"))||0;0===t&&setTimeout((function(){e(n).find(".row").removeClass("bg-gray-600").eq(1).addClass("bg-gray-600")}),600),setTimeout((function(){e(n).css("opacity",1)}),r)}))}))}function o(){a(1),l(1)}function s(){var t=e("#carousel-console .tab");t.css("opacity",0).eq(0).css("opacity",1),setTimeout((function(){t.eq(0).css("opacity",0),t.eq(1).css("opacity",1)}),5e3)}function a(t,n){var r=e(".carousel-item").eq(t).find(".line.typed span"),i=500;r.each((function(t,n){var r=n.textContent.split("");e(n).addClass("typing").html(r.map((e=>""+e+"")).join("").toString())}));var o=e(""),s=e(".carousel-item").eq(t).find(".char");s.map((function(t,r){i+=Math.ceil(75*Math.random()),setTimeout((function(){"\n"===r.textContent?e(r).css("opacity",1).prepend(o):e(r).css("opacity",1).append(o),t===s.length-1&&setTimeout((function(){o.remove(),"function"==typeof n&&n()}),600)}),i),"\n"!==r.textContent&&";"!==r.textContent||(i+=1e3)}))}function l(t){var n=e(".carousel-item").eq(t).find(".line.full");n.css("opacity",0);var r=2e3;n.each((function(t,n){var i=parseInt(e(n).attr("data-delay"))||75;r+=Math.ceil(Math.random()*i),setTimeout((function(){e(n).css("opacity",1)}),r)}))}r(0),e(".carousel-item-label").click((function(){clearInterval(n),r(e(".carousel-item-label").index(this))}))}(jQuery)},506:()=>{!function(e){var t=1,n=window.setInterval((function(){r(t),++t>3&&(t=0)}),5e3);function r(t){e(".code-tabbed-content").scrollTop(0).scrollLeft(0),e(".code-tabbed-tab").removeClass("active").eq(t).addClass("active"),e(".code-tabbed-content-item").removeClass("active").eq(t).addClass("active")}r(0),e(".code-tabbed-tab").click((function(){clearInterval(n),r(e(".code-tabbed-tab").index(this))}))}(jQuery)},756:()=>{$((function(){$("#upcoming-talks-select").on("click",(function(){$("#upcoming-talks").removeClass("hidden"),$("#past-talks").addClass("hidden"),$("#upcoming-talks-select").addClass("is-selected"),$("#past-talks-select").removeClass("is-selected")})),$("#past-talks-select").on("click",(function(){$("#upcoming-talks").addClass("hidden"),$("#past-talks").removeClass("hidden"),$("#upcoming-talks-select").removeClass("is-selected"),$("#past-talks-select").addClass("is-selected")}))}))},161:()=>{$((function(){var e=window.analytics&&window.analytics.track&&"function"==typeof window.analytics.track;function t(t,n,r){var i={answer:t,comments:n||"",email:r||"",url:window.location.pathname,category:"Documentation Feedback",label:t};e?window.analytics.track("docs-feedback",i):console.log("Skipped call to analytics.track:","docs-feedback",i)}$("#docsFeedbackContainer").removeClass("hidden"),["#docsFeedbackYes","#docsFeedbackNo"].forEach((function(e){var n="#docsFeedbackYes"===e?"Yes":"No";$(e).on("click",(function(){$("#feedbackLongForm").removeClass("hidden"),function(e){var n=$("#feedbackLongForm"),r=n.parent();$("body").append(n),$("#docsSubmitFeedback").on("click",(function(){var n=$("#feedbackAdditionalComments").val().toString().trim(),r=$("#feedbackEmail").val().toString().trim();t(e,n,r),$("#feedbackAdditionalComments").val(""),$("#feedbackEmail").val(""),$("#feedbackButtons").addClass("hidden"),$("#feedbackLongForm").addClass("hidden"),$("#feedbackThankYou").removeClass("hidden")})),$("#docsCloseFeedbackLongForm").on("click",(function(){t(e,"",""),$("#feedbackAdditionalComments").val(""),$("#feedbackEmail").val(""),$("#feedbackButtons").addClass("hidden"),$("#feedbackLongForm").addClass("hidden"),$("#feedbackThankYou").removeClass("hidden"),r.append(n)})),$(window).on("beforeunload",(function(){$("#feedbackLongForm").hasClass("hidden")||t(e,"","")}))}(n)}))}))}))},40:()=>{let e=$(".docs-main-nav-toggle-wrapper"),t=$(".docs-nav-toggle-icon");function n(){$(this).width()<=1280&&(e.hasClass("docs-nav-show")?(t.removeClass("open-docs-main-nav"),t.addClass("close-docs-main-nav")):e.hasClass("docs-nav-hide")&&(t.removeClass("close-docs-main-nav"),t.addClass("open-docs-main-nav")));let n=$(".main-nav"),r=$(".docs-nav-toggle"),i=$(".docs-type-nav-search");$(".section-docs .docs-list-main").length>0&&($(".section-docs .docs-list-main").get(0).getBoundingClientRect().y<=0?(n.css("margin-top",i.height()-Math.max($(".top-nav-container").get(0).getBoundingClientRect().y,0)),r.css("top",94+i.height()-Math.max($(".top-nav-container").get(0).getBoundingClientRect().y,0))):n.css("margin-top",0)),$(this).width()>1280?(e.removeClass("docs-nav-show"),e.removeClass("docs-nav-hide")):e.hasClass("docs-nav-hide")||e.hasClass("docs-nav-show")||e.addClass("docs-nav-hide")}function r(){let t=$(".docs-toc-desktop");window.innerWidth>1024&&window.innerWidth<=1280?e.hasClass("docs-nav-show")?t.hide():t.show():window.innerWidth>1280?t.show():t.hide()}function i(){$(".docs-main-nav").css("height",$(".docs-footer").height()+window.innerHeight)}$(window).on("resize",(function(){n(),r(),i()})).trigger("resize"),$(window).on("scroll",(function(){n()})).trigger("resize"),$(window).on("load",(function(){n(),r(),i()})),function(n,i){i(".docs-nav-toggle").on("click",(function(){e.toggleClass("docs-nav-show"),e.toggleClass("docs-nav-hide"),t.toggleClass("close-docs-main-nav"),t.toggleClass("open-docs-main-nav"),r()}));let o=i("#accordion-checkbox-package-card"),s=i("#accordion-package-card");o.on("change",(function(){o.is(":checked")?s.css("background","#fff"):s.css("background","#f9f9f9")}));let a=i("#collapse-content-button"),l=i("#expand-content-button");function c(){i(".docs-main-content").addClass("docs-content-width-expanded"),window.location.pathname.startsWith("/registry")&&i(".docs-main-content").addClass("expand-registry"),a.removeClass("hide"),l.addClass("hide"),window.localStorage.setItem("content-width-state","expanded")}function u(){i(".docs-main-content").removeClass("docs-content-width-expanded"),a.addClass("hide"),l.removeClass("hide"),window.localStorage.setItem("content-width-state","collapsed")}l.on("click",c),a.on("click",u),"expanded"===window.localStorage.getItem("content-width-state")?c():u()}(document,jQuery)},21:()=>{$((function(){function e(e,t){var n=e.map((function(e){return".highlight .chroma .language-"+e})).join(", ");$(n).each((function(){var e=$(this);e.html(e.html().replace(t,'$1'))}))}e(["bash","sh","shell","zsh"],/([ |\t]*\$ )/gim),e(["bat","batch","batchfile","powershell","posh","pwsh"],/([ |\t]*><\/span> )/gim)}))},490:()=>{const e=(e,t)=>{const n="amazon",r="google cloud",i="google",o=$(".all-packages").find(".package"),s=void 0===e.find((e=>"type"===e.group)),a=void 0===e.find((e=>"category"===e.group));e.length>0||t?($(o).addClass("hidden"),$(o).each(((o,l)=>{const c=$(l).find("[data-category]"),u=c.attr("data-type"),d=c.attr("data-category"),p="native-provider"===u,f=!!e.find((e=>"type"===e.group&&e.value===u))||e.find((e=>"type"===e.group&&"provider"===e.value))&&p,h=!!e.find((e=>"category"===e.group&&e.value===d)),m=c.attr("data-title").toLowerCase(),v=null==t?void 0:t.trim().toLowerCase();let g;g=v===n||"aws"===v?m.includes(n)||m.includes("aws"):"gcp"===v||v===r||v===i?m.includes("gcp")||m.includes(r)||m.includes(i):m.includes(v),!f&&!s||!h&&!a||t&&!g||$(l).removeClass("hidden")}))):$(o).removeClass("hidden")};$(".section-registry").on("filterSelect",(t=>{const n=t.target,r=t.detail,i=$("pulumi-registry-list-search").get(0),o=$(i).find(".registry-filter-input").val();e(r,o);const s=$("ul.active-tags");s.empty(),r.forEach((e=>{const t=$($("#active-tag-template").html());t.appendTo(s),t.attr("data-filter-group",e.group).attr("data-filter-value",e.value),t.find("span").text(e.label),t.find("button").on("click",(()=>n.deselect(e)))})),$(".packages, .active-tags").attr("data-selected-types",r.filter((e=>"type"===e.group)).map((e=>e.value)).join(",")).attr("data-selected-categories",r.filter((e=>"category"===e.group)).map((e=>e.value)).join(","));const a=$(".all-packages .package:not(.hidden)").length;$(".all-count").text(a),$("pulumi-filter-select-option-group").each(((e,t)=>t.close()))})),$(".section-registry .no-results .reset").on("click",(t=>{t.stopPropagation();$("pulumi-registry-list-search").get(0).reset();$("pulumi-filter-select").get(0).reset(),e([],"");const n=$(".all-packages .package:not(.hidden)").length;$(".all-count").text(n)})),$(".section-registry").on("packageSearch",(t=>{const n=t.detail,r=[],i=$("ul.active-tags").find("li");i.length>0&&i.each(((e,t)=>{const n=$(t),i=n.attr("data-filter-group"),o=n.attr("data-filter-value"),s=n.attr("data-filter-label");r.push({group:i,value:o,label:s})})),e(r,n);const o=$(".all-packages .package:not(.hidden)").length;$(".all-count").text(o)})),document.addEventListener("DOMContentLoaded",(function(){const e=$(".logo-nav-button"),t=$(".logo-nav-bg-mask"),n=$("#logo-nav-menu");function r(){n.toggleClass("hidden");const r=n.is(":visible");e.attr("aria-expanded",`${r}`),$(".logo-nav-button .mobile-menu-toggle-icon").toggleClass("hidden"),t.toggleClass("hidden")}e.on("click",r),t.on("click",r),$(document).on("click",(function(t){0===$(t.target).closest(e).length&&0===$(t.target).closest(n).length&&n.is(":visible")&&r()})),$(document).on("scroll",(function(){window.scrollY>53&&n.is(":visible")&&r()}))}))},245:()=>{$(document).on("rendered",(function(){$("#billing-period").each((function(e,t){t.addEventListener("change",(function(e){e&&e.target&&e.target.checked?($(".billing-price-monthly").each((function(e,t){$(t).hide()})),$(".billing-price-annually").each((function(e,t){$(t).show()}))):($(".billing-price-monthly").each((function(e,t){$(t).show()})),$(".billing-price-annually").each((function(e,t){$(t).hide()})))}))}))}))},366:()=>{$((function(){$("#pricingStartTrial").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#pricingStartTrialBottomCTA").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#businessCriticalStartTrialButton").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#enterpriseStartTrialButton").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#teamStartTrialButton").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#closePricingTrialOptionsDialog").on("click",(function(){$("#pricingTrialOptionsDialog").addClass("hidden")})),$("#startServiceTrial").on("click",(function(){$("#pricingTrialOptionsDialog").addClass("hidden")})),$("#startSelfHostedTrial").on("click",(function(){$("#pricingTrialOptionsDialog").addClass("hidden")}))}))},744:()=>{$((function(){$("#iac-pricing-select").on("click",(function(){$(".esc-price").addClass("hidden"),$(".iac-price").removeClass("hidden"),$("#esc-pricing-select").removeClass("border-blue-600 bg-violet-100"),$("#esc-pricing-select").addClass("border-gray-300"),$("#esc-pricing-select-text").removeClass("rainbow-text"),$("#iac-pricing-select").addClass("border-blue-600 bg-violet-100"),$("#iac-pricing-select-text").addClass("rainbow-text")})),$("#esc-pricing-select").on("click",(function(){$(".iac-price").addClass("hidden"),$(".esc-price").removeClass("hidden"),$("#iac-pricing-select").removeClass("border-blue-600 bg-violet-100"),$("#iac-pricing-select").addClass("border-gray-300"),$("#iac-pricing-select-text").removeClass("rainbow-text"),$("#esc-pricing-select").addClass("border-blue-600 bg-violet-100"),$("#esc-pricing-select-text").addClass("rainbow-text")}))}))},734:()=>{$((function(){const e=["iac-select","esc-select","insights-select"],t=["crossguard-select","deployments-select","copilot-select","management-select"];e.forEach((t=>{$(`#${t}`).on("click",(function(){e.forEach((e=>{e!==t&&($(`#${e}-content`).addClass("hidden"),$(`#${e}`).removeClass("border-blue-600"),$(`#${e}-text`).removeClass("rainbow-text"))})),$(`#${t}`).addClass("border-blue-600"),$(`#${t}-text`).addClass("rainbow-text"),$(`#${t}-content`).removeClass("hidden")}))})),t.forEach((e=>{$(`#${e}`).on("click",(function(){t.forEach((t=>{t!==e&&($(`#${t}-content`).addClass("hidden"),$(`#${t}`).removeClass("border-blue-600"),$(`#${t}-text`).removeClass("rainbow-text"))})),$(`#${e}`).addClass("border-blue-600"),$(`#${e}-text`).addClass("rainbow-text"),$(`#${e}-content`).removeClass("hidden")}))}))}))},140:()=>{const e=document.location.pathname;if("/docs/intro/concepts/programming-model/"===e||"/docs/reference/programming-model/"===e){var t={"#additionalsecretoutputs":"/docs/concepts/resources/#additionalsecretoutputs","#aliases":"/docs/concepts/resources/#aliases","#all":"/docs/concepts/inputs-outputs/#all","#apply":"/docs/concepts/inputs-outputs/#apply","#assets-and-archives":"/docs/concepts/assets-archives/","#autonaming":"/docs/concepts/resources/#autonaming","#components":"/docs/concepts/resources/#components","#config":"/docs/concepts/config","#custom-resources":"/docs/concepts/resources/#custom-resources","#declaring-infrastructure":"/docs/concepts/#overview","#deletebeforereplace":"/docs/concepts/resources/#deletebeforereplace","#dependson":"/docs/concepts/resources/#dependson","#dynamicproviders":"/docs/concepts/resources/#dynamicproviders","#explicit-provider-configuration":"/docs/concepts/resources/#explicit-provider-configuration","#import":"/docs/concepts/resources/#import","#introduction":"/docs/intro/concepts","#lifting":"/docs/concepts/inputs-outputs/#lifting","#names":"/docs/concepts/resources/#names","#outputs":"/docs/concepts/inputs-outputs","#outputs-and-strings":"/docs/concepts/inputs-outputs/#outputs-and-strings","#program-structure":"/docs/concepts/#overview","#programs":"/docs/concepts/#overview","#providers":"/docs/concepts/resources/#providers","#reading-configuration-values":"/docs/concepts/config/#code","#resource-get":"/docs/concepts/resources/#resource-get","#resource-providers":"/docs/concepts/resources/#providers","#resourceoptions":"/docs/concepts/resources/#options","#resources":"/docs/concepts/resources","#runtime":"/docs/concepts/","#runtime-functions":"/docs/concepts/","#secrets":"/docs/concepts/secrets","#stack-outputs":"/docs/concepts/stack/#outputs","#stack-references":"/docs/concepts/stack/#stack-references","#transformations":"/docs/concepts/resources/#transformations"}[location.hash];t&&(location.href=t)}},498:()=>{const e=e=>{const t=$(".event-list").find(".event-card"),n=$(".event-list").find(".month-label");$(n).css("display","none");const r=$(".pulumi-event-list-container").find(".no-results");$(r).removeClass("hidden"),e.length>0?$(t).each(((t,n)=>{const i=$(n).attr("data-filters").split(" "),o=$(n).attr("data-month-label");if(i.includes(location.hash.slice(1))){let t=0;i.forEach((n=>{e.includes(n)&&t++})),t>0?($(r).addClass("hidden"),$(n).css("display","block"),$(`.month-label.${o}`).css("display","block")):$(n).css("display","none")}else $(n).css("display","none")})):$(t).each(((e,t)=>{const n=$(t).attr("data-filters").split(" "),i=$(t).attr("data-month-label");if(n.includes(location.hash.slice(1)))$(r).addClass("hidden"),$(t).css("display","block"),$(`.month-label.${i}`).css("display","block");else{$(t).css("display","none");$(t).attr("data-month-label")}}))};$(".pulumi-event-list-container").on("filterSelect",(t=>{const n=t.detail,r=[];n.forEach((e=>{r.push(e.value)})),e(r)})),$(window).on("hashchange",(function(){const t=$("pulumi-filter-select-option").toArray();let n=[];t.forEach((e=>{const t=e.shadowRoot;$(t).find(".selected").length>0&&n.push(e.value)})),e(n)})),$((function(){const e=document.getElementById("event-list-filter-nav");if(e){$("#slideForward").on("click",(function(){e.scrollLeft+=180})),$("#slideBackwards").on("click",(function(){e.scrollLeft-=180}));const t={root:document.getElementById("event-list-filter-nav"),threshold:1},n=new IntersectionObserver(((e,t)=>{e.forEach((e=>{e.isIntersecting?$("#slideForward").addClass("hidden"):$("#slideForward").removeClass("hidden")}))}),t),r=document.querySelector("#event-list-filter-nav li:last-of-type");n.observe(r);const i=new IntersectionObserver(((e,t)=>{e.forEach((e=>{e.isIntersecting?$("#slideBackwards").addClass("hidden"):$("#slideBackwards").removeClass("hidden")}))}),t),o=document.querySelector("#event-list-filter-nav li:first-of-type");i.observe(o)}}))},399:()=>{$((function(){const e={"/docs/get-started/":"get-started-with-pulumi-toc-header","/docs/":"intro-toc-header","/docs/using-pulumi/":"user-guides-toc-header","/docs/concepts/":"reference-toc-header","/docs/support/":"support-toc-header","/docs/iac/adopting-pulumi/converters/":"converters-toc-header"};Object.keys(e).map((t=>{const n=document.getElementById(e[t]);if(n&&(n.classList.remove("active"),document.location.pathname===t)){const e=document.getElementById("left-nav");n.classList.add("active"),e.scrollTop=n.offsetTop-100}}))}))},931:()=>{$(document).ready((function(){if(window&&window.analytics&&"function"==typeof window.analytics.track){const n=$("a"),r=(new Date).getTime();function e(e,t){const n=$(e);if(!n)return;const i=n.attr("data-track"),o=(n.attr("href")||"").replace(/https?:\/\//g,""),s=i||o.replace(/^#/,"anchor-").replace(/^\//,"").split("/").join("-"),a=("/"===window.location.pathname?"home":window.location.pathname).split("/").filter((function(e){return""!==e})).map((function(e){return e})).concat(s,t).join("-"),l={element_id:a,destinationPath:n.attr("href"),url:window.location.pathname,category:"User Interaction",label:a,value:void 0};n.on("click",(function(e){l.value=((new Date).getTime()-r)/1e3,window.analytics.track("link-click",l)}))}for(var t=0;t{"use strict";n.r(t),n.d(t,{scopeCss:()=>j});const r="-shadowcsshost",i="-shadowcssslotted",o="-shadowcsscontext",s=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",a=new RegExp("("+r+s,"gim"),l=new RegExp("("+o+s,"gim"),c=new RegExp("("+i+s,"gim"),u=r+"-no-combinator",d=/-shadowcsshost-no-combinator([^\s]*)/,p=[/::shadow/g,/::content/g],f=/-shadowcsshost/gim,h=/:host/gim,m=/::slotted/gim,v=/:host-context/gim,g=/\/\*\s*[\s\S]*?\*\//g,y=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,b=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,w=/([{}])/g,_="%BLOCK%",S=(e,t)=>{const n=x(e);let r=0;return n.escapedString.replace(b,((...e)=>{const i=e[2];let o="",s=e[4],a="";s&&s.startsWith("{"+_)&&(o=n.blocks[r++],s=s.substring(_.length+1),a="{");const l=t({selector:i,content:o});return`${e[1]}${l.selector}${e[3]}${a}${l.content}${s}`}))},x=e=>{const t=e.split(w),n=[],r=[];let i=0,o=[];for(let e=0;e0?o.push(s):(o.length>0&&(r.push(o.join("")),n.push(_),o=[]),n.push(s)),"{"===s&&i++}o.length>0&&(r.push(o.join("")),n.push(_));return{escapedString:n.join(""),blocks:r}},O=(e,t,n)=>e.replace(t,((...e)=>{if(e[2]){const t=e[2].split(","),r=[];for(let i=0;ie+t.replace(r,"")+n,k=(e,t,n)=>t.indexOf(r)>-1?$(e,t,n):e+t+n+", "+t+" "+e+n,C=(e,t)=>{const n=(e=>(e=e.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+e+")([>\\s~+[.,{:][\\s\\S]*)?$","m")))(t);return!n.test(e)},E=(e,t,n)=>{const r="."+(t=t.replace(/\[is=([^\]]*)\]/g,((e,...t)=>t[0]))),i=e=>{let i=e.trim();if(!i)return"";if(e.indexOf(u)>-1)i=((e,t,n)=>{if(f.lastIndex=0,f.test(e)){const t=`.${n}`;return e.replace(d,((e,n)=>n.replace(/([^:]*)(:*)(.*)/,((e,n,r,i)=>n+t+r+i)))).replace(f,t+" ")}return t+" "+e})(e,t,n);else{const t=e.replace(f,"");if(t.length>0){const e=t.match(/([^:]*)(:*)(.*)/);e&&(i=e[1]+r+e[2]+e[3])}}return i},o=(e=>{const t=[];let n,r=0;return n=(e=e.replace(/(\[[^\]]*\])/g,((e,n)=>{const i=`__ph-${r}__`;return t.push(n),r++,i}))).replace(/(:nth-[-\w]+)(\([^)]+\))/g,((e,n,i)=>{const o=`__ph-${r}__`;return t.push(i),r++,n+o})),{content:n,placeholders:t}})(e);let s,a="",l=0;const c=/( |>|\+|~(?!=))\s*/g;let p=!((e=o.content).indexOf(u)>-1);for(;null!==(s=c.exec(e));){const t=s[1],n=e.slice(l,s.index).trim();p=p||n.indexOf(u)>-1;a+=`${p?i(n):n} ${t} `,l=c.lastIndex}const h=e.substring(l);return p=p||h.indexOf(u)>-1,a+=p?i(h):h,m=o.placeholders,a.replace(/__ph-(\d+)__/g,((e,t)=>m[+t]));var m},T=(e,t,n,r,i)=>S(e,(e=>{let i=e.selector,o=e.content;"@"!==e.selector[0]?i=((e,t,n,r)=>e.split(",").map((e=>r&&e.indexOf("."+r)>-1?e.trim():C(e,t)?E(e,t,n).trim():e.trim())).join(", "))(e.selector,t,n,r):(e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document"))&&(o=T(e.content,t,n,r));return{selector:i.replace(/\s{2,}/g," ").trim(),content:o}})),P=(e,t,n,s,d)=>{const f=((e,t)=>{const n="."+t+" > ",r=[];return e=e.replace(c,((...e)=>{if(e[2]){const t=e[2].trim(),i=e[3],o=n+t+i;let s="";for(let t=e[4]-1;t>=0;t--){const n=e[5][t];if("}"===n||","===n)break;s=n+s}const a=s+o,l=`${s.trimRight()}${o.trim()}`;if(a.trim()!==l.trim()){const e=`${l}, ${a}`;r.push({orgSelector:a,updatedSelector:e})}return o}return u+e[3]})),{selectors:r,cssText:e}})(e=(e=>O(e,l,k))(e=(e=>O(e,a,$))(e=e.replace(v,o).replace(h,r).replace(m,i))),s);return e=(e=>p.reduce(((e,t)=>e.replace(t," ")),e))(e=f.cssText),t&&(e=T(e,t,n,s)),{cssText:(e=(e=e.replace(/-shadowcsshost-no-combinator/g,`.${n}`)).replace(/>\s*\*\s+([^{, ]+)/gm," $1 ")).trim(),slottedSelectors:f.selectors}},j=(e,t,n)=>{const r=t+"-h",i=t+"-s",o=e.match(y)||[];e=(e=>e.replace(g,""))(e);const s=[];if(n){const t=e=>{const t=`/*!@___${s.length}___*/`,n=`/*!@${e.selector}*/`;return s.push({placeholder:t,comment:n}),e.selector=t+e.selector,e};e=S(e,(e=>"@"!==e.selector[0]?t(e):e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document")?(e.content=S(e.content,t),e):e))}const a=P(e,t,r,i);return e=[a.cssText,...o].join("\n"),n&&s.forEach((({placeholder:t,comment:n})=>{e=e.replace(t,n)})),a.slottedSelectors.forEach((t=>{e=e.replace(t.orgSelector,t.updatedSelector)})),e}},263:e=>{function t(e){return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}t.keys=()=>[],t.resolve=t,t.id=263,e.exports=t}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";const e=!1,t=!0,r=!1,i=!0,o=!0,s=!0,a=!0,l=!0,c=!0,u=!0,d=!0,p=!0,f=!0,h=!0,m=!0,v=!1,g=!0,y=!0,b=!0,w=!0,_=!0,S=!0,x=!0,O=!0,k=!0,C=!0,E=!0,T=!0,P=!0,j=!0,I=!0,A=!0,L=!0,D=!0,M=!0,N=!0,R=!0,F=!0,B=!0,q=!0,z=!0,H=!0,U=!0,V=!0,W=!1,G=!1,K=!1,J=!1,Y=!1,X=!1,Q=!1,Z=!1,ee=!1,te=!0,ne=!1,re=!0,ie=!1,oe=!0,se=!0,ae=!0,le=!1,ce=!0,ue=!0,de=!1,pe=!1,fe=!1,he=!0,me="app";let ve,ge,ye,be,we=0,_e=!1,Se=!1,xe=!1,Oe=!1,$e=null,ke=0,Ce=!1;const Ee="undefined"!=typeof window?window:{},Te=(le&&Ee.CSS,Ee.document||{head:{}}),Pe=(Ee.HTMLElement,{$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)}),je=!ie||!k||(()=>(Te.head.attachShadow+"").indexOf("[native")>-1)(),Ie=(()=>{let e=!1;try{Te.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(e){}return e})(),Ae=!!ce&&(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),Le=(e,t,n,r)=>{p&&n&&(v&&(n=r?n.filter((([e])=>32&e)):n.filter((([e])=>!(32&e)))),n.map((([n,r,i])=>{const o=g?Me(e,n):e,s=De(t,i),a=Ne(n);Pe.ael(o,r,s,a),(t.$rmListeners$=t.$rmListeners$||[]).push((()=>Pe.rel(o,r,s,a)))})))},De=(e,t)=>n=>{try{Z?256&e.$flags$?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n]):e.$hostElement$[t](n)}catch(e){en(e)}},Me=(e,t)=>h&&4&t?Te:f&&8&t?Ee:m&&16&t?Te.body:v&&32&t?e.parentElement:e,Ne=e=>Ie?{passive:0!=(1&e),capture:0!=(2&e)}:0!=(2&e),Re="s-id",Fe="sty-id",Be="c-id",qe="http://www.w3.org/1999/xlink",ze=(e,t="")=>{if(ee&&performance.mark){const n=`st:${e}:${t}:${we++}`;return performance.mark(n),()=>performance.measure(`[Stencil] ${e}() <${t}>`,n)}return()=>{}},He=new WeakMap,Ue=(e,t,n)=>{let r=an.get(e);Ae&&n?(r=r||new CSSStyleSheet,r.replace(t)):r=t,an.set(e,r)},Ve=(e,t,n,r)=>{let i=Ge(t,n),o=an.get(i);if(!he)return i;if(e=11===e.nodeType?e:Te,o)if("string"==typeof o){e=e.head||e;let n,s=He.get(e);if(s||He.set(e,s=new Set),!s.has(i)){if(X&&e.host&&(n=e.querySelector(`[${Fe}="${i}"]`)))n.innerHTML=o;else{if(le&&Pe.$cssShim$){n=Pe.$cssShim$.createHostStyle(r,i,o,!!(10&t.$flags$));const e=n["s-sc"];e&&(i=e,s=null)}else n=Te.createElement("style"),n.innerHTML=o;(Y||W)&&n.setAttribute(Fe,i),e.insertBefore(n,e.querySelector("link"))}s&&s.add(i)}}else ce&&!e.adoptedStyleSheets.includes(o)&&(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return i},We=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,r=t.$flags$,i=ze("attachStyles",t.$tagName$),o=Ve(k&&je&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$,n);(k||O)&&E&&10&r&&(n["s-sc"]=o,n.classList.add(o+"-h"),O&&2&r&&n.classList.add(o+"-s")),i()},Ge=(e,t)=>"sc-"+(w&&t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$),Ke=e=>ln.map((t=>t(e))).find((e=>!!e)),Je={},Ye=e=>"object"===(e=typeof e)||"function"===e,Xe=(e,t,...n)=>{let r=null,i=null,o=null,s=!1,a=!1,l=[];const c=t=>{for(let n=0;ne[t])).join(" "))}if(K&&l.some(et)&&nn("The must be the single root component. Make sure:\n- You are NOT using hostData() and in the same component.\n- is used once, and it's the single root component of the render() function."),M&&"function"==typeof e)return e(null===t?{}:t,l,tt);const u=Qe(e,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),N&&(u.$key$=i),te&&(u.$name$=o),u},Qe=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return A&&(n.$attrs$=null),N&&(n.$key$=null),te&&(n.$name$=null),n},Ze={},et=e=>e&&e.$tag$===Ze,tt={forEach:(e,t)=>e.map(nt).forEach(t),map:(e,t)=>e.map(nt).map(t).map(rt)},nt=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),rt=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),Xe(e.vtag,t,...e.vchildren||[])}const t=Qe(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},it=e=>{const t=Object.keys(e),n=t.indexOf("type"),r=t.indexOf("min"),i=t.indexOf("max"),o=t.indexOf("min"),s=t.indexOf("value");-1!==s&&(s should be set after "min", "max", "type" and "step"')},ot=(e,t,n,r,i,o)=>{if(n!==r){let s=Zt(e,t),a=t.toLowerCase();if(D&&"class"===t){const t=e.classList,i=at(n),o=at(r);t.remove(...i.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!i.includes(e))))}else if(z&&"style"===t){if(I)for(const t in n)r&&null!=r[t]||(!Y&&t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in r)n&&r[t]===n[t]||(!Y&&t.includes("-")?e.style.setProperty(t,r[t]):e.style[t]=r[t])}else if(N&&"key"===t);else if(F&&"ref"===t)r&&r(e);else if(!R||(Z?s:e.__lookupSetter__(t))||"o"!==t[0]||"n"!==t[1]){if(B){const l=Ye(r);if((s||l&&null!==r)&&!i)try{if(e.tagName.includes("-"))e[t]=r;else{let i=null==r?"":r;"list"===t?s=!1:null!=n&&e[t]==i||(e[t]=i)}}catch(e){}let c=!1;L&&a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),null==r||!1===r?!1===r&&""!==e.getAttribute(t)||(L&&c?e.removeAttributeNS(qe,t):e.removeAttribute(t)):(!s||4&o||i)&&!l&&(r=!0===r?"":r,L&&c?e.setAttributeNS(qe,t,r):e.setAttribute(t,r))}}else t="-"===t[2]?t.slice(3):Zt(Ee,a)?a.slice(2):a[2]+t.slice(3),n&&Pe.rel(e,t,n,!1),r&&Pe.ael(e,t,r,!1)}},st=/\s/,at=e=>e?e.split(st):[],lt=(e,t,n,r)=>{const i=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,o=e&&e.$attrs$||Je,s=t.$attrs$||Je;if(I)for(r in o)r in s||ot(i,r,o[r],void 0,n,t.$flags$);for(r in s)ot(i,r,o[r],s[r],n,t.$flags$)},ct=(e,t,n,r)=>{let i,o,s,a=t.$children$[n],l=0;if(te&&!_e&&(xe=!0,"slot"===a.$tag$&&(ve&&r.classList.add(ve+"-s"),a.$flags$|=a.$children$?2:1)),K&&a.$elm$&&nn(`The JSX ${null!==a.$text$?`"${a.$text$}" text`:`"${a.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`),H&&null!==a.$text$)i=a.$elm$=Te.createTextNode(a.$text$);else if(te&&1&a.$flags$)i=a.$elm$=G||Y?xt(a):Te.createTextNode("");else{if(j&&!Oe&&(Oe="svg"===a.$tag$),i=a.$elm$=j?Te.createElementNS(Oe?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",te&&2&a.$flags$?"slot-fb":a.$tag$):Te.createElement(te&&2&a.$flags$?"slot-fb":a.$tag$),j&&Oe&&"foreignObject"===a.$tag$&&(Oe=!1),A&<(null,a,Oe),(k||O)&&(e=>null!=e)(ve)&&i["s-si"]!==ve&&i.classList.add(i["s-si"]=ve),a.$children$)for(l=0;l{Pe.$flags$|=1;const n=e.childNodes;for(let e=n.length-1;e>=0;e--){const r=n[e];r["s-hn"]!==ye&&r["s-ol"]&&(mt(r).insertBefore(r,ht(r)),r["s-ol"].remove(),r["s-ol"]=void 0,xe=!0),t&&ut(r,t)}Pe.$flags$&=-2},dt=(e,t,n,r,i,o)=>{let s,a=te&&e["s-cr"]&&e["s-cr"].parentNode||e;for(k&&a.shadowRoot&&a.tagName===ye&&(a=a.shadowRoot);i<=o;++i)r[i]&&(s=ct(null,n,i,e),s&&(r[i].$elm$=s,a.insertBefore(s,te?ht(t):t)))},pt=(e,t,n,r,i)=>{for(;t<=n;++t)(r=e[t])&&(i=r.$elm$,_t(r),te&&(Se=!0,i["s-ol"]?i["s-ol"].remove():ut(i,!0)),i.remove())},ft=(e,t)=>e.$tag$===t.$tag$&&(te&&"slot"===e.$tag$?e.$name$===t.$name$:!N||e.$key$===t.$key$),ht=e=>e&&e["s-ol"]||e,mt=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,vt=(e,t)=>{const n=t.$elm$=e.$elm$,r=e.$children$,i=t.$children$,o=t.$tag$,s=t.$text$;let a;H&&null!==s?H&&te&&(a=n["s-cr"])?a.parentNode.textContent=s:H&&e.$text$!==s&&(n.data=s):(j&&(Oe="svg"===o||"foreignObject"!==o&&Oe),(A||x)&&(C&&"slot"===o||lt(e,t,Oe)),I&&null!==r&&null!==i?((e,t,n,r)=>{let i,o,s=0,a=0,l=0,c=0,u=t.length-1,d=t[0],p=t[u],f=r.length-1,h=r[0],m=r[f];for(;s<=u&&a<=f;)if(null==d)d=t[++s];else if(null==p)p=t[--u];else if(null==h)h=r[++a];else if(null==m)m=r[--f];else if(ft(d,h))vt(d,h),d=t[++s],h=r[++a];else if(ft(p,m))vt(p,m),p=t[--u],m=r[--f];else if(ft(d,m))!te||"slot"!==d.$tag$&&"slot"!==m.$tag$||ut(d.$elm$.parentNode,!1),vt(d,m),e.insertBefore(d.$elm$,p.$elm$.nextSibling),d=t[++s],m=r[--f];else if(ft(p,h))!te||"slot"!==d.$tag$&&"slot"!==m.$tag$||ut(p.$elm$.parentNode,!1),vt(p,h),e.insertBefore(p.$elm$,d.$elm$),p=t[--u],h=r[++a];else{if(l=-1,N)for(c=s;c<=u;++c)if(t[c]&&null!==t[c].$key$&&t[c].$key$===h.$key$){l=c;break}N&&l>=0?(o=t[l],o.$tag$!==h.$tag$?i=ct(t&&t[a],n,l,e):(vt(o,h),t[l]=void 0,i=o.$elm$),h=r[++a]):(i=ct(t&&t[a],n,a,e),h=r[++a]),i&&(te?mt(d.$elm$).insertBefore(i,ht(d.$elm$)):d.$elm$.parentNode.insertBefore(i,d.$elm$))}s>u?dt(e,null==r[f+1]?null:r[f+1].$elm$,n,r,a,f):I&&a>f&&pt(t,s,u)})(n,r,t,i):null!==i?(I&&H&&null!==e.$text$&&(n.textContent=""),dt(n,null,t,i,0,i.length-1)):I&&null!==r&&pt(r,0,r.length-1),j&&Oe&&"svg"===o&&(Oe=!1))},gt=e=>{let t,n,r,i,o,s,a=e.childNodes;for(n=0,r=a.length;n{let t,n,r,i,o,s,a=0,l=e.childNodes,c=l.length;for(;a=0;s--)n=r[s],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(wt(n,i)?(o=yt.find((e=>e.$nodeToRelocate$===n)),Se=!0,n["s-sn"]=n["s-sn"]||i,o?o.$slotRefNode$=t:yt.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&yt.map((e=>{wt(e.$nodeToRelocate$,n["s-sn"])&&(o=yt.find((e=>e.$nodeToRelocate$===n)),o&&!e.$slotRefNode$&&(e.$slotRefNode$=o.$slotRefNode$))}))):yt.some((e=>e.$nodeToRelocate$===n))||yt.push({$nodeToRelocate$:n}));1===t.nodeType&&bt(t)}},wt=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,_t=e=>{F&&(e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(_t))},St=(e,t)=>{const n=e.$hostElement$,r=e.$cmpMeta$,i=e.$vnode$||Qe(null,null),o=et(t)?t:Xe(null,null,t);if(ye=n.tagName,K&&Array.isArray(t)&&t.some(et))throw new Error(`The must be the single root component.\nLooks like the render() function of "${ye.toLowerCase()}" is returning an array that contains the .\n\nThe render() function should look like this instead:\n\nrender() {\n // Do not return an array\n return (\n {content}\n );\n}\n `);if(x&&r.$attrsToReflect$&&(o.$attrs$=o.$attrs$||{},r.$attrsToReflect$.map((([e,t])=>o.$attrs$[t]=n[e]))),o.$tag$=null,o.$flags$|=4,e.$vnode$=o,o.$elm$=i.$elm$=k&&n.shadowRoot||n,(O||k)&&(ve=n["s-sc"]),te&&(ge=n["s-cr"],_e=je&&0!=(1&r.$flags$),Se=!1),vt(i,o),te){if(Pe.$flags$|=1,xe){let e,t,n,r,i,s;bt(o.$elm$);let a=0;for(;aTe.createComment(` (host=${ye.toLowerCase()})`),Ot=e=>Te.createComment("org-location for "+(e.localName?`<${e.localName}> (host=${e["s-hn"]})`:`[${e.textContent}]`)),$t=(e,t,n)=>{const r=(e=>Z?Xt(e).$hostElement$:e)(e);return{emit:e=>(K&&!r.isConnected&&rn(`The "${t}" event was emitted, but the dispatcher node is no longer connected to the dom.`),kt(r,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e}))}},kt=(e,t,n)=>{const r=Pe.ce(t,n);return e.dispatchEvent(r),r},Ct=(e,t)=>{pe&&t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.$onRenderResolve$=t)))},Et=(e,t)=>{if(V&&I&&(e.$flags$|=16),pe&&4&e.$flags$)return void(e.$flags$|=512);Ct(e,e.$ancestorComponent$);const n=()=>Tt(e,t);return V?gn(n):n()},Tt=(e,t)=>{const n=e.$hostElement$,r=ze("scheduleUpdate",e.$cmpMeta$.$tagName$),i=Z?e.$lazyInstance$:n;let o;return t?(Z&&p&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map((([e,t])=>Lt(i,e,t))),e.$queuedListeners$=null)),Mt(n,"componentWillLoad"),s&&(o=Lt(i,"componentWillLoad"))):(Mt(n,"componentWillUpdate"),a&&(o=Lt(i,"componentWillUpdate"))),Mt(n,"componentWillRender"),l&&(o=Dt(o,(()=>Lt(i,"componentWillRender")))),r(),Dt(o,(()=>Pt(e,i,t)))},Pt=async(e,t,n)=>{const r=e.$hostElement$,i=ze("update",e.$cmpMeta$.$tagName$),o=r["s-rc"];P&&n&&We(e);const s=ze("render",e.$cmpMeta$.$tagName$);if(K&&(e.$flags$|=1024),Y?await jt(e,t,r):jt(e,t,r),le&&Pe.$cssShim$&&Pe.$cssShim$.updateHost(r),K&&(e.$renderCount$++,e.$flags$&=-1025),Y)try{Rt(r),n&&(1&e.$cmpMeta$.$flags$?r["s-en"]="":2&e.$cmpMeta$.$flags$&&(r["s-en"]="c"))}catch(e){en(e,r)}if(pe&&o&&(o.map((e=>e())),r["s-rc"]=void 0),s(),i(),pe){const t=r["s-p"],n=()=>It(e);0===t.length?n():(Promise.all(t).then(n),e.$flags$|=4,t.length=0)}else It(e)},jt=(t,n,r)=>{const i=!!e,o=!!Z,s=!!V,a=!!I;try{if($e=n,n=(i||n.render)&&n.render(),a&&s&&(t.$flags$&=-17),(a||o)&&(t.$flags$|=2),d||x)if(q||x){if(Y)return Promise.resolve(n).then((e=>St(t,e)));St(t,n)}else r.textContent=n}catch(e){en(e,t.$hostElement$)}return $e=null,null},It=e=>{const n=e.$cmpMeta$.$tagName$,r=e.$hostElement$,s=ze("postUpdate",n),a=Z?e.$lazyInstance$:r,l=e.$ancestorComponent$;o&&(K&&(e.$flags$|=1024),Lt(a,"componentDidRender"),K&&(e.$flags$&=-1025)),Mt(r,"componentDidRender"),64&e.$flags$?(i&&(K&&(e.$flags$|=1024),Lt(a,"componentDidUpdate"),K&&(e.$flags$&=-1025)),Mt(r,"componentDidUpdate"),s()):(e.$flags$|=64,pe&&E&&Nt(r),t&&(K&&(e.$flags$|=2048),Lt(a,"componentDidLoad"),K&&(e.$flags$&=-2049)),Mt(r,"componentDidLoad"),s(),pe&&(e.$onReadyResolve$(r),l||At(n))),W&&r["s-hmr-load"]&&r["s-hmr-load"](),b&&Z&&e.$onInstanceResolve$(r),pe&&(e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&vn((()=>Et(e,!1))),e.$flags$&=-517)},At=e=>{E&&Nt(Te.documentElement),fe&&(Pe.$flags$|=2),vn((()=>kt(Ee,"appload",{detail:{namespace:me}}))),ee&&performance.measure&&performance.measure(`[Stencil] ${me} initial load (by ${e})`,"st:app:start")},Lt=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){en(e)}},Dt=(e,t)=>e&&e.then?e.then(t):t(),Mt=(e,t)=>{Q&&kt(e,"stencil_"+t,{bubbles:!0,composed:!0,detail:{namespace:me}})},Nt=e=>re?e.classList.add("hydrated"):ne?e.setAttribute("hydrated",""):void 0,Rt=e=>{const t=e.children;if(null!=t)for(let e=0,n=t.length;e{let a,l,c,u;if(1===o.nodeType){for(a=o.getAttribute(Be),a&&(l=a.split("."),l[0]!==s&&"0"!==l[0]||(c={$flags$:0,$hostId$:l[0],$nodeId$:l[1],$depth$:l[2],$index$:l[3],$tag$:o.tagName.toLowerCase(),$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},t.push(c),o.removeAttribute(Be),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c,e=c,r&&"0"===c.$depth$&&(r[c.$index$]=c.$elm$))),u=o.childNodes.length-1;u>=0;u--)Ft(e,t,n,r,i,o.childNodes[u],s);if(o.shadowRoot)for(u=o.shadowRoot.childNodes.length-1;u>=0;u--)Ft(e,t,n,r,i,o.shadowRoot.childNodes[u],s)}else if(8===o.nodeType)l=o.nodeValue.split("."),l[1]!==s&&"0"!==l[1]||(a=l[0],c={$flags$:0,$hostId$:l[1],$nodeId$:l[2],$depth$:l[3],$index$:l[4],$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===a?(c.$elm$=o.nextSibling,c.$elm$&&3===c.$elm$.nodeType&&(c.$text$=c.$elm$.textContent,t.push(c),o.remove(),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c,r&&"0"===c.$depth$&&(r[c.$index$]=c.$elm$))):c.$hostId$===s&&("s"===a?(c.$tag$="slot",l[5]?o["s-sn"]=c.$name$=l[5]:o["s-sn"]="",o["s-sr"]=!0,k&&r&&(c.$elm$=Te.createElement(c.$tag$),c.$name$&&c.$elm$.setAttribute("name",c.$name$),o.parentNode.insertBefore(c.$elm$,o),o.remove(),"0"===c.$depth$&&(r[c.$index$]=c.$elm$)),n.push(c),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c):"r"===a&&(k&&r?o.remove():te&&(i["s-cr"]=o,o["s-cn"]=!0))));else if(e&&"style"===e.$tag$){const t=Qe(null,o.textContent);t.$elm$=o,t.$index$="0",e.$children$=[t]}},Bt=(e,t)=>{if(1===e.nodeType){let n=0;for(;n{const i=Xt(e),o=Z?i.$hostElement$:e,s=i.$instanceValues$.get(t),a=i.$flags$,l=Z?i.$lazyInstance$:o;var c,u;if(c=n,u=r.$members$[t][0],n=null==c||Ye(c)?c:oe&&4&u?"false"!==c&&(""===c||!!c):se&&2&u?parseFloat(c):ae&&1&u?String(c):c,!(Z&&8&a&&void 0!==s||n===s)&&(i.$instanceValues$.set(t,n),K&&(1024&i.$flags$?rn(`The state/prop "${t}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,"\nElement",o,"\nNew value",n,"\nOld value",s):2048&i.$flags$&&rn(`The state/prop "${t}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,"\nElement",o,"\nNew value",n,"\nOld value",s)),!Z||l)){if(U&&r.$watchers$&&128&a){const e=r.$watchers$[t];e&&e.map((e=>{try{l[e](n,s,t)}catch(e){en(e,o)}}))}if(I&&2==(18&a)){if(ue&&l.componentShouldUpdate&&!1===l.componentShouldUpdate(n,s,t))return;Et(i,!1)}}},zt=(e,t,n)=>{if(y&&t.$members$){U&&e.watchers&&(t.$watchers$=e.watchers);const r=Object.entries(t.$members$),i=e.prototype;if(r.map((([e,[r]])=>{(S||T)&&(31&r||(!Z||2&n)&&32&r)?Object.defineProperty(i,e,{get(){return t=e,Xt(this).$instanceValues$.get(t);var t},set(i){if(K){const i=Xt(this);0==(1&n)&&0==(8&i.$flags$)&&0!=(31&r)&&0==(1024&r)&&rn(`@Prop() "${e}" on <${t.$tagName$}> is immutable but was modified from within the component.\nMore information: https://stenciljs.com/docs/properties#prop-mutability`)}qt(this,e,i,t)},configurable:!0,enumerable:!0}):Z&&b&&1&n&&64&r&&Object.defineProperty(i,e,{value(...t){const n=Xt(this);return n.$onInstancePromise$.then((()=>n.$lazyInstance$[e](...t)))}})})),_&&(!Z||1&n)){const n=new Map;i.attributeChangedCallback=function(e,t,r){Pe.jmp((()=>{const t=n.get(e);this.hasOwnProperty(t)&&(r=this[t],delete this[t]),this[t]=(null!==r||"boolean"!=typeof this[t])&&r}))},e.observedAttributes=r.filter((([e,t])=>15&t[0])).map((([e,r])=>{const i=r[1]||e;return n.set(i,e),x&&512&r[0]&&t.$attrsToReflect$.push([e,i]),i}))}}return e},Ht=async(e,t,r,i,o)=>{if((Z||Y||P)&&0==(32&t.$flags$)){if(Z||X){if(t.$flags$|=32,(o=sn(r,t,i)).then){const e=(s=`st:load:${r.$tagName$}:${t.$modeName$}`,a=`[Stencil] Load module for <${r.$tagName$}>`,ee&&performance.mark?(0===performance.getEntriesByName(s).length&&performance.mark(s),()=>{0===performance.getEntriesByName(a).length&&performance.measure(a,s)}):()=>{});o=await o,e()}if((K||G)&&!o)throw new Error(`Constructor for "${r.$tagName$}#${t.$modeName$}" was not found`);y&&!o.isProxied&&(U&&(r.$watchers$=o.watchers),zt(o,r,2),o.isProxied=!0);const e=ze("createInstance",r.$tagName$);y&&(t.$flags$|=8);try{new o(t)}catch(e){en(e)}y&&(t.$flags$&=-9),U&&(t.$flags$|=128),e(),Ut(t.$lazyInstance$)}else o=e.constructor,t.$flags$|=32,customElements.whenDefined(r.$tagName$).then((()=>t.$flags$|=128));if(P&&o.style){let i=o.style;w&&"string"!=typeof i&&(i=i[t.$modeName$=Ke(e)],Y&&t.$modeName$&&e.setAttribute("s-mode",t.$modeName$));const s=Ge(r,t.$modeName$);if(!an.has(s)){const e=ze("registerStyles",r.$tagName$);!Y&&k&&ie&&8&r.$flags$&&(i=await Promise.resolve().then(n.bind(n,351)).then((e=>e.scopeCss(i,s,!1)))),Ue(s,i,!!(1&r.$flags$)),e()}}}var s,a;const l=t.$ancestorComponent$,c=()=>Et(t,!0);pe&&l&&l["s-rc"]?l["s-rc"].push(c):c()},Ut=e=>{Z&&c&&Lt(e,"connectedCallback")},Vt=e=>{if(0==(1&Pe.$flags$)){const t=Xt(e),n=t.$cmpMeta$,r=ze("connectedCallback",n.$tagName$);if(v&&Le(e,t,n.$listeners$,!0),1&t.$flags$)Le(e,t,n.$listeners$,!1),Ut(t.$lazyInstance$);else{let r;if(t.$flags$|=1,X&&(r=e.getAttribute(Re),r)){if(k&&je&&1&n.$flags$){const t=w?Ve(e.shadowRoot,n,e.getAttribute("s-mode")):Ve(e.shadowRoot,n);e.classList.remove(t+"-h",t+"-s")}((e,t,n,r)=>{const i=ze("hydrateClient",t),o=e.shadowRoot,s=[],a=k&&o?[]:null,l=r.$vnode$=Qe(t,null);Pe.$orgLocNodes$||Bt(Te.body,Pe.$orgLocNodes$=new Map),e[Re]=n,e.removeAttribute(Re),Ft(l,s,[],a,e,e,n),s.map((e=>{const n=e.$hostId$+"."+e.$nodeId$,r=Pe.$orgLocNodes$.get(n),i=e.$elm$;r&&je&&""===r["s-en"]&&r.parentNode.insertBefore(i,r.nextSibling),o||(i["s-hn"]=t,r&&(i["s-ol"]=r,i["s-ol"]["s-nr"]=i)),Pe.$orgLocNodes$.delete(n)})),k&&o&&a.map((e=>{e&&o.appendChild(e)})),i()})(e,n.$tagName$,r,t)}if(te&&!r&&(Y||(C||k)&&12&n.$flags$)&&Wt(e),pe){let n=e;for(;n=n.parentNode||n.host;)if(X&&1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){Ct(t,t.$ancestorComponent$=n);break}}S&&!Y&&n.$members$&&Object.entries(n.$members$).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),de?vn((()=>Ht(e,t,n))):Ht(e,t,n)}r()}},Wt=e=>{const t=e["s-cr"]=Te.createComment(G?`content-ref (host=${e.localName})`:"");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},Gt=e=>{if(0==(1&Pe.$flags$)){const t=Xt(e),n=Z?t.$lazyInstance$:e;p&&t.$rmListeners$&&(t.$rmListeners$.map((e=>e())),t.$rmListeners$=void 0),le&&Pe.$cssShim$&&Pe.$cssShim$.removeHost(e),Z&&u&&Lt(n,"disconnectedCallback"),r&&Lt(n,"componentDidUnload")}},Kt=(e,t)=>{const n={$flags$:t[0],$tagName$:t[1]};y&&(n.$members$=t[2]),p&&(n.$listeners$=t[3]),U&&(n.$watchers$=e.$watchers$),x&&(n.$attrsToReflect$=[]),k&&!je&&1&n.$flags$&&(n.$flags$|=8);const r=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){Qt(this,n)},connectedCallback(){Vt(this),c&&r&&r.call(this)},disconnectedCallback(){Gt(this),u&&i&&i.call(this)}}),e.is=n.$tagName$,zt(e,n,3)},Jt=e=>{je?e.attachShadow({mode:"open"}):e.shadowRoot=e},Yt=new WeakMap,Xt=e=>Yt.get(e),Qt=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return K&&(n.$renderCount$=0),b&&Z&&(n.$onInstancePromise$=new Promise((e=>n.$onInstanceResolve$=e))),pe&&(n.$onReadyPromise$=new Promise((e=>n.$onReadyResolve$=e)),e["s-p"]=[],e["s-rc"]=[]),Le(e,n,t.$listeners$,!1),Yt.set(e,n)},Zt=(e,t)=>t in e,en=(e,t)=>(be||console.error)(e,t),tn=J?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"],nn=(...e)=>console.error(...tn,...e),rn=(...e)=>console.warn(...tn,...e),on=new Map,sn=(e,t,r)=>{const i=e.$tagName$.replace(/-/g,"_"),o=e.$lazyBundleId$;if(K&&"string"!=typeof o)return void nn(`Trying to lazily load component <${e.$tagName$}> with style mode "${t.$modeName$}", but it does not exist.`);const s=!W&&on.get(o);return s?s[i]:n(263)(`./${o}.entry.js${W&&r?"?s-hmr="+r:""}`).then((e=>(W||on.set(o,e),e[i])),en)},an=new Map,ln=[],cn=[],un=[],dn=[],pn=(e,t)=>n=>{e.push(n),Ce||(Ce=!0,t&&4&Pe.$flags$?vn(mn):Pe.raf(mn))},fn=e=>{for(let t=0;t{let n=0,r=0;for(;n{if(fe&&ke++,fn(cn),fe){const e=2==(6&Pe.$flags$)?performance.now()+14*Math.ceil(.1*ke):1/0;hn(un,e),hn(dn,e),un.length>0&&(dn.push(...un),un.length=0),(Ce=cn.length+un.length+dn.length>0)?Pe.raf(mn):ke=0}else fn(un),(Ce=cn.length>0)&&Pe.raf(mn)},vn=e=>(e=>Promise.resolve(e))().then(e),gn=pn(un,!0);var yn,bn=new Uint8Array(16);function wn(){if(!yn&&!(yn="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return yn(bn)}const _n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Sn(e){return"string"==typeof e&&_n.test(e)}for(var xn=[],On=0;On<256;++On)xn.push((On+256).toString(16).substr(1));function $n(e,t,n){var r=(e=e||{}).random||(e.rng||wn)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(xn[e[t+0]]+xn[e[t+1]]+xn[e[t+2]]+xn[e[t+3]]+"-"+xn[e[t+4]]+xn[e[t+5]]+"-"+xn[e[t+6]]+xn[e[t+7]]+"-"+xn[e[t+8]]+xn[e[t+9]]+"-"+xn[e[t+10]]+xn[e[t+11]]+xn[e[t+12]]+xn[e[t+13]]+xn[e[t+14]]+xn[e[t+15]]).toLowerCase();if(!Sn(n))throw TypeError("Stringified UUID is invalid");return n}(r)}const kn={fetch:globalThis.fetch?globalThis.fetch.bind(globalThis):void 0,SubtleCrypto:globalThis.crypto?globalThis.crypto.subtle:void 0,EventSource:globalThis.EventSource};function Cn(e){let t=2166136261;const n=e.length;for(let r=0;r>>0}function En(e,t,n){return 2===n?Cn(Cn(e+t)+"")%1e4/1e4:1===n?Cn(t+e)%1e3/1e3:null}function Tn(e,t){return e>=t[0]&&e{r.push([e.searchParams.get(n)||"",t,!1])})),!r.some((e=>!function(e,t,n){try{let r=t.replace(/[*.+?^${}()|[\]\\]/g,"\\$&").replace(/_____/g,".*");return n&&(r="\\/?"+r.replace(/(^\/|\/$)/g,"")+"\\/?"),new RegExp("^"+r+"$","i").test(e)}catch(e){return!1}}(e[0],e[1],e[2])))}catch(e){return!1}}function An(e,t,n){try{const r=new URL(e,"https://_");if("regex"===t){const e=Pn(n);return!!e&&(e.test(r.href)||e.test(r.href.substring(r.origin.length)))}return"simple"===t&&In(r,n)}catch(e){return!1}}function Ln(e,t,n){(t=void 0===t?1:t)<0?t=0:t>1&&(t=1);const r=function(e){return e<=0?[]:new Array(e).fill(1/e)}(e);(n=n||r).length!==e&&(n=r);const i=n.reduce(((e,t)=>t+e),0);(i<.99||i>1.01)&&(n=r);let o=0;return n.map((e=>{const n=o;return o+=e,[n,n+t*e]}))}const Dn=e=>Uint8Array.from(atob(e),(e=>e.charCodeAt(0)));async function Mn(e,t,n){if(t=t||"",!(n=n||globalThis.crypto&&globalThis.crypto.subtle||kn.SubtleCrypto))throw new Error("No SubtleCrypto implementation found");try{const r=await n.importKey("raw",Dn(t),{name:"AES-CBC",length:128},!0,["encrypt","decrypt"]),[i,o]=e.split("."),s=await n.decrypt({name:"AES-CBC",iv:Dn(i)},r,Dn(o));return(new TextDecoder).decode(s)}catch(e){throw new Error("Failed to decrypt")}}function Nn(e){return"string"==typeof e?e:JSON.stringify(e)}function Rn(e){"number"==typeof e&&(e+=""),e&&"string"==typeof e||(e="0");const t=e.replace(/(^v|\+.*$)/g,"").split(/[-.]/);return 3===t.length&&t.push("~"),t.map((e=>e.match(/^[0-9]+$/)?e.padStart(5," "):e)).join("-")}function Fn(e){return"object"==typeof e&&null!==e}function Bn(e){return e.urlPatterns&&e.variations.some((e=>Fn(e)&&"urlRedirect"in e))?"redirect":e.variations.some((e=>Fn(e)&&(e.domMutations||"js"in e||"css"in e)))?"visual":"unknown"}async function qn(e,t){return new Promise((n=>{let r,i=!1;const o=e=>{i||(i=!0,r&&clearTimeout(r),n(e||null))};t&&(r=setTimeout((()=>o()),t)),e.then((e=>o(e))).catch((()=>o()))}))}const zn={staleTTL:6e4,maxAge:144e5,cacheKey:"gbFeaturesCache",backgroundSync:!0,maxEntries:10,disableIdleStreams:!1,idleStreamInterval:2e4,disableCache:!1},Hn=kn,Un={fetchFeaturesCall:e=>{let{host:t,clientKey:n,headers:r}=e;return Hn.fetch("".concat(t,"/api/features/").concat(n),{headers:r})},fetchRemoteEvalCall:e=>{let{host:t,clientKey:n,payload:r,headers:i}=e;const o={method:"POST",headers:{"Content-Type":"application/json",...i},body:JSON.stringify(r)};return Hn.fetch("".concat(t,"/api/eval/").concat(n),o)},eventSourceCall:e=>{let{host:t,clientKey:n,headers:r}=e;return r?new Hn.EventSource("".concat(t,"/sub/").concat(n),{headers:r}):new Hn.EventSource("".concat(t,"/sub/").concat(n))},startIdleListener:()=>{let e;if(!("undefined"!=typeof window&&"undefined"!=typeof document))return;const t=()=>{"visible"===document.visibilityState?(window.clearTimeout(e),Jn.forEach((e=>{e&&"idle"===e.state&&ur(e)}))):"hidden"===document.visibilityState&&(e=window.setTimeout(er,zn.idleStreamInterval))};return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)},stopIdleListener:()=>{}};try{globalThis.localStorage&&(Hn.localStorage=globalThis.localStorage)}catch(Di){}const Vn=new Map;let Wn=!1;const Gn=new Map,Kn=new Map,Jn=new Map,Yn=new Set;function Xn(e){Object.assign(zn,e),zn.backgroundSync||(Yn.clear(),Jn.forEach(dr),Vn.clear(),Un.stopIdleListener())}async function Qn(e){let{instance:t,timeout:n,skipCache:r,allowStale:i,backgroundSync:o}=e;return o||(zn.backgroundSync=!1),async function(e){let{instance:t,allowStale:n,timeout:r,skipCache:i}=e;const o=nr(t),s=rr(t),a=new Date,l=new Date(a.getTime()-zn.maxAge+zn.staleTTL);await async function(){if(Wn)return;Wn=!0;try{if(Hn.localStorage){const e=await Hn.localStorage.getItem(zn.cacheKey);if(!zn.disableCache&&e){const t=JSON.parse(e);t&&Array.isArray(t)&&t.forEach((e=>{let[t,n]=e;Gn.set(t,{...n,staleAt:new Date(n.staleAt)})})),ir()}}}catch(e){}if(!zn.disableIdleStreams){const e=Un.startIdleListener();e&&(Un.stopIdleListener=e)}}();const c=zn.disableCache||i?void 0:Gn.get(s);if(c&&(n||c.staleAt>a)&&c.staleAt>l)return c.sse&&Yn.add(o),c.staleAt{e&&(e.state="idle",cr(e))}))}async function tr(){try{if(!Hn.localStorage)return;await Hn.localStorage.setItem(zn.cacheKey,JSON.stringify(Array.from(Gn.entries())))}catch(e){}}function nr(e){const[t,n]=e.getApiInfo();return"".concat(t,"||").concat(n)}function rr(e){const t=nr(e);if(!e.isRemoteEval())return t;const n=e.getAttributes(),r=e.getCacheKeyAttributes()||Object.keys(e.getAttributes()),i={};r.forEach((e=>{i[e]=n[e]}));const o=e.getForcedVariations(),s=e.getUrl();return"".concat(t,"||").concat(JSON.stringify({ca:i,fv:o,url:s}))}function ir(){const e=Array.from(Gn.entries()).map((e=>{let[t,n]=e;return{key:t,staleAt:n.staleAt.getTime()}})).sort(((e,t)=>e.staleAt-t.staleAt)),t=Math.min(Math.max(0,Gn.size-zn.maxEntries),Gn.size);for(let n=0;nasync function(e,t){await e.setPayload(t||e.getPayload())}(e,n)))}async function sr(e){const{apiHost:t,apiRequestHeaders:n}=e.getApiHosts(),r=e.getClientKey(),i=e.isRemoteEval(),o=nr(e),s=rr(e);let a=Kn.get(s);if(!a){a=(i?Un.fetchRemoteEvalCall({host:t,clientKey:r,payload:{attributes:e.getAttributes(),forcedVariations:e.getForcedVariations(),forcedFeatures:Array.from(e.getForcedFeatures().entries()),url:e.getUrl()},headers:n}):Un.fetchFeaturesCall({host:t,clientKey:r,headers:n})).then((e=>{if(!e.ok)throw new Error("HTTP error: ".concat(e.status));return"enabled"===e.headers.get("x-sse-support")&&Yn.add(o),e.json()})).then((t=>(or(o,s,t),ar(e),Kn.delete(s),{data:t,success:!0,source:"network"}))).catch((e=>(Kn.delete(s),{data:null,source:"error",success:!1,error:e}))),Kn.set(s,a)}return a}function ar(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=nr(e),r=rr(e),{streamingHost:i,streamingHostRequestHeaders:o}=e.getApiHosts(),s=e.getClientKey();if(t&&Yn.add(n),zn.backgroundSync&&Yn.has(n)&&Hn.EventSource){if(Jn.has(n))return;const e={src:null,host:i,clientKey:s,headers:o,cb:t=>{try{if("features-updated"===t.type){const e=Vn.get(n);e&&e.forEach((e=>{sr(e)}))}else if("features"===t.type){const e=JSON.parse(t.data);or(n,r,e)}e.errors=0}catch(t){lr(e)}},errors:0,state:"active"};Jn.set(n,e),ur(e)}}function lr(e){if("idle"!==e.state&&(e.errors++,e.errors>3||e.src&&2===e.src.readyState)){const t=Math.pow(3,e.errors-3)*(1e3+1e3*Math.random());cr(e),setTimeout((()=>{["idle","active"].includes(e.state)||ur(e)}),Math.min(t,3e5))}}function cr(e){e.src&&(e.src.onopen=null,e.src.onerror=null,e.src.close(),e.src=null,"active"===e.state&&(e.state="disabled"))}function ur(e){e.src=Un.eventSourceCall({host:e.host,clientKey:e.clientKey,headers:e.headers}),e.state="active",e.src.addEventListener("features",e.cb),e.src.addEventListener("features-updated",e.cb),e.src.onerror=()=>lr(e),e.src.onopen=()=>{e.errors=0}}function dr(e,t){cr(e),Jn.delete(t)}var pr=/^[a-zA-Z:_][a-zA-Z0-9:_.-]*$/,fr={revert:function(){}},hr=new Map,mr=new Set;function vr(e){var t=hr.get(e);return t||(t={element:e,attributes:{}},hr.set(e,t)),t}function gr(e,t,n,r,i){var o=n(e),s={isDirty:!1,originalValue:o,virtualValue:o,mutations:[],el:e,_positionTimeout:null,observer:new MutationObserver((function(){if("position"!==t||!s._positionTimeout){"position"===t&&(s._positionTimeout=setTimeout((function(){s._positionTimeout=null}),1e3));var r=n(e);"position"===t&&r.parentNode===s.virtualValue.parentNode&&r.insertBeforeNode===s.virtualValue.insertBeforeNode||r!==s.virtualValue&&(s.originalValue=r,i(s))}})),mutationRunner:i,setValue:r,getCurrentValue:n};return"position"===t&&e.parentNode?s.observer.observe(e.parentNode,{childList:!0,subtree:!0,attributes:!1,characterData:!1}):s.observer.observe(e,function(e){return"html"===e?{childList:!0,subtree:!0,attributes:!0,characterData:!0}:{childList:!1,subtree:!1,attributes:!0,attributeFilter:[e]}}(t)),s}function yr(e,t){var n=t.getCurrentValue(t.el);t.virtualValue=e,e&&"string"!=typeof e?n&&e.parentNode===n.parentNode&&e.insertBeforeNode===n.insertBeforeNode||(t.isDirty=!0,Nr()):e!==n&&(t.isDirty=!0,Nr())}function br(e){var t=e.originalValue;e.mutations.forEach((function(e){return t=e.mutate(t)})),yr(function(e){Ir||(Ir=document.createElement("div"));return Ir.innerHTML=e,Ir.innerHTML}(t),e)}function wr(e){var t=new Set(e.originalValue.split(/\s+/).filter(Boolean));e.mutations.forEach((function(e){return e.mutate(t)})),yr(Array.from(t).filter(Boolean).join(" "),e)}function _r(e){var t=e.originalValue;e.mutations.forEach((function(e){return t=e.mutate(t)})),yr(t,e)}function Sr(e){var t=e.originalValue;e.mutations.forEach((function(e){var n=function(e){var t=e.parentSelector,n=e.insertBeforeSelector,r=document.querySelector(t);if(!r)return null;var i=n?document.querySelector(n):null;return n&&!i?null:{parentNode:r,insertBeforeNode:i}}(e.mutate());t=n||t})),yr(t,e)}var xr=function(e){return e.innerHTML},Or=function(e,t){return e.innerHTML=t};function $r(e){var t=vr(e);return t.html||(t.html=gr(e,"html",xr,Or,br)),t.html}var kr=function(e){return{parentNode:e.parentElement,insertBeforeNode:e.nextElementSibling}},Cr=function(e,t){t.insertBeforeNode&&!t.parentNode.contains(t.insertBeforeNode)||t.parentNode.insertBefore(e,t.insertBeforeNode)};function Er(e){var t=vr(e);return t.position||(t.position=gr(e,"position",kr,Cr,Sr)),t.position}var Tr=function(e,t){return t?e.className=t:e.removeAttribute("class")},Pr=function(e){return e.className};function jr(e){var t=vr(e);return t.classes||(t.classes=gr(e,"class",Pr,Tr,wr)),t.classes}var Ir,Ar;function Lr(e,t){var n,r=vr(e);return r.attributes[t]||(r.attributes[t]=gr(e,t,(n=t,function(e){var t;return null!=(t=e.getAttribute(n))?t:null}),function(e){return function(t,n){return null!==n?t.setAttribute(e,n):t.removeAttribute(e)}}(t),_r)),r.attributes[t]}function Dr(e,t,n){if(n.isDirty){n.isDirty=!1;var r=n.virtualValue;n.mutations.length||function(e,t){var n,r,i=hr.get(e);if(i)if("html"===t)null==(n=i.html)||null==(r=n.observer)||r.disconnect(),delete i.html;else if("class"===t){var o,s;null==(o=i.classes)||null==(s=o.observer)||s.disconnect(),delete i.classes}else if("position"===t){var a,l;null==(a=i.position)||null==(l=a.observer)||l.disconnect(),delete i.position}else{var c,u,d;null==(c=i.attributes)||null==(u=c[t])||null==(d=u.observer)||d.disconnect(),delete i.attributes[t]}}(e,t),n.setValue(e,r)}}function Mr(e,t){e.html&&Dr(t,"html",e.html),e.classes&&Dr(t,"class",e.classes),e.position&&Dr(t,"position",e.position),Object.keys(e.attributes).forEach((function(n){Dr(t,n,e.attributes[n])}))}function Nr(){hr.forEach(Mr)}function Rr(e){if("position"!==e.kind||1!==e.elements.size){var t=new Set(e.elements);document.querySelectorAll(e.selector).forEach((function(n){t.has(n)||(e.elements.add(n),function(e,t){var n=null;"html"===e.kind?n=$r(t):"class"===e.kind?n=jr(t):"attribute"===e.kind?n=Lr(t,e.attribute):"position"===e.kind&&(n=Er(t)),n&&(n.mutations.push(e),n.mutationRunner(n))}(e,n))}))}}function Fr(e){e.elements.forEach((function(t){return function(e,t){var n=null;if("html"===e.kind?n=$r(t):"class"===e.kind?n=jr(t):"attribute"===e.kind?n=Lr(t,e.attribute):"position"===e.kind&&(n=Er(t)),n){var r=n.mutations.indexOf(e);-1!==r&&n.mutations.splice(r,1),n.mutationRunner(n)}}(e,t)})),e.elements.clear(),mr.delete(e)}function Br(){mr.forEach(Rr)}function qr(e){return"undefined"==typeof document?fr:(mr.add(e),Rr(e),{revert:function(){Fr(e)}})}function zr(e,t){return qr({kind:"html",elements:new Set,mutate:t,selector:e})}function Hr(e,t){return qr({kind:"position",elements:new Set,mutate:t,selector:e})}function Ur(e,t){return qr({kind:"class",elements:new Set,mutate:t,selector:e})}function Vr(e,t,n){return pr.test(t)?"class"===t||"className"===t?Ur(e,(function(e){var t=n(Array.from(e).join(" "));e.clear(),t&&t.split(/\s+/g).filter(Boolean).forEach((function(t){return e.add(t)}))})):qr({kind:"attribute",attribute:t,elements:new Set,mutate:n,selector:e}):fr}"undefined"!=typeof document&&(Ar||(Ar=new MutationObserver((function(){Br()}))),Br(),Ar.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!1,characterData:!1}));var Wr={html:zr,classes:Ur,attribute:Vr,position:Hr,declarative:function(e){var t=e.selector,n=e.action,r=e.value,i=e.attribute,o=e.parentSelector,s=e.insertBeforeSelector;if("html"===i){if("append"===n)return zr(t,(function(e){return e+(null!=r?r:"")}));if("set"===n)return zr(t,(function(){return null!=r?r:""}))}else if("class"===i){if("append"===n)return Ur(t,(function(e){r&&e.add(r)}));if("remove"===n)return Ur(t,(function(e){r&&e.delete(r)}));if("set"===n)return Ur(t,(function(e){e.clear(),r&&e.add(r)}))}else if("position"===i){if("set"===n&&o)return Hr(t,(function(){return{insertBeforeSelector:s,parentSelector:o}}))}else{if("append"===n)return Vr(t,i,(function(e){return null!==e?e+(null!=r?r:""):null!=r?r:""}));if("set"===n)return Vr(t,i,(function(){return null!=r?r:""}));if("remove"===n)return Vr(t,i,(function(){return null}))}return fr}};const Gr={};function Kr(e,t,n){n=n||{};for(const[r,i]of Object.entries(t))switch(r){case"$or":if(!ei(e,i,n))return!1;break;case"$nor":if(ei(e,i,n))return!1;break;case"$and":if(!ti(e,i,n))return!1;break;case"$not":if(Kr(e,i,n))return!1;break;default:if(!Yr(i,Jr(e,r),n))return!1}return!0}function Jr(e,t){const n=t.split(".");let r=e;for(let e=0;e0&&t.filter((e=>"$"===e[0])).length===t.length}function Qr(e,t){return Array.isArray(e)?e.some((e=>t.includes(e))):t.includes(e)}function Zr(e,t,n,r){switch(e){case"$veq":return Rn(t)===Rn(n);case"$vne":return Rn(t)!==Rn(n);case"$vgt":return Rn(t)>Rn(n);case"$vgte":return Rn(t)>=Rn(n);case"$vlt":return Rn(t)n;case"$gte":return t>=n;case"$exists":return n?null!=t:null==t;case"$in":return!!Array.isArray(n)&&Qr(t,n);case"$inGroup":return Qr(t,r[n]||[]);case"$notInGroup":return!Qr(t,r[n]||[]);case"$nin":return!!Array.isArray(n)&&!Qr(t,n);case"$not":return!Yr(n,t,r);case"$size":return!!Array.isArray(t)&&Yr(n,t.length,r);case"$elemMatch":return function(e,t,n){if(!Array.isArray(e))return!1;const r=Xr(t)?e=>Yr(t,e,n):e=>Kr(e,t,n);for(let t=0;t{}))}this.ready&&this.refreshStickyBuckets(this.getPayload())}async setPayload(e){this._payload=e;const t=await this.decryptPayload(e);this._decryptedPayload=t,await this.refreshStickyBuckets(t),t.features&&(this._ctx.features=t.features),t.savedGroups&&(this._ctx.savedGroups=t.savedGroups),t.experiments&&(this._ctx.experiments=t.experiments,this._updateAllAutoExperiments()),this.ready=!0,this._render()}initSync(e){this._initialized=!0;const t=e.payload;if(t.encryptedExperiments||t.encryptedFeatures)throw new Error("initSync does not support encrypted payloads");if(this._ctx.stickyBucketService&&!this._ctx.stickyBucketAssignmentDocs)throw new Error("initSync requires you to pass stickyBucketAssignmentDocs into the GrowthBook constructor");if(this._payload=t,this._decryptedPayload=t,t.features&&(this._ctx.features=t.features),t.experiments&&(this._ctx.experiments=t.experiments,this._updateAllAutoExperiments()),this.ready=!0,e.streaming){if(!this._ctx.clientKey)throw new Error("Must specify clientKey to enable streaming");ar(this,!0),Zn(this)}return this}async init(e){if(this._initialized=!0,(e=e||{}).cacheSettings&&Xn(e.cacheSettings),e.payload){if(await this.setPayload(e.payload),e.streaming){if(!this._ctx.clientKey)throw new Error("Must specify clientKey to enable streaming");ar(this,!0),Zn(this)}return{success:!0,source:"init"}}{const{data:t,...n}=await this._refresh({...e,allowStale:!0});return e.streaming&&Zn(this),await this.setPayload(t||{}),n}}async loadFeatures(e){this._initialized=!0,(e=e||{}).autoRefresh&&(this._ctx.subscribeToChanges=!0);const{data:t}=await this._refresh({...e,allowStale:!0});await this.setPayload(t||{}),this._canSubscribe()&&Zn(this)}async refreshFeatures(e){const t=await this._refresh({...e||{},allowStale:!1});t.data&&await this.setPayload(t.data)}getApiInfo(){return[this.getApiHosts().apiHost,this.getClientKey()]}getApiHosts(){const e=this._ctx.apiHost||"https://cdn.growthbook.io";return{apiHost:e.replace(/\/*$/,""),streamingHost:(this._ctx.streamingHost||e).replace(/\/*$/,""),apiRequestHeaders:this._ctx.apiHostRequestHeaders,streamingHostRequestHeaders:this._ctx.streamingHostRequestHeaders}}getClientKey(){return this._ctx.clientKey||""}getPayload(){return this._payload||{features:this.getFeatures(),experiments:this.getExperiments()}}getDecryptedPayload(){return this._decryptedPayload||this.getPayload()}isRemoteEval(){return this._ctx.remoteEval||!1}getCacheKeyAttributes(){return this._ctx.cacheKeyAttributes}async _refresh(e){var t;let{timeout:n,skipCache:r,allowStale:i,streaming:o}=e;if(!this._ctx.clientKey)throw new Error("Missing clientKey");return Qn({instance:this,timeout:n,skipCache:r||this._ctx.disableCache,allowStale:i,backgroundSync:null===(t=null!=o?o:this._ctx.backgroundSync)||void 0===t||t})}_render(){if(this._renderer)try{this._renderer()}catch(e){console.error("Failed to render",e)}}setFeatures(e){this._ctx.features=e,this.ready=!0,this._render()}async setEncryptedFeatures(e,t,n){const r=await Mn(e,t||this._ctx.decryptionKey,n);this.setFeatures(JSON.parse(r))}setExperiments(e){this._ctx.experiments=e,this.ready=!0,this._updateAllAutoExperiments()}async setEncryptedExperiments(e,t,n){const r=await Mn(e,t||this._ctx.decryptionKey,n);this.setExperiments(JSON.parse(r))}async decryptPayload(e,t,n){if((e={...e}).encryptedFeatures){try{e.features=JSON.parse(await Mn(e.encryptedFeatures,t||this._ctx.decryptionKey,n))}catch(e){console.error(e)}delete e.encryptedFeatures}if(e.encryptedExperiments){try{e.experiments=JSON.parse(await Mn(e.encryptedExperiments,t||this._ctx.decryptionKey,n))}catch(e){console.error(e)}delete e.encryptedExperiments}if(e.encryptedSavedGroups){try{e.savedGroups=JSON.parse(await Mn(e.encryptedSavedGroups,t||this._ctx.decryptionKey,n))}catch(e){console.error(e)}delete e.encryptedSavedGroups}return e}async setAttributes(e){this._ctx.attributes=e,this._ctx.stickyBucketService&&await this.refreshStickyBuckets(),this._ctx.remoteEval?await this._refreshForRemoteEval():(this._render(),this._updateAllAutoExperiments())}async updateAttributes(e){return this.setAttributes({...this._ctx.attributes,...e})}async setAttributeOverrides(e){this._attributeOverrides=e,this._ctx.stickyBucketService&&await this.refreshStickyBuckets(),this._ctx.remoteEval?await this._refreshForRemoteEval():(this._render(),this._updateAllAutoExperiments())}async setForcedVariations(e){this._ctx.forcedVariations=e||{},this._ctx.remoteEval?await this._refreshForRemoteEval():(this._render(),this._updateAllAutoExperiments())}setForcedFeatures(e){this._forcedFeatureValues=e,this._render()}async setURL(e){if(e!==this._ctx.url){if(this._ctx.url=e,this._redirectedUrl="",this._ctx.remoteEval)return await this._refreshForRemoteEval(),void this._updateAllAutoExperiments(!0);this._updateAllAutoExperiments(!0)}}getAttributes(){return{...this._ctx.attributes,...this._attributeOverrides}}getForcedVariations(){return this._ctx.forcedVariations||{}}getForcedFeatures(){return this._forcedFeatureValues||new Map}getStickyBucketAssignmentDocs(){return this._ctx.stickyBucketAssignmentDocs||{}}getUrl(){return this._ctx.url||""}getFeatures(){return this._ctx.features||{}}getExperiments(){return this._ctx.experiments||[]}getCompletedChangeIds(){return Array.from(this._completedChangeIds)}subscribe(e){return this._subscriptions.add(e),()=>{this._subscriptions.delete(e)}}_canSubscribe(){var e;return(null===(e=this._ctx.backgroundSync)||void 0===e||e)&&this._ctx.subscribeToChanges}async _refreshForRemoteEval(){if(!this._ctx.remoteEval)return;if(!this._initialized)return;const e=await this._refresh({allowStale:!1});e.data&&await this.setPayload(e.data)}getAllResults(){return new Map(this._assigned)}destroy(){var e;this._subscriptions.clear(),this._assigned.clear(),this._trackedExperiments.clear(),this._completedChangeIds.clear(),this._deferredTrackingCalls.clear(),this._trackedFeatures={},this._rtQueue=[],this._payload=void 0,this._rtTimer&&clearTimeout(this._rtTimer),e=this,Vn.forEach((t=>t.delete(e))),ni&&window._growthbook===this&&delete window._growthbook,this._activeAutoExperiments.forEach((e=>{e.undo()})),this._activeAutoExperiments.clear(),this._triggeredExpKeys.clear()}setRenderer(e){this._renderer=e}forceVariation(e,t){this._ctx.forcedVariations=this._ctx.forcedVariations||{},this._ctx.forcedVariations[e]=t,this._ctx.remoteEval?this._refreshForRemoteEval():(this._updateAllAutoExperiments(),this._render())}run(e){const{result:t}=this._run(e,null);return this._fireSubscriptions(e,t),t}triggerExperiment(e){if(this._triggeredExpKeys.add(e),!this._ctx.experiments)return null;return this._ctx.experiments.filter((t=>t.key===e)).map((e=>this._runAutoExperiment(e))).filter((e=>null!==e))}triggerAutoExperiments(){this._autoExperimentsAllowed=!0,this._updateAllAutoExperiments(!0)}_runAutoExperiment(e,t){const n=this._activeAutoExperiments.get(e);if(e.manual&&!this._triggeredExpKeys.has(e.key)&&!n)return null;let r,i;this._isAutoExperimentBlockedByContext(e)?r=this._getResult(e,-1,!1,""):(({result:r,trackingCall:i}=this._run(e,null)),this._fireSubscriptions(e,r));const o=JSON.stringify(r.value);if(!t&&r.inExperiment&&n&&n.valueHash===o)return r;if(n&&this._undoActiveAutoExperiment(e),r.inExperiment){const t=Bn(e);if("redirect"===t&&r.value.urlRedirect&&e.urlPatterns){const t=e.persistQueryString?function(e,t){let n,r;try{n=new URL(e),r=new URL(t)}catch(e){return console.error("Unable to merge query strings: ".concat(e)),t}return n.searchParams.forEach(((e,t)=>{r.searchParams.has(t)||r.searchParams.set(t,e)})),r.toString()}(this._getContextUrl(),r.value.urlRedirect):r.value.urlRedirect;if(jn(t,e.urlPatterns))return this.log("Skipping redirect because original URL matches redirect URL",{id:e.key}),r;this._redirectedUrl=t;const{navigate:n,delay:o}=this._getNavigateFunction();var s;if(n)if(ni)Promise.all([...i?[qn(i,null!==(s=this._ctx.maxNavigateDelay)&&void 0!==s?s:1e3)]:[],new Promise((e=>{var t;return window.setTimeout(e,null!==(t=this._ctx.navigateDelay)&&void 0!==t?t:o)}))]).then((()=>{try{n(t)}catch(e){console.error(e)}}));else try{n(t)}catch(e){console.error(e)}}else if("visual"===t){const t=this._ctx.applyDomChangesCallback?this._ctx.applyDomChangesCallback(r.value):this._applyDOMChanges(r.value);t&&this._activeAutoExperiments.set(e,{undo:t,valueHash:o})}}return r}_undoActiveAutoExperiment(e){const t=this._activeAutoExperiments.get(e);t&&(t.undo(),this._activeAutoExperiments.delete(e))}_updateAllAutoExperiments(e){if(!this._autoExperimentsAllowed)return;const t=this._ctx.experiments||[],n=new Set(t);this._activeAutoExperiments.forEach(((e,t)=>{n.has(t)||(e.undo(),this._activeAutoExperiments.delete(t))}));for(const n of t){const t=this._runAutoExperiment(n,e);if(null!=t&&t.inExperiment&&"redirect"===Bn(n))break}}_fireSubscriptions(e,t){const n=e.key,r=this._assigned.get(n);r&&r.result.inExperiment===t.inExperiment&&r.result.variationId===t.variationId||(this._assigned.set(n,{experiment:e,result:t}),this._subscriptions.forEach((n=>{try{n(e,t)}catch(e){console.error(e)}})))}_trackFeatureUsage(e,t){if("override"===t.source)return;const n=JSON.stringify(t.value);if(this._trackedFeatures[e]!==n){if(this._trackedFeatures[e]=n,this._ctx.onFeatureUsage)try{this._ctx.onFeatureUsage(e,t)}catch(e){}ni&&window.fetch&&(this._rtQueue.push({key:e,on:t.on}),this._rtTimer||(this._rtTimer=window.setTimeout((()=>{this._rtTimer=0;const e=[...this._rtQueue];this._rtQueue=[],this._ctx.realtimeKey&&window.fetch("https://rt.growthbook.io/?key=".concat(this._ctx.realtimeKey,"&events=").concat(encodeURIComponent(JSON.stringify(e))),{cache:"no-cache",mode:"no-cors"}).catch((()=>{}))}),this._ctx.realtimeInterval||2e3)))}}_getFeatureResult(e,t,n,r,i,o){const s={value:t,on:!!t,off:!t,source:n,ruleId:r||""};return i&&(s.experiment=i),o&&(s.experimentResult=o),this._trackFeatureUsage(e,s),s}isOn(e){return this.evalFeature(e).on}isOff(e){return this.evalFeature(e).off}getFeatureValue(e,t){const n=this.evalFeature(e).value;return null===n?t:n}feature(e){return this.evalFeature(e)}evalFeature(e){return this._evalFeature(e)}_evalFeature(e,t){if((t=t||{evaluatedFeatures:new Set}).evaluatedFeatures.has(e))return this._getFeatureResult(e,null,"cyclicPrerequisite");if(t.evaluatedFeatures.add(e),t.id=e,this._forcedFeatureValues.has(e))return this._getFeatureResult(e,this._forcedFeatureValues.get(e),"override");if(!this._ctx.features||!this._ctx.features[e])return this._getFeatureResult(e,null,"unknownFeature");const n=this._ctx.features[e];if(n.rules)e:for(const r of n.rules){if(r.parentConditions)for(const n of r.parentConditions){const r=this._evalFeature(n.id,t);if("cyclicPrerequisite"===r.source)return this._getFeatureResult(e,null,"cyclicPrerequisite");if(!Kr({value:r.value},n.condition||{})){if(n.gate)return this._getFeatureResult(e,null,"prerequisite");continue e}}if(r.filters&&this._isFilteredOut(r.filters))continue;if("force"in r){if(r.condition&&!this._conditionPasses(r.condition))continue;if(!this._isIncludedInRollout(r.seed||e,r.hashAttribute,this._ctx.stickyBucketService&&!r.disableStickyBucketing?r.fallbackAttribute:void 0,r.range,r.coverage,r.hashVersion))continue;return r.tracks&&r.tracks.forEach((e=>{this._track(e.experiment,e.result)})),this._getFeatureResult(e,r.force,"force",r.id)}if(!r.variations)continue;const n={variations:r.variations,key:r.key||e};"coverage"in r&&(n.coverage=r.coverage),r.weights&&(n.weights=r.weights),r.hashAttribute&&(n.hashAttribute=r.hashAttribute),r.fallbackAttribute&&(n.fallbackAttribute=r.fallbackAttribute),r.disableStickyBucketing&&(n.disableStickyBucketing=r.disableStickyBucketing),void 0!==r.bucketVersion&&(n.bucketVersion=r.bucketVersion),void 0!==r.minBucketVersion&&(n.minBucketVersion=r.minBucketVersion),r.namespace&&(n.namespace=r.namespace),r.meta&&(n.meta=r.meta),r.ranges&&(n.ranges=r.ranges),r.name&&(n.name=r.name),r.phase&&(n.phase=r.phase),r.seed&&(n.seed=r.seed),r.hashVersion&&(n.hashVersion=r.hashVersion),r.filters&&(n.filters=r.filters),r.condition&&(n.condition=r.condition);const{result:i}=this._run(n,e);if(this._fireSubscriptions(n,i),i.inExperiment&&!i.passthrough)return this._getFeatureResult(e,i.value,"experiment",r.id,n,i)}return this._getFeatureResult(e,void 0===n.defaultValue?null:n.defaultValue,"defaultValue")}_isIncludedInRollout(e,t,n,r,i,o){if(!r&&void 0===i)return!0;if(!r&&0===i)return!1;const{hashValue:s}=this._getHashAttribute(t,n);if(!s)return!1;const a=En(e,s,o||1);return null!==a&&(r?Tn(a,r):void 0===i||a<=i)}_conditionPasses(e){return Kr(this.getAttributes(),e,this._ctx.savedGroups||{})}_isFilteredOut(e){return e.some((e=>{const{hashValue:t}=this._getHashAttribute(e.attribute);if(!t)return!0;const n=En(e.seed,t,e.hashVersion||2);return null===n||!e.ranges.some((e=>Tn(n,e)))}))}_run(e,t){const n=e.key,r=e.variations.length;if(r<2)return{result:this._getResult(e,-1,!1,t)};if(!1===this._ctx.enabled)return{result:this._getResult(e,-1,!1,t)};if((e=this._mergeOverrides(e)).urlPatterns&&!jn(this._getContextUrl(),e.urlPatterns))return{result:this._getResult(e,-1,!1,t)};const i=function(e,t,n){if(!t)return null;const r=t.split("?")[1];if(!r)return null;const i=r.replace(/#.*/,"").split("&").map((e=>e.split("=",2))).filter((t=>{let[n]=t;return n===e})).map((e=>{let[,t]=e;return parseInt(t)}));return i.length>0&&i[0]>=0&&i[0]=0,a=t,c=!!n}if(!l){if(e.filters){if(this._isFilteredOut(e.filters))return{result:this._getResult(e,-1,!1,t)}}else if(e.namespace&&!function(e,t){const n=En("__"+t[0],e,1);return null!==n&&n>=t[1]&&ne&&e.experiment&&e.result)).map((e=>[this._getTrackKey(e.experiment,e.result),e])))}async fireDeferredTrackingCalls(){if(!this._ctx.trackingCallback)return;const e=[];this._deferredTrackingCalls.forEach((t=>{t&&t.experiment&&t.result?e.push(this._track(t.experiment,t.result)):console.error("Invalid deferred tracking call",{call:t})})),this._deferredTrackingCalls.clear(),await Promise.all(e)}setTrackingCallback(e){this._ctx.trackingCallback=e,this.fireDeferredTrackingCalls()}_getTrackKey(e,t){return t.hashAttribute+t.hashValue+e.key+t.variationId}async _track(e,t){const n=this._getTrackKey(e,t);if(this._ctx.trackingCallback){if(!this._trackedExperiments.has(n)){this._trackedExperiments.add(n);try{await this._ctx.trackingCallback(e,t)}catch(e){console.error(e)}}}else this._deferredTrackingCalls.has(n)||this._deferredTrackingCalls.set(n,{experiment:e,result:t})}_mergeOverrides(e){const t=e.key,n=this._ctx.overrides;return n&&n[t]&&"string"==typeof(e=Object.assign({},e,n[t])).url&&(e.url=Pn(e.url)),e}_getHashAttribute(e,t){let n=e||"id",r="";return this._attributeOverrides[n]?r=this._attributeOverrides[n]:this._ctx.attributes?r=this._ctx.attributes[n]||"":this._ctx.user&&(r=this._ctx.user[n]||""),!r&&t&&(this._attributeOverrides[t]?r=this._attributeOverrides[t]:this._ctx.attributes?r=this._ctx.attributes[t]||"":this._ctx.user&&(r=this._ctx.user[t]||""),r&&(n=t)),{hashAttribute:n,hashValue:r}}_getResult(e,t,n,r,i,o){let s=!0;(t<0||t>=e.variations.length)&&(t=0,s=!1);const{hashAttribute:a,hashValue:l}=this._getHashAttribute(e.hashAttribute,this._ctx.stickyBucketService&&!e.disableStickyBucketing?e.fallbackAttribute:void 0),c=e.meta?e.meta[t]:{},u={key:c.key||""+t,featureId:r,inExperiment:s,hashUsed:n,variationId:t,value:e.variations[t],hashAttribute:a,hashValue:l,stickyBucketUsed:!!o};return c.name&&(u.name=c.name),void 0!==i&&(u.bucket=i),c.passthrough&&(u.passthrough=c.passthrough),u}_getContextUrl(){return this._ctx.url||(ni?window.location.href:"")}_urlIsValid(e){const t=this._getContextUrl();if(!t)return!1;const n=t.replace(/^https?:\/\//,"").replace(/^[^/]*\//,"/");return!!e.test(t)||!!e.test(n)}_hasGroupOverlap(e){const t=this._ctx.groups||{};for(let n=0;ne.js)))return!0}else{if("redirect"!==t)return!0;if(this._ctx.disableUrlRedirectExperiments)return!0;try{const t=new URL(this._getContextUrl());for(const n of e.variations){if(!n||!n.urlRedirect)continue;const e=new URL(n.urlRedirect);if(this._ctx.disableCrossOriginUrlRedirectExperiments){if(e.protocol!==t.protocol)return!0;if(e.host!==t.host)return!0}}}catch(t){return this.log("Error parsing current or redirect URL",{id:e.key,error:t}),!0}}return!(!e.changeId||!(this._ctx.blockedChangeIds||[]).includes(e.changeId))}getRedirectUrl(){return this._redirectedUrl}_getNavigateFunction(){return this._ctx.navigate?{navigate:this._ctx.navigate,delay:0}:ni?{navigate:e=>{window.location.replace(e)},delay:100}:{navigate:null,delay:0}}_applyDOMChanges(e){if(!ni)return;const t=[];if(e.css){const n=document.createElement("style");n.innerHTML=e.css,document.head.appendChild(n),t.push((()=>n.remove()))}if(e.js){const n=document.createElement("script");n.innerHTML=e.js,this._ctx.jsInjectionNonce&&(n.nonce=this._ctx.jsInjectionNonce),document.head.appendChild(n),t.push((()=>n.remove()))}return e.domMutations&&e.domMutations.forEach((e=>{t.push(Wr.declarative(e).revert)})),()=>{t.forEach((e=>e()))}}_deriveStickyBucketIdentifierAttributes(e){const t=new Set,n=e&&e.features?e.features:this.getFeatures(),r=e&&e.experiments?e.experiments:this.getExperiments();return Object.keys(n).forEach((e=>{const r=n[e];if(r.rules)for(const e of r.rules)e.variations&&(t.add(e.hashAttribute||"id"),e.fallbackAttribute&&t.add(e.fallbackAttribute))})),r.map((e=>{t.add(e.hashAttribute||"id"),e.fallbackAttribute&&t.add(e.fallbackAttribute)})),Array.from(t)}async refreshStickyBuckets(e){if(this._ctx.stickyBucketService){const t=this._getStickyBucketAttributes(e);this._ctx.stickyBucketAssignmentDocs=await this._ctx.stickyBucketService.getAllAssignments(t)}}_getStickyBucketAssignments(e,t){if(!this._ctx.stickyBucketAssignmentDocs)return{};const{hashAttribute:n,hashValue:r}=this._getHashAttribute(e),i="".concat(n,"||").concat(Nn(r)),{hashAttribute:o,hashValue:s}=this._getHashAttribute(t),a=s?"".concat(o,"||").concat(Nn(s)):null,l={};return a&&this._ctx.stickyBucketAssignmentDocs[a]&&Object.assign(l,this._ctx.stickyBucketAssignmentDocs[a].assignments||{}),this._ctx.stickyBucketAssignmentDocs[i]&&Object.assign(l,this._ctx.stickyBucketAssignmentDocs[i].assignments||{}),l}_getStickyBucketVariation(e){let{expKey:t,expBucketVersion:n,expHashAttribute:r,expFallbackAttribute:i,expMinBucketVersion:o,expMeta:s}=e;n=n||0,o=o||0,r=r||"id",s=s||[];const a=this._getStickyBucketExperimentKey(t,n),l=this._getStickyBucketAssignments(r,i);if(o>0)for(let e=0;e<=o;e++){if(void 0!==l[this._getStickyBucketExperimentKey(t,e)])return{variation:-1,versionIsBlocked:!0}}const c=l[a];if(void 0===c)return{variation:-1};const u=s.findIndex((e=>e.key===c));return u<0?{variation:-1}:{variation:u}}_getStickyBucketExperimentKey(e,t){return t=t||0,"".concat(e,"__").concat(t)}_getStickyBucketAttributes(e){const t={};return this._ctx.stickyBucketIdentifierAttributes=this._deriveStickyBucketIdentifierAttributes(e),this._ctx.stickyBucketIdentifierAttributes.forEach((e=>{const{hashValue:n}=this._getHashAttribute(e);t[e]=Nn(n)})),t}_generateStickyBucketAssignmentDoc(e,t,n){const r="".concat(e,"||").concat(t),i=this._ctx.stickyBucketAssignmentDocs&&this._ctx.stickyBucketAssignmentDocs[r]&&this._ctx.stickyBucketAssignmentDocs[r].assignments||{},o={...i,...n};return{key:r,doc:{attributeName:e,attributeValue:t,assignments:o},changed:JSON.stringify(i)!==JSON.stringify(o)}}}({apiHost:"https://cdn.growthbook.io",clientKey:window.growthbook_sdk_key,decryptionKey:window.growthbook_decrypt_key,enableDevMode:window.growthbook_dev_mode});function oi(e){const t=window.location.search.substring(1).split("&");let n=null;return t.forEach((t=>{const r=t.split("=");r[0]===e&&(n=decodeURIComponent(r[1].replace(/\+/g,"%20")))})),n}function si(){return document.cookie.split(";").reduce(((e,t)=>{const n=t.indexOf("="),r=t.substring(0,n).trim(),i=t.substring(n+1).trim();return e[r]=i,e}),{})}ii.init({streaming:!0}),window.analytics.ready((function(){ii.setTrackingCallback(((e,t)=>{window.analytics.track("Experiment Viewed",{experimentId:e.key,variationId:t.key})})),ii.setAttributes(Object.assign(Object.assign({},ii.getAttributes()),{id:window.analytics.user().anonymousId(),userId:window.analytics.user().id()}))}));const ai=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.showSidebar=!1}componentWillLoad(){this.showSidebar=ii.isOn("copilot-on-docs"),ii.setRenderer((()=>this.showSidebar=ii.isOn("copilot-on-docs")))}render(){return!0===this.showSidebar?Xe(Ze,null,Xe("aside",{id:"ai-sidebar-target"}),Xe("iframe",{id:"ai-sidebar-host",src:this.copilotSrc})):Xe(Ze,null)}static get style(){return":host{display:block}"}},li=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.redirectUrl="/pulumi-up/thank-you/",this.isModalOpen=!1,this.displayingContent="session-select",this.selectedSessions=[],this.skippedSessionSelection=!1,this.processingFormSubmissions=!1,this.formProcessor=void 0,this.error=void 0,this.submittedFormValues={},this.onMessage=e=>{var t;if("hsFormCallback"!==(null===(t=e.data)||void 0===t?void 0:t.type)||!this.isModalOpen)return;const n=e.data.eventName;if("onFormReady"===n&&this.processingFormSubmissions&&this.handleFormSubmissions(),"onFormSubmit"===n){const e=this.el.querySelectorAll("form input"),t={};e.forEach((e=>{"checkbox"!==e.type&&(t[e.name]=e.value)})),this.submittedFormValues=t,setTimeout((()=>{this.selectedSessions=[...this.selectedSessions.slice(1)],this.processingFormSubmissions=!0,0===this.selectedSessions.length&&(window.location.href=this.redirectUrl)}),500)}},this.handleButtonClick=e=>{e.preventDefault(),this.isModalOpen=!0,document.querySelector("body").className+=" disable-scroll"},this.handleCloseModal=e=>{e.preventDefault(),this.isModalOpen=!1,this.skippedSessionSelection||(this.displayingContent="session-select",this.selectedSessions=[]),document.querySelector("body").className=document.querySelector("body").className.replace("disable-scroll","")},this.handleSessionSelection=e=>{const t=this.selectedSessions.indexOf(e);-1===t?this.selectedSessions.push(e):this.selectedSessions.splice(t,1)},this.handleGotToSessionSelect=e=>{e.preventDefault(),this.displayingContent="session-select"}}handleEventSessionInfo(e){this.parsedEventSessions=JSON.parse(e)}handleSkipSessionSelection(e){1===e.length&&(this.selectedSessions.push(e[0].hubspot_form_id),this.displayingContent="form",this.skippedSessionSelection=!0)}componentWillLoad(){this.handleEventSessionInfo(this.eventSessions),this.handleSkipSessionSelection(this.parsedEventSessions)}componentDidLoad(){window.addEventListener("message",this.onMessage)}disconnectedCallback(){window.removeEventListener("message",this.onMessage)}handleGoToForm(e,t){e.preventDefault(),0!==this.selectedSessions.length?(this.displayingContent=t,this.error=void 0):this.error="You must select at least one of the above options."}handleFormSubmissions(){if(0===this.selectedSessions.length)return void(window.location.href=this.redirectUrl);this.el.querySelectorAll("form input[type='checkbox']")[1].click(),setTimeout((()=>{const e=Object.keys(this.submittedFormValues);if(e.length>0)for(let t=0;t{this.el.querySelector("form input[type='submit']").click()}),500)}renderSessionSelectionItem(e){const t=this.selectedSessions.indexOf(e.hubspot_form_id)>-1;return Xe("li",null,Xe("label",{class:"session-selection-item"},Xe("div",{class:"checkbox-container"},Xe("input",{type:"checkbox",id:e.title,name:e.title,onChange:()=>this.handleSessionSelection(e.hubspot_form_id),checked:t}),Xe("span",{class:"checkmark"})),Xe("div",{class:"checkbox-label"},Xe("h6",null,e.title),Xe("p",null,e.description))))}renderSessionSelectContent(){return[Xe("div",{class:"session-select-container"},Xe("p",null,"Please select all the options you'd like to register for:"),Xe("ul",{class:"session-select-list"},this.parsedEventSessions.map((e=>this.renderSessionSelectionItem(e))))),Xe("div",{class:"next-button-container"},Xe("a",{href:"#",class:`${this.buttonClass} modal-button`,onClick:e=>this.handleGoToForm(e,"form")},"Next"),this.error?Xe("p",{class:"error-message"},this.error):null)]}renderForm(e){return this.processingFormSubmissions?Xe("div",null,Xe("h4",null,Xe("i",{class:"fas fa-spinner fa-spin"})),Xe("div",{class:"invisible",ref:e=>this.formProcessor=e},Xe("pulumi-hubspot-form",{key:e,formId:e}))):Xe("div",{class:"registration-form-container"},this.skippedSessionSelection?null:Xe("a",{href:"#",onClick:this.handleGotToSessionSelect},"← Go back to select sessions."),Xe("div",{class:"registration-form"},Xe("pulumi-hubspot-form",{formId:this.selectedSessions[0]})))}renderContent(){switch(console.log("rendering content"),this.displayingContent){case"session-select":return this.renderSessionSelectContent();case"form":return console.log("rendering form"),this.renderForm(this.selectedSessions[0])}}renderModal(){return Xe("div",{class:"event-session-modal-container"},Xe("div",{class:"modal-container"},Xe("div",{class:"modal"},Xe("div",{class:"title-container"},Xe("div",{class:"title-text"},Xe("h4",null,this.modalTitle)),Xe("div",{class:"close-icon"},Xe("i",{class:"fa fa-times",onClick:this.handleCloseModal}))),this.renderContent())))}render(){return Xe(Ze,null,Xe("div",null,Xe("div",null,Xe("a",{class:this.buttonClass,href:"#",onClick:this.handleButtonClick},this.buttonText)),this.isModalOpen?this.renderModal():null))}get el(){return this}static get watchers(){return{eventSessions:["handleEventSessionInfo"]}}static get style(){return':host{display:block}.event-session-modal-container{position:fixed;width:100%;height:100%;background-color:black;z-index:9999;top:0;left:0}.event-session-modal-container .hidden{display:none}.event-session-modal-container .modal-container{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.event-session-modal-container .modal-container h2,.event-session-modal-container .modal-container h3,.event-session-modal-container .modal-container h4,.event-session-modal-container .modal-container h5,.event-session-modal-container .modal-container h6,.event-session-modal-container .modal-container p{color:black}.event-session-modal-container .modal-container .modal{height:85%;width:85%;background-color:white;border-radius:5px;padding:1.5rem;overflow-y:scroll}.event-session-modal-container .modal-container .modal .title-container{display:flex;border-bottom:1px solid black}.event-session-modal-container .modal-container .modal .title-container .title-text{width:75%;text-align:left}.event-session-modal-container .modal-container .modal .title-container .title-text h2{color:black}.event-session-modal-container .modal-container .modal .title-container .close-icon{width:25%;text-align:right}.event-session-modal-container .modal-container .modal .title-container .close-icon i{cursor:pointer;font-size:1.5rem}.event-session-modal-container .modal-container .modal .session-select-container{text-align:left}.event-session-modal-container .modal-container .modal .session-select-container p{font-size:1.25rem;margin-top:2rem}.event-session-modal-container .modal-container .modal .session-select-list{list-style:none;text-align:left;display:flex;flex-wrap:wrap;align-items:stretch}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container{width:10%;position:relative;cursor:pointer}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container input{position:absolute;opacity:0;height:0;width:0}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container .checkmark{position:absolute;height:25px;width:25px;border:2px solid #805ac3;border-radius:5px;background-color:white}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container .checkmark:after{content:"";position:absolute;display:none;left:8px;top:5px;width:5px;height:10px;border:solid white;border-width:0 3px 3px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container input:checked~.checkmark{background-color:#805ac3}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container input:checked~.checkmark:after{display:block}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-label{width:90%}.event-session-modal-container .modal-container .modal .session-select-list li{width:50%;padding:0.75rem}@media (max-width: 1024px){.event-session-modal-container .modal-container .modal .session-select-list li{width:100%}}.event-session-modal-container .modal-container .modal .session-select-list .session-selection-item{height:100%;display:flex;justify-items:center;align-items:start;cursor:pointer;border:1px solid black;border-radius:5px;padding:1rem;border-radius:5px}.event-session-modal-container .modal-container .modal .session-select-list .session-selection-item:hover{background-color:#f9f9fa}.event-session-modal-container .modal-container .modal .session-select-list .session-selection-item p{font-size:1rem;margin-top:0.5rem}@media (max-width: 1024px){.event-session-modal-container .modal-container .modal .session-select-list .session-selection-item h6{padding-left:1rem}}.event-session-modal-container .modal-container .modal .next-button-container{text-align:right}.event-session-modal-container .modal-container .modal .next-button-container .modal-button{display:inline-block}.event-session-modal-container .modal-container .modal .next-button-container .modal-button:hover{background-color:#4d3675}.event-session-modal-container .modal-container .modal .next-button-container .error-message{color:red}.event-session-modal-container .modal-container .modal .registration-form-container{text-align:left;padding-top:0.5rem}.event-session-modal-container .modal-container .modal .registration-form-container a{color:black}.event-session-modal-container .modal-container .modal .registration-form-container a:hover{text-decoration:underline}.event-session-modal-container .modal-container .modal .registration-form{max-width:36rem;margin:0 auto;text-align:left}.event-session-modal-container .modal-container .modal .registration-form form{padding:0.25rem}.event-session-modal-container .modal-container .modal .registration-form a{color:black;text-decoration:underline}.event-session-modal-container .modal-container .modal .registration-form a:hover{font-weight:bold}'}},ci=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.buttonClass="",this.loading=!0,this.isLoggedIn=!1}componentWillRender(){var e;try{const t=null!==(e=si().pulumi_web_user_info)&&void 0!==e?e:"j:{}",n=JSON.parse(decodeURIComponent(t).slice(2));n&&n.userId&&""!==n.userId&&(this.isLoggedIn=!0)}catch(e){}this.loading=!1}render(){if(!this.loading)return this.isLoggedIn?Xe("a",{class:this.buttonClass,"data-track":"header-signup",href:"https://app.pulumi.com/signup?utm_source=header-button",target:"_blank",rel:"noopener noreferrer",title:"Dashboard"},"Dashboard"):Xe("a",{class:this.buttonClass,"data-track":"header-signup",href:"https://app.pulumi.com/signup?utm_source=header-button",title:"Sign up"},"Sign up")}static get style(){return":host{display:block}"}},ui=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.leftItems="",this.centerItems="",this.rightItems="",this.imageClass="",this.columnOne=[],this.columnTwo=[],this.columnThree=[]}componentDidLoad(){this.columnOne=this.shuffleArray(this.leftItems.split(",")),this.columnTwo=this.shuffleArray(this.centerItems.split(",")),this.columnThree=this.shuffleArray(this.rightItems.split(",")),this.startRotators()}shuffleArray(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}return e}startRotators(){this.columnOneRotator=setInterval((()=>this.incrementColumnOne()),400),setTimeout((()=>{this.columnTwoRotator=setInterval((()=>this.incrementColumnTwo()),400)}),500),setTimeout((()=>{this.columnThreeRotator=setInterval((()=>this.incrementColumnThree()),400)}),1e3),setTimeout((()=>this.stopRotators()),3e3)}stopRotators(){clearInterval(this.columnOneRotator),setTimeout((()=>clearInterval(this.columnTwoRotator)),500),setTimeout((()=>clearInterval(this.columnThreeRotator)),1e3),setTimeout((()=>this.startRotators()),1e4)}incrementColumnOne(){this.columnOne=this.updateOrder(this.columnOne)}incrementColumnTwo(){this.columnTwo=this.updateOrder(this.columnTwo)}incrementColumnThree(){this.columnThree=this.updateOrder(this.columnThree)}updateOrder(e){const t=[...e],n=t.shift();return t.push(n),t}render(){const e=this.columnOne[0],t=this.columnTwo[0],n=this.columnThree[0];return Xe(Ze,null,Xe("div",null,Xe("div",{class:"slot-container"},Xe("div",{class:"item-container"},Xe("img",{key:e,class:this.imageClass,src:e})),Xe("div",{class:"separator-container"},"+"),Xe("div",{class:"item-container"},Xe("img",{key:t,class:this.imageClass,src:t})),Xe("div",{class:"separator-container"},"+"),Xe("div",{class:"item-container"},Xe("img",{key:n,class:this.imageClass,src:n})))))}static get style(){return"home-slots .slot-container{display:flex;align-items:center;justify-items:center;text-align:center}home-slots .slot-container .item-container{width:25%;text-align:center}home-slots .slot-container .item-container img{animation:fadeIn 500ms}home-slots .slot-container .separator-container{width:12.5%;text-align:center}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}"}},di=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.buttonClass="",this.loading=!0,this.isLoggedIn=!1}componentWillRender(){var e;try{const t=null!==(e=si().pulumi_web_user_info)&&void 0!==e?e:"j:{}",n=JSON.parse(decodeURIComponent(t).slice(2));n&&n.userId&&""!==n.userId&&(this.isLoggedIn=!0)}catch(e){}this.loading=!1}render(){if(!this.loading)return this.isLoggedIn?Xe("a",{class:this.buttonClass,href:"https://app.pulumi.com/?create-organization=1",target:"_blank"},"Create an Organization"):Xe("a",{class:this.buttonClass,href:"https://app.pulumi.com/signup/",target:"_blank"},"Sign Up")}};var pi="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function fi(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}function hi(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}var mi=fi((function(e,t){(function(){var n,r="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",s=16,a=32,l=64,c=128,u=256,d=1/0,p=9007199254740991,f=NaN,h=4294967295,m=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",a],["partialRight",l],["rearg",u]],v="[object Arguments]",g="[object Array]",y="[object Boolean]",b="[object Date]",w="[object Error]",_="[object Function]",S="[object GeneratorFunction]",x="[object Map]",O="[object Number]",$="[object Object]",k="[object Promise]",C="[object RegExp]",E="[object Set]",T="[object String]",P="[object Symbol]",j="[object WeakMap]",I="[object ArrayBuffer]",A="[object DataView]",L="[object Float32Array]",D="[object Float64Array]",M="[object Int8Array]",N="[object Int16Array]",R="[object Int32Array]",F="[object Uint8Array]",B="[object Uint8ClampedArray]",q="[object Uint16Array]",z="[object Uint32Array]",H=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,K=RegExp(W.source),J=RegExp(G.source),Y=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,re=RegExp(ne.source),ie=/^\s+/,oe=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,Se="\\ud800-\\udfff",xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Oe="\\u2700-\\u27bf",$e="a-z\\xdf-\\xf6\\xf8-\\xff",ke="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Ee="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="['’]",Pe="["+Se+"]",je="["+Ee+"]",Ie="["+xe+"]",Ae="\\d+",Le="["+Oe+"]",De="["+$e+"]",Me="[^"+Se+Ee+Ae+Oe+$e+ke+"]",Ne="\\ud83c[\\udffb-\\udfff]",Re="[^"+Se+"]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",qe="["+ke+"]",ze="\\u200d",He="(?:"+De+"|"+Me+")",Ue="(?:"+qe+"|"+Me+")",Ve="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ge="(?:"+Ie+"|"+Ne+")"+"?",Ke="["+Ce+"]?",Je=Ke+Ge+("(?:"+ze+"(?:"+[Re,Fe,Be].join("|")+")"+Ke+Ge+")*"),Ye="(?:"+[Le,Fe,Be].join("|")+")"+Je,Xe="(?:"+[Re+Ie+"?",Ie,Fe,Be,Pe].join("|")+")",Qe=RegExp(Te,"g"),Ze=RegExp(Ie,"g"),et=RegExp(Ne+"(?="+Ne+")|"+Xe+Je,"g"),tt=RegExp([qe+"?"+De+"+"+Ve+"(?="+[je,qe,"$"].join("|")+")",Ue+"+"+We+"(?="+[je,qe+He,"$"].join("|")+")",qe+"?"+He+"+"+Ve,qe+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ae,Ye].join("|"),"g"),nt=RegExp("["+ze+Se+xe+Ce+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ot=-1,st={};st[L]=st[D]=st[M]=st[N]=st[R]=st[F]=st[B]=st[q]=st[z]=!0,st[v]=st[g]=st[I]=st[y]=st[A]=st[b]=st[w]=st[_]=st[x]=st[O]=st[$]=st[C]=st[E]=st[T]=st[j]=!1;var at={};at[v]=at[g]=at[I]=at[A]=at[y]=at[b]=at[L]=at[D]=at[M]=at[N]=at[R]=at[x]=at[O]=at[$]=at[C]=at[E]=at[T]=at[P]=at[F]=at[B]=at[q]=at[z]=!0,at[w]=at[_]=at[j]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,ut=parseInt,dt="object"==typeof pi&&pi&&pi.Object===Object&&pi,pt="object"==typeof self&&self&&self.Object===Object&&self,ft=dt||pt||Function("return this")(),ht=t&&!t.nodeType&&t,mt=ht&&e&&!e.nodeType&&e,vt=mt&&mt.exports===ht,gt=vt&&dt.process,yt=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||gt&>.binding&>.binding("util")}catch(e){}}(),bt=yt&&yt.isArrayBuffer,wt=yt&&yt.isDate,_t=yt&&yt.isMap,St=yt&&yt.isRegExp,xt=yt&&yt.isSet,Ot=yt&&yt.isTypedArray;function $t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function kt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function It(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function tn(e,t){for(var n=e.length;n--&&qt(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var rn=Wt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),on=Wt({"&":"&","<":"<",">":">",'"':""","'":"'"});function sn(e){return"\\"+lt[e]}function an(e){return nt.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,r=e.length,i=0,s=[];++n",""":'"',"'":"'"});var gn=function e(t){var oe,Se=(t=null==t?ft:gn.defaults(ft.Object(),t,gn.pick(ft,it))).Array,xe=t.Date,Oe=t.Error,$e=t.Function,ke=t.Math,Ce=t.Object,Ee=t.RegExp,Te=t.String,Pe=t.TypeError,je=Se.prototype,Ie=$e.prototype,Ae=Ce.prototype,Le=t["__core-js_shared__"],De=Ie.toString,Me=Ae.hasOwnProperty,Ne=0,Re=(oe=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||""))?"Symbol(src)_1."+oe:"",Fe=Ae.toString,Be=De.call(Ce),qe=ft._,ze=Ee("^"+De.call(Me).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=vt?t.Buffer:n,Ue=t.Symbol,Ve=t.Uint8Array,We=He?He.allocUnsafe:n,Ge=cn(Ce.getPrototypeOf,Ce),Ke=Ce.create,Je=Ae.propertyIsEnumerable,Ye=je.splice,Xe=Ue?Ue.isConcatSpreadable:n,et=Ue?Ue.iterator:n,nt=Ue?Ue.toStringTag:n,lt=function(){try{var e=ho(Ce,"defineProperty");return e({},"",{}),e}catch(e){}}(),dt=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,pt=xe&&xe.now!==ft.Date.now&&xe.now,ht=t.setTimeout!==ft.setTimeout&&t.setTimeout,mt=ke.ceil,gt=ke.floor,yt=Ce.getOwnPropertySymbols,Rt=He?He.isBuffer:n,Wt=t.isFinite,yn=je.join,bn=cn(Ce.keys,Ce),wn=ke.max,_n=ke.min,Sn=xe.now,xn=t.parseInt,On=ke.random,$n=je.reverse,kn=ho(t,"DataView"),Cn=ho(t,"Map"),En=ho(t,"Promise"),Tn=ho(t,"Set"),Pn=ho(t,"WeakMap"),jn=ho(Ce,"create"),In=Pn&&new Pn,An={},Ln=qo(kn),Dn=qo(Cn),Mn=qo(En),Nn=qo(Tn),Rn=qo(Pn),Fn=Ue?Ue.prototype:n,Bn=Fn?Fn.valueOf:n,qn=Fn?Fn.toString:n;function zn(e){if(ia(e)&&!Gs(e)&&!(e instanceof Wn)){if(e instanceof Vn)return e;if(Me.call(e,"__wrapped__"))return zo(e)}return new Vn(e)}var Hn=function(){function e(){}return function(t){if(!ra(t))return{};if(Ke)return Ke(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Un(){}function Vn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function ur(e,t,r,i,o,s){var a,l=1&t,c=2&t,u=4&t;if(r&&(a=o?r(e,i,o,s):r(e)),a!==n)return a;if(!ra(e))return e;var d=Gs(e);if(d){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Me.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return ji(e,a)}else{var p=go(e),f=p==_||p==S;if(Xs(e))return $i(e,l);if(p==$||p==v||f&&!o){if(a=c||f?{}:bo(e),!l)return c?function(e,t){return Ii(e,vo(e),t)}(e,function(e,t){return e&&Ii(t,Da(t),e)}(a,e)):function(e,t){return Ii(e,mo(e),t)}(e,sr(a,e))}else{if(!at[p])return o?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case I:return ki(e);case y:case b:return new r(+e);case A:return function(e,t){var n=t?ki(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case L:case D:case M:case N:case R:case F:case B:case q:case z:return Ci(e,n);case x:return new r;case O:case T:return new r(e);case C:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case E:return new r;case P:return i=e,Bn?Ce(Bn.call(i)):{}}var i}(e,p,l)}}s||(s=new Xn);var h=s.get(e);if(h)return h;s.set(e,a),ca(e)?e.forEach((function(n){a.add(ur(n,t,r,n,e,s))})):oa(e)&&e.forEach((function(n,i){a.set(i,ur(n,t,r,i,e,s))}));var m=d?n:(u?c?so:oo:c?Da:La)(e);return Ct(m||e,(function(n,i){m&&(n=e[i=n]),rr(a,i,ur(n,t,r,i,e,s))})),a}function dr(e,t,r){var i=r.length;if(null==e)return!i;for(e=Ce(e);i--;){var o=r[i],s=t[o],a=e[o];if(a===n&&!(o in e)||!s(a))return!1}return!0}function pr(e,t,i){if("function"!=typeof e)throw new Pe(r);return Lo((function(){e.apply(n,i)}),t)}function fr(e,t,n,r){var i=-1,o=jt,s=!0,a=e.length,l=[],c=t.length;if(!a)return l;n&&(t=At(t,Xt(n))),r?(o=It,s=!1):t.length>=200&&(o=Zt,s=!1,t=new Yn(t));e:for(;++i-1},Kn.prototype.set=function(e,t){var n=this.__data__,r=ir(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Jn.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(Cn||Kn),string:new Gn}},Jn.prototype.delete=function(e){var t=po(this,e).delete(e);return this.size-=t?1:0,t},Jn.prototype.get=function(e){return po(this,e).get(e)},Jn.prototype.has=function(e){return po(this,e).has(e)},Jn.prototype.set=function(e,t){var n=po(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,i),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Kn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Kn){var r=n.__data__;if(!Cn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Jn(r)}return n.set(e,t),this.size=n.size,this};var hr=Di(Sr),mr=Di(xr,!0);function vr(e,t){var n=!0;return hr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function gr(e,t,r){for(var i=-1,o=e.length;++i0&&n(a)?t>1?br(a,t-1,n,r,i):Lt(i,a):r||(i[i.length]=a)}return i}var wr=Mi(),_r=Mi(!0);function Sr(e,t){return e&&wr(e,t,La)}function xr(e,t){return e&&_r(e,t,La)}function Or(e,t){return Pt(t,(function(t){return ea(e[t])}))}function $r(e,t){for(var r=0,i=(t=_i(t,e)).length;null!=e&&rt}function Tr(e,t){return null!=e&&Me.call(e,t)}function Pr(e,t){return null!=e&&t in Ce(e)}function jr(e,t,r){for(var i=r?It:jt,o=e[0].length,s=e.length,a=s,l=Se(s),c=1/0,u=[];a--;){var d=e[a];a&&t&&(d=At(d,Xt(t))),c=_n(d.length,c),l[a]=!r&&(t||o>=120&&d.length>=120)?new Yn(a&&d):n}d=e[0];var p=-1,f=l[0];e:for(;++p=a?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Gr(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)a!==e&&Ye.call(a,l,1),Ye.call(e,l,1);return e}function Jr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;_o(i)?Ye.call(e,i,1):fi(e,i)}}return e}function Yr(e,t){return e+gt(On()*(t-e+1))}function Xr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Qr(e,t){return Do(To(e,t,sl),e+"")}function Zr(e){return Zn(Ha(e))}function ei(e,t){var n=Ha(e);return Ro(n,cr(t,0,n.length))}function ti(e,t,r,i){if(!ra(e))return e;for(var o=-1,s=(t=_i(t,e)).length,a=s-1,l=e;null!=l&&++oi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Se(i);++r>>1,s=e[o];null!==s&&!da(s)&&(n?s<=t:s=200){var c=t?null:Xi(e);if(c)return dn(c);s=!1,i=Zt,l=new Yn}else l=t?[]:a;e:for(;++r=i?e:oi(e,t,r)}var Oi=dt||function(e){return ft.clearTimeout(e)};function $i(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function ki(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function Ci(e,t){var n=t?ki(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ei(e,t){if(e!==t){var r=e!==n,i=null===e,o=e==e,s=da(e),a=t!==n,l=null===t,c=t==t,u=da(t);if(!l&&!u&&!s&&e>t||s&&a&&c&&!l&&!u||i&&a&&c||!r&&c||!o)return 1;if(!i&&!s&&!u&&e1?r[o-1]:n,a=o>2?r[2]:n;for(s=e.length>3&&"function"==typeof s?(o--,s):n,a&&So(r[0],r[1],a)&&(s=o<3?n:s,o=1),t=Ce(t);++i-1?o[s?t[a]:a]:n}}function qi(e){return io((function(t){var i=t.length,o=i,s=Vn.prototype.thru;for(e&&t.reverse();o--;){var a=t[o];if("function"!=typeof a)throw new Pe(r);if(s&&!l&&"wrapper"==lo(a))var l=new Vn([],!0)}for(o=l?o:i;++o1&&y.reverse(),p&&ul))return!1;var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var p=-1,f=!0,h=2&r?new Yn:n;for(s.set(e,t),s.set(t,e);++p-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ct(m,(function(n){var r="_."+n[0];t&n[1]&&!jt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(le):[]}(r),n)))}function No(e){var t=0,r=0;return function(){var i=Sn(),o=16-(i-r);if(r=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ro(e,t){var r=-1,i=e.length,o=i-1;for(t=t===n?i:t;++r1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,ls(e,r)}));function ms(e){var t=zn(e);return t.__chain__=!0,t}function vs(e,t){return t(e)}var gs=io((function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,o=function(t){return lr(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Wn&&_o(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:vs,args:[o],thisArg:n}),new Vn(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(o)}));var ys=Ai((function(e,t,n){Me.call(e,n)?++e[n]:ar(e,n,1)}));var bs=Bi(Wo),ws=Bi(Go);function _s(e,t){return(Gs(e)?Ct:hr)(e,uo(t,3))}function Ss(e,t){return(Gs(e)?Et:mr)(e,uo(t,3))}var xs=Ai((function(e,t,n){Me.call(e,n)?e[n].push(t):ar(e,n,[t])}));var Os=Qr((function(e,t,n){var r=-1,i="function"==typeof t,o=Js(e)?Se(e.length):[];return hr(e,(function(e){o[++r]=i?$t(t,e,n):Ir(e,t,n)})),o})),$s=Ai((function(e,t,n){ar(e,n,t)}));function ks(e,t){return(Gs(e)?At:qr)(e,uo(t,3))}var Cs=Ai((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Es=Qr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&So(e,t[0],t[1])?t=[]:n>2&&So(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,br(t,1),[])})),Ts=pt||function(){return ft.Date.now()};function Ps(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Zi(e,c,n,n,n,n,t)}function js(e,t){var i;if("function"!=typeof t)throw new Pe(r);return e=ga(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var Is=Qr((function(e,t,n){var r=1;if(n.length){var i=un(n,co(Is));r|=a}return Zi(e,r,t,n,i)})),As=Qr((function(e,t,n){var r=3;if(n.length){var i=un(n,co(As));r|=a}return Zi(t,r,e,n,i)}));function Ls(e,t,i){var o,s,a,l,c,u,d=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new Pe(r);function m(t){var r=o,i=s;return o=s=n,d=t,l=e.apply(i,r)}function v(e){return d=e,c=Lo(y,t),p?m(e):l}function g(e){var r=e-u;return u===n||r>=t||r<0||f&&e-d>=a}function y(){var e=Ts();if(g(e))return b(e);c=Lo(y,function(e){var n=t-(e-u);return f?_n(n,a-(e-d)):n}(e))}function b(e){return c=n,h&&o?m(e):(o=s=n,l)}function w(){var e=Ts(),r=g(e);if(o=arguments,s=this,u=e,r){if(c===n)return v(u);if(f)return Oi(c),c=Lo(y,t),m(u)}return c===n&&(c=Lo(y,t)),l}return t=ba(t)||0,ra(i)&&(p=!!i.leading,a=(f="maxWait"in i)?wn(ba(i.maxWait)||0,t):a,h="trailing"in i?!!i.trailing:h),w.cancel=function(){c!==n&&Oi(c),d=0,o=u=s=c=n},w.flush=function(){return c===n?l:b(Ts())},w}var Ds=Qr((function(e,t){return pr(e,1,t)})),Ms=Qr((function(e,t,n){return pr(e,ba(t)||0,n)}));function Ns(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Pe(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Ns.Cache||Jn),n}function Rs(e){if("function"!=typeof e)throw new Pe(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ns.Cache=Jn;var Fs=Si((function(e,t){var n=(t=1==t.length&&Gs(t[0])?At(t[0],Xt(uo())):At(br(t,1),Xt(uo()))).length;return Qr((function(r){for(var i=-1,o=_n(r.length,n);++i=t})),Ws=Ar(function(){return arguments}())?Ar:function(e){return ia(e)&&Me.call(e,"callee")&&!Je.call(e,"callee")},Gs=Se.isArray,Ks=bt?Xt(bt):function(e){return ia(e)&&Cr(e)==I};function Js(e){return null!=e&&na(e.length)&&!ea(e)}function Ys(e){return ia(e)&&Js(e)}var Xs=Rt||bl,Qs=wt?Xt(wt):function(e){return ia(e)&&Cr(e)==b};function Zs(e){if(!ia(e))return!1;var t=Cr(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!aa(e)}function ea(e){if(!ra(e))return!1;var t=Cr(e);return t==_||t==S||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ta(e){return"number"==typeof e&&e==ga(e)}function na(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function ra(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ia(e){return null!=e&&"object"==typeof e}var oa=_t?Xt(_t):function(e){return ia(e)&&go(e)==x};function sa(e){return"number"==typeof e||ia(e)&&Cr(e)==O}function aa(e){if(!ia(e)||Cr(e)!=$)return!1;var t=Ge(e);if(null===t)return!0;var n=Me.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==Be}var la=St?Xt(St):function(e){return ia(e)&&Cr(e)==C};var ca=xt?Xt(xt):function(e){return ia(e)&&go(e)==E};function ua(e){return"string"==typeof e||!Gs(e)&&ia(e)&&Cr(e)==T}function da(e){return"symbol"==typeof e||ia(e)&&Cr(e)==P}var pa=Ot?Xt(Ot):function(e){return ia(e)&&na(e.length)&&!!st[Cr(e)]};var fa=Ki(Br),ha=Ki((function(e,t){return e<=t}));function ma(e){if(!e)return[];if(Js(e))return ua(e)?hn(e):ji(e);if(et&&e[et])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[et]());var t=go(e);return(t==x?ln:t==E?dn:Ha)(e)}function va(e){return e?(e=ba(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ga(e){var t=va(e),n=t%1;return t==t?n?t-n:t:0}function ya(e){return e?cr(ga(e),0,h):0}function ba(e){if("number"==typeof e)return e;if(da(e))return f;if(ra(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ra(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Yt(e);var n=me.test(e);return n||ge.test(e)?ut(e.slice(2),n?2:8):he.test(e)?f:+e}function wa(e){return Ii(e,Da(e))}function _a(e){return null==e?"":di(e)}var Sa=Li((function(e,t){if(ko(t)||Js(t))Ii(t,La(t),e);else for(var n in t)Me.call(t,n)&&rr(e,n,t[n])})),xa=Li((function(e,t){Ii(t,Da(t),e)})),Oa=Li((function(e,t,n,r){Ii(t,Da(t),e,r)})),$a=Li((function(e,t,n,r){Ii(t,La(t),e,r)})),ka=io(lr);var Ca=Qr((function(e,t){e=Ce(e);var r=-1,i=t.length,o=i>2?t[2]:n;for(o&&So(t[0],t[1],o)&&(i=1);++r1),t})),Ii(e,so(e),n),r&&(n=ur(n,7,no));for(var i=t.length;i--;)fi(n,t[i]);return n}));var Fa=io((function(e,t){return null==e?{}:function(e,t){return Gr(e,t,(function(t,n){return Pa(e,n)}))}(e,t)}));function Ba(e,t){if(null==e)return{};var n=At(so(e),(function(e){return[e]}));return t=uo(t),Gr(e,n,(function(e,n){return t(e,n[0])}))}var qa=Qi(La),za=Qi(Da);function Ha(e){return null==e?[]:Qt(e,La(e))}var Ua=Ri((function(e,t,n){return t=t.toLowerCase(),e+(n?Va(t):t)}));function Va(e){return Za(_a(e).toLowerCase())}function Wa(e){return(e=_a(e))&&e.replace(be,rn).replace(Ze,"")}var Ga=Ri((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ka=Ri((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ja=Ni("toLowerCase");var Ya=Ri((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Xa=Ri((function(e,t,n){return e+(n?" ":"")+Za(t)}));var Qa=Ri((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Za=Ni("toUpperCase");function el(e,t,r){return e=_a(e),(t=r?n:t)===n?function(e){return rt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var tl=Qr((function(e,t){try{return $t(e,n,t)}catch(e){return Zs(e)?e:new Oe(e)}})),nl=io((function(e,t){return Ct(t,(function(t){t=Bo(t),ar(e,t,Is(e[t],e))})),e}));function rl(e){return function(){return e}}var il=qi(),ol=qi(!0);function sl(e){return e}function al(e){return Nr("function"==typeof e?e:ur(e,1))}var ll=Qr((function(e,t){return function(n){return Ir(n,e,t)}})),cl=Qr((function(e,t){return function(n){return Ir(e,n,t)}}));function ul(e,t,n){var r=La(t),i=Or(t,r);null!=n||ra(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Or(t,La(t)));var o=!(ra(n)&&"chain"in n&&!n.chain),s=ea(e);return Ct(i,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=ji(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Lt([this.value()],arguments))})})),e}function dl(){}var pl=Vi(At),fl=Vi(Tt),hl=Vi(Nt);function ml(e){return xo(e)?Vt(Bo(e)):function(e){return function(t){return $r(t,e)}}(e)}var vl=Gi(),gl=Gi(!0);function yl(){return[]}function bl(){return!1}var wl=Ui((function(e,t){return e+t}),0),_l=Yi("ceil"),Sl=Ui((function(e,t){return e/t}),1),xl=Yi("floor");var Ol,$l=Ui((function(e,t){return e*t}),1),kl=Yi("round"),Cl=Ui((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new Pe(r);return e=ga(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Ps,zn.assign=Sa,zn.assignIn=xa,zn.assignInWith=Oa,zn.assignWith=$a,zn.at=ka,zn.before=js,zn.bind=Is,zn.bindAll=nl,zn.bindKey=As,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Gs(e)?e:[e]},zn.chain=ms,zn.chunk=function(e,t,r){t=(r?So(e,t,r):t===n)?1:wn(ga(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,s=0,a=Se(mt(i/t));oo?0:o+r),(i=i===n||i>o?o:ga(i))<0&&(i+=o),i=r>i?0:ya(i);r>>0)?(e=_a(e))&&("string"==typeof t||null!=t&&!la(t))&&!(t=di(t))&&an(e)?xi(hn(e),0,r):e.split(t,r):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new Pe(r);return t=null==t?0:wn(ga(t),0),Qr((function(n){var r=n[t],i=xi(n,0,t);return r&&Lt(i,r),$t(e,this,i)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?oi(e,1,t):[]},zn.take=function(e,t,r){return e&&e.length?oi(e,0,(t=r||t===n?1:ga(t))<0?0:t):[]},zn.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?oi(e,(t=i-(t=r||t===n?1:ga(t)))<0?0:t,i):[]},zn.takeRightWhile=function(e,t){return e&&e.length?mi(e,uo(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?mi(e,uo(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new Pe(r);return ra(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),Ls(e,t,{leading:i,maxWait:t,trailing:o})},zn.thru=vs,zn.toArray=ma,zn.toPairs=qa,zn.toPairsIn=za,zn.toPath=function(e){return Gs(e)?At(e,Bo):da(e)?[e]:ji(Fo(_a(e)))},zn.toPlainObject=wa,zn.transform=function(e,t,n){var r=Gs(e),i=r||Xs(e)||pa(e);if(t=uo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ra(e)&&ea(o)?Hn(Ge(e)):{}}return(i?Ct:Sr)(e,(function(e,r,i){return t(n,e,r,i)})),n},zn.unary=function(e){return Ps(e,1)},zn.union=is,zn.unionBy=os,zn.unionWith=ss,zn.uniq=function(e){return e&&e.length?pi(e):[]},zn.uniqBy=function(e,t){return e&&e.length?pi(e,uo(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?pi(e,n,t):[]},zn.unset=function(e,t){return null==e||fi(e,t)},zn.unzip=as,zn.unzipWith=ls,zn.update=function(e,t,n){return null==e?e:hi(e,t,wi(n))},zn.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:hi(e,t,wi(r),i)},zn.values=Ha,zn.valuesIn=function(e){return null==e?[]:Qt(e,Da(e))},zn.without=cs,zn.words=el,zn.wrap=function(e,t){return Bs(wi(t),e)},zn.xor=us,zn.xorBy=ds,zn.xorWith=ps,zn.zip=fs,zn.zipObject=function(e,t){return yi(e||[],t||[],rr)},zn.zipObjectDeep=function(e,t){return yi(e||[],t||[],ti)},zn.zipWith=hs,zn.entries=qa,zn.entriesIn=za,zn.extend=xa,zn.extendWith=Oa,ul(zn,zn),zn.add=wl,zn.attempt=tl,zn.camelCase=Ua,zn.capitalize=Va,zn.ceil=_l,zn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=ba(r))==r?r:0),t!==n&&(t=(t=ba(t))==t?t:0),cr(ba(e),t,r)},zn.clone=function(e){return ur(e,4)},zn.cloneDeep=function(e){return ur(e,5)},zn.cloneDeepWith=function(e,t){return ur(e,5,t="function"==typeof t?t:n)},zn.cloneWith=function(e,t){return ur(e,4,t="function"==typeof t?t:n)},zn.conformsTo=function(e,t){return null==t||dr(e,t,La(t))},zn.deburr=Wa,zn.defaultTo=function(e,t){return null==e||e!=e?t:e},zn.divide=Sl,zn.endsWith=function(e,t,r){e=_a(e),t=di(t);var i=e.length,o=r=r===n?i:cr(ga(r),0,i);return(r-=t.length)>=0&&e.slice(r,o)==t},zn.eq=Hs,zn.escape=function(e){return(e=_a(e))&&J.test(e)?e.replace(G,on):e},zn.escapeRegExp=function(e){return(e=_a(e))&&re.test(e)?e.replace(ne,"\\$&"):e},zn.every=function(e,t,r){var i=Gs(e)?Tt:vr;return r&&So(e,t,r)&&(t=n),i(e,uo(t,3))},zn.find=bs,zn.findIndex=Wo,zn.findKey=function(e,t){return Ft(e,uo(t,3),Sr)},zn.findLast=ws,zn.findLastIndex=Go,zn.findLastKey=function(e,t){return Ft(e,uo(t,3),xr)},zn.floor=xl,zn.forEach=_s,zn.forEachRight=Ss,zn.forIn=function(e,t){return null==e?e:wr(e,uo(t,3),Da)},zn.forInRight=function(e,t){return null==e?e:_r(e,uo(t,3),Da)},zn.forOwn=function(e,t){return e&&Sr(e,uo(t,3))},zn.forOwnRight=function(e,t){return e&&xr(e,uo(t,3))},zn.get=Ta,zn.gt=Us,zn.gte=Vs,zn.has=function(e,t){return null!=e&&yo(e,t,Tr)},zn.hasIn=Pa,zn.head=Jo,zn.identity=sl,zn.includes=function(e,t,n,r){e=Js(e)?e:Ha(e),n=n&&!r?ga(n):0;var i=e.length;return n<0&&(n=wn(i+n,0)),ua(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&qt(e,t,n)>-1},zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ga(n);return i<0&&(i=wn(r+i,0)),qt(e,t,i)},zn.inRange=function(e,t,r){return t=va(t),r===n?(r=t,t=0):r=va(r),function(e,t,n){return e>=_n(t,n)&&e=-9007199254740991&&e<=p},zn.isSet=ca,zn.isString=ua,zn.isSymbol=da,zn.isTypedArray=pa,zn.isUndefined=function(e){return e===n},zn.isWeakMap=function(e){return ia(e)&&go(e)==j},zn.isWeakSet=function(e){return ia(e)&&"[object WeakSet]"==Cr(e)},zn.join=function(e,t){return null==e?"":yn.call(e,t)},zn.kebabCase=Ga,zn.last=Zo,zn.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i;return r!==n&&(o=(o=ga(r))<0?wn(i+o,0):_n(o,i-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Bt(e,Ht,o,!0)},zn.lowerCase=Ka,zn.lowerFirst=Ja,zn.lt=fa,zn.lte=ha,zn.max=function(e){return e&&e.length?gr(e,sl,Er):n},zn.maxBy=function(e,t){return e&&e.length?gr(e,uo(t,2),Er):n},zn.mean=function(e){return Ut(e,sl)},zn.meanBy=function(e,t){return Ut(e,uo(t,2))},zn.min=function(e){return e&&e.length?gr(e,sl,Br):n},zn.minBy=function(e,t){return e&&e.length?gr(e,uo(t,2),Br):n},zn.stubArray=yl,zn.stubFalse=bl,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=$l,zn.nth=function(e,t){return e&&e.length?Vr(e,ga(t)):n},zn.noConflict=function(){return ft._===this&&(ft._=qe),this},zn.noop=dl,zn.now=Ts,zn.pad=function(e,t,n){e=_a(e);var r=(t=ga(t))?fn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Wi(gt(i),n)+e+Wi(mt(i),n)},zn.padEnd=function(e,t,n){e=_a(e);var r=(t=ga(t))?fn(e):0;return t&&rt){var i=e;e=t,t=i}if(r||e%1||t%1){var o=On();return _n(e+o*(t-e+ct("1e-"+((o+"").length-1))),t)}return Yr(e,t)},zn.reduce=function(e,t,n){var r=Gs(e)?Dt:Gt,i=arguments.length<3;return r(e,uo(t,4),n,i,hr)},zn.reduceRight=function(e,t,n){var r=Gs(e)?Mt:Gt,i=arguments.length<3;return r(e,uo(t,4),n,i,mr)},zn.repeat=function(e,t,r){return t=(r?So(e,t,r):t===n)?1:ga(t),Xr(_a(e),t)},zn.replace=function(){var e=arguments,t=_a(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,r){var i=-1,o=(t=_i(t,e)).length;for(o||(o=1,e=n);++ip)return[];var n=h,r=_n(e,h);t=uo(t),e-=h;for(var i=Jt(r,t);++n=s)return e;var l=r-fn(i);if(l<1)return i;var c=a?xi(a,0,l).join(""):e.slice(0,l);if(o===n)return c+i;if(a&&(l+=c.length-l),la(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=Ee(o.source,_a(fe.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var p=u.index;c=c.slice(0,p===n?l:p)}}else if(e.indexOf(di(o),l)!=l){var f=c.lastIndexOf(o);f>-1&&(c=c.slice(0,f))}return c+i},zn.unescape=function(e){return(e=_a(e))&&K.test(e)?e.replace(W,vn):e},zn.uniqueId=function(e){var t=++Ne;return _a(e)+t},zn.upperCase=Qa,zn.upperFirst=Za,zn.each=_s,zn.eachRight=Ss,zn.first=Jo,ul(zn,(Ol={},Sr(zn,(function(e,t){Me.call(zn.prototype,t)||(Ol[t]=e)})),Ol),{chain:!1}),zn.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),Ct(["drop","take"],(function(e,t){Wn.prototype[e]=function(r){r=r===n?1:wn(ga(r),0);var i=this.__filtered__&&!t?new Wn(this):this.clone();return i.__filtered__?i.__takeCount__=_n(r,i.__takeCount__):i.__views__.push({size:_n(r,h),type:e+(i.__dir__<0?"Right":"")}),i},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:uo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ct(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(sl)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Qr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return Ir(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(Rs(uo(e)))},Wn.prototype.slice=function(e,t){e=ga(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Wn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=ga(t))<0?r.dropRight(-t):r.take(t-e)),r)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(h)},Sr(Wn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=zn[i?"take"+("last"==t?"Right":""):t],s=i||/^find/.test(t);o&&(zn.prototype[t]=function(){var t=this.__wrapped__,a=i?[1]:arguments,l=t instanceof Wn,c=a[0],u=l||Gs(t),d=function(e){var t=o.apply(zn,Lt([e],a));return i&&p?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,f=!!this.__actions__.length,h=s&&!p,m=l&&!f;if(!s&&u){t=m?t:new Wn(this);var v=e.apply(t,a);return v.__actions__.push({func:vs,args:[d],thisArg:n}),new Vn(v,p)}return h&&m?e.apply(this,a):(v=this.thru(d),h?i?v.value()[0]:v.value():v)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=je[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Gs(i)?i:[],e)}return this[n]((function(n){return t.apply(Gs(n)?n:[],e)}))}})),Sr(Wn.prototype,(function(e,t){var n=zn[t];if(n){var r=n.name+"";Me.call(An,r)||(An[r]=[]),An[r].push({name:t,func:n})}})),An[zi(n,2).name]=[{name:"wrapper",func:n}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=ji(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ji(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ji(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Gs(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,r=this;r instanceof Un;){var i=zo(r);i.__index__=0,i.__values__=n,t?o.__wrapped__=i:t=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:vs,args:[rs],thisArg:n}),new Vn(t,this.__chain__)}return this.thru(rs)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return vi(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,et&&(zn.prototype[et]=function(){return this}),zn}();mt?((mt.exports=gn)._=gn,ht._=gn):ft._=gn}).call(pi)}));const vi=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.filterContent="",this.debouncedFilterTree=mi.debounce(this.debouncedFilterTree,300)}componentWillLoad(){this.loadNavigationData().then((()=>{}))}async loadNavigationData(){this.isLoading=!0;try{const e=await fetch(`/registry/packages/navs/${this.packageName}.json`),t=await e.json();this.parsedNodes=t,this.currentlyRenderedNodes=this.parsedNodes}catch(e){return}this.isLoading=!1}filterTreeToMatchingContent(e,t,n,r){const i=this.filterTreeToMatchingRecursive(e,t,n,r);this.currentlyRenderedNodes=i}filterTreeToMatchingRecursive(e,t,n,r,i={},o=[""]){t.map((t=>{const s=o.join("")+t.name,a=o.join(""),l=n?n.name:"",c=!!i[s],u=!!n&&!!i[l],d=!!r&&!!i[a];if(!c){if(t.name.toLowerCase().includes(this.filterContent)){if(!u&&n){const t=Object.assign(Object.assign({},n),{children:[],isExpanded:!0,rootName:l});e.push(t),i[l]=!0}if(!d&&r){const t=Object.assign(Object.assign({},r),{children:[],isExpanded:!0,parentName:n.name,rootName:l});e.push(t),i[a]=!0}if(r){const n=Object.assign(Object.assign({},t),{children:[],parentName:r.name,isExpanded:!0,rootName:l});e.push(n),i[s]=!0}else if(n){const r=Object.assign(Object.assign({},t),{children:[],parentName:n.name,isExpanded:!0,rootName:l});e.push(r),i[s]=!0}else{const n=Object.assign(Object.assign({},t),{children:[],parentName:void 0,isExpanded:!0,rootName:l});e.push(n),i[s]=!0}}if(t.children){const r=n||t,s=n?t:null;this.filterTreeToMatchingRecursive(e,t.children,r,s,i,o.concat([t.name]))}}}));const s=e.filter((e=>void 0===e.parentName));return s.map((t=>{var n;t.children=e.filter((e=>e.parentName===t.name)),null===(n=t.children)||void 0===n||n.map((n=>{n.children=e.filter((e=>e.parentName===n.name&&e.rootName===t.name))}))})),[...s]}onChange(e){this.debouncedFilterTree(e)}onClearFilter(){this.filterContent="",this.currentlyRenderedNodes=this.parsedNodes}debouncedFilterTree(e){this.filterContent=e.target.value.trim().toLowerCase(),this.filterContent.length<2?this.currentlyRenderedNodes=this.parsedNodes:this.filterTreeToMatchingContent([],this.parsedNodes)}getFilterAndNavTree(){var e,t;return Xe("div",{class:"filter-and-nav-tree"},Xe("div",{class:"input-container"},Xe("input",{class:"navigation-filter-input",placeholder:"Filter",onInput:this.onChange.bind(this),value:this.filterContent}),this.filterContent&&Xe("div",{class:"clear-container"},Xe("button",{onClick:this.onClearFilter.bind(this),class:"clear-filter-button"},"X"))),1===(null===(e=this.filterContent)||void 0===e?void 0:e.length)&&Xe("div",{class:"filter-help-text"},"Provide at least two characters to filter."),(null===(t=this.currentlyRenderedNodes)||void 0===t?void 0:t.length)<1&&Xe("div",{class:"no-results"},"No results found. Try a different filter."),Xe("pulumi-api-doc-nav-tree",{class:"nav-tree",baseDirectory:this.baseDirectory,nodes:this.currentlyRenderedNodes}))}getLoadingState(){return Xe("div",{class:"loading"},Xe("i",{class:"loading-icon fas fa-spinner"}),Xe("span",{class:"loading-text"},"Loading..."))}render(){return Xe("section",{class:"api-doc-nav"},this.isLoading?this.getLoadingState():this.getFilterAndNavTree())}static get style(){return'.api-doc-nav{width:100%;max-width:375px}.api-doc-nav .filter-help-text{font-size:14px}.api-doc-nav .no-results{font-size:14px}.api-doc-nav .loading .loading-icon{margin-right:1rem}.api-doc-nav .navigation-header{font-family:var(--heading-font);font-weight:400;font-size:18px;color:#000;margin-top:0;margin-bottom:14px}.api-doc-nav .input-container{display:inline-block;position:relative;margin-left:12px}.api-doc-nav .input-container .clear-container{position:absolute;display:flex;align-items:center;margin-right:20px;top:0;right:0;height:100%}.api-doc-nav .input-container .clear-filter-button{display:flex;align-items:center;justify-content:center;height:18px;width:18px;font-size:xx-small;background:#dcdcdc;color:#808080;border-radius:50%;border:none;cursor:pointer;padding:0px}.api-doc-nav .input-container .navigation-filter-input{font-family:"Gilroy";font-size:16px;height:20px;width:90%;border-radius:4px;border:1px solid #000;padding:10px;margin-top:0;box-sizing:content-box}.api-doc-nav .input-container .navigation-filter-input:focus{outline-color:#4d5bd9}.api-doc-nav .nav-tree{width:100%;min-width:100%;max-width:100%}.api-doc-nav .nav-tree{display:block}.api-doc-nav .filter-and-nav-tree{margin-right:12px}'}},gi=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.depth=0}componentWillLoad(){this.isExpanded=!!this.node.isExpanded||this.isNodeInPathForCurrentlyVisiblePage(this.node.name)}onExpansionChange(e,t=!1){t&&(window.location.href=e),this.isExpanded=!this.isExpanded}handleLinkClick(e,t){e.stopPropagation(),window.location.href=t}componentShouldUpdate(e,t,n){if("isExpanded"===n)return!0!==t||!1!==e}getIcon(e){return Xe("div",{class:"symbol-container"},Xe("slot",{name:"before-content"},Xe("span",{class:`symbol ${e}`})))}isNodeInPathForCurrentlyVisiblePage(e){return window.location.pathname.includes(`/${e}/`)}shouldNodeBeSelected(e){return window.location.pathname.split("/").filter((e=>""!==e)).join("/")===e.split("/").filter((e=>""!==e)).join("/")}getChildNodes(e,t,n=1,r=this.href){const i=Xe("pulumi-tree-item",{slot:"item",selected:!1,expanded:!1,title:"dummy"});return!t&&(null==e?void 0:e.length)?i:null==e?void 0:e.map((e=>{const t="/"===e.link.charAt(e.link.length-1)?e.link:`${e.link}/`,i=`${r}${t}`,o=!!e.children&&0===e.children.length;return Xe("details",{open:this.isExpanded,"data-expandable":e.children&&e.children.length>0?"true":"false",class:"nav-tree-item nested",id:e.name,title:e.name,onClick:()=>this.onExpansionChange(i,!o)},Xe("summary",{class:"content-container "+(o?"":"is-link"),"data-selected":this.shouldNodeBeSelected(i)?"true":"false"},Xe("a",{class:`depth-${n}`,href:i,onClick:e=>this.handleLinkClick(e,i)},this.getIcon(e.type),Xe("span",{class:"link-container"},e.name))),this.getChildNodes(e.children,this.isExpanded,n+1,i))}))}render(){return Xe("details",{open:this.isExpanded,"data-expandable":this.node.children&&this.node.children.length>0?"true":"false",class:"nav-tree-item nested",id:this.node.name,title:this.node.name,onClick:()=>this.onExpansionChange(this.href,0===this.node.children.length)},Xe("summary",{class:"content-container","data-selected":this.shouldNodeBeSelected(this.href)?"true":"false"},Xe("a",{class:`depth-${this.depth}`,href:this.href,onClick:e=>this.handleLinkClick(e,this.href)},this.getIcon(this.node.type),Xe("span",{class:"link-container"},this.node.name))),this.getChildNodes(this.node.children,this.isExpanded))}},yi=class extends HTMLElement{constructor(){super(),this.__registerHost()}getNodes(e=this.nodes){return null==e?void 0:e.map((e=>{const t="/"===e.link.charAt(e.link.length-1)?e.link:`${e.link}/`,n=`${this.baseDirectory}${t}`;return Xe("pulumi-api-doc-nav-node",{node:e,isExpanded:e.isExpanded,href:n})}))}render(){return Xe("div",null,this.getNodes())}static get style(){return'@charset "UTF-8";.symbol-container{height:100%;display:flex;align-items:center}.symbol{height:14px;width:14px;border-width:1px;border-style:solid;box-sizing:border-box;border-radius:50%;margin-right:6px}.symbol.module,.symbol.function,.symbol.resource{display:flex;align-items:center;justify-content:center;box-sizing:border-box}.symbol.module{border-color:#1d8673}.symbol.module:before{content:"M";color:#1d8673;font-size:9px;font-weight:700}.symbol.function{border-color:red}.symbol.function:before{content:"F";color:red;font-size:9px;font-weight:700}.symbol.resource{border-color:#3e49ae}.symbol.resource:before{content:"R";color:#3e49ae;font-size:9px;font-weight:700}.nav-tree-item a{height:100%;display:flex;align-items:center;text-decoration:none;color:#2b2b2c;max-width:24ch}.nav-tree-item a:hover{text-decoration:underline}.nav-tree-item summary{width:100%;padding-left:8px}@media (max-width: 1279px){.nav-tree-item summary.depth-0{max-width:12ch}.nav-tree-item summary.depth-1{max-width:10ch}.nav-tree-item summary.depth-2{max-width:8ch}}@media (min-width: 1280px){.nav-tree-item summary.depth-0{max-width:24ch}.nav-tree-item summary.depth-1{max-width:22ch}.nav-tree-item summary.depth-2{max-width:20ch}}.content-container{height:100%;width:100%;display:flex;align-items:center}.link-container{display:block;overflow:hidden;text-overflow:ellipsis}details{padding:0.25rem 0.5rem}details summary{list-style:none;padding:0.25rem 0rem;cursor:pointer}details summary:hover{background-color:#f9f9f9}details summary.is-link:hover{text-decoration:underline}details summary[data-selected=true]{background-color:#e0e0e0;font-weight:bold}details summary[data-selected=true] a:hover{text-decoration:none}details summary::-webkit-details-marker{display:none}details summary a{padding:0.25rem}details[data-expandable]>summary::before{font-family:"Font Awesome 5 Free";font-weight:900;content:"";display:inline-block;cursor:none;visibility:hidden}details[data-expandable=true]>summary::before{margin-right:0.5rem;cursor:pointer;visibility:visible}details[data-expandable=true][open]>summary::before{transform:rotate(90deg)}'}},bi=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.paused=!0,this.isLoading=!1,this.error=!1}componentDidLoad(){const e=this.getAudio();e&&(e.volume=1,e.muted=!1),e.addEventListener("pause",(()=>this.paused=!0)),e.addEventListener("play",(()=>this.paused=!1))}toggleMute(){if(this.isLoading)return;const e=this.getAudio();e.paused?(this.isLoading=!0,e.play().then((()=>{this.isLoading=!1})).catch((()=>{this.error=!0}))):e.pause()}getAudio(){return this.el.querySelector("audio")}renderError(){return Xe("div",{class:"audio-container"},Xe("div",{class:"error-callout"},"Music Cannot Be Played"))}renderAudio(){const e=this.paused?this.pausedText:this.playingText,t=this.isLoading?"fa-cog fa-spin":"fas fa-music";return Xe("div",{class:"audio-container",onClick:this.toggleMute.bind(this)},Xe("div",{class:"audio-button"},Xe("i",{class:`fas ${t}`}),e),Xe("audio",{preload:"none",loop:!0},Xe("source",{src:this.url,type:"audio/mpeg"})))}render(){return this.error?this.renderError():this.renderAudio()}get el(){return this}},wi=(()=>{let e;return{getStore:()=>e,setStore:t=>{e=t},getState:()=>e&&e.getState(),mapDispatchToProps:(t,n)=>{Object.keys(n).forEach((r=>{const i=n[r];Object.defineProperty(t,r,{get:()=>(...t)=>e.dispatch(i(...t)),configurable:!0,enumerable:!0})}))},mapStateToProps:(t,n)=>{const r=(r,i)=>{const o=n(e.getState());Object.keys(o).forEach((e=>{const n=o[e];t[e]=n}))},i=e.subscribe((()=>r()));return r(),i}}})();var _i;!function(e){e.SET_LANGUAGE="SET_LANGUAGE",e.SET_K8S_LANGUAGE="SET_K8S_LANGUAGE",e.SET_INPUT_KIND="SET_INPUT_KIND",e.SET_OS="SET_OS",e.SET_CLOUD="SET_CLOUD",e.SET_PERSONA="SET_PERSONA",e.SET_BACKEND="SET_BACKEND",e.DISMISS_BANNER="DISMISS_BANNER",e.GET_USER_INFO="GET_USER_INFO"}(_i||(_i={}));const Si=e=>(t,n)=>{t({type:_i.DISMISS_BANNER,payload:{name:e,dismissedAt:Date.now()}})},xi=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.dismissible=!0,this.visible=!1}onRendered(e){wi.mapDispatchToProps(this,{dismissBanner:Si}),this.storeUnsubscribe=wi.mapStateToProps(this,(e=>({visible:!!this.name&&!e.banners.dismissed.find((e=>e.name===this.name))})))}disconnectedCallback(){this.storeUnsubscribe&&this.storeUnsubscribe()}render(){return Xe("div",null,Xe("slot",null),Xe("div",{class:"dismiss",onClick:e=>this.dismiss(e),title:"Dismiss"},Xe("span",null,"×")))}dismiss(e){this.dismissBanner(this.name)}static get style(){return"pulumi-banner{display:block;position:relative}pulumi-banner .dismiss{cursor:pointer;display:none;position:absolute;top:50%;right:16px;transform:translateY(-50%)}pulumi-banner[dismissible] .dismiss{display:block}pulumi-banner[dismissed]{display:none}"}},Oi=class extends HTMLElement{constructor(){super(),this.__registerHost()}onModeChange(e){"local"===e&&this.storeUnsubscribe&&this.storeUnsubscribe()}disconnectedCallback(){this.storeUnsubscribe&&this.storeUnsubscribe()}onRendered(e){this.mode="global","global"===this.mode&&(this.storeUnsubscribe=wi.mapStateToProps(this,(e=>{const{preferences:{language:t,k8sLanguage:n,os:r,cloud:i,persona:o,backend:s}}=e;switch(this.type){case"language":return{selection:t};case"k8s-language":return{selection:n};case"os":return{selection:r};case"cloud":return{selection:i};case"persona":return{selection:o};case"backend":return{selection:s}}})))}render(){const e=this.values?this.values.split(",").map((e=>e.trim())):[],t=this.selection&&(this.selection===this.value||e.includes(this.selection));return Xe("div",{class:t?"active":""},Xe("slot",null))}get el(){return this}static get watchers(){return{mode:["onModeChange"]}}static get style(){return"pulumi-choosable>*{display:none}pulumi-choosable>*.active{display:inherit}"}},$i=e=>(t,n)=>t(e),ki=e=>$i({key:e,type:_i.SET_LANGUAGE}),Ci=e=>$i({key:e,type:_i.SET_K8S_LANGUAGE}),Ei=e=>$i({key:e,type:_i.SET_OS}),Ti=e=>$i({key:e,type:_i.SET_CLOUD}),Pi=e=>$i({key:e,type:_i.SET_PERSONA}),ji=e=>$i({key:e,type:_i.SET_BACKEND}),Ii=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.currentOptions=[],this.supportedBackEnds=[{key:"service",name:"Service",preview:!1},{key:"self-managed",name:"Self Managed",preview:!1}],this.supportedPersonas=[{key:"developer",name:"Developers",preview:!1},{key:"devops",name:"DevOps & Infra Teams",preview:!1},{key:"security",name:"Security Engineers",preview:!1},{key:"leader",name:"Engineering Leaders",preview:!1}],this.supportedLanguages=[{key:"typescript",name:"TypeScript",extension:"ts",preview:!1},{key:"javascript",name:"JavaScript",extension:"js",preview:!1},{key:"python",name:"Python",extension:"py",preview:!1},{key:"go",name:"Go",extension:"go",preview:!1},{key:"csharp",name:"C#",extension:"cs",preview:!1},{key:"fsharp",name:"F#",extension:"fs",preview:!1},{key:"visualbasic",name:"VB",extension:"vb",preview:!1},{key:"java",name:"Java",extension:"java",preview:!1},{key:"yaml",name:"YAML",extension:"yaml",preview:!1}],this.supportedk8sLanguages=[{key:"typescript",name:"TypeScript",preview:!1},{key:"typescript-kx",name:"TypeScript KX",preview:!1},{key:"yaml",name:"YAML",preview:!1}],this.supportedOSs=[{key:"macos",name:"macOS",preview:!1},{key:"windows",name:"Windows",preview:!1},{key:"linux",name:"Linux",preview:!1}],this.supportedClouds=[{key:"aws",name:"AWS",preview:!1},{key:"azure",name:"Azure",preview:!1},{key:"gcp",name:"Google Cloud",preview:!1},{key:"kubernetes",name:"Kubernetes",preview:!1},{key:"digitalocean",name:"DigitalOcean",preview:!1},{key:"docker",name:"Docker",preview:!1}]}componentWillLoad(){this.parseOptions()}disconnectedCallback(){this.storeUnsubscribe&&this.storeUnsubscribe()}componentDidRender(){this.applyChoice()}onRendered(e){this.mode="global",this.optionStyle="tabbed",this.parseOptions(),wi.mapDispatchToProps(this,{setLanguage:ki,setK8sLanguage:Ci,setOS:Ei,setCloud:Ti,setPersona:Pi,setBackEnd:ji}),this.storeUnsubscribe=wi.mapStateToProps(this,(e=>{const{preferences:{language:t,k8sLanguage:n,os:r,cloud:i,persona:o,backend:s}}=e,a=e=>{if(!this.currentOptions.find((t=>t.key===e))){const t=this.currentOptions[0];e=t.key,this.choosables.length>0?(this.mode="local",this.choosables.forEach((e=>{e.setAttribute("mode","local")})),setTimeout((()=>this.storeUnsubscribe()))):setTimeout((()=>this.setChoice(this.type,t)))}return{selection:e}};switch(this.type){case"language":return a(t);case"k8s-language":return a(n);case"os":return a(r);case"cloud":return a(i);case"persona":return a(o);case"backend":return a(s);default:return{}}}))}render(){return Xe(Ze,{selection:this.selection},Xe("ul",null,this.currentOptions.map((e=>Xe("li",{class:this.selection===e.key?"active":""},Xe("a",{onClick:t=>this.makeChoice(t,this.type,e)},e.name," ",e.preview?Xe("span",null,"PREVIEW"):""))))),Xe("slot",null))}get choosables(){return this.el.querySelectorAll("pulumi-choosable")}parseOptions(){if(this.currentOptions=[],!this.type)throw new Error("Chooser attribute `type` is required.");if(!this.options)throw new Error("Chooser attribute `options` is required.");try{const e=this.options.split(",").map((e=>e.trim()));this.mapOptions(this.type,e)}catch(e){throw console.error(`Error parsing chooser options "${this.options}"`),e}}mapOptions(e,t){let n=[];switch(e){case"language":n=this.supportedLanguages;break;case"k8s-language":n=this.supportedk8sLanguages;break;case"os":n=this.supportedOSs;break;case"cloud":n=this.supportedClouds;break;case"persona":n=this.supportedPersonas;break;case"backend":n=this.supportedBackEnds}this.currentOptions=n.filter((e=>t.includes(e.key)))}makeChoice(e,t,n){this.setChoice(t,n);var r=e.target,i=r.getBoundingClientRect().top;window.requestAnimationFrame((()=>{const e=this.getDistanceFromDocumentTop(r);window.scroll(0,e-i)}))}getDistanceFromDocumentTop(e){let t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t}setChoice(e,t){const n=t.key;if(this.selection=n,"local"!==this.mode)switch(e){case"language":this.setLanguage(n);break;case"k8s-language":this.setK8sLanguage(n);break;case"os":this.setOS(n);break;case"cloud":this.setCloud(n);break;case"persona":this.setPersona(n);break;case"backend":this.setBackEnd(n)}}applyChoice(){this.selection&&this.choosables.forEach((e=>{e.setAttribute("selection",this.selection)}))}get el(){return this}static get style(){return"pulumi-chooser[option-style=none]>ul{display:none}pulumi-chooser>*{display:inherit}pulumi-chooser pulumi-choosable{display:inherit}"}},Ai=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.defaultFormId=""}componentWillLoad(){this.parsedItems=JSON.parse(this.items).map((e=>({key:e.key,label:e.label?e.label:e.key.charAt(0).toUpperCase()+e.key.slice(1),hubspotFormId:e.hubspot_form_id,cta:e.cta})));const e=oi("form");if(e){const t=this.parsedItems.find((t=>t.key.toLowerCase()===e.toLowerCase()));if(t)return void(this.defaultFormId=t.hubspotFormId)}}render(){return Xe("pulumi-multi-select-form",{items:this.parsedItems,selectClass:this.selectClass,labelClass:this.labelClass,labelText:"Why are you contacting us today?",defaultFormId:this.defaultFormId})}static get style(){return":host{display:block}"}};function Li(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))}function Di(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]-1||Gi(document.body,e)||function(e){var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important"),t.textContent="temporary element",document.body.appendChild(t);var n=Gi(t,e);return document.body.removeChild(t),n}(e)||function(e){var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important");var n=t;t.attachShadow&&(n=t.attachShadow({mode:"open"}));var r=document.createElement("span");r.innerText=e,n.appendChild(r),document.body.appendChild(t),Ki(r);var i=document.execCommand("copy");return Ji(),document.body.removeChild(t),i}(e["text/plain"])?[2,!0]:[2,!1]}))}))}function Xi(e){return Li(this,void 0,void 0,(function(){return Di(this,(function(t){if(zi)return[2,zi(e)];if(!Yi(function(e){var t={};return t["text/plain"]=e,t}(e)))throw new Error("writeText() failed");return[2]}))}))}const Qi=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.sourceFiles=[],this.theme="",this.converting=!1,this.convertible=!1,this.alertDismissed=!1,this.supportedLanguages=[{key:"typescript",name:"TypeScript",filename:"index.ts"},{key:"python",name:"Python",filename:"__main__.py"},{key:"go",name:"Go",filename:"main.go"},{key:"csharp",name:"C#",filename:"MyStack.cs"}]}componentDidLoad(){try{this.validateProps(),this.validateGlobals(),this.prepareEditors(),this.prepareSourceFiles()}catch(e){console.error(e.message)}}get inputEditorEl(){return this.el.querySelector("#editor-input")}get outputEditorEl(){return this.el.querySelector("#editor-output")}get inputEditorMode(){switch(this.from){case"tf":return"ruby";case"kube":case"cf":return"yaml";case"arm":return"javascript"}}get inputEditorValue(){return this.inputEditor.getValue()}get inputEditorDefaultFilename(){switch(this.from){case"tf":return"main.tf";case"kube":return"kube.yaml";case"arm":return"azuredeploy.json";case"cf":return"aws.yaml"}}get sourceLanguageName(){switch(this.from){case"tf":return"Terraform";case"kube":return"Kubernetes YAML";case"arm":return"ARM";case"cf":return"CloudFormation"}}get endpointPath(){switch(this.from){case"tf":return"convert";case"arm":return"convertARM";case"kube":return"convertKube";case"cf":return"convertCFN"}}get conversionTool(){switch(this.from){case"tf":return{name:"the Terraform converter",githubURL:"https://github.com/pulumi/pulumi"};case"kube":return{name:"the Kubernetes converter",githubURL:"https://github.com/pulumi/pulumi"};case"arm":return{name:"the ARM converter",githubURL:"https://github.com/pulumi/pulumi"};case"cf":return{name:"cf2pulumi",githubURL:"https://github.com/pulumi/pulumi-aws-native"};default:return{name:`${this.from}2pulumi`,githubURL:"https://github.com/pulumi/pulumi"}}}validateGlobals(){if([typeof CodeMirror,typeof JSZip,typeof saveAs].filter((e=>"undefined"===e)).length>0)throw new Error("The pulumi-convert component requires CodeMirror, JZSip, and FileSaver. Please ensure each of these scripts has been loaded into global before using it.")}validateProps(){const e=[];this.from&&["tf","kube","arm","cf"].includes(this.from)||e.push("A valid `from` attribute is required.");try{this.endpointURL=new URL(this.endpoint)}catch(t){e.push("A valid `endpoint` attribute is required.")}if(this.examples||console.warn("A list of examples was provided."),this.theme||console.warn("A CodeMirror theme was not specified. The Using `material-ocean`."),e.length)throw new Error(e.join("\n"))}prepareEditors(){this.selectedOutputLanguage=this.supportedLanguages[0];const e={lineNumbers:!0,theme:this.theme||""};this.inputEditor=CodeMirror.fromTextArea(this.inputEditorEl,Object.assign(Object.assign({},e),{indentUnit:["kube","cf"].includes(this.from)?2:4,mode:this.inputEditorMode})),this.outputEditor=CodeMirror.fromTextArea(this.outputEditorEl,Object.assign(Object.assign({},e),{readOnly:!0})),this.inputEditor.on("change",(()=>{this.convertible=""!==this.inputEditorValue.trim(),this.selectedSourceFile===this.customSourceFile&&(this.customSourceFile.code=this.inputEditorValue)})),this.inputEditor.on("keydown",((e,t)=>{!t.metaKey||"Enter"!==t.key&&"s"!==t.key||(t.preventDefault(),this.convert())}))}prepareSourceFiles(){if(this.sourceFiles=[],this.examples&&this.examples.length>0)try{this.sourceFiles.push(...JSON.parse(this.examples))}catch(e){console.error("Failed to load examples:",e)}this.customSourceFile={name:"Custom",description:`Convert your own ${this.sourceLanguageName} code.`,filename:this.inputEditorDefaultFilename,code:""},this.sourceFiles.push(this.customSourceFile),this.selectSourceFile(this.sourceFiles[0]),this.convert()}selectSourceFile(e){this.selectedSourceFile=e,this.inputEditor.setValue(e.code),this.inputEditor.clearHistory(),this.convert()}selectOutputLanguage(e){this.selectedOutputLanguage=e,this.convert()}setOutputResult(e){this.outputResult=e,this.outputEditor.setValue(e?e.code:"")}copyToClipboard(){Xi(this.outputEditor.getValue())}downloadZip(){const e=new JSZip;e.file(this.outputResult.filename,this.outputResult.code),e.generateAsync({type:"blob"}).then((e=>{saveAs(e,`${this.from}2pulumi.zip`)}))}dismissAlert(){this.alertDismissed=!0}async convert(){var e;this.setOutputResult(null);const t=this.inputEditorValue,n=this.selectedOutputLanguage;if(t){this.converting=!0,this.alertDismissed=!1;try{const r=await fetch([this.endpointURL,this.endpointPath].join("/"),{method:"POST",mode:"cors",body:JSON.stringify({code:t,language:n.key})}),i=await r.json();if(i.error)this.setOutputResult({filename:"",code:"",diagnostics:i.diagnostics||"",status:{success:!1,message:i.error}});else if(i.files){let[t,r]=Object.entries(i.files)[0];t.match(/\w+\.\w+/)||(t=this.supportedLanguages.find((e=>e.key===n.key)).filename);const o=(null===(e=i.diagnostics)||void 0===e?void 0:e.replace(/^no diagnostics$/,""))||"";t&&r&&this.setOutputResult({filename:t,code:r,diagnostics:o,status:{success:!0,message:t}}),o&&(this.outputResult.diagnostics=o)}}catch(e){console.error(`Submission failed: ${e}`)}this.converting=!1}}get statusBarClasses(){const e=["status-bar"];return this.converting&&e.push("converting"),this.outputResult&&(this.outputResult.diagnostics?e.push("warn"):e.push(this.outputResult.status.success?"success":"error")),e.join(" ")}combineClasses(...e){return e.filter((e=>e&&""!==e)).join(" ")}trackEventLabel(e){return this.from&&this.selectedOutputLanguage?["convert",this.from,e,this.selectedOutputLanguage.key].join("-"):""}renderToolDescription(){let e=this.conversionTool.githubURL?Xe("a",{href:this.conversionTool.githubURL},this.conversionTool.name):this.conversionTool.name;switch(this.from){case"tf":e=Xe("code",null,"pulumi convert --from terraform");break;case"arm":e=Xe("code",null,"pulumi convert --from arm");break;case"kube":e=Xe("code",null,"pulumi convert --from kubernetes")}return Xe("p",null,"Your code will be converted with"," ",e,", an open-source command-line tool we built to make it as easy as possible for you to migrate your existing ",this.sourceLanguageName," projects to Pulumi. The resulting file can be copied or downloaded for use with ",Xe("a",{href:"https://pulumi.com/start"},"a new Pulumi project"),".")}renderWindowBar(){return Xe("div",{class:"window-bar"},Xe("div",{class:"window-bar-buttons"},Xe("div",{class:"window-bar-button"}),Xe("div",{class:"window-bar-button"}),Xe("div",{class:"window-bar-button"})))}renderTab(e,t,n,r,i){return Xe("li",{onClick:i.bind(this,e),"data-track":this.trackEventLabel("tab"),class:this.combineClasses("tab",e===t?"active":""),title:r},Xe("span",{class:"label"},n),Xe("span",{class:"indicator"}))}renderConvertButton(e){var t;const n=`Convert this ${this.sourceLanguageName} code to ${null===(t=this.selectedOutputLanguage)||void 0===t?void 0:t.name}`,r=Xe("button",{onClick:this.convert.bind(this),"data-track":this.trackEventLabel("button"),class:this.combineClasses("btn-convert",this.converting?"converting":""),title:n,disabled:!this.convertible||this.converting},Xe("span",{class:"label"},"Convert"),Xe("span",{class:"icon"}));return e?Xe("pulumi-tooltip",null,r,Xe("span",{slot:"content"},n)):r}renderDismissAlertButton(){return Xe("button",{class:"toggle",title:"Dismiss this message",onClick:this.dismissAlert.bind(this)},Xe("span",{class:"icon"}))}renderStatusBar(e){var t,n,r,i;switch(e){case"input":return Xe("div",{class:"status-bar"},Xe("span",{class:"message"},null===(t=this.selectedSourceFile)||void 0===t?void 0:t.filename,(null===(n=this.selectedSourceFile)||void 0===n?void 0:n.description)?` • ${this.selectedSourceFile.description}`:""));case"output":return Xe("div",{class:this.statusBarClasses},Xe("span",{class:"icon"}),Xe("span",{class:"message"},null===(i=null===(r=this.outputResult)||void 0===r?void 0:r.status)||void 0===i?void 0:i.message),Xe("div",{class:this.combineClasses("alert","alert-error",this.alertDismissed?"dismissed":void 0)},this.renderDismissAlertButton(),Xe("p",null,Xe("strong",null,"Sorry, we were unable to convert your code.")),Xe("p",null,"There could be a problem with the code you submitted, or it might use a feature ",this.conversionTool.name," doesn't support. Join us in"," ",Xe("a",{href:"https://slack.pulumi.com/"},"Community Slack")," for help.")),Xe("div",{class:this.combineClasses("alert","alert-warn",this.alertDismissed?"dismissed":void 0)},this.renderDismissAlertButton(),Xe("p",null,Xe("strong",null,"Sorry, we were unable to convert your code completely.")),Xe("p",null,"The code was valid, but ",this.conversionTool.name," was unable to convert it completely. There could be a problem with the code you submitted, or it might use a feature ",this.conversionTool.name," doesn't support. Join us in ",Xe("a",{href:"https://slack.pulumi.com/"},"Community Slack")," for help.")));default:return Xe("div",{class:"status-bar"},Xe("span",{class:"message"}," "))}}renderDiagnostics(){var e,t;if(null===(e=this.outputResult)||void 0===e?void 0:e.diagnostics)return console.log("Conversion completed with errors. Diagnostics:"),console.log(null===(t=this.outputResult)||void 0===t?void 0:t.diagnostics),Xe("div",{class:"diagnostics"},Xe("p",null,Xe("strong",null,"Diagnostics:")),Xe("p",{class:"details"},this.outputResult.diagnostics))}render(){return Xe("div",null,Xe("div",{id:"editors"},Xe("div",{class:"editor editor-input"},Xe("div",{class:"editor-heading"},Xe("h3",null,Xe("span",{class:"editor-step"},"1"),"Start with some ",this.sourceLanguageName,"."),Xe("p",null,"We've included a few examples for reference — feel free to edit them as you like, or replace them with your own code. (And don't worry, we send your code over SSL and don't store anything on our servers.) When you're ready to transform your ",this.sourceLanguageName," code to Pulumi, select ",Xe("strong",null,"Convert"),".")),Xe("div",{class:"editor-container"},this.renderWindowBar(),Xe("ul",{class:"tabs"},this.sourceFiles.map((e=>this.renderTab(e,this.selectedSourceFile,e.name,e.description,this.selectSourceFile))),Xe("li",{class:"actions"},this.renderConvertButton(!0))),Xe("textarea",{id:"editor-input"}),this.renderStatusBar("input"))),Xe("div",{class:this.combineClasses("editor","editor-output",this.converting?"converting":"")},Xe("div",{class:"editor-heading"},Xe("h3",null,Xe("span",{class:"editor-step"},"2"),"Turn it into your language of choice."),this.renderToolDescription(),Xe("div",null,this.renderConvertButton(!1))),Xe("div",{class:"editor-container"},this.renderWindowBar(),Xe("ul",{class:"tabs"},this.supportedLanguages.map((e=>this.renderTab(e,this.selectedOutputLanguage,e.name,e.name,this.selectOutputLanguage))),Xe("li",{class:"actions"},Xe("pulumi-tooltip",null,Xe("button",{onClick:this.copyToClipboard.bind(this),"data-track":this.trackEventLabel("copy"),class:"btn-copy"},Xe("i",null)),Xe("span",{slot:"content"},"Copy to clipboard")),Xe("pulumi-tooltip",null,Xe("button",{onClick:this.downloadZip.bind(this),"data-track":this.trackEventLabel("download"),class:"btn-download"},Xe("i",null)),Xe("span",{slot:"content"},"Download as .zip")))),Xe("div",{class:"editor-spinner"}),Xe("textarea",{id:"editor-output"}),this.renderStatusBar("output")),this.renderDiagnostics())))}get el(){return this}static get style(){return"pulumi-convert{display:block}pulumi-convert textarea{opacity:0}"}},Zi=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.textClass="",this.containerClass="",this.valueLabelClass="",this.countdownOverText=""}componentWillLoad(){const e=new Date(this.dateString).getTime();this.generateCountdownData(e),setInterval((()=>this.generateCountdownData(e)),1e3)}generateCountdownData(e){const t=e-Date.now();this.countdownData={remainingTimeInMS:t,days:Math.floor(t/864e5),hours:Math.floor(t%864e5/36e5),minutes:Math.floor(t%36e5/6e4),seconds:Math.floor(t%6e4/1e3)}}renderValueLabel(e){return Xe("span",{class:this.valueLabelClass},e)}renderCountdownPart(e,t){return Xe("p",{class:this.textClass},e,this.renderValueLabel(t))}renderCountdown(){const{days:e,hours:t,minutes:n,seconds:r,remainingTimeInMS:i}=this.countdownData;return Xe("div",{class:this.containerClass},i>0?[this.renderCountdownPart(e,"Days"),this.renderCountdownPart(t,"Hours"),this.renderCountdownPart(n,"Minutes"),this.renderCountdownPart(r,"Seconds")]:Xe("p",{class:this.textClass},this.countdownOverText))}render(){return Xe(Ze,null,this.countdownData&&this.renderCountdown())}static get style(){return":host{display:block}"}},eo=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.containerClass="",this.valueLabelClass=""}componentWillLoad(){const e=new Date(this.dateString).getTime();this.generateCountdownData(e),setInterval((()=>this.generateCountdownData(e)),1e3)}generateCountdownData(e){const t=e-Date.now(),n=Math.floor(t/6048e5),r=Math.floor(t%6048e5/864e5),i=Math.floor(t%864e5/36e5),o=Math.floor(t%36e5/6e4),s=Math.floor(t%6e4/1e3),a=n/52*100,l=r/7*100,c=i/24*100,u=o/60*100,d=s/60*100;this.countdownData={remainingTimeInMS:t,weeks:n,days:r,hours:i,minutes:o,seconds:s,weeksPercent:a,daysPercent:l,hoursPercent:c,minutesPercent:u,secondsPercent:d}}renderValueLabel(e){return Xe("span",{class:this.valueLabelClass},e)}renderNumberCircle(e,t){return t<=0&&(t=0,e=0),Xe("div",{class:"timer-wrapper"},Xe("div",{class:"circle",style:{"--p":`${t}`}},e))}renderCountdownPart(e,t,n){return Xe("div",{class:"mx-4 text-center"},this.renderNumberCircle(e,n),this.renderValueLabel(t))}renderCountdown(){const{weeks:e,days:t,hours:n,minutes:r,seconds:i,weeksPercent:o,daysPercent:s,hoursPercent:a,minutesPercent:l,secondsPercent:c}=this.countdownData;return Xe("div",{class:this.containerClass},[this.renderCountdownPart(e,"Weeks",o),this.renderCountdownPart(t,"Days",s),this.renderCountdownPart(n,"Hours",a),this.renderCountdownPart(r,"Minutes",l),this.renderCountdownPart(i,"Seconds",c)])}render(){return Xe(Ze,null,this.countdownData&&this.renderCountdown())}static get style(){return".timer-wrapper{height:75px;width:75px;display:flex;align-items:center;justify-content:center}.circle{border-radius:50%;border:5px solid transparent;position:relative;width:100%;height:100%;background:linear-gradient(#fff, #fff) content-box no-repeat, conic-gradient(#805ac3 calc(var(--p)*1%), 0, #ededed 100%) border-box;display:flex;justify-content:center;align-items:center}"}},to=class extends HTMLElement{constructor(){super(),this.__registerHost(),Jt(this)}componentWillLoad(){const e=new Date(this.date),t=this.timeonly?{timeZoneName:"short",hour:"numeric",minute:"2-digit"}:{timeZoneName:"long",weekday:"short",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"2-digit"};this.date=e.toLocaleString(void 0,t)}render(){return Xe("time",{class:this.class||""},Xe("span",null,this.date))}static get style(){return":host{display:block}"}},no=class extends HTMLElement{constructor(){super(),this.__registerHost()}addLogo(e){return Object.assign(Object.assign({},e),{logo:function(){switch(e.source){case"twitter":return Xe("img",{class:"w-6",src:"/logos/tech/twitter.svg"});case"reddit":return Xe("img",{class:"w-6",src:"/logos/tech/reddit.svg"});case"email":return Xe("i",{class:"fas fa-envelope text-gray-500 text-xl"});case"blog":return Xe("i",{class:"fas fa-blog text-gray-500 text-xl"});case"slack":return Xe("img",{class:"w-6",src:"/logos/tech/slack.svg"});case"linkedin":return Xe("img",{class:"w-6",src:"/logos/tech/linkedin.svg"});default:return Xe("a",null,e.source)}}()})}enableLink(e){return!["slack","email"].includes(e)}render(){let e=JSON.parse(this.quotes).sort(((e,t)=>e.featured&&t.featured?0:e.featured&&!t.featured?-1:!e.featured&&t.featured?1:void 0)).map(this.addLogo).reduce(((e,t,n)=>(n%2?e[1].push(t):e[0].push(t),e)),[[],[]]);return Xe("div",{class:"lg:flex flex-row block"},e.map((e=>Xe("div",{class:"lg:w-6/12 w-12/12 mx-8"},e.map((e=>Xe("div",{class:"quote-card my-8 p-2 rounded-lg max-w-80"},Xe("a",{class:"flex flex-col",href:this.enableLink(e.source)?e.link:void 0,target:"_blank",rel:"noopener noreferrer"},Xe("div",{class:"w-full flex-grow text-justify p-3 text-gray-700"},'"',e.message,'"'),Xe("div",{class:"flex flex-row"},Xe("div",{class:"p-3 text-gray-500"},e.author),Xe("div",{class:"flex-grow"}),Xe("div",{class:"p-3"},e.logo))))))))))}static get style(){return"pulumi-developer-quotes .quote-card{box-shadow:0 6px 36px rgba(0, 0, 0, 0.1)}pulumi-developer-quotes .quote-card:hover{box-shadow:10px 15px 60px rgba(0, 0, 0, 0.2)}"}},ro=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.expandedMenuIDs=""}onClick(e){const t=e.target,n=t.nodeName.toLowerCase();"button"!==n&&"i"!==n||(t.closest("li").classList.toggle("expanded"),e.stopPropagation(),e.preventDefault())}componentDidRender(){const e=this.el.querySelector("a.active");if(e){let t=e.closest("pulumi-docs-nav li.expandable");for(;t;)t.classList.add("expanded"),t=t.parentElement.closest("pulumi-docs-nav li.expandable")}this.expandedMenuIDs.split(",").forEach((e=>{""!==e&&this.el.querySelectorAll(`[data-menu-id='${e}']`).forEach((e=>{e.classList.add("expanded")}))}))}render(){return Xe("slot",null)}get el(){return this}static get style(){return"pulumi-docs-nav{display:block}"}},io=class extends HTMLElement{constructor(){super(),this.__registerHost()}componentWillLoad(){const e="main h2[id]:not(.no-toc), main h3[id]:not(.no-toc)";this.headings=Array.from(document.querySelectorAll(e)).filter((e=>""!==e.getAttribute("id"))).filter((e=>!e.classList.contains("no-anchor"))).filter((e=>!e.classList.contains("no-toc")));const t=new IntersectionObserver((e=>{e.forEach((e=>{const t=e.target.getAttribute("id"),n=this.el.querySelector(`li a[href="#${t}"]`);n&&(e.intersectionRatio>0?n.parentElement.classList.add("active"):n.parentElement.classList.remove("active"))}))}));document.querySelectorAll(e).forEach((e=>{t.observe(e)}))}fixLabel(e){return e.replace(/:$/,"")}render(){return Xe("div",{class:"max-w-xs"},Xe("ul",{class:"list-none p-0 text-sm"},this.headings.map((e=>Xe("li",{class:`toc-level-${e.tagName.toLowerCase()}`},Xe("a",{href:`#${e.getAttribute("id")}`},this.fixLabel(e.textContent)))))))}get el(){return this}static get style(){return"pulumi-docs-toc{display:block}"}},oo=class extends HTMLElement{constructor(){super(),this.__registerHost()}render(){return Xe("div",null,Xe("slot",null))}static get style(){return""}},so=class extends HTMLElement{constructor(){super(),this.__registerHost()}componentWillRender(){const e=Array.from(this.el.querySelectorAll("pulumi-examples h3"));e.forEach((e=>{const t=document.createElement("span");e.prepend(t),e.addEventListener("click",(t=>{t.target.classList.contains("anchorjs-link")||this.toggle(e)}))})),e&&e.length>0&&this.toggle(e[0])}toggle(e){e.classList.toggle("expanded");let t=e.nextElementSibling;for(;t&&"DIV"===t.nodeName;)t.classList.toggle("expanded"),t=t.nextElementSibling}render(){return Xe("div",null,Xe("slot",null))}get el(){return this}static get style(){return""}},ao=class extends HTMLElement{constructor(){super(),this.__registerHost(),Jt(this),this.filterSelect=$t(this,"filterSelect",7),this.filters=[]}reset(){return this.options.forEach((e=>e.selected=!1)),this.groups.forEach((e=>e.close())),this.filterSelect.emit([]),Promise.resolve(null)}select(e){return this.options.forEach((t=>{t.value===e.value&&t.select()})),Promise.resolve()}deselect(e){return this.options.forEach((t=>{t.value===e.value&&t.deselect()})),Promise.resolve()}onOptionChange(e){e.stopPropagation(),this.filters=this.options.filter((e=>e.selected)).map((e=>({group:e.closest("pulumi-filter-select-option-group").name,value:e.value,label:e.label}))),this.filterSelect.emit(this.filters)}get groups(){return Array.from(this.el.querySelectorAll("pulumi-filter-select-option-group"))}get options(){return Array.from(this.el.querySelectorAll("pulumi-filter-select-option"))}render(){return Xe("div",null,Xe("slot",null))}get el(){return this}static get style(){return"div {\n display: flex;\n }"}},lo=class extends HTMLElement{constructor(){super(),this.__registerHost(),Jt(this),this.optionChange=$t(this,"optionChange",7)}select(){return this.selected=!0,this.emit(),Promise.resolve()}deselect(){return this.selected=!1,this.emit(),Promise.resolve()}onChange(e){this.selected=e.target.checked,this.emit()}emit(){this.optionChange.emit({option:{value:this.value,selected:this.selected,label:this.label}})}render(){return Xe("div",null,Xe("label",null,Xe("input",{type:"checkbox",value:this.value,onChange:this.onChange.bind(this),checked:this.selected,class:""+(this.selected?"selected":"")}),Xe("slot",null)))}get el(){return this}static get style(){return"label {\n white-space: nowrap;\n }\n\n input {\n margin-right: 0.5em;\n }"}},co=class extends HTMLElement{constructor(){super(),this.__registerHost(),Jt(this)}onToggle(){this.expanded=!this.expanded}onDocumentClick(e){!this.el.contains(e.target)&&this.expanded&&this.close()}close(){return this.expanded=!1,Promise.resolve(null)}render(){return Xe("div",null,Xe("div",{class:"button",role:"button",onClick:this.onToggle.bind(this)},Xe("span",{class:"toggle",part:"toggle"},Xe("slot",{name:"toggle"}))),Xe("div",{class:"menu"},Xe("div",null,Xe("slot",null))))}get el(){return this}static get style(){return'.menu {\n position: relative;\n transition: all 100ms;\n opacity: 0;\n top: -2px;\n pointer-events: none;\n z-index: 10;\n }\n\n .menu > div {\n position: absolute;\n }\n\n .button {\n cursor: pointer;\n }\n\n .button .toggle {\n margin-right: 0.5em;\n }\n\n .toggle {\n display: flex;\n }\n\n .toggle slot {\n position: relative;\n display: block;\n width: 100%;\n }\n\n :host([expanded]) .menu {\n opacity: 1;\n top: 0;\n pointer-events: auto;\n }\n\n .toggle slot::after {\n position: absolute;\n right: 0.5em;\n top: 50%;\n transform: translateY(-50%);\n content: "▾";\n }\n\n :host([expanded]) .toggle slot::after {\n transform: rotate(180deg) translateY(50%);\n }'}},uo=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.departments=[]}componentWillLoad(){this.fetchJobs()}async fetchJobs(){this.loading=!0;try{const e=await fetch("https://boards-api.greenhouse.io/v1/boards/pulumicorporation/departments"),t=await e.json();t&&t.departments&&(this.departments=t.departments.filter((e=>e.jobs.length>0)))}catch(e){console.error(e)}this.loading=!1}renderLoadingSpinner(){return Xe("div",{class:"loading-spinner"})}renderJobsList(){return this.departments.length>0?Xe("ul",{class:"departments"},this.departments.map((e=>Xe("li",null,Xe("h4",null,e.name),Xe("ul",{class:"jobs"},e.jobs.map((e=>Xe("li",null,Xe("a",{class:"job-title",href:e.absolute_url,target:"_blank",rel:"noreferrer noopener"},e.title),Xe("div",{class:"job-location"},e.location.name))))))))):Xe("div",null,Xe("p",null,"There are no open positions at this time."))}render(){return this.loading?this.renderLoadingSpinner():this.renderJobsList()}},po=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.isLoading=!0,this.didLoad=!1}componentWillLoad(){if(!this.formId)throw new Error("The required attribute `form-id` was not provided.");this.hubspotFormTargetId=`hubspotForm_${this.formId}`}componentDidLoad(){const e=window.hbspt;e?this.createForm(e):this.loadHubSpotFormsScript(),this.messageHandler=this.onMessage.bind(this),window.addEventListener("message",this.messageHandler)}disconnectedCallback(){window.removeEventListener("message",this.messageHandler)}onMessage(e){var t;if("hsFormCallback"!==(null===(t=e.data)||void 0===t?void 0:t.type))return;const n=e.data.eventName,r=this.getUTMCookieData();if("onFormReady"===n){this.isLoading=!1,this.didLoad=!0;this.el.querySelectorAll('input[type="hidden"]').forEach((e=>{const t=e.closest("fieldset");t&&(t.style.display="none")}));const e=this.el.querySelector('input[name="last_utm_campaign"]');e&&(e.value=r.campaign);const t=this.el.querySelector('input[name="last_utm_source"]');t&&(t.value=r.source);const n=this.el.querySelector('input[name="last_utm_medium"]');n&&(n.value=r.medium),this.setInternalAdId()}if("onFormSubmit"===n){const e=this.el.querySelector('input[name="email"]');this.notifySegment(e.value,r)}"onFormDefinitionFetchError"===n&&(this.isLoading=!1,this.didLoad=!1)}notifySegment(e,t){const n=window.analytics;if(n&&n.track&&"function"==typeof n.track&&""!==e){const r={formId:this.formId,email:e,utmCampaign:t.campaign,utmSource:t.source,utmMedium:t.medium};n.track("form-submission",r)}}setInternalAdId(){const e=oi("iaid");if(e){const t=this.el.querySelector('input[name="last_internal_ad_conversion"]');t&&(t.value=e)}}getUTMCookieData(){const e=si(),t=(e.__utmzz||"").split("|").reduce(((e,t)=>{const n=t.split("=");return e[n[0]]=n[1],e}),{});return{campaign:t.utmccn||"(not set)",source:t.utmcsr||"(direct)",medium:t.utmcmd||"(none)"}}loadHubSpotFormsScript(){const e=document.createElement("script");e.setAttribute("src","//js.hsforms.net/forms/v2.js"),e.onload=()=>{const e=window.hbspt;e?this.createForm(e):(this.isLoading=!1,this.didLoad=!1)},e.onerror=()=>{this.isLoading=!1,this.didLoad=!1},document.body.appendChild(e)}createForm(e){e.forms.create({portalId:"4429525",formId:this.formId,css:"",cssClass:this.class,goToWebinarWebinarKey:this.goToWebinarKey,target:`#${this.hubspotFormTargetId}`,sfdcCampaignId:this.salesforceCampaignId})}renderIsLoadingForm(){return Xe("p",null,Xe("i",{class:"fa fa-spinner fa-spin mr-2"}))}renderFailedToLoadForm(){return Xe("p",null,"There was a problem loading this form. Please try refreshing your browser, and if you continue to see this message, let us know at"," ",Xe("a",{href:"mailto:support@pulumi.com"},"support@pulumi.com"),".")}render(){return Xe("div",{id:this.hubspotFormTargetId},this.didLoad||this.isLoading?this.renderIsLoadingForm():this.renderFailedToLoadForm())}get el(){return this}static get style(){return":host{display:block}"}},fo=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.defaultTooltipContent="Copy command"}componentWillLoad(){this.tooltipContent=this.defaultTooltipContent}componentDidLoad(){this.os||(this.os=this.detectOS())}detectOS(){const e=navigator.appVersion;return-1!==e.indexOf("Win")?"windows":-1!==e.indexOf("Mac")?"macos":"linux"}get installCommand(){return{macos:"brew install pulumi",windows:"choco install pulumi",linux:"curl -fsSL https://get.pulumi.com | sh"}[this.os]}copyToClipboard(){Xi(this.installCommand.toString()).then((()=>{this.tooltipContent="Copied!",setTimeout((()=>this.tooltipContent=this.defaultTooltipContent),3e3)}))}render(){return Xe("div",null,Xe("div",{class:"command-text"},Xe("p",null,Xe("span",null,this.installCommand))),Xe("div",{class:"copy-button"},Xe("pulumi-tooltip",null,Xe("button",{onClick:this.copyToClipboard.bind(this)},Xe("i",{class:"far fa-copy"})),Xe("span",{slot:"content"},this.tooltipContent))))}get el(){return this}static get style(){return":host{display:block}"}},ho=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.items=[],this.defaultFormId="",this.formSubmitted=!1}componentWillLoad(){""!==this.defaultFormId&&(this.selectedItem=this.items.find((e=>e.hubspotFormId===this.defaultFormId)),this.selectedItem)||(this.selectedItem=this.items[0])}componentDidLoad(){this.windowEventHandler=this.handleWindowMessage.bind(this),window.addEventListener("message",this.windowEventHandler)}disconnectedCallback(){window.removeEventListener("message",this.windowEventHandler)}handleWindowMessage(e){if("hsFormCallback"===e.data.type&&"onFormReady"===e.data.eventName){this.el.querySelector("form.hs-form").addEventListener("submit",this.handleFormSubmit.bind(this))}}handleFormSubmit(){this.formSubmitted=!0}handleSelectChange(e){this.selectedItem=this.items.find((t=>t.hubspotFormId===e))}render(){var e;const t=null===(e=this.selectedItem)||void 0===e?void 0:e.hubspotFormId;return Xe("div",null,this.formSubmitted?null:Xe("span",null,Xe("span",{class:this.labelClass||""},this.labelText),Xe("select",{class:this.selectClass||"",onInput:e=>this.handleSelectChange(e.target.value)},this.items.map((e=>{const n=e.hubspotFormId===t;return Xe("option",{value:e.hubspotFormId,selected:n},e.label?e.label:e.key)})))),this.selectedItem.cta?Xe("div",{class:"mt-8"},Xe("a",{class:"btn-secondary",href:this.selectedItem.cta.url},this.selectedItem.cta.label)):Xe("pulumi-hubspot-form",{key:t,"form-id":t}))}get el(){return this}static get style(){return":host{display:block}"}},mo=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.duration="month",this.resourceCount=500,this.utilization=100,this.deploymentsExpanded=!1,this.deploymentMinutes=0}updateDuration(e){this.duration=e}getCostPerDeploymentMinute(){return.01}getFreeDeploymentMinutes(){return"month"===this.duration?3e3:100}getEstimatedCredits(){return"month"===this.duration?this.resourceCount*(this.utilization/100*24)*30:this.resourceCount*(this.utilization/100*24)}getEstimatedDeploymentMinutes(){return"month"===this.duration?30*this.deploymentMinutes:this.deploymentMinutes}updateDeploymentsExpanded(){this.deploymentsExpanded=!this.deploymentsExpanded}getFreeCredits(){return"month"===this.duration?15e4:5e3}getCostPerCredit(){return 5e-4}getTotal(){if(this.deploymentsExpanded){const e=(this.getEstimatedDeploymentMinutes()-this.getFreeDeploymentMinutes())*this.getCostPerDeploymentMinute(),t=(this.getEstimatedCredits()-this.getFreeCredits())*this.getCostPerCredit()+(e>0?e:0);return t>0?t:0}{const e=(this.getEstimatedCredits()-this.getFreeCredits())*this.getCostPerCredit();return e>0?e:0}}isTotalOverMax(){return this.getTotal()>1670&&"month"===this.duration||this.getTotal()>55&&"day"===this.duration}showFormattedTotal(){return`$${this.formatNumber(this.getTotal())} / ${"day"===this.duration?"day":"mo"}`}updateResourceCount(e){const t=e.target.value.trim();this.resourceCount=""===t?0:parseInt(t)}updateUtilization(e){const t=e.target.value.trim();this.utilization=""===t?1:parseInt(t)}updateDeploymentMinutes(e){const t=e.target.value.trim();this.deploymentMinutes=""===t?0:parseInt(t)}formatNumber(e){return(new Intl.NumberFormat).format(Math.round(e))}render(){return Xe("div",{class:"calculator"},Xe("h3",null,"IaC Cost estimator"),Xe("div",{class:"edition"},"Team Edition"),Xe("div",{class:"content"},Xe("div",{class:"inputs"},Xe("div",{class:"field"},Xe("div",{class:"title"},"Number of resources"),Xe("div",{class:"details"},Xe("div",{class:"description"},"All cloud resources cost the same amount in Pulumi Cloud. Look at your cloud account and enter here the number of resources."),Xe("div",{class:"input"},Xe("input",{class:"resource-count",type:"number",min:"0",onInput:e=>this.updateResourceCount(e),value:this.resourceCount})))),Xe("div",{class:"field"},Xe("div",{class:"title"},"Utilization"),Xe("div",{class:"details"},Xe("div",{class:"description"},"If you have resources that are being spun up and down throughout the day, estimate the percentage of the time the total resource count will be reached."),Xe("div",{class:"utilization"},Xe("div",{class:"input"},Xe("input",{type:"number",min:"1",max:"100",onInput:e=>this.updateUtilization(e),value:this.utilization}),Xe("span",{class:"percent"},"%")),Xe("input",{type:"range",min:"1",max:"100",step:"1",onInput:e=>this.updateUtilization(e),value:this.utilization,class:"range purple"})))),Xe("div",{class:this.deploymentsExpanded?"deployments":"deployments collapsed"},Xe("div",{class:"default"},Xe("i",{class:"fas fa-rocket"}),Xe("div",{class:"details"},Xe("div",{class:"title"},"Add on Pulumi Deployments"),Xe("div",{class:"subtitle"},"Run deployments remotely with a button, Git push, or REST API")),Xe("button",{onClick:()=>this.updateDeploymentsExpanded()},Xe("i",{class:this.deploymentsExpanded?"fas fa-minus":"fas fa-plus"}))),Xe("div",{class:this.deploymentsExpanded?"field visible":"field"},Xe("div",{class:"title"},"Deployment minutes per day"),Xe("div",{class:"details"},Xe("div",{class:"description"},"Deployment minutes refer to the duration of time elapsed when running deployments on Pulumi’s compute. Use your current update times and add buffer for any workflows that need to happen."),Xe("div",{class:"input"},Xe("input",{type:"number",min:"0",onInput:e=>this.updateDeploymentMinutes(e),value:this.deploymentMinutes})))))),Xe("div",{class:"outputs"},Xe("div",{class:"gradient"}),Xe("div",{class:"contents"},Xe("div",{class:"duration"},Xe("button",{class:"day"===this.duration?"active":null,onClick:()=>this.updateDuration("day")},"Per day"),Xe("button",{class:"month"===this.duration?"active":null,onClick:()=>this.updateDuration("month")},"Per month")),Xe("div",{class:"items"},Xe("div",{class:"item"},Xe("span",null,"Estimated credits per ",this.duration),Xe("span",null,this.formatNumber(this.getEstimatedCredits()))),Xe("div",{class:"item"},Xe("span",null,"Free credits included"),Xe("span",null,this.formatNumber(this.getFreeCredits()))),Xe("div",{class:"item"},Xe("span",null,"Cost per credit"),Xe("span",null,"$",this.getCostPerCredit())),Xe("div",{class:this.deploymentsExpanded?"deployment-total visible":"deployment-total"},Xe("div",{class:"subtitle"},"Deployments"),Xe("div",{class:"item"},Xe("span",null,"Estimated deployment minutes per ",this.duration),Xe("span",null,this.formatNumber(this.getEstimatedDeploymentMinutes()))),Xe("div",{class:"item"},Xe("span",null,"Deployment minutes included"),Xe("span",null,this.formatNumber(this.getFreeDeploymentMinutes()))),Xe("div",{class:"item"},Xe("span",null,"Cost per deployment minute"),Xe("span",null,"$",this.getCostPerDeploymentMinute())))),Xe("div",{class:"divider"}),Xe("div",{class:this.isTotalOverMax()?"total over-max":"total"},Xe("span",{class:"contact"},Xe("a",{href:"/contact/?form=sales"},"Contact sales"),"for bulk discounts"),Xe("span",{class:this.isTotalOverMax()?"blurred":""},this.showFormattedTotal()))))))}static get style(){return'.calculator{margin-right:36px;margin-left:36px}.calculator h3{text-align:center;color:#000;font-family:"Gilroy";font-size:48px;font-weight:500}.calculator .edition{text-align:center;font-family:"Gilroy";font-size:28px;margin-bottom:36px}.calculator .content{display:flex;flex-direction:row;gap:60px}.calculator .inputs{display:flex;flex-direction:column;flex-grow:1}.calculator .field{margin-bottom:36px}.calculator .field .title{color:#131314;font-family:"Gilroy";font-size:24px;font-weight:500}.calculator .field .details{display:flex;flex-direction:row;justify-content:space-between}.calculator .field .details .description{width:400px;font-family:"Inter";font-size:16px;font-style:normal;font-weight:400;color:#2f3032}.calculator .field .details .utilization{margin-top:0px}.calculator .field .details .input{width:140px;padding:8px 12px;border-radius:4px;border:1px solid #bebfc9;height:48px}.calculator .field .details .input input{all:unset;width:80%}.calculator .field .details .input .percent{color:lightgray}.calculator .outputs{width:50%;max-width:530px;border-radius:12px;background:#fff;box-shadow:0px 6px 36px 0px rgba(0, 0, 0, 0.14)}.calculator .outputs .contents{display:flex;padding:36px;flex-direction:column;align-items:flex-start;gap:36px}.calculator .outputs .gradient{border-radius:12px 12px 0px 0px;height:8px;background:linear-gradient(90deg, #f7bf2a 0%, #f26e7e 18.23%, #be5188 38.02%, #8a3391 53.65%, #805ac3 74.48%, #7682f4 100%)}.calculator .outputs .duration{display:flex;align-self:center}.calculator .outputs .duration button{display:flex;padding:8px 12px;align-items:flex-start;color:#8e8f97;font-family:Inter;font-size:14px;font-style:normal;font-weight:500;border:1px solid #8e8f97}.calculator .outputs .duration button:first-of-type{border-radius:4px 0px 0px 4px}.calculator .outputs .duration button:last-of-type{border-radius:0px 4px 4px 0px}.calculator .outputs .duration button.active{color:#131314;background-color:#f2eff9;border:1px solid #805ac3}.calculator .outputs .items,.calculator .outputs .deployment-total{display:flex;flex-direction:column;gap:12px;color:#2f3032;font-family:"Inter";font-size:16px;font-weight:400;width:100%}.calculator .outputs .items .item,.calculator .outputs .deployment-total .item{flex-grow:1;display:flex;gap:36px;justify-content:space-between}.calculator .outputs .divider{width:100%;border-bottom:1px solid #bebfc9}.calculator .outputs .deployment-total{display:none}.calculator .outputs .deployment-total.visible{display:flex}.calculator .outputs .deployment-total .subtitle{font-weight:600}.calculator .outputs .deployment-total .item{margin-left:16px}.calculator .outputs .total{display:flex;width:100%;color:#805ac3;font-family:"Inter";font-size:30px;font-style:normal;font-weight:700;justify-content:end;gap:4px}.calculator .outputs .total .contact{display:none}.calculator .outputs .total.over-max{justify-content:space-between}.calculator .outputs .total.over-max .contact{align-self:center;display:inline-block;font-size:16px;line-height:24px;font-weight:600;color:#131314}.calculator .outputs .total.over-max .contact a{color:#4d5bd9;margin-right:4px}.calculator .outputs .total.over-max .blurred{filter:blur(16px)}.calculator input::-webkit-outer-spin-button,.calculator input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.calculator input[type=number]{-moz-appearance:textfield}.calculator .deployments{border-radius:4px;border:1px solid #805ac3;display:flex;flex-direction:column;width:100%;padding:24px}.calculator .deployments i{color:#805ac3;height:24px;width:24px;font-size:24px}.calculator .deployments.collapsed:hover{background:rgba(242, 239, 249, 0.5)}.calculator .deployments .default{display:flex;align-items:center;gap:24px}.calculator .deployments .default .details{flex-grow:1;display:flex;flex-direction:column;color:#2f3032}.calculator .deployments .default .details .title{font-family:"Inter";font-size:18px;font-weight:600;margin-bottom:16px}.calculator .deployments .default .details .subtitle{font-family:"Inter";font-size:16px;font-weight:400;line-height:normal}.calculator .deployments .field{margin-top:60px;display:none;margin-bottom:0px;flex-direction:column}.calculator .deployments .field.visible{display:flex}.range{-webkit-appearance:none;-moz-appearance:none;width:140px;display:block;margin-top:16px}input[type=range]::-webkit-slider-runnable-track{-webkit-appearance:none;border-radius:10px;background:#4776e6;background:linear-gradient(90deg, #f7bf2a 0%, #f26e7e 18.23%, #be5188 38.02%, #8a3391 53.65%, #805ac3 74.48%, #7682f4 100%);height:7.5px}input[type=range]:focus{outline:none}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;border:2px solid;border-radius:50%;height:16px;width:16px;bottom:4px;position:relative;background-color:rgba(242, 239, 249, 0.5);cursor:-webkit-grab;-webkit-transition:border 1000ms ease;transition:border 1000ms ease}.range.purple::-webkit-slider-thumb{border-color:#805ac3}@media (max-width: 1280px){.calculator .field .details{flex-direction:column}.calculator .field .details .input{margin-top:16px}}@media (max-width: 1024px){.calculator .content{flex-direction:column}.calculator .outputs{width:100%;max-width:1200px}}@media (max-width: 640px){.calculator .field .details .description{width:100%}.calculator .field .details .input{width:100%}.range{width:100%}}'}},vo=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.packageSearch=$t(this,"packageSearch",7),this.filterContent="",this.debouncedFilter=mi.debounce(this.debouncedFilter,300)}debouncedFilter(e){this.filterContent=e.value,this.packageSearch.emit(this.filterContent)}onChange(e){this.debouncedFilter(e)}onClearFilter(){this.filterContent="",this.packageSearch.emit(this.filterContent)}reset(){this.filterContent=""}render(){return Xe("div",{class:"input-container"},Xe("i",{class:"search-icon fas fa-filter"}),Xe("input",{class:"registry-filter-input",placeholder:"Filter by package name...",onInput:e=>this.onChange(e.target),value:this.filterContent,autocomplete:"off"}),this.filterContent&&Xe("div",{class:"clear-container"},Xe("button",{onClick:this.onClearFilter.bind(this),class:"clear-filter-button"},Xe("i",{class:"fas fa-times"}))))}static get style(){return'.input-container{display:inline-block;position:relative;width:100%;max-width:550px}.input-container .clear-container{position:absolute;display:flex;align-items:center;margin-right:6px;top:0;right:0;height:100%}.input-container .search-icon{position:absolute;display:flex;align-items:center;height:100%;padding-left:12px;color:#b0b0b0}.input-container .clear-filter-button{display:flex;align-items:center;justify-content:center;height:18px;width:18px;font-size:xx-small;background:#dcdcdc;color:#808080;border-radius:50%;border:none;cursor:pointer;padding:0px}.input-container .registry-filter-input{font-family:"Inter";font-size:14px;height:36px;width:100%;border-radius:4px;border:2px solid #000;padding:6px;padding-left:40px;margin-top:0}.input-container .registry-filter-input:focus{outline-color:#4d5bd9}.input-container .registry-filter-input::placeholder{font-style:italic;color:#808080}'}},go=class extends HTMLElement{constructor(){super(),this.__registerHost()}componentWillLoad(){fetch("https://www.pulumi.com/uploads/related-resources/2022-12-19.json").then((e=>e.json())).then((e=>{const t=e;if(t){const e=this.packageName.toLowerCase(),n=this.moduleName.toLowerCase(),r=this.resourceName.toLowerCase();this.related=t[e]&&t[e][n]?t[e][n][r]:void 0}})).catch((e=>console.error(e)))}render(){if(!this.related)return Xe("div",null);const e=this.packageName.toLowerCase();return Xe("div",{class:"container"},Xe("hr",{class:"mr-5"}),Xe("div",{class:"heading"},"Related Resources"),this.related.map((t=>{const n=t.split("/");let r=n.slice(0,n.length-1).join("/");const i=n[n.length-1],o=`/registry/packages/${e}/api-docs/${r.toLowerCase()}/${i.toLowerCase()}/`;return Xe("div",{class:"links"},Xe("a",{href:o},`${r}`,".",`${i}`))})))}};function yo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wo(e){for(var t=1;t({persona:"developer",language:"typescript",k8sLanguage:"typescript",os:Do(),cloud:"aws",backend:"service"}))(),t)=>{switch(t.type){case _i.SET_LANGUAGE:return Object.assign(Object.assign({},e),{language:t.key});case _i.SET_K8S_LANGUAGE:return Object.assign(Object.assign({},e),{k8sLanguage:t.key});case _i.SET_OS:return Object.assign(Object.assign({},e),{os:t.key});case _i.SET_CLOUD:return Object.assign(Object.assign({},e),{cloud:t.key});case _i.SET_PERSONA:return Object.assign(Object.assign({},e),{persona:t.key});case _i.SET_BACKEND:return Object.assign(Object.assign({},e),{backend:t.key});default:return e}},banners:(e={dismissed:[]},t)=>{if(t.type===_i.DISMISS_BANNER){const{name:n,dismissedAt:r}=t.payload;return Object.assign(Object.assign({},e),{dismissed:[...e.dismissed.filter((e=>e.name!==n)),{name:n,dismissedAt:r}]})}return e},user:(e=(()=>({id:Mo().userId}))(),t)=>t.type===_i.GET_USER_INFO?Object.assign(Object.assign({},e),{id:Mo().userId}):e}),Ro=()=>{let e;try{e=localStorage.getItem("pulumi_state")}catch(e){console.error("Failed to read pulumi_state from localStorage:",e)}const t=e?JSON.parse(e):{},n=ko(No,function(e){let t={};try{if(e.banners&&Array.isArray(e.banners.dismissed)){const n=Date.now()-3456e5;t.banners={dismissed:e.banners.dismissed.filter((e=>!!e.name&&e.dismissedAt&&e.dismissedAt>n))}}e.preferences&&(t.preferences={language:e.preferences.language||"typescript",os:e.preferences.os||"macos",cloud:e.preferences.cloud||"aws",k8sLanguage:e.preferences.k8sLanguage||"typescript",persona:e.preferences.persona||"developer",backend:e.backend||"service"})}catch(e){return t}return t}(t),Io.composeWithDevTools(Po(Lo)));return n.subscribe((()=>{const e=n.getState();try{localStorage.setItem("pulumi_state",JSON.stringify(e))}catch(e){console.error("Failed to save pulumi_state:",e)}})),setInterval((()=>{n.dispatch({type:_i.GET_USER_INFO})}),3e3),n};const Fo=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.rendered=$t(this,"rendered",7)}componentWillLoad(){wi.setStore(Ro()),wi.mapDispatchToProps(this,{setLanguage:ki})}componentDidRender(){this.setSelectedLanguage(),this.rendered.emit()}render(){return Xe("div",null)}setSelectedLanguage(){const e=oi("language");e&&this.setLanguage(e);const t=window.location.hash;if(t){const e=t.split("_").slice(-1).find((e=>["typescript","javascript","csharp","go","python"].includes(e)));e&&this.setLanguage(e)}}},Bo=class extends HTMLElement{constructor(){super(),this.__registerHost()}componentDidLoad(){this.runSlotMachine()}runSlotMachine(){this.leftSwiper.stopSwiper(),this.centerSwiper.stopSwiper(),this.rightSwiper.stopSwiper(),setTimeout((()=>{this.leftSwiper.startSwiper()}),100),setTimeout((()=>{this.centerSwiper.startSwiper()}),500),setTimeout((()=>{this.rightSwiper.startSwiper()}),1e3),setTimeout((()=>{this.leftSwiper.stopSwiper()}),3e3),setTimeout((()=>{this.centerSwiper.stopSwiper()}),3500),setTimeout((()=>{this.rightSwiper.stopSwiper()}),4e3),setTimeout((()=>{this.leftSwiper.startSwiper(),this.centerSwiper.startSwiper(),this.rightSwiper.startSwiper(),this.runSlotMachine()}),7e3)}renderImageList(e){const t=this.imageClass||"";return e.map((e=>Xe("pulumi-swipeable",null,Xe("img",{class:t,src:e,alt:""}))))}render(){return Xe("ul",null,Xe("li",null,Xe("pulumi-swiper",{ref:e=>this.leftSwiper=e,direction:"vertical",slides:3,"centered-slides":!0,loop:!0,autoplay:!0,autoplayDelay:300,speed:1e3,"enable-mouse-events":!1,"space-between":120},this.renderImageList(this.leftImages.split(",")))),Xe("li",null,Xe("pulumi-swiper",{ref:e=>this.centerSwiper=e,direction:"vertical",slides:3,"centered-slides":!0,loop:!0,autoplay:!0,autoplayDelay:300,speed:1e3,"enable-mouse-events":!1,"space-between":120},this.renderImageList(this.centerImages.split(",")))),Xe("li",null,Xe("pulumi-swiper",{ref:e=>this.rightSwiper=e,direction:"vertical",slides:3,"centered-slides":!0,loop:!0,autoplay:!0,autoplayDelay:300,speed:1e3,"enable-mouse-events":!1,"space-between":120},this.renderImageList(this.rightImages.split(",")))))}static get style(){return":host{display:block}"}},qo=class extends HTMLElement{constructor(){super(),this.__registerHost()}render(){return Xe(Ze,{class:"swiper-slide"},Xe("slot",null))}};function zo(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function Ho(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:zo(t[n])&&zo(e[n])&&Object.keys(t[n]).length>0&&Ho(e[n],t[n])}))}var Uo={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Vo(){var e="undefined"!=typeof document?document:{};return Ho(e,Uo),e}var Wo={document:Uo,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function Go(){var e="undefined"!=typeof window?window:{};return Ho(e,Wo),e}function Ko(e){return Ko=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ko(e)}function Jo(e,t){return Jo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Jo(e,t)}function Yo(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function Xo(e,t,n){return Xo=Yo()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Jo(i,n.prototype),i},Xo.apply(null,arguments)}function Qo(e){var t="function"==typeof Map?new Map:void 0;return Qo=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Xo(e,arguments,Ko(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Jo(r,e)},Qo(e)}var Zo=function(e){var t,n;function r(t){var n,r,i;return n=e.call.apply(e,[this].concat(t))||this,r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n),i=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return i},set:function(e){i.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Qo(Array));function es(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,es(e)):t.push(e)})),t}function ts(e,t){return Array.prototype.filter.call(e,t)}function ns(e,t){var n=Go(),r=Vo(),i=[];if(!t&&e instanceof Zo)return e;if(!e)return new Zo(i);if("string"==typeof e){var o=e.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){var s="div";0===o.indexOf("0})).length>0},toggleClass:function(){for(var e=arguments.length,t=new Array(e),n=0;n=0;f-=1){var h=p[f];o&&h.listener===o||o&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===o?(d.removeEventListener(c,h.proxyListener,s),p.splice(f,1)):o||(d.removeEventListener(c,h.proxyListener,s),p.splice(f,1))}}return this},trigger:function(){for(var e=Go(),t=arguments.length,n=new Array(t),r=0;r0})),c.dispatchEvent(u),c.dom7EventData=[],delete c.dom7EventData}}return this},transitionEnd:function(e){var t=this;return e&&t.on("transitionend",(function n(r){r.target===this&&(e.call(this,r),t.off("transitionend",n))})),this},outerWidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){var e=Go();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){var e=Go(),t=Vo(),n=this[0],r=n.getBoundingClientRect(),i=t.body,o=n.clientTop||i.clientTop||0,s=n.clientLeft||i.clientLeft||0,a=n===e?e.scrollY:n.scrollTop,l=n===e?e.scrollX:n.scrollLeft;return{top:r.top+a-o,left:r.left+l-s}}return null},css:function(e,t){var n,r=Go();if(1===arguments.length){if("string"!=typeof e){for(n=0;nt-1)return ns([]);if(e<0){var n=t+e;return ns(n<0?[]:[this[n]])}return ns([this[e]])},append:function(){for(var e,t=Vo(),n=0;n=0;n-=1)this[t].insertBefore(i.childNodes[n],this[t].childNodes[0])}else if(e instanceof Zo)for(n=0;n0?e?this[0].nextElementSibling&&ns(this[0].nextElementSibling).is(e)?ns([this[0].nextElementSibling]):ns([]):this[0].nextElementSibling?ns([this[0].nextElementSibling]):ns([]):ns([])},nextAll:function(e){var t=[],n=this[0];if(!n)return ns([]);for(;n.nextElementSibling;){var r=n.nextElementSibling;e?ns(r).is(e)&&t.push(r):t.push(r),n=r}return ns(t)},prev:function(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&ns(t.previousElementSibling).is(e)?ns([t.previousElementSibling]):ns([]):t.previousElementSibling?ns([t.previousElementSibling]):ns([])}return ns([])},prevAll:function(e){var t=[],n=this[0];if(!n)return ns([]);for(;n.previousElementSibling;){var r=n.previousElementSibling;e?ns(r).is(e)&&t.push(r):t.push(r),n=r}return ns(t)},parent:function(e){for(var t=[],n=0;n6&&(r=r.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),i=new o.WebKitCSSMatrix("none"===r?"":r)):n=(i=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(r=o.WebKitCSSMatrix?i.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===t&&(r=o.WebKitCSSMatrix?i.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),r||0}function us(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function ds(){for(var e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"],n=1;n=0,observer:"MutationObserver"in e||"WebkitMutationObserver"in e,passiveListener:function(){var t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t=!0}});e.addEventListener("testPassiveListener",null,n)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),rs}function hs(e){return void 0===e&&(e={}),is||(is=function(e){var t=(void 0===e?{}:e).userAgent,n=fs(),r=Go(),i=r.navigator.platform,o=t||r.navigator.userAgent,s={ios:!1,android:!1},a=r.screen.width,l=r.screen.height,c=o.match(/(Android);?[\s\/]+([\d.]+)?/),u=o.match(/(iPad).*OS\s([\d_]+)/),d=o.match(/(iPod)(.*OS\s([\d_]+))?/),p=!u&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="Win32"===i,h="MacIntel"===i;return!u&&h&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(a+"x"+l)>=0&&((u=o.match(/(Version)\/([\d.]+)/))||(u=[0,1,"13_0_0"]),h=!1),c&&!f&&(s.os="android",s.android=!0),(u||p||d)&&(s.os="ios",s.ios=!0),s}(e)),is}function ms(){return os||(os=function(){var e,t=Go();return{isEdge:!!t.navigator.userAgent.match(/Edge/g),isSafari:(e=t.navigator.userAgent.toLowerCase(),e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}()),os}Object.keys(ss).forEach((function(e){Object.defineProperty(ns.fn,e,{value:ss[e],writable:!0})}));const vs={name:"resize",create:function(){var e=this;ds(e,{resize:{observer:null,createObserver:function(){e&&!e.destroyed&&e.initialized&&(e.resize.observer=new ResizeObserver((function(t){var n=e.width,r=e.height,i=n,o=r;t.forEach((function(t){var n=t.contentBoxSize,r=t.contentRect,s=t.target;s&&s!==e.el||(i=r?r.width:(n[0]||n).inlineSize,o=r?r.height:(n[0]||n).blockSize)})),i===n&&o===r||e.resize.resizeHandler()})),e.resize.observer.observe(e.el))},removeObserver:function(){e.resize.observer&&e.resize.observer.unobserve&&e.el&&(e.resize.observer.unobserve(e.el),e.resize.observer=null)},resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(e){var t=Go();e.params.resizeObserver&&void 0!==Go().ResizeObserver?e.resize.createObserver():(t.addEventListener("resize",e.resize.resizeHandler),t.addEventListener("orientationchange",e.resize.orientationChangeHandler))},destroy:function(e){var t=Go();e.resize.removeObserver(),t.removeEventListener("resize",e.resize.resizeHandler),t.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}};function gs(){return gs=Object.assign||function(e){for(var t=1;t=0&&t.eventsAnyListeners.splice(n,1),t},off:function(e,t){var n=this;return n.eventsListeners?(e.split(" ").forEach((function(e){void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((function(r,i){(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)}))})),n):n},emit:function(){var e,t,n,r=this;if(!r.eventsListeners)return r;for(var i=arguments.length,o=new Array(i),s=0;s=0&&(b=parseFloat(b.replace("%",""))/100*o),e.virtualSize=-b,s?u.css({marginLeft:"",marginTop:""}):u.css({marginRight:"",marginBottom:""}),r.slidesPerColumn>1&&(x=Math.floor(d/r.slidesPerColumn)===d/e.params.slidesPerColumn?d:Math.ceil(d/r.slidesPerColumn)*r.slidesPerColumn,"auto"!==r.slidesPerView&&"row"===r.slidesPerColumnFill&&(x=Math.max(x,r.slidesPerView*r.slidesPerColumn)));for(var $,k,C,E=r.slidesPerColumn,T=x/E,P=Math.floor(d/r.slidesPerColumn),j=0;j1){var A=void 0,L=void 0,D=void 0;if("row"===r.slidesPerColumnFill&&r.slidesPerGroup>1){var M=Math.floor(j/(r.slidesPerGroup*r.slidesPerColumn)),N=j-r.slidesPerColumn*r.slidesPerGroup*M,R=0===M?r.slidesPerGroup:Math.min(Math.ceil((d-M*E*r.slidesPerGroup)/E),r.slidesPerGroup);A=(L=N-(D=Math.floor(N/R))*R+M*r.slidesPerGroup)+D*x/E,I.css({"-webkit-box-ordinal-group":A,"-moz-box-ordinal-group":A,"-ms-flex-order":A,"-webkit-order":A,order:A})}else"column"===r.slidesPerColumnFill?(D=j-(L=Math.floor(j/E))*E,(L>P||L===P&&D===E-1)&&(D+=1)>=E&&(D=0,L+=1)):L=j-(D=Math.floor(j/T))*T;I.css(t("margin-top"),0!==D&&r.spaceBetween&&r.spaceBetween+"px")}if("none"!==I.css("display")){if("auto"===r.slidesPerView){var F=getComputedStyle(I[0]),B=I[0].style.transform,q=I[0].style.webkitTransform;if(B&&(I[0].style.transform="none"),q&&(I[0].style.webkitTransform="none"),r.roundLengths)O=e.isHorizontal()?I.outerWidth(!0):I.outerHeight(!0);else{var z=n(F,"width"),H=n(F,"padding-left"),U=n(F,"padding-right"),V=n(F,"margin-left"),W=n(F,"margin-right"),G=F.getPropertyValue("box-sizing");if(G&&"border-box"===G)O=z+V+W;else{var K=I[0],J=K.clientWidth;O=z+H+U+V+W+(K.offsetWidth-J)}}B&&(I[0].style.transform=B),q&&(I[0].style.webkitTransform=q),r.roundLengths&&(O=Math.floor(O))}else O=(o-(r.slidesPerView-1)*b)/r.slidesPerView,r.roundLengths&&(O=Math.floor(O)),u[j]&&(u[j].style[t("width")]=O+"px");u[j]&&(u[j].swiperSlideSize=O),h.push(O),r.centeredSlides?(w=w+O/2+_/2+b,0===_&&0!==j&&(w=w-o/2-b),0===j&&(w=w-o/2-b),Math.abs(w)<.001&&(w=0),r.roundLengths&&(w=Math.floor(w)),S%r.slidesPerGroup==0&&p.push(w),f.push(w)):(r.roundLengths&&(w=Math.floor(w)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup==0&&p.push(w),f.push(w),w=w+O+b),e.virtualSize+=O+b,_=O,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,o)+v,s&&a&&("slide"===r.effect||"coverflow"===r.effect)&&i.css({width:e.virtualSize+r.spaceBetween+"px"}),r.setWrapperSize)i.css(((k={})[t("width")]=e.virtualSize+r.spaceBetween+"px",k));if(r.slidesPerColumn>1)if(e.virtualSize=(O+r.spaceBetween)*x,e.virtualSize=Math.ceil(e.virtualSize/r.slidesPerColumn)-r.spaceBetween,i.css(((C={})[t("width")]=e.virtualSize+r.spaceBetween+"px",C)),r.centeredSlides){$=[];for(var Y=0;Y1&&p.push(e.virtualSize-o)}if(0===p.length&&(p=[0]),0!==r.spaceBetween){var ee,te=e.isHorizontal()&&s?"marginLeft":t("marginRight");u.filter((function(e,t){return!r.cssMode||t!==u.length-1})).css(((ee={})[te]=b+"px",ee))}if(r.centeredSlides&&r.centeredSlidesBounds){var ne=0;h.forEach((function(e){ne+=e+(r.spaceBetween?r.spaceBetween:0)}));var re=(ne-=r.spaceBetween)-o;p=p.map((function(e){return e<0?-m:e>re?re+v:e}))}if(r.centerInsufficientSlides){var ie=0;if(h.forEach((function(e){ie+=e+(r.spaceBetween?r.spaceBetween:0)})),(ie-=r.spaceBetween)1)if(n.params.centeredSlides)n.visibleSlides.each((function(e){r.push(e)}));else for(t=0;tn.slides.length&&!i)break;r.push(s(a))}else r.push(s(n.activeIndex));for(t=0;to?l:o}o&&n.$wrapperEl.css("height",o+"px")},updateSlidesOffset:function(){for(var e=this.slides,t=0;t=0&&c1&&u<=t.size||c<=0&&u>=t.size)&&(t.visibleSlides.push(a),t.visibleSlidesIndexes.push(s),r.eq(s).addClass(n.slideVisibleClass))}a.progress=i?-l:l}t.visibleSlides=ns(t.visibleSlides)}},updateProgress:function(e){var t=this;if(void 0===e){var n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}var r=t.params,i=t.maxTranslate()-t.minTranslate(),o=t.progress,s=t.isBeginning,a=t.isEnd,l=s,c=a;0===i?(o=0,s=!0,a=!0):(s=(o=(e-t.minTranslate())/i)<=0,a=o>=1),ds(t,{progress:o,isBeginning:s,isEnd:a}),(r.watchSlidesProgress||r.watchSlidesVisibility||r.centeredSlides&&r.autoHeight)&&t.updateSlidesProgress(e),s&&!l&&t.emit("reachBeginning toEdge"),a&&!c&&t.emit("reachEnd toEdge"),(l&&!s||c&&!a)&&t.emit("fromEdge"),t.emit("progress",o)},updateSlidesClasses:function(){var e,t=this,n=t.slides,r=t.params,i=t.$wrapperEl,o=t.activeIndex,s=t.realIndex,a=t.virtual&&r.virtual.enabled;n.removeClass(r.slideActiveClass+" "+r.slideNextClass+" "+r.slidePrevClass+" "+r.slideDuplicateActiveClass+" "+r.slideDuplicateNextClass+" "+r.slideDuplicatePrevClass),(e=a?t.$wrapperEl.find("."+r.slideClass+'[data-swiper-slide-index="'+o+'"]'):n.eq(o)).addClass(r.slideActiveClass),r.loop&&(e.hasClass(r.slideDuplicateClass)?i.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+s+'"]').addClass(r.slideDuplicateActiveClass):i.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+s+'"]').addClass(r.slideDuplicateActiveClass));var l=e.nextAll("."+r.slideClass).eq(0).addClass(r.slideNextClass);r.loop&&0===l.length&&(l=n.eq(0)).addClass(r.slideNextClass);var c=e.prevAll("."+r.slideClass).eq(0).addClass(r.slidePrevClass);r.loop&&0===c.length&&(c=n.eq(-1)).addClass(r.slidePrevClass),r.loop&&(l.hasClass(r.slideDuplicateClass)?i.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicateNextClass):i.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicateNextClass),c.hasClass(r.slideDuplicateClass)?i.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicatePrevClass):i.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicatePrevClass)),t.emitSlidesClasses()},updateActiveIndex:function(e){var t,n=this,r=n.rtlTranslate?n.translate:-n.translate,i=n.slidesGrid,o=n.snapGrid,s=n.params,a=n.activeIndex,l=n.realIndex,c=n.snapIndex,u=e;if(void 0===u){for(var d=0;d=i[d]&&r=i[d]&&r=i[d]&&(u=d);s.normalizeSlideIndex&&(u<0||void 0===u)&&(u=0)}if(o.indexOf(r)>=0)t=o.indexOf(r);else{var p=Math.min(s.slidesPerGroupSkip,u);t=p+Math.floor((u-p)/s.slidesPerGroup)}if(t>=o.length&&(t=o.length-1),u!==a){var f=parseInt(n.slides.eq(u).attr("data-swiper-slide-index")||u,10);ds(n,{snapIndex:t,realIndex:f,previousIndex:a,activeIndex:u}),n.emit("activeIndexChange"),n.emit("snapIndexChange"),l!==f&&n.emit("realIndexChange"),(n.initialized||n.params.runCallbacksOnInit)&&n.emit("slideChange")}else t!==c&&(n.snapIndex=t,n.emit("snapIndexChange"))},updateClickedSlide:function(e){var t,n=this,r=n.params,i=ns(e.target).closest("."+r.slideClass)[0],o=!1;if(i)for(var s=0;sc?c:r&&e=c.length&&(g=c.length-1),(p||l.initialSlide||0)===(d||0)&&n&&s.emit("beforeSlideChangeStart");var y,b=-c[g];if(s.updateProgress(b),l.normalizeSlideIndex)for(var w=0;w=S&&_=S&&_=S&&(a=w)}if(s.initialized&&a!==p){if(!s.allowSlideNext&&bs.translate&&b>s.maxTranslate()&&(p||0)!==a)return!1}if(y=a>p?"next":a=e&&(f=e)})),void 0!==f&&(p=a.indexOf(f))<0&&(p=r.activeIndex-1),r.slideTo(p,e,t,n)},slideReset:function(e,t,n){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,n)},slideToClosest:function(e,t,n,r){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===r&&(r=.5);var i=this,o=i.activeIndex,s=Math.min(i.params.slidesPerGroupSkip,o),a=s+Math.floor((o-s)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[a]){var c=i.snapGrid[a];l-c>(i.snapGrid[a+1]-c)*r&&(o+=i.params.slidesPerGroup)}else{var u=i.snapGrid[a-1];l-u<=(i.snapGrid[a]-u)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,n)},slideToClickedSlide:function(){var e,t=this,n=t.params,r=t.$wrapperEl,i="auto"===n.slidesPerView?t.slidesPerViewDynamic():n.slidesPerView,o=t.clickedIndex;if(n.loop){if(t.animating)return;e=parseInt(ns(t.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?ot.slides.length-t.loopedSlides+i/2?(t.loopFix(),o=r.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),as((function(){t.slideTo(o)}))):t.slideTo(o):o>t.slides.length-i?(t.loopFix(),o=r.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),as((function(){t.slideTo(o)}))):t.slideTo(o)}else t.slideTo(o)}};const Os={loopCreate:function(){var e=this,t=Vo(),n=e.params,r=e.$wrapperEl;r.children("."+n.slideClass+"."+n.slideDuplicateClass).remove();var i=r.children("."+n.slideClass);if(n.loopFillGroupWithBlank){var o=n.slidesPerGroup-i.length%n.slidesPerGroup;if(o!==n.slidesPerGroup){for(var s=0;si.length&&(e.loopedSlides=i.length);var l=[],c=[];i.each((function(t,n){var r=ns(t);n=i.length-e.loopedSlides&&l.push(t),r.attr("data-swiper-slide-index",n)}));for(var u=0;u=0;d-=1)r.prepend(ns(l[d].cloneNode(!0)).addClass(n.slideDuplicateClass))},loopFix:function(){var e=this;e.emit("beforeLoopFix");var t,n=e.activeIndex,r=e.slides,i=e.loopedSlides,o=e.allowSlidePrev,s=e.allowSlideNext,a=e.snapGrid,l=e.rtlTranslate;e.allowSlidePrev=!0,e.allowSlideNext=!0;var c=-a[n]-e.getTranslate();if(n=r.length-i){t=-r.length+n+i,t+=i,e.slideTo(t,0,!1,!0)&&0!==c&&e.setTranslate((l?-e.translate:e.translate)-c)}e.allowSlidePrev=o,e.allowSlideNext=s,e.emit("loopFix")},loopDestroy:function(){var e=this,t=e.$wrapperEl,n=e.params,r=e.slides;t.children("."+n.slideClass+"."+n.slideDuplicateClass+",."+n.slideClass+"."+n.slideBlankClass).remove(),r.removeAttr("data-swiper-slide-index")}};const $s={appendSlide:function(e){var t=this,n=t.$wrapperEl,r=t.params;if(r.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(var i=0;i=s)n.appendSlide(t);else{for(var a=o>e?o+1:o,l=[],c=s-1;c>=e;c-=1){var u=n.slides.eq(c);u.remove(),l.unshift(u)}if("object"==typeof t&&"length"in t){for(var d=0;de?o+t.length:o}else r.append(t);for(var p=0;p0))if(!i.isTouched||!i.isMoved)if(!!o.noSwipingClass&&""!==o.noSwipingClass&&a.target&&a.target.shadowRoot&&e.path&&e.path[0]&&(l=ns(e.path[0])),o.noSwiping&&l.closest(o.noSwipingSelector?o.noSwipingSelector:"."+o.noSwipingClass)[0])t.allowClick=!0;else if(!o.swipeHandler||l.closest(o.swipeHandler)[0]){s.currentX="touchstart"===a.type?a.targetTouches[0].pageX:a.pageX,s.currentY="touchstart"===a.type?a.targetTouches[0].pageY:a.pageY;var c=s.currentX,u=s.currentY,d=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,p=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(d&&(c<=p||c>=r.innerWidth-p)){if("prevent"!==d)return;e.preventDefault()}if(ds(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=c,s.startY=u,i.touchStartTime=ls(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1),"touchstart"!==a.type){var f=!0;l.is(i.formElements)&&(f=!1),n.activeElement&&ns(n.activeElement).is(i.formElements)&&n.activeElement!==l[0]&&n.activeElement.blur();var h=f&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!h||l[0].isContentEditable||a.preventDefault()}t.emit("touchStart",a)}}}function Cs(e){var t=Vo(),n=this,r=n.touchEventsData,i=n.params,o=n.touches,s=n.rtlTranslate;if(n.enabled){var a=e;if(a.originalEvent&&(a=a.originalEvent),r.isTouched){if(!r.isTouchEvent||"touchmove"===a.type){var l="touchmove"===a.type&&a.targetTouches&&(a.targetTouches[0]||a.changedTouches[0]),c="touchmove"===a.type?l.pageX:a.pageX,u="touchmove"===a.type?l.pageY:a.pageY;if(a.preventedByNestedSwiper)return o.startX=c,void(o.startY=u);if(!n.allowTouchMove)return n.allowClick=!1,void(r.isTouched&&(ds(o,{startX:c,startY:u,currentX:c,currentY:u}),r.touchStartTime=ls()));if(r.isTouchEvent&&i.touchReleaseOnEdges&&!i.loop)if(n.isVertical()){if(uo.startY&&n.translate>=n.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(co.startX&&n.translate>=n.minTranslate())return;if(r.isTouchEvent&&t.activeElement&&a.target===t.activeElement&&ns(a.target).is(r.formElements))return r.isMoved=!0,void(n.allowClick=!1);if(r.allowTouchCallbacks&&n.emit("touchMove",a),!(a.targetTouches&&a.targetTouches.length>1)){o.currentX=c,o.currentY=u;var d=o.currentX-o.startX,p=o.currentY-o.startY;if(!(n.params.threshold&&Math.sqrt(Math.pow(d,2)+Math.pow(p,2))=25&&(f=180*Math.atan2(Math.abs(p),Math.abs(d))/Math.PI,r.isScrolling=n.isHorizontal()?f>i.touchAngle:90-f>i.touchAngle);if(r.isScrolling&&n.emit("touchMoveOpposite",a),void 0===r.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(r.startMoving=!0)),r.isScrolling)r.isTouched=!1;else if(r.startMoving){n.allowClick=!1,!i.cssMode&&a.cancelable&&a.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&a.stopPropagation(),r.isMoved||(i.loop&&n.loopFix(),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,!i.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",a)),n.emit("sliderMove",a),r.isMoved=!0;var h=n.isHorizontal()?d:p;o.diff=h,h*=i.touchRatio,s&&(h=-h),n.swipeDirection=h>0?"prev":"next",r.currentTranslate=h+r.startTranslate;var m=!0,v=i.resistanceRatio;if(i.touchReleaseOnEdges&&(v=0),h>0&&r.currentTranslate>n.minTranslate()?(m=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+Math.pow(-n.minTranslate()+r.startTranslate+h,v))):h<0&&r.currentTranslater.startTranslate&&(r.currentTranslate=r.startTranslate),n.allowSlidePrev||n.allowSlideNext||(r.currentTranslate=r.startTranslate),i.threshold>0){if(!(Math.abs(h)>i.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,void(o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}i.followFinger&&!i.cssMode&&((i.freeMode||i.watchSlidesProgress||i.watchSlidesVisibility)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&(0===r.velocities.length&&r.velocities.push({position:o[n.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:o[n.isHorizontal()?"currentX":"currentY"],time:ls()})),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}}}}}else r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",a)}}function Es(e){var t=this,n=t.touchEventsData,r=t.params,i=t.touches,o=t.rtlTranslate,s=t.$wrapperEl,a=t.slidesGrid,l=t.snapGrid;if(t.enabled){var c=e;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",c),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&r.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);r.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var u,d=ls(),p=d-n.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(c),t.emit("tap click",c),p<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",c)),n.lastClickTime=ls(),as((function(){t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===i.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,u=r.followFinger?o?t.translate:-t.translate:-n.currentTranslate,!r.cssMode)if(r.freeMode){if(u<-t.minTranslate())return void t.slideTo(t.activeIndex);if(u>-t.maxTranslate())return void(t.slides.length1){var f=n.velocities.pop(),h=n.velocities.pop(),m=f.position-h.position,v=f.time-h.time;t.velocity=m/v,t.velocity/=2,Math.abs(t.velocity)150||ls()-f.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=r.freeModeMomentumVelocityRatio,n.velocities.length=0;var g=1e3*r.freeModeMomentumRatio,y=t.velocity*g,b=t.translate+y;o&&(b=-b);var w,_,S=!1,x=20*Math.abs(t.velocity)*r.freeModeMomentumBounceRatio;if(bt.minTranslate())r.freeModeMomentumBounce?(b-t.minTranslate()>x&&(b=t.minTranslate()+x),w=t.minTranslate(),S=!0,n.allowMomentumBounce=!0):b=t.minTranslate(),r.loop&&r.centeredSlides&&(_=!0);else if(r.freeModeSticky){for(var O,$=0;$-b){O=$;break}b=-(b=Math.abs(l[O]-b)=r.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var E=0,T=t.slidesSizesGrid[0],P=0;P=a[P]&&u=a[P]&&(E=P,T=a[a.length-1]-a[a.length-2])}var I=(u-a[E])/T,A=Er.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(I>=r.longSwipesRatio?t.slideTo(E+A):t.slideTo(E)),"prev"===t.swipeDirection&&(I>1-r.longSwipesRatio?t.slideTo(E+A):t.slideTo(E))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(c.target===t.navigation.nextEl||c.target===t.navigation.prevEl)?c.target===t.navigation.nextEl?t.slideTo(E+A):t.slideTo(E):("next"===t.swipeDirection&&t.slideTo(E+A),"prev"===t.swipeDirection&&t.slideTo(E))}}}}function Ts(){var e=this,t=e.params,n=e.el;if(!n||0!==n.offsetWidth){t.breakpoints&&e.setBreakpoint();var r=e.allowSlideNext,i=e.allowSlidePrev,o=e.snapGrid;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}}function Ps(e){var t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function js(){var e=this,t=e.wrapperEl,n=e.rtlTranslate;if(e.enabled){e.previousTranslate=e.translate,e.isHorizontal()?e.translate=n?t.scrollWidth-t.offsetWidth-t.scrollLeft:-t.scrollLeft:e.translate=-t.scrollTop,-0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();var r=e.maxTranslate()-e.minTranslate();(0===r?0:(e.translate-e.minTranslate())/r)!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}}var Is=!1;function As(){}const Ls={attachEvents:function(){var e=this,t=Vo(),n=e.params,r=e.touchEvents,i=e.el,o=e.wrapperEl,s=e.device,a=e.support;e.onTouchStart=ks.bind(e),e.onTouchMove=Cs.bind(e),e.onTouchEnd=Es.bind(e),n.cssMode&&(e.onScroll=js.bind(e)),e.onClick=Ps.bind(e);var l=!!n.nested;if(!a.touch&&a.pointerEvents)i.addEventListener(r.start,e.onTouchStart,!1),t.addEventListener(r.move,e.onTouchMove,l),t.addEventListener(r.end,e.onTouchEnd,!1);else{if(a.touch){var c=!("touchstart"!==r.start||!a.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};i.addEventListener(r.start,e.onTouchStart,c),i.addEventListener(r.move,e.onTouchMove,a.passiveListener?{passive:!1,capture:l}:l),i.addEventListener(r.end,e.onTouchEnd,c),r.cancel&&i.addEventListener(r.cancel,e.onTouchEnd,c),Is||(t.addEventListener("touchstart",As),Is=!0)}(n.simulateTouch&&!s.ios&&!s.android||n.simulateTouch&&!a.touch&&s.ios)&&(i.addEventListener("mousedown",e.onTouchStart,!1),t.addEventListener("mousemove",e.onTouchMove,l),t.addEventListener("mouseup",e.onTouchEnd,!1))}(n.preventClicks||n.preventClicksPropagation)&&i.addEventListener("click",e.onClick,!0),n.cssMode&&o.addEventListener("scroll",e.onScroll),n.updateOnWindowResize?e.on(s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",Ts,!0):e.on("observerUpdate",Ts,!0)},detachEvents:function(){var e=this,t=Vo(),n=e.params,r=e.touchEvents,i=e.el,o=e.wrapperEl,s=e.device,a=e.support,l=!!n.nested;if(!a.touch&&a.pointerEvents)i.removeEventListener(r.start,e.onTouchStart,!1),t.removeEventListener(r.move,e.onTouchMove,l),t.removeEventListener(r.end,e.onTouchEnd,!1);else{if(a.touch){var c=!("onTouchStart"!==r.start||!a.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};i.removeEventListener(r.start,e.onTouchStart,c),i.removeEventListener(r.move,e.onTouchMove,l),i.removeEventListener(r.end,e.onTouchEnd,c),r.cancel&&i.removeEventListener(r.cancel,e.onTouchEnd,c)}(n.simulateTouch&&!s.ios&&!s.android||n.simulateTouch&&!a.touch&&s.ios)&&(i.removeEventListener("mousedown",e.onTouchStart,!1),t.removeEventListener("mousemove",e.onTouchMove,l),t.removeEventListener("mouseup",e.onTouchEnd,!1))}(n.preventClicks||n.preventClicksPropagation)&&i.removeEventListener("click",e.onClick,!0),n.cssMode&&o.removeEventListener("scroll",e.onScroll),e.off(s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",Ts)}};const Ds={setBreakpoint:function(){var e=this,t=e.activeIndex,n=e.initialized,r=e.loopedSlides,i=void 0===r?0:r,o=e.params,s=e.$el,a=o.breakpoints;if(a&&(!a||0!==Object.keys(a).length)){var l=e.getBreakpoint(a,e.params.breakpointsBase,e.el);if(l&&e.currentBreakpoint!==l){var c=l in a?a[l]:void 0;c&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach((function(e){var t=c[e];void 0!==t&&(c[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")}));var u=c||e.originalParams,d=o.slidesPerColumn>1,p=u.slidesPerColumn>1,f=o.enabled;d&&!p?(s.removeClass(o.containerModifierClass+"multirow "+o.containerModifierClass+"multirow-column"),e.emitContainerClasses()):!d&&p&&(s.addClass(o.containerModifierClass+"multirow"),"column"===u.slidesPerColumnFill&&s.addClass(o.containerModifierClass+"multirow-column"),e.emitContainerClasses());var h=u.direction&&u.direction!==o.direction,m=o.loop&&(u.slidesPerView!==o.slidesPerView||h);h&&n&&e.changeDirection(),ds(e.params,u);var v=e.params.enabled;ds(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),f&&!v?e.disable():!f&&v&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",u),m&&n&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-i+e.loopedSlides,0,!1)),e.emit("breakpoint",u)}}},getBreakpoint:function(e,t,n){if(void 0===t&&(t="window"),e&&("container"!==t||n)){var r=!1,i=Go(),o="window"===t?i.innerWidth:n.clientWidth,s="window"===t?i.innerHeight:n.clientHeight,a=Object.keys(e).map((function(e){if("string"==typeof e&&0===e.indexOf("@")){var t=parseFloat(e.substr(1));return{value:s*t,point:e}}return{value:e,point:e}}));a.sort((function(e,t){return parseInt(e.value,10)-parseInt(t.value,10)}));for(var l=0;l1},{"multirow-column":o.slidesPerColumn>1&&"column"===o.slidesPerColumnFill},{android:l.android},{ios:l.ios},{"css-mode":o.cssMode}],t=o.containerModifierClass,n=[],e.forEach((function(e){"object"==typeof e?Object.keys(e).forEach((function(r){e[r]&&n.push(t+r)})):"string"==typeof e&&n.push(t+e)})),n);i.push.apply(i,u),a.addClass([].concat(i).join(" ")),r.emitContainerClasses()},removeClasses:function(){var e=this,t=e.$el,n=e.classNames;t.removeClass(n.join(" ")),e.emitContainerClasses()}};const Ns={loadImage:function(e,t,n,r,i,o){var s,a=Go();function l(){o&&o()}ns(e).parent("picture")[0]||e.complete&&i?l():t?((s=new a.Image).onload=l,s.onerror=l,r&&(s.sizes=r),n&&(s.srcset=n),t&&(s.src=t)):l()},preloadImages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var n=0;no?"next":ri?"next":r0&&t.slidesOffsetBefore+t.spaceBetween*(e.slides.length-1)+e.slides[0].offsetWidth*e.slides.length;t.slidesOffsetBefore&&t.slidesOffsetAfter&&r?e.isLocked=r<=e.size:e.isLocked=1===e.snapGrid.length,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,n!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),n&&n!==e.isLocked&&(e.isEnd=!1,e.navigation&&e.navigation.update())}},classes:Ms,images:Ns},qs={},zs=function(){function e(){for(var t,n,r=arguments.length,i=new Array(r),o=0;o1){var s=[];return ns(n.el).each((function(t){var r=ds({},n,{el:t});s.push(new e(r))})),s}var a=this;a.__swiper__=!0,a.support=fs(),a.device=hs({userAgent:n.userAgent}),a.browser=ms(),a.eventsListeners={},a.eventsAnyListeners=[],void 0===a.modules&&(a.modules={}),Object.keys(a.modules).forEach((function(e){var t=a.modules[e];if(t.params){var r=Object.keys(t.params)[0],i=t.params[r];if("object"!=typeof i||null===i)return;if(!(r in n)||!("enabled"in i))return;!0===n[r]&&(n[r]={enabled:!0}),"object"!=typeof n[r]||"enabled"in n[r]||(n[r].enabled=!0),n[r]||(n[r]={enabled:!1})}}));var l,c,u=ds({},Rs);return a.useParams(u),a.params=ds({},u,qs,n),a.originalParams=ds({},a.params),a.passedParams=ds({},n),a.params&&a.params.on&&Object.keys(a.params.on).forEach((function(e){a.on(e,a.params.on[e])})),a.params&&a.params.onAny&&a.onAny(a.params.onAny),a.$=ns,ds(a,{enabled:a.params.enabled,el:t,classNames:[],slides:ns(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===a.params.direction},isVertical:function(){return"vertical"===a.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEvents:(l=["touchstart","touchmove","touchend","touchcancel"],c=["mousedown","mousemove","mouseup"],a.support.pointerEvents&&(c=["pointerdown","pointermove","pointerup"]),a.touchEventsTouch={start:l[0],move:l[1],end:l[2],cancel:l[3]},a.touchEventsDesktop={start:c[0],move:c[1],end:c[2]},a.support.touch||!a.params.simulateTouch?a.touchEventsTouch:a.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video, label",lastClickTime:ls(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.useModules(),a.emit("_swiper"),a.params.init&&a.init(),a}var t,n,r,i=e.prototype;return i.enable=function(){var e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))},i.disable=function(){var e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))},i.setProgress=function(e,t){var n=this;e=Math.min(Math.max(e,0),1);var r=n.minTranslate(),i=(n.maxTranslate()-r)*e+r;n.translateTo(i,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()},i.emitContainerClasses=function(){var e=this;if(e.params._emitClasses&&e.el){var t=e.el.className.split(" ").filter((function(t){return 0===t.indexOf("swiper-container")||0===t.indexOf(e.params.containerModifierClass)}));e.emit("_containerClasses",t.join(" "))}},i.getSlideClasses=function(e){var t=this;return e.className.split(" ").filter((function(e){return 0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)})).join(" ")},i.emitSlidesClasses=function(){var e=this;if(e.params._emitClasses&&e.el){var t=[];e.slides.each((function(n){var r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit("_slideClass",n,r)})),e.emit("_slideClasses",t)}},i.slidesPerViewDynamic=function(){var e=this,t=e.params,n=e.slides,r=e.slidesGrid,i=e.size,o=e.activeIndex,s=1;if(t.centeredSlides){for(var a,l=n[o].swiperSlideSize,c=o+1;ci&&(a=!0));for(var u=o-1;u>=0;u-=1)n[u]&&!a&&(s+=1,(l+=n[u].swiperSlideSize)>i&&(a=!0))}else for(var d=o+1;d1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||r(),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function r(){var t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}},i.changeDirection=function(e,t){void 0===t&&(t=!0);var n=this,r=n.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(n.$el.removeClass(""+n.params.containerModifierClass+r).addClass(""+n.params.containerModifierClass+e),n.emitContainerClasses(),n.params.direction=e,n.slides.each((function(t){"vertical"===e?t.style.width="":t.style.height=""})),n.emit("changeDirection"),t&&n.update()),n},i.mount=function(e){var t=this;if(t.mounted)return!0;var n,r=ns(e||t.params.el);return!!(e=r[0])&&(e.swiper=t,e&&e.shadowRoot&&e.shadowRoot.querySelector?(n=ns(e.shadowRoot.querySelector("."+t.params.wrapperClass))).children=function(e){return r.children(e)}:n=r.children("."+t.params.wrapperClass),ds(t,{$el:r,el:e,$wrapperEl:n,wrapperEl:n[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===r.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===r.css("direction")),wrongRTL:"-webkit-box"===n.css("display")}),!0)},i.init=function(e){var t=this;return t.initialized||!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t},i.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var n,r=this,i=r.params,o=r.$el,s=r.$wrapperEl,a=r.slides;return void 0===r.params||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),t&&(r.removeClasses(),o.removeAttr("style"),s.removeAttr("style"),a&&a.length&&a.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),r.emit("destroy"),Object.keys(r.eventsListeners).forEach((function(e){r.off(e)})),!1!==e&&(r.$el[0].swiper=null,n=r,Object.keys(n).forEach((function(e){try{n[e]=null}catch(e){}try{delete n[e]}catch(e){}}))),r.destroyed=!0),null},e.extendDefaults=function(e){ds(qs,e)},e.installModule=function(t){e.prototype.modules||(e.prototype.modules={});var n=t.name||Object.keys(e.prototype.modules).length+"_"+ls();e.prototype.modules[n]=t},e.use=function(t){return Array.isArray(t)?(t.forEach((function(t){return e.installModule(t)})),e):(e.installModule(t),e)},t=e,r=[{key:"extendedDefaults",get:function(){return qs}},{key:"defaults",get:function(){return Rs}}],(n=null)&&Fs(t.prototype,n),r&&Fs(t,r),e}();function Hs(){return Hs=Object.assign||function(e){for(var t=1;t0&&(e.isBeginning?n(o,!0):n(o,!1),e.params.watchOverflow&&e.enabled&&o[e.isLocked?"addClass":"removeClass"](t.lockClass)),i&&i.length>0&&(e.isEnd?n(i,!0):n(i,!1),e.params.watchOverflow&&e.enabled&&i[e.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(e){var t=this;e.preventDefault(),t.isBeginning&&!t.params.loop||t.slidePrev()},onNextClick:function(e){var t=this;e.preventDefault(),t.isEnd&&!t.params.loop||t.slideNext()},init:function(){var e,t,n=this,r=n.params.navigation;(r.nextEl||r.prevEl)&&(r.nextEl&&(e=ns(r.nextEl),n.params.uniqueNavElements&&"string"==typeof r.nextEl&&e.length>1&&1===n.$el.find(r.nextEl).length&&(e=n.$el.find(r.nextEl))),r.prevEl&&(t=ns(r.prevEl),n.params.uniqueNavElements&&"string"==typeof r.prevEl&&t.length>1&&1===n.$el.find(r.prevEl).length&&(t=n.$el.find(r.prevEl))),e&&e.length>0&&e.on("click",n.navigation.onNextClick),t&&t.length>0&&t.on("click",n.navigation.onPrevClick),ds(n.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}),n.enabled||(e&&e.addClass(r.lockClass),t&&t.addClass(r.lockClass)))},destroy:function(){var e=this,t=e.navigation,n=t.$nextEl,r=t.$prevEl;n&&n.length&&(n.off("click",e.navigation.onNextClick),n.removeClass(e.params.navigation.disabledClass)),r&&r.length&&(r.off("click",e.navigation.onPrevClick),r.removeClass(e.params.navigation.disabledClass))}};const Vs={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){ps(this,{navigation:Hs({},Us)})},on:{init:function(e){e.navigation.init(),e.navigation.update()},toEdge:function(e){e.navigation.update()},fromEdge:function(e){e.navigation.update()},destroy:function(e){e.navigation.destroy()},"enable disable":function(e){var t=e.navigation,n=t.$nextEl,r=t.$prevEl;n&&n[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass),r&&r[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass)},click:function(e,t){var n=e.navigation,r=n.$nextEl,i=n.$prevEl,o=t.target;if(e.params.navigation.hideOnClick&&!ns(o).is(i)&&!ns(o).is(r)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===o||e.pagination.el.contains(o)))return;var s;r?s=r.hasClass(e.params.navigation.hiddenClass):i&&(s=i.hasClass(e.params.navigation.hiddenClass)),!0===s?e.emit("navigationShow"):e.emit("navigationHide"),r&&r.toggleClass(e.params.navigation.hiddenClass),i&&i.toggleClass(e.params.navigation.hiddenClass)}}}};function Ws(){return Ws=Object.assign||function(e){for(var t=1;t{const n=e.slides;for(let t=0;te.getAttribute("active")));e?this.select(e):!this.selectedTab&&this.tabs.length>0&&this.select(this.tabs[0])}select(e){e&&(this.tabs.forEach((t=>t.setAttribute("active",(t===e).toString()))),this.selectedTab=e,this.tabSelect.emit([{selectedTab:e}]))}get tabs(){return Array.from(this.el.querySelectorAll("pulumi-tab")||[])}labelFor(e){return e.getAttribute("label")||""}partsFor(e){const t=["tab"];return this.selectedTab===e&&t.push("active-tab"),t.join(" ")}render(){return Xe("div",null,Xe("ul",{part:"tabs",role:"tablist"},this.tabs.map((e=>Xe("li",{part:this.partsFor(e),role:"presentation"},Xe("a",{part:"anchor",onClick:this.select.bind(this,e),role:"tab","aria-selected":this.selectedTab===e},this.labelFor(e)))))),Xe("slot",null))}get el(){return this}static get style(){return":host {\n display: block;\n }\n ul {\n display: flex;\n width: 100%;\n align-items: center;\n margin: 0;\n padding: 0;\n width: auto;\n list-style-type: none;\n }\n li {\n display: flex;\n justify-content: center;\n }\n li a {\n cursor: pointer;\n display: flex;\n justify-content: center;\n flex: 1;\n text-align: center;\n white-space: nowrap;\n }"}},Qs=class extends HTMLElement{constructor(){super(),this.__registerHost()}componentWillLoad(){this.parsedItems=JSON.parse(this.items),this.tabContent=this.parsedItems.map((e=>e.anchor)),this.selectTab(this.parsedItems[0])}selectTab(e){this.selection=e.anchor,document.getElementById(`${e.anchor}`).classList.remove("hidden");this.tabContent.filter((t=>t!==e.anchor)).forEach((e=>{document.getElementById(`${e}`).classList.add("hidden")}))}render(){return Xe(Ze,null,Xe("ul",null,this.parsedItems.map((e=>Xe("li",{class:this.selection===e.anchor?"active":""},Xe("a",{onClick:()=>this.selectTab(e)},e.label))))))}static get style(){return":host{display:block}"}},Zs=class extends HTMLElement{constructor(){super(),this.__registerHost()}async show(){return new Promise((e=>{this.active=!0,setTimeout((()=>e()),100)}))}async hide(){return new Promise((e=>{this.active=!1,setTimeout((()=>e()),100)}))}componentDidLoad(){this.id=$n(),this.active=!1;const e=this.el.querySelector(".tooltip-target");e.addEventListener("mouseover",(()=>this.active=!0)),e.addEventListener("mouseout",(()=>this.active=!1)),e.addEventListener("touchstart",(()=>this.active=!0)),e.addEventListener("touchend",(()=>this.active=!1))}render(){return Xe(Ze,null,Xe("span",{class:"tooltip-target "+(this.active?"active":""),"aria-labelledby":this.id},Xe("slot",null)),Xe("span",{id:this.id,class:"tooltip-content",role:"tooltip"},Xe("slot",{name:"content"})))}get el(){return this}},ea=class extends HTMLElement{constructor(){super(),this.__registerHost()}handleScroll(){this.setVisibility()}componentWillRender(){this.setVisibility()}render(){let e=`btn-scroll-top fas fa-chevron-up ${this.visible}`;return Xe("a",{class:e,title:"Scroll to top",href:"#"})}setVisibility(){this.visible=window.scrollY>2500?"visible":"hidden"}static get style(){return""}},ta=class extends HTMLElement{constructor(){super(),this.__registerHost()}handleRendered(e){this.storeUnsubscribe=wi.mapStateToProps(this,(e=>{const{user:{id:t}}=e;return{userId:t}}))}disconnectedCallback(){this.storeUnsubscribe&&this.storeUnsubscribe()}render(){return Xe("span",{class:"signed-out"},Xe("slot",{name:"signed-in"}),Xe("slot",{name:"signed-out"}))}static get style(){return"pulumi-user-toggle{display:inline}pulumi-user-toggle [slot]{display:none}pulumi-user-toggle .signed-out [slot=signed-out]{display:inherit}pulumi-user-toggle .signed-in [slot=signed-in]{display:inherit}"}},na=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.defaultFormId=""}componentWillLoad(){this.parsedSessions=this.transformSessionData(JSON.parse(this.sessions));const e=oi("date");if(e){const t=new Date(e);if(isNaN(t.getTime()))return;const n=this.parsedSessions.find((e=>{const n=new Date(e.key);return n.getFullYear()===t.getFullYear()&&n.getMonth()===t.getMonth()&&n.getDate()===t.getDate()}));n&&(this.defaultFormId=n.hubspotFormId)}}transformSessionData(e){return e.map((e=>{const t=new Date(e.datetime);return{hubspotFormId:e.hubspot_form_id,key:t.toLocaleString(void 0,{timeZoneName:"short",weekday:"short",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"2-digit"})}}))}render(){return Xe("pulumi-multi-select-form",{items:this.parsedSessions,selectClass:this.selectClass,labelClass:this.labelClass,labelText:"Pick A Session",defaultFormId:this.defaultFormId})}static get style(){return":host{display:block}"}},ra=Kt(ai,[0,"copilot-sidebar",{copilotSrc:[1,"copilot-src"],showSidebar:[32]}]),ia=Kt(li,[0,"event-session-registration-modal",{buttonClass:[1,"button-class"],buttonText:[1,"button-text"],modalTitle:[1,"modal-title"],eventSessions:[1,"event-sessions"],redirectUrl:[1,"redirect-url"],isModalOpen:[32],displayingContent:[32],selectedSessions:[32],skippedSessionSelection:[32],processingFormSubmissions:[32],formProcessor:[32],error:[32],submittedFormValues:[32]}]),oa=Kt(ci,[0,"header-cta",{buttonClass:[1,"button-class"],loading:[32],isLoggedIn:[32]}]),sa=Kt(ui,[0,"home-slots",{leftItems:[1,"left-items"],centerItems:[1,"center-items"],rightItems:[1,"right-items"],imageClass:[1,"image-class"],columnOne:[32],columnOneRotator:[32],columnTwo:[32],columnTwoRotator:[32],columnThree:[32],columnThreeRotator:[32]}]),aa=Kt(di,[0,"pricing-cta",{buttonClass:[1,"button-class"],loading:[32],isLoggedIn:[32]}]),la=Kt(vi,[0,"pulumi-api-doc-filterable-nav",{baseDirectory:[1,"base-directory"],packageName:[1,"package-name"],isLoading:[32],parsedNodes:[32],currentlyRenderedNodes:[32],filterContent:[32]}]),ca=Kt(gi,[4,"pulumi-api-doc-nav-node",{node:[16],href:[1],depth:[2],isExpanded:[1028,"is-expanded"]}]),ua=Kt(yi,[0,"pulumi-api-doc-nav-tree",{nodes:[16],baseDirectory:[1,"base-directory"]}]),da=Kt(bi,[0,"pulumi-audio",{url:[1],playingText:[1,"playing-text"],pausedText:[1,"paused-text"],paused:[32],isLoading:[32],error:[32]}]),pa=Kt(xi,[4,"pulumi-banner",{name:[1],dismissible:[4],visible:[1540]},[[4,"rendered","onRendered"]]]),fa=Kt(Oi,[4,"pulumi-choosable",{type:[1025],value:[1025],values:[1025],mode:[1025],selection:[1025]},[[4,"rendered","onRendered"]]]),ha=Kt(Ii,[4,"pulumi-chooser",{type:[1025],options:[1025],selection:[1025],optionStyle:[1025,"option-style"],mode:[1025],currentOptions:[32]},[[4,"rendered","onRendered"]]]),ma=Kt(Ai,[0,"pulumi-contact-us-form",{items:[1],selectClass:[1,"select-class"],labelClass:[1,"label-class"],parsedItems:[32],defaultFormId:[32]}]),va=Kt(Qi,[0,"pulumi-convert",{from:[1],endpoint:[1],examples:[1],theme:[1],sourceFiles:[32],converting:[32],convertible:[32],alertDismissed:[32]}]),ga=Kt(Zi,[0,"pulumi-date-countdown",{dateString:[1,"date-string"],textClass:[1,"text-class"],containerClass:[1,"container-class"],valueLabelClass:[1,"value-label-class"],countdownOverText:[1,"countdown-over-text"],countdownData:[32]}]),ya=Kt(eo,[0,"pulumi-date-countdown-circles",{dateString:[1,"date-string"],containerClass:[1,"container-class"],valueLabelClass:[1,"value-label-class"],countdownData:[32]}]),ba=Kt(to,[1,"pulumi-datetime",{class:[1],timeonly:[4],date:[1025]}]),wa=Kt(no,[0,"pulumi-developer-quotes",{quotes:[1]}]),_a=Kt(ro,[4,"pulumi-docs-nav",{expandedMenuIDs:[1025,"expanded-menu-ids"]},[[0,"click","onClick"]]]),Sa=Kt(io,[0,"pulumi-docs-toc"]),xa=Kt(oo,[4,"pulumi-example"]),Oa=Kt(so,[4,"pulumi-examples"]),$a=Kt(ao,[1,"pulumi-filter-select",{filters:[32]},[[0,"optionChange","onOptionChange"]]]),ka=Kt(lo,[1,"pulumi-filter-select-option",{label:[1],value:[1],selected:[4]}]),Ca=Kt(co,[1,"pulumi-filter-select-option-group",{name:[1],expanded:[516]},[[4,"click","onDocumentClick"]]]),Ea=Kt(uo,[0,"pulumi-greenhouse-jobs-list",{departments:[32],loading:[32]}]),Ta=Kt(po,[0,"pulumi-hubspot-form",{formId:[1,"form-id"],salesforceCampaignId:[1,"salesforce-campaign-id"],goToWebinarKey:[1,"go-to-webinar-key"],class:[1],isLoading:[32],didLoad:[32]}]),Pa=Kt(fo,[0,"pulumi-install",{os:[1025],tooltipContent:[32]}]),ja=Kt(ho,[0,"pulumi-multi-select-form",{items:[16],selectClass:[1,"select-class"],labelClass:[1,"label-class"],labelText:[1,"label-text"],defaultFormId:[1,"default-form-id"],selectedItem:[32],formSubmitted:[32]}]),Ia=Kt(mo,[0,"pulumi-pricing-calculator",{duration:[32],resourceCount:[32],utilization:[32],deploymentsExpanded:[32],deploymentMinutes:[32]}]),Aa=Kt(vo,[0,"pulumi-registry-list-search",{filterContent:[32]}]),La=Kt(go,[0,"pulumi-resource-links",{packageName:[1,"package-name"],moduleName:[1,"module-name"],resourceName:[1,"resource-name"],related:[32]}]),Da=Kt(Fo,[0,"pulumi-root"]),Ma=Kt(Bo,[0,"pulumi-slot-machine",{imageClass:[1,"image-class"],leftImages:[1,"left-images"],centerImages:[1,"center-images"],rightImages:[1,"right-images"]}]),Na=Kt(qo,[4,"pulumi-swipeable"]),Ra=Kt(Js,[4,"pulumi-swiper",{speed:[2],loop:[4],autoplay:[4],autoplayDelay:[2,"autoplay-delay"],navControls:[4,"nav-controls"],slides:[2],centeredSlides:[4,"centered-slides"],initialSlide:[2,"initial-slide"],direction:[1],enableMouseEvents:[4,"enable-mouse-events"],spaceBetween:[2,"space-between"],swiperID:[32],containerClass:[32],nextBtnClass:[32],previousBtnClass:[32]}]),Fa=Kt(Ys,[1,"pulumi-tab",{label:[1],active:[4]}]),Ba=Kt(Xs,[1,"pulumi-tabs",{selectedTab:[32]}]),qa=Kt(Qs,[0,"pulumi-tertiary-nav",{items:[1025],tabContent:[1040],selection:[1032]}]),za=Kt(Zs,[4,"pulumi-tooltip",{id:[32],active:[32]}]),Ha=Kt(ea,[0,"pulumi-top-button",{visible:[32]},[[9,"scroll","handleScroll"]]]),Ua=Kt(ta,[4,"pulumi-user-toggle",{userId:[1025,"user-id"]},[[4,"rendered","handleRendered"]]]),Va=Kt(na,[0,"pulumi-webinar-form-select",{sessions:[1],selectClass:[1,"select-class"],labelClass:[1,"label-class"],parsedSessions:[32],defaultFormId:[32]}]);class Wa{constructor(e){this.serviceName=e,this.state=JSON.parse(window.localStorage.getItem(e)||"{}")}getState(){return this.state}getKey(e){return this.state[e]}updateKey(e,t){this.state=Object.assign(this.state,{[e]:t}),window.localStorage.setItem(this.serviceName,JSON.stringify(this.state))}}const Ga=new Wa("navigation-toggle-state");function Ka(e,t){Ga.updateKey(e.id,t)}function Ja(e){$(e).each((function(e,t){!function(e){$(".toggleButton-topLevel",e).click((function(){$(this).closest(".toggle-topLevel, .toggleVisible-topLevel")[0]==e&&($(e).is(".toggle")?($(e).addClass("toggleVisible").removeClass("toggle"),Ka(e,"expanded")):($(e).addClass("toggle").removeClass("toggleVisible"),Ka(e,"collapsed")))}))}(t)}))}function Ya(e){$(e).each((function(e,t){!function(e){$(".toggleButton",e).click((function(){$(this).closest(".toggle, .toggleVisible")[0]==e&&($(e).is(".toggle")?$(e).addClass("toggleVisible").removeClass("toggle"):$(e).addClass("toggle").removeClass("toggleVisible"))}))}(t)}))}function Xa(){$(".table-of-contents").hide();var e=$(".table-of-contents .content ul.table-of-contents-list");if(e){var t=!1,n=[];if($("h2, h3").each((function(){var r=$(this),i=r.attr("id"),o=r.text(),s=r.data("link-title"),a=r.prop("tagName").toLowerCase();if(i&&o){t=!0;var l=$("
  • "+(s||o)+"
  • ");e.append(l),n.push({element:r,listItem:l})}})),t){$(".table-of-contents").show();const e=()=>{var e;for(var t of n)!e&&t.element.offset().top>=window.scrollY&&(e=t),t.listItem.toggleClass("active",t===e)};$(window).on("scroll",(function(){e()})),e()}}}!function(){const e=e=>{const t=window.location.href,n=$(e).find("a").attr("href");return t.includes(n)};$(".toggle-topLevel, .toggleVisible-topLevel").each((function(t,n){"expanded"==Ga.getKey(n.id)||e(n)?$(n).addClass("toggleVisible").removeClass("toggle"):"collapsed"==Ga.getKey(n.id)&&$(n).addClass("toggle").removeClass("toggleVisible"),$(n).click((function(){const e=$(n).find(".folder-open"),t=$(n).find(".folder");e.length>0?e.addClass("folder").removeClass("folder-open"):t.length>0&&t.addClass("folder-open").removeClass("folder")}))})),$(".toggleVisible, .toggleVisible-topLevel").each((function(t,n){e(n)&&$("#left-nav").animate({scrollTop:$(n).offset().top-145},0)}))}(),function(e){const t=new IntersectionObserver((([t])=>{t.target.classList.toggle("is-pinned",t.intersectionRatio<1);const n=document.querySelector(".header-pinned"),r=document.querySelector(".hide-on-pinned"),i=document.querySelector(".header-hero-title");t.isIntersecting?(e(n).addClass("hidden"),e(n).removeClass("flex"),e(r).removeClass("hidden"),e(r).addClass("flex"),e(i).removeClass("hidden"),e(i).addClass("flex")):(e(n).removeClass("hidden"),e(n).addClass("flex"),e(r).addClass("hidden"),e(r).removeClass("flex"),e(i).addClass("hidden"),e(i).removeClass("flex"))}),{threshold:[1]}),n=document.querySelector(".header-container");if(n)t.observe(n);else{const e=document.querySelector(".top-nav-bar.registry");e&&t.observe(e)}Ya(".toggle"),Ya(".toggleVisible"),Ja(".toggle-topLevel"),Ja(".toggleVisible-topLevel"),Xa(),e(".nav-header-toggle").click((function(){e(".nav-header-items").toggleClass("hidden")})),e(".blog-sidebar-toggle").click((function(){e(".blog-sidebar-content").toggleClass("hidden")})),e(".docs-sidebar-toggle").click((function(){e(".docs-sidebar-content").toggleClass("hidden")})),e("ul[data-shuffle='true']").each((function(t,n){var r=e(n).find("> li");r.each((function(t,n){e(n).css("order",Math.ceil(Math.random()*r.length))})),e(n).removeClass("invisible")})),e('#about-nav li[data-filter-name="who-we-are"]').addClass("active-about-nav-item"),e((function(){e("#about-nav li").click((function(){const t="active-about-nav-item";e(this).addClass(t);const n=e(this).data("filter-name");["who-we-are","what-we-believe","community","history","awards","newsroom","join-us"].filter((e=>e!==n)).forEach((n=>{e(`#about-nav li[data-filter-name="${n}"]`).removeClass(t)}))}))})),e("dl.resources-properties dt.property-required.property-replacement").removeAttr("title").find(".property-indicator").replaceWith('
    This property is required.
    Changes to this property will trigger replacement.
    '),e("dl.resources-properties dt.property-required:not(.property-replacement)").removeAttr("title").find(".property-indicator").replaceWith(' This property is required.'),e("dl.resources-properties dt.property-replacement:not(.property-required)").removeAttr("title").find(".property-indicator").replaceWith(' Changes to this property will trigger replacement.')}(jQuery),function(e,t){"ontouchstart"in e||(t(".nav-header-items li a").mouseenter((function(e){var n=t(e.target).data("submenu");t(".submenu-item").hide(),t(".submenu-item-"+n).show()})),t(".submenu").mouseleave((function(e){e.relatedTarget!==t("nav.nav-main").get(0)&&t(".submenu-item").hide()}))),function(){let e=!1,n=!1;t("#why-pulumi-menu-label").click((function(){t("#mobile-dropdown").scroll(),e?t("#mobile-dropdown").animate({scrollTop:top},300):t("#mobile-dropdown").animate({scrollTop:t("#why-pulumi-mobile-menu").position().top-115},300),e=!e})),t("#learn-menu-label").click((function(){t("#mobile-dropdown").scroll(),n?t("#mobile-dropdown").animate({scrollTop:top},300):t("#mobile-dropdown").animate({scrollTop:t("#learn-mobile-menu").position().top-115},300),n=!n}))}();const n=new Wa("banner-state"),r=t("#dismissable-banner");"true"!==n.getKey("dismissed")?t(r).css({display:"block"}):t(r).css({display:"none"}),t("#dismiss-banner").on("click",(function(e){e.preventDefault(),t(r).css({display:"none"}),n.updateKey("dismissed","true")}))}(document,jQuery);n(28);function Qa(e){for(var t=window.location.search.substring(1).split("&"),n=0;n0&&($("div,span").each((function(n,r){var i=Za(r);for(n=0;n0&&t(i[0])}}$(document).on("rendered",(function(){var e;["language","os","cloud","k8s-language","input-kind"].forEach((function(e){var t=Qa(e);t&&el(e,t)})),ol("language",tl,"typescript"),-1!==navigator.appVersion.indexOf("Win")?e="windows":-1!==navigator.appVersion.indexOf("Mac")?e="macos":-1!==navigator.appVersion.indexOf("Linux")&&(e="linux"),ol("os",nl,e),ol("cloud",rl,"aws"),ol("k8s-language",il,"typescript")}));n(245),n(21),n(931),n(161);function sl(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))}function al(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]-1&&(r.checked=!0):r.checked=!0;var i=document.createElement("label");return i.innerText=e+"s",i.className="cursor-pointer",i.setAttribute("for",r.id),n.appendChild(r),n.appendChild(i),n}function t(){for(var e=$("input[type='checkbox']"),t=[],r=0;r-1)return!0}return!1}var r=$(".event-tags span"),i=$("#eventFilter");if(r.length&&i.length){for(var o=[],s=0;s-1?(cl('UA "Edge" => assuming success'),[2,!0]):xl(document.body,e)?(cl("copyUsingTempSelection worked"),[2,!0]):function(e){var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important"),t.textContent="temporary element",document.body.appendChild(t);var n=xl(t,e);return document.body.removeChild(t),n}(e)?(cl("copyUsingTempElem worked"),[2,!0]):function(e){cl("copyTextUsingDOM");var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important");var n=t;t.attachShadow&&(cl("Using shadow DOM."),n=t.attachShadow({mode:"open"}));var r=document.createElement("span");r.innerText=e,n.appendChild(r),document.body.appendChild(t),Ol(r);var i=document.execCommand("copy");return $l(),document.body.removeChild(t),i}(e["text/plain"])?(cl("copyTextUsingDOM worked"),[2,!0]):[2,!1]}))}))}!function(){function e(e,t){var n;for(var r in void 0===t&&(t={}),this.types=Object.keys(e),this._items={},e){var i=e[r];this._items[r]="string"==typeof i?Cl(r,i):i}this.presentationStyle=null!==(n=null==t?void 0:t.presentationStyle)&&void 0!==n?n:"unspecified"}e.prototype.getType=function(e){return sl(this,void 0,void 0,(function(){return al(this,(function(t){return[2,this._items[e]]}))}))}}();function Cl(e,t){return new Blob([t],{type:e})}function El(e){var t="Copy";e.append('
    Copy
    ').on("click","button.copy-button",(function(){var e=$(this),n=e.parent().parent().parent().siblings("pre").children("code"),r=function(e,t){if(!t)return"";var n,r,i,o,s;switch(t=(t=t.replace("\r\n","\n")).trim(),e){case"bash":case"sh":case"shell":case"zsh":n="$ ",r="#",i=/\s+#.*$/m,o="\\",s=" && ";break;case"bat":case"batch":case"batchfile":n="> ",r="::",i=/\s+::.*$/m,o="^",s=" && ";break;case"powershell":case"posh":case"pwsh":n="> ",r="#",i=/\s+#.*$/m,o="`",s="; "}if(n){for(var a=[],l=t.split("\n"),c=!1,u=0;u0&&(t=a.join(s))}return-1!==navigator.appVersion.indexOf("Win")&&(t=t.replace("\n","\r\n")),t}(n.attr("data-lang"),n.text());r&&r.length>0&&function(e){sl(this,void 0,void 0,(function(){return al(this,(function(t){if(vl)return cl("Using `navigator.clipboard.writeText()`."),[2,vl(e)];if(!kl(function(e){var t={};return t["text/plain"]=e,t}(e)))throw new Error("writeText() failed");return[2]}))}))}(r),e.blur();var i=e.closest("pulumi-tooltip"),o=i.find("[slot='content']"),s=i.get(0);o.text("Copied!"),s.show().then((()=>{setTimeout((function(){s.hide().then((()=>o.text(t)))}),1e3)}));const a=window.analytics,l=a&&a.track&&"function"==typeof a.track;var c=n.attr("data-track");if(l&&c){const e={codeBlockName:c};a.track("copy-code-block",e)}}))}$((function(){El($(":not(.no-copy) > div.highlight"))}));n(506),n(498),n(490),n(366),n(744),n(734),n(756),n(399),n(40),n(140);var Tl=n(290),Pl=n.n(Tl);function jl(e){return jl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jl(e)}function Il(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Al(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Vl(e){return function(e){if(Array.isArray(e))return Wl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Wl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wl(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function yc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bc(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:20,n=[],r=0;r=3||2===n&&r>=4||1===n&&r>=10);function o(t,n,r){if(i&&void 0!==r){var o=r[0].__autocomplete_algoliaCredentials,s={"X-Algolia-Application-Id":o.appId,"X-Algolia-API-Key":o.apiKey};e.apply(void 0,[t].concat(mc(n),[{headers:s}]))}else e.apply(void 0,[t].concat(mc(n)))}return{init:function(t,n){e("init",{appId:t,apiKey:n})},setUserToken:function(t){e("setUserToken",t)},clickedObjectIDsAfterSearch:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&o("clickedObjectIDsAfterSearch",Sc(t),t[0].items)},clickedObjectIDs:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&o("clickedObjectIDs",Sc(t),t[0].items)},clickedFilters:function(){for(var t=arguments.length,n=new Array(t),r=0;r0&&e.apply(void 0,["clickedFilters"].concat(n))},convertedObjectIDsAfterSearch:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&o("convertedObjectIDsAfterSearch",Sc(t),t[0].items)},convertedObjectIDs:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&o("convertedObjectIDs",Sc(t),t[0].items)},convertedFilters:function(){for(var t=arguments.length,n=new Array(t),r=0;r0&&e.apply(void 0,["convertedFilters"].concat(n))},viewedObjectIDs:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&t.reduce((function(e,t){var n=t.items,r=gc(t,fc);return[].concat(mc(e),mc(_c(bc(bc({},r),{},{objectIDs:(null==n?void 0:n.map((function(e){return e.objectID})))||r.objectIDs})).map((function(e){return{items:n,payload:e}}))))}),[]).forEach((function(e){var t=e.items;return o("viewedObjectIDs",[e.payload],t)}))},viewedFilters:function(){for(var t=arguments.length,n=new Array(t),r=0;r0&&e.apply(void 0,["viewedFilters"].concat(n))}}}function Oc(e){var t=e.items.reduce((function(e,t){var n;return e[t.__autocomplete_indexName]=(null!==(n=e[t.__autocomplete_indexName])&&void 0!==n?n:[]).concat(t),e}),{});return Object.keys(t).map((function(e){return{index:e,items:t[e],algoliaSource:["autocomplete"]}}))}function $c(e){return e.objectID&&e.__autocomplete_indexName&&e.__autocomplete_queryID}function kc(e){return kc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kc(e)}function Cc(e){return function(e){if(Array.isArray(e))return Ec(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ec(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ec(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ec(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&Lc({onItemsChange:r,items:n,insights:a,state:t}))}}),0);return{name:"aa.algoliaInsightsPlugin",subscribe:function(e){var t=e.setContext,n=e.onSelect,r=e.onActive;s("addAlgoliaAgent","insights-plugin"),t({algoliaInsightsPlugin:{__algoliaSearchParameters:{clickAnalytics:!0},insights:a}}),n((function(e){var t=e.item,n=e.state,r=e.event;$c(t)&&i({state:n,event:r,insights:a,item:t,insightsEvents:[Pc({eventName:"Item Selected"},cc({item:t,items:l.current}))]})})),r((function(e){var t=e.item,n=e.state,r=e.event;$c(t)&&o({state:n,event:r,insights:a,item:t,insightsEvents:[Pc({eventName:"Item Active"},cc({item:t,items:l.current}))]})}))},onStateChange:function(e){var t=e.state;c({state:t})},__autocomplete_pluginOptions:e}}function Mc(e){return Mc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mc(e)}function Nc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rc(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Mc(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Mc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Mc(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fc(e,t,n){var r,i=t.initialState;return{getState:function(){return i},dispatch:function(r,o){var s=function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0},reshape:function(e){return e.sources}},e),{},{id:null!==(n=e.id)&&void 0!==n?n:Gc(),plugins:i,initialState:nu({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},e.initialState),onStateChange:function(t){var n;null===(n=e.onStateChange)||void 0===n||n.call(e,t),i.forEach((function(e){var n;return null===(n=e.onStateChange)||void 0===n?void 0:n.call(e,t)}))},onSubmit:function(t){var n;null===(n=e.onSubmit)||void 0===n||n.call(e,t),i.forEach((function(e){var n;return null===(n=e.onSubmit)||void 0===n?void 0:n.call(e,t)}))},onReset:function(t){var n;null===(n=e.onReset)||void 0===n||n.call(e,t),i.forEach((function(e){var n;return null===(n=e.onReset)||void 0===n?void 0:n.call(e,t)}))},getSources:function(n){return Promise.all([].concat(Zc(i.map((function(e){return e.getSources}))),[e.getSources]).filter(Boolean).map((function(e){return function(e,t){var n=[];return Promise.resolve(e(t)).then((function(e){return Array.isArray(e),Promise.all(e.filter((function(e){return Boolean(e)})).map((function(e){if(e.sourceId,n.includes(e.sourceId))throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(e.sourceId)," is not unique."));n.push(e.sourceId);var t={getItemInputValue:function(e){return e.state.query},getItemUrl:function(){},onSelect:function(e){(0,e.setIsOpen)(!1)},onActive:lc,onResolve:lc};Object.keys(t).forEach((function(e){t[e].__default=!0}));var r=Jc(Jc({},t),e);return Promise.resolve(r)})))}))}(e,n)}))).then((function(e){return Bc(e)})).then((function(e){return e.map((function(e){return nu(nu({},e),{},{onSelect:function(n){e.onSelect(n),t.forEach((function(e){var t;return null===(t=e.onSelect)||void 0===t?void 0:t.call(e,n)}))},onActive:function(n){e.onActive(n),t.forEach((function(e){var t;return null===(t=e.onActive)||void 0===t?void 0:t.call(e,n)}))},onResolve:function(n){e.onResolve(n),t.forEach((function(e){var t;return null===(t=e.onResolve)||void 0===t?void 0:t.call(e,n)}))}})}))}))},navigator:nu({navigate:function(e){var t=e.itemUrl;r.location.assign(t)},navigateNewTab:function(e){var t=e.itemUrl,n=r.open(t,"_blank","noopener");null==n||n.focus()},navigateNewWindow:function(e){var t=e.itemUrl;r.open(t,"_blank","noopener")}},e.navigator)})}function ou(e){return ou="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ou(e)}function su(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function au(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Lu,Du,Mu,Nu=null,Ru=(Lu=-1,Du=-1,Mu=void 0,function(e){var t=++Lu;return Promise.resolve(e).then((function(e){return Mu&&t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Wu=/((gt|sm)-|galaxy nexus)|samsung[- ]/i;function Gu(e){return Gu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gu(e)}var Ku=["props","refresh","store"],Ju=["inputElement","formElement","panelElement"],Yu=["inputElement"],Xu=["inputElement","maxLength"],Qu=["sourceIndex"],Zu=["sourceIndex"],ed=["item","source","sourceIndex"];function td(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nd(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function od(e){var t=e.props,n=e.refresh,r=e.store,i=id(e,Ku),o=function(e,t){return void 0!==t?"".concat(e,"-").concat(t):e};return{getEnvironmentProps:function(e){var n=e.inputElement,i=e.formElement,o=e.panelElement;function s(e){!r.getState().isOpen&&r.pendingRequests.isEmpty()||e.target===n||!1===[i,o].some((function(t){return n=t,r=e.target,n===r||n.contains(r);var n,r}))&&(r.dispatch("blur",null),t.debug||r.pendingRequests.cancelAll())}return nd({onTouchStart:s,onMouseDown:s,onTouchMove:function(e){!1!==r.getState().isOpen&&n===t.environment.document.activeElement&&e.target!==n&&n.blur()}},id(e,Ju))},getRootProps:function(e){return nd({role:"combobox","aria-expanded":r.getState().isOpen,"aria-haspopup":"listbox","aria-owns":r.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label")},e)},getFormProps:function(e){e.inputElement;return nd({action:"",noValidate:!0,role:"search",onSubmit:function(o){var s;o.preventDefault(),t.onSubmit(nd({event:o,refresh:n,state:r.getState()},i)),r.dispatch("submit",null),null===(s=e.inputElement)||void 0===s||s.blur()},onReset:function(o){var s;o.preventDefault(),t.onReset(nd({event:o,refresh:n,state:r.getState()},i)),r.dispatch("reset",null),null===(s=e.inputElement)||void 0===s||s.focus()}},id(e,Yu))},getLabelProps:function(e){var n=e||{},r=n.sourceIndex,i=id(n,Qu);return nd({htmlFor:"".concat(o(t.id,r),"-input"),id:"".concat(o(t.id,r),"-label")},i)},getInputProps:function(e){var o;function s(e){(t.openOnFocus||Boolean(r.getState().query))&&Fu(nd({event:e,props:t,query:r.getState().completion||r.getState().query,refresh:n,store:r},i)),r.dispatch("focus",null)}var a=e||{},l=(a.inputElement,a.maxLength),c=void 0===l?512:l,u=id(a,Xu),d=Cu(r.getState()),p=function(e){return Boolean(e&&e.match(Wu))}((null===(o=t.environment.navigator)||void 0===o?void 0:o.userAgent)||""),f=null!=d&&d.itemUrl&&!p?"go":"search";return nd({"aria-autocomplete":"both","aria-activedescendant":r.getState().isOpen&&null!==r.getState().activeItemId?"".concat(t.id,"-item-").concat(r.getState().activeItemId):void 0,"aria-controls":r.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label"),value:r.getState().completion||r.getState().query,id:"".concat(t.id,"-input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:f,spellCheck:"false",autoFocus:t.autoFocus,placeholder:t.placeholder,maxLength:c,type:"search",onChange:function(e){Fu(nd({event:e,props:t,query:e.currentTarget.value.slice(0,c),refresh:n,store:r},i))},onKeyDown:function(e){!function(e){var t=e.event,n=e.props,r=e.refresh,i=e.store,o=Vu(e,qu);if("ArrowUp"===t.key||"ArrowDown"===t.key){var s=function(){var e=n.environment.document.getElementById("".concat(n.id,"-item-").concat(i.getState().activeItemId));e&&(e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded(!1):e.scrollIntoView(!1))},a=function(){var e=Cu(i.getState());if(null!==i.getState().activeItemId&&e){var n=e.item,s=e.itemInputValue,a=e.itemUrl,l=e.source;l.onActive(Hu({event:t,item:n,itemInputValue:s,itemUrl:a,refresh:r,source:l,state:i.getState()},o))}};t.preventDefault(),!1===i.getState().isOpen&&(n.openOnFocus||Boolean(i.getState().query))?Fu(Hu({event:t,props:n,query:i.getState().query,refresh:r,store:i},o)).then((function(){i.dispatch(t.key,{nextActiveItemId:n.defaultActiveItemId}),a(),setTimeout(s,0)})):(i.dispatch(t.key,{}),a(),s())}else if("Escape"===t.key)t.preventDefault(),i.dispatch(t.key,null),i.pendingRequests.cancelAll();else if("Tab"===t.key)i.dispatch("blur",null),i.pendingRequests.cancelAll();else if("Enter"===t.key){if(null===i.getState().activeItemId||i.getState().collections.every((function(e){return 0===e.items.length})))return void(n.debug||i.pendingRequests.cancelAll());t.preventDefault();var l=Cu(i.getState()),c=l.item,u=l.itemInputValue,d=l.itemUrl,p=l.source;if(t.metaKey||t.ctrlKey)void 0!==d&&(p.onSelect(Hu({event:t,item:c,itemInputValue:u,itemUrl:d,refresh:r,source:p,state:i.getState()},o)),n.navigator.navigateNewTab({itemUrl:d,item:c,state:i.getState()}));else if(t.shiftKey)void 0!==d&&(p.onSelect(Hu({event:t,item:c,itemInputValue:u,itemUrl:d,refresh:r,source:p,state:i.getState()},o)),n.navigator.navigateNewWindow({itemUrl:d,item:c,state:i.getState()}));else if(t.altKey);else{if(void 0!==d)return p.onSelect(Hu({event:t,item:c,itemInputValue:u,itemUrl:d,refresh:r,source:p,state:i.getState()},o)),void n.navigator.navigate({itemUrl:d,item:c,state:i.getState()});Fu(Hu({event:t,nextState:{isOpen:!1},props:n,query:u,refresh:r,store:i},o)).then((function(){p.onSelect(Hu({event:t,item:c,itemInputValue:u,itemUrl:d,refresh:r,source:p,state:i.getState()},o))}))}}}(nd({event:e,props:t,refresh:n,store:r},i))},onFocus:s,onBlur:lc,onClick:function(n){e.inputElement!==t.environment.document.activeElement||r.getState().isOpen||s(n)}},u)},getPanelProps:function(e){return nd({onMouseDown:function(e){e.preventDefault()},onMouseLeave:function(){r.dispatch("mouseleave",null)}},e)},getListProps:function(e){var n=e||{},r=n.sourceIndex,i=id(n,Zu);return nd({role:"listbox","aria-labelledby":"".concat(o(t.id,r),"-label"),id:"".concat(o(t.id,r),"-list")},i)},getItemProps:function(e){var s=e.item,a=e.source,l=e.sourceIndex,c=id(e,ed);return nd({id:"".concat(o(t.id,l),"-item-").concat(s.__autocomplete_id),role:"option","aria-selected":r.getState().activeItemId===s.__autocomplete_id,onMouseMove:function(e){if(s.__autocomplete_id!==r.getState().activeItemId){r.dispatch("mousemove",s.__autocomplete_id);var t=Cu(r.getState());if(null!==r.getState().activeItemId&&t){var o=t.item,a=t.itemInputValue,l=t.itemUrl,c=t.source;c.onActive(nd({event:e,item:o,itemInputValue:a,itemUrl:l,refresh:n,source:c,state:r.getState()},i))}}},onMouseDown:function(e){e.preventDefault()},onClick:function(e){var o=a.getItemInputValue({item:s,state:r.getState()}),l=a.getItemUrl({item:s,state:r.getState()});(l?Promise.resolve():Fu(nd({event:e,nextState:{isOpen:!1},props:t,query:o,refresh:n,store:r},i))).then((function(){a.onSelect(nd({event:e,item:s,itemInputValue:o,itemUrl:l,refresh:n,source:a,state:r.getState()},i))}))}},c)}}}function sd(e){return sd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sd(e)}function ad(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ld(e){for(var t=1;t=n?null===r?null:0:i}function fd(e){return fd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fd(e)}function hd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function md(e){for(var t=1;t=5&&((i||!e&&5===r)&&(s.push(r,0,i,n),r=6),e&&(s.push(r,e,0,n),r=6)),i=""},l=0;l"===t?(r=1,i=""):i=t+i[0]:o?t===o?o="":i+=t:'"'===t||"'"===t?o=t:">"===t?(a(),r=1):r&&("="===t?(r=5,n=i,i=""):"/"===t&&(r<5||">"===e[l][c+1])?(a(),3===r&&(s=s[0]),r=s,(s=s[0]).push(2,0,r),r=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(a(),r=2):i+=t),3===r&&"!--"===i&&(r=4,s=s[0])}return a(),s}(e)),t),arguments,[])).length>1?t:t[0]}var kd=function(e){var t=e.environment,n=t.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-SubmitIcon"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","20"),n.setAttribute("height","20"),n.setAttribute("fill","currentColor");var r=t.document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d","M16.041 15.856c-0.034 0.026-0.067 0.055-0.099 0.087s-0.060 0.064-0.087 0.099c-1.258 1.213-2.969 1.958-4.855 1.958-1.933 0-3.682-0.782-4.95-2.050s-2.050-3.017-2.050-4.95 0.782-3.682 2.050-4.95 3.017-2.050 4.95-2.050 3.682 0.782 4.95 2.050 2.050 3.017 2.050 4.95c0 1.886-0.745 3.597-1.959 4.856zM21.707 20.293l-3.675-3.675c1.231-1.54 1.968-3.493 1.968-5.618 0-2.485-1.008-4.736-2.636-6.364s-3.879-2.636-6.364-2.636-4.736 1.008-6.364 2.636-2.636 3.879-2.636 6.364 1.008 4.736 2.636 6.364 3.879 2.636 6.364 2.636c2.125 0 4.078-0.737 5.618-1.968l3.675 3.675c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414z"),n.appendChild(r),n},Cd=function(e){var t=e.environment,n=t.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-ClearIcon"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","18"),n.setAttribute("height","18"),n.setAttribute("fill","currentColor");var r=t.document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d","M5.293 6.707l5.293 5.293-5.293 5.293c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0l5.293-5.293 5.293 5.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-5.293-5.293 5.293-5.293c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z"),n.appendChild(r),n},Ed=function(e){var t=e.environment.document.createElementNS("http://www.w3.org/2000/svg","svg");return t.setAttribute("class","aa-LoadingIcon"),t.setAttribute("viewBox","0 0 100 100"),t.setAttribute("width","20"),t.setAttribute("height","20"),t.innerHTML='\n \n',t},Td=["ontouchstart","ontouchend","ontouchmove","ontouchcancel"];function Pd(e,t,n){e[t]=null===n?"":"number"!=typeof n?n:n+"px"}function jd(e){this._listeners[e.type](e)}function Id(e,t,n){var r,i,o=e[t];if("style"===t)if("string"==typeof n)e.style=n;else if(null===n)e.style="";else for(t in n)o&&n[t]===o[t]||Pd(e.style,t,n[t]);else"o"===t[0]&&"n"===t[1]?(r=t!==(t=t.replace(/Capture$/,"")),((i=t.toLowerCase())in e||Td.includes(i))&&(t=i),t=t.slice(2),e._listeners||(e._listeners={}),e._listeners[t]=n,n?o||e.addEventListener(t,jd,r):e.removeEventListener(t,jd,r)):"list"!==t&&"tagName"!==t&&"form"!==t&&"type"!==t&&"size"!==t&&"download"!==t&&"href"!==t&&t in e?e[t]=null==n?"":n:"function"!=typeof n&&"dangerouslySetInnerHTML"!==t&&(null==n||!1===n&&!/^ar/.test(t)?e.removeAttribute(t):e.setAttribute(t,n))}function Ad(e){return"onChange"===e?"onInput":e}function Ld(e,t){for(var n in t)Id(e,Ad(n),t[n])}function Dd(e,t){for(var n in t)"o"===n[0]&&"n"===n[1]||Id(e,Ad(n),t[n])}var Md=["children"];function Nd(e){return function(e){if(Array.isArray(e))return Rd(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Rd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rd(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Bd(e){return function(t,n){var r=n.children,i=void 0===r?[]:r,o=Fd(n,Md),s=e.document.createElement(t);return Ld(s,o),s.append.apply(s,Nd(i)),s}}function qd(e){return qd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qd(e)}var zd=["autocompleteScopeApi","environment","classNames","getInputProps","getInputPropsCore","isDetached","state"];function Hd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ud(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Gd(e){return Gd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gd(e)}function Kd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jd(e){for(var t=1;t2&&(s.children=arguments.length>3?Qd.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return dp(e,s,r,i,null)}function dp(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++ep:i};return null==i&&null!=Zd.vnode&&Zd.vnode(o),o}function pp(e){return e.children}function fp(e,t){this.props=e,this.context=t}function hp(e,t){if(null==t)return e.__?hp(e.__,e.__.__k.indexOf(e)+1):null;for(var n;tt&&tp.sort(ip));gp.__r=0}function yp(e,t,n,r,i,o,s,a,l,c){var u,d,p,f,h,m,v,g=r&&r.__k||sp,y=g.length;for(n.__k=[],u=0;u0?dp(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)){if(f.__=n,f.__b=n.__b+1,null===(p=g[u])||p&&f.key==p.key&&f.type===p.type)g[u]=void 0;else for(d=0;d=0;t--)if((n=e.__k[t])&&(r=_p(n)))return r;return null}function Sp(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||ap.test(t)?n:n+"px"}function xp(e,t,n,r,i){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Sp(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Sp(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r||e.addEventListener(t,o?$p:Op,o):e.removeEventListener(t,o?$p:Op,o);else if("dangerouslySetInnerHTML"!==t){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function Op(e){return this.l[e.type+!1](Zd.event?Zd.event(e):e)}function $p(e){return this.l[e.type+!0](Zd.event?Zd.event(e):e)}function kp(e,t,n,r,i,o,s,a,l){var c,u,d,p,f,h,m,v,g,y,b,w,_,S,x,O=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,o=[a]),(c=Zd.__b)&&c(t);try{e:if("function"==typeof O){if(v=t.props,g=(c=O.contextType)&&r[c.__c],y=c?g?g.props.value:c.__:r,n.__c?m=(u=t.__c=n.__c).__=u.__E:("prototype"in O&&O.prototype.render?t.__c=u=new O(v,y):(t.__c=u=new fp(v,y),u.constructor=O,u.render=Pp),g&&g.sub(u),u.props=v,u.state||(u.state={}),u.context=y,u.__n=r,d=u.__d=!0,u.__h=[],u._sb=[]),null==u.__s&&(u.__s=u.state),null!=O.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=lp({},u.__s)),lp(u.__s,O.getDerivedStateFromProps(v,u.__s))),p=u.props,f=u.state,u.__v=t,d)null==O.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==O.getDerivedStateFromProps&&v!==p&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(v,y),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(v,u.__s,y)||t.__v===n.__v){for(t.__v!==n.__v&&(u.props=v,u.state=u.__s,u.__d=!1),u.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),b=0;b0&&void 0!==arguments[0]?arguments[0]:[],t=e;return{get:function(){return t},add:function(e){var n=t[t.length-1];(null==n?void 0:n.isHighlighted)===e.isHighlighted?t[t.length-1]={value:n.value+e.value,isHighlighted:n.isHighlighted}:t.push(e)}}}(n?[{value:n,isHighlighted:!1}]:[]);return t.forEach((function(e){var t=e.split(Rl);r.add({value:t[0],isHighlighted:!0}),""!==t[1]&&r.add({value:t[1],isHighlighted:!1})})),r.get()}function Lp(e){return function(e){if(Array.isArray(e))return Dp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Dp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dp(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n",""":'"',"'":"'"},Fp=new RegExp(/\w/i),Bp=/&(amp|quot|lt|gt|#39);/g,qp=RegExp(Bp.source);function zp(e,t){var n,r,i,o=e[t],s=(null===(n=e[t+1])||void 0===n?void 0:n.isHighlighted)||!0,a=(null===(r=e[t-1])||void 0===r?void 0:r.isHighlighted)||!0;return Fp.test((i=o.value)&&qp.test(i)?i.replace(Bp,(function(e){return Rp[e]})):i)||a!==s?o.isHighlighted:a}function Hp(e){return Hp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hp(e)}function Up(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vp(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var cf={clearButton:"aa-ClearButton",detachedCancelButton:"aa-DetachedCancelButton",detachedContainer:"aa-DetachedContainer",detachedFormContainer:"aa-DetachedFormContainer",detachedOverlay:"aa-DetachedOverlay",detachedSearchButton:"aa-DetachedSearchButton",detachedSearchButtonIcon:"aa-DetachedSearchButtonIcon",detachedSearchButtonPlaceholder:"aa-DetachedSearchButtonPlaceholder",detachedSearchButtonQuery:"aa-DetachedSearchButtonQuery",form:"aa-Form",input:"aa-Input",inputWrapper:"aa-InputWrapper",inputWrapperPrefix:"aa-InputWrapperPrefix",inputWrapperSuffix:"aa-InputWrapperSuffix",item:"aa-Item",label:"aa-Label",list:"aa-List",loadingIndicator:"aa-LoadingIndicator",panel:"aa-Panel",panelLayout:"aa-PanelLayout aa-Panel--scrollable",root:"aa-Autocomplete",source:"aa-Source",sourceFooter:"aa-SourceFooter",sourceHeader:"aa-SourceHeader",sourceNoResults:"aa-SourceNoResults",submitButton:"aa-SubmitButton"},uf=function(e,t){var n=e.children;(0,e.render)(n,t)},df={createElement:up,Fragment:pp,render:jp};function pf(e){var t=e.panelPlacement,n=e.container,r=e.form,i=e.environment,o=n.getBoundingClientRect(),s=(i.pageYOffset||i.document.documentElement.scrollTop||i.document.body.scrollTop||0)+o.top+o.height;switch(t){case"start":return{top:s,left:o.left};case"end":return{top:s,right:i.document.documentElement.clientWidth-(o.left+o.width)};case"full-width":return{top:s,left:0,right:0,width:"unset",maxWidth:"unset"};case"input-wrapper-width":var a=r.getBoundingClientRect();return{top:s,left:a.left,right:i.document.documentElement.clientWidth-(a.left+a.width),width:"unset",maxWidth:"unset"};default:throw new Error("[Autocomplete] The `panelPlacement` value ".concat(JSON.stringify(t)," is not valid."))}}function ff(e){return ff="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ff(e)}function hf(){return hf=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Af(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lf(e){for(var t=1;t0;if(!p.value.core.openOnFocus&&!t.query)return n;var r=Boolean(c.current||p.value.renderer.renderNoResults);return!n&&r||n},__autocomplete_metadata:{userAgents:Gl,options:e}}))})),m=oc(Lf({collections:[],completion:null,context:{},isOpen:!1,query:"",activeItemId:null,status:"idle"},p.value.core.initialState)),v={getEnvironmentProps:p.value.renderer.getEnvironmentProps,getFormProps:p.value.renderer.getFormProps,getInputProps:p.value.renderer.getInputProps,getItemProps:p.value.renderer.getItemProps,getLabelProps:p.value.renderer.getLabelProps,getListProps:p.value.renderer.getListProps,getPanelProps:p.value.renderer.getPanelProps,getRootProps:p.value.renderer.getRootProps},g={setActiveItemId:h.value.setActiveItemId,setQuery:h.value.setQuery,setCollections:h.value.setCollections,setIsOpen:h.value.setIsOpen,setStatus:h.value.setStatus,setContext:h.value.setContext,refresh:h.value.refresh,navigator:h.value.navigator},y=a((function(){return $d.bind(p.value.renderer.renderer.createElement)})),b=a((function(){return Xd({autocomplete:h.value,autocompleteScopeApi:g,classNames:p.value.renderer.classNames,environment:p.value.core.environment,isDetached:f.value,placeholder:p.value.core.placeholder,propGetters:v,setIsModalOpen:x,state:m.current,translations:p.value.renderer.translations})}));function w(){Ld(b.value.panel,{style:f.value?{}:pf({panelPlacement:p.value.renderer.panelPlacement,container:b.value.root,form:b.value.form,environment:p.value.core.environment})})}function _(e){m.current=e;var t={autocomplete:h.value,autocompleteScopeApi:g,classNames:p.value.renderer.classNames,components:p.value.renderer.components,container:p.value.renderer.container,html:y.value,dom:b.value,panelContainer:f.value?b.value.detachedContainer:p.value.renderer.panelContainer,propGetters:v,state:m.current,renderer:p.value.renderer.renderer},n=!Vc(e)&&!c.current&&p.value.renderer.renderNoResults||p.value.renderer.render;!function(e){var t=e.autocomplete,n=e.autocompleteScopeApi,r=e.dom,i=e.propGetters,o=e.state;Dd(r.root,i.getRootProps(vf({state:o,props:t.getRootProps({})},n))),Dd(r.input,i.getInputProps(vf({state:o,props:t.getInputProps({inputElement:r.input}),inputElement:r.input},n))),Ld(r.label,{hidden:"stalled"===o.status}),Ld(r.loadingIndicator,{hidden:"stalled"!==o.status}),Ld(r.clearButton,{hidden:!o.query}),Ld(r.detachedSearchButtonQuery,{textContent:o.query}),Ld(r.detachedSearchButtonPlaceholder,{hidden:Boolean(o.query)})}(t),function(e,t){var n=t.autocomplete,r=t.autocompleteScopeApi,i=t.classNames,o=t.html,s=t.dom,a=t.panelContainer,l=t.propGetters,c=t.state,u=t.components,d=t.renderer;if(c.isOpen){a.contains(s.panel)||"loading"===c.status||a.appendChild(s.panel),s.panel.classList.toggle("aa-Panel--stalled","stalled"===c.status);var p=c.collections.filter((function(e){var t=e.source,n=e.items;return t.templates.noResults||n.length>0})).map((function(e,t){var s=e.source,a=e.items;return d.createElement("section",{key:t,className:i.source,"data-autocomplete-source-id":s.sourceId},s.templates.header&&d.createElement("div",{className:i.sourceHeader},s.templates.header({components:u,createElement:d.createElement,Fragment:d.Fragment,items:a,source:s,state:c,html:o})),s.templates.noResults&&0===a.length?d.createElement("div",{className:i.sourceNoResults},s.templates.noResults({components:u,createElement:d.createElement,Fragment:d.Fragment,source:s,state:c,html:o})):d.createElement("ul",hf({className:i.list},l.getListProps(vf({state:c,props:n.getListProps({sourceIndex:t})},r))),a.map((function(e){var a=n.getItemProps({item:e,source:s,sourceIndex:t});return d.createElement("li",hf({key:a.id,className:i.item},l.getItemProps(vf({state:c,props:a},r))),s.templates.item({components:u,createElement:d.createElement,Fragment:d.Fragment,item:e,state:c,html:o}))}))),s.templates.footer&&d.createElement("div",{className:i.sourceFooter},s.templates.footer({components:u,createElement:d.createElement,Fragment:d.Fragment,items:a,source:s,state:c,html:o})))})),f=d.createElement(d.Fragment,null,d.createElement("div",{className:i.panelLayout},p),d.createElement("div",{className:"aa-GradientBottom"})),h=p.reduce((function(e,t){return e[t.props["data-autocomplete-source-id"]]=t,e}),{});e(vf(vf({children:f,state:c,sections:p,elements:h},d),{},{components:u,html:o},r),s.panel)}else a.contains(s.panel)&&a.removeChild(s.panel)}(n,t)}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i();var t=p.value.renderer,n=t.components,r=If(t,Pf);u.current=Sf(r,p.value.core,{components:Tf(n,(function(e){return!e.value.hasOwnProperty("__autocomplete_componentName")})),initialState:m.current},e),l(),o(),h.value.refresh().then((function(){_(m.current)}))}function x(e){requestAnimationFrame((function(){var t=p.value.core.environment.document.body.contains(b.value.detachedOverlay);e!==t&&(e?(p.value.core.environment.document.body.appendChild(b.value.detachedOverlay),p.value.core.environment.document.body.classList.add("aa-Detached"),b.value.input.focus()):(p.value.core.environment.document.body.removeChild(b.value.detachedOverlay),p.value.core.environment.document.body.classList.remove("aa-Detached")))}))}return r((function(){var e=h.value.getEnvironmentProps({formElement:b.value.form,panelElement:b.value.panel,inputElement:b.value.input});return Ld(p.value.core.environment,e),function(){Ld(p.value.core.environment,Object.keys(e).reduce((function(e,t){return Lf(Lf({},e),{},Df({},t,void 0))}),{}))}})),r((function(){var e=f.value?p.value.core.environment.document.body:p.value.renderer.panelContainer,t=f.value?b.value.detachedOverlay:b.value.panel;return f.value&&m.current.isOpen&&x(!0),_(m.current),function(){e.contains(t)&&e.removeChild(t)}})),r((function(){var e=p.value.renderer.container;return e.appendChild(b.value.root),function(){e.removeChild(b.value.root)}})),r((function(){var e=ic((function(e){_(e.state)}),0);return d.current=function(t){var n=t.state,r=t.prevState;(f.value&&r.isOpen!==n.isOpen&&x(n.isOpen),f.value||!n.isOpen||r.isOpen||w(),n.query!==r.query)&&p.value.core.environment.document.querySelectorAll(".aa-Panel--scrollable").forEach((function(e){0!==e.scrollTop&&(e.scrollTop=0)}));e({state:n})},function(){d.current=void 0}})),r((function(){var e=ic((function(){var e=f.value;f.value=p.value.core.environment.matchMedia(p.value.renderer.detachedMediaQuery).matches,e!==f.value?S({}):requestAnimationFrame(w)}),20);return p.value.core.environment.addEventListener("resize",e),function(){p.value.core.environment.removeEventListener("resize",e)}})),r((function(){if(!f.value)return function(){};function e(e){b.value.detachedContainer.classList.toggle("aa-DetachedContainer--modal",e)}function t(t){e(t.matches)}var n=p.value.core.environment.matchMedia(getComputedStyle(p.value.core.environment.document.documentElement).getPropertyValue("--aa-detached-modal-media-query"));e(n.matches);var r=Boolean(n.addEventListener);return r?n.addEventListener("change",t):n.addListener(t),function(){r?n.removeEventListener("change",t):n.removeListener(t)}})),r((function(){return requestAnimationFrame(w),function(){}})),Lf(Lf({},g),{},{update:S,destroy:function(){i()}})}function Nf(e){return Nf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nf(e)}function Rf(e){return function(e){if(Array.isArray(e))return Ff(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ff(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ff(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ff(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n`(${e[t].map((({label:e})=>`${t}:"${e}"`)).join(" OR ")})`)).join(` ${t} `)}function Yf(e,t){return e.reduce(((e,n)=>{const r=t(n);return e.hasOwnProperty(r)||(e[r]=[]),e[r].push(n),e}),{})}function Xf(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Kf(e),n=t.initialTags,r=t.getTagsSubscribers,i=t.transformSource,o=t.onChange,s=Hf({initialTags:n}),a={setTags:s.set,addTags:s.add};return{name:"aa.tagsPlugin",subscribe:function(e){var t=e.setContext,n=e.onSelect,i=e.setIsOpen,l=e.refresh,c=r();t({tagsPlugin:Wf(Wf({},a),{},{tags:s.get()})}),n((function(e){var t=e.source,n=e.item,r=c.find((function(e){return e.sourceId===t.sourceId}));r&&s.add([r.getTag({item:n})])})),s.onChange((function(n){var r=n.prevTags;t({tagsPlugin:Wf(Wf({},a),{},{tags:s.get()})}),i(!0),o(Wf(Wf({},e),{},{prevTags:r,tags:s.get()})),l()}))},getSources:function(e){var t=e.state;return[i({source:{sourceId:"tagsPlugin",getItems:function(){return s.get()},onSelect:function(e){e.item.remove()},templates:{item:function(e){var t=e.item,n=e.createElement;return n("div",{className:"aa-TagsPlugin-Tag"},n("span",{className:"aa-TagsPlugin-TagLabel"},t.label),n("button",{className:"aa-TagsPlugin-RemoveButton",title:"Remove this tag"},n("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24"},n("path",{d:"M18 6L6 18"}),n("path",{d:"M6 6L18 18"}))))}}},state:t})]},data:Wf(Wf({},a),{},{get tags(){return s.get()}}),__autocomplete_pluginOptions:e}}({initialTags:e,transformSource:({source:e})=>{},getTagsSubscribers:()=>[{sourceId:"section",getTag:({item:e})=>e}]})}function Qf(e,t){var n,r;null===(r=null===(n=e.context)||void 0===n?void 0:n.tagsPlugin)||void 0===r||r.setTags(t)}function Zf(e){var t,n;return(null===(n=null===(t=e.context)||void 0===t?void 0:t.tagsPlugin)||void 0===n?void 0:n.tags)||[]}const eh=function(e,t){let n;return(...r)=>(n&&clearTimeout(n),new Promise((i=>{n=setTimeout((()=>i(e(...r))),t)})))}((e=>Promise.resolve(e)),220);function th(e){return e>1e3?`${Math.ceil(e/1e3)}K`:e.toString()}function nh(e){return"Registry"===e?"Packages":e}function rh(e){switch(e){case"Docs":return"/icons/docs.svg";case"Registry":return"/icons/registry.svg";case"Tutorials":return"/icons/graduation-cap.svg"}return"/icons/list.svg"}let ih,oh,sh,ah,lh;function ch(e){if(ih=e.getAttribute("data-app-id"),oh=e.getAttribute("data-search-key"),sh=e.getAttribute("data-index"),lh=e.getAttribute("data-facets").split(",").map((e=>({label:e,facet:"section"}))),!(ih&&oh&&sh&&lh))return void console.error("Autocomplete element found, but one or more require attributes were missing.");function t(e,t,n){return{sourceId:"sections",getItems:()=>{return t={searchClient:ah,queries:[{indexName:sh,facet:"section",params:{query:e,filters:Jf(Yf(lh,(e=>e.facet)))}}],transformResponse:({facetHits:e})=>(n({facetHits:e}),[])},r=Ql({transformResponse:function(e){return e.facetHits}}),i=t.queries.map((function(e){return tc(tc({},e),{},{type:"facet"})})),r(tc(tc({},t),{},{queries:i}));var t,r,i},templates:{item:()=>null}}}ah=Pl()(ih,oh);const n=function(){const e={upDownPressed:!1};return window.addEventListener("keydown",(e=>{"k"===e.key.toLowerCase()&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),document.querySelector(".aa-DetachedSearchButton").click())})),window.addEventListener("keydown",(t=>{"ArrowUp"!==t.key&&"ArrowDown"!==t.key||t.target!==document.querySelector(".aa-DetachedFormContainer .aa-Input")||(e.upDownPressed=!0)}),{capture:!0}),document.body.addEventListener("click",(e=>{var t;const n=e.target;if(null==n?void 0:n.closest(".aa-ClearButton")){e.stopPropagation(),e.preventDefault();const r=null===(t=n.closest(".aa-Form"))||void 0===t?void 0:t.querySelector(".aa-Input");r&&(r.value="",r.focus(),r.dispatchEvent(new Event("input")))}})),e}();Mf({container:e,placeholder:"Search (⌘/ctrl-k)",openOnFocus:!1,detachedMediaQuery:"",defaultActiveItemId:0,onStateChange:({state:e,prevState:t,setCollections:r})=>{if(""!==t.query&&""===e.query&&(r([]),Qf(e,lh)),e.activeItemId>=0){const t=document.querySelectorAll(".aa-Item");if(t){const r=t.item(e.activeItemId);r&&n.upDownPressed&&r.scrollIntoView({behavior:"smooth",block:"nearest"})}n.upDownPressed=!1}},getSources:({query:e,state:n,refresh:r,setContext:i})=>{const o=[];return o.push(t(e,0,i)),o.push(function(e,t,n){return{sourceId:"results",getItems:({state:t})=>rc({searchClient:ah,queries:[{indexName:sh,query:e,params:{filters:Jf(Yf(Zf(t),(e=>e.facet))),hitsPerPage:50,page:0}}]}),getItemUrl:({item:e})=>new URL([document.location.origin,e.href].join("")).toString(),templates:{header:({html:e,state:t})=>{const r=t.context.facetHits[0],i=r.reduce(((e,t)=>e+t.count),0);return 1===lh.length?e`
      -
    • +
    `:e`
      -
    • +
    • - ${sh.map((i=>{const o=r.find((e=>e.label===i.label)),s=1===Xf(t).length&&Xf(t)[0].label===i.label,a=!o||0===o.count,l=o?o.count:0;return e` + ${lh.map((i=>{const o=r.find((e=>e.label===i.label)),s=1===Zf(t).length&&Zf(t)[0].label===i.label,a=!o||0===o.count,l=o?o.count:0;return e`
    • `}))}
    @@ -43,8 +43,8 @@ ${t.h1?n.Highlight({hit:t,attribute:"h1"}):n.Highlight({hit:t,attribute:"title"})}
    - - ${eh(t.section)} + + ${nh(t.section)}
    @@ -63,4 +63,4 @@

    We couldn't find any results for ${t.query}.

    Try a more general term or use fewer keywords.

    - `}}}}(e,0,r)),Qf(o)},insights:!0,plugins:[Jf(sh)]})}var lh;window.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelector("#search");e&&ah(e)})),"undefined"!=typeof customElements&&[na,ra,ia,oa,sa,aa,la,ca,ua,da,pa,fa,ha,ma,va,ga,ya,ba,wa,_a,Sa,xa,Oa,$a,ka,Ca,Ea,Ta,Pa,ja,Ia,Aa,La,Da,Ma,Na,Ra,Fa,Ba,qa,za,Ha].forEach((e=>{customElements.get(e.is)||customElements.define(e.is,e,lh)}))})()})(); \ No newline at end of file + `}}}}(e,0,r)),eh(o)},insights:!0,plugins:[Xf(lh)]})}var uh;window.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelector("#search");e&&ch(e)})),"undefined"!=typeof customElements&&[ra,ia,oa,sa,aa,la,ca,ua,da,pa,fa,ha,ma,va,ga,ya,ba,wa,_a,Sa,xa,Oa,$a,ka,Ca,Ea,Ta,Pa,ja,Ia,Aa,La,Da,Ma,Na,Ra,Fa,Ba,qa,za,Ha,Ua,Va].forEach((e=>{customElements.get(e.is)||customElements.define(e.is,e,uh)}))})()})(); \ No newline at end of file diff --git a/content/docs/iac/get-started/aws/begin.md b/content/docs/iac/get-started/aws/begin.md index a1bac0dfcf3e..c32396519b73 100644 --- a/content/docs/iac/get-started/aws/begin.md +++ b/content/docs/iac/get-started/aws/begin.md @@ -18,7 +18,7 @@ aliases: Before you get started using Pulumi, let's run through a few quick steps to ensure your environment is set up correctly. -### Install Pulumi +## Install Pulumi {{< install-pulumi >}} {{% notes "info" %}} @@ -28,9 +28,9 @@ All Windows examples in this tutorial assume you are running in PowerShell. Next, install the required language runtime, if you have not already. -### Install Language Runtime +## Install Language Runtime -#### Choose Your Language +### Choose Your Language {{< chooser language "javascript,typescript,python,go,csharp,java,yaml" / >}} @@ -58,7 +58,7 @@ Next, install the required language runtime, if you have not already. {{< install-yaml >}} {{% /choosable %}} -### Configure Pulumi to access your AWS account +## Configure Pulumi to access your AWS account Pulumi requires cloud credentials to manage and provision resources. You must use an IAM user account that has **programmatic access** with rights to deploy and manage resources handled through Pulumi. diff --git a/content/docs/iac/get-started/azure/begin.md b/content/docs/iac/get-started/azure/begin.md index 5ee41b20471b..7e0073be3d0e 100644 --- a/content/docs/iac/get-started/azure/begin.md +++ b/content/docs/iac/get-started/azure/begin.md @@ -18,7 +18,7 @@ aliases: Before you get started using Pulumi, let's run through a few quick steps to ensure your environment is set up correctly. -### Install Pulumi +## Install Pulumi {{< install-pulumi >}} {{% notes "info" %}} @@ -28,9 +28,9 @@ All Windows examples in this tutorial assume you are running in PowerShell. Next, install the required language runtime, if you have not already. -### Install Language Runtime +## Install Language Runtime -#### Choose Your Language +### Choose Your Language {{< chooser language "typescript,python,go,csharp,java,yaml" / >}} @@ -60,7 +60,7 @@ Next, install the required language runtime, if you have not already. Finally, configure Pulumi with Microsoft Azure. -### Configure Pulumi to access your Microsoft Azure account +## Configure Pulumi to access your Microsoft Azure account Pulumi requires cloud credentials to manage and provision resources. Pulumi can authenticate to Azure using a user account or service principal that has **Programmatic access** with rights to deploy and manage your Azure resources. diff --git a/content/docs/iac/get-started/gcp/begin.md b/content/docs/iac/get-started/gcp/begin.md index a81b07f85058..70a7281e3c05 100644 --- a/content/docs/iac/get-started/gcp/begin.md +++ b/content/docs/iac/get-started/gcp/begin.md @@ -18,7 +18,7 @@ aliases: Before you get started using Pulumi, let's run through a few quick steps to ensure your environment is set up correctly. -### Install Pulumi +## Install Pulumi {{< install-pulumi >}} {{% notes "info" %}} @@ -28,9 +28,9 @@ All Windows examples in this tutorial assume you are running in PowerShell. Next, install the required language runtime, if you have not already. -### Install Language Runtime +## Install Language Runtime -#### Choose Your Language +### Choose Your Language {{< chooser language "javascript,typescript,python,go,csharp,java,yaml" / >}} @@ -60,7 +60,7 @@ Next, install the required language runtime, if you have not already. Finally, configure Pulumi with Google Cloud. -### Configure Pulumi to access your Google Cloud account +## Configure Pulumi to access your Google Cloud account Pulumi requires cloud credentials to manage and provision resources. You must use an IAM user or service account that has **Programmatic access** with rights to deploy and manage your Google Cloud resources. diff --git a/layouts/docs/list.html b/layouts/docs/list.html index f9ebc6729b94..6283f0106b66 100644 --- a/layouts/docs/list.html +++ b/layouts/docs/list.html @@ -3,7 +3,7 @@ {{ if not .Params.noleftnav }}
    -
    +
    {{ partial "docs/menu.html" (dict "page" .) }}
    @@ -44,8 +44,8 @@

    {{ .Title }}

    {{ if not .Params.norightnav }} -
    - {{ partial "docs/table-of-contents.html" . }} +
    + {{ partial "docs/toc.html" . }} {{ partial "docs/feedback.html" . }} diff --git a/layouts/docs/single.html b/layouts/docs/single.html index 4b7d9bdec92a..7c131f65b019 100644 --- a/layouts/docs/single.html +++ b/layouts/docs/single.html @@ -2,7 +2,7 @@
    -
    +
    {{ partial "docs/menu.html" (dict "page" .) }}
    @@ -42,8 +42,8 @@

    {{ .Title }}

    -
    - {{ partial "docs/table-of-contents.html" . }} +
    + {{ partial "docs/toc.html" . }} {{ partial "docs/feedback.html" . }} diff --git a/layouts/partials/docs/feedback.html b/layouts/partials/docs/feedback.html index 86ab96471129..52b5b02a7998 100644 --- a/layouts/partials/docs/feedback.html +++ b/layouts/partials/docs/feedback.html @@ -1,5 +1,5 @@ -