(function(){var m=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a},aa=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b0;){var a=this.g.pop();if(a in this.i)return a}return null};O.prototype.getNext=O.prototype.h; var ba=function(a){this.g=new K;this.h=a},ca=function(a,b){L(a.g);var c=a.g.j;if(c)return P(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return Q(a)},P=function(a,b,c,d){try{var f=b.call(a.g.j,c);I(f);if(!f.done)return a.g.u=!1,f;var k=f.value}catch(e){return a.g.j=null,M(a.g,e),Q(a)}a.g.j=null;d.call(a.g,k);return Q(a)},Q=function(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.u=!1,{value:b.value,done:!1}}catch(c){a.g.v=void 0,M(a.g,c)}a.g.u=!1;if(a.g.h){b= a.g.h;a.g.h=null;if(b.O)throw b.N;return{value:b.return,done:!0}}return{value:void 0,done:!0}},da=function(a){this.next=function(b){L(a.g);a.g.j?b=P(a,a.g.j.next,b,a.g.A):(a.g.A(b),b=Q(a));return b};this.throw=function(b){L(a.g);a.g.j?b=P(a,a.g.j["throw"],b,a.g.A):(M(a.g,b),b=Q(a));return b};this.return=function(b){return ca(a,b)};this[Symbol.iterator]=function(){return this}},ea=function(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,f){function k(e){e.done? d(e.value):Promise.resolve(e.value).then(b,c).then(k,f)}k(a.next())})},fa=function(){for(var a=Number(this),b=[],c=a;c>>0)+"_",d=0,f=function(k){if(this instanceof f)throw new TypeError("Symbol is not a constructor");return new b(c+(k||"")+"_"+d++,k)};return f}); z("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");m(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ha(C(this))}});return a});var ha=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}; z("Promise",function(a){function b(){this.g=null}function c(e){return e instanceof f?e:new f(function(h){h(e)})}if(a)return a;b.prototype.h=function(e){if(this.g==null){this.g=[];var h=this;this.i(function(){h.m()})}this.g.push(e)};var d=y.setTimeout;b.prototype.i=function(e){d(e,0)};b.prototype.m=function(){for(;this.g&&this.g.length;){var e=this.g;this.g=[];for(var h=0;h=k}});z("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=R(this,b,"endsWith");b+="";c===void 0&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var f=b.length;f>0&&c>0;)if(d[--c]!=b[--f])return!1;return f<=0}}); z("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&c.push(b[d]);return c}});z("Object.is",function(a){return a?a:function(b,c){return b===c?b!==0||1/b===1/c:b!==b&&c!==c}});z("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var f=d.length;c=c||0;for(c<0&&(c=Math.max(c+f,0));c1&&c[1]!=="/"&&c[1]!=="\\")d=!0;else throw Error("The path start in the url is invalid.");else d=!1;if(!(d=d||RegExp("^[^:\\s\\\\/]+/").test(c)))if(/^about:blank/.test(c)){if(c!=="about:blank"&&!/^about:blank#/.test(c))throw Error("The about url is invalid.");d=!0}else d=!1;if(!d)throw Error("Trying to interpolate expressions in an unsupported url format."); c=a[0];for(d=0;d=0&&b=0;)f.push(a.substring(c,d)),c=Math.min(a.indexOf("&",d)+1||b,b);f.push(a.slice(c));return f.join("").replace(Wa,"$1")};var Ra=Object.values({ca:"discoveryRestUrl",fa:"methodId",Y:"apiKey",Z:"clientId",ia:"showTitle",ba:"defaultScopes",da:"extraDescription",ea:"hideApiKey",ha:"showSystemParams",ja:"useCors",ga:"showCodeButton",aa:"concierge"}),Za=Y(function(a){return Oa(a,function(b,c,d,f){b.setWideLayout=Y(function(k){b.X=k;c("layout",{wide:k})});b.setDarkMode=Y(function(k){c("theme",{enableDarkMode:k})});b.setMethod=Y(function(k){c("set_method",{methodId:k})});b.setParams=Y(function(k,e,h){typeof k!=="string"&&(k= JSON.stringify(k));c("params",{params:k,source:h||"host-dynamic",tag:e})});f=f.trim();f.startsWith("\x3c!--")&&f.endsWith("--\x3e")&&f.length>7&&c("comment",{string:f});b.addFeedbackFn=Y(function(k){b.L=k;d.feedback=function(){b.L()};c("bound_feedback_fn",{})});b.addFullscreenFn=Y(function(k){b.M=k;d.fullscreen=function(){b.M()};c("bound_fullscreen_fn",{})});f.includes('"format": "password"')||(d.url=function(k){var e=k.params;if(Object.keys(e).length){k=window.location.href;var h=JSON.stringify(e); e=Xa(k);if(k="apix_params"+(h!=null?"="+encodeURIComponent(String(h)):"")){h=e.indexOf("#");h<0&&(h=e.length);var g=e.indexOf("?");if(g<0||g>h){g=h;var n=""}else n=e.substring(g+1,h);e=[e.slice(0,g),n,e.slice(h)];h=e[1];e[1]=k?h?h+"&"+k:k:h;k=e[0]+(e[1]?"?"+e[1]:"")+e[2]}else k=e}else k=Xa(window.location.href);window.history.replaceState(null,"",k)});b.X&&b.setWideLayout(!0);b.L&&b.addFeedbackFn(b.L);b.M&&b.addFullscreenFn(b.M);(f=b.getAttribute(Sa("params")))?b.setParams(f,void 0,"host-default"): (f=Ya())&&b.setParams(f,void 0,"url");b.W&&b.W()})}),$a=Y(function(a){Ta(a)});function Ya(){for(var a=window.location.search.substring(1).split("&"),b=0;b