You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
19 KiB

(function(_ds){var window=this;'use strict';var QR=function(a){var b=arguments.length;if(1==b&&Array.isArray(arguments[0]))return QR.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c},RR=function(a,b,c,d,e,g,k,l,m,p){this.h=a;this.C=b;this.G=c;this.m=d;this.o=e;this.D=g;this.F=k;this.H=l;this.j=m;this.K=p},SR=function(a){return new RR(a.m,a.o,a.H,a.h,a.j,a.C,a.K,a.F,a.D,a.G)},TR=function(a,b){a.G=b;return a},UR=function(a,b){a.D=b;return a},VR=function(a,b){a.F=b;return a},WR=function(){this.m=null;
this.o="";this.G=this.D=this.F=this.K=this.C=this.j=this.h=this.H=null},YR=function(a){var b=a.Z;b=(b=b&&"composed"in b&&b&&"composedPath"in b&&b.composed&&b.composedPath())&&0<b.length?b[0]:a.target;return SR(TR(UR(VR((new WR).keyCode(a.keyCode||0).key(a.key||"").shiftKey(!!a.shiftKey).altKey(!!a.altKey).ctrlKey(!!a.ctrlKey).metaKey(!!a.metaKey).target(a.target),b),function(){return a.preventDefault()}),function(){return a.stopPropagation()}))},ZR=function(a,b,c){_ds.Rf.call(this,a,c);this.j=b},
$R=function(a){this.h=a||null;this.next=a?null:{}},aS=function(a,b){var c=b.shift();_ds.dd(c,function(d){var e=a[d];e&&(0==b.length?e.h&&delete a[d]:e.next&&(aS(e.next,b.slice(0)),_ds.Vb(e.next)&&delete a[d]))})},dS=function(a){a=a.replace(/[ +]*\+[ +]*/g,"+").replace(/[ ]+/g," ").toLowerCase();a=a.split(" ");for(var b=[],c,d=0;c=a[d];d++){var e=c.split("+"),g=null,k=null;c=0;for(var l,m=0;l=e[m];m++){switch(l){case "shift":c|=1;continue;case "ctrl":c|=2;continue;case "alt":c|=4;continue;case "meta":c|=
8;continue}e=void 0;g=l;if(!bS){k={};for(e in cS)k[cS[e]]=_ds.or(parseInt(e,10));bS=k}k=bS[g];g=l;break}b.push({key:g,keyCode:k,modifiers:c})}return b},eS=function(a,b,c){c=c||0;b=["c_"+b+"_"+c];""!=a&&b.push("n_"+a+"_"+c);return b},fS=function(a,b){if("string"===typeof b[a])a=_ds.Mb(dS(b[a]),function(e){return eS(e.key||"",e.keyCode,e.modifiers)});else{var c=b,d=a;Array.isArray(b[a])&&(c=b[a],d=0);for(a=[];d<c.length;d+=2)a.push(eS("",c[d],c[d+1]))}return a},gS=function(a,b){32==a.D&&32==b.h&&(0,b.j)();
a.D=null},hS=function(a){return _ds.Lw&&a.o&&a.m},iS=function(a,b,c){var d=b.shift();_ds.dd(d,function(e){if((e=a[e])&&(0==b.length||e.h))throw Error("Keyboard shortcut conflicts with existing shortcut");});b.length?_ds.dd(d,function(e){e=e.toString();var g=new $R;e=e in a?a[e]:a[e]=g;iS(e.next,b.slice(0),c)}):_ds.dd(d,function(e){a[e]=new $R(c)})},jS=function(a,b){for(var c=0;c<b.length;c++){var d=a[b[c]];if(d)return d}},kS=function(a,b,c){a:{var d=b.h;if(""!=b.C){var e=b.C;if("Control"==e||"Shift"==
e||"Meta"==e||"AltGraph"==e){d=!1;break a}}else if(16==d||17==d||18==d){d=!1;break a}e=b.H;var g="TEXTAREA"==e.tagName||"INPUT"==e.tagName||"BUTTON"==e.tagName||"SELECT"==e.tagName,k=!g&&(e.isContentEditable||e.ownerDocument&&"on"==e.ownerDocument.designMode);d=!g&&!k||a.L[d]||a.F?!0:k?!1:a.N&&(b.m||b.o||b.D)?!0:"INPUT"==e.tagName&&a.W[e.type]?13==d:"INPUT"==e.tagName||"BUTTON"==e.tagName?a.O?!0:32!=d:!1}if(d)if(!c&&hS(b))a.o=!1;else{c=_ds.or(b.h);d=eS(b.C,c,(b.G?1:0)|(b.o?2:0)|(b.m?4:0)|(b.D?8:0));
e=jS(a.m,d);if(!e||1500<=_ds.wb()-a.C)a.m=a.j,a.C=_ds.wb();(e=jS(a.m,d))&&e.next&&(a.m=e.next,a.C=_ds.wb());e&&(e.next?(0,b.j)():(a.m=a.j,a.C=_ds.wb(),a.G&&(0,b.j)(),a.K&&(0,b.K)(),d=e.h,e=a.dispatchEvent(new ZR("shortcut",d,b.F)),(e&=a.dispatchEvent(new ZR("shortcut_"+d,d,b.F)))||(0,b.j)(),_ds.bk&&(a.D=c)))}},lS=function(a,b,c){for(;0<c.length&&b;){var d=c.shift();if((d=jS(b,d))&&(0==c.length&&d.h||lS(a,d.next,c.slice(0))))return!0}return!1},oS=function(a){_ds.dj.call(this);this.m=this.j={};this.C=
0;this.L=QR(mS);this.W=QR(nS);this.G=!0;this.F=this.K=!1;this.N=!0;this.O=!1;this.D=null;this.h=a;_ds.eg(this.h,"keydown",this.ni,void 0,this);_ds.eg(this.h,"synthetic-keydown",this.xi,void 0,this);_ds.Lw&&(_ds.eg(this.h,"keypress",this.Ai,void 0,this),_ds.eg(this.h,"synthetic-keypress",this.Bi,void 0,this));_ds.eg(this.h,"keyup",this.oi,void 0,this);_ds.eg(this.h,"synthetic-keyup",this.zi,void 0,this)},pS=function(a,b){return _ds.N(a,10,b||[])},qS=function(a){return(0,_ds.V)('<div class="devsite-popout" id="'+
_ds.X(a.id)+'"><div class="devsite-popout-result devsite-suggest-results-container" devsite-hide></div></div>')},rS=function(a){a=a||{};var b='<button type="submit" class="button button-white devsite-search-project-scope">';a="All results in "+_ds.tq(a.bb);return(0,_ds.V)(b+a+"</button>")},sS=function(a){var b=a.query,c=a.wc,d='<button type="submit" class="button button-white devsite-suggest-all-results">';a.cc?(a="All results across "+_ds.tq(c),d+=a):(a='All results for "'+(_ds.tq(b)+'"'),d+=a);
return(0,_ds.V)(d+"</button>")},tS=function(a){var b=a.link,c=a.title,d=a.public,e=a.action,g=a.Fj,k=a.bb,l=a.cc;a=a.hg;b=(d?"":'<devsite-analytics-scope action="'+_ds.X(_ds.Yq("Restricted "+e))+'">')+'<a class="devsite-result-item-link" href="'+_ds.X(_ds.Yq(b))+'"><span class="devsite-suggestion-fragment">'+_ds.tq(c)+"</span>"+(a?'<span class="devsite-suggestion-fragment">'+_ds.tq(a)+"</span>":"")+(g?'<span class="devsite-suggestion-fragment">'+_ds.tq(g)+"</span>":"")+(_ds.wq(k)&&!l?'<span class="devsite-suggestion-fragment">'+
_ds.tq(k)+"</span>":"");d||(b+='<span class="devsite-result-item-confidential">Confidential</span>');return(0,_ds.V)(b+("</a>"+(d?"":"</devsite-analytics-scope>")))},uS=function(a){var b=a.bb,c=a.cc,d=a.query,e=a.Kj;a=a.wc;b='<div class="devsite-suggest-wrapper '+(e?"":"devsite-search-disabled")+'"><div class="devsite-suggest-section"><div class="devsite-result-label">There are no suggestions for your query</div></div>'+((e?'<div class="devsite-suggest-footer">'+(c?rS({bb:b}):"")+sS({cc:c,query:d,
wc:a})+"</div>":"")+"</div>");return(0,_ds.V)(b)},vS=function(a){var b=a.Un,c=a.mo,d=a.Ao,e=a.bb,g=a.cc,k=a.query,l=a.Fo,m=a.Kj;a=a.wc;var p='<div class="devsite-suggest-wrapper '+(m?"":"devsite-search-disabled")+'" tabindex="0" role="list"><div class="devsite-suggest-section">';if(0<d.length){p=p+'<div class="devsite-suggest-sub-section" role="listitem"><div class="devsite-suggest-header" id="devsite-suggest-header-partial-query" role="heading" aria-level="2">Suggested searches'+((g?'<span class="devsite-suggest-project">'+
_ds.tq(e)+"</span>":"")+'</div><devsite-analytics-scope category="Site-Wide Custom Events" label="Search" role="list" aria-labelledby="devsite-suggest-header-partial-query" action="Query Suggestion Click">');for(var q=d.length,r=0;r<q;r++){var w=d[r];p+='<div class="devsite-result-item devsite-nav-label" id="suggestion-partial-query-'+_ds.X(r)+'" role="listitem" index=":'+_ds.X(r)+'">'+tS({link:_ds.L(w,2),title:w.Ba(),public:_ds.uf(w,14),action:"Query Suggestion Click"})+"</div>"}p+="</devsite-analytics-scope></div>"}p+=
0<d.length&&0<b.length?'<hr role="none">':"";if(0<b.length){p=p+'<div class="devsite-suggest-sub-section" role="listitem"><div class="devsite-suggest-header" id="devsite-suggest-header-product" role="heading" aria-level="2">Pages'+((g?'<span class="devsite-suggest-project">'+_ds.tq(e)+"</span>":"")+'</div><devsite-analytics-scope category="Site-Wide Custom Events" label="Search" role="list" aria-labelledby="devsite-suggest-header-product" action="Page Suggestion Click">');q=b.length;for(r=0;r<q;r++)w=
b[r],p+='<div class="devsite-result-item devsite-nav-label" id="suggestion-product-'+_ds.X(r)+'" role="listitem" index=":'+_ds.X(r)+'">'+tS({link:_ds.L(w,2),title:w.Ba(),public:_ds.uf(w,14),bb:_ds.L(w,4),cc:g,action:"Page Suggestion Click"})+"</div>";p+="</devsite-analytics-scope></div>"}p+=0<l.length&&0<b.length+d.length?'<hr role="none">':"";if(0<l.length){p=p+'<div class="devsite-suggest-sub-section" role="listitem"><div class="devsite-suggest-header" id="devsite-suggest-header-reference" role="heading" aria-level="2">Reference'+
((g?'<span class="devsite-suggest-project">'+_ds.tq(e)+"</span>":"")+'</div><devsite-analytics-scope category="Site-Wide Custom Events" label="Search" role="list" aria-labelledby="devsite-suggest-header-reference" action="Reference Suggestion Click">');q=l.length;for(r=0;r<q;r++)w=l[r],p+='<div class="devsite-result-item devsite-nav-label" id="suggestion-reference-'+_ds.X(r)+'" role="listitem" index=":'+_ds.X(r)+'">'+tS({link:_ds.L(w,2),title:w.Ba(),public:_ds.uf(w,14),action:"Reference Suggestion Click",
Fj:_ds.L(w,3),bb:_ds.L(w,4),cc:g,hg:_ds.I(w,10)[0]})+"</div>";p+="</devsite-analytics-scope></div>"}p+=0<c.length&&0<b.length+d.length+l.length?'<hr role="none">':"";if(0<c.length){p+='<div class="devsite-suggest-sub-section" role="listitem"><div class="devsite-suggest-header" id="devsite-suggest-header-other-products" role="heading" aria-level="2"><span role="columnheader">Products</span></div><devsite-analytics-scope category="Site-Wide Custom Events" label="Search" role="list" aria-labelledby="devsite-suggest-header-other-products" action="Product Suggestion Click">';
b=c.length;for(d=0;d<b;d++)l=c[d],p+='<div class="devsite-result-item devsite-nav-label" id="suggestion-other-products-'+_ds.X(d)+'" role="listitem" index=":'+_ds.X(d)+'">'+tS({link:_ds.L(l,2),title:l.Ba(),public:_ds.uf(l,14),action:"Product Suggestion Click"})+"</div>";p+="</devsite-analytics-scope></div>"}p+="</div>"+(m?'<div class="devsite-suggest-footer">'+(g?rS({bb:e}):"")+sS({cc:g,query:k,wc:a})+"</div>":"")+"</div>";return(0,_ds.V)(p)},wS=function(){var a=_ds.R.call(this)||this;a.N=!1;a.H=
{};a.G="";a.C=null;a.j=new _ds.Qj;a.h=null;a.L=!1;return a},CS=function(a){a.h&&(a.j.listen(a.h,"suggest-service-search",function(b){a:{var c=a.D.querySelector(".highlight");if(c&&(c=c.querySelector(".devsite-result-item-link"))){c.click();break a}xS(a,b.detail.originalEvent,!!a.C)}}),a.j.listen(a.h,"suggest-service-suggestions-received",function(b){return void yS(a,b)}),a.j.listen(a.h,"suggest-service-focus",function(){zS(a,"cloud-track-search-focus",null);a.L=!0;AS(a,!0)}),a.j.listen(a.h,"suggest-service-blur",
function(){AS(a,!1)}),a.j.listen(a.h,"suggest-service-input",function(){!a.H["Text Entered Into Search Bar"]&&a.h.query.trim()&&(a.dispatchEvent(new CustomEvent("devsite-analytics-observation",{detail:{category:"Site-Wide Custom Events",label:"Search",action:"Text Entered Into Search Bar"},bubbles:!0})),a.H["Text Entered Into Search Bar"]=!0);a.L&&(zS(a,"cloud-track-search-input",null),a.L=!1)}),a.j.listen(a.h,"suggest-service-navigate",function(b){return void BS(a,b)}),a.j.listen(document.body,"devsite-page-changed",
function(){return a.H={}}),a.h.Pj("SLASH",191));a.m&&a.j.listen(a.m,"submit",function(b){xS(a,b)});a.D&&a.j.listen(a.D,"click",function(b){var c=b.target;"A"==c.tagName.toUpperCase()&&AS(a,!1);var d=_ds.Bh(c,"devsite-result-item-link");d&&(d={bp:d.getAttribute("href")},zS(a,"cloud-track-search-submit",d));c.classList.contains("devsite-search-project-scope")&&xS(a,b,!0)});a.Y&&a.j.listen(a.Y,"click",function(){return void AS(a,!0)});a.O&&a.j.listen(a.O,"click",function(){return void AS(a,!1)})},xS=
function(a,b,c){c=void 0===c?!1:c;var d,e,g;_ds.E(function(k){if(1==k.h){b.preventDefault();b.stopPropagation();if(!a.hasAttribute("enable-search"))return k.J(0);a.H["Full Site Search"]||(a.dispatchEvent(new CustomEvent("devsite-analytics-observation",{detail:{category:"Site-Wide Custom Events",label:"Search",action:"Full Site Search"},bubbles:!0})),a.H["Full Site Search"]=!0);d=c&&a.C?_ds.Gi(a.C):_ds.Gi(a.m.getAttribute("action"));e=new _ds.Zh(d.href);_ds.li(e,"q",a.h.query);d.search=e.h.toString();
return _ds.u(k,DevsiteApp.fetchPage(d.href),3)}AS(a,!1);g="no match";a.K&&(g={contains:{bp:a.K}});zS(a,"cloud-track-search-submit",g);_ds.v(k)})},BS=function(a,b){var c=b.detail;b=a.o.querySelector(".highlight");var d,e=Array.from(a.o.querySelectorAll(".devsite-result-item")),g=[],k=-1;if(b){var l=_ds.zh(b,function(p){return p.classList.contains("devsite-suggest-section")});g=Array.from(l.querySelectorAll(".devsite-result-item"));l=_ds.eh(b.parentNode.parentNode);var m=_ds.fh(b.parentNode.parentNode);
k=e.indexOf(b)}switch(c.keyCode){case 37:if(!l&&!m)return;b&&(c=b.getAttribute("index"),m?(d=m.querySelector('[index="'+c+'"]'))||(d=_ds.Bb(Array.from(m.querySelectorAll("[index]")))):l&&((d=l.querySelector('[index="'+c+'"]'))||(d=_ds.Bb(Array.from(l.querySelectorAll("[index]"))))));break;case 39:if(!l&&!m)return;b&&(c=b.getAttribute("index"),l?(d=l.querySelector('[index="'+c+'"]'))||(d=_ds.Bb(Array.from(l.querySelectorAll("[index]")))):m&&((d=m.querySelector('[index="'+c+'"]'))||(d=_ds.Bb(Array.from(m.querySelectorAll("[index]"))))));
break;case 38:b?(d=e[k-1])||(d=_ds.Bb(g)):d=_ds.Bb(e);break;case 40:b?(d=e[k+1])||(d=g[0]):d=e[0]}b&&(b.classList.remove("highlight"),b.removeAttribute("aria-selected"));d&&(a.F.setAttribute("aria-activedescendant",d.id),d.setAttribute("aria-selected","true"),d.classList.add("highlight"),d.scrollIntoViewIfNeeded&&d.scrollIntoViewIfNeeded()||d.scrollIntoView())},zS=function(a,b,c){a.dispatchEvent(new CustomEvent(b,{detail:{type:"search",name:b,position:"nav",metadata:{eventDetail:c}},bubbles:!0}))},
AS=function(a,b){if(a.N!==b){_ds.ur(a.h,b);if(a.N=b)a.setAttribute("search-active","");else{var c=a.D.querySelector(".highlight");c&&c.classList.remove("highlight");a.removeAttribute("search-active");a.setAttribute("aria-expanded","false");_ds.Xg(a.o)}a.hasAttribute("capture")||a.dispatchEvent(new CustomEvent("devsite-search-toggle",{detail:{active:b},bubbles:!0}))}},yS=function(a,b){a.K=null;b=b.detail;var c=b.suggestions,d=b.query;if(a.h.query.toLowerCase().startsWith(d.toLowerCase()))if(c){var e=
c.tb();0<e.length&&(b=e.filter(function(y){return y.Ba().includes(d)}),0<b.length&&(a.K=b[0].Ba()));b=e.filter(function(y){return 2===y.Wb()});c=e.filter(function(y){return 3===y.Wb()});var g=e.filter(function(y){return 4===y.Wb()}).slice(0,5),k=e.filter(function(y){return 1===y.Wb()});e=b.length+g.length+k.length;var l=a.C?a.C:"";g.forEach(function(y){return y.Mc(_ds.Gi(l+"/s/results/?q="+y.Ba()).toString())});var m=d.split(DS);c.forEach(function(y){return pS(y,_ds.I(y,10).filter(function(D){return m.some(function(B){return D.includes(B)})}))});
var p=a.getAttribute("project-name")||"",q=a.hasAttribute("project-scope"),r=a.hasAttribute("enable-search"),w=a.getAttribute("tenant-name")||"";b={Un:b,bb:p,cc:q,mo:k,Ao:g,query:d,Fo:c,Kj:r,wc:w};0===e?_ds.fr(a.o,uS,b):(_ds.fr(a.o,vS,b),ES(a,d));a.setAttribute("aria-expanded","true");a.o.removeAttribute("hidden")}else a.o.setAttribute("hidden",""),a.setAttribute("aria-expanded","false")},ES=function(a,b){b=new RegExp("("+_ds.Md(b)+")","ig");a=_ds.n(a.o.querySelectorAll(".devsite-suggestion-fragment"));
for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.innerHTML;d=d.replace(b,"<b>$1</b>");d=_ds.Ft(d);_ds.Bd(c,d)}},cS={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"caps-lock",27:"esc",32:"space",33:"pg-up",34:"pg-down",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:"semicolon",61:"equals",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",
75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",93:"context",96:"num-0",97:"num-1",98:"num-2",99:"num-3",100:"num-4",101:"num-5",102:"num-6",103:"num-7",104:"num-8",105:"num-9",106:"num-multiply",107:"num-plus",109:"num-minus",110:"num-period",111:"num-division",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",186:"semicolon",187:"equals",189:"dash",188:",",190:".",191:"/",
192:"`",219:"open-square-bracket",220:"\\",221:"close-square-bracket",222:"single-quote",224:"win"};_ds.f=WR.prototype;_ds.f.keyCode=function(a){this.m=a;return this};_ds.f.key=function(a){this.o=a;return this};_ds.f.shiftKey=function(a){this.H=a;return this};_ds.f.altKey=function(a){this.h=a;return this};_ds.f.ctrlKey=function(a){this.j=a;return this};_ds.f.metaKey=function(a){this.C=a;return this};_ds.f.target=function(a){this.K=a;return this};_ds.F(ZR,_ds.Rf);
var mS=[27,112,113,114,115,116,117,118,119,120,121,122,123,19],nS="color date datetime datetime-local email month number password search tel text time url week".split(" "),bS;_ds.F(oS,_ds.dj);_ds.f=oS.prototype;_ds.f.nF=function(){return this.G};_ds.f.Lfa=function(a){this.K=a};_ds.f.oF=function(){return this.K};_ds.f.Ifa=function(a){this.F=a};_ds.f.kF=function(){return this.F};_ds.f.$ja=function(a){this.N=a};_ds.f.GJ=function(){return this.N};_ds.f.Kfa=function(a){this.O=a};_ds.f.Gj=_ds.ba(2);
_ds.f.Xna=function(a){aS(this.j,fS(0,arguments))};_ds.f.DX=function(a){return lS(this,this.j,fS(0,arguments))};_ds.f.mia=function(a){this.L=QR(a)};_ds.f.bI=function(){return _ds.Ub(this.L)};
_ds.f.ma=function(){oS.ua.ma.call(this);this.j={};_ds.pg(this.h,"keydown",this.ni,!1,this);_ds.pg(this.h,"synthetic-keydown",this.xi,!1,this);_ds.Lw&&(_ds.pg(this.h,"keypress",this.Ai,!1,this),_ds.pg(this.h,"synthetic-keypress",this.Bi,!1,this));_ds.pg(this.h,"keyup",this.oi,!1,this);_ds.pg(this.h,"synthetic-keyup",this.zi,!1,this);this.h=null};_ds.f.mO=function(a){return"shortcut_"+a};_ds.f.oi=function(a){a=YR(a);_ds.bk&&gS(this,a);_ds.Lw&&!this.o&&hS(a)&&kS(this,a,!0)};
_ds.f.zi=function(a){a=a.j();_ds.bk&&gS(this,a);_ds.Lw&&!this.o&&hS(a)&&kS(this,a,!0)};_ds.f.Ai=function(a){a=YR(a);32<a.h&&hS(a)&&(this.o=!0)};_ds.f.Bi=function(a){a=a.j();32<a.h&&hS(a)&&(this.o=!0)};_ds.f.ni=function(a){kS(this,YR(a))};_ds.f.xi=function(a){kS(this,a.j())};
_ds.vr.prototype.Pj=_ds.ca(3,function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];var e=this;this.j&&this.j.dispose();a&&(this.j=new oS(document),this.j.G=!1,this.j.Gj.apply(this.j,[a].concat(_ds.la(c))),this.eventHandler.listen(this.j,"shortcut",function(g){var k=document;k.activeElement&&k.activeElement===k.body&&(g.preventDefault(),_ds.ur(e,!0))}))});oS.prototype.Gj=_ds.ca(2,function(a,b){iS(this.j,fS(1,arguments),a)});var DS=/[ .()<>{}\[\]\/:,]+/,FS=0;_ds.t(wS,_ds.R);wS.prototype.disconnectedCallback=function(){_ds.Wj(this.j);this.h&&(this.h.dispose(),this.h=null)};wS.prototype.attributeChangedCallback=function(a,b,c){switch(a){case "project-scope":this.G=c||"";this.h&&(this.h.N=this.G);break;case "url-scoped":this.C=c;break;case "disabled":this.F&&(this.F.disabled=null!==c)}};
wS.prototype.connectedCallback=function(){if(this.m=this.querySelector("form")){this.F=this.m.querySelector(".devsite-search-query");this.Y=this.m.querySelector(".devsite-search-button[search-open]");this.O=this.querySelector(".devsite-search-button[search-close]");var a="devsite-search-popout-container-id-"+ ++FS;this.F.setAttribute("aria-controls",a);this.D=_ds.ir(qS,{id:a});this.o=this.D.querySelector(".devsite-suggest-results-container");this.m.appendChild(this.D);this.hasAttribute("project-scope")&&
(this.G=this.getAttribute("project-scope"));this.hasAttribute("url-scoped")&&(this.C=this.getAttribute("url-scoped"));this.m&&this.F&&(this.h=new _ds.vr(this.m,this.F),this.h.m=!0,this.h.Bf=this.hasAttribute("enable-query-completion"),this.h.ke=!0,this.h.Af=!0,this.h.Cf=!0,this.h.N=this.G,this.h.m=this.hasAttribute("enable-suggestions"));CS(this)}};_ds.fa.Object.defineProperties(wS,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["project-scope","url-scoped","disabled"]}}});
wS.prototype.connectedCallback=wS.prototype.connectedCallback;wS.prototype.attributeChangedCallback=wS.prototype.attributeChangedCallback;wS.prototype.disconnectedCallback=wS.prototype.disconnectedCallback;try{window.customElements.define("devsite-search",wS)}catch(a){console.warn("devsite.app.customElement.DevsiteSearch",a)};})(_ds_www);