vendor: 8,355 bytes, lines 1-15
1var SearchWidget=function(g){var Dt;"use strict";/** 2 * @license 3 * Copyright 2019 Google LLC 4 * SPDX-License-Identifier: BSD-3-Clause 5 */const D=globalThis,Y=D.ShadowRoot&&(D.ShadyCSS===void 0||D.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,tt=Symbol(),pt=new WeakMap;let ft=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==tt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Y&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=pt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&pt.set(e,t))}return t}toString(){return this.cssText}};const Vt=i=>new ft(typeof i=="string"?i:i+"",void 0,tt),B=(i,...t)=>{const e=i.length===1?i[0]:t.reduce((s,r,o)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+i[o+1],i[0]);return new ft(e,i,tt)},Kt=(i,t)=>{if(Y)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),r=D.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=e.cssText,i.appendChild(s)}},mt=Y?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return Vt(e)})(i):i;/** 6 * @license 7 * Copyright 2017 Google LLC 8 * SPDX-License-Identifier: BSD-3-Clause 9 */const{is:qt,defineProperty:Ft,getOwnPropertyDescriptor:Jt,getOwnPropertyNames:Zt,getOwnPropertySymbols:Qt,getPrototypeOf:Xt}=Object,_=globalThis,gt=_.trustedTypes,Yt=gt?gt.emptyScript:"",et=_.reactiveElementPolyfillSupport,P=(i,t)=>i,W={toAttribute(i,t){switch(t){case Boolean:i=i?Yt:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},it=(i,t)=>!qt(i,t),$t={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:it};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),_.litPropertyMetadata??(_.litPropertyMetadata=new WeakMap);class x extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=$t){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),r=this.getPropertyDescriptor(t,s,e);r!==void 0&&Ft(this.prototype,t,r)}}static getPropertyDescriptor(t,e,s){const{get:r,set:o}=Jt(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get(){return r==null?void 0:r.call(this)},set(n){const a=r==null?void 0:r.call(this);o.call(this,n),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??$t}static _$Ei(){if(this.hasOwnProperty(P("elementProperties")))return;const t=Xt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(P("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(P("properties"))){const e=this.properties,s=[...Zt(e),...Qt(e)];for(const r of s)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,r]of e)this.elementProperties.set(s,r)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const r=this._$Eu(e,s);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const r of s)e.unshift(mt(r))}else t!==void 0&&e.push(mt(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$ES??(this._$ES=[])).push(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$ES)==null||e.splice(this._$ES.indexOf(t)>>>0,1)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Kt(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EO(t,e){var o;const s=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,s);if(r!==void 0&&s.reflect===!0){const n=(((o=s.converter)==null?void 0:o.toAttribute)!==void 0?s.converter:W).toAttribute(e,s.type);this._$Em=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(t,e){var o;const s=this.constructor,r=s._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const n=s.getPropertyOptions(r),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)==null?void 0:o.fromAttribute)!==void 0?n.converter:W;this._$Em=r,this[r]=a.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,s,r=!1,o){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??it)(r?o:this[t],e))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[o,n]of r)n.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.C(o,this[o],n)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$ES)==null||s.forEach(r=>{var o;return(o=r.hostUpdate)==null?void 0:o.call(r)}),this.update(e)):this._$ET()}catch(r){throw t=!1,this._$ET(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)==null||e.forEach(s=>{var r;return(r=s.hostUpdated)==null?void 0:r.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EO(e,this[e]))),this._$ET()}updated(t){}firstUpdated(t){}}x.elementStyles=[],x.shadowRootOptions={mode:"open"},x[P("elementProperties")]=new Map,x[P("finalized")]=new Map,et==null||et({ReactiveElement:x}),(_.reactiveElementVersions??(_.reactiveElementVersions=[])).push("2.0.0");/** 10 * @license 11 * Copyright 2017 Google LLC 12 * SPDX-License-Identifier: BSD-3-Clause 13 */const U=globalThis,G=U.trustedTypes,_t=G?G.createPolicy("lit-html",{createHTML:i=>i}):void 0,bt="$lit$",b=`lit$${(Math.random()+"").slice(9)}$`,vt="?"+b,te=`<${vt}>`,y=document,O=()=>y.createComment(""),M=i=>i===null||typeof i!="object"&&typeof i!="function",yt=Array.isArray,ee=i=>yt(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",st=`[ 14\f\r]`,j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,At=/-->/g,wt=/>/g,A=RegExp(`>|${st}(?:([^\\s"'>=/]+)(${st}*=${st}*(?:[^ 15\f\r"'\`<>=]|("|')|))|$)`,"g"),St=/'/g,Et=/"/g,xt=/^(?:script|style|textarea|title)$/i,ie=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}
vendor: 4,256 bytes, line 15
15),w=ie(1),$=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Tt=new WeakMap,S=y.createTreeWalker(y,129);function Ct(i,t){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return _t!==void 0?_t.createHTML(t):t}const se=(i,t)=>{const e=i.length-1,s=[];let r,o=t===2?"<svg>":"",n=j;for(let a=0;a<e;a++){const l=i[a];let h,u,c=-1,f=0;for(;f<l.length&&(n.lastIndex=f,u=n.exec(l),u!==null);)f=n.lastIndex,n===j?u[1]==="!--"?n=At:u[1]!==void 0?n=wt:u[2]!==void 0?(xt.test(u[2])&&(r=RegExp("</"+u[2],"g")),n=A):u[3]!==void 0&&(n=A):n===A?u[0]===">"?(n=r??j,c=-1):u[1]===void 0?c=-2:(c=n.lastIndex-u[2].length,h=u[1],n=u[3]===void 0?A:u[3]==='"'?Et:St):n===Et||n===St?n=A:n===At||n===wt?n=j:(n=A,r=void 0);const m=n===A&&i[a+1].startsWith("/>")?" ":"";o+=n===j?l+te:c>=0?(s.push(h),l.slice(0,c)+bt+l.slice(c)+b+m):l+b+(c===-2?a:m)}return[Ct(i,o+(i[e]||"<?>")+(t===2?"</svg>":"")),s]};class N{constructor({strings:t,_$litType$:e},s){let r;this.parts=[];let o=0,n=0;const a=t.length-1,l=this.parts,[h,u]=se(t,e);if(this.el=N.createElement(h,s),S.currentNode=this.el.content,e===2){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(r=S.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const c of r.getAttributeNames())if(c.endsWith(bt)){const f=u[n++],m=r.getAttribute(c).split(b),k=/([.?@])?(.*)/.exec(f);l.push({type:1,index:o,name:k[2],strings:m,ctor:k[1]==="."?oe:k[1]==="?"?ne:k[1]==="@"?ae:V}),r.removeAttribute(c)}else c.startsWith(b)&&(l.push({type:6,index:o}),r.removeAttribute(c));if(xt.test(r.tagName)){const c=r.textContent.split(b),f=c.length-1;if(f>0){r.textContent=G?G.emptyScript:"";for(let m=0;m<f;m++)r.append(c[m],O()),S.nextNode(),l.push({type:2,index:++o});r.append(c[f],O())}}}else if(r.nodeType===8)if(r.data===vt)l.push({type:2,index:o});else{let c=-1;for(;(c=r.data.indexOf(b,c+1))!==-1;)l.push({type:7,index:o}),c+=b.length-1}o++}}static createElement(t,e){const s=y.createElement("template");return s.innerHTML=t,s}}function T(i,t,e=i,s){var n,a;if(t===$)return t;let r=s!==void 0?(n=e._$Co)==null?void 0:n[s]:e._$Cl;const o=M(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==o&&((a=r==null?void 0:r._$AO)==null||a.call(r,!1),o===void 0?r=void 0:(r=new o(i),r._$AT(i,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=r:e._$Cl=r),r!==void 0&&(t=T(i,r._$AS(i,t.values),r,s)),t}class re{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,r=((t==null?void 0:t.creationScope)??y).importNode(e,!0);S.currentNode=r;let o=S.nextNode(),n=0,a=0,l=s[0];for(;l!==void 0;){if(n===l.index){let h;l.type===2?h=new I(o,o.nextSibling,this,t):l.type===1?h=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(h=new le(o,this,t)),this._$AV.push(h),l=s[++a]}n!==(l==null?void 0:l.index)&&(o=S.nextNode(),n++)}return S.currentNode=y,r}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class I{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,r){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=T(this,t,e),M(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==$&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):ee(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==d&&M(this._$AH)?this._$AA.nextSibling.data=t:this.$(y.createTextNode(t)),this._$AH=t}g(t){var o;const{values:e,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=N.createElement(Ct(s.h,s.h[0]),this.options)),s);if(((o=this._$AH)==null?void 0:o._$AD)===r)this._$AH.p(e);else{const n=new re(r,this),a=n.u(this.options);n.p(e),this.$(a),this._$AH=n}}
vendor: 7,798 bytes, lines 15-47
15_$AC(t){let e=Tt.get(t.strings);return e===void 0&&Tt.set(t.strings,e=new N(t)),e}T(t){yt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,r=0;for(const o of t)r===e.length?e.push(s=new I(this.k(O()),this.k(O()),this,this.options)):s=e[r],s._$AI(o),r++;r<e.length&&(this._$AR(s&&s._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class V{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,r,o){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,r){const o=this.strings;let n=!1;if(o===void 0)t=T(this,t,e,0),n=!M(t)||t!==this._$AH&&t!==$,n&&(this._$AH=t);else{const a=t;let l,h;for(t=o[0],l=0;l<o.length-1;l++)h=T(this,a[s+l],e,l),h===$&&(h=this._$AH[l]),n||(n=!M(h)||h!==this._$AH[l]),h===d?t=d:t!==d&&(t+=(h??"")+o[l+1]),this._$AH[l]=h}n&&!r&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class oe extends V{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class ne extends V{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class ae extends V{constructor(t,e,s,r,o){super(t,e,s,r,o),this.type=5}_$AI(t,e=this){if((t=T(this,t,e,0)??d)===$)return;const s=this._$AH,r=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==d&&(s===d||r);r&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class le{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){T(this,t)}}const rt=U.litHtmlPolyfillSupport;rt==null||rt(N,I),(U.litHtmlVersions??(U.litHtmlVersions=[])).push("3.0.0");const ce=(i,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let r=s._$litPart$;if(r===void 0){const o=(e==null?void 0:e.renderBefore)??null;s._$litPart$=r=new I(t.insertBefore(O(),o),o,void 0,e??{})}return r._$AI(i),r};/** 16 * @license 17 * Copyright 2017 Google LLC 18 * SPDX-License-Identifier: BSD-3-Clause 19 */let C=class extends x{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ce(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return $}};C._$litElement$=!0,C.finalized=!0,(Dt=globalThis.litElementHydrateSupport)==null||Dt.call(globalThis,{LitElement:C});const ot=globalThis.litElementPolyfillSupport;ot==null||ot({LitElement:C}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.0");/** 20 * @license 21 * Copyright 2017 Google LLC 22 * SPDX-License-Identifier: BSD-3-Clause 23 */const kt=i=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(i,t)}):customElements.define(i,t)};/** 24 * @license 25 * Copyright 2017 Google LLC 26 * SPDX-License-Identifier: BSD-3-Clause 27 */const he={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:it},de=(i=he,t,e)=>{const{kind:s,metadata:r}=e;let o=globalThis.litPropertyMetadata.get(r);if(o===void 0&&globalThis.litPropertyMetadata.set(r,o=new Map),o.set(e.name,i),s==="accessor"){const{name:n}=e;return{set(a){const l=t.get.call(this);t.set.call(this,a),this.requestUpdate(n,l,i)},init(a){return a!==void 0&&this.C(n,void 0,i),a}}}if(s==="setter"){const{name:n}=e;return function(a){const l=this[n];t.call(this,a),this.requestUpdate(n,l,i)}}throw Error("Unsupported decorator location: "+s)};function K(i){return(t,e)=>typeof e=="object"?de(i,t,e):((s,r,o)=>{const n=r.hasOwnProperty(o);return r.constructor.createProperty(o,n?{...s,wrapped:!0}:s),n?Object.getOwnPropertyDescriptor(r,o):void 0})(i,t,e)}/** 28 * @license 29 * Copyright 2017 Google LLC 30 * SPDX-License-Identifier: BSD-3-Clause 31 */function nt(i){return K({...i,state:!0,attribute:!1})}/** 32 * @license 33 * Copyright 2020 Google LLC 34 * SPDX-License-Identifier: BSD-3-Clause 35 */const ue=i=>i.strings===void 0;/** 36 * @license 37 * Copyright 2017 Google LLC 38 * SPDX-License-Identifier: BSD-3-Clause 39 */const q={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},F=i=>(...t)=>({_$litDirective$:i,values:t});let J=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};/** 40 * @license 41 * Copyright 2017 Google LLC 42 * SPDX-License-Identifier: BSD-3-Clause 43 */const R=(i,t)=>{var s;const e=i._$AN;if(e===void 0)return!1;for(const r of e)(s=r._$AO)==null||s.call(r,t,!1),R(r,t);return!0},Z=i=>{let t,e;do{if((t=i._$AM)===void 0)break;e=t._$AN,e.delete(i),i=t}while((e==null?void 0:e.size)===0)},Pt=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),me(t)}};function pe(i){this._$AN!==void 0?(Z(this),this._$AM=i,Pt(this)):this._$AM=i}function fe(i,t=!1,e=0){const s=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(s))for(let o=e;o<s.length;o++)R(s[o],!1),Z(s[o]);else s!=null&&(R(s,!1),Z(s));else R(this,i)}const me=i=>{i.type==q.CHILD&&(i._$AP??(i._$AP=fe),i._$AQ??(i._$AQ=pe))};class ge extends J{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),Pt(this),this.isConnected=t._$AU}_$AO(t,e=!0){var s,r;t!==this.isConnected&&(this.isConnected=t,t?(s=this.reconnected)==null||s.call(this):(r=this.disconnected)==null||r.call(this)),e&&(R(this,t),Z(this))}setValue(t){if(ue(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}/** 44 * @license 45 * Copyright 2020 Google LLC 46 * SPDX-License-Identifier: BSD-3-Clause 47 */const $e=()=>new _e;class _e{}const at=new WeakMap,be=F(class extends ge{render(i){return d}update(i,[t]){var s;const e=t!==this.G;return e&&this.G!==void 0&&this.ot(void 0),(e||this.rt!==this.lt)&&(this.G=t,this.ct=(s=i.options)==null?void 0:s.host,this.ot(this.lt=i.element)),d}ot(i){if(typeof this.G=="function"){const t=this.ct??globalThis;let e=at.get(t);e===void 0&&(e=new WeakMap,at.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ct,void 0),e.set(this.G,i),i!==void 0&&this.G.call(this.ct,i)}else this.G.value=i}get rt(){var i,t;return typeof this.G=="function"?(i=at.get(this.ct??globalThis))==null?void 0:i.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});var ve=typeof global=="object"&&global&&global.Object===Object&&global;const ye=ve;var Ae=typeof self=="object"&&self&&self.Object===Object&&self,we=ye||Ae||Function("return this")();const Ut=we;var Se=Ut.Symbol;const Q=Se;var Ot=Object.prototype,Ee=Ot.hasOwnProperty,xe=Ot.toString,H=Q?Q.toStringTag:void 0;function Te(i){var t=Ee.call(i,H),e=i[H];try{i[H]=void 0;var s=!0}catch{}var r=xe.call(i);return s&&(t?i[H]=e:delete i[H]),r}var Ce=Object.prototype,ke=Ce.toString;function Pe(i){return ke.call(i)}
47var Ue="[object Null]",Oe="[object Undefined]",Mt=Q?Q.toStringTag:void 0;function Me(i){return i==null?i===void 0?Oe:Ue:Mt&&Mt in Object(i)?Te(i):Pe(i)}function je(i){return i!=null&&typeof i=="object"}var Ne="[object Symbol]";function Ie(i){return typeof i=="symbol"||je(i)&&Me(i)==Ne}var Re=/\s/;function He(i){for(var t=i.length;t--&&Re.test(i.charAt(t)););return t}var ze=/^\s+/;function Le(i){return i&&i.slice(0,He(i)+1).replace(ze,"")}function lt(i){var t=typeof i;return i!=null&&(t=="object"||t=="function")}var jt=0/0,De=/^[-+]0x[0-9a-f]+$/i,Be=/^0b[01]+$/i,We=/^0o[0-7]+$/i,Ge=parseInt;function Nt(i){if(typeof i=="number")return i;if(Ie(i))return jt;if(lt(i)){var t=typeof i.valueOf=="function"?i.valueOf():i;i=lt(t)?t+"":t}if(typeof i!="string")return i===0?i:+i;i=Le(i);var e=Be.test(i);return e||We.test(i)?Ge(i.slice(2),e?2:8):De.test(i)?jt:+i}var Ve=function(){return Ut.Date.now()};const ct=Ve;var Ke="Expected a function",qe=Math.max,Fe=Math.min;function Je(i,t,e){var s,r,o,n,a,l,h=0,u=!1,c=!1,f=!0;if(typeof i!="function")throw new TypeError(Ke);t=Nt(t)||0,lt(e)&&(u=!!e.leading,c="maxWait"in e,o=c?qe(Nt(e.maxWait)||0,t):o,f="trailing"in e?!!e.trailing:f);function m(p){var v=s,L=r;return s=r=void 0,h=p,n=i.apply(L,v),n}function k(p){return h=p,a=setTimeout(X,t),u?m(p):n}function ti(p){var v=p-l,L=p-h,Gt=t-v;return c?Fe(Gt,o-L):Gt}function Bt(p){var v=p-l,L=p-h;return l===void 0||v>=t||v<0||c&&L>=o}function X(){var p=ct();if(Bt(p))return Wt(p);a=setTimeout(X,ti(p))}function Wt(p){return a=void 0,f&&s?m(p):(s=r=void 0,n)}function ei(){a!==void 0&&clearTimeout(a),h=0,s=l=r=a=void 0}function ii(){return a===void 0?n:Wt(ct())}function ut(){var p=ct(),v=Bt(p);if(s=arguments,r=this,l=p,v){if(a===void 0)return k(l);if(c)return clearTimeout(a),a=setTimeout(X,t),m(l)}return a===void 0&&(a=setTimeout(X,t)),n}return ut.cancel=ei,ut.flush=ii,ut}/** 48 * @license 49 * Copyright 2017 Google LLC 50 * SPDX-License-Identifier: BSD-3-Clause 51 */let ht=class extends J{constructor(t){if(super(t),this.et=d,t.type!==q.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===d||t==null)return this.vt=void 0,this.et=t;if(t===$)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}};ht.directiveName="unsafeHTML",ht.resultType=1;const It=F(ht);/** 52 * @license 53 * Copyright 2018 Google LLC 54 * SPDX-License-Identifier: BSD-3-Clause 55 */const Ze=F(class extends J{constructor(i){var t;if(super(i),i.type!==q.ATTRIBUTE||i.name!=="class"||((t=i.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(t=>i[t]).join(" ")+" "}update(i,[t]){var s,r;if(this.it===void 0){this.it=new Set,i.strings!==void 0&&(this.st=ne
55w Set(i.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in t)t[o]&&!((s=this.st)!=null&&s.has(o))&&this.it.add(o);return this.render(t)}const e=i.element.classList;for(const o of this.it)o in t||(e.remove(o),this.it.delete(o));for(const o in t){const n=!!t[o];n===this.it.has(o)||(r=this.st)!=null&&r.has(o)||(n?(e.add(o),this.it.add(o)):(e.remove(o),this.it.delete(o)))}return $}}),Rt=B` 56 *, 57 ::before, 58 ::after { 59 box-sizing: border-box; 60 border-width: 0; 61 border-style: solid; 62 border-color: #e5e7eb; 63 } 64 65 :host { 66 font-size: var(--halo-search-widget-base-font-size, 1rem); 67 -webkit-text-size-adjust: 100%; 68 -moz-tab-size: 4; 69 tab-size: 4; 70 font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 71 Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, 72 'Apple Color Emoji', 'Segoe UI Emoji', Segoe UI Symbol, 'Noto Color Emoji'; 73 font-feature-settings: normal; 74 font-variation-settings: normal; 75 } 76 77 hr { 78 height: 0; 79 color: inherit; 80 border-top-width: 1px; 81 } 82 83 h1, 84 h2, 85 h3, 86 h4, 87 h5, 88 h6 { 89 font-size: inherit; 90 font-weight: inherit; 91 } 92 93 a { 94 color: inherit; 95 text-decoration: inherit; 96 } 97 98 b, 99 strong { 100 font-weight: bolder; 101 } 102 103 code, 104 kbd, 105 samp, 106 pre { 107 font-size: 1em; 108 } 109 110 small { 111 font-size: 80%; 112 } 113 114 sub, 115 sup { 116 font-size: 75%; 117 line-height: 0; 118 position: relative; 119 vertical-align: baseline; 120 } 121 122 sub { 123 bottom: -0.25em; 124 } 125 126 sup { 127 top: -0.5em; 128 } 129 130 button, 131 input, 132 optgroup, 133 select, 134 textarea { 135 font-family: inherit; 136 font-feature-settings: inherit; 137 font-variation-settings: inherit; 138 font-size: 100%; 139 font-weight: inherit; 140 line-height: inherit; 141 color: inherit; 142 margin: 0; 143 padding: 0; 144 } 145 146 button, 147 select { 148 text-transform: none; 149 } 150 151 button, 152 [type='button'], 153 [type='reset'], 154 [type='submit'] { 155 -webkit-appearance: button; 156 background-color: transparent; 157 background-image: none; 158 } 159 160 blockquote, 161 dl, 162 dd, 163 h1, 164 h2, 165 h3, 166 h4, 167 h5, 168 h6, 169 hr, 170 figure, 171 p, 172 pre { 173 margin: 0; 174 } 175 176 ol, 177 ul, 178 menu { 179 list-style: none; 180 margin: 0; 181 padding: 0; 182 } 183 184 textarea { 185 resize: vertical; 186 } 187 188 input::placeholder, 189 textarea::placeholder { 190 opacity: 1; 191 color: #9ca3af; 192 } 193 194 button, 195 [role='button'] { 196 cursor: pointer; 197 } 198`,Ht=B` 199 :host { 200 --base-font-size: var(--halo-search-widget-base-font-size, 1rem); 201 --color-modal-layer: var( 202 --halo-search-widget-color-modal-layer, 203 rgb(107 114 128 / 0.75) 204 ); 205 --color-modal-content-bg: var( 206 --halo-search-widget-color-modal-content-bg, 207 #fff 208 ); 209 --color-form-input-bg: var(--halo-search-widget-color-form-input-bg, #fff); 210 --color-form-input: var(--halo-search-widget-color-form-input, #333); 211 --color-form-input-placeholder: var( 212 --halo-search-widget-color-form-input-placeholder, 213 rgb(107 114 128) 214 ); 215 --color-form-divider: var( 216 --halo-search-widget-color-form-divider, 217 rgb(243 244 246) 218 ); 219 --color-result-empty: var( 220 --halo-search-widget-color-result-empty, 221 rgb(107 114 128) 222 ); 223 --color-result-item-bg: var( 224 --halo-search-widget-color-result-item-bg, 225 rgb(249 250 251) 226 ); 227 --color-result-item-hover-bg: var( 228 --halo-search-widget-color-result-item-hover-bg, 229 rgb(243 244 246) 230 ); 231 --color-result-item-title: var( 232 --halo-search-widget-color-result-item-title, 233 #333 234 ); 235 --color-result-item-content: var( 236 --halo-search-widget-color-result-item-content, 237 rgb(75, 85, 99) 238 ); 239 --color-command-kbd-item: var( 240 --halo-search-widget-color-command-kbd-item, 241 #333 242 ); 243 --color-command-kbd-border: var( 244 --halo-search-widget-color-command-kbd-border, 245 #e5e7eb 246 ); 247 } 248`;var z=globalThis&&globalThis.__decorate||function(i,t,e,s){var r=arguments.length,o=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,e):s,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,s);else for(var a=i.length-1;a>=0;a--)(n=i[a])&&(o=(r<3?n(o):r>3?n(t,e,o):n(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};let E=class extends C{constructor(){super(),this.baseUrl="",this.hits=[],this.loading=!1,this.selectedIndex=0,this.inputRef=$e(),this.fetchHits=Je(async t=>{const s=await(await fetch(`${this.baseUrl}/apis/api.halo.run/v1alpha1/indices/post?keyword=${t}&highlightPreTag=%3Cmark%3E&highlightPostTag=%3C/mark%3E`)).json();this.hits=s.hits||[],this.loading=!1},300),this.handleKeydown=t=>{const{key:e,ctrlKey:s}=t;if((e==="ArrowUp"||e==="k"&&s)&&(this.selectedIndex=Math.max(0,this.selectedIndex-1),t.preventDefault()),(e==="ArrowDown"||e==="j"&&s)&&(this.selectedIndex=Math.min(this.hits.length,this.selectedIndex+1),t.preventDefault()),e==="Enter"){const r=this.hits[this.selectedIndex-1];r&&this.handleOpenLink(r)}},this.addEventListener("keydown",this.handleKeydown)}render(){return w` 249 <div class="search-form__input"> 250 <input
251 @input="${this.onInput}" 252 placeholder="è¾å ¥å ³é®è¯ä»¥æç´¢" 253 autocomplete="off" 254 autocorrect="off" 255 spellcheck="false" 256 ${be(this.inputRef)} 257 /> 258 </div> 259 <div class="search-form__result"> 260 ${!this.loading&&this.hits.length===0?w`<div class="search-form__empty"> 261 <span>没ææç´¢ç»æ</span> 262 </div>`:""} 263 ${this.loading?w`<div class="search-form__loading"><span>æç´¢ä¸...</span></div>`:w` 264 <ul class="search-form__result-wrapper" role="list"> 265 ${this.hits.map((t,e)=>w`<li @click="${()=>this.handleOpenLink(t)}"> 266 <div 267 class="${Ze({"search-form__result-item":!0,selected:e===this.selectedIndex-1})}" 268 > 269 <h2 class="search-form__result-item-title"> 270 ${It(t.title)} 271 </h2> 272 <p class="search-form__result-item-content"> 273 ${It(t.content)} 274 </p> 275 </div> 276 </li>`)} 277 </ul> 278 `} 279 </div> 280 <div class="search-form__commands"> 281 <div class="search-form__commands-item"> 282 <span>éæ©</span> 283 <kbd> â </kbd> 284 <kbd> â </kbd> 285 </div> 286 287 <div class="search-form__commands-item"> 288 <span>确认</span> 289 <kbd> Enter </kbd> 290 </div> 291 292 <div class="search-form__commands-item"> 293 <span>å ³é</span> 294 <kbd> Esc </kbd> 295 </div> 296 </div> 297 `}firstUpdated(t){var e;super.firstUpdated(t),(e=this.inputRef.value)==null||e.focus()}onInput(t){const s=t.target.value;if(this.selectedIndex=0,s===""){this.hits=[];return}this.loading=!0,this.fetchHits(s)}handleOpenLink(t){window.location.href=t.permalink}};E.styles=[Ht,Rt,B` 298 .search-form__input { 299 border-bottom-width: 1px; 300 border-color: var(--color-form-divider); 301 padding: 0.625em 1em; 302 position: sticky; 303 top: 0; 304 background-color: var(--color-form-input-bg); 305 } 306 307 .search-form__input input { 308 width: 100%; 309 padding: 0.25em 0px; 310 outline: 2px solid transparent; 311 outline-offset: 2px; 312 border: none; 313 font-size: 1em; 314 line-height: 1.5em; 315 background-color: var(--color-form-input-bg); 316 color: var(--color-form-input); 317 } 318 319 .search-form__input input::placeholder { 320 color: var(--color-form-input-placeholder); 321 } 322 323 .search-form__result { 324 padding: 0.625em 0.5em; 325 } 326 327 .search-form__empty, 328 .search-form__loading { 329 display: flex; 330 align-items: center; 331 justify-content: center; 332 font-size: 0.875em; 333 line-height: 1.25em; 334 color: var(--color-result-empty); 335 } 336 337 .search-form__result-wrapper { 338 box-sizing: border-box; 339 display: flex; 340 width: 100%; 341 height: 100%; 342 flex-direction: column; 343 gap: 0.25em; 344 list-style: none; 345 margin: 0; 346 padding: 0; 347 } 348 349 .search-form__result-wrapper li { 350 cursor: pointer; 351 } 352 353 .search-form__result-item { 354 display: flex; 355 flex-direction: column; 356 gap: 0.25em; 357 border-radius: 0.375em; 358 background-color: var(--color-result-item-bg); 359 padding: 0.5em 0.625em; 360 } 361 362 .search-form__result-item:hover, 363 .search-form__result-item.selected { 364 background-color: var(--color-result-item-hover-bg); 365 } 366 367 .search-form__result-item-title { 368 font-size: 0.875em; 369 line-height: 1.25em; 370 font-weight: 600; 371 padding: 0; 372 margin: 0; 373 color: var(--color-result-item-title); 374 } 375 376 .search-form__result-item-content { 377 font-size: 0.75em; 378 line-height: 1em; 379 color: var(--color-result-item-content); 380 padding: 0; 381 margin: 0; 382 } 383 384 .search-form__result-item-content img { 385 width: 50%; 386 } 387 388 .search-form__commands { 389 border-top-width: 1px; 390 border-color: var(--color-form-divider); 391 padding: 0.625em 1em; 392 display: flex; 393 justify-content: flex-end; 394 } 395 396 .search-form__commands-item { 397 display: inline-flex; 398 align-items: center; 399 margin-left: 1.25em; 400 } 401 402 .search-form__commands-item span { 403 font-size: 0.75em; 404 line-height: 1em; 405 color: var(--color-command-kbd-item); 406 } 407 408 .search-form__commands-item kbd { 409 color: var(--color-command-kbd-item); 410 font-size: 10px; 411 text-align: center; 412 padding: 0.125em 0.3em; 413 border-width: 1px; 414 border-radius: 0.25em; 415 border-color: var(--color-command-kbd-border); 416 min-width: 1.25em; 417 margin-left: 0.3em; 418 box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgb(0 0 0 / 0.05); 419 } 420 `],z([K({type:String})],E.prototype,"baseUrl",void 0),z([nt()],E.prototype,"hits",void 0),z([nt()],E.prototype,"loading",void 0),z([nt()],E.prototype,"selectedIndex",void 0),E=z([kt("search-form")],E);/** 421 * @license 422 * Copyright 2018 Google LLC 423 * SPDX-License-Identifier: BSD-3-Clause 424 */const zt="important",Qe=" !"+zt,Xe=F(class extends J{constructor(i){var t;if(super(i),i.type!==q.ATTRIBUTE||i.name!=="style"||((t=i.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(i){return Object.keys(i).reduce((t,e)=>{const s=i[e];return s==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(i,[t]){const{style:e}=i.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(t)),this.render(t);for(const s of this.ut)t[s]==null&&(this.ut.delete(s),s.includes("-")?e.removeProperty(s):e[s]=null);for(const s in t){const r=t[s];if(r!=null){this.ut.add(s);const o=typeof r=="string"&&r.endsWith(Qe);s.includes("-")||o?e.setProperty(s,o?r.slice(0,-11):r,o?zt:""):e[s]=r}}return $}});var dt=globalThis&&globalThis.__decorate||function(i,t,e,s){var r=arguments.length,o=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,e):s,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,s);else for(var a=i.length-1;a>=0;a--)(n=i[a])&&(o=(r<3?n(o):r>3?n(t,e,o):n(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};g.SearchModal=class extends C{constructor(){super(...arguments),this.open=!1,this.baseUrl="",this.handleKeydown=t=>{const{key:e}=t;e==="Escape"&&(this.close(),t.preventDefault())}}render(){return w`<div 425 class="modal__wrapper" 426 style="${Xe({display:this.open?"flex":"none"})}" 427 > 428 <div class="modal__layer" @click="${this.close}"></div> 429 <div class="modal__content"> 430 ${this.open?w`<search-form baseUrl=${this.baseUrl}></search-form>`:""} 431 </div> 432 </div>`}close(){this.open=!1}connectedCallback(){super.connectedCallback(),window.addEventListener("keydown",this.handleKeydown)}disconnectedCallback(){window.removeEventListener("keydown",this.handleKeydown),super.disconnectedCallback()}},g.SearchModal.styles=[Ht,Rt,B` 433 .modal__wrapper { 434 position: fixed; 435 left: 0px; 436 top: 0px; 437 display: flex; 438 height: 100%; 439 width: 100%; 440 flex-direction: row; 441 align-items: flex-start; 442 justify-content: center; 443 padding-top: 2.5em; 444 padding-bottom: 2.5em; 445 z-index: 999; 446 } 447 448 .modal__layer { 449 position: absolute; 450 top: 0px; 451 left: 0px; 452 height: 100%; 453 width: 100%; 454 flex: none; 455 background-color: var(--color-modal-layer); 456 animation: fadeIn 0.15s both; 457 } 458 459 .modal__content { 460 position: relative; 461 display: flex; 462 flex-direction: column; 463 align-items: stretch; 464 border-radius: 5px; 465 background-color: var(--color-modal-content-bg); 466 width: calc(100vw - 20px); 467 max-height: calc(100vh - 5em); 468 max-width: 650px; 469 overflow: auto; 470 animation: fadeInUp 0.3s both; 471 } 472 473 @keyframes fadeIn { 474 from { 475 opacity: 0; 476 } 477 478 to { 479 opacity: 1; 480 } 481 } 482 483 @keyframes fadeInUp { 484 from { 485 opacity: 0; 486 transform: translate3d(0, 10%, 0); 487 } 488 489 to { 490 opacity: 1; 491 transform: translate3d(0, 0, 0); 492 } 493 } 494 `],dt([K({type:Boolean})],g.SearchModal.prototype,"open",void 0),dt([K({type:String})],g.SearchModal.prototype,"baseUrl",void 0),g.SearchModal=dt([kt("search-modal")],g.SearchModal);const si="",Lt=document.createElement("search-modal");document.body.append(Lt);function Ye(){Lt.open=!0}return g.open=Ye,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}),g}({});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.